@microblink/capture 1.1.0 → 1.1.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/dist/capture.js +28 -25
- package/dist/capture.umd.cjs +3 -3
- package/dist/resources/advanced/capture-wasm.js +157 -4029
- package/dist/resources/advanced/capture-wasm.wasm +0 -0
- package/dist/resources/advanced-threads/capture-wasm.js +174 -4473
- package/dist/resources/advanced-threads/capture-wasm.wasm +0 -0
- package/dist/resources/advanced-threads/capture-wasm.worker.js +1 -109
- package/dist/resources/basic/capture-wasm.js +157 -4026
- package/dist/resources/basic/capture-wasm.wasm +0 -0
- package/dist/resources/capture-worker.js +2 -2
- package/microblink-capture-1.1.1.tgz +0 -0
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
|
|
1
2
|
var createModule = (() => {
|
|
2
|
-
var _scriptDir =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
|
|
4
|
+
|
|
5
|
+
return (
|
|
6
|
+
function(createModule = {}) {
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
/*
|
|
8
|
+
/*
|
|
9
9
|
|
|
10
10
|
Copyright 2019 The Emscripten Authors
|
|
11
11
|
SPDX-License-Identifier: MIT
|
|
@@ -16,4475 +16,176 @@ var createModule = (() => {
|
|
|
16
16
|
This file gets implicatly injected as a `--post-js` file when
|
|
17
17
|
emcc is run with `--emrun`
|
|
18
18
|
*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
? D.locateFile("capture-wasm.data", "")
|
|
180
|
-
: "capture-wasm.data",
|
|
181
|
-
f = a.remote_package_size,
|
|
182
|
-
h = null,
|
|
183
|
-
l = D.getPreloadedPackage ? D.getPreloadedPackage(e, f) : null;
|
|
184
|
-
l ||
|
|
185
|
-
b(
|
|
186
|
-
e,
|
|
187
|
-
f,
|
|
188
|
-
function (m) {
|
|
189
|
-
h ? (h(m), (h = null)) : (l = m);
|
|
190
|
-
},
|
|
191
|
-
c,
|
|
192
|
-
);
|
|
193
|
-
D.calledRun ? d() : (D.preRun || (D.preRun = []), D.preRun.push(d));
|
|
194
|
-
})({
|
|
195
|
-
files: [
|
|
196
|
-
{
|
|
197
|
-
filename:
|
|
198
|
-
"/microblink/capture/Model_021c530a7efe77c0e90c4bfe19c3bebaaceee433103e4e6d4f1424d921885982.strop",
|
|
199
|
-
start: 0,
|
|
200
|
-
end: 308674,
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
filename:
|
|
204
|
-
"/microblink/capture/Model_0c0458bedf340ad5858a25dd463e63f57ddb42e69c3c5ff0c572a528356b020d.strop",
|
|
205
|
-
start: 308674,
|
|
206
|
-
end: 429092,
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
filename:
|
|
210
|
-
"/microblink/capture/Model_2880751121560047e6dc571bc8ff4683aeb863886f7c0789234594ceb1e23577.strop",
|
|
211
|
-
start: 429092,
|
|
212
|
-
end: 433030,
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
filename:
|
|
216
|
-
"/microblink/capture/Model_3b11c3ffacbbf390b932fb9a7024f1a0016f66281ea8c790f8b5903374ad89c2.strop",
|
|
217
|
-
start: 433030,
|
|
218
|
-
end: 721810,
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
filename:
|
|
222
|
-
"/microblink/capture/Model_e4f1f62f68ec44b71ecad3fb3f3b48fe3790beb5ab325611e17d63af06e9f644.strop",
|
|
223
|
-
start: 721810,
|
|
224
|
-
end: 778324,
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
filename:
|
|
228
|
-
"/microblink/capture/Model_ed586fd6ca47c8eebb513c4ffaaacc2c54e92162b145062d7022519fba0911de.strop",
|
|
229
|
-
start: 778324,
|
|
230
|
-
end: 1491556,
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
filename:
|
|
234
|
-
"/microblink/capture/Model_f2874f5766b779c063dbe30467979163497dc4b29c43bab23d70c798ee32993a.strop",
|
|
235
|
-
start: 1491556,
|
|
236
|
-
end: 1573062,
|
|
237
|
-
},
|
|
238
|
-
],
|
|
239
|
-
remote_package_size: 1573062,
|
|
240
|
-
});
|
|
241
|
-
D.onAbort = function (a) {
|
|
242
|
-
E("Aborted with message: " + a);
|
|
243
|
-
try {
|
|
244
|
-
throw new WebAssembly.RuntimeError(a);
|
|
245
|
-
} catch (b) {
|
|
246
|
-
E("Stacktrace: " + b.stack);
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
|
-
if ("object" == typeof window) {
|
|
250
|
-
D.arguments = window.location.search.substr(1).trim().split("&");
|
|
251
|
-
for (let a = 0; a < D.arguments.length; ++a)
|
|
252
|
-
D.arguments[a] = decodeURI(D.arguments[a]);
|
|
253
|
-
D.arguments[0] || (D.arguments = []);
|
|
254
|
-
}
|
|
255
|
-
var oa = Object.assign({}, D),
|
|
256
|
-
pa = "./this.program",
|
|
257
|
-
qa = (a, b) => {
|
|
258
|
-
throw b;
|
|
259
|
-
},
|
|
260
|
-
F = D.ENVIRONMENT_IS_PTHREAD || !1,
|
|
261
|
-
ra = "";
|
|
262
|
-
function sa(a) {
|
|
263
|
-
return D.locateFile ? D.locateFile(a, ra) : ra + a;
|
|
264
|
-
}
|
|
265
|
-
var ta, ua, va;
|
|
266
|
-
ra = self.location.href;
|
|
267
|
-
_scriptDir && (ra = _scriptDir);
|
|
268
|
-
ra =
|
|
269
|
-
0 !== ra.indexOf("blob:")
|
|
270
|
-
? ra.substr(0, ra.replace(/[?#].*/, "").lastIndexOf("/") + 1)
|
|
271
|
-
: "";
|
|
272
|
-
ta = (a) => {
|
|
273
|
-
var b = new XMLHttpRequest();
|
|
274
|
-
b.open("GET", a, !1);
|
|
275
|
-
b.send(null);
|
|
276
|
-
return b.responseText;
|
|
277
|
-
};
|
|
278
|
-
va = (a) => {
|
|
279
|
-
var b = new XMLHttpRequest();
|
|
280
|
-
b.open("GET", a, !1);
|
|
281
|
-
b.responseType = "arraybuffer";
|
|
282
|
-
b.send(null);
|
|
283
|
-
return new Uint8Array(b.response);
|
|
284
|
-
};
|
|
285
|
-
ua = (a, b, c) => {
|
|
286
|
-
var d = new XMLHttpRequest();
|
|
287
|
-
d.open("GET", a, !0);
|
|
288
|
-
d.responseType = "arraybuffer";
|
|
289
|
-
d.onload = () => {
|
|
290
|
-
200 == d.status || (0 == d.status && d.response) ? b(d.response) : c();
|
|
291
|
-
};
|
|
292
|
-
d.onerror = c;
|
|
293
|
-
d.send(null);
|
|
294
|
-
};
|
|
295
|
-
var wa = D.print || console.log.bind(console),
|
|
296
|
-
E = D.printErr || console.warn.bind(console);
|
|
297
|
-
Object.assign(D, oa);
|
|
298
|
-
oa = null;
|
|
299
|
-
D.thisProgram && (pa = D.thisProgram);
|
|
300
|
-
D.quit && (qa = D.quit);
|
|
301
|
-
var xa;
|
|
302
|
-
D.wasmBinary && (xa = D.wasmBinary);
|
|
303
|
-
var noExitRuntime = D.noExitRuntime || !1;
|
|
304
|
-
"object" != typeof WebAssembly && ya("no native wasm support detected");
|
|
305
|
-
var u,
|
|
306
|
-
za,
|
|
307
|
-
Aa = !1,
|
|
308
|
-
Ba,
|
|
309
|
-
Ca = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0;
|
|
310
|
-
function Da(a, b, c) {
|
|
311
|
-
var d = b + c;
|
|
312
|
-
for (c = b; a[c] && !(c >= d); ) ++c;
|
|
313
|
-
if (16 < c - b && a.buffer && Ca)
|
|
314
|
-
return Ca.decode(
|
|
315
|
-
a.buffer instanceof SharedArrayBuffer
|
|
316
|
-
? a.slice(b, c)
|
|
317
|
-
: a.subarray(b, c),
|
|
318
|
-
);
|
|
319
|
-
for (d = ""; b < c; ) {
|
|
320
|
-
var e = a[b++];
|
|
321
|
-
if (e & 128) {
|
|
322
|
-
var f = a[b++] & 63;
|
|
323
|
-
if (192 == (e & 224)) d += String.fromCharCode(((e & 31) << 6) | f);
|
|
324
|
-
else {
|
|
325
|
-
var h = a[b++] & 63;
|
|
326
|
-
e =
|
|
327
|
-
224 == (e & 240)
|
|
328
|
-
? ((e & 15) << 12) | (f << 6) | h
|
|
329
|
-
: ((e & 7) << 18) | (f << 12) | (h << 6) | (a[b++] & 63);
|
|
330
|
-
65536 > e
|
|
331
|
-
? (d += String.fromCharCode(e))
|
|
332
|
-
: ((e -= 65536),
|
|
333
|
-
(d += String.fromCharCode(
|
|
334
|
-
55296 | (e >> 10),
|
|
335
|
-
56320 | (e & 1023),
|
|
336
|
-
)));
|
|
337
|
-
}
|
|
338
|
-
} else d += String.fromCharCode(e);
|
|
339
|
-
}
|
|
340
|
-
return d;
|
|
341
|
-
}
|
|
342
|
-
function J(a, b) {
|
|
343
|
-
return a ? Da(v(), a, b) : "";
|
|
344
|
-
}
|
|
345
|
-
function Ea(a, b, c, d) {
|
|
346
|
-
if (!(0 < d)) return 0;
|
|
347
|
-
var e = c;
|
|
348
|
-
d = c + d - 1;
|
|
349
|
-
for (var f = 0; f < a.length; ++f) {
|
|
350
|
-
var h = a.charCodeAt(f);
|
|
351
|
-
if (55296 <= h && 57343 >= h) {
|
|
352
|
-
var l = a.charCodeAt(++f);
|
|
353
|
-
h = (65536 + ((h & 1023) << 10)) | (l & 1023);
|
|
354
|
-
}
|
|
355
|
-
if (127 >= h) {
|
|
356
|
-
if (c >= d) break;
|
|
357
|
-
b[c++] = h;
|
|
358
|
-
} else {
|
|
359
|
-
if (2047 >= h) {
|
|
360
|
-
if (c + 1 >= d) break;
|
|
361
|
-
b[c++] = 192 | (h >> 6);
|
|
362
|
-
} else {
|
|
363
|
-
if (65535 >= h) {
|
|
364
|
-
if (c + 2 >= d) break;
|
|
365
|
-
b[c++] = 224 | (h >> 12);
|
|
366
|
-
} else {
|
|
367
|
-
if (c + 3 >= d) break;
|
|
368
|
-
b[c++] = 240 | (h >> 18);
|
|
369
|
-
b[c++] = 128 | ((h >> 12) & 63);
|
|
370
|
-
}
|
|
371
|
-
b[c++] = 128 | ((h >> 6) & 63);
|
|
372
|
-
}
|
|
373
|
-
b[c++] = 128 | (h & 63);
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
b[c] = 0;
|
|
377
|
-
return c - e;
|
|
378
|
-
}
|
|
379
|
-
function K(a, b, c) {
|
|
380
|
-
Ea(a, v(), b, c);
|
|
381
|
-
}
|
|
382
|
-
function Fa(a) {
|
|
383
|
-
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
384
|
-
var d = a.charCodeAt(c);
|
|
385
|
-
127 >= d
|
|
386
|
-
? b++
|
|
387
|
-
: 2047 >= d
|
|
388
|
-
? (b += 2)
|
|
389
|
-
: 55296 <= d && 57343 >= d
|
|
390
|
-
? ((b += 4), ++c)
|
|
391
|
-
: (b += 3);
|
|
392
|
-
}
|
|
393
|
-
return b;
|
|
394
|
-
}
|
|
395
|
-
var ba, da, fa, ha, ia, ja, Ga, la;
|
|
396
|
-
function ca() {
|
|
397
|
-
var a = u.buffer;
|
|
398
|
-
D.HEAP8 = ba = new Int8Array(a);
|
|
399
|
-
D.HEAP16 = fa = new Int16Array(a);
|
|
400
|
-
D.HEAP32 = ia = new Int32Array(a);
|
|
401
|
-
D.HEAPU8 = da = new Uint8Array(a);
|
|
402
|
-
D.HEAPU16 = ha = new Uint16Array(a);
|
|
403
|
-
D.HEAPU32 = ja = new Uint32Array(a);
|
|
404
|
-
D.HEAPF32 = Ga = new Float32Array(a);
|
|
405
|
-
D.HEAPF64 = la = new Float64Array(a);
|
|
406
|
-
}
|
|
407
|
-
var Ha = D.INITIAL_MEMORY || 209715200;
|
|
408
|
-
262144 <= Ha ||
|
|
409
|
-
ya(
|
|
410
|
-
"INITIAL_MEMORY should be larger than STACK_SIZE, was " +
|
|
411
|
-
Ha +
|
|
412
|
-
"! (STACK_SIZE=262144)",
|
|
413
|
-
);
|
|
414
|
-
if (F) u = D.wasmMemory;
|
|
415
|
-
else if (D.wasmMemory) u = D.wasmMemory;
|
|
416
|
-
else if (
|
|
417
|
-
((u = new WebAssembly.Memory({
|
|
418
|
-
initial: Ha / 65536,
|
|
419
|
-
maximum: 32768,
|
|
420
|
-
shared: !0,
|
|
421
|
-
})),
|
|
422
|
-
!(u.buffer instanceof SharedArrayBuffer))
|
|
423
|
-
)
|
|
424
|
-
throw (
|
|
425
|
-
(E(
|
|
426
|
-
"requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag",
|
|
427
|
-
),
|
|
428
|
-
Error("bad memory"))
|
|
429
|
-
);
|
|
430
|
-
ca();
|
|
431
|
-
Ha = u.buffer.byteLength;
|
|
432
|
-
var Ia,
|
|
433
|
-
Ja = [],
|
|
434
|
-
Ka = [],
|
|
435
|
-
La = [],
|
|
436
|
-
Ma = [],
|
|
437
|
-
Na = !1,
|
|
438
|
-
Oa = 0;
|
|
439
|
-
function Pa() {
|
|
440
|
-
return noExitRuntime || 0 < Oa;
|
|
441
|
-
}
|
|
442
|
-
function Qa() {
|
|
443
|
-
F ||
|
|
444
|
-
(D.noFSInit ||
|
|
445
|
-
Ra ||
|
|
446
|
-
((Ra = !0),
|
|
447
|
-
Sa(),
|
|
448
|
-
(D.stdin = D.stdin),
|
|
449
|
-
(D.stdout = D.stdout),
|
|
450
|
-
(D.stderr = D.stderr),
|
|
451
|
-
D.stdin ? Ta("/dev", "stdin", D.stdin) : Ua("/dev/tty", "/dev/stdin"),
|
|
452
|
-
D.stdout
|
|
453
|
-
? Ta("/dev", "stdout", null, D.stdout)
|
|
454
|
-
: Ua("/dev/tty", "/dev/stdout"),
|
|
455
|
-
D.stderr
|
|
456
|
-
? Ta("/dev", "stderr", null, D.stderr)
|
|
457
|
-
: Ua("/dev/tty1", "/dev/stderr"),
|
|
458
|
-
Va("/dev/stdin", 0),
|
|
459
|
-
Va("/dev/stdout", 1),
|
|
460
|
-
Va("/dev/stderr", 1)),
|
|
461
|
-
(Wa = !1),
|
|
462
|
-
Za(Ka));
|
|
463
|
-
}
|
|
464
|
-
function $a() {
|
|
465
|
-
var a = D.preRun.shift();
|
|
466
|
-
Ja.unshift(a);
|
|
467
|
-
}
|
|
468
|
-
var ab = 0,
|
|
469
|
-
bb = null,
|
|
470
|
-
cb = null;
|
|
471
|
-
function db() {
|
|
472
|
-
ab++;
|
|
473
|
-
D.monitorRunDependencies && D.monitorRunDependencies(ab);
|
|
474
|
-
}
|
|
475
|
-
function eb() {
|
|
476
|
-
ab--;
|
|
477
|
-
D.monitorRunDependencies && D.monitorRunDependencies(ab);
|
|
478
|
-
if (0 == ab && (null !== bb && (clearInterval(bb), (bb = null)), cb)) {
|
|
479
|
-
var a = cb;
|
|
480
|
-
cb = null;
|
|
481
|
-
a();
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
function ya(a) {
|
|
485
|
-
if (D.onAbort) D.onAbort(a);
|
|
486
|
-
a = "Aborted(" + a + ")";
|
|
487
|
-
E(a);
|
|
488
|
-
Aa = !0;
|
|
489
|
-
Ba = 1;
|
|
490
|
-
a = new WebAssembly.RuntimeError(
|
|
491
|
-
a + ". Build with -sASSERTIONS for more info.",
|
|
492
|
-
);
|
|
493
|
-
na(a);
|
|
494
|
-
throw a;
|
|
495
|
-
}
|
|
496
|
-
function fb(a) {
|
|
497
|
-
return a.startsWith("data:application/octet-stream;base64,");
|
|
498
|
-
}
|
|
499
|
-
var gb;
|
|
500
|
-
gb = "capture-wasm.wasm";
|
|
501
|
-
fb(gb) || (gb = sa(gb));
|
|
502
|
-
function hb(a) {
|
|
503
|
-
try {
|
|
504
|
-
if (a == gb && xa) return new Uint8Array(xa);
|
|
505
|
-
if (va) return va(a);
|
|
506
|
-
throw "both async and sync fetching of the wasm failed";
|
|
507
|
-
} catch (b) {
|
|
508
|
-
ya(b);
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
function ib(a) {
|
|
512
|
-
return xa || "function" != typeof fetch
|
|
513
|
-
? Promise.resolve().then(function () {
|
|
514
|
-
return hb(a);
|
|
515
|
-
})
|
|
516
|
-
: fetch(a, { credentials: "same-origin" })
|
|
517
|
-
.then(function (b) {
|
|
518
|
-
if (!b.ok) throw "failed to load wasm binary file at '" + a + "'";
|
|
519
|
-
return b.arrayBuffer();
|
|
520
|
-
})
|
|
521
|
-
.catch(function () {
|
|
522
|
-
return hb(a);
|
|
523
|
-
});
|
|
524
|
-
}
|
|
525
|
-
function jb(a, b, c) {
|
|
526
|
-
return ib(a)
|
|
527
|
-
.then(function (d) {
|
|
528
|
-
return WebAssembly.instantiate(d, b);
|
|
529
|
-
})
|
|
530
|
-
.then(function (d) {
|
|
531
|
-
return d;
|
|
532
|
-
})
|
|
533
|
-
.then(c, function (d) {
|
|
534
|
-
E("failed to asynchronously prepare wasm: " + d);
|
|
535
|
-
ya(d);
|
|
536
|
-
});
|
|
537
|
-
}
|
|
538
|
-
function kb(a, b) {
|
|
539
|
-
var c = gb;
|
|
540
|
-
return xa ||
|
|
541
|
-
"function" != typeof WebAssembly.instantiateStreaming ||
|
|
542
|
-
fb(c) ||
|
|
543
|
-
"function" != typeof fetch
|
|
544
|
-
? jb(c, a, b)
|
|
545
|
-
: fetch(c, { credentials: "same-origin" }).then(function (d) {
|
|
546
|
-
return WebAssembly.instantiateStreaming(d, a).then(b, function (e) {
|
|
547
|
-
E("wasm streaming compile failed: " + e);
|
|
548
|
-
E("falling back to ArrayBuffer instantiation");
|
|
549
|
-
return jb(c, a, b);
|
|
550
|
-
});
|
|
551
|
-
});
|
|
552
|
-
}
|
|
553
|
-
var L,
|
|
554
|
-
M,
|
|
555
|
-
lb = {
|
|
556
|
-
61921: (a, b, c, d) => {
|
|
557
|
-
a = J(a);
|
|
558
|
-
b = J(b);
|
|
559
|
-
c = J(c);
|
|
560
|
-
d = J(d);
|
|
561
|
-
throw Error(a + b + c + d);
|
|
562
|
-
},
|
|
563
|
-
62137: (a, b) => {
|
|
564
|
-
a = J(a);
|
|
565
|
-
b = J(b);
|
|
566
|
-
throw Error(a + b);
|
|
567
|
-
},
|
|
568
|
-
};
|
|
569
|
-
function mb(a) {
|
|
570
|
-
this.name = "ExitStatus";
|
|
571
|
-
this.message = "Program terminated with exit(" + a + ")";
|
|
572
|
-
this.status = a;
|
|
573
|
-
}
|
|
574
|
-
function nb(a) {
|
|
575
|
-
a.terminate();
|
|
576
|
-
a.onmessage = () => {};
|
|
577
|
-
}
|
|
578
|
-
function ob(a) {
|
|
579
|
-
(a = N.lb[a]) || ya();
|
|
580
|
-
N.od(a);
|
|
581
|
-
}
|
|
582
|
-
function pb(a) {
|
|
583
|
-
var b = N.Tc();
|
|
584
|
-
if (!b) return 6;
|
|
585
|
-
N.rb.push(b);
|
|
586
|
-
N.lb[a.kb] = b;
|
|
587
|
-
b.kb = a.kb;
|
|
588
|
-
b.postMessage(
|
|
589
|
-
{ cmd: "run", start_routine: a.vd, arg: a.Gc, pthread_ptr: a.kb },
|
|
590
|
-
a.Ad,
|
|
591
|
-
);
|
|
592
|
-
return 0;
|
|
593
|
-
}
|
|
594
|
-
var qb = (a, b) => {
|
|
595
|
-
for (var c = 0, d = a.length - 1; 0 <= d; d--) {
|
|
596
|
-
var e = a[d];
|
|
597
|
-
"." === e
|
|
598
|
-
? a.splice(d, 1)
|
|
599
|
-
: ".." === e
|
|
600
|
-
? (a.splice(d, 1), c++)
|
|
601
|
-
: c && (a.splice(d, 1), c--);
|
|
602
|
-
}
|
|
603
|
-
if (b) for (; c; c--) a.unshift("..");
|
|
604
|
-
return a;
|
|
605
|
-
},
|
|
606
|
-
O = (a) => {
|
|
607
|
-
var b = "/" === a.charAt(0),
|
|
608
|
-
c = "/" === a.substr(-1);
|
|
609
|
-
(a = qb(
|
|
610
|
-
a.split("/").filter((d) => !!d),
|
|
611
|
-
!b,
|
|
612
|
-
).join("/")) ||
|
|
613
|
-
b ||
|
|
614
|
-
(a = ".");
|
|
615
|
-
a && c && (a += "/");
|
|
616
|
-
return (b ? "/" : "") + a;
|
|
617
|
-
},
|
|
618
|
-
rb = (a) => {
|
|
619
|
-
var b = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/
|
|
620
|
-
.exec(a)
|
|
621
|
-
.slice(1);
|
|
622
|
-
a = b[0];
|
|
623
|
-
b = b[1];
|
|
624
|
-
if (!a && !b) return ".";
|
|
625
|
-
b && (b = b.substr(0, b.length - 1));
|
|
626
|
-
return a + b;
|
|
627
|
-
},
|
|
628
|
-
sb = (a) => {
|
|
629
|
-
if ("/" === a) return "/";
|
|
630
|
-
a = O(a);
|
|
631
|
-
a = a.replace(/\/$/, "");
|
|
632
|
-
var b = a.lastIndexOf("/");
|
|
633
|
-
return -1 === b ? a : a.substr(b + 1);
|
|
634
|
-
};
|
|
635
|
-
function tb() {
|
|
636
|
-
if (
|
|
637
|
-
"object" == typeof crypto &&
|
|
638
|
-
"function" == typeof crypto.getRandomValues
|
|
639
|
-
) {
|
|
640
|
-
var a = new Uint8Array(1);
|
|
641
|
-
return () => {
|
|
642
|
-
crypto.getRandomValues(a);
|
|
643
|
-
return a[0];
|
|
644
|
-
};
|
|
645
|
-
}
|
|
646
|
-
return () => ya("randomDevice");
|
|
647
|
-
}
|
|
648
|
-
function ub() {
|
|
649
|
-
for (var a = "", b = !1, c = arguments.length - 1; -1 <= c && !b; c--) {
|
|
650
|
-
b = 0 <= c ? arguments[c] : "/";
|
|
651
|
-
if ("string" != typeof b)
|
|
652
|
-
throw new TypeError("Arguments to path.resolve must be strings");
|
|
653
|
-
if (!b) return "";
|
|
654
|
-
a = b + "/" + a;
|
|
655
|
-
b = "/" === b.charAt(0);
|
|
656
|
-
}
|
|
657
|
-
a = qb(
|
|
658
|
-
a.split("/").filter((d) => !!d),
|
|
659
|
-
!b,
|
|
660
|
-
).join("/");
|
|
661
|
-
return (b ? "/" : "") + a || ".";
|
|
662
|
-
}
|
|
663
|
-
function vb(a, b) {
|
|
664
|
-
var c = Array(Fa(a) + 1);
|
|
665
|
-
a = Ea(a, c, 0, c.length);
|
|
666
|
-
b && (c.length = a);
|
|
667
|
-
return c;
|
|
668
|
-
}
|
|
669
|
-
var wb = [];
|
|
670
|
-
function xb(a, b) {
|
|
671
|
-
wb[a] = { input: [], Xa: [], yb: b };
|
|
672
|
-
yb(a, zb);
|
|
673
|
-
}
|
|
674
|
-
var zb = {
|
|
675
|
-
open: function (a) {
|
|
676
|
-
var b = wb[a.node.Db];
|
|
677
|
-
if (!b) throw new P(43);
|
|
678
|
-
a.bb = b;
|
|
679
|
-
a.seekable = !1;
|
|
680
|
-
},
|
|
681
|
-
close: function (a) {
|
|
682
|
-
a.bb.yb.Jb(a.bb);
|
|
683
|
-
},
|
|
684
|
-
Jb: function (a) {
|
|
685
|
-
a.bb.yb.Jb(a.bb);
|
|
686
|
-
},
|
|
687
|
-
read: function (a, b, c, d) {
|
|
688
|
-
if (!a.bb || !a.bb.yb.pc) throw new P(60);
|
|
689
|
-
for (var e = 0, f = 0; f < d; f++) {
|
|
690
|
-
try {
|
|
691
|
-
var h = a.bb.yb.pc(a.bb);
|
|
692
|
-
} catch (l) {
|
|
693
|
-
throw new P(29);
|
|
694
|
-
}
|
|
695
|
-
if (void 0 === h && 0 === e) throw new P(6);
|
|
696
|
-
if (null === h || void 0 === h) break;
|
|
697
|
-
e++;
|
|
698
|
-
b[c + f] = h;
|
|
699
|
-
}
|
|
700
|
-
e && (a.node.timestamp = Date.now());
|
|
701
|
-
return e;
|
|
702
|
-
},
|
|
703
|
-
write: function (a, b, c, d) {
|
|
704
|
-
if (!a.bb || !a.bb.yb.Zb) throw new P(60);
|
|
705
|
-
try {
|
|
706
|
-
for (var e = 0; e < d; e++) a.bb.yb.Zb(a.bb, b[c + e]);
|
|
707
|
-
} catch (f) {
|
|
708
|
-
throw new P(29);
|
|
709
|
-
}
|
|
710
|
-
d && (a.node.timestamp = Date.now());
|
|
711
|
-
return e;
|
|
712
|
-
},
|
|
713
|
-
},
|
|
714
|
-
Ab = {
|
|
715
|
-
pc: function (a) {
|
|
716
|
-
if (!a.input.length) {
|
|
717
|
-
var b = null;
|
|
718
|
-
"undefined" != typeof window && "function" == typeof window.prompt
|
|
719
|
-
? ((b = window.prompt("Input: ")), null !== b && (b += "\n"))
|
|
720
|
-
: "function" == typeof readline &&
|
|
721
|
-
((b = readline()), null !== b && (b += "\n"));
|
|
722
|
-
if (!b) return null;
|
|
723
|
-
a.input = vb(b, !0);
|
|
724
|
-
}
|
|
725
|
-
return a.input.shift();
|
|
726
|
-
},
|
|
727
|
-
Zb: function (a, b) {
|
|
728
|
-
null === b || 10 === b
|
|
729
|
-
? (wa(Da(a.Xa, 0)), (a.Xa = []))
|
|
730
|
-
: 0 != b && a.Xa.push(b);
|
|
731
|
-
},
|
|
732
|
-
Jb: function (a) {
|
|
733
|
-
a.Xa && 0 < a.Xa.length && (wa(Da(a.Xa, 0)), (a.Xa = []));
|
|
734
|
-
},
|
|
735
|
-
},
|
|
736
|
-
Bb = {
|
|
737
|
-
Zb: function (a, b) {
|
|
738
|
-
null === b || 10 === b
|
|
739
|
-
? (E(Da(a.Xa, 0)), (a.Xa = []))
|
|
740
|
-
: 0 != b && a.Xa.push(b);
|
|
741
|
-
},
|
|
742
|
-
Jb: function (a) {
|
|
743
|
-
a.Xa && 0 < a.Xa.length && (E(Da(a.Xa, 0)), (a.Xa = []));
|
|
744
|
-
},
|
|
745
|
-
};
|
|
746
|
-
function Cb(a) {
|
|
747
|
-
a = 65536 * Math.ceil(a / 65536);
|
|
748
|
-
var b = Db(65536, a);
|
|
749
|
-
b ? v().fill(0, b, b + a) : (b = 0);
|
|
750
|
-
return b;
|
|
751
|
-
}
|
|
752
|
-
var Q = {
|
|
753
|
-
hb: null,
|
|
754
|
-
jb: function () {
|
|
755
|
-
return Q.createNode(null, "/", 16895, 0);
|
|
756
|
-
},
|
|
757
|
-
createNode: function (a, b, c, d) {
|
|
758
|
-
if (24576 === (c & 61440) || 4096 === (c & 61440)) throw new P(63);
|
|
759
|
-
Q.hb ||
|
|
760
|
-
(Q.hb = {
|
|
761
|
-
dir: {
|
|
762
|
-
node: {
|
|
763
|
-
gb: Q.Ra.gb,
|
|
764
|
-
ab: Q.Ra.ab,
|
|
765
|
-
zb: Q.Ra.zb,
|
|
766
|
-
Nb: Q.Ra.Nb,
|
|
767
|
-
xc: Q.Ra.xc,
|
|
768
|
-
Tb: Q.Ra.Tb,
|
|
769
|
-
yc: Q.Ra.yc,
|
|
770
|
-
wc: Q.Ra.wc,
|
|
771
|
-
Qb: Q.Ra.Qb,
|
|
772
|
-
},
|
|
773
|
-
stream: { qb: Q.Sa.qb },
|
|
774
|
-
},
|
|
775
|
-
file: {
|
|
776
|
-
node: { gb: Q.Ra.gb, ab: Q.Ra.ab },
|
|
777
|
-
stream: {
|
|
778
|
-
qb: Q.Sa.qb,
|
|
779
|
-
read: Q.Sa.read,
|
|
780
|
-
write: Q.Sa.write,
|
|
781
|
-
ec: Q.Sa.ec,
|
|
782
|
-
Ab: Q.Sa.Ab,
|
|
783
|
-
Ob: Q.Sa.Ob,
|
|
784
|
-
},
|
|
785
|
-
},
|
|
786
|
-
link: {
|
|
787
|
-
node: { gb: Q.Ra.gb, ab: Q.Ra.ab, Eb: Q.Ra.Eb },
|
|
788
|
-
stream: {},
|
|
789
|
-
},
|
|
790
|
-
jc: { node: { gb: Q.Ra.gb, ab: Q.Ra.ab }, stream: Eb },
|
|
791
|
-
});
|
|
792
|
-
c = Fb(a, b, c, d);
|
|
793
|
-
16384 === (c.mode & 61440)
|
|
794
|
-
? ((c.Ra = Q.hb.dir.node), (c.Sa = Q.hb.dir.stream), (c.Qa = {}))
|
|
795
|
-
: 32768 === (c.mode & 61440)
|
|
796
|
-
? ((c.Ra = Q.hb.file.node),
|
|
797
|
-
(c.Sa = Q.hb.file.stream),
|
|
798
|
-
(c.Va = 0),
|
|
799
|
-
(c.Qa = null))
|
|
800
|
-
: 40960 === (c.mode & 61440)
|
|
801
|
-
? ((c.Ra = Q.hb.link.node), (c.Sa = Q.hb.link.stream))
|
|
802
|
-
: 8192 === (c.mode & 61440) &&
|
|
803
|
-
((c.Ra = Q.hb.jc.node), (c.Sa = Q.hb.jc.stream));
|
|
804
|
-
c.timestamp = Date.now();
|
|
805
|
-
a && ((a.Qa[b] = c), (a.timestamp = c.timestamp));
|
|
806
|
-
return c;
|
|
807
|
-
},
|
|
808
|
-
Ed: function (a) {
|
|
809
|
-
return a.Qa
|
|
810
|
-
? a.Qa.subarray
|
|
811
|
-
? a.Qa.subarray(0, a.Va)
|
|
812
|
-
: new Uint8Array(a.Qa)
|
|
813
|
-
: new Uint8Array(0);
|
|
814
|
-
},
|
|
815
|
-
mc: function (a, b) {
|
|
816
|
-
var c = a.Qa ? a.Qa.length : 0;
|
|
817
|
-
c >= b ||
|
|
818
|
-
((b = Math.max(b, (c * (1048576 > c ? 2 : 1.125)) >>> 0)),
|
|
819
|
-
0 != c && (b = Math.max(b, 256)),
|
|
820
|
-
(c = a.Qa),
|
|
821
|
-
(a.Qa = new Uint8Array(b)),
|
|
822
|
-
0 < a.Va && a.Qa.set(c.subarray(0, a.Va), 0));
|
|
823
|
-
},
|
|
824
|
-
nd: function (a, b) {
|
|
825
|
-
if (a.Va != b)
|
|
826
|
-
if (0 == b) (a.Qa = null), (a.Va = 0);
|
|
827
|
-
else {
|
|
828
|
-
var c = a.Qa;
|
|
829
|
-
a.Qa = new Uint8Array(b);
|
|
830
|
-
c && a.Qa.set(c.subarray(0, Math.min(b, a.Va)));
|
|
831
|
-
a.Va = b;
|
|
832
|
-
}
|
|
833
|
-
},
|
|
834
|
-
Ra: {
|
|
835
|
-
gb: function (a) {
|
|
836
|
-
var b = {};
|
|
837
|
-
b.Pc = 8192 === (a.mode & 61440) ? a.id : 1;
|
|
838
|
-
b.Wb = a.id;
|
|
839
|
-
b.mode = a.mode;
|
|
840
|
-
b.hd = 1;
|
|
841
|
-
b.uid = 0;
|
|
842
|
-
b.Xc = 0;
|
|
843
|
-
b.Db = a.Db;
|
|
844
|
-
b.size =
|
|
845
|
-
16384 === (a.mode & 61440)
|
|
846
|
-
? 4096
|
|
847
|
-
: 32768 === (a.mode & 61440)
|
|
848
|
-
? a.Va
|
|
849
|
-
: 40960 === (a.mode & 61440)
|
|
850
|
-
? a.link.length
|
|
851
|
-
: 0;
|
|
852
|
-
b.Hc = new Date(a.timestamp);
|
|
853
|
-
b.gd = new Date(a.timestamp);
|
|
854
|
-
b.Mc = new Date(a.timestamp);
|
|
855
|
-
b.Ic = 4096;
|
|
856
|
-
b.Jc = Math.ceil(b.size / b.Ic);
|
|
857
|
-
return b;
|
|
858
|
-
},
|
|
859
|
-
ab: function (a, b) {
|
|
860
|
-
void 0 !== b.mode && (a.mode = b.mode);
|
|
861
|
-
void 0 !== b.timestamp && (a.timestamp = b.timestamp);
|
|
862
|
-
void 0 !== b.size && Q.nd(a, b.size);
|
|
863
|
-
},
|
|
864
|
-
zb: function () {
|
|
865
|
-
throw Gb[44];
|
|
866
|
-
},
|
|
867
|
-
Nb: function (a, b, c, d) {
|
|
868
|
-
return Q.createNode(a, b, c, d);
|
|
869
|
-
},
|
|
870
|
-
xc: function (a, b, c) {
|
|
871
|
-
if (16384 === (a.mode & 61440)) {
|
|
872
|
-
try {
|
|
873
|
-
var d = Hb(b, c);
|
|
874
|
-
} catch (f) {}
|
|
875
|
-
if (d) for (var e in d.Qa) throw new P(55);
|
|
876
|
-
}
|
|
877
|
-
delete a.parent.Qa[a.name];
|
|
878
|
-
a.parent.timestamp = Date.now();
|
|
879
|
-
a.name = c;
|
|
880
|
-
b.Qa[c] = a;
|
|
881
|
-
b.timestamp = a.parent.timestamp;
|
|
882
|
-
a.parent = b;
|
|
883
|
-
},
|
|
884
|
-
Tb: function (a, b) {
|
|
885
|
-
delete a.Qa[b];
|
|
886
|
-
a.timestamp = Date.now();
|
|
887
|
-
},
|
|
888
|
-
yc: function (a, b) {
|
|
889
|
-
var c = Hb(a, b),
|
|
890
|
-
d;
|
|
891
|
-
for (d in c.Qa) throw new P(55);
|
|
892
|
-
delete a.Qa[b];
|
|
893
|
-
a.timestamp = Date.now();
|
|
894
|
-
},
|
|
895
|
-
wc: function (a) {
|
|
896
|
-
var b = [".", ".."],
|
|
897
|
-
c;
|
|
898
|
-
for (c in a.Qa) a.Qa.hasOwnProperty(c) && b.push(c);
|
|
899
|
-
return b;
|
|
900
|
-
},
|
|
901
|
-
Qb: function (a, b, c) {
|
|
902
|
-
a = Q.createNode(a, b, 41471, 0);
|
|
903
|
-
a.link = c;
|
|
904
|
-
return a;
|
|
905
|
-
},
|
|
906
|
-
Eb: function (a) {
|
|
907
|
-
if (40960 !== (a.mode & 61440)) throw new P(28);
|
|
908
|
-
return a.link;
|
|
909
|
-
},
|
|
910
|
-
},
|
|
911
|
-
Sa: {
|
|
912
|
-
read: function (a, b, c, d, e) {
|
|
913
|
-
var f = a.node.Qa;
|
|
914
|
-
if (e >= a.node.Va) return 0;
|
|
915
|
-
a = Math.min(a.node.Va - e, d);
|
|
916
|
-
if (8 < a && f.subarray) b.set(f.subarray(e, e + a), c);
|
|
917
|
-
else for (d = 0; d < a; d++) b[c + d] = f[e + d];
|
|
918
|
-
return a;
|
|
919
|
-
},
|
|
920
|
-
write: function (a, b, c, d, e, f) {
|
|
921
|
-
b.buffer === g().buffer && (f = !1);
|
|
922
|
-
if (!d) return 0;
|
|
923
|
-
a = a.node;
|
|
924
|
-
a.timestamp = Date.now();
|
|
925
|
-
if (b.subarray && (!a.Qa || a.Qa.subarray)) {
|
|
926
|
-
if (f) return (a.Qa = b.subarray(c, c + d)), (a.Va = d);
|
|
927
|
-
if (0 === a.Va && 0 === e)
|
|
928
|
-
return (a.Qa = b.slice(c, c + d)), (a.Va = d);
|
|
929
|
-
if (e + d <= a.Va) return a.Qa.set(b.subarray(c, c + d), e), d;
|
|
930
|
-
}
|
|
931
|
-
Q.mc(a, e + d);
|
|
932
|
-
if (a.Qa.subarray && b.subarray) a.Qa.set(b.subarray(c, c + d), e);
|
|
933
|
-
else for (f = 0; f < d; f++) a.Qa[e + f] = b[c + f];
|
|
934
|
-
a.Va = Math.max(a.Va, e + d);
|
|
935
|
-
return d;
|
|
936
|
-
},
|
|
937
|
-
qb: function (a, b, c) {
|
|
938
|
-
1 === c
|
|
939
|
-
? (b += a.position)
|
|
940
|
-
: 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.Va);
|
|
941
|
-
if (0 > b) throw new P(28);
|
|
942
|
-
return b;
|
|
943
|
-
},
|
|
944
|
-
ec: function (a, b, c) {
|
|
945
|
-
Q.mc(a.node, b + c);
|
|
946
|
-
a.node.Va = Math.max(a.node.Va, b + c);
|
|
947
|
-
},
|
|
948
|
-
Ab: function (a, b, c, d, e) {
|
|
949
|
-
if (32768 !== (a.node.mode & 61440)) throw new P(43);
|
|
950
|
-
a = a.node.Qa;
|
|
951
|
-
if (e & 2 || a.buffer !== g().buffer) {
|
|
952
|
-
if (0 < c || c + b < a.length)
|
|
953
|
-
a = a.subarray
|
|
954
|
-
? a.subarray(c, c + b)
|
|
955
|
-
: Array.prototype.slice.call(a, c, c + b);
|
|
956
|
-
c = !0;
|
|
957
|
-
b = Cb(b);
|
|
958
|
-
if (!b) throw new P(48);
|
|
959
|
-
g().set(a, b);
|
|
960
|
-
} else (c = !1), (b = a.byteOffset);
|
|
961
|
-
return { Ua: b, hc: c };
|
|
962
|
-
},
|
|
963
|
-
Ob: function (a, b, c, d) {
|
|
964
|
-
Q.Sa.write(a, b, 0, d, c, !1);
|
|
965
|
-
return 0;
|
|
966
|
-
},
|
|
967
|
-
},
|
|
968
|
-
};
|
|
969
|
-
function Ib(a, b, c) {
|
|
970
|
-
var d = "al " + a;
|
|
971
|
-
ua(
|
|
972
|
-
a,
|
|
973
|
-
(e) => {
|
|
974
|
-
e || ya('Loading data file "' + a + '" failed (no arrayBuffer).');
|
|
975
|
-
b(new Uint8Array(e));
|
|
976
|
-
d && eb(d);
|
|
977
|
-
},
|
|
978
|
-
() => {
|
|
979
|
-
if (c) c();
|
|
980
|
-
else throw 'Loading data file "' + a + '" failed.';
|
|
981
|
-
},
|
|
982
|
-
);
|
|
983
|
-
d && db(d);
|
|
984
|
-
}
|
|
985
|
-
var Jb = null,
|
|
986
|
-
Kb = {},
|
|
987
|
-
Lb = [],
|
|
988
|
-
Mb = 1,
|
|
989
|
-
Nb = null,
|
|
990
|
-
Wa = !0,
|
|
991
|
-
P = null,
|
|
992
|
-
Gb = {},
|
|
993
|
-
Pb = (a, b = {}) => {
|
|
994
|
-
a = ub(a);
|
|
995
|
-
if (!a) return { path: "", node: null };
|
|
996
|
-
b = Object.assign({ oc: !0, ac: 0 }, b);
|
|
997
|
-
if (8 < b.ac) throw new P(32);
|
|
998
|
-
a = a.split("/").filter((h) => !!h);
|
|
999
|
-
for (var c = Jb, d = "/", e = 0; e < a.length; e++) {
|
|
1000
|
-
var f = e === a.length - 1;
|
|
1001
|
-
if (f && b.parent) break;
|
|
1002
|
-
c = Hb(c, a[e]);
|
|
1003
|
-
d = O(d + "/" + a[e]);
|
|
1004
|
-
c.Bb && (!f || (f && b.oc)) && (c = c.Bb.root);
|
|
1005
|
-
if (!f || b.Ib)
|
|
1006
|
-
for (f = 0; 40960 === (c.mode & 61440); )
|
|
1007
|
-
if (
|
|
1008
|
-
((c = Ob(d)),
|
|
1009
|
-
(d = ub(rb(d), c)),
|
|
1010
|
-
(c = Pb(d, { ac: b.ac + 1 }).node),
|
|
1011
|
-
40 < f++)
|
|
1012
|
-
)
|
|
1013
|
-
throw new P(32);
|
|
1014
|
-
}
|
|
1015
|
-
return { path: d, node: c };
|
|
1016
|
-
},
|
|
1017
|
-
Qb = (a) => {
|
|
1018
|
-
for (var b; ; ) {
|
|
1019
|
-
if (a === a.parent)
|
|
1020
|
-
return (
|
|
1021
|
-
(a = a.jb.sc),
|
|
1022
|
-
b ? ("/" !== a[a.length - 1] ? a + "/" + b : a + b) : a
|
|
1023
|
-
);
|
|
1024
|
-
b = b ? a.name + "/" + b : a.name;
|
|
1025
|
-
a = a.parent;
|
|
1026
|
-
}
|
|
1027
|
-
},
|
|
1028
|
-
Rb = (a, b) => {
|
|
1029
|
-
for (var c = 0, d = 0; d < b.length; d++)
|
|
1030
|
-
c = ((c << 5) - c + b.charCodeAt(d)) | 0;
|
|
1031
|
-
return ((a + c) >>> 0) % Nb.length;
|
|
1032
|
-
},
|
|
1033
|
-
Hb = (a, b) => {
|
|
1034
|
-
var c;
|
|
1035
|
-
if ((c = (c = Sb(a, "x")) ? c : a.Ra.zb ? 0 : 2)) throw new P(c, a);
|
|
1036
|
-
for (c = Nb[Rb(a.id, b)]; c; c = c.xb) {
|
|
1037
|
-
var d = c.name;
|
|
1038
|
-
if (c.parent.id === a.id && d === b) return c;
|
|
1039
|
-
}
|
|
1040
|
-
return a.Ra.zb(a, b);
|
|
1041
|
-
},
|
|
1042
|
-
Fb = (a, b, c, d) => {
|
|
1043
|
-
a = new Tb(a, b, c, d);
|
|
1044
|
-
b = Rb(a.parent.id, a.name);
|
|
1045
|
-
a.xb = Nb[b];
|
|
1046
|
-
return (Nb[b] = a);
|
|
1047
|
-
},
|
|
1048
|
-
Ub = { r: 0, "r+": 2, w: 577, "w+": 578, a: 1089, "a+": 1090 },
|
|
1049
|
-
Vb = (a) => {
|
|
1050
|
-
var b = ["r", "w", "rw"][a & 3];
|
|
1051
|
-
a & 512 && (b += "w");
|
|
1052
|
-
return b;
|
|
1053
|
-
},
|
|
1054
|
-
Sb = (a, b) => {
|
|
1055
|
-
if (Wa) return 0;
|
|
1056
|
-
if (!b.includes("r") || a.mode & 292) {
|
|
1057
|
-
if (
|
|
1058
|
-
(b.includes("w") && !(a.mode & 146)) ||
|
|
1059
|
-
(b.includes("x") && !(a.mode & 73))
|
|
1060
|
-
)
|
|
1061
|
-
return 2;
|
|
1062
|
-
} else return 2;
|
|
1063
|
-
return 0;
|
|
1064
|
-
},
|
|
1065
|
-
Wb = (a, b) => {
|
|
1066
|
-
try {
|
|
1067
|
-
return Hb(a, b), 20;
|
|
1068
|
-
} catch (c) {}
|
|
1069
|
-
return Sb(a, "wx");
|
|
1070
|
-
},
|
|
1071
|
-
Xb = () => {
|
|
1072
|
-
for (var a = 0; 4096 >= a; a++) if (!Lb[a]) return a;
|
|
1073
|
-
throw new P(33);
|
|
1074
|
-
},
|
|
1075
|
-
Zb = (a) => {
|
|
1076
|
-
Yb ||
|
|
1077
|
-
((Yb = function () {
|
|
1078
|
-
this.Pb = {};
|
|
1079
|
-
}),
|
|
1080
|
-
(Yb.prototype = {}),
|
|
1081
|
-
Object.defineProperties(Yb.prototype, {
|
|
1082
|
-
object: {
|
|
1083
|
-
get: function () {
|
|
1084
|
-
return this.node;
|
|
1085
|
-
},
|
|
1086
|
-
set: function (c) {
|
|
1087
|
-
this.node = c;
|
|
1088
|
-
},
|
|
1089
|
-
},
|
|
1090
|
-
flags: {
|
|
1091
|
-
get: function () {
|
|
1092
|
-
return this.Pb.flags;
|
|
1093
|
-
},
|
|
1094
|
-
set: function (c) {
|
|
1095
|
-
this.Pb.flags = c;
|
|
1096
|
-
},
|
|
1097
|
-
},
|
|
1098
|
-
position: {
|
|
1099
|
-
get: function () {
|
|
1100
|
-
return this.Pb.position;
|
|
1101
|
-
},
|
|
1102
|
-
set: function (c) {
|
|
1103
|
-
this.Pb.position = c;
|
|
1104
|
-
},
|
|
1105
|
-
},
|
|
1106
|
-
}));
|
|
1107
|
-
a = Object.assign(new Yb(), a);
|
|
1108
|
-
var b = Xb();
|
|
1109
|
-
a.pb = b;
|
|
1110
|
-
return (Lb[b] = a);
|
|
1111
|
-
},
|
|
1112
|
-
Eb = {
|
|
1113
|
-
open: (a) => {
|
|
1114
|
-
a.Sa = Kb[a.node.Db].Sa;
|
|
1115
|
-
a.Sa.open && a.Sa.open(a);
|
|
1116
|
-
},
|
|
1117
|
-
qb: () => {
|
|
1118
|
-
throw new P(70);
|
|
1119
|
-
},
|
|
1120
|
-
},
|
|
1121
|
-
yb = (a, b) => {
|
|
1122
|
-
Kb[a] = { Sa: b };
|
|
1123
|
-
},
|
|
1124
|
-
$b = (a, b) => {
|
|
1125
|
-
var c = "/" === b,
|
|
1126
|
-
d = !b;
|
|
1127
|
-
if (c && Jb) throw new P(10);
|
|
1128
|
-
if (!c && !d) {
|
|
1129
|
-
var e = Pb(b, { oc: !1 });
|
|
1130
|
-
b = e.path;
|
|
1131
|
-
e = e.node;
|
|
1132
|
-
if (e.Bb) throw new P(10);
|
|
1133
|
-
if (16384 !== (e.mode & 61440)) throw new P(54);
|
|
1134
|
-
}
|
|
1135
|
-
b = { type: a, Hd: {}, sc: b, fd: [] };
|
|
1136
|
-
a = a.jb(b);
|
|
1137
|
-
a.jb = b;
|
|
1138
|
-
b.root = a;
|
|
1139
|
-
c ? (Jb = a) : e && ((e.Bb = b), e.jb && e.jb.fd.push(b));
|
|
1140
|
-
},
|
|
1141
|
-
S = (a, b, c) => {
|
|
1142
|
-
var d = Pb(a, { parent: !0 }).node;
|
|
1143
|
-
a = sb(a);
|
|
1144
|
-
if (!a || "." === a || ".." === a) throw new P(28);
|
|
1145
|
-
var e = Wb(d, a);
|
|
1146
|
-
if (e) throw new P(e);
|
|
1147
|
-
if (!d.Ra.Nb) throw new P(63);
|
|
1148
|
-
return d.Ra.Nb(d, a, b, c);
|
|
1149
|
-
},
|
|
1150
|
-
ac = (a, b, c) => {
|
|
1151
|
-
"undefined" == typeof c && ((c = b), (b = 438));
|
|
1152
|
-
return S(a, b | 8192, c);
|
|
1153
|
-
},
|
|
1154
|
-
Ua = (a, b) => {
|
|
1155
|
-
if (!ub(a)) throw new P(44);
|
|
1156
|
-
var c = Pb(b, { parent: !0 }).node;
|
|
1157
|
-
if (!c) throw new P(44);
|
|
1158
|
-
b = sb(b);
|
|
1159
|
-
var d = Wb(c, b);
|
|
1160
|
-
if (d) throw new P(d);
|
|
1161
|
-
if (!c.Ra.Qb) throw new P(63);
|
|
1162
|
-
c.Ra.Qb(c, b, a);
|
|
1163
|
-
},
|
|
1164
|
-
bc = (a) => {
|
|
1165
|
-
var b = Pb(a, { parent: !0 }).node;
|
|
1166
|
-
if (!b) throw new P(44);
|
|
1167
|
-
var c = sb(a);
|
|
1168
|
-
a = Hb(b, c);
|
|
1169
|
-
a: {
|
|
1170
|
-
try {
|
|
1171
|
-
var d = Hb(b, c);
|
|
1172
|
-
} catch (f) {
|
|
1173
|
-
d = f.$a;
|
|
1174
|
-
break a;
|
|
1175
|
-
}
|
|
1176
|
-
var e = Sb(b, "wx");
|
|
1177
|
-
d = e ? e : 16384 === (d.mode & 61440) ? 31 : 0;
|
|
1178
|
-
}
|
|
1179
|
-
if (d) throw new P(d);
|
|
1180
|
-
if (!b.Ra.Tb) throw new P(63);
|
|
1181
|
-
if (a.Bb) throw new P(10);
|
|
1182
|
-
b.Ra.Tb(b, c);
|
|
1183
|
-
b = Rb(a.parent.id, a.name);
|
|
1184
|
-
if (Nb[b] === a) Nb[b] = a.xb;
|
|
1185
|
-
else
|
|
1186
|
-
for (b = Nb[b]; b; ) {
|
|
1187
|
-
if (b.xb === a) {
|
|
1188
|
-
b.xb = a.xb;
|
|
1189
|
-
break;
|
|
1190
|
-
}
|
|
1191
|
-
b = b.xb;
|
|
1192
|
-
}
|
|
1193
|
-
},
|
|
1194
|
-
Ob = (a) => {
|
|
1195
|
-
a = Pb(a).node;
|
|
1196
|
-
if (!a) throw new P(44);
|
|
1197
|
-
if (!a.Ra.Eb) throw new P(28);
|
|
1198
|
-
return ub(Qb(a.parent), a.Ra.Eb(a));
|
|
1199
|
-
},
|
|
1200
|
-
cc = (a, b) => {
|
|
1201
|
-
a = Pb(a, { Ib: !b }).node;
|
|
1202
|
-
if (!a) throw new P(44);
|
|
1203
|
-
if (!a.Ra.gb) throw new P(63);
|
|
1204
|
-
return a.Ra.gb(a);
|
|
1205
|
-
},
|
|
1206
|
-
dc = (a) => cc(a, !0),
|
|
1207
|
-
ec = (a, b) => {
|
|
1208
|
-
a = "string" == typeof a ? Pb(a, { Ib: !0 }).node : a;
|
|
1209
|
-
if (!a.Ra.ab) throw new P(63);
|
|
1210
|
-
a.Ra.ab(a, {
|
|
1211
|
-
mode: (b & 4095) | (a.mode & -4096),
|
|
1212
|
-
timestamp: Date.now(),
|
|
1213
|
-
});
|
|
1214
|
-
},
|
|
1215
|
-
Va = (a, b, c) => {
|
|
1216
|
-
if ("" === a) throw new P(44);
|
|
1217
|
-
if ("string" == typeof b) {
|
|
1218
|
-
var d = Ub[b];
|
|
1219
|
-
if ("undefined" == typeof d)
|
|
1220
|
-
throw Error("Unknown file open mode: " + b);
|
|
1221
|
-
b = d;
|
|
1222
|
-
}
|
|
1223
|
-
c = b & 64 ? (("undefined" == typeof c ? 438 : c) & 4095) | 32768 : 0;
|
|
1224
|
-
if ("object" == typeof a) var e = a;
|
|
1225
|
-
else {
|
|
1226
|
-
a = O(a);
|
|
1227
|
-
try {
|
|
1228
|
-
e = Pb(a, { Ib: !(b & 131072) }).node;
|
|
1229
|
-
} catch (f) {}
|
|
1230
|
-
}
|
|
1231
|
-
d = !1;
|
|
1232
|
-
if (b & 64)
|
|
1233
|
-
if (e) {
|
|
1234
|
-
if (b & 128) throw new P(20);
|
|
1235
|
-
} else (e = S(a, c, 0)), (d = !0);
|
|
1236
|
-
if (!e) throw new P(44);
|
|
1237
|
-
8192 === (e.mode & 61440) && (b &= -513);
|
|
1238
|
-
if (b & 65536 && 16384 !== (e.mode & 61440)) throw new P(54);
|
|
1239
|
-
if (
|
|
1240
|
-
!d &&
|
|
1241
|
-
(c = e
|
|
1242
|
-
? 40960 === (e.mode & 61440)
|
|
1243
|
-
? 32
|
|
1244
|
-
: 16384 === (e.mode & 61440) && ("r" !== Vb(b) || b & 512)
|
|
1245
|
-
? 31
|
|
1246
|
-
: Sb(e, Vb(b))
|
|
1247
|
-
: 44)
|
|
1248
|
-
)
|
|
1249
|
-
throw new P(c);
|
|
1250
|
-
if (b & 512 && !d) {
|
|
1251
|
-
c = e;
|
|
1252
|
-
c = "string" == typeof c ? Pb(c, { Ib: !0 }).node : c;
|
|
1253
|
-
if (!c.Ra.ab) throw new P(63);
|
|
1254
|
-
if (16384 === (c.mode & 61440)) throw new P(31);
|
|
1255
|
-
if (32768 !== (c.mode & 61440)) throw new P(28);
|
|
1256
|
-
if ((d = Sb(c, "w"))) throw new P(d);
|
|
1257
|
-
c.Ra.ab(c, { size: 0, timestamp: Date.now() });
|
|
1258
|
-
}
|
|
1259
|
-
b &= -131713;
|
|
1260
|
-
e = Zb({
|
|
1261
|
-
node: e,
|
|
1262
|
-
path: Qb(e),
|
|
1263
|
-
flags: b,
|
|
1264
|
-
seekable: !0,
|
|
1265
|
-
position: 0,
|
|
1266
|
-
Sa: e.Sa,
|
|
1267
|
-
Bd: [],
|
|
1268
|
-
error: !1,
|
|
1269
|
-
});
|
|
1270
|
-
e.Sa.open && e.Sa.open(e);
|
|
1271
|
-
!D.logReadFiles || b & 1 || (fc || (fc = {}), a in fc || (fc[a] = 1));
|
|
1272
|
-
return e;
|
|
1273
|
-
},
|
|
1274
|
-
gc = (a) => {
|
|
1275
|
-
if (null === a.pb) throw new P(8);
|
|
1276
|
-
a.Vb && (a.Vb = null);
|
|
1277
|
-
try {
|
|
1278
|
-
a.Sa.close && a.Sa.close(a);
|
|
1279
|
-
} catch (b) {
|
|
1280
|
-
throw b;
|
|
1281
|
-
} finally {
|
|
1282
|
-
Lb[a.pb] = null;
|
|
1283
|
-
}
|
|
1284
|
-
a.pb = null;
|
|
1285
|
-
},
|
|
1286
|
-
hc = (a, b, c) => {
|
|
1287
|
-
if (null === a.pb) throw new P(8);
|
|
1288
|
-
if (!a.seekable || !a.Sa.qb) throw new P(70);
|
|
1289
|
-
if (0 != c && 1 != c && 2 != c) throw new P(28);
|
|
1290
|
-
a.position = a.Sa.qb(a, b, c);
|
|
1291
|
-
a.Bd = [];
|
|
1292
|
-
},
|
|
1293
|
-
ic = (a, b, c, d, e, f) => {
|
|
1294
|
-
if (0 > d || 0 > e) throw new P(28);
|
|
1295
|
-
if (null === a.pb) throw new P(8);
|
|
1296
|
-
if (0 === (a.flags & 2097155)) throw new P(8);
|
|
1297
|
-
if (16384 === (a.node.mode & 61440)) throw new P(31);
|
|
1298
|
-
if (!a.Sa.write) throw new P(28);
|
|
1299
|
-
a.seekable && a.flags & 1024 && hc(a, 0, 2);
|
|
1300
|
-
var h = "undefined" != typeof e;
|
|
1301
|
-
if (!h) e = a.position;
|
|
1302
|
-
else if (!a.seekable) throw new P(70);
|
|
1303
|
-
b = a.Sa.write(a, b, c, d, e, f);
|
|
1304
|
-
h || (a.position += b);
|
|
1305
|
-
return b;
|
|
1306
|
-
},
|
|
1307
|
-
Sa = () => {
|
|
1308
|
-
P ||
|
|
1309
|
-
((P = function (a, b) {
|
|
1310
|
-
this.name = "ErrnoError";
|
|
1311
|
-
this.node = b;
|
|
1312
|
-
this.qd = function (c) {
|
|
1313
|
-
this.$a = c;
|
|
1314
|
-
};
|
|
1315
|
-
this.qd(a);
|
|
1316
|
-
this.message = "FS error";
|
|
1317
|
-
}),
|
|
1318
|
-
(P.prototype = Error()),
|
|
1319
|
-
(P.prototype.constructor = P),
|
|
1320
|
-
[44].forEach((a) => {
|
|
1321
|
-
Gb[a] = new P(a);
|
|
1322
|
-
Gb[a].stack = "<generic error, no stack>";
|
|
1323
|
-
}));
|
|
1324
|
-
},
|
|
1325
|
-
Ra,
|
|
1326
|
-
jc = (a, b) => {
|
|
1327
|
-
var c = 0;
|
|
1328
|
-
a && (c |= 365);
|
|
1329
|
-
b && (c |= 146);
|
|
1330
|
-
return c;
|
|
1331
|
-
},
|
|
1332
|
-
kc = (a, b) => {
|
|
1333
|
-
a = "string" == typeof a ? a : Qb(a);
|
|
1334
|
-
for (b = b.split("/").reverse(); b.length; ) {
|
|
1335
|
-
var c = b.pop();
|
|
1336
|
-
if (c) {
|
|
1337
|
-
var d = O(a + "/" + c);
|
|
1338
|
-
try {
|
|
1339
|
-
S(d, 16895, 0);
|
|
1340
|
-
} catch (e) {}
|
|
1341
|
-
a = d;
|
|
1342
|
-
}
|
|
1343
|
-
}
|
|
1344
|
-
return d;
|
|
1345
|
-
},
|
|
1346
|
-
lc = (a, b, c, d) => {
|
|
1347
|
-
a = O(("string" == typeof a ? a : Qb(a)) + "/" + b);
|
|
1348
|
-
c = jc(c, d);
|
|
1349
|
-
return S(a, ((void 0 !== c ? c : 438) & 4095) | 32768, 0);
|
|
1350
|
-
},
|
|
1351
|
-
mc = (a, b, c, d, e, f) => {
|
|
1352
|
-
var h = b;
|
|
1353
|
-
a &&
|
|
1354
|
-
((a = "string" == typeof a ? a : Qb(a)),
|
|
1355
|
-
(h = b ? O(a + "/" + b) : a));
|
|
1356
|
-
a = jc(d, e);
|
|
1357
|
-
h = S(h, ((void 0 !== a ? a : 438) & 4095) | 32768, 0);
|
|
1358
|
-
if (c) {
|
|
1359
|
-
if ("string" == typeof c) {
|
|
1360
|
-
b = Array(c.length);
|
|
1361
|
-
d = 0;
|
|
1362
|
-
for (e = c.length; d < e; ++d) b[d] = c.charCodeAt(d);
|
|
1363
|
-
c = b;
|
|
1364
|
-
}
|
|
1365
|
-
ec(h, a | 146);
|
|
1366
|
-
b = Va(h, 577);
|
|
1367
|
-
ic(b, c, 0, c.length, 0, f);
|
|
1368
|
-
gc(b);
|
|
1369
|
-
ec(h, a);
|
|
1370
|
-
}
|
|
1371
|
-
return h;
|
|
1372
|
-
},
|
|
1373
|
-
Ta = (a, b, c, d) => {
|
|
1374
|
-
a = O(("string" == typeof a ? a : Qb(a)) + "/" + b);
|
|
1375
|
-
b = jc(!!c, !!d);
|
|
1376
|
-
Ta.rc || (Ta.rc = 64);
|
|
1377
|
-
var e = (Ta.rc++ << 8) | 0;
|
|
1378
|
-
yb(e, {
|
|
1379
|
-
open: (f) => {
|
|
1380
|
-
f.seekable = !1;
|
|
1381
|
-
},
|
|
1382
|
-
close: () => {
|
|
1383
|
-
d && d.buffer && d.buffer.length && d(10);
|
|
1384
|
-
},
|
|
1385
|
-
read: (f, h, l, m) => {
|
|
1386
|
-
for (var n = 0, q = 0; q < m; q++) {
|
|
1387
|
-
try {
|
|
1388
|
-
var p = c();
|
|
1389
|
-
} catch (r) {
|
|
1390
|
-
throw new P(29);
|
|
1391
|
-
}
|
|
1392
|
-
if (void 0 === p && 0 === n) throw new P(6);
|
|
1393
|
-
if (null === p || void 0 === p) break;
|
|
1394
|
-
n++;
|
|
1395
|
-
h[l + q] = p;
|
|
1396
|
-
}
|
|
1397
|
-
n && (f.node.timestamp = Date.now());
|
|
1398
|
-
return n;
|
|
1399
|
-
},
|
|
1400
|
-
write: (f, h, l, m) => {
|
|
1401
|
-
for (var n = 0; n < m; n++)
|
|
1402
|
-
try {
|
|
1403
|
-
d(h[l + n]);
|
|
1404
|
-
} catch (q) {
|
|
1405
|
-
throw new P(29);
|
|
1406
|
-
}
|
|
1407
|
-
m && (f.node.timestamp = Date.now());
|
|
1408
|
-
return n;
|
|
1409
|
-
},
|
|
1410
|
-
});
|
|
1411
|
-
return ac(a, b, e);
|
|
1412
|
-
},
|
|
1413
|
-
nc = (a) => {
|
|
1414
|
-
if (!(a.bd || a.cd || a.link || a.Qa)) {
|
|
1415
|
-
if ("undefined" != typeof XMLHttpRequest)
|
|
1416
|
-
throw Error(
|
|
1417
|
-
"Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.",
|
|
1418
|
-
);
|
|
1419
|
-
if (ta)
|
|
1420
|
-
try {
|
|
1421
|
-
(a.Qa = vb(ta(a.url), !0)), (a.Va = a.Qa.length);
|
|
1422
|
-
} catch (b) {
|
|
1423
|
-
throw new P(29);
|
|
1424
|
-
}
|
|
1425
|
-
else throw Error("Cannot load without read() or XMLHttpRequest.");
|
|
1426
|
-
}
|
|
1427
|
-
},
|
|
1428
|
-
oc = (a, b, c, d, e) => {
|
|
1429
|
-
function f() {
|
|
1430
|
-
this.Yb = !1;
|
|
1431
|
-
this.Hb = [];
|
|
1432
|
-
}
|
|
1433
|
-
function h(p, r, k, t, x) {
|
|
1434
|
-
p = p.node.Qa;
|
|
1435
|
-
if (x >= p.length) return 0;
|
|
1436
|
-
t = Math.min(p.length - x, t);
|
|
1437
|
-
if (p.slice) for (var A = 0; A < t; A++) r[k + A] = p[x + A];
|
|
1438
|
-
else for (A = 0; A < t; A++) r[k + A] = p.get(x + A);
|
|
1439
|
-
return t;
|
|
1440
|
-
}
|
|
1441
|
-
f.prototype.get = function (p) {
|
|
1442
|
-
if (!(p > this.length - 1 || 0 > p)) {
|
|
1443
|
-
var r = p % this.kc;
|
|
1444
|
-
return this.Kb((p / this.kc) | 0)[r];
|
|
1445
|
-
}
|
|
1446
|
-
};
|
|
1447
|
-
f.prototype.pd = function (p) {
|
|
1448
|
-
this.Kb = p;
|
|
1449
|
-
};
|
|
1450
|
-
f.prototype.ic = function () {
|
|
1451
|
-
var p = new XMLHttpRequest();
|
|
1452
|
-
p.open("HEAD", c, !1);
|
|
1453
|
-
p.send(null);
|
|
1454
|
-
if (!((200 <= p.status && 300 > p.status) || 304 === p.status))
|
|
1455
|
-
throw Error("Couldn't load " + c + ". Status: " + p.status);
|
|
1456
|
-
var r = Number(p.getResponseHeader("Content-length")),
|
|
1457
|
-
k,
|
|
1458
|
-
t = (k = p.getResponseHeader("Accept-Ranges")) && "bytes" === k;
|
|
1459
|
-
p = (k = p.getResponseHeader("Content-Encoding")) && "gzip" === k;
|
|
1460
|
-
var x = 1048576;
|
|
1461
|
-
t || (x = r);
|
|
1462
|
-
var A = this;
|
|
1463
|
-
A.pd((G) => {
|
|
1464
|
-
var H = G * x,
|
|
1465
|
-
y = (G + 1) * x - 1;
|
|
1466
|
-
y = Math.min(y, r - 1);
|
|
1467
|
-
if ("undefined" == typeof A.Hb[G]) {
|
|
1468
|
-
var R = A.Hb;
|
|
1469
|
-
if (H > y)
|
|
1470
|
-
throw Error(
|
|
1471
|
-
"invalid range (" + H + ", " + y + ") or no bytes requested!",
|
|
1472
|
-
);
|
|
1473
|
-
if (y > r - 1)
|
|
1474
|
-
throw Error(
|
|
1475
|
-
"only " + r + " bytes available! programmer error!",
|
|
1476
|
-
);
|
|
1477
|
-
var C = new XMLHttpRequest();
|
|
1478
|
-
C.open("GET", c, !1);
|
|
1479
|
-
r !== x && C.setRequestHeader("Range", "bytes=" + H + "-" + y);
|
|
1480
|
-
C.responseType = "arraybuffer";
|
|
1481
|
-
C.overrideMimeType &&
|
|
1482
|
-
C.overrideMimeType("text/plain; charset=x-user-defined");
|
|
1483
|
-
C.send(null);
|
|
1484
|
-
if (!((200 <= C.status && 300 > C.status) || 304 === C.status))
|
|
1485
|
-
throw Error("Couldn't load " + c + ". Status: " + C.status);
|
|
1486
|
-
H =
|
|
1487
|
-
void 0 !== C.response
|
|
1488
|
-
? new Uint8Array(C.response || [])
|
|
1489
|
-
: vb(C.responseText || "", !0);
|
|
1490
|
-
R[G] = H;
|
|
1491
|
-
}
|
|
1492
|
-
if ("undefined" == typeof A.Hb[G]) throw Error("doXHR failed!");
|
|
1493
|
-
return A.Hb[G];
|
|
1494
|
-
});
|
|
1495
|
-
if (p || !r)
|
|
1496
|
-
(x = r = 1),
|
|
1497
|
-
(x = r = this.Kb(0).length),
|
|
1498
|
-
wa(
|
|
1499
|
-
"LazyFiles on gzip forces download of the whole file when length is accessed",
|
|
1500
|
-
);
|
|
1501
|
-
this.Ec = r;
|
|
1502
|
-
this.Dc = x;
|
|
1503
|
-
this.Yb = !0;
|
|
1504
|
-
};
|
|
1505
|
-
if ("undefined" != typeof XMLHttpRequest) {
|
|
1506
|
-
var l = new f();
|
|
1507
|
-
Object.defineProperties(l, {
|
|
1508
|
-
length: {
|
|
1509
|
-
get: function () {
|
|
1510
|
-
this.Yb || this.ic();
|
|
1511
|
-
return this.Ec;
|
|
1512
|
-
},
|
|
1513
|
-
},
|
|
1514
|
-
kc: {
|
|
1515
|
-
get: function () {
|
|
1516
|
-
this.Yb || this.ic();
|
|
1517
|
-
return this.Dc;
|
|
1518
|
-
},
|
|
1519
|
-
},
|
|
1520
|
-
});
|
|
1521
|
-
var m = void 0;
|
|
1522
|
-
} else (m = c), (l = void 0);
|
|
1523
|
-
var n = lc(a, b, d, e);
|
|
1524
|
-
l ? (n.Qa = l) : m && ((n.Qa = null), (n.url = m));
|
|
1525
|
-
Object.defineProperties(n, {
|
|
1526
|
-
Va: {
|
|
1527
|
-
get: function () {
|
|
1528
|
-
return this.Qa.length;
|
|
1529
|
-
},
|
|
1530
|
-
},
|
|
1531
|
-
});
|
|
1532
|
-
var q = {};
|
|
1533
|
-
Object.keys(n.Sa).forEach((p) => {
|
|
1534
|
-
var r = n.Sa[p];
|
|
1535
|
-
q[p] = function () {
|
|
1536
|
-
nc(n);
|
|
1537
|
-
return r.apply(null, arguments);
|
|
1538
|
-
};
|
|
1539
|
-
});
|
|
1540
|
-
q.read = (p, r, k, t, x) => {
|
|
1541
|
-
nc(n);
|
|
1542
|
-
return h(p, r, k, t, x);
|
|
1543
|
-
};
|
|
1544
|
-
q.Ab = (p, r, k) => {
|
|
1545
|
-
nc(n);
|
|
1546
|
-
var t = Cb(r);
|
|
1547
|
-
if (!t) throw new P(48);
|
|
1548
|
-
h(p, g(), t, r, k);
|
|
1549
|
-
return { Ua: t, hc: !0 };
|
|
1550
|
-
};
|
|
1551
|
-
n.Sa = q;
|
|
1552
|
-
return n;
|
|
1553
|
-
},
|
|
1554
|
-
qc = (a, b, c, d, e, f, h, l, m, n) => {
|
|
1555
|
-
function q(k) {
|
|
1556
|
-
function t(x) {
|
|
1557
|
-
n && n();
|
|
1558
|
-
l || mc(a, b, x, d, e, m);
|
|
1559
|
-
f && f();
|
|
1560
|
-
eb(r);
|
|
1561
|
-
}
|
|
1562
|
-
pc.Fd(k, p, t, () => {
|
|
1563
|
-
h && h();
|
|
1564
|
-
eb(r);
|
|
1565
|
-
}) || t(k);
|
|
1566
|
-
}
|
|
1567
|
-
var p = b ? ub(O(a + "/" + b)) : a,
|
|
1568
|
-
r = "cp " + p;
|
|
1569
|
-
db(r);
|
|
1570
|
-
"string" == typeof c ? Ib(c, (k) => q(k), h) : q(c);
|
|
1571
|
-
},
|
|
1572
|
-
T = {},
|
|
1573
|
-
Yb,
|
|
1574
|
-
fc;
|
|
1575
|
-
function rc(a, b, c) {
|
|
1576
|
-
if ("/" === b.charAt(0)) return b;
|
|
1577
|
-
a = -100 === a ? "/" : sc(a).path;
|
|
1578
|
-
if (0 == b.length) {
|
|
1579
|
-
if (!c) throw new P(44);
|
|
1580
|
-
return a;
|
|
1581
|
-
}
|
|
1582
|
-
return O(a + "/" + b);
|
|
1583
|
-
}
|
|
1584
|
-
function tc(a, b, c) {
|
|
1585
|
-
try {
|
|
1586
|
-
var d = a(b);
|
|
1587
|
-
} catch (f) {
|
|
1588
|
-
if (f && f.node && O(b) !== O(Qb(f.node))) return -54;
|
|
1589
|
-
throw f;
|
|
1590
|
-
}
|
|
1591
|
-
z()[c >> 2] = d.Pc;
|
|
1592
|
-
z()[(c + 8) >> 2] = d.Wb;
|
|
1593
|
-
z()[(c + 12) >> 2] = d.mode;
|
|
1594
|
-
B()[(c + 16) >> 2] = d.hd;
|
|
1595
|
-
z()[(c + 20) >> 2] = d.uid;
|
|
1596
|
-
z()[(c + 24) >> 2] = d.Xc;
|
|
1597
|
-
z()[(c + 28) >> 2] = d.Db;
|
|
1598
|
-
M = [
|
|
1599
|
-
d.size >>> 0,
|
|
1600
|
-
((L = d.size),
|
|
1601
|
-
1 <= +Math.abs(L)
|
|
1602
|
-
? 0 < L
|
|
1603
|
-
? (Math.min(+Math.floor(L / 4294967296), 4294967295) | 0) >>> 0
|
|
1604
|
-
: ~~+Math.ceil((L - +(~~L >>> 0)) / 4294967296) >>> 0
|
|
1605
|
-
: 0),
|
|
1606
|
-
];
|
|
1607
|
-
z()[(c + 40) >> 2] = M[0];
|
|
1608
|
-
z()[(c + 44) >> 2] = M[1];
|
|
1609
|
-
z()[(c + 48) >> 2] = 4096;
|
|
1610
|
-
z()[(c + 52) >> 2] = d.Jc;
|
|
1611
|
-
a = d.Hc.getTime();
|
|
1612
|
-
b = d.gd.getTime();
|
|
1613
|
-
var e = d.Mc.getTime();
|
|
1614
|
-
M = [
|
|
1615
|
-
Math.floor(a / 1e3) >>> 0,
|
|
1616
|
-
((L = Math.floor(a / 1e3)),
|
|
1617
|
-
1 <= +Math.abs(L)
|
|
1618
|
-
? 0 < L
|
|
1619
|
-
? (Math.min(+Math.floor(L / 4294967296), 4294967295) | 0) >>> 0
|
|
1620
|
-
: ~~+Math.ceil((L - +(~~L >>> 0)) / 4294967296) >>> 0
|
|
1621
|
-
: 0),
|
|
1622
|
-
];
|
|
1623
|
-
z()[(c + 56) >> 2] = M[0];
|
|
1624
|
-
z()[(c + 60) >> 2] = M[1];
|
|
1625
|
-
B()[(c + 64) >> 2] = (a % 1e3) * 1e3;
|
|
1626
|
-
M = [
|
|
1627
|
-
Math.floor(b / 1e3) >>> 0,
|
|
1628
|
-
((L = Math.floor(b / 1e3)),
|
|
1629
|
-
1 <= +Math.abs(L)
|
|
1630
|
-
? 0 < L
|
|
1631
|
-
? (Math.min(+Math.floor(L / 4294967296), 4294967295) | 0) >>> 0
|
|
1632
|
-
: ~~+Math.ceil((L - +(~~L >>> 0)) / 4294967296) >>> 0
|
|
1633
|
-
: 0),
|
|
1634
|
-
];
|
|
1635
|
-
z()[(c + 72) >> 2] = M[0];
|
|
1636
|
-
z()[(c + 76) >> 2] = M[1];
|
|
1637
|
-
B()[(c + 80) >> 2] = (b % 1e3) * 1e3;
|
|
1638
|
-
M = [
|
|
1639
|
-
Math.floor(e / 1e3) >>> 0,
|
|
1640
|
-
((L = Math.floor(e / 1e3)),
|
|
1641
|
-
1 <= +Math.abs(L)
|
|
1642
|
-
? 0 < L
|
|
1643
|
-
? (Math.min(+Math.floor(L / 4294967296), 4294967295) | 0) >>> 0
|
|
1644
|
-
: ~~+Math.ceil((L - +(~~L >>> 0)) / 4294967296) >>> 0
|
|
1645
|
-
: 0),
|
|
1646
|
-
];
|
|
1647
|
-
z()[(c + 88) >> 2] = M[0];
|
|
1648
|
-
z()[(c + 92) >> 2] = M[1];
|
|
1649
|
-
B()[(c + 96) >> 2] = (e % 1e3) * 1e3;
|
|
1650
|
-
M = [
|
|
1651
|
-
d.Wb >>> 0,
|
|
1652
|
-
((L = d.Wb),
|
|
1653
|
-
1 <= +Math.abs(L)
|
|
1654
|
-
? 0 < L
|
|
1655
|
-
? (Math.min(+Math.floor(L / 4294967296), 4294967295) | 0) >>> 0
|
|
1656
|
-
: ~~+Math.ceil((L - +(~~L >>> 0)) / 4294967296) >>> 0
|
|
1657
|
-
: 0),
|
|
1658
|
-
];
|
|
1659
|
-
z()[(c + 104) >> 2] = M[0];
|
|
1660
|
-
z()[(c + 108) >> 2] = M[1];
|
|
1661
|
-
return 0;
|
|
1662
|
-
}
|
|
1663
|
-
var uc = void 0;
|
|
1664
|
-
function sc(a) {
|
|
1665
|
-
a = Lb[a];
|
|
1666
|
-
if (!a) throw new P(8);
|
|
1667
|
-
return a;
|
|
1668
|
-
}
|
|
1669
|
-
function vc(a) {
|
|
1670
|
-
if (F) return U(1, 1, a);
|
|
1671
|
-
Ba = a;
|
|
1672
|
-
if (!Pa()) {
|
|
1673
|
-
N.Ac();
|
|
1674
|
-
if (D.onExit) D.onExit(a);
|
|
1675
|
-
Aa = !0;
|
|
1676
|
-
}
|
|
1677
|
-
qa(a, new mb(a));
|
|
1678
|
-
}
|
|
1679
|
-
function wc(a) {
|
|
1680
|
-
Ba = a;
|
|
1681
|
-
if (F) throw (xc(a), "unwind");
|
|
1682
|
-
if (!Pa() && !F) {
|
|
1683
|
-
yc();
|
|
1684
|
-
Za(La);
|
|
1685
|
-
Ra = !1;
|
|
1686
|
-
zc(0);
|
|
1687
|
-
for (var b = 0; b < Lb.length; b++) {
|
|
1688
|
-
var c = Lb[b];
|
|
1689
|
-
c && gc(c);
|
|
1690
|
-
}
|
|
1691
|
-
N.Ac();
|
|
1692
|
-
Na = !0;
|
|
1693
|
-
}
|
|
1694
|
-
vc(a);
|
|
1695
|
-
}
|
|
1696
|
-
function Ac(a) {
|
|
1697
|
-
a instanceof mb || "unwind" == a || qa(1, a);
|
|
1698
|
-
}
|
|
1699
|
-
var N = {
|
|
1700
|
-
nb: [],
|
|
1701
|
-
rb: [],
|
|
1702
|
-
Cc: [],
|
|
1703
|
-
lb: {},
|
|
1704
|
-
Zc: function () {
|
|
1705
|
-
F ? N.ad() : N.$c();
|
|
1706
|
-
},
|
|
1707
|
-
$c: function () {
|
|
1708
|
-
for (var a = navigator.hardwareConcurrency; a--; ) N.fc();
|
|
1709
|
-
},
|
|
1710
|
-
ad: function () {
|
|
1711
|
-
N.receiveObjectTransfer = N.md;
|
|
1712
|
-
N.threadInitTLS = N.Bc;
|
|
1713
|
-
N.setExitStatus = N.zc;
|
|
1714
|
-
noExitRuntime = !1;
|
|
1715
|
-
},
|
|
1716
|
-
zc: function (a) {
|
|
1717
|
-
Ba = a;
|
|
1718
|
-
},
|
|
1719
|
-
Jd: ["$terminateWorker"],
|
|
1720
|
-
Ac: function () {
|
|
1721
|
-
for (var a of N.rb) nb(a);
|
|
1722
|
-
for (a of N.nb) nb(a);
|
|
1723
|
-
N.nb = [];
|
|
1724
|
-
N.rb = [];
|
|
1725
|
-
N.lb = [];
|
|
1726
|
-
},
|
|
1727
|
-
od: function (a) {
|
|
1728
|
-
var b = a.kb;
|
|
1729
|
-
delete N.lb[b];
|
|
1730
|
-
N.nb.push(a);
|
|
1731
|
-
N.rb.splice(N.rb.indexOf(a), 1);
|
|
1732
|
-
a.kb = 0;
|
|
1733
|
-
Bc(b);
|
|
1734
|
-
},
|
|
1735
|
-
md: function () {},
|
|
1736
|
-
Bc: function () {
|
|
1737
|
-
N.Cc.forEach((a) => a());
|
|
1738
|
-
},
|
|
1739
|
-
qc: (a) =>
|
|
1740
|
-
new Promise((b) => {
|
|
1741
|
-
a.onmessage = (f) => {
|
|
1742
|
-
f = f.data;
|
|
1743
|
-
var h = f.cmd;
|
|
1744
|
-
a.kb && (N.Nc = a.kb);
|
|
1745
|
-
if (f.targetThread && f.targetThread != Cc()) {
|
|
1746
|
-
var l = N.lb[f.Id];
|
|
1747
|
-
l
|
|
1748
|
-
? l.postMessage(f, f.transferList)
|
|
1749
|
-
: E(
|
|
1750
|
-
'Internal error! Worker sent a message "' +
|
|
1751
|
-
h +
|
|
1752
|
-
'" to target pthread ' +
|
|
1753
|
-
f.targetThread +
|
|
1754
|
-
", but that thread no longer exists!",
|
|
1755
|
-
);
|
|
1756
|
-
} else if ("processProxyingQueue" === h) Dc(f.queue);
|
|
1757
|
-
else if ("spawnThread" === h) pb(f);
|
|
1758
|
-
else if ("cleanupThread" === h) ob(f.thread);
|
|
1759
|
-
else if ("killThread" === h)
|
|
1760
|
-
(f = f.thread),
|
|
1761
|
-
(h = N.lb[f]),
|
|
1762
|
-
delete N.lb[f],
|
|
1763
|
-
nb(h),
|
|
1764
|
-
Bc(f),
|
|
1765
|
-
N.rb.splice(N.rb.indexOf(h), 1),
|
|
1766
|
-
(h.kb = 0);
|
|
1767
|
-
else if ("cancelThread" === h)
|
|
1768
|
-
N.lb[f.thread].postMessage({ cmd: "cancel" });
|
|
1769
|
-
else if ("loaded" === h) (a.loaded = !0), b(a);
|
|
1770
|
-
else if ("print" === h) wa("Thread " + f.threadId + ": " + f.text);
|
|
1771
|
-
else if ("printErr" === h)
|
|
1772
|
-
E("Thread " + f.threadId + ": " + f.text);
|
|
1773
|
-
else if ("alert" === h)
|
|
1774
|
-
alert("Thread " + f.threadId + ": " + f.text);
|
|
1775
|
-
else if ("setimmediate" === f.target) a.postMessage(f);
|
|
1776
|
-
else if ("callHandler" === h) D[f.handler](...f.args);
|
|
1777
|
-
else h && E("worker sent an unknown command " + h);
|
|
1778
|
-
N.Nc = void 0;
|
|
1779
|
-
};
|
|
1780
|
-
a.onerror = (f) => {
|
|
1781
|
-
E(
|
|
1782
|
-
"worker sent an error! " +
|
|
1783
|
-
f.filename +
|
|
1784
|
-
":" +
|
|
1785
|
-
f.lineno +
|
|
1786
|
-
": " +
|
|
1787
|
-
f.message,
|
|
1788
|
-
);
|
|
1789
|
-
throw f;
|
|
1790
|
-
};
|
|
1791
|
-
var c = [],
|
|
1792
|
-
d = ["onExit", "onAbort", "print", "printErr"],
|
|
1793
|
-
e;
|
|
1794
|
-
for (e of d) D.hasOwnProperty(e) && c.push(e);
|
|
1795
|
-
a.postMessage({
|
|
1796
|
-
cmd: "load",
|
|
1797
|
-
handlers: c,
|
|
1798
|
-
urlOrBlob: D.mainScriptUrlOrBlob || _scriptDir,
|
|
1799
|
-
wasmMemory: u,
|
|
1800
|
-
wasmModule: za,
|
|
1801
|
-
});
|
|
1802
|
-
}),
|
|
1803
|
-
ed: function (a) {
|
|
1804
|
-
if (F) return a();
|
|
1805
|
-
Promise.all(N.nb.map(N.qc)).then(a);
|
|
1806
|
-
},
|
|
1807
|
-
fc: function () {
|
|
1808
|
-
var a = sa("capture-wasm.worker.js");
|
|
1809
|
-
a = new Worker(a);
|
|
1810
|
-
N.nb.push(a);
|
|
1811
|
-
},
|
|
1812
|
-
Tc: function () {
|
|
1813
|
-
0 == N.nb.length && (N.fc(), N.qc(N.nb[0]));
|
|
1814
|
-
return N.nb.pop();
|
|
1815
|
-
},
|
|
1816
|
-
};
|
|
1817
|
-
D.PThread = N;
|
|
1818
|
-
function Za(a) {
|
|
1819
|
-
for (; 0 < a.length; ) a.shift()(D);
|
|
1820
|
-
}
|
|
1821
|
-
D.establishStackSpace = function () {
|
|
1822
|
-
var a = Cc(),
|
|
1823
|
-
b = z()[(a + 52) >> 2];
|
|
1824
|
-
a = z()[(a + 56) >> 2];
|
|
1825
|
-
Ec(b, b - a);
|
|
1826
|
-
Fc(b);
|
|
1827
|
-
};
|
|
1828
|
-
function xc(a) {
|
|
1829
|
-
if (F) return U(2, 0, a);
|
|
1830
|
-
try {
|
|
1831
|
-
wc(a);
|
|
1832
|
-
} catch (b) {
|
|
1833
|
-
Ac(b);
|
|
1834
|
-
}
|
|
1835
|
-
}
|
|
1836
|
-
var Gc = [];
|
|
1837
|
-
function Hc(a) {
|
|
1838
|
-
var b = Gc[a];
|
|
1839
|
-
b || (a >= Gc.length && (Gc.length = a + 1), (Gc[a] = b = Ia.get(a)));
|
|
1840
|
-
return b;
|
|
1841
|
-
}
|
|
1842
|
-
D.invokeEntryPoint = function (a, b) {
|
|
1843
|
-
a = Hc(a)(b);
|
|
1844
|
-
Pa() ? N.zc(a) : Ic(a);
|
|
1845
|
-
};
|
|
1846
|
-
function Jc(a, b, c, d) {
|
|
1847
|
-
return F ? U(3, 1, a, b, c, d) : Kc(a, b, c, d);
|
|
1848
|
-
}
|
|
1849
|
-
function Kc(a, b, c, d) {
|
|
1850
|
-
if ("undefined" == typeof SharedArrayBuffer)
|
|
1851
|
-
return (
|
|
1852
|
-
E(
|
|
1853
|
-
"Current environment does not support SharedArrayBuffer, pthreads are not available!",
|
|
1854
|
-
),
|
|
1855
|
-
6
|
|
1856
|
-
);
|
|
1857
|
-
var e = [];
|
|
1858
|
-
if (F && 0 === e.length) return Jc(a, b, c, d);
|
|
1859
|
-
a = { vd: c, kb: a, Gc: d, Ad: e };
|
|
1860
|
-
return F ? ((a.Cd = "spawnThread"), postMessage(a, e), 0) : pb(a);
|
|
1861
|
-
}
|
|
1862
|
-
function Lc(a, b) {
|
|
1863
|
-
if (F) return U(4, 1, a, b);
|
|
1864
|
-
try {
|
|
1865
|
-
var c = sc(a);
|
|
1866
|
-
return tc(cc, c.path, b);
|
|
1867
|
-
} catch (d) {
|
|
1868
|
-
if ("undefined" == typeof T || "ErrnoError" !== d.name) throw d;
|
|
1869
|
-
return -d.$a;
|
|
1870
|
-
}
|
|
1871
|
-
}
|
|
1872
|
-
function Mc(a, b, c, d) {
|
|
1873
|
-
if (F) return U(6, 1, a, b, c, d);
|
|
1874
|
-
try {
|
|
1875
|
-
b = J(b);
|
|
1876
|
-
var e = d & 256;
|
|
1877
|
-
b = rc(a, b, d & 4096);
|
|
1878
|
-
return tc(e ? dc : cc, b, c);
|
|
1879
|
-
} catch (f) {
|
|
1880
|
-
if ("undefined" == typeof T || "ErrnoError" !== f.name) throw f;
|
|
1881
|
-
return -f.$a;
|
|
1882
|
-
}
|
|
1883
|
-
}
|
|
1884
|
-
function Nc(a, b, c, d) {
|
|
1885
|
-
if (F) return U(7, 1, a, b, c, d);
|
|
1886
|
-
uc = d;
|
|
1887
|
-
try {
|
|
1888
|
-
b = J(b);
|
|
1889
|
-
b = rc(a, b);
|
|
1890
|
-
if (d) {
|
|
1891
|
-
uc += 4;
|
|
1892
|
-
var e = z()[(uc - 4) >> 2];
|
|
1893
|
-
} else e = 0;
|
|
1894
|
-
return Va(b, c, e).pb;
|
|
1895
|
-
} catch (f) {
|
|
1896
|
-
if ("undefined" == typeof T || "ErrnoError" !== f.name) throw f;
|
|
1897
|
-
return -f.$a;
|
|
1898
|
-
}
|
|
1899
|
-
}
|
|
1900
|
-
function Oc(a, b) {
|
|
1901
|
-
if (F) return U(8, 1, a, b);
|
|
1902
|
-
try {
|
|
1903
|
-
return (a = J(a)), tc(cc, a, b);
|
|
1904
|
-
} catch (c) {
|
|
1905
|
-
if ("undefined" == typeof T || "ErrnoError" !== c.name) throw c;
|
|
1906
|
-
return -c.$a;
|
|
1907
|
-
}
|
|
1908
|
-
}
|
|
1909
|
-
var Pc = {};
|
|
1910
|
-
function Qc(a) {
|
|
1911
|
-
for (; a.length; ) {
|
|
1912
|
-
var b = a.pop();
|
|
1913
|
-
a.pop()(b);
|
|
1914
|
-
}
|
|
1915
|
-
}
|
|
1916
|
-
function Rc(a) {
|
|
1917
|
-
return this.fromWireType(z()[a >> 2]);
|
|
1918
|
-
}
|
|
1919
|
-
var Sc = {},
|
|
1920
|
-
Tc = {},
|
|
1921
|
-
Uc = {};
|
|
1922
|
-
function Vc(a) {
|
|
1923
|
-
if (void 0 === a) return "_unknown";
|
|
1924
|
-
a = a.replace(/[^a-zA-Z0-9_]/g, "$");
|
|
1925
|
-
var b = a.charCodeAt(0);
|
|
1926
|
-
return 48 <= b && 57 >= b ? "_" + a : a;
|
|
1927
|
-
}
|
|
1928
|
-
function Wc(a, b) {
|
|
1929
|
-
a = Vc(a);
|
|
1930
|
-
return {
|
|
1931
|
-
[a]: function () {
|
|
1932
|
-
return b.apply(this, arguments);
|
|
1933
|
-
},
|
|
1934
|
-
}[a];
|
|
1935
|
-
}
|
|
1936
|
-
function Xc(a) {
|
|
1937
|
-
var b = Error,
|
|
1938
|
-
c = Wc(a, function (d) {
|
|
1939
|
-
this.name = a;
|
|
1940
|
-
this.message = d;
|
|
1941
|
-
d = Error(d).stack;
|
|
1942
|
-
void 0 !== d &&
|
|
1943
|
-
(this.stack =
|
|
1944
|
-
this.toString() + "\n" + d.replace(/^Error(:[^\n]*)?\n/, ""));
|
|
1945
|
-
});
|
|
1946
|
-
c.prototype = Object.create(b.prototype);
|
|
1947
|
-
c.prototype.constructor = c;
|
|
1948
|
-
c.prototype.toString = function () {
|
|
1949
|
-
return void 0 === this.message
|
|
1950
|
-
? this.name
|
|
1951
|
-
: this.name + ": " + this.message;
|
|
1952
|
-
};
|
|
1953
|
-
return c;
|
|
1954
|
-
}
|
|
1955
|
-
var Yc = void 0;
|
|
1956
|
-
function Zc(a) {
|
|
1957
|
-
throw new Yc(a);
|
|
1958
|
-
}
|
|
1959
|
-
function $c(a, b, c) {
|
|
1960
|
-
function d(l) {
|
|
1961
|
-
l = c(l);
|
|
1962
|
-
l.length !== a.length && Zc("Mismatched type converter count");
|
|
1963
|
-
for (var m = 0; m < a.length; ++m) ad(a[m], l[m]);
|
|
1964
|
-
}
|
|
1965
|
-
a.forEach(function (l) {
|
|
1966
|
-
Uc[l] = b;
|
|
1967
|
-
});
|
|
1968
|
-
var e = Array(b.length),
|
|
1969
|
-
f = [],
|
|
1970
|
-
h = 0;
|
|
1971
|
-
b.forEach((l, m) => {
|
|
1972
|
-
Tc.hasOwnProperty(l)
|
|
1973
|
-
? (e[m] = Tc[l])
|
|
1974
|
-
: (f.push(l),
|
|
1975
|
-
Sc.hasOwnProperty(l) || (Sc[l] = []),
|
|
1976
|
-
Sc[l].push(() => {
|
|
1977
|
-
e[m] = Tc[l];
|
|
1978
|
-
++h;
|
|
1979
|
-
h === f.length && d(e);
|
|
1980
|
-
}));
|
|
1981
|
-
});
|
|
1982
|
-
0 === f.length && d(e);
|
|
1983
|
-
}
|
|
1984
|
-
function bd(a) {
|
|
1985
|
-
switch (a) {
|
|
1986
|
-
case 1:
|
|
1987
|
-
return 0;
|
|
1988
|
-
case 2:
|
|
1989
|
-
return 1;
|
|
1990
|
-
case 4:
|
|
1991
|
-
return 2;
|
|
1992
|
-
case 8:
|
|
1993
|
-
return 3;
|
|
1994
|
-
default:
|
|
1995
|
-
throw new TypeError("Unknown type size: " + a);
|
|
1996
|
-
}
|
|
1997
|
-
}
|
|
1998
|
-
var cd = void 0;
|
|
1999
|
-
function V(a) {
|
|
2000
|
-
for (var b = ""; v()[a]; ) b += cd[v()[a++]];
|
|
2001
|
-
return b;
|
|
2002
|
-
}
|
|
2003
|
-
var dd = void 0;
|
|
2004
|
-
function W(a) {
|
|
2005
|
-
throw new dd(a);
|
|
2006
|
-
}
|
|
2007
|
-
function ad(a, b, c = {}) {
|
|
2008
|
-
if (!("argPackAdvance" in b))
|
|
2009
|
-
throw new TypeError(
|
|
2010
|
-
"registerType registeredInstance requires argPackAdvance",
|
|
2011
|
-
);
|
|
2012
|
-
var d = b.name;
|
|
2013
|
-
a || W('type "' + d + '" must have a positive integer typeid pointer');
|
|
2014
|
-
if (Tc.hasOwnProperty(a)) {
|
|
2015
|
-
if (c.Yc) return;
|
|
2016
|
-
W("Cannot register type '" + d + "' twice");
|
|
2017
|
-
}
|
|
2018
|
-
Tc[a] = b;
|
|
2019
|
-
delete Uc[a];
|
|
2020
|
-
Sc.hasOwnProperty(a) &&
|
|
2021
|
-
((b = Sc[a]), delete Sc[a], b.forEach((e) => e()));
|
|
2022
|
-
}
|
|
2023
|
-
function ed(a) {
|
|
2024
|
-
W(a.Pa.Wa.Ta.name + " instance already deleted");
|
|
2025
|
-
}
|
|
2026
|
-
var fd = !1;
|
|
2027
|
-
function gd() {}
|
|
2028
|
-
function hd(a) {
|
|
2029
|
-
--a.count.value;
|
|
2030
|
-
0 === a.count.value && (a.Za ? a.cb.mb(a.Za) : a.Wa.Ta.mb(a.Ua));
|
|
2031
|
-
}
|
|
2032
|
-
function jd(a, b, c) {
|
|
2033
|
-
if (b === c) return a;
|
|
2034
|
-
if (void 0 === c.eb) return null;
|
|
2035
|
-
a = jd(a, b, c.eb);
|
|
2036
|
-
return null === a ? null : c.Qc(a);
|
|
2037
|
-
}
|
|
2038
|
-
var kd = {},
|
|
2039
|
-
ld = [];
|
|
2040
|
-
function md() {
|
|
2041
|
-
for (; ld.length; ) {
|
|
2042
|
-
var a = ld.pop();
|
|
2043
|
-
a.Pa.vb = !1;
|
|
2044
|
-
a["delete"]();
|
|
2045
|
-
}
|
|
2046
|
-
}
|
|
2047
|
-
var nd = void 0,
|
|
2048
|
-
od = {};
|
|
2049
|
-
function pd(a, b) {
|
|
2050
|
-
for (void 0 === b && W("ptr should not be undefined"); a.eb; )
|
|
2051
|
-
(b = a.Fb(b)), (a = a.eb);
|
|
2052
|
-
return od[b];
|
|
2053
|
-
}
|
|
2054
|
-
function qd(a, b) {
|
|
2055
|
-
(b.Wa && b.Ua) || Zc("makeClassHandle requires ptr and ptrType");
|
|
2056
|
-
!!b.cb !== !!b.Za &&
|
|
2057
|
-
Zc("Both smartPtrType and smartPtr must be specified");
|
|
2058
|
-
b.count = { value: 1 };
|
|
2059
|
-
return rd(Object.create(a, { Pa: { value: b } }));
|
|
2060
|
-
}
|
|
2061
|
-
function rd(a) {
|
|
2062
|
-
if ("undefined" === typeof FinalizationRegistry)
|
|
2063
|
-
return (rd = (b) => b), a;
|
|
2064
|
-
fd = new FinalizationRegistry((b) => {
|
|
2065
|
-
hd(b.Pa);
|
|
2066
|
-
});
|
|
2067
|
-
rd = (b) => {
|
|
2068
|
-
var c = b.Pa;
|
|
2069
|
-
c.Za && fd.register(b, { Pa: c }, b);
|
|
2070
|
-
return b;
|
|
2071
|
-
};
|
|
2072
|
-
gd = (b) => {
|
|
2073
|
-
fd.unregister(b);
|
|
2074
|
-
};
|
|
2075
|
-
return rd(a);
|
|
2076
|
-
}
|
|
2077
|
-
function sd() {}
|
|
2078
|
-
function td(a, b, c) {
|
|
2079
|
-
if (void 0 === a[b].Ya) {
|
|
2080
|
-
var d = a[b];
|
|
2081
|
-
a[b] = function () {
|
|
2082
|
-
a[b].Ya.hasOwnProperty(arguments.length) ||
|
|
2083
|
-
W(
|
|
2084
|
-
"Function '" +
|
|
2085
|
-
c +
|
|
2086
|
-
"' called with an invalid number of arguments (" +
|
|
2087
|
-
arguments.length +
|
|
2088
|
-
") - expects one of (" +
|
|
2089
|
-
a[b].Ya +
|
|
2090
|
-
")!",
|
|
2091
|
-
);
|
|
2092
|
-
return a[b].Ya[arguments.length].apply(this, arguments);
|
|
2093
|
-
};
|
|
2094
|
-
a[b].Ya = [];
|
|
2095
|
-
a[b].Ya[d.Gb] = d;
|
|
2096
|
-
}
|
|
2097
|
-
}
|
|
2098
|
-
function ud(a, b, c) {
|
|
2099
|
-
D.hasOwnProperty(a)
|
|
2100
|
-
? ((void 0 === c || (void 0 !== D[a].Ya && void 0 !== D[a].Ya[c])) &&
|
|
2101
|
-
W("Cannot register public name '" + a + "' twice"),
|
|
2102
|
-
td(D, a, a),
|
|
2103
|
-
D.hasOwnProperty(c) &&
|
|
2104
|
-
W(
|
|
2105
|
-
"Cannot register multiple overloads of a function with the same number of arguments (" +
|
|
2106
|
-
c +
|
|
2107
|
-
")!",
|
|
2108
|
-
),
|
|
2109
|
-
(D[a].Ya[c] = b))
|
|
2110
|
-
: ((D[a] = b), void 0 !== c && (D[a].Gd = c));
|
|
2111
|
-
}
|
|
2112
|
-
function vd(a, b, c, d, e, f, h, l) {
|
|
2113
|
-
this.name = a;
|
|
2114
|
-
this.constructor = b;
|
|
2115
|
-
this.wb = c;
|
|
2116
|
-
this.mb = d;
|
|
2117
|
-
this.eb = e;
|
|
2118
|
-
this.Sc = f;
|
|
2119
|
-
this.Fb = h;
|
|
2120
|
-
this.Qc = l;
|
|
2121
|
-
this.kd = [];
|
|
2122
|
-
}
|
|
2123
|
-
function wd(a, b, c) {
|
|
2124
|
-
for (; b !== c; )
|
|
2125
|
-
b.Fb ||
|
|
2126
|
-
W(
|
|
2127
|
-
"Expected null or instance of " +
|
|
2128
|
-
c.name +
|
|
2129
|
-
", got an instance of " +
|
|
2130
|
-
b.name,
|
|
2131
|
-
),
|
|
2132
|
-
(a = b.Fb(a)),
|
|
2133
|
-
(b = b.eb);
|
|
2134
|
-
return a;
|
|
2135
|
-
}
|
|
2136
|
-
function xd(a, b) {
|
|
2137
|
-
if (null === b)
|
|
2138
|
-
return this.Xb && W("null is not a valid " + this.name), 0;
|
|
2139
|
-
b.Pa || W('Cannot pass "' + yd(b) + '" as a ' + this.name);
|
|
2140
|
-
b.Pa.Ua ||
|
|
2141
|
-
W("Cannot pass deleted object as a pointer of type " + this.name);
|
|
2142
|
-
return wd(b.Pa.Ua, b.Pa.Wa.Ta, this.Ta);
|
|
2143
|
-
}
|
|
2144
|
-
function zd(a, b) {
|
|
2145
|
-
if (null === b) {
|
|
2146
|
-
this.Xb && W("null is not a valid " + this.name);
|
|
2147
|
-
if (this.Mb) {
|
|
2148
|
-
var c = this.$b();
|
|
2149
|
-
null !== a && a.push(this.mb, c);
|
|
2150
|
-
return c;
|
|
2151
|
-
}
|
|
2152
|
-
return 0;
|
|
2153
|
-
}
|
|
2154
|
-
b.Pa || W('Cannot pass "' + yd(b) + '" as a ' + this.name);
|
|
2155
|
-
b.Pa.Ua ||
|
|
2156
|
-
W("Cannot pass deleted object as a pointer of type " + this.name);
|
|
2157
|
-
!this.Lb &&
|
|
2158
|
-
b.Pa.Wa.Lb &&
|
|
2159
|
-
W(
|
|
2160
|
-
"Cannot convert argument of type " +
|
|
2161
|
-
(b.Pa.cb ? b.Pa.cb.name : b.Pa.Wa.name) +
|
|
2162
|
-
" to parameter type " +
|
|
2163
|
-
this.name,
|
|
2164
|
-
);
|
|
2165
|
-
c = wd(b.Pa.Ua, b.Pa.Wa.Ta, this.Ta);
|
|
2166
|
-
if (this.Mb)
|
|
2167
|
-
switch (
|
|
2168
|
-
(void 0 === b.Pa.Za &&
|
|
2169
|
-
W("Passing raw pointer to smart pointer is illegal"),
|
|
2170
|
-
this.ud)
|
|
2171
|
-
) {
|
|
2172
|
-
case 0:
|
|
2173
|
-
b.Pa.cb === this
|
|
2174
|
-
? (c = b.Pa.Za)
|
|
2175
|
-
: W(
|
|
2176
|
-
"Cannot convert argument of type " +
|
|
2177
|
-
(b.Pa.cb ? b.Pa.cb.name : b.Pa.Wa.name) +
|
|
2178
|
-
" to parameter type " +
|
|
2179
|
-
this.name,
|
|
2180
|
-
);
|
|
2181
|
-
break;
|
|
2182
|
-
case 1:
|
|
2183
|
-
c = b.Pa.Za;
|
|
2184
|
-
break;
|
|
2185
|
-
case 2:
|
|
2186
|
-
if (b.Pa.cb === this) c = b.Pa.Za;
|
|
2187
|
-
else {
|
|
2188
|
-
var d = b.clone();
|
|
2189
|
-
c = this.ld(
|
|
2190
|
-
c,
|
|
2191
|
-
Ad(function () {
|
|
2192
|
-
d["delete"]();
|
|
2193
|
-
}),
|
|
2194
|
-
);
|
|
2195
|
-
null !== a && a.push(this.mb, c);
|
|
2196
|
-
}
|
|
2197
|
-
break;
|
|
2198
|
-
default:
|
|
2199
|
-
W("Unsupporting sharing policy");
|
|
2200
|
-
}
|
|
2201
|
-
return c;
|
|
2202
|
-
}
|
|
2203
|
-
function Bd(a, b) {
|
|
2204
|
-
if (null === b)
|
|
2205
|
-
return this.Xb && W("null is not a valid " + this.name), 0;
|
|
2206
|
-
b.Pa || W('Cannot pass "' + yd(b) + '" as a ' + this.name);
|
|
2207
|
-
b.Pa.Ua ||
|
|
2208
|
-
W("Cannot pass deleted object as a pointer of type " + this.name);
|
|
2209
|
-
b.Pa.Wa.Lb &&
|
|
2210
|
-
W(
|
|
2211
|
-
"Cannot convert argument of type " +
|
|
2212
|
-
b.Pa.Wa.name +
|
|
2213
|
-
" to parameter type " +
|
|
2214
|
-
this.name,
|
|
2215
|
-
);
|
|
2216
|
-
return wd(b.Pa.Ua, b.Pa.Wa.Ta, this.Ta);
|
|
2217
|
-
}
|
|
2218
|
-
function Cd(a, b, c, d) {
|
|
2219
|
-
this.name = a;
|
|
2220
|
-
this.Ta = b;
|
|
2221
|
-
this.Xb = c;
|
|
2222
|
-
this.Lb = d;
|
|
2223
|
-
this.Mb = !1;
|
|
2224
|
-
this.mb = this.ld = this.$b = this.vc = this.ud = this.jd = void 0;
|
|
2225
|
-
void 0 !== b.eb
|
|
2226
|
-
? (this.toWireType = zd)
|
|
2227
|
-
: ((this.toWireType = d ? xd : Bd), (this.fb = null));
|
|
2228
|
-
}
|
|
2229
|
-
function Dd(a, b, c) {
|
|
2230
|
-
D.hasOwnProperty(a) || Zc("Replacing nonexistant public symbol");
|
|
2231
|
-
void 0 !== D[a].Ya && void 0 !== c
|
|
2232
|
-
? (D[a].Ya[c] = b)
|
|
2233
|
-
: ((D[a] = b), (D[a].Gb = c));
|
|
2234
|
-
}
|
|
2235
|
-
function Ed(a, b) {
|
|
2236
|
-
var c = [];
|
|
2237
|
-
return function () {
|
|
2238
|
-
c.length = 0;
|
|
2239
|
-
Object.assign(c, arguments);
|
|
2240
|
-
if (a.includes("j")) {
|
|
2241
|
-
var d = D["dynCall_" + a];
|
|
2242
|
-
d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
|
|
2243
|
-
} else d = Hc(b).apply(null, c);
|
|
2244
|
-
return d;
|
|
2245
|
-
};
|
|
2246
|
-
}
|
|
2247
|
-
function X(a, b) {
|
|
2248
|
-
a = V(a);
|
|
2249
|
-
var c = a.includes("j") ? Ed(a, b) : Hc(b);
|
|
2250
|
-
"function" != typeof c &&
|
|
2251
|
-
W("unknown function pointer with signature " + a + ": " + b);
|
|
2252
|
-
return c;
|
|
2253
|
-
}
|
|
2254
|
-
var Fd = void 0;
|
|
2255
|
-
function Gd(a) {
|
|
2256
|
-
a = Hd(a);
|
|
2257
|
-
var b = V(a);
|
|
2258
|
-
Id(a);
|
|
2259
|
-
return b;
|
|
2260
|
-
}
|
|
2261
|
-
function Jd(a, b) {
|
|
2262
|
-
function c(f) {
|
|
2263
|
-
e[f] || Tc[f] || (Uc[f] ? Uc[f].forEach(c) : (d.push(f), (e[f] = !0)));
|
|
2264
|
-
}
|
|
2265
|
-
var d = [],
|
|
2266
|
-
e = {};
|
|
2267
|
-
b.forEach(c);
|
|
2268
|
-
throw new Fd(a + ": " + d.map(Gd).join([", "]));
|
|
2269
|
-
}
|
|
2270
|
-
function Kd(a, b) {
|
|
2271
|
-
for (var c = [], d = 0; d < a; d++) c.push(B()[(b + 4 * d) >> 2]);
|
|
2272
|
-
return c;
|
|
2273
|
-
}
|
|
2274
|
-
function Ld(a, b, c, d, e) {
|
|
2275
|
-
var f = b.length;
|
|
2276
|
-
2 > f &&
|
|
2277
|
-
W(
|
|
2278
|
-
"argTypes array size mismatch! Must at least get return value and 'this' types!",
|
|
2279
|
-
);
|
|
2280
|
-
var h = null !== b[1] && null !== c,
|
|
2281
|
-
l = !1;
|
|
2282
|
-
for (c = 1; c < b.length; ++c)
|
|
2283
|
-
if (null !== b[c] && void 0 === b[c].fb) {
|
|
2284
|
-
l = !0;
|
|
2285
|
-
break;
|
|
2286
|
-
}
|
|
2287
|
-
var m = "void" !== b[0].name,
|
|
2288
|
-
n = f - 2,
|
|
2289
|
-
q = Array(n),
|
|
2290
|
-
p = [],
|
|
2291
|
-
r = [];
|
|
2292
|
-
return function () {
|
|
2293
|
-
arguments.length !== n &&
|
|
2294
|
-
W(
|
|
2295
|
-
"function " +
|
|
2296
|
-
a +
|
|
2297
|
-
" called with " +
|
|
2298
|
-
arguments.length +
|
|
2299
|
-
" arguments, expected " +
|
|
2300
|
-
n +
|
|
2301
|
-
" args!",
|
|
2302
|
-
);
|
|
2303
|
-
r.length = 0;
|
|
2304
|
-
p.length = h ? 2 : 1;
|
|
2305
|
-
p[0] = e;
|
|
2306
|
-
if (h) {
|
|
2307
|
-
var k = b[1].toWireType(r, this);
|
|
2308
|
-
p[1] = k;
|
|
2309
|
-
}
|
|
2310
|
-
for (var t = 0; t < n; ++t)
|
|
2311
|
-
(q[t] = b[t + 2].toWireType(r, arguments[t])), p.push(q[t]);
|
|
2312
|
-
t = d.apply(null, p);
|
|
2313
|
-
if (l) Qc(r);
|
|
2314
|
-
else
|
|
2315
|
-
for (var x = h ? 1 : 2; x < b.length; x++) {
|
|
2316
|
-
var A = 1 === x ? k : q[x - 2];
|
|
2317
|
-
null !== b[x].fb && b[x].fb(A);
|
|
2318
|
-
}
|
|
2319
|
-
k = m ? b[0].fromWireType(t) : void 0;
|
|
2320
|
-
return k;
|
|
2321
|
-
};
|
|
2322
|
-
}
|
|
2323
|
-
var Md = [],
|
|
2324
|
-
Y = [
|
|
2325
|
-
{},
|
|
2326
|
-
{ value: void 0 },
|
|
2327
|
-
{ value: null },
|
|
2328
|
-
{ value: !0 },
|
|
2329
|
-
{ value: !1 },
|
|
2330
|
-
];
|
|
2331
|
-
function Nd(a) {
|
|
2332
|
-
4 < a && 0 === --Y[a].bc && ((Y[a] = void 0), Md.push(a));
|
|
2333
|
-
}
|
|
2334
|
-
var Od = (a) => {
|
|
2335
|
-
a || W("Cannot use deleted val. handle = " + a);
|
|
2336
|
-
return Y[a].value;
|
|
2337
|
-
},
|
|
2338
|
-
Ad = (a) => {
|
|
2339
|
-
switch (a) {
|
|
2340
|
-
case void 0:
|
|
2341
|
-
return 1;
|
|
2342
|
-
case null:
|
|
2343
|
-
return 2;
|
|
2344
|
-
case !0:
|
|
2345
|
-
return 3;
|
|
2346
|
-
case !1:
|
|
2347
|
-
return 4;
|
|
2348
|
-
default:
|
|
2349
|
-
var b = Md.length ? Md.pop() : Y.length;
|
|
2350
|
-
Y[b] = { bc: 1, value: a };
|
|
2351
|
-
return b;
|
|
2352
|
-
}
|
|
2353
|
-
};
|
|
2354
|
-
function yd(a) {
|
|
2355
|
-
if (null === a) return "null";
|
|
2356
|
-
var b = typeof a;
|
|
2357
|
-
return "object" === b || "array" === b || "function" === b
|
|
2358
|
-
? a.toString()
|
|
2359
|
-
: "" + a;
|
|
2360
|
-
}
|
|
2361
|
-
function Pd(a, b) {
|
|
2362
|
-
switch (b) {
|
|
2363
|
-
case 2:
|
|
2364
|
-
return function (c) {
|
|
2365
|
-
var d = this.fromWireType;
|
|
2366
|
-
u.buffer != ba.buffer && ca();
|
|
2367
|
-
return d.call(this, Ga[c >> 2]);
|
|
2368
|
-
};
|
|
2369
|
-
case 3:
|
|
2370
|
-
return function (c) {
|
|
2371
|
-
return this.fromWireType(ka()[c >> 3]);
|
|
2372
|
-
};
|
|
2373
|
-
default:
|
|
2374
|
-
throw new TypeError("Unknown float type: " + a);
|
|
2375
|
-
}
|
|
2376
|
-
}
|
|
2377
|
-
function Qd(a, b, c) {
|
|
2378
|
-
switch (b) {
|
|
2379
|
-
case 0:
|
|
2380
|
-
return c
|
|
2381
|
-
? function (d) {
|
|
2382
|
-
return g()[d];
|
|
2383
|
-
}
|
|
2384
|
-
: function (d) {
|
|
2385
|
-
return v()[d];
|
|
2386
|
-
};
|
|
2387
|
-
case 1:
|
|
2388
|
-
return c
|
|
2389
|
-
? function (d) {
|
|
2390
|
-
return ea()[d >> 1];
|
|
2391
|
-
}
|
|
2392
|
-
: function (d) {
|
|
2393
|
-
return w()[d >> 1];
|
|
2394
|
-
};
|
|
2395
|
-
case 2:
|
|
2396
|
-
return c
|
|
2397
|
-
? function (d) {
|
|
2398
|
-
return z()[d >> 2];
|
|
2399
|
-
}
|
|
2400
|
-
: function (d) {
|
|
2401
|
-
return B()[d >> 2];
|
|
2402
|
-
};
|
|
2403
|
-
default:
|
|
2404
|
-
throw new TypeError("Unknown integer type: " + a);
|
|
2405
|
-
}
|
|
2406
|
-
}
|
|
2407
|
-
var Rd =
|
|
2408
|
-
"undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0;
|
|
2409
|
-
function Sd(a, b) {
|
|
2410
|
-
var c = a >> 1;
|
|
2411
|
-
for (var d = c + b / 2; !(c >= d) && w()[c]; ) ++c;
|
|
2412
|
-
c <<= 1;
|
|
2413
|
-
if (32 < c - a && Rd) return Rd.decode(v().slice(a, c));
|
|
2414
|
-
c = "";
|
|
2415
|
-
for (d = 0; !(d >= b / 2); ++d) {
|
|
2416
|
-
var e = ea()[(a + 2 * d) >> 1];
|
|
2417
|
-
if (0 == e) break;
|
|
2418
|
-
c += String.fromCharCode(e);
|
|
2419
|
-
}
|
|
2420
|
-
return c;
|
|
2421
|
-
}
|
|
2422
|
-
function Td(a, b, c) {
|
|
2423
|
-
void 0 === c && (c = 2147483647);
|
|
2424
|
-
if (2 > c) return 0;
|
|
2425
|
-
c -= 2;
|
|
2426
|
-
var d = b;
|
|
2427
|
-
c = c < 2 * a.length ? c / 2 : a.length;
|
|
2428
|
-
for (var e = 0; e < c; ++e) {
|
|
2429
|
-
var f = a.charCodeAt(e);
|
|
2430
|
-
ea()[b >> 1] = f;
|
|
2431
|
-
b += 2;
|
|
2432
|
-
}
|
|
2433
|
-
ea()[b >> 1] = 0;
|
|
2434
|
-
return b - d;
|
|
2435
|
-
}
|
|
2436
|
-
function Ud(a) {
|
|
2437
|
-
return 2 * a.length;
|
|
2438
|
-
}
|
|
2439
|
-
function Vd(a, b) {
|
|
2440
|
-
for (var c = 0, d = ""; !(c >= b / 4); ) {
|
|
2441
|
-
var e = z()[(a + 4 * c) >> 2];
|
|
2442
|
-
if (0 == e) break;
|
|
2443
|
-
++c;
|
|
2444
|
-
65536 <= e
|
|
2445
|
-
? ((e -= 65536),
|
|
2446
|
-
(d += String.fromCharCode(55296 | (e >> 10), 56320 | (e & 1023))))
|
|
2447
|
-
: (d += String.fromCharCode(e));
|
|
2448
|
-
}
|
|
2449
|
-
return d;
|
|
2450
|
-
}
|
|
2451
|
-
function Wd(a, b, c) {
|
|
2452
|
-
void 0 === c && (c = 2147483647);
|
|
2453
|
-
if (4 > c) return 0;
|
|
2454
|
-
var d = b;
|
|
2455
|
-
c = d + c - 4;
|
|
2456
|
-
for (var e = 0; e < a.length; ++e) {
|
|
2457
|
-
var f = a.charCodeAt(e);
|
|
2458
|
-
if (55296 <= f && 57343 >= f) {
|
|
2459
|
-
var h = a.charCodeAt(++e);
|
|
2460
|
-
f = (65536 + ((f & 1023) << 10)) | (h & 1023);
|
|
2461
|
-
}
|
|
2462
|
-
z()[b >> 2] = f;
|
|
2463
|
-
b += 4;
|
|
2464
|
-
if (b + 4 > c) break;
|
|
2465
|
-
}
|
|
2466
|
-
z()[b >> 2] = 0;
|
|
2467
|
-
return b - d;
|
|
2468
|
-
}
|
|
2469
|
-
function Xd(a) {
|
|
2470
|
-
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
2471
|
-
var d = a.charCodeAt(c);
|
|
2472
|
-
55296 <= d && 57343 >= d && ++c;
|
|
2473
|
-
b += 4;
|
|
2474
|
-
}
|
|
2475
|
-
return b;
|
|
2476
|
-
}
|
|
2477
|
-
function Dc(a) {
|
|
2478
|
-
Atomics.store(z(), a >> 2, 1);
|
|
2479
|
-
Cc() && Yd(a);
|
|
2480
|
-
Atomics.compareExchange(z(), a >> 2, 1, 0);
|
|
2481
|
-
}
|
|
2482
|
-
D.executeNotifiedProxyingQueue = Dc;
|
|
2483
|
-
function Zd(a, b) {
|
|
2484
|
-
var c = Tc[a];
|
|
2485
|
-
void 0 === c && W(b + " has unknown type " + Gd(a));
|
|
2486
|
-
return c;
|
|
2487
|
-
}
|
|
2488
|
-
var $d = {};
|
|
2489
|
-
function ae(a) {
|
|
2490
|
-
var b = $d[a];
|
|
2491
|
-
return void 0 === b ? V(a) : b;
|
|
2492
|
-
}
|
|
2493
|
-
var be = [];
|
|
2494
|
-
function ce() {
|
|
2495
|
-
function a(b) {
|
|
2496
|
-
b.$$$embind_global$$$ = b;
|
|
2497
|
-
var c =
|
|
2498
|
-
"object" == typeof $$$embind_global$$$ && b.$$$embind_global$$$ == b;
|
|
2499
|
-
c || delete b.$$$embind_global$$$;
|
|
2500
|
-
return c;
|
|
2501
|
-
}
|
|
2502
|
-
if ("object" == typeof globalThis) return globalThis;
|
|
2503
|
-
if ("object" == typeof $$$embind_global$$$) return $$$embind_global$$$;
|
|
2504
|
-
"object" == typeof global && a(global)
|
|
2505
|
-
? ($$$embind_global$$$ = global)
|
|
2506
|
-
: "object" == typeof self && a(self) && ($$$embind_global$$$ = self);
|
|
2507
|
-
if ("object" == typeof $$$embind_global$$$) return $$$embind_global$$$;
|
|
2508
|
-
throw Error("unable to get global object.");
|
|
2509
|
-
}
|
|
2510
|
-
function de(a) {
|
|
2511
|
-
var b = be.length;
|
|
2512
|
-
be.push(a);
|
|
2513
|
-
return b;
|
|
2514
|
-
}
|
|
2515
|
-
function ee(a, b) {
|
|
2516
|
-
for (var c = Array(a), d = 0; d < a; ++d)
|
|
2517
|
-
c[d] = Zd(B()[(b + 4 * d) >> 2], "parameter " + d);
|
|
2518
|
-
return c;
|
|
2519
|
-
}
|
|
2520
|
-
var fe = [];
|
|
2521
|
-
function ge(a) {
|
|
2522
|
-
var b = Array(a + 1);
|
|
2523
|
-
return function (c, d, e) {
|
|
2524
|
-
b[0] = c;
|
|
2525
|
-
for (var f = 0; f < a; ++f) {
|
|
2526
|
-
var h = Zd(B()[(d + 4 * f) >> 2], "parameter " + f);
|
|
2527
|
-
b[f + 1] = h.readValueFromPointer(e);
|
|
2528
|
-
e += h.argPackAdvance;
|
|
2529
|
-
}
|
|
2530
|
-
c = new (c.bind.apply(c, b))();
|
|
2531
|
-
return Ad(c);
|
|
2532
|
-
};
|
|
2533
|
-
}
|
|
2534
|
-
var he = {};
|
|
2535
|
-
function ie(a) {
|
|
2536
|
-
return 0 === a % 4 && (0 !== a % 100 || 0 === a % 400);
|
|
2537
|
-
}
|
|
2538
|
-
var je = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335],
|
|
2539
|
-
ke = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334];
|
|
2540
|
-
function le(a) {
|
|
2541
|
-
return (ie(a.getFullYear()) ? je : ke)[a.getMonth()] + a.getDate() - 1;
|
|
2542
|
-
}
|
|
2543
|
-
function me(a, b, c, d, e, f, h) {
|
|
2544
|
-
if (F) return U(9, 1, a, b, c, d, e, f, h);
|
|
2545
|
-
try {
|
|
2546
|
-
var l = sc(d);
|
|
2547
|
-
if (0 !== (b & 2) && 0 === (c & 2) && 2 !== (l.flags & 2097155))
|
|
2548
|
-
throw new P(2);
|
|
2549
|
-
if (1 === (l.flags & 2097155)) throw new P(2);
|
|
2550
|
-
if (!l.Sa.Ab) throw new P(43);
|
|
2551
|
-
var m = l.Sa.Ab(l, a, e, b, c);
|
|
2552
|
-
var n = m.Ua;
|
|
2553
|
-
z()[f >> 2] = m.hc;
|
|
2554
|
-
B()[h >> 2] = n;
|
|
2555
|
-
return 0;
|
|
2556
|
-
} catch (q) {
|
|
2557
|
-
if ("undefined" == typeof T || "ErrnoError" !== q.name) throw q;
|
|
2558
|
-
return -q.$a;
|
|
2559
|
-
}
|
|
2560
|
-
}
|
|
2561
|
-
function ne(a, b, c, d, e, f) {
|
|
2562
|
-
if (F) return U(10, 1, a, b, c, d, e, f);
|
|
2563
|
-
try {
|
|
2564
|
-
var h = sc(e);
|
|
2565
|
-
if (c & 2) {
|
|
2566
|
-
if (32768 !== (h.node.mode & 61440)) throw new P(43);
|
|
2567
|
-
if (!(d & 2)) {
|
|
2568
|
-
var l = v().slice(a, a + b);
|
|
2569
|
-
h.Sa.Ob && h.Sa.Ob(h, l, f, b, d);
|
|
2570
|
-
}
|
|
2571
|
-
}
|
|
2572
|
-
} catch (m) {
|
|
2573
|
-
if ("undefined" == typeof T || "ErrnoError" !== m.name) throw m;
|
|
2574
|
-
return -m.$a;
|
|
2575
|
-
}
|
|
2576
|
-
}
|
|
2577
|
-
function oe(a) {
|
|
2578
|
-
var b = Fa(a) + 1,
|
|
2579
|
-
c = pe(b);
|
|
2580
|
-
c && Ea(a, g(), c, b);
|
|
2581
|
-
return c;
|
|
2582
|
-
}
|
|
2583
|
-
var qe = [];
|
|
2584
|
-
function re(a) {
|
|
2585
|
-
var b = se();
|
|
2586
|
-
a = a();
|
|
2587
|
-
Fc(b);
|
|
2588
|
-
return a;
|
|
2589
|
-
}
|
|
2590
|
-
function U(a, b) {
|
|
2591
|
-
var c = arguments.length - 2,
|
|
2592
|
-
d = arguments;
|
|
2593
|
-
return re(() => {
|
|
2594
|
-
for (var e = te(8 * c), f = e >> 3, h = 0; h < c; h++) {
|
|
2595
|
-
var l = d[2 + h];
|
|
2596
|
-
ka()[f + h] = l;
|
|
2597
|
-
}
|
|
2598
|
-
return ue(a, c, e, b);
|
|
2599
|
-
});
|
|
2600
|
-
}
|
|
2601
|
-
var ve = [],
|
|
2602
|
-
we = {};
|
|
2603
|
-
function Z(a, b) {
|
|
2604
|
-
B()[a >> 2] = b;
|
|
2605
|
-
B()[(a + 4) >> 2] = (b / 4294967296) | 0;
|
|
2606
|
-
}
|
|
2607
|
-
function xe(a, b) {
|
|
2608
|
-
try {
|
|
2609
|
-
var c = indexedDB.open("emscripten_filesystem", 1);
|
|
2610
|
-
} catch (d) {
|
|
2611
|
-
b(d);
|
|
2612
|
-
return;
|
|
2613
|
-
}
|
|
2614
|
-
c.onupgradeneeded = (d) => {
|
|
2615
|
-
d = d.target.result;
|
|
2616
|
-
d.objectStoreNames.contains("FILES") && d.deleteObjectStore("FILES");
|
|
2617
|
-
d.createObjectStore("FILES");
|
|
2618
|
-
};
|
|
2619
|
-
c.onsuccess = (d) => a(d.target.result);
|
|
2620
|
-
c.onerror = (d) => b(d);
|
|
2621
|
-
}
|
|
2622
|
-
var ye;
|
|
2623
|
-
function ze(a, b, c, d, e) {
|
|
2624
|
-
function f() {
|
|
2625
|
-
var C = 0,
|
|
2626
|
-
aa = 0;
|
|
2627
|
-
y.response &&
|
|
2628
|
-
G &&
|
|
2629
|
-
0 === B()[(a + 12) >> 2] &&
|
|
2630
|
-
(aa = y.response.byteLength);
|
|
2631
|
-
0 < aa && ((C = pe(aa)), v().set(new Uint8Array(y.response), C));
|
|
2632
|
-
B()[(a + 12) >> 2] = C;
|
|
2633
|
-
Z(a + 16, aa);
|
|
2634
|
-
Z(a + 24, 0);
|
|
2635
|
-
(C = y.response ? y.response.byteLength : 0) && Z(a + 32, C);
|
|
2636
|
-
w()[(a + 40) >> 1] = y.readyState;
|
|
2637
|
-
w()[(a + 42) >> 1] = y.status;
|
|
2638
|
-
y.statusText && K(y.statusText, a + 44, 64);
|
|
2639
|
-
}
|
|
2640
|
-
var h = B()[(a + 8) >> 2];
|
|
2641
|
-
if (h) {
|
|
2642
|
-
var l = J(h),
|
|
2643
|
-
m = a + 112,
|
|
2644
|
-
n = J(m);
|
|
2645
|
-
n || (n = "GET");
|
|
2646
|
-
B();
|
|
2647
|
-
var q = B()[(m + 52) >> 2],
|
|
2648
|
-
p = B()[(m + 56) >> 2],
|
|
2649
|
-
r = !!B()[(m + 60) >> 2];
|
|
2650
|
-
B();
|
|
2651
|
-
var k = B()[(m + 68) >> 2],
|
|
2652
|
-
t = B()[(m + 72) >> 2];
|
|
2653
|
-
h = B()[(m + 76) >> 2];
|
|
2654
|
-
var x = B()[(m + 80) >> 2],
|
|
2655
|
-
A = B()[(m + 84) >> 2];
|
|
2656
|
-
m = B()[(m + 88) >> 2];
|
|
2657
|
-
var G = !!(q & 1),
|
|
2658
|
-
H = !!(q & 2);
|
|
2659
|
-
q = !!(q & 64);
|
|
2660
|
-
k = k ? J(k) : void 0;
|
|
2661
|
-
t = t ? J(t) : void 0;
|
|
2662
|
-
var y = new XMLHttpRequest();
|
|
2663
|
-
y.withCredentials = r;
|
|
2664
|
-
y.open(n, l, !q, k, t);
|
|
2665
|
-
q || (y.timeout = p);
|
|
2666
|
-
y.Ld = l;
|
|
2667
|
-
y.responseType = "arraybuffer";
|
|
2668
|
-
x && ((l = J(x)), y.overrideMimeType(l));
|
|
2669
|
-
if (h)
|
|
2670
|
-
for (;;) {
|
|
2671
|
-
n = B()[h >> 2];
|
|
2672
|
-
if (!n) break;
|
|
2673
|
-
l = B()[(h + 4) >> 2];
|
|
2674
|
-
if (!l) break;
|
|
2675
|
-
h += 8;
|
|
2676
|
-
n = J(n);
|
|
2677
|
-
l = J(l);
|
|
2678
|
-
y.setRequestHeader(n, l);
|
|
2679
|
-
}
|
|
2680
|
-
var R = B()[(a + 0) >> 2];
|
|
2681
|
-
we[R] = y;
|
|
2682
|
-
h = A && m ? v().slice(A, A + m) : null;
|
|
2683
|
-
y.onload = (C) => {
|
|
2684
|
-
R in we &&
|
|
2685
|
-
(f(),
|
|
2686
|
-
200 <= y.status && 300 > y.status
|
|
2687
|
-
? b && b(a, y, C)
|
|
2688
|
-
: c && c(a, y, C));
|
|
2689
|
-
};
|
|
2690
|
-
y.onerror = (C) => {
|
|
2691
|
-
R in we && (f(), c && c(a, y, C));
|
|
2692
|
-
};
|
|
2693
|
-
y.ontimeout = (C) => {
|
|
2694
|
-
R in we && c && c(a, y, C);
|
|
2695
|
-
};
|
|
2696
|
-
y.onprogress = (C) => {
|
|
2697
|
-
if (R in we) {
|
|
2698
|
-
var aa = G && H && y.response ? y.response.byteLength : 0,
|
|
2699
|
-
I = 0;
|
|
2700
|
-
0 < aa &&
|
|
2701
|
-
G &&
|
|
2702
|
-
H &&
|
|
2703
|
-
((I = pe(aa)), v().set(new Uint8Array(y.response), I));
|
|
2704
|
-
B()[(a + 12) >> 2] = I;
|
|
2705
|
-
Z(a + 16, aa);
|
|
2706
|
-
Z(a + 24, C.loaded - aa);
|
|
2707
|
-
Z(a + 32, C.total);
|
|
2708
|
-
w()[(a + 40) >> 1] = y.readyState;
|
|
2709
|
-
3 <= y.readyState &&
|
|
2710
|
-
0 === y.status &&
|
|
2711
|
-
0 < C.loaded &&
|
|
2712
|
-
(y.status = 200);
|
|
2713
|
-
w()[(a + 42) >> 1] = y.status;
|
|
2714
|
-
y.statusText && K(y.statusText, a + 44, 64);
|
|
2715
|
-
d && d(a, y, C);
|
|
2716
|
-
I && Id(I);
|
|
2717
|
-
}
|
|
2718
|
-
};
|
|
2719
|
-
y.onreadystatechange = (C) => {
|
|
2720
|
-
R in we
|
|
2721
|
-
? ((w()[(a + 40) >> 1] = y.readyState),
|
|
2722
|
-
2 <= y.readyState && (w()[(a + 42) >> 1] = y.status),
|
|
2723
|
-
e && e(a, y, C))
|
|
2724
|
-
: --Oa;
|
|
2725
|
-
};
|
|
2726
|
-
try {
|
|
2727
|
-
y.send(h);
|
|
2728
|
-
} catch (C) {
|
|
2729
|
-
c && c(a, y, C);
|
|
2730
|
-
}
|
|
2731
|
-
} else c(a, 0, "no url specified!");
|
|
2732
|
-
}
|
|
2733
|
-
function Ae(a, b, c, d) {
|
|
2734
|
-
var e = ye;
|
|
2735
|
-
if (e) {
|
|
2736
|
-
var f = a + 112;
|
|
2737
|
-
(f = B()[(f + 64) >> 2]) || (f = B()[(a + 8) >> 2]);
|
|
2738
|
-
var h = J(f);
|
|
2739
|
-
try {
|
|
2740
|
-
var l = e
|
|
2741
|
-
.transaction(["FILES"], "readwrite")
|
|
2742
|
-
.objectStore("FILES")
|
|
2743
|
-
.put(b, h);
|
|
2744
|
-
l.onsuccess = () => {
|
|
2745
|
-
w()[(a + 40) >> 1] = 4;
|
|
2746
|
-
w()[(a + 42) >> 1] = 200;
|
|
2747
|
-
K("OK", a + 44, 64);
|
|
2748
|
-
c(a, 0, h);
|
|
2749
|
-
};
|
|
2750
|
-
l.onerror = (m) => {
|
|
2751
|
-
w()[(a + 40) >> 1] = 4;
|
|
2752
|
-
w()[(a + 42) >> 1] = 413;
|
|
2753
|
-
K("Payload Too Large", a + 44, 64);
|
|
2754
|
-
d(a, 0, m);
|
|
2755
|
-
};
|
|
2756
|
-
} catch (m) {
|
|
2757
|
-
d(a, 0, m);
|
|
2758
|
-
}
|
|
2759
|
-
} else d(a, 0, "IndexedDB not available!");
|
|
2760
|
-
}
|
|
2761
|
-
function Be(a, b, c) {
|
|
2762
|
-
var d = ye;
|
|
2763
|
-
if (d) {
|
|
2764
|
-
var e = a + 112;
|
|
2765
|
-
(e = B()[(e + 64) >> 2]) || (e = B()[(a + 8) >> 2]);
|
|
2766
|
-
e = J(e);
|
|
2767
|
-
try {
|
|
2768
|
-
var f = d
|
|
2769
|
-
.transaction(["FILES"], "readonly")
|
|
2770
|
-
.objectStore("FILES")
|
|
2771
|
-
.get(e);
|
|
2772
|
-
f.onsuccess = (h) => {
|
|
2773
|
-
if (h.target.result) {
|
|
2774
|
-
h = h.target.result;
|
|
2775
|
-
var l = h.byteLength || h.length,
|
|
2776
|
-
m = pe(l);
|
|
2777
|
-
v().set(new Uint8Array(h), m);
|
|
2778
|
-
B()[(a + 12) >> 2] = m;
|
|
2779
|
-
Z(a + 16, l);
|
|
2780
|
-
Z(a + 24, 0);
|
|
2781
|
-
Z(a + 32, l);
|
|
2782
|
-
w()[(a + 40) >> 1] = 4;
|
|
2783
|
-
w()[(a + 42) >> 1] = 200;
|
|
2784
|
-
K("OK", a + 44, 64);
|
|
2785
|
-
b(a, 0, h);
|
|
2786
|
-
} else
|
|
2787
|
-
(w()[(a + 40) >> 1] = 4),
|
|
2788
|
-
(w()[(a + 42) >> 1] = 404),
|
|
2789
|
-
K("Not Found", a + 44, 64),
|
|
2790
|
-
c(a, 0, "no data");
|
|
2791
|
-
};
|
|
2792
|
-
f.onerror = (h) => {
|
|
2793
|
-
w()[(a + 40) >> 1] = 4;
|
|
2794
|
-
w()[(a + 42) >> 1] = 404;
|
|
2795
|
-
K("Not Found", a + 44, 64);
|
|
2796
|
-
c(a, 0, h);
|
|
2797
|
-
};
|
|
2798
|
-
} catch (h) {
|
|
2799
|
-
c(a, 0, h);
|
|
2800
|
-
}
|
|
2801
|
-
} else c(a, 0, "IndexedDB not available!");
|
|
2802
|
-
}
|
|
2803
|
-
function Ce(a, b, c) {
|
|
2804
|
-
var d = ye;
|
|
2805
|
-
if (d) {
|
|
2806
|
-
var e = a + 112;
|
|
2807
|
-
(e = B()[(e + 64) >> 2]) || (e = B()[(a + 8) >> 2]);
|
|
2808
|
-
e = J(e);
|
|
2809
|
-
try {
|
|
2810
|
-
var f = d
|
|
2811
|
-
.transaction(["FILES"], "readwrite")
|
|
2812
|
-
.objectStore("FILES")
|
|
2813
|
-
.delete(e);
|
|
2814
|
-
f.onsuccess = (h) => {
|
|
2815
|
-
h = h.target.result;
|
|
2816
|
-
B()[(a + 12) >> 2] = 0;
|
|
2817
|
-
Z(a + 16, 0);
|
|
2818
|
-
Z(a + 24, 0);
|
|
2819
|
-
Z(a + 32, 0);
|
|
2820
|
-
w()[(a + 40) >> 1] = 4;
|
|
2821
|
-
w()[(a + 42) >> 1] = 200;
|
|
2822
|
-
K("OK", a + 44, 64);
|
|
2823
|
-
b(a, 0, h);
|
|
2824
|
-
};
|
|
2825
|
-
f.onerror = (h) => {
|
|
2826
|
-
w()[(a + 40) >> 1] = 4;
|
|
2827
|
-
w()[(a + 42) >> 1] = 404;
|
|
2828
|
-
K("Not Found", a + 44, 64);
|
|
2829
|
-
c(a, 0, h);
|
|
2830
|
-
};
|
|
2831
|
-
} catch (h) {
|
|
2832
|
-
c(a, 0, h);
|
|
2833
|
-
}
|
|
2834
|
-
} else c(a, 0, "IndexedDB not available!");
|
|
2835
|
-
}
|
|
2836
|
-
var De = {};
|
|
2837
|
-
function Ee() {
|
|
2838
|
-
if (!Fe) {
|
|
2839
|
-
var a = {
|
|
2840
|
-
USER: "web_user",
|
|
2841
|
-
LOGNAME: "web_user",
|
|
2842
|
-
PATH: "/",
|
|
2843
|
-
PWD: "/",
|
|
2844
|
-
HOME: "/home/web_user",
|
|
2845
|
-
LANG:
|
|
2846
|
-
(
|
|
2847
|
-
("object" == typeof navigator &&
|
|
2848
|
-
navigator.languages &&
|
|
2849
|
-
navigator.languages[0]) ||
|
|
2850
|
-
"C"
|
|
2851
|
-
).replace("-", "_") + ".UTF-8",
|
|
2852
|
-
_: pa || "./this.program",
|
|
2853
|
-
},
|
|
2854
|
-
b;
|
|
2855
|
-
for (b in De) void 0 === De[b] ? delete a[b] : (a[b] = De[b]);
|
|
2856
|
-
var c = [];
|
|
2857
|
-
for (b in a) c.push(b + "=" + a[b]);
|
|
2858
|
-
Fe = c;
|
|
2859
|
-
}
|
|
2860
|
-
return Fe;
|
|
2861
|
-
}
|
|
2862
|
-
var Fe;
|
|
2863
|
-
function Ge(a, b) {
|
|
2864
|
-
if (F) return U(11, 1, a, b);
|
|
2865
|
-
var c = 0;
|
|
2866
|
-
Ee().forEach(function (d, e) {
|
|
2867
|
-
var f = b + c;
|
|
2868
|
-
e = B()[(a + 4 * e) >> 2] = f;
|
|
2869
|
-
for (f = 0; f < d.length; ++f) g()[e++ >> 0] = d.charCodeAt(f);
|
|
2870
|
-
g()[e >> 0] = 0;
|
|
2871
|
-
c += d.length + 1;
|
|
2872
|
-
});
|
|
2873
|
-
return 0;
|
|
2874
|
-
}
|
|
2875
|
-
function He(a, b) {
|
|
2876
|
-
if (F) return U(12, 1, a, b);
|
|
2877
|
-
var c = Ee();
|
|
2878
|
-
B()[a >> 2] = c.length;
|
|
2879
|
-
var d = 0;
|
|
2880
|
-
c.forEach(function (e) {
|
|
2881
|
-
d += e.length + 1;
|
|
2882
|
-
});
|
|
2883
|
-
B()[b >> 2] = d;
|
|
2884
|
-
return 0;
|
|
2885
|
-
}
|
|
2886
|
-
function Ie(a) {
|
|
2887
|
-
if (F) return U(13, 1, a);
|
|
2888
|
-
try {
|
|
2889
|
-
var b = sc(a);
|
|
2890
|
-
gc(b);
|
|
2891
|
-
return 0;
|
|
2892
|
-
} catch (c) {
|
|
2893
|
-
if ("undefined" == typeof T || "ErrnoError" !== c.name) throw c;
|
|
2894
|
-
return c.$a;
|
|
2895
|
-
}
|
|
2896
|
-
}
|
|
2897
|
-
function Je(a, b, c, d) {
|
|
2898
|
-
if (F) return U(14, 1, a, b, c, d);
|
|
2899
|
-
try {
|
|
2900
|
-
a: {
|
|
2901
|
-
var e = sc(a);
|
|
2902
|
-
a = b;
|
|
2903
|
-
for (var f, h = (b = 0); h < c; h++) {
|
|
2904
|
-
var l = B()[a >> 2],
|
|
2905
|
-
m = B()[(a + 4) >> 2];
|
|
2906
|
-
a += 8;
|
|
2907
|
-
var n = e,
|
|
2908
|
-
q = g(),
|
|
2909
|
-
p = l,
|
|
2910
|
-
r = m,
|
|
2911
|
-
k = f;
|
|
2912
|
-
if (0 > r || 0 > k) throw new P(28);
|
|
2913
|
-
if (null === n.pb) throw new P(8);
|
|
2914
|
-
if (1 === (n.flags & 2097155)) throw new P(8);
|
|
2915
|
-
if (16384 === (n.node.mode & 61440)) throw new P(31);
|
|
2916
|
-
if (!n.Sa.read) throw new P(28);
|
|
2917
|
-
var t = "undefined" != typeof k;
|
|
2918
|
-
if (!t) k = n.position;
|
|
2919
|
-
else if (!n.seekable) throw new P(70);
|
|
2920
|
-
var x = n.Sa.read(n, q, p, r, k);
|
|
2921
|
-
t || (n.position += x);
|
|
2922
|
-
var A = x;
|
|
2923
|
-
if (0 > A) {
|
|
2924
|
-
var G = -1;
|
|
2925
|
-
break a;
|
|
2926
|
-
}
|
|
2927
|
-
b += A;
|
|
2928
|
-
if (A < m) break;
|
|
2929
|
-
"undefined" !== typeof f && (f += A);
|
|
2930
|
-
}
|
|
2931
|
-
G = b;
|
|
2932
|
-
}
|
|
2933
|
-
B()[d >> 2] = G;
|
|
2934
|
-
return 0;
|
|
2935
|
-
} catch (H) {
|
|
2936
|
-
if ("undefined" == typeof T || "ErrnoError" !== H.name) throw H;
|
|
2937
|
-
return H.$a;
|
|
2938
|
-
}
|
|
2939
|
-
}
|
|
2940
|
-
function Ke(a, b, c, d, e) {
|
|
2941
|
-
if (F) return U(15, 1, a, b, c, d, e);
|
|
2942
|
-
try {
|
|
2943
|
-
b =
|
|
2944
|
-
(c + 2097152) >>> 0 < 4194305 - !!b
|
|
2945
|
-
? (b >>> 0) + 4294967296 * c
|
|
2946
|
-
: NaN;
|
|
2947
|
-
if (isNaN(b)) return 61;
|
|
2948
|
-
var f = sc(a);
|
|
2949
|
-
hc(f, b, d);
|
|
2950
|
-
M = [
|
|
2951
|
-
f.position >>> 0,
|
|
2952
|
-
((L = f.position),
|
|
2953
|
-
1 <= +Math.abs(L)
|
|
2954
|
-
? 0 < L
|
|
2955
|
-
? (Math.min(+Math.floor(L / 4294967296), 4294967295) | 0) >>> 0
|
|
2956
|
-
: ~~+Math.ceil((L - +(~~L >>> 0)) / 4294967296) >>> 0
|
|
2957
|
-
: 0),
|
|
2958
|
-
];
|
|
2959
|
-
z()[e >> 2] = M[0];
|
|
2960
|
-
z()[(e + 4) >> 2] = M[1];
|
|
2961
|
-
f.Vb && 0 === b && 0 === d && (f.Vb = null);
|
|
2962
|
-
return 0;
|
|
2963
|
-
} catch (h) {
|
|
2964
|
-
if ("undefined" == typeof T || "ErrnoError" !== h.name) throw h;
|
|
2965
|
-
return h.$a;
|
|
2966
|
-
}
|
|
2967
|
-
}
|
|
2968
|
-
function Le(a, b, c, d) {
|
|
2969
|
-
if (F) return U(16, 1, a, b, c, d);
|
|
2970
|
-
try {
|
|
2971
|
-
a: {
|
|
2972
|
-
var e = sc(a);
|
|
2973
|
-
a = b;
|
|
2974
|
-
for (var f, h = (b = 0); h < c; h++) {
|
|
2975
|
-
var l = B()[a >> 2],
|
|
2976
|
-
m = B()[(a + 4) >> 2];
|
|
2977
|
-
a += 8;
|
|
2978
|
-
var n = ic(e, g(), l, m, f);
|
|
2979
|
-
if (0 > n) {
|
|
2980
|
-
var q = -1;
|
|
2981
|
-
break a;
|
|
2982
|
-
}
|
|
2983
|
-
b += n;
|
|
2984
|
-
"undefined" !== typeof f && (f += n);
|
|
2985
|
-
}
|
|
2986
|
-
q = b;
|
|
2987
|
-
}
|
|
2988
|
-
B()[d >> 2] = q;
|
|
2989
|
-
return 0;
|
|
2990
|
-
} catch (p) {
|
|
2991
|
-
if ("undefined" == typeof T || "ErrnoError" !== p.name) throw p;
|
|
2992
|
-
return p.$a;
|
|
2993
|
-
}
|
|
2994
|
-
}
|
|
2995
|
-
function Me(a, b) {
|
|
2996
|
-
Me.uc || (Me.uc = tb());
|
|
2997
|
-
for (var c = 0; c < b; c++) g()[(a + c) >> 0] = Me.uc();
|
|
2998
|
-
return 0;
|
|
2999
|
-
}
|
|
3000
|
-
var Ne = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
|
|
3001
|
-
Oe = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
3002
|
-
function Pe(a, b) {
|
|
3003
|
-
g().set(a, b);
|
|
3004
|
-
}
|
|
3005
|
-
function Qe(a, b, c, d) {
|
|
3006
|
-
function e(k, t, x) {
|
|
3007
|
-
for (k = "number" == typeof k ? k.toString() : k || ""; k.length < t; )
|
|
3008
|
-
k = x[0] + k;
|
|
3009
|
-
return k;
|
|
3010
|
-
}
|
|
3011
|
-
function f(k, t) {
|
|
3012
|
-
return e(k, t, "0");
|
|
3013
|
-
}
|
|
3014
|
-
function h(k, t) {
|
|
3015
|
-
function x(G) {
|
|
3016
|
-
return 0 > G ? -1 : 0 < G ? 1 : 0;
|
|
3017
|
-
}
|
|
3018
|
-
var A;
|
|
3019
|
-
0 === (A = x(k.getFullYear() - t.getFullYear())) &&
|
|
3020
|
-
0 === (A = x(k.getMonth() - t.getMonth())) &&
|
|
3021
|
-
(A = x(k.getDate() - t.getDate()));
|
|
3022
|
-
return A;
|
|
3023
|
-
}
|
|
3024
|
-
function l(k) {
|
|
3025
|
-
switch (k.getDay()) {
|
|
3026
|
-
case 0:
|
|
3027
|
-
return new Date(k.getFullYear() - 1, 11, 29);
|
|
3028
|
-
case 1:
|
|
3029
|
-
return k;
|
|
3030
|
-
case 2:
|
|
3031
|
-
return new Date(k.getFullYear(), 0, 3);
|
|
3032
|
-
case 3:
|
|
3033
|
-
return new Date(k.getFullYear(), 0, 2);
|
|
3034
|
-
case 4:
|
|
3035
|
-
return new Date(k.getFullYear(), 0, 1);
|
|
3036
|
-
case 5:
|
|
3037
|
-
return new Date(k.getFullYear() - 1, 11, 31);
|
|
3038
|
-
case 6:
|
|
3039
|
-
return new Date(k.getFullYear() - 1, 11, 30);
|
|
3040
|
-
}
|
|
3041
|
-
}
|
|
3042
|
-
function m(k) {
|
|
3043
|
-
var t = k.sb;
|
|
3044
|
-
for (k = new Date(new Date(k.tb + 1900, 0, 1).getTime()); 0 < t; ) {
|
|
3045
|
-
var x = k.getMonth(),
|
|
3046
|
-
A = (ie(k.getFullYear()) ? Ne : Oe)[x];
|
|
3047
|
-
if (t > A - k.getDate())
|
|
3048
|
-
(t -= A - k.getDate() + 1),
|
|
3049
|
-
k.setDate(1),
|
|
3050
|
-
11 > x
|
|
3051
|
-
? k.setMonth(x + 1)
|
|
3052
|
-
: (k.setMonth(0), k.setFullYear(k.getFullYear() + 1));
|
|
3053
|
-
else {
|
|
3054
|
-
k.setDate(k.getDate() + t);
|
|
3055
|
-
break;
|
|
3056
|
-
}
|
|
3057
|
-
}
|
|
3058
|
-
x = new Date(k.getFullYear() + 1, 0, 4);
|
|
3059
|
-
t = l(new Date(k.getFullYear(), 0, 4));
|
|
3060
|
-
x = l(x);
|
|
3061
|
-
return 0 >= h(t, k)
|
|
3062
|
-
? 0 >= h(x, k)
|
|
3063
|
-
? k.getFullYear() + 1
|
|
3064
|
-
: k.getFullYear()
|
|
3065
|
-
: k.getFullYear() - 1;
|
|
3066
|
-
}
|
|
3067
|
-
var n = z()[(d + 40) >> 2];
|
|
3068
|
-
d = {
|
|
3069
|
-
yd: z()[d >> 2],
|
|
3070
|
-
xd: z()[(d + 4) >> 2],
|
|
3071
|
-
Rb: z()[(d + 8) >> 2],
|
|
3072
|
-
dc: z()[(d + 12) >> 2],
|
|
3073
|
-
Sb: z()[(d + 16) >> 2],
|
|
3074
|
-
tb: z()[(d + 20) >> 2],
|
|
3075
|
-
ib: z()[(d + 24) >> 2],
|
|
3076
|
-
sb: z()[(d + 28) >> 2],
|
|
3077
|
-
Kd: z()[(d + 32) >> 2],
|
|
3078
|
-
wd: z()[(d + 36) >> 2],
|
|
3079
|
-
zd: n ? J(n) : "",
|
|
3080
|
-
};
|
|
3081
|
-
c = J(c);
|
|
3082
|
-
n = {
|
|
3083
|
-
"%c": "%a %b %d %H:%M:%S %Y",
|
|
3084
|
-
"%D": "%m/%d/%y",
|
|
3085
|
-
"%F": "%Y-%m-%d",
|
|
3086
|
-
"%h": "%b",
|
|
3087
|
-
"%r": "%I:%M:%S %p",
|
|
3088
|
-
"%R": "%H:%M",
|
|
3089
|
-
"%T": "%H:%M:%S",
|
|
3090
|
-
"%x": "%m/%d/%y",
|
|
3091
|
-
"%X": "%H:%M:%S",
|
|
3092
|
-
"%Ec": "%c",
|
|
3093
|
-
"%EC": "%C",
|
|
3094
|
-
"%Ex": "%m/%d/%y",
|
|
3095
|
-
"%EX": "%H:%M:%S",
|
|
3096
|
-
"%Ey": "%y",
|
|
3097
|
-
"%EY": "%Y",
|
|
3098
|
-
"%Od": "%d",
|
|
3099
|
-
"%Oe": "%e",
|
|
3100
|
-
"%OH": "%H",
|
|
3101
|
-
"%OI": "%I",
|
|
3102
|
-
"%Om": "%m",
|
|
3103
|
-
"%OM": "%M",
|
|
3104
|
-
"%OS": "%S",
|
|
3105
|
-
"%Ou": "%u",
|
|
3106
|
-
"%OU": "%U",
|
|
3107
|
-
"%OV": "%V",
|
|
3108
|
-
"%Ow": "%w",
|
|
3109
|
-
"%OW": "%W",
|
|
3110
|
-
"%Oy": "%y",
|
|
3111
|
-
};
|
|
3112
|
-
for (var q in n) c = c.replace(new RegExp(q, "g"), n[q]);
|
|
3113
|
-
var p = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(
|
|
3114
|
-
" ",
|
|
3115
|
-
),
|
|
3116
|
-
r =
|
|
3117
|
-
"January February March April May June July August September October November December".split(
|
|
3118
|
-
" ",
|
|
3119
|
-
);
|
|
3120
|
-
n = {
|
|
3121
|
-
"%a": function (k) {
|
|
3122
|
-
return p[k.ib].substring(0, 3);
|
|
3123
|
-
},
|
|
3124
|
-
"%A": function (k) {
|
|
3125
|
-
return p[k.ib];
|
|
3126
|
-
},
|
|
3127
|
-
"%b": function (k) {
|
|
3128
|
-
return r[k.Sb].substring(0, 3);
|
|
3129
|
-
},
|
|
3130
|
-
"%B": function (k) {
|
|
3131
|
-
return r[k.Sb];
|
|
3132
|
-
},
|
|
3133
|
-
"%C": function (k) {
|
|
3134
|
-
return f(((k.tb + 1900) / 100) | 0, 2);
|
|
3135
|
-
},
|
|
3136
|
-
"%d": function (k) {
|
|
3137
|
-
return f(k.dc, 2);
|
|
3138
|
-
},
|
|
3139
|
-
"%e": function (k) {
|
|
3140
|
-
return e(k.dc, 2, " ");
|
|
3141
|
-
},
|
|
3142
|
-
"%g": function (k) {
|
|
3143
|
-
return m(k).toString().substring(2);
|
|
3144
|
-
},
|
|
3145
|
-
"%G": function (k) {
|
|
3146
|
-
return m(k);
|
|
3147
|
-
},
|
|
3148
|
-
"%H": function (k) {
|
|
3149
|
-
return f(k.Rb, 2);
|
|
3150
|
-
},
|
|
3151
|
-
"%I": function (k) {
|
|
3152
|
-
k = k.Rb;
|
|
3153
|
-
0 == k ? (k = 12) : 12 < k && (k -= 12);
|
|
3154
|
-
return f(k, 2);
|
|
3155
|
-
},
|
|
3156
|
-
"%j": function (k) {
|
|
3157
|
-
for (
|
|
3158
|
-
var t = 0, x = 0;
|
|
3159
|
-
x <= k.Sb - 1;
|
|
3160
|
-
t += (ie(k.tb + 1900) ? Ne : Oe)[x++]
|
|
3161
|
-
);
|
|
3162
|
-
return f(k.dc + t, 3);
|
|
3163
|
-
},
|
|
3164
|
-
"%m": function (k) {
|
|
3165
|
-
return f(k.Sb + 1, 2);
|
|
3166
|
-
},
|
|
3167
|
-
"%M": function (k) {
|
|
3168
|
-
return f(k.xd, 2);
|
|
3169
|
-
},
|
|
3170
|
-
"%n": function () {
|
|
3171
|
-
return "\n";
|
|
3172
|
-
},
|
|
3173
|
-
"%p": function (k) {
|
|
3174
|
-
return 0 <= k.Rb && 12 > k.Rb ? "AM" : "PM";
|
|
3175
|
-
},
|
|
3176
|
-
"%S": function (k) {
|
|
3177
|
-
return f(k.yd, 2);
|
|
3178
|
-
},
|
|
3179
|
-
"%t": function () {
|
|
3180
|
-
return "\t";
|
|
3181
|
-
},
|
|
3182
|
-
"%u": function (k) {
|
|
3183
|
-
return k.ib || 7;
|
|
3184
|
-
},
|
|
3185
|
-
"%U": function (k) {
|
|
3186
|
-
return f(Math.floor((k.sb + 7 - k.ib) / 7), 2);
|
|
3187
|
-
},
|
|
3188
|
-
"%V": function (k) {
|
|
3189
|
-
var t = Math.floor((k.sb + 7 - ((k.ib + 6) % 7)) / 7);
|
|
3190
|
-
2 >= (k.ib + 371 - k.sb - 2) % 7 && t++;
|
|
3191
|
-
if (t)
|
|
3192
|
-
53 == t &&
|
|
3193
|
-
((x = (k.ib + 371 - k.sb) % 7),
|
|
3194
|
-
4 == x || (3 == x && ie(k.tb)) || (t = 1));
|
|
3195
|
-
else {
|
|
3196
|
-
t = 52;
|
|
3197
|
-
var x = (k.ib + 7 - k.sb - 1) % 7;
|
|
3198
|
-
(4 == x || (5 == x && ie((k.tb % 400) - 1))) && t++;
|
|
3199
|
-
}
|
|
3200
|
-
return f(t, 2);
|
|
3201
|
-
},
|
|
3202
|
-
"%w": function (k) {
|
|
3203
|
-
return k.ib;
|
|
3204
|
-
},
|
|
3205
|
-
"%W": function (k) {
|
|
3206
|
-
return f(Math.floor((k.sb + 7 - ((k.ib + 6) % 7)) / 7), 2);
|
|
3207
|
-
},
|
|
3208
|
-
"%y": function (k) {
|
|
3209
|
-
return (k.tb + 1900).toString().substring(2);
|
|
3210
|
-
},
|
|
3211
|
-
"%Y": function (k) {
|
|
3212
|
-
return k.tb + 1900;
|
|
3213
|
-
},
|
|
3214
|
-
"%z": function (k) {
|
|
3215
|
-
k = k.wd;
|
|
3216
|
-
var t = 0 <= k;
|
|
3217
|
-
k = Math.abs(k) / 60;
|
|
3218
|
-
return (
|
|
3219
|
-
(t ? "+" : "-") +
|
|
3220
|
-
String("0000" + ((k / 60) * 100 + (k % 60))).slice(-4)
|
|
3221
|
-
);
|
|
3222
|
-
},
|
|
3223
|
-
"%Z": function (k) {
|
|
3224
|
-
return k.zd;
|
|
3225
|
-
},
|
|
3226
|
-
"%%": function () {
|
|
3227
|
-
return "%";
|
|
3228
|
-
},
|
|
3229
|
-
};
|
|
3230
|
-
c = c.replace(/%%/g, "\x00\x00");
|
|
3231
|
-
for (q in n)
|
|
3232
|
-
c.includes(q) && (c = c.replace(new RegExp(q, "g"), n[q](d)));
|
|
3233
|
-
c = c.replace(/\0\0/g, "%");
|
|
3234
|
-
q = vb(c, !1);
|
|
3235
|
-
if (q.length > b) return 0;
|
|
3236
|
-
Pe(q, a);
|
|
3237
|
-
return q.length - 1;
|
|
3238
|
-
}
|
|
3239
|
-
N.Zc();
|
|
3240
|
-
function Tb(a, b, c, d) {
|
|
3241
|
-
a || (a = this);
|
|
3242
|
-
this.parent = a;
|
|
3243
|
-
this.jb = a.jb;
|
|
3244
|
-
this.Bb = null;
|
|
3245
|
-
this.id = Mb++;
|
|
3246
|
-
this.name = b;
|
|
3247
|
-
this.mode = c;
|
|
3248
|
-
this.Ra = {};
|
|
3249
|
-
this.Sa = {};
|
|
3250
|
-
this.Db = d;
|
|
3251
|
-
}
|
|
3252
|
-
Object.defineProperties(Tb.prototype, {
|
|
3253
|
-
read: {
|
|
3254
|
-
get: function () {
|
|
3255
|
-
return 365 === (this.mode & 365);
|
|
3256
|
-
},
|
|
3257
|
-
set: function (a) {
|
|
3258
|
-
a ? (this.mode |= 365) : (this.mode &= -366);
|
|
3259
|
-
},
|
|
3260
|
-
},
|
|
3261
|
-
write: {
|
|
3262
|
-
get: function () {
|
|
3263
|
-
return 146 === (this.mode & 146);
|
|
3264
|
-
},
|
|
3265
|
-
set: function (a) {
|
|
3266
|
-
a ? (this.mode |= 146) : (this.mode &= -147);
|
|
3267
|
-
},
|
|
3268
|
-
},
|
|
3269
|
-
cd: {
|
|
3270
|
-
get: function () {
|
|
3271
|
-
return 16384 === (this.mode & 61440);
|
|
3272
|
-
},
|
|
3273
|
-
},
|
|
3274
|
-
bd: {
|
|
3275
|
-
get: function () {
|
|
3276
|
-
return 8192 === (this.mode & 61440);
|
|
3277
|
-
},
|
|
3278
|
-
},
|
|
3279
|
-
});
|
|
3280
|
-
Sa();
|
|
3281
|
-
Nb = Array(4096);
|
|
3282
|
-
$b(Q, "/");
|
|
3283
|
-
S("/tmp", 16895, 0);
|
|
3284
|
-
S("/home", 16895, 0);
|
|
3285
|
-
S("/home/web_user", 16895, 0);
|
|
3286
|
-
(() => {
|
|
3287
|
-
S("/dev", 16895, 0);
|
|
3288
|
-
yb(259, { read: () => 0, write: (b, c, d, e) => e });
|
|
3289
|
-
ac("/dev/null", 259);
|
|
3290
|
-
xb(1280, Ab);
|
|
3291
|
-
xb(1536, Bb);
|
|
3292
|
-
ac("/dev/tty", 1280);
|
|
3293
|
-
ac("/dev/tty1", 1536);
|
|
3294
|
-
var a = tb();
|
|
3295
|
-
Ta("/dev", "random", a);
|
|
3296
|
-
Ta("/dev", "urandom", a);
|
|
3297
|
-
S("/dev/shm", 16895, 0);
|
|
3298
|
-
S("/dev/shm/tmp", 16895, 0);
|
|
3299
|
-
})();
|
|
3300
|
-
(() => {
|
|
3301
|
-
S("/proc", 16895, 0);
|
|
3302
|
-
var a = S("/proc/self", 16895, 0);
|
|
3303
|
-
S("/proc/self/fd", 16895, 0);
|
|
3304
|
-
$b(
|
|
3305
|
-
{
|
|
3306
|
-
jb: () => {
|
|
3307
|
-
var b = Fb(a, "fd", 16895, 73);
|
|
3308
|
-
b.Ra = {
|
|
3309
|
-
zb: (c, d) => {
|
|
3310
|
-
var e = Lb[+d];
|
|
3311
|
-
if (!e) throw new P(8);
|
|
3312
|
-
c = {
|
|
3313
|
-
parent: null,
|
|
3314
|
-
jb: { sc: "fake" },
|
|
3315
|
-
Ra: { Eb: () => e.path },
|
|
3316
|
-
};
|
|
3317
|
-
return (c.parent = c);
|
|
3318
|
-
},
|
|
3319
|
-
};
|
|
3320
|
-
return b;
|
|
3321
|
-
},
|
|
3322
|
-
},
|
|
3323
|
-
"/proc/self/fd",
|
|
3324
|
-
);
|
|
3325
|
-
})();
|
|
3326
|
-
var pc;
|
|
3327
|
-
D.FS_createPath = kc;
|
|
3328
|
-
D.FS_createDataFile = mc;
|
|
3329
|
-
D.FS_createPreloadedFile = qc;
|
|
3330
|
-
D.FS_unlink = bc;
|
|
3331
|
-
D.FS_createLazyFile = oc;
|
|
3332
|
-
D.FS_createDevice = Ta;
|
|
3333
|
-
Yc = D.InternalError = Xc("InternalError");
|
|
3334
|
-
for (var Re = Array(256), Se = 0; 256 > Se; ++Se)
|
|
3335
|
-
Re[Se] = String.fromCharCode(Se);
|
|
3336
|
-
cd = Re;
|
|
3337
|
-
dd = D.BindingError = Xc("BindingError");
|
|
3338
|
-
sd.prototype.isAliasOf = function (a) {
|
|
3339
|
-
if (!(this instanceof sd && a instanceof sd)) return !1;
|
|
3340
|
-
var b = this.Pa.Wa.Ta,
|
|
3341
|
-
c = this.Pa.Ua,
|
|
3342
|
-
d = a.Pa.Wa.Ta;
|
|
3343
|
-
for (a = a.Pa.Ua; b.eb; ) (c = b.Fb(c)), (b = b.eb);
|
|
3344
|
-
for (; d.eb; ) (a = d.Fb(a)), (d = d.eb);
|
|
3345
|
-
return b === d && c === a;
|
|
3346
|
-
};
|
|
3347
|
-
sd.prototype.clone = function () {
|
|
3348
|
-
this.Pa.Ua || ed(this);
|
|
3349
|
-
if (this.Pa.Cb) return (this.Pa.count.value += 1), this;
|
|
3350
|
-
var a = rd,
|
|
3351
|
-
b = Object,
|
|
3352
|
-
c = b.create,
|
|
3353
|
-
d = Object.getPrototypeOf(this),
|
|
3354
|
-
e = this.Pa;
|
|
3355
|
-
a = a(
|
|
3356
|
-
c.call(b, d, {
|
|
3357
|
-
Pa: {
|
|
3358
|
-
value: {
|
|
3359
|
-
count: e.count,
|
|
3360
|
-
vb: e.vb,
|
|
3361
|
-
Cb: e.Cb,
|
|
3362
|
-
Ua: e.Ua,
|
|
3363
|
-
Wa: e.Wa,
|
|
3364
|
-
Za: e.Za,
|
|
3365
|
-
cb: e.cb,
|
|
3366
|
-
},
|
|
3367
|
-
},
|
|
3368
|
-
}),
|
|
3369
|
-
);
|
|
3370
|
-
a.Pa.count.value += 1;
|
|
3371
|
-
a.Pa.vb = !1;
|
|
3372
|
-
return a;
|
|
3373
|
-
};
|
|
3374
|
-
sd.prototype["delete"] = function () {
|
|
3375
|
-
this.Pa.Ua || ed(this);
|
|
3376
|
-
this.Pa.vb && !this.Pa.Cb && W("Object already scheduled for deletion");
|
|
3377
|
-
gd(this);
|
|
3378
|
-
hd(this.Pa);
|
|
3379
|
-
this.Pa.Cb || ((this.Pa.Za = void 0), (this.Pa.Ua = void 0));
|
|
3380
|
-
};
|
|
3381
|
-
sd.prototype.isDeleted = function () {
|
|
3382
|
-
return !this.Pa.Ua;
|
|
3383
|
-
};
|
|
3384
|
-
sd.prototype.deleteLater = function () {
|
|
3385
|
-
this.Pa.Ua || ed(this);
|
|
3386
|
-
this.Pa.vb && !this.Pa.Cb && W("Object already scheduled for deletion");
|
|
3387
|
-
ld.push(this);
|
|
3388
|
-
1 === ld.length && nd && nd(md);
|
|
3389
|
-
this.Pa.vb = !0;
|
|
3390
|
-
return this;
|
|
3391
|
-
};
|
|
3392
|
-
D.getInheritedInstanceCount = function () {
|
|
3393
|
-
return Object.keys(od).length;
|
|
3394
|
-
};
|
|
3395
|
-
D.getLiveInheritedInstances = function () {
|
|
3396
|
-
var a = [],
|
|
3397
|
-
b;
|
|
3398
|
-
for (b in od) od.hasOwnProperty(b) && a.push(od[b]);
|
|
3399
|
-
return a;
|
|
3400
|
-
};
|
|
3401
|
-
D.flushPendingDeletes = md;
|
|
3402
|
-
D.setDelayFunction = function (a) {
|
|
3403
|
-
nd = a;
|
|
3404
|
-
ld.length && nd && nd(md);
|
|
3405
|
-
};
|
|
3406
|
-
Cd.prototype.Uc = function (a) {
|
|
3407
|
-
this.vc && (a = this.vc(a));
|
|
3408
|
-
return a;
|
|
3409
|
-
};
|
|
3410
|
-
Cd.prototype.lc = function (a) {
|
|
3411
|
-
this.mb && this.mb(a);
|
|
3412
|
-
};
|
|
3413
|
-
Cd.prototype.argPackAdvance = 8;
|
|
3414
|
-
Cd.prototype.readValueFromPointer = Rc;
|
|
3415
|
-
Cd.prototype.deleteObject = function (a) {
|
|
3416
|
-
if (null !== a) a["delete"]();
|
|
3417
|
-
};
|
|
3418
|
-
Cd.prototype.fromWireType = function (a) {
|
|
3419
|
-
function b() {
|
|
3420
|
-
return this.Mb
|
|
3421
|
-
? qd(this.Ta.wb, { Wa: this.jd, Ua: c, cb: this, Za: a })
|
|
3422
|
-
: qd(this.Ta.wb, { Wa: this, Ua: a });
|
|
3423
|
-
}
|
|
3424
|
-
var c = this.Uc(a);
|
|
3425
|
-
if (!c) return this.lc(a), null;
|
|
3426
|
-
var d = pd(this.Ta, c);
|
|
3427
|
-
if (void 0 !== d) {
|
|
3428
|
-
if (0 === d.Pa.count.value)
|
|
3429
|
-
return (d.Pa.Ua = c), (d.Pa.Za = a), d.clone();
|
|
3430
|
-
d = d.clone();
|
|
3431
|
-
this.lc(a);
|
|
3432
|
-
return d;
|
|
3433
|
-
}
|
|
3434
|
-
d = this.Ta.Sc(c);
|
|
3435
|
-
d = kd[d];
|
|
3436
|
-
if (!d) return b.call(this);
|
|
3437
|
-
d = this.Lb ? d.Lc : d.pointerType;
|
|
3438
|
-
var e = jd(c, this.Ta, d.Ta);
|
|
3439
|
-
return null === e
|
|
3440
|
-
? b.call(this)
|
|
3441
|
-
: this.Mb
|
|
3442
|
-
? qd(d.Ta.wb, { Wa: d, Ua: e, cb: this, Za: a })
|
|
3443
|
-
: qd(d.Ta.wb, { Wa: d, Ua: e });
|
|
3444
|
-
};
|
|
3445
|
-
Fd = D.UnboundTypeError = Xc("UnboundTypeError");
|
|
3446
|
-
D.count_emval_handles = function () {
|
|
3447
|
-
for (var a = 0, b = 5; b < Y.length; ++b) void 0 !== Y[b] && ++a;
|
|
3448
|
-
return a;
|
|
3449
|
-
};
|
|
3450
|
-
D.get_first_emval = function () {
|
|
3451
|
-
for (var a = 5; a < Y.length; ++a) if (void 0 !== Y[a]) return Y[a];
|
|
3452
|
-
return null;
|
|
3453
|
-
};
|
|
3454
|
-
F ||
|
|
3455
|
-
(db("library_fetch_init"),
|
|
3456
|
-
xe(
|
|
3457
|
-
(a) => {
|
|
3458
|
-
ye = a;
|
|
3459
|
-
eb("library_fetch_init");
|
|
3460
|
-
},
|
|
3461
|
-
() => {
|
|
3462
|
-
ye = !1;
|
|
3463
|
-
eb("library_fetch_init");
|
|
3464
|
-
},
|
|
3465
|
-
));
|
|
3466
|
-
var Te = [
|
|
3467
|
-
null,
|
|
3468
|
-
vc,
|
|
3469
|
-
xc,
|
|
3470
|
-
Jc,
|
|
3471
|
-
Lc,
|
|
3472
|
-
function (a, b) {
|
|
3473
|
-
if (F) return U(5, 1, a, b);
|
|
3474
|
-
try {
|
|
3475
|
-
return (a = J(a)), tc(dc, a, b);
|
|
3476
|
-
} catch (c) {
|
|
3477
|
-
if ("undefined" == typeof T || "ErrnoError" !== c.name) throw c;
|
|
3478
|
-
return -c.$a;
|
|
3479
|
-
}
|
|
3480
|
-
},
|
|
3481
|
-
Mc,
|
|
3482
|
-
Nc,
|
|
3483
|
-
Oc,
|
|
3484
|
-
me,
|
|
3485
|
-
ne,
|
|
3486
|
-
Ge,
|
|
3487
|
-
He,
|
|
3488
|
-
Ie,
|
|
3489
|
-
Je,
|
|
3490
|
-
Ke,
|
|
3491
|
-
Le,
|
|
3492
|
-
],
|
|
3493
|
-
Ve = {
|
|
3494
|
-
R: function (a) {
|
|
3495
|
-
Ue(a, !1, 1, !0);
|
|
3496
|
-
N.Bc();
|
|
3497
|
-
},
|
|
3498
|
-
s: function (a) {
|
|
3499
|
-
F ? postMessage({ cmd: "cleanupThread", thread: a }) : ob(a);
|
|
3500
|
-
},
|
|
3501
|
-
K: Kc,
|
|
3502
|
-
W: Lc,
|
|
3503
|
-
U: Mc,
|
|
3504
|
-
X: Nc,
|
|
3505
|
-
V: Oc,
|
|
3506
|
-
g: function (a) {
|
|
3507
|
-
var b = Pc[a];
|
|
3508
|
-
delete Pc[a];
|
|
3509
|
-
var c = b.$b,
|
|
3510
|
-
d = b.mb,
|
|
3511
|
-
e = b.nc,
|
|
3512
|
-
f = e.map((h) => h.Wc).concat(e.map((h) => h.sd));
|
|
3513
|
-
$c([a], f, (h) => {
|
|
3514
|
-
var l = {};
|
|
3515
|
-
e.forEach((m, n) => {
|
|
3516
|
-
var q = h[n],
|
|
3517
|
-
p = m.Kb,
|
|
3518
|
-
r = m.Vc,
|
|
3519
|
-
k = h[n + e.length],
|
|
3520
|
-
t = m.rd,
|
|
3521
|
-
x = m.td;
|
|
3522
|
-
l[m.Rc] = {
|
|
3523
|
-
read: (A) => q.fromWireType(p(r, A)),
|
|
3524
|
-
write: (A, G) => {
|
|
3525
|
-
var H = [];
|
|
3526
|
-
t(x, A, k.toWireType(H, G));
|
|
3527
|
-
Qc(H);
|
|
3528
|
-
},
|
|
3529
|
-
};
|
|
3530
|
-
});
|
|
3531
|
-
return [
|
|
3532
|
-
{
|
|
3533
|
-
name: b.name,
|
|
3534
|
-
fromWireType: function (m) {
|
|
3535
|
-
var n = {},
|
|
3536
|
-
q;
|
|
3537
|
-
for (q in l) n[q] = l[q].read(m);
|
|
3538
|
-
d(m);
|
|
3539
|
-
return n;
|
|
3540
|
-
},
|
|
3541
|
-
toWireType: function (m, n) {
|
|
3542
|
-
for (var q in l)
|
|
3543
|
-
if (!(q in n))
|
|
3544
|
-
throw new TypeError('Missing field: "' + q + '"');
|
|
3545
|
-
var p = c();
|
|
3546
|
-
for (q in l) l[q].write(p, n[q]);
|
|
3547
|
-
null !== m && m.push(d, p);
|
|
3548
|
-
return p;
|
|
3549
|
-
},
|
|
3550
|
-
argPackAdvance: 8,
|
|
3551
|
-
readValueFromPointer: Rc,
|
|
3552
|
-
fb: d,
|
|
3553
|
-
},
|
|
3554
|
-
];
|
|
3555
|
-
});
|
|
3556
|
-
},
|
|
3557
|
-
G: function () {},
|
|
3558
|
-
ea: function (a, b, c, d, e) {
|
|
3559
|
-
var f = bd(c);
|
|
3560
|
-
b = V(b);
|
|
3561
|
-
ad(a, {
|
|
3562
|
-
name: b,
|
|
3563
|
-
fromWireType: function (h) {
|
|
3564
|
-
return !!h;
|
|
3565
|
-
},
|
|
3566
|
-
toWireType: function (h, l) {
|
|
3567
|
-
return l ? d : e;
|
|
3568
|
-
},
|
|
3569
|
-
argPackAdvance: 8,
|
|
3570
|
-
readValueFromPointer: function (h) {
|
|
3571
|
-
if (1 === c) var l = g();
|
|
3572
|
-
else if (2 === c) l = ea();
|
|
3573
|
-
else if (4 === c) l = z();
|
|
3574
|
-
else throw new TypeError("Unknown boolean type size: " + b);
|
|
3575
|
-
return this.fromWireType(l[h >> f]);
|
|
3576
|
-
},
|
|
3577
|
-
fb: null,
|
|
3578
|
-
});
|
|
3579
|
-
},
|
|
3580
|
-
na: function (a, b, c, d, e, f, h, l, m, n, q, p, r) {
|
|
3581
|
-
q = V(q);
|
|
3582
|
-
f = X(e, f);
|
|
3583
|
-
l && (l = X(h, l));
|
|
3584
|
-
n && (n = X(m, n));
|
|
3585
|
-
r = X(p, r);
|
|
3586
|
-
var k = Vc(q);
|
|
3587
|
-
ud(k, function () {
|
|
3588
|
-
Jd("Cannot construct " + q + " due to unbound types", [d]);
|
|
3589
|
-
});
|
|
3590
|
-
$c([a, b, c], d ? [d] : [], function (t) {
|
|
3591
|
-
t = t[0];
|
|
3592
|
-
if (d) {
|
|
3593
|
-
var x = t.Ta;
|
|
3594
|
-
var A = x.wb;
|
|
3595
|
-
} else A = sd.prototype;
|
|
3596
|
-
t = Wc(k, function () {
|
|
3597
|
-
if (Object.getPrototypeOf(this) !== G)
|
|
3598
|
-
throw new dd("Use 'new' to construct " + q);
|
|
3599
|
-
if (void 0 === H.ob)
|
|
3600
|
-
throw new dd(q + " has no accessible constructor");
|
|
3601
|
-
var R = H.ob[arguments.length];
|
|
3602
|
-
if (void 0 === R)
|
|
3603
|
-
throw new dd(
|
|
3604
|
-
"Tried to invoke ctor of " +
|
|
3605
|
-
q +
|
|
3606
|
-
" with invalid number of parameters (" +
|
|
3607
|
-
arguments.length +
|
|
3608
|
-
") - expected (" +
|
|
3609
|
-
Object.keys(H.ob).toString() +
|
|
3610
|
-
") parameters instead!",
|
|
3611
|
-
);
|
|
3612
|
-
return R.apply(this, arguments);
|
|
3613
|
-
});
|
|
3614
|
-
var G = Object.create(A, { constructor: { value: t } });
|
|
3615
|
-
t.prototype = G;
|
|
3616
|
-
var H = new vd(q, t, G, r, x, f, l, n);
|
|
3617
|
-
x = new Cd(q, H, !0, !1);
|
|
3618
|
-
A = new Cd(q + "*", H, !1, !1);
|
|
3619
|
-
var y = new Cd(q + " const*", H, !1, !0);
|
|
3620
|
-
kd[a] = { pointerType: A, Lc: y };
|
|
3621
|
-
Dd(k, t);
|
|
3622
|
-
return [x, A, y];
|
|
3623
|
-
});
|
|
3624
|
-
},
|
|
3625
|
-
ma: function (a, b, c, d, e, f) {
|
|
3626
|
-
0 < b || ya();
|
|
3627
|
-
var h = Kd(b, c);
|
|
3628
|
-
e = X(d, e);
|
|
3629
|
-
$c([], [a], function (l) {
|
|
3630
|
-
l = l[0];
|
|
3631
|
-
var m = "constructor " + l.name;
|
|
3632
|
-
void 0 === l.Ta.ob && (l.Ta.ob = []);
|
|
3633
|
-
if (void 0 !== l.Ta.ob[b - 1])
|
|
3634
|
-
throw new dd(
|
|
3635
|
-
"Cannot register multiple constructors with identical number of parameters (" +
|
|
3636
|
-
(b - 1) +
|
|
3637
|
-
") for class '" +
|
|
3638
|
-
l.name +
|
|
3639
|
-
"'! Overload resolution is currently only performed using the parameter count, not actual type info!",
|
|
3640
|
-
);
|
|
3641
|
-
l.Ta.ob[b - 1] = () => {
|
|
3642
|
-
Jd("Cannot construct " + l.name + " due to unbound types", h);
|
|
3643
|
-
};
|
|
3644
|
-
$c([], h, function (n) {
|
|
3645
|
-
n.splice(1, 0, null);
|
|
3646
|
-
l.Ta.ob[b - 1] = Ld(m, n, null, e, f);
|
|
3647
|
-
return [];
|
|
3648
|
-
});
|
|
3649
|
-
return [];
|
|
3650
|
-
});
|
|
3651
|
-
},
|
|
3652
|
-
k: function (a, b, c, d, e, f, h, l) {
|
|
3653
|
-
var m = Kd(c, d);
|
|
3654
|
-
b = V(b);
|
|
3655
|
-
f = X(e, f);
|
|
3656
|
-
$c([], [a], function (n) {
|
|
3657
|
-
function q() {
|
|
3658
|
-
Jd("Cannot call " + p + " due to unbound types", m);
|
|
3659
|
-
}
|
|
3660
|
-
n = n[0];
|
|
3661
|
-
var p = n.name + "." + b;
|
|
3662
|
-
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
3663
|
-
l && n.Ta.kd.push(b);
|
|
3664
|
-
var r = n.Ta.wb,
|
|
3665
|
-
k = r[b];
|
|
3666
|
-
void 0 === k ||
|
|
3667
|
-
(void 0 === k.Ya && k.className !== n.name && k.Gb === c - 2)
|
|
3668
|
-
? ((q.Gb = c - 2), (q.className = n.name), (r[b] = q))
|
|
3669
|
-
: (td(r, b, p), (r[b].Ya[c - 2] = q));
|
|
3670
|
-
$c([], m, function (t) {
|
|
3671
|
-
t = Ld(p, t, n, f, h);
|
|
3672
|
-
void 0 === r[b].Ya
|
|
3673
|
-
? ((t.Gb = c - 2), (r[b] = t))
|
|
3674
|
-
: (r[b].Ya[c - 2] = t);
|
|
3675
|
-
return [];
|
|
3676
|
-
});
|
|
3677
|
-
return [];
|
|
3678
|
-
});
|
|
3679
|
-
},
|
|
3680
|
-
da: function (a, b) {
|
|
3681
|
-
b = V(b);
|
|
3682
|
-
ad(a, {
|
|
3683
|
-
name: b,
|
|
3684
|
-
fromWireType: function (c) {
|
|
3685
|
-
var d = Od(c);
|
|
3686
|
-
Nd(c);
|
|
3687
|
-
return d;
|
|
3688
|
-
},
|
|
3689
|
-
toWireType: function (c, d) {
|
|
3690
|
-
return Ad(d);
|
|
3691
|
-
},
|
|
3692
|
-
argPackAdvance: 8,
|
|
3693
|
-
readValueFromPointer: Rc,
|
|
3694
|
-
fb: null,
|
|
3695
|
-
});
|
|
3696
|
-
},
|
|
3697
|
-
x: function (a, b, c) {
|
|
3698
|
-
c = bd(c);
|
|
3699
|
-
b = V(b);
|
|
3700
|
-
ad(a, {
|
|
3701
|
-
name: b,
|
|
3702
|
-
fromWireType: function (d) {
|
|
3703
|
-
return d;
|
|
3704
|
-
},
|
|
3705
|
-
toWireType: function (d, e) {
|
|
3706
|
-
return e;
|
|
3707
|
-
},
|
|
3708
|
-
argPackAdvance: 8,
|
|
3709
|
-
readValueFromPointer: Pd(b, c),
|
|
3710
|
-
fb: null,
|
|
3711
|
-
});
|
|
3712
|
-
},
|
|
3713
|
-
p: function (a, b, c, d, e, f) {
|
|
3714
|
-
var h = Kd(b, c);
|
|
3715
|
-
a = V(a);
|
|
3716
|
-
e = X(d, e);
|
|
3717
|
-
ud(
|
|
3718
|
-
a,
|
|
3719
|
-
function () {
|
|
3720
|
-
Jd("Cannot call " + a + " due to unbound types", h);
|
|
3721
|
-
},
|
|
3722
|
-
b - 1,
|
|
3723
|
-
);
|
|
3724
|
-
$c([], h, function (l) {
|
|
3725
|
-
Dd(a, Ld(a, [l[0], null].concat(l.slice(1)), null, e, f), b - 1);
|
|
3726
|
-
return [];
|
|
3727
|
-
});
|
|
3728
|
-
},
|
|
3729
|
-
i: function (a, b, c, d, e) {
|
|
3730
|
-
b = V(b);
|
|
3731
|
-
-1 === e && (e = 4294967295);
|
|
3732
|
-
e = bd(c);
|
|
3733
|
-
var f = (l) => l;
|
|
3734
|
-
if (0 === d) {
|
|
3735
|
-
var h = 32 - 8 * c;
|
|
3736
|
-
f = (l) => (l << h) >>> h;
|
|
3737
|
-
}
|
|
3738
|
-
c = b.includes("unsigned")
|
|
3739
|
-
? function (l, m) {
|
|
3740
|
-
return m >>> 0;
|
|
3741
|
-
}
|
|
3742
|
-
: function (l, m) {
|
|
3743
|
-
return m;
|
|
3744
|
-
};
|
|
3745
|
-
ad(a, {
|
|
3746
|
-
name: b,
|
|
3747
|
-
fromWireType: f,
|
|
3748
|
-
toWireType: c,
|
|
3749
|
-
argPackAdvance: 8,
|
|
3750
|
-
readValueFromPointer: Qd(b, e, 0 !== d),
|
|
3751
|
-
fb: null,
|
|
3752
|
-
});
|
|
3753
|
-
},
|
|
3754
|
-
e: function (a, b, c) {
|
|
3755
|
-
function d(f) {
|
|
3756
|
-
f >>= 2;
|
|
3757
|
-
var h = B();
|
|
3758
|
-
return new e(h.buffer, h[f + 1], h[f]);
|
|
3759
|
-
}
|
|
3760
|
-
var e = [
|
|
3761
|
-
Int8Array,
|
|
3762
|
-
Uint8Array,
|
|
3763
|
-
Int16Array,
|
|
3764
|
-
Uint16Array,
|
|
3765
|
-
Int32Array,
|
|
3766
|
-
Uint32Array,
|
|
3767
|
-
Float32Array,
|
|
3768
|
-
Float64Array,
|
|
3769
|
-
][b];
|
|
3770
|
-
c = V(c);
|
|
3771
|
-
ad(
|
|
3772
|
-
a,
|
|
3773
|
-
{
|
|
3774
|
-
name: c,
|
|
3775
|
-
fromWireType: d,
|
|
3776
|
-
argPackAdvance: 8,
|
|
3777
|
-
readValueFromPointer: d,
|
|
3778
|
-
},
|
|
3779
|
-
{ Yc: !0 },
|
|
3780
|
-
);
|
|
3781
|
-
},
|
|
3782
|
-
y: function (a, b) {
|
|
3783
|
-
b = V(b);
|
|
3784
|
-
var c = "std::string" === b;
|
|
3785
|
-
ad(a, {
|
|
3786
|
-
name: b,
|
|
3787
|
-
fromWireType: function (d) {
|
|
3788
|
-
var e = B()[d >> 2],
|
|
3789
|
-
f = d + 4;
|
|
3790
|
-
if (c)
|
|
3791
|
-
for (var h = f, l = 0; l <= e; ++l) {
|
|
3792
|
-
var m = f + l;
|
|
3793
|
-
if (l == e || 0 == v()[m]) {
|
|
3794
|
-
h = J(h, m - h);
|
|
3795
|
-
if (void 0 === n) var n = h;
|
|
3796
|
-
else (n += String.fromCharCode(0)), (n += h);
|
|
3797
|
-
h = m + 1;
|
|
3798
|
-
}
|
|
3799
|
-
}
|
|
3800
|
-
else {
|
|
3801
|
-
n = Array(e);
|
|
3802
|
-
for (l = 0; l < e; ++l) n[l] = String.fromCharCode(v()[f + l]);
|
|
3803
|
-
n = n.join("");
|
|
3804
|
-
}
|
|
3805
|
-
Id(d);
|
|
3806
|
-
return n;
|
|
3807
|
-
},
|
|
3808
|
-
toWireType: function (d, e) {
|
|
3809
|
-
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
3810
|
-
var f = "string" == typeof e;
|
|
3811
|
-
f ||
|
|
3812
|
-
e instanceof Uint8Array ||
|
|
3813
|
-
e instanceof Uint8ClampedArray ||
|
|
3814
|
-
e instanceof Int8Array ||
|
|
3815
|
-
W("Cannot pass non-string to std::string");
|
|
3816
|
-
var h = c && f ? Fa(e) : e.length;
|
|
3817
|
-
var l = pe(4 + h + 1),
|
|
3818
|
-
m = l + 4;
|
|
3819
|
-
B()[l >> 2] = h;
|
|
3820
|
-
if (c && f) K(e, m, h + 1);
|
|
3821
|
-
else if (f)
|
|
3822
|
-
for (f = 0; f < h; ++f) {
|
|
3823
|
-
var n = e.charCodeAt(f);
|
|
3824
|
-
255 < n &&
|
|
3825
|
-
(Id(m),
|
|
3826
|
-
W(
|
|
3827
|
-
"String has UTF-16 code units that do not fit in 8 bits",
|
|
3828
|
-
));
|
|
3829
|
-
v()[m + f] = n;
|
|
3830
|
-
}
|
|
3831
|
-
else for (f = 0; f < h; ++f) v()[m + f] = e[f];
|
|
3832
|
-
null !== d && d.push(Id, l);
|
|
3833
|
-
return l;
|
|
3834
|
-
},
|
|
3835
|
-
argPackAdvance: 8,
|
|
3836
|
-
readValueFromPointer: Rc,
|
|
3837
|
-
fb: function (d) {
|
|
3838
|
-
Id(d);
|
|
3839
|
-
},
|
|
3840
|
-
});
|
|
3841
|
-
},
|
|
3842
|
-
o: function (a, b, c) {
|
|
3843
|
-
c = V(c);
|
|
3844
|
-
if (2 === b) {
|
|
3845
|
-
var d = Sd;
|
|
3846
|
-
var e = Td;
|
|
3847
|
-
var f = Ud;
|
|
3848
|
-
var h = () => w();
|
|
3849
|
-
var l = 1;
|
|
3850
|
-
} else
|
|
3851
|
-
4 === b && ((d = Vd), (e = Wd), (f = Xd), (h = () => B()), (l = 2));
|
|
3852
|
-
ad(a, {
|
|
3853
|
-
name: c,
|
|
3854
|
-
fromWireType: function (m) {
|
|
3855
|
-
for (
|
|
3856
|
-
var n = B()[m >> 2], q = h(), p, r = m + 4, k = 0;
|
|
3857
|
-
k <= n;
|
|
3858
|
-
++k
|
|
3859
|
-
) {
|
|
3860
|
-
var t = m + 4 + k * b;
|
|
3861
|
-
if (k == n || 0 == q[t >> l])
|
|
3862
|
-
(r = d(r, t - r)),
|
|
3863
|
-
void 0 === p
|
|
3864
|
-
? (p = r)
|
|
3865
|
-
: ((p += String.fromCharCode(0)), (p += r)),
|
|
3866
|
-
(r = t + b);
|
|
3867
|
-
}
|
|
3868
|
-
Id(m);
|
|
3869
|
-
return p;
|
|
3870
|
-
},
|
|
3871
|
-
toWireType: function (m, n) {
|
|
3872
|
-
"string" != typeof n &&
|
|
3873
|
-
W("Cannot pass non-string to C++ string type " + c);
|
|
3874
|
-
var q = f(n),
|
|
3875
|
-
p = pe(4 + q + b);
|
|
3876
|
-
B()[p >> 2] = q >> l;
|
|
3877
|
-
e(n, p + 4, q + b);
|
|
3878
|
-
null !== m && m.push(Id, p);
|
|
3879
|
-
return p;
|
|
3880
|
-
},
|
|
3881
|
-
argPackAdvance: 8,
|
|
3882
|
-
readValueFromPointer: Rc,
|
|
3883
|
-
fb: function (m) {
|
|
3884
|
-
Id(m);
|
|
3885
|
-
},
|
|
3886
|
-
});
|
|
3887
|
-
},
|
|
3888
|
-
h: function (a, b, c, d, e, f) {
|
|
3889
|
-
Pc[a] = { name: V(b), $b: X(c, d), mb: X(e, f), nc: [] };
|
|
3890
|
-
},
|
|
3891
|
-
c: function (a, b, c, d, e, f, h, l, m, n) {
|
|
3892
|
-
Pc[a].nc.push({
|
|
3893
|
-
Rc: V(b),
|
|
3894
|
-
Wc: c,
|
|
3895
|
-
Kb: X(d, e),
|
|
3896
|
-
Vc: f,
|
|
3897
|
-
sd: h,
|
|
3898
|
-
rd: X(l, m),
|
|
3899
|
-
td: n,
|
|
3900
|
-
});
|
|
3901
|
-
},
|
|
3902
|
-
fa: function (a, b) {
|
|
3903
|
-
b = V(b);
|
|
3904
|
-
ad(a, {
|
|
3905
|
-
dd: !0,
|
|
3906
|
-
name: b,
|
|
3907
|
-
argPackAdvance: 0,
|
|
3908
|
-
fromWireType: function () {},
|
|
3909
|
-
toWireType: function () {},
|
|
3910
|
-
});
|
|
3911
|
-
},
|
|
3912
|
-
L: function () {
|
|
3913
|
-
return 262144;
|
|
3914
|
-
},
|
|
3915
|
-
ga: function (a) {
|
|
3916
|
-
var b = we[a];
|
|
3917
|
-
b &&
|
|
3918
|
-
(delete we[a], 0 < b.readyState && 4 > b.readyState && b.abort());
|
|
3919
|
-
},
|
|
3920
|
-
_: function () {
|
|
3921
|
-
return !0;
|
|
3922
|
-
},
|
|
3923
|
-
M: function (a, b, c, d) {
|
|
3924
|
-
a == b
|
|
3925
|
-
? setTimeout(() => Dc(d))
|
|
3926
|
-
: F
|
|
3927
|
-
? postMessage({
|
|
3928
|
-
targetThread: a,
|
|
3929
|
-
cmd: "processProxyingQueue",
|
|
3930
|
-
queue: d,
|
|
3931
|
-
})
|
|
3932
|
-
: (a = N.lb[a]) &&
|
|
3933
|
-
a.postMessage({ cmd: "processProxyingQueue", queue: d });
|
|
3934
|
-
},
|
|
3935
|
-
Q: function () {
|
|
3936
|
-
return -1;
|
|
3937
|
-
},
|
|
3938
|
-
n: function (a, b, c) {
|
|
3939
|
-
a = Od(a);
|
|
3940
|
-
b = Zd(b, "emval::as");
|
|
3941
|
-
var d = [],
|
|
3942
|
-
e = Ad(d);
|
|
3943
|
-
B()[c >> 2] = e;
|
|
3944
|
-
return b.toWireType(d, a);
|
|
3945
|
-
},
|
|
3946
|
-
la: function (a, b, c, d) {
|
|
3947
|
-
a = be[a];
|
|
3948
|
-
b = Od(b);
|
|
3949
|
-
c = ae(c);
|
|
3950
|
-
a(b, c, null, d);
|
|
3951
|
-
},
|
|
3952
|
-
d: Nd,
|
|
3953
|
-
r: function (a) {
|
|
3954
|
-
if (0 === a) return Ad(ce());
|
|
3955
|
-
a = ae(a);
|
|
3956
|
-
return Ad(ce()[a]);
|
|
3957
|
-
},
|
|
3958
|
-
ka: function (a, b) {
|
|
3959
|
-
var c = ee(a, b),
|
|
3960
|
-
d = c[0];
|
|
3961
|
-
b =
|
|
3962
|
-
d.name +
|
|
3963
|
-
"_$" +
|
|
3964
|
-
c
|
|
3965
|
-
.slice(1)
|
|
3966
|
-
.map(function (h) {
|
|
3967
|
-
return h.name;
|
|
3968
|
-
})
|
|
3969
|
-
.join("_") +
|
|
3970
|
-
"$";
|
|
3971
|
-
var e = fe[b];
|
|
3972
|
-
if (void 0 !== e) return e;
|
|
3973
|
-
var f = Array(a - 1);
|
|
3974
|
-
e = de((h, l, m, n) => {
|
|
3975
|
-
for (var q = 0, p = 0; p < a - 1; ++p)
|
|
3976
|
-
(f[p] = c[p + 1].readValueFromPointer(n + q)),
|
|
3977
|
-
(q += c[p + 1].argPackAdvance);
|
|
3978
|
-
h = h[l].apply(h, f);
|
|
3979
|
-
for (p = 0; p < a - 1; ++p) c[p + 1].Oc && c[p + 1].Oc(f[p]);
|
|
3980
|
-
if (!d.dd) return d.toWireType(m, h);
|
|
3981
|
-
});
|
|
3982
|
-
return (fe[b] = e);
|
|
3983
|
-
},
|
|
3984
|
-
D: function (a, b) {
|
|
3985
|
-
a = Od(a);
|
|
3986
|
-
b = Od(b);
|
|
3987
|
-
return Ad(a[b]);
|
|
3988
|
-
},
|
|
3989
|
-
l: function (a) {
|
|
3990
|
-
4 < a && (Y[a].bc += 1);
|
|
3991
|
-
},
|
|
3992
|
-
q: function (a, b, c, d) {
|
|
3993
|
-
a = Od(a);
|
|
3994
|
-
var e = he[b];
|
|
3995
|
-
e || ((e = ge(b)), (he[b] = e));
|
|
3996
|
-
return e(a, c, d);
|
|
3997
|
-
},
|
|
3998
|
-
C: function (a) {
|
|
3999
|
-
return Ad(ae(a));
|
|
4000
|
-
},
|
|
4001
|
-
m: function (a) {
|
|
4002
|
-
var b = Od(a);
|
|
4003
|
-
Qc(b);
|
|
4004
|
-
Nd(a);
|
|
4005
|
-
},
|
|
4006
|
-
j: function (a, b) {
|
|
4007
|
-
a = Zd(a, "_emval_take_value");
|
|
4008
|
-
a = a.readValueFromPointer(b);
|
|
4009
|
-
return Ad(a);
|
|
4010
|
-
},
|
|
4011
|
-
aa: function (a, b) {
|
|
4012
|
-
var c = Date;
|
|
4013
|
-
a = B()[a >> 2] + 4294967296 * z()[(a + 4) >> 2];
|
|
4014
|
-
c = new c(1e3 * a);
|
|
4015
|
-
z()[b >> 2] = c.getSeconds();
|
|
4016
|
-
z()[(b + 4) >> 2] = c.getMinutes();
|
|
4017
|
-
z()[(b + 8) >> 2] = c.getHours();
|
|
4018
|
-
z()[(b + 12) >> 2] = c.getDate();
|
|
4019
|
-
z()[(b + 16) >> 2] = c.getMonth();
|
|
4020
|
-
z()[(b + 20) >> 2] = c.getFullYear() - 1900;
|
|
4021
|
-
z()[(b + 24) >> 2] = c.getDay();
|
|
4022
|
-
a = le(c) | 0;
|
|
4023
|
-
z()[(b + 28) >> 2] = a;
|
|
4024
|
-
z()[(b + 36) >> 2] = -(60 * c.getTimezoneOffset());
|
|
4025
|
-
a = new Date(c.getFullYear(), 6, 1).getTimezoneOffset();
|
|
4026
|
-
var d = new Date(c.getFullYear(), 0, 1).getTimezoneOffset();
|
|
4027
|
-
c = (a != d && c.getTimezoneOffset() == Math.min(d, a)) | 0;
|
|
4028
|
-
z()[(b + 32) >> 2] = c;
|
|
4029
|
-
},
|
|
4030
|
-
ba: function (a) {
|
|
4031
|
-
var b = new Date(
|
|
4032
|
-
z()[(a + 20) >> 2] + 1900,
|
|
4033
|
-
z()[(a + 16) >> 2],
|
|
4034
|
-
z()[(a + 12) >> 2],
|
|
4035
|
-
z()[(a + 8) >> 2],
|
|
4036
|
-
z()[(a + 4) >> 2],
|
|
4037
|
-
z()[a >> 2],
|
|
4038
|
-
0,
|
|
4039
|
-
),
|
|
4040
|
-
c = z()[(a + 32) >> 2],
|
|
4041
|
-
d = b.getTimezoneOffset(),
|
|
4042
|
-
e = new Date(b.getFullYear(), 6, 1).getTimezoneOffset(),
|
|
4043
|
-
f = new Date(b.getFullYear(), 0, 1).getTimezoneOffset(),
|
|
4044
|
-
h = Math.min(f, e);
|
|
4045
|
-
0 > c
|
|
4046
|
-
? (z()[(a + 32) >> 2] = Number(e != f && h == d))
|
|
4047
|
-
: 0 < c != (h == d) &&
|
|
4048
|
-
((e = Math.max(f, e)),
|
|
4049
|
-
b.setTime(b.getTime() + 6e4 * ((0 < c ? h : e) - d)));
|
|
4050
|
-
z()[(a + 24) >> 2] = b.getDay();
|
|
4051
|
-
c = le(b) | 0;
|
|
4052
|
-
z()[(a + 28) >> 2] = c;
|
|
4053
|
-
z()[a >> 2] = b.getSeconds();
|
|
4054
|
-
z()[(a + 4) >> 2] = b.getMinutes();
|
|
4055
|
-
z()[(a + 8) >> 2] = b.getHours();
|
|
4056
|
-
z()[(a + 12) >> 2] = b.getDate();
|
|
4057
|
-
z()[(a + 16) >> 2] = b.getMonth();
|
|
4058
|
-
z()[(a + 20) >> 2] = b.getYear();
|
|
4059
|
-
return (b.getTime() / 1e3) | 0;
|
|
4060
|
-
},
|
|
4061
|
-
N: me,
|
|
4062
|
-
O: ne,
|
|
4063
|
-
ca: function (a, b, c) {
|
|
4064
|
-
function d(n) {
|
|
4065
|
-
return (n = n.toTimeString().match(/\(([A-Za-z ]+)\)$/))
|
|
4066
|
-
? n[1]
|
|
4067
|
-
: "GMT";
|
|
4068
|
-
}
|
|
4069
|
-
var e = new Date().getFullYear(),
|
|
4070
|
-
f = new Date(e, 0, 1),
|
|
4071
|
-
h = new Date(e, 6, 1);
|
|
4072
|
-
e = f.getTimezoneOffset();
|
|
4073
|
-
var l = h.getTimezoneOffset(),
|
|
4074
|
-
m = Math.max(e, l);
|
|
4075
|
-
B()[a >> 2] = 60 * m;
|
|
4076
|
-
z()[b >> 2] = Number(e != l);
|
|
4077
|
-
a = d(f);
|
|
4078
|
-
b = d(h);
|
|
4079
|
-
a = oe(a);
|
|
4080
|
-
b = oe(b);
|
|
4081
|
-
l < e
|
|
4082
|
-
? ((B()[c >> 2] = a), (B()[(c + 4) >> 2] = b))
|
|
4083
|
-
: ((B()[c >> 2] = b), (B()[(c + 4) >> 2] = a));
|
|
4084
|
-
},
|
|
4085
|
-
b: function () {
|
|
4086
|
-
ya("");
|
|
4087
|
-
},
|
|
4088
|
-
E: function () {
|
|
4089
|
-
var a = D.allowedThreads;
|
|
4090
|
-
return a ? a : navigator.hardwareConcurrency;
|
|
4091
|
-
},
|
|
4092
|
-
B: function (a, b, c) {
|
|
4093
|
-
qe.length = 0;
|
|
4094
|
-
var d;
|
|
4095
|
-
for (c >>= 2; (d = v()[b++]); )
|
|
4096
|
-
(c += (105 != d) & c),
|
|
4097
|
-
qe.push(105 == d ? z()[c] : ka()[c++ >> 1]),
|
|
4098
|
-
++c;
|
|
4099
|
-
return lb[a].apply(null, qe);
|
|
4100
|
-
},
|
|
4101
|
-
t: function () {},
|
|
4102
|
-
$: function () {
|
|
4103
|
-
return Date.now();
|
|
4104
|
-
},
|
|
4105
|
-
f: () => performance.timeOrigin + performance.now(),
|
|
4106
|
-
A: function () {
|
|
4107
|
-
return "undefined" != typeof SharedArrayBuffer;
|
|
4108
|
-
},
|
|
4109
|
-
Y: function (a, b, c) {
|
|
4110
|
-
v().copyWithin(a, b, b + c);
|
|
4111
|
-
},
|
|
4112
|
-
P: function (a, b, c) {
|
|
4113
|
-
ve.length = b;
|
|
4114
|
-
c >>= 3;
|
|
4115
|
-
for (var d = 0; d < b; d++) ve[d] = ka()[c + d];
|
|
4116
|
-
return (0 > a ? lb[-a - 1] : Te[a]).apply(null, ve);
|
|
4117
|
-
},
|
|
4118
|
-
J: function (a) {
|
|
4119
|
-
var b = v().length;
|
|
4120
|
-
a >>>= 0;
|
|
4121
|
-
if (a <= b || 2147483648 < a) return !1;
|
|
4122
|
-
for (var c = 1; 4 >= c; c *= 2) {
|
|
4123
|
-
var d = Math,
|
|
4124
|
-
e = d.min;
|
|
4125
|
-
var f = Math.max(a, b + 2097152 / c);
|
|
4126
|
-
f += (65536 - (f % 65536)) % 65536;
|
|
4127
|
-
a: {
|
|
4128
|
-
var h = u.buffer;
|
|
4129
|
-
try {
|
|
4130
|
-
u.grow(
|
|
4131
|
-
(e.call(d, 2147483648, f) - h.byteLength + 65535) >>> 16,
|
|
4132
|
-
);
|
|
4133
|
-
ca();
|
|
4134
|
-
var l = 1;
|
|
4135
|
-
break a;
|
|
4136
|
-
} catch (m) {}
|
|
4137
|
-
l = void 0;
|
|
4138
|
-
}
|
|
4139
|
-
if (l) return !0;
|
|
4140
|
-
}
|
|
4141
|
-
return !1;
|
|
4142
|
-
},
|
|
4143
|
-
ha: function (a, b, c, d, e) {
|
|
4144
|
-
function f(I) {
|
|
4145
|
-
if (A) I();
|
|
4146
|
-
else if (!Na && !Aa)
|
|
4147
|
-
try {
|
|
4148
|
-
if ((I(), !Pa()))
|
|
4149
|
-
try {
|
|
4150
|
-
F ? Ic(Ba) : wc(Ba);
|
|
4151
|
-
} catch (Xa) {
|
|
4152
|
-
Ac(Xa);
|
|
4153
|
-
}
|
|
4154
|
-
} catch (Xa) {
|
|
4155
|
-
Ac(Xa);
|
|
4156
|
-
}
|
|
4157
|
-
}
|
|
4158
|
-
Oa += 1;
|
|
4159
|
-
var h = a + 112,
|
|
4160
|
-
l = J(h),
|
|
4161
|
-
m = B()[(h + 36) >> 2],
|
|
4162
|
-
n = B()[(h + 40) >> 2],
|
|
4163
|
-
q = B()[(h + 44) >> 2],
|
|
4164
|
-
p = B()[(h + 48) >> 2],
|
|
4165
|
-
r = B()[(h + 52) >> 2],
|
|
4166
|
-
k = !!(r & 4),
|
|
4167
|
-
t = !!(r & 32),
|
|
4168
|
-
x = !!(r & 16),
|
|
4169
|
-
A = !!(r & 64),
|
|
4170
|
-
G = (I) => {
|
|
4171
|
-
--Oa;
|
|
4172
|
-
f(() => {
|
|
4173
|
-
m ? Hc(m)(I) : b && b(I);
|
|
4174
|
-
});
|
|
4175
|
-
},
|
|
4176
|
-
H = (I) => {
|
|
4177
|
-
f(() => {
|
|
4178
|
-
q ? Hc(q)(I) : d && d(I);
|
|
4179
|
-
});
|
|
4180
|
-
},
|
|
4181
|
-
y = (I) => {
|
|
4182
|
-
--Oa;
|
|
4183
|
-
f(() => {
|
|
4184
|
-
n ? Hc(n)(I) : c && c(I);
|
|
4185
|
-
});
|
|
4186
|
-
},
|
|
4187
|
-
R = (I) => {
|
|
4188
|
-
f(() => {
|
|
4189
|
-
p ? Hc(p)(I) : e && e(I);
|
|
4190
|
-
});
|
|
4191
|
-
};
|
|
4192
|
-
r = (I) => {
|
|
4193
|
-
ze(I, G, y, H, R);
|
|
4194
|
-
};
|
|
4195
|
-
var C = (I, Xa) => {
|
|
4196
|
-
Ae(
|
|
4197
|
-
I,
|
|
4198
|
-
Xa.response,
|
|
4199
|
-
(Ya) => {
|
|
4200
|
-
--Oa;
|
|
4201
|
-
f(() => {
|
|
4202
|
-
m ? Hc(m)(Ya) : b && b(Ya);
|
|
4203
|
-
});
|
|
4204
|
-
},
|
|
4205
|
-
(Ya) => {
|
|
4206
|
-
--Oa;
|
|
4207
|
-
f(() => {
|
|
4208
|
-
m ? Hc(m)(Ya) : b && b(Ya);
|
|
4209
|
-
});
|
|
4210
|
-
},
|
|
4211
|
-
);
|
|
4212
|
-
},
|
|
4213
|
-
aa = (I) => {
|
|
4214
|
-
ze(I, C, y, H, R);
|
|
4215
|
-
};
|
|
4216
|
-
if ("EM_IDB_STORE" === l)
|
|
4217
|
-
(l = B()[(h + 84) >> 2]),
|
|
4218
|
-
Ae(a, v().slice(l, l + B()[(h + 88) >> 2]), G, y);
|
|
4219
|
-
else if ("EM_IDB_DELETE" === l) Ce(a, G, y);
|
|
4220
|
-
else if (x) {
|
|
4221
|
-
if (t) return 0;
|
|
4222
|
-
ze(a, k ? C : G, y, H, R);
|
|
4223
|
-
} else Be(a, G, t ? y : k ? aa : r);
|
|
4224
|
-
return a;
|
|
4225
|
-
},
|
|
4226
|
-
Z: function () {
|
|
4227
|
-
throw "unwind";
|
|
4228
|
-
},
|
|
4229
|
-
S: Ge,
|
|
4230
|
-
T: He,
|
|
4231
|
-
z: wc,
|
|
4232
|
-
w: Ie,
|
|
4233
|
-
v: Je,
|
|
4234
|
-
F: Ke,
|
|
4235
|
-
u: Le,
|
|
4236
|
-
ia: function () {
|
|
4237
|
-
var a = stackTrace(),
|
|
4238
|
-
b = Fa(a) + 1,
|
|
4239
|
-
c = pe(b);
|
|
4240
|
-
K(a, c, b);
|
|
4241
|
-
return c;
|
|
4242
|
-
},
|
|
4243
|
-
H: Me,
|
|
4244
|
-
a: u || D.wasmMemory,
|
|
4245
|
-
ja: Qe,
|
|
4246
|
-
I: function (a, b, c, d) {
|
|
4247
|
-
return Qe(a, b, c, d);
|
|
4248
|
-
},
|
|
4249
|
-
};
|
|
4250
|
-
(function () {
|
|
4251
|
-
function a(c, d) {
|
|
4252
|
-
c = c.exports;
|
|
4253
|
-
D.asm = c;
|
|
4254
|
-
N.Cc.push(D.asm.ta);
|
|
4255
|
-
Ia = D.asm.ya;
|
|
4256
|
-
Ka.unshift(D.asm.oa);
|
|
4257
|
-
za = d;
|
|
4258
|
-
N.ed(() => eb("wasm-instantiate"));
|
|
4259
|
-
return c;
|
|
4260
|
-
}
|
|
4261
|
-
var b = { a: Ve };
|
|
4262
|
-
db("wasm-instantiate");
|
|
4263
|
-
if (D.instantiateWasm)
|
|
4264
|
-
try {
|
|
4265
|
-
return D.instantiateWasm(b, a);
|
|
4266
|
-
} catch (c) {
|
|
4267
|
-
E("Module.instantiateWasm callback failed with error: " + c), na(c);
|
|
4268
|
-
}
|
|
4269
|
-
kb(b, function (c) {
|
|
4270
|
-
a(c.instance, c.module);
|
|
4271
|
-
}).catch(na);
|
|
4272
|
-
return {};
|
|
4273
|
-
})();
|
|
4274
|
-
function Id() {
|
|
4275
|
-
return (Id = D.asm.pa).apply(null, arguments);
|
|
4276
|
-
}
|
|
4277
|
-
function pe() {
|
|
4278
|
-
return (pe = D.asm.qa).apply(null, arguments);
|
|
4279
|
-
}
|
|
4280
|
-
var zc = (D._fflush = function () {
|
|
4281
|
-
return (zc = D._fflush = D.asm.ra).apply(null, arguments);
|
|
4282
|
-
}),
|
|
4283
|
-
Cc = (D._pthread_self = function () {
|
|
4284
|
-
return (Cc = D._pthread_self = D.asm.sa).apply(null, arguments);
|
|
4285
|
-
});
|
|
4286
|
-
D.__emscripten_tls_init = function () {
|
|
4287
|
-
return (D.__emscripten_tls_init = D.asm.ta).apply(null, arguments);
|
|
4288
|
-
};
|
|
4289
|
-
function Db() {
|
|
4290
|
-
return (Db = D.asm.ua).apply(null, arguments);
|
|
4291
|
-
}
|
|
4292
|
-
var Hd = (D.___getTypeName = function () {
|
|
4293
|
-
return (Hd = D.___getTypeName = D.asm.va).apply(null, arguments);
|
|
4294
|
-
});
|
|
4295
|
-
D.__embind_initialize_bindings = function () {
|
|
4296
|
-
return (D.__embind_initialize_bindings = D.asm.wa).apply(null, arguments);
|
|
4297
|
-
};
|
|
4298
|
-
function yc() {
|
|
4299
|
-
return (yc = D.asm.xa).apply(null, arguments);
|
|
4300
|
-
}
|
|
4301
|
-
var Ue = (D.__emscripten_thread_init = function () {
|
|
4302
|
-
return (Ue = D.__emscripten_thread_init = D.asm.za).apply(
|
|
4303
|
-
null,
|
|
4304
|
-
arguments,
|
|
4305
|
-
);
|
|
4306
|
-
});
|
|
4307
|
-
D.__emscripten_thread_crashed = function () {
|
|
4308
|
-
return (D.__emscripten_thread_crashed = D.asm.Aa).apply(null, arguments);
|
|
4309
|
-
};
|
|
4310
|
-
function ue() {
|
|
4311
|
-
return (ue = D.asm.Ba).apply(null, arguments);
|
|
4312
|
-
}
|
|
4313
|
-
var Yd = (D.__emscripten_proxy_execute_task_queue = function () {
|
|
4314
|
-
return (Yd = D.__emscripten_proxy_execute_task_queue = D.asm.Ca).apply(
|
|
4315
|
-
null,
|
|
4316
|
-
arguments,
|
|
4317
|
-
);
|
|
4318
|
-
});
|
|
4319
|
-
function Bc() {
|
|
4320
|
-
return (Bc = D.asm.Da).apply(null, arguments);
|
|
4321
|
-
}
|
|
4322
|
-
var Ic = (D.__emscripten_thread_exit = function () {
|
|
4323
|
-
return (Ic = D.__emscripten_thread_exit = D.asm.Ea).apply(
|
|
4324
|
-
null,
|
|
4325
|
-
arguments,
|
|
4326
|
-
);
|
|
4327
|
-
});
|
|
4328
|
-
function Ec() {
|
|
4329
|
-
return (Ec = D.asm.Fa).apply(null, arguments);
|
|
4330
|
-
}
|
|
4331
|
-
function se() {
|
|
4332
|
-
return (se = D.asm.Ga).apply(null, arguments);
|
|
4333
|
-
}
|
|
4334
|
-
function Fc() {
|
|
4335
|
-
return (Fc = D.asm.Ha).apply(null, arguments);
|
|
4336
|
-
}
|
|
4337
|
-
function te() {
|
|
4338
|
-
return (te = D.asm.Ia).apply(null, arguments);
|
|
4339
|
-
}
|
|
4340
|
-
D.dynCall_ji = function () {
|
|
4341
|
-
return (D.dynCall_ji = D.asm.Ja).apply(null, arguments);
|
|
4342
|
-
};
|
|
4343
|
-
D.dynCall_jiji = function () {
|
|
4344
|
-
return (D.dynCall_jiji = D.asm.Ka).apply(null, arguments);
|
|
4345
|
-
};
|
|
4346
|
-
D.dynCall_viijii = function () {
|
|
4347
|
-
return (D.dynCall_viijii = D.asm.La).apply(null, arguments);
|
|
4348
|
-
};
|
|
4349
|
-
D.dynCall_iiiiij = function () {
|
|
4350
|
-
return (D.dynCall_iiiiij = D.asm.Ma).apply(null, arguments);
|
|
4351
|
-
};
|
|
4352
|
-
D.dynCall_iiiiijj = function () {
|
|
4353
|
-
return (D.dynCall_iiiiijj = D.asm.Na).apply(null, arguments);
|
|
4354
|
-
};
|
|
4355
|
-
D.dynCall_iiiiiijj = function () {
|
|
4356
|
-
return (D.dynCall_iiiiiijj = D.asm.Oa).apply(null, arguments);
|
|
4357
|
-
};
|
|
4358
|
-
D.__ZN2MB2NN28LinearDefragmentingAllocator10Allocation4nullE = 14768;
|
|
4359
|
-
D.___start_em_js = 60928;
|
|
4360
|
-
D.___stop_em_js = 61921;
|
|
4361
|
-
D.addRunDependency = db;
|
|
4362
|
-
D.removeRunDependency = eb;
|
|
4363
|
-
D.FS_createPath = kc;
|
|
4364
|
-
D.FS_createDataFile = mc;
|
|
4365
|
-
D.FS_createPreloadedFile = qc;
|
|
4366
|
-
D.FS_createLazyFile = oc;
|
|
4367
|
-
D.FS_createDevice = Ta;
|
|
4368
|
-
D.FS_unlink = bc;
|
|
4369
|
-
D.keepRuntimeAlive = Pa;
|
|
4370
|
-
D.wasmMemory = u;
|
|
4371
|
-
D.ExitStatus = mb;
|
|
4372
|
-
D.PThread = N;
|
|
4373
|
-
var We;
|
|
4374
|
-
cb = function Xe() {
|
|
4375
|
-
We || Ye();
|
|
4376
|
-
We || (cb = Xe);
|
|
4377
|
-
};
|
|
4378
|
-
function Ye() {
|
|
4379
|
-
function a() {
|
|
4380
|
-
if (!We && ((We = !0), (D.calledRun = !0), !Aa)) {
|
|
4381
|
-
Qa();
|
|
4382
|
-
ma(D);
|
|
4383
|
-
if (D.onRuntimeInitialized) D.onRuntimeInitialized();
|
|
4384
|
-
if (!F) {
|
|
4385
|
-
if (D.postRun)
|
|
4386
|
-
for (
|
|
4387
|
-
"function" == typeof D.postRun && (D.postRun = [D.postRun]);
|
|
4388
|
-
D.postRun.length;
|
|
4389
|
-
|
|
4390
|
-
) {
|
|
4391
|
-
var b = D.postRun.shift();
|
|
4392
|
-
Ma.unshift(b);
|
|
4393
|
-
}
|
|
4394
|
-
Za(Ma);
|
|
4395
|
-
}
|
|
4396
|
-
}
|
|
4397
|
-
}
|
|
4398
|
-
if (!(0 < ab))
|
|
4399
|
-
if (F) ma(D), Qa(), startWorker(D);
|
|
4400
|
-
else {
|
|
4401
|
-
if (D.preRun)
|
|
4402
|
-
for (
|
|
4403
|
-
"function" == typeof D.preRun && (D.preRun = [D.preRun]);
|
|
4404
|
-
D.preRun.length;
|
|
19
|
+
function g(){u.buffer!=ba.buffer&&ca();return ba}function v(){u.buffer!=ba.buffer&&ca();return da}function ea(){u.buffer!=ba.buffer&&ca();return fa}function w(){u.buffer!=ba.buffer&&ca();return ha}function z(){u.buffer!=ba.buffer&&ca();return ia}function B(){u.buffer!=ba.buffer&&ca();return ja}function ka(){u.buffer!=ba.buffer&&ca();return la}var D;D||(D=typeof createModule !== 'undefined' ? createModule : {});var ma,na;D.ready=new Promise(function(a,b){ma=a;na=b});D.Ub||(D.Ub=0);D.Ub++;
|
|
20
|
+
D.ENVIRONMENT_IS_PTHREAD||D.$ww||function(a){function b(m,n,q){var p=new XMLHttpRequest;p.open("GET",m,!0);p.responseType="arraybuffer";p.onprogress=function(r){var k=n;r.total&&(k=r.total);if(r.loaded){p.Fc?D.ub[m].loaded=r.loaded:(p.Fc=!0,D.ub||(D.ub={}),D.ub[m]={loaded:r.loaded,total:k});var t=k=r=0,x;for(x in D.ub){var A=D.ub[x];r+=A.total;k+=A.loaded;t++}r=Math.ceil(r*D.Ub/t);D.setStatus&&D.setStatus("Downloading data... ("+k+"/"+r+")")}else!D.ub&&D.setStatus&&D.setStatus("Downloading data...")};
|
|
21
|
+
p.onerror=function(){throw Error("NetworkError for: "+m);};p.onload=function(){if(200==p.status||304==p.status||206==p.status||0==p.status&&p.response)q(p.response);else throw Error(p.statusText+" : "+p.responseURL);};p.send(null)}function c(m){console.error("package error:",m)}function d(){function m(r,k,t){this.start=r;this.end=k;this.audio=t}function n(r){if(!r)throw"Loading data file failed."+Error().stack;if(r.constructor.name!==ArrayBuffer.name)throw"bad input to processPackageData"+Error().stack;
|
|
22
|
+
r=new Uint8Array(r);m.prototype.Kc=r;r=a.files;for(var k=0;k<r.length;++k)m.prototype.cc[r[k].filename].onload();D.removeRunDependency("datafile_/Users/ivan/Dev/imagecapture-browser/packages/capture-wasm/dist/advanced-threads/capture-wasm.data")}D.FS_createPath("/","microblink",!0,!0);D.FS_createPath("/microblink","capture",!0,!0);m.prototype={cc:{},open:function(r,k){this.name=k;this.cc[k]=this;D.addRunDependency("fp "+this.name)},send:function(){},onload:function(){this.finish(this.Kc.subarray(this.start,
|
|
23
|
+
this.end))},finish:function(r){D.FS_createDataFile(this.name,null,r,!0,!0,!0);D.removeRunDependency("fp "+this.name);this.cc[this.name]=null}};for(var q=a.files,p=0;p<q.length;++p)(new m(q[p].start,q[p].end,q[p].audio||0)).open("GET",q[p].filename);D.addRunDependency("datafile_/Users/ivan/Dev/imagecapture-browser/packages/capture-wasm/dist/advanced-threads/capture-wasm.data");D.tc||(D.tc={});D.tc["/Users/ivan/Dev/imagecapture-browser/packages/capture-wasm/dist/advanced-threads/capture-wasm.data"]=
|
|
24
|
+
{Dd:!1};l?(n(l),l=null):h=n}"object"===typeof window?window.encodeURIComponent(window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/"):"undefined"===typeof process&&"undefined"!==typeof location&&encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/");"function"!==typeof D.locateFilePackage||D.locateFile||(D.locateFile=D.locateFilePackage,E("warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)"));
|
|
25
|
+
var e=D.locateFile?D.locateFile("capture-wasm.data",""):"capture-wasm.data",f=a.remote_package_size,h=null,l=D.getPreloadedPackage?D.getPreloadedPackage(e,f):null;l||b(e,f,function(m){h?(h(m),h=null):l=m},c);D.calledRun?d():(D.preRun||(D.preRun=[]),D.preRun.push(d))}({files:[{filename:"/microblink/capture/Model_021c530a7efe77c0e90c4bfe19c3bebaaceee433103e4e6d4f1424d921885982.strop",start:0,end:308674},{filename:"/microblink/capture/Model_0c0458bedf340ad5858a25dd463e63f57ddb42e69c3c5ff0c572a528356b020d.strop",
|
|
26
|
+
start:308674,end:429092},{filename:"/microblink/capture/Model_2880751121560047e6dc571bc8ff4683aeb863886f7c0789234594ceb1e23577.strop",start:429092,end:433030},{filename:"/microblink/capture/Model_3b11c3ffacbbf390b932fb9a7024f1a0016f66281ea8c790f8b5903374ad89c2.strop",start:433030,end:721810},{filename:"/microblink/capture/Model_e4f1f62f68ec44b71ecad3fb3f3b48fe3790beb5ab325611e17d63af06e9f644.strop",start:721810,end:778324},{filename:"/microblink/capture/Model_ed586fd6ca47c8eebb513c4ffaaacc2c54e92162b145062d7022519fba0911de.strop",
|
|
27
|
+
start:778324,end:1491556},{filename:"/microblink/capture/Model_f2874f5766b779c063dbe30467979163497dc4b29c43bab23d70c798ee32993a.strop",start:1491556,end:1573062}],remote_package_size:1573062});D.onAbort=function(a){E("Aborted with message: "+a);try{throw new WebAssembly.RuntimeError(a);}catch(b){E("Stacktrace: "+b.stack)}};
|
|
28
|
+
if("object"==typeof window){D.arguments=window.location.search.substr(1).trim().split("&");for(let a=0;a<D.arguments.length;++a)D.arguments[a]=decodeURI(D.arguments[a]);D.arguments[0]||(D.arguments=[])}var oa=Object.assign({},D),pa="./this.program",qa=(a,b)=>{throw b;},F=D.ENVIRONMENT_IS_PTHREAD||!1,ra="";function sa(a){return D.locateFile?D.locateFile(a,ra):ra+a}var ta,ua,va;ra=self.location.href;_scriptDir&&(ra=_scriptDir);
|
|
29
|
+
ra=0!==ra.indexOf("blob:")?ra.substr(0,ra.replace(/[?#].*/,"").lastIndexOf("/")+1):"";ta=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);return b.responseText};va=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)};ua=(a,b,c)=>{var d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=()=>{200==d.status||0==d.status&&d.response?b(d.response):c()};d.onerror=c;d.send(null)};
|
|
30
|
+
var wa=D.print||console.log.bind(console),E=D.printErr||console.warn.bind(console);Object.assign(D,oa);oa=null;D.thisProgram&&(pa=D.thisProgram);D.quit&&(qa=D.quit);var xa;D.wasmBinary&&(xa=D.wasmBinary);var noExitRuntime=D.noExitRuntime||!1;"object"!=typeof WebAssembly&&ya("no native wasm support detected");var u,za,Aa=!1,Ba,Ca="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;
|
|
31
|
+
function Da(a,b,c){var d=b+c;for(c=b;a[c]&&!(c>=d);)++c;if(16<c-b&&a.buffer&&Ca)return Ca.decode(a.buffer instanceof SharedArrayBuffer?a.slice(b,c):a.subarray(b,c));for(d="";b<c;){var e=a[b++];if(e&128){var f=a[b++]&63;if(192==(e&224))d+=String.fromCharCode((e&31)<<6|f);else{var h=a[b++]&63;e=224==(e&240)?(e&15)<<12|f<<6|h:(e&7)<<18|f<<12|h<<6|a[b++]&63;65536>e?d+=String.fromCharCode(e):(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023))}}else d+=String.fromCharCode(e)}return d}
|
|
32
|
+
function J(a,b){return a?Da(v(),a,b):""}function Ea(a,b,c,d){if(!(0<d))return 0;var e=c;d=c+d-1;for(var f=0;f<a.length;++f){var h=a.charCodeAt(f);if(55296<=h&&57343>=h){var l=a.charCodeAt(++f);h=65536+((h&1023)<<10)|l&1023}if(127>=h){if(c>=d)break;b[c++]=h}else{if(2047>=h){if(c+1>=d)break;b[c++]=192|h>>6}else{if(65535>=h){if(c+2>=d)break;b[c++]=224|h>>12}else{if(c+3>=d)break;b[c++]=240|h>>18;b[c++]=128|h>>12&63}b[c++]=128|h>>6&63}b[c++]=128|h&63}}b[c]=0;return c-e}
|
|
33
|
+
function K(a,b,c){Ea(a,v(),b,c)}function Fa(a){for(var b=0,c=0;c<a.length;++c){var d=a.charCodeAt(c);127>=d?b++:2047>=d?b+=2:55296<=d&&57343>=d?(b+=4,++c):b+=3}return b}var ba,da,fa,ha,ia,ja,Ga,la;function ca(){var a=u.buffer;D.HEAP8=ba=new Int8Array(a);D.HEAP16=fa=new Int16Array(a);D.HEAP32=ia=new Int32Array(a);D.HEAPU8=da=new Uint8Array(a);D.HEAPU16=ha=new Uint16Array(a);D.HEAPU32=ja=new Uint32Array(a);D.HEAPF32=Ga=new Float32Array(a);D.HEAPF64=la=new Float64Array(a)}var Ha=D.INITIAL_MEMORY||209715200;
|
|
34
|
+
262144<=Ha||ya("INITIAL_MEMORY should be larger than STACK_SIZE, was "+Ha+"! (STACK_SIZE=262144)");
|
|
35
|
+
if(F)u=D.wasmMemory;else if(D.wasmMemory)u=D.wasmMemory;else if(u=new WebAssembly.Memory({initial:Ha/65536,maximum:32768,shared:!0}),!(u.buffer instanceof SharedArrayBuffer))throw E("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"),Error("bad memory");ca();Ha=u.buffer.byteLength;var Ia,Ja=[],Ka=[],La=[],Ma=[],Na=!1,Oa=0;
|
|
36
|
+
function Pa(){return noExitRuntime||0<Oa}function Qa(){F||(D.noFSInit||Ra||(Ra=!0,Sa(),D.stdin=D.stdin,D.stdout=D.stdout,D.stderr=D.stderr,D.stdin?Ta("/dev","stdin",D.stdin):Ua("/dev/tty","/dev/stdin"),D.stdout?Ta("/dev","stdout",null,D.stdout):Ua("/dev/tty","/dev/stdout"),D.stderr?Ta("/dev","stderr",null,D.stderr):Ua("/dev/tty1","/dev/stderr"),Va("/dev/stdin",0),Va("/dev/stdout",1),Va("/dev/stderr",1)),Wa=!1,Za(Ka))}function $a(){var a=D.preRun.shift();Ja.unshift(a)}var ab=0,bb=null,cb=null;
|
|
37
|
+
function db(){ab++;D.monitorRunDependencies&&D.monitorRunDependencies(ab)}function eb(){ab--;D.monitorRunDependencies&&D.monitorRunDependencies(ab);if(0==ab&&(null!==bb&&(clearInterval(bb),bb=null),cb)){var a=cb;cb=null;a()}}function ya(a){if(D.onAbort)D.onAbort(a);a="Aborted("+a+")";E(a);Aa=!0;Ba=1;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");na(a);throw a;}function fb(a){return a.startsWith("data:application/octet-stream;base64,")}var gb;gb="capture-wasm.wasm";
|
|
38
|
+
fb(gb)||(gb=sa(gb));function hb(a){try{if(a==gb&&xa)return new Uint8Array(xa);if(va)return va(a);throw"both async and sync fetching of the wasm failed";}catch(b){ya(b)}}function ib(a){return xa||"function"!=typeof fetch?Promise.resolve().then(function(){return hb(a)}):fetch(a,{credentials:"same-origin"}).then(function(b){if(!b.ok)throw"failed to load wasm binary file at '"+a+"'";return b.arrayBuffer()}).catch(function(){return hb(a)})}
|
|
39
|
+
function jb(a,b,c){return ib(a).then(function(d){return WebAssembly.instantiate(d,b)}).then(function(d){return d}).then(c,function(d){E("failed to asynchronously prepare wasm: "+d);ya(d)})}
|
|
40
|
+
function kb(a,b){var c=gb;return xa||"function"!=typeof WebAssembly.instantiateStreaming||fb(c)||"function"!=typeof fetch?jb(c,a,b):fetch(c,{credentials:"same-origin"}).then(function(d){return WebAssembly.instantiateStreaming(d,a).then(b,function(e){E("wasm streaming compile failed: "+e);E("falling back to ArrayBuffer instantiation");return jb(c,a,b)})})}var L,M,lb={61921:(a,b,c,d)=>{a=J(a);b=J(b);c=J(c);d=J(d);throw Error(a+b+c+d);},62137:(a,b)=>{a=J(a);b=J(b);throw Error(a+b);}};
|
|
41
|
+
function mb(a){this.name="ExitStatus";this.message="Program terminated with exit("+a+")";this.status=a}function nb(a){a.terminate();a.onmessage=()=>{}}function ob(a){(a=N.lb[a])||ya();N.od(a)}function pb(a){var b=N.Tc();if(!b)return 6;N.rb.push(b);N.lb[a.kb]=b;b.kb=a.kb;b.postMessage({cmd:"run",start_routine:a.vd,arg:a.Gc,pthread_ptr:a.kb},a.Ad);return 0}
|
|
42
|
+
var qb=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift("..");return a},O=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=qb(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},rb=a=>{var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return".";b&&(b=b.substr(0,b.length-1));return a+b},sb=a=>{if("/"===
|
|
43
|
+
a)return"/";a=O(a);a=a.replace(/\/$/,"");var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)};function tb(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var a=new Uint8Array(1);return()=>{crypto.getRandomValues(a);return a[0]}}return()=>ya("randomDevice")}
|
|
44
|
+
function ub(){for(var a="",b=!1,c=arguments.length-1;-1<=c&&!b;c--){b=0<=c?arguments[c]:"/";if("string"!=typeof b)throw new TypeError("Arguments to path.resolve must be strings");if(!b)return"";a=b+"/"+a;b="/"===b.charAt(0)}a=qb(a.split("/").filter(d=>!!d),!b).join("/");return(b?"/":"")+a||"."}function vb(a,b){var c=Array(Fa(a)+1);a=Ea(a,c,0,c.length);b&&(c.length=a);return c}var wb=[];function xb(a,b){wb[a]={input:[],Xa:[],yb:b};yb(a,zb)}
|
|
45
|
+
var zb={open:function(a){var b=wb[a.node.Db];if(!b)throw new P(43);a.bb=b;a.seekable=!1},close:function(a){a.bb.yb.Jb(a.bb)},Jb:function(a){a.bb.yb.Jb(a.bb)},read:function(a,b,c,d){if(!a.bb||!a.bb.yb.pc)throw new P(60);for(var e=0,f=0;f<d;f++){try{var h=a.bb.yb.pc(a.bb)}catch(l){throw new P(29);}if(void 0===h&&0===e)throw new P(6);if(null===h||void 0===h)break;e++;b[c+f]=h}e&&(a.node.timestamp=Date.now());return e},write:function(a,b,c,d){if(!a.bb||!a.bb.yb.Zb)throw new P(60);try{for(var e=0;e<d;e++)a.bb.yb.Zb(a.bb,
|
|
46
|
+
b[c+e])}catch(f){throw new P(29);}d&&(a.node.timestamp=Date.now());return e}},Ab={pc:function(a){if(!a.input.length){var b=null;"undefined"!=typeof window&&"function"==typeof window.prompt?(b=window.prompt("Input: "),null!==b&&(b+="\n")):"function"==typeof readline&&(b=readline(),null!==b&&(b+="\n"));if(!b)return null;a.input=vb(b,!0)}return a.input.shift()},Zb:function(a,b){null===b||10===b?(wa(Da(a.Xa,0)),a.Xa=[]):0!=b&&a.Xa.push(b)},Jb:function(a){a.Xa&&0<a.Xa.length&&(wa(Da(a.Xa,0)),a.Xa=[])}},
|
|
47
|
+
Bb={Zb:function(a,b){null===b||10===b?(E(Da(a.Xa,0)),a.Xa=[]):0!=b&&a.Xa.push(b)},Jb:function(a){a.Xa&&0<a.Xa.length&&(E(Da(a.Xa,0)),a.Xa=[])}};function Cb(a){a=65536*Math.ceil(a/65536);var b=Db(65536,a);b?v().fill(0,b,b+a):b=0;return b}
|
|
48
|
+
var Q={hb:null,jb:function(){return Q.createNode(null,"/",16895,0)},createNode:function(a,b,c,d){if(24576===(c&61440)||4096===(c&61440))throw new P(63);Q.hb||(Q.hb={dir:{node:{gb:Q.Ra.gb,ab:Q.Ra.ab,zb:Q.Ra.zb,Nb:Q.Ra.Nb,xc:Q.Ra.xc,Tb:Q.Ra.Tb,yc:Q.Ra.yc,wc:Q.Ra.wc,Qb:Q.Ra.Qb},stream:{qb:Q.Sa.qb}},file:{node:{gb:Q.Ra.gb,ab:Q.Ra.ab},stream:{qb:Q.Sa.qb,read:Q.Sa.read,write:Q.Sa.write,ec:Q.Sa.ec,Ab:Q.Sa.Ab,Ob:Q.Sa.Ob}},link:{node:{gb:Q.Ra.gb,ab:Q.Ra.ab,Eb:Q.Ra.Eb},stream:{}},jc:{node:{gb:Q.Ra.gb,ab:Q.Ra.ab},
|
|
49
|
+
stream:Eb}});c=Fb(a,b,c,d);16384===(c.mode&61440)?(c.Ra=Q.hb.dir.node,c.Sa=Q.hb.dir.stream,c.Qa={}):32768===(c.mode&61440)?(c.Ra=Q.hb.file.node,c.Sa=Q.hb.file.stream,c.Va=0,c.Qa=null):40960===(c.mode&61440)?(c.Ra=Q.hb.link.node,c.Sa=Q.hb.link.stream):8192===(c.mode&61440)&&(c.Ra=Q.hb.jc.node,c.Sa=Q.hb.jc.stream);c.timestamp=Date.now();a&&(a.Qa[b]=c,a.timestamp=c.timestamp);return c},Ed:function(a){return a.Qa?a.Qa.subarray?a.Qa.subarray(0,a.Va):new Uint8Array(a.Qa):new Uint8Array(0)},mc:function(a,
|
|
50
|
+
b){var c=a.Qa?a.Qa.length:0;c>=b||(b=Math.max(b,c*(1048576>c?2:1.125)>>>0),0!=c&&(b=Math.max(b,256)),c=a.Qa,a.Qa=new Uint8Array(b),0<a.Va&&a.Qa.set(c.subarray(0,a.Va),0))},nd:function(a,b){if(a.Va!=b)if(0==b)a.Qa=null,a.Va=0;else{var c=a.Qa;a.Qa=new Uint8Array(b);c&&a.Qa.set(c.subarray(0,Math.min(b,a.Va)));a.Va=b}},Ra:{gb:function(a){var b={};b.Pc=8192===(a.mode&61440)?a.id:1;b.Wb=a.id;b.mode=a.mode;b.hd=1;b.uid=0;b.Xc=0;b.Db=a.Db;b.size=16384===(a.mode&61440)?4096:32768===(a.mode&61440)?a.Va:40960===
|
|
51
|
+
(a.mode&61440)?a.link.length:0;b.Hc=new Date(a.timestamp);b.gd=new Date(a.timestamp);b.Mc=new Date(a.timestamp);b.Ic=4096;b.Jc=Math.ceil(b.size/b.Ic);return b},ab:function(a,b){void 0!==b.mode&&(a.mode=b.mode);void 0!==b.timestamp&&(a.timestamp=b.timestamp);void 0!==b.size&&Q.nd(a,b.size)},zb:function(){throw Gb[44];},Nb:function(a,b,c,d){return Q.createNode(a,b,c,d)},xc:function(a,b,c){if(16384===(a.mode&61440)){try{var d=Hb(b,c)}catch(f){}if(d)for(var e in d.Qa)throw new P(55);}delete a.parent.Qa[a.name];
|
|
52
|
+
a.parent.timestamp=Date.now();a.name=c;b.Qa[c]=a;b.timestamp=a.parent.timestamp;a.parent=b},Tb:function(a,b){delete a.Qa[b];a.timestamp=Date.now()},yc:function(a,b){var c=Hb(a,b),d;for(d in c.Qa)throw new P(55);delete a.Qa[b];a.timestamp=Date.now()},wc:function(a){var b=[".",".."],c;for(c in a.Qa)a.Qa.hasOwnProperty(c)&&b.push(c);return b},Qb:function(a,b,c){a=Q.createNode(a,b,41471,0);a.link=c;return a},Eb:function(a){if(40960!==(a.mode&61440))throw new P(28);return a.link}},Sa:{read:function(a,
|
|
53
|
+
b,c,d,e){var f=a.node.Qa;if(e>=a.node.Va)return 0;a=Math.min(a.node.Va-e,d);if(8<a&&f.subarray)b.set(f.subarray(e,e+a),c);else for(d=0;d<a;d++)b[c+d]=f[e+d];return a},write:function(a,b,c,d,e,f){b.buffer===g().buffer&&(f=!1);if(!d)return 0;a=a.node;a.timestamp=Date.now();if(b.subarray&&(!a.Qa||a.Qa.subarray)){if(f)return a.Qa=b.subarray(c,c+d),a.Va=d;if(0===a.Va&&0===e)return a.Qa=b.slice(c,c+d),a.Va=d;if(e+d<=a.Va)return a.Qa.set(b.subarray(c,c+d),e),d}Q.mc(a,e+d);if(a.Qa.subarray&&b.subarray)a.Qa.set(b.subarray(c,
|
|
54
|
+
c+d),e);else for(f=0;f<d;f++)a.Qa[e+f]=b[c+f];a.Va=Math.max(a.Va,e+d);return d},qb:function(a,b,c){1===c?b+=a.position:2===c&&32768===(a.node.mode&61440)&&(b+=a.node.Va);if(0>b)throw new P(28);return b},ec:function(a,b,c){Q.mc(a.node,b+c);a.node.Va=Math.max(a.node.Va,b+c)},Ab:function(a,b,c,d,e){if(32768!==(a.node.mode&61440))throw new P(43);a=a.node.Qa;if(e&2||a.buffer!==g().buffer){if(0<c||c+b<a.length)a=a.subarray?a.subarray(c,c+b):Array.prototype.slice.call(a,c,c+b);c=!0;b=Cb(b);if(!b)throw new P(48);
|
|
55
|
+
g().set(a,b)}else c=!1,b=a.byteOffset;return{Ua:b,hc:c}},Ob:function(a,b,c,d){Q.Sa.write(a,b,0,d,c,!1);return 0}}};function Ib(a,b,c){var d="al "+a;ua(a,e=>{e||ya('Loading data file "'+a+'" failed (no arrayBuffer).');b(new Uint8Array(e));d&&eb(d)},()=>{if(c)c();else throw'Loading data file "'+a+'" failed.';});d&&db(d)}
|
|
56
|
+
var Jb=null,Kb={},Lb=[],Mb=1,Nb=null,Wa=!0,P=null,Gb={},Pb=(a,b={})=>{a=ub(a);if(!a)return{path:"",node:null};b=Object.assign({oc:!0,ac:0},b);if(8<b.ac)throw new P(32);a=a.split("/").filter(h=>!!h);for(var c=Jb,d="/",e=0;e<a.length;e++){var f=e===a.length-1;if(f&&b.parent)break;c=Hb(c,a[e]);d=O(d+"/"+a[e]);c.Bb&&(!f||f&&b.oc)&&(c=c.Bb.root);if(!f||b.Ib)for(f=0;40960===(c.mode&61440);)if(c=Ob(d),d=ub(rb(d),c),c=Pb(d,{ac:b.ac+1}).node,40<f++)throw new P(32);}return{path:d,node:c}},Qb=a=>{for(var b;;){if(a===
|
|
57
|
+
a.parent)return a=a.jb.sc,b?"/"!==a[a.length-1]?a+"/"+b:a+b:a;b=b?a.name+"/"+b:a.name;a=a.parent}},Rb=(a,b)=>{for(var c=0,d=0;d<b.length;d++)c=(c<<5)-c+b.charCodeAt(d)|0;return(a+c>>>0)%Nb.length},Hb=(a,b)=>{var c;if(c=(c=Sb(a,"x"))?c:a.Ra.zb?0:2)throw new P(c,a);for(c=Nb[Rb(a.id,b)];c;c=c.xb){var d=c.name;if(c.parent.id===a.id&&d===b)return c}return a.Ra.zb(a,b)},Fb=(a,b,c,d)=>{a=new Tb(a,b,c,d);b=Rb(a.parent.id,a.name);a.xb=Nb[b];return Nb[b]=a},Ub={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},Vb=
|
|
58
|
+
a=>{var b=["r","w","rw"][a&3];a&512&&(b+="w");return b},Sb=(a,b)=>{if(Wa)return 0;if(!b.includes("r")||a.mode&292){if(b.includes("w")&&!(a.mode&146)||b.includes("x")&&!(a.mode&73))return 2}else return 2;return 0},Wb=(a,b)=>{try{return Hb(a,b),20}catch(c){}return Sb(a,"wx")},Xb=()=>{for(var a=0;4096>=a;a++)if(!Lb[a])return a;throw new P(33);},Zb=a=>{Yb||(Yb=function(){this.Pb={}},Yb.prototype={},Object.defineProperties(Yb.prototype,{object:{get:function(){return this.node},set:function(c){this.node=
|
|
59
|
+
c}},flags:{get:function(){return this.Pb.flags},set:function(c){this.Pb.flags=c}},position:{get:function(){return this.Pb.position},set:function(c){this.Pb.position=c}}}));a=Object.assign(new Yb,a);var b=Xb();a.pb=b;return Lb[b]=a},Eb={open:a=>{a.Sa=Kb[a.node.Db].Sa;a.Sa.open&&a.Sa.open(a)},qb:()=>{throw new P(70);}},yb=(a,b)=>{Kb[a]={Sa:b}},$b=(a,b)=>{var c="/"===b,d=!b;if(c&&Jb)throw new P(10);if(!c&&!d){var e=Pb(b,{oc:!1});b=e.path;e=e.node;if(e.Bb)throw new P(10);if(16384!==(e.mode&61440))throw new P(54);
|
|
60
|
+
}b={type:a,Hd:{},sc:b,fd:[]};a=a.jb(b);a.jb=b;b.root=a;c?Jb=a:e&&(e.Bb=b,e.jb&&e.jb.fd.push(b))},S=(a,b,c)=>{var d=Pb(a,{parent:!0}).node;a=sb(a);if(!a||"."===a||".."===a)throw new P(28);var e=Wb(d,a);if(e)throw new P(e);if(!d.Ra.Nb)throw new P(63);return d.Ra.Nb(d,a,b,c)},ac=(a,b,c)=>{"undefined"==typeof c&&(c=b,b=438);return S(a,b|8192,c)},Ua=(a,b)=>{if(!ub(a))throw new P(44);var c=Pb(b,{parent:!0}).node;if(!c)throw new P(44);b=sb(b);var d=Wb(c,b);if(d)throw new P(d);if(!c.Ra.Qb)throw new P(63);
|
|
61
|
+
c.Ra.Qb(c,b,a)},bc=a=>{var b=Pb(a,{parent:!0}).node;if(!b)throw new P(44);var c=sb(a);a=Hb(b,c);a:{try{var d=Hb(b,c)}catch(f){d=f.$a;break a}var e=Sb(b,"wx");d=e?e:16384===(d.mode&61440)?31:0}if(d)throw new P(d);if(!b.Ra.Tb)throw new P(63);if(a.Bb)throw new P(10);b.Ra.Tb(b,c);b=Rb(a.parent.id,a.name);if(Nb[b]===a)Nb[b]=a.xb;else for(b=Nb[b];b;){if(b.xb===a){b.xb=a.xb;break}b=b.xb}},Ob=a=>{a=Pb(a).node;if(!a)throw new P(44);if(!a.Ra.Eb)throw new P(28);return ub(Qb(a.parent),a.Ra.Eb(a))},cc=(a,b)=>
|
|
62
|
+
{a=Pb(a,{Ib:!b}).node;if(!a)throw new P(44);if(!a.Ra.gb)throw new P(63);return a.Ra.gb(a)},dc=a=>cc(a,!0),ec=(a,b)=>{a="string"==typeof a?Pb(a,{Ib:!0}).node:a;if(!a.Ra.ab)throw new P(63);a.Ra.ab(a,{mode:b&4095|a.mode&-4096,timestamp:Date.now()})},Va=(a,b,c)=>{if(""===a)throw new P(44);if("string"==typeof b){var d=Ub[b];if("undefined"==typeof d)throw Error("Unknown file open mode: "+b);b=d}c=b&64?("undefined"==typeof c?438:c)&4095|32768:0;if("object"==typeof a)var e=a;else{a=O(a);try{e=Pb(a,{Ib:!(b&
|
|
63
|
+
131072)}).node}catch(f){}}d=!1;if(b&64)if(e){if(b&128)throw new P(20);}else e=S(a,c,0),d=!0;if(!e)throw new P(44);8192===(e.mode&61440)&&(b&=-513);if(b&65536&&16384!==(e.mode&61440))throw new P(54);if(!d&&(c=e?40960===(e.mode&61440)?32:16384===(e.mode&61440)&&("r"!==Vb(b)||b&512)?31:Sb(e,Vb(b)):44))throw new P(c);if(b&512&&!d){c=e;c="string"==typeof c?Pb(c,{Ib:!0}).node:c;if(!c.Ra.ab)throw new P(63);if(16384===(c.mode&61440))throw new P(31);if(32768!==(c.mode&61440))throw new P(28);if(d=Sb(c,"w"))throw new P(d);
|
|
64
|
+
c.Ra.ab(c,{size:0,timestamp:Date.now()})}b&=-131713;e=Zb({node:e,path:Qb(e),flags:b,seekable:!0,position:0,Sa:e.Sa,Bd:[],error:!1});e.Sa.open&&e.Sa.open(e);!D.logReadFiles||b&1||(fc||(fc={}),a in fc||(fc[a]=1));return e},gc=a=>{if(null===a.pb)throw new P(8);a.Vb&&(a.Vb=null);try{a.Sa.close&&a.Sa.close(a)}catch(b){throw b;}finally{Lb[a.pb]=null}a.pb=null},hc=(a,b,c)=>{if(null===a.pb)throw new P(8);if(!a.seekable||!a.Sa.qb)throw new P(70);if(0!=c&&1!=c&&2!=c)throw new P(28);a.position=a.Sa.qb(a,b,c);
|
|
65
|
+
a.Bd=[]},ic=(a,b,c,d,e,f)=>{if(0>d||0>e)throw new P(28);if(null===a.pb)throw new P(8);if(0===(a.flags&2097155))throw new P(8);if(16384===(a.node.mode&61440))throw new P(31);if(!a.Sa.write)throw new P(28);a.seekable&&a.flags&1024&&hc(a,0,2);var h="undefined"!=typeof e;if(!h)e=a.position;else if(!a.seekable)throw new P(70);b=a.Sa.write(a,b,c,d,e,f);h||(a.position+=b);return b},Sa=()=>{P||(P=function(a,b){this.name="ErrnoError";this.node=b;this.qd=function(c){this.$a=c};this.qd(a);this.message="FS error"},
|
|
66
|
+
P.prototype=Error(),P.prototype.constructor=P,[44].forEach(a=>{Gb[a]=new P(a);Gb[a].stack="<generic error, no stack>"}))},Ra,jc=(a,b)=>{var c=0;a&&(c|=365);b&&(c|=146);return c},kc=(a,b)=>{a="string"==typeof a?a:Qb(a);for(b=b.split("/").reverse();b.length;){var c=b.pop();if(c){var d=O(a+"/"+c);try{S(d,16895,0)}catch(e){}a=d}}return d},lc=(a,b,c,d)=>{a=O(("string"==typeof a?a:Qb(a))+"/"+b);c=jc(c,d);return S(a,(void 0!==c?c:438)&4095|32768,0)},mc=(a,b,c,d,e,f)=>{var h=b;a&&(a="string"==typeof a?a:
|
|
67
|
+
Qb(a),h=b?O(a+"/"+b):a);a=jc(d,e);h=S(h,(void 0!==a?a:438)&4095|32768,0);if(c){if("string"==typeof c){b=Array(c.length);d=0;for(e=c.length;d<e;++d)b[d]=c.charCodeAt(d);c=b}ec(h,a|146);b=Va(h,577);ic(b,c,0,c.length,0,f);gc(b);ec(h,a)}return h},Ta=(a,b,c,d)=>{a=O(("string"==typeof a?a:Qb(a))+"/"+b);b=jc(!!c,!!d);Ta.rc||(Ta.rc=64);var e=Ta.rc++<<8|0;yb(e,{open:f=>{f.seekable=!1},close:()=>{d&&d.buffer&&d.buffer.length&&d(10)},read:(f,h,l,m)=>{for(var n=0,q=0;q<m;q++){try{var p=c()}catch(r){throw new P(29);
|
|
68
|
+
}if(void 0===p&&0===n)throw new P(6);if(null===p||void 0===p)break;n++;h[l+q]=p}n&&(f.node.timestamp=Date.now());return n},write:(f,h,l,m)=>{for(var n=0;n<m;n++)try{d(h[l+n])}catch(q){throw new P(29);}m&&(f.node.timestamp=Date.now());return n}});return ac(a,b,e)},nc=a=>{if(!(a.bd||a.cd||a.link||a.Qa)){if("undefined"!=typeof XMLHttpRequest)throw Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");
|
|
69
|
+
if(ta)try{a.Qa=vb(ta(a.url),!0),a.Va=a.Qa.length}catch(b){throw new P(29);}else throw Error("Cannot load without read() or XMLHttpRequest.");}},oc=(a,b,c,d,e)=>{function f(){this.Yb=!1;this.Hb=[]}function h(p,r,k,t,x){p=p.node.Qa;if(x>=p.length)return 0;t=Math.min(p.length-x,t);if(p.slice)for(var A=0;A<t;A++)r[k+A]=p[x+A];else for(A=0;A<t;A++)r[k+A]=p.get(x+A);return t}f.prototype.get=function(p){if(!(p>this.length-1||0>p)){var r=p%this.kc;return this.Kb(p/this.kc|0)[r]}};f.prototype.pd=function(p){this.Kb=
|
|
70
|
+
p};f.prototype.ic=function(){var p=new XMLHttpRequest;p.open("HEAD",c,!1);p.send(null);if(!(200<=p.status&&300>p.status||304===p.status))throw Error("Couldn't load "+c+". Status: "+p.status);var r=Number(p.getResponseHeader("Content-length")),k,t=(k=p.getResponseHeader("Accept-Ranges"))&&"bytes"===k;p=(k=p.getResponseHeader("Content-Encoding"))&&"gzip"===k;var x=1048576;t||(x=r);var A=this;A.pd(G=>{var H=G*x,y=(G+1)*x-1;y=Math.min(y,r-1);if("undefined"==typeof A.Hb[G]){var R=A.Hb;if(H>y)throw Error("invalid range ("+
|
|
71
|
+
H+", "+y+") or no bytes requested!");if(y>r-1)throw Error("only "+r+" bytes available! programmer error!");var C=new XMLHttpRequest;C.open("GET",c,!1);r!==x&&C.setRequestHeader("Range","bytes="+H+"-"+y);C.responseType="arraybuffer";C.overrideMimeType&&C.overrideMimeType("text/plain; charset=x-user-defined");C.send(null);if(!(200<=C.status&&300>C.status||304===C.status))throw Error("Couldn't load "+c+". Status: "+C.status);H=void 0!==C.response?new Uint8Array(C.response||[]):vb(C.responseText||"",
|
|
72
|
+
!0);R[G]=H}if("undefined"==typeof A.Hb[G])throw Error("doXHR failed!");return A.Hb[G]});if(p||!r)x=r=1,x=r=this.Kb(0).length,wa("LazyFiles on gzip forces download of the whole file when length is accessed");this.Ec=r;this.Dc=x;this.Yb=!0};if("undefined"!=typeof XMLHttpRequest){var l=new f;Object.defineProperties(l,{length:{get:function(){this.Yb||this.ic();return this.Ec}},kc:{get:function(){this.Yb||this.ic();return this.Dc}}});var m=void 0}else m=c,l=void 0;var n=lc(a,b,d,e);l?n.Qa=l:m&&(n.Qa=null,
|
|
73
|
+
n.url=m);Object.defineProperties(n,{Va:{get:function(){return this.Qa.length}}});var q={};Object.keys(n.Sa).forEach(p=>{var r=n.Sa[p];q[p]=function(){nc(n);return r.apply(null,arguments)}});q.read=(p,r,k,t,x)=>{nc(n);return h(p,r,k,t,x)};q.Ab=(p,r,k)=>{nc(n);var t=Cb(r);if(!t)throw new P(48);h(p,g(),t,r,k);return{Ua:t,hc:!0}};n.Sa=q;return n},qc=(a,b,c,d,e,f,h,l,m,n)=>{function q(k){function t(x){n&&n();l||mc(a,b,x,d,e,m);f&&f();eb(r)}pc.Fd(k,p,t,()=>{h&&h();eb(r)})||t(k)}var p=b?ub(O(a+"/"+b)):a,
|
|
74
|
+
r="cp "+p;db(r);"string"==typeof c?Ib(c,k=>q(k),h):q(c)},T={},Yb,fc;function rc(a,b,c){if("/"===b.charAt(0))return b;a=-100===a?"/":sc(a).path;if(0==b.length){if(!c)throw new P(44);return a}return O(a+"/"+b)}
|
|
75
|
+
function tc(a,b,c){try{var d=a(b)}catch(f){if(f&&f.node&&O(b)!==O(Qb(f.node)))return-54;throw f;}z()[c>>2]=d.Pc;z()[c+8>>2]=d.Wb;z()[c+12>>2]=d.mode;B()[c+16>>2]=d.hd;z()[c+20>>2]=d.uid;z()[c+24>>2]=d.Xc;z()[c+28>>2]=d.Db;M=[d.size>>>0,(L=d.size,1<=+Math.abs(L)?0<L?(Math.min(+Math.floor(L/4294967296),4294967295)|0)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)];z()[c+40>>2]=M[0];z()[c+44>>2]=M[1];z()[c+48>>2]=4096;z()[c+52>>2]=d.Jc;a=d.Hc.getTime();b=d.gd.getTime();var e=d.Mc.getTime();M=[Math.floor(a/
|
|
76
|
+
1E3)>>>0,(L=Math.floor(a/1E3),1<=+Math.abs(L)?0<L?(Math.min(+Math.floor(L/4294967296),4294967295)|0)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)];z()[c+56>>2]=M[0];z()[c+60>>2]=M[1];B()[c+64>>2]=a%1E3*1E3;M=[Math.floor(b/1E3)>>>0,(L=Math.floor(b/1E3),1<=+Math.abs(L)?0<L?(Math.min(+Math.floor(L/4294967296),4294967295)|0)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)];z()[c+72>>2]=M[0];z()[c+76>>2]=M[1];B()[c+80>>2]=b%1E3*1E3;M=[Math.floor(e/1E3)>>>0,(L=Math.floor(e/1E3),1<=+Math.abs(L)?
|
|
77
|
+
0<L?(Math.min(+Math.floor(L/4294967296),4294967295)|0)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)];z()[c+88>>2]=M[0];z()[c+92>>2]=M[1];B()[c+96>>2]=e%1E3*1E3;M=[d.Wb>>>0,(L=d.Wb,1<=+Math.abs(L)?0<L?(Math.min(+Math.floor(L/4294967296),4294967295)|0)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)];z()[c+104>>2]=M[0];z()[c+108>>2]=M[1];return 0}var uc=void 0;function sc(a){a=Lb[a];if(!a)throw new P(8);return a}
|
|
78
|
+
function vc(a){if(F)return U(1,1,a);Ba=a;if(!Pa()){N.Ac();if(D.onExit)D.onExit(a);Aa=!0}qa(a,new mb(a))}function wc(a){Ba=a;if(F)throw xc(a),"unwind";if(!Pa()&&!F){yc();Za(La);Ra=!1;zc(0);for(var b=0;b<Lb.length;b++){var c=Lb[b];c&&gc(c)}N.Ac();Na=!0}vc(a)}function Ac(a){a instanceof mb||"unwind"==a||qa(1,a)}
|
|
79
|
+
var N={nb:[],rb:[],Cc:[],lb:{},Zc:function(){F?N.ad():N.$c()},$c:function(){for(var a=navigator.hardwareConcurrency;a--;)N.fc()},ad:function(){N.receiveObjectTransfer=N.md;N.threadInitTLS=N.Bc;N.setExitStatus=N.zc;noExitRuntime=!1},zc:function(a){Ba=a},Jd:["$terminateWorker"],Ac:function(){for(var a of N.rb)nb(a);for(a of N.nb)nb(a);N.nb=[];N.rb=[];N.lb=[]},od:function(a){var b=a.kb;delete N.lb[b];N.nb.push(a);N.rb.splice(N.rb.indexOf(a),1);a.kb=0;Bc(b)},md:function(){},Bc:function(){N.Cc.forEach(a=>
|
|
80
|
+
a())},qc:a=>new Promise(b=>{a.onmessage=f=>{f=f.data;var h=f.cmd;a.kb&&(N.Nc=a.kb);if(f.targetThread&&f.targetThread!=Cc()){var l=N.lb[f.Id];l?l.postMessage(f,f.transferList):E('Internal error! Worker sent a message "'+h+'" to target pthread '+f.targetThread+", but that thread no longer exists!")}else if("processProxyingQueue"===h)Dc(f.queue);else if("spawnThread"===h)pb(f);else if("cleanupThread"===h)ob(f.thread);else if("killThread"===h)f=f.thread,h=N.lb[f],delete N.lb[f],nb(h),Bc(f),N.rb.splice(N.rb.indexOf(h),
|
|
81
|
+
1),h.kb=0;else if("cancelThread"===h)N.lb[f.thread].postMessage({cmd:"cancel"});else if("loaded"===h)a.loaded=!0,b(a);else if("print"===h)wa("Thread "+f.threadId+": "+f.text);else if("printErr"===h)E("Thread "+f.threadId+": "+f.text);else if("alert"===h)alert("Thread "+f.threadId+": "+f.text);else if("setimmediate"===f.target)a.postMessage(f);else if("callHandler"===h)D[f.handler](...f.args);else h&&E("worker sent an unknown command "+h);N.Nc=void 0};a.onerror=f=>{E("worker sent an error! "+f.filename+
|
|
82
|
+
":"+f.lineno+": "+f.message);throw f;};var c=[],d=["onExit","onAbort","print","printErr"],e;for(e of d)D.hasOwnProperty(e)&&c.push(e);a.postMessage({cmd:"load",handlers:c,urlOrBlob:D.mainScriptUrlOrBlob||_scriptDir,wasmMemory:u,wasmModule:za})}),ed:function(a){if(F)return a();Promise.all(N.nb.map(N.qc)).then(a)},fc:function(){var a=sa("capture-wasm.worker.js");a=new Worker(a);N.nb.push(a)},Tc:function(){0==N.nb.length&&(N.fc(),N.qc(N.nb[0]));return N.nb.pop()}};D.PThread=N;
|
|
83
|
+
function Za(a){for(;0<a.length;)a.shift()(D)}D.establishStackSpace=function(){var a=Cc(),b=z()[a+52>>2];a=z()[a+56>>2];Ec(b,b-a);Fc(b)};function xc(a){if(F)return U(2,0,a);try{wc(a)}catch(b){Ac(b)}}var Gc=[];function Hc(a){var b=Gc[a];b||(a>=Gc.length&&(Gc.length=a+1),Gc[a]=b=Ia.get(a));return b}D.invokeEntryPoint=function(a,b){a=Hc(a)(b);Pa()?N.zc(a):Ic(a)};function Jc(a,b,c,d){return F?U(3,1,a,b,c,d):Kc(a,b,c,d)}
|
|
84
|
+
function Kc(a,b,c,d){if("undefined"==typeof SharedArrayBuffer)return E("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var e=[];if(F&&0===e.length)return Jc(a,b,c,d);a={vd:c,kb:a,Gc:d,Ad:e};return F?(a.Cd="spawnThread",postMessage(a,e),0):pb(a)}function Lc(a,b){if(F)return U(4,1,a,b);try{var c=sc(a);return tc(cc,c.path,b)}catch(d){if("undefined"==typeof T||"ErrnoError"!==d.name)throw d;return-d.$a}}
|
|
85
|
+
function Mc(a,b,c,d){if(F)return U(6,1,a,b,c,d);try{b=J(b);var e=d&256;b=rc(a,b,d&4096);return tc(e?dc:cc,b,c)}catch(f){if("undefined"==typeof T||"ErrnoError"!==f.name)throw f;return-f.$a}}function Nc(a,b,c,d){if(F)return U(7,1,a,b,c,d);uc=d;try{b=J(b);b=rc(a,b);if(d){uc+=4;var e=z()[uc-4>>2]}else e=0;return Va(b,c,e).pb}catch(f){if("undefined"==typeof T||"ErrnoError"!==f.name)throw f;return-f.$a}}
|
|
86
|
+
function Oc(a,b){if(F)return U(8,1,a,b);try{return a=J(a),tc(cc,a,b)}catch(c){if("undefined"==typeof T||"ErrnoError"!==c.name)throw c;return-c.$a}}var Pc={};function Qc(a){for(;a.length;){var b=a.pop();a.pop()(b)}}function Rc(a){return this.fromWireType(z()[a>>2])}var Sc={},Tc={},Uc={};function Vc(a){if(void 0===a)return"_unknown";a=a.replace(/[^a-zA-Z0-9_]/g,"$");var b=a.charCodeAt(0);return 48<=b&&57>=b?"_"+a:a}function Wc(a,b){a=Vc(a);return{[a]:function(){return b.apply(this,arguments)}}[a]}
|
|
87
|
+
function Xc(a){var b=Error,c=Wc(a,function(d){this.name=a;this.message=d;d=Error(d).stack;void 0!==d&&(this.stack=this.toString()+"\n"+d.replace(/^Error(:[^\n]*)?\n/,""))});c.prototype=Object.create(b.prototype);c.prototype.constructor=c;c.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message};return c}var Yc=void 0;function Zc(a){throw new Yc(a);}
|
|
88
|
+
function $c(a,b,c){function d(l){l=c(l);l.length!==a.length&&Zc("Mismatched type converter count");for(var m=0;m<a.length;++m)ad(a[m],l[m])}a.forEach(function(l){Uc[l]=b});var e=Array(b.length),f=[],h=0;b.forEach((l,m)=>{Tc.hasOwnProperty(l)?e[m]=Tc[l]:(f.push(l),Sc.hasOwnProperty(l)||(Sc[l]=[]),Sc[l].push(()=>{e[m]=Tc[l];++h;h===f.length&&d(e)}))});0===f.length&&d(e)}
|
|
89
|
+
function bd(a){switch(a){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+a);}}var cd=void 0;function V(a){for(var b="";v()[a];)b+=cd[v()[a++]];return b}var dd=void 0;function W(a){throw new dd(a);}
|
|
90
|
+
function ad(a,b,c={}){if(!("argPackAdvance"in b))throw new TypeError("registerType registeredInstance requires argPackAdvance");var d=b.name;a||W('type "'+d+'" must have a positive integer typeid pointer');if(Tc.hasOwnProperty(a)){if(c.Yc)return;W("Cannot register type '"+d+"' twice")}Tc[a]=b;delete Uc[a];Sc.hasOwnProperty(a)&&(b=Sc[a],delete Sc[a],b.forEach(e=>e()))}function ed(a){W(a.Pa.Wa.Ta.name+" instance already deleted")}var fd=!1;function gd(){}
|
|
91
|
+
function hd(a){--a.count.value;0===a.count.value&&(a.Za?a.cb.mb(a.Za):a.Wa.Ta.mb(a.Ua))}function jd(a,b,c){if(b===c)return a;if(void 0===c.eb)return null;a=jd(a,b,c.eb);return null===a?null:c.Qc(a)}var kd={},ld=[];function md(){for(;ld.length;){var a=ld.pop();a.Pa.vb=!1;a["delete"]()}}var nd=void 0,od={};function pd(a,b){for(void 0===b&&W("ptr should not be undefined");a.eb;)b=a.Fb(b),a=a.eb;return od[b]}
|
|
92
|
+
function qd(a,b){b.Wa&&b.Ua||Zc("makeClassHandle requires ptr and ptrType");!!b.cb!==!!b.Za&&Zc("Both smartPtrType and smartPtr must be specified");b.count={value:1};return rd(Object.create(a,{Pa:{value:b}}))}function rd(a){if("undefined"===typeof FinalizationRegistry)return rd=b=>b,a;fd=new FinalizationRegistry(b=>{hd(b.Pa)});rd=b=>{var c=b.Pa;c.Za&&fd.register(b,{Pa:c},b);return b};gd=b=>{fd.unregister(b)};return rd(a)}function sd(){}
|
|
93
|
+
function td(a,b,c){if(void 0===a[b].Ya){var d=a[b];a[b]=function(){a[b].Ya.hasOwnProperty(arguments.length)||W("Function '"+c+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+a[b].Ya+")!");return a[b].Ya[arguments.length].apply(this,arguments)};a[b].Ya=[];a[b].Ya[d.Gb]=d}}
|
|
94
|
+
function ud(a,b,c){D.hasOwnProperty(a)?((void 0===c||void 0!==D[a].Ya&&void 0!==D[a].Ya[c])&&W("Cannot register public name '"+a+"' twice"),td(D,a,a),D.hasOwnProperty(c)&&W("Cannot register multiple overloads of a function with the same number of arguments ("+c+")!"),D[a].Ya[c]=b):(D[a]=b,void 0!==c&&(D[a].Gd=c))}function vd(a,b,c,d,e,f,h,l){this.name=a;this.constructor=b;this.wb=c;this.mb=d;this.eb=e;this.Sc=f;this.Fb=h;this.Qc=l;this.kd=[]}
|
|
95
|
+
function wd(a,b,c){for(;b!==c;)b.Fb||W("Expected null or instance of "+c.name+", got an instance of "+b.name),a=b.Fb(a),b=b.eb;return a}function xd(a,b){if(null===b)return this.Xb&&W("null is not a valid "+this.name),0;b.Pa||W('Cannot pass "'+yd(b)+'" as a '+this.name);b.Pa.Ua||W("Cannot pass deleted object as a pointer of type "+this.name);return wd(b.Pa.Ua,b.Pa.Wa.Ta,this.Ta)}
|
|
96
|
+
function zd(a,b){if(null===b){this.Xb&&W("null is not a valid "+this.name);if(this.Mb){var c=this.$b();null!==a&&a.push(this.mb,c);return c}return 0}b.Pa||W('Cannot pass "'+yd(b)+'" as a '+this.name);b.Pa.Ua||W("Cannot pass deleted object as a pointer of type "+this.name);!this.Lb&&b.Pa.Wa.Lb&&W("Cannot convert argument of type "+(b.Pa.cb?b.Pa.cb.name:b.Pa.Wa.name)+" to parameter type "+this.name);c=wd(b.Pa.Ua,b.Pa.Wa.Ta,this.Ta);if(this.Mb)switch(void 0===b.Pa.Za&&W("Passing raw pointer to smart pointer is illegal"),
|
|
97
|
+
this.ud){case 0:b.Pa.cb===this?c=b.Pa.Za:W("Cannot convert argument of type "+(b.Pa.cb?b.Pa.cb.name:b.Pa.Wa.name)+" to parameter type "+this.name);break;case 1:c=b.Pa.Za;break;case 2:if(b.Pa.cb===this)c=b.Pa.Za;else{var d=b.clone();c=this.ld(c,Ad(function(){d["delete"]()}));null!==a&&a.push(this.mb,c)}break;default:W("Unsupporting sharing policy")}return c}
|
|
98
|
+
function Bd(a,b){if(null===b)return this.Xb&&W("null is not a valid "+this.name),0;b.Pa||W('Cannot pass "'+yd(b)+'" as a '+this.name);b.Pa.Ua||W("Cannot pass deleted object as a pointer of type "+this.name);b.Pa.Wa.Lb&&W("Cannot convert argument of type "+b.Pa.Wa.name+" to parameter type "+this.name);return wd(b.Pa.Ua,b.Pa.Wa.Ta,this.Ta)}
|
|
99
|
+
function Cd(a,b,c,d){this.name=a;this.Ta=b;this.Xb=c;this.Lb=d;this.Mb=!1;this.mb=this.ld=this.$b=this.vc=this.ud=this.jd=void 0;void 0!==b.eb?this.toWireType=zd:(this.toWireType=d?xd:Bd,this.fb=null)}function Dd(a,b,c){D.hasOwnProperty(a)||Zc("Replacing nonexistant public symbol");void 0!==D[a].Ya&&void 0!==c?D[a].Ya[c]=b:(D[a]=b,D[a].Gb=c)}
|
|
100
|
+
function Ed(a,b){var c=[];return function(){c.length=0;Object.assign(c,arguments);if(a.includes("j")){var d=D["dynCall_"+a];d=c&&c.length?d.apply(null,[b].concat(c)):d.call(null,b)}else d=Hc(b).apply(null,c);return d}}function X(a,b){a=V(a);var c=a.includes("j")?Ed(a,b):Hc(b);"function"!=typeof c&&W("unknown function pointer with signature "+a+": "+b);return c}var Fd=void 0;function Gd(a){a=Hd(a);var b=V(a);Id(a);return b}
|
|
101
|
+
function Jd(a,b){function c(f){e[f]||Tc[f]||(Uc[f]?Uc[f].forEach(c):(d.push(f),e[f]=!0))}var d=[],e={};b.forEach(c);throw new Fd(a+": "+d.map(Gd).join([", "]));}function Kd(a,b){for(var c=[],d=0;d<a;d++)c.push(B()[b+4*d>>2]);return c}
|
|
102
|
+
function Ld(a,b,c,d,e){var f=b.length;2>f&&W("argTypes array size mismatch! Must at least get return value and 'this' types!");var h=null!==b[1]&&null!==c,l=!1;for(c=1;c<b.length;++c)if(null!==b[c]&&void 0===b[c].fb){l=!0;break}var m="void"!==b[0].name,n=f-2,q=Array(n),p=[],r=[];return function(){arguments.length!==n&&W("function "+a+" called with "+arguments.length+" arguments, expected "+n+" args!");r.length=0;p.length=h?2:1;p[0]=e;if(h){var k=b[1].toWireType(r,this);p[1]=k}for(var t=0;t<n;++t)q[t]=
|
|
103
|
+
b[t+2].toWireType(r,arguments[t]),p.push(q[t]);t=d.apply(null,p);if(l)Qc(r);else for(var x=h?1:2;x<b.length;x++){var A=1===x?k:q[x-2];null!==b[x].fb&&b[x].fb(A)}k=m?b[0].fromWireType(t):void 0;return k}}var Md=[],Y=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function Nd(a){4<a&&0===--Y[a].bc&&(Y[a]=void 0,Md.push(a))}
|
|
104
|
+
var Od=a=>{a||W("Cannot use deleted val. handle = "+a);return Y[a].value},Ad=a=>{switch(a){case void 0:return 1;case null:return 2;case !0:return 3;case !1:return 4;default:var b=Md.length?Md.pop():Y.length;Y[b]={bc:1,value:a};return b}};function yd(a){if(null===a)return"null";var b=typeof a;return"object"===b||"array"===b||"function"===b?a.toString():""+a}
|
|
105
|
+
function Pd(a,b){switch(b){case 2:return function(c){var d=this.fromWireType;u.buffer!=ba.buffer&&ca();return d.call(this,Ga[c>>2])};case 3:return function(c){return this.fromWireType(ka()[c>>3])};default:throw new TypeError("Unknown float type: "+a);}}
|
|
106
|
+
function Qd(a,b,c){switch(b){case 0:return c?function(d){return g()[d]}:function(d){return v()[d]};case 1:return c?function(d){return ea()[d>>1]}:function(d){return w()[d>>1]};case 2:return c?function(d){return z()[d>>2]}:function(d){return B()[d>>2]};default:throw new TypeError("Unknown integer type: "+a);}}var Rd="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;
|
|
107
|
+
function Sd(a,b){var c=a>>1;for(var d=c+b/2;!(c>=d)&&w()[c];)++c;c<<=1;if(32<c-a&&Rd)return Rd.decode(v().slice(a,c));c="";for(d=0;!(d>=b/2);++d){var e=ea()[a+2*d>>1];if(0==e)break;c+=String.fromCharCode(e)}return c}function Td(a,b,c){void 0===c&&(c=2147483647);if(2>c)return 0;c-=2;var d=b;c=c<2*a.length?c/2:a.length;for(var e=0;e<c;++e){var f=a.charCodeAt(e);ea()[b>>1]=f;b+=2}ea()[b>>1]=0;return b-d}function Ud(a){return 2*a.length}
|
|
108
|
+
function Vd(a,b){for(var c=0,d="";!(c>=b/4);){var e=z()[a+4*c>>2];if(0==e)break;++c;65536<=e?(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023)):d+=String.fromCharCode(e)}return d}function Wd(a,b,c){void 0===c&&(c=2147483647);if(4>c)return 0;var d=b;c=d+c-4;for(var e=0;e<a.length;++e){var f=a.charCodeAt(e);if(55296<=f&&57343>=f){var h=a.charCodeAt(++e);f=65536+((f&1023)<<10)|h&1023}z()[b>>2]=f;b+=4;if(b+4>c)break}z()[b>>2]=0;return b-d}
|
|
109
|
+
function Xd(a){for(var b=0,c=0;c<a.length;++c){var d=a.charCodeAt(c);55296<=d&&57343>=d&&++c;b+=4}return b}function Dc(a){Atomics.store(z(),a>>2,1);Cc()&&Yd(a);Atomics.compareExchange(z(),a>>2,1,0)}D.executeNotifiedProxyingQueue=Dc;function Zd(a,b){var c=Tc[a];void 0===c&&W(b+" has unknown type "+Gd(a));return c}var $d={};function ae(a){var b=$d[a];return void 0===b?V(a):b}var be=[];
|
|
110
|
+
function ce(){function a(b){b.$$$embind_global$$$=b;var c="object"==typeof $$$embind_global$$$&&b.$$$embind_global$$$==b;c||delete b.$$$embind_global$$$;return c}if("object"==typeof globalThis)return globalThis;if("object"==typeof $$$embind_global$$$)return $$$embind_global$$$;"object"==typeof global&&a(global)?$$$embind_global$$$=global:"object"==typeof self&&a(self)&&($$$embind_global$$$=self);if("object"==typeof $$$embind_global$$$)return $$$embind_global$$$;throw Error("unable to get global object.");
|
|
111
|
+
}function de(a){var b=be.length;be.push(a);return b}function ee(a,b){for(var c=Array(a),d=0;d<a;++d)c[d]=Zd(B()[b+4*d>>2],"parameter "+d);return c}var fe=[];function ge(a){var b=Array(a+1);return function(c,d,e){b[0]=c;for(var f=0;f<a;++f){var h=Zd(B()[d+4*f>>2],"parameter "+f);b[f+1]=h.readValueFromPointer(e);e+=h.argPackAdvance}c=new (c.bind.apply(c,b));return Ad(c)}}var he={};function ie(a){return 0===a%4&&(0!==a%100||0===a%400)}
|
|
112
|
+
var je=[0,31,60,91,121,152,182,213,244,274,305,335],ke=[0,31,59,90,120,151,181,212,243,273,304,334];function le(a){return(ie(a.getFullYear())?je:ke)[a.getMonth()]+a.getDate()-1}
|
|
113
|
+
function me(a,b,c,d,e,f,h){if(F)return U(9,1,a,b,c,d,e,f,h);try{var l=sc(d);if(0!==(b&2)&&0===(c&2)&&2!==(l.flags&2097155))throw new P(2);if(1===(l.flags&2097155))throw new P(2);if(!l.Sa.Ab)throw new P(43);var m=l.Sa.Ab(l,a,e,b,c);var n=m.Ua;z()[f>>2]=m.hc;B()[h>>2]=n;return 0}catch(q){if("undefined"==typeof T||"ErrnoError"!==q.name)throw q;return-q.$a}}
|
|
114
|
+
function ne(a,b,c,d,e,f){if(F)return U(10,1,a,b,c,d,e,f);try{var h=sc(e);if(c&2){if(32768!==(h.node.mode&61440))throw new P(43);if(!(d&2)){var l=v().slice(a,a+b);h.Sa.Ob&&h.Sa.Ob(h,l,f,b,d)}}}catch(m){if("undefined"==typeof T||"ErrnoError"!==m.name)throw m;return-m.$a}}function oe(a){var b=Fa(a)+1,c=pe(b);c&&Ea(a,g(),c,b);return c}var qe=[];function re(a){var b=se();a=a();Fc(b);return a}
|
|
115
|
+
function U(a,b){var c=arguments.length-2,d=arguments;return re(()=>{for(var e=te(8*c),f=e>>3,h=0;h<c;h++){var l=d[2+h];ka()[f+h]=l}return ue(a,c,e,b)})}var ve=[],we={};function Z(a,b){B()[a>>2]=b;B()[a+4>>2]=b/4294967296|0}
|
|
116
|
+
function xe(a,b){try{var c=indexedDB.open("emscripten_filesystem",1)}catch(d){b(d);return}c.onupgradeneeded=d=>{d=d.target.result;d.objectStoreNames.contains("FILES")&&d.deleteObjectStore("FILES");d.createObjectStore("FILES")};c.onsuccess=d=>a(d.target.result);c.onerror=d=>b(d)}var ye;
|
|
117
|
+
function ze(a,b,c,d,e){function f(){var C=0,aa=0;y.response&&G&&0===B()[a+12>>2]&&(aa=y.response.byteLength);0<aa&&(C=pe(aa),v().set(new Uint8Array(y.response),C));B()[a+12>>2]=C;Z(a+16,aa);Z(a+24,0);(C=y.response?y.response.byteLength:0)&&Z(a+32,C);w()[a+40>>1]=y.readyState;w()[a+42>>1]=y.status;y.statusText&&K(y.statusText,a+44,64)}var h=B()[a+8>>2];if(h){var l=J(h),m=a+112,n=J(m);n||(n="GET");B();var q=B()[m+52>>2],p=B()[m+56>>2],r=!!B()[m+60>>2];B();var k=B()[m+68>>2],t=B()[m+72>>2];h=B()[m+76>>
|
|
118
|
+
2];var x=B()[m+80>>2],A=B()[m+84>>2];m=B()[m+88>>2];var G=!!(q&1),H=!!(q&2);q=!!(q&64);k=k?J(k):void 0;t=t?J(t):void 0;var y=new XMLHttpRequest;y.withCredentials=r;y.open(n,l,!q,k,t);q||(y.timeout=p);y.Ld=l;y.responseType="arraybuffer";x&&(l=J(x),y.overrideMimeType(l));if(h)for(;;){n=B()[h>>2];if(!n)break;l=B()[h+4>>2];if(!l)break;h+=8;n=J(n);l=J(l);y.setRequestHeader(n,l)}var R=B()[a+0>>2];we[R]=y;h=A&&m?v().slice(A,A+m):null;y.onload=C=>{R in we&&(f(),200<=y.status&&300>y.status?b&&b(a,y,C):c&&
|
|
119
|
+
c(a,y,C))};y.onerror=C=>{R in we&&(f(),c&&c(a,y,C))};y.ontimeout=C=>{R in we&&c&&c(a,y,C)};y.onprogress=C=>{if(R in we){var aa=G&&H&&y.response?y.response.byteLength:0,I=0;0<aa&&G&&H&&(I=pe(aa),v().set(new Uint8Array(y.response),I));B()[a+12>>2]=I;Z(a+16,aa);Z(a+24,C.loaded-aa);Z(a+32,C.total);w()[a+40>>1]=y.readyState;3<=y.readyState&&0===y.status&&0<C.loaded&&(y.status=200);w()[a+42>>1]=y.status;y.statusText&&K(y.statusText,a+44,64);d&&d(a,y,C);I&&Id(I)}};y.onreadystatechange=C=>{R in we?(w()[a+
|
|
120
|
+
40>>1]=y.readyState,2<=y.readyState&&(w()[a+42>>1]=y.status),e&&e(a,y,C)):--Oa};try{y.send(h)}catch(C){c&&c(a,y,C)}}else c(a,0,"no url specified!")}
|
|
121
|
+
function Ae(a,b,c,d){var e=ye;if(e){var f=a+112;(f=B()[f+64>>2])||(f=B()[a+8>>2]);var h=J(f);try{var l=e.transaction(["FILES"],"readwrite").objectStore("FILES").put(b,h);l.onsuccess=()=>{w()[a+40>>1]=4;w()[a+42>>1]=200;K("OK",a+44,64);c(a,0,h)};l.onerror=m=>{w()[a+40>>1]=4;w()[a+42>>1]=413;K("Payload Too Large",a+44,64);d(a,0,m)}}catch(m){d(a,0,m)}}else d(a,0,"IndexedDB not available!")}
|
|
122
|
+
function Be(a,b,c){var d=ye;if(d){var e=a+112;(e=B()[e+64>>2])||(e=B()[a+8>>2]);e=J(e);try{var f=d.transaction(["FILES"],"readonly").objectStore("FILES").get(e);f.onsuccess=h=>{if(h.target.result){h=h.target.result;var l=h.byteLength||h.length,m=pe(l);v().set(new Uint8Array(h),m);B()[a+12>>2]=m;Z(a+16,l);Z(a+24,0);Z(a+32,l);w()[a+40>>1]=4;w()[a+42>>1]=200;K("OK",a+44,64);b(a,0,h)}else w()[a+40>>1]=4,w()[a+42>>1]=404,K("Not Found",a+44,64),c(a,0,"no data")};f.onerror=h=>{w()[a+40>>1]=4;w()[a+42>>1]=
|
|
123
|
+
404;K("Not Found",a+44,64);c(a,0,h)}}catch(h){c(a,0,h)}}else c(a,0,"IndexedDB not available!")}
|
|
124
|
+
function Ce(a,b,c){var d=ye;if(d){var e=a+112;(e=B()[e+64>>2])||(e=B()[a+8>>2]);e=J(e);try{var f=d.transaction(["FILES"],"readwrite").objectStore("FILES").delete(e);f.onsuccess=h=>{h=h.target.result;B()[a+12>>2]=0;Z(a+16,0);Z(a+24,0);Z(a+32,0);w()[a+40>>1]=4;w()[a+42>>1]=200;K("OK",a+44,64);b(a,0,h)};f.onerror=h=>{w()[a+40>>1]=4;w()[a+42>>1]=404;K("Not Found",a+44,64);c(a,0,h)}}catch(h){c(a,0,h)}}else c(a,0,"IndexedDB not available!")}var De={};
|
|
125
|
+
function Ee(){if(!Fe){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",_:pa||"./this.program"},b;for(b in De)void 0===De[b]?delete a[b]:a[b]=De[b];var c=[];for(b in a)c.push(b+"="+a[b]);Fe=c}return Fe}var Fe;
|
|
126
|
+
function Ge(a,b){if(F)return U(11,1,a,b);var c=0;Ee().forEach(function(d,e){var f=b+c;e=B()[a+4*e>>2]=f;for(f=0;f<d.length;++f)g()[e++>>0]=d.charCodeAt(f);g()[e>>0]=0;c+=d.length+1});return 0}function He(a,b){if(F)return U(12,1,a,b);var c=Ee();B()[a>>2]=c.length;var d=0;c.forEach(function(e){d+=e.length+1});B()[b>>2]=d;return 0}function Ie(a){if(F)return U(13,1,a);try{var b=sc(a);gc(b);return 0}catch(c){if("undefined"==typeof T||"ErrnoError"!==c.name)throw c;return c.$a}}
|
|
127
|
+
function Je(a,b,c,d){if(F)return U(14,1,a,b,c,d);try{a:{var e=sc(a);a=b;for(var f,h=b=0;h<c;h++){var l=B()[a>>2],m=B()[a+4>>2];a+=8;var n=e,q=g(),p=l,r=m,k=f;if(0>r||0>k)throw new P(28);if(null===n.pb)throw new P(8);if(1===(n.flags&2097155))throw new P(8);if(16384===(n.node.mode&61440))throw new P(31);if(!n.Sa.read)throw new P(28);var t="undefined"!=typeof k;if(!t)k=n.position;else if(!n.seekable)throw new P(70);var x=n.Sa.read(n,q,p,r,k);t||(n.position+=x);var A=x;if(0>A){var G=-1;break a}b+=A;if(A<
|
|
128
|
+
m)break;"undefined"!==typeof f&&(f+=A)}G=b}B()[d>>2]=G;return 0}catch(H){if("undefined"==typeof T||"ErrnoError"!==H.name)throw H;return H.$a}}
|
|
129
|
+
function Ke(a,b,c,d,e){if(F)return U(15,1,a,b,c,d,e);try{b=c+2097152>>>0<4194305-!!b?(b>>>0)+4294967296*c:NaN;if(isNaN(b))return 61;var f=sc(a);hc(f,b,d);M=[f.position>>>0,(L=f.position,1<=+Math.abs(L)?0<L?(Math.min(+Math.floor(L/4294967296),4294967295)|0)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)];z()[e>>2]=M[0];z()[e+4>>2]=M[1];f.Vb&&0===b&&0===d&&(f.Vb=null);return 0}catch(h){if("undefined"==typeof T||"ErrnoError"!==h.name)throw h;return h.$a}}
|
|
130
|
+
function Le(a,b,c,d){if(F)return U(16,1,a,b,c,d);try{a:{var e=sc(a);a=b;for(var f,h=b=0;h<c;h++){var l=B()[a>>2],m=B()[a+4>>2];a+=8;var n=ic(e,g(),l,m,f);if(0>n){var q=-1;break a}b+=n;"undefined"!==typeof f&&(f+=n)}q=b}B()[d>>2]=q;return 0}catch(p){if("undefined"==typeof T||"ErrnoError"!==p.name)throw p;return p.$a}}function Me(a,b){Me.uc||(Me.uc=tb());for(var c=0;c<b;c++)g()[a+c>>0]=Me.uc();return 0}var Ne=[31,29,31,30,31,30,31,31,30,31,30,31],Oe=[31,28,31,30,31,30,31,31,30,31,30,31];
|
|
131
|
+
function Pe(a,b){g().set(a,b)}
|
|
132
|
+
function Qe(a,b,c,d){function e(k,t,x){for(k="number"==typeof k?k.toString():k||"";k.length<t;)k=x[0]+k;return k}function f(k,t){return e(k,t,"0")}function h(k,t){function x(G){return 0>G?-1:0<G?1:0}var A;0===(A=x(k.getFullYear()-t.getFullYear()))&&0===(A=x(k.getMonth()-t.getMonth()))&&(A=x(k.getDate()-t.getDate()));return A}function l(k){switch(k.getDay()){case 0:return new Date(k.getFullYear()-1,11,29);case 1:return k;case 2:return new Date(k.getFullYear(),0,3);case 3:return new Date(k.getFullYear(),0,
|
|
133
|
+
2);case 4:return new Date(k.getFullYear(),0,1);case 5:return new Date(k.getFullYear()-1,11,31);case 6:return new Date(k.getFullYear()-1,11,30)}}function m(k){var t=k.sb;for(k=new Date((new Date(k.tb+1900,0,1)).getTime());0<t;){var x=k.getMonth(),A=(ie(k.getFullYear())?Ne:Oe)[x];if(t>A-k.getDate())t-=A-k.getDate()+1,k.setDate(1),11>x?k.setMonth(x+1):(k.setMonth(0),k.setFullYear(k.getFullYear()+1));else{k.setDate(k.getDate()+t);break}}x=new Date(k.getFullYear()+1,0,4);t=l(new Date(k.getFullYear(),0,
|
|
134
|
+
4));x=l(x);return 0>=h(t,k)?0>=h(x,k)?k.getFullYear()+1:k.getFullYear():k.getFullYear()-1}var n=z()[d+40>>2];d={yd:z()[d>>2],xd:z()[d+4>>2],Rb:z()[d+8>>2],dc:z()[d+12>>2],Sb:z()[d+16>>2],tb:z()[d+20>>2],ib:z()[d+24>>2],sb:z()[d+28>>2],Kd:z()[d+32>>2],wd:z()[d+36>>2],zd:n?J(n):""};c=J(c);n={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y",
|
|
135
|
+
"%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"};for(var q in n)c=c.replace(new RegExp(q,"g"),n[q]);var p="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),r="January February March April May June July August September October November December".split(" ");n={"%a":function(k){return p[k.ib].substring(0,3)},"%A":function(k){return p[k.ib]},"%b":function(k){return r[k.Sb].substring(0,
|
|
136
|
+
3)},"%B":function(k){return r[k.Sb]},"%C":function(k){return f((k.tb+1900)/100|0,2)},"%d":function(k){return f(k.dc,2)},"%e":function(k){return e(k.dc,2," ")},"%g":function(k){return m(k).toString().substring(2)},"%G":function(k){return m(k)},"%H":function(k){return f(k.Rb,2)},"%I":function(k){k=k.Rb;0==k?k=12:12<k&&(k-=12);return f(k,2)},"%j":function(k){for(var t=0,x=0;x<=k.Sb-1;t+=(ie(k.tb+1900)?Ne:Oe)[x++]);return f(k.dc+t,3)},"%m":function(k){return f(k.Sb+1,2)},"%M":function(k){return f(k.xd,
|
|
137
|
+
2)},"%n":function(){return"\n"},"%p":function(k){return 0<=k.Rb&&12>k.Rb?"AM":"PM"},"%S":function(k){return f(k.yd,2)},"%t":function(){return"\t"},"%u":function(k){return k.ib||7},"%U":function(k){return f(Math.floor((k.sb+7-k.ib)/7),2)},"%V":function(k){var t=Math.floor((k.sb+7-(k.ib+6)%7)/7);2>=(k.ib+371-k.sb-2)%7&&t++;if(t)53==t&&(x=(k.ib+371-k.sb)%7,4==x||3==x&&ie(k.tb)||(t=1));else{t=52;var x=(k.ib+7-k.sb-1)%7;(4==x||5==x&&ie(k.tb%400-1))&&t++}return f(t,2)},"%w":function(k){return k.ib},"%W":function(k){return f(Math.floor((k.sb+
|
|
138
|
+
7-(k.ib+6)%7)/7),2)},"%y":function(k){return(k.tb+1900).toString().substring(2)},"%Y":function(k){return k.tb+1900},"%z":function(k){k=k.wd;var t=0<=k;k=Math.abs(k)/60;return(t?"+":"-")+String("0000"+(k/60*100+k%60)).slice(-4)},"%Z":function(k){return k.zd},"%%":function(){return"%"}};c=c.replace(/%%/g,"\x00\x00");for(q in n)c.includes(q)&&(c=c.replace(new RegExp(q,"g"),n[q](d)));c=c.replace(/\0\0/g,"%");q=vb(c,!1);if(q.length>b)return 0;Pe(q,a);return q.length-1}N.Zc();
|
|
139
|
+
function Tb(a,b,c,d){a||(a=this);this.parent=a;this.jb=a.jb;this.Bb=null;this.id=Mb++;this.name=b;this.mode=c;this.Ra={};this.Sa={};this.Db=d}Object.defineProperties(Tb.prototype,{read:{get:function(){return 365===(this.mode&365)},set:function(a){a?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146===(this.mode&146)},set:function(a){a?this.mode|=146:this.mode&=-147}},cd:{get:function(){return 16384===(this.mode&61440)}},bd:{get:function(){return 8192===(this.mode&61440)}}});Sa();
|
|
140
|
+
Nb=Array(4096);$b(Q,"/");S("/tmp",16895,0);S("/home",16895,0);S("/home/web_user",16895,0);(()=>{S("/dev",16895,0);yb(259,{read:()=>0,write:(b,c,d,e)=>e});ac("/dev/null",259);xb(1280,Ab);xb(1536,Bb);ac("/dev/tty",1280);ac("/dev/tty1",1536);var a=tb();Ta("/dev","random",a);Ta("/dev","urandom",a);S("/dev/shm",16895,0);S("/dev/shm/tmp",16895,0)})();
|
|
141
|
+
(()=>{S("/proc",16895,0);var a=S("/proc/self",16895,0);S("/proc/self/fd",16895,0);$b({jb:()=>{var b=Fb(a,"fd",16895,73);b.Ra={zb:(c,d)=>{var e=Lb[+d];if(!e)throw new P(8);c={parent:null,jb:{sc:"fake"},Ra:{Eb:()=>e.path}};return c.parent=c}};return b}},"/proc/self/fd")})();var pc;D.FS_createPath=kc;D.FS_createDataFile=mc;D.FS_createPreloadedFile=qc;D.FS_unlink=bc;D.FS_createLazyFile=oc;D.FS_createDevice=Ta;Yc=D.InternalError=Xc("InternalError");for(var Re=Array(256),Se=0;256>Se;++Se)Re[Se]=String.fromCharCode(Se);
|
|
142
|
+
cd=Re;dd=D.BindingError=Xc("BindingError");sd.prototype.isAliasOf=function(a){if(!(this instanceof sd&&a instanceof sd))return!1;var b=this.Pa.Wa.Ta,c=this.Pa.Ua,d=a.Pa.Wa.Ta;for(a=a.Pa.Ua;b.eb;)c=b.Fb(c),b=b.eb;for(;d.eb;)a=d.Fb(a),d=d.eb;return b===d&&c===a};
|
|
143
|
+
sd.prototype.clone=function(){this.Pa.Ua||ed(this);if(this.Pa.Cb)return this.Pa.count.value+=1,this;var a=rd,b=Object,c=b.create,d=Object.getPrototypeOf(this),e=this.Pa;a=a(c.call(b,d,{Pa:{value:{count:e.count,vb:e.vb,Cb:e.Cb,Ua:e.Ua,Wa:e.Wa,Za:e.Za,cb:e.cb}}}));a.Pa.count.value+=1;a.Pa.vb=!1;return a};sd.prototype["delete"]=function(){this.Pa.Ua||ed(this);this.Pa.vb&&!this.Pa.Cb&&W("Object already scheduled for deletion");gd(this);hd(this.Pa);this.Pa.Cb||(this.Pa.Za=void 0,this.Pa.Ua=void 0)};
|
|
144
|
+
sd.prototype.isDeleted=function(){return!this.Pa.Ua};sd.prototype.deleteLater=function(){this.Pa.Ua||ed(this);this.Pa.vb&&!this.Pa.Cb&&W("Object already scheduled for deletion");ld.push(this);1===ld.length&&nd&&nd(md);this.Pa.vb=!0;return this};D.getInheritedInstanceCount=function(){return Object.keys(od).length};D.getLiveInheritedInstances=function(){var a=[],b;for(b in od)od.hasOwnProperty(b)&&a.push(od[b]);return a};D.flushPendingDeletes=md;D.setDelayFunction=function(a){nd=a;ld.length&&nd&&nd(md)};
|
|
145
|
+
Cd.prototype.Uc=function(a){this.vc&&(a=this.vc(a));return a};Cd.prototype.lc=function(a){this.mb&&this.mb(a)};Cd.prototype.argPackAdvance=8;Cd.prototype.readValueFromPointer=Rc;Cd.prototype.deleteObject=function(a){if(null!==a)a["delete"]()};
|
|
146
|
+
Cd.prototype.fromWireType=function(a){function b(){return this.Mb?qd(this.Ta.wb,{Wa:this.jd,Ua:c,cb:this,Za:a}):qd(this.Ta.wb,{Wa:this,Ua:a})}var c=this.Uc(a);if(!c)return this.lc(a),null;var d=pd(this.Ta,c);if(void 0!==d){if(0===d.Pa.count.value)return d.Pa.Ua=c,d.Pa.Za=a,d.clone();d=d.clone();this.lc(a);return d}d=this.Ta.Sc(c);d=kd[d];if(!d)return b.call(this);d=this.Lb?d.Lc:d.pointerType;var e=jd(c,this.Ta,d.Ta);return null===e?b.call(this):this.Mb?qd(d.Ta.wb,{Wa:d,Ua:e,cb:this,Za:a}):qd(d.Ta.wb,
|
|
147
|
+
{Wa:d,Ua:e})};Fd=D.UnboundTypeError=Xc("UnboundTypeError");D.count_emval_handles=function(){for(var a=0,b=5;b<Y.length;++b)void 0!==Y[b]&&++a;return a};D.get_first_emval=function(){for(var a=5;a<Y.length;++a)if(void 0!==Y[a])return Y[a];return null};F||(db("library_fetch_init"),xe(a=>{ye=a;eb("library_fetch_init")},()=>{ye=!1;eb("library_fetch_init")}));
|
|
148
|
+
var Te=[null,vc,xc,Jc,Lc,function(a,b){if(F)return U(5,1,a,b);try{return a=J(a),tc(dc,a,b)}catch(c){if("undefined"==typeof T||"ErrnoError"!==c.name)throw c;return-c.$a}},Mc,Nc,Oc,me,ne,Ge,He,Ie,Je,Ke,Le],Ve={R:function(a){Ue(a,!1,1,!0);N.Bc()},s:function(a){F?postMessage({cmd:"cleanupThread",thread:a}):ob(a)},K:Kc,W:Lc,U:Mc,X:Nc,V:Oc,g:function(a){var b=Pc[a];delete Pc[a];var c=b.$b,d=b.mb,e=b.nc,f=e.map(h=>h.Wc).concat(e.map(h=>h.sd));$c([a],f,h=>{var l={};e.forEach((m,n)=>{var q=h[n],p=m.Kb,r=m.Vc,
|
|
149
|
+
k=h[n+e.length],t=m.rd,x=m.td;l[m.Rc]={read:A=>q.fromWireType(p(r,A)),write:(A,G)=>{var H=[];t(x,A,k.toWireType(H,G));Qc(H)}}});return[{name:b.name,fromWireType:function(m){var n={},q;for(q in l)n[q]=l[q].read(m);d(m);return n},toWireType:function(m,n){for(var q in l)if(!(q in n))throw new TypeError('Missing field: "'+q+'"');var p=c();for(q in l)l[q].write(p,n[q]);null!==m&&m.push(d,p);return p},argPackAdvance:8,readValueFromPointer:Rc,fb:d}]})},G:function(){},ea:function(a,b,c,d,e){var f=bd(c);
|
|
150
|
+
b=V(b);ad(a,{name:b,fromWireType:function(h){return!!h},toWireType:function(h,l){return l?d:e},argPackAdvance:8,readValueFromPointer:function(h){if(1===c)var l=g();else if(2===c)l=ea();else if(4===c)l=z();else throw new TypeError("Unknown boolean type size: "+b);return this.fromWireType(l[h>>f])},fb:null})},na:function(a,b,c,d,e,f,h,l,m,n,q,p,r){q=V(q);f=X(e,f);l&&(l=X(h,l));n&&(n=X(m,n));r=X(p,r);var k=Vc(q);ud(k,function(){Jd("Cannot construct "+q+" due to unbound types",[d])});$c([a,b,c],d?[d]:
|
|
151
|
+
[],function(t){t=t[0];if(d){var x=t.Ta;var A=x.wb}else A=sd.prototype;t=Wc(k,function(){if(Object.getPrototypeOf(this)!==G)throw new dd("Use 'new' to construct "+q);if(void 0===H.ob)throw new dd(q+" has no accessible constructor");var R=H.ob[arguments.length];if(void 0===R)throw new dd("Tried to invoke ctor of "+q+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(H.ob).toString()+") parameters instead!");return R.apply(this,arguments)});var G=Object.create(A,{constructor:{value:t}});
|
|
152
|
+
t.prototype=G;var H=new vd(q,t,G,r,x,f,l,n);x=new Cd(q,H,!0,!1);A=new Cd(q+"*",H,!1,!1);var y=new Cd(q+" const*",H,!1,!0);kd[a]={pointerType:A,Lc:y};Dd(k,t);return[x,A,y]})},ma:function(a,b,c,d,e,f){0<b||ya();var h=Kd(b,c);e=X(d,e);$c([],[a],function(l){l=l[0];var m="constructor "+l.name;void 0===l.Ta.ob&&(l.Ta.ob=[]);if(void 0!==l.Ta.ob[b-1])throw new dd("Cannot register multiple constructors with identical number of parameters ("+(b-1)+") for class '"+l.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");
|
|
153
|
+
l.Ta.ob[b-1]=()=>{Jd("Cannot construct "+l.name+" due to unbound types",h)};$c([],h,function(n){n.splice(1,0,null);l.Ta.ob[b-1]=Ld(m,n,null,e,f);return[]});return[]})},k:function(a,b,c,d,e,f,h,l){var m=Kd(c,d);b=V(b);f=X(e,f);$c([],[a],function(n){function q(){Jd("Cannot call "+p+" due to unbound types",m)}n=n[0];var p=n.name+"."+b;b.startsWith("@@")&&(b=Symbol[b.substring(2)]);l&&n.Ta.kd.push(b);var r=n.Ta.wb,k=r[b];void 0===k||void 0===k.Ya&&k.className!==n.name&&k.Gb===c-2?(q.Gb=c-2,q.className=
|
|
154
|
+
n.name,r[b]=q):(td(r,b,p),r[b].Ya[c-2]=q);$c([],m,function(t){t=Ld(p,t,n,f,h);void 0===r[b].Ya?(t.Gb=c-2,r[b]=t):r[b].Ya[c-2]=t;return[]});return[]})},da:function(a,b){b=V(b);ad(a,{name:b,fromWireType:function(c){var d=Od(c);Nd(c);return d},toWireType:function(c,d){return Ad(d)},argPackAdvance:8,readValueFromPointer:Rc,fb:null})},x:function(a,b,c){c=bd(c);b=V(b);ad(a,{name:b,fromWireType:function(d){return d},toWireType:function(d,e){return e},argPackAdvance:8,readValueFromPointer:Pd(b,c),fb:null})},
|
|
155
|
+
p:function(a,b,c,d,e,f){var h=Kd(b,c);a=V(a);e=X(d,e);ud(a,function(){Jd("Cannot call "+a+" due to unbound types",h)},b-1);$c([],h,function(l){Dd(a,Ld(a,[l[0],null].concat(l.slice(1)),null,e,f),b-1);return[]})},i:function(a,b,c,d,e){b=V(b);-1===e&&(e=4294967295);e=bd(c);var f=l=>l;if(0===d){var h=32-8*c;f=l=>l<<h>>>h}c=b.includes("unsigned")?function(l,m){return m>>>0}:function(l,m){return m};ad(a,{name:b,fromWireType:f,toWireType:c,argPackAdvance:8,readValueFromPointer:Qd(b,e,0!==d),fb:null})},e:function(a,
|
|
156
|
+
b,c){function d(f){f>>=2;var h=B();return new e(h.buffer,h[f+1],h[f])}var e=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][b];c=V(c);ad(a,{name:c,fromWireType:d,argPackAdvance:8,readValueFromPointer:d},{Yc:!0})},y:function(a,b){b=V(b);var c="std::string"===b;ad(a,{name:b,fromWireType:function(d){var e=B()[d>>2],f=d+4;if(c)for(var h=f,l=0;l<=e;++l){var m=f+l;if(l==e||0==v()[m]){h=J(h,m-h);if(void 0===n)var n=h;else n+=String.fromCharCode(0),n+=h;h=m+
|
|
157
|
+
1}}else{n=Array(e);for(l=0;l<e;++l)n[l]=String.fromCharCode(v()[f+l]);n=n.join("")}Id(d);return n},toWireType:function(d,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var f="string"==typeof e;f||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||W("Cannot pass non-string to std::string");var h=c&&f?Fa(e):e.length;var l=pe(4+h+1),m=l+4;B()[l>>2]=h;if(c&&f)K(e,m,h+1);else if(f)for(f=0;f<h;++f){var n=e.charCodeAt(f);255<n&&(Id(m),W("String has UTF-16 code units that do not fit in 8 bits"));
|
|
158
|
+
v()[m+f]=n}else for(f=0;f<h;++f)v()[m+f]=e[f];null!==d&&d.push(Id,l);return l},argPackAdvance:8,readValueFromPointer:Rc,fb:function(d){Id(d)}})},o:function(a,b,c){c=V(c);if(2===b){var d=Sd;var e=Td;var f=Ud;var h=()=>w();var l=1}else 4===b&&(d=Vd,e=Wd,f=Xd,h=()=>B(),l=2);ad(a,{name:c,fromWireType:function(m){for(var n=B()[m>>2],q=h(),p,r=m+4,k=0;k<=n;++k){var t=m+4+k*b;if(k==n||0==q[t>>l])r=d(r,t-r),void 0===p?p=r:(p+=String.fromCharCode(0),p+=r),r=t+b}Id(m);return p},toWireType:function(m,n){"string"!=
|
|
159
|
+
typeof n&&W("Cannot pass non-string to C++ string type "+c);var q=f(n),p=pe(4+q+b);B()[p>>2]=q>>l;e(n,p+4,q+b);null!==m&&m.push(Id,p);return p},argPackAdvance:8,readValueFromPointer:Rc,fb:function(m){Id(m)}})},h:function(a,b,c,d,e,f){Pc[a]={name:V(b),$b:X(c,d),mb:X(e,f),nc:[]}},c:function(a,b,c,d,e,f,h,l,m,n){Pc[a].nc.push({Rc:V(b),Wc:c,Kb:X(d,e),Vc:f,sd:h,rd:X(l,m),td:n})},fa:function(a,b){b=V(b);ad(a,{dd:!0,name:b,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},L:function(){return 262144},
|
|
160
|
+
ga:function(a){var b=we[a];b&&(delete we[a],0<b.readyState&&4>b.readyState&&b.abort())},_:function(){return!0},M:function(a,b,c,d){a==b?setTimeout(()=>Dc(d)):F?postMessage({targetThread:a,cmd:"processProxyingQueue",queue:d}):(a=N.lb[a])&&a.postMessage({cmd:"processProxyingQueue",queue:d})},Q:function(){return-1},n:function(a,b,c){a=Od(a);b=Zd(b,"emval::as");var d=[],e=Ad(d);B()[c>>2]=e;return b.toWireType(d,a)},la:function(a,b,c,d){a=be[a];b=Od(b);c=ae(c);a(b,c,null,d)},d:Nd,r:function(a){if(0===
|
|
161
|
+
a)return Ad(ce());a=ae(a);return Ad(ce()[a])},ka:function(a,b){var c=ee(a,b),d=c[0];b=d.name+"_$"+c.slice(1).map(function(h){return h.name}).join("_")+"$";var e=fe[b];if(void 0!==e)return e;var f=Array(a-1);e=de((h,l,m,n)=>{for(var q=0,p=0;p<a-1;++p)f[p]=c[p+1].readValueFromPointer(n+q),q+=c[p+1].argPackAdvance;h=h[l].apply(h,f);for(p=0;p<a-1;++p)c[p+1].Oc&&c[p+1].Oc(f[p]);if(!d.dd)return d.toWireType(m,h)});return fe[b]=e},D:function(a,b){a=Od(a);b=Od(b);return Ad(a[b])},l:function(a){4<a&&(Y[a].bc+=
|
|
162
|
+
1)},q:function(a,b,c,d){a=Od(a);var e=he[b];e||(e=ge(b),he[b]=e);return e(a,c,d)},C:function(a){return Ad(ae(a))},m:function(a){var b=Od(a);Qc(b);Nd(a)},j:function(a,b){a=Zd(a,"_emval_take_value");a=a.readValueFromPointer(b);return Ad(a)},aa:function(a,b){var c=Date;a=B()[a>>2]+4294967296*z()[a+4>>2];c=new c(1E3*a);z()[b>>2]=c.getSeconds();z()[b+4>>2]=c.getMinutes();z()[b+8>>2]=c.getHours();z()[b+12>>2]=c.getDate();z()[b+16>>2]=c.getMonth();z()[b+20>>2]=c.getFullYear()-1900;z()[b+24>>2]=c.getDay();
|
|
163
|
+
a=le(c)|0;z()[b+28>>2]=a;z()[b+36>>2]=-(60*c.getTimezoneOffset());a=(new Date(c.getFullYear(),6,1)).getTimezoneOffset();var d=(new Date(c.getFullYear(),0,1)).getTimezoneOffset();c=(a!=d&&c.getTimezoneOffset()==Math.min(d,a))|0;z()[b+32>>2]=c},ba:function(a){var b=new Date(z()[a+20>>2]+1900,z()[a+16>>2],z()[a+12>>2],z()[a+8>>2],z()[a+4>>2],z()[a>>2],0),c=z()[a+32>>2],d=b.getTimezoneOffset(),e=(new Date(b.getFullYear(),6,1)).getTimezoneOffset(),f=(new Date(b.getFullYear(),0,1)).getTimezoneOffset(),
|
|
164
|
+
h=Math.min(f,e);0>c?z()[a+32>>2]=Number(e!=f&&h==d):0<c!=(h==d)&&(e=Math.max(f,e),b.setTime(b.getTime()+6E4*((0<c?h:e)-d)));z()[a+24>>2]=b.getDay();c=le(b)|0;z()[a+28>>2]=c;z()[a>>2]=b.getSeconds();z()[a+4>>2]=b.getMinutes();z()[a+8>>2]=b.getHours();z()[a+12>>2]=b.getDate();z()[a+16>>2]=b.getMonth();z()[a+20>>2]=b.getYear();return b.getTime()/1E3|0},N:me,O:ne,ca:function(a,b,c){function d(n){return(n=n.toTimeString().match(/\(([A-Za-z ]+)\)$/))?n[1]:"GMT"}var e=(new Date).getFullYear(),f=new Date(e,
|
|
165
|
+
0,1),h=new Date(e,6,1);e=f.getTimezoneOffset();var l=h.getTimezoneOffset(),m=Math.max(e,l);B()[a>>2]=60*m;z()[b>>2]=Number(e!=l);a=d(f);b=d(h);a=oe(a);b=oe(b);l<e?(B()[c>>2]=a,B()[c+4>>2]=b):(B()[c>>2]=b,B()[c+4>>2]=a)},b:function(){ya("")},E:function(){var a=D.allowedThreads;return a?a:navigator.hardwareConcurrency},B:function(a,b,c){qe.length=0;var d;for(c>>=2;d=v()[b++];)c+=105!=d&c,qe.push(105==d?z()[c]:ka()[c++>>1]),++c;return lb[a].apply(null,qe)},t:function(){},$:function(){return Date.now()},
|
|
166
|
+
f:()=>performance.timeOrigin+performance.now(),A:function(){return"undefined"!=typeof SharedArrayBuffer},Y:function(a,b,c){v().copyWithin(a,b,b+c)},P:function(a,b,c){ve.length=b;c>>=3;for(var d=0;d<b;d++)ve[d]=ka()[c+d];return(0>a?lb[-a-1]:Te[a]).apply(null,ve)},J:function(a){var b=v().length;a>>>=0;if(a<=b||2147483648<a)return!1;for(var c=1;4>=c;c*=2){var d=Math,e=d.min;var f=Math.max(a,b+2097152/c);f+=(65536-f%65536)%65536;a:{var h=u.buffer;try{u.grow(e.call(d,2147483648,f)-h.byteLength+65535>>>
|
|
167
|
+
16);ca();var l=1;break a}catch(m){}l=void 0}if(l)return!0}return!1},ha:function(a,b,c,d,e){function f(I){if(A)I();else if(!Na&&!Aa)try{if(I(),!Pa())try{F?Ic(Ba):wc(Ba)}catch(Xa){Ac(Xa)}}catch(Xa){Ac(Xa)}}Oa+=1;var h=a+112,l=J(h),m=B()[h+36>>2],n=B()[h+40>>2],q=B()[h+44>>2],p=B()[h+48>>2],r=B()[h+52>>2],k=!!(r&4),t=!!(r&32),x=!!(r&16),A=!!(r&64),G=I=>{--Oa;f(()=>{m?Hc(m)(I):b&&b(I)})},H=I=>{f(()=>{q?Hc(q)(I):d&&d(I)})},y=I=>{--Oa;f(()=>{n?Hc(n)(I):c&&c(I)})},R=I=>{f(()=>{p?Hc(p)(I):e&&e(I)})};r=I=>
|
|
168
|
+
{ze(I,G,y,H,R)};var C=(I,Xa)=>{Ae(I,Xa.response,Ya=>{--Oa;f(()=>{m?Hc(m)(Ya):b&&b(Ya)})},Ya=>{--Oa;f(()=>{m?Hc(m)(Ya):b&&b(Ya)})})},aa=I=>{ze(I,C,y,H,R)};if("EM_IDB_STORE"===l)l=B()[h+84>>2],Ae(a,v().slice(l,l+B()[h+88>>2]),G,y);else if("EM_IDB_DELETE"===l)Ce(a,G,y);else if(x){if(t)return 0;ze(a,k?C:G,y,H,R)}else Be(a,G,t?y:k?aa:r);return a},Z:function(){throw"unwind";},S:Ge,T:He,z:wc,w:Ie,v:Je,F:Ke,u:Le,ia:function(){var a=stackTrace(),b=Fa(a)+1,c=pe(b);K(a,c,b);return c},H:Me,a:u||D.wasmMemory,
|
|
169
|
+
ja:Qe,I:function(a,b,c,d){return Qe(a,b,c,d)}};(function(){function a(c,d){c=c.exports;D.asm=c;N.Cc.push(D.asm.ta);Ia=D.asm.ya;Ka.unshift(D.asm.oa);za=d;N.ed(()=>eb("wasm-instantiate"));return c}var b={a:Ve};db("wasm-instantiate");if(D.instantiateWasm)try{return D.instantiateWasm(b,a)}catch(c){E("Module.instantiateWasm callback failed with error: "+c),na(c)}kb(b,function(c){a(c.instance,c.module)}).catch(na);return{}})();function Id(){return(Id=D.asm.pa).apply(null,arguments)}
|
|
170
|
+
function pe(){return(pe=D.asm.qa).apply(null,arguments)}var zc=D._fflush=function(){return(zc=D._fflush=D.asm.ra).apply(null,arguments)},Cc=D._pthread_self=function(){return(Cc=D._pthread_self=D.asm.sa).apply(null,arguments)};D.__emscripten_tls_init=function(){return(D.__emscripten_tls_init=D.asm.ta).apply(null,arguments)};function Db(){return(Db=D.asm.ua).apply(null,arguments)}var Hd=D.___getTypeName=function(){return(Hd=D.___getTypeName=D.asm.va).apply(null,arguments)};
|
|
171
|
+
D.__embind_initialize_bindings=function(){return(D.__embind_initialize_bindings=D.asm.wa).apply(null,arguments)};function yc(){return(yc=D.asm.xa).apply(null,arguments)}var Ue=D.__emscripten_thread_init=function(){return(Ue=D.__emscripten_thread_init=D.asm.za).apply(null,arguments)};D.__emscripten_thread_crashed=function(){return(D.__emscripten_thread_crashed=D.asm.Aa).apply(null,arguments)};function ue(){return(ue=D.asm.Ba).apply(null,arguments)}
|
|
172
|
+
var Yd=D.__emscripten_proxy_execute_task_queue=function(){return(Yd=D.__emscripten_proxy_execute_task_queue=D.asm.Ca).apply(null,arguments)};function Bc(){return(Bc=D.asm.Da).apply(null,arguments)}var Ic=D.__emscripten_thread_exit=function(){return(Ic=D.__emscripten_thread_exit=D.asm.Ea).apply(null,arguments)};function Ec(){return(Ec=D.asm.Fa).apply(null,arguments)}function se(){return(se=D.asm.Ga).apply(null,arguments)}function Fc(){return(Fc=D.asm.Ha).apply(null,arguments)}
|
|
173
|
+
function te(){return(te=D.asm.Ia).apply(null,arguments)}D.dynCall_ji=function(){return(D.dynCall_ji=D.asm.Ja).apply(null,arguments)};D.dynCall_jiji=function(){return(D.dynCall_jiji=D.asm.Ka).apply(null,arguments)};D.dynCall_viijii=function(){return(D.dynCall_viijii=D.asm.La).apply(null,arguments)};D.dynCall_iiiiij=function(){return(D.dynCall_iiiiij=D.asm.Ma).apply(null,arguments)};D.dynCall_iiiiijj=function(){return(D.dynCall_iiiiijj=D.asm.Na).apply(null,arguments)};
|
|
174
|
+
D.dynCall_iiiiiijj=function(){return(D.dynCall_iiiiiijj=D.asm.Oa).apply(null,arguments)};D.__ZN2MB2NN28LinearDefragmentingAllocator10Allocation4nullE=14768;D.___start_em_js=60928;D.___stop_em_js=61921;D.addRunDependency=db;D.removeRunDependency=eb;D.FS_createPath=kc;D.FS_createDataFile=mc;D.FS_createPreloadedFile=qc;D.FS_createLazyFile=oc;D.FS_createDevice=Ta;D.FS_unlink=bc;D.keepRuntimeAlive=Pa;D.wasmMemory=u;D.ExitStatus=mb;D.PThread=N;var We;cb=function Xe(){We||Ye();We||(cb=Xe)};
|
|
175
|
+
function Ye(){function a(){if(!We&&(We=!0,D.calledRun=!0,!Aa)){Qa();ma(D);if(D.onRuntimeInitialized)D.onRuntimeInitialized();if(!F){if(D.postRun)for("function"==typeof D.postRun&&(D.postRun=[D.postRun]);D.postRun.length;){var b=D.postRun.shift();Ma.unshift(b)}Za(Ma)}}}if(!(0<ab))if(F)ma(D),Qa(),startWorker(D);else{if(D.preRun)for("function"==typeof D.preRun&&(D.preRun=[D.preRun]);D.preRun.length;)$a();Za(Ja);0<ab||(D.setStatus?(D.setStatus("Running..."),setTimeout(function(){setTimeout(function(){D.setStatus("")},
|
|
176
|
+
1);a()},1)):a())}}if(D.preInit)for("function"==typeof D.preInit&&(D.preInit=[D.preInit]);0<D.preInit.length;)D.preInit.pop()();Ye();
|
|
177
|
+
if("object"==typeof window&&("undefined"==typeof F||!F)){var Ze=()=>{var a=0,b=!1,c=m=>{var n=new XMLHttpRequest;n.open("POST","stdio.html",!1);n.send(m);try{window.close()}catch(q){}},d=m=>{var n=new XMLHttpRequest;++a;n.onreadystatechange=()=>{4==n.readyState&&0==--a&&b&&c("^exit^"+Ba)};n.open("POST","stdio.html",!0);n.send(m)};if(-1!=document.URL.search("localhost")||-1!=document.URL.search(":6931/")){var e=1,f=wa,h=E;La.unshift(()=>{0==a?c("^exit^"+Ba):b=!0});wa=m=>{d("^out^"+e++ +"^"+encodeURIComponent(m));
|
|
178
|
+
f(m)};E=m=>{d("^err^"+e++ +"^"+encodeURIComponent(m));h(m)};var l=()=>{try{d("^pageload^")}catch(m){setTimeout(l,50)}};l()}};"undefined"!=typeof document&&Ze()};
|
|
4405
179
|
|
|
4406
|
-
)
|
|
4407
|
-
$a();
|
|
4408
|
-
Za(Ja);
|
|
4409
|
-
0 < ab ||
|
|
4410
|
-
(D.setStatus
|
|
4411
|
-
? (D.setStatus("Running..."),
|
|
4412
|
-
setTimeout(function () {
|
|
4413
|
-
setTimeout(function () {
|
|
4414
|
-
D.setStatus("");
|
|
4415
|
-
}, 1);
|
|
4416
|
-
a();
|
|
4417
|
-
}, 1))
|
|
4418
|
-
: a());
|
|
4419
|
-
}
|
|
4420
|
-
}
|
|
4421
|
-
if (D.preInit)
|
|
4422
|
-
for (
|
|
4423
|
-
"function" == typeof D.preInit && (D.preInit = [D.preInit]);
|
|
4424
|
-
0 < D.preInit.length;
|
|
4425
180
|
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
Ye();
|
|
4429
|
-
if ("object" == typeof window && ("undefined" == typeof F || !F)) {
|
|
4430
|
-
var Ze = () => {
|
|
4431
|
-
var a = 0,
|
|
4432
|
-
b = !1,
|
|
4433
|
-
c = (m) => {
|
|
4434
|
-
var n = new XMLHttpRequest();
|
|
4435
|
-
n.open("POST", "stdio.html", !1);
|
|
4436
|
-
n.send(m);
|
|
4437
|
-
try {
|
|
4438
|
-
window.close();
|
|
4439
|
-
} catch (q) {}
|
|
4440
|
-
},
|
|
4441
|
-
d = (m) => {
|
|
4442
|
-
var n = new XMLHttpRequest();
|
|
4443
|
-
++a;
|
|
4444
|
-
n.onreadystatechange = () => {
|
|
4445
|
-
4 == n.readyState && 0 == --a && b && c("^exit^" + Ba);
|
|
4446
|
-
};
|
|
4447
|
-
n.open("POST", "stdio.html", !0);
|
|
4448
|
-
n.send(m);
|
|
4449
|
-
};
|
|
4450
|
-
if (
|
|
4451
|
-
-1 != document.URL.search("localhost") ||
|
|
4452
|
-
-1 != document.URL.search(":6931/")
|
|
4453
|
-
) {
|
|
4454
|
-
var e = 1,
|
|
4455
|
-
f = wa,
|
|
4456
|
-
h = E;
|
|
4457
|
-
La.unshift(() => {
|
|
4458
|
-
0 == a ? c("^exit^" + Ba) : (b = !0);
|
|
4459
|
-
});
|
|
4460
|
-
wa = (m) => {
|
|
4461
|
-
d("^out^" + e++ + "^" + encodeURIComponent(m));
|
|
4462
|
-
f(m);
|
|
4463
|
-
};
|
|
4464
|
-
E = (m) => {
|
|
4465
|
-
d("^err^" + e++ + "^" + encodeURIComponent(m));
|
|
4466
|
-
h(m);
|
|
4467
|
-
};
|
|
4468
|
-
var l = () => {
|
|
4469
|
-
try {
|
|
4470
|
-
d("^pageload^");
|
|
4471
|
-
} catch (m) {
|
|
4472
|
-
setTimeout(l, 50);
|
|
4473
|
-
}
|
|
4474
|
-
};
|
|
4475
|
-
l();
|
|
4476
|
-
}
|
|
4477
|
-
};
|
|
4478
|
-
"undefined" != typeof document && Ze();
|
|
4479
|
-
}
|
|
181
|
+
return createModule.ready
|
|
182
|
+
}
|
|
4480
183
|
|
|
4481
|
-
|
|
4482
|
-
};
|
|
184
|
+
);
|
|
4483
185
|
})();
|
|
4484
|
-
if (typeof exports ===
|
|
186
|
+
if (typeof exports === 'object' && typeof module === 'object')
|
|
4485
187
|
module.exports = createModule;
|
|
4486
|
-
else if (typeof define ===
|
|
4487
|
-
define([], function
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
else if (typeof exports === "object") exports["createModule"] = createModule;
|
|
188
|
+
else if (typeof define === 'function' && define['amd'])
|
|
189
|
+
define([], function() { return createModule; });
|
|
190
|
+
else if (typeof exports === 'object')
|
|
191
|
+
exports["createModule"] = createModule;
|