@rive-app/webgl2-advanced 2.37.8 → 2.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +24 -0
- package/webgl2_advanced.mjs +278 -276
package/webgl2_advanced.mjs
CHANGED
|
@@ -15,9 +15,9 @@ function fa() {
|
|
|
15
15
|
const k = d;
|
|
16
16
|
c = b = 0;
|
|
17
17
|
d = new Map();
|
|
18
|
-
k.forEach(
|
|
18
|
+
k.forEach(n => {
|
|
19
19
|
try {
|
|
20
|
-
|
|
20
|
+
n(g);
|
|
21
21
|
} catch (m) {
|
|
22
22
|
console.error(m);
|
|
23
23
|
}
|
|
@@ -42,10 +42,10 @@ function fa() {
|
|
|
42
42
|
f.innerHTML = "RIVE FPS " + k.toFixed(1);
|
|
43
43
|
}, document.body.appendChild(f));
|
|
44
44
|
e = new function() {
|
|
45
|
-
let k = 0,
|
|
45
|
+
let k = 0, n = 0;
|
|
46
46
|
this.Nb = function() {
|
|
47
47
|
var m = performance.now();
|
|
48
|
-
|
|
48
|
+
n ? (++k, m -= n, 1000 < m && (g(1000 * k / m), k = n = 0)) : (n = m, k = 0);
|
|
49
49
|
};
|
|
50
50
|
}();
|
|
51
51
|
};
|
|
@@ -106,11 +106,11 @@ l.onRuntimeInitialized = function() {
|
|
|
106
106
|
if ("" === f) {
|
|
107
107
|
return !1;
|
|
108
108
|
}
|
|
109
|
-
(function(k,
|
|
109
|
+
(function(k, n) {
|
|
110
110
|
var m = new XMLHttpRequest();
|
|
111
111
|
m.responseType = "arraybuffer";
|
|
112
112
|
m.onreadystatechange = function() {
|
|
113
|
-
4 == m.readyState && 200 == m.status &&
|
|
113
|
+
4 == m.readyState && 200 == m.status && n(m);
|
|
114
114
|
};
|
|
115
115
|
m.open("GET", k, !0);
|
|
116
116
|
m.send(null);
|
|
@@ -133,8 +133,8 @@ l.onRuntimeInitialized = function() {
|
|
|
133
133
|
return !1;
|
|
134
134
|
},});
|
|
135
135
|
let e = l.computeAlignment;
|
|
136
|
-
l.computeAlignment = function(f, g, k,
|
|
137
|
-
return e.call(this, f, g, k,
|
|
136
|
+
l.computeAlignment = function(f, g, k, n, m = 1.0) {
|
|
137
|
+
return e.call(this, f, g, k, n, m);
|
|
138
138
|
};
|
|
139
139
|
};
|
|
140
140
|
const ja = l.onRuntimeInitialized;
|
|
@@ -180,19 +180,19 @@ l.onRuntimeInitialized = function() {
|
|
|
180
180
|
z = ka(u, z);
|
|
181
181
|
la(z);
|
|
182
182
|
const A = f(r.width, r.height);
|
|
183
|
-
A.
|
|
183
|
+
A.Ma = z;
|
|
184
184
|
A.G = r;
|
|
185
|
-
A.
|
|
185
|
+
A.Na = r.width;
|
|
186
186
|
A.Za = r.height;
|
|
187
187
|
A.T = u;
|
|
188
188
|
var C = A.delete;
|
|
189
189
|
A.delete = function() {
|
|
190
190
|
C.call(this);
|
|
191
|
-
var H = this.
|
|
191
|
+
var H = this.Ma;
|
|
192
192
|
q === w[H] && (q = null);
|
|
193
193
|
"object" == typeof JSEvents && JSEvents.Qc(w[H].F.canvas);
|
|
194
194
|
w[H] && w[H].F.canvas && (w[H].F.canvas.zb = void 0);
|
|
195
|
-
this.
|
|
195
|
+
this.Ma = this.G = this.Na = this.T = w[H] = null;
|
|
196
196
|
};
|
|
197
197
|
return A;
|
|
198
198
|
}
|
|
@@ -200,7 +200,7 @@ l.onRuntimeInitialized = function() {
|
|
|
200
200
|
if (d) {
|
|
201
201
|
var r = d.Db, u = 0, z = 0, A = 0, C = Array(e.size), H = 0;
|
|
202
202
|
for (var J of e) {
|
|
203
|
-
J.ea = Math.min(J.G.width, r), J.da = Math.min(J.G.height, r), J.
|
|
203
|
+
J.ea = Math.min(J.G.width, r), J.da = Math.min(J.G.height, r), J.Ka = J.da * J.ea, u = Math.max(u, J.ea), z = Math.max(z, J.da), A += J.Ka, C[H++] = J;
|
|
204
204
|
}
|
|
205
205
|
e.clear();
|
|
206
206
|
if (!(0 >= A)) {
|
|
@@ -210,7 +210,7 @@ l.onRuntimeInitialized = function() {
|
|
|
210
210
|
}
|
|
211
211
|
u = Math.min(u, r);
|
|
212
212
|
u = Math.min(z, r);
|
|
213
|
-
C.sort((Z, ob) => ob.
|
|
213
|
+
C.sort((Z, ob) => ob.Ka - Z.Ka);
|
|
214
214
|
A = new l.DynamicRectanizer(r);
|
|
215
215
|
for (J = 0; J < C.length;) {
|
|
216
216
|
A.reset(u, z);
|
|
@@ -223,7 +223,7 @@ l.onRuntimeInitialized = function() {
|
|
|
223
223
|
K.pa = I & 65535;
|
|
224
224
|
K.qa = I >> 16;
|
|
225
225
|
}
|
|
226
|
-
K =
|
|
226
|
+
K = n.push(A.drawWidth());
|
|
227
227
|
I = m.push(A.drawHeight());
|
|
228
228
|
console.assert(K >= A.drawWidth());
|
|
229
229
|
console.assert(I >= A.drawHeight());
|
|
@@ -271,9 +271,9 @@ l.onRuntimeInitialized = function() {
|
|
|
271
271
|
}
|
|
272
272
|
d.Ya = !!d.T.getExtension("WEBGL_shader_pixel_local_storage");
|
|
273
273
|
d.Db = Math.min(d.T.getParameter(d.T.MAX_RENDERBUFFER_SIZE), d.T.getParameter(d.T.MAX_TEXTURE_SIZE));
|
|
274
|
-
d.
|
|
274
|
+
d.La = !d.Ya;
|
|
275
275
|
if (A = d.T.getExtension("WEBGL_debug_renderer_info")) {
|
|
276
|
-
C = d.T.getParameter(A.UNMASKED_RENDERER_WEBGL), d.T.getParameter(A.UNMASKED_VENDOR_WEBGL).includes("Google") && C.includes("ANGLE Metal Renderer") && (d.
|
|
276
|
+
C = d.T.getParameter(A.UNMASKED_RENDERER_WEBGL), d.T.getParameter(A.UNMASKED_VENDOR_WEBGL).includes("Google") && C.includes("ANGLE Metal Renderer") && (d.La = !1);
|
|
277
277
|
}
|
|
278
278
|
return d;
|
|
279
279
|
}
|
|
@@ -281,9 +281,9 @@ l.onRuntimeInitialized = function() {
|
|
|
281
281
|
if (!d) {
|
|
282
282
|
throw "Unable to create WebGL context, your environment may not support WebGL. Try out @rive-app/canvas as an alternative.";
|
|
283
283
|
}
|
|
284
|
-
d.
|
|
284
|
+
d.La || (d = z(!1));
|
|
285
285
|
}
|
|
286
|
-
return u ? new a(r) : b(r, d.
|
|
286
|
+
return u ? new a(r) : b(r, d.La);
|
|
287
287
|
};
|
|
288
288
|
const g = l.Artboard.prototype["delete"];
|
|
289
289
|
l.Artboard.prototype["delete"] = function() {
|
|
@@ -296,7 +296,7 @@ l.onRuntimeInitialized = function() {
|
|
|
296
296
|
this.Fb || k.call(this, r.Eb);
|
|
297
297
|
}) : k.call(this, r);
|
|
298
298
|
};
|
|
299
|
-
const
|
|
299
|
+
const n = new ha(), m = new ha(), t = new fa();
|
|
300
300
|
l.requestAnimationFrame = t.requestAnimationFrame.bind(t);
|
|
301
301
|
l.cancelAnimationFrame = t.cancelAnimationFrame.bind(t);
|
|
302
302
|
l.enableFPSCounter = t.Lb.bind(t);
|
|
@@ -311,10 +311,10 @@ l.onRuntimeInitialized = function() {
|
|
|
311
311
|
};
|
|
312
312
|
const x = l.WebGL2Renderer.prototype.clear;
|
|
313
313
|
l.WebGL2Renderer.prototype.clear = function() {
|
|
314
|
-
la(this.
|
|
314
|
+
la(this.Ma);
|
|
315
315
|
const r = this.G;
|
|
316
|
-
if (this.
|
|
317
|
-
this.resize(r.width, r.height), this.
|
|
316
|
+
if (this.Na != r.width || this.Za != r.height) {
|
|
317
|
+
this.resize(r.width, r.height), this.Na = r.width, this.Za = r.height;
|
|
318
318
|
}
|
|
319
319
|
x.call(this);
|
|
320
320
|
};
|
|
@@ -322,9 +322,9 @@ l.onRuntimeInitialized = function() {
|
|
|
322
322
|
r = l.decodeWebGL2Image(r);
|
|
323
323
|
u(r);
|
|
324
324
|
};
|
|
325
|
-
let
|
|
325
|
+
let p = l.Renderer.prototype.align;
|
|
326
326
|
l.Renderer.prototype.align = function(r, u, z, A, C = 1.0) {
|
|
327
|
-
|
|
327
|
+
p.call(this, r, u, z, A, C);
|
|
328
328
|
};
|
|
329
329
|
};
|
|
330
330
|
var ma = Object.assign({}, l), na = "./this.program", y = "", oa, pa;
|
|
@@ -418,14 +418,14 @@ function Na(a, b) {
|
|
|
418
418
|
return Ma(c, a, b);
|
|
419
419
|
}));
|
|
420
420
|
}
|
|
421
|
-
var Oa, Pa, Ta = {
|
|
421
|
+
var Oa, Pa, Ta = {570520:(a, b, c, d, e) => {
|
|
422
422
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
423
423
|
return 0;
|
|
424
424
|
}
|
|
425
425
|
if ("undefined" === typeof window.h) {
|
|
426
|
-
window.h = {
|
|
426
|
+
window.h = {Fa:0};
|
|
427
427
|
window.h.I = {};
|
|
428
|
-
window.h.I.
|
|
428
|
+
window.h.I.Ca = a;
|
|
429
429
|
window.h.I.capture = b;
|
|
430
430
|
window.h.I.Pa = c;
|
|
431
431
|
window.h.ha = {};
|
|
@@ -458,7 +458,7 @@ var Oa, Pa, Ta = {569016:(a, b, c, d, e) => {
|
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
460
|
};
|
|
461
|
-
f.
|
|
461
|
+
f.ta = function(g) {
|
|
462
462
|
return f.C[g];
|
|
463
463
|
};
|
|
464
464
|
f.Xa = ["touchend", "click"];
|
|
@@ -467,25 +467,25 @@ var Oa, Pa, Ta = {569016:(a, b, c, d, e) => {
|
|
|
467
467
|
var k = f.C[g];
|
|
468
468
|
null != k && null != k.K && k.state === f.ha.ub && k.K.resume().then(() => {
|
|
469
469
|
Qa(k.nb);
|
|
470
|
-
},
|
|
471
|
-
console.error("Failed to resume audiocontext",
|
|
470
|
+
}, n => {
|
|
471
|
+
console.error("Failed to resume audiocontext", n);
|
|
472
472
|
});
|
|
473
473
|
}
|
|
474
|
-
f.Xa.map(function(
|
|
475
|
-
document.removeEventListener(
|
|
474
|
+
f.Xa.map(function(n) {
|
|
475
|
+
document.removeEventListener(n, f.unlock, !0);
|
|
476
476
|
});
|
|
477
477
|
};
|
|
478
478
|
f.Xa.map(function(g) {
|
|
479
479
|
document.addEventListener(g, f.unlock, !0);
|
|
480
480
|
});
|
|
481
481
|
}
|
|
482
|
-
window.h.
|
|
482
|
+
window.h.Fa += 1;
|
|
483
483
|
return 1;
|
|
484
|
-
},
|
|
484
|
+
}, 572698:() => {
|
|
485
485
|
"undefined" !== typeof window.h && (window.h.Xa.map(function(a) {
|
|
486
486
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
487
|
-
}), --window.h.
|
|
488
|
-
},
|
|
487
|
+
}), --window.h.Fa, 0 === window.h.Fa && delete window.h);
|
|
488
|
+
}, 573002:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 573106:() => {
|
|
489
489
|
try {
|
|
490
490
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
491
491
|
a.close();
|
|
@@ -493,68 +493,68 @@ var Oa, Pa, Ta = {569016:(a, b, c, d, e) => {
|
|
|
493
493
|
} catch (c) {
|
|
494
494
|
return 0;
|
|
495
495
|
}
|
|
496
|
-
},
|
|
496
|
+
}, 573277:(a, b, c, d, e, f) => {
|
|
497
497
|
if ("undefined" === typeof window.h) {
|
|
498
498
|
return -1;
|
|
499
499
|
}
|
|
500
500
|
var g = {}, k = {};
|
|
501
|
-
a == window.h.I.
|
|
501
|
+
a == window.h.I.Ca && 0 != c && (k.sampleRate = c);
|
|
502
502
|
g.K = new (window.AudioContext || window.webkitAudioContext)(k);
|
|
503
503
|
g.K.suspend();
|
|
504
504
|
g.state = window.h.ha.stopped;
|
|
505
505
|
c = 0;
|
|
506
|
-
a != window.h.I.
|
|
506
|
+
a != window.h.I.Ca && (c = b);
|
|
507
507
|
g.Y = g.K.createScriptProcessor(d, c, b);
|
|
508
|
-
g.Y.onaudioprocess = function(
|
|
509
|
-
if (null == g.
|
|
510
|
-
g.
|
|
508
|
+
g.Y.onaudioprocess = function(n) {
|
|
509
|
+
if (null == g.ua || 0 == g.ua.length) {
|
|
510
|
+
g.ua = new Float32Array(xa.buffer, e, d * b);
|
|
511
511
|
}
|
|
512
512
|
if (a == window.h.I.capture || a == window.h.I.Pa) {
|
|
513
513
|
for (var m = 0; m < b; m += 1) {
|
|
514
|
-
for (var t =
|
|
514
|
+
for (var t = n.inputBuffer.getChannelData(m), v = g.ua, x = 0; x < d; x += 1) {
|
|
515
515
|
v[x * b + m] = t[x];
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
Ra(f, d, e);
|
|
519
519
|
}
|
|
520
|
-
if (a == window.h.I.
|
|
521
|
-
for (Sa(f, d, e), m = 0; m <
|
|
522
|
-
for (t =
|
|
520
|
+
if (a == window.h.I.Ca || a == window.h.I.Pa) {
|
|
521
|
+
for (Sa(f, d, e), m = 0; m < n.outputBuffer.numberOfChannels; ++m) {
|
|
522
|
+
for (t = n.outputBuffer.getChannelData(m), v = g.ua, x = 0; x < d; x += 1) {
|
|
523
523
|
t[x] = v[x * b + m];
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
526
|
} else {
|
|
527
|
-
for (m = 0; m <
|
|
528
|
-
|
|
527
|
+
for (m = 0; m < n.outputBuffer.numberOfChannels; ++m) {
|
|
528
|
+
n.outputBuffer.getChannelData(m).fill(0.0);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
};
|
|
532
|
-
a != window.h.I.capture && a != window.h.I.Pa || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(
|
|
533
|
-
g.
|
|
534
|
-
g.
|
|
532
|
+
a != window.h.I.capture && a != window.h.I.Pa || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(n) {
|
|
533
|
+
g.Ga = g.K.createMediaStreamSource(n);
|
|
534
|
+
g.Ga.connect(g.Y);
|
|
535
535
|
g.Y.connect(g.K.destination);
|
|
536
|
-
}).catch(function(
|
|
537
|
-
console.log("Failed to get user media: " +
|
|
536
|
+
}).catch(function(n) {
|
|
537
|
+
console.log("Failed to get user media: " + n);
|
|
538
538
|
});
|
|
539
|
-
a == window.h.I.
|
|
539
|
+
a == window.h.I.Ca && g.Y.connect(g.K.destination);
|
|
540
540
|
g.nb = f;
|
|
541
541
|
return window.h.mc(g);
|
|
542
|
-
},
|
|
543
|
-
a = window.h.
|
|
542
|
+
}, 576154:a => window.h.ta(a).K.sampleRate, 576227:a => {
|
|
543
|
+
a = window.h.ta(a);
|
|
544
544
|
void 0 !== a.Y && (a.Y.onaudioprocess = function() {
|
|
545
545
|
}, a.Y.disconnect(), a.Y = void 0);
|
|
546
|
-
void 0 !== a.
|
|
546
|
+
void 0 !== a.Ga && (a.Ga.disconnect(), a.Ga = void 0);
|
|
547
547
|
a.K.close();
|
|
548
548
|
a.K = void 0;
|
|
549
549
|
a.nb = void 0;
|
|
550
|
-
},
|
|
550
|
+
}, 576627:a => {
|
|
551
551
|
window.h.yb(a);
|
|
552
|
-
},
|
|
553
|
-
a = window.h.
|
|
552
|
+
}, 576677:a => {
|
|
553
|
+
a = window.h.ta(a);
|
|
554
554
|
a.K.resume();
|
|
555
555
|
a.state = window.h.ha.ub;
|
|
556
|
-
},
|
|
557
|
-
a = window.h.
|
|
556
|
+
}, 576816:a => {
|
|
557
|
+
a = window.h.ta(a);
|
|
558
558
|
a.K.suspend();
|
|
559
559
|
a.state = window.h.ha.stopped;
|
|
560
560
|
}}, Ua = a => {
|
|
@@ -705,16 +705,16 @@ function jb(a, b) {
|
|
|
705
705
|
kb(a, lb);
|
|
706
706
|
}
|
|
707
707
|
var lb = {open(a) {
|
|
708
|
-
var b = ib[a.node.
|
|
708
|
+
var b = ib[a.node.Ea];
|
|
709
709
|
if (!b) {
|
|
710
710
|
throw new M(43);
|
|
711
711
|
}
|
|
712
712
|
a.s = b;
|
|
713
713
|
a.seekable = !1;
|
|
714
714
|
}, close(a) {
|
|
715
|
-
a.s.V.
|
|
716
|
-
},
|
|
717
|
-
a.s.V.
|
|
715
|
+
a.s.V.sa(a.s);
|
|
716
|
+
}, sa(a) {
|
|
717
|
+
a.s.V.sa(a.s);
|
|
718
718
|
}, read(a, b, c, d) {
|
|
719
719
|
if (!a.s || !a.s.V.hb) {
|
|
720
720
|
throw new M(60);
|
|
@@ -765,7 +765,7 @@ var lb = {open(a) {
|
|
|
765
765
|
return a;
|
|
766
766
|
}, Sa(a, b) {
|
|
767
767
|
null === b || 10 === b ? (ra(L(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
|
|
768
|
-
},
|
|
768
|
+
}, sa(a) {
|
|
769
769
|
a.H && 0 < a.H.length && (ra(L(a.H, 0)), a.H = []);
|
|
770
770
|
}, Wb() {
|
|
771
771
|
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,]};
|
|
@@ -775,7 +775,7 @@ var lb = {open(a) {
|
|
|
775
775
|
return [24, 80];
|
|
776
776
|
},}, nb = {Sa(a, b) {
|
|
777
777
|
null === b || 10 === b ? (sa(L(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
|
|
778
|
-
},
|
|
778
|
+
}, sa(a) {
|
|
779
779
|
a.H && 0 < a.H.length && (sa(L(a.H, 0)), a.H = []);
|
|
780
780
|
},};
|
|
781
781
|
function pb(a, b) {
|
|
@@ -788,7 +788,7 @@ var N = {N:null, U() {
|
|
|
788
788
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
789
789
|
throw new M(63);
|
|
790
790
|
}
|
|
791
|
-
N.N || (N.N = {dir:{node:{X:N.j.X, P:N.j.P, ka:N.j.ka,
|
|
791
|
+
N.N || (N.N = {dir:{node:{X:N.j.X, P:N.j.P, ka:N.j.ka, Aa:N.j.Aa, sb:N.j.sb, xb:N.j.xb, tb:N.j.tb, rb:N.j.rb, Ha:N.j.Ha}, 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, la:N.j.la}, stream:{}}, ab:{node:{X:N.j.X, P:N.j.P}, stream:qb}});
|
|
792
792
|
c = rb(a, b, c, d);
|
|
793
793
|
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);
|
|
794
794
|
c.timestamp = Date.now();
|
|
@@ -804,7 +804,7 @@ var N = {N:null, U() {
|
|
|
804
804
|
b.Nc = 1;
|
|
805
805
|
b.uid = 0;
|
|
806
806
|
b.Gc = 0;
|
|
807
|
-
b.
|
|
807
|
+
b.Ea = a.Ea;
|
|
808
808
|
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;
|
|
809
809
|
b.tc = new Date(a.timestamp);
|
|
810
810
|
b.Mc = new Date(a.timestamp);
|
|
@@ -827,7 +827,7 @@ var N = {N:null, U() {
|
|
|
827
827
|
}
|
|
828
828
|
}, ka() {
|
|
829
829
|
throw sb[44];
|
|
830
|
-
},
|
|
830
|
+
}, Aa(a, b, c, d) {
|
|
831
831
|
return N.createNode(a, b, c, d);
|
|
832
832
|
}, sb(a, b, c) {
|
|
833
833
|
if (16384 === (a.mode & 61440)) {
|
|
@@ -862,7 +862,7 @@ var N = {N:null, U() {
|
|
|
862
862
|
b.push(c);
|
|
863
863
|
}
|
|
864
864
|
return b;
|
|
865
|
-
},
|
|
865
|
+
}, Ha(a, b, c) {
|
|
866
866
|
a = N.createNode(a, b, 41471, 0);
|
|
867
867
|
a.link = c;
|
|
868
868
|
return a;
|
|
@@ -977,13 +977,13 @@ var N = {N:null, U() {
|
|
|
977
977
|
a ||= this;
|
|
978
978
|
this.parent = a;
|
|
979
979
|
this.U = a.U;
|
|
980
|
-
this.
|
|
980
|
+
this.Ba = null;
|
|
981
981
|
this.id = yb++;
|
|
982
982
|
this.name = b;
|
|
983
983
|
this.mode = c;
|
|
984
984
|
this.j = {};
|
|
985
985
|
this.m = {};
|
|
986
|
-
this.
|
|
986
|
+
this.Ea = d;
|
|
987
987
|
}
|
|
988
988
|
get read() {
|
|
989
989
|
return 365 === (this.mode & 365);
|
|
@@ -1015,7 +1015,7 @@ function Db(a, b = {}) {
|
|
|
1015
1015
|
}
|
|
1016
1016
|
c = tb(c, a[e]);
|
|
1017
1017
|
d = Ya(d + "/" + a[e]);
|
|
1018
|
-
c.
|
|
1018
|
+
c.Ba && (!f || f && b.gb) && (c = c.Ba.root);
|
|
1019
1019
|
if (!f || b.fb) {
|
|
1020
1020
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
1021
1021
|
if (c = Eb(d), d = cb(Za(d), c), c = Db(d, {Ua:b.Ua + 1}).node, 40 < f++) {
|
|
@@ -1113,7 +1113,7 @@ function Mb(a, b = -1) {
|
|
|
1113
1113
|
return a;
|
|
1114
1114
|
}
|
|
1115
1115
|
var qb = {open(a) {
|
|
1116
|
-
a.m = wb[a.node.
|
|
1116
|
+
a.m = wb[a.node.Ea].m;
|
|
1117
1117
|
a.m.open?.(a);
|
|
1118
1118
|
}, aa() {
|
|
1119
1119
|
throw new M(70);
|
|
@@ -1130,7 +1130,7 @@ function Nb(a, b) {
|
|
|
1130
1130
|
var d = Db(b, {gb:!1});
|
|
1131
1131
|
b = d.path;
|
|
1132
1132
|
d = d.node;
|
|
1133
|
-
if (d.
|
|
1133
|
+
if (d.Ba) {
|
|
1134
1134
|
throw new M(10);
|
|
1135
1135
|
}
|
|
1136
1136
|
if (16384 !== (d.mode & 61440)) {
|
|
@@ -1141,7 +1141,7 @@ function Nb(a, b) {
|
|
|
1141
1141
|
a = a.U(b);
|
|
1142
1142
|
a.U = b;
|
|
1143
1143
|
b.root = a;
|
|
1144
|
-
c ? vb = a : d && (d.
|
|
1144
|
+
c ? vb = a : d && (d.Ba = b, d.U && d.U.Zb.push(b));
|
|
1145
1145
|
}
|
|
1146
1146
|
function Ob(a, b, c) {
|
|
1147
1147
|
var d = Db(a, {parent:!0}).node;
|
|
@@ -1153,10 +1153,10 @@ function Ob(a, b, c) {
|
|
|
1153
1153
|
if (e) {
|
|
1154
1154
|
throw new M(e);
|
|
1155
1155
|
}
|
|
1156
|
-
if (!d.j.
|
|
1156
|
+
if (!d.j.Aa) {
|
|
1157
1157
|
throw new M(63);
|
|
1158
1158
|
}
|
|
1159
|
-
return d.j.
|
|
1159
|
+
return d.j.Aa(d, a, b, c);
|
|
1160
1160
|
}
|
|
1161
1161
|
function Pb(a) {
|
|
1162
1162
|
return Ob(a, 16895, 0);
|
|
@@ -1178,10 +1178,10 @@ function Rb(a, b) {
|
|
|
1178
1178
|
if (d) {
|
|
1179
1179
|
throw new M(d);
|
|
1180
1180
|
}
|
|
1181
|
-
if (!c.j.
|
|
1181
|
+
if (!c.j.Ha) {
|
|
1182
1182
|
throw new M(63);
|
|
1183
1183
|
}
|
|
1184
|
-
c.j.
|
|
1184
|
+
c.j.Ha(c, b, a);
|
|
1185
1185
|
}
|
|
1186
1186
|
function Eb(a) {
|
|
1187
1187
|
a = Db(a).node;
|
|
@@ -1280,8 +1280,8 @@ function Wb(a, b, c) {
|
|
|
1280
1280
|
f.seekable = !1;
|
|
1281
1281
|
}, close() {
|
|
1282
1282
|
c?.buffer?.length && c(10);
|
|
1283
|
-
}, read(f, g, k,
|
|
1284
|
-
for (var m = 0, t = 0; t <
|
|
1283
|
+
}, read(f, g, k, n) {
|
|
1284
|
+
for (var m = 0, t = 0; t < n; t++) {
|
|
1285
1285
|
try {
|
|
1286
1286
|
var v = b();
|
|
1287
1287
|
} catch (x) {
|
|
@@ -1298,15 +1298,15 @@ function Wb(a, b, c) {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
m && (f.node.timestamp = Date.now());
|
|
1300
1300
|
return m;
|
|
1301
|
-
}, write(f, g, k,
|
|
1302
|
-
for (var m = 0; m <
|
|
1301
|
+
}, write(f, g, k, n) {
|
|
1302
|
+
for (var m = 0; m < n; m++) {
|
|
1303
1303
|
try {
|
|
1304
1304
|
c(g[k + m]);
|
|
1305
1305
|
} catch (t) {
|
|
1306
1306
|
throw new M(29);
|
|
1307
1307
|
}
|
|
1308
1308
|
}
|
|
1309
|
-
|
|
1309
|
+
n && (f.node.timestamp = Date.now());
|
|
1310
1310
|
return m;
|
|
1311
1311
|
}});
|
|
1312
1312
|
Qb(a, d, e);
|
|
@@ -1430,17 +1430,17 @@ var zc = {}, Ac = {}, T = (a, b, c) => {
|
|
|
1430
1430
|
if (k.length !== a.length) {
|
|
1431
1431
|
throw new tc("Mismatched type converter count");
|
|
1432
1432
|
}
|
|
1433
|
-
for (var
|
|
1434
|
-
S(a[
|
|
1433
|
+
for (var n = 0; n < a.length; ++n) {
|
|
1434
|
+
S(a[n], k[n]);
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
1437
|
a.forEach(function(k) {
|
|
1438
1438
|
Ac[k] = b;
|
|
1439
1439
|
});
|
|
1440
1440
|
var e = Array(b.length), f = [], g = 0;
|
|
1441
|
-
b.forEach((k,
|
|
1442
|
-
jc.hasOwnProperty(k) ? e[
|
|
1443
|
-
e[
|
|
1441
|
+
b.forEach((k, n) => {
|
|
1442
|
+
jc.hasOwnProperty(k) ? e[n] = jc[k] : (f.push(k), zc.hasOwnProperty(k) || (zc[k] = []), zc[k].push(() => {
|
|
1443
|
+
e[n] = jc[k];
|
|
1444
1444
|
++g;
|
|
1445
1445
|
g === f.length && d(e);
|
|
1446
1446
|
}));
|
|
@@ -1547,7 +1547,7 @@ function Lc(a, b) {
|
|
|
1547
1547
|
if (this.Ra) {
|
|
1548
1548
|
throw new P(`null is not a valid ${this.name}`);
|
|
1549
1549
|
}
|
|
1550
|
-
if (this.
|
|
1550
|
+
if (this.wa) {
|
|
1551
1551
|
var c = this.Ta();
|
|
1552
1552
|
null !== a && a.push(this.O, c);
|
|
1553
1553
|
return c;
|
|
@@ -1560,11 +1560,11 @@ function Lc(a, b) {
|
|
|
1560
1560
|
if (!b.g.o) {
|
|
1561
1561
|
throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1562
1562
|
}
|
|
1563
|
-
if (!this.
|
|
1563
|
+
if (!this.va && b.g.u.va) {
|
|
1564
1564
|
throw new P(`Cannot convert argument of type ${b.g.J ? b.g.J.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1565
1565
|
}
|
|
1566
1566
|
c = Ic(b.g.o, b.g.u.i, this.i);
|
|
1567
|
-
if (this.
|
|
1567
|
+
if (this.wa) {
|
|
1568
1568
|
if (void 0 === b.g.D) {
|
|
1569
1569
|
throw new P("Passing raw pointer to smart pointer is illegal");
|
|
1570
1570
|
}
|
|
@@ -1607,21 +1607,21 @@ function Mc(a, b) {
|
|
|
1607
1607
|
if (!b.g.o) {
|
|
1608
1608
|
throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1609
1609
|
}
|
|
1610
|
-
if (b.g.u.
|
|
1610
|
+
if (b.g.u.va) {
|
|
1611
1611
|
throw new P(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1612
1612
|
}
|
|
1613
1613
|
return Ic(b.g.o, b.g.u.i, this.i);
|
|
1614
1614
|
}
|
|
1615
|
-
function Nc(a, b, c, d, e, f, g, k,
|
|
1615
|
+
function Nc(a, b, c, d, e, f, g, k, n, m, t) {
|
|
1616
1616
|
this.name = a;
|
|
1617
1617
|
this.i = b;
|
|
1618
1618
|
this.Ra = c;
|
|
1619
|
-
this.
|
|
1620
|
-
this.
|
|
1619
|
+
this.va = d;
|
|
1620
|
+
this.wa = e;
|
|
1621
1621
|
this.bc = f;
|
|
1622
1622
|
this.hc = g;
|
|
1623
1623
|
this.qb = k;
|
|
1624
|
-
this.Ta =
|
|
1624
|
+
this.Ta = n;
|
|
1625
1625
|
this.cc = m;
|
|
1626
1626
|
this.O = t;
|
|
1627
1627
|
e || void 0 !== b.B ? this.toWireType = Lc : (this.toWireType = d ? Jc : Mc, this.L = null);
|
|
@@ -1666,10 +1666,10 @@ function Xc(a, b, c, d, e) {
|
|
|
1666
1666
|
if (2 > f) {
|
|
1667
1667
|
throw new P("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1668
1668
|
}
|
|
1669
|
-
var g = null !== b[1] && null !== c, k = Wc(b),
|
|
1670
|
-
return Zb(a, function(...
|
|
1671
|
-
if (
|
|
1672
|
-
throw new P(`function ${a} called with ${
|
|
1669
|
+
var g = null !== b[1] && null !== c, k = Wc(b), n = "void" !== b[0].name, m = f - 2, t = Array(m), v = [], x = [];
|
|
1670
|
+
return Zb(a, function(...p) {
|
|
1671
|
+
if (p.length !== m) {
|
|
1672
|
+
throw new P(`function ${a} called with ${p.length} arguments, expected ${m}`);
|
|
1673
1673
|
}
|
|
1674
1674
|
x.length = 0;
|
|
1675
1675
|
v.length = g ? 2 : 1;
|
|
@@ -1679,9 +1679,9 @@ function Xc(a, b, c, d, e) {
|
|
|
1679
1679
|
v[1] = r;
|
|
1680
1680
|
}
|
|
1681
1681
|
for (var u = 0; u < m; ++u) {
|
|
1682
|
-
t[u] = b[u + 2].toWireType(x,
|
|
1682
|
+
t[u] = b[u + 2].toWireType(x, p[u]), v.push(t[u]);
|
|
1683
1683
|
}
|
|
1684
|
-
|
|
1684
|
+
p = d(...v);
|
|
1685
1685
|
if (k) {
|
|
1686
1686
|
xc(x);
|
|
1687
1687
|
} else {
|
|
@@ -1690,7 +1690,7 @@ function Xc(a, b, c, d, e) {
|
|
|
1690
1690
|
null !== b[u].L && b[u].L(z);
|
|
1691
1691
|
}
|
|
1692
1692
|
}
|
|
1693
|
-
r =
|
|
1693
|
+
r = n ? b[0].fromWireType(p) : void 0;
|
|
1694
1694
|
return r;
|
|
1695
1695
|
});
|
|
1696
1696
|
}
|
|
@@ -2026,90 +2026,90 @@ var Td = (a, b) => {
|
|
|
2026
2026
|
a -= 5120;
|
|
2027
2027
|
return 0 == a ? B : 1 == a ? D : 2 == a ? E : 4 == a ? F : 6 == a ? xa : 5 == a || 28922 == a || 28520 == a || 30779 == a || 30782 == a ? G : wa;
|
|
2028
2028
|
}, Yd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Zd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], $d = (a, b, c, d) => {
|
|
2029
|
-
function e(
|
|
2030
|
-
for (
|
|
2031
|
-
|
|
2029
|
+
function e(p, r, u) {
|
|
2030
|
+
for (p = "number" == typeof p ? p.toString() : p || ""; p.length < r;) {
|
|
2031
|
+
p = u[0] + p;
|
|
2032
2032
|
}
|
|
2033
|
-
return
|
|
2033
|
+
return p;
|
|
2034
2034
|
}
|
|
2035
|
-
function f(
|
|
2036
|
-
return e(
|
|
2035
|
+
function f(p, r) {
|
|
2036
|
+
return e(p, r, "0");
|
|
2037
2037
|
}
|
|
2038
|
-
function g(
|
|
2038
|
+
function g(p, r) {
|
|
2039
2039
|
function u(A) {
|
|
2040
2040
|
return 0 > A ? -1 : 0 < A ? 1 : 0;
|
|
2041
2041
|
}
|
|
2042
2042
|
var z;
|
|
2043
|
-
0 === (z = u(
|
|
2043
|
+
0 === (z = u(p.getFullYear() - r.getFullYear())) && 0 === (z = u(p.getMonth() - r.getMonth())) && (z = u(p.getDate() - r.getDate()));
|
|
2044
2044
|
return z;
|
|
2045
2045
|
}
|
|
2046
|
-
function k(
|
|
2047
|
-
switch(
|
|
2046
|
+
function k(p) {
|
|
2047
|
+
switch(p.getDay()) {
|
|
2048
2048
|
case 0:
|
|
2049
|
-
return new Date(
|
|
2049
|
+
return new Date(p.getFullYear() - 1, 11, 29);
|
|
2050
2050
|
case 1:
|
|
2051
|
-
return
|
|
2051
|
+
return p;
|
|
2052
2052
|
case 2:
|
|
2053
|
-
return new Date(
|
|
2053
|
+
return new Date(p.getFullYear(), 0, 3);
|
|
2054
2054
|
case 3:
|
|
2055
|
-
return new Date(
|
|
2055
|
+
return new Date(p.getFullYear(), 0, 2);
|
|
2056
2056
|
case 4:
|
|
2057
|
-
return new Date(
|
|
2057
|
+
return new Date(p.getFullYear(), 0, 1);
|
|
2058
2058
|
case 5:
|
|
2059
|
-
return new Date(
|
|
2059
|
+
return new Date(p.getFullYear() - 1, 11, 31);
|
|
2060
2060
|
case 6:
|
|
2061
|
-
return new Date(
|
|
2061
|
+
return new Date(p.getFullYear() - 1, 11, 30);
|
|
2062
2062
|
}
|
|
2063
2063
|
}
|
|
2064
|
-
function p
|
|
2065
|
-
var r =
|
|
2066
|
-
for (
|
|
2067
|
-
var u =
|
|
2068
|
-
if (r > z -
|
|
2069
|
-
r -= z -
|
|
2064
|
+
function n(p) {
|
|
2065
|
+
var r = p.ba;
|
|
2066
|
+
for (p = new Date((new Date(p.ca + 1900, 0, 1)).getTime()); 0 < r;) {
|
|
2067
|
+
var u = p.getMonth(), z = (ud(p.getFullYear()) ? Yd : Zd)[u];
|
|
2068
|
+
if (r > z - p.getDate()) {
|
|
2069
|
+
r -= z - p.getDate() + 1, p.setDate(1), 11 > u ? p.setMonth(u + 1) : (p.setMonth(0), p.setFullYear(p.getFullYear() + 1));
|
|
2070
2070
|
} else {
|
|
2071
|
-
|
|
2071
|
+
p.setDate(p.getDate() + r);
|
|
2072
2072
|
break;
|
|
2073
2073
|
}
|
|
2074
2074
|
}
|
|
2075
|
-
u = new Date(
|
|
2076
|
-
r = k(new Date(
|
|
2075
|
+
u = new Date(p.getFullYear() + 1, 0, 4);
|
|
2076
|
+
r = k(new Date(p.getFullYear(), 0, 4));
|
|
2077
2077
|
u = k(u);
|
|
2078
|
-
return 0 >= g(r,
|
|
2078
|
+
return 0 >= g(r, p) ? 0 >= g(u, p) ? p.getFullYear() + 1 : p.getFullYear() : p.getFullYear() - 1;
|
|
2079
2079
|
}
|
|
2080
2080
|
var m = G[d + 40 >> 2];
|
|
2081
|
-
d = {kc:F[d >> 2], jc:F[d + 4 >> 2],
|
|
2081
|
+
d = {kc:F[d >> 2], jc:F[d + 4 >> 2], Ia:F[d + 8 >> 2], Va:F[d + 12 >> 2], Ja: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) : "" : ""};
|
|
2082
2082
|
c = c ? L(D, c) : "";
|
|
2083
2083
|
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",};
|
|
2084
2084
|
for (var t in m) {
|
|
2085
2085
|
c = c.replace(new RegExp(t, "g"), m[t]);
|
|
2086
2086
|
}
|
|
2087
2087
|
var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), x = "January February March April May June July August September October November December".split(" ");
|
|
2088
|
-
m = {"%a":
|
|
2089
|
-
|
|
2090
|
-
0 ==
|
|
2091
|
-
return f(
|
|
2092
|
-
}, "%j":
|
|
2093
|
-
for (var r = 0, u = 0; u <=
|
|
2094
|
-
}
|
|
2095
|
-
return f(
|
|
2096
|
-
}, "%m":
|
|
2097
|
-
var r = Math.floor((
|
|
2098
|
-
2 >= (
|
|
2088
|
+
m = {"%a":p => v[p.R].substring(0, 3), "%A":p => v[p.R], "%b":p => x[p.Ja].substring(0, 3), "%B":p => x[p.Ja], "%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.Ia, 2), "%I":p => {
|
|
2089
|
+
p = p.Ia;
|
|
2090
|
+
0 == p ? p = 12 : 12 < p && (p -= 12);
|
|
2091
|
+
return f(p, 2);
|
|
2092
|
+
}, "%j":p => {
|
|
2093
|
+
for (var r = 0, u = 0; u <= p.Ja - 1; r += (ud(p.ca + 1900) ? Yd : Zd)[u++]) {
|
|
2094
|
+
}
|
|
2095
|
+
return f(p.Va + r, 3);
|
|
2096
|
+
}, "%m":p => f(p.Ja + 1, 2), "%M":p => f(p.jc, 2), "%n":() => "\n", "%p":p => 0 <= p.Ia && 12 > p.Ia ? "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 => {
|
|
2097
|
+
var r = Math.floor((p.ba + 7 - (p.R + 6) % 7) / 7);
|
|
2098
|
+
2 >= (p.R + 371 - p.ba - 2) % 7 && r++;
|
|
2099
2099
|
if (r) {
|
|
2100
|
-
53 == r && (u = (
|
|
2100
|
+
53 == r && (u = (p.R + 371 - p.ba) % 7, 4 == u || 3 == u && ud(p.ca) || (r = 1));
|
|
2101
2101
|
} else {
|
|
2102
2102
|
r = 52;
|
|
2103
|
-
var u = (
|
|
2104
|
-
(4 == u || 5 == u && ud(
|
|
2103
|
+
var u = (p.R + 7 - p.ba - 1) % 7;
|
|
2104
|
+
(4 == u || 5 == u && ud(p.ca % 400 - 1)) && r++;
|
|
2105
2105
|
}
|
|
2106
2106
|
return f(r, 2);
|
|
2107
|
-
}, "%w":
|
|
2108
|
-
|
|
2109
|
-
var r = 0 <=
|
|
2110
|
-
|
|
2111
|
-
return (r ? "+" : "-") + String("0000" + (
|
|
2112
|
-
}, "%Z":
|
|
2107
|
+
}, "%w":p => p.R, "%W":p => f(Math.floor((p.ba + 7 - (p.R + 6) % 7) / 7), 2), "%y":p => (p.ca + 1900).toString().substring(2), "%Y":p => p.ca + 1900, "%z":p => {
|
|
2108
|
+
p = p.ic;
|
|
2109
|
+
var r = 0 <= p;
|
|
2110
|
+
p = Math.abs(p) / 60;
|
|
2111
|
+
return (r ? "+" : "-") + String("0000" + (p / 60 * 100 + p % 60)).slice(-4);
|
|
2112
|
+
}, "%Z":p => p.lc, "%%":() => "%"};
|
|
2113
2113
|
c = c.replace(/%%/g, "\x00\x00");
|
|
2114
2114
|
for (t in m) {
|
|
2115
2115
|
c.includes(t) && (c = c.replace(new RegExp(t, "g"), m[t](d)));
|
|
@@ -2247,7 +2247,7 @@ Object.assign(Nc.prototype, {Pb(a) {
|
|
|
2247
2247
|
this.O?.(a);
|
|
2248
2248
|
}, argPackAdvance:8, readValueFromPointer:yc, fromWireType:function(a) {
|
|
2249
2249
|
function b() {
|
|
2250
|
-
return this.
|
|
2250
|
+
return this.wa ? vc(this.i.M, {u:this.bc, o:c, J:this, D:a,}) : vc(this.i.M, {u:this, o:a,});
|
|
2251
2251
|
}
|
|
2252
2252
|
var c = this.Pb(a);
|
|
2253
2253
|
if (!c) {
|
|
@@ -2267,9 +2267,9 @@ Object.assign(Nc.prototype, {Pb(a) {
|
|
|
2267
2267
|
if (!d) {
|
|
2268
2268
|
return b.call(this);
|
|
2269
2269
|
}
|
|
2270
|
-
d = this.
|
|
2270
|
+
d = this.va ? d.Hb : d.pointerType;
|
|
2271
2271
|
var e = qc(c, this.i, d.i);
|
|
2272
|
-
return null === e ? b.call(this) : this.
|
|
2272
|
+
return null === e ? b.call(this) : this.wa ? vc(d.i.M, {u:d, o:e, J:this, D:a,}) : vc(d.i.M, {u:d, o:e,});
|
|
2273
2273
|
},});
|
|
2274
2274
|
Uc = l.UnboundTypeError = bc("UnboundTypeError");
|
|
2275
2275
|
for (var W, ce = 0; 32 > ce; ++ce) {
|
|
@@ -2411,9 +2411,9 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2411
2411
|
c = Q(c);
|
|
2412
2412
|
var d = b.i, e = d.M, f = d.B.M, g = d.B.constructor;
|
|
2413
2413
|
a = Zb(a, function(...k) {
|
|
2414
|
-
d.B.ob.forEach(function(
|
|
2415
|
-
if (this[
|
|
2416
|
-
throw new cc(`Pure virtual function ${
|
|
2414
|
+
d.B.ob.forEach(function(n) {
|
|
2415
|
+
if (this[n] === f[n]) {
|
|
2416
|
+
throw new cc(`Pure virtual function ${n} must be implemented in JavaScript`);
|
|
2417
2417
|
}
|
|
2418
2418
|
}.bind(this));
|
|
2419
2419
|
Object.defineProperty(this, "__parent", {value:e});
|
|
@@ -2425,12 +2425,12 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2425
2425
|
}
|
|
2426
2426
|
k = g.implement(this, ...k);
|
|
2427
2427
|
oc(k);
|
|
2428
|
-
var
|
|
2428
|
+
var n = k.g;
|
|
2429
2429
|
k.notifyOnDestruction();
|
|
2430
|
-
|
|
2431
|
-
Object.defineProperties(this, {g:{value:
|
|
2430
|
+
n.ia = !0;
|
|
2431
|
+
Object.defineProperties(this, {g:{value:n}});
|
|
2432
2432
|
uc(this);
|
|
2433
|
-
k =
|
|
2433
|
+
k = n.o;
|
|
2434
2434
|
k = ic(d, k);
|
|
2435
2435
|
if (hc.hasOwnProperty(k)) {
|
|
2436
2436
|
throw new P(`Tried to register registered instance: ${k}`);
|
|
@@ -2459,22 +2459,22 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2459
2459
|
var c = b.Ta, d = b.O, e = b.eb, f = e.map(g => g.Sb).concat(e.map(g => g.ec));
|
|
2460
2460
|
T([a], f, g => {
|
|
2461
2461
|
var k = {};
|
|
2462
|
-
e.forEach((
|
|
2463
|
-
var t = g[m], v =
|
|
2464
|
-
k[
|
|
2462
|
+
e.forEach((n, m) => {
|
|
2463
|
+
var t = g[m], v = n.Qb, x = n.Rb, p = g[m + e.length], r = n.dc, u = n.fc;
|
|
2464
|
+
k[n.Mb] = {read:z => t.fromWireType(v(x, z)), write:(z, A) => {
|
|
2465
2465
|
var C = [];
|
|
2466
|
-
r(u, z,
|
|
2466
|
+
r(u, z, p.toWireType(C, A));
|
|
2467
2467
|
xc(C);
|
|
2468
2468
|
}};
|
|
2469
2469
|
});
|
|
2470
|
-
return [{name:b.name, fromWireType:
|
|
2470
|
+
return [{name:b.name, fromWireType:n => {
|
|
2471
2471
|
var m = {}, t;
|
|
2472
2472
|
for (t in k) {
|
|
2473
|
-
m[t] = k[t].read(
|
|
2473
|
+
m[t] = k[t].read(n);
|
|
2474
2474
|
}
|
|
2475
|
-
d(
|
|
2475
|
+
d(n);
|
|
2476
2476
|
return m;
|
|
2477
|
-
}, toWireType:(
|
|
2477
|
+
}, toWireType:(n, m) => {
|
|
2478
2478
|
for (var t in k) {
|
|
2479
2479
|
if (!(t in m)) {
|
|
2480
2480
|
throw new TypeError(`Missing field: "${t}"`);
|
|
@@ -2484,7 +2484,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2484
2484
|
for (t in k) {
|
|
2485
2485
|
k[t].write(v, m[t]);
|
|
2486
2486
|
}
|
|
2487
|
-
null !==
|
|
2487
|
+
null !== n && n.push(d, v);
|
|
2488
2488
|
return v;
|
|
2489
2489
|
}, argPackAdvance:8, readValueFromPointer:yc, L:d,}];
|
|
2490
2490
|
});
|
|
@@ -2498,14 +2498,14 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2498
2498
|
}, argPackAdvance:8, readValueFromPointer:function(e) {
|
|
2499
2499
|
return this.fromWireType(D[e]);
|
|
2500
2500
|
}, L:null,});
|
|
2501
|
-
}, _embind_register_class:(a, b, c, d, e, f, g, k,
|
|
2501
|
+
}, _embind_register_class:(a, b, c, d, e, f, g, k, n, m, t, v, x) => {
|
|
2502
2502
|
t = R(t);
|
|
2503
2503
|
f = U(e, f);
|
|
2504
2504
|
k &&= U(g, k);
|
|
2505
|
-
m &&= U(
|
|
2505
|
+
m &&= U(n, m);
|
|
2506
2506
|
x = U(v, x);
|
|
2507
|
-
var
|
|
2508
|
-
Fc(
|
|
2507
|
+
var p = Gc(t);
|
|
2508
|
+
Fc(p, function() {
|
|
2509
2509
|
Vc(`Cannot construct ${t} due to unbound types`, [d]);
|
|
2510
2510
|
});
|
|
2511
2511
|
T([a, b, c], d ? [d] : [], r => {
|
|
@@ -2541,7 +2541,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2541
2541
|
H = new Nc(t + "*", C, !1, !1, !1);
|
|
2542
2542
|
z = new Nc(t + " const*", C, !1, !0, !1);
|
|
2543
2543
|
rc[a] = {pointerType:H, Hb:z};
|
|
2544
|
-
Oc(
|
|
2544
|
+
Oc(p, r);
|
|
2545
2545
|
return [u, H, z];
|
|
2546
2546
|
});
|
|
2547
2547
|
}, _embind_register_class_class_function:(a, b, c, d, e, f, g) => {
|
|
@@ -2549,21 +2549,21 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2549
2549
|
b = R(b);
|
|
2550
2550
|
b = Zc(b);
|
|
2551
2551
|
f = U(e, f);
|
|
2552
|
-
T([], [a],
|
|
2552
|
+
T([], [a], n => {
|
|
2553
2553
|
function m() {
|
|
2554
2554
|
Vc(`Cannot call ${t} due to unbound types`, k);
|
|
2555
2555
|
}
|
|
2556
|
-
|
|
2557
|
-
var t = `${
|
|
2556
|
+
n = n[0];
|
|
2557
|
+
var t = `${n.name}.${b}`;
|
|
2558
2558
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2559
|
-
var v =
|
|
2559
|
+
var v = n.i.constructor;
|
|
2560
2560
|
void 0 === v[b] ? (m.fa = c - 1, v[b] = m) : (Ec(v, b, t), v[b].A[c - 1] = m);
|
|
2561
2561
|
T([], k, x => {
|
|
2562
2562
|
x = Xc(t, [x[0], null].concat(x.slice(1)), null, f, g);
|
|
2563
2563
|
void 0 === v[b].A ? (x.fa = c - 1, v[b] = x) : v[b].A[c - 1] = x;
|
|
2564
|
-
if (
|
|
2565
|
-
for (const
|
|
2566
|
-
|
|
2564
|
+
if (n.i.oa) {
|
|
2565
|
+
for (const p of n.i.oa) {
|
|
2566
|
+
p.constructor.hasOwnProperty(b) || (p.constructor[b] = x);
|
|
2567
2567
|
}
|
|
2568
2568
|
}
|
|
2569
2569
|
return [];
|
|
@@ -2573,9 +2573,9 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2573
2573
|
}, _embind_register_class_class_property:(a, b, c, d, e, f, g, k) => {
|
|
2574
2574
|
b = R(b);
|
|
2575
2575
|
f = U(e, f);
|
|
2576
|
-
T([], [a],
|
|
2577
|
-
|
|
2578
|
-
var m = `${
|
|
2576
|
+
T([], [a], n => {
|
|
2577
|
+
n = n[0];
|
|
2578
|
+
var m = `${n.name}.${b}`, t = {get() {
|
|
2579
2579
|
Vc(`Cannot access ${m} due to unbound types`, [c]);
|
|
2580
2580
|
}, enumerable:!0, configurable:!0};
|
|
2581
2581
|
t.set = k ? () => {
|
|
@@ -2583,18 +2583,18 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2583
2583
|
} : () => {
|
|
2584
2584
|
throw new P(`${m} is a read-only property`);
|
|
2585
2585
|
};
|
|
2586
|
-
Object.defineProperty(
|
|
2586
|
+
Object.defineProperty(n.i.constructor, b, t);
|
|
2587
2587
|
T([], [c], v => {
|
|
2588
2588
|
v = v[0];
|
|
2589
2589
|
var x = {get() {
|
|
2590
2590
|
return v.fromWireType(f(d));
|
|
2591
2591
|
}, enumerable:!0};
|
|
2592
|
-
k && (k = U(g, k), x.set =
|
|
2592
|
+
k && (k = U(g, k), x.set = p => {
|
|
2593
2593
|
var r = [];
|
|
2594
|
-
k(d, v.toWireType(r,
|
|
2594
|
+
k(d, v.toWireType(r, p));
|
|
2595
2595
|
xc(r);
|
|
2596
2596
|
});
|
|
2597
|
-
Object.defineProperty(
|
|
2597
|
+
Object.defineProperty(n.i.constructor, b, x);
|
|
2598
2598
|
return [];
|
|
2599
2599
|
});
|
|
2600
2600
|
return [];
|
|
@@ -2604,7 +2604,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2604
2604
|
e = U(d, e);
|
|
2605
2605
|
T([], [a], k => {
|
|
2606
2606
|
k = k[0];
|
|
2607
|
-
var
|
|
2607
|
+
var n = `constructor ${k.name}`;
|
|
2608
2608
|
void 0 === k.i.Z && (k.i.Z = []);
|
|
2609
2609
|
if (void 0 !== k.i.Z[b - 1]) {
|
|
2610
2610
|
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!`);
|
|
@@ -2614,34 +2614,34 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2614
2614
|
};
|
|
2615
2615
|
T([], g, m => {
|
|
2616
2616
|
m.splice(1, 0, null);
|
|
2617
|
-
k.i.Z[b - 1] = Xc(
|
|
2617
|
+
k.i.Z[b - 1] = Xc(n, m, null, e, f);
|
|
2618
2618
|
return [];
|
|
2619
2619
|
});
|
|
2620
2620
|
return [];
|
|
2621
2621
|
});
|
|
2622
2622
|
}, _embind_register_class_function:(a, b, c, d, e, f, g, k) => {
|
|
2623
|
-
var
|
|
2623
|
+
var n = Yc(c, d);
|
|
2624
2624
|
b = R(b);
|
|
2625
2625
|
b = Zc(b);
|
|
2626
2626
|
f = U(e, f);
|
|
2627
2627
|
T([], [a], m => {
|
|
2628
2628
|
function t() {
|
|
2629
|
-
Vc(`Cannot call ${v} due to unbound types`,
|
|
2629
|
+
Vc(`Cannot call ${v} due to unbound types`, n);
|
|
2630
2630
|
}
|
|
2631
2631
|
m = m[0];
|
|
2632
2632
|
var v = `${m.name}.${b}`;
|
|
2633
2633
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2634
2634
|
k && m.i.ob.push(b);
|
|
2635
|
-
var x = m.i.M,
|
|
2636
|
-
void 0 ===
|
|
2637
|
-
T([],
|
|
2635
|
+
var x = m.i.M, p = x[b];
|
|
2636
|
+
void 0 === p || void 0 === p.A && p.className !== m.name && p.fa === c - 2 ? (t.fa = c - 2, t.className = m.name, x[b] = t) : (Ec(x, b, v), x[b].A[c - 2] = t);
|
|
2637
|
+
T([], n, r => {
|
|
2638
2638
|
r = Xc(v, r, m, f, g);
|
|
2639
2639
|
void 0 === x[b].A ? (r.fa = c - 2, x[b] = r) : x[b].A[c - 2] = r;
|
|
2640
2640
|
return [];
|
|
2641
2641
|
});
|
|
2642
2642
|
return [];
|
|
2643
2643
|
});
|
|
2644
|
-
}, _embind_register_class_property:(a, b, c, d, e, f, g, k,
|
|
2644
|
+
}, _embind_register_class_property:(a, b, c, d, e, f, g, k, n, m) => {
|
|
2645
2645
|
b = R(b);
|
|
2646
2646
|
e = U(d, e);
|
|
2647
2647
|
T([], [a], t => {
|
|
@@ -2649,21 +2649,21 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2649
2649
|
var v = `${t.name}.${b}`, x = {get() {
|
|
2650
2650
|
Vc(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2651
2651
|
}, enumerable:!0, configurable:!0};
|
|
2652
|
-
x.set =
|
|
2652
|
+
x.set = n ? () => Vc(`Cannot access ${v} due to unbound types`, [c, g]) : () => {
|
|
2653
2653
|
throw new P(v + " is a read-only property");
|
|
2654
2654
|
};
|
|
2655
2655
|
Object.defineProperty(t.i.M, b, x);
|
|
2656
|
-
T([],
|
|
2657
|
-
var r =
|
|
2656
|
+
T([], n ? [c, g] : [c], p => {
|
|
2657
|
+
var r = p[0], u = {get() {
|
|
2658
2658
|
var A = $c(this, t, v + " getter");
|
|
2659
2659
|
return r.fromWireType(e(f, A));
|
|
2660
2660
|
}, enumerable:!0};
|
|
2661
|
-
if (
|
|
2662
|
-
|
|
2663
|
-
var z =
|
|
2661
|
+
if (n) {
|
|
2662
|
+
n = U(k, n);
|
|
2663
|
+
var z = p[1];
|
|
2664
2664
|
u.set = function(A) {
|
|
2665
2665
|
var C = $c(this, t, v + " setter"), H = [];
|
|
2666
|
-
|
|
2666
|
+
n(m, C, z.toWireType(H, A));
|
|
2667
2667
|
xc(H);
|
|
2668
2668
|
};
|
|
2669
2669
|
}
|
|
@@ -2712,10 +2712,10 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2712
2712
|
var f = 32 - 8 * c;
|
|
2713
2713
|
e = k => k << f >>> f;
|
|
2714
2714
|
}
|
|
2715
|
-
var g = b.includes("unsigned") ? function(k,
|
|
2716
|
-
return
|
|
2717
|
-
} : function(k,
|
|
2718
|
-
return
|
|
2715
|
+
var g = b.includes("unsigned") ? function(k, n) {
|
|
2716
|
+
return n >>> 0;
|
|
2717
|
+
} : function(k, n) {
|
|
2718
|
+
return n;
|
|
2719
2719
|
};
|
|
2720
2720
|
S(a, {name:b, fromWireType:e, toWireType:g, argPackAdvance:8, readValueFromPointer:ed(b, c, 0 !== d), L:null,});
|
|
2721
2721
|
}, _embind_register_memory_view:(a, b, c) => {
|
|
@@ -2732,15 +2732,15 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2732
2732
|
var e = G[d >> 2], f = d + 4;
|
|
2733
2733
|
if (c) {
|
|
2734
2734
|
for (var g = f, k = 0; k <= e; ++k) {
|
|
2735
|
-
var
|
|
2736
|
-
if (k == e || 0 == D[
|
|
2737
|
-
g = g ? L(D, g,
|
|
2735
|
+
var n = f + k;
|
|
2736
|
+
if (k == e || 0 == D[n]) {
|
|
2737
|
+
g = g ? L(D, g, n - g) : "";
|
|
2738
2738
|
if (void 0 === m) {
|
|
2739
2739
|
var m = g;
|
|
2740
2740
|
} else {
|
|
2741
2741
|
m += String.fromCharCode(0), m += g;
|
|
2742
2742
|
}
|
|
2743
|
-
g =
|
|
2743
|
+
g = n + 1;
|
|
2744
2744
|
}
|
|
2745
2745
|
}
|
|
2746
2746
|
} else {
|
|
@@ -2759,22 +2759,22 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2759
2759
|
throw new P("Cannot pass non-string to std::string");
|
|
2760
2760
|
}
|
|
2761
2761
|
var g = c && f ? fb(e) : e.length;
|
|
2762
|
-
var k = Ud(4 + g + 1),
|
|
2762
|
+
var k = Ud(4 + g + 1), n = k + 4;
|
|
2763
2763
|
G[k >> 2] = g;
|
|
2764
2764
|
if (c && f) {
|
|
2765
|
-
gb(e, D,
|
|
2765
|
+
gb(e, D, n, g + 1);
|
|
2766
2766
|
} else {
|
|
2767
2767
|
if (f) {
|
|
2768
2768
|
for (f = 0; f < g; ++f) {
|
|
2769
2769
|
var m = e.charCodeAt(f);
|
|
2770
2770
|
if (255 < m) {
|
|
2771
|
-
throw lc(
|
|
2771
|
+
throw lc(n), new P("String has UTF-16 code units that do not fit in 8 bits");
|
|
2772
2772
|
}
|
|
2773
|
-
D[
|
|
2773
|
+
D[n + f] = m;
|
|
2774
2774
|
}
|
|
2775
2775
|
} else {
|
|
2776
2776
|
for (f = 0; f < g; ++f) {
|
|
2777
|
-
D[
|
|
2777
|
+
D[n + f] = e[f];
|
|
2778
2778
|
}
|
|
2779
2779
|
}
|
|
2780
2780
|
}
|
|
@@ -2794,21 +2794,21 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2794
2794
|
4 === b && (d = kd, e = ld, f = md, g = k => G[k >> 2]);
|
|
2795
2795
|
}
|
|
2796
2796
|
S(a, {name:c, fromWireType:k => {
|
|
2797
|
-
for (var
|
|
2797
|
+
for (var n = G[k >> 2], m, t = k + 4, v = 0; v <= n; ++v) {
|
|
2798
2798
|
var x = k + 4 + v * b;
|
|
2799
|
-
if (v ==
|
|
2799
|
+
if (v == n || 0 == g(x)) {
|
|
2800
2800
|
t = d(t, x - t), void 0 === m ? m = t : (m += String.fromCharCode(0), m += t), t = x + b;
|
|
2801
2801
|
}
|
|
2802
2802
|
}
|
|
2803
2803
|
lc(k);
|
|
2804
2804
|
return m;
|
|
2805
|
-
}, toWireType:(k,
|
|
2806
|
-
if ("string" != typeof
|
|
2805
|
+
}, toWireType:(k, n) => {
|
|
2806
|
+
if ("string" != typeof n) {
|
|
2807
2807
|
throw new P(`Cannot pass non-string to C++ string type ${c}`);
|
|
2808
2808
|
}
|
|
2809
|
-
var m = f(
|
|
2809
|
+
var m = f(n), t = Ud(4 + m + b);
|
|
2810
2810
|
G[t >> 2] = m / b;
|
|
2811
|
-
e(
|
|
2811
|
+
e(n, t + 4, m + b);
|
|
2812
2812
|
null !== k && k.push(lc, t);
|
|
2813
2813
|
return t;
|
|
2814
2814
|
}, argPackAdvance:8, readValueFromPointer:yc, L(k) {
|
|
@@ -2816,8 +2816,8 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2816
2816
|
}});
|
|
2817
2817
|
}, _embind_register_value_object:(a, b, c, d, e, f) => {
|
|
2818
2818
|
wc[a] = {name:R(b), Ta:U(c, d), O:U(e, f), eb:[],};
|
|
2819
|
-
}, _embind_register_value_object_field:(a, b, c, d, e, f, g, k,
|
|
2820
|
-
wc[a].eb.push({Mb:R(b), Sb:c, Qb:U(d, e), Rb:f, ec:g, dc:U(k,
|
|
2819
|
+
}, _embind_register_value_object_field:(a, b, c, d, e, f, g, k, n, m) => {
|
|
2820
|
+
wc[a].eb.push({Mb:R(b), Sb:c, Qb:U(d, e), Rb:f, ec:g, dc:U(k, n), fc:m,});
|
|
2821
2821
|
}, _embind_register_void:(a, b) => {
|
|
2822
2822
|
b = R(b);
|
|
2823
2823
|
S(a, {Ic:!0, name:b, argPackAdvance:0, fromWireType:() => {
|
|
@@ -2843,12 +2843,12 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2843
2843
|
a--;
|
|
2844
2844
|
var f = Array(a);
|
|
2845
2845
|
b = `methodCaller<(${d.map(g => g.name).join(", ")}) => ${e.name}>`;
|
|
2846
|
-
return rd(Zb(b, (g, k,
|
|
2846
|
+
return rd(Zb(b, (g, k, n, m) => {
|
|
2847
2847
|
for (var t = 0, v = 0; v < a; ++v) {
|
|
2848
2848
|
f[v] = d[v].readValueFromPointer(m + t), t += d[v].argPackAdvance;
|
|
2849
2849
|
}
|
|
2850
2850
|
g = 1 === c ? td(k, f) : k.apply(g, f);
|
|
2851
|
-
return nd(e,
|
|
2851
|
+
return nd(e, n, g);
|
|
2852
2852
|
}));
|
|
2853
2853
|
}, _emval_get_property:(a, b) => {
|
|
2854
2854
|
a = Q(a);
|
|
@@ -2899,12 +2899,12 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2899
2899
|
var k = g.getTimezoneOffset();
|
|
2900
2900
|
G[a >> 2] = 60 * Math.max(e, k);
|
|
2901
2901
|
F[b >> 2] = Number(e != k);
|
|
2902
|
-
a =
|
|
2902
|
+
a = n => n.toLocaleTimeString(void 0, {hour12:!1, timeZoneName:"short"}).split(" ")[1];
|
|
2903
2903
|
f = a(f);
|
|
2904
2904
|
g = a(g);
|
|
2905
2905
|
k < e ? (gb(f, D, c, 17), gb(g, D, d, 17)) : (gb(f, D, d, 17), gb(g, D, c, 17));
|
|
2906
2906
|
}, beginPixelLocalStorageWEBGL:function(a, b, c) {
|
|
2907
|
-
(a = w[a].F.
|
|
2907
|
+
(a = w[a].F.Da) && a.beginPixelLocalStorageWEBGL(l.HEAPU32.subarray(c, c + b));
|
|
2908
2908
|
}, decode_image:function(a, b, c) {
|
|
2909
2909
|
var d = l.images;
|
|
2910
2910
|
d || (d = new Map(), l.images = d);
|
|
@@ -2972,9 +2972,9 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2972
2972
|
}, enable_WEBGL_shader_pixel_local_storage_coherent:function(a) {
|
|
2973
2973
|
a = w[a].F;
|
|
2974
2974
|
const b = a.getExtension("WEBGL_shader_pixel_local_storage");
|
|
2975
|
-
return b && b.isCoherent() && 5 == b.framebufferTexturePixelLocalStorageWEBGL.length ? (a.
|
|
2975
|
+
return b && b.isCoherent() && 5 == b.framebufferTexturePixelLocalStorageWEBGL.length ? (a.Da = b, !0) : !1;
|
|
2976
2976
|
}, endPixelLocalStorageWEBGL:function(a, b, c) {
|
|
2977
|
-
(a = w[a].F.
|
|
2977
|
+
(a = w[a].F.Da) && a.endPixelLocalStorageWEBGL(l.HEAPU32.subarray(c, c + b));
|
|
2978
2978
|
}, environ_get:(a, b) => {
|
|
2979
2979
|
var c = 0;
|
|
2980
2980
|
Qd().forEach((d, e) => {
|
|
@@ -3022,10 +3022,10 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3022
3022
|
var e = Kb(a);
|
|
3023
3023
|
a = b;
|
|
3024
3024
|
for (var f, g = b = 0; g < c; g++) {
|
|
3025
|
-
var k = G[a >> 2],
|
|
3025
|
+
var k = G[a >> 2], n = G[a + 4 >> 2];
|
|
3026
3026
|
a += 8;
|
|
3027
3027
|
var m = e, t = f, v = B;
|
|
3028
|
-
if (0 >
|
|
3028
|
+
if (0 > n || 0 > t) {
|
|
3029
3029
|
throw new M(28);
|
|
3030
3030
|
}
|
|
3031
3031
|
if (null === m.W) {
|
|
@@ -3046,15 +3046,15 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3046
3046
|
} else if (!m.seekable) {
|
|
3047
3047
|
throw new M(70);
|
|
3048
3048
|
}
|
|
3049
|
-
var
|
|
3050
|
-
x || (m.position +=
|
|
3051
|
-
var r =
|
|
3049
|
+
var p = m.m.read(m, v, k, n, t);
|
|
3050
|
+
x || (m.position += p);
|
|
3051
|
+
var r = p;
|
|
3052
3052
|
if (0 > r) {
|
|
3053
3053
|
var u = -1;
|
|
3054
3054
|
break a;
|
|
3055
3055
|
}
|
|
3056
3056
|
b += r;
|
|
3057
|
-
if (r <
|
|
3057
|
+
if (r < n) {
|
|
3058
3058
|
break;
|
|
3059
3059
|
}
|
|
3060
3060
|
"undefined" != typeof f && (f += r);
|
|
@@ -3094,9 +3094,9 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3094
3094
|
var e = Kb(a);
|
|
3095
3095
|
a = b;
|
|
3096
3096
|
for (var f, g = b = 0; g < c; g++) {
|
|
3097
|
-
var k = G[a >> 2],
|
|
3097
|
+
var k = G[a >> 2], n = G[a + 4 >> 2];
|
|
3098
3098
|
a += 8;
|
|
3099
|
-
var m = e, t = k, v =
|
|
3099
|
+
var m = e, t = k, v = n, x = f, p = B;
|
|
3100
3100
|
if (0 > v || 0 > x) {
|
|
3101
3101
|
throw new M(28);
|
|
3102
3102
|
}
|
|
@@ -3119,7 +3119,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3119
3119
|
} else if (!m.seekable) {
|
|
3120
3120
|
throw new M(70);
|
|
3121
3121
|
}
|
|
3122
|
-
var u = m.m.write(m,
|
|
3122
|
+
var u = m.m.write(m, p, t, v, x, void 0);
|
|
3123
3123
|
r || (m.position += u);
|
|
3124
3124
|
var z = u;
|
|
3125
3125
|
if (0 > z) {
|
|
@@ -3140,13 +3140,13 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3140
3140
|
return C.$;
|
|
3141
3141
|
}
|
|
3142
3142
|
}, framebufferPixelLocalClearValuefvWEBGL:function(a, b, c, d, e, f) {
|
|
3143
|
-
(a = w[a].F.
|
|
3143
|
+
(a = w[a].F.Da) && a.framebufferPixelLocalClearValuefvWEBGL(b, [c, d, e, f]);
|
|
3144
3144
|
}, framebufferTexturePixelLocalStorageWEBGL:function(a, b, c, d, e, f) {
|
|
3145
|
-
(a = w[a].F.
|
|
3145
|
+
(a = w[a].F.Da) && a.framebufferTexturePixelLocalStorageWEBGL(b, Fd[c], d, e, f);
|
|
3146
3146
|
}, glActiveTexture:a => W.activeTexture(a), glAttachShader:(a, b) => {
|
|
3147
3147
|
W.attachShader(V[a], Gd[b]);
|
|
3148
3148
|
}, glBindBuffer:(a, b) => {
|
|
3149
|
-
35051 == a ? W.
|
|
3149
|
+
35051 == a ? W.Oa = b : 35052 == a && (W.ra = b);
|
|
3150
3150
|
W.bindBuffer(a, Cd[b]);
|
|
3151
3151
|
}, glBindBufferRange:(a, b, c, d, e) => {
|
|
3152
3152
|
W.bindBufferRange(a, b, Cd[c], d, e);
|
|
@@ -3158,7 +3158,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3158
3158
|
W.bindTexture(a, Fd[b]);
|
|
3159
3159
|
}, glBindVertexArray:a => {
|
|
3160
3160
|
W.bindVertexArray(Hd[a]);
|
|
3161
|
-
}, glBlendEquation:a => W.blendEquation(a), glBlendFunc:(a, b) => W.blendFunc(a, b), glBlitFramebuffer:(a, b, c, d, e, f, g, k,
|
|
3161
|
+
}, glBlendEquation:a => W.blendEquation(a), glBlendFunc:(a, b) => W.blendFunc(a, b), glBlitFramebuffer:(a, b, c, d, e, f, g, k, n, m) => W.blitFramebuffer(a, b, c, d, e, f, g, k, n, m), glBufferData:(a, b, c, d) => {
|
|
3162
3162
|
c && b ? W.bufferData(a, D, d, c, b) : W.bufferData(a, b, d);
|
|
3163
3163
|
}, glBufferSubData:(a, b, c, d) => {
|
|
3164
3164
|
c && W.bufferSubData(a, b, D, d, c);
|
|
@@ -3170,10 +3170,12 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3170
3170
|
W.colorMask(!!a, !!b, !!c, !!d);
|
|
3171
3171
|
}, glCompileShader:a => {
|
|
3172
3172
|
W.compileShader(Gd[a]);
|
|
3173
|
+
}, glCompressedTexSubImage2D:(a, b, c, d, e, f, g, k, n) => {
|
|
3174
|
+
W.ra || !k ? W.compressedTexSubImage2D(a, b, c, d, e, f, g, k, n) : W.compressedTexSubImage2D(a, b, c, d, e, f, g, D, n, k);
|
|
3173
3175
|
}, glCreateProgram:() => {
|
|
3174
3176
|
var a = Ld(V), b = W.createProgram();
|
|
3175
3177
|
b.name = a;
|
|
3176
|
-
b.
|
|
3178
|
+
b.za = b.xa = b.ya = 0;
|
|
3177
3179
|
b.Wa = 1;
|
|
3178
3180
|
V[a] = b;
|
|
3179
3181
|
return a;
|
|
@@ -3184,7 +3186,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3184
3186
|
}, glCullFace:a => W.cullFace(a), glDeleteBuffers:(a, b) => {
|
|
3185
3187
|
for (var c = 0; c < a; c++) {
|
|
3186
3188
|
var d = F[b + 4 * c >> 2], e = Cd[d];
|
|
3187
|
-
e && (W.deleteBuffer(e), e.name = 0, Cd[d] = null, d == W.
|
|
3189
|
+
e && (W.deleteBuffer(e), e.name = 0, Cd[d] = null, d == W.Oa && (W.Oa = 0), d == W.ra && (W.ra = 0));
|
|
3188
3190
|
}
|
|
3189
3191
|
}, glDeleteFramebuffers:(a, b) => {
|
|
3190
3192
|
for (var c = 0; c < a; ++c) {
|
|
@@ -3256,26 +3258,26 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3256
3258
|
if (a = V[a], 35716 == b) {
|
|
3257
3259
|
a = W.getProgramInfoLog(a), null === a && (a = "(unknown error)"), F[c >> 2] = a.length + 1;
|
|
3258
3260
|
} else if (35719 == b) {
|
|
3259
|
-
if (!a.
|
|
3261
|
+
if (!a.za) {
|
|
3260
3262
|
for (b = 0; b < W.getProgramParameter(a, 35718); ++b) {
|
|
3261
|
-
a.
|
|
3263
|
+
a.za = Math.max(a.za, W.getActiveUniform(a, b).name.length + 1);
|
|
3262
3264
|
}
|
|
3263
3265
|
}
|
|
3264
|
-
F[c >> 2] = a.
|
|
3266
|
+
F[c >> 2] = a.za;
|
|
3265
3267
|
} else if (35722 == b) {
|
|
3266
|
-
if (!a.
|
|
3268
|
+
if (!a.xa) {
|
|
3267
3269
|
for (b = 0; b < W.getProgramParameter(a, 35721); ++b) {
|
|
3268
|
-
a.
|
|
3270
|
+
a.xa = Math.max(a.xa, W.getActiveAttrib(a, b).name.length + 1);
|
|
3269
3271
|
}
|
|
3270
3272
|
}
|
|
3271
|
-
F[c >> 2] = a.
|
|
3273
|
+
F[c >> 2] = a.xa;
|
|
3272
3274
|
} else if (35381 == b) {
|
|
3273
|
-
if (!a.
|
|
3275
|
+
if (!a.ya) {
|
|
3274
3276
|
for (b = 0; b < W.getProgramParameter(a, 35382); ++b) {
|
|
3275
|
-
a.
|
|
3277
|
+
a.ya = Math.max(a.ya, W.getActiveUniformBlockName(a, b).length + 1);
|
|
3276
3278
|
}
|
|
3277
3279
|
}
|
|
3278
|
-
F[c >> 2] = a.
|
|
3280
|
+
F[c >> 2] = a.ya;
|
|
3279
3281
|
} else {
|
|
3280
3282
|
F[c >> 2] = W.getProgramParameter(a, b);
|
|
3281
3283
|
}
|
|
@@ -3321,13 +3323,13 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3321
3323
|
var g = W.getActiveUniform(c, f);
|
|
3322
3324
|
var k = g.name;
|
|
3323
3325
|
g = g.size;
|
|
3324
|
-
var
|
|
3325
|
-
|
|
3326
|
+
var n = Wd(k);
|
|
3327
|
+
n = 0 < n ? k.slice(0, n) : k;
|
|
3326
3328
|
var m = c.Wa;
|
|
3327
3329
|
c.Wa += g;
|
|
3328
|
-
e[
|
|
3330
|
+
e[n] = [g, m];
|
|
3329
3331
|
for (k = 0; k < g; ++k) {
|
|
3330
|
-
d[m] = k, c.vb[m++] =
|
|
3332
|
+
d[m] = k, c.vb[m++] = n;
|
|
3331
3333
|
}
|
|
3332
3334
|
}
|
|
3333
3335
|
}
|
|
@@ -3357,7 +3359,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3357
3359
|
3317 == a ? Jd = b : 3314 == a && (Kd = b);
|
|
3358
3360
|
W.pixelStorei(a, b);
|
|
3359
3361
|
}, glReadPixels:(a, b, c, d, e, f, g) => {
|
|
3360
|
-
if (W.
|
|
3362
|
+
if (W.Oa) {
|
|
3361
3363
|
W.readPixels(a, b, c, d, e, f, g);
|
|
3362
3364
|
} else {
|
|
3363
3365
|
var k = Xd(f);
|
|
@@ -3371,22 +3373,22 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3371
3373
|
}
|
|
3372
3374
|
W.shaderSource(Gd[a], e);
|
|
3373
3375
|
}, 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,
|
|
3374
|
-
f, g, k,
|
|
3375
|
-
if (W.
|
|
3376
|
-
W.texSubImage2D(a, b, c, d, e, f, g, k,
|
|
3376
|
+
f, g, k, n) => {
|
|
3377
|
+
if (W.ra) {
|
|
3378
|
+
W.texSubImage2D(a, b, c, d, e, f, g, k, n);
|
|
3377
3379
|
} else {
|
|
3378
|
-
if (
|
|
3380
|
+
if (n) {
|
|
3379
3381
|
var m = Xd(k);
|
|
3380
|
-
W.texSubImage2D(a, b, c, d, e, f, g, k, m,
|
|
3382
|
+
W.texSubImage2D(a, b, c, d, e, f, g, k, m, n >>> 31 - Math.clz32(m.BYTES_PER_ELEMENT));
|
|
3381
3383
|
} else {
|
|
3382
|
-
if (
|
|
3384
|
+
if (n) {
|
|
3383
3385
|
m = Xd(k);
|
|
3384
3386
|
var t = f * ((Kd || e) * ({5:3, 6:4, 8:2, 29502:3, 29504:4, 26917:2, 26918:2, 29846:3, 29847:4}[g - 6402] || 1) * m.BYTES_PER_ELEMENT + Jd - 1 & -Jd);
|
|
3385
|
-
|
|
3387
|
+
n = m.subarray(n >>> 31 - Math.clz32(m.BYTES_PER_ELEMENT), n + t >>> 31 - Math.clz32(m.BYTES_PER_ELEMENT));
|
|
3386
3388
|
} else {
|
|
3387
|
-
|
|
3389
|
+
n = null;
|
|
3388
3390
|
}
|
|
3389
|
-
W.texSubImage2D(a, b, c, d, e, f, g, k,
|
|
3391
|
+
W.texSubImage2D(a, b, c, d, e, f, g, k, n);
|
|
3390
3392
|
}
|
|
3391
3393
|
}
|
|
3392
3394
|
}, glUniform1i:(a, b) => {
|
|
@@ -3482,8 +3484,8 @@ l.dynCall_vijj = (a, b, c, d, e, f) => (l.dynCall_vijj = Y.dynCall_vijj)(a, b, c
|
|
|
3482
3484
|
l.dynCall_jiji = (a, b, c, d, e) => (l.dynCall_jiji = Y.dynCall_jiji)(a, b, c, d, e);
|
|
3483
3485
|
l.dynCall_viijii = (a, b, c, d, e, f, g) => (l.dynCall_viijii = Y.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3484
3486
|
l.dynCall_iiiiij = (a, b, c, d, e, f, g) => (l.dynCall_iiiiij = Y.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3485
|
-
l.dynCall_iiiiijj = (a, b, c, d, e, f, g, k,
|
|
3486
|
-
l.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k,
|
|
3487
|
+
l.dynCall_iiiiijj = (a, b, c, d, e, f, g, k, n) => (l.dynCall_iiiiijj = Y.dynCall_iiiiijj)(a, b, c, d, e, f, g, k, n);
|
|
3488
|
+
l.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, n, m) => (l.dynCall_iiiiiijj = Y.dynCall_iiiiiijj)(a, b, c, d, e, f, g, k, n, m);
|
|
3487
3489
|
function de(a, b, c) {
|
|
3488
3490
|
var d = he();
|
|
3489
3491
|
try {
|