@rive-app/webgl2 2.38.0 → 2.38.1
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 +127 -126
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/rive_fallback.wasm +0 -0
package/rive.js
CHANGED
|
@@ -495,18 +495,18 @@ l.onRuntimeInitialized = function() {
|
|
|
495
495
|
this.Ab = r.getContext("2d");
|
|
496
496
|
this.Eb = d;
|
|
497
497
|
this.S = [];
|
|
498
|
-
this.
|
|
498
|
+
this.ka = 0;
|
|
499
499
|
this.clear = function() {
|
|
500
|
-
console.assert(0 == this.
|
|
500
|
+
console.assert(0 == this.ka);
|
|
501
501
|
this.S = [];
|
|
502
502
|
e.delete(this);
|
|
503
503
|
};
|
|
504
504
|
this.save = function() {
|
|
505
|
-
++this.
|
|
505
|
+
++this.ka;
|
|
506
506
|
this.S.push(d.save.bind(d));
|
|
507
507
|
};
|
|
508
508
|
this.restore = function() {
|
|
509
|
-
0 < this.
|
|
509
|
+
0 < this.ka && (this.S.push(d.restore.bind(d)), --this.ka);
|
|
510
510
|
};
|
|
511
511
|
this.transform = function(u) {
|
|
512
512
|
this.S.push(d.transform.bind(d, u));
|
|
@@ -515,7 +515,7 @@ l.onRuntimeInitialized = function() {
|
|
|
515
515
|
this.S.push(d.align.bind(d, u, z, A, C, H));
|
|
516
516
|
};
|
|
517
517
|
this.flush = function() {
|
|
518
|
-
console.assert(0 == this.
|
|
518
|
+
console.assert(0 == this.ka);
|
|
519
519
|
e.add(this);
|
|
520
520
|
d.Ya || c();
|
|
521
521
|
};
|
|
@@ -531,19 +531,20 @@ l.onRuntimeInitialized = function() {
|
|
|
531
531
|
z = ka(u, z);
|
|
532
532
|
la(z);
|
|
533
533
|
const A = f(r.width, r.height);
|
|
534
|
-
A.
|
|
534
|
+
A.ja = z;
|
|
535
535
|
A.G = r;
|
|
536
536
|
A.Na = r.width;
|
|
537
537
|
A.Za = r.height;
|
|
538
538
|
A.T = u;
|
|
539
539
|
var C = A.delete;
|
|
540
540
|
A.delete = function() {
|
|
541
|
+
this.ja && la(this.ja);
|
|
541
542
|
C.call(this);
|
|
542
|
-
var H = this.
|
|
543
|
+
var H = this.ja;
|
|
543
544
|
q === w[H] && (q = null);
|
|
544
545
|
"object" == typeof JSEvents && JSEvents.Qc(w[H].F.canvas);
|
|
545
546
|
w[H] && w[H].F.canvas && (w[H].F.canvas.zb = void 0);
|
|
546
|
-
this.
|
|
547
|
+
this.ja = this.G = this.Na = this.T = w[H] = null;
|
|
547
548
|
};
|
|
548
549
|
return A;
|
|
549
550
|
}
|
|
@@ -551,7 +552,7 @@ l.onRuntimeInitialized = function() {
|
|
|
551
552
|
if (d) {
|
|
552
553
|
var r = d.Db, u = 0, z = 0, A = 0, C = Array(e.size), H = 0;
|
|
553
554
|
for (var J of e) {
|
|
554
|
-
J.ea = Math.min(J.G.width, r), J.da = Math.min(J.G.height, r), J.
|
|
555
|
+
J.ea = Math.min(J.G.width, r), J.da = Math.min(J.G.height, r), J.La = J.da * J.ea, u = Math.max(u, J.ea), z = Math.max(z, J.da), A += J.La, C[H++] = J;
|
|
555
556
|
}
|
|
556
557
|
e.clear();
|
|
557
558
|
if (!(0 >= A)) {
|
|
@@ -561,7 +562,7 @@ l.onRuntimeInitialized = function() {
|
|
|
561
562
|
}
|
|
562
563
|
u = Math.min(u, r);
|
|
563
564
|
u = Math.min(z, r);
|
|
564
|
-
C.sort((Z, ob) => ob.
|
|
565
|
+
C.sort((Z, ob) => ob.La - Z.La);
|
|
565
566
|
A = new l.DynamicRectanizer(r);
|
|
566
567
|
for (J = 0; J < C.length;) {
|
|
567
568
|
A.reset(u, z);
|
|
@@ -571,8 +572,8 @@ l.onRuntimeInitialized = function() {
|
|
|
571
572
|
console.assert(H > J);
|
|
572
573
|
break;
|
|
573
574
|
}
|
|
574
|
-
K.
|
|
575
|
-
K.
|
|
575
|
+
K.qa = I & 65535;
|
|
576
|
+
K.ra = I >> 16;
|
|
576
577
|
}
|
|
577
578
|
K = n.push(A.drawWidth());
|
|
578
579
|
I = m.push(A.drawHeight());
|
|
@@ -585,13 +586,13 @@ l.onRuntimeInitialized = function() {
|
|
|
585
586
|
d.clear();
|
|
586
587
|
for (K = J; K < H; ++K) {
|
|
587
588
|
I = C[K];
|
|
588
|
-
d.saveClipRect(I.
|
|
589
|
+
d.saveClipRect(I.qa, I.ra, I.qa + I.ea, I.ra + I.da);
|
|
589
590
|
let Z = new l.Mat2D();
|
|
590
591
|
Z.xx = I.ea / I.G.width;
|
|
591
592
|
Z.yy = I.da / I.G.height;
|
|
592
593
|
Z.xy = Z.yx = 0;
|
|
593
|
-
Z.tx = I.
|
|
594
|
-
Z.ty = I.
|
|
594
|
+
Z.tx = I.qa;
|
|
595
|
+
Z.ty = I.ra;
|
|
595
596
|
d.transform(Z);
|
|
596
597
|
for (const ob of I.S) {
|
|
597
598
|
ob();
|
|
@@ -600,7 +601,7 @@ l.onRuntimeInitialized = function() {
|
|
|
600
601
|
I.S = [];
|
|
601
602
|
}
|
|
602
603
|
for (d.flush(); J < H; ++J) {
|
|
603
|
-
K = C[J], I = K.Ab, I.globalCompositeOperation = "copy", I.drawImage(d.G, K.
|
|
604
|
+
K = C[J], I = K.Ab, I.globalCompositeOperation = "copy", I.drawImage(d.G, K.qa, K.ra, K.ea, K.da, 0, 0, K.G.width, K.G.height);
|
|
604
605
|
}
|
|
605
606
|
J = H;
|
|
606
607
|
}
|
|
@@ -622,9 +623,9 @@ l.onRuntimeInitialized = function() {
|
|
|
622
623
|
}
|
|
623
624
|
d.Ya = !!d.T.getExtension("WEBGL_shader_pixel_local_storage");
|
|
624
625
|
d.Db = Math.min(d.T.getParameter(d.T.MAX_RENDERBUFFER_SIZE), d.T.getParameter(d.T.MAX_TEXTURE_SIZE));
|
|
625
|
-
d.
|
|
626
|
+
d.Ma = !d.Ya;
|
|
626
627
|
if (A = d.T.getExtension("WEBGL_debug_renderer_info")) {
|
|
627
|
-
C = d.T.getParameter(A.UNMASKED_RENDERER_WEBGL), d.T.getParameter(A.UNMASKED_VENDOR_WEBGL).includes("Google") && C.includes("ANGLE Metal Renderer") && (d.
|
|
628
|
+
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);
|
|
628
629
|
}
|
|
629
630
|
return d;
|
|
630
631
|
}
|
|
@@ -632,9 +633,9 @@ l.onRuntimeInitialized = function() {
|
|
|
632
633
|
if (!d) {
|
|
633
634
|
throw "Unable to create WebGL context, your environment may not support WebGL. Try out @rive-app/canvas as an alternative.";
|
|
634
635
|
}
|
|
635
|
-
d.
|
|
636
|
+
d.Ma || (d = z(!1));
|
|
636
637
|
}
|
|
637
|
-
return u ? new a(r) : b(r, d.
|
|
638
|
+
return u ? new a(r) : b(r, d.Ma);
|
|
638
639
|
};
|
|
639
640
|
const g = l.Artboard.prototype["delete"];
|
|
640
641
|
l.Artboard.prototype["delete"] = function() {
|
|
@@ -662,7 +663,7 @@ l.onRuntimeInitialized = function() {
|
|
|
662
663
|
};
|
|
663
664
|
const x = l.WebGL2Renderer.prototype.clear;
|
|
664
665
|
l.WebGL2Renderer.prototype.clear = function() {
|
|
665
|
-
la(this.
|
|
666
|
+
la(this.ja);
|
|
666
667
|
const r = this.G;
|
|
667
668
|
if (this.Na != r.width || this.Za != r.height) {
|
|
668
669
|
this.resize(r.width, r.height), this.Na = r.width, this.Za = r.height;
|
|
@@ -769,14 +770,14 @@ function Na(a, b) {
|
|
|
769
770
|
return Ma(c, a, b);
|
|
770
771
|
}));
|
|
771
772
|
}
|
|
772
|
-
var Oa, Pa, Ta = {
|
|
773
|
+
var Oa, Pa, Ta = {570840:(a, b, c, d, e) => {
|
|
773
774
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
774
775
|
return 0;
|
|
775
776
|
}
|
|
776
777
|
if ("undefined" === typeof window.h) {
|
|
777
|
-
window.h = {
|
|
778
|
+
window.h = {Ga:0};
|
|
778
779
|
window.h.I = {};
|
|
779
|
-
window.h.I.
|
|
780
|
+
window.h.I.Da = a;
|
|
780
781
|
window.h.I.capture = b;
|
|
781
782
|
window.h.I.Pa = c;
|
|
782
783
|
window.h.ha = {};
|
|
@@ -809,7 +810,7 @@ var Oa, Pa, Ta = {570520:(a, b, c, d, e) => {
|
|
|
809
810
|
}
|
|
810
811
|
}
|
|
811
812
|
};
|
|
812
|
-
f.
|
|
813
|
+
f.ua = function(g) {
|
|
813
814
|
return f.C[g];
|
|
814
815
|
};
|
|
815
816
|
f.Xa = ["touchend", "click"];
|
|
@@ -830,13 +831,13 @@ var Oa, Pa, Ta = {570520:(a, b, c, d, e) => {
|
|
|
830
831
|
document.addEventListener(g, f.unlock, !0);
|
|
831
832
|
});
|
|
832
833
|
}
|
|
833
|
-
window.h.
|
|
834
|
+
window.h.Ga += 1;
|
|
834
835
|
return 1;
|
|
835
|
-
},
|
|
836
|
+
}, 573018:() => {
|
|
836
837
|
"undefined" !== typeof window.h && (window.h.Xa.map(function(a) {
|
|
837
838
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
838
|
-
}), --window.h.
|
|
839
|
-
},
|
|
839
|
+
}), --window.h.Ga, 0 === window.h.Ga && delete window.h);
|
|
840
|
+
}, 573322:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 573426:() => {
|
|
840
841
|
try {
|
|
841
842
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
842
843
|
a.close();
|
|
@@ -844,33 +845,33 @@ var Oa, Pa, Ta = {570520:(a, b, c, d, e) => {
|
|
|
844
845
|
} catch (c) {
|
|
845
846
|
return 0;
|
|
846
847
|
}
|
|
847
|
-
},
|
|
848
|
+
}, 573597:(a, b, c, d, e, f) => {
|
|
848
849
|
if ("undefined" === typeof window.h) {
|
|
849
850
|
return -1;
|
|
850
851
|
}
|
|
851
852
|
var g = {}, k = {};
|
|
852
|
-
a == window.h.I.
|
|
853
|
+
a == window.h.I.Da && 0 != c && (k.sampleRate = c);
|
|
853
854
|
g.K = new (window.AudioContext || window.webkitAudioContext)(k);
|
|
854
855
|
g.K.suspend();
|
|
855
856
|
g.state = window.h.ha.stopped;
|
|
856
857
|
c = 0;
|
|
857
|
-
a != window.h.I.
|
|
858
|
+
a != window.h.I.Da && (c = b);
|
|
858
859
|
g.Y = g.K.createScriptProcessor(d, c, b);
|
|
859
860
|
g.Y.onaudioprocess = function(n) {
|
|
860
|
-
if (null == g.
|
|
861
|
-
g.
|
|
861
|
+
if (null == g.va || 0 == g.va.length) {
|
|
862
|
+
g.va = new Float32Array(xa.buffer, e, d * b);
|
|
862
863
|
}
|
|
863
864
|
if (a == window.h.I.capture || a == window.h.I.Pa) {
|
|
864
865
|
for (var m = 0; m < b; m += 1) {
|
|
865
|
-
for (var t = n.inputBuffer.getChannelData(m), v = g.
|
|
866
|
+
for (var t = n.inputBuffer.getChannelData(m), v = g.va, x = 0; x < d; x += 1) {
|
|
866
867
|
v[x * b + m] = t[x];
|
|
867
868
|
}
|
|
868
869
|
}
|
|
869
870
|
Ra(f, d, e);
|
|
870
871
|
}
|
|
871
|
-
if (a == window.h.I.
|
|
872
|
+
if (a == window.h.I.Da || a == window.h.I.Pa) {
|
|
872
873
|
for (Sa(f, d, e), m = 0; m < n.outputBuffer.numberOfChannels; ++m) {
|
|
873
|
-
for (t = n.outputBuffer.getChannelData(m), v = g.
|
|
874
|
+
for (t = n.outputBuffer.getChannelData(m), v = g.va, x = 0; x < d; x += 1) {
|
|
874
875
|
t[x] = v[x * b + m];
|
|
875
876
|
}
|
|
876
877
|
}
|
|
@@ -881,31 +882,31 @@ var Oa, Pa, Ta = {570520:(a, b, c, d, e) => {
|
|
|
881
882
|
}
|
|
882
883
|
};
|
|
883
884
|
a != window.h.I.capture && a != window.h.I.Pa || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(n) {
|
|
884
|
-
g.
|
|
885
|
-
g.
|
|
885
|
+
g.Ha = g.K.createMediaStreamSource(n);
|
|
886
|
+
g.Ha.connect(g.Y);
|
|
886
887
|
g.Y.connect(g.K.destination);
|
|
887
888
|
}).catch(function(n) {
|
|
888
889
|
console.log("Failed to get user media: " + n);
|
|
889
890
|
});
|
|
890
|
-
a == window.h.I.
|
|
891
|
+
a == window.h.I.Da && g.Y.connect(g.K.destination);
|
|
891
892
|
g.nb = f;
|
|
892
893
|
return window.h.mc(g);
|
|
893
|
-
},
|
|
894
|
-
a = window.h.
|
|
894
|
+
}, 576474:a => window.h.ua(a).K.sampleRate, 576547:a => {
|
|
895
|
+
a = window.h.ua(a);
|
|
895
896
|
void 0 !== a.Y && (a.Y.onaudioprocess = function() {
|
|
896
897
|
}, a.Y.disconnect(), a.Y = void 0);
|
|
897
|
-
void 0 !== a.
|
|
898
|
+
void 0 !== a.Ha && (a.Ha.disconnect(), a.Ha = void 0);
|
|
898
899
|
a.K.close();
|
|
899
900
|
a.K = void 0;
|
|
900
901
|
a.nb = void 0;
|
|
901
|
-
},
|
|
902
|
+
}, 576947:a => {
|
|
902
903
|
window.h.yb(a);
|
|
903
|
-
},
|
|
904
|
-
a = window.h.
|
|
904
|
+
}, 576997:a => {
|
|
905
|
+
a = window.h.ua(a);
|
|
905
906
|
a.K.resume();
|
|
906
907
|
a.state = window.h.ha.ub;
|
|
907
|
-
},
|
|
908
|
-
a = window.h.
|
|
908
|
+
}, 577136:a => {
|
|
909
|
+
a = window.h.ua(a);
|
|
909
910
|
a.K.suspend();
|
|
910
911
|
a.state = window.h.ha.stopped;
|
|
911
912
|
}}, Ua = a => {
|
|
@@ -1056,16 +1057,16 @@ function jb(a, b) {
|
|
|
1056
1057
|
kb(a, lb);
|
|
1057
1058
|
}
|
|
1058
1059
|
var lb = {open(a) {
|
|
1059
|
-
var b = ib[a.node.
|
|
1060
|
+
var b = ib[a.node.Fa];
|
|
1060
1061
|
if (!b) {
|
|
1061
1062
|
throw new M(43);
|
|
1062
1063
|
}
|
|
1063
1064
|
a.s = b;
|
|
1064
1065
|
a.seekable = !1;
|
|
1065
1066
|
}, close(a) {
|
|
1066
|
-
a.s.V.
|
|
1067
|
-
},
|
|
1068
|
-
a.s.V.
|
|
1067
|
+
a.s.V.ta(a.s);
|
|
1068
|
+
}, ta(a) {
|
|
1069
|
+
a.s.V.ta(a.s);
|
|
1069
1070
|
}, read(a, b, c, d) {
|
|
1070
1071
|
if (!a.s || !a.s.V.hb) {
|
|
1071
1072
|
throw new M(60);
|
|
@@ -1116,7 +1117,7 @@ var lb = {open(a) {
|
|
|
1116
1117
|
return a;
|
|
1117
1118
|
}, Sa(a, b) {
|
|
1118
1119
|
null === b || 10 === b ? (ra(L(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
|
|
1119
|
-
},
|
|
1120
|
+
}, ta(a) {
|
|
1120
1121
|
a.H && 0 < a.H.length && (ra(L(a.H, 0)), a.H = []);
|
|
1121
1122
|
}, Wb() {
|
|
1122
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,]};
|
|
@@ -1126,7 +1127,7 @@ var lb = {open(a) {
|
|
|
1126
1127
|
return [24, 80];
|
|
1127
1128
|
},}, nb = {Sa(a, b) {
|
|
1128
1129
|
null === b || 10 === b ? (sa(L(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
|
|
1129
|
-
},
|
|
1130
|
+
}, ta(a) {
|
|
1130
1131
|
a.H && 0 < a.H.length && (sa(L(a.H, 0)), a.H = []);
|
|
1131
1132
|
},};
|
|
1132
1133
|
function pb(a, b) {
|
|
@@ -1139,7 +1140,7 @@ var N = {N:null, U() {
|
|
|
1139
1140
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
1140
1141
|
throw new M(63);
|
|
1141
1142
|
}
|
|
1142
|
-
N.N || (N.N = {dir:{node:{X:N.j.X, P:N.j.P,
|
|
1143
|
+
N.N || (N.N = {dir:{node:{X:N.j.X, P:N.j.P, la:N.j.la, Ba:N.j.Ba, sb:N.j.sb, xb:N.j.xb, tb:N.j.tb, rb:N.j.rb, Ia:N.j.Ia}, stream:{aa:N.m.aa}}, file:{node:{X:N.j.X, P:N.j.P}, stream:{aa:N.m.aa, read:N.m.read, write:N.m.write, $a:N.m.$a, jb:N.m.jb, lb:N.m.lb}}, link:{node:{X:N.j.X, P:N.j.P, ma:N.j.ma}, stream:{}}, ab:{node:{X:N.j.X, P:N.j.P}, stream:qb}});
|
|
1143
1144
|
c = rb(a, b, c, d);
|
|
1144
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.ab.node, c.m = N.N.ab.stream);
|
|
1145
1146
|
c.timestamp = Date.now();
|
|
@@ -1155,7 +1156,7 @@ var N = {N:null, U() {
|
|
|
1155
1156
|
b.Nc = 1;
|
|
1156
1157
|
b.uid = 0;
|
|
1157
1158
|
b.Gc = 0;
|
|
1158
|
-
b.
|
|
1159
|
+
b.Fa = a.Fa;
|
|
1159
1160
|
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;
|
|
1160
1161
|
b.tc = new Date(a.timestamp);
|
|
1161
1162
|
b.Mc = new Date(a.timestamp);
|
|
@@ -1176,9 +1177,9 @@ var N = {N:null, U() {
|
|
|
1176
1177
|
a.v = b;
|
|
1177
1178
|
}
|
|
1178
1179
|
}
|
|
1179
|
-
},
|
|
1180
|
+
}, la() {
|
|
1180
1181
|
throw sb[44];
|
|
1181
|
-
},
|
|
1182
|
+
}, Ba(a, b, c, d) {
|
|
1182
1183
|
return N.createNode(a, b, c, d);
|
|
1183
1184
|
}, sb(a, b, c) {
|
|
1184
1185
|
if (16384 === (a.mode & 61440)) {
|
|
@@ -1213,11 +1214,11 @@ var N = {N:null, U() {
|
|
|
1213
1214
|
b.push(c);
|
|
1214
1215
|
}
|
|
1215
1216
|
return b;
|
|
1216
|
-
},
|
|
1217
|
+
}, Ia(a, b, c) {
|
|
1217
1218
|
a = N.createNode(a, b, 41471, 0);
|
|
1218
1219
|
a.link = c;
|
|
1219
1220
|
return a;
|
|
1220
|
-
},
|
|
1221
|
+
}, ma(a) {
|
|
1221
1222
|
if (40960 !== (a.mode & 61440)) {
|
|
1222
1223
|
throw new M(28);
|
|
1223
1224
|
}
|
|
@@ -1328,13 +1329,13 @@ var N = {N:null, U() {
|
|
|
1328
1329
|
a ||= this;
|
|
1329
1330
|
this.parent = a;
|
|
1330
1331
|
this.U = a.U;
|
|
1331
|
-
this.
|
|
1332
|
+
this.Ca = null;
|
|
1332
1333
|
this.id = yb++;
|
|
1333
1334
|
this.name = b;
|
|
1334
1335
|
this.mode = c;
|
|
1335
1336
|
this.j = {};
|
|
1336
1337
|
this.m = {};
|
|
1337
|
-
this.
|
|
1338
|
+
this.Fa = d;
|
|
1338
1339
|
}
|
|
1339
1340
|
get read() {
|
|
1340
1341
|
return 365 === (this.mode & 365);
|
|
@@ -1366,7 +1367,7 @@ function Db(a, b = {}) {
|
|
|
1366
1367
|
}
|
|
1367
1368
|
c = tb(c, a[e]);
|
|
1368
1369
|
d = Ya(d + "/" + a[e]);
|
|
1369
|
-
c.
|
|
1370
|
+
c.Ca && (!f || f && b.gb) && (c = c.Ca.root);
|
|
1370
1371
|
if (!f || b.fb) {
|
|
1371
1372
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
1372
1373
|
if (c = Eb(d), d = cb(Za(d), c), c = Db(d, {Ua:b.Ua + 1}).node, 40 < f++) {
|
|
@@ -1393,7 +1394,7 @@ function Gb(a, b) {
|
|
|
1393
1394
|
return (a + c >>> 0) % zb.length;
|
|
1394
1395
|
}
|
|
1395
1396
|
function tb(a, b) {
|
|
1396
|
-
var c = 16384 === (a.mode & 61440) ? (c = Hb(a, "x")) ? c : a.j.
|
|
1397
|
+
var c = 16384 === (a.mode & 61440) ? (c = Hb(a, "x")) ? c : a.j.la ? 0 : 2 : 54;
|
|
1397
1398
|
if (c) {
|
|
1398
1399
|
throw new M(c);
|
|
1399
1400
|
}
|
|
@@ -1403,7 +1404,7 @@ function tb(a, b) {
|
|
|
1403
1404
|
return c;
|
|
1404
1405
|
}
|
|
1405
1406
|
}
|
|
1406
|
-
return a.j.
|
|
1407
|
+
return a.j.la(a, b);
|
|
1407
1408
|
}
|
|
1408
1409
|
function rb(a, b, c, d) {
|
|
1409
1410
|
a = new Cb(a, b, c, d);
|
|
@@ -1464,7 +1465,7 @@ function Mb(a, b = -1) {
|
|
|
1464
1465
|
return a;
|
|
1465
1466
|
}
|
|
1466
1467
|
var qb = {open(a) {
|
|
1467
|
-
a.m = wb[a.node.
|
|
1468
|
+
a.m = wb[a.node.Fa].m;
|
|
1468
1469
|
a.m.open?.(a);
|
|
1469
1470
|
}, aa() {
|
|
1470
1471
|
throw new M(70);
|
|
@@ -1481,7 +1482,7 @@ function Nb(a, b) {
|
|
|
1481
1482
|
var d = Db(b, {gb:!1});
|
|
1482
1483
|
b = d.path;
|
|
1483
1484
|
d = d.node;
|
|
1484
|
-
if (d.
|
|
1485
|
+
if (d.Ca) {
|
|
1485
1486
|
throw new M(10);
|
|
1486
1487
|
}
|
|
1487
1488
|
if (16384 !== (d.mode & 61440)) {
|
|
@@ -1492,7 +1493,7 @@ function Nb(a, b) {
|
|
|
1492
1493
|
a = a.U(b);
|
|
1493
1494
|
a.U = b;
|
|
1494
1495
|
b.root = a;
|
|
1495
|
-
c ? vb = a : d && (d.
|
|
1496
|
+
c ? vb = a : d && (d.Ca = b, d.U && d.U.Zb.push(b));
|
|
1496
1497
|
}
|
|
1497
1498
|
function Ob(a, b, c) {
|
|
1498
1499
|
var d = Db(a, {parent:!0}).node;
|
|
@@ -1504,10 +1505,10 @@ function Ob(a, b, c) {
|
|
|
1504
1505
|
if (e) {
|
|
1505
1506
|
throw new M(e);
|
|
1506
1507
|
}
|
|
1507
|
-
if (!d.j.
|
|
1508
|
+
if (!d.j.Ba) {
|
|
1508
1509
|
throw new M(63);
|
|
1509
1510
|
}
|
|
1510
|
-
return d.j.
|
|
1511
|
+
return d.j.Ba(d, a, b, c);
|
|
1511
1512
|
}
|
|
1512
1513
|
function Pb(a) {
|
|
1513
1514
|
return Ob(a, 16895, 0);
|
|
@@ -1529,20 +1530,20 @@ function Rb(a, b) {
|
|
|
1529
1530
|
if (d) {
|
|
1530
1531
|
throw new M(d);
|
|
1531
1532
|
}
|
|
1532
|
-
if (!c.j.
|
|
1533
|
+
if (!c.j.Ia) {
|
|
1533
1534
|
throw new M(63);
|
|
1534
1535
|
}
|
|
1535
|
-
c.j.
|
|
1536
|
+
c.j.Ia(c, b, a);
|
|
1536
1537
|
}
|
|
1537
1538
|
function Eb(a) {
|
|
1538
1539
|
a = Db(a).node;
|
|
1539
1540
|
if (!a) {
|
|
1540
1541
|
throw new M(44);
|
|
1541
1542
|
}
|
|
1542
|
-
if (!a.j.
|
|
1543
|
+
if (!a.j.ma) {
|
|
1543
1544
|
throw new M(28);
|
|
1544
1545
|
}
|
|
1545
|
-
return cb(Fb(a.parent), a.j.
|
|
1546
|
+
return cb(Fb(a.parent), a.j.ma(a));
|
|
1546
1547
|
}
|
|
1547
1548
|
function Sb(a, b, c) {
|
|
1548
1549
|
if ("" === a) {
|
|
@@ -1712,7 +1713,7 @@ var Xb, Yb = {}, Tb, Wa = void 0, Zb = (a, b) => Object.defineProperty(b, "name"
|
|
|
1712
1713
|
throw new P("ptr should not be undefined");
|
|
1713
1714
|
}
|
|
1714
1715
|
for (; a.B;) {
|
|
1715
|
-
b = a.
|
|
1716
|
+
b = a.oa(b), a = a.B;
|
|
1716
1717
|
}
|
|
1717
1718
|
return b;
|
|
1718
1719
|
}, jc = {}, mc = a => {
|
|
@@ -1864,16 +1865,16 @@ function Hc(a, b, c, d, e, f, g, k) {
|
|
|
1864
1865
|
this.O = d;
|
|
1865
1866
|
this.B = e;
|
|
1866
1867
|
this.Ob = f;
|
|
1867
|
-
this.
|
|
1868
|
+
this.oa = g;
|
|
1868
1869
|
this.Jb = k;
|
|
1869
1870
|
this.ob = [];
|
|
1870
1871
|
}
|
|
1871
1872
|
var Ic = (a, b, c) => {
|
|
1872
1873
|
for (; b !== c;) {
|
|
1873
|
-
if (!b.
|
|
1874
|
+
if (!b.oa) {
|
|
1874
1875
|
throw new P(`Expected null or instance of ${c.name}, got an instance of ${b.name}`);
|
|
1875
1876
|
}
|
|
1876
|
-
a = b.
|
|
1877
|
+
a = b.oa(a);
|
|
1877
1878
|
b = b.B;
|
|
1878
1879
|
}
|
|
1879
1880
|
return a;
|
|
@@ -1898,7 +1899,7 @@ function Lc(a, b) {
|
|
|
1898
1899
|
if (this.Ra) {
|
|
1899
1900
|
throw new P(`null is not a valid ${this.name}`);
|
|
1900
1901
|
}
|
|
1901
|
-
if (this.
|
|
1902
|
+
if (this.xa) {
|
|
1902
1903
|
var c = this.Ta();
|
|
1903
1904
|
null !== a && a.push(this.O, c);
|
|
1904
1905
|
return c;
|
|
@@ -1911,11 +1912,11 @@ function Lc(a, b) {
|
|
|
1911
1912
|
if (!b.g.o) {
|
|
1912
1913
|
throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1913
1914
|
}
|
|
1914
|
-
if (!this.
|
|
1915
|
+
if (!this.wa && b.g.u.wa) {
|
|
1915
1916
|
throw new P(`Cannot convert argument of type ${b.g.J ? b.g.J.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1916
1917
|
}
|
|
1917
1918
|
c = Ic(b.g.o, b.g.u.i, this.i);
|
|
1918
|
-
if (this.
|
|
1919
|
+
if (this.xa) {
|
|
1919
1920
|
if (void 0 === b.g.D) {
|
|
1920
1921
|
throw new P("Passing raw pointer to smart pointer is illegal");
|
|
1921
1922
|
}
|
|
@@ -1958,7 +1959,7 @@ function Mc(a, b) {
|
|
|
1958
1959
|
if (!b.g.o) {
|
|
1959
1960
|
throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1960
1961
|
}
|
|
1961
|
-
if (b.g.u.
|
|
1962
|
+
if (b.g.u.wa) {
|
|
1962
1963
|
throw new P(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1963
1964
|
}
|
|
1964
1965
|
return Ic(b.g.o, b.g.u.i, this.i);
|
|
@@ -1967,8 +1968,8 @@ function Nc(a, b, c, d, e, f, g, k, n, m, t) {
|
|
|
1967
1968
|
this.name = a;
|
|
1968
1969
|
this.i = b;
|
|
1969
1970
|
this.Ra = c;
|
|
1970
|
-
this.
|
|
1971
|
-
this.
|
|
1971
|
+
this.wa = d;
|
|
1972
|
+
this.xa = e;
|
|
1972
1973
|
this.bc = f;
|
|
1973
1974
|
this.hc = g;
|
|
1974
1975
|
this.qb = k;
|
|
@@ -2429,22 +2430,22 @@ var Td = (a, b) => {
|
|
|
2429
2430
|
return 0 >= g(r, p) ? 0 >= g(u, p) ? p.getFullYear() + 1 : p.getFullYear() : p.getFullYear() - 1;
|
|
2430
2431
|
}
|
|
2431
2432
|
var m = G[d + 40 >> 2];
|
|
2432
|
-
d = {kc:F[d >> 2], jc:F[d + 4 >> 2],
|
|
2433
|
+
d = {kc:F[d >> 2], jc:F[d + 4 >> 2], Ja:F[d + 8 >> 2], Va:F[d + 12 >> 2], Ka:F[d + 16 >> 2], ca:F[d + 20 >> 2], R:F[d + 24 >> 2], ba:F[d + 28 >> 2], Sc:F[d + 32 >> 2], ic:F[d + 36 >> 2], lc:m ? m ? L(D, m) : "" : ""};
|
|
2433
2434
|
c = c ? L(D, c) : "";
|
|
2434
2435
|
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",};
|
|
2435
2436
|
for (var t in m) {
|
|
2436
2437
|
c = c.replace(new RegExp(t, "g"), m[t]);
|
|
2437
2438
|
}
|
|
2438
2439
|
var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), x = "January February March April May June July August September October November December".split(" ");
|
|
2439
|
-
m = {"%a":p => v[p.R].substring(0, 3), "%A":p => v[p.R], "%b":p => x[p.
|
|
2440
|
-
p = p.
|
|
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.ca + 1900) / 100 | 0, 2), "%d":p => f(p.Va, 2), "%e":p => e(p.Va, 2, " "), "%g":p => n(p).toString().substring(2), "%G":n, "%H":p => f(p.Ja, 2), "%I":p => {
|
|
2441
|
+
p = p.Ja;
|
|
2441
2442
|
0 == p ? p = 12 : 12 < p && (p -= 12);
|
|
2442
2443
|
return f(p, 2);
|
|
2443
2444
|
}, "%j":p => {
|
|
2444
|
-
for (var r = 0, u = 0; u <= p.
|
|
2445
|
+
for (var r = 0, u = 0; u <= p.Ka - 1; r += (ud(p.ca + 1900) ? Yd : Zd)[u++]) {
|
|
2445
2446
|
}
|
|
2446
2447
|
return f(p.Va + r, 3);
|
|
2447
|
-
}, "%m":p => f(p.
|
|
2448
|
+
}, "%m":p => f(p.Ka + 1, 2), "%M":p => f(p.jc, 2), "%n":() => "\n", "%p":p => 0 <= p.Ja && 12 > p.Ja ? "AM" : "PM", "%S":p => f(p.kc, 2), "%t":() => "\t", "%u":p => p.R || 7, "%U":p => f(Math.floor((p.ba + 7 - p.R) / 7), 2), "%V":p => {
|
|
2448
2449
|
var r = Math.floor((p.ba + 7 - (p.R + 6) % 7) / 7);
|
|
2449
2450
|
2 >= (p.R + 371 - p.ba - 2) % 7 && r++;
|
|
2450
2451
|
if (r) {
|
|
@@ -2505,9 +2506,9 @@ Pb("/home/web_user");
|
|
|
2505
2506
|
Pb("/proc/self/fd");
|
|
2506
2507
|
Nb({U() {
|
|
2507
2508
|
var b = rb(a, "fd", 16895, 73);
|
|
2508
|
-
b.j = {
|
|
2509
|
+
b.j = {la(c, d) {
|
|
2509
2510
|
var e = Kb(+d);
|
|
2510
|
-
c = {parent:null, U:{kb:"fake"}, j:{
|
|
2511
|
+
c = {parent:null, U:{kb:"fake"}, j:{ma:() => e.path},};
|
|
2511
2512
|
return c.parent = c;
|
|
2512
2513
|
}};
|
|
2513
2514
|
return b;
|
|
@@ -2553,10 +2554,10 @@ Object.assign(Dc.prototype, {isAliasOf:function(a) {
|
|
|
2553
2554
|
a.g = a.g;
|
|
2554
2555
|
var d = a.g.u.i;
|
|
2555
2556
|
for (a = a.g.o; b.B;) {
|
|
2556
|
-
c = b.
|
|
2557
|
+
c = b.oa(c), b = b.B;
|
|
2557
2558
|
}
|
|
2558
2559
|
for (; d.B;) {
|
|
2559
|
-
a = d.
|
|
2560
|
+
a = d.oa(a), d = d.B;
|
|
2560
2561
|
}
|
|
2561
2562
|
return b === d && c === a;
|
|
2562
2563
|
}, clone:function() {
|
|
@@ -2598,7 +2599,7 @@ Object.assign(Nc.prototype, {Pb(a) {
|
|
|
2598
2599
|
this.O?.(a);
|
|
2599
2600
|
}, argPackAdvance:8, readValueFromPointer:yc, fromWireType:function(a) {
|
|
2600
2601
|
function b() {
|
|
2601
|
-
return this.
|
|
2602
|
+
return this.xa ? vc(this.i.M, {u:this.bc, o:c, J:this, D:a,}) : vc(this.i.M, {u:this, o:a,});
|
|
2602
2603
|
}
|
|
2603
2604
|
var c = this.Pb(a);
|
|
2604
2605
|
if (!c) {
|
|
@@ -2618,9 +2619,9 @@ Object.assign(Nc.prototype, {Pb(a) {
|
|
|
2618
2619
|
if (!d) {
|
|
2619
2620
|
return b.call(this);
|
|
2620
2621
|
}
|
|
2621
|
-
d = this.
|
|
2622
|
+
d = this.wa ? d.Hb : d.pointerType;
|
|
2622
2623
|
var e = qc(c, this.i, d.i);
|
|
2623
|
-
return null === e ? b.call(this) : this.
|
|
2624
|
+
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,});
|
|
2624
2625
|
},});
|
|
2625
2626
|
Uc = l.UnboundTypeError = bc("UnboundTypeError");
|
|
2626
2627
|
for (var W, ce = 0; 32 > ce; ++ce) {
|
|
@@ -2885,8 +2886,8 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2885
2886
|
var C = new Hc(t, r, A, x, u, f, k, m);
|
|
2886
2887
|
if (C.B) {
|
|
2887
2888
|
var H;
|
|
2888
|
-
(H = C.B).
|
|
2889
|
-
C.B.
|
|
2889
|
+
(H = C.B).pa ?? (H.pa = []);
|
|
2890
|
+
C.B.pa.push(C);
|
|
2890
2891
|
}
|
|
2891
2892
|
u = new Nc(t, C, !0, !1, !1);
|
|
2892
2893
|
H = new Nc(t + "*", C, !1, !1, !1);
|
|
@@ -2912,8 +2913,8 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2912
2913
|
T([], k, x => {
|
|
2913
2914
|
x = Xc(t, [x[0], null].concat(x.slice(1)), null, f, g);
|
|
2914
2915
|
void 0 === v[b].A ? (x.fa = c - 1, v[b] = x) : v[b].A[c - 1] = x;
|
|
2915
|
-
if (n.i.
|
|
2916
|
-
for (const p of n.i.
|
|
2916
|
+
if (n.i.pa) {
|
|
2917
|
+
for (const p of n.i.pa) {
|
|
2917
2918
|
p.constructor.hasOwnProperty(b) || (p.constructor[b] = x);
|
|
2918
2919
|
}
|
|
2919
2920
|
}
|
|
@@ -3255,7 +3256,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3255
3256
|
g = a(g);
|
|
3256
3257
|
k < e ? (gb(f, D, c, 17), gb(g, D, d, 17)) : (gb(f, D, d, 17), gb(g, D, c, 17));
|
|
3257
3258
|
}, beginPixelLocalStorageWEBGL:function(a, b, c) {
|
|
3258
|
-
(a = w[a].F.
|
|
3259
|
+
(a = w[a].F.Ea) && a.beginPixelLocalStorageWEBGL(l.HEAPU32.subarray(c, c + b));
|
|
3259
3260
|
}, decode_image:function(a, b, c) {
|
|
3260
3261
|
var d = l.images;
|
|
3261
3262
|
d || (d = new Map(), l.images = d);
|
|
@@ -3323,9 +3324,9 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3323
3324
|
}, enable_WEBGL_shader_pixel_local_storage_coherent:function(a) {
|
|
3324
3325
|
a = w[a].F;
|
|
3325
3326
|
const b = a.getExtension("WEBGL_shader_pixel_local_storage");
|
|
3326
|
-
return b && b.isCoherent() && 5 == b.framebufferTexturePixelLocalStorageWEBGL.length ? (a.
|
|
3327
|
+
return b && b.isCoherent() && 5 == b.framebufferTexturePixelLocalStorageWEBGL.length ? (a.Ea = b, !0) : !1;
|
|
3327
3328
|
}, endPixelLocalStorageWEBGL:function(a, b, c) {
|
|
3328
|
-
(a = w[a].F.
|
|
3329
|
+
(a = w[a].F.Ea) && a.endPixelLocalStorageWEBGL(l.HEAPU32.subarray(c, c + b));
|
|
3329
3330
|
}, environ_get:(a, b) => {
|
|
3330
3331
|
var c = 0;
|
|
3331
3332
|
Qd().forEach((d, e) => {
|
|
@@ -3491,13 +3492,13 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3491
3492
|
return C.$;
|
|
3492
3493
|
}
|
|
3493
3494
|
}, framebufferPixelLocalClearValuefvWEBGL:function(a, b, c, d, e, f) {
|
|
3494
|
-
(a = w[a].F.
|
|
3495
|
+
(a = w[a].F.Ea) && a.framebufferPixelLocalClearValuefvWEBGL(b, [c, d, e, f]);
|
|
3495
3496
|
}, framebufferTexturePixelLocalStorageWEBGL:function(a, b, c, d, e, f) {
|
|
3496
|
-
(a = w[a].F.
|
|
3497
|
+
(a = w[a].F.Ea) && a.framebufferTexturePixelLocalStorageWEBGL(b, Fd[c], d, e, f);
|
|
3497
3498
|
}, glActiveTexture:a => W.activeTexture(a), glAttachShader:(a, b) => {
|
|
3498
3499
|
W.attachShader(V[a], Gd[b]);
|
|
3499
3500
|
}, glBindBuffer:(a, b) => {
|
|
3500
|
-
35051 == a ? W.Oa = b : 35052 == a && (W.
|
|
3501
|
+
35051 == a ? W.Oa = b : 35052 == a && (W.sa = b);
|
|
3501
3502
|
W.bindBuffer(a, Cd[b]);
|
|
3502
3503
|
}, glBindBufferRange:(a, b, c, d, e) => {
|
|
3503
3504
|
W.bindBufferRange(a, b, Cd[c], d, e);
|
|
@@ -3522,11 +3523,11 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3522
3523
|
}, glCompileShader:a => {
|
|
3523
3524
|
W.compileShader(Gd[a]);
|
|
3524
3525
|
}, glCompressedTexSubImage2D:(a, b, c, d, e, f, g, k, n) => {
|
|
3525
|
-
W.
|
|
3526
|
+
W.sa || !k ? W.compressedTexSubImage2D(a, b, c, d, e, f, g, k, n) : W.compressedTexSubImage2D(a, b, c, d, e, f, g, D, n, k);
|
|
3526
3527
|
}, glCreateProgram:() => {
|
|
3527
3528
|
var a = Ld(V), b = W.createProgram();
|
|
3528
3529
|
b.name = a;
|
|
3529
|
-
b.
|
|
3530
|
+
b.Aa = b.ya = b.za = 0;
|
|
3530
3531
|
b.Wa = 1;
|
|
3531
3532
|
V[a] = b;
|
|
3532
3533
|
return a;
|
|
@@ -3537,7 +3538,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3537
3538
|
}, glCullFace:a => W.cullFace(a), glDeleteBuffers:(a, b) => {
|
|
3538
3539
|
for (var c = 0; c < a; c++) {
|
|
3539
3540
|
var d = F[b + 4 * c >> 2], e = Cd[d];
|
|
3540
|
-
e && (W.deleteBuffer(e), e.name = 0, Cd[d] = null, d == W.Oa && (W.Oa = 0), d == W.
|
|
3541
|
+
e && (W.deleteBuffer(e), e.name = 0, Cd[d] = null, d == W.Oa && (W.Oa = 0), d == W.sa && (W.sa = 0));
|
|
3541
3542
|
}
|
|
3542
3543
|
}, glDeleteFramebuffers:(a, b) => {
|
|
3543
3544
|
for (var c = 0; c < a; ++c) {
|
|
@@ -3609,26 +3610,26 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3609
3610
|
if (a = V[a], 35716 == b) {
|
|
3610
3611
|
a = W.getProgramInfoLog(a), null === a && (a = "(unknown error)"), F[c >> 2] = a.length + 1;
|
|
3611
3612
|
} else if (35719 == b) {
|
|
3612
|
-
if (!a.
|
|
3613
|
+
if (!a.Aa) {
|
|
3613
3614
|
for (b = 0; b < W.getProgramParameter(a, 35718); ++b) {
|
|
3614
|
-
a.
|
|
3615
|
+
a.Aa = Math.max(a.Aa, W.getActiveUniform(a, b).name.length + 1);
|
|
3615
3616
|
}
|
|
3616
3617
|
}
|
|
3617
|
-
F[c >> 2] = a.
|
|
3618
|
+
F[c >> 2] = a.Aa;
|
|
3618
3619
|
} else if (35722 == b) {
|
|
3619
|
-
if (!a.
|
|
3620
|
+
if (!a.ya) {
|
|
3620
3621
|
for (b = 0; b < W.getProgramParameter(a, 35721); ++b) {
|
|
3621
|
-
a.
|
|
3622
|
+
a.ya = Math.max(a.ya, W.getActiveAttrib(a, b).name.length + 1);
|
|
3622
3623
|
}
|
|
3623
3624
|
}
|
|
3624
|
-
F[c >> 2] = a.
|
|
3625
|
+
F[c >> 2] = a.ya;
|
|
3625
3626
|
} else if (35381 == b) {
|
|
3626
|
-
if (!a.
|
|
3627
|
+
if (!a.za) {
|
|
3627
3628
|
for (b = 0; b < W.getProgramParameter(a, 35382); ++b) {
|
|
3628
|
-
a.
|
|
3629
|
+
a.za = Math.max(a.za, W.getActiveUniformBlockName(a, b).length + 1);
|
|
3629
3630
|
}
|
|
3630
3631
|
}
|
|
3631
|
-
F[c >> 2] = a.
|
|
3632
|
+
F[c >> 2] = a.za;
|
|
3632
3633
|
} else {
|
|
3633
3634
|
F[c >> 2] = W.getProgramParameter(a, b);
|
|
3634
3635
|
}
|
|
@@ -3668,9 +3669,9 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3668
3669
|
}, glGetUniformBlockIndex:(a, b) => W.getUniformBlockIndex(V[a], b ? L(D, b) : ""), glGetUniformLocation:(a, b) => {
|
|
3669
3670
|
b = b ? L(D, b) : "";
|
|
3670
3671
|
if (a = V[a]) {
|
|
3671
|
-
var c = a, d = c.
|
|
3672
|
+
var c = a, d = c.na, e = c.wb, f;
|
|
3672
3673
|
if (!d) {
|
|
3673
|
-
for (c.
|
|
3674
|
+
for (c.na = d = {}, c.vb = {}, f = 0; f < W.getProgramParameter(c, 35718); ++f) {
|
|
3674
3675
|
var g = W.getActiveUniform(c, f);
|
|
3675
3676
|
var k = g.name;
|
|
3676
3677
|
g = g.size;
|
|
@@ -3684,7 +3685,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3684
3685
|
}
|
|
3685
3686
|
}
|
|
3686
3687
|
}
|
|
3687
|
-
c = a.
|
|
3688
|
+
c = a.na;
|
|
3688
3689
|
d = 0;
|
|
3689
3690
|
e = b;
|
|
3690
3691
|
f = Wd(b);
|
|
@@ -3704,7 +3705,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3704
3705
|
}, glLinkProgram:a => {
|
|
3705
3706
|
a = V[a];
|
|
3706
3707
|
W.linkProgram(a);
|
|
3707
|
-
a.
|
|
3708
|
+
a.na = 0;
|
|
3708
3709
|
a.wb = {};
|
|
3709
3710
|
}, glPixelStorei:(a, b) => {
|
|
3710
3711
|
3317 == a ? Jd = b : 3314 == a && (Kd = b);
|
|
@@ -3725,7 +3726,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3725
3726
|
W.shaderSource(Gd[a], e);
|
|
3726
3727
|
}, 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,
|
|
3727
3728
|
f, g, k, n) => {
|
|
3728
|
-
if (W.
|
|
3729
|
+
if (W.sa) {
|
|
3729
3730
|
W.texSubImage2D(a, b, c, d, e, f, g, k, n);
|
|
3730
3731
|
} else {
|
|
3731
3732
|
if (n) {
|
|
@@ -3746,8 +3747,8 @@ f, g, k, n) => {
|
|
|
3746
3747
|
var c = W, d = c.uniform1i;
|
|
3747
3748
|
var e = W.Ib;
|
|
3748
3749
|
if (e) {
|
|
3749
|
-
var f = e.
|
|
3750
|
-
"number" == typeof f && (e.
|
|
3750
|
+
var f = e.na[a];
|
|
3751
|
+
"number" == typeof f && (e.na[a] = f = W.getUniformLocation(e, e.vb[a] + (0 < f ? `[${f}]` : "")));
|
|
3751
3752
|
a = f;
|
|
3752
3753
|
} else {
|
|
3753
3754
|
X ||= 1282, a = void 0;
|
|
@@ -3909,7 +3910,7 @@ moduleRtn = ca;
|
|
|
3909
3910
|
/* 5 */
|
|
3910
3911
|
/***/ ((module) => {
|
|
3911
3912
|
|
|
3912
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl2","version":"2.38.
|
|
3913
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl2","version":"2.38.1","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}}');
|
|
3913
3914
|
|
|
3914
3915
|
/***/ }),
|
|
3915
3916
|
/* 6 */
|