@rive-app/webgl2-advanced 2.36.0 → 2.37.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 +4 -0
- package/webgl2_advanced.mjs +322 -312
package/package.json
CHANGED
package/rive.wasm
CHANGED
|
Binary file
|
package/rive_advanced.mjs.d.ts
CHANGED
|
@@ -32,6 +32,8 @@ export interface RiveCanvas {
|
|
|
32
32
|
decodeAudio: DecodeAudio;
|
|
33
33
|
decodeImage: DecodeImage;
|
|
34
34
|
decodeFont: DecodeFont;
|
|
35
|
+
// Returns a pointer value to the FontWrapper
|
|
36
|
+
setFallbackFontCallback: (callback: (missingGlyph: number, fallbackFontIndex: number, weight: number) => number | null) => void;
|
|
35
37
|
|
|
36
38
|
/**
|
|
37
39
|
* Loads a Rive file for the runtime and returns a Rive-specific File class
|
|
@@ -308,9 +310,11 @@ export interface DecodeImage {
|
|
|
308
310
|
}
|
|
309
311
|
export class FontInternal {
|
|
310
312
|
unref(): void;
|
|
313
|
+
ptr(): number;
|
|
311
314
|
}
|
|
312
315
|
export class Font {
|
|
313
316
|
unref(): void;
|
|
317
|
+
ptr(): number;
|
|
314
318
|
get nativeFont(): FontInternal;
|
|
315
319
|
}
|
|
316
320
|
export interface FontCallback {
|
package/webgl2_advanced.mjs
CHANGED
|
@@ -15,11 +15,11 @@ function fa() {
|
|
|
15
15
|
const k = d;
|
|
16
16
|
c = b = 0;
|
|
17
17
|
d = new Map();
|
|
18
|
-
k.forEach(
|
|
18
|
+
k.forEach(p => {
|
|
19
19
|
try {
|
|
20
|
-
|
|
21
|
-
} catch (
|
|
22
|
-
console.error(
|
|
20
|
+
p(g);
|
|
21
|
+
} catch (m) {
|
|
22
|
+
console.error(m);
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
this.mb();
|
|
@@ -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, p = 0;
|
|
46
46
|
this.Mb = function() {
|
|
47
|
-
var
|
|
48
|
-
|
|
47
|
+
var m = performance.now();
|
|
48
|
+
p ? (++k, m -= p, 1000 < m && (g(1000 * k / m), k = p = 0)) : (p = m, k = 0);
|
|
49
49
|
};
|
|
50
50
|
}();
|
|
51
51
|
};
|
|
@@ -71,64 +71,70 @@ const ia = l.onRuntimeInitialized;
|
|
|
71
71
|
l.onRuntimeInitialized = function() {
|
|
72
72
|
ia && ia();
|
|
73
73
|
let a = l.decodeAudio;
|
|
74
|
-
l.decodeAudio = function(
|
|
75
|
-
|
|
76
|
-
f
|
|
74
|
+
l.decodeAudio = function(f, g) {
|
|
75
|
+
f = a(f);
|
|
76
|
+
g(f);
|
|
77
77
|
};
|
|
78
78
|
let b = l.decodeFont;
|
|
79
|
-
l.decodeFont = function(
|
|
80
|
-
|
|
81
|
-
f
|
|
79
|
+
l.decodeFont = function(f, g) {
|
|
80
|
+
f = b(f);
|
|
81
|
+
g(f);
|
|
82
82
|
};
|
|
83
|
-
|
|
84
|
-
l.
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
let c = l.setFallbackFontCb;
|
|
84
|
+
l.setFallbackFontCallback = "function" === typeof c ? function(f) {
|
|
85
|
+
c(f);
|
|
86
|
+
} : function() {
|
|
87
|
+
console.warn("Module.setFallbackFontCallback called, but text support is not enabled in this build.");
|
|
87
88
|
};
|
|
88
|
-
|
|
89
|
+
const d = l.FileAssetLoader;
|
|
90
|
+
l.ptrToAsset = f => {
|
|
91
|
+
let g = l.ptrToFileAsset(f);
|
|
92
|
+
return g.isImage ? l.ptrToImageAsset(f) : g.isFont ? l.ptrToFontAsset(f) : g.isAudio ? l.ptrToAudioAsset(f) : g;
|
|
93
|
+
};
|
|
94
|
+
l.CustomFileAssetLoader = d.extend("CustomFileAssetLoader", {__construct:function({loadContents:f}) {
|
|
89
95
|
this.__parent.__construct.call(this);
|
|
90
|
-
this.Bb =
|
|
91
|
-
}, loadContents:function(
|
|
92
|
-
|
|
93
|
-
return this.Bb(
|
|
96
|
+
this.Bb = f;
|
|
97
|
+
}, loadContents:function(f, g) {
|
|
98
|
+
f = l.ptrToAsset(f);
|
|
99
|
+
return this.Bb(f, g);
|
|
94
100
|
},});
|
|
95
|
-
l.CDNFileAssetLoader =
|
|
101
|
+
l.CDNFileAssetLoader = d.extend("CDNFileAssetLoader", {__construct:function() {
|
|
96
102
|
this.__parent.__construct.call(this);
|
|
97
|
-
}, loadContents:function(
|
|
98
|
-
let
|
|
99
|
-
|
|
100
|
-
if ("" ===
|
|
103
|
+
}, loadContents:function(f) {
|
|
104
|
+
let g = l.ptrToAsset(f);
|
|
105
|
+
f = g.cdnUuid;
|
|
106
|
+
if ("" === f) {
|
|
101
107
|
return !1;
|
|
102
108
|
}
|
|
103
|
-
(function(
|
|
109
|
+
(function(k, p) {
|
|
104
110
|
var m = new XMLHttpRequest();
|
|
105
111
|
m.responseType = "arraybuffer";
|
|
106
112
|
m.onreadystatechange = function() {
|
|
107
|
-
4 == m.readyState && 200 == m.status &&
|
|
113
|
+
4 == m.readyState && 200 == m.status && p(m);
|
|
108
114
|
};
|
|
109
|
-
m.open("GET",
|
|
115
|
+
m.open("GET", k, !0);
|
|
110
116
|
m.send(null);
|
|
111
|
-
})(
|
|
112
|
-
|
|
117
|
+
})(g.cdnBaseUrl + "/" + f, k => {
|
|
118
|
+
g.decode(new Uint8Array(k.response));
|
|
113
119
|
});
|
|
114
120
|
return !0;
|
|
115
121
|
},});
|
|
116
|
-
l.FallbackFileAssetLoader =
|
|
122
|
+
l.FallbackFileAssetLoader = d.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
117
123
|
this.__parent.__construct.call(this);
|
|
118
124
|
this.ib = [];
|
|
119
|
-
}, addLoader:function(
|
|
120
|
-
this.ib.push(
|
|
121
|
-
}, loadContents:function(
|
|
122
|
-
for (let
|
|
123
|
-
if (
|
|
125
|
+
}, addLoader:function(f) {
|
|
126
|
+
this.ib.push(f);
|
|
127
|
+
}, loadContents:function(f, g) {
|
|
128
|
+
for (let k of this.ib) {
|
|
129
|
+
if (k.loadContents(f, g)) {
|
|
124
130
|
return !0;
|
|
125
131
|
}
|
|
126
132
|
}
|
|
127
133
|
return !1;
|
|
128
134
|
},});
|
|
129
|
-
let
|
|
130
|
-
l.computeAlignment = function(
|
|
131
|
-
return
|
|
135
|
+
let e = l.computeAlignment;
|
|
136
|
+
l.computeAlignment = function(f, g, k, p, m = 1.0) {
|
|
137
|
+
return e.call(this, f, g, k, p, m);
|
|
132
138
|
};
|
|
133
139
|
};
|
|
134
140
|
const ja = l.onRuntimeInitialized;
|
|
@@ -204,7 +210,7 @@ l.onRuntimeInitialized = function() {
|
|
|
204
210
|
}
|
|
205
211
|
u = Math.min(u, r);
|
|
206
212
|
u = Math.min(z, r);
|
|
207
|
-
C.sort((Z,
|
|
213
|
+
C.sort((Z, ob) => ob.Ja - Z.Ja);
|
|
208
214
|
A = new l.DynamicRectanizer(r);
|
|
209
215
|
for (J = 0; J < C.length;) {
|
|
210
216
|
A.reset(u, z);
|
|
@@ -217,8 +223,8 @@ l.onRuntimeInitialized = function() {
|
|
|
217
223
|
K.qa = I & 65535;
|
|
218
224
|
K.ra = I >> 16;
|
|
219
225
|
}
|
|
220
|
-
K =
|
|
221
|
-
I =
|
|
226
|
+
K = p.push(A.drawWidth());
|
|
227
|
+
I = m.push(A.drawHeight());
|
|
222
228
|
console.assert(K >= A.drawWidth());
|
|
223
229
|
console.assert(I >= A.drawHeight());
|
|
224
230
|
console.assert(K <= r);
|
|
@@ -236,8 +242,8 @@ l.onRuntimeInitialized = function() {
|
|
|
236
242
|
Z.tx = I.qa;
|
|
237
243
|
Z.ty = I.ra;
|
|
238
244
|
d.transform(Z);
|
|
239
|
-
for (const
|
|
240
|
-
|
|
245
|
+
for (const ob of I.S) {
|
|
246
|
+
ob();
|
|
241
247
|
}
|
|
242
248
|
d.restoreClipRect();
|
|
243
249
|
I.S = [];
|
|
@@ -284,7 +290,7 @@ l.onRuntimeInitialized = function() {
|
|
|
284
290
|
this.Eb || k.call(this, r.Db);
|
|
285
291
|
}) : k.call(this, r);
|
|
286
292
|
};
|
|
287
|
-
const
|
|
293
|
+
const p = new ha(), m = new ha(), t = new fa();
|
|
288
294
|
l.requestAnimationFrame = t.requestAnimationFrame.bind(t);
|
|
289
295
|
l.cancelAnimationFrame = t.cancelAnimationFrame.bind(t);
|
|
290
296
|
l.enableFPSCounter = t.Kb.bind(t);
|
|
@@ -310,9 +316,9 @@ l.onRuntimeInitialized = function() {
|
|
|
310
316
|
r = l.decodeWebGL2Image(r);
|
|
311
317
|
u(r);
|
|
312
318
|
};
|
|
313
|
-
let
|
|
319
|
+
let n = l.Renderer.prototype.align;
|
|
314
320
|
l.Renderer.prototype.align = function(r, u, z, A, C = 1.0) {
|
|
315
|
-
|
|
321
|
+
n.call(this, r, u, z, A, C);
|
|
316
322
|
};
|
|
317
323
|
};
|
|
318
324
|
var ma = Object.assign({}, l), na = "./this.program", y = "", oa, pa;
|
|
@@ -406,7 +412,7 @@ function Na(a, b) {
|
|
|
406
412
|
return Ma(c, a, b);
|
|
407
413
|
}));
|
|
408
414
|
}
|
|
409
|
-
var Oa, Pa, Ta = {
|
|
415
|
+
var Oa, Pa, Ta = {563953:(a, b, c, d, e) => {
|
|
410
416
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
411
417
|
return 0;
|
|
412
418
|
}
|
|
@@ -455,12 +461,12 @@ var Oa, Pa, Ta = {563121:(a, b, c, d, e) => {
|
|
|
455
461
|
var k = f.D[g];
|
|
456
462
|
null != k && null != k.K && k.state === f.ia.ub && k.K.resume().then(() => {
|
|
457
463
|
Qa(k.nb);
|
|
458
|
-
},
|
|
459
|
-
console.error("Failed to resume audiocontext",
|
|
464
|
+
}, p => {
|
|
465
|
+
console.error("Failed to resume audiocontext", p);
|
|
460
466
|
});
|
|
461
467
|
}
|
|
462
|
-
f.Xa.map(function(
|
|
463
|
-
document.removeEventListener(
|
|
468
|
+
f.Xa.map(function(p) {
|
|
469
|
+
document.removeEventListener(p, f.unlock, !0);
|
|
464
470
|
});
|
|
465
471
|
};
|
|
466
472
|
f.Xa.map(function(g) {
|
|
@@ -469,11 +475,11 @@ var Oa, Pa, Ta = {563121:(a, b, c, d, e) => {
|
|
|
469
475
|
}
|
|
470
476
|
window.h.Ea += 1;
|
|
471
477
|
return 1;
|
|
472
|
-
},
|
|
478
|
+
}, 566131:() => {
|
|
473
479
|
"undefined" !== typeof window.h && (window.h.Xa.map(function(a) {
|
|
474
480
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
475
481
|
}), --window.h.Ea, 0 === window.h.Ea && delete window.h);
|
|
476
|
-
},
|
|
482
|
+
}, 566435:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 566539:() => {
|
|
477
483
|
try {
|
|
478
484
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
479
485
|
a.close();
|
|
@@ -481,7 +487,7 @@ var Oa, Pa, Ta = {563121:(a, b, c, d, e) => {
|
|
|
481
487
|
} catch (c) {
|
|
482
488
|
return 0;
|
|
483
489
|
}
|
|
484
|
-
},
|
|
490
|
+
}, 566710:(a, b, c, d, e, f) => {
|
|
485
491
|
if ("undefined" === typeof window.h) {
|
|
486
492
|
return -1;
|
|
487
493
|
}
|
|
@@ -493,41 +499,41 @@ var Oa, Pa, Ta = {563121:(a, b, c, d, e) => {
|
|
|
493
499
|
c = 0;
|
|
494
500
|
a != window.h.I.Ca && (c = b);
|
|
495
501
|
g.Y = g.K.createScriptProcessor(d, c, b);
|
|
496
|
-
g.Y.onaudioprocess = function(
|
|
502
|
+
g.Y.onaudioprocess = function(p) {
|
|
497
503
|
if (null == g.ua || 0 == g.ua.length) {
|
|
498
504
|
g.ua = new Float32Array(xa.buffer, e, d * b);
|
|
499
505
|
}
|
|
500
506
|
if (a == window.h.I.capture || a == window.h.I.Pa) {
|
|
501
|
-
for (var
|
|
502
|
-
for (var t =
|
|
503
|
-
v[x * b +
|
|
507
|
+
for (var m = 0; m < b; m += 1) {
|
|
508
|
+
for (var t = p.inputBuffer.getChannelData(m), v = g.ua, x = 0; x < d; x += 1) {
|
|
509
|
+
v[x * b + m] = t[x];
|
|
504
510
|
}
|
|
505
511
|
}
|
|
506
512
|
Ra(f, d, e);
|
|
507
513
|
}
|
|
508
514
|
if (a == window.h.I.Ca || a == window.h.I.Pa) {
|
|
509
|
-
for (Sa(f, d, e),
|
|
510
|
-
for (t =
|
|
511
|
-
t[x] = v[x * b +
|
|
515
|
+
for (Sa(f, d, e), m = 0; m < p.outputBuffer.numberOfChannels; ++m) {
|
|
516
|
+
for (t = p.outputBuffer.getChannelData(m), v = g.ua, x = 0; x < d; x += 1) {
|
|
517
|
+
t[x] = v[x * b + m];
|
|
512
518
|
}
|
|
513
519
|
}
|
|
514
520
|
} else {
|
|
515
|
-
for (
|
|
516
|
-
|
|
521
|
+
for (m = 0; m < p.outputBuffer.numberOfChannels; ++m) {
|
|
522
|
+
p.outputBuffer.getChannelData(m).fill(0.0);
|
|
517
523
|
}
|
|
518
524
|
}
|
|
519
525
|
};
|
|
520
|
-
a != window.h.I.capture && a != window.h.I.Pa || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(
|
|
521
|
-
g.Fa = g.K.createMediaStreamSource(
|
|
526
|
+
a != window.h.I.capture && a != window.h.I.Pa || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(p) {
|
|
527
|
+
g.Fa = g.K.createMediaStreamSource(p);
|
|
522
528
|
g.Fa.connect(g.Y);
|
|
523
529
|
g.Y.connect(g.K.destination);
|
|
524
|
-
}).catch(function(
|
|
525
|
-
console.log("Failed to get user media: " +
|
|
530
|
+
}).catch(function(p) {
|
|
531
|
+
console.log("Failed to get user media: " + p);
|
|
526
532
|
});
|
|
527
533
|
a == window.h.I.Ca && g.Y.connect(g.K.destination);
|
|
528
534
|
g.nb = f;
|
|
529
535
|
return window.h.lc(g);
|
|
530
|
-
},
|
|
536
|
+
}, 569587:a => window.h.ta(a).K.sampleRate, 569660:a => {
|
|
531
537
|
a = window.h.ta(a);
|
|
532
538
|
void 0 !== a.Y && (a.Y.onaudioprocess = function() {
|
|
533
539
|
}, a.Y.disconnect(), a.Y = void 0);
|
|
@@ -535,13 +541,13 @@ var Oa, Pa, Ta = {563121:(a, b, c, d, e) => {
|
|
|
535
541
|
a.K.close();
|
|
536
542
|
a.K = void 0;
|
|
537
543
|
a.nb = void 0;
|
|
538
|
-
},
|
|
544
|
+
}, 570060:a => {
|
|
539
545
|
window.h.yb(a);
|
|
540
|
-
},
|
|
546
|
+
}, 570110:a => {
|
|
541
547
|
a = window.h.ta(a);
|
|
542
548
|
a.K.resume();
|
|
543
549
|
a.state = window.h.ia.ub;
|
|
544
|
-
},
|
|
550
|
+
}, 570249:a => {
|
|
545
551
|
a = window.h.ta(a);
|
|
546
552
|
a.K.suspend();
|
|
547
553
|
a.state = window.h.ia.stopped;
|
|
@@ -761,7 +767,7 @@ var lb = {open(a) {
|
|
|
761
767
|
return 0;
|
|
762
768
|
}, Xb() {
|
|
763
769
|
return [24, 80];
|
|
764
|
-
},},
|
|
770
|
+
},}, nb = {Sa(a, b) {
|
|
765
771
|
null === b || 10 === b ? (sa(L(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
|
|
766
772
|
}, sa(a) {
|
|
767
773
|
a.H && 0 < a.H.length && (sa(L(a.H, 0)), a.H = []);
|
|
@@ -1268,34 +1274,34 @@ function Wb(a, b, c) {
|
|
|
1268
1274
|
f.seekable = !1;
|
|
1269
1275
|
}, close() {
|
|
1270
1276
|
c?.buffer?.length && c(10);
|
|
1271
|
-
}, read(f, g, k,
|
|
1272
|
-
for (var
|
|
1277
|
+
}, read(f, g, k, p) {
|
|
1278
|
+
for (var m = 0, t = 0; t < p; t++) {
|
|
1273
1279
|
try {
|
|
1274
1280
|
var v = b();
|
|
1275
1281
|
} catch (x) {
|
|
1276
1282
|
throw new M(29);
|
|
1277
1283
|
}
|
|
1278
|
-
if (void 0 === v && 0 ===
|
|
1284
|
+
if (void 0 === v && 0 === m) {
|
|
1279
1285
|
throw new M(6);
|
|
1280
1286
|
}
|
|
1281
1287
|
if (null === v || void 0 === v) {
|
|
1282
1288
|
break;
|
|
1283
1289
|
}
|
|
1284
|
-
|
|
1290
|
+
m++;
|
|
1285
1291
|
g[k + t] = v;
|
|
1286
1292
|
}
|
|
1287
|
-
|
|
1288
|
-
return
|
|
1289
|
-
}, write(f, g, k,
|
|
1290
|
-
for (var
|
|
1293
|
+
m && (f.node.timestamp = Date.now());
|
|
1294
|
+
return m;
|
|
1295
|
+
}, write(f, g, k, p) {
|
|
1296
|
+
for (var m = 0; m < p; m++) {
|
|
1291
1297
|
try {
|
|
1292
|
-
c(g[k +
|
|
1298
|
+
c(g[k + m]);
|
|
1293
1299
|
} catch (t) {
|
|
1294
1300
|
throw new M(29);
|
|
1295
1301
|
}
|
|
1296
1302
|
}
|
|
1297
|
-
|
|
1298
|
-
return
|
|
1303
|
+
p && (f.node.timestamp = Date.now());
|
|
1304
|
+
return m;
|
|
1299
1305
|
}});
|
|
1300
1306
|
Qb(a, d, e);
|
|
1301
1307
|
}
|
|
@@ -1418,17 +1424,17 @@ var zc = {}, Ac = {}, T = (a, b, c) => {
|
|
|
1418
1424
|
if (k.length !== a.length) {
|
|
1419
1425
|
throw new tc("Mismatched type converter count");
|
|
1420
1426
|
}
|
|
1421
|
-
for (var
|
|
1422
|
-
S(a[
|
|
1427
|
+
for (var p = 0; p < a.length; ++p) {
|
|
1428
|
+
S(a[p], k[p]);
|
|
1423
1429
|
}
|
|
1424
1430
|
}
|
|
1425
1431
|
a.forEach(function(k) {
|
|
1426
1432
|
Ac[k] = b;
|
|
1427
1433
|
});
|
|
1428
1434
|
var e = Array(b.length), f = [], g = 0;
|
|
1429
|
-
b.forEach((k,
|
|
1430
|
-
jc.hasOwnProperty(k) ? e[
|
|
1431
|
-
e[
|
|
1435
|
+
b.forEach((k, p) => {
|
|
1436
|
+
jc.hasOwnProperty(k) ? e[p] = jc[k] : (f.push(k), zc.hasOwnProperty(k) || (zc[k] = []), zc[k].push(() => {
|
|
1437
|
+
e[p] = jc[k];
|
|
1432
1438
|
++g;
|
|
1433
1439
|
g === f.length && d(e);
|
|
1434
1440
|
}));
|
|
@@ -1600,7 +1606,7 @@ function Mc(a, b) {
|
|
|
1600
1606
|
}
|
|
1601
1607
|
return Ic(b.g.o, b.g.u.i, this.i);
|
|
1602
1608
|
}
|
|
1603
|
-
function Nc(a, b, c, d, e, f, g, k,
|
|
1609
|
+
function Nc(a, b, c, d, e, f, g, k, p, m, t) {
|
|
1604
1610
|
this.name = a;
|
|
1605
1611
|
this.i = b;
|
|
1606
1612
|
this.Ra = c;
|
|
@@ -1609,8 +1615,8 @@ function Nc(a, b, c, d, e, f, g, k, m, n, t) {
|
|
|
1609
1615
|
this.ac = f;
|
|
1610
1616
|
this.fc = g;
|
|
1611
1617
|
this.qb = k;
|
|
1612
|
-
this.Ta =
|
|
1613
|
-
this.bc =
|
|
1618
|
+
this.Ta = p;
|
|
1619
|
+
this.bc = m;
|
|
1614
1620
|
this.O = t;
|
|
1615
1621
|
e || void 0 !== b.B ? this.toWireType = Lc : (this.toWireType = d ? Jc : Mc, this.L = null);
|
|
1616
1622
|
}
|
|
@@ -1654,10 +1660,10 @@ function Xc(a, b, c, d, e) {
|
|
|
1654
1660
|
if (2 > f) {
|
|
1655
1661
|
throw new P("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1656
1662
|
}
|
|
1657
|
-
var g = null !== b[1] && null !== c, k = Wc(b),
|
|
1658
|
-
return Zb(a, function(...
|
|
1659
|
-
if (
|
|
1660
|
-
throw new P(`function ${a} called with ${
|
|
1663
|
+
var g = null !== b[1] && null !== c, k = Wc(b), p = "void" !== b[0].name, m = f - 2, t = Array(m), v = [], x = [];
|
|
1664
|
+
return Zb(a, function(...n) {
|
|
1665
|
+
if (n.length !== m) {
|
|
1666
|
+
throw new P(`function ${a} called with ${n.length} arguments, expected ${m}`);
|
|
1661
1667
|
}
|
|
1662
1668
|
x.length = 0;
|
|
1663
1669
|
v.length = g ? 2 : 1;
|
|
@@ -1666,10 +1672,10 @@ function Xc(a, b, c, d, e) {
|
|
|
1666
1672
|
var r = b[1].toWireType(x, this);
|
|
1667
1673
|
v[1] = r;
|
|
1668
1674
|
}
|
|
1669
|
-
for (var u = 0; u <
|
|
1670
|
-
t[u] = b[u + 2].toWireType(x,
|
|
1675
|
+
for (var u = 0; u < m; ++u) {
|
|
1676
|
+
t[u] = b[u + 2].toWireType(x, n[u]), v.push(t[u]);
|
|
1671
1677
|
}
|
|
1672
|
-
|
|
1678
|
+
n = d(...v);
|
|
1673
1679
|
if (k) {
|
|
1674
1680
|
xc(x);
|
|
1675
1681
|
} else {
|
|
@@ -1678,7 +1684,7 @@ function Xc(a, b, c, d, e) {
|
|
|
1678
1684
|
null !== b[u].L && b[u].L(z);
|
|
1679
1685
|
}
|
|
1680
1686
|
}
|
|
1681
|
-
r =
|
|
1687
|
+
r = p ? b[0].fromWireType(n) : void 0;
|
|
1682
1688
|
return r;
|
|
1683
1689
|
});
|
|
1684
1690
|
}
|
|
@@ -1835,12 +1841,12 @@ var Yc = (a, b) => {
|
|
|
1835
1841
|
a = a.toWireType(d, c);
|
|
1836
1842
|
d.length && (H[b >> 2] = ac(d));
|
|
1837
1843
|
return a;
|
|
1838
|
-
}, od = {},
|
|
1839
|
-
var b =
|
|
1844
|
+
}, od = [], pd = {}, qd = a => {
|
|
1845
|
+
var b = pd[a];
|
|
1840
1846
|
return void 0 === b ? R(a) : b;
|
|
1841
|
-
},
|
|
1842
|
-
var b =
|
|
1843
|
-
|
|
1847
|
+
}, rd = a => {
|
|
1848
|
+
var b = od.length;
|
|
1849
|
+
od.push(a);
|
|
1844
1850
|
return b;
|
|
1845
1851
|
}, sd = (a, b) => {
|
|
1846
1852
|
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
@@ -2014,93 +2020,93 @@ var Td = (a, b) => {
|
|
|
2014
2020
|
a -= 5120;
|
|
2015
2021
|
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 ? H : wa;
|
|
2016
2022
|
}, 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) => {
|
|
2017
|
-
function e(
|
|
2018
|
-
for (
|
|
2019
|
-
|
|
2023
|
+
function e(n, r, u) {
|
|
2024
|
+
for (n = "number" == typeof n ? n.toString() : n || ""; n.length < r;) {
|
|
2025
|
+
n = u[0] + n;
|
|
2020
2026
|
}
|
|
2021
|
-
return
|
|
2027
|
+
return n;
|
|
2022
2028
|
}
|
|
2023
|
-
function f(
|
|
2024
|
-
return e(
|
|
2029
|
+
function f(n, r) {
|
|
2030
|
+
return e(n, r, "0");
|
|
2025
2031
|
}
|
|
2026
|
-
function g(
|
|
2032
|
+
function g(n, r) {
|
|
2027
2033
|
function u(A) {
|
|
2028
2034
|
return 0 > A ? -1 : 0 < A ? 1 : 0;
|
|
2029
2035
|
}
|
|
2030
2036
|
var z;
|
|
2031
|
-
0 === (z = u(
|
|
2037
|
+
0 === (z = u(n.getFullYear() - r.getFullYear())) && 0 === (z = u(n.getMonth() - r.getMonth())) && (z = u(n.getDate() - r.getDate()));
|
|
2032
2038
|
return z;
|
|
2033
2039
|
}
|
|
2034
|
-
function k(
|
|
2035
|
-
switch(
|
|
2040
|
+
function k(n) {
|
|
2041
|
+
switch(n.getDay()) {
|
|
2036
2042
|
case 0:
|
|
2037
|
-
return new Date(
|
|
2043
|
+
return new Date(n.getFullYear() - 1, 11, 29);
|
|
2038
2044
|
case 1:
|
|
2039
|
-
return
|
|
2045
|
+
return n;
|
|
2040
2046
|
case 2:
|
|
2041
|
-
return new Date(
|
|
2047
|
+
return new Date(n.getFullYear(), 0, 3);
|
|
2042
2048
|
case 3:
|
|
2043
|
-
return new Date(
|
|
2049
|
+
return new Date(n.getFullYear(), 0, 2);
|
|
2044
2050
|
case 4:
|
|
2045
|
-
return new Date(
|
|
2051
|
+
return new Date(n.getFullYear(), 0, 1);
|
|
2046
2052
|
case 5:
|
|
2047
|
-
return new Date(
|
|
2053
|
+
return new Date(n.getFullYear() - 1, 11, 31);
|
|
2048
2054
|
case 6:
|
|
2049
|
-
return new Date(
|
|
2055
|
+
return new Date(n.getFullYear() - 1, 11, 30);
|
|
2050
2056
|
}
|
|
2051
2057
|
}
|
|
2052
|
-
function
|
|
2053
|
-
var r =
|
|
2054
|
-
for (
|
|
2055
|
-
var u =
|
|
2056
|
-
if (r > z -
|
|
2057
|
-
r -= z -
|
|
2058
|
+
function p(n) {
|
|
2059
|
+
var r = n.ca;
|
|
2060
|
+
for (n = new Date((new Date(n.da + 1900, 0, 1)).getTime()); 0 < r;) {
|
|
2061
|
+
var u = n.getMonth(), z = (ud(n.getFullYear()) ? Yd : Zd)[u];
|
|
2062
|
+
if (r > z - n.getDate()) {
|
|
2063
|
+
r -= z - n.getDate() + 1, n.setDate(1), 11 > u ? n.setMonth(u + 1) : (n.setMonth(0), n.setFullYear(n.getFullYear() + 1));
|
|
2058
2064
|
} else {
|
|
2059
|
-
|
|
2065
|
+
n.setDate(n.getDate() + r);
|
|
2060
2066
|
break;
|
|
2061
2067
|
}
|
|
2062
2068
|
}
|
|
2063
|
-
u = new Date(
|
|
2064
|
-
r = k(new Date(
|
|
2069
|
+
u = new Date(n.getFullYear() + 1, 0, 4);
|
|
2070
|
+
r = k(new Date(n.getFullYear(), 0, 4));
|
|
2065
2071
|
u = k(u);
|
|
2066
|
-
return 0 >= g(r,
|
|
2072
|
+
return 0 >= g(r, n) ? 0 >= g(u, n) ? n.getFullYear() + 1 : n.getFullYear() : n.getFullYear() - 1;
|
|
2067
2073
|
}
|
|
2068
|
-
var
|
|
2069
|
-
d = {jc:F[d >> 2], ic:F[d + 4 >> 2], Ha:F[d + 8 >> 2], Va:F[d + 12 >> 2], Ia:F[d + 16 >> 2], da:F[d + 20 >> 2], R:F[d + 24 >> 2], ca:F[d + 28 >> 2], Lc:F[d + 32 >> 2], hc:F[d + 36 >> 2], kc:
|
|
2074
|
+
var m = H[d + 40 >> 2];
|
|
2075
|
+
d = {jc:F[d >> 2], ic:F[d + 4 >> 2], Ha:F[d + 8 >> 2], Va:F[d + 12 >> 2], Ia:F[d + 16 >> 2], da:F[d + 20 >> 2], R:F[d + 24 >> 2], ca:F[d + 28 >> 2], Lc:F[d + 32 >> 2], hc:F[d + 36 >> 2], kc:m ? m ? L(D, m) : "" : ""};
|
|
2070
2076
|
c = c ? L(D, c) : "";
|
|
2071
|
-
|
|
2072
|
-
for (var t in
|
|
2073
|
-
c = c.replace(new RegExp(t, "g"),
|
|
2077
|
+
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",};
|
|
2078
|
+
for (var t in m) {
|
|
2079
|
+
c = c.replace(new RegExp(t, "g"), m[t]);
|
|
2074
2080
|
}
|
|
2075
2081
|
var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), x = "January February March April May June July August September October November December".split(" ");
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
0 ==
|
|
2079
|
-
return f(
|
|
2080
|
-
}, "%j":
|
|
2081
|
-
for (var r = 0, u = 0; u <=
|
|
2082
|
-
}
|
|
2083
|
-
return f(
|
|
2084
|
-
}, "%m":
|
|
2085
|
-
var r = Math.floor((
|
|
2086
|
-
2 >= (
|
|
2082
|
+
m = {"%a":n => v[n.R].substring(0, 3), "%A":n => v[n.R], "%b":n => x[n.Ia].substring(0, 3), "%B":n => x[n.Ia], "%C":n => f((n.da + 1900) / 100 | 0, 2), "%d":n => f(n.Va, 2), "%e":n => e(n.Va, 2, " "), "%g":n => p(n).toString().substring(2), "%G":p, "%H":n => f(n.Ha, 2), "%I":n => {
|
|
2083
|
+
n = n.Ha;
|
|
2084
|
+
0 == n ? n = 12 : 12 < n && (n -= 12);
|
|
2085
|
+
return f(n, 2);
|
|
2086
|
+
}, "%j":n => {
|
|
2087
|
+
for (var r = 0, u = 0; u <= n.Ia - 1; r += (ud(n.da + 1900) ? Yd : Zd)[u++]) {
|
|
2088
|
+
}
|
|
2089
|
+
return f(n.Va + r, 3);
|
|
2090
|
+
}, "%m":n => f(n.Ia + 1, 2), "%M":n => f(n.ic, 2), "%n":() => "\n", "%p":n => 0 <= n.Ha && 12 > n.Ha ? "AM" : "PM", "%S":n => f(n.jc, 2), "%t":() => "\t", "%u":n => n.R || 7, "%U":n => f(Math.floor((n.ca + 7 - n.R) / 7), 2), "%V":n => {
|
|
2091
|
+
var r = Math.floor((n.ca + 7 - (n.R + 6) % 7) / 7);
|
|
2092
|
+
2 >= (n.R + 371 - n.ca - 2) % 7 && r++;
|
|
2087
2093
|
if (r) {
|
|
2088
|
-
53 == r && (u = (
|
|
2094
|
+
53 == r && (u = (n.R + 371 - n.ca) % 7, 4 == u || 3 == u && ud(n.da) || (r = 1));
|
|
2089
2095
|
} else {
|
|
2090
2096
|
r = 52;
|
|
2091
|
-
var u = (
|
|
2092
|
-
(4 == u || 5 == u && ud(
|
|
2097
|
+
var u = (n.R + 7 - n.ca - 1) % 7;
|
|
2098
|
+
(4 == u || 5 == u && ud(n.da % 400 - 1)) && r++;
|
|
2093
2099
|
}
|
|
2094
2100
|
return f(r, 2);
|
|
2095
|
-
}, "%w":
|
|
2096
|
-
|
|
2097
|
-
var r = 0 <=
|
|
2098
|
-
|
|
2099
|
-
return (r ? "+" : "-") + String("0000" + (
|
|
2100
|
-
}, "%Z":
|
|
2101
|
+
}, "%w":n => n.R, "%W":n => f(Math.floor((n.ca + 7 - (n.R + 6) % 7) / 7), 2), "%y":n => (n.da + 1900).toString().substring(2), "%Y":n => n.da + 1900, "%z":n => {
|
|
2102
|
+
n = n.hc;
|
|
2103
|
+
var r = 0 <= n;
|
|
2104
|
+
n = Math.abs(n) / 60;
|
|
2105
|
+
return (r ? "+" : "-") + String("0000" + (n / 60 * 100 + n % 60)).slice(-4);
|
|
2106
|
+
}, "%Z":n => n.kc, "%%":() => "%"};
|
|
2101
2107
|
c = c.replace(/%%/g, "\x00\x00");
|
|
2102
|
-
for (t in
|
|
2103
|
-
c.includes(t) && (c = c.replace(new RegExp(t, "g"),
|
|
2108
|
+
for (t in m) {
|
|
2109
|
+
c.includes(t) && (c = c.replace(new RegExp(t, "g"), m[t](d)));
|
|
2104
2110
|
}
|
|
2105
2111
|
c = c.replace(/\0\0/g, "%");
|
|
2106
2112
|
t = hb(c, !1);
|
|
@@ -2124,7 +2130,7 @@ Pb("/home/web_user");
|
|
|
2124
2130
|
kb(259, {read:() => 0, write:(d, e, f, g) => g,});
|
|
2125
2131
|
Qb("/dev/null", 259);
|
|
2126
2132
|
jb(1280, mb);
|
|
2127
|
-
jb(1536,
|
|
2133
|
+
jb(1536, nb);
|
|
2128
2134
|
Qb("/dev/tty", 1280);
|
|
2129
2135
|
Qb("/dev/tty1", 1536);
|
|
2130
2136
|
var a = new Uint8Array(1024), b = 0, c = () => {
|
|
@@ -2399,9 +2405,9 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2399
2405
|
c = Q(c);
|
|
2400
2406
|
var d = b.i, e = d.M, f = d.B.M, g = d.B.constructor;
|
|
2401
2407
|
a = Zb(a, function(...k) {
|
|
2402
|
-
d.B.ob.forEach(function(
|
|
2403
|
-
if (this[
|
|
2404
|
-
throw new cc(`Pure virtual function ${
|
|
2408
|
+
d.B.ob.forEach(function(p) {
|
|
2409
|
+
if (this[p] === f[p]) {
|
|
2410
|
+
throw new cc(`Pure virtual function ${p} must be implemented in JavaScript`);
|
|
2405
2411
|
}
|
|
2406
2412
|
}.bind(this));
|
|
2407
2413
|
Object.defineProperty(this, "__parent", {value:e});
|
|
@@ -2413,12 +2419,12 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2413
2419
|
}
|
|
2414
2420
|
k = g.implement(this, ...k);
|
|
2415
2421
|
oc(k);
|
|
2416
|
-
var
|
|
2422
|
+
var p = k.g;
|
|
2417
2423
|
k.notifyOnDestruction();
|
|
2418
|
-
|
|
2419
|
-
Object.defineProperties(this, {g:{value:
|
|
2424
|
+
p.ja = !0;
|
|
2425
|
+
Object.defineProperties(this, {g:{value:p}});
|
|
2420
2426
|
uc(this);
|
|
2421
|
-
k =
|
|
2427
|
+
k = p.o;
|
|
2422
2428
|
k = ic(d, k);
|
|
2423
2429
|
if (hc.hasOwnProperty(k)) {
|
|
2424
2430
|
throw new P(`Tried to register registered instance: ${k}`);
|
|
@@ -2447,32 +2453,32 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2447
2453
|
var c = b.Ta, d = b.O, e = b.eb, f = e.map(g => g.Rb).concat(e.map(g => g.dc));
|
|
2448
2454
|
T([a], f, g => {
|
|
2449
2455
|
var k = {};
|
|
2450
|
-
e.forEach((
|
|
2451
|
-
var t = g[
|
|
2452
|
-
k[
|
|
2456
|
+
e.forEach((p, m) => {
|
|
2457
|
+
var t = g[m], v = p.Pb, x = p.Qb, n = g[m + e.length], r = p.cc, u = p.ec;
|
|
2458
|
+
k[p.Lb] = {read:z => t.fromWireType(v(x, z)), write:(z, A) => {
|
|
2453
2459
|
var C = [];
|
|
2454
|
-
r(u, z,
|
|
2460
|
+
r(u, z, n.toWireType(C, A));
|
|
2455
2461
|
xc(C);
|
|
2456
2462
|
}};
|
|
2457
2463
|
});
|
|
2458
|
-
return [{name:b.name, fromWireType:
|
|
2459
|
-
var
|
|
2464
|
+
return [{name:b.name, fromWireType:p => {
|
|
2465
|
+
var m = {}, t;
|
|
2460
2466
|
for (t in k) {
|
|
2461
|
-
|
|
2467
|
+
m[t] = k[t].read(p);
|
|
2462
2468
|
}
|
|
2463
|
-
d(
|
|
2464
|
-
return
|
|
2465
|
-
}, toWireType:(
|
|
2469
|
+
d(p);
|
|
2470
|
+
return m;
|
|
2471
|
+
}, toWireType:(p, m) => {
|
|
2466
2472
|
for (var t in k) {
|
|
2467
|
-
if (!(t in
|
|
2473
|
+
if (!(t in m)) {
|
|
2468
2474
|
throw new TypeError(`Missing field: "${t}"`);
|
|
2469
2475
|
}
|
|
2470
2476
|
}
|
|
2471
2477
|
var v = c();
|
|
2472
2478
|
for (t in k) {
|
|
2473
|
-
k[t].write(v,
|
|
2479
|
+
k[t].write(v, m[t]);
|
|
2474
2480
|
}
|
|
2475
|
-
null !==
|
|
2481
|
+
null !== p && p.push(d, v);
|
|
2476
2482
|
return v;
|
|
2477
2483
|
}, argPackAdvance:8, readValueFromPointer:yc, L:d,}];
|
|
2478
2484
|
});
|
|
@@ -2486,14 +2492,14 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2486
2492
|
}, argPackAdvance:8, readValueFromPointer:function(e) {
|
|
2487
2493
|
return this.fromWireType(D[e]);
|
|
2488
2494
|
}, L:null,});
|
|
2489
|
-
}, _embind_register_class:(a, b, c, d, e, f, g, k,
|
|
2495
|
+
}, _embind_register_class:(a, b, c, d, e, f, g, k, p, m, t, v, x) => {
|
|
2490
2496
|
t = R(t);
|
|
2491
2497
|
f = U(e, f);
|
|
2492
2498
|
k &&= U(g, k);
|
|
2493
|
-
|
|
2499
|
+
m &&= U(p, m);
|
|
2494
2500
|
x = U(v, x);
|
|
2495
|
-
var
|
|
2496
|
-
Fc(
|
|
2501
|
+
var n = Gc(t);
|
|
2502
|
+
Fc(n, function() {
|
|
2497
2503
|
Vc(`Cannot construct ${t} due to unbound types`, [d]);
|
|
2498
2504
|
});
|
|
2499
2505
|
T([a, b, c], d ? [d] : [], r => {
|
|
@@ -2519,7 +2525,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2519
2525
|
});
|
|
2520
2526
|
var A = Object.create(z, {constructor:{value:r},});
|
|
2521
2527
|
r.prototype = A;
|
|
2522
|
-
var C = new Hc(t, r, A, x, u, f, k,
|
|
2528
|
+
var C = new Hc(t, r, A, x, u, f, k, m);
|
|
2523
2529
|
if (C.B) {
|
|
2524
2530
|
var G;
|
|
2525
2531
|
(G = C.B).pa ?? (G.pa = []);
|
|
@@ -2529,7 +2535,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2529
2535
|
G = new Nc(t + "*", C, !1, !1, !1);
|
|
2530
2536
|
z = new Nc(t + " const*", C, !1, !0, !1);
|
|
2531
2537
|
rc[a] = {pointerType:G, Gb:z};
|
|
2532
|
-
Oc(
|
|
2538
|
+
Oc(n, r);
|
|
2533
2539
|
return [u, G, z];
|
|
2534
2540
|
});
|
|
2535
2541
|
}, _embind_register_class_class_function:(a, b, c, d, e, f, g) => {
|
|
@@ -2537,21 +2543,21 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2537
2543
|
b = R(b);
|
|
2538
2544
|
b = Zc(b);
|
|
2539
2545
|
f = U(e, f);
|
|
2540
|
-
T([], [a],
|
|
2541
|
-
function
|
|
2546
|
+
T([], [a], p => {
|
|
2547
|
+
function m() {
|
|
2542
2548
|
Vc(`Cannot call ${t} due to unbound types`, k);
|
|
2543
2549
|
}
|
|
2544
|
-
|
|
2545
|
-
var t = `${
|
|
2550
|
+
p = p[0];
|
|
2551
|
+
var t = `${p.name}.${b}`;
|
|
2546
2552
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2547
|
-
var v =
|
|
2548
|
-
void 0 === v[b] ? (
|
|
2553
|
+
var v = p.i.constructor;
|
|
2554
|
+
void 0 === v[b] ? (m.ga = c - 1, v[b] = m) : (Ec(v, b, t), v[b].A[c - 1] = m);
|
|
2549
2555
|
T([], k, x => {
|
|
2550
2556
|
x = Xc(t, [x[0], null].concat(x.slice(1)), null, f, g);
|
|
2551
2557
|
void 0 === v[b].A ? (x.ga = c - 1, v[b] = x) : v[b].A[c - 1] = x;
|
|
2552
|
-
if (
|
|
2553
|
-
for (const
|
|
2554
|
-
|
|
2558
|
+
if (p.i.pa) {
|
|
2559
|
+
for (const n of p.i.pa) {
|
|
2560
|
+
n.constructor.hasOwnProperty(b) || (n.constructor[b] = x);
|
|
2555
2561
|
}
|
|
2556
2562
|
}
|
|
2557
2563
|
return [];
|
|
@@ -2561,28 +2567,28 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2561
2567
|
}, _embind_register_class_class_property:(a, b, c, d, e, f, g, k) => {
|
|
2562
2568
|
b = R(b);
|
|
2563
2569
|
f = U(e, f);
|
|
2564
|
-
T([], [a],
|
|
2565
|
-
|
|
2566
|
-
var
|
|
2567
|
-
Vc(`Cannot access ${
|
|
2570
|
+
T([], [a], p => {
|
|
2571
|
+
p = p[0];
|
|
2572
|
+
var m = `${p.name}.${b}`, t = {get() {
|
|
2573
|
+
Vc(`Cannot access ${m} due to unbound types`, [c]);
|
|
2568
2574
|
}, enumerable:!0, configurable:!0};
|
|
2569
2575
|
t.set = k ? () => {
|
|
2570
|
-
Vc(`Cannot access ${
|
|
2576
|
+
Vc(`Cannot access ${m} due to unbound types`, [c]);
|
|
2571
2577
|
} : () => {
|
|
2572
|
-
throw new P(`${
|
|
2578
|
+
throw new P(`${m} is a read-only property`);
|
|
2573
2579
|
};
|
|
2574
|
-
Object.defineProperty(
|
|
2580
|
+
Object.defineProperty(p.i.constructor, b, t);
|
|
2575
2581
|
T([], [c], v => {
|
|
2576
2582
|
v = v[0];
|
|
2577
2583
|
var x = {get() {
|
|
2578
2584
|
return v.fromWireType(f(d));
|
|
2579
2585
|
}, enumerable:!0};
|
|
2580
|
-
k && (k = U(g, k), x.set =
|
|
2586
|
+
k && (k = U(g, k), x.set = n => {
|
|
2581
2587
|
var r = [];
|
|
2582
|
-
k(d, v.toWireType(r,
|
|
2588
|
+
k(d, v.toWireType(r, n));
|
|
2583
2589
|
xc(r);
|
|
2584
2590
|
});
|
|
2585
|
-
Object.defineProperty(
|
|
2591
|
+
Object.defineProperty(p.i.constructor, b, x);
|
|
2586
2592
|
return [];
|
|
2587
2593
|
});
|
|
2588
2594
|
return [];
|
|
@@ -2592,7 +2598,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2592
2598
|
e = U(d, e);
|
|
2593
2599
|
T([], [a], k => {
|
|
2594
2600
|
k = k[0];
|
|
2595
|
-
var
|
|
2601
|
+
var p = `constructor ${k.name}`;
|
|
2596
2602
|
void 0 === k.i.Z && (k.i.Z = []);
|
|
2597
2603
|
if (void 0 !== k.i.Z[b - 1]) {
|
|
2598
2604
|
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!`);
|
|
@@ -2600,36 +2606,36 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2600
2606
|
k.i.Z[b - 1] = () => {
|
|
2601
2607
|
Vc(`Cannot construct ${k.name} due to unbound types`, g);
|
|
2602
2608
|
};
|
|
2603
|
-
T([], g,
|
|
2604
|
-
|
|
2605
|
-
k.i.Z[b - 1] = Xc(
|
|
2609
|
+
T([], g, m => {
|
|
2610
|
+
m.splice(1, 0, null);
|
|
2611
|
+
k.i.Z[b - 1] = Xc(p, m, null, e, f);
|
|
2606
2612
|
return [];
|
|
2607
2613
|
});
|
|
2608
2614
|
return [];
|
|
2609
2615
|
});
|
|
2610
2616
|
}, _embind_register_class_function:(a, b, c, d, e, f, g, k) => {
|
|
2611
|
-
var
|
|
2617
|
+
var p = Yc(c, d);
|
|
2612
2618
|
b = R(b);
|
|
2613
2619
|
b = Zc(b);
|
|
2614
2620
|
f = U(e, f);
|
|
2615
|
-
T([], [a],
|
|
2621
|
+
T([], [a], m => {
|
|
2616
2622
|
function t() {
|
|
2617
|
-
Vc(`Cannot call ${v} due to unbound types`,
|
|
2623
|
+
Vc(`Cannot call ${v} due to unbound types`, p);
|
|
2618
2624
|
}
|
|
2619
|
-
|
|
2620
|
-
var v = `${
|
|
2625
|
+
m = m[0];
|
|
2626
|
+
var v = `${m.name}.${b}`;
|
|
2621
2627
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2622
|
-
k &&
|
|
2623
|
-
var x =
|
|
2624
|
-
void 0 ===
|
|
2625
|
-
T([],
|
|
2626
|
-
r = Xc(v, r,
|
|
2628
|
+
k && m.i.ob.push(b);
|
|
2629
|
+
var x = m.i.M, n = x[b];
|
|
2630
|
+
void 0 === n || void 0 === n.A && n.className !== m.name && n.ga === c - 2 ? (t.ga = c - 2, t.className = m.name, x[b] = t) : (Ec(x, b, v), x[b].A[c - 2] = t);
|
|
2631
|
+
T([], p, r => {
|
|
2632
|
+
r = Xc(v, r, m, f, g);
|
|
2627
2633
|
void 0 === x[b].A ? (r.ga = c - 2, x[b] = r) : x[b].A[c - 2] = r;
|
|
2628
2634
|
return [];
|
|
2629
2635
|
});
|
|
2630
2636
|
return [];
|
|
2631
2637
|
});
|
|
2632
|
-
}, _embind_register_class_property:(a, b, c, d, e, f, g, k,
|
|
2638
|
+
}, _embind_register_class_property:(a, b, c, d, e, f, g, k, p, m) => {
|
|
2633
2639
|
b = R(b);
|
|
2634
2640
|
e = U(d, e);
|
|
2635
2641
|
T([], [a], t => {
|
|
@@ -2637,21 +2643,21 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2637
2643
|
var v = `${t.name}.${b}`, x = {get() {
|
|
2638
2644
|
Vc(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2639
2645
|
}, enumerable:!0, configurable:!0};
|
|
2640
|
-
x.set =
|
|
2646
|
+
x.set = p ? () => Vc(`Cannot access ${v} due to unbound types`, [c, g]) : () => {
|
|
2641
2647
|
throw new P(v + " is a read-only property");
|
|
2642
2648
|
};
|
|
2643
2649
|
Object.defineProperty(t.i.M, b, x);
|
|
2644
|
-
T([],
|
|
2645
|
-
var r =
|
|
2650
|
+
T([], p ? [c, g] : [c], n => {
|
|
2651
|
+
var r = n[0], u = {get() {
|
|
2646
2652
|
var A = $c(this, t, v + " getter");
|
|
2647
2653
|
return r.fromWireType(e(f, A));
|
|
2648
2654
|
}, enumerable:!0};
|
|
2649
|
-
if (
|
|
2650
|
-
|
|
2651
|
-
var z =
|
|
2655
|
+
if (p) {
|
|
2656
|
+
p = U(k, p);
|
|
2657
|
+
var z = n[1];
|
|
2652
2658
|
u.set = function(A) {
|
|
2653
2659
|
var C = $c(this, t, v + " setter"), G = [];
|
|
2654
|
-
m
|
|
2660
|
+
p(m, C, z.toWireType(G, A));
|
|
2655
2661
|
xc(G);
|
|
2656
2662
|
};
|
|
2657
2663
|
}
|
|
@@ -2700,10 +2706,10 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2700
2706
|
var f = 32 - 8 * c;
|
|
2701
2707
|
e = k => k << f >>> f;
|
|
2702
2708
|
}
|
|
2703
|
-
var g = b.includes("unsigned") ? function(k,
|
|
2704
|
-
return
|
|
2705
|
-
} : function(k,
|
|
2706
|
-
return
|
|
2709
|
+
var g = b.includes("unsigned") ? function(k, p) {
|
|
2710
|
+
return p >>> 0;
|
|
2711
|
+
} : function(k, p) {
|
|
2712
|
+
return p;
|
|
2707
2713
|
};
|
|
2708
2714
|
S(a, {name:b, fromWireType:e, toWireType:g, argPackAdvance:8, readValueFromPointer:ed(b, c, 0 !== d), L:null,});
|
|
2709
2715
|
}, _embind_register_memory_view:(a, b, c) => {
|
|
@@ -2720,26 +2726,26 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2720
2726
|
var e = H[d >> 2], f = d + 4;
|
|
2721
2727
|
if (c) {
|
|
2722
2728
|
for (var g = f, k = 0; k <= e; ++k) {
|
|
2723
|
-
var
|
|
2724
|
-
if (k == e || 0 == D[
|
|
2725
|
-
g = g ? L(D, g,
|
|
2726
|
-
if (void 0 ===
|
|
2727
|
-
var
|
|
2729
|
+
var p = f + k;
|
|
2730
|
+
if (k == e || 0 == D[p]) {
|
|
2731
|
+
g = g ? L(D, g, p - g) : "";
|
|
2732
|
+
if (void 0 === m) {
|
|
2733
|
+
var m = g;
|
|
2728
2734
|
} else {
|
|
2729
|
-
|
|
2735
|
+
m += String.fromCharCode(0), m += g;
|
|
2730
2736
|
}
|
|
2731
|
-
g =
|
|
2737
|
+
g = p + 1;
|
|
2732
2738
|
}
|
|
2733
2739
|
}
|
|
2734
2740
|
} else {
|
|
2735
|
-
|
|
2741
|
+
m = Array(e);
|
|
2736
2742
|
for (k = 0; k < e; ++k) {
|
|
2737
|
-
|
|
2743
|
+
m[k] = String.fromCharCode(D[f + k]);
|
|
2738
2744
|
}
|
|
2739
|
-
|
|
2745
|
+
m = m.join("");
|
|
2740
2746
|
}
|
|
2741
2747
|
lc(d);
|
|
2742
|
-
return
|
|
2748
|
+
return m;
|
|
2743
2749
|
}, toWireType:function(d, e) {
|
|
2744
2750
|
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
2745
2751
|
var f = "string" == typeof e;
|
|
@@ -2747,22 +2753,22 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2747
2753
|
throw new P("Cannot pass non-string to std::string");
|
|
2748
2754
|
}
|
|
2749
2755
|
var g = c && f ? fb(e) : e.length;
|
|
2750
|
-
var k = Ud(4 + g + 1),
|
|
2756
|
+
var k = Ud(4 + g + 1), p = k + 4;
|
|
2751
2757
|
H[k >> 2] = g;
|
|
2752
2758
|
if (c && f) {
|
|
2753
|
-
gb(e, D,
|
|
2759
|
+
gb(e, D, p, g + 1);
|
|
2754
2760
|
} else {
|
|
2755
2761
|
if (f) {
|
|
2756
2762
|
for (f = 0; f < g; ++f) {
|
|
2757
|
-
var
|
|
2758
|
-
if (255 <
|
|
2759
|
-
throw lc(
|
|
2763
|
+
var m = e.charCodeAt(f);
|
|
2764
|
+
if (255 < m) {
|
|
2765
|
+
throw lc(p), new P("String has UTF-16 code units that do not fit in 8 bits");
|
|
2760
2766
|
}
|
|
2761
|
-
D[
|
|
2767
|
+
D[p + f] = m;
|
|
2762
2768
|
}
|
|
2763
2769
|
} else {
|
|
2764
2770
|
for (f = 0; f < g; ++f) {
|
|
2765
|
-
D[
|
|
2771
|
+
D[p + f] = e[f];
|
|
2766
2772
|
}
|
|
2767
2773
|
}
|
|
2768
2774
|
}
|
|
@@ -2782,21 +2788,21 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2782
2788
|
4 === b && (d = kd, e = ld, f = md, g = k => H[k >> 2]);
|
|
2783
2789
|
}
|
|
2784
2790
|
S(a, {name:c, fromWireType:k => {
|
|
2785
|
-
for (var
|
|
2791
|
+
for (var p = H[k >> 2], m, t = k + 4, v = 0; v <= p; ++v) {
|
|
2786
2792
|
var x = k + 4 + v * b;
|
|
2787
|
-
if (v ==
|
|
2788
|
-
t = d(t, x - t), void 0 ===
|
|
2793
|
+
if (v == p || 0 == g(x)) {
|
|
2794
|
+
t = d(t, x - t), void 0 === m ? m = t : (m += String.fromCharCode(0), m += t), t = x + b;
|
|
2789
2795
|
}
|
|
2790
2796
|
}
|
|
2791
2797
|
lc(k);
|
|
2792
|
-
return
|
|
2793
|
-
}, toWireType:(k,
|
|
2794
|
-
if ("string" != typeof
|
|
2798
|
+
return m;
|
|
2799
|
+
}, toWireType:(k, p) => {
|
|
2800
|
+
if ("string" != typeof p) {
|
|
2795
2801
|
throw new P(`Cannot pass non-string to C++ string type ${c}`);
|
|
2796
2802
|
}
|
|
2797
|
-
var
|
|
2798
|
-
H[t >> 2] =
|
|
2799
|
-
e(
|
|
2803
|
+
var m = f(p), t = Ud(4 + m + b);
|
|
2804
|
+
H[t >> 2] = m / b;
|
|
2805
|
+
e(p, t + 4, m + b);
|
|
2800
2806
|
null !== k && k.push(lc, t);
|
|
2801
2807
|
return t;
|
|
2802
2808
|
}, argPackAdvance:8, readValueFromPointer:yc, L(k) {
|
|
@@ -2804,8 +2810,8 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2804
2810
|
}});
|
|
2805
2811
|
}, _embind_register_value_object:(a, b, c, d, e, f) => {
|
|
2806
2812
|
wc[a] = {name:R(b), Ta:U(c, d), O:U(e, f), eb:[],};
|
|
2807
|
-
}, _embind_register_value_object_field:(a, b, c, d, e, f, g, k,
|
|
2808
|
-
wc[a].eb.push({Lb:R(b), Rb:c, Pb:U(d, e), Qb:f, dc:g, cc:U(k,
|
|
2813
|
+
}, _embind_register_value_object_field:(a, b, c, d, e, f, g, k, p, m) => {
|
|
2814
|
+
wc[a].eb.push({Lb:R(b), Rb:c, Pb:U(d, e), Qb:f, dc:g, cc:U(k, p), ec:m,});
|
|
2809
2815
|
}, _embind_register_void:(a, b) => {
|
|
2810
2816
|
b = R(b);
|
|
2811
2817
|
S(a, {Dc:!0, name:b, argPackAdvance:0, fromWireType:() => {
|
|
@@ -2817,22 +2823,26 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2817
2823
|
a = Q(a);
|
|
2818
2824
|
b = nc(b, "emval::as");
|
|
2819
2825
|
return nd(b, c, a);
|
|
2826
|
+
}, _emval_call:(a, b, c, d) => {
|
|
2827
|
+
a = od[a];
|
|
2828
|
+
b = Q(b);
|
|
2829
|
+
return a(null, b, c, d);
|
|
2820
2830
|
}, _emval_call_method:(a, b, c, d, e) => {
|
|
2821
|
-
a =
|
|
2831
|
+
a = od[a];
|
|
2822
2832
|
b = Q(b);
|
|
2823
|
-
c =
|
|
2833
|
+
c = qd(c);
|
|
2824
2834
|
return a(b, b[c], d, e);
|
|
2825
2835
|
}, _emval_decref:ad, _emval_get_method_caller:(a, b, c) => {
|
|
2826
2836
|
var d = sd(a, b), e = d.shift();
|
|
2827
2837
|
a--;
|
|
2828
2838
|
var f = Array(a);
|
|
2829
2839
|
b = `methodCaller<(${d.map(g => g.name).join(", ")}) => ${e.name}>`;
|
|
2830
|
-
return rd(Zb(b, (g, k,
|
|
2840
|
+
return rd(Zb(b, (g, k, p, m) => {
|
|
2831
2841
|
for (var t = 0, v = 0; v < a; ++v) {
|
|
2832
|
-
f[v] = d[v].readValueFromPointer(
|
|
2842
|
+
f[v] = d[v].readValueFromPointer(m + t), t += d[v].argPackAdvance;
|
|
2833
2843
|
}
|
|
2834
2844
|
g = 1 === c ? td(k, f) : k.apply(g, f);
|
|
2835
|
-
return nd(e,
|
|
2845
|
+
return nd(e, p, g);
|
|
2836
2846
|
}));
|
|
2837
2847
|
}, _emval_get_property:(a, b) => {
|
|
2838
2848
|
a = Q(a);
|
|
@@ -2840,7 +2850,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2840
2850
|
return ac(a[b]);
|
|
2841
2851
|
}, _emval_incref:a => {
|
|
2842
2852
|
9 < a && (O[a + 1] += 1);
|
|
2843
|
-
}, _emval_new_array:() => ac([]), _emval_new_cstring:a => ac(
|
|
2853
|
+
}, _emval_new_array:() => ac([]), _emval_new_cstring:a => ac(qd(a)), _emval_new_object:() => ac({}), _emval_run_destructors:a => {
|
|
2844
2854
|
var b = Q(a);
|
|
2845
2855
|
xc(b);
|
|
2846
2856
|
ad(a);
|
|
@@ -2883,7 +2893,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2883
2893
|
var k = g.getTimezoneOffset();
|
|
2884
2894
|
H[a >> 2] = 60 * Math.max(e, k);
|
|
2885
2895
|
F[b >> 2] = Number(e != k);
|
|
2886
|
-
a =
|
|
2896
|
+
a = p => p.toLocaleTimeString(void 0, {hour12:!1, timeZoneName:"short"}).split(" ")[1];
|
|
2887
2897
|
f = a(f);
|
|
2888
2898
|
g = a(g);
|
|
2889
2899
|
k < e ? (gb(f, D, c, 17), gb(g, D, d, 17)) : (gb(f, D, d, 17), gb(g, D, c, 17));
|
|
@@ -3006,39 +3016,39 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3006
3016
|
var e = Kb(a);
|
|
3007
3017
|
a = b;
|
|
3008
3018
|
for (var f, g = b = 0; g < c; g++) {
|
|
3009
|
-
var k = H[a >> 2],
|
|
3019
|
+
var k = H[a >> 2], p = H[a + 4 >> 2];
|
|
3010
3020
|
a += 8;
|
|
3011
|
-
var
|
|
3012
|
-
if (0 >
|
|
3021
|
+
var m = e, t = f, v = B;
|
|
3022
|
+
if (0 > p || 0 > t) {
|
|
3013
3023
|
throw new M(28);
|
|
3014
3024
|
}
|
|
3015
|
-
if (null ===
|
|
3025
|
+
if (null === m.W) {
|
|
3016
3026
|
throw new M(8);
|
|
3017
3027
|
}
|
|
3018
|
-
if (1 === (
|
|
3028
|
+
if (1 === (m.flags & 2097155)) {
|
|
3019
3029
|
throw new M(8);
|
|
3020
3030
|
}
|
|
3021
|
-
if (16384 === (
|
|
3031
|
+
if (16384 === (m.node.mode & 61440)) {
|
|
3022
3032
|
throw new M(31);
|
|
3023
3033
|
}
|
|
3024
|
-
if (!
|
|
3034
|
+
if (!m.m.read) {
|
|
3025
3035
|
throw new M(28);
|
|
3026
3036
|
}
|
|
3027
3037
|
var x = "undefined" != typeof t;
|
|
3028
3038
|
if (!x) {
|
|
3029
|
-
t =
|
|
3030
|
-
} else if (!
|
|
3039
|
+
t = m.position;
|
|
3040
|
+
} else if (!m.seekable) {
|
|
3031
3041
|
throw new M(70);
|
|
3032
3042
|
}
|
|
3033
|
-
var
|
|
3034
|
-
x || (
|
|
3035
|
-
var r =
|
|
3043
|
+
var n = m.m.read(m, v, k, p, t);
|
|
3044
|
+
x || (m.position += n);
|
|
3045
|
+
var r = n;
|
|
3036
3046
|
if (0 > r) {
|
|
3037
3047
|
var u = -1;
|
|
3038
3048
|
break a;
|
|
3039
3049
|
}
|
|
3040
3050
|
b += r;
|
|
3041
|
-
if (r <
|
|
3051
|
+
if (r < p) {
|
|
3042
3052
|
break;
|
|
3043
3053
|
}
|
|
3044
3054
|
"undefined" != typeof f && (f += r);
|
|
@@ -3078,33 +3088,33 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3078
3088
|
var e = Kb(a);
|
|
3079
3089
|
a = b;
|
|
3080
3090
|
for (var f, g = b = 0; g < c; g++) {
|
|
3081
|
-
var k = H[a >> 2],
|
|
3091
|
+
var k = H[a >> 2], p = H[a + 4 >> 2];
|
|
3082
3092
|
a += 8;
|
|
3083
|
-
var
|
|
3093
|
+
var m = e, t = k, v = p, x = f, n = B;
|
|
3084
3094
|
if (0 > v || 0 > x) {
|
|
3085
3095
|
throw new M(28);
|
|
3086
3096
|
}
|
|
3087
|
-
if (null ===
|
|
3097
|
+
if (null === m.W) {
|
|
3088
3098
|
throw new M(8);
|
|
3089
3099
|
}
|
|
3090
|
-
if (0 === (
|
|
3100
|
+
if (0 === (m.flags & 2097155)) {
|
|
3091
3101
|
throw new M(8);
|
|
3092
3102
|
}
|
|
3093
|
-
if (16384 === (
|
|
3103
|
+
if (16384 === (m.node.mode & 61440)) {
|
|
3094
3104
|
throw new M(31);
|
|
3095
3105
|
}
|
|
3096
|
-
if (!
|
|
3106
|
+
if (!m.m.write) {
|
|
3097
3107
|
throw new M(28);
|
|
3098
3108
|
}
|
|
3099
|
-
|
|
3109
|
+
m.seekable && m.flags & 1024 && Ub(m, 0, 2);
|
|
3100
3110
|
var r = "undefined" != typeof x;
|
|
3101
3111
|
if (!r) {
|
|
3102
|
-
x =
|
|
3103
|
-
} else if (!
|
|
3112
|
+
x = m.position;
|
|
3113
|
+
} else if (!m.seekable) {
|
|
3104
3114
|
throw new M(70);
|
|
3105
3115
|
}
|
|
3106
|
-
var u =
|
|
3107
|
-
r || (
|
|
3116
|
+
var u = m.m.write(m, n, t, v, x, void 0);
|
|
3117
|
+
r || (m.position += u);
|
|
3108
3118
|
var z = u;
|
|
3109
3119
|
if (0 > z) {
|
|
3110
3120
|
var A = -1;
|
|
@@ -3144,7 +3154,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3144
3154
|
W.bindTexture(a, Fd[b]);
|
|
3145
3155
|
}, glBindVertexArray:a => {
|
|
3146
3156
|
W.bindVertexArray(Hd[a]);
|
|
3147
|
-
}, glBlendEquation:a => W.blendEquation(a), glBlendFunc:(a, b) => W.blendFunc(a, b), glBlitFramebuffer:(a, b, c, d, e, f, g, k,
|
|
3157
|
+
}, glBlendEquation:a => W.blendEquation(a), glBlendFunc:(a, b) => W.blendFunc(a, b), glBlitFramebuffer:(a, b, c, d, e, f, g, k, p, m) => W.blitFramebuffer(a, b, c, d, e, f, g, k, p, m), glBufferData:(a, b, c, d) => {
|
|
3148
3158
|
c && b ? W.bufferData(a, D, d, c, b) : W.bufferData(a, b, d);
|
|
3149
3159
|
}, glBufferSubData:(a, b, c, d) => {
|
|
3150
3160
|
c && W.bufferSubData(a, b, D, d, c);
|
|
@@ -3311,13 +3321,13 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3311
3321
|
var g = W.getActiveUniform(c, f);
|
|
3312
3322
|
var k = g.name;
|
|
3313
3323
|
g = g.size;
|
|
3314
|
-
var
|
|
3315
|
-
|
|
3316
|
-
var
|
|
3324
|
+
var p = Wd(k);
|
|
3325
|
+
p = 0 < p ? k.slice(0, p) : k;
|
|
3326
|
+
var m = c.Wa;
|
|
3317
3327
|
c.Wa += g;
|
|
3318
|
-
e[
|
|
3328
|
+
e[p] = [g, m];
|
|
3319
3329
|
for (k = 0; k < g; ++k) {
|
|
3320
|
-
d[
|
|
3330
|
+
d[m] = k, c.vb[m++] = p;
|
|
3321
3331
|
}
|
|
3322
3332
|
}
|
|
3323
3333
|
}
|
|
@@ -3361,22 +3371,22 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3361
3371
|
}
|
|
3362
3372
|
W.shaderSource(Gd[a], e);
|
|
3363
3373
|
}, 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,
|
|
3364
|
-
f, g, k,
|
|
3374
|
+
f, g, k, p) => {
|
|
3365
3375
|
if (W.Oa) {
|
|
3366
|
-
W.texSubImage2D(a, b, c, d, e, f, g, k,
|
|
3376
|
+
W.texSubImage2D(a, b, c, d, e, f, g, k, p);
|
|
3367
3377
|
} else {
|
|
3368
|
-
if (
|
|
3369
|
-
var
|
|
3370
|
-
W.texSubImage2D(a, b, c, d, e, f, g, k,
|
|
3378
|
+
if (p) {
|
|
3379
|
+
var m = Xd(k);
|
|
3380
|
+
W.texSubImage2D(a, b, c, d, e, f, g, k, m, p >>> 31 - Math.clz32(m.BYTES_PER_ELEMENT));
|
|
3371
3381
|
} else {
|
|
3372
|
-
if (
|
|
3373
|
-
|
|
3374
|
-
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) *
|
|
3375
|
-
|
|
3382
|
+
if (p) {
|
|
3383
|
+
m = Xd(k);
|
|
3384
|
+
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
|
+
p = m.subarray(p >>> 31 - Math.clz32(m.BYTES_PER_ELEMENT), p + t >>> 31 - Math.clz32(m.BYTES_PER_ELEMENT));
|
|
3376
3386
|
} else {
|
|
3377
|
-
|
|
3387
|
+
p = null;
|
|
3378
3388
|
}
|
|
3379
|
-
W.texSubImage2D(a, b, c, d, e, f, g, k,
|
|
3389
|
+
W.texSubImage2D(a, b, c, d, e, f, g, k, p);
|
|
3380
3390
|
}
|
|
3381
3391
|
}
|
|
3382
3392
|
}, glUniform1i:(a, b) => {
|
|
@@ -3451,8 +3461,8 @@ l.dynCall_vijj = (a, b, c, d, e, f) => (l.dynCall_vijj = Y.dynCall_vijj)(a, b, c
|
|
|
3451
3461
|
l.dynCall_jiji = (a, b, c, d, e) => (l.dynCall_jiji = Y.dynCall_jiji)(a, b, c, d, e);
|
|
3452
3462
|
l.dynCall_viijii = (a, b, c, d, e, f, g) => (l.dynCall_viijii = Y.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3453
3463
|
l.dynCall_iiiiij = (a, b, c, d, e, f, g) => (l.dynCall_iiiiij = Y.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3454
|
-
l.dynCall_iiiiijj = (a, b, c, d, e, f, g, k,
|
|
3455
|
-
l.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k,
|
|
3464
|
+
l.dynCall_iiiiijj = (a, b, c, d, e, f, g, k, p) => (l.dynCall_iiiiijj = Y.dynCall_iiiiijj)(a, b, c, d, e, f, g, k, p);
|
|
3465
|
+
l.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, p, m) => (l.dynCall_iiiiiijj = Y.dynCall_iiiiiijj)(a, b, c, d, e, f, g, k, p, m);
|
|
3456
3466
|
function de(a, b, c) {
|
|
3457
3467
|
var d = he();
|
|
3458
3468
|
try {
|