barcode-detector 3.0.1 → 3.0.2
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/cjs/barcode-detector.png +0 -0
- package/dist/cjs/ponyfill.js +1 -2
- package/dist/es/barcode-detector.png +0 -0
- package/dist/es/ponyfill.js +1699 -1725
- package/dist/iife/barcode-detector.png +0 -0
- package/dist/iife/index.js +1 -2
- package/dist/iife/polyfill.js +1 -2
- package/dist/iife/ponyfill.js +1 -2
- package/package.json +22 -21
package/dist/es/ponyfill.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
throw TypeError(
|
|
1
|
+
var Ae = (o) => {
|
|
2
|
+
throw TypeError(o);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
const
|
|
4
|
+
var Se = (o, f, c) => f.has(o) || Ae("Cannot " + c);
|
|
5
|
+
var Ie = (o, f, c) => (Se(o, f, "read from private field"), c ? c.call(o) : f.get(o)), De = (o, f, c) => f.has(o) ? Ae("Cannot add the same private member more than once") : f instanceof WeakSet ? f.add(o) : f.set(o, c), Me = (o, f, c, T) => (Se(o, f, "write to private field"), T ? T.call(o, c) : f.set(o, c), c);
|
|
6
|
+
const Dt = [
|
|
7
7
|
["Aztec", "M"],
|
|
8
8
|
["Codabar", "L"],
|
|
9
9
|
["Code39", "L"],
|
|
@@ -24,44 +24,44 @@ const Bt = [
|
|
|
24
24
|
["rMQRCode", "M"],
|
|
25
25
|
["DXFilmEdge", "L"],
|
|
26
26
|
["DataBarLimited", "L"]
|
|
27
|
-
],
|
|
28
|
-
(
|
|
29
|
-
),
|
|
30
|
-
(
|
|
27
|
+
], Mt = Dt.map(([o]) => o), La = Mt.filter(
|
|
28
|
+
(o, f) => Dt[f][1] === "L"
|
|
29
|
+
), Ba = Mt.filter(
|
|
30
|
+
(o, f) => Dt[f][1] === "M"
|
|
31
31
|
);
|
|
32
|
-
function
|
|
33
|
-
switch (
|
|
32
|
+
function Yt(o) {
|
|
33
|
+
switch (o) {
|
|
34
34
|
case "Linear-Codes":
|
|
35
|
-
return
|
|
35
|
+
return La.reduce((f, c) => f | Yt(c), 0);
|
|
36
36
|
case "Matrix-Codes":
|
|
37
|
-
return
|
|
37
|
+
return Ba.reduce((f, c) => f | Yt(c), 0);
|
|
38
38
|
case "Any":
|
|
39
|
-
return (1 <<
|
|
39
|
+
return (1 << Dt.length) - 1;
|
|
40
40
|
case "None":
|
|
41
41
|
return 0;
|
|
42
42
|
default:
|
|
43
|
-
return 1 <<
|
|
43
|
+
return 1 << Mt.indexOf(o);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
if (
|
|
46
|
+
function Wa(o) {
|
|
47
|
+
if (o === 0)
|
|
48
48
|
return "None";
|
|
49
|
-
const f = 31 - Math.clz32(
|
|
50
|
-
return
|
|
49
|
+
const f = 31 - Math.clz32(o);
|
|
50
|
+
return Mt[f];
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return
|
|
52
|
+
function Ua(o) {
|
|
53
|
+
return o.reduce((f, c) => f | Yt(c), 0);
|
|
54
54
|
}
|
|
55
|
-
const
|
|
55
|
+
const Va = [
|
|
56
56
|
"LocalAverage",
|
|
57
57
|
"GlobalHistogram",
|
|
58
58
|
"FixedThreshold",
|
|
59
59
|
"BoolCast"
|
|
60
60
|
];
|
|
61
|
-
function
|
|
62
|
-
return
|
|
61
|
+
function ka(o) {
|
|
62
|
+
return Va.indexOf(o);
|
|
63
63
|
}
|
|
64
|
-
const
|
|
64
|
+
const Fe = [
|
|
65
65
|
"Unknown",
|
|
66
66
|
"ASCII",
|
|
67
67
|
"ISO8859_1",
|
|
@@ -101,10 +101,10 @@ const Je = [
|
|
|
101
101
|
"UTF32LE",
|
|
102
102
|
"BINARY"
|
|
103
103
|
];
|
|
104
|
-
function
|
|
105
|
-
return
|
|
104
|
+
function Ha(o) {
|
|
105
|
+
return o === "UnicodeBig" ? Fe.indexOf("UTF16BE") : Fe.indexOf(o);
|
|
106
106
|
}
|
|
107
|
-
const
|
|
107
|
+
const Na = [
|
|
108
108
|
"Text",
|
|
109
109
|
"Binary",
|
|
110
110
|
"Mixed",
|
|
@@ -112,18 +112,18 @@ const ri = [
|
|
|
112
112
|
"ISO15434",
|
|
113
113
|
"UnknownECI"
|
|
114
114
|
];
|
|
115
|
-
function
|
|
116
|
-
return
|
|
115
|
+
function za(o) {
|
|
116
|
+
return Na[o];
|
|
117
117
|
}
|
|
118
|
-
const
|
|
119
|
-
function
|
|
120
|
-
return
|
|
118
|
+
const Ga = ["Ignore", "Read", "Require"];
|
|
119
|
+
function Xa(o) {
|
|
120
|
+
return Ga.indexOf(o);
|
|
121
121
|
}
|
|
122
|
-
const
|
|
123
|
-
function
|
|
124
|
-
return
|
|
122
|
+
const qa = ["Plain", "ECI", "HRI", "Hex", "Escaped"];
|
|
123
|
+
function Ya(o) {
|
|
124
|
+
return qa.indexOf(o);
|
|
125
125
|
}
|
|
126
|
-
const
|
|
126
|
+
const It = {
|
|
127
127
|
formats: [],
|
|
128
128
|
tryHarder: !0,
|
|
129
129
|
tryRotate: !0,
|
|
@@ -142,1674 +142,1648 @@ const Lt = {
|
|
|
142
142
|
textMode: "HRI",
|
|
143
143
|
characterSet: "Unknown"
|
|
144
144
|
};
|
|
145
|
-
function
|
|
145
|
+
function Re(o) {
|
|
146
146
|
return {
|
|
147
|
-
...
|
|
148
|
-
formats:
|
|
149
|
-
binarizer:
|
|
150
|
-
eanAddOnSymbol:
|
|
151
|
-
textMode:
|
|
152
|
-
characterSet:
|
|
147
|
+
...o,
|
|
148
|
+
formats: Ua(o.formats),
|
|
149
|
+
binarizer: ka(o.binarizer),
|
|
150
|
+
eanAddOnSymbol: Xa(o.eanAddOnSymbol),
|
|
151
|
+
textMode: Ya(o.textMode),
|
|
152
|
+
characterSet: Ha(o.characterSet)
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Za(o) {
|
|
156
156
|
return {
|
|
157
|
-
...
|
|
158
|
-
format:
|
|
159
|
-
contentType:
|
|
160
|
-
eccLevel:
|
|
157
|
+
...o,
|
|
158
|
+
format: Wa(o.format),
|
|
159
|
+
contentType: za(o.contentType),
|
|
160
|
+
eccLevel: o.ecLevel
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
|
-
const
|
|
164
|
-
locateFile: (
|
|
165
|
-
const
|
|
166
|
-
return
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
function
|
|
170
|
-
return Object.is(
|
|
171
|
-
(
|
|
163
|
+
const $o = "2.1.1", bo = "559471ac8fe0d119db538bb43c0a58ce9e67fccf", Qa = {
|
|
164
|
+
locateFile: (o, f) => {
|
|
165
|
+
const c = o.match(/_(.+?)\.wasm$/);
|
|
166
|
+
return c ? `https://fastly.jsdelivr.net/npm/zxing-wasm@2.1.1/dist/${c[1]}/${o}` : f + o;
|
|
167
|
+
}
|
|
168
|
+
}, St = /* @__PURE__ */ new WeakMap();
|
|
169
|
+
function Ja(o, f) {
|
|
170
|
+
return Object.is(o, f) || Object.keys(o).length === Object.keys(f).length && Object.keys(o).every(
|
|
171
|
+
(c) => Object.prototype.hasOwnProperty.call(f, c) && o[c] === f[c]
|
|
172
172
|
);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Le(o, {
|
|
175
175
|
overrides: f,
|
|
176
|
-
equalityFn:
|
|
176
|
+
equalityFn: c = Ja,
|
|
177
177
|
fireImmediately: T = !1
|
|
178
178
|
} = {}) {
|
|
179
|
-
var
|
|
180
|
-
const [
|
|
181
|
-
let
|
|
179
|
+
var $;
|
|
180
|
+
const [x, D] = ($ = St.get(o)) != null ? $ : [Qa], j = f != null ? f : x;
|
|
181
|
+
let O;
|
|
182
182
|
if (T) {
|
|
183
|
-
if (D && (
|
|
183
|
+
if (D && (O = c(x, j)))
|
|
184
184
|
return D;
|
|
185
|
-
const M =
|
|
186
|
-
...
|
|
185
|
+
const M = o({
|
|
186
|
+
...j
|
|
187
187
|
});
|
|
188
|
-
return
|
|
188
|
+
return St.set(o, [j, M]), M;
|
|
189
189
|
}
|
|
190
|
-
(
|
|
190
|
+
(O != null ? O : c(x, j)) || St.set(o, [j]);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
|
|
192
|
+
function Ka(o) {
|
|
193
|
+
St.delete(o);
|
|
194
194
|
}
|
|
195
|
-
async function
|
|
195
|
+
async function to(o, f, c = It) {
|
|
196
196
|
const T = {
|
|
197
|
-
...
|
|
198
|
-
...
|
|
199
|
-
},
|
|
197
|
+
...It,
|
|
198
|
+
...c
|
|
199
|
+
}, $ = await Le(o, {
|
|
200
200
|
fireImmediately: !0
|
|
201
201
|
});
|
|
202
|
-
let
|
|
202
|
+
let x, D;
|
|
203
203
|
if ("width" in f && "height" in f && "data" in f) {
|
|
204
204
|
const {
|
|
205
|
-
data:
|
|
205
|
+
data: O,
|
|
206
206
|
data: { byteLength: M },
|
|
207
|
-
width:
|
|
208
|
-
height:
|
|
207
|
+
width: F,
|
|
208
|
+
height: q
|
|
209
209
|
} = f;
|
|
210
|
-
D =
|
|
210
|
+
D = $._malloc(M), $.HEAPU8.set(O, D), x = $.readBarcodesFromPixmap(
|
|
211
211
|
D,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
212
|
+
F,
|
|
213
|
+
q,
|
|
214
|
+
Re(T)
|
|
215
215
|
);
|
|
216
216
|
} else {
|
|
217
|
-
let
|
|
217
|
+
let O, M;
|
|
218
218
|
if ("buffer" in f)
|
|
219
|
-
[
|
|
219
|
+
[O, M] = [f.byteLength, f];
|
|
220
220
|
else if ("byteLength" in f)
|
|
221
|
-
[
|
|
221
|
+
[O, M] = [f.byteLength, new Uint8Array(f)];
|
|
222
222
|
else if ("size" in f)
|
|
223
|
-
[
|
|
223
|
+
[O, M] = [f.size, new Uint8Array(await f.arrayBuffer())];
|
|
224
224
|
else
|
|
225
225
|
throw new TypeError("Invalid input type");
|
|
226
|
-
D =
|
|
226
|
+
D = $._malloc(O), $.HEAPU8.set(M, D), x = $.readBarcodesFromImage(
|
|
227
227
|
D,
|
|
228
|
-
|
|
229
|
-
|
|
228
|
+
O,
|
|
229
|
+
Re(T)
|
|
230
230
|
);
|
|
231
231
|
}
|
|
232
|
-
|
|
233
|
-
const
|
|
234
|
-
for (let
|
|
235
|
-
|
|
236
|
-
|
|
232
|
+
$._free(D);
|
|
233
|
+
const j = [];
|
|
234
|
+
for (let O = 0; O < x.size(); ++O)
|
|
235
|
+
j.push(
|
|
236
|
+
Za(x.get(O))
|
|
237
237
|
);
|
|
238
|
-
return
|
|
238
|
+
return j;
|
|
239
239
|
}
|
|
240
240
|
({
|
|
241
|
-
...
|
|
242
|
-
formats: [...
|
|
241
|
+
...It,
|
|
242
|
+
formats: [...It.formats]
|
|
243
243
|
});
|
|
244
|
-
var
|
|
245
|
-
var
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
var
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
244
|
+
var Qt = async function(o = {}) {
|
|
245
|
+
var f, c = o, T, $, x = new Promise((e, t) => {
|
|
246
|
+
T = e, $ = t;
|
|
247
|
+
}), D = typeof window == "object", j = typeof Bun < "u", O = typeof WorkerGlobalScope < "u";
|
|
248
|
+
typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && process.type != "renderer";
|
|
249
|
+
var M = "./this.program", F = "";
|
|
250
|
+
function q(e) {
|
|
251
|
+
return c.locateFile ? c.locateFile(e, F) : F + e;
|
|
252
|
+
}
|
|
253
|
+
var rt, Y;
|
|
254
|
+
(D || O || j) && (O ? F = self.location.href : typeof document < "u" && document.currentScript && (F = document.currentScript.src), F.startsWith("blob:") ? F = "" : F = F.slice(0, F.replace(/[?#].*/, "").lastIndexOf("/") + 1), O && (Y = (e) => {
|
|
255
|
+
var t = new XMLHttpRequest();
|
|
256
|
+
return t.open("GET", e, !1), t.responseType = "arraybuffer", t.send(null), new Uint8Array(t.response);
|
|
257
|
+
}), rt = async (e) => {
|
|
258
|
+
var t = await fetch(e, {
|
|
259
|
+
credentials: "same-origin"
|
|
260
|
+
});
|
|
261
|
+
if (t.ok)
|
|
262
|
+
return t.arrayBuffer();
|
|
263
|
+
throw new Error(t.status + " : " + t.url);
|
|
264
|
+
});
|
|
265
|
+
var st = console.log.bind(console), k = console.error.bind(console), Z, nt, Jt = !1, Q, B, ut, vt, at, P, Kt, te;
|
|
266
|
+
function ee() {
|
|
267
|
+
var e = nt.buffer;
|
|
268
|
+
Q = new Int8Array(e), ut = new Int16Array(e), c.HEAPU8 = B = new Uint8Array(e), vt = new Uint16Array(e), at = new Int32Array(e), P = new Uint32Array(e), Kt = new Float32Array(e), te = new Float64Array(e);
|
|
269
|
+
}
|
|
270
|
+
function qe() {
|
|
271
|
+
if (c.preRun)
|
|
272
|
+
for (typeof c.preRun == "function" && (c.preRun = [c.preRun]); c.preRun.length; )
|
|
273
|
+
sr(c.preRun.shift());
|
|
274
|
+
re(ae);
|
|
275
|
+
}
|
|
276
|
+
function Ye() {
|
|
277
|
+
E.ya();
|
|
278
|
+
}
|
|
279
|
+
function Ze() {
|
|
280
|
+
if (c.postRun)
|
|
281
|
+
for (typeof c.postRun == "function" && (c.postRun = [c.postRun]); c.postRun.length; )
|
|
282
|
+
ir(c.postRun.shift());
|
|
283
|
+
re(ne);
|
|
284
|
+
}
|
|
285
|
+
var J = 0, ct = null;
|
|
286
|
+
function Qe(e) {
|
|
287
|
+
var t;
|
|
288
|
+
J++, (t = c.monitorRunDependencies) === null || t === void 0 || t.call(c, J);
|
|
289
|
+
}
|
|
290
|
+
function Je(e) {
|
|
291
|
+
var t;
|
|
292
|
+
if (J--, (t = c.monitorRunDependencies) === null || t === void 0 || t.call(c, J), J == 0 && ct) {
|
|
293
|
+
var r = ct;
|
|
294
|
+
ct = null, r();
|
|
269
295
|
}
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
var
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
}
|
|
299
|
-
function gr(t) {
|
|
300
|
-
fe.unshift(t);
|
|
301
|
-
}
|
|
302
|
-
var Y = 0, ct = null;
|
|
303
|
-
function wr(t) {
|
|
304
|
-
var e;
|
|
305
|
-
Y++, (e = c.monitorRunDependencies) === null || e === void 0 || e.call(c, Y);
|
|
306
|
-
}
|
|
307
|
-
function $r(t) {
|
|
308
|
-
var e;
|
|
309
|
-
if (Y--, (e = c.monitorRunDependencies) === null || e === void 0 || e.call(c, Y), Y == 0 && ct) {
|
|
310
|
-
var r = ct;
|
|
311
|
-
ct = null, r();
|
|
296
|
+
}
|
|
297
|
+
function Ft(e) {
|
|
298
|
+
var t;
|
|
299
|
+
(t = c.onAbort) === null || t === void 0 || t.call(c, e), e = "Aborted(" + e + ")", k(e), Jt = !0, e += ". Build with -sASSERTIONS for more info.";
|
|
300
|
+
var r = new WebAssembly.RuntimeError(e);
|
|
301
|
+
throw $(r), r;
|
|
302
|
+
}
|
|
303
|
+
var yt;
|
|
304
|
+
function Ke() {
|
|
305
|
+
return c.locateFile ? q("zxing_reader.wasm") : new URL(
|
|
306
|
+
/* @vite-ignore */
|
|
307
|
+
"../../reader/zxing_reader.wasm",
|
|
308
|
+
import.meta.url
|
|
309
|
+
).href;
|
|
310
|
+
}
|
|
311
|
+
function tr(e) {
|
|
312
|
+
if (e == yt && Z)
|
|
313
|
+
return new Uint8Array(Z);
|
|
314
|
+
if (Y)
|
|
315
|
+
return Y(e);
|
|
316
|
+
throw "both async and sync fetching of the wasm failed";
|
|
317
|
+
}
|
|
318
|
+
async function er(e) {
|
|
319
|
+
if (!Z)
|
|
320
|
+
try {
|
|
321
|
+
var t = await rt(e);
|
|
322
|
+
return new Uint8Array(t);
|
|
323
|
+
} catch {
|
|
312
324
|
}
|
|
325
|
+
return tr(e);
|
|
326
|
+
}
|
|
327
|
+
async function rr(e, t) {
|
|
328
|
+
try {
|
|
329
|
+
var r = await er(e), n = await WebAssembly.instantiate(r, t);
|
|
330
|
+
return n;
|
|
331
|
+
} catch (a) {
|
|
332
|
+
k(`failed to asynchronously prepare wasm: ${a}`), Ft(a);
|
|
313
333
|
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
var r = new WebAssembly.RuntimeError(t);
|
|
318
|
-
throw D(r), r;
|
|
319
|
-
}
|
|
320
|
-
var br = "data:application/octet-stream;base64,", de = (t) => t.startsWith(br);
|
|
321
|
-
function Cr() {
|
|
322
|
-
var t = "zxing_reader.wasm";
|
|
323
|
-
return de(t) ? t : yt(t);
|
|
324
|
-
}
|
|
325
|
-
var wt;
|
|
326
|
-
function Tr(t) {
|
|
327
|
-
if (t == wt && vt)
|
|
328
|
-
return new Uint8Array(vt);
|
|
329
|
-
if (ot)
|
|
330
|
-
return ot(t);
|
|
331
|
-
throw "both async and sync fetching of the wasm failed";
|
|
332
|
-
}
|
|
333
|
-
async function Pr(t) {
|
|
334
|
-
if (!vt)
|
|
335
|
-
try {
|
|
336
|
-
var e = await it(t);
|
|
337
|
-
return new Uint8Array(e);
|
|
338
|
-
} catch {
|
|
339
|
-
}
|
|
340
|
-
return Tr(t);
|
|
341
|
-
}
|
|
342
|
-
async function _r(t, e) {
|
|
334
|
+
}
|
|
335
|
+
async function nr(e, t, r) {
|
|
336
|
+
if (!e && typeof WebAssembly.instantiateStreaming == "function")
|
|
343
337
|
try {
|
|
344
|
-
var
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
338
|
+
var n = fetch(t, {
|
|
339
|
+
credentials: "same-origin"
|
|
340
|
+
}), a = await WebAssembly.instantiateStreaming(n, r);
|
|
341
|
+
return a;
|
|
342
|
+
} catch (i) {
|
|
343
|
+
k(`wasm streaming compile failed: ${i}`), k("falling back to ArrayBuffer instantiation");
|
|
348
344
|
}
|
|
345
|
+
return rr(t, r);
|
|
346
|
+
}
|
|
347
|
+
function ar() {
|
|
348
|
+
return {
|
|
349
|
+
a: Hn
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
async function or() {
|
|
353
|
+
function e(i, u) {
|
|
354
|
+
return E = i.exports, nt = E.xa, ee(), pe = E.Ba, Je(), E;
|
|
355
|
+
}
|
|
356
|
+
Qe();
|
|
357
|
+
function t(i) {
|
|
358
|
+
return e(i.instance);
|
|
359
|
+
}
|
|
360
|
+
var r = ar();
|
|
361
|
+
if (c.instantiateWasm)
|
|
362
|
+
return new Promise((i, u) => {
|
|
363
|
+
c.instantiateWasm(r, (s, l) => {
|
|
364
|
+
i(e(s));
|
|
365
|
+
});
|
|
366
|
+
});
|
|
367
|
+
yt != null || (yt = Ke());
|
|
368
|
+
try {
|
|
369
|
+
var n = await nr(Z, yt, r), a = t(n);
|
|
370
|
+
return a;
|
|
371
|
+
} catch (i) {
|
|
372
|
+
return $(i), Promise.reject(i);
|
|
349
373
|
}
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
374
|
+
}
|
|
375
|
+
var re = (e) => {
|
|
376
|
+
for (; e.length > 0; )
|
|
377
|
+
e.shift()(c);
|
|
378
|
+
}, ne = [], ir = (e) => ne.push(e), ae = [], sr = (e) => ae.push(e), y = (e) => Xn(e), m = () => qn(), mt = [], gt = 0, ur = (e) => {
|
|
379
|
+
var t = new Rt(e);
|
|
380
|
+
return t.get_caught() || (t.set_caught(!0), gt--), t.set_rethrown(!1), mt.push(t), Zn(e), zn(e);
|
|
381
|
+
}, H = 0, cr = () => {
|
|
382
|
+
v(0, 0);
|
|
383
|
+
var e = mt.pop();
|
|
384
|
+
Yn(e.excPtr), H = 0;
|
|
385
|
+
};
|
|
386
|
+
class Rt {
|
|
387
|
+
constructor(t) {
|
|
388
|
+
this.excPtr = t, this.ptr = t - 24;
|
|
361
389
|
}
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
a: ha
|
|
365
|
-
};
|
|
390
|
+
set_type(t) {
|
|
391
|
+
P[this.ptr + 4 >> 2] = t;
|
|
366
392
|
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
function e(o, u) {
|
|
370
|
-
return E = o.exports, mt = E.xa, ue(), Ce = E.Ba, mr(E.ya), $r(), E;
|
|
371
|
-
}
|
|
372
|
-
wr();
|
|
373
|
-
function r(o) {
|
|
374
|
-
e(o.instance);
|
|
375
|
-
}
|
|
376
|
-
var n = Or();
|
|
377
|
-
if (c.instantiateWasm)
|
|
378
|
-
try {
|
|
379
|
-
return c.instantiateWasm(n, e);
|
|
380
|
-
} catch (o) {
|
|
381
|
-
et(`Module.instantiateWasm callback failed with error: ${o}`), D(o);
|
|
382
|
-
}
|
|
383
|
-
(t = wt) !== null && t !== void 0 || (wt = Cr());
|
|
384
|
-
try {
|
|
385
|
-
var a = await Er(vt, wt, n);
|
|
386
|
-
return r(a), a;
|
|
387
|
-
} catch (o) {
|
|
388
|
-
D(o);
|
|
389
|
-
return;
|
|
390
|
-
}
|
|
393
|
+
get_type() {
|
|
394
|
+
return P[this.ptr + 4 >> 2];
|
|
391
395
|
}
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
t.shift()(c);
|
|
395
|
-
};
|
|
396
|
-
c.noExitRuntime;
|
|
397
|
-
var m = (t) => je(t), g = () => Re(), $t = [], bt = 0, Sr = (t) => {
|
|
398
|
-
var e = new Ht(t);
|
|
399
|
-
return e.get_caught() || (e.set_caught(!0), bt--), e.set_rethrown(!1), $t.push(e), Be(t), Me(t);
|
|
400
|
-
}, V = 0, xr = () => {
|
|
401
|
-
v(0, 0);
|
|
402
|
-
var t = $t.pop();
|
|
403
|
-
Le(t.excPtr), V = 0;
|
|
404
|
-
};
|
|
405
|
-
class Ht {
|
|
406
|
-
constructor(e) {
|
|
407
|
-
this.excPtr = e, this.ptr = e - 24;
|
|
408
|
-
}
|
|
409
|
-
set_type(e) {
|
|
410
|
-
P[this.ptr + 4 >> 2] = e;
|
|
411
|
-
}
|
|
412
|
-
get_type() {
|
|
413
|
-
return P[this.ptr + 4 >> 2];
|
|
414
|
-
}
|
|
415
|
-
set_destructor(e) {
|
|
416
|
-
P[this.ptr + 8 >> 2] = e;
|
|
417
|
-
}
|
|
418
|
-
get_destructor() {
|
|
419
|
-
return P[this.ptr + 8 >> 2];
|
|
420
|
-
}
|
|
421
|
-
set_caught(e) {
|
|
422
|
-
e = e ? 1 : 0, H[this.ptr + 12] = e;
|
|
423
|
-
}
|
|
424
|
-
get_caught() {
|
|
425
|
-
return H[this.ptr + 12] != 0;
|
|
426
|
-
}
|
|
427
|
-
set_rethrown(e) {
|
|
428
|
-
e = e ? 1 : 0, H[this.ptr + 13] = e;
|
|
429
|
-
}
|
|
430
|
-
get_rethrown() {
|
|
431
|
-
return H[this.ptr + 13] != 0;
|
|
432
|
-
}
|
|
433
|
-
init(e, r) {
|
|
434
|
-
this.set_adjusted_ptr(0), this.set_type(e), this.set_destructor(r);
|
|
435
|
-
}
|
|
436
|
-
set_adjusted_ptr(e) {
|
|
437
|
-
P[this.ptr + 16 >> 2] = e;
|
|
438
|
-
}
|
|
439
|
-
get_adjusted_ptr() {
|
|
440
|
-
return P[this.ptr + 16 >> 2];
|
|
441
|
-
}
|
|
396
|
+
set_destructor(t) {
|
|
397
|
+
P[this.ptr + 8 >> 2] = t;
|
|
442
398
|
}
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
}, Ct = (t) => Fe(t), Vt = (t) => {
|
|
446
|
-
var e = V;
|
|
447
|
-
if (!e)
|
|
448
|
-
return Ct(0), 0;
|
|
449
|
-
var r = new Ht(e);
|
|
450
|
-
r.set_adjusted_ptr(e);
|
|
451
|
-
var n = r.get_type();
|
|
452
|
-
if (!n)
|
|
453
|
-
return Ct(0), e;
|
|
454
|
-
for (var a of t) {
|
|
455
|
-
if (a === 0 || a === n)
|
|
456
|
-
break;
|
|
457
|
-
var o = r.ptr + 16;
|
|
458
|
-
if (Ue(a, n, o))
|
|
459
|
-
return Ct(a), e;
|
|
460
|
-
}
|
|
461
|
-
return Ct(n), e;
|
|
462
|
-
}, Ir = () => Vt([]), Mr = (t) => Vt([t]), Fr = (t, e) => Vt([t, e]), jr = () => {
|
|
463
|
-
var t = $t.pop();
|
|
464
|
-
t || Wt("no exception to throw");
|
|
465
|
-
var e = t.excPtr;
|
|
466
|
-
throw t.get_rethrown() || ($t.push(t), t.set_rethrown(!0), t.set_caught(!1), bt++), V = e, V;
|
|
467
|
-
}, Rr = (t, e, r) => {
|
|
468
|
-
var n = new Ht(t);
|
|
469
|
-
throw n.init(e, r), V = t, bt++, V;
|
|
470
|
-
}, Lr = () => bt, Br = () => Wt(""), Tt = {}, Nt = (t) => {
|
|
471
|
-
for (; t.length; ) {
|
|
472
|
-
var e = t.pop(), r = t.pop();
|
|
473
|
-
r(e);
|
|
474
|
-
}
|
|
475
|
-
};
|
|
476
|
-
function lt(t) {
|
|
477
|
-
return this.fromWireType(P[t >> 2]);
|
|
478
|
-
}
|
|
479
|
-
var nt = {}, Q = {}, Pt = {}, he, _t = (t) => {
|
|
480
|
-
throw new he(t);
|
|
481
|
-
}, J = (t, e, r) => {
|
|
482
|
-
t.forEach((s) => Pt[s] = e);
|
|
483
|
-
function n(s) {
|
|
484
|
-
var l = r(s);
|
|
485
|
-
l.length !== t.length && _t("Mismatched type converter count");
|
|
486
|
-
for (var d = 0; d < t.length; ++d)
|
|
487
|
-
W(t[d], l[d]);
|
|
488
|
-
}
|
|
489
|
-
var a = new Array(e.length), o = [], u = 0;
|
|
490
|
-
e.forEach((s, l) => {
|
|
491
|
-
Q.hasOwnProperty(s) ? a[l] = Q[s] : (o.push(s), nt.hasOwnProperty(s) || (nt[s] = []), nt[s].push(() => {
|
|
492
|
-
a[l] = Q[s], ++u, u === o.length && n(a);
|
|
493
|
-
}));
|
|
494
|
-
}), o.length === 0 && n(a);
|
|
495
|
-
}, Ur = (t) => {
|
|
496
|
-
var e = Tt[t];
|
|
497
|
-
delete Tt[t];
|
|
498
|
-
var r = e.rawConstructor, n = e.rawDestructor, a = e.fields, o = a.map((u) => u.getterReturnType).concat(a.map((u) => u.setterArgumentType));
|
|
499
|
-
J([t], o, (u) => {
|
|
500
|
-
var s = {};
|
|
501
|
-
return a.forEach((l, d) => {
|
|
502
|
-
var h = l.fieldName, y = u[d], $ = l.getter, C = l.getterContext, _ = u[d + a.length], I = l.setter, S = l.setterContext;
|
|
503
|
-
s[h] = {
|
|
504
|
-
read: (x) => y.fromWireType($(C, x)),
|
|
505
|
-
write: (x, K) => {
|
|
506
|
-
var j = [];
|
|
507
|
-
I(S, x, _.toWireType(j, K)), Nt(j);
|
|
508
|
-
}
|
|
509
|
-
};
|
|
510
|
-
}), [{
|
|
511
|
-
name: e.name,
|
|
512
|
-
fromWireType: (l) => {
|
|
513
|
-
var d = {};
|
|
514
|
-
for (var h in s)
|
|
515
|
-
d[h] = s[h].read(l);
|
|
516
|
-
return n(l), d;
|
|
517
|
-
},
|
|
518
|
-
toWireType: (l, d) => {
|
|
519
|
-
for (var h in s)
|
|
520
|
-
if (!(h in d))
|
|
521
|
-
throw new TypeError(`Missing field: "${h}"`);
|
|
522
|
-
var y = r();
|
|
523
|
-
for (h in s)
|
|
524
|
-
s[h].write(y, d[h]);
|
|
525
|
-
return l !== null && l.push(n, y), y;
|
|
526
|
-
},
|
|
527
|
-
argPackAdvance: N,
|
|
528
|
-
readValueFromPointer: lt,
|
|
529
|
-
destructorFunction: n
|
|
530
|
-
}];
|
|
531
|
-
});
|
|
532
|
-
}, Wr = (t, e, r, n, a) => {
|
|
533
|
-
}, kr = () => {
|
|
534
|
-
for (var t = new Array(256), e = 0; e < 256; ++e)
|
|
535
|
-
t[e] = String.fromCharCode(e);
|
|
536
|
-
pe = t;
|
|
537
|
-
}, pe, F = (t) => {
|
|
538
|
-
for (var e = "", r = t; B[r]; )
|
|
539
|
-
e += pe[B[r++]];
|
|
540
|
-
return e;
|
|
541
|
-
}, at, b = (t) => {
|
|
542
|
-
throw new at(t);
|
|
543
|
-
};
|
|
544
|
-
function Hr(t, e) {
|
|
545
|
-
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
546
|
-
var n = e.name;
|
|
547
|
-
if (t || b(`type "${n}" must have a positive integer typeid pointer`), Q.hasOwnProperty(t)) {
|
|
548
|
-
if (r.ignoreDuplicateRegistrations)
|
|
549
|
-
return;
|
|
550
|
-
b(`Cannot register type '${n}' twice`);
|
|
551
|
-
}
|
|
552
|
-
if (Q[t] = e, delete Pt[t], nt.hasOwnProperty(t)) {
|
|
553
|
-
var a = nt[t];
|
|
554
|
-
delete nt[t], a.forEach((o) => o());
|
|
555
|
-
}
|
|
399
|
+
get_destructor() {
|
|
400
|
+
return P[this.ptr + 8 >> 2];
|
|
556
401
|
}
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
return Hr(t, e, r);
|
|
402
|
+
set_caught(t) {
|
|
403
|
+
t = t ? 1 : 0, Q[this.ptr + 12] = t;
|
|
560
404
|
}
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
name: e,
|
|
564
|
-
fromWireType: function(a) {
|
|
565
|
-
return !!a;
|
|
566
|
-
},
|
|
567
|
-
toWireType: function(a, o) {
|
|
568
|
-
return o ? r : n;
|
|
569
|
-
},
|
|
570
|
-
argPackAdvance: N,
|
|
571
|
-
readValueFromPointer: function(a) {
|
|
572
|
-
return this.fromWireType(B[a]);
|
|
573
|
-
},
|
|
574
|
-
destructorFunction: null
|
|
575
|
-
});
|
|
576
|
-
}, Nr = (t) => ({
|
|
577
|
-
count: t.count,
|
|
578
|
-
deleteScheduled: t.deleteScheduled,
|
|
579
|
-
preservePointerOnDelete: t.preservePointerOnDelete,
|
|
580
|
-
ptr: t.ptr,
|
|
581
|
-
ptrType: t.ptrType,
|
|
582
|
-
smartPtr: t.smartPtr,
|
|
583
|
-
smartPtrType: t.smartPtrType
|
|
584
|
-
}), zt = (t) => {
|
|
585
|
-
function e(r) {
|
|
586
|
-
return r.$$.ptrType.registeredClass.name;
|
|
587
|
-
}
|
|
588
|
-
b(e(t) + " instance already deleted");
|
|
589
|
-
}, Gt = !1, ye = (t) => {
|
|
590
|
-
}, zr = (t) => {
|
|
591
|
-
t.smartPtr ? t.smartPtrType.rawDestructor(t.smartPtr) : t.ptrType.registeredClass.rawDestructor(t.ptr);
|
|
592
|
-
}, ve = (t) => {
|
|
593
|
-
t.count.value -= 1;
|
|
594
|
-
var e = t.count.value === 0;
|
|
595
|
-
e && zr(t);
|
|
596
|
-
}, me = (t, e, r) => {
|
|
597
|
-
if (e === r)
|
|
598
|
-
return t;
|
|
599
|
-
if (r.baseClass === void 0)
|
|
600
|
-
return null;
|
|
601
|
-
var n = me(t, e, r.baseClass);
|
|
602
|
-
return n === null ? null : r.downcast(n);
|
|
603
|
-
}, ge = {}, Gr = {}, Xr = (t, e) => {
|
|
604
|
-
for (e === void 0 && b("ptr should not be undefined"); t.baseClass; )
|
|
605
|
-
e = t.upcast(e), t = t.baseClass;
|
|
606
|
-
return e;
|
|
607
|
-
}, qr = (t, e) => (e = Xr(t, e), Gr[e]), Et = (t, e) => {
|
|
608
|
-
(!e.ptrType || !e.ptr) && _t("makeClassHandle requires ptr and ptrType");
|
|
609
|
-
var r = !!e.smartPtrType, n = !!e.smartPtr;
|
|
610
|
-
return r !== n && _t("Both smartPtrType and smartPtr must be specified"), e.count = {
|
|
611
|
-
value: 1
|
|
612
|
-
}, ft(Object.create(t, {
|
|
613
|
-
$$: {
|
|
614
|
-
value: e,
|
|
615
|
-
writable: !0
|
|
616
|
-
}
|
|
617
|
-
}));
|
|
618
|
-
};
|
|
619
|
-
function Zr(t) {
|
|
620
|
-
var e = this.getPointee(t);
|
|
621
|
-
if (!e)
|
|
622
|
-
return this.destructor(t), null;
|
|
623
|
-
var r = qr(this.registeredClass, e);
|
|
624
|
-
if (r !== void 0) {
|
|
625
|
-
if (r.$$.count.value === 0)
|
|
626
|
-
return r.$$.ptr = e, r.$$.smartPtr = t, r.clone();
|
|
627
|
-
var n = r.clone();
|
|
628
|
-
return this.destructor(t), n;
|
|
629
|
-
}
|
|
630
|
-
function a() {
|
|
631
|
-
return this.isSmartPointer ? Et(this.registeredClass.instancePrototype, {
|
|
632
|
-
ptrType: this.pointeeType,
|
|
633
|
-
ptr: e,
|
|
634
|
-
smartPtrType: this,
|
|
635
|
-
smartPtr: t
|
|
636
|
-
}) : Et(this.registeredClass.instancePrototype, {
|
|
637
|
-
ptrType: this,
|
|
638
|
-
ptr: t
|
|
639
|
-
});
|
|
640
|
-
}
|
|
641
|
-
var o = this.registeredClass.getActualType(e), u = ge[o];
|
|
642
|
-
if (!u)
|
|
643
|
-
return a.call(this);
|
|
644
|
-
var s;
|
|
645
|
-
this.isConst ? s = u.constPointerType : s = u.pointerType;
|
|
646
|
-
var l = me(e, this.registeredClass, s.registeredClass);
|
|
647
|
-
return l === null ? a.call(this) : this.isSmartPointer ? Et(s.registeredClass.instancePrototype, {
|
|
648
|
-
ptrType: s,
|
|
649
|
-
ptr: l,
|
|
650
|
-
smartPtrType: this,
|
|
651
|
-
smartPtr: t
|
|
652
|
-
}) : Et(s.registeredClass.instancePrototype, {
|
|
653
|
-
ptrType: s,
|
|
654
|
-
ptr: l
|
|
655
|
-
});
|
|
405
|
+
get_caught() {
|
|
406
|
+
return Q[this.ptr + 12] != 0;
|
|
656
407
|
}
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
}), ft = (e) => {
|
|
660
|
-
var r = e.$$, n = !!r.smartPtr;
|
|
661
|
-
if (n) {
|
|
662
|
-
var a = {
|
|
663
|
-
$$: r
|
|
664
|
-
};
|
|
665
|
-
Gt.register(e, a, e);
|
|
666
|
-
}
|
|
667
|
-
return e;
|
|
668
|
-
}, ye = (e) => Gt.unregister(e), ft(t)), Yr = () => {
|
|
669
|
-
Object.assign(Ot.prototype, {
|
|
670
|
-
isAliasOf(t) {
|
|
671
|
-
if (!(this instanceof Ot) || !(t instanceof Ot))
|
|
672
|
-
return !1;
|
|
673
|
-
var e = this.$$.ptrType.registeredClass, r = this.$$.ptr;
|
|
674
|
-
t.$$ = t.$$;
|
|
675
|
-
for (var n = t.$$.ptrType.registeredClass, a = t.$$.ptr; e.baseClass; )
|
|
676
|
-
r = e.upcast(r), e = e.baseClass;
|
|
677
|
-
for (; n.baseClass; )
|
|
678
|
-
a = n.upcast(a), n = n.baseClass;
|
|
679
|
-
return e === n && r === a;
|
|
680
|
-
},
|
|
681
|
-
clone() {
|
|
682
|
-
if (this.$$.ptr || zt(this), this.$$.preservePointerOnDelete)
|
|
683
|
-
return this.$$.count.value += 1, this;
|
|
684
|
-
var t = ft(Object.create(Object.getPrototypeOf(this), {
|
|
685
|
-
$$: {
|
|
686
|
-
value: Nr(this.$$)
|
|
687
|
-
}
|
|
688
|
-
}));
|
|
689
|
-
return t.$$.count.value += 1, t.$$.deleteScheduled = !1, t;
|
|
690
|
-
},
|
|
691
|
-
delete() {
|
|
692
|
-
this.$$.ptr || zt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && b("Object already scheduled for deletion"), ye(this), ve(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
|
|
693
|
-
},
|
|
694
|
-
isDeleted() {
|
|
695
|
-
return !this.$$.ptr;
|
|
696
|
-
},
|
|
697
|
-
deleteLater() {
|
|
698
|
-
return this.$$.ptr || zt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && b("Object already scheduled for deletion"), this.$$.deleteScheduled = !0, this;
|
|
699
|
-
}
|
|
700
|
-
});
|
|
701
|
-
};
|
|
702
|
-
function Ot() {
|
|
703
|
-
}
|
|
704
|
-
var At = (t, e) => Object.defineProperty(e, "name", {
|
|
705
|
-
value: t
|
|
706
|
-
}), we = (t, e, r) => {
|
|
707
|
-
if (t[e].overloadTable === void 0) {
|
|
708
|
-
var n = t[e];
|
|
709
|
-
t[e] = function() {
|
|
710
|
-
for (var a = arguments.length, o = new Array(a), u = 0; u < a; u++)
|
|
711
|
-
o[u] = arguments[u];
|
|
712
|
-
return t[e].overloadTable.hasOwnProperty(o.length) || b(`Function '${r}' called with an invalid number of arguments (${o.length}) - expects one of (${t[e].overloadTable})!`), t[e].overloadTable[o.length].apply(this, o);
|
|
713
|
-
}, t[e].overloadTable = [], t[e].overloadTable[n.argCount] = n;
|
|
714
|
-
}
|
|
715
|
-
}, $e = (t, e, r) => {
|
|
716
|
-
c.hasOwnProperty(t) ? ((r === void 0 || c[t].overloadTable !== void 0 && c[t].overloadTable[r] !== void 0) && b(`Cannot register public name '${t}' twice`), we(c, t, t), c[t].overloadTable.hasOwnProperty(r) && b(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`), c[t].overloadTable[r] = e) : (c[t] = e, c[t].argCount = r);
|
|
717
|
-
}, Qr = 48, Jr = 57, Kr = (t) => {
|
|
718
|
-
t = t.replace(/[^a-zA-Z0-9_]/g, "$");
|
|
719
|
-
var e = t.charCodeAt(0);
|
|
720
|
-
return e >= Qr && e <= Jr ? `_${t}` : t;
|
|
721
|
-
};
|
|
722
|
-
function tn(t, e, r, n, a, o, u, s) {
|
|
723
|
-
this.name = t, this.constructor = e, this.instancePrototype = r, this.rawDestructor = n, this.baseClass = a, this.getActualType = o, this.upcast = u, this.downcast = s, this.pureVirtualFunctions = [];
|
|
408
|
+
set_rethrown(t) {
|
|
409
|
+
t = t ? 1 : 0, Q[this.ptr + 13] = t;
|
|
724
410
|
}
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
e.upcast || b(`Expected null or instance of ${r.name}, got an instance of ${e.name}`), t = e.upcast(t), e = e.baseClass;
|
|
728
|
-
return t;
|
|
729
|
-
};
|
|
730
|
-
function en(t, e) {
|
|
731
|
-
if (e === null)
|
|
732
|
-
return this.isReference && b(`null is not a valid ${this.name}`), 0;
|
|
733
|
-
e.$$ || b(`Cannot pass "${Jt(e)}" as a ${this.name}`), e.$$.ptr || b(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
734
|
-
var r = e.$$.ptrType.registeredClass, n = Xt(e.$$.ptr, r, this.registeredClass);
|
|
735
|
-
return n;
|
|
411
|
+
get_rethrown() {
|
|
412
|
+
return Q[this.ptr + 13] != 0;
|
|
736
413
|
}
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
if (e === null)
|
|
740
|
-
return this.isReference && b(`null is not a valid ${this.name}`), this.isSmartPointer ? (r = this.rawConstructor(), t !== null && t.push(this.rawDestructor, r), r) : 0;
|
|
741
|
-
(!e || !e.$$) && b(`Cannot pass "${Jt(e)}" as a ${this.name}`), e.$$.ptr || b(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && e.$$.ptrType.isConst && b(`Cannot convert argument of type ${e.$$.smartPtrType ? e.$$.smartPtrType.name : e.$$.ptrType.name} to parameter type ${this.name}`);
|
|
742
|
-
var n = e.$$.ptrType.registeredClass;
|
|
743
|
-
if (r = Xt(e.$$.ptr, n, this.registeredClass), this.isSmartPointer)
|
|
744
|
-
switch (e.$$.smartPtr === void 0 && b("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) {
|
|
745
|
-
case 0:
|
|
746
|
-
e.$$.smartPtrType === this ? r = e.$$.smartPtr : b(`Cannot convert argument of type ${e.$$.smartPtrType ? e.$$.smartPtrType.name : e.$$.ptrType.name} to parameter type ${this.name}`);
|
|
747
|
-
break;
|
|
748
|
-
case 1:
|
|
749
|
-
r = e.$$.smartPtr;
|
|
750
|
-
break;
|
|
751
|
-
case 2:
|
|
752
|
-
if (e.$$.smartPtrType === this)
|
|
753
|
-
r = e.$$.smartPtr;
|
|
754
|
-
else {
|
|
755
|
-
var a = e.clone();
|
|
756
|
-
r = this.rawShare(r, G.toHandle(() => a.delete())), t !== null && t.push(this.rawDestructor, r);
|
|
757
|
-
}
|
|
758
|
-
break;
|
|
759
|
-
default:
|
|
760
|
-
b("Unsupporting sharing policy");
|
|
761
|
-
}
|
|
762
|
-
return r;
|
|
414
|
+
init(t, r) {
|
|
415
|
+
this.set_adjusted_ptr(0), this.set_type(t), this.set_destructor(r);
|
|
763
416
|
}
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
417
|
+
set_adjusted_ptr(t) {
|
|
418
|
+
P[this.ptr + 16 >> 2] = t;
|
|
419
|
+
}
|
|
420
|
+
get_adjusted_ptr() {
|
|
421
|
+
return P[this.ptr + 16 >> 2];
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
var wt = (e) => Gn(e), jt = (e) => {
|
|
425
|
+
var t = H;
|
|
426
|
+
if (!t)
|
|
427
|
+
return wt(0), 0;
|
|
428
|
+
var r = new Rt(t);
|
|
429
|
+
r.set_adjusted_ptr(t);
|
|
430
|
+
var n = r.get_type();
|
|
431
|
+
if (!n)
|
|
432
|
+
return wt(0), t;
|
|
433
|
+
for (var a of e) {
|
|
434
|
+
if (a === 0 || a === n)
|
|
435
|
+
break;
|
|
436
|
+
var i = r.ptr + 16;
|
|
437
|
+
if (Qn(a, n, i))
|
|
438
|
+
return wt(a), t;
|
|
439
|
+
}
|
|
440
|
+
return wt(n), t;
|
|
441
|
+
}, lr = () => jt([]), fr = (e) => jt([e]), dr = (e, t) => jt([e, t]), hr = () => {
|
|
442
|
+
var e = mt.pop();
|
|
443
|
+
e || Ft("no exception to throw");
|
|
444
|
+
var t = e.excPtr;
|
|
445
|
+
throw e.get_rethrown() || (mt.push(e), e.set_rethrown(!0), e.set_caught(!1), gt++), H = t, H;
|
|
446
|
+
}, pr = (e, t, r) => {
|
|
447
|
+
var n = new Rt(e);
|
|
448
|
+
throw n.init(t, r), H = e, gt++, H;
|
|
449
|
+
}, vr = () => gt, yr = (e) => {
|
|
450
|
+
throw H || (H = e), H;
|
|
451
|
+
}, mr = () => Ft(""), $t = {}, Lt = (e) => {
|
|
452
|
+
for (; e.length; ) {
|
|
453
|
+
var t = e.pop(), r = e.pop();
|
|
454
|
+
r(t);
|
|
770
455
|
}
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
456
|
+
};
|
|
457
|
+
function lt(e) {
|
|
458
|
+
return this.fromWireType(P[e >> 2]);
|
|
459
|
+
}
|
|
460
|
+
var ot = {}, K = {}, bt = {}, gr = c.InternalError = class extends Error {
|
|
461
|
+
constructor(e) {
|
|
462
|
+
super(e), this.name = "InternalError";
|
|
463
|
+
}
|
|
464
|
+
}, Ct = (e) => {
|
|
465
|
+
throw new gr(e);
|
|
466
|
+
}, tt = (e, t, r) => {
|
|
467
|
+
e.forEach((s) => bt[s] = t);
|
|
468
|
+
function n(s) {
|
|
469
|
+
var l = r(s);
|
|
470
|
+
l.length !== e.length && Ct("Mismatched type converter count");
|
|
471
|
+
for (var d = 0; d < e.length; ++d)
|
|
472
|
+
V(e[d], l[d]);
|
|
473
|
+
}
|
|
474
|
+
var a = new Array(t.length), i = [], u = 0;
|
|
475
|
+
t.forEach((s, l) => {
|
|
476
|
+
K.hasOwnProperty(s) ? a[l] = K[s] : (i.push(s), ot.hasOwnProperty(s) || (ot[s] = []), ot[s].push(() => {
|
|
477
|
+
a[l] = K[s], ++u, u === i.length && n(a);
|
|
478
|
+
}));
|
|
479
|
+
}), i.length === 0 && n(a);
|
|
480
|
+
}, wr = (e) => {
|
|
481
|
+
var t = $t[e];
|
|
482
|
+
delete $t[e];
|
|
483
|
+
var r = t.rawConstructor, n = t.rawDestructor, a = t.fields, i = a.map((u) => u.getterReturnType).concat(a.map((u) => u.setterArgumentType));
|
|
484
|
+
tt([e], i, (u) => {
|
|
485
|
+
var s = {};
|
|
486
|
+
return a.forEach((l, d) => {
|
|
487
|
+
var h = l.fieldName, p = u[d], w = u[d].optional, b = l.getter, _ = l.getterContext, S = u[d + a.length], A = l.setter, I = l.setterContext;
|
|
488
|
+
s[h] = {
|
|
489
|
+
read: (X) => p.fromWireType(b(_, X)),
|
|
490
|
+
write: (X, L) => {
|
|
491
|
+
var W = [];
|
|
492
|
+
A(I, X, S.toWireType(W, L)), Lt(W);
|
|
493
|
+
},
|
|
494
|
+
optional: w
|
|
495
|
+
};
|
|
496
|
+
}), [{
|
|
497
|
+
name: t.name,
|
|
498
|
+
fromWireType: (l) => {
|
|
499
|
+
var d = {};
|
|
500
|
+
for (var h in s)
|
|
501
|
+
d[h] = s[h].read(l);
|
|
502
|
+
return n(l), d;
|
|
775
503
|
},
|
|
776
|
-
|
|
777
|
-
var
|
|
778
|
-
|
|
504
|
+
toWireType: (l, d) => {
|
|
505
|
+
for (var h in s)
|
|
506
|
+
if (!(h in d) && !s[h].optional)
|
|
507
|
+
throw new TypeError(`Missing field: "${h}"`);
|
|
508
|
+
var p = r();
|
|
509
|
+
for (h in s)
|
|
510
|
+
s[h].write(p, d[h]);
|
|
511
|
+
return l !== null && l.push(n, p), p;
|
|
779
512
|
},
|
|
780
513
|
argPackAdvance: N,
|
|
781
514
|
readValueFromPointer: lt,
|
|
782
|
-
|
|
783
|
-
}
|
|
784
|
-
};
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
t = F(t);
|
|
809
|
-
function r() {
|
|
810
|
-
return t.includes("j") ? un(t, e) : w(e);
|
|
811
|
-
}
|
|
812
|
-
var n = r();
|
|
813
|
-
return typeof n != "function" && b(`unknown function pointer with signature ${t}: ${e}`), n;
|
|
814
|
-
}, cn = (t, e) => {
|
|
815
|
-
var r = At(e, function(n) {
|
|
816
|
-
this.name = e, this.message = n;
|
|
817
|
-
var a = new Error(n).stack;
|
|
818
|
-
a !== void 0 && (this.stack = this.toString() + `
|
|
819
|
-
` + a.replace(/^Error(:[^\n]*)?\n/, ""));
|
|
820
|
-
});
|
|
821
|
-
return r.prototype = Object.create(t.prototype), r.prototype.constructor = r, r.prototype.toString = function() {
|
|
822
|
-
return this.message === void 0 ? this.name : `${this.name}: ${this.message}`;
|
|
823
|
-
}, r;
|
|
824
|
-
}, Te, Pe = (t) => {
|
|
825
|
-
var e = Ie(t), r = F(e);
|
|
826
|
-
return X(e), r;
|
|
827
|
-
}, Dt = (t, e) => {
|
|
828
|
-
var r = [], n = {};
|
|
829
|
-
function a(o) {
|
|
830
|
-
if (!n[o] && !Q[o]) {
|
|
831
|
-
if (Pt[o]) {
|
|
832
|
-
Pt[o].forEach(a);
|
|
833
|
-
return;
|
|
834
|
-
}
|
|
835
|
-
r.push(o), n[o] = !0;
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
throw e.forEach(a), new Te(`${t}: ` + r.map(Pe).join([", "]));
|
|
839
|
-
}, ln = (t, e, r, n, a, o, u, s, l, d, h, y, $) => {
|
|
840
|
-
h = F(h), o = U(a, o), s && (s = U(u, s)), d && (d = U(l, d)), $ = U(y, $);
|
|
841
|
-
var C = Kr(h);
|
|
842
|
-
$e(C, function() {
|
|
843
|
-
Dt(`Cannot construct ${h} due to unbound types`, [n]);
|
|
844
|
-
}), J([t, e, r], n ? [n] : [], (_) => {
|
|
845
|
-
_ = _[0];
|
|
846
|
-
var I, S;
|
|
847
|
-
n ? (I = _.registeredClass, S = I.instancePrototype) : S = Ot.prototype;
|
|
848
|
-
var x = At(h, function() {
|
|
849
|
-
if (Object.getPrototypeOf(this) !== K)
|
|
850
|
-
throw new at("Use 'new' to construct " + h);
|
|
851
|
-
if (j.constructor_body === void 0)
|
|
852
|
-
throw new at(h + " has no accessible constructor");
|
|
853
|
-
for (var ze = arguments.length, Ft = new Array(ze), jt = 0; jt < ze; jt++)
|
|
854
|
-
Ft[jt] = arguments[jt];
|
|
855
|
-
var Ge = j.constructor_body[Ft.length];
|
|
856
|
-
if (Ge === void 0)
|
|
857
|
-
throw new at(`Tried to invoke ctor of ${h} with invalid number of parameters (${Ft.length}) - expected (${Object.keys(j.constructor_body).toString()}) parameters instead!`);
|
|
858
|
-
return Ge.apply(this, Ft);
|
|
859
|
-
}), K = Object.create(S, {
|
|
860
|
-
constructor: {
|
|
861
|
-
value: x
|
|
862
|
-
}
|
|
863
|
-
});
|
|
864
|
-
x.prototype = K;
|
|
865
|
-
var j = new tn(h, x, K, $, I, o, s, d);
|
|
866
|
-
if (j.baseClass) {
|
|
867
|
-
var q, Mt;
|
|
868
|
-
(Mt = (q = j.baseClass).__derivedClasses) !== null && Mt !== void 0 || (q.__derivedClasses = []), j.baseClass.__derivedClasses.push(j);
|
|
869
|
-
}
|
|
870
|
-
var qa = new St(h, j, !0, !1, !1), Ve = new St(h + "*", j, !1, !1, !1), Ne = new St(h + " const*", j, !1, !0, !1);
|
|
871
|
-
return ge[t] = {
|
|
872
|
-
pointerType: Ve,
|
|
873
|
-
constPointerType: Ne
|
|
874
|
-
}, be(C, x), [qa, Ve, Ne];
|
|
875
|
-
});
|
|
876
|
-
}, qt = (t, e) => {
|
|
877
|
-
for (var r = [], n = 0; n < t; n++)
|
|
878
|
-
r.push(P[e + n * 4 >> 2]);
|
|
879
|
-
return r;
|
|
880
|
-
};
|
|
881
|
-
function fn(t) {
|
|
882
|
-
for (var e = 1; e < t.length; ++e)
|
|
883
|
-
if (t[e] !== null && t[e].destructorFunction === void 0)
|
|
884
|
-
return !0;
|
|
885
|
-
return !1;
|
|
515
|
+
destructorFunction: n
|
|
516
|
+
}];
|
|
517
|
+
});
|
|
518
|
+
}, $r = (e, t, r, n, a) => {
|
|
519
|
+
}, br = () => {
|
|
520
|
+
for (var e = new Array(256), t = 0; t < 256; ++t)
|
|
521
|
+
e[t] = String.fromCharCode(t);
|
|
522
|
+
oe = e;
|
|
523
|
+
}, oe, R = (e) => {
|
|
524
|
+
for (var t = "", r = e; B[r]; )
|
|
525
|
+
t += oe[B[r++]];
|
|
526
|
+
return t;
|
|
527
|
+
}, ft = c.BindingError = class extends Error {
|
|
528
|
+
constructor(e) {
|
|
529
|
+
super(e), this.name = "BindingError";
|
|
530
|
+
}
|
|
531
|
+
}, C = (e) => {
|
|
532
|
+
throw new ft(e);
|
|
533
|
+
};
|
|
534
|
+
function Cr(e, t) {
|
|
535
|
+
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
536
|
+
var n = t.name;
|
|
537
|
+
if (e || C(`type "${n}" must have a positive integer typeid pointer`), K.hasOwnProperty(e)) {
|
|
538
|
+
if (r.ignoreDuplicateRegistrations)
|
|
539
|
+
return;
|
|
540
|
+
C(`Cannot register type '${n}' twice`);
|
|
886
541
|
}
|
|
887
|
-
|
|
888
|
-
var
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
}
|
|
905
|
-
if (d)
|
|
906
|
-
return e[0].fromWireType(j);
|
|
907
|
-
}
|
|
908
|
-
return K(x);
|
|
909
|
-
};
|
|
910
|
-
return At(t, _);
|
|
911
|
-
}
|
|
912
|
-
var dn = (t, e, r, n, a, o) => {
|
|
913
|
-
var u = qt(e, r);
|
|
914
|
-
a = U(n, a), J([], [t], (s) => {
|
|
915
|
-
s = s[0];
|
|
916
|
-
var l = `constructor ${s.name}`;
|
|
917
|
-
if (s.registeredClass.constructor_body === void 0 && (s.registeredClass.constructor_body = []), s.registeredClass.constructor_body[e - 1] !== void 0)
|
|
918
|
-
throw new at(`Cannot register multiple constructors with identical number of parameters (${e - 1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
919
|
-
return s.registeredClass.constructor_body[e - 1] = () => {
|
|
920
|
-
Dt(`Cannot construct ${s.name} due to unbound types`, u);
|
|
921
|
-
}, J([], u, (d) => (d.splice(1, 0, null), s.registeredClass.constructor_body[e - 1] = Zt(l, d, null, a, o), [])), [];
|
|
922
|
-
});
|
|
923
|
-
}, _e = (t) => {
|
|
924
|
-
t = t.trim();
|
|
925
|
-
const e = t.indexOf("(");
|
|
926
|
-
return e !== -1 ? t.substr(0, e) : t;
|
|
927
|
-
}, hn = (t, e, r, n, a, o, u, s, l, d) => {
|
|
928
|
-
var h = qt(r, n);
|
|
929
|
-
e = F(e), e = _e(e), o = U(a, o), J([], [t], (y) => {
|
|
930
|
-
y = y[0];
|
|
931
|
-
var $ = `${y.name}.${e}`;
|
|
932
|
-
e.startsWith("@@") && (e = Symbol[e.substring(2)]), s && y.registeredClass.pureVirtualFunctions.push(e);
|
|
933
|
-
function C() {
|
|
934
|
-
Dt(`Cannot call ${$} due to unbound types`, h);
|
|
935
|
-
}
|
|
936
|
-
var _ = y.registeredClass.instancePrototype, I = _[e];
|
|
937
|
-
return I === void 0 || I.overloadTable === void 0 && I.className !== y.name && I.argCount === r - 2 ? (C.argCount = r - 2, C.className = y.name, _[e] = C) : (we(_, e, $), _[e].overloadTable[r - 2] = C), J([], h, (S) => {
|
|
938
|
-
var x = Zt($, S, y, o, u);
|
|
939
|
-
return _[e].overloadTable === void 0 ? (x.argCount = r - 2, _[e] = x) : _[e].overloadTable[r - 2] = x, [];
|
|
940
|
-
}), [];
|
|
941
|
-
});
|
|
942
|
-
}, Yt = [], z = [], Qt = (t) => {
|
|
943
|
-
t > 9 && --z[t + 1] === 0 && (z[t] = void 0, Yt.push(t));
|
|
944
|
-
}, pn = () => z.length / 2 - 5 - Yt.length, yn = () => {
|
|
945
|
-
z.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1), c.count_emval_handles = pn;
|
|
946
|
-
}, G = {
|
|
947
|
-
toValue: (t) => (t || b("Cannot use deleted val. handle = " + t), z[t]),
|
|
948
|
-
toHandle: (t) => {
|
|
949
|
-
switch (t) {
|
|
950
|
-
case void 0:
|
|
951
|
-
return 2;
|
|
952
|
-
case null:
|
|
953
|
-
return 4;
|
|
954
|
-
case !0:
|
|
955
|
-
return 6;
|
|
956
|
-
case !1:
|
|
957
|
-
return 8;
|
|
958
|
-
default: {
|
|
959
|
-
const e = Yt.pop() || z.length;
|
|
960
|
-
return z[e] = t, z[e + 1] = 1, e;
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
}, Ee = {
|
|
965
|
-
name: "emscripten::val",
|
|
966
|
-
fromWireType: (t) => {
|
|
967
|
-
var e = G.toValue(t);
|
|
968
|
-
return Qt(t), e;
|
|
542
|
+
if (K[e] = t, delete bt[e], ot.hasOwnProperty(e)) {
|
|
543
|
+
var a = ot[e];
|
|
544
|
+
delete ot[e], a.forEach((i) => i());
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
function V(e, t) {
|
|
548
|
+
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
549
|
+
return Cr(e, t, r);
|
|
550
|
+
}
|
|
551
|
+
var N = 8, Tr = (e, t, r, n) => {
|
|
552
|
+
t = R(t), V(e, {
|
|
553
|
+
name: t,
|
|
554
|
+
fromWireType: function(a) {
|
|
555
|
+
return !!a;
|
|
556
|
+
},
|
|
557
|
+
toWireType: function(a, i) {
|
|
558
|
+
return i ? r : n;
|
|
969
559
|
},
|
|
970
|
-
toWireType: (t, e) => G.toHandle(e),
|
|
971
560
|
argPackAdvance: N,
|
|
972
|
-
readValueFromPointer:
|
|
561
|
+
readValueFromPointer: function(a) {
|
|
562
|
+
return this.fromWireType(B[a]);
|
|
563
|
+
},
|
|
973
564
|
destructorFunction: null
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
565
|
+
});
|
|
566
|
+
}, Pr = (e) => ({
|
|
567
|
+
count: e.count,
|
|
568
|
+
deleteScheduled: e.deleteScheduled,
|
|
569
|
+
preservePointerOnDelete: e.preservePointerOnDelete,
|
|
570
|
+
ptr: e.ptr,
|
|
571
|
+
ptrType: e.ptrType,
|
|
572
|
+
smartPtr: e.smartPtr,
|
|
573
|
+
smartPtrType: e.smartPtrType
|
|
574
|
+
}), Bt = (e) => {
|
|
575
|
+
function t(r) {
|
|
576
|
+
return r.$$.ptrType.registeredClass.name;
|
|
577
|
+
}
|
|
578
|
+
C(t(e) + " instance already deleted");
|
|
579
|
+
}, Wt = !1, ie = (e) => {
|
|
580
|
+
}, Er = (e) => {
|
|
581
|
+
e.smartPtr ? e.smartPtrType.rawDestructor(e.smartPtr) : e.ptrType.registeredClass.rawDestructor(e.ptr);
|
|
582
|
+
}, se = (e) => {
|
|
583
|
+
e.count.value -= 1;
|
|
584
|
+
var t = e.count.value === 0;
|
|
585
|
+
t && Er(e);
|
|
586
|
+
}, dt = (e) => typeof FinalizationRegistry > "u" ? (dt = (t) => t, e) : (Wt = new FinalizationRegistry((t) => {
|
|
587
|
+
se(t.$$);
|
|
588
|
+
}), dt = (t) => {
|
|
589
|
+
var r = t.$$, n = !!r.smartPtr;
|
|
590
|
+
if (n) {
|
|
591
|
+
var a = {
|
|
592
|
+
$$: r
|
|
593
|
+
};
|
|
594
|
+
Wt.register(t, a, t);
|
|
595
|
+
}
|
|
596
|
+
return t;
|
|
597
|
+
}, ie = (t) => Wt.unregister(t), dt(e)), _r = () => {
|
|
598
|
+
let e = Tt.prototype;
|
|
599
|
+
Object.assign(e, {
|
|
600
|
+
isAliasOf(r) {
|
|
601
|
+
if (!(this instanceof Tt) || !(r instanceof Tt))
|
|
602
|
+
return !1;
|
|
603
|
+
var n = this.$$.ptrType.registeredClass, a = this.$$.ptr;
|
|
604
|
+
r.$$ = r.$$;
|
|
605
|
+
for (var i = r.$$.ptrType.registeredClass, u = r.$$.ptr; n.baseClass; )
|
|
606
|
+
a = n.upcast(a), n = n.baseClass;
|
|
607
|
+
for (; i.baseClass; )
|
|
608
|
+
u = i.upcast(u), i = i.baseClass;
|
|
609
|
+
return n === i && a === u;
|
|
610
|
+
},
|
|
611
|
+
clone() {
|
|
612
|
+
if (this.$$.ptr || Bt(this), this.$$.preservePointerOnDelete)
|
|
613
|
+
return this.$$.count.value += 1, this;
|
|
614
|
+
var r = dt(Object.create(Object.getPrototypeOf(this), {
|
|
615
|
+
$$: {
|
|
616
|
+
value: Pr(this.$$)
|
|
617
|
+
}
|
|
618
|
+
}));
|
|
619
|
+
return r.$$.count.value += 1, r.$$.deleteScheduled = !1, r;
|
|
620
|
+
},
|
|
621
|
+
delete() {
|
|
622
|
+
this.$$.ptr || Bt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && C("Object already scheduled for deletion"), ie(this), se(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
|
|
623
|
+
},
|
|
624
|
+
isDeleted() {
|
|
625
|
+
return !this.$$.ptr;
|
|
626
|
+
},
|
|
627
|
+
deleteLater() {
|
|
628
|
+
return this.$$.ptr || Bt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && C("Object already scheduled for deletion"), this.$$.deleteScheduled = !0, this;
|
|
991
629
|
}
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
var
|
|
1003
|
-
t =
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
630
|
+
});
|
|
631
|
+
const t = Symbol.dispose;
|
|
632
|
+
t && (e[t] = e.delete);
|
|
633
|
+
};
|
|
634
|
+
function Tt() {
|
|
635
|
+
}
|
|
636
|
+
var Ut = (e, t) => Object.defineProperty(t, "name", {
|
|
637
|
+
value: e
|
|
638
|
+
}), ue = {}, ce = (e, t, r) => {
|
|
639
|
+
if (e[t].overloadTable === void 0) {
|
|
640
|
+
var n = e[t];
|
|
641
|
+
e[t] = function() {
|
|
642
|
+
for (var a = arguments.length, i = new Array(a), u = 0; u < a; u++)
|
|
643
|
+
i[u] = arguments[u];
|
|
644
|
+
return e[t].overloadTable.hasOwnProperty(i.length) || C(`Function '${r}' called with an invalid number of arguments (${i.length}) - expects one of (${e[t].overloadTable})!`), e[t].overloadTable[i.length].apply(this, i);
|
|
645
|
+
}, e[t].overloadTable = [], e[t].overloadTable[n.argCount] = n;
|
|
646
|
+
}
|
|
647
|
+
}, le = (e, t, r) => {
|
|
648
|
+
c.hasOwnProperty(e) ? ((r === void 0 || c[e].overloadTable !== void 0 && c[e].overloadTable[r] !== void 0) && C(`Cannot register public name '${e}' twice`), ce(c, e, e), c[e].overloadTable.hasOwnProperty(r) && C(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`), c[e].overloadTable[r] = t) : (c[e] = t, c[e].argCount = r);
|
|
649
|
+
}, Or = 48, xr = 57, Ar = (e) => {
|
|
650
|
+
e = e.replace(/[^a-zA-Z0-9_]/g, "$");
|
|
651
|
+
var t = e.charCodeAt(0);
|
|
652
|
+
return t >= Or && t <= xr ? `_${e}` : e;
|
|
653
|
+
};
|
|
654
|
+
function Sr(e, t, r, n, a, i, u, s) {
|
|
655
|
+
this.name = e, this.constructor = t, this.instancePrototype = r, this.rawDestructor = n, this.baseClass = a, this.getActualType = i, this.upcast = u, this.downcast = s, this.pureVirtualFunctions = [];
|
|
656
|
+
}
|
|
657
|
+
var Vt = (e, t, r) => {
|
|
658
|
+
for (; t !== r; )
|
|
659
|
+
t.upcast || C(`Expected null or instance of ${r.name}, got an instance of ${t.name}`), e = t.upcast(e), t = t.baseClass;
|
|
660
|
+
return e;
|
|
661
|
+
};
|
|
662
|
+
function Ir(e, t) {
|
|
663
|
+
if (t === null)
|
|
664
|
+
return this.isReference && C(`null is not a valid ${this.name}`), 0;
|
|
665
|
+
t.$$ || C(`Cannot pass "${embindRepr(t)}" as a ${this.name}`), t.$$.ptr || C(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
666
|
+
var r = t.$$.ptrType.registeredClass, n = Vt(t.$$.ptr, r, this.registeredClass);
|
|
667
|
+
return n;
|
|
668
|
+
}
|
|
669
|
+
function Dr(e, t) {
|
|
670
|
+
var r;
|
|
671
|
+
if (t === null)
|
|
672
|
+
return this.isReference && C(`null is not a valid ${this.name}`), this.isSmartPointer ? (r = this.rawConstructor(), e !== null && e.push(this.rawDestructor, r), r) : 0;
|
|
673
|
+
(!t || !t.$$) && C(`Cannot pass "${embindRepr(t)}" as a ${this.name}`), t.$$.ptr || C(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && t.$$.ptrType.isConst && C(`Cannot convert argument of type ${t.$$.smartPtrType ? t.$$.smartPtrType.name : t.$$.ptrType.name} to parameter type ${this.name}`);
|
|
674
|
+
var n = t.$$.ptrType.registeredClass;
|
|
675
|
+
if (r = Vt(t.$$.ptr, n, this.registeredClass), this.isSmartPointer)
|
|
676
|
+
switch (t.$$.smartPtr === void 0 && C("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) {
|
|
677
|
+
case 0:
|
|
678
|
+
t.$$.smartPtrType === this ? r = t.$$.smartPtr : C(`Cannot convert argument of type ${t.$$.smartPtrType ? t.$$.smartPtrType.name : t.$$.ptrType.name} to parameter type ${this.name}`);
|
|
679
|
+
break;
|
|
1011
680
|
case 1:
|
|
1012
|
-
|
|
681
|
+
r = t.$$.smartPtr;
|
|
682
|
+
break;
|
|
1013
683
|
case 2:
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
684
|
+
if (t.$$.smartPtrType === this)
|
|
685
|
+
r = t.$$.smartPtr;
|
|
686
|
+
else {
|
|
687
|
+
var a = t.clone();
|
|
688
|
+
r = this.rawShare(r, G.toHandle(() => a.delete())), e !== null && e.push(this.rawDestructor, r);
|
|
689
|
+
}
|
|
690
|
+
break;
|
|
1017
691
|
default:
|
|
1018
|
-
|
|
1019
|
-
}
|
|
1020
|
-
}, bn = (t, e, r, n, a) => {
|
|
1021
|
-
e = F(e);
|
|
1022
|
-
var o = (h) => h;
|
|
1023
|
-
if (n === 0) {
|
|
1024
|
-
var u = 32 - 8 * r;
|
|
1025
|
-
o = (h) => h << u >>> u;
|
|
1026
|
-
}
|
|
1027
|
-
var s = e.includes("unsigned"), l = (h, y) => {
|
|
1028
|
-
}, d;
|
|
1029
|
-
s ? d = function(h, y) {
|
|
1030
|
-
return l(y, this.name), y >>> 0;
|
|
1031
|
-
} : d = function(h, y) {
|
|
1032
|
-
return l(y, this.name), y;
|
|
1033
|
-
}, W(t, {
|
|
1034
|
-
name: e,
|
|
1035
|
-
fromWireType: o,
|
|
1036
|
-
toWireType: d,
|
|
1037
|
-
argPackAdvance: N,
|
|
1038
|
-
readValueFromPointer: $n(e, r, n !== 0),
|
|
1039
|
-
destructorFunction: null
|
|
1040
|
-
});
|
|
1041
|
-
}, Cn = (t, e, r) => {
|
|
1042
|
-
var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], a = n[e];
|
|
1043
|
-
function o(u) {
|
|
1044
|
-
var s = P[u >> 2], l = P[u + 4 >> 2];
|
|
1045
|
-
return new a(H.buffer, l, s);
|
|
1046
|
-
}
|
|
1047
|
-
r = F(r), W(t, {
|
|
1048
|
-
name: r,
|
|
1049
|
-
fromWireType: o,
|
|
1050
|
-
argPackAdvance: N,
|
|
1051
|
-
readValueFromPointer: o
|
|
1052
|
-
}, {
|
|
1053
|
-
ignoreDuplicateRegistrations: !0
|
|
1054
|
-
});
|
|
1055
|
-
}, Tn = Object.assign({
|
|
1056
|
-
optional: !0
|
|
1057
|
-
}, Ee), Pn = (t, e) => {
|
|
1058
|
-
W(t, Tn);
|
|
1059
|
-
}, _n = (t, e, r, n) => {
|
|
1060
|
-
if (!(n > 0)) return 0;
|
|
1061
|
-
for (var a = r, o = r + n - 1, u = 0; u < t.length; ++u) {
|
|
1062
|
-
var s = t.charCodeAt(u);
|
|
1063
|
-
if (s >= 55296 && s <= 57343) {
|
|
1064
|
-
var l = t.charCodeAt(++u);
|
|
1065
|
-
s = 65536 + ((s & 1023) << 10) | l & 1023;
|
|
1066
|
-
}
|
|
1067
|
-
if (s <= 127) {
|
|
1068
|
-
if (r >= o) break;
|
|
1069
|
-
e[r++] = s;
|
|
1070
|
-
} else if (s <= 2047) {
|
|
1071
|
-
if (r + 1 >= o) break;
|
|
1072
|
-
e[r++] = 192 | s >> 6, e[r++] = 128 | s & 63;
|
|
1073
|
-
} else if (s <= 65535) {
|
|
1074
|
-
if (r + 2 >= o) break;
|
|
1075
|
-
e[r++] = 224 | s >> 12, e[r++] = 128 | s >> 6 & 63, e[r++] = 128 | s & 63;
|
|
1076
|
-
} else {
|
|
1077
|
-
if (r + 3 >= o) break;
|
|
1078
|
-
e[r++] = 240 | s >> 18, e[r++] = 128 | s >> 12 & 63, e[r++] = 128 | s >> 6 & 63, e[r++] = 128 | s & 63;
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
return e[r] = 0, r - a;
|
|
1082
|
-
}, dt = (t, e, r) => _n(t, B, e, r), En = (t) => {
|
|
1083
|
-
for (var e = 0, r = 0; r < t.length; ++r) {
|
|
1084
|
-
var n = t.charCodeAt(r);
|
|
1085
|
-
n <= 127 ? e++ : n <= 2047 ? e += 2 : n >= 55296 && n <= 57343 ? (e += 4, ++r) : e += 3;
|
|
692
|
+
C("Unsupporting sharing policy");
|
|
1086
693
|
}
|
|
694
|
+
return r;
|
|
695
|
+
}
|
|
696
|
+
function Mr(e, t) {
|
|
697
|
+
if (t === null)
|
|
698
|
+
return this.isReference && C(`null is not a valid ${this.name}`), 0;
|
|
699
|
+
t.$$ || C(`Cannot pass "${embindRepr(t)}" as a ${this.name}`), t.$$.ptr || C(`Cannot pass deleted object as a pointer of type ${this.name}`), t.$$.ptrType.isConst && C(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);
|
|
700
|
+
var r = t.$$.ptrType.registeredClass, n = Vt(t.$$.ptr, r, this.registeredClass);
|
|
701
|
+
return n;
|
|
702
|
+
}
|
|
703
|
+
var fe = (e, t, r) => {
|
|
704
|
+
if (t === r)
|
|
1087
705
|
return e;
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
706
|
+
if (r.baseClass === void 0)
|
|
707
|
+
return null;
|
|
708
|
+
var n = fe(e, t, r.baseClass);
|
|
709
|
+
return n === null ? null : r.downcast(n);
|
|
710
|
+
}, Fr = {}, Rr = (e, t) => {
|
|
711
|
+
for (t === void 0 && C("ptr should not be undefined"); e.baseClass; )
|
|
712
|
+
t = e.upcast(t), e = e.baseClass;
|
|
713
|
+
return t;
|
|
714
|
+
}, jr = (e, t) => (t = Rr(e, t), Fr[t]), Pt = (e, t) => {
|
|
715
|
+
(!t.ptrType || !t.ptr) && Ct("makeClassHandle requires ptr and ptrType");
|
|
716
|
+
var r = !!t.smartPtrType, n = !!t.smartPtr;
|
|
717
|
+
return r !== n && Ct("Both smartPtrType and smartPtr must be specified"), t.count = {
|
|
718
|
+
value: 1
|
|
719
|
+
}, dt(Object.create(e, {
|
|
720
|
+
$$: {
|
|
721
|
+
value: t,
|
|
722
|
+
writable: !0
|
|
723
|
+
}
|
|
724
|
+
}));
|
|
725
|
+
};
|
|
726
|
+
function Lr(e) {
|
|
727
|
+
var t = this.getPointee(e);
|
|
728
|
+
if (!t)
|
|
729
|
+
return this.destructor(e), null;
|
|
730
|
+
var r = jr(this.registeredClass, t);
|
|
731
|
+
if (r !== void 0) {
|
|
732
|
+
if (r.$$.count.value === 0)
|
|
733
|
+
return r.$$.ptr = t, r.$$.smartPtr = e, r.clone();
|
|
734
|
+
var n = r.clone();
|
|
735
|
+
return this.destructor(e), n;
|
|
736
|
+
}
|
|
737
|
+
function a() {
|
|
738
|
+
return this.isSmartPointer ? Pt(this.registeredClass.instancePrototype, {
|
|
739
|
+
ptrType: this.pointeeType,
|
|
740
|
+
ptr: t,
|
|
741
|
+
smartPtrType: this,
|
|
742
|
+
smartPtr: e
|
|
743
|
+
}) : Pt(this.registeredClass.instancePrototype, {
|
|
744
|
+
ptrType: this,
|
|
745
|
+
ptr: e
|
|
746
|
+
});
|
|
747
|
+
}
|
|
748
|
+
var i = this.registeredClass.getActualType(t), u = ue[i];
|
|
749
|
+
if (!u)
|
|
750
|
+
return a.call(this);
|
|
751
|
+
var s;
|
|
752
|
+
this.isConst ? s = u.constPointerType : s = u.pointerType;
|
|
753
|
+
var l = fe(t, this.registeredClass, s.registeredClass);
|
|
754
|
+
return l === null ? a.call(this) : this.isSmartPointer ? Pt(s.registeredClass.instancePrototype, {
|
|
755
|
+
ptrType: s,
|
|
756
|
+
ptr: l,
|
|
757
|
+
smartPtrType: this,
|
|
758
|
+
smartPtr: e
|
|
759
|
+
}) : Pt(s.registeredClass.instancePrototype, {
|
|
760
|
+
ptrType: s,
|
|
761
|
+
ptr: l
|
|
762
|
+
});
|
|
763
|
+
}
|
|
764
|
+
var Br = () => {
|
|
765
|
+
Object.assign(Et.prototype, {
|
|
766
|
+
getPointee(e) {
|
|
767
|
+
return this.rawGetPointee && (e = this.rawGetPointee(e)), e;
|
|
768
|
+
},
|
|
769
|
+
destructor(e) {
|
|
770
|
+
var t;
|
|
771
|
+
(t = this.rawDestructor) === null || t === void 0 || t.call(this, e);
|
|
772
|
+
},
|
|
773
|
+
argPackAdvance: N,
|
|
774
|
+
readValueFromPointer: lt,
|
|
775
|
+
fromWireType: Lr
|
|
776
|
+
});
|
|
777
|
+
};
|
|
778
|
+
function Et(e, t, r, n, a, i, u, s, l, d, h) {
|
|
779
|
+
this.name = e, this.registeredClass = t, this.isReference = r, this.isConst = n, this.isSmartPointer = a, this.pointeeType = i, this.sharingPolicy = u, this.rawGetPointee = s, this.rawConstructor = l, this.rawShare = d, this.rawDestructor = h, !a && t.baseClass === void 0 ? n ? (this.toWireType = Ir, this.destructorFunction = null) : (this.toWireType = Mr, this.destructorFunction = null) : this.toWireType = Dr;
|
|
780
|
+
}
|
|
781
|
+
var de = (e, t, r) => {
|
|
782
|
+
c.hasOwnProperty(e) || Ct("Replacing nonexistent public symbol"), c[e].overloadTable !== void 0 && r !== void 0 ? c[e].overloadTable[r] = t : (c[e] = t, c[e].argCount = r);
|
|
783
|
+
}, he = [], pe, g = (e) => {
|
|
784
|
+
var t = he[e];
|
|
785
|
+
return t || (he[e] = t = pe.get(e)), t;
|
|
786
|
+
}, Wr = function(e, t) {
|
|
787
|
+
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
788
|
+
if (e.includes("j"))
|
|
789
|
+
return dynCallLegacy(e, t, r);
|
|
790
|
+
var n = g(t), a = n(...r);
|
|
791
|
+
return a;
|
|
792
|
+
}, Ur = function(e, t) {
|
|
793
|
+
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
794
|
+
return function() {
|
|
795
|
+
for (var n = arguments.length, a = new Array(n), i = 0; i < n; i++)
|
|
796
|
+
a[i] = arguments[i];
|
|
797
|
+
return Wr(e, t, a, r);
|
|
798
|
+
};
|
|
799
|
+
}, U = function(e, t) {
|
|
800
|
+
e = R(e);
|
|
801
|
+
function r() {
|
|
802
|
+
if (e.includes("j"))
|
|
803
|
+
return Ur(e, t);
|
|
804
|
+
var a = g(t);
|
|
805
|
+
return a;
|
|
806
|
+
}
|
|
807
|
+
var n = r();
|
|
808
|
+
return typeof n != "function" && C(`unknown function pointer with signature ${e}: ${t}`), n;
|
|
809
|
+
};
|
|
810
|
+
class Vr extends Error {
|
|
811
|
+
}
|
|
812
|
+
var ve = (e) => {
|
|
813
|
+
var t = Nn(e), r = R(t);
|
|
814
|
+
return et(t), r;
|
|
815
|
+
}, _t = (e, t) => {
|
|
816
|
+
var r = [], n = {};
|
|
817
|
+
function a(i) {
|
|
818
|
+
if (!n[i] && !K[i]) {
|
|
819
|
+
if (bt[i]) {
|
|
820
|
+
bt[i].forEach(a);
|
|
821
|
+
return;
|
|
1110
822
|
}
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
else
|
|
1139
|
-
for (var l = 0; l < a; ++l)
|
|
1140
|
-
B[s + l] = n[l];
|
|
1141
|
-
return r !== null && r.push(X, u), u;
|
|
1142
|
-
},
|
|
1143
|
-
argPackAdvance: N,
|
|
1144
|
-
readValueFromPointer: lt,
|
|
1145
|
-
destructorFunction(r) {
|
|
1146
|
-
X(r);
|
|
823
|
+
r.push(i), n[i] = !0;
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
throw t.forEach(a), new Vr(`${e}: ` + r.map(ve).join([", "]));
|
|
827
|
+
}, kr = (e, t, r, n, a, i, u, s, l, d, h, p, w) => {
|
|
828
|
+
h = R(h), i = U(a, i), s && (s = U(u, s)), d && (d = U(l, d)), w = U(p, w);
|
|
829
|
+
var b = Ar(h);
|
|
830
|
+
le(b, function() {
|
|
831
|
+
_t(`Cannot construct ${h} due to unbound types`, [n]);
|
|
832
|
+
}), tt([e, t, r], n ? [n] : [], (_) => {
|
|
833
|
+
_ = _[0];
|
|
834
|
+
var S, A;
|
|
835
|
+
n ? (S = _.registeredClass, A = S.instancePrototype) : A = Tt.prototype;
|
|
836
|
+
var I = Ut(h, function() {
|
|
837
|
+
if (Object.getPrototypeOf(this) !== X)
|
|
838
|
+
throw new ft(`Use 'new' to construct ${h}`);
|
|
839
|
+
if (L.constructor_body === void 0)
|
|
840
|
+
throw new ft(`${h} has no accessible constructor`);
|
|
841
|
+
for (var Oe = arguments.length, xt = new Array(Oe), At = 0; At < Oe; At++)
|
|
842
|
+
xt[At] = arguments[At];
|
|
843
|
+
var xe = L.constructor_body[xt.length];
|
|
844
|
+
if (xe === void 0)
|
|
845
|
+
throw new ft(`Tried to invoke ctor of ${h} with invalid number of parameters (${xt.length}) - expected (${Object.keys(L.constructor_body).toString()}) parameters instead!`);
|
|
846
|
+
return xe.apply(this, xt);
|
|
847
|
+
}), X = Object.create(A, {
|
|
848
|
+
constructor: {
|
|
849
|
+
value: I
|
|
1147
850
|
}
|
|
1148
851
|
});
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
if (
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
852
|
+
I.prototype = X;
|
|
853
|
+
var L = new Sr(h, I, X, w, S, i, s, d);
|
|
854
|
+
if (L.baseClass) {
|
|
855
|
+
var W, Ot;
|
|
856
|
+
(Ot = (W = L.baseClass).__derivedClasses) !== null && Ot !== void 0 || (W.__derivedClasses = []), L.baseClass.__derivedClasses.push(L);
|
|
857
|
+
}
|
|
858
|
+
var ja = new Et(h, L, !0, !1, !1), Ee = new Et(h + "*", L, !1, !1, !1), _e = new Et(h + " const*", L, !1, !0, !1);
|
|
859
|
+
return ue[e] = {
|
|
860
|
+
pointerType: Ee,
|
|
861
|
+
constPointerType: _e
|
|
862
|
+
}, de(b, I), [ja, Ee, _e];
|
|
863
|
+
});
|
|
864
|
+
}, kt = (e, t) => {
|
|
865
|
+
for (var r = [], n = 0; n < e; n++)
|
|
866
|
+
r.push(P[t + n * 4 >> 2]);
|
|
867
|
+
return r;
|
|
868
|
+
};
|
|
869
|
+
function Hr(e) {
|
|
870
|
+
for (var t = 1; t < e.length; ++t)
|
|
871
|
+
if (e[t] !== null && e[t].destructorFunction === void 0)
|
|
872
|
+
return !0;
|
|
873
|
+
return !1;
|
|
874
|
+
}
|
|
875
|
+
function Ht(e, t, r, n, a, i) {
|
|
876
|
+
var u = t.length;
|
|
877
|
+
u < 2 && C("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
878
|
+
var s = t[1] !== null && r !== null, l = Hr(t), d = t[0].name !== "void", h = u - 2, p = new Array(h), w = [], b = [], _ = function() {
|
|
879
|
+
b.length = 0;
|
|
880
|
+
var S;
|
|
881
|
+
w.length = s ? 2 : 1, w[0] = a, s && (S = t[1].toWireType(b, this), w[1] = S);
|
|
882
|
+
for (var A = 0; A < h; ++A)
|
|
883
|
+
p[A] = t[A + 2].toWireType(b, A < 0 || arguments.length <= A ? void 0 : arguments[A]), w.push(p[A]);
|
|
884
|
+
var I = n(...w);
|
|
885
|
+
function X(L) {
|
|
886
|
+
if (l)
|
|
887
|
+
Lt(b);
|
|
888
|
+
else
|
|
889
|
+
for (var W = s ? 1 : 2; W < t.length; W++) {
|
|
890
|
+
var Ot = W === 1 ? S : p[W - 2];
|
|
891
|
+
t[W].destructorFunction !== null && t[W].destructorFunction(Ot);
|
|
892
|
+
}
|
|
893
|
+
if (d)
|
|
894
|
+
return t[0].fromWireType(L);
|
|
1176
895
|
}
|
|
1177
|
-
return
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
896
|
+
return X(I);
|
|
897
|
+
};
|
|
898
|
+
return Ut(e, _);
|
|
899
|
+
}
|
|
900
|
+
var Nr = (e, t, r, n, a, i) => {
|
|
901
|
+
var u = kt(t, r);
|
|
902
|
+
a = U(n, a), tt([], [e], (s) => {
|
|
903
|
+
s = s[0];
|
|
904
|
+
var l = `constructor ${s.name}`;
|
|
905
|
+
if (s.registeredClass.constructor_body === void 0 && (s.registeredClass.constructor_body = []), s.registeredClass.constructor_body[t - 1] !== void 0)
|
|
906
|
+
throw new ft(`Cannot register multiple constructors with identical number of parameters (${t - 1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
907
|
+
return s.registeredClass.constructor_body[t - 1] = () => {
|
|
908
|
+
_t(`Cannot construct ${s.name} due to unbound types`, u);
|
|
909
|
+
}, tt([], u, (d) => (d.splice(1, 0, null), s.registeredClass.constructor_body[t - 1] = Ht(l, d, null, a, i), [])), [];
|
|
910
|
+
});
|
|
911
|
+
}, ye = (e) => {
|
|
912
|
+
e = e.trim();
|
|
913
|
+
const t = e.indexOf("(");
|
|
914
|
+
return t === -1 ? e : e.slice(0, t);
|
|
915
|
+
}, zr = (e, t, r, n, a, i, u, s, l, d) => {
|
|
916
|
+
var h = kt(r, n);
|
|
917
|
+
t = R(t), t = ye(t), i = U(a, i), tt([], [e], (p) => {
|
|
918
|
+
p = p[0];
|
|
919
|
+
var w = `${p.name}.${t}`;
|
|
920
|
+
t.startsWith("@@") && (t = Symbol[t.substring(2)]), s && p.registeredClass.pureVirtualFunctions.push(t);
|
|
921
|
+
function b() {
|
|
922
|
+
_t(`Cannot call ${w} due to unbound types`, h);
|
|
923
|
+
}
|
|
924
|
+
var _ = p.registeredClass.instancePrototype, S = _[t];
|
|
925
|
+
return S === void 0 || S.overloadTable === void 0 && S.className !== p.name && S.argCount === r - 2 ? (b.argCount = r - 2, b.className = p.name, _[t] = b) : (ce(_, t, w), _[t].overloadTable[r - 2] = b), tt([], h, (A) => {
|
|
926
|
+
var I = Ht(w, A, p, i, u);
|
|
927
|
+
return _[t].overloadTable === void 0 ? (I.argCount = r - 2, _[t] = I) : _[t].overloadTable[r - 2] = I, [];
|
|
928
|
+
}), [];
|
|
929
|
+
});
|
|
930
|
+
}, Nt = [], z = [], zt = (e) => {
|
|
931
|
+
e > 9 && --z[e + 1] === 0 && (z[e] = void 0, Nt.push(e));
|
|
932
|
+
}, Gr = () => z.length / 2 - 5 - Nt.length, Xr = () => {
|
|
933
|
+
z.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1), c.count_emval_handles = Gr;
|
|
934
|
+
}, G = {
|
|
935
|
+
toValue: (e) => (e || C(`Cannot use deleted val. handle = ${e}`), z[e]),
|
|
936
|
+
toHandle: (e) => {
|
|
937
|
+
switch (e) {
|
|
938
|
+
case void 0:
|
|
939
|
+
return 2;
|
|
940
|
+
case null:
|
|
941
|
+
return 4;
|
|
942
|
+
case !0:
|
|
943
|
+
return 6;
|
|
944
|
+
case !1:
|
|
945
|
+
return 8;
|
|
946
|
+
default: {
|
|
947
|
+
const t = Nt.pop() || z.length;
|
|
948
|
+
return z[t] = e, z[t + 1] = 1, t;
|
|
1186
949
|
}
|
|
1187
|
-
if (rt[e >> 2] = s, e += 4, e + 4 > o) break;
|
|
1188
950
|
}
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
951
|
+
}
|
|
952
|
+
}, me = {
|
|
953
|
+
name: "emscripten::val",
|
|
954
|
+
fromWireType: (e) => {
|
|
955
|
+
var t = G.toValue(e);
|
|
956
|
+
return zt(e), t;
|
|
957
|
+
},
|
|
958
|
+
toWireType: (e, t) => G.toHandle(t),
|
|
959
|
+
argPackAdvance: N,
|
|
960
|
+
readValueFromPointer: lt,
|
|
961
|
+
destructorFunction: null
|
|
962
|
+
}, qr = (e) => V(e, me), Yr = (e, t) => {
|
|
963
|
+
switch (t) {
|
|
964
|
+
case 4:
|
|
965
|
+
return function(r) {
|
|
966
|
+
return this.fromWireType(Kt[r >> 2]);
|
|
967
|
+
};
|
|
968
|
+
case 8:
|
|
969
|
+
return function(r) {
|
|
970
|
+
return this.fromWireType(te[r >> 3]);
|
|
971
|
+
};
|
|
972
|
+
default:
|
|
973
|
+
throw new TypeError(`invalid float width (${t}): ${e}`);
|
|
974
|
+
}
|
|
975
|
+
}, Zr = (e, t, r) => {
|
|
976
|
+
t = R(t), V(e, {
|
|
977
|
+
name: t,
|
|
978
|
+
fromWireType: (n) => n,
|
|
979
|
+
toWireType: (n, a) => a,
|
|
980
|
+
argPackAdvance: N,
|
|
981
|
+
readValueFromPointer: Yr(t, r),
|
|
982
|
+
destructorFunction: null
|
|
983
|
+
});
|
|
984
|
+
}, Qr = (e, t, r, n, a, i, u, s) => {
|
|
985
|
+
var l = kt(t, r);
|
|
986
|
+
e = R(e), e = ye(e), a = U(n, a), le(e, function() {
|
|
987
|
+
_t(`Cannot call ${e} due to unbound types`, l);
|
|
988
|
+
}, t - 1), tt([], l, (d) => {
|
|
989
|
+
var h = [d[0], null].concat(d.slice(1));
|
|
990
|
+
return de(e, Ht(e, h, null, a, i), t - 1), [];
|
|
991
|
+
});
|
|
992
|
+
}, Jr = (e, t, r) => {
|
|
993
|
+
switch (t) {
|
|
994
|
+
case 1:
|
|
995
|
+
return r ? (n) => Q[n] : (n) => B[n];
|
|
996
|
+
case 2:
|
|
997
|
+
return r ? (n) => ut[n >> 1] : (n) => vt[n >> 1];
|
|
998
|
+
case 4:
|
|
999
|
+
return r ? (n) => at[n >> 2] : (n) => P[n >> 2];
|
|
1000
|
+
default:
|
|
1001
|
+
throw new TypeError(`invalid integer width (${t}): ${e}`);
|
|
1002
|
+
}
|
|
1003
|
+
}, Kr = (e, t, r, n, a) => {
|
|
1004
|
+
t = R(t);
|
|
1005
|
+
var i = (h) => h;
|
|
1006
|
+
if (n === 0) {
|
|
1007
|
+
var u = 32 - 8 * r;
|
|
1008
|
+
i = (h) => h << u >>> u;
|
|
1009
|
+
}
|
|
1010
|
+
var s = t.includes("unsigned"), l = (h, p) => {
|
|
1011
|
+
}, d;
|
|
1012
|
+
s ? d = function(h, p) {
|
|
1013
|
+
return l(p, this.name), p >>> 0;
|
|
1014
|
+
} : d = function(h, p) {
|
|
1015
|
+
return l(p, this.name), p;
|
|
1016
|
+
}, V(e, {
|
|
1017
|
+
name: t,
|
|
1018
|
+
fromWireType: i,
|
|
1019
|
+
toWireType: d,
|
|
1020
|
+
argPackAdvance: N,
|
|
1021
|
+
readValueFromPointer: Jr(t, r, n !== 0),
|
|
1022
|
+
destructorFunction: null
|
|
1023
|
+
});
|
|
1024
|
+
}, tn = (e, t, r) => {
|
|
1025
|
+
var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], a = n[t];
|
|
1026
|
+
function i(u) {
|
|
1027
|
+
var s = P[u >> 2], l = P[u + 4 >> 2];
|
|
1028
|
+
return new a(Q.buffer, l, s);
|
|
1029
|
+
}
|
|
1030
|
+
r = R(r), V(e, {
|
|
1031
|
+
name: r,
|
|
1032
|
+
fromWireType: i,
|
|
1033
|
+
argPackAdvance: N,
|
|
1034
|
+
readValueFromPointer: i
|
|
1035
|
+
}, {
|
|
1036
|
+
ignoreDuplicateRegistrations: !0
|
|
1037
|
+
});
|
|
1038
|
+
}, en = Object.assign({
|
|
1039
|
+
optional: !0
|
|
1040
|
+
}, me), rn = (e, t) => {
|
|
1041
|
+
V(e, en);
|
|
1042
|
+
}, nn = (e, t, r, n) => {
|
|
1043
|
+
if (!(n > 0)) return 0;
|
|
1044
|
+
for (var a = r, i = r + n - 1, u = 0; u < e.length; ++u) {
|
|
1045
|
+
var s = e.charCodeAt(u);
|
|
1046
|
+
if (s >= 55296 && s <= 57343) {
|
|
1047
|
+
var l = e.charCodeAt(++u);
|
|
1048
|
+
s = 65536 + ((s & 1023) << 10) | l & 1023;
|
|
1049
|
+
}
|
|
1050
|
+
if (s <= 127) {
|
|
1051
|
+
if (r >= i) break;
|
|
1052
|
+
t[r++] = s;
|
|
1053
|
+
} else if (s <= 2047) {
|
|
1054
|
+
if (r + 1 >= i) break;
|
|
1055
|
+
t[r++] = 192 | s >> 6, t[r++] = 128 | s & 63;
|
|
1056
|
+
} else if (s <= 65535) {
|
|
1057
|
+
if (r + 2 >= i) break;
|
|
1058
|
+
t[r++] = 224 | s >> 12, t[r++] = 128 | s >> 6 & 63, t[r++] = 128 | s & 63;
|
|
1059
|
+
} else {
|
|
1060
|
+
if (r + 3 >= i) break;
|
|
1061
|
+
t[r++] = 240 | s >> 18, t[r++] = 128 | s >> 12 & 63, t[r++] = 128 | s >> 6 & 63, t[r++] = 128 | s & 63;
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
return t[r] = 0, r - a;
|
|
1065
|
+
}, it = (e, t, r) => nn(e, B, t, r), ge = (e) => {
|
|
1066
|
+
for (var t = 0, r = 0; r < e.length; ++r) {
|
|
1067
|
+
var n = e.charCodeAt(r);
|
|
1068
|
+
n <= 127 ? t++ : n <= 2047 ? t += 2 : n >= 55296 && n <= 57343 ? (t += 4, ++r) : t += 3;
|
|
1069
|
+
}
|
|
1070
|
+
return t;
|
|
1071
|
+
}, we = typeof TextDecoder < "u" ? new TextDecoder() : void 0, $e = function(e) {
|
|
1072
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : NaN;
|
|
1073
|
+
for (var n = t + r, a = t; e[a] && !(a >= n); ) ++a;
|
|
1074
|
+
if (a - t > 16 && e.buffer && we)
|
|
1075
|
+
return we.decode(e.subarray(t, a));
|
|
1076
|
+
for (var i = ""; t < a; ) {
|
|
1077
|
+
var u = e[t++];
|
|
1078
|
+
if (!(u & 128)) {
|
|
1079
|
+
i += String.fromCharCode(u);
|
|
1080
|
+
continue;
|
|
1081
|
+
}
|
|
1082
|
+
var s = e[t++] & 63;
|
|
1083
|
+
if ((u & 224) == 192) {
|
|
1084
|
+
i += String.fromCharCode((u & 31) << 6 | s);
|
|
1085
|
+
continue;
|
|
1086
|
+
}
|
|
1087
|
+
var l = e[t++] & 63;
|
|
1088
|
+
if ((u & 240) == 224 ? u = (u & 15) << 12 | s << 6 | l : u = (u & 7) << 18 | s << 12 | l << 6 | e[t++] & 63, u < 65536)
|
|
1089
|
+
i += String.fromCharCode(u);
|
|
1090
|
+
else {
|
|
1091
|
+
var d = u - 65536;
|
|
1092
|
+
i += String.fromCharCode(55296 | d >> 10, 56320 | d & 1023);
|
|
1194
1093
|
}
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
d === void 0 ? d = _ : (d += "\0", d += _), h = $ + e;
|
|
1207
|
-
}
|
|
1094
|
+
}
|
|
1095
|
+
return i;
|
|
1096
|
+
}, an = (e, t) => e ? $e(B, e, t) : "", on = (e, t) => {
|
|
1097
|
+
t = R(t), V(e, {
|
|
1098
|
+
name: t,
|
|
1099
|
+
fromWireType(r) {
|
|
1100
|
+
for (var n = P[r >> 2], a = r + 4, i, s, u = a, s = 0; s <= n; ++s) {
|
|
1101
|
+
var l = a + s;
|
|
1102
|
+
if (s == n || B[l] == 0) {
|
|
1103
|
+
var d = l - u, h = an(u, d);
|
|
1104
|
+
i === void 0 ? i = h : (i += "\0", i += h), u = l + 1;
|
|
1208
1105
|
}
|
|
1209
|
-
return X(s), d;
|
|
1210
|
-
},
|
|
1211
|
-
toWireType: (s, l) => {
|
|
1212
|
-
typeof l != "string" && b(`Cannot pass non-string to C++ string type ${r}`);
|
|
1213
|
-
var d = u(l), h = ee(4 + d + e);
|
|
1214
|
-
return P[h >> 2] = d / e, a(l, h + 4, d + e), s !== null && s.push(X, h), h;
|
|
1215
|
-
},
|
|
1216
|
-
argPackAdvance: N,
|
|
1217
|
-
readValueFromPointer: lt,
|
|
1218
|
-
destructorFunction(s) {
|
|
1219
|
-
X(s);
|
|
1220
1106
|
}
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
getterContext: o,
|
|
1235
|
-
setterArgumentType: u,
|
|
1236
|
-
setter: U(s, l),
|
|
1237
|
-
setterContext: d
|
|
1238
|
-
});
|
|
1239
|
-
}, Bn = (t, e) => {
|
|
1240
|
-
e = F(e), W(t, {
|
|
1241
|
-
isVoid: !0,
|
|
1242
|
-
name: e,
|
|
1243
|
-
argPackAdvance: 0,
|
|
1244
|
-
fromWireType: () => {
|
|
1245
|
-
},
|
|
1246
|
-
toWireType: (r, n) => {
|
|
1247
|
-
}
|
|
1248
|
-
});
|
|
1249
|
-
}, Un = (t, e, r) => B.copyWithin(t, e, e + r), Kt = [], Wn = (t, e, r, n) => (t = Kt[t], e = G.toValue(e), t(null, e, r, n)), kn = {}, Hn = (t) => {
|
|
1250
|
-
var e = kn[t];
|
|
1251
|
-
return e === void 0 ? F(t) : e;
|
|
1252
|
-
}, xe = () => {
|
|
1253
|
-
if (typeof globalThis == "object")
|
|
1254
|
-
return globalThis;
|
|
1255
|
-
function t(e) {
|
|
1256
|
-
e.$$$embind_global$$$ = e;
|
|
1257
|
-
var r = typeof $$$embind_global$$$ == "object" && e.$$$embind_global$$$ == e;
|
|
1258
|
-
return r || delete e.$$$embind_global$$$, r;
|
|
1107
|
+
return et(r), i;
|
|
1108
|
+
},
|
|
1109
|
+
toWireType(r, n) {
|
|
1110
|
+
n instanceof ArrayBuffer && (n = new Uint8Array(n));
|
|
1111
|
+
var a, i = typeof n == "string";
|
|
1112
|
+
i || ArrayBuffer.isView(n) && n.BYTES_PER_ELEMENT == 1 || C("Cannot pass non-string to std::string"), i ? a = ge(n) : a = n.length;
|
|
1113
|
+
var u = Pe(4 + a + 1), s = u + 4;
|
|
1114
|
+
return P[u >> 2] = a, i ? it(n, s, a + 1) : B.set(n, s), r !== null && r.push(et, u), u;
|
|
1115
|
+
},
|
|
1116
|
+
argPackAdvance: N,
|
|
1117
|
+
readValueFromPointer: lt,
|
|
1118
|
+
destructorFunction(r) {
|
|
1119
|
+
et(r);
|
|
1259
1120
|
}
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
var
|
|
1275
|
-
|
|
1276
|
-
}
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1121
|
+
});
|
|
1122
|
+
}, be = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, sn = (e, t) => {
|
|
1123
|
+
for (var r = e, n = r >> 1, a = n + t / 2; !(n >= a) && vt[n]; ) ++n;
|
|
1124
|
+
if (r = n << 1, r - e > 32 && be) return be.decode(B.subarray(e, r));
|
|
1125
|
+
for (var i = "", u = 0; !(u >= t / 2); ++u) {
|
|
1126
|
+
var s = ut[e + u * 2 >> 1];
|
|
1127
|
+
if (s == 0) break;
|
|
1128
|
+
i += String.fromCharCode(s);
|
|
1129
|
+
}
|
|
1130
|
+
return i;
|
|
1131
|
+
}, un = (e, t, r) => {
|
|
1132
|
+
if (r != null || (r = 2147483647), r < 2) return 0;
|
|
1133
|
+
r -= 2;
|
|
1134
|
+
for (var n = t, a = r < e.length * 2 ? r / 2 : e.length, i = 0; i < a; ++i) {
|
|
1135
|
+
var u = e.charCodeAt(i);
|
|
1136
|
+
ut[t >> 1] = u, t += 2;
|
|
1137
|
+
}
|
|
1138
|
+
return ut[t >> 1] = 0, t - n;
|
|
1139
|
+
}, cn = (e) => e.length * 2, ln = (e, t) => {
|
|
1140
|
+
for (var r = 0, n = ""; !(r >= t / 4); ) {
|
|
1141
|
+
var a = at[e + r * 4 >> 2];
|
|
1142
|
+
if (a == 0) break;
|
|
1143
|
+
if (++r, a >= 65536) {
|
|
1144
|
+
var i = a - 65536;
|
|
1145
|
+
n += String.fromCharCode(55296 | i >> 10, 56320 | i & 1023);
|
|
1146
|
+
} else
|
|
1147
|
+
n += String.fromCharCode(a);
|
|
1148
|
+
}
|
|
1149
|
+
return n;
|
|
1150
|
+
}, fn = (e, t, r) => {
|
|
1151
|
+
if (r != null || (r = 2147483647), r < 4) return 0;
|
|
1152
|
+
for (var n = t, a = n + r - 4, i = 0; i < e.length; ++i) {
|
|
1153
|
+
var u = e.charCodeAt(i);
|
|
1154
|
+
if (u >= 55296 && u <= 57343) {
|
|
1155
|
+
var s = e.charCodeAt(++i);
|
|
1156
|
+
u = 65536 + ((u & 1023) << 10) | s & 1023;
|
|
1157
|
+
}
|
|
1158
|
+
if (at[t >> 2] = u, t += 4, t + 4 > a) break;
|
|
1159
|
+
}
|
|
1160
|
+
return at[t >> 2] = 0, t - n;
|
|
1161
|
+
}, dn = (e) => {
|
|
1162
|
+
for (var t = 0, r = 0; r < e.length; ++r) {
|
|
1163
|
+
var n = e.charCodeAt(r);
|
|
1164
|
+
n >= 55296 && n <= 57343 && ++r, t += 4;
|
|
1165
|
+
}
|
|
1166
|
+
return t;
|
|
1167
|
+
}, hn = (e, t, r) => {
|
|
1168
|
+
r = R(r);
|
|
1169
|
+
var n, a, i, u;
|
|
1170
|
+
t === 2 ? (n = sn, a = un, u = cn, i = (s) => vt[s >> 1]) : t === 4 && (n = ln, a = fn, u = dn, i = (s) => P[s >> 2]), V(e, {
|
|
1171
|
+
name: r,
|
|
1172
|
+
fromWireType: (s) => {
|
|
1173
|
+
for (var l = P[s >> 2], d, h = s + 4, p = 0; p <= l; ++p) {
|
|
1174
|
+
var w = s + 4 + p * t;
|
|
1175
|
+
if (p == l || i(w) == 0) {
|
|
1176
|
+
var b = w - h, _ = n(h, b);
|
|
1177
|
+
d === void 0 ? d = _ : (d += "\0", d += _), h = w + t;
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
return et(s), d;
|
|
1181
|
+
},
|
|
1182
|
+
toWireType: (s, l) => {
|
|
1183
|
+
typeof l != "string" && C(`Cannot pass non-string to C++ string type ${r}`);
|
|
1184
|
+
var d = u(l), h = Pe(4 + d + t);
|
|
1185
|
+
return P[h >> 2] = d / t, a(l, h + 4, d + t), s !== null && s.push(et, h), h;
|
|
1186
|
+
},
|
|
1187
|
+
argPackAdvance: N,
|
|
1188
|
+
readValueFromPointer: lt,
|
|
1189
|
+
destructorFunction(s) {
|
|
1190
|
+
et(s);
|
|
1308
1191
|
}
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1192
|
+
});
|
|
1193
|
+
}, pn = (e, t, r, n, a, i) => {
|
|
1194
|
+
$t[e] = {
|
|
1195
|
+
name: R(t),
|
|
1196
|
+
rawConstructor: U(r, n),
|
|
1197
|
+
rawDestructor: U(a, i),
|
|
1198
|
+
fields: []
|
|
1199
|
+
};
|
|
1200
|
+
}, vn = (e, t, r, n, a, i, u, s, l, d) => {
|
|
1201
|
+
$t[e].fields.push({
|
|
1202
|
+
fieldName: R(t),
|
|
1203
|
+
getterReturnType: r,
|
|
1204
|
+
getter: U(n, a),
|
|
1205
|
+
getterContext: i,
|
|
1206
|
+
setterArgumentType: u,
|
|
1207
|
+
setter: U(s, l),
|
|
1208
|
+
setterContext: d
|
|
1209
|
+
});
|
|
1210
|
+
}, yn = (e, t) => {
|
|
1211
|
+
t = R(t), V(e, {
|
|
1212
|
+
isVoid: !0,
|
|
1213
|
+
name: t,
|
|
1214
|
+
argPackAdvance: 0,
|
|
1215
|
+
fromWireType: () => {
|
|
1216
|
+
},
|
|
1217
|
+
toWireType: (r, n) => {
|
|
1321
1218
|
}
|
|
1219
|
+
});
|
|
1220
|
+
}, Gt = [], mn = (e, t, r, n) => (e = Gt[e], t = G.toValue(t), e(null, t, r, n)), gn = {}, wn = (e) => {
|
|
1221
|
+
var t = gn[e];
|
|
1222
|
+
return t === void 0 ? R(e) : t;
|
|
1223
|
+
}, Ce = () => {
|
|
1224
|
+
if (typeof globalThis == "object")
|
|
1225
|
+
return globalThis;
|
|
1226
|
+
function e(t) {
|
|
1227
|
+
t.$$$embind_global$$$ = t;
|
|
1228
|
+
var r = typeof $$$embind_global$$$ == "object" && t.$$$embind_global$$$ == t;
|
|
1229
|
+
return r || delete t.$$$embind_global$$$, r;
|
|
1230
|
+
}
|
|
1231
|
+
if (typeof $$$embind_global$$$ == "object" || (typeof global == "object" && e(global) ? $$$embind_global$$$ = global : typeof self == "object" && e(self) && ($$$embind_global$$$ = self), typeof $$$embind_global$$$ == "object"))
|
|
1232
|
+
return $$$embind_global$$$;
|
|
1233
|
+
throw Error("unable to get global object.");
|
|
1234
|
+
}, $n = (e) => e === 0 ? G.toHandle(Ce()) : (e = wn(e), G.toHandle(Ce()[e])), bn = (e) => {
|
|
1235
|
+
var t = Gt.length;
|
|
1236
|
+
return Gt.push(e), t;
|
|
1237
|
+
}, Te = (e, t) => {
|
|
1238
|
+
var r = K[e];
|
|
1239
|
+
return r === void 0 && C(`${t} has unknown type ${ve(e)}`), r;
|
|
1240
|
+
}, Cn = (e, t) => {
|
|
1241
|
+
for (var r = new Array(e), n = 0; n < e; ++n)
|
|
1242
|
+
r[n] = Te(P[t + n * 4 >> 2], `parameter ${n}`);
|
|
1243
|
+
return r;
|
|
1244
|
+
}, Tn = (e, t, r) => {
|
|
1245
|
+
var n = [], a = e.toWireType(n, r);
|
|
1246
|
+
return n.length && (P[t >> 2] = G.toHandle(n)), a;
|
|
1247
|
+
}, Pn = Reflect.construct, En = (e, t, r) => {
|
|
1248
|
+
var n = Cn(e, t), a = n.shift();
|
|
1249
|
+
e--;
|
|
1250
|
+
var i = new Array(e), u = (l, d, h, p) => {
|
|
1251
|
+
for (var w = 0, b = 0; b < e; ++b)
|
|
1252
|
+
i[b] = n[b].readValueFromPointer(p + w), w += n[b].argPackAdvance;
|
|
1253
|
+
var _ = r === 1 ? Pn(d, i) : d.apply(l, i);
|
|
1254
|
+
return Tn(a, h, _);
|
|
1255
|
+
}, s = `methodCaller<(${n.map((l) => l.name).join(", ")}) => ${a.name}>`;
|
|
1256
|
+
return bn(Ut(s, u));
|
|
1257
|
+
}, _n = (e) => {
|
|
1258
|
+
e > 9 && (z[e + 1] += 1);
|
|
1259
|
+
}, On = (e) => {
|
|
1260
|
+
var t = G.toValue(e);
|
|
1261
|
+
Lt(t), zt(e);
|
|
1262
|
+
}, xn = (e, t) => {
|
|
1263
|
+
e = Te(e, "_emval_take_value");
|
|
1264
|
+
var r = e.readValueFromPointer(t);
|
|
1265
|
+
return G.toHandle(r);
|
|
1266
|
+
}, An = (e, t, r, n) => {
|
|
1267
|
+
var a = (/* @__PURE__ */ new Date()).getFullYear(), i = new Date(a, 0, 1), u = new Date(a, 6, 1), s = i.getTimezoneOffset(), l = u.getTimezoneOffset(), d = Math.max(s, l);
|
|
1268
|
+
P[e >> 2] = d * 60, at[t >> 2] = +(s != l);
|
|
1269
|
+
var h = (b) => {
|
|
1270
|
+
var _ = b >= 0 ? "-" : "+", S = Math.abs(b), A = String(Math.floor(S / 60)).padStart(2, "0"), I = String(S % 60).padStart(2, "0");
|
|
1271
|
+
return `UTC${_}${A}${I}`;
|
|
1272
|
+
}, p = h(s), w = h(l);
|
|
1273
|
+
l < s ? (it(p, r, 17), it(w, n, 17)) : (it(p, n, 17), it(w, r, 17));
|
|
1274
|
+
}, Sn = () => 2147483648, In = (e, t) => Math.ceil(e / t) * t, Dn = (e) => {
|
|
1275
|
+
var t = nt.buffer, r = (e - t.byteLength + 65535) / 65536 | 0;
|
|
1276
|
+
try {
|
|
1277
|
+
return nt.grow(r), ee(), 1;
|
|
1278
|
+
} catch {
|
|
1279
|
+
}
|
|
1280
|
+
}, Mn = (e) => {
|
|
1281
|
+
var t = B.length;
|
|
1282
|
+
e >>>= 0;
|
|
1283
|
+
var r = Sn();
|
|
1284
|
+
if (e > r)
|
|
1322
1285
|
return !1;
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
PWD: "/",
|
|
1330
|
-
HOME: "/home/web_user",
|
|
1331
|
-
LANG: t,
|
|
1332
|
-
_: na()
|
|
1333
|
-
};
|
|
1334
|
-
for (var r in te)
|
|
1335
|
-
te[r] === void 0 ? delete e[r] : e[r] = te[r];
|
|
1336
|
-
var n = [];
|
|
1337
|
-
for (var r in e)
|
|
1338
|
-
n.push(`${r}=${e[r]}`);
|
|
1339
|
-
ht.strings = n;
|
|
1340
|
-
}
|
|
1341
|
-
return ht.strings;
|
|
1342
|
-
}, aa = (t, e) => {
|
|
1343
|
-
for (var r = 0; r < t.length; ++r)
|
|
1344
|
-
H[e++] = t.charCodeAt(r);
|
|
1345
|
-
H[e] = 0;
|
|
1346
|
-
}, ia = (t, e) => {
|
|
1347
|
-
var r = 0;
|
|
1348
|
-
return ht().forEach((n, a) => {
|
|
1349
|
-
var o = e + r;
|
|
1350
|
-
P[t + a * 4 >> 2] = o, aa(n, o), r += n.length + 1;
|
|
1351
|
-
}), 0;
|
|
1352
|
-
}, oa = (t, e) => {
|
|
1353
|
-
var r = ht();
|
|
1354
|
-
P[t >> 2] = r.length;
|
|
1355
|
-
var n = 0;
|
|
1356
|
-
return r.forEach((a) => n += a.length + 1), P[e >> 2] = n, 0;
|
|
1357
|
-
}, sa = (t) => 52;
|
|
1358
|
-
function ua(t, e, r, n, a) {
|
|
1359
|
-
return 70;
|
|
1360
|
-
}
|
|
1361
|
-
var ca = [null, [], []], la = (t, e) => {
|
|
1362
|
-
var r = ca[t];
|
|
1363
|
-
e === 0 || e === 10 ? ((t === 1 ? dr : et)(Ae(r)), r.length = 0) : r.push(e);
|
|
1364
|
-
}, fa = (t, e, r, n) => {
|
|
1365
|
-
for (var a = 0, o = 0; o < r; o++) {
|
|
1366
|
-
var u = P[e >> 2], s = P[e + 4 >> 2];
|
|
1367
|
-
e += 8;
|
|
1368
|
-
for (var l = 0; l < s; l++)
|
|
1369
|
-
la(t, B[u + l]);
|
|
1370
|
-
a += s;
|
|
1371
|
-
}
|
|
1372
|
-
return P[n >> 2] = a, 0;
|
|
1373
|
-
}, da = (t) => t;
|
|
1374
|
-
he = c.InternalError = class extends Error {
|
|
1375
|
-
constructor(t) {
|
|
1376
|
-
super(t), this.name = "InternalError";
|
|
1377
|
-
}
|
|
1378
|
-
}, kr(), at = c.BindingError = class extends Error {
|
|
1379
|
-
constructor(t) {
|
|
1380
|
-
super(t), this.name = "BindingError";
|
|
1381
|
-
}
|
|
1382
|
-
}, Yr(), an(), Te = c.UnboundTypeError = cn(Error, "UnboundTypeError"), yn();
|
|
1383
|
-
var ha = {
|
|
1384
|
-
s: Sr,
|
|
1385
|
-
w: xr,
|
|
1386
|
-
a: Ir,
|
|
1387
|
-
j: Mr,
|
|
1388
|
-
l: Fr,
|
|
1389
|
-
M: jr,
|
|
1390
|
-
p: Rr,
|
|
1391
|
-
ca: Lr,
|
|
1392
|
-
d: Dr,
|
|
1393
|
-
Z: Br,
|
|
1394
|
-
sa: Ur,
|
|
1395
|
-
Y: Wr,
|
|
1396
|
-
na: Vr,
|
|
1397
|
-
qa: ln,
|
|
1398
|
-
pa: dn,
|
|
1399
|
-
D: hn,
|
|
1400
|
-
la: vn,
|
|
1401
|
-
Q: gn,
|
|
1402
|
-
R: wn,
|
|
1403
|
-
x: bn,
|
|
1404
|
-
t: Cn,
|
|
1405
|
-
ra: Pn,
|
|
1406
|
-
ma: An,
|
|
1407
|
-
N: jn,
|
|
1408
|
-
J: Rn,
|
|
1409
|
-
ta: Ln,
|
|
1410
|
-
oa: Bn,
|
|
1411
|
-
fa: Un,
|
|
1412
|
-
U: Wn,
|
|
1413
|
-
ua: Qt,
|
|
1414
|
-
wa: Vn,
|
|
1415
|
-
_: qn,
|
|
1416
|
-
S: Zn,
|
|
1417
|
-
va: Yn,
|
|
1418
|
-
ka: Qn,
|
|
1419
|
-
$: Jn,
|
|
1420
|
-
da: ra,
|
|
1421
|
-
aa: ia,
|
|
1422
|
-
ba: oa,
|
|
1423
|
-
ea: sa,
|
|
1424
|
-
W: ua,
|
|
1425
|
-
P: fa,
|
|
1426
|
-
H: Fa,
|
|
1427
|
-
B: Ra,
|
|
1428
|
-
T: wa,
|
|
1429
|
-
O: Va,
|
|
1430
|
-
q: xa,
|
|
1431
|
-
b: ya,
|
|
1432
|
-
C: Ma,
|
|
1433
|
-
ha: Ba,
|
|
1434
|
-
c: ma,
|
|
1435
|
-
ga: Ua,
|
|
1436
|
-
h: ga,
|
|
1437
|
-
i: Pa,
|
|
1438
|
-
r: _a,
|
|
1439
|
-
L: Ia,
|
|
1440
|
-
v: Oa,
|
|
1441
|
-
G: ka,
|
|
1442
|
-
I: Da,
|
|
1443
|
-
z: La,
|
|
1444
|
-
F: Na,
|
|
1445
|
-
X: Ga,
|
|
1446
|
-
V: Xa,
|
|
1447
|
-
k: ba,
|
|
1448
|
-
f: $a,
|
|
1449
|
-
e: va,
|
|
1450
|
-
g: pa,
|
|
1451
|
-
K: Ha,
|
|
1452
|
-
m: Ta,
|
|
1453
|
-
ia: ja,
|
|
1454
|
-
o: Ea,
|
|
1455
|
-
u: Aa,
|
|
1456
|
-
ja: Sa,
|
|
1457
|
-
A: Wa,
|
|
1458
|
-
n: Ca,
|
|
1459
|
-
E: za,
|
|
1460
|
-
y: da
|
|
1461
|
-
}, E;
|
|
1462
|
-
Ar();
|
|
1463
|
-
var Ie = (t) => (Ie = E.za)(t), X = c._free = (t) => (X = c._free = E.Aa)(t), ee = c._malloc = (t) => (ee = c._malloc = E.Ca)(t), Me = (t) => (Me = E.Da)(t), v = (t, e) => (v = E.Ea)(t, e), Fe = (t) => (Fe = E.Fa)(t), je = (t) => (je = E.Ga)(t), Re = () => (Re = E.Ha)(), Le = (t) => (Le = E.Ia)(t), Be = (t) => (Be = E.Ja)(t), Ue = (t, e, r) => (Ue = E.Ka)(t, e, r);
|
|
1464
|
-
c.dynCall_viijii = (t, e, r, n, a, o, u) => (c.dynCall_viijii = E.La)(t, e, r, n, a, o, u);
|
|
1465
|
-
var We = c.dynCall_jiii = (t, e, r, n) => (We = c.dynCall_jiii = E.Ma)(t, e, r, n);
|
|
1466
|
-
c.dynCall_jiji = (t, e, r, n, a) => (c.dynCall_jiji = E.Na)(t, e, r, n, a);
|
|
1467
|
-
var ke = c.dynCall_jiiii = (t, e, r, n, a) => (ke = c.dynCall_jiiii = E.Oa)(t, e, r, n, a);
|
|
1468
|
-
c.dynCall_iiiiij = (t, e, r, n, a, o, u) => (c.dynCall_iiiiij = E.Pa)(t, e, r, n, a, o, u), c.dynCall_iiiiijj = (t, e, r, n, a, o, u, s, l) => (c.dynCall_iiiiijj = E.Qa)(t, e, r, n, a, o, u, s, l), c.dynCall_iiiiiijj = (t, e, r, n, a, o, u, s, l, d) => (c.dynCall_iiiiiijj = E.Ra)(t, e, r, n, a, o, u, s, l, d);
|
|
1469
|
-
function pa(t, e, r, n) {
|
|
1470
|
-
var a = g();
|
|
1471
|
-
try {
|
|
1472
|
-
w(t)(e, r, n);
|
|
1473
|
-
} catch (o) {
|
|
1474
|
-
if (m(a), o !== o + 0) throw o;
|
|
1475
|
-
v(1, 0);
|
|
1476
|
-
}
|
|
1286
|
+
for (var n = 1; n <= 4; n *= 2) {
|
|
1287
|
+
var a = t * (1 + 0.2 / n);
|
|
1288
|
+
a = Math.min(a, e + 100663296);
|
|
1289
|
+
var i = Math.min(r, In(Math.max(e, a), 65536)), u = Dn(i);
|
|
1290
|
+
if (u)
|
|
1291
|
+
return !0;
|
|
1477
1292
|
}
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1293
|
+
return !1;
|
|
1294
|
+
}, Xt = {}, Fn = () => M || "./this.program", ht = () => {
|
|
1295
|
+
if (!ht.strings) {
|
|
1296
|
+
var e = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", t = {
|
|
1297
|
+
USER: "web_user",
|
|
1298
|
+
LOGNAME: "web_user",
|
|
1299
|
+
PATH: "/",
|
|
1300
|
+
PWD: "/",
|
|
1301
|
+
HOME: "/home/web_user",
|
|
1302
|
+
LANG: e,
|
|
1303
|
+
_: Fn()
|
|
1304
|
+
};
|
|
1305
|
+
for (var r in Xt)
|
|
1306
|
+
Xt[r] === void 0 ? delete t[r] : t[r] = Xt[r];
|
|
1307
|
+
var n = [];
|
|
1308
|
+
for (var r in t)
|
|
1309
|
+
n.push(`${r}=${t[r]}`);
|
|
1310
|
+
ht.strings = n;
|
|
1311
|
+
}
|
|
1312
|
+
return ht.strings;
|
|
1313
|
+
}, Rn = (e, t) => {
|
|
1314
|
+
var r = 0, n = 0;
|
|
1315
|
+
for (var a of ht()) {
|
|
1316
|
+
var i = t + r;
|
|
1317
|
+
P[e + n >> 2] = i, r += it(a, i, 1 / 0) + 1, n += 4;
|
|
1318
|
+
}
|
|
1319
|
+
return 0;
|
|
1320
|
+
}, jn = (e, t) => {
|
|
1321
|
+
var r = ht();
|
|
1322
|
+
P[e >> 2] = r.length;
|
|
1323
|
+
var n = 0;
|
|
1324
|
+
for (var a of r)
|
|
1325
|
+
n += ge(a) + 1;
|
|
1326
|
+
return P[t >> 2] = n, 0;
|
|
1327
|
+
}, Ln = (e) => 52;
|
|
1328
|
+
function Bn(e, t, r, n, a) {
|
|
1329
|
+
return 70;
|
|
1330
|
+
}
|
|
1331
|
+
var Wn = [null, [], []], Un = (e, t) => {
|
|
1332
|
+
var r = Wn[e];
|
|
1333
|
+
t === 0 || t === 10 ? ((e === 1 ? st : k)($e(r)), r.length = 0) : r.push(t);
|
|
1334
|
+
}, Vn = (e, t, r, n) => {
|
|
1335
|
+
for (var a = 0, i = 0; i < r; i++) {
|
|
1336
|
+
var u = P[t >> 2], s = P[t + 4 >> 2];
|
|
1337
|
+
t += 8;
|
|
1338
|
+
for (var l = 0; l < s; l++)
|
|
1339
|
+
Un(e, B[u + l]);
|
|
1340
|
+
a += s;
|
|
1341
|
+
}
|
|
1342
|
+
return P[n >> 2] = a, 0;
|
|
1343
|
+
}, kn = (e) => e;
|
|
1344
|
+
br(), _r(), Br(), Xr(), c.noExitRuntime && c.noExitRuntime, c.print && (st = c.print), c.printErr && (k = c.printErr), c.wasmBinary && (Z = c.wasmBinary), c.arguments && c.arguments, c.thisProgram && (M = c.thisProgram);
|
|
1345
|
+
var Hn = {
|
|
1346
|
+
s: ur,
|
|
1347
|
+
w: cr,
|
|
1348
|
+
a: lr,
|
|
1349
|
+
j: fr,
|
|
1350
|
+
m: dr,
|
|
1351
|
+
N: hr,
|
|
1352
|
+
p: pr,
|
|
1353
|
+
da: vr,
|
|
1354
|
+
d: yr,
|
|
1355
|
+
_: mr,
|
|
1356
|
+
sa: wr,
|
|
1357
|
+
Z: $r,
|
|
1358
|
+
na: Tr,
|
|
1359
|
+
qa: kr,
|
|
1360
|
+
pa: Nr,
|
|
1361
|
+
F: zr,
|
|
1362
|
+
la: qr,
|
|
1363
|
+
R: Zr,
|
|
1364
|
+
S: Qr,
|
|
1365
|
+
y: Kr,
|
|
1366
|
+
t: tn,
|
|
1367
|
+
ra: rn,
|
|
1368
|
+
ma: on,
|
|
1369
|
+
O: hn,
|
|
1370
|
+
K: pn,
|
|
1371
|
+
ta: vn,
|
|
1372
|
+
oa: yn,
|
|
1373
|
+
V: mn,
|
|
1374
|
+
ua: zt,
|
|
1375
|
+
wa: $n,
|
|
1376
|
+
$: En,
|
|
1377
|
+
T: _n,
|
|
1378
|
+
va: On,
|
|
1379
|
+
ka: xn,
|
|
1380
|
+
aa: An,
|
|
1381
|
+
ea: Mn,
|
|
1382
|
+
ba: Rn,
|
|
1383
|
+
ca: jn,
|
|
1384
|
+
fa: Ln,
|
|
1385
|
+
X: Bn,
|
|
1386
|
+
Q: Vn,
|
|
1387
|
+
I: ba,
|
|
1388
|
+
C: Ta,
|
|
1389
|
+
U: oa,
|
|
1390
|
+
P: Sa,
|
|
1391
|
+
q: ma,
|
|
1392
|
+
b: ea,
|
|
1393
|
+
D: $a,
|
|
1394
|
+
ia: Ea,
|
|
1395
|
+
c: na,
|
|
1396
|
+
ha: _a,
|
|
1397
|
+
h: aa,
|
|
1398
|
+
i: la,
|
|
1399
|
+
r: da,
|
|
1400
|
+
M: wa,
|
|
1401
|
+
v: pa,
|
|
1402
|
+
E: ya,
|
|
1403
|
+
J: ga,
|
|
1404
|
+
A: Pa,
|
|
1405
|
+
H: Ia,
|
|
1406
|
+
W: Fa,
|
|
1407
|
+
k: sa,
|
|
1408
|
+
f: ia,
|
|
1409
|
+
e: ra,
|
|
1410
|
+
g: ta,
|
|
1411
|
+
L: Aa,
|
|
1412
|
+
l: ca,
|
|
1413
|
+
ja: Ca,
|
|
1414
|
+
o: ha,
|
|
1415
|
+
x: fa,
|
|
1416
|
+
u: va,
|
|
1417
|
+
ga: xa,
|
|
1418
|
+
B: Oa,
|
|
1419
|
+
n: ua,
|
|
1420
|
+
G: Da,
|
|
1421
|
+
Y: Ma,
|
|
1422
|
+
z: kn
|
|
1423
|
+
}, E = await or();
|
|
1424
|
+
E.ya;
|
|
1425
|
+
var Nn = E.za, et = c._free = E.Aa, Pe = c._malloc = E.Ca, zn = E.Da, v = E.Ea, Gn = E.Fa, Xn = E.Ga, qn = E.Ha, Yn = E.Ia, Zn = E.Ja, Qn = E.Ka;
|
|
1426
|
+
c.dynCall_viijii = E.La;
|
|
1427
|
+
var Jn = c.dynCall_vij = E.Ma;
|
|
1428
|
+
c.dynCall_jiji = E.Na;
|
|
1429
|
+
var Kn = c.dynCall_jiiii = E.Oa;
|
|
1430
|
+
c.dynCall_iiiiij = E.Pa, c.dynCall_iiiiijj = E.Qa, c.dynCall_iiiiiijj = E.Ra;
|
|
1431
|
+
function ta(e, t, r, n) {
|
|
1432
|
+
var a = m();
|
|
1433
|
+
try {
|
|
1434
|
+
g(e)(t, r, n);
|
|
1435
|
+
} catch (i) {
|
|
1436
|
+
if (y(a), i !== i + 0) throw i;
|
|
1437
|
+
v(1, 0);
|
|
1486
1438
|
}
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1439
|
+
}
|
|
1440
|
+
function ea(e, t) {
|
|
1441
|
+
var r = m();
|
|
1442
|
+
try {
|
|
1443
|
+
return g(e)(t);
|
|
1444
|
+
} catch (n) {
|
|
1445
|
+
if (y(r), n !== n + 0) throw n;
|
|
1446
|
+
v(1, 0);
|
|
1495
1447
|
}
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1448
|
+
}
|
|
1449
|
+
function ra(e, t, r) {
|
|
1450
|
+
var n = m();
|
|
1451
|
+
try {
|
|
1452
|
+
g(e)(t, r);
|
|
1453
|
+
} catch (a) {
|
|
1454
|
+
if (y(n), a !== a + 0) throw a;
|
|
1455
|
+
v(1, 0);
|
|
1504
1456
|
}
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1457
|
+
}
|
|
1458
|
+
function na(e, t, r) {
|
|
1459
|
+
var n = m();
|
|
1460
|
+
try {
|
|
1461
|
+
return g(e)(t, r);
|
|
1462
|
+
} catch (a) {
|
|
1463
|
+
if (y(n), a !== a + 0) throw a;
|
|
1464
|
+
v(1, 0);
|
|
1513
1465
|
}
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1466
|
+
}
|
|
1467
|
+
function aa(e, t, r, n) {
|
|
1468
|
+
var a = m();
|
|
1469
|
+
try {
|
|
1470
|
+
return g(e)(t, r, n);
|
|
1471
|
+
} catch (i) {
|
|
1472
|
+
if (y(a), i !== i + 0) throw i;
|
|
1473
|
+
v(1, 0);
|
|
1522
1474
|
}
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1475
|
+
}
|
|
1476
|
+
function oa(e, t, r, n, a) {
|
|
1477
|
+
var i = m();
|
|
1478
|
+
try {
|
|
1479
|
+
return g(e)(t, r, n, a);
|
|
1480
|
+
} catch (u) {
|
|
1481
|
+
if (y(i), u !== u + 0) throw u;
|
|
1482
|
+
v(1, 0);
|
|
1531
1483
|
}
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1484
|
+
}
|
|
1485
|
+
function ia(e, t) {
|
|
1486
|
+
var r = m();
|
|
1487
|
+
try {
|
|
1488
|
+
g(e)(t);
|
|
1489
|
+
} catch (n) {
|
|
1490
|
+
if (y(r), n !== n + 0) throw n;
|
|
1491
|
+
v(1, 0);
|
|
1540
1492
|
}
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1493
|
+
}
|
|
1494
|
+
function sa(e) {
|
|
1495
|
+
var t = m();
|
|
1496
|
+
try {
|
|
1497
|
+
g(e)();
|
|
1498
|
+
} catch (r) {
|
|
1499
|
+
if (y(t), r !== r + 0) throw r;
|
|
1500
|
+
v(1, 0);
|
|
1549
1501
|
}
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1502
|
+
}
|
|
1503
|
+
function ua(e, t, r, n, a, i, u, s, l, d, h) {
|
|
1504
|
+
var p = m();
|
|
1505
|
+
try {
|
|
1506
|
+
g(e)(t, r, n, a, i, u, s, l, d, h);
|
|
1507
|
+
} catch (w) {
|
|
1508
|
+
if (y(p), w !== w + 0) throw w;
|
|
1509
|
+
v(1, 0);
|
|
1558
1510
|
}
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1511
|
+
}
|
|
1512
|
+
function ca(e, t, r, n, a) {
|
|
1513
|
+
var i = m();
|
|
1514
|
+
try {
|
|
1515
|
+
g(e)(t, r, n, a);
|
|
1516
|
+
} catch (u) {
|
|
1517
|
+
if (y(i), u !== u + 0) throw u;
|
|
1518
|
+
v(1, 0);
|
|
1567
1519
|
}
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1520
|
+
}
|
|
1521
|
+
function la(e, t, r, n, a) {
|
|
1522
|
+
var i = m();
|
|
1523
|
+
try {
|
|
1524
|
+
return g(e)(t, r, n, a);
|
|
1525
|
+
} catch (u) {
|
|
1526
|
+
if (y(i), u !== u + 0) throw u;
|
|
1527
|
+
v(1, 0);
|
|
1576
1528
|
}
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1529
|
+
}
|
|
1530
|
+
function fa(e, t, r, n, a, i, u) {
|
|
1531
|
+
var s = m();
|
|
1532
|
+
try {
|
|
1533
|
+
g(e)(t, r, n, a, i, u);
|
|
1534
|
+
} catch (l) {
|
|
1535
|
+
if (y(s), l !== l + 0) throw l;
|
|
1536
|
+
v(1, 0);
|
|
1585
1537
|
}
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1538
|
+
}
|
|
1539
|
+
function da(e, t, r, n, a, i) {
|
|
1540
|
+
var u = m();
|
|
1541
|
+
try {
|
|
1542
|
+
return g(e)(t, r, n, a, i);
|
|
1543
|
+
} catch (s) {
|
|
1544
|
+
if (y(u), s !== s + 0) throw s;
|
|
1545
|
+
v(1, 0);
|
|
1594
1546
|
}
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1547
|
+
}
|
|
1548
|
+
function ha(e, t, r, n, a, i) {
|
|
1549
|
+
var u = m();
|
|
1550
|
+
try {
|
|
1551
|
+
g(e)(t, r, n, a, i);
|
|
1552
|
+
} catch (s) {
|
|
1553
|
+
if (y(u), s !== s + 0) throw s;
|
|
1554
|
+
v(1, 0);
|
|
1603
1555
|
}
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1556
|
+
}
|
|
1557
|
+
function pa(e, t, r, n, a, i, u) {
|
|
1558
|
+
var s = m();
|
|
1559
|
+
try {
|
|
1560
|
+
return g(e)(t, r, n, a, i, u);
|
|
1561
|
+
} catch (l) {
|
|
1562
|
+
if (y(s), l !== l + 0) throw l;
|
|
1563
|
+
v(1, 0);
|
|
1612
1564
|
}
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1565
|
+
}
|
|
1566
|
+
function va(e, t, r, n, a, i, u, s) {
|
|
1567
|
+
var l = m();
|
|
1568
|
+
try {
|
|
1569
|
+
g(e)(t, r, n, a, i, u, s);
|
|
1570
|
+
} catch (d) {
|
|
1571
|
+
if (y(l), d !== d + 0) throw d;
|
|
1572
|
+
v(1, 0);
|
|
1621
1573
|
}
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1574
|
+
}
|
|
1575
|
+
function ya(e, t, r, n, a, i, u, s) {
|
|
1576
|
+
var l = m();
|
|
1577
|
+
try {
|
|
1578
|
+
return g(e)(t, r, n, a, i, u, s);
|
|
1579
|
+
} catch (d) {
|
|
1580
|
+
if (y(l), d !== d + 0) throw d;
|
|
1581
|
+
v(1, 0);
|
|
1630
1582
|
}
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1583
|
+
}
|
|
1584
|
+
function ma(e) {
|
|
1585
|
+
var t = m();
|
|
1586
|
+
try {
|
|
1587
|
+
return g(e)();
|
|
1588
|
+
} catch (r) {
|
|
1589
|
+
if (y(t), r !== r + 0) throw r;
|
|
1590
|
+
v(1, 0);
|
|
1639
1591
|
}
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1592
|
+
}
|
|
1593
|
+
function ga(e, t, r, n, a, i, u, s, l) {
|
|
1594
|
+
var d = m();
|
|
1595
|
+
try {
|
|
1596
|
+
return g(e)(t, r, n, a, i, u, s, l);
|
|
1597
|
+
} catch (h) {
|
|
1598
|
+
if (y(d), h !== h + 0) throw h;
|
|
1599
|
+
v(1, 0);
|
|
1648
1600
|
}
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1601
|
+
}
|
|
1602
|
+
function wa(e, t, r, n, a, i, u) {
|
|
1603
|
+
var s = m();
|
|
1604
|
+
try {
|
|
1605
|
+
return g(e)(t, r, n, a, i, u);
|
|
1606
|
+
} catch (l) {
|
|
1607
|
+
if (y(s), l !== l + 0) throw l;
|
|
1608
|
+
v(1, 0);
|
|
1657
1609
|
}
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1610
|
+
}
|
|
1611
|
+
function $a(e, t, r, n) {
|
|
1612
|
+
var a = m();
|
|
1613
|
+
try {
|
|
1614
|
+
return g(e)(t, r, n);
|
|
1615
|
+
} catch (i) {
|
|
1616
|
+
if (y(a), i !== i + 0) throw i;
|
|
1617
|
+
v(1, 0);
|
|
1666
1618
|
}
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1619
|
+
}
|
|
1620
|
+
function ba(e, t, r, n) {
|
|
1621
|
+
var a = m();
|
|
1622
|
+
try {
|
|
1623
|
+
return g(e)(t, r, n);
|
|
1624
|
+
} catch (i) {
|
|
1625
|
+
if (y(a), i !== i + 0) throw i;
|
|
1626
|
+
v(1, 0);
|
|
1675
1627
|
}
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1628
|
+
}
|
|
1629
|
+
function Ca(e, t, r, n, a, i, u, s) {
|
|
1630
|
+
var l = m();
|
|
1631
|
+
try {
|
|
1632
|
+
g(e)(t, r, n, a, i, u, s);
|
|
1633
|
+
} catch (d) {
|
|
1634
|
+
if (y(l), d !== d + 0) throw d;
|
|
1635
|
+
v(1, 0);
|
|
1684
1636
|
}
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1637
|
+
}
|
|
1638
|
+
function Ta(e, t, r, n, a, i) {
|
|
1639
|
+
var u = m();
|
|
1640
|
+
try {
|
|
1641
|
+
return g(e)(t, r, n, a, i);
|
|
1642
|
+
} catch (s) {
|
|
1643
|
+
if (y(u), s !== s + 0) throw s;
|
|
1644
|
+
v(1, 0);
|
|
1693
1645
|
}
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1646
|
+
}
|
|
1647
|
+
function Pa(e, t, r, n, a, i, u, s, l, d) {
|
|
1648
|
+
var h = m();
|
|
1649
|
+
try {
|
|
1650
|
+
return g(e)(t, r, n, a, i, u, s, l, d);
|
|
1651
|
+
} catch (p) {
|
|
1652
|
+
if (y(h), p !== p + 0) throw p;
|
|
1653
|
+
v(1, 0);
|
|
1702
1654
|
}
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1655
|
+
}
|
|
1656
|
+
function Ea(e, t, r) {
|
|
1657
|
+
var n = m();
|
|
1658
|
+
try {
|
|
1659
|
+
return g(e)(t, r);
|
|
1660
|
+
} catch (a) {
|
|
1661
|
+
if (y(n), a !== a + 0) throw a;
|
|
1662
|
+
v(1, 0);
|
|
1711
1663
|
}
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1664
|
+
}
|
|
1665
|
+
function _a(e, t, r, n, a) {
|
|
1666
|
+
var i = m();
|
|
1667
|
+
try {
|
|
1668
|
+
return g(e)(t, r, n, a);
|
|
1669
|
+
} catch (u) {
|
|
1670
|
+
if (y(i), u !== u + 0) throw u;
|
|
1671
|
+
v(1, 0);
|
|
1720
1672
|
}
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1673
|
+
}
|
|
1674
|
+
function Oa(e, t, r, n, a, i, u, s, l, d) {
|
|
1675
|
+
var h = m();
|
|
1676
|
+
try {
|
|
1677
|
+
g(e)(t, r, n, a, i, u, s, l, d);
|
|
1678
|
+
} catch (p) {
|
|
1679
|
+
if (y(h), p !== p + 0) throw p;
|
|
1680
|
+
v(1, 0);
|
|
1729
1681
|
}
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1682
|
+
}
|
|
1683
|
+
function xa(e, t, r, n, a, i, u, s, l) {
|
|
1684
|
+
var d = m();
|
|
1685
|
+
try {
|
|
1686
|
+
g(e)(t, r, n, a, i, u, s, l);
|
|
1687
|
+
} catch (h) {
|
|
1688
|
+
if (y(d), h !== h + 0) throw h;
|
|
1689
|
+
v(1, 0);
|
|
1738
1690
|
}
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1691
|
+
}
|
|
1692
|
+
function Aa(e, t, r, n, a, i, u) {
|
|
1693
|
+
var s = m();
|
|
1694
|
+
try {
|
|
1695
|
+
g(e)(t, r, n, a, i, u);
|
|
1696
|
+
} catch (l) {
|
|
1697
|
+
if (y(s), l !== l + 0) throw l;
|
|
1698
|
+
v(1, 0);
|
|
1747
1699
|
}
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1700
|
+
}
|
|
1701
|
+
function Sa(e, t, r, n) {
|
|
1702
|
+
var a = m();
|
|
1703
|
+
try {
|
|
1704
|
+
return g(e)(t, r, n);
|
|
1705
|
+
} catch (i) {
|
|
1706
|
+
if (y(a), i !== i + 0) throw i;
|
|
1707
|
+
v(1, 0);
|
|
1756
1708
|
}
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1709
|
+
}
|
|
1710
|
+
function Ia(e, t, r, n, a, i, u, s, l, d, h, p) {
|
|
1711
|
+
var w = m();
|
|
1712
|
+
try {
|
|
1713
|
+
return g(e)(t, r, n, a, i, u, s, l, d, h, p);
|
|
1714
|
+
} catch (b) {
|
|
1715
|
+
if (y(w), b !== b + 0) throw b;
|
|
1716
|
+
v(1, 0);
|
|
1765
1717
|
}
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1718
|
+
}
|
|
1719
|
+
function Da(e, t, r, n, a, i, u, s, l, d, h, p, w, b, _, S) {
|
|
1720
|
+
var A = m();
|
|
1721
|
+
try {
|
|
1722
|
+
g(e)(t, r, n, a, i, u, s, l, d, h, p, w, b, _, S);
|
|
1723
|
+
} catch (I) {
|
|
1724
|
+
if (y(A), I !== I + 0) throw I;
|
|
1725
|
+
v(1, 0);
|
|
1774
1726
|
}
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
var e;
|
|
1784
|
-
It || (It = !0, c.calledRun = !0, !ie && (pr(), O(c), (e = c.onRuntimeInitialized) === null || e === void 0 || e.call(c), yr()));
|
|
1785
|
-
}
|
|
1786
|
-
c.setStatus ? (c.setStatus("Running..."), setTimeout(() => {
|
|
1787
|
-
setTimeout(() => c.setStatus(""), 1), t();
|
|
1788
|
-
}, 1)) : t();
|
|
1727
|
+
}
|
|
1728
|
+
function Ma(e, t, r, n) {
|
|
1729
|
+
var a = m();
|
|
1730
|
+
try {
|
|
1731
|
+
Jn(e, t, r, n);
|
|
1732
|
+
} catch (i) {
|
|
1733
|
+
if (y(a), i !== i + 0) throw i;
|
|
1734
|
+
v(1, 0);
|
|
1789
1735
|
}
|
|
1736
|
+
}
|
|
1737
|
+
function Fa(e, t, r, n, a) {
|
|
1738
|
+
var i = m();
|
|
1739
|
+
try {
|
|
1740
|
+
return Kn(e, t, r, n, a);
|
|
1741
|
+
} catch (u) {
|
|
1742
|
+
if (y(i), u !== u + 0) throw u;
|
|
1743
|
+
v(1, 0);
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
function qt() {
|
|
1747
|
+
if (J > 0) {
|
|
1748
|
+
ct = qt;
|
|
1749
|
+
return;
|
|
1750
|
+
}
|
|
1751
|
+
if (qe(), J > 0) {
|
|
1752
|
+
ct = qt;
|
|
1753
|
+
return;
|
|
1754
|
+
}
|
|
1755
|
+
function e() {
|
|
1756
|
+
var t;
|
|
1757
|
+
c.calledRun = !0, !Jt && (Ye(), T(c), (t = c.onRuntimeInitialized) === null || t === void 0 || t.call(c), Ze());
|
|
1758
|
+
}
|
|
1759
|
+
c.setStatus ? (c.setStatus("Running..."), setTimeout(() => {
|
|
1760
|
+
setTimeout(() => c.setStatus(""), 1), e();
|
|
1761
|
+
}, 1)) : e();
|
|
1762
|
+
}
|
|
1763
|
+
function Ra() {
|
|
1790
1764
|
if (c.preInit)
|
|
1791
1765
|
for (typeof c.preInit == "function" && (c.preInit = [c.preInit]); c.preInit.length > 0; )
|
|
1792
|
-
c.preInit.
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
}
|
|
1796
|
-
function
|
|
1797
|
-
return
|
|
1766
|
+
c.preInit.shift()();
|
|
1767
|
+
}
|
|
1768
|
+
return Ra(), qt(), f = x, f;
|
|
1769
|
+
};
|
|
1770
|
+
function Be(o) {
|
|
1771
|
+
return Le(Qt, o);
|
|
1798
1772
|
}
|
|
1799
|
-
function
|
|
1800
|
-
return
|
|
1773
|
+
function Co() {
|
|
1774
|
+
return Ka(Qt);
|
|
1801
1775
|
}
|
|
1802
|
-
function
|
|
1803
|
-
|
|
1804
|
-
overrides:
|
|
1776
|
+
function To(o) {
|
|
1777
|
+
Be({
|
|
1778
|
+
overrides: o,
|
|
1805
1779
|
equalityFn: Object.is,
|
|
1806
1780
|
fireImmediately: !1
|
|
1807
1781
|
});
|
|
1808
1782
|
}
|
|
1809
|
-
async function
|
|
1810
|
-
return
|
|
1783
|
+
async function eo(o, f) {
|
|
1784
|
+
return to(Qt, o, f);
|
|
1811
1785
|
}
|
|
1812
|
-
const
|
|
1786
|
+
const Po = "d19de7bfefeb04bb38eb7a8fab3aa3a08c34f6ec502775d379e1d6da71f9865e", We = [
|
|
1813
1787
|
["aztec", "Aztec"],
|
|
1814
1788
|
["code_128", "Code128"],
|
|
1815
1789
|
["code_39", "Code39"],
|
|
@@ -1833,180 +1807,180 @@ const ji = "5bb3ce7aeedc314e24afb873bebcf366a01c27a00b21cdf2fa98b819c005c16b", n
|
|
|
1833
1807
|
["linear_codes", "Linear-Codes"],
|
|
1834
1808
|
["matrix_codes", "Matrix-Codes"],
|
|
1835
1809
|
["any", "Any"]
|
|
1836
|
-
],
|
|
1837
|
-
|
|
1810
|
+
], ro = [...We, ["unknown"]].map((o) => o[0]), Zt = new Map(
|
|
1811
|
+
We
|
|
1838
1812
|
);
|
|
1839
|
-
function
|
|
1840
|
-
for (const [f,
|
|
1841
|
-
if (
|
|
1813
|
+
function no(o) {
|
|
1814
|
+
for (const [f, c] of Zt)
|
|
1815
|
+
if (o === c)
|
|
1842
1816
|
return f;
|
|
1843
1817
|
return "unknown";
|
|
1844
1818
|
}
|
|
1845
|
-
function
|
|
1846
|
-
if (
|
|
1819
|
+
function ao(o) {
|
|
1820
|
+
if (Ue(o))
|
|
1847
1821
|
return {
|
|
1848
|
-
width:
|
|
1849
|
-
height:
|
|
1822
|
+
width: o.naturalWidth,
|
|
1823
|
+
height: o.naturalHeight
|
|
1850
1824
|
};
|
|
1851
|
-
if (
|
|
1825
|
+
if (Ve(o))
|
|
1852
1826
|
return {
|
|
1853
|
-
width:
|
|
1854
|
-
height:
|
|
1827
|
+
width: o.width.baseVal.value,
|
|
1828
|
+
height: o.height.baseVal.value
|
|
1855
1829
|
};
|
|
1856
|
-
if (
|
|
1830
|
+
if (ke(o))
|
|
1857
1831
|
return {
|
|
1858
|
-
width:
|
|
1859
|
-
height:
|
|
1832
|
+
width: o.videoWidth,
|
|
1833
|
+
height: o.videoHeight
|
|
1860
1834
|
};
|
|
1861
|
-
if (
|
|
1835
|
+
if (Ne(o))
|
|
1862
1836
|
return {
|
|
1863
|
-
width:
|
|
1864
|
-
height:
|
|
1837
|
+
width: o.width,
|
|
1838
|
+
height: o.height
|
|
1865
1839
|
};
|
|
1866
|
-
if (
|
|
1840
|
+
if (Ge(o))
|
|
1867
1841
|
return {
|
|
1868
|
-
width:
|
|
1869
|
-
height:
|
|
1842
|
+
width: o.displayWidth,
|
|
1843
|
+
height: o.displayHeight
|
|
1870
1844
|
};
|
|
1871
|
-
if (
|
|
1845
|
+
if (He(o))
|
|
1872
1846
|
return {
|
|
1873
|
-
width:
|
|
1874
|
-
height:
|
|
1847
|
+
width: o.width,
|
|
1848
|
+
height: o.height
|
|
1875
1849
|
};
|
|
1876
|
-
if (
|
|
1850
|
+
if (ze(o))
|
|
1877
1851
|
return {
|
|
1878
|
-
width:
|
|
1879
|
-
height:
|
|
1852
|
+
width: o.width,
|
|
1853
|
+
height: o.height
|
|
1880
1854
|
};
|
|
1881
1855
|
throw new TypeError(
|
|
1882
1856
|
"The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'."
|
|
1883
1857
|
);
|
|
1884
1858
|
}
|
|
1885
|
-
function
|
|
1886
|
-
var f,
|
|
1859
|
+
function Ue(o) {
|
|
1860
|
+
var f, c;
|
|
1887
1861
|
try {
|
|
1888
|
-
return
|
|
1862
|
+
return o instanceof ((c = (f = o == null ? void 0 : o.ownerDocument) == null ? void 0 : f.defaultView) == null ? void 0 : c.HTMLImageElement);
|
|
1889
1863
|
} catch {
|
|
1890
1864
|
return !1;
|
|
1891
1865
|
}
|
|
1892
1866
|
}
|
|
1893
|
-
function
|
|
1894
|
-
var f,
|
|
1867
|
+
function Ve(o) {
|
|
1868
|
+
var f, c;
|
|
1895
1869
|
try {
|
|
1896
|
-
return
|
|
1870
|
+
return o instanceof ((c = (f = o == null ? void 0 : o.ownerDocument) == null ? void 0 : f.defaultView) == null ? void 0 : c.SVGImageElement);
|
|
1897
1871
|
} catch {
|
|
1898
1872
|
return !1;
|
|
1899
1873
|
}
|
|
1900
1874
|
}
|
|
1901
|
-
function
|
|
1902
|
-
var f,
|
|
1875
|
+
function ke(o) {
|
|
1876
|
+
var f, c;
|
|
1903
1877
|
try {
|
|
1904
|
-
return
|
|
1878
|
+
return o instanceof ((c = (f = o == null ? void 0 : o.ownerDocument) == null ? void 0 : f.defaultView) == null ? void 0 : c.HTMLVideoElement);
|
|
1905
1879
|
} catch {
|
|
1906
1880
|
return !1;
|
|
1907
1881
|
}
|
|
1908
1882
|
}
|
|
1909
|
-
function
|
|
1910
|
-
var f,
|
|
1883
|
+
function He(o) {
|
|
1884
|
+
var f, c;
|
|
1911
1885
|
try {
|
|
1912
|
-
return
|
|
1886
|
+
return o instanceof ((c = (f = o == null ? void 0 : o.ownerDocument) == null ? void 0 : f.defaultView) == null ? void 0 : c.HTMLCanvasElement);
|
|
1913
1887
|
} catch {
|
|
1914
1888
|
return !1;
|
|
1915
1889
|
}
|
|
1916
1890
|
}
|
|
1917
|
-
function
|
|
1891
|
+
function Ne(o) {
|
|
1918
1892
|
try {
|
|
1919
|
-
return
|
|
1893
|
+
return o instanceof ImageBitmap || Object.prototype.toString.call(o) === "[object ImageBitmap]";
|
|
1920
1894
|
} catch {
|
|
1921
1895
|
return !1;
|
|
1922
1896
|
}
|
|
1923
1897
|
}
|
|
1924
|
-
function
|
|
1898
|
+
function ze(o) {
|
|
1925
1899
|
try {
|
|
1926
|
-
return
|
|
1900
|
+
return o instanceof OffscreenCanvas || Object.prototype.toString.call(o) === "[object OffscreenCanvas]";
|
|
1927
1901
|
} catch {
|
|
1928
1902
|
return !1;
|
|
1929
1903
|
}
|
|
1930
1904
|
}
|
|
1931
|
-
function
|
|
1905
|
+
function Ge(o) {
|
|
1932
1906
|
try {
|
|
1933
|
-
return
|
|
1907
|
+
return o instanceof VideoFrame || Object.prototype.toString.call(o) === "[object VideoFrame]";
|
|
1934
1908
|
} catch {
|
|
1935
1909
|
return !1;
|
|
1936
1910
|
}
|
|
1937
1911
|
}
|
|
1938
|
-
function
|
|
1912
|
+
function oo(o) {
|
|
1939
1913
|
try {
|
|
1940
|
-
return
|
|
1914
|
+
return o instanceof Blob || Object.prototype.toString.call(o) === "[object Blob]";
|
|
1941
1915
|
} catch {
|
|
1942
1916
|
return !1;
|
|
1943
1917
|
}
|
|
1944
1918
|
}
|
|
1945
|
-
function
|
|
1919
|
+
function io(o) {
|
|
1946
1920
|
try {
|
|
1947
|
-
return
|
|
1921
|
+
return o instanceof ImageData || Object.prototype.toString.call(o) === "[object ImageData]";
|
|
1948
1922
|
} catch {
|
|
1949
1923
|
return !1;
|
|
1950
1924
|
}
|
|
1951
1925
|
}
|
|
1952
|
-
function
|
|
1926
|
+
function so(o, f) {
|
|
1953
1927
|
try {
|
|
1954
|
-
const
|
|
1955
|
-
if (
|
|
1956
|
-
return
|
|
1928
|
+
const c = new OffscreenCanvas(o, f);
|
|
1929
|
+
if (c.getContext("2d") instanceof OffscreenCanvasRenderingContext2D)
|
|
1930
|
+
return c;
|
|
1957
1931
|
throw void 0;
|
|
1958
1932
|
} catch {
|
|
1959
|
-
const
|
|
1960
|
-
return
|
|
1933
|
+
const c = document.createElement("canvas");
|
|
1934
|
+
return c.width = o, c.height = f, c;
|
|
1961
1935
|
}
|
|
1962
1936
|
}
|
|
1963
|
-
async function
|
|
1964
|
-
if (
|
|
1937
|
+
async function Xe(o) {
|
|
1938
|
+
if (Ue(o) && !await fo(o))
|
|
1965
1939
|
throw new DOMException(
|
|
1966
1940
|
"Failed to load or decode HTMLImageElement.",
|
|
1967
1941
|
"InvalidStateError"
|
|
1968
1942
|
);
|
|
1969
|
-
if (
|
|
1943
|
+
if (Ve(o) && !await ho(o))
|
|
1970
1944
|
throw new DOMException(
|
|
1971
1945
|
"Failed to load or decode SVGImageElement.",
|
|
1972
1946
|
"InvalidStateError"
|
|
1973
1947
|
);
|
|
1974
|
-
if (
|
|
1948
|
+
if (Ge(o) && po(o))
|
|
1975
1949
|
throw new DOMException("VideoFrame is closed.", "InvalidStateError");
|
|
1976
|
-
if (
|
|
1950
|
+
if (ke(o) && (o.readyState === 0 || o.readyState === 1))
|
|
1977
1951
|
throw new DOMException("Invalid element or state.", "InvalidStateError");
|
|
1978
|
-
if (
|
|
1952
|
+
if (Ne(o) && yo(o))
|
|
1979
1953
|
throw new DOMException(
|
|
1980
1954
|
"The image source is detached.",
|
|
1981
1955
|
"InvalidStateError"
|
|
1982
1956
|
);
|
|
1983
|
-
const { width: f, height:
|
|
1984
|
-
if (f === 0 ||
|
|
1957
|
+
const { width: f, height: c } = ao(o);
|
|
1958
|
+
if (f === 0 || c === 0)
|
|
1985
1959
|
return null;
|
|
1986
|
-
const
|
|
1987
|
-
|
|
1960
|
+
const $ = so(f, c).getContext("2d");
|
|
1961
|
+
$.drawImage(o, 0, 0);
|
|
1988
1962
|
try {
|
|
1989
|
-
return
|
|
1963
|
+
return $.getImageData(0, 0, f, c);
|
|
1990
1964
|
} catch {
|
|
1991
1965
|
throw new DOMException("Source would taint origin.", "SecurityError");
|
|
1992
1966
|
}
|
|
1993
1967
|
}
|
|
1994
|
-
async function
|
|
1968
|
+
async function uo(o) {
|
|
1995
1969
|
let f;
|
|
1996
1970
|
try {
|
|
1997
|
-
f = await createImageBitmap(
|
|
1971
|
+
f = await createImageBitmap(o);
|
|
1998
1972
|
} catch {
|
|
1999
1973
|
try {
|
|
2000
1974
|
if (globalThis.Image) {
|
|
2001
1975
|
f = new Image();
|
|
2002
|
-
let
|
|
1976
|
+
let $ = "";
|
|
2003
1977
|
try {
|
|
2004
|
-
|
|
1978
|
+
$ = URL.createObjectURL(o), f.src = $, await f.decode();
|
|
2005
1979
|
} finally {
|
|
2006
|
-
URL.revokeObjectURL(
|
|
1980
|
+
URL.revokeObjectURL($);
|
|
2007
1981
|
}
|
|
2008
1982
|
} else
|
|
2009
|
-
return
|
|
1983
|
+
return o;
|
|
2010
1984
|
} catch {
|
|
2011
1985
|
throw new DOMException(
|
|
2012
1986
|
"Failed to load or decode Blob.",
|
|
@@ -2014,151 +1988,151 @@ async function $i(i) {
|
|
|
2014
1988
|
);
|
|
2015
1989
|
}
|
|
2016
1990
|
}
|
|
2017
|
-
return await
|
|
1991
|
+
return await Xe(f);
|
|
2018
1992
|
}
|
|
2019
|
-
function
|
|
2020
|
-
const { width: f, height:
|
|
2021
|
-
if (f === 0 ||
|
|
1993
|
+
function co(o) {
|
|
1994
|
+
const { width: f, height: c } = o;
|
|
1995
|
+
if (f === 0 || c === 0)
|
|
2022
1996
|
return null;
|
|
2023
|
-
const T =
|
|
1997
|
+
const T = o.getContext("2d");
|
|
2024
1998
|
try {
|
|
2025
|
-
return T.getImageData(0, 0, f,
|
|
1999
|
+
return T.getImageData(0, 0, f, c);
|
|
2026
2000
|
} catch {
|
|
2027
2001
|
throw new DOMException("Source would taint origin.", "SecurityError");
|
|
2028
2002
|
}
|
|
2029
2003
|
}
|
|
2030
|
-
async function
|
|
2031
|
-
if (
|
|
2032
|
-
return await
|
|
2033
|
-
if (
|
|
2034
|
-
if (
|
|
2004
|
+
async function lo(o) {
|
|
2005
|
+
if (oo(o))
|
|
2006
|
+
return await uo(o);
|
|
2007
|
+
if (io(o)) {
|
|
2008
|
+
if (vo(o))
|
|
2035
2009
|
throw new DOMException(
|
|
2036
2010
|
"The image data has been detached.",
|
|
2037
2011
|
"InvalidStateError"
|
|
2038
2012
|
);
|
|
2039
|
-
return
|
|
2013
|
+
return o;
|
|
2040
2014
|
}
|
|
2041
|
-
return
|
|
2015
|
+
return He(o) || ze(o) ? co(o) : await Xe(o);
|
|
2042
2016
|
}
|
|
2043
|
-
async function
|
|
2017
|
+
async function fo(o) {
|
|
2044
2018
|
try {
|
|
2045
|
-
return await
|
|
2019
|
+
return await o.decode(), !0;
|
|
2046
2020
|
} catch {
|
|
2047
2021
|
return !1;
|
|
2048
2022
|
}
|
|
2049
2023
|
}
|
|
2050
|
-
async function
|
|
2024
|
+
async function ho(o) {
|
|
2051
2025
|
var f;
|
|
2052
2026
|
try {
|
|
2053
|
-
return await ((f =
|
|
2027
|
+
return await ((f = o.decode) == null ? void 0 : f.call(o)), !0;
|
|
2054
2028
|
} catch {
|
|
2055
2029
|
return !1;
|
|
2056
2030
|
}
|
|
2057
2031
|
}
|
|
2058
|
-
function
|
|
2059
|
-
return
|
|
2032
|
+
function po(o) {
|
|
2033
|
+
return o.format === null;
|
|
2060
2034
|
}
|
|
2061
|
-
function
|
|
2062
|
-
return
|
|
2035
|
+
function vo(o) {
|
|
2036
|
+
return o.data.buffer.byteLength === 0;
|
|
2063
2037
|
}
|
|
2064
|
-
function
|
|
2065
|
-
return
|
|
2038
|
+
function yo(o) {
|
|
2039
|
+
return o.width === 0 && o.height === 0;
|
|
2066
2040
|
}
|
|
2067
|
-
function
|
|
2068
|
-
return
|
|
2041
|
+
function je(o, f) {
|
|
2042
|
+
return mo(o) ? new DOMException(`${f}: ${o.message}`, o.name) : go(o) ? new o.constructor(`${f}: ${o.message}`) : new Error(`${f}: ${o}`);
|
|
2069
2043
|
}
|
|
2070
|
-
function
|
|
2071
|
-
return
|
|
2044
|
+
function mo(o) {
|
|
2045
|
+
return o instanceof DOMException || Object.prototype.toString.call(o) === "[object DOMException]";
|
|
2072
2046
|
}
|
|
2073
|
-
function
|
|
2074
|
-
return
|
|
2047
|
+
function go(o) {
|
|
2048
|
+
return o instanceof Error || Object.prototype.toString.call(o) === "[object Error]";
|
|
2075
2049
|
}
|
|
2076
2050
|
var pt;
|
|
2077
|
-
class
|
|
2051
|
+
class Eo {
|
|
2078
2052
|
constructor(f = {}) {
|
|
2079
|
-
|
|
2080
|
-
var
|
|
2053
|
+
De(this, pt);
|
|
2054
|
+
var c;
|
|
2081
2055
|
try {
|
|
2082
|
-
const T = (
|
|
2083
|
-
(
|
|
2056
|
+
const T = (c = f == null ? void 0 : f.formats) == null ? void 0 : c.filter(
|
|
2057
|
+
($) => $ !== "unknown"
|
|
2084
2058
|
);
|
|
2085
2059
|
if ((T == null ? void 0 : T.length) === 0)
|
|
2086
2060
|
throw new TypeError("Hint option provided, but is empty.");
|
|
2087
|
-
for (const
|
|
2088
|
-
if (!
|
|
2061
|
+
for (const $ of T != null ? T : [])
|
|
2062
|
+
if (!Zt.has($))
|
|
2089
2063
|
throw new TypeError(
|
|
2090
|
-
`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${
|
|
2064
|
+
`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${$}' is not a valid enum value of type BarcodeFormat.`
|
|
2091
2065
|
);
|
|
2092
|
-
|
|
2066
|
+
Me(this, pt, T != null ? T : []), Be({ fireImmediately: !0 }).catch(() => {
|
|
2093
2067
|
});
|
|
2094
2068
|
} catch (T) {
|
|
2095
|
-
throw
|
|
2069
|
+
throw je(
|
|
2096
2070
|
T,
|
|
2097
2071
|
"Failed to construct 'BarcodeDetector'"
|
|
2098
2072
|
);
|
|
2099
2073
|
}
|
|
2100
2074
|
}
|
|
2101
2075
|
static async getSupportedFormats() {
|
|
2102
|
-
return
|
|
2076
|
+
return ro.filter((f) => f !== "unknown");
|
|
2103
2077
|
}
|
|
2104
2078
|
async detect(f) {
|
|
2105
2079
|
try {
|
|
2106
|
-
const
|
|
2107
|
-
if (
|
|
2080
|
+
const c = await lo(f);
|
|
2081
|
+
if (c === null)
|
|
2108
2082
|
return [];
|
|
2109
2083
|
let T;
|
|
2110
|
-
const
|
|
2084
|
+
const $ = {
|
|
2111
2085
|
tryCode39ExtendedMode: !1,
|
|
2112
2086
|
textMode: "Plain",
|
|
2113
|
-
formats:
|
|
2087
|
+
formats: Ie(this, pt).map((x) => Zt.get(x))
|
|
2114
2088
|
};
|
|
2115
2089
|
try {
|
|
2116
|
-
T = await
|
|
2117
|
-
} catch (
|
|
2118
|
-
throw console.error(
|
|
2090
|
+
T = await eo(c, $);
|
|
2091
|
+
} catch (x) {
|
|
2092
|
+
throw console.error(x), new DOMException(
|
|
2119
2093
|
"Barcode detection service unavailable.",
|
|
2120
2094
|
"NotSupportedError"
|
|
2121
2095
|
);
|
|
2122
2096
|
}
|
|
2123
|
-
return T.map((
|
|
2097
|
+
return T.map((x) => {
|
|
2124
2098
|
const {
|
|
2125
|
-
topLeft: { x: D, y:
|
|
2126
|
-
topRight: { x:
|
|
2127
|
-
bottomLeft: { x:
|
|
2128
|
-
bottomRight: { x:
|
|
2129
|
-
} =
|
|
2099
|
+
topLeft: { x: D, y: j },
|
|
2100
|
+
topRight: { x: O, y: M },
|
|
2101
|
+
bottomLeft: { x: F, y: q },
|
|
2102
|
+
bottomRight: { x: rt, y: Y }
|
|
2103
|
+
} = x.position, st = Math.min(D, O, F, rt), k = Math.min(j, M, q, Y), Z = Math.max(D, O, F, rt), nt = Math.max(j, M, q, Y);
|
|
2130
2104
|
return {
|
|
2131
2105
|
boundingBox: new DOMRectReadOnly(
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2106
|
+
st,
|
|
2107
|
+
k,
|
|
2108
|
+
Z - st,
|
|
2109
|
+
nt - k
|
|
2136
2110
|
),
|
|
2137
|
-
rawValue:
|
|
2138
|
-
format:
|
|
2111
|
+
rawValue: x.text,
|
|
2112
|
+
format: no(x.format),
|
|
2139
2113
|
cornerPoints: [
|
|
2140
2114
|
{
|
|
2141
2115
|
x: D,
|
|
2142
|
-
y:
|
|
2116
|
+
y: j
|
|
2143
2117
|
},
|
|
2144
2118
|
{
|
|
2145
|
-
x:
|
|
2119
|
+
x: O,
|
|
2146
2120
|
y: M
|
|
2147
2121
|
},
|
|
2148
2122
|
{
|
|
2149
|
-
x:
|
|
2150
|
-
y:
|
|
2123
|
+
x: rt,
|
|
2124
|
+
y: Y
|
|
2151
2125
|
},
|
|
2152
2126
|
{
|
|
2153
|
-
x:
|
|
2154
|
-
y:
|
|
2127
|
+
x: F,
|
|
2128
|
+
y: q
|
|
2155
2129
|
}
|
|
2156
2130
|
]
|
|
2157
2131
|
};
|
|
2158
2132
|
});
|
|
2159
|
-
} catch (
|
|
2160
|
-
throw
|
|
2161
|
-
|
|
2133
|
+
} catch (c) {
|
|
2134
|
+
throw je(
|
|
2135
|
+
c,
|
|
2162
2136
|
"Failed to execute 'detect' on 'BarcodeDetector'"
|
|
2163
2137
|
);
|
|
2164
2138
|
}
|
|
@@ -2166,11 +2140,11 @@ class Ri {
|
|
|
2166
2140
|
}
|
|
2167
2141
|
pt = new WeakMap();
|
|
2168
2142
|
export {
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2143
|
+
Eo as BarcodeDetector,
|
|
2144
|
+
bo as ZXING_CPP_COMMIT,
|
|
2145
|
+
Po as ZXING_WASM_SHA256,
|
|
2146
|
+
$o as ZXING_WASM_VERSION,
|
|
2147
|
+
Be as prepareZXingModule,
|
|
2148
|
+
Co as purgeZXingModule,
|
|
2149
|
+
To as setZXingModuleOverrides
|
|
2176
2150
|
};
|