@rive-app/webgl-advanced 2.11.0 → 2.12.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/webgl_advanced.mjs +942 -885
package/webgl_advanced.mjs
CHANGED
|
@@ -15,9 +15,9 @@ function ca() {
|
|
|
15
15
|
const k = d;
|
|
16
16
|
c = b = 0;
|
|
17
17
|
d = new Map();
|
|
18
|
-
k.forEach(
|
|
18
|
+
k.forEach(q => {
|
|
19
19
|
try {
|
|
20
|
-
|
|
20
|
+
q(g);
|
|
21
21
|
} catch (n) {
|
|
22
22
|
console.error(n);
|
|
23
23
|
}
|
|
@@ -42,10 +42,10 @@ function ca() {
|
|
|
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, q = 0;
|
|
46
46
|
this.Rb = function() {
|
|
47
47
|
var n = performance.now();
|
|
48
|
-
|
|
48
|
+
q ? (++k, n -= q, 1000 < n && (g(1000 * k / n), k = q = 0)) : (q = n, k = 0);
|
|
49
49
|
};
|
|
50
50
|
}();
|
|
51
51
|
};
|
|
@@ -157,9 +157,9 @@ m.onRuntimeInitialized = function() {
|
|
|
157
157
|
function b(l) {
|
|
158
158
|
var r = {alpha:1, depth:0, stencil:8, antialias:0, premultipliedAlpha:1, preserveDrawingBuffer:0, preferLowPowerToHighPerformance:0, failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:1, explicitSwapControl:0, renderViaOffscreenBackBuffer:0,}, x = l.getContext("webgl2", r);
|
|
159
159
|
x || (x = l.getContext("webgl", r));
|
|
160
|
-
var z = x, H = ha(
|
|
160
|
+
var z = x, H = ha(ia), C = {handle:H, attributes:r, version:r.Fc, Ua:z};
|
|
161
161
|
z.canvas && (z.canvas.xc = C);
|
|
162
|
-
|
|
162
|
+
ia[H] = C;
|
|
163
163
|
("undefined" == typeof r.Ob || r.Ob) && ka(C);
|
|
164
164
|
la(H);
|
|
165
165
|
r = g(l.width, l.height);
|
|
@@ -184,7 +184,7 @@ m.onRuntimeInitialized = function() {
|
|
|
184
184
|
}
|
|
185
185
|
r = Math.min(r, l);
|
|
186
186
|
r = Math.min(x, l);
|
|
187
|
-
H.sort((
|
|
187
|
+
H.sort((ja, Gb) => Gb.Ja - ja.Ja);
|
|
188
188
|
z = new m.DynamicRectanizer(l);
|
|
189
189
|
for (L = 0; L < H.length;) {
|
|
190
190
|
z.reset(r, x);
|
|
@@ -197,7 +197,7 @@ m.onRuntimeInitialized = function() {
|
|
|
197
197
|
O.qa = M & 65535;
|
|
198
198
|
O.ra = M >> 16;
|
|
199
199
|
}
|
|
200
|
-
O =
|
|
200
|
+
O = q.push(z.drawWidth());
|
|
201
201
|
M = n.push(z.drawHeight());
|
|
202
202
|
console.assert(O >= z.drawWidth());
|
|
203
203
|
console.assert(M >= z.drawHeight());
|
|
@@ -209,15 +209,15 @@ m.onRuntimeInitialized = function() {
|
|
|
209
209
|
for (O = L; O < C; ++O) {
|
|
210
210
|
M = H[O];
|
|
211
211
|
e.saveClipRect(M.qa, M.ra, M.qa + M.da, M.ra + M.ca);
|
|
212
|
-
let
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
e.transform(
|
|
219
|
-
for (const
|
|
220
|
-
|
|
212
|
+
let ja = new m.Mat2D();
|
|
213
|
+
ja.xx = M.da / M.F.width;
|
|
214
|
+
ja.yy = M.ca / M.F.height;
|
|
215
|
+
ja.xy = ja.yx = 0;
|
|
216
|
+
ja.tx = M.qa;
|
|
217
|
+
ja.ty = M.ra;
|
|
218
|
+
e.transform(ja);
|
|
219
|
+
for (const Gb of M.S) {
|
|
220
|
+
Gb();
|
|
221
221
|
}
|
|
222
222
|
e.restoreClipRect();
|
|
223
223
|
M.S = [];
|
|
@@ -241,7 +241,7 @@ m.onRuntimeInitialized = function() {
|
|
|
241
241
|
m.Artboard.prototype.draw = function(l) {
|
|
242
242
|
l.S ? l.S.push(k.bind(this, l.Eb)) : k.call(this, l);
|
|
243
243
|
};
|
|
244
|
-
const
|
|
244
|
+
const q = new da(), n = new da(), u = new ca();
|
|
245
245
|
m.requestAnimationFrame = u.requestAnimationFrame.bind(u);
|
|
246
246
|
m.cancelAnimationFrame = u.cancelAnimationFrame.bind(u);
|
|
247
247
|
m.enableFPSCounter = u.Pb.bind(u);
|
|
@@ -268,15 +268,15 @@ m.onRuntimeInitialized = function() {
|
|
|
268
268
|
r(l);
|
|
269
269
|
};
|
|
270
270
|
};
|
|
271
|
-
var ma = Object.assign({}, m), na = "object" == typeof window,
|
|
272
|
-
if (
|
|
273
|
-
|
|
271
|
+
var ma = Object.assign({}, m), na = "./this.program", oa = "object" == typeof window, pa = "function" == typeof importScripts, qa = "", ra, sa;
|
|
272
|
+
if (oa || pa) {
|
|
273
|
+
pa ? qa = self.location.href : "undefined" != typeof document && document.currentScript && (qa = document.currentScript.src), _scriptDir && (qa = _scriptDir), 0 !== qa.indexOf("blob:") ? qa = qa.substr(0, qa.replace(/[?#].*/, "").lastIndexOf("/") + 1) : qa = "", pa && (sa = a => {
|
|
274
274
|
var b = new XMLHttpRequest();
|
|
275
275
|
b.open("GET", a, !1);
|
|
276
276
|
b.responseType = "arraybuffer";
|
|
277
277
|
b.send(null);
|
|
278
278
|
return new Uint8Array(b.response);
|
|
279
|
-
}),
|
|
279
|
+
}), ra = (a, b, c) => {
|
|
280
280
|
var d = new XMLHttpRequest();
|
|
281
281
|
d.open("GET", a, !0);
|
|
282
282
|
d.responseType = "arraybuffer";
|
|
@@ -287,77 +287,94 @@ if (na || oa) {
|
|
|
287
287
|
d.send(null);
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
|
-
var
|
|
290
|
+
var ta = m.print || console.log.bind(console), ua = m.printErr || console.error.bind(console);
|
|
291
291
|
Object.assign(m, ma);
|
|
292
292
|
ma = null;
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
293
|
+
m.thisProgram && (na = m.thisProgram);
|
|
294
|
+
var va;
|
|
295
|
+
m.wasmBinary && (va = m.wasmBinary);
|
|
296
|
+
var noExitRuntime = m.noExitRuntime || !0;
|
|
297
|
+
"object" != typeof WebAssembly && wa("no native wasm support detected");
|
|
298
|
+
var xa, p, ya = !1, t, w, za, Aa, A, B, D, Ba;
|
|
299
|
+
function Ca() {
|
|
300
|
+
var a = xa.buffer;
|
|
298
301
|
m.HEAP8 = t = new Int8Array(a);
|
|
299
|
-
m.HEAP16 =
|
|
302
|
+
m.HEAP16 = za = new Int16Array(a);
|
|
300
303
|
m.HEAP32 = A = new Int32Array(a);
|
|
301
304
|
m.HEAPU8 = w = new Uint8Array(a);
|
|
302
|
-
m.HEAPU16 =
|
|
305
|
+
m.HEAPU16 = Aa = new Uint16Array(a);
|
|
303
306
|
m.HEAPU32 = B = new Uint32Array(a);
|
|
304
307
|
m.HEAPF32 = D = new Float32Array(a);
|
|
305
|
-
m.HEAPF64 =
|
|
308
|
+
m.HEAPF64 = Ba = new Float64Array(a);
|
|
306
309
|
}
|
|
307
|
-
var
|
|
308
|
-
function
|
|
310
|
+
var Da, Ea = [], Fa = [], Ga = [];
|
|
311
|
+
function Ha() {
|
|
312
|
+
var a = m.preRun.shift();
|
|
313
|
+
Ea.unshift(a);
|
|
314
|
+
}
|
|
315
|
+
var Ia = 0, Ja = null, Ka = null;
|
|
316
|
+
function wa(a) {
|
|
317
|
+
if (m.onAbort) {
|
|
318
|
+
m.onAbort(a);
|
|
319
|
+
}
|
|
309
320
|
a = "Aborted(" + a + ")";
|
|
310
|
-
|
|
311
|
-
|
|
321
|
+
ua(a);
|
|
322
|
+
ya = !0;
|
|
312
323
|
a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
|
|
313
324
|
ba(a);
|
|
314
325
|
throw a;
|
|
315
326
|
}
|
|
316
|
-
function
|
|
327
|
+
function La(a) {
|
|
317
328
|
return a.startsWith("data:application/octet-stream;base64,");
|
|
318
329
|
}
|
|
319
|
-
var
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
330
|
+
var Ma;
|
|
331
|
+
Ma = "webgl_advanced.wasm";
|
|
332
|
+
if (!La(Ma)) {
|
|
333
|
+
var Na = Ma;
|
|
334
|
+
Ma = m.locateFile ? m.locateFile(Na, qa) : qa + Na;
|
|
335
|
+
}
|
|
336
|
+
function Oa(a) {
|
|
337
|
+
if (a == Ma && va) {
|
|
338
|
+
return new Uint8Array(va);
|
|
339
|
+
}
|
|
340
|
+
if (sa) {
|
|
341
|
+
return sa(a);
|
|
325
342
|
}
|
|
326
343
|
throw "both async and sync fetching of the wasm failed";
|
|
327
344
|
}
|
|
328
|
-
function
|
|
329
|
-
if (
|
|
345
|
+
function Pa(a) {
|
|
346
|
+
if (!va && (oa || pa)) {
|
|
330
347
|
if ("function" == typeof fetch && !a.startsWith("file://")) {
|
|
331
348
|
return fetch(a, {credentials:"same-origin"}).then(b => {
|
|
332
349
|
if (!b.ok) {
|
|
333
350
|
throw "failed to load wasm binary file at '" + a + "'";
|
|
334
351
|
}
|
|
335
352
|
return b.arrayBuffer();
|
|
336
|
-
}).catch(() =>
|
|
353
|
+
}).catch(() => Oa(a));
|
|
337
354
|
}
|
|
338
|
-
if (
|
|
355
|
+
if (ra) {
|
|
339
356
|
return new Promise((b, c) => {
|
|
340
|
-
|
|
357
|
+
ra(a, d => b(new Uint8Array(d)), c);
|
|
341
358
|
});
|
|
342
359
|
}
|
|
343
360
|
}
|
|
344
|
-
return Promise.resolve().then(() =>
|
|
361
|
+
return Promise.resolve().then(() => Oa(a));
|
|
345
362
|
}
|
|
346
|
-
function
|
|
347
|
-
return
|
|
348
|
-
|
|
349
|
-
|
|
363
|
+
function Qa(a, b, c) {
|
|
364
|
+
return Pa(a).then(d => WebAssembly.instantiate(d, b)).then(d => d).then(c, d => {
|
|
365
|
+
ua("failed to asynchronously prepare wasm: " + d);
|
|
366
|
+
wa(d);
|
|
350
367
|
});
|
|
351
368
|
}
|
|
352
|
-
function
|
|
353
|
-
var c =
|
|
354
|
-
return "function" != typeof WebAssembly.instantiateStreaming ||
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
return
|
|
369
|
+
function Ra(a, b) {
|
|
370
|
+
var c = Ma;
|
|
371
|
+
return va || "function" != typeof WebAssembly.instantiateStreaming || La(c) || c.startsWith("file://") || "function" != typeof fetch ? Qa(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
|
|
372
|
+
ua("wasm streaming compile failed: " + e);
|
|
373
|
+
ua("falling back to ArrayBuffer instantiation");
|
|
374
|
+
return Qa(c, a, b);
|
|
358
375
|
}));
|
|
359
376
|
}
|
|
360
|
-
var E, F,
|
|
377
|
+
var E, F, Va = {491452:(a, b, c, d, e) => {
|
|
361
378
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
362
379
|
return 0;
|
|
363
380
|
}
|
|
@@ -405,13 +422,13 @@ var E, F, Ra = {490268:(a, b, c, d, e) => {
|
|
|
405
422
|
for (var g = 0; g < f.C.length; ++g) {
|
|
406
423
|
var k = f.C[g];
|
|
407
424
|
null != k && null != k.I && k.state === f.ha.tb && k.I.resume().then(() => {
|
|
408
|
-
|
|
409
|
-
},
|
|
410
|
-
console.error("Failed to resume audiocontext",
|
|
425
|
+
Sa(k.mb);
|
|
426
|
+
}, q => {
|
|
427
|
+
console.error("Failed to resume audiocontext", q);
|
|
411
428
|
});
|
|
412
429
|
}
|
|
413
|
-
f.xb.map(function(
|
|
414
|
-
document.removeEventListener(
|
|
430
|
+
f.xb.map(function(q) {
|
|
431
|
+
document.removeEventListener(q, f.unlock, !0);
|
|
415
432
|
});
|
|
416
433
|
};
|
|
417
434
|
f.xb.map(function(g) {
|
|
@@ -420,9 +437,9 @@ var E, F, Ra = {490268:(a, b, c, d, e) => {
|
|
|
420
437
|
}
|
|
421
438
|
window.h.Ea += 1;
|
|
422
439
|
return 1;
|
|
423
|
-
},
|
|
440
|
+
}, 493630:() => {
|
|
424
441
|
"undefined" !== typeof window.h && (--window.h.Ea, 0 === window.h.Ea && delete window.h);
|
|
425
|
-
},
|
|
442
|
+
}, 493794:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 493898:() => {
|
|
426
443
|
try {
|
|
427
444
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
428
445
|
a.close();
|
|
@@ -430,7 +447,7 @@ var E, F, Ra = {490268:(a, b, c, d, e) => {
|
|
|
430
447
|
} catch (c) {
|
|
431
448
|
return 0;
|
|
432
449
|
}
|
|
433
|
-
},
|
|
450
|
+
}, 494069:(a, b, c, d, e, f) => {
|
|
434
451
|
if ("undefined" === typeof window.h) {
|
|
435
452
|
return -1;
|
|
436
453
|
}
|
|
@@ -442,41 +459,41 @@ var E, F, Ra = {490268:(a, b, c, d, e) => {
|
|
|
442
459
|
c = 0;
|
|
443
460
|
a != window.h.H.Da && (c = b);
|
|
444
461
|
g.Y = g.I.createScriptProcessor(d, c, b);
|
|
445
|
-
g.Y.onaudioprocess = function(
|
|
462
|
+
g.Y.onaudioprocess = function(q) {
|
|
446
463
|
if (null == g.va || 0 == g.va.length) {
|
|
447
464
|
g.va = new Float32Array(D.buffer, e, d * b);
|
|
448
465
|
}
|
|
449
466
|
if (a == window.h.H.capture || a == window.h.H.La) {
|
|
450
467
|
for (var n = 0; n < b; n += 1) {
|
|
451
|
-
for (var u =
|
|
468
|
+
for (var u = q.inputBuffer.getChannelData(n), v = g.va, y = 0; y < d; y += 1) {
|
|
452
469
|
v[y * b + n] = u[y];
|
|
453
470
|
}
|
|
454
471
|
}
|
|
455
|
-
|
|
472
|
+
Ta(f, d, e);
|
|
456
473
|
}
|
|
457
474
|
if (a == window.h.H.Da || a == window.h.H.La) {
|
|
458
|
-
for (
|
|
459
|
-
for (u =
|
|
475
|
+
for (Ua(f, d, e), n = 0; n < q.outputBuffer.numberOfChannels; ++n) {
|
|
476
|
+
for (u = q.outputBuffer.getChannelData(n), v = g.va, y = 0; y < d; y += 1) {
|
|
460
477
|
u[y] = v[y * b + n];
|
|
461
478
|
}
|
|
462
479
|
}
|
|
463
480
|
} else {
|
|
464
|
-
for (n = 0; n <
|
|
465
|
-
|
|
481
|
+
for (n = 0; n < q.outputBuffer.numberOfChannels; ++n) {
|
|
482
|
+
q.outputBuffer.getChannelData(n).fill(0.0);
|
|
466
483
|
}
|
|
467
484
|
}
|
|
468
485
|
};
|
|
469
|
-
a != window.h.H.capture && a != window.h.H.La || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(
|
|
470
|
-
g.Fa = g.I.createMediaStreamSource(
|
|
486
|
+
a != window.h.H.capture && a != window.h.H.La || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(q) {
|
|
487
|
+
g.Fa = g.I.createMediaStreamSource(q);
|
|
471
488
|
g.Fa.connect(g.Y);
|
|
472
489
|
g.Y.connect(g.I.destination);
|
|
473
|
-
}).catch(function(
|
|
474
|
-
console.log("Failed to get user media: " +
|
|
490
|
+
}).catch(function(q) {
|
|
491
|
+
console.log("Failed to get user media: " + q);
|
|
475
492
|
});
|
|
476
493
|
a == window.h.H.Da && g.Y.connect(g.I.destination);
|
|
477
494
|
g.mb = f;
|
|
478
495
|
return window.h.vc(g);
|
|
479
|
-
},
|
|
496
|
+
}, 496946:a => window.h.ua(a).I.sampleRate, 497019:a => {
|
|
480
497
|
a = window.h.ua(a);
|
|
481
498
|
void 0 !== a.Y && (a.Y.onaudioprocess = function() {
|
|
482
499
|
}, a.Y.disconnect(), a.Y = void 0);
|
|
@@ -484,17 +501,21 @@ var E, F, Ra = {490268:(a, b, c, d, e) => {
|
|
|
484
501
|
a.I.close();
|
|
485
502
|
a.I = void 0;
|
|
486
503
|
a.mb = void 0;
|
|
487
|
-
},
|
|
504
|
+
}, 497419:a => {
|
|
488
505
|
window.h.yb(a);
|
|
489
|
-
},
|
|
506
|
+
}, 497469:a => {
|
|
490
507
|
a = window.h.ua(a);
|
|
491
508
|
a.I.resume();
|
|
492
509
|
a.state = window.h.ha.tb;
|
|
493
|
-
},
|
|
510
|
+
}, 497608:a => {
|
|
494
511
|
a = window.h.ua(a);
|
|
495
512
|
a.I.suspend();
|
|
496
513
|
a.state = window.h.ha.stopped;
|
|
497
|
-
}},
|
|
514
|
+
}}, Wa = a => {
|
|
515
|
+
for (; 0 < a.length;) {
|
|
516
|
+
a.shift()(m);
|
|
517
|
+
}
|
|
518
|
+
}, Xa = (a, b) => {
|
|
498
519
|
for (var c = 0, d = a.length - 1; 0 <= d; d--) {
|
|
499
520
|
var e = a[d];
|
|
500
521
|
"." === e ? a.splice(d, 1) : ".." === e ? (a.splice(d, 1), c++) : c && (a.splice(d, 1), c--);
|
|
@@ -505,12 +526,12 @@ var E, F, Ra = {490268:(a, b, c, d, e) => {
|
|
|
505
526
|
}
|
|
506
527
|
}
|
|
507
528
|
return a;
|
|
508
|
-
},
|
|
529
|
+
}, Ya = a => {
|
|
509
530
|
var b = "/" === a.charAt(0), c = "/" === a.substr(-1);
|
|
510
|
-
(a =
|
|
531
|
+
(a = Xa(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
|
|
511
532
|
a && c && (a += "/");
|
|
512
533
|
return (b ? "/" : "") + a;
|
|
513
|
-
},
|
|
534
|
+
}, Za = a => {
|
|
514
535
|
var b = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);
|
|
515
536
|
a = b[0];
|
|
516
537
|
b = b[1];
|
|
@@ -519,21 +540,21 @@ var E, F, Ra = {490268:(a, b, c, d, e) => {
|
|
|
519
540
|
}
|
|
520
541
|
b && (b = b.substr(0, b.length - 1));
|
|
521
542
|
return a + b;
|
|
522
|
-
},
|
|
543
|
+
}, $a = a => {
|
|
523
544
|
if ("/" === a) {
|
|
524
545
|
return "/";
|
|
525
546
|
}
|
|
526
|
-
a =
|
|
547
|
+
a = Ya(a);
|
|
527
548
|
a = a.replace(/\/$/, "");
|
|
528
549
|
var b = a.lastIndexOf("/");
|
|
529
550
|
return -1 === b ? a : a.substr(b + 1);
|
|
530
|
-
},
|
|
551
|
+
}, ab = () => {
|
|
531
552
|
if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
|
|
532
553
|
return a => crypto.getRandomValues(a);
|
|
533
554
|
}
|
|
534
|
-
|
|
535
|
-
},
|
|
536
|
-
function
|
|
555
|
+
wa("initRandomDevice");
|
|
556
|
+
}, bb = a => (bb = ab())(a);
|
|
557
|
+
function cb() {
|
|
537
558
|
for (var a = "", b = !1, c = arguments.length - 1; -1 <= c && !b; c--) {
|
|
538
559
|
b = 0 <= c ? arguments[c] : "/";
|
|
539
560
|
if ("string" != typeof b) {
|
|
@@ -545,16 +566,16 @@ function Ya() {
|
|
|
545
566
|
a = b + "/" + a;
|
|
546
567
|
b = "/" === b.charAt(0);
|
|
547
568
|
}
|
|
548
|
-
a =
|
|
569
|
+
a = Xa(a.split("/").filter(d => !!d), !b).join("/");
|
|
549
570
|
return (b ? "/" : "") + a || ".";
|
|
550
571
|
}
|
|
551
|
-
var
|
|
572
|
+
var db = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, eb = (a, b, c) => {
|
|
552
573
|
var d = b + c;
|
|
553
574
|
for (c = b; a[c] && !(c >= d);) {
|
|
554
575
|
++c;
|
|
555
576
|
}
|
|
556
|
-
if (16 < c - b && a.buffer &&
|
|
557
|
-
return
|
|
577
|
+
if (16 < c - b && a.buffer && db) {
|
|
578
|
+
return db.decode(a.subarray(b, c));
|
|
558
579
|
}
|
|
559
580
|
for (d = ""; b < c;) {
|
|
560
581
|
var e = a[b++];
|
|
@@ -572,13 +593,13 @@ var Za = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, $
|
|
|
572
593
|
}
|
|
573
594
|
}
|
|
574
595
|
return d;
|
|
575
|
-
},
|
|
596
|
+
}, fb = [], gb = a => {
|
|
576
597
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
577
598
|
var d = a.charCodeAt(c);
|
|
578
599
|
127 >= d ? b++ : 2047 >= d ? b += 2 : 55296 <= d && 57343 >= d ? (b += 4, ++c) : b += 3;
|
|
579
600
|
}
|
|
580
601
|
return b;
|
|
581
|
-
},
|
|
602
|
+
}, hb = (a, b, c, d) => {
|
|
582
603
|
if (!(0 < d)) {
|
|
583
604
|
return 0;
|
|
584
605
|
}
|
|
@@ -622,19 +643,19 @@ var Za = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, $
|
|
|
622
643
|
b[c] = 0;
|
|
623
644
|
return c - e;
|
|
624
645
|
};
|
|
625
|
-
function
|
|
626
|
-
var c = Array(
|
|
627
|
-
a =
|
|
646
|
+
function ib(a, b) {
|
|
647
|
+
var c = Array(gb(a) + 1);
|
|
648
|
+
a = hb(a, c, 0, c.length);
|
|
628
649
|
b && (c.length = a);
|
|
629
650
|
return c;
|
|
630
651
|
}
|
|
631
|
-
var
|
|
632
|
-
function
|
|
633
|
-
|
|
634
|
-
|
|
652
|
+
var jb = [];
|
|
653
|
+
function kb(a, b) {
|
|
654
|
+
jb[a] = {input:[], D:[], U:b};
|
|
655
|
+
lb(a, mb);
|
|
635
656
|
}
|
|
636
|
-
var
|
|
637
|
-
var b =
|
|
657
|
+
var mb = {open:function(a) {
|
|
658
|
+
var b = jb[a.node.la];
|
|
638
659
|
if (!b) {
|
|
639
660
|
throw new G(43);
|
|
640
661
|
}
|
|
@@ -678,36 +699,36 @@ var hb = {open:function(a) {
|
|
|
678
699
|
}
|
|
679
700
|
d && (a.node.timestamp = Date.now());
|
|
680
701
|
return e;
|
|
681
|
-
},},
|
|
702
|
+
},}, nb = {eb:function() {
|
|
682
703
|
a: {
|
|
683
|
-
if (!
|
|
704
|
+
if (!fb.length) {
|
|
684
705
|
var a = null;
|
|
685
706
|
"undefined" != typeof window && "function" == typeof window.prompt ? (a = window.prompt("Input: "), null !== a && (a += "\n")) : "function" == typeof readline && (a = readline(), null !== a && (a += "\n"));
|
|
686
707
|
if (!a) {
|
|
687
708
|
a = null;
|
|
688
709
|
break a;
|
|
689
710
|
}
|
|
690
|
-
|
|
711
|
+
fb = ib(a, !0);
|
|
691
712
|
}
|
|
692
|
-
a =
|
|
713
|
+
a = fb.shift();
|
|
693
714
|
}
|
|
694
715
|
return a;
|
|
695
716
|
}, Pa:function(a, b) {
|
|
696
|
-
null === b || 10 === b ? (
|
|
717
|
+
null === b || 10 === b ? (ta(eb(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
|
|
697
718
|
}, ta:function(a) {
|
|
698
|
-
a.D && 0 < a.D.length && (
|
|
719
|
+
a.D && 0 < a.D.length && (ta(eb(a.D, 0)), a.D = []);
|
|
699
720
|
}, bc:function() {
|
|
700
721
|
return {Ac:25856, Cc:5, zc:191, Bc:35387, yc:[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,]};
|
|
701
722
|
}, cc:function() {
|
|
702
723
|
return 0;
|
|
703
724
|
}, dc:function() {
|
|
704
725
|
return [24, 80];
|
|
705
|
-
},},
|
|
706
|
-
null === b || 10 === b ? (
|
|
726
|
+
},}, ob = {Pa:function(a, b) {
|
|
727
|
+
null === b || 10 === b ? (ua(eb(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
|
|
707
728
|
}, ta:function(a) {
|
|
708
|
-
a.D && 0 < a.D.length && (
|
|
729
|
+
a.D && 0 < a.D.length && (ua(eb(a.D, 0)), a.D = []);
|
|
709
730
|
},};
|
|
710
|
-
function
|
|
731
|
+
function pb(a, b) {
|
|
711
732
|
var c = a.l ? a.l.length : 0;
|
|
712
733
|
c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.l, a.l = new Uint8Array(b), 0 < a.v && a.l.set(c.subarray(0, a.v), 0));
|
|
713
734
|
}
|
|
@@ -717,8 +738,8 @@ var I = {O:null, T() {
|
|
|
717
738
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
718
739
|
throw new G(63);
|
|
719
740
|
}
|
|
720
|
-
I.O || (I.O = {dir:{node:{M:I.j.M, P:I.j.P, ka:I.j.ka, Ba:I.j.Ba, rb:I.j.rb, wb:I.j.wb, sb:I.j.sb, pb:I.j.pb, Ga:I.j.Ga}, stream:{$:I.m.$}}, file:{node:{M:I.j.M, P:I.j.P}, stream:{$:I.m.$, read:I.m.read, write:I.m.write, sa:I.m.sa, ib:I.m.ib, kb:I.m.kb}}, link:{node:{M:I.j.M, P:I.j.P, ma:I.j.ma}, stream:{}}, Xa:{node:{M:I.j.M, P:I.j.P}, stream:
|
|
721
|
-
c =
|
|
741
|
+
I.O || (I.O = {dir:{node:{M:I.j.M, P:I.j.P, ka:I.j.ka, Ba:I.j.Ba, rb:I.j.rb, wb:I.j.wb, sb:I.j.sb, pb:I.j.pb, Ga:I.j.Ga}, stream:{$:I.m.$}}, file:{node:{M:I.j.M, P:I.j.P}, stream:{$:I.m.$, read:I.m.read, write:I.m.write, sa:I.m.sa, ib:I.m.ib, kb:I.m.kb}}, link:{node:{M:I.j.M, P:I.j.P, ma:I.j.ma}, stream:{}}, Xa:{node:{M:I.j.M, P:I.j.P}, stream:qb}});
|
|
742
|
+
c = rb(a, b, c, d);
|
|
722
743
|
16384 === (c.mode & 61440) ? (c.j = I.O.dir.node, c.m = I.O.dir.stream, c.l = {}) : 32768 === (c.mode & 61440) ? (c.j = I.O.file.node, c.m = I.O.file.stream, c.v = 0, c.l = null) : 40960 === (c.mode & 61440) ? (c.j = I.O.link.node, c.m = I.O.link.stream) : 8192 === (c.mode & 61440) && (c.j = I.O.Xa.node, c.m = I.O.Xa.stream);
|
|
723
744
|
c.timestamp = Date.now();
|
|
724
745
|
a && (a.l[b] = c, a.timestamp = c.timestamp);
|
|
@@ -755,13 +776,13 @@ var I = {O:null, T() {
|
|
|
755
776
|
}
|
|
756
777
|
}
|
|
757
778
|
}, ka() {
|
|
758
|
-
throw
|
|
779
|
+
throw sb[44];
|
|
759
780
|
}, Ba(a, b, c, d) {
|
|
760
781
|
return I.createNode(a, b, c, d);
|
|
761
782
|
}, rb(a, b, c) {
|
|
762
783
|
if (16384 === (a.mode & 61440)) {
|
|
763
784
|
try {
|
|
764
|
-
var d =
|
|
785
|
+
var d = tb(b, c);
|
|
765
786
|
} catch (f) {
|
|
766
787
|
}
|
|
767
788
|
if (d) {
|
|
@@ -780,7 +801,7 @@ var I = {O:null, T() {
|
|
|
780
801
|
delete a.l[b];
|
|
781
802
|
a.timestamp = Date.now();
|
|
782
803
|
}, sb(a, b) {
|
|
783
|
-
var c =
|
|
804
|
+
var c = tb(a, b), d;
|
|
784
805
|
for (d in c.l) {
|
|
785
806
|
throw new G(55);
|
|
786
807
|
}
|
|
@@ -833,7 +854,7 @@ var I = {O:null, T() {
|
|
|
833
854
|
return a.l.set(b.subarray(c, c + d), e), d;
|
|
834
855
|
}
|
|
835
856
|
}
|
|
836
|
-
|
|
857
|
+
pb(a, e + d);
|
|
837
858
|
if (a.l.subarray && b.subarray) {
|
|
838
859
|
a.l.set(b.subarray(c, c + d), e);
|
|
839
860
|
} else {
|
|
@@ -850,7 +871,7 @@ var I = {O:null, T() {
|
|
|
850
871
|
}
|
|
851
872
|
return b;
|
|
852
873
|
}, sa(a, b, c) {
|
|
853
|
-
|
|
874
|
+
pb(a.node, b + c);
|
|
854
875
|
a.node.v = Math.max(a.node.v, b + c);
|
|
855
876
|
}, ib(a, b, c, d, e) {
|
|
856
877
|
if (32768 !== (a.node.mode & 61440)) {
|
|
@@ -863,7 +884,7 @@ var I = {O:null, T() {
|
|
|
863
884
|
}
|
|
864
885
|
c = !0;
|
|
865
886
|
b = 65536 * Math.ceil(b / 65536);
|
|
866
|
-
(e =
|
|
887
|
+
(e = ub(65536, b)) ? (w.fill(0, e, e + b), b = e) : b = 0;
|
|
867
888
|
if (!b) {
|
|
868
889
|
throw new G(48);
|
|
869
890
|
}
|
|
@@ -876,14 +897,14 @@ var I = {O:null, T() {
|
|
|
876
897
|
I.m.write(a, b, 0, d, c, !1);
|
|
877
898
|
return 0;
|
|
878
899
|
},},};
|
|
879
|
-
function
|
|
900
|
+
function vb(a, b) {
|
|
880
901
|
var c = 0;
|
|
881
902
|
a && (c |= 365);
|
|
882
903
|
b && (c |= 146);
|
|
883
904
|
return c;
|
|
884
905
|
}
|
|
885
|
-
var
|
|
886
|
-
a =
|
|
906
|
+
var wb = null, xb = {}, yb = [], zb = 1, Ab = null, Bb = !0, G = null, sb = {}, Db = (a, b = {}) => {
|
|
907
|
+
a = cb(a);
|
|
887
908
|
if (!a) {
|
|
888
909
|
return {path:"", node:null};
|
|
889
910
|
}
|
|
@@ -892,24 +913,24 @@ var rb = null, sb = {}, tb = [], ub = 1, vb = null, wb = !0, G = null, nb = {},
|
|
|
892
913
|
throw new G(32);
|
|
893
914
|
}
|
|
894
915
|
a = a.split("/").filter(g => !!g);
|
|
895
|
-
for (var c =
|
|
916
|
+
for (var c = wb, d = "/", e = 0; e < a.length; e++) {
|
|
896
917
|
var f = e === a.length - 1;
|
|
897
918
|
if (f && b.parent) {
|
|
898
919
|
break;
|
|
899
920
|
}
|
|
900
|
-
c =
|
|
901
|
-
d =
|
|
921
|
+
c = tb(c, a[e]);
|
|
922
|
+
d = Ya(d + "/" + a[e]);
|
|
902
923
|
c.Ca && (!f || f && b.bb) && (c = c.Ca.root);
|
|
903
924
|
if (!f || b.Ma) {
|
|
904
925
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
905
|
-
if (c =
|
|
926
|
+
if (c = Cb(d), d = cb(Za(d), c), c = Db(d, {Ra:b.Ra + 1}).node, 40 < f++) {
|
|
906
927
|
throw new G(32);
|
|
907
928
|
}
|
|
908
929
|
}
|
|
909
930
|
}
|
|
910
931
|
}
|
|
911
932
|
return {path:d, node:c};
|
|
912
|
-
},
|
|
933
|
+
}, Eb = a => {
|
|
913
934
|
for (var b;;) {
|
|
914
935
|
if (a === a.parent) {
|
|
915
936
|
return a = a.T.jb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
|
|
@@ -917,34 +938,34 @@ var rb = null, sb = {}, tb = [], ub = 1, vb = null, wb = !0, G = null, nb = {},
|
|
|
917
938
|
b = b ? `${a.name}/${b}` : a.name;
|
|
918
939
|
a = a.parent;
|
|
919
940
|
}
|
|
920
|
-
},
|
|
941
|
+
}, Fb = (a, b) => {
|
|
921
942
|
for (var c = 0, d = 0; d < b.length; d++) {
|
|
922
943
|
c = (c << 5) - c + b.charCodeAt(d) | 0;
|
|
923
944
|
}
|
|
924
|
-
return (a + c >>> 0) %
|
|
925
|
-
},
|
|
945
|
+
return (a + c >>> 0) % Ab.length;
|
|
946
|
+
}, tb = (a, b) => {
|
|
926
947
|
var c;
|
|
927
|
-
if (c = (c =
|
|
948
|
+
if (c = (c = Hb(a, "x")) ? c : a.j.ka ? 0 : 2) {
|
|
928
949
|
throw new G(c, a);
|
|
929
950
|
}
|
|
930
|
-
for (c =
|
|
951
|
+
for (c = Ab[Fb(a.id, b)]; c; c = c.ic) {
|
|
931
952
|
var d = c.name;
|
|
932
953
|
if (c.parent.id === a.id && d === b) {
|
|
933
954
|
return c;
|
|
934
955
|
}
|
|
935
956
|
}
|
|
936
957
|
return a.j.ka(a, b);
|
|
937
|
-
},
|
|
938
|
-
a = new
|
|
939
|
-
b =
|
|
940
|
-
a.ic =
|
|
941
|
-
return
|
|
942
|
-
},
|
|
958
|
+
}, rb = (a, b, c, d) => {
|
|
959
|
+
a = new Ib(a, b, c, d);
|
|
960
|
+
b = Fb(a.parent.id, a.name);
|
|
961
|
+
a.ic = Ab[b];
|
|
962
|
+
return Ab[b] = a;
|
|
963
|
+
}, Jb = a => {
|
|
943
964
|
var b = ["r", "w", "rw"][a & 3];
|
|
944
965
|
a & 512 && (b += "w");
|
|
945
966
|
return b;
|
|
946
|
-
},
|
|
947
|
-
if (
|
|
967
|
+
}, Hb = (a, b) => {
|
|
968
|
+
if (Bb) {
|
|
948
969
|
return 0;
|
|
949
970
|
}
|
|
950
971
|
if (!b.includes("r") || a.mode & 292) {
|
|
@@ -955,29 +976,29 @@ var rb = null, sb = {}, tb = [], ub = 1, vb = null, wb = !0, G = null, nb = {},
|
|
|
955
976
|
return 2;
|
|
956
977
|
}
|
|
957
978
|
return 0;
|
|
958
|
-
},
|
|
979
|
+
}, Kb = (a, b) => {
|
|
959
980
|
try {
|
|
960
|
-
return
|
|
981
|
+
return tb(a, b), 20;
|
|
961
982
|
} catch (c) {
|
|
962
983
|
}
|
|
963
|
-
return
|
|
964
|
-
},
|
|
984
|
+
return Hb(a, "wx");
|
|
985
|
+
}, Lb = () => {
|
|
965
986
|
for (var a = 0; 4096 >= a; a++) {
|
|
966
|
-
if (!
|
|
987
|
+
if (!yb[a]) {
|
|
967
988
|
return a;
|
|
968
989
|
}
|
|
969
990
|
}
|
|
970
991
|
throw new G(33);
|
|
971
|
-
},
|
|
972
|
-
a =
|
|
992
|
+
}, Mb = a => {
|
|
993
|
+
a = yb[a];
|
|
973
994
|
if (!a) {
|
|
974
995
|
throw new G(8);
|
|
975
996
|
}
|
|
976
997
|
return a;
|
|
977
|
-
},
|
|
978
|
-
|
|
998
|
+
}, Ob = (a, b = -1) => {
|
|
999
|
+
Nb || (Nb = function() {
|
|
979
1000
|
this.h = {};
|
|
980
|
-
},
|
|
1001
|
+
}, Nb.prototype = {}, Object.defineProperties(Nb.prototype, {object:{get() {
|
|
981
1002
|
return this.node;
|
|
982
1003
|
}, set(c) {
|
|
983
1004
|
this.node = c;
|
|
@@ -990,24 +1011,24 @@ var rb = null, sb = {}, tb = [], ub = 1, vb = null, wb = !0, G = null, nb = {},
|
|
|
990
1011
|
}, set(c) {
|
|
991
1012
|
this.h.position = c;
|
|
992
1013
|
},},}));
|
|
993
|
-
a = Object.assign(new
|
|
994
|
-
-1 == b && (b =
|
|
1014
|
+
a = Object.assign(new Nb(), a);
|
|
1015
|
+
-1 == b && (b = Lb());
|
|
995
1016
|
a.X = b;
|
|
996
|
-
return
|
|
997
|
-
},
|
|
998
|
-
a.m =
|
|
1017
|
+
return yb[b] = a;
|
|
1018
|
+
}, qb = {open:a => {
|
|
1019
|
+
a.m = xb[a.node.la].m;
|
|
999
1020
|
a.m.open && a.m.open(a);
|
|
1000
1021
|
}, $:() => {
|
|
1001
1022
|
throw new G(70);
|
|
1002
|
-
},},
|
|
1003
|
-
|
|
1004
|
-
},
|
|
1023
|
+
},}, lb = (a, b) => {
|
|
1024
|
+
xb[a] = {m:b};
|
|
1025
|
+
}, Pb = (a, b) => {
|
|
1005
1026
|
var c = "/" === b, d = !b;
|
|
1006
|
-
if (c &&
|
|
1027
|
+
if (c && wb) {
|
|
1007
1028
|
throw new G(10);
|
|
1008
1029
|
}
|
|
1009
1030
|
if (!c && !d) {
|
|
1010
|
-
var e =
|
|
1031
|
+
var e = Db(b, {bb:!1});
|
|
1011
1032
|
b = e.path;
|
|
1012
1033
|
e = e.node;
|
|
1013
1034
|
if (e.Ca) {
|
|
@@ -1021,14 +1042,14 @@ var rb = null, sb = {}, tb = [], ub = 1, vb = null, wb = !0, G = null, nb = {},
|
|
|
1021
1042
|
a = a.T(b);
|
|
1022
1043
|
a.T = b;
|
|
1023
1044
|
b.root = a;
|
|
1024
|
-
c ?
|
|
1025
|
-
},
|
|
1026
|
-
var d =
|
|
1027
|
-
a =
|
|
1045
|
+
c ? wb = a : e && (e.Ca = b, e.T && e.T.fc.push(b));
|
|
1046
|
+
}, Qb = (a, b, c) => {
|
|
1047
|
+
var d = Db(a, {parent:!0}).node;
|
|
1048
|
+
a = $a(a);
|
|
1028
1049
|
if (!a || "." === a || ".." === a) {
|
|
1029
1050
|
throw new G(28);
|
|
1030
1051
|
}
|
|
1031
|
-
var e =
|
|
1052
|
+
var e = Kb(d, a);
|
|
1032
1053
|
if (e) {
|
|
1033
1054
|
throw new G(e);
|
|
1034
1055
|
}
|
|
@@ -1036,19 +1057,19 @@ var rb = null, sb = {}, tb = [], ub = 1, vb = null, wb = !0, G = null, nb = {},
|
|
|
1036
1057
|
throw new G(63);
|
|
1037
1058
|
}
|
|
1038
1059
|
return d.j.Ba(d, a, b, c);
|
|
1039
|
-
},
|
|
1060
|
+
}, Rb = (a, b, c) => {
|
|
1040
1061
|
"undefined" == typeof c && (c = b, b = 438);
|
|
1041
|
-
|
|
1042
|
-
},
|
|
1043
|
-
if (!
|
|
1062
|
+
Qb(a, b | 8192, c);
|
|
1063
|
+
}, Sb = (a, b) => {
|
|
1064
|
+
if (!cb(a)) {
|
|
1044
1065
|
throw new G(44);
|
|
1045
1066
|
}
|
|
1046
|
-
var c =
|
|
1067
|
+
var c = Db(b, {parent:!0}).node;
|
|
1047
1068
|
if (!c) {
|
|
1048
1069
|
throw new G(44);
|
|
1049
1070
|
}
|
|
1050
|
-
b =
|
|
1051
|
-
var d =
|
|
1071
|
+
b = $a(b);
|
|
1072
|
+
var d = Kb(c, b);
|
|
1052
1073
|
if (d) {
|
|
1053
1074
|
throw new G(d);
|
|
1054
1075
|
}
|
|
@@ -1056,16 +1077,16 @@ var rb = null, sb = {}, tb = [], ub = 1, vb = null, wb = !0, G = null, nb = {},
|
|
|
1056
1077
|
throw new G(63);
|
|
1057
1078
|
}
|
|
1058
1079
|
c.j.Ga(c, b, a);
|
|
1059
|
-
},
|
|
1060
|
-
a =
|
|
1080
|
+
}, Cb = a => {
|
|
1081
|
+
a = Db(a).node;
|
|
1061
1082
|
if (!a) {
|
|
1062
1083
|
throw new G(44);
|
|
1063
1084
|
}
|
|
1064
1085
|
if (!a.j.ma) {
|
|
1065
1086
|
throw new G(28);
|
|
1066
1087
|
}
|
|
1067
|
-
return
|
|
1068
|
-
},
|
|
1088
|
+
return cb(Eb(a.parent), a.j.ma(a));
|
|
1089
|
+
}, Ub = (a, b, c) => {
|
|
1069
1090
|
if ("" === a) {
|
|
1070
1091
|
throw new G(44);
|
|
1071
1092
|
}
|
|
@@ -1080,9 +1101,9 @@ var rb = null, sb = {}, tb = [], ub = 1, vb = null, wb = !0, G = null, nb = {},
|
|
|
1080
1101
|
if ("object" == typeof a) {
|
|
1081
1102
|
var e = a;
|
|
1082
1103
|
} else {
|
|
1083
|
-
a =
|
|
1104
|
+
a = Ya(a);
|
|
1084
1105
|
try {
|
|
1085
|
-
e =
|
|
1106
|
+
e = Db(a, {Ma:!(b & 131072)}).node;
|
|
1086
1107
|
} catch (f) {
|
|
1087
1108
|
}
|
|
1088
1109
|
}
|
|
@@ -1093,7 +1114,7 @@ var rb = null, sb = {}, tb = [], ub = 1, vb = null, wb = !0, G = null, nb = {},
|
|
|
1093
1114
|
throw new G(20);
|
|
1094
1115
|
}
|
|
1095
1116
|
} else {
|
|
1096
|
-
e =
|
|
1117
|
+
e = Qb(a, c, 0), d = !0;
|
|
1097
1118
|
}
|
|
1098
1119
|
}
|
|
1099
1120
|
if (!e) {
|
|
@@ -1103,12 +1124,12 @@ var rb = null, sb = {}, tb = [], ub = 1, vb = null, wb = !0, G = null, nb = {},
|
|
|
1103
1124
|
if (b & 65536 && 16384 !== (e.mode & 61440)) {
|
|
1104
1125
|
throw new G(54);
|
|
1105
1126
|
}
|
|
1106
|
-
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !==
|
|
1127
|
+
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Jb(b) || b & 512) ? 31 : Hb(e, Jb(b)) : 44)) {
|
|
1107
1128
|
throw new G(c);
|
|
1108
1129
|
}
|
|
1109
1130
|
if (b & 512 && !d) {
|
|
1110
1131
|
c = e;
|
|
1111
|
-
c = "string" == typeof c ?
|
|
1132
|
+
c = "string" == typeof c ? Db(c, {Ma:!0}).node : c;
|
|
1112
1133
|
if (!c.j.P) {
|
|
1113
1134
|
throw new G(63);
|
|
1114
1135
|
}
|
|
@@ -1118,17 +1139,17 @@ var rb = null, sb = {}, tb = [], ub = 1, vb = null, wb = !0, G = null, nb = {},
|
|
|
1118
1139
|
if (32768 !== (c.mode & 61440)) {
|
|
1119
1140
|
throw new G(28);
|
|
1120
1141
|
}
|
|
1121
|
-
if (d =
|
|
1142
|
+
if (d = Hb(c, "w")) {
|
|
1122
1143
|
throw new G(d);
|
|
1123
1144
|
}
|
|
1124
1145
|
c.j.P(c, {size:0, timestamp:Date.now()});
|
|
1125
1146
|
}
|
|
1126
1147
|
b &= -131713;
|
|
1127
|
-
e =
|
|
1148
|
+
e = Ob({node:e, path:Eb(e), flags:b, seekable:!0, position:0, m:e.m, wc:[], error:!1});
|
|
1128
1149
|
e.m.open && e.m.open(e);
|
|
1129
|
-
!m.logReadFiles || b & 1 || (
|
|
1150
|
+
!m.logReadFiles || b & 1 || (Tb || (Tb = {}), a in Tb || (Tb[a] = 1));
|
|
1130
1151
|
return e;
|
|
1131
|
-
},
|
|
1152
|
+
}, Vb = (a, b, c) => {
|
|
1132
1153
|
if (null === a.X) {
|
|
1133
1154
|
throw new G(8);
|
|
1134
1155
|
}
|
|
@@ -1140,7 +1161,7 @@ var rb = null, sb = {}, tb = [], ub = 1, vb = null, wb = !0, G = null, nb = {},
|
|
|
1140
1161
|
}
|
|
1141
1162
|
a.position = a.m.$(a, b, c);
|
|
1142
1163
|
a.wc = [];
|
|
1143
|
-
},
|
|
1164
|
+
}, Wb = () => {
|
|
1144
1165
|
G || (G = function(a, b) {
|
|
1145
1166
|
this.name = "ErrnoError";
|
|
1146
1167
|
this.node = b;
|
|
@@ -1150,20 +1171,20 @@ var rb = null, sb = {}, tb = [], ub = 1, vb = null, wb = !0, G = null, nb = {},
|
|
|
1150
1171
|
this.mc(a);
|
|
1151
1172
|
this.message = "FS error";
|
|
1152
1173
|
}, G.prototype = Error(), G.prototype.constructor = G, [44].forEach(a => {
|
|
1153
|
-
|
|
1154
|
-
|
|
1174
|
+
sb[a] = new G(a);
|
|
1175
|
+
sb[a].stack = "<generic error, no stack>";
|
|
1155
1176
|
}));
|
|
1156
|
-
},
|
|
1157
|
-
a =
|
|
1158
|
-
var d =
|
|
1159
|
-
|
|
1160
|
-
var e =
|
|
1161
|
-
|
|
1177
|
+
}, Xb, Zb = (a, b, c) => {
|
|
1178
|
+
a = Ya("/dev/" + a);
|
|
1179
|
+
var d = vb(!!b, !!c);
|
|
1180
|
+
Yb || (Yb = 64);
|
|
1181
|
+
var e = Yb++ << 8 | 0;
|
|
1182
|
+
lb(e, {open:f => {
|
|
1162
1183
|
f.seekable = !1;
|
|
1163
1184
|
}, close:() => {
|
|
1164
1185
|
c && c.buffer && c.buffer.length && c(10);
|
|
1165
|
-
}, read:(f, g, k,
|
|
1166
|
-
for (var n = 0, u = 0; u <
|
|
1186
|
+
}, read:(f, g, k, q) => {
|
|
1187
|
+
for (var n = 0, u = 0; u < q; u++) {
|
|
1167
1188
|
try {
|
|
1168
1189
|
var v = b();
|
|
1169
1190
|
} catch (y) {
|
|
@@ -1180,24 +1201,24 @@ var rb = null, sb = {}, tb = [], ub = 1, vb = null, wb = !0, G = null, nb = {},
|
|
|
1180
1201
|
}
|
|
1181
1202
|
n && (f.node.timestamp = Date.now());
|
|
1182
1203
|
return n;
|
|
1183
|
-
}, write:(f, g, k,
|
|
1184
|
-
for (var n = 0; n <
|
|
1204
|
+
}, write:(f, g, k, q) => {
|
|
1205
|
+
for (var n = 0; n < q; n++) {
|
|
1185
1206
|
try {
|
|
1186
1207
|
c(g[k + n]);
|
|
1187
1208
|
} catch (u) {
|
|
1188
1209
|
throw new G(29);
|
|
1189
1210
|
}
|
|
1190
1211
|
}
|
|
1191
|
-
|
|
1212
|
+
q && (f.node.timestamp = Date.now());
|
|
1192
1213
|
return n;
|
|
1193
1214
|
}});
|
|
1194
|
-
|
|
1195
|
-
},
|
|
1196
|
-
function
|
|
1197
|
-
|
|
1198
|
-
return A[
|
|
1215
|
+
Rb(a, d, e);
|
|
1216
|
+
}, Yb, $b = {}, Nb, Tb, ac = void 0;
|
|
1217
|
+
function bc() {
|
|
1218
|
+
ac += 4;
|
|
1219
|
+
return A[ac - 4 >> 2];
|
|
1199
1220
|
}
|
|
1200
|
-
function
|
|
1221
|
+
function cc(a) {
|
|
1201
1222
|
if (void 0 === a) {
|
|
1202
1223
|
return "_unknown";
|
|
1203
1224
|
}
|
|
@@ -1205,24 +1226,24 @@ function Yb(a) {
|
|
|
1205
1226
|
var b = a.charCodeAt(0);
|
|
1206
1227
|
return 48 <= b && 57 >= b ? `_${a}` : a;
|
|
1207
1228
|
}
|
|
1208
|
-
function
|
|
1209
|
-
a =
|
|
1229
|
+
function dc(a, b) {
|
|
1230
|
+
a = cc(a);
|
|
1210
1231
|
return {[a]:function() {
|
|
1211
1232
|
return b.apply(this, arguments);
|
|
1212
1233
|
}}[a];
|
|
1213
1234
|
}
|
|
1214
|
-
function
|
|
1235
|
+
function ec() {
|
|
1215
1236
|
this.L = [void 0];
|
|
1216
1237
|
this.cb = [];
|
|
1217
1238
|
}
|
|
1218
|
-
var J = new
|
|
1239
|
+
var J = new ec(), fc = void 0;
|
|
1219
1240
|
function K(a) {
|
|
1220
|
-
throw new
|
|
1241
|
+
throw new fc(a);
|
|
1221
1242
|
}
|
|
1222
|
-
var
|
|
1243
|
+
var gc = a => {
|
|
1223
1244
|
a || K("Cannot use deleted val. handle = " + a);
|
|
1224
1245
|
return J.get(a).value;
|
|
1225
|
-
},
|
|
1246
|
+
}, hc = a => {
|
|
1226
1247
|
switch(a) {
|
|
1227
1248
|
case void 0:
|
|
1228
1249
|
return 1;
|
|
@@ -1236,8 +1257,8 @@ var bc = a => {
|
|
|
1236
1257
|
return J.sa({qb:1, value:a});
|
|
1237
1258
|
}
|
|
1238
1259
|
};
|
|
1239
|
-
function
|
|
1240
|
-
var b = Error, c =
|
|
1260
|
+
function ic(a) {
|
|
1261
|
+
var b = Error, c = dc(a, function(d) {
|
|
1241
1262
|
this.name = a;
|
|
1242
1263
|
this.message = d;
|
|
1243
1264
|
d = Error(d).stack;
|
|
@@ -1250,122 +1271,122 @@ function dc(a) {
|
|
|
1250
1271
|
};
|
|
1251
1272
|
return c;
|
|
1252
1273
|
}
|
|
1253
|
-
var
|
|
1274
|
+
var jc = void 0, kc = void 0;
|
|
1254
1275
|
function N(a) {
|
|
1255
1276
|
for (var b = ""; w[a];) {
|
|
1256
|
-
b +=
|
|
1277
|
+
b += kc[w[a++]];
|
|
1257
1278
|
}
|
|
1258
1279
|
return b;
|
|
1259
1280
|
}
|
|
1260
|
-
var
|
|
1261
|
-
function
|
|
1262
|
-
for (;
|
|
1263
|
-
var a =
|
|
1281
|
+
var lc = [];
|
|
1282
|
+
function mc() {
|
|
1283
|
+
for (; lc.length;) {
|
|
1284
|
+
var a = lc.pop();
|
|
1264
1285
|
a.g.ga = !1;
|
|
1265
1286
|
a["delete"]();
|
|
1266
1287
|
}
|
|
1267
1288
|
}
|
|
1268
|
-
var
|
|
1269
|
-
function
|
|
1289
|
+
var nc = void 0, oc = {};
|
|
1290
|
+
function pc(a, b) {
|
|
1270
1291
|
for (void 0 === b && K("ptr should not be undefined"); a.A;) {
|
|
1271
1292
|
b = a.oa(b), a = a.A;
|
|
1272
1293
|
}
|
|
1273
1294
|
return b;
|
|
1274
1295
|
}
|
|
1275
|
-
var
|
|
1276
|
-
function
|
|
1277
|
-
a =
|
|
1296
|
+
var qc = {};
|
|
1297
|
+
function rc(a) {
|
|
1298
|
+
a = sc(a);
|
|
1278
1299
|
var b = N(a);
|
|
1279
|
-
|
|
1300
|
+
tc(a);
|
|
1280
1301
|
return b;
|
|
1281
1302
|
}
|
|
1282
|
-
function
|
|
1283
|
-
var c =
|
|
1284
|
-
void 0 === c && K(b + " has unknown type " +
|
|
1303
|
+
function uc(a, b) {
|
|
1304
|
+
var c = qc[a];
|
|
1305
|
+
void 0 === c && K(b + " has unknown type " + rc(a));
|
|
1285
1306
|
return c;
|
|
1286
1307
|
}
|
|
1287
|
-
function
|
|
1308
|
+
function vc() {
|
|
1288
1309
|
}
|
|
1289
|
-
var
|
|
1290
|
-
function
|
|
1310
|
+
var wc = !1;
|
|
1311
|
+
function xc(a) {
|
|
1291
1312
|
--a.count.value;
|
|
1292
1313
|
0 === a.count.value && (a.G ? a.K.V(a.G) : a.u.i.V(a.o));
|
|
1293
1314
|
}
|
|
1294
|
-
function
|
|
1315
|
+
function yc(a, b, c) {
|
|
1295
1316
|
if (b === c) {
|
|
1296
1317
|
return a;
|
|
1297
1318
|
}
|
|
1298
1319
|
if (void 0 === c.A) {
|
|
1299
1320
|
return null;
|
|
1300
1321
|
}
|
|
1301
|
-
a =
|
|
1322
|
+
a = yc(a, b, c.A);
|
|
1302
1323
|
return null === a ? null : c.Nb(a);
|
|
1303
1324
|
}
|
|
1304
|
-
var
|
|
1305
|
-
function
|
|
1306
|
-
b =
|
|
1307
|
-
return
|
|
1325
|
+
var zc = {};
|
|
1326
|
+
function Ac(a, b) {
|
|
1327
|
+
b = pc(a, b);
|
|
1328
|
+
return oc[b];
|
|
1308
1329
|
}
|
|
1309
|
-
var
|
|
1310
|
-
function
|
|
1311
|
-
throw new
|
|
1330
|
+
var Bc = void 0;
|
|
1331
|
+
function Cc(a) {
|
|
1332
|
+
throw new Bc(a);
|
|
1312
1333
|
}
|
|
1313
|
-
function
|
|
1314
|
-
b.u && b.o ||
|
|
1315
|
-
!!b.K !== !!b.G &&
|
|
1334
|
+
function Dc(a, b) {
|
|
1335
|
+
b.u && b.o || Cc("makeClassHandle requires ptr and ptrType");
|
|
1336
|
+
!!b.K !== !!b.G && Cc("Both smartPtrType and smartPtr must be specified");
|
|
1316
1337
|
b.count = {value:1};
|
|
1317
|
-
return
|
|
1338
|
+
return Ec(Object.create(a, {g:{value:b,},}));
|
|
1318
1339
|
}
|
|
1319
|
-
function
|
|
1340
|
+
function Ec(a) {
|
|
1320
1341
|
if ("undefined" === typeof FinalizationRegistry) {
|
|
1321
|
-
return
|
|
1342
|
+
return Ec = b => b, a;
|
|
1322
1343
|
}
|
|
1323
|
-
|
|
1324
|
-
|
|
1344
|
+
wc = new FinalizationRegistry(b => {
|
|
1345
|
+
xc(b.g);
|
|
1325
1346
|
});
|
|
1326
|
-
|
|
1347
|
+
Ec = b => {
|
|
1327
1348
|
var c = b.g;
|
|
1328
|
-
c.G &&
|
|
1349
|
+
c.G && wc.register(b, {g:c}, b);
|
|
1329
1350
|
return b;
|
|
1330
1351
|
};
|
|
1331
|
-
|
|
1332
|
-
|
|
1352
|
+
vc = b => {
|
|
1353
|
+
wc.unregister(b);
|
|
1333
1354
|
};
|
|
1334
|
-
return
|
|
1355
|
+
return Ec(a);
|
|
1335
1356
|
}
|
|
1336
|
-
var
|
|
1337
|
-
function
|
|
1357
|
+
var Fc = {};
|
|
1358
|
+
function Gc(a) {
|
|
1338
1359
|
for (; a.length;) {
|
|
1339
1360
|
var b = a.pop();
|
|
1340
1361
|
a.pop()(b);
|
|
1341
1362
|
}
|
|
1342
1363
|
}
|
|
1343
|
-
function
|
|
1364
|
+
function Hc(a) {
|
|
1344
1365
|
return this.fromWireType(A[a >> 2]);
|
|
1345
1366
|
}
|
|
1346
|
-
var
|
|
1367
|
+
var Ic = {}, Jc = {};
|
|
1347
1368
|
function P(a, b, c) {
|
|
1348
1369
|
function d(k) {
|
|
1349
1370
|
k = c(k);
|
|
1350
|
-
k.length !== a.length &&
|
|
1351
|
-
for (var
|
|
1352
|
-
|
|
1371
|
+
k.length !== a.length && Cc("Mismatched type converter count");
|
|
1372
|
+
for (var q = 0; q < a.length; ++q) {
|
|
1373
|
+
Kc(a[q], k[q]);
|
|
1353
1374
|
}
|
|
1354
1375
|
}
|
|
1355
1376
|
a.forEach(function(k) {
|
|
1356
|
-
|
|
1377
|
+
Jc[k] = b;
|
|
1357
1378
|
});
|
|
1358
1379
|
var e = Array(b.length), f = [], g = 0;
|
|
1359
|
-
b.forEach((k,
|
|
1360
|
-
|
|
1361
|
-
e[
|
|
1380
|
+
b.forEach((k, q) => {
|
|
1381
|
+
qc.hasOwnProperty(k) ? e[q] = qc[k] : (f.push(k), Ic.hasOwnProperty(k) || (Ic[k] = []), Ic[k].push(() => {
|
|
1382
|
+
e[q] = qc[k];
|
|
1362
1383
|
++g;
|
|
1363
1384
|
g === f.length && d(e);
|
|
1364
1385
|
}));
|
|
1365
1386
|
});
|
|
1366
1387
|
0 === f.length && d(e);
|
|
1367
1388
|
}
|
|
1368
|
-
function
|
|
1389
|
+
function Lc(a) {
|
|
1369
1390
|
switch(a) {
|
|
1370
1391
|
case 1:
|
|
1371
1392
|
return 0;
|
|
@@ -1379,31 +1400,31 @@ function Gc(a) {
|
|
|
1379
1400
|
throw new TypeError(`Unknown type size: ${a}`);
|
|
1380
1401
|
}
|
|
1381
1402
|
}
|
|
1382
|
-
function
|
|
1403
|
+
function Mc(a, b, c = {}) {
|
|
1383
1404
|
var d = b.name;
|
|
1384
1405
|
a || K(`type "${d}" must have a positive integer typeid pointer`);
|
|
1385
|
-
if (
|
|
1406
|
+
if (qc.hasOwnProperty(a)) {
|
|
1386
1407
|
if (c.Zb) {
|
|
1387
1408
|
return;
|
|
1388
1409
|
}
|
|
1389
1410
|
K(`Cannot register type '${d}' twice`);
|
|
1390
1411
|
}
|
|
1391
|
-
|
|
1392
|
-
delete
|
|
1393
|
-
|
|
1412
|
+
qc[a] = b;
|
|
1413
|
+
delete Jc[a];
|
|
1414
|
+
Ic.hasOwnProperty(a) && (b = Ic[a], delete Ic[a], b.forEach(e => e()));
|
|
1394
1415
|
}
|
|
1395
|
-
function
|
|
1416
|
+
function Kc(a, b, c = {}) {
|
|
1396
1417
|
if (!("argPackAdvance" in b)) {
|
|
1397
1418
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
1398
1419
|
}
|
|
1399
|
-
|
|
1420
|
+
Mc(a, b, c);
|
|
1400
1421
|
}
|
|
1401
|
-
function
|
|
1422
|
+
function Nc(a) {
|
|
1402
1423
|
K(a.g.u.i.name + " instance already deleted");
|
|
1403
1424
|
}
|
|
1404
|
-
function
|
|
1425
|
+
function Oc() {
|
|
1405
1426
|
}
|
|
1406
|
-
function
|
|
1427
|
+
function Pc(a, b, c) {
|
|
1407
1428
|
if (void 0 === a[b].B) {
|
|
1408
1429
|
var d = a[b];
|
|
1409
1430
|
a[b] = function() {
|
|
@@ -1414,10 +1435,10 @@ function Kc(a, b, c) {
|
|
|
1414
1435
|
a[b].B[d.ea] = d;
|
|
1415
1436
|
}
|
|
1416
1437
|
}
|
|
1417
|
-
function
|
|
1418
|
-
m.hasOwnProperty(a) ? ((void 0 === c || void 0 !== m[a].B && void 0 !== m[a].B[c]) && K(`Cannot register public name '${a}' twice`),
|
|
1438
|
+
function Qc(a, b, c) {
|
|
1439
|
+
m.hasOwnProperty(a) ? ((void 0 === c || void 0 !== m[a].B && void 0 !== m[a].B[c]) && K(`Cannot register public name '${a}' twice`), Pc(m, a, a), m.hasOwnProperty(c) && K(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), m[a].B[c] = b) : (m[a] = b, void 0 !== c && (m[a].Hc = c));
|
|
1419
1440
|
}
|
|
1420
|
-
function
|
|
1441
|
+
function Rc(a, b, c, d, e, f, g, k) {
|
|
1421
1442
|
this.name = a;
|
|
1422
1443
|
this.constructor = b;
|
|
1423
1444
|
this.N = c;
|
|
@@ -1428,21 +1449,21 @@ function Mc(a, b, c, d, e, f, g, k) {
|
|
|
1428
1449
|
this.Nb = k;
|
|
1429
1450
|
this.nb = [];
|
|
1430
1451
|
}
|
|
1431
|
-
function
|
|
1452
|
+
function Sc(a, b, c) {
|
|
1432
1453
|
for (; b !== c;) {
|
|
1433
1454
|
b.oa || K(`Expected null or instance of ${c.name}, got an instance of ${b.name}`), a = b.oa(a), b = b.A;
|
|
1434
1455
|
}
|
|
1435
1456
|
return a;
|
|
1436
1457
|
}
|
|
1437
|
-
function
|
|
1458
|
+
function Tc(a, b) {
|
|
1438
1459
|
if (null === b) {
|
|
1439
1460
|
return this.Oa && K(`null is not a valid ${this.name}`), 0;
|
|
1440
1461
|
}
|
|
1441
|
-
b.g || K(`Cannot pass "${
|
|
1462
|
+
b.g || K(`Cannot pass "${Uc(b)}" as a ${this.name}`);
|
|
1442
1463
|
b.g.o || K(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1443
|
-
return
|
|
1464
|
+
return Sc(b.g.o, b.g.u.i, this.i);
|
|
1444
1465
|
}
|
|
1445
|
-
function
|
|
1466
|
+
function Vc(a, b) {
|
|
1446
1467
|
if (null === b) {
|
|
1447
1468
|
this.Oa && K(`null is not a valid ${this.name}`);
|
|
1448
1469
|
if (this.xa) {
|
|
@@ -1452,10 +1473,10 @@ function Qc(a, b) {
|
|
|
1452
1473
|
}
|
|
1453
1474
|
return 0;
|
|
1454
1475
|
}
|
|
1455
|
-
b.g || K(`Cannot pass "${
|
|
1476
|
+
b.g || K(`Cannot pass "${Uc(b)}" as a ${this.name}`);
|
|
1456
1477
|
b.g.o || K(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1457
1478
|
!this.wa && b.g.u.wa && K(`Cannot convert argument of type ${b.g.K ? b.g.K.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1458
|
-
c =
|
|
1479
|
+
c = Sc(b.g.o, b.g.u.i, this.i);
|
|
1459
1480
|
if (this.xa) {
|
|
1460
1481
|
switch(void 0 === b.g.G && K("Passing raw pointer to smart pointer is illegal"), this.qc) {
|
|
1461
1482
|
case 0:
|
|
@@ -1469,7 +1490,7 @@ function Qc(a, b) {
|
|
|
1469
1490
|
c = b.g.G;
|
|
1470
1491
|
} else {
|
|
1471
1492
|
var d = b.clone();
|
|
1472
|
-
c = this.lc(c,
|
|
1493
|
+
c = this.lc(c, hc(function() {
|
|
1473
1494
|
d["delete"]();
|
|
1474
1495
|
}));
|
|
1475
1496
|
null !== a && a.push(this.V, c);
|
|
@@ -1481,33 +1502,33 @@ function Qc(a, b) {
|
|
|
1481
1502
|
}
|
|
1482
1503
|
return c;
|
|
1483
1504
|
}
|
|
1484
|
-
function
|
|
1505
|
+
function Wc(a, b) {
|
|
1485
1506
|
if (null === b) {
|
|
1486
1507
|
return this.Oa && K(`null is not a valid ${this.name}`), 0;
|
|
1487
1508
|
}
|
|
1488
|
-
b.g || K(`Cannot pass "${
|
|
1509
|
+
b.g || K(`Cannot pass "${Uc(b)}" as a ${this.name}`);
|
|
1489
1510
|
b.g.o || K(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1490
1511
|
b.g.u.wa && K(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1491
|
-
return
|
|
1512
|
+
return Sc(b.g.o, b.g.u.i, this.i);
|
|
1492
1513
|
}
|
|
1493
|
-
function
|
|
1514
|
+
function Xc(a, b, c, d) {
|
|
1494
1515
|
this.name = a;
|
|
1495
1516
|
this.i = b;
|
|
1496
1517
|
this.Oa = c;
|
|
1497
1518
|
this.wa = d;
|
|
1498
1519
|
this.xa = !1;
|
|
1499
1520
|
this.V = this.lc = this.Qa = this.ob = this.qc = this.kc = void 0;
|
|
1500
|
-
void 0 !== b.A ? this.toWireType =
|
|
1521
|
+
void 0 !== b.A ? this.toWireType = Vc : (this.toWireType = d ? Tc : Wc, this.J = null);
|
|
1501
1522
|
}
|
|
1502
|
-
function
|
|
1503
|
-
m.hasOwnProperty(a) ||
|
|
1523
|
+
function Yc(a, b, c) {
|
|
1524
|
+
m.hasOwnProperty(a) || Cc("Replacing nonexistant public symbol");
|
|
1504
1525
|
void 0 !== m[a].B && void 0 !== c ? m[a].B[c] = b : (m[a] = b, m[a].ea = c);
|
|
1505
1526
|
}
|
|
1506
|
-
var
|
|
1507
|
-
var b =
|
|
1508
|
-
b || (a >=
|
|
1527
|
+
var Zc = [], Q = a => {
|
|
1528
|
+
var b = Zc[a];
|
|
1529
|
+
b || (a >= Zc.length && (Zc.length = a + 1), Zc[a] = b = Da.get(a));
|
|
1509
1530
|
return b;
|
|
1510
|
-
},
|
|
1531
|
+
}, $c = (a, b) => {
|
|
1511
1532
|
var c = [];
|
|
1512
1533
|
return function() {
|
|
1513
1534
|
c.length = 0;
|
|
@@ -1523,20 +1544,20 @@ var Uc = [], Q = a => {
|
|
|
1523
1544
|
};
|
|
1524
1545
|
function R(a, b) {
|
|
1525
1546
|
a = N(a);
|
|
1526
|
-
var c = a.includes("j") ?
|
|
1547
|
+
var c = a.includes("j") ? $c(a, b) : Q(b);
|
|
1527
1548
|
"function" != typeof c && K(`unknown function pointer with signature ${a}: ${b}`);
|
|
1528
1549
|
return c;
|
|
1529
1550
|
}
|
|
1530
|
-
var
|
|
1531
|
-
function
|
|
1551
|
+
var ad = void 0;
|
|
1552
|
+
function bd(a, b) {
|
|
1532
1553
|
function c(f) {
|
|
1533
|
-
e[f] ||
|
|
1554
|
+
e[f] || qc[f] || (Jc[f] ? Jc[f].forEach(c) : (d.push(f), e[f] = !0));
|
|
1534
1555
|
}
|
|
1535
1556
|
var d = [], e = {};
|
|
1536
1557
|
b.forEach(c);
|
|
1537
|
-
throw new
|
|
1558
|
+
throw new ad(`${a}: ` + d.map(rc).join([", "]));
|
|
1538
1559
|
}
|
|
1539
|
-
function
|
|
1560
|
+
function cd(a, b, c, d, e) {
|
|
1540
1561
|
var f = b.length;
|
|
1541
1562
|
2 > f && K("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1542
1563
|
var g = null !== b[1] && null !== c, k = !1;
|
|
@@ -1546,7 +1567,7 @@ function Yc(a, b, c, d, e) {
|
|
|
1546
1567
|
break;
|
|
1547
1568
|
}
|
|
1548
1569
|
}
|
|
1549
|
-
var
|
|
1570
|
+
var q = "void" !== b[0].name, n = f - 2, u = Array(n), v = [], y = [];
|
|
1550
1571
|
return function() {
|
|
1551
1572
|
arguments.length !== n && K(`function ${a} called with ${arguments.length} arguments, expected ${n} args!`);
|
|
1552
1573
|
y.length = 0;
|
|
@@ -1561,33 +1582,33 @@ function Yc(a, b, c, d, e) {
|
|
|
1561
1582
|
}
|
|
1562
1583
|
r = d.apply(null, v);
|
|
1563
1584
|
if (k) {
|
|
1564
|
-
|
|
1585
|
+
Gc(y);
|
|
1565
1586
|
} else {
|
|
1566
1587
|
for (var x = g ? 1 : 2; x < b.length; x++) {
|
|
1567
1588
|
var z = 1 === x ? l : u[x - 2];
|
|
1568
1589
|
null !== b[x].J && b[x].J(z);
|
|
1569
1590
|
}
|
|
1570
1591
|
}
|
|
1571
|
-
l =
|
|
1592
|
+
l = q ? b[0].fromWireType(r) : void 0;
|
|
1572
1593
|
return l;
|
|
1573
1594
|
};
|
|
1574
1595
|
}
|
|
1575
|
-
function
|
|
1596
|
+
function dd(a, b) {
|
|
1576
1597
|
for (var c = [], d = 0; d < a; d++) {
|
|
1577
1598
|
c.push(B[b + 4 * d >> 2]);
|
|
1578
1599
|
}
|
|
1579
1600
|
return c;
|
|
1580
1601
|
}
|
|
1581
|
-
function
|
|
1602
|
+
function ed(a, b, c) {
|
|
1582
1603
|
a instanceof Object || K(`${c} with invalid "this": ${a}`);
|
|
1583
1604
|
a instanceof b.i.constructor || K(`${c} incompatible with "this" of type ${a.constructor.name}`);
|
|
1584
1605
|
a.g.o || K(`cannot call emscripten binding method ${c} on deleted object`);
|
|
1585
|
-
return
|
|
1606
|
+
return Sc(a.g.o, a.g.u.i, b.i);
|
|
1586
1607
|
}
|
|
1587
|
-
function
|
|
1608
|
+
function fd(a) {
|
|
1588
1609
|
a >= J.h && 0 === --J.get(a).qb && J.Yb(a);
|
|
1589
1610
|
}
|
|
1590
|
-
function
|
|
1611
|
+
function gd(a, b, c) {
|
|
1591
1612
|
switch(b) {
|
|
1592
1613
|
case 0:
|
|
1593
1614
|
return function(d) {
|
|
@@ -1595,7 +1616,7 @@ function bd(a, b, c) {
|
|
|
1595
1616
|
};
|
|
1596
1617
|
case 1:
|
|
1597
1618
|
return function(d) {
|
|
1598
|
-
return this.fromWireType((c ?
|
|
1619
|
+
return this.fromWireType((c ? za : Aa)[d >> 1]);
|
|
1599
1620
|
};
|
|
1600
1621
|
case 2:
|
|
1601
1622
|
return function(d) {
|
|
@@ -1605,14 +1626,14 @@ function bd(a, b, c) {
|
|
|
1605
1626
|
throw new TypeError("Unknown integer type: " + a);
|
|
1606
1627
|
}
|
|
1607
1628
|
}
|
|
1608
|
-
function
|
|
1629
|
+
function Uc(a) {
|
|
1609
1630
|
if (null === a) {
|
|
1610
1631
|
return "null";
|
|
1611
1632
|
}
|
|
1612
1633
|
var b = typeof a;
|
|
1613
1634
|
return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
|
|
1614
1635
|
}
|
|
1615
|
-
function
|
|
1636
|
+
function hd(a, b) {
|
|
1616
1637
|
switch(b) {
|
|
1617
1638
|
case 2:
|
|
1618
1639
|
return function(c) {
|
|
@@ -1620,13 +1641,13 @@ function cd(a, b) {
|
|
|
1620
1641
|
};
|
|
1621
1642
|
case 3:
|
|
1622
1643
|
return function(c) {
|
|
1623
|
-
return this.fromWireType(
|
|
1644
|
+
return this.fromWireType(Ba[c >> 3]);
|
|
1624
1645
|
};
|
|
1625
1646
|
default:
|
|
1626
1647
|
throw new TypeError("Unknown float type: " + a);
|
|
1627
1648
|
}
|
|
1628
1649
|
}
|
|
1629
|
-
function
|
|
1650
|
+
function jd(a, b, c) {
|
|
1630
1651
|
switch(b) {
|
|
1631
1652
|
case 0:
|
|
1632
1653
|
return c ? function(d) {
|
|
@@ -1636,9 +1657,9 @@ function dd(a, b, c) {
|
|
|
1636
1657
|
};
|
|
1637
1658
|
case 1:
|
|
1638
1659
|
return c ? function(d) {
|
|
1639
|
-
return
|
|
1660
|
+
return za[d >> 1];
|
|
1640
1661
|
} : function(d) {
|
|
1641
|
-
return
|
|
1662
|
+
return Aa[d >> 1];
|
|
1642
1663
|
};
|
|
1643
1664
|
case 2:
|
|
1644
1665
|
return c ? function(d) {
|
|
@@ -1650,25 +1671,25 @@ function dd(a, b, c) {
|
|
|
1650
1671
|
throw new TypeError("Unknown integer type: " + a);
|
|
1651
1672
|
}
|
|
1652
1673
|
}
|
|
1653
|
-
var
|
|
1674
|
+
var kd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, ld = (a, b) => {
|
|
1654
1675
|
var c = a >> 1;
|
|
1655
|
-
for (var d = c + b / 2; !(c >= d) &&
|
|
1676
|
+
for (var d = c + b / 2; !(c >= d) && Aa[c];) {
|
|
1656
1677
|
++c;
|
|
1657
1678
|
}
|
|
1658
1679
|
c <<= 1;
|
|
1659
|
-
if (32 < c - a &&
|
|
1660
|
-
return
|
|
1680
|
+
if (32 < c - a && kd) {
|
|
1681
|
+
return kd.decode(w.subarray(a, c));
|
|
1661
1682
|
}
|
|
1662
1683
|
c = "";
|
|
1663
1684
|
for (d = 0; !(d >= b / 2); ++d) {
|
|
1664
|
-
var e =
|
|
1685
|
+
var e = za[a + 2 * d >> 1];
|
|
1665
1686
|
if (0 == e) {
|
|
1666
1687
|
break;
|
|
1667
1688
|
}
|
|
1668
1689
|
c += String.fromCharCode(e);
|
|
1669
1690
|
}
|
|
1670
1691
|
return c;
|
|
1671
|
-
},
|
|
1692
|
+
}, md = (a, b, c) => {
|
|
1672
1693
|
void 0 === c && (c = 2147483647);
|
|
1673
1694
|
if (2 > c) {
|
|
1674
1695
|
return 0;
|
|
@@ -1677,11 +1698,11 @@ var ed = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1677
1698
|
var d = b;
|
|
1678
1699
|
c = c < 2 * a.length ? c / 2 : a.length;
|
|
1679
1700
|
for (var e = 0; e < c; ++e) {
|
|
1680
|
-
|
|
1701
|
+
za[b >> 1] = a.charCodeAt(e), b += 2;
|
|
1681
1702
|
}
|
|
1682
|
-
|
|
1703
|
+
za[b >> 1] = 0;
|
|
1683
1704
|
return b - d;
|
|
1684
|
-
},
|
|
1705
|
+
}, nd = a => 2 * a.length, od = (a, b) => {
|
|
1685
1706
|
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
1686
1707
|
var e = A[a + 4 * c >> 2];
|
|
1687
1708
|
if (0 == e) {
|
|
@@ -1691,7 +1712,7 @@ var ed = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1691
1712
|
65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
|
|
1692
1713
|
}
|
|
1693
1714
|
return d;
|
|
1694
|
-
},
|
|
1715
|
+
}, pd = (a, b, c) => {
|
|
1695
1716
|
void 0 === c && (c = 2147483647);
|
|
1696
1717
|
if (4 > c) {
|
|
1697
1718
|
return 0;
|
|
@@ -1712,32 +1733,32 @@ var ed = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1712
1733
|
}
|
|
1713
1734
|
A[b >> 2] = 0;
|
|
1714
1735
|
return b - d;
|
|
1715
|
-
},
|
|
1736
|
+
}, qd = a => {
|
|
1716
1737
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
1717
1738
|
var d = a.charCodeAt(c);
|
|
1718
1739
|
55296 <= d && 57343 >= d && ++c;
|
|
1719
1740
|
b += 4;
|
|
1720
1741
|
}
|
|
1721
1742
|
return b;
|
|
1722
|
-
},
|
|
1723
|
-
function
|
|
1724
|
-
var b =
|
|
1743
|
+
}, rd = {};
|
|
1744
|
+
function sd(a) {
|
|
1745
|
+
var b = rd[a];
|
|
1725
1746
|
return void 0 === b ? N(a) : b;
|
|
1726
1747
|
}
|
|
1727
|
-
var
|
|
1728
|
-
function
|
|
1729
|
-
var b =
|
|
1730
|
-
|
|
1748
|
+
var td = [];
|
|
1749
|
+
function ud(a) {
|
|
1750
|
+
var b = td.length;
|
|
1751
|
+
td.push(a);
|
|
1731
1752
|
return b;
|
|
1732
1753
|
}
|
|
1733
|
-
function
|
|
1754
|
+
function vd(a, b) {
|
|
1734
1755
|
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
1735
|
-
c[d] =
|
|
1756
|
+
c[d] = uc(B[b + 4 * d >> 2], "parameter " + d);
|
|
1736
1757
|
}
|
|
1737
1758
|
return c;
|
|
1738
1759
|
}
|
|
1739
|
-
var
|
|
1740
|
-
function
|
|
1760
|
+
var wd = [], xd = [];
|
|
1761
|
+
function yd(a) {
|
|
1741
1762
|
var b = a.getExtension("ANGLE_instanced_arrays");
|
|
1742
1763
|
b && (a.vertexAttribDivisor = function(c, d) {
|
|
1743
1764
|
b.vertexAttribDivisorANGLE(c, d);
|
|
@@ -1747,7 +1768,7 @@ function td(a) {
|
|
|
1747
1768
|
b.drawElementsInstancedANGLE(c, d, e, f, g);
|
|
1748
1769
|
});
|
|
1749
1770
|
}
|
|
1750
|
-
function
|
|
1771
|
+
function zd(a) {
|
|
1751
1772
|
var b = a.getExtension("OES_vertex_array_object");
|
|
1752
1773
|
b && (a.createVertexArray = function() {
|
|
1753
1774
|
return b.createVertexArrayOES();
|
|
@@ -1759,24 +1780,24 @@ function ud(a) {
|
|
|
1759
1780
|
return b.isVertexArrayOES(c);
|
|
1760
1781
|
});
|
|
1761
1782
|
}
|
|
1762
|
-
function
|
|
1783
|
+
function Ad(a) {
|
|
1763
1784
|
var b = a.getExtension("WEBGL_draw_buffers");
|
|
1764
1785
|
b && (a.drawBuffers = function(c, d) {
|
|
1765
1786
|
b.drawBuffersWEBGL(c, d);
|
|
1766
1787
|
});
|
|
1767
1788
|
}
|
|
1768
|
-
var
|
|
1789
|
+
var Bd = 1, Cd = [], Dd = [], Ed = [], Fd = [], Gd = [], Hd = [], Id = [], ia = [], Jd = [], Kd = [], Ld = {}, Md = {}, Nd = 4;
|
|
1769
1790
|
function S(a) {
|
|
1770
|
-
|
|
1791
|
+
Od || (Od = a);
|
|
1771
1792
|
}
|
|
1772
1793
|
function ha(a) {
|
|
1773
|
-
for (var b =
|
|
1794
|
+
for (var b = Bd++, c = a.length; c < b; c++) {
|
|
1774
1795
|
a[c] = null;
|
|
1775
1796
|
}
|
|
1776
1797
|
return b;
|
|
1777
1798
|
}
|
|
1778
1799
|
function la(a) {
|
|
1779
|
-
T =
|
|
1800
|
+
T = ia[a];
|
|
1780
1801
|
m.Dc = U = T && T.Ua;
|
|
1781
1802
|
return !(a && !U);
|
|
1782
1803
|
}
|
|
@@ -1785,9 +1806,9 @@ function ka(a) {
|
|
|
1785
1806
|
if (!a.$b) {
|
|
1786
1807
|
a.$b = !0;
|
|
1787
1808
|
var b = a.Ua;
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1809
|
+
yd(b);
|
|
1810
|
+
zd(b);
|
|
1811
|
+
Ad(b);
|
|
1791
1812
|
b.Za = b.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
|
|
1792
1813
|
b.hb = b.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
|
|
1793
1814
|
2 <= a.version && (b.$a = b.getExtension("EXT_disjoint_timer_query_webgl2"));
|
|
@@ -1800,35 +1821,35 @@ function ka(a) {
|
|
|
1800
1821
|
});
|
|
1801
1822
|
}
|
|
1802
1823
|
}
|
|
1803
|
-
var
|
|
1804
|
-
function
|
|
1805
|
-
U.bindFramebuffer(a,
|
|
1824
|
+
var Od, T;
|
|
1825
|
+
function Pd(a, b) {
|
|
1826
|
+
U.bindFramebuffer(a, Ed[b]);
|
|
1806
1827
|
}
|
|
1807
|
-
function
|
|
1808
|
-
U.bindVertexArray(
|
|
1828
|
+
function Qd(a) {
|
|
1829
|
+
U.bindVertexArray(Id[a]);
|
|
1809
1830
|
}
|
|
1810
|
-
function
|
|
1831
|
+
function Rd(a, b) {
|
|
1811
1832
|
for (var c = 0; c < a; c++) {
|
|
1812
1833
|
var d = A[b + 4 * c >> 2];
|
|
1813
|
-
U.deleteVertexArray(
|
|
1814
|
-
|
|
1834
|
+
U.deleteVertexArray(Id[d]);
|
|
1835
|
+
Id[d] = null;
|
|
1815
1836
|
}
|
|
1816
1837
|
}
|
|
1817
|
-
var
|
|
1818
|
-
function
|
|
1838
|
+
var Sd = [];
|
|
1839
|
+
function Td(a, b, c, d) {
|
|
1819
1840
|
U.drawElements(a, b, c, d);
|
|
1820
1841
|
}
|
|
1821
|
-
function
|
|
1842
|
+
function Ud(a, b, c, d) {
|
|
1822
1843
|
for (var e = 0; e < a; e++) {
|
|
1823
1844
|
var f = U[c](), g = f && ha(d);
|
|
1824
1845
|
f ? (f.name = g, d[g] = f) : S(1282);
|
|
1825
1846
|
A[b + 4 * e >> 2] = g;
|
|
1826
1847
|
}
|
|
1827
1848
|
}
|
|
1828
|
-
function
|
|
1829
|
-
|
|
1849
|
+
function Vd(a, b) {
|
|
1850
|
+
Ud(a, b, "createVertexArray", Id);
|
|
1830
1851
|
}
|
|
1831
|
-
function
|
|
1852
|
+
function Wd(a, b) {
|
|
1832
1853
|
if (b) {
|
|
1833
1854
|
var c = void 0;
|
|
1834
1855
|
switch(a) {
|
|
@@ -1910,14 +1931,14 @@ function Rd(a, b) {
|
|
|
1910
1931
|
c = d.name | 0;
|
|
1911
1932
|
} catch (e) {
|
|
1912
1933
|
S(1280);
|
|
1913
|
-
|
|
1934
|
+
ua("GL_INVALID_ENUM in glGet0v: Unknown object returned from WebGL getParameter(" + a + ")! (error: " + e + ")");
|
|
1914
1935
|
return;
|
|
1915
1936
|
}
|
|
1916
1937
|
}
|
|
1917
1938
|
break;
|
|
1918
1939
|
default:
|
|
1919
1940
|
S(1280);
|
|
1920
|
-
|
|
1941
|
+
ua("GL_INVALID_ENUM in glGet0v: Native code calling glGet0v(" + a + ") and it returns " + d + " of type " + typeof d + "!");
|
|
1921
1942
|
return;
|
|
1922
1943
|
}
|
|
1923
1944
|
}
|
|
@@ -1926,24 +1947,24 @@ function Rd(a, b) {
|
|
|
1926
1947
|
S(1281);
|
|
1927
1948
|
}
|
|
1928
1949
|
}
|
|
1929
|
-
function
|
|
1930
|
-
|
|
1950
|
+
function Xd(a, b) {
|
|
1951
|
+
Wd(a, b);
|
|
1931
1952
|
}
|
|
1932
|
-
var
|
|
1933
|
-
var b =
|
|
1934
|
-
c &&
|
|
1953
|
+
var Zd = a => {
|
|
1954
|
+
var b = gb(a) + 1, c = Yd(b);
|
|
1955
|
+
c && hb(a, w, c, b);
|
|
1935
1956
|
return c;
|
|
1936
1957
|
};
|
|
1937
|
-
function
|
|
1958
|
+
function $d(a) {
|
|
1938
1959
|
return "]" == a.slice(-1) && a.lastIndexOf("[");
|
|
1939
1960
|
}
|
|
1940
|
-
function
|
|
1961
|
+
function ae(a) {
|
|
1941
1962
|
a -= 5120;
|
|
1942
|
-
return 0 == a ? t : 1 == a ? w : 2 == a ?
|
|
1963
|
+
return 0 == a ? t : 1 == a ? w : 2 == a ? za : 4 == a ? A : 6 == a ? D : 5 == a || 28922 == a || 28520 == a || 30779 == a || 30782 == a ? B : Aa;
|
|
1943
1964
|
}
|
|
1944
|
-
function
|
|
1945
|
-
a =
|
|
1946
|
-
var f = 31 - Math.clz32(a.BYTES_PER_ELEMENT), g =
|
|
1965
|
+
function be(a, b, c, d, e) {
|
|
1966
|
+
a = ae(a);
|
|
1967
|
+
var f = 31 - Math.clz32(a.BYTES_PER_ELEMENT), g = Nd;
|
|
1947
1968
|
return a.subarray(e >> f, e + d * (c * ({5:3, 6:4, 8:2, 29502:3, 29504:4, 26917:2, 26918:2, 29846:3, 29847:4}[b - 6402] || 1) * (1 << f) + g - 1 & -g) >> f);
|
|
1948
1969
|
}
|
|
1949
1970
|
function V(a) {
|
|
@@ -1955,20 +1976,20 @@ function V(a) {
|
|
|
1955
1976
|
}
|
|
1956
1977
|
S(1282);
|
|
1957
1978
|
}
|
|
1958
|
-
var
|
|
1959
|
-
if (!
|
|
1960
|
-
var a = {USER:"web_user", LOGNAME:"web_user", PATH:"/", PWD:"/", HOME:"/home/web_user", LANG:("object" == typeof navigator && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _:"./this.program"}, b;
|
|
1961
|
-
for (b in
|
|
1962
|
-
void 0 ===
|
|
1979
|
+
var ce = [], de = [], ee = {}, ge = () => {
|
|
1980
|
+
if (!fe) {
|
|
1981
|
+
var a = {USER:"web_user", LOGNAME:"web_user", PATH:"/", PWD:"/", HOME:"/home/web_user", LANG:("object" == typeof navigator && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _:na || "./this.program"}, b;
|
|
1982
|
+
for (b in ee) {
|
|
1983
|
+
void 0 === ee[b] ? delete a[b] : a[b] = ee[b];
|
|
1963
1984
|
}
|
|
1964
1985
|
var c = [];
|
|
1965
1986
|
for (b in a) {
|
|
1966
1987
|
c.push(`${b}=${a[b]}`);
|
|
1967
1988
|
}
|
|
1968
|
-
|
|
1989
|
+
fe = c;
|
|
1969
1990
|
}
|
|
1970
|
-
return
|
|
1971
|
-
},
|
|
1991
|
+
return fe;
|
|
1992
|
+
}, fe, he = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), ie = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], je = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ke = (a, b, c, d) => {
|
|
1972
1993
|
function e(l, r, x) {
|
|
1973
1994
|
for (l = "number" == typeof l ? l.toString() : l || ""; l.length < r;) {
|
|
1974
1995
|
l = x[0] + l;
|
|
@@ -2004,10 +2025,10 @@ var Yd = [], Zd = [], $d = {}, be = () => {
|
|
|
2004
2025
|
return new Date(l.getFullYear() - 1, 11, 30);
|
|
2005
2026
|
}
|
|
2006
2027
|
}
|
|
2007
|
-
function
|
|
2028
|
+
function q(l) {
|
|
2008
2029
|
var r = l.aa;
|
|
2009
2030
|
for (l = new Date((new Date(l.ba + 1900, 0, 1)).getTime()); 0 < r;) {
|
|
2010
|
-
var x = l.getMonth(), z = (
|
|
2031
|
+
var x = l.getMonth(), z = (he(l.getFullYear()) ? ie : je)[x];
|
|
2011
2032
|
if (r > z - l.getDate()) {
|
|
2012
2033
|
r -= z - l.getDate() + 1, l.setDate(1), 11 > x ? l.setMonth(x + 1) : (l.setMonth(0), l.setFullYear(l.getFullYear() + 1));
|
|
2013
2034
|
} else {
|
|
@@ -2021,30 +2042,30 @@ var Yd = [], Zd = [], $d = {}, be = () => {
|
|
|
2021
2042
|
return 0 >= g(r, l) ? 0 >= g(x, l) ? l.getFullYear() + 1 : l.getFullYear() : l.getFullYear() - 1;
|
|
2022
2043
|
}
|
|
2023
2044
|
var n = A[d + 40 >> 2];
|
|
2024
|
-
d = {tc:A[d >> 2], sc:A[d + 4 >> 2], Ha:A[d + 8 >> 2], Sa:A[d + 12 >> 2], Ia:A[d + 16 >> 2], ba:A[d + 20 >> 2], R:A[d + 24 >> 2], aa:A[d + 28 >> 2], Jc:A[d + 32 >> 2], rc:A[d + 36 >> 2], uc:n ? n ?
|
|
2025
|
-
c = c ?
|
|
2045
|
+
d = {tc:A[d >> 2], sc:A[d + 4 >> 2], Ha:A[d + 8 >> 2], Sa:A[d + 12 >> 2], Ia:A[d + 16 >> 2], ba:A[d + 20 >> 2], R:A[d + 24 >> 2], aa:A[d + 28 >> 2], Jc:A[d + 32 >> 2], rc:A[d + 36 >> 2], uc:n ? n ? eb(w, n) : "" : ""};
|
|
2046
|
+
c = c ? eb(w, c) : "";
|
|
2026
2047
|
n = {"%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",};
|
|
2027
2048
|
for (var u in n) {
|
|
2028
2049
|
c = c.replace(new RegExp(u, "g"), n[u]);
|
|
2029
2050
|
}
|
|
2030
2051
|
var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), y = "January February March April May June July August September October November December".split(" ");
|
|
2031
|
-
n = {"%a":l => v[l.R].substring(0, 3), "%A":l => v[l.R], "%b":l => y[l.Ia].substring(0, 3), "%B":l => y[l.Ia], "%C":l => f((l.ba + 1900) / 100 | 0, 2), "%d":l => f(l.Sa, 2), "%e":l => e(l.Sa, 2, " "), "%g":l =>
|
|
2052
|
+
n = {"%a":l => v[l.R].substring(0, 3), "%A":l => v[l.R], "%b":l => y[l.Ia].substring(0, 3), "%B":l => y[l.Ia], "%C":l => f((l.ba + 1900) / 100 | 0, 2), "%d":l => f(l.Sa, 2), "%e":l => e(l.Sa, 2, " "), "%g":l => q(l).toString().substring(2), "%G":l => q(l), "%H":l => f(l.Ha, 2), "%I":l => {
|
|
2032
2053
|
l = l.Ha;
|
|
2033
2054
|
0 == l ? l = 12 : 12 < l && (l -= 12);
|
|
2034
2055
|
return f(l, 2);
|
|
2035
2056
|
}, "%j":l => {
|
|
2036
|
-
for (var r = 0, x = 0; x <= l.Ia - 1; r += (
|
|
2057
|
+
for (var r = 0, x = 0; x <= l.Ia - 1; r += (he(l.ba + 1900) ? ie : je)[x++]) {
|
|
2037
2058
|
}
|
|
2038
2059
|
return f(l.Sa + r, 3);
|
|
2039
2060
|
}, "%m":l => f(l.Ia + 1, 2), "%M":l => f(l.sc, 2), "%n":() => "\n", "%p":l => 0 <= l.Ha && 12 > l.Ha ? "AM" : "PM", "%S":l => f(l.tc, 2), "%t":() => "\t", "%u":l => l.R || 7, "%U":l => f(Math.floor((l.aa + 7 - l.R) / 7), 2), "%V":l => {
|
|
2040
2061
|
var r = Math.floor((l.aa + 7 - (l.R + 6) % 7) / 7);
|
|
2041
2062
|
2 >= (l.R + 371 - l.aa - 2) % 7 && r++;
|
|
2042
2063
|
if (r) {
|
|
2043
|
-
53 == r && (x = (l.R + 371 - l.aa) % 7, 4 == x || 3 == x &&
|
|
2064
|
+
53 == r && (x = (l.R + 371 - l.aa) % 7, 4 == x || 3 == x && he(l.ba) || (r = 1));
|
|
2044
2065
|
} else {
|
|
2045
2066
|
r = 52;
|
|
2046
2067
|
var x = (l.R + 7 - l.aa - 1) % 7;
|
|
2047
|
-
(4 == x || 5 == x &&
|
|
2068
|
+
(4 == x || 5 == x && he(l.ba % 400 - 1)) && r++;
|
|
2048
2069
|
}
|
|
2049
2070
|
return f(r, 2);
|
|
2050
2071
|
}, "%w":l => l.R, "%W":l => f(Math.floor((l.aa + 7 - (l.R + 6) % 7) / 7), 2), "%y":l => (l.ba + 1900).toString().substring(2), "%Y":l => l.ba + 1900, "%z":l => {
|
|
@@ -2058,26 +2079,26 @@ var Yd = [], Zd = [], $d = {}, be = () => {
|
|
|
2058
2079
|
c.includes(u) && (c = c.replace(new RegExp(u, "g"), n[u](d)));
|
|
2059
2080
|
}
|
|
2060
2081
|
c = c.replace(/\0\0/g, "%");
|
|
2061
|
-
u =
|
|
2082
|
+
u = ib(c, !1);
|
|
2062
2083
|
if (u.length > b) {
|
|
2063
2084
|
return 0;
|
|
2064
2085
|
}
|
|
2065
2086
|
t.set(u, a);
|
|
2066
2087
|
return u.length - 1;
|
|
2067
2088
|
};
|
|
2068
|
-
function
|
|
2089
|
+
function Ib(a, b, c, d) {
|
|
2069
2090
|
a || (a = this);
|
|
2070
2091
|
this.parent = a;
|
|
2071
2092
|
this.T = a.T;
|
|
2072
2093
|
this.Ca = null;
|
|
2073
|
-
this.id =
|
|
2094
|
+
this.id = zb++;
|
|
2074
2095
|
this.name = b;
|
|
2075
2096
|
this.mode = c;
|
|
2076
2097
|
this.j = {};
|
|
2077
2098
|
this.m = {};
|
|
2078
2099
|
this.la = d;
|
|
2079
2100
|
}
|
|
2080
|
-
Object.defineProperties(
|
|
2101
|
+
Object.defineProperties(Ib.prototype, {read:{get:function() {
|
|
2081
2102
|
return 365 === (this.mode & 365);
|
|
2082
2103
|
}, set:function(a) {
|
|
2083
2104
|
a ? this.mode |= 365 : this.mode &= -366;
|
|
@@ -2086,44 +2107,44 @@ Object.defineProperties(Cb.prototype, {read:{get:function() {
|
|
|
2086
2107
|
}, set:function(a) {
|
|
2087
2108
|
a ? this.mode |= 146 : this.mode &= -147;
|
|
2088
2109
|
}}});
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2110
|
+
Wb();
|
|
2111
|
+
Ab = Array(4096);
|
|
2112
|
+
Pb(I, "/");
|
|
2113
|
+
Qb("/tmp", 16895, 0);
|
|
2114
|
+
Qb("/home", 16895, 0);
|
|
2115
|
+
Qb("/home/web_user", 16895, 0);
|
|
2095
2116
|
(() => {
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2117
|
+
Qb("/dev", 16895, 0);
|
|
2118
|
+
lb(259, {read:() => 0, write:(d, e, f, g) => g,});
|
|
2119
|
+
Rb("/dev/null", 259);
|
|
2120
|
+
kb(1280, nb);
|
|
2121
|
+
kb(1536, ob);
|
|
2122
|
+
Rb("/dev/tty", 1280);
|
|
2123
|
+
Rb("/dev/tty1", 1536);
|
|
2103
2124
|
var a = new Uint8Array(1024), b = 0, c = () => {
|
|
2104
|
-
0 === b && (b =
|
|
2125
|
+
0 === b && (b = bb(a).byteLength);
|
|
2105
2126
|
return a[--b];
|
|
2106
2127
|
};
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2128
|
+
Zb("random", c);
|
|
2129
|
+
Zb("urandom", c);
|
|
2130
|
+
Qb("/dev/shm", 16895, 0);
|
|
2131
|
+
Qb("/dev/shm/tmp", 16895, 0);
|
|
2111
2132
|
})();
|
|
2112
2133
|
(() => {
|
|
2113
|
-
|
|
2114
|
-
var a =
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
var b =
|
|
2134
|
+
Qb("/proc", 16895, 0);
|
|
2135
|
+
var a = Qb("/proc/self", 16895, 0);
|
|
2136
|
+
Qb("/proc/self/fd", 16895, 0);
|
|
2137
|
+
Pb({T:() => {
|
|
2138
|
+
var b = rb(a, "fd", 16895, 73);
|
|
2118
2139
|
b.j = {ka:(c, d) => {
|
|
2119
|
-
var e =
|
|
2140
|
+
var e = Mb(+d);
|
|
2120
2141
|
c = {parent:null, T:{jb:"fake"}, j:{ma:() => e.path},};
|
|
2121
2142
|
return c.parent = c;
|
|
2122
2143
|
}};
|
|
2123
2144
|
return b;
|
|
2124
2145
|
}}, "/proc/self/fd");
|
|
2125
2146
|
})();
|
|
2126
|
-
Object.assign(
|
|
2147
|
+
Object.assign(ec.prototype, {get(a) {
|
|
2127
2148
|
return this.L[a];
|
|
2128
2149
|
}, has(a) {
|
|
2129
2150
|
return void 0 !== this.L[a];
|
|
@@ -2135,7 +2156,7 @@ Object.assign($b.prototype, {get(a) {
|
|
|
2135
2156
|
this.L[a] = void 0;
|
|
2136
2157
|
this.cb.push(a);
|
|
2137
2158
|
}});
|
|
2138
|
-
|
|
2159
|
+
fc = m.BindingError = class extends Error {
|
|
2139
2160
|
constructor(a) {
|
|
2140
2161
|
super(a);
|
|
2141
2162
|
this.name = "BindingError";
|
|
@@ -2149,34 +2170,34 @@ m.count_emval_handles = function() {
|
|
|
2149
2170
|
}
|
|
2150
2171
|
return a;
|
|
2151
2172
|
};
|
|
2152
|
-
|
|
2153
|
-
for (var
|
|
2154
|
-
|
|
2173
|
+
jc = m.PureVirtualError = ic("PureVirtualError");
|
|
2174
|
+
for (var le = Array(256), me = 0; 256 > me; ++me) {
|
|
2175
|
+
le[me] = String.fromCharCode(me);
|
|
2155
2176
|
}
|
|
2156
|
-
|
|
2177
|
+
kc = le;
|
|
2157
2178
|
m.getInheritedInstanceCount = function() {
|
|
2158
|
-
return Object.keys(
|
|
2179
|
+
return Object.keys(oc).length;
|
|
2159
2180
|
};
|
|
2160
2181
|
m.getLiveInheritedInstances = function() {
|
|
2161
2182
|
var a = [], b;
|
|
2162
|
-
for (b in
|
|
2163
|
-
|
|
2183
|
+
for (b in oc) {
|
|
2184
|
+
oc.hasOwnProperty(b) && a.push(oc[b]);
|
|
2164
2185
|
}
|
|
2165
2186
|
return a;
|
|
2166
2187
|
};
|
|
2167
|
-
m.flushPendingDeletes =
|
|
2188
|
+
m.flushPendingDeletes = mc;
|
|
2168
2189
|
m.setDelayFunction = function(a) {
|
|
2169
|
-
|
|
2170
|
-
|
|
2190
|
+
nc = a;
|
|
2191
|
+
lc.length && nc && nc(mc);
|
|
2171
2192
|
};
|
|
2172
|
-
|
|
2193
|
+
Bc = m.InternalError = class extends Error {
|
|
2173
2194
|
constructor(a) {
|
|
2174
2195
|
super(a);
|
|
2175
2196
|
this.name = "InternalError";
|
|
2176
2197
|
}
|
|
2177
2198
|
};
|
|
2178
|
-
|
|
2179
|
-
if (!(this instanceof
|
|
2199
|
+
Oc.prototype.isAliasOf = function(a) {
|
|
2200
|
+
if (!(this instanceof Oc && a instanceof Oc)) {
|
|
2180
2201
|
return !1;
|
|
2181
2202
|
}
|
|
2182
2203
|
var b = this.g.u.i, c = this.g.o, d = a.g.u.i;
|
|
@@ -2188,58 +2209,58 @@ Jc.prototype.isAliasOf = function(a) {
|
|
|
2188
2209
|
}
|
|
2189
2210
|
return b === d && c === a;
|
|
2190
2211
|
};
|
|
2191
|
-
|
|
2192
|
-
this.g.o ||
|
|
2212
|
+
Oc.prototype.clone = function() {
|
|
2213
|
+
this.g.o || Nc(this);
|
|
2193
2214
|
if (this.g.ia) {
|
|
2194
2215
|
return this.g.count.value += 1, this;
|
|
2195
2216
|
}
|
|
2196
|
-
var a =
|
|
2217
|
+
var a = Ec, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
|
|
2197
2218
|
a = a(c.call(b, d, {g:{value:{count:e.count, ga:e.ga, ia:e.ia, o:e.o, u:e.u, G:e.G, K:e.K,},}}));
|
|
2198
2219
|
a.g.count.value += 1;
|
|
2199
2220
|
a.g.ga = !1;
|
|
2200
2221
|
return a;
|
|
2201
2222
|
};
|
|
2202
|
-
|
|
2203
|
-
this.g.o ||
|
|
2223
|
+
Oc.prototype["delete"] = function() {
|
|
2224
|
+
this.g.o || Nc(this);
|
|
2204
2225
|
this.g.ga && !this.g.ia && K("Object already scheduled for deletion");
|
|
2205
|
-
|
|
2206
|
-
|
|
2226
|
+
vc(this);
|
|
2227
|
+
xc(this.g);
|
|
2207
2228
|
this.g.ia || (this.g.G = void 0, this.g.o = void 0);
|
|
2208
2229
|
};
|
|
2209
|
-
|
|
2230
|
+
Oc.prototype.isDeleted = function() {
|
|
2210
2231
|
return !this.g.o;
|
|
2211
2232
|
};
|
|
2212
|
-
|
|
2213
|
-
this.g.o ||
|
|
2233
|
+
Oc.prototype.deleteLater = function() {
|
|
2234
|
+
this.g.o || Nc(this);
|
|
2214
2235
|
this.g.ga && !this.g.ia && K("Object already scheduled for deletion");
|
|
2215
|
-
|
|
2216
|
-
1 ===
|
|
2236
|
+
lc.push(this);
|
|
2237
|
+
1 === lc.length && nc && nc(mc);
|
|
2217
2238
|
this.g.ga = !0;
|
|
2218
2239
|
return this;
|
|
2219
2240
|
};
|
|
2220
|
-
|
|
2241
|
+
Xc.prototype.Tb = function(a) {
|
|
2221
2242
|
this.ob && (a = this.ob(a));
|
|
2222
2243
|
return a;
|
|
2223
2244
|
};
|
|
2224
|
-
|
|
2245
|
+
Xc.prototype.Ya = function(a) {
|
|
2225
2246
|
this.V && this.V(a);
|
|
2226
2247
|
};
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2248
|
+
Xc.prototype.argPackAdvance = 8;
|
|
2249
|
+
Xc.prototype.readValueFromPointer = Hc;
|
|
2250
|
+
Xc.prototype.deleteObject = function(a) {
|
|
2230
2251
|
if (null !== a) {
|
|
2231
2252
|
a["delete"]();
|
|
2232
2253
|
}
|
|
2233
2254
|
};
|
|
2234
|
-
|
|
2255
|
+
Xc.prototype.fromWireType = function(a) {
|
|
2235
2256
|
function b() {
|
|
2236
|
-
return this.xa ?
|
|
2257
|
+
return this.xa ? Dc(this.i.N, {u:this.kc, o:c, K:this, G:a,}) : Dc(this.i.N, {u:this, o:a,});
|
|
2237
2258
|
}
|
|
2238
2259
|
var c = this.Tb(a);
|
|
2239
2260
|
if (!c) {
|
|
2240
2261
|
return this.Ya(a), null;
|
|
2241
2262
|
}
|
|
2242
|
-
var d =
|
|
2263
|
+
var d = Ac(this.i, c);
|
|
2243
2264
|
if (void 0 !== d) {
|
|
2244
2265
|
if (0 === d.g.count.value) {
|
|
2245
2266
|
return d.g.o = c, d.g.G = a, d.clone();
|
|
@@ -2249,43 +2270,43 @@ Sc.prototype.fromWireType = function(a) {
|
|
|
2249
2270
|
return d;
|
|
2250
2271
|
}
|
|
2251
2272
|
d = this.i.Sb(c);
|
|
2252
|
-
d =
|
|
2273
|
+
d = zc[d];
|
|
2253
2274
|
if (!d) {
|
|
2254
2275
|
return b.call(this);
|
|
2255
2276
|
}
|
|
2256
2277
|
d = this.wa ? d.Ib : d.pointerType;
|
|
2257
|
-
var e =
|
|
2258
|
-
return null === e ? b.call(this) : this.xa ?
|
|
2278
|
+
var e = yc(c, this.i, d.i);
|
|
2279
|
+
return null === e ? b.call(this) : this.xa ? Dc(d.i.N, {u:d, o:e, K:this, G:a,}) : Dc(d.i.N, {u:d, o:e,});
|
|
2259
2280
|
};
|
|
2260
|
-
|
|
2281
|
+
ad = m.UnboundTypeError = ic("UnboundTypeError");
|
|
2261
2282
|
for (var U, W = 0; 32 > W; ++W) {
|
|
2262
|
-
|
|
2283
|
+
Sd.push(Array(W));
|
|
2263
2284
|
}
|
|
2264
|
-
var
|
|
2285
|
+
var ne = new Float32Array(288);
|
|
2265
2286
|
for (W = 0; 288 > W; ++W) {
|
|
2266
|
-
|
|
2287
|
+
ce[W] = ne.subarray(0, W + 1);
|
|
2267
2288
|
}
|
|
2268
|
-
var
|
|
2289
|
+
var oe = new Int32Array(288);
|
|
2269
2290
|
for (W = 0; 288 > W; ++W) {
|
|
2270
|
-
|
|
2291
|
+
de[W] = oe.subarray(0, W + 1);
|
|
2271
2292
|
}
|
|
2272
|
-
var
|
|
2273
|
-
|
|
2293
|
+
var Fe = {__syscall_fcntl64:function(a, b, c) {
|
|
2294
|
+
ac = c;
|
|
2274
2295
|
try {
|
|
2275
|
-
var d =
|
|
2296
|
+
var d = Mb(a);
|
|
2276
2297
|
switch(b) {
|
|
2277
2298
|
case 0:
|
|
2278
|
-
var e =
|
|
2279
|
-
return 0 > e ? -28 :
|
|
2299
|
+
var e = bc();
|
|
2300
|
+
return 0 > e ? -28 : Ob(d, e).X;
|
|
2280
2301
|
case 1:
|
|
2281
2302
|
case 2:
|
|
2282
2303
|
return 0;
|
|
2283
2304
|
case 3:
|
|
2284
2305
|
return d.flags;
|
|
2285
2306
|
case 4:
|
|
2286
|
-
return e =
|
|
2307
|
+
return e = bc(), d.flags |= e, 0;
|
|
2287
2308
|
case 5:
|
|
2288
|
-
return e =
|
|
2309
|
+
return e = bc(), za[e + 0 >> 1] = 2, 0;
|
|
2289
2310
|
case 6:
|
|
2290
2311
|
case 7:
|
|
2291
2312
|
return 0;
|
|
@@ -2293,12 +2314,12 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2293
2314
|
case 8:
|
|
2294
2315
|
return -28;
|
|
2295
2316
|
case 9:
|
|
2296
|
-
return A[
|
|
2317
|
+
return A[pe() >> 2] = 28, -1;
|
|
2297
2318
|
default:
|
|
2298
2319
|
return -28;
|
|
2299
2320
|
}
|
|
2300
2321
|
} catch (f) {
|
|
2301
|
-
if ("undefined" == typeof
|
|
2322
|
+
if ("undefined" == typeof $b || "ErrnoError" !== f.name) {
|
|
2302
2323
|
throw f;
|
|
2303
2324
|
}
|
|
2304
2325
|
return -f.W;
|
|
@@ -2306,9 +2327,9 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2306
2327
|
}, __syscall_fstat64:function(a, b) {
|
|
2307
2328
|
try {
|
|
2308
2329
|
a: {
|
|
2309
|
-
var c =
|
|
2330
|
+
var c = Mb(a).path;
|
|
2310
2331
|
try {
|
|
2311
|
-
var d =
|
|
2332
|
+
var d = Db(c, {Ma:!0}).node;
|
|
2312
2333
|
if (!d) {
|
|
2313
2334
|
throw new G(44);
|
|
2314
2335
|
}
|
|
@@ -2317,7 +2338,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2317
2338
|
}
|
|
2318
2339
|
var e = d.j.M(d);
|
|
2319
2340
|
} catch (n) {
|
|
2320
|
-
if (n && n.node &&
|
|
2341
|
+
if (n && n.node && Ya(c) !== Ya(Eb(n.node))) {
|
|
2321
2342
|
var f = -54;
|
|
2322
2343
|
break a;
|
|
2323
2344
|
}
|
|
@@ -2334,7 +2355,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2334
2355
|
A[b + 28 >> 2] = F[1];
|
|
2335
2356
|
A[b + 32 >> 2] = 4096;
|
|
2336
2357
|
A[b + 36 >> 2] = e.Hb;
|
|
2337
|
-
var g = e.Fb.getTime(), k = e.hc.getTime(),
|
|
2358
|
+
var g = e.Fb.getTime(), k = e.hc.getTime(), q = e.Jb.getTime();
|
|
2338
2359
|
F = [Math.floor(g / 1000) >>> 0, (E = Math.floor(g / 1000), 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2339
2360
|
A[b + 40 >> 2] = F[0];
|
|
2340
2361
|
A[b + 44 >> 2] = F[1];
|
|
@@ -2343,10 +2364,10 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2343
2364
|
A[b + 56 >> 2] = F[0];
|
|
2344
2365
|
A[b + 60 >> 2] = F[1];
|
|
2345
2366
|
B[b + 64 >> 2] = k % 1000 * 1000;
|
|
2346
|
-
F = [Math.floor(
|
|
2367
|
+
F = [Math.floor(q / 1000) >>> 0, (E = Math.floor(q / 1000), 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2347
2368
|
A[b + 72 >> 2] = F[0];
|
|
2348
2369
|
A[b + 76 >> 2] = F[1];
|
|
2349
|
-
B[b + 80 >> 2] =
|
|
2370
|
+
B[b + 80 >> 2] = q % 1000 * 1000;
|
|
2350
2371
|
F = [e.fb >>> 0, (E = e.fb, 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2351
2372
|
A[b + 88 >> 2] = F[0];
|
|
2352
2373
|
A[b + 92 >> 2] = F[1];
|
|
@@ -2354,15 +2375,15 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2354
2375
|
}
|
|
2355
2376
|
return f;
|
|
2356
2377
|
} catch (n) {
|
|
2357
|
-
if ("undefined" == typeof
|
|
2378
|
+
if ("undefined" == typeof $b || "ErrnoError" !== n.name) {
|
|
2358
2379
|
throw n;
|
|
2359
2380
|
}
|
|
2360
2381
|
return -n.W;
|
|
2361
2382
|
}
|
|
2362
2383
|
}, __syscall_ioctl:function(a, b, c) {
|
|
2363
|
-
|
|
2384
|
+
ac = c;
|
|
2364
2385
|
try {
|
|
2365
|
-
var d =
|
|
2386
|
+
var d = Mb(a);
|
|
2366
2387
|
switch(b) {
|
|
2367
2388
|
case 21509:
|
|
2368
2389
|
return d.s ? 0 : -59;
|
|
@@ -2372,7 +2393,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2372
2393
|
}
|
|
2373
2394
|
if (d.s.U.bc) {
|
|
2374
2395
|
b = [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,];
|
|
2375
|
-
var e =
|
|
2396
|
+
var e = bc();
|
|
2376
2397
|
A[e >> 2] = 25856;
|
|
2377
2398
|
A[e + 4 >> 2] = 5;
|
|
2378
2399
|
A[e + 8 >> 2] = 191;
|
|
@@ -2393,7 +2414,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2393
2414
|
return -59;
|
|
2394
2415
|
}
|
|
2395
2416
|
if (d.s.U.cc) {
|
|
2396
|
-
for (e =
|
|
2417
|
+
for (e = bc(), b = [], f = 0; 32 > f; f++) {
|
|
2397
2418
|
b.push(t[e + f + 17 >> 0]);
|
|
2398
2419
|
}
|
|
2399
2420
|
}
|
|
@@ -2402,12 +2423,12 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2402
2423
|
if (!d.s) {
|
|
2403
2424
|
return -59;
|
|
2404
2425
|
}
|
|
2405
|
-
e =
|
|
2426
|
+
e = bc();
|
|
2406
2427
|
return A[e >> 2] = 0;
|
|
2407
2428
|
case 21520:
|
|
2408
2429
|
return d.s ? -28 : -59;
|
|
2409
2430
|
case 21531:
|
|
2410
|
-
e =
|
|
2431
|
+
e = bc();
|
|
2411
2432
|
if (!d.m.ac) {
|
|
2412
2433
|
throw new G(59);
|
|
2413
2434
|
}
|
|
@@ -2416,7 +2437,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2416
2437
|
if (!d.s) {
|
|
2417
2438
|
return -59;
|
|
2418
2439
|
}
|
|
2419
|
-
d.s.U.dc && (f = [24, 80], e =
|
|
2440
|
+
d.s.U.dc && (f = [24, 80], e = bc(), za[e >> 1] = f[0], za[e + 2 >> 1] = f[1]);
|
|
2420
2441
|
return 0;
|
|
2421
2442
|
case 21524:
|
|
2422
2443
|
return d.s ? 0 : -59;
|
|
@@ -2426,42 +2447,42 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2426
2447
|
return -28;
|
|
2427
2448
|
}
|
|
2428
2449
|
} catch (g) {
|
|
2429
|
-
if ("undefined" == typeof
|
|
2450
|
+
if ("undefined" == typeof $b || "ErrnoError" !== g.name) {
|
|
2430
2451
|
throw g;
|
|
2431
2452
|
}
|
|
2432
2453
|
return -g.W;
|
|
2433
2454
|
}
|
|
2434
2455
|
}, __syscall_openat:function(a, b, c, d) {
|
|
2435
|
-
|
|
2456
|
+
ac = d;
|
|
2436
2457
|
try {
|
|
2437
|
-
b = b ?
|
|
2458
|
+
b = b ? eb(w, b) : "";
|
|
2438
2459
|
var e = b;
|
|
2439
2460
|
if ("/" === e.charAt(0)) {
|
|
2440
2461
|
b = e;
|
|
2441
2462
|
} else {
|
|
2442
|
-
var f = -100 === a ? "/" :
|
|
2463
|
+
var f = -100 === a ? "/" : Mb(a).path;
|
|
2443
2464
|
if (0 == e.length) {
|
|
2444
2465
|
throw new G(44);
|
|
2445
2466
|
}
|
|
2446
|
-
b =
|
|
2467
|
+
b = Ya(f + "/" + e);
|
|
2447
2468
|
}
|
|
2448
|
-
var g = d ?
|
|
2449
|
-
return
|
|
2469
|
+
var g = d ? bc() : 0;
|
|
2470
|
+
return Ub(b, c, g).X;
|
|
2450
2471
|
} catch (k) {
|
|
2451
|
-
if ("undefined" == typeof
|
|
2472
|
+
if ("undefined" == typeof $b || "ErrnoError" !== k.name) {
|
|
2452
2473
|
throw k;
|
|
2453
2474
|
}
|
|
2454
2475
|
return -k.W;
|
|
2455
2476
|
}
|
|
2456
2477
|
}, _embind_create_inheriting_constructor:function(a, b, c) {
|
|
2457
2478
|
a = N(a);
|
|
2458
|
-
b =
|
|
2459
|
-
c =
|
|
2479
|
+
b = uc(b, "wrapper");
|
|
2480
|
+
c = gc(c);
|
|
2460
2481
|
var d = [].slice, e = b.i, f = e.N, g = e.A.N, k = e.A.constructor;
|
|
2461
|
-
a =
|
|
2482
|
+
a = dc(a, function() {
|
|
2462
2483
|
e.A.nb.forEach(function(n) {
|
|
2463
2484
|
if (this[n] === g[n]) {
|
|
2464
|
-
throw new
|
|
2485
|
+
throw new jc(`Pure virtual function ${n} must be implemented in JavaScript`);
|
|
2465
2486
|
}
|
|
2466
2487
|
}.bind(this));
|
|
2467
2488
|
Object.defineProperty(this, "__parent", {value:f});
|
|
@@ -2470,50 +2491,50 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2470
2491
|
f.__construct = function() {
|
|
2471
2492
|
this === f && K("Pass correct 'this' to __construct");
|
|
2472
2493
|
var n = k.implement.apply(void 0, [this].concat(d.call(arguments)));
|
|
2473
|
-
|
|
2494
|
+
vc(n);
|
|
2474
2495
|
var u = n.g;
|
|
2475
2496
|
n.notifyOnDestruction();
|
|
2476
2497
|
u.ia = !0;
|
|
2477
2498
|
Object.defineProperties(this, {g:{value:u}});
|
|
2478
|
-
|
|
2499
|
+
Ec(this);
|
|
2479
2500
|
n = u.o;
|
|
2480
|
-
n =
|
|
2481
|
-
|
|
2501
|
+
n = pc(e, n);
|
|
2502
|
+
oc.hasOwnProperty(n) ? K(`Tried to register registered instance: ${n}`) : oc[n] = this;
|
|
2482
2503
|
};
|
|
2483
2504
|
f.__destruct = function() {
|
|
2484
2505
|
this === f && K("Pass correct 'this' to __destruct");
|
|
2485
|
-
|
|
2506
|
+
vc(this);
|
|
2486
2507
|
var n = this.g.o;
|
|
2487
|
-
n =
|
|
2488
|
-
|
|
2508
|
+
n = pc(e, n);
|
|
2509
|
+
oc.hasOwnProperty(n) ? delete oc[n] : K(`Tried to unregister unregistered instance: ${n}`);
|
|
2489
2510
|
};
|
|
2490
2511
|
a.prototype = Object.create(f);
|
|
2491
|
-
for (var
|
|
2492
|
-
a.prototype[
|
|
2512
|
+
for (var q in c) {
|
|
2513
|
+
a.prototype[q] = c[q];
|
|
2493
2514
|
}
|
|
2494
|
-
return
|
|
2515
|
+
return hc(a);
|
|
2495
2516
|
}, _embind_finalize_value_object:function(a) {
|
|
2496
|
-
var b =
|
|
2497
|
-
delete
|
|
2517
|
+
var b = Fc[a];
|
|
2518
|
+
delete Fc[a];
|
|
2498
2519
|
var c = b.Qa, d = b.V, e = b.ab, f = e.map(g => g.Wb).concat(e.map(g => g.oc));
|
|
2499
2520
|
P([a], f, g => {
|
|
2500
2521
|
var k = {};
|
|
2501
|
-
e.forEach((
|
|
2502
|
-
var u = g[n], v =
|
|
2503
|
-
k[
|
|
2522
|
+
e.forEach((q, n) => {
|
|
2523
|
+
var u = g[n], v = q.Ub, y = q.Vb, l = g[n + e.length], r = q.nc, x = q.pc;
|
|
2524
|
+
k[q.Qb] = {read:z => u.fromWireType(v(y, z)), write:(z, H) => {
|
|
2504
2525
|
var C = [];
|
|
2505
2526
|
r(x, z, l.toWireType(C, H));
|
|
2506
|
-
|
|
2527
|
+
Gc(C);
|
|
2507
2528
|
}};
|
|
2508
2529
|
});
|
|
2509
|
-
return [{name:b.name, fromWireType:function(
|
|
2530
|
+
return [{name:b.name, fromWireType:function(q) {
|
|
2510
2531
|
var n = {}, u;
|
|
2511
2532
|
for (u in k) {
|
|
2512
|
-
n[u] = k[u].read(
|
|
2533
|
+
n[u] = k[u].read(q);
|
|
2513
2534
|
}
|
|
2514
|
-
d(
|
|
2535
|
+
d(q);
|
|
2515
2536
|
return n;
|
|
2516
|
-
}, toWireType:function(
|
|
2537
|
+
}, toWireType:function(q, n) {
|
|
2517
2538
|
for (var u in k) {
|
|
2518
2539
|
if (!(u in n)) {
|
|
2519
2540
|
throw new TypeError(`Missing field: "${u}"`);
|
|
@@ -2523,15 +2544,15 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2523
2544
|
for (u in k) {
|
|
2524
2545
|
k[u].write(v, n[u]);
|
|
2525
2546
|
}
|
|
2526
|
-
null !==
|
|
2547
|
+
null !== q && q.push(d, v);
|
|
2527
2548
|
return v;
|
|
2528
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2549
|
+
}, argPackAdvance:8, readValueFromPointer:Hc, J:d,}];
|
|
2529
2550
|
});
|
|
2530
2551
|
}, _embind_register_bigint:function() {
|
|
2531
2552
|
}, _embind_register_bool:function(a, b, c, d, e) {
|
|
2532
|
-
var f =
|
|
2553
|
+
var f = Lc(c);
|
|
2533
2554
|
b = N(b);
|
|
2534
|
-
|
|
2555
|
+
Kc(a, {name:b, fromWireType:function(g) {
|
|
2535
2556
|
return !!g;
|
|
2536
2557
|
}, toWireType:function(g, k) {
|
|
2537
2558
|
return k ? d : e;
|
|
@@ -2539,7 +2560,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2539
2560
|
if (1 === c) {
|
|
2540
2561
|
var k = t;
|
|
2541
2562
|
} else if (2 === c) {
|
|
2542
|
-
k =
|
|
2563
|
+
k = za;
|
|
2543
2564
|
} else if (4 === c) {
|
|
2544
2565
|
k = A;
|
|
2545
2566
|
} else {
|
|
@@ -2547,15 +2568,15 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2547
2568
|
}
|
|
2548
2569
|
return this.fromWireType(k[g >> f]);
|
|
2549
2570
|
}, J:null,});
|
|
2550
|
-
}, _embind_register_class:function(a, b, c, d, e, f, g, k,
|
|
2571
|
+
}, _embind_register_class:function(a, b, c, d, e, f, g, k, q, n, u, v, y) {
|
|
2551
2572
|
u = N(u);
|
|
2552
2573
|
f = R(e, f);
|
|
2553
2574
|
k && (k = R(g, k));
|
|
2554
|
-
n && (n = R(
|
|
2575
|
+
n && (n = R(q, n));
|
|
2555
2576
|
y = R(v, y);
|
|
2556
|
-
var l =
|
|
2557
|
-
|
|
2558
|
-
|
|
2577
|
+
var l = cc(u);
|
|
2578
|
+
Qc(l, function() {
|
|
2579
|
+
bd(`Cannot construct ${u} due to unbound types`, [d]);
|
|
2559
2580
|
});
|
|
2560
2581
|
P([a, b, c], d ? [d] : [], function(r) {
|
|
2561
2582
|
r = r[0];
|
|
@@ -2563,50 +2584,50 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2563
2584
|
var x = r.i;
|
|
2564
2585
|
var z = x.N;
|
|
2565
2586
|
} else {
|
|
2566
|
-
z =
|
|
2587
|
+
z = Oc.prototype;
|
|
2567
2588
|
}
|
|
2568
|
-
r =
|
|
2589
|
+
r = dc(l, function() {
|
|
2569
2590
|
if (Object.getPrototypeOf(this) !== H) {
|
|
2570
|
-
throw new
|
|
2591
|
+
throw new fc("Use 'new' to construct " + u);
|
|
2571
2592
|
}
|
|
2572
2593
|
if (void 0 === C.Z) {
|
|
2573
|
-
throw new
|
|
2594
|
+
throw new fc(u + " has no accessible constructor");
|
|
2574
2595
|
}
|
|
2575
2596
|
var O = C.Z[arguments.length];
|
|
2576
2597
|
if (void 0 === O) {
|
|
2577
|
-
throw new
|
|
2598
|
+
throw new fc(`Tried to invoke ctor of ${u} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(C.Z).toString()}) parameters instead!`);
|
|
2578
2599
|
}
|
|
2579
2600
|
return O.apply(this, arguments);
|
|
2580
2601
|
});
|
|
2581
2602
|
var H = Object.create(z, {constructor:{value:r},});
|
|
2582
2603
|
r.prototype = H;
|
|
2583
|
-
var C = new
|
|
2604
|
+
var C = new Rc(u, r, H, y, x, f, k, n);
|
|
2584
2605
|
C.A && (void 0 === C.A.pa && (C.A.pa = []), C.A.pa.push(C));
|
|
2585
|
-
x = new
|
|
2586
|
-
z = new
|
|
2587
|
-
var L = new
|
|
2588
|
-
|
|
2589
|
-
|
|
2606
|
+
x = new Xc(u, C, !0, !1);
|
|
2607
|
+
z = new Xc(u + "*", C, !1, !1);
|
|
2608
|
+
var L = new Xc(u + " const*", C, !1, !0);
|
|
2609
|
+
zc[a] = {pointerType:z, Ib:L};
|
|
2610
|
+
Yc(l, r);
|
|
2590
2611
|
return [x, z, L];
|
|
2591
2612
|
});
|
|
2592
2613
|
}, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
|
|
2593
|
-
var k =
|
|
2614
|
+
var k = dd(c, d);
|
|
2594
2615
|
b = N(b);
|
|
2595
2616
|
f = R(e, f);
|
|
2596
|
-
P([], [a], function(
|
|
2617
|
+
P([], [a], function(q) {
|
|
2597
2618
|
function n() {
|
|
2598
|
-
|
|
2619
|
+
bd(`Cannot call ${u} due to unbound types`, k);
|
|
2599
2620
|
}
|
|
2600
|
-
|
|
2601
|
-
var u = `${
|
|
2621
|
+
q = q[0];
|
|
2622
|
+
var u = `${q.name}.${b}`;
|
|
2602
2623
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2603
|
-
var v =
|
|
2604
|
-
void 0 === v[b] ? (n.ea = c - 1, v[b] = n) : (
|
|
2624
|
+
var v = q.i.constructor;
|
|
2625
|
+
void 0 === v[b] ? (n.ea = c - 1, v[b] = n) : (Pc(v, b, u), v[b].B[c - 1] = n);
|
|
2605
2626
|
P([], k, function(y) {
|
|
2606
|
-
y =
|
|
2627
|
+
y = cd(u, [y[0], null].concat(y.slice(1)), null, f, g);
|
|
2607
2628
|
void 0 === v[b].B ? (y.ea = c - 1, v[b] = y) : v[b].B[c - 1] = y;
|
|
2608
|
-
if (
|
|
2609
|
-
for (const l of
|
|
2629
|
+
if (q.i.pa) {
|
|
2630
|
+
for (const l of q.i.pa) {
|
|
2610
2631
|
l.constructor.hasOwnProperty(b) || (l.constructor[b] = y);
|
|
2611
2632
|
}
|
|
2612
2633
|
}
|
|
@@ -2617,17 +2638,17 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2617
2638
|
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g, k) {
|
|
2618
2639
|
b = N(b);
|
|
2619
2640
|
f = R(e, f);
|
|
2620
|
-
P([], [a], function(
|
|
2621
|
-
|
|
2622
|
-
var n = `${
|
|
2623
|
-
|
|
2641
|
+
P([], [a], function(q) {
|
|
2642
|
+
q = q[0];
|
|
2643
|
+
var n = `${q.name}.${b}`, u = {get() {
|
|
2644
|
+
bd(`Cannot access ${n} due to unbound types`, [c]);
|
|
2624
2645
|
}, enumerable:!0, configurable:!0};
|
|
2625
2646
|
u.set = k ? () => {
|
|
2626
|
-
|
|
2647
|
+
bd(`Cannot access ${n} due to unbound types`, [c]);
|
|
2627
2648
|
} : () => {
|
|
2628
2649
|
K(`${n} is a read-only property`);
|
|
2629
2650
|
};
|
|
2630
|
-
Object.defineProperty(
|
|
2651
|
+
Object.defineProperty(q.i.constructor, b, u);
|
|
2631
2652
|
P([], [c], function(v) {
|
|
2632
2653
|
v = v[0];
|
|
2633
2654
|
var y = {get() {
|
|
@@ -2636,80 +2657,80 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2636
2657
|
k && (k = R(g, k), y.set = l => {
|
|
2637
2658
|
var r = [];
|
|
2638
2659
|
k(d, v.toWireType(r, l));
|
|
2639
|
-
|
|
2660
|
+
Gc(r);
|
|
2640
2661
|
});
|
|
2641
|
-
Object.defineProperty(
|
|
2662
|
+
Object.defineProperty(q.i.constructor, b, y);
|
|
2642
2663
|
return [];
|
|
2643
2664
|
});
|
|
2644
2665
|
return [];
|
|
2645
2666
|
});
|
|
2646
2667
|
}, _embind_register_class_constructor:function(a, b, c, d, e, f) {
|
|
2647
|
-
var g =
|
|
2668
|
+
var g = dd(b, c);
|
|
2648
2669
|
e = R(d, e);
|
|
2649
2670
|
P([], [a], function(k) {
|
|
2650
2671
|
k = k[0];
|
|
2651
|
-
var
|
|
2672
|
+
var q = `constructor ${k.name}`;
|
|
2652
2673
|
void 0 === k.i.Z && (k.i.Z = []);
|
|
2653
2674
|
if (void 0 !== k.i.Z[b - 1]) {
|
|
2654
|
-
throw new
|
|
2675
|
+
throw new fc(`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!`);
|
|
2655
2676
|
}
|
|
2656
2677
|
k.i.Z[b - 1] = () => {
|
|
2657
|
-
|
|
2678
|
+
bd(`Cannot construct ${k.name} due to unbound types`, g);
|
|
2658
2679
|
};
|
|
2659
2680
|
P([], g, function(n) {
|
|
2660
2681
|
n.splice(1, 0, null);
|
|
2661
|
-
k.i.Z[b - 1] =
|
|
2682
|
+
k.i.Z[b - 1] = cd(q, n, null, e, f);
|
|
2662
2683
|
return [];
|
|
2663
2684
|
});
|
|
2664
2685
|
return [];
|
|
2665
2686
|
});
|
|
2666
2687
|
}, _embind_register_class_function:function(a, b, c, d, e, f, g, k) {
|
|
2667
|
-
var
|
|
2688
|
+
var q = dd(c, d);
|
|
2668
2689
|
b = N(b);
|
|
2669
2690
|
f = R(e, f);
|
|
2670
2691
|
P([], [a], function(n) {
|
|
2671
2692
|
function u() {
|
|
2672
|
-
|
|
2693
|
+
bd(`Cannot call ${v} due to unbound types`, q);
|
|
2673
2694
|
}
|
|
2674
2695
|
n = n[0];
|
|
2675
2696
|
var v = `${n.name}.${b}`;
|
|
2676
2697
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2677
2698
|
k && n.i.nb.push(b);
|
|
2678
2699
|
var y = n.i.N, l = y[b];
|
|
2679
|
-
void 0 === l || void 0 === l.B && l.className !== n.name && l.ea === c - 2 ? (u.ea = c - 2, u.className = n.name, y[b] = u) : (
|
|
2680
|
-
P([],
|
|
2681
|
-
r =
|
|
2700
|
+
void 0 === l || void 0 === l.B && l.className !== n.name && l.ea === c - 2 ? (u.ea = c - 2, u.className = n.name, y[b] = u) : (Pc(y, b, v), y[b].B[c - 2] = u);
|
|
2701
|
+
P([], q, function(r) {
|
|
2702
|
+
r = cd(v, r, n, f, g);
|
|
2682
2703
|
void 0 === y[b].B ? (r.ea = c - 2, y[b] = r) : y[b].B[c - 2] = r;
|
|
2683
2704
|
return [];
|
|
2684
2705
|
});
|
|
2685
2706
|
return [];
|
|
2686
2707
|
});
|
|
2687
|
-
}, _embind_register_class_property:function(a, b, c, d, e, f, g, k,
|
|
2708
|
+
}, _embind_register_class_property:function(a, b, c, d, e, f, g, k, q, n) {
|
|
2688
2709
|
b = N(b);
|
|
2689
2710
|
e = R(d, e);
|
|
2690
2711
|
P([], [a], function(u) {
|
|
2691
2712
|
u = u[0];
|
|
2692
2713
|
var v = `${u.name}.${b}`, y = {get() {
|
|
2693
|
-
|
|
2714
|
+
bd(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2694
2715
|
}, enumerable:!0, configurable:!0};
|
|
2695
|
-
y.set =
|
|
2696
|
-
|
|
2716
|
+
y.set = q ? () => {
|
|
2717
|
+
bd(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2697
2718
|
} : () => {
|
|
2698
2719
|
K(v + " is a read-only property");
|
|
2699
2720
|
};
|
|
2700
2721
|
Object.defineProperty(u.i.N, b, y);
|
|
2701
|
-
P([],
|
|
2722
|
+
P([], q ? [c, g] : [c], function(l) {
|
|
2702
2723
|
var r = l[0], x = {get() {
|
|
2703
|
-
var H =
|
|
2724
|
+
var H = ed(this, u, v + " getter");
|
|
2704
2725
|
return r.fromWireType(e(f, H));
|
|
2705
2726
|
}, enumerable:!0};
|
|
2706
|
-
if (
|
|
2707
|
-
|
|
2727
|
+
if (q) {
|
|
2728
|
+
q = R(k, q);
|
|
2708
2729
|
var z = l[1];
|
|
2709
2730
|
x.set = function(H) {
|
|
2710
|
-
var C =
|
|
2711
|
-
|
|
2712
|
-
|
|
2731
|
+
var C = ed(this, u, v + " setter"), L = [];
|
|
2732
|
+
q(n, C, z.toWireType(L, H));
|
|
2733
|
+
Gc(L);
|
|
2713
2734
|
};
|
|
2714
2735
|
}
|
|
2715
2736
|
Object.defineProperty(u.i.N, b, x);
|
|
@@ -2719,67 +2740,67 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2719
2740
|
});
|
|
2720
2741
|
}, _embind_register_emval:function(a, b) {
|
|
2721
2742
|
b = N(b);
|
|
2722
|
-
|
|
2723
|
-
var d =
|
|
2724
|
-
|
|
2743
|
+
Kc(a, {name:b, fromWireType:function(c) {
|
|
2744
|
+
var d = gc(c);
|
|
2745
|
+
fd(c);
|
|
2725
2746
|
return d;
|
|
2726
2747
|
}, toWireType:function(c, d) {
|
|
2727
|
-
return
|
|
2728
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2748
|
+
return hc(d);
|
|
2749
|
+
}, argPackAdvance:8, readValueFromPointer:Hc, J:null,});
|
|
2729
2750
|
}, _embind_register_enum:function(a, b, c, d) {
|
|
2730
2751
|
function e() {
|
|
2731
2752
|
}
|
|
2732
|
-
c =
|
|
2753
|
+
c = Lc(c);
|
|
2733
2754
|
b = N(b);
|
|
2734
2755
|
e.values = {};
|
|
2735
|
-
|
|
2756
|
+
Kc(a, {name:b, constructor:e, fromWireType:function(f) {
|
|
2736
2757
|
return this.constructor.values[f];
|
|
2737
2758
|
}, toWireType:function(f, g) {
|
|
2738
2759
|
return g.value;
|
|
2739
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2740
|
-
|
|
2760
|
+
}, argPackAdvance:8, readValueFromPointer:gd(b, c, d), J:null,});
|
|
2761
|
+
Qc(b, e);
|
|
2741
2762
|
}, _embind_register_enum_value:function(a, b, c) {
|
|
2742
|
-
var d =
|
|
2763
|
+
var d = uc(a, "enum");
|
|
2743
2764
|
b = N(b);
|
|
2744
2765
|
a = d.constructor;
|
|
2745
|
-
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:
|
|
2766
|
+
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:dc(`${d.name}_${b}`, function() {
|
|
2746
2767
|
})},});
|
|
2747
2768
|
a.values[c] = d;
|
|
2748
2769
|
a[b] = d;
|
|
2749
2770
|
}, _embind_register_float:function(a, b, c) {
|
|
2750
|
-
c =
|
|
2771
|
+
c = Lc(c);
|
|
2751
2772
|
b = N(b);
|
|
2752
|
-
|
|
2773
|
+
Kc(a, {name:b, fromWireType:function(d) {
|
|
2753
2774
|
return d;
|
|
2754
2775
|
}, toWireType:function(d, e) {
|
|
2755
2776
|
return e;
|
|
2756
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2777
|
+
}, argPackAdvance:8, readValueFromPointer:hd(b, c), J:null,});
|
|
2757
2778
|
}, _embind_register_function:function(a, b, c, d, e, f) {
|
|
2758
|
-
var g =
|
|
2779
|
+
var g = dd(b, c);
|
|
2759
2780
|
a = N(a);
|
|
2760
2781
|
e = R(d, e);
|
|
2761
|
-
|
|
2762
|
-
|
|
2782
|
+
Qc(a, function() {
|
|
2783
|
+
bd(`Cannot call ${a} due to unbound types`, g);
|
|
2763
2784
|
}, b - 1);
|
|
2764
2785
|
P([], g, function(k) {
|
|
2765
|
-
|
|
2786
|
+
Yc(a, cd(a, [k[0], null].concat(k.slice(1)), null, e, f), b - 1);
|
|
2766
2787
|
return [];
|
|
2767
2788
|
});
|
|
2768
2789
|
}, _embind_register_integer:function(a, b, c, d, e) {
|
|
2769
2790
|
b = N(b);
|
|
2770
2791
|
-1 === e && (e = 4294967295);
|
|
2771
|
-
e =
|
|
2792
|
+
e = Lc(c);
|
|
2772
2793
|
var f = k => k;
|
|
2773
2794
|
if (0 === d) {
|
|
2774
2795
|
var g = 32 - 8 * c;
|
|
2775
2796
|
f = k => k << g >>> g;
|
|
2776
2797
|
}
|
|
2777
|
-
c = b.includes("unsigned") ? function(k,
|
|
2778
|
-
return
|
|
2779
|
-
} : function(k,
|
|
2780
|
-
return
|
|
2798
|
+
c = b.includes("unsigned") ? function(k, q) {
|
|
2799
|
+
return q >>> 0;
|
|
2800
|
+
} : function(k, q) {
|
|
2801
|
+
return q;
|
|
2781
2802
|
};
|
|
2782
|
-
|
|
2803
|
+
Kc(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:jd(b, e, 0 !== d), J:null,});
|
|
2783
2804
|
}, _embind_register_memory_view:function(a, b, c) {
|
|
2784
2805
|
function d(f) {
|
|
2785
2806
|
f >>= 2;
|
|
@@ -2788,23 +2809,23 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2788
2809
|
}
|
|
2789
2810
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2790
2811
|
c = N(c);
|
|
2791
|
-
|
|
2812
|
+
Kc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Zb:!0,});
|
|
2792
2813
|
}, _embind_register_std_string:function(a, b) {
|
|
2793
2814
|
b = N(b);
|
|
2794
2815
|
var c = "std::string" === b;
|
|
2795
|
-
|
|
2816
|
+
Kc(a, {name:b, fromWireType:function(d) {
|
|
2796
2817
|
var e = B[d >> 2], f = d + 4;
|
|
2797
2818
|
if (c) {
|
|
2798
2819
|
for (var g = f, k = 0; k <= e; ++k) {
|
|
2799
|
-
var
|
|
2800
|
-
if (k == e || 0 == w[
|
|
2801
|
-
g = g ?
|
|
2820
|
+
var q = f + k;
|
|
2821
|
+
if (k == e || 0 == w[q]) {
|
|
2822
|
+
g = g ? eb(w, g, q - g) : "";
|
|
2802
2823
|
if (void 0 === n) {
|
|
2803
2824
|
var n = g;
|
|
2804
2825
|
} else {
|
|
2805
2826
|
n += String.fromCharCode(0), n += g;
|
|
2806
2827
|
}
|
|
2807
|
-
g =
|
|
2828
|
+
g = q + 1;
|
|
2808
2829
|
}
|
|
2809
2830
|
}
|
|
2810
2831
|
} else {
|
|
@@ -2814,105 +2835,105 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2814
2835
|
}
|
|
2815
2836
|
n = n.join("");
|
|
2816
2837
|
}
|
|
2817
|
-
|
|
2838
|
+
tc(d);
|
|
2818
2839
|
return n;
|
|
2819
2840
|
}, toWireType:function(d, e) {
|
|
2820
2841
|
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
2821
2842
|
var f = "string" == typeof e;
|
|
2822
2843
|
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || K("Cannot pass non-string to std::string");
|
|
2823
|
-
var g = c && f ?
|
|
2824
|
-
var k =
|
|
2844
|
+
var g = c && f ? gb(e) : e.length;
|
|
2845
|
+
var k = Yd(4 + g + 1), q = k + 4;
|
|
2825
2846
|
B[k >> 2] = g;
|
|
2826
2847
|
if (c && f) {
|
|
2827
|
-
|
|
2848
|
+
hb(e, w, q, g + 1);
|
|
2828
2849
|
} else {
|
|
2829
2850
|
if (f) {
|
|
2830
2851
|
for (f = 0; f < g; ++f) {
|
|
2831
2852
|
var n = e.charCodeAt(f);
|
|
2832
|
-
255 < n && (
|
|
2833
|
-
w[
|
|
2853
|
+
255 < n && (tc(q), K("String has UTF-16 code units that do not fit in 8 bits"));
|
|
2854
|
+
w[q + f] = n;
|
|
2834
2855
|
}
|
|
2835
2856
|
} else {
|
|
2836
2857
|
for (f = 0; f < g; ++f) {
|
|
2837
|
-
w[
|
|
2858
|
+
w[q + f] = e[f];
|
|
2838
2859
|
}
|
|
2839
2860
|
}
|
|
2840
2861
|
}
|
|
2841
|
-
null !== d && d.push(
|
|
2862
|
+
null !== d && d.push(tc, k);
|
|
2842
2863
|
return k;
|
|
2843
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2844
|
-
|
|
2864
|
+
}, argPackAdvance:8, readValueFromPointer:Hc, J:function(d) {
|
|
2865
|
+
tc(d);
|
|
2845
2866
|
},});
|
|
2846
2867
|
}, _embind_register_std_wstring:function(a, b, c) {
|
|
2847
2868
|
c = N(c);
|
|
2848
2869
|
if (2 === b) {
|
|
2849
|
-
var d =
|
|
2850
|
-
var e =
|
|
2851
|
-
var f =
|
|
2852
|
-
var g = () =>
|
|
2870
|
+
var d = ld;
|
|
2871
|
+
var e = md;
|
|
2872
|
+
var f = nd;
|
|
2873
|
+
var g = () => Aa;
|
|
2853
2874
|
var k = 1;
|
|
2854
2875
|
} else {
|
|
2855
|
-
4 === b && (d =
|
|
2876
|
+
4 === b && (d = od, e = pd, f = qd, g = () => B, k = 2);
|
|
2856
2877
|
}
|
|
2857
|
-
|
|
2858
|
-
for (var n = B[
|
|
2859
|
-
var r =
|
|
2878
|
+
Kc(a, {name:c, fromWireType:function(q) {
|
|
2879
|
+
for (var n = B[q >> 2], u = g(), v, y = q + 4, l = 0; l <= n; ++l) {
|
|
2880
|
+
var r = q + 4 + l * b;
|
|
2860
2881
|
if (l == n || 0 == u[r >> k]) {
|
|
2861
2882
|
y = d(y, r - y), void 0 === v ? v = y : (v += String.fromCharCode(0), v += y), y = r + b;
|
|
2862
2883
|
}
|
|
2863
2884
|
}
|
|
2864
|
-
|
|
2885
|
+
tc(q);
|
|
2865
2886
|
return v;
|
|
2866
|
-
}, toWireType:function(
|
|
2887
|
+
}, toWireType:function(q, n) {
|
|
2867
2888
|
"string" != typeof n && K(`Cannot pass non-string to C++ string type ${c}`);
|
|
2868
|
-
var u = f(n), v =
|
|
2889
|
+
var u = f(n), v = Yd(4 + u + b);
|
|
2869
2890
|
B[v >> 2] = u >> k;
|
|
2870
2891
|
e(n, v + 4, u + b);
|
|
2871
|
-
null !==
|
|
2892
|
+
null !== q && q.push(tc, v);
|
|
2872
2893
|
return v;
|
|
2873
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2874
|
-
|
|
2894
|
+
}, argPackAdvance:8, readValueFromPointer:Hc, J:function(q) {
|
|
2895
|
+
tc(q);
|
|
2875
2896
|
},});
|
|
2876
2897
|
}, _embind_register_value_object:function(a, b, c, d, e, f) {
|
|
2877
|
-
|
|
2878
|
-
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, k,
|
|
2879
|
-
|
|
2898
|
+
Fc[a] = {name:N(b), Qa:R(c, d), V:R(e, f), ab:[],};
|
|
2899
|
+
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, k, q, n) {
|
|
2900
|
+
Fc[a].ab.push({Qb:N(b), Wb:c, Ub:R(d, e), Vb:f, oc:g, nc:R(k, q), pc:n,});
|
|
2880
2901
|
}, _embind_register_void:function(a, b) {
|
|
2881
2902
|
b = N(b);
|
|
2882
|
-
|
|
2903
|
+
Kc(a, {ec:!0, name:b, argPackAdvance:0, fromWireType:function() {
|
|
2883
2904
|
}, toWireType:function() {
|
|
2884
2905
|
},});
|
|
2885
2906
|
}, _emscripten_get_now_is_monotonic:() => !0, _emscripten_throw_longjmp:() => {
|
|
2886
2907
|
throw Infinity;
|
|
2887
2908
|
}, _emval_as:function(a, b, c) {
|
|
2888
|
-
a =
|
|
2889
|
-
b =
|
|
2890
|
-
var d = [], e =
|
|
2909
|
+
a = gc(a);
|
|
2910
|
+
b = uc(b, "emval::as");
|
|
2911
|
+
var d = [], e = hc(d);
|
|
2891
2912
|
B[c >> 2] = e;
|
|
2892
2913
|
return b.toWireType(d, a);
|
|
2893
2914
|
}, _emval_call_method:function(a, b, c, d, e) {
|
|
2894
|
-
a =
|
|
2895
|
-
b =
|
|
2896
|
-
c =
|
|
2915
|
+
a = td[a];
|
|
2916
|
+
b = gc(b);
|
|
2917
|
+
c = sd(c);
|
|
2897
2918
|
var f = [];
|
|
2898
|
-
B[d >> 2] =
|
|
2919
|
+
B[d >> 2] = hc(f);
|
|
2899
2920
|
return a(b, c, f, e);
|
|
2900
2921
|
}, _emval_call_void_method:function(a, b, c, d) {
|
|
2901
|
-
a =
|
|
2902
|
-
b =
|
|
2903
|
-
c =
|
|
2922
|
+
a = td[a];
|
|
2923
|
+
b = gc(b);
|
|
2924
|
+
c = sd(c);
|
|
2904
2925
|
a(b, c, null, d);
|
|
2905
|
-
}, _emval_decref:
|
|
2906
|
-
var c =
|
|
2926
|
+
}, _emval_decref:fd, _emval_get_method_caller:function(a, b) {
|
|
2927
|
+
var c = vd(a, b), d = c[0];
|
|
2907
2928
|
b = d.name + "_$" + c.slice(1).map(function(g) {
|
|
2908
2929
|
return g.name;
|
|
2909
2930
|
}).join("_") + "$";
|
|
2910
|
-
var e =
|
|
2931
|
+
var e = wd[b];
|
|
2911
2932
|
if (void 0 !== e) {
|
|
2912
2933
|
return e;
|
|
2913
2934
|
}
|
|
2914
2935
|
var f = Array(a - 1);
|
|
2915
|
-
e =
|
|
2936
|
+
e = ud((g, k, q, n) => {
|
|
2916
2937
|
for (var u = 0, v = 0; v < a - 1; ++v) {
|
|
2917
2938
|
f[v] = c[v + 1].readValueFromPointer(n + u), u += c[v + 1].argPackAdvance;
|
|
2918
2939
|
}
|
|
@@ -2921,67 +2942,67 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2921
2942
|
c[v + 1].Lb && c[v + 1].Lb(f[v]);
|
|
2922
2943
|
}
|
|
2923
2944
|
if (!d.ec) {
|
|
2924
|
-
return d.toWireType(
|
|
2945
|
+
return d.toWireType(q, g);
|
|
2925
2946
|
}
|
|
2926
2947
|
});
|
|
2927
|
-
return
|
|
2948
|
+
return wd[b] = e;
|
|
2928
2949
|
}, _emval_get_property:function(a, b) {
|
|
2929
|
-
a =
|
|
2930
|
-
b =
|
|
2931
|
-
return
|
|
2950
|
+
a = gc(a);
|
|
2951
|
+
b = gc(b);
|
|
2952
|
+
return hc(a[b]);
|
|
2932
2953
|
}, _emval_incref:function(a) {
|
|
2933
2954
|
4 < a && (J.get(a).qb += 1);
|
|
2934
2955
|
}, _emval_new_cstring:function(a) {
|
|
2935
|
-
return
|
|
2956
|
+
return hc(sd(a));
|
|
2936
2957
|
}, _emval_new_object:function() {
|
|
2937
|
-
return
|
|
2958
|
+
return hc({});
|
|
2938
2959
|
}, _emval_run_destructors:function(a) {
|
|
2939
|
-
var b =
|
|
2940
|
-
|
|
2941
|
-
|
|
2960
|
+
var b = gc(a);
|
|
2961
|
+
Gc(b);
|
|
2962
|
+
fd(a);
|
|
2942
2963
|
}, _emval_set_property:function(a, b, c) {
|
|
2943
|
-
a =
|
|
2944
|
-
b =
|
|
2945
|
-
c =
|
|
2964
|
+
a = gc(a);
|
|
2965
|
+
b = gc(b);
|
|
2966
|
+
c = gc(c);
|
|
2946
2967
|
a[b] = c;
|
|
2947
2968
|
}, _emval_take_value:function(a, b) {
|
|
2948
|
-
a =
|
|
2969
|
+
a = uc(a, "_emval_take_value");
|
|
2949
2970
|
a = a.readValueFromPointer(b);
|
|
2950
|
-
return
|
|
2971
|
+
return hc(a);
|
|
2951
2972
|
}, abort:() => {
|
|
2952
|
-
|
|
2973
|
+
wa("");
|
|
2953
2974
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
2954
|
-
|
|
2975
|
+
xd.length = 0;
|
|
2955
2976
|
var d;
|
|
2956
2977
|
for (c >>= 2; d = w[b++];) {
|
|
2957
|
-
c += 105 != d & c,
|
|
2978
|
+
c += 105 != d & c, xd.push(105 == d ? A[c] : Ba[c++ >> 1]), ++c;
|
|
2958
2979
|
}
|
|
2959
|
-
return
|
|
2980
|
+
return Va[a].apply(null, xd);
|
|
2960
2981
|
}, emscripten_date_now:function() {
|
|
2961
2982
|
return Date.now();
|
|
2962
2983
|
}, emscripten_get_now:() => performance.now(), emscripten_glActiveTexture:function(a) {
|
|
2963
2984
|
U.activeTexture(a);
|
|
2964
2985
|
}, emscripten_glAttachShader:function(a, b) {
|
|
2965
|
-
U.attachShader(
|
|
2986
|
+
U.attachShader(Dd[a], Hd[b]);
|
|
2966
2987
|
}, emscripten_glBindAttribLocation:function(a, b, c) {
|
|
2967
|
-
U.bindAttribLocation(
|
|
2988
|
+
U.bindAttribLocation(Dd[a], b, c ? eb(w, c) : "");
|
|
2968
2989
|
}, emscripten_glBindBuffer:function(a, b) {
|
|
2969
2990
|
35051 == a ? U.Ka = b : 35052 == a && (U.fa = b);
|
|
2970
|
-
U.bindBuffer(a,
|
|
2971
|
-
}, emscripten_glBindFramebuffer:
|
|
2972
|
-
U.bindRenderbuffer(a,
|
|
2991
|
+
U.bindBuffer(a, Cd[b]);
|
|
2992
|
+
}, emscripten_glBindFramebuffer:Pd, emscripten_glBindRenderbuffer:function(a, b) {
|
|
2993
|
+
U.bindRenderbuffer(a, Fd[b]);
|
|
2973
2994
|
}, emscripten_glBindSampler:function(a, b) {
|
|
2974
|
-
U.bindSampler(a,
|
|
2995
|
+
U.bindSampler(a, Jd[b]);
|
|
2975
2996
|
}, emscripten_glBindTexture:function(a, b) {
|
|
2976
|
-
U.bindTexture(a,
|
|
2977
|
-
}, emscripten_glBindVertexArray:
|
|
2997
|
+
U.bindTexture(a, Gd[b]);
|
|
2998
|
+
}, emscripten_glBindVertexArray:Qd, emscripten_glBindVertexArrayOES:Qd, emscripten_glBlendColor:function(a, b, c, d) {
|
|
2978
2999
|
U.blendColor(a, b, c, d);
|
|
2979
3000
|
}, emscripten_glBlendEquation:function(a) {
|
|
2980
3001
|
U.blendEquation(a);
|
|
2981
3002
|
}, emscripten_glBlendFunc:function(a, b) {
|
|
2982
3003
|
U.blendFunc(a, b);
|
|
2983
|
-
}, emscripten_glBlitFramebuffer:function(a, b, c, d, e, f, g, k,
|
|
2984
|
-
U.blitFramebuffer(a, b, c, d, e, f, g, k,
|
|
3004
|
+
}, emscripten_glBlitFramebuffer:function(a, b, c, d, e, f, g, k, q, n) {
|
|
3005
|
+
U.blitFramebuffer(a, b, c, d, e, f, g, k, q, n);
|
|
2985
3006
|
}, emscripten_glBufferData:function(a, b, c, d) {
|
|
2986
3007
|
2 <= T.version ? c && b ? U.bufferData(a, w, d, c, b) : U.bufferData(a, b, d) : U.bufferData(a, c ? w.subarray(c, c + b) : b, d);
|
|
2987
3008
|
}, emscripten_glBufferSubData:function(a, b, c, d) {
|
|
@@ -2995,71 +3016,71 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2995
3016
|
}, emscripten_glClearStencil:function(a) {
|
|
2996
3017
|
U.clearStencil(a);
|
|
2997
3018
|
}, emscripten_glClientWaitSync:function(a, b, c, d) {
|
|
2998
|
-
return U.clientWaitSync(
|
|
3019
|
+
return U.clientWaitSync(Kd[a], b, (c >>> 0) + 4294967296 * d);
|
|
2999
3020
|
}, emscripten_glColorMask:function(a, b, c, d) {
|
|
3000
3021
|
U.colorMask(!!a, !!b, !!c, !!d);
|
|
3001
3022
|
}, emscripten_glCompileShader:function(a) {
|
|
3002
|
-
U.compileShader(
|
|
3023
|
+
U.compileShader(Hd[a]);
|
|
3003
3024
|
}, emscripten_glCompressedTexImage2D:function(a, b, c, d, e, f, g, k) {
|
|
3004
3025
|
2 <= T.version ? U.fa || !g ? U.compressedTexImage2D(a, b, c, d, e, f, g, k) : U.compressedTexImage2D(a, b, c, d, e, f, w, k, g) : U.compressedTexImage2D(a, b, c, d, e, f, k ? w.subarray(k, k + g) : null);
|
|
3005
|
-
}, emscripten_glCompressedTexSubImage2D:function(a, b, c, d, e, f, g, k,
|
|
3006
|
-
2 <= T.version ? U.fa || !k ? U.compressedTexSubImage2D(a, b, c, d, e, f, g, k,
|
|
3026
|
+
}, emscripten_glCompressedTexSubImage2D:function(a, b, c, d, e, f, g, k, q) {
|
|
3027
|
+
2 <= T.version ? U.fa || !k ? U.compressedTexSubImage2D(a, b, c, d, e, f, g, k, q) : U.compressedTexSubImage2D(a, b, c, d, e, f, g, w, q, k) : U.compressedTexSubImage2D(a, b, c, d, e, f, g, q ? w.subarray(q, q + k) : null);
|
|
3007
3028
|
}, emscripten_glCopyTexSubImage2D:function(a, b, c, d, e, f, g, k) {
|
|
3008
3029
|
U.copyTexSubImage2D(a, b, c, d, e, f, g, k);
|
|
3009
3030
|
}, emscripten_glCreateProgram:function() {
|
|
3010
|
-
var a = ha(
|
|
3031
|
+
var a = ha(Dd), b = U.createProgram();
|
|
3011
3032
|
b.name = a;
|
|
3012
3033
|
b.Aa = b.ya = b.za = 0;
|
|
3013
3034
|
b.Ta = 1;
|
|
3014
|
-
|
|
3035
|
+
Dd[a] = b;
|
|
3015
3036
|
return a;
|
|
3016
3037
|
}, emscripten_glCreateShader:function(a) {
|
|
3017
|
-
var b = ha(
|
|
3018
|
-
|
|
3038
|
+
var b = ha(Hd);
|
|
3039
|
+
Hd[b] = U.createShader(a);
|
|
3019
3040
|
return b;
|
|
3020
3041
|
}, emscripten_glCullFace:function(a) {
|
|
3021
3042
|
U.cullFace(a);
|
|
3022
3043
|
}, emscripten_glDeleteBuffers:function(a, b) {
|
|
3023
3044
|
for (var c = 0; c < a; c++) {
|
|
3024
|
-
var d = A[b + 4 * c >> 2], e =
|
|
3025
|
-
e && (U.deleteBuffer(e), e.name = 0,
|
|
3045
|
+
var d = A[b + 4 * c >> 2], e = Cd[d];
|
|
3046
|
+
e && (U.deleteBuffer(e), e.name = 0, Cd[d] = null, d == U.Ka && (U.Ka = 0), d == U.fa && (U.fa = 0));
|
|
3026
3047
|
}
|
|
3027
3048
|
}, emscripten_glDeleteFramebuffers:function(a, b) {
|
|
3028
3049
|
for (var c = 0; c < a; ++c) {
|
|
3029
|
-
var d = A[b + 4 * c >> 2], e =
|
|
3030
|
-
e && (U.deleteFramebuffer(e), e.name = 0,
|
|
3050
|
+
var d = A[b + 4 * c >> 2], e = Ed[d];
|
|
3051
|
+
e && (U.deleteFramebuffer(e), e.name = 0, Ed[d] = null);
|
|
3031
3052
|
}
|
|
3032
3053
|
}, emscripten_glDeleteProgram:function(a) {
|
|
3033
3054
|
if (a) {
|
|
3034
|
-
var b =
|
|
3035
|
-
b ? (U.deleteProgram(b), b.name = 0,
|
|
3055
|
+
var b = Dd[a];
|
|
3056
|
+
b ? (U.deleteProgram(b), b.name = 0, Dd[a] = null) : S(1281);
|
|
3036
3057
|
}
|
|
3037
3058
|
}, emscripten_glDeleteRenderbuffers:function(a, b) {
|
|
3038
3059
|
for (var c = 0; c < a; c++) {
|
|
3039
|
-
var d = A[b + 4 * c >> 2], e =
|
|
3040
|
-
e && (U.deleteRenderbuffer(e), e.name = 0,
|
|
3060
|
+
var d = A[b + 4 * c >> 2], e = Fd[d];
|
|
3061
|
+
e && (U.deleteRenderbuffer(e), e.name = 0, Fd[d] = null);
|
|
3041
3062
|
}
|
|
3042
3063
|
}, emscripten_glDeleteSamplers:function(a, b) {
|
|
3043
3064
|
for (var c = 0; c < a; c++) {
|
|
3044
|
-
var d = A[b + 4 * c >> 2], e =
|
|
3045
|
-
e && (U.deleteSampler(e), e.name = 0,
|
|
3065
|
+
var d = A[b + 4 * c >> 2], e = Jd[d];
|
|
3066
|
+
e && (U.deleteSampler(e), e.name = 0, Jd[d] = null);
|
|
3046
3067
|
}
|
|
3047
3068
|
}, emscripten_glDeleteShader:function(a) {
|
|
3048
3069
|
if (a) {
|
|
3049
|
-
var b =
|
|
3050
|
-
b ? (U.deleteShader(b),
|
|
3070
|
+
var b = Hd[a];
|
|
3071
|
+
b ? (U.deleteShader(b), Hd[a] = null) : S(1281);
|
|
3051
3072
|
}
|
|
3052
3073
|
}, emscripten_glDeleteSync:function(a) {
|
|
3053
3074
|
if (a) {
|
|
3054
|
-
var b =
|
|
3055
|
-
b ? (U.deleteSync(b), b.name = 0,
|
|
3075
|
+
var b = Kd[a];
|
|
3076
|
+
b ? (U.deleteSync(b), b.name = 0, Kd[a] = null) : S(1281);
|
|
3056
3077
|
}
|
|
3057
3078
|
}, emscripten_glDeleteTextures:function(a, b) {
|
|
3058
3079
|
for (var c = 0; c < a; c++) {
|
|
3059
|
-
var d = A[b + 4 * c >> 2], e =
|
|
3060
|
-
e && (U.deleteTexture(e), e.name = 0,
|
|
3080
|
+
var d = A[b + 4 * c >> 2], e = Gd[d];
|
|
3081
|
+
e && (U.deleteTexture(e), e.name = 0, Gd[d] = null);
|
|
3061
3082
|
}
|
|
3062
|
-
}, emscripten_glDeleteVertexArrays:
|
|
3083
|
+
}, emscripten_glDeleteVertexArrays:Rd, emscripten_glDeleteVertexArraysOES:Rd, emscripten_glDepthMask:function(a) {
|
|
3063
3084
|
U.depthMask(!!a);
|
|
3064
3085
|
}, emscripten_glDisable:function(a) {
|
|
3065
3086
|
U.disable(a);
|
|
@@ -3072,49 +3093,49 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3072
3093
|
}, emscripten_glDrawArraysInstancedBaseInstanceWEBGL:function(a, b, c, d, e) {
|
|
3073
3094
|
U.Za.drawArraysInstancedBaseInstanceWEBGL(a, b, c, d, e);
|
|
3074
3095
|
}, emscripten_glDrawBuffers:function(a, b) {
|
|
3075
|
-
for (var c =
|
|
3096
|
+
for (var c = Sd[a], d = 0; d < a; d++) {
|
|
3076
3097
|
c[d] = A[b + 4 * d >> 2];
|
|
3077
3098
|
}
|
|
3078
3099
|
U.drawBuffers(c);
|
|
3079
|
-
}, emscripten_glDrawElements:
|
|
3100
|
+
}, emscripten_glDrawElements:Td, emscripten_glDrawElementsInstanced:function(a, b, c, d, e) {
|
|
3080
3101
|
U.drawElementsInstanced(a, b, c, d, e);
|
|
3081
3102
|
}, emscripten_glDrawElementsInstancedBaseVertexBaseInstanceWEBGL:function(a, b, c, d, e, f, g) {
|
|
3082
3103
|
U.Za.drawElementsInstancedBaseVertexBaseInstanceWEBGL(a, b, c, d, e, f, g);
|
|
3083
3104
|
}, emscripten_glDrawRangeElements:function(a, b, c, d, e, f) {
|
|
3084
|
-
|
|
3105
|
+
Td(a, d, e, f);
|
|
3085
3106
|
}, emscripten_glEnable:function(a) {
|
|
3086
3107
|
U.enable(a);
|
|
3087
3108
|
}, emscripten_glEnableVertexAttribArray:function(a) {
|
|
3088
3109
|
U.enableVertexAttribArray(a);
|
|
3089
3110
|
}, emscripten_glFenceSync:function(a, b) {
|
|
3090
|
-
return (a = U.fenceSync(a, b)) ? (b = ha(
|
|
3111
|
+
return (a = U.fenceSync(a, b)) ? (b = ha(Kd), a.name = b, Kd[b] = a, b) : 0;
|
|
3091
3112
|
}, emscripten_glFinish:function() {
|
|
3092
3113
|
U.finish();
|
|
3093
3114
|
}, emscripten_glFlush:function() {
|
|
3094
3115
|
U.flush();
|
|
3095
3116
|
}, emscripten_glFramebufferRenderbuffer:function(a, b, c, d) {
|
|
3096
|
-
U.framebufferRenderbuffer(a, b, c,
|
|
3117
|
+
U.framebufferRenderbuffer(a, b, c, Fd[d]);
|
|
3097
3118
|
}, emscripten_glFramebufferTexture2D:function(a, b, c, d, e) {
|
|
3098
|
-
U.framebufferTexture2D(a, b, c,
|
|
3119
|
+
U.framebufferTexture2D(a, b, c, Gd[d], e);
|
|
3099
3120
|
}, emscripten_glFrontFace:function(a) {
|
|
3100
3121
|
U.frontFace(a);
|
|
3101
3122
|
}, emscripten_glGenBuffers:function(a, b) {
|
|
3102
|
-
|
|
3123
|
+
Ud(a, b, "createBuffer", Cd);
|
|
3103
3124
|
}, emscripten_glGenFramebuffers:function(a, b) {
|
|
3104
|
-
|
|
3125
|
+
Ud(a, b, "createFramebuffer", Ed);
|
|
3105
3126
|
}, emscripten_glGenRenderbuffers:function(a, b) {
|
|
3106
|
-
|
|
3127
|
+
Ud(a, b, "createRenderbuffer", Fd);
|
|
3107
3128
|
}, emscripten_glGenSamplers:function(a, b) {
|
|
3108
|
-
|
|
3129
|
+
Ud(a, b, "createSampler", Jd);
|
|
3109
3130
|
}, emscripten_glGenTextures:function(a, b) {
|
|
3110
|
-
|
|
3111
|
-
}, emscripten_glGenVertexArrays:
|
|
3131
|
+
Ud(a, b, "createTexture", Gd);
|
|
3132
|
+
}, emscripten_glGenVertexArrays:Vd, emscripten_glGenVertexArraysOES:Vd, emscripten_glGenerateMipmap:function(a) {
|
|
3112
3133
|
U.generateMipmap(a);
|
|
3113
3134
|
}, emscripten_glGetBufferParameteriv:function(a, b, c) {
|
|
3114
3135
|
c ? A[c >> 2] = U.getBufferParameter(a, b) : S(1281);
|
|
3115
3136
|
}, emscripten_glGetError:function() {
|
|
3116
|
-
var a = U.getError() ||
|
|
3117
|
-
|
|
3137
|
+
var a = U.getError() || Od;
|
|
3138
|
+
Od = 0;
|
|
3118
3139
|
return a;
|
|
3119
3140
|
}, emscripten_glGetFramebufferAttachmentParameteriv:function(a, b, c, d) {
|
|
3120
3141
|
a = U.getFramebufferAttachmentParameter(a, b, c);
|
|
@@ -3122,17 +3143,17 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3122
3143
|
a = a.name | 0;
|
|
3123
3144
|
}
|
|
3124
3145
|
A[d >> 2] = a;
|
|
3125
|
-
}, emscripten_glGetIntegerv:
|
|
3126
|
-
a = U.getProgramInfoLog(
|
|
3146
|
+
}, emscripten_glGetIntegerv:Xd, emscripten_glGetProgramInfoLog:function(a, b, c, d) {
|
|
3147
|
+
a = U.getProgramInfoLog(Dd[a]);
|
|
3127
3148
|
null === a && (a = "(unknown error)");
|
|
3128
|
-
b = 0 < b && d ?
|
|
3149
|
+
b = 0 < b && d ? hb(a, w, d, b) : 0;
|
|
3129
3150
|
c && (A[c >> 2] = b);
|
|
3130
3151
|
}, emscripten_glGetProgramiv:function(a, b, c) {
|
|
3131
3152
|
if (c) {
|
|
3132
|
-
if (a >=
|
|
3153
|
+
if (a >= Bd) {
|
|
3133
3154
|
S(1281);
|
|
3134
3155
|
} else {
|
|
3135
|
-
if (a =
|
|
3156
|
+
if (a = Dd[a], 35716 == b) {
|
|
3136
3157
|
a = U.getProgramInfoLog(a), null === a && (a = "(unknown error)"), A[c >> 2] = a.length + 1;
|
|
3137
3158
|
} else if (35719 == b) {
|
|
3138
3159
|
if (!a.Aa) {
|
|
@@ -3165,9 +3186,9 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3165
3186
|
}, emscripten_glGetRenderbufferParameteriv:function(a, b, c) {
|
|
3166
3187
|
c ? A[c >> 2] = U.getRenderbufferParameter(a, b) : S(1281);
|
|
3167
3188
|
}, emscripten_glGetShaderInfoLog:function(a, b, c, d) {
|
|
3168
|
-
a = U.getShaderInfoLog(
|
|
3189
|
+
a = U.getShaderInfoLog(Hd[a]);
|
|
3169
3190
|
null === a && (a = "(unknown error)");
|
|
3170
|
-
b = 0 < b && d ?
|
|
3191
|
+
b = 0 < b && d ? hb(a, w, d, b) : 0;
|
|
3171
3192
|
c && (A[c >> 2] = b);
|
|
3172
3193
|
}, emscripten_glGetShaderPrecisionFormat:function(a, b, c, d) {
|
|
3173
3194
|
a = U.getShaderPrecisionFormat(a, b);
|
|
@@ -3175,9 +3196,9 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3175
3196
|
A[c + 4 >> 2] = a.rangeMax;
|
|
3176
3197
|
A[d >> 2] = a.precision;
|
|
3177
3198
|
}, emscripten_glGetShaderiv:function(a, b, c) {
|
|
3178
|
-
c ? 35716 == b ? (a = U.getShaderInfoLog(
|
|
3199
|
+
c ? 35716 == b ? (a = U.getShaderInfoLog(Hd[a]), null === a && (a = "(unknown error)"), A[c >> 2] = a ? a.length + 1 : 0) : 35720 == b ? (a = U.getShaderSource(Hd[a]), A[c >> 2] = a ? a.length + 1 : 0) : A[c >> 2] = U.getShaderParameter(Hd[a], b) : S(1281);
|
|
3179
3200
|
}, emscripten_glGetString:function(a) {
|
|
3180
|
-
var b =
|
|
3201
|
+
var b = Ld[a];
|
|
3181
3202
|
if (!b) {
|
|
3182
3203
|
switch(a) {
|
|
3183
3204
|
case 7939:
|
|
@@ -3185,37 +3206,37 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3185
3206
|
b = b.concat(b.map(function(d) {
|
|
3186
3207
|
return "GL_" + d;
|
|
3187
3208
|
}));
|
|
3188
|
-
b =
|
|
3209
|
+
b = Zd(b.join(" "));
|
|
3189
3210
|
break;
|
|
3190
3211
|
case 7936:
|
|
3191
3212
|
case 7937:
|
|
3192
3213
|
case 37445:
|
|
3193
3214
|
case 37446:
|
|
3194
3215
|
(b = U.getParameter(a)) || S(1280);
|
|
3195
|
-
b = b &&
|
|
3216
|
+
b = b && Zd(b);
|
|
3196
3217
|
break;
|
|
3197
3218
|
case 7938:
|
|
3198
3219
|
b = U.getParameter(7938);
|
|
3199
3220
|
b = 2 <= T.version ? "OpenGL ES 3.0 (" + b + ")" : "OpenGL ES 2.0 (" + b + ")";
|
|
3200
|
-
b =
|
|
3221
|
+
b = Zd(b);
|
|
3201
3222
|
break;
|
|
3202
3223
|
case 35724:
|
|
3203
3224
|
b = U.getParameter(35724);
|
|
3204
3225
|
var c = b.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);
|
|
3205
3226
|
null !== c && (3 == c[1].length && (c[1] += "0"), b = "OpenGL ES GLSL ES " + c[1] + " (" + b + ")");
|
|
3206
|
-
b =
|
|
3227
|
+
b = Zd(b);
|
|
3207
3228
|
break;
|
|
3208
3229
|
default:
|
|
3209
3230
|
S(1280);
|
|
3210
3231
|
}
|
|
3211
|
-
|
|
3232
|
+
Ld[a] = b;
|
|
3212
3233
|
}
|
|
3213
3234
|
return b;
|
|
3214
3235
|
}, emscripten_glGetStringi:function(a, b) {
|
|
3215
3236
|
if (2 > T.version) {
|
|
3216
3237
|
return S(1282), 0;
|
|
3217
3238
|
}
|
|
3218
|
-
var c =
|
|
3239
|
+
var c = Md[a];
|
|
3219
3240
|
if (c) {
|
|
3220
3241
|
return 0 > b || b >= c.length ? (S(1281), 0) : c[b];
|
|
3221
3242
|
}
|
|
@@ -3224,34 +3245,34 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3224
3245
|
return c = U.getSupportedExtensions() || [], c = c.concat(c.map(function(d) {
|
|
3225
3246
|
return "GL_" + d;
|
|
3226
3247
|
})), c = c.map(function(d) {
|
|
3227
|
-
return
|
|
3228
|
-
}), c =
|
|
3248
|
+
return Zd(d);
|
|
3249
|
+
}), c = Md[a] = c, 0 > b || b >= c.length ? (S(1281), 0) : c[b];
|
|
3229
3250
|
default:
|
|
3230
3251
|
return S(1280), 0;
|
|
3231
3252
|
}
|
|
3232
3253
|
}, emscripten_glGetUniformLocation:function(a, b) {
|
|
3233
|
-
b = b ?
|
|
3234
|
-
if (a =
|
|
3254
|
+
b = b ? eb(w, b) : "";
|
|
3255
|
+
if (a = Dd[a]) {
|
|
3235
3256
|
var c = a, d = c.na, e = c.vb, f;
|
|
3236
3257
|
if (!d) {
|
|
3237
3258
|
for (c.na = d = {}, c.ub = {}, f = 0; f < U.getProgramParameter(c, 35718); ++f) {
|
|
3238
3259
|
var g = U.getActiveUniform(c, f);
|
|
3239
3260
|
var k = g.name;
|
|
3240
3261
|
g = g.size;
|
|
3241
|
-
var
|
|
3242
|
-
|
|
3262
|
+
var q = $d(k);
|
|
3263
|
+
q = 0 < q ? k.slice(0, q) : k;
|
|
3243
3264
|
var n = c.Ta;
|
|
3244
3265
|
c.Ta += g;
|
|
3245
|
-
e[
|
|
3266
|
+
e[q] = [g, n];
|
|
3246
3267
|
for (k = 0; k < g; ++k) {
|
|
3247
|
-
d[n] = k, c.ub[n++] =
|
|
3268
|
+
d[n] = k, c.ub[n++] = q;
|
|
3248
3269
|
}
|
|
3249
3270
|
}
|
|
3250
3271
|
}
|
|
3251
3272
|
c = a.na;
|
|
3252
3273
|
d = 0;
|
|
3253
3274
|
e = b;
|
|
3254
|
-
f =
|
|
3275
|
+
f = $d(b);
|
|
3255
3276
|
0 < f && (d = parseInt(b.slice(f + 1)) >>> 0, e = b.slice(0, f));
|
|
3256
3277
|
if ((e = a.vb[e]) && d < e[0] && (d += e[1], c[d] = c[d] || U.getUniformLocation(a, b))) {
|
|
3257
3278
|
return d;
|
|
@@ -3261,23 +3282,23 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3261
3282
|
}
|
|
3262
3283
|
return -1;
|
|
3263
3284
|
}, emscripten_glInvalidateFramebuffer:function(a, b, c) {
|
|
3264
|
-
for (var d =
|
|
3285
|
+
for (var d = Sd[b], e = 0; e < b; e++) {
|
|
3265
3286
|
d[e] = A[c + 4 * e >> 2];
|
|
3266
3287
|
}
|
|
3267
3288
|
U.invalidateFramebuffer(a, d);
|
|
3268
3289
|
}, emscripten_glInvalidateSubFramebuffer:function(a, b, c, d, e, f, g) {
|
|
3269
|
-
for (var k =
|
|
3270
|
-
k[
|
|
3290
|
+
for (var k = Sd[b], q = 0; q < b; q++) {
|
|
3291
|
+
k[q] = A[c + 4 * q >> 2];
|
|
3271
3292
|
}
|
|
3272
3293
|
U.invalidateSubFramebuffer(a, k, d, e, f, g);
|
|
3273
3294
|
}, emscripten_glIsSync:function(a) {
|
|
3274
|
-
return U.isSync(
|
|
3295
|
+
return U.isSync(Kd[a]);
|
|
3275
3296
|
}, emscripten_glIsTexture:function(a) {
|
|
3276
|
-
return (a =
|
|
3297
|
+
return (a = Gd[a]) ? U.isTexture(a) : 0;
|
|
3277
3298
|
}, emscripten_glLineWidth:function(a) {
|
|
3278
3299
|
U.lineWidth(a);
|
|
3279
3300
|
}, emscripten_glLinkProgram:function(a) {
|
|
3280
|
-
a =
|
|
3301
|
+
a = Dd[a];
|
|
3281
3302
|
U.linkProgram(a);
|
|
3282
3303
|
a.na = 0;
|
|
3283
3304
|
a.vb = {};
|
|
@@ -3286,7 +3307,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3286
3307
|
}, emscripten_glMultiDrawElementsInstancedBaseVertexBaseInstanceWEBGL:function(a, b, c, d, e, f, g, k) {
|
|
3287
3308
|
U.hb.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(a, A, b >> 2, c, A, d >> 2, A, e >> 2, A, f >> 2, B, g >> 2, k);
|
|
3288
3309
|
}, emscripten_glPixelStorei:function(a, b) {
|
|
3289
|
-
3317 == a && (
|
|
3310
|
+
3317 == a && (Nd = b);
|
|
3290
3311
|
U.pixelStorei(a, b);
|
|
3291
3312
|
}, emscripten_glReadBuffer:function(a) {
|
|
3292
3313
|
U.readBuffer(a);
|
|
@@ -3295,29 +3316,29 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3295
3316
|
if (U.Ka) {
|
|
3296
3317
|
U.readPixels(a, b, c, d, e, f, g);
|
|
3297
3318
|
} else {
|
|
3298
|
-
var k =
|
|
3319
|
+
var k = ae(f);
|
|
3299
3320
|
U.readPixels(a, b, c, d, e, f, k, g >> 31 - Math.clz32(k.BYTES_PER_ELEMENT));
|
|
3300
3321
|
}
|
|
3301
3322
|
} else {
|
|
3302
|
-
(g =
|
|
3323
|
+
(g = be(f, e, c, d, g)) ? U.readPixels(a, b, c, d, e, f, g) : S(1280);
|
|
3303
3324
|
}
|
|
3304
3325
|
}, emscripten_glRenderbufferStorage:function(a, b, c, d) {
|
|
3305
3326
|
U.renderbufferStorage(a, b, c, d);
|
|
3306
3327
|
}, emscripten_glRenderbufferStorageMultisample:function(a, b, c, d, e) {
|
|
3307
3328
|
U.renderbufferStorageMultisample(a, b, c, d, e);
|
|
3308
3329
|
}, emscripten_glSamplerParameteri:function(a, b, c) {
|
|
3309
|
-
U.samplerParameteri(
|
|
3330
|
+
U.samplerParameteri(Jd[a], b, c);
|
|
3310
3331
|
}, emscripten_glSamplerParameteriv:function(a, b, c) {
|
|
3311
|
-
U.samplerParameteri(
|
|
3332
|
+
U.samplerParameteri(Jd[a], b, A[c >> 2]);
|
|
3312
3333
|
}, emscripten_glScissor:function(a, b, c, d) {
|
|
3313
3334
|
U.scissor(a, b, c, d);
|
|
3314
3335
|
}, emscripten_glShaderSource:function(a, b, c, d) {
|
|
3315
3336
|
for (var e = "", f = 0; f < b; ++f) {
|
|
3316
3337
|
var g = d ? A[d + 4 * f >> 2] : -1, k = A[c + 4 * f >> 2];
|
|
3317
|
-
g = k ?
|
|
3338
|
+
g = k ? eb(w, k, 0 > g ? void 0 : g) : "";
|
|
3318
3339
|
e += g;
|
|
3319
3340
|
}
|
|
3320
|
-
U.shaderSource(
|
|
3341
|
+
U.shaderSource(Hd[a], e);
|
|
3321
3342
|
}, emscripten_glStencilFunc:function(a, b, c) {
|
|
3322
3343
|
U.stencilFunc(a, b, c);
|
|
3323
3344
|
}, emscripten_glStencilFuncSeparate:function(a, b, c, d) {
|
|
@@ -3330,18 +3351,18 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3330
3351
|
U.stencilOp(a, b, c);
|
|
3331
3352
|
}, emscripten_glStencilOpSeparate:function(a, b, c, d) {
|
|
3332
3353
|
U.stencilOpSeparate(a, b, c, d);
|
|
3333
|
-
}, emscripten_glTexImage2D:function(a, b, c, d, e, f, g, k,
|
|
3354
|
+
}, emscripten_glTexImage2D:function(a, b, c, d, e, f, g, k, q) {
|
|
3334
3355
|
if (2 <= T.version) {
|
|
3335
3356
|
if (U.fa) {
|
|
3336
|
-
U.texImage2D(a, b, c, d, e, f, g, k,
|
|
3337
|
-
} else if (
|
|
3338
|
-
var n =
|
|
3339
|
-
U.texImage2D(a, b, c, d, e, f, g, k, n,
|
|
3357
|
+
U.texImage2D(a, b, c, d, e, f, g, k, q);
|
|
3358
|
+
} else if (q) {
|
|
3359
|
+
var n = ae(k);
|
|
3360
|
+
U.texImage2D(a, b, c, d, e, f, g, k, n, q >> 31 - Math.clz32(n.BYTES_PER_ELEMENT));
|
|
3340
3361
|
} else {
|
|
3341
3362
|
U.texImage2D(a, b, c, d, e, f, g, k, null);
|
|
3342
3363
|
}
|
|
3343
3364
|
} else {
|
|
3344
|
-
U.texImage2D(a, b, c, d, e, f, g, k,
|
|
3365
|
+
U.texImage2D(a, b, c, d, e, f, g, k, q ? be(k, g, d, e, q) : null);
|
|
3345
3366
|
}
|
|
3346
3367
|
}, emscripten_glTexParameterf:function(a, b, c) {
|
|
3347
3368
|
U.texParameterf(a, b, c);
|
|
@@ -3353,18 +3374,18 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3353
3374
|
U.texParameteri(a, b, A[c >> 2]);
|
|
3354
3375
|
}, emscripten_glTexStorage2D:function(a, b, c, d, e) {
|
|
3355
3376
|
U.texStorage2D(a, b, c, d, e);
|
|
3356
|
-
}, emscripten_glTexSubImage2D:function(a, b, c, d, e, f, g, k,
|
|
3377
|
+
}, emscripten_glTexSubImage2D:function(a, b, c, d, e, f, g, k, q) {
|
|
3357
3378
|
if (2 <= T.version) {
|
|
3358
3379
|
if (U.fa) {
|
|
3359
|
-
U.texSubImage2D(a, b, c, d, e, f, g, k,
|
|
3360
|
-
} else if (
|
|
3361
|
-
var n =
|
|
3362
|
-
U.texSubImage2D(a, b, c, d, e, f, g, k, n,
|
|
3380
|
+
U.texSubImage2D(a, b, c, d, e, f, g, k, q);
|
|
3381
|
+
} else if (q) {
|
|
3382
|
+
var n = ae(k);
|
|
3383
|
+
U.texSubImage2D(a, b, c, d, e, f, g, k, n, q >> 31 - Math.clz32(n.BYTES_PER_ELEMENT));
|
|
3363
3384
|
} else {
|
|
3364
3385
|
U.texSubImage2D(a, b, c, d, e, f, g, k, null);
|
|
3365
3386
|
}
|
|
3366
3387
|
} else {
|
|
3367
|
-
n = null,
|
|
3388
|
+
n = null, q && (n = be(k, g, e, f, q)), U.texSubImage2D(a, b, c, d, e, f, g, k, n);
|
|
3368
3389
|
}
|
|
3369
3390
|
}, emscripten_glUniform1f:function(a, b) {
|
|
3370
3391
|
U.uniform1f(V(a), b);
|
|
@@ -3373,7 +3394,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3373
3394
|
b && U.uniform1fv(V(a), D, c >> 2, b);
|
|
3374
3395
|
} else {
|
|
3375
3396
|
if (288 >= b) {
|
|
3376
|
-
for (var d =
|
|
3397
|
+
for (var d = ce[b - 1], e = 0; e < b; ++e) {
|
|
3377
3398
|
d[e] = D[c + 4 * e >> 2];
|
|
3378
3399
|
}
|
|
3379
3400
|
} else {
|
|
@@ -3388,7 +3409,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3388
3409
|
b && U.uniform1iv(V(a), A, c >> 2, b);
|
|
3389
3410
|
} else {
|
|
3390
3411
|
if (288 >= b) {
|
|
3391
|
-
for (var d =
|
|
3412
|
+
for (var d = de[b - 1], e = 0; e < b; ++e) {
|
|
3392
3413
|
d[e] = A[c + 4 * e >> 2];
|
|
3393
3414
|
}
|
|
3394
3415
|
} else {
|
|
@@ -3403,7 +3424,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3403
3424
|
b && U.uniform2fv(V(a), D, c >> 2, 2 * b);
|
|
3404
3425
|
} else {
|
|
3405
3426
|
if (144 >= b) {
|
|
3406
|
-
for (var d =
|
|
3427
|
+
for (var d = ce[2 * b - 1], e = 0; e < 2 * b; e += 2) {
|
|
3407
3428
|
d[e] = D[c + 4 * e >> 2], d[e + 1] = D[c + (4 * e + 4) >> 2];
|
|
3408
3429
|
}
|
|
3409
3430
|
} else {
|
|
@@ -3418,7 +3439,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3418
3439
|
b && U.uniform2iv(V(a), A, c >> 2, 2 * b);
|
|
3419
3440
|
} else {
|
|
3420
3441
|
if (144 >= b) {
|
|
3421
|
-
for (var d =
|
|
3442
|
+
for (var d = de[2 * b - 1], e = 0; e < 2 * b; e += 2) {
|
|
3422
3443
|
d[e] = A[c + 4 * e >> 2], d[e + 1] = A[c + (4 * e + 4) >> 2];
|
|
3423
3444
|
}
|
|
3424
3445
|
} else {
|
|
@@ -3433,7 +3454,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3433
3454
|
b && U.uniform3fv(V(a), D, c >> 2, 3 * b);
|
|
3434
3455
|
} else {
|
|
3435
3456
|
if (96 >= b) {
|
|
3436
|
-
for (var d =
|
|
3457
|
+
for (var d = ce[3 * b - 1], e = 0; e < 3 * b; e += 3) {
|
|
3437
3458
|
d[e] = D[c + 4 * e >> 2], d[e + 1] = D[c + (4 * e + 4) >> 2], d[e + 2] = D[c + (4 * e + 8) >> 2];
|
|
3438
3459
|
}
|
|
3439
3460
|
} else {
|
|
@@ -3448,7 +3469,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3448
3469
|
b && U.uniform3iv(V(a), A, c >> 2, 3 * b);
|
|
3449
3470
|
} else {
|
|
3450
3471
|
if (96 >= b) {
|
|
3451
|
-
for (var d =
|
|
3472
|
+
for (var d = de[3 * b - 1], e = 0; e < 3 * b; e += 3) {
|
|
3452
3473
|
d[e] = A[c + 4 * e >> 2], d[e + 1] = A[c + (4 * e + 4) >> 2], d[e + 2] = A[c + (4 * e + 8) >> 2];
|
|
3453
3474
|
}
|
|
3454
3475
|
} else {
|
|
@@ -3463,7 +3484,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3463
3484
|
b && U.uniform4fv(V(a), D, c >> 2, 4 * b);
|
|
3464
3485
|
} else {
|
|
3465
3486
|
if (72 >= b) {
|
|
3466
|
-
var d =
|
|
3487
|
+
var d = ce[4 * b - 1], e = D;
|
|
3467
3488
|
c >>= 2;
|
|
3468
3489
|
for (var f = 0; f < 4 * b; f += 4) {
|
|
3469
3490
|
var g = c + f;
|
|
@@ -3484,7 +3505,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3484
3505
|
b && U.uniform4iv(V(a), A, c >> 2, 4 * b);
|
|
3485
3506
|
} else {
|
|
3486
3507
|
if (72 >= b) {
|
|
3487
|
-
for (var d =
|
|
3508
|
+
for (var d = de[4 * b - 1], e = 0; e < 4 * b; e += 4) {
|
|
3488
3509
|
d[e] = A[c + 4 * e >> 2], d[e + 1] = A[c + (4 * e + 4) >> 2], d[e + 2] = A[c + (4 * e + 8) >> 2], d[e + 3] = A[c + (4 * e + 12) >> 2];
|
|
3489
3510
|
}
|
|
3490
3511
|
} else {
|
|
@@ -3497,7 +3518,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3497
3518
|
b && U.uniformMatrix2fv(V(a), !!c, D, d >> 2, 4 * b);
|
|
3498
3519
|
} else {
|
|
3499
3520
|
if (72 >= b) {
|
|
3500
|
-
for (var e =
|
|
3521
|
+
for (var e = ce[4 * b - 1], f = 0; f < 4 * b; f += 4) {
|
|
3501
3522
|
e[f] = D[d + 4 * f >> 2], e[f + 1] = D[d + (4 * f + 4) >> 2], e[f + 2] = D[d + (4 * f + 8) >> 2], e[f + 3] = D[d + (4 * f + 12) >> 2];
|
|
3502
3523
|
}
|
|
3503
3524
|
} else {
|
|
@@ -3510,7 +3531,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3510
3531
|
b && U.uniformMatrix3fv(V(a), !!c, D, d >> 2, 9 * b);
|
|
3511
3532
|
} else {
|
|
3512
3533
|
if (32 >= b) {
|
|
3513
|
-
for (var e =
|
|
3534
|
+
for (var e = ce[9 * b - 1], f = 0; f < 9 * b; f += 9) {
|
|
3514
3535
|
e[f] = D[d + 4 * f >> 2], e[f + 1] = D[d + (4 * f + 4) >> 2], e[f + 2] = D[d + (4 * f + 8) >> 2], e[f + 3] = D[d + (4 * f + 12) >> 2], e[f + 4] = D[d + (4 * f + 16) >> 2], e[f + 5] = D[d + (4 * f + 20) >> 2], e[f + 6] = D[d + (4 * f + 24) >> 2], e[f + 7] = D[d + (4 * f + 28) >> 2], e[f + 8] = D[d + (4 * f + 32) >> 2];
|
|
3515
3536
|
}
|
|
3516
3537
|
} else {
|
|
@@ -3523,7 +3544,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3523
3544
|
b && U.uniformMatrix4fv(V(a), !!c, D, d >> 2, 16 * b);
|
|
3524
3545
|
} else {
|
|
3525
3546
|
if (18 >= b) {
|
|
3526
|
-
var e =
|
|
3547
|
+
var e = ce[16 * b - 1], f = D;
|
|
3527
3548
|
d >>= 2;
|
|
3528
3549
|
for (var g = 0; g < 16 * b; g += 16) {
|
|
3529
3550
|
var k = d + g;
|
|
@@ -3550,7 +3571,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3550
3571
|
U.uniformMatrix4fv(V(a), !!c, e);
|
|
3551
3572
|
}
|
|
3552
3573
|
}, emscripten_glUseProgram:function(a) {
|
|
3553
|
-
a =
|
|
3574
|
+
a = Dd[a];
|
|
3554
3575
|
U.useProgram(a);
|
|
3555
3576
|
U.Kb = a;
|
|
3556
3577
|
}, emscripten_glVertexAttrib1f:function(a, b) {
|
|
@@ -3570,7 +3591,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3570
3591
|
}, emscripten_glViewport:function(a, b, c, d) {
|
|
3571
3592
|
U.viewport(a, b, c, d);
|
|
3572
3593
|
}, emscripten_glWaitSync:function(a, b, c, d) {
|
|
3573
|
-
U.waitSync(
|
|
3594
|
+
U.waitSync(Kd[a], b, (c >>> 0) + 4294967296 * d);
|
|
3574
3595
|
}, emscripten_memcpy_big:(a, b, c) => w.copyWithin(a, b, b + c), emscripten_resize_heap:a => {
|
|
3575
3596
|
var b = w.length;
|
|
3576
3597
|
a >>>= 0;
|
|
@@ -3583,10 +3604,10 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3583
3604
|
var e = Math;
|
|
3584
3605
|
d = Math.max(a, d);
|
|
3585
3606
|
a: {
|
|
3586
|
-
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) -
|
|
3607
|
+
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - xa.buffer.byteLength + 65535 >>> 16;
|
|
3587
3608
|
try {
|
|
3588
|
-
|
|
3589
|
-
|
|
3609
|
+
xa.grow(e);
|
|
3610
|
+
Ca();
|
|
3590
3611
|
var f = 1;
|
|
3591
3612
|
break a;
|
|
3592
3613
|
} catch (g) {
|
|
@@ -3604,7 +3625,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3604
3625
|
return la(a) ? 0 : -5;
|
|
3605
3626
|
}, environ_get:(a, b) => {
|
|
3606
3627
|
var c = 0;
|
|
3607
|
-
|
|
3628
|
+
ge().forEach(function(d, e) {
|
|
3608
3629
|
var f = b + c;
|
|
3609
3630
|
e = B[a + 4 * e >> 2] = f;
|
|
3610
3631
|
for (f = 0; f < d.length; ++f) {
|
|
@@ -3615,7 +3636,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3615
3636
|
});
|
|
3616
3637
|
return 0;
|
|
3617
3638
|
}, environ_sizes_get:(a, b) => {
|
|
3618
|
-
var c =
|
|
3639
|
+
var c = ge();
|
|
3619
3640
|
B[a >> 2] = c.length;
|
|
3620
3641
|
var d = 0;
|
|
3621
3642
|
c.forEach(function(e) {
|
|
@@ -3625,7 +3646,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3625
3646
|
return 0;
|
|
3626
3647
|
}, fd_close:function(a) {
|
|
3627
3648
|
try {
|
|
3628
|
-
var b =
|
|
3649
|
+
var b = Mb(a);
|
|
3629
3650
|
if (null === b.X) {
|
|
3630
3651
|
throw new G(8);
|
|
3631
3652
|
}
|
|
@@ -3635,12 +3656,12 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3635
3656
|
} catch (c) {
|
|
3636
3657
|
throw c;
|
|
3637
3658
|
} finally {
|
|
3638
|
-
|
|
3659
|
+
yb[b.X] = null;
|
|
3639
3660
|
}
|
|
3640
3661
|
b.X = null;
|
|
3641
3662
|
return 0;
|
|
3642
3663
|
} catch (c) {
|
|
3643
|
-
if ("undefined" == typeof
|
|
3664
|
+
if ("undefined" == typeof $b || "ErrnoError" !== c.name) {
|
|
3644
3665
|
throw c;
|
|
3645
3666
|
}
|
|
3646
3667
|
return c.W;
|
|
@@ -3648,12 +3669,12 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3648
3669
|
}, fd_read:function(a, b, c, d) {
|
|
3649
3670
|
try {
|
|
3650
3671
|
a: {
|
|
3651
|
-
var e =
|
|
3672
|
+
var e = Mb(a);
|
|
3652
3673
|
a = b;
|
|
3653
3674
|
for (var f, g = b = 0; g < c; g++) {
|
|
3654
|
-
var k = B[a >> 2],
|
|
3675
|
+
var k = B[a >> 2], q = B[a + 4 >> 2];
|
|
3655
3676
|
a += 8;
|
|
3656
|
-
var n = e, u = k, v =
|
|
3677
|
+
var n = e, u = k, v = q, y = f, l = t;
|
|
3657
3678
|
if (0 > v || 0 > y) {
|
|
3658
3679
|
throw new G(28);
|
|
3659
3680
|
}
|
|
@@ -3683,7 +3704,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3683
3704
|
break a;
|
|
3684
3705
|
}
|
|
3685
3706
|
b += z;
|
|
3686
|
-
if (z <
|
|
3707
|
+
if (z < q) {
|
|
3687
3708
|
break;
|
|
3688
3709
|
}
|
|
3689
3710
|
"undefined" !== typeof f && (f += z);
|
|
@@ -3693,7 +3714,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3693
3714
|
B[d >> 2] = H;
|
|
3694
3715
|
return 0;
|
|
3695
3716
|
} catch (C) {
|
|
3696
|
-
if ("undefined" == typeof
|
|
3717
|
+
if ("undefined" == typeof $b || "ErrnoError" !== C.name) {
|
|
3697
3718
|
throw C;
|
|
3698
3719
|
}
|
|
3699
3720
|
return C.W;
|
|
@@ -3704,15 +3725,15 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3704
3725
|
if (isNaN(b)) {
|
|
3705
3726
|
return 61;
|
|
3706
3727
|
}
|
|
3707
|
-
var f =
|
|
3708
|
-
|
|
3728
|
+
var f = Mb(a);
|
|
3729
|
+
Vb(f, b, d);
|
|
3709
3730
|
F = [f.position >>> 0, (E = f.position, 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
3710
3731
|
A[e >> 2] = F[0];
|
|
3711
3732
|
A[e + 4 >> 2] = F[1];
|
|
3712
3733
|
f.Na && 0 === b && 0 === d && (f.Na = null);
|
|
3713
3734
|
return 0;
|
|
3714
3735
|
} catch (g) {
|
|
3715
|
-
if ("undefined" == typeof
|
|
3736
|
+
if ("undefined" == typeof $b || "ErrnoError" !== g.name) {
|
|
3716
3737
|
throw g;
|
|
3717
3738
|
}
|
|
3718
3739
|
return g.W;
|
|
@@ -3720,12 +3741,12 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3720
3741
|
}, fd_write:function(a, b, c, d) {
|
|
3721
3742
|
try {
|
|
3722
3743
|
a: {
|
|
3723
|
-
var e =
|
|
3744
|
+
var e = Mb(a);
|
|
3724
3745
|
a = b;
|
|
3725
3746
|
for (var f, g = b = 0; g < c; g++) {
|
|
3726
|
-
var k = B[a >> 2],
|
|
3747
|
+
var k = B[a >> 2], q = B[a + 4 >> 2];
|
|
3727
3748
|
a += 8;
|
|
3728
|
-
var n = e, u = k, v =
|
|
3749
|
+
var n = e, u = k, v = q, y = f, l = t;
|
|
3729
3750
|
if (0 > v || 0 > y) {
|
|
3730
3751
|
throw new G(28);
|
|
3731
3752
|
}
|
|
@@ -3741,7 +3762,7 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3741
3762
|
if (!n.m.write) {
|
|
3742
3763
|
throw new G(28);
|
|
3743
3764
|
}
|
|
3744
|
-
n.seekable && n.flags & 1024 &&
|
|
3765
|
+
n.seekable && n.flags & 1024 && Vb(n, 0, 2);
|
|
3745
3766
|
var r = "undefined" != typeof y;
|
|
3746
3767
|
if (!r) {
|
|
3747
3768
|
y = n.position;
|
|
@@ -3763,50 +3784,67 @@ var Ae = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3763
3784
|
B[d >> 2] = H;
|
|
3764
3785
|
return 0;
|
|
3765
3786
|
} catch (C) {
|
|
3766
|
-
if ("undefined" == typeof
|
|
3787
|
+
if ("undefined" == typeof $b || "ErrnoError" !== C.name) {
|
|
3767
3788
|
throw C;
|
|
3768
3789
|
}
|
|
3769
3790
|
return C.W;
|
|
3770
3791
|
}
|
|
3771
|
-
}, glBindFramebuffer:
|
|
3792
|
+
}, glBindFramebuffer:Pd, glGetIntegerv:Xd, invoke_ii:qe, invoke_iii:re, invoke_iiii:se, invoke_iiiii:te, invoke_iiiiii:ue, invoke_iiiiiii:ve, invoke_iiiiiiiiii:we, invoke_v:xe, invoke_vi:ye, invoke_vii:ze, invoke_viii:Ae, invoke_viiii:Be, invoke_viiiiii:Ce, invoke_viiiiiii:De, invoke_viiiiiiii:Ee, strftime_l:(a, b, c, d) => ke(a, b, c, d)};
|
|
3772
3793
|
(function() {
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3794
|
+
function a(c) {
|
|
3795
|
+
p = c = c.exports;
|
|
3796
|
+
xa = p.memory;
|
|
3797
|
+
Ca();
|
|
3798
|
+
Da = p.__indirect_function_table;
|
|
3799
|
+
Fa.unshift(p.__wasm_call_ctors);
|
|
3800
|
+
Ia--;
|
|
3801
|
+
m.monitorRunDependencies && m.monitorRunDependencies(Ia);
|
|
3802
|
+
if (0 == Ia && (null !== Ja && (clearInterval(Ja), Ja = null), Ka)) {
|
|
3803
|
+
var d = Ka;
|
|
3804
|
+
Ka = null;
|
|
3805
|
+
d();
|
|
3806
|
+
}
|
|
3807
|
+
return c;
|
|
3808
|
+
}
|
|
3809
|
+
var b = {env:Fe, wasi_snapshot_preview1:Fe,};
|
|
3810
|
+
Ia++;
|
|
3811
|
+
m.monitorRunDependencies && m.monitorRunDependencies(Ia);
|
|
3812
|
+
if (m.instantiateWasm) {
|
|
3813
|
+
try {
|
|
3814
|
+
return m.instantiateWasm(b, a);
|
|
3815
|
+
} catch (c) {
|
|
3816
|
+
ua("Module.instantiateWasm callback failed with error: " + c), ba(c);
|
|
3817
|
+
}
|
|
3818
|
+
}
|
|
3819
|
+
Ra(b, function(c) {
|
|
3820
|
+
a(c.instance);
|
|
3783
3821
|
}).catch(ba);
|
|
3784
3822
|
return {};
|
|
3785
3823
|
})();
|
|
3786
|
-
var
|
|
3787
|
-
m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten =
|
|
3788
|
-
m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten =
|
|
3789
|
-
var
|
|
3790
|
-
m.__embind_initialize_bindings = () => (m.__embind_initialize_bindings =
|
|
3791
|
-
var
|
|
3792
|
-
m.dynCall_iiiij = (a, b, c, d, e, f) => (m.dynCall_iiiij =
|
|
3793
|
-
m.dynCall_viiij = (a, b, c, d, e, f) => (m.dynCall_viiij =
|
|
3794
|
-
m.dynCall_iiij = (a, b, c, d, e) => (m.dynCall_iiij =
|
|
3795
|
-
m.dynCall_viij = (a, b, c, d, e) => (m.dynCall_viij =
|
|
3796
|
-
m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji =
|
|
3797
|
-
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji =
|
|
3798
|
-
m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji =
|
|
3799
|
-
m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij =
|
|
3800
|
-
m.dynCall_jii = (a, b, c) => (m.dynCall_jii =
|
|
3801
|
-
m.dynCall_viiiiij = (a, b, c, d, e, f, g, k) => (m.dynCall_viiiiij =
|
|
3802
|
-
m.dynCall_viji = (a, b, c, d, e) => (m.dynCall_viji =
|
|
3803
|
-
m.dynCall_ji = (a, b) => (m.dynCall_ji =
|
|
3804
|
-
m.dynCall_vij = (a, b, c, d) => (m.dynCall_vij =
|
|
3805
|
-
m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii =
|
|
3806
|
-
m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij =
|
|
3807
|
-
m.dynCall_iiiiijj = (a, b, c, d, e, f, g, k,
|
|
3808
|
-
m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k,
|
|
3809
|
-
function
|
|
3824
|
+
var Yd = a => (Yd = p.malloc)(a), tc = a => (tc = p.free)(a), Sa = m._ma_device__on_notification_unlocked = a => (Sa = m._ma_device__on_notification_unlocked = p.ma_device__on_notification_unlocked)(a);
|
|
3825
|
+
m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = p.ma_malloc_emscripten)(a, b);
|
|
3826
|
+
m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = p.ma_free_emscripten)(a, b);
|
|
3827
|
+
var Ta = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Ta = m._ma_device_process_pcm_frames_capture__webaudio = p.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Ua = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Ua = m._ma_device_process_pcm_frames_playback__webaudio = p.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), pe = () => (pe = p.__errno_location)(), sc = a => (sc = p.__getTypeName)(a);
|
|
3828
|
+
m.__embind_initialize_bindings = () => (m.__embind_initialize_bindings = p._embind_initialize_bindings)();
|
|
3829
|
+
var ub = (a, b) => (ub = p.emscripten_builtin_memalign)(a, b), X = (a, b) => (X = p.setThrew)(a, b), Y = () => (Y = p.stackSave)(), Z = a => (Z = p.stackRestore)(a);
|
|
3830
|
+
m.dynCall_iiiij = (a, b, c, d, e, f) => (m.dynCall_iiiij = p.dynCall_iiiij)(a, b, c, d, e, f);
|
|
3831
|
+
m.dynCall_viiij = (a, b, c, d, e, f) => (m.dynCall_viiij = p.dynCall_viiij)(a, b, c, d, e, f);
|
|
3832
|
+
m.dynCall_iiij = (a, b, c, d, e) => (m.dynCall_iiij = p.dynCall_iiij)(a, b, c, d, e);
|
|
3833
|
+
m.dynCall_viij = (a, b, c, d, e) => (m.dynCall_viij = p.dynCall_viij)(a, b, c, d, e);
|
|
3834
|
+
m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = p.dynCall_iiji)(a, b, c, d, e);
|
|
3835
|
+
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = p.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3836
|
+
m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = p.dynCall_jiji)(a, b, c, d, e);
|
|
3837
|
+
m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = p.dynCall_iij)(a, b, c, d);
|
|
3838
|
+
m.dynCall_jii = (a, b, c) => (m.dynCall_jii = p.dynCall_jii)(a, b, c);
|
|
3839
|
+
m.dynCall_viiiiij = (a, b, c, d, e, f, g, k) => (m.dynCall_viiiiij = p.dynCall_viiiiij)(a, b, c, d, e, f, g, k);
|
|
3840
|
+
m.dynCall_viji = (a, b, c, d, e) => (m.dynCall_viji = p.dynCall_viji)(a, b, c, d, e);
|
|
3841
|
+
m.dynCall_ji = (a, b) => (m.dynCall_ji = p.dynCall_ji)(a, b);
|
|
3842
|
+
m.dynCall_vij = (a, b, c, d) => (m.dynCall_vij = p.dynCall_vij)(a, b, c, d);
|
|
3843
|
+
m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = p.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3844
|
+
m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = p.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3845
|
+
m.dynCall_iiiiijj = (a, b, c, d, e, f, g, k, q) => (m.dynCall_iiiiijj = p.dynCall_iiiiijj)(a, b, c, d, e, f, g, k, q);
|
|
3846
|
+
m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, q, n) => (m.dynCall_iiiiiijj = p.dynCall_iiiiiijj)(a, b, c, d, e, f, g, k, q, n);
|
|
3847
|
+
function qe(a, b) {
|
|
3810
3848
|
var c = Y();
|
|
3811
3849
|
try {
|
|
3812
3850
|
return Q(a)(b);
|
|
@@ -3818,7 +3856,7 @@ function le(a, b) {
|
|
|
3818
3856
|
X(1, 0);
|
|
3819
3857
|
}
|
|
3820
3858
|
}
|
|
3821
|
-
function
|
|
3859
|
+
function ze(a, b, c) {
|
|
3822
3860
|
var d = Y();
|
|
3823
3861
|
try {
|
|
3824
3862
|
Q(a)(b, c);
|
|
@@ -3830,7 +3868,7 @@ function ue(a, b, c) {
|
|
|
3830
3868
|
X(1, 0);
|
|
3831
3869
|
}
|
|
3832
3870
|
}
|
|
3833
|
-
function
|
|
3871
|
+
function ye(a, b) {
|
|
3834
3872
|
var c = Y();
|
|
3835
3873
|
try {
|
|
3836
3874
|
Q(a)(b);
|
|
@@ -3842,7 +3880,7 @@ function te(a, b) {
|
|
|
3842
3880
|
X(1, 0);
|
|
3843
3881
|
}
|
|
3844
3882
|
}
|
|
3845
|
-
function
|
|
3883
|
+
function se(a, b, c, d) {
|
|
3846
3884
|
var e = Y();
|
|
3847
3885
|
try {
|
|
3848
3886
|
return Q(a)(b, c, d);
|
|
@@ -3854,7 +3892,7 @@ function ne(a, b, c, d) {
|
|
|
3854
3892
|
X(1, 0);
|
|
3855
3893
|
}
|
|
3856
3894
|
}
|
|
3857
|
-
function
|
|
3895
|
+
function Ae(a, b, c, d) {
|
|
3858
3896
|
var e = Y();
|
|
3859
3897
|
try {
|
|
3860
3898
|
Q(a)(b, c, d);
|
|
@@ -3866,7 +3904,7 @@ function ve(a, b, c, d) {
|
|
|
3866
3904
|
X(1, 0);
|
|
3867
3905
|
}
|
|
3868
3906
|
}
|
|
3869
|
-
function
|
|
3907
|
+
function Be(a, b, c, d, e) {
|
|
3870
3908
|
var f = Y();
|
|
3871
3909
|
try {
|
|
3872
3910
|
Q(a)(b, c, d, e);
|
|
@@ -3878,7 +3916,7 @@ function we(a, b, c, d, e) {
|
|
|
3878
3916
|
X(1, 0);
|
|
3879
3917
|
}
|
|
3880
3918
|
}
|
|
3881
|
-
function
|
|
3919
|
+
function xe(a) {
|
|
3882
3920
|
var b = Y();
|
|
3883
3921
|
try {
|
|
3884
3922
|
Q(a)();
|
|
@@ -3890,19 +3928,19 @@ function se(a) {
|
|
|
3890
3928
|
X(1, 0);
|
|
3891
3929
|
}
|
|
3892
3930
|
}
|
|
3893
|
-
function
|
|
3931
|
+
function ve(a, b, c, d, e, f, g) {
|
|
3894
3932
|
var k = Y();
|
|
3895
3933
|
try {
|
|
3896
3934
|
return Q(a)(b, c, d, e, f, g);
|
|
3897
|
-
} catch (
|
|
3935
|
+
} catch (q) {
|
|
3898
3936
|
Z(k);
|
|
3899
|
-
if (
|
|
3900
|
-
throw
|
|
3937
|
+
if (q !== q + 0) {
|
|
3938
|
+
throw q;
|
|
3901
3939
|
}
|
|
3902
3940
|
X(1, 0);
|
|
3903
3941
|
}
|
|
3904
3942
|
}
|
|
3905
|
-
function
|
|
3943
|
+
function re(a, b, c) {
|
|
3906
3944
|
var d = Y();
|
|
3907
3945
|
try {
|
|
3908
3946
|
return Q(a)(b, c);
|
|
@@ -3914,22 +3952,22 @@ function me(a, b, c) {
|
|
|
3914
3952
|
X(1, 0);
|
|
3915
3953
|
}
|
|
3916
3954
|
}
|
|
3917
|
-
function
|
|
3918
|
-
var
|
|
3955
|
+
function De(a, b, c, d, e, f, g, k) {
|
|
3956
|
+
var q = Y();
|
|
3919
3957
|
try {
|
|
3920
3958
|
Q(a)(b, c, d, e, f, g, k);
|
|
3921
3959
|
} catch (n) {
|
|
3922
|
-
Z(
|
|
3960
|
+
Z(q);
|
|
3923
3961
|
if (n !== n + 0) {
|
|
3924
3962
|
throw n;
|
|
3925
3963
|
}
|
|
3926
3964
|
X(1, 0);
|
|
3927
3965
|
}
|
|
3928
3966
|
}
|
|
3929
|
-
function
|
|
3967
|
+
function we(a, b, c, d, e, f, g, k, q, n) {
|
|
3930
3968
|
var u = Y();
|
|
3931
3969
|
try {
|
|
3932
|
-
return Q(a)(b, c, d, e, f, g, k,
|
|
3970
|
+
return Q(a)(b, c, d, e, f, g, k, q, n);
|
|
3933
3971
|
} catch (v) {
|
|
3934
3972
|
Z(u);
|
|
3935
3973
|
if (v !== v + 0) {
|
|
@@ -3938,7 +3976,7 @@ function re(a, b, c, d, e, f, g, k, p, n) {
|
|
|
3938
3976
|
X(1, 0);
|
|
3939
3977
|
}
|
|
3940
3978
|
}
|
|
3941
|
-
function
|
|
3979
|
+
function te(a, b, c, d, e) {
|
|
3942
3980
|
var f = Y();
|
|
3943
3981
|
try {
|
|
3944
3982
|
return Q(a)(b, c, d, e);
|
|
@@ -3950,10 +3988,10 @@ function oe(a, b, c, d, e) {
|
|
|
3950
3988
|
X(1, 0);
|
|
3951
3989
|
}
|
|
3952
3990
|
}
|
|
3953
|
-
function
|
|
3991
|
+
function Ee(a, b, c, d, e, f, g, k, q) {
|
|
3954
3992
|
var n = Y();
|
|
3955
3993
|
try {
|
|
3956
|
-
Q(a)(b, c, d, e, f, g, k,
|
|
3994
|
+
Q(a)(b, c, d, e, f, g, k, q);
|
|
3957
3995
|
} catch (u) {
|
|
3958
3996
|
Z(n);
|
|
3959
3997
|
if (u !== u + 0) {
|
|
@@ -3962,7 +4000,7 @@ function ze(a, b, c, d, e, f, g, k, p) {
|
|
|
3962
4000
|
X(1, 0);
|
|
3963
4001
|
}
|
|
3964
4002
|
}
|
|
3965
|
-
function
|
|
4003
|
+
function ue(a, b, c, d, e, f) {
|
|
3966
4004
|
var g = Y();
|
|
3967
4005
|
try {
|
|
3968
4006
|
return Q(a)(b, c, d, e, f);
|
|
@@ -3974,44 +4012,63 @@ function pe(a, b, c, d, e, f) {
|
|
|
3974
4012
|
X(1, 0);
|
|
3975
4013
|
}
|
|
3976
4014
|
}
|
|
3977
|
-
function
|
|
4015
|
+
function Ce(a, b, c, d, e, f, g) {
|
|
3978
4016
|
var k = Y();
|
|
3979
4017
|
try {
|
|
3980
4018
|
Q(a)(b, c, d, e, f, g);
|
|
3981
|
-
} catch (
|
|
4019
|
+
} catch (q) {
|
|
3982
4020
|
Z(k);
|
|
3983
|
-
if (
|
|
3984
|
-
throw
|
|
4021
|
+
if (q !== q + 0) {
|
|
4022
|
+
throw q;
|
|
3985
4023
|
}
|
|
3986
4024
|
X(1, 0);
|
|
3987
4025
|
}
|
|
3988
4026
|
}
|
|
3989
|
-
var
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
4027
|
+
var Ge;
|
|
4028
|
+
Ka = function He() {
|
|
4029
|
+
Ge || Ie();
|
|
4030
|
+
Ge || (Ka = He);
|
|
3993
4031
|
};
|
|
3994
|
-
function
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
m.noFSInit || Sb || (Sb = !0, Rb(), m.stdin = m.stdin, m.stdout = m.stdout, m.stderr = m.stderr, m.stdin ? Ub("stdin", m.stdin) : Nb("/dev/tty", "/dev/stdin"), m.stdout ? Ub("stdout", null, m.stdout) : Nb("/dev/tty", "/dev/stdout"), m.stderr ? Ub("stderr", null, m.stderr) : Nb("/dev/tty1", "/dev/stderr"), Pb("/dev/stdin", 0), Pb("/dev/stdout", 1), Pb("/dev/stderr", 1));
|
|
4001
|
-
for (wb = !1; 0 < Da.length;) {
|
|
4002
|
-
Da.shift()(m);
|
|
4003
|
-
}
|
|
4032
|
+
function Ie() {
|
|
4033
|
+
function a() {
|
|
4034
|
+
if (!Ge && (Ge = !0, m.calledRun = !0, !ya)) {
|
|
4035
|
+
m.noFSInit || Xb || (Xb = !0, Wb(), m.stdin = m.stdin, m.stdout = m.stdout, m.stderr = m.stderr, m.stdin ? Zb("stdin", m.stdin) : Sb("/dev/tty", "/dev/stdin"), m.stdout ? Zb("stdout", null, m.stdout) : Sb("/dev/tty", "/dev/stdout"), m.stderr ? Zb("stderr", null, m.stderr) : Sb("/dev/tty1", "/dev/stderr"), Ub("/dev/stdin", 0), Ub("/dev/stdout", 1), Ub("/dev/stderr", 1));
|
|
4036
|
+
Bb = !1;
|
|
4037
|
+
Wa(Fa);
|
|
4004
4038
|
aa(m);
|
|
4005
4039
|
if (m.onRuntimeInitialized) {
|
|
4006
4040
|
m.onRuntimeInitialized();
|
|
4007
4041
|
}
|
|
4008
|
-
|
|
4009
|
-
|
|
4042
|
+
if (m.postRun) {
|
|
4043
|
+
for ("function" == typeof m.postRun && (m.postRun = [m.postRun]); m.postRun.length;) {
|
|
4044
|
+
var b = m.postRun.shift();
|
|
4045
|
+
Ga.unshift(b);
|
|
4046
|
+
}
|
|
4047
|
+
}
|
|
4048
|
+
Wa(Ga);
|
|
4049
|
+
}
|
|
4050
|
+
}
|
|
4051
|
+
if (!(0 < Ia)) {
|
|
4052
|
+
if (m.preRun) {
|
|
4053
|
+
for ("function" == typeof m.preRun && (m.preRun = [m.preRun]); m.preRun.length;) {
|
|
4054
|
+
Ha();
|
|
4010
4055
|
}
|
|
4011
4056
|
}
|
|
4057
|
+
Wa(Ea);
|
|
4058
|
+
0 < Ia || (m.setStatus ? (m.setStatus("Running..."), setTimeout(function() {
|
|
4059
|
+
setTimeout(function() {
|
|
4060
|
+
m.setStatus("");
|
|
4061
|
+
}, 1);
|
|
4062
|
+
a();
|
|
4063
|
+
}, 1)) : a());
|
|
4064
|
+
}
|
|
4065
|
+
}
|
|
4066
|
+
if (m.preInit) {
|
|
4067
|
+
for ("function" == typeof m.preInit && (m.preInit = [m.preInit]); 0 < m.preInit.length;) {
|
|
4068
|
+
m.preInit.pop()();
|
|
4012
4069
|
}
|
|
4013
4070
|
}
|
|
4014
|
-
|
|
4071
|
+
Ie();
|
|
4015
4072
|
|
|
4016
4073
|
|
|
4017
4074
|
|