@rive-app/webgl2 2.38.1 → 2.38.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rive.js +274 -256
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +17 -3
- package/rive_fallback.wasm +0 -0
package/rive.js
CHANGED
|
@@ -373,8 +373,8 @@ function fa() {
|
|
|
373
373
|
console.error(m);
|
|
374
374
|
}
|
|
375
375
|
});
|
|
376
|
-
this.
|
|
377
|
-
e && e.
|
|
376
|
+
this.nb();
|
|
377
|
+
e && e.Ob();
|
|
378
378
|
}
|
|
379
379
|
let b = 0, c = 0, d = new Map(), e = null, f = null;
|
|
380
380
|
this.requestAnimationFrame = function(g) {
|
|
@@ -387,20 +387,20 @@ function fa() {
|
|
|
387
387
|
d.delete(g);
|
|
388
388
|
b && 0 == d.size && (cancelAnimationFrame(b), b = 0);
|
|
389
389
|
};
|
|
390
|
-
this.
|
|
390
|
+
this.Mb = function(g) {
|
|
391
391
|
f && (document.body.remove(f), f = null);
|
|
392
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(k) {
|
|
393
393
|
f.innerHTML = "RIVE FPS " + k.toFixed(1);
|
|
394
394
|
}, document.body.appendChild(f));
|
|
395
395
|
e = new function() {
|
|
396
396
|
let k = 0, n = 0;
|
|
397
|
-
this.
|
|
397
|
+
this.Ob = function() {
|
|
398
398
|
var m = performance.now();
|
|
399
399
|
n ? (++k, m -= n, 1000 < m && (g(1000 * k / m), k = n = 0)) : (n = m, k = 0);
|
|
400
400
|
};
|
|
401
401
|
}();
|
|
402
402
|
};
|
|
403
|
-
this.
|
|
403
|
+
this.nb = function() {
|
|
404
404
|
};
|
|
405
405
|
}
|
|
406
406
|
function ha() {
|
|
@@ -444,10 +444,10 @@ l.onRuntimeInitialized = function() {
|
|
|
444
444
|
};
|
|
445
445
|
l.CustomFileAssetLoader = d.extend("CustomFileAssetLoader", {__construct:function({loadContents:f}) {
|
|
446
446
|
this.__parent.__construct.call(this);
|
|
447
|
-
this.
|
|
447
|
+
this.Cb = f;
|
|
448
448
|
}, loadContents:function(f, g) {
|
|
449
449
|
f = l.ptrToAsset(f);
|
|
450
|
-
return this.
|
|
450
|
+
return this.Cb(f, g);
|
|
451
451
|
},});
|
|
452
452
|
l.CDNFileAssetLoader = d.extend("CDNFileAssetLoader", {__construct:function() {
|
|
453
453
|
this.__parent.__construct.call(this);
|
|
@@ -472,11 +472,11 @@ l.onRuntimeInitialized = function() {
|
|
|
472
472
|
},});
|
|
473
473
|
l.FallbackFileAssetLoader = d.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
474
474
|
this.__parent.__construct.call(this);
|
|
475
|
-
this.
|
|
475
|
+
this.jb = [];
|
|
476
476
|
}, addLoader:function(f) {
|
|
477
|
-
this.
|
|
477
|
+
this.jb.push(f);
|
|
478
478
|
}, loadContents:function(f, g) {
|
|
479
|
-
for (let k of this.
|
|
479
|
+
for (let k of this.jb) {
|
|
480
480
|
if (k.loadContents(f, g)) {
|
|
481
481
|
return !0;
|
|
482
482
|
}
|
|
@@ -492,8 +492,8 @@ const ja = l.onRuntimeInitialized;
|
|
|
492
492
|
l.onRuntimeInitialized = function() {
|
|
493
493
|
function a(r) {
|
|
494
494
|
this.G = r;
|
|
495
|
-
this.
|
|
496
|
-
this
|
|
495
|
+
this.Bb = r.getContext("2d");
|
|
496
|
+
this.$a = d;
|
|
497
497
|
this.S = [];
|
|
498
498
|
this.ka = 0;
|
|
499
499
|
this.clear = function() {
|
|
@@ -517,7 +517,11 @@ l.onRuntimeInitialized = function() {
|
|
|
517
517
|
this.flush = function() {
|
|
518
518
|
console.assert(0 == this.ka);
|
|
519
519
|
e.add(this);
|
|
520
|
-
d.
|
|
520
|
+
d.Za || c();
|
|
521
|
+
};
|
|
522
|
+
this.bindContext = function() {
|
|
523
|
+
const u = this.$a;
|
|
524
|
+
u && u.Z && ka(u.Z);
|
|
521
525
|
};
|
|
522
526
|
this["delete"] = function() {
|
|
523
527
|
};
|
|
@@ -528,31 +532,34 @@ l.onRuntimeInitialized = function() {
|
|
|
528
532
|
if (!u) {
|
|
529
533
|
return null;
|
|
530
534
|
}
|
|
531
|
-
z =
|
|
532
|
-
|
|
535
|
+
z = la(u, z);
|
|
536
|
+
ka(z);
|
|
533
537
|
const A = f(r.width, r.height);
|
|
534
|
-
A.
|
|
538
|
+
A.Z = z;
|
|
535
539
|
A.G = r;
|
|
536
|
-
A.
|
|
537
|
-
A.
|
|
540
|
+
A.Oa = r.width;
|
|
541
|
+
A.Na = r.height;
|
|
538
542
|
A.T = u;
|
|
543
|
+
A.Gb = function() {
|
|
544
|
+
this.Z && ka(this.Z);
|
|
545
|
+
};
|
|
539
546
|
var C = A.delete;
|
|
540
547
|
A.delete = function() {
|
|
541
|
-
this.
|
|
548
|
+
this.Gb();
|
|
542
549
|
C.call(this);
|
|
543
|
-
var H = this.
|
|
550
|
+
var H = this.Z;
|
|
544
551
|
q === w[H] && (q = null);
|
|
545
|
-
"object" == typeof JSEvents && JSEvents.
|
|
546
|
-
w[H] && w[H].F.canvas && (w[H].F.canvas.
|
|
547
|
-
this.
|
|
552
|
+
"object" == typeof JSEvents && JSEvents.Rc(w[H].F.canvas);
|
|
553
|
+
w[H] && w[H].F.canvas && (w[H].F.canvas.Ab = void 0);
|
|
554
|
+
this.Z = this.G = this.Oa = this.Na = this.T = w[H] = null;
|
|
548
555
|
};
|
|
549
556
|
return A;
|
|
550
557
|
}
|
|
551
558
|
function c() {
|
|
552
559
|
if (d) {
|
|
553
|
-
var r = d.
|
|
560
|
+
var r = d.Eb, u = 0, z = 0, A = 0, C = Array(e.size), H = 0;
|
|
554
561
|
for (var J of e) {
|
|
555
|
-
J.
|
|
562
|
+
J.fa = Math.min(J.G.width, r), J.ea = Math.min(J.G.height, r), J.La = J.ea * J.fa, u = Math.max(u, J.fa), z = Math.max(z, J.ea), A += J.La, C[H++] = J;
|
|
556
563
|
}
|
|
557
564
|
e.clear();
|
|
558
565
|
if (!(0 >= A)) {
|
|
@@ -567,7 +574,7 @@ l.onRuntimeInitialized = function() {
|
|
|
567
574
|
for (J = 0; J < C.length;) {
|
|
568
575
|
A.reset(u, z);
|
|
569
576
|
for (H = J; H < C.length; ++H) {
|
|
570
|
-
var K = C[H], I = A.addRect(K.
|
|
577
|
+
var K = C[H], I = A.addRect(K.fa, K.ea);
|
|
571
578
|
if (0 > I) {
|
|
572
579
|
console.assert(H > J);
|
|
573
580
|
break;
|
|
@@ -586,10 +593,10 @@ l.onRuntimeInitialized = function() {
|
|
|
586
593
|
d.clear();
|
|
587
594
|
for (K = J; K < H; ++K) {
|
|
588
595
|
I = C[K];
|
|
589
|
-
d.saveClipRect(I.qa, I.ra, I.qa + I.
|
|
596
|
+
d.saveClipRect(I.qa, I.ra, I.qa + I.fa, I.ra + I.ea);
|
|
590
597
|
let Z = new l.Mat2D();
|
|
591
|
-
Z.xx = I.
|
|
592
|
-
Z.yy = I.
|
|
598
|
+
Z.xx = I.fa / I.G.width;
|
|
599
|
+
Z.yy = I.ea / I.G.height;
|
|
593
600
|
Z.xy = Z.yx = 0;
|
|
594
601
|
Z.tx = I.qa;
|
|
595
602
|
Z.ty = I.ra;
|
|
@@ -601,7 +608,7 @@ l.onRuntimeInitialized = function() {
|
|
|
601
608
|
I.S = [];
|
|
602
609
|
}
|
|
603
610
|
for (d.flush(); J < H; ++J) {
|
|
604
|
-
K = C[J], I = K.
|
|
611
|
+
K = C[J], I = K.Bb, I.globalCompositeOperation = "copy", I.drawImage(d.G, K.qa, K.ra, K.fa, K.ea, 0, 0, K.G.width, K.G.height);
|
|
605
612
|
}
|
|
606
613
|
J = H;
|
|
607
614
|
}
|
|
@@ -621,9 +628,9 @@ l.onRuntimeInitialized = function() {
|
|
|
621
628
|
if (!d) {
|
|
622
629
|
return null;
|
|
623
630
|
}
|
|
624
|
-
d.
|
|
625
|
-
d.
|
|
626
|
-
d.Ma = !d.
|
|
631
|
+
d.Za = !!d.T.getExtension("WEBGL_shader_pixel_local_storage");
|
|
632
|
+
d.Eb = Math.min(d.T.getParameter(d.T.MAX_RENDERBUFFER_SIZE), d.T.getParameter(d.T.MAX_TEXTURE_SIZE));
|
|
633
|
+
d.Ma = !d.Za;
|
|
627
634
|
if (A = d.T.getExtension("WEBGL_debug_renderer_info")) {
|
|
628
635
|
C = d.T.getParameter(A.UNMASKED_RENDERER_WEBGL), d.T.getParameter(A.UNMASKED_VENDOR_WEBGL).includes("Google") && C.includes("ANGLE Metal Renderer") && (d.Ma = !1);
|
|
629
636
|
}
|
|
@@ -645,14 +652,14 @@ l.onRuntimeInitialized = function() {
|
|
|
645
652
|
const k = l.Artboard.prototype.draw;
|
|
646
653
|
l.Artboard.prototype.draw = function(r) {
|
|
647
654
|
r.S ? r.S.push(() => {
|
|
648
|
-
this.Fb || k.call(this, r
|
|
655
|
+
this.Fb || k.call(this, r.$a);
|
|
649
656
|
}) : k.call(this, r);
|
|
650
657
|
};
|
|
651
658
|
const n = new ha(), m = new ha(), t = new fa();
|
|
652
659
|
l.requestAnimationFrame = t.requestAnimationFrame.bind(t);
|
|
653
660
|
l.cancelAnimationFrame = t.cancelAnimationFrame.bind(t);
|
|
654
|
-
l.enableFPSCounter = t.
|
|
655
|
-
t.
|
|
661
|
+
l.enableFPSCounter = t.Mb.bind(t);
|
|
662
|
+
t.nb = c;
|
|
656
663
|
l.resolveAnimationFrame = c;
|
|
657
664
|
let v = l.load;
|
|
658
665
|
l.load = function(r, u, z = !0) {
|
|
@@ -663,10 +670,10 @@ l.onRuntimeInitialized = function() {
|
|
|
663
670
|
};
|
|
664
671
|
const x = l.WebGL2Renderer.prototype.clear;
|
|
665
672
|
l.WebGL2Renderer.prototype.clear = function() {
|
|
666
|
-
|
|
673
|
+
ka(this.Z);
|
|
667
674
|
const r = this.G;
|
|
668
|
-
if (this.
|
|
669
|
-
this.resize(r.width, r.height), this.
|
|
675
|
+
if (this.Oa != r.width || this.Na != r.height) {
|
|
676
|
+
this.resize(r.width, r.height), this.Oa = r.width, this.Na = r.height;
|
|
670
677
|
}
|
|
671
678
|
x.call(this);
|
|
672
679
|
};
|
|
@@ -770,7 +777,7 @@ function Na(a, b) {
|
|
|
770
777
|
return Ma(c, a, b);
|
|
771
778
|
}));
|
|
772
779
|
}
|
|
773
|
-
var Oa, Pa, Ta = {
|
|
780
|
+
var Oa, Pa, Ta = {571519:(a, b, c, d, e) => {
|
|
774
781
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
775
782
|
return 0;
|
|
776
783
|
}
|
|
@@ -779,13 +786,13 @@ var Oa, Pa, Ta = {570840:(a, b, c, d, e) => {
|
|
|
779
786
|
window.h.I = {};
|
|
780
787
|
window.h.I.Da = a;
|
|
781
788
|
window.h.I.capture = b;
|
|
782
|
-
window.h.I.
|
|
783
|
-
window.h.
|
|
784
|
-
window.h.
|
|
785
|
-
window.h.
|
|
789
|
+
window.h.I.Qa = c;
|
|
790
|
+
window.h.ia = {};
|
|
791
|
+
window.h.ia.stopped = d;
|
|
792
|
+
window.h.ia.vb = e;
|
|
786
793
|
let f = window.h;
|
|
787
794
|
f.C = [];
|
|
788
|
-
f.
|
|
795
|
+
f.nc = function(g) {
|
|
789
796
|
for (var k = 0; k < f.C.length; ++k) {
|
|
790
797
|
if (null == f.C[k]) {
|
|
791
798
|
return f.C[k] = g, k;
|
|
@@ -794,7 +801,7 @@ var Oa, Pa, Ta = {570840:(a, b, c, d, e) => {
|
|
|
794
801
|
f.C.push(g);
|
|
795
802
|
return f.C.length - 1;
|
|
796
803
|
};
|
|
797
|
-
f.
|
|
804
|
+
f.zb = function(g) {
|
|
798
805
|
for (f.C[g] = null; 0 < f.C.length;) {
|
|
799
806
|
if (null == f.C[f.C.length - 1]) {
|
|
800
807
|
f.C.pop();
|
|
@@ -803,41 +810,41 @@ var Oa, Pa, Ta = {570840:(a, b, c, d, e) => {
|
|
|
803
810
|
}
|
|
804
811
|
}
|
|
805
812
|
};
|
|
806
|
-
f.
|
|
813
|
+
f.Uc = function(g) {
|
|
807
814
|
for (var k = 0; k < f.C.length; ++k) {
|
|
808
815
|
if (f.C[k] == g) {
|
|
809
|
-
return f.
|
|
816
|
+
return f.zb(k);
|
|
810
817
|
}
|
|
811
818
|
}
|
|
812
819
|
};
|
|
813
820
|
f.ua = function(g) {
|
|
814
821
|
return f.C[g];
|
|
815
822
|
};
|
|
816
|
-
f.
|
|
823
|
+
f.Ya = ["touchend", "click"];
|
|
817
824
|
f.unlock = function() {
|
|
818
825
|
for (var g = 0; g < f.C.length; ++g) {
|
|
819
826
|
var k = f.C[g];
|
|
820
|
-
null != k && null != k.K && k.state === f.
|
|
821
|
-
Qa(k.
|
|
827
|
+
null != k && null != k.K && k.state === f.ia.vb && k.K.resume().then(() => {
|
|
828
|
+
Qa(k.ob);
|
|
822
829
|
}, n => {
|
|
823
830
|
console.error("Failed to resume audiocontext", n);
|
|
824
831
|
});
|
|
825
832
|
}
|
|
826
|
-
f.
|
|
833
|
+
f.Ya.map(function(n) {
|
|
827
834
|
document.removeEventListener(n, f.unlock, !0);
|
|
828
835
|
});
|
|
829
836
|
};
|
|
830
|
-
f.
|
|
837
|
+
f.Ya.map(function(g) {
|
|
831
838
|
document.addEventListener(g, f.unlock, !0);
|
|
832
839
|
});
|
|
833
840
|
}
|
|
834
841
|
window.h.Ga += 1;
|
|
835
842
|
return 1;
|
|
836
|
-
},
|
|
837
|
-
"undefined" !== typeof window.h && (window.h.
|
|
843
|
+
}, 573697:() => {
|
|
844
|
+
"undefined" !== typeof window.h && (window.h.Ya.map(function(a) {
|
|
838
845
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
839
846
|
}), --window.h.Ga, 0 === window.h.Ga && delete window.h);
|
|
840
|
-
},
|
|
847
|
+
}, 574001:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 574105:() => {
|
|
841
848
|
try {
|
|
842
849
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
843
850
|
a.close();
|
|
@@ -845,7 +852,7 @@ var Oa, Pa, Ta = {570840:(a, b, c, d, e) => {
|
|
|
845
852
|
} catch (c) {
|
|
846
853
|
return 0;
|
|
847
854
|
}
|
|
848
|
-
},
|
|
855
|
+
}, 574276:(a, b, c, d, e, f) => {
|
|
849
856
|
if ("undefined" === typeof window.h) {
|
|
850
857
|
return -1;
|
|
851
858
|
}
|
|
@@ -853,7 +860,7 @@ var Oa, Pa, Ta = {570840:(a, b, c, d, e) => {
|
|
|
853
860
|
a == window.h.I.Da && 0 != c && (k.sampleRate = c);
|
|
854
861
|
g.K = new (window.AudioContext || window.webkitAudioContext)(k);
|
|
855
862
|
g.K.suspend();
|
|
856
|
-
g.state = window.h.
|
|
863
|
+
g.state = window.h.ia.stopped;
|
|
857
864
|
c = 0;
|
|
858
865
|
a != window.h.I.Da && (c = b);
|
|
859
866
|
g.Y = g.K.createScriptProcessor(d, c, b);
|
|
@@ -861,7 +868,7 @@ var Oa, Pa, Ta = {570840:(a, b, c, d, e) => {
|
|
|
861
868
|
if (null == g.va || 0 == g.va.length) {
|
|
862
869
|
g.va = new Float32Array(xa.buffer, e, d * b);
|
|
863
870
|
}
|
|
864
|
-
if (a == window.h.I.capture || a == window.h.I.
|
|
871
|
+
if (a == window.h.I.capture || a == window.h.I.Qa) {
|
|
865
872
|
for (var m = 0; m < b; m += 1) {
|
|
866
873
|
for (var t = n.inputBuffer.getChannelData(m), v = g.va, x = 0; x < d; x += 1) {
|
|
867
874
|
v[x * b + m] = t[x];
|
|
@@ -869,7 +876,7 @@ var Oa, Pa, Ta = {570840:(a, b, c, d, e) => {
|
|
|
869
876
|
}
|
|
870
877
|
Ra(f, d, e);
|
|
871
878
|
}
|
|
872
|
-
if (a == window.h.I.Da || a == window.h.I.
|
|
879
|
+
if (a == window.h.I.Da || a == window.h.I.Qa) {
|
|
873
880
|
for (Sa(f, d, e), m = 0; m < n.outputBuffer.numberOfChannels; ++m) {
|
|
874
881
|
for (t = n.outputBuffer.getChannelData(m), v = g.va, x = 0; x < d; x += 1) {
|
|
875
882
|
t[x] = v[x * b + m];
|
|
@@ -881,7 +888,7 @@ var Oa, Pa, Ta = {570840:(a, b, c, d, e) => {
|
|
|
881
888
|
}
|
|
882
889
|
}
|
|
883
890
|
};
|
|
884
|
-
a != window.h.I.capture && a != window.h.I.
|
|
891
|
+
a != window.h.I.capture && a != window.h.I.Qa || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(n) {
|
|
885
892
|
g.Ha = g.K.createMediaStreamSource(n);
|
|
886
893
|
g.Ha.connect(g.Y);
|
|
887
894
|
g.Y.connect(g.K.destination);
|
|
@@ -889,26 +896,26 @@ var Oa, Pa, Ta = {570840:(a, b, c, d, e) => {
|
|
|
889
896
|
console.log("Failed to get user media: " + n);
|
|
890
897
|
});
|
|
891
898
|
a == window.h.I.Da && g.Y.connect(g.K.destination);
|
|
892
|
-
g.
|
|
893
|
-
return window.h.
|
|
894
|
-
},
|
|
899
|
+
g.ob = f;
|
|
900
|
+
return window.h.nc(g);
|
|
901
|
+
}, 577153:a => window.h.ua(a).K.sampleRate, 577226:a => {
|
|
895
902
|
a = window.h.ua(a);
|
|
896
903
|
void 0 !== a.Y && (a.Y.onaudioprocess = function() {
|
|
897
904
|
}, a.Y.disconnect(), a.Y = void 0);
|
|
898
905
|
void 0 !== a.Ha && (a.Ha.disconnect(), a.Ha = void 0);
|
|
899
906
|
a.K.close();
|
|
900
907
|
a.K = void 0;
|
|
901
|
-
a.
|
|
902
|
-
},
|
|
903
|
-
window.h.
|
|
904
|
-
},
|
|
908
|
+
a.ob = void 0;
|
|
909
|
+
}, 577626:a => {
|
|
910
|
+
window.h.zb(a);
|
|
911
|
+
}, 577676:a => {
|
|
905
912
|
a = window.h.ua(a);
|
|
906
913
|
a.K.resume();
|
|
907
|
-
a.state = window.h.
|
|
908
|
-
},
|
|
914
|
+
a.state = window.h.ia.vb;
|
|
915
|
+
}, 577815:a => {
|
|
909
916
|
a = window.h.ua(a);
|
|
910
917
|
a.K.suspend();
|
|
911
|
-
a.state = window.h.
|
|
918
|
+
a.state = window.h.ia.stopped;
|
|
912
919
|
}}, Ua = a => {
|
|
913
920
|
for (; 0 < a.length;) {
|
|
914
921
|
a.shift()(l);
|
|
@@ -1068,12 +1075,12 @@ var lb = {open(a) {
|
|
|
1068
1075
|
}, ta(a) {
|
|
1069
1076
|
a.s.V.ta(a.s);
|
|
1070
1077
|
}, read(a, b, c, d) {
|
|
1071
|
-
if (!a.s || !a.s.V.
|
|
1078
|
+
if (!a.s || !a.s.V.ib) {
|
|
1072
1079
|
throw new M(60);
|
|
1073
1080
|
}
|
|
1074
1081
|
for (var e = 0, f = 0; f < d; f++) {
|
|
1075
1082
|
try {
|
|
1076
|
-
var g = a.s.V.
|
|
1083
|
+
var g = a.s.V.ib(a.s);
|
|
1077
1084
|
} catch (k) {
|
|
1078
1085
|
throw new M(29);
|
|
1079
1086
|
}
|
|
@@ -1089,19 +1096,19 @@ var lb = {open(a) {
|
|
|
1089
1096
|
e && (a.node.timestamp = Date.now());
|
|
1090
1097
|
return e;
|
|
1091
1098
|
}, write(a, b, c, d) {
|
|
1092
|
-
if (!a.s || !a.s.V.
|
|
1099
|
+
if (!a.s || !a.s.V.Ta) {
|
|
1093
1100
|
throw new M(60);
|
|
1094
1101
|
}
|
|
1095
1102
|
try {
|
|
1096
1103
|
for (var e = 0; e < d; e++) {
|
|
1097
|
-
a.s.V.
|
|
1104
|
+
a.s.V.Ta(a.s, b[c + e]);
|
|
1098
1105
|
}
|
|
1099
1106
|
} catch (f) {
|
|
1100
1107
|
throw new M(29);
|
|
1101
1108
|
}
|
|
1102
1109
|
d && (a.node.timestamp = Date.now());
|
|
1103
1110
|
return e;
|
|
1104
|
-
},}, mb = {
|
|
1111
|
+
},}, mb = {ib() {
|
|
1105
1112
|
a: {
|
|
1106
1113
|
if (!eb.length) {
|
|
1107
1114
|
var a = null;
|
|
@@ -1115,17 +1122,17 @@ var lb = {open(a) {
|
|
|
1115
1122
|
a = eb.shift();
|
|
1116
1123
|
}
|
|
1117
1124
|
return a;
|
|
1118
|
-
},
|
|
1125
|
+
}, Ta(a, b) {
|
|
1119
1126
|
null === b || 10 === b ? (ra(L(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
|
|
1120
1127
|
}, ta(a) {
|
|
1121
1128
|
a.H && 0 < a.H.length && (ra(L(a.H, 0)), a.H = []);
|
|
1122
|
-
}, Wb() {
|
|
1123
|
-
return {xc:25856, zc:5, wc:191, yc:35387, vc:[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,]};
|
|
1124
1129
|
}, Xb() {
|
|
1125
|
-
return 0;
|
|
1130
|
+
return {yc:25856, Ac:5, xc:191, zc:35387, wc:[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,]};
|
|
1126
1131
|
}, Yb() {
|
|
1132
|
+
return 0;
|
|
1133
|
+
}, Zb() {
|
|
1127
1134
|
return [24, 80];
|
|
1128
|
-
},}, nb = {
|
|
1135
|
+
},}, nb = {Ta(a, b) {
|
|
1129
1136
|
null === b || 10 === b ? (sa(L(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
|
|
1130
1137
|
}, ta(a) {
|
|
1131
1138
|
a.H && 0 < a.H.length && (sa(L(a.H, 0)), a.H = []);
|
|
@@ -1140,29 +1147,29 @@ var N = {N:null, U() {
|
|
|
1140
1147
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
1141
1148
|
throw new M(63);
|
|
1142
1149
|
}
|
|
1143
|
-
N.N || (N.N = {dir:{node:{X:N.j.X, P:N.j.P, la:N.j.la, Ba:N.j.Ba,
|
|
1150
|
+
N.N || (N.N = {dir:{node:{X:N.j.X, P:N.j.P, la:N.j.la, Ba:N.j.Ba, tb:N.j.tb, yb:N.j.yb, ub:N.j.ub, sb:N.j.sb, Ia:N.j.Ia}, stream:{ba:N.m.ba}}, file:{node:{X:N.j.X, P:N.j.P}, stream:{ba:N.m.ba, read:N.m.read, write:N.m.write, ab:N.m.ab, kb:N.m.kb, mb:N.m.mb}}, link:{node:{X:N.j.X, P:N.j.P, ma:N.j.ma}, stream:{}}, bb:{node:{X:N.j.X, P:N.j.P}, stream:qb}});
|
|
1144
1151
|
c = rb(a, b, c, d);
|
|
1145
|
-
16384 === (c.mode & 61440) ? (c.j = N.N.dir.node, c.m = N.N.dir.stream, c.l = {}) : 32768 === (c.mode & 61440) ? (c.j = N.N.file.node, c.m = N.N.file.stream, c.v = 0, c.l = null) : 40960 === (c.mode & 61440) ? (c.j = N.N.link.node, c.m = N.N.link.stream) : 8192 === (c.mode & 61440) && (c.j = N.N.
|
|
1152
|
+
16384 === (c.mode & 61440) ? (c.j = N.N.dir.node, c.m = N.N.dir.stream, c.l = {}) : 32768 === (c.mode & 61440) ? (c.j = N.N.file.node, c.m = N.N.file.stream, c.v = 0, c.l = null) : 40960 === (c.mode & 61440) ? (c.j = N.N.link.node, c.m = N.N.link.stream) : 8192 === (c.mode & 61440) && (c.j = N.N.bb.node, c.m = N.N.bb.stream);
|
|
1146
1153
|
c.timestamp = Date.now();
|
|
1147
1154
|
a && (a.l[b] = c, a.timestamp = c.timestamp);
|
|
1148
1155
|
return c;
|
|
1149
|
-
},
|
|
1156
|
+
}, Gc(a) {
|
|
1150
1157
|
return a.l ? a.l.subarray ? a.l.subarray(0, a.v) : new Uint8Array(a.l) : new Uint8Array(0);
|
|
1151
1158
|
}, j:{X(a) {
|
|
1152
1159
|
var b = {};
|
|
1153
|
-
b.
|
|
1154
|
-
b.
|
|
1160
|
+
b.Dc = 8192 === (a.mode & 61440) ? a.id : 1;
|
|
1161
|
+
b.Ic = a.id;
|
|
1155
1162
|
b.mode = a.mode;
|
|
1156
|
-
b.
|
|
1163
|
+
b.Oc = 1;
|
|
1157
1164
|
b.uid = 0;
|
|
1158
|
-
b.
|
|
1165
|
+
b.Hc = 0;
|
|
1159
1166
|
b.Fa = a.Fa;
|
|
1160
1167
|
16384 === (a.mode & 61440) ? b.size = 4096 : 32768 === (a.mode & 61440) ? b.size = a.v : 40960 === (a.mode & 61440) ? b.size = a.link.length : b.size = 0;
|
|
1161
|
-
b.
|
|
1162
|
-
b.
|
|
1163
|
-
b.
|
|
1164
|
-
b.
|
|
1165
|
-
b.
|
|
1168
|
+
b.uc = new Date(a.timestamp);
|
|
1169
|
+
b.Nc = new Date(a.timestamp);
|
|
1170
|
+
b.Bc = new Date(a.timestamp);
|
|
1171
|
+
b.Hb = 4096;
|
|
1172
|
+
b.vc = Math.ceil(b.size / b.Hb);
|
|
1166
1173
|
return b;
|
|
1167
1174
|
}, P(a, b) {
|
|
1168
1175
|
void 0 !== b.mode && (a.mode = b.mode);
|
|
@@ -1181,7 +1188,7 @@ var N = {N:null, U() {
|
|
|
1181
1188
|
throw sb[44];
|
|
1182
1189
|
}, Ba(a, b, c, d) {
|
|
1183
1190
|
return N.createNode(a, b, c, d);
|
|
1184
|
-
},
|
|
1191
|
+
}, tb(a, b, c) {
|
|
1185
1192
|
if (16384 === (a.mode & 61440)) {
|
|
1186
1193
|
try {
|
|
1187
1194
|
var d = tb(b, c);
|
|
@@ -1198,17 +1205,17 @@ var N = {N:null, U() {
|
|
|
1198
1205
|
a.name = c;
|
|
1199
1206
|
b.l[c] = a;
|
|
1200
1207
|
b.timestamp = a.parent.timestamp;
|
|
1201
|
-
},
|
|
1208
|
+
}, yb(a, b) {
|
|
1202
1209
|
delete a.l[b];
|
|
1203
1210
|
a.timestamp = Date.now();
|
|
1204
|
-
},
|
|
1211
|
+
}, ub(a, b) {
|
|
1205
1212
|
var c = tb(a, b), d;
|
|
1206
1213
|
for (d in c.l) {
|
|
1207
1214
|
throw new M(55);
|
|
1208
1215
|
}
|
|
1209
1216
|
delete a.l[b];
|
|
1210
1217
|
a.timestamp = Date.now();
|
|
1211
|
-
},
|
|
1218
|
+
}, sb(a) {
|
|
1212
1219
|
var b = [".", ".."], c;
|
|
1213
1220
|
for (c of Object.keys(a.l)) {
|
|
1214
1221
|
b.push(c);
|
|
@@ -1265,16 +1272,16 @@ var N = {N:null, U() {
|
|
|
1265
1272
|
}
|
|
1266
1273
|
a.v = Math.max(a.v, e + d);
|
|
1267
1274
|
return d;
|
|
1268
|
-
},
|
|
1275
|
+
}, ba(a, b, c) {
|
|
1269
1276
|
1 === c ? b += a.position : 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.v);
|
|
1270
1277
|
if (0 > b) {
|
|
1271
1278
|
throw new M(28);
|
|
1272
1279
|
}
|
|
1273
1280
|
return b;
|
|
1274
|
-
},
|
|
1281
|
+
}, ab(a, b, c) {
|
|
1275
1282
|
pb(a.node, b + c);
|
|
1276
1283
|
a.node.v = Math.max(a.node.v, b + c);
|
|
1277
|
-
},
|
|
1284
|
+
}, kb(a, b, c, d, e) {
|
|
1278
1285
|
if (32768 !== (a.node.mode & 61440)) {
|
|
1279
1286
|
throw new M(43);
|
|
1280
1287
|
}
|
|
@@ -1293,8 +1300,8 @@ var N = {N:null, U() {
|
|
|
1293
1300
|
} else {
|
|
1294
1301
|
c = !1, b = a.byteOffset;
|
|
1295
1302
|
}
|
|
1296
|
-
return {o:b,
|
|
1297
|
-
},
|
|
1303
|
+
return {o:b, tc:c};
|
|
1304
|
+
}, mb(a, b, c, d) {
|
|
1298
1305
|
N.m.write(a, b, 0, d, c, !1);
|
|
1299
1306
|
return 0;
|
|
1300
1307
|
},},}, ub = (a, b) => {
|
|
@@ -1305,7 +1312,7 @@ var N = {N:null, U() {
|
|
|
1305
1312
|
}, vb = null, wb = {}, xb = [], yb = 1, zb = null, Ab = !0, M = class {
|
|
1306
1313
|
constructor(a) {
|
|
1307
1314
|
this.name = "ErrnoError";
|
|
1308
|
-
this
|
|
1315
|
+
this.aa = a;
|
|
1309
1316
|
}
|
|
1310
1317
|
}, sb = {}, Bb = class {
|
|
1311
1318
|
constructor() {
|
|
@@ -1355,8 +1362,8 @@ function Db(a, b = {}) {
|
|
|
1355
1362
|
if (!a) {
|
|
1356
1363
|
return {path:"", node:null};
|
|
1357
1364
|
}
|
|
1358
|
-
b = Object.assign({
|
|
1359
|
-
if (8 < b.
|
|
1365
|
+
b = Object.assign({hb:!0, Va:0}, b);
|
|
1366
|
+
if (8 < b.Va) {
|
|
1360
1367
|
throw new M(32);
|
|
1361
1368
|
}
|
|
1362
1369
|
a = a.split("/").filter(g => !!g);
|
|
@@ -1367,10 +1374,10 @@ function Db(a, b = {}) {
|
|
|
1367
1374
|
}
|
|
1368
1375
|
c = tb(c, a[e]);
|
|
1369
1376
|
d = Ya(d + "/" + a[e]);
|
|
1370
|
-
c.Ca && (!f || f && b.
|
|
1371
|
-
if (!f || b.
|
|
1377
|
+
c.Ca && (!f || f && b.hb) && (c = c.Ca.root);
|
|
1378
|
+
if (!f || b.gb) {
|
|
1372
1379
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
1373
|
-
if (c = Eb(d), d = cb(Za(d), c), c = Db(d, {
|
|
1380
|
+
if (c = Eb(d), d = cb(Za(d), c), c = Db(d, {Va:b.Va + 1}).node, 40 < f++) {
|
|
1374
1381
|
throw new M(32);
|
|
1375
1382
|
}
|
|
1376
1383
|
}
|
|
@@ -1381,7 +1388,7 @@ function Db(a, b = {}) {
|
|
|
1381
1388
|
function Fb(a) {
|
|
1382
1389
|
for (var b;;) {
|
|
1383
1390
|
if (a === a.parent) {
|
|
1384
|
-
return a = a.U.
|
|
1391
|
+
return a = a.U.lb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
|
|
1385
1392
|
}
|
|
1386
1393
|
b = b ? `${a.name}/${b}` : a.name;
|
|
1387
1394
|
a = a.parent;
|
|
@@ -1398,7 +1405,7 @@ function tb(a, b) {
|
|
|
1398
1405
|
if (c) {
|
|
1399
1406
|
throw new M(c);
|
|
1400
1407
|
}
|
|
1401
|
-
for (c = zb[Gb(a.id, b)]; c; c = c.
|
|
1408
|
+
for (c = zb[Gb(a.id, b)]; c; c = c.bc) {
|
|
1402
1409
|
var d = c.name;
|
|
1403
1410
|
if (c.parent.id === a.id && d === b) {
|
|
1404
1411
|
return c;
|
|
@@ -1409,7 +1416,7 @@ function tb(a, b) {
|
|
|
1409
1416
|
function rb(a, b, c, d) {
|
|
1410
1417
|
a = new Cb(a, b, c, d);
|
|
1411
1418
|
b = Gb(a.parent.id, a.name);
|
|
1412
|
-
a.
|
|
1419
|
+
a.bc = zb[b];
|
|
1413
1420
|
return zb[b] = a;
|
|
1414
1421
|
}
|
|
1415
1422
|
function Ib(a) {
|
|
@@ -1461,13 +1468,13 @@ function Lb(a, b = -1) {
|
|
|
1461
1468
|
}
|
|
1462
1469
|
function Mb(a, b = -1) {
|
|
1463
1470
|
a = Lb(a, b);
|
|
1464
|
-
a.m?.
|
|
1471
|
+
a.m?.Fc?.(a);
|
|
1465
1472
|
return a;
|
|
1466
1473
|
}
|
|
1467
1474
|
var qb = {open(a) {
|
|
1468
1475
|
a.m = wb[a.node.Fa].m;
|
|
1469
1476
|
a.m.open?.(a);
|
|
1470
|
-
},
|
|
1477
|
+
}, ba() {
|
|
1471
1478
|
throw new M(70);
|
|
1472
1479
|
},};
|
|
1473
1480
|
function kb(a, b) {
|
|
@@ -1479,7 +1486,7 @@ function Nb(a, b) {
|
|
|
1479
1486
|
throw new M(10);
|
|
1480
1487
|
}
|
|
1481
1488
|
if (!c && b) {
|
|
1482
|
-
var d = Db(b, {
|
|
1489
|
+
var d = Db(b, {hb:!1});
|
|
1483
1490
|
b = d.path;
|
|
1484
1491
|
d = d.node;
|
|
1485
1492
|
if (d.Ca) {
|
|
@@ -1489,11 +1496,11 @@ function Nb(a, b) {
|
|
|
1489
1496
|
throw new M(54);
|
|
1490
1497
|
}
|
|
1491
1498
|
}
|
|
1492
|
-
b = {type:a,
|
|
1499
|
+
b = {type:a, Qc:{}, lb:b, $b:[]};
|
|
1493
1500
|
a = a.U(b);
|
|
1494
1501
|
a.U = b;
|
|
1495
1502
|
b.root = a;
|
|
1496
|
-
c ? vb = a : d && (d.Ca = b, d.U && d.U.
|
|
1503
|
+
c ? vb = a : d && (d.Ca = b, d.U && d.U.$b.push(b));
|
|
1497
1504
|
}
|
|
1498
1505
|
function Ob(a, b, c) {
|
|
1499
1506
|
var d = Db(a, {parent:!0}).node;
|
|
@@ -1562,7 +1569,7 @@ function Sb(a, b, c) {
|
|
|
1562
1569
|
} else {
|
|
1563
1570
|
a = Ya(a);
|
|
1564
1571
|
try {
|
|
1565
|
-
e = Db(a, {
|
|
1572
|
+
e = Db(a, {gb:!(b & 131072)}).node;
|
|
1566
1573
|
} catch (f) {
|
|
1567
1574
|
}
|
|
1568
1575
|
}
|
|
@@ -1588,7 +1595,7 @@ function Sb(a, b, c) {
|
|
|
1588
1595
|
}
|
|
1589
1596
|
if (b & 512 && !d) {
|
|
1590
1597
|
c = e;
|
|
1591
|
-
c = "string" == typeof c ? Db(c, {
|
|
1598
|
+
c = "string" == typeof c ? Db(c, {gb:!0}).node : c;
|
|
1592
1599
|
if (!c.j.P) {
|
|
1593
1600
|
throw new M(63);
|
|
1594
1601
|
}
|
|
@@ -1604,7 +1611,7 @@ function Sb(a, b, c) {
|
|
|
1604
1611
|
c.j.P(c, {size:0, timestamp:Date.now()});
|
|
1605
1612
|
}
|
|
1606
1613
|
b &= -131713;
|
|
1607
|
-
e = Lb({node:e, path:Fb(e), flags:b, seekable:!0, position:0, m:e.m,
|
|
1614
|
+
e = Lb({node:e, path:Fb(e), flags:b, seekable:!0, position:0, m:e.m, oc:[], error:!1});
|
|
1608
1615
|
e.m.open && e.m.open(e);
|
|
1609
1616
|
!l.logReadFiles || b & 1 || (Tb ||= {}, a in Tb || (Tb[a] = 1));
|
|
1610
1617
|
return e;
|
|
@@ -1613,14 +1620,14 @@ function Ub(a, b, c) {
|
|
|
1613
1620
|
if (null === a.W) {
|
|
1614
1621
|
throw new M(8);
|
|
1615
1622
|
}
|
|
1616
|
-
if (!a.seekable || !a.m.
|
|
1623
|
+
if (!a.seekable || !a.m.ba) {
|
|
1617
1624
|
throw new M(70);
|
|
1618
1625
|
}
|
|
1619
1626
|
if (0 != c && 1 != c && 2 != c) {
|
|
1620
1627
|
throw new M(28);
|
|
1621
1628
|
}
|
|
1622
|
-
a.position = a.m.
|
|
1623
|
-
a.
|
|
1629
|
+
a.position = a.m.ba(a, b, c);
|
|
1630
|
+
a.oc = [];
|
|
1624
1631
|
}
|
|
1625
1632
|
var Vb;
|
|
1626
1633
|
function Wb(a, b, c) {
|
|
@@ -1705,7 +1712,7 @@ var Xb, Yb = {}, Tb, Wa = void 0, Zb = (a, b) => Object.defineProperty(b, "name"
|
|
|
1705
1712
|
}, ec = [], fc = () => {
|
|
1706
1713
|
for (; ec.length;) {
|
|
1707
1714
|
var a = ec.pop();
|
|
1708
|
-
a.g.
|
|
1715
|
+
a.g.ha = !1;
|
|
1709
1716
|
a["delete"]();
|
|
1710
1717
|
}
|
|
1711
1718
|
}, gc, hc = {}, ic = (a, b) => {
|
|
@@ -1736,7 +1743,7 @@ var Xb, Yb = {}, Tb, Wa = void 0, Zb = (a, b) => Object.defineProperty(b, "name"
|
|
|
1736
1743
|
return null;
|
|
1737
1744
|
}
|
|
1738
1745
|
a = qc(a, b, c.B);
|
|
1739
|
-
return null === a ? null : c.
|
|
1746
|
+
return null === a ? null : c.Kb(a);
|
|
1740
1747
|
}, rc = {}, sc = (a, b) => {
|
|
1741
1748
|
b = ic(a, b);
|
|
1742
1749
|
return hc[b];
|
|
@@ -1805,7 +1812,7 @@ function Bc(a, b, c = {}) {
|
|
|
1805
1812
|
throw new P(`type "${d}" must have a positive integer typeid pointer`);
|
|
1806
1813
|
}
|
|
1807
1814
|
if (jc.hasOwnProperty(a)) {
|
|
1808
|
-
if (c.
|
|
1815
|
+
if (c.Ub) {
|
|
1809
1816
|
return;
|
|
1810
1817
|
}
|
|
1811
1818
|
throw new P(`Cannot register type '${d}' twice`);
|
|
@@ -1835,7 +1842,7 @@ var Ec = (a, b, c) => {
|
|
|
1835
1842
|
return a[b].A[e.length].apply(this, e);
|
|
1836
1843
|
};
|
|
1837
1844
|
a[b].A = [];
|
|
1838
|
-
a[b].A[d.
|
|
1845
|
+
a[b].A[d.ga] = d;
|
|
1839
1846
|
}
|
|
1840
1847
|
}, Fc = (a, b, c) => {
|
|
1841
1848
|
if (l.hasOwnProperty(a)) {
|
|
@@ -1848,7 +1855,7 @@ var Ec = (a, b, c) => {
|
|
|
1848
1855
|
}
|
|
1849
1856
|
l[a].A[c] = b;
|
|
1850
1857
|
} else {
|
|
1851
|
-
l[a] = b, void 0 !== c && (l[a].
|
|
1858
|
+
l[a] = b, void 0 !== c && (l[a].Pc = c);
|
|
1852
1859
|
}
|
|
1853
1860
|
}, Gc = a => {
|
|
1854
1861
|
if (void 0 === a) {
|
|
@@ -1864,10 +1871,10 @@ function Hc(a, b, c, d, e, f, g, k) {
|
|
|
1864
1871
|
this.M = c;
|
|
1865
1872
|
this.O = d;
|
|
1866
1873
|
this.B = e;
|
|
1867
|
-
this.
|
|
1874
|
+
this.Pb = f;
|
|
1868
1875
|
this.oa = g;
|
|
1869
|
-
this.
|
|
1870
|
-
this.
|
|
1876
|
+
this.Kb = k;
|
|
1877
|
+
this.pb = [];
|
|
1871
1878
|
}
|
|
1872
1879
|
var Ic = (a, b, c) => {
|
|
1873
1880
|
for (; b !== c;) {
|
|
@@ -1881,7 +1888,7 @@ var Ic = (a, b, c) => {
|
|
|
1881
1888
|
};
|
|
1882
1889
|
function Jc(a, b) {
|
|
1883
1890
|
if (null === b) {
|
|
1884
|
-
if (this.
|
|
1891
|
+
if (this.Sa) {
|
|
1885
1892
|
throw new P(`null is not a valid ${this.name}`);
|
|
1886
1893
|
}
|
|
1887
1894
|
return 0;
|
|
@@ -1896,11 +1903,11 @@ function Jc(a, b) {
|
|
|
1896
1903
|
}
|
|
1897
1904
|
function Lc(a, b) {
|
|
1898
1905
|
if (null === b) {
|
|
1899
|
-
if (this.
|
|
1906
|
+
if (this.Sa) {
|
|
1900
1907
|
throw new P(`null is not a valid ${this.name}`);
|
|
1901
1908
|
}
|
|
1902
1909
|
if (this.xa) {
|
|
1903
|
-
var c = this.
|
|
1910
|
+
var c = this.Ua();
|
|
1904
1911
|
null !== a && a.push(this.O, c);
|
|
1905
1912
|
return c;
|
|
1906
1913
|
}
|
|
@@ -1920,7 +1927,7 @@ function Lc(a, b) {
|
|
|
1920
1927
|
if (void 0 === b.g.D) {
|
|
1921
1928
|
throw new P("Passing raw pointer to smart pointer is illegal");
|
|
1922
1929
|
}
|
|
1923
|
-
switch(this.
|
|
1930
|
+
switch(this.ic) {
|
|
1924
1931
|
case 0:
|
|
1925
1932
|
if (b.g.J === this) {
|
|
1926
1933
|
c = b.g.D;
|
|
@@ -1936,7 +1943,7 @@ function Lc(a, b) {
|
|
|
1936
1943
|
c = b.g.D;
|
|
1937
1944
|
} else {
|
|
1938
1945
|
var d = b.clone();
|
|
1939
|
-
c = this.
|
|
1946
|
+
c = this.dc(c, ac(() => d["delete"]()));
|
|
1940
1947
|
null !== a && a.push(this.O, c);
|
|
1941
1948
|
}
|
|
1942
1949
|
break;
|
|
@@ -1948,7 +1955,7 @@ function Lc(a, b) {
|
|
|
1948
1955
|
}
|
|
1949
1956
|
function Mc(a, b) {
|
|
1950
1957
|
if (null === b) {
|
|
1951
|
-
if (this.
|
|
1958
|
+
if (this.Sa) {
|
|
1952
1959
|
throw new P(`null is not a valid ${this.name}`);
|
|
1953
1960
|
}
|
|
1954
1961
|
return 0;
|
|
@@ -1967,14 +1974,14 @@ function Mc(a, b) {
|
|
|
1967
1974
|
function Nc(a, b, c, d, e, f, g, k, n, m, t) {
|
|
1968
1975
|
this.name = a;
|
|
1969
1976
|
this.i = b;
|
|
1970
|
-
this.
|
|
1977
|
+
this.Sa = c;
|
|
1971
1978
|
this.wa = d;
|
|
1972
1979
|
this.xa = e;
|
|
1973
|
-
this.
|
|
1974
|
-
this.
|
|
1975
|
-
this.
|
|
1976
|
-
this.
|
|
1977
|
-
this.
|
|
1980
|
+
this.cc = f;
|
|
1981
|
+
this.ic = g;
|
|
1982
|
+
this.rb = k;
|
|
1983
|
+
this.Ua = n;
|
|
1984
|
+
this.dc = m;
|
|
1978
1985
|
this.O = t;
|
|
1979
1986
|
e || void 0 !== b.B ? this.toWireType = Lc : (this.toWireType = d ? Jc : Mc, this.L = null);
|
|
1980
1987
|
}
|
|
@@ -1982,7 +1989,7 @@ var Oc = (a, b, c) => {
|
|
|
1982
1989
|
if (!l.hasOwnProperty(a)) {
|
|
1983
1990
|
throw new tc("Replacing nonexistent public symbol");
|
|
1984
1991
|
}
|
|
1985
|
-
void 0 !== l[a].A && void 0 !== c ? l[a].A[c] = b : (l[a] = b, l[a].
|
|
1992
|
+
void 0 !== l[a].A && void 0 !== c ? l[a].A[c] = b : (l[a] = b, l[a].ga = c);
|
|
1986
1993
|
}, Pc = [], Qc, Rc = a => {
|
|
1987
1994
|
var b = Pc[a];
|
|
1988
1995
|
b || (a >= Pc.length && (Pc.length = a + 1), Pc[a] = b = Qc.get(a));
|
|
@@ -2212,9 +2219,9 @@ var Yc = (a, b) => {
|
|
|
2212
2219
|
}
|
|
2213
2220
|
return c;
|
|
2214
2221
|
}, td = Reflect.construct, ud = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), vd = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335], wd = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], xd = [], yd = a => {
|
|
2215
|
-
a.
|
|
2222
|
+
a.Ec = a.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
|
|
2216
2223
|
}, zd = a => {
|
|
2217
|
-
a.
|
|
2224
|
+
a.Mc = a.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
|
|
2218
2225
|
}, Ad = a => {
|
|
2219
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(" ");
|
|
2220
2227
|
return (a.getSupportedExtensions() || []).filter(c => b.includes(c));
|
|
@@ -2229,28 +2236,28 @@ var Yc = (a, b) => {
|
|
|
2229
2236
|
f ? (f.name = g, d[g] = f) : X ||= 1282;
|
|
2230
2237
|
F[b + 4 * e >> 2] = g;
|
|
2231
2238
|
}
|
|
2232
|
-
},
|
|
2233
|
-
var c = Ld(w), d = {handle:c, attributes:b, version:b.
|
|
2234
|
-
a.canvas && (a.canvas.
|
|
2239
|
+
}, la = (a, b) => {
|
|
2240
|
+
var c = Ld(w), d = {handle:c, attributes:b, version:b.Lc, F:a};
|
|
2241
|
+
a.canvas && (a.canvas.Ab = d);
|
|
2235
2242
|
w[c] = d;
|
|
2236
|
-
("undefined" == typeof b.
|
|
2243
|
+
("undefined" == typeof b.Lb || b.Lb) && Nd(d);
|
|
2237
2244
|
return c;
|
|
2238
|
-
},
|
|
2245
|
+
}, ka = a => {
|
|
2239
2246
|
q = w[a];
|
|
2240
|
-
l.
|
|
2247
|
+
l.Cc = W = q?.F;
|
|
2241
2248
|
return !(a && !W);
|
|
2242
2249
|
}, Nd = a => {
|
|
2243
2250
|
a ||= q;
|
|
2244
|
-
if (!a.
|
|
2245
|
-
a.
|
|
2251
|
+
if (!a.Vb) {
|
|
2252
|
+
a.Vb = !0;
|
|
2246
2253
|
var b = a.F;
|
|
2247
2254
|
yd(b);
|
|
2248
2255
|
zd(b);
|
|
2249
|
-
2 <= a.version && (b.
|
|
2250
|
-
if (2 > a.version || !b.
|
|
2251
|
-
b.
|
|
2256
|
+
2 <= a.version && (b.eb = b.getExtension("EXT_disjoint_timer_query_webgl2"));
|
|
2257
|
+
if (2 > a.version || !b.eb) {
|
|
2258
|
+
b.eb = b.getExtension("EXT_disjoint_timer_query");
|
|
2252
2259
|
}
|
|
2253
|
-
b
|
|
2260
|
+
b.ac = b.getExtension("WEBGL_multi_draw");
|
|
2254
2261
|
Ad(b).forEach(c => {
|
|
2255
2262
|
c.includes("lose_context") || c.includes("debug") || b.getExtension(c);
|
|
2256
2263
|
});
|
|
@@ -2414,8 +2421,8 @@ var Td = (a, b) => {
|
|
|
2414
2421
|
}
|
|
2415
2422
|
}
|
|
2416
2423
|
function n(p) {
|
|
2417
|
-
var r = p.
|
|
2418
|
-
for (p = new Date((new Date(p.
|
|
2424
|
+
var r = p.ca;
|
|
2425
|
+
for (p = new Date((new Date(p.da + 1900, 0, 1)).getTime()); 0 < r;) {
|
|
2419
2426
|
var u = p.getMonth(), z = (ud(p.getFullYear()) ? Yd : Zd)[u];
|
|
2420
2427
|
if (r > z - p.getDate()) {
|
|
2421
2428
|
r -= z - p.getDate() + 1, p.setDate(1), 11 > u ? p.setMonth(u + 1) : (p.setMonth(0), p.setFullYear(p.getFullYear() + 1));
|
|
@@ -2430,38 +2437,38 @@ var Td = (a, b) => {
|
|
|
2430
2437
|
return 0 >= g(r, p) ? 0 >= g(u, p) ? p.getFullYear() + 1 : p.getFullYear() : p.getFullYear() - 1;
|
|
2431
2438
|
}
|
|
2432
2439
|
var m = G[d + 40 >> 2];
|
|
2433
|
-
d = {
|
|
2440
|
+
d = {lc:F[d >> 2], kc:F[d + 4 >> 2], Ja:F[d + 8 >> 2], Wa:F[d + 12 >> 2], Ka:F[d + 16 >> 2], da:F[d + 20 >> 2], R:F[d + 24 >> 2], ca:F[d + 28 >> 2], Tc:F[d + 32 >> 2], jc:F[d + 36 >> 2], mc:m ? m ? L(D, m) : "" : ""};
|
|
2434
2441
|
c = c ? L(D, c) : "";
|
|
2435
2442
|
m = {"%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",};
|
|
2436
2443
|
for (var t in m) {
|
|
2437
2444
|
c = c.replace(new RegExp(t, "g"), m[t]);
|
|
2438
2445
|
}
|
|
2439
2446
|
var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), x = "January February March April May June July August September October November December".split(" ");
|
|
2440
|
-
m = {"%a":p => v[p.R].substring(0, 3), "%A":p => v[p.R], "%b":p => x[p.Ka].substring(0, 3), "%B":p => x[p.Ka], "%C":p => f((p.
|
|
2447
|
+
m = {"%a":p => v[p.R].substring(0, 3), "%A":p => v[p.R], "%b":p => x[p.Ka].substring(0, 3), "%B":p => x[p.Ka], "%C":p => f((p.da + 1900) / 100 | 0, 2), "%d":p => f(p.Wa, 2), "%e":p => e(p.Wa, 2, " "), "%g":p => n(p).toString().substring(2), "%G":n, "%H":p => f(p.Ja, 2), "%I":p => {
|
|
2441
2448
|
p = p.Ja;
|
|
2442
2449
|
0 == p ? p = 12 : 12 < p && (p -= 12);
|
|
2443
2450
|
return f(p, 2);
|
|
2444
2451
|
}, "%j":p => {
|
|
2445
|
-
for (var r = 0, u = 0; u <= p.Ka - 1; r += (ud(p.
|
|
2452
|
+
for (var r = 0, u = 0; u <= p.Ka - 1; r += (ud(p.da + 1900) ? Yd : Zd)[u++]) {
|
|
2446
2453
|
}
|
|
2447
|
-
return f(p.
|
|
2448
|
-
}, "%m":p => f(p.Ka + 1, 2), "%M":p => f(p.
|
|
2449
|
-
var r = Math.floor((p.
|
|
2450
|
-
2 >= (p.R + 371 - p.
|
|
2454
|
+
return f(p.Wa + r, 3);
|
|
2455
|
+
}, "%m":p => f(p.Ka + 1, 2), "%M":p => f(p.kc, 2), "%n":() => "\n", "%p":p => 0 <= p.Ja && 12 > p.Ja ? "AM" : "PM", "%S":p => f(p.lc, 2), "%t":() => "\t", "%u":p => p.R || 7, "%U":p => f(Math.floor((p.ca + 7 - p.R) / 7), 2), "%V":p => {
|
|
2456
|
+
var r = Math.floor((p.ca + 7 - (p.R + 6) % 7) / 7);
|
|
2457
|
+
2 >= (p.R + 371 - p.ca - 2) % 7 && r++;
|
|
2451
2458
|
if (r) {
|
|
2452
|
-
53 == r && (u = (p.R + 371 - p.
|
|
2459
|
+
53 == r && (u = (p.R + 371 - p.ca) % 7, 4 == u || 3 == u && ud(p.da) || (r = 1));
|
|
2453
2460
|
} else {
|
|
2454
2461
|
r = 52;
|
|
2455
|
-
var u = (p.R + 7 - p.
|
|
2456
|
-
(4 == u || 5 == u && ud(p.
|
|
2462
|
+
var u = (p.R + 7 - p.ca - 1) % 7;
|
|
2463
|
+
(4 == u || 5 == u && ud(p.da % 400 - 1)) && r++;
|
|
2457
2464
|
}
|
|
2458
2465
|
return f(r, 2);
|
|
2459
|
-
}, "%w":p => p.R, "%W":p => f(Math.floor((p.
|
|
2460
|
-
p = p.
|
|
2466
|
+
}, "%w":p => p.R, "%W":p => f(Math.floor((p.ca + 7 - (p.R + 6) % 7) / 7), 2), "%y":p => (p.da + 1900).toString().substring(2), "%Y":p => p.da + 1900, "%z":p => {
|
|
2467
|
+
p = p.jc;
|
|
2461
2468
|
var r = 0 <= p;
|
|
2462
2469
|
p = Math.abs(p) / 60;
|
|
2463
2470
|
return (r ? "+" : "-") + String("0000" + (p / 60 * 100 + p % 60)).slice(-4);
|
|
2464
|
-
}, "%Z":p => p.
|
|
2471
|
+
}, "%Z":p => p.mc, "%%":() => "%"};
|
|
2465
2472
|
c = c.replace(/%%/g, "\x00\x00");
|
|
2466
2473
|
for (t in m) {
|
|
2467
2474
|
c.includes(t) && (c = c.replace(new RegExp(t, "g"), m[t](d)));
|
|
@@ -2508,7 +2515,7 @@ Pb("/home/web_user");
|
|
|
2508
2515
|
var b = rb(a, "fd", 16895, 73);
|
|
2509
2516
|
b.j = {la(c, d) {
|
|
2510
2517
|
var e = Kb(+d);
|
|
2511
|
-
c = {parent:null, U:{
|
|
2518
|
+
c = {parent:null, U:{lb:"fake"}, j:{ma:() => e.path},};
|
|
2512
2519
|
return c.parent = c;
|
|
2513
2520
|
}};
|
|
2514
2521
|
return b;
|
|
@@ -2562,48 +2569,48 @@ Object.assign(Dc.prototype, {isAliasOf:function(a) {
|
|
|
2562
2569
|
return b === d && c === a;
|
|
2563
2570
|
}, clone:function() {
|
|
2564
2571
|
this.g.o || Cc(this);
|
|
2565
|
-
if (this.g.
|
|
2572
|
+
if (this.g.ja) {
|
|
2566
2573
|
return this.g.count.value += 1, this;
|
|
2567
2574
|
}
|
|
2568
2575
|
var a = uc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
|
|
2569
|
-
a = a(c.call(b, d, {g:{value:{count:e.count,
|
|
2576
|
+
a = a(c.call(b, d, {g:{value:{count:e.count, ha:e.ha, ja:e.ja, o:e.o, u:e.u, D:e.D, J:e.J,},}}));
|
|
2570
2577
|
a.g.count.value += 1;
|
|
2571
|
-
a.g.
|
|
2578
|
+
a.g.ha = !1;
|
|
2572
2579
|
return a;
|
|
2573
2580
|
}, ["delete"]() {
|
|
2574
2581
|
this.g.o || Cc(this);
|
|
2575
|
-
if (this.g.
|
|
2582
|
+
if (this.g.ha && !this.g.ja) {
|
|
2576
2583
|
throw new P("Object already scheduled for deletion");
|
|
2577
2584
|
}
|
|
2578
2585
|
oc(this);
|
|
2579
2586
|
var a = this.g;
|
|
2580
2587
|
--a.count.value;
|
|
2581
2588
|
0 === a.count.value && (a.D ? a.J.O(a.D) : a.u.i.O(a.o));
|
|
2582
|
-
this.g.
|
|
2589
|
+
this.g.ja || (this.g.D = void 0, this.g.o = void 0);
|
|
2583
2590
|
}, isDeleted:function() {
|
|
2584
2591
|
return !this.g.o;
|
|
2585
2592
|
}, deleteLater:function() {
|
|
2586
2593
|
this.g.o || Cc(this);
|
|
2587
|
-
if (this.g.
|
|
2594
|
+
if (this.g.ha && !this.g.ja) {
|
|
2588
2595
|
throw new P("Object already scheduled for deletion");
|
|
2589
2596
|
}
|
|
2590
2597
|
ec.push(this);
|
|
2591
2598
|
1 === ec.length && gc && gc(fc);
|
|
2592
|
-
this.g.
|
|
2599
|
+
this.g.ha = !0;
|
|
2593
2600
|
return this;
|
|
2594
2601
|
},});
|
|
2595
|
-
Object.assign(Nc.prototype, {
|
|
2596
|
-
this.
|
|
2602
|
+
Object.assign(Nc.prototype, {Qb(a) {
|
|
2603
|
+
this.rb && (a = this.rb(a));
|
|
2597
2604
|
return a;
|
|
2598
|
-
},
|
|
2605
|
+
}, cb(a) {
|
|
2599
2606
|
this.O?.(a);
|
|
2600
2607
|
}, argPackAdvance:8, readValueFromPointer:yc, fromWireType:function(a) {
|
|
2601
2608
|
function b() {
|
|
2602
|
-
return this.xa ? vc(this.i.M, {u:this.
|
|
2609
|
+
return this.xa ? vc(this.i.M, {u:this.cc, o:c, J:this, D:a,}) : vc(this.i.M, {u:this, o:a,});
|
|
2603
2610
|
}
|
|
2604
|
-
var c = this.
|
|
2611
|
+
var c = this.Qb(a);
|
|
2605
2612
|
if (!c) {
|
|
2606
|
-
return this.
|
|
2613
|
+
return this.cb(a), null;
|
|
2607
2614
|
}
|
|
2608
2615
|
var d = sc(this.i, c);
|
|
2609
2616
|
if (void 0 !== d) {
|
|
@@ -2611,15 +2618,15 @@ Object.assign(Nc.prototype, {Pb(a) {
|
|
|
2611
2618
|
return d.g.o = c, d.g.D = a, d.clone();
|
|
2612
2619
|
}
|
|
2613
2620
|
d = d.clone();
|
|
2614
|
-
this.
|
|
2621
|
+
this.cb(a);
|
|
2615
2622
|
return d;
|
|
2616
2623
|
}
|
|
2617
|
-
d = this.i.
|
|
2624
|
+
d = this.i.Pb(c);
|
|
2618
2625
|
d = rc[d];
|
|
2619
2626
|
if (!d) {
|
|
2620
2627
|
return b.call(this);
|
|
2621
2628
|
}
|
|
2622
|
-
d = this.wa ? d.
|
|
2629
|
+
d = this.wa ? d.Ib : d.pointerType;
|
|
2623
2630
|
var e = qc(c, this.i, d.i);
|
|
2624
2631
|
return null === e ? b.call(this) : this.xa ? vc(d.i.M, {u:d, o:e, J:this, D:a,}) : vc(d.i.M, {u:d, o:e,});
|
|
2625
2632
|
},});
|
|
@@ -2659,7 +2666,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2659
2666
|
if ("undefined" == typeof Yb || "ErrnoError" !== f.name) {
|
|
2660
2667
|
throw f;
|
|
2661
2668
|
}
|
|
2662
|
-
return -f
|
|
2669
|
+
return -f.aa;
|
|
2663
2670
|
}
|
|
2664
2671
|
}, __syscall_ioctl:function(a, b, c) {
|
|
2665
2672
|
Wa = c;
|
|
@@ -2672,7 +2679,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2672
2679
|
if (!d.s) {
|
|
2673
2680
|
return -59;
|
|
2674
2681
|
}
|
|
2675
|
-
if (d.s.V.
|
|
2682
|
+
if (d.s.V.Xb) {
|
|
2676
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,];
|
|
2677
2684
|
var e = Va();
|
|
2678
2685
|
F[e >> 2] = 25856;
|
|
@@ -2694,7 +2701,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2694
2701
|
if (!d.s) {
|
|
2695
2702
|
return -59;
|
|
2696
2703
|
}
|
|
2697
|
-
if (d.s.V.
|
|
2704
|
+
if (d.s.V.Yb) {
|
|
2698
2705
|
for (e = Va(), a = [], f = 0; 32 > f; f++) {
|
|
2699
2706
|
a.push(B[e + f + 17]);
|
|
2700
2707
|
}
|
|
@@ -2710,15 +2717,15 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2710
2717
|
return d.s ? -28 : -59;
|
|
2711
2718
|
case 21531:
|
|
2712
2719
|
e = Va();
|
|
2713
|
-
if (!d.m.
|
|
2720
|
+
if (!d.m.Wb) {
|
|
2714
2721
|
throw new M(59);
|
|
2715
2722
|
}
|
|
2716
|
-
return d.m.
|
|
2723
|
+
return d.m.Wb(d, b, e);
|
|
2717
2724
|
case 21523:
|
|
2718
2725
|
if (!d.s) {
|
|
2719
2726
|
return -59;
|
|
2720
2727
|
}
|
|
2721
|
-
d.s.V.
|
|
2728
|
+
d.s.V.Zb && (f = [24, 80], e = Va(), E[e >> 1] = f[0], E[e + 2 >> 1] = f[1]);
|
|
2722
2729
|
return 0;
|
|
2723
2730
|
case 21524:
|
|
2724
2731
|
return d.s ? 0 : -59;
|
|
@@ -2731,7 +2738,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2731
2738
|
if ("undefined" == typeof Yb || "ErrnoError" !== g.name) {
|
|
2732
2739
|
throw g;
|
|
2733
2740
|
}
|
|
2734
|
-
return -g
|
|
2741
|
+
return -g.aa;
|
|
2735
2742
|
}
|
|
2736
2743
|
}, __syscall_openat:function(a, b, c, d) {
|
|
2737
2744
|
Wa = d;
|
|
@@ -2753,7 +2760,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2753
2760
|
if ("undefined" == typeof Yb || "ErrnoError" !== k.name) {
|
|
2754
2761
|
throw k;
|
|
2755
2762
|
}
|
|
2756
|
-
return -k
|
|
2763
|
+
return -k.aa;
|
|
2757
2764
|
}
|
|
2758
2765
|
}, _abort_js:() => {
|
|
2759
2766
|
Ha("");
|
|
@@ -2763,7 +2770,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2763
2770
|
c = Q(c);
|
|
2764
2771
|
var d = b.i, e = d.M, f = d.B.M, g = d.B.constructor;
|
|
2765
2772
|
a = Zb(a, function(...k) {
|
|
2766
|
-
d.B.
|
|
2773
|
+
d.B.pb.forEach(function(n) {
|
|
2767
2774
|
if (this[n] === f[n]) {
|
|
2768
2775
|
throw new cc(`Pure virtual function ${n} must be implemented in JavaScript`);
|
|
2769
2776
|
}
|
|
@@ -2779,7 +2786,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2779
2786
|
oc(k);
|
|
2780
2787
|
var n = k.g;
|
|
2781
2788
|
k.notifyOnDestruction();
|
|
2782
|
-
n.
|
|
2789
|
+
n.ja = !0;
|
|
2783
2790
|
Object.defineProperties(this, {g:{value:n}});
|
|
2784
2791
|
uc(this);
|
|
2785
2792
|
k = n.o;
|
|
@@ -2808,12 +2815,12 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2808
2815
|
}, _embind_finalize_value_object:a => {
|
|
2809
2816
|
var b = wc[a];
|
|
2810
2817
|
delete wc[a];
|
|
2811
|
-
var c = b.
|
|
2818
|
+
var c = b.Ua, d = b.O, e = b.fb, f = e.map(g => g.Tb).concat(e.map(g => g.fc));
|
|
2812
2819
|
T([a], f, g => {
|
|
2813
2820
|
var k = {};
|
|
2814
2821
|
e.forEach((n, m) => {
|
|
2815
|
-
var t = g[m], v = n.
|
|
2816
|
-
k[n.
|
|
2822
|
+
var t = g[m], v = n.Rb, x = n.Sb, p = g[m + e.length], r = n.ec, u = n.hc;
|
|
2823
|
+
k[n.Nb] = {read:z => t.fromWireType(v(x, z)), write:(z, A) => {
|
|
2817
2824
|
var C = [];
|
|
2818
2825
|
r(u, z, p.toWireType(C, A));
|
|
2819
2826
|
xc(C);
|
|
@@ -2872,12 +2879,12 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2872
2879
|
if (Object.getPrototypeOf(this) !== A) {
|
|
2873
2880
|
throw new P("Use 'new' to construct " + t);
|
|
2874
2881
|
}
|
|
2875
|
-
if (void 0 === C
|
|
2882
|
+
if (void 0 === C.$) {
|
|
2876
2883
|
throw new P(t + " has no accessible constructor");
|
|
2877
2884
|
}
|
|
2878
|
-
var K = C
|
|
2885
|
+
var K = C.$[J.length];
|
|
2879
2886
|
if (void 0 === K) {
|
|
2880
|
-
throw new P(`Tried to invoke ctor of ${t} with invalid number of parameters (${J.length}) - expected (${Object.keys(C
|
|
2887
|
+
throw new P(`Tried to invoke ctor of ${t} with invalid number of parameters (${J.length}) - expected (${Object.keys(C.$).toString()}) parameters instead!`);
|
|
2881
2888
|
}
|
|
2882
2889
|
return K.apply(this, J);
|
|
2883
2890
|
});
|
|
@@ -2892,7 +2899,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2892
2899
|
u = new Nc(t, C, !0, !1, !1);
|
|
2893
2900
|
H = new Nc(t + "*", C, !1, !1, !1);
|
|
2894
2901
|
z = new Nc(t + " const*", C, !1, !0, !1);
|
|
2895
|
-
rc[a] = {pointerType:H,
|
|
2902
|
+
rc[a] = {pointerType:H, Ib:z};
|
|
2896
2903
|
Oc(p, r);
|
|
2897
2904
|
return [u, H, z];
|
|
2898
2905
|
});
|
|
@@ -2909,10 +2916,10 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2909
2916
|
var t = `${n.name}.${b}`;
|
|
2910
2917
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2911
2918
|
var v = n.i.constructor;
|
|
2912
|
-
void 0 === v[b] ? (m.
|
|
2919
|
+
void 0 === v[b] ? (m.ga = c - 1, v[b] = m) : (Ec(v, b, t), v[b].A[c - 1] = m);
|
|
2913
2920
|
T([], k, x => {
|
|
2914
2921
|
x = Xc(t, [x[0], null].concat(x.slice(1)), null, f, g);
|
|
2915
|
-
void 0 === v[b].A ? (x.
|
|
2922
|
+
void 0 === v[b].A ? (x.ga = c - 1, v[b] = x) : v[b].A[c - 1] = x;
|
|
2916
2923
|
if (n.i.pa) {
|
|
2917
2924
|
for (const p of n.i.pa) {
|
|
2918
2925
|
p.constructor.hasOwnProperty(b) || (p.constructor[b] = x);
|
|
@@ -2957,16 +2964,16 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2957
2964
|
T([], [a], k => {
|
|
2958
2965
|
k = k[0];
|
|
2959
2966
|
var n = `constructor ${k.name}`;
|
|
2960
|
-
void 0 === k.i
|
|
2961
|
-
if (void 0 !== k.i
|
|
2967
|
+
void 0 === k.i.$ && (k.i.$ = []);
|
|
2968
|
+
if (void 0 !== k.i.$[b - 1]) {
|
|
2962
2969
|
throw new P(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${k.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
2963
2970
|
}
|
|
2964
|
-
k.i
|
|
2971
|
+
k.i.$[b - 1] = () => {
|
|
2965
2972
|
Vc(`Cannot construct ${k.name} due to unbound types`, g);
|
|
2966
2973
|
};
|
|
2967
2974
|
T([], g, m => {
|
|
2968
2975
|
m.splice(1, 0, null);
|
|
2969
|
-
k.i
|
|
2976
|
+
k.i.$[b - 1] = Xc(n, m, null, e, f);
|
|
2970
2977
|
return [];
|
|
2971
2978
|
});
|
|
2972
2979
|
return [];
|
|
@@ -2983,12 +2990,12 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2983
2990
|
m = m[0];
|
|
2984
2991
|
var v = `${m.name}.${b}`;
|
|
2985
2992
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2986
|
-
k && m.i.
|
|
2993
|
+
k && m.i.pb.push(b);
|
|
2987
2994
|
var x = m.i.M, p = x[b];
|
|
2988
|
-
void 0 === p || void 0 === p.A && p.className !== m.name && p.
|
|
2995
|
+
void 0 === p || void 0 === p.A && p.className !== m.name && p.ga === c - 2 ? (t.ga = c - 2, t.className = m.name, x[b] = t) : (Ec(x, b, v), x[b].A[c - 2] = t);
|
|
2989
2996
|
T([], n, r => {
|
|
2990
2997
|
r = Xc(v, r, m, f, g);
|
|
2991
|
-
void 0 === x[b].A ? (r.
|
|
2998
|
+
void 0 === x[b].A ? (r.ga = c - 2, x[b] = r) : x[b].A[c - 2] = r;
|
|
2992
2999
|
return [];
|
|
2993
3000
|
});
|
|
2994
3001
|
return [];
|
|
@@ -3076,7 +3083,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3076
3083
|
}
|
|
3077
3084
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
3078
3085
|
c = R(c);
|
|
3079
|
-
S(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {
|
|
3086
|
+
S(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Ub:!0,});
|
|
3080
3087
|
}, _embind_register_std_string:(a, b) => {
|
|
3081
3088
|
b = R(b);
|
|
3082
3089
|
var c = "std::string" === b;
|
|
@@ -3167,12 +3174,12 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3167
3174
|
lc(k);
|
|
3168
3175
|
}});
|
|
3169
3176
|
}, _embind_register_value_object:(a, b, c, d, e, f) => {
|
|
3170
|
-
wc[a] = {name:R(b),
|
|
3177
|
+
wc[a] = {name:R(b), Ua:U(c, d), O:U(e, f), fb:[],};
|
|
3171
3178
|
}, _embind_register_value_object_field:(a, b, c, d, e, f, g, k, n, m) => {
|
|
3172
|
-
wc[a].
|
|
3179
|
+
wc[a].fb.push({Nb:R(b), Tb:c, Rb:U(d, e), Sb:f, fc:g, ec:U(k, n), hc:m,});
|
|
3173
3180
|
}, _embind_register_void:(a, b) => {
|
|
3174
3181
|
b = R(b);
|
|
3175
|
-
S(a, {
|
|
3182
|
+
S(a, {Jc:!0, name:b, argPackAdvance:0, fromWireType:() => {
|
|
3176
3183
|
}, toWireType:() => {
|
|
3177
3184
|
},});
|
|
3178
3185
|
}, _emscripten_get_now_is_monotonic:() => 1, _emscripten_memcpy_js:(a, b, c) => D.copyWithin(a, b, b + c), _emscripten_throw_longjmp:() => {
|
|
@@ -3315,16 +3322,22 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3315
3322
|
b.startsWith("GL_") && (b = b.substr(3));
|
|
3316
3323
|
"WEBGL_draw_instanced_base_vertex_base_instance" == b && yd(W);
|
|
3317
3324
|
"WEBGL_multi_draw_instanced_base_vertex_base_instance" == b && zd(W);
|
|
3318
|
-
"WEBGL_multi_draw" == b && (W
|
|
3325
|
+
"WEBGL_multi_draw" == b && (W.ac = W.getExtension("WEBGL_multi_draw"));
|
|
3319
3326
|
return !!a.F.getExtension(b);
|
|
3320
|
-
}, emscripten_webgl_get_current_context:() => q ? q.handle : 0, emscripten_webgl_make_context_current:a =>
|
|
3327
|
+
}, emscripten_webgl_get_current_context:() => q ? q.handle : 0, emscripten_webgl_make_context_current:a => ka(a) ? 0 : -5, enable_WEBGL_provoking_vertex:function(a) {
|
|
3321
3328
|
a = w[a].F;
|
|
3322
|
-
a.
|
|
3323
|
-
return !!a.
|
|
3329
|
+
a.qb = a.getExtension("WEBGL_provoking_vertex");
|
|
3330
|
+
return !!a.qb;
|
|
3324
3331
|
}, enable_WEBGL_shader_pixel_local_storage_coherent:function(a) {
|
|
3325
3332
|
a = w[a].F;
|
|
3326
3333
|
const b = a.getExtension("WEBGL_shader_pixel_local_storage");
|
|
3327
|
-
|
|
3334
|
+
if (b && b.isCoherent()) {
|
|
3335
|
+
if (5 == b.framebufferTexturePixelLocalStorageWEBGL.length) {
|
|
3336
|
+
return a.Ea = b, !0;
|
|
3337
|
+
}
|
|
3338
|
+
console.warn("WEBGL_shader_pixel_local_storage is advertised, but a deprecated version has been detected. Disabling.");
|
|
3339
|
+
}
|
|
3340
|
+
return !1;
|
|
3328
3341
|
}, endPixelLocalStorageWEBGL:function(a, b, c) {
|
|
3329
3342
|
(a = w[a].F.Ea) && a.endPixelLocalStorageWEBGL(l.HEAPU32.subarray(c, c + b));
|
|
3330
3343
|
}, environ_get:(a, b) => {
|
|
@@ -3352,7 +3365,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3352
3365
|
if (null === b.W) {
|
|
3353
3366
|
throw new M(8);
|
|
3354
3367
|
}
|
|
3355
|
-
b.
|
|
3368
|
+
b.Ra && (b.Ra = null);
|
|
3356
3369
|
try {
|
|
3357
3370
|
b.m.close && b.m.close(b);
|
|
3358
3371
|
} catch (c) {
|
|
@@ -3366,7 +3379,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3366
3379
|
if ("undefined" == typeof Yb || "ErrnoError" !== c.name) {
|
|
3367
3380
|
throw c;
|
|
3368
3381
|
}
|
|
3369
|
-
return c
|
|
3382
|
+
return c.aa;
|
|
3370
3383
|
}
|
|
3371
3384
|
}, fd_read:function(a, b, c, d) {
|
|
3372
3385
|
try {
|
|
@@ -3419,7 +3432,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3419
3432
|
if ("undefined" == typeof Yb || "ErrnoError" !== z.name) {
|
|
3420
3433
|
throw z;
|
|
3421
3434
|
}
|
|
3422
|
-
return z
|
|
3435
|
+
return z.aa;
|
|
3423
3436
|
}
|
|
3424
3437
|
}, fd_seek:function(a, b, c, d, e) {
|
|
3425
3438
|
b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
|
|
@@ -3432,13 +3445,13 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3432
3445
|
Pa = [f.position >>> 0, (Oa = f.position, 1.0 <= +Math.abs(Oa) ? 0.0 < Oa ? +Math.floor(Oa / 4294967296.0) >>> 0 : ~~+Math.ceil((Oa - +(~~Oa >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
3433
3446
|
F[e >> 2] = Pa[0];
|
|
3434
3447
|
F[e + 4 >> 2] = Pa[1];
|
|
3435
|
-
f.
|
|
3448
|
+
f.Ra && 0 === b && 0 === d && (f.Ra = null);
|
|
3436
3449
|
return 0;
|
|
3437
3450
|
} catch (g) {
|
|
3438
3451
|
if ("undefined" == typeof Yb || "ErrnoError" !== g.name) {
|
|
3439
3452
|
throw g;
|
|
3440
3453
|
}
|
|
3441
|
-
return g
|
|
3454
|
+
return g.aa;
|
|
3442
3455
|
}
|
|
3443
3456
|
}, fd_write:function(a, b, c, d) {
|
|
3444
3457
|
try {
|
|
@@ -3489,7 +3502,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3489
3502
|
if ("undefined" == typeof Yb || "ErrnoError" !== C.name) {
|
|
3490
3503
|
throw C;
|
|
3491
3504
|
}
|
|
3492
|
-
return C
|
|
3505
|
+
return C.aa;
|
|
3493
3506
|
}
|
|
3494
3507
|
}, framebufferPixelLocalClearValuefvWEBGL:function(a, b, c, d, e, f) {
|
|
3495
3508
|
(a = w[a].F.Ea) && a.framebufferPixelLocalClearValuefvWEBGL(b, [c, d, e, f]);
|
|
@@ -3498,7 +3511,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3498
3511
|
}, glActiveTexture:a => W.activeTexture(a), glAttachShader:(a, b) => {
|
|
3499
3512
|
W.attachShader(V[a], Gd[b]);
|
|
3500
3513
|
}, glBindBuffer:(a, b) => {
|
|
3501
|
-
35051 == a ? W.
|
|
3514
|
+
35051 == a ? W.Pa = b : 35052 == a && (W.sa = b);
|
|
3502
3515
|
W.bindBuffer(a, Cd[b]);
|
|
3503
3516
|
}, glBindBufferRange:(a, b, c, d, e) => {
|
|
3504
3517
|
W.bindBufferRange(a, b, Cd[c], d, e);
|
|
@@ -3528,7 +3541,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3528
3541
|
var a = Ld(V), b = W.createProgram();
|
|
3529
3542
|
b.name = a;
|
|
3530
3543
|
b.Aa = b.ya = b.za = 0;
|
|
3531
|
-
b.
|
|
3544
|
+
b.Xa = 1;
|
|
3532
3545
|
V[a] = b;
|
|
3533
3546
|
return a;
|
|
3534
3547
|
}, glCreateShader:a => {
|
|
@@ -3538,7 +3551,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3538
3551
|
}, glCullFace:a => W.cullFace(a), glDeleteBuffers:(a, b) => {
|
|
3539
3552
|
for (var c = 0; c < a; c++) {
|
|
3540
3553
|
var d = F[b + 4 * c >> 2], e = Cd[d];
|
|
3541
|
-
e && (W.deleteBuffer(e), e.name = 0, Cd[d] = null, d == W.
|
|
3554
|
+
e && (W.deleteBuffer(e), e.name = 0, Cd[d] = null, d == W.Pa && (W.Pa = 0), d == W.sa && (W.sa = 0));
|
|
3542
3555
|
}
|
|
3543
3556
|
}, glDeleteFramebuffers:(a, b) => {
|
|
3544
3557
|
for (var c = 0; c < a; ++c) {
|
|
@@ -3669,19 +3682,19 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3669
3682
|
}, glGetUniformBlockIndex:(a, b) => W.getUniformBlockIndex(V[a], b ? L(D, b) : ""), glGetUniformLocation:(a, b) => {
|
|
3670
3683
|
b = b ? L(D, b) : "";
|
|
3671
3684
|
if (a = V[a]) {
|
|
3672
|
-
var c = a, d = c.na, e = c.
|
|
3685
|
+
var c = a, d = c.na, e = c.xb, f;
|
|
3673
3686
|
if (!d) {
|
|
3674
|
-
for (c.na = d = {}, c.
|
|
3687
|
+
for (c.na = d = {}, c.wb = {}, f = 0; f < W.getProgramParameter(c, 35718); ++f) {
|
|
3675
3688
|
var g = W.getActiveUniform(c, f);
|
|
3676
3689
|
var k = g.name;
|
|
3677
3690
|
g = g.size;
|
|
3678
3691
|
var n = Wd(k);
|
|
3679
3692
|
n = 0 < n ? k.slice(0, n) : k;
|
|
3680
|
-
var m = c.
|
|
3681
|
-
c.
|
|
3693
|
+
var m = c.Xa;
|
|
3694
|
+
c.Xa += g;
|
|
3682
3695
|
e[n] = [g, m];
|
|
3683
3696
|
for (k = 0; k < g; ++k) {
|
|
3684
|
-
d[m] = k, c.
|
|
3697
|
+
d[m] = k, c.wb[m++] = n;
|
|
3685
3698
|
}
|
|
3686
3699
|
}
|
|
3687
3700
|
}
|
|
@@ -3690,7 +3703,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3690
3703
|
e = b;
|
|
3691
3704
|
f = Wd(b);
|
|
3692
3705
|
0 < f && (d = parseInt(b.slice(f + 1)) >>> 0, e = b.slice(0, f));
|
|
3693
|
-
if ((e = a.
|
|
3706
|
+
if ((e = a.xb[e]) && d < e[0] && (d += e[1], c[d] = c[d] || W.getUniformLocation(a, b))) {
|
|
3694
3707
|
return d;
|
|
3695
3708
|
}
|
|
3696
3709
|
} else {
|
|
@@ -3706,12 +3719,12 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3706
3719
|
a = V[a];
|
|
3707
3720
|
W.linkProgram(a);
|
|
3708
3721
|
a.na = 0;
|
|
3709
|
-
a.
|
|
3722
|
+
a.xb = {};
|
|
3710
3723
|
}, glPixelStorei:(a, b) => {
|
|
3711
3724
|
3317 == a ? Jd = b : 3314 == a && (Kd = b);
|
|
3712
3725
|
W.pixelStorei(a, b);
|
|
3713
3726
|
}, glReadPixels:(a, b, c, d, e, f, g) => {
|
|
3714
|
-
if (W.
|
|
3727
|
+
if (W.Pa) {
|
|
3715
3728
|
W.readPixels(a, b, c, d, e, f, g);
|
|
3716
3729
|
} else {
|
|
3717
3730
|
var k = Xd(f);
|
|
@@ -3745,10 +3758,10 @@ f, g, k, n) => {
|
|
|
3745
3758
|
}
|
|
3746
3759
|
}, glUniform1i:(a, b) => {
|
|
3747
3760
|
var c = W, d = c.uniform1i;
|
|
3748
|
-
var e = W.
|
|
3761
|
+
var e = W.Jb;
|
|
3749
3762
|
if (e) {
|
|
3750
3763
|
var f = e.na[a];
|
|
3751
|
-
"number" == typeof f && (e.na[a] = f = W.getUniformLocation(e, e.
|
|
3764
|
+
"number" == typeof f && (e.na[a] = f = W.getUniformLocation(e, e.wb[a] + (0 < f ? `[${f}]` : "")));
|
|
3752
3765
|
a = f;
|
|
3753
3766
|
} else {
|
|
3754
3767
|
X ||= 1282, a = void 0;
|
|
@@ -3760,7 +3773,7 @@ f, g, k, n) => {
|
|
|
3760
3773
|
}, glUseProgram:a => {
|
|
3761
3774
|
a = V[a];
|
|
3762
3775
|
W.useProgram(a);
|
|
3763
|
-
W.
|
|
3776
|
+
W.Jb = a;
|
|
3764
3777
|
}, glVertexAttribDivisor:(a, b) => {
|
|
3765
3778
|
W.vertexAttribDivisor(a, b);
|
|
3766
3779
|
}, glVertexAttribIPointer:(a, b, c, d, e) => {
|
|
@@ -3770,7 +3783,7 @@ f, g, k, n) => {
|
|
|
3770
3783
|
}, glViewport:(a, b, c, d) => W.viewport(a, b, c, d), invoke_vii:de, isWindowsBrowser:function() {
|
|
3771
3784
|
return -1 < navigator.platform.indexOf("Win");
|
|
3772
3785
|
}, provokingVertexWEBGL:function(a, b) {
|
|
3773
|
-
(a = w[a].F.
|
|
3786
|
+
(a = w[a].F.qb) && a.provokingVertexWEBGL(b);
|
|
3774
3787
|
}, strftime:$d, strftime_l:(a, b, c, d) => $d(a, b, c, d), upload_image:function(a, b) {
|
|
3775
3788
|
var c = l.images;
|
|
3776
3789
|
c && (b = c.get(b)) && (a = w[a].F, 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));
|
|
@@ -3782,15 +3795,15 @@ f, g, k, n) => {
|
|
|
3782
3795
|
var e = (new OffscreenCanvas(d.width, d.height)).getContext("2d");
|
|
3783
3796
|
e.drawImage(d, 0, 0);
|
|
3784
3797
|
e = e.getImageData(0, 0, d.width, d.height);
|
|
3785
|
-
var f = e.data.length, g = l.
|
|
3786
|
-
l.
|
|
3787
|
-
l.
|
|
3798
|
+
var f = e.data.length, g = l.Db(f);
|
|
3799
|
+
l.pc.set(e.data, g);
|
|
3800
|
+
l.rc(a, d.width, d.height, g, f);
|
|
3788
3801
|
}).catch(function(d) {
|
|
3789
3802
|
d = d.message || "decode failed";
|
|
3790
|
-
var e = l.
|
|
3791
|
-
l.
|
|
3792
|
-
l.
|
|
3793
|
-
l.
|
|
3803
|
+
var e = l.Kc(d) + 1, f = l.Db(e);
|
|
3804
|
+
l.Sc(d, f, e);
|
|
3805
|
+
l.sc(a, f);
|
|
3806
|
+
l.qc(f);
|
|
3794
3807
|
});
|
|
3795
3808
|
}}, Y = function() {
|
|
3796
3809
|
function a(c) {
|
|
@@ -3910,7 +3923,7 @@ moduleRtn = ca;
|
|
|
3910
3923
|
/* 5 */
|
|
3911
3924
|
/***/ ((module) => {
|
|
3912
3925
|
|
|
3913
|
-
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.3","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}}');
|
|
3914
3927
|
|
|
3915
3928
|
/***/ }),
|
|
3916
3929
|
/* 6 */
|
|
@@ -7113,10 +7126,15 @@ var Rive = /** @class */ (function () {
|
|
|
7113
7126
|
* Rive class
|
|
7114
7127
|
*/
|
|
7115
7128
|
Rive.prototype.cleanup = function () {
|
|
7116
|
-
var _a, _b;
|
|
7129
|
+
var _a, _b, _c, _d;
|
|
7117
7130
|
this.destroyed = true;
|
|
7118
7131
|
// Stop the renderer if it hasn't already been stopped.
|
|
7119
7132
|
this.stopRendering();
|
|
7133
|
+
// Make the GL context backing this renderer current before any WASM teardown
|
|
7134
|
+
// that frees GPU resources. Binding here covers the artboard/file deletes;
|
|
7135
|
+
// deleteRiveRenderer() re-binds for the renderer's own delete. No-op on the
|
|
7136
|
+
// canvas2d build
|
|
7137
|
+
(_b = (_a = this.renderer) === null || _a === void 0 ? void 0 : _a.bindContext) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
7120
7138
|
// Clean up any artboard, animation or state machine instances.
|
|
7121
7139
|
this.cleanupInstances();
|
|
7122
7140
|
// Remove from observer
|
|
@@ -7125,7 +7143,7 @@ var Rive = /** @class */ (function () {
|
|
|
7125
7143
|
}
|
|
7126
7144
|
this.removeRiveListeners();
|
|
7127
7145
|
if (this.file) {
|
|
7128
|
-
(
|
|
7146
|
+
(_c = this.riveFile) === null || _c === void 0 ? void 0 : _c.cleanup();
|
|
7129
7147
|
this.file = null;
|
|
7130
7148
|
}
|
|
7131
7149
|
this.riveFile = null;
|
|
@@ -7138,7 +7156,7 @@ var Rive = /** @class */ (function () {
|
|
|
7138
7156
|
document.removeEventListener('visibilitychange', this._pageVisibilityHandler);
|
|
7139
7157
|
this._pageVisibilityHandler = null;
|
|
7140
7158
|
}
|
|
7141
|
-
(
|
|
7159
|
+
(_d = this._viewModelInstance) === null || _d === void 0 ? void 0 : _d.cleanup();
|
|
7142
7160
|
this._viewModelInstance = null;
|
|
7143
7161
|
this._dataEnums = null;
|
|
7144
7162
|
};
|