@rive-app/webgl2 2.38.4 → 2.38.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.js +1608 -1608
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/rive_fallback.wasm +0 -0
package/rive.js
CHANGED
|
@@ -357,50 +357,50 @@ var Rive = (() => {
|
|
|
357
357
|
function(moduleArg = {}) {
|
|
358
358
|
var moduleRtn;
|
|
359
359
|
|
|
360
|
-
var
|
|
360
|
+
var k = moduleArg, aa, ba, ca = new Promise((a, b) => {
|
|
361
361
|
aa = a;
|
|
362
362
|
ba = b;
|
|
363
363
|
}), da = "object" == typeof window, ea = "function" == typeof importScripts;
|
|
364
364
|
function fa() {
|
|
365
365
|
function a(g) {
|
|
366
|
-
const
|
|
366
|
+
const h = d;
|
|
367
367
|
c = b = 0;
|
|
368
368
|
d = new Map();
|
|
369
|
-
|
|
369
|
+
h.forEach(m => {
|
|
370
370
|
try {
|
|
371
|
-
|
|
372
|
-
} catch (
|
|
373
|
-
console.error(
|
|
371
|
+
m(g);
|
|
372
|
+
} catch (l) {
|
|
373
|
+
console.error(l);
|
|
374
374
|
}
|
|
375
375
|
});
|
|
376
|
-
this.
|
|
377
|
-
e && e.
|
|
376
|
+
this.fb();
|
|
377
|
+
e && e.Eb();
|
|
378
378
|
}
|
|
379
379
|
let b = 0, c = 0, d = new Map(), e = null, f = null;
|
|
380
380
|
this.requestAnimationFrame = function(g) {
|
|
381
381
|
b ||= requestAnimationFrame(a.bind(this));
|
|
382
|
-
const
|
|
383
|
-
d.set(
|
|
384
|
-
return
|
|
382
|
+
const h = ++c;
|
|
383
|
+
d.set(h, g);
|
|
384
|
+
return h;
|
|
385
385
|
};
|
|
386
386
|
this.cancelAnimationFrame = function(g) {
|
|
387
387
|
d.delete(g);
|
|
388
388
|
b && 0 == d.size && (cancelAnimationFrame(b), b = 0);
|
|
389
389
|
};
|
|
390
|
-
this.
|
|
390
|
+
this.Cb = function(g) {
|
|
391
391
|
f && (document.body.remove(f), f = null);
|
|
392
|
-
g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(
|
|
393
|
-
f.innerHTML = "RIVE FPS " +
|
|
392
|
+
g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(h) {
|
|
393
|
+
f.innerHTML = "RIVE FPS " + h.toFixed(1);
|
|
394
394
|
}, document.body.appendChild(f));
|
|
395
395
|
e = new function() {
|
|
396
|
-
let
|
|
397
|
-
this.
|
|
398
|
-
var
|
|
399
|
-
|
|
396
|
+
let h = 0, m = 0;
|
|
397
|
+
this.Eb = function() {
|
|
398
|
+
var l = performance.now();
|
|
399
|
+
m ? (++h, l -= m, 1000 < l && (g(1000 * h / l), h = m = 0)) : (m = l, h = 0);
|
|
400
400
|
};
|
|
401
401
|
}();
|
|
402
402
|
};
|
|
403
|
-
this.
|
|
403
|
+
this.fb = function() {
|
|
404
404
|
};
|
|
405
405
|
}
|
|
406
406
|
function ha() {
|
|
@@ -418,277 +418,277 @@ function ha() {
|
|
|
418
418
|
return b << 8;
|
|
419
419
|
};
|
|
420
420
|
}
|
|
421
|
-
const ia =
|
|
422
|
-
|
|
421
|
+
const ia = k.onRuntimeInitialized;
|
|
422
|
+
k.onRuntimeInitialized = function() {
|
|
423
423
|
ia && ia();
|
|
424
|
-
let a =
|
|
425
|
-
|
|
424
|
+
let a = k.decodeAudio;
|
|
425
|
+
k.decodeAudio = function(f, g) {
|
|
426
426
|
f = a(f);
|
|
427
427
|
g(f);
|
|
428
428
|
};
|
|
429
|
-
let b =
|
|
430
|
-
|
|
429
|
+
let b = k.decodeFont;
|
|
430
|
+
k.decodeFont = function(f, g) {
|
|
431
431
|
f = b(f);
|
|
432
432
|
g(f);
|
|
433
433
|
};
|
|
434
|
-
let c =
|
|
435
|
-
|
|
434
|
+
let c = k.setFallbackFontCb;
|
|
435
|
+
k.setFallbackFontCallback = "function" === typeof c ? function(f) {
|
|
436
436
|
c(f);
|
|
437
437
|
} : function() {
|
|
438
438
|
console.warn("Module.setFallbackFontCallback called, but text support is not enabled in this build.");
|
|
439
439
|
};
|
|
440
|
-
const d =
|
|
441
|
-
|
|
442
|
-
let g =
|
|
443
|
-
return g.isImage ?
|
|
440
|
+
const d = k.FileAssetLoader;
|
|
441
|
+
k.ptrToAsset = f => {
|
|
442
|
+
let g = k.ptrToFileAsset(f);
|
|
443
|
+
return g.isImage ? k.ptrToImageAsset(f) : g.isFont ? k.ptrToFontAsset(f) : g.isAudio ? k.ptrToAudioAsset(f) : g;
|
|
444
444
|
};
|
|
445
|
-
|
|
445
|
+
k.CustomFileAssetLoader = d.extend("CustomFileAssetLoader", {__construct:function({loadContents:f}) {
|
|
446
446
|
this.__parent.__construct.call(this);
|
|
447
|
-
this.
|
|
447
|
+
this.sb = f;
|
|
448
448
|
}, loadContents:function(f, g) {
|
|
449
|
-
f =
|
|
450
|
-
return this.
|
|
449
|
+
f = k.ptrToAsset(f);
|
|
450
|
+
return this.sb(f, g);
|
|
451
451
|
},});
|
|
452
|
-
|
|
452
|
+
k.CDNFileAssetLoader = d.extend("CDNFileAssetLoader", {__construct:function() {
|
|
453
453
|
this.__parent.__construct.call(this);
|
|
454
454
|
}, loadContents:function(f) {
|
|
455
|
-
let g =
|
|
455
|
+
let g = k.ptrToAsset(f);
|
|
456
456
|
f = g.cdnUuid;
|
|
457
457
|
if ("" === f) {
|
|
458
458
|
return !1;
|
|
459
459
|
}
|
|
460
|
-
(function(
|
|
461
|
-
var
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
4 ==
|
|
460
|
+
(function(h, m) {
|
|
461
|
+
var l = new XMLHttpRequest();
|
|
462
|
+
l.responseType = "arraybuffer";
|
|
463
|
+
l.onreadystatechange = function() {
|
|
464
|
+
4 == l.readyState && 200 == l.status && m(l);
|
|
465
465
|
};
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
})(g.cdnBaseUrl + "/" + f,
|
|
469
|
-
g.decode(new Uint8Array(
|
|
466
|
+
l.open("GET", h, !0);
|
|
467
|
+
l.send(null);
|
|
468
|
+
})(g.cdnBaseUrl + "/" + f, h => {
|
|
469
|
+
g.decode(new Uint8Array(h.response));
|
|
470
470
|
});
|
|
471
471
|
return !0;
|
|
472
472
|
},});
|
|
473
|
-
|
|
473
|
+
k.FallbackFileAssetLoader = d.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
474
474
|
this.__parent.__construct.call(this);
|
|
475
|
-
this.
|
|
475
|
+
this.ab = [];
|
|
476
476
|
}, addLoader:function(f) {
|
|
477
|
-
this.
|
|
477
|
+
this.ab.push(f);
|
|
478
478
|
}, loadContents:function(f, g) {
|
|
479
|
-
for (let
|
|
480
|
-
if (
|
|
479
|
+
for (let h of this.ab) {
|
|
480
|
+
if (h.loadContents(f, g)) {
|
|
481
481
|
return !0;
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
return !1;
|
|
485
485
|
},});
|
|
486
|
-
let e =
|
|
487
|
-
|
|
488
|
-
return e.call(this, f, g,
|
|
486
|
+
let e = k.computeAlignment;
|
|
487
|
+
k.computeAlignment = function(f, g, h, m, l = 1.0) {
|
|
488
|
+
return e.call(this, f, g, h, m, l);
|
|
489
489
|
};
|
|
490
490
|
};
|
|
491
|
-
const ja =
|
|
492
|
-
|
|
493
|
-
function a(
|
|
494
|
-
this.
|
|
495
|
-
this.
|
|
496
|
-
this
|
|
497
|
-
this.
|
|
498
|
-
this.
|
|
491
|
+
const ja = k.onRuntimeInitialized;
|
|
492
|
+
k.onRuntimeInitialized = function() {
|
|
493
|
+
function a(q) {
|
|
494
|
+
this.D = q;
|
|
495
|
+
this.rb = q.getContext("2d");
|
|
496
|
+
this.Sa = d;
|
|
497
|
+
this.O = [];
|
|
498
|
+
this.ga = 0;
|
|
499
499
|
this.clear = function() {
|
|
500
|
-
console.assert(0 == this.
|
|
501
|
-
this.
|
|
500
|
+
console.assert(0 == this.ga);
|
|
501
|
+
this.O = [];
|
|
502
502
|
e.delete(this);
|
|
503
503
|
};
|
|
504
504
|
this.save = function() {
|
|
505
|
-
++this.
|
|
506
|
-
this.
|
|
505
|
+
++this.ga;
|
|
506
|
+
this.O.push(d.save.bind(d));
|
|
507
507
|
};
|
|
508
508
|
this.restore = function() {
|
|
509
|
-
0 < this.
|
|
509
|
+
0 < this.ga && (this.O.push(d.restore.bind(d)), --this.ga);
|
|
510
510
|
};
|
|
511
|
-
this.transform = function(
|
|
512
|
-
this.
|
|
511
|
+
this.transform = function(t) {
|
|
512
|
+
this.O.push(d.transform.bind(d, t));
|
|
513
513
|
};
|
|
514
|
-
this.align = function(
|
|
515
|
-
this.
|
|
514
|
+
this.align = function(t, y, z, B, G = 1.0) {
|
|
515
|
+
this.O.push(d.align.bind(d, t, y, z, B, G));
|
|
516
516
|
};
|
|
517
517
|
this.flush = function() {
|
|
518
|
-
console.assert(0 == this.
|
|
518
|
+
console.assert(0 == this.ga);
|
|
519
519
|
e.add(this);
|
|
520
|
-
d.
|
|
520
|
+
d.Ra || c();
|
|
521
521
|
};
|
|
522
522
|
this.bindContext = function() {
|
|
523
|
-
const
|
|
524
|
-
|
|
523
|
+
const t = this.Sa;
|
|
524
|
+
t && t.W && ka(t.W);
|
|
525
525
|
};
|
|
526
526
|
this["delete"] = function() {
|
|
527
527
|
};
|
|
528
528
|
}
|
|
529
|
-
function b(
|
|
530
|
-
var
|
|
531
|
-
|
|
532
|
-
if (!
|
|
529
|
+
function b(q, t = !1) {
|
|
530
|
+
var y = {alpha:!0, depth:t, stencil:t, antialias:t, premultipliedAlpha:!0, preserveDrawingBuffer:0, powerPreference:"high-performance", failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:!1, explicitSwapControl:0, renderViaOffscreenBackBuffer:0,};
|
|
531
|
+
t = q.getContext("webgl2", y);
|
|
532
|
+
if (!t) {
|
|
533
533
|
return null;
|
|
534
534
|
}
|
|
535
|
-
|
|
536
|
-
ka(
|
|
537
|
-
const
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
this.
|
|
545
|
-
};
|
|
546
|
-
var
|
|
547
|
-
|
|
548
|
-
this.
|
|
549
|
-
|
|
550
|
-
var
|
|
551
|
-
|
|
552
|
-
"object" == typeof JSEvents && JSEvents.
|
|
553
|
-
|
|
554
|
-
this.
|
|
555
|
-
};
|
|
556
|
-
return
|
|
535
|
+
y = la(t, y);
|
|
536
|
+
ka(y);
|
|
537
|
+
const z = f(q.width, q.height);
|
|
538
|
+
z.W = y;
|
|
539
|
+
z.D = q;
|
|
540
|
+
z.Ia = q.width;
|
|
541
|
+
z.Ha = q.height;
|
|
542
|
+
z.P = t;
|
|
543
|
+
z.wb = function() {
|
|
544
|
+
this.W && ka(this.W);
|
|
545
|
+
};
|
|
546
|
+
var B = z.delete;
|
|
547
|
+
z.delete = function() {
|
|
548
|
+
this.wb();
|
|
549
|
+
B.call(this);
|
|
550
|
+
var G = this.W;
|
|
551
|
+
p === v[G] && (p = null);
|
|
552
|
+
"object" == typeof JSEvents && JSEvents.Gc(v[G].C.canvas);
|
|
553
|
+
v[G] && v[G].C.canvas && (v[G].C.canvas.qb = void 0);
|
|
554
|
+
this.W = this.D = this.Ia = this.Ha = this.P = v[G] = null;
|
|
555
|
+
};
|
|
556
|
+
return z;
|
|
557
557
|
}
|
|
558
558
|
function c() {
|
|
559
559
|
if (d) {
|
|
560
|
-
var
|
|
561
|
-
for (var
|
|
562
|
-
|
|
560
|
+
var q = d.ub, t = 0, y = 0, z = 0, B = Array(e.size), G = 0;
|
|
561
|
+
for (var I of e) {
|
|
562
|
+
I.ca = Math.min(I.D.width, q), I.ba = Math.min(I.D.height, q), I.Fa = I.ba * I.ca, t = Math.max(t, I.ca), y = Math.max(y, I.ba), z += I.Fa, B[G++] = I;
|
|
563
563
|
}
|
|
564
564
|
e.clear();
|
|
565
|
-
if (!(0 >=
|
|
566
|
-
|
|
567
|
-
for (
|
|
568
|
-
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
for (
|
|
575
|
-
|
|
576
|
-
for (
|
|
577
|
-
var
|
|
578
|
-
if (0 >
|
|
579
|
-
console.assert(
|
|
565
|
+
if (!(0 >= z)) {
|
|
566
|
+
t = 1 << (0 >= t ? 0 : 32 - Math.clz32(t - 1));
|
|
567
|
+
for (y = 1 << (0 >= y ? 0 : 32 - Math.clz32(y - 1)); y * t < z;) {
|
|
568
|
+
t <= y ? t *= 2 : y *= 2;
|
|
569
|
+
}
|
|
570
|
+
t = Math.min(t, q);
|
|
571
|
+
t = Math.min(y, q);
|
|
572
|
+
B.sort((Y, nb) => nb.Fa - Y.Fa);
|
|
573
|
+
z = new k.DynamicRectanizer(q);
|
|
574
|
+
for (I = 0; I < B.length;) {
|
|
575
|
+
z.reset(t, y);
|
|
576
|
+
for (G = I; G < B.length; ++G) {
|
|
577
|
+
var J = B[G], H = z.addRect(J.ca, J.ba);
|
|
578
|
+
if (0 > H) {
|
|
579
|
+
console.assert(G > I);
|
|
580
580
|
break;
|
|
581
581
|
}
|
|
582
|
-
|
|
583
|
-
|
|
582
|
+
J.ma = H & 65535;
|
|
583
|
+
J.na = H >> 16;
|
|
584
584
|
}
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
console.assert(
|
|
588
|
-
console.assert(
|
|
589
|
-
console.assert(
|
|
590
|
-
console.assert(
|
|
591
|
-
d.
|
|
592
|
-
d.
|
|
585
|
+
J = m.push(z.drawWidth());
|
|
586
|
+
H = l.push(z.drawHeight());
|
|
587
|
+
console.assert(J >= z.drawWidth());
|
|
588
|
+
console.assert(H >= z.drawHeight());
|
|
589
|
+
console.assert(J <= q);
|
|
590
|
+
console.assert(H <= q);
|
|
591
|
+
d.D.width != J && (d.D.width = J);
|
|
592
|
+
d.D.height != H && (d.D.height = H);
|
|
593
593
|
d.clear();
|
|
594
|
-
for (
|
|
595
|
-
|
|
596
|
-
d.saveClipRect(
|
|
597
|
-
let
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
d.transform(
|
|
604
|
-
for (const
|
|
605
|
-
|
|
594
|
+
for (J = I; J < G; ++J) {
|
|
595
|
+
H = B[J];
|
|
596
|
+
d.saveClipRect(H.ma, H.na, H.ma + H.ca, H.na + H.ba);
|
|
597
|
+
let Y = new k.Mat2D();
|
|
598
|
+
Y.xx = H.ca / H.D.width;
|
|
599
|
+
Y.yy = H.ba / H.D.height;
|
|
600
|
+
Y.xy = Y.yx = 0;
|
|
601
|
+
Y.tx = H.ma;
|
|
602
|
+
Y.ty = H.na;
|
|
603
|
+
d.transform(Y);
|
|
604
|
+
for (const nb of H.O) {
|
|
605
|
+
nb();
|
|
606
606
|
}
|
|
607
607
|
d.restoreClipRect();
|
|
608
|
-
|
|
608
|
+
H.O = [];
|
|
609
609
|
}
|
|
610
|
-
for (d.flush();
|
|
611
|
-
|
|
610
|
+
for (d.flush(); I < G; ++I) {
|
|
611
|
+
J = B[I], H = J.rb, H.globalCompositeOperation = "copy", H.drawImage(d.D, J.ma, J.na, J.ca, J.ba, 0, 0, J.D.width, J.D.height);
|
|
612
612
|
}
|
|
613
|
-
|
|
613
|
+
I = G;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
618
|
ja && ja();
|
|
619
619
|
let d = null;
|
|
620
|
-
const e = new Set(), f =
|
|
621
|
-
|
|
620
|
+
const e = new Set(), f = k.makeRenderer;
|
|
621
|
+
k.makeRenderer = function(q, t) {
|
|
622
622
|
if (!d) {
|
|
623
|
-
function z
|
|
624
|
-
var
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
d = b(
|
|
623
|
+
function y(z) {
|
|
624
|
+
var B = document.createElement("canvas");
|
|
625
|
+
B.width = 1;
|
|
626
|
+
B.height = 1;
|
|
627
|
+
d = b(B, z);
|
|
628
628
|
if (!d) {
|
|
629
629
|
return null;
|
|
630
630
|
}
|
|
631
|
-
d.
|
|
632
|
-
d.
|
|
633
|
-
d.
|
|
634
|
-
if (
|
|
635
|
-
|
|
631
|
+
d.Ra = !!d.P.getExtension("WEBGL_shader_pixel_local_storage");
|
|
632
|
+
d.ub = Math.min(d.P.getParameter(d.P.MAX_RENDERBUFFER_SIZE), d.P.getParameter(d.P.MAX_TEXTURE_SIZE));
|
|
633
|
+
d.Ga = !d.Ra;
|
|
634
|
+
if (z = d.P.getExtension("WEBGL_debug_renderer_info")) {
|
|
635
|
+
B = d.P.getParameter(z.UNMASKED_RENDERER_WEBGL), d.P.getParameter(z.UNMASKED_VENDOR_WEBGL).includes("Google") && B.includes("ANGLE Metal Renderer") && (d.Ga = !1);
|
|
636
636
|
}
|
|
637
637
|
return d;
|
|
638
638
|
}
|
|
639
|
-
d =
|
|
639
|
+
d = y(!0);
|
|
640
640
|
if (!d) {
|
|
641
641
|
throw "Unable to create WebGL context, your environment may not support WebGL. Try out @rive-app/canvas as an alternative.";
|
|
642
642
|
}
|
|
643
|
-
d.
|
|
643
|
+
d.Ga || (d = y(!1));
|
|
644
644
|
}
|
|
645
|
-
return
|
|
645
|
+
return t ? new a(q) : b(q, d.Ga);
|
|
646
646
|
};
|
|
647
|
-
const g =
|
|
648
|
-
|
|
649
|
-
this.
|
|
647
|
+
const g = k.Artboard.prototype["delete"];
|
|
648
|
+
k.Artboard.prototype["delete"] = function() {
|
|
649
|
+
this.vb = !0;
|
|
650
650
|
g.call(this);
|
|
651
651
|
};
|
|
652
|
-
const
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
this.
|
|
656
|
-
}) :
|
|
652
|
+
const h = k.Artboard.prototype.draw;
|
|
653
|
+
k.Artboard.prototype.draw = function(q) {
|
|
654
|
+
q.O ? q.O.push(() => {
|
|
655
|
+
this.vb || h.call(this, q.Sa);
|
|
656
|
+
}) : h.call(this, q);
|
|
657
657
|
};
|
|
658
|
-
const
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
let
|
|
665
|
-
|
|
666
|
-
const
|
|
667
|
-
void 0 !==
|
|
668
|
-
|
|
669
|
-
return Promise.resolve(
|
|
658
|
+
const m = new ha(), l = new ha(), r = new fa();
|
|
659
|
+
k.requestAnimationFrame = r.requestAnimationFrame.bind(r);
|
|
660
|
+
k.cancelAnimationFrame = r.cancelAnimationFrame.bind(r);
|
|
661
|
+
k.enableFPSCounter = r.Cb.bind(r);
|
|
662
|
+
r.fb = c;
|
|
663
|
+
k.resolveAnimationFrame = c;
|
|
664
|
+
let u = k.load;
|
|
665
|
+
k.load = function(q, t, y = !0) {
|
|
666
|
+
const z = new k.FallbackFileAssetLoader();
|
|
667
|
+
void 0 !== t && z.addLoader(t);
|
|
668
|
+
y && (t = new k.CDNFileAssetLoader(), z.addLoader(t));
|
|
669
|
+
return Promise.resolve(u(q, z));
|
|
670
670
|
};
|
|
671
|
-
const
|
|
672
|
-
|
|
673
|
-
ka(this.
|
|
674
|
-
const
|
|
675
|
-
if (this.
|
|
676
|
-
this.resize(
|
|
677
|
-
}
|
|
678
|
-
|
|
671
|
+
const w = k.WebGL2Renderer.prototype.clear;
|
|
672
|
+
k.WebGL2Renderer.prototype.clear = function() {
|
|
673
|
+
ka(this.W);
|
|
674
|
+
const q = this.D;
|
|
675
|
+
if (this.Ia != q.width || this.Ha != q.height) {
|
|
676
|
+
this.resize(q.width, q.height), this.Ia = q.width, this.Ha = q.height;
|
|
677
|
+
}
|
|
678
|
+
w.call(this);
|
|
679
679
|
};
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
680
|
+
k.decodeImage = function(q, t) {
|
|
681
|
+
q = k.decodeWebGL2Image(q);
|
|
682
|
+
t(q);
|
|
683
683
|
};
|
|
684
|
-
let
|
|
685
|
-
|
|
686
|
-
|
|
684
|
+
let n = k.Renderer.prototype.align;
|
|
685
|
+
k.Renderer.prototype.align = function(q, t, y, z, B = 1.0) {
|
|
686
|
+
n.call(this, q, t, y, z, B);
|
|
687
687
|
};
|
|
688
688
|
};
|
|
689
|
-
var ma = Object.assign({},
|
|
689
|
+
var ma = Object.assign({}, k), na = "./this.program", x = "", oa, pa;
|
|
690
690
|
if (da || ea) {
|
|
691
|
-
ea ?
|
|
691
|
+
ea ? x = self.location.href : "undefined" != typeof document && document.currentScript && (x = document.currentScript.src), _scriptName && (x = _scriptName), x.startsWith("blob:") ? x = "" : x = x.substr(0, x.replace(/[?#].*/, "").lastIndexOf("/") + 1), ea && (pa = a => {
|
|
692
692
|
var b = new XMLHttpRequest();
|
|
693
693
|
b.open("GET", a, !1);
|
|
694
694
|
b.responseType = "arraybuffer";
|
|
@@ -709,142 +709,142 @@ if (da || ea) {
|
|
|
709
709
|
}
|
|
710
710
|
};
|
|
711
711
|
}
|
|
712
|
-
var ra =
|
|
713
|
-
Object.assign(
|
|
712
|
+
var ra = k.print || console.log.bind(console), A = k.printErr || console.error.bind(console);
|
|
713
|
+
Object.assign(k, ma);
|
|
714
714
|
ma = null;
|
|
715
|
-
|
|
716
|
-
var
|
|
717
|
-
|
|
718
|
-
var
|
|
719
|
-
function
|
|
720
|
-
var a =
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
715
|
+
k.thisProgram && (na = k.thisProgram);
|
|
716
|
+
var sa;
|
|
717
|
+
k.wasmBinary && (sa = k.wasmBinary);
|
|
718
|
+
var ta, ua = !1, C, D, E, va, F, K, wa, xa;
|
|
719
|
+
function ya() {
|
|
720
|
+
var a = ta.buffer;
|
|
721
|
+
k.HEAP8 = C = new Int8Array(a);
|
|
722
|
+
k.HEAP16 = E = new Int16Array(a);
|
|
723
|
+
k.HEAPU8 = D = new Uint8Array(a);
|
|
724
|
+
k.HEAPU16 = va = new Uint16Array(a);
|
|
725
|
+
k.HEAP32 = F = new Int32Array(a);
|
|
726
|
+
k.HEAPU32 = K = new Uint32Array(a);
|
|
727
|
+
k.HEAPF32 = wa = new Float32Array(a);
|
|
728
|
+
k.HEAPF64 = xa = new Float64Array(a);
|
|
729
729
|
}
|
|
730
|
-
var
|
|
731
|
-
function
|
|
732
|
-
var a =
|
|
733
|
-
|
|
730
|
+
var za = [], Aa = [], Ba = [];
|
|
731
|
+
function Ca() {
|
|
732
|
+
var a = k.preRun.shift();
|
|
733
|
+
za.unshift(a);
|
|
734
734
|
}
|
|
735
|
-
var
|
|
736
|
-
function
|
|
737
|
-
|
|
735
|
+
var Da = 0, Ea = null, Fa = null;
|
|
736
|
+
function Ga(a) {
|
|
737
|
+
k.onAbort?.(a);
|
|
738
738
|
a = "Aborted(" + a + ")";
|
|
739
|
-
|
|
740
|
-
|
|
739
|
+
A(a);
|
|
740
|
+
ua = !0;
|
|
741
741
|
a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
|
|
742
742
|
ba(a);
|
|
743
743
|
throw a;
|
|
744
744
|
}
|
|
745
|
-
var
|
|
746
|
-
function
|
|
747
|
-
if (a ==
|
|
748
|
-
return new Uint8Array(
|
|
745
|
+
var Ha = a => a.startsWith("data:application/octet-stream;base64,"), qa = a => a.startsWith("file://"), Ia;
|
|
746
|
+
function Ja(a) {
|
|
747
|
+
if (a == Ia && sa) {
|
|
748
|
+
return new Uint8Array(sa);
|
|
749
749
|
}
|
|
750
750
|
if (pa) {
|
|
751
751
|
return pa(a);
|
|
752
752
|
}
|
|
753
753
|
throw "both async and sync fetching of the wasm failed";
|
|
754
754
|
}
|
|
755
|
-
function
|
|
756
|
-
return
|
|
755
|
+
function Ka(a) {
|
|
756
|
+
return sa ? Promise.resolve().then(() => Ja(a)) : new Promise((b, c) => {
|
|
757
757
|
oa(a, d => b(new Uint8Array(d)), () => {
|
|
758
758
|
try {
|
|
759
|
-
b(
|
|
759
|
+
b(Ja(a));
|
|
760
760
|
} catch (d) {
|
|
761
761
|
c(d);
|
|
762
762
|
}
|
|
763
763
|
});
|
|
764
764
|
});
|
|
765
765
|
}
|
|
766
|
-
function
|
|
767
|
-
return
|
|
768
|
-
|
|
769
|
-
|
|
766
|
+
function La(a, b, c) {
|
|
767
|
+
return Ka(a).then(d => WebAssembly.instantiate(d, b)).then(c, d => {
|
|
768
|
+
A(`failed to asynchronously prepare wasm: ${d}`);
|
|
769
|
+
Ga(d);
|
|
770
770
|
});
|
|
771
771
|
}
|
|
772
|
-
function
|
|
773
|
-
var c =
|
|
774
|
-
return
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
return
|
|
772
|
+
function Ma(a, b) {
|
|
773
|
+
var c = Ia;
|
|
774
|
+
return sa || "function" != typeof WebAssembly.instantiateStreaming || Ha(c) || qa(c) || "function" != typeof fetch ? La(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
|
|
775
|
+
A(`wasm streaming compile failed: ${e}`);
|
|
776
|
+
A("falling back to ArrayBuffer instantiation");
|
|
777
|
+
return La(c, a, b);
|
|
778
778
|
}));
|
|
779
779
|
}
|
|
780
|
-
var
|
|
780
|
+
var Na, Oa, Sa = {571903:(a, b, c, d, e) => {
|
|
781
781
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
782
782
|
return 0;
|
|
783
783
|
}
|
|
784
|
-
if ("undefined" === typeof window.
|
|
785
|
-
window.
|
|
786
|
-
window.
|
|
787
|
-
window.
|
|
788
|
-
window.
|
|
789
|
-
window.
|
|
790
|
-
window.
|
|
791
|
-
window.
|
|
792
|
-
window.
|
|
793
|
-
let f = window.
|
|
794
|
-
f.
|
|
795
|
-
f.
|
|
796
|
-
for (var
|
|
797
|
-
if (null == f.
|
|
798
|
-
return f.
|
|
784
|
+
if ("undefined" === typeof window.miniaudio) {
|
|
785
|
+
window.miniaudio = {referenceCount:0};
|
|
786
|
+
window.miniaudio.device_type = {};
|
|
787
|
+
window.miniaudio.device_type.playback = a;
|
|
788
|
+
window.miniaudio.device_type.capture = b;
|
|
789
|
+
window.miniaudio.device_type.duplex = c;
|
|
790
|
+
window.miniaudio.device_state = {};
|
|
791
|
+
window.miniaudio.device_state.stopped = d;
|
|
792
|
+
window.miniaudio.device_state.started = e;
|
|
793
|
+
let f = window.miniaudio;
|
|
794
|
+
f.devices = [];
|
|
795
|
+
f.track_device = function(g) {
|
|
796
|
+
for (var h = 0; h < f.devices.length; ++h) {
|
|
797
|
+
if (null == f.devices[h]) {
|
|
798
|
+
return f.devices[h] = g, h;
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
|
-
f.
|
|
802
|
-
return f.
|
|
801
|
+
f.devices.push(g);
|
|
802
|
+
return f.devices.length - 1;
|
|
803
803
|
};
|
|
804
|
-
f.
|
|
805
|
-
for (f.
|
|
806
|
-
if (null == f.
|
|
807
|
-
f.
|
|
804
|
+
f.untrack_device_by_index = function(g) {
|
|
805
|
+
for (f.devices[g] = null; 0 < f.devices.length;) {
|
|
806
|
+
if (null == f.devices[f.devices.length - 1]) {
|
|
807
|
+
f.devices.pop();
|
|
808
808
|
} else {
|
|
809
809
|
break;
|
|
810
810
|
}
|
|
811
811
|
}
|
|
812
812
|
};
|
|
813
|
-
f.
|
|
814
|
-
for (var
|
|
815
|
-
if (f.
|
|
816
|
-
return f.
|
|
813
|
+
f.untrack_device = function(g) {
|
|
814
|
+
for (var h = 0; h < f.devices.length; ++h) {
|
|
815
|
+
if (f.devices[h] == g) {
|
|
816
|
+
return f.untrack_device_by_index(h);
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
819
|
};
|
|
820
|
-
f.
|
|
821
|
-
return f.
|
|
820
|
+
f.get_device_by_index = function(g) {
|
|
821
|
+
return f.devices[g];
|
|
822
822
|
};
|
|
823
|
-
f.
|
|
823
|
+
f.unlock_event_types = ["touchend", "click"];
|
|
824
824
|
f.unlock = function() {
|
|
825
|
-
for (var g = 0; g < f.
|
|
826
|
-
var
|
|
827
|
-
null !=
|
|
828
|
-
|
|
829
|
-
},
|
|
830
|
-
console.error("Failed to resume audiocontext",
|
|
825
|
+
for (var g = 0; g < f.devices.length; ++g) {
|
|
826
|
+
var h = f.devices[g];
|
|
827
|
+
null != h && null != h.H && h.state === f.device_state.started && h.H.resume().then(() => {
|
|
828
|
+
Pa(h.gb);
|
|
829
|
+
}, m => {
|
|
830
|
+
console.error("Failed to resume audiocontext", m);
|
|
831
831
|
});
|
|
832
832
|
}
|
|
833
|
-
f.
|
|
834
|
-
document.removeEventListener(
|
|
833
|
+
f.unlock_event_types.map(function(m) {
|
|
834
|
+
document.removeEventListener(m, f.unlock, !0);
|
|
835
835
|
});
|
|
836
836
|
};
|
|
837
|
-
f.
|
|
837
|
+
f.unlock_event_types.map(function(g) {
|
|
838
838
|
document.addEventListener(g, f.unlock, !0);
|
|
839
839
|
});
|
|
840
840
|
}
|
|
841
|
-
window.
|
|
841
|
+
window.miniaudio.referenceCount += 1;
|
|
842
842
|
return 1;
|
|
843
|
-
},
|
|
844
|
-
"undefined" !== typeof window.
|
|
845
|
-
document.removeEventListener(a, window.
|
|
846
|
-
}), --window.
|
|
847
|
-
},
|
|
843
|
+
}, 574081:() => {
|
|
844
|
+
"undefined" !== typeof window.miniaudio && (window.miniaudio.unlock_event_types.map(function(a) {
|
|
845
|
+
document.removeEventListener(a, window.miniaudio.unlock, !0);
|
|
846
|
+
}), --window.miniaudio.referenceCount, 0 === window.miniaudio.referenceCount && delete window.miniaudio);
|
|
847
|
+
}, 574385:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 574489:() => {
|
|
848
848
|
try {
|
|
849
849
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
850
850
|
a.close();
|
|
@@ -852,81 +852,81 @@ var Oa, Pa, Ta = {571647:(a, b, c, d, e) => {
|
|
|
852
852
|
} catch (c) {
|
|
853
853
|
return 0;
|
|
854
854
|
}
|
|
855
|
-
},
|
|
856
|
-
if ("undefined" === typeof window.
|
|
855
|
+
}, 574660:(a, b, c, d, e, f) => {
|
|
856
|
+
if ("undefined" === typeof window.miniaudio) {
|
|
857
857
|
return -1;
|
|
858
858
|
}
|
|
859
|
-
var g = {},
|
|
860
|
-
a == window.
|
|
861
|
-
g.
|
|
862
|
-
g.
|
|
863
|
-
g.state = window.
|
|
859
|
+
var g = {}, h = {};
|
|
860
|
+
a == window.miniaudio.device_type.playback && 0 != c && (h.sampleRate = c);
|
|
861
|
+
g.H = new (window.AudioContext || window.webkitAudioContext)(h);
|
|
862
|
+
g.H.suspend();
|
|
863
|
+
g.state = window.miniaudio.device_state.stopped;
|
|
864
864
|
c = 0;
|
|
865
|
-
a != window.
|
|
866
|
-
g.
|
|
867
|
-
g.
|
|
868
|
-
if (null == g.
|
|
869
|
-
g.
|
|
865
|
+
a != window.miniaudio.device_type.playback && (c = b);
|
|
866
|
+
g.V = g.H.createScriptProcessor(d, c, b);
|
|
867
|
+
g.V.onaudioprocess = function(m) {
|
|
868
|
+
if (null == g.ra || 0 == g.ra.length) {
|
|
869
|
+
g.ra = new Float32Array(wa.buffer, e, d * b);
|
|
870
870
|
}
|
|
871
|
-
if (a == window.
|
|
872
|
-
for (var
|
|
873
|
-
for (var
|
|
874
|
-
|
|
871
|
+
if (a == window.miniaudio.device_type.capture || a == window.miniaudio.device_type.duplex) {
|
|
872
|
+
for (var l = 0; l < b; l += 1) {
|
|
873
|
+
for (var r = m.inputBuffer.getChannelData(l), u = g.ra, w = 0; w < d; w += 1) {
|
|
874
|
+
u[w * b + l] = r[w];
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
|
-
|
|
877
|
+
Qa(f, d, e);
|
|
878
878
|
}
|
|
879
|
-
if (a == window.
|
|
880
|
-
for (
|
|
881
|
-
for (
|
|
882
|
-
|
|
879
|
+
if (a == window.miniaudio.device_type.playback || a == window.miniaudio.device_type.duplex) {
|
|
880
|
+
for (Ra(f, d, e), l = 0; l < m.outputBuffer.numberOfChannels; ++l) {
|
|
881
|
+
for (r = m.outputBuffer.getChannelData(l), u = g.ra, w = 0; w < d; w += 1) {
|
|
882
|
+
r[w] = u[w * b + l];
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
885
|
} else {
|
|
886
|
-
for (
|
|
887
|
-
|
|
886
|
+
for (l = 0; l < m.outputBuffer.numberOfChannels; ++l) {
|
|
887
|
+
m.outputBuffer.getChannelData(l).fill(0.0);
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
890
|
};
|
|
891
|
-
a != window.
|
|
892
|
-
g.
|
|
893
|
-
g.
|
|
894
|
-
g.
|
|
895
|
-
}).catch(function(
|
|
896
|
-
console.log("Failed to get user media: " +
|
|
891
|
+
a != window.miniaudio.device_type.capture && a != window.miniaudio.device_type.duplex || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(m) {
|
|
892
|
+
g.Ba = g.H.createMediaStreamSource(m);
|
|
893
|
+
g.Ba.connect(g.V);
|
|
894
|
+
g.V.connect(g.H.destination);
|
|
895
|
+
}).catch(function(m) {
|
|
896
|
+
console.log("Failed to get user media: " + m);
|
|
897
897
|
});
|
|
898
|
-
a == window.
|
|
899
|
-
g.
|
|
900
|
-
return window.
|
|
901
|
-
},
|
|
902
|
-
a = window.
|
|
903
|
-
void 0 !== a.
|
|
904
|
-
}, a.
|
|
905
|
-
void 0 !== a.
|
|
906
|
-
a.
|
|
907
|
-
a.
|
|
908
|
-
a.
|
|
909
|
-
},
|
|
910
|
-
window.
|
|
911
|
-
},
|
|
912
|
-
a = window.
|
|
913
|
-
a.
|
|
914
|
-
a.state = window.
|
|
915
|
-
},
|
|
916
|
-
a = window.
|
|
917
|
-
a.
|
|
918
|
-
a.state = window.
|
|
919
|
-
}},
|
|
898
|
+
a == window.miniaudio.device_type.playback && g.V.connect(g.H.destination);
|
|
899
|
+
g.gb = f;
|
|
900
|
+
return window.miniaudio.track_device(g);
|
|
901
|
+
}, 577537:a => window.miniaudio.get_device_by_index(a).H.sampleRate, 577610:a => {
|
|
902
|
+
a = window.miniaudio.get_device_by_index(a);
|
|
903
|
+
void 0 !== a.V && (a.V.onaudioprocess = function() {
|
|
904
|
+
}, a.V.disconnect(), a.V = void 0);
|
|
905
|
+
void 0 !== a.Ba && (a.Ba.disconnect(), a.Ba = void 0);
|
|
906
|
+
a.H.close();
|
|
907
|
+
a.H = void 0;
|
|
908
|
+
a.gb = void 0;
|
|
909
|
+
}, 578010:a => {
|
|
910
|
+
window.miniaudio.untrack_device_by_index(a);
|
|
911
|
+
}, 578060:a => {
|
|
912
|
+
a = window.miniaudio.get_device_by_index(a);
|
|
913
|
+
a.H.resume();
|
|
914
|
+
a.state = window.miniaudio.device_state.started;
|
|
915
|
+
}, 578199:a => {
|
|
916
|
+
a = window.miniaudio.get_device_by_index(a);
|
|
917
|
+
a.H.suspend();
|
|
918
|
+
a.state = window.miniaudio.device_state.stopped;
|
|
919
|
+
}}, Ta = a => {
|
|
920
920
|
for (; 0 < a.length;) {
|
|
921
|
-
a.shift()(
|
|
921
|
+
a.shift()(k);
|
|
922
922
|
}
|
|
923
923
|
};
|
|
924
|
-
function
|
|
925
|
-
var a = F[+
|
|
926
|
-
|
|
924
|
+
function Ua() {
|
|
925
|
+
var a = F[+Va >> 2];
|
|
926
|
+
Va += 4;
|
|
927
927
|
return a;
|
|
928
928
|
}
|
|
929
|
-
var
|
|
929
|
+
var Wa = (a, b) => {
|
|
930
930
|
for (var c = 0, d = a.length - 1; 0 <= d; d--) {
|
|
931
931
|
var e = a[d];
|
|
932
932
|
"." === e ? a.splice(d, 1) : ".." === e ? (a.splice(d, 1), c++) : c && (a.splice(d, 1), c--);
|
|
@@ -937,12 +937,12 @@ var Xa = (a, b) => {
|
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
939
|
return a;
|
|
940
|
-
},
|
|
940
|
+
}, Xa = a => {
|
|
941
941
|
var b = "/" === a.charAt(0), c = "/" === a.substr(-1);
|
|
942
|
-
(a =
|
|
942
|
+
(a = Wa(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
|
|
943
943
|
a && c && (a += "/");
|
|
944
944
|
return (b ? "/" : "") + a;
|
|
945
|
-
},
|
|
945
|
+
}, Ya = a => {
|
|
946
946
|
var b = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);
|
|
947
947
|
a = b[0];
|
|
948
948
|
b = b[1];
|
|
@@ -951,20 +951,20 @@ var Xa = (a, b) => {
|
|
|
951
951
|
}
|
|
952
952
|
b &&= b.substr(0, b.length - 1);
|
|
953
953
|
return a + b;
|
|
954
|
-
},
|
|
954
|
+
}, Za = a => {
|
|
955
955
|
if ("/" === a) {
|
|
956
956
|
return "/";
|
|
957
957
|
}
|
|
958
|
-
a =
|
|
958
|
+
a = Xa(a);
|
|
959
959
|
a = a.replace(/\/$/, "");
|
|
960
960
|
var b = a.lastIndexOf("/");
|
|
961
961
|
return -1 === b ? a : a.substr(b + 1);
|
|
962
|
-
},
|
|
962
|
+
}, $a = () => {
|
|
963
963
|
if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
|
|
964
964
|
return a => crypto.getRandomValues(a);
|
|
965
965
|
}
|
|
966
|
-
|
|
967
|
-
},
|
|
966
|
+
Ga("initRandomDevice");
|
|
967
|
+
}, ab = a => (ab = $a())(a), bb = (...a) => {
|
|
968
968
|
for (var b = "", c = !1, d = a.length - 1; -1 <= d && !c; d--) {
|
|
969
969
|
c = 0 <= d ? a[d] : "/";
|
|
970
970
|
if ("string" != typeof c) {
|
|
@@ -976,15 +976,15 @@ var Xa = (a, b) => {
|
|
|
976
976
|
b = c + "/" + b;
|
|
977
977
|
c = "/" === c.charAt(0);
|
|
978
978
|
}
|
|
979
|
-
b =
|
|
979
|
+
b = Wa(b.split("/").filter(e => !!e), !c).join("/");
|
|
980
980
|
return (c ? "/" : "") + b || ".";
|
|
981
|
-
},
|
|
981
|
+
}, cb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, L = (a, b, c) => {
|
|
982
982
|
var d = b + c;
|
|
983
983
|
for (c = b; a[c] && !(c >= d);) {
|
|
984
984
|
++c;
|
|
985
985
|
}
|
|
986
|
-
if (16 < c - b && a.buffer &&
|
|
987
|
-
return
|
|
986
|
+
if (16 < c - b && a.buffer && cb) {
|
|
987
|
+
return cb.decode(a.subarray(b, c));
|
|
988
988
|
}
|
|
989
989
|
for (d = ""; b < c;) {
|
|
990
990
|
var e = a[b++];
|
|
@@ -1002,13 +1002,13 @@ var Xa = (a, b) => {
|
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
return d;
|
|
1005
|
-
},
|
|
1005
|
+
}, db = [], eb = a => {
|
|
1006
1006
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
1007
1007
|
var d = a.charCodeAt(c);
|
|
1008
1008
|
127 >= d ? b++ : 2047 >= d ? b += 2 : 55296 <= d && 57343 >= d ? (b += 4, ++c) : b += 3;
|
|
1009
1009
|
}
|
|
1010
1010
|
return b;
|
|
1011
|
-
},
|
|
1011
|
+
}, fb = (a, b, c, d) => {
|
|
1012
1012
|
if (!(0 < d)) {
|
|
1013
1013
|
return 0;
|
|
1014
1014
|
}
|
|
@@ -1017,8 +1017,8 @@ var Xa = (a, b) => {
|
|
|
1017
1017
|
for (var f = 0; f < a.length; ++f) {
|
|
1018
1018
|
var g = a.charCodeAt(f);
|
|
1019
1019
|
if (55296 <= g && 57343 >= g) {
|
|
1020
|
-
var
|
|
1021
|
-
g = 65536 + ((g & 1023) << 10) |
|
|
1020
|
+
var h = a.charCodeAt(++f);
|
|
1021
|
+
g = 65536 + ((g & 1023) << 10) | h & 1023;
|
|
1022
1022
|
}
|
|
1023
1023
|
if (127 >= g) {
|
|
1024
1024
|
if (c >= d) {
|
|
@@ -1052,36 +1052,36 @@ var Xa = (a, b) => {
|
|
|
1052
1052
|
b[c] = 0;
|
|
1053
1053
|
return c - e;
|
|
1054
1054
|
};
|
|
1055
|
-
function
|
|
1056
|
-
var c = Array(
|
|
1057
|
-
a =
|
|
1055
|
+
function gb(a, b) {
|
|
1056
|
+
var c = Array(eb(a) + 1);
|
|
1057
|
+
a = fb(a, c, 0, c.length);
|
|
1058
1058
|
b && (c.length = a);
|
|
1059
1059
|
return c;
|
|
1060
1060
|
}
|
|
1061
|
-
var
|
|
1062
|
-
function
|
|
1063
|
-
|
|
1064
|
-
|
|
1061
|
+
var hb = [];
|
|
1062
|
+
function ib(a, b) {
|
|
1063
|
+
hb[a] = {input:[], F:[], S:b};
|
|
1064
|
+
jb(a, kb);
|
|
1065
1065
|
}
|
|
1066
|
-
var
|
|
1067
|
-
var b =
|
|
1066
|
+
var kb = {open(a) {
|
|
1067
|
+
var b = hb[a.node.Aa];
|
|
1068
1068
|
if (!b) {
|
|
1069
1069
|
throw new M(43);
|
|
1070
1070
|
}
|
|
1071
|
-
a.
|
|
1071
|
+
a.o = b;
|
|
1072
1072
|
a.seekable = !1;
|
|
1073
1073
|
}, close(a) {
|
|
1074
|
-
a.
|
|
1075
|
-
},
|
|
1076
|
-
a.
|
|
1074
|
+
a.o.S.pa(a.o);
|
|
1075
|
+
}, pa(a) {
|
|
1076
|
+
a.o.S.pa(a.o);
|
|
1077
1077
|
}, read(a, b, c, d) {
|
|
1078
|
-
if (!a.
|
|
1078
|
+
if (!a.o || !a.o.S.$a) {
|
|
1079
1079
|
throw new M(60);
|
|
1080
1080
|
}
|
|
1081
1081
|
for (var e = 0, f = 0; f < d; f++) {
|
|
1082
1082
|
try {
|
|
1083
|
-
var g = a.
|
|
1084
|
-
} catch (
|
|
1083
|
+
var g = a.o.S.$a(a.o);
|
|
1084
|
+
} catch (h) {
|
|
1085
1085
|
throw new M(29);
|
|
1086
1086
|
}
|
|
1087
1087
|
if (void 0 === g && 0 === e) {
|
|
@@ -1096,146 +1096,146 @@ var lb = {open(a) {
|
|
|
1096
1096
|
e && (a.node.timestamp = Date.now());
|
|
1097
1097
|
return e;
|
|
1098
1098
|
}, write(a, b, c, d) {
|
|
1099
|
-
if (!a.
|
|
1099
|
+
if (!a.o || !a.o.S.Ma) {
|
|
1100
1100
|
throw new M(60);
|
|
1101
1101
|
}
|
|
1102
1102
|
try {
|
|
1103
1103
|
for (var e = 0; e < d; e++) {
|
|
1104
|
-
a.
|
|
1104
|
+
a.o.S.Ma(a.o, b[c + e]);
|
|
1105
1105
|
}
|
|
1106
1106
|
} catch (f) {
|
|
1107
1107
|
throw new M(29);
|
|
1108
1108
|
}
|
|
1109
1109
|
d && (a.node.timestamp = Date.now());
|
|
1110
1110
|
return e;
|
|
1111
|
-
},},
|
|
1111
|
+
},}, lb = {$a() {
|
|
1112
1112
|
a: {
|
|
1113
|
-
if (!
|
|
1113
|
+
if (!db.length) {
|
|
1114
1114
|
var a = null;
|
|
1115
1115
|
"undefined" != typeof window && "function" == typeof window.prompt && (a = window.prompt("Input: "), null !== a && (a += "\n"));
|
|
1116
1116
|
if (!a) {
|
|
1117
1117
|
a = null;
|
|
1118
1118
|
break a;
|
|
1119
1119
|
}
|
|
1120
|
-
|
|
1120
|
+
db = gb(a, !0);
|
|
1121
1121
|
}
|
|
1122
|
-
a =
|
|
1122
|
+
a = db.shift();
|
|
1123
1123
|
}
|
|
1124
1124
|
return a;
|
|
1125
|
-
},
|
|
1126
|
-
null === b || 10 === b ? (ra(L(a.
|
|
1127
|
-
},
|
|
1128
|
-
a.
|
|
1129
|
-
},
|
|
1130
|
-
return {
|
|
1131
|
-
},
|
|
1125
|
+
}, Ma(a, b) {
|
|
1126
|
+
null === b || 10 === b ? (ra(L(a.F, 0)), a.F = []) : 0 != b && a.F.push(b);
|
|
1127
|
+
}, pa(a) {
|
|
1128
|
+
a.F && 0 < a.F.length && (ra(L(a.F, 0)), a.F = []);
|
|
1129
|
+
}, Nb() {
|
|
1130
|
+
return {nc:25856, pc:5, mc:191, oc:35387, lc:[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,]};
|
|
1131
|
+
}, Ob() {
|
|
1132
1132
|
return 0;
|
|
1133
|
-
},
|
|
1133
|
+
}, Pb() {
|
|
1134
1134
|
return [24, 80];
|
|
1135
|
-
},},
|
|
1136
|
-
null === b || 10 === b ? (
|
|
1137
|
-
},
|
|
1138
|
-
a.
|
|
1135
|
+
},}, mb = {Ma(a, b) {
|
|
1136
|
+
null === b || 10 === b ? (A(L(a.F, 0)), a.F = []) : 0 != b && a.F.push(b);
|
|
1137
|
+
}, pa(a) {
|
|
1138
|
+
a.F && 0 < a.F.length && (A(L(a.F, 0)), a.F = []);
|
|
1139
1139
|
},};
|
|
1140
|
-
function
|
|
1141
|
-
var c = a.
|
|
1142
|
-
c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.
|
|
1140
|
+
function ob(a, b) {
|
|
1141
|
+
var c = a.j ? a.j.length : 0;
|
|
1142
|
+
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.u && a.j.set(c.subarray(0, a.u), 0));
|
|
1143
1143
|
}
|
|
1144
|
-
var N = {
|
|
1144
|
+
var N = {K:null, R() {
|
|
1145
1145
|
return N.createNode(null, "/", 16895, 0);
|
|
1146
1146
|
}, createNode(a, b, c, d) {
|
|
1147
1147
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
1148
1148
|
throw new M(63);
|
|
1149
1149
|
}
|
|
1150
|
-
N.
|
|
1151
|
-
c =
|
|
1152
|
-
16384 === (c.mode & 61440) ? (c.
|
|
1150
|
+
N.K || (N.K = {dir:{node:{U:N.i.U, M:N.i.M, ha:N.i.ha, xa:N.i.xa, lb:N.i.lb, pb:N.i.pb, mb:N.i.mb, kb:N.i.kb, Ca:N.i.Ca}, stream:{Z:N.l.Z}}, file:{node:{U:N.i.U, M:N.i.M}, stream:{Z:N.l.Z, read:N.l.read, write:N.l.write, Ta:N.l.Ta, bb:N.l.bb, eb:N.l.eb}}, link:{node:{U:N.i.U, M:N.i.M, ia:N.i.ia}, stream:{}}, Ua:{node:{U:N.i.U, M:N.i.M}, stream:pb}});
|
|
1151
|
+
c = qb(a, b, c, d);
|
|
1152
|
+
16384 === (c.mode & 61440) ? (c.i = N.K.dir.node, c.l = N.K.dir.stream, c.j = {}) : 32768 === (c.mode & 61440) ? (c.i = N.K.file.node, c.l = N.K.file.stream, c.u = 0, c.j = null) : 40960 === (c.mode & 61440) ? (c.i = N.K.link.node, c.l = N.K.link.stream) : 8192 === (c.mode & 61440) && (c.i = N.K.Ua.node, c.l = N.K.Ua.stream);
|
|
1153
1153
|
c.timestamp = Date.now();
|
|
1154
|
-
a && (a.
|
|
1154
|
+
a && (a.j[b] = c, a.timestamp = c.timestamp);
|
|
1155
1155
|
return c;
|
|
1156
|
-
},
|
|
1157
|
-
return a.
|
|
1158
|
-
},
|
|
1156
|
+
}, vc(a) {
|
|
1157
|
+
return a.j ? a.j.subarray ? a.j.subarray(0, a.u) : new Uint8Array(a.j) : new Uint8Array(0);
|
|
1158
|
+
}, i:{U(a) {
|
|
1159
1159
|
var b = {};
|
|
1160
|
-
b.
|
|
1161
|
-
b.
|
|
1160
|
+
b.sc = 8192 === (a.mode & 61440) ? a.id : 1;
|
|
1161
|
+
b.xc = a.id;
|
|
1162
1162
|
b.mode = a.mode;
|
|
1163
|
-
b.
|
|
1163
|
+
b.Dc = 1;
|
|
1164
1164
|
b.uid = 0;
|
|
1165
|
-
b.
|
|
1166
|
-
b.
|
|
1167
|
-
16384 === (a.mode & 61440) ? b.size = 4096 : 32768 === (a.mode & 61440) ? b.size = a.
|
|
1168
|
-
b.
|
|
1169
|
-
b.
|
|
1170
|
-
b.
|
|
1171
|
-
b.
|
|
1172
|
-
b.
|
|
1165
|
+
b.wc = 0;
|
|
1166
|
+
b.Aa = a.Aa;
|
|
1167
|
+
16384 === (a.mode & 61440) ? b.size = 4096 : 32768 === (a.mode & 61440) ? b.size = a.u : 40960 === (a.mode & 61440) ? b.size = a.link.length : b.size = 0;
|
|
1168
|
+
b.jc = new Date(a.timestamp);
|
|
1169
|
+
b.Cc = new Date(a.timestamp);
|
|
1170
|
+
b.qc = new Date(a.timestamp);
|
|
1171
|
+
b.xb = 4096;
|
|
1172
|
+
b.kc = Math.ceil(b.size / b.xb);
|
|
1173
1173
|
return b;
|
|
1174
|
-
},
|
|
1174
|
+
}, M(a, b) {
|
|
1175
1175
|
void 0 !== b.mode && (a.mode = b.mode);
|
|
1176
1176
|
void 0 !== b.timestamp && (a.timestamp = b.timestamp);
|
|
1177
|
-
if (void 0 !== b.size && (b = b.size, a.
|
|
1177
|
+
if (void 0 !== b.size && (b = b.size, a.u != b)) {
|
|
1178
1178
|
if (0 == b) {
|
|
1179
|
-
a.
|
|
1179
|
+
a.j = null, a.u = 0;
|
|
1180
1180
|
} else {
|
|
1181
|
-
var c = a.
|
|
1182
|
-
a.
|
|
1183
|
-
c && a.
|
|
1184
|
-
a.
|
|
1181
|
+
var c = a.j;
|
|
1182
|
+
a.j = new Uint8Array(b);
|
|
1183
|
+
c && a.j.set(c.subarray(0, Math.min(b, a.u)));
|
|
1184
|
+
a.u = b;
|
|
1185
1185
|
}
|
|
1186
1186
|
}
|
|
1187
|
-
},
|
|
1188
|
-
throw
|
|
1189
|
-
},
|
|
1187
|
+
}, ha() {
|
|
1188
|
+
throw rb[44];
|
|
1189
|
+
}, xa(a, b, c, d) {
|
|
1190
1190
|
return N.createNode(a, b, c, d);
|
|
1191
|
-
},
|
|
1191
|
+
}, lb(a, b, c) {
|
|
1192
1192
|
if (16384 === (a.mode & 61440)) {
|
|
1193
1193
|
try {
|
|
1194
|
-
var d =
|
|
1194
|
+
var d = sb(b, c);
|
|
1195
1195
|
} catch (f) {
|
|
1196
1196
|
}
|
|
1197
1197
|
if (d) {
|
|
1198
|
-
for (var e in d.
|
|
1198
|
+
for (var e in d.j) {
|
|
1199
1199
|
throw new M(55);
|
|
1200
1200
|
}
|
|
1201
1201
|
}
|
|
1202
1202
|
}
|
|
1203
|
-
delete a.parent.
|
|
1203
|
+
delete a.parent.j[a.name];
|
|
1204
1204
|
a.parent.timestamp = Date.now();
|
|
1205
1205
|
a.name = c;
|
|
1206
|
-
b.
|
|
1206
|
+
b.j[c] = a;
|
|
1207
1207
|
b.timestamp = a.parent.timestamp;
|
|
1208
|
-
},
|
|
1209
|
-
delete a.
|
|
1208
|
+
}, pb(a, b) {
|
|
1209
|
+
delete a.j[b];
|
|
1210
1210
|
a.timestamp = Date.now();
|
|
1211
|
-
},
|
|
1212
|
-
var c =
|
|
1213
|
-
for (d in c.
|
|
1211
|
+
}, mb(a, b) {
|
|
1212
|
+
var c = sb(a, b), d;
|
|
1213
|
+
for (d in c.j) {
|
|
1214
1214
|
throw new M(55);
|
|
1215
1215
|
}
|
|
1216
|
-
delete a.
|
|
1216
|
+
delete a.j[b];
|
|
1217
1217
|
a.timestamp = Date.now();
|
|
1218
|
-
},
|
|
1218
|
+
}, kb(a) {
|
|
1219
1219
|
var b = [".", ".."], c;
|
|
1220
|
-
for (c of Object.keys(a.
|
|
1220
|
+
for (c of Object.keys(a.j)) {
|
|
1221
1221
|
b.push(c);
|
|
1222
1222
|
}
|
|
1223
1223
|
return b;
|
|
1224
|
-
},
|
|
1224
|
+
}, Ca(a, b, c) {
|
|
1225
1225
|
a = N.createNode(a, b, 41471, 0);
|
|
1226
1226
|
a.link = c;
|
|
1227
1227
|
return a;
|
|
1228
|
-
},
|
|
1228
|
+
}, ia(a) {
|
|
1229
1229
|
if (40960 !== (a.mode & 61440)) {
|
|
1230
1230
|
throw new M(28);
|
|
1231
1231
|
}
|
|
1232
1232
|
return a.link;
|
|
1233
|
-
},},
|
|
1234
|
-
var f = a.node.
|
|
1235
|
-
if (e >= a.node.
|
|
1233
|
+
},}, l:{read(a, b, c, d, e) {
|
|
1234
|
+
var f = a.node.j;
|
|
1235
|
+
if (e >= a.node.u) {
|
|
1236
1236
|
return 0;
|
|
1237
1237
|
}
|
|
1238
|
-
a = Math.min(a.node.
|
|
1238
|
+
a = Math.min(a.node.u - e, d);
|
|
1239
1239
|
if (8 < a && f.subarray) {
|
|
1240
1240
|
b.set(f.subarray(e, e + a), c);
|
|
1241
1241
|
} else {
|
|
@@ -1245,104 +1245,104 @@ var N = {N:null, U() {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
return a;
|
|
1247
1247
|
}, write(a, b, c, d, e, f) {
|
|
1248
|
-
b.buffer ===
|
|
1248
|
+
b.buffer === C.buffer && (f = !1);
|
|
1249
1249
|
if (!d) {
|
|
1250
1250
|
return 0;
|
|
1251
1251
|
}
|
|
1252
1252
|
a = a.node;
|
|
1253
1253
|
a.timestamp = Date.now();
|
|
1254
|
-
if (b.subarray && (!a.
|
|
1254
|
+
if (b.subarray && (!a.j || a.j.subarray)) {
|
|
1255
1255
|
if (f) {
|
|
1256
|
-
return a.
|
|
1256
|
+
return a.j = b.subarray(c, c + d), a.u = d;
|
|
1257
1257
|
}
|
|
1258
|
-
if (0 === a.
|
|
1259
|
-
return a.
|
|
1258
|
+
if (0 === a.u && 0 === e) {
|
|
1259
|
+
return a.j = b.slice(c, c + d), a.u = d;
|
|
1260
1260
|
}
|
|
1261
|
-
if (e + d <= a.
|
|
1262
|
-
return a.
|
|
1261
|
+
if (e + d <= a.u) {
|
|
1262
|
+
return a.j.set(b.subarray(c, c + d), e), d;
|
|
1263
1263
|
}
|
|
1264
1264
|
}
|
|
1265
|
-
|
|
1266
|
-
if (a.
|
|
1267
|
-
a.
|
|
1265
|
+
ob(a, e + d);
|
|
1266
|
+
if (a.j.subarray && b.subarray) {
|
|
1267
|
+
a.j.set(b.subarray(c, c + d), e);
|
|
1268
1268
|
} else {
|
|
1269
1269
|
for (f = 0; f < d; f++) {
|
|
1270
|
-
a.
|
|
1270
|
+
a.j[e + f] = b[c + f];
|
|
1271
1271
|
}
|
|
1272
1272
|
}
|
|
1273
|
-
a.
|
|
1273
|
+
a.u = Math.max(a.u, e + d);
|
|
1274
1274
|
return d;
|
|
1275
|
-
},
|
|
1276
|
-
1 === c ? b += a.position : 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.
|
|
1275
|
+
}, Z(a, b, c) {
|
|
1276
|
+
1 === c ? b += a.position : 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.u);
|
|
1277
1277
|
if (0 > b) {
|
|
1278
1278
|
throw new M(28);
|
|
1279
1279
|
}
|
|
1280
1280
|
return b;
|
|
1281
|
-
},
|
|
1282
|
-
|
|
1283
|
-
a.node.
|
|
1284
|
-
},
|
|
1281
|
+
}, Ta(a, b, c) {
|
|
1282
|
+
ob(a.node, b + c);
|
|
1283
|
+
a.node.u = Math.max(a.node.u, b + c);
|
|
1284
|
+
}, bb(a, b, c, d, e) {
|
|
1285
1285
|
if (32768 !== (a.node.mode & 61440)) {
|
|
1286
1286
|
throw new M(43);
|
|
1287
1287
|
}
|
|
1288
|
-
a = a.node.
|
|
1289
|
-
if (e & 2 || a.buffer !==
|
|
1288
|
+
a = a.node.j;
|
|
1289
|
+
if (e & 2 || a.buffer !== C.buffer) {
|
|
1290
1290
|
if (0 < c || c + b < a.length) {
|
|
1291
1291
|
a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
|
|
1292
1292
|
}
|
|
1293
1293
|
c = !0;
|
|
1294
|
-
|
|
1294
|
+
Ga();
|
|
1295
1295
|
b = void 0;
|
|
1296
1296
|
if (!b) {
|
|
1297
1297
|
throw new M(48);
|
|
1298
1298
|
}
|
|
1299
|
-
|
|
1299
|
+
C.set(a, b);
|
|
1300
1300
|
} else {
|
|
1301
1301
|
c = !1, b = a.byteOffset;
|
|
1302
1302
|
}
|
|
1303
|
-
return {
|
|
1304
|
-
},
|
|
1305
|
-
N.
|
|
1303
|
+
return {m:b, ic:c};
|
|
1304
|
+
}, eb(a, b, c, d) {
|
|
1305
|
+
N.l.write(a, b, 0, d, c, !1);
|
|
1306
1306
|
return 0;
|
|
1307
|
-
},},},
|
|
1307
|
+
},},}, tb = (a, b) => {
|
|
1308
1308
|
var c = 0;
|
|
1309
1309
|
a && (c |= 365);
|
|
1310
1310
|
b && (c |= 146);
|
|
1311
1311
|
return c;
|
|
1312
|
-
},
|
|
1312
|
+
}, ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, M = class {
|
|
1313
1313
|
constructor(a) {
|
|
1314
1314
|
this.name = "ErrnoError";
|
|
1315
|
-
this.
|
|
1315
|
+
this.Y = a;
|
|
1316
1316
|
}
|
|
1317
|
-
},
|
|
1317
|
+
}, rb = {}, Ab = class {
|
|
1318
1318
|
constructor() {
|
|
1319
|
-
this.
|
|
1319
|
+
this.qa = {};
|
|
1320
1320
|
this.node = null;
|
|
1321
1321
|
}
|
|
1322
1322
|
get flags() {
|
|
1323
|
-
return this.
|
|
1323
|
+
return this.qa.flags;
|
|
1324
1324
|
}
|
|
1325
1325
|
set flags(a) {
|
|
1326
|
-
this.
|
|
1326
|
+
this.qa.flags = a;
|
|
1327
1327
|
}
|
|
1328
1328
|
get position() {
|
|
1329
|
-
return this.
|
|
1329
|
+
return this.qa.position;
|
|
1330
1330
|
}
|
|
1331
1331
|
set position(a) {
|
|
1332
|
-
this.
|
|
1332
|
+
this.qa.position = a;
|
|
1333
1333
|
}
|
|
1334
|
-
},
|
|
1334
|
+
}, Bb = class {
|
|
1335
1335
|
constructor(a, b, c, d) {
|
|
1336
1336
|
a ||= this;
|
|
1337
1337
|
this.parent = a;
|
|
1338
|
-
this.
|
|
1339
|
-
this.
|
|
1340
|
-
this.id =
|
|
1338
|
+
this.R = a.R;
|
|
1339
|
+
this.ya = null;
|
|
1340
|
+
this.id = xb++;
|
|
1341
1341
|
this.name = b;
|
|
1342
1342
|
this.mode = c;
|
|
1343
|
-
this.
|
|
1344
|
-
this.
|
|
1345
|
-
this.
|
|
1343
|
+
this.i = {};
|
|
1344
|
+
this.l = {};
|
|
1345
|
+
this.Aa = d;
|
|
1346
1346
|
}
|
|
1347
1347
|
get read() {
|
|
1348
1348
|
return 365 === (this.mode & 365);
|
|
@@ -1357,27 +1357,27 @@ var N = {N:null, U() {
|
|
|
1357
1357
|
a ? this.mode |= 146 : this.mode &= -147;
|
|
1358
1358
|
}
|
|
1359
1359
|
};
|
|
1360
|
-
function
|
|
1361
|
-
a =
|
|
1360
|
+
function Cb(a, b = {}) {
|
|
1361
|
+
a = bb(a);
|
|
1362
1362
|
if (!a) {
|
|
1363
1363
|
return {path:"", node:null};
|
|
1364
1364
|
}
|
|
1365
|
-
b = Object.assign({
|
|
1366
|
-
if (8 < b.
|
|
1365
|
+
b = Object.assign({Za:!0, Oa:0}, b);
|
|
1366
|
+
if (8 < b.Oa) {
|
|
1367
1367
|
throw new M(32);
|
|
1368
1368
|
}
|
|
1369
1369
|
a = a.split("/").filter(g => !!g);
|
|
1370
|
-
for (var c =
|
|
1370
|
+
for (var c = ub, d = "/", e = 0; e < a.length; e++) {
|
|
1371
1371
|
var f = e === a.length - 1;
|
|
1372
1372
|
if (f && b.parent) {
|
|
1373
1373
|
break;
|
|
1374
1374
|
}
|
|
1375
|
-
c =
|
|
1376
|
-
d =
|
|
1377
|
-
c.
|
|
1378
|
-
if (!f || b.
|
|
1375
|
+
c = sb(c, a[e]);
|
|
1376
|
+
d = Xa(d + "/" + a[e]);
|
|
1377
|
+
c.ya && (!f || f && b.Za) && (c = c.ya.root);
|
|
1378
|
+
if (!f || b.Ya) {
|
|
1379
1379
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
1380
|
-
if (c =
|
|
1380
|
+
if (c = Db(d), d = bb(Ya(d), c), c = Cb(d, {Oa:b.Oa + 1}).node, 40 < f++) {
|
|
1381
1381
|
throw new M(32);
|
|
1382
1382
|
}
|
|
1383
1383
|
}
|
|
@@ -1385,47 +1385,47 @@ function Db(a, b = {}) {
|
|
|
1385
1385
|
}
|
|
1386
1386
|
return {path:d, node:c};
|
|
1387
1387
|
}
|
|
1388
|
-
function
|
|
1388
|
+
function Eb(a) {
|
|
1389
1389
|
for (var b;;) {
|
|
1390
1390
|
if (a === a.parent) {
|
|
1391
|
-
return a = a.
|
|
1391
|
+
return a = a.R.cb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
|
|
1392
1392
|
}
|
|
1393
1393
|
b = b ? `${a.name}/${b}` : a.name;
|
|
1394
1394
|
a = a.parent;
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1397
|
+
function Fb(a, b) {
|
|
1398
1398
|
for (var c = 0, d = 0; d < b.length; d++) {
|
|
1399
1399
|
c = (c << 5) - c + b.charCodeAt(d) | 0;
|
|
1400
1400
|
}
|
|
1401
|
-
return (a + c >>> 0) %
|
|
1401
|
+
return (a + c >>> 0) % yb.length;
|
|
1402
1402
|
}
|
|
1403
|
-
function
|
|
1404
|
-
var c = 16384 === (a.mode & 61440) ? (c =
|
|
1403
|
+
function sb(a, b) {
|
|
1404
|
+
var c = 16384 === (a.mode & 61440) ? (c = Gb(a, "x")) ? c : a.i.ha ? 0 : 2 : 54;
|
|
1405
1405
|
if (c) {
|
|
1406
1406
|
throw new M(c);
|
|
1407
1407
|
}
|
|
1408
|
-
for (c =
|
|
1408
|
+
for (c = yb[Fb(a.id, b)]; c; c = c.Sb) {
|
|
1409
1409
|
var d = c.name;
|
|
1410
1410
|
if (c.parent.id === a.id && d === b) {
|
|
1411
1411
|
return c;
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
1414
|
-
return a.
|
|
1414
|
+
return a.i.ha(a, b);
|
|
1415
1415
|
}
|
|
1416
|
-
function
|
|
1417
|
-
a = new
|
|
1418
|
-
b =
|
|
1419
|
-
a.
|
|
1420
|
-
return
|
|
1416
|
+
function qb(a, b, c, d) {
|
|
1417
|
+
a = new Bb(a, b, c, d);
|
|
1418
|
+
b = Fb(a.parent.id, a.name);
|
|
1419
|
+
a.Sb = yb[b];
|
|
1420
|
+
return yb[b] = a;
|
|
1421
1421
|
}
|
|
1422
|
-
function
|
|
1422
|
+
function Hb(a) {
|
|
1423
1423
|
var b = ["r", "w", "rw"][a & 3];
|
|
1424
1424
|
a & 512 && (b += "w");
|
|
1425
1425
|
return b;
|
|
1426
1426
|
}
|
|
1427
|
-
function
|
|
1428
|
-
if (
|
|
1427
|
+
function Gb(a, b) {
|
|
1428
|
+
if (zb) {
|
|
1429
1429
|
return 0;
|
|
1430
1430
|
}
|
|
1431
1431
|
if (!b.includes("r") || a.mode & 292) {
|
|
@@ -1437,122 +1437,122 @@ function Hb(a, b) {
|
|
|
1437
1437
|
}
|
|
1438
1438
|
return 0;
|
|
1439
1439
|
}
|
|
1440
|
-
function
|
|
1440
|
+
function Ib(a, b) {
|
|
1441
1441
|
try {
|
|
1442
|
-
return
|
|
1442
|
+
return sb(a, b), 20;
|
|
1443
1443
|
} catch (c) {
|
|
1444
1444
|
}
|
|
1445
|
-
return
|
|
1445
|
+
return Gb(a, "wx");
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1448
|
-
a =
|
|
1447
|
+
function Jb(a) {
|
|
1448
|
+
a = wb[a];
|
|
1449
1449
|
if (!a) {
|
|
1450
1450
|
throw new M(8);
|
|
1451
1451
|
}
|
|
1452
1452
|
return a;
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1455
|
-
a = Object.assign(new
|
|
1454
|
+
function Kb(a, b = -1) {
|
|
1455
|
+
a = Object.assign(new Ab(), a);
|
|
1456
1456
|
if (-1 == b) {
|
|
1457
1457
|
a: {
|
|
1458
1458
|
for (b = 0; 4096 >= b; b++) {
|
|
1459
|
-
if (!
|
|
1459
|
+
if (!wb[b]) {
|
|
1460
1460
|
break a;
|
|
1461
1461
|
}
|
|
1462
1462
|
}
|
|
1463
1463
|
throw new M(33);
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
|
-
a.
|
|
1467
|
-
return
|
|
1466
|
+
a.T = b;
|
|
1467
|
+
return wb[b] = a;
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1470
|
-
a =
|
|
1471
|
-
a.
|
|
1469
|
+
function Lb(a, b = -1) {
|
|
1470
|
+
a = Kb(a, b);
|
|
1471
|
+
a.l?.uc?.(a);
|
|
1472
1472
|
return a;
|
|
1473
1473
|
}
|
|
1474
|
-
var
|
|
1475
|
-
a.
|
|
1476
|
-
a.
|
|
1477
|
-
},
|
|
1474
|
+
var pb = {open(a) {
|
|
1475
|
+
a.l = vb[a.node.Aa].l;
|
|
1476
|
+
a.l.open?.(a);
|
|
1477
|
+
}, Z() {
|
|
1478
1478
|
throw new M(70);
|
|
1479
1479
|
},};
|
|
1480
|
-
function
|
|
1481
|
-
|
|
1480
|
+
function jb(a, b) {
|
|
1481
|
+
vb[a] = {l:b};
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1483
|
+
function Mb(a, b) {
|
|
1484
1484
|
var c = "/" === b;
|
|
1485
|
-
if (c &&
|
|
1485
|
+
if (c && ub) {
|
|
1486
1486
|
throw new M(10);
|
|
1487
1487
|
}
|
|
1488
1488
|
if (!c && b) {
|
|
1489
|
-
var d =
|
|
1489
|
+
var d = Cb(b, {Za:!1});
|
|
1490
1490
|
b = d.path;
|
|
1491
1491
|
d = d.node;
|
|
1492
|
-
if (d.
|
|
1492
|
+
if (d.ya) {
|
|
1493
1493
|
throw new M(10);
|
|
1494
1494
|
}
|
|
1495
1495
|
if (16384 !== (d.mode & 61440)) {
|
|
1496
1496
|
throw new M(54);
|
|
1497
1497
|
}
|
|
1498
1498
|
}
|
|
1499
|
-
b = {type:a,
|
|
1500
|
-
a = a.
|
|
1501
|
-
a.
|
|
1499
|
+
b = {type:a, Fc:{}, cb:b, Qb:[]};
|
|
1500
|
+
a = a.R(b);
|
|
1501
|
+
a.R = b;
|
|
1502
1502
|
b.root = a;
|
|
1503
|
-
c ?
|
|
1503
|
+
c ? ub = a : d && (d.ya = b, d.R && d.R.Qb.push(b));
|
|
1504
1504
|
}
|
|
1505
|
-
function
|
|
1506
|
-
var d =
|
|
1507
|
-
a =
|
|
1505
|
+
function Nb(a, b, c) {
|
|
1506
|
+
var d = Cb(a, {parent:!0}).node;
|
|
1507
|
+
a = Za(a);
|
|
1508
1508
|
if (!a || "." === a || ".." === a) {
|
|
1509
1509
|
throw new M(28);
|
|
1510
1510
|
}
|
|
1511
|
-
var e =
|
|
1511
|
+
var e = Ib(d, a);
|
|
1512
1512
|
if (e) {
|
|
1513
1513
|
throw new M(e);
|
|
1514
1514
|
}
|
|
1515
|
-
if (!d.
|
|
1515
|
+
if (!d.i.xa) {
|
|
1516
1516
|
throw new M(63);
|
|
1517
1517
|
}
|
|
1518
|
-
return d.
|
|
1518
|
+
return d.i.xa(d, a, b, c);
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1521
|
-
return
|
|
1520
|
+
function Ob(a) {
|
|
1521
|
+
return Nb(a, 16895, 0);
|
|
1522
1522
|
}
|
|
1523
|
-
function
|
|
1523
|
+
function Pb(a, b, c) {
|
|
1524
1524
|
"undefined" == typeof c && (c = b, b = 438);
|
|
1525
|
-
|
|
1525
|
+
Nb(a, b | 8192, c);
|
|
1526
1526
|
}
|
|
1527
|
-
function
|
|
1528
|
-
if (!
|
|
1527
|
+
function Qb(a, b) {
|
|
1528
|
+
if (!bb(a)) {
|
|
1529
1529
|
throw new M(44);
|
|
1530
1530
|
}
|
|
1531
|
-
var c =
|
|
1531
|
+
var c = Cb(b, {parent:!0}).node;
|
|
1532
1532
|
if (!c) {
|
|
1533
1533
|
throw new M(44);
|
|
1534
1534
|
}
|
|
1535
|
-
b =
|
|
1536
|
-
var d =
|
|
1535
|
+
b = Za(b);
|
|
1536
|
+
var d = Ib(c, b);
|
|
1537
1537
|
if (d) {
|
|
1538
1538
|
throw new M(d);
|
|
1539
1539
|
}
|
|
1540
|
-
if (!c.
|
|
1540
|
+
if (!c.i.Ca) {
|
|
1541
1541
|
throw new M(63);
|
|
1542
1542
|
}
|
|
1543
|
-
c.
|
|
1543
|
+
c.i.Ca(c, b, a);
|
|
1544
1544
|
}
|
|
1545
|
-
function
|
|
1546
|
-
a =
|
|
1545
|
+
function Db(a) {
|
|
1546
|
+
a = Cb(a).node;
|
|
1547
1547
|
if (!a) {
|
|
1548
1548
|
throw new M(44);
|
|
1549
1549
|
}
|
|
1550
|
-
if (!a.
|
|
1550
|
+
if (!a.i.ia) {
|
|
1551
1551
|
throw new M(28);
|
|
1552
1552
|
}
|
|
1553
|
-
return
|
|
1553
|
+
return bb(Eb(a.parent), a.i.ia(a));
|
|
1554
1554
|
}
|
|
1555
|
-
function
|
|
1555
|
+
function Rb(a, b, c) {
|
|
1556
1556
|
if ("" === a) {
|
|
1557
1557
|
throw new M(44);
|
|
1558
1558
|
}
|
|
@@ -1567,9 +1567,9 @@ function Sb(a, b, c) {
|
|
|
1567
1567
|
if ("object" == typeof a) {
|
|
1568
1568
|
var e = a;
|
|
1569
1569
|
} else {
|
|
1570
|
-
a =
|
|
1570
|
+
a = Xa(a);
|
|
1571
1571
|
try {
|
|
1572
|
-
e =
|
|
1572
|
+
e = Cb(a, {Ya:!(b & 131072)}).node;
|
|
1573
1573
|
} catch (f) {
|
|
1574
1574
|
}
|
|
1575
1575
|
}
|
|
@@ -1580,7 +1580,7 @@ function Sb(a, b, c) {
|
|
|
1580
1580
|
throw new M(20);
|
|
1581
1581
|
}
|
|
1582
1582
|
} else {
|
|
1583
|
-
e =
|
|
1583
|
+
e = Nb(a, c, 0), d = !0;
|
|
1584
1584
|
}
|
|
1585
1585
|
}
|
|
1586
1586
|
if (!e) {
|
|
@@ -1590,13 +1590,13 @@ function Sb(a, b, c) {
|
|
|
1590
1590
|
if (b & 65536 && 16384 !== (e.mode & 61440)) {
|
|
1591
1591
|
throw new M(54);
|
|
1592
1592
|
}
|
|
1593
|
-
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !==
|
|
1593
|
+
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Hb(b) || b & 512) ? 31 : Gb(e, Hb(b)) : 44)) {
|
|
1594
1594
|
throw new M(c);
|
|
1595
1595
|
}
|
|
1596
1596
|
if (b & 512 && !d) {
|
|
1597
1597
|
c = e;
|
|
1598
|
-
c = "string" == typeof c ?
|
|
1599
|
-
if (!c.
|
|
1598
|
+
c = "string" == typeof c ? Cb(c, {Ya:!0}).node : c;
|
|
1599
|
+
if (!c.i.M) {
|
|
1600
1600
|
throw new M(63);
|
|
1601
1601
|
}
|
|
1602
1602
|
if (16384 === (c.mode & 61440)) {
|
|
@@ -1605,77 +1605,77 @@ function Sb(a, b, c) {
|
|
|
1605
1605
|
if (32768 !== (c.mode & 61440)) {
|
|
1606
1606
|
throw new M(28);
|
|
1607
1607
|
}
|
|
1608
|
-
if (d =
|
|
1608
|
+
if (d = Gb(c, "w")) {
|
|
1609
1609
|
throw new M(d);
|
|
1610
1610
|
}
|
|
1611
|
-
c.
|
|
1611
|
+
c.i.M(c, {size:0, timestamp:Date.now()});
|
|
1612
1612
|
}
|
|
1613
1613
|
b &= -131713;
|
|
1614
|
-
e =
|
|
1615
|
-
e.
|
|
1616
|
-
!
|
|
1614
|
+
e = Kb({node:e, path:Eb(e), flags:b, seekable:!0, position:0, l:e.l, cc:[], error:!1});
|
|
1615
|
+
e.l.open && e.l.open(e);
|
|
1616
|
+
!k.logReadFiles || b & 1 || (Sb ||= {}, a in Sb || (Sb[a] = 1));
|
|
1617
1617
|
return e;
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1620
|
-
if (null === a.
|
|
1619
|
+
function Tb(a, b, c) {
|
|
1620
|
+
if (null === a.T) {
|
|
1621
1621
|
throw new M(8);
|
|
1622
1622
|
}
|
|
1623
|
-
if (!a.seekable || !a.
|
|
1623
|
+
if (!a.seekable || !a.l.Z) {
|
|
1624
1624
|
throw new M(70);
|
|
1625
1625
|
}
|
|
1626
1626
|
if (0 != c && 1 != c && 2 != c) {
|
|
1627
1627
|
throw new M(28);
|
|
1628
1628
|
}
|
|
1629
|
-
a.position = a.
|
|
1630
|
-
a.
|
|
1629
|
+
a.position = a.l.Z(a, b, c);
|
|
1630
|
+
a.cc = [];
|
|
1631
1631
|
}
|
|
1632
|
-
var
|
|
1633
|
-
function
|
|
1634
|
-
a =
|
|
1635
|
-
var d =
|
|
1636
|
-
|
|
1637
|
-
var e =
|
|
1638
|
-
|
|
1632
|
+
var Ub;
|
|
1633
|
+
function Vb(a, b, c) {
|
|
1634
|
+
a = Xa("/dev/" + a);
|
|
1635
|
+
var d = tb(!!b, !!c);
|
|
1636
|
+
Wb ||= 64;
|
|
1637
|
+
var e = Wb++ << 8 | 0;
|
|
1638
|
+
jb(e, {open(f) {
|
|
1639
1639
|
f.seekable = !1;
|
|
1640
1640
|
}, close() {
|
|
1641
1641
|
c?.buffer?.length && c(10);
|
|
1642
|
-
}, read(f, g,
|
|
1643
|
-
for (var
|
|
1642
|
+
}, read(f, g, h, m) {
|
|
1643
|
+
for (var l = 0, r = 0; r < m; r++) {
|
|
1644
1644
|
try {
|
|
1645
|
-
var
|
|
1646
|
-
} catch (
|
|
1645
|
+
var u = b();
|
|
1646
|
+
} catch (w) {
|
|
1647
1647
|
throw new M(29);
|
|
1648
1648
|
}
|
|
1649
|
-
if (void 0 ===
|
|
1649
|
+
if (void 0 === u && 0 === l) {
|
|
1650
1650
|
throw new M(6);
|
|
1651
1651
|
}
|
|
1652
|
-
if (null ===
|
|
1652
|
+
if (null === u || void 0 === u) {
|
|
1653
1653
|
break;
|
|
1654
1654
|
}
|
|
1655
|
-
|
|
1656
|
-
g[
|
|
1655
|
+
l++;
|
|
1656
|
+
g[h + r] = u;
|
|
1657
1657
|
}
|
|
1658
|
-
|
|
1659
|
-
return
|
|
1660
|
-
}, write(f, g,
|
|
1661
|
-
for (var
|
|
1658
|
+
l && (f.node.timestamp = Date.now());
|
|
1659
|
+
return l;
|
|
1660
|
+
}, write(f, g, h, m) {
|
|
1661
|
+
for (var l = 0; l < m; l++) {
|
|
1662
1662
|
try {
|
|
1663
|
-
c(g[
|
|
1664
|
-
} catch (
|
|
1663
|
+
c(g[h + l]);
|
|
1664
|
+
} catch (r) {
|
|
1665
1665
|
throw new M(29);
|
|
1666
1666
|
}
|
|
1667
1667
|
}
|
|
1668
|
-
|
|
1669
|
-
return
|
|
1668
|
+
m && (f.node.timestamp = Date.now());
|
|
1669
|
+
return l;
|
|
1670
1670
|
}});
|
|
1671
|
-
|
|
1671
|
+
Pb(a, d, e);
|
|
1672
1672
|
}
|
|
1673
|
-
var
|
|
1673
|
+
var Wb, Xb = {}, Sb, Va = void 0, Yb = (a, b) => Object.defineProperty(b, "name", {value:a}), Zb = [], O = [], P, Q = a => {
|
|
1674
1674
|
if (!a) {
|
|
1675
1675
|
throw new P("Cannot use deleted val. handle = " + a);
|
|
1676
1676
|
}
|
|
1677
1677
|
return O[a];
|
|
1678
|
-
},
|
|
1678
|
+
}, $b = a => {
|
|
1679
1679
|
switch(a) {
|
|
1680
1680
|
case void 0:
|
|
1681
1681
|
return 2;
|
|
@@ -1686,13 +1686,13 @@ var Xb, Yb = {}, Tb, Wa = void 0, Zb = (a, b) => Object.defineProperty(b, "name"
|
|
|
1686
1686
|
case !1:
|
|
1687
1687
|
return 8;
|
|
1688
1688
|
default:
|
|
1689
|
-
const b =
|
|
1689
|
+
const b = Zb.pop() || O.length;
|
|
1690
1690
|
O[b] = a;
|
|
1691
1691
|
O[b + 1] = 1;
|
|
1692
1692
|
return b;
|
|
1693
1693
|
}
|
|
1694
|
-
},
|
|
1695
|
-
var b = Error, c =
|
|
1694
|
+
}, ac = a => {
|
|
1695
|
+
var b = Error, c = Yb(a, function(d) {
|
|
1696
1696
|
this.name = a;
|
|
1697
1697
|
this.message = d;
|
|
1698
1698
|
d = Error(d).stack;
|
|
@@ -1704,160 +1704,160 @@ var Xb, Yb = {}, Tb, Wa = void 0, Zb = (a, b) => Object.defineProperty(b, "name"
|
|
|
1704
1704
|
return void 0 === this.message ? this.name : `${this.name}: ${this.message}`;
|
|
1705
1705
|
};
|
|
1706
1706
|
return c;
|
|
1707
|
-
},
|
|
1707
|
+
}, bc, cc, R = a => {
|
|
1708
1708
|
for (var b = ""; D[a];) {
|
|
1709
|
-
b +=
|
|
1709
|
+
b += cc[D[a++]];
|
|
1710
1710
|
}
|
|
1711
1711
|
return b;
|
|
1712
|
-
},
|
|
1713
|
-
for (;
|
|
1714
|
-
var a =
|
|
1715
|
-
a.g.
|
|
1712
|
+
}, dc = [], ec = () => {
|
|
1713
|
+
for (; dc.length;) {
|
|
1714
|
+
var a = dc.pop();
|
|
1715
|
+
a.g.ea = !1;
|
|
1716
1716
|
a["delete"]();
|
|
1717
1717
|
}
|
|
1718
|
-
},
|
|
1718
|
+
}, fc, gc = {}, hc = (a, b) => {
|
|
1719
1719
|
if (void 0 === b) {
|
|
1720
1720
|
throw new P("ptr should not be undefined");
|
|
1721
1721
|
}
|
|
1722
|
-
for (; a.
|
|
1723
|
-
b = a.
|
|
1722
|
+
for (; a.A;) {
|
|
1723
|
+
b = a.ka(b), a = a.A;
|
|
1724
1724
|
}
|
|
1725
1725
|
return b;
|
|
1726
|
-
},
|
|
1727
|
-
a =
|
|
1726
|
+
}, ic = {}, lc = a => {
|
|
1727
|
+
a = jc(a);
|
|
1728
1728
|
var b = R(a);
|
|
1729
|
-
|
|
1729
|
+
kc(a);
|
|
1730
1730
|
return b;
|
|
1731
|
-
},
|
|
1732
|
-
var c =
|
|
1731
|
+
}, mc = (a, b) => {
|
|
1732
|
+
var c = ic[a];
|
|
1733
1733
|
if (void 0 === c) {
|
|
1734
|
-
throw a = `${b} has unknown type ${
|
|
1734
|
+
throw a = `${b} has unknown type ${lc(a)}`, new P(a);
|
|
1735
1735
|
}
|
|
1736
1736
|
return c;
|
|
1737
|
-
},
|
|
1738
|
-
},
|
|
1737
|
+
}, nc = () => {
|
|
1738
|
+
}, oc = !1, pc = (a, b, c) => {
|
|
1739
1739
|
if (b === c) {
|
|
1740
1740
|
return a;
|
|
1741
1741
|
}
|
|
1742
|
-
if (void 0 === c.
|
|
1742
|
+
if (void 0 === c.A) {
|
|
1743
1743
|
return null;
|
|
1744
1744
|
}
|
|
1745
|
-
a =
|
|
1746
|
-
return null === a ? null : c.
|
|
1747
|
-
},
|
|
1748
|
-
b =
|
|
1749
|
-
return
|
|
1750
|
-
},
|
|
1751
|
-
if (!b.
|
|
1752
|
-
throw new
|
|
1745
|
+
a = pc(a, b, c.A);
|
|
1746
|
+
return null === a ? null : c.Ab(a);
|
|
1747
|
+
}, qc = {}, rc = (a, b) => {
|
|
1748
|
+
b = hc(a, b);
|
|
1749
|
+
return gc[b];
|
|
1750
|
+
}, sc, uc = (a, b) => {
|
|
1751
|
+
if (!b.s || !b.m) {
|
|
1752
|
+
throw new sc("makeClassHandle requires ptr and ptrType");
|
|
1753
1753
|
}
|
|
1754
|
-
if (!!b.
|
|
1755
|
-
throw new
|
|
1754
|
+
if (!!b.G !== !!b.B) {
|
|
1755
|
+
throw new sc("Both smartPtrType and smartPtr must be specified");
|
|
1756
1756
|
}
|
|
1757
1757
|
b.count = {value:1};
|
|
1758
|
-
return
|
|
1759
|
-
},
|
|
1758
|
+
return tc(Object.create(a, {g:{value:b, writable:!0,},}));
|
|
1759
|
+
}, tc = a => {
|
|
1760
1760
|
if ("undefined" === typeof FinalizationRegistry) {
|
|
1761
|
-
return
|
|
1761
|
+
return tc = b => b, a;
|
|
1762
1762
|
}
|
|
1763
|
-
|
|
1763
|
+
oc = new FinalizationRegistry(b => {
|
|
1764
1764
|
b = b.g;
|
|
1765
1765
|
--b.count.value;
|
|
1766
|
-
0 === b.count.value && (b.
|
|
1766
|
+
0 === b.count.value && (b.B ? b.G.L(b.B) : b.s.h.L(b.m));
|
|
1767
1767
|
});
|
|
1768
|
-
|
|
1768
|
+
tc = b => {
|
|
1769
1769
|
var c = b.g;
|
|
1770
|
-
c.
|
|
1770
|
+
c.B && oc.register(b, {g:c}, b);
|
|
1771
1771
|
return b;
|
|
1772
1772
|
};
|
|
1773
|
-
|
|
1774
|
-
|
|
1773
|
+
nc = b => {
|
|
1774
|
+
oc.unregister(b);
|
|
1775
1775
|
};
|
|
1776
|
-
return
|
|
1777
|
-
},
|
|
1776
|
+
return tc(a);
|
|
1777
|
+
}, vc = {}, wc = a => {
|
|
1778
1778
|
for (; a.length;) {
|
|
1779
1779
|
var b = a.pop();
|
|
1780
1780
|
a.pop()(b);
|
|
1781
1781
|
}
|
|
1782
1782
|
};
|
|
1783
|
-
function
|
|
1784
|
-
return this.fromWireType(
|
|
1783
|
+
function xc(a) {
|
|
1784
|
+
return this.fromWireType(K[a >> 2]);
|
|
1785
1785
|
}
|
|
1786
|
-
var
|
|
1787
|
-
function d(
|
|
1788
|
-
|
|
1789
|
-
if (
|
|
1790
|
-
throw new
|
|
1786
|
+
var yc = {}, zc = {}, T = (a, b, c) => {
|
|
1787
|
+
function d(h) {
|
|
1788
|
+
h = c(h);
|
|
1789
|
+
if (h.length !== a.length) {
|
|
1790
|
+
throw new sc("Mismatched type converter count");
|
|
1791
1791
|
}
|
|
1792
|
-
for (var
|
|
1793
|
-
S(a[
|
|
1792
|
+
for (var m = 0; m < a.length; ++m) {
|
|
1793
|
+
S(a[m], h[m]);
|
|
1794
1794
|
}
|
|
1795
1795
|
}
|
|
1796
|
-
a.forEach(function(
|
|
1797
|
-
|
|
1796
|
+
a.forEach(function(h) {
|
|
1797
|
+
zc[h] = b;
|
|
1798
1798
|
});
|
|
1799
1799
|
var e = Array(b.length), f = [], g = 0;
|
|
1800
|
-
b.forEach((
|
|
1801
|
-
|
|
1802
|
-
e[
|
|
1800
|
+
b.forEach((h, m) => {
|
|
1801
|
+
ic.hasOwnProperty(h) ? e[m] = ic[h] : (f.push(h), yc.hasOwnProperty(h) || (yc[h] = []), yc[h].push(() => {
|
|
1802
|
+
e[m] = ic[h];
|
|
1803
1803
|
++g;
|
|
1804
1804
|
g === f.length && d(e);
|
|
1805
1805
|
}));
|
|
1806
1806
|
});
|
|
1807
1807
|
0 === f.length && d(e);
|
|
1808
1808
|
};
|
|
1809
|
-
function
|
|
1809
|
+
function Ac(a, b, c = {}) {
|
|
1810
1810
|
var d = b.name;
|
|
1811
1811
|
if (!a) {
|
|
1812
1812
|
throw new P(`type "${d}" must have a positive integer typeid pointer`);
|
|
1813
1813
|
}
|
|
1814
|
-
if (
|
|
1815
|
-
if (c.
|
|
1814
|
+
if (ic.hasOwnProperty(a)) {
|
|
1815
|
+
if (c.Kb) {
|
|
1816
1816
|
return;
|
|
1817
1817
|
}
|
|
1818
1818
|
throw new P(`Cannot register type '${d}' twice`);
|
|
1819
1819
|
}
|
|
1820
|
-
|
|
1821
|
-
delete
|
|
1822
|
-
|
|
1820
|
+
ic[a] = b;
|
|
1821
|
+
delete zc[a];
|
|
1822
|
+
yc.hasOwnProperty(a) && (b = yc[a], delete yc[a], b.forEach(e => e()));
|
|
1823
1823
|
}
|
|
1824
1824
|
function S(a, b, c = {}) {
|
|
1825
1825
|
if (!("argPackAdvance" in b)) {
|
|
1826
1826
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
1827
1827
|
}
|
|
1828
|
-
return
|
|
1828
|
+
return Ac(a, b, c);
|
|
1829
1829
|
}
|
|
1830
|
-
var
|
|
1831
|
-
throw new P(a.g.
|
|
1830
|
+
var Bc = a => {
|
|
1831
|
+
throw new P(a.g.s.h.name + " instance already deleted");
|
|
1832
1832
|
};
|
|
1833
|
-
function
|
|
1833
|
+
function Cc() {
|
|
1834
1834
|
}
|
|
1835
|
-
var
|
|
1836
|
-
if (void 0 === a[b].
|
|
1835
|
+
var Dc = (a, b, c) => {
|
|
1836
|
+
if (void 0 === a[b].v) {
|
|
1837
1837
|
var d = a[b];
|
|
1838
1838
|
a[b] = function(...e) {
|
|
1839
|
-
if (!a[b].
|
|
1840
|
-
throw new P(`Function '${c}' called with an invalid number of arguments (${e.length}) - expects one of (${a[b].
|
|
1839
|
+
if (!a[b].v.hasOwnProperty(e.length)) {
|
|
1840
|
+
throw new P(`Function '${c}' called with an invalid number of arguments (${e.length}) - expects one of (${a[b].v})!`);
|
|
1841
1841
|
}
|
|
1842
|
-
return a[b].
|
|
1842
|
+
return a[b].v[e.length].apply(this, e);
|
|
1843
1843
|
};
|
|
1844
|
-
a[b].
|
|
1845
|
-
a[b].
|
|
1844
|
+
a[b].v = [];
|
|
1845
|
+
a[b].v[d.da] = d;
|
|
1846
1846
|
}
|
|
1847
|
-
},
|
|
1848
|
-
if (
|
|
1849
|
-
if (void 0 === c || void 0 !==
|
|
1847
|
+
}, Ec = (a, b, c) => {
|
|
1848
|
+
if (k.hasOwnProperty(a)) {
|
|
1849
|
+
if (void 0 === c || void 0 !== k[a].v && void 0 !== k[a].v[c]) {
|
|
1850
1850
|
throw new P(`Cannot register public name '${a}' twice`);
|
|
1851
1851
|
}
|
|
1852
|
-
|
|
1853
|
-
if (
|
|
1852
|
+
Dc(k, a, a);
|
|
1853
|
+
if (k.hasOwnProperty(c)) {
|
|
1854
1854
|
throw new P(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`);
|
|
1855
1855
|
}
|
|
1856
|
-
|
|
1856
|
+
k[a].v[c] = b;
|
|
1857
1857
|
} else {
|
|
1858
|
-
|
|
1858
|
+
k[a] = b, void 0 !== c && (k[a].Ec = c);
|
|
1859
1859
|
}
|
|
1860
|
-
},
|
|
1860
|
+
}, Fc = a => {
|
|
1861
1861
|
if (void 0 === a) {
|
|
1862
1862
|
return "_unknown";
|
|
1863
1863
|
}
|
|
@@ -1865,86 +1865,86 @@ var Ec = (a, b, c) => {
|
|
|
1865
1865
|
var b = a.charCodeAt(0);
|
|
1866
1866
|
return 48 <= b && 57 >= b ? `_${a}` : a;
|
|
1867
1867
|
};
|
|
1868
|
-
function
|
|
1868
|
+
function Gc(a, b, c, d, e, f, g, h) {
|
|
1869
1869
|
this.name = a;
|
|
1870
1870
|
this.constructor = b;
|
|
1871
|
-
this.
|
|
1872
|
-
this.
|
|
1873
|
-
this.
|
|
1874
|
-
this.
|
|
1875
|
-
this.
|
|
1876
|
-
this.
|
|
1877
|
-
this.
|
|
1871
|
+
this.J = c;
|
|
1872
|
+
this.L = d;
|
|
1873
|
+
this.A = e;
|
|
1874
|
+
this.Fb = f;
|
|
1875
|
+
this.ka = g;
|
|
1876
|
+
this.Ab = h;
|
|
1877
|
+
this.hb = [];
|
|
1878
1878
|
}
|
|
1879
|
-
var
|
|
1879
|
+
var Hc = (a, b, c) => {
|
|
1880
1880
|
for (; b !== c;) {
|
|
1881
|
-
if (!b.
|
|
1881
|
+
if (!b.ka) {
|
|
1882
1882
|
throw new P(`Expected null or instance of ${c.name}, got an instance of ${b.name}`);
|
|
1883
1883
|
}
|
|
1884
|
-
a = b.
|
|
1885
|
-
b = b.
|
|
1884
|
+
a = b.ka(a);
|
|
1885
|
+
b = b.A;
|
|
1886
1886
|
}
|
|
1887
1887
|
return a;
|
|
1888
1888
|
};
|
|
1889
|
-
function
|
|
1889
|
+
function Ic(a, b) {
|
|
1890
1890
|
if (null === b) {
|
|
1891
|
-
if (this.
|
|
1891
|
+
if (this.La) {
|
|
1892
1892
|
throw new P(`null is not a valid ${this.name}`);
|
|
1893
1893
|
}
|
|
1894
1894
|
return 0;
|
|
1895
1895
|
}
|
|
1896
1896
|
if (!b.g) {
|
|
1897
|
-
throw new P(`Cannot pass "${
|
|
1897
|
+
throw new P(`Cannot pass "${Jc(b)}" as a ${this.name}`);
|
|
1898
1898
|
}
|
|
1899
|
-
if (!b.g.
|
|
1899
|
+
if (!b.g.m) {
|
|
1900
1900
|
throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1901
1901
|
}
|
|
1902
|
-
return
|
|
1902
|
+
return Hc(b.g.m, b.g.s.h, this.h);
|
|
1903
1903
|
}
|
|
1904
|
-
function
|
|
1904
|
+
function Kc(a, b) {
|
|
1905
1905
|
if (null === b) {
|
|
1906
|
-
if (this.
|
|
1906
|
+
if (this.La) {
|
|
1907
1907
|
throw new P(`null is not a valid ${this.name}`);
|
|
1908
1908
|
}
|
|
1909
|
-
if (this.
|
|
1910
|
-
var c = this.
|
|
1911
|
-
null !== a && a.push(this.
|
|
1909
|
+
if (this.ta) {
|
|
1910
|
+
var c = this.Na();
|
|
1911
|
+
null !== a && a.push(this.L, c);
|
|
1912
1912
|
return c;
|
|
1913
1913
|
}
|
|
1914
1914
|
return 0;
|
|
1915
1915
|
}
|
|
1916
1916
|
if (!b || !b.g) {
|
|
1917
|
-
throw new P(`Cannot pass "${
|
|
1917
|
+
throw new P(`Cannot pass "${Jc(b)}" as a ${this.name}`);
|
|
1918
1918
|
}
|
|
1919
|
-
if (!b.g.
|
|
1919
|
+
if (!b.g.m) {
|
|
1920
1920
|
throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1921
1921
|
}
|
|
1922
|
-
if (!this.
|
|
1923
|
-
throw new P(`Cannot convert argument of type ${b.g.
|
|
1922
|
+
if (!this.sa && b.g.s.sa) {
|
|
1923
|
+
throw new P(`Cannot convert argument of type ${b.g.G ? b.g.G.name : b.g.s.name} to parameter type ${this.name}`);
|
|
1924
1924
|
}
|
|
1925
|
-
c =
|
|
1926
|
-
if (this.
|
|
1927
|
-
if (void 0 === b.g.
|
|
1925
|
+
c = Hc(b.g.m, b.g.s.h, this.h);
|
|
1926
|
+
if (this.ta) {
|
|
1927
|
+
if (void 0 === b.g.B) {
|
|
1928
1928
|
throw new P("Passing raw pointer to smart pointer is illegal");
|
|
1929
1929
|
}
|
|
1930
|
-
switch(this.
|
|
1930
|
+
switch(this.Yb) {
|
|
1931
1931
|
case 0:
|
|
1932
|
-
if (b.g.
|
|
1933
|
-
c = b.g.
|
|
1932
|
+
if (b.g.G === this) {
|
|
1933
|
+
c = b.g.B;
|
|
1934
1934
|
} else {
|
|
1935
|
-
throw new P(`Cannot convert argument of type ${b.g.
|
|
1935
|
+
throw new P(`Cannot convert argument of type ${b.g.G ? b.g.G.name : b.g.s.name} to parameter type ${this.name}`);
|
|
1936
1936
|
}
|
|
1937
1937
|
break;
|
|
1938
1938
|
case 1:
|
|
1939
|
-
c = b.g.
|
|
1939
|
+
c = b.g.B;
|
|
1940
1940
|
break;
|
|
1941
1941
|
case 2:
|
|
1942
|
-
if (b.g.
|
|
1943
|
-
c = b.g.
|
|
1942
|
+
if (b.g.G === this) {
|
|
1943
|
+
c = b.g.B;
|
|
1944
1944
|
} else {
|
|
1945
1945
|
var d = b.clone();
|
|
1946
|
-
c = this.
|
|
1947
|
-
null !== a && a.push(this.
|
|
1946
|
+
c = this.Ub(c, $b(() => d["delete"]()));
|
|
1947
|
+
null !== a && a.push(this.L, c);
|
|
1948
1948
|
}
|
|
1949
1949
|
break;
|
|
1950
1950
|
default:
|
|
@@ -1953,137 +1953,137 @@ function Lc(a, b) {
|
|
|
1953
1953
|
}
|
|
1954
1954
|
return c;
|
|
1955
1955
|
}
|
|
1956
|
-
function
|
|
1956
|
+
function Lc(a, b) {
|
|
1957
1957
|
if (null === b) {
|
|
1958
|
-
if (this.
|
|
1958
|
+
if (this.La) {
|
|
1959
1959
|
throw new P(`null is not a valid ${this.name}`);
|
|
1960
1960
|
}
|
|
1961
1961
|
return 0;
|
|
1962
1962
|
}
|
|
1963
1963
|
if (!b.g) {
|
|
1964
|
-
throw new P(`Cannot pass "${
|
|
1964
|
+
throw new P(`Cannot pass "${Jc(b)}" as a ${this.name}`);
|
|
1965
1965
|
}
|
|
1966
|
-
if (!b.g.
|
|
1966
|
+
if (!b.g.m) {
|
|
1967
1967
|
throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1968
1968
|
}
|
|
1969
|
-
if (b.g.
|
|
1970
|
-
throw new P(`Cannot convert argument of type ${b.g.
|
|
1969
|
+
if (b.g.s.sa) {
|
|
1970
|
+
throw new P(`Cannot convert argument of type ${b.g.s.name} to parameter type ${this.name}`);
|
|
1971
1971
|
}
|
|
1972
|
-
return
|
|
1972
|
+
return Hc(b.g.m, b.g.s.h, this.h);
|
|
1973
1973
|
}
|
|
1974
|
-
function
|
|
1974
|
+
function Mc(a, b, c, d, e, f, g, h, m, l, r) {
|
|
1975
1975
|
this.name = a;
|
|
1976
|
-
this.
|
|
1977
|
-
this.
|
|
1978
|
-
this.
|
|
1979
|
-
this.
|
|
1980
|
-
this.
|
|
1981
|
-
this.
|
|
1982
|
-
this.
|
|
1983
|
-
this.
|
|
1984
|
-
this.
|
|
1985
|
-
this.
|
|
1986
|
-
e || void 0 !== b.
|
|
1976
|
+
this.h = b;
|
|
1977
|
+
this.La = c;
|
|
1978
|
+
this.sa = d;
|
|
1979
|
+
this.ta = e;
|
|
1980
|
+
this.Tb = f;
|
|
1981
|
+
this.Yb = g;
|
|
1982
|
+
this.jb = h;
|
|
1983
|
+
this.Na = m;
|
|
1984
|
+
this.Ub = l;
|
|
1985
|
+
this.L = r;
|
|
1986
|
+
e || void 0 !== b.A ? this.toWireType = Kc : (this.toWireType = d ? Ic : Lc, this.I = null);
|
|
1987
1987
|
}
|
|
1988
|
-
var
|
|
1989
|
-
if (!
|
|
1990
|
-
throw new
|
|
1991
|
-
}
|
|
1992
|
-
void 0 !==
|
|
1993
|
-
},
|
|
1994
|
-
var b =
|
|
1995
|
-
b || (a >=
|
|
1988
|
+
var Nc = (a, b, c) => {
|
|
1989
|
+
if (!k.hasOwnProperty(a)) {
|
|
1990
|
+
throw new sc("Replacing nonexistent public symbol");
|
|
1991
|
+
}
|
|
1992
|
+
void 0 !== k[a].v && void 0 !== c ? k[a].v[c] = b : (k[a] = b, k[a].da = c);
|
|
1993
|
+
}, Oc = [], Pc, Qc = a => {
|
|
1994
|
+
var b = Oc[a];
|
|
1995
|
+
b || (a >= Oc.length && (Oc.length = a + 1), Oc[a] = b = Pc.get(a));
|
|
1996
1996
|
return b;
|
|
1997
|
-
},
|
|
1998
|
-
a.includes("j") ? (a = a.replace(/p/g, "i"), b = (0,
|
|
1997
|
+
}, Rc = (a, b, c = []) => {
|
|
1998
|
+
a.includes("j") ? (a = a.replace(/p/g, "i"), b = (0,k["dynCall_" + a])(b, ...c)) : b = Qc(b)(...c);
|
|
1999
1999
|
return b;
|
|
2000
|
-
},
|
|
2000
|
+
}, Sc = (a, b) => (...c) => Rc(a, b, c), U = (a, b) => {
|
|
2001
2001
|
a = R(a);
|
|
2002
|
-
var c = a.includes("j") ?
|
|
2002
|
+
var c = a.includes("j") ? Sc(a, b) : Qc(b);
|
|
2003
2003
|
if ("function" != typeof c) {
|
|
2004
2004
|
throw new P(`unknown function pointer with signature ${a}: ${b}`);
|
|
2005
2005
|
}
|
|
2006
2006
|
return c;
|
|
2007
|
-
},
|
|
2007
|
+
}, Tc, Uc = (a, b) => {
|
|
2008
2008
|
function c(f) {
|
|
2009
|
-
e[f] ||
|
|
2009
|
+
e[f] || ic[f] || (zc[f] ? zc[f].forEach(c) : (d.push(f), e[f] = !0));
|
|
2010
2010
|
}
|
|
2011
2011
|
var d = [], e = {};
|
|
2012
2012
|
b.forEach(c);
|
|
2013
|
-
throw new
|
|
2013
|
+
throw new Tc(`${a}: ` + d.map(lc).join([", "]));
|
|
2014
2014
|
};
|
|
2015
|
-
function
|
|
2015
|
+
function Vc(a) {
|
|
2016
2016
|
for (var b = 1; b < a.length; ++b) {
|
|
2017
|
-
if (null !== a[b] && void 0 === a[b].
|
|
2017
|
+
if (null !== a[b] && void 0 === a[b].I) {
|
|
2018
2018
|
return !0;
|
|
2019
2019
|
}
|
|
2020
2020
|
}
|
|
2021
2021
|
return !1;
|
|
2022
2022
|
}
|
|
2023
|
-
function
|
|
2023
|
+
function Wc(a, b, c, d, e) {
|
|
2024
2024
|
var f = b.length;
|
|
2025
2025
|
if (2 > f) {
|
|
2026
2026
|
throw new P("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
2027
2027
|
}
|
|
2028
|
-
var g = null !== b[1] && null !== c,
|
|
2029
|
-
return
|
|
2030
|
-
if (
|
|
2031
|
-
throw new P(`function ${a} called with ${
|
|
2028
|
+
var g = null !== b[1] && null !== c, h = Vc(b), m = "void" !== b[0].name, l = f - 2, r = Array(l), u = [], w = [];
|
|
2029
|
+
return Yb(a, function(...n) {
|
|
2030
|
+
if (n.length !== l) {
|
|
2031
|
+
throw new P(`function ${a} called with ${n.length} arguments, expected ${l}`);
|
|
2032
2032
|
}
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2033
|
+
w.length = 0;
|
|
2034
|
+
u.length = g ? 2 : 1;
|
|
2035
|
+
u[0] = e;
|
|
2036
2036
|
if (g) {
|
|
2037
|
-
var
|
|
2038
|
-
|
|
2037
|
+
var q = b[1].toWireType(w, this);
|
|
2038
|
+
u[1] = q;
|
|
2039
2039
|
}
|
|
2040
|
-
for (var
|
|
2041
|
-
t
|
|
2040
|
+
for (var t = 0; t < l; ++t) {
|
|
2041
|
+
r[t] = b[t + 2].toWireType(w, n[t]), u.push(r[t]);
|
|
2042
2042
|
}
|
|
2043
|
-
|
|
2044
|
-
if (
|
|
2045
|
-
|
|
2043
|
+
n = d(...u);
|
|
2044
|
+
if (h) {
|
|
2045
|
+
wc(w);
|
|
2046
2046
|
} else {
|
|
2047
|
-
for (
|
|
2048
|
-
var
|
|
2049
|
-
null !== b[
|
|
2047
|
+
for (t = g ? 1 : 2; t < b.length; t++) {
|
|
2048
|
+
var y = 1 === t ? q : r[t - 2];
|
|
2049
|
+
null !== b[t].I && b[t].I(y);
|
|
2050
2050
|
}
|
|
2051
2051
|
}
|
|
2052
|
-
|
|
2053
|
-
return
|
|
2052
|
+
q = m ? b[0].fromWireType(n) : void 0;
|
|
2053
|
+
return q;
|
|
2054
2054
|
});
|
|
2055
2055
|
}
|
|
2056
|
-
var
|
|
2056
|
+
var Xc = (a, b) => {
|
|
2057
2057
|
for (var c = [], d = 0; d < a; d++) {
|
|
2058
|
-
c.push(
|
|
2058
|
+
c.push(K[b + 4 * d >> 2]);
|
|
2059
2059
|
}
|
|
2060
2060
|
return c;
|
|
2061
|
-
},
|
|
2061
|
+
}, Yc = a => {
|
|
2062
2062
|
a = a.trim();
|
|
2063
2063
|
const b = a.indexOf("(");
|
|
2064
2064
|
return -1 !== b ? a.substr(0, b) : a;
|
|
2065
|
-
},
|
|
2065
|
+
}, Zc = (a, b, c) => {
|
|
2066
2066
|
if (!(a instanceof Object)) {
|
|
2067
2067
|
throw new P(`${c} with invalid "this": ${a}`);
|
|
2068
2068
|
}
|
|
2069
|
-
if (!(a instanceof b.
|
|
2069
|
+
if (!(a instanceof b.h.constructor)) {
|
|
2070
2070
|
throw new P(`${c} incompatible with "this" of type ${a.constructor.name}`);
|
|
2071
2071
|
}
|
|
2072
|
-
if (!a.g.
|
|
2072
|
+
if (!a.g.m) {
|
|
2073
2073
|
throw new P(`cannot call emscripten binding method ${c} on deleted object`);
|
|
2074
2074
|
}
|
|
2075
|
-
return
|
|
2076
|
-
},
|
|
2077
|
-
9 < a && 0 === --O[a + 1] && (O[a] = void 0,
|
|
2078
|
-
},
|
|
2075
|
+
return Hc(a.g.m, a.g.s.h, b.h);
|
|
2076
|
+
}, $c = a => {
|
|
2077
|
+
9 < a && 0 === --O[a + 1] && (O[a] = void 0, Zb.push(a));
|
|
2078
|
+
}, ad = {name:"emscripten::val", fromWireType:a => {
|
|
2079
2079
|
var b = Q(a);
|
|
2080
|
-
|
|
2080
|
+
$c(a);
|
|
2081
2081
|
return b;
|
|
2082
|
-
}, toWireType:(a, b) =>
|
|
2082
|
+
}, toWireType:(a, b) => $b(b), argPackAdvance:8, readValueFromPointer:xc, I:null,}, bd = (a, b, c) => {
|
|
2083
2083
|
switch(b) {
|
|
2084
2084
|
case 1:
|
|
2085
2085
|
return c ? function(d) {
|
|
2086
|
-
return this.fromWireType(
|
|
2086
|
+
return this.fromWireType(C[d]);
|
|
2087
2087
|
} : function(d) {
|
|
2088
2088
|
return this.fromWireType(D[d]);
|
|
2089
2089
|
};
|
|
@@ -2091,55 +2091,55 @@ var Yc = (a, b) => {
|
|
|
2091
2091
|
return c ? function(d) {
|
|
2092
2092
|
return this.fromWireType(E[d >> 1]);
|
|
2093
2093
|
} : function(d) {
|
|
2094
|
-
return this.fromWireType(
|
|
2094
|
+
return this.fromWireType(va[d >> 1]);
|
|
2095
2095
|
};
|
|
2096
2096
|
case 4:
|
|
2097
2097
|
return c ? function(d) {
|
|
2098
2098
|
return this.fromWireType(F[d >> 2]);
|
|
2099
2099
|
} : function(d) {
|
|
2100
|
-
return this.fromWireType(
|
|
2100
|
+
return this.fromWireType(K[d >> 2]);
|
|
2101
2101
|
};
|
|
2102
2102
|
default:
|
|
2103
2103
|
throw new TypeError(`invalid integer width (${b}): ${a}`);
|
|
2104
2104
|
}
|
|
2105
|
-
},
|
|
2105
|
+
}, Jc = a => {
|
|
2106
2106
|
if (null === a) {
|
|
2107
2107
|
return "null";
|
|
2108
2108
|
}
|
|
2109
2109
|
var b = typeof a;
|
|
2110
2110
|
return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
|
|
2111
|
-
},
|
|
2111
|
+
}, cd = (a, b) => {
|
|
2112
2112
|
switch(b) {
|
|
2113
2113
|
case 4:
|
|
2114
2114
|
return function(c) {
|
|
2115
|
-
return this.fromWireType(
|
|
2115
|
+
return this.fromWireType(wa[c >> 2]);
|
|
2116
2116
|
};
|
|
2117
2117
|
case 8:
|
|
2118
2118
|
return function(c) {
|
|
2119
|
-
return this.fromWireType(
|
|
2119
|
+
return this.fromWireType(xa[c >> 3]);
|
|
2120
2120
|
};
|
|
2121
2121
|
default:
|
|
2122
2122
|
throw new TypeError(`invalid float width (${b}): ${a}`);
|
|
2123
2123
|
}
|
|
2124
|
-
},
|
|
2124
|
+
}, dd = (a, b, c) => {
|
|
2125
2125
|
switch(b) {
|
|
2126
2126
|
case 1:
|
|
2127
|
-
return c ? d =>
|
|
2127
|
+
return c ? d => C[d] : d => D[d];
|
|
2128
2128
|
case 2:
|
|
2129
|
-
return c ? d => E[d >> 1] : d =>
|
|
2129
|
+
return c ? d => E[d >> 1] : d => va[d >> 1];
|
|
2130
2130
|
case 4:
|
|
2131
|
-
return c ? d => F[d >> 2] : d =>
|
|
2131
|
+
return c ? d => F[d >> 2] : d => K[d >> 2];
|
|
2132
2132
|
default:
|
|
2133
2133
|
throw new TypeError(`invalid integer width (${b}): ${a}`);
|
|
2134
2134
|
}
|
|
2135
|
-
},
|
|
2135
|
+
}, ed = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, fd = (a, b) => {
|
|
2136
2136
|
var c = a >> 1;
|
|
2137
|
-
for (var d = c + b / 2; !(c >= d) &&
|
|
2137
|
+
for (var d = c + b / 2; !(c >= d) && va[c];) {
|
|
2138
2138
|
++c;
|
|
2139
2139
|
}
|
|
2140
2140
|
c <<= 1;
|
|
2141
|
-
if (32 < c - a &&
|
|
2142
|
-
return
|
|
2141
|
+
if (32 < c - a && ed) {
|
|
2142
|
+
return ed.decode(D.subarray(a, c));
|
|
2143
2143
|
}
|
|
2144
2144
|
c = "";
|
|
2145
2145
|
for (d = 0; !(d >= b / 2); ++d) {
|
|
@@ -2150,7 +2150,7 @@ var Yc = (a, b) => {
|
|
|
2150
2150
|
c += String.fromCharCode(e);
|
|
2151
2151
|
}
|
|
2152
2152
|
return c;
|
|
2153
|
-
},
|
|
2153
|
+
}, gd = (a, b, c) => {
|
|
2154
2154
|
c ??= 2147483647;
|
|
2155
2155
|
if (2 > c) {
|
|
2156
2156
|
return 0;
|
|
@@ -2163,7 +2163,7 @@ var Yc = (a, b) => {
|
|
|
2163
2163
|
}
|
|
2164
2164
|
E[b >> 1] = 0;
|
|
2165
2165
|
return b - d;
|
|
2166
|
-
},
|
|
2166
|
+
}, hd = a => 2 * a.length, jd = (a, b) => {
|
|
2167
2167
|
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
2168
2168
|
var e = F[a + 4 * c >> 2];
|
|
2169
2169
|
if (0 == e) {
|
|
@@ -2173,7 +2173,7 @@ var Yc = (a, b) => {
|
|
|
2173
2173
|
65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
|
|
2174
2174
|
}
|
|
2175
2175
|
return d;
|
|
2176
|
-
},
|
|
2176
|
+
}, kd = (a, b, c) => {
|
|
2177
2177
|
c ??= 2147483647;
|
|
2178
2178
|
if (4 > c) {
|
|
2179
2179
|
return 0;
|
|
@@ -2194,93 +2194,93 @@ var Yc = (a, b) => {
|
|
|
2194
2194
|
}
|
|
2195
2195
|
F[b >> 2] = 0;
|
|
2196
2196
|
return b - d;
|
|
2197
|
-
},
|
|
2197
|
+
}, ld = a => {
|
|
2198
2198
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
2199
2199
|
var d = a.charCodeAt(c);
|
|
2200
2200
|
55296 <= d && 57343 >= d && ++c;
|
|
2201
2201
|
b += 4;
|
|
2202
2202
|
}
|
|
2203
2203
|
return b;
|
|
2204
|
-
},
|
|
2204
|
+
}, md = (a, b, c) => {
|
|
2205
2205
|
var d = [];
|
|
2206
2206
|
a = a.toWireType(d, c);
|
|
2207
|
-
d.length && (
|
|
2207
|
+
d.length && (K[b >> 2] = $b(d));
|
|
2208
2208
|
return a;
|
|
2209
|
-
},
|
|
2210
|
-
var b =
|
|
2209
|
+
}, nd = [], od = {}, pd = a => {
|
|
2210
|
+
var b = od[a];
|
|
2211
2211
|
return void 0 === b ? R(a) : b;
|
|
2212
|
-
},
|
|
2213
|
-
var b =
|
|
2214
|
-
|
|
2212
|
+
}, qd = a => {
|
|
2213
|
+
var b = nd.length;
|
|
2214
|
+
nd.push(a);
|
|
2215
2215
|
return b;
|
|
2216
|
-
},
|
|
2216
|
+
}, rd = (a, b) => {
|
|
2217
2217
|
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
2218
|
-
c[d] =
|
|
2218
|
+
c[d] = mc(K[b + 4 * d >> 2], "parameter " + d);
|
|
2219
2219
|
}
|
|
2220
2220
|
return c;
|
|
2221
|
-
},
|
|
2222
|
-
a.
|
|
2221
|
+
}, sd = Reflect.construct, td = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), ud = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335], vd = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], wd = [], xd = a => {
|
|
2222
|
+
a.tc = a.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
|
|
2223
|
+
}, yd = a => {
|
|
2224
|
+
a.Bc = a.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
|
|
2223
2225
|
}, zd = a => {
|
|
2224
|
-
a.Mc = a.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
|
|
2225
|
-
}, Ad = a => {
|
|
2226
2226
|
var b = "EXT_color_buffer_float EXT_conservative_depth EXT_disjoint_timer_query_webgl2 EXT_texture_norm16 NV_shader_noperspective_interpolation WEBGL_clip_cull_distance EXT_color_buffer_half_float EXT_depth_clamp EXT_float_blend EXT_texture_compression_bptc EXT_texture_compression_rgtc EXT_texture_filter_anisotropic KHR_parallel_shader_compile OES_texture_float_linear WEBGL_blend_func_extended WEBGL_compressed_texture_astc WEBGL_compressed_texture_etc WEBGL_compressed_texture_etc1 WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context WEBGL_multi_draw".split(" ");
|
|
2227
2227
|
return (a.getSupportedExtensions() || []).filter(c => b.includes(c));
|
|
2228
|
-
},
|
|
2229
|
-
for (var b =
|
|
2228
|
+
}, Ad = 1, Bd = [], V = [], Cd = [], Dd = [], Ed = [], Fd = [], Gd = [], v = [], Hd = {}, Id = 4, Jd = 0, Kd = a => {
|
|
2229
|
+
for (var b = Ad++, c = a.length; c < b; c++) {
|
|
2230
2230
|
a[c] = null;
|
|
2231
2231
|
}
|
|
2232
2232
|
return b;
|
|
2233
|
-
},
|
|
2233
|
+
}, Ld = (a, b, c, d) => {
|
|
2234
2234
|
for (var e = 0; e < a; e++) {
|
|
2235
|
-
var f = W[c](), g = f &&
|
|
2235
|
+
var f = W[c](), g = f && Kd(d);
|
|
2236
2236
|
f ? (f.name = g, d[g] = f) : X ||= 1282;
|
|
2237
2237
|
F[b + 4 * e >> 2] = g;
|
|
2238
2238
|
}
|
|
2239
2239
|
}, la = (a, b) => {
|
|
2240
|
-
var c =
|
|
2241
|
-
a.canvas && (a.canvas.
|
|
2242
|
-
|
|
2243
|
-
("undefined" == typeof b.
|
|
2240
|
+
var c = Kd(v), d = {handle:c, attributes:b, version:b.Ac, C:a};
|
|
2241
|
+
a.canvas && (a.canvas.qb = d);
|
|
2242
|
+
v[c] = d;
|
|
2243
|
+
("undefined" == typeof b.Bb || b.Bb) && Md(d);
|
|
2244
2244
|
return c;
|
|
2245
2245
|
}, ka = a => {
|
|
2246
|
-
|
|
2247
|
-
|
|
2246
|
+
p = v[a];
|
|
2247
|
+
k.rc = W = p?.C;
|
|
2248
2248
|
return !(a && !W);
|
|
2249
|
-
},
|
|
2250
|
-
a ||=
|
|
2251
|
-
if (!a.
|
|
2252
|
-
a.
|
|
2253
|
-
var b = a.
|
|
2249
|
+
}, Md = a => {
|
|
2250
|
+
a ||= p;
|
|
2251
|
+
if (!a.Lb) {
|
|
2252
|
+
a.Lb = !0;
|
|
2253
|
+
var b = a.C;
|
|
2254
|
+
xd(b);
|
|
2254
2255
|
yd(b);
|
|
2255
|
-
|
|
2256
|
-
2
|
|
2257
|
-
|
|
2258
|
-
b.eb = b.getExtension("EXT_disjoint_timer_query");
|
|
2256
|
+
2 <= a.version && (b.Wa = b.getExtension("EXT_disjoint_timer_query_webgl2"));
|
|
2257
|
+
if (2 > a.version || !b.Wa) {
|
|
2258
|
+
b.Wa = b.getExtension("EXT_disjoint_timer_query");
|
|
2259
2259
|
}
|
|
2260
|
-
b.
|
|
2261
|
-
|
|
2260
|
+
b.Rb = b.getExtension("WEBGL_multi_draw");
|
|
2261
|
+
zd(b).forEach(c => {
|
|
2262
2262
|
c.includes("lose_context") || c.includes("debug") || b.getExtension(c);
|
|
2263
2263
|
});
|
|
2264
2264
|
}
|
|
2265
|
-
}, X,
|
|
2266
|
-
if (!
|
|
2265
|
+
}, X, p, Nd = {}, Pd = () => {
|
|
2266
|
+
if (!Od) {
|
|
2267
2267
|
var a = {USER:"web_user", LOGNAME:"web_user", PATH:"/", PWD:"/", HOME:"/home/web_user", LANG:("object" == typeof navigator && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _:na || "./this.program"}, b;
|
|
2268
|
-
for (b in
|
|
2269
|
-
void 0 ===
|
|
2268
|
+
for (b in Nd) {
|
|
2269
|
+
void 0 === Nd[b] ? delete a[b] : a[b] = Nd[b];
|
|
2270
2270
|
}
|
|
2271
2271
|
var c = [];
|
|
2272
2272
|
for (b in a) {
|
|
2273
2273
|
c.push(`${b}=${a[b]}`);
|
|
2274
2274
|
}
|
|
2275
|
-
|
|
2275
|
+
Od = c;
|
|
2276
2276
|
}
|
|
2277
|
-
return
|
|
2278
|
-
},
|
|
2279
|
-
function
|
|
2280
|
-
var a =
|
|
2277
|
+
return Od;
|
|
2278
|
+
}, Od, Qd = [];
|
|
2279
|
+
function Rd() {
|
|
2280
|
+
var a = zd(W);
|
|
2281
2281
|
return a = a.concat(a.map(b => "GL_" + b));
|
|
2282
2282
|
}
|
|
2283
|
-
var
|
|
2283
|
+
var Sd = (a, b) => {
|
|
2284
2284
|
if (b) {
|
|
2285
2285
|
var c = void 0;
|
|
2286
2286
|
switch(a) {
|
|
@@ -2298,15 +2298,15 @@ var Td = (a, b) => {
|
|
|
2298
2298
|
c = d ? d.length : 0;
|
|
2299
2299
|
break;
|
|
2300
2300
|
case 33309:
|
|
2301
|
-
if (2 >
|
|
2301
|
+
if (2 > p.version) {
|
|
2302
2302
|
X ||= 1282;
|
|
2303
2303
|
return;
|
|
2304
2304
|
}
|
|
2305
|
-
c =
|
|
2305
|
+
c = Rd().length;
|
|
2306
2306
|
break;
|
|
2307
2307
|
case 33307:
|
|
2308
2308
|
case 33308:
|
|
2309
|
-
if (2 >
|
|
2309
|
+
if (2 > p.version) {
|
|
2310
2310
|
X ||= 1280;
|
|
2311
2311
|
return;
|
|
2312
2312
|
}
|
|
@@ -2362,14 +2362,14 @@ var Td = (a, b) => {
|
|
|
2362
2362
|
c = d.name | 0;
|
|
2363
2363
|
} catch (e) {
|
|
2364
2364
|
X ||= 1280;
|
|
2365
|
-
|
|
2365
|
+
A(`GL_INVALID_ENUM in glGet${0}v: Unknown object returned from WebGL getParameter(${a})! (error: ${e})`);
|
|
2366
2366
|
return;
|
|
2367
2367
|
}
|
|
2368
2368
|
}
|
|
2369
2369
|
break;
|
|
2370
2370
|
default:
|
|
2371
2371
|
X ||= 1280;
|
|
2372
|
-
|
|
2372
|
+
A(`GL_INVALID_ENUM in glGet${0}v: Native code calling glGet${0}v(${a}) and it returns ${d} of type ${typeof d}!`);
|
|
2373
2373
|
return;
|
|
2374
2374
|
}
|
|
2375
2375
|
}
|
|
@@ -2377,475 +2377,475 @@ var Td = (a, b) => {
|
|
|
2377
2377
|
} else {
|
|
2378
2378
|
X ||= 1281;
|
|
2379
2379
|
}
|
|
2380
|
-
},
|
|
2381
|
-
var b =
|
|
2382
|
-
c &&
|
|
2380
|
+
}, Ud = a => {
|
|
2381
|
+
var b = eb(a) + 1, c = Td(b);
|
|
2382
|
+
c && fb(a, D, c, b);
|
|
2383
2383
|
return c;
|
|
2384
|
-
},
|
|
2384
|
+
}, Vd = a => "]" == a.slice(-1) && a.lastIndexOf("["), Wd = a => {
|
|
2385
2385
|
a -= 5120;
|
|
2386
|
-
return 0 == a ?
|
|
2387
|
-
},
|
|
2388
|
-
function e(
|
|
2389
|
-
for (
|
|
2390
|
-
|
|
2386
|
+
return 0 == a ? C : 1 == a ? D : 2 == a ? E : 4 == a ? F : 6 == a ? wa : 5 == a || 28922 == a || 28520 == a || 30779 == a || 30782 == a ? K : va;
|
|
2387
|
+
}, Xd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Yd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Zd = (a, b, c, d) => {
|
|
2388
|
+
function e(n, q, t) {
|
|
2389
|
+
for (n = "number" == typeof n ? n.toString() : n || ""; n.length < q;) {
|
|
2390
|
+
n = t[0] + n;
|
|
2391
2391
|
}
|
|
2392
|
-
return
|
|
2392
|
+
return n;
|
|
2393
2393
|
}
|
|
2394
|
-
function f(
|
|
2395
|
-
return e(
|
|
2394
|
+
function f(n, q) {
|
|
2395
|
+
return e(n, q, "0");
|
|
2396
2396
|
}
|
|
2397
|
-
function g(
|
|
2398
|
-
function
|
|
2399
|
-
return 0 >
|
|
2397
|
+
function g(n, q) {
|
|
2398
|
+
function t(z) {
|
|
2399
|
+
return 0 > z ? -1 : 0 < z ? 1 : 0;
|
|
2400
2400
|
}
|
|
2401
|
-
var
|
|
2402
|
-
0 === (
|
|
2403
|
-
return
|
|
2401
|
+
var y;
|
|
2402
|
+
0 === (y = t(n.getFullYear() - q.getFullYear())) && 0 === (y = t(n.getMonth() - q.getMonth())) && (y = t(n.getDate() - q.getDate()));
|
|
2403
|
+
return y;
|
|
2404
2404
|
}
|
|
2405
|
-
function
|
|
2406
|
-
switch(
|
|
2405
|
+
function h(n) {
|
|
2406
|
+
switch(n.getDay()) {
|
|
2407
2407
|
case 0:
|
|
2408
|
-
return new Date(
|
|
2408
|
+
return new Date(n.getFullYear() - 1, 11, 29);
|
|
2409
2409
|
case 1:
|
|
2410
|
-
return
|
|
2410
|
+
return n;
|
|
2411
2411
|
case 2:
|
|
2412
|
-
return new Date(
|
|
2412
|
+
return new Date(n.getFullYear(), 0, 3);
|
|
2413
2413
|
case 3:
|
|
2414
|
-
return new Date(
|
|
2414
|
+
return new Date(n.getFullYear(), 0, 2);
|
|
2415
2415
|
case 4:
|
|
2416
|
-
return new Date(
|
|
2416
|
+
return new Date(n.getFullYear(), 0, 1);
|
|
2417
2417
|
case 5:
|
|
2418
|
-
return new Date(
|
|
2418
|
+
return new Date(n.getFullYear() - 1, 11, 31);
|
|
2419
2419
|
case 6:
|
|
2420
|
-
return new Date(
|
|
2420
|
+
return new Date(n.getFullYear() - 1, 11, 30);
|
|
2421
2421
|
}
|
|
2422
2422
|
}
|
|
2423
|
-
function n
|
|
2424
|
-
var
|
|
2425
|
-
for (
|
|
2426
|
-
var
|
|
2427
|
-
if (
|
|
2428
|
-
|
|
2423
|
+
function m(n) {
|
|
2424
|
+
var q = n.$;
|
|
2425
|
+
for (n = new Date((new Date(n.aa + 1900, 0, 1)).getTime()); 0 < q;) {
|
|
2426
|
+
var t = n.getMonth(), y = (td(n.getFullYear()) ? Xd : Yd)[t];
|
|
2427
|
+
if (q > y - n.getDate()) {
|
|
2428
|
+
q -= y - n.getDate() + 1, n.setDate(1), 11 > t ? n.setMonth(t + 1) : (n.setMonth(0), n.setFullYear(n.getFullYear() + 1));
|
|
2429
2429
|
} else {
|
|
2430
|
-
|
|
2430
|
+
n.setDate(n.getDate() + q);
|
|
2431
2431
|
break;
|
|
2432
2432
|
}
|
|
2433
2433
|
}
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
return 0 >= g(
|
|
2434
|
+
t = new Date(n.getFullYear() + 1, 0, 4);
|
|
2435
|
+
q = h(new Date(n.getFullYear(), 0, 4));
|
|
2436
|
+
t = h(t);
|
|
2437
|
+
return 0 >= g(q, n) ? 0 >= g(t, n) ? n.getFullYear() + 1 : n.getFullYear() : n.getFullYear() - 1;
|
|
2438
2438
|
}
|
|
2439
|
-
var
|
|
2440
|
-
d = {
|
|
2439
|
+
var l = K[d + 40 >> 2];
|
|
2440
|
+
d = {ac:F[d >> 2], $b:F[d + 4 >> 2], Da:F[d + 8 >> 2], Pa:F[d + 12 >> 2], Ea:F[d + 16 >> 2], aa:F[d + 20 >> 2], N:F[d + 24 >> 2], $:F[d + 28 >> 2], Ic:F[d + 32 >> 2], Zb:F[d + 36 >> 2], bc:l ? l ? L(D, l) : "" : ""};
|
|
2441
2441
|
c = c ? L(D, c) : "";
|
|
2442
|
-
|
|
2443
|
-
for (var
|
|
2444
|
-
c = c.replace(new RegExp(
|
|
2445
|
-
}
|
|
2446
|
-
var
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
0 ==
|
|
2450
|
-
return f(
|
|
2451
|
-
}, "%j":
|
|
2452
|
-
for (var
|
|
2453
|
-
}
|
|
2454
|
-
return f(
|
|
2455
|
-
}, "%m":
|
|
2456
|
-
var
|
|
2457
|
-
2 >= (
|
|
2458
|
-
if (
|
|
2459
|
-
53 ==
|
|
2442
|
+
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",};
|
|
2443
|
+
for (var r in l) {
|
|
2444
|
+
c = c.replace(new RegExp(r, "g"), l[r]);
|
|
2445
|
+
}
|
|
2446
|
+
var u = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), w = "January February March April May June July August September October November December".split(" ");
|
|
2447
|
+
l = {"%a":n => u[n.N].substring(0, 3), "%A":n => u[n.N], "%b":n => w[n.Ea].substring(0, 3), "%B":n => w[n.Ea], "%C":n => f((n.aa + 1900) / 100 | 0, 2), "%d":n => f(n.Pa, 2), "%e":n => e(n.Pa, 2, " "), "%g":n => m(n).toString().substring(2), "%G":m, "%H":n => f(n.Da, 2), "%I":n => {
|
|
2448
|
+
n = n.Da;
|
|
2449
|
+
0 == n ? n = 12 : 12 < n && (n -= 12);
|
|
2450
|
+
return f(n, 2);
|
|
2451
|
+
}, "%j":n => {
|
|
2452
|
+
for (var q = 0, t = 0; t <= n.Ea - 1; q += (td(n.aa + 1900) ? Xd : Yd)[t++]) {
|
|
2453
|
+
}
|
|
2454
|
+
return f(n.Pa + q, 3);
|
|
2455
|
+
}, "%m":n => f(n.Ea + 1, 2), "%M":n => f(n.$b, 2), "%n":() => "\n", "%p":n => 0 <= n.Da && 12 > n.Da ? "AM" : "PM", "%S":n => f(n.ac, 2), "%t":() => "\t", "%u":n => n.N || 7, "%U":n => f(Math.floor((n.$ + 7 - n.N) / 7), 2), "%V":n => {
|
|
2456
|
+
var q = Math.floor((n.$ + 7 - (n.N + 6) % 7) / 7);
|
|
2457
|
+
2 >= (n.N + 371 - n.$ - 2) % 7 && q++;
|
|
2458
|
+
if (q) {
|
|
2459
|
+
53 == q && (t = (n.N + 371 - n.$) % 7, 4 == t || 3 == t && td(n.aa) || (q = 1));
|
|
2460
2460
|
} else {
|
|
2461
|
-
|
|
2462
|
-
var
|
|
2463
|
-
(4 ==
|
|
2464
|
-
}
|
|
2465
|
-
return f(
|
|
2466
|
-
}, "%w":
|
|
2467
|
-
|
|
2468
|
-
var
|
|
2469
|
-
|
|
2470
|
-
return (
|
|
2471
|
-
}, "%Z":
|
|
2461
|
+
q = 52;
|
|
2462
|
+
var t = (n.N + 7 - n.$ - 1) % 7;
|
|
2463
|
+
(4 == t || 5 == t && td(n.aa % 400 - 1)) && q++;
|
|
2464
|
+
}
|
|
2465
|
+
return f(q, 2);
|
|
2466
|
+
}, "%w":n => n.N, "%W":n => f(Math.floor((n.$ + 7 - (n.N + 6) % 7) / 7), 2), "%y":n => (n.aa + 1900).toString().substring(2), "%Y":n => n.aa + 1900, "%z":n => {
|
|
2467
|
+
n = n.Zb;
|
|
2468
|
+
var q = 0 <= n;
|
|
2469
|
+
n = Math.abs(n) / 60;
|
|
2470
|
+
return (q ? "+" : "-") + String("0000" + (n / 60 * 100 + n % 60)).slice(-4);
|
|
2471
|
+
}, "%Z":n => n.bc, "%%":() => "%"};
|
|
2472
2472
|
c = c.replace(/%%/g, "\x00\x00");
|
|
2473
|
-
for (
|
|
2474
|
-
c.includes(
|
|
2473
|
+
for (r in l) {
|
|
2474
|
+
c.includes(r) && (c = c.replace(new RegExp(r, "g"), l[r](d)));
|
|
2475
2475
|
}
|
|
2476
2476
|
c = c.replace(/\0\0/g, "%");
|
|
2477
|
-
|
|
2478
|
-
if (
|
|
2477
|
+
r = gb(c, !1);
|
|
2478
|
+
if (r.length > b) {
|
|
2479
2479
|
return 0;
|
|
2480
2480
|
}
|
|
2481
|
-
|
|
2482
|
-
return
|
|
2481
|
+
C.set(r, a);
|
|
2482
|
+
return r.length - 1;
|
|
2483
2483
|
};
|
|
2484
2484
|
[44].forEach(a => {
|
|
2485
|
-
|
|
2486
|
-
|
|
2485
|
+
rb[a] = new M(a);
|
|
2486
|
+
rb[a].stack = "<generic error, no stack>";
|
|
2487
2487
|
});
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2488
|
+
yb = Array(4096);
|
|
2489
|
+
Mb(N, "/");
|
|
2490
|
+
Ob("/tmp");
|
|
2491
|
+
Ob("/home");
|
|
2492
|
+
Ob("/home/web_user");
|
|
2493
2493
|
(function() {
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2494
|
+
Ob("/dev");
|
|
2495
|
+
jb(259, {read:() => 0, write:(d, e, f, g) => g,});
|
|
2496
|
+
Pb("/dev/null", 259);
|
|
2497
|
+
ib(1280, lb);
|
|
2498
|
+
ib(1536, mb);
|
|
2499
|
+
Pb("/dev/tty", 1280);
|
|
2500
|
+
Pb("/dev/tty1", 1536);
|
|
2501
2501
|
var a = new Uint8Array(1024), b = 0, c = () => {
|
|
2502
|
-
0 === b && (b =
|
|
2502
|
+
0 === b && (b = ab(a).byteLength);
|
|
2503
2503
|
return a[--b];
|
|
2504
2504
|
};
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2505
|
+
Vb("random", c);
|
|
2506
|
+
Vb("urandom", c);
|
|
2507
|
+
Ob("/dev/shm");
|
|
2508
|
+
Ob("/dev/shm/tmp");
|
|
2509
2509
|
})();
|
|
2510
2510
|
(function() {
|
|
2511
|
-
|
|
2512
|
-
var a =
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
var b =
|
|
2516
|
-
b.
|
|
2517
|
-
var e =
|
|
2518
|
-
c = {parent:null,
|
|
2511
|
+
Ob("/proc");
|
|
2512
|
+
var a = Ob("/proc/self");
|
|
2513
|
+
Ob("/proc/self/fd");
|
|
2514
|
+
Mb({R() {
|
|
2515
|
+
var b = qb(a, "fd", 16895, 73);
|
|
2516
|
+
b.i = {ha(c, d) {
|
|
2517
|
+
var e = Jb(+d);
|
|
2518
|
+
c = {parent:null, R:{cb:"fake"}, i:{ia:() => e.path},};
|
|
2519
2519
|
return c.parent = c;
|
|
2520
2520
|
}};
|
|
2521
2521
|
return b;
|
|
2522
2522
|
}}, "/proc/self/fd");
|
|
2523
2523
|
})();
|
|
2524
|
-
P =
|
|
2524
|
+
P = k.BindingError = class extends Error {
|
|
2525
2525
|
constructor(a) {
|
|
2526
2526
|
super(a);
|
|
2527
2527
|
this.name = "BindingError";
|
|
2528
2528
|
}
|
|
2529
2529
|
};
|
|
2530
2530
|
O.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1,);
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
for (var
|
|
2534
|
-
ae
|
|
2531
|
+
k.count_emval_handles = () => O.length / 2 - 5 - Zb.length;
|
|
2532
|
+
bc = k.PureVirtualError = ac("PureVirtualError");
|
|
2533
|
+
for (var $d = Array(256), ae = 0; 256 > ae; ++ae) {
|
|
2534
|
+
$d[ae] = String.fromCharCode(ae);
|
|
2535
2535
|
}
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2536
|
+
cc = $d;
|
|
2537
|
+
k.getInheritedInstanceCount = () => Object.keys(gc).length;
|
|
2538
|
+
k.getLiveInheritedInstances = () => {
|
|
2539
2539
|
var a = [], b;
|
|
2540
|
-
for (b in
|
|
2541
|
-
|
|
2540
|
+
for (b in gc) {
|
|
2541
|
+
gc.hasOwnProperty(b) && a.push(gc[b]);
|
|
2542
2542
|
}
|
|
2543
2543
|
return a;
|
|
2544
2544
|
};
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2545
|
+
k.flushPendingDeletes = ec;
|
|
2546
|
+
k.setDelayFunction = a => {
|
|
2547
|
+
fc = a;
|
|
2548
|
+
dc.length && fc && fc(ec);
|
|
2549
2549
|
};
|
|
2550
|
-
|
|
2550
|
+
sc = k.InternalError = class extends Error {
|
|
2551
2551
|
constructor(a) {
|
|
2552
2552
|
super(a);
|
|
2553
2553
|
this.name = "InternalError";
|
|
2554
2554
|
}
|
|
2555
2555
|
};
|
|
2556
|
-
Object.assign(
|
|
2557
|
-
if (!(this instanceof
|
|
2556
|
+
Object.assign(Cc.prototype, {isAliasOf:function(a) {
|
|
2557
|
+
if (!(this instanceof Cc && a instanceof Cc)) {
|
|
2558
2558
|
return !1;
|
|
2559
2559
|
}
|
|
2560
|
-
var b = this.g.
|
|
2560
|
+
var b = this.g.s.h, c = this.g.m;
|
|
2561
2561
|
a.g = a.g;
|
|
2562
|
-
var d = a.g.
|
|
2563
|
-
for (a = a.g.
|
|
2564
|
-
c = b.
|
|
2562
|
+
var d = a.g.s.h;
|
|
2563
|
+
for (a = a.g.m; b.A;) {
|
|
2564
|
+
c = b.ka(c), b = b.A;
|
|
2565
2565
|
}
|
|
2566
|
-
for (; d.
|
|
2567
|
-
a = d.
|
|
2566
|
+
for (; d.A;) {
|
|
2567
|
+
a = d.ka(a), d = d.A;
|
|
2568
2568
|
}
|
|
2569
2569
|
return b === d && c === a;
|
|
2570
2570
|
}, clone:function() {
|
|
2571
|
-
this.g.
|
|
2572
|
-
if (this.g.
|
|
2571
|
+
this.g.m || Bc(this);
|
|
2572
|
+
if (this.g.fa) {
|
|
2573
2573
|
return this.g.count.value += 1, this;
|
|
2574
2574
|
}
|
|
2575
|
-
var a =
|
|
2576
|
-
a = a(c.call(b, d, {g:{value:{count:e.count,
|
|
2575
|
+
var a = tc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
|
|
2576
|
+
a = a(c.call(b, d, {g:{value:{count:e.count, ea:e.ea, fa:e.fa, m:e.m, s:e.s, B:e.B, G:e.G,},}}));
|
|
2577
2577
|
a.g.count.value += 1;
|
|
2578
|
-
a.g.
|
|
2578
|
+
a.g.ea = !1;
|
|
2579
2579
|
return a;
|
|
2580
2580
|
}, ["delete"]() {
|
|
2581
|
-
this.g.
|
|
2582
|
-
if (this.g.
|
|
2581
|
+
this.g.m || Bc(this);
|
|
2582
|
+
if (this.g.ea && !this.g.fa) {
|
|
2583
2583
|
throw new P("Object already scheduled for deletion");
|
|
2584
2584
|
}
|
|
2585
|
-
|
|
2585
|
+
nc(this);
|
|
2586
2586
|
var a = this.g;
|
|
2587
2587
|
--a.count.value;
|
|
2588
|
-
0 === a.count.value && (a.
|
|
2589
|
-
this.g.
|
|
2588
|
+
0 === a.count.value && (a.B ? a.G.L(a.B) : a.s.h.L(a.m));
|
|
2589
|
+
this.g.fa || (this.g.B = void 0, this.g.m = void 0);
|
|
2590
2590
|
}, isDeleted:function() {
|
|
2591
|
-
return !this.g.
|
|
2591
|
+
return !this.g.m;
|
|
2592
2592
|
}, deleteLater:function() {
|
|
2593
|
-
this.g.
|
|
2594
|
-
if (this.g.
|
|
2593
|
+
this.g.m || Bc(this);
|
|
2594
|
+
if (this.g.ea && !this.g.fa) {
|
|
2595
2595
|
throw new P("Object already scheduled for deletion");
|
|
2596
2596
|
}
|
|
2597
|
-
|
|
2598
|
-
1 ===
|
|
2599
|
-
this.g.
|
|
2597
|
+
dc.push(this);
|
|
2598
|
+
1 === dc.length && fc && fc(ec);
|
|
2599
|
+
this.g.ea = !0;
|
|
2600
2600
|
return this;
|
|
2601
2601
|
},});
|
|
2602
|
-
Object.assign(
|
|
2603
|
-
this.
|
|
2602
|
+
Object.assign(Mc.prototype, {Gb(a) {
|
|
2603
|
+
this.jb && (a = this.jb(a));
|
|
2604
2604
|
return a;
|
|
2605
|
-
},
|
|
2606
|
-
this.
|
|
2607
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2605
|
+
}, Va(a) {
|
|
2606
|
+
this.L?.(a);
|
|
2607
|
+
}, argPackAdvance:8, readValueFromPointer:xc, fromWireType:function(a) {
|
|
2608
2608
|
function b() {
|
|
2609
|
-
return this.
|
|
2609
|
+
return this.ta ? uc(this.h.J, {s:this.Tb, m:c, G:this, B:a,}) : uc(this.h.J, {s:this, m:a,});
|
|
2610
2610
|
}
|
|
2611
|
-
var c = this.
|
|
2611
|
+
var c = this.Gb(a);
|
|
2612
2612
|
if (!c) {
|
|
2613
|
-
return this.
|
|
2613
|
+
return this.Va(a), null;
|
|
2614
2614
|
}
|
|
2615
|
-
var d =
|
|
2615
|
+
var d = rc(this.h, c);
|
|
2616
2616
|
if (void 0 !== d) {
|
|
2617
2617
|
if (0 === d.g.count.value) {
|
|
2618
|
-
return d.g.
|
|
2618
|
+
return d.g.m = c, d.g.B = a, d.clone();
|
|
2619
2619
|
}
|
|
2620
2620
|
d = d.clone();
|
|
2621
|
-
this.
|
|
2621
|
+
this.Va(a);
|
|
2622
2622
|
return d;
|
|
2623
2623
|
}
|
|
2624
|
-
d = this.
|
|
2625
|
-
d =
|
|
2624
|
+
d = this.h.Fb(c);
|
|
2625
|
+
d = qc[d];
|
|
2626
2626
|
if (!d) {
|
|
2627
2627
|
return b.call(this);
|
|
2628
2628
|
}
|
|
2629
|
-
d = this.
|
|
2630
|
-
var e =
|
|
2631
|
-
return null === e ? b.call(this) : this.
|
|
2629
|
+
d = this.sa ? d.yb : d.pointerType;
|
|
2630
|
+
var e = pc(c, this.h, d.h);
|
|
2631
|
+
return null === e ? b.call(this) : this.ta ? uc(d.h.J, {s:d, m:e, G:this, B:a,}) : uc(d.h.J, {s:d, m:e,});
|
|
2632
2632
|
},});
|
|
2633
|
-
|
|
2634
|
-
for (var W,
|
|
2635
|
-
|
|
2633
|
+
Tc = k.UnboundTypeError = ac("UnboundTypeError");
|
|
2634
|
+
for (var W, be = 0; 32 > be; ++be) {
|
|
2635
|
+
Qd.push(Array(be));
|
|
2636
2636
|
}
|
|
2637
|
-
var
|
|
2638
|
-
|
|
2637
|
+
var de = {__syscall_fcntl64:function(a, b, c) {
|
|
2638
|
+
Va = c;
|
|
2639
2639
|
try {
|
|
2640
|
-
var d =
|
|
2640
|
+
var d = Jb(a);
|
|
2641
2641
|
switch(b) {
|
|
2642
2642
|
case 0:
|
|
2643
|
-
var e =
|
|
2643
|
+
var e = Ua();
|
|
2644
2644
|
if (0 > e) {
|
|
2645
2645
|
break;
|
|
2646
2646
|
}
|
|
2647
|
-
for (;
|
|
2647
|
+
for (; wb[e];) {
|
|
2648
2648
|
e++;
|
|
2649
2649
|
}
|
|
2650
|
-
return
|
|
2650
|
+
return Lb(d, e).T;
|
|
2651
2651
|
case 1:
|
|
2652
2652
|
case 2:
|
|
2653
2653
|
return 0;
|
|
2654
2654
|
case 3:
|
|
2655
2655
|
return d.flags;
|
|
2656
2656
|
case 4:
|
|
2657
|
-
return e =
|
|
2657
|
+
return e = Ua(), d.flags |= e, 0;
|
|
2658
2658
|
case 12:
|
|
2659
|
-
return e =
|
|
2659
|
+
return e = Ua(), E[e + 0 >> 1] = 2, 0;
|
|
2660
2660
|
case 13:
|
|
2661
2661
|
case 14:
|
|
2662
2662
|
return 0;
|
|
2663
2663
|
}
|
|
2664
2664
|
return -28;
|
|
2665
2665
|
} catch (f) {
|
|
2666
|
-
if ("undefined" == typeof
|
|
2666
|
+
if ("undefined" == typeof Xb || "ErrnoError" !== f.name) {
|
|
2667
2667
|
throw f;
|
|
2668
2668
|
}
|
|
2669
|
-
return -f.
|
|
2669
|
+
return -f.Y;
|
|
2670
2670
|
}
|
|
2671
2671
|
}, __syscall_ioctl:function(a, b, c) {
|
|
2672
|
-
|
|
2672
|
+
Va = c;
|
|
2673
2673
|
try {
|
|
2674
|
-
var d =
|
|
2674
|
+
var d = Jb(a);
|
|
2675
2675
|
switch(b) {
|
|
2676
2676
|
case 21509:
|
|
2677
|
-
return d.
|
|
2677
|
+
return d.o ? 0 : -59;
|
|
2678
2678
|
case 21505:
|
|
2679
|
-
if (!d.
|
|
2679
|
+
if (!d.o) {
|
|
2680
2680
|
return -59;
|
|
2681
2681
|
}
|
|
2682
|
-
if (d.
|
|
2682
|
+
if (d.o.S.Nb) {
|
|
2683
2683
|
a = [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,];
|
|
2684
|
-
var e =
|
|
2684
|
+
var e = Ua();
|
|
2685
2685
|
F[e >> 2] = 25856;
|
|
2686
2686
|
F[e + 4 >> 2] = 5;
|
|
2687
2687
|
F[e + 8 >> 2] = 191;
|
|
2688
2688
|
F[e + 12 >> 2] = 35387;
|
|
2689
2689
|
for (var f = 0; 32 > f; f++) {
|
|
2690
|
-
|
|
2690
|
+
C[e + f + 17] = a[f] || 0;
|
|
2691
2691
|
}
|
|
2692
2692
|
}
|
|
2693
2693
|
return 0;
|
|
2694
2694
|
case 21510:
|
|
2695
2695
|
case 21511:
|
|
2696
2696
|
case 21512:
|
|
2697
|
-
return d.
|
|
2697
|
+
return d.o ? 0 : -59;
|
|
2698
2698
|
case 21506:
|
|
2699
2699
|
case 21507:
|
|
2700
2700
|
case 21508:
|
|
2701
|
-
if (!d.
|
|
2701
|
+
if (!d.o) {
|
|
2702
2702
|
return -59;
|
|
2703
2703
|
}
|
|
2704
|
-
if (d.
|
|
2705
|
-
for (e =
|
|
2706
|
-
a.push(
|
|
2704
|
+
if (d.o.S.Ob) {
|
|
2705
|
+
for (e = Ua(), a = [], f = 0; 32 > f; f++) {
|
|
2706
|
+
a.push(C[e + f + 17]);
|
|
2707
2707
|
}
|
|
2708
2708
|
}
|
|
2709
2709
|
return 0;
|
|
2710
2710
|
case 21519:
|
|
2711
|
-
if (!d.
|
|
2711
|
+
if (!d.o) {
|
|
2712
2712
|
return -59;
|
|
2713
2713
|
}
|
|
2714
|
-
e =
|
|
2714
|
+
e = Ua();
|
|
2715
2715
|
return F[e >> 2] = 0;
|
|
2716
2716
|
case 21520:
|
|
2717
|
-
return d.
|
|
2717
|
+
return d.o ? -28 : -59;
|
|
2718
2718
|
case 21531:
|
|
2719
|
-
e =
|
|
2720
|
-
if (!d.
|
|
2719
|
+
e = Ua();
|
|
2720
|
+
if (!d.l.Mb) {
|
|
2721
2721
|
throw new M(59);
|
|
2722
2722
|
}
|
|
2723
|
-
return d.
|
|
2723
|
+
return d.l.Mb(d, b, e);
|
|
2724
2724
|
case 21523:
|
|
2725
|
-
if (!d.
|
|
2725
|
+
if (!d.o) {
|
|
2726
2726
|
return -59;
|
|
2727
2727
|
}
|
|
2728
|
-
d.
|
|
2728
|
+
d.o.S.Pb && (f = [24, 80], e = Ua(), E[e >> 1] = f[0], E[e + 2 >> 1] = f[1]);
|
|
2729
2729
|
return 0;
|
|
2730
2730
|
case 21524:
|
|
2731
|
-
return d.
|
|
2731
|
+
return d.o ? 0 : -59;
|
|
2732
2732
|
case 21515:
|
|
2733
|
-
return d.
|
|
2733
|
+
return d.o ? 0 : -59;
|
|
2734
2734
|
default:
|
|
2735
2735
|
return -28;
|
|
2736
2736
|
}
|
|
2737
2737
|
} catch (g) {
|
|
2738
|
-
if ("undefined" == typeof
|
|
2738
|
+
if ("undefined" == typeof Xb || "ErrnoError" !== g.name) {
|
|
2739
2739
|
throw g;
|
|
2740
2740
|
}
|
|
2741
|
-
return -g.
|
|
2741
|
+
return -g.Y;
|
|
2742
2742
|
}
|
|
2743
2743
|
}, __syscall_openat:function(a, b, c, d) {
|
|
2744
|
-
|
|
2744
|
+
Va = d;
|
|
2745
2745
|
try {
|
|
2746
2746
|
b = b ? L(D, b) : "";
|
|
2747
2747
|
var e = b;
|
|
2748
2748
|
if ("/" === e.charAt(0)) {
|
|
2749
2749
|
b = e;
|
|
2750
2750
|
} else {
|
|
2751
|
-
var f = -100 === a ? "/" :
|
|
2751
|
+
var f = -100 === a ? "/" : Jb(a).path;
|
|
2752
2752
|
if (0 == e.length) {
|
|
2753
2753
|
throw new M(44);
|
|
2754
2754
|
}
|
|
2755
|
-
b =
|
|
2755
|
+
b = Xa(f + "/" + e);
|
|
2756
2756
|
}
|
|
2757
|
-
var g = d ?
|
|
2758
|
-
return
|
|
2759
|
-
} catch (
|
|
2760
|
-
if ("undefined" == typeof
|
|
2761
|
-
throw
|
|
2757
|
+
var g = d ? Ua() : 0;
|
|
2758
|
+
return Rb(b, c, g).T;
|
|
2759
|
+
} catch (h) {
|
|
2760
|
+
if ("undefined" == typeof Xb || "ErrnoError" !== h.name) {
|
|
2761
|
+
throw h;
|
|
2762
2762
|
}
|
|
2763
|
-
return -
|
|
2763
|
+
return -h.Y;
|
|
2764
2764
|
}
|
|
2765
2765
|
}, _abort_js:() => {
|
|
2766
|
-
|
|
2766
|
+
Ga("");
|
|
2767
2767
|
}, _embind_create_inheriting_constructor:(a, b, c) => {
|
|
2768
2768
|
a = R(a);
|
|
2769
|
-
b =
|
|
2769
|
+
b = mc(b, "wrapper");
|
|
2770
2770
|
c = Q(c);
|
|
2771
|
-
var d = b.
|
|
2772
|
-
a =
|
|
2773
|
-
d.
|
|
2774
|
-
if (this[
|
|
2775
|
-
throw new
|
|
2771
|
+
var d = b.h, e = d.J, f = d.A.J, g = d.A.constructor;
|
|
2772
|
+
a = Yb(a, function(...h) {
|
|
2773
|
+
d.A.hb.forEach(function(m) {
|
|
2774
|
+
if (this[m] === f[m]) {
|
|
2775
|
+
throw new bc(`Pure virtual function ${m} must be implemented in JavaScript`);
|
|
2776
2776
|
}
|
|
2777
2777
|
}.bind(this));
|
|
2778
2778
|
Object.defineProperty(this, "__parent", {value:e});
|
|
2779
|
-
this.__construct(...
|
|
2779
|
+
this.__construct(...h);
|
|
2780
2780
|
});
|
|
2781
|
-
e.__construct = function(...
|
|
2781
|
+
e.__construct = function(...h) {
|
|
2782
2782
|
if (this === e) {
|
|
2783
2783
|
throw new P("Pass correct 'this' to __construct");
|
|
2784
2784
|
}
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
var
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
Object.defineProperties(this, {g:{value:
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
if (
|
|
2795
|
-
throw new P(`Tried to register registered instance: ${
|
|
2796
|
-
}
|
|
2797
|
-
|
|
2785
|
+
h = g.implement(this, ...h);
|
|
2786
|
+
nc(h);
|
|
2787
|
+
var m = h.g;
|
|
2788
|
+
h.notifyOnDestruction();
|
|
2789
|
+
m.fa = !0;
|
|
2790
|
+
Object.defineProperties(this, {g:{value:m}});
|
|
2791
|
+
tc(this);
|
|
2792
|
+
h = m.m;
|
|
2793
|
+
h = hc(d, h);
|
|
2794
|
+
if (gc.hasOwnProperty(h)) {
|
|
2795
|
+
throw new P(`Tried to register registered instance: ${h}`);
|
|
2796
|
+
}
|
|
2797
|
+
gc[h] = this;
|
|
2798
2798
|
};
|
|
2799
2799
|
e.__destruct = function() {
|
|
2800
2800
|
if (this === e) {
|
|
2801
2801
|
throw new P("Pass correct 'this' to __destruct");
|
|
2802
2802
|
}
|
|
2803
|
-
|
|
2804
|
-
var
|
|
2805
|
-
|
|
2806
|
-
if (
|
|
2807
|
-
delete
|
|
2803
|
+
nc(this);
|
|
2804
|
+
var h = this.g.m;
|
|
2805
|
+
h = hc(d, h);
|
|
2806
|
+
if (gc.hasOwnProperty(h)) {
|
|
2807
|
+
delete gc[h];
|
|
2808
2808
|
} else {
|
|
2809
|
-
throw new P(`Tried to unregister unregistered instance: ${
|
|
2809
|
+
throw new P(`Tried to unregister unregistered instance: ${h}`);
|
|
2810
2810
|
}
|
|
2811
2811
|
};
|
|
2812
2812
|
a.prototype = Object.create(e);
|
|
2813
2813
|
Object.assign(a.prototype, c);
|
|
2814
|
-
return
|
|
2814
|
+
return $b(a);
|
|
2815
2815
|
}, _embind_finalize_value_object:a => {
|
|
2816
|
-
var b =
|
|
2817
|
-
delete
|
|
2818
|
-
var c = b.
|
|
2816
|
+
var b = vc[a];
|
|
2817
|
+
delete vc[a];
|
|
2818
|
+
var c = b.Na, d = b.L, e = b.Xa, f = e.map(g => g.Jb).concat(e.map(g => g.Wb));
|
|
2819
2819
|
T([a], f, g => {
|
|
2820
|
-
var
|
|
2821
|
-
e.forEach((
|
|
2822
|
-
var
|
|
2823
|
-
|
|
2824
|
-
var
|
|
2825
|
-
|
|
2826
|
-
|
|
2820
|
+
var h = {};
|
|
2821
|
+
e.forEach((m, l) => {
|
|
2822
|
+
var r = g[l], u = m.Hb, w = m.Ib, n = g[l + e.length], q = m.Vb, t = m.Xb;
|
|
2823
|
+
h[m.Db] = {read:y => r.fromWireType(u(w, y)), write:(y, z) => {
|
|
2824
|
+
var B = [];
|
|
2825
|
+
q(t, y, n.toWireType(B, z));
|
|
2826
|
+
wc(B);
|
|
2827
2827
|
}};
|
|
2828
2828
|
});
|
|
2829
|
-
return [{name:b.name, fromWireType:
|
|
2830
|
-
var
|
|
2831
|
-
for (
|
|
2832
|
-
|
|
2829
|
+
return [{name:b.name, fromWireType:m => {
|
|
2830
|
+
var l = {}, r;
|
|
2831
|
+
for (r in h) {
|
|
2832
|
+
l[r] = h[r].read(m);
|
|
2833
2833
|
}
|
|
2834
|
-
d(
|
|
2835
|
-
return
|
|
2836
|
-
}, toWireType:(
|
|
2837
|
-
for (var
|
|
2838
|
-
if (!(
|
|
2839
|
-
throw new TypeError(`Missing field: "${
|
|
2834
|
+
d(m);
|
|
2835
|
+
return l;
|
|
2836
|
+
}, toWireType:(m, l) => {
|
|
2837
|
+
for (var r in h) {
|
|
2838
|
+
if (!(r in l)) {
|
|
2839
|
+
throw new TypeError(`Missing field: "${r}"`);
|
|
2840
2840
|
}
|
|
2841
2841
|
}
|
|
2842
|
-
var
|
|
2843
|
-
for (
|
|
2844
|
-
|
|
2842
|
+
var u = c();
|
|
2843
|
+
for (r in h) {
|
|
2844
|
+
h[r].write(u, l[r]);
|
|
2845
2845
|
}
|
|
2846
|
-
null !==
|
|
2847
|
-
return
|
|
2848
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2846
|
+
null !== m && m.push(d, u);
|
|
2847
|
+
return u;
|
|
2848
|
+
}, argPackAdvance:8, readValueFromPointer:xc, I:d,}];
|
|
2849
2849
|
});
|
|
2850
2850
|
}, _embind_register_bigint:() => {
|
|
2851
2851
|
}, _embind_register_bool:(a, b, c, d) => {
|
|
@@ -2856,378 +2856,378 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2856
2856
|
return f ? c : d;
|
|
2857
2857
|
}, argPackAdvance:8, readValueFromPointer:function(e) {
|
|
2858
2858
|
return this.fromWireType(D[e]);
|
|
2859
|
-
},
|
|
2860
|
-
}, _embind_register_class:(a, b, c, d, e, f, g,
|
|
2861
|
-
|
|
2859
|
+
}, I:null,});
|
|
2860
|
+
}, _embind_register_class:(a, b, c, d, e, f, g, h, m, l, r, u, w) => {
|
|
2861
|
+
r = R(r);
|
|
2862
2862
|
f = U(e, f);
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
var
|
|
2867
|
-
|
|
2868
|
-
|
|
2863
|
+
h &&= U(g, h);
|
|
2864
|
+
l &&= U(m, l);
|
|
2865
|
+
w = U(u, w);
|
|
2866
|
+
var n = Fc(r);
|
|
2867
|
+
Ec(n, function() {
|
|
2868
|
+
Uc(`Cannot construct ${r} due to unbound types`, [d]);
|
|
2869
2869
|
});
|
|
2870
|
-
T([a, b, c], d ? [d] : [],
|
|
2871
|
-
|
|
2870
|
+
T([a, b, c], d ? [d] : [], q => {
|
|
2871
|
+
q = q[0];
|
|
2872
2872
|
if (d) {
|
|
2873
|
-
var
|
|
2874
|
-
var
|
|
2873
|
+
var t = q.h;
|
|
2874
|
+
var y = t.J;
|
|
2875
2875
|
} else {
|
|
2876
|
-
|
|
2876
|
+
y = Cc.prototype;
|
|
2877
2877
|
}
|
|
2878
|
-
|
|
2879
|
-
if (Object.getPrototypeOf(this) !==
|
|
2880
|
-
throw new P("Use 'new' to construct " +
|
|
2878
|
+
q = Yb(r, function(...I) {
|
|
2879
|
+
if (Object.getPrototypeOf(this) !== z) {
|
|
2880
|
+
throw new P("Use 'new' to construct " + r);
|
|
2881
2881
|
}
|
|
2882
|
-
if (void 0 ===
|
|
2883
|
-
throw new P(
|
|
2882
|
+
if (void 0 === B.X) {
|
|
2883
|
+
throw new P(r + " has no accessible constructor");
|
|
2884
2884
|
}
|
|
2885
|
-
var
|
|
2886
|
-
if (void 0 ===
|
|
2887
|
-
throw new P(`Tried to invoke ctor of ${
|
|
2885
|
+
var J = B.X[I.length];
|
|
2886
|
+
if (void 0 === J) {
|
|
2887
|
+
throw new P(`Tried to invoke ctor of ${r} with invalid number of parameters (${I.length}) - expected (${Object.keys(B.X).toString()}) parameters instead!`);
|
|
2888
2888
|
}
|
|
2889
|
-
return
|
|
2889
|
+
return J.apply(this, I);
|
|
2890
2890
|
});
|
|
2891
|
-
var
|
|
2892
|
-
|
|
2893
|
-
var
|
|
2894
|
-
if (
|
|
2895
|
-
var
|
|
2896
|
-
(
|
|
2897
|
-
|
|
2898
|
-
}
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
return [
|
|
2891
|
+
var z = Object.create(y, {constructor:{value:q},});
|
|
2892
|
+
q.prototype = z;
|
|
2893
|
+
var B = new Gc(r, q, z, w, t, f, h, l);
|
|
2894
|
+
if (B.A) {
|
|
2895
|
+
var G;
|
|
2896
|
+
(G = B.A).la ?? (G.la = []);
|
|
2897
|
+
B.A.la.push(B);
|
|
2898
|
+
}
|
|
2899
|
+
t = new Mc(r, B, !0, !1, !1);
|
|
2900
|
+
G = new Mc(r + "*", B, !1, !1, !1);
|
|
2901
|
+
y = new Mc(r + " const*", B, !1, !0, !1);
|
|
2902
|
+
qc[a] = {pointerType:G, yb:y};
|
|
2903
|
+
Nc(n, q);
|
|
2904
|
+
return [t, G, y];
|
|
2905
2905
|
});
|
|
2906
2906
|
}, _embind_register_class_class_function:(a, b, c, d, e, f, g) => {
|
|
2907
|
-
var
|
|
2907
|
+
var h = Xc(c, d);
|
|
2908
2908
|
b = R(b);
|
|
2909
|
-
b =
|
|
2909
|
+
b = Yc(b);
|
|
2910
2910
|
f = U(e, f);
|
|
2911
|
-
T([], [a],
|
|
2912
|
-
function
|
|
2913
|
-
|
|
2911
|
+
T([], [a], m => {
|
|
2912
|
+
function l() {
|
|
2913
|
+
Uc(`Cannot call ${r} due to unbound types`, h);
|
|
2914
2914
|
}
|
|
2915
|
-
|
|
2916
|
-
var
|
|
2915
|
+
m = m[0];
|
|
2916
|
+
var r = `${m.name}.${b}`;
|
|
2917
2917
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2918
|
-
var
|
|
2919
|
-
void 0 ===
|
|
2920
|
-
T([],
|
|
2921
|
-
|
|
2922
|
-
void 0 ===
|
|
2923
|
-
if (
|
|
2924
|
-
for (const
|
|
2925
|
-
|
|
2918
|
+
var u = m.h.constructor;
|
|
2919
|
+
void 0 === u[b] ? (l.da = c - 1, u[b] = l) : (Dc(u, b, r), u[b].v[c - 1] = l);
|
|
2920
|
+
T([], h, w => {
|
|
2921
|
+
w = Wc(r, [w[0], null].concat(w.slice(1)), null, f, g);
|
|
2922
|
+
void 0 === u[b].v ? (w.da = c - 1, u[b] = w) : u[b].v[c - 1] = w;
|
|
2923
|
+
if (m.h.la) {
|
|
2924
|
+
for (const n of m.h.la) {
|
|
2925
|
+
n.constructor.hasOwnProperty(b) || (n.constructor[b] = w);
|
|
2926
2926
|
}
|
|
2927
2927
|
}
|
|
2928
2928
|
return [];
|
|
2929
2929
|
});
|
|
2930
2930
|
return [];
|
|
2931
2931
|
});
|
|
2932
|
-
}, _embind_register_class_class_property:(a, b, c, d, e, f, g,
|
|
2932
|
+
}, _embind_register_class_class_property:(a, b, c, d, e, f, g, h) => {
|
|
2933
2933
|
b = R(b);
|
|
2934
2934
|
f = U(e, f);
|
|
2935
|
-
T([], [a],
|
|
2936
|
-
|
|
2937
|
-
var
|
|
2938
|
-
|
|
2935
|
+
T([], [a], m => {
|
|
2936
|
+
m = m[0];
|
|
2937
|
+
var l = `${m.name}.${b}`, r = {get() {
|
|
2938
|
+
Uc(`Cannot access ${l} due to unbound types`, [c]);
|
|
2939
2939
|
}, enumerable:!0, configurable:!0};
|
|
2940
|
-
|
|
2941
|
-
|
|
2940
|
+
r.set = h ? () => {
|
|
2941
|
+
Uc(`Cannot access ${l} due to unbound types`, [c]);
|
|
2942
2942
|
} : () => {
|
|
2943
|
-
throw new P(`${
|
|
2943
|
+
throw new P(`${l} is a read-only property`);
|
|
2944
2944
|
};
|
|
2945
|
-
Object.defineProperty(
|
|
2946
|
-
T([], [c],
|
|
2947
|
-
|
|
2948
|
-
var
|
|
2949
|
-
return
|
|
2945
|
+
Object.defineProperty(m.h.constructor, b, r);
|
|
2946
|
+
T([], [c], u => {
|
|
2947
|
+
u = u[0];
|
|
2948
|
+
var w = {get() {
|
|
2949
|
+
return u.fromWireType(f(d));
|
|
2950
2950
|
}, enumerable:!0};
|
|
2951
|
-
|
|
2952
|
-
var
|
|
2953
|
-
|
|
2954
|
-
|
|
2951
|
+
h && (h = U(g, h), w.set = n => {
|
|
2952
|
+
var q = [];
|
|
2953
|
+
h(d, u.toWireType(q, n));
|
|
2954
|
+
wc(q);
|
|
2955
2955
|
});
|
|
2956
|
-
Object.defineProperty(
|
|
2956
|
+
Object.defineProperty(m.h.constructor, b, w);
|
|
2957
2957
|
return [];
|
|
2958
2958
|
});
|
|
2959
2959
|
return [];
|
|
2960
2960
|
});
|
|
2961
2961
|
}, _embind_register_class_constructor:(a, b, c, d, e, f) => {
|
|
2962
|
-
var g =
|
|
2962
|
+
var g = Xc(b, c);
|
|
2963
2963
|
e = U(d, e);
|
|
2964
|
-
T([], [a],
|
|
2965
|
-
|
|
2966
|
-
var
|
|
2967
|
-
void 0 ===
|
|
2968
|
-
if (void 0 !==
|
|
2969
|
-
throw new P(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${
|
|
2970
|
-
}
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
};
|
|
2974
|
-
T([], g,
|
|
2975
|
-
|
|
2976
|
-
|
|
2964
|
+
T([], [a], h => {
|
|
2965
|
+
h = h[0];
|
|
2966
|
+
var m = `constructor ${h.name}`;
|
|
2967
|
+
void 0 === h.h.X && (h.h.X = []);
|
|
2968
|
+
if (void 0 !== h.h.X[b - 1]) {
|
|
2969
|
+
throw new P(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${h.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
2970
|
+
}
|
|
2971
|
+
h.h.X[b - 1] = () => {
|
|
2972
|
+
Uc(`Cannot construct ${h.name} due to unbound types`, g);
|
|
2973
|
+
};
|
|
2974
|
+
T([], g, l => {
|
|
2975
|
+
l.splice(1, 0, null);
|
|
2976
|
+
h.h.X[b - 1] = Wc(m, l, null, e, f);
|
|
2977
2977
|
return [];
|
|
2978
2978
|
});
|
|
2979
2979
|
return [];
|
|
2980
2980
|
});
|
|
2981
|
-
}, _embind_register_class_function:(a, b, c, d, e, f, g,
|
|
2982
|
-
var
|
|
2981
|
+
}, _embind_register_class_function:(a, b, c, d, e, f, g, h) => {
|
|
2982
|
+
var m = Xc(c, d);
|
|
2983
2983
|
b = R(b);
|
|
2984
|
-
b =
|
|
2984
|
+
b = Yc(b);
|
|
2985
2985
|
f = U(e, f);
|
|
2986
|
-
T([], [a],
|
|
2987
|
-
function
|
|
2988
|
-
|
|
2986
|
+
T([], [a], l => {
|
|
2987
|
+
function r() {
|
|
2988
|
+
Uc(`Cannot call ${u} due to unbound types`, m);
|
|
2989
2989
|
}
|
|
2990
|
-
|
|
2991
|
-
var
|
|
2990
|
+
l = l[0];
|
|
2991
|
+
var u = `${l.name}.${b}`;
|
|
2992
2992
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2993
|
-
|
|
2994
|
-
var
|
|
2995
|
-
void 0 ===
|
|
2996
|
-
T([],
|
|
2997
|
-
|
|
2998
|
-
void 0 ===
|
|
2993
|
+
h && l.h.hb.push(b);
|
|
2994
|
+
var w = l.h.J, n = w[b];
|
|
2995
|
+
void 0 === n || void 0 === n.v && n.className !== l.name && n.da === c - 2 ? (r.da = c - 2, r.className = l.name, w[b] = r) : (Dc(w, b, u), w[b].v[c - 2] = r);
|
|
2996
|
+
T([], m, q => {
|
|
2997
|
+
q = Wc(u, q, l, f, g);
|
|
2998
|
+
void 0 === w[b].v ? (q.da = c - 2, w[b] = q) : w[b].v[c - 2] = q;
|
|
2999
2999
|
return [];
|
|
3000
3000
|
});
|
|
3001
3001
|
return [];
|
|
3002
3002
|
});
|
|
3003
|
-
}, _embind_register_class_property:(a, b, c, d, e, f, g,
|
|
3003
|
+
}, _embind_register_class_property:(a, b, c, d, e, f, g, h, m, l) => {
|
|
3004
3004
|
b = R(b);
|
|
3005
3005
|
e = U(d, e);
|
|
3006
|
-
T([], [a],
|
|
3007
|
-
|
|
3008
|
-
var
|
|
3009
|
-
|
|
3006
|
+
T([], [a], r => {
|
|
3007
|
+
r = r[0];
|
|
3008
|
+
var u = `${r.name}.${b}`, w = {get() {
|
|
3009
|
+
Uc(`Cannot access ${u} due to unbound types`, [c, g]);
|
|
3010
3010
|
}, enumerable:!0, configurable:!0};
|
|
3011
|
-
|
|
3012
|
-
throw new P(
|
|
3013
|
-
};
|
|
3014
|
-
Object.defineProperty(
|
|
3015
|
-
T([],
|
|
3016
|
-
var
|
|
3017
|
-
var
|
|
3018
|
-
return
|
|
3011
|
+
w.set = m ? () => Uc(`Cannot access ${u} due to unbound types`, [c, g]) : () => {
|
|
3012
|
+
throw new P(u + " is a read-only property");
|
|
3013
|
+
};
|
|
3014
|
+
Object.defineProperty(r.h.J, b, w);
|
|
3015
|
+
T([], m ? [c, g] : [c], n => {
|
|
3016
|
+
var q = n[0], t = {get() {
|
|
3017
|
+
var z = Zc(this, r, u + " getter");
|
|
3018
|
+
return q.fromWireType(e(f, z));
|
|
3019
3019
|
}, enumerable:!0};
|
|
3020
|
-
if (
|
|
3021
|
-
|
|
3022
|
-
var
|
|
3023
|
-
|
|
3024
|
-
var
|
|
3025
|
-
|
|
3026
|
-
|
|
3020
|
+
if (m) {
|
|
3021
|
+
m = U(h, m);
|
|
3022
|
+
var y = n[1];
|
|
3023
|
+
t.set = function(z) {
|
|
3024
|
+
var B = Zc(this, r, u + " setter"), G = [];
|
|
3025
|
+
m(l, B, y.toWireType(G, z));
|
|
3026
|
+
wc(G);
|
|
3027
3027
|
};
|
|
3028
3028
|
}
|
|
3029
|
-
Object.defineProperty(
|
|
3029
|
+
Object.defineProperty(r.h.J, b, t);
|
|
3030
3030
|
return [];
|
|
3031
3031
|
});
|
|
3032
3032
|
return [];
|
|
3033
3033
|
});
|
|
3034
|
-
}, _embind_register_emval:a => S(a,
|
|
3034
|
+
}, _embind_register_emval:a => S(a, ad), _embind_register_enum:(a, b, c, d) => {
|
|
3035
3035
|
function e() {
|
|
3036
3036
|
}
|
|
3037
3037
|
b = R(b);
|
|
3038
3038
|
e.values = {};
|
|
3039
3039
|
S(a, {name:b, constructor:e, fromWireType:function(f) {
|
|
3040
3040
|
return this.constructor.values[f];
|
|
3041
|
-
}, toWireType:(f, g) => g.value, argPackAdvance:8, readValueFromPointer:
|
|
3042
|
-
|
|
3041
|
+
}, toWireType:(f, g) => g.value, argPackAdvance:8, readValueFromPointer:bd(b, c, d), I:null,});
|
|
3042
|
+
Ec(b, e);
|
|
3043
3043
|
}, _embind_register_enum_value:(a, b, c) => {
|
|
3044
|
-
var d =
|
|
3044
|
+
var d = mc(a, "enum");
|
|
3045
3045
|
b = R(b);
|
|
3046
3046
|
a = d.constructor;
|
|
3047
|
-
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:
|
|
3047
|
+
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:Yb(`${d.name}_${b}`, function() {
|
|
3048
3048
|
})},});
|
|
3049
3049
|
a.values[c] = d;
|
|
3050
3050
|
a[b] = d;
|
|
3051
3051
|
}, _embind_register_float:(a, b, c) => {
|
|
3052
3052
|
b = R(b);
|
|
3053
|
-
S(a, {name:b, fromWireType:d => d, toWireType:(d, e) => e, argPackAdvance:8, readValueFromPointer:
|
|
3053
|
+
S(a, {name:b, fromWireType:d => d, toWireType:(d, e) => e, argPackAdvance:8, readValueFromPointer:cd(b, c), I:null,});
|
|
3054
3054
|
}, _embind_register_function:(a, b, c, d, e, f) => {
|
|
3055
|
-
var g =
|
|
3055
|
+
var g = Xc(b, c);
|
|
3056
3056
|
a = R(a);
|
|
3057
|
-
a =
|
|
3057
|
+
a = Yc(a);
|
|
3058
3058
|
e = U(d, e);
|
|
3059
|
-
|
|
3060
|
-
|
|
3059
|
+
Ec(a, function() {
|
|
3060
|
+
Uc(`Cannot call ${a} due to unbound types`, g);
|
|
3061
3061
|
}, b - 1);
|
|
3062
|
-
T([], g,
|
|
3063
|
-
|
|
3062
|
+
T([], g, h => {
|
|
3063
|
+
Nc(a, Wc(a, [h[0], null].concat(h.slice(1)), null, e, f), b - 1);
|
|
3064
3064
|
return [];
|
|
3065
3065
|
});
|
|
3066
3066
|
}, _embind_register_integer:(a, b, c, d, e) => {
|
|
3067
3067
|
b = R(b);
|
|
3068
3068
|
-1 === e && (e = 4294967295);
|
|
3069
|
-
e =
|
|
3069
|
+
e = h => h;
|
|
3070
3070
|
if (0 === d) {
|
|
3071
3071
|
var f = 32 - 8 * c;
|
|
3072
|
-
e =
|
|
3072
|
+
e = h => h << f >>> f;
|
|
3073
3073
|
}
|
|
3074
|
-
var g = b.includes("unsigned") ? function(
|
|
3075
|
-
return
|
|
3076
|
-
} : function(
|
|
3077
|
-
return
|
|
3074
|
+
var g = b.includes("unsigned") ? function(h, m) {
|
|
3075
|
+
return m >>> 0;
|
|
3076
|
+
} : function(h, m) {
|
|
3077
|
+
return m;
|
|
3078
3078
|
};
|
|
3079
|
-
S(a, {name:b, fromWireType:e, toWireType:g, argPackAdvance:8, readValueFromPointer:
|
|
3079
|
+
S(a, {name:b, fromWireType:e, toWireType:g, argPackAdvance:8, readValueFromPointer:dd(b, c, 0 !== d), I:null,});
|
|
3080
3080
|
}, _embind_register_memory_view:(a, b, c) => {
|
|
3081
3081
|
function d(f) {
|
|
3082
|
-
return new e(
|
|
3082
|
+
return new e(C.buffer, K[f + 4 >> 2], K[f >> 2]);
|
|
3083
3083
|
}
|
|
3084
3084
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
3085
3085
|
c = R(c);
|
|
3086
|
-
S(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {
|
|
3086
|
+
S(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Kb:!0,});
|
|
3087
3087
|
}, _embind_register_std_string:(a, b) => {
|
|
3088
3088
|
b = R(b);
|
|
3089
3089
|
var c = "std::string" === b;
|
|
3090
3090
|
S(a, {name:b, fromWireType:function(d) {
|
|
3091
|
-
var e =
|
|
3091
|
+
var e = K[d >> 2], f = d + 4;
|
|
3092
3092
|
if (c) {
|
|
3093
|
-
for (var g = f,
|
|
3094
|
-
var
|
|
3095
|
-
if (
|
|
3096
|
-
g = g ? L(D, g,
|
|
3097
|
-
if (void 0 ===
|
|
3098
|
-
var
|
|
3093
|
+
for (var g = f, h = 0; h <= e; ++h) {
|
|
3094
|
+
var m = f + h;
|
|
3095
|
+
if (h == e || 0 == D[m]) {
|
|
3096
|
+
g = g ? L(D, g, m - g) : "";
|
|
3097
|
+
if (void 0 === l) {
|
|
3098
|
+
var l = g;
|
|
3099
3099
|
} else {
|
|
3100
|
-
|
|
3100
|
+
l += String.fromCharCode(0), l += g;
|
|
3101
3101
|
}
|
|
3102
|
-
g =
|
|
3102
|
+
g = m + 1;
|
|
3103
3103
|
}
|
|
3104
3104
|
}
|
|
3105
3105
|
} else {
|
|
3106
|
-
|
|
3107
|
-
for (
|
|
3108
|
-
|
|
3106
|
+
l = Array(e);
|
|
3107
|
+
for (h = 0; h < e; ++h) {
|
|
3108
|
+
l[h] = String.fromCharCode(D[f + h]);
|
|
3109
3109
|
}
|
|
3110
|
-
|
|
3110
|
+
l = l.join("");
|
|
3111
3111
|
}
|
|
3112
|
-
|
|
3113
|
-
return
|
|
3112
|
+
kc(d);
|
|
3113
|
+
return l;
|
|
3114
3114
|
}, toWireType:function(d, e) {
|
|
3115
3115
|
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
3116
3116
|
var f = "string" == typeof e;
|
|
3117
3117
|
if (!(f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array)) {
|
|
3118
3118
|
throw new P("Cannot pass non-string to std::string");
|
|
3119
3119
|
}
|
|
3120
|
-
var g = c && f ?
|
|
3121
|
-
var
|
|
3122
|
-
|
|
3120
|
+
var g = c && f ? eb(e) : e.length;
|
|
3121
|
+
var h = Td(4 + g + 1), m = h + 4;
|
|
3122
|
+
K[h >> 2] = g;
|
|
3123
3123
|
if (c && f) {
|
|
3124
|
-
|
|
3124
|
+
fb(e, D, m, g + 1);
|
|
3125
3125
|
} else {
|
|
3126
3126
|
if (f) {
|
|
3127
3127
|
for (f = 0; f < g; ++f) {
|
|
3128
|
-
var
|
|
3129
|
-
if (255 <
|
|
3130
|
-
throw
|
|
3128
|
+
var l = e.charCodeAt(f);
|
|
3129
|
+
if (255 < l) {
|
|
3130
|
+
throw kc(m), new P("String has UTF-16 code units that do not fit in 8 bits");
|
|
3131
3131
|
}
|
|
3132
|
-
D[
|
|
3132
|
+
D[m + f] = l;
|
|
3133
3133
|
}
|
|
3134
3134
|
} else {
|
|
3135
3135
|
for (f = 0; f < g; ++f) {
|
|
3136
|
-
D[
|
|
3136
|
+
D[m + f] = e[f];
|
|
3137
3137
|
}
|
|
3138
3138
|
}
|
|
3139
3139
|
}
|
|
3140
|
-
null !== d && d.push(
|
|
3141
|
-
return
|
|
3142
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
3143
|
-
|
|
3140
|
+
null !== d && d.push(kc, h);
|
|
3141
|
+
return h;
|
|
3142
|
+
}, argPackAdvance:8, readValueFromPointer:xc, I(d) {
|
|
3143
|
+
kc(d);
|
|
3144
3144
|
},});
|
|
3145
3145
|
}, _embind_register_std_wstring:(a, b, c) => {
|
|
3146
3146
|
c = R(c);
|
|
3147
3147
|
if (2 === b) {
|
|
3148
|
-
var d =
|
|
3149
|
-
var e =
|
|
3150
|
-
var f =
|
|
3151
|
-
var g =
|
|
3148
|
+
var d = fd;
|
|
3149
|
+
var e = gd;
|
|
3150
|
+
var f = hd;
|
|
3151
|
+
var g = h => va[h >> 1];
|
|
3152
3152
|
} else {
|
|
3153
|
-
4 === b && (d =
|
|
3153
|
+
4 === b && (d = jd, e = kd, f = ld, g = h => K[h >> 2]);
|
|
3154
3154
|
}
|
|
3155
|
-
S(a, {name:c, fromWireType:
|
|
3156
|
-
for (var
|
|
3157
|
-
var
|
|
3158
|
-
if (
|
|
3159
|
-
|
|
3155
|
+
S(a, {name:c, fromWireType:h => {
|
|
3156
|
+
for (var m = K[h >> 2], l, r = h + 4, u = 0; u <= m; ++u) {
|
|
3157
|
+
var w = h + 4 + u * b;
|
|
3158
|
+
if (u == m || 0 == g(w)) {
|
|
3159
|
+
r = d(r, w - r), void 0 === l ? l = r : (l += String.fromCharCode(0), l += r), r = w + b;
|
|
3160
3160
|
}
|
|
3161
3161
|
}
|
|
3162
|
-
|
|
3163
|
-
return
|
|
3164
|
-
}, toWireType:(
|
|
3165
|
-
if ("string" != typeof
|
|
3162
|
+
kc(h);
|
|
3163
|
+
return l;
|
|
3164
|
+
}, toWireType:(h, m) => {
|
|
3165
|
+
if ("string" != typeof m) {
|
|
3166
3166
|
throw new P(`Cannot pass non-string to C++ string type ${c}`);
|
|
3167
3167
|
}
|
|
3168
|
-
var
|
|
3169
|
-
|
|
3170
|
-
e(
|
|
3171
|
-
null !==
|
|
3172
|
-
return
|
|
3173
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
3174
|
-
|
|
3168
|
+
var l = f(m), r = Td(4 + l + b);
|
|
3169
|
+
K[r >> 2] = l / b;
|
|
3170
|
+
e(m, r + 4, l + b);
|
|
3171
|
+
null !== h && h.push(kc, r);
|
|
3172
|
+
return r;
|
|
3173
|
+
}, argPackAdvance:8, readValueFromPointer:xc, I(h) {
|
|
3174
|
+
kc(h);
|
|
3175
3175
|
}});
|
|
3176
3176
|
}, _embind_register_value_object:(a, b, c, d, e, f) => {
|
|
3177
|
-
|
|
3178
|
-
}, _embind_register_value_object_field:(a, b, c, d, e, f, g,
|
|
3179
|
-
|
|
3177
|
+
vc[a] = {name:R(b), Na:U(c, d), L:U(e, f), Xa:[],};
|
|
3178
|
+
}, _embind_register_value_object_field:(a, b, c, d, e, f, g, h, m, l) => {
|
|
3179
|
+
vc[a].Xa.push({Db:R(b), Jb:c, Hb:U(d, e), Ib:f, Wb:g, Vb:U(h, m), Xb:l,});
|
|
3180
3180
|
}, _embind_register_void:(a, b) => {
|
|
3181
3181
|
b = R(b);
|
|
3182
|
-
S(a, {
|
|
3182
|
+
S(a, {yc:!0, name:b, argPackAdvance:0, fromWireType:() => {
|
|
3183
3183
|
}, toWireType:() => {
|
|
3184
3184
|
},});
|
|
3185
3185
|
}, _emscripten_get_now_is_monotonic:() => 1, _emscripten_memcpy_js:(a, b, c) => D.copyWithin(a, b, b + c), _emscripten_throw_longjmp:() => {
|
|
3186
3186
|
throw Infinity;
|
|
3187
3187
|
}, _emval_as:(a, b, c) => {
|
|
3188
3188
|
a = Q(a);
|
|
3189
|
-
b =
|
|
3190
|
-
return
|
|
3189
|
+
b = mc(b, "emval::as");
|
|
3190
|
+
return md(b, c, a);
|
|
3191
3191
|
}, _emval_call:(a, b, c, d) => {
|
|
3192
|
-
a =
|
|
3192
|
+
a = nd[a];
|
|
3193
3193
|
b = Q(b);
|
|
3194
3194
|
return a(null, b, c, d);
|
|
3195
3195
|
}, _emval_call_method:(a, b, c, d, e) => {
|
|
3196
|
-
a =
|
|
3196
|
+
a = nd[a];
|
|
3197
3197
|
b = Q(b);
|
|
3198
|
-
c =
|
|
3198
|
+
c = pd(c);
|
|
3199
3199
|
return a(b, b[c], d, e);
|
|
3200
|
-
}, _emval_decref
|
|
3201
|
-
var d =
|
|
3200
|
+
}, _emval_decref:$c, _emval_get_method_caller:(a, b, c) => {
|
|
3201
|
+
var d = rd(a, b), e = d.shift();
|
|
3202
3202
|
a--;
|
|
3203
3203
|
var f = Array(a);
|
|
3204
3204
|
b = `methodCaller<(${d.map(g => g.name).join(", ")}) => ${e.name}>`;
|
|
3205
|
-
return
|
|
3206
|
-
for (var
|
|
3207
|
-
f[
|
|
3205
|
+
return qd(Yb(b, (g, h, m, l) => {
|
|
3206
|
+
for (var r = 0, u = 0; u < a; ++u) {
|
|
3207
|
+
f[u] = d[u].readValueFromPointer(l + r), r += d[u].argPackAdvance;
|
|
3208
3208
|
}
|
|
3209
|
-
g = 1 === c ?
|
|
3210
|
-
return
|
|
3209
|
+
g = 1 === c ? sd(h, f) : h.apply(g, f);
|
|
3210
|
+
return md(e, m, g);
|
|
3211
3211
|
}));
|
|
3212
3212
|
}, _emval_get_property:(a, b) => {
|
|
3213
3213
|
a = Q(a);
|
|
3214
3214
|
b = Q(b);
|
|
3215
|
-
return
|
|
3215
|
+
return $b(a[b]);
|
|
3216
3216
|
}, _emval_incref:a => {
|
|
3217
3217
|
9 < a && (O[a + 1] += 1);
|
|
3218
|
-
}, _emval_new_array:() =>
|
|
3218
|
+
}, _emval_new_array:() => $b([]), _emval_new_cstring:a => $b(pd(a)), _emval_new_object:() => $b({}), _emval_run_destructors:a => {
|
|
3219
3219
|
var b = Q(a);
|
|
3220
|
-
|
|
3221
|
-
|
|
3220
|
+
wc(b);
|
|
3221
|
+
$c(a);
|
|
3222
3222
|
}, _emval_set_property:(a, b, c) => {
|
|
3223
3223
|
a = Q(a);
|
|
3224
3224
|
b = Q(b);
|
|
3225
3225
|
c = Q(c);
|
|
3226
3226
|
a[b] = c;
|
|
3227
3227
|
}, _emval_take_value:(a, b) => {
|
|
3228
|
-
a =
|
|
3228
|
+
a = mc(a, "_emval_take_value");
|
|
3229
3229
|
a = a.readValueFromPointer(b);
|
|
3230
|
-
return
|
|
3230
|
+
return $b(a);
|
|
3231
3231
|
}, _gmtime_js:function(a, b, c) {
|
|
3232
3232
|
a = new Date(1000 * (b + 2097152 >>> 0 < 4194305 - !!a ? (a >>> 0) + 4294967296 * b : NaN));
|
|
3233
3233
|
F[c >> 2] = a.getUTCSeconds();
|
|
@@ -3247,7 +3247,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3247
3247
|
F[c + 16 >> 2] = a.getMonth();
|
|
3248
3248
|
F[c + 20 >> 2] = a.getFullYear() - 1900;
|
|
3249
3249
|
F[c + 24 >> 2] = a.getDay();
|
|
3250
|
-
F[c + 28 >> 2] = (
|
|
3250
|
+
F[c + 28 >> 2] = (td(a.getFullYear()) ? ud : vd)[a.getMonth()] + a.getDate() - 1 | 0;
|
|
3251
3251
|
F[c + 36 >> 2] = -(60 * a.getTimezoneOffset());
|
|
3252
3252
|
b = (new Date(a.getFullYear(), 6, 1)).getTimezoneOffset();
|
|
3253
3253
|
var d = (new Date(a.getFullYear(), 0, 1)).getTimezoneOffset();
|
|
@@ -3255,40 +3255,40 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3255
3255
|
}, _tzset_js:(a, b, c, d) => {
|
|
3256
3256
|
var e = (new Date()).getFullYear(), f = new Date(e, 0, 1), g = new Date(e, 6, 1);
|
|
3257
3257
|
e = f.getTimezoneOffset();
|
|
3258
|
-
var
|
|
3259
|
-
|
|
3260
|
-
F[b >> 2] = Number(e !=
|
|
3261
|
-
a =
|
|
3258
|
+
var h = g.getTimezoneOffset();
|
|
3259
|
+
K[a >> 2] = 60 * Math.max(e, h);
|
|
3260
|
+
F[b >> 2] = Number(e != h);
|
|
3261
|
+
a = m => m.toLocaleTimeString(void 0, {hour12:!1, timeZoneName:"short"}).split(" ")[1];
|
|
3262
3262
|
f = a(f);
|
|
3263
3263
|
g = a(g);
|
|
3264
|
-
|
|
3264
|
+
h < e ? (fb(f, D, c, 17), fb(g, D, d, 17)) : (fb(f, D, d, 17), fb(g, D, c, 17));
|
|
3265
3265
|
}, beginPixelLocalStorageWEBGL:function(a, b, c) {
|
|
3266
|
-
(a =
|
|
3266
|
+
(a = v[a].C.za) && a.beginPixelLocalStorageWEBGL(k.HEAPU32.subarray(c, c + b));
|
|
3267
3267
|
}, decode_image:function(a, b, c) {
|
|
3268
|
-
var d =
|
|
3269
|
-
d || (d = new Map(),
|
|
3268
|
+
var d = k.images;
|
|
3269
|
+
d || (d = new Map(), k.images = d);
|
|
3270
3270
|
var e = new Image();
|
|
3271
3271
|
d.set(a, e);
|
|
3272
|
-
b =
|
|
3272
|
+
b = k.HEAP8.subarray(b, b + c);
|
|
3273
3273
|
c = new Uint8Array(c);
|
|
3274
3274
|
c.set(b);
|
|
3275
3275
|
e.src = URL.createObjectURL(new Blob([c], {type:"image/png"}));
|
|
3276
3276
|
e.onload = function() {
|
|
3277
|
-
|
|
3277
|
+
k._setWebImage(a, e.width, e.height);
|
|
3278
3278
|
};
|
|
3279
3279
|
}, delete_image:function(a) {
|
|
3280
|
-
var b =
|
|
3280
|
+
var b = k.images;
|
|
3281
3281
|
b && b.get(a) && b.delete(a);
|
|
3282
3282
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
3283
|
-
|
|
3283
|
+
wd.length = 0;
|
|
3284
3284
|
for (var d; d = D[b++];) {
|
|
3285
3285
|
var e = 105 != d;
|
|
3286
3286
|
e &= 112 != d;
|
|
3287
3287
|
c += e && c % 8 ? 4 : 0;
|
|
3288
|
-
|
|
3288
|
+
wd.push(112 == d ? K[c >> 2] : 105 == d ? F[c >> 2] : xa[c >> 3]);
|
|
3289
3289
|
c += e ? 8 : 4;
|
|
3290
3290
|
}
|
|
3291
|
-
return
|
|
3291
|
+
return Sa[a](...wd);
|
|
3292
3292
|
}, emscripten_date_now:() => Date.now(), emscripten_get_now:() => performance.now(), emscripten_resize_heap:a => {
|
|
3293
3293
|
var b = D.length;
|
|
3294
3294
|
a >>>= 0;
|
|
@@ -3301,10 +3301,10 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3301
3301
|
var e = Math;
|
|
3302
3302
|
d = Math.max(a, d);
|
|
3303
3303
|
a: {
|
|
3304
|
-
e = (e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) -
|
|
3304
|
+
e = (e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - ta.buffer.byteLength + 65535) / 65536;
|
|
3305
3305
|
try {
|
|
3306
|
-
|
|
3307
|
-
|
|
3306
|
+
ta.grow(e);
|
|
3307
|
+
ya();
|
|
3308
3308
|
var f = 1;
|
|
3309
3309
|
break a;
|
|
3310
3310
|
} catch (g) {
|
|
@@ -3317,122 +3317,122 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3317
3317
|
}
|
|
3318
3318
|
return !1;
|
|
3319
3319
|
}, emscripten_webgl_enable_extension:(a, b) => {
|
|
3320
|
-
a =
|
|
3320
|
+
a = v[a];
|
|
3321
3321
|
b = b ? L(D, b) : "";
|
|
3322
3322
|
b.startsWith("GL_") && (b = b.substr(3));
|
|
3323
|
-
"WEBGL_draw_instanced_base_vertex_base_instance" == b &&
|
|
3324
|
-
"WEBGL_multi_draw_instanced_base_vertex_base_instance" == b &&
|
|
3325
|
-
"WEBGL_multi_draw" == b && (W.
|
|
3326
|
-
return !!a.
|
|
3327
|
-
}, emscripten_webgl_get_current_context:() =>
|
|
3328
|
-
a =
|
|
3329
|
-
a.
|
|
3330
|
-
return !!a.
|
|
3323
|
+
"WEBGL_draw_instanced_base_vertex_base_instance" == b && xd(W);
|
|
3324
|
+
"WEBGL_multi_draw_instanced_base_vertex_base_instance" == b && yd(W);
|
|
3325
|
+
"WEBGL_multi_draw" == b && (W.Rb = W.getExtension("WEBGL_multi_draw"));
|
|
3326
|
+
return !!a.C.getExtension(b);
|
|
3327
|
+
}, emscripten_webgl_get_current_context:() => p ? p.handle : 0, emscripten_webgl_make_context_current:a => ka(a) ? 0 : -5, enable_WEBGL_provoking_vertex:function(a) {
|
|
3328
|
+
a = v[a].C;
|
|
3329
|
+
a.ib = a.getExtension("WEBGL_provoking_vertex");
|
|
3330
|
+
return !!a.ib;
|
|
3331
3331
|
}, enable_WEBGL_shader_pixel_local_storage_coherent:function(a) {
|
|
3332
|
-
a =
|
|
3332
|
+
a = v[a].C;
|
|
3333
3333
|
const b = a.getExtension("WEBGL_shader_pixel_local_storage");
|
|
3334
3334
|
if (b && b.isCoherent()) {
|
|
3335
3335
|
if (5 == b.framebufferTexturePixelLocalStorageWEBGL.length) {
|
|
3336
|
-
return a.
|
|
3336
|
+
return a.za = b, !0;
|
|
3337
3337
|
}
|
|
3338
3338
|
console.warn("WEBGL_shader_pixel_local_storage is advertised, but a deprecated version has been detected. Disabling.");
|
|
3339
3339
|
}
|
|
3340
3340
|
return !1;
|
|
3341
3341
|
}, endPixelLocalStorageWEBGL:function(a, b, c) {
|
|
3342
|
-
(a =
|
|
3342
|
+
(a = v[a].C.za) && a.endPixelLocalStorageWEBGL(k.HEAPU32.subarray(c, c + b));
|
|
3343
3343
|
}, environ_get:(a, b) => {
|
|
3344
3344
|
var c = 0;
|
|
3345
|
-
|
|
3345
|
+
Pd().forEach((d, e) => {
|
|
3346
3346
|
var f = b + c;
|
|
3347
|
-
e =
|
|
3347
|
+
e = K[a + 4 * e >> 2] = f;
|
|
3348
3348
|
for (f = 0; f < d.length; ++f) {
|
|
3349
|
-
|
|
3349
|
+
C[e++] = d.charCodeAt(f);
|
|
3350
3350
|
}
|
|
3351
|
-
|
|
3351
|
+
C[e] = 0;
|
|
3352
3352
|
c += d.length + 1;
|
|
3353
3353
|
});
|
|
3354
3354
|
return 0;
|
|
3355
3355
|
}, environ_sizes_get:(a, b) => {
|
|
3356
|
-
var c =
|
|
3357
|
-
|
|
3356
|
+
var c = Pd();
|
|
3357
|
+
K[a >> 2] = c.length;
|
|
3358
3358
|
var d = 0;
|
|
3359
3359
|
c.forEach(e => d += e.length + 1);
|
|
3360
|
-
|
|
3360
|
+
K[b >> 2] = d;
|
|
3361
3361
|
return 0;
|
|
3362
3362
|
}, fd_close:function(a) {
|
|
3363
3363
|
try {
|
|
3364
|
-
var b =
|
|
3365
|
-
if (null === b.
|
|
3364
|
+
var b = Jb(a);
|
|
3365
|
+
if (null === b.T) {
|
|
3366
3366
|
throw new M(8);
|
|
3367
3367
|
}
|
|
3368
|
-
b.
|
|
3368
|
+
b.Ka && (b.Ka = null);
|
|
3369
3369
|
try {
|
|
3370
|
-
b.
|
|
3370
|
+
b.l.close && b.l.close(b);
|
|
3371
3371
|
} catch (c) {
|
|
3372
3372
|
throw c;
|
|
3373
3373
|
} finally {
|
|
3374
|
-
|
|
3374
|
+
wb[b.T] = null;
|
|
3375
3375
|
}
|
|
3376
|
-
b.
|
|
3376
|
+
b.T = null;
|
|
3377
3377
|
return 0;
|
|
3378
3378
|
} catch (c) {
|
|
3379
|
-
if ("undefined" == typeof
|
|
3379
|
+
if ("undefined" == typeof Xb || "ErrnoError" !== c.name) {
|
|
3380
3380
|
throw c;
|
|
3381
3381
|
}
|
|
3382
|
-
return c.
|
|
3382
|
+
return c.Y;
|
|
3383
3383
|
}
|
|
3384
3384
|
}, fd_read:function(a, b, c, d) {
|
|
3385
3385
|
try {
|
|
3386
3386
|
a: {
|
|
3387
|
-
var e =
|
|
3387
|
+
var e = Jb(a);
|
|
3388
3388
|
a = b;
|
|
3389
3389
|
for (var f, g = b = 0; g < c; g++) {
|
|
3390
|
-
var
|
|
3390
|
+
var h = K[a >> 2], m = K[a + 4 >> 2];
|
|
3391
3391
|
a += 8;
|
|
3392
|
-
var
|
|
3393
|
-
if (0 >
|
|
3392
|
+
var l = e, r = f, u = C;
|
|
3393
|
+
if (0 > m || 0 > r) {
|
|
3394
3394
|
throw new M(28);
|
|
3395
3395
|
}
|
|
3396
|
-
if (null ===
|
|
3396
|
+
if (null === l.T) {
|
|
3397
3397
|
throw new M(8);
|
|
3398
3398
|
}
|
|
3399
|
-
if (1 === (
|
|
3399
|
+
if (1 === (l.flags & 2097155)) {
|
|
3400
3400
|
throw new M(8);
|
|
3401
3401
|
}
|
|
3402
|
-
if (16384 === (
|
|
3402
|
+
if (16384 === (l.node.mode & 61440)) {
|
|
3403
3403
|
throw new M(31);
|
|
3404
3404
|
}
|
|
3405
|
-
if (!
|
|
3405
|
+
if (!l.l.read) {
|
|
3406
3406
|
throw new M(28);
|
|
3407
3407
|
}
|
|
3408
|
-
var
|
|
3409
|
-
if (!
|
|
3410
|
-
|
|
3411
|
-
} else if (!
|
|
3408
|
+
var w = "undefined" != typeof r;
|
|
3409
|
+
if (!w) {
|
|
3410
|
+
r = l.position;
|
|
3411
|
+
} else if (!l.seekable) {
|
|
3412
3412
|
throw new M(70);
|
|
3413
3413
|
}
|
|
3414
|
-
var
|
|
3415
|
-
|
|
3416
|
-
var
|
|
3417
|
-
if (0 >
|
|
3418
|
-
var
|
|
3414
|
+
var n = l.l.read(l, u, h, m, r);
|
|
3415
|
+
w || (l.position += n);
|
|
3416
|
+
var q = n;
|
|
3417
|
+
if (0 > q) {
|
|
3418
|
+
var t = -1;
|
|
3419
3419
|
break a;
|
|
3420
3420
|
}
|
|
3421
|
-
b +=
|
|
3422
|
-
if (
|
|
3421
|
+
b += q;
|
|
3422
|
+
if (q < m) {
|
|
3423
3423
|
break;
|
|
3424
3424
|
}
|
|
3425
|
-
"undefined" != typeof f && (f +=
|
|
3425
|
+
"undefined" != typeof f && (f += q);
|
|
3426
3426
|
}
|
|
3427
|
-
|
|
3427
|
+
t = b;
|
|
3428
3428
|
}
|
|
3429
|
-
|
|
3429
|
+
K[d >> 2] = t;
|
|
3430
3430
|
return 0;
|
|
3431
|
-
} catch (
|
|
3432
|
-
if ("undefined" == typeof
|
|
3433
|
-
throw
|
|
3431
|
+
} catch (y) {
|
|
3432
|
+
if ("undefined" == typeof Xb || "ErrnoError" !== y.name) {
|
|
3433
|
+
throw y;
|
|
3434
3434
|
}
|
|
3435
|
-
return
|
|
3435
|
+
return y.Y;
|
|
3436
3436
|
}
|
|
3437
3437
|
}, fd_seek:function(a, b, c, d, e) {
|
|
3438
3438
|
b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
|
|
@@ -3440,123 +3440,123 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3440
3440
|
if (isNaN(b)) {
|
|
3441
3441
|
return 61;
|
|
3442
3442
|
}
|
|
3443
|
-
var f =
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
F[e >> 2] =
|
|
3447
|
-
F[e + 4 >> 2] =
|
|
3448
|
-
f.
|
|
3443
|
+
var f = Jb(a);
|
|
3444
|
+
Tb(f, b, d);
|
|
3445
|
+
Oa = [f.position >>> 0, (Na = f.position, 1.0 <= +Math.abs(Na) ? 0.0 < Na ? +Math.floor(Na / 4294967296.0) >>> 0 : ~~+Math.ceil((Na - +(~~Na >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
3446
|
+
F[e >> 2] = Oa[0];
|
|
3447
|
+
F[e + 4 >> 2] = Oa[1];
|
|
3448
|
+
f.Ka && 0 === b && 0 === d && (f.Ka = null);
|
|
3449
3449
|
return 0;
|
|
3450
3450
|
} catch (g) {
|
|
3451
|
-
if ("undefined" == typeof
|
|
3451
|
+
if ("undefined" == typeof Xb || "ErrnoError" !== g.name) {
|
|
3452
3452
|
throw g;
|
|
3453
3453
|
}
|
|
3454
|
-
return g.
|
|
3454
|
+
return g.Y;
|
|
3455
3455
|
}
|
|
3456
3456
|
}, fd_write:function(a, b, c, d) {
|
|
3457
3457
|
try {
|
|
3458
3458
|
a: {
|
|
3459
|
-
var e =
|
|
3459
|
+
var e = Jb(a);
|
|
3460
3460
|
a = b;
|
|
3461
3461
|
for (var f, g = b = 0; g < c; g++) {
|
|
3462
|
-
var
|
|
3462
|
+
var h = K[a >> 2], m = K[a + 4 >> 2];
|
|
3463
3463
|
a += 8;
|
|
3464
|
-
var
|
|
3465
|
-
if (0 >
|
|
3464
|
+
var l = e, r = h, u = m, w = f, n = C;
|
|
3465
|
+
if (0 > u || 0 > w) {
|
|
3466
3466
|
throw new M(28);
|
|
3467
3467
|
}
|
|
3468
|
-
if (null ===
|
|
3468
|
+
if (null === l.T) {
|
|
3469
3469
|
throw new M(8);
|
|
3470
3470
|
}
|
|
3471
|
-
if (0 === (
|
|
3471
|
+
if (0 === (l.flags & 2097155)) {
|
|
3472
3472
|
throw new M(8);
|
|
3473
3473
|
}
|
|
3474
|
-
if (16384 === (
|
|
3474
|
+
if (16384 === (l.node.mode & 61440)) {
|
|
3475
3475
|
throw new M(31);
|
|
3476
3476
|
}
|
|
3477
|
-
if (!
|
|
3477
|
+
if (!l.l.write) {
|
|
3478
3478
|
throw new M(28);
|
|
3479
3479
|
}
|
|
3480
|
-
|
|
3481
|
-
var
|
|
3482
|
-
if (!
|
|
3483
|
-
|
|
3484
|
-
} else if (!
|
|
3480
|
+
l.seekable && l.flags & 1024 && Tb(l, 0, 2);
|
|
3481
|
+
var q = "undefined" != typeof w;
|
|
3482
|
+
if (!q) {
|
|
3483
|
+
w = l.position;
|
|
3484
|
+
} else if (!l.seekable) {
|
|
3485
3485
|
throw new M(70);
|
|
3486
3486
|
}
|
|
3487
|
-
var
|
|
3488
|
-
|
|
3489
|
-
var
|
|
3490
|
-
if (0 >
|
|
3491
|
-
var
|
|
3487
|
+
var t = l.l.write(l, n, r, u, w, void 0);
|
|
3488
|
+
q || (l.position += t);
|
|
3489
|
+
var y = t;
|
|
3490
|
+
if (0 > y) {
|
|
3491
|
+
var z = -1;
|
|
3492
3492
|
break a;
|
|
3493
3493
|
}
|
|
3494
|
-
b +=
|
|
3495
|
-
"undefined" != typeof f && (f +=
|
|
3494
|
+
b += y;
|
|
3495
|
+
"undefined" != typeof f && (f += y);
|
|
3496
3496
|
}
|
|
3497
|
-
|
|
3497
|
+
z = b;
|
|
3498
3498
|
}
|
|
3499
|
-
|
|
3499
|
+
K[d >> 2] = z;
|
|
3500
3500
|
return 0;
|
|
3501
|
-
} catch (
|
|
3502
|
-
if ("undefined" == typeof
|
|
3503
|
-
throw
|
|
3501
|
+
} catch (B) {
|
|
3502
|
+
if ("undefined" == typeof Xb || "ErrnoError" !== B.name) {
|
|
3503
|
+
throw B;
|
|
3504
3504
|
}
|
|
3505
|
-
return
|
|
3505
|
+
return B.Y;
|
|
3506
3506
|
}
|
|
3507
3507
|
}, framebufferPixelLocalClearValuefvWEBGL:function(a, b, c, d, e, f) {
|
|
3508
|
-
(a =
|
|
3508
|
+
(a = v[a].C.za) && a.framebufferPixelLocalClearValuefvWEBGL(b, [c, d, e, f]);
|
|
3509
3509
|
}, framebufferTexturePixelLocalStorageWEBGL:function(a, b, c, d, e, f) {
|
|
3510
|
-
(a =
|
|
3510
|
+
(a = v[a].C.za) && a.framebufferTexturePixelLocalStorageWEBGL(b, Ed[c], d, e, f);
|
|
3511
3511
|
}, glActiveTexture:a => W.activeTexture(a), glAttachShader:(a, b) => {
|
|
3512
|
-
W.attachShader(V[a],
|
|
3512
|
+
W.attachShader(V[a], Fd[b]);
|
|
3513
3513
|
}, glBindBuffer:(a, b) => {
|
|
3514
|
-
35051 == a ? W.
|
|
3515
|
-
W.bindBuffer(a,
|
|
3514
|
+
35051 == a ? W.Ja = b : 35052 == a && (W.oa = b);
|
|
3515
|
+
W.bindBuffer(a, Bd[b]);
|
|
3516
3516
|
}, glBindBufferRange:(a, b, c, d, e) => {
|
|
3517
|
-
W.bindBufferRange(a, b,
|
|
3517
|
+
W.bindBufferRange(a, b, Bd[c], d, e);
|
|
3518
3518
|
}, glBindFramebuffer:(a, b) => {
|
|
3519
|
-
W.bindFramebuffer(a,
|
|
3519
|
+
W.bindFramebuffer(a, Cd[b]);
|
|
3520
3520
|
}, glBindRenderbuffer:(a, b) => {
|
|
3521
|
-
W.bindRenderbuffer(a,
|
|
3521
|
+
W.bindRenderbuffer(a, Dd[b]);
|
|
3522
3522
|
}, glBindTexture:(a, b) => {
|
|
3523
|
-
W.bindTexture(a,
|
|
3523
|
+
W.bindTexture(a, Ed[b]);
|
|
3524
3524
|
}, glBindVertexArray:a => {
|
|
3525
|
-
W.bindVertexArray(
|
|
3526
|
-
}, glBlendEquation:a => W.blendEquation(a), glBlendFunc:(a, b) => W.blendFunc(a, b), glBlitFramebuffer:(a, b, c, d, e, f, g,
|
|
3525
|
+
W.bindVertexArray(Gd[a]);
|
|
3526
|
+
}, glBlendEquation:a => W.blendEquation(a), glBlendFunc:(a, b) => W.blendFunc(a, b), glBlitFramebuffer:(a, b, c, d, e, f, g, h, m, l) => W.blitFramebuffer(a, b, c, d, e, f, g, h, m, l), glBufferData:(a, b, c, d) => {
|
|
3527
3527
|
c && b ? W.bufferData(a, D, d, c, b) : W.bufferData(a, b, d);
|
|
3528
3528
|
}, glBufferSubData:(a, b, c, d) => {
|
|
3529
3529
|
c && W.bufferSubData(a, b, D, d, c);
|
|
3530
3530
|
}, glClear:a => W.clear(a), glClearBufferfv:(a, b, c) => {
|
|
3531
|
-
W.clearBufferfv(a, b,
|
|
3531
|
+
W.clearBufferfv(a, b, wa, c >> 2);
|
|
3532
3532
|
}, glClearBufferuiv:(a, b, c) => {
|
|
3533
|
-
W.clearBufferuiv(a, b,
|
|
3533
|
+
W.clearBufferuiv(a, b, K, c >> 2);
|
|
3534
3534
|
}, glClearColor:(a, b, c, d) => W.clearColor(a, b, c, d), glClearDepthf:a => W.clearDepth(a), glClearStencil:a => W.clearStencil(a), glColorMask:(a, b, c, d) => {
|
|
3535
3535
|
W.colorMask(!!a, !!b, !!c, !!d);
|
|
3536
3536
|
}, glCompileShader:a => {
|
|
3537
|
-
W.compileShader(
|
|
3538
|
-
}, glCompressedTexSubImage2D:(a, b, c, d, e, f, g,
|
|
3539
|
-
W.
|
|
3537
|
+
W.compileShader(Fd[a]);
|
|
3538
|
+
}, glCompressedTexSubImage2D:(a, b, c, d, e, f, g, h, m) => {
|
|
3539
|
+
W.oa || !h ? W.compressedTexSubImage2D(a, b, c, d, e, f, g, h, m) : W.compressedTexSubImage2D(a, b, c, d, e, f, g, D, m, h);
|
|
3540
3540
|
}, glCreateProgram:() => {
|
|
3541
|
-
var a =
|
|
3541
|
+
var a = Kd(V), b = W.createProgram();
|
|
3542
3542
|
b.name = a;
|
|
3543
|
-
b.
|
|
3544
|
-
b.
|
|
3543
|
+
b.wa = b.ua = b.va = 0;
|
|
3544
|
+
b.Qa = 1;
|
|
3545
3545
|
V[a] = b;
|
|
3546
3546
|
return a;
|
|
3547
3547
|
}, glCreateShader:a => {
|
|
3548
|
-
var b =
|
|
3549
|
-
|
|
3548
|
+
var b = Kd(Fd);
|
|
3549
|
+
Fd[b] = W.createShader(a);
|
|
3550
3550
|
return b;
|
|
3551
3551
|
}, glCullFace:a => W.cullFace(a), glDeleteBuffers:(a, b) => {
|
|
3552
3552
|
for (var c = 0; c < a; c++) {
|
|
3553
|
-
var d = F[b + 4 * c >> 2], e =
|
|
3554
|
-
e && (W.deleteBuffer(e), e.name = 0,
|
|
3553
|
+
var d = F[b + 4 * c >> 2], e = Bd[d];
|
|
3554
|
+
e && (W.deleteBuffer(e), e.name = 0, Bd[d] = null, d == W.Ja && (W.Ja = 0), d == W.oa && (W.oa = 0));
|
|
3555
3555
|
}
|
|
3556
3556
|
}, glDeleteFramebuffers:(a, b) => {
|
|
3557
3557
|
for (var c = 0; c < a; ++c) {
|
|
3558
|
-
var d = F[b + 4 * c >> 2], e =
|
|
3559
|
-
e && (W.deleteFramebuffer(e), e.name = 0,
|
|
3558
|
+
var d = F[b + 4 * c >> 2], e = Cd[d];
|
|
3559
|
+
e && (W.deleteFramebuffer(e), e.name = 0, Cd[d] = null);
|
|
3560
3560
|
}
|
|
3561
3561
|
}, glDeleteProgram:a => {
|
|
3562
3562
|
if (a) {
|
|
@@ -3565,24 +3565,24 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3565
3565
|
}
|
|
3566
3566
|
}, glDeleteRenderbuffers:(a, b) => {
|
|
3567
3567
|
for (var c = 0; c < a; c++) {
|
|
3568
|
-
var d = F[b + 4 * c >> 2], e =
|
|
3569
|
-
e && (W.deleteRenderbuffer(e), e.name = 0,
|
|
3568
|
+
var d = F[b + 4 * c >> 2], e = Dd[d];
|
|
3569
|
+
e && (W.deleteRenderbuffer(e), e.name = 0, Dd[d] = null);
|
|
3570
3570
|
}
|
|
3571
3571
|
}, glDeleteShader:a => {
|
|
3572
3572
|
if (a) {
|
|
3573
|
-
var b =
|
|
3574
|
-
b ? (W.deleteShader(b),
|
|
3573
|
+
var b = Fd[a];
|
|
3574
|
+
b ? (W.deleteShader(b), Fd[a] = null) : X ||= 1281;
|
|
3575
3575
|
}
|
|
3576
3576
|
}, glDeleteTextures:(a, b) => {
|
|
3577
3577
|
for (var c = 0; c < a; c++) {
|
|
3578
|
-
var d = F[b + 4 * c >> 2], e =
|
|
3579
|
-
e && (W.deleteTexture(e), e.name = 0,
|
|
3578
|
+
var d = F[b + 4 * c >> 2], e = Ed[d];
|
|
3579
|
+
e && (W.deleteTexture(e), e.name = 0, Ed[d] = null);
|
|
3580
3580
|
}
|
|
3581
3581
|
}, glDeleteVertexArrays:(a, b) => {
|
|
3582
3582
|
for (var c = 0; c < a; c++) {
|
|
3583
3583
|
var d = F[b + 4 * c >> 2];
|
|
3584
|
-
W.deleteVertexArray(
|
|
3585
|
-
|
|
3584
|
+
W.deleteVertexArray(Gd[d]);
|
|
3585
|
+
Gd[d] = null;
|
|
3586
3586
|
}
|
|
3587
3587
|
}, glDepthFunc:a => W.depthFunc(a), glDepthMask:a => {
|
|
3588
3588
|
W.depthMask(!!a);
|
|
@@ -3591,7 +3591,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3591
3591
|
}, glDrawArraysInstanced:(a, b, c, d) => {
|
|
3592
3592
|
W.drawArraysInstanced(a, b, c, d);
|
|
3593
3593
|
}, glDrawBuffers:(a, b) => {
|
|
3594
|
-
for (var c =
|
|
3594
|
+
for (var c = Qd[a], d = 0; d < a; d++) {
|
|
3595
3595
|
c[d] = F[b + 4 * d >> 2];
|
|
3596
3596
|
}
|
|
3597
3597
|
W.drawBuffers(c);
|
|
@@ -3602,47 +3602,47 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3602
3602
|
}, glEnable:a => W.enable(a), glEnableVertexAttribArray:a => {
|
|
3603
3603
|
W.enableVertexAttribArray(a);
|
|
3604
3604
|
}, glFlush:() => W.flush(), glFramebufferRenderbuffer:(a, b, c, d) => {
|
|
3605
|
-
W.framebufferRenderbuffer(a, b, c,
|
|
3605
|
+
W.framebufferRenderbuffer(a, b, c, Dd[d]);
|
|
3606
3606
|
}, glFramebufferTexture2D:(a, b, c, d, e) => {
|
|
3607
|
-
W.framebufferTexture2D(a, b, c,
|
|
3607
|
+
W.framebufferTexture2D(a, b, c, Ed[d], e);
|
|
3608
3608
|
}, glFrontFace:a => W.frontFace(a), glGenBuffers:(a, b) => {
|
|
3609
|
-
|
|
3609
|
+
Ld(a, b, "createBuffer", Bd);
|
|
3610
3610
|
}, glGenFramebuffers:(a, b) => {
|
|
3611
|
-
|
|
3611
|
+
Ld(a, b, "createFramebuffer", Cd);
|
|
3612
3612
|
}, glGenRenderbuffers:(a, b) => {
|
|
3613
|
-
|
|
3613
|
+
Ld(a, b, "createRenderbuffer", Dd);
|
|
3614
3614
|
}, glGenTextures:(a, b) => {
|
|
3615
|
-
|
|
3615
|
+
Ld(a, b, "createTexture", Ed);
|
|
3616
3616
|
}, glGenVertexArrays:(a, b) => {
|
|
3617
|
-
|
|
3618
|
-
}, glGenerateMipmap:a => W.generateMipmap(a), glGetIntegerv:(a, b) =>
|
|
3617
|
+
Ld(a, b, "createVertexArray", Gd);
|
|
3618
|
+
}, glGenerateMipmap:a => W.generateMipmap(a), glGetIntegerv:(a, b) => Sd(a, b), glGetProgramiv:(a, b, c) => {
|
|
3619
3619
|
if (c) {
|
|
3620
|
-
if (a >=
|
|
3620
|
+
if (a >= Ad) {
|
|
3621
3621
|
X ||= 1281;
|
|
3622
3622
|
} else {
|
|
3623
3623
|
if (a = V[a], 35716 == b) {
|
|
3624
3624
|
a = W.getProgramInfoLog(a), null === a && (a = "(unknown error)"), F[c >> 2] = a.length + 1;
|
|
3625
3625
|
} else if (35719 == b) {
|
|
3626
|
-
if (!a.
|
|
3626
|
+
if (!a.wa) {
|
|
3627
3627
|
for (b = 0; b < W.getProgramParameter(a, 35718); ++b) {
|
|
3628
|
-
a.
|
|
3628
|
+
a.wa = Math.max(a.wa, W.getActiveUniform(a, b).name.length + 1);
|
|
3629
3629
|
}
|
|
3630
3630
|
}
|
|
3631
|
-
F[c >> 2] = a.
|
|
3631
|
+
F[c >> 2] = a.wa;
|
|
3632
3632
|
} else if (35722 == b) {
|
|
3633
|
-
if (!a.
|
|
3633
|
+
if (!a.ua) {
|
|
3634
3634
|
for (b = 0; b < W.getProgramParameter(a, 35721); ++b) {
|
|
3635
|
-
a.
|
|
3635
|
+
a.ua = Math.max(a.ua, W.getActiveAttrib(a, b).name.length + 1);
|
|
3636
3636
|
}
|
|
3637
3637
|
}
|
|
3638
|
-
F[c >> 2] = a.
|
|
3638
|
+
F[c >> 2] = a.ua;
|
|
3639
3639
|
} else if (35381 == b) {
|
|
3640
|
-
if (!a.
|
|
3640
|
+
if (!a.va) {
|
|
3641
3641
|
for (b = 0; b < W.getProgramParameter(a, 35382); ++b) {
|
|
3642
|
-
a.
|
|
3642
|
+
a.va = Math.max(a.va, W.getActiveUniformBlockName(a, b).length + 1);
|
|
3643
3643
|
}
|
|
3644
3644
|
}
|
|
3645
|
-
F[c >> 2] = a.
|
|
3645
|
+
F[c >> 2] = a.va;
|
|
3646
3646
|
} else {
|
|
3647
3647
|
F[c >> 2] = W.getProgramParameter(a, b);
|
|
3648
3648
|
}
|
|
@@ -3651,59 +3651,59 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3651
3651
|
X ||= 1281;
|
|
3652
3652
|
}
|
|
3653
3653
|
}, glGetString:a => {
|
|
3654
|
-
var b =
|
|
3654
|
+
var b = Hd[a];
|
|
3655
3655
|
if (!b) {
|
|
3656
3656
|
switch(a) {
|
|
3657
3657
|
case 7939:
|
|
3658
|
-
b =
|
|
3658
|
+
b = Ud(Rd().join(" "));
|
|
3659
3659
|
break;
|
|
3660
3660
|
case 7936:
|
|
3661
3661
|
case 7937:
|
|
3662
3662
|
case 37445:
|
|
3663
3663
|
case 37446:
|
|
3664
3664
|
(b = W.getParameter(a)) || (X ||= 1280);
|
|
3665
|
-
b = b ?
|
|
3665
|
+
b = b ? Ud(b) : 0;
|
|
3666
3666
|
break;
|
|
3667
3667
|
case 7938:
|
|
3668
|
-
b =
|
|
3668
|
+
b = Ud(`OpenGL ES 3.0 (${W.getParameter(7938)})`);
|
|
3669
3669
|
break;
|
|
3670
3670
|
case 35724:
|
|
3671
3671
|
b = W.getParameter(35724);
|
|
3672
3672
|
var c = b.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);
|
|
3673
3673
|
null !== c && (3 == c[1].length && (c[1] += "0"), b = `OpenGL ES GLSL ES ${c[1]} (${b})`);
|
|
3674
|
-
b =
|
|
3674
|
+
b = Ud(b);
|
|
3675
3675
|
break;
|
|
3676
3676
|
default:
|
|
3677
3677
|
X ||= 1280;
|
|
3678
3678
|
}
|
|
3679
|
-
|
|
3679
|
+
Hd[a] = b;
|
|
3680
3680
|
}
|
|
3681
3681
|
return b;
|
|
3682
3682
|
}, glGetUniformBlockIndex:(a, b) => W.getUniformBlockIndex(V[a], b ? L(D, b) : ""), glGetUniformLocation:(a, b) => {
|
|
3683
3683
|
b = b ? L(D, b) : "";
|
|
3684
3684
|
if (a = V[a]) {
|
|
3685
|
-
var c = a, d = c.
|
|
3685
|
+
var c = a, d = c.ja, e = c.ob, f;
|
|
3686
3686
|
if (!d) {
|
|
3687
|
-
for (c.
|
|
3687
|
+
for (c.ja = d = {}, c.nb = {}, f = 0; f < W.getProgramParameter(c, 35718); ++f) {
|
|
3688
3688
|
var g = W.getActiveUniform(c, f);
|
|
3689
|
-
var
|
|
3689
|
+
var h = g.name;
|
|
3690
3690
|
g = g.size;
|
|
3691
|
-
var
|
|
3692
|
-
|
|
3693
|
-
var
|
|
3694
|
-
c.
|
|
3695
|
-
e[
|
|
3696
|
-
for (
|
|
3697
|
-
d[
|
|
3691
|
+
var m = Vd(h);
|
|
3692
|
+
m = 0 < m ? h.slice(0, m) : h;
|
|
3693
|
+
var l = c.Qa;
|
|
3694
|
+
c.Qa += g;
|
|
3695
|
+
e[m] = [g, l];
|
|
3696
|
+
for (h = 0; h < g; ++h) {
|
|
3697
|
+
d[l] = h, c.nb[l++] = m;
|
|
3698
3698
|
}
|
|
3699
3699
|
}
|
|
3700
3700
|
}
|
|
3701
|
-
c = a.
|
|
3701
|
+
c = a.ja;
|
|
3702
3702
|
d = 0;
|
|
3703
3703
|
e = b;
|
|
3704
|
-
f =
|
|
3704
|
+
f = Vd(b);
|
|
3705
3705
|
0 < f && (d = parseInt(b.slice(f + 1)) >>> 0, e = b.slice(0, f));
|
|
3706
|
-
if ((e = a.
|
|
3706
|
+
if ((e = a.ob[e]) && d < e[0] && (d += e[1], c[d] = c[d] || W.getUniformLocation(a, b))) {
|
|
3707
3707
|
return d;
|
|
3708
3708
|
}
|
|
3709
3709
|
} else {
|
|
@@ -3711,57 +3711,57 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3711
3711
|
}
|
|
3712
3712
|
return -1;
|
|
3713
3713
|
}, glInvalidateFramebuffer:(a, b, c) => {
|
|
3714
|
-
for (var d =
|
|
3714
|
+
for (var d = Qd[b], e = 0; e < b; e++) {
|
|
3715
3715
|
d[e] = F[c + 4 * e >> 2];
|
|
3716
3716
|
}
|
|
3717
3717
|
W.invalidateFramebuffer(a, d);
|
|
3718
3718
|
}, glLinkProgram:a => {
|
|
3719
3719
|
a = V[a];
|
|
3720
3720
|
W.linkProgram(a);
|
|
3721
|
-
a.
|
|
3722
|
-
a.
|
|
3721
|
+
a.ja = 0;
|
|
3722
|
+
a.ob = {};
|
|
3723
3723
|
}, glPixelStorei:(a, b) => {
|
|
3724
|
-
3317 == a ?
|
|
3724
|
+
3317 == a ? Id = b : 3314 == a && (Jd = b);
|
|
3725
3725
|
W.pixelStorei(a, b);
|
|
3726
3726
|
}, glReadPixels:(a, b, c, d, e, f, g) => {
|
|
3727
|
-
if (W.
|
|
3727
|
+
if (W.Ja) {
|
|
3728
3728
|
W.readPixels(a, b, c, d, e, f, g);
|
|
3729
3729
|
} else {
|
|
3730
|
-
var
|
|
3731
|
-
g >>>= 31 - Math.clz32(
|
|
3732
|
-
W.readPixels(a, b, c, d, e, f,
|
|
3730
|
+
var h = Wd(f);
|
|
3731
|
+
g >>>= 31 - Math.clz32(h.BYTES_PER_ELEMENT);
|
|
3732
|
+
W.readPixels(a, b, c, d, e, f, h, g);
|
|
3733
3733
|
}
|
|
3734
3734
|
}, glRenderbufferStorageMultisample:(a, b, c, d, e) => W.renderbufferStorageMultisample(a, b, c, d, e), glScissor:(a, b, c, d) => W.scissor(a, b, c, d), glShaderSource:(a, b, c, d) => {
|
|
3735
3735
|
for (var e = "", f = 0; f < b; ++f) {
|
|
3736
|
-
var g = (g =
|
|
3736
|
+
var g = (g = K[c + 4 * f >> 2]) ? L(D, g, d ? K[d + 4 * f >> 2] : void 0) : "";
|
|
3737
3737
|
e += g;
|
|
3738
3738
|
}
|
|
3739
|
-
W.shaderSource(
|
|
3739
|
+
W.shaderSource(Fd[a], e);
|
|
3740
3740
|
}, glStencilFunc:(a, b, c) => W.stencilFunc(a, b, c), glStencilFuncSeparate:(a, b, c, d) => W.stencilFuncSeparate(a, b, c, d), glStencilMask:a => W.stencilMask(a), glStencilOp:(a, b, c) => W.stencilOp(a, b, c), glStencilOpSeparate:(a, b, c, d) => W.stencilOpSeparate(a, b, c, d), glTexParameteri:(a, b, c) => W.texParameteri(a, b, c), glTexStorage2D:(a, b, c, d, e) => W.texStorage2D(a, b, c, d, e), glTexStorage3D:(a, b, c, d, e, f) => W.texStorage3D(a, b, c, d, e, f), glTexSubImage2D:(a, b, c, d, e,
|
|
3741
|
-
f, g,
|
|
3742
|
-
if (W.
|
|
3743
|
-
W.texSubImage2D(a, b, c, d, e, f, g,
|
|
3741
|
+
f, g, h, m) => {
|
|
3742
|
+
if (W.oa) {
|
|
3743
|
+
W.texSubImage2D(a, b, c, d, e, f, g, h, m);
|
|
3744
3744
|
} else {
|
|
3745
|
-
if (
|
|
3746
|
-
var
|
|
3747
|
-
W.texSubImage2D(a, b, c, d, e, f, g,
|
|
3745
|
+
if (m) {
|
|
3746
|
+
var l = Wd(h);
|
|
3747
|
+
W.texSubImage2D(a, b, c, d, e, f, g, h, l, m >>> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
|
|
3748
3748
|
} else {
|
|
3749
|
-
if (
|
|
3750
|
-
|
|
3751
|
-
var
|
|
3752
|
-
|
|
3749
|
+
if (m) {
|
|
3750
|
+
l = Wd(h);
|
|
3751
|
+
var r = f * ((Jd || e) * ({5:3, 6:4, 8:2, 29502:3, 29504:4, 26917:2, 26918:2, 29846:3, 29847:4}[g - 6402] || 1) * l.BYTES_PER_ELEMENT + Id - 1 & -Id);
|
|
3752
|
+
m = l.subarray(m >>> 31 - Math.clz32(l.BYTES_PER_ELEMENT), m + r >>> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
|
|
3753
3753
|
} else {
|
|
3754
|
-
|
|
3754
|
+
m = null;
|
|
3755
3755
|
}
|
|
3756
|
-
W.texSubImage2D(a, b, c, d, e, f, g,
|
|
3756
|
+
W.texSubImage2D(a, b, c, d, e, f, g, h, m);
|
|
3757
3757
|
}
|
|
3758
3758
|
}
|
|
3759
3759
|
}, glUniform1i:(a, b) => {
|
|
3760
3760
|
var c = W, d = c.uniform1i;
|
|
3761
|
-
var e = W.
|
|
3761
|
+
var e = W.zb;
|
|
3762
3762
|
if (e) {
|
|
3763
|
-
var f = e.
|
|
3764
|
-
"number" == typeof f && (e.
|
|
3763
|
+
var f = e.ja[a];
|
|
3764
|
+
"number" == typeof f && (e.ja[a] = f = W.getUniformLocation(e, e.nb[a] + (0 < f ? `[${f}]` : "")));
|
|
3765
3765
|
a = f;
|
|
3766
3766
|
} else {
|
|
3767
3767
|
X ||= 1282, a = void 0;
|
|
@@ -3773,141 +3773,141 @@ f, g, k, n) => {
|
|
|
3773
3773
|
}, glUseProgram:a => {
|
|
3774
3774
|
a = V[a];
|
|
3775
3775
|
W.useProgram(a);
|
|
3776
|
-
W.
|
|
3776
|
+
W.zb = a;
|
|
3777
3777
|
}, glVertexAttribDivisor:(a, b) => {
|
|
3778
3778
|
W.vertexAttribDivisor(a, b);
|
|
3779
3779
|
}, glVertexAttribIPointer:(a, b, c, d, e) => {
|
|
3780
3780
|
W.vertexAttribIPointer(a, b, c, d, e);
|
|
3781
3781
|
}, glVertexAttribPointer:(a, b, c, d, e, f) => {
|
|
3782
3782
|
W.vertexAttribPointer(a, b, c, !!d, e, f);
|
|
3783
|
-
}, glViewport:(a, b, c, d) => W.viewport(a, b, c, d), invoke_vii:
|
|
3783
|
+
}, glViewport:(a, b, c, d) => W.viewport(a, b, c, d), invoke_vii:ce, isWindowsBrowser:function() {
|
|
3784
3784
|
return -1 < navigator.platform.indexOf("Win");
|
|
3785
3785
|
}, provokingVertexWEBGL:function(a, b) {
|
|
3786
|
-
(a =
|
|
3787
|
-
}, strftime
|
|
3788
|
-
var c =
|
|
3789
|
-
c && (b = c.get(b)) && (a =
|
|
3786
|
+
(a = v[a].C.ib) && a.provokingVertexWEBGL(b);
|
|
3787
|
+
}, strftime:Zd, strftime_l:(a, b, c, d) => Zd(a, b, c, d), upload_image:function(a, b) {
|
|
3788
|
+
var c = k.images;
|
|
3789
|
+
c && (b = c.get(b)) && (a = v[a].C, a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !0), a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, b), a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !1));
|
|
3790
3790
|
}, wasm_start_image_decode:function(a, b, c) {
|
|
3791
|
-
b =
|
|
3791
|
+
b = k.HEAP8.subarray(b, b + c);
|
|
3792
3792
|
c = new Uint8Array(c);
|
|
3793
3793
|
c.set(b);
|
|
3794
3794
|
createImageBitmap(new Blob([c])).then(function(d) {
|
|
3795
3795
|
var e = (new OffscreenCanvas(d.width, d.height)).getContext("2d");
|
|
3796
3796
|
e.drawImage(d, 0, 0);
|
|
3797
3797
|
e = e.getImageData(0, 0, d.width, d.height);
|
|
3798
|
-
var f = e.data.length, g =
|
|
3799
|
-
|
|
3800
|
-
|
|
3798
|
+
var f = e.data.length, g = k.tb(f);
|
|
3799
|
+
k.dc.set(e.data, g);
|
|
3800
|
+
k.fc(a, d.width, d.height, g, f);
|
|
3801
3801
|
}).catch(function(d) {
|
|
3802
3802
|
d = d.message || "decode failed";
|
|
3803
|
-
var e =
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3803
|
+
var e = k.zc(d) + 1, f = k.tb(e);
|
|
3804
|
+
k.Hc(d, f, e);
|
|
3805
|
+
k.hc(a, f);
|
|
3806
|
+
k.ec(f);
|
|
3807
3807
|
});
|
|
3808
|
-
}},
|
|
3808
|
+
}}, Z = function() {
|
|
3809
3809
|
function a(c) {
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
0 ==
|
|
3818
|
-
return
|
|
3819
|
-
}
|
|
3820
|
-
var b = {env:
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
if (
|
|
3810
|
+
Z = c.exports;
|
|
3811
|
+
ta = Z.memory;
|
|
3812
|
+
ya();
|
|
3813
|
+
Pc = Z.__indirect_function_table;
|
|
3814
|
+
Aa.unshift(Z.__wasm_call_ctors);
|
|
3815
|
+
Da--;
|
|
3816
|
+
k.monitorRunDependencies?.(Da);
|
|
3817
|
+
0 == Da && (null !== Ea && (clearInterval(Ea), Ea = null), Fa && (c = Fa, Fa = null, c()));
|
|
3818
|
+
return Z;
|
|
3819
|
+
}
|
|
3820
|
+
var b = {env:de, wasi_snapshot_preview1:de,};
|
|
3821
|
+
Da++;
|
|
3822
|
+
k.monitorRunDependencies?.(Da);
|
|
3823
|
+
if (k.instantiateWasm) {
|
|
3824
3824
|
try {
|
|
3825
|
-
return
|
|
3825
|
+
return k.instantiateWasm(b, a);
|
|
3826
3826
|
} catch (c) {
|
|
3827
|
-
|
|
3827
|
+
A(`Module.instantiateWasm callback failed with error: ${c}`), ba(c);
|
|
3828
3828
|
}
|
|
3829
3829
|
}
|
|
3830
|
-
|
|
3831
|
-
|
|
3830
|
+
Ia ||= Ha("webgl2_advanced.wasm") ? "webgl2_advanced.wasm" : k.locateFile ? k.locateFile("webgl2_advanced.wasm", x) : x + "webgl2_advanced.wasm";
|
|
3831
|
+
Ma(b, function(c) {
|
|
3832
3832
|
a(c.instance);
|
|
3833
3833
|
}).catch(ba);
|
|
3834
3834
|
return {};
|
|
3835
|
-
}(),
|
|
3836
|
-
|
|
3837
|
-
var
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
var
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
var
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
function
|
|
3855
|
-
var d =
|
|
3835
|
+
}(), kc = a => (kc = Z.free)(a), Td = a => (Td = Z.malloc)(a);
|
|
3836
|
+
k._setWebImage = (a, b, c) => (k._setWebImage = Z.setWebImage)(a, b, c);
|
|
3837
|
+
var jc = a => (jc = Z.__getTypeName)(a);
|
|
3838
|
+
k._wasm_image_decode_complete = (a, b, c, d, e) => (k._wasm_image_decode_complete = Z.wasm_image_decode_complete)(a, b, c, d, e);
|
|
3839
|
+
k._wasm_image_decode_error = (a, b) => (k._wasm_image_decode_error = Z.wasm_image_decode_error)(a, b);
|
|
3840
|
+
var Pa = k._ma_device__on_notification_unlocked = a => (Pa = k._ma_device__on_notification_unlocked = Z.ma_device__on_notification_unlocked)(a);
|
|
3841
|
+
k._ma_malloc_emscripten = (a, b) => (k._ma_malloc_emscripten = Z.ma_malloc_emscripten)(a, b);
|
|
3842
|
+
k._ma_free_emscripten = (a, b) => (k._ma_free_emscripten = Z.ma_free_emscripten)(a, b);
|
|
3843
|
+
var Qa = k._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Qa = k._ma_device_process_pcm_frames_capture__webaudio = Z.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Ra = k._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Ra = k._ma_device_process_pcm_frames_playback__webaudio = Z.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), ee = (a, b) => (ee = Z.setThrew)(a, b), fe = a => (fe = Z._emscripten_stack_restore)(a), ge = () => (ge = Z.emscripten_stack_get_current)();
|
|
3844
|
+
k.dynCall_iiiji = (a, b, c, d, e, f) => (k.dynCall_iiiji = Z.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3845
|
+
k.dynCall_iij = (a, b, c, d) => (k.dynCall_iij = Z.dynCall_iij)(a, b, c, d);
|
|
3846
|
+
k.dynCall_iiji = (a, b, c, d, e) => (k.dynCall_iiji = Z.dynCall_iiji)(a, b, c, d, e);
|
|
3847
|
+
k.dynCall_jii = (a, b, c) => (k.dynCall_jii = Z.dynCall_jii)(a, b, c);
|
|
3848
|
+
k.dynCall_vijj = (a, b, c, d, e, f) => (k.dynCall_vijj = Z.dynCall_vijj)(a, b, c, d, e, f);
|
|
3849
|
+
k.dynCall_jiji = (a, b, c, d, e) => (k.dynCall_jiji = Z.dynCall_jiji)(a, b, c, d, e);
|
|
3850
|
+
k.dynCall_viijii = (a, b, c, d, e, f, g) => (k.dynCall_viijii = Z.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3851
|
+
k.dynCall_iiiiij = (a, b, c, d, e, f, g) => (k.dynCall_iiiiij = Z.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3852
|
+
k.dynCall_iiiiijj = (a, b, c, d, e, f, g, h, m) => (k.dynCall_iiiiijj = Z.dynCall_iiiiijj)(a, b, c, d, e, f, g, h, m);
|
|
3853
|
+
k.dynCall_iiiiiijj = (a, b, c, d, e, f, g, h, m, l) => (k.dynCall_iiiiiijj = Z.dynCall_iiiiiijj)(a, b, c, d, e, f, g, h, m, l);
|
|
3854
|
+
function ce(a, b, c) {
|
|
3855
|
+
var d = ge();
|
|
3856
3856
|
try {
|
|
3857
|
-
|
|
3857
|
+
Qc(a)(b, c);
|
|
3858
3858
|
} catch (e) {
|
|
3859
|
-
|
|
3859
|
+
fe(d);
|
|
3860
3860
|
if (e !== e + 0) {
|
|
3861
3861
|
throw e;
|
|
3862
3862
|
}
|
|
3863
|
-
|
|
3863
|
+
ee(1, 0);
|
|
3864
3864
|
}
|
|
3865
3865
|
}
|
|
3866
|
-
var
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3866
|
+
var he;
|
|
3867
|
+
Fa = function ie() {
|
|
3868
|
+
he || je();
|
|
3869
|
+
he || (Fa = ie);
|
|
3870
3870
|
};
|
|
3871
|
-
function
|
|
3871
|
+
function je() {
|
|
3872
3872
|
function a() {
|
|
3873
|
-
if (!
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
aa(
|
|
3878
|
-
if (
|
|
3879
|
-
|
|
3873
|
+
if (!he && (he = !0, k.calledRun = !0, !ua)) {
|
|
3874
|
+
k.noFSInit || Ub || (Ub = !0, k.stdin = k.stdin, k.stdout = k.stdout, k.stderr = k.stderr, k.stdin ? Vb("stdin", k.stdin) : Qb("/dev/tty", "/dev/stdin"), k.stdout ? Vb("stdout", null, k.stdout) : Qb("/dev/tty", "/dev/stdout"), k.stderr ? Vb("stderr", null, k.stderr) : Qb("/dev/tty1", "/dev/stderr"), Rb("/dev/stdin", 0), Rb("/dev/stdout", 1), Rb("/dev/stderr", 1));
|
|
3875
|
+
zb = !1;
|
|
3876
|
+
Ta(Aa);
|
|
3877
|
+
aa(k);
|
|
3878
|
+
if (k.onRuntimeInitialized) {
|
|
3879
|
+
k.onRuntimeInitialized();
|
|
3880
3880
|
}
|
|
3881
|
-
if (
|
|
3882
|
-
for ("function" == typeof
|
|
3883
|
-
var b =
|
|
3884
|
-
|
|
3881
|
+
if (k.postRun) {
|
|
3882
|
+
for ("function" == typeof k.postRun && (k.postRun = [k.postRun]); k.postRun.length;) {
|
|
3883
|
+
var b = k.postRun.shift();
|
|
3884
|
+
Ba.unshift(b);
|
|
3885
3885
|
}
|
|
3886
3886
|
}
|
|
3887
|
-
|
|
3887
|
+
Ta(Ba);
|
|
3888
3888
|
}
|
|
3889
3889
|
}
|
|
3890
|
-
if (!(0 <
|
|
3891
|
-
if (
|
|
3892
|
-
for ("function" == typeof
|
|
3893
|
-
|
|
3890
|
+
if (!(0 < Da)) {
|
|
3891
|
+
if (k.preRun) {
|
|
3892
|
+
for ("function" == typeof k.preRun && (k.preRun = [k.preRun]); k.preRun.length;) {
|
|
3893
|
+
Ca();
|
|
3894
3894
|
}
|
|
3895
3895
|
}
|
|
3896
|
-
|
|
3897
|
-
0 <
|
|
3896
|
+
Ta(za);
|
|
3897
|
+
0 < Da || (k.setStatus ? (k.setStatus("Running..."), setTimeout(function() {
|
|
3898
3898
|
setTimeout(function() {
|
|
3899
|
-
|
|
3899
|
+
k.setStatus("");
|
|
3900
3900
|
}, 1);
|
|
3901
3901
|
a();
|
|
3902
3902
|
}, 1)) : a());
|
|
3903
3903
|
}
|
|
3904
3904
|
}
|
|
3905
|
-
if (
|
|
3906
|
-
for ("function" == typeof
|
|
3907
|
-
|
|
3905
|
+
if (k.preInit) {
|
|
3906
|
+
for ("function" == typeof k.preInit && (k.preInit = [k.preInit]); 0 < k.preInit.length;) {
|
|
3907
|
+
k.preInit.pop()();
|
|
3908
3908
|
}
|
|
3909
3909
|
}
|
|
3910
|
-
|
|
3910
|
+
je();
|
|
3911
3911
|
moduleRtn = ca;
|
|
3912
3912
|
|
|
3913
3913
|
|
|
@@ -3923,7 +3923,7 @@ moduleRtn = ca;
|
|
|
3923
3923
|
/* 5 */
|
|
3924
3924
|
/***/ ((module) => {
|
|
3925
3925
|
|
|
3926
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl2","version":"2.38.
|
|
3926
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl2","version":"2.38.5","description":"Rive\'s webgl2 based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)","Chris Dalton <chris@rive.app> (https://rive.app)"],"license":"MIT","files":["rive.js","rive.wasm","rive_fallback.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts","runtimeLoader.d.ts","utils"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
3927
3927
|
|
|
3928
3928
|
/***/ }),
|
|
3929
3929
|
/* 6 */
|