@rive-app/webgl2 2.11.0 → 2.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rive.js +1130 -1073
- package/rive.js.map +1 -1
package/rive.js
CHANGED
|
@@ -26,9 +26,9 @@ var Rive = (() => {
|
|
|
26
26
|
return (
|
|
27
27
|
function(moduleArg = {}) {
|
|
28
28
|
|
|
29
|
-
var
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
var n = moduleArg, aa, ca;
|
|
30
|
+
n.ready = new Promise((a, b) => {
|
|
31
|
+
aa = a;
|
|
32
32
|
ca = b;
|
|
33
33
|
});
|
|
34
34
|
function da() {
|
|
@@ -36,9 +36,9 @@ function da() {
|
|
|
36
36
|
const m = d;
|
|
37
37
|
c = b = 0;
|
|
38
38
|
d = new Map();
|
|
39
|
-
m.forEach(
|
|
39
|
+
m.forEach(p => {
|
|
40
40
|
try {
|
|
41
|
-
|
|
41
|
+
p(g);
|
|
42
42
|
} catch (l) {
|
|
43
43
|
console.error(l);
|
|
44
44
|
}
|
|
@@ -63,10 +63,10 @@ function da() {
|
|
|
63
63
|
f.innerHTML = "RIVE FPS " + m.toFixed(1);
|
|
64
64
|
}, document.body.appendChild(f));
|
|
65
65
|
e = new function() {
|
|
66
|
-
let m = 0,
|
|
66
|
+
let m = 0, p = 0;
|
|
67
67
|
this.Pb = function() {
|
|
68
68
|
var l = performance.now();
|
|
69
|
-
|
|
69
|
+
p ? (++m, l -= p, 1000 < l && (g(1000 * m / l), m = p = 0)) : (p = l, m = 0);
|
|
70
70
|
};
|
|
71
71
|
}();
|
|
72
72
|
};
|
|
@@ -88,30 +88,30 @@ function ea() {
|
|
|
88
88
|
return b << 8;
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
const fa =
|
|
92
|
-
|
|
91
|
+
const fa = n.onRuntimeInitialized;
|
|
92
|
+
n.onRuntimeInitialized = function() {
|
|
93
93
|
fa && fa();
|
|
94
|
-
let a =
|
|
95
|
-
|
|
94
|
+
let a = n.decodeFont;
|
|
95
|
+
n.decodeFont = function(c, d) {
|
|
96
96
|
c = a(c);
|
|
97
97
|
d(c);
|
|
98
98
|
};
|
|
99
|
-
const b =
|
|
100
|
-
|
|
101
|
-
let d =
|
|
102
|
-
return d.isImage ?
|
|
99
|
+
const b = n.FileAssetLoader;
|
|
100
|
+
n.ptrToAsset = c => {
|
|
101
|
+
let d = n.ptrToFileAsset(c);
|
|
102
|
+
return d.isImage ? n.ptrToImageAsset(c) : d.isFont ? n.ptrToFontAsset(c) : d;
|
|
103
103
|
};
|
|
104
|
-
|
|
104
|
+
n.CustomFileAssetLoader = b.extend("CustomFileAssetLoader", {__construct:function({loadContents:c}) {
|
|
105
105
|
this.__parent.__construct.call(this);
|
|
106
106
|
this.Ab = c;
|
|
107
107
|
}, loadContents:function(c, d) {
|
|
108
|
-
c =
|
|
108
|
+
c = n.ptrToAsset(c);
|
|
109
109
|
return this.Ab(c, d);
|
|
110
110
|
},});
|
|
111
|
-
|
|
111
|
+
n.CDNFileAssetLoader = b.extend("CDNFileAssetLoader", {__construct:function() {
|
|
112
112
|
this.__parent.__construct.call(this);
|
|
113
113
|
}, loadContents:function(c) {
|
|
114
|
-
let d =
|
|
114
|
+
let d = n.ptrToAsset(c);
|
|
115
115
|
c = d.cdnUuid;
|
|
116
116
|
if ("" === c) {
|
|
117
117
|
return !1;
|
|
@@ -129,7 +129,7 @@ p.onRuntimeInitialized = function() {
|
|
|
129
129
|
});
|
|
130
130
|
return !0;
|
|
131
131
|
},});
|
|
132
|
-
|
|
132
|
+
n.FallbackFileAssetLoader = b.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
133
133
|
this.__parent.__construct.call(this);
|
|
134
134
|
this.fb = [];
|
|
135
135
|
}, addLoader:function(c) {
|
|
@@ -143,8 +143,8 @@ p.onRuntimeInitialized = function() {
|
|
|
143
143
|
return !1;
|
|
144
144
|
},});
|
|
145
145
|
};
|
|
146
|
-
const ha =
|
|
147
|
-
|
|
146
|
+
const ha = n.onRuntimeInitialized;
|
|
147
|
+
n.onRuntimeInitialized = function() {
|
|
148
148
|
function a(q) {
|
|
149
149
|
this.F = q;
|
|
150
150
|
this.yb = q.getContext("2d");
|
|
@@ -208,8 +208,8 @@ p.onRuntimeInitialized = function() {
|
|
|
208
208
|
}
|
|
209
209
|
k = Math.min(k, q);
|
|
210
210
|
k = Math.min(r, q);
|
|
211
|
-
z.sort((
|
|
212
|
-
w = new
|
|
211
|
+
z.sort((ba, tb) => tb.Ia - ba.Ia);
|
|
212
|
+
w = new n.DynamicRectanizer(q);
|
|
213
213
|
for (A = 0; A < z.length;) {
|
|
214
214
|
w.reset(k, r);
|
|
215
215
|
for (G = A; G < z.length; ++G) {
|
|
@@ -222,7 +222,7 @@ p.onRuntimeInitialized = function() {
|
|
|
222
222
|
H.ta = E >> 16;
|
|
223
223
|
}
|
|
224
224
|
H = m.push(w.drawWidth());
|
|
225
|
-
E =
|
|
225
|
+
E = p.push(w.drawHeight());
|
|
226
226
|
console.assert(H >= w.drawWidth());
|
|
227
227
|
console.assert(E >= w.drawHeight());
|
|
228
228
|
console.assert(H <= q);
|
|
@@ -233,15 +233,15 @@ p.onRuntimeInitialized = function() {
|
|
|
233
233
|
for (H = A; H < G; ++H) {
|
|
234
234
|
E = z[H];
|
|
235
235
|
d.saveClipRect(E.sa, E.ta, E.sa + E.ea, E.ta + E.da);
|
|
236
|
-
let
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
d.transform(
|
|
243
|
-
for (const
|
|
244
|
-
|
|
236
|
+
let ba = new n.Mat2D();
|
|
237
|
+
ba.xx = E.ea / E.F.width;
|
|
238
|
+
ba.yy = E.da / E.F.height;
|
|
239
|
+
ba.xy = ba.yx = 0;
|
|
240
|
+
ba.tx = E.sa;
|
|
241
|
+
ba.ty = E.ta;
|
|
242
|
+
d.transform(ba);
|
|
243
|
+
for (const tb of E.U) {
|
|
244
|
+
tb();
|
|
245
245
|
}
|
|
246
246
|
d.restoreClipRect();
|
|
247
247
|
E.U = [];
|
|
@@ -256,8 +256,8 @@ p.onRuntimeInitialized = function() {
|
|
|
256
256
|
}
|
|
257
257
|
ha && ha();
|
|
258
258
|
let d = null;
|
|
259
|
-
const e = new Set(), f =
|
|
260
|
-
|
|
259
|
+
const e = new Set(), f = n.makeRenderer;
|
|
260
|
+
n.makeRenderer = function(q, k) {
|
|
261
261
|
if (!d) {
|
|
262
262
|
function r(w) {
|
|
263
263
|
const z = document.createElement("canvas");
|
|
@@ -273,25 +273,25 @@ p.onRuntimeInitialized = function() {
|
|
|
273
273
|
}
|
|
274
274
|
return k ? new a(q) : b(q, !d.Ja);
|
|
275
275
|
};
|
|
276
|
-
const g =
|
|
277
|
-
|
|
276
|
+
const g = n.Artboard.prototype.draw;
|
|
277
|
+
n.Artboard.prototype.draw = function(q) {
|
|
278
278
|
q.U ? q.U.push(g.bind(this, q.Cb)) : g.call(this, q);
|
|
279
279
|
};
|
|
280
|
-
const m = new ea(),
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
280
|
+
const m = new ea(), p = new ea(), l = new da();
|
|
281
|
+
n.requestAnimationFrame = l.requestAnimationFrame.bind(l);
|
|
282
|
+
n.cancelAnimationFrame = l.cancelAnimationFrame.bind(l);
|
|
283
|
+
n.enableFPSCounter = l.Nb.bind(l);
|
|
284
284
|
l.jb = c;
|
|
285
|
-
|
|
286
|
-
let u =
|
|
287
|
-
|
|
288
|
-
const w = new
|
|
285
|
+
n.resolveAnimationFrame = c;
|
|
286
|
+
let u = n.load;
|
|
287
|
+
n.load = function(q, k, r = !0) {
|
|
288
|
+
const w = new n.FallbackFileAssetLoader();
|
|
289
289
|
void 0 !== k && w.addLoader(k);
|
|
290
|
-
r && (k = new
|
|
290
|
+
r && (k = new n.CDNFileAssetLoader(), w.addLoader(k));
|
|
291
291
|
return Promise.resolve(u(q, w));
|
|
292
292
|
};
|
|
293
|
-
const v =
|
|
294
|
-
|
|
293
|
+
const v = n.WebGL2Renderer.prototype.clear;
|
|
294
|
+
n.WebGL2Renderer.prototype.clear = function() {
|
|
295
295
|
ka(this.zb);
|
|
296
296
|
const q = this.F;
|
|
297
297
|
if (this.Va != q.width || this.Ua != q.height) {
|
|
@@ -299,14 +299,14 @@ p.onRuntimeInitialized = function() {
|
|
|
299
299
|
}
|
|
300
300
|
v.call(this);
|
|
301
301
|
};
|
|
302
|
-
|
|
303
|
-
q =
|
|
302
|
+
n.decodeImage = function(q, k) {
|
|
303
|
+
q = n.decodeWebGL2Image(q);
|
|
304
304
|
k(q);
|
|
305
305
|
};
|
|
306
306
|
};
|
|
307
|
-
var la = Object.assign({},
|
|
308
|
-
if (
|
|
309
|
-
|
|
307
|
+
var la = Object.assign({}, n), ma = "./this.program", na = "object" == typeof window, oa = "function" == typeof importScripts, x = "", pa, qa;
|
|
308
|
+
if (na || oa) {
|
|
309
|
+
oa ? x = self.location.href : "undefined" != typeof document && document.currentScript && (x = document.currentScript.src), _scriptDir && (x = _scriptDir), 0 !== x.indexOf("blob:") ? x = x.substr(0, x.replace(/[?#].*/, "").lastIndexOf("/") + 1) : x = "", oa && (qa = a => {
|
|
310
310
|
var b = new XMLHttpRequest();
|
|
311
311
|
b.open("GET", a, !1);
|
|
312
312
|
b.responseType = "arraybuffer";
|
|
@@ -323,53 +323,70 @@ if (ma || na) {
|
|
|
323
323
|
d.send(null);
|
|
324
324
|
};
|
|
325
325
|
}
|
|
326
|
-
var ra = console.log.bind(console), sa = console.error.bind(console);
|
|
327
|
-
Object.assign(
|
|
326
|
+
var ra = n.print || console.log.bind(console), sa = n.printErr || console.error.bind(console);
|
|
327
|
+
Object.assign(n, la);
|
|
328
328
|
la = null;
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
329
|
+
n.thisProgram && (ma = n.thisProgram);
|
|
330
|
+
var ta;
|
|
331
|
+
n.wasmBinary && (ta = n.wasmBinary);
|
|
332
|
+
var noExitRuntime = n.noExitRuntime || !0;
|
|
333
|
+
"object" != typeof WebAssembly && ua("no native wasm support detected");
|
|
334
|
+
var va, y, wa = !1, B, C, D, xa, F, I, ya, za;
|
|
335
|
+
function Aa() {
|
|
336
|
+
var a = va.buffer;
|
|
337
|
+
n.HEAP8 = B = new Int8Array(a);
|
|
338
|
+
n.HEAP16 = D = new Int16Array(a);
|
|
339
|
+
n.HEAP32 = F = new Int32Array(a);
|
|
340
|
+
n.HEAPU8 = C = new Uint8Array(a);
|
|
341
|
+
n.HEAPU16 = xa = new Uint16Array(a);
|
|
342
|
+
n.HEAPU32 = I = new Uint32Array(a);
|
|
343
|
+
n.HEAPF32 = ya = new Float32Array(a);
|
|
344
|
+
n.HEAPF64 = za = new Float64Array(a);
|
|
342
345
|
}
|
|
343
|
-
var
|
|
344
|
-
function
|
|
346
|
+
var Ba, Ca = [], Da = [], Ea = [];
|
|
347
|
+
function Fa() {
|
|
348
|
+
var a = n.preRun.shift();
|
|
349
|
+
Ca.unshift(a);
|
|
350
|
+
}
|
|
351
|
+
var Ga = 0, Ha = null, Ia = null;
|
|
352
|
+
function ua(a) {
|
|
353
|
+
if (n.onAbort) {
|
|
354
|
+
n.onAbort(a);
|
|
355
|
+
}
|
|
345
356
|
a = "Aborted(" + a + ")";
|
|
346
357
|
sa(a);
|
|
347
|
-
|
|
358
|
+
wa = !0;
|
|
348
359
|
a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
|
|
349
360
|
ca(a);
|
|
350
361
|
throw a;
|
|
351
362
|
}
|
|
352
|
-
function
|
|
363
|
+
function Ja(a) {
|
|
353
364
|
return a.startsWith("data:application/octet-stream;base64,");
|
|
354
365
|
}
|
|
355
|
-
var
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
366
|
+
var Ka;
|
|
367
|
+
Ka = "webgl2_advanced.wasm";
|
|
368
|
+
if (!Ja(Ka)) {
|
|
369
|
+
var La = Ka;
|
|
370
|
+
Ka = n.locateFile ? n.locateFile(La, x) : x + La;
|
|
371
|
+
}
|
|
372
|
+
function Ma(a) {
|
|
373
|
+
if (a == Ka && ta) {
|
|
374
|
+
return new Uint8Array(ta);
|
|
375
|
+
}
|
|
359
376
|
if (qa) {
|
|
360
377
|
return qa(a);
|
|
361
378
|
}
|
|
362
379
|
throw "both async and sync fetching of the wasm failed";
|
|
363
380
|
}
|
|
364
|
-
function
|
|
365
|
-
if (
|
|
381
|
+
function Na(a) {
|
|
382
|
+
if (!ta && (na || oa)) {
|
|
366
383
|
if ("function" == typeof fetch && !a.startsWith("file://")) {
|
|
367
384
|
return fetch(a, {credentials:"same-origin"}).then(b => {
|
|
368
385
|
if (!b.ok) {
|
|
369
386
|
throw "failed to load wasm binary file at '" + a + "'";
|
|
370
387
|
}
|
|
371
388
|
return b.arrayBuffer();
|
|
372
|
-
}).catch(() =>
|
|
389
|
+
}).catch(() => Ma(a));
|
|
373
390
|
}
|
|
374
391
|
if (pa) {
|
|
375
392
|
return new Promise((b, c) => {
|
|
@@ -377,23 +394,23 @@ function Ka(a) {
|
|
|
377
394
|
});
|
|
378
395
|
}
|
|
379
396
|
}
|
|
380
|
-
return Promise.resolve().then(() =>
|
|
397
|
+
return Promise.resolve().then(() => Ma(a));
|
|
381
398
|
}
|
|
382
|
-
function
|
|
383
|
-
return
|
|
399
|
+
function Oa(a, b, c) {
|
|
400
|
+
return Na(a).then(d => WebAssembly.instantiate(d, b)).then(d => d).then(c, d => {
|
|
384
401
|
sa("failed to asynchronously prepare wasm: " + d);
|
|
385
|
-
|
|
402
|
+
ua(d);
|
|
386
403
|
});
|
|
387
404
|
}
|
|
388
|
-
function
|
|
389
|
-
var c =
|
|
390
|
-
return "function" != typeof WebAssembly.instantiateStreaming ||
|
|
405
|
+
function Pa(a, b) {
|
|
406
|
+
var c = Ka;
|
|
407
|
+
return ta || "function" != typeof WebAssembly.instantiateStreaming || Ja(c) || c.startsWith("file://") || "function" != typeof fetch ? Oa(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
|
|
391
408
|
sa("wasm streaming compile failed: " + e);
|
|
392
409
|
sa("falling back to ArrayBuffer instantiation");
|
|
393
|
-
return
|
|
410
|
+
return Oa(c, a, b);
|
|
394
411
|
}));
|
|
395
412
|
}
|
|
396
|
-
var
|
|
413
|
+
var J, K, Ta = {264968:(a, b, c, d, e) => {
|
|
397
414
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
398
415
|
return 0;
|
|
399
416
|
}
|
|
@@ -441,13 +458,13 @@ var I, J, Qa = {264968:(a, b, c, d, e) => {
|
|
|
441
458
|
for (var g = 0; g < f.C.length; ++g) {
|
|
442
459
|
var m = f.C[g];
|
|
443
460
|
null != m && null != m.J && m.state === f.ha.sb && m.J.resume().then(() => {
|
|
444
|
-
|
|
445
|
-
},
|
|
446
|
-
console.error("Failed to resume audiocontext",
|
|
461
|
+
Qa(m.kb);
|
|
462
|
+
}, p => {
|
|
463
|
+
console.error("Failed to resume audiocontext", p);
|
|
447
464
|
});
|
|
448
465
|
}
|
|
449
|
-
f.wb.map(function(
|
|
450
|
-
document.removeEventListener(
|
|
466
|
+
f.wb.map(function(p) {
|
|
467
|
+
document.removeEventListener(p, f.unlock, !0);
|
|
451
468
|
});
|
|
452
469
|
};
|
|
453
470
|
f.wb.map(function(g) {
|
|
@@ -478,36 +495,36 @@ var I, J, Qa = {264968:(a, b, c, d, e) => {
|
|
|
478
495
|
c = 0;
|
|
479
496
|
a != window.h.I.Ca && (c = b);
|
|
480
497
|
g.Z = g.J.createScriptProcessor(d, c, b);
|
|
481
|
-
g.Z.onaudioprocess = function(
|
|
498
|
+
g.Z.onaudioprocess = function(p) {
|
|
482
499
|
if (null == g.xa || 0 == g.xa.length) {
|
|
483
|
-
g.xa = new Float32Array(
|
|
500
|
+
g.xa = new Float32Array(ya.buffer, e, d * b);
|
|
484
501
|
}
|
|
485
502
|
if (a == window.h.I.capture || a == window.h.I.La) {
|
|
486
503
|
for (var l = 0; l < b; l += 1) {
|
|
487
|
-
for (var u =
|
|
504
|
+
for (var u = p.inputBuffer.getChannelData(l), v = g.xa, q = 0; q < d; q += 1) {
|
|
488
505
|
v[q * b + l] = u[q];
|
|
489
506
|
}
|
|
490
507
|
}
|
|
491
|
-
|
|
508
|
+
Ra(f, d, e);
|
|
492
509
|
}
|
|
493
510
|
if (a == window.h.I.Ca || a == window.h.I.La) {
|
|
494
|
-
for (
|
|
495
|
-
for (u =
|
|
511
|
+
for (Sa(f, d, e), l = 0; l < p.outputBuffer.numberOfChannels; ++l) {
|
|
512
|
+
for (u = p.outputBuffer.getChannelData(l), v = g.xa, q = 0; q < d; q += 1) {
|
|
496
513
|
u[q] = v[q * b + l];
|
|
497
514
|
}
|
|
498
515
|
}
|
|
499
516
|
} else {
|
|
500
|
-
for (l = 0; l <
|
|
501
|
-
|
|
517
|
+
for (l = 0; l < p.outputBuffer.numberOfChannels; ++l) {
|
|
518
|
+
p.outputBuffer.getChannelData(l).fill(0.0);
|
|
502
519
|
}
|
|
503
520
|
}
|
|
504
521
|
};
|
|
505
|
-
a != window.h.I.capture && a != window.h.I.La || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(
|
|
506
|
-
g.Ea = g.J.createMediaStreamSource(
|
|
522
|
+
a != window.h.I.capture && a != window.h.I.La || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(p) {
|
|
523
|
+
g.Ea = g.J.createMediaStreamSource(p);
|
|
507
524
|
g.Ea.connect(g.Z);
|
|
508
525
|
g.Z.connect(g.J.destination);
|
|
509
|
-
}).catch(function(
|
|
510
|
-
console.log("Failed to get user media: " +
|
|
526
|
+
}).catch(function(p) {
|
|
527
|
+
console.log("Failed to get user media: " + p);
|
|
511
528
|
});
|
|
512
529
|
a == window.h.I.Ca && g.Z.connect(g.J.destination);
|
|
513
530
|
g.kb = f;
|
|
@@ -530,7 +547,11 @@ var I, J, Qa = {264968:(a, b, c, d, e) => {
|
|
|
530
547
|
a = window.h.wa(a);
|
|
531
548
|
a.J.suspend();
|
|
532
549
|
a.state = window.h.ha.stopped;
|
|
533
|
-
}},
|
|
550
|
+
}}, Ua = a => {
|
|
551
|
+
for (; 0 < a.length;) {
|
|
552
|
+
a.shift()(n);
|
|
553
|
+
}
|
|
554
|
+
}, Va = (a, b) => {
|
|
534
555
|
for (var c = 0, d = a.length - 1; 0 <= d; d--) {
|
|
535
556
|
var e = a[d];
|
|
536
557
|
"." === e ? a.splice(d, 1) : ".." === e ? (a.splice(d, 1), c++) : c && (a.splice(d, 1), c--);
|
|
@@ -541,12 +562,12 @@ var I, J, Qa = {264968:(a, b, c, d, e) => {
|
|
|
541
562
|
}
|
|
542
563
|
}
|
|
543
564
|
return a;
|
|
544
|
-
},
|
|
565
|
+
}, Wa = a => {
|
|
545
566
|
var b = "/" === a.charAt(0), c = "/" === a.substr(-1);
|
|
546
|
-
(a =
|
|
567
|
+
(a = Va(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
|
|
547
568
|
a && c && (a += "/");
|
|
548
569
|
return (b ? "/" : "") + a;
|
|
549
|
-
},
|
|
570
|
+
}, Xa = a => {
|
|
550
571
|
var b = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);
|
|
551
572
|
a = b[0];
|
|
552
573
|
b = b[1];
|
|
@@ -555,21 +576,21 @@ var I, J, Qa = {264968:(a, b, c, d, e) => {
|
|
|
555
576
|
}
|
|
556
577
|
b && (b = b.substr(0, b.length - 1));
|
|
557
578
|
return a + b;
|
|
558
|
-
},
|
|
579
|
+
}, Ya = a => {
|
|
559
580
|
if ("/" === a) {
|
|
560
581
|
return "/";
|
|
561
582
|
}
|
|
562
|
-
a =
|
|
583
|
+
a = Wa(a);
|
|
563
584
|
a = a.replace(/\/$/, "");
|
|
564
585
|
var b = a.lastIndexOf("/");
|
|
565
586
|
return -1 === b ? a : a.substr(b + 1);
|
|
566
|
-
},
|
|
587
|
+
}, Za = () => {
|
|
567
588
|
if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
|
|
568
589
|
return a => crypto.getRandomValues(a);
|
|
569
590
|
}
|
|
570
|
-
|
|
571
|
-
},
|
|
572
|
-
function
|
|
591
|
+
ua("initRandomDevice");
|
|
592
|
+
}, $a = a => ($a = Za())(a);
|
|
593
|
+
function ab() {
|
|
573
594
|
for (var a = "", b = !1, c = arguments.length - 1; -1 <= c && !b; c--) {
|
|
574
595
|
b = 0 <= c ? arguments[c] : "/";
|
|
575
596
|
if ("string" != typeof b) {
|
|
@@ -581,16 +602,16 @@ function Xa() {
|
|
|
581
602
|
a = b + "/" + a;
|
|
582
603
|
b = "/" === b.charAt(0);
|
|
583
604
|
}
|
|
584
|
-
a =
|
|
605
|
+
a = Va(a.split("/").filter(d => !!d), !b).join("/");
|
|
585
606
|
return (b ? "/" : "") + a || ".";
|
|
586
607
|
}
|
|
587
|
-
var
|
|
608
|
+
var bb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, L = (a, b, c) => {
|
|
588
609
|
var d = b + c;
|
|
589
610
|
for (c = b; a[c] && !(c >= d);) {
|
|
590
611
|
++c;
|
|
591
612
|
}
|
|
592
|
-
if (16 < c - b && a.buffer &&
|
|
593
|
-
return
|
|
613
|
+
if (16 < c - b && a.buffer && bb) {
|
|
614
|
+
return bb.decode(a.subarray(b, c));
|
|
594
615
|
}
|
|
595
616
|
for (d = ""; b < c;) {
|
|
596
617
|
var e = a[b++];
|
|
@@ -608,13 +629,13 @@ var Ya = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, K
|
|
|
608
629
|
}
|
|
609
630
|
}
|
|
610
631
|
return d;
|
|
611
|
-
},
|
|
632
|
+
}, cb = [], db = a => {
|
|
612
633
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
613
634
|
var d = a.charCodeAt(c);
|
|
614
635
|
127 >= d ? b++ : 2047 >= d ? b += 2 : 55296 <= d && 57343 >= d ? (b += 4, ++c) : b += 3;
|
|
615
636
|
}
|
|
616
637
|
return b;
|
|
617
|
-
},
|
|
638
|
+
}, eb = (a, b, c, d) => {
|
|
618
639
|
if (!(0 < d)) {
|
|
619
640
|
return 0;
|
|
620
641
|
}
|
|
@@ -658,21 +679,21 @@ var Ya = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, K
|
|
|
658
679
|
b[c] = 0;
|
|
659
680
|
return c - e;
|
|
660
681
|
};
|
|
661
|
-
function
|
|
662
|
-
var c = Array(
|
|
663
|
-
a =
|
|
682
|
+
function fb(a, b) {
|
|
683
|
+
var c = Array(db(a) + 1);
|
|
684
|
+
a = eb(a, c, 0, c.length);
|
|
664
685
|
b && (c.length = a);
|
|
665
686
|
return c;
|
|
666
687
|
}
|
|
667
|
-
var
|
|
668
|
-
function
|
|
669
|
-
|
|
670
|
-
|
|
688
|
+
var gb = [];
|
|
689
|
+
function hb(a, b) {
|
|
690
|
+
gb[a] = {input:[], D:[], W:b};
|
|
691
|
+
ib(a, jb);
|
|
671
692
|
}
|
|
672
|
-
var
|
|
673
|
-
var b =
|
|
693
|
+
var jb = {open:function(a) {
|
|
694
|
+
var b = gb[a.node.na];
|
|
674
695
|
if (!b) {
|
|
675
|
-
throw new
|
|
696
|
+
throw new M(43);
|
|
676
697
|
}
|
|
677
698
|
a.s = b;
|
|
678
699
|
a.seekable = !1;
|
|
@@ -682,16 +703,16 @@ var fb = {open:function(a) {
|
|
|
682
703
|
a.s.W.va(a.s);
|
|
683
704
|
}, read:function(a, b, c, d) {
|
|
684
705
|
if (!a.s || !a.s.W.cb) {
|
|
685
|
-
throw new
|
|
706
|
+
throw new M(60);
|
|
686
707
|
}
|
|
687
708
|
for (var e = 0, f = 0; f < d; f++) {
|
|
688
709
|
try {
|
|
689
710
|
var g = a.s.W.cb(a.s);
|
|
690
711
|
} catch (m) {
|
|
691
|
-
throw new
|
|
712
|
+
throw new M(29);
|
|
692
713
|
}
|
|
693
714
|
if (void 0 === g && 0 === e) {
|
|
694
|
-
throw new
|
|
715
|
+
throw new M(6);
|
|
695
716
|
}
|
|
696
717
|
if (null === g || void 0 === g) {
|
|
697
718
|
break;
|
|
@@ -703,59 +724,59 @@ var fb = {open:function(a) {
|
|
|
703
724
|
return e;
|
|
704
725
|
}, write:function(a, b, c, d) {
|
|
705
726
|
if (!a.s || !a.s.W.Pa) {
|
|
706
|
-
throw new
|
|
727
|
+
throw new M(60);
|
|
707
728
|
}
|
|
708
729
|
try {
|
|
709
730
|
for (var e = 0; e < d; e++) {
|
|
710
731
|
a.s.W.Pa(a.s, b[c + e]);
|
|
711
732
|
}
|
|
712
733
|
} catch (f) {
|
|
713
|
-
throw new
|
|
734
|
+
throw new M(29);
|
|
714
735
|
}
|
|
715
736
|
d && (a.node.timestamp = Date.now());
|
|
716
737
|
return e;
|
|
717
|
-
},},
|
|
738
|
+
},}, kb = {cb:function() {
|
|
718
739
|
a: {
|
|
719
|
-
if (!
|
|
740
|
+
if (!cb.length) {
|
|
720
741
|
var a = null;
|
|
721
742
|
"undefined" != typeof window && "function" == typeof window.prompt ? (a = window.prompt("Input: "), null !== a && (a += "\n")) : "function" == typeof readline && (a = readline(), null !== a && (a += "\n"));
|
|
722
743
|
if (!a) {
|
|
723
744
|
a = null;
|
|
724
745
|
break a;
|
|
725
746
|
}
|
|
726
|
-
|
|
747
|
+
cb = fb(a, !0);
|
|
727
748
|
}
|
|
728
|
-
a =
|
|
749
|
+
a = cb.shift();
|
|
729
750
|
}
|
|
730
751
|
return a;
|
|
731
752
|
}, Pa:function(a, b) {
|
|
732
|
-
null === b || 10 === b ? (ra(
|
|
753
|
+
null === b || 10 === b ? (ra(L(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
|
|
733
754
|
}, va:function(a) {
|
|
734
|
-
a.D && 0 < a.D.length && (ra(
|
|
755
|
+
a.D && 0 < a.D.length && (ra(L(a.D, 0)), a.D = []);
|
|
735
756
|
}, $b:function() {
|
|
736
757
|
return {yc:25856, Ac:5, xc:191, zc:35387, wc:[3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,]};
|
|
737
758
|
}, ac:function() {
|
|
738
759
|
return 0;
|
|
739
760
|
}, bc:function() {
|
|
740
761
|
return [24, 80];
|
|
741
|
-
},},
|
|
742
|
-
null === b || 10 === b ? (sa(
|
|
762
|
+
},}, lb = {Pa:function(a, b) {
|
|
763
|
+
null === b || 10 === b ? (sa(L(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
|
|
743
764
|
}, va:function(a) {
|
|
744
|
-
a.D && 0 < a.D.length && (sa(
|
|
765
|
+
a.D && 0 < a.D.length && (sa(L(a.D, 0)), a.D = []);
|
|
745
766
|
},};
|
|
746
|
-
function
|
|
767
|
+
function mb(a, b) {
|
|
747
768
|
var c = a.l ? a.l.length : 0;
|
|
748
769
|
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));
|
|
749
770
|
}
|
|
750
|
-
var
|
|
751
|
-
return
|
|
771
|
+
var N = {R:null, V() {
|
|
772
|
+
return N.createNode(null, "/", 16895, 0);
|
|
752
773
|
}, createNode(a, b, c, d) {
|
|
753
774
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
754
|
-
throw new
|
|
775
|
+
throw new M(63);
|
|
755
776
|
}
|
|
756
|
-
|
|
757
|
-
c =
|
|
758
|
-
16384 === (c.mode & 61440) ? (c.j =
|
|
777
|
+
N.R || (N.R = {dir:{node:{O:N.j.O, S:N.j.S, ma:N.j.ma, Aa:N.j.Aa, qb:N.j.qb, vb:N.j.vb, rb:N.j.rb, ob:N.j.ob, Fa:N.j.Fa}, stream:{aa:N.m.aa}}, file:{node:{O:N.j.O, S:N.j.S}, stream:{aa:N.m.aa, read:N.m.read, write:N.m.write, ua:N.m.ua, gb:N.m.gb, ib:N.m.ib}}, link:{node:{O:N.j.O, S:N.j.S, oa:N.j.oa}, stream:{}}, Wa:{node:{O:N.j.O, S:N.j.S}, stream:nb}});
|
|
778
|
+
c = ob(a, b, c, d);
|
|
779
|
+
16384 === (c.mode & 61440) ? (c.j = N.R.dir.node, c.m = N.R.dir.stream, c.l = {}) : 32768 === (c.mode & 61440) ? (c.j = N.R.file.node, c.m = N.R.file.stream, c.v = 0, c.l = null) : 40960 === (c.mode & 61440) ? (c.j = N.R.link.node, c.m = N.R.link.stream) : 8192 === (c.mode & 61440) && (c.j = N.R.Wa.node, c.m = N.R.Wa.stream);
|
|
759
780
|
c.timestamp = Date.now();
|
|
760
781
|
a && (a.l[b] = c, a.timestamp = c.timestamp);
|
|
761
782
|
return c;
|
|
@@ -791,18 +812,18 @@ var M = {R:null, V() {
|
|
|
791
812
|
}
|
|
792
813
|
}
|
|
793
814
|
}, ma() {
|
|
794
|
-
throw
|
|
815
|
+
throw pb[44];
|
|
795
816
|
}, Aa(a, b, c, d) {
|
|
796
|
-
return
|
|
817
|
+
return N.createNode(a, b, c, d);
|
|
797
818
|
}, qb(a, b, c) {
|
|
798
819
|
if (16384 === (a.mode & 61440)) {
|
|
799
820
|
try {
|
|
800
|
-
var d =
|
|
821
|
+
var d = qb(b, c);
|
|
801
822
|
} catch (f) {
|
|
802
823
|
}
|
|
803
824
|
if (d) {
|
|
804
825
|
for (var e in d.l) {
|
|
805
|
-
throw new
|
|
826
|
+
throw new M(55);
|
|
806
827
|
}
|
|
807
828
|
}
|
|
808
829
|
}
|
|
@@ -816,9 +837,9 @@ var M = {R:null, V() {
|
|
|
816
837
|
delete a.l[b];
|
|
817
838
|
a.timestamp = Date.now();
|
|
818
839
|
}, rb(a, b) {
|
|
819
|
-
var c =
|
|
840
|
+
var c = qb(a, b), d;
|
|
820
841
|
for (d in c.l) {
|
|
821
|
-
throw new
|
|
842
|
+
throw new M(55);
|
|
822
843
|
}
|
|
823
844
|
delete a.l[b];
|
|
824
845
|
a.timestamp = Date.now();
|
|
@@ -829,12 +850,12 @@ var M = {R:null, V() {
|
|
|
829
850
|
}
|
|
830
851
|
return b;
|
|
831
852
|
}, Fa(a, b, c) {
|
|
832
|
-
a =
|
|
853
|
+
a = N.createNode(a, b, 41471, 0);
|
|
833
854
|
a.link = c;
|
|
834
855
|
return a;
|
|
835
856
|
}, oa(a) {
|
|
836
857
|
if (40960 !== (a.mode & 61440)) {
|
|
837
|
-
throw new
|
|
858
|
+
throw new M(28);
|
|
838
859
|
}
|
|
839
860
|
return a.link;
|
|
840
861
|
},}, m:{read(a, b, c, d, e) {
|
|
@@ -852,7 +873,7 @@ var M = {R:null, V() {
|
|
|
852
873
|
}
|
|
853
874
|
return a;
|
|
854
875
|
}, write(a, b, c, d, e, f) {
|
|
855
|
-
b.buffer ===
|
|
876
|
+
b.buffer === B.buffer && (f = !1);
|
|
856
877
|
if (!d) {
|
|
857
878
|
return 0;
|
|
858
879
|
}
|
|
@@ -869,7 +890,7 @@ var M = {R:null, V() {
|
|
|
869
890
|
return a.l.set(b.subarray(c, c + d), e), d;
|
|
870
891
|
}
|
|
871
892
|
}
|
|
872
|
-
|
|
893
|
+
mb(a, e + d);
|
|
873
894
|
if (a.l.subarray && b.subarray) {
|
|
874
895
|
a.l.set(b.subarray(c, c + d), e);
|
|
875
896
|
} else {
|
|
@@ -882,70 +903,70 @@ var M = {R:null, V() {
|
|
|
882
903
|
}, aa(a, b, c) {
|
|
883
904
|
1 === c ? b += a.position : 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.v);
|
|
884
905
|
if (0 > b) {
|
|
885
|
-
throw new
|
|
906
|
+
throw new M(28);
|
|
886
907
|
}
|
|
887
908
|
return b;
|
|
888
909
|
}, ua(a, b, c) {
|
|
889
|
-
|
|
910
|
+
mb(a.node, b + c);
|
|
890
911
|
a.node.v = Math.max(a.node.v, b + c);
|
|
891
912
|
}, gb(a, b, c, d, e) {
|
|
892
913
|
if (32768 !== (a.node.mode & 61440)) {
|
|
893
|
-
throw new
|
|
914
|
+
throw new M(43);
|
|
894
915
|
}
|
|
895
916
|
a = a.node.l;
|
|
896
|
-
if (e & 2 || a.buffer !==
|
|
917
|
+
if (e & 2 || a.buffer !== B.buffer) {
|
|
897
918
|
if (0 < c || c + b < a.length) {
|
|
898
919
|
a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
|
|
899
920
|
}
|
|
900
921
|
c = !0;
|
|
901
|
-
|
|
922
|
+
ua();
|
|
902
923
|
b = void 0;
|
|
903
924
|
if (!b) {
|
|
904
|
-
throw new
|
|
925
|
+
throw new M(48);
|
|
905
926
|
}
|
|
906
|
-
|
|
927
|
+
B.set(a, b);
|
|
907
928
|
} else {
|
|
908
929
|
c = !1, b = a.byteOffset;
|
|
909
930
|
}
|
|
910
931
|
return {o:b, N:c};
|
|
911
932
|
}, ib(a, b, c, d) {
|
|
912
|
-
|
|
933
|
+
N.m.write(a, b, 0, d, c, !1);
|
|
913
934
|
return 0;
|
|
914
935
|
},},};
|
|
915
|
-
function
|
|
936
|
+
function rb(a, b) {
|
|
916
937
|
var c = 0;
|
|
917
938
|
a && (c |= 365);
|
|
918
939
|
b && (c |= 146);
|
|
919
940
|
return c;
|
|
920
941
|
}
|
|
921
|
-
var
|
|
922
|
-
a =
|
|
942
|
+
var sb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {}, Ab = (a, b = {}) => {
|
|
943
|
+
a = ab(a);
|
|
923
944
|
if (!a) {
|
|
924
945
|
return {path:"", node:null};
|
|
925
946
|
}
|
|
926
947
|
b = Object.assign({ab:!0, Ra:0}, b);
|
|
927
948
|
if (8 < b.Ra) {
|
|
928
|
-
throw new
|
|
949
|
+
throw new M(32);
|
|
929
950
|
}
|
|
930
951
|
a = a.split("/").filter(g => !!g);
|
|
931
|
-
for (var c =
|
|
952
|
+
for (var c = sb, d = "/", e = 0; e < a.length; e++) {
|
|
932
953
|
var f = e === a.length - 1;
|
|
933
954
|
if (f && b.parent) {
|
|
934
955
|
break;
|
|
935
956
|
}
|
|
936
|
-
c =
|
|
937
|
-
d =
|
|
957
|
+
c = qb(c, a[e]);
|
|
958
|
+
d = Wa(d + "/" + a[e]);
|
|
938
959
|
c.Ba && (!f || f && b.ab) && (c = c.Ba.root);
|
|
939
960
|
if (!f || b.Ma) {
|
|
940
961
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
941
|
-
if (c =
|
|
942
|
-
throw new
|
|
962
|
+
if (c = zb(d), d = ab(Xa(d), c), c = Ab(d, {Ra:b.Ra + 1}).node, 40 < f++) {
|
|
963
|
+
throw new M(32);
|
|
943
964
|
}
|
|
944
965
|
}
|
|
945
966
|
}
|
|
946
967
|
}
|
|
947
968
|
return {path:d, node:c};
|
|
948
|
-
},
|
|
969
|
+
}, Bb = a => {
|
|
949
970
|
for (var b;;) {
|
|
950
971
|
if (a === a.parent) {
|
|
951
972
|
return a = a.V.hb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
|
|
@@ -953,34 +974,34 @@ var ob = null, pb = {}, qb = [], rb = 1, tb = null, ub = !0, L = null, lb = {},
|
|
|
953
974
|
b = b ? `${a.name}/${b}` : a.name;
|
|
954
975
|
a = a.parent;
|
|
955
976
|
}
|
|
956
|
-
},
|
|
977
|
+
}, Cb = (a, b) => {
|
|
957
978
|
for (var c = 0, d = 0; d < b.length; d++) {
|
|
958
979
|
c = (c << 5) - c + b.charCodeAt(d) | 0;
|
|
959
980
|
}
|
|
960
|
-
return (a + c >>> 0) %
|
|
961
|
-
},
|
|
981
|
+
return (a + c >>> 0) % xb.length;
|
|
982
|
+
}, qb = (a, b) => {
|
|
962
983
|
var c;
|
|
963
|
-
if (c = (c =
|
|
964
|
-
throw new
|
|
984
|
+
if (c = (c = Db(a, "x")) ? c : a.j.ma ? 0 : 2) {
|
|
985
|
+
throw new M(c, a);
|
|
965
986
|
}
|
|
966
|
-
for (c =
|
|
987
|
+
for (c = xb[Cb(a.id, b)]; c; c = c.fc) {
|
|
967
988
|
var d = c.name;
|
|
968
989
|
if (c.parent.id === a.id && d === b) {
|
|
969
990
|
return c;
|
|
970
991
|
}
|
|
971
992
|
}
|
|
972
993
|
return a.j.ma(a, b);
|
|
973
|
-
},
|
|
974
|
-
a = new
|
|
975
|
-
b =
|
|
976
|
-
a.fc =
|
|
977
|
-
return
|
|
978
|
-
},
|
|
994
|
+
}, ob = (a, b, c, d) => {
|
|
995
|
+
a = new Eb(a, b, c, d);
|
|
996
|
+
b = Cb(a.parent.id, a.name);
|
|
997
|
+
a.fc = xb[b];
|
|
998
|
+
return xb[b] = a;
|
|
999
|
+
}, Fb = a => {
|
|
979
1000
|
var b = ["r", "w", "rw"][a & 3];
|
|
980
1001
|
a & 512 && (b += "w");
|
|
981
1002
|
return b;
|
|
982
|
-
},
|
|
983
|
-
if (
|
|
1003
|
+
}, Db = (a, b) => {
|
|
1004
|
+
if (yb) {
|
|
984
1005
|
return 0;
|
|
985
1006
|
}
|
|
986
1007
|
if (!b.includes("r") || a.mode & 292) {
|
|
@@ -991,29 +1012,29 @@ var ob = null, pb = {}, qb = [], rb = 1, tb = null, ub = !0, L = null, lb = {},
|
|
|
991
1012
|
return 2;
|
|
992
1013
|
}
|
|
993
1014
|
return 0;
|
|
994
|
-
},
|
|
1015
|
+
}, Gb = (a, b) => {
|
|
995
1016
|
try {
|
|
996
|
-
return
|
|
1017
|
+
return qb(a, b), 20;
|
|
997
1018
|
} catch (c) {
|
|
998
1019
|
}
|
|
999
|
-
return
|
|
1000
|
-
},
|
|
1020
|
+
return Db(a, "wx");
|
|
1021
|
+
}, Hb = () => {
|
|
1001
1022
|
for (var a = 0; 4096 >= a; a++) {
|
|
1002
|
-
if (!
|
|
1023
|
+
if (!vb[a]) {
|
|
1003
1024
|
return a;
|
|
1004
1025
|
}
|
|
1005
1026
|
}
|
|
1006
|
-
throw new
|
|
1007
|
-
},
|
|
1008
|
-
a =
|
|
1027
|
+
throw new M(33);
|
|
1028
|
+
}, Ib = a => {
|
|
1029
|
+
a = vb[a];
|
|
1009
1030
|
if (!a) {
|
|
1010
|
-
throw new
|
|
1031
|
+
throw new M(8);
|
|
1011
1032
|
}
|
|
1012
1033
|
return a;
|
|
1013
|
-
},
|
|
1014
|
-
|
|
1034
|
+
}, Kb = (a, b = -1) => {
|
|
1035
|
+
Jb || (Jb = function() {
|
|
1015
1036
|
this.h = {};
|
|
1016
|
-
},
|
|
1037
|
+
}, Jb.prototype = {}, Object.defineProperties(Jb.prototype, {object:{get() {
|
|
1017
1038
|
return this.node;
|
|
1018
1039
|
}, set(c) {
|
|
1019
1040
|
this.node = c;
|
|
@@ -1026,93 +1047,93 @@ var ob = null, pb = {}, qb = [], rb = 1, tb = null, ub = !0, L = null, lb = {},
|
|
|
1026
1047
|
}, set(c) {
|
|
1027
1048
|
this.h.position = c;
|
|
1028
1049
|
},},}));
|
|
1029
|
-
a = Object.assign(new
|
|
1030
|
-
-1 == b && (b =
|
|
1050
|
+
a = Object.assign(new Jb(), a);
|
|
1051
|
+
-1 == b && (b = Hb());
|
|
1031
1052
|
a.Y = b;
|
|
1032
|
-
return
|
|
1033
|
-
},
|
|
1034
|
-
a.m =
|
|
1053
|
+
return vb[b] = a;
|
|
1054
|
+
}, nb = {open:a => {
|
|
1055
|
+
a.m = ub[a.node.na].m;
|
|
1035
1056
|
a.m.open && a.m.open(a);
|
|
1036
1057
|
}, aa:() => {
|
|
1037
|
-
throw new
|
|
1038
|
-
},},
|
|
1039
|
-
|
|
1040
|
-
},
|
|
1058
|
+
throw new M(70);
|
|
1059
|
+
},}, ib = (a, b) => {
|
|
1060
|
+
ub[a] = {m:b};
|
|
1061
|
+
}, Lb = (a, b) => {
|
|
1041
1062
|
var c = "/" === b, d = !b;
|
|
1042
|
-
if (c &&
|
|
1043
|
-
throw new
|
|
1063
|
+
if (c && sb) {
|
|
1064
|
+
throw new M(10);
|
|
1044
1065
|
}
|
|
1045
1066
|
if (!c && !d) {
|
|
1046
|
-
var e =
|
|
1067
|
+
var e = Ab(b, {ab:!1});
|
|
1047
1068
|
b = e.path;
|
|
1048
1069
|
e = e.node;
|
|
1049
1070
|
if (e.Ba) {
|
|
1050
|
-
throw new
|
|
1071
|
+
throw new M(10);
|
|
1051
1072
|
}
|
|
1052
1073
|
if (16384 !== (e.mode & 61440)) {
|
|
1053
|
-
throw new
|
|
1074
|
+
throw new M(54);
|
|
1054
1075
|
}
|
|
1055
1076
|
}
|
|
1056
1077
|
b = {type:a, Lc:{}, hb:b, dc:[]};
|
|
1057
1078
|
a = a.V(b);
|
|
1058
1079
|
a.V = b;
|
|
1059
1080
|
b.root = a;
|
|
1060
|
-
c ?
|
|
1061
|
-
},
|
|
1062
|
-
var d =
|
|
1063
|
-
a =
|
|
1081
|
+
c ? sb = a : e && (e.Ba = b, e.V && e.V.dc.push(b));
|
|
1082
|
+
}, O = (a, b, c) => {
|
|
1083
|
+
var d = Ab(a, {parent:!0}).node;
|
|
1084
|
+
a = Ya(a);
|
|
1064
1085
|
if (!a || "." === a || ".." === a) {
|
|
1065
|
-
throw new
|
|
1086
|
+
throw new M(28);
|
|
1066
1087
|
}
|
|
1067
|
-
var e =
|
|
1088
|
+
var e = Gb(d, a);
|
|
1068
1089
|
if (e) {
|
|
1069
|
-
throw new
|
|
1090
|
+
throw new M(e);
|
|
1070
1091
|
}
|
|
1071
1092
|
if (!d.j.Aa) {
|
|
1072
|
-
throw new
|
|
1093
|
+
throw new M(63);
|
|
1073
1094
|
}
|
|
1074
1095
|
return d.j.Aa(d, a, b, c);
|
|
1075
|
-
},
|
|
1096
|
+
}, Mb = (a, b, c) => {
|
|
1076
1097
|
"undefined" == typeof c && (c = b, b = 438);
|
|
1077
|
-
|
|
1078
|
-
},
|
|
1079
|
-
if (!
|
|
1080
|
-
throw new
|
|
1098
|
+
O(a, b | 8192, c);
|
|
1099
|
+
}, Nb = (a, b) => {
|
|
1100
|
+
if (!ab(a)) {
|
|
1101
|
+
throw new M(44);
|
|
1081
1102
|
}
|
|
1082
|
-
var c =
|
|
1103
|
+
var c = Ab(b, {parent:!0}).node;
|
|
1083
1104
|
if (!c) {
|
|
1084
|
-
throw new
|
|
1105
|
+
throw new M(44);
|
|
1085
1106
|
}
|
|
1086
|
-
b =
|
|
1087
|
-
var d =
|
|
1107
|
+
b = Ya(b);
|
|
1108
|
+
var d = Gb(c, b);
|
|
1088
1109
|
if (d) {
|
|
1089
|
-
throw new
|
|
1110
|
+
throw new M(d);
|
|
1090
1111
|
}
|
|
1091
1112
|
if (!c.j.Fa) {
|
|
1092
|
-
throw new
|
|
1113
|
+
throw new M(63);
|
|
1093
1114
|
}
|
|
1094
1115
|
c.j.Fa(c, b, a);
|
|
1095
|
-
},
|
|
1096
|
-
a =
|
|
1116
|
+
}, zb = a => {
|
|
1117
|
+
a = Ab(a).node;
|
|
1097
1118
|
if (!a) {
|
|
1098
|
-
throw new
|
|
1119
|
+
throw new M(44);
|
|
1099
1120
|
}
|
|
1100
1121
|
if (!a.j.oa) {
|
|
1101
|
-
throw new
|
|
1122
|
+
throw new M(28);
|
|
1102
1123
|
}
|
|
1103
|
-
return
|
|
1104
|
-
},
|
|
1105
|
-
a =
|
|
1124
|
+
return ab(Bb(a.parent), a.j.oa(a));
|
|
1125
|
+
}, Ob = (a, b) => {
|
|
1126
|
+
a = Ab(a, {Ma:!b}).node;
|
|
1106
1127
|
if (!a) {
|
|
1107
|
-
throw new
|
|
1128
|
+
throw new M(44);
|
|
1108
1129
|
}
|
|
1109
1130
|
if (!a.j.O) {
|
|
1110
|
-
throw new
|
|
1131
|
+
throw new M(63);
|
|
1111
1132
|
}
|
|
1112
1133
|
return a.j.O(a);
|
|
1113
|
-
},
|
|
1134
|
+
}, Pb = a => Ob(a, !0), Rb = (a, b, c) => {
|
|
1114
1135
|
if ("" === a) {
|
|
1115
|
-
throw new
|
|
1136
|
+
throw new M(44);
|
|
1116
1137
|
}
|
|
1117
1138
|
if ("string" == typeof b) {
|
|
1118
1139
|
var d = {r:0, "r+":2, w:577, "w+":578, a:1089, "a+":1090,}[b];
|
|
@@ -1125,9 +1146,9 @@ var ob = null, pb = {}, qb = [], rb = 1, tb = null, ub = !0, L = null, lb = {},
|
|
|
1125
1146
|
if ("object" == typeof a) {
|
|
1126
1147
|
var e = a;
|
|
1127
1148
|
} else {
|
|
1128
|
-
a =
|
|
1149
|
+
a = Wa(a);
|
|
1129
1150
|
try {
|
|
1130
|
-
e =
|
|
1151
|
+
e = Ab(a, {Ma:!(b & 131072)}).node;
|
|
1131
1152
|
} catch (f) {
|
|
1132
1153
|
}
|
|
1133
1154
|
}
|
|
@@ -1135,58 +1156,58 @@ var ob = null, pb = {}, qb = [], rb = 1, tb = null, ub = !0, L = null, lb = {},
|
|
|
1135
1156
|
if (b & 64) {
|
|
1136
1157
|
if (e) {
|
|
1137
1158
|
if (b & 128) {
|
|
1138
|
-
throw new
|
|
1159
|
+
throw new M(20);
|
|
1139
1160
|
}
|
|
1140
1161
|
} else {
|
|
1141
|
-
e =
|
|
1162
|
+
e = O(a, c, 0), d = !0;
|
|
1142
1163
|
}
|
|
1143
1164
|
}
|
|
1144
1165
|
if (!e) {
|
|
1145
|
-
throw new
|
|
1166
|
+
throw new M(44);
|
|
1146
1167
|
}
|
|
1147
1168
|
8192 === (e.mode & 61440) && (b &= -513);
|
|
1148
1169
|
if (b & 65536 && 16384 !== (e.mode & 61440)) {
|
|
1149
|
-
throw new
|
|
1170
|
+
throw new M(54);
|
|
1150
1171
|
}
|
|
1151
|
-
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !==
|
|
1152
|
-
throw new
|
|
1172
|
+
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Fb(b) || b & 512) ? 31 : Db(e, Fb(b)) : 44)) {
|
|
1173
|
+
throw new M(c);
|
|
1153
1174
|
}
|
|
1154
1175
|
if (b & 512 && !d) {
|
|
1155
1176
|
c = e;
|
|
1156
|
-
c = "string" == typeof c ?
|
|
1177
|
+
c = "string" == typeof c ? Ab(c, {Ma:!0}).node : c;
|
|
1157
1178
|
if (!c.j.S) {
|
|
1158
|
-
throw new
|
|
1179
|
+
throw new M(63);
|
|
1159
1180
|
}
|
|
1160
1181
|
if (16384 === (c.mode & 61440)) {
|
|
1161
|
-
throw new
|
|
1182
|
+
throw new M(31);
|
|
1162
1183
|
}
|
|
1163
1184
|
if (32768 !== (c.mode & 61440)) {
|
|
1164
|
-
throw new
|
|
1185
|
+
throw new M(28);
|
|
1165
1186
|
}
|
|
1166
|
-
if (d =
|
|
1167
|
-
throw new
|
|
1187
|
+
if (d = Db(c, "w")) {
|
|
1188
|
+
throw new M(d);
|
|
1168
1189
|
}
|
|
1169
1190
|
c.j.S(c, {size:0, timestamp:Date.now()});
|
|
1170
1191
|
}
|
|
1171
1192
|
b &= -131713;
|
|
1172
|
-
e =
|
|
1193
|
+
e = Kb({node:e, path:Bb(e), flags:b, seekable:!0, position:0, m:e.m, uc:[], error:!1});
|
|
1173
1194
|
e.m.open && e.m.open(e);
|
|
1174
|
-
!
|
|
1195
|
+
!n.logReadFiles || b & 1 || (Qb || (Qb = {}), a in Qb || (Qb[a] = 1));
|
|
1175
1196
|
return e;
|
|
1176
|
-
},
|
|
1197
|
+
}, Sb = (a, b, c) => {
|
|
1177
1198
|
if (null === a.Y) {
|
|
1178
|
-
throw new
|
|
1199
|
+
throw new M(8);
|
|
1179
1200
|
}
|
|
1180
1201
|
if (!a.seekable || !a.m.aa) {
|
|
1181
|
-
throw new
|
|
1202
|
+
throw new M(70);
|
|
1182
1203
|
}
|
|
1183
1204
|
if (0 != c && 1 != c && 2 != c) {
|
|
1184
|
-
throw new
|
|
1205
|
+
throw new M(28);
|
|
1185
1206
|
}
|
|
1186
1207
|
a.position = a.m.aa(a, b, c);
|
|
1187
1208
|
a.uc = [];
|
|
1188
|
-
},
|
|
1189
|
-
|
|
1209
|
+
}, Tb = () => {
|
|
1210
|
+
M || (M = function(a, b) {
|
|
1190
1211
|
this.name = "ErrnoError";
|
|
1191
1212
|
this.node = b;
|
|
1192
1213
|
this.kc = function(c) {
|
|
@@ -1194,28 +1215,28 @@ var ob = null, pb = {}, qb = [], rb = 1, tb = null, ub = !0, L = null, lb = {},
|
|
|
1194
1215
|
};
|
|
1195
1216
|
this.kc(a);
|
|
1196
1217
|
this.message = "FS error";
|
|
1197
|
-
},
|
|
1198
|
-
|
|
1199
|
-
|
|
1218
|
+
}, M.prototype = Error(), M.prototype.constructor = M, [44].forEach(a => {
|
|
1219
|
+
pb[a] = new M(a);
|
|
1220
|
+
pb[a].stack = "<generic error, no stack>";
|
|
1200
1221
|
}));
|
|
1201
|
-
},
|
|
1202
|
-
a =
|
|
1203
|
-
var d =
|
|
1204
|
-
|
|
1205
|
-
var e =
|
|
1206
|
-
|
|
1222
|
+
}, Ub, Wb = (a, b, c) => {
|
|
1223
|
+
a = Wa("/dev/" + a);
|
|
1224
|
+
var d = rb(!!b, !!c);
|
|
1225
|
+
Vb || (Vb = 64);
|
|
1226
|
+
var e = Vb++ << 8 | 0;
|
|
1227
|
+
ib(e, {open:f => {
|
|
1207
1228
|
f.seekable = !1;
|
|
1208
1229
|
}, close:() => {
|
|
1209
1230
|
c && c.buffer && c.buffer.length && c(10);
|
|
1210
|
-
}, read:(f, g, m,
|
|
1211
|
-
for (var l = 0, u = 0; u <
|
|
1231
|
+
}, read:(f, g, m, p) => {
|
|
1232
|
+
for (var l = 0, u = 0; u < p; u++) {
|
|
1212
1233
|
try {
|
|
1213
1234
|
var v = b();
|
|
1214
1235
|
} catch (q) {
|
|
1215
|
-
throw new
|
|
1236
|
+
throw new M(29);
|
|
1216
1237
|
}
|
|
1217
1238
|
if (void 0 === v && 0 === l) {
|
|
1218
|
-
throw new
|
|
1239
|
+
throw new M(6);
|
|
1219
1240
|
}
|
|
1220
1241
|
if (null === v || void 0 === v) {
|
|
1221
1242
|
break;
|
|
@@ -1225,78 +1246,78 @@ var ob = null, pb = {}, qb = [], rb = 1, tb = null, ub = !0, L = null, lb = {},
|
|
|
1225
1246
|
}
|
|
1226
1247
|
l && (f.node.timestamp = Date.now());
|
|
1227
1248
|
return l;
|
|
1228
|
-
}, write:(f, g, m,
|
|
1229
|
-
for (var l = 0; l <
|
|
1249
|
+
}, write:(f, g, m, p) => {
|
|
1250
|
+
for (var l = 0; l < p; l++) {
|
|
1230
1251
|
try {
|
|
1231
1252
|
c(g[m + l]);
|
|
1232
1253
|
} catch (u) {
|
|
1233
|
-
throw new
|
|
1254
|
+
throw new M(29);
|
|
1234
1255
|
}
|
|
1235
1256
|
}
|
|
1236
|
-
|
|
1257
|
+
p && (f.node.timestamp = Date.now());
|
|
1237
1258
|
return l;
|
|
1238
1259
|
}});
|
|
1239
|
-
|
|
1240
|
-
},
|
|
1241
|
-
function
|
|
1260
|
+
Mb(a, d, e);
|
|
1261
|
+
}, Vb, P = {}, Jb, Qb;
|
|
1262
|
+
function Xb(a, b, c) {
|
|
1242
1263
|
if ("/" === b.charAt(0)) {
|
|
1243
1264
|
return b;
|
|
1244
1265
|
}
|
|
1245
|
-
a = -100 === a ? "/" :
|
|
1266
|
+
a = -100 === a ? "/" : Ib(a).path;
|
|
1246
1267
|
if (0 == b.length) {
|
|
1247
1268
|
if (!c) {
|
|
1248
|
-
throw new
|
|
1269
|
+
throw new M(44);
|
|
1249
1270
|
}
|
|
1250
1271
|
return a;
|
|
1251
1272
|
}
|
|
1252
|
-
return
|
|
1273
|
+
return Wa(a + "/" + b);
|
|
1253
1274
|
}
|
|
1254
|
-
function
|
|
1275
|
+
function Yb(a, b, c) {
|
|
1255
1276
|
try {
|
|
1256
1277
|
var d = a(b);
|
|
1257
1278
|
} catch (f) {
|
|
1258
|
-
if (f && f.node &&
|
|
1279
|
+
if (f && f.node && Wa(b) !== Wa(Bb(f.node))) {
|
|
1259
1280
|
return -54;
|
|
1260
1281
|
}
|
|
1261
1282
|
throw f;
|
|
1262
1283
|
}
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1284
|
+
F[c >> 2] = d.Kb;
|
|
1285
|
+
F[c + 4 >> 2] = d.mode;
|
|
1286
|
+
I[c + 8 >> 2] = d.hc;
|
|
1287
|
+
F[c + 12 >> 2] = d.uid;
|
|
1288
|
+
F[c + 16 >> 2] = d.Vb;
|
|
1289
|
+
F[c + 20 >> 2] = d.na;
|
|
1290
|
+
K = [d.size >>> 0, (J = d.size, 1.0 <= +Math.abs(J) ? 0.0 < J ? +Math.floor(J / 4294967296.0) >>> 0 : ~~+Math.ceil((J - +(~~J >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
1291
|
+
F[c + 24 >> 2] = K[0];
|
|
1292
|
+
F[c + 28 >> 2] = K[1];
|
|
1293
|
+
F[c + 32 >> 2] = 4096;
|
|
1294
|
+
F[c + 36 >> 2] = d.Fb;
|
|
1274
1295
|
a = d.Db.getTime();
|
|
1275
1296
|
b = d.ec.getTime();
|
|
1276
1297
|
var e = d.Hb.getTime();
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1298
|
+
K = [Math.floor(a / 1000) >>> 0, (J = Math.floor(a / 1000), 1.0 <= +Math.abs(J) ? 0.0 < J ? +Math.floor(J / 4294967296.0) >>> 0 : ~~+Math.ceil((J - +(~~J >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
1299
|
+
F[c + 40 >> 2] = K[0];
|
|
1300
|
+
F[c + 44 >> 2] = K[1];
|
|
1301
|
+
I[c + 48 >> 2] = a % 1000 * 1000;
|
|
1302
|
+
K = [Math.floor(b / 1000) >>> 0, (J = Math.floor(b / 1000), 1.0 <= +Math.abs(J) ? 0.0 < J ? +Math.floor(J / 4294967296.0) >>> 0 : ~~+Math.ceil((J - +(~~J >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
1303
|
+
F[c + 56 >> 2] = K[0];
|
|
1304
|
+
F[c + 60 >> 2] = K[1];
|
|
1305
|
+
I[c + 64 >> 2] = b % 1000 * 1000;
|
|
1306
|
+
K = [Math.floor(e / 1000) >>> 0, (J = Math.floor(e / 1000), 1.0 <= +Math.abs(J) ? 0.0 < J ? +Math.floor(J / 4294967296.0) >>> 0 : ~~+Math.ceil((J - +(~~J >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
1307
|
+
F[c + 72 >> 2] = K[0];
|
|
1308
|
+
F[c + 76 >> 2] = K[1];
|
|
1309
|
+
I[c + 80 >> 2] = e % 1000 * 1000;
|
|
1310
|
+
K = [d.eb >>> 0, (J = d.eb, 1.0 <= +Math.abs(J) ? 0.0 < J ? +Math.floor(J / 4294967296.0) >>> 0 : ~~+Math.ceil((J - +(~~J >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
1311
|
+
F[c + 88 >> 2] = K[0];
|
|
1312
|
+
F[c + 92 >> 2] = K[1];
|
|
1292
1313
|
return 0;
|
|
1293
1314
|
}
|
|
1294
|
-
var
|
|
1295
|
-
function
|
|
1296
|
-
|
|
1297
|
-
return
|
|
1315
|
+
var Zb = void 0;
|
|
1316
|
+
function $b() {
|
|
1317
|
+
Zb += 4;
|
|
1318
|
+
return F[Zb - 4 >> 2];
|
|
1298
1319
|
}
|
|
1299
|
-
function
|
|
1320
|
+
function ac(a) {
|
|
1300
1321
|
if (void 0 === a) {
|
|
1301
1322
|
return "_unknown";
|
|
1302
1323
|
}
|
|
@@ -1304,24 +1325,24 @@ function Xb(a) {
|
|
|
1304
1325
|
var b = a.charCodeAt(0);
|
|
1305
1326
|
return 48 <= b && 57 >= b ? `_${a}` : a;
|
|
1306
1327
|
}
|
|
1307
|
-
function
|
|
1308
|
-
a =
|
|
1328
|
+
function bc(a, b) {
|
|
1329
|
+
a = ac(a);
|
|
1309
1330
|
return {[a]:function() {
|
|
1310
1331
|
return b.apply(this, arguments);
|
|
1311
1332
|
}}[a];
|
|
1312
1333
|
}
|
|
1313
|
-
function
|
|
1334
|
+
function cc() {
|
|
1314
1335
|
this.N = [void 0];
|
|
1315
1336
|
this.bb = [];
|
|
1316
1337
|
}
|
|
1317
|
-
var
|
|
1318
|
-
function
|
|
1319
|
-
throw new
|
|
1338
|
+
var Q = new cc(), dc = void 0;
|
|
1339
|
+
function R(a) {
|
|
1340
|
+
throw new dc(a);
|
|
1320
1341
|
}
|
|
1321
|
-
var
|
|
1322
|
-
a ||
|
|
1323
|
-
return
|
|
1324
|
-
},
|
|
1342
|
+
var S = a => {
|
|
1343
|
+
a || R("Cannot use deleted val. handle = " + a);
|
|
1344
|
+
return Q.get(a).value;
|
|
1345
|
+
}, ec = a => {
|
|
1325
1346
|
switch(a) {
|
|
1326
1347
|
case void 0:
|
|
1327
1348
|
return 1;
|
|
@@ -1332,11 +1353,11 @@ var R = a => {
|
|
|
1332
1353
|
case !1:
|
|
1333
1354
|
return 4;
|
|
1334
1355
|
default:
|
|
1335
|
-
return
|
|
1356
|
+
return Q.ua({pb:1, value:a});
|
|
1336
1357
|
}
|
|
1337
1358
|
};
|
|
1338
|
-
function
|
|
1339
|
-
var b = Error, c =
|
|
1359
|
+
function fc(a) {
|
|
1360
|
+
var b = Error, c = bc(a, function(d) {
|
|
1340
1361
|
this.name = a;
|
|
1341
1362
|
this.message = d;
|
|
1342
1363
|
d = Error(d).stack;
|
|
@@ -1349,122 +1370,122 @@ function bc(a) {
|
|
|
1349
1370
|
};
|
|
1350
1371
|
return c;
|
|
1351
1372
|
}
|
|
1352
|
-
var
|
|
1353
|
-
function
|
|
1354
|
-
for (var b = "";
|
|
1355
|
-
b +=
|
|
1373
|
+
var gc = void 0, hc = void 0;
|
|
1374
|
+
function T(a) {
|
|
1375
|
+
for (var b = ""; C[a];) {
|
|
1376
|
+
b += hc[C[a++]];
|
|
1356
1377
|
}
|
|
1357
1378
|
return b;
|
|
1358
1379
|
}
|
|
1359
|
-
var
|
|
1360
|
-
function
|
|
1361
|
-
for (;
|
|
1362
|
-
var a =
|
|
1380
|
+
var ic = [];
|
|
1381
|
+
function jc() {
|
|
1382
|
+
for (; ic.length;) {
|
|
1383
|
+
var a = ic.pop();
|
|
1363
1384
|
a.g.ga = !1;
|
|
1364
1385
|
a["delete"]();
|
|
1365
1386
|
}
|
|
1366
1387
|
}
|
|
1367
|
-
var
|
|
1368
|
-
function
|
|
1369
|
-
for (void 0 === b &&
|
|
1388
|
+
var kc = void 0, lc = {};
|
|
1389
|
+
function mc(a, b) {
|
|
1390
|
+
for (void 0 === b && R("ptr should not be undefined"); a.A;) {
|
|
1370
1391
|
b = a.qa(b), a = a.A;
|
|
1371
1392
|
}
|
|
1372
1393
|
return b;
|
|
1373
1394
|
}
|
|
1374
|
-
var
|
|
1375
|
-
function
|
|
1376
|
-
a =
|
|
1377
|
-
var b =
|
|
1378
|
-
|
|
1395
|
+
var nc = {};
|
|
1396
|
+
function oc(a) {
|
|
1397
|
+
a = pc(a);
|
|
1398
|
+
var b = T(a);
|
|
1399
|
+
qc(a);
|
|
1379
1400
|
return b;
|
|
1380
1401
|
}
|
|
1381
|
-
function
|
|
1382
|
-
var c =
|
|
1383
|
-
void 0 === c &&
|
|
1402
|
+
function rc(a, b) {
|
|
1403
|
+
var c = nc[a];
|
|
1404
|
+
void 0 === c && R(b + " has unknown type " + oc(a));
|
|
1384
1405
|
return c;
|
|
1385
1406
|
}
|
|
1386
|
-
function
|
|
1407
|
+
function sc() {
|
|
1387
1408
|
}
|
|
1388
|
-
var
|
|
1389
|
-
function
|
|
1409
|
+
var tc = !1;
|
|
1410
|
+
function uc(a) {
|
|
1390
1411
|
--a.count.value;
|
|
1391
1412
|
0 === a.count.value && (a.G ? a.M.X(a.G) : a.u.i.X(a.o));
|
|
1392
1413
|
}
|
|
1393
|
-
function
|
|
1414
|
+
function vc(a, b, c) {
|
|
1394
1415
|
if (b === c) {
|
|
1395
1416
|
return a;
|
|
1396
1417
|
}
|
|
1397
1418
|
if (void 0 === c.A) {
|
|
1398
1419
|
return null;
|
|
1399
1420
|
}
|
|
1400
|
-
a =
|
|
1421
|
+
a = vc(a, b, c.A);
|
|
1401
1422
|
return null === a ? null : c.Lb(a);
|
|
1402
1423
|
}
|
|
1403
|
-
var
|
|
1404
|
-
function
|
|
1405
|
-
b =
|
|
1406
|
-
return
|
|
1424
|
+
var wc = {};
|
|
1425
|
+
function xc(a, b) {
|
|
1426
|
+
b = mc(a, b);
|
|
1427
|
+
return lc[b];
|
|
1407
1428
|
}
|
|
1408
|
-
var
|
|
1409
|
-
function
|
|
1410
|
-
throw new
|
|
1429
|
+
var yc = void 0;
|
|
1430
|
+
function zc(a) {
|
|
1431
|
+
throw new yc(a);
|
|
1411
1432
|
}
|
|
1412
|
-
function
|
|
1413
|
-
b.u && b.o ||
|
|
1414
|
-
!!b.M !== !!b.G &&
|
|
1433
|
+
function Ac(a, b) {
|
|
1434
|
+
b.u && b.o || zc("makeClassHandle requires ptr and ptrType");
|
|
1435
|
+
!!b.M !== !!b.G && zc("Both smartPtrType and smartPtr must be specified");
|
|
1415
1436
|
b.count = {value:1};
|
|
1416
|
-
return
|
|
1437
|
+
return Bc(Object.create(a, {g:{value:b,},}));
|
|
1417
1438
|
}
|
|
1418
|
-
function
|
|
1439
|
+
function Bc(a) {
|
|
1419
1440
|
if ("undefined" === typeof FinalizationRegistry) {
|
|
1420
|
-
return
|
|
1441
|
+
return Bc = b => b, a;
|
|
1421
1442
|
}
|
|
1422
|
-
|
|
1423
|
-
|
|
1443
|
+
tc = new FinalizationRegistry(b => {
|
|
1444
|
+
uc(b.g);
|
|
1424
1445
|
});
|
|
1425
|
-
|
|
1446
|
+
Bc = b => {
|
|
1426
1447
|
var c = b.g;
|
|
1427
|
-
c.G &&
|
|
1448
|
+
c.G && tc.register(b, {g:c}, b);
|
|
1428
1449
|
return b;
|
|
1429
1450
|
};
|
|
1430
|
-
|
|
1431
|
-
|
|
1451
|
+
sc = b => {
|
|
1452
|
+
tc.unregister(b);
|
|
1432
1453
|
};
|
|
1433
|
-
return
|
|
1454
|
+
return Bc(a);
|
|
1434
1455
|
}
|
|
1435
|
-
var
|
|
1436
|
-
function
|
|
1456
|
+
var Cc = {};
|
|
1457
|
+
function Dc(a) {
|
|
1437
1458
|
for (; a.length;) {
|
|
1438
1459
|
var b = a.pop();
|
|
1439
1460
|
a.pop()(b);
|
|
1440
1461
|
}
|
|
1441
1462
|
}
|
|
1442
|
-
function
|
|
1443
|
-
return this.fromWireType(
|
|
1463
|
+
function Ec(a) {
|
|
1464
|
+
return this.fromWireType(F[a >> 2]);
|
|
1444
1465
|
}
|
|
1445
|
-
var
|
|
1446
|
-
function
|
|
1466
|
+
var Fc = {}, Gc = {};
|
|
1467
|
+
function U(a, b, c) {
|
|
1447
1468
|
function d(m) {
|
|
1448
1469
|
m = c(m);
|
|
1449
|
-
m.length !== a.length &&
|
|
1450
|
-
for (var
|
|
1451
|
-
|
|
1470
|
+
m.length !== a.length && zc("Mismatched type converter count");
|
|
1471
|
+
for (var p = 0; p < a.length; ++p) {
|
|
1472
|
+
V(a[p], m[p]);
|
|
1452
1473
|
}
|
|
1453
1474
|
}
|
|
1454
1475
|
a.forEach(function(m) {
|
|
1455
|
-
|
|
1476
|
+
Gc[m] = b;
|
|
1456
1477
|
});
|
|
1457
1478
|
var e = Array(b.length), f = [], g = 0;
|
|
1458
|
-
b.forEach((m,
|
|
1459
|
-
|
|
1460
|
-
e[
|
|
1479
|
+
b.forEach((m, p) => {
|
|
1480
|
+
nc.hasOwnProperty(m) ? e[p] = nc[m] : (f.push(m), Fc.hasOwnProperty(m) || (Fc[m] = []), Fc[m].push(() => {
|
|
1481
|
+
e[p] = nc[m];
|
|
1461
1482
|
++g;
|
|
1462
1483
|
g === f.length && d(e);
|
|
1463
1484
|
}));
|
|
1464
1485
|
});
|
|
1465
1486
|
0 === f.length && d(e);
|
|
1466
1487
|
}
|
|
1467
|
-
function
|
|
1488
|
+
function Hc(a) {
|
|
1468
1489
|
switch(a) {
|
|
1469
1490
|
case 1:
|
|
1470
1491
|
return 0;
|
|
@@ -1478,45 +1499,45 @@ function Dc(a) {
|
|
|
1478
1499
|
throw new TypeError(`Unknown type size: ${a}`);
|
|
1479
1500
|
}
|
|
1480
1501
|
}
|
|
1481
|
-
function
|
|
1502
|
+
function Ic(a, b, c = {}) {
|
|
1482
1503
|
var d = b.name;
|
|
1483
|
-
a ||
|
|
1484
|
-
if (
|
|
1504
|
+
a || R(`type "${d}" must have a positive integer typeid pointer`);
|
|
1505
|
+
if (nc.hasOwnProperty(a)) {
|
|
1485
1506
|
if (c.Xb) {
|
|
1486
1507
|
return;
|
|
1487
1508
|
}
|
|
1488
|
-
|
|
1509
|
+
R(`Cannot register type '${d}' twice`);
|
|
1489
1510
|
}
|
|
1490
|
-
|
|
1491
|
-
delete
|
|
1492
|
-
|
|
1511
|
+
nc[a] = b;
|
|
1512
|
+
delete Gc[a];
|
|
1513
|
+
Fc.hasOwnProperty(a) && (b = Fc[a], delete Fc[a], b.forEach(e => e()));
|
|
1493
1514
|
}
|
|
1494
|
-
function
|
|
1515
|
+
function V(a, b, c = {}) {
|
|
1495
1516
|
if (!("argPackAdvance" in b)) {
|
|
1496
1517
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
1497
1518
|
}
|
|
1498
|
-
|
|
1519
|
+
Ic(a, b, c);
|
|
1499
1520
|
}
|
|
1500
|
-
function
|
|
1501
|
-
|
|
1521
|
+
function Jc(a) {
|
|
1522
|
+
R(a.g.u.i.name + " instance already deleted");
|
|
1502
1523
|
}
|
|
1503
|
-
function
|
|
1524
|
+
function Kc() {
|
|
1504
1525
|
}
|
|
1505
|
-
function
|
|
1526
|
+
function Lc(a, b, c) {
|
|
1506
1527
|
if (void 0 === a[b].B) {
|
|
1507
1528
|
var d = a[b];
|
|
1508
1529
|
a[b] = function() {
|
|
1509
|
-
a[b].B.hasOwnProperty(arguments.length) ||
|
|
1530
|
+
a[b].B.hasOwnProperty(arguments.length) || R(`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${a[b].B})!`);
|
|
1510
1531
|
return a[b].B[arguments.length].apply(this, arguments);
|
|
1511
1532
|
};
|
|
1512
1533
|
a[b].B = [];
|
|
1513
1534
|
a[b].B[d.fa] = d;
|
|
1514
1535
|
}
|
|
1515
1536
|
}
|
|
1516
|
-
function
|
|
1517
|
-
|
|
1537
|
+
function Mc(a, b, c) {
|
|
1538
|
+
n.hasOwnProperty(a) ? ((void 0 === c || void 0 !== n[a].B && void 0 !== n[a].B[c]) && R(`Cannot register public name '${a}' twice`), Lc(n, a, a), n.hasOwnProperty(c) && R(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), n[a].B[c] = b) : (n[a] = b, void 0 !== c && (n[a].Kc = c));
|
|
1518
1539
|
}
|
|
1519
|
-
function
|
|
1540
|
+
function Nc(a, b, c, d, e, f, g, m) {
|
|
1520
1541
|
this.name = a;
|
|
1521
1542
|
this.constructor = b;
|
|
1522
1543
|
this.P = c;
|
|
@@ -1527,23 +1548,23 @@ function Jc(a, b, c, d, e, f, g, m) {
|
|
|
1527
1548
|
this.Lb = m;
|
|
1528
1549
|
this.lb = [];
|
|
1529
1550
|
}
|
|
1530
|
-
function
|
|
1551
|
+
function Oc(a, b, c) {
|
|
1531
1552
|
for (; b !== c;) {
|
|
1532
|
-
b.qa ||
|
|
1553
|
+
b.qa || R(`Expected null or instance of ${c.name}, got an instance of ${b.name}`), a = b.qa(a), b = b.A;
|
|
1533
1554
|
}
|
|
1534
1555
|
return a;
|
|
1535
1556
|
}
|
|
1536
|
-
function
|
|
1557
|
+
function Pc(a, b) {
|
|
1537
1558
|
if (null === b) {
|
|
1538
|
-
return this.Oa &&
|
|
1559
|
+
return this.Oa && R(`null is not a valid ${this.name}`), 0;
|
|
1539
1560
|
}
|
|
1540
|
-
b.g ||
|
|
1541
|
-
b.g.o ||
|
|
1542
|
-
return
|
|
1561
|
+
b.g || R(`Cannot pass "${Qc(b)}" as a ${this.name}`);
|
|
1562
|
+
b.g.o || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1563
|
+
return Oc(b.g.o, b.g.u.i, this.i);
|
|
1543
1564
|
}
|
|
1544
|
-
function
|
|
1565
|
+
function Rc(a, b) {
|
|
1545
1566
|
if (null === b) {
|
|
1546
|
-
this.Oa &&
|
|
1567
|
+
this.Oa && R(`null is not a valid ${this.name}`);
|
|
1547
1568
|
if (this.za) {
|
|
1548
1569
|
var c = this.Qa();
|
|
1549
1570
|
null !== a && a.push(this.X, c);
|
|
@@ -1551,14 +1572,14 @@ function Nc(a, b) {
|
|
|
1551
1572
|
}
|
|
1552
1573
|
return 0;
|
|
1553
1574
|
}
|
|
1554
|
-
b.g ||
|
|
1555
|
-
b.g.o ||
|
|
1556
|
-
!this.ya && b.g.u.ya &&
|
|
1557
|
-
c =
|
|
1575
|
+
b.g || R(`Cannot pass "${Qc(b)}" as a ${this.name}`);
|
|
1576
|
+
b.g.o || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1577
|
+
!this.ya && b.g.u.ya && R(`Cannot convert argument of type ${b.g.M ? b.g.M.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1578
|
+
c = Oc(b.g.o, b.g.u.i, this.i);
|
|
1558
1579
|
if (this.za) {
|
|
1559
|
-
switch(void 0 === b.g.G &&
|
|
1580
|
+
switch(void 0 === b.g.G && R("Passing raw pointer to smart pointer is illegal"), this.oc) {
|
|
1560
1581
|
case 0:
|
|
1561
|
-
b.g.M === this ? c = b.g.G :
|
|
1582
|
+
b.g.M === this ? c = b.g.G : R(`Cannot convert argument of type ${b.g.M ? b.g.M.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1562
1583
|
break;
|
|
1563
1584
|
case 1:
|
|
1564
1585
|
c = b.g.G;
|
|
@@ -1568,76 +1589,76 @@ function Nc(a, b) {
|
|
|
1568
1589
|
c = b.g.G;
|
|
1569
1590
|
} else {
|
|
1570
1591
|
var d = b.clone();
|
|
1571
|
-
c = this.jc(c,
|
|
1592
|
+
c = this.jc(c, ec(function() {
|
|
1572
1593
|
d["delete"]();
|
|
1573
1594
|
}));
|
|
1574
1595
|
null !== a && a.push(this.X, c);
|
|
1575
1596
|
}
|
|
1576
1597
|
break;
|
|
1577
1598
|
default:
|
|
1578
|
-
|
|
1599
|
+
R("Unsupporting sharing policy");
|
|
1579
1600
|
}
|
|
1580
1601
|
}
|
|
1581
1602
|
return c;
|
|
1582
1603
|
}
|
|
1583
|
-
function
|
|
1604
|
+
function Sc(a, b) {
|
|
1584
1605
|
if (null === b) {
|
|
1585
|
-
return this.Oa &&
|
|
1606
|
+
return this.Oa && R(`null is not a valid ${this.name}`), 0;
|
|
1586
1607
|
}
|
|
1587
|
-
b.g ||
|
|
1588
|
-
b.g.o ||
|
|
1589
|
-
b.g.u.ya &&
|
|
1590
|
-
return
|
|
1608
|
+
b.g || R(`Cannot pass "${Qc(b)}" as a ${this.name}`);
|
|
1609
|
+
b.g.o || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1610
|
+
b.g.u.ya && R(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1611
|
+
return Oc(b.g.o, b.g.u.i, this.i);
|
|
1591
1612
|
}
|
|
1592
|
-
function
|
|
1613
|
+
function Tc(a, b, c, d) {
|
|
1593
1614
|
this.name = a;
|
|
1594
1615
|
this.i = b;
|
|
1595
1616
|
this.Oa = c;
|
|
1596
1617
|
this.ya = d;
|
|
1597
1618
|
this.za = !1;
|
|
1598
1619
|
this.X = this.jc = this.Qa = this.nb = this.oc = this.ic = void 0;
|
|
1599
|
-
void 0 !== b.A ? this.toWireType =
|
|
1620
|
+
void 0 !== b.A ? this.toWireType = Rc : (this.toWireType = d ? Pc : Sc, this.K = null);
|
|
1600
1621
|
}
|
|
1601
|
-
function
|
|
1602
|
-
|
|
1603
|
-
void 0 !==
|
|
1622
|
+
function Uc(a, b, c) {
|
|
1623
|
+
n.hasOwnProperty(a) || zc("Replacing nonexistant public symbol");
|
|
1624
|
+
void 0 !== n[a].B && void 0 !== c ? n[a].B[c] = b : (n[a] = b, n[a].fa = c);
|
|
1604
1625
|
}
|
|
1605
|
-
var
|
|
1606
|
-
var b =
|
|
1607
|
-
b || (a >=
|
|
1626
|
+
var Vc = [], Wc = a => {
|
|
1627
|
+
var b = Vc[a];
|
|
1628
|
+
b || (a >= Vc.length && (Vc.length = a + 1), Vc[a] = b = Ba.get(a));
|
|
1608
1629
|
return b;
|
|
1609
|
-
},
|
|
1630
|
+
}, Xc = (a, b) => {
|
|
1610
1631
|
var c = [];
|
|
1611
1632
|
return function() {
|
|
1612
1633
|
c.length = 0;
|
|
1613
1634
|
Object.assign(c, arguments);
|
|
1614
1635
|
if (a.includes("j")) {
|
|
1615
|
-
var d =
|
|
1636
|
+
var d = n["dynCall_" + a];
|
|
1616
1637
|
d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
|
|
1617
1638
|
} else {
|
|
1618
|
-
d =
|
|
1639
|
+
d = Wc(b).apply(null, c);
|
|
1619
1640
|
}
|
|
1620
1641
|
return d;
|
|
1621
1642
|
};
|
|
1622
1643
|
};
|
|
1623
|
-
function
|
|
1624
|
-
a =
|
|
1625
|
-
var c = a.includes("j") ?
|
|
1626
|
-
"function" != typeof c &&
|
|
1644
|
+
function W(a, b) {
|
|
1645
|
+
a = T(a);
|
|
1646
|
+
var c = a.includes("j") ? Xc(a, b) : Wc(b);
|
|
1647
|
+
"function" != typeof c && R(`unknown function pointer with signature ${a}: ${b}`);
|
|
1627
1648
|
return c;
|
|
1628
1649
|
}
|
|
1629
|
-
var
|
|
1630
|
-
function
|
|
1650
|
+
var Yc = void 0;
|
|
1651
|
+
function Zc(a, b) {
|
|
1631
1652
|
function c(f) {
|
|
1632
|
-
e[f] ||
|
|
1653
|
+
e[f] || nc[f] || (Gc[f] ? Gc[f].forEach(c) : (d.push(f), e[f] = !0));
|
|
1633
1654
|
}
|
|
1634
1655
|
var d = [], e = {};
|
|
1635
1656
|
b.forEach(c);
|
|
1636
|
-
throw new
|
|
1657
|
+
throw new Yc(`${a}: ` + d.map(oc).join([", "]));
|
|
1637
1658
|
}
|
|
1638
|
-
function
|
|
1659
|
+
function $c(a, b, c, d, e) {
|
|
1639
1660
|
var f = b.length;
|
|
1640
|
-
2 > f &&
|
|
1661
|
+
2 > f && R("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1641
1662
|
var g = null !== b[1] && null !== c, m = !1;
|
|
1642
1663
|
for (c = 1; c < b.length; ++c) {
|
|
1643
1664
|
if (null !== b[c] && void 0 === b[c].K) {
|
|
@@ -1645,9 +1666,9 @@ function Wc(a, b, c, d, e) {
|
|
|
1645
1666
|
break;
|
|
1646
1667
|
}
|
|
1647
1668
|
}
|
|
1648
|
-
var
|
|
1669
|
+
var p = "void" !== b[0].name, l = f - 2, u = Array(l), v = [], q = [];
|
|
1649
1670
|
return function() {
|
|
1650
|
-
arguments.length !== l &&
|
|
1671
|
+
arguments.length !== l && R(`function ${a} called with ${arguments.length} arguments, expected ${l} args!`);
|
|
1651
1672
|
q.length = 0;
|
|
1652
1673
|
v.length = g ? 2 : 1;
|
|
1653
1674
|
v[0] = e;
|
|
@@ -1660,114 +1681,114 @@ function Wc(a, b, c, d, e) {
|
|
|
1660
1681
|
}
|
|
1661
1682
|
r = d.apply(null, v);
|
|
1662
1683
|
if (m) {
|
|
1663
|
-
|
|
1684
|
+
Dc(q);
|
|
1664
1685
|
} else {
|
|
1665
1686
|
for (var w = g ? 1 : 2; w < b.length; w++) {
|
|
1666
1687
|
var z = 1 === w ? k : u[w - 2];
|
|
1667
1688
|
null !== b[w].K && b[w].K(z);
|
|
1668
1689
|
}
|
|
1669
1690
|
}
|
|
1670
|
-
k =
|
|
1691
|
+
k = p ? b[0].fromWireType(r) : void 0;
|
|
1671
1692
|
return k;
|
|
1672
1693
|
};
|
|
1673
1694
|
}
|
|
1674
|
-
function
|
|
1695
|
+
function ad(a, b) {
|
|
1675
1696
|
for (var c = [], d = 0; d < a; d++) {
|
|
1676
|
-
c.push(
|
|
1697
|
+
c.push(I[b + 4 * d >> 2]);
|
|
1677
1698
|
}
|
|
1678
1699
|
return c;
|
|
1679
1700
|
}
|
|
1680
|
-
function
|
|
1681
|
-
a instanceof Object ||
|
|
1682
|
-
a instanceof b.i.constructor ||
|
|
1683
|
-
a.g.o ||
|
|
1684
|
-
return
|
|
1701
|
+
function bd(a, b, c) {
|
|
1702
|
+
a instanceof Object || R(`${c} with invalid "this": ${a}`);
|
|
1703
|
+
a instanceof b.i.constructor || R(`${c} incompatible with "this" of type ${a.constructor.name}`);
|
|
1704
|
+
a.g.o || R(`cannot call emscripten binding method ${c} on deleted object`);
|
|
1705
|
+
return Oc(a.g.o, a.g.u.i, b.i);
|
|
1685
1706
|
}
|
|
1686
|
-
function
|
|
1687
|
-
a >=
|
|
1707
|
+
function cd(a) {
|
|
1708
|
+
a >= Q.h && 0 === --Q.get(a).pb && Q.Wb(a);
|
|
1688
1709
|
}
|
|
1689
|
-
function
|
|
1710
|
+
function dd(a, b, c) {
|
|
1690
1711
|
switch(b) {
|
|
1691
1712
|
case 0:
|
|
1692
1713
|
return function(d) {
|
|
1693
|
-
return this.fromWireType((c ?
|
|
1714
|
+
return this.fromWireType((c ? B : C)[d]);
|
|
1694
1715
|
};
|
|
1695
1716
|
case 1:
|
|
1696
1717
|
return function(d) {
|
|
1697
|
-
return this.fromWireType((c ?
|
|
1718
|
+
return this.fromWireType((c ? D : xa)[d >> 1]);
|
|
1698
1719
|
};
|
|
1699
1720
|
case 2:
|
|
1700
1721
|
return function(d) {
|
|
1701
|
-
return this.fromWireType((c ?
|
|
1722
|
+
return this.fromWireType((c ? F : I)[d >> 2]);
|
|
1702
1723
|
};
|
|
1703
1724
|
default:
|
|
1704
1725
|
throw new TypeError("Unknown integer type: " + a);
|
|
1705
1726
|
}
|
|
1706
1727
|
}
|
|
1707
|
-
function
|
|
1728
|
+
function Qc(a) {
|
|
1708
1729
|
if (null === a) {
|
|
1709
1730
|
return "null";
|
|
1710
1731
|
}
|
|
1711
1732
|
var b = typeof a;
|
|
1712
1733
|
return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
|
|
1713
1734
|
}
|
|
1714
|
-
function
|
|
1735
|
+
function ed(a, b) {
|
|
1715
1736
|
switch(b) {
|
|
1716
1737
|
case 2:
|
|
1717
1738
|
return function(c) {
|
|
1718
|
-
return this.fromWireType(
|
|
1739
|
+
return this.fromWireType(ya[c >> 2]);
|
|
1719
1740
|
};
|
|
1720
1741
|
case 3:
|
|
1721
1742
|
return function(c) {
|
|
1722
|
-
return this.fromWireType(
|
|
1743
|
+
return this.fromWireType(za[c >> 3]);
|
|
1723
1744
|
};
|
|
1724
1745
|
default:
|
|
1725
1746
|
throw new TypeError("Unknown float type: " + a);
|
|
1726
1747
|
}
|
|
1727
1748
|
}
|
|
1728
|
-
function
|
|
1749
|
+
function fd(a, b, c) {
|
|
1729
1750
|
switch(b) {
|
|
1730
1751
|
case 0:
|
|
1731
1752
|
return c ? function(d) {
|
|
1732
|
-
return y[d];
|
|
1733
|
-
} : function(d) {
|
|
1734
1753
|
return B[d];
|
|
1754
|
+
} : function(d) {
|
|
1755
|
+
return C[d];
|
|
1735
1756
|
};
|
|
1736
1757
|
case 1:
|
|
1737
1758
|
return c ? function(d) {
|
|
1738
|
-
return
|
|
1759
|
+
return D[d >> 1];
|
|
1739
1760
|
} : function(d) {
|
|
1740
|
-
return
|
|
1761
|
+
return xa[d >> 1];
|
|
1741
1762
|
};
|
|
1742
1763
|
case 2:
|
|
1743
1764
|
return c ? function(d) {
|
|
1744
|
-
return D[d >> 2];
|
|
1745
|
-
} : function(d) {
|
|
1746
1765
|
return F[d >> 2];
|
|
1766
|
+
} : function(d) {
|
|
1767
|
+
return I[d >> 2];
|
|
1747
1768
|
};
|
|
1748
1769
|
default:
|
|
1749
1770
|
throw new TypeError("Unknown integer type: " + a);
|
|
1750
1771
|
}
|
|
1751
1772
|
}
|
|
1752
|
-
var
|
|
1773
|
+
var gd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, hd = (a, b) => {
|
|
1753
1774
|
var c = a >> 1;
|
|
1754
|
-
for (var d = c + b / 2; !(c >= d) &&
|
|
1775
|
+
for (var d = c + b / 2; !(c >= d) && xa[c];) {
|
|
1755
1776
|
++c;
|
|
1756
1777
|
}
|
|
1757
1778
|
c <<= 1;
|
|
1758
|
-
if (32 < c - a &&
|
|
1759
|
-
return
|
|
1779
|
+
if (32 < c - a && gd) {
|
|
1780
|
+
return gd.decode(C.subarray(a, c));
|
|
1760
1781
|
}
|
|
1761
1782
|
c = "";
|
|
1762
1783
|
for (d = 0; !(d >= b / 2); ++d) {
|
|
1763
|
-
var e =
|
|
1784
|
+
var e = D[a + 2 * d >> 1];
|
|
1764
1785
|
if (0 == e) {
|
|
1765
1786
|
break;
|
|
1766
1787
|
}
|
|
1767
1788
|
c += String.fromCharCode(e);
|
|
1768
1789
|
}
|
|
1769
1790
|
return c;
|
|
1770
|
-
},
|
|
1791
|
+
}, jd = (a, b, c) => {
|
|
1771
1792
|
void 0 === c && (c = 2147483647);
|
|
1772
1793
|
if (2 > c) {
|
|
1773
1794
|
return 0;
|
|
@@ -1776,13 +1797,13 @@ var cd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1776
1797
|
var d = b;
|
|
1777
1798
|
c = c < 2 * a.length ? c / 2 : a.length;
|
|
1778
1799
|
for (var e = 0; e < c; ++e) {
|
|
1779
|
-
|
|
1800
|
+
D[b >> 1] = a.charCodeAt(e), b += 2;
|
|
1780
1801
|
}
|
|
1781
|
-
|
|
1802
|
+
D[b >> 1] = 0;
|
|
1782
1803
|
return b - d;
|
|
1783
|
-
},
|
|
1804
|
+
}, kd = a => 2 * a.length, ld = (a, b) => {
|
|
1784
1805
|
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
1785
|
-
var e =
|
|
1806
|
+
var e = F[a + 4 * c >> 2];
|
|
1786
1807
|
if (0 == e) {
|
|
1787
1808
|
break;
|
|
1788
1809
|
}
|
|
@@ -1790,7 +1811,7 @@ var cd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1790
1811
|
65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
|
|
1791
1812
|
}
|
|
1792
1813
|
return d;
|
|
1793
|
-
},
|
|
1814
|
+
}, md = (a, b, c) => {
|
|
1794
1815
|
void 0 === c && (c = 2147483647);
|
|
1795
1816
|
if (4 > c) {
|
|
1796
1817
|
return 0;
|
|
@@ -1803,103 +1824,103 @@ var cd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1803
1824
|
var g = a.charCodeAt(++e);
|
|
1804
1825
|
f = 65536 + ((f & 1023) << 10) | g & 1023;
|
|
1805
1826
|
}
|
|
1806
|
-
|
|
1827
|
+
F[b >> 2] = f;
|
|
1807
1828
|
b += 4;
|
|
1808
1829
|
if (b + 4 > c) {
|
|
1809
1830
|
break;
|
|
1810
1831
|
}
|
|
1811
1832
|
}
|
|
1812
|
-
|
|
1833
|
+
F[b >> 2] = 0;
|
|
1813
1834
|
return b - d;
|
|
1814
|
-
},
|
|
1835
|
+
}, nd = a => {
|
|
1815
1836
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
1816
1837
|
var d = a.charCodeAt(c);
|
|
1817
1838
|
55296 <= d && 57343 >= d && ++c;
|
|
1818
1839
|
b += 4;
|
|
1819
1840
|
}
|
|
1820
1841
|
return b;
|
|
1821
|
-
},
|
|
1822
|
-
function
|
|
1823
|
-
var b =
|
|
1824
|
-
return void 0 === b ?
|
|
1842
|
+
}, od = {};
|
|
1843
|
+
function pd(a) {
|
|
1844
|
+
var b = od[a];
|
|
1845
|
+
return void 0 === b ? T(a) : b;
|
|
1825
1846
|
}
|
|
1826
|
-
var
|
|
1827
|
-
function
|
|
1828
|
-
var b =
|
|
1829
|
-
|
|
1847
|
+
var qd = [];
|
|
1848
|
+
function rd(a) {
|
|
1849
|
+
var b = qd.length;
|
|
1850
|
+
qd.push(a);
|
|
1830
1851
|
return b;
|
|
1831
1852
|
}
|
|
1832
|
-
function
|
|
1853
|
+
function sd(a, b) {
|
|
1833
1854
|
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
1834
|
-
c[d] =
|
|
1855
|
+
c[d] = rc(I[b + 4 * d >> 2], "parameter " + d);
|
|
1835
1856
|
}
|
|
1836
1857
|
return c;
|
|
1837
1858
|
}
|
|
1838
|
-
var
|
|
1839
|
-
function
|
|
1859
|
+
var td = [], ud = [];
|
|
1860
|
+
function vd(a) {
|
|
1840
1861
|
a.Cc = a.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
|
|
1841
1862
|
}
|
|
1842
|
-
function
|
|
1863
|
+
function wd(a) {
|
|
1843
1864
|
a.Ic = a.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
|
|
1844
1865
|
}
|
|
1845
|
-
var
|
|
1866
|
+
var xd = 1, yd = [], zd = [], Ad = [], Bd = [], X = [], Cd = [], Dd = [], t = [], Ed = {};
|
|
1846
1867
|
function Y(a) {
|
|
1847
|
-
|
|
1868
|
+
Fd || (Fd = a);
|
|
1848
1869
|
}
|
|
1849
1870
|
function ia(a) {
|
|
1850
|
-
for (var b =
|
|
1871
|
+
for (var b = xd++, c = a.length; c < b; c++) {
|
|
1851
1872
|
a[c] = null;
|
|
1852
1873
|
}
|
|
1853
1874
|
return b;
|
|
1854
1875
|
}
|
|
1855
1876
|
function ka(a) {
|
|
1856
|
-
|
|
1857
|
-
|
|
1877
|
+
Gd = t[a];
|
|
1878
|
+
n.Bc = Z = Gd && Gd.H;
|
|
1858
1879
|
return !(a && !Z);
|
|
1859
1880
|
}
|
|
1860
1881
|
function ja(a) {
|
|
1861
|
-
a || (a =
|
|
1882
|
+
a || (a = Gd);
|
|
1862
1883
|
if (!a.Yb) {
|
|
1863
1884
|
a.Yb = !0;
|
|
1864
1885
|
var b = a.H;
|
|
1865
|
-
|
|
1866
|
-
|
|
1886
|
+
vd(b);
|
|
1887
|
+
wd(b);
|
|
1867
1888
|
2 <= a.version && (b.Za = b.getExtension("EXT_disjoint_timer_query_webgl2"));
|
|
1868
1889
|
if (2 > a.version || !b.Za) {
|
|
1869
1890
|
b.Za = b.getExtension("EXT_disjoint_timer_query");
|
|
1870
1891
|
}
|
|
1871
|
-
|
|
1892
|
+
Hd(b);
|
|
1872
1893
|
(b.getSupportedExtensions() || []).forEach(function(c) {
|
|
1873
1894
|
c.includes("lose_context") || c.includes("debug") || b.getExtension(c);
|
|
1874
1895
|
});
|
|
1875
1896
|
}
|
|
1876
1897
|
}
|
|
1877
|
-
var
|
|
1878
|
-
function
|
|
1898
|
+
var Fd, Gd;
|
|
1899
|
+
function Hd(a) {
|
|
1879
1900
|
a.Jc = a.getExtension("WEBGL_multi_draw");
|
|
1880
1901
|
}
|
|
1881
|
-
var
|
|
1882
|
-
if (!
|
|
1883
|
-
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;
|
|
1884
|
-
for (b in
|
|
1885
|
-
void 0 ===
|
|
1902
|
+
var Id = {}, Kd = () => {
|
|
1903
|
+
if (!Jd) {
|
|
1904
|
+
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", _:ma || "./this.program"}, b;
|
|
1905
|
+
for (b in Id) {
|
|
1906
|
+
void 0 === Id[b] ? delete a[b] : a[b] = Id[b];
|
|
1886
1907
|
}
|
|
1887
1908
|
var c = [];
|
|
1888
1909
|
for (b in a) {
|
|
1889
1910
|
c.push(`${b}=${a[b]}`);
|
|
1890
1911
|
}
|
|
1891
|
-
|
|
1912
|
+
Jd = c;
|
|
1892
1913
|
}
|
|
1893
|
-
return
|
|
1894
|
-
},
|
|
1895
|
-
function
|
|
1914
|
+
return Jd;
|
|
1915
|
+
}, Jd, Ld = [];
|
|
1916
|
+
function Md(a, b, c, d) {
|
|
1896
1917
|
for (var e = 0; e < a; e++) {
|
|
1897
1918
|
var f = Z[c](), g = f && ia(d);
|
|
1898
1919
|
f ? (f.name = g, d[g] = f) : Y(1282);
|
|
1899
|
-
|
|
1920
|
+
F[b + 4 * e >> 2] = g;
|
|
1900
1921
|
}
|
|
1901
1922
|
}
|
|
1902
|
-
function
|
|
1923
|
+
function Nd(a, b) {
|
|
1903
1924
|
if (b) {
|
|
1904
1925
|
var c = void 0;
|
|
1905
1926
|
switch(a) {
|
|
@@ -1917,7 +1938,7 @@ function Id(a, b) {
|
|
|
1917
1938
|
c = d ? d.length : 0;
|
|
1918
1939
|
break;
|
|
1919
1940
|
case 33309:
|
|
1920
|
-
if (2 >
|
|
1941
|
+
if (2 > Gd.version) {
|
|
1921
1942
|
Y(1282);
|
|
1922
1943
|
return;
|
|
1923
1944
|
}
|
|
@@ -1925,7 +1946,7 @@ function Id(a, b) {
|
|
|
1925
1946
|
break;
|
|
1926
1947
|
case 33307:
|
|
1927
1948
|
case 33308:
|
|
1928
|
-
if (2 >
|
|
1949
|
+
if (2 > Gd.version) {
|
|
1929
1950
|
Y(1280);
|
|
1930
1951
|
return;
|
|
1931
1952
|
}
|
|
@@ -1973,7 +1994,7 @@ function Id(a, b) {
|
|
|
1973
1994
|
} else {
|
|
1974
1995
|
if (d instanceof Float32Array || d instanceof Uint32Array || d instanceof Int32Array || d instanceof Array) {
|
|
1975
1996
|
for (a = 0; a < d.length; ++a) {
|
|
1976
|
-
|
|
1997
|
+
F[b + 4 * a >> 2] = d[a];
|
|
1977
1998
|
}
|
|
1978
1999
|
return;
|
|
1979
2000
|
}
|
|
@@ -1992,20 +2013,20 @@ function Id(a, b) {
|
|
|
1992
2013
|
return;
|
|
1993
2014
|
}
|
|
1994
2015
|
}
|
|
1995
|
-
|
|
2016
|
+
F[b >> 2] = c;
|
|
1996
2017
|
} else {
|
|
1997
2018
|
Y(1281);
|
|
1998
2019
|
}
|
|
1999
2020
|
}
|
|
2000
|
-
var
|
|
2001
|
-
var b =
|
|
2002
|
-
c &&
|
|
2021
|
+
var Pd = a => {
|
|
2022
|
+
var b = db(a) + 1, c = Od(b);
|
|
2023
|
+
c && eb(a, C, c, b);
|
|
2003
2024
|
return c;
|
|
2004
2025
|
};
|
|
2005
|
-
function
|
|
2026
|
+
function Qd(a) {
|
|
2006
2027
|
return "]" == a.slice(-1) && a.lastIndexOf("[");
|
|
2007
2028
|
}
|
|
2008
|
-
var
|
|
2029
|
+
var Rd = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Sd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Td = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ud = (a, b, c, d) => {
|
|
2009
2030
|
function e(k, r, w) {
|
|
2010
2031
|
for (k = "number" == typeof k ? k.toString() : k || ""; k.length < r;) {
|
|
2011
2032
|
k = w[0] + k;
|
|
@@ -2041,10 +2062,10 @@ var Md = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Nd = [31, 29, 31,
|
|
|
2041
2062
|
return new Date(k.getFullYear() - 1, 11, 30);
|
|
2042
2063
|
}
|
|
2043
2064
|
}
|
|
2044
|
-
function
|
|
2065
|
+
function p(k) {
|
|
2045
2066
|
var r = k.ba;
|
|
2046
2067
|
for (k = new Date((new Date(k.ca + 1900, 0, 1)).getTime()); 0 < r;) {
|
|
2047
|
-
var w = k.getMonth(), z = (
|
|
2068
|
+
var w = k.getMonth(), z = (Rd(k.getFullYear()) ? Sd : Td)[w];
|
|
2048
2069
|
if (r > z - k.getDate()) {
|
|
2049
2070
|
r -= z - k.getDate() + 1, k.setDate(1), 11 > w ? k.setMonth(w + 1) : (k.setMonth(0), k.setFullYear(k.getFullYear() + 1));
|
|
2050
2071
|
} else {
|
|
@@ -2057,31 +2078,31 @@ var Md = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Nd = [31, 29, 31,
|
|
|
2057
2078
|
w = m(w);
|
|
2058
2079
|
return 0 >= g(r, k) ? 0 >= g(w, k) ? k.getFullYear() + 1 : k.getFullYear() : k.getFullYear() - 1;
|
|
2059
2080
|
}
|
|
2060
|
-
var l =
|
|
2061
|
-
d = {rc:
|
|
2062
|
-
c = c ?
|
|
2081
|
+
var l = F[d + 40 >> 2];
|
|
2082
|
+
d = {rc:F[d >> 2], qc:F[d + 4 >> 2], Ga:F[d + 8 >> 2], Sa:F[d + 12 >> 2], Ha:F[d + 16 >> 2], ca:F[d + 20 >> 2], T:F[d + 24 >> 2], ba:F[d + 28 >> 2], Mc:F[d + 32 >> 2], pc:F[d + 36 >> 2], sc:l ? l ? L(C, l) : "" : ""};
|
|
2083
|
+
c = c ? L(C, c) : "";
|
|
2063
2084
|
l = {"%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",};
|
|
2064
2085
|
for (var u in l) {
|
|
2065
2086
|
c = c.replace(new RegExp(u, "g"), l[u]);
|
|
2066
2087
|
}
|
|
2067
2088
|
var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), q = "January February March April May June July August September October November December".split(" ");
|
|
2068
|
-
l = {"%a":k => v[k.T].substring(0, 3), "%A":k => v[k.T], "%b":k => q[k.Ha].substring(0, 3), "%B":k => q[k.Ha], "%C":k => f((k.ca + 1900) / 100 | 0, 2), "%d":k => f(k.Sa, 2), "%e":k => e(k.Sa, 2, " "), "%g":k =>
|
|
2089
|
+
l = {"%a":k => v[k.T].substring(0, 3), "%A":k => v[k.T], "%b":k => q[k.Ha].substring(0, 3), "%B":k => q[k.Ha], "%C":k => f((k.ca + 1900) / 100 | 0, 2), "%d":k => f(k.Sa, 2), "%e":k => e(k.Sa, 2, " "), "%g":k => p(k).toString().substring(2), "%G":k => p(k), "%H":k => f(k.Ga, 2), "%I":k => {
|
|
2069
2090
|
k = k.Ga;
|
|
2070
2091
|
0 == k ? k = 12 : 12 < k && (k -= 12);
|
|
2071
2092
|
return f(k, 2);
|
|
2072
2093
|
}, "%j":k => {
|
|
2073
|
-
for (var r = 0, w = 0; w <= k.Ha - 1; r += (
|
|
2094
|
+
for (var r = 0, w = 0; w <= k.Ha - 1; r += (Rd(k.ca + 1900) ? Sd : Td)[w++]) {
|
|
2074
2095
|
}
|
|
2075
2096
|
return f(k.Sa + r, 3);
|
|
2076
2097
|
}, "%m":k => f(k.Ha + 1, 2), "%M":k => f(k.qc, 2), "%n":() => "\n", "%p":k => 0 <= k.Ga && 12 > k.Ga ? "AM" : "PM", "%S":k => f(k.rc, 2), "%t":() => "\t", "%u":k => k.T || 7, "%U":k => f(Math.floor((k.ba + 7 - k.T) / 7), 2), "%V":k => {
|
|
2077
2098
|
var r = Math.floor((k.ba + 7 - (k.T + 6) % 7) / 7);
|
|
2078
2099
|
2 >= (k.T + 371 - k.ba - 2) % 7 && r++;
|
|
2079
2100
|
if (r) {
|
|
2080
|
-
53 == r && (w = (k.T + 371 - k.ba) % 7, 4 == w || 3 == w &&
|
|
2101
|
+
53 == r && (w = (k.T + 371 - k.ba) % 7, 4 == w || 3 == w && Rd(k.ca) || (r = 1));
|
|
2081
2102
|
} else {
|
|
2082
2103
|
r = 52;
|
|
2083
2104
|
var w = (k.T + 7 - k.ba - 1) % 7;
|
|
2084
|
-
(4 == w || 5 == w &&
|
|
2105
|
+
(4 == w || 5 == w && Rd(k.ca % 400 - 1)) && r++;
|
|
2085
2106
|
}
|
|
2086
2107
|
return f(r, 2);
|
|
2087
2108
|
}, "%w":k => k.T, "%W":k => f(Math.floor((k.ba + 7 - (k.T + 6) % 7) / 7), 2), "%y":k => (k.ca + 1900).toString().substring(2), "%Y":k => k.ca + 1900, "%z":k => {
|
|
@@ -2095,26 +2116,26 @@ var Md = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Nd = [31, 29, 31,
|
|
|
2095
2116
|
c.includes(u) && (c = c.replace(new RegExp(u, "g"), l[u](d)));
|
|
2096
2117
|
}
|
|
2097
2118
|
c = c.replace(/\0\0/g, "%");
|
|
2098
|
-
u =
|
|
2119
|
+
u = fb(c, !1);
|
|
2099
2120
|
if (u.length > b) {
|
|
2100
2121
|
return 0;
|
|
2101
2122
|
}
|
|
2102
|
-
|
|
2123
|
+
B.set(u, a);
|
|
2103
2124
|
return u.length - 1;
|
|
2104
2125
|
};
|
|
2105
|
-
function
|
|
2126
|
+
function Eb(a, b, c, d) {
|
|
2106
2127
|
a || (a = this);
|
|
2107
2128
|
this.parent = a;
|
|
2108
2129
|
this.V = a.V;
|
|
2109
2130
|
this.Ba = null;
|
|
2110
|
-
this.id =
|
|
2131
|
+
this.id = wb++;
|
|
2111
2132
|
this.name = b;
|
|
2112
2133
|
this.mode = c;
|
|
2113
2134
|
this.j = {};
|
|
2114
2135
|
this.m = {};
|
|
2115
2136
|
this.na = d;
|
|
2116
2137
|
}
|
|
2117
|
-
Object.defineProperties(
|
|
2138
|
+
Object.defineProperties(Eb.prototype, {read:{get:function() {
|
|
2118
2139
|
return 365 === (this.mode & 365);
|
|
2119
2140
|
}, set:function(a) {
|
|
2120
2141
|
a ? this.mode |= 365 : this.mode &= -366;
|
|
@@ -2123,44 +2144,44 @@ Object.defineProperties(Ab.prototype, {read:{get:function() {
|
|
|
2123
2144
|
}, set:function(a) {
|
|
2124
2145
|
a ? this.mode |= 146 : this.mode &= -147;
|
|
2125
2146
|
}}});
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2147
|
+
Tb();
|
|
2148
|
+
xb = Array(4096);
|
|
2149
|
+
Lb(N, "/");
|
|
2150
|
+
O("/tmp", 16895, 0);
|
|
2151
|
+
O("/home", 16895, 0);
|
|
2152
|
+
O("/home/web_user", 16895, 0);
|
|
2132
2153
|
(() => {
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2154
|
+
O("/dev", 16895, 0);
|
|
2155
|
+
ib(259, {read:() => 0, write:(d, e, f, g) => g,});
|
|
2156
|
+
Mb("/dev/null", 259);
|
|
2157
|
+
hb(1280, kb);
|
|
2158
|
+
hb(1536, lb);
|
|
2159
|
+
Mb("/dev/tty", 1280);
|
|
2160
|
+
Mb("/dev/tty1", 1536);
|
|
2140
2161
|
var a = new Uint8Array(1024), b = 0, c = () => {
|
|
2141
|
-
0 === b && (b =
|
|
2162
|
+
0 === b && (b = $a(a).byteLength);
|
|
2142
2163
|
return a[--b];
|
|
2143
2164
|
};
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2165
|
+
Wb("random", c);
|
|
2166
|
+
Wb("urandom", c);
|
|
2167
|
+
O("/dev/shm", 16895, 0);
|
|
2168
|
+
O("/dev/shm/tmp", 16895, 0);
|
|
2148
2169
|
})();
|
|
2149
2170
|
(() => {
|
|
2150
|
-
|
|
2151
|
-
var a =
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
var b =
|
|
2171
|
+
O("/proc", 16895, 0);
|
|
2172
|
+
var a = O("/proc/self", 16895, 0);
|
|
2173
|
+
O("/proc/self/fd", 16895, 0);
|
|
2174
|
+
Lb({V:() => {
|
|
2175
|
+
var b = ob(a, "fd", 16895, 73);
|
|
2155
2176
|
b.j = {ma:(c, d) => {
|
|
2156
|
-
var e =
|
|
2177
|
+
var e = Ib(+d);
|
|
2157
2178
|
c = {parent:null, V:{hb:"fake"}, j:{oa:() => e.path},};
|
|
2158
2179
|
return c.parent = c;
|
|
2159
2180
|
}};
|
|
2160
2181
|
return b;
|
|
2161
2182
|
}}, "/proc/self/fd");
|
|
2162
2183
|
})();
|
|
2163
|
-
Object.assign(
|
|
2184
|
+
Object.assign(cc.prototype, {get(a) {
|
|
2164
2185
|
return this.N[a];
|
|
2165
2186
|
}, has(a) {
|
|
2166
2187
|
return void 0 !== this.N[a];
|
|
@@ -2172,48 +2193,48 @@ Object.assign(Zb.prototype, {get(a) {
|
|
|
2172
2193
|
this.N[a] = void 0;
|
|
2173
2194
|
this.bb.push(a);
|
|
2174
2195
|
}});
|
|
2175
|
-
|
|
2196
|
+
dc = n.BindingError = class extends Error {
|
|
2176
2197
|
constructor(a) {
|
|
2177
2198
|
super(a);
|
|
2178
2199
|
this.name = "BindingError";
|
|
2179
2200
|
}
|
|
2180
2201
|
};
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
for (var a = 0, b =
|
|
2185
|
-
void 0 !==
|
|
2202
|
+
Q.N.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
|
|
2203
|
+
Q.h = Q.N.length;
|
|
2204
|
+
n.count_emval_handles = function() {
|
|
2205
|
+
for (var a = 0, b = Q.h; b < Q.N.length; ++b) {
|
|
2206
|
+
void 0 !== Q.N[b] && ++a;
|
|
2186
2207
|
}
|
|
2187
2208
|
return a;
|
|
2188
2209
|
};
|
|
2189
|
-
|
|
2190
|
-
for (var
|
|
2191
|
-
|
|
2210
|
+
gc = n.PureVirtualError = fc("PureVirtualError");
|
|
2211
|
+
for (var Vd = Array(256), Wd = 0; 256 > Wd; ++Wd) {
|
|
2212
|
+
Vd[Wd] = String.fromCharCode(Wd);
|
|
2192
2213
|
}
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
return Object.keys(
|
|
2214
|
+
hc = Vd;
|
|
2215
|
+
n.getInheritedInstanceCount = function() {
|
|
2216
|
+
return Object.keys(lc).length;
|
|
2196
2217
|
};
|
|
2197
|
-
|
|
2218
|
+
n.getLiveInheritedInstances = function() {
|
|
2198
2219
|
var a = [], b;
|
|
2199
|
-
for (b in
|
|
2200
|
-
|
|
2220
|
+
for (b in lc) {
|
|
2221
|
+
lc.hasOwnProperty(b) && a.push(lc[b]);
|
|
2201
2222
|
}
|
|
2202
2223
|
return a;
|
|
2203
2224
|
};
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2225
|
+
n.flushPendingDeletes = jc;
|
|
2226
|
+
n.setDelayFunction = function(a) {
|
|
2227
|
+
kc = a;
|
|
2228
|
+
ic.length && kc && kc(jc);
|
|
2208
2229
|
};
|
|
2209
|
-
|
|
2230
|
+
yc = n.InternalError = class extends Error {
|
|
2210
2231
|
constructor(a) {
|
|
2211
2232
|
super(a);
|
|
2212
2233
|
this.name = "InternalError";
|
|
2213
2234
|
}
|
|
2214
2235
|
};
|
|
2215
|
-
|
|
2216
|
-
if (!(this instanceof
|
|
2236
|
+
Kc.prototype.isAliasOf = function(a) {
|
|
2237
|
+
if (!(this instanceof Kc && a instanceof Kc)) {
|
|
2217
2238
|
return !1;
|
|
2218
2239
|
}
|
|
2219
2240
|
var b = this.g.u.i, c = this.g.o, d = a.g.u.i;
|
|
@@ -2225,58 +2246,58 @@ Gc.prototype.isAliasOf = function(a) {
|
|
|
2225
2246
|
}
|
|
2226
2247
|
return b === d && c === a;
|
|
2227
2248
|
};
|
|
2228
|
-
|
|
2229
|
-
this.g.o ||
|
|
2249
|
+
Kc.prototype.clone = function() {
|
|
2250
|
+
this.g.o || Jc(this);
|
|
2230
2251
|
if (this.g.ja) {
|
|
2231
2252
|
return this.g.count.value += 1, this;
|
|
2232
2253
|
}
|
|
2233
|
-
var a =
|
|
2254
|
+
var a = Bc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
|
|
2234
2255
|
a = a(c.call(b, d, {g:{value:{count:e.count, ga:e.ga, ja:e.ja, o:e.o, u:e.u, G:e.G, M:e.M,},}}));
|
|
2235
2256
|
a.g.count.value += 1;
|
|
2236
2257
|
a.g.ga = !1;
|
|
2237
2258
|
return a;
|
|
2238
2259
|
};
|
|
2239
|
-
|
|
2240
|
-
this.g.o ||
|
|
2241
|
-
this.g.ga && !this.g.ja &&
|
|
2242
|
-
|
|
2243
|
-
|
|
2260
|
+
Kc.prototype["delete"] = function() {
|
|
2261
|
+
this.g.o || Jc(this);
|
|
2262
|
+
this.g.ga && !this.g.ja && R("Object already scheduled for deletion");
|
|
2263
|
+
sc(this);
|
|
2264
|
+
uc(this.g);
|
|
2244
2265
|
this.g.ja || (this.g.G = void 0, this.g.o = void 0);
|
|
2245
2266
|
};
|
|
2246
|
-
|
|
2267
|
+
Kc.prototype.isDeleted = function() {
|
|
2247
2268
|
return !this.g.o;
|
|
2248
2269
|
};
|
|
2249
|
-
|
|
2250
|
-
this.g.o ||
|
|
2251
|
-
this.g.ga && !this.g.ja &&
|
|
2252
|
-
|
|
2253
|
-
1 ===
|
|
2270
|
+
Kc.prototype.deleteLater = function() {
|
|
2271
|
+
this.g.o || Jc(this);
|
|
2272
|
+
this.g.ga && !this.g.ja && R("Object already scheduled for deletion");
|
|
2273
|
+
ic.push(this);
|
|
2274
|
+
1 === ic.length && kc && kc(jc);
|
|
2254
2275
|
this.g.ga = !0;
|
|
2255
2276
|
return this;
|
|
2256
2277
|
};
|
|
2257
|
-
|
|
2278
|
+
Tc.prototype.Rb = function(a) {
|
|
2258
2279
|
this.nb && (a = this.nb(a));
|
|
2259
2280
|
return a;
|
|
2260
2281
|
};
|
|
2261
|
-
|
|
2282
|
+
Tc.prototype.Ya = function(a) {
|
|
2262
2283
|
this.X && this.X(a);
|
|
2263
2284
|
};
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2285
|
+
Tc.prototype.argPackAdvance = 8;
|
|
2286
|
+
Tc.prototype.readValueFromPointer = Ec;
|
|
2287
|
+
Tc.prototype.deleteObject = function(a) {
|
|
2267
2288
|
if (null !== a) {
|
|
2268
2289
|
a["delete"]();
|
|
2269
2290
|
}
|
|
2270
2291
|
};
|
|
2271
|
-
|
|
2292
|
+
Tc.prototype.fromWireType = function(a) {
|
|
2272
2293
|
function b() {
|
|
2273
|
-
return this.za ?
|
|
2294
|
+
return this.za ? Ac(this.i.P, {u:this.ic, o:c, M:this, G:a,}) : Ac(this.i.P, {u:this, o:a,});
|
|
2274
2295
|
}
|
|
2275
2296
|
var c = this.Rb(a);
|
|
2276
2297
|
if (!c) {
|
|
2277
2298
|
return this.Ya(a), null;
|
|
2278
2299
|
}
|
|
2279
|
-
var d =
|
|
2300
|
+
var d = xc(this.i, c);
|
|
2280
2301
|
if (void 0 !== d) {
|
|
2281
2302
|
if (0 === d.g.count.value) {
|
|
2282
2303
|
return d.g.o = c, d.g.G = a, d.clone();
|
|
@@ -2286,35 +2307,35 @@ Pc.prototype.fromWireType = function(a) {
|
|
|
2286
2307
|
return d;
|
|
2287
2308
|
}
|
|
2288
2309
|
d = this.i.Qb(c);
|
|
2289
|
-
d =
|
|
2310
|
+
d = wc[d];
|
|
2290
2311
|
if (!d) {
|
|
2291
2312
|
return b.call(this);
|
|
2292
2313
|
}
|
|
2293
2314
|
d = this.ya ? d.Gb : d.pointerType;
|
|
2294
|
-
var e =
|
|
2295
|
-
return null === e ? b.call(this) : this.za ?
|
|
2315
|
+
var e = vc(c, this.i, d.i);
|
|
2316
|
+
return null === e ? b.call(this) : this.za ? Ac(d.i.P, {u:d, o:e, M:this, G:a,}) : Ac(d.i.P, {u:d, o:e,});
|
|
2296
2317
|
};
|
|
2297
|
-
|
|
2298
|
-
for (var Z,
|
|
2299
|
-
|
|
2318
|
+
Yc = n.UnboundTypeError = fc("UnboundTypeError");
|
|
2319
|
+
for (var Z, Xd = 0; 32 > Xd; ++Xd) {
|
|
2320
|
+
Ld.push(Array(Xd));
|
|
2300
2321
|
}
|
|
2301
|
-
var
|
|
2302
|
-
|
|
2322
|
+
var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
2323
|
+
Zb = c;
|
|
2303
2324
|
try {
|
|
2304
|
-
var d =
|
|
2325
|
+
var d = Ib(a);
|
|
2305
2326
|
switch(b) {
|
|
2306
2327
|
case 0:
|
|
2307
|
-
var e =
|
|
2308
|
-
return 0 > e ? -28 :
|
|
2328
|
+
var e = $b();
|
|
2329
|
+
return 0 > e ? -28 : Kb(d, e).Y;
|
|
2309
2330
|
case 1:
|
|
2310
2331
|
case 2:
|
|
2311
2332
|
return 0;
|
|
2312
2333
|
case 3:
|
|
2313
2334
|
return d.flags;
|
|
2314
2335
|
case 4:
|
|
2315
|
-
return e =
|
|
2336
|
+
return e = $b(), d.flags |= e, 0;
|
|
2316
2337
|
case 5:
|
|
2317
|
-
return e =
|
|
2338
|
+
return e = $b(), D[e + 0 >> 1] = 2, 0;
|
|
2318
2339
|
case 6:
|
|
2319
2340
|
case 7:
|
|
2320
2341
|
return 0;
|
|
@@ -2322,30 +2343,30 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2322
2343
|
case 8:
|
|
2323
2344
|
return -28;
|
|
2324
2345
|
case 9:
|
|
2325
|
-
return
|
|
2346
|
+
return F[Yd() >> 2] = 28, -1;
|
|
2326
2347
|
default:
|
|
2327
2348
|
return -28;
|
|
2328
2349
|
}
|
|
2329
2350
|
} catch (f) {
|
|
2330
|
-
if ("undefined" == typeof
|
|
2351
|
+
if ("undefined" == typeof P || "ErrnoError" !== f.name) {
|
|
2331
2352
|
throw f;
|
|
2332
2353
|
}
|
|
2333
2354
|
return -f.L;
|
|
2334
2355
|
}
|
|
2335
2356
|
}, __syscall_fstat64:function(a, b) {
|
|
2336
2357
|
try {
|
|
2337
|
-
var c =
|
|
2338
|
-
return
|
|
2358
|
+
var c = Ib(a);
|
|
2359
|
+
return Yb(Ob, c.path, b);
|
|
2339
2360
|
} catch (d) {
|
|
2340
|
-
if ("undefined" == typeof
|
|
2361
|
+
if ("undefined" == typeof P || "ErrnoError" !== d.name) {
|
|
2341
2362
|
throw d;
|
|
2342
2363
|
}
|
|
2343
2364
|
return -d.L;
|
|
2344
2365
|
}
|
|
2345
2366
|
}, __syscall_ioctl:function(a, b, c) {
|
|
2346
|
-
|
|
2367
|
+
Zb = c;
|
|
2347
2368
|
try {
|
|
2348
|
-
var d =
|
|
2369
|
+
var d = Ib(a);
|
|
2349
2370
|
switch(b) {
|
|
2350
2371
|
case 21509:
|
|
2351
2372
|
return d.s ? 0 : -59;
|
|
@@ -2355,13 +2376,13 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2355
2376
|
}
|
|
2356
2377
|
if (d.s.W.$b) {
|
|
2357
2378
|
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,];
|
|
2358
|
-
var e =
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2379
|
+
var e = $b();
|
|
2380
|
+
F[e >> 2] = 25856;
|
|
2381
|
+
F[e + 4 >> 2] = 5;
|
|
2382
|
+
F[e + 8 >> 2] = 191;
|
|
2383
|
+
F[e + 12 >> 2] = 35387;
|
|
2363
2384
|
for (var f = 0; 32 > f; f++) {
|
|
2364
|
-
|
|
2385
|
+
B[e + f + 17 >> 0] = b[f] || 0;
|
|
2365
2386
|
}
|
|
2366
2387
|
}
|
|
2367
2388
|
return 0;
|
|
@@ -2376,8 +2397,8 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2376
2397
|
return -59;
|
|
2377
2398
|
}
|
|
2378
2399
|
if (d.s.W.ac) {
|
|
2379
|
-
for (e =
|
|
2380
|
-
b.push(
|
|
2400
|
+
for (e = $b(), b = [], f = 0; 32 > f; f++) {
|
|
2401
|
+
b.push(B[e + f + 17 >> 0]);
|
|
2381
2402
|
}
|
|
2382
2403
|
}
|
|
2383
2404
|
return 0;
|
|
@@ -2385,21 +2406,21 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2385
2406
|
if (!d.s) {
|
|
2386
2407
|
return -59;
|
|
2387
2408
|
}
|
|
2388
|
-
e =
|
|
2389
|
-
return
|
|
2409
|
+
e = $b();
|
|
2410
|
+
return F[e >> 2] = 0;
|
|
2390
2411
|
case 21520:
|
|
2391
2412
|
return d.s ? -28 : -59;
|
|
2392
2413
|
case 21531:
|
|
2393
|
-
e =
|
|
2414
|
+
e = $b();
|
|
2394
2415
|
if (!d.m.Zb) {
|
|
2395
|
-
throw new
|
|
2416
|
+
throw new M(59);
|
|
2396
2417
|
}
|
|
2397
2418
|
return d.m.Zb(d, b, e);
|
|
2398
2419
|
case 21523:
|
|
2399
2420
|
if (!d.s) {
|
|
2400
2421
|
return -59;
|
|
2401
2422
|
}
|
|
2402
|
-
d.s.W.bc && (f = [24, 80], e =
|
|
2423
|
+
d.s.W.bc && (f = [24, 80], e = $b(), D[e >> 1] = f[0], D[e + 2 >> 1] = f[1]);
|
|
2403
2424
|
return 0;
|
|
2404
2425
|
case 21524:
|
|
2405
2426
|
return d.s ? 0 : -59;
|
|
@@ -2409,115 +2430,115 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2409
2430
|
return -28;
|
|
2410
2431
|
}
|
|
2411
2432
|
} catch (g) {
|
|
2412
|
-
if ("undefined" == typeof
|
|
2433
|
+
if ("undefined" == typeof P || "ErrnoError" !== g.name) {
|
|
2413
2434
|
throw g;
|
|
2414
2435
|
}
|
|
2415
2436
|
return -g.L;
|
|
2416
2437
|
}
|
|
2417
2438
|
}, __syscall_lstat64:function(a, b) {
|
|
2418
2439
|
try {
|
|
2419
|
-
return a = a ?
|
|
2440
|
+
return a = a ? L(C, a) : "", Yb(Pb, a, b);
|
|
2420
2441
|
} catch (c) {
|
|
2421
|
-
if ("undefined" == typeof
|
|
2442
|
+
if ("undefined" == typeof P || "ErrnoError" !== c.name) {
|
|
2422
2443
|
throw c;
|
|
2423
2444
|
}
|
|
2424
2445
|
return -c.L;
|
|
2425
2446
|
}
|
|
2426
2447
|
}, __syscall_newfstatat:function(a, b, c, d) {
|
|
2427
2448
|
try {
|
|
2428
|
-
b = b ?
|
|
2449
|
+
b = b ? L(C, b) : "";
|
|
2429
2450
|
var e = d & 256;
|
|
2430
|
-
b =
|
|
2431
|
-
return
|
|
2451
|
+
b = Xb(a, b, d & 4096);
|
|
2452
|
+
return Yb(e ? Pb : Ob, b, c);
|
|
2432
2453
|
} catch (f) {
|
|
2433
|
-
if ("undefined" == typeof
|
|
2454
|
+
if ("undefined" == typeof P || "ErrnoError" !== f.name) {
|
|
2434
2455
|
throw f;
|
|
2435
2456
|
}
|
|
2436
2457
|
return -f.L;
|
|
2437
2458
|
}
|
|
2438
2459
|
}, __syscall_openat:function(a, b, c, d) {
|
|
2439
|
-
|
|
2460
|
+
Zb = d;
|
|
2440
2461
|
try {
|
|
2441
|
-
b = b ?
|
|
2442
|
-
b =
|
|
2443
|
-
var e = d ?
|
|
2444
|
-
return
|
|
2462
|
+
b = b ? L(C, b) : "";
|
|
2463
|
+
b = Xb(a, b);
|
|
2464
|
+
var e = d ? $b() : 0;
|
|
2465
|
+
return Rb(b, c, e).Y;
|
|
2445
2466
|
} catch (f) {
|
|
2446
|
-
if ("undefined" == typeof
|
|
2467
|
+
if ("undefined" == typeof P || "ErrnoError" !== f.name) {
|
|
2447
2468
|
throw f;
|
|
2448
2469
|
}
|
|
2449
2470
|
return -f.L;
|
|
2450
2471
|
}
|
|
2451
2472
|
}, __syscall_stat64:function(a, b) {
|
|
2452
2473
|
try {
|
|
2453
|
-
return a = a ?
|
|
2474
|
+
return a = a ? L(C, a) : "", Yb(Ob, a, b);
|
|
2454
2475
|
} catch (c) {
|
|
2455
|
-
if ("undefined" == typeof
|
|
2476
|
+
if ("undefined" == typeof P || "ErrnoError" !== c.name) {
|
|
2456
2477
|
throw c;
|
|
2457
2478
|
}
|
|
2458
2479
|
return -c.L;
|
|
2459
2480
|
}
|
|
2460
2481
|
}, _embind_create_inheriting_constructor:function(a, b, c) {
|
|
2461
|
-
a =
|
|
2462
|
-
b =
|
|
2463
|
-
c =
|
|
2482
|
+
a = T(a);
|
|
2483
|
+
b = rc(b, "wrapper");
|
|
2484
|
+
c = S(c);
|
|
2464
2485
|
var d = [].slice, e = b.i, f = e.P, g = e.A.P, m = e.A.constructor;
|
|
2465
|
-
a =
|
|
2486
|
+
a = bc(a, function() {
|
|
2466
2487
|
e.A.lb.forEach(function(l) {
|
|
2467
2488
|
if (this[l] === g[l]) {
|
|
2468
|
-
throw new
|
|
2489
|
+
throw new gc(`Pure virtual function ${l} must be implemented in JavaScript`);
|
|
2469
2490
|
}
|
|
2470
2491
|
}.bind(this));
|
|
2471
2492
|
Object.defineProperty(this, "__parent", {value:f});
|
|
2472
2493
|
this.__construct.apply(this, d.call(arguments));
|
|
2473
2494
|
});
|
|
2474
2495
|
f.__construct = function() {
|
|
2475
|
-
this === f &&
|
|
2496
|
+
this === f && R("Pass correct 'this' to __construct");
|
|
2476
2497
|
var l = m.implement.apply(void 0, [this].concat(d.call(arguments)));
|
|
2477
|
-
|
|
2498
|
+
sc(l);
|
|
2478
2499
|
var u = l.g;
|
|
2479
2500
|
l.notifyOnDestruction();
|
|
2480
2501
|
u.ja = !0;
|
|
2481
2502
|
Object.defineProperties(this, {g:{value:u}});
|
|
2482
|
-
|
|
2503
|
+
Bc(this);
|
|
2483
2504
|
l = u.o;
|
|
2484
|
-
l =
|
|
2485
|
-
|
|
2505
|
+
l = mc(e, l);
|
|
2506
|
+
lc.hasOwnProperty(l) ? R(`Tried to register registered instance: ${l}`) : lc[l] = this;
|
|
2486
2507
|
};
|
|
2487
2508
|
f.__destruct = function() {
|
|
2488
|
-
this === f &&
|
|
2489
|
-
|
|
2509
|
+
this === f && R("Pass correct 'this' to __destruct");
|
|
2510
|
+
sc(this);
|
|
2490
2511
|
var l = this.g.o;
|
|
2491
|
-
l =
|
|
2492
|
-
|
|
2512
|
+
l = mc(e, l);
|
|
2513
|
+
lc.hasOwnProperty(l) ? delete lc[l] : R(`Tried to unregister unregistered instance: ${l}`);
|
|
2493
2514
|
};
|
|
2494
2515
|
a.prototype = Object.create(f);
|
|
2495
|
-
for (var
|
|
2496
|
-
a.prototype[
|
|
2516
|
+
for (var p in c) {
|
|
2517
|
+
a.prototype[p] = c[p];
|
|
2497
2518
|
}
|
|
2498
|
-
return
|
|
2519
|
+
return ec(a);
|
|
2499
2520
|
}, _embind_finalize_value_object:function(a) {
|
|
2500
|
-
var b =
|
|
2501
|
-
delete
|
|
2521
|
+
var b = Cc[a];
|
|
2522
|
+
delete Cc[a];
|
|
2502
2523
|
var c = b.Qa, d = b.X, e = b.$a, f = e.map(g => g.Ub).concat(e.map(g => g.mc));
|
|
2503
|
-
|
|
2524
|
+
U([a], f, g => {
|
|
2504
2525
|
var m = {};
|
|
2505
|
-
e.forEach((
|
|
2506
|
-
var u = g[l], v =
|
|
2507
|
-
m[
|
|
2526
|
+
e.forEach((p, l) => {
|
|
2527
|
+
var u = g[l], v = p.Sb, q = p.Tb, k = g[l + e.length], r = p.lc, w = p.nc;
|
|
2528
|
+
m[p.Ob] = {read:z => u.fromWireType(v(q, z)), write:(z, G) => {
|
|
2508
2529
|
var A = [];
|
|
2509
2530
|
r(w, z, k.toWireType(A, G));
|
|
2510
|
-
|
|
2531
|
+
Dc(A);
|
|
2511
2532
|
}};
|
|
2512
2533
|
});
|
|
2513
|
-
return [{name:b.name, fromWireType:function(
|
|
2534
|
+
return [{name:b.name, fromWireType:function(p) {
|
|
2514
2535
|
var l = {}, u;
|
|
2515
2536
|
for (u in m) {
|
|
2516
|
-
l[u] = m[u].read(
|
|
2537
|
+
l[u] = m[u].read(p);
|
|
2517
2538
|
}
|
|
2518
|
-
d(
|
|
2539
|
+
d(p);
|
|
2519
2540
|
return l;
|
|
2520
|
-
}, toWireType:function(
|
|
2541
|
+
}, toWireType:function(p, l) {
|
|
2521
2542
|
for (var u in m) {
|
|
2522
2543
|
if (!(u in l)) {
|
|
2523
2544
|
throw new TypeError(`Missing field: "${u}"`);
|
|
@@ -2527,90 +2548,90 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2527
2548
|
for (u in m) {
|
|
2528
2549
|
m[u].write(v, l[u]);
|
|
2529
2550
|
}
|
|
2530
|
-
null !==
|
|
2551
|
+
null !== p && p.push(d, v);
|
|
2531
2552
|
return v;
|
|
2532
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2553
|
+
}, argPackAdvance:8, readValueFromPointer:Ec, K:d,}];
|
|
2533
2554
|
});
|
|
2534
2555
|
}, _embind_register_bigint:function() {
|
|
2535
2556
|
}, _embind_register_bool:function(a, b, c, d, e) {
|
|
2536
|
-
var f =
|
|
2537
|
-
b =
|
|
2538
|
-
|
|
2557
|
+
var f = Hc(c);
|
|
2558
|
+
b = T(b);
|
|
2559
|
+
V(a, {name:b, fromWireType:function(g) {
|
|
2539
2560
|
return !!g;
|
|
2540
2561
|
}, toWireType:function(g, m) {
|
|
2541
2562
|
return m ? d : e;
|
|
2542
2563
|
}, argPackAdvance:8, readValueFromPointer:function(g) {
|
|
2543
2564
|
if (1 === c) {
|
|
2544
|
-
var m =
|
|
2565
|
+
var m = B;
|
|
2545
2566
|
} else if (2 === c) {
|
|
2546
|
-
m = C;
|
|
2547
|
-
} else if (4 === c) {
|
|
2548
2567
|
m = D;
|
|
2568
|
+
} else if (4 === c) {
|
|
2569
|
+
m = F;
|
|
2549
2570
|
} else {
|
|
2550
2571
|
throw new TypeError("Unknown boolean type size: " + b);
|
|
2551
2572
|
}
|
|
2552
2573
|
return this.fromWireType(m[g >> f]);
|
|
2553
2574
|
}, K:null,});
|
|
2554
|
-
}, _embind_register_class:function(a, b, c, d, e, f, g, m,
|
|
2555
|
-
u =
|
|
2556
|
-
f =
|
|
2557
|
-
m && (m =
|
|
2558
|
-
l && (l =
|
|
2559
|
-
q =
|
|
2560
|
-
var k =
|
|
2561
|
-
|
|
2562
|
-
|
|
2575
|
+
}, _embind_register_class:function(a, b, c, d, e, f, g, m, p, l, u, v, q) {
|
|
2576
|
+
u = T(u);
|
|
2577
|
+
f = W(e, f);
|
|
2578
|
+
m && (m = W(g, m));
|
|
2579
|
+
l && (l = W(p, l));
|
|
2580
|
+
q = W(v, q);
|
|
2581
|
+
var k = ac(u);
|
|
2582
|
+
Mc(k, function() {
|
|
2583
|
+
Zc(`Cannot construct ${u} due to unbound types`, [d]);
|
|
2563
2584
|
});
|
|
2564
|
-
|
|
2585
|
+
U([a, b, c], d ? [d] : [], function(r) {
|
|
2565
2586
|
r = r[0];
|
|
2566
2587
|
if (d) {
|
|
2567
2588
|
var w = r.i;
|
|
2568
2589
|
var z = w.P;
|
|
2569
2590
|
} else {
|
|
2570
|
-
z =
|
|
2591
|
+
z = Kc.prototype;
|
|
2571
2592
|
}
|
|
2572
|
-
r =
|
|
2593
|
+
r = bc(k, function() {
|
|
2573
2594
|
if (Object.getPrototypeOf(this) !== G) {
|
|
2574
|
-
throw new
|
|
2595
|
+
throw new dc("Use 'new' to construct " + u);
|
|
2575
2596
|
}
|
|
2576
2597
|
if (void 0 === A.$) {
|
|
2577
|
-
throw new
|
|
2598
|
+
throw new dc(u + " has no accessible constructor");
|
|
2578
2599
|
}
|
|
2579
2600
|
var E = A.$[arguments.length];
|
|
2580
2601
|
if (void 0 === E) {
|
|
2581
|
-
throw new
|
|
2602
|
+
throw new dc(`Tried to invoke ctor of ${u} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(A.$).toString()}) parameters instead!`);
|
|
2582
2603
|
}
|
|
2583
2604
|
return E.apply(this, arguments);
|
|
2584
2605
|
});
|
|
2585
2606
|
var G = Object.create(z, {constructor:{value:r},});
|
|
2586
2607
|
r.prototype = G;
|
|
2587
|
-
var A = new
|
|
2608
|
+
var A = new Nc(u, r, G, q, w, f, m, l);
|
|
2588
2609
|
A.A && (void 0 === A.A.ra && (A.A.ra = []), A.A.ra.push(A));
|
|
2589
|
-
w = new
|
|
2590
|
-
z = new
|
|
2591
|
-
var H = new
|
|
2592
|
-
|
|
2593
|
-
|
|
2610
|
+
w = new Tc(u, A, !0, !1);
|
|
2611
|
+
z = new Tc(u + "*", A, !1, !1);
|
|
2612
|
+
var H = new Tc(u + " const*", A, !1, !0);
|
|
2613
|
+
wc[a] = {pointerType:z, Gb:H};
|
|
2614
|
+
Uc(k, r);
|
|
2594
2615
|
return [w, z, H];
|
|
2595
2616
|
});
|
|
2596
2617
|
}, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
|
|
2597
|
-
var m =
|
|
2598
|
-
b =
|
|
2599
|
-
f =
|
|
2600
|
-
|
|
2618
|
+
var m = ad(c, d);
|
|
2619
|
+
b = T(b);
|
|
2620
|
+
f = W(e, f);
|
|
2621
|
+
U([], [a], function(p) {
|
|
2601
2622
|
function l() {
|
|
2602
|
-
|
|
2623
|
+
Zc(`Cannot call ${u} due to unbound types`, m);
|
|
2603
2624
|
}
|
|
2604
|
-
|
|
2605
|
-
var u = `${
|
|
2625
|
+
p = p[0];
|
|
2626
|
+
var u = `${p.name}.${b}`;
|
|
2606
2627
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2607
|
-
var v =
|
|
2608
|
-
void 0 === v[b] ? (l.fa = c - 1, v[b] = l) : (
|
|
2609
|
-
|
|
2610
|
-
q =
|
|
2628
|
+
var v = p.i.constructor;
|
|
2629
|
+
void 0 === v[b] ? (l.fa = c - 1, v[b] = l) : (Lc(v, b, u), v[b].B[c - 1] = l);
|
|
2630
|
+
U([], m, function(q) {
|
|
2631
|
+
q = $c(u, [q[0], null].concat(q.slice(1)), null, f, g);
|
|
2611
2632
|
void 0 === v[b].B ? (q.fa = c - 1, v[b] = q) : v[b].B[c - 1] = q;
|
|
2612
|
-
if (
|
|
2613
|
-
for (const k of
|
|
2633
|
+
if (p.i.ra) {
|
|
2634
|
+
for (const k of p.i.ra) {
|
|
2614
2635
|
k.constructor.hasOwnProperty(b) || (k.constructor[b] = q);
|
|
2615
2636
|
}
|
|
2616
2637
|
}
|
|
@@ -2619,101 +2640,101 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2619
2640
|
return [];
|
|
2620
2641
|
});
|
|
2621
2642
|
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g, m) {
|
|
2622
|
-
b =
|
|
2623
|
-
f =
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
var l = `${
|
|
2627
|
-
|
|
2643
|
+
b = T(b);
|
|
2644
|
+
f = W(e, f);
|
|
2645
|
+
U([], [a], function(p) {
|
|
2646
|
+
p = p[0];
|
|
2647
|
+
var l = `${p.name}.${b}`, u = {get() {
|
|
2648
|
+
Zc(`Cannot access ${l} due to unbound types`, [c]);
|
|
2628
2649
|
}, enumerable:!0, configurable:!0};
|
|
2629
2650
|
u.set = m ? () => {
|
|
2630
|
-
|
|
2651
|
+
Zc(`Cannot access ${l} due to unbound types`, [c]);
|
|
2631
2652
|
} : () => {
|
|
2632
|
-
|
|
2653
|
+
R(`${l} is a read-only property`);
|
|
2633
2654
|
};
|
|
2634
|
-
Object.defineProperty(
|
|
2635
|
-
|
|
2655
|
+
Object.defineProperty(p.i.constructor, b, u);
|
|
2656
|
+
U([], [c], function(v) {
|
|
2636
2657
|
v = v[0];
|
|
2637
2658
|
var q = {get() {
|
|
2638
2659
|
return v.fromWireType(f(d));
|
|
2639
2660
|
}, enumerable:!0};
|
|
2640
|
-
m && (m =
|
|
2661
|
+
m && (m = W(g, m), q.set = k => {
|
|
2641
2662
|
var r = [];
|
|
2642
2663
|
m(d, v.toWireType(r, k));
|
|
2643
|
-
|
|
2664
|
+
Dc(r);
|
|
2644
2665
|
});
|
|
2645
|
-
Object.defineProperty(
|
|
2666
|
+
Object.defineProperty(p.i.constructor, b, q);
|
|
2646
2667
|
return [];
|
|
2647
2668
|
});
|
|
2648
2669
|
return [];
|
|
2649
2670
|
});
|
|
2650
2671
|
}, _embind_register_class_constructor:function(a, b, c, d, e, f) {
|
|
2651
|
-
var g =
|
|
2652
|
-
e =
|
|
2653
|
-
|
|
2672
|
+
var g = ad(b, c);
|
|
2673
|
+
e = W(d, e);
|
|
2674
|
+
U([], [a], function(m) {
|
|
2654
2675
|
m = m[0];
|
|
2655
|
-
var
|
|
2676
|
+
var p = `constructor ${m.name}`;
|
|
2656
2677
|
void 0 === m.i.$ && (m.i.$ = []);
|
|
2657
2678
|
if (void 0 !== m.i.$[b - 1]) {
|
|
2658
|
-
throw new
|
|
2679
|
+
throw new dc(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${m.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
2659
2680
|
}
|
|
2660
2681
|
m.i.$[b - 1] = () => {
|
|
2661
|
-
|
|
2682
|
+
Zc(`Cannot construct ${m.name} due to unbound types`, g);
|
|
2662
2683
|
};
|
|
2663
|
-
|
|
2684
|
+
U([], g, function(l) {
|
|
2664
2685
|
l.splice(1, 0, null);
|
|
2665
|
-
m.i.$[b - 1] =
|
|
2686
|
+
m.i.$[b - 1] = $c(p, l, null, e, f);
|
|
2666
2687
|
return [];
|
|
2667
2688
|
});
|
|
2668
2689
|
return [];
|
|
2669
2690
|
});
|
|
2670
2691
|
}, _embind_register_class_function:function(a, b, c, d, e, f, g, m) {
|
|
2671
|
-
var
|
|
2672
|
-
b =
|
|
2673
|
-
f =
|
|
2674
|
-
|
|
2692
|
+
var p = ad(c, d);
|
|
2693
|
+
b = T(b);
|
|
2694
|
+
f = W(e, f);
|
|
2695
|
+
U([], [a], function(l) {
|
|
2675
2696
|
function u() {
|
|
2676
|
-
|
|
2697
|
+
Zc(`Cannot call ${v} due to unbound types`, p);
|
|
2677
2698
|
}
|
|
2678
2699
|
l = l[0];
|
|
2679
2700
|
var v = `${l.name}.${b}`;
|
|
2680
2701
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2681
2702
|
m && l.i.lb.push(b);
|
|
2682
2703
|
var q = l.i.P, k = q[b];
|
|
2683
|
-
void 0 === k || void 0 === k.B && k.className !== l.name && k.fa === c - 2 ? (u.fa = c - 2, u.className = l.name, q[b] = u) : (
|
|
2684
|
-
|
|
2685
|
-
r =
|
|
2704
|
+
void 0 === k || void 0 === k.B && k.className !== l.name && k.fa === c - 2 ? (u.fa = c - 2, u.className = l.name, q[b] = u) : (Lc(q, b, v), q[b].B[c - 2] = u);
|
|
2705
|
+
U([], p, function(r) {
|
|
2706
|
+
r = $c(v, r, l, f, g);
|
|
2686
2707
|
void 0 === q[b].B ? (r.fa = c - 2, q[b] = r) : q[b].B[c - 2] = r;
|
|
2687
2708
|
return [];
|
|
2688
2709
|
});
|
|
2689
2710
|
return [];
|
|
2690
2711
|
});
|
|
2691
|
-
}, _embind_register_class_property:function(a, b, c, d, e, f, g, m,
|
|
2692
|
-
b =
|
|
2693
|
-
e =
|
|
2694
|
-
|
|
2712
|
+
}, _embind_register_class_property:function(a, b, c, d, e, f, g, m, p, l) {
|
|
2713
|
+
b = T(b);
|
|
2714
|
+
e = W(d, e);
|
|
2715
|
+
U([], [a], function(u) {
|
|
2695
2716
|
u = u[0];
|
|
2696
2717
|
var v = `${u.name}.${b}`, q = {get() {
|
|
2697
|
-
|
|
2718
|
+
Zc(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2698
2719
|
}, enumerable:!0, configurable:!0};
|
|
2699
|
-
q.set =
|
|
2700
|
-
|
|
2720
|
+
q.set = p ? () => {
|
|
2721
|
+
Zc(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2701
2722
|
} : () => {
|
|
2702
|
-
|
|
2723
|
+
R(v + " is a read-only property");
|
|
2703
2724
|
};
|
|
2704
2725
|
Object.defineProperty(u.i.P, b, q);
|
|
2705
|
-
|
|
2726
|
+
U([], p ? [c, g] : [c], function(k) {
|
|
2706
2727
|
var r = k[0], w = {get() {
|
|
2707
|
-
var G =
|
|
2728
|
+
var G = bd(this, u, v + " getter");
|
|
2708
2729
|
return r.fromWireType(e(f, G));
|
|
2709
2730
|
}, enumerable:!0};
|
|
2710
|
-
if (
|
|
2711
|
-
|
|
2731
|
+
if (p) {
|
|
2732
|
+
p = W(m, p);
|
|
2712
2733
|
var z = k[1];
|
|
2713
2734
|
w.set = function(G) {
|
|
2714
|
-
var A =
|
|
2715
|
-
|
|
2716
|
-
|
|
2735
|
+
var A = bd(this, u, v + " setter"), H = [];
|
|
2736
|
+
p(l, A, z.toWireType(H, G));
|
|
2737
|
+
Dc(H);
|
|
2717
2738
|
};
|
|
2718
2739
|
}
|
|
2719
2740
|
Object.defineProperty(u.i.P, b, w);
|
|
@@ -2722,199 +2743,199 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2722
2743
|
return [];
|
|
2723
2744
|
});
|
|
2724
2745
|
}, _embind_register_emval:function(a, b) {
|
|
2725
|
-
b =
|
|
2726
|
-
|
|
2727
|
-
var d =
|
|
2728
|
-
|
|
2746
|
+
b = T(b);
|
|
2747
|
+
V(a, {name:b, fromWireType:function(c) {
|
|
2748
|
+
var d = S(c);
|
|
2749
|
+
cd(c);
|
|
2729
2750
|
return d;
|
|
2730
2751
|
}, toWireType:function(c, d) {
|
|
2731
|
-
return
|
|
2732
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2752
|
+
return ec(d);
|
|
2753
|
+
}, argPackAdvance:8, readValueFromPointer:Ec, K:null,});
|
|
2733
2754
|
}, _embind_register_enum:function(a, b, c, d) {
|
|
2734
2755
|
function e() {
|
|
2735
2756
|
}
|
|
2736
|
-
c =
|
|
2737
|
-
b =
|
|
2757
|
+
c = Hc(c);
|
|
2758
|
+
b = T(b);
|
|
2738
2759
|
e.values = {};
|
|
2739
|
-
|
|
2760
|
+
V(a, {name:b, constructor:e, fromWireType:function(f) {
|
|
2740
2761
|
return this.constructor.values[f];
|
|
2741
2762
|
}, toWireType:function(f, g) {
|
|
2742
2763
|
return g.value;
|
|
2743
|
-
}, argPackAdvance:8, readValueFromPointer
|
|
2744
|
-
|
|
2764
|
+
}, argPackAdvance:8, readValueFromPointer:dd(b, c, d), K:null,});
|
|
2765
|
+
Mc(b, e);
|
|
2745
2766
|
}, _embind_register_enum_value:function(a, b, c) {
|
|
2746
|
-
var d =
|
|
2747
|
-
b =
|
|
2767
|
+
var d = rc(a, "enum");
|
|
2768
|
+
b = T(b);
|
|
2748
2769
|
a = d.constructor;
|
|
2749
|
-
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:
|
|
2770
|
+
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:bc(`${d.name}_${b}`, function() {
|
|
2750
2771
|
})},});
|
|
2751
2772
|
a.values[c] = d;
|
|
2752
2773
|
a[b] = d;
|
|
2753
2774
|
}, _embind_register_float:function(a, b, c) {
|
|
2754
|
-
c =
|
|
2755
|
-
b =
|
|
2756
|
-
|
|
2775
|
+
c = Hc(c);
|
|
2776
|
+
b = T(b);
|
|
2777
|
+
V(a, {name:b, fromWireType:function(d) {
|
|
2757
2778
|
return d;
|
|
2758
2779
|
}, toWireType:function(d, e) {
|
|
2759
2780
|
return e;
|
|
2760
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2781
|
+
}, argPackAdvance:8, readValueFromPointer:ed(b, c), K:null,});
|
|
2761
2782
|
}, _embind_register_function:function(a, b, c, d, e, f) {
|
|
2762
|
-
var g =
|
|
2763
|
-
a =
|
|
2764
|
-
e =
|
|
2765
|
-
|
|
2766
|
-
|
|
2783
|
+
var g = ad(b, c);
|
|
2784
|
+
a = T(a);
|
|
2785
|
+
e = W(d, e);
|
|
2786
|
+
Mc(a, function() {
|
|
2787
|
+
Zc(`Cannot call ${a} due to unbound types`, g);
|
|
2767
2788
|
}, b - 1);
|
|
2768
|
-
|
|
2769
|
-
|
|
2789
|
+
U([], g, function(m) {
|
|
2790
|
+
Uc(a, $c(a, [m[0], null].concat(m.slice(1)), null, e, f), b - 1);
|
|
2770
2791
|
return [];
|
|
2771
2792
|
});
|
|
2772
2793
|
}, _embind_register_integer:function(a, b, c, d, e) {
|
|
2773
|
-
b =
|
|
2794
|
+
b = T(b);
|
|
2774
2795
|
-1 === e && (e = 4294967295);
|
|
2775
|
-
e =
|
|
2796
|
+
e = Hc(c);
|
|
2776
2797
|
var f = m => m;
|
|
2777
2798
|
if (0 === d) {
|
|
2778
2799
|
var g = 32 - 8 * c;
|
|
2779
2800
|
f = m => m << g >>> g;
|
|
2780
2801
|
}
|
|
2781
|
-
c = b.includes("unsigned") ? function(m,
|
|
2782
|
-
return
|
|
2783
|
-
} : function(m,
|
|
2784
|
-
return
|
|
2802
|
+
c = b.includes("unsigned") ? function(m, p) {
|
|
2803
|
+
return p >>> 0;
|
|
2804
|
+
} : function(m, p) {
|
|
2805
|
+
return p;
|
|
2785
2806
|
};
|
|
2786
|
-
|
|
2807
|
+
V(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:fd(b, e, 0 !== d), K:null,});
|
|
2787
2808
|
}, _embind_register_memory_view:function(a, b, c) {
|
|
2788
2809
|
function d(f) {
|
|
2789
2810
|
f >>= 2;
|
|
2790
|
-
var g =
|
|
2811
|
+
var g = I;
|
|
2791
2812
|
return new e(g.buffer, g[f + 1], g[f]);
|
|
2792
2813
|
}
|
|
2793
2814
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2794
|
-
c =
|
|
2795
|
-
|
|
2815
|
+
c = T(c);
|
|
2816
|
+
V(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Xb:!0,});
|
|
2796
2817
|
}, _embind_register_std_string:function(a, b) {
|
|
2797
|
-
b =
|
|
2818
|
+
b = T(b);
|
|
2798
2819
|
var c = "std::string" === b;
|
|
2799
|
-
|
|
2800
|
-
var e =
|
|
2820
|
+
V(a, {name:b, fromWireType:function(d) {
|
|
2821
|
+
var e = I[d >> 2], f = d + 4;
|
|
2801
2822
|
if (c) {
|
|
2802
2823
|
for (var g = f, m = 0; m <= e; ++m) {
|
|
2803
|
-
var
|
|
2804
|
-
if (m == e || 0 ==
|
|
2805
|
-
g = g ?
|
|
2824
|
+
var p = f + m;
|
|
2825
|
+
if (m == e || 0 == C[p]) {
|
|
2826
|
+
g = g ? L(C, g, p - g) : "";
|
|
2806
2827
|
if (void 0 === l) {
|
|
2807
2828
|
var l = g;
|
|
2808
2829
|
} else {
|
|
2809
2830
|
l += String.fromCharCode(0), l += g;
|
|
2810
2831
|
}
|
|
2811
|
-
g =
|
|
2832
|
+
g = p + 1;
|
|
2812
2833
|
}
|
|
2813
2834
|
}
|
|
2814
2835
|
} else {
|
|
2815
2836
|
l = Array(e);
|
|
2816
2837
|
for (m = 0; m < e; ++m) {
|
|
2817
|
-
l[m] = String.fromCharCode(
|
|
2838
|
+
l[m] = String.fromCharCode(C[f + m]);
|
|
2818
2839
|
}
|
|
2819
2840
|
l = l.join("");
|
|
2820
2841
|
}
|
|
2821
|
-
|
|
2842
|
+
qc(d);
|
|
2822
2843
|
return l;
|
|
2823
2844
|
}, toWireType:function(d, e) {
|
|
2824
2845
|
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
2825
2846
|
var f = "string" == typeof e;
|
|
2826
|
-
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array ||
|
|
2827
|
-
var g = c && f ?
|
|
2828
|
-
var m =
|
|
2829
|
-
|
|
2847
|
+
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || R("Cannot pass non-string to std::string");
|
|
2848
|
+
var g = c && f ? db(e) : e.length;
|
|
2849
|
+
var m = Od(4 + g + 1), p = m + 4;
|
|
2850
|
+
I[m >> 2] = g;
|
|
2830
2851
|
if (c && f) {
|
|
2831
|
-
|
|
2852
|
+
eb(e, C, p, g + 1);
|
|
2832
2853
|
} else {
|
|
2833
2854
|
if (f) {
|
|
2834
2855
|
for (f = 0; f < g; ++f) {
|
|
2835
2856
|
var l = e.charCodeAt(f);
|
|
2836
|
-
255 < l && (
|
|
2837
|
-
|
|
2857
|
+
255 < l && (qc(p), R("String has UTF-16 code units that do not fit in 8 bits"));
|
|
2858
|
+
C[p + f] = l;
|
|
2838
2859
|
}
|
|
2839
2860
|
} else {
|
|
2840
2861
|
for (f = 0; f < g; ++f) {
|
|
2841
|
-
|
|
2862
|
+
C[p + f] = e[f];
|
|
2842
2863
|
}
|
|
2843
2864
|
}
|
|
2844
2865
|
}
|
|
2845
|
-
null !== d && d.push(
|
|
2866
|
+
null !== d && d.push(qc, m);
|
|
2846
2867
|
return m;
|
|
2847
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2848
|
-
|
|
2868
|
+
}, argPackAdvance:8, readValueFromPointer:Ec, K:function(d) {
|
|
2869
|
+
qc(d);
|
|
2849
2870
|
},});
|
|
2850
2871
|
}, _embind_register_std_wstring:function(a, b, c) {
|
|
2851
|
-
c =
|
|
2872
|
+
c = T(c);
|
|
2852
2873
|
if (2 === b) {
|
|
2853
|
-
var d =
|
|
2854
|
-
var e =
|
|
2855
|
-
var f =
|
|
2856
|
-
var g = () =>
|
|
2874
|
+
var d = hd;
|
|
2875
|
+
var e = jd;
|
|
2876
|
+
var f = kd;
|
|
2877
|
+
var g = () => xa;
|
|
2857
2878
|
var m = 1;
|
|
2858
2879
|
} else {
|
|
2859
|
-
4 === b && (d =
|
|
2880
|
+
4 === b && (d = ld, e = md, f = nd, g = () => I, m = 2);
|
|
2860
2881
|
}
|
|
2861
|
-
|
|
2862
|
-
for (var l =
|
|
2863
|
-
var r =
|
|
2882
|
+
V(a, {name:c, fromWireType:function(p) {
|
|
2883
|
+
for (var l = I[p >> 2], u = g(), v, q = p + 4, k = 0; k <= l; ++k) {
|
|
2884
|
+
var r = p + 4 + k * b;
|
|
2864
2885
|
if (k == l || 0 == u[r >> m]) {
|
|
2865
2886
|
q = d(q, r - q), void 0 === v ? v = q : (v += String.fromCharCode(0), v += q), q = r + b;
|
|
2866
2887
|
}
|
|
2867
2888
|
}
|
|
2868
|
-
|
|
2889
|
+
qc(p);
|
|
2869
2890
|
return v;
|
|
2870
|
-
}, toWireType:function(
|
|
2871
|
-
"string" != typeof l &&
|
|
2872
|
-
var u = f(l), v =
|
|
2873
|
-
|
|
2891
|
+
}, toWireType:function(p, l) {
|
|
2892
|
+
"string" != typeof l && R(`Cannot pass non-string to C++ string type ${c}`);
|
|
2893
|
+
var u = f(l), v = Od(4 + u + b);
|
|
2894
|
+
I[v >> 2] = u >> m;
|
|
2874
2895
|
e(l, v + 4, u + b);
|
|
2875
|
-
null !==
|
|
2896
|
+
null !== p && p.push(qc, v);
|
|
2876
2897
|
return v;
|
|
2877
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2878
|
-
|
|
2898
|
+
}, argPackAdvance:8, readValueFromPointer:Ec, K:function(p) {
|
|
2899
|
+
qc(p);
|
|
2879
2900
|
},});
|
|
2880
2901
|
}, _embind_register_value_object:function(a, b, c, d, e, f) {
|
|
2881
|
-
|
|
2882
|
-
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, m,
|
|
2883
|
-
|
|
2902
|
+
Cc[a] = {name:T(b), Qa:W(c, d), X:W(e, f), $a:[],};
|
|
2903
|
+
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, m, p, l) {
|
|
2904
|
+
Cc[a].$a.push({Ob:T(b), Ub:c, Sb:W(d, e), Tb:f, mc:g, lc:W(m, p), nc:l,});
|
|
2884
2905
|
}, _embind_register_void:function(a, b) {
|
|
2885
|
-
b =
|
|
2886
|
-
|
|
2906
|
+
b = T(b);
|
|
2907
|
+
V(a, {cc:!0, name:b, argPackAdvance:0, fromWireType:function() {
|
|
2887
2908
|
}, toWireType:function() {
|
|
2888
2909
|
},});
|
|
2889
2910
|
}, _emscripten_get_now_is_monotonic:() => !0, _emval_as:function(a, b, c) {
|
|
2890
|
-
a =
|
|
2891
|
-
b =
|
|
2892
|
-
var d = [], e =
|
|
2893
|
-
|
|
2911
|
+
a = S(a);
|
|
2912
|
+
b = rc(b, "emval::as");
|
|
2913
|
+
var d = [], e = ec(d);
|
|
2914
|
+
I[c >> 2] = e;
|
|
2894
2915
|
return b.toWireType(d, a);
|
|
2895
2916
|
}, _emval_call_method:function(a, b, c, d, e) {
|
|
2896
|
-
a =
|
|
2897
|
-
b =
|
|
2898
|
-
c =
|
|
2917
|
+
a = qd[a];
|
|
2918
|
+
b = S(b);
|
|
2919
|
+
c = pd(c);
|
|
2899
2920
|
var f = [];
|
|
2900
|
-
|
|
2921
|
+
I[d >> 2] = ec(f);
|
|
2901
2922
|
return a(b, c, f, e);
|
|
2902
2923
|
}, _emval_call_void_method:function(a, b, c, d) {
|
|
2903
|
-
a =
|
|
2904
|
-
b =
|
|
2905
|
-
c =
|
|
2924
|
+
a = qd[a];
|
|
2925
|
+
b = S(b);
|
|
2926
|
+
c = pd(c);
|
|
2906
2927
|
a(b, c, null, d);
|
|
2907
|
-
}, _emval_decref:
|
|
2908
|
-
var c =
|
|
2928
|
+
}, _emval_decref:cd, _emval_get_method_caller:function(a, b) {
|
|
2929
|
+
var c = sd(a, b), d = c[0];
|
|
2909
2930
|
b = d.name + "_$" + c.slice(1).map(function(g) {
|
|
2910
2931
|
return g.name;
|
|
2911
2932
|
}).join("_") + "$";
|
|
2912
|
-
var e =
|
|
2933
|
+
var e = td[b];
|
|
2913
2934
|
if (void 0 !== e) {
|
|
2914
2935
|
return e;
|
|
2915
2936
|
}
|
|
2916
2937
|
var f = Array(a - 1);
|
|
2917
|
-
e =
|
|
2938
|
+
e = rd((g, m, p, l) => {
|
|
2918
2939
|
for (var u = 0, v = 0; v < a - 1; ++v) {
|
|
2919
2940
|
f[v] = c[v + 1].readValueFromPointer(l + u), u += c[v + 1].argPackAdvance;
|
|
2920
2941
|
}
|
|
@@ -2923,53 +2944,53 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2923
2944
|
c[v + 1].Jb && c[v + 1].Jb(f[v]);
|
|
2924
2945
|
}
|
|
2925
2946
|
if (!d.cc) {
|
|
2926
|
-
return d.toWireType(
|
|
2947
|
+
return d.toWireType(p, g);
|
|
2927
2948
|
}
|
|
2928
2949
|
});
|
|
2929
|
-
return
|
|
2950
|
+
return td[b] = e;
|
|
2930
2951
|
}, _emval_get_property:function(a, b) {
|
|
2931
|
-
a =
|
|
2932
|
-
b =
|
|
2933
|
-
return
|
|
2952
|
+
a = S(a);
|
|
2953
|
+
b = S(b);
|
|
2954
|
+
return ec(a[b]);
|
|
2934
2955
|
}, _emval_incref:function(a) {
|
|
2935
|
-
4 < a && (
|
|
2956
|
+
4 < a && (Q.get(a).pb += 1);
|
|
2936
2957
|
}, _emval_new_cstring:function(a) {
|
|
2937
|
-
return
|
|
2958
|
+
return ec(pd(a));
|
|
2938
2959
|
}, _emval_new_object:function() {
|
|
2939
|
-
return
|
|
2960
|
+
return ec({});
|
|
2940
2961
|
}, _emval_run_destructors:function(a) {
|
|
2941
|
-
var b =
|
|
2942
|
-
|
|
2943
|
-
|
|
2962
|
+
var b = S(a);
|
|
2963
|
+
Dc(b);
|
|
2964
|
+
cd(a);
|
|
2944
2965
|
}, _emval_set_property:function(a, b, c) {
|
|
2945
|
-
a =
|
|
2946
|
-
b =
|
|
2947
|
-
c =
|
|
2966
|
+
a = S(a);
|
|
2967
|
+
b = S(b);
|
|
2968
|
+
c = S(c);
|
|
2948
2969
|
a[b] = c;
|
|
2949
2970
|
}, _emval_take_value:function(a, b) {
|
|
2950
|
-
a =
|
|
2971
|
+
a = rc(a, "_emval_take_value");
|
|
2951
2972
|
a = a.readValueFromPointer(b);
|
|
2952
|
-
return
|
|
2973
|
+
return ec(a);
|
|
2953
2974
|
}, abort:() => {
|
|
2954
|
-
|
|
2975
|
+
ua("");
|
|
2955
2976
|
}, beginPixelLocalStorageWEBGL:function(a, b, c) {
|
|
2956
|
-
(a = t[a].H.ia) && a.beginPixelLocalStorageWEBGL(
|
|
2977
|
+
(a = t[a].H.ia) && a.beginPixelLocalStorageWEBGL(n.HEAPU32.subarray(c, c + b));
|
|
2957
2978
|
}, begin_texture_image_decode:function(a, b, c) {
|
|
2958
2979
|
a = X[a];
|
|
2959
2980
|
a.image = new Image();
|
|
2960
|
-
a.image.src = URL.createObjectURL(new Blob([
|
|
2981
|
+
a.image.src = URL.createObjectURL(new Blob([n.HEAP8.subarray(b, b + c)]), {type:"image/png"});
|
|
2961
2982
|
a.complete = !1;
|
|
2962
2983
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
2963
|
-
|
|
2984
|
+
ud.length = 0;
|
|
2964
2985
|
var d;
|
|
2965
|
-
for (c >>= 2; d =
|
|
2966
|
-
c += 105 != d & c,
|
|
2986
|
+
for (c >>= 2; d = C[b++];) {
|
|
2987
|
+
c += 105 != d & c, ud.push(105 == d ? F[c] : za[c++ >> 1]), ++c;
|
|
2967
2988
|
}
|
|
2968
|
-
return
|
|
2989
|
+
return Ta[a].apply(null, ud);
|
|
2969
2990
|
}, emscripten_date_now:function() {
|
|
2970
2991
|
return Date.now();
|
|
2971
|
-
}, emscripten_get_now:() => performance.now(), emscripten_memcpy_big:(a, b, c) =>
|
|
2972
|
-
var b =
|
|
2992
|
+
}, emscripten_get_now:() => performance.now(), emscripten_memcpy_big:(a, b, c) => C.copyWithin(a, b, b + c), emscripten_resize_heap:a => {
|
|
2993
|
+
var b = C.length;
|
|
2973
2994
|
a >>>= 0;
|
|
2974
2995
|
if (2147483648 < a) {
|
|
2975
2996
|
return !1;
|
|
@@ -2980,10 +3001,10 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2980
3001
|
var e = Math;
|
|
2981
3002
|
d = Math.max(a, d);
|
|
2982
3003
|
a: {
|
|
2983
|
-
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) -
|
|
3004
|
+
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - va.buffer.byteLength + 65535 >>> 16;
|
|
2984
3005
|
try {
|
|
2985
|
-
|
|
2986
|
-
|
|
3006
|
+
va.grow(e);
|
|
3007
|
+
Aa();
|
|
2987
3008
|
var f = 1;
|
|
2988
3009
|
break a;
|
|
2989
3010
|
} catch (g) {
|
|
@@ -2997,14 +3018,14 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2997
3018
|
return !1;
|
|
2998
3019
|
}, emscripten_webgl_enable_extension:function(a, b) {
|
|
2999
3020
|
a = t[a];
|
|
3000
|
-
b = b ?
|
|
3021
|
+
b = b ? L(C, b) : "";
|
|
3001
3022
|
b.startsWith("GL_") && (b = b.substr(3));
|
|
3002
|
-
"WEBGL_draw_instanced_base_vertex_base_instance" == b &&
|
|
3003
|
-
"WEBGL_multi_draw_instanced_base_vertex_base_instance" == b &&
|
|
3004
|
-
"WEBGL_multi_draw" == b &&
|
|
3023
|
+
"WEBGL_draw_instanced_base_vertex_base_instance" == b && vd(Z);
|
|
3024
|
+
"WEBGL_multi_draw_instanced_base_vertex_base_instance" == b && wd(Z);
|
|
3025
|
+
"WEBGL_multi_draw" == b && Hd(Z);
|
|
3005
3026
|
return !!a.H.getExtension(b);
|
|
3006
3027
|
}, emscripten_webgl_get_current_context:function() {
|
|
3007
|
-
return
|
|
3028
|
+
return Gd ? Gd.handle : 0;
|
|
3008
3029
|
}, emscripten_webgl_make_context_current:function(a) {
|
|
3009
3030
|
return ka(a) ? 0 : -5;
|
|
3010
3031
|
}, enable_WEBGL_provoking_vertex:function(a) {
|
|
@@ -3016,33 +3037,33 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3016
3037
|
a.ia = a.getExtension("WEBGL_shader_pixel_local_storage");
|
|
3017
3038
|
return !(!a.ia || !a.ia.isCoherent());
|
|
3018
3039
|
}, endPixelLocalStorageWEBGL:function(a, b, c) {
|
|
3019
|
-
(a = t[a].H.ia) && a.endPixelLocalStorageWEBGL(
|
|
3040
|
+
(a = t[a].H.ia) && a.endPixelLocalStorageWEBGL(n.HEAPU32.subarray(c, c + b));
|
|
3020
3041
|
}, environ_get:(a, b) => {
|
|
3021
3042
|
var c = 0;
|
|
3022
|
-
|
|
3043
|
+
Kd().forEach(function(d, e) {
|
|
3023
3044
|
var f = b + c;
|
|
3024
|
-
e =
|
|
3045
|
+
e = I[a + 4 * e >> 2] = f;
|
|
3025
3046
|
for (f = 0; f < d.length; ++f) {
|
|
3026
|
-
|
|
3047
|
+
B[e++ >> 0] = d.charCodeAt(f);
|
|
3027
3048
|
}
|
|
3028
|
-
|
|
3049
|
+
B[e >> 0] = 0;
|
|
3029
3050
|
c += d.length + 1;
|
|
3030
3051
|
});
|
|
3031
3052
|
return 0;
|
|
3032
3053
|
}, environ_sizes_get:(a, b) => {
|
|
3033
|
-
var c =
|
|
3034
|
-
|
|
3054
|
+
var c = Kd();
|
|
3055
|
+
I[a >> 2] = c.length;
|
|
3035
3056
|
var d = 0;
|
|
3036
3057
|
c.forEach(function(e) {
|
|
3037
3058
|
d += e.length + 1;
|
|
3038
3059
|
});
|
|
3039
|
-
|
|
3060
|
+
I[b >> 2] = d;
|
|
3040
3061
|
return 0;
|
|
3041
3062
|
}, fd_close:function(a) {
|
|
3042
3063
|
try {
|
|
3043
|
-
var b =
|
|
3064
|
+
var b = Ib(a);
|
|
3044
3065
|
if (null === b.Y) {
|
|
3045
|
-
throw new
|
|
3066
|
+
throw new M(8);
|
|
3046
3067
|
}
|
|
3047
3068
|
b.Na && (b.Na = null);
|
|
3048
3069
|
try {
|
|
@@ -3050,12 +3071,12 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3050
3071
|
} catch (c) {
|
|
3051
3072
|
throw c;
|
|
3052
3073
|
} finally {
|
|
3053
|
-
|
|
3074
|
+
vb[b.Y] = null;
|
|
3054
3075
|
}
|
|
3055
3076
|
b.Y = null;
|
|
3056
3077
|
return 0;
|
|
3057
3078
|
} catch (c) {
|
|
3058
|
-
if ("undefined" == typeof
|
|
3079
|
+
if ("undefined" == typeof P || "ErrnoError" !== c.name) {
|
|
3059
3080
|
throw c;
|
|
3060
3081
|
}
|
|
3061
3082
|
return c.L;
|
|
@@ -3063,32 +3084,32 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3063
3084
|
}, fd_read:function(a, b, c, d) {
|
|
3064
3085
|
try {
|
|
3065
3086
|
a: {
|
|
3066
|
-
var e =
|
|
3087
|
+
var e = Ib(a);
|
|
3067
3088
|
a = b;
|
|
3068
3089
|
for (var f, g = b = 0; g < c; g++) {
|
|
3069
|
-
var m =
|
|
3090
|
+
var m = I[a >> 2], p = I[a + 4 >> 2];
|
|
3070
3091
|
a += 8;
|
|
3071
|
-
var l = e, u = m, v =
|
|
3092
|
+
var l = e, u = m, v = p, q = f, k = B;
|
|
3072
3093
|
if (0 > v || 0 > q) {
|
|
3073
|
-
throw new
|
|
3094
|
+
throw new M(28);
|
|
3074
3095
|
}
|
|
3075
3096
|
if (null === l.Y) {
|
|
3076
|
-
throw new
|
|
3097
|
+
throw new M(8);
|
|
3077
3098
|
}
|
|
3078
3099
|
if (1 === (l.flags & 2097155)) {
|
|
3079
|
-
throw new
|
|
3100
|
+
throw new M(8);
|
|
3080
3101
|
}
|
|
3081
3102
|
if (16384 === (l.node.mode & 61440)) {
|
|
3082
|
-
throw new
|
|
3103
|
+
throw new M(31);
|
|
3083
3104
|
}
|
|
3084
3105
|
if (!l.m.read) {
|
|
3085
|
-
throw new
|
|
3106
|
+
throw new M(28);
|
|
3086
3107
|
}
|
|
3087
3108
|
var r = "undefined" != typeof q;
|
|
3088
3109
|
if (!r) {
|
|
3089
3110
|
q = l.position;
|
|
3090
3111
|
} else if (!l.seekable) {
|
|
3091
|
-
throw new
|
|
3112
|
+
throw new M(70);
|
|
3092
3113
|
}
|
|
3093
3114
|
var w = l.m.read(l, k, u, v, q);
|
|
3094
3115
|
r || (l.position += w);
|
|
@@ -3098,17 +3119,17 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3098
3119
|
break a;
|
|
3099
3120
|
}
|
|
3100
3121
|
b += z;
|
|
3101
|
-
if (z <
|
|
3122
|
+
if (z < p) {
|
|
3102
3123
|
break;
|
|
3103
3124
|
}
|
|
3104
3125
|
"undefined" !== typeof f && (f += z);
|
|
3105
3126
|
}
|
|
3106
3127
|
G = b;
|
|
3107
3128
|
}
|
|
3108
|
-
|
|
3129
|
+
I[d >> 2] = G;
|
|
3109
3130
|
return 0;
|
|
3110
3131
|
} catch (A) {
|
|
3111
|
-
if ("undefined" == typeof
|
|
3132
|
+
if ("undefined" == typeof P || "ErrnoError" !== A.name) {
|
|
3112
3133
|
throw A;
|
|
3113
3134
|
}
|
|
3114
3135
|
return A.L;
|
|
@@ -3119,15 +3140,15 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3119
3140
|
if (isNaN(b)) {
|
|
3120
3141
|
return 61;
|
|
3121
3142
|
}
|
|
3122
|
-
var f =
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3143
|
+
var f = Ib(a);
|
|
3144
|
+
Sb(f, b, d);
|
|
3145
|
+
K = [f.position >>> 0, (J = f.position, 1.0 <= +Math.abs(J) ? 0.0 < J ? +Math.floor(J / 4294967296.0) >>> 0 : ~~+Math.ceil((J - +(~~J >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
3146
|
+
F[e >> 2] = K[0];
|
|
3147
|
+
F[e + 4 >> 2] = K[1];
|
|
3127
3148
|
f.Na && 0 === b && 0 === d && (f.Na = null);
|
|
3128
3149
|
return 0;
|
|
3129
3150
|
} catch (g) {
|
|
3130
|
-
if ("undefined" == typeof
|
|
3151
|
+
if ("undefined" == typeof P || "ErrnoError" !== g.name) {
|
|
3131
3152
|
throw g;
|
|
3132
3153
|
}
|
|
3133
3154
|
return g.L;
|
|
@@ -3135,33 +3156,33 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3135
3156
|
}, fd_write:function(a, b, c, d) {
|
|
3136
3157
|
try {
|
|
3137
3158
|
a: {
|
|
3138
|
-
var e =
|
|
3159
|
+
var e = Ib(a);
|
|
3139
3160
|
a = b;
|
|
3140
3161
|
for (var f, g = b = 0; g < c; g++) {
|
|
3141
|
-
var m =
|
|
3162
|
+
var m = I[a >> 2], p = I[a + 4 >> 2];
|
|
3142
3163
|
a += 8;
|
|
3143
|
-
var l = e, u = m, v =
|
|
3164
|
+
var l = e, u = m, v = p, q = f, k = B;
|
|
3144
3165
|
if (0 > v || 0 > q) {
|
|
3145
|
-
throw new
|
|
3166
|
+
throw new M(28);
|
|
3146
3167
|
}
|
|
3147
3168
|
if (null === l.Y) {
|
|
3148
|
-
throw new
|
|
3169
|
+
throw new M(8);
|
|
3149
3170
|
}
|
|
3150
3171
|
if (0 === (l.flags & 2097155)) {
|
|
3151
|
-
throw new
|
|
3172
|
+
throw new M(8);
|
|
3152
3173
|
}
|
|
3153
3174
|
if (16384 === (l.node.mode & 61440)) {
|
|
3154
|
-
throw new
|
|
3175
|
+
throw new M(31);
|
|
3155
3176
|
}
|
|
3156
3177
|
if (!l.m.write) {
|
|
3157
|
-
throw new
|
|
3178
|
+
throw new M(28);
|
|
3158
3179
|
}
|
|
3159
|
-
l.seekable && l.flags & 1024 &&
|
|
3180
|
+
l.seekable && l.flags & 1024 && Sb(l, 0, 2);
|
|
3160
3181
|
var r = "undefined" != typeof q;
|
|
3161
3182
|
if (!r) {
|
|
3162
3183
|
q = l.position;
|
|
3163
3184
|
} else if (!l.seekable) {
|
|
3164
|
-
throw new
|
|
3185
|
+
throw new M(70);
|
|
3165
3186
|
}
|
|
3166
3187
|
var w = l.m.write(l, k, u, v, q, void 0);
|
|
3167
3188
|
r || (l.position += w);
|
|
@@ -3175,10 +3196,10 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3175
3196
|
}
|
|
3176
3197
|
G = b;
|
|
3177
3198
|
}
|
|
3178
|
-
|
|
3199
|
+
I[d >> 2] = G;
|
|
3179
3200
|
return 0;
|
|
3180
3201
|
} catch (A) {
|
|
3181
|
-
if ("undefined" == typeof
|
|
3202
|
+
if ("undefined" == typeof P || "ErrnoError" !== A.name) {
|
|
3182
3203
|
throw A;
|
|
3183
3204
|
}
|
|
3184
3205
|
return A.L;
|
|
@@ -3190,30 +3211,30 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3190
3211
|
}, glActiveTexture:function(a) {
|
|
3191
3212
|
Z.activeTexture(a);
|
|
3192
3213
|
}, glAttachShader:function(a, b) {
|
|
3193
|
-
Z.attachShader(
|
|
3214
|
+
Z.attachShader(zd[a], Cd[b]);
|
|
3194
3215
|
}, glBindBuffer:function(a, b) {
|
|
3195
3216
|
35051 == a ? Z.Xa = b : 35052 == a && (Z.Ka = b);
|
|
3196
|
-
Z.bindBuffer(a,
|
|
3217
|
+
Z.bindBuffer(a, yd[b]);
|
|
3197
3218
|
}, glBindBufferRange:function(a, b, c, d, e) {
|
|
3198
|
-
Z.bindBufferRange(a, b,
|
|
3219
|
+
Z.bindBufferRange(a, b, yd[c], d, e);
|
|
3199
3220
|
}, glBindFramebuffer:function(a, b) {
|
|
3200
|
-
Z.bindFramebuffer(a,
|
|
3221
|
+
Z.bindFramebuffer(a, Ad[b]);
|
|
3201
3222
|
}, glBindRenderbuffer:function(a, b) {
|
|
3202
|
-
Z.bindRenderbuffer(a,
|
|
3223
|
+
Z.bindRenderbuffer(a, Bd[b]);
|
|
3203
3224
|
}, glBindTexture:function(a, b) {
|
|
3204
3225
|
Z.bindTexture(a, X[b]);
|
|
3205
3226
|
}, glBindVertexArray:function(a) {
|
|
3206
|
-
Z.bindVertexArray(
|
|
3227
|
+
Z.bindVertexArray(Dd[a]);
|
|
3207
3228
|
}, glBlendEquation:function(a) {
|
|
3208
3229
|
Z.blendEquation(a);
|
|
3209
3230
|
}, glBlendFunc:function(a, b) {
|
|
3210
3231
|
Z.blendFunc(a, b);
|
|
3211
|
-
}, glBlitFramebuffer:function(a, b, c, d, e, f, g, m,
|
|
3212
|
-
Z.blitFramebuffer(a, b, c, d, e, f, g, m,
|
|
3232
|
+
}, glBlitFramebuffer:function(a, b, c, d, e, f, g, m, p, l) {
|
|
3233
|
+
Z.blitFramebuffer(a, b, c, d, e, f, g, m, p, l);
|
|
3213
3234
|
}, glBufferData:function(a, b, c, d) {
|
|
3214
|
-
c && b ? Z.bufferData(a,
|
|
3235
|
+
c && b ? Z.bufferData(a, C, d, c, b) : Z.bufferData(a, b, d);
|
|
3215
3236
|
}, glBufferSubData:function(a, b, c, d) {
|
|
3216
|
-
c && Z.bufferSubData(a, b,
|
|
3237
|
+
c && Z.bufferSubData(a, b, C, d, c);
|
|
3217
3238
|
}, glClear:function(a) {
|
|
3218
3239
|
Z.clear(a);
|
|
3219
3240
|
}, glClearColor:function(a, b, c, d) {
|
|
@@ -3225,55 +3246,55 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3225
3246
|
}, glColorMask:function(a, b, c, d) {
|
|
3226
3247
|
Z.colorMask(!!a, !!b, !!c, !!d);
|
|
3227
3248
|
}, glCompileShader:function(a) {
|
|
3228
|
-
Z.compileShader(
|
|
3249
|
+
Z.compileShader(Cd[a]);
|
|
3229
3250
|
}, glCreateProgram:function() {
|
|
3230
|
-
var a = ia(
|
|
3251
|
+
var a = ia(zd), b = Z.createProgram();
|
|
3231
3252
|
b.name = a;
|
|
3232
3253
|
b.Hc = b.Fc = b.Gc = 0;
|
|
3233
3254
|
b.Ta = 1;
|
|
3234
|
-
|
|
3255
|
+
zd[a] = b;
|
|
3235
3256
|
return a;
|
|
3236
3257
|
}, glCreateShader:function(a) {
|
|
3237
|
-
var b = ia(
|
|
3238
|
-
|
|
3258
|
+
var b = ia(Cd);
|
|
3259
|
+
Cd[b] = Z.createShader(a);
|
|
3239
3260
|
return b;
|
|
3240
3261
|
}, glCullFace:function(a) {
|
|
3241
3262
|
Z.cullFace(a);
|
|
3242
3263
|
}, glDeleteBuffers:function(a, b) {
|
|
3243
3264
|
for (var c = 0; c < a; c++) {
|
|
3244
|
-
var d =
|
|
3245
|
-
e && (Z.deleteBuffer(e), e.name = 0,
|
|
3265
|
+
var d = F[b + 4 * c >> 2], e = yd[d];
|
|
3266
|
+
e && (Z.deleteBuffer(e), e.name = 0, yd[d] = null, d == Z.Xa && (Z.Xa = 0), d == Z.Ka && (Z.Ka = 0));
|
|
3246
3267
|
}
|
|
3247
3268
|
}, glDeleteFramebuffers:function(a, b) {
|
|
3248
3269
|
for (var c = 0; c < a; ++c) {
|
|
3249
|
-
var d =
|
|
3250
|
-
e && (Z.deleteFramebuffer(e), e.name = 0,
|
|
3270
|
+
var d = F[b + 4 * c >> 2], e = Ad[d];
|
|
3271
|
+
e && (Z.deleteFramebuffer(e), e.name = 0, Ad[d] = null);
|
|
3251
3272
|
}
|
|
3252
3273
|
}, glDeleteProgram:function(a) {
|
|
3253
3274
|
if (a) {
|
|
3254
|
-
var b =
|
|
3255
|
-
b ? (Z.deleteProgram(b), b.name = 0,
|
|
3275
|
+
var b = zd[a];
|
|
3276
|
+
b ? (Z.deleteProgram(b), b.name = 0, zd[a] = null) : Y(1281);
|
|
3256
3277
|
}
|
|
3257
3278
|
}, glDeleteRenderbuffers:function(a, b) {
|
|
3258
3279
|
for (var c = 0; c < a; c++) {
|
|
3259
|
-
var d =
|
|
3260
|
-
e && (Z.deleteRenderbuffer(e), e.name = 0,
|
|
3280
|
+
var d = F[b + 4 * c >> 2], e = Bd[d];
|
|
3281
|
+
e && (Z.deleteRenderbuffer(e), e.name = 0, Bd[d] = null);
|
|
3261
3282
|
}
|
|
3262
3283
|
}, glDeleteShader:function(a) {
|
|
3263
3284
|
if (a) {
|
|
3264
|
-
var b =
|
|
3265
|
-
b ? (Z.deleteShader(b),
|
|
3285
|
+
var b = Cd[a];
|
|
3286
|
+
b ? (Z.deleteShader(b), Cd[a] = null) : Y(1281);
|
|
3266
3287
|
}
|
|
3267
3288
|
}, glDeleteTextures:function(a, b) {
|
|
3268
3289
|
for (var c = 0; c < a; c++) {
|
|
3269
|
-
var d =
|
|
3290
|
+
var d = F[b + 4 * c >> 2], e = X[d];
|
|
3270
3291
|
e && (Z.deleteTexture(e), e.name = 0, X[d] = null);
|
|
3271
3292
|
}
|
|
3272
3293
|
}, glDeleteVertexArrays:function(a, b) {
|
|
3273
3294
|
for (var c = 0; c < a; c++) {
|
|
3274
|
-
var d =
|
|
3275
|
-
Z.deleteVertexArray(
|
|
3276
|
-
|
|
3295
|
+
var d = F[b + 4 * c >> 2];
|
|
3296
|
+
Z.deleteVertexArray(Dd[d]);
|
|
3297
|
+
Dd[d] = null;
|
|
3277
3298
|
}
|
|
3278
3299
|
}, glDepthFunc:function(a) {
|
|
3279
3300
|
Z.depthFunc(a);
|
|
@@ -3288,8 +3309,8 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3288
3309
|
}, glDrawArraysInstanced:function(a, b, c, d) {
|
|
3289
3310
|
Z.drawArraysInstanced(a, b, c, d);
|
|
3290
3311
|
}, glDrawBuffers:function(a, b) {
|
|
3291
|
-
for (var c =
|
|
3292
|
-
c[d] =
|
|
3312
|
+
for (var c = Ld[a], d = 0; d < a; d++) {
|
|
3313
|
+
c[d] = F[b + 4 * d >> 2];
|
|
3293
3314
|
}
|
|
3294
3315
|
Z.drawBuffers(c);
|
|
3295
3316
|
}, glDrawElements:function(a, b, c, d) {
|
|
@@ -3301,27 +3322,27 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3301
3322
|
}, glEnableVertexAttribArray:function(a) {
|
|
3302
3323
|
Z.enableVertexAttribArray(a);
|
|
3303
3324
|
}, glFramebufferRenderbuffer:function(a, b, c, d) {
|
|
3304
|
-
Z.framebufferRenderbuffer(a, b, c,
|
|
3325
|
+
Z.framebufferRenderbuffer(a, b, c, Bd[d]);
|
|
3305
3326
|
}, glFramebufferTexture2D:function(a, b, c, d, e) {
|
|
3306
3327
|
Z.framebufferTexture2D(a, b, c, X[d], e);
|
|
3307
3328
|
}, glFrontFace:function(a) {
|
|
3308
3329
|
Z.frontFace(a);
|
|
3309
3330
|
}, glGenBuffers:function(a, b) {
|
|
3310
|
-
|
|
3331
|
+
Md(a, b, "createBuffer", yd);
|
|
3311
3332
|
}, glGenFramebuffers:function(a, b) {
|
|
3312
|
-
|
|
3333
|
+
Md(a, b, "createFramebuffer", Ad);
|
|
3313
3334
|
}, glGenRenderbuffers:function(a, b) {
|
|
3314
|
-
|
|
3335
|
+
Md(a, b, "createRenderbuffer", Bd);
|
|
3315
3336
|
}, glGenTextures:function(a, b) {
|
|
3316
|
-
|
|
3337
|
+
Md(a, b, "createTexture", X);
|
|
3317
3338
|
}, glGenVertexArrays:function(a, b) {
|
|
3318
|
-
|
|
3339
|
+
Md(a, b, "createVertexArray", Dd);
|
|
3319
3340
|
}, glGenerateMipmap:function(a) {
|
|
3320
3341
|
Z.generateMipmap(a);
|
|
3321
3342
|
}, glGetIntegerv:function(a, b) {
|
|
3322
|
-
|
|
3343
|
+
Nd(a, b);
|
|
3323
3344
|
}, glGetString:function(a) {
|
|
3324
|
-
var b =
|
|
3345
|
+
var b = Ed[a];
|
|
3325
3346
|
if (!b) {
|
|
3326
3347
|
switch(a) {
|
|
3327
3348
|
case 7939:
|
|
@@ -3329,55 +3350,55 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3329
3350
|
b = b.concat(b.map(function(d) {
|
|
3330
3351
|
return "GL_" + d;
|
|
3331
3352
|
}));
|
|
3332
|
-
b =
|
|
3353
|
+
b = Pd(b.join(" "));
|
|
3333
3354
|
break;
|
|
3334
3355
|
case 7936:
|
|
3335
3356
|
case 7937:
|
|
3336
3357
|
case 37445:
|
|
3337
3358
|
case 37446:
|
|
3338
3359
|
(b = Z.getParameter(a)) || Y(1280);
|
|
3339
|
-
b = b &&
|
|
3360
|
+
b = b && Pd(b);
|
|
3340
3361
|
break;
|
|
3341
3362
|
case 7938:
|
|
3342
|
-
b =
|
|
3363
|
+
b = Pd("OpenGL ES 3.0 (" + Z.getParameter(7938) + ")");
|
|
3343
3364
|
break;
|
|
3344
3365
|
case 35724:
|
|
3345
3366
|
b = Z.getParameter(35724);
|
|
3346
3367
|
var c = b.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);
|
|
3347
3368
|
null !== c && (3 == c[1].length && (c[1] += "0"), b = "OpenGL ES GLSL ES " + c[1] + " (" + b + ")");
|
|
3348
|
-
b =
|
|
3369
|
+
b = Pd(b);
|
|
3349
3370
|
break;
|
|
3350
3371
|
default:
|
|
3351
3372
|
Y(1280);
|
|
3352
3373
|
}
|
|
3353
|
-
|
|
3374
|
+
Ed[a] = b;
|
|
3354
3375
|
}
|
|
3355
3376
|
return b;
|
|
3356
3377
|
}, glGetUniformBlockIndex:function(a, b) {
|
|
3357
|
-
return Z.getUniformBlockIndex(
|
|
3378
|
+
return Z.getUniformBlockIndex(zd[a], b ? L(C, b) : "");
|
|
3358
3379
|
}, glGetUniformLocation:function(a, b) {
|
|
3359
|
-
b = b ?
|
|
3360
|
-
if (a =
|
|
3380
|
+
b = b ? L(C, b) : "";
|
|
3381
|
+
if (a = zd[a]) {
|
|
3361
3382
|
var c = a, d = c.pa, e = c.ub, f;
|
|
3362
3383
|
if (!d) {
|
|
3363
3384
|
for (c.pa = d = {}, c.tb = {}, f = 0; f < Z.getProgramParameter(c, 35718); ++f) {
|
|
3364
3385
|
var g = Z.getActiveUniform(c, f);
|
|
3365
3386
|
var m = g.name;
|
|
3366
3387
|
g = g.size;
|
|
3367
|
-
var
|
|
3368
|
-
|
|
3388
|
+
var p = Qd(m);
|
|
3389
|
+
p = 0 < p ? m.slice(0, p) : m;
|
|
3369
3390
|
var l = c.Ta;
|
|
3370
3391
|
c.Ta += g;
|
|
3371
|
-
e[
|
|
3392
|
+
e[p] = [g, l];
|
|
3372
3393
|
for (m = 0; m < g; ++m) {
|
|
3373
|
-
d[l] = m, c.tb[l++] =
|
|
3394
|
+
d[l] = m, c.tb[l++] = p;
|
|
3374
3395
|
}
|
|
3375
3396
|
}
|
|
3376
3397
|
}
|
|
3377
3398
|
c = a.pa;
|
|
3378
3399
|
d = 0;
|
|
3379
3400
|
e = b;
|
|
3380
|
-
f =
|
|
3401
|
+
f = Qd(b);
|
|
3381
3402
|
0 < f && (d = parseInt(b.slice(f + 1)) >>> 0, e = b.slice(0, f));
|
|
3382
3403
|
if ((e = a.ub[e]) && d < e[0] && (d += e[1], c[d] = c[d] || Z.getUniformLocation(a, b))) {
|
|
3383
3404
|
return d;
|
|
@@ -3387,12 +3408,12 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3387
3408
|
}
|
|
3388
3409
|
return -1;
|
|
3389
3410
|
}, glInvalidateFramebuffer:function(a, b, c) {
|
|
3390
|
-
for (var d =
|
|
3391
|
-
d[e] =
|
|
3411
|
+
for (var d = Ld[b], e = 0; e < b; e++) {
|
|
3412
|
+
d[e] = F[c + 4 * e >> 2];
|
|
3392
3413
|
}
|
|
3393
3414
|
Z.invalidateFramebuffer(a, d);
|
|
3394
3415
|
}, glLinkProgram:function(a) {
|
|
3395
|
-
a =
|
|
3416
|
+
a = zd[a];
|
|
3396
3417
|
Z.linkProgram(a);
|
|
3397
3418
|
a.pa = 0;
|
|
3398
3419
|
a.ub = {};
|
|
@@ -3404,11 +3425,11 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3404
3425
|
Z.scissor(a, b, c, d);
|
|
3405
3426
|
}, glShaderSource:function(a, b, c, d) {
|
|
3406
3427
|
for (var e = "", f = 0; f < b; ++f) {
|
|
3407
|
-
var g = d ?
|
|
3408
|
-
g = m ?
|
|
3428
|
+
var g = d ? F[d + 4 * f >> 2] : -1, m = F[c + 4 * f >> 2];
|
|
3429
|
+
g = m ? L(C, m, 0 > g ? void 0 : g) : "";
|
|
3409
3430
|
e += g;
|
|
3410
3431
|
}
|
|
3411
|
-
Z.shaderSource(
|
|
3432
|
+
Z.shaderSource(Cd[a], e);
|
|
3412
3433
|
}, glStencilFunc:function(a, b, c) {
|
|
3413
3434
|
Z.stencilFunc(a, b, c);
|
|
3414
3435
|
}, glStencilFuncSeparate:function(a, b, c, d) {
|
|
@@ -3423,13 +3444,13 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3423
3444
|
Z.texParameteri(a, b, c);
|
|
3424
3445
|
}, glTexStorage2D:function(a, b, c, d, e) {
|
|
3425
3446
|
Z.texStorage2D(a, b, c, d, e);
|
|
3426
|
-
}, glTexSubImage2D:function(a, b, c, d, e, f, g, m,
|
|
3447
|
+
}, glTexSubImage2D:function(a, b, c, d, e, f, g, m, p) {
|
|
3427
3448
|
if (Z.Ka) {
|
|
3428
|
-
Z.texSubImage2D(a, b, c, d, e, f, g, m,
|
|
3429
|
-
} else if (
|
|
3449
|
+
Z.texSubImage2D(a, b, c, d, e, f, g, m, p);
|
|
3450
|
+
} else if (p) {
|
|
3430
3451
|
var l = m - 5120;
|
|
3431
|
-
l = 0 == l ?
|
|
3432
|
-
Z.texSubImage2D(a, b, c, d, e, f, g, m, l,
|
|
3452
|
+
l = 0 == l ? B : 1 == l ? C : 2 == l ? D : 4 == l ? F : 6 == l ? ya : 5 == l || 28922 == l || 28520 == l || 30779 == l || 30782 == l ? I : xa;
|
|
3453
|
+
Z.texSubImage2D(a, b, c, d, e, f, g, m, l, p >> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
|
|
3433
3454
|
} else {
|
|
3434
3455
|
Z.texSubImage2D(a, b, c, d, e, f, g, m, null);
|
|
3435
3456
|
}
|
|
@@ -3445,10 +3466,10 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3445
3466
|
}
|
|
3446
3467
|
d.call(c, a, b);
|
|
3447
3468
|
}, glUniformBlockBinding:function(a, b, c) {
|
|
3448
|
-
a =
|
|
3469
|
+
a = zd[a];
|
|
3449
3470
|
Z.uniformBlockBinding(a, b, c);
|
|
3450
3471
|
}, glUseProgram:function(a) {
|
|
3451
|
-
a =
|
|
3472
|
+
a = zd[a];
|
|
3452
3473
|
Z.useProgram(a);
|
|
3453
3474
|
Z.Ib = a;
|
|
3454
3475
|
}, glVertexAttribDivisor:function(a, b) {
|
|
@@ -3472,72 +3493,108 @@ var Ud = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3472
3493
|
b.imageHeight = b.image.height;
|
|
3473
3494
|
b.complete = !0;
|
|
3474
3495
|
delete b.image;
|
|
3475
|
-
}, strftime_l:(a, b, c, d) =>
|
|
3496
|
+
}, strftime_l:(a, b, c, d) => Ud(a, b, c, d), texture_image_height:function(a) {
|
|
3476
3497
|
a = X[a];
|
|
3477
3498
|
return a.imageHeight;
|
|
3478
3499
|
}, texture_image_width:function(a) {
|
|
3479
3500
|
a = X[a];
|
|
3480
3501
|
return a.imageWidth;
|
|
3481
|
-
}, webgl_texSubImage2DWithOffset:function(a, b, c, d, e, f, g, m,
|
|
3502
|
+
}, webgl_texSubImage2DWithOffset:function(a, b, c, d, e, f, g, m, p, l) {
|
|
3482
3503
|
a = t[a].H;
|
|
3483
|
-
a.texSubImage2D(b, c, d, e, f, g, m,
|
|
3504
|
+
a.texSubImage2D(b, c, d, e, f, g, m, p, l);
|
|
3484
3505
|
}};
|
|
3485
3506
|
(function() {
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3507
|
+
function a(c) {
|
|
3508
|
+
y = c = c.exports;
|
|
3509
|
+
va = y.memory;
|
|
3510
|
+
Aa();
|
|
3511
|
+
Ba = y.__indirect_function_table;
|
|
3512
|
+
Da.unshift(y.__wasm_call_ctors);
|
|
3513
|
+
Ga--;
|
|
3514
|
+
n.monitorRunDependencies && n.monitorRunDependencies(Ga);
|
|
3515
|
+
if (0 == Ga && (null !== Ha && (clearInterval(Ha), Ha = null), Ia)) {
|
|
3516
|
+
var d = Ia;
|
|
3517
|
+
Ia = null;
|
|
3518
|
+
d();
|
|
3519
|
+
}
|
|
3520
|
+
return c;
|
|
3521
|
+
}
|
|
3522
|
+
var b = {env:Zd, wasi_snapshot_preview1:Zd,};
|
|
3523
|
+
Ga++;
|
|
3524
|
+
n.monitorRunDependencies && n.monitorRunDependencies(Ga);
|
|
3525
|
+
if (n.instantiateWasm) {
|
|
3526
|
+
try {
|
|
3527
|
+
return n.instantiateWasm(b, a);
|
|
3528
|
+
} catch (c) {
|
|
3529
|
+
sa("Module.instantiateWasm callback failed with error: " + c), ca(c);
|
|
3530
|
+
}
|
|
3531
|
+
}
|
|
3532
|
+
Pa(b, function(c) {
|
|
3533
|
+
a(c.instance);
|
|
3496
3534
|
}).catch(ca);
|
|
3497
3535
|
return {};
|
|
3498
3536
|
})();
|
|
3499
|
-
var
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
var
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
var
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3537
|
+
var qc = a => (qc = y.free)(a), Od = a => (Od = y.malloc)(a), Qa = n._ma_device__on_notification_unlocked = a => (Qa = n._ma_device__on_notification_unlocked = y.ma_device__on_notification_unlocked)(a);
|
|
3538
|
+
n._ma_malloc_emscripten = (a, b) => (n._ma_malloc_emscripten = y.ma_malloc_emscripten)(a, b);
|
|
3539
|
+
n._ma_free_emscripten = (a, b) => (n._ma_free_emscripten = y.ma_free_emscripten)(a, b);
|
|
3540
|
+
var Ra = n._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Ra = n._ma_device_process_pcm_frames_capture__webaudio = y.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Sa = n._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Sa = n._ma_device_process_pcm_frames_playback__webaudio = y.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Yd = () => (Yd = y.__errno_location)(), pc = a => (pc = y.__getTypeName)(a);
|
|
3541
|
+
n.__embind_initialize_bindings = () => (n.__embind_initialize_bindings = y._embind_initialize_bindings)();
|
|
3542
|
+
n.dynCall_iiji = (a, b, c, d, e) => (n.dynCall_iiji = y.dynCall_iiji)(a, b, c, d, e);
|
|
3543
|
+
n.dynCall_iiiji = (a, b, c, d, e, f) => (n.dynCall_iiiji = y.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3544
|
+
n.dynCall_iij = (a, b, c, d) => (n.dynCall_iij = y.dynCall_iij)(a, b, c, d);
|
|
3545
|
+
n.dynCall_jii = (a, b, c) => (n.dynCall_jii = y.dynCall_jii)(a, b, c);
|
|
3546
|
+
n.dynCall_jiji = (a, b, c, d, e) => (n.dynCall_jiji = y.dynCall_jiji)(a, b, c, d, e);
|
|
3547
|
+
n.dynCall_viijii = (a, b, c, d, e, f, g) => (n.dynCall_viijii = y.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3548
|
+
n.dynCall_iiiiij = (a, b, c, d, e, f, g) => (n.dynCall_iiiiij = y.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3549
|
+
n.dynCall_iiiiijj = (a, b, c, d, e, f, g, m, p) => (n.dynCall_iiiiijj = y.dynCall_iiiiijj)(a, b, c, d, e, f, g, m, p);
|
|
3550
|
+
n.dynCall_iiiiiijj = (a, b, c, d, e, f, g, m, p, l) => (n.dynCall_iiiiiijj = y.dynCall_iiiiiijj)(a, b, c, d, e, f, g, m, p, l);
|
|
3551
|
+
n.___start_em_js = 262344;
|
|
3552
|
+
n.___stop_em_js = 264968;
|
|
3553
|
+
var $d;
|
|
3554
|
+
Ia = function ae() {
|
|
3555
|
+
$d || be();
|
|
3556
|
+
$d || (Ia = ae);
|
|
3519
3557
|
};
|
|
3520
|
-
function
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3558
|
+
function be() {
|
|
3559
|
+
function a() {
|
|
3560
|
+
if (!$d && ($d = !0, n.calledRun = !0, !wa)) {
|
|
3561
|
+
n.noFSInit || Ub || (Ub = !0, Tb(), n.stdin = n.stdin, n.stdout = n.stdout, n.stderr = n.stderr, n.stdin ? Wb("stdin", n.stdin) : Nb("/dev/tty", "/dev/stdin"), n.stdout ? Wb("stdout", null, n.stdout) : Nb("/dev/tty", "/dev/stdout"), n.stderr ? Wb("stderr", null, n.stderr) : Nb("/dev/tty1", "/dev/stderr"), Rb("/dev/stdin", 0), Rb("/dev/stdout", 1), Rb("/dev/stderr", 1));
|
|
3562
|
+
yb = !1;
|
|
3563
|
+
Ua(Da);
|
|
3564
|
+
aa(n);
|
|
3565
|
+
if (n.onRuntimeInitialized) {
|
|
3566
|
+
n.onRuntimeInitialized();
|
|
3529
3567
|
}
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3568
|
+
if (n.postRun) {
|
|
3569
|
+
for ("function" == typeof n.postRun && (n.postRun = [n.postRun]); n.postRun.length;) {
|
|
3570
|
+
var b = n.postRun.shift();
|
|
3571
|
+
Ea.unshift(b);
|
|
3572
|
+
}
|
|
3533
3573
|
}
|
|
3534
|
-
|
|
3535
|
-
|
|
3574
|
+
Ua(Ea);
|
|
3575
|
+
}
|
|
3576
|
+
}
|
|
3577
|
+
if (!(0 < Ga)) {
|
|
3578
|
+
if (n.preRun) {
|
|
3579
|
+
for ("function" == typeof n.preRun && (n.preRun = [n.preRun]); n.preRun.length;) {
|
|
3580
|
+
Fa();
|
|
3536
3581
|
}
|
|
3537
3582
|
}
|
|
3583
|
+
Ua(Ca);
|
|
3584
|
+
0 < Ga || (n.setStatus ? (n.setStatus("Running..."), setTimeout(function() {
|
|
3585
|
+
setTimeout(function() {
|
|
3586
|
+
n.setStatus("");
|
|
3587
|
+
}, 1);
|
|
3588
|
+
a();
|
|
3589
|
+
}, 1)) : a());
|
|
3590
|
+
}
|
|
3591
|
+
}
|
|
3592
|
+
if (n.preInit) {
|
|
3593
|
+
for ("function" == typeof n.preInit && (n.preInit = [n.preInit]); 0 < n.preInit.length;) {
|
|
3594
|
+
n.preInit.pop()();
|
|
3538
3595
|
}
|
|
3539
3596
|
}
|
|
3540
|
-
|
|
3597
|
+
be();
|
|
3541
3598
|
|
|
3542
3599
|
|
|
3543
3600
|
|
|
@@ -3552,7 +3609,7 @@ Xd();
|
|
|
3552
3609
|
/* 2 */
|
|
3553
3610
|
/***/ ((module) => {
|
|
3554
3611
|
|
|
3555
|
-
module.exports = JSON.parse('{"name":"@rive-app/webgl2","version":"2.11.
|
|
3612
|
+
module.exports = JSON.parse('{"name":"@rive-app/webgl2","version":"2.11.1","description":"Rive\'s webgl2 based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)","Chris Dalton <chris@rive.app> (https://rive.app)"],"license":"MIT","files":["rive.js","rive.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
3556
3613
|
|
|
3557
3614
|
/***/ }),
|
|
3558
3615
|
/* 3 */
|