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