@microblink/capture 1.2.2 → 1.2.4
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 +2465 -2311
- package/dist/capture.umd.cjs +36 -36
- package/dist/resources/advanced/capture-wasm.js +3929 -147
- package/dist/resources/advanced/capture-wasm.wasm +0 -0
- package/dist/resources/advanced-threads/capture-wasm.js +4306 -165
- package/dist/resources/advanced-threads/capture-wasm.wasm +0 -0
- package/dist/resources/advanced-threads/capture-wasm.worker.js +97 -1
- package/dist/resources/basic/capture-wasm.js +3928 -147
- package/dist/resources/basic/capture-wasm.wasm +0 -0
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
1
|
var createModule = (() => {
|
|
3
|
-
var _scriptDir =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var _scriptDir =
|
|
3
|
+
typeof document !== "undefined" && document.currentScript
|
|
4
|
+
? document.currentScript.src
|
|
5
|
+
: undefined;
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
return function (moduleArg = {}) {
|
|
8
|
+
/*
|
|
9
9
|
|
|
10
10
|
Copyright 2019 The Emscripten Authors
|
|
11
11
|
SPDX-License-Identifier: MIT
|
|
@@ -16,167 +16,4308 @@ function(moduleArg = {}) {
|
|
|
16
16
|
This file gets implicatly injected as a `--post-js` file when
|
|
17
17
|
emcc is run with `--emrun`
|
|
18
18
|
*/
|
|
19
|
-
function h()
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
function
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
function
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
function
|
|
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
|
-
function
|
|
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
|
-
|
|
19
|
+
function h() {
|
|
20
|
+
u.buffer != aa.buffer && ba();
|
|
21
|
+
return aa;
|
|
22
|
+
}
|
|
23
|
+
function w() {
|
|
24
|
+
u.buffer != aa.buffer && ba();
|
|
25
|
+
return ca;
|
|
26
|
+
}
|
|
27
|
+
function da() {
|
|
28
|
+
u.buffer != aa.buffer && ba();
|
|
29
|
+
return ea;
|
|
30
|
+
}
|
|
31
|
+
function x() {
|
|
32
|
+
u.buffer != aa.buffer && ba();
|
|
33
|
+
return fa;
|
|
34
|
+
}
|
|
35
|
+
function A() {
|
|
36
|
+
u.buffer != aa.buffer && ba();
|
|
37
|
+
return ha;
|
|
38
|
+
}
|
|
39
|
+
function B() {
|
|
40
|
+
u.buffer != aa.buffer && ba();
|
|
41
|
+
return ia;
|
|
42
|
+
}
|
|
43
|
+
function ja() {
|
|
44
|
+
u.buffer != aa.buffer && ba();
|
|
45
|
+
return ka;
|
|
46
|
+
}
|
|
47
|
+
var D = moduleArg,
|
|
48
|
+
la,
|
|
49
|
+
ma;
|
|
50
|
+
D.ready = new Promise((a, b) => {
|
|
51
|
+
la = a;
|
|
52
|
+
ma = b;
|
|
53
|
+
});
|
|
54
|
+
D.Yb || (D.Yb = 0);
|
|
55
|
+
D.Yb++;
|
|
56
|
+
D.ENVIRONMENT_IS_PTHREAD ||
|
|
57
|
+
D.$ww ||
|
|
58
|
+
(function (a) {
|
|
59
|
+
function b(m, n, t) {
|
|
60
|
+
var p = new XMLHttpRequest();
|
|
61
|
+
p.open("GET", m, !0);
|
|
62
|
+
p.responseType = "arraybuffer";
|
|
63
|
+
p.onprogress = function (r) {
|
|
64
|
+
var k = n;
|
|
65
|
+
r.total && (k = r.total);
|
|
66
|
+
if (r.loaded) {
|
|
67
|
+
p.Ic
|
|
68
|
+
? (D.xb[m].loaded = r.loaded)
|
|
69
|
+
: ((p.Ic = !0),
|
|
70
|
+
D.xb || (D.xb = {}),
|
|
71
|
+
(D.xb[m] = { loaded: r.loaded, total: k }));
|
|
72
|
+
var q = (k = r = 0),
|
|
73
|
+
v;
|
|
74
|
+
for (v in D.xb) {
|
|
75
|
+
var z = D.xb[v];
|
|
76
|
+
r += z.total;
|
|
77
|
+
k += z.loaded;
|
|
78
|
+
q++;
|
|
79
|
+
}
|
|
80
|
+
r = Math.ceil((r * D.Yb) / q);
|
|
81
|
+
D.setStatus && D.setStatus(`Downloading data... (${k}/${r})`);
|
|
82
|
+
} else !D.xb && D.setStatus && D.setStatus("Downloading data...");
|
|
83
|
+
};
|
|
84
|
+
p.onerror = function () {
|
|
85
|
+
throw Error("NetworkError for: " + m);
|
|
86
|
+
};
|
|
87
|
+
p.onload = function () {
|
|
88
|
+
if (
|
|
89
|
+
200 == p.status ||
|
|
90
|
+
304 == p.status ||
|
|
91
|
+
206 == p.status ||
|
|
92
|
+
(0 == p.status && p.response)
|
|
93
|
+
)
|
|
94
|
+
t(p.response);
|
|
95
|
+
else throw Error(p.statusText + " : " + p.responseURL);
|
|
96
|
+
};
|
|
97
|
+
p.send(null);
|
|
98
|
+
}
|
|
99
|
+
function c(m) {
|
|
100
|
+
console.error("package error:", m);
|
|
101
|
+
}
|
|
102
|
+
function d() {
|
|
103
|
+
function m(r, k, q) {
|
|
104
|
+
this.start = r;
|
|
105
|
+
this.end = k;
|
|
106
|
+
this.audio = q;
|
|
107
|
+
}
|
|
108
|
+
function n(r) {
|
|
109
|
+
if (!r) throw "Loading data file failed." + Error().stack;
|
|
110
|
+
if (r.constructor.name !== ArrayBuffer.name)
|
|
111
|
+
throw "bad input to processPackageData" + Error().stack;
|
|
112
|
+
r = new Uint8Array(r);
|
|
113
|
+
m.prototype.Nc = r;
|
|
114
|
+
r = a.files;
|
|
115
|
+
for (var k = 0; k < r.length; ++k)
|
|
116
|
+
m.prototype.fc[r[k].filename].onload();
|
|
117
|
+
D.removeRunDependency(
|
|
118
|
+
"datafile_/Users/ivan/Dev/imagecapture-browser/packages/capture-wasm/dist/advanced-threads/capture-wasm.data",
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
D.FS_createPath("/", "microblink", !0, !0);
|
|
122
|
+
D.FS_createPath("/microblink", "capture", !0, !0);
|
|
123
|
+
m.prototype = {
|
|
124
|
+
fc: {},
|
|
125
|
+
open: function (r, k) {
|
|
126
|
+
this.name = k;
|
|
127
|
+
this.fc[k] = this;
|
|
128
|
+
D.addRunDependency(`fp ${this.name}`);
|
|
129
|
+
},
|
|
130
|
+
send: function () {},
|
|
131
|
+
onload: function () {
|
|
132
|
+
this.finish(this.Nc.subarray(this.start, this.end));
|
|
133
|
+
},
|
|
134
|
+
finish: function (r) {
|
|
135
|
+
D.FS_createDataFile(this.name, null, r, !0, !0, !0);
|
|
136
|
+
D.removeRunDependency(`fp ${this.name}`);
|
|
137
|
+
this.fc[this.name] = null;
|
|
138
|
+
},
|
|
139
|
+
};
|
|
140
|
+
for (var t = a.files, p = 0; p < t.length; ++p)
|
|
141
|
+
new m(t[p].start, t[p].end, t[p].audio || 0).open(
|
|
142
|
+
"GET",
|
|
143
|
+
t[p].filename,
|
|
144
|
+
);
|
|
145
|
+
D.addRunDependency(
|
|
146
|
+
"datafile_/Users/ivan/Dev/imagecapture-browser/packages/capture-wasm/dist/advanced-threads/capture-wasm.data",
|
|
147
|
+
);
|
|
148
|
+
D.uc || (D.uc = {});
|
|
149
|
+
D.uc[
|
|
150
|
+
"/Users/ivan/Dev/imagecapture-browser/packages/capture-wasm/dist/advanced-threads/capture-wasm.data"
|
|
151
|
+
] = { Cd: !1 };
|
|
152
|
+
l ? (n(l), (l = null)) : (g = n);
|
|
153
|
+
}
|
|
154
|
+
"object" === typeof window
|
|
155
|
+
? window.encodeURIComponent(
|
|
156
|
+
window.location.pathname
|
|
157
|
+
.toString()
|
|
158
|
+
.substring(
|
|
159
|
+
0,
|
|
160
|
+
window.location.pathname.toString().lastIndexOf("/"),
|
|
161
|
+
) + "/",
|
|
162
|
+
)
|
|
163
|
+
: "undefined" === typeof process &&
|
|
164
|
+
"undefined" !== typeof location &&
|
|
165
|
+
encodeURIComponent(
|
|
166
|
+
location.pathname
|
|
167
|
+
.toString()
|
|
168
|
+
.substring(0, location.pathname.toString().lastIndexOf("/")) +
|
|
169
|
+
"/",
|
|
170
|
+
);
|
|
171
|
+
"function" !== typeof D.locateFilePackage ||
|
|
172
|
+
D.locateFile ||
|
|
173
|
+
((D.locateFile = D.locateFilePackage),
|
|
174
|
+
E(
|
|
175
|
+
"warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)",
|
|
176
|
+
));
|
|
177
|
+
var e = D.locateFile
|
|
178
|
+
? D.locateFile("capture-wasm.data", "")
|
|
179
|
+
: "capture-wasm.data",
|
|
180
|
+
f = a.remote_package_size,
|
|
181
|
+
g = null,
|
|
182
|
+
l = D.getPreloadedPackage ? D.getPreloadedPackage(e, f) : null;
|
|
183
|
+
l ||
|
|
184
|
+
b(
|
|
185
|
+
e,
|
|
186
|
+
f,
|
|
187
|
+
function (m) {
|
|
188
|
+
g ? (g(m), (g = null)) : (l = m);
|
|
189
|
+
},
|
|
190
|
+
c,
|
|
191
|
+
);
|
|
192
|
+
D.calledRun ? d() : (D.preRun || (D.preRun = []), D.preRun.push(d));
|
|
193
|
+
})({
|
|
194
|
+
files: [
|
|
195
|
+
{
|
|
196
|
+
filename:
|
|
197
|
+
"/microblink/capture/Model_021c530a7efe77c0e90c4bfe19c3bebaaceee433103e4e6d4f1424d921885982.strop",
|
|
198
|
+
start: 0,
|
|
199
|
+
end: 308674,
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
filename:
|
|
203
|
+
"/microblink/capture/Model_07c7ab860e77ec2e92bb822f6d62424b8595a5beb4340f6b2f7f6a4cffa5d050.strop",
|
|
204
|
+
start: 308674,
|
|
205
|
+
end: 429092,
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
filename:
|
|
209
|
+
"/microblink/capture/Model_2880751121560047e6dc571bc8ff4683aeb863886f7c0789234594ceb1e23577.strop",
|
|
210
|
+
start: 429092,
|
|
211
|
+
end: 433030,
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
filename:
|
|
215
|
+
"/microblink/capture/Model_3b11c3ffacbbf390b932fb9a7024f1a0016f66281ea8c790f8b5903374ad89c2.strop",
|
|
216
|
+
start: 433030,
|
|
217
|
+
end: 721810,
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
filename:
|
|
221
|
+
"/microblink/capture/Model_e4f1f62f68ec44b71ecad3fb3f3b48fe3790beb5ab325611e17d63af06e9f644.strop",
|
|
222
|
+
start: 721810,
|
|
223
|
+
end: 778324,
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
filename:
|
|
227
|
+
"/microblink/capture/Model_ed586fd6ca47c8eebb513c4ffaaacc2c54e92162b145062d7022519fba0911de.strop",
|
|
228
|
+
start: 778324,
|
|
229
|
+
end: 1491556,
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
filename:
|
|
233
|
+
"/microblink/capture/Model_f2874f5766b779c063dbe30467979163497dc4b29c43bab23d70c798ee32993a.strop",
|
|
234
|
+
start: 1491556,
|
|
235
|
+
end: 1573062,
|
|
236
|
+
},
|
|
237
|
+
],
|
|
238
|
+
remote_package_size: 1573062,
|
|
239
|
+
});
|
|
240
|
+
D.onAbort = function (a) {
|
|
241
|
+
E("Aborted with message: " + a);
|
|
242
|
+
try {
|
|
243
|
+
throw new WebAssembly.RuntimeError(a);
|
|
244
|
+
} catch (b) {
|
|
245
|
+
E("Stacktrace: " + b.stack);
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
if ("object" == typeof window) {
|
|
249
|
+
D.arguments = window.location.search.substr(1).trim().split("&");
|
|
250
|
+
for (let a = 0; a < D.arguments.length; ++a)
|
|
251
|
+
D.arguments[a] = decodeURI(D.arguments[a]);
|
|
252
|
+
D.arguments[0] || (D.arguments = []);
|
|
253
|
+
}
|
|
254
|
+
var na = Object.assign({}, D),
|
|
255
|
+
oa = "./this.program",
|
|
256
|
+
pa = (a, b) => {
|
|
257
|
+
throw b;
|
|
258
|
+
},
|
|
259
|
+
F = D.ENVIRONMENT_IS_PTHREAD || !1,
|
|
260
|
+
qa = "";
|
|
261
|
+
function ra(a) {
|
|
262
|
+
return D.locateFile ? D.locateFile(a, qa) : qa + a;
|
|
263
|
+
}
|
|
264
|
+
var sa, ta, ua;
|
|
265
|
+
qa = self.location.href;
|
|
266
|
+
_scriptDir && (qa = _scriptDir);
|
|
267
|
+
qa = qa.startsWith("blob:")
|
|
268
|
+
? ""
|
|
269
|
+
: qa.substr(0, qa.replace(/[?#].*/, "").lastIndexOf("/") + 1);
|
|
270
|
+
sa = (a) => {
|
|
271
|
+
var b = new XMLHttpRequest();
|
|
272
|
+
b.open("GET", a, !1);
|
|
273
|
+
b.send(null);
|
|
274
|
+
return b.responseText;
|
|
275
|
+
};
|
|
276
|
+
ua = (a) => {
|
|
277
|
+
var b = new XMLHttpRequest();
|
|
278
|
+
b.open("GET", a, !1);
|
|
279
|
+
b.responseType = "arraybuffer";
|
|
280
|
+
b.send(null);
|
|
281
|
+
return new Uint8Array(b.response);
|
|
282
|
+
};
|
|
283
|
+
ta = (a, b, c) => {
|
|
284
|
+
var d = new XMLHttpRequest();
|
|
285
|
+
d.open("GET", a, !0);
|
|
286
|
+
d.responseType = "arraybuffer";
|
|
287
|
+
d.onload = () => {
|
|
288
|
+
200 == d.status || (0 == d.status && d.response) ? b(d.response) : c();
|
|
289
|
+
};
|
|
290
|
+
d.onerror = c;
|
|
291
|
+
d.send(null);
|
|
292
|
+
};
|
|
293
|
+
var va = D.print || console.log.bind(console),
|
|
294
|
+
E = D.printErr || console.error.bind(console);
|
|
295
|
+
Object.assign(D, na);
|
|
296
|
+
na = null;
|
|
297
|
+
D.thisProgram && (oa = D.thisProgram);
|
|
298
|
+
D.quit && (pa = D.quit);
|
|
299
|
+
var wa;
|
|
300
|
+
D.wasmBinary && (wa = D.wasmBinary);
|
|
301
|
+
"object" != typeof WebAssembly && xa("no native wasm support detected");
|
|
302
|
+
var u,
|
|
303
|
+
ya,
|
|
304
|
+
za = !1,
|
|
305
|
+
Aa,
|
|
306
|
+
aa,
|
|
307
|
+
ca,
|
|
308
|
+
ea,
|
|
309
|
+
fa,
|
|
310
|
+
ha,
|
|
311
|
+
ia,
|
|
312
|
+
Ba,
|
|
313
|
+
ka;
|
|
314
|
+
function ba() {
|
|
315
|
+
var a = u.buffer;
|
|
316
|
+
D.HEAP8 = aa = new Int8Array(a);
|
|
317
|
+
D.HEAP16 = ea = new Int16Array(a);
|
|
318
|
+
D.HEAPU8 = ca = new Uint8Array(a);
|
|
319
|
+
D.HEAPU16 = fa = new Uint16Array(a);
|
|
320
|
+
D.HEAP32 = ha = new Int32Array(a);
|
|
321
|
+
D.HEAPU32 = ia = new Uint32Array(a);
|
|
322
|
+
D.HEAPF32 = Ba = new Float32Array(a);
|
|
323
|
+
D.HEAPF64 = ka = new Float64Array(a);
|
|
324
|
+
}
|
|
325
|
+
var Ca = D.INITIAL_MEMORY || 209715200;
|
|
326
|
+
if (F) u = D.wasmMemory;
|
|
327
|
+
else if (D.wasmMemory) u = D.wasmMemory;
|
|
328
|
+
else if (
|
|
329
|
+
((u = new WebAssembly.Memory({
|
|
330
|
+
initial: Ca / 65536,
|
|
331
|
+
maximum: 32768,
|
|
332
|
+
shared: !0,
|
|
333
|
+
})),
|
|
334
|
+
!(u.buffer instanceof SharedArrayBuffer))
|
|
335
|
+
)
|
|
336
|
+
throw (
|
|
337
|
+
(E(
|
|
338
|
+
"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",
|
|
339
|
+
),
|
|
340
|
+
Error("bad memory"))
|
|
341
|
+
);
|
|
342
|
+
ba();
|
|
343
|
+
Ca = u.buffer.byteLength;
|
|
344
|
+
var Da = [],
|
|
345
|
+
Ea = [],
|
|
346
|
+
Fa = [],
|
|
347
|
+
Ga = [],
|
|
348
|
+
Ha = !1;
|
|
349
|
+
function Ia() {
|
|
350
|
+
F ||
|
|
351
|
+
(D.noFSInit ||
|
|
352
|
+
Ja ||
|
|
353
|
+
((Ja = !0),
|
|
354
|
+
(D.stdin = D.stdin),
|
|
355
|
+
(D.stdout = D.stdout),
|
|
356
|
+
(D.stderr = D.stderr),
|
|
357
|
+
D.stdin ? Ka("/dev", "stdin", D.stdin) : La("/dev/tty", "/dev/stdin"),
|
|
358
|
+
D.stdout
|
|
359
|
+
? Ka("/dev", "stdout", null, D.stdout)
|
|
360
|
+
: La("/dev/tty", "/dev/stdout"),
|
|
361
|
+
D.stderr
|
|
362
|
+
? Ka("/dev", "stderr", null, D.stderr)
|
|
363
|
+
: La("/dev/tty1", "/dev/stderr"),
|
|
364
|
+
Ma("/dev/stdin", 0),
|
|
365
|
+
Ma("/dev/stdout", 1),
|
|
366
|
+
Ma("/dev/stderr", 1)),
|
|
367
|
+
(Na = !1),
|
|
368
|
+
Oa(Ea));
|
|
369
|
+
}
|
|
370
|
+
var Pa = 0,
|
|
371
|
+
Qa = null,
|
|
372
|
+
Ra = null;
|
|
373
|
+
function Sa() {
|
|
374
|
+
Pa++;
|
|
375
|
+
D.monitorRunDependencies?.(Pa);
|
|
376
|
+
}
|
|
377
|
+
function Ta() {
|
|
378
|
+
Pa--;
|
|
379
|
+
D.monitorRunDependencies?.(Pa);
|
|
380
|
+
if (0 == Pa && (null !== Qa && (clearInterval(Qa), (Qa = null)), Ra)) {
|
|
381
|
+
var a = Ra;
|
|
382
|
+
Ra = null;
|
|
383
|
+
a();
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
function xa(a) {
|
|
387
|
+
D.onAbort?.(a);
|
|
388
|
+
a = "Aborted(" + a + ")";
|
|
389
|
+
E(a);
|
|
390
|
+
za = !0;
|
|
391
|
+
Aa = 1;
|
|
392
|
+
a = new WebAssembly.RuntimeError(
|
|
393
|
+
a + ". Build with -sASSERTIONS for more info.",
|
|
394
|
+
);
|
|
395
|
+
ma(a);
|
|
396
|
+
throw a;
|
|
397
|
+
}
|
|
398
|
+
var Ua = (a) => a.startsWith("data:application/octet-stream;base64,"),
|
|
399
|
+
Wa;
|
|
400
|
+
Wa = "capture-wasm.wasm";
|
|
401
|
+
Ua(Wa) || (Wa = ra(Wa));
|
|
402
|
+
function Xa(a) {
|
|
403
|
+
if (a == Wa && wa) return new Uint8Array(wa);
|
|
404
|
+
if (ua) return ua(a);
|
|
405
|
+
throw "both async and sync fetching of the wasm failed";
|
|
406
|
+
}
|
|
407
|
+
function Ya(a) {
|
|
408
|
+
return wa || "function" != typeof fetch
|
|
409
|
+
? Promise.resolve().then(() => Xa(a))
|
|
410
|
+
: fetch(a, { credentials: "same-origin" })
|
|
411
|
+
.then((b) => {
|
|
412
|
+
if (!b.ok) throw `failed to load wasm binary file at '${a}'`;
|
|
413
|
+
return b.arrayBuffer();
|
|
414
|
+
})
|
|
415
|
+
.catch(() => Xa(a));
|
|
416
|
+
}
|
|
417
|
+
function Za(a, b, c) {
|
|
418
|
+
return Ya(a)
|
|
419
|
+
.then((d) => WebAssembly.instantiate(d, b))
|
|
420
|
+
.then((d) => d)
|
|
421
|
+
.then(c, (d) => {
|
|
422
|
+
E(`failed to asynchronously prepare wasm: ${d}`);
|
|
423
|
+
xa(d);
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
function $a(a, b) {
|
|
427
|
+
var c = Wa;
|
|
428
|
+
return wa ||
|
|
429
|
+
"function" != typeof WebAssembly.instantiateStreaming ||
|
|
430
|
+
Ua(c) ||
|
|
431
|
+
"function" != typeof fetch
|
|
432
|
+
? Za(c, a, b)
|
|
433
|
+
: fetch(c, { credentials: "same-origin" }).then((d) =>
|
|
434
|
+
WebAssembly.instantiateStreaming(d, a).then(b, function (e) {
|
|
435
|
+
E(`wasm streaming compile failed: ${e}`);
|
|
436
|
+
E("falling back to ArrayBuffer instantiation");
|
|
437
|
+
return Za(c, a, b);
|
|
438
|
+
}),
|
|
439
|
+
);
|
|
440
|
+
}
|
|
441
|
+
var G,
|
|
442
|
+
H,
|
|
443
|
+
ab = {
|
|
444
|
+
62105: (a, b, c, d) => {
|
|
445
|
+
a = K(a);
|
|
446
|
+
b = K(b);
|
|
447
|
+
c = K(c);
|
|
448
|
+
d = K(d);
|
|
449
|
+
throw Error(a + b + c + d);
|
|
450
|
+
},
|
|
451
|
+
62321: (a, b) => {
|
|
452
|
+
a = K(a);
|
|
453
|
+
b = K(b);
|
|
454
|
+
throw Error(a + b);
|
|
455
|
+
},
|
|
456
|
+
};
|
|
457
|
+
function bb(a) {
|
|
458
|
+
this.name = "ExitStatus";
|
|
459
|
+
this.message = `Program terminated with exit(${a})`;
|
|
460
|
+
this.status = a;
|
|
461
|
+
}
|
|
462
|
+
var cb = (a) => {
|
|
463
|
+
a.terminate();
|
|
464
|
+
a.onmessage = () => {};
|
|
465
|
+
},
|
|
466
|
+
eb = (a) => {
|
|
467
|
+
0 == M.pb.length && (db(), M.rc(M.pb[0]));
|
|
468
|
+
var b = M.pb.pop();
|
|
469
|
+
if (!b) return 6;
|
|
470
|
+
M.ub.push(b);
|
|
471
|
+
M.lb[a.tb] = b;
|
|
472
|
+
b.tb = a.tb;
|
|
473
|
+
b.postMessage(
|
|
474
|
+
{ cmd: "run", start_routine: a.od, arg: a.Jc, pthread_ptr: a.tb },
|
|
475
|
+
a.td,
|
|
476
|
+
);
|
|
477
|
+
return 0;
|
|
478
|
+
},
|
|
479
|
+
N = 0,
|
|
480
|
+
hb = (a) => {
|
|
481
|
+
var b = fb();
|
|
482
|
+
a = a();
|
|
483
|
+
gb(b);
|
|
484
|
+
return a;
|
|
485
|
+
},
|
|
486
|
+
ib = (a, b) =>
|
|
487
|
+
(b + 2097152) >>> 0 < 4194305 - !!a ? (a >>> 0) + 4294967296 * b : NaN;
|
|
488
|
+
function O(a, b) {
|
|
489
|
+
var c = arguments.length - 2,
|
|
490
|
+
d = arguments;
|
|
491
|
+
return hb(() => {
|
|
492
|
+
for (var e = jb(8 * c), f = e >> 3, g = 0; g < c; g++) {
|
|
493
|
+
var l = d[2 + g];
|
|
494
|
+
ja()[f + g] = l;
|
|
495
|
+
}
|
|
496
|
+
return kb(a, c, e, b);
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
function lb(a) {
|
|
500
|
+
if (F) return O(0, 1, a);
|
|
501
|
+
Aa = a;
|
|
502
|
+
mb || 0 < N || (M.Dc(), D.onExit?.(a), (za = !0));
|
|
503
|
+
pa(a, new bb(a));
|
|
504
|
+
}
|
|
505
|
+
var sb = (a) => {
|
|
506
|
+
Aa = a;
|
|
507
|
+
if (F) throw (nb(a), "unwind");
|
|
508
|
+
if (!(mb || 0 < N || F)) {
|
|
509
|
+
ob();
|
|
510
|
+
Oa(Fa);
|
|
511
|
+
Ja = !1;
|
|
512
|
+
pb(0);
|
|
513
|
+
for (var b = 0; b < qb.length; b++) {
|
|
514
|
+
var c = qb[b];
|
|
515
|
+
c && rb(c);
|
|
516
|
+
}
|
|
517
|
+
M.Dc();
|
|
518
|
+
Ha = !0;
|
|
519
|
+
}
|
|
520
|
+
lb(a);
|
|
521
|
+
};
|
|
522
|
+
function tb() {
|
|
523
|
+
M.receiveObjectTransfer = M.hd;
|
|
524
|
+
M.threadInitTLS = M.Ec;
|
|
525
|
+
M.setExitStatus = M.Cc;
|
|
526
|
+
mb = !1;
|
|
527
|
+
}
|
|
528
|
+
function ub() {
|
|
529
|
+
for (var a = navigator.hardwareConcurrency; a--; ) db();
|
|
530
|
+
Da.unshift(() => {
|
|
531
|
+
Sa("loading-workers");
|
|
532
|
+
vb(() => Ta("loading-workers"));
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
function db() {
|
|
536
|
+
var a = ra("capture-wasm.worker.js");
|
|
537
|
+
a = new Worker(a);
|
|
538
|
+
M.pb.push(a);
|
|
539
|
+
}
|
|
540
|
+
function vb(a) {
|
|
541
|
+
F ? a() : Promise.all(M.pb.map(M.rc)).then(a);
|
|
542
|
+
}
|
|
543
|
+
var M = {
|
|
544
|
+
pb: [],
|
|
545
|
+
ub: [],
|
|
546
|
+
Fc: [],
|
|
547
|
+
lb: {},
|
|
548
|
+
Cc: (a) => (Aa = a),
|
|
549
|
+
Kd: ["$terminateWorker"],
|
|
550
|
+
Dc: () => {
|
|
551
|
+
for (var a of M.ub) cb(a);
|
|
552
|
+
for (a of M.pb) cb(a);
|
|
553
|
+
M.pb = [];
|
|
554
|
+
M.ub = [];
|
|
555
|
+
M.lb = [];
|
|
556
|
+
},
|
|
557
|
+
Ac: (a) => {
|
|
558
|
+
var b = a.tb;
|
|
559
|
+
delete M.lb[b];
|
|
560
|
+
M.pb.push(a);
|
|
561
|
+
M.ub.splice(M.ub.indexOf(a), 1);
|
|
562
|
+
a.tb = 0;
|
|
563
|
+
wb(b);
|
|
564
|
+
},
|
|
565
|
+
hd() {},
|
|
566
|
+
Ec() {
|
|
567
|
+
M.Fc.forEach((a) => a());
|
|
568
|
+
},
|
|
569
|
+
rc: (a) =>
|
|
570
|
+
new Promise((b) => {
|
|
571
|
+
a.onmessage = (f) => {
|
|
572
|
+
f = f.data;
|
|
573
|
+
var g = f.cmd;
|
|
574
|
+
if (f.targetThread && f.targetThread != xb()) {
|
|
575
|
+
var l = M.lb[f.targetThread];
|
|
576
|
+
l
|
|
577
|
+
? l.postMessage(f, f.transferList)
|
|
578
|
+
: E(
|
|
579
|
+
`Internal error! Worker sent a message "${g}" to target pthread ${f.targetThread}, but that thread no longer exists!`,
|
|
580
|
+
);
|
|
581
|
+
} else if ("checkMailbox" === g) yb();
|
|
582
|
+
else if ("spawnThread" === g) eb(f);
|
|
583
|
+
else if ("cleanupThread" === g) M.Ac(M.lb[f.thread]);
|
|
584
|
+
else if ("killThread" === g)
|
|
585
|
+
(f = f.thread),
|
|
586
|
+
(g = M.lb[f]),
|
|
587
|
+
delete M.lb[f],
|
|
588
|
+
cb(g),
|
|
589
|
+
wb(f),
|
|
590
|
+
M.ub.splice(M.ub.indexOf(g), 1),
|
|
591
|
+
(g.tb = 0);
|
|
592
|
+
else if ("cancelThread" === g)
|
|
593
|
+
M.lb[f.thread].postMessage({ cmd: "cancel" });
|
|
594
|
+
else if ("loaded" === g) (a.loaded = !0), b(a);
|
|
595
|
+
else if ("alert" === g) alert(`Thread ${f.threadId}: ${f.text}`);
|
|
596
|
+
else if ("setimmediate" === f.target) a.postMessage(f);
|
|
597
|
+
else if ("callHandler" === g) D[f.handler](...f.args);
|
|
598
|
+
else g && E(`worker sent an unknown command ${g}`);
|
|
599
|
+
};
|
|
600
|
+
a.onerror = (f) => {
|
|
601
|
+
E(
|
|
602
|
+
`${"worker sent an error!"} ${f.filename}:${f.lineno}: ${
|
|
603
|
+
f.message
|
|
604
|
+
}`,
|
|
605
|
+
);
|
|
606
|
+
throw f;
|
|
607
|
+
};
|
|
608
|
+
var c = [],
|
|
609
|
+
d = ["onExit", "onAbort", "print", "printErr"],
|
|
610
|
+
e;
|
|
611
|
+
for (e of d) D.hasOwnProperty(e) && c.push(e);
|
|
612
|
+
a.postMessage({
|
|
613
|
+
cmd: "load",
|
|
614
|
+
handlers: c,
|
|
615
|
+
urlOrBlob: D.mainScriptUrlOrBlob || _scriptDir,
|
|
616
|
+
wasmMemory: u,
|
|
617
|
+
wasmModule: ya,
|
|
618
|
+
});
|
|
619
|
+
}),
|
|
620
|
+
};
|
|
621
|
+
D.PThread = M;
|
|
622
|
+
var Oa = (a) => {
|
|
623
|
+
for (; 0 < a.length; ) a.shift()(D);
|
|
624
|
+
};
|
|
625
|
+
D.establishStackSpace = () => {
|
|
626
|
+
var a = xb(),
|
|
627
|
+
b = B()[(a + 52) >> 2];
|
|
628
|
+
a = B()[(a + 56) >> 2];
|
|
629
|
+
zb(b, b - a);
|
|
630
|
+
gb(b);
|
|
631
|
+
};
|
|
632
|
+
function nb(a) {
|
|
633
|
+
if (F) return O(1, 0, a);
|
|
634
|
+
sb(a);
|
|
635
|
+
}
|
|
636
|
+
var Ab = [],
|
|
637
|
+
Bb,
|
|
638
|
+
Cb = (a) => {
|
|
639
|
+
var b = Ab[a];
|
|
640
|
+
b || (a >= Ab.length && (Ab.length = a + 1), (Ab[a] = b = Bb.get(a)));
|
|
641
|
+
return b;
|
|
642
|
+
};
|
|
643
|
+
D.invokeEntryPoint = (a, b) => {
|
|
644
|
+
N = 0;
|
|
645
|
+
a = Cb(a)(b);
|
|
646
|
+
mb || 0 < N ? M.Cc(a) : Db(a);
|
|
647
|
+
};
|
|
648
|
+
var mb = D.noExitRuntime || !1;
|
|
649
|
+
function Eb(a, b, c, d) {
|
|
650
|
+
return F ? O(2, 1, a, b, c, d) : Fb(a, b, c, d);
|
|
651
|
+
}
|
|
652
|
+
var Fb = (a, b, c, d) => {
|
|
653
|
+
if ("undefined" == typeof SharedArrayBuffer)
|
|
654
|
+
return (
|
|
655
|
+
E(
|
|
656
|
+
"Current environment does not support SharedArrayBuffer, pthreads are not available!",
|
|
657
|
+
),
|
|
658
|
+
6
|
|
659
|
+
);
|
|
660
|
+
var e = [];
|
|
661
|
+
if (F && 0 === e.length) return Eb(a, b, c, d);
|
|
662
|
+
a = { od: c, tb: a, Jc: d, td: e };
|
|
663
|
+
return F ? ((a.Bd = "spawnThread"), postMessage(a, e), 0) : eb(a);
|
|
664
|
+
},
|
|
665
|
+
Gb = (a, b) => {
|
|
666
|
+
for (var c = 0, d = a.length - 1; 0 <= d; d--) {
|
|
667
|
+
var e = a[d];
|
|
668
|
+
"." === e
|
|
669
|
+
? a.splice(d, 1)
|
|
670
|
+
: ".." === e
|
|
671
|
+
? (a.splice(d, 1), c++)
|
|
672
|
+
: c && (a.splice(d, 1), c--);
|
|
673
|
+
}
|
|
674
|
+
if (b) for (; c; c--) a.unshift("..");
|
|
675
|
+
return a;
|
|
676
|
+
},
|
|
677
|
+
Hb = (a) => {
|
|
678
|
+
var b = "/" === a.charAt(0),
|
|
679
|
+
c = "/" === a.substr(-1);
|
|
680
|
+
(a = Gb(
|
|
681
|
+
a.split("/").filter((d) => !!d),
|
|
682
|
+
!b,
|
|
683
|
+
).join("/")) ||
|
|
684
|
+
b ||
|
|
685
|
+
(a = ".");
|
|
686
|
+
a && c && (a += "/");
|
|
687
|
+
return (b ? "/" : "") + a;
|
|
688
|
+
},
|
|
689
|
+
Ib = (a) => {
|
|
690
|
+
var b = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/
|
|
691
|
+
.exec(a)
|
|
692
|
+
.slice(1);
|
|
693
|
+
a = b[0];
|
|
694
|
+
b = b[1];
|
|
695
|
+
if (!a && !b) return ".";
|
|
696
|
+
b &&= b.substr(0, b.length - 1);
|
|
697
|
+
return a + b;
|
|
698
|
+
},
|
|
699
|
+
Jb = (a) => {
|
|
700
|
+
if ("/" === a) return "/";
|
|
701
|
+
a = Hb(a);
|
|
702
|
+
a = a.replace(/\/$/, "");
|
|
703
|
+
var b = a.lastIndexOf("/");
|
|
704
|
+
return -1 === b ? a : a.substr(b + 1);
|
|
705
|
+
},
|
|
706
|
+
Kb = () => {
|
|
707
|
+
if (
|
|
708
|
+
"object" == typeof crypto &&
|
|
709
|
+
"function" == typeof crypto.getRandomValues
|
|
710
|
+
)
|
|
711
|
+
return (a) => (
|
|
712
|
+
a.set(crypto.getRandomValues(new Uint8Array(a.byteLength))), a
|
|
713
|
+
);
|
|
714
|
+
xa("initRandomDevice");
|
|
715
|
+
},
|
|
716
|
+
Lb = (a) => (Lb = Kb())(a);
|
|
717
|
+
function Mb() {
|
|
718
|
+
for (var a = "", b = !1, c = arguments.length - 1; -1 <= c && !b; c--) {
|
|
719
|
+
b = 0 <= c ? arguments[c] : "/";
|
|
720
|
+
if ("string" != typeof b)
|
|
721
|
+
throw new TypeError("Arguments to path.resolve must be strings");
|
|
722
|
+
if (!b) return "";
|
|
723
|
+
a = b + "/" + a;
|
|
724
|
+
b = "/" === b.charAt(0);
|
|
725
|
+
}
|
|
726
|
+
a = Gb(
|
|
727
|
+
a.split("/").filter((d) => !!d),
|
|
728
|
+
!b,
|
|
729
|
+
).join("/");
|
|
730
|
+
return (b ? "/" : "") + a || ".";
|
|
731
|
+
}
|
|
732
|
+
var Nb =
|
|
733
|
+
"undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0,
|
|
734
|
+
Ob = (a, b, c) => {
|
|
735
|
+
var d = b + c;
|
|
736
|
+
for (c = b; a[c] && !(c >= d); ) ++c;
|
|
737
|
+
if (16 < c - b && a.buffer && Nb)
|
|
738
|
+
return Nb.decode(
|
|
739
|
+
a.buffer instanceof SharedArrayBuffer
|
|
740
|
+
? a.slice(b, c)
|
|
741
|
+
: a.subarray(b, c),
|
|
742
|
+
);
|
|
743
|
+
for (d = ""; b < c; ) {
|
|
744
|
+
var e = a[b++];
|
|
745
|
+
if (e & 128) {
|
|
746
|
+
var f = a[b++] & 63;
|
|
747
|
+
if (192 == (e & 224)) d += String.fromCharCode(((e & 31) << 6) | f);
|
|
748
|
+
else {
|
|
749
|
+
var g = a[b++] & 63;
|
|
750
|
+
e =
|
|
751
|
+
224 == (e & 240)
|
|
752
|
+
? ((e & 15) << 12) | (f << 6) | g
|
|
753
|
+
: ((e & 7) << 18) | (f << 12) | (g << 6) | (a[b++] & 63);
|
|
754
|
+
65536 > e
|
|
755
|
+
? (d += String.fromCharCode(e))
|
|
756
|
+
: ((e -= 65536),
|
|
757
|
+
(d += String.fromCharCode(
|
|
758
|
+
55296 | (e >> 10),
|
|
759
|
+
56320 | (e & 1023),
|
|
760
|
+
)));
|
|
761
|
+
}
|
|
762
|
+
} else d += String.fromCharCode(e);
|
|
763
|
+
}
|
|
764
|
+
return d;
|
|
765
|
+
},
|
|
766
|
+
Pb = [],
|
|
767
|
+
Qb = (a) => {
|
|
768
|
+
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
769
|
+
var d = a.charCodeAt(c);
|
|
770
|
+
127 >= d
|
|
771
|
+
? b++
|
|
772
|
+
: 2047 >= d
|
|
773
|
+
? (b += 2)
|
|
774
|
+
: 55296 <= d && 57343 >= d
|
|
775
|
+
? ((b += 4), ++c)
|
|
776
|
+
: (b += 3);
|
|
777
|
+
}
|
|
778
|
+
return b;
|
|
779
|
+
},
|
|
780
|
+
P = (a, b, c, d) => {
|
|
781
|
+
if (!(0 < d)) return 0;
|
|
782
|
+
var e = c;
|
|
783
|
+
d = c + d - 1;
|
|
784
|
+
for (var f = 0; f < a.length; ++f) {
|
|
785
|
+
var g = a.charCodeAt(f);
|
|
786
|
+
if (55296 <= g && 57343 >= g) {
|
|
787
|
+
var l = a.charCodeAt(++f);
|
|
788
|
+
g = (65536 + ((g & 1023) << 10)) | (l & 1023);
|
|
789
|
+
}
|
|
790
|
+
if (127 >= g) {
|
|
791
|
+
if (c >= d) break;
|
|
792
|
+
b[c++] = g;
|
|
793
|
+
} else {
|
|
794
|
+
if (2047 >= g) {
|
|
795
|
+
if (c + 1 >= d) break;
|
|
796
|
+
b[c++] = 192 | (g >> 6);
|
|
797
|
+
} else {
|
|
798
|
+
if (65535 >= g) {
|
|
799
|
+
if (c + 2 >= d) break;
|
|
800
|
+
b[c++] = 224 | (g >> 12);
|
|
801
|
+
} else {
|
|
802
|
+
if (c + 3 >= d) break;
|
|
803
|
+
b[c++] = 240 | (g >> 18);
|
|
804
|
+
b[c++] = 128 | ((g >> 12) & 63);
|
|
805
|
+
}
|
|
806
|
+
b[c++] = 128 | ((g >> 6) & 63);
|
|
807
|
+
}
|
|
808
|
+
b[c++] = 128 | (g & 63);
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
b[c] = 0;
|
|
812
|
+
return c - e;
|
|
813
|
+
};
|
|
814
|
+
function Rb(a, b) {
|
|
815
|
+
var c = Array(Qb(a) + 1);
|
|
816
|
+
a = P(a, c, 0, c.length);
|
|
817
|
+
b && (c.length = a);
|
|
818
|
+
return c;
|
|
819
|
+
}
|
|
820
|
+
var Sb = [];
|
|
821
|
+
function Tb(a, b) {
|
|
822
|
+
Sb[a] = { input: [], $a: [], Bb: b };
|
|
823
|
+
Ub(a, Vb);
|
|
824
|
+
}
|
|
825
|
+
var Vb = {
|
|
826
|
+
open(a) {
|
|
827
|
+
var b = Sb[a.node.Hb];
|
|
828
|
+
if (!b) throw new Q(43);
|
|
829
|
+
a.hb = b;
|
|
830
|
+
a.seekable = !1;
|
|
831
|
+
},
|
|
832
|
+
close(a) {
|
|
833
|
+
a.hb.Bb.Nb(a.hb);
|
|
834
|
+
},
|
|
835
|
+
Nb(a) {
|
|
836
|
+
a.hb.Bb.Nb(a.hb);
|
|
837
|
+
},
|
|
838
|
+
read(a, b, c, d) {
|
|
839
|
+
if (!a.hb || !a.hb.Bb.pc) throw new Q(60);
|
|
840
|
+
for (var e = 0, f = 0; f < d; f++) {
|
|
841
|
+
try {
|
|
842
|
+
var g = a.hb.Bb.pc(a.hb);
|
|
843
|
+
} catch (l) {
|
|
844
|
+
throw new Q(29);
|
|
845
|
+
}
|
|
846
|
+
if (void 0 === g && 0 === e) throw new Q(6);
|
|
847
|
+
if (null === g || void 0 === g) break;
|
|
848
|
+
e++;
|
|
849
|
+
b[c + f] = g;
|
|
850
|
+
}
|
|
851
|
+
e && (a.node.timestamp = Date.now());
|
|
852
|
+
return e;
|
|
853
|
+
},
|
|
854
|
+
write(a, b, c, d) {
|
|
855
|
+
if (!a.hb || !a.hb.Bb.cc) throw new Q(60);
|
|
856
|
+
try {
|
|
857
|
+
for (var e = 0; e < d; e++) a.hb.Bb.cc(a.hb, b[c + e]);
|
|
858
|
+
} catch (f) {
|
|
859
|
+
throw new Q(29);
|
|
860
|
+
}
|
|
861
|
+
d && (a.node.timestamp = Date.now());
|
|
862
|
+
return e;
|
|
863
|
+
},
|
|
864
|
+
},
|
|
865
|
+
Wb = {
|
|
866
|
+
pc() {
|
|
867
|
+
a: {
|
|
868
|
+
if (!Pb.length) {
|
|
869
|
+
var a = null;
|
|
870
|
+
"undefined" != typeof window && "function" == typeof window.prompt
|
|
871
|
+
? ((a = window.prompt("Input: ")), null !== a && (a += "\n"))
|
|
872
|
+
: "function" == typeof readline &&
|
|
873
|
+
((a = readline()), null !== a && (a += "\n"));
|
|
874
|
+
if (!a) {
|
|
875
|
+
a = null;
|
|
876
|
+
break a;
|
|
877
|
+
}
|
|
878
|
+
Pb = Rb(a, !0);
|
|
879
|
+
}
|
|
880
|
+
a = Pb.shift();
|
|
881
|
+
}
|
|
882
|
+
return a;
|
|
883
|
+
},
|
|
884
|
+
cc(a, b) {
|
|
885
|
+
null === b || 10 === b
|
|
886
|
+
? (va(Ob(a.$a, 0)), (a.$a = []))
|
|
887
|
+
: 0 != b && a.$a.push(b);
|
|
888
|
+
},
|
|
889
|
+
Nb(a) {
|
|
890
|
+
a.$a && 0 < a.$a.length && (va(Ob(a.$a, 0)), (a.$a = []));
|
|
891
|
+
},
|
|
892
|
+
Ed() {
|
|
893
|
+
return {
|
|
894
|
+
yd: 25856,
|
|
895
|
+
Ad: 5,
|
|
896
|
+
xd: 191,
|
|
897
|
+
zd: 35387,
|
|
898
|
+
wd: [
|
|
899
|
+
3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0,
|
|
900
|
+
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
901
|
+
],
|
|
902
|
+
};
|
|
903
|
+
},
|
|
904
|
+
Fd() {
|
|
905
|
+
return 0;
|
|
906
|
+
},
|
|
907
|
+
Gd() {
|
|
908
|
+
return [24, 80];
|
|
909
|
+
},
|
|
910
|
+
},
|
|
911
|
+
Xb = {
|
|
912
|
+
cc(a, b) {
|
|
913
|
+
null === b || 10 === b
|
|
914
|
+
? (E(Ob(a.$a, 0)), (a.$a = []))
|
|
915
|
+
: 0 != b && a.$a.push(b);
|
|
916
|
+
},
|
|
917
|
+
Nb(a) {
|
|
918
|
+
a.$a && 0 < a.$a.length && (E(Ob(a.$a, 0)), (a.$a = []));
|
|
919
|
+
},
|
|
920
|
+
},
|
|
921
|
+
Zb = (a) => {
|
|
922
|
+
a = 65536 * Math.ceil(a / 65536);
|
|
923
|
+
var b = Yb(65536, a);
|
|
924
|
+
b ? w().fill(0, b, b + a) : (b = 0);
|
|
925
|
+
return b;
|
|
926
|
+
};
|
|
927
|
+
function $b(a, b) {
|
|
928
|
+
var c = a.Sa ? a.Sa.length : 0;
|
|
929
|
+
c >= b ||
|
|
930
|
+
((b = Math.max(b, (c * (1048576 > c ? 2 : 1.125)) >>> 0)),
|
|
931
|
+
0 != c && (b = Math.max(b, 256)),
|
|
932
|
+
(c = a.Sa),
|
|
933
|
+
(a.Sa = new Uint8Array(b)),
|
|
934
|
+
0 < a.Xa && a.Sa.set(c.subarray(0, a.Xa), 0));
|
|
935
|
+
}
|
|
936
|
+
var R = {
|
|
937
|
+
kb: null,
|
|
938
|
+
ob() {
|
|
939
|
+
return R.createNode(null, "/", 16895, 0);
|
|
940
|
+
},
|
|
941
|
+
createNode(a, b, c, d) {
|
|
942
|
+
if (24576 === (c & 61440) || 4096 === (c & 61440)) throw new Q(63);
|
|
943
|
+
R.kb ||
|
|
944
|
+
(R.kb = {
|
|
945
|
+
dir: {
|
|
946
|
+
node: {
|
|
947
|
+
jb: R.Ta.jb,
|
|
948
|
+
fb: R.Ta.fb,
|
|
949
|
+
Db: R.Ta.Db,
|
|
950
|
+
Rb: R.Ta.Rb,
|
|
951
|
+
yc: R.Ta.yc,
|
|
952
|
+
Xb: R.Ta.Xb,
|
|
953
|
+
Bc: R.Ta.Bc,
|
|
954
|
+
wc: R.Ta.wc,
|
|
955
|
+
Ub: R.Ta.Ub,
|
|
956
|
+
},
|
|
957
|
+
stream: { sb: R.Ua.sb },
|
|
958
|
+
},
|
|
959
|
+
file: {
|
|
960
|
+
node: { jb: R.Ta.jb, fb: R.Ta.fb },
|
|
961
|
+
stream: {
|
|
962
|
+
sb: R.Ua.sb,
|
|
963
|
+
read: R.Ua.read,
|
|
964
|
+
write: R.Ua.write,
|
|
965
|
+
Cb: R.Ua.Cb,
|
|
966
|
+
Eb: R.Ua.Eb,
|
|
967
|
+
Sb: R.Ua.Sb,
|
|
968
|
+
},
|
|
969
|
+
},
|
|
970
|
+
link: {
|
|
971
|
+
node: { jb: R.Ta.jb, fb: R.Ta.fb, Ib: R.Ta.Ib },
|
|
972
|
+
stream: {},
|
|
973
|
+
},
|
|
974
|
+
kc: { node: { jb: R.Ta.jb, fb: R.Ta.fb }, stream: ac },
|
|
975
|
+
});
|
|
976
|
+
c = bc(a, b, c, d);
|
|
977
|
+
U(c.mode)
|
|
978
|
+
? ((c.Ta = R.kb.dir.node), (c.Ua = R.kb.dir.stream), (c.Sa = {}))
|
|
979
|
+
: 32768 === (c.mode & 61440)
|
|
980
|
+
? ((c.Ta = R.kb.file.node),
|
|
981
|
+
(c.Ua = R.kb.file.stream),
|
|
982
|
+
(c.Xa = 0),
|
|
983
|
+
(c.Sa = null))
|
|
984
|
+
: 40960 === (c.mode & 61440)
|
|
985
|
+
? ((c.Ta = R.kb.link.node), (c.Ua = R.kb.link.stream))
|
|
986
|
+
: 8192 === (c.mode & 61440) &&
|
|
987
|
+
((c.Ta = R.kb.kc.node), (c.Ua = R.kb.kc.stream));
|
|
988
|
+
c.timestamp = Date.now();
|
|
989
|
+
a && ((a.Sa[b] = c), (a.timestamp = c.timestamp));
|
|
990
|
+
return c;
|
|
991
|
+
},
|
|
992
|
+
Dd(a) {
|
|
993
|
+
return a.Sa
|
|
994
|
+
? a.Sa.subarray
|
|
995
|
+
? a.Sa.subarray(0, a.Xa)
|
|
996
|
+
: new Uint8Array(a.Sa)
|
|
997
|
+
: new Uint8Array(0);
|
|
998
|
+
},
|
|
999
|
+
Ta: {
|
|
1000
|
+
jb(a) {
|
|
1001
|
+
var b = {};
|
|
1002
|
+
b.Rc = 8192 === (a.mode & 61440) ? a.id : 1;
|
|
1003
|
+
b.qc = a.id;
|
|
1004
|
+
b.mode = a.mode;
|
|
1005
|
+
b.dd = 1;
|
|
1006
|
+
b.uid = 0;
|
|
1007
|
+
b.Yc = 0;
|
|
1008
|
+
b.Hb = a.Hb;
|
|
1009
|
+
b.size = U(a.mode)
|
|
1010
|
+
? 4096
|
|
1011
|
+
: 32768 === (a.mode & 61440)
|
|
1012
|
+
? a.Xa
|
|
1013
|
+
: 40960 === (a.mode & 61440)
|
|
1014
|
+
? a.link.length
|
|
1015
|
+
: 0;
|
|
1016
|
+
b.Kc = new Date(a.timestamp);
|
|
1017
|
+
b.cd = new Date(a.timestamp);
|
|
1018
|
+
b.Pc = new Date(a.timestamp);
|
|
1019
|
+
b.Lc = 4096;
|
|
1020
|
+
b.Mc = Math.ceil(b.size / b.Lc);
|
|
1021
|
+
return b;
|
|
1022
|
+
},
|
|
1023
|
+
fb(a, b) {
|
|
1024
|
+
void 0 !== b.mode && (a.mode = b.mode);
|
|
1025
|
+
void 0 !== b.timestamp && (a.timestamp = b.timestamp);
|
|
1026
|
+
if (void 0 !== b.size && ((b = b.size), a.Xa != b))
|
|
1027
|
+
if (0 == b) (a.Sa = null), (a.Xa = 0);
|
|
1028
|
+
else {
|
|
1029
|
+
var c = a.Sa;
|
|
1030
|
+
a.Sa = new Uint8Array(b);
|
|
1031
|
+
c && a.Sa.set(c.subarray(0, Math.min(b, a.Xa)));
|
|
1032
|
+
a.Xa = b;
|
|
1033
|
+
}
|
|
1034
|
+
},
|
|
1035
|
+
Db() {
|
|
1036
|
+
throw cc[44];
|
|
1037
|
+
},
|
|
1038
|
+
Rb(a, b, c, d) {
|
|
1039
|
+
return R.createNode(a, b, c, d);
|
|
1040
|
+
},
|
|
1041
|
+
yc(a, b, c) {
|
|
1042
|
+
if (U(a.mode)) {
|
|
1043
|
+
try {
|
|
1044
|
+
var d = dc(b, c);
|
|
1045
|
+
} catch (f) {}
|
|
1046
|
+
if (d) for (var e in d.Sa) throw new Q(55);
|
|
1047
|
+
}
|
|
1048
|
+
delete a.parent.Sa[a.name];
|
|
1049
|
+
a.parent.timestamp = Date.now();
|
|
1050
|
+
a.name = c;
|
|
1051
|
+
b.Sa[c] = a;
|
|
1052
|
+
b.timestamp = a.parent.timestamp;
|
|
1053
|
+
a.parent = b;
|
|
1054
|
+
},
|
|
1055
|
+
Xb(a, b) {
|
|
1056
|
+
delete a.Sa[b];
|
|
1057
|
+
a.timestamp = Date.now();
|
|
1058
|
+
},
|
|
1059
|
+
Bc(a, b) {
|
|
1060
|
+
var c = dc(a, b),
|
|
1061
|
+
d;
|
|
1062
|
+
for (d in c.Sa) throw new Q(55);
|
|
1063
|
+
delete a.Sa[b];
|
|
1064
|
+
a.timestamp = Date.now();
|
|
1065
|
+
},
|
|
1066
|
+
wc(a) {
|
|
1067
|
+
var b = [".", ".."],
|
|
1068
|
+
c;
|
|
1069
|
+
for (c of Object.keys(a.Sa)) b.push(c);
|
|
1070
|
+
return b;
|
|
1071
|
+
},
|
|
1072
|
+
Ub(a, b, c) {
|
|
1073
|
+
a = R.createNode(a, b, 41471, 0);
|
|
1074
|
+
a.link = c;
|
|
1075
|
+
return a;
|
|
1076
|
+
},
|
|
1077
|
+
Ib(a) {
|
|
1078
|
+
if (40960 !== (a.mode & 61440)) throw new Q(28);
|
|
1079
|
+
return a.link;
|
|
1080
|
+
},
|
|
1081
|
+
},
|
|
1082
|
+
Ua: {
|
|
1083
|
+
read(a, b, c, d, e) {
|
|
1084
|
+
var f = a.node.Sa;
|
|
1085
|
+
if (e >= a.node.Xa) return 0;
|
|
1086
|
+
a = Math.min(a.node.Xa - e, d);
|
|
1087
|
+
if (8 < a && f.subarray) b.set(f.subarray(e, e + a), c);
|
|
1088
|
+
else for (d = 0; d < a; d++) b[c + d] = f[e + d];
|
|
1089
|
+
return a;
|
|
1090
|
+
},
|
|
1091
|
+
write(a, b, c, d, e, f) {
|
|
1092
|
+
b.buffer === h().buffer && (f = !1);
|
|
1093
|
+
if (!d) return 0;
|
|
1094
|
+
a = a.node;
|
|
1095
|
+
a.timestamp = Date.now();
|
|
1096
|
+
if (b.subarray && (!a.Sa || a.Sa.subarray)) {
|
|
1097
|
+
if (f) return (a.Sa = b.subarray(c, c + d)), (a.Xa = d);
|
|
1098
|
+
if (0 === a.Xa && 0 === e)
|
|
1099
|
+
return (a.Sa = b.slice(c, c + d)), (a.Xa = d);
|
|
1100
|
+
if (e + d <= a.Xa) return a.Sa.set(b.subarray(c, c + d), e), d;
|
|
1101
|
+
}
|
|
1102
|
+
$b(a, e + d);
|
|
1103
|
+
if (a.Sa.subarray && b.subarray) a.Sa.set(b.subarray(c, c + d), e);
|
|
1104
|
+
else for (f = 0; f < d; f++) a.Sa[e + f] = b[c + f];
|
|
1105
|
+
a.Xa = Math.max(a.Xa, e + d);
|
|
1106
|
+
return d;
|
|
1107
|
+
},
|
|
1108
|
+
sb(a, b, c) {
|
|
1109
|
+
1 === c
|
|
1110
|
+
? (b += a.position)
|
|
1111
|
+
: 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.Xa);
|
|
1112
|
+
if (0 > b) throw new Q(28);
|
|
1113
|
+
return b;
|
|
1114
|
+
},
|
|
1115
|
+
Cb(a, b, c) {
|
|
1116
|
+
$b(a.node, b + c);
|
|
1117
|
+
a.node.Xa = Math.max(a.node.Xa, b + c);
|
|
1118
|
+
},
|
|
1119
|
+
Eb(a, b, c, d, e) {
|
|
1120
|
+
if (32768 !== (a.node.mode & 61440)) throw new Q(43);
|
|
1121
|
+
a = a.node.Sa;
|
|
1122
|
+
if (e & 2 || a.buffer !== h().buffer) {
|
|
1123
|
+
if (0 < c || c + b < a.length)
|
|
1124
|
+
a = a.subarray
|
|
1125
|
+
? a.subarray(c, c + b)
|
|
1126
|
+
: Array.prototype.slice.call(a, c, c + b);
|
|
1127
|
+
c = !0;
|
|
1128
|
+
b = Zb(b);
|
|
1129
|
+
if (!b) throw new Q(48);
|
|
1130
|
+
h().set(a, b);
|
|
1131
|
+
} else (c = !1), (b = a.byteOffset);
|
|
1132
|
+
return { Wa: b, bb: c };
|
|
1133
|
+
},
|
|
1134
|
+
Sb(a, b, c, d) {
|
|
1135
|
+
R.Ua.write(a, b, 0, d, c, !1);
|
|
1136
|
+
return 0;
|
|
1137
|
+
},
|
|
1138
|
+
},
|
|
1139
|
+
},
|
|
1140
|
+
ec = (a, b, c) => {
|
|
1141
|
+
var d = `al ${a}`;
|
|
1142
|
+
ta(
|
|
1143
|
+
a,
|
|
1144
|
+
(e) => {
|
|
1145
|
+
b(new Uint8Array(e));
|
|
1146
|
+
d && Ta(d);
|
|
1147
|
+
},
|
|
1148
|
+
() => {
|
|
1149
|
+
if (c) c();
|
|
1150
|
+
else throw `Loading data file "${a}" failed.`;
|
|
1151
|
+
},
|
|
1152
|
+
);
|
|
1153
|
+
d && Sa(d);
|
|
1154
|
+
},
|
|
1155
|
+
fc = D.preloadPlugins || [],
|
|
1156
|
+
gc = (a, b, c, d) => {
|
|
1157
|
+
"undefined" != typeof Browser && (F ? tb() : ub());
|
|
1158
|
+
var e = !1;
|
|
1159
|
+
fc.forEach((f) => {
|
|
1160
|
+
!e && f.canHandle(b) && (f.handle(a, b, c, d), (e = !0));
|
|
1161
|
+
});
|
|
1162
|
+
return e;
|
|
1163
|
+
},
|
|
1164
|
+
ic = (a, b, c, d, e, f, g, l, m, n) => {
|
|
1165
|
+
function t(k) {
|
|
1166
|
+
function q(v) {
|
|
1167
|
+
n?.();
|
|
1168
|
+
l || hc(a, b, v, d, e, m);
|
|
1169
|
+
f?.();
|
|
1170
|
+
Ta(r);
|
|
1171
|
+
}
|
|
1172
|
+
gc(k, p, q, () => {
|
|
1173
|
+
g?.();
|
|
1174
|
+
Ta(r);
|
|
1175
|
+
}) || q(k);
|
|
1176
|
+
}
|
|
1177
|
+
var p = b ? Mb(Hb(a + "/" + b)) : a,
|
|
1178
|
+
r = `cp ${p}`;
|
|
1179
|
+
Sa(r);
|
|
1180
|
+
"string" == typeof c ? ec(c, t, g) : t(c);
|
|
1181
|
+
},
|
|
1182
|
+
jc = (a, b) => {
|
|
1183
|
+
var c = 0;
|
|
1184
|
+
a && (c |= 365);
|
|
1185
|
+
b && (c |= 146);
|
|
1186
|
+
return c;
|
|
1187
|
+
},
|
|
1188
|
+
kc = null,
|
|
1189
|
+
lc = {},
|
|
1190
|
+
qb = [],
|
|
1191
|
+
mc = 1,
|
|
1192
|
+
nc = null,
|
|
1193
|
+
Na = !0,
|
|
1194
|
+
Q = class {
|
|
1195
|
+
constructor(a) {
|
|
1196
|
+
this.name = "ErrnoError";
|
|
1197
|
+
this.eb = a;
|
|
1198
|
+
}
|
|
1199
|
+
},
|
|
1200
|
+
cc = {};
|
|
1201
|
+
function oc(a, b = {}) {
|
|
1202
|
+
a = Mb(a);
|
|
1203
|
+
if (!a) return { path: "", node: null };
|
|
1204
|
+
b = Object.assign({ oc: !0, ec: 0 }, b);
|
|
1205
|
+
if (8 < b.ec) throw new Q(32);
|
|
1206
|
+
a = a.split("/").filter((g) => !!g);
|
|
1207
|
+
for (var c = kc, d = "/", e = 0; e < a.length; e++) {
|
|
1208
|
+
var f = e === a.length - 1;
|
|
1209
|
+
if (f && b.parent) break;
|
|
1210
|
+
c = dc(c, a[e]);
|
|
1211
|
+
d = Hb(d + "/" + a[e]);
|
|
1212
|
+
c.Fb && (!f || (f && b.oc)) && (c = c.Fb.root);
|
|
1213
|
+
if (!f || b.Mb)
|
|
1214
|
+
for (f = 0; 40960 === (c.mode & 61440); )
|
|
1215
|
+
if (
|
|
1216
|
+
((c = pc(d)),
|
|
1217
|
+
(d = Mb(Ib(d), c)),
|
|
1218
|
+
(c = oc(d, { ec: b.ec + 1 }).node),
|
|
1219
|
+
40 < f++)
|
|
1220
|
+
)
|
|
1221
|
+
throw new Q(32);
|
|
1222
|
+
}
|
|
1223
|
+
return { path: d, node: c };
|
|
1224
|
+
}
|
|
1225
|
+
function qc(a) {
|
|
1226
|
+
for (var b; ; ) {
|
|
1227
|
+
if (a === a.parent)
|
|
1228
|
+
return (
|
|
1229
|
+
(a = a.ob.tc),
|
|
1230
|
+
b ? ("/" !== a[a.length - 1] ? `${a}/${b}` : a + b) : a
|
|
1231
|
+
);
|
|
1232
|
+
b = b ? `${a.name}/${b}` : a.name;
|
|
1233
|
+
a = a.parent;
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
function rc(a, b) {
|
|
1237
|
+
for (var c = 0, d = 0; d < b.length; d++)
|
|
1238
|
+
c = ((c << 5) - c + b.charCodeAt(d)) | 0;
|
|
1239
|
+
return ((a + c) >>> 0) % nc.length;
|
|
1240
|
+
}
|
|
1241
|
+
function dc(a, b) {
|
|
1242
|
+
var c = U(a.mode) ? ((c = sc(a, "x")) ? c : a.Ta.Db ? 0 : 2) : 54;
|
|
1243
|
+
if (c) throw new Q(c);
|
|
1244
|
+
for (c = nc[rc(a.id, b)]; c; c = c.Ab) {
|
|
1245
|
+
var d = c.name;
|
|
1246
|
+
if (c.parent.id === a.id && d === b) return c;
|
|
1247
|
+
}
|
|
1248
|
+
return a.Ta.Db(a, b);
|
|
1249
|
+
}
|
|
1250
|
+
function bc(a, b, c, d) {
|
|
1251
|
+
a = new tc(a, b, c, d);
|
|
1252
|
+
b = rc(a.parent.id, a.name);
|
|
1253
|
+
a.Ab = nc[b];
|
|
1254
|
+
return (nc[b] = a);
|
|
1255
|
+
}
|
|
1256
|
+
function U(a) {
|
|
1257
|
+
return 16384 === (a & 61440);
|
|
1258
|
+
}
|
|
1259
|
+
function uc(a) {
|
|
1260
|
+
var b = ["r", "w", "rw"][a & 3];
|
|
1261
|
+
a & 512 && (b += "w");
|
|
1262
|
+
return b;
|
|
1263
|
+
}
|
|
1264
|
+
function sc(a, b) {
|
|
1265
|
+
if (Na) return 0;
|
|
1266
|
+
if (!b.includes("r") || a.mode & 292) {
|
|
1267
|
+
if (
|
|
1268
|
+
(b.includes("w") && !(a.mode & 146)) ||
|
|
1269
|
+
(b.includes("x") && !(a.mode & 73))
|
|
1270
|
+
)
|
|
1271
|
+
return 2;
|
|
1272
|
+
} else return 2;
|
|
1273
|
+
return 0;
|
|
1274
|
+
}
|
|
1275
|
+
function vc(a, b) {
|
|
1276
|
+
try {
|
|
1277
|
+
return dc(a, b), 20;
|
|
1278
|
+
} catch (c) {}
|
|
1279
|
+
return sc(a, "wx");
|
|
1280
|
+
}
|
|
1281
|
+
function wc() {
|
|
1282
|
+
for (var a = 0; 4096 >= a; a++) if (!qb[a]) return a;
|
|
1283
|
+
throw new Q(33);
|
|
1284
|
+
}
|
|
1285
|
+
function xc(a) {
|
|
1286
|
+
a = qb[a];
|
|
1287
|
+
if (!a) throw new Q(8);
|
|
1288
|
+
return a;
|
|
1289
|
+
}
|
|
1290
|
+
function yc(a) {
|
|
1291
|
+
var b = -1;
|
|
1292
|
+
zc ||
|
|
1293
|
+
((zc = function () {
|
|
1294
|
+
this.Tb = {};
|
|
1295
|
+
}),
|
|
1296
|
+
(zc.prototype = {}),
|
|
1297
|
+
Object.defineProperties(zc.prototype, {
|
|
1298
|
+
object: {
|
|
1299
|
+
get() {
|
|
1300
|
+
return this.node;
|
|
1301
|
+
},
|
|
1302
|
+
set(c) {
|
|
1303
|
+
this.node = c;
|
|
1304
|
+
},
|
|
1305
|
+
},
|
|
1306
|
+
flags: {
|
|
1307
|
+
get() {
|
|
1308
|
+
return this.Tb.flags;
|
|
1309
|
+
},
|
|
1310
|
+
set(c) {
|
|
1311
|
+
this.Tb.flags = c;
|
|
1312
|
+
},
|
|
1313
|
+
},
|
|
1314
|
+
position: {
|
|
1315
|
+
get() {
|
|
1316
|
+
return this.Tb.position;
|
|
1317
|
+
},
|
|
1318
|
+
set(c) {
|
|
1319
|
+
this.Tb.position = c;
|
|
1320
|
+
},
|
|
1321
|
+
},
|
|
1322
|
+
}));
|
|
1323
|
+
a = Object.assign(new zc(), a);
|
|
1324
|
+
-1 == b && (b = wc());
|
|
1325
|
+
a.rb = b;
|
|
1326
|
+
return (qb[b] = a);
|
|
1327
|
+
}
|
|
1328
|
+
var ac = {
|
|
1329
|
+
open(a) {
|
|
1330
|
+
a.Ua = lc[a.node.Hb].Ua;
|
|
1331
|
+
a.Ua.open?.(a);
|
|
1332
|
+
},
|
|
1333
|
+
sb() {
|
|
1334
|
+
throw new Q(70);
|
|
1335
|
+
},
|
|
1336
|
+
};
|
|
1337
|
+
function Ub(a, b) {
|
|
1338
|
+
lc[a] = { Ua: b };
|
|
1339
|
+
}
|
|
1340
|
+
function Ac(a, b) {
|
|
1341
|
+
var c = "/" === b;
|
|
1342
|
+
if (c && kc) throw new Q(10);
|
|
1343
|
+
if (!c && b) {
|
|
1344
|
+
var d = oc(b, { oc: !1 });
|
|
1345
|
+
b = d.path;
|
|
1346
|
+
d = d.node;
|
|
1347
|
+
if (d.Fb) throw new Q(10);
|
|
1348
|
+
if (!U(d.mode)) throw new Q(54);
|
|
1349
|
+
}
|
|
1350
|
+
b = { type: a, Jd: {}, tc: b, bd: [] };
|
|
1351
|
+
a = a.ob(b);
|
|
1352
|
+
a.ob = b;
|
|
1353
|
+
b.root = a;
|
|
1354
|
+
c ? (kc = a) : d && ((d.Fb = b), d.ob && d.ob.bd.push(b));
|
|
1355
|
+
}
|
|
1356
|
+
function Bc(a, b, c) {
|
|
1357
|
+
var d = oc(a, { parent: !0 }).node;
|
|
1358
|
+
a = Jb(a);
|
|
1359
|
+
if (!a || "." === a || ".." === a) throw new Q(28);
|
|
1360
|
+
var e = vc(d, a);
|
|
1361
|
+
if (e) throw new Q(e);
|
|
1362
|
+
if (!d.Ta.Rb) throw new Q(63);
|
|
1363
|
+
return d.Ta.Rb(d, a, b, c);
|
|
1364
|
+
}
|
|
1365
|
+
function Cc(a) {
|
|
1366
|
+
return Bc(a, 16895, 0);
|
|
1367
|
+
}
|
|
1368
|
+
function Dc(a, b, c) {
|
|
1369
|
+
"undefined" == typeof c && ((c = b), (b = 438));
|
|
1370
|
+
return Bc(a, b | 8192, c);
|
|
1371
|
+
}
|
|
1372
|
+
function La(a, b) {
|
|
1373
|
+
if (!Mb(a)) throw new Q(44);
|
|
1374
|
+
var c = oc(b, { parent: !0 }).node;
|
|
1375
|
+
if (!c) throw new Q(44);
|
|
1376
|
+
b = Jb(b);
|
|
1377
|
+
var d = vc(c, b);
|
|
1378
|
+
if (d) throw new Q(d);
|
|
1379
|
+
if (!c.Ta.Ub) throw new Q(63);
|
|
1380
|
+
c.Ta.Ub(c, b, a);
|
|
1381
|
+
}
|
|
1382
|
+
function Ec(a) {
|
|
1383
|
+
var b = oc(a, { parent: !0 }).node;
|
|
1384
|
+
if (!b) throw new Q(44);
|
|
1385
|
+
var c = Jb(a);
|
|
1386
|
+
a = dc(b, c);
|
|
1387
|
+
a: {
|
|
1388
|
+
try {
|
|
1389
|
+
var d = dc(b, c);
|
|
1390
|
+
} catch (f) {
|
|
1391
|
+
d = f.eb;
|
|
1392
|
+
break a;
|
|
1393
|
+
}
|
|
1394
|
+
var e = sc(b, "wx");
|
|
1395
|
+
d = e ? e : U(d.mode) ? 31 : 0;
|
|
1396
|
+
}
|
|
1397
|
+
if (d) throw new Q(d);
|
|
1398
|
+
if (!b.Ta.Xb) throw new Q(63);
|
|
1399
|
+
if (a.Fb) throw new Q(10);
|
|
1400
|
+
b.Ta.Xb(b, c);
|
|
1401
|
+
b = rc(a.parent.id, a.name);
|
|
1402
|
+
if (nc[b] === a) nc[b] = a.Ab;
|
|
1403
|
+
else
|
|
1404
|
+
for (b = nc[b]; b; ) {
|
|
1405
|
+
if (b.Ab === a) {
|
|
1406
|
+
b.Ab = a.Ab;
|
|
1407
|
+
break;
|
|
1408
|
+
}
|
|
1409
|
+
b = b.Ab;
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
function pc(a) {
|
|
1413
|
+
a = oc(a).node;
|
|
1414
|
+
if (!a) throw new Q(44);
|
|
1415
|
+
if (!a.Ta.Ib) throw new Q(28);
|
|
1416
|
+
return Mb(qc(a.parent), a.Ta.Ib(a));
|
|
1417
|
+
}
|
|
1418
|
+
function Fc(a, b) {
|
|
1419
|
+
a = oc(a, { Mb: !b }).node;
|
|
1420
|
+
if (!a) throw new Q(44);
|
|
1421
|
+
if (!a.Ta.jb) throw new Q(63);
|
|
1422
|
+
return a.Ta.jb(a);
|
|
1423
|
+
}
|
|
1424
|
+
function Gc(a) {
|
|
1425
|
+
return Fc(a, !0);
|
|
1426
|
+
}
|
|
1427
|
+
function Hc(a, b) {
|
|
1428
|
+
a = "string" == typeof a ? oc(a, { Mb: !0 }).node : a;
|
|
1429
|
+
if (!a.Ta.fb) throw new Q(63);
|
|
1430
|
+
a.Ta.fb(a, {
|
|
1431
|
+
mode: (b & 4095) | (a.mode & -4096),
|
|
1432
|
+
timestamp: Date.now(),
|
|
1433
|
+
});
|
|
1434
|
+
}
|
|
1435
|
+
function Ma(a, b, c) {
|
|
1436
|
+
if ("" === a) throw new Q(44);
|
|
1437
|
+
if ("string" == typeof b) {
|
|
1438
|
+
var d = { r: 0, "r+": 2, w: 577, "w+": 578, a: 1089, "a+": 1090 }[b];
|
|
1439
|
+
if ("undefined" == typeof d)
|
|
1440
|
+
throw Error(`Unknown file open mode: ${b}`);
|
|
1441
|
+
b = d;
|
|
1442
|
+
}
|
|
1443
|
+
c = b & 64 ? (("undefined" == typeof c ? 438 : c) & 4095) | 32768 : 0;
|
|
1444
|
+
if ("object" == typeof a) var e = a;
|
|
1445
|
+
else {
|
|
1446
|
+
a = Hb(a);
|
|
1447
|
+
try {
|
|
1448
|
+
e = oc(a, { Mb: !(b & 131072) }).node;
|
|
1449
|
+
} catch (f) {}
|
|
1450
|
+
}
|
|
1451
|
+
d = !1;
|
|
1452
|
+
if (b & 64)
|
|
1453
|
+
if (e) {
|
|
1454
|
+
if (b & 128) throw new Q(20);
|
|
1455
|
+
} else (e = Bc(a, c, 0)), (d = !0);
|
|
1456
|
+
if (!e) throw new Q(44);
|
|
1457
|
+
8192 === (e.mode & 61440) && (b &= -513);
|
|
1458
|
+
if (b & 65536 && !U(e.mode)) throw new Q(54);
|
|
1459
|
+
if (
|
|
1460
|
+
!d &&
|
|
1461
|
+
(c = e
|
|
1462
|
+
? 40960 === (e.mode & 61440)
|
|
1463
|
+
? 32
|
|
1464
|
+
: U(e.mode) && ("r" !== uc(b) || b & 512)
|
|
1465
|
+
? 31
|
|
1466
|
+
: sc(e, uc(b))
|
|
1467
|
+
: 44)
|
|
1468
|
+
)
|
|
1469
|
+
throw new Q(c);
|
|
1470
|
+
if (b & 512 && !d) {
|
|
1471
|
+
c = e;
|
|
1472
|
+
c = "string" == typeof c ? oc(c, { Mb: !0 }).node : c;
|
|
1473
|
+
if (!c.Ta.fb) throw new Q(63);
|
|
1474
|
+
if (U(c.mode)) throw new Q(31);
|
|
1475
|
+
if (32768 !== (c.mode & 61440)) throw new Q(28);
|
|
1476
|
+
if ((d = sc(c, "w"))) throw new Q(d);
|
|
1477
|
+
c.Ta.fb(c, { size: 0, timestamp: Date.now() });
|
|
1478
|
+
}
|
|
1479
|
+
b &= -131713;
|
|
1480
|
+
e = yc({
|
|
1481
|
+
node: e,
|
|
1482
|
+
path: qc(e),
|
|
1483
|
+
flags: b,
|
|
1484
|
+
seekable: !0,
|
|
1485
|
+
position: 0,
|
|
1486
|
+
Ua: e.Ua,
|
|
1487
|
+
ud: [],
|
|
1488
|
+
error: !1,
|
|
1489
|
+
});
|
|
1490
|
+
e.Ua.open && e.Ua.open(e);
|
|
1491
|
+
!D.logReadFiles || b & 1 || ((Ic ||= {}), a in Ic || (Ic[a] = 1));
|
|
1492
|
+
return e;
|
|
1493
|
+
}
|
|
1494
|
+
function rb(a) {
|
|
1495
|
+
if (null === a.rb) throw new Q(8);
|
|
1496
|
+
a.$b && (a.$b = null);
|
|
1497
|
+
try {
|
|
1498
|
+
a.Ua.close && a.Ua.close(a);
|
|
1499
|
+
} catch (b) {
|
|
1500
|
+
throw b;
|
|
1501
|
+
} finally {
|
|
1502
|
+
qb[a.rb] = null;
|
|
1503
|
+
}
|
|
1504
|
+
a.rb = null;
|
|
1505
|
+
}
|
|
1506
|
+
function Jc(a, b, c) {
|
|
1507
|
+
if (null === a.rb) throw new Q(8);
|
|
1508
|
+
if (!a.seekable || !a.Ua.sb) throw new Q(70);
|
|
1509
|
+
if (0 != c && 1 != c && 2 != c) throw new Q(28);
|
|
1510
|
+
a.position = a.Ua.sb(a, b, c);
|
|
1511
|
+
a.ud = [];
|
|
1512
|
+
}
|
|
1513
|
+
function Kc(a, b, c, d, e, f) {
|
|
1514
|
+
if (0 > d || 0 > e) throw new Q(28);
|
|
1515
|
+
if (null === a.rb) throw new Q(8);
|
|
1516
|
+
if (0 === (a.flags & 2097155)) throw new Q(8);
|
|
1517
|
+
if (U(a.node.mode)) throw new Q(31);
|
|
1518
|
+
if (!a.Ua.write) throw new Q(28);
|
|
1519
|
+
a.seekable && a.flags & 1024 && Jc(a, 0, 2);
|
|
1520
|
+
var g = "undefined" != typeof e;
|
|
1521
|
+
if (!g) e = a.position;
|
|
1522
|
+
else if (!a.seekable) throw new Q(70);
|
|
1523
|
+
b = a.Ua.write(a, b, c, d, e, f);
|
|
1524
|
+
g || (a.position += b);
|
|
1525
|
+
return b;
|
|
1526
|
+
}
|
|
1527
|
+
var Ja;
|
|
1528
|
+
function Lc(a, b) {
|
|
1529
|
+
a = "string" == typeof a ? a : qc(a);
|
|
1530
|
+
for (b = b.split("/").reverse(); b.length; ) {
|
|
1531
|
+
var c = b.pop();
|
|
1532
|
+
if (c) {
|
|
1533
|
+
var d = Hb(a + "/" + c);
|
|
1534
|
+
try {
|
|
1535
|
+
Cc(d);
|
|
1536
|
+
} catch (e) {}
|
|
1537
|
+
a = d;
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
return d;
|
|
1541
|
+
}
|
|
1542
|
+
function Mc(a, b, c, d) {
|
|
1543
|
+
a = Hb(("string" == typeof a ? a : qc(a)) + "/" + b);
|
|
1544
|
+
c = jc(c, d);
|
|
1545
|
+
return Bc(a, ((void 0 !== c ? c : 438) & 4095) | 32768, 0);
|
|
1546
|
+
}
|
|
1547
|
+
function hc(a, b, c, d, e, f) {
|
|
1548
|
+
var g = b;
|
|
1549
|
+
a &&
|
|
1550
|
+
((a = "string" == typeof a ? a : qc(a)), (g = b ? Hb(a + "/" + b) : a));
|
|
1551
|
+
a = jc(d, e);
|
|
1552
|
+
g = Bc(g, ((void 0 !== a ? a : 438) & 4095) | 32768, 0);
|
|
1553
|
+
if (c) {
|
|
1554
|
+
if ("string" == typeof c) {
|
|
1555
|
+
b = Array(c.length);
|
|
1556
|
+
d = 0;
|
|
1557
|
+
for (e = c.length; d < e; ++d) b[d] = c.charCodeAt(d);
|
|
1558
|
+
c = b;
|
|
1559
|
+
}
|
|
1560
|
+
Hc(g, a | 146);
|
|
1561
|
+
b = Ma(g, 577);
|
|
1562
|
+
Kc(b, c, 0, c.length, 0, f);
|
|
1563
|
+
rb(b);
|
|
1564
|
+
Hc(g, a);
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
function Ka(a, b, c, d) {
|
|
1568
|
+
a = Hb(("string" == typeof a ? a : qc(a)) + "/" + b);
|
|
1569
|
+
b = jc(!!c, !!d);
|
|
1570
|
+
Ka.sc || (Ka.sc = 64);
|
|
1571
|
+
var e = (Ka.sc++ << 8) | 0;
|
|
1572
|
+
Ub(e, {
|
|
1573
|
+
open(f) {
|
|
1574
|
+
f.seekable = !1;
|
|
1575
|
+
},
|
|
1576
|
+
close() {
|
|
1577
|
+
d?.buffer?.length && d(10);
|
|
1578
|
+
},
|
|
1579
|
+
read(f, g, l, m) {
|
|
1580
|
+
for (var n = 0, t = 0; t < m; t++) {
|
|
1581
|
+
try {
|
|
1582
|
+
var p = c();
|
|
1583
|
+
} catch (r) {
|
|
1584
|
+
throw new Q(29);
|
|
1585
|
+
}
|
|
1586
|
+
if (void 0 === p && 0 === n) throw new Q(6);
|
|
1587
|
+
if (null === p || void 0 === p) break;
|
|
1588
|
+
n++;
|
|
1589
|
+
g[l + t] = p;
|
|
1590
|
+
}
|
|
1591
|
+
n && (f.node.timestamp = Date.now());
|
|
1592
|
+
return n;
|
|
1593
|
+
},
|
|
1594
|
+
write(f, g, l, m) {
|
|
1595
|
+
for (var n = 0; n < m; n++)
|
|
1596
|
+
try {
|
|
1597
|
+
d(g[l + n]);
|
|
1598
|
+
} catch (t) {
|
|
1599
|
+
throw new Q(29);
|
|
1600
|
+
}
|
|
1601
|
+
m && (f.node.timestamp = Date.now());
|
|
1602
|
+
return n;
|
|
1603
|
+
},
|
|
1604
|
+
});
|
|
1605
|
+
return Dc(a, b, e);
|
|
1606
|
+
}
|
|
1607
|
+
function Nc(a) {
|
|
1608
|
+
if (!(a.$c || a.ad || a.link || a.Sa)) {
|
|
1609
|
+
if ("undefined" != typeof XMLHttpRequest)
|
|
1610
|
+
throw Error(
|
|
1611
|
+
"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.",
|
|
1612
|
+
);
|
|
1613
|
+
if (sa)
|
|
1614
|
+
try {
|
|
1615
|
+
(a.Sa = Rb(sa(a.url), !0)), (a.Xa = a.Sa.length);
|
|
1616
|
+
} catch (b) {
|
|
1617
|
+
throw new Q(29);
|
|
1618
|
+
}
|
|
1619
|
+
else throw Error("Cannot load without read() or XMLHttpRequest.");
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
function Oc(a, b, c, d, e) {
|
|
1623
|
+
function f() {
|
|
1624
|
+
this.bc = !1;
|
|
1625
|
+
this.Lb = [];
|
|
1626
|
+
}
|
|
1627
|
+
function g(p, r, k, q, v) {
|
|
1628
|
+
p = p.node.Sa;
|
|
1629
|
+
if (v >= p.length) return 0;
|
|
1630
|
+
q = Math.min(p.length - v, q);
|
|
1631
|
+
if (p.slice) for (var z = 0; z < q; z++) r[k + z] = p[v + z];
|
|
1632
|
+
else for (z = 0; z < q; z++) r[k + z] = p.get(v + z);
|
|
1633
|
+
return q;
|
|
1634
|
+
}
|
|
1635
|
+
f.prototype.get = function (p) {
|
|
1636
|
+
if (!(p > this.length - 1 || 0 > p)) {
|
|
1637
|
+
var r = p % this.lc;
|
|
1638
|
+
return this.Ob((p / this.lc) | 0)[r];
|
|
1639
|
+
}
|
|
1640
|
+
};
|
|
1641
|
+
f.prototype.jd = function (p) {
|
|
1642
|
+
this.Ob = p;
|
|
1643
|
+
};
|
|
1644
|
+
f.prototype.jc = function () {
|
|
1645
|
+
var p = new XMLHttpRequest();
|
|
1646
|
+
p.open("HEAD", c, !1);
|
|
1647
|
+
p.send(null);
|
|
1648
|
+
if (!((200 <= p.status && 300 > p.status) || 304 === p.status))
|
|
1649
|
+
throw Error("Couldn't load " + c + ". Status: " + p.status);
|
|
1650
|
+
var r = Number(p.getResponseHeader("Content-length")),
|
|
1651
|
+
k,
|
|
1652
|
+
q = (k = p.getResponseHeader("Accept-Ranges")) && "bytes" === k;
|
|
1653
|
+
p = (k = p.getResponseHeader("Content-Encoding")) && "gzip" === k;
|
|
1654
|
+
var v = 1048576;
|
|
1655
|
+
q || (v = r);
|
|
1656
|
+
var z = this;
|
|
1657
|
+
z.jd((L) => {
|
|
1658
|
+
var J = L * v,
|
|
1659
|
+
y = (L + 1) * v - 1;
|
|
1660
|
+
y = Math.min(y, r - 1);
|
|
1661
|
+
if ("undefined" == typeof z.Lb[L]) {
|
|
1662
|
+
var S = z.Lb;
|
|
1663
|
+
if (J > y)
|
|
1664
|
+
throw Error(
|
|
1665
|
+
"invalid range (" + J + ", " + y + ") or no bytes requested!",
|
|
1666
|
+
);
|
|
1667
|
+
if (y > r - 1)
|
|
1668
|
+
throw Error("only " + r + " bytes available! programmer error!");
|
|
1669
|
+
var C = new XMLHttpRequest();
|
|
1670
|
+
C.open("GET", c, !1);
|
|
1671
|
+
r !== v && C.setRequestHeader("Range", "bytes=" + J + "-" + y);
|
|
1672
|
+
C.responseType = "arraybuffer";
|
|
1673
|
+
C.overrideMimeType &&
|
|
1674
|
+
C.overrideMimeType("text/plain; charset=x-user-defined");
|
|
1675
|
+
C.send(null);
|
|
1676
|
+
if (!((200 <= C.status && 300 > C.status) || 304 === C.status))
|
|
1677
|
+
throw Error("Couldn't load " + c + ". Status: " + C.status);
|
|
1678
|
+
J =
|
|
1679
|
+
void 0 !== C.response
|
|
1680
|
+
? new Uint8Array(C.response || [])
|
|
1681
|
+
: Rb(C.responseText || "", !0);
|
|
1682
|
+
S[L] = J;
|
|
1683
|
+
}
|
|
1684
|
+
if ("undefined" == typeof z.Lb[L]) throw Error("doXHR failed!");
|
|
1685
|
+
return z.Lb[L];
|
|
1686
|
+
});
|
|
1687
|
+
if (p || !r)
|
|
1688
|
+
(v = r = 1),
|
|
1689
|
+
(v = r = this.Ob(0).length),
|
|
1690
|
+
va(
|
|
1691
|
+
"LazyFiles on gzip forces download of the whole file when length is accessed",
|
|
1692
|
+
);
|
|
1693
|
+
this.Hc = r;
|
|
1694
|
+
this.Gc = v;
|
|
1695
|
+
this.bc = !0;
|
|
1696
|
+
};
|
|
1697
|
+
if ("undefined" != typeof XMLHttpRequest) {
|
|
1698
|
+
var l = new f();
|
|
1699
|
+
Object.defineProperties(l, {
|
|
1700
|
+
length: {
|
|
1701
|
+
get: function () {
|
|
1702
|
+
this.bc || this.jc();
|
|
1703
|
+
return this.Hc;
|
|
1704
|
+
},
|
|
1705
|
+
},
|
|
1706
|
+
lc: {
|
|
1707
|
+
get: function () {
|
|
1708
|
+
this.bc || this.jc();
|
|
1709
|
+
return this.Gc;
|
|
1710
|
+
},
|
|
1711
|
+
},
|
|
1712
|
+
});
|
|
1713
|
+
var m = void 0;
|
|
1714
|
+
} else (m = c), (l = void 0);
|
|
1715
|
+
var n = Mc(a, b, d, e);
|
|
1716
|
+
l ? (n.Sa = l) : m && ((n.Sa = null), (n.url = m));
|
|
1717
|
+
Object.defineProperties(n, {
|
|
1718
|
+
Xa: {
|
|
1719
|
+
get: function () {
|
|
1720
|
+
return this.Sa.length;
|
|
1721
|
+
},
|
|
1722
|
+
},
|
|
1723
|
+
});
|
|
1724
|
+
var t = {};
|
|
1725
|
+
Object.keys(n.Ua).forEach((p) => {
|
|
1726
|
+
var r = n.Ua[p];
|
|
1727
|
+
t[p] = function () {
|
|
1728
|
+
Nc(n);
|
|
1729
|
+
return r.apply(null, arguments);
|
|
1730
|
+
};
|
|
1731
|
+
});
|
|
1732
|
+
t.read = (p, r, k, q, v) => {
|
|
1733
|
+
Nc(n);
|
|
1734
|
+
return g(p, r, k, q, v);
|
|
1735
|
+
};
|
|
1736
|
+
t.Eb = (p, r, k) => {
|
|
1737
|
+
Nc(n);
|
|
1738
|
+
var q = Zb(r);
|
|
1739
|
+
if (!q) throw new Q(48);
|
|
1740
|
+
g(p, h(), q, r, k);
|
|
1741
|
+
return { Wa: q, bb: !0 };
|
|
1742
|
+
};
|
|
1743
|
+
n.Ua = t;
|
|
1744
|
+
return n;
|
|
1745
|
+
}
|
|
1746
|
+
var Pc = {},
|
|
1747
|
+
zc,
|
|
1748
|
+
Ic,
|
|
1749
|
+
K = (a, b) => (a ? Ob(w(), a, b) : "");
|
|
1750
|
+
function Qc(a, b, c) {
|
|
1751
|
+
if ("/" === b.charAt(0)) return b;
|
|
1752
|
+
a = -100 === a ? "/" : xc(a).path;
|
|
1753
|
+
if (0 == b.length) {
|
|
1754
|
+
if (!c) throw new Q(44);
|
|
1755
|
+
return a;
|
|
1756
|
+
}
|
|
1757
|
+
return Hb(a + "/" + b);
|
|
1758
|
+
}
|
|
1759
|
+
function Rc(a, b, c) {
|
|
1760
|
+
a = a(b);
|
|
1761
|
+
A()[c >> 2] = a.Rc;
|
|
1762
|
+
A()[(c + 4) >> 2] = a.mode;
|
|
1763
|
+
B()[(c + 8) >> 2] = a.dd;
|
|
1764
|
+
A()[(c + 12) >> 2] = a.uid;
|
|
1765
|
+
A()[(c + 16) >> 2] = a.Yc;
|
|
1766
|
+
A()[(c + 20) >> 2] = a.Hb;
|
|
1767
|
+
H = [
|
|
1768
|
+
a.size >>> 0,
|
|
1769
|
+
((G = a.size),
|
|
1770
|
+
1 <= +Math.abs(G)
|
|
1771
|
+
? 0 < G
|
|
1772
|
+
? +Math.floor(G / 4294967296) >>> 0
|
|
1773
|
+
: ~~+Math.ceil((G - +(~~G >>> 0)) / 4294967296) >>> 0
|
|
1774
|
+
: 0),
|
|
1775
|
+
];
|
|
1776
|
+
A()[(c + 24) >> 2] = H[0];
|
|
1777
|
+
A()[(c + 28) >> 2] = H[1];
|
|
1778
|
+
A()[(c + 32) >> 2] = 4096;
|
|
1779
|
+
A()[(c + 36) >> 2] = a.Mc;
|
|
1780
|
+
b = a.Kc.getTime();
|
|
1781
|
+
var d = a.cd.getTime(),
|
|
1782
|
+
e = a.Pc.getTime();
|
|
1783
|
+
H = [
|
|
1784
|
+
Math.floor(b / 1e3) >>> 0,
|
|
1785
|
+
((G = Math.floor(b / 1e3)),
|
|
1786
|
+
1 <= +Math.abs(G)
|
|
1787
|
+
? 0 < G
|
|
1788
|
+
? +Math.floor(G / 4294967296) >>> 0
|
|
1789
|
+
: ~~+Math.ceil((G - +(~~G >>> 0)) / 4294967296) >>> 0
|
|
1790
|
+
: 0),
|
|
1791
|
+
];
|
|
1792
|
+
A()[(c + 40) >> 2] = H[0];
|
|
1793
|
+
A()[(c + 44) >> 2] = H[1];
|
|
1794
|
+
B()[(c + 48) >> 2] = (b % 1e3) * 1e3;
|
|
1795
|
+
H = [
|
|
1796
|
+
Math.floor(d / 1e3) >>> 0,
|
|
1797
|
+
((G = Math.floor(d / 1e3)),
|
|
1798
|
+
1 <= +Math.abs(G)
|
|
1799
|
+
? 0 < G
|
|
1800
|
+
? +Math.floor(G / 4294967296) >>> 0
|
|
1801
|
+
: ~~+Math.ceil((G - +(~~G >>> 0)) / 4294967296) >>> 0
|
|
1802
|
+
: 0),
|
|
1803
|
+
];
|
|
1804
|
+
A()[(c + 56) >> 2] = H[0];
|
|
1805
|
+
A()[(c + 60) >> 2] = H[1];
|
|
1806
|
+
B()[(c + 64) >> 2] = (d % 1e3) * 1e3;
|
|
1807
|
+
H = [
|
|
1808
|
+
Math.floor(e / 1e3) >>> 0,
|
|
1809
|
+
((G = Math.floor(e / 1e3)),
|
|
1810
|
+
1 <= +Math.abs(G)
|
|
1811
|
+
? 0 < G
|
|
1812
|
+
? +Math.floor(G / 4294967296) >>> 0
|
|
1813
|
+
: ~~+Math.ceil((G - +(~~G >>> 0)) / 4294967296) >>> 0
|
|
1814
|
+
: 0),
|
|
1815
|
+
];
|
|
1816
|
+
A()[(c + 72) >> 2] = H[0];
|
|
1817
|
+
A()[(c + 76) >> 2] = H[1];
|
|
1818
|
+
B()[(c + 80) >> 2] = (e % 1e3) * 1e3;
|
|
1819
|
+
H = [
|
|
1820
|
+
a.qc >>> 0,
|
|
1821
|
+
((G = a.qc),
|
|
1822
|
+
1 <= +Math.abs(G)
|
|
1823
|
+
? 0 < G
|
|
1824
|
+
? +Math.floor(G / 4294967296) >>> 0
|
|
1825
|
+
: ~~+Math.ceil((G - +(~~G >>> 0)) / 4294967296) >>> 0
|
|
1826
|
+
: 0),
|
|
1827
|
+
];
|
|
1828
|
+
A()[(c + 88) >> 2] = H[0];
|
|
1829
|
+
A()[(c + 92) >> 2] = H[1];
|
|
1830
|
+
return 0;
|
|
1831
|
+
}
|
|
1832
|
+
var Sc = void 0;
|
|
1833
|
+
function Tc(a, b) {
|
|
1834
|
+
if (F) return O(3, 1, a, b);
|
|
1835
|
+
try {
|
|
1836
|
+
var c = xc(a);
|
|
1837
|
+
return Rc(Fc, c.path, b);
|
|
1838
|
+
} catch (d) {
|
|
1839
|
+
if ("undefined" == typeof Pc || "ErrnoError" !== d.name) throw d;
|
|
1840
|
+
return -d.eb;
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
function Uc(a, b, c, d) {
|
|
1844
|
+
if (F) return O(5, 1, a, b, c, d);
|
|
1845
|
+
try {
|
|
1846
|
+
b = K(b);
|
|
1847
|
+
var e = d & 256;
|
|
1848
|
+
b = Qc(a, b, d & 4096);
|
|
1849
|
+
return Rc(e ? Gc : Fc, b, c);
|
|
1850
|
+
} catch (f) {
|
|
1851
|
+
if ("undefined" == typeof Pc || "ErrnoError" !== f.name) throw f;
|
|
1852
|
+
return -f.eb;
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
function Vc(a, b, c, d) {
|
|
1856
|
+
if (F) return O(6, 1, a, b, c, d);
|
|
1857
|
+
Sc = d;
|
|
1858
|
+
try {
|
|
1859
|
+
b = K(b);
|
|
1860
|
+
b = Qc(a, b);
|
|
1861
|
+
if (d) {
|
|
1862
|
+
var e = A()[+Sc >> 2];
|
|
1863
|
+
Sc += 4;
|
|
1864
|
+
var f = e;
|
|
1865
|
+
} else f = 0;
|
|
1866
|
+
return Ma(b, c, f).rb;
|
|
1867
|
+
} catch (g) {
|
|
1868
|
+
if ("undefined" == typeof Pc || "ErrnoError" !== g.name) throw g;
|
|
1869
|
+
return -g.eb;
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1872
|
+
function Wc(a, b) {
|
|
1873
|
+
if (F) return O(7, 1, a, b);
|
|
1874
|
+
try {
|
|
1875
|
+
return (a = K(a)), Rc(Fc, a, b);
|
|
1876
|
+
} catch (c) {
|
|
1877
|
+
if ("undefined" == typeof Pc || "ErrnoError" !== c.name) throw c;
|
|
1878
|
+
return -c.eb;
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
var Xc = {},
|
|
1882
|
+
Yc = (a) => {
|
|
1883
|
+
for (; a.length; ) {
|
|
1884
|
+
var b = a.pop();
|
|
1885
|
+
a.pop()(b);
|
|
1886
|
+
}
|
|
1887
|
+
};
|
|
1888
|
+
function Zc(a) {
|
|
1889
|
+
return this.fromWireType(A()[a >> 2]);
|
|
1890
|
+
}
|
|
1891
|
+
var $c = {},
|
|
1892
|
+
ad = {},
|
|
1893
|
+
bd = {},
|
|
1894
|
+
cd,
|
|
1895
|
+
ed = (a, b, c) => {
|
|
1896
|
+
function d(l) {
|
|
1897
|
+
l = c(l);
|
|
1898
|
+
if (l.length !== a.length)
|
|
1899
|
+
throw new cd("Mismatched type converter count");
|
|
1900
|
+
for (var m = 0; m < a.length; ++m) dd(a[m], l[m]);
|
|
1901
|
+
}
|
|
1902
|
+
a.forEach(function (l) {
|
|
1903
|
+
bd[l] = b;
|
|
1904
|
+
});
|
|
1905
|
+
var e = Array(b.length),
|
|
1906
|
+
f = [],
|
|
1907
|
+
g = 0;
|
|
1908
|
+
b.forEach((l, m) => {
|
|
1909
|
+
ad.hasOwnProperty(l)
|
|
1910
|
+
? (e[m] = ad[l])
|
|
1911
|
+
: (f.push(l),
|
|
1912
|
+
$c.hasOwnProperty(l) || ($c[l] = []),
|
|
1913
|
+
$c[l].push(() => {
|
|
1914
|
+
e[m] = ad[l];
|
|
1915
|
+
++g;
|
|
1916
|
+
g === f.length && d(e);
|
|
1917
|
+
}));
|
|
1918
|
+
});
|
|
1919
|
+
0 === f.length && d(e);
|
|
1920
|
+
},
|
|
1921
|
+
fd,
|
|
1922
|
+
V = (a) => {
|
|
1923
|
+
for (var b = ""; w()[a]; ) b += fd[w()[a++]];
|
|
1924
|
+
return b;
|
|
1925
|
+
},
|
|
1926
|
+
W;
|
|
1927
|
+
function gd(a, b, c = {}) {
|
|
1928
|
+
var d = b.name;
|
|
1929
|
+
if (!a)
|
|
1930
|
+
throw new W(`type "${d}" must have a positive integer typeid pointer`);
|
|
1931
|
+
if (ad.hasOwnProperty(a)) {
|
|
1932
|
+
if (c.Zc) return;
|
|
1933
|
+
throw new W(`Cannot register type '${d}' twice`);
|
|
1934
|
+
}
|
|
1935
|
+
ad[a] = b;
|
|
1936
|
+
delete bd[a];
|
|
1937
|
+
$c.hasOwnProperty(a) &&
|
|
1938
|
+
((b = $c[a]), delete $c[a], b.forEach((e) => e()));
|
|
1939
|
+
}
|
|
1940
|
+
function dd(a, b, c = {}) {
|
|
1941
|
+
if (!("argPackAdvance" in b))
|
|
1942
|
+
throw new TypeError(
|
|
1943
|
+
"registerType registeredInstance requires argPackAdvance",
|
|
1944
|
+
);
|
|
1945
|
+
return gd(a, b, c);
|
|
1946
|
+
}
|
|
1947
|
+
var hd = (a) => {
|
|
1948
|
+
throw new W(a.Ra.Ya.Va.name + " instance already deleted");
|
|
1949
|
+
},
|
|
1950
|
+
jd = !1,
|
|
1951
|
+
kd = () => {},
|
|
1952
|
+
ld = (a, b, c) => {
|
|
1953
|
+
if (b === c) return a;
|
|
1954
|
+
if (void 0 === c.cb) return null;
|
|
1955
|
+
a = ld(a, b, c.cb);
|
|
1956
|
+
return null === a ? null : c.Sc(a);
|
|
1957
|
+
},
|
|
1958
|
+
md = {},
|
|
1959
|
+
nd = [],
|
|
1960
|
+
od = () => {
|
|
1961
|
+
for (; nd.length; ) {
|
|
1962
|
+
var a = nd.pop();
|
|
1963
|
+
a.Ra.yb = !1;
|
|
1964
|
+
a["delete"]();
|
|
1965
|
+
}
|
|
1966
|
+
},
|
|
1967
|
+
pd,
|
|
1968
|
+
qd = {},
|
|
1969
|
+
rd = (a, b) => {
|
|
1970
|
+
if (void 0 === b) throw new W("ptr should not be undefined");
|
|
1971
|
+
for (; a.cb; ) (b = a.Jb(b)), (a = a.cb);
|
|
1972
|
+
return qd[b];
|
|
1973
|
+
},
|
|
1974
|
+
td = (a, b) => {
|
|
1975
|
+
if (!b.Ya || !b.Wa)
|
|
1976
|
+
throw new cd("makeClassHandle requires ptr and ptrType");
|
|
1977
|
+
if (!!b.gb !== !!b.Za)
|
|
1978
|
+
throw new cd("Both smartPtrType and smartPtr must be specified");
|
|
1979
|
+
b.count = { value: 1 };
|
|
1980
|
+
return sd(Object.create(a, { Ra: { value: b, writable: !0 } }));
|
|
1981
|
+
},
|
|
1982
|
+
sd = (a) => {
|
|
1983
|
+
if ("undefined" === typeof FinalizationRegistry)
|
|
1984
|
+
return (sd = (b) => b), a;
|
|
1985
|
+
jd = new FinalizationRegistry((b) => {
|
|
1986
|
+
b = b.Ra;
|
|
1987
|
+
--b.count.value;
|
|
1988
|
+
0 === b.count.value && (b.Za ? b.gb.mb(b.Za) : b.Ya.Va.mb(b.Wa));
|
|
1989
|
+
});
|
|
1990
|
+
sd = (b) => {
|
|
1991
|
+
var c = b.Ra;
|
|
1992
|
+
c.Za && jd.register(b, { Ra: c }, b);
|
|
1993
|
+
return b;
|
|
1994
|
+
};
|
|
1995
|
+
kd = (b) => {
|
|
1996
|
+
jd.unregister(b);
|
|
1997
|
+
};
|
|
1998
|
+
return sd(a);
|
|
1999
|
+
};
|
|
2000
|
+
function ud() {}
|
|
2001
|
+
var vd = (a, b) => Object.defineProperty(b, "name", { value: a }),
|
|
2002
|
+
wd = (a, b, c) => {
|
|
2003
|
+
if (void 0 === a[b].ab) {
|
|
2004
|
+
var d = a[b];
|
|
2005
|
+
a[b] = function () {
|
|
2006
|
+
if (!a[b].ab.hasOwnProperty(arguments.length))
|
|
2007
|
+
throw new W(
|
|
2008
|
+
`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${a[b].ab})!`,
|
|
2009
|
+
);
|
|
2010
|
+
return a[b].ab[arguments.length].apply(this, arguments);
|
|
2011
|
+
};
|
|
2012
|
+
a[b].ab = [];
|
|
2013
|
+
a[b].ab[d.Kb] = d;
|
|
2014
|
+
}
|
|
2015
|
+
},
|
|
2016
|
+
xd = (a, b, c) => {
|
|
2017
|
+
if (D.hasOwnProperty(a)) {
|
|
2018
|
+
if (void 0 === c || (void 0 !== D[a].ab && void 0 !== D[a].ab[c]))
|
|
2019
|
+
throw new W(`Cannot register public name '${a}' twice`);
|
|
2020
|
+
wd(D, a, a);
|
|
2021
|
+
if (D.hasOwnProperty(c))
|
|
2022
|
+
throw new W(
|
|
2023
|
+
`Cannot register multiple overloads of a function with the same number of arguments (${c})!`,
|
|
2024
|
+
);
|
|
2025
|
+
D[a].ab[c] = b;
|
|
2026
|
+
} else (D[a] = b), void 0 !== c && (D[a].Id = c);
|
|
2027
|
+
},
|
|
2028
|
+
yd = (a) => {
|
|
2029
|
+
if (void 0 === a) return "_unknown";
|
|
2030
|
+
a = a.replace(/[^a-zA-Z0-9_]/g, "$");
|
|
2031
|
+
var b = a.charCodeAt(0);
|
|
2032
|
+
return 48 <= b && 57 >= b ? `_${a}` : a;
|
|
2033
|
+
};
|
|
2034
|
+
function zd(a, b, c, d, e, f, g, l) {
|
|
2035
|
+
this.name = a;
|
|
2036
|
+
this.constructor = b;
|
|
2037
|
+
this.zb = c;
|
|
2038
|
+
this.mb = d;
|
|
2039
|
+
this.cb = e;
|
|
2040
|
+
this.Uc = f;
|
|
2041
|
+
this.Jb = g;
|
|
2042
|
+
this.Sc = l;
|
|
2043
|
+
this.fd = [];
|
|
2044
|
+
}
|
|
2045
|
+
var Ad = (a, b, c) => {
|
|
2046
|
+
for (; b !== c; ) {
|
|
2047
|
+
if (!b.Jb)
|
|
2048
|
+
throw new W(
|
|
2049
|
+
`Expected null or instance of ${c.name}, got an instance of ${b.name}`,
|
|
2050
|
+
);
|
|
2051
|
+
a = b.Jb(a);
|
|
2052
|
+
b = b.cb;
|
|
2053
|
+
}
|
|
2054
|
+
return a;
|
|
2055
|
+
};
|
|
2056
|
+
function Bd(a, b) {
|
|
2057
|
+
if (null === b) {
|
|
2058
|
+
if (this.ac) throw new W(`null is not a valid ${this.name}`);
|
|
2059
|
+
return 0;
|
|
2060
|
+
}
|
|
2061
|
+
if (!b.Ra) throw new W(`Cannot pass "${Cd(b)}" as a ${this.name}`);
|
|
2062
|
+
if (!b.Ra.Wa)
|
|
2063
|
+
throw new W(
|
|
2064
|
+
`Cannot pass deleted object as a pointer of type ${this.name}`,
|
|
2065
|
+
);
|
|
2066
|
+
return Ad(b.Ra.Wa, b.Ra.Ya.Va, this.Va);
|
|
2067
|
+
}
|
|
2068
|
+
function Dd(a, b) {
|
|
2069
|
+
if (null === b) {
|
|
2070
|
+
if (this.ac) throw new W(`null is not a valid ${this.name}`);
|
|
2071
|
+
if (this.Qb) {
|
|
2072
|
+
var c = this.dc();
|
|
2073
|
+
null !== a && a.push(this.mb, c);
|
|
2074
|
+
return c;
|
|
2075
|
+
}
|
|
2076
|
+
return 0;
|
|
2077
|
+
}
|
|
2078
|
+
if (!b || !b.Ra) throw new W(`Cannot pass "${Cd(b)}" as a ${this.name}`);
|
|
2079
|
+
if (!b.Ra.Wa)
|
|
2080
|
+
throw new W(
|
|
2081
|
+
`Cannot pass deleted object as a pointer of type ${this.name}`,
|
|
2082
|
+
);
|
|
2083
|
+
if (!this.Pb && b.Ra.Ya.Pb)
|
|
2084
|
+
throw new W(
|
|
2085
|
+
`Cannot convert argument of type ${
|
|
2086
|
+
b.Ra.gb ? b.Ra.gb.name : b.Ra.Ya.name
|
|
2087
|
+
} to parameter type ${this.name}`,
|
|
2088
|
+
);
|
|
2089
|
+
c = Ad(b.Ra.Wa, b.Ra.Ya.Va, this.Va);
|
|
2090
|
+
if (this.Qb) {
|
|
2091
|
+
if (void 0 === b.Ra.Za)
|
|
2092
|
+
throw new W("Passing raw pointer to smart pointer is illegal");
|
|
2093
|
+
switch (this.nd) {
|
|
2094
|
+
case 0:
|
|
2095
|
+
if (b.Ra.gb === this) c = b.Ra.Za;
|
|
2096
|
+
else
|
|
2097
|
+
throw new W(
|
|
2098
|
+
`Cannot convert argument of type ${
|
|
2099
|
+
b.Ra.gb ? b.Ra.gb.name : b.Ra.Ya.name
|
|
2100
|
+
} to parameter type ${this.name}`,
|
|
2101
|
+
);
|
|
2102
|
+
break;
|
|
2103
|
+
case 1:
|
|
2104
|
+
c = b.Ra.Za;
|
|
2105
|
+
break;
|
|
2106
|
+
case 2:
|
|
2107
|
+
if (b.Ra.gb === this) c = b.Ra.Za;
|
|
2108
|
+
else {
|
|
2109
|
+
var d = b.clone();
|
|
2110
|
+
c = this.gd(
|
|
2111
|
+
c,
|
|
2112
|
+
Ed(() => d["delete"]()),
|
|
2113
|
+
);
|
|
2114
|
+
null !== a && a.push(this.mb, c);
|
|
2115
|
+
}
|
|
2116
|
+
break;
|
|
2117
|
+
default:
|
|
2118
|
+
throw new W("Unsupporting sharing policy");
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
return c;
|
|
2122
|
+
}
|
|
2123
|
+
function Fd(a, b) {
|
|
2124
|
+
if (null === b) {
|
|
2125
|
+
if (this.ac) throw new W(`null is not a valid ${this.name}`);
|
|
2126
|
+
return 0;
|
|
2127
|
+
}
|
|
2128
|
+
if (!b.Ra) throw new W(`Cannot pass "${Cd(b)}" as a ${this.name}`);
|
|
2129
|
+
if (!b.Ra.Wa)
|
|
2130
|
+
throw new W(
|
|
2131
|
+
`Cannot pass deleted object as a pointer of type ${this.name}`,
|
|
2132
|
+
);
|
|
2133
|
+
if (b.Ra.Ya.Pb)
|
|
2134
|
+
throw new W(
|
|
2135
|
+
`Cannot convert argument of type ${b.Ra.Ya.name} to parameter type ${this.name}`,
|
|
2136
|
+
);
|
|
2137
|
+
return Ad(b.Ra.Wa, b.Ra.Ya.Va, this.Va);
|
|
2138
|
+
}
|
|
2139
|
+
function Gd(a) {
|
|
2140
|
+
return this.fromWireType(B()[a >> 2]);
|
|
2141
|
+
}
|
|
2142
|
+
function Hd(a, b, c, d, e, f, g, l, m, n, t) {
|
|
2143
|
+
this.name = a;
|
|
2144
|
+
this.Va = b;
|
|
2145
|
+
this.ac = c;
|
|
2146
|
+
this.Pb = d;
|
|
2147
|
+
this.Qb = e;
|
|
2148
|
+
this.ed = f;
|
|
2149
|
+
this.nd = g;
|
|
2150
|
+
this.vc = l;
|
|
2151
|
+
this.dc = m;
|
|
2152
|
+
this.gd = n;
|
|
2153
|
+
this.mb = t;
|
|
2154
|
+
e || void 0 !== b.cb
|
|
2155
|
+
? (this.toWireType = Dd)
|
|
2156
|
+
: ((this.toWireType = d ? Bd : Fd), (this.ib = null));
|
|
2157
|
+
}
|
|
2158
|
+
var Id = (a, b, c) => {
|
|
2159
|
+
if (!D.hasOwnProperty(a))
|
|
2160
|
+
throw new cd("Replacing nonexistant public symbol");
|
|
2161
|
+
void 0 !== D[a].ab && void 0 !== c
|
|
2162
|
+
? (D[a].ab[c] = b)
|
|
2163
|
+
: ((D[a] = b), (D[a].Kb = c));
|
|
2164
|
+
},
|
|
2165
|
+
Jd = (a, b) => {
|
|
2166
|
+
var c = [];
|
|
2167
|
+
return function () {
|
|
2168
|
+
c.length = 0;
|
|
2169
|
+
Object.assign(c, arguments);
|
|
2170
|
+
if (a.includes("j")) {
|
|
2171
|
+
var d = D["dynCall_" + a];
|
|
2172
|
+
d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
|
|
2173
|
+
} else d = Cb(b).apply(null, c);
|
|
2174
|
+
return d;
|
|
2175
|
+
};
|
|
2176
|
+
},
|
|
2177
|
+
Kd = (a, b) => {
|
|
2178
|
+
a = V(a);
|
|
2179
|
+
var c = a.includes("j") ? Jd(a, b) : Cb(b);
|
|
2180
|
+
if ("function" != typeof c)
|
|
2181
|
+
throw new W(`unknown function pointer with signature ${a}: ${b}`);
|
|
2182
|
+
return c;
|
|
2183
|
+
},
|
|
2184
|
+
Ld,
|
|
2185
|
+
Od = (a) => {
|
|
2186
|
+
a = Md(a);
|
|
2187
|
+
var b = V(a);
|
|
2188
|
+
Nd(a);
|
|
2189
|
+
return b;
|
|
2190
|
+
},
|
|
2191
|
+
Pd = (a, b) => {
|
|
2192
|
+
function c(f) {
|
|
2193
|
+
e[f] ||
|
|
2194
|
+
ad[f] ||
|
|
2195
|
+
(bd[f] ? bd[f].forEach(c) : (d.push(f), (e[f] = !0)));
|
|
2196
|
+
}
|
|
2197
|
+
var d = [],
|
|
2198
|
+
e = {};
|
|
2199
|
+
b.forEach(c);
|
|
2200
|
+
throw new Ld(`${a}: ` + d.map(Od).join([", "]));
|
|
2201
|
+
},
|
|
2202
|
+
Qd = (a, b) => {
|
|
2203
|
+
for (var c = [], d = 0; d < a; d++) c.push(B()[(b + 4 * d) >> 2]);
|
|
2204
|
+
return c;
|
|
2205
|
+
};
|
|
2206
|
+
function Rd(a) {
|
|
2207
|
+
for (var b = 1; b < a.length; ++b)
|
|
2208
|
+
if (null !== a[b] && void 0 === a[b].ib) return !0;
|
|
2209
|
+
return !1;
|
|
2210
|
+
}
|
|
2211
|
+
function Sd(a, b, c, d, e) {
|
|
2212
|
+
var f = b.length;
|
|
2213
|
+
if (2 > f)
|
|
2214
|
+
throw new W(
|
|
2215
|
+
"argTypes array size mismatch! Must at least get return value and 'this' types!",
|
|
2216
|
+
);
|
|
2217
|
+
var g = null !== b[1] && null !== c,
|
|
2218
|
+
l = Rd(b),
|
|
2219
|
+
m = "void" !== b[0].name,
|
|
2220
|
+
n = f - 2,
|
|
2221
|
+
t = Array(n),
|
|
2222
|
+
p = [],
|
|
2223
|
+
r = [];
|
|
2224
|
+
return vd(a, function () {
|
|
2225
|
+
if (arguments.length !== n)
|
|
2226
|
+
throw new W(
|
|
2227
|
+
`function ${a} called with ${arguments.length} arguments, expected ${n}`,
|
|
2228
|
+
);
|
|
2229
|
+
r.length = 0;
|
|
2230
|
+
p.length = g ? 2 : 1;
|
|
2231
|
+
p[0] = e;
|
|
2232
|
+
if (g) {
|
|
2233
|
+
var k = b[1].toWireType(r, this);
|
|
2234
|
+
p[1] = k;
|
|
2235
|
+
}
|
|
2236
|
+
for (var q = 0; q < n; ++q)
|
|
2237
|
+
(t[q] = b[q + 2].toWireType(r, arguments[q])), p.push(t[q]);
|
|
2238
|
+
q = d.apply(null, p);
|
|
2239
|
+
if (l) Yc(r);
|
|
2240
|
+
else
|
|
2241
|
+
for (var v = g ? 1 : 2; v < b.length; v++) {
|
|
2242
|
+
var z = 1 === v ? k : t[v - 2];
|
|
2243
|
+
null !== b[v].ib && b[v].ib(z);
|
|
2244
|
+
}
|
|
2245
|
+
k = m ? b[0].fromWireType(q) : void 0;
|
|
2246
|
+
return k;
|
|
2247
|
+
});
|
|
2248
|
+
}
|
|
2249
|
+
var Td = (a) => {
|
|
2250
|
+
a = a.trim();
|
|
2251
|
+
const b = a.indexOf("(");
|
|
2252
|
+
return -1 !== b ? a.substr(0, b) : a;
|
|
2253
|
+
};
|
|
2254
|
+
class Ud {
|
|
2255
|
+
constructor() {
|
|
2256
|
+
this.bb = [void 0];
|
|
2257
|
+
this.Zb = [];
|
|
2258
|
+
}
|
|
2259
|
+
get(a) {
|
|
2260
|
+
return this.bb[a];
|
|
2261
|
+
}
|
|
2262
|
+
has(a) {
|
|
2263
|
+
return void 0 !== this.bb[a];
|
|
2264
|
+
}
|
|
2265
|
+
Cb(a) {
|
|
2266
|
+
var b = this.Zb.pop() || this.bb.length;
|
|
2267
|
+
this.bb[b] = a;
|
|
2268
|
+
return b;
|
|
2269
|
+
}
|
|
2270
|
+
}
|
|
2271
|
+
var X = new Ud(),
|
|
2272
|
+
Vd = (a) => {
|
|
2273
|
+
a >= X.zc && 0 === --X.get(a).xc && ((X.bb[a] = void 0), X.Zb.push(a));
|
|
2274
|
+
},
|
|
2275
|
+
Wd = (a) => {
|
|
2276
|
+
if (!a) throw new W("Cannot use deleted val. handle = " + a);
|
|
2277
|
+
return X.get(a).value;
|
|
2278
|
+
},
|
|
2279
|
+
Ed = (a) => {
|
|
2280
|
+
switch (a) {
|
|
2281
|
+
case void 0:
|
|
2282
|
+
return 1;
|
|
2283
|
+
case null:
|
|
2284
|
+
return 2;
|
|
2285
|
+
case !0:
|
|
2286
|
+
return 3;
|
|
2287
|
+
case !1:
|
|
2288
|
+
return 4;
|
|
2289
|
+
default:
|
|
2290
|
+
return X.Cb({ xc: 1, value: a });
|
|
2291
|
+
}
|
|
2292
|
+
},
|
|
2293
|
+
Xd = {
|
|
2294
|
+
name: "emscripten::val",
|
|
2295
|
+
fromWireType: (a) => {
|
|
2296
|
+
var b = Wd(a);
|
|
2297
|
+
Vd(a);
|
|
2298
|
+
return b;
|
|
2299
|
+
},
|
|
2300
|
+
toWireType: (a, b) => Ed(b),
|
|
2301
|
+
argPackAdvance: 8,
|
|
2302
|
+
readValueFromPointer: Zc,
|
|
2303
|
+
ib: null,
|
|
2304
|
+
},
|
|
2305
|
+
Cd = (a) => {
|
|
2306
|
+
if (null === a) return "null";
|
|
2307
|
+
var b = typeof a;
|
|
2308
|
+
return "object" === b || "array" === b || "function" === b
|
|
2309
|
+
? a.toString()
|
|
2310
|
+
: "" + a;
|
|
2311
|
+
},
|
|
2312
|
+
Yd = (a, b) => {
|
|
2313
|
+
switch (b) {
|
|
2314
|
+
case 4:
|
|
2315
|
+
return function (c) {
|
|
2316
|
+
var d = this.fromWireType;
|
|
2317
|
+
u.buffer != aa.buffer && ba();
|
|
2318
|
+
return d.call(this, Ba[c >> 2]);
|
|
2319
|
+
};
|
|
2320
|
+
case 8:
|
|
2321
|
+
return function (c) {
|
|
2322
|
+
return this.fromWireType(ja()[c >> 3]);
|
|
2323
|
+
};
|
|
2324
|
+
default:
|
|
2325
|
+
throw new TypeError(`invalid float width (${b}): ${a}`);
|
|
2326
|
+
}
|
|
2327
|
+
},
|
|
2328
|
+
Zd = (a, b, c) => {
|
|
2329
|
+
switch (b) {
|
|
2330
|
+
case 1:
|
|
2331
|
+
return c ? (d) => h()[d >> 0] : (d) => w()[d >> 0];
|
|
2332
|
+
case 2:
|
|
2333
|
+
return c ? (d) => da()[d >> 1] : (d) => x()[d >> 1];
|
|
2334
|
+
case 4:
|
|
2335
|
+
return c ? (d) => A()[d >> 2] : (d) => B()[d >> 2];
|
|
2336
|
+
default:
|
|
2337
|
+
throw new TypeError(`invalid integer width (${b}): ${a}`);
|
|
2338
|
+
}
|
|
2339
|
+
},
|
|
2340
|
+
$d =
|
|
2341
|
+
"undefined" != typeof TextDecoder
|
|
2342
|
+
? new TextDecoder("utf-16le")
|
|
2343
|
+
: void 0,
|
|
2344
|
+
ae = (a, b) => {
|
|
2345
|
+
var c = a >> 1;
|
|
2346
|
+
for (var d = c + b / 2; !(c >= d) && x()[c]; ) ++c;
|
|
2347
|
+
c <<= 1;
|
|
2348
|
+
if (32 < c - a && $d) return $d.decode(w().slice(a, c));
|
|
2349
|
+
c = "";
|
|
2350
|
+
for (d = 0; !(d >= b / 2); ++d) {
|
|
2351
|
+
var e = da()[(a + 2 * d) >> 1];
|
|
2352
|
+
if (0 == e) break;
|
|
2353
|
+
c += String.fromCharCode(e);
|
|
2354
|
+
}
|
|
2355
|
+
return c;
|
|
2356
|
+
},
|
|
2357
|
+
be = (a, b, c) => {
|
|
2358
|
+
c ??= 2147483647;
|
|
2359
|
+
if (2 > c) return 0;
|
|
2360
|
+
c -= 2;
|
|
2361
|
+
var d = b;
|
|
2362
|
+
c = c < 2 * a.length ? c / 2 : a.length;
|
|
2363
|
+
for (var e = 0; e < c; ++e) {
|
|
2364
|
+
var f = a.charCodeAt(e);
|
|
2365
|
+
da()[b >> 1] = f;
|
|
2366
|
+
b += 2;
|
|
2367
|
+
}
|
|
2368
|
+
da()[b >> 1] = 0;
|
|
2369
|
+
return b - d;
|
|
2370
|
+
},
|
|
2371
|
+
ce = (a) => 2 * a.length,
|
|
2372
|
+
de = (a, b) => {
|
|
2373
|
+
for (var c = 0, d = ""; !(c >= b / 4); ) {
|
|
2374
|
+
var e = A()[(a + 4 * c) >> 2];
|
|
2375
|
+
if (0 == e) break;
|
|
2376
|
+
++c;
|
|
2377
|
+
65536 <= e
|
|
2378
|
+
? ((e -= 65536),
|
|
2379
|
+
(d += String.fromCharCode(55296 | (e >> 10), 56320 | (e & 1023))))
|
|
2380
|
+
: (d += String.fromCharCode(e));
|
|
2381
|
+
}
|
|
2382
|
+
return d;
|
|
2383
|
+
},
|
|
2384
|
+
ee = (a, b, c) => {
|
|
2385
|
+
c ??= 2147483647;
|
|
2386
|
+
if (4 > c) return 0;
|
|
2387
|
+
var d = b;
|
|
2388
|
+
c = d + c - 4;
|
|
2389
|
+
for (var e = 0; e < a.length; ++e) {
|
|
2390
|
+
var f = a.charCodeAt(e);
|
|
2391
|
+
if (55296 <= f && 57343 >= f) {
|
|
2392
|
+
var g = a.charCodeAt(++e);
|
|
2393
|
+
f = (65536 + ((f & 1023) << 10)) | (g & 1023);
|
|
2394
|
+
}
|
|
2395
|
+
A()[b >> 2] = f;
|
|
2396
|
+
b += 4;
|
|
2397
|
+
if (b + 4 > c) break;
|
|
2398
|
+
}
|
|
2399
|
+
A()[b >> 2] = 0;
|
|
2400
|
+
return b - d;
|
|
2401
|
+
},
|
|
2402
|
+
fe = (a) => {
|
|
2403
|
+
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
2404
|
+
var d = a.charCodeAt(c);
|
|
2405
|
+
55296 <= d && 57343 >= d && ++c;
|
|
2406
|
+
b += 4;
|
|
2407
|
+
}
|
|
2408
|
+
return b;
|
|
2409
|
+
},
|
|
2410
|
+
ge = (a) => {
|
|
2411
|
+
if (!Ha && !za)
|
|
2412
|
+
try {
|
|
2413
|
+
if ((a(), !(Ha || mb || 0 < N)))
|
|
2414
|
+
try {
|
|
2415
|
+
F ? Db(Aa) : sb(Aa);
|
|
2416
|
+
} catch (b) {
|
|
2417
|
+
b instanceof bb || "unwind" == b || pa(1, b);
|
|
2418
|
+
}
|
|
2419
|
+
} catch (b) {
|
|
2420
|
+
b instanceof bb || "unwind" == b || pa(1, b);
|
|
2421
|
+
}
|
|
2422
|
+
},
|
|
2423
|
+
he = (a) => {
|
|
2424
|
+
"function" === typeof Atomics.vd &&
|
|
2425
|
+
(Atomics.vd(A(), a >> 2, a).value.then(yb),
|
|
2426
|
+
(a += 128),
|
|
2427
|
+
Atomics.store(A(), a >> 2, 1));
|
|
2428
|
+
};
|
|
2429
|
+
D.__emscripten_thread_mailbox_await = he;
|
|
2430
|
+
var yb = () => {
|
|
2431
|
+
var a = xb();
|
|
2432
|
+
a && (he(a), ge(ie));
|
|
2433
|
+
};
|
|
2434
|
+
D.checkMailbox = yb;
|
|
2435
|
+
var je = [],
|
|
2436
|
+
ke = (a, b) => {
|
|
2437
|
+
var c = ad[a];
|
|
2438
|
+
if (void 0 === c)
|
|
2439
|
+
throw ((a = b + " has unknown type " + Od(a)), new W(a));
|
|
2440
|
+
return c;
|
|
2441
|
+
},
|
|
2442
|
+
le = (a, b, c) => {
|
|
2443
|
+
var d = [];
|
|
2444
|
+
a = a.toWireType(d, c);
|
|
2445
|
+
d.length && (B()[b >> 2] = Ed(d));
|
|
2446
|
+
return a;
|
|
2447
|
+
},
|
|
2448
|
+
me = [],
|
|
2449
|
+
ne = {},
|
|
2450
|
+
oe = (a) => {
|
|
2451
|
+
var b = ne[a];
|
|
2452
|
+
return void 0 === b ? V(a) : b;
|
|
2453
|
+
},
|
|
2454
|
+
pe = () => {
|
|
2455
|
+
function a(b) {
|
|
2456
|
+
b.$$$embind_global$$$ = b;
|
|
2457
|
+
var c =
|
|
2458
|
+
"object" == typeof $$$embind_global$$$ &&
|
|
2459
|
+
b.$$$embind_global$$$ == b;
|
|
2460
|
+
c || delete b.$$$embind_global$$$;
|
|
2461
|
+
return c;
|
|
2462
|
+
}
|
|
2463
|
+
if ("object" == typeof globalThis) return globalThis;
|
|
2464
|
+
if ("object" == typeof $$$embind_global$$$) return $$$embind_global$$$;
|
|
2465
|
+
"object" == typeof global && a(global)
|
|
2466
|
+
? ($$$embind_global$$$ = global)
|
|
2467
|
+
: "object" == typeof self && a(self) && ($$$embind_global$$$ = self);
|
|
2468
|
+
if ("object" == typeof $$$embind_global$$$) return $$$embind_global$$$;
|
|
2469
|
+
throw Error("unable to get global object.");
|
|
2470
|
+
},
|
|
2471
|
+
qe = (a) => {
|
|
2472
|
+
var b = me.length;
|
|
2473
|
+
me.push(a);
|
|
2474
|
+
return b;
|
|
2475
|
+
},
|
|
2476
|
+
re = (a, b) => {
|
|
2477
|
+
for (var c = Array(a), d = 0; d < a; ++d)
|
|
2478
|
+
c[d] = ke(B()[(b + 4 * d) >> 2], "parameter " + d);
|
|
2479
|
+
return c;
|
|
2480
|
+
},
|
|
2481
|
+
se = Reflect.construct,
|
|
2482
|
+
te = (a) => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400),
|
|
2483
|
+
ue = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335],
|
|
2484
|
+
ve = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334];
|
|
2485
|
+
function we(a, b, c, d, e, f, g, l) {
|
|
2486
|
+
if (F) return O(8, 1, a, b, c, d, e, f, g, l);
|
|
2487
|
+
e = ib(e, f);
|
|
2488
|
+
try {
|
|
2489
|
+
if (isNaN(e)) return 61;
|
|
2490
|
+
var m = xc(d);
|
|
2491
|
+
if (0 !== (b & 2) && 0 === (c & 2) && 2 !== (m.flags & 2097155))
|
|
2492
|
+
throw new Q(2);
|
|
2493
|
+
if (1 === (m.flags & 2097155)) throw new Q(2);
|
|
2494
|
+
if (!m.Ua.Eb) throw new Q(43);
|
|
2495
|
+
var n = m.Ua.Eb(m, a, e, b, c);
|
|
2496
|
+
var t = n.Wa;
|
|
2497
|
+
A()[g >> 2] = n.bb;
|
|
2498
|
+
B()[l >> 2] = t;
|
|
2499
|
+
return 0;
|
|
2500
|
+
} catch (p) {
|
|
2501
|
+
if ("undefined" == typeof Pc || "ErrnoError" !== p.name) throw p;
|
|
2502
|
+
return -p.eb;
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2505
|
+
function xe(a, b, c, d, e, f, g) {
|
|
2506
|
+
if (F) return O(9, 1, a, b, c, d, e, f, g);
|
|
2507
|
+
f = ib(f, g);
|
|
2508
|
+
try {
|
|
2509
|
+
if (isNaN(f)) return 61;
|
|
2510
|
+
var l = xc(e);
|
|
2511
|
+
if (c & 2) {
|
|
2512
|
+
if (32768 !== (l.node.mode & 61440)) throw new Q(43);
|
|
2513
|
+
if (!(d & 2)) {
|
|
2514
|
+
var m = w().slice(a, a + b);
|
|
2515
|
+
l.Ua.Sb && l.Ua.Sb(l, m, f, b, d);
|
|
2516
|
+
}
|
|
2517
|
+
}
|
|
2518
|
+
} catch (n) {
|
|
2519
|
+
if ("undefined" == typeof Pc || "ErrnoError" !== n.name) throw n;
|
|
2520
|
+
return -n.eb;
|
|
2521
|
+
}
|
|
2522
|
+
}
|
|
2523
|
+
var ze = (a) => {
|
|
2524
|
+
var b = Qb(a) + 1,
|
|
2525
|
+
c = ye(b);
|
|
2526
|
+
c && P(a, w(), c, b);
|
|
2527
|
+
return c;
|
|
2528
|
+
},
|
|
2529
|
+
Ae = [];
|
|
2530
|
+
function Be(a, b) {
|
|
2531
|
+
try {
|
|
2532
|
+
var c = indexedDB.open("emscripten_filesystem", 1);
|
|
2533
|
+
} catch (d) {
|
|
2534
|
+
b(d);
|
|
2535
|
+
return;
|
|
2536
|
+
}
|
|
2537
|
+
c.onupgradeneeded = (d) => {
|
|
2538
|
+
d = d.target.result;
|
|
2539
|
+
d.objectStoreNames.contains("FILES") && d.deleteObjectStore("FILES");
|
|
2540
|
+
d.createObjectStore("FILES");
|
|
2541
|
+
};
|
|
2542
|
+
c.onsuccess = (d) => a(d.target.result);
|
|
2543
|
+
c.onerror = b;
|
|
2544
|
+
}
|
|
2545
|
+
var Ce, De;
|
|
2546
|
+
function Ee(a, b, c, d, e) {
|
|
2547
|
+
function f() {
|
|
2548
|
+
var C = 0,
|
|
2549
|
+
T = 0;
|
|
2550
|
+
y.response &&
|
|
2551
|
+
L &&
|
|
2552
|
+
0 === B()[(a + 12) >> 2] &&
|
|
2553
|
+
(T = y.response.byteLength);
|
|
2554
|
+
0 < T && ((C = ye(T)), w().set(new Uint8Array(y.response), C));
|
|
2555
|
+
B()[(a + 12) >> 2] = C;
|
|
2556
|
+
Y(a + 16, T);
|
|
2557
|
+
Y(a + 24, 0);
|
|
2558
|
+
(C = y.response ? y.response.byteLength : 0) && Y(a + 32, C);
|
|
2559
|
+
x()[(a + 40) >> 1] = y.readyState;
|
|
2560
|
+
x()[(a + 42) >> 1] = y.status;
|
|
2561
|
+
y.statusText && ((C = a + 44), P(y.statusText, w(), C, 64));
|
|
2562
|
+
}
|
|
2563
|
+
var g = B()[(a + 8) >> 2];
|
|
2564
|
+
if (g) {
|
|
2565
|
+
var l = K(g),
|
|
2566
|
+
m = a + 112,
|
|
2567
|
+
n = K(m + 0);
|
|
2568
|
+
n ||= "GET";
|
|
2569
|
+
var t = B()[(m + 56) >> 2],
|
|
2570
|
+
p = B()[(m + 68) >> 2],
|
|
2571
|
+
r = B()[(m + 72) >> 2];
|
|
2572
|
+
g = B()[(m + 76) >> 2];
|
|
2573
|
+
var k = B()[(m + 80) >> 2],
|
|
2574
|
+
q = B()[(m + 84) >> 2],
|
|
2575
|
+
v = B()[(m + 88) >> 2],
|
|
2576
|
+
z = B()[(m + 52) >> 2],
|
|
2577
|
+
L = !!(z & 1),
|
|
2578
|
+
J = !!(z & 2);
|
|
2579
|
+
z = !!(z & 64);
|
|
2580
|
+
p = p ? K(p) : void 0;
|
|
2581
|
+
r = r ? K(r) : void 0;
|
|
2582
|
+
var y = new XMLHttpRequest();
|
|
2583
|
+
y.withCredentials = !!w()[(m + 60) >> 0];
|
|
2584
|
+
y.open(n, l, !z, p, r);
|
|
2585
|
+
z || (y.timeout = t);
|
|
2586
|
+
y.Md = l;
|
|
2587
|
+
y.responseType = "arraybuffer";
|
|
2588
|
+
k && ((l = K(k)), y.overrideMimeType(l));
|
|
2589
|
+
if (g)
|
|
2590
|
+
for (;;) {
|
|
2591
|
+
m = B()[g >> 2];
|
|
2592
|
+
if (!m) break;
|
|
2593
|
+
l = B()[(g + 4) >> 2];
|
|
2594
|
+
if (!l) break;
|
|
2595
|
+
g += 8;
|
|
2596
|
+
m = K(m);
|
|
2597
|
+
l = K(l);
|
|
2598
|
+
y.setRequestHeader(m, l);
|
|
2599
|
+
}
|
|
2600
|
+
var S = Ce.Cb(y);
|
|
2601
|
+
B()[a >> 2] = S;
|
|
2602
|
+
g = q && v ? w().slice(q, q + v) : null;
|
|
2603
|
+
y.onload = (C) => {
|
|
2604
|
+
Ce.has(S) &&
|
|
2605
|
+
(f(),
|
|
2606
|
+
200 <= y.status && 300 > y.status ? b?.(a, y, C) : c?.(a, y, C));
|
|
2607
|
+
};
|
|
2608
|
+
y.onerror = (C) => {
|
|
2609
|
+
Ce.has(S) && (f(), c?.(a, y, C));
|
|
2610
|
+
};
|
|
2611
|
+
y.ontimeout = (C) => {
|
|
2612
|
+
Ce.has(S) && c?.(a, y, C);
|
|
2613
|
+
};
|
|
2614
|
+
y.onprogress = (C) => {
|
|
2615
|
+
if (Ce.has(S)) {
|
|
2616
|
+
var T = L && J && y.response ? y.response.byteLength : 0,
|
|
2617
|
+
I = 0;
|
|
2618
|
+
0 < T &&
|
|
2619
|
+
L &&
|
|
2620
|
+
J &&
|
|
2621
|
+
((I = ye(T)), w().set(new Uint8Array(y.response), I));
|
|
2622
|
+
B()[(a + 12) >> 2] = I;
|
|
2623
|
+
Y(a + 16, T);
|
|
2624
|
+
Y(a + 24, C.loaded - T);
|
|
2625
|
+
Y(a + 32, C.total);
|
|
2626
|
+
x()[(a + 40) >> 1] = y.readyState;
|
|
2627
|
+
3 <= y.readyState &&
|
|
2628
|
+
0 === y.status &&
|
|
2629
|
+
0 < C.loaded &&
|
|
2630
|
+
(y.status = 200);
|
|
2631
|
+
x()[(a + 42) >> 1] = y.status;
|
|
2632
|
+
y.statusText && ((T = a + 44), P(y.statusText, w(), T, 64));
|
|
2633
|
+
d?.(a, y, C);
|
|
2634
|
+
I && Nd(I);
|
|
2635
|
+
}
|
|
2636
|
+
};
|
|
2637
|
+
y.onreadystatechange = (C) => {
|
|
2638
|
+
Ce.has(S)
|
|
2639
|
+
? ((x()[(a + 40) >> 1] = y.readyState),
|
|
2640
|
+
2 <= y.readyState && (x()[(a + 42) >> 1] = y.status),
|
|
2641
|
+
e?.(a, y, C))
|
|
2642
|
+
: --N;
|
|
2643
|
+
};
|
|
2644
|
+
try {
|
|
2645
|
+
y.send(g);
|
|
2646
|
+
} catch (C) {
|
|
2647
|
+
c?.(a, y, C);
|
|
2648
|
+
}
|
|
2649
|
+
} else c(a, 0, "no url specified!");
|
|
2650
|
+
}
|
|
2651
|
+
var Y = (a, b) => {
|
|
2652
|
+
B()[a >> 2] = b;
|
|
2653
|
+
var c = B()[a >> 2];
|
|
2654
|
+
B()[(a + 4) >> 2] = (b - c) / 4294967296;
|
|
2655
|
+
};
|
|
2656
|
+
function Fe(a, b, c, d) {
|
|
2657
|
+
var e = De;
|
|
2658
|
+
if (e) {
|
|
2659
|
+
var f = a + 112;
|
|
2660
|
+
(f = B()[(f + 64) >> 2]) || (f = B()[(a + 8) >> 2]);
|
|
2661
|
+
var g = K(f);
|
|
2662
|
+
try {
|
|
2663
|
+
var l = e
|
|
2664
|
+
.transaction(["FILES"], "readwrite")
|
|
2665
|
+
.objectStore("FILES")
|
|
2666
|
+
.put(b, g);
|
|
2667
|
+
l.onsuccess = () => {
|
|
2668
|
+
x()[(a + 40) >> 1] = 4;
|
|
2669
|
+
x()[(a + 42) >> 1] = 200;
|
|
2670
|
+
var m = a + 44;
|
|
2671
|
+
P("OK", w(), m, 64);
|
|
2672
|
+
c(a, 0, g);
|
|
2673
|
+
};
|
|
2674
|
+
l.onerror = (m) => {
|
|
2675
|
+
x()[(a + 40) >> 1] = 4;
|
|
2676
|
+
x()[(a + 42) >> 1] = 413;
|
|
2677
|
+
var n = a + 44;
|
|
2678
|
+
P("Payload Too Large", w(), n, 64);
|
|
2679
|
+
d(a, 0, m);
|
|
2680
|
+
};
|
|
2681
|
+
} catch (m) {
|
|
2682
|
+
d(a, 0, m);
|
|
2683
|
+
}
|
|
2684
|
+
} else d(a, 0, "IndexedDB not available!");
|
|
2685
|
+
}
|
|
2686
|
+
function Ge(a, b, c) {
|
|
2687
|
+
var d = De;
|
|
2688
|
+
if (d) {
|
|
2689
|
+
var e = a + 112;
|
|
2690
|
+
(e = B()[(e + 64) >> 2]) || (e = B()[(a + 8) >> 2]);
|
|
2691
|
+
e = K(e);
|
|
2692
|
+
try {
|
|
2693
|
+
var f = d
|
|
2694
|
+
.transaction(["FILES"], "readonly")
|
|
2695
|
+
.objectStore("FILES")
|
|
2696
|
+
.get(e);
|
|
2697
|
+
f.onsuccess = (g) => {
|
|
2698
|
+
if (g.target.result) {
|
|
2699
|
+
g = g.target.result;
|
|
2700
|
+
var l = g.byteLength || g.length,
|
|
2701
|
+
m = ye(l);
|
|
2702
|
+
w().set(new Uint8Array(g), m);
|
|
2703
|
+
B()[(a + 12) >> 2] = m;
|
|
2704
|
+
Y(a + 16, l);
|
|
2705
|
+
Y(a + 24, 0);
|
|
2706
|
+
Y(a + 32, l);
|
|
2707
|
+
x()[(a + 40) >> 1] = 4;
|
|
2708
|
+
x()[(a + 42) >> 1] = 200;
|
|
2709
|
+
l = a + 44;
|
|
2710
|
+
P("OK", w(), l, 64);
|
|
2711
|
+
b(a, 0, g);
|
|
2712
|
+
} else
|
|
2713
|
+
(x()[(a + 40) >> 1] = 4),
|
|
2714
|
+
(x()[(a + 42) >> 1] = 404),
|
|
2715
|
+
(g = a + 44),
|
|
2716
|
+
P("Not Found", w(), g, 64),
|
|
2717
|
+
c(a, 0, "no data");
|
|
2718
|
+
};
|
|
2719
|
+
f.onerror = (g) => {
|
|
2720
|
+
x()[(a + 40) >> 1] = 4;
|
|
2721
|
+
x()[(a + 42) >> 1] = 404;
|
|
2722
|
+
var l = a + 44;
|
|
2723
|
+
P("Not Found", w(), l, 64);
|
|
2724
|
+
c(a, 0, g);
|
|
2725
|
+
};
|
|
2726
|
+
} catch (g) {
|
|
2727
|
+
c(a, 0, g);
|
|
2728
|
+
}
|
|
2729
|
+
} else c(a, 0, "IndexedDB not available!");
|
|
2730
|
+
}
|
|
2731
|
+
function He(a, b, c) {
|
|
2732
|
+
var d = De;
|
|
2733
|
+
if (d) {
|
|
2734
|
+
var e = a + 112;
|
|
2735
|
+
(e = B()[(e + 64) >> 2]) || (e = B()[(a + 8) >> 2]);
|
|
2736
|
+
e = K(e);
|
|
2737
|
+
try {
|
|
2738
|
+
var f = d
|
|
2739
|
+
.transaction(["FILES"], "readwrite")
|
|
2740
|
+
.objectStore("FILES")
|
|
2741
|
+
.delete(e);
|
|
2742
|
+
f.onsuccess = (g) => {
|
|
2743
|
+
g = g.target.result;
|
|
2744
|
+
B()[(a + 12) >> 2] = 0;
|
|
2745
|
+
Y(a + 16, 0);
|
|
2746
|
+
Y(a + 24, 0);
|
|
2747
|
+
Y(a + 32, 0);
|
|
2748
|
+
x()[(a + 40) >> 1] = 4;
|
|
2749
|
+
x()[(a + 42) >> 1] = 200;
|
|
2750
|
+
var l = a + 44;
|
|
2751
|
+
P("OK", w(), l, 64);
|
|
2752
|
+
b(a, 0, g);
|
|
2753
|
+
};
|
|
2754
|
+
f.onerror = (g) => {
|
|
2755
|
+
x()[(a + 40) >> 1] = 4;
|
|
2756
|
+
x()[(a + 42) >> 1] = 404;
|
|
2757
|
+
var l = a + 44;
|
|
2758
|
+
P("Not Found", w(), l, 64);
|
|
2759
|
+
c(a, 0, g);
|
|
2760
|
+
};
|
|
2761
|
+
} catch (g) {
|
|
2762
|
+
c(a, 0, g);
|
|
2763
|
+
}
|
|
2764
|
+
} else c(a, 0, "IndexedDB not available!");
|
|
2765
|
+
}
|
|
2766
|
+
var Ie = {},
|
|
2767
|
+
Ke = () => {
|
|
2768
|
+
if (!Je) {
|
|
2769
|
+
var a = {
|
|
2770
|
+
USER: "web_user",
|
|
2771
|
+
LOGNAME: "web_user",
|
|
2772
|
+
PATH: "/",
|
|
2773
|
+
PWD: "/",
|
|
2774
|
+
HOME: "/home/web_user",
|
|
2775
|
+
LANG:
|
|
2776
|
+
(
|
|
2777
|
+
("object" == typeof navigator &&
|
|
2778
|
+
navigator.languages &&
|
|
2779
|
+
navigator.languages[0]) ||
|
|
2780
|
+
"C"
|
|
2781
|
+
).replace("-", "_") + ".UTF-8",
|
|
2782
|
+
_: oa || "./this.program",
|
|
2783
|
+
},
|
|
2784
|
+
b;
|
|
2785
|
+
for (b in Ie) void 0 === Ie[b] ? delete a[b] : (a[b] = Ie[b]);
|
|
2786
|
+
var c = [];
|
|
2787
|
+
for (b in a) c.push(`${b}=${a[b]}`);
|
|
2788
|
+
Je = c;
|
|
2789
|
+
}
|
|
2790
|
+
return Je;
|
|
2791
|
+
},
|
|
2792
|
+
Je;
|
|
2793
|
+
function Le(a, b) {
|
|
2794
|
+
if (F) return O(10, 1, a, b);
|
|
2795
|
+
var c = 0;
|
|
2796
|
+
Ke().forEach((d, e) => {
|
|
2797
|
+
var f = b + c;
|
|
2798
|
+
e = B()[(a + 4 * e) >> 2] = f;
|
|
2799
|
+
for (f = 0; f < d.length; ++f) h()[e++ >> 0] = d.charCodeAt(f);
|
|
2800
|
+
h()[e >> 0] = 0;
|
|
2801
|
+
c += d.length + 1;
|
|
2802
|
+
});
|
|
2803
|
+
return 0;
|
|
2804
|
+
}
|
|
2805
|
+
function Me(a, b) {
|
|
2806
|
+
if (F) return O(11, 1, a, b);
|
|
2807
|
+
var c = Ke();
|
|
2808
|
+
B()[a >> 2] = c.length;
|
|
2809
|
+
var d = 0;
|
|
2810
|
+
c.forEach((e) => (d += e.length + 1));
|
|
2811
|
+
B()[b >> 2] = d;
|
|
2812
|
+
return 0;
|
|
2813
|
+
}
|
|
2814
|
+
function Ne(a) {
|
|
2815
|
+
if (F) return O(12, 1, a);
|
|
2816
|
+
try {
|
|
2817
|
+
var b = xc(a);
|
|
2818
|
+
rb(b);
|
|
2819
|
+
return 0;
|
|
2820
|
+
} catch (c) {
|
|
2821
|
+
if ("undefined" == typeof Pc || "ErrnoError" !== c.name) throw c;
|
|
2822
|
+
return c.eb;
|
|
2823
|
+
}
|
|
2824
|
+
}
|
|
2825
|
+
function Oe(a, b, c, d) {
|
|
2826
|
+
if (F) return O(13, 1, a, b, c, d);
|
|
2827
|
+
try {
|
|
2828
|
+
a: {
|
|
2829
|
+
var e = xc(a);
|
|
2830
|
+
a = b;
|
|
2831
|
+
for (var f, g = (b = 0); g < c; g++) {
|
|
2832
|
+
var l = B()[a >> 2],
|
|
2833
|
+
m = B()[(a + 4) >> 2];
|
|
2834
|
+
a += 8;
|
|
2835
|
+
var n = e,
|
|
2836
|
+
t = h(),
|
|
2837
|
+
p = f;
|
|
2838
|
+
if (0 > m || 0 > p) throw new Q(28);
|
|
2839
|
+
if (null === n.rb) throw new Q(8);
|
|
2840
|
+
if (1 === (n.flags & 2097155)) throw new Q(8);
|
|
2841
|
+
if (U(n.node.mode)) throw new Q(31);
|
|
2842
|
+
if (!n.Ua.read) throw new Q(28);
|
|
2843
|
+
var r = "undefined" != typeof p;
|
|
2844
|
+
if (!r) p = n.position;
|
|
2845
|
+
else if (!n.seekable) throw new Q(70);
|
|
2846
|
+
var k = n.Ua.read(n, t, l, m, p);
|
|
2847
|
+
r || (n.position += k);
|
|
2848
|
+
var q = k;
|
|
2849
|
+
if (0 > q) {
|
|
2850
|
+
var v = -1;
|
|
2851
|
+
break a;
|
|
2852
|
+
}
|
|
2853
|
+
b += q;
|
|
2854
|
+
if (q < m) break;
|
|
2855
|
+
"undefined" !== typeof f && (f += q);
|
|
2856
|
+
}
|
|
2857
|
+
v = b;
|
|
2858
|
+
}
|
|
2859
|
+
B()[d >> 2] = v;
|
|
2860
|
+
return 0;
|
|
2861
|
+
} catch (z) {
|
|
2862
|
+
if ("undefined" == typeof Pc || "ErrnoError" !== z.name) throw z;
|
|
2863
|
+
return z.eb;
|
|
2864
|
+
}
|
|
2865
|
+
}
|
|
2866
|
+
function Pe(a, b, c, d, e) {
|
|
2867
|
+
if (F) return O(14, 1, a, b, c, d, e);
|
|
2868
|
+
b = ib(b, c);
|
|
2869
|
+
try {
|
|
2870
|
+
if (isNaN(b)) return 61;
|
|
2871
|
+
var f = xc(a);
|
|
2872
|
+
Jc(f, b, d);
|
|
2873
|
+
H = [
|
|
2874
|
+
f.position >>> 0,
|
|
2875
|
+
((G = f.position),
|
|
2876
|
+
1 <= +Math.abs(G)
|
|
2877
|
+
? 0 < G
|
|
2878
|
+
? +Math.floor(G / 4294967296) >>> 0
|
|
2879
|
+
: ~~+Math.ceil((G - +(~~G >>> 0)) / 4294967296) >>> 0
|
|
2880
|
+
: 0),
|
|
2881
|
+
];
|
|
2882
|
+
A()[e >> 2] = H[0];
|
|
2883
|
+
A()[(e + 4) >> 2] = H[1];
|
|
2884
|
+
f.$b && 0 === b && 0 === d && (f.$b = null);
|
|
2885
|
+
return 0;
|
|
2886
|
+
} catch (g) {
|
|
2887
|
+
if ("undefined" == typeof Pc || "ErrnoError" !== g.name) throw g;
|
|
2888
|
+
return g.eb;
|
|
2889
|
+
}
|
|
2890
|
+
}
|
|
2891
|
+
function Qe(a, b, c, d) {
|
|
2892
|
+
if (F) return O(15, 1, a, b, c, d);
|
|
2893
|
+
try {
|
|
2894
|
+
a: {
|
|
2895
|
+
var e = xc(a);
|
|
2896
|
+
a = b;
|
|
2897
|
+
for (var f, g = (b = 0); g < c; g++) {
|
|
2898
|
+
var l = B()[a >> 2],
|
|
2899
|
+
m = B()[(a + 4) >> 2];
|
|
2900
|
+
a += 8;
|
|
2901
|
+
var n = Kc(e, h(), l, m, f);
|
|
2902
|
+
if (0 > n) {
|
|
2903
|
+
var t = -1;
|
|
2904
|
+
break a;
|
|
2905
|
+
}
|
|
2906
|
+
b += n;
|
|
2907
|
+
"undefined" !== typeof f && (f += n);
|
|
2908
|
+
}
|
|
2909
|
+
t = b;
|
|
2910
|
+
}
|
|
2911
|
+
B()[d >> 2] = t;
|
|
2912
|
+
return 0;
|
|
2913
|
+
} catch (p) {
|
|
2914
|
+
if ("undefined" == typeof Pc || "ErrnoError" !== p.name) throw p;
|
|
2915
|
+
return p.eb;
|
|
2916
|
+
}
|
|
2917
|
+
}
|
|
2918
|
+
var Re = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
|
|
2919
|
+
Se = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
|
|
2920
|
+
Te = (a, b) => {
|
|
2921
|
+
h().set(a, b);
|
|
2922
|
+
},
|
|
2923
|
+
Ue = (a, b, c, d) => {
|
|
2924
|
+
function e(k, q, v) {
|
|
2925
|
+
for (
|
|
2926
|
+
k = "number" == typeof k ? k.toString() : k || "";
|
|
2927
|
+
k.length < q;
|
|
2928
|
+
|
|
2929
|
+
)
|
|
2930
|
+
k = v[0] + k;
|
|
2931
|
+
return k;
|
|
2932
|
+
}
|
|
2933
|
+
function f(k, q) {
|
|
2934
|
+
return e(k, q, "0");
|
|
2935
|
+
}
|
|
2936
|
+
function g(k, q) {
|
|
2937
|
+
function v(L) {
|
|
2938
|
+
return 0 > L ? -1 : 0 < L ? 1 : 0;
|
|
2939
|
+
}
|
|
2940
|
+
var z;
|
|
2941
|
+
0 === (z = v(k.getFullYear() - q.getFullYear())) &&
|
|
2942
|
+
0 === (z = v(k.getMonth() - q.getMonth())) &&
|
|
2943
|
+
(z = v(k.getDate() - q.getDate()));
|
|
2944
|
+
return z;
|
|
2945
|
+
}
|
|
2946
|
+
function l(k) {
|
|
2947
|
+
switch (k.getDay()) {
|
|
2948
|
+
case 0:
|
|
2949
|
+
return new Date(k.getFullYear() - 1, 11, 29);
|
|
2950
|
+
case 1:
|
|
2951
|
+
return k;
|
|
2952
|
+
case 2:
|
|
2953
|
+
return new Date(k.getFullYear(), 0, 3);
|
|
2954
|
+
case 3:
|
|
2955
|
+
return new Date(k.getFullYear(), 0, 2);
|
|
2956
|
+
case 4:
|
|
2957
|
+
return new Date(k.getFullYear(), 0, 1);
|
|
2958
|
+
case 5:
|
|
2959
|
+
return new Date(k.getFullYear() - 1, 11, 31);
|
|
2960
|
+
case 6:
|
|
2961
|
+
return new Date(k.getFullYear() - 1, 11, 30);
|
|
2962
|
+
}
|
|
2963
|
+
}
|
|
2964
|
+
function m(k) {
|
|
2965
|
+
var q = k.vb;
|
|
2966
|
+
for (k = new Date(new Date(k.wb + 1900, 0, 1).getTime()); 0 < q; ) {
|
|
2967
|
+
var v = k.getMonth(),
|
|
2968
|
+
z = (te(k.getFullYear()) ? Re : Se)[v];
|
|
2969
|
+
if (q > z - k.getDate())
|
|
2970
|
+
(q -= z - k.getDate() + 1),
|
|
2971
|
+
k.setDate(1),
|
|
2972
|
+
11 > v
|
|
2973
|
+
? k.setMonth(v + 1)
|
|
2974
|
+
: (k.setMonth(0), k.setFullYear(k.getFullYear() + 1));
|
|
2975
|
+
else {
|
|
2976
|
+
k.setDate(k.getDate() + q);
|
|
2977
|
+
break;
|
|
2978
|
+
}
|
|
2979
|
+
}
|
|
2980
|
+
v = new Date(k.getFullYear() + 1, 0, 4);
|
|
2981
|
+
q = l(new Date(k.getFullYear(), 0, 4));
|
|
2982
|
+
v = l(v);
|
|
2983
|
+
return 0 >= g(q, k)
|
|
2984
|
+
? 0 >= g(v, k)
|
|
2985
|
+
? k.getFullYear() + 1
|
|
2986
|
+
: k.getFullYear()
|
|
2987
|
+
: k.getFullYear() - 1;
|
|
2988
|
+
}
|
|
2989
|
+
var n = B()[(d + 40) >> 2];
|
|
2990
|
+
d = {
|
|
2991
|
+
rd: A()[d >> 2],
|
|
2992
|
+
qd: A()[(d + 4) >> 2],
|
|
2993
|
+
Vb: A()[(d + 8) >> 2],
|
|
2994
|
+
hc: A()[(d + 12) >> 2],
|
|
2995
|
+
Wb: A()[(d + 16) >> 2],
|
|
2996
|
+
wb: A()[(d + 20) >> 2],
|
|
2997
|
+
nb: A()[(d + 24) >> 2],
|
|
2998
|
+
vb: A()[(d + 28) >> 2],
|
|
2999
|
+
Ld: A()[(d + 32) >> 2],
|
|
3000
|
+
pd: A()[(d + 36) >> 2],
|
|
3001
|
+
sd: n ? K(n) : "",
|
|
3002
|
+
};
|
|
3003
|
+
c = K(c);
|
|
3004
|
+
n = {
|
|
3005
|
+
"%c": "%a %b %d %H:%M:%S %Y",
|
|
3006
|
+
"%D": "%m/%d/%y",
|
|
3007
|
+
"%F": "%Y-%m-%d",
|
|
3008
|
+
"%h": "%b",
|
|
3009
|
+
"%r": "%I:%M:%S %p",
|
|
3010
|
+
"%R": "%H:%M",
|
|
3011
|
+
"%T": "%H:%M:%S",
|
|
3012
|
+
"%x": "%m/%d/%y",
|
|
3013
|
+
"%X": "%H:%M:%S",
|
|
3014
|
+
"%Ec": "%c",
|
|
3015
|
+
"%EC": "%C",
|
|
3016
|
+
"%Ex": "%m/%d/%y",
|
|
3017
|
+
"%EX": "%H:%M:%S",
|
|
3018
|
+
"%Ey": "%y",
|
|
3019
|
+
"%EY": "%Y",
|
|
3020
|
+
"%Od": "%d",
|
|
3021
|
+
"%Oe": "%e",
|
|
3022
|
+
"%OH": "%H",
|
|
3023
|
+
"%OI": "%I",
|
|
3024
|
+
"%Om": "%m",
|
|
3025
|
+
"%OM": "%M",
|
|
3026
|
+
"%OS": "%S",
|
|
3027
|
+
"%Ou": "%u",
|
|
3028
|
+
"%OU": "%U",
|
|
3029
|
+
"%OV": "%V",
|
|
3030
|
+
"%Ow": "%w",
|
|
3031
|
+
"%OW": "%W",
|
|
3032
|
+
"%Oy": "%y",
|
|
3033
|
+
};
|
|
3034
|
+
for (var t in n) c = c.replace(new RegExp(t, "g"), n[t]);
|
|
3035
|
+
var p =
|
|
3036
|
+
"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(
|
|
3037
|
+
" ",
|
|
3038
|
+
),
|
|
3039
|
+
r =
|
|
3040
|
+
"January February March April May June July August September October November December".split(
|
|
3041
|
+
" ",
|
|
3042
|
+
);
|
|
3043
|
+
n = {
|
|
3044
|
+
"%a": (k) => p[k.nb].substring(0, 3),
|
|
3045
|
+
"%A": (k) => p[k.nb],
|
|
3046
|
+
"%b": (k) => r[k.Wb].substring(0, 3),
|
|
3047
|
+
"%B": (k) => r[k.Wb],
|
|
3048
|
+
"%C": (k) => f(((k.wb + 1900) / 100) | 0, 2),
|
|
3049
|
+
"%d": (k) => f(k.hc, 2),
|
|
3050
|
+
"%e": (k) => e(k.hc, 2, " "),
|
|
3051
|
+
"%g": (k) => m(k).toString().substring(2),
|
|
3052
|
+
"%G": m,
|
|
3053
|
+
"%H": (k) => f(k.Vb, 2),
|
|
3054
|
+
"%I": (k) => {
|
|
3055
|
+
k = k.Vb;
|
|
3056
|
+
0 == k ? (k = 12) : 12 < k && (k -= 12);
|
|
3057
|
+
return f(k, 2);
|
|
3058
|
+
},
|
|
3059
|
+
"%j": (k) => {
|
|
3060
|
+
for (
|
|
3061
|
+
var q = 0, v = 0;
|
|
3062
|
+
v <= k.Wb - 1;
|
|
3063
|
+
q += (te(k.wb + 1900) ? Re : Se)[v++]
|
|
3064
|
+
);
|
|
3065
|
+
return f(k.hc + q, 3);
|
|
3066
|
+
},
|
|
3067
|
+
"%m": (k) => f(k.Wb + 1, 2),
|
|
3068
|
+
"%M": (k) => f(k.qd, 2),
|
|
3069
|
+
"%n": () => "\n",
|
|
3070
|
+
"%p": (k) => (0 <= k.Vb && 12 > k.Vb ? "AM" : "PM"),
|
|
3071
|
+
"%S": (k) => f(k.rd, 2),
|
|
3072
|
+
"%t": () => "\t",
|
|
3073
|
+
"%u": (k) => k.nb || 7,
|
|
3074
|
+
"%U": (k) => f(Math.floor((k.vb + 7 - k.nb) / 7), 2),
|
|
3075
|
+
"%V": (k) => {
|
|
3076
|
+
var q = Math.floor((k.vb + 7 - ((k.nb + 6) % 7)) / 7);
|
|
3077
|
+
2 >= (k.nb + 371 - k.vb - 2) % 7 && q++;
|
|
3078
|
+
if (q)
|
|
3079
|
+
53 == q &&
|
|
3080
|
+
((v = (k.nb + 371 - k.vb) % 7),
|
|
3081
|
+
4 == v || (3 == v && te(k.wb)) || (q = 1));
|
|
3082
|
+
else {
|
|
3083
|
+
q = 52;
|
|
3084
|
+
var v = (k.nb + 7 - k.vb - 1) % 7;
|
|
3085
|
+
(4 == v || (5 == v && te((k.wb % 400) - 1))) && q++;
|
|
3086
|
+
}
|
|
3087
|
+
return f(q, 2);
|
|
3088
|
+
},
|
|
3089
|
+
"%w": (k) => k.nb,
|
|
3090
|
+
"%W": (k) => f(Math.floor((k.vb + 7 - ((k.nb + 6) % 7)) / 7), 2),
|
|
3091
|
+
"%y": (k) => (k.wb + 1900).toString().substring(2),
|
|
3092
|
+
"%Y": (k) => k.wb + 1900,
|
|
3093
|
+
"%z": (k) => {
|
|
3094
|
+
k = k.pd;
|
|
3095
|
+
var q = 0 <= k;
|
|
3096
|
+
k = Math.abs(k) / 60;
|
|
3097
|
+
return (
|
|
3098
|
+
(q ? "+" : "-") +
|
|
3099
|
+
String("0000" + ((k / 60) * 100 + (k % 60))).slice(-4)
|
|
3100
|
+
);
|
|
3101
|
+
},
|
|
3102
|
+
"%Z": (k) => k.sd,
|
|
3103
|
+
"%%": () => "%",
|
|
3104
|
+
};
|
|
3105
|
+
c = c.replace(/%%/g, "\x00\x00");
|
|
3106
|
+
for (t in n)
|
|
3107
|
+
c.includes(t) && (c = c.replace(new RegExp(t, "g"), n[t](d)));
|
|
3108
|
+
c = c.replace(/\0\0/g, "%");
|
|
3109
|
+
t = Rb(c, !1);
|
|
3110
|
+
if (t.length > b) return 0;
|
|
3111
|
+
Te(t, a);
|
|
3112
|
+
return t.length - 1;
|
|
3113
|
+
};
|
|
3114
|
+
F ? tb() : ub();
|
|
3115
|
+
function tc(a, b, c, d) {
|
|
3116
|
+
a ||= this;
|
|
3117
|
+
this.parent = a;
|
|
3118
|
+
this.ob = a.ob;
|
|
3119
|
+
this.Fb = null;
|
|
3120
|
+
this.id = mc++;
|
|
3121
|
+
this.name = b;
|
|
3122
|
+
this.mode = c;
|
|
3123
|
+
this.Ta = {};
|
|
3124
|
+
this.Ua = {};
|
|
3125
|
+
this.Hb = d;
|
|
3126
|
+
}
|
|
3127
|
+
Object.defineProperties(tc.prototype, {
|
|
3128
|
+
read: {
|
|
3129
|
+
get: function () {
|
|
3130
|
+
return 365 === (this.mode & 365);
|
|
3131
|
+
},
|
|
3132
|
+
set: function (a) {
|
|
3133
|
+
a ? (this.mode |= 365) : (this.mode &= -366);
|
|
3134
|
+
},
|
|
3135
|
+
},
|
|
3136
|
+
write: {
|
|
3137
|
+
get: function () {
|
|
3138
|
+
return 146 === (this.mode & 146);
|
|
3139
|
+
},
|
|
3140
|
+
set: function (a) {
|
|
3141
|
+
a ? (this.mode |= 146) : (this.mode &= -147);
|
|
3142
|
+
},
|
|
3143
|
+
},
|
|
3144
|
+
ad: {
|
|
3145
|
+
get: function () {
|
|
3146
|
+
return U(this.mode);
|
|
3147
|
+
},
|
|
3148
|
+
},
|
|
3149
|
+
$c: {
|
|
3150
|
+
get: function () {
|
|
3151
|
+
return 8192 === (this.mode & 61440);
|
|
3152
|
+
},
|
|
3153
|
+
},
|
|
3154
|
+
});
|
|
3155
|
+
[44].forEach((a) => {
|
|
3156
|
+
cc[a] = new Q(a);
|
|
3157
|
+
cc[a].stack = "<generic error, no stack>";
|
|
3158
|
+
});
|
|
3159
|
+
nc = Array(4096);
|
|
3160
|
+
Ac(R, "/");
|
|
3161
|
+
Cc("/tmp");
|
|
3162
|
+
Cc("/home");
|
|
3163
|
+
Cc("/home/web_user");
|
|
3164
|
+
(function () {
|
|
3165
|
+
Cc("/dev");
|
|
3166
|
+
Ub(259, { read: () => 0, write: (d, e, f, g) => g });
|
|
3167
|
+
Dc("/dev/null", 259);
|
|
3168
|
+
Tb(1280, Wb);
|
|
3169
|
+
Tb(1536, Xb);
|
|
3170
|
+
Dc("/dev/tty", 1280);
|
|
3171
|
+
Dc("/dev/tty1", 1536);
|
|
3172
|
+
var a = new Uint8Array(1024),
|
|
3173
|
+
b = 0,
|
|
3174
|
+
c = () => {
|
|
3175
|
+
0 === b && (b = Lb(a).byteLength);
|
|
3176
|
+
return a[--b];
|
|
3177
|
+
};
|
|
3178
|
+
Ka("/dev", "random", c);
|
|
3179
|
+
Ka("/dev", "urandom", c);
|
|
3180
|
+
Cc("/dev/shm");
|
|
3181
|
+
Cc("/dev/shm/tmp");
|
|
3182
|
+
})();
|
|
3183
|
+
(function () {
|
|
3184
|
+
Cc("/proc");
|
|
3185
|
+
var a = Cc("/proc/self");
|
|
3186
|
+
Cc("/proc/self/fd");
|
|
3187
|
+
Ac(
|
|
3188
|
+
{
|
|
3189
|
+
ob() {
|
|
3190
|
+
var b = bc(a, "fd", 16895, 73);
|
|
3191
|
+
b.Ta = {
|
|
3192
|
+
Db(c, d) {
|
|
3193
|
+
var e = xc(+d);
|
|
3194
|
+
c = {
|
|
3195
|
+
parent: null,
|
|
3196
|
+
ob: { tc: "fake" },
|
|
3197
|
+
Ta: { Ib: () => e.path },
|
|
3198
|
+
};
|
|
3199
|
+
return (c.parent = c);
|
|
3200
|
+
},
|
|
3201
|
+
};
|
|
3202
|
+
return b;
|
|
3203
|
+
},
|
|
3204
|
+
},
|
|
3205
|
+
"/proc/self/fd",
|
|
3206
|
+
);
|
|
3207
|
+
})();
|
|
3208
|
+
D.FS_createPath = Lc;
|
|
3209
|
+
D.FS_createDataFile = hc;
|
|
3210
|
+
D.FS_createPreloadedFile = ic;
|
|
3211
|
+
D.FS_unlink = Ec;
|
|
3212
|
+
D.FS_createLazyFile = Oc;
|
|
3213
|
+
D.FS_createDevice = Ka;
|
|
3214
|
+
cd = D.InternalError = class extends Error {
|
|
3215
|
+
constructor(a) {
|
|
3216
|
+
super(a);
|
|
3217
|
+
this.name = "InternalError";
|
|
3218
|
+
}
|
|
3219
|
+
};
|
|
3220
|
+
for (var Ve = Array(256), We = 0; 256 > We; ++We)
|
|
3221
|
+
Ve[We] = String.fromCharCode(We);
|
|
3222
|
+
fd = Ve;
|
|
3223
|
+
W = D.BindingError = class extends Error {
|
|
3224
|
+
constructor(a) {
|
|
3225
|
+
super(a);
|
|
3226
|
+
this.name = "BindingError";
|
|
3227
|
+
}
|
|
3228
|
+
};
|
|
3229
|
+
Object.assign(ud.prototype, {
|
|
3230
|
+
isAliasOf: function (a) {
|
|
3231
|
+
if (!(this instanceof ud && a instanceof ud)) return !1;
|
|
3232
|
+
var b = this.Ra.Ya.Va,
|
|
3233
|
+
c = this.Ra.Wa;
|
|
3234
|
+
a.Ra = a.Ra;
|
|
3235
|
+
var d = a.Ra.Ya.Va;
|
|
3236
|
+
for (a = a.Ra.Wa; b.cb; ) (c = b.Jb(c)), (b = b.cb);
|
|
3237
|
+
for (; d.cb; ) (a = d.Jb(a)), (d = d.cb);
|
|
3238
|
+
return b === d && c === a;
|
|
3239
|
+
},
|
|
3240
|
+
clone: function () {
|
|
3241
|
+
this.Ra.Wa || hd(this);
|
|
3242
|
+
if (this.Ra.Gb) return (this.Ra.count.value += 1), this;
|
|
3243
|
+
var a = sd,
|
|
3244
|
+
b = Object,
|
|
3245
|
+
c = b.create,
|
|
3246
|
+
d = Object.getPrototypeOf(this),
|
|
3247
|
+
e = this.Ra;
|
|
3248
|
+
a = a(
|
|
3249
|
+
c.call(b, d, {
|
|
3250
|
+
Ra: {
|
|
3251
|
+
value: {
|
|
3252
|
+
count: e.count,
|
|
3253
|
+
yb: e.yb,
|
|
3254
|
+
Gb: e.Gb,
|
|
3255
|
+
Wa: e.Wa,
|
|
3256
|
+
Ya: e.Ya,
|
|
3257
|
+
Za: e.Za,
|
|
3258
|
+
gb: e.gb,
|
|
3259
|
+
},
|
|
3260
|
+
},
|
|
3261
|
+
}),
|
|
3262
|
+
);
|
|
3263
|
+
a.Ra.count.value += 1;
|
|
3264
|
+
a.Ra.yb = !1;
|
|
3265
|
+
return a;
|
|
3266
|
+
},
|
|
3267
|
+
["delete"]() {
|
|
3268
|
+
this.Ra.Wa || hd(this);
|
|
3269
|
+
if (this.Ra.yb && !this.Ra.Gb)
|
|
3270
|
+
throw new W("Object already scheduled for deletion");
|
|
3271
|
+
kd(this);
|
|
3272
|
+
var a = this.Ra;
|
|
3273
|
+
--a.count.value;
|
|
3274
|
+
0 === a.count.value && (a.Za ? a.gb.mb(a.Za) : a.Ya.Va.mb(a.Wa));
|
|
3275
|
+
this.Ra.Gb || ((this.Ra.Za = void 0), (this.Ra.Wa = void 0));
|
|
3276
|
+
},
|
|
3277
|
+
isDeleted: function () {
|
|
3278
|
+
return !this.Ra.Wa;
|
|
3279
|
+
},
|
|
3280
|
+
deleteLater: function () {
|
|
3281
|
+
this.Ra.Wa || hd(this);
|
|
3282
|
+
if (this.Ra.yb && !this.Ra.Gb)
|
|
3283
|
+
throw new W("Object already scheduled for deletion");
|
|
3284
|
+
nd.push(this);
|
|
3285
|
+
1 === nd.length && pd && pd(od);
|
|
3286
|
+
this.Ra.yb = !0;
|
|
3287
|
+
return this;
|
|
3288
|
+
},
|
|
3289
|
+
});
|
|
3290
|
+
D.getInheritedInstanceCount = () => Object.keys(qd).length;
|
|
3291
|
+
D.getLiveInheritedInstances = () => {
|
|
3292
|
+
var a = [],
|
|
3293
|
+
b;
|
|
3294
|
+
for (b in qd) qd.hasOwnProperty(b) && a.push(qd[b]);
|
|
3295
|
+
return a;
|
|
3296
|
+
};
|
|
3297
|
+
D.flushPendingDeletes = od;
|
|
3298
|
+
D.setDelayFunction = (a) => {
|
|
3299
|
+
pd = a;
|
|
3300
|
+
nd.length && pd && pd(od);
|
|
3301
|
+
};
|
|
3302
|
+
Object.assign(Hd.prototype, {
|
|
3303
|
+
Vc(a) {
|
|
3304
|
+
this.vc && (a = this.vc(a));
|
|
3305
|
+
return a;
|
|
3306
|
+
},
|
|
3307
|
+
mc(a) {
|
|
3308
|
+
this.mb?.(a);
|
|
3309
|
+
},
|
|
3310
|
+
argPackAdvance: 8,
|
|
3311
|
+
readValueFromPointer: Gd,
|
|
3312
|
+
fromWireType: function (a) {
|
|
3313
|
+
function b() {
|
|
3314
|
+
return this.Qb
|
|
3315
|
+
? td(this.Va.zb, { Ya: this.ed, Wa: c, gb: this, Za: a })
|
|
3316
|
+
: td(this.Va.zb, { Ya: this, Wa: a });
|
|
3317
|
+
}
|
|
3318
|
+
var c = this.Vc(a);
|
|
3319
|
+
if (!c) return this.mc(a), null;
|
|
3320
|
+
var d = rd(this.Va, c);
|
|
3321
|
+
if (void 0 !== d) {
|
|
3322
|
+
if (0 === d.Ra.count.value)
|
|
3323
|
+
return (d.Ra.Wa = c), (d.Ra.Za = a), d.clone();
|
|
3324
|
+
d = d.clone();
|
|
3325
|
+
this.mc(a);
|
|
3326
|
+
return d;
|
|
3327
|
+
}
|
|
3328
|
+
d = this.Va.Uc(c);
|
|
3329
|
+
d = md[d];
|
|
3330
|
+
if (!d) return b.call(this);
|
|
3331
|
+
d = this.Pb ? d.Oc : d.pointerType;
|
|
3332
|
+
var e = ld(c, this.Va, d.Va);
|
|
3333
|
+
return null === e
|
|
3334
|
+
? b.call(this)
|
|
3335
|
+
: this.Qb
|
|
3336
|
+
? td(d.Va.zb, { Ya: d, Wa: e, gb: this, Za: a })
|
|
3337
|
+
: td(d.Va.zb, { Ya: d, Wa: e });
|
|
3338
|
+
},
|
|
3339
|
+
});
|
|
3340
|
+
Ld = D.UnboundTypeError = ((a, b) => {
|
|
3341
|
+
var c = vd(b, function (d) {
|
|
3342
|
+
this.name = b;
|
|
3343
|
+
this.message = d;
|
|
3344
|
+
d = Error(d).stack;
|
|
3345
|
+
void 0 !== d &&
|
|
3346
|
+
(this.stack =
|
|
3347
|
+
this.toString() + "\n" + d.replace(/^Error(:[^\n]*)?\n/, ""));
|
|
3348
|
+
});
|
|
3349
|
+
c.prototype = Object.create(a.prototype);
|
|
3350
|
+
c.prototype.constructor = c;
|
|
3351
|
+
c.prototype.toString = function () {
|
|
3352
|
+
return void 0 === this.message
|
|
3353
|
+
? this.name
|
|
3354
|
+
: `${this.name}: ${this.message}`;
|
|
3355
|
+
};
|
|
3356
|
+
return c;
|
|
3357
|
+
})(Error, "UnboundTypeError");
|
|
3358
|
+
X.bb.push({ value: void 0 }, { value: null }, { value: !0 }, { value: !1 });
|
|
3359
|
+
Object.assign(X, { zc: X.bb.length });
|
|
3360
|
+
D.count_emval_handles = () => {
|
|
3361
|
+
for (var a = 0, b = X.zc; b < X.bb.length; ++b) void 0 !== X.bb[b] && ++a;
|
|
3362
|
+
return a;
|
|
3363
|
+
};
|
|
3364
|
+
Ce = new Ud();
|
|
3365
|
+
F ||
|
|
3366
|
+
(Sa("library_fetch_init"),
|
|
3367
|
+
Be(
|
|
3368
|
+
(a) => {
|
|
3369
|
+
De = a;
|
|
3370
|
+
Ta("library_fetch_init");
|
|
3371
|
+
},
|
|
3372
|
+
() => {
|
|
3373
|
+
De = !1;
|
|
3374
|
+
Ta("library_fetch_init");
|
|
3375
|
+
},
|
|
3376
|
+
));
|
|
3377
|
+
var Xe = [
|
|
3378
|
+
lb,
|
|
3379
|
+
nb,
|
|
3380
|
+
Eb,
|
|
3381
|
+
Tc,
|
|
3382
|
+
function (a, b) {
|
|
3383
|
+
if (F) return O(4, 1, a, b);
|
|
3384
|
+
try {
|
|
3385
|
+
return (a = K(a)), Rc(Gc, a, b);
|
|
3386
|
+
} catch (c) {
|
|
3387
|
+
if ("undefined" == typeof Pc || "ErrnoError" !== c.name) throw c;
|
|
3388
|
+
return -c.eb;
|
|
3389
|
+
}
|
|
3390
|
+
},
|
|
3391
|
+
Uc,
|
|
3392
|
+
Vc,
|
|
3393
|
+
Wc,
|
|
3394
|
+
we,
|
|
3395
|
+
xe,
|
|
3396
|
+
Le,
|
|
3397
|
+
Me,
|
|
3398
|
+
Ne,
|
|
3399
|
+
Oe,
|
|
3400
|
+
Pe,
|
|
3401
|
+
Qe,
|
|
3402
|
+
],
|
|
3403
|
+
$e = {
|
|
3404
|
+
T: (a) => {
|
|
3405
|
+
Ye(a, !1, 1, !0, 262144, !1);
|
|
3406
|
+
M.Ec();
|
|
3407
|
+
},
|
|
3408
|
+
q: (a) => {
|
|
3409
|
+
F ? postMessage({ cmd: "cleanupThread", thread: a }) : M.Ac(M.lb[a]);
|
|
3410
|
+
},
|
|
3411
|
+
Q: Fb,
|
|
3412
|
+
Y: Tc,
|
|
3413
|
+
W: Uc,
|
|
3414
|
+
Z: Vc,
|
|
3415
|
+
X: Wc,
|
|
3416
|
+
h: (a) => {
|
|
3417
|
+
var b = Xc[a];
|
|
3418
|
+
delete Xc[a];
|
|
3419
|
+
var c = b.dc,
|
|
3420
|
+
d = b.mb,
|
|
3421
|
+
e = b.nc,
|
|
3422
|
+
f = e.map((g) => g.Xc).concat(e.map((g) => g.ld));
|
|
3423
|
+
ed([a], f, (g) => {
|
|
3424
|
+
var l = {};
|
|
3425
|
+
e.forEach((m, n) => {
|
|
3426
|
+
var t = g[n],
|
|
3427
|
+
p = m.Ob,
|
|
3428
|
+
r = m.Wc,
|
|
3429
|
+
k = g[n + e.length],
|
|
3430
|
+
q = m.kd,
|
|
3431
|
+
v = m.md;
|
|
3432
|
+
l[m.Tc] = {
|
|
3433
|
+
read: (z) => t.fromWireType(p(r, z)),
|
|
3434
|
+
write: (z, L) => {
|
|
3435
|
+
var J = [];
|
|
3436
|
+
q(v, z, k.toWireType(J, L));
|
|
3437
|
+
Yc(J);
|
|
3438
|
+
},
|
|
3439
|
+
};
|
|
3440
|
+
});
|
|
3441
|
+
return [
|
|
3442
|
+
{
|
|
3443
|
+
name: b.name,
|
|
3444
|
+
fromWireType: (m) => {
|
|
3445
|
+
var n = {},
|
|
3446
|
+
t;
|
|
3447
|
+
for (t in l) n[t] = l[t].read(m);
|
|
3448
|
+
d(m);
|
|
3449
|
+
return n;
|
|
3450
|
+
},
|
|
3451
|
+
toWireType: (m, n) => {
|
|
3452
|
+
for (var t in l)
|
|
3453
|
+
if (!(t in n)) throw new TypeError(`Missing field: "${t}"`);
|
|
3454
|
+
var p = c();
|
|
3455
|
+
for (t in l) l[t].write(p, n[t]);
|
|
3456
|
+
null !== m && m.push(d, p);
|
|
3457
|
+
return p;
|
|
3458
|
+
},
|
|
3459
|
+
argPackAdvance: 8,
|
|
3460
|
+
readValueFromPointer: Zc,
|
|
3461
|
+
ib: d,
|
|
3462
|
+
},
|
|
3463
|
+
];
|
|
3464
|
+
});
|
|
3465
|
+
},
|
|
3466
|
+
K: () => {},
|
|
3467
|
+
da: (a, b, c, d) => {
|
|
3468
|
+
b = V(b);
|
|
3469
|
+
dd(a, {
|
|
3470
|
+
name: b,
|
|
3471
|
+
fromWireType: function (e) {
|
|
3472
|
+
return !!e;
|
|
3473
|
+
},
|
|
3474
|
+
toWireType: function (e, f) {
|
|
3475
|
+
return f ? c : d;
|
|
3476
|
+
},
|
|
3477
|
+
argPackAdvance: 8,
|
|
3478
|
+
readValueFromPointer: function (e) {
|
|
3479
|
+
return this.fromWireType(w()[e]);
|
|
3480
|
+
},
|
|
3481
|
+
ib: null,
|
|
3482
|
+
});
|
|
3483
|
+
},
|
|
3484
|
+
oa: (a, b, c, d, e, f, g, l, m, n, t, p, r) => {
|
|
3485
|
+
t = V(t);
|
|
3486
|
+
f = Kd(e, f);
|
|
3487
|
+
l &&= Kd(g, l);
|
|
3488
|
+
n &&= Kd(m, n);
|
|
3489
|
+
r = Kd(p, r);
|
|
3490
|
+
var k = yd(t);
|
|
3491
|
+
xd(k, function () {
|
|
3492
|
+
Pd(`Cannot construct ${t} due to unbound types`, [d]);
|
|
3493
|
+
});
|
|
3494
|
+
ed([a, b, c], d ? [d] : [], function (q) {
|
|
3495
|
+
q = q[0];
|
|
3496
|
+
if (d) {
|
|
3497
|
+
var v = q.Va;
|
|
3498
|
+
var z = v.zb;
|
|
3499
|
+
} else z = ud.prototype;
|
|
3500
|
+
q = vd(t, function () {
|
|
3501
|
+
if (Object.getPrototypeOf(this) !== L)
|
|
3502
|
+
throw new W("Use 'new' to construct " + t);
|
|
3503
|
+
if (void 0 === J.qb)
|
|
3504
|
+
throw new W(t + " has no accessible constructor");
|
|
3505
|
+
var S = J.qb[arguments.length];
|
|
3506
|
+
if (void 0 === S)
|
|
3507
|
+
throw new W(
|
|
3508
|
+
`Tried to invoke ctor of ${t} with invalid number of parameters (${
|
|
3509
|
+
arguments.length
|
|
3510
|
+
}) - expected (${Object.keys(
|
|
3511
|
+
J.qb,
|
|
3512
|
+
).toString()}) parameters instead!`,
|
|
3513
|
+
);
|
|
3514
|
+
return S.apply(this, arguments);
|
|
3515
|
+
});
|
|
3516
|
+
var L = Object.create(z, { constructor: { value: q } });
|
|
3517
|
+
q.prototype = L;
|
|
3518
|
+
var J = new zd(t, q, L, r, v, f, l, n);
|
|
3519
|
+
if (J.cb) {
|
|
3520
|
+
var y;
|
|
3521
|
+
(y = J.cb).ic ?? (y.ic = []);
|
|
3522
|
+
J.cb.ic.push(J);
|
|
3523
|
+
}
|
|
3524
|
+
v = new Hd(t, J, !0, !1, !1);
|
|
3525
|
+
y = new Hd(t + "*", J, !1, !1, !1);
|
|
3526
|
+
z = new Hd(t + " const*", J, !1, !0, !1);
|
|
3527
|
+
md[a] = { pointerType: y, Oc: z };
|
|
3528
|
+
Id(k, q);
|
|
3529
|
+
return [v, y, z];
|
|
3530
|
+
});
|
|
3531
|
+
},
|
|
3532
|
+
na: (a, b, c, d, e, f) => {
|
|
3533
|
+
var g = Qd(b, c);
|
|
3534
|
+
e = Kd(d, e);
|
|
3535
|
+
ed([], [a], function (l) {
|
|
3536
|
+
l = l[0];
|
|
3537
|
+
var m = `constructor ${l.name}`;
|
|
3538
|
+
void 0 === l.Va.qb && (l.Va.qb = []);
|
|
3539
|
+
if (void 0 !== l.Va.qb[b - 1])
|
|
3540
|
+
throw new W(
|
|
3541
|
+
`Cannot register multiple constructors with identical number of parameters (${
|
|
3542
|
+
b - 1
|
|
3543
|
+
}) for class '${
|
|
3544
|
+
l.name
|
|
3545
|
+
}'! Overload resolution is currently only performed using the parameter count, not actual type info!`,
|
|
3546
|
+
);
|
|
3547
|
+
l.Va.qb[b - 1] = () => {
|
|
3548
|
+
Pd(`Cannot construct ${l.name} due to unbound types`, g);
|
|
3549
|
+
};
|
|
3550
|
+
ed([], g, (n) => {
|
|
3551
|
+
n.splice(1, 0, null);
|
|
3552
|
+
l.Va.qb[b - 1] = Sd(m, n, null, e, f);
|
|
3553
|
+
return [];
|
|
3554
|
+
});
|
|
3555
|
+
return [];
|
|
3556
|
+
});
|
|
3557
|
+
},
|
|
3558
|
+
j: (a, b, c, d, e, f, g, l) => {
|
|
3559
|
+
var m = Qd(c, d);
|
|
3560
|
+
b = V(b);
|
|
3561
|
+
b = Td(b);
|
|
3562
|
+
f = Kd(e, f);
|
|
3563
|
+
ed([], [a], function (n) {
|
|
3564
|
+
function t() {
|
|
3565
|
+
Pd(`Cannot call ${p} due to unbound types`, m);
|
|
3566
|
+
}
|
|
3567
|
+
n = n[0];
|
|
3568
|
+
var p = `${n.name}.${b}`;
|
|
3569
|
+
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
3570
|
+
l && n.Va.fd.push(b);
|
|
3571
|
+
var r = n.Va.zb,
|
|
3572
|
+
k = r[b];
|
|
3573
|
+
void 0 === k ||
|
|
3574
|
+
(void 0 === k.ab && k.className !== n.name && k.Kb === c - 2)
|
|
3575
|
+
? ((t.Kb = c - 2), (t.className = n.name), (r[b] = t))
|
|
3576
|
+
: (wd(r, b, p), (r[b].ab[c - 2] = t));
|
|
3577
|
+
ed([], m, function (q) {
|
|
3578
|
+
q = Sd(p, q, n, f, g);
|
|
3579
|
+
void 0 === r[b].ab
|
|
3580
|
+
? ((q.Kb = c - 2), (r[b] = q))
|
|
3581
|
+
: (r[b].ab[c - 2] = q);
|
|
3582
|
+
return [];
|
|
3583
|
+
});
|
|
3584
|
+
return [];
|
|
3585
|
+
});
|
|
3586
|
+
},
|
|
3587
|
+
ca: (a) => dd(a, Xd),
|
|
3588
|
+
v: (a, b, c) => {
|
|
3589
|
+
b = V(b);
|
|
3590
|
+
dd(a, {
|
|
3591
|
+
name: b,
|
|
3592
|
+
fromWireType: (d) => d,
|
|
3593
|
+
toWireType: (d, e) => e,
|
|
3594
|
+
argPackAdvance: 8,
|
|
3595
|
+
readValueFromPointer: Yd(b, c),
|
|
3596
|
+
ib: null,
|
|
3597
|
+
});
|
|
3598
|
+
},
|
|
3599
|
+
n: (a, b, c, d, e, f) => {
|
|
3600
|
+
var g = Qd(b, c);
|
|
3601
|
+
a = V(a);
|
|
3602
|
+
a = Td(a);
|
|
3603
|
+
e = Kd(d, e);
|
|
3604
|
+
xd(
|
|
3605
|
+
a,
|
|
3606
|
+
function () {
|
|
3607
|
+
Pd(`Cannot call ${a} due to unbound types`, g);
|
|
3608
|
+
},
|
|
3609
|
+
b - 1,
|
|
3610
|
+
);
|
|
3611
|
+
ed([], g, function (l) {
|
|
3612
|
+
Id(a, Sd(a, [l[0], null].concat(l.slice(1)), null, e, f), b - 1);
|
|
3613
|
+
return [];
|
|
3614
|
+
});
|
|
3615
|
+
},
|
|
3616
|
+
g: (a, b, c, d, e) => {
|
|
3617
|
+
b = V(b);
|
|
3618
|
+
-1 === e && (e = 4294967295);
|
|
3619
|
+
e = (l) => l;
|
|
3620
|
+
if (0 === d) {
|
|
3621
|
+
var f = 32 - 8 * c;
|
|
3622
|
+
e = (l) => (l << f) >>> f;
|
|
3623
|
+
}
|
|
3624
|
+
var g = b.includes("unsigned")
|
|
3625
|
+
? function (l, m) {
|
|
3626
|
+
return m >>> 0;
|
|
3627
|
+
}
|
|
3628
|
+
: function (l, m) {
|
|
3629
|
+
return m;
|
|
3630
|
+
};
|
|
3631
|
+
dd(a, {
|
|
3632
|
+
name: b,
|
|
3633
|
+
fromWireType: e,
|
|
3634
|
+
toWireType: g,
|
|
3635
|
+
argPackAdvance: 8,
|
|
3636
|
+
readValueFromPointer: Zd(b, c, 0 !== d),
|
|
3637
|
+
ib: null,
|
|
3638
|
+
});
|
|
3639
|
+
},
|
|
3640
|
+
d: (a, b, c) => {
|
|
3641
|
+
function d(f) {
|
|
3642
|
+
var g = B()[f >> 2];
|
|
3643
|
+
f = B()[(f + 4) >> 2];
|
|
3644
|
+
return new e(h().buffer, f, g);
|
|
3645
|
+
}
|
|
3646
|
+
var e = [
|
|
3647
|
+
Int8Array,
|
|
3648
|
+
Uint8Array,
|
|
3649
|
+
Int16Array,
|
|
3650
|
+
Uint16Array,
|
|
3651
|
+
Int32Array,
|
|
3652
|
+
Uint32Array,
|
|
3653
|
+
Float32Array,
|
|
3654
|
+
Float64Array,
|
|
3655
|
+
][b];
|
|
3656
|
+
c = V(c);
|
|
3657
|
+
dd(
|
|
3658
|
+
a,
|
|
3659
|
+
{
|
|
3660
|
+
name: c,
|
|
3661
|
+
fromWireType: d,
|
|
3662
|
+
argPackAdvance: 8,
|
|
3663
|
+
readValueFromPointer: d,
|
|
3664
|
+
},
|
|
3665
|
+
{ Zc: !0 },
|
|
3666
|
+
);
|
|
3667
|
+
},
|
|
3668
|
+
w: (a, b) => {
|
|
3669
|
+
b = V(b);
|
|
3670
|
+
var c = "std::string" === b;
|
|
3671
|
+
dd(a, {
|
|
3672
|
+
name: b,
|
|
3673
|
+
fromWireType: function (d) {
|
|
3674
|
+
var e = B()[d >> 2],
|
|
3675
|
+
f = d + 4;
|
|
3676
|
+
if (c)
|
|
3677
|
+
for (var g = f, l = 0; l <= e; ++l) {
|
|
3678
|
+
var m = f + l;
|
|
3679
|
+
if (l == e || 0 == w()[m]) {
|
|
3680
|
+
g = K(g, m - g);
|
|
3681
|
+
if (void 0 === n) var n = g;
|
|
3682
|
+
else (n += String.fromCharCode(0)), (n += g);
|
|
3683
|
+
g = m + 1;
|
|
3684
|
+
}
|
|
3685
|
+
}
|
|
3686
|
+
else {
|
|
3687
|
+
n = Array(e);
|
|
3688
|
+
for (l = 0; l < e; ++l) n[l] = String.fromCharCode(w()[f + l]);
|
|
3689
|
+
n = n.join("");
|
|
3690
|
+
}
|
|
3691
|
+
Nd(d);
|
|
3692
|
+
return n;
|
|
3693
|
+
},
|
|
3694
|
+
toWireType: function (d, e) {
|
|
3695
|
+
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
3696
|
+
var f = "string" == typeof e;
|
|
3697
|
+
if (
|
|
3698
|
+
!(
|
|
3699
|
+
f ||
|
|
3700
|
+
e instanceof Uint8Array ||
|
|
3701
|
+
e instanceof Uint8ClampedArray ||
|
|
3702
|
+
e instanceof Int8Array
|
|
3703
|
+
)
|
|
3704
|
+
)
|
|
3705
|
+
throw new W("Cannot pass non-string to std::string");
|
|
3706
|
+
var g = c && f ? Qb(e) : e.length;
|
|
3707
|
+
var l = ye(4 + g + 1),
|
|
3708
|
+
m = l + 4;
|
|
3709
|
+
B()[l >> 2] = g;
|
|
3710
|
+
if (c && f) (g += 1), P(e, w(), m, g);
|
|
3711
|
+
else if (f)
|
|
3712
|
+
for (f = 0; f < g; ++f) {
|
|
3713
|
+
var n = e.charCodeAt(f);
|
|
3714
|
+
if (255 < n)
|
|
3715
|
+
throw (
|
|
3716
|
+
(Nd(m),
|
|
3717
|
+
new W(
|
|
3718
|
+
"String has UTF-16 code units that do not fit in 8 bits",
|
|
3719
|
+
))
|
|
3720
|
+
);
|
|
3721
|
+
w()[m + f] = n;
|
|
3722
|
+
}
|
|
3723
|
+
else for (f = 0; f < g; ++f) w()[m + f] = e[f];
|
|
3724
|
+
null !== d && d.push(Nd, l);
|
|
3725
|
+
return l;
|
|
3726
|
+
},
|
|
3727
|
+
argPackAdvance: 8,
|
|
3728
|
+
readValueFromPointer: Gd,
|
|
3729
|
+
ib(d) {
|
|
3730
|
+
Nd(d);
|
|
3731
|
+
},
|
|
3732
|
+
});
|
|
3733
|
+
},
|
|
3734
|
+
m: (a, b, c) => {
|
|
3735
|
+
c = V(c);
|
|
3736
|
+
if (2 === b) {
|
|
3737
|
+
var d = ae;
|
|
3738
|
+
var e = be;
|
|
3739
|
+
var f = ce;
|
|
3740
|
+
var g = () => x();
|
|
3741
|
+
var l = 1;
|
|
3742
|
+
} else
|
|
3743
|
+
4 === b && ((d = de), (e = ee), (f = fe), (g = () => B()), (l = 2));
|
|
3744
|
+
dd(a, {
|
|
3745
|
+
name: c,
|
|
3746
|
+
fromWireType: (m) => {
|
|
3747
|
+
for (
|
|
3748
|
+
var n = B()[m >> 2], t = g(), p, r = m + 4, k = 0;
|
|
3749
|
+
k <= n;
|
|
3750
|
+
++k
|
|
3751
|
+
) {
|
|
3752
|
+
var q = m + 4 + k * b;
|
|
3753
|
+
if (k == n || 0 == t[q >> l])
|
|
3754
|
+
(r = d(r, q - r)),
|
|
3755
|
+
void 0 === p
|
|
3756
|
+
? (p = r)
|
|
3757
|
+
: ((p += String.fromCharCode(0)), (p += r)),
|
|
3758
|
+
(r = q + b);
|
|
3759
|
+
}
|
|
3760
|
+
Nd(m);
|
|
3761
|
+
return p;
|
|
3762
|
+
},
|
|
3763
|
+
toWireType: (m, n) => {
|
|
3764
|
+
if ("string" != typeof n)
|
|
3765
|
+
throw new W(`Cannot pass non-string to C++ string type ${c}`);
|
|
3766
|
+
var t = f(n),
|
|
3767
|
+
p = ye(4 + t + b);
|
|
3768
|
+
B()[p >> 2] = t >> l;
|
|
3769
|
+
e(n, p + 4, t + b);
|
|
3770
|
+
null !== m && m.push(Nd, p);
|
|
3771
|
+
return p;
|
|
3772
|
+
},
|
|
3773
|
+
argPackAdvance: 8,
|
|
3774
|
+
readValueFromPointer: Zc,
|
|
3775
|
+
ib(m) {
|
|
3776
|
+
Nd(m);
|
|
3777
|
+
},
|
|
3778
|
+
});
|
|
3779
|
+
},
|
|
3780
|
+
f: (a, b, c, d, e, f) => {
|
|
3781
|
+
Xc[a] = { name: V(b), dc: Kd(c, d), mb: Kd(e, f), nc: [] };
|
|
3782
|
+
},
|
|
3783
|
+
c: (a, b, c, d, e, f, g, l, m, n) => {
|
|
3784
|
+
Xc[a].nc.push({
|
|
3785
|
+
Tc: V(b),
|
|
3786
|
+
Xc: c,
|
|
3787
|
+
Ob: Kd(d, e),
|
|
3788
|
+
Wc: f,
|
|
3789
|
+
ld: g,
|
|
3790
|
+
kd: Kd(l, m),
|
|
3791
|
+
md: n,
|
|
3792
|
+
});
|
|
3793
|
+
},
|
|
3794
|
+
ea: (a, b) => {
|
|
3795
|
+
b = V(b);
|
|
3796
|
+
dd(a, {
|
|
3797
|
+
Hd: !0,
|
|
3798
|
+
name: b,
|
|
3799
|
+
argPackAdvance: 0,
|
|
3800
|
+
fromWireType: () => {},
|
|
3801
|
+
toWireType: () => {},
|
|
3802
|
+
});
|
|
3803
|
+
},
|
|
3804
|
+
fa: function (a) {
|
|
3805
|
+
if (Ce.has(a)) {
|
|
3806
|
+
var b = Ce.get(a),
|
|
3807
|
+
c = Ce;
|
|
3808
|
+
c.bb[a] = void 0;
|
|
3809
|
+
c.Zb.push(a);
|
|
3810
|
+
0 < b.readyState && 4 > b.readyState && b.abort();
|
|
3811
|
+
}
|
|
3812
|
+
},
|
|
3813
|
+
aa: () => 1,
|
|
3814
|
+
P: (a, b) => {
|
|
3815
|
+
a == b
|
|
3816
|
+
? setTimeout(yb)
|
|
3817
|
+
: F
|
|
3818
|
+
? postMessage({ targetThread: a, cmd: "checkMailbox" })
|
|
3819
|
+
: (a = M.lb[a]) && a.postMessage({ cmd: "checkMailbox" });
|
|
3820
|
+
},
|
|
3821
|
+
R: (a, b, c, d) => {
|
|
3822
|
+
je.length = c;
|
|
3823
|
+
d >>= 3;
|
|
3824
|
+
for (var e = 0; e < c; e++) je[e] = ja()[d + e];
|
|
3825
|
+
a = 0 > a ? ab[-a - 1] : Xe[a];
|
|
3826
|
+
M.Qc = b;
|
|
3827
|
+
b = a.apply(null, je);
|
|
3828
|
+
M.Qc = 0;
|
|
3829
|
+
return b;
|
|
3830
|
+
},
|
|
3831
|
+
S: he,
|
|
3832
|
+
$: () => {},
|
|
3833
|
+
l: (a, b, c) => {
|
|
3834
|
+
a = Wd(a);
|
|
3835
|
+
b = ke(b, "emval::as");
|
|
3836
|
+
return le(b, c, a);
|
|
3837
|
+
},
|
|
3838
|
+
o: (a, b, c, d) => {
|
|
3839
|
+
a = me[a];
|
|
3840
|
+
b = Wd(b);
|
|
3841
|
+
return a(null, b, c, d);
|
|
3842
|
+
},
|
|
3843
|
+
ka: (a, b, c, d, e) => {
|
|
3844
|
+
a = me[a];
|
|
3845
|
+
b = Wd(b);
|
|
3846
|
+
c = oe(c);
|
|
3847
|
+
return a(b, b[c], d, e);
|
|
3848
|
+
},
|
|
3849
|
+
E: Vd,
|
|
3850
|
+
ja: (a) => {
|
|
3851
|
+
if (0 === a) return Ed(pe());
|
|
3852
|
+
a = oe(a);
|
|
3853
|
+
return Ed(pe()[a]);
|
|
3854
|
+
},
|
|
3855
|
+
p: (a, b, c) => {
|
|
3856
|
+
var d = re(a, b),
|
|
3857
|
+
e = d.shift();
|
|
3858
|
+
a--;
|
|
3859
|
+
var f = Array(a);
|
|
3860
|
+
b = `methodCaller<(${d.map((g) => g.name).join(", ")}) => ${e.name}>`;
|
|
3861
|
+
return qe(
|
|
3862
|
+
vd(b, (g, l, m, n) => {
|
|
3863
|
+
for (var t = 0, p = 0; p < a; ++p)
|
|
3864
|
+
(f[p] = d[p].readValueFromPointer(n + t)),
|
|
3865
|
+
(t += d[p].argPackAdvance);
|
|
3866
|
+
g = 1 === c ? se(l, f) : l.apply(g, f);
|
|
3867
|
+
return le(e, m, g);
|
|
3868
|
+
}),
|
|
3869
|
+
);
|
|
3870
|
+
},
|
|
3871
|
+
A: (a, b) => {
|
|
3872
|
+
a = Wd(a);
|
|
3873
|
+
b = Wd(b);
|
|
3874
|
+
return Ed(a[b]);
|
|
3875
|
+
},
|
|
3876
|
+
k: (a) => {
|
|
3877
|
+
4 < a && (X.get(a).xc += 1);
|
|
3878
|
+
},
|
|
3879
|
+
D: () => Ed([]),
|
|
3880
|
+
la: (a) => Ed(oe(a)),
|
|
3881
|
+
ma: (a) => {
|
|
3882
|
+
var b = Wd(a);
|
|
3883
|
+
Yc(b);
|
|
3884
|
+
Vd(a);
|
|
3885
|
+
},
|
|
3886
|
+
C: (a, b, c) => {
|
|
3887
|
+
a = Wd(a);
|
|
3888
|
+
b = Wd(b);
|
|
3889
|
+
c = Wd(c);
|
|
3890
|
+
a[b] = c;
|
|
3891
|
+
},
|
|
3892
|
+
i: (a, b) => {
|
|
3893
|
+
a = ke(a, "_emval_take_value");
|
|
3894
|
+
a = a.readValueFromPointer(b);
|
|
3895
|
+
return Ed(a);
|
|
3896
|
+
},
|
|
3897
|
+
H: function (a, b, c) {
|
|
3898
|
+
a = new Date(1e3 * ib(a, b));
|
|
3899
|
+
A()[c >> 2] = a.getSeconds();
|
|
3900
|
+
A()[(c + 4) >> 2] = a.getMinutes();
|
|
3901
|
+
A()[(c + 8) >> 2] = a.getHours();
|
|
3902
|
+
A()[(c + 12) >> 2] = a.getDate();
|
|
3903
|
+
A()[(c + 16) >> 2] = a.getMonth();
|
|
3904
|
+
A()[(c + 20) >> 2] = a.getFullYear() - 1900;
|
|
3905
|
+
A()[(c + 24) >> 2] = a.getDay();
|
|
3906
|
+
b =
|
|
3907
|
+
((te(a.getFullYear()) ? ue : ve)[a.getMonth()] + a.getDate() - 1) |
|
|
3908
|
+
0;
|
|
3909
|
+
A()[(c + 28) >> 2] = b;
|
|
3910
|
+
A()[(c + 36) >> 2] = -(60 * a.getTimezoneOffset());
|
|
3911
|
+
b = new Date(a.getFullYear(), 6, 1).getTimezoneOffset();
|
|
3912
|
+
var d = new Date(a.getFullYear(), 0, 1).getTimezoneOffset();
|
|
3913
|
+
a = (b != d && a.getTimezoneOffset() == Math.min(d, b)) | 0;
|
|
3914
|
+
A()[(c + 32) >> 2] = a;
|
|
3915
|
+
},
|
|
3916
|
+
I: function (a) {
|
|
3917
|
+
var b = new Date(
|
|
3918
|
+
A()[(a + 20) >> 2] + 1900,
|
|
3919
|
+
A()[(a + 16) >> 2],
|
|
3920
|
+
A()[(a + 12) >> 2],
|
|
3921
|
+
A()[(a + 8) >> 2],
|
|
3922
|
+
A()[(a + 4) >> 2],
|
|
3923
|
+
A()[a >> 2],
|
|
3924
|
+
0,
|
|
3925
|
+
),
|
|
3926
|
+
c = A()[(a + 32) >> 2],
|
|
3927
|
+
d = b.getTimezoneOffset(),
|
|
3928
|
+
e = new Date(b.getFullYear(), 6, 1).getTimezoneOffset(),
|
|
3929
|
+
f = new Date(b.getFullYear(), 0, 1).getTimezoneOffset(),
|
|
3930
|
+
g = Math.min(f, e);
|
|
3931
|
+
0 > c
|
|
3932
|
+
? (A()[(a + 32) >> 2] = Number(e != f && g == d))
|
|
3933
|
+
: 0 < c != (g == d) &&
|
|
3934
|
+
((e = Math.max(f, e)),
|
|
3935
|
+
b.setTime(b.getTime() + 6e4 * ((0 < c ? g : e) - d)));
|
|
3936
|
+
A()[(a + 24) >> 2] = b.getDay();
|
|
3937
|
+
c =
|
|
3938
|
+
((te(b.getFullYear()) ? ue : ve)[b.getMonth()] + b.getDate() - 1) |
|
|
3939
|
+
0;
|
|
3940
|
+
A()[(a + 28) >> 2] = c;
|
|
3941
|
+
A()[a >> 2] = b.getSeconds();
|
|
3942
|
+
A()[(a + 4) >> 2] = b.getMinutes();
|
|
3943
|
+
A()[(a + 8) >> 2] = b.getHours();
|
|
3944
|
+
A()[(a + 12) >> 2] = b.getDate();
|
|
3945
|
+
A()[(a + 16) >> 2] = b.getMonth();
|
|
3946
|
+
A()[(a + 20) >> 2] = b.getYear();
|
|
3947
|
+
a = b.getTime();
|
|
3948
|
+
a = isNaN(a) ? -1 : a / 1e3;
|
|
3949
|
+
return (
|
|
3950
|
+
Ze(
|
|
3951
|
+
((G = a),
|
|
3952
|
+
1 <= +Math.abs(G)
|
|
3953
|
+
? 0 < G
|
|
3954
|
+
? +Math.floor(G / 4294967296) >>> 0
|
|
3955
|
+
: ~~+Math.ceil((G - +(~~G >>> 0)) / 4294967296) >>> 0
|
|
3956
|
+
: 0),
|
|
3957
|
+
),
|
|
3958
|
+
a >>> 0
|
|
3959
|
+
);
|
|
3960
|
+
},
|
|
3961
|
+
F: we,
|
|
3962
|
+
G: xe,
|
|
3963
|
+
O: (a, b, c) => {
|
|
3964
|
+
function d(n) {
|
|
3965
|
+
return (n = n.toTimeString().match(/\(([A-Za-z ]+)\)$/))
|
|
3966
|
+
? n[1]
|
|
3967
|
+
: "GMT";
|
|
3968
|
+
}
|
|
3969
|
+
var e = new Date().getFullYear(),
|
|
3970
|
+
f = new Date(e, 0, 1),
|
|
3971
|
+
g = new Date(e, 6, 1);
|
|
3972
|
+
e = f.getTimezoneOffset();
|
|
3973
|
+
var l = g.getTimezoneOffset(),
|
|
3974
|
+
m = Math.max(e, l);
|
|
3975
|
+
B()[a >> 2] = 60 * m;
|
|
3976
|
+
A()[b >> 2] = Number(e != l);
|
|
3977
|
+
a = d(f);
|
|
3978
|
+
b = d(g);
|
|
3979
|
+
a = ze(a);
|
|
3980
|
+
b = ze(b);
|
|
3981
|
+
l < e
|
|
3982
|
+
? ((B()[c >> 2] = a), (B()[(c + 4) >> 2] = b))
|
|
3983
|
+
: ((B()[c >> 2] = b), (B()[(c + 4) >> 2] = a));
|
|
3984
|
+
},
|
|
3985
|
+
b: () => {
|
|
3986
|
+
xa("");
|
|
3987
|
+
},
|
|
3988
|
+
B: function () {
|
|
3989
|
+
var a = D.allowedThreads;
|
|
3990
|
+
return a ? a : navigator.hardwareConcurrency;
|
|
3991
|
+
},
|
|
3992
|
+
z: (a, b, c) => {
|
|
3993
|
+
Ae.length = 0;
|
|
3994
|
+
for (var d; (d = w()[b++]); ) {
|
|
3995
|
+
var e = 105 != d;
|
|
3996
|
+
e &= 112 != d;
|
|
3997
|
+
c += e && c % 8 ? 4 : 0;
|
|
3998
|
+
Ae.push(
|
|
3999
|
+
112 == d ? B()[c >> 2] : 105 == d ? A()[c >> 2] : ja()[c >> 3],
|
|
4000
|
+
);
|
|
4001
|
+
c += e ? 8 : 4;
|
|
4002
|
+
}
|
|
4003
|
+
return ab[a].apply(null, Ae);
|
|
4004
|
+
},
|
|
4005
|
+
r: () => {},
|
|
4006
|
+
ba: () => Date.now(),
|
|
4007
|
+
_: () => {
|
|
4008
|
+
N += 1;
|
|
4009
|
+
throw "unwind";
|
|
4010
|
+
},
|
|
4011
|
+
e: () => performance.timeOrigin + performance.now(),
|
|
4012
|
+
y: () => "undefined" != typeof SharedArrayBuffer,
|
|
4013
|
+
N: (a) => {
|
|
4014
|
+
var b = w().length;
|
|
4015
|
+
a >>>= 0;
|
|
4016
|
+
if (a <= b || 2147483648 < a) return !1;
|
|
4017
|
+
for (var c = 1; 4 >= c; c *= 2) {
|
|
4018
|
+
var d = Math,
|
|
4019
|
+
e = Math.max(a, b + 2097152 / c);
|
|
4020
|
+
a: {
|
|
4021
|
+
d =
|
|
4022
|
+
(d.min.call(
|
|
4023
|
+
d,
|
|
4024
|
+
2147483648,
|
|
4025
|
+
e + ((65536 - (e % 65536)) % 65536),
|
|
4026
|
+
) -
|
|
4027
|
+
u.buffer.byteLength +
|
|
4028
|
+
65535) /
|
|
4029
|
+
65536;
|
|
4030
|
+
try {
|
|
4031
|
+
u.grow(d);
|
|
4032
|
+
ba();
|
|
4033
|
+
var f = 1;
|
|
4034
|
+
break a;
|
|
4035
|
+
} catch (g) {}
|
|
4036
|
+
f = void 0;
|
|
4037
|
+
}
|
|
4038
|
+
if (f) return !0;
|
|
4039
|
+
}
|
|
4040
|
+
return !1;
|
|
4041
|
+
},
|
|
4042
|
+
ga: function (a, b, c, d, e) {
|
|
4043
|
+
function f(I) {
|
|
4044
|
+
r ? I() : ge(I);
|
|
4045
|
+
}
|
|
4046
|
+
N += 1;
|
|
4047
|
+
var g = a + 112,
|
|
4048
|
+
l = B()[(g + 36) >> 2],
|
|
4049
|
+
m = B()[(g + 40) >> 2],
|
|
4050
|
+
n = B()[(g + 44) >> 2],
|
|
4051
|
+
t = B()[(g + 48) >> 2],
|
|
4052
|
+
p = B()[(g + 52) >> 2],
|
|
4053
|
+
r = !!(p & 64),
|
|
4054
|
+
k = (I) => {
|
|
4055
|
+
--N;
|
|
4056
|
+
f(() => {
|
|
4057
|
+
l ? Cb(l)(I) : b?.(I);
|
|
4058
|
+
});
|
|
4059
|
+
},
|
|
4060
|
+
q = (I) => {
|
|
4061
|
+
f(() => {
|
|
4062
|
+
n ? Cb(n)(I) : d?.(I);
|
|
4063
|
+
});
|
|
4064
|
+
},
|
|
4065
|
+
v = (I) => {
|
|
4066
|
+
--N;
|
|
4067
|
+
f(() => {
|
|
4068
|
+
m ? Cb(m)(I) : c?.(I);
|
|
4069
|
+
});
|
|
4070
|
+
},
|
|
4071
|
+
z = (I) => {
|
|
4072
|
+
f(() => {
|
|
4073
|
+
t ? Cb(t)(I) : e?.(I);
|
|
4074
|
+
});
|
|
4075
|
+
},
|
|
4076
|
+
L = (I) => {
|
|
4077
|
+
Ee(I, k, v, q, z);
|
|
4078
|
+
},
|
|
4079
|
+
J = (I, bf) => {
|
|
4080
|
+
Fe(
|
|
4081
|
+
I,
|
|
4082
|
+
bf.response,
|
|
4083
|
+
(Va) => {
|
|
4084
|
+
--N;
|
|
4085
|
+
f(() => {
|
|
4086
|
+
l ? Cb(l)(Va) : b?.(Va);
|
|
4087
|
+
});
|
|
4088
|
+
},
|
|
4089
|
+
(Va) => {
|
|
4090
|
+
--N;
|
|
4091
|
+
f(() => {
|
|
4092
|
+
l ? Cb(l)(Va) : b?.(Va);
|
|
4093
|
+
});
|
|
4094
|
+
},
|
|
4095
|
+
);
|
|
4096
|
+
},
|
|
4097
|
+
y = (I) => {
|
|
4098
|
+
Ee(I, J, v, q, z);
|
|
4099
|
+
},
|
|
4100
|
+
S = K(g + 0),
|
|
4101
|
+
C = !!(p & 16),
|
|
4102
|
+
T = !!(p & 4);
|
|
4103
|
+
p = !!(p & 32);
|
|
4104
|
+
if ("EM_IDB_STORE" === S)
|
|
4105
|
+
(L = B()[(g + 84) >> 2]),
|
|
4106
|
+
(g = B()[(g + 88) >> 2]),
|
|
4107
|
+
Fe(a, w().slice(L, L + g), k, v);
|
|
4108
|
+
else if ("EM_IDB_DELETE" === S) He(a, k, v);
|
|
4109
|
+
else if (C) {
|
|
4110
|
+
if (p) return 0;
|
|
4111
|
+
Ee(a, T ? J : k, v, q, z);
|
|
4112
|
+
} else Ge(a, k, p ? v : T ? y : L);
|
|
4113
|
+
return a;
|
|
4114
|
+
},
|
|
4115
|
+
U: Le,
|
|
4116
|
+
V: Me,
|
|
4117
|
+
x: sb,
|
|
4118
|
+
u: Ne,
|
|
4119
|
+
t: Oe,
|
|
4120
|
+
J: Pe,
|
|
4121
|
+
s: Qe,
|
|
4122
|
+
ha: function () {
|
|
4123
|
+
var a = stackTrace(),
|
|
4124
|
+
b = Qb(a) + 1,
|
|
4125
|
+
c = ye(b);
|
|
4126
|
+
P(a, w(), c, b);
|
|
4127
|
+
return c;
|
|
4128
|
+
},
|
|
4129
|
+
L: (a, b) => {
|
|
4130
|
+
Lb(w().subarray(a, a + b));
|
|
4131
|
+
return 0;
|
|
4132
|
+
},
|
|
4133
|
+
a: u || D.wasmMemory,
|
|
4134
|
+
ia: Ue,
|
|
4135
|
+
M: (a, b, c, d) => Ue(a, b, c, d),
|
|
4136
|
+
},
|
|
4137
|
+
Z = (function () {
|
|
4138
|
+
function a(c, d) {
|
|
4139
|
+
Z = c.exports;
|
|
4140
|
+
M.Fc.push(Z.ua);
|
|
4141
|
+
Bb = Z.ya;
|
|
4142
|
+
Ea.unshift(Z.pa);
|
|
4143
|
+
ya = d;
|
|
4144
|
+
Ta("wasm-instantiate");
|
|
4145
|
+
return Z;
|
|
4146
|
+
}
|
|
4147
|
+
var b = { a: $e };
|
|
4148
|
+
Sa("wasm-instantiate");
|
|
4149
|
+
if (D.instantiateWasm)
|
|
4150
|
+
try {
|
|
4151
|
+
return D.instantiateWasm(b, a);
|
|
4152
|
+
} catch (c) {
|
|
4153
|
+
E(`Module.instantiateWasm callback failed with error: ${c}`), ma(c);
|
|
4154
|
+
}
|
|
4155
|
+
$a(b, function (c) {
|
|
4156
|
+
a(c.instance, c.module);
|
|
4157
|
+
}).catch(ma);
|
|
4158
|
+
return {};
|
|
4159
|
+
})(),
|
|
4160
|
+
Nd = (a) => (Nd = Z.qa)(a),
|
|
4161
|
+
ye = (a) => (ye = Z.ra)(a),
|
|
4162
|
+
xb = (D._pthread_self = () => (xb = D._pthread_self = Z.sa)()),
|
|
4163
|
+
pb = (a) => (pb = Z.ta)(a);
|
|
4164
|
+
D.__emscripten_tls_init = () => (D.__emscripten_tls_init = Z.ua)();
|
|
4165
|
+
var Yb = (a, b) => (Yb = Z.va)(a, b),
|
|
4166
|
+
Md = (a) => (Md = Z.wa)(a);
|
|
4167
|
+
D.__embind_initialize_bindings = () =>
|
|
4168
|
+
(D.__embind_initialize_bindings = Z.xa)();
|
|
4169
|
+
var ob = () => (ob = Z.za)(),
|
|
4170
|
+
Ye = (D.__emscripten_thread_init = (a, b, c, d, e, f) =>
|
|
4171
|
+
(Ye = D.__emscripten_thread_init = Z.Aa)(a, b, c, d, e, f));
|
|
4172
|
+
D.__emscripten_thread_crashed = () =>
|
|
4173
|
+
(D.__emscripten_thread_crashed = Z.Ba)();
|
|
4174
|
+
var kb = (a, b, c, d) => (kb = Z.Ca)(a, b, c, d),
|
|
4175
|
+
wb = (a) => (wb = Z.Da)(a),
|
|
4176
|
+
Db = (D.__emscripten_thread_exit = (a) =>
|
|
4177
|
+
(Db = D.__emscripten_thread_exit = Z.Ea)(a)),
|
|
4178
|
+
ie = () => (ie = Z.Fa)(),
|
|
4179
|
+
Ze = (a) => (Ze = Z.Ga)(a),
|
|
4180
|
+
zb = (a, b) => (zb = Z.Ha)(a, b),
|
|
4181
|
+
fb = () => (fb = Z.Ia)(),
|
|
4182
|
+
gb = (a) => (gb = Z.Ja)(a),
|
|
4183
|
+
jb = (a) => (jb = Z.Ka)(a);
|
|
4184
|
+
D.dynCall_ji = (a, b) => (D.dynCall_ji = Z.La)(a, b);
|
|
4185
|
+
D.dynCall_jiji = (a, b, c, d, e) => (D.dynCall_jiji = Z.Ma)(a, b, c, d, e);
|
|
4186
|
+
D.dynCall_viijii = (a, b, c, d, e, f, g) =>
|
|
4187
|
+
(D.dynCall_viijii = Z.Na)(a, b, c, d, e, f, g);
|
|
4188
|
+
D.dynCall_iiiiij = (a, b, c, d, e, f, g) =>
|
|
4189
|
+
(D.dynCall_iiiiij = Z.Oa)(a, b, c, d, e, f, g);
|
|
4190
|
+
D.dynCall_iiiiijj = (a, b, c, d, e, f, g, l, m) =>
|
|
4191
|
+
(D.dynCall_iiiiijj = Z.Pa)(a, b, c, d, e, f, g, l, m);
|
|
4192
|
+
D.dynCall_iiiiiijj = (a, b, c, d, e, f, g, l, m, n) =>
|
|
4193
|
+
(D.dynCall_iiiiiijj = Z.Qa)(a, b, c, d, e, f, g, l, m, n);
|
|
4194
|
+
D.__ZN2MB2NN28LinearDefragmentingAllocator10Allocation4nullE = 15072;
|
|
4195
|
+
D.___start_em_js = 61112;
|
|
4196
|
+
D.___stop_em_js = 62105;
|
|
4197
|
+
D.addRunDependency = Sa;
|
|
4198
|
+
D.removeRunDependency = Ta;
|
|
4199
|
+
D.FS_createPath = Lc;
|
|
4200
|
+
D.FS_createLazyFile = Oc;
|
|
4201
|
+
D.FS_createDevice = Ka;
|
|
4202
|
+
D.wasmMemory = u;
|
|
4203
|
+
D.keepRuntimeAlive = () => mb || 0 < N;
|
|
4204
|
+
D.ExitStatus = bb;
|
|
4205
|
+
D.FS_createPreloadedFile = ic;
|
|
4206
|
+
D.FS_createDataFile = hc;
|
|
4207
|
+
D.FS_unlink = Ec;
|
|
4208
|
+
D.PThread = M;
|
|
4209
|
+
var af;
|
|
4210
|
+
Ra = function cf() {
|
|
4211
|
+
af || df();
|
|
4212
|
+
af || (Ra = cf);
|
|
4213
|
+
};
|
|
4214
|
+
function df() {
|
|
4215
|
+
function a() {
|
|
4216
|
+
if (!af && ((af = !0), (D.calledRun = !0), !za)) {
|
|
4217
|
+
Ia();
|
|
4218
|
+
la(D);
|
|
4219
|
+
if (D.onRuntimeInitialized) D.onRuntimeInitialized();
|
|
4220
|
+
if (!F) {
|
|
4221
|
+
if (D.postRun)
|
|
4222
|
+
for (
|
|
4223
|
+
"function" == typeof D.postRun && (D.postRun = [D.postRun]);
|
|
4224
|
+
D.postRun.length;
|
|
4225
|
+
|
|
4226
|
+
) {
|
|
4227
|
+
var b = D.postRun.shift();
|
|
4228
|
+
Ga.unshift(b);
|
|
4229
|
+
}
|
|
4230
|
+
Oa(Ga);
|
|
4231
|
+
}
|
|
4232
|
+
}
|
|
4233
|
+
}
|
|
4234
|
+
if (!(0 < Pa))
|
|
4235
|
+
if (F) la(D), Ia(), startWorker(D);
|
|
4236
|
+
else {
|
|
4237
|
+
if (D.preRun)
|
|
4238
|
+
for (
|
|
4239
|
+
"function" == typeof D.preRun && (D.preRun = [D.preRun]);
|
|
4240
|
+
D.preRun.length;
|
|
4241
|
+
|
|
4242
|
+
)
|
|
4243
|
+
Da.unshift(D.preRun.shift());
|
|
4244
|
+
Oa(Da);
|
|
4245
|
+
0 < Pa ||
|
|
4246
|
+
(D.setStatus
|
|
4247
|
+
? (D.setStatus("Running..."),
|
|
4248
|
+
setTimeout(function () {
|
|
4249
|
+
setTimeout(function () {
|
|
4250
|
+
D.setStatus("");
|
|
4251
|
+
}, 1);
|
|
4252
|
+
a();
|
|
4253
|
+
}, 1))
|
|
4254
|
+
: a());
|
|
4255
|
+
}
|
|
4256
|
+
}
|
|
4257
|
+
if (D.preInit)
|
|
4258
|
+
for (
|
|
4259
|
+
"function" == typeof D.preInit && (D.preInit = [D.preInit]);
|
|
4260
|
+
0 < D.preInit.length;
|
|
173
4261
|
|
|
4262
|
+
)
|
|
4263
|
+
D.preInit.pop()();
|
|
4264
|
+
df();
|
|
4265
|
+
if ("object" == typeof window && ("undefined" == typeof F || !F)) {
|
|
4266
|
+
var ef = () => {
|
|
4267
|
+
var a = 0,
|
|
4268
|
+
b = !1,
|
|
4269
|
+
c = (m) => {
|
|
4270
|
+
var n = new XMLHttpRequest();
|
|
4271
|
+
n.open("POST", "stdio.html", !1);
|
|
4272
|
+
n.send(m);
|
|
4273
|
+
try {
|
|
4274
|
+
window.close();
|
|
4275
|
+
} catch (t) {}
|
|
4276
|
+
},
|
|
4277
|
+
d = (m) => {
|
|
4278
|
+
var n = new XMLHttpRequest();
|
|
4279
|
+
++a;
|
|
4280
|
+
n.onreadystatechange = () => {
|
|
4281
|
+
4 == n.readyState && 0 == --a && b && c("^exit^" + Aa);
|
|
4282
|
+
};
|
|
4283
|
+
n.open("POST", "stdio.html", !0);
|
|
4284
|
+
n.send(m);
|
|
4285
|
+
};
|
|
4286
|
+
if (
|
|
4287
|
+
-1 != document.URL.search("localhost") ||
|
|
4288
|
+
-1 != document.URL.search(":6931/")
|
|
4289
|
+
) {
|
|
4290
|
+
var e = 1,
|
|
4291
|
+
f = va,
|
|
4292
|
+
g = E;
|
|
4293
|
+
Fa.unshift(() => {
|
|
4294
|
+
0 == a ? c("^exit^" + Aa) : (b = !0);
|
|
4295
|
+
});
|
|
4296
|
+
va = (m) => {
|
|
4297
|
+
d("^out^" + e++ + "^" + encodeURIComponent(m));
|
|
4298
|
+
f(m);
|
|
4299
|
+
};
|
|
4300
|
+
E = (m) => {
|
|
4301
|
+
d("^err^" + e++ + "^" + encodeURIComponent(m));
|
|
4302
|
+
g(m);
|
|
4303
|
+
};
|
|
4304
|
+
var l = () => {
|
|
4305
|
+
try {
|
|
4306
|
+
d("^pageload^");
|
|
4307
|
+
} catch (m) {
|
|
4308
|
+
setTimeout(l, 50);
|
|
4309
|
+
}
|
|
4310
|
+
};
|
|
4311
|
+
l();
|
|
4312
|
+
}
|
|
4313
|
+
};
|
|
4314
|
+
"undefined" != typeof document && ef();
|
|
4315
|
+
}
|
|
174
4316
|
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
);
|
|
4317
|
+
return moduleArg.ready;
|
|
4318
|
+
};
|
|
178
4319
|
})();
|
|
179
|
-
if (typeof exports ===
|
|
4320
|
+
if (typeof exports === "object" && typeof module === "object")
|
|
180
4321
|
module.exports = createModule;
|
|
181
|
-
else if (typeof define ===
|
|
4322
|
+
else if (typeof define === "function" && define["amd"])
|
|
182
4323
|
define([], () => createModule);
|