@simprints/simface-sdk 0.12.1 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/services/face-detection.js +17 -1
- package/dist/services/face-detection.js.map +1 -1
- package/dist/services/face-quality.d.ts +4 -0
- package/dist/services/face-quality.js +71 -12
- package/dist/services/face-quality.js.map +1 -1
- package/dist/services/sharpness.d.ts +36 -0
- package/dist/services/sharpness.js +97 -0
- package/dist/services/sharpness.js.map +1 -0
- package/dist/shared/capture-runtime.d.ts +4 -0
- package/dist/shared/capture-runtime.js +12 -0
- package/dist/shared/capture-runtime.js.map +1 -1
- package/dist/shared/capture-session.js +4 -1
- package/dist/shared/capture-session.js.map +1 -1
- package/dist/simface-sdk.js +1019 -906
- package/dist/simface-sdk.umd.cjs +23 -23
- package/dist/types/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/simface-sdk.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class
|
|
1
|
+
class ko {
|
|
2
2
|
constructor(t) {
|
|
3
3
|
this.apiUrl = t.apiUrl.replace(/\/$/, ""), this.projectId = t.projectId, this.apiKey = t.apiKey;
|
|
4
4
|
}
|
|
@@ -66,11 +66,11 @@ function Zn(e, t) {
|
|
|
66
66
|
return t = String.fromCharCode.apply(null, t), e == null ? t : e + t;
|
|
67
67
|
}
|
|
68
68
|
let Sr, fs;
|
|
69
|
-
const
|
|
70
|
-
let
|
|
71
|
-
const
|
|
72
|
-
function
|
|
73
|
-
if (
|
|
69
|
+
const qc = typeof TextDecoder < "u";
|
|
70
|
+
let Xc;
|
|
71
|
+
const Yc = typeof TextEncoder < "u";
|
|
72
|
+
function So(e) {
|
|
73
|
+
if (Yc) e = (Xc || (Xc = new TextEncoder())).encode(e);
|
|
74
74
|
else {
|
|
75
75
|
let r = 0;
|
|
76
76
|
const s = new Uint8Array(3 * e.length);
|
|
@@ -100,12 +100,12 @@ function wo(e) {
|
|
|
100
100
|
}
|
|
101
101
|
return e;
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function To(e) {
|
|
104
104
|
kt.setTimeout((() => {
|
|
105
105
|
throw e;
|
|
106
106
|
}), 0);
|
|
107
107
|
}
|
|
108
|
-
var Cs,
|
|
108
|
+
var Cs, Qc = cr(610401301, !1), ei = cr(748402147, !0), Qs = cr(824648567, !0), Js = cr(824656860, cr(1, !0));
|
|
109
109
|
function ti() {
|
|
110
110
|
var e = kt.navigator;
|
|
111
111
|
return e && (e = e.userAgent) ? e : "";
|
|
@@ -116,9 +116,9 @@ function jr(e) {
|
|
|
116
116
|
}
|
|
117
117
|
Cs = ri && ri.userAgentData || null, jr[" "] = function() {
|
|
118
118
|
};
|
|
119
|
-
const
|
|
119
|
+
const Co = {};
|
|
120
120
|
let er = null;
|
|
121
|
-
function
|
|
121
|
+
function Jc(e) {
|
|
122
122
|
const t = e.length;
|
|
123
123
|
let r = 3 * t / 4;
|
|
124
124
|
r % 3 ? r = Math.floor(r) : "=.".indexOf(e[t - 1]) != -1 && (r = "=.".indexOf(e[t - 2]) != -1 ? r - 2 : r - 1);
|
|
@@ -133,24 +133,24 @@ function qc(e) {
|
|
|
133
133
|
}
|
|
134
134
|
return u;
|
|
135
135
|
}
|
|
136
|
-
|
|
136
|
+
Lo();
|
|
137
137
|
let c = 0;
|
|
138
138
|
for (; ; ) {
|
|
139
|
-
const u = a(-1), h = a(0), l = a(64),
|
|
140
|
-
if (
|
|
141
|
-
o(u << 2 | h >> 4), l != 64 && (o(h << 4 & 240 | l >> 2),
|
|
139
|
+
const u = a(-1), h = a(0), l = a(64), d = a(64);
|
|
140
|
+
if (d === 64 && u === -1) break;
|
|
141
|
+
o(u << 2 | h >> 4), l != 64 && (o(h << 4 & 240 | l >> 2), d != 64 && o(l << 6 & 192 | d));
|
|
142
142
|
}
|
|
143
143
|
})(e, (function(i) {
|
|
144
144
|
s[n++] = i;
|
|
145
145
|
})), n !== r ? s.subarray(0, n) : s;
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Lo() {
|
|
148
148
|
if (!er) {
|
|
149
149
|
er = {};
|
|
150
150
|
var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""), t = ["+/=", "+/", "-_=", "-_.", "-_"];
|
|
151
151
|
for (let r = 0; r < 5; r++) {
|
|
152
152
|
const s = e.concat(t[r].split(""));
|
|
153
|
-
|
|
153
|
+
Co[r] = s;
|
|
154
154
|
for (let n = 0; n < s.length; n++) {
|
|
155
155
|
const i = s[n];
|
|
156
156
|
er[i] === void 0 && (er[i] = n);
|
|
@@ -158,52 +158,52 @@ function ko() {
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
var
|
|
162
|
-
const si = /[-_.]/g,
|
|
163
|
-
function
|
|
164
|
-
return
|
|
161
|
+
var Zc = typeof Uint8Array < "u", Po = !(!(Qc && Cs && Cs.brands.length > 0) && (ti().indexOf("Trident") != -1 || ti().indexOf("MSIE") != -1)) && typeof btoa == "function";
|
|
162
|
+
const si = /[-_.]/g, eh = { "-": "+", _: "/", ".": "=" };
|
|
163
|
+
function th(e) {
|
|
164
|
+
return eh[e] || "";
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
if (!
|
|
168
|
-
e = si.test(e) ? e.replace(si,
|
|
166
|
+
function Mo(e) {
|
|
167
|
+
if (!Po) return Jc(e);
|
|
168
|
+
e = si.test(e) ? e.replace(si, th) : e, e = atob(e);
|
|
169
169
|
const t = new Uint8Array(e.length);
|
|
170
170
|
for (let r = 0; r < e.length; r++) t[r] = e.charCodeAt(r);
|
|
171
171
|
return t;
|
|
172
172
|
}
|
|
173
173
|
function Zs(e) {
|
|
174
|
-
return
|
|
174
|
+
return Zc && e != null && e instanceof Uint8Array;
|
|
175
175
|
}
|
|
176
176
|
var St = {};
|
|
177
177
|
function ut() {
|
|
178
|
-
return
|
|
178
|
+
return rh || (rh = new Ce(null, St));
|
|
179
179
|
}
|
|
180
180
|
function en(e) {
|
|
181
|
-
|
|
181
|
+
xo(St);
|
|
182
182
|
var t = e.g;
|
|
183
|
-
return (t = t == null || Zs(t) ? t : typeof t == "string" ?
|
|
183
|
+
return (t = t == null || Zs(t) ? t : typeof t == "string" ? Mo(t) : null) == null ? t : e.g = t;
|
|
184
184
|
}
|
|
185
185
|
var Ce = class {
|
|
186
186
|
h() {
|
|
187
187
|
return new Uint8Array(en(this) || 0);
|
|
188
188
|
}
|
|
189
189
|
constructor(t, r) {
|
|
190
|
-
if (
|
|
190
|
+
if (xo(r), this.g = t, t != null && t.length === 0) throw Error("ByteString should be constructed with non-empty values");
|
|
191
191
|
}
|
|
192
192
|
};
|
|
193
|
-
let
|
|
194
|
-
function
|
|
193
|
+
let rh, sh;
|
|
194
|
+
function xo(e) {
|
|
195
195
|
if (e !== St) throw Error("illegal external caller");
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Fo(e, t) {
|
|
198
198
|
e.__closure__error__context__984382 || (e.__closure__error__context__984382 = {}), e.__closure__error__context__984382.severity = t;
|
|
199
199
|
}
|
|
200
200
|
function Ls(e) {
|
|
201
|
-
return
|
|
201
|
+
return Fo(e = Error(e), "warning"), e;
|
|
202
202
|
}
|
|
203
203
|
function Tt(e, t) {
|
|
204
204
|
if (e != null) {
|
|
205
|
-
var r =
|
|
206
|
-
s >= t || (r[e] = s + 1,
|
|
205
|
+
var r = sh ?? (sh = {}), s = r[e] || 0;
|
|
206
|
+
s >= t || (r[e] = s + 1, Fo(e = Error(), "incident"), To(e));
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
function Bt() {
|
|
@@ -213,21 +213,21 @@ var Ut = typeof Symbol == "function" && typeof Symbol() == "symbol";
|
|
|
213
213
|
function Le(e, t, r = !1) {
|
|
214
214
|
return typeof Symbol == "function" && typeof Symbol() == "symbol" ? r && Symbol.for && e ? Symbol.for(e) : e != null ? Symbol(e) : Symbol() : t;
|
|
215
215
|
}
|
|
216
|
-
var
|
|
217
|
-
const
|
|
216
|
+
var nh = Le("jas", void 0, !0), ni = Le(void 0, "0di"), Qt = Le(void 0, "1oa"), oe = Le(void 0, Symbol()), ih = Le(void 0, "0ub"), oh = Le(void 0, "0ubs"), Ps = Le(void 0, "0ubsb"), ah = Le(void 0, "0actk"), Ct = Le("m_m", "Pa", !0), ii = Le();
|
|
217
|
+
const $o = { Ga: { value: 0, configurable: !0, writable: !0, enumerable: !1 } }, Oo = Object.defineProperties, p = Ut ? nh : "Ga";
|
|
218
218
|
var pt;
|
|
219
219
|
const oi = [];
|
|
220
|
-
function
|
|
221
|
-
Ut || p in e ||
|
|
220
|
+
function mr(e, t) {
|
|
221
|
+
Ut || p in e || Oo(e, $o), e[p] |= t;
|
|
222
222
|
}
|
|
223
223
|
function H(e, t) {
|
|
224
|
-
Ut || p in e ||
|
|
224
|
+
Ut || p in e || Oo(e, $o), e[p] = t;
|
|
225
225
|
}
|
|
226
226
|
function yr(e) {
|
|
227
|
-
return
|
|
227
|
+
return mr(e, 34), e;
|
|
228
228
|
}
|
|
229
229
|
function hr(e) {
|
|
230
|
-
return
|
|
230
|
+
return mr(e, 8192), e;
|
|
231
231
|
}
|
|
232
232
|
H(oi, 7), pt = Object.freeze(oi);
|
|
233
233
|
var Lt = {};
|
|
@@ -258,8 +258,8 @@ class ai {
|
|
|
258
258
|
return this;
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
-
var
|
|
262
|
-
function
|
|
261
|
+
var ch = Object.freeze({});
|
|
262
|
+
function Ro(e, t, r) {
|
|
263
263
|
const s = 128 & t ? 0 : -1, n = e.length;
|
|
264
264
|
var i;
|
|
265
265
|
(i = !!n) && (i = (i = e[n - 1]) != null && typeof i == "object" && i.constructor === Object);
|
|
@@ -270,23 +270,23 @@ function xo(e, t, r) {
|
|
|
270
270
|
for (const a in e) !isNaN(a) && r(+a, e[a]);
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
-
var
|
|
273
|
+
var Io = {};
|
|
274
274
|
function Dt(e) {
|
|
275
|
-
return 128 & e ?
|
|
275
|
+
return 128 & e ? Io : void 0;
|
|
276
276
|
}
|
|
277
277
|
function Vr(e) {
|
|
278
278
|
return e.Na = !0, e;
|
|
279
279
|
}
|
|
280
|
-
var
|
|
280
|
+
var hh = Vr(((e) => typeof e == "number")), ci = Vr(((e) => typeof e == "string")), uh = Vr(((e) => typeof e == "boolean")), Gr = typeof kt.BigInt == "function" && typeof kt.BigInt(0) == "bigint";
|
|
281
281
|
function ae(e) {
|
|
282
282
|
var t = e;
|
|
283
283
|
if (ci(t)) {
|
|
284
284
|
if (!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(t)) throw Error(String(t));
|
|
285
|
-
} else if (
|
|
286
|
-
return Gr ? BigInt(e) : e =
|
|
285
|
+
} else if (hh(t) && !Number.isSafeInteger(t)) throw Error(String(t));
|
|
286
|
+
return Gr ? BigInt(e) : e = uh(e) ? e ? "1" : "0" : ci(e) ? e.trim() || "0" : String(e);
|
|
287
287
|
}
|
|
288
|
-
var Ms = Vr(((e) => Gr ? e >=
|
|
289
|
-
const
|
|
288
|
+
var Ms = Vr(((e) => Gr ? e >= dh && e <= ph : e[0] === "-" ? hi(e, lh) : hi(e, fh)));
|
|
289
|
+
const lh = Number.MIN_SAFE_INTEGER.toString(), dh = Gr ? BigInt(Number.MIN_SAFE_INTEGER) : void 0, fh = Number.MAX_SAFE_INTEGER.toString(), ph = Gr ? BigInt(Number.MAX_SAFE_INTEGER) : void 0;
|
|
290
290
|
function hi(e, t) {
|
|
291
291
|
if (e.length > t.length) return !1;
|
|
292
292
|
if (e.length < t.length || e === t) return !0;
|
|
@@ -296,8 +296,8 @@ function hi(e, t) {
|
|
|
296
296
|
if (s < n) return !0;
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
const
|
|
300
|
-
let
|
|
299
|
+
const gh = typeof Uint8Array.prototype.slice == "function";
|
|
300
|
+
let mh, M = 0, B = 0;
|
|
301
301
|
function ui(e) {
|
|
302
302
|
const t = e >>> 0;
|
|
303
303
|
M = t, B = (e - t) / 4294967296 >>> 0;
|
|
@@ -310,21 +310,21 @@ function Pt(e) {
|
|
|
310
310
|
} else ui(e);
|
|
311
311
|
}
|
|
312
312
|
function rn(e) {
|
|
313
|
-
const t =
|
|
313
|
+
const t = mh || (mh = new DataView(new ArrayBuffer(8)));
|
|
314
314
|
t.setFloat32(0, +e, !0), B = 0, M = t.getUint32(0, !0);
|
|
315
315
|
}
|
|
316
316
|
function xs(e, t) {
|
|
317
317
|
const r = 4294967296 * t + (e >>> 0);
|
|
318
318
|
return Number.isSafeInteger(r) ? r : ur(e, t);
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function yh(e, t) {
|
|
321
321
|
return ae(Bt() ? BigInt.asUintN(64, (BigInt(t >>> 0) << BigInt(32)) + BigInt(e >>> 0)) : ur(e, t));
|
|
322
322
|
}
|
|
323
323
|
function sn(e, t) {
|
|
324
324
|
const r = 2147483648 & t;
|
|
325
325
|
return r && (t = ~t >>> 0, (e = 1 + ~e >>> 0) == 0 && (t = t + 1 >>> 0)), typeof (e = xs(e, t)) == "number" ? r ? -e : e : r ? "-" + e : e;
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function No(e, t) {
|
|
328
328
|
return Bt() ? ae(BigInt.asIntN(64, (BigInt.asUintN(32, BigInt(t)) << BigInt(32)) + BigInt.asUintN(32, BigInt(e)))) : ae(nn(e, t));
|
|
329
329
|
}
|
|
330
330
|
function ur(e, t) {
|
|
@@ -367,7 +367,7 @@ function on(e, t) {
|
|
|
367
367
|
function ve(e) {
|
|
368
368
|
return Array.prototype.slice.call(e);
|
|
369
369
|
}
|
|
370
|
-
const br = typeof BigInt == "function" ? BigInt.asIntN : void 0,
|
|
370
|
+
const br = typeof BigInt == "function" ? BigInt.asIntN : void 0, bh = typeof BigInt == "function" ? BigInt.asUintN : void 0, dt = Number.isSafeInteger, zr = Number.isFinite, Mt = Math.trunc, vh = ae(0);
|
|
371
371
|
function tr(e) {
|
|
372
372
|
if (e != null && typeof e != "number") throw Error(`Value of float/double field must be a number, found ${typeof e}: ${e}`);
|
|
373
373
|
return e;
|
|
@@ -382,10 +382,10 @@ function lr(e) {
|
|
|
382
382
|
}
|
|
383
383
|
return e;
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function Bo(e) {
|
|
386
386
|
return e == null || typeof e == "boolean" ? e : typeof e == "number" ? !!e : void 0;
|
|
387
387
|
}
|
|
388
|
-
const
|
|
388
|
+
const _h = /^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;
|
|
389
389
|
function vr(e) {
|
|
390
390
|
switch (typeof e) {
|
|
391
391
|
case "bigint":
|
|
@@ -393,7 +393,7 @@ function vr(e) {
|
|
|
393
393
|
case "number":
|
|
394
394
|
return zr(e);
|
|
395
395
|
case "string":
|
|
396
|
-
return
|
|
396
|
+
return _h.test(e);
|
|
397
397
|
default:
|
|
398
398
|
return !1;
|
|
399
399
|
}
|
|
@@ -404,38 +404,38 @@ function jt(e) {
|
|
|
404
404
|
else if (typeof e != "number") return;
|
|
405
405
|
return zr(e) ? 0 | e : void 0;
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function Uo(e) {
|
|
408
408
|
if (e == null) return e;
|
|
409
409
|
if (typeof e == "string" && e) e = +e;
|
|
410
410
|
else if (typeof e != "number") return;
|
|
411
411
|
return zr(e) ? e >>> 0 : void 0;
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function Do(e) {
|
|
414
414
|
const t = e.length;
|
|
415
415
|
return (e[0] === "-" ? t < 20 || t === 20 && e <= "-9223372036854775808" : t < 19 || t === 19 && e <= "9223372036854775807") ? e : (Hr(e), nn(M, B));
|
|
416
416
|
}
|
|
417
417
|
function an(e) {
|
|
418
418
|
return e = Mt(e), dt(e) || (Pt(e), e = sn(M, B)), e;
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function jo(e) {
|
|
421
421
|
var t = Mt(Number(e));
|
|
422
|
-
return dt(t) ? String(t) : ((t = e.indexOf(".")) !== -1 && (e = e.substring(0, t)),
|
|
422
|
+
return dt(t) ? String(t) : ((t = e.indexOf(".")) !== -1 && (e = e.substring(0, t)), Do(e));
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function Vo(e) {
|
|
425
425
|
var t = Mt(Number(e));
|
|
426
|
-
return dt(t) ? ae(t) : ((t = e.indexOf(".")) !== -1 && (e = e.substring(0, t)), Bt() ? ae(br(64, BigInt(e))) : ae(
|
|
426
|
+
return dt(t) ? ae(t) : ((t = e.indexOf(".")) !== -1 && (e = e.substring(0, t)), Bt() ? ae(br(64, BigInt(e))) : ae(Do(e)));
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function Go(e) {
|
|
429
429
|
return dt(e) ? e = ae(an(e)) : (e = Mt(e), dt(e) ? e = String(e) : (Pt(e), e = nn(M, B)), e = ae(e)), e;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
432
|
-
return e == null ? e : typeof e == "bigint" ? (Ms(e) ? e = Number(e) : (e = br(64, e), e = Ms(e) ? Number(e) : String(e)), e) : vr(e) ? typeof e == "number" ? an(e) :
|
|
431
|
+
function wh(e) {
|
|
432
|
+
return e == null ? e : typeof e == "bigint" ? (Ms(e) ? e = Number(e) : (e = br(64, e), e = Ms(e) ? Number(e) : String(e)), e) : vr(e) ? typeof e == "number" ? an(e) : jo(e) : void 0;
|
|
433
433
|
}
|
|
434
434
|
function Fr(e) {
|
|
435
435
|
const t = typeof e;
|
|
436
|
-
return e == null ? e : t === "bigint" ? ae(br(64, e)) : vr(e) ? t === "string" ?
|
|
436
|
+
return e == null ? e : t === "bigint" ? ae(br(64, e)) : vr(e) ? t === "string" ? Vo(e) : Go(e) : void 0;
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function Ho(e) {
|
|
439
439
|
if (typeof e != "string") throw Error();
|
|
440
440
|
return e;
|
|
441
441
|
}
|
|
@@ -449,25 +449,25 @@ function Y(e) {
|
|
|
449
449
|
function cn(e, t, r, s) {
|
|
450
450
|
return e != null && e[Ct] === Lt ? e : Array.isArray(e) ? ((s = (r = 0 | e[p]) | 32 & s | 2 & s) !== r && H(e, s), new t(e)) : (r ? 2 & s ? ((e = t[ni]) || (yr((e = new t()).v), e = t[ni] = e), t = e) : t = new t() : t = void 0, t);
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function Ah(e, t, r) {
|
|
453
453
|
if (t) e: {
|
|
454
454
|
if (!vr(t = e)) throw Ls("int64");
|
|
455
455
|
switch (typeof t) {
|
|
456
456
|
case "string":
|
|
457
|
-
t =
|
|
457
|
+
t = Vo(t);
|
|
458
458
|
break e;
|
|
459
459
|
case "bigint":
|
|
460
460
|
t = ae(br(64, t));
|
|
461
461
|
break e;
|
|
462
462
|
default:
|
|
463
|
-
t =
|
|
463
|
+
t = Go(t);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
466
|
else t = Fr(e);
|
|
467
|
-
return (e = t) == null ? r ?
|
|
467
|
+
return (e = t) == null ? r ? vh : void 0 : e;
|
|
468
468
|
}
|
|
469
|
-
const
|
|
470
|
-
let
|
|
469
|
+
const Eh = {};
|
|
470
|
+
let kh = (function() {
|
|
471
471
|
try {
|
|
472
472
|
return jr(new class extends Map {
|
|
473
473
|
constructor() {
|
|
@@ -513,7 +513,7 @@ class ps {
|
|
|
513
513
|
return this.entries();
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
const
|
|
516
|
+
const Sh = kh ? (Object.setPrototypeOf(ps.prototype, Map.prototype), Object.defineProperties(ps.prototype, { size: { value: 0, configurable: !0, enumerable: !0, writable: !0 } }), ps) : class extends Map {
|
|
517
517
|
constructor() {
|
|
518
518
|
super();
|
|
519
519
|
}
|
|
@@ -521,12 +521,12 @@ const wh = _h ? (Object.setPrototypeOf(ps.prototype, Map.prototype), Object.defi
|
|
|
521
521
|
function di(e) {
|
|
522
522
|
return e;
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function gs(e) {
|
|
525
525
|
if (2 & e.J) throw Error("Cannot mutate an immutable Map");
|
|
526
526
|
}
|
|
527
|
-
var Re = class extends
|
|
527
|
+
var Re = class extends Sh {
|
|
528
528
|
constructor(e, t, r = di, s = di) {
|
|
529
|
-
super(), this.J = 0 | e[p], this.K = t, this.S = r, this.fa = this.K ?
|
|
529
|
+
super(), this.J = 0 | e[p], this.K = t, this.S = r, this.fa = this.K ? Th : s;
|
|
530
530
|
for (let n = 0; n < e.length; n++) {
|
|
531
531
|
const i = e[n], o = r(i[0], !1, !0);
|
|
532
532
|
let a = i[1];
|
|
@@ -537,15 +537,15 @@ var Re = class extends wh {
|
|
|
537
537
|
return hr(Array.from(super.entries(), e));
|
|
538
538
|
}
|
|
539
539
|
clear() {
|
|
540
|
-
|
|
540
|
+
gs(this), super.clear();
|
|
541
541
|
}
|
|
542
542
|
delete(e) {
|
|
543
|
-
return
|
|
543
|
+
return gs(this), super.delete(this.S(e, !0, !1));
|
|
544
544
|
}
|
|
545
545
|
entries() {
|
|
546
546
|
if (this.K) {
|
|
547
547
|
var e = super.keys();
|
|
548
|
-
e = new ai(e,
|
|
548
|
+
e = new ai(e, Ch, this);
|
|
549
549
|
} else e = super.entries();
|
|
550
550
|
return e;
|
|
551
551
|
}
|
|
@@ -562,7 +562,7 @@ var Re = class extends wh {
|
|
|
562
562
|
})) : super.forEach(e, t);
|
|
563
563
|
}
|
|
564
564
|
set(e, t) {
|
|
565
|
-
return
|
|
565
|
+
return gs(this), (e = this.S(e, !0, !1)) == null ? this : t == null ? (super.delete(e), this) : super.set(e, this.fa(t, !0, !0, this.K, !1, this.J));
|
|
566
566
|
}
|
|
567
567
|
Ma(e) {
|
|
568
568
|
const t = this.S(e[0], !1, !0);
|
|
@@ -583,15 +583,15 @@ var Re = class extends wh {
|
|
|
583
583
|
return this.entries();
|
|
584
584
|
}
|
|
585
585
|
};
|
|
586
|
-
function
|
|
586
|
+
function Th(e, t, r, s, n, i) {
|
|
587
587
|
return e = cn(e, s, r, i), n && (e = un(e)), e;
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function Ch(e) {
|
|
590
590
|
return [e, this.get(e)];
|
|
591
591
|
}
|
|
592
|
-
let
|
|
592
|
+
let Lh;
|
|
593
593
|
function fi() {
|
|
594
|
-
return
|
|
594
|
+
return Lh || (Lh = new Re(yr([]), void 0, void 0, void 0, Eh));
|
|
595
595
|
}
|
|
596
596
|
function Wr(e) {
|
|
597
597
|
return oe ? e[oe] : void 0;
|
|
@@ -602,41 +602,41 @@ function $r(e, t) {
|
|
|
602
602
|
Re.prototype.toJSON = void 0;
|
|
603
603
|
var Fs = class {
|
|
604
604
|
};
|
|
605
|
-
const
|
|
606
|
-
function
|
|
607
|
-
t < 100 || Tt(
|
|
605
|
+
const Ph = { Ka: !0 };
|
|
606
|
+
function Mh(e, t) {
|
|
607
|
+
t < 100 || Tt(oh, 1);
|
|
608
608
|
}
|
|
609
609
|
function Kr(e, t, r, s) {
|
|
610
610
|
const n = s !== void 0;
|
|
611
611
|
s = !!s;
|
|
612
612
|
var i, o = oe;
|
|
613
|
-
!n && Ut && o && (i = e[o]) && $r(i,
|
|
613
|
+
!n && Ut && o && (i = e[o]) && $r(i, Mh), o = [];
|
|
614
614
|
var a = e.length;
|
|
615
615
|
let c;
|
|
616
616
|
i = 4294967295;
|
|
617
617
|
let u = !1;
|
|
618
618
|
const h = !!(64 & t), l = h ? 128 & t ? 0 : -1 : void 0;
|
|
619
619
|
1 & t || (c = a && e[a - 1], c != null && typeof c == "object" && c.constructor === Object ? i = --a : c = void 0, !h || 128 & t || n || (u = !0, i = i - l + l)), t = void 0;
|
|
620
|
-
for (var
|
|
621
|
-
let
|
|
622
|
-
if (
|
|
623
|
-
const
|
|
624
|
-
(t ?? (t = {}))[
|
|
625
|
-
} else o[
|
|
626
|
-
}
|
|
627
|
-
if (c) for (let
|
|
628
|
-
if ((a = c[
|
|
629
|
-
let
|
|
630
|
-
|
|
631
|
-
}
|
|
632
|
-
return t && (u ? o.push(t) : o[i] = t), n && oe && (e = Wr(e)) && e instanceof Fs && (o[oe] = (function(
|
|
633
|
-
const
|
|
634
|
-
return $r(
|
|
635
|
-
|
|
636
|
-
})),
|
|
620
|
+
for (var d = 0; d < a; d++) {
|
|
621
|
+
let b = e[d];
|
|
622
|
+
if (b != null && (b = r(b, s)) != null) if (h && d >= i) {
|
|
623
|
+
const S = d - l;
|
|
624
|
+
(t ?? (t = {}))[S] = b;
|
|
625
|
+
} else o[d] = b;
|
|
626
|
+
}
|
|
627
|
+
if (c) for (let b in c) {
|
|
628
|
+
if ((a = c[b]) == null || (a = r(a, s)) == null) continue;
|
|
629
|
+
let S;
|
|
630
|
+
d = +b, h && !Number.isNaN(d) && (S = d + l) < i ? o[S] = a : (t ?? (t = {}))[b] = a;
|
|
631
|
+
}
|
|
632
|
+
return t && (u ? o.push(t) : o[i] = t), n && oe && (e = Wr(e)) && e instanceof Fs && (o[oe] = (function(b) {
|
|
633
|
+
const S = new Fs();
|
|
634
|
+
return $r(b, ((ls, yt, Yt) => {
|
|
635
|
+
S[yt] = ve(Yt);
|
|
636
|
+
})), S.da = b.da, S;
|
|
637
637
|
})(e)), o;
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function xh(e) {
|
|
640
640
|
return e[0] = dr(e[0]), e[1] = dr(e[1]), e;
|
|
641
641
|
}
|
|
642
642
|
function dr(e) {
|
|
@@ -652,16 +652,16 @@ function dr(e) {
|
|
|
652
652
|
var t = 0 | e[p];
|
|
653
653
|
return e.length === 0 && 1 & t ? void 0 : Kr(e, t, dr);
|
|
654
654
|
}
|
|
655
|
-
if (e != null && e[Ct] === Lt) return
|
|
655
|
+
if (e != null && e[Ct] === Lt) return zo(e);
|
|
656
656
|
if (e instanceof Ce) {
|
|
657
657
|
if ((t = e.g) == null) e = "";
|
|
658
658
|
else if (typeof t == "string") e = t;
|
|
659
659
|
else {
|
|
660
|
-
if (
|
|
660
|
+
if (Po) {
|
|
661
661
|
for (var r = "", s = 0, n = t.length - 10240; s < n; ) r += String.fromCharCode.apply(null, t.subarray(s, s += 10240));
|
|
662
662
|
r += String.fromCharCode.apply(null, s ? t.subarray(s) : t), t = btoa(r);
|
|
663
663
|
} else {
|
|
664
|
-
r === void 0 && (r = 0),
|
|
664
|
+
r === void 0 && (r = 0), Lo(), r = Co[r], s = Array(Math.floor(t.length / 3)), n = r[64] || "";
|
|
665
665
|
let u = 0, h = 0;
|
|
666
666
|
for (; u < t.length - 2; u += 3) {
|
|
667
667
|
var i = t[u], o = t[u + 1], a = t[u + 2], c = r[i >> 2];
|
|
@@ -679,18 +679,18 @@ function dr(e) {
|
|
|
679
679
|
}
|
|
680
680
|
return e;
|
|
681
681
|
}
|
|
682
|
-
return e instanceof Re ? e = e.size !== 0 ? e.V(
|
|
682
|
+
return e instanceof Re ? e = e.size !== 0 ? e.V(xh) : void 0 : void 0;
|
|
683
683
|
}
|
|
684
684
|
return e;
|
|
685
685
|
}
|
|
686
|
-
function
|
|
686
|
+
function zo(e) {
|
|
687
687
|
return Kr(e = e.v, 0 | e[p], dr);
|
|
688
688
|
}
|
|
689
|
-
let
|
|
689
|
+
let Fh, $h;
|
|
690
690
|
function nt(e, t) {
|
|
691
|
-
return
|
|
691
|
+
return Wo(e, t[0], t[1]);
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function Wo(e, t, r, s = 0) {
|
|
694
694
|
if (e == null) {
|
|
695
695
|
var n = 32;
|
|
696
696
|
r ? (e = [r], n |= 128) : e = [], t && (n = -16760833 & n | (1023 & t) << 14);
|
|
@@ -699,7 +699,7 @@ function Vo(e, t, r, s = 0) {
|
|
|
699
699
|
if (n = 0 | e[p], ei && 1 & n) throw Error("rfarr");
|
|
700
700
|
if (2048 & n && !(2 & n) && (function() {
|
|
701
701
|
if (ei) throw Error("carr");
|
|
702
|
-
Tt(
|
|
702
|
+
Tt(ah, 5);
|
|
703
703
|
})(), 256 & n) throw Error("farr");
|
|
704
704
|
if (64 & n) return (n | s) !== n && H(e, n | s), e;
|
|
705
705
|
if (r && (n |= 128, r !== e[0])) throw Error("mid");
|
|
@@ -724,37 +724,37 @@ function Vo(e, t, r, s = 0) {
|
|
|
724
724
|
}
|
|
725
725
|
return H(e, 64 | n | s), e;
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function Oh(e, t) {
|
|
728
728
|
if (typeof e != "object") return e;
|
|
729
729
|
if (Array.isArray(e)) {
|
|
730
730
|
var r = 0 | e[p];
|
|
731
731
|
return e.length === 0 && 1 & r ? void 0 : pi(e, r, t);
|
|
732
732
|
}
|
|
733
|
-
if (e != null && e[Ct] === Lt) return
|
|
733
|
+
if (e != null && e[Ct] === Lt) return gi(e);
|
|
734
734
|
if (e instanceof Re) {
|
|
735
735
|
if (2 & (t = e.J)) return e;
|
|
736
736
|
if (!e.size) return;
|
|
737
737
|
if (r = yr(e.V()), e.K) for (e = 0; e < r.length; e++) {
|
|
738
738
|
const s = r[e];
|
|
739
739
|
let n = s[1];
|
|
740
|
-
n = n == null || typeof n != "object" ? void 0 : n != null && n[Ct] === Lt ?
|
|
740
|
+
n = n == null || typeof n != "object" ? void 0 : n != null && n[Ct] === Lt ? gi(n) : Array.isArray(n) ? pi(n, 0 | n[p], !!(32 & t)) : void 0, s[1] = n;
|
|
741
741
|
}
|
|
742
742
|
return r;
|
|
743
743
|
}
|
|
744
744
|
return e instanceof Ce ? e : void 0;
|
|
745
745
|
}
|
|
746
746
|
function pi(e, t, r) {
|
|
747
|
-
return 2 & t || (!r || 4096 & t || 16 & t ? e = Vt(e, t, !1, r && !(16 & t)) : (
|
|
747
|
+
return 2 & t || (!r || 4096 & t || 16 & t ? e = Vt(e, t, !1, r && !(16 & t)) : (mr(e, 34), 4 & t && Object.freeze(e))), e;
|
|
748
748
|
}
|
|
749
749
|
function hn(e, t, r) {
|
|
750
750
|
return e = new e.constructor(t), r && (e.h = lt), e.m = lt, e;
|
|
751
751
|
}
|
|
752
|
-
function
|
|
752
|
+
function gi(e) {
|
|
753
753
|
const t = e.v, r = 0 | t[p];
|
|
754
754
|
return ce(e, r) ? e : ln(e, t, r) ? hn(e, t) : Vt(t, r);
|
|
755
755
|
}
|
|
756
756
|
function Vt(e, t, r, s) {
|
|
757
|
-
return s ?? (s = !!(34 & t)), e = Kr(e, t,
|
|
757
|
+
return s ?? (s = !!(34 & t)), e = Kr(e, t, Oh, s), s = 32, r && (s |= 2), H(e, t = 16769217 & t | s), e;
|
|
758
758
|
}
|
|
759
759
|
function un(e) {
|
|
760
760
|
const t = e.v, r = 0 | t[p];
|
|
@@ -763,19 +763,19 @@ function un(e) {
|
|
|
763
763
|
function Gt(e) {
|
|
764
764
|
if (e.h !== lt) return !1;
|
|
765
765
|
var t = e.v;
|
|
766
|
-
return
|
|
766
|
+
return mr(t = Vt(t, 0 | t[p]), 2048), e.v = t, e.h = void 0, e.m = void 0, !0;
|
|
767
767
|
}
|
|
768
768
|
function Ht(e) {
|
|
769
769
|
if (!Gt(e) && ce(e, 0 | e.v[p])) throw Error();
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function gt(e, t) {
|
|
772
772
|
t === void 0 && (t = 0 | e[p]), 32 & t && !(4096 & t) && H(e, 4096 | t);
|
|
773
773
|
}
|
|
774
774
|
function ln(e, t, r) {
|
|
775
775
|
return !!(2 & r) || !(!(32 & r) || 4096 & r) && (H(t, 2 | r), e.h = lt, !0);
|
|
776
776
|
}
|
|
777
|
-
const
|
|
778
|
-
function
|
|
777
|
+
const Rh = ae(0), De = {};
|
|
778
|
+
function L(e, t, r, s, n) {
|
|
779
779
|
if ((t = Ie(e.v, t, r, n)) !== null || s && e.m !== lt) return t;
|
|
780
780
|
}
|
|
781
781
|
function Ie(e, t, r, s) {
|
|
@@ -809,7 +809,7 @@ function V(e, t, r, s, n) {
|
|
|
809
809
|
return i <= o ? (e[i] = s, t) : (s !== void 0 && (r >= (o = (t ?? (t = 0 | e[p])) >> 14 & 1023 || 536870912) ? s != null && (e[o + (n ? 0 : -1)] = { [r]: s }) : e[i] = s), t);
|
|
810
810
|
}
|
|
811
811
|
function tt() {
|
|
812
|
-
return
|
|
812
|
+
return ch === void 0 ? 2 : 4;
|
|
813
813
|
}
|
|
814
814
|
function rt(e, t, r, s, n) {
|
|
815
815
|
let i = e.v, o = 0 | i[p];
|
|
@@ -820,16 +820,16 @@ function rt(e, t, r, s, n) {
|
|
|
820
820
|
4 & c && (e = ve(e), a = 0, c = ot(c, o), o = V(i, o, t, e));
|
|
821
821
|
let h = 0, l = 0;
|
|
822
822
|
for (; h < e.length; h++) {
|
|
823
|
-
const
|
|
824
|
-
|
|
823
|
+
const d = r(e[h]);
|
|
824
|
+
d != null && (e[l++] = d);
|
|
825
825
|
}
|
|
826
826
|
l < h && (e.length = l), r = -513 & (4 | c), c = r &= -1025, c &= -4097;
|
|
827
827
|
}
|
|
828
|
-
return c !== a && (H(e, c), 2 & c && Object.freeze(e)),
|
|
828
|
+
return c !== a && (H(e, c), 2 & c && Object.freeze(e)), Ko(e, c, i, o, t, s, u, n);
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function Ko(e, t, r, s, n, i, o, a) {
|
|
831
831
|
let c = t;
|
|
832
|
-
return i === 1 || i === 4 && (2 & t || !(16 & t) && 32 & s) ? it(t) || ((t |= !e.length || o && !(4096 & t) || 32 & s && !(4096 & t || 16 & t) ? 2 : 256) !== c && H(e, t), Object.freeze(e)) : (i === 2 && it(t) && (e = ve(e), c = 0, t = ot(t, s), s = V(r, s, n, e)), it(t) || (a || (t |= 16), t !== c && H(e, t))), 2 & t || !(4096 & t || 16 & t) ||
|
|
832
|
+
return i === 1 || i === 4 && (2 & t || !(16 & t) && 32 & s) ? it(t) || ((t |= !e.length || o && !(4096 & t) || 32 & s && !(4096 & t || 16 & t) ? 2 : 256) !== c && H(e, t), Object.freeze(e)) : (i === 2 && it(t) && (e = ve(e), c = 0, t = ot(t, s), s = V(r, s, n, e)), it(t) || (a || (t |= 16), t !== c && H(e, t))), 2 & t || !(4096 & t || 16 & t) || gt(r, s), e;
|
|
833
833
|
}
|
|
834
834
|
function dn(e, t, r) {
|
|
835
835
|
return e = Ie(e, t, r), Array.isArray(e) ? e : pt;
|
|
@@ -840,10 +840,10 @@ function fn(e, t) {
|
|
|
840
840
|
function it(e) {
|
|
841
841
|
return !!(2 & e) && !!(4 & e) || !!(256 & e);
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function qo(e) {
|
|
844
844
|
return tn(e, !0);
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function Xo(e) {
|
|
847
847
|
e = ve(e);
|
|
848
848
|
for (let t = 0; t < e.length; t++) {
|
|
849
849
|
const r = e[t] = ve(e[t]);
|
|
@@ -860,9 +860,9 @@ function zt(e, t, r) {
|
|
|
860
860
|
let n = dn(e, r, s), i = n === pt ? 7 : 0 | n[p], o = fn(i, t);
|
|
861
861
|
return (2 & o || it(o) || 16 & o) && (o === i || it(o) || H(n, o), n = ve(n), i = 0, o = ot(o, t), V(e, t, r, n, s)), o &= -13, o !== i && H(n, o), n;
|
|
862
862
|
}
|
|
863
|
-
function
|
|
864
|
-
var r =
|
|
865
|
-
return
|
|
863
|
+
function ms(e, t) {
|
|
864
|
+
var r = ja;
|
|
865
|
+
return gn(pn(e = e.v), e, void 0, r) === t ? t : -1;
|
|
866
866
|
}
|
|
867
867
|
function pn(e) {
|
|
868
868
|
if (Ut) return e[Qt] ?? (e[Qt] = /* @__PURE__ */ new Map());
|
|
@@ -870,11 +870,11 @@ function pn(e) {
|
|
|
870
870
|
const t = /* @__PURE__ */ new Map();
|
|
871
871
|
return Object.defineProperty(e, Qt, { value: t }), t;
|
|
872
872
|
}
|
|
873
|
-
function
|
|
874
|
-
const i = pn(e), o =
|
|
873
|
+
function Yo(e, t, r, s, n) {
|
|
874
|
+
const i = pn(e), o = gn(i, e, t, r, n);
|
|
875
875
|
return o !== s && (o && (t = V(e, t, o, void 0, n)), i.set(r, s)), t;
|
|
876
876
|
}
|
|
877
|
-
function
|
|
877
|
+
function gn(e, t, r, s, n) {
|
|
878
878
|
let i = e.get(s);
|
|
879
879
|
if (i != null) return i;
|
|
880
880
|
i = 0;
|
|
@@ -884,7 +884,7 @@ function mn(e, t, r, s, n) {
|
|
|
884
884
|
}
|
|
885
885
|
return e.set(s, i), i;
|
|
886
886
|
}
|
|
887
|
-
function
|
|
887
|
+
function mn(e, t, r) {
|
|
888
888
|
let s = 0 | e[p];
|
|
889
889
|
const n = Dt(s), i = Ie(e, r, n);
|
|
890
890
|
let o;
|
|
@@ -898,89 +898,89 @@ function gn(e, t, r) {
|
|
|
898
898
|
}
|
|
899
899
|
return o = nt(o, t), o !== i && V(e, s, r, o, n), o;
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function Qo(e, t, r, s, n) {
|
|
902
902
|
let i = !1;
|
|
903
903
|
if ((s = Ie(e, s, n, ((o) => {
|
|
904
904
|
const a = cn(o, r, !1, t);
|
|
905
905
|
return i = a !== o && a != null, a;
|
|
906
|
-
}))) != null) return i && !ce(s) &&
|
|
906
|
+
}))) != null) return i && !ce(s) && gt(e, t), s;
|
|
907
907
|
}
|
|
908
908
|
function A(e, t, r, s) {
|
|
909
909
|
let n = e.v, i = 0 | n[p];
|
|
910
|
-
if ((t =
|
|
910
|
+
if ((t = Qo(n, i, t, r, s)) == null) return t;
|
|
911
911
|
if (i = 0 | n[p], !ce(e, i)) {
|
|
912
912
|
const o = un(t);
|
|
913
|
-
o !== t && (Gt(e) && (n = e.v, i = 0 | n[p]), i = V(n, i, r, t = o, s),
|
|
913
|
+
o !== t && (Gt(e) && (n = e.v, i = 0 | n[p]), i = V(n, i, r, t = o, s), gt(n, i));
|
|
914
914
|
}
|
|
915
915
|
return t;
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function Jo(e, t, r, s, n, i, o, a) {
|
|
918
918
|
var c = ce(e, r);
|
|
919
919
|
i = c ? 1 : i, o = !!o || i === 3, c = a && !c, (i === 2 || c) && Gt(e) && (r = 0 | (t = e.v)[p]);
|
|
920
920
|
var u = (e = dn(t, n)) === pt ? 7 : 0 | e[p], h = fn(u, r);
|
|
921
921
|
if (a = !(4 & h)) {
|
|
922
|
-
var l = e,
|
|
923
|
-
const
|
|
924
|
-
|
|
925
|
-
let
|
|
922
|
+
var l = e, d = r;
|
|
923
|
+
const b = !!(2 & h);
|
|
924
|
+
b && (d |= 2);
|
|
925
|
+
let S = !b, ls = !0, yt = 0, Yt = 0;
|
|
926
926
|
for (; yt < l.length; yt++) {
|
|
927
|
-
const ds = cn(l[yt], s, !1,
|
|
927
|
+
const ds = cn(l[yt], s, !1, d);
|
|
928
928
|
if (ds instanceof s) {
|
|
929
|
-
if (!
|
|
929
|
+
if (!b) {
|
|
930
930
|
const Jn = ce(ds);
|
|
931
|
-
|
|
931
|
+
S && (S = !Jn), ls && (ls = Jn);
|
|
932
932
|
}
|
|
933
933
|
l[Yt++] = ds;
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
|
-
Yt < yt && (l.length = Yt), h |= 4, h = ls ? -4097 & h : 4096 | h, h =
|
|
936
|
+
Yt < yt && (l.length = Yt), h |= 4, h = ls ? -4097 & h : 4096 | h, h = S ? 8 | h : -9 & h;
|
|
937
937
|
}
|
|
938
938
|
if (h !== u && (H(e, h), 2 & h && Object.freeze(e)), c && !(8 & h || !e.length && (i === 1 || i === 4 && (2 & h || !(16 & h) && 32 & r)))) {
|
|
939
939
|
for (it(h) && (e = ve(e), h = ot(h, r), r = V(t, r, n, e)), s = e, c = h, u = 0; u < s.length; u++) (l = s[u]) !== (h = un(l)) && (s[u] = h);
|
|
940
940
|
c |= 8, H(e, h = c = s.length ? 4096 | c : -4097 & c);
|
|
941
941
|
}
|
|
942
|
-
return
|
|
942
|
+
return Ko(e, h, t, r, n, i, a, o);
|
|
943
943
|
}
|
|
944
944
|
function Ne(e, t, r) {
|
|
945
945
|
const s = e.v;
|
|
946
|
-
return
|
|
946
|
+
return Jo(e, s, 0 | s[p], t, r, tt(), !1, !0);
|
|
947
947
|
}
|
|
948
|
-
function
|
|
948
|
+
function Zo(e) {
|
|
949
949
|
return e == null && (e = void 0), e;
|
|
950
950
|
}
|
|
951
|
-
function
|
|
952
|
-
return k(e, r, s =
|
|
951
|
+
function v(e, t, r, s, n) {
|
|
952
|
+
return k(e, r, s = Zo(s), n), s && !ce(s) && gt(e.v), e;
|
|
953
953
|
}
|
|
954
954
|
function rr(e, t, r, s) {
|
|
955
955
|
e: {
|
|
956
|
-
var n = s =
|
|
956
|
+
var n = s = Zo(s);
|
|
957
957
|
Ht(e);
|
|
958
958
|
const i = e.v;
|
|
959
959
|
let o = 0 | i[p];
|
|
960
960
|
if (n == null) {
|
|
961
961
|
const a = pn(i);
|
|
962
|
-
if (
|
|
962
|
+
if (gn(a, i, o, r) !== t) break e;
|
|
963
963
|
a.set(r, 0);
|
|
964
|
-
} else o =
|
|
964
|
+
} else o = Yo(i, o, r, t);
|
|
965
965
|
V(i, o, t, n);
|
|
966
966
|
}
|
|
967
|
-
s && !ce(s) &&
|
|
967
|
+
s && !ce(s) && gt(e.v);
|
|
968
968
|
}
|
|
969
969
|
function ot(e, t) {
|
|
970
970
|
return -273 & (2 & t ? 2 | e : -3 & e);
|
|
971
971
|
}
|
|
972
972
|
function yn(e, t, r, s) {
|
|
973
973
|
var n = s;
|
|
974
|
-
Ht(e), e =
|
|
974
|
+
Ht(e), e = Jo(e, s = e.v, 0 | s[p], r, t, 2, !0), n = n ?? new r(), e.push(n), t = r = e === pt ? 7 : 0 | e[p], (n = ce(n)) ? (r &= -9, e.length === 1 && (r &= -4097)) : r |= 4096, r !== t && H(e, r), n || gt(s);
|
|
975
975
|
}
|
|
976
|
-
function
|
|
977
|
-
return jt(
|
|
976
|
+
function me(e, t, r) {
|
|
977
|
+
return jt(L(e, t, void 0, r));
|
|
978
978
|
}
|
|
979
|
-
function
|
|
980
|
-
return (Js ?
|
|
979
|
+
function ea(e) {
|
|
980
|
+
return (Js ? L(e, 2, void 0, void 0, Fr) : Fr(L(e, 2))) ?? Rh;
|
|
981
981
|
}
|
|
982
982
|
function I(e, t) {
|
|
983
|
-
return
|
|
983
|
+
return L(e, t, void 0, void 0, Te) ?? 0;
|
|
984
984
|
}
|
|
985
985
|
function Be(e, t, r) {
|
|
986
986
|
if (r != null) {
|
|
@@ -1004,7 +1004,7 @@ function Or(e, t, r) {
|
|
|
1004
1004
|
else {
|
|
1005
1005
|
var s = e = r === pt ? 7 : 0 | r[p], n = it(e), i = n || Object.isFrozen(r);
|
|
1006
1006
|
for (n || (e = 0), i || (r = ve(r), s = 0, e = ot(e, a), i = !1), e |= 5, e |= (4 & e ? 512 & e ? 512 : 1024 & e ? 1024 : 0 : void 0) ?? (Js ? 1024 : 0), n = 0; n < r.length; n++) {
|
|
1007
|
-
const c = r[n], u =
|
|
1007
|
+
const c = r[n], u = Ho(c);
|
|
1008
1008
|
Object.is(c, u) || (i && (r = ve(r), s = 0, e = ot(e, a), i = !1), r[n] = u);
|
|
1009
1009
|
}
|
|
1010
1010
|
e !== s && (i && (r = ve(r), e = ot(e, a)), H(r, e)), V(o, a, t, r);
|
|
@@ -1012,7 +1012,7 @@ function Or(e, t, r) {
|
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
1014
|
function qr(e, t, r) {
|
|
1015
|
-
Ht(e), rt(e, t, Y, 2, !0).push(
|
|
1015
|
+
Ht(e), rt(e, t, Y, 2, !0).push(Ho(r));
|
|
1016
1016
|
}
|
|
1017
1017
|
var bt = class {
|
|
1018
1018
|
constructor(e, t, r) {
|
|
@@ -1021,7 +1021,7 @@ var bt = class {
|
|
|
1021
1021
|
}
|
|
1022
1022
|
};
|
|
1023
1023
|
function bn(e, t) {
|
|
1024
|
-
if (typeof e == "string") return new bt(
|
|
1024
|
+
if (typeof e == "string") return new bt(Mo(e), t);
|
|
1025
1025
|
if (Array.isArray(e)) return new bt(new Uint8Array(e), t);
|
|
1026
1026
|
if (e.constructor === Uint8Array) return new bt(e, !1);
|
|
1027
1027
|
if (e.constructor === ArrayBuffer) return e = new Uint8Array(e), new bt(e, !1);
|
|
@@ -1065,35 +1065,35 @@ function Rr(e) {
|
|
|
1065
1065
|
const i = t[r + 2];
|
|
1066
1066
|
return t = t[r + 3], at(e, e.g + 4), e = 2 * ((n = (s << 0 | n << 8 | i << 16 | t << 24) >>> 0) >> 31) + 1, s = n >>> 23 & 255, n &= 8388607, s == 255 ? n ? NaN : e * (1 / 0) : s == 0 ? 1401298464324817e-60 * e * n : e * Math.pow(2, s - 150) * (n + 8388608);
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1068
|
+
function Ih(e) {
|
|
1069
1069
|
return Ke(e);
|
|
1070
1070
|
}
|
|
1071
1071
|
function at(e, t) {
|
|
1072
1072
|
if (e.g = t, t > e.l) throw Error();
|
|
1073
1073
|
}
|
|
1074
|
-
function
|
|
1074
|
+
function ta(e, t) {
|
|
1075
1075
|
if (t < 0) throw Error();
|
|
1076
1076
|
const r = e.g;
|
|
1077
1077
|
if ((t = r + t) > e.l) throw Error();
|
|
1078
1078
|
return e.g = t, r;
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1080
|
+
function ra(e, t) {
|
|
1081
1081
|
if (t == 0) return ut();
|
|
1082
|
-
var r =
|
|
1083
|
-
return e.Y && e.j ? r = e.h.subarray(r, r + t) : (e = e.h, r = r === (t = r + t) ? new Uint8Array(0) :
|
|
1082
|
+
var r = ta(e, t);
|
|
1083
|
+
return e.Y && e.j ? r = e.h.subarray(r, r + t) : (e = e.h, r = r === (t = r + t) ? new Uint8Array(0) : gh ? e.slice(r, t) : new Uint8Array(e.subarray(r, t))), r.length == 0 ? ut() : new Ce(r, St);
|
|
1084
1084
|
}
|
|
1085
|
-
var
|
|
1086
|
-
function
|
|
1085
|
+
var mi = [];
|
|
1086
|
+
function sa(e, t, r, s) {
|
|
1087
1087
|
if (Ir.length) {
|
|
1088
1088
|
const n = Ir.pop();
|
|
1089
1089
|
return n.o(s), n.g.init(e, t, r, s), n;
|
|
1090
1090
|
}
|
|
1091
|
-
return new
|
|
1091
|
+
return new Nh(e, t, r, s);
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function na(e) {
|
|
1094
1094
|
e.g.clear(), e.l = -1, e.h = -1, Ir.length < 100 && Ir.push(e);
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1096
|
+
function ia(e) {
|
|
1097
1097
|
var t = e.g;
|
|
1098
1098
|
if (t.g == t.l) return !1;
|
|
1099
1099
|
e.m = e.g.g;
|
|
@@ -1121,7 +1121,7 @@ function Pr(e) {
|
|
|
1121
1121
|
break;
|
|
1122
1122
|
case 3:
|
|
1123
1123
|
for (t = e.l; ; ) {
|
|
1124
|
-
if (!
|
|
1124
|
+
if (!ia(e)) throw Error();
|
|
1125
1125
|
if (e.h == 4) {
|
|
1126
1126
|
if (e.l != t) throw Error();
|
|
1127
1127
|
break;
|
|
@@ -1141,8 +1141,8 @@ function wr(e, t, r) {
|
|
|
1141
1141
|
return e.g.g = n, e.g.l = s, t;
|
|
1142
1142
|
}
|
|
1143
1143
|
function _n(e) {
|
|
1144
|
-
var t = Ue(e.g), r =
|
|
1145
|
-
if (e = e.h,
|
|
1144
|
+
var t = Ue(e.g), r = ta(e = e.g, t);
|
|
1145
|
+
if (e = e.h, qc) {
|
|
1146
1146
|
var s, n = e;
|
|
1147
1147
|
(s = fs) || (s = fs = new TextDecoder("utf-8", { fatal: !0 })), t = r + t, n = r === 0 && t === n.length ? n : n.subarray(r, t);
|
|
1148
1148
|
try {
|
|
@@ -1172,18 +1172,18 @@ function _n(e) {
|
|
|
1172
1172
|
}
|
|
1173
1173
|
return i;
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function oa(e) {
|
|
1176
1176
|
const t = Ue(e.g);
|
|
1177
|
-
return
|
|
1177
|
+
return ra(e.g, t);
|
|
1178
1178
|
}
|
|
1179
1179
|
function Xr(e, t, r) {
|
|
1180
1180
|
var s = Ue(e.g);
|
|
1181
1181
|
for (s = e.g.g + s; e.g.g < s; ) r.push(t(e.g));
|
|
1182
1182
|
}
|
|
1183
|
-
var
|
|
1183
|
+
var Nh = class {
|
|
1184
1184
|
constructor(e, t, r, s) {
|
|
1185
|
-
if (
|
|
1186
|
-
const n =
|
|
1185
|
+
if (mi.length) {
|
|
1186
|
+
const n = mi.pop();
|
|
1187
1187
|
n.init(e, t, r, s), e = n;
|
|
1188
1188
|
} else e = new class {
|
|
1189
1189
|
constructor(n, i, o, a) {
|
|
@@ -1203,23 +1203,23 @@ var $h = class {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
}, Ir = [];
|
|
1205
1205
|
function yi(e) {
|
|
1206
|
-
return e ? /^\d+$/.test(e) ? (Hr(e), new $s(M, B)) : null :
|
|
1206
|
+
return e ? /^\d+$/.test(e) ? (Hr(e), new $s(M, B)) : null : Bh || (Bh = new $s(0, 0));
|
|
1207
1207
|
}
|
|
1208
1208
|
var $s = class {
|
|
1209
1209
|
constructor(e, t) {
|
|
1210
1210
|
this.h = e >>> 0, this.g = t >>> 0;
|
|
1211
1211
|
}
|
|
1212
1212
|
};
|
|
1213
|
-
let
|
|
1213
|
+
let Bh;
|
|
1214
1214
|
function bi(e) {
|
|
1215
|
-
return e ? /^-?\d+$/.test(e) ? (Hr(e), new Os(M, B)) : null :
|
|
1215
|
+
return e ? /^-?\d+$/.test(e) ? (Hr(e), new Os(M, B)) : null : Uh || (Uh = new Os(0, 0));
|
|
1216
1216
|
}
|
|
1217
1217
|
var Os = class {
|
|
1218
1218
|
constructor(e, t) {
|
|
1219
1219
|
this.h = e >>> 0, this.g = t >>> 0;
|
|
1220
1220
|
}
|
|
1221
1221
|
};
|
|
1222
|
-
let
|
|
1222
|
+
let Uh;
|
|
1223
1223
|
function At(e, t, r) {
|
|
1224
1224
|
for (; r > 0 || t > 127; ) e.g.push(127 & t | 128), t = (t >>> 7 | r << 25) >>> 0, r >>>= 7;
|
|
1225
1225
|
e.g.push(t);
|
|
@@ -1267,25 +1267,25 @@ function Pe() {
|
|
|
1267
1267
|
};
|
|
1268
1268
|
return Object.setPrototypeOf(e, e.prototype), e;
|
|
1269
1269
|
}
|
|
1270
|
-
var kn = Pe(),
|
|
1270
|
+
var kn = Pe(), aa = Pe(), Sn = Pe(), Tn = Pe(), ca = Pe(), ha = Pe(), Dh = Pe(), Jr = Pe(), ua = Pe(), la = Pe();
|
|
1271
1271
|
function Me(e, t, r) {
|
|
1272
1272
|
var s = e.v;
|
|
1273
1273
|
oe && oe in s && (s = s[oe]) && delete s[t.g], t.h ? t.j(e, t.h, t.g, r, t.l) : t.j(e, t.g, r, t.l);
|
|
1274
1274
|
}
|
|
1275
|
-
var
|
|
1275
|
+
var g = class {
|
|
1276
1276
|
constructor(e, t) {
|
|
1277
|
-
this.v =
|
|
1277
|
+
this.v = Wo(e, t, void 0, 2048);
|
|
1278
1278
|
}
|
|
1279
1279
|
toJSON() {
|
|
1280
|
-
return
|
|
1280
|
+
return zo(this);
|
|
1281
1281
|
}
|
|
1282
1282
|
j() {
|
|
1283
1283
|
var n;
|
|
1284
|
-
var e =
|
|
1285
|
-
if (Ut && s && ((n = t[s]) == null ? void 0 : n[r]) != null && Tt(
|
|
1286
|
-
s(r, t,
|
|
1284
|
+
var e = Au, t = this.v, r = e.g, s = oe;
|
|
1285
|
+
if (Ut && s && ((n = t[s]) == null ? void 0 : n[r]) != null && Tt(ih, 3), t = e.g, ii && oe && ii === void 0 && (s = (r = this.v)[oe]) && (s = s.da)) try {
|
|
1286
|
+
s(r, t, Ph);
|
|
1287
1287
|
} catch (i) {
|
|
1288
|
-
|
|
1288
|
+
To(i);
|
|
1289
1289
|
}
|
|
1290
1290
|
return e.h ? e.m(this, e.h, e.g, e.l) : e.m(this, e.g, e.defaultValue, e.l);
|
|
1291
1291
|
}
|
|
@@ -1294,7 +1294,7 @@ var m = class {
|
|
|
1294
1294
|
return ln(this, e, t) ? hn(this, e, !0) : new this.constructor(Vt(e, t, !1));
|
|
1295
1295
|
}
|
|
1296
1296
|
};
|
|
1297
|
-
|
|
1297
|
+
g.prototype[Ct] = Lt, g.prototype.toString = function() {
|
|
1298
1298
|
return this.v.toString();
|
|
1299
1299
|
};
|
|
1300
1300
|
var Kt = class {
|
|
@@ -1305,25 +1305,25 @@ var Kt = class {
|
|
|
1305
1305
|
function Zr(e, t) {
|
|
1306
1306
|
return new Kt(e, t, kn);
|
|
1307
1307
|
}
|
|
1308
|
-
function
|
|
1309
|
-
Nr(e, r,
|
|
1308
|
+
function da(e, t, r, s, n) {
|
|
1309
|
+
Nr(e, r, ma(t, s), n);
|
|
1310
1310
|
}
|
|
1311
|
-
const
|
|
1312
|
-
return e.h === 2 && (wr(e,
|
|
1313
|
-
}),
|
|
1314
|
-
return e.h === 2 && (wr(e,
|
|
1315
|
-
}),
|
|
1311
|
+
const jh = Zr((function(e, t, r, s, n) {
|
|
1312
|
+
return e.h === 2 && (wr(e, mn(t, s, r), n), !0);
|
|
1313
|
+
}), da), Vh = Zr((function(e, t, r, s, n) {
|
|
1314
|
+
return e.h === 2 && (wr(e, mn(t, s, r), n), !0);
|
|
1315
|
+
}), da);
|
|
1316
1316
|
var es = Symbol(), ts = Symbol(), Rs = Symbol(), vi = Symbol(), _i = Symbol();
|
|
1317
|
-
let
|
|
1318
|
-
function
|
|
1317
|
+
let fa, pa;
|
|
1318
|
+
function mt(e, t, r, s) {
|
|
1319
1319
|
var n = s[e];
|
|
1320
1320
|
if (n) return n;
|
|
1321
1321
|
(n = {}).qa = s, n.T = (function(l) {
|
|
1322
1322
|
switch (typeof l) {
|
|
1323
1323
|
case "boolean":
|
|
1324
|
-
return
|
|
1324
|
+
return Fh || (Fh = [0, void 0, !0]);
|
|
1325
1325
|
case "number":
|
|
1326
|
-
return l > 0 ? void 0 : l === 0 ?
|
|
1326
|
+
return l > 0 ? void 0 : l === 0 ? $h || ($h = [0, void 0]) : [-l, void 0];
|
|
1327
1327
|
case "string":
|
|
1328
1328
|
return [0, l];
|
|
1329
1329
|
case "object":
|
|
@@ -1332,7 +1332,7 @@ function gt(e, t, r, s) {
|
|
|
1332
1332
|
})(s[0]);
|
|
1333
1333
|
var i = s[1];
|
|
1334
1334
|
let o = 1;
|
|
1335
|
-
i && i.constructor === Object && (n.ba = i, typeof (i = s[++o]) == "function" && (n.ma = !0,
|
|
1335
|
+
i && i.constructor === Object && (n.ba = i, typeof (i = s[++o]) == "function" && (n.ma = !0, fa ?? (fa = i), pa ?? (pa = s[o + 1]), i = s[o += 2]));
|
|
1336
1336
|
const a = {};
|
|
1337
1337
|
for (; i && Array.isArray(i) && i.length && typeof i[0] == "number" && i[0] > 0; ) {
|
|
1338
1338
|
for (var c = 0; c < i.length; c++) a[i[c]] = i;
|
|
@@ -1342,23 +1342,23 @@ function gt(e, t, r, s) {
|
|
|
1342
1342
|
let l;
|
|
1343
1343
|
typeof i == "number" && (c += i, i = s[++o]);
|
|
1344
1344
|
var u = void 0;
|
|
1345
|
-
if (i instanceof Kt ? l = i : (l =
|
|
1345
|
+
if (i instanceof Kt ? l = i : (l = jh, o--), l == null ? void 0 : l.l) {
|
|
1346
1346
|
i = s[++o], u = s;
|
|
1347
1347
|
var h = o;
|
|
1348
1348
|
typeof i == "function" && (i = i(), u[h] = i), u = i;
|
|
1349
1349
|
}
|
|
1350
1350
|
for (h = c + 1, typeof (i = s[++o]) == "number" && i < 0 && (h -= i, i = s[++o]); c < h; c++) {
|
|
1351
|
-
const
|
|
1352
|
-
u ? r(n, c, l, u,
|
|
1351
|
+
const d = a[c];
|
|
1352
|
+
u ? r(n, c, l, u, d) : t(n, c, l, d);
|
|
1353
1353
|
}
|
|
1354
1354
|
}
|
|
1355
1355
|
return s[e] = n;
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1358
|
-
return Array.isArray(e) ? e[0] instanceof Kt ? e : [
|
|
1357
|
+
function ga(e) {
|
|
1358
|
+
return Array.isArray(e) ? e[0] instanceof Kt ? e : [Vh, e] : [e, void 0];
|
|
1359
1359
|
}
|
|
1360
|
-
function
|
|
1361
|
-
return e instanceof
|
|
1360
|
+
function ma(e, t) {
|
|
1361
|
+
return e instanceof g ? e.v : Array.isArray(e) ? nt(e, t) : void 0;
|
|
1362
1362
|
}
|
|
1363
1363
|
function Cn(e, t, r, s) {
|
|
1364
1364
|
const n = r.g;
|
|
@@ -1367,44 +1367,44 @@ function Cn(e, t, r, s) {
|
|
|
1367
1367
|
function Ln(e, t, r, s, n) {
|
|
1368
1368
|
const i = r.g;
|
|
1369
1369
|
let o, a;
|
|
1370
|
-
e[t] = (c, u, h) => i(c, u, h, a || (a =
|
|
1370
|
+
e[t] = (c, u, h) => i(c, u, h, a || (a = mt(ts, Cn, Ln, s).T), o || (o = Pn(s)), n);
|
|
1371
1371
|
}
|
|
1372
1372
|
function Pn(e) {
|
|
1373
1373
|
let t = e[Rs];
|
|
1374
1374
|
if (t != null) return t;
|
|
1375
|
-
const r =
|
|
1376
|
-
return t = r.ma ? (s, n) =>
|
|
1377
|
-
for (;
|
|
1375
|
+
const r = mt(ts, Cn, Ln, e);
|
|
1376
|
+
return t = r.ma ? (s, n) => fa(s, n, r) : (s, n) => {
|
|
1377
|
+
for (; ia(n) && n.h != 4; ) {
|
|
1378
1378
|
var i = n.l, o = r[i];
|
|
1379
1379
|
if (o == null) {
|
|
1380
1380
|
var a = r.ba;
|
|
1381
|
-
a && (a = a[i]) && (a =
|
|
1381
|
+
a && (a = a[i]) && (a = Hh(a)) != null && (o = r[i] = a);
|
|
1382
1382
|
}
|
|
1383
1383
|
if (o == null || !o(n, s, i)) {
|
|
1384
1384
|
if (o = (a = n).m, Pr(a), a.ha) var c = void 0;
|
|
1385
|
-
else c = a.g.g - o, a.g.g = o, c =
|
|
1385
|
+
else c = a.g.g - o, a.g.g = o, c = ra(a.g, c);
|
|
1386
1386
|
o = void 0, a = s, c && ((o = a[oe] ?? (a[oe] = new Fs()))[i] ?? (o[i] = [])).push(c);
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
1389
|
return (s = Wr(s)) && (s.da = r.qa[_i]), !0;
|
|
1390
|
-
}, e[Rs] = t, e[_i] =
|
|
1390
|
+
}, e[Rs] = t, e[_i] = Gh.bind(e), t;
|
|
1391
1391
|
}
|
|
1392
|
-
function
|
|
1392
|
+
function Gh(e, t, r, s) {
|
|
1393
1393
|
var n = this[ts];
|
|
1394
1394
|
const i = this[Rs], o = nt(void 0, n.T), a = Wr(e);
|
|
1395
1395
|
if (a) {
|
|
1396
1396
|
var c = !1, u = n.ba;
|
|
1397
1397
|
if (u) {
|
|
1398
|
-
if (n = (h, l,
|
|
1399
|
-
if (
|
|
1400
|
-
h =
|
|
1398
|
+
if (n = (h, l, d) => {
|
|
1399
|
+
if (d.length !== 0) if (u[l]) for (const b of d) {
|
|
1400
|
+
h = sa(b);
|
|
1401
1401
|
try {
|
|
1402
1402
|
c = !0, i(o, h);
|
|
1403
1403
|
} finally {
|
|
1404
|
-
|
|
1404
|
+
na(h);
|
|
1405
1405
|
}
|
|
1406
1406
|
}
|
|
1407
|
-
else s == null || s(e, l,
|
|
1407
|
+
else s == null || s(e, l, d);
|
|
1408
1408
|
}, t == null) $r(a, n);
|
|
1409
1409
|
else if (a != null) {
|
|
1410
1410
|
const h = a[t];
|
|
@@ -1413,24 +1413,24 @@ function Uh(e, t, r, s) {
|
|
|
1413
1413
|
if (c) {
|
|
1414
1414
|
let h = 0 | e[p];
|
|
1415
1415
|
if (2 & h && 2048 & h && !(r != null && r.Ka)) throw Error();
|
|
1416
|
-
const l = Dt(h),
|
|
1417
|
-
if (Ie(e,
|
|
1416
|
+
const l = Dt(h), d = (b, S) => {
|
|
1417
|
+
if (Ie(e, b, l) != null) {
|
|
1418
1418
|
if ((r == null ? void 0 : r.Qa) === 1) return;
|
|
1419
1419
|
throw Error();
|
|
1420
1420
|
}
|
|
1421
|
-
|
|
1421
|
+
S != null && (h = V(e, h, b, S, l)), delete a[b];
|
|
1422
1422
|
};
|
|
1423
|
-
t == null ?
|
|
1424
|
-
|
|
1425
|
-
})) :
|
|
1423
|
+
t == null ? Ro(o, 0 | o[p], ((b, S) => {
|
|
1424
|
+
d(b, S);
|
|
1425
|
+
})) : d(t, Ie(o, t, l));
|
|
1426
1426
|
}
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1431
|
-
const t = (e =
|
|
1430
|
+
function Hh(e) {
|
|
1431
|
+
const t = (e = ga(e))[0].g;
|
|
1432
1432
|
if (e = e[1]) {
|
|
1433
|
-
const r = Pn(e), s =
|
|
1433
|
+
const r = Pn(e), s = mt(ts, Cn, Ln, e).T;
|
|
1434
1434
|
return (n, i, o) => t(n, i, o, s, r);
|
|
1435
1435
|
}
|
|
1436
1436
|
return t;
|
|
@@ -1441,27 +1441,27 @@ function rs(e, t, r) {
|
|
|
1441
1441
|
function ss(e, t, r, s) {
|
|
1442
1442
|
let n, i;
|
|
1443
1443
|
const o = r.h;
|
|
1444
|
-
e[t] = (a, c, u) => o(a, c, u, i || (i =
|
|
1444
|
+
e[t] = (a, c, u) => o(a, c, u, i || (i = mt(es, rs, ss, s).T), n || (n = ya(s)));
|
|
1445
1445
|
}
|
|
1446
|
-
function
|
|
1446
|
+
function ya(e) {
|
|
1447
1447
|
let t = e[vi];
|
|
1448
1448
|
if (!t) {
|
|
1449
|
-
const r =
|
|
1450
|
-
t = (s, n) =>
|
|
1449
|
+
const r = mt(es, rs, ss, e);
|
|
1450
|
+
t = (s, n) => ba(s, n, r), e[vi] = t;
|
|
1451
1451
|
}
|
|
1452
1452
|
return t;
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1455
|
-
|
|
1454
|
+
function ba(e, t, r) {
|
|
1455
|
+
Ro(e, 0 | e[p], ((s, n) => {
|
|
1456
1456
|
if (n != null) {
|
|
1457
1457
|
var i = (function(o, a) {
|
|
1458
1458
|
var c = o[a];
|
|
1459
1459
|
if (c) return c;
|
|
1460
1460
|
if ((c = o.ba) && (c = c[a])) {
|
|
1461
|
-
var u = (c =
|
|
1461
|
+
var u = (c = ga(c))[0].h;
|
|
1462
1462
|
if (c = c[1]) {
|
|
1463
|
-
const h =
|
|
1464
|
-
c = o.ma ?
|
|
1463
|
+
const h = ya(c), l = mt(es, rs, ss, c).T;
|
|
1464
|
+
c = o.ma ? pa(l, h) : (d, b, S) => u(d, b, S, l, h);
|
|
1465
1465
|
} else c = u;
|
|
1466
1466
|
return o[a] = c;
|
|
1467
1467
|
}
|
|
@@ -1472,7 +1472,7 @@ function pa(e, t, r) {
|
|
|
1472
1472
|
for (Ft(t, t.g.end()), s = 0; s < i.length; s++) Ft(t, en(i[s]) || new Uint8Array(0));
|
|
1473
1473
|
}));
|
|
1474
1474
|
}
|
|
1475
|
-
const
|
|
1475
|
+
const zh = ae(0);
|
|
1476
1476
|
function qt(e, t) {
|
|
1477
1477
|
if (Array.isArray(t)) {
|
|
1478
1478
|
var r = 0 | t[p];
|
|
@@ -1493,14 +1493,14 @@ function Xt(e, t, r) {
|
|
|
1493
1493
|
function X(e, t, r) {
|
|
1494
1494
|
V(e, 0 | e[p], t, r, Dt(0 | e[p]));
|
|
1495
1495
|
}
|
|
1496
|
-
var
|
|
1496
|
+
var Wh = Zr((function(e, t, r, s, n) {
|
|
1497
1497
|
if (e.h !== 2) return !1;
|
|
1498
1498
|
if (e = ve(e = wr(e, nt([void 0, void 0], s), n)), n = Dt(s = 0 | t[p]), 2 & s) throw Error();
|
|
1499
1499
|
let i = Ie(t, r, n);
|
|
1500
1500
|
if (i instanceof Re) (2 & i.J) != 0 ? (i = i.V(), i.push(e), V(t, s, r, i, n)) : i.Ma(e);
|
|
1501
1501
|
else if (Array.isArray(i)) {
|
|
1502
1502
|
var o = 0 | i[p];
|
|
1503
|
-
8192 & o || H(i, o |= 8192), 2 & o && (i =
|
|
1503
|
+
8192 & o || H(i, o |= 8192), 2 & o && (i = Xo(i), V(t, s, r, i, n)), i.push(e);
|
|
1504
1504
|
} else V(t, s, r, hr([e]), n);
|
|
1505
1505
|
return !0;
|
|
1506
1506
|
}), (function(e, t, r, s, n) {
|
|
@@ -1515,16 +1515,16 @@ var Vh = Zr((function(e, t, r, s, n) {
|
|
|
1515
1515
|
hr(t);
|
|
1516
1516
|
}
|
|
1517
1517
|
}));
|
|
1518
|
-
function
|
|
1518
|
+
function va(e, t, r) {
|
|
1519
1519
|
(t = Te(t)) != null && (ye(e, r, 5), e = e.g, rn(t), wn(e));
|
|
1520
1520
|
}
|
|
1521
|
-
function
|
|
1521
|
+
function _a(e, t, r) {
|
|
1522
1522
|
if (t = (function(s) {
|
|
1523
1523
|
if (s == null) return s;
|
|
1524
1524
|
const n = typeof s;
|
|
1525
1525
|
if (n === "bigint") return String(br(64, s));
|
|
1526
1526
|
if (vr(s)) {
|
|
1527
|
-
if (n === "string") return
|
|
1527
|
+
if (n === "string") return jo(s);
|
|
1528
1528
|
if (n === "number") return an(s);
|
|
1529
1529
|
}
|
|
1530
1530
|
})(t), t != null && (typeof t == "string" && bi(t), t != null))
|
|
@@ -1539,49 +1539,49 @@ function ga(e, t, r) {
|
|
|
1539
1539
|
r = bi(t), At(e.g, r.h, r.g);
|
|
1540
1540
|
}
|
|
1541
1541
|
}
|
|
1542
|
-
function
|
|
1542
|
+
function wa(e, t, r) {
|
|
1543
1543
|
(t = jt(t)) != null && t != null && (ye(e, r, 0), Yr(e.g, t));
|
|
1544
1544
|
}
|
|
1545
|
-
function
|
|
1546
|
-
(t =
|
|
1545
|
+
function Aa(e, t, r) {
|
|
1546
|
+
(t = Bo(t)) != null && (ye(e, r, 0), e.g.g.push(t ? 1 : 0));
|
|
1547
1547
|
}
|
|
1548
|
-
function
|
|
1549
|
-
(t = Y(t)) != null && Qr(e, r,
|
|
1548
|
+
function Ea(e, t, r) {
|
|
1549
|
+
(t = Y(t)) != null && Qr(e, r, So(t));
|
|
1550
1550
|
}
|
|
1551
|
-
function
|
|
1552
|
-
Nr(e, r,
|
|
1551
|
+
function ka(e, t, r, s, n) {
|
|
1552
|
+
Nr(e, r, ma(t, s), n);
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function Sa(e, t, r) {
|
|
1555
1555
|
(t = t == null || typeof t == "string" || t instanceof Ce ? t : void 0) != null && Qr(e, r, bn(t, !0).buffer);
|
|
1556
1556
|
}
|
|
1557
|
-
function
|
|
1557
|
+
function Ta(e, t, r) {
|
|
1558
1558
|
return (e.h === 5 || e.h === 2) && (t = zt(t, 0 | t[p], r), e.h == 2 ? Xr(e, Rr, t) : t.push(Rr(e.g)), !0);
|
|
1559
1559
|
}
|
|
1560
1560
|
var U = J((function(e, t, r) {
|
|
1561
1561
|
return e.h === 5 && (X(t, r, Rr(e.g)), !0);
|
|
1562
|
-
}),
|
|
1562
|
+
}), va, Jr), Kh = Xt(Ta, (function(e, t, r) {
|
|
1563
1563
|
if ((t = qt(Te, t)) != null) for (let o = 0; o < t.length; o++) {
|
|
1564
1564
|
var s = e, n = r, i = t[o];
|
|
1565
1565
|
i != null && (ye(s, n, 5), s = s.g, rn(i), wn(s));
|
|
1566
1566
|
}
|
|
1567
|
-
}), Jr), Mn = Xt(
|
|
1567
|
+
}), Jr), Mn = Xt(Ta, (function(e, t, r) {
|
|
1568
1568
|
if ((t = qt(Te, t)) != null && t.length) {
|
|
1569
1569
|
ye(e, r, 2), Wt(e.g, 4 * t.length);
|
|
1570
1570
|
for (let s = 0; s < t.length; s++) r = e.g, rn(t[s]), wn(r);
|
|
1571
1571
|
}
|
|
1572
|
-
}), Jr),
|
|
1572
|
+
}), Jr), qh = J((function(e, t, r) {
|
|
1573
1573
|
return e.h === 5 && (X(t, r, (e = Rr(e.g)) === 0 ? void 0 : e), !0);
|
|
1574
|
-
}),
|
|
1575
|
-
return Qs ? (e.h !== 0 ? e = !1 : (X(t, r, xt(e.g,
|
|
1576
|
-
}),
|
|
1577
|
-
return Qs ? (e.h !== 0 ? t = !1 : (X(t, r, (e = xt(e.g,
|
|
1578
|
-
}),
|
|
1579
|
-
return Qs ? (e.h !== 0 ? e = !1 : (X(t, r, xt(e.g,
|
|
1574
|
+
}), va, Jr), qe = J((function(e, t, r) {
|
|
1575
|
+
return Qs ? (e.h !== 0 ? e = !1 : (X(t, r, xt(e.g, No)), e = !0), e) : e.h === 0 && (X(t, r, xt(e.g, sn)), !0);
|
|
1576
|
+
}), _a, ha), ys = J((function(e, t, r) {
|
|
1577
|
+
return Qs ? (e.h !== 0 ? t = !1 : (X(t, r, (e = xt(e.g, No)) === zh ? void 0 : e), t = !0), t) : e.h === 0 && (X(t, r, (e = xt(e.g, sn)) === 0 ? void 0 : e), !0);
|
|
1578
|
+
}), _a, ha), Xh = J((function(e, t, r) {
|
|
1579
|
+
return Qs ? (e.h !== 0 ? e = !1 : (X(t, r, xt(e.g, yh)), e = !0), e) : e.h === 0 && (X(t, r, xt(e.g, xs)), !0);
|
|
1580
1580
|
}), (function(e, t, r) {
|
|
1581
1581
|
if (t = (function(s) {
|
|
1582
1582
|
if (s == null) return s;
|
|
1583
1583
|
var n = typeof s;
|
|
1584
|
-
if (n === "bigint") return String(
|
|
1584
|
+
if (n === "bigint") return String(bh(64, s));
|
|
1585
1585
|
if (vr(s)) {
|
|
1586
1586
|
if (n === "string") return n = Mt(Number(s)), dt(n) && n >= 0 ? s = String(n) : ((n = s.indexOf(".")) !== -1 && (s = s.substring(0, n)), (n = s[0] !== "-" && ((n = s.length) < 20 || n === 20 && s <= "18446744073709551615")) || (Hr(s), s = ur(M, B))), s;
|
|
1587
1587
|
if (n === "number") return (s = Mt(s)) >= 0 && dt(s) || (Pt(s), s = xs(M, B)), s;
|
|
@@ -1597,9 +1597,9 @@ var U = J((function(e, t, r) {
|
|
|
1597
1597
|
default:
|
|
1598
1598
|
r = yi(t), At(e.g, r.h, r.g);
|
|
1599
1599
|
}
|
|
1600
|
-
}),
|
|
1600
|
+
}), Dh), q = J((function(e, t, r) {
|
|
1601
1601
|
return e.h === 0 && (X(t, r, Ke(e.g)), !0);
|
|
1602
|
-
}),
|
|
1602
|
+
}), wa, Tn), Ar = Xt((function(e, t, r) {
|
|
1603
1603
|
return (e.h === 0 || e.h === 2) && (t = zt(t, 0 | t[p], r), e.h == 2 ? Xr(e, Ke, t) : t.push(Ke(e.g)), !0);
|
|
1604
1604
|
}), (function(e, t, r) {
|
|
1605
1605
|
if ((t = qt(jt, t)) != null && t.length) {
|
|
@@ -1609,75 +1609,75 @@ var U = J((function(e, t, r) {
|
|
|
1609
1609
|
}
|
|
1610
1610
|
}), Tn), wt = J((function(e, t, r) {
|
|
1611
1611
|
return e.h === 0 && (X(t, r, (e = Ke(e.g)) === 0 ? void 0 : e), !0);
|
|
1612
|
-
}),
|
|
1612
|
+
}), wa, Tn), N = J((function(e, t, r) {
|
|
1613
1613
|
return e.h === 0 && (X(t, r, vn(e.g)), !0);
|
|
1614
|
-
}),
|
|
1614
|
+
}), Aa, aa), ct = J((function(e, t, r) {
|
|
1615
1615
|
return e.h === 0 && (X(t, r, (e = vn(e.g)) === !1 ? void 0 : e), !0);
|
|
1616
|
-
}),
|
|
1616
|
+
}), Aa, aa), Q = Xt((function(e, t, r) {
|
|
1617
1617
|
return e.h === 2 && (e = _n(e), zt(t, 0 | t[p], r).push(e), !0);
|
|
1618
1618
|
}), (function(e, t, r) {
|
|
1619
1619
|
if ((t = qt(Y, t)) != null) for (let o = 0; o < t.length; o++) {
|
|
1620
1620
|
var s = e, n = r, i = t[o];
|
|
1621
|
-
i != null && Qr(s, n,
|
|
1621
|
+
i != null && Qr(s, n, So(i));
|
|
1622
1622
|
}
|
|
1623
1623
|
}), Sn), Ge = J((function(e, t, r) {
|
|
1624
1624
|
return e.h === 2 && (X(t, r, (e = _n(e)) === "" ? void 0 : e), !0);
|
|
1625
|
-
}),
|
|
1625
|
+
}), Ea, Sn), T = J((function(e, t, r) {
|
|
1626
1626
|
return e.h === 2 && (X(t, r, _n(e)), !0);
|
|
1627
|
-
}),
|
|
1627
|
+
}), Ea, Sn), W = (function(e, t, r = kn) {
|
|
1628
1628
|
return new Kt(e, t, r);
|
|
1629
1629
|
})((function(e, t, r, s, n) {
|
|
1630
1630
|
return e.h === 2 && (s = nt(void 0, s), zt(t, 0 | t[p], r).push(s), wr(e, s, n), !0);
|
|
1631
1631
|
}), (function(e, t, r, s, n) {
|
|
1632
1632
|
if (Array.isArray(t)) {
|
|
1633
|
-
for (let i = 0; i < t.length; i++)
|
|
1633
|
+
for (let i = 0; i < t.length; i++) ka(e, t[i], r, s, n);
|
|
1634
1634
|
1 & (e = 0 | t[p]) || H(t, 1 | e);
|
|
1635
1635
|
}
|
|
1636
1636
|
})), R = Zr((function(e, t, r, s, n, i) {
|
|
1637
1637
|
if (e.h !== 2) return !1;
|
|
1638
1638
|
let o = 0 | t[p];
|
|
1639
|
-
return
|
|
1640
|
-
}),
|
|
1641
|
-
return e.h === 2 && (X(t, r,
|
|
1642
|
-
}),
|
|
1639
|
+
return Yo(t, o, i, r, Dt(o)), wr(e, t = mn(t, s, r), n), !0;
|
|
1640
|
+
}), ka), Ca = J((function(e, t, r) {
|
|
1641
|
+
return e.h === 2 && (X(t, r, oa(e)), !0);
|
|
1642
|
+
}), Sa, ua), Yh = Xt((function(e, t, r) {
|
|
1643
1643
|
return (e.h === 0 || e.h === 2) && (t = zt(t, 0 | t[p], r), e.h == 2 ? Xr(e, Ue, t) : t.push(Ue(e.g)), !0);
|
|
1644
1644
|
}), (function(e, t, r) {
|
|
1645
|
-
if ((t = qt(
|
|
1645
|
+
if ((t = qt(Uo, t)) != null) for (let o = 0; o < t.length; o++) {
|
|
1646
1646
|
var s = e, n = r, i = t[o];
|
|
1647
1647
|
i != null && (ye(s, n, 0), Wt(s.g, i));
|
|
1648
1648
|
}
|
|
1649
|
-
}),
|
|
1649
|
+
}), ca), Qh = J((function(e, t, r) {
|
|
1650
1650
|
return e.h === 0 && (X(t, r, (e = Ue(e.g)) === 0 ? void 0 : e), !0);
|
|
1651
1651
|
}), (function(e, t, r) {
|
|
1652
|
-
(t =
|
|
1653
|
-
}),
|
|
1652
|
+
(t = Uo(t)) != null && t != null && (ye(e, r, 0), Wt(e.g, t));
|
|
1653
|
+
}), ca), ue = J((function(e, t, r) {
|
|
1654
1654
|
return e.h === 0 && (X(t, r, Ke(e.g)), !0);
|
|
1655
1655
|
}), (function(e, t, r) {
|
|
1656
1656
|
(t = jt(t)) != null && (t = parseInt(t, 10), ye(e, r, 0), Yr(e.g, t));
|
|
1657
|
-
}),
|
|
1658
|
-
class
|
|
1657
|
+
}), la);
|
|
1658
|
+
class Jh {
|
|
1659
1659
|
constructor(t, r) {
|
|
1660
1660
|
var s = de;
|
|
1661
|
-
this.g = t, this.h = r, this.m = A, this.j =
|
|
1661
|
+
this.g = t, this.h = r, this.m = A, this.j = v, this.defaultValue = void 0, this.l = s.Oa != null ? Io : void 0;
|
|
1662
1662
|
}
|
|
1663
1663
|
register() {
|
|
1664
1664
|
jr(this);
|
|
1665
1665
|
}
|
|
1666
1666
|
}
|
|
1667
1667
|
function xe(e, t) {
|
|
1668
|
-
return new
|
|
1668
|
+
return new Jh(e, t);
|
|
1669
1669
|
}
|
|
1670
1670
|
function Xe(e, t) {
|
|
1671
1671
|
return (r, s) => {
|
|
1672
1672
|
{
|
|
1673
1673
|
const i = { ea: !0 };
|
|
1674
|
-
s && Object.assign(i, s), r =
|
|
1674
|
+
s && Object.assign(i, s), r = sa(r, void 0, void 0, i);
|
|
1675
1675
|
try {
|
|
1676
1676
|
const o = new e(), a = o.v;
|
|
1677
1677
|
Pn(t)(a, r);
|
|
1678
1678
|
var n = o;
|
|
1679
1679
|
} finally {
|
|
1680
|
-
|
|
1680
|
+
na(r);
|
|
1681
1681
|
}
|
|
1682
1682
|
}
|
|
1683
1683
|
return n;
|
|
@@ -1701,7 +1701,7 @@ function ns(e) {
|
|
|
1701
1701
|
}();
|
|
1702
1702
|
}
|
|
1703
1703
|
}();
|
|
1704
|
-
|
|
1704
|
+
ba(this.v, t, mt(es, rs, ss, e)), Ft(t, t.g.end());
|
|
1705
1705
|
const r = new Uint8Array(t.h), s = t.l, n = s.length;
|
|
1706
1706
|
let i = 0;
|
|
1707
1707
|
for (let o = 0; o < n; o++) {
|
|
@@ -1711,22 +1711,22 @@ function ns(e) {
|
|
|
1711
1711
|
return t.l = [r], r;
|
|
1712
1712
|
};
|
|
1713
1713
|
}
|
|
1714
|
-
var wi = class extends
|
|
1714
|
+
var wi = class extends g {
|
|
1715
1715
|
constructor(e) {
|
|
1716
1716
|
super(e);
|
|
1717
1717
|
}
|
|
1718
1718
|
}, Ai = [0, Ge, J((function(e, t, r) {
|
|
1719
|
-
return e.h === 2 && (X(t, r, (e =
|
|
1719
|
+
return e.h === 2 && (X(t, r, (e = oa(e)) === ut() ? void 0 : e), !0);
|
|
1720
1720
|
}), (function(e, t, r) {
|
|
1721
1721
|
if (t != null) {
|
|
1722
|
-
if (t instanceof
|
|
1722
|
+
if (t instanceof g) {
|
|
1723
1723
|
const s = t.Ra;
|
|
1724
1724
|
return void (s ? (t = s(t), t != null && Qr(e, r, bn(t, !0).buffer)) : Tt(Ps, 3));
|
|
1725
1725
|
}
|
|
1726
1726
|
if (Array.isArray(t)) return void Tt(Ps, 3);
|
|
1727
1727
|
}
|
|
1728
|
-
|
|
1729
|
-
}),
|
|
1728
|
+
Sa(e, t, r);
|
|
1729
|
+
}), ua)];
|
|
1730
1730
|
let bs, Ei = globalThis.trustedTypes;
|
|
1731
1731
|
function ki(e) {
|
|
1732
1732
|
var t;
|
|
@@ -1748,49 +1748,49 @@ function ki(e) {
|
|
|
1748
1748
|
}
|
|
1749
1749
|
}(e);
|
|
1750
1750
|
}
|
|
1751
|
-
function
|
|
1751
|
+
function Zh(e, ...t) {
|
|
1752
1752
|
if (t.length === 0) return ki(e[0]);
|
|
1753
1753
|
let r = e[0];
|
|
1754
1754
|
for (let s = 0; s < t.length; s++) r += encodeURIComponent(t[s]) + e[s + 1];
|
|
1755
1755
|
return ki(r);
|
|
1756
1756
|
}
|
|
1757
|
-
var
|
|
1757
|
+
var La = [0, q, ue, N, -1, Ar, ue, -1, N], eu = class extends g {
|
|
1758
1758
|
constructor(e) {
|
|
1759
1759
|
super(e);
|
|
1760
1760
|
}
|
|
1761
|
-
},
|
|
1762
|
-
return (e.h === 0 || e.h === 2) && (t = zt(t, 0 | t[p], r), e.h == 2 ? Xr(e,
|
|
1761
|
+
}, Pa = [0, N, T, N, ue, -1, Xt((function(e, t, r) {
|
|
1762
|
+
return (e.h === 0 || e.h === 2) && (t = zt(t, 0 | t[p], r), e.h == 2 ? Xr(e, Ih, t) : t.push(Ke(e.g)), !0);
|
|
1763
1763
|
}), (function(e, t, r) {
|
|
1764
1764
|
if ((t = qt(jt, t)) != null && t.length) {
|
|
1765
1765
|
r = An(e, r);
|
|
1766
1766
|
for (let s = 0; s < t.length; s++) Yr(e.g, t[s]);
|
|
1767
1767
|
En(e, r);
|
|
1768
1768
|
}
|
|
1769
|
-
}),
|
|
1769
|
+
}), la), T, -1, [0, N, -1], ue, N, -1], Ma = [0, 3, N, -1, 2, [0, q], [0, ue, N], [0, T, -1], [0]], xa = [0, T, -2], Si = class extends g {
|
|
1770
1770
|
constructor(e) {
|
|
1771
1771
|
super(e);
|
|
1772
1772
|
}
|
|
1773
|
-
},
|
|
1773
|
+
}, Fa = [0], $a = [0, q, N, 1, N, -4], de = class extends g {
|
|
1774
1774
|
constructor(e) {
|
|
1775
1775
|
super(e, 2);
|
|
1776
1776
|
}
|
|
1777
1777
|
}, G = {};
|
|
1778
|
-
G[336783863] = [0,
|
|
1778
|
+
G[336783863] = [0, T, N, -1, q, [0, [1, 2, 3, 4, 5, 6, 7, 8, 9], R, Fa, R, Pa, R, xa, R, $a, R, La, R, [0, T, -2], R, [0, T, ue], R, Ma, R, [0, ue, -1, N]], [0, T], N, [0, [1, 3], [2, 4], R, [0, Ar], -1, R, [0, Q], -1, W, [0, T, -1]], T];
|
|
1779
1779
|
var Ti = [0, ys, -1, ct, -3, ys, Ar, Ge, wt, ys, -1, ct, wt, ct, -2, Ge];
|
|
1780
|
-
function
|
|
1780
|
+
function P(e, t) {
|
|
1781
1781
|
qr(e, 3, t);
|
|
1782
1782
|
}
|
|
1783
1783
|
function _(e, t) {
|
|
1784
1784
|
qr(e, 4, t);
|
|
1785
1785
|
}
|
|
1786
|
-
var ee = class extends
|
|
1786
|
+
var ee = class extends g {
|
|
1787
1787
|
constructor(e) {
|
|
1788
1788
|
super(e, 500);
|
|
1789
1789
|
}
|
|
1790
1790
|
o(e) {
|
|
1791
|
-
return
|
|
1791
|
+
return v(this, 0, 7, e);
|
|
1792
1792
|
}
|
|
1793
|
-
}, sr = [-1, {}], Ci = [0,
|
|
1793
|
+
}, sr = [-1, {}], Ci = [0, T, 1, sr], Li = [0, T, Q, sr];
|
|
1794
1794
|
function be(e, t) {
|
|
1795
1795
|
yn(e, 1, ee, t);
|
|
1796
1796
|
}
|
|
@@ -1800,152 +1800,152 @@ function x(e, t) {
|
|
|
1800
1800
|
function E(e, t) {
|
|
1801
1801
|
qr(e, 15, t);
|
|
1802
1802
|
}
|
|
1803
|
-
var fe = class extends
|
|
1803
|
+
var fe = class extends g {
|
|
1804
1804
|
constructor(e) {
|
|
1805
1805
|
super(e, 500);
|
|
1806
1806
|
}
|
|
1807
1807
|
o(e) {
|
|
1808
|
-
return
|
|
1808
|
+
return v(this, 0, 1001, e);
|
|
1809
1809
|
}
|
|
1810
|
-
},
|
|
1811
|
-
fe.prototype.g = ns(
|
|
1812
|
-
var
|
|
1810
|
+
}, Oa = [-500, W, [-500, Ge, -1, Q, -3, [-2, G, N], W, Ai, wt, -1, Ci, Li, W, [0, Ge, ct], Ge, Ti, wt, Q, 987, Q], 4, W, [-500, T, -1, [-1, {}], 998, T], W, [-500, T, Q, -1, [-2, {}, N], 997, Q, -1], wt, W, [-500, T, Q, sr, 998, Q], Q, wt, Ci, Li, W, [0, Ge, -1, sr], Q, -2, Ti, Ge, -1, ct, [0, ct, Qh], 978, sr, W, Ai];
|
|
1811
|
+
fe.prototype.g = ns(Oa);
|
|
1812
|
+
var tu = Xe(fe, Oa), ru = class extends g {
|
|
1813
1813
|
constructor(e) {
|
|
1814
1814
|
super(e);
|
|
1815
1815
|
}
|
|
1816
|
-
},
|
|
1816
|
+
}, Ra = class extends g {
|
|
1817
1817
|
constructor(e) {
|
|
1818
1818
|
super(e);
|
|
1819
1819
|
}
|
|
1820
1820
|
g() {
|
|
1821
|
-
return Ne(this,
|
|
1821
|
+
return Ne(this, ru, 1);
|
|
1822
1822
|
}
|
|
1823
|
-
},
|
|
1823
|
+
}, Ia = [0, W, [0, q, U, T, -1]], is = Xe(Ra, Ia), su = class extends g {
|
|
1824
1824
|
constructor(e) {
|
|
1825
1825
|
super(e);
|
|
1826
1826
|
}
|
|
1827
|
-
},
|
|
1827
|
+
}, nu = class extends g {
|
|
1828
1828
|
constructor(e) {
|
|
1829
1829
|
super(e);
|
|
1830
1830
|
}
|
|
1831
|
-
}, vs = class extends
|
|
1831
|
+
}, vs = class extends g {
|
|
1832
1832
|
constructor(e) {
|
|
1833
1833
|
super(e);
|
|
1834
1834
|
}
|
|
1835
1835
|
l() {
|
|
1836
|
-
return A(this,
|
|
1836
|
+
return A(this, su, 2);
|
|
1837
1837
|
}
|
|
1838
1838
|
g() {
|
|
1839
|
-
return Ne(this,
|
|
1839
|
+
return Ne(this, nu, 5);
|
|
1840
1840
|
}
|
|
1841
|
-
},
|
|
1841
|
+
}, Na = Xe(class extends g {
|
|
1842
1842
|
constructor(e) {
|
|
1843
1843
|
super(e);
|
|
1844
1844
|
}
|
|
1845
|
-
}, [0, Q, Ar, Mn, [0, ue, [0, q, -3], [0, U, -3], [0, q, -1, [0, W, [0, q, -2]]], W, [0, U, -1,
|
|
1845
|
+
}, [0, Q, Ar, Mn, [0, ue, [0, q, -3], [0, U, -3], [0, q, -1, [0, W, [0, q, -2]]], W, [0, U, -1, T, U]], T, -1, qe, W, [0, q, U], Q, qe]), Ba = class extends g {
|
|
1846
1846
|
constructor(e) {
|
|
1847
1847
|
super(e);
|
|
1848
1848
|
}
|
|
1849
|
-
}, Et = Xe(class extends
|
|
1849
|
+
}, Et = Xe(class extends g {
|
|
1850
1850
|
constructor(e) {
|
|
1851
1851
|
super(e);
|
|
1852
1852
|
}
|
|
1853
|
-
}, [0, W, [0, U, -4]]),
|
|
1853
|
+
}, [0, W, [0, U, -4]]), Ua = class extends g {
|
|
1854
1854
|
constructor(e) {
|
|
1855
1855
|
super(e);
|
|
1856
1856
|
}
|
|
1857
|
-
}, Er = Xe(class extends
|
|
1857
|
+
}, Er = Xe(class extends g {
|
|
1858
1858
|
constructor(e) {
|
|
1859
1859
|
super(e);
|
|
1860
1860
|
}
|
|
1861
|
-
}, [0, W, [0, U, -4]]),
|
|
1861
|
+
}, [0, W, [0, U, -4]]), iu = class extends g {
|
|
1862
1862
|
constructor(e) {
|
|
1863
1863
|
super(e);
|
|
1864
1864
|
}
|
|
1865
|
-
},
|
|
1865
|
+
}, ou = [0, q, -1, Mn, ue], Da = class extends g {
|
|
1866
1866
|
constructor(e) {
|
|
1867
1867
|
super(e);
|
|
1868
1868
|
}
|
|
1869
1869
|
};
|
|
1870
|
-
|
|
1871
|
-
var
|
|
1870
|
+
Da.prototype.g = ns([0, U, -4, qe]);
|
|
1871
|
+
var au = class extends g {
|
|
1872
1872
|
constructor(e) {
|
|
1873
1873
|
super(e);
|
|
1874
1874
|
}
|
|
1875
|
-
},
|
|
1875
|
+
}, cu = Xe(class extends g {
|
|
1876
1876
|
constructor(e) {
|
|
1877
1877
|
super(e);
|
|
1878
1878
|
}
|
|
1879
|
-
}, [0, W, [0, 1, q,
|
|
1879
|
+
}, [0, W, [0, 1, q, T, Ia], qe]), Pi = class extends g {
|
|
1880
1880
|
constructor(e) {
|
|
1881
1881
|
super(e);
|
|
1882
1882
|
}
|
|
1883
|
-
},
|
|
1883
|
+
}, hu = class extends g {
|
|
1884
1884
|
constructor(e) {
|
|
1885
1885
|
super(e);
|
|
1886
1886
|
}
|
|
1887
1887
|
na() {
|
|
1888
|
-
const e =
|
|
1888
|
+
const e = L(this, 1, void 0, void 0, qo);
|
|
1889
1889
|
return e ?? ut();
|
|
1890
1890
|
}
|
|
1891
|
-
},
|
|
1891
|
+
}, uu = class extends g {
|
|
1892
1892
|
constructor(e) {
|
|
1893
1893
|
super(e);
|
|
1894
1894
|
}
|
|
1895
|
-
},
|
|
1895
|
+
}, ja = [1, 2], lu = Xe(class extends g {
|
|
1896
1896
|
constructor(e) {
|
|
1897
1897
|
super(e);
|
|
1898
1898
|
}
|
|
1899
|
-
}, [0, W, [0,
|
|
1899
|
+
}, [0, W, [0, ja, R, [0, Mn], R, [0, Ca], q, T], qe]), xn = class extends g {
|
|
1900
1900
|
constructor(e) {
|
|
1901
1901
|
super(e);
|
|
1902
1902
|
}
|
|
1903
|
-
},
|
|
1903
|
+
}, Va = [0, T, q, U, Q, -1], Mi = class extends g {
|
|
1904
1904
|
constructor(e) {
|
|
1905
1905
|
super(e);
|
|
1906
1906
|
}
|
|
1907
|
-
},
|
|
1907
|
+
}, du = [0, N, -1], xi = class extends g {
|
|
1908
1908
|
constructor(e) {
|
|
1909
1909
|
super(e);
|
|
1910
1910
|
}
|
|
1911
|
-
}, Mr = [1, 2, 3, 4, 5, 6], Br = class extends
|
|
1911
|
+
}, Mr = [1, 2, 3, 4, 5, 6], Br = class extends g {
|
|
1912
1912
|
constructor(e) {
|
|
1913
1913
|
super(e);
|
|
1914
1914
|
}
|
|
1915
1915
|
g() {
|
|
1916
|
-
return
|
|
1916
|
+
return L(this, 1, void 0, void 0, qo) != null;
|
|
1917
1917
|
}
|
|
1918
1918
|
l() {
|
|
1919
|
-
return Y(
|
|
1919
|
+
return Y(L(this, 2)) != null;
|
|
1920
1920
|
}
|
|
1921
|
-
}, O = class extends
|
|
1921
|
+
}, O = class extends g {
|
|
1922
1922
|
constructor(e) {
|
|
1923
1923
|
super(e);
|
|
1924
1924
|
}
|
|
1925
1925
|
g() {
|
|
1926
|
-
return
|
|
1926
|
+
return Bo(L(this, 2)) ?? !1;
|
|
1927
1927
|
}
|
|
1928
|
-
},
|
|
1928
|
+
}, Ga = [0, Ca, T, [0, q, qe, -1], [0, Xh, qe]], D = [0, Ga, N, [0, Mr, R, $a, R, Pa, R, La, R, Fa, R, xa, R, Ma], ue], os = class extends g {
|
|
1929
1929
|
constructor(e) {
|
|
1930
1930
|
super(e);
|
|
1931
1931
|
}
|
|
1932
|
-
}, Fn = [0, D, U, -1, q],
|
|
1932
|
+
}, Fn = [0, D, U, -1, q], fu = xe(502141897, os);
|
|
1933
1933
|
G[502141897] = Fn;
|
|
1934
|
-
var
|
|
1934
|
+
var pu = Xe(class extends g {
|
|
1935
1935
|
constructor(e) {
|
|
1936
1936
|
super(e);
|
|
1937
1937
|
}
|
|
1938
|
-
}, [0, [0, ue, -1,
|
|
1938
|
+
}, [0, [0, ue, -1, Kh, Yh], ou]), Ha = class extends g {
|
|
1939
1939
|
constructor(e) {
|
|
1940
1940
|
super(e);
|
|
1941
1941
|
}
|
|
1942
|
-
},
|
|
1942
|
+
}, za = class extends g {
|
|
1943
1943
|
constructor(e) {
|
|
1944
1944
|
super(e);
|
|
1945
1945
|
}
|
|
1946
|
-
}, Is = [0, D, U, [0, D], N],
|
|
1947
|
-
G[508968150] = [0, D, Fn, Is, U, [0, [0,
|
|
1948
|
-
var vt = class extends
|
|
1946
|
+
}, Is = [0, D, U, [0, D], N], gu = xe(508968150, za);
|
|
1947
|
+
G[508968150] = [0, D, Fn, Is, U, [0, [0, Ga]]], G[508968149] = Is;
|
|
1948
|
+
var vt = class extends g {
|
|
1949
1949
|
constructor(e) {
|
|
1950
1950
|
super(e);
|
|
1951
1951
|
}
|
|
@@ -1955,71 +1955,71 @@ var vt = class extends m {
|
|
|
1955
1955
|
g() {
|
|
1956
1956
|
k(this, 2);
|
|
1957
1957
|
}
|
|
1958
|
-
},
|
|
1959
|
-
G[478825465] =
|
|
1960
|
-
var
|
|
1958
|
+
}, Wa = [0, D, Va];
|
|
1959
|
+
G[478825465] = Wa;
|
|
1960
|
+
var mu = class extends g {
|
|
1961
1961
|
constructor(e) {
|
|
1962
1962
|
super(e);
|
|
1963
1963
|
}
|
|
1964
|
-
},
|
|
1964
|
+
}, Ka = class extends g {
|
|
1965
1965
|
constructor(e) {
|
|
1966
1966
|
super(e);
|
|
1967
1967
|
}
|
|
1968
|
-
}, $n = class extends
|
|
1968
|
+
}, $n = class extends g {
|
|
1969
1969
|
constructor(e) {
|
|
1970
1970
|
super(e);
|
|
1971
1971
|
}
|
|
1972
|
-
}, On = class extends
|
|
1972
|
+
}, On = class extends g {
|
|
1973
1973
|
constructor(e) {
|
|
1974
1974
|
super(e);
|
|
1975
1975
|
}
|
|
1976
|
-
},
|
|
1976
|
+
}, qa = class extends g {
|
|
1977
1977
|
constructor(e) {
|
|
1978
1978
|
super(e);
|
|
1979
1979
|
}
|
|
1980
|
-
}, Fi = [0, D, [0, D],
|
|
1981
|
-
G[479097054] = [0, D,
|
|
1982
|
-
var
|
|
1983
|
-
G[462713202] =
|
|
1984
|
-
var
|
|
1980
|
+
}, Fi = [0, D, [0, D], Wa, -1], Xa = [0, D, U, q], Rn = [0, D, U], Ya = [0, D, Xa, Rn, U], yu = xe(479097054, qa);
|
|
1981
|
+
G[479097054] = [0, D, Ya, Fi], G[463370452] = Fi, G[464864288] = Xa;
|
|
1982
|
+
var bu = xe(462713202, On);
|
|
1983
|
+
G[462713202] = Ya, G[474472470] = Rn;
|
|
1984
|
+
var vu = class extends g {
|
|
1985
1985
|
constructor(e) {
|
|
1986
1986
|
super(e);
|
|
1987
1987
|
}
|
|
1988
|
-
},
|
|
1988
|
+
}, Qa = class extends g {
|
|
1989
1989
|
constructor(e) {
|
|
1990
1990
|
super(e);
|
|
1991
1991
|
}
|
|
1992
|
-
},
|
|
1992
|
+
}, Ja = class extends g {
|
|
1993
1993
|
constructor(e) {
|
|
1994
1994
|
super(e);
|
|
1995
1995
|
}
|
|
1996
|
-
},
|
|
1996
|
+
}, Za = class extends g {
|
|
1997
1997
|
constructor(e) {
|
|
1998
1998
|
super(e);
|
|
1999
1999
|
}
|
|
2000
2000
|
}, In = [0, D, U, -1, q], Ns = [0, D, U, N];
|
|
2001
|
-
|
|
2002
|
-
var
|
|
2001
|
+
Za.prototype.g = ns([0, D, Rn, [0, D], Fn, Is, In, Ns]);
|
|
2002
|
+
var ec = class extends g {
|
|
2003
2003
|
constructor(e) {
|
|
2004
2004
|
super(e);
|
|
2005
2005
|
}
|
|
2006
|
-
},
|
|
2007
|
-
G[456383383] = [0, D,
|
|
2008
|
-
var
|
|
2006
|
+
}, _u = xe(456383383, ec);
|
|
2007
|
+
G[456383383] = [0, D, Va];
|
|
2008
|
+
var tc = class extends g {
|
|
2009
2009
|
constructor(e) {
|
|
2010
2010
|
super(e);
|
|
2011
2011
|
}
|
|
2012
|
-
},
|
|
2013
|
-
G[476348187] = [0, D,
|
|
2014
|
-
var
|
|
2012
|
+
}, wu = xe(476348187, tc);
|
|
2013
|
+
G[476348187] = [0, D, du];
|
|
2014
|
+
var rc = class extends g {
|
|
2015
2015
|
constructor(e) {
|
|
2016
2016
|
super(e);
|
|
2017
2017
|
}
|
|
2018
|
-
}, $i = class extends
|
|
2018
|
+
}, $i = class extends g {
|
|
2019
2019
|
constructor(e) {
|
|
2020
2020
|
super(e);
|
|
2021
2021
|
}
|
|
2022
|
-
},
|
|
2022
|
+
}, sc = [0, ue, -1], Au = xe(458105876, class extends g {
|
|
2023
2023
|
constructor(e) {
|
|
2024
2024
|
super(e);
|
|
2025
2025
|
}
|
|
@@ -2041,78 +2041,78 @@ var Ja = class extends m {
|
|
|
2041
2041
|
if (o) {
|
|
2042
2042
|
if (!c.length) return fi();
|
|
2043
2043
|
s || (s = !0, yr(c));
|
|
2044
|
-
} else s && (s = !1, hr(c), c =
|
|
2045
|
-
return !s && 32 & i &&
|
|
2044
|
+
} else s && (s = !1, hr(c), c = Xo(c));
|
|
2045
|
+
return !s && 32 & i && mr(c, 32), i = V(n, i, 2, o = new Re(c, a, Ah, void 0)), s || gt(n, i), o;
|
|
2046
2046
|
})(this, t, r, e), !e && $i && (t.ra = !0), t;
|
|
2047
2047
|
}
|
|
2048
2048
|
});
|
|
2049
|
-
G[458105876] = [0,
|
|
2050
|
-
var Nn = class extends
|
|
2049
|
+
G[458105876] = [0, sc, Wh, [!0, qe, [0, T, -1, Q]], [0, Ar, N, ue]];
|
|
2050
|
+
var Nn = class extends g {
|
|
2051
2051
|
constructor(e) {
|
|
2052
2052
|
super(e);
|
|
2053
2053
|
}
|
|
2054
|
-
},
|
|
2055
|
-
G[458105758] = [0, D,
|
|
2056
|
-
var _s = class extends
|
|
2054
|
+
}, nc = xe(458105758, Nn);
|
|
2055
|
+
G[458105758] = [0, D, T, sc];
|
|
2056
|
+
var _s = class extends g {
|
|
2057
2057
|
constructor(e) {
|
|
2058
2058
|
super(e);
|
|
2059
2059
|
}
|
|
2060
|
-
}, Oi = [0,
|
|
2060
|
+
}, Oi = [0, qh, -1, ct], Eu = class extends g {
|
|
2061
2061
|
constructor(e) {
|
|
2062
2062
|
super(e);
|
|
2063
2063
|
}
|
|
2064
|
-
},
|
|
2064
|
+
}, ic = class extends g {
|
|
2065
2065
|
constructor(e) {
|
|
2066
2066
|
super(e);
|
|
2067
2067
|
}
|
|
2068
2068
|
}, Bs = [1, 2];
|
|
2069
|
-
|
|
2070
|
-
var
|
|
2069
|
+
ic.prototype.g = ns([0, Bs, R, Oi, R, [0, W, Oi]]);
|
|
2070
|
+
var oc = class extends g {
|
|
2071
2071
|
constructor(e) {
|
|
2072
2072
|
super(e);
|
|
2073
2073
|
}
|
|
2074
|
-
},
|
|
2075
|
-
G[443442058] = [0, D,
|
|
2076
|
-
var
|
|
2074
|
+
}, ku = xe(443442058, oc);
|
|
2075
|
+
G[443442058] = [0, D, T, q, U, Q, -1, N, U], G[514774813] = In;
|
|
2076
|
+
var ac = class extends g {
|
|
2077
2077
|
constructor(e) {
|
|
2078
2078
|
super(e);
|
|
2079
2079
|
}
|
|
2080
|
-
},
|
|
2080
|
+
}, Su = xe(516587230, ac);
|
|
2081
2081
|
function Us(e, t) {
|
|
2082
2082
|
return t = t ? t.clone() : new xn(), e.displayNamesLocale !== void 0 ? k(t, 1, _r(e.displayNamesLocale)) : e.displayNamesLocale === void 0 && k(t, 1), e.maxResults !== void 0 ? Be(t, 2, e.maxResults) : "maxResults" in e && k(t, 2), e.scoreThreshold !== void 0 ? y(t, 3, e.scoreThreshold) : "scoreThreshold" in e && k(t, 3), e.categoryAllowlist !== void 0 ? Or(t, 4, e.categoryAllowlist) : "categoryAllowlist" in e && k(t, 4), e.categoryDenylist !== void 0 ? Or(t, 5, e.categoryDenylist) : "categoryDenylist" in e && k(t, 5), t;
|
|
2083
2083
|
}
|
|
2084
|
-
function
|
|
2084
|
+
function cc(e) {
|
|
2085
2085
|
const t = Number(e);
|
|
2086
2086
|
return Number.isSafeInteger(t) ? t : String(e);
|
|
2087
2087
|
}
|
|
2088
2088
|
function Bn(e, t = -1, r = "") {
|
|
2089
|
-
return { categories: e.map(((s) => ({ index:
|
|
2089
|
+
return { categories: e.map(((s) => ({ index: me(s, 1) ?? 0 ?? -1, score: I(s, 2) ?? 0, categoryName: Y(L(s, 3)) ?? "" ?? "", displayName: Y(L(s, 4)) ?? "" ?? "" }))), headIndex: t, headName: r };
|
|
2090
2090
|
}
|
|
2091
|
-
function
|
|
2092
|
-
const t = { classifications: Ne(e,
|
|
2091
|
+
function Tu(e) {
|
|
2092
|
+
const t = { classifications: Ne(e, au, 1).map(((r) => {
|
|
2093
2093
|
var s;
|
|
2094
|
-
return Bn(((s = A(r,
|
|
2094
|
+
return Bn(((s = A(r, Ra, 4)) == null ? void 0 : s.g()) ?? [], me(r, 2) ?? 0, Y(L(r, 3)) ?? "");
|
|
2095
2095
|
})) };
|
|
2096
2096
|
return (function(r) {
|
|
2097
|
-
return
|
|
2098
|
-
})(e) != null && (t.timestampMs =
|
|
2097
|
+
return wh(Js ? L(r, 2, void 0, void 0, Fr) : L(r, 2));
|
|
2098
|
+
})(e) != null && (t.timestampMs = cc(ea(e))), t;
|
|
2099
2099
|
}
|
|
2100
|
-
function
|
|
2100
|
+
function hc(e) {
|
|
2101
2101
|
var o, a;
|
|
2102
2102
|
var t = rt(e, 3, Te, tt()), r = rt(e, 2, jt, tt()), s = rt(e, 1, Y, tt()), n = rt(e, 9, Y, tt());
|
|
2103
2103
|
const i = { categories: [], keypoints: [] };
|
|
2104
2104
|
for (let c = 0; c < t.length; c++) i.categories.push({ score: t[c], index: r[c] ?? -1, categoryName: s[c] ?? "", displayName: n[c] ?? "" });
|
|
2105
|
-
if ((t = (o = A(e, vs, 4)) == null ? void 0 : o.l()) && (i.boundingBox = { originX:
|
|
2105
|
+
if ((t = (o = A(e, vs, 4)) == null ? void 0 : o.l()) && (i.boundingBox = { originX: me(t, 1, De) ?? 0, originY: me(t, 2, De) ?? 0, width: me(t, 3, De) ?? 0, height: me(t, 4, De) ?? 0, angle: 0 }), (a = A(e, vs, 4)) == null ? void 0 : a.g().length) for (const c of A(e, vs, 4).g()) i.keypoints.push({ x: L(c, 1, void 0, De, Te) ?? 0, y: L(c, 2, void 0, De, Te) ?? 0, score: L(c, 4, void 0, De, Te) ?? 0, label: Y(L(c, 3, void 0, De)) ?? "" });
|
|
2106
2106
|
return i;
|
|
2107
2107
|
}
|
|
2108
2108
|
function as(e) {
|
|
2109
2109
|
const t = [];
|
|
2110
|
-
for (const r of Ne(e,
|
|
2110
|
+
for (const r of Ne(e, Ua, 1)) t.push({ x: I(r, 1) ?? 0, y: I(r, 2) ?? 0, z: I(r, 3) ?? 0, visibility: I(r, 4) ?? 0 });
|
|
2111
2111
|
return t;
|
|
2112
2112
|
}
|
|
2113
2113
|
function nr(e) {
|
|
2114
2114
|
const t = [];
|
|
2115
|
-
for (const r of Ne(e,
|
|
2115
|
+
for (const r of Ne(e, Ba, 1)) t.push({ x: I(r, 1) ?? 0, y: I(r, 2) ?? 0, z: I(r, 3) ?? 0, visibility: I(r, 4) ?? 0 });
|
|
2116
2116
|
return t;
|
|
2117
2117
|
}
|
|
2118
2118
|
function Ri(e) {
|
|
@@ -2127,22 +2127,22 @@ function Ii(e, t) {
|
|
|
2127
2127
|
}
|
|
2128
2128
|
let Tr;
|
|
2129
2129
|
G[516587230] = [0, D, In, Ns, U], G[518928384] = Ns;
|
|
2130
|
-
const
|
|
2131
|
-
async function
|
|
2130
|
+
const Cu = new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10, 1, 8, 0, 65, 0, 253, 15, 253, 98, 11]);
|
|
2131
|
+
async function uc() {
|
|
2132
2132
|
if (Tr === void 0) try {
|
|
2133
|
-
await WebAssembly.instantiate(
|
|
2133
|
+
await WebAssembly.instantiate(Cu), Tr = !0;
|
|
2134
2134
|
} catch {
|
|
2135
2135
|
Tr = !1;
|
|
2136
2136
|
}
|
|
2137
2137
|
return Tr;
|
|
2138
2138
|
}
|
|
2139
|
-
async function Jt(e, t =
|
|
2140
|
-
const r = await
|
|
2139
|
+
async function Jt(e, t = Zh``) {
|
|
2140
|
+
const r = await uc() ? "wasm_internal" : "wasm_nosimd_internal";
|
|
2141
2141
|
return { wasmLoaderPath: `${t}/${e}_${r}.js`, wasmBinaryPath: `${t}/${e}_${r}.wasm` };
|
|
2142
2142
|
}
|
|
2143
2143
|
var et = class {
|
|
2144
2144
|
};
|
|
2145
|
-
function
|
|
2145
|
+
function lc() {
|
|
2146
2146
|
var e = navigator;
|
|
2147
2147
|
return typeof OffscreenCanvas < "u" && (!(function(t = navigator) {
|
|
2148
2148
|
return (t = t.userAgent).includes("Safari") && !t.includes("Chrome");
|
|
@@ -2166,17 +2166,17 @@ async function Ni(e) {
|
|
|
2166
2166
|
await self.import(e.toString());
|
|
2167
2167
|
}
|
|
2168
2168
|
}
|
|
2169
|
-
function
|
|
2169
|
+
function dc(e) {
|
|
2170
2170
|
return e.videoWidth !== void 0 ? [e.videoWidth, e.videoHeight] : e.naturalWidth !== void 0 ? [e.naturalWidth, e.naturalHeight] : e.displayWidth !== void 0 ? [e.displayWidth, e.displayHeight] : [e.width, e.height];
|
|
2171
2171
|
}
|
|
2172
|
-
function
|
|
2172
|
+
function m(e, t, r) {
|
|
2173
2173
|
e.m || console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"), r(t = e.i.stringToNewUTF8(t)), e.i._free(t);
|
|
2174
2174
|
}
|
|
2175
2175
|
function Bi(e, t, r) {
|
|
2176
2176
|
if (!e.i.canvas) throw Error("No OpenGL canvas configured.");
|
|
2177
2177
|
if (r ? e.i._bindTextureToStream(r) : e.i._bindTextureToCanvas(), !(r = e.i.canvas.getContext("webgl2") || e.i.canvas.getContext("webgl"))) throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");
|
|
2178
2178
|
e.i.gpuOriginForWebTexturesIsBottomLeft && r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL, !0), r.texImage2D(r.TEXTURE_2D, 0, r.RGBA, r.RGBA, r.UNSIGNED_BYTE, t), e.i.gpuOriginForWebTexturesIsBottomLeft && r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL, !1);
|
|
2179
|
-
const [s, n] =
|
|
2179
|
+
const [s, n] = dc(t);
|
|
2180
2180
|
return !e.l || s === e.i.canvas.width && n === e.i.canvas.height || (e.i.canvas.width = s, e.i.canvas.height = n), [s, n];
|
|
2181
2181
|
}
|
|
2182
2182
|
function Ui(e, t, r) {
|
|
@@ -2207,9 +2207,9 @@ et.forVisionTasks = function(e) {
|
|
|
2207
2207
|
}, et.forAudioTasks = function(e) {
|
|
2208
2208
|
return Jt("audio", e);
|
|
2209
2209
|
}, et.isSimdSupported = function() {
|
|
2210
|
-
return
|
|
2210
|
+
return uc();
|
|
2211
2211
|
};
|
|
2212
|
-
async function
|
|
2212
|
+
async function Lu(e, t, r, s) {
|
|
2213
2213
|
return e = await (async (n, i, o, a, c) => {
|
|
2214
2214
|
if (i && await Ni(i), !self.ModuleFactory || o && (await Ni(o), !self.ModuleFactory)) throw Error("ModuleFactory not set.");
|
|
2215
2215
|
return self.Module && c && ((i = self.Module).locateFile = c.locateFile, c.mainScriptUrlOrBlob && (i.mainScriptUrlOrBlob = c.mainScriptUrlOrBlob)), c = await self.ModuleFactory(self.Module || c), self.ModuleFactory = self.Module = void 0, new n(c, a);
|
|
@@ -2217,7 +2217,7 @@ async function ku(e, t, r, s) {
|
|
|
2217
2217
|
}
|
|
2218
2218
|
function ws(e, t) {
|
|
2219
2219
|
const r = A(e.baseOptions, Br, 1) || new Br();
|
|
2220
|
-
typeof t == "string" ? (k(r, 2, _r(t)), k(r, 1)) : t instanceof Uint8Array && (k(r, 1, tn(t, !1)), k(r, 2)),
|
|
2220
|
+
typeof t == "string" ? (k(r, 2, _r(t)), k(r, 1)) : t instanceof Uint8Array && (k(r, 1, tn(t, !1)), k(r, 2)), v(e.baseOptions, 0, 1, r);
|
|
2221
2221
|
}
|
|
2222
2222
|
function Di(e) {
|
|
2223
2223
|
try {
|
|
@@ -2228,14 +2228,14 @@ function Di(e) {
|
|
|
2228
2228
|
e.H = [];
|
|
2229
2229
|
}
|
|
2230
2230
|
}
|
|
2231
|
-
function
|
|
2231
|
+
function f(e, t) {
|
|
2232
2232
|
e.C = Math.max(e.C, t);
|
|
2233
2233
|
}
|
|
2234
2234
|
function cs(e, t) {
|
|
2235
|
-
e.B = new ee(), he(e.B, 2, "PassThroughCalculator"),
|
|
2235
|
+
e.B = new ee(), he(e.B, 2, "PassThroughCalculator"), P(e.B, "free_memory"), _(e.B, "free_memory_unused_out"), x(t, "free_memory"), be(t, e.B);
|
|
2236
2236
|
}
|
|
2237
2237
|
function $t(e, t) {
|
|
2238
|
-
|
|
2238
|
+
P(e.B, t), _(e.B, t + "_unused_out");
|
|
2239
2239
|
}
|
|
2240
2240
|
function hs(e) {
|
|
2241
2241
|
e.g.addBoolToStream(!0, "free_memory", e.C);
|
|
@@ -2253,10 +2253,10 @@ var Ds = class {
|
|
|
2253
2253
|
if ((function(u, h) {
|
|
2254
2254
|
let l = A(u.baseOptions, xi, 3);
|
|
2255
2255
|
if (!l) {
|
|
2256
|
-
var
|
|
2257
|
-
rr(
|
|
2256
|
+
var d = l = new xi(), b = new Si();
|
|
2257
|
+
rr(d, 4, Mr, b);
|
|
2258
2258
|
}
|
|
2259
|
-
"delegate" in h && (h.delegate === "GPU" ? (h = l,
|
|
2259
|
+
"delegate" in h && (h.delegate === "GPU" ? (h = l, d = new eu(), rr(h, 2, Mr, d)) : (h = l, d = new Si(), rr(h, 4, Mr, d))), v(u.baseOptions, 0, 3, l);
|
|
2260
2260
|
})(this, c), c.modelAssetPath) return fetch(c.modelAssetPath.toString()).then(((u) => {
|
|
2261
2261
|
if (u.ok) return u.arrayBuffer();
|
|
2262
2262
|
throw Error(`Failed to fetch model: ${c.modelAssetPath} (${u.status})`);
|
|
@@ -2271,14 +2271,14 @@ var Ds = class {
|
|
|
2271
2271
|
else if (c.modelAssetBuffer) return (async function(u) {
|
|
2272
2272
|
const h = [];
|
|
2273
2273
|
for (var l = 0; ; ) {
|
|
2274
|
-
const { done:
|
|
2275
|
-
if (
|
|
2276
|
-
h.push(
|
|
2274
|
+
const { done: d, value: b } = await u.read();
|
|
2275
|
+
if (d) break;
|
|
2276
|
+
h.push(b), l += b.length;
|
|
2277
2277
|
}
|
|
2278
2278
|
if (h.length === 0) return new Uint8Array(0);
|
|
2279
2279
|
if (h.length === 1) return h[0];
|
|
2280
2280
|
u = new Uint8Array(l), l = 0;
|
|
2281
|
-
for (const
|
|
2281
|
+
for (const d of h) u.set(d, l), l += d.length;
|
|
2282
2282
|
return u;
|
|
2283
2283
|
})(c.modelAssetBuffer).then(((u) => {
|
|
2284
2284
|
ws(this, u), this.m(), this.L();
|
|
@@ -2291,7 +2291,7 @@ var Ds = class {
|
|
|
2291
2291
|
ca() {
|
|
2292
2292
|
let e;
|
|
2293
2293
|
if (this.g.ca(((t) => {
|
|
2294
|
-
e =
|
|
2294
|
+
e = tu(t);
|
|
2295
2295
|
})), !e) throw Error("Failed to retrieve CalculatorGraphConfig");
|
|
2296
2296
|
return e;
|
|
2297
2297
|
}
|
|
@@ -2312,7 +2312,7 @@ function ze(e, t) {
|
|
|
2312
2312
|
return e;
|
|
2313
2313
|
}
|
|
2314
2314
|
Ds.prototype.close = Ds.prototype.close;
|
|
2315
|
-
class
|
|
2315
|
+
class Pu {
|
|
2316
2316
|
constructor(t, r, s, n) {
|
|
2317
2317
|
this.g = t, this.h = r, this.m = s, this.l = n;
|
|
2318
2318
|
}
|
|
@@ -2334,27 +2334,27 @@ function Vi(e, t) {
|
|
|
2334
2334
|
const n = ze(r.createBuffer(), "Failed to create buffer");
|
|
2335
2335
|
r.bindBuffer(r.ARRAY_BUFFER, n), r.enableVertexAttribArray(e.O), r.vertexAttribPointer(e.O, 2, r.FLOAT, !1, 0, 0), r.bufferData(r.ARRAY_BUFFER, new Float32Array([-1, -1, -1, 1, 1, 1, 1, -1]), r.STATIC_DRAW);
|
|
2336
2336
|
const i = ze(r.createBuffer(), "Failed to create buffer");
|
|
2337
|
-
return r.bindBuffer(r.ARRAY_BUFFER, i), r.enableVertexAttribArray(e.L), r.vertexAttribPointer(e.L, 2, r.FLOAT, !1, 0, 0), r.bufferData(r.ARRAY_BUFFER, new Float32Array(t ? [0, 1, 0, 0, 1, 0, 1, 1] : [0, 0, 0, 1, 1, 1, 1, 0]), r.STATIC_DRAW), r.bindBuffer(r.ARRAY_BUFFER, null), r.bindVertexArray(null), new
|
|
2337
|
+
return r.bindBuffer(r.ARRAY_BUFFER, i), r.enableVertexAttribArray(e.L), r.vertexAttribPointer(e.L, 2, r.FLOAT, !1, 0, 0), r.bufferData(r.ARRAY_BUFFER, new Float32Array(t ? [0, 1, 0, 0, 1, 0, 1, 1] : [0, 0, 0, 1, 1, 1, 1, 0]), r.STATIC_DRAW), r.bindBuffer(r.ARRAY_BUFFER, null), r.bindVertexArray(null), new Pu(r, s, n, i);
|
|
2338
2338
|
}
|
|
2339
2339
|
function Un(e, t) {
|
|
2340
2340
|
if (e.g) {
|
|
2341
2341
|
if (t !== e.g) throw Error("Cannot change GL context once initialized");
|
|
2342
2342
|
} else e.g = t;
|
|
2343
2343
|
}
|
|
2344
|
-
function
|
|
2344
|
+
function Mu(e, t, r, s) {
|
|
2345
2345
|
return Un(e, t), e.h || (e.m(), e.D()), r ? (e.u || (e.u = Vi(e, !0)), r = e.u) : (e.A || (e.A = Vi(e, !1)), r = e.A), t.useProgram(e.h), r.bind(), e.l(), e = s(), r.g.bindVertexArray(null), e;
|
|
2346
2346
|
}
|
|
2347
|
-
function
|
|
2347
|
+
function fc(e, t, r) {
|
|
2348
2348
|
return Un(e, t), e = ze(t.createTexture(), "Failed to create texture"), t.bindTexture(t.TEXTURE_2D, e), t.texParameteri(t.TEXTURE_2D, t.TEXTURE_WRAP_S, t.CLAMP_TO_EDGE), t.texParameteri(t.TEXTURE_2D, t.TEXTURE_WRAP_T, t.CLAMP_TO_EDGE), t.texParameteri(t.TEXTURE_2D, t.TEXTURE_MIN_FILTER, r ?? t.LINEAR), t.texParameteri(t.TEXTURE_2D, t.TEXTURE_MAG_FILTER, r ?? t.LINEAR), t.bindTexture(t.TEXTURE_2D, null), e;
|
|
2349
2349
|
}
|
|
2350
|
-
function
|
|
2350
|
+
function pc(e, t, r) {
|
|
2351
2351
|
Un(e, t), e.B || (e.B = ze(t.createFramebuffer(), "Failed to create framebuffe.")), t.bindFramebuffer(t.FRAMEBUFFER, e.B), t.framebufferTexture2D(t.FRAMEBUFFER, t.COLOR_ATTACHMENT0, t.TEXTURE_2D, r, 0);
|
|
2352
2352
|
}
|
|
2353
|
-
function
|
|
2353
|
+
function xu(e) {
|
|
2354
2354
|
var t;
|
|
2355
2355
|
(t = e.g) == null || t.bindFramebuffer(e.g.FRAMEBUFFER, null);
|
|
2356
2356
|
}
|
|
2357
|
-
var
|
|
2357
|
+
var gc = class {
|
|
2358
2358
|
H() {
|
|
2359
2359
|
return `
|
|
2360
2360
|
precision mediump float;
|
|
@@ -2409,7 +2409,7 @@ function js(e) {
|
|
|
2409
2409
|
t = new Float32Array(e.width * e.height);
|
|
2410
2410
|
const s = Ot(e);
|
|
2411
2411
|
var r = Dn(e);
|
|
2412
|
-
if (
|
|
2412
|
+
if (pc(r, s, mc(e)), "iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform) || navigator.userAgent.includes("Mac") && "document" in self && "ontouchend" in self.document) {
|
|
2413
2413
|
r = new Float32Array(e.width * e.height * 4), s.readPixels(0, 0, e.width, e.height, s.RGBA, s.FLOAT, r);
|
|
2414
2414
|
for (let n = 0, i = 0; n < t.length; ++n, i += 4) t[n] = r[i];
|
|
2415
2415
|
} else s.readPixels(0, 0, e.width, e.height, s.RED, s.FLOAT, t);
|
|
@@ -2418,12 +2418,12 @@ function js(e) {
|
|
|
2418
2418
|
}
|
|
2419
2419
|
return t;
|
|
2420
2420
|
}
|
|
2421
|
-
function
|
|
2421
|
+
function mc(e) {
|
|
2422
2422
|
let t = Oe(e, 2);
|
|
2423
2423
|
if (!t) {
|
|
2424
2424
|
const r = Ot(e);
|
|
2425
|
-
t =
|
|
2426
|
-
const s = js(e), n =
|
|
2425
|
+
t = bc(e);
|
|
2426
|
+
const s = js(e), n = yc(e);
|
|
2427
2427
|
r.texImage2D(r.TEXTURE_2D, 0, n, e.width, e.height, 0, r.RED, r.FLOAT, s), Vs(e);
|
|
2428
2428
|
}
|
|
2429
2429
|
return t;
|
|
@@ -2432,7 +2432,7 @@ function Ot(e) {
|
|
|
2432
2432
|
if (!e.canvas) throw Error("Conversion to different image formats require that a canvas is passed when initializing the image.");
|
|
2433
2433
|
return e.h || (e.h = ze(e.canvas.getContext("webgl2"), "You cannot use a canvas that is already bound to a different type of rendering context.")), e.h;
|
|
2434
2434
|
}
|
|
2435
|
-
function
|
|
2435
|
+
function yc(e) {
|
|
2436
2436
|
if (e = Ot(e), !Cr) if (e.getExtension("EXT_color_buffer_float") && e.getExtension("OES_texture_float_linear") && e.getExtension("EXT_float_blend")) Cr = e.R32F;
|
|
2437
2437
|
else {
|
|
2438
2438
|
if (!e.getExtension("EXT_color_buffer_half_float")) throw Error("GPU does not fully support 4-channel float32 or float16 formats");
|
|
@@ -2441,13 +2441,13 @@ function fc(e) {
|
|
|
2441
2441
|
return Cr;
|
|
2442
2442
|
}
|
|
2443
2443
|
function Dn(e) {
|
|
2444
|
-
return e.l || (e.l = new
|
|
2444
|
+
return e.l || (e.l = new gc()), e.l;
|
|
2445
2445
|
}
|
|
2446
|
-
function
|
|
2446
|
+
function bc(e) {
|
|
2447
2447
|
const t = Ot(e);
|
|
2448
2448
|
t.viewport(0, 0, e.width, e.height), t.activeTexture(t.TEXTURE0);
|
|
2449
2449
|
let r = Oe(e, 2);
|
|
2450
|
-
return r || (r =
|
|
2450
|
+
return r || (r = fc(Dn(e), t, e.m ? t.LINEAR : t.NEAREST), e.g.push(r), e.j = !0), t.bindTexture(t.TEXTURE_2D, r), r;
|
|
2451
2451
|
}
|
|
2452
2452
|
function Vs(e) {
|
|
2453
2453
|
e.h.bindTexture(e.h.TEXTURE_2D, null);
|
|
@@ -2473,7 +2473,7 @@ var Cr, z = class {
|
|
|
2473
2473
|
return js(this);
|
|
2474
2474
|
}
|
|
2475
2475
|
N() {
|
|
2476
|
-
return
|
|
2476
|
+
return mc(this);
|
|
2477
2477
|
}
|
|
2478
2478
|
clone() {
|
|
2479
2479
|
const e = [];
|
|
@@ -2485,11 +2485,11 @@ var Cr, z = class {
|
|
|
2485
2485
|
if (!(t instanceof WebGLTexture)) throw Error(`Type is not supported: ${t}`);
|
|
2486
2486
|
{
|
|
2487
2487
|
const s = Ot(this), n = Dn(this);
|
|
2488
|
-
s.activeTexture(s.TEXTURE1), r =
|
|
2489
|
-
const i =
|
|
2490
|
-
s.texImage2D(s.TEXTURE_2D, 0, i, this.width, this.height, 0, s.RED, s.FLOAT, null), s.bindTexture(s.TEXTURE_2D, null),
|
|
2491
|
-
|
|
2492
|
-
})),
|
|
2488
|
+
s.activeTexture(s.TEXTURE1), r = fc(n, s, this.m ? s.LINEAR : s.NEAREST), s.bindTexture(s.TEXTURE_2D, r);
|
|
2489
|
+
const i = yc(this);
|
|
2490
|
+
s.texImage2D(s.TEXTURE_2D, 0, i, this.width, this.height, 0, s.RED, s.FLOAT, null), s.bindTexture(s.TEXTURE_2D, null), pc(n, s, r), Mu(n, s, !1, (() => {
|
|
2491
|
+
bc(this), s.clearColor(0, 0, 0, 0), s.clear(s.COLOR_BUFFER_BIT), s.drawArrays(s.TRIANGLE_FAN, 0, 4), Vs(this);
|
|
2492
|
+
})), xu(n), Vs(this);
|
|
2493
2493
|
}
|
|
2494
2494
|
}
|
|
2495
2495
|
e.push(r);
|
|
@@ -2505,7 +2505,7 @@ var Gi = 250;
|
|
|
2505
2505
|
function _e(...e) {
|
|
2506
2506
|
return e.map((([t, r]) => ({ start: t, end: r })));
|
|
2507
2507
|
}
|
|
2508
|
-
const
|
|
2508
|
+
const Fu = /* @__PURE__ */ (function(e) {
|
|
2509
2509
|
return class extends e {
|
|
2510
2510
|
Ja() {
|
|
2511
2511
|
this.i._registerModelResourcesGraphService();
|
|
@@ -2513,7 +2513,7 @@ const Lu = /* @__PURE__ */ (function(e) {
|
|
|
2513
2513
|
};
|
|
2514
2514
|
})((Hi = class {
|
|
2515
2515
|
constructor(e, t) {
|
|
2516
|
-
this.l = !0, this.i = e, this.g = null, this.h = 0, this.m = typeof this.i._addIntToInputStream == "function", t !== void 0 ? this.i.canvas = t :
|
|
2516
|
+
this.l = !0, this.i = e, this.g = null, this.h = 0, this.m = typeof this.i._addIntToInputStream == "function", t !== void 0 ? this.i.canvas = t : lc() ? this.i.canvas = new OffscreenCanvas(1, 1) : (console.warn("OffscreenCanvas not supported and GraphRunner constructor glCanvas parameter is undefined. Creating backup canvas."), this.i.canvas = document.createElement("canvas"));
|
|
2517
2517
|
}
|
|
2518
2518
|
async initializeGraph(e) {
|
|
2519
2519
|
const t = await (await fetch(e)).arrayBuffer();
|
|
@@ -2527,8 +2527,8 @@ const Lu = /* @__PURE__ */ (function(e) {
|
|
|
2527
2527
|
this.i.HEAPU8.set(e, s), t ? this.i._changeBinaryGraph(r, s) : this.i._changeTextGraph(r, s), this.i._free(s);
|
|
2528
2528
|
}
|
|
2529
2529
|
configureAudio(e, t, r, s, n) {
|
|
2530
|
-
this.i._configureAudio || console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),
|
|
2531
|
-
|
|
2530
|
+
this.i._configureAudio || console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'), m(this, s || "input_audio", ((i) => {
|
|
2531
|
+
m(this, n = n || "audio_header", ((o) => {
|
|
2532
2532
|
this.i._configureAudio(i, o, e, t ?? 0, r);
|
|
2533
2533
|
}));
|
|
2534
2534
|
}));
|
|
@@ -2545,7 +2545,7 @@ const Lu = /* @__PURE__ */ (function(e) {
|
|
|
2545
2545
|
ca(e) {
|
|
2546
2546
|
ke(this, "__graph_config__", ((t) => {
|
|
2547
2547
|
e(t);
|
|
2548
|
-
})),
|
|
2548
|
+
})), m(this, "__graph_config__", ((t) => {
|
|
2549
2549
|
this.i._getGraphConfig(t, void 0);
|
|
2550
2550
|
})), delete this.i.simpleListeners.__graph_config__;
|
|
2551
2551
|
}
|
|
@@ -2560,50 +2560,50 @@ const Lu = /* @__PURE__ */ (function(e) {
|
|
|
2560
2560
|
}
|
|
2561
2561
|
addAudioToStreamWithShape(e, t, r, s, n) {
|
|
2562
2562
|
const i = 4 * e.length;
|
|
2563
|
-
this.h !== i && (this.g && this.i._free(this.g), this.g = this.i._malloc(i), this.h = i), this.i.HEAPF32.set(e, this.g / 4),
|
|
2563
|
+
this.h !== i && (this.g && this.i._free(this.g), this.g = this.i._malloc(i), this.h = i), this.i.HEAPF32.set(e, this.g / 4), m(this, s, ((o) => {
|
|
2564
2564
|
this.i._addAudioToInputStream(this.g, t, r, o, n);
|
|
2565
2565
|
}));
|
|
2566
2566
|
}
|
|
2567
2567
|
addGpuBufferToStream(e, t, r) {
|
|
2568
|
-
|
|
2568
|
+
m(this, t, ((s) => {
|
|
2569
2569
|
const [n, i] = Bi(this, e, s);
|
|
2570
2570
|
this.i._addBoundTextureToStream(s, n, i, r);
|
|
2571
2571
|
}));
|
|
2572
2572
|
}
|
|
2573
2573
|
addBoolToStream(e, t, r) {
|
|
2574
|
-
|
|
2574
|
+
m(this, t, ((s) => {
|
|
2575
2575
|
this.i._addBoolToInputStream(e, s, r);
|
|
2576
2576
|
}));
|
|
2577
2577
|
}
|
|
2578
2578
|
addDoubleToStream(e, t, r) {
|
|
2579
|
-
|
|
2579
|
+
m(this, t, ((s) => {
|
|
2580
2580
|
this.i._addDoubleToInputStream(e, s, r);
|
|
2581
2581
|
}));
|
|
2582
2582
|
}
|
|
2583
2583
|
addFloatToStream(e, t, r) {
|
|
2584
|
-
|
|
2584
|
+
m(this, t, ((s) => {
|
|
2585
2585
|
this.i._addFloatToInputStream(e, s, r);
|
|
2586
2586
|
}));
|
|
2587
2587
|
}
|
|
2588
2588
|
addIntToStream(e, t, r) {
|
|
2589
|
-
|
|
2589
|
+
m(this, t, ((s) => {
|
|
2590
2590
|
this.i._addIntToInputStream(e, s, r);
|
|
2591
2591
|
}));
|
|
2592
2592
|
}
|
|
2593
2593
|
addUintToStream(e, t, r) {
|
|
2594
|
-
|
|
2594
|
+
m(this, t, ((s) => {
|
|
2595
2595
|
this.i._addUintToInputStream(e, s, r);
|
|
2596
2596
|
}));
|
|
2597
2597
|
}
|
|
2598
2598
|
addStringToStream(e, t, r) {
|
|
2599
|
-
|
|
2600
|
-
|
|
2599
|
+
m(this, t, ((s) => {
|
|
2600
|
+
m(this, e, ((n) => {
|
|
2601
2601
|
this.i._addStringToInputStream(n, s, r);
|
|
2602
2602
|
}));
|
|
2603
2603
|
}));
|
|
2604
2604
|
}
|
|
2605
2605
|
addStringRecordToStream(e, t, r) {
|
|
2606
|
-
|
|
2606
|
+
m(this, t, ((s) => {
|
|
2607
2607
|
Ui(this, Object.keys(e), ((n) => {
|
|
2608
2608
|
Ui(this, Object.values(e), ((i) => {
|
|
2609
2609
|
this.i._addFlatHashMapToInputStream(n, i, Object.keys(e).length, s, r);
|
|
@@ -2612,20 +2612,20 @@ const Lu = /* @__PURE__ */ (function(e) {
|
|
|
2612
2612
|
}));
|
|
2613
2613
|
}
|
|
2614
2614
|
addProtoToStream(e, t, r, s) {
|
|
2615
|
-
|
|
2616
|
-
|
|
2615
|
+
m(this, r, ((n) => {
|
|
2616
|
+
m(this, t, ((i) => {
|
|
2617
2617
|
const o = this.i._malloc(e.length);
|
|
2618
2618
|
this.i.HEAPU8.set(e, o), this.i._addProtoToInputStream(o, e.length, i, n, s), this.i._free(o);
|
|
2619
2619
|
}));
|
|
2620
2620
|
}));
|
|
2621
2621
|
}
|
|
2622
2622
|
addEmptyPacketToStream(e, t) {
|
|
2623
|
-
|
|
2623
|
+
m(this, e, ((r) => {
|
|
2624
2624
|
this.i._addEmptyPacketToInputStream(r, t);
|
|
2625
2625
|
}));
|
|
2626
2626
|
}
|
|
2627
2627
|
addBoolVectorToStream(e, t, r) {
|
|
2628
|
-
|
|
2628
|
+
m(this, t, ((s) => {
|
|
2629
2629
|
const n = this.i._allocateBoolVector(e.length);
|
|
2630
2630
|
if (!n) throw Error("Unable to allocate new bool vector on heap.");
|
|
2631
2631
|
for (const i of e) this.i._addBoolVectorEntry(n, i);
|
|
@@ -2633,7 +2633,7 @@ const Lu = /* @__PURE__ */ (function(e) {
|
|
|
2633
2633
|
}));
|
|
2634
2634
|
}
|
|
2635
2635
|
addDoubleVectorToStream(e, t, r) {
|
|
2636
|
-
|
|
2636
|
+
m(this, t, ((s) => {
|
|
2637
2637
|
const n = this.i._allocateDoubleVector(e.length);
|
|
2638
2638
|
if (!n) throw Error("Unable to allocate new double vector on heap.");
|
|
2639
2639
|
for (const i of e) this.i._addDoubleVectorEntry(n, i);
|
|
@@ -2641,7 +2641,7 @@ const Lu = /* @__PURE__ */ (function(e) {
|
|
|
2641
2641
|
}));
|
|
2642
2642
|
}
|
|
2643
2643
|
addFloatVectorToStream(e, t, r) {
|
|
2644
|
-
|
|
2644
|
+
m(this, t, ((s) => {
|
|
2645
2645
|
const n = this.i._allocateFloatVector(e.length);
|
|
2646
2646
|
if (!n) throw Error("Unable to allocate new float vector on heap.");
|
|
2647
2647
|
for (const i of e) this.i._addFloatVectorEntry(n, i);
|
|
@@ -2649,7 +2649,7 @@ const Lu = /* @__PURE__ */ (function(e) {
|
|
|
2649
2649
|
}));
|
|
2650
2650
|
}
|
|
2651
2651
|
addIntVectorToStream(e, t, r) {
|
|
2652
|
-
|
|
2652
|
+
m(this, t, ((s) => {
|
|
2653
2653
|
const n = this.i._allocateIntVector(e.length);
|
|
2654
2654
|
if (!n) throw Error("Unable to allocate new int vector on heap.");
|
|
2655
2655
|
for (const i of e) this.i._addIntVectorEntry(n, i);
|
|
@@ -2657,7 +2657,7 @@ const Lu = /* @__PURE__ */ (function(e) {
|
|
|
2657
2657
|
}));
|
|
2658
2658
|
}
|
|
2659
2659
|
addUintVectorToStream(e, t, r) {
|
|
2660
|
-
|
|
2660
|
+
m(this, t, ((s) => {
|
|
2661
2661
|
const n = this.i._allocateUintVector(e.length);
|
|
2662
2662
|
if (!n) throw Error("Unable to allocate new unsigned int vector on heap.");
|
|
2663
2663
|
for (const i of e) this.i._addUintVectorEntry(n, i);
|
|
@@ -2665,57 +2665,57 @@ const Lu = /* @__PURE__ */ (function(e) {
|
|
|
2665
2665
|
}));
|
|
2666
2666
|
}
|
|
2667
2667
|
addStringVectorToStream(e, t, r) {
|
|
2668
|
-
|
|
2668
|
+
m(this, t, ((s) => {
|
|
2669
2669
|
const n = this.i._allocateStringVector(e.length);
|
|
2670
2670
|
if (!n) throw Error("Unable to allocate new string vector on heap.");
|
|
2671
|
-
for (const i of e)
|
|
2671
|
+
for (const i of e) m(this, i, ((o) => {
|
|
2672
2672
|
this.i._addStringVectorEntry(n, o);
|
|
2673
2673
|
}));
|
|
2674
2674
|
this.i._addStringVectorToInputStream(n, s, r);
|
|
2675
2675
|
}));
|
|
2676
2676
|
}
|
|
2677
2677
|
addBoolToInputSidePacket(e, t) {
|
|
2678
|
-
|
|
2678
|
+
m(this, t, ((r) => {
|
|
2679
2679
|
this.i._addBoolToInputSidePacket(e, r);
|
|
2680
2680
|
}));
|
|
2681
2681
|
}
|
|
2682
2682
|
addDoubleToInputSidePacket(e, t) {
|
|
2683
|
-
|
|
2683
|
+
m(this, t, ((r) => {
|
|
2684
2684
|
this.i._addDoubleToInputSidePacket(e, r);
|
|
2685
2685
|
}));
|
|
2686
2686
|
}
|
|
2687
2687
|
addFloatToInputSidePacket(e, t) {
|
|
2688
|
-
|
|
2688
|
+
m(this, t, ((r) => {
|
|
2689
2689
|
this.i._addFloatToInputSidePacket(e, r);
|
|
2690
2690
|
}));
|
|
2691
2691
|
}
|
|
2692
2692
|
addIntToInputSidePacket(e, t) {
|
|
2693
|
-
|
|
2693
|
+
m(this, t, ((r) => {
|
|
2694
2694
|
this.i._addIntToInputSidePacket(e, r);
|
|
2695
2695
|
}));
|
|
2696
2696
|
}
|
|
2697
2697
|
addUintToInputSidePacket(e, t) {
|
|
2698
|
-
|
|
2698
|
+
m(this, t, ((r) => {
|
|
2699
2699
|
this.i._addUintToInputSidePacket(e, r);
|
|
2700
2700
|
}));
|
|
2701
2701
|
}
|
|
2702
2702
|
addStringToInputSidePacket(e, t) {
|
|
2703
|
-
|
|
2704
|
-
|
|
2703
|
+
m(this, t, ((r) => {
|
|
2704
|
+
m(this, e, ((s) => {
|
|
2705
2705
|
this.i._addStringToInputSidePacket(s, r);
|
|
2706
2706
|
}));
|
|
2707
2707
|
}));
|
|
2708
2708
|
}
|
|
2709
2709
|
addProtoToInputSidePacket(e, t, r) {
|
|
2710
|
-
|
|
2711
|
-
|
|
2710
|
+
m(this, r, ((s) => {
|
|
2711
|
+
m(this, t, ((n) => {
|
|
2712
2712
|
const i = this.i._malloc(e.length);
|
|
2713
2713
|
this.i.HEAPU8.set(e, i), this.i._addProtoToInputSidePacket(i, e.length, n, s), this.i._free(i);
|
|
2714
2714
|
}));
|
|
2715
2715
|
}));
|
|
2716
2716
|
}
|
|
2717
2717
|
addBoolVectorToInputSidePacket(e, t) {
|
|
2718
|
-
|
|
2718
|
+
m(this, t, ((r) => {
|
|
2719
2719
|
const s = this.i._allocateBoolVector(e.length);
|
|
2720
2720
|
if (!s) throw Error("Unable to allocate new bool vector on heap.");
|
|
2721
2721
|
for (const n of e) this.i._addBoolVectorEntry(s, n);
|
|
@@ -2723,7 +2723,7 @@ const Lu = /* @__PURE__ */ (function(e) {
|
|
|
2723
2723
|
}));
|
|
2724
2724
|
}
|
|
2725
2725
|
addDoubleVectorToInputSidePacket(e, t) {
|
|
2726
|
-
|
|
2726
|
+
m(this, t, ((r) => {
|
|
2727
2727
|
const s = this.i._allocateDoubleVector(e.length);
|
|
2728
2728
|
if (!s) throw Error("Unable to allocate new double vector on heap.");
|
|
2729
2729
|
for (const n of e) this.i._addDoubleVectorEntry(s, n);
|
|
@@ -2731,7 +2731,7 @@ const Lu = /* @__PURE__ */ (function(e) {
|
|
|
2731
2731
|
}));
|
|
2732
2732
|
}
|
|
2733
2733
|
addFloatVectorToInputSidePacket(e, t) {
|
|
2734
|
-
|
|
2734
|
+
m(this, t, ((r) => {
|
|
2735
2735
|
const s = this.i._allocateFloatVector(e.length);
|
|
2736
2736
|
if (!s) throw Error("Unable to allocate new float vector on heap.");
|
|
2737
2737
|
for (const n of e) this.i._addFloatVectorEntry(s, n);
|
|
@@ -2739,7 +2739,7 @@ const Lu = /* @__PURE__ */ (function(e) {
|
|
|
2739
2739
|
}));
|
|
2740
2740
|
}
|
|
2741
2741
|
addIntVectorToInputSidePacket(e, t) {
|
|
2742
|
-
|
|
2742
|
+
m(this, t, ((r) => {
|
|
2743
2743
|
const s = this.i._allocateIntVector(e.length);
|
|
2744
2744
|
if (!s) throw Error("Unable to allocate new int vector on heap.");
|
|
2745
2745
|
for (const n of e) this.i._addIntVectorEntry(s, n);
|
|
@@ -2747,7 +2747,7 @@ const Lu = /* @__PURE__ */ (function(e) {
|
|
|
2747
2747
|
}));
|
|
2748
2748
|
}
|
|
2749
2749
|
addUintVectorToInputSidePacket(e, t) {
|
|
2750
|
-
|
|
2750
|
+
m(this, t, ((r) => {
|
|
2751
2751
|
const s = this.i._allocateUintVector(e.length);
|
|
2752
2752
|
if (!s) throw Error("Unable to allocate new unsigned int vector on heap.");
|
|
2753
2753
|
for (const n of e) this.i._addUintVectorEntry(s, n);
|
|
@@ -2755,89 +2755,89 @@ const Lu = /* @__PURE__ */ (function(e) {
|
|
|
2755
2755
|
}));
|
|
2756
2756
|
}
|
|
2757
2757
|
addStringVectorToInputSidePacket(e, t) {
|
|
2758
|
-
|
|
2758
|
+
m(this, t, ((r) => {
|
|
2759
2759
|
const s = this.i._allocateStringVector(e.length);
|
|
2760
2760
|
if (!s) throw Error("Unable to allocate new string vector on heap.");
|
|
2761
|
-
for (const n of e)
|
|
2761
|
+
for (const n of e) m(this, n, ((i) => {
|
|
2762
2762
|
this.i._addStringVectorEntry(s, i);
|
|
2763
2763
|
}));
|
|
2764
2764
|
this.i._addStringVectorToInputSidePacket(s, r);
|
|
2765
2765
|
}));
|
|
2766
2766
|
}
|
|
2767
2767
|
attachBoolListener(e, t) {
|
|
2768
|
-
ke(this, e, t),
|
|
2768
|
+
ke(this, e, t), m(this, e, ((r) => {
|
|
2769
2769
|
this.i._attachBoolListener(r);
|
|
2770
2770
|
}));
|
|
2771
2771
|
}
|
|
2772
2772
|
attachBoolVectorListener(e, t) {
|
|
2773
|
-
je(this, e, t),
|
|
2773
|
+
je(this, e, t), m(this, e, ((r) => {
|
|
2774
2774
|
this.i._attachBoolVectorListener(r);
|
|
2775
2775
|
}));
|
|
2776
2776
|
}
|
|
2777
2777
|
attachIntListener(e, t) {
|
|
2778
|
-
ke(this, e, t),
|
|
2778
|
+
ke(this, e, t), m(this, e, ((r) => {
|
|
2779
2779
|
this.i._attachIntListener(r);
|
|
2780
2780
|
}));
|
|
2781
2781
|
}
|
|
2782
2782
|
attachIntVectorListener(e, t) {
|
|
2783
|
-
je(this, e, t),
|
|
2783
|
+
je(this, e, t), m(this, e, ((r) => {
|
|
2784
2784
|
this.i._attachIntVectorListener(r);
|
|
2785
2785
|
}));
|
|
2786
2786
|
}
|
|
2787
2787
|
attachUintListener(e, t) {
|
|
2788
|
-
ke(this, e, t),
|
|
2788
|
+
ke(this, e, t), m(this, e, ((r) => {
|
|
2789
2789
|
this.i._attachUintListener(r);
|
|
2790
2790
|
}));
|
|
2791
2791
|
}
|
|
2792
2792
|
attachUintVectorListener(e, t) {
|
|
2793
|
-
je(this, e, t),
|
|
2793
|
+
je(this, e, t), m(this, e, ((r) => {
|
|
2794
2794
|
this.i._attachUintVectorListener(r);
|
|
2795
2795
|
}));
|
|
2796
2796
|
}
|
|
2797
2797
|
attachDoubleListener(e, t) {
|
|
2798
|
-
ke(this, e, t),
|
|
2798
|
+
ke(this, e, t), m(this, e, ((r) => {
|
|
2799
2799
|
this.i._attachDoubleListener(r);
|
|
2800
2800
|
}));
|
|
2801
2801
|
}
|
|
2802
2802
|
attachDoubleVectorListener(e, t) {
|
|
2803
|
-
je(this, e, t),
|
|
2803
|
+
je(this, e, t), m(this, e, ((r) => {
|
|
2804
2804
|
this.i._attachDoubleVectorListener(r);
|
|
2805
2805
|
}));
|
|
2806
2806
|
}
|
|
2807
2807
|
attachFloatListener(e, t) {
|
|
2808
|
-
ke(this, e, t),
|
|
2808
|
+
ke(this, e, t), m(this, e, ((r) => {
|
|
2809
2809
|
this.i._attachFloatListener(r);
|
|
2810
2810
|
}));
|
|
2811
2811
|
}
|
|
2812
2812
|
attachFloatVectorListener(e, t) {
|
|
2813
|
-
je(this, e, t),
|
|
2813
|
+
je(this, e, t), m(this, e, ((r) => {
|
|
2814
2814
|
this.i._attachFloatVectorListener(r);
|
|
2815
2815
|
}));
|
|
2816
2816
|
}
|
|
2817
2817
|
attachStringListener(e, t) {
|
|
2818
|
-
ke(this, e, t),
|
|
2818
|
+
ke(this, e, t), m(this, e, ((r) => {
|
|
2819
2819
|
this.i._attachStringListener(r);
|
|
2820
2820
|
}));
|
|
2821
2821
|
}
|
|
2822
2822
|
attachStringVectorListener(e, t) {
|
|
2823
|
-
je(this, e, t),
|
|
2823
|
+
je(this, e, t), m(this, e, ((r) => {
|
|
2824
2824
|
this.i._attachStringVectorListener(r);
|
|
2825
2825
|
}));
|
|
2826
2826
|
}
|
|
2827
2827
|
attachProtoListener(e, t, r) {
|
|
2828
|
-
ke(this, e, t),
|
|
2828
|
+
ke(this, e, t), m(this, e, ((s) => {
|
|
2829
2829
|
this.i._attachProtoListener(s, r || !1);
|
|
2830
2830
|
}));
|
|
2831
2831
|
}
|
|
2832
2832
|
attachProtoVectorListener(e, t, r) {
|
|
2833
|
-
je(this, e, t),
|
|
2833
|
+
je(this, e, t), m(this, e, ((s) => {
|
|
2834
2834
|
this.i._attachProtoVectorListener(s, r || !1);
|
|
2835
2835
|
}));
|
|
2836
2836
|
}
|
|
2837
2837
|
attachAudioListener(e, t, r) {
|
|
2838
2838
|
this.i._attachAudioListener || console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'), ke(this, e, ((s, n) => {
|
|
2839
2839
|
s = new Float32Array(s.buffer, s.byteOffset, s.length / 4), t(s, n);
|
|
2840
|
-
})),
|
|
2840
|
+
})), m(this, e, ((s) => {
|
|
2841
2841
|
this.i._attachAudioListener(s, r || !1);
|
|
2842
2842
|
}));
|
|
2843
2843
|
}
|
|
@@ -2852,32 +2852,32 @@ const Lu = /* @__PURE__ */ (function(e) {
|
|
|
2852
2852
|
return this.i;
|
|
2853
2853
|
}
|
|
2854
2854
|
pa(e, t, r) {
|
|
2855
|
-
|
|
2855
|
+
m(this, t, ((s) => {
|
|
2856
2856
|
const [n, i] = Bi(this, e, s);
|
|
2857
2857
|
this.ga._addBoundTextureAsImageToStream(s, n, i, r);
|
|
2858
2858
|
}));
|
|
2859
2859
|
}
|
|
2860
2860
|
Z(e, t) {
|
|
2861
|
-
ke(this, e, t),
|
|
2861
|
+
ke(this, e, t), m(this, e, ((r) => {
|
|
2862
2862
|
this.ga._attachImageListener(r);
|
|
2863
2863
|
}));
|
|
2864
2864
|
}
|
|
2865
2865
|
aa(e, t) {
|
|
2866
|
-
je(this, e, t),
|
|
2866
|
+
je(this, e, t), m(this, e, ((r) => {
|
|
2867
2867
|
this.ga._attachImageVectorListener(r);
|
|
2868
2868
|
}));
|
|
2869
2869
|
}
|
|
2870
2870
|
}));
|
|
2871
|
-
var Hi, we = class extends
|
|
2871
|
+
var Hi, we = class extends Fu {
|
|
2872
2872
|
};
|
|
2873
2873
|
async function w(e, t, r) {
|
|
2874
2874
|
return (async function(s, n, i, o) {
|
|
2875
|
-
return
|
|
2876
|
-
})(e, r.canvas ?? (
|
|
2875
|
+
return Lu(s, n, i, o);
|
|
2876
|
+
})(e, r.canvas ?? (lc() ? void 0 : document.createElement("canvas")), t, r);
|
|
2877
2877
|
}
|
|
2878
|
-
function
|
|
2878
|
+
function vc(e, t, r, s) {
|
|
2879
2879
|
if (e.U) {
|
|
2880
|
-
const i = new
|
|
2880
|
+
const i = new Da();
|
|
2881
2881
|
if (r != null && r.regionOfInterest) {
|
|
2882
2882
|
if (!e.oa) throw Error("This task doesn't support region-of-interest.");
|
|
2883
2883
|
var n = r.regionOfInterest;
|
|
@@ -2888,7 +2888,7 @@ function mc(e, t, r, s) {
|
|
|
2888
2888
|
if (r != null && r.rotationDegrees) {
|
|
2889
2889
|
if ((r == null ? void 0 : r.rotationDegrees) % 90 != 0) throw Error("Expected rotation to be a multiple of 90°.");
|
|
2890
2890
|
if (y(i, 5, -Math.PI * r.rotationDegrees / 180), (r == null ? void 0 : r.rotationDegrees) % 180 != 0) {
|
|
2891
|
-
const [o, a] =
|
|
2891
|
+
const [o, a] = dc(t);
|
|
2892
2892
|
r = I(i, 3) * a / o, n = I(i, 4) * o / a, y(i, 4, r), y(i, 3, n);
|
|
2893
2893
|
}
|
|
2894
2894
|
}
|
|
@@ -2899,12 +2899,12 @@ function mc(e, t, r, s) {
|
|
|
2899
2899
|
function Ae(e, t, r) {
|
|
2900
2900
|
var s;
|
|
2901
2901
|
if ((s = e.baseOptions) != null && s.g()) throw Error("Task is not initialized with image mode. 'runningMode' must be set to 'IMAGE'.");
|
|
2902
|
-
|
|
2902
|
+
vc(e, t, r, e.C + 1);
|
|
2903
2903
|
}
|
|
2904
2904
|
function Fe(e, t, r, s) {
|
|
2905
2905
|
var n;
|
|
2906
2906
|
if (!((n = e.baseOptions) != null && n.g())) throw Error("Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'.");
|
|
2907
|
-
|
|
2907
|
+
vc(e, t, r, s);
|
|
2908
2908
|
}
|
|
2909
2909
|
function Rt(e, t, r, s) {
|
|
2910
2910
|
var n = t.data;
|
|
@@ -2914,7 +2914,7 @@ function Rt(e, t, r, s) {
|
|
|
2914
2914
|
}
|
|
2915
2915
|
var le = class extends Ds {
|
|
2916
2916
|
constructor(e, t, r, s) {
|
|
2917
|
-
super(e), this.g = e, this.X = t, this.U = r, this.oa = s, this.P = new
|
|
2917
|
+
super(e), this.g = e, this.X = t, this.U = r, this.oa = s, this.P = new gc();
|
|
2918
2918
|
}
|
|
2919
2919
|
l(e, t = !0) {
|
|
2920
2920
|
if ("runningMode" in e && k(this.baseOptions, 2, lr(!!e.runningMode && e.runningMode !== "IMAGE")), e.canvas !== void 0 && this.g.i.canvas !== e.canvas) throw Error("You must create a new task to reset the canvas.");
|
|
@@ -2927,13 +2927,13 @@ var le = class extends Ds {
|
|
|
2927
2927
|
le.prototype.close = le.prototype.close;
|
|
2928
2928
|
var ie = class extends le {
|
|
2929
2929
|
constructor(e, t) {
|
|
2930
|
-
super(new we(e, t), "image_in", "norm_rect_in", !1), this.j = { detections: [] },
|
|
2930
|
+
super(new we(e, t), "image_in", "norm_rect_in", !1), this.j = { detections: [] }, v(e = this.h = new os(), 0, 1, t = new O()), y(this.h, 2, 0.5), y(this.h, 3, 0.3);
|
|
2931
2931
|
}
|
|
2932
2932
|
get baseOptions() {
|
|
2933
2933
|
return A(this.h, O, 1);
|
|
2934
2934
|
}
|
|
2935
2935
|
set baseOptions(e) {
|
|
2936
|
-
|
|
2936
|
+
v(this.h, 0, 1, e);
|
|
2937
2937
|
}
|
|
2938
2938
|
o(e) {
|
|
2939
2939
|
return "minDetectionConfidence" in e && y(this.h, 2, e.minDetectionConfidence ?? 0.5), "minSuppressionThreshold" in e && y(this.h, 3, e.minSuppressionThreshold ?? 0.3), this.l(e);
|
|
@@ -2948,13 +2948,13 @@ var ie = class extends le {
|
|
|
2948
2948
|
var e = new fe();
|
|
2949
2949
|
x(e, "image_in"), x(e, "norm_rect_in"), E(e, "detections");
|
|
2950
2950
|
const t = new de();
|
|
2951
|
-
Me(t,
|
|
2951
|
+
Me(t, fu, this.h);
|
|
2952
2952
|
const r = new ee();
|
|
2953
|
-
he(r, 2, "mediapipe.tasks.vision.face_detector.FaceDetectorGraph"),
|
|
2954
|
-
for (const i of s) s =
|
|
2955
|
-
|
|
2953
|
+
he(r, 2, "mediapipe.tasks.vision.face_detector.FaceDetectorGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect_in"), _(r, "DETECTIONS:detections"), r.o(t), be(e, r), this.g.attachProtoVectorListener("detections", ((s, n) => {
|
|
2954
|
+
for (const i of s) s = Na(i), this.j.detections.push(hc(s));
|
|
2955
|
+
f(this, n);
|
|
2956
2956
|
})), this.g.attachEmptyPacketListener("detections", ((s) => {
|
|
2957
|
-
|
|
2957
|
+
f(this, s);
|
|
2958
2958
|
})), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
2959
2959
|
}
|
|
2960
2960
|
};
|
|
@@ -2965,19 +2965,19 @@ ie.prototype.detectForVideo = ie.prototype.G, ie.prototype.detect = ie.prototype
|
|
|
2965
2965
|
}, ie.createFromOptions = function(e, t) {
|
|
2966
2966
|
return w(ie, e, t);
|
|
2967
2967
|
};
|
|
2968
|
-
var jn = _e([61, 146], [146, 91], [91, 181], [181, 84], [84, 17], [17, 314], [314, 405], [405, 321], [321, 375], [375, 291], [61, 185], [185, 40], [40, 39], [39, 37], [37, 0], [0, 267], [267, 269], [269, 270], [270, 409], [409, 291], [78, 95], [95, 88], [88, 178], [178, 87], [87, 14], [14, 317], [317, 402], [402, 318], [318, 324], [324, 308], [78, 191], [191, 80], [80, 81], [81, 82], [82, 13], [13, 312], [312, 311], [311, 310], [310, 415], [415, 308]), Vn = _e([263, 249], [249, 390], [390, 373], [373, 374], [374, 380], [380, 381], [381, 382], [382, 362], [263, 466], [466, 388], [388, 387], [387, 386], [386, 385], [385, 384], [384, 398], [398, 362]), Gn = _e([276, 283], [283, 282], [282, 295], [295, 285], [300, 293], [293, 334], [334, 296], [296, 336]), gc = _e([474, 475], [475, 476], [476, 477], [477, 474]), Hn = _e([33, 7], [7, 163], [163, 144], [144, 145], [145, 153], [153, 154], [154, 155], [155, 133], [33, 246], [246, 161], [161, 160], [160, 159], [159, 158], [158, 157], [157, 173], [173, 133]), zn = _e([46, 53], [53, 52], [52, 65], [65, 55], [70, 63], [63, 105], [105, 66], [66, 107]), yc = _e([469, 470], [470, 471], [471, 472], [472, 469]), Wn = _e([10, 338], [338, 297], [297, 332], [332, 284], [284, 251], [251, 389], [389, 356], [356, 454], [454, 323], [323, 361], [361, 288], [288, 397], [397, 365], [365, 379], [379, 378], [378, 400], [400, 377], [377, 152], [152, 148], [148, 176], [176, 149], [149, 150], [150, 136], [136, 172], [172, 58], [58, 132], [132, 93], [93, 234], [234, 127], [127, 162], [162, 21], [21, 54], [54, 103], [103, 67], [67, 109], [109, 10]), bc = [...jn, ...Vn, ...Gn, ...Hn, ...zn, ...Wn], vc = _e([127, 34], [34, 139], [139, 127], [11, 0], [0, 37], [37, 11], [232, 231], [231, 120], [120, 232], [72, 37], [37, 39], [39, 72], [128, 121], [121, 47], [47, 128], [232, 121], [121, 128], [128, 232], [104, 69], [69, 67], [67, 104], [175, 171], [171, 148], [148, 175], [118, 50], [50, 101], [101, 118], [73, 39], [39, 40], [40, 73], [9, 151], [151, 108], [108, 9], [48, 115], [115, 131], [131, 48], [194, 204], [204, 211], [211, 194], [74, 40], [40, 185], [185, 74], [80, 42], [42, 183], [183, 80], [40, 92], [92, 186], [186, 40], [230, 229], [229, 118], [118, 230], [202, 212], [212, 214], [214, 202], [83, 18], [18, 17], [17, 83], [76, 61], [61, 146], [146, 76], [160, 29], [29, 30], [30, 160], [56, 157], [157, 173], [173, 56], [106, 204], [204, 194], [194, 106], [135, 214], [214, 192], [192, 135], [203, 165], [165, 98], [98, 203], [21, 71], [71, 68], [68, 21], [51, 45], [45, 4], [4, 51], [144, 24], [24, 23], [23, 144], [77, 146], [146, 91], [91, 77], [205, 50], [50, 187], [187, 205], [201, 200], [200, 18], [18, 201], [91, 106], [106, 182], [182, 91], [90, 91], [91, 181], [181, 90], [85, 84], [84, 17], [17, 85], [206, 203], [203, 36], [36, 206], [148, 171], [171, 140], [140, 148], [92, 40], [40, 39], [39, 92], [193, 189], [189, 244], [244, 193], [159, 158], [158, 28], [28, 159], [247, 246], [246, 161], [161, 247], [236, 3], [3, 196], [196, 236], [54, 68], [68, 104], [104, 54], [193, 168], [168, 8], [8, 193], [117, 228], [228, 31], [31, 117], [189, 193], [193, 55], [55, 189], [98, 97], [97, 99], [99, 98], [126, 47], [47, 100], [100, 126], [166, 79], [79, 218], [218, 166], [155, 154], [154, 26], [26, 155], [209, 49], [49, 131], [131, 209], [135, 136], [136, 150], [150, 135], [47, 126], [126, 217], [217, 47], [223, 52], [52, 53], [53, 223], [45, 51], [51, 134], [134, 45], [211, 170], [170, 140], [140, 211], [67, 69], [69, 108], [108, 67], [43, 106], [106, 91], [91, 43], [230, 119], [119, 120], [120, 230], [226, 130], [130, 247], [247, 226], [63, 53], [53, 52], [52, 63], [238, 20], [20, 242], [242, 238], [46, 70], [70, 156], [156, 46], [78, 62], [62, 96], [96, 78], [46, 53], [53, 63], [63, 46], [143, 34], [34, 227], [227, 143], [123, 117], [117, 111], [111, 123], [44, 125], [125, 19], [19, 44], [236, 134], [134, 51], [51, 236], [216, 206], [206, 205], [205, 216], [154, 153], [153, 22], [22, 154], [39, 37], [37, 167], [167, 39], [200, 201], [201, 208], [208, 200], [36, 142], [142, 100], [100, 36], [57, 212], [212, 202], [202, 57], [20, 60], [60, 99], [99, 20], [28, 158], [158, 157], [157, 28], [35, 226], [226, 113], [113, 35], [160, 159], [159, 27], [27, 160], [204, 202], [202, 210], [210, 204], [113, 225], [225, 46], [46, 113], [43, 202], [202, 204], [204, 43], [62, 76], [76, 77], [77, 62], [137, 123], [123, 116], [116, 137], [41, 38], [38, 72], [72, 41], [203, 129], [129, 142], [142, 203], [64, 98], [98, 240], [240, 64], [49, 102], [102, 64], [64, 49], [41, 73], [73, 74], [74, 41], [212, 216], [216, 207], [207, 212], [42, 74], [74, 184], [184, 42], [169, 170], [170, 211], [211, 169], [170, 149], [149, 176], [176, 170], [105, 66], [66, 69], [69, 105], [122, 6], [6, 168], [168, 122], [123, 147], [147, 187], [187, 123], [96, 77], [77, 90], [90, 96], [65, 55], [55, 107], [107, 65], [89, 90], [90, 180], [180, 89], [101, 100], [100, 120], [120, 101], [63, 105], [105, 104], [104, 63], [93, 137], [137, 227], [227, 93], [15, 86], [86, 85], [85, 15], [129, 102], [102, 49], [49, 129], [14, 87], [87, 86], [86, 14], [55, 8], [8, 9], [9, 55], [100, 47], [47, 121], [121, 100], [145, 23], [23, 22], [22, 145], [88, 89], [89, 179], [179, 88], [6, 122], [122, 196], [196, 6], [88, 95], [95, 96], [96, 88], [138, 172], [172, 136], [136, 138], [215, 58], [58, 172], [172, 215], [115, 48], [48, 219], [219, 115], [42, 80], [80, 81], [81, 42], [195, 3], [3, 51], [51, 195], [43, 146], [146, 61], [61, 43], [171, 175], [175, 199], [199, 171], [81, 82], [82, 38], [38, 81], [53, 46], [46, 225], [225, 53], [144, 163], [163, 110], [110, 144], [52, 65], [65, 66], [66, 52], [229, 228], [228, 117], [117, 229], [34, 127], [127, 234], [234, 34], [107, 108], [108, 69], [69, 107], [109, 108], [108, 151], [151, 109], [48, 64], [64, 235], [235, 48], [62, 78], [78, 191], [191, 62], [129, 209], [209, 126], [126, 129], [111, 35], [35, 143], [143, 111], [117, 123], [123, 50], [50, 117], [222, 65], [65, 52], [52, 222], [19, 125], [125, 141], [141, 19], [221, 55], [55, 65], [65, 221], [3, 195], [195, 197], [197, 3], [25, 7], [7, 33], [33, 25], [220, 237], [237, 44], [44, 220], [70, 71], [71, 139], [139, 70], [122, 193], [193, 245], [245, 122], [247, 130], [130, 33], [33, 247], [71, 21], [21, 162], [162, 71], [170, 169], [169, 150], [150, 170], [188, 174], [174, 196], [196, 188], [216, 186], [186, 92], [92, 216], [2, 97], [97, 167], [167, 2], [141, 125], [125, 241], [241, 141], [164, 167], [167, 37], [37, 164], [72, 38], [38, 12], [12, 72], [38, 82], [82, 13], [13, 38], [63, 68], [68, 71], [71, 63], [226, 35], [35, 111], [111, 226], [101, 50], [50, 205], [205, 101], [206, 92], [92, 165], [165, 206], [209, 198], [198, 217], [217, 209], [165, 167], [167, 97], [97, 165], [220, 115], [115, 218], [218, 220], [133, 112], [112, 243], [243, 133], [239, 238], [238, 241], [241, 239], [214, 135], [135, 169], [169, 214], [190, 173], [173, 133], [133, 190], [171, 208], [208, 32], [32, 171], [125, 44], [44, 237], [237, 125], [86, 87], [87, 178], [178, 86], [85, 86], [86, 179], [179, 85], [84, 85], [85, 180], [180, 84], [83, 84], [84, 181], [181, 83], [201, 83], [83, 182], [182, 201], [137, 93], [93, 132], [132, 137], [76, 62], [62, 183], [183, 76], [61, 76], [76, 184], [184, 61], [57, 61], [61, 185], [185, 57], [212, 57], [57, 186], [186, 212], [214, 207], [207, 187], [187, 214], [34, 143], [143, 156], [156, 34], [79, 239], [239, 237], [237, 79], [123, 137], [137, 177], [177, 123], [44, 1], [1, 4], [4, 44], [201, 194], [194, 32], [32, 201], [64, 102], [102, 129], [129, 64], [213, 215], [215, 138], [138, 213], [59, 166], [166, 219], [219, 59], [242, 99], [99, 97], [97, 242], [2, 94], [94, 141], [141, 2], [75, 59], [59, 235], [235, 75], [24, 110], [110, 228], [228, 24], [25, 130], [130, 226], [226, 25], [23, 24], [24, 229], [229, 23], [22, 23], [23, 230], [230, 22], [26, 22], [22, 231], [231, 26], [112, 26], [26, 232], [232, 112], [189, 190], [190, 243], [243, 189], [221, 56], [56, 190], [190, 221], [28, 56], [56, 221], [221, 28], [27, 28], [28, 222], [222, 27], [29, 27], [27, 223], [223, 29], [30, 29], [29, 224], [224, 30], [247, 30], [30, 225], [225, 247], [238, 79], [79, 20], [20, 238], [166, 59], [59, 75], [75, 166], [60, 75], [75, 240], [240, 60], [147, 177], [177, 215], [215, 147], [20, 79], [79, 166], [166, 20], [187, 147], [147, 213], [213, 187], [112, 233], [233, 244], [244, 112], [233, 128], [128, 245], [245, 233], [128, 114], [114, 188], [188, 128], [114, 217], [217, 174], [174, 114], [131, 115], [115, 220], [220, 131], [217, 198], [198, 236], [236, 217], [198, 131], [131, 134], [134, 198], [177, 132], [132, 58], [58, 177], [143, 35], [35, 124], [124, 143], [110, 163], [163, 7], [7, 110], [228, 110], [110, 25], [25, 228], [356, 389], [389, 368], [368, 356], [11, 302], [302, 267], [267, 11], [452, 350], [350, 349], [349, 452], [302, 303], [303, 269], [269, 302], [357, 343], [343, 277], [277, 357], [452, 453], [453, 357], [357, 452], [333, 332], [332, 297], [297, 333], [175, 152], [152, 377], [377, 175], [347, 348], [348, 330], [330, 347], [303, 304], [304, 270], [270, 303], [9, 336], [336, 337], [337, 9], [278, 279], [279, 360], [360, 278], [418, 262], [262, 431], [431, 418], [304, 408], [408, 409], [409, 304], [310, 415], [415, 407], [407, 310], [270, 409], [409, 410], [410, 270], [450, 348], [348, 347], [347, 450], [422, 430], [430, 434], [434, 422], [313, 314], [314, 17], [17, 313], [306, 307], [307, 375], [375, 306], [387, 388], [388, 260], [260, 387], [286, 414], [414, 398], [398, 286], [335, 406], [406, 418], [418, 335], [364, 367], [367, 416], [416, 364], [423, 358], [358, 327], [327, 423], [251, 284], [284, 298], [298, 251], [281, 5], [5, 4], [4, 281], [373, 374], [374, 253], [253, 373], [307, 320], [320, 321], [321, 307], [425, 427], [427, 411], [411, 425], [421, 313], [313, 18], [18, 421], [321, 405], [405, 406], [406, 321], [320, 404], [404, 405], [405, 320], [315, 16], [16, 17], [17, 315], [426, 425], [425, 266], [266, 426], [377, 400], [400, 369], [369, 377], [322, 391], [391, 269], [269, 322], [417, 465], [465, 464], [464, 417], [386, 257], [257, 258], [258, 386], [466, 260], [260, 388], [388, 466], [456, 399], [399, 419], [419, 456], [284, 332], [332, 333], [333, 284], [417, 285], [285, 8], [8, 417], [346, 340], [340, 261], [261, 346], [413, 441], [441, 285], [285, 413], [327, 460], [460, 328], [328, 327], [355, 371], [371, 329], [329, 355], [392, 439], [439, 438], [438, 392], [382, 341], [341, 256], [256, 382], [429, 420], [420, 360], [360, 429], [364, 394], [394, 379], [379, 364], [277, 343], [343, 437], [437, 277], [443, 444], [444, 283], [283, 443], [275, 440], [440, 363], [363, 275], [431, 262], [262, 369], [369, 431], [297, 338], [338, 337], [337, 297], [273, 375], [375, 321], [321, 273], [450, 451], [451, 349], [349, 450], [446, 342], [342, 467], [467, 446], [293, 334], [334, 282], [282, 293], [458, 461], [461, 462], [462, 458], [276, 353], [353, 383], [383, 276], [308, 324], [324, 325], [325, 308], [276, 300], [300, 293], [293, 276], [372, 345], [345, 447], [447, 372], [352, 345], [345, 340], [340, 352], [274, 1], [1, 19], [19, 274], [456, 248], [248, 281], [281, 456], [436, 427], [427, 425], [425, 436], [381, 256], [256, 252], [252, 381], [269, 391], [391, 393], [393, 269], [200, 199], [199, 428], [428, 200], [266, 330], [330, 329], [329, 266], [287, 273], [273, 422], [422, 287], [250, 462], [462, 328], [328, 250], [258, 286], [286, 384], [384, 258], [265, 353], [353, 342], [342, 265], [387, 259], [259, 257], [257, 387], [424, 431], [431, 430], [430, 424], [342, 353], [353, 276], [276, 342], [273, 335], [335, 424], [424, 273], [292, 325], [325, 307], [307, 292], [366, 447], [447, 345], [345, 366], [271, 303], [303, 302], [302, 271], [423, 266], [266, 371], [371, 423], [294, 455], [455, 460], [460, 294], [279, 278], [278, 294], [294, 279], [271, 272], [272, 304], [304, 271], [432, 434], [434, 427], [427, 432], [272, 407], [407, 408], [408, 272], [394, 430], [430, 431], [431, 394], [395, 369], [369, 400], [400, 395], [334, 333], [333, 299], [299, 334], [351, 417], [417, 168], [168, 351], [352, 280], [280, 411], [411, 352], [325, 319], [319, 320], [320, 325], [295, 296], [296, 336], [336, 295], [319, 403], [403, 404], [404, 319], [330, 348], [348, 349], [349, 330], [293, 298], [298, 333], [333, 293], [323, 454], [454, 447], [447, 323], [15, 16], [16, 315], [315, 15], [358, 429], [429, 279], [279, 358], [14, 15], [15, 316], [316, 14], [285, 336], [336, 9], [9, 285], [329, 349], [349, 350], [350, 329], [374, 380], [380, 252], [252, 374], [318, 402], [402, 403], [403, 318], [6, 197], [197, 419], [419, 6], [318, 319], [319, 325], [325, 318], [367, 364], [364, 365], [365, 367], [435, 367], [367, 397], [397, 435], [344, 438], [438, 439], [439, 344], [272, 271], [271, 311], [311, 272], [195, 5], [5, 281], [281, 195], [273, 287], [287, 291], [291, 273], [396, 428], [428, 199], [199, 396], [311, 271], [271, 268], [268, 311], [283, 444], [444, 445], [445, 283], [373, 254], [254, 339], [339, 373], [282, 334], [334, 296], [296, 282], [449, 347], [347, 346], [346, 449], [264, 447], [447, 454], [454, 264], [336, 296], [296, 299], [299, 336], [338, 10], [10, 151], [151, 338], [278, 439], [439, 455], [455, 278], [292, 407], [407, 415], [415, 292], [358, 371], [371, 355], [355, 358], [340, 345], [345, 372], [372, 340], [346, 347], [347, 280], [280, 346], [442, 443], [443, 282], [282, 442], [19, 94], [94, 370], [370, 19], [441, 442], [442, 295], [295, 441], [248, 419], [419, 197], [197, 248], [263, 255], [255, 359], [359, 263], [440, 275], [275, 274], [274, 440], [300, 383], [383, 368], [368, 300], [351, 412], [412, 465], [465, 351], [263, 467], [467, 466], [466, 263], [301, 368], [368, 389], [389, 301], [395, 378], [378, 379], [379, 395], [412, 351], [351, 419], [419, 412], [436, 426], [426, 322], [322, 436], [2, 164], [164, 393], [393, 2], [370, 462], [462, 461], [461, 370], [164, 0], [0, 267], [267, 164], [302, 11], [11, 12], [12, 302], [268, 12], [12, 13], [13, 268], [293, 300], [300, 301], [301, 293], [446, 261], [261, 340], [340, 446], [330, 266], [266, 425], [425, 330], [426, 423], [423, 391], [391, 426], [429, 355], [355, 437], [437, 429], [391, 327], [327, 326], [326, 391], [440, 457], [457, 438], [438, 440], [341, 382], [382, 362], [362, 341], [459, 457], [457, 461], [461, 459], [434, 430], [430, 394], [394, 434], [414, 463], [463, 362], [362, 414], [396, 369], [369, 262], [262, 396], [354, 461], [461, 457], [457, 354], [316, 403], [403, 402], [402, 316], [315, 404], [404, 403], [403, 315], [314, 405], [405, 404], [404, 314], [313, 406], [406, 405], [405, 313], [421, 418], [418, 406], [406, 421], [366, 401], [401, 361], [361, 366], [306, 408], [408, 407], [407, 306], [291, 409], [409, 408], [408, 291], [287, 410], [410, 409], [409, 287], [432, 436], [436, 410], [410, 432], [434, 416], [416, 411], [411, 434], [264, 368], [368, 383], [383, 264], [309, 438], [438, 457], [457, 309], [352, 376], [376, 401], [401, 352], [274, 275], [275, 4], [4, 274], [421, 428], [428, 262], [262, 421], [294, 327], [327, 358], [358, 294], [433, 416], [416, 367], [367, 433], [289, 455], [455, 439], [439, 289], [462, 370], [370, 326], [326, 462], [2, 326], [326, 370], [370, 2], [305, 460], [460, 455], [455, 305], [254, 449], [449, 448], [448, 254], [255, 261], [261, 446], [446, 255], [253, 450], [450, 449], [449, 253], [252, 451], [451, 450], [450, 252], [256, 452], [452, 451], [451, 256], [341, 453], [453, 452], [452, 341], [413, 464], [464, 463], [463, 413], [441, 413], [413, 414], [414, 441], [258, 442], [442, 441], [441, 258], [257, 443], [443, 442], [442, 257], [259, 444], [444, 443], [443, 259], [260, 445], [445, 444], [444, 260], [467, 342], [342, 445], [445, 467], [459, 458], [458, 250], [250, 459], [289, 392], [392, 290], [290, 289], [290, 328], [328, 460], [460, 290], [376, 433], [433, 435], [435, 376], [250, 290], [290, 392], [392, 250], [411, 416], [416, 433], [433, 411], [341, 463], [463, 464], [464, 341], [453, 464], [464, 465], [465, 453], [357, 465], [465, 412], [412, 357], [343, 412], [412, 399], [399, 343], [360, 363], [363, 440], [440, 360], [437, 399], [399, 456], [456, 437], [420, 456], [456, 363], [363, 420], [401, 435], [435, 288], [288, 401], [372, 383], [383, 353], [353, 372], [339, 255], [255, 249], [249, 339], [448, 261], [261, 255], [255, 448], [133, 243], [243, 190], [190, 133], [133, 155], [155, 112], [112, 133], [33, 246], [246, 247], [247, 33], [33, 130], [130, 25], [25, 33], [398, 384], [384, 286], [286, 398], [362, 398], [398, 414], [414, 362], [362, 463], [463, 341], [341, 362], [263, 359], [359, 467], [467, 263], [263, 249], [249, 255], [255, 263], [466, 467], [467, 260], [260, 466], [75, 60], [60, 166], [166, 75], [238, 239], [239, 79], [79, 238], [162, 127], [127, 139], [139, 162], [72, 11], [11, 37], [37, 72], [121, 232], [232, 120], [120, 121], [73, 72], [72, 39], [39, 73], [114, 128], [128, 47], [47, 114], [233, 232], [232, 128], [128, 233], [103, 104], [104, 67], [67, 103], [152, 175], [175, 148], [148, 152], [119, 118], [118, 101], [101, 119], [74, 73], [73, 40], [40, 74], [107, 9], [9, 108], [108, 107], [49, 48], [48, 131], [131, 49], [32, 194], [194, 211], [211, 32], [184, 74], [74, 185], [185, 184], [191, 80], [80, 183], [183, 191], [185, 40], [40, 186], [186, 185], [119, 230], [230, 118], [118, 119], [210, 202], [202, 214], [214, 210], [84, 83], [83, 17], [17, 84], [77, 76], [76, 146], [146, 77], [161, 160], [160, 30], [30, 161], [190, 56], [56, 173], [173, 190], [182, 106], [106, 194], [194, 182], [138, 135], [135, 192], [192, 138], [129, 203], [203, 98], [98, 129], [54, 21], [21, 68], [68, 54], [5, 51], [51, 4], [4, 5], [145, 144], [144, 23], [23, 145], [90, 77], [77, 91], [91, 90], [207, 205], [205, 187], [187, 207], [83, 201], [201, 18], [18, 83], [181, 91], [91, 182], [182, 181], [180, 90], [90, 181], [181, 180], [16, 85], [85, 17], [17, 16], [205, 206], [206, 36], [36, 205], [176, 148], [148, 140], [140, 176], [165, 92], [92, 39], [39, 165], [245, 193], [193, 244], [244, 245], [27, 159], [159, 28], [28, 27], [30, 247], [247, 161], [161, 30], [174, 236], [236, 196], [196, 174], [103, 54], [54, 104], [104, 103], [55, 193], [193, 8], [8, 55], [111, 117], [117, 31], [31, 111], [221, 189], [189, 55], [55, 221], [240, 98], [98, 99], [99, 240], [142, 126], [126, 100], [100, 142], [219, 166], [166, 218], [218, 219], [112, 155], [155, 26], [26, 112], [198, 209], [209, 131], [131, 198], [169, 135], [135, 150], [150, 169], [114, 47], [47, 217], [217, 114], [224, 223], [223, 53], [53, 224], [220, 45], [45, 134], [134, 220], [32, 211], [211, 140], [140, 32], [109, 67], [67, 108], [108, 109], [146, 43], [43, 91], [91, 146], [231, 230], [230, 120], [120, 231], [113, 226], [226, 247], [247, 113], [105, 63], [63, 52], [52, 105], [241, 238], [238, 242], [242, 241], [124, 46], [46, 156], [156, 124], [95, 78], [78, 96], [96, 95], [70, 46], [46, 63], [63, 70], [116, 143], [143, 227], [227, 116], [116, 123], [123, 111], [111, 116], [1, 44], [44, 19], [19, 1], [3, 236], [236, 51], [51, 3], [207, 216], [216, 205], [205, 207], [26, 154], [154, 22], [22, 26], [165, 39], [39, 167], [167, 165], [199, 200], [200, 208], [208, 199], [101, 36], [36, 100], [100, 101], [43, 57], [57, 202], [202, 43], [242, 20], [20, 99], [99, 242], [56, 28], [28, 157], [157, 56], [124, 35], [35, 113], [113, 124], [29, 160], [160, 27], [27, 29], [211, 204], [204, 210], [210, 211], [124, 113], [113, 46], [46, 124], [106, 43], [43, 204], [204, 106], [96, 62], [62, 77], [77, 96], [227, 137], [137, 116], [116, 227], [73, 41], [41, 72], [72, 73], [36, 203], [203, 142], [142, 36], [235, 64], [64, 240], [240, 235], [48, 49], [49, 64], [64, 48], [42, 41], [41, 74], [74, 42], [214, 212], [212, 207], [207, 214], [183, 42], [42, 184], [184, 183], [210, 169], [169, 211], [211, 210], [140, 170], [170, 176], [176, 140], [104, 105], [105, 69], [69, 104], [193, 122], [122, 168], [168, 193], [50, 123], [123, 187], [187, 50], [89, 96], [96, 90], [90, 89], [66, 65], [65, 107], [107, 66], [179, 89], [89, 180], [180, 179], [119, 101], [101, 120], [120, 119], [68, 63], [63, 104], [104, 68], [234, 93], [93, 227], [227, 234], [16, 15], [15, 85], [85, 16], [209, 129], [129, 49], [49, 209], [15, 14], [14, 86], [86, 15], [107, 55], [55, 9], [9, 107], [120, 100], [100, 121], [121, 120], [153, 145], [145, 22], [22, 153], [178, 88], [88, 179], [179, 178], [197, 6], [6, 196], [196, 197], [89, 88], [88, 96], [96, 89], [135, 138], [138, 136], [136, 135], [138, 215], [215, 172], [172, 138], [218, 115], [115, 219], [219, 218], [41, 42], [42, 81], [81, 41], [5, 195], [195, 51], [51, 5], [57, 43], [43, 61], [61, 57], [208, 171], [171, 199], [199, 208], [41, 81], [81, 38], [38, 41], [224, 53], [53, 225], [225, 224], [24, 144], [144, 110], [110, 24], [105, 52], [52, 66], [66, 105], [118, 229], [229, 117], [117, 118], [227, 34], [34, 234], [234, 227], [66, 107], [107, 69], [69, 66], [10, 109], [109, 151], [151, 10], [219, 48], [48, 235], [235, 219], [183, 62], [62, 191], [191, 183], [142, 129], [129, 126], [126, 142], [116, 111], [111, 143], [143, 116], [118, 117], [117, 50], [50, 118], [223, 222], [222, 52], [52, 223], [94, 19], [19, 141], [141, 94], [222, 221], [221, 65], [65, 222], [196, 3], [3, 197], [197, 196], [45, 220], [220, 44], [44, 45], [156, 70], [70, 139], [139, 156], [188, 122], [122, 245], [245, 188], [139, 71], [71, 162], [162, 139], [149, 170], [170, 150], [150, 149], [122, 188], [188, 196], [196, 122], [206, 216], [216, 92], [92, 206], [164, 2], [2, 167], [167, 164], [242, 141], [141, 241], [241, 242], [0, 164], [164, 37], [37, 0], [11, 72], [72, 12], [12, 11], [12, 38], [38, 13], [13, 12], [70, 63], [63, 71], [71, 70], [31, 226], [226, 111], [111, 31], [36, 101], [101, 205], [205, 36], [203, 206], [206, 165], [165, 203], [126, 209], [209, 217], [217, 126], [98, 165], [165, 97], [97, 98], [237, 220], [220, 218], [218, 237], [237, 239], [239, 241], [241, 237], [210, 214], [214, 169], [169, 210], [140, 171], [171, 32], [32, 140], [241, 125], [125, 237], [237, 241], [179, 86], [86, 178], [178, 179], [180, 85], [85, 179], [179, 180], [181, 84], [84, 180], [180, 181], [182, 83], [83, 181], [181, 182], [194, 201], [201, 182], [182, 194], [177, 137], [137, 132], [132, 177], [184, 76], [76, 183], [183, 184], [185, 61], [61, 184], [184, 185], [186, 57], [57, 185], [185, 186], [216, 212], [212, 186], [186, 216], [192, 214], [214, 187], [187, 192], [139, 34], [34, 156], [156, 139], [218, 79], [79, 237], [237, 218], [147, 123], [123, 177], [177, 147], [45, 44], [44, 4], [4, 45], [208, 201], [201, 32], [32, 208], [98, 64], [64, 129], [129, 98], [192, 213], [213, 138], [138, 192], [235, 59], [59, 219], [219, 235], [141, 242], [242, 97], [97, 141], [97, 2], [2, 141], [141, 97], [240, 75], [75, 235], [235, 240], [229, 24], [24, 228], [228, 229], [31, 25], [25, 226], [226, 31], [230, 23], [23, 229], [229, 230], [231, 22], [22, 230], [230, 231], [232, 26], [26, 231], [231, 232], [233, 112], [112, 232], [232, 233], [244, 189], [189, 243], [243, 244], [189, 221], [221, 190], [190, 189], [222, 28], [28, 221], [221, 222], [223, 27], [27, 222], [222, 223], [224, 29], [29, 223], [223, 224], [225, 30], [30, 224], [224, 225], [113, 247], [247, 225], [225, 113], [99, 60], [60, 240], [240, 99], [213, 147], [147, 215], [215, 213], [60, 20], [20, 166], [166, 60], [192, 187], [187, 213], [213, 192], [243, 112], [112, 244], [244, 243], [244, 233], [233, 245], [245, 244], [245, 128], [128, 188], [188, 245], [188, 114], [114, 174], [174, 188], [134, 131], [131, 220], [220, 134], [174, 217], [217, 236], [236, 174], [236, 198], [198, 134], [134, 236], [215, 177], [177, 58], [58, 215], [156, 143], [143, 124], [124, 156], [25, 110], [110, 7], [7, 25], [31, 228], [228, 25], [25, 31], [264, 356], [356, 368], [368, 264], [0, 11], [11, 267], [267, 0], [451, 452], [452, 349], [349, 451], [267, 302], [302, 269], [269, 267], [350, 357], [357, 277], [277, 350], [350, 452], [452, 357], [357, 350], [299, 333], [333, 297], [297, 299], [396, 175], [175, 377], [377, 396], [280, 347], [347, 330], [330, 280], [269, 303], [303, 270], [270, 269], [151, 9], [9, 337], [337, 151], [344, 278], [278, 360], [360, 344], [424, 418], [418, 431], [431, 424], [270, 304], [304, 409], [409, 270], [272, 310], [310, 407], [407, 272], [322, 270], [270, 410], [410, 322], [449, 450], [450, 347], [347, 449], [432, 422], [422, 434], [434, 432], [18, 313], [313, 17], [17, 18], [291, 306], [306, 375], [375, 291], [259, 387], [387, 260], [260, 259], [424, 335], [335, 418], [418, 424], [434, 364], [364, 416], [416, 434], [391, 423], [423, 327], [327, 391], [301, 251], [251, 298], [298, 301], [275, 281], [281, 4], [4, 275], [254, 373], [373, 253], [253, 254], [375, 307], [307, 321], [321, 375], [280, 425], [425, 411], [411, 280], [200, 421], [421, 18], [18, 200], [335, 321], [321, 406], [406, 335], [321, 320], [320, 405], [405, 321], [314, 315], [315, 17], [17, 314], [423, 426], [426, 266], [266, 423], [396, 377], [377, 369], [369, 396], [270, 322], [322, 269], [269, 270], [413, 417], [417, 464], [464, 413], [385, 386], [386, 258], [258, 385], [248, 456], [456, 419], [419, 248], [298, 284], [284, 333], [333, 298], [168, 417], [417, 8], [8, 168], [448, 346], [346, 261], [261, 448], [417, 413], [413, 285], [285, 417], [326, 327], [327, 328], [328, 326], [277, 355], [355, 329], [329, 277], [309, 392], [392, 438], [438, 309], [381, 382], [382, 256], [256, 381], [279, 429], [429, 360], [360, 279], [365, 364], [364, 379], [379, 365], [355, 277], [277, 437], [437, 355], [282, 443], [443, 283], [283, 282], [281, 275], [275, 363], [363, 281], [395, 431], [431, 369], [369, 395], [299, 297], [297, 337], [337, 299], [335, 273], [273, 321], [321, 335], [348, 450], [450, 349], [349, 348], [359, 446], [446, 467], [467, 359], [283, 293], [293, 282], [282, 283], [250, 458], [458, 462], [462, 250], [300, 276], [276, 383], [383, 300], [292, 308], [308, 325], [325, 292], [283, 276], [276, 293], [293, 283], [264, 372], [372, 447], [447, 264], [346, 352], [352, 340], [340, 346], [354, 274], [274, 19], [19, 354], [363, 456], [456, 281], [281, 363], [426, 436], [436, 425], [425, 426], [380, 381], [381, 252], [252, 380], [267, 269], [269, 393], [393, 267], [421, 200], [200, 428], [428, 421], [371, 266], [266, 329], [329, 371], [432, 287], [287, 422], [422, 432], [290, 250], [250, 328], [328, 290], [385, 258], [258, 384], [384, 385], [446, 265], [265, 342], [342, 446], [386, 387], [387, 257], [257, 386], [422, 424], [424, 430], [430, 422], [445, 342], [342, 276], [276, 445], [422, 273], [273, 424], [424, 422], [306, 292], [292, 307], [307, 306], [352, 366], [366, 345], [345, 352], [268, 271], [271, 302], [302, 268], [358, 423], [423, 371], [371, 358], [327, 294], [294, 460], [460, 327], [331, 279], [279, 294], [294, 331], [303, 271], [271, 304], [304, 303], [436, 432], [432, 427], [427, 436], [304, 272], [272, 408], [408, 304], [395, 394], [394, 431], [431, 395], [378, 395], [395, 400], [400, 378], [296, 334], [334, 299], [299, 296], [6, 351], [351, 168], [168, 6], [376, 352], [352, 411], [411, 376], [307, 325], [325, 320], [320, 307], [285, 295], [295, 336], [336, 285], [320, 319], [319, 404], [404, 320], [329, 330], [330, 349], [349, 329], [334, 293], [293, 333], [333, 334], [366, 323], [323, 447], [447, 366], [316, 15], [15, 315], [315, 316], [331, 358], [358, 279], [279, 331], [317, 14], [14, 316], [316, 317], [8, 285], [285, 9], [9, 8], [277, 329], [329, 350], [350, 277], [253, 374], [374, 252], [252, 253], [319, 318], [318, 403], [403, 319], [351, 6], [6, 419], [419, 351], [324, 318], [318, 325], [325, 324], [397, 367], [367, 365], [365, 397], [288, 435], [435, 397], [397, 288], [278, 344], [344, 439], [439, 278], [310, 272], [272, 311], [311, 310], [248, 195], [195, 281], [281, 248], [375, 273], [273, 291], [291, 375], [175, 396], [396, 199], [199, 175], [312, 311], [311, 268], [268, 312], [276, 283], [283, 445], [445, 276], [390, 373], [373, 339], [339, 390], [295, 282], [282, 296], [296, 295], [448, 449], [449, 346], [346, 448], [356, 264], [264, 454], [454, 356], [337, 336], [336, 299], [299, 337], [337, 338], [338, 151], [151, 337], [294, 278], [278, 455], [455, 294], [308, 292], [292, 415], [415, 308], [429, 358], [358, 355], [355, 429], [265, 340], [340, 372], [372, 265], [352, 346], [346, 280], [280, 352], [295, 442], [442, 282], [282, 295], [354, 19], [19, 370], [370, 354], [285, 441], [441, 295], [295, 285], [195, 248], [248, 197], [197, 195], [457, 440], [440, 274], [274, 457], [301, 300], [300, 368], [368, 301], [417, 351], [351, 465], [465, 417], [251, 301], [301, 389], [389, 251], [394, 395], [395, 379], [379, 394], [399, 412], [412, 419], [419, 399], [410, 436], [436, 322], [322, 410], [326, 2], [2, 393], [393, 326], [354, 370], [370, 461], [461, 354], [393, 164], [164, 267], [267, 393], [268, 302], [302, 12], [12, 268], [312, 268], [268, 13], [13, 312], [298, 293], [293, 301], [301, 298], [265, 446], [446, 340], [340, 265], [280, 330], [330, 425], [425, 280], [322, 426], [426, 391], [391, 322], [420, 429], [429, 437], [437, 420], [393, 391], [391, 326], [326, 393], [344, 440], [440, 438], [438, 344], [458, 459], [459, 461], [461, 458], [364, 434], [434, 394], [394, 364], [428, 396], [396, 262], [262, 428], [274, 354], [354, 457], [457, 274], [317, 316], [316, 402], [402, 317], [316, 315], [315, 403], [403, 316], [315, 314], [314, 404], [404, 315], [314, 313], [313, 405], [405, 314], [313, 421], [421, 406], [406, 313], [323, 366], [366, 361], [361, 323], [292, 306], [306, 407], [407, 292], [306, 291], [291, 408], [408, 306], [291, 287], [287, 409], [409, 291], [287, 432], [432, 410], [410, 287], [427, 434], [434, 411], [411, 427], [372, 264], [264, 383], [383, 372], [459, 309], [309, 457], [457, 459], [366, 352], [352, 401], [401, 366], [1, 274], [274, 4], [4, 1], [418, 421], [421, 262], [262, 418], [331, 294], [294, 358], [358, 331], [435, 433], [433, 367], [367, 435], [392, 289], [289, 439], [439, 392], [328, 462], [462, 326], [326, 328], [94, 2], [2, 370], [370, 94], [289, 305], [305, 455], [455, 289], [339, 254], [254, 448], [448, 339], [359, 255], [255, 446], [446, 359], [254, 253], [253, 449], [449, 254], [253, 252], [252, 450], [450, 253], [252, 256], [256, 451], [451, 252], [256, 341], [341, 452], [452, 256], [414, 413], [413, 463], [463, 414], [286, 441], [441, 414], [414, 286], [286, 258], [258, 441], [441, 286], [258, 257], [257, 442], [442, 258], [257, 259], [259, 443], [443, 257], [259, 260], [260, 444], [444, 259], [260, 467], [467, 445], [445, 260], [309, 459], [459, 250], [250, 309], [305, 289], [289, 290], [290, 305], [305, 290], [290, 460], [460, 305], [401, 376], [376, 435], [435, 401], [309, 250], [250, 392], [392, 309], [376, 411], [411, 433], [433, 376], [453, 341], [341, 464], [464, 453], [357, 453], [453, 465], [465, 357], [343, 357], [357, 412], [412, 343], [437, 343], [343, 399], [399, 437], [344, 360], [360, 440], [440, 344], [420, 437], [437, 456], [456, 420], [360, 420], [420, 363], [363, 360], [361, 401], [401, 288], [288, 361], [265, 372], [372, 353], [353, 265], [390, 339], [339, 249], [249, 390], [339, 448], [448, 255], [255, 339]);
|
|
2968
|
+
var jn = _e([61, 146], [146, 91], [91, 181], [181, 84], [84, 17], [17, 314], [314, 405], [405, 321], [321, 375], [375, 291], [61, 185], [185, 40], [40, 39], [39, 37], [37, 0], [0, 267], [267, 269], [269, 270], [270, 409], [409, 291], [78, 95], [95, 88], [88, 178], [178, 87], [87, 14], [14, 317], [317, 402], [402, 318], [318, 324], [324, 308], [78, 191], [191, 80], [80, 81], [81, 82], [82, 13], [13, 312], [312, 311], [311, 310], [310, 415], [415, 308]), Vn = _e([263, 249], [249, 390], [390, 373], [373, 374], [374, 380], [380, 381], [381, 382], [382, 362], [263, 466], [466, 388], [388, 387], [387, 386], [386, 385], [385, 384], [384, 398], [398, 362]), Gn = _e([276, 283], [283, 282], [282, 295], [295, 285], [300, 293], [293, 334], [334, 296], [296, 336]), _c = _e([474, 475], [475, 476], [476, 477], [477, 474]), Hn = _e([33, 7], [7, 163], [163, 144], [144, 145], [145, 153], [153, 154], [154, 155], [155, 133], [33, 246], [246, 161], [161, 160], [160, 159], [159, 158], [158, 157], [157, 173], [173, 133]), zn = _e([46, 53], [53, 52], [52, 65], [65, 55], [70, 63], [63, 105], [105, 66], [66, 107]), wc = _e([469, 470], [470, 471], [471, 472], [472, 469]), Wn = _e([10, 338], [338, 297], [297, 332], [332, 284], [284, 251], [251, 389], [389, 356], [356, 454], [454, 323], [323, 361], [361, 288], [288, 397], [397, 365], [365, 379], [379, 378], [378, 400], [400, 377], [377, 152], [152, 148], [148, 176], [176, 149], [149, 150], [150, 136], [136, 172], [172, 58], [58, 132], [132, 93], [93, 234], [234, 127], [127, 162], [162, 21], [21, 54], [54, 103], [103, 67], [67, 109], [109, 10]), Ac = [...jn, ...Vn, ...Gn, ...Hn, ...zn, ...Wn], Ec = _e([127, 34], [34, 139], [139, 127], [11, 0], [0, 37], [37, 11], [232, 231], [231, 120], [120, 232], [72, 37], [37, 39], [39, 72], [128, 121], [121, 47], [47, 128], [232, 121], [121, 128], [128, 232], [104, 69], [69, 67], [67, 104], [175, 171], [171, 148], [148, 175], [118, 50], [50, 101], [101, 118], [73, 39], [39, 40], [40, 73], [9, 151], [151, 108], [108, 9], [48, 115], [115, 131], [131, 48], [194, 204], [204, 211], [211, 194], [74, 40], [40, 185], [185, 74], [80, 42], [42, 183], [183, 80], [40, 92], [92, 186], [186, 40], [230, 229], [229, 118], [118, 230], [202, 212], [212, 214], [214, 202], [83, 18], [18, 17], [17, 83], [76, 61], [61, 146], [146, 76], [160, 29], [29, 30], [30, 160], [56, 157], [157, 173], [173, 56], [106, 204], [204, 194], [194, 106], [135, 214], [214, 192], [192, 135], [203, 165], [165, 98], [98, 203], [21, 71], [71, 68], [68, 21], [51, 45], [45, 4], [4, 51], [144, 24], [24, 23], [23, 144], [77, 146], [146, 91], [91, 77], [205, 50], [50, 187], [187, 205], [201, 200], [200, 18], [18, 201], [91, 106], [106, 182], [182, 91], [90, 91], [91, 181], [181, 90], [85, 84], [84, 17], [17, 85], [206, 203], [203, 36], [36, 206], [148, 171], [171, 140], [140, 148], [92, 40], [40, 39], [39, 92], [193, 189], [189, 244], [244, 193], [159, 158], [158, 28], [28, 159], [247, 246], [246, 161], [161, 247], [236, 3], [3, 196], [196, 236], [54, 68], [68, 104], [104, 54], [193, 168], [168, 8], [8, 193], [117, 228], [228, 31], [31, 117], [189, 193], [193, 55], [55, 189], [98, 97], [97, 99], [99, 98], [126, 47], [47, 100], [100, 126], [166, 79], [79, 218], [218, 166], [155, 154], [154, 26], [26, 155], [209, 49], [49, 131], [131, 209], [135, 136], [136, 150], [150, 135], [47, 126], [126, 217], [217, 47], [223, 52], [52, 53], [53, 223], [45, 51], [51, 134], [134, 45], [211, 170], [170, 140], [140, 211], [67, 69], [69, 108], [108, 67], [43, 106], [106, 91], [91, 43], [230, 119], [119, 120], [120, 230], [226, 130], [130, 247], [247, 226], [63, 53], [53, 52], [52, 63], [238, 20], [20, 242], [242, 238], [46, 70], [70, 156], [156, 46], [78, 62], [62, 96], [96, 78], [46, 53], [53, 63], [63, 46], [143, 34], [34, 227], [227, 143], [123, 117], [117, 111], [111, 123], [44, 125], [125, 19], [19, 44], [236, 134], [134, 51], [51, 236], [216, 206], [206, 205], [205, 216], [154, 153], [153, 22], [22, 154], [39, 37], [37, 167], [167, 39], [200, 201], [201, 208], [208, 200], [36, 142], [142, 100], [100, 36], [57, 212], [212, 202], [202, 57], [20, 60], [60, 99], [99, 20], [28, 158], [158, 157], [157, 28], [35, 226], [226, 113], [113, 35], [160, 159], [159, 27], [27, 160], [204, 202], [202, 210], [210, 204], [113, 225], [225, 46], [46, 113], [43, 202], [202, 204], [204, 43], [62, 76], [76, 77], [77, 62], [137, 123], [123, 116], [116, 137], [41, 38], [38, 72], [72, 41], [203, 129], [129, 142], [142, 203], [64, 98], [98, 240], [240, 64], [49, 102], [102, 64], [64, 49], [41, 73], [73, 74], [74, 41], [212, 216], [216, 207], [207, 212], [42, 74], [74, 184], [184, 42], [169, 170], [170, 211], [211, 169], [170, 149], [149, 176], [176, 170], [105, 66], [66, 69], [69, 105], [122, 6], [6, 168], [168, 122], [123, 147], [147, 187], [187, 123], [96, 77], [77, 90], [90, 96], [65, 55], [55, 107], [107, 65], [89, 90], [90, 180], [180, 89], [101, 100], [100, 120], [120, 101], [63, 105], [105, 104], [104, 63], [93, 137], [137, 227], [227, 93], [15, 86], [86, 85], [85, 15], [129, 102], [102, 49], [49, 129], [14, 87], [87, 86], [86, 14], [55, 8], [8, 9], [9, 55], [100, 47], [47, 121], [121, 100], [145, 23], [23, 22], [22, 145], [88, 89], [89, 179], [179, 88], [6, 122], [122, 196], [196, 6], [88, 95], [95, 96], [96, 88], [138, 172], [172, 136], [136, 138], [215, 58], [58, 172], [172, 215], [115, 48], [48, 219], [219, 115], [42, 80], [80, 81], [81, 42], [195, 3], [3, 51], [51, 195], [43, 146], [146, 61], [61, 43], [171, 175], [175, 199], [199, 171], [81, 82], [82, 38], [38, 81], [53, 46], [46, 225], [225, 53], [144, 163], [163, 110], [110, 144], [52, 65], [65, 66], [66, 52], [229, 228], [228, 117], [117, 229], [34, 127], [127, 234], [234, 34], [107, 108], [108, 69], [69, 107], [109, 108], [108, 151], [151, 109], [48, 64], [64, 235], [235, 48], [62, 78], [78, 191], [191, 62], [129, 209], [209, 126], [126, 129], [111, 35], [35, 143], [143, 111], [117, 123], [123, 50], [50, 117], [222, 65], [65, 52], [52, 222], [19, 125], [125, 141], [141, 19], [221, 55], [55, 65], [65, 221], [3, 195], [195, 197], [197, 3], [25, 7], [7, 33], [33, 25], [220, 237], [237, 44], [44, 220], [70, 71], [71, 139], [139, 70], [122, 193], [193, 245], [245, 122], [247, 130], [130, 33], [33, 247], [71, 21], [21, 162], [162, 71], [170, 169], [169, 150], [150, 170], [188, 174], [174, 196], [196, 188], [216, 186], [186, 92], [92, 216], [2, 97], [97, 167], [167, 2], [141, 125], [125, 241], [241, 141], [164, 167], [167, 37], [37, 164], [72, 38], [38, 12], [12, 72], [38, 82], [82, 13], [13, 38], [63, 68], [68, 71], [71, 63], [226, 35], [35, 111], [111, 226], [101, 50], [50, 205], [205, 101], [206, 92], [92, 165], [165, 206], [209, 198], [198, 217], [217, 209], [165, 167], [167, 97], [97, 165], [220, 115], [115, 218], [218, 220], [133, 112], [112, 243], [243, 133], [239, 238], [238, 241], [241, 239], [214, 135], [135, 169], [169, 214], [190, 173], [173, 133], [133, 190], [171, 208], [208, 32], [32, 171], [125, 44], [44, 237], [237, 125], [86, 87], [87, 178], [178, 86], [85, 86], [86, 179], [179, 85], [84, 85], [85, 180], [180, 84], [83, 84], [84, 181], [181, 83], [201, 83], [83, 182], [182, 201], [137, 93], [93, 132], [132, 137], [76, 62], [62, 183], [183, 76], [61, 76], [76, 184], [184, 61], [57, 61], [61, 185], [185, 57], [212, 57], [57, 186], [186, 212], [214, 207], [207, 187], [187, 214], [34, 143], [143, 156], [156, 34], [79, 239], [239, 237], [237, 79], [123, 137], [137, 177], [177, 123], [44, 1], [1, 4], [4, 44], [201, 194], [194, 32], [32, 201], [64, 102], [102, 129], [129, 64], [213, 215], [215, 138], [138, 213], [59, 166], [166, 219], [219, 59], [242, 99], [99, 97], [97, 242], [2, 94], [94, 141], [141, 2], [75, 59], [59, 235], [235, 75], [24, 110], [110, 228], [228, 24], [25, 130], [130, 226], [226, 25], [23, 24], [24, 229], [229, 23], [22, 23], [23, 230], [230, 22], [26, 22], [22, 231], [231, 26], [112, 26], [26, 232], [232, 112], [189, 190], [190, 243], [243, 189], [221, 56], [56, 190], [190, 221], [28, 56], [56, 221], [221, 28], [27, 28], [28, 222], [222, 27], [29, 27], [27, 223], [223, 29], [30, 29], [29, 224], [224, 30], [247, 30], [30, 225], [225, 247], [238, 79], [79, 20], [20, 238], [166, 59], [59, 75], [75, 166], [60, 75], [75, 240], [240, 60], [147, 177], [177, 215], [215, 147], [20, 79], [79, 166], [166, 20], [187, 147], [147, 213], [213, 187], [112, 233], [233, 244], [244, 112], [233, 128], [128, 245], [245, 233], [128, 114], [114, 188], [188, 128], [114, 217], [217, 174], [174, 114], [131, 115], [115, 220], [220, 131], [217, 198], [198, 236], [236, 217], [198, 131], [131, 134], [134, 198], [177, 132], [132, 58], [58, 177], [143, 35], [35, 124], [124, 143], [110, 163], [163, 7], [7, 110], [228, 110], [110, 25], [25, 228], [356, 389], [389, 368], [368, 356], [11, 302], [302, 267], [267, 11], [452, 350], [350, 349], [349, 452], [302, 303], [303, 269], [269, 302], [357, 343], [343, 277], [277, 357], [452, 453], [453, 357], [357, 452], [333, 332], [332, 297], [297, 333], [175, 152], [152, 377], [377, 175], [347, 348], [348, 330], [330, 347], [303, 304], [304, 270], [270, 303], [9, 336], [336, 337], [337, 9], [278, 279], [279, 360], [360, 278], [418, 262], [262, 431], [431, 418], [304, 408], [408, 409], [409, 304], [310, 415], [415, 407], [407, 310], [270, 409], [409, 410], [410, 270], [450, 348], [348, 347], [347, 450], [422, 430], [430, 434], [434, 422], [313, 314], [314, 17], [17, 313], [306, 307], [307, 375], [375, 306], [387, 388], [388, 260], [260, 387], [286, 414], [414, 398], [398, 286], [335, 406], [406, 418], [418, 335], [364, 367], [367, 416], [416, 364], [423, 358], [358, 327], [327, 423], [251, 284], [284, 298], [298, 251], [281, 5], [5, 4], [4, 281], [373, 374], [374, 253], [253, 373], [307, 320], [320, 321], [321, 307], [425, 427], [427, 411], [411, 425], [421, 313], [313, 18], [18, 421], [321, 405], [405, 406], [406, 321], [320, 404], [404, 405], [405, 320], [315, 16], [16, 17], [17, 315], [426, 425], [425, 266], [266, 426], [377, 400], [400, 369], [369, 377], [322, 391], [391, 269], [269, 322], [417, 465], [465, 464], [464, 417], [386, 257], [257, 258], [258, 386], [466, 260], [260, 388], [388, 466], [456, 399], [399, 419], [419, 456], [284, 332], [332, 333], [333, 284], [417, 285], [285, 8], [8, 417], [346, 340], [340, 261], [261, 346], [413, 441], [441, 285], [285, 413], [327, 460], [460, 328], [328, 327], [355, 371], [371, 329], [329, 355], [392, 439], [439, 438], [438, 392], [382, 341], [341, 256], [256, 382], [429, 420], [420, 360], [360, 429], [364, 394], [394, 379], [379, 364], [277, 343], [343, 437], [437, 277], [443, 444], [444, 283], [283, 443], [275, 440], [440, 363], [363, 275], [431, 262], [262, 369], [369, 431], [297, 338], [338, 337], [337, 297], [273, 375], [375, 321], [321, 273], [450, 451], [451, 349], [349, 450], [446, 342], [342, 467], [467, 446], [293, 334], [334, 282], [282, 293], [458, 461], [461, 462], [462, 458], [276, 353], [353, 383], [383, 276], [308, 324], [324, 325], [325, 308], [276, 300], [300, 293], [293, 276], [372, 345], [345, 447], [447, 372], [352, 345], [345, 340], [340, 352], [274, 1], [1, 19], [19, 274], [456, 248], [248, 281], [281, 456], [436, 427], [427, 425], [425, 436], [381, 256], [256, 252], [252, 381], [269, 391], [391, 393], [393, 269], [200, 199], [199, 428], [428, 200], [266, 330], [330, 329], [329, 266], [287, 273], [273, 422], [422, 287], [250, 462], [462, 328], [328, 250], [258, 286], [286, 384], [384, 258], [265, 353], [353, 342], [342, 265], [387, 259], [259, 257], [257, 387], [424, 431], [431, 430], [430, 424], [342, 353], [353, 276], [276, 342], [273, 335], [335, 424], [424, 273], [292, 325], [325, 307], [307, 292], [366, 447], [447, 345], [345, 366], [271, 303], [303, 302], [302, 271], [423, 266], [266, 371], [371, 423], [294, 455], [455, 460], [460, 294], [279, 278], [278, 294], [294, 279], [271, 272], [272, 304], [304, 271], [432, 434], [434, 427], [427, 432], [272, 407], [407, 408], [408, 272], [394, 430], [430, 431], [431, 394], [395, 369], [369, 400], [400, 395], [334, 333], [333, 299], [299, 334], [351, 417], [417, 168], [168, 351], [352, 280], [280, 411], [411, 352], [325, 319], [319, 320], [320, 325], [295, 296], [296, 336], [336, 295], [319, 403], [403, 404], [404, 319], [330, 348], [348, 349], [349, 330], [293, 298], [298, 333], [333, 293], [323, 454], [454, 447], [447, 323], [15, 16], [16, 315], [315, 15], [358, 429], [429, 279], [279, 358], [14, 15], [15, 316], [316, 14], [285, 336], [336, 9], [9, 285], [329, 349], [349, 350], [350, 329], [374, 380], [380, 252], [252, 374], [318, 402], [402, 403], [403, 318], [6, 197], [197, 419], [419, 6], [318, 319], [319, 325], [325, 318], [367, 364], [364, 365], [365, 367], [435, 367], [367, 397], [397, 435], [344, 438], [438, 439], [439, 344], [272, 271], [271, 311], [311, 272], [195, 5], [5, 281], [281, 195], [273, 287], [287, 291], [291, 273], [396, 428], [428, 199], [199, 396], [311, 271], [271, 268], [268, 311], [283, 444], [444, 445], [445, 283], [373, 254], [254, 339], [339, 373], [282, 334], [334, 296], [296, 282], [449, 347], [347, 346], [346, 449], [264, 447], [447, 454], [454, 264], [336, 296], [296, 299], [299, 336], [338, 10], [10, 151], [151, 338], [278, 439], [439, 455], [455, 278], [292, 407], [407, 415], [415, 292], [358, 371], [371, 355], [355, 358], [340, 345], [345, 372], [372, 340], [346, 347], [347, 280], [280, 346], [442, 443], [443, 282], [282, 442], [19, 94], [94, 370], [370, 19], [441, 442], [442, 295], [295, 441], [248, 419], [419, 197], [197, 248], [263, 255], [255, 359], [359, 263], [440, 275], [275, 274], [274, 440], [300, 383], [383, 368], [368, 300], [351, 412], [412, 465], [465, 351], [263, 467], [467, 466], [466, 263], [301, 368], [368, 389], [389, 301], [395, 378], [378, 379], [379, 395], [412, 351], [351, 419], [419, 412], [436, 426], [426, 322], [322, 436], [2, 164], [164, 393], [393, 2], [370, 462], [462, 461], [461, 370], [164, 0], [0, 267], [267, 164], [302, 11], [11, 12], [12, 302], [268, 12], [12, 13], [13, 268], [293, 300], [300, 301], [301, 293], [446, 261], [261, 340], [340, 446], [330, 266], [266, 425], [425, 330], [426, 423], [423, 391], [391, 426], [429, 355], [355, 437], [437, 429], [391, 327], [327, 326], [326, 391], [440, 457], [457, 438], [438, 440], [341, 382], [382, 362], [362, 341], [459, 457], [457, 461], [461, 459], [434, 430], [430, 394], [394, 434], [414, 463], [463, 362], [362, 414], [396, 369], [369, 262], [262, 396], [354, 461], [461, 457], [457, 354], [316, 403], [403, 402], [402, 316], [315, 404], [404, 403], [403, 315], [314, 405], [405, 404], [404, 314], [313, 406], [406, 405], [405, 313], [421, 418], [418, 406], [406, 421], [366, 401], [401, 361], [361, 366], [306, 408], [408, 407], [407, 306], [291, 409], [409, 408], [408, 291], [287, 410], [410, 409], [409, 287], [432, 436], [436, 410], [410, 432], [434, 416], [416, 411], [411, 434], [264, 368], [368, 383], [383, 264], [309, 438], [438, 457], [457, 309], [352, 376], [376, 401], [401, 352], [274, 275], [275, 4], [4, 274], [421, 428], [428, 262], [262, 421], [294, 327], [327, 358], [358, 294], [433, 416], [416, 367], [367, 433], [289, 455], [455, 439], [439, 289], [462, 370], [370, 326], [326, 462], [2, 326], [326, 370], [370, 2], [305, 460], [460, 455], [455, 305], [254, 449], [449, 448], [448, 254], [255, 261], [261, 446], [446, 255], [253, 450], [450, 449], [449, 253], [252, 451], [451, 450], [450, 252], [256, 452], [452, 451], [451, 256], [341, 453], [453, 452], [452, 341], [413, 464], [464, 463], [463, 413], [441, 413], [413, 414], [414, 441], [258, 442], [442, 441], [441, 258], [257, 443], [443, 442], [442, 257], [259, 444], [444, 443], [443, 259], [260, 445], [445, 444], [444, 260], [467, 342], [342, 445], [445, 467], [459, 458], [458, 250], [250, 459], [289, 392], [392, 290], [290, 289], [290, 328], [328, 460], [460, 290], [376, 433], [433, 435], [435, 376], [250, 290], [290, 392], [392, 250], [411, 416], [416, 433], [433, 411], [341, 463], [463, 464], [464, 341], [453, 464], [464, 465], [465, 453], [357, 465], [465, 412], [412, 357], [343, 412], [412, 399], [399, 343], [360, 363], [363, 440], [440, 360], [437, 399], [399, 456], [456, 437], [420, 456], [456, 363], [363, 420], [401, 435], [435, 288], [288, 401], [372, 383], [383, 353], [353, 372], [339, 255], [255, 249], [249, 339], [448, 261], [261, 255], [255, 448], [133, 243], [243, 190], [190, 133], [133, 155], [155, 112], [112, 133], [33, 246], [246, 247], [247, 33], [33, 130], [130, 25], [25, 33], [398, 384], [384, 286], [286, 398], [362, 398], [398, 414], [414, 362], [362, 463], [463, 341], [341, 362], [263, 359], [359, 467], [467, 263], [263, 249], [249, 255], [255, 263], [466, 467], [467, 260], [260, 466], [75, 60], [60, 166], [166, 75], [238, 239], [239, 79], [79, 238], [162, 127], [127, 139], [139, 162], [72, 11], [11, 37], [37, 72], [121, 232], [232, 120], [120, 121], [73, 72], [72, 39], [39, 73], [114, 128], [128, 47], [47, 114], [233, 232], [232, 128], [128, 233], [103, 104], [104, 67], [67, 103], [152, 175], [175, 148], [148, 152], [119, 118], [118, 101], [101, 119], [74, 73], [73, 40], [40, 74], [107, 9], [9, 108], [108, 107], [49, 48], [48, 131], [131, 49], [32, 194], [194, 211], [211, 32], [184, 74], [74, 185], [185, 184], [191, 80], [80, 183], [183, 191], [185, 40], [40, 186], [186, 185], [119, 230], [230, 118], [118, 119], [210, 202], [202, 214], [214, 210], [84, 83], [83, 17], [17, 84], [77, 76], [76, 146], [146, 77], [161, 160], [160, 30], [30, 161], [190, 56], [56, 173], [173, 190], [182, 106], [106, 194], [194, 182], [138, 135], [135, 192], [192, 138], [129, 203], [203, 98], [98, 129], [54, 21], [21, 68], [68, 54], [5, 51], [51, 4], [4, 5], [145, 144], [144, 23], [23, 145], [90, 77], [77, 91], [91, 90], [207, 205], [205, 187], [187, 207], [83, 201], [201, 18], [18, 83], [181, 91], [91, 182], [182, 181], [180, 90], [90, 181], [181, 180], [16, 85], [85, 17], [17, 16], [205, 206], [206, 36], [36, 205], [176, 148], [148, 140], [140, 176], [165, 92], [92, 39], [39, 165], [245, 193], [193, 244], [244, 245], [27, 159], [159, 28], [28, 27], [30, 247], [247, 161], [161, 30], [174, 236], [236, 196], [196, 174], [103, 54], [54, 104], [104, 103], [55, 193], [193, 8], [8, 55], [111, 117], [117, 31], [31, 111], [221, 189], [189, 55], [55, 221], [240, 98], [98, 99], [99, 240], [142, 126], [126, 100], [100, 142], [219, 166], [166, 218], [218, 219], [112, 155], [155, 26], [26, 112], [198, 209], [209, 131], [131, 198], [169, 135], [135, 150], [150, 169], [114, 47], [47, 217], [217, 114], [224, 223], [223, 53], [53, 224], [220, 45], [45, 134], [134, 220], [32, 211], [211, 140], [140, 32], [109, 67], [67, 108], [108, 109], [146, 43], [43, 91], [91, 146], [231, 230], [230, 120], [120, 231], [113, 226], [226, 247], [247, 113], [105, 63], [63, 52], [52, 105], [241, 238], [238, 242], [242, 241], [124, 46], [46, 156], [156, 124], [95, 78], [78, 96], [96, 95], [70, 46], [46, 63], [63, 70], [116, 143], [143, 227], [227, 116], [116, 123], [123, 111], [111, 116], [1, 44], [44, 19], [19, 1], [3, 236], [236, 51], [51, 3], [207, 216], [216, 205], [205, 207], [26, 154], [154, 22], [22, 26], [165, 39], [39, 167], [167, 165], [199, 200], [200, 208], [208, 199], [101, 36], [36, 100], [100, 101], [43, 57], [57, 202], [202, 43], [242, 20], [20, 99], [99, 242], [56, 28], [28, 157], [157, 56], [124, 35], [35, 113], [113, 124], [29, 160], [160, 27], [27, 29], [211, 204], [204, 210], [210, 211], [124, 113], [113, 46], [46, 124], [106, 43], [43, 204], [204, 106], [96, 62], [62, 77], [77, 96], [227, 137], [137, 116], [116, 227], [73, 41], [41, 72], [72, 73], [36, 203], [203, 142], [142, 36], [235, 64], [64, 240], [240, 235], [48, 49], [49, 64], [64, 48], [42, 41], [41, 74], [74, 42], [214, 212], [212, 207], [207, 214], [183, 42], [42, 184], [184, 183], [210, 169], [169, 211], [211, 210], [140, 170], [170, 176], [176, 140], [104, 105], [105, 69], [69, 104], [193, 122], [122, 168], [168, 193], [50, 123], [123, 187], [187, 50], [89, 96], [96, 90], [90, 89], [66, 65], [65, 107], [107, 66], [179, 89], [89, 180], [180, 179], [119, 101], [101, 120], [120, 119], [68, 63], [63, 104], [104, 68], [234, 93], [93, 227], [227, 234], [16, 15], [15, 85], [85, 16], [209, 129], [129, 49], [49, 209], [15, 14], [14, 86], [86, 15], [107, 55], [55, 9], [9, 107], [120, 100], [100, 121], [121, 120], [153, 145], [145, 22], [22, 153], [178, 88], [88, 179], [179, 178], [197, 6], [6, 196], [196, 197], [89, 88], [88, 96], [96, 89], [135, 138], [138, 136], [136, 135], [138, 215], [215, 172], [172, 138], [218, 115], [115, 219], [219, 218], [41, 42], [42, 81], [81, 41], [5, 195], [195, 51], [51, 5], [57, 43], [43, 61], [61, 57], [208, 171], [171, 199], [199, 208], [41, 81], [81, 38], [38, 41], [224, 53], [53, 225], [225, 224], [24, 144], [144, 110], [110, 24], [105, 52], [52, 66], [66, 105], [118, 229], [229, 117], [117, 118], [227, 34], [34, 234], [234, 227], [66, 107], [107, 69], [69, 66], [10, 109], [109, 151], [151, 10], [219, 48], [48, 235], [235, 219], [183, 62], [62, 191], [191, 183], [142, 129], [129, 126], [126, 142], [116, 111], [111, 143], [143, 116], [118, 117], [117, 50], [50, 118], [223, 222], [222, 52], [52, 223], [94, 19], [19, 141], [141, 94], [222, 221], [221, 65], [65, 222], [196, 3], [3, 197], [197, 196], [45, 220], [220, 44], [44, 45], [156, 70], [70, 139], [139, 156], [188, 122], [122, 245], [245, 188], [139, 71], [71, 162], [162, 139], [149, 170], [170, 150], [150, 149], [122, 188], [188, 196], [196, 122], [206, 216], [216, 92], [92, 206], [164, 2], [2, 167], [167, 164], [242, 141], [141, 241], [241, 242], [0, 164], [164, 37], [37, 0], [11, 72], [72, 12], [12, 11], [12, 38], [38, 13], [13, 12], [70, 63], [63, 71], [71, 70], [31, 226], [226, 111], [111, 31], [36, 101], [101, 205], [205, 36], [203, 206], [206, 165], [165, 203], [126, 209], [209, 217], [217, 126], [98, 165], [165, 97], [97, 98], [237, 220], [220, 218], [218, 237], [237, 239], [239, 241], [241, 237], [210, 214], [214, 169], [169, 210], [140, 171], [171, 32], [32, 140], [241, 125], [125, 237], [237, 241], [179, 86], [86, 178], [178, 179], [180, 85], [85, 179], [179, 180], [181, 84], [84, 180], [180, 181], [182, 83], [83, 181], [181, 182], [194, 201], [201, 182], [182, 194], [177, 137], [137, 132], [132, 177], [184, 76], [76, 183], [183, 184], [185, 61], [61, 184], [184, 185], [186, 57], [57, 185], [185, 186], [216, 212], [212, 186], [186, 216], [192, 214], [214, 187], [187, 192], [139, 34], [34, 156], [156, 139], [218, 79], [79, 237], [237, 218], [147, 123], [123, 177], [177, 147], [45, 44], [44, 4], [4, 45], [208, 201], [201, 32], [32, 208], [98, 64], [64, 129], [129, 98], [192, 213], [213, 138], [138, 192], [235, 59], [59, 219], [219, 235], [141, 242], [242, 97], [97, 141], [97, 2], [2, 141], [141, 97], [240, 75], [75, 235], [235, 240], [229, 24], [24, 228], [228, 229], [31, 25], [25, 226], [226, 31], [230, 23], [23, 229], [229, 230], [231, 22], [22, 230], [230, 231], [232, 26], [26, 231], [231, 232], [233, 112], [112, 232], [232, 233], [244, 189], [189, 243], [243, 244], [189, 221], [221, 190], [190, 189], [222, 28], [28, 221], [221, 222], [223, 27], [27, 222], [222, 223], [224, 29], [29, 223], [223, 224], [225, 30], [30, 224], [224, 225], [113, 247], [247, 225], [225, 113], [99, 60], [60, 240], [240, 99], [213, 147], [147, 215], [215, 213], [60, 20], [20, 166], [166, 60], [192, 187], [187, 213], [213, 192], [243, 112], [112, 244], [244, 243], [244, 233], [233, 245], [245, 244], [245, 128], [128, 188], [188, 245], [188, 114], [114, 174], [174, 188], [134, 131], [131, 220], [220, 134], [174, 217], [217, 236], [236, 174], [236, 198], [198, 134], [134, 236], [215, 177], [177, 58], [58, 215], [156, 143], [143, 124], [124, 156], [25, 110], [110, 7], [7, 25], [31, 228], [228, 25], [25, 31], [264, 356], [356, 368], [368, 264], [0, 11], [11, 267], [267, 0], [451, 452], [452, 349], [349, 451], [267, 302], [302, 269], [269, 267], [350, 357], [357, 277], [277, 350], [350, 452], [452, 357], [357, 350], [299, 333], [333, 297], [297, 299], [396, 175], [175, 377], [377, 396], [280, 347], [347, 330], [330, 280], [269, 303], [303, 270], [270, 269], [151, 9], [9, 337], [337, 151], [344, 278], [278, 360], [360, 344], [424, 418], [418, 431], [431, 424], [270, 304], [304, 409], [409, 270], [272, 310], [310, 407], [407, 272], [322, 270], [270, 410], [410, 322], [449, 450], [450, 347], [347, 449], [432, 422], [422, 434], [434, 432], [18, 313], [313, 17], [17, 18], [291, 306], [306, 375], [375, 291], [259, 387], [387, 260], [260, 259], [424, 335], [335, 418], [418, 424], [434, 364], [364, 416], [416, 434], [391, 423], [423, 327], [327, 391], [301, 251], [251, 298], [298, 301], [275, 281], [281, 4], [4, 275], [254, 373], [373, 253], [253, 254], [375, 307], [307, 321], [321, 375], [280, 425], [425, 411], [411, 280], [200, 421], [421, 18], [18, 200], [335, 321], [321, 406], [406, 335], [321, 320], [320, 405], [405, 321], [314, 315], [315, 17], [17, 314], [423, 426], [426, 266], [266, 423], [396, 377], [377, 369], [369, 396], [270, 322], [322, 269], [269, 270], [413, 417], [417, 464], [464, 413], [385, 386], [386, 258], [258, 385], [248, 456], [456, 419], [419, 248], [298, 284], [284, 333], [333, 298], [168, 417], [417, 8], [8, 168], [448, 346], [346, 261], [261, 448], [417, 413], [413, 285], [285, 417], [326, 327], [327, 328], [328, 326], [277, 355], [355, 329], [329, 277], [309, 392], [392, 438], [438, 309], [381, 382], [382, 256], [256, 381], [279, 429], [429, 360], [360, 279], [365, 364], [364, 379], [379, 365], [355, 277], [277, 437], [437, 355], [282, 443], [443, 283], [283, 282], [281, 275], [275, 363], [363, 281], [395, 431], [431, 369], [369, 395], [299, 297], [297, 337], [337, 299], [335, 273], [273, 321], [321, 335], [348, 450], [450, 349], [349, 348], [359, 446], [446, 467], [467, 359], [283, 293], [293, 282], [282, 283], [250, 458], [458, 462], [462, 250], [300, 276], [276, 383], [383, 300], [292, 308], [308, 325], [325, 292], [283, 276], [276, 293], [293, 283], [264, 372], [372, 447], [447, 264], [346, 352], [352, 340], [340, 346], [354, 274], [274, 19], [19, 354], [363, 456], [456, 281], [281, 363], [426, 436], [436, 425], [425, 426], [380, 381], [381, 252], [252, 380], [267, 269], [269, 393], [393, 267], [421, 200], [200, 428], [428, 421], [371, 266], [266, 329], [329, 371], [432, 287], [287, 422], [422, 432], [290, 250], [250, 328], [328, 290], [385, 258], [258, 384], [384, 385], [446, 265], [265, 342], [342, 446], [386, 387], [387, 257], [257, 386], [422, 424], [424, 430], [430, 422], [445, 342], [342, 276], [276, 445], [422, 273], [273, 424], [424, 422], [306, 292], [292, 307], [307, 306], [352, 366], [366, 345], [345, 352], [268, 271], [271, 302], [302, 268], [358, 423], [423, 371], [371, 358], [327, 294], [294, 460], [460, 327], [331, 279], [279, 294], [294, 331], [303, 271], [271, 304], [304, 303], [436, 432], [432, 427], [427, 436], [304, 272], [272, 408], [408, 304], [395, 394], [394, 431], [431, 395], [378, 395], [395, 400], [400, 378], [296, 334], [334, 299], [299, 296], [6, 351], [351, 168], [168, 6], [376, 352], [352, 411], [411, 376], [307, 325], [325, 320], [320, 307], [285, 295], [295, 336], [336, 285], [320, 319], [319, 404], [404, 320], [329, 330], [330, 349], [349, 329], [334, 293], [293, 333], [333, 334], [366, 323], [323, 447], [447, 366], [316, 15], [15, 315], [315, 316], [331, 358], [358, 279], [279, 331], [317, 14], [14, 316], [316, 317], [8, 285], [285, 9], [9, 8], [277, 329], [329, 350], [350, 277], [253, 374], [374, 252], [252, 253], [319, 318], [318, 403], [403, 319], [351, 6], [6, 419], [419, 351], [324, 318], [318, 325], [325, 324], [397, 367], [367, 365], [365, 397], [288, 435], [435, 397], [397, 288], [278, 344], [344, 439], [439, 278], [310, 272], [272, 311], [311, 310], [248, 195], [195, 281], [281, 248], [375, 273], [273, 291], [291, 375], [175, 396], [396, 199], [199, 175], [312, 311], [311, 268], [268, 312], [276, 283], [283, 445], [445, 276], [390, 373], [373, 339], [339, 390], [295, 282], [282, 296], [296, 295], [448, 449], [449, 346], [346, 448], [356, 264], [264, 454], [454, 356], [337, 336], [336, 299], [299, 337], [337, 338], [338, 151], [151, 337], [294, 278], [278, 455], [455, 294], [308, 292], [292, 415], [415, 308], [429, 358], [358, 355], [355, 429], [265, 340], [340, 372], [372, 265], [352, 346], [346, 280], [280, 352], [295, 442], [442, 282], [282, 295], [354, 19], [19, 370], [370, 354], [285, 441], [441, 295], [295, 285], [195, 248], [248, 197], [197, 195], [457, 440], [440, 274], [274, 457], [301, 300], [300, 368], [368, 301], [417, 351], [351, 465], [465, 417], [251, 301], [301, 389], [389, 251], [394, 395], [395, 379], [379, 394], [399, 412], [412, 419], [419, 399], [410, 436], [436, 322], [322, 410], [326, 2], [2, 393], [393, 326], [354, 370], [370, 461], [461, 354], [393, 164], [164, 267], [267, 393], [268, 302], [302, 12], [12, 268], [312, 268], [268, 13], [13, 312], [298, 293], [293, 301], [301, 298], [265, 446], [446, 340], [340, 265], [280, 330], [330, 425], [425, 280], [322, 426], [426, 391], [391, 322], [420, 429], [429, 437], [437, 420], [393, 391], [391, 326], [326, 393], [344, 440], [440, 438], [438, 344], [458, 459], [459, 461], [461, 458], [364, 434], [434, 394], [394, 364], [428, 396], [396, 262], [262, 428], [274, 354], [354, 457], [457, 274], [317, 316], [316, 402], [402, 317], [316, 315], [315, 403], [403, 316], [315, 314], [314, 404], [404, 315], [314, 313], [313, 405], [405, 314], [313, 421], [421, 406], [406, 313], [323, 366], [366, 361], [361, 323], [292, 306], [306, 407], [407, 292], [306, 291], [291, 408], [408, 306], [291, 287], [287, 409], [409, 291], [287, 432], [432, 410], [410, 287], [427, 434], [434, 411], [411, 427], [372, 264], [264, 383], [383, 372], [459, 309], [309, 457], [457, 459], [366, 352], [352, 401], [401, 366], [1, 274], [274, 4], [4, 1], [418, 421], [421, 262], [262, 418], [331, 294], [294, 358], [358, 331], [435, 433], [433, 367], [367, 435], [392, 289], [289, 439], [439, 392], [328, 462], [462, 326], [326, 328], [94, 2], [2, 370], [370, 94], [289, 305], [305, 455], [455, 289], [339, 254], [254, 448], [448, 339], [359, 255], [255, 446], [446, 359], [254, 253], [253, 449], [449, 254], [253, 252], [252, 450], [450, 253], [252, 256], [256, 451], [451, 252], [256, 341], [341, 452], [452, 256], [414, 413], [413, 463], [463, 414], [286, 441], [441, 414], [414, 286], [286, 258], [258, 441], [441, 286], [258, 257], [257, 442], [442, 258], [257, 259], [259, 443], [443, 257], [259, 260], [260, 444], [444, 259], [260, 467], [467, 445], [445, 260], [309, 459], [459, 250], [250, 309], [305, 289], [289, 290], [290, 305], [305, 290], [290, 460], [460, 305], [401, 376], [376, 435], [435, 401], [309, 250], [250, 392], [392, 309], [376, 411], [411, 433], [433, 376], [453, 341], [341, 464], [464, 453], [357, 453], [453, 465], [465, 357], [343, 357], [357, 412], [412, 343], [437, 343], [343, 399], [399, 437], [344, 360], [360, 440], [440, 344], [420, 437], [437, 456], [456, 420], [360, 420], [420, 363], [363, 360], [361, 401], [401, 288], [288, 361], [265, 372], [372, 353], [353, 265], [390, 339], [339, 249], [249, 390], [339, 448], [448, 255], [255, 339]);
|
|
2969
2969
|
function zi(e) {
|
|
2970
2970
|
e.j = { faceLandmarks: [], faceBlendshapes: [], facialTransformationMatrixes: [] };
|
|
2971
2971
|
}
|
|
2972
2972
|
var $ = class extends le {
|
|
2973
2973
|
constructor(e, t) {
|
|
2974
|
-
super(new we(e, t), "image_in", "norm_rect", !1), this.j = { faceLandmarks: [], faceBlendshapes: [], facialTransformationMatrixes: [] }, this.outputFacialTransformationMatrixes = this.outputFaceBlendshapes = !1,
|
|
2974
|
+
super(new we(e, t), "image_in", "norm_rect", !1), this.j = { faceLandmarks: [], faceBlendshapes: [], facialTransformationMatrixes: [] }, this.outputFacialTransformationMatrixes = this.outputFaceBlendshapes = !1, v(e = this.h = new za(), 0, 1, t = new O()), this.A = new Ha(), v(this.h, 0, 3, this.A), this.u = new os(), v(this.h, 0, 2, this.u), Be(this.u, 4, 1), y(this.u, 2, 0.5), y(this.A, 2, 0.5), y(this.h, 4, 0.5);
|
|
2975
2975
|
}
|
|
2976
2976
|
get baseOptions() {
|
|
2977
2977
|
return A(this.h, O, 1);
|
|
2978
2978
|
}
|
|
2979
2979
|
set baseOptions(e) {
|
|
2980
|
-
|
|
2980
|
+
v(this.h, 0, 1, e);
|
|
2981
2981
|
}
|
|
2982
2982
|
o(e) {
|
|
2983
2983
|
return "numFaces" in e && Be(this.u, 4, e.numFaces ?? 1), "minFaceDetectionConfidence" in e && y(this.u, 2, e.minFaceDetectionConfidence ?? 0.5), "minTrackingConfidence" in e && y(this.h, 4, e.minTrackingConfidence ?? 0.5), "minFacePresenceConfidence" in e && y(this.A, 2, e.minFacePresenceConfidence ?? 0.5), "outputFaceBlendshapes" in e && (this.outputFaceBlendshapes = !!e.outputFaceBlendshapes), "outputFacialTransformationMatrixes" in e && (this.outputFacialTransformationMatrixes = !!e.outputFacialTransformationMatrixes), this.l(e);
|
|
@@ -2992,23 +2992,23 @@ var $ = class extends le {
|
|
|
2992
2992
|
var e = new fe();
|
|
2993
2993
|
x(e, "image_in"), x(e, "norm_rect"), E(e, "face_landmarks");
|
|
2994
2994
|
const t = new de();
|
|
2995
|
-
Me(t,
|
|
2995
|
+
Me(t, gu, this.h);
|
|
2996
2996
|
const r = new ee();
|
|
2997
|
-
he(r, 2, "mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"),
|
|
2997
|
+
he(r, 2, "mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), _(r, "NORM_LANDMARKS:face_landmarks"), r.o(t), be(e, r), this.g.attachProtoVectorListener("face_landmarks", ((s, n) => {
|
|
2998
2998
|
for (const i of s) s = Er(i), this.j.faceLandmarks.push(as(s));
|
|
2999
|
-
|
|
2999
|
+
f(this, n);
|
|
3000
3000
|
})), this.g.attachEmptyPacketListener("face_landmarks", ((s) => {
|
|
3001
|
-
|
|
3001
|
+
f(this, s);
|
|
3002
3002
|
})), this.outputFaceBlendshapes && (E(e, "blendshapes"), _(r, "BLENDSHAPES:blendshapes"), this.g.attachProtoVectorListener("blendshapes", ((s, n) => {
|
|
3003
3003
|
if (this.outputFaceBlendshapes) for (const i of s) s = is(i), this.j.faceBlendshapes.push(Bn(s.g() ?? []));
|
|
3004
|
-
|
|
3004
|
+
f(this, n);
|
|
3005
3005
|
})), this.g.attachEmptyPacketListener("blendshapes", ((s) => {
|
|
3006
|
-
|
|
3006
|
+
f(this, s);
|
|
3007
3007
|
}))), this.outputFacialTransformationMatrixes && (E(e, "face_geometry"), _(r, "FACE_GEOMETRY:face_geometry"), this.g.attachProtoVectorListener("face_geometry", ((s, n) => {
|
|
3008
|
-
if (this.outputFacialTransformationMatrixes) for (const i of s) (s = A(s =
|
|
3009
|
-
|
|
3008
|
+
if (this.outputFacialTransformationMatrixes) for (const i of s) (s = A(s = pu(i), iu, 2)) && this.j.facialTransformationMatrixes.push({ rows: me(s, 1) ?? 0 ?? 0, columns: me(s, 2) ?? 0 ?? 0, data: rt(s, 3, Te, tt()).slice() ?? [] });
|
|
3009
|
+
f(this, n);
|
|
3010
3010
|
})), this.g.attachEmptyPacketListener("face_geometry", ((s) => {
|
|
3011
|
-
|
|
3011
|
+
f(this, s);
|
|
3012
3012
|
}))), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
3013
3013
|
}
|
|
3014
3014
|
};
|
|
@@ -3018,7 +3018,7 @@ $.prototype.detectForVideo = $.prototype.G, $.prototype.detect = $.prototype.F,
|
|
|
3018
3018
|
return w($, e, { baseOptions: { modelAssetBuffer: t } });
|
|
3019
3019
|
}, $.createFromOptions = function(e, t) {
|
|
3020
3020
|
return w($, e, t);
|
|
3021
|
-
}, $.FACE_LANDMARKS_LIPS = jn, $.FACE_LANDMARKS_LEFT_EYE = Vn, $.FACE_LANDMARKS_LEFT_EYEBROW = Gn, $.FACE_LANDMARKS_LEFT_IRIS =
|
|
3021
|
+
}, $.FACE_LANDMARKS_LIPS = jn, $.FACE_LANDMARKS_LEFT_EYE = Vn, $.FACE_LANDMARKS_LEFT_EYEBROW = Gn, $.FACE_LANDMARKS_LEFT_IRIS = _c, $.FACE_LANDMARKS_RIGHT_EYE = Hn, $.FACE_LANDMARKS_RIGHT_EYEBROW = zn, $.FACE_LANDMARKS_RIGHT_IRIS = wc, $.FACE_LANDMARKS_FACE_OVAL = Wn, $.FACE_LANDMARKS_CONTOURS = Ac, $.FACE_LANDMARKS_TESSELATION = Ec;
|
|
3022
3022
|
var Kn = _e([0, 1], [1, 2], [2, 3], [3, 4], [0, 5], [5, 6], [6, 7], [7, 8], [5, 9], [9, 10], [10, 11], [11, 12], [9, 13], [13, 14], [14, 15], [15, 16], [13, 17], [0, 17], [17, 18], [18, 19], [19, 20]);
|
|
3023
3023
|
function Wi(e) {
|
|
3024
3024
|
e.gestures = [], e.landmarks = [], e.worldLandmarks = [], e.handedness = [];
|
|
@@ -3031,28 +3031,28 @@ function qi(e, t = !0) {
|
|
|
3031
3031
|
for (const n of e) {
|
|
3032
3032
|
var s = is(n);
|
|
3033
3033
|
e = [];
|
|
3034
|
-
for (const i of s.g()) s = t &&
|
|
3034
|
+
for (const i of s.g()) s = t && me(i, 1) != null ? me(i, 1) ?? 0 : -1, e.push({ score: I(i, 2) ?? 0, index: s, categoryName: Y(L(i, 3)) ?? "" ?? "", displayName: Y(L(i, 4)) ?? "" ?? "" });
|
|
3035
3035
|
r.push(e);
|
|
3036
3036
|
}
|
|
3037
3037
|
return r;
|
|
3038
3038
|
}
|
|
3039
3039
|
var te = class extends le {
|
|
3040
3040
|
constructor(e, t) {
|
|
3041
|
-
super(new we(e, t), "image_in", "norm_rect", !1), this.gestures = [], this.landmarks = [], this.worldLandmarks = [], this.handedness = [],
|
|
3041
|
+
super(new we(e, t), "image_in", "norm_rect", !1), this.gestures = [], this.landmarks = [], this.worldLandmarks = [], this.handedness = [], v(e = this.j = new qa(), 0, 1, t = new O()), this.u = new On(), v(this.j, 0, 2, this.u), this.D = new $n(), v(this.u, 0, 3, this.D), this.A = new Ka(), v(this.u, 0, 2, this.A), this.h = new mu(), v(this.j, 0, 3, this.h), y(this.A, 2, 0.5), y(this.u, 4, 0.5), y(this.D, 2, 0.5);
|
|
3042
3042
|
}
|
|
3043
3043
|
get baseOptions() {
|
|
3044
3044
|
return A(this.j, O, 1);
|
|
3045
3045
|
}
|
|
3046
3046
|
set baseOptions(e) {
|
|
3047
|
-
|
|
3047
|
+
v(this.j, 0, 1, e);
|
|
3048
3048
|
}
|
|
3049
3049
|
o(e) {
|
|
3050
3050
|
var n, i, o, a;
|
|
3051
3051
|
if (Be(this.A, 3, e.numHands ?? 1), "minHandDetectionConfidence" in e && y(this.A, 2, e.minHandDetectionConfidence ?? 0.5), "minTrackingConfidence" in e && y(this.u, 4, e.minTrackingConfidence ?? 0.5), "minHandPresenceConfidence" in e && y(this.D, 2, e.minHandPresenceConfidence ?? 0.5), e.cannedGesturesClassifierOptions) {
|
|
3052
3052
|
var t = new vt(), r = t, s = Us(e.cannedGesturesClassifierOptions, (n = A(this.h, vt, 3)) == null ? void 0 : n.l());
|
|
3053
|
-
|
|
3053
|
+
v(r, 0, 2, s), v(this.h, 0, 3, t);
|
|
3054
3054
|
} else e.cannedGesturesClassifierOptions === void 0 && ((i = A(this.h, vt, 3)) == null || i.g());
|
|
3055
|
-
return e.customGesturesClassifierOptions ? (
|
|
3055
|
+
return e.customGesturesClassifierOptions ? (v(r = t = new vt(), 0, 2, s = Us(e.customGesturesClassifierOptions, (o = A(this.h, vt, 4)) == null ? void 0 : o.l())), v(this.h, 0, 4, t)) : e.customGesturesClassifierOptions === void 0 && ((a = A(this.h, vt, 4)) == null || a.g()), this.l(e);
|
|
3056
3056
|
}
|
|
3057
3057
|
Ha(e, t) {
|
|
3058
3058
|
return Wi(this), Ae(this, e, t), Ki(this);
|
|
@@ -3064,36 +3064,36 @@ var te = class extends le {
|
|
|
3064
3064
|
var e = new fe();
|
|
3065
3065
|
x(e, "image_in"), x(e, "norm_rect"), E(e, "hand_gestures"), E(e, "hand_landmarks"), E(e, "world_hand_landmarks"), E(e, "handedness");
|
|
3066
3066
|
const t = new de();
|
|
3067
|
-
Me(t,
|
|
3067
|
+
Me(t, yu, this.j);
|
|
3068
3068
|
const r = new ee();
|
|
3069
|
-
he(r, 2, "mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"),
|
|
3069
|
+
he(r, 2, "mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), _(r, "HAND_GESTURES:hand_gestures"), _(r, "LANDMARKS:hand_landmarks"), _(r, "WORLD_LANDMARKS:world_hand_landmarks"), _(r, "HANDEDNESS:handedness"), r.o(t), be(e, r), this.g.attachProtoVectorListener("hand_landmarks", ((s, n) => {
|
|
3070
3070
|
for (const i of s) {
|
|
3071
3071
|
s = Er(i);
|
|
3072
3072
|
const o = [];
|
|
3073
|
-
for (const a of Ne(s,
|
|
3073
|
+
for (const a of Ne(s, Ua, 1)) o.push({ x: I(a, 1) ?? 0, y: I(a, 2) ?? 0, z: I(a, 3) ?? 0, visibility: I(a, 4) ?? 0 });
|
|
3074
3074
|
this.landmarks.push(o);
|
|
3075
3075
|
}
|
|
3076
|
-
|
|
3076
|
+
f(this, n);
|
|
3077
3077
|
})), this.g.attachEmptyPacketListener("hand_landmarks", ((s) => {
|
|
3078
|
-
|
|
3078
|
+
f(this, s);
|
|
3079
3079
|
})), this.g.attachProtoVectorListener("world_hand_landmarks", ((s, n) => {
|
|
3080
3080
|
for (const i of s) {
|
|
3081
3081
|
s = Et(i);
|
|
3082
3082
|
const o = [];
|
|
3083
|
-
for (const a of Ne(s,
|
|
3083
|
+
for (const a of Ne(s, Ba, 1)) o.push({ x: I(a, 1) ?? 0, y: I(a, 2) ?? 0, z: I(a, 3) ?? 0, visibility: I(a, 4) ?? 0 });
|
|
3084
3084
|
this.worldLandmarks.push(o);
|
|
3085
3085
|
}
|
|
3086
|
-
|
|
3086
|
+
f(this, n);
|
|
3087
3087
|
})), this.g.attachEmptyPacketListener("world_hand_landmarks", ((s) => {
|
|
3088
|
-
|
|
3088
|
+
f(this, s);
|
|
3089
3089
|
})), this.g.attachProtoVectorListener("hand_gestures", ((s, n) => {
|
|
3090
|
-
this.gestures.push(...qi(s, !1)),
|
|
3090
|
+
this.gestures.push(...qi(s, !1)), f(this, n);
|
|
3091
3091
|
})), this.g.attachEmptyPacketListener("hand_gestures", ((s) => {
|
|
3092
|
-
|
|
3092
|
+
f(this, s);
|
|
3093
3093
|
})), this.g.attachProtoVectorListener("handedness", ((s, n) => {
|
|
3094
|
-
this.handedness.push(...qi(s)),
|
|
3094
|
+
this.handedness.push(...qi(s)), f(this, n);
|
|
3095
3095
|
})), this.g.attachEmptyPacketListener("handedness", ((s) => {
|
|
3096
|
-
|
|
3096
|
+
f(this, s);
|
|
3097
3097
|
})), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
3098
3098
|
}
|
|
3099
3099
|
};
|
|
@@ -3109,13 +3109,13 @@ te.prototype.recognizeForVideo = te.prototype.Ia, te.prototype.recognize = te.pr
|
|
|
3109
3109
|
}, te.HAND_CONNECTIONS = Kn;
|
|
3110
3110
|
var re = class extends le {
|
|
3111
3111
|
constructor(e, t) {
|
|
3112
|
-
super(new we(e, t), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.handedness = [],
|
|
3112
|
+
super(new we(e, t), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.handedness = [], v(e = this.h = new On(), 0, 1, t = new O()), this.u = new $n(), v(this.h, 0, 3, this.u), this.j = new Ka(), v(this.h, 0, 2, this.j), Be(this.j, 3, 1), y(this.j, 2, 0.5), y(this.u, 2, 0.5), y(this.h, 4, 0.5);
|
|
3113
3113
|
}
|
|
3114
3114
|
get baseOptions() {
|
|
3115
3115
|
return A(this.h, O, 1);
|
|
3116
3116
|
}
|
|
3117
3117
|
set baseOptions(e) {
|
|
3118
|
-
|
|
3118
|
+
v(this.h, 0, 1, e);
|
|
3119
3119
|
}
|
|
3120
3120
|
o(e) {
|
|
3121
3121
|
return "numHands" in e && Be(this.j, 3, e.numHands ?? 1), "minHandDetectionConfidence" in e && y(this.j, 2, e.minHandDetectionConfidence ?? 0.5), "minTrackingConfidence" in e && y(this.h, 4, e.minTrackingConfidence ?? 0.5), "minHandPresenceConfidence" in e && y(this.u, 2, e.minHandPresenceConfidence ?? 0.5), this.l(e);
|
|
@@ -3130,30 +3130,30 @@ var re = class extends le {
|
|
|
3130
3130
|
var e = new fe();
|
|
3131
3131
|
x(e, "image_in"), x(e, "norm_rect"), E(e, "hand_landmarks"), E(e, "world_hand_landmarks"), E(e, "handedness");
|
|
3132
3132
|
const t = new de();
|
|
3133
|
-
Me(t,
|
|
3133
|
+
Me(t, bu, this.h);
|
|
3134
3134
|
const r = new ee();
|
|
3135
|
-
he(r, 2, "mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"),
|
|
3135
|
+
he(r, 2, "mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), _(r, "LANDMARKS:hand_landmarks"), _(r, "WORLD_LANDMARKS:world_hand_landmarks"), _(r, "HANDEDNESS:handedness"), r.o(t), be(e, r), this.g.attachProtoVectorListener("hand_landmarks", ((s, n) => {
|
|
3136
3136
|
for (const i of s) s = Er(i), this.landmarks.push(as(s));
|
|
3137
|
-
|
|
3137
|
+
f(this, n);
|
|
3138
3138
|
})), this.g.attachEmptyPacketListener("hand_landmarks", ((s) => {
|
|
3139
|
-
|
|
3139
|
+
f(this, s);
|
|
3140
3140
|
})), this.g.attachProtoVectorListener("world_hand_landmarks", ((s, n) => {
|
|
3141
3141
|
for (const i of s) s = Et(i), this.worldLandmarks.push(nr(s));
|
|
3142
|
-
|
|
3142
|
+
f(this, n);
|
|
3143
3143
|
})), this.g.attachEmptyPacketListener("world_hand_landmarks", ((s) => {
|
|
3144
|
-
|
|
3144
|
+
f(this, s);
|
|
3145
3145
|
})), this.g.attachProtoVectorListener("handedness", ((s, n) => {
|
|
3146
3146
|
var i = this.handedness, o = i.push;
|
|
3147
3147
|
const a = [];
|
|
3148
3148
|
for (const c of s) {
|
|
3149
3149
|
s = is(c);
|
|
3150
3150
|
const u = [];
|
|
3151
|
-
for (const h of s.g()) u.push({ score: I(h, 2) ?? 0, index:
|
|
3151
|
+
for (const h of s.g()) u.push({ score: I(h, 2) ?? 0, index: me(h, 1) ?? 0 ?? -1, categoryName: Y(L(h, 3)) ?? "" ?? "", displayName: Y(L(h, 4)) ?? "" ?? "" });
|
|
3152
3152
|
a.push(u);
|
|
3153
3153
|
}
|
|
3154
|
-
o.call(i, ...a),
|
|
3154
|
+
o.call(i, ...a), f(this, n);
|
|
3155
3155
|
})), this.g.attachEmptyPacketListener("handedness", ((s) => {
|
|
3156
|
-
|
|
3156
|
+
f(this, s);
|
|
3157
3157
|
})), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
3158
3158
|
}
|
|
3159
3159
|
};
|
|
@@ -3164,7 +3164,7 @@ re.prototype.detectForVideo = re.prototype.G, re.prototype.detect = re.prototype
|
|
|
3164
3164
|
}, re.createFromOptions = function(e, t) {
|
|
3165
3165
|
return w(re, e, t);
|
|
3166
3166
|
}, re.HAND_CONNECTIONS = Kn;
|
|
3167
|
-
var
|
|
3167
|
+
var kc = _e([0, 1], [1, 2], [2, 3], [3, 7], [0, 4], [4, 5], [5, 6], [6, 8], [9, 10], [11, 12], [11, 13], [13, 15], [15, 17], [15, 19], [15, 21], [17, 19], [12, 14], [14, 16], [16, 18], [16, 20], [16, 22], [18, 20], [11, 23], [12, 24], [23, 24], [23, 25], [24, 26], [25, 27], [26, 28], [27, 29], [28, 30], [29, 31], [30, 32], [27, 31], [28, 32]);
|
|
3168
3168
|
function Yi(e) {
|
|
3169
3169
|
e.h = { faceLandmarks: [], faceBlendshapes: [], poseLandmarks: [], poseWorldLandmarks: [], poseSegmentationMasks: [], leftHandLandmarks: [], leftHandWorldLandmarks: [], rightHandLandmarks: [], rightHandWorldLandmarks: [] };
|
|
3170
3170
|
}
|
|
@@ -3179,15 +3179,15 @@ function Qi(e) {
|
|
|
3179
3179
|
function Lr(e, t) {
|
|
3180
3180
|
e = Er(e), t.push(as(e));
|
|
3181
3181
|
}
|
|
3182
|
-
var
|
|
3182
|
+
var C = class extends le {
|
|
3183
3183
|
constructor(e, t) {
|
|
3184
|
-
super(new we(e, t), "input_frames_image", null, !1), this.h = { faceLandmarks: [], faceBlendshapes: [], poseLandmarks: [], poseWorldLandmarks: [], poseSegmentationMasks: [], leftHandLandmarks: [], leftHandWorldLandmarks: [], rightHandLandmarks: [], rightHandWorldLandmarks: [] }, this.outputPoseSegmentationMasks = this.outputFaceBlendshapes = !1,
|
|
3184
|
+
super(new we(e, t), "input_frames_image", null, !1), this.h = { faceLandmarks: [], faceBlendshapes: [], poseLandmarks: [], poseWorldLandmarks: [], poseSegmentationMasks: [], leftHandLandmarks: [], leftHandWorldLandmarks: [], rightHandLandmarks: [], rightHandWorldLandmarks: [] }, this.outputPoseSegmentationMasks = this.outputFaceBlendshapes = !1, v(e = this.j = new Za(), 0, 1, t = new O()), this.I = new $n(), v(this.j, 0, 2, this.I), this.W = new vu(), v(this.j, 0, 3, this.W), this.u = new os(), v(this.j, 0, 4, this.u), this.O = new Ha(), v(this.j, 0, 5, this.O), this.A = new Qa(), v(this.j, 0, 6, this.A), this.M = new Ja(), v(this.j, 0, 7, this.M), y(this.u, 2, 0.5), y(this.u, 3, 0.3), y(this.O, 2, 0.5), y(this.A, 2, 0.5), y(this.A, 3, 0.3), y(this.M, 2, 0.5), y(this.I, 2, 0.5);
|
|
3185
3185
|
}
|
|
3186
3186
|
get baseOptions() {
|
|
3187
3187
|
return A(this.j, O, 1);
|
|
3188
3188
|
}
|
|
3189
3189
|
set baseOptions(e) {
|
|
3190
|
-
|
|
3190
|
+
v(this.j, 0, 1, e);
|
|
3191
3191
|
}
|
|
3192
3192
|
o(e) {
|
|
3193
3193
|
return "minFaceDetectionConfidence" in e && y(this.u, 2, e.minFaceDetectionConfidence ?? 0.5), "minFaceSuppressionThreshold" in e && y(this.u, 3, e.minFaceSuppressionThreshold ?? 0.3), "minFacePresenceConfidence" in e && y(this.O, 2, e.minFacePresenceConfidence ?? 0.5), "outputFaceBlendshapes" in e && (this.outputFaceBlendshapes = !!e.outputFaceBlendshapes), "minPoseDetectionConfidence" in e && y(this.A, 2, e.minPoseDetectionConfidence ?? 0.5), "minPoseSuppressionThreshold" in e && y(this.A, 3, e.minPoseSuppressionThreshold ?? 0.3), "minPosePresenceConfidence" in e && y(this.M, 2, e.minPosePresenceConfidence ?? 0.5), "outputPoseSegmentationMasks" in e && (this.outputPoseSegmentationMasks = !!e.outputPoseSegmentationMasks), "minHandLandmarksConfidence" in e && y(this.I, 2, e.minHandLandmarksConfidence ?? 0.5), this.l(e);
|
|
@@ -3212,68 +3212,68 @@ var T = class extends le {
|
|
|
3212
3212
|
}
|
|
3213
3213
|
})(r, this.j.g());
|
|
3214
3214
|
const s = new ee();
|
|
3215
|
-
he(s, 2, "mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"), yn(s, 8, wi, r),
|
|
3216
|
-
Lr(n, this.h.poseLandmarks),
|
|
3215
|
+
he(s, 2, "mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"), yn(s, 8, wi, r), P(s, "IMAGE:input_frames_image"), _(s, "POSE_LANDMARKS:pose_landmarks"), _(s, "POSE_WORLD_LANDMARKS:pose_world_landmarks"), _(s, "FACE_LANDMARKS:face_landmarks"), _(s, "LEFT_HAND_LANDMARKS:left_hand_landmarks"), _(s, "LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"), _(s, "RIGHT_HAND_LANDMARKS:right_hand_landmarks"), _(s, "RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"), s.o(t), be(e, s), cs(this, e), this.g.attachProtoListener("pose_landmarks", ((n, i) => {
|
|
3216
|
+
Lr(n, this.h.poseLandmarks), f(this, i);
|
|
3217
3217
|
})), this.g.attachEmptyPacketListener("pose_landmarks", ((n) => {
|
|
3218
|
-
|
|
3218
|
+
f(this, n);
|
|
3219
3219
|
})), this.g.attachProtoListener("pose_world_landmarks", ((n, i) => {
|
|
3220
3220
|
var o = this.h.poseWorldLandmarks;
|
|
3221
|
-
n = Et(n), o.push(nr(n)),
|
|
3221
|
+
n = Et(n), o.push(nr(n)), f(this, i);
|
|
3222
3222
|
})), this.g.attachEmptyPacketListener("pose_world_landmarks", ((n) => {
|
|
3223
|
-
|
|
3223
|
+
f(this, n);
|
|
3224
3224
|
})), this.outputPoseSegmentationMasks && (_(s, "POSE_SEGMENTATION_MASK:pose_segmentation_mask"), $t(this, "pose_segmentation_mask"), this.g.Z("pose_segmentation_mask", ((n, i) => {
|
|
3225
|
-
this.h.poseSegmentationMasks = [Rt(this, n, !0, !this.D)],
|
|
3225
|
+
this.h.poseSegmentationMasks = [Rt(this, n, !0, !this.D)], f(this, i);
|
|
3226
3226
|
})), this.g.attachEmptyPacketListener("pose_segmentation_mask", ((n) => {
|
|
3227
|
-
this.h.poseSegmentationMasks = [],
|
|
3227
|
+
this.h.poseSegmentationMasks = [], f(this, n);
|
|
3228
3228
|
}))), this.g.attachProtoListener("face_landmarks", ((n, i) => {
|
|
3229
|
-
Lr(n, this.h.faceLandmarks),
|
|
3229
|
+
Lr(n, this.h.faceLandmarks), f(this, i);
|
|
3230
3230
|
})), this.g.attachEmptyPacketListener("face_landmarks", ((n) => {
|
|
3231
|
-
|
|
3231
|
+
f(this, n);
|
|
3232
3232
|
})), this.outputFaceBlendshapes && (E(e, "extra_blendshapes"), _(s, "FACE_BLENDSHAPES:extra_blendshapes"), this.g.attachProtoListener("extra_blendshapes", ((n, i) => {
|
|
3233
3233
|
var o = this.h.faceBlendshapes;
|
|
3234
|
-
this.outputFaceBlendshapes && (n = is(n), o.push(Bn(n.g() ?? []))),
|
|
3234
|
+
this.outputFaceBlendshapes && (n = is(n), o.push(Bn(n.g() ?? []))), f(this, i);
|
|
3235
3235
|
})), this.g.attachEmptyPacketListener("extra_blendshapes", ((n) => {
|
|
3236
|
-
|
|
3236
|
+
f(this, n);
|
|
3237
3237
|
}))), this.g.attachProtoListener("left_hand_landmarks", ((n, i) => {
|
|
3238
|
-
Lr(n, this.h.leftHandLandmarks),
|
|
3238
|
+
Lr(n, this.h.leftHandLandmarks), f(this, i);
|
|
3239
3239
|
})), this.g.attachEmptyPacketListener("left_hand_landmarks", ((n) => {
|
|
3240
|
-
|
|
3240
|
+
f(this, n);
|
|
3241
3241
|
})), this.g.attachProtoListener("left_hand_world_landmarks", ((n, i) => {
|
|
3242
3242
|
var o = this.h.leftHandWorldLandmarks;
|
|
3243
|
-
n = Et(n), o.push(nr(n)),
|
|
3243
|
+
n = Et(n), o.push(nr(n)), f(this, i);
|
|
3244
3244
|
})), this.g.attachEmptyPacketListener("left_hand_world_landmarks", ((n) => {
|
|
3245
|
-
|
|
3245
|
+
f(this, n);
|
|
3246
3246
|
})), this.g.attachProtoListener("right_hand_landmarks", ((n, i) => {
|
|
3247
|
-
Lr(n, this.h.rightHandLandmarks),
|
|
3247
|
+
Lr(n, this.h.rightHandLandmarks), f(this, i);
|
|
3248
3248
|
})), this.g.attachEmptyPacketListener("right_hand_landmarks", ((n) => {
|
|
3249
|
-
|
|
3249
|
+
f(this, n);
|
|
3250
3250
|
})), this.g.attachProtoListener("right_hand_world_landmarks", ((n, i) => {
|
|
3251
3251
|
var o = this.h.rightHandWorldLandmarks;
|
|
3252
|
-
n = Et(n), o.push(nr(n)),
|
|
3252
|
+
n = Et(n), o.push(nr(n)), f(this, i);
|
|
3253
3253
|
})), this.g.attachEmptyPacketListener("right_hand_world_landmarks", ((n) => {
|
|
3254
|
-
|
|
3254
|
+
f(this, n);
|
|
3255
3255
|
})), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
3256
3256
|
}
|
|
3257
3257
|
};
|
|
3258
|
-
|
|
3259
|
-
return w(
|
|
3260
|
-
},
|
|
3261
|
-
return w(
|
|
3262
|
-
},
|
|
3263
|
-
return w(
|
|
3264
|
-
},
|
|
3258
|
+
C.prototype.detectForVideo = C.prototype.G, C.prototype.detect = C.prototype.F, C.prototype.setOptions = C.prototype.o, C.createFromModelPath = function(e, t) {
|
|
3259
|
+
return w(C, e, { baseOptions: { modelAssetPath: t } });
|
|
3260
|
+
}, C.createFromModelBuffer = function(e, t) {
|
|
3261
|
+
return w(C, e, { baseOptions: { modelAssetBuffer: t } });
|
|
3262
|
+
}, C.createFromOptions = function(e, t) {
|
|
3263
|
+
return w(C, e, t);
|
|
3264
|
+
}, C.HAND_CONNECTIONS = Kn, C.POSE_CONNECTIONS = kc, C.FACE_LANDMARKS_LIPS = jn, C.FACE_LANDMARKS_LEFT_EYE = Vn, C.FACE_LANDMARKS_LEFT_EYEBROW = Gn, C.FACE_LANDMARKS_LEFT_IRIS = _c, C.FACE_LANDMARKS_RIGHT_EYE = Hn, C.FACE_LANDMARKS_RIGHT_EYEBROW = zn, C.FACE_LANDMARKS_RIGHT_IRIS = wc, C.FACE_LANDMARKS_FACE_OVAL = Wn, C.FACE_LANDMARKS_CONTOURS = Ac, C.FACE_LANDMARKS_TESSELATION = Ec;
|
|
3265
3265
|
var pe = class extends le {
|
|
3266
3266
|
constructor(e, t) {
|
|
3267
|
-
super(new we(e, t), "input_image", "norm_rect", !0), this.j = { classifications: [] },
|
|
3267
|
+
super(new we(e, t), "input_image", "norm_rect", !0), this.j = { classifications: [] }, v(e = this.h = new ec(), 0, 1, t = new O());
|
|
3268
3268
|
}
|
|
3269
3269
|
get baseOptions() {
|
|
3270
3270
|
return A(this.h, O, 1);
|
|
3271
3271
|
}
|
|
3272
3272
|
set baseOptions(e) {
|
|
3273
|
-
|
|
3273
|
+
v(this.h, 0, 1, e);
|
|
3274
3274
|
}
|
|
3275
3275
|
o(e) {
|
|
3276
|
-
return
|
|
3276
|
+
return v(this.h, 0, 2, Us(e, A(this.h, xn, 2))), this.l(e);
|
|
3277
3277
|
}
|
|
3278
3278
|
sa(e, t) {
|
|
3279
3279
|
return this.j = { classifications: [] }, Ae(this, e, t), this.j;
|
|
@@ -3285,12 +3285,12 @@ var pe = class extends le {
|
|
|
3285
3285
|
var e = new fe();
|
|
3286
3286
|
x(e, "input_image"), x(e, "norm_rect"), E(e, "classifications");
|
|
3287
3287
|
const t = new de();
|
|
3288
|
-
Me(t,
|
|
3288
|
+
Me(t, _u, this.h);
|
|
3289
3289
|
const r = new ee();
|
|
3290
|
-
he(r, 2, "mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"),
|
|
3291
|
-
this.j =
|
|
3290
|
+
he(r, 2, "mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"), P(r, "IMAGE:input_image"), P(r, "NORM_RECT:norm_rect"), _(r, "CLASSIFICATIONS:classifications"), r.o(t), be(e, r), this.g.attachProtoListener("classifications", ((s, n) => {
|
|
3291
|
+
this.j = Tu(cu(s)), f(this, n);
|
|
3292
3292
|
})), this.g.attachEmptyPacketListener("classifications", ((s) => {
|
|
3293
|
-
|
|
3293
|
+
f(this, s);
|
|
3294
3294
|
})), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
3295
3295
|
}
|
|
3296
3296
|
};
|
|
@@ -3303,17 +3303,17 @@ pe.prototype.classifyForVideo = pe.prototype.ta, pe.prototype.classify = pe.prot
|
|
|
3303
3303
|
};
|
|
3304
3304
|
var se = class extends le {
|
|
3305
3305
|
constructor(e, t) {
|
|
3306
|
-
super(new we(e, t), "image_in", "norm_rect", !0), this.h = new
|
|
3306
|
+
super(new we(e, t), "image_in", "norm_rect", !0), this.h = new tc(), this.embeddings = { embeddings: [] }, v(e = this.h, 0, 1, t = new O());
|
|
3307
3307
|
}
|
|
3308
3308
|
get baseOptions() {
|
|
3309
3309
|
return A(this.h, O, 1);
|
|
3310
3310
|
}
|
|
3311
3311
|
set baseOptions(e) {
|
|
3312
|
-
|
|
3312
|
+
v(this.h, 0, 1, e);
|
|
3313
3313
|
}
|
|
3314
3314
|
o(e) {
|
|
3315
3315
|
var t = this.h, r = A(this.h, Mi, 2);
|
|
3316
|
-
return r = r ? r.clone() : new Mi(), e.l2Normalize !== void 0 ? k(r, 1, lr(e.l2Normalize)) : "l2Normalize" in e && k(r, 1), e.quantize !== void 0 ? k(r, 2, lr(e.quantize)) : "quantize" in e && k(r, 2),
|
|
3316
|
+
return r = r ? r.clone() : new Mi(), e.l2Normalize !== void 0 ? k(r, 1, lr(e.l2Normalize)) : "l2Normalize" in e && k(r, 1), e.quantize !== void 0 ? k(r, 2, lr(e.quantize)) : "quantize" in e && k(r, 2), v(t, 0, 2, r), this.l(e);
|
|
3317
3317
|
}
|
|
3318
3318
|
za(e, t) {
|
|
3319
3319
|
return Ae(this, e, t), this.embeddings;
|
|
@@ -3325,19 +3325,19 @@ var se = class extends le {
|
|
|
3325
3325
|
var e = new fe();
|
|
3326
3326
|
x(e, "image_in"), x(e, "norm_rect"), E(e, "embeddings_out");
|
|
3327
3327
|
const t = new de();
|
|
3328
|
-
Me(t,
|
|
3328
|
+
Me(t, wu, this.h);
|
|
3329
3329
|
const r = new ee();
|
|
3330
|
-
he(r, 2, "mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"),
|
|
3331
|
-
s =
|
|
3332
|
-
return { embeddings: Ne(i,
|
|
3330
|
+
he(r, 2, "mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), _(r, "EMBEDDINGS:embeddings_out"), r.o(t), be(e, r), this.g.attachProtoListener("embeddings_out", ((s, n) => {
|
|
3331
|
+
s = lu(s), this.embeddings = (function(i) {
|
|
3332
|
+
return { embeddings: Ne(i, uu, 1).map(((o) => {
|
|
3333
3333
|
var u, h;
|
|
3334
|
-
const a = { headIndex:
|
|
3334
|
+
const a = { headIndex: me(o, 3) ?? 0 ?? -1, headName: Y(L(o, 4)) ?? "" ?? "" };
|
|
3335
3335
|
var c = o.v;
|
|
3336
|
-
return
|
|
3337
|
-
})), timestampMs:
|
|
3338
|
-
})(s),
|
|
3336
|
+
return Qo(c, 0 | c[p], Pi, ms(o, 1)) !== void 0 ? (o = rt(o = A(o, Pi, ms(o, 1), void 0), 1, Te, tt()), a.floatEmbedding = o.slice()) : (c = new Uint8Array(0), a.quantizedEmbedding = ((h = (u = A(o, hu, ms(o, 2), void 0)) == null ? void 0 : u.na()) == null ? void 0 : h.h()) ?? c), a;
|
|
3337
|
+
})), timestampMs: cc(ea(i)) };
|
|
3338
|
+
})(s), f(this, n);
|
|
3339
3339
|
})), this.g.attachEmptyPacketListener("embeddings_out", ((s) => {
|
|
3340
|
-
|
|
3340
|
+
f(this, s);
|
|
3341
3341
|
})), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
3342
3342
|
}
|
|
3343
3343
|
};
|
|
@@ -3366,14 +3366,14 @@ var Gs = class {
|
|
|
3366
3366
|
})), (t = this.categoryMask) == null || t.close();
|
|
3367
3367
|
}
|
|
3368
3368
|
};
|
|
3369
|
-
function
|
|
3369
|
+
function $u(e) {
|
|
3370
3370
|
var r, s;
|
|
3371
3371
|
const t = (function(n) {
|
|
3372
3372
|
return Ne(n, ee, 1);
|
|
3373
|
-
})(e.ca()).filter(((n) => (Y(
|
|
3373
|
+
})(e.ca()).filter(((n) => (Y(L(n, 1)) ?? "").includes("mediapipe.tasks.TensorsToSegmentationCalculator")));
|
|
3374
3374
|
if (e.u = [], t.length > 1) throw Error("The graph has more than one mediapipe.tasks.TensorsToSegmentationCalculator.");
|
|
3375
3375
|
t.length === 1 && (((s = (r = A(t[0], de, 7)) == null ? void 0 : r.j()) == null ? void 0 : s.g()) ?? /* @__PURE__ */ new Map()).forEach(((n, i) => {
|
|
3376
|
-
e.u[Number(i)] = Y(
|
|
3376
|
+
e.u[Number(i)] = Y(L(n, 1)) ?? "";
|
|
3377
3377
|
}));
|
|
3378
3378
|
}
|
|
3379
3379
|
function Ji(e) {
|
|
@@ -3391,19 +3391,19 @@ function Zi(e) {
|
|
|
3391
3391
|
Gs.prototype.close = Gs.prototype.close;
|
|
3392
3392
|
var Z = class extends le {
|
|
3393
3393
|
constructor(e, t) {
|
|
3394
|
-
super(new we(e, t), "image_in", "norm_rect", !1), this.u = [], this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new Nn(), this.A = new
|
|
3394
|
+
super(new we(e, t), "image_in", "norm_rect", !1), this.u = [], this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new Nn(), this.A = new rc(), v(this.h, 0, 3, this.A), v(e = this.h, 0, 1, t = new O());
|
|
3395
3395
|
}
|
|
3396
3396
|
get baseOptions() {
|
|
3397
3397
|
return A(this.h, O, 1);
|
|
3398
3398
|
}
|
|
3399
3399
|
set baseOptions(e) {
|
|
3400
|
-
|
|
3400
|
+
v(this.h, 0, 1, e);
|
|
3401
3401
|
}
|
|
3402
3402
|
o(e) {
|
|
3403
3403
|
return e.displayNamesLocale !== void 0 ? k(this.h, 2, _r(e.displayNamesLocale)) : "displayNamesLocale" in e && k(this.h, 2), "outputCategoryMask" in e && (this.outputCategoryMask = e.outputCategoryMask ?? !1), "outputConfidenceMasks" in e && (this.outputConfidenceMasks = e.outputConfidenceMasks ?? !0), super.l(e);
|
|
3404
3404
|
}
|
|
3405
3405
|
L() {
|
|
3406
|
-
|
|
3406
|
+
$u(this);
|
|
3407
3407
|
}
|
|
3408
3408
|
segment(e, t, r) {
|
|
3409
3409
|
const s = typeof t != "function" ? t : {};
|
|
@@ -3420,20 +3420,20 @@ var Z = class extends le {
|
|
|
3420
3420
|
var e = new fe();
|
|
3421
3421
|
x(e, "image_in"), x(e, "norm_rect");
|
|
3422
3422
|
const t = new de();
|
|
3423
|
-
Me(t,
|
|
3423
|
+
Me(t, nc, this.h);
|
|
3424
3424
|
const r = new ee();
|
|
3425
|
-
he(r, 2, "mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"),
|
|
3426
|
-
this.confidenceMasks = s.map(((i) => Rt(this, i, !0, !this.j))),
|
|
3425
|
+
he(r, 2, "mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), r.o(t), be(e, r), cs(this, e), this.outputConfidenceMasks && (E(e, "confidence_masks"), _(r, "CONFIDENCE_MASKS:confidence_masks"), $t(this, "confidence_masks"), this.g.aa("confidence_masks", ((s, n) => {
|
|
3426
|
+
this.confidenceMasks = s.map(((i) => Rt(this, i, !0, !this.j))), f(this, n);
|
|
3427
3427
|
})), this.g.attachEmptyPacketListener("confidence_masks", ((s) => {
|
|
3428
|
-
this.confidenceMasks = [],
|
|
3428
|
+
this.confidenceMasks = [], f(this, s);
|
|
3429
3429
|
}))), this.outputCategoryMask && (E(e, "category_mask"), _(r, "CATEGORY_MASK:category_mask"), $t(this, "category_mask"), this.g.Z("category_mask", ((s, n) => {
|
|
3430
|
-
this.categoryMask = Rt(this, s, !1, !this.j),
|
|
3430
|
+
this.categoryMask = Rt(this, s, !1, !this.j), f(this, n);
|
|
3431
3431
|
})), this.g.attachEmptyPacketListener("category_mask", ((s) => {
|
|
3432
|
-
this.categoryMask = void 0,
|
|
3432
|
+
this.categoryMask = void 0, f(this, s);
|
|
3433
3433
|
}))), E(e, "quality_scores"), _(r, "QUALITY_SCORES:quality_scores"), this.g.attachFloatVectorListener("quality_scores", ((s, n) => {
|
|
3434
|
-
this.qualityScores = s,
|
|
3434
|
+
this.qualityScores = s, f(this, n);
|
|
3435
3435
|
})), this.g.attachEmptyPacketListener("quality_scores", ((s) => {
|
|
3436
|
-
this.categoryMask = void 0,
|
|
3436
|
+
this.categoryMask = void 0, f(this, s);
|
|
3437
3437
|
})), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
3438
3438
|
}
|
|
3439
3439
|
};
|
|
@@ -3458,27 +3458,27 @@ var Hs = class {
|
|
|
3458
3458
|
Hs.prototype.close = Hs.prototype.close;
|
|
3459
3459
|
var Se = class extends le {
|
|
3460
3460
|
constructor(e, t) {
|
|
3461
|
-
super(new we(e, t), "image_in", "norm_rect_in", !1), this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new Nn(), this.u = new
|
|
3461
|
+
super(new we(e, t), "image_in", "norm_rect_in", !1), this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new Nn(), this.u = new rc(), v(this.h, 0, 3, this.u), v(e = this.h, 0, 1, t = new O());
|
|
3462
3462
|
}
|
|
3463
3463
|
get baseOptions() {
|
|
3464
3464
|
return A(this.h, O, 1);
|
|
3465
3465
|
}
|
|
3466
3466
|
set baseOptions(e) {
|
|
3467
|
-
|
|
3467
|
+
v(this.h, 0, 1, e);
|
|
3468
3468
|
}
|
|
3469
3469
|
o(e) {
|
|
3470
3470
|
return "outputCategoryMask" in e && (this.outputCategoryMask = e.outputCategoryMask ?? !1), "outputConfidenceMasks" in e && (this.outputConfidenceMasks = e.outputConfidenceMasks ?? !0), super.l(e);
|
|
3471
3471
|
}
|
|
3472
3472
|
segment(e, t, r, s) {
|
|
3473
3473
|
const n = typeof r != "function" ? r : {};
|
|
3474
|
-
if (this.j = typeof r == "function" ? r : s, this.qualityScores = this.categoryMask = this.confidenceMasks = void 0, r = this.C + 1, s = new
|
|
3474
|
+
if (this.j = typeof r == "function" ? r : s, this.qualityScores = this.categoryMask = this.confidenceMasks = void 0, r = this.C + 1, s = new ic(), t.keypoint && t.scribble) throw Error("Cannot provide both keypoint and scribble.");
|
|
3475
3475
|
if (t.keypoint) {
|
|
3476
3476
|
var i = new _s();
|
|
3477
3477
|
Ve(i, 3, lr(!0), !1), Ve(i, 1, tr(t.keypoint.x), 0), Ve(i, 2, tr(t.keypoint.y), 0), rr(s, 1, Bs, i);
|
|
3478
3478
|
} else {
|
|
3479
3479
|
if (!t.scribble) throw Error("Must provide either a keypoint or a scribble.");
|
|
3480
3480
|
{
|
|
3481
|
-
const a = new
|
|
3481
|
+
const a = new Eu();
|
|
3482
3482
|
for (i of t.scribble) Ve(t = new _s(), 3, lr(!0), !1), Ve(t, 1, tr(i.x), 0), Ve(t, 2, tr(i.y), 0), yn(a, 1, _s, t);
|
|
3483
3483
|
rr(s, 2, Bs, a);
|
|
3484
3484
|
}
|
|
@@ -3503,20 +3503,20 @@ var Se = class extends le {
|
|
|
3503
3503
|
var e = new fe();
|
|
3504
3504
|
x(e, "image_in"), x(e, "roi_in"), x(e, "norm_rect_in");
|
|
3505
3505
|
const t = new de();
|
|
3506
|
-
Me(t,
|
|
3506
|
+
Me(t, nc, this.h);
|
|
3507
3507
|
const r = new ee();
|
|
3508
|
-
he(r, 2, "mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraphV2"),
|
|
3509
|
-
this.confidenceMasks = s.map(((i) => Rt(this, i, !0, !this.j))),
|
|
3508
|
+
he(r, 2, "mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraphV2"), P(r, "IMAGE:image_in"), P(r, "ROI:roi_in"), P(r, "NORM_RECT:norm_rect_in"), r.o(t), be(e, r), cs(this, e), this.outputConfidenceMasks && (E(e, "confidence_masks"), _(r, "CONFIDENCE_MASKS:confidence_masks"), $t(this, "confidence_masks"), this.g.aa("confidence_masks", ((s, n) => {
|
|
3509
|
+
this.confidenceMasks = s.map(((i) => Rt(this, i, !0, !this.j))), f(this, n);
|
|
3510
3510
|
})), this.g.attachEmptyPacketListener("confidence_masks", ((s) => {
|
|
3511
|
-
this.confidenceMasks = [],
|
|
3511
|
+
this.confidenceMasks = [], f(this, s);
|
|
3512
3512
|
}))), this.outputCategoryMask && (E(e, "category_mask"), _(r, "CATEGORY_MASK:category_mask"), $t(this, "category_mask"), this.g.Z("category_mask", ((s, n) => {
|
|
3513
|
-
this.categoryMask = Rt(this, s, !1, !this.j),
|
|
3513
|
+
this.categoryMask = Rt(this, s, !1, !this.j), f(this, n);
|
|
3514
3514
|
})), this.g.attachEmptyPacketListener("category_mask", ((s) => {
|
|
3515
|
-
this.categoryMask = void 0,
|
|
3515
|
+
this.categoryMask = void 0, f(this, s);
|
|
3516
3516
|
}))), E(e, "quality_scores"), _(r, "QUALITY_SCORES:quality_scores"), this.g.attachFloatVectorListener("quality_scores", ((s, n) => {
|
|
3517
|
-
this.qualityScores = s,
|
|
3517
|
+
this.qualityScores = s, f(this, n);
|
|
3518
3518
|
})), this.g.attachEmptyPacketListener("quality_scores", ((s) => {
|
|
3519
|
-
this.categoryMask = void 0,
|
|
3519
|
+
this.categoryMask = void 0, f(this, s);
|
|
3520
3520
|
})), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
3521
3521
|
}
|
|
3522
3522
|
};
|
|
@@ -3527,15 +3527,15 @@ Se.prototype.segment = Se.prototype.segment, Se.prototype.setOptions = Se.protot
|
|
|
3527
3527
|
}, Se.createFromOptions = function(e, t) {
|
|
3528
3528
|
return w(Se, e, t);
|
|
3529
3529
|
};
|
|
3530
|
-
var
|
|
3530
|
+
var ge = class extends le {
|
|
3531
3531
|
constructor(e, t) {
|
|
3532
|
-
super(new we(e, t), "input_frame_gpu", "norm_rect", !1), this.j = { detections: [] },
|
|
3532
|
+
super(new we(e, t), "input_frame_gpu", "norm_rect", !1), this.j = { detections: [] }, v(e = this.h = new oc(), 0, 1, t = new O());
|
|
3533
3533
|
}
|
|
3534
3534
|
get baseOptions() {
|
|
3535
3535
|
return A(this.h, O, 1);
|
|
3536
3536
|
}
|
|
3537
3537
|
set baseOptions(e) {
|
|
3538
|
-
|
|
3538
|
+
v(this.h, 0, 1, e);
|
|
3539
3539
|
}
|
|
3540
3540
|
o(e) {
|
|
3541
3541
|
return e.displayNamesLocale !== void 0 ? k(this.h, 2, _r(e.displayNamesLocale)) : "displayNamesLocale" in e && k(this.h, 2), e.maxResults !== void 0 ? Be(this.h, 3, e.maxResults) : "maxResults" in e && k(this.h, 3), e.scoreThreshold !== void 0 ? y(this.h, 4, e.scoreThreshold) : "scoreThreshold" in e && k(this.h, 4), e.categoryAllowlist !== void 0 ? Or(this.h, 5, e.categoryAllowlist) : "categoryAllowlist" in e && k(this.h, 5), e.categoryDenylist !== void 0 ? Or(this.h, 6, e.categoryDenylist) : "categoryDenylist" in e && k(this.h, 6), this.l(e);
|
|
@@ -3550,22 +3550,22 @@ var me = class extends le {
|
|
|
3550
3550
|
var e = new fe();
|
|
3551
3551
|
x(e, "input_frame_gpu"), x(e, "norm_rect"), E(e, "detections");
|
|
3552
3552
|
const t = new de();
|
|
3553
|
-
Me(t,
|
|
3553
|
+
Me(t, ku, this.h);
|
|
3554
3554
|
const r = new ee();
|
|
3555
|
-
he(r, 2, "mediapipe.tasks.vision.ObjectDetectorGraph"),
|
|
3556
|
-
for (const i of s) s =
|
|
3557
|
-
|
|
3555
|
+
he(r, 2, "mediapipe.tasks.vision.ObjectDetectorGraph"), P(r, "IMAGE:input_frame_gpu"), P(r, "NORM_RECT:norm_rect"), _(r, "DETECTIONS:detections"), r.o(t), be(e, r), this.g.attachProtoVectorListener("detections", ((s, n) => {
|
|
3556
|
+
for (const i of s) s = Na(i), this.j.detections.push(hc(s));
|
|
3557
|
+
f(this, n);
|
|
3558
3558
|
})), this.g.attachEmptyPacketListener("detections", ((s) => {
|
|
3559
|
-
|
|
3559
|
+
f(this, s);
|
|
3560
3560
|
})), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
3561
3561
|
}
|
|
3562
3562
|
};
|
|
3563
|
-
|
|
3564
|
-
return w(
|
|
3565
|
-
},
|
|
3566
|
-
return w(
|
|
3567
|
-
},
|
|
3568
|
-
return w(
|
|
3563
|
+
ge.prototype.detectForVideo = ge.prototype.G, ge.prototype.detect = ge.prototype.F, ge.prototype.setOptions = ge.prototype.o, ge.createFromModelPath = async function(e, t) {
|
|
3564
|
+
return w(ge, e, { baseOptions: { modelAssetPath: t } });
|
|
3565
|
+
}, ge.createFromModelBuffer = function(e, t) {
|
|
3566
|
+
return w(ge, e, { baseOptions: { modelAssetBuffer: t } });
|
|
3567
|
+
}, ge.createFromOptions = function(e, t) {
|
|
3568
|
+
return w(ge, e, t);
|
|
3569
3569
|
};
|
|
3570
3570
|
var zs = class {
|
|
3571
3571
|
constructor(e, t, r) {
|
|
@@ -3593,13 +3593,13 @@ function to(e) {
|
|
|
3593
3593
|
zs.prototype.close = zs.prototype.close;
|
|
3594
3594
|
var ne = class extends le {
|
|
3595
3595
|
constructor(e, t) {
|
|
3596
|
-
super(new we(e, t), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.outputSegmentationMasks = !1,
|
|
3596
|
+
super(new we(e, t), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.outputSegmentationMasks = !1, v(e = this.h = new ac(), 0, 1, t = new O()), this.A = new Ja(), v(this.h, 0, 3, this.A), this.j = new Qa(), v(this.h, 0, 2, this.j), Be(this.j, 4, 1), y(this.j, 2, 0.5), y(this.A, 2, 0.5), y(this.h, 4, 0.5);
|
|
3597
3597
|
}
|
|
3598
3598
|
get baseOptions() {
|
|
3599
3599
|
return A(this.h, O, 1);
|
|
3600
3600
|
}
|
|
3601
3601
|
set baseOptions(e) {
|
|
3602
|
-
|
|
3602
|
+
v(this.h, 0, 1, e);
|
|
3603
3603
|
}
|
|
3604
3604
|
o(e) {
|
|
3605
3605
|
return "numPoses" in e && Be(this.j, 4, e.numPoses ?? 1), "minPoseDetectionConfidence" in e && y(this.j, 2, e.minPoseDetectionConfidence ?? 0.5), "minTrackingConfidence" in e && y(this.h, 4, e.minTrackingConfidence ?? 0.5), "minPosePresenceConfidence" in e && y(this.A, 2, e.minPosePresenceConfidence ?? 0.5), "outputSegmentationMasks" in e && (this.outputSegmentationMasks = e.outputSegmentationMasks ?? !1), this.l(e);
|
|
@@ -3616,24 +3616,24 @@ var ne = class extends le {
|
|
|
3616
3616
|
var e = new fe();
|
|
3617
3617
|
x(e, "image_in"), x(e, "norm_rect"), E(e, "normalized_landmarks"), E(e, "world_landmarks"), E(e, "segmentation_masks");
|
|
3618
3618
|
const t = new de();
|
|
3619
|
-
Me(t,
|
|
3619
|
+
Me(t, Su, this.h);
|
|
3620
3620
|
const r = new ee();
|
|
3621
|
-
he(r, 2, "mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"),
|
|
3621
|
+
he(r, 2, "mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), _(r, "NORM_LANDMARKS:normalized_landmarks"), _(r, "WORLD_LANDMARKS:world_landmarks"), r.o(t), be(e, r), cs(this, e), this.g.attachProtoVectorListener("normalized_landmarks", ((s, n) => {
|
|
3622
3622
|
this.landmarks = [];
|
|
3623
3623
|
for (const i of s) s = Er(i), this.landmarks.push(as(s));
|
|
3624
|
-
|
|
3624
|
+
f(this, n);
|
|
3625
3625
|
})), this.g.attachEmptyPacketListener("normalized_landmarks", ((s) => {
|
|
3626
|
-
this.landmarks = [],
|
|
3626
|
+
this.landmarks = [], f(this, s);
|
|
3627
3627
|
})), this.g.attachProtoVectorListener("world_landmarks", ((s, n) => {
|
|
3628
3628
|
this.worldLandmarks = [];
|
|
3629
3629
|
for (const i of s) s = Et(i), this.worldLandmarks.push(nr(s));
|
|
3630
|
-
|
|
3630
|
+
f(this, n);
|
|
3631
3631
|
})), this.g.attachEmptyPacketListener("world_landmarks", ((s) => {
|
|
3632
|
-
this.worldLandmarks = [],
|
|
3632
|
+
this.worldLandmarks = [], f(this, s);
|
|
3633
3633
|
})), this.outputSegmentationMasks && (_(r, "SEGMENTATION_MASK:segmentation_masks"), $t(this, "segmentation_masks"), this.g.aa("segmentation_masks", ((s, n) => {
|
|
3634
|
-
this.segmentationMasks = s.map(((i) => Rt(this, i, !0, !this.u))),
|
|
3634
|
+
this.segmentationMasks = s.map(((i) => Rt(this, i, !0, !this.u))), f(this, n);
|
|
3635
3635
|
})), this.g.attachEmptyPacketListener("segmentation_masks", ((s) => {
|
|
3636
|
-
this.segmentationMasks = [],
|
|
3636
|
+
this.segmentationMasks = [], f(this, s);
|
|
3637
3637
|
}))), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
3638
3638
|
}
|
|
3639
3639
|
};
|
|
@@ -3643,17 +3643,66 @@ ne.prototype.detectForVideo = ne.prototype.G, ne.prototype.detect = ne.prototype
|
|
|
3643
3643
|
return w(ne, e, { baseOptions: { modelAssetBuffer: t } });
|
|
3644
3644
|
}, ne.createFromOptions = function(e, t) {
|
|
3645
3645
|
return w(ne, e, t);
|
|
3646
|
-
}, ne.POSE_CONNECTIONS =
|
|
3647
|
-
const
|
|
3648
|
-
function
|
|
3649
|
-
|
|
3650
|
-
|
|
3646
|
+
}, ne.POSE_CONNECTIONS = kc;
|
|
3647
|
+
const Ou = 800, Ru = 1.5, Iu = 0.15, ro = /* @__PURE__ */ new WeakMap();
|
|
3648
|
+
function Nu(e, t, r) {
|
|
3649
|
+
const s = r ?? document.createElement("canvas");
|
|
3650
|
+
s.width = t.width, s.height = t.height;
|
|
3651
|
+
const n = s.getContext("2d");
|
|
3652
|
+
if (!n) return 0;
|
|
3653
|
+
n.drawImage(
|
|
3654
|
+
e,
|
|
3655
|
+
t.x,
|
|
3656
|
+
t.y,
|
|
3657
|
+
t.width,
|
|
3658
|
+
t.height,
|
|
3659
|
+
0,
|
|
3660
|
+
0,
|
|
3661
|
+
t.width,
|
|
3662
|
+
t.height
|
|
3663
|
+
);
|
|
3664
|
+
const i = n.getImageData(0, 0, t.width, t.height), o = r ? Uu(r, t.width * t.height) : void 0, a = Math.max(Bu(i, o), 0);
|
|
3665
|
+
return Math.min(Math.max(a / Ou, 0), 1);
|
|
3666
|
+
}
|
|
3667
|
+
function Bu(e, t) {
|
|
3668
|
+
const { data: r, width: s, height: n } = e, i = s * n, o = t && t.length >= i ? t : new Float32Array(i);
|
|
3669
|
+
for (let l = 0; l < i; l++) {
|
|
3670
|
+
const d = l * 4;
|
|
3671
|
+
o[l] = r[d] * 0.299 + r[d + 1] * 0.587 + r[d + 2] * 0.114;
|
|
3672
|
+
}
|
|
3673
|
+
const a = (s - 2) * (n - 2);
|
|
3674
|
+
if (a <= 0) return 0;
|
|
3675
|
+
let c = 0, u = 0;
|
|
3676
|
+
for (let l = 1; l < n - 1; l++)
|
|
3677
|
+
for (let d = 1; d < s - 1; d++) {
|
|
3678
|
+
const b = l * s + d, S = o[b - s] + // top
|
|
3679
|
+
o[b - 1] + // left
|
|
3680
|
+
-4 * o[b] + // center
|
|
3681
|
+
o[b + 1] + // right
|
|
3682
|
+
o[b + s];
|
|
3683
|
+
c += S, u += S * S;
|
|
3684
|
+
}
|
|
3685
|
+
const h = c / a;
|
|
3686
|
+
return Math.max(u / a - h * h, 0);
|
|
3687
|
+
}
|
|
3688
|
+
function Uu(e, t) {
|
|
3689
|
+
const r = ro.get(e);
|
|
3690
|
+
if (r && r.length >= t)
|
|
3691
|
+
return r;
|
|
3692
|
+
const s = r ? Math.max(t, Math.ceil(r.length * Ru)) : t, n = new Float32Array(s);
|
|
3693
|
+
return ro.set(e, n), n;
|
|
3694
|
+
}
|
|
3695
|
+
const Sc = 0.1, Tc = 0.42, As = 0.24, Ws = 0.14, Ks = 0.18, so = 0.12, no = 0.2, Du = 0.95, ju = 0.2, Vu = 1, Gu = 0, Hu = 1, zu = 2;
|
|
3696
|
+
function Cc(e) {
|
|
3697
|
+
var b;
|
|
3698
|
+
const { detections: t, width: r, height: s, sharpnessScore: n, resolveSharpnessScore: i } = e;
|
|
3651
3699
|
if (t.length === 0)
|
|
3652
3700
|
return {
|
|
3653
3701
|
hasFace: !1,
|
|
3654
3702
|
faceCount: 0,
|
|
3655
3703
|
confidence: 0,
|
|
3656
3704
|
captureScore: 0,
|
|
3705
|
+
sharpnessScore: 0,
|
|
3657
3706
|
isCentered: !1,
|
|
3658
3707
|
passesQualityChecks: !1,
|
|
3659
3708
|
feedback: "no-face",
|
|
@@ -3663,65 +3712,103 @@ function Ec(e) {
|
|
|
3663
3712
|
return {
|
|
3664
3713
|
hasFace: !0,
|
|
3665
3714
|
faceCount: t.length,
|
|
3666
|
-
confidence: ((
|
|
3715
|
+
confidence: ((b = t[0]) == null ? void 0 : b.confidence) ?? 0,
|
|
3667
3716
|
captureScore: 0,
|
|
3717
|
+
sharpnessScore: 0,
|
|
3668
3718
|
isCentered: !1,
|
|
3669
3719
|
passesQualityChecks: !1,
|
|
3670
3720
|
feedback: "multiple-faces",
|
|
3671
3721
|
message: "Multiple faces detected. Make sure only one person is in view."
|
|
3672
3722
|
};
|
|
3673
|
-
const
|
|
3674
|
-
if (!
|
|
3723
|
+
const o = t[0], a = o.boundingBox;
|
|
3724
|
+
if (!a)
|
|
3675
3725
|
return {
|
|
3676
3726
|
hasFace: !0,
|
|
3677
3727
|
faceCount: 1,
|
|
3678
|
-
confidence:
|
|
3728
|
+
confidence: o.confidence,
|
|
3679
3729
|
captureScore: 0,
|
|
3730
|
+
sharpnessScore: 0,
|
|
3680
3731
|
isCentered: !1,
|
|
3681
3732
|
passesQualityChecks: !1,
|
|
3682
3733
|
feedback: "face-unclear",
|
|
3683
3734
|
message: "Face detected, but the frame is unclear. Hold still and try again."
|
|
3684
3735
|
};
|
|
3685
|
-
const
|
|
3686
|
-
if (
|
|
3687
|
-
return Je(
|
|
3688
|
-
if (
|
|
3689
|
-
return Je(
|
|
3690
|
-
const
|
|
3691
|
-
if (
|
|
3692
|
-
return Je(
|
|
3693
|
-
if (
|
|
3694
|
-
return Je(
|
|
3695
|
-
if (
|
|
3696
|
-
return Je(
|
|
3697
|
-
if (
|
|
3698
|
-
return Je(
|
|
3699
|
-
const
|
|
3700
|
-
|
|
3736
|
+
const c = a.width * a.height / (r * s);
|
|
3737
|
+
if (c < Sc)
|
|
3738
|
+
return Je(o.confidence, "too-far", "Move closer to the camera.");
|
|
3739
|
+
if (c > Tc)
|
|
3740
|
+
return Je(o.confidence, "too-close", "Move slightly farther away.");
|
|
3741
|
+
const u = (a.originX + a.width / 2) / r, h = (a.originY + a.height / 2) / s;
|
|
3742
|
+
if (u < 0.5 - Ws)
|
|
3743
|
+
return Je(o.confidence, "move-left", "Move your face a little to the left.");
|
|
3744
|
+
if (u > 0.5 + Ws)
|
|
3745
|
+
return Je(o.confidence, "move-right", "Move your face a little to the right.");
|
|
3746
|
+
if (h < 0.5 - Ks)
|
|
3747
|
+
return Je(o.confidence, "move-down", "Move your face slightly down.");
|
|
3748
|
+
if (h > 0.5 + Ks)
|
|
3749
|
+
return Je(o.confidence, "move-up", "Move your face slightly up.");
|
|
3750
|
+
const l = Wu(o.keypoints);
|
|
3751
|
+
if (l)
|
|
3752
|
+
return Je(o.confidence, l.feedback, l.message);
|
|
3753
|
+
const d = n ?? (i == null ? void 0 : i()) ?? Vu;
|
|
3754
|
+
return d < Iu ? {
|
|
3755
|
+
hasFace: !0,
|
|
3756
|
+
faceCount: 1,
|
|
3757
|
+
confidence: o.confidence,
|
|
3758
|
+
captureScore: io(o.confidence, u, h, c, d),
|
|
3759
|
+
sharpnessScore: d,
|
|
3760
|
+
isCentered: !0,
|
|
3761
|
+
passesQualityChecks: !1,
|
|
3762
|
+
feedback: "too-blurry",
|
|
3763
|
+
message: "Hold still so the image is not blurry."
|
|
3764
|
+
} : {
|
|
3701
3765
|
hasFace: !0,
|
|
3702
3766
|
faceCount: 1,
|
|
3703
|
-
confidence:
|
|
3704
|
-
captureScore:
|
|
3767
|
+
confidence: o.confidence,
|
|
3768
|
+
captureScore: io(o.confidence, u, h, c, d),
|
|
3769
|
+
sharpnessScore: d,
|
|
3705
3770
|
isCentered: !0,
|
|
3706
3771
|
passesQualityChecks: !0,
|
|
3707
3772
|
feedback: "good",
|
|
3708
3773
|
message: "Hold still. Capturing automatically..."
|
|
3709
3774
|
};
|
|
3710
3775
|
}
|
|
3711
|
-
function
|
|
3712
|
-
const t = e[
|
|
3776
|
+
function Wu(e) {
|
|
3777
|
+
const t = e[Gu], r = e[Hu], s = e[zu];
|
|
3713
3778
|
if (!t || !r || !s)
|
|
3714
3779
|
return null;
|
|
3715
|
-
const n =
|
|
3716
|
-
if (
|
|
3780
|
+
const n = Math.abs(r.x - t.x);
|
|
3781
|
+
if (n === 0)
|
|
3717
3782
|
return null;
|
|
3718
|
-
const o = (s.x -
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3783
|
+
const i = (t.x + r.x) / 2, o = (s.x - i) / n;
|
|
3784
|
+
if (o <= -so)
|
|
3785
|
+
return {
|
|
3786
|
+
feedback: "turn-left",
|
|
3787
|
+
message: "Turn slightly left so your face points at the camera."
|
|
3788
|
+
};
|
|
3789
|
+
if (o >= so)
|
|
3790
|
+
return {
|
|
3791
|
+
feedback: "turn-right",
|
|
3792
|
+
message: "Turn slightly right so your face points at the camera."
|
|
3793
|
+
};
|
|
3794
|
+
const a = (t.y - r.y) / n;
|
|
3795
|
+
if (a >= no)
|
|
3796
|
+
return {
|
|
3797
|
+
feedback: "tilt-left",
|
|
3798
|
+
message: "Straighten your head — it is tilting to the right."
|
|
3799
|
+
};
|
|
3800
|
+
if (a <= -no)
|
|
3801
|
+
return {
|
|
3802
|
+
feedback: "tilt-right",
|
|
3803
|
+
message: "Straighten your head — it is tilting to the left."
|
|
3804
|
+
};
|
|
3805
|
+
const c = (t.y + r.y) / 2, u = (s.y - c) / n;
|
|
3806
|
+
return u >= Du ? {
|
|
3807
|
+
feedback: "look-up",
|
|
3808
|
+
message: "Raise your chin slightly so your face points at the camera."
|
|
3809
|
+
} : u <= ju ? {
|
|
3810
|
+
feedback: "look-down",
|
|
3811
|
+
message: "Lower your chin slightly so your face points at the camera."
|
|
3725
3812
|
} : null;
|
|
3726
3813
|
}
|
|
3727
3814
|
function Je(e, t, r) {
|
|
@@ -3730,55 +3817,72 @@ function Je(e, t, r) {
|
|
|
3730
3817
|
faceCount: 1,
|
|
3731
3818
|
confidence: e,
|
|
3732
3819
|
captureScore: 0,
|
|
3820
|
+
sharpnessScore: 0,
|
|
3733
3821
|
isCentered: !1,
|
|
3734
3822
|
passesQualityChecks: !1,
|
|
3735
3823
|
feedback: t,
|
|
3736
3824
|
message: r
|
|
3737
3825
|
};
|
|
3738
3826
|
}
|
|
3739
|
-
function
|
|
3740
|
-
const
|
|
3741
|
-
Math.abs(As -
|
|
3742
|
-
Math.abs(
|
|
3743
|
-
),
|
|
3744
|
-
return Number(
|
|
3827
|
+
function io(e, t, r, s, n) {
|
|
3828
|
+
const i = Math.abs(t - 0.5) / Ws, o = Math.abs(r - 0.5) / Ks, a = 1 - Math.min((i + o) / 2, 1), c = Math.max(
|
|
3829
|
+
Math.abs(As - Sc),
|
|
3830
|
+
Math.abs(Tc - As)
|
|
3831
|
+
), u = 1 - Math.min(Math.abs(s - As) / c, 1);
|
|
3832
|
+
return Number(
|
|
3833
|
+
(e * 0.4 + a * 0.25 + u * 0.1 + n * 0.25).toFixed(4)
|
|
3834
|
+
);
|
|
3745
3835
|
}
|
|
3746
|
-
const
|
|
3747
|
-
let
|
|
3748
|
-
function
|
|
3749
|
-
return
|
|
3836
|
+
const Ku = "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm", qu = "https://storage.googleapis.com/mediapipe-models/face_detector/blaze_face_short_range/float16/1/blaze_face_short_range.tflite", Xu = 0.7;
|
|
3837
|
+
let oo = null, ao = null, co = null;
|
|
3838
|
+
function Yu() {
|
|
3839
|
+
return oo ?? (oo = et.forVisionTasks(Ku)), oo;
|
|
3750
3840
|
}
|
|
3751
|
-
function
|
|
3752
|
-
return
|
|
3841
|
+
function Qu() {
|
|
3842
|
+
return ao ?? (ao = Pc("IMAGE")), ao;
|
|
3753
3843
|
}
|
|
3754
|
-
function
|
|
3755
|
-
return
|
|
3844
|
+
function Lc() {
|
|
3845
|
+
return co ?? (co = Pc("VIDEO")), co;
|
|
3756
3846
|
}
|
|
3757
|
-
async function
|
|
3758
|
-
const t = await
|
|
3847
|
+
async function Pc(e) {
|
|
3848
|
+
const t = await Yu();
|
|
3759
3849
|
return ie.createFromOptions(t, {
|
|
3760
|
-
baseOptions: { modelAssetPath:
|
|
3850
|
+
baseOptions: { modelAssetPath: qu },
|
|
3761
3851
|
runningMode: e,
|
|
3762
|
-
minDetectionConfidence:
|
|
3852
|
+
minDetectionConfidence: Xu
|
|
3763
3853
|
});
|
|
3764
3854
|
}
|
|
3765
|
-
async function
|
|
3766
|
-
const r = (await
|
|
3767
|
-
return
|
|
3768
|
-
detections:
|
|
3855
|
+
async function Mc(e) {
|
|
3856
|
+
const r = (await Qu()).detect(e);
|
|
3857
|
+
return Cc({
|
|
3858
|
+
detections: xc(r.detections),
|
|
3769
3859
|
width: e.naturalWidth,
|
|
3770
3860
|
height: e.naturalHeight
|
|
3771
3861
|
});
|
|
3772
3862
|
}
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3863
|
+
let ho = null;
|
|
3864
|
+
async function Ju(e, t) {
|
|
3865
|
+
const s = (await Lc()).detectForVideo(e, t), n = xc(s.detections);
|
|
3866
|
+
return Cc({
|
|
3867
|
+
detections: n,
|
|
3777
3868
|
width: e.videoWidth,
|
|
3778
|
-
height: e.videoHeight
|
|
3869
|
+
height: e.videoHeight,
|
|
3870
|
+
resolveSharpnessScore: n.length === 1 && n[0].boundingBox ? () => {
|
|
3871
|
+
const i = n[0].boundingBox;
|
|
3872
|
+
return ho ?? (ho = document.createElement("canvas")), Nu(
|
|
3873
|
+
e,
|
|
3874
|
+
{
|
|
3875
|
+
x: i.originX,
|
|
3876
|
+
y: i.originY,
|
|
3877
|
+
width: i.width,
|
|
3878
|
+
height: i.height
|
|
3879
|
+
},
|
|
3880
|
+
ho
|
|
3881
|
+
);
|
|
3882
|
+
} : void 0
|
|
3779
3883
|
});
|
|
3780
3884
|
}
|
|
3781
|
-
function
|
|
3885
|
+
function xc(e) {
|
|
3782
3886
|
return e.map((t) => {
|
|
3783
3887
|
var r;
|
|
3784
3888
|
return {
|
|
@@ -3796,42 +3900,42 @@ function Cc(e) {
|
|
|
3796
3900
|
};
|
|
3797
3901
|
});
|
|
3798
3902
|
}
|
|
3799
|
-
const
|
|
3800
|
-
function
|
|
3903
|
+
const Fc = "Capturing Face", $c = "Accept", Oc = "Take photo", Rc = "Retake", Ic = "Try again", qs = "Start a capture to see camera guidance here.";
|
|
3904
|
+
function Nc(e, t) {
|
|
3801
3905
|
return {
|
|
3802
3906
|
capturePreference: (e == null ? void 0 : e.capturePreference) ?? "auto-preferred",
|
|
3803
3907
|
allowMediaPickerFallback: (e == null ? void 0 : e.allowMediaPickerFallback) ?? !0,
|
|
3804
3908
|
component: t,
|
|
3805
|
-
label:
|
|
3909
|
+
label: Fc,
|
|
3806
3910
|
idleFeedbackLabel: qs,
|
|
3807
|
-
confirmLabel:
|
|
3808
|
-
captureLabel:
|
|
3809
|
-
retakeLabel:
|
|
3810
|
-
retryLabel:
|
|
3911
|
+
confirmLabel: $c,
|
|
3912
|
+
captureLabel: Oc,
|
|
3913
|
+
retakeLabel: Rc,
|
|
3914
|
+
retryLabel: Ic
|
|
3811
3915
|
};
|
|
3812
3916
|
}
|
|
3813
|
-
async function
|
|
3917
|
+
async function Zu(e) {
|
|
3814
3918
|
var n, i;
|
|
3815
3919
|
const t = /WhatsApp/i.test(e.userAgent ?? navigator.userAgent), r = e.hasMediaDevices ?? typeof ((n = navigator.mediaDevices) == null ? void 0 : n.getUserMedia) == "function";
|
|
3816
3920
|
let s = !1;
|
|
3817
|
-
return !t && r && e.capturePreference === "auto-preferred" && (s = await (((i = e.probeAutoCapture) == null ? void 0 : i.call(e)) ??
|
|
3921
|
+
return !t && r && e.capturePreference === "auto-preferred" && (s = await (((i = e.probeAutoCapture) == null ? void 0 : i.call(e)) ?? tl())), {
|
|
3818
3922
|
prefersMediaPicker: t,
|
|
3819
3923
|
supportsMediaDevices: r,
|
|
3820
3924
|
supportsAutoCapture: s
|
|
3821
3925
|
};
|
|
3822
3926
|
}
|
|
3823
|
-
function
|
|
3927
|
+
function el(e, t) {
|
|
3824
3928
|
const r = [];
|
|
3825
3929
|
return t.supportsMediaDevices && (e.capturePreference === "auto-preferred" && t.supportsAutoCapture && r.push("auto-camera"), r.push("manual-camera")), e.allowMediaPickerFallback && (r.length === 0 || r[r.length - 1] !== "media-picker") && r.push("media-picker"), {
|
|
3826
3930
|
steps: r,
|
|
3827
3931
|
capabilities: t
|
|
3828
3932
|
};
|
|
3829
3933
|
}
|
|
3830
|
-
async function
|
|
3934
|
+
async function tl() {
|
|
3831
3935
|
if (typeof window.requestAnimationFrame != "function" || typeof window.cancelAnimationFrame != "function" || !document.createElement("canvas").getContext("2d"))
|
|
3832
3936
|
return !1;
|
|
3833
3937
|
try {
|
|
3834
|
-
return await
|
|
3938
|
+
return await Lc(), !0;
|
|
3835
3939
|
} catch {
|
|
3836
3940
|
return !1;
|
|
3837
3941
|
}
|
|
@@ -3844,7 +3948,7 @@ class Xs extends Error {
|
|
|
3844
3948
|
});
|
|
3845
3949
|
}
|
|
3846
3950
|
}
|
|
3847
|
-
async function
|
|
3951
|
+
async function rl() {
|
|
3848
3952
|
var e;
|
|
3849
3953
|
if (!((e = navigator.mediaDevices) != null && e.getUserMedia))
|
|
3850
3954
|
throw new Xs("In-browser camera capture is not supported in this browser.");
|
|
@@ -3854,10 +3958,10 @@ async function Hu() {
|
|
|
3854
3958
|
audio: !1
|
|
3855
3959
|
});
|
|
3856
3960
|
} catch (t) {
|
|
3857
|
-
throw new Xs(
|
|
3961
|
+
throw new Xs(ol(t), { cause: t });
|
|
3858
3962
|
}
|
|
3859
3963
|
}
|
|
3860
|
-
async function
|
|
3964
|
+
async function sl(e, t = "Failed to start the camera preview.") {
|
|
3861
3965
|
if (e.readyState >= HTMLMediaElement.HAVE_CURRENT_DATA) {
|
|
3862
3966
|
await e.play();
|
|
3863
3967
|
return;
|
|
@@ -3873,11 +3977,11 @@ async function zu(e, t = "Failed to start the camera preview.") {
|
|
|
3873
3977
|
e.addEventListener("loadedmetadata", n, { once: !0 }), e.addEventListener("error", i, { once: !0 });
|
|
3874
3978
|
}), await e.play();
|
|
3875
3979
|
}
|
|
3876
|
-
function
|
|
3980
|
+
function nl(e) {
|
|
3877
3981
|
e.play().catch(() => {
|
|
3878
3982
|
});
|
|
3879
3983
|
}
|
|
3880
|
-
function
|
|
3984
|
+
function il() {
|
|
3881
3985
|
const e = document.createElement("canvas"), t = document.createElement("canvas");
|
|
3882
3986
|
let r = !1;
|
|
3883
3987
|
const s = (i) => {
|
|
@@ -3892,7 +3996,15 @@ function Ku() {
|
|
|
3892
3996
|
};
|
|
3893
3997
|
return {
|
|
3894
3998
|
async captureBlob(i) {
|
|
3895
|
-
return n(i, e),
|
|
3999
|
+
return n(i, e), uo(e);
|
|
4000
|
+
},
|
|
4001
|
+
captureWorkingFrame(i) {
|
|
4002
|
+
n(i, e);
|
|
4003
|
+
},
|
|
4004
|
+
promoteWorkingToBest() {
|
|
4005
|
+
if (!e.width || !e.height)
|
|
4006
|
+
throw new Error("No working frame to promote.");
|
|
4007
|
+
t.width = e.width, t.height = e.height, s(t).drawImage(e, 0, 0), r = !0;
|
|
3896
4008
|
},
|
|
3897
4009
|
storeBestFrame(i) {
|
|
3898
4010
|
n(i, t), r = !0;
|
|
@@ -3903,14 +4015,14 @@ function Ku() {
|
|
|
3903
4015
|
async storedBestFrameToBlob() {
|
|
3904
4016
|
if (!r)
|
|
3905
4017
|
throw new Error("No best frame is available.");
|
|
3906
|
-
return
|
|
4018
|
+
return uo(t);
|
|
3907
4019
|
},
|
|
3908
4020
|
resetStoredBestFrame() {
|
|
3909
4021
|
r = !1, t.width = 0, t.height = 0;
|
|
3910
4022
|
}
|
|
3911
4023
|
};
|
|
3912
4024
|
}
|
|
3913
|
-
function
|
|
4025
|
+
function Bc() {
|
|
3914
4026
|
return new Promise((e) => {
|
|
3915
4027
|
const t = document.createElement("input");
|
|
3916
4028
|
t.type = "file", t.accept = "image/*", t.capture = "user", t.style.display = "none", t.addEventListener("change", () => {
|
|
@@ -3931,7 +4043,7 @@ function Oc() {
|
|
|
3931
4043
|
document.body.appendChild(t), t.click();
|
|
3932
4044
|
});
|
|
3933
4045
|
}
|
|
3934
|
-
function
|
|
4046
|
+
function Uc(e) {
|
|
3935
4047
|
return new Promise((t, r) => {
|
|
3936
4048
|
const s = URL.createObjectURL(e), n = new Image();
|
|
3937
4049
|
n.onload = () => {
|
|
@@ -3941,13 +4053,13 @@ function Rc(e) {
|
|
|
3941
4053
|
}, n.src = s;
|
|
3942
4054
|
});
|
|
3943
4055
|
}
|
|
3944
|
-
function
|
|
4056
|
+
function Kl(e) {
|
|
3945
4057
|
return new Promise((t, r) => {
|
|
3946
4058
|
const s = new FileReader();
|
|
3947
4059
|
s.onload = () => t(s.result), s.onerror = () => r(new Error("Failed to read image")), s.readAsDataURL(e);
|
|
3948
4060
|
});
|
|
3949
4061
|
}
|
|
3950
|
-
function
|
|
4062
|
+
function ol(e) {
|
|
3951
4063
|
if (e instanceof DOMException)
|
|
3952
4064
|
switch (e.name) {
|
|
3953
4065
|
case "NotAllowedError":
|
|
@@ -3962,7 +4074,7 @@ function qu(e) {
|
|
|
3962
4074
|
}
|
|
3963
4075
|
return e instanceof Error ? e.message : "Failed to access the camera.";
|
|
3964
4076
|
}
|
|
3965
|
-
function
|
|
4077
|
+
function uo(e) {
|
|
3966
4078
|
return new Promise((t, r) => {
|
|
3967
4079
|
e.toBlob((s) => {
|
|
3968
4080
|
if (!s) {
|
|
@@ -3973,22 +4085,22 @@ function oo(e) {
|
|
|
3973
4085
|
}, "image/jpeg", 0.92);
|
|
3974
4086
|
});
|
|
3975
4087
|
}
|
|
3976
|
-
const
|
|
3977
|
-
async function
|
|
4088
|
+
const al = "2147483647";
|
|
4089
|
+
async function cl(e, t) {
|
|
3978
4090
|
var n;
|
|
3979
|
-
const r =
|
|
4091
|
+
const r = Nc(e, t);
|
|
3980
4092
|
if (t)
|
|
3981
|
-
return
|
|
4093
|
+
return hl(r);
|
|
3982
4094
|
if (!(typeof ((n = navigator.mediaDevices) == null ? void 0 : n.getUserMedia) == "function")) {
|
|
3983
4095
|
if (r.allowMediaPickerFallback)
|
|
3984
|
-
return
|
|
4096
|
+
return Bc();
|
|
3985
4097
|
throw new Error("No supported capture strategy is available in this environment.");
|
|
3986
4098
|
}
|
|
3987
|
-
return
|
|
4099
|
+
return ll(r);
|
|
3988
4100
|
}
|
|
3989
|
-
async function
|
|
3990
|
-
await Promise.resolve().then(() =>
|
|
3991
|
-
const t =
|
|
4101
|
+
async function hl(e) {
|
|
4102
|
+
await Promise.resolve().then(() => Wc);
|
|
4103
|
+
const t = ul(e.component);
|
|
3992
4104
|
return t.embedded = !0, t.capturePreference = e.capturePreference, t.allowMediaPickerFallback = e.allowMediaPickerFallback, new Promise((r, s) => {
|
|
3993
4105
|
const n = () => {
|
|
3994
4106
|
t.removeEventListener("simface-captured", i), t.removeEventListener("simface-cancelled", o), t.removeEventListener("simface-error", a), t.active = !1;
|
|
@@ -4004,21 +4116,21 @@ async function Qu(e) {
|
|
|
4004
4116
|
});
|
|
4005
4117
|
});
|
|
4006
4118
|
}
|
|
4007
|
-
function
|
|
4119
|
+
function ul(e) {
|
|
4008
4120
|
if (!e)
|
|
4009
4121
|
throw new Error("Embedded capture requires a simface-capture component.");
|
|
4010
4122
|
if (e.tagName.toLowerCase() !== "simface-capture")
|
|
4011
4123
|
throw new Error("Embedded capture requires a simface-capture component.");
|
|
4012
4124
|
return e;
|
|
4013
4125
|
}
|
|
4014
|
-
async function
|
|
4015
|
-
return await Promise.resolve().then(() =>
|
|
4126
|
+
async function ll(e) {
|
|
4127
|
+
return await Promise.resolve().then(() => Wc), new Promise((t, r) => {
|
|
4016
4128
|
let s = !1, n = null;
|
|
4017
4129
|
const i = document.createElement("div");
|
|
4018
|
-
i.setAttribute("data-simface-camera-overlay", "true"), i.setAttribute("role", "dialog"), i.setAttribute("aria-modal", "true"),
|
|
4130
|
+
i.setAttribute("data-simface-camera-overlay", "true"), i.setAttribute("role", "dialog"), i.setAttribute("aria-modal", "true"), dl(i, {
|
|
4019
4131
|
position: "fixed",
|
|
4020
4132
|
inset: "0",
|
|
4021
|
-
zIndex:
|
|
4133
|
+
zIndex: al,
|
|
4022
4134
|
display: "flex",
|
|
4023
4135
|
alignItems: "center",
|
|
4024
4136
|
justifyContent: "center",
|
|
@@ -4030,29 +4142,29 @@ async function Zu(e) {
|
|
|
4030
4142
|
o.label = e.label, o.confirmLabel = e.confirmLabel, o.captureLabel = e.captureLabel, o.retakeLabel = e.retakeLabel, o.retryLabel = e.retryLabel, o.capturePreference = e.capturePreference, o.allowMediaPickerFallback = e.allowMediaPickerFallback, i.appendChild(o), document.body.appendChild(i);
|
|
4031
4143
|
const a = () => {
|
|
4032
4144
|
n && window.removeEventListener("keydown", n), o.removeEventListener("simface-captured", u), o.removeEventListener("simface-cancelled", h), o.removeEventListener("simface-error", l), o.active = !1, i.remove();
|
|
4033
|
-
}, c = (
|
|
4145
|
+
}, c = (d, b) => {
|
|
4034
4146
|
if (!s) {
|
|
4035
|
-
if (s = !0, a(),
|
|
4036
|
-
r(
|
|
4147
|
+
if (s = !0, a(), b) {
|
|
4148
|
+
r(b);
|
|
4037
4149
|
return;
|
|
4038
4150
|
}
|
|
4039
|
-
t(
|
|
4151
|
+
t(d);
|
|
4040
4152
|
}
|
|
4041
|
-
}, u = (
|
|
4042
|
-
c(
|
|
4153
|
+
}, u = (d) => {
|
|
4154
|
+
c(d.detail.imageBlob);
|
|
4043
4155
|
}, h = () => {
|
|
4044
4156
|
c(null);
|
|
4045
|
-
}, l = (
|
|
4046
|
-
c(null, new Error(
|
|
4157
|
+
}, l = (d) => {
|
|
4158
|
+
c(null, new Error(d.detail.error));
|
|
4047
4159
|
};
|
|
4048
|
-
n = (
|
|
4049
|
-
|
|
4050
|
-
}, o.addEventListener("simface-captured", u), o.addEventListener("simface-cancelled", h), o.addEventListener("simface-error", l), window.addEventListener("keydown", n), o.startCapture().catch((
|
|
4051
|
-
c(null,
|
|
4160
|
+
n = (d) => {
|
|
4161
|
+
d.key === "Escape" && c(null);
|
|
4162
|
+
}, o.addEventListener("simface-captured", u), o.addEventListener("simface-cancelled", h), o.addEventListener("simface-error", l), window.addEventListener("keydown", n), o.startCapture().catch((d) => {
|
|
4163
|
+
c(null, d instanceof Error ? d : new Error("Popup capture failed."));
|
|
4052
4164
|
});
|
|
4053
4165
|
});
|
|
4054
4166
|
}
|
|
4055
|
-
function
|
|
4167
|
+
function dl(e, t) {
|
|
4056
4168
|
Object.assign(e.style, t);
|
|
4057
4169
|
}
|
|
4058
4170
|
/**
|
|
@@ -4060,8 +4172,8 @@ function e2(e, t) {
|
|
|
4060
4172
|
* Copyright 2019 Google LLC
|
|
4061
4173
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4062
4174
|
*/
|
|
4063
|
-
const xr = globalThis, qn = xr.ShadowRoot && (xr.ShadyCSS === void 0 || xr.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Xn = Symbol(),
|
|
4064
|
-
let
|
|
4175
|
+
const xr = globalThis, qn = xr.ShadowRoot && (xr.ShadyCSS === void 0 || xr.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Xn = Symbol(), lo = /* @__PURE__ */ new WeakMap();
|
|
4176
|
+
let Dc = class {
|
|
4065
4177
|
constructor(t, r, s) {
|
|
4066
4178
|
if (this._$cssResult$ = !0, s !== Xn) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
4067
4179
|
this.cssText = t, this.t = r;
|
|
@@ -4071,7 +4183,7 @@ let Ic = class {
|
|
|
4071
4183
|
const r = this.t;
|
|
4072
4184
|
if (qn && t === void 0) {
|
|
4073
4185
|
const s = r !== void 0 && r.length === 1;
|
|
4074
|
-
s && (t =
|
|
4186
|
+
s && (t = lo.get(r)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && lo.set(r, t));
|
|
4075
4187
|
}
|
|
4076
4188
|
return t;
|
|
4077
4189
|
}
|
|
@@ -4079,33 +4191,33 @@ let Ic = class {
|
|
|
4079
4191
|
return this.cssText;
|
|
4080
4192
|
}
|
|
4081
4193
|
};
|
|
4082
|
-
const
|
|
4194
|
+
const fl = (e) => new Dc(typeof e == "string" ? e : e + "", void 0, Xn), pl = (e, ...t) => {
|
|
4083
4195
|
const r = e.length === 1 ? e[0] : t.reduce((s, n, i) => s + ((o) => {
|
|
4084
4196
|
if (o._$cssResult$ === !0) return o.cssText;
|
|
4085
4197
|
if (typeof o == "number") return o;
|
|
4086
4198
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
4087
4199
|
})(n) + e[i + 1], e[0]);
|
|
4088
|
-
return new
|
|
4089
|
-
},
|
|
4200
|
+
return new Dc(r, e, Xn);
|
|
4201
|
+
}, gl = (e, t) => {
|
|
4090
4202
|
if (qn) e.adoptedStyleSheets = t.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet);
|
|
4091
4203
|
else for (const r of t) {
|
|
4092
4204
|
const s = document.createElement("style"), n = xr.litNonce;
|
|
4093
4205
|
n !== void 0 && s.setAttribute("nonce", n), s.textContent = r.cssText, e.appendChild(s);
|
|
4094
4206
|
}
|
|
4095
|
-
},
|
|
4207
|
+
}, fo = qn ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
|
|
4096
4208
|
let r = "";
|
|
4097
4209
|
for (const s of t.cssRules) r += s.cssText;
|
|
4098
|
-
return
|
|
4210
|
+
return fl(r);
|
|
4099
4211
|
})(e) : e;
|
|
4100
4212
|
/**
|
|
4101
4213
|
* @license
|
|
4102
4214
|
* Copyright 2017 Google LLC
|
|
4103
4215
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4104
4216
|
*/
|
|
4105
|
-
const { is:
|
|
4217
|
+
const { is: ml, defineProperty: yl, getOwnPropertyDescriptor: bl, getOwnPropertyNames: vl, getOwnPropertySymbols: _l, getPrototypeOf: wl } = Object, We = globalThis, po = We.trustedTypes, Al = po ? po.emptyScript : "", Es = We.reactiveElementPolyfillSupport, ir = (e, t) => e, Ur = { toAttribute(e, t) {
|
|
4106
4218
|
switch (t) {
|
|
4107
4219
|
case Boolean:
|
|
4108
|
-
e = e ?
|
|
4220
|
+
e = e ? Al : null;
|
|
4109
4221
|
break;
|
|
4110
4222
|
case Object:
|
|
4111
4223
|
case Array:
|
|
@@ -4130,7 +4242,7 @@ const { is: n2, defineProperty: i2, getOwnPropertyDescriptor: o2, getOwnProperty
|
|
|
4130
4242
|
}
|
|
4131
4243
|
}
|
|
4132
4244
|
return r;
|
|
4133
|
-
} }, Yn = (e, t) => !
|
|
4245
|
+
} }, Yn = (e, t) => !ml(e, t), go = { attribute: !0, type: String, converter: Ur, reflect: !1, useDefault: !1, hasChanged: Yn };
|
|
4134
4246
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), We.litPropertyMetadata ?? (We.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
4135
4247
|
let _t = class extends HTMLElement {
|
|
4136
4248
|
static addInitializer(t) {
|
|
@@ -4139,14 +4251,14 @@ let _t = class extends HTMLElement {
|
|
|
4139
4251
|
static get observedAttributes() {
|
|
4140
4252
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
4141
4253
|
}
|
|
4142
|
-
static createProperty(t, r =
|
|
4254
|
+
static createProperty(t, r = go) {
|
|
4143
4255
|
if (r.state && (r.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((r = Object.create(r)).wrapped = !0), this.elementProperties.set(t, r), !r.noAccessor) {
|
|
4144
4256
|
const s = Symbol(), n = this.getPropertyDescriptor(t, s, r);
|
|
4145
|
-
n !== void 0 &&
|
|
4257
|
+
n !== void 0 && yl(this.prototype, t, n);
|
|
4146
4258
|
}
|
|
4147
4259
|
}
|
|
4148
4260
|
static getPropertyDescriptor(t, r, s) {
|
|
4149
|
-
const { get: n, set: i } =
|
|
4261
|
+
const { get: n, set: i } = bl(this.prototype, t) ?? { get() {
|
|
4150
4262
|
return this[r];
|
|
4151
4263
|
}, set(o) {
|
|
4152
4264
|
this[r] = o;
|
|
@@ -4157,17 +4269,17 @@ let _t = class extends HTMLElement {
|
|
|
4157
4269
|
}, configurable: !0, enumerable: !0 };
|
|
4158
4270
|
}
|
|
4159
4271
|
static getPropertyOptions(t) {
|
|
4160
|
-
return this.elementProperties.get(t) ??
|
|
4272
|
+
return this.elementProperties.get(t) ?? go;
|
|
4161
4273
|
}
|
|
4162
4274
|
static _$Ei() {
|
|
4163
4275
|
if (this.hasOwnProperty(ir("elementProperties"))) return;
|
|
4164
|
-
const t =
|
|
4276
|
+
const t = wl(this);
|
|
4165
4277
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
4166
4278
|
}
|
|
4167
4279
|
static finalize() {
|
|
4168
4280
|
if (this.hasOwnProperty(ir("finalized"))) return;
|
|
4169
4281
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ir("properties"))) {
|
|
4170
|
-
const r = this.properties, s = [...
|
|
4282
|
+
const r = this.properties, s = [...vl(r), ..._l(r)];
|
|
4171
4283
|
for (const n of s) this.createProperty(n, r[n]);
|
|
4172
4284
|
}
|
|
4173
4285
|
const t = this[Symbol.metadata];
|
|
@@ -4186,8 +4298,8 @@ let _t = class extends HTMLElement {
|
|
|
4186
4298
|
const r = [];
|
|
4187
4299
|
if (Array.isArray(t)) {
|
|
4188
4300
|
const s = new Set(t.flat(1 / 0).reverse());
|
|
4189
|
-
for (const n of s) r.unshift(
|
|
4190
|
-
} else t !== void 0 && r.push(
|
|
4301
|
+
for (const n of s) r.unshift(fo(n));
|
|
4302
|
+
} else t !== void 0 && r.push(fo(t));
|
|
4191
4303
|
return r;
|
|
4192
4304
|
}
|
|
4193
4305
|
static _$Eu(t, r) {
|
|
@@ -4216,7 +4328,7 @@ let _t = class extends HTMLElement {
|
|
|
4216
4328
|
}
|
|
4217
4329
|
createRenderRoot() {
|
|
4218
4330
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
4219
|
-
return
|
|
4331
|
+
return gl(t, this.constructor.elementStyles), t;
|
|
4220
4332
|
}
|
|
4221
4333
|
connectedCallback() {
|
|
4222
4334
|
var t;
|
|
@@ -4341,50 +4453,50 @@ _t.elementStyles = [], _t.shadowRootOptions = { mode: "open" }, _t[ir("elementPr
|
|
|
4341
4453
|
* Copyright 2017 Google LLC
|
|
4342
4454
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4343
4455
|
*/
|
|
4344
|
-
const or = globalThis,
|
|
4345
|
-
\f\r]`, Zt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
4346
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
4347
|
-
function
|
|
4456
|
+
const or = globalThis, mo = (e) => e, Dr = or.trustedTypes, yo = Dr ? Dr.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, jc = "$lit$", He = `lit$${Math.random().toFixed(9).slice(2)}$`, Vc = "?" + He, El = `<${Vc}>`, ft = document, fr = () => ft.createComment(""), pr = (e) => e === null || typeof e != "object" && typeof e != "function", Qn = Array.isArray, kl = (e) => Qn(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", ks = `[
|
|
4457
|
+
\f\r]`, Zt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, bo = /-->/g, vo = />/g, Ze = RegExp(`>|${ks}(?:([^\\s"'>=/]+)(${ks}*=${ks}*(?:[^
|
|
4458
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), _o = /'/g, wo = /"/g, Gc = /^(?:script|style|textarea|title)$/i, Sl = (e) => (t, ...r) => ({ _$litType$: e, strings: t, values: r }), $e = Sl(1), It = Symbol.for("lit-noChange"), K = Symbol.for("lit-nothing"), Ao = /* @__PURE__ */ new WeakMap(), st = ft.createTreeWalker(ft, 129);
|
|
4459
|
+
function Hc(e, t) {
|
|
4348
4460
|
if (!Qn(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
4349
|
-
return
|
|
4461
|
+
return yo !== void 0 ? yo.createHTML(t) : t;
|
|
4350
4462
|
}
|
|
4351
|
-
const
|
|
4463
|
+
const Tl = (e, t) => {
|
|
4352
4464
|
const r = e.length - 1, s = [];
|
|
4353
4465
|
let n, i = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = Zt;
|
|
4354
4466
|
for (let a = 0; a < r; a++) {
|
|
4355
4467
|
const c = e[a];
|
|
4356
|
-
let u, h, l = -1,
|
|
4357
|
-
for (;
|
|
4358
|
-
const
|
|
4359
|
-
i += o === Zt ? c +
|
|
4468
|
+
let u, h, l = -1, d = 0;
|
|
4469
|
+
for (; d < c.length && (o.lastIndex = d, h = o.exec(c), h !== null); ) d = o.lastIndex, o === Zt ? h[1] === "!--" ? o = bo : h[1] !== void 0 ? o = vo : h[2] !== void 0 ? (Gc.test(h[2]) && (n = RegExp("</" + h[2], "g")), o = Ze) : h[3] !== void 0 && (o = Ze) : o === Ze ? h[0] === ">" ? (o = n ?? Zt, l = -1) : h[1] === void 0 ? l = -2 : (l = o.lastIndex - h[2].length, u = h[1], o = h[3] === void 0 ? Ze : h[3] === '"' ? wo : _o) : o === wo || o === _o ? o = Ze : o === bo || o === vo ? o = Zt : (o = Ze, n = void 0);
|
|
4470
|
+
const b = o === Ze && e[a + 1].startsWith("/>") ? " " : "";
|
|
4471
|
+
i += o === Zt ? c + El : l >= 0 ? (s.push(u), c.slice(0, l) + jc + c.slice(l) + He + b) : c + He + (l === -2 ? a : b);
|
|
4360
4472
|
}
|
|
4361
|
-
return [
|
|
4473
|
+
return [Hc(e, i + (e[r] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
4362
4474
|
};
|
|
4363
|
-
class
|
|
4475
|
+
class gr {
|
|
4364
4476
|
constructor({ strings: t, _$litType$: r }, s) {
|
|
4365
4477
|
let n;
|
|
4366
4478
|
this.parts = [];
|
|
4367
4479
|
let i = 0, o = 0;
|
|
4368
|
-
const a = t.length - 1, c = this.parts, [u, h] =
|
|
4369
|
-
if (this.el =
|
|
4480
|
+
const a = t.length - 1, c = this.parts, [u, h] = Tl(t, r);
|
|
4481
|
+
if (this.el = gr.createElement(u, s), st.currentNode = this.el.content, r === 2 || r === 3) {
|
|
4370
4482
|
const l = this.el.content.firstChild;
|
|
4371
4483
|
l.replaceWith(...l.childNodes);
|
|
4372
4484
|
}
|
|
4373
4485
|
for (; (n = st.nextNode()) !== null && c.length < a; ) {
|
|
4374
4486
|
if (n.nodeType === 1) {
|
|
4375
|
-
if (n.hasAttributes()) for (const l of n.getAttributeNames()) if (l.endsWith(
|
|
4376
|
-
const
|
|
4377
|
-
c.push({ type: 1, index: i, name:
|
|
4487
|
+
if (n.hasAttributes()) for (const l of n.getAttributeNames()) if (l.endsWith(jc)) {
|
|
4488
|
+
const d = h[o++], b = n.getAttribute(l).split(He), S = /([.?@])?(.*)/.exec(d);
|
|
4489
|
+
c.push({ type: 1, index: i, name: S[2], strings: b, ctor: S[1] === "." ? Ll : S[1] === "?" ? Pl : S[1] === "@" ? Ml : us }), n.removeAttribute(l);
|
|
4378
4490
|
} else l.startsWith(He) && (c.push({ type: 6, index: i }), n.removeAttribute(l));
|
|
4379
|
-
if (
|
|
4380
|
-
const l = n.textContent.split(He),
|
|
4381
|
-
if (
|
|
4491
|
+
if (Gc.test(n.tagName)) {
|
|
4492
|
+
const l = n.textContent.split(He), d = l.length - 1;
|
|
4493
|
+
if (d > 0) {
|
|
4382
4494
|
n.textContent = Dr ? Dr.emptyScript : "";
|
|
4383
|
-
for (let
|
|
4384
|
-
n.append(l[
|
|
4495
|
+
for (let b = 0; b < d; b++) n.append(l[b], fr()), st.nextNode(), c.push({ type: 2, index: ++i });
|
|
4496
|
+
n.append(l[d], fr());
|
|
4385
4497
|
}
|
|
4386
4498
|
}
|
|
4387
|
-
} else if (n.nodeType === 8) if (n.data ===
|
|
4499
|
+
} else if (n.nodeType === 8) if (n.data === Vc) c.push({ type: 2, index: i });
|
|
4388
4500
|
else {
|
|
4389
4501
|
let l = -1;
|
|
4390
4502
|
for (; (l = n.data.indexOf(He, l + 1)) !== -1; ) c.push({ type: 7, index: i }), l += He.length - 1;
|
|
@@ -4404,7 +4516,7 @@ function Nt(e, t, r = e, s) {
|
|
|
4404
4516
|
const i = pr(t) ? void 0 : t._$litDirective$;
|
|
4405
4517
|
return (n == null ? void 0 : n.constructor) !== i && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), i === void 0 ? n = void 0 : (n = new i(e), n._$AT(e, r, s)), s !== void 0 ? (r._$Co ?? (r._$Co = []))[s] = n : r._$Cl = n), n !== void 0 && (t = Nt(e, n._$AS(e, t.values), n, s)), t;
|
|
4406
4518
|
}
|
|
4407
|
-
class
|
|
4519
|
+
class Cl {
|
|
4408
4520
|
constructor(t, r) {
|
|
4409
4521
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = r;
|
|
4410
4522
|
}
|
|
@@ -4421,7 +4533,7 @@ class m2 {
|
|
|
4421
4533
|
for (; c !== void 0; ) {
|
|
4422
4534
|
if (o === c.index) {
|
|
4423
4535
|
let u;
|
|
4424
|
-
c.type === 2 ? u = new kr(i, i.nextSibling, this, t) : c.type === 1 ? u = new c.ctor(i, c.name, c.strings, this, t) : c.type === 6 && (u = new
|
|
4536
|
+
c.type === 2 ? u = new kr(i, i.nextSibling, this, t) : c.type === 1 ? u = new c.ctor(i, c.name, c.strings, this, t) : c.type === 6 && (u = new xl(i, this, t)), this._$AV.push(u), c = s[++a];
|
|
4425
4537
|
}
|
|
4426
4538
|
o !== (c == null ? void 0 : c.index) && (i = st.nextNode(), o++);
|
|
4427
4539
|
}
|
|
@@ -4452,7 +4564,7 @@ class kr {
|
|
|
4452
4564
|
return this._$AB;
|
|
4453
4565
|
}
|
|
4454
4566
|
_$AI(t, r = this) {
|
|
4455
|
-
t = Nt(this, t, r), pr(t) ? t === K || t == null || t === "" ? (this._$AH !== K && this._$AR(), this._$AH = K) : t !== this._$AH && t !== It && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) :
|
|
4567
|
+
t = Nt(this, t, r), pr(t) ? t === K || t == null || t === "" ? (this._$AH !== K && this._$AR(), this._$AH = K) : t !== this._$AH && t !== It && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : kl(t) ? this.k(t) : this._(t);
|
|
4456
4568
|
}
|
|
4457
4569
|
O(t) {
|
|
4458
4570
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -4465,16 +4577,16 @@ class kr {
|
|
|
4465
4577
|
}
|
|
4466
4578
|
$(t) {
|
|
4467
4579
|
var i;
|
|
4468
|
-
const { values: r, _$litType$: s } = t, n = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el =
|
|
4580
|
+
const { values: r, _$litType$: s } = t, n = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = gr.createElement(Hc(s.h, s.h[0]), this.options)), s);
|
|
4469
4581
|
if (((i = this._$AH) == null ? void 0 : i._$AD) === n) this._$AH.p(r);
|
|
4470
4582
|
else {
|
|
4471
|
-
const o = new
|
|
4583
|
+
const o = new Cl(n, this), a = o.u(this.options);
|
|
4472
4584
|
o.p(r), this.T(a), this._$AH = o;
|
|
4473
4585
|
}
|
|
4474
4586
|
}
|
|
4475
4587
|
_$AC(t) {
|
|
4476
|
-
let r =
|
|
4477
|
-
return r === void 0 &&
|
|
4588
|
+
let r = Ao.get(t.strings);
|
|
4589
|
+
return r === void 0 && Ao.set(t.strings, r = new gr(t)), r;
|
|
4478
4590
|
}
|
|
4479
4591
|
k(t) {
|
|
4480
4592
|
Qn(this._$AH) || (this._$AH = [], this._$AR());
|
|
@@ -4486,8 +4598,8 @@ class kr {
|
|
|
4486
4598
|
_$AR(t = this._$AA.nextSibling, r) {
|
|
4487
4599
|
var s;
|
|
4488
4600
|
for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, r); t !== this._$AB; ) {
|
|
4489
|
-
const n =
|
|
4490
|
-
|
|
4601
|
+
const n = mo(t).nextSibling;
|
|
4602
|
+
mo(t).remove(), t = n;
|
|
4491
4603
|
}
|
|
4492
4604
|
}
|
|
4493
4605
|
setConnected(t) {
|
|
@@ -4520,7 +4632,7 @@ class us {
|
|
|
4520
4632
|
t === K ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
4521
4633
|
}
|
|
4522
4634
|
}
|
|
4523
|
-
class
|
|
4635
|
+
class Ll extends us {
|
|
4524
4636
|
constructor() {
|
|
4525
4637
|
super(...arguments), this.type = 3;
|
|
4526
4638
|
}
|
|
@@ -4528,7 +4640,7 @@ class g2 extends us {
|
|
|
4528
4640
|
this.element[this.name] = t === K ? void 0 : t;
|
|
4529
4641
|
}
|
|
4530
4642
|
}
|
|
4531
|
-
class
|
|
4643
|
+
class Pl extends us {
|
|
4532
4644
|
constructor() {
|
|
4533
4645
|
super(...arguments), this.type = 4;
|
|
4534
4646
|
}
|
|
@@ -4536,7 +4648,7 @@ class y2 extends us {
|
|
|
4536
4648
|
this.element.toggleAttribute(this.name, !!t && t !== K);
|
|
4537
4649
|
}
|
|
4538
4650
|
}
|
|
4539
|
-
class
|
|
4651
|
+
class Ml extends us {
|
|
4540
4652
|
constructor(t, r, s, n, i) {
|
|
4541
4653
|
super(t, r, s, n, i), this.type = 5;
|
|
4542
4654
|
}
|
|
@@ -4550,7 +4662,7 @@ class b2 extends us {
|
|
|
4550
4662
|
typeof this._$AH == "function" ? this._$AH.call(((r = this.options) == null ? void 0 : r.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
4551
4663
|
}
|
|
4552
4664
|
}
|
|
4553
|
-
class
|
|
4665
|
+
class xl {
|
|
4554
4666
|
constructor(t, r, s) {
|
|
4555
4667
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = r, this.options = s;
|
|
4556
4668
|
}
|
|
@@ -4562,8 +4674,8 @@ class v2 {
|
|
|
4562
4674
|
}
|
|
4563
4675
|
}
|
|
4564
4676
|
const Ss = or.litHtmlPolyfillSupport;
|
|
4565
|
-
Ss == null || Ss(
|
|
4566
|
-
const
|
|
4677
|
+
Ss == null || Ss(gr, kr), (or.litHtmlVersions ?? (or.litHtmlVersions = [])).push("3.3.2");
|
|
4678
|
+
const Fl = (e, t, r) => {
|
|
4567
4679
|
const s = (r == null ? void 0 : r.renderBefore) ?? t;
|
|
4568
4680
|
let n = s._$litPart$;
|
|
4569
4681
|
if (n === void 0) {
|
|
@@ -4589,7 +4701,7 @@ class ar extends _t {
|
|
|
4589
4701
|
}
|
|
4590
4702
|
update(t) {
|
|
4591
4703
|
const r = this.render();
|
|
4592
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
4704
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Fl(r, this.renderRoot, this.renderOptions);
|
|
4593
4705
|
}
|
|
4594
4706
|
connectedCallback() {
|
|
4595
4707
|
var t;
|
|
@@ -4603,8 +4715,8 @@ class ar extends _t {
|
|
|
4603
4715
|
return It;
|
|
4604
4716
|
}
|
|
4605
4717
|
}
|
|
4606
|
-
var
|
|
4607
|
-
ar._$litElement$ = !0, ar.finalized = !0, (
|
|
4718
|
+
var Eo;
|
|
4719
|
+
ar._$litElement$ = !0, ar.finalized = !0, (Eo = ht.litElementHydrateSupport) == null || Eo.call(ht, { LitElement: ar });
|
|
4608
4720
|
const Ts = ht.litElementPolyfillSupport;
|
|
4609
4721
|
Ts == null || Ts({ LitElement: ar });
|
|
4610
4722
|
(ht.litElementVersions ?? (ht.litElementVersions = [])).push("4.2.2");
|
|
@@ -4613,7 +4725,7 @@ Ts == null || Ts({ LitElement: ar });
|
|
|
4613
4725
|
* Copyright 2017 Google LLC
|
|
4614
4726
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4615
4727
|
*/
|
|
4616
|
-
const
|
|
4728
|
+
const $l = (e) => (t, r) => {
|
|
4617
4729
|
r !== void 0 ? r.addInitializer(() => {
|
|
4618
4730
|
customElements.define(e, t);
|
|
4619
4731
|
}) : customElements.define(e, t);
|
|
@@ -4623,7 +4735,7 @@ const w2 = (e) => (t, r) => {
|
|
|
4623
4735
|
* Copyright 2017 Google LLC
|
|
4624
4736
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4625
4737
|
*/
|
|
4626
|
-
const
|
|
4738
|
+
const Ol = { attribute: !0, type: String, converter: Ur, reflect: !1, hasChanged: Yn }, Rl = (e = Ol, t, r) => {
|
|
4627
4739
|
const { kind: s, metadata: n } = r;
|
|
4628
4740
|
let i = globalThis.litPropertyMetadata.get(n);
|
|
4629
4741
|
if (i === void 0 && globalThis.litPropertyMetadata.set(n, i = /* @__PURE__ */ new Map()), s === "setter" && ((e = Object.create(e)).wrapped = !0), i.set(r.name, e), s === "accessor") {
|
|
@@ -4645,7 +4757,7 @@ const A2 = { attribute: !0, type: String, converter: Ur, reflect: !1, hasChanged
|
|
|
4645
4757
|
throw Error("Unsupported decorator location: " + s);
|
|
4646
4758
|
};
|
|
4647
4759
|
function Ee(e) {
|
|
4648
|
-
return (t, r) => typeof r == "object" ?
|
|
4760
|
+
return (t, r) => typeof r == "object" ? Rl(e, t, r) : ((s, n, i) => {
|
|
4649
4761
|
const o = n.hasOwnProperty(i);
|
|
4650
4762
|
return n.constructor.createProperty(i, s), o ? Object.getOwnPropertyDescriptor(n, i) : void 0;
|
|
4651
4763
|
})(e, t, r);
|
|
@@ -4663,37 +4775,37 @@ function Ye(e) {
|
|
|
4663
4775
|
* Copyright 2017 Google LLC
|
|
4664
4776
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4665
4777
|
*/
|
|
4666
|
-
const
|
|
4778
|
+
const Il = (e, t, r) => (r.configurable = !0, r.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(e, t, r), r);
|
|
4667
4779
|
/**
|
|
4668
4780
|
* @license
|
|
4669
4781
|
* Copyright 2017 Google LLC
|
|
4670
4782
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4671
4783
|
*/
|
|
4672
|
-
function
|
|
4784
|
+
function Nl(e, t) {
|
|
4673
4785
|
return (r, s, n) => {
|
|
4674
4786
|
const i = (o) => {
|
|
4675
4787
|
var a;
|
|
4676
4788
|
return ((a = o.renderRoot) == null ? void 0 : a.querySelector(e)) ?? null;
|
|
4677
4789
|
};
|
|
4678
|
-
return
|
|
4790
|
+
return Il(r, s, { get() {
|
|
4679
4791
|
return i(this);
|
|
4680
4792
|
} });
|
|
4681
4793
|
};
|
|
4682
4794
|
}
|
|
4683
|
-
const
|
|
4684
|
-
function
|
|
4795
|
+
const Bl = 180, zc = 5e3, Ys = "M 50 17 C 60 17 68 19.5 74 25 C 79 29.5 81.5 36.5 81.5 46.5 V 54.5 C 81.5 63.5 78.5 71 71.5 76.5 C 65 81.5 57.5 84 50 84 C 42.5 84 35 81.5 28.5 76.5 C 21.5 71 18.5 63.5 18.5 54.5 V 46.5 C 18.5 36.5 21 29.5 26 25 C 32 19.5 40 17 50 17 Z", Ul = `M 0 0 H 100 V 100 H 0 Z ${Ys}`;
|
|
4796
|
+
function Dl(e, t, r) {
|
|
4685
4797
|
if (t === null)
|
|
4686
4798
|
return "Center your face in the oval. We will capture automatically when framing looks good.";
|
|
4687
|
-
const s = Math.max(
|
|
4799
|
+
const s = Math.max(zc - (e - t), 0), n = Math.max(Math.ceil(s / 1e3), 0);
|
|
4688
4800
|
return r.passesQualityChecks ? `Hold steady. Capturing the best frame in ${n}s.` : `${r.message} Best frame selection finishes in ${n}s.`;
|
|
4689
4801
|
}
|
|
4690
|
-
function
|
|
4802
|
+
function jl(e) {
|
|
4691
4803
|
const t = e == null ? void 0 : e.captureScore;
|
|
4692
4804
|
return typeof t == "number" && t > 0 ? "Best frame captured. Review and confirm this photo." : "Capture complete. Review and confirm this photo.";
|
|
4693
4805
|
}
|
|
4694
|
-
class
|
|
4806
|
+
class Vl {
|
|
4695
4807
|
constructor(t) {
|
|
4696
|
-
this.frameCapture =
|
|
4808
|
+
this.frameCapture = il(), this.stopped = !1, this.animationFrameId = null, this.analysisTimerId = null, this.analysisInFlight = !1, this.lastAnalysisTimestamp = 0, this.countdownStartedAt = null, this.bestCaptureScore = -1, this.bestQualityResult = null, this.videoElement = t.videoElement, this.copy = t.copy, this.onStateChange = t.onStateChange, this.waitForReady = t.waitForReady ?? ((r) => sl(r)), this.assessLiveQuality = t.assessLiveQuality ?? Ju, this.assessPreviewBlob = t.assessPreviewBlob ?? Gl, this.mode = t.initialMode, this.state = this.createStartingState(), this.emit(this.state);
|
|
4697
4809
|
}
|
|
4698
4810
|
getState() {
|
|
4699
4811
|
return this.state;
|
|
@@ -4714,7 +4826,7 @@ class M2 {
|
|
|
4714
4826
|
this.stopped || this.emit(this.createPreviewState(t, r));
|
|
4715
4827
|
}
|
|
4716
4828
|
async retake() {
|
|
4717
|
-
this.stopped || this.state.phase !== "preview" || (this.resetAutoState(),
|
|
4829
|
+
this.stopped || this.state.phase !== "preview" || (this.resetAutoState(), nl(this.videoElement), this.emit(this.createLiveState({
|
|
4718
4830
|
feedbackMessage: this.mode === "auto" ? this.copy.autoReadyMessage : this.copy.retakeReadyMessage ?? this.copy.manualReadyMessage,
|
|
4719
4831
|
feedbackTone: this.mode === "auto" ? "neutral" : "manual"
|
|
4720
4832
|
})), this.mode === "auto" && this.scheduleAutoAnalysis());
|
|
@@ -4793,7 +4905,7 @@ class M2 {
|
|
|
4793
4905
|
scheduleAutoAnalysis() {
|
|
4794
4906
|
if (this.stopped || this.mode !== "auto" || this.state.phase !== "live")
|
|
4795
4907
|
return;
|
|
4796
|
-
const t = performance.now(), r = Math.max(
|
|
4908
|
+
const t = performance.now(), r = Math.max(Bl - (t - this.lastAnalysisTimestamp), 0);
|
|
4797
4909
|
this.cancelScheduledAnalysis(), this.analysisTimerId = window.setTimeout(() => {
|
|
4798
4910
|
this.analysisTimerId = null, this.animationFrameId = window.requestAnimationFrame((s) => {
|
|
4799
4911
|
this.runAutoAnalysis(s);
|
|
@@ -4808,11 +4920,12 @@ class M2 {
|
|
|
4808
4920
|
}
|
|
4809
4921
|
this.analysisInFlight = !0, this.lastAnalysisTimestamp = t;
|
|
4810
4922
|
try {
|
|
4923
|
+
this.frameCapture.captureWorkingFrame(this.videoElement);
|
|
4811
4924
|
const r = await this.assessLiveQuality(this.videoElement, t);
|
|
4812
4925
|
if (this.stopped || this.mode !== "auto" || this.state.phase !== "live") return;
|
|
4813
|
-
if (r.passesQualityChecks && (this.countdownStartedAt === null && (this.countdownStartedAt = t), r.captureScore > this.bestCaptureScore && (this.frameCapture.
|
|
4926
|
+
if (r.passesQualityChecks && (this.countdownStartedAt === null && (this.countdownStartedAt = t), r.captureScore > this.bestCaptureScore && (this.frameCapture.promoteWorkingToBest(), this.bestCaptureScore = r.captureScore, this.bestQualityResult = r)), this.countdownStartedAt !== null) {
|
|
4814
4927
|
const s = Math.min(
|
|
4815
|
-
(t - this.countdownStartedAt) /
|
|
4928
|
+
(t - this.countdownStartedAt) / zc,
|
|
4816
4929
|
1
|
|
4817
4930
|
);
|
|
4818
4931
|
if (s >= 1) {
|
|
@@ -4820,7 +4933,7 @@ class M2 {
|
|
|
4820
4933
|
return;
|
|
4821
4934
|
}
|
|
4822
4935
|
this.emit(this.createLiveState({
|
|
4823
|
-
feedbackMessage:
|
|
4936
|
+
feedbackMessage: Dl(
|
|
4824
4937
|
t,
|
|
4825
4938
|
this.countdownStartedAt,
|
|
4826
4939
|
r
|
|
@@ -4849,7 +4962,7 @@ class M2 {
|
|
|
4849
4962
|
if (this.stopped || this.mode !== "auto" || this.state.phase !== "live") return;
|
|
4850
4963
|
const r = this.bestQualityResult ?? await this.assessPreviewBlob(t);
|
|
4851
4964
|
this.stopped || this.mode !== "auto" || this.state.phase !== "live" || this.emit(this.createPreviewState(t, r, {
|
|
4852
|
-
feedbackMessage:
|
|
4965
|
+
feedbackMessage: jl(r),
|
|
4853
4966
|
feedbackTone: (r == null ? void 0 : r.passesQualityChecks) === !1 ? "error" : "success"
|
|
4854
4967
|
}));
|
|
4855
4968
|
}
|
|
@@ -4867,22 +4980,22 @@ class M2 {
|
|
|
4867
4980
|
this.cancelScheduledAnalysis(), this.countdownStartedAt = null, this.bestCaptureScore = -1, this.bestQualityResult = null, this.frameCapture.resetStoredBestFrame();
|
|
4868
4981
|
}
|
|
4869
4982
|
}
|
|
4870
|
-
async function
|
|
4983
|
+
async function Gl(e) {
|
|
4871
4984
|
try {
|
|
4872
|
-
const t = await
|
|
4873
|
-
return await
|
|
4985
|
+
const t = await Uc(e);
|
|
4986
|
+
return await Mc(t);
|
|
4874
4987
|
} catch {
|
|
4875
4988
|
return null;
|
|
4876
4989
|
}
|
|
4877
4990
|
}
|
|
4878
|
-
var
|
|
4879
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
4991
|
+
var Hl = Object.defineProperty, zl = Object.getOwnPropertyDescriptor, j = (e, t, r, s) => {
|
|
4992
|
+
for (var n = s > 1 ? void 0 : s ? zl(t, r) : t, i = e.length - 1, o; i >= 0; i--)
|
|
4880
4993
|
(o = e[i]) && (n = (s ? o(t, r, n) : o(n)) || n);
|
|
4881
|
-
return s && n &&
|
|
4994
|
+
return s && n && Hl(t, r, n), n;
|
|
4882
4995
|
};
|
|
4883
4996
|
let F = class extends ar {
|
|
4884
4997
|
constructor() {
|
|
4885
|
-
super(...arguments), this.label =
|
|
4998
|
+
super(...arguments), this.label = Fc, this.idleFeedbackLabel = qs, this.embedded = !1, this.active = !1, this.confirmLabel = $c, this.captureLabel = Oc, this.retakeLabel = Rc, this.retryLabel = Ic, this.capturePreference = "auto-preferred", this.allowMediaPickerFallback = !0, this.captureState = "idle", this.errorMessage = "", this.feedbackMessage = qs, this.feedbackTone = "neutral", this.previewUrl = "", this.qualityResult = null, this.canTakePhoto = !0, this.captureMode = "auto", this.stream = null, this.sessionController = null, this.currentCaptureStep = null, this.capturedBlob = null, this.pendingActiveSync = !1;
|
|
4886
4999
|
}
|
|
4887
5000
|
disconnectedCallback() {
|
|
4888
5001
|
super.disconnectedCallback(), this.stopSession();
|
|
@@ -4941,7 +5054,7 @@ let F = class extends ar {
|
|
|
4941
5054
|
class="guide-overlay ${this.captureState === "live" || this.captureState === "starting" ? "" : "hidden"}"
|
|
4942
5055
|
>
|
|
4943
5056
|
<svg viewBox="0 0 100 100" preserveAspectRatio="none" aria-hidden="true">
|
|
4944
|
-
<path class="guide-mask" d=${
|
|
5057
|
+
<path class="guide-mask" d=${Ul}></path>
|
|
4945
5058
|
<path class="ring-outline" d=${Ys}></path>
|
|
4946
5059
|
<path class="ring-progress" d=${Ys} pathLength="100"></path>
|
|
4947
5060
|
</svg>
|
|
@@ -4971,20 +5084,20 @@ let F = class extends ar {
|
|
|
4971
5084
|
if (!this.active || this.captureState === "starting" || this.captureState === "live")
|
|
4972
5085
|
return;
|
|
4973
5086
|
this.stopSession(), this.resetState(), this.captureState = "starting", this.feedbackMessage = "Requesting camera access...", this.feedbackTone = "neutral";
|
|
4974
|
-
const e =
|
|
5087
|
+
const e = Nc({
|
|
4975
5088
|
capturePreference: this.capturePreference,
|
|
4976
5089
|
allowMediaPickerFallback: this.allowMediaPickerFallback
|
|
4977
5090
|
}, this);
|
|
4978
5091
|
e.label = this.label, e.idleFeedbackLabel = this.idleFeedbackLabel, e.confirmLabel = this.confirmLabel, e.captureLabel = this.captureLabel, e.retakeLabel = this.retakeLabel, e.retryLabel = this.retryLabel;
|
|
4979
|
-
const t = await
|
|
5092
|
+
const t = await Zu({
|
|
4980
5093
|
capturePreference: e.capturePreference
|
|
4981
|
-
}), r =
|
|
5094
|
+
}), r = el(e, t), s = r.steps.find((o) => o === "auto-camera" || o === "manual-camera") ?? null, n = r.steps.includes("media-picker");
|
|
4982
5095
|
if (!s) {
|
|
4983
5096
|
await this.startMediaPicker();
|
|
4984
5097
|
return;
|
|
4985
5098
|
}
|
|
4986
5099
|
try {
|
|
4987
|
-
this.stream = await
|
|
5100
|
+
this.stream = await rl();
|
|
4988
5101
|
} catch (o) {
|
|
4989
5102
|
if (o instanceof Xs && n) {
|
|
4990
5103
|
await this.startMediaPicker();
|
|
@@ -5002,7 +5115,7 @@ let F = class extends ar {
|
|
|
5002
5115
|
this.handleCaptureError(new Error("Inline camera preview could not be created."));
|
|
5003
5116
|
return;
|
|
5004
5117
|
}
|
|
5005
|
-
i.srcObject = this.stream, this.currentCaptureStep = s, this.sessionController = new
|
|
5118
|
+
i.srcObject = this.stream, this.currentCaptureStep = s, this.sessionController = new Vl({
|
|
5006
5119
|
videoElement: i,
|
|
5007
5120
|
initialMode: s === "auto-camera" ? "auto" : "manual",
|
|
5008
5121
|
copy: {
|
|
@@ -5022,7 +5135,7 @@ let F = class extends ar {
|
|
|
5022
5135
|
async startMediaPicker() {
|
|
5023
5136
|
this.stopSession(), this.currentCaptureStep = "media-picker", this.captureState = "starting", this.feedbackMessage = "Opening media picker...", this.feedbackTone = "neutral";
|
|
5024
5137
|
try {
|
|
5025
|
-
const e = await
|
|
5138
|
+
const e = await Bc();
|
|
5026
5139
|
if (!e) {
|
|
5027
5140
|
this.handleCancel();
|
|
5028
5141
|
return;
|
|
@@ -5117,14 +5230,14 @@ let F = class extends ar {
|
|
|
5117
5230
|
}
|
|
5118
5231
|
async assessPickedBlob(e) {
|
|
5119
5232
|
try {
|
|
5120
|
-
const t = await
|
|
5121
|
-
return await
|
|
5233
|
+
const t = await Uc(e);
|
|
5234
|
+
return await Mc(t);
|
|
5122
5235
|
} catch {
|
|
5123
5236
|
return null;
|
|
5124
5237
|
}
|
|
5125
5238
|
}
|
|
5126
5239
|
};
|
|
5127
|
-
F.styles =
|
|
5240
|
+
F.styles = pl`
|
|
5128
5241
|
:host {
|
|
5129
5242
|
display: block;
|
|
5130
5243
|
font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
@@ -5429,43 +5542,43 @@ j([
|
|
|
5429
5542
|
Ye()
|
|
5430
5543
|
], F.prototype, "captureMode", 2);
|
|
5431
5544
|
j([
|
|
5432
|
-
|
|
5545
|
+
Nl("#embedded-video")
|
|
5433
5546
|
], F.prototype, "embeddedVideoElement", 2);
|
|
5434
5547
|
F = j([
|
|
5435
|
-
|
|
5548
|
+
$l("simface-capture")
|
|
5436
5549
|
], F);
|
|
5437
|
-
const
|
|
5550
|
+
const Wc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5438
5551
|
__proto__: null,
|
|
5439
5552
|
get SimFaceCapture() {
|
|
5440
5553
|
return F;
|
|
5441
5554
|
}
|
|
5442
5555
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5443
|
-
async function
|
|
5444
|
-
const n = new
|
|
5556
|
+
async function Yl(e, t, r, s) {
|
|
5557
|
+
const n = new ko(e);
|
|
5445
5558
|
await n.validateAPIKey();
|
|
5446
|
-
const i = await
|
|
5559
|
+
const i = await Kc(r, s);
|
|
5447
5560
|
if (!i)
|
|
5448
5561
|
return { success: !1, clientId: t, message: "Capture cancelled by user" };
|
|
5449
5562
|
const o = await n.enroll(t, i);
|
|
5450
5563
|
return o.alreadyEnrolled, o;
|
|
5451
5564
|
}
|
|
5452
|
-
async function
|
|
5453
|
-
const n = new
|
|
5565
|
+
async function Ql(e, t, r, s) {
|
|
5566
|
+
const n = new ko(e);
|
|
5454
5567
|
await n.validateAPIKey();
|
|
5455
|
-
const i = await
|
|
5568
|
+
const i = await Kc(r, s);
|
|
5456
5569
|
return i ? n.verify(t, i) : { match: !1, score: 0, threshold: 0, message: "Capture cancelled by user" };
|
|
5457
5570
|
}
|
|
5458
|
-
async function
|
|
5459
|
-
return
|
|
5571
|
+
async function Kc(e, t) {
|
|
5572
|
+
return cl(e, t);
|
|
5460
5573
|
}
|
|
5461
5574
|
export {
|
|
5462
|
-
|
|
5575
|
+
ko as SimFaceAPIClient,
|
|
5463
5576
|
F as SimFaceCapture,
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5577
|
+
Mc as assessFaceQuality,
|
|
5578
|
+
Ju as assessFaceQualityForVideo,
|
|
5579
|
+
Kl as blobToDataURL,
|
|
5580
|
+
Uc as blobToImage,
|
|
5581
|
+
cl as captureFromCamera,
|
|
5582
|
+
Yl as enroll,
|
|
5583
|
+
Ql as verify
|
|
5471
5584
|
};
|