@richard.fadiora/liveness-detection 2.0.0 → 2.0.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/README.md +192 -0
- package/dist/index.es.js +4316 -452
- package/dist/index.umd.js +29 -7
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,516 +1,4380 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
var
|
|
1
|
+
import Bo, { useRef as Vn, useState as bt, useEffect as Gn, useCallback as f1 } from "react";
|
|
2
|
+
import d1 from "react-webcam";
|
|
3
|
+
var Qn = { exports: {} }, yr = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
|
-
* react-jsx-runtime.production.js
|
|
6
|
+
* react-jsx-runtime.production.min.js
|
|
7
7
|
*
|
|
8
|
-
* Copyright (c)
|
|
8
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} else c = n;
|
|
25
|
-
return n = c.ref, {
|
|
26
|
-
$$typeof: d,
|
|
27
|
-
type: s,
|
|
28
|
-
key: v,
|
|
29
|
-
ref: n !== void 0 ? n : null,
|
|
30
|
-
props: c
|
|
31
|
-
};
|
|
13
|
+
var Os;
|
|
14
|
+
function p1() {
|
|
15
|
+
if (Os) return yr;
|
|
16
|
+
Os = 1;
|
|
17
|
+
var e = Bo, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function o(c, u, f) {
|
|
19
|
+
var l, d = {}, b = null, A = null;
|
|
20
|
+
f !== void 0 && (b = "" + f), u.key !== void 0 && (b = "" + u.key), u.ref !== void 0 && (A = u.ref);
|
|
21
|
+
for (l in u) n.call(u, l) && !s.hasOwnProperty(l) && (d[l] = u[l]);
|
|
22
|
+
if (c && c.defaultProps) for (l in u = c.defaultProps, u) d[l] === void 0 && (d[l] = u[l]);
|
|
23
|
+
return { $$typeof: t, type: c, key: b, ref: A, props: d, _owner: i.current };
|
|
32
24
|
}
|
|
33
|
-
return
|
|
25
|
+
return yr.Fragment = r, yr.jsx = o, yr.jsxs = o, yr;
|
|
34
26
|
}
|
|
35
|
-
var
|
|
27
|
+
var vr = {};
|
|
36
28
|
/**
|
|
37
29
|
* @license React
|
|
38
30
|
* react-jsx-runtime.development.js
|
|
39
31
|
*
|
|
40
|
-
* Copyright (c)
|
|
32
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
41
33
|
*
|
|
42
34
|
* This source code is licensed under the MIT license found in the
|
|
43
35
|
* LICENSE file in the root directory of this source tree.
|
|
44
36
|
*/
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
return
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
if (typeof
|
|
51
|
-
return
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
37
|
+
var Fs;
|
|
38
|
+
function g1() {
|
|
39
|
+
return Fs || (Fs = 1, process.env.NODE_ENV !== "production" && function() {
|
|
40
|
+
var e = Bo, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), N = Symbol.iterator, Be = "@@iterator";
|
|
41
|
+
function Ue(a) {
|
|
42
|
+
if (a === null || typeof a != "object")
|
|
43
|
+
return null;
|
|
44
|
+
var h = N && a[N] || a[Be];
|
|
45
|
+
return typeof h == "function" ? h : null;
|
|
46
|
+
}
|
|
47
|
+
var J = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
48
|
+
function V(a) {
|
|
49
|
+
{
|
|
50
|
+
for (var h = arguments.length, p = new Array(h > 1 ? h - 1 : 0), E = 1; E < h; E++)
|
|
51
|
+
p[E - 1] = arguments[E];
|
|
52
|
+
yt("error", a, p);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function yt(a, h, p) {
|
|
56
|
+
{
|
|
57
|
+
var E = J.ReactDebugCurrentFrame, O = E.getStackAddendum();
|
|
58
|
+
O !== "" && (h += "%s", p = p.concat([O]));
|
|
59
|
+
var M = p.map(function(S) {
|
|
60
|
+
return String(S);
|
|
61
|
+
});
|
|
62
|
+
M.unshift("Warning: " + h), Function.prototype.apply.call(console[a], console, M);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
var Pn = !1, On = !1, Fn = !1, dr = !1, Rn = !1, Br;
|
|
66
|
+
Br = Symbol.for("react.module.reference");
|
|
67
|
+
function Ur(a) {
|
|
68
|
+
return !!(typeof a == "string" || typeof a == "function" || a === n || a === s || Rn || a === i || a === f || a === l || dr || a === A || Pn || On || Fn || typeof a == "object" && a !== null && (a.$$typeof === b || a.$$typeof === d || a.$$typeof === o || a.$$typeof === c || a.$$typeof === u || // This needs to include all possible module reference object
|
|
69
|
+
// types supported by any Flight configuration anywhere since
|
|
70
|
+
// we don't know which Flight build this will end up being used
|
|
71
|
+
// with.
|
|
72
|
+
a.$$typeof === Br || a.getModuleId !== void 0));
|
|
73
|
+
}
|
|
74
|
+
function ne(a, h, p) {
|
|
75
|
+
var E = a.displayName;
|
|
76
|
+
if (E)
|
|
77
|
+
return E;
|
|
78
|
+
var O = h.displayName || h.name || "";
|
|
79
|
+
return O !== "" ? p + "(" + O + ")" : p;
|
|
80
|
+
}
|
|
81
|
+
function z(a) {
|
|
82
|
+
return a.displayName || "Context";
|
|
83
|
+
}
|
|
84
|
+
function R(a) {
|
|
85
|
+
if (a == null)
|
|
86
|
+
return null;
|
|
87
|
+
if (typeof a.tag == "number" && V("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
|
|
88
|
+
return a.displayName || a.name || null;
|
|
89
|
+
if (typeof a == "string")
|
|
90
|
+
return a;
|
|
91
|
+
switch (a) {
|
|
92
|
+
case n:
|
|
55
93
|
return "Fragment";
|
|
56
|
-
case
|
|
94
|
+
case r:
|
|
95
|
+
return "Portal";
|
|
96
|
+
case s:
|
|
57
97
|
return "Profiler";
|
|
58
|
-
case
|
|
98
|
+
case i:
|
|
59
99
|
return "StrictMode";
|
|
60
|
-
case
|
|
100
|
+
case f:
|
|
61
101
|
return "Suspense";
|
|
62
|
-
case
|
|
102
|
+
case l:
|
|
63
103
|
return "SuspenseList";
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
return "
|
|
73
|
-
case
|
|
74
|
-
return
|
|
75
|
-
case
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
case z:
|
|
81
|
-
return r = e.displayName || null, r !== null ? r : d(e.type) || "Memo";
|
|
82
|
-
case C:
|
|
83
|
-
r = e._payload, e = e._init;
|
|
104
|
+
}
|
|
105
|
+
if (typeof a == "object")
|
|
106
|
+
switch (a.$$typeof) {
|
|
107
|
+
case c:
|
|
108
|
+
var h = a;
|
|
109
|
+
return z(h) + ".Consumer";
|
|
110
|
+
case o:
|
|
111
|
+
var p = a;
|
|
112
|
+
return z(p._context) + ".Provider";
|
|
113
|
+
case u:
|
|
114
|
+
return ne(a, a.render, "ForwardRef");
|
|
115
|
+
case d:
|
|
116
|
+
var E = a.displayName || null;
|
|
117
|
+
return E !== null ? E : R(a.type) || "Memo";
|
|
118
|
+
case b: {
|
|
119
|
+
var O = a, M = O._payload, S = O._init;
|
|
84
120
|
try {
|
|
85
|
-
return
|
|
121
|
+
return R(S(M));
|
|
86
122
|
} catch {
|
|
123
|
+
return null;
|
|
87
124
|
}
|
|
125
|
+
}
|
|
88
126
|
}
|
|
89
127
|
return null;
|
|
90
128
|
}
|
|
91
|
-
|
|
92
|
-
|
|
129
|
+
var Z = Object.assign, me = 0, j, ie, Ve, at, ct, pr, Vr;
|
|
130
|
+
function vt() {
|
|
131
|
+
}
|
|
132
|
+
vt.__reactDisabledLog = !0;
|
|
133
|
+
function gr() {
|
|
134
|
+
{
|
|
135
|
+
if (me === 0) {
|
|
136
|
+
j = console.log, ie = console.info, Ve = console.warn, at = console.error, ct = console.group, pr = console.groupCollapsed, Vr = console.groupEnd;
|
|
137
|
+
var a = {
|
|
138
|
+
configurable: !0,
|
|
139
|
+
enumerable: !0,
|
|
140
|
+
value: vt,
|
|
141
|
+
writable: !0
|
|
142
|
+
};
|
|
143
|
+
Object.defineProperties(console, {
|
|
144
|
+
info: a,
|
|
145
|
+
log: a,
|
|
146
|
+
warn: a,
|
|
147
|
+
error: a,
|
|
148
|
+
group: a,
|
|
149
|
+
groupCollapsed: a,
|
|
150
|
+
groupEnd: a
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
me++;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
function U2() {
|
|
157
|
+
{
|
|
158
|
+
if (me--, me === 0) {
|
|
159
|
+
var a = {
|
|
160
|
+
configurable: !0,
|
|
161
|
+
enumerable: !0,
|
|
162
|
+
writable: !0
|
|
163
|
+
};
|
|
164
|
+
Object.defineProperties(console, {
|
|
165
|
+
log: Z({}, a, {
|
|
166
|
+
value: j
|
|
167
|
+
}),
|
|
168
|
+
info: Z({}, a, {
|
|
169
|
+
value: ie
|
|
170
|
+
}),
|
|
171
|
+
warn: Z({}, a, {
|
|
172
|
+
value: Ve
|
|
173
|
+
}),
|
|
174
|
+
error: Z({}, a, {
|
|
175
|
+
value: at
|
|
176
|
+
}),
|
|
177
|
+
group: Z({}, a, {
|
|
178
|
+
value: ct
|
|
179
|
+
}),
|
|
180
|
+
groupCollapsed: Z({}, a, {
|
|
181
|
+
value: pr
|
|
182
|
+
}),
|
|
183
|
+
groupEnd: Z({}, a, {
|
|
184
|
+
value: Vr
|
|
185
|
+
})
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
me < 0 && V("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
var Mn = J.ReactCurrentDispatcher, Cn;
|
|
192
|
+
function Gr(a, h, p) {
|
|
193
|
+
{
|
|
194
|
+
if (Cn === void 0)
|
|
195
|
+
try {
|
|
196
|
+
throw Error();
|
|
197
|
+
} catch (O) {
|
|
198
|
+
var E = O.stack.trim().match(/\n( *(at )?)/);
|
|
199
|
+
Cn = E && E[1] || "";
|
|
200
|
+
}
|
|
201
|
+
return `
|
|
202
|
+
` + Cn + a;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
var In = !1, Wr;
|
|
206
|
+
{
|
|
207
|
+
var V2 = typeof WeakMap == "function" ? WeakMap : Map;
|
|
208
|
+
Wr = new V2();
|
|
93
209
|
}
|
|
94
|
-
function
|
|
210
|
+
function gs(a, h) {
|
|
211
|
+
if (!a || In)
|
|
212
|
+
return "";
|
|
213
|
+
{
|
|
214
|
+
var p = Wr.get(a);
|
|
215
|
+
if (p !== void 0)
|
|
216
|
+
return p;
|
|
217
|
+
}
|
|
218
|
+
var E;
|
|
219
|
+
In = !0;
|
|
220
|
+
var O = Error.prepareStackTrace;
|
|
221
|
+
Error.prepareStackTrace = void 0;
|
|
222
|
+
var M;
|
|
223
|
+
M = Mn.current, Mn.current = null, gr();
|
|
95
224
|
try {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
225
|
+
if (h) {
|
|
226
|
+
var S = function() {
|
|
227
|
+
throw Error();
|
|
228
|
+
};
|
|
229
|
+
if (Object.defineProperty(S.prototype, "props", {
|
|
230
|
+
set: function() {
|
|
231
|
+
throw Error();
|
|
232
|
+
}
|
|
233
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
234
|
+
try {
|
|
235
|
+
Reflect.construct(S, []);
|
|
236
|
+
} catch (ye) {
|
|
237
|
+
E = ye;
|
|
238
|
+
}
|
|
239
|
+
Reflect.construct(a, [], S);
|
|
240
|
+
} else {
|
|
241
|
+
try {
|
|
242
|
+
S.call();
|
|
243
|
+
} catch (ye) {
|
|
244
|
+
E = ye;
|
|
245
|
+
}
|
|
246
|
+
a.call(S.prototype);
|
|
247
|
+
}
|
|
248
|
+
} else {
|
|
249
|
+
try {
|
|
250
|
+
throw Error();
|
|
251
|
+
} catch (ye) {
|
|
252
|
+
E = ye;
|
|
253
|
+
}
|
|
254
|
+
a();
|
|
255
|
+
}
|
|
256
|
+
} catch (ye) {
|
|
257
|
+
if (ye && E && typeof ye.stack == "string") {
|
|
258
|
+
for (var k = ye.stack.split(`
|
|
259
|
+
`), pe = E.stack.split(`
|
|
260
|
+
`), Y = k.length - 1, Q = pe.length - 1; Y >= 1 && Q >= 0 && k[Y] !== pe[Q]; )
|
|
261
|
+
Q--;
|
|
262
|
+
for (; Y >= 1 && Q >= 0; Y--, Q--)
|
|
263
|
+
if (k[Y] !== pe[Q]) {
|
|
264
|
+
if (Y !== 1 || Q !== 1)
|
|
265
|
+
do
|
|
266
|
+
if (Y--, Q--, Q < 0 || k[Y] !== pe[Q]) {
|
|
267
|
+
var Re = `
|
|
268
|
+
` + k[Y].replace(" at new ", " at ");
|
|
269
|
+
return a.displayName && Re.includes("<anonymous>") && (Re = Re.replace("<anonymous>", a.displayName)), typeof a == "function" && Wr.set(a, Re), Re;
|
|
270
|
+
}
|
|
271
|
+
while (Y >= 1 && Q >= 0);
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
} finally {
|
|
276
|
+
In = !1, Mn.current = M, U2(), Error.prepareStackTrace = O;
|
|
277
|
+
}
|
|
278
|
+
var jt = a ? a.displayName || a.name : "", _t = jt ? Gr(jt) : "";
|
|
279
|
+
return typeof a == "function" && Wr.set(a, _t), _t;
|
|
280
|
+
}
|
|
281
|
+
function G2(a, h, p) {
|
|
282
|
+
return gs(a, !1);
|
|
283
|
+
}
|
|
284
|
+
function W2(a) {
|
|
285
|
+
var h = a.prototype;
|
|
286
|
+
return !!(h && h.isReactComponent);
|
|
287
|
+
}
|
|
288
|
+
function Hr(a, h, p) {
|
|
289
|
+
if (a == null)
|
|
290
|
+
return "";
|
|
291
|
+
if (typeof a == "function")
|
|
292
|
+
return gs(a, W2(a));
|
|
293
|
+
if (typeof a == "string")
|
|
294
|
+
return Gr(a);
|
|
295
|
+
switch (a) {
|
|
296
|
+
case f:
|
|
297
|
+
return Gr("Suspense");
|
|
298
|
+
case l:
|
|
299
|
+
return Gr("SuspenseList");
|
|
300
|
+
}
|
|
301
|
+
if (typeof a == "object")
|
|
302
|
+
switch (a.$$typeof) {
|
|
303
|
+
case u:
|
|
304
|
+
return G2(a.render);
|
|
305
|
+
case d:
|
|
306
|
+
return Hr(a.type, h, p);
|
|
307
|
+
case b: {
|
|
308
|
+
var E = a, O = E._payload, M = E._init;
|
|
309
|
+
try {
|
|
310
|
+
return Hr(M(O), h, p);
|
|
311
|
+
} catch {
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
return "";
|
|
316
|
+
}
|
|
317
|
+
var mr = Object.prototype.hasOwnProperty, ms = {}, ys = J.ReactDebugCurrentFrame;
|
|
318
|
+
function zr(a) {
|
|
319
|
+
if (a) {
|
|
320
|
+
var h = a._owner, p = Hr(a.type, a._source, h ? h.type : null);
|
|
321
|
+
ys.setExtraStackFrame(p);
|
|
322
|
+
} else
|
|
323
|
+
ys.setExtraStackFrame(null);
|
|
324
|
+
}
|
|
325
|
+
function H2(a, h, p, E, O) {
|
|
326
|
+
{
|
|
327
|
+
var M = Function.call.bind(mr);
|
|
328
|
+
for (var S in a)
|
|
329
|
+
if (M(a, S)) {
|
|
330
|
+
var k = void 0;
|
|
331
|
+
try {
|
|
332
|
+
if (typeof a[S] != "function") {
|
|
333
|
+
var pe = Error((E || "React class") + ": " + p + " type `" + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[S] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
334
|
+
throw pe.name = "Invariant Violation", pe;
|
|
335
|
+
}
|
|
336
|
+
k = a[S](h, S, E, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
337
|
+
} catch (Y) {
|
|
338
|
+
k = Y;
|
|
339
|
+
}
|
|
340
|
+
k && !(k instanceof Error) && (zr(O), V("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", E || "React class", p, S, typeof k), zr(null)), k instanceof Error && !(k.message in ms) && (ms[k.message] = !0, zr(O), V("Failed %s type: %s", p, k.message), zr(null));
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
var z2 = Array.isArray;
|
|
345
|
+
function Nn(a) {
|
|
346
|
+
return z2(a);
|
|
347
|
+
}
|
|
348
|
+
function K2(a) {
|
|
349
|
+
{
|
|
350
|
+
var h = typeof Symbol == "function" && Symbol.toStringTag, p = h && a[Symbol.toStringTag] || a.constructor.name || "Object";
|
|
351
|
+
return p;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
function Y2(a) {
|
|
115
355
|
try {
|
|
116
|
-
|
|
117
|
-
return r ? "<" + r + ">" : "<...>";
|
|
356
|
+
return vs(a), !1;
|
|
118
357
|
} catch {
|
|
119
|
-
return
|
|
358
|
+
return !0;
|
|
120
359
|
}
|
|
121
360
|
}
|
|
122
|
-
function
|
|
123
|
-
|
|
124
|
-
return e === null ? null : e.getOwner();
|
|
361
|
+
function vs(a) {
|
|
362
|
+
return "" + a;
|
|
125
363
|
}
|
|
126
|
-
function
|
|
127
|
-
|
|
364
|
+
function _s(a) {
|
|
365
|
+
if (Y2(a))
|
|
366
|
+
return V("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", K2(a)), vs(a);
|
|
128
367
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
368
|
+
var bs = J.ReactCurrentOwner, $2 = {
|
|
369
|
+
key: !0,
|
|
370
|
+
ref: !0,
|
|
371
|
+
__self: !0,
|
|
372
|
+
__source: !0
|
|
373
|
+
}, ws, Es;
|
|
374
|
+
function q2(a) {
|
|
375
|
+
if (mr.call(a, "ref")) {
|
|
376
|
+
var h = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
377
|
+
if (h && h.isReactWarning)
|
|
378
|
+
return !1;
|
|
133
379
|
}
|
|
134
|
-
return
|
|
380
|
+
return a.ref !== void 0;
|
|
135
381
|
}
|
|
136
|
-
function
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
));
|
|
382
|
+
function X2(a) {
|
|
383
|
+
if (mr.call(a, "key")) {
|
|
384
|
+
var h = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
385
|
+
if (h && h.isReactWarning)
|
|
386
|
+
return !1;
|
|
142
387
|
}
|
|
143
|
-
|
|
144
|
-
get: o,
|
|
145
|
-
configurable: !0
|
|
146
|
-
});
|
|
388
|
+
return a.key !== void 0;
|
|
147
389
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
390
|
+
function J2(a, h) {
|
|
391
|
+
typeof a.ref == "string" && bs.current;
|
|
392
|
+
}
|
|
393
|
+
function Z2(a, h) {
|
|
394
|
+
{
|
|
395
|
+
var p = function() {
|
|
396
|
+
ws || (ws = !0, V("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
|
|
397
|
+
};
|
|
398
|
+
p.isReactWarning = !0, Object.defineProperty(a, "key", {
|
|
399
|
+
get: p,
|
|
400
|
+
configurable: !0
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
function Q2(a, h) {
|
|
405
|
+
{
|
|
406
|
+
var p = function() {
|
|
407
|
+
Es || (Es = !0, V("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
|
|
408
|
+
};
|
|
409
|
+
p.isReactWarning = !0, Object.defineProperty(a, "ref", {
|
|
410
|
+
get: p,
|
|
411
|
+
configurable: !0
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
var e1 = function(a, h, p, E, O, M, S) {
|
|
416
|
+
var k = {
|
|
417
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
418
|
+
$$typeof: t,
|
|
419
|
+
// Built-in properties that belong on the element
|
|
420
|
+
type: a,
|
|
421
|
+
key: h,
|
|
422
|
+
ref: p,
|
|
423
|
+
props: S,
|
|
424
|
+
// Record the component responsible for creating this element.
|
|
425
|
+
_owner: M
|
|
426
|
+
};
|
|
427
|
+
return k._store = {}, Object.defineProperty(k._store, "validated", {
|
|
171
428
|
configurable: !1,
|
|
172
429
|
enumerable: !1,
|
|
173
430
|
writable: !0,
|
|
174
|
-
value:
|
|
175
|
-
}), Object.defineProperty(
|
|
431
|
+
value: !1
|
|
432
|
+
}), Object.defineProperty(k, "_self", {
|
|
176
433
|
configurable: !1,
|
|
177
434
|
enumerable: !1,
|
|
178
|
-
writable: !
|
|
179
|
-
value:
|
|
180
|
-
}), Object.defineProperty(
|
|
435
|
+
writable: !1,
|
|
436
|
+
value: E
|
|
437
|
+
}), Object.defineProperty(k, "_source", {
|
|
181
438
|
configurable: !1,
|
|
182
439
|
enumerable: !1,
|
|
183
|
-
writable: !
|
|
184
|
-
value:
|
|
185
|
-
}), Object.freeze && (Object.freeze(
|
|
186
|
-
}
|
|
187
|
-
function
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
440
|
+
writable: !1,
|
|
441
|
+
value: O
|
|
442
|
+
}), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
|
|
443
|
+
};
|
|
444
|
+
function t1(a, h, p, E, O) {
|
|
445
|
+
{
|
|
446
|
+
var M, S = {}, k = null, pe = null;
|
|
447
|
+
p !== void 0 && (_s(p), k = "" + p), X2(h) && (_s(h.key), k = "" + h.key), q2(h) && (pe = h.ref, J2(h, O));
|
|
448
|
+
for (M in h)
|
|
449
|
+
mr.call(h, M) && !$2.hasOwnProperty(M) && (S[M] = h[M]);
|
|
450
|
+
if (a && a.defaultProps) {
|
|
451
|
+
var Y = a.defaultProps;
|
|
452
|
+
for (M in Y)
|
|
453
|
+
S[M] === void 0 && (S[M] = Y[M]);
|
|
454
|
+
}
|
|
455
|
+
if (k || pe) {
|
|
456
|
+
var Q = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
457
|
+
k && Z2(S, Q), pe && Q2(S, Q);
|
|
458
|
+
}
|
|
459
|
+
return e1(a, k, pe, O, E, bs.current, S);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
var jn = J.ReactCurrentOwner, As = J.ReactDebugCurrentFrame;
|
|
463
|
+
function Nt(a) {
|
|
464
|
+
if (a) {
|
|
465
|
+
var h = a._owner, p = Hr(a.type, a._source, h ? h.type : null);
|
|
466
|
+
As.setExtraStackFrame(p);
|
|
467
|
+
} else
|
|
468
|
+
As.setExtraStackFrame(null);
|
|
469
|
+
}
|
|
470
|
+
var Dn;
|
|
471
|
+
Dn = !1;
|
|
472
|
+
function Bn(a) {
|
|
473
|
+
return typeof a == "object" && a !== null && a.$$typeof === t;
|
|
474
|
+
}
|
|
475
|
+
function ks() {
|
|
476
|
+
{
|
|
477
|
+
if (jn.current) {
|
|
478
|
+
var a = R(jn.current.type);
|
|
479
|
+
if (a)
|
|
480
|
+
return `
|
|
481
|
+
|
|
482
|
+
Check the render method of \`` + a + "`.";
|
|
483
|
+
}
|
|
484
|
+
return "";
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
function r1(a) {
|
|
488
|
+
return "";
|
|
489
|
+
}
|
|
490
|
+
var Ss = {};
|
|
491
|
+
function n1(a) {
|
|
492
|
+
{
|
|
493
|
+
var h = ks();
|
|
494
|
+
if (!h) {
|
|
495
|
+
var p = typeof a == "string" ? a : a.displayName || a.name;
|
|
496
|
+
p && (h = `
|
|
497
|
+
|
|
498
|
+
Check the top-level render call using <` + p + ">.");
|
|
499
|
+
}
|
|
500
|
+
return h;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
function Ts(a, h) {
|
|
504
|
+
{
|
|
505
|
+
if (!a._store || a._store.validated || a.key != null)
|
|
506
|
+
return;
|
|
507
|
+
a._store.validated = !0;
|
|
508
|
+
var p = n1(h);
|
|
509
|
+
if (Ss[p])
|
|
510
|
+
return;
|
|
511
|
+
Ss[p] = !0;
|
|
512
|
+
var E = "";
|
|
513
|
+
a && a._owner && a._owner !== jn.current && (E = " It was passed a child from " + R(a._owner.type) + "."), Nt(a), V('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, E), Nt(null);
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
function xs(a, h) {
|
|
517
|
+
{
|
|
518
|
+
if (typeof a != "object")
|
|
519
|
+
return;
|
|
520
|
+
if (Nn(a))
|
|
521
|
+
for (var p = 0; p < a.length; p++) {
|
|
522
|
+
var E = a[p];
|
|
523
|
+
Bn(E) && Ts(E, h);
|
|
524
|
+
}
|
|
525
|
+
else if (Bn(a))
|
|
526
|
+
a._store && (a._store.validated = !0);
|
|
527
|
+
else if (a) {
|
|
528
|
+
var O = Ue(a);
|
|
529
|
+
if (typeof O == "function" && O !== a.entries)
|
|
530
|
+
for (var M = O.call(a), S; !(S = M.next()).done; )
|
|
531
|
+
Bn(S.value) && Ts(S.value, h);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
function i1(a) {
|
|
536
|
+
{
|
|
537
|
+
var h = a.type;
|
|
538
|
+
if (h == null || typeof h == "string")
|
|
539
|
+
return;
|
|
540
|
+
var p;
|
|
541
|
+
if (typeof h == "function")
|
|
542
|
+
p = h.propTypes;
|
|
543
|
+
else if (typeof h == "object" && (h.$$typeof === u || // Note: Memo only checks outer props here.
|
|
544
|
+
// Inner props are checked in the reconciler.
|
|
545
|
+
h.$$typeof === d))
|
|
546
|
+
p = h.propTypes;
|
|
547
|
+
else
|
|
548
|
+
return;
|
|
549
|
+
if (p) {
|
|
550
|
+
var E = R(h);
|
|
551
|
+
H2(p, a.props, "prop", E, a);
|
|
552
|
+
} else if (h.PropTypes !== void 0 && !Dn) {
|
|
553
|
+
Dn = !0;
|
|
554
|
+
var O = R(h);
|
|
555
|
+
V("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
|
|
556
|
+
}
|
|
557
|
+
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && V("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
function s1(a) {
|
|
561
|
+
{
|
|
562
|
+
for (var h = Object.keys(a.props), p = 0; p < h.length; p++) {
|
|
563
|
+
var E = h[p];
|
|
564
|
+
if (E !== "children" && E !== "key") {
|
|
565
|
+
Nt(a), V("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), Nt(null);
|
|
566
|
+
break;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
a.ref !== null && (Nt(a), V("Invalid attribute `ref` supplied to `React.Fragment`."), Nt(null));
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
var Ls = {};
|
|
573
|
+
function Ps(a, h, p, E, O, M) {
|
|
574
|
+
{
|
|
575
|
+
var S = Ur(a);
|
|
576
|
+
if (!S) {
|
|
577
|
+
var k = "";
|
|
578
|
+
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (k += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
579
|
+
var pe = r1();
|
|
580
|
+
pe ? k += pe : k += ks();
|
|
581
|
+
var Y;
|
|
582
|
+
a === null ? Y = "null" : Nn(a) ? Y = "array" : a !== void 0 && a.$$typeof === t ? (Y = "<" + (R(a.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : Y = typeof a, V("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Y, k);
|
|
583
|
+
}
|
|
584
|
+
var Q = t1(a, h, p, O, M);
|
|
585
|
+
if (Q == null)
|
|
586
|
+
return Q;
|
|
587
|
+
if (S) {
|
|
588
|
+
var Re = h.children;
|
|
589
|
+
if (Re !== void 0)
|
|
590
|
+
if (E)
|
|
591
|
+
if (Nn(Re)) {
|
|
592
|
+
for (var jt = 0; jt < Re.length; jt++)
|
|
593
|
+
xs(Re[jt], a);
|
|
594
|
+
Object.freeze && Object.freeze(Re);
|
|
595
|
+
} else
|
|
596
|
+
V("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
597
|
+
else
|
|
598
|
+
xs(Re, a);
|
|
599
|
+
}
|
|
600
|
+
if (mr.call(h, "key")) {
|
|
601
|
+
var _t = R(a), ye = Object.keys(h).filter(function(h1) {
|
|
602
|
+
return h1 !== "key";
|
|
603
|
+
}), Un = ye.length > 0 ? "{key: someKey, " + ye.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
604
|
+
if (!Ls[_t + Un]) {
|
|
605
|
+
var l1 = ye.length > 0 ? "{" + ye.join(": ..., ") + ": ...}" : "{}";
|
|
606
|
+
V(`A props object containing a "key" prop is being spread into JSX:
|
|
207
607
|
let props = %s;
|
|
208
608
|
<%s {...props} />
|
|
209
609
|
React keys must be passed directly to JSX without using spread:
|
|
210
610
|
let props = %s;
|
|
211
|
-
<%s key={someKey} {...props} />`,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
l
|
|
216
|
-
), ee[l + i] = !0);
|
|
217
|
-
}
|
|
218
|
-
if (l = null, o !== void 0 && (f(o), l = "" + o), v(r) && (f(r.key), l = "" + r.key), "key" in r) {
|
|
219
|
-
o = {};
|
|
220
|
-
for (var G in r)
|
|
221
|
-
G !== "key" && (o[G] = r[G]);
|
|
222
|
-
} else o = r;
|
|
223
|
-
return l && g(
|
|
224
|
-
o,
|
|
225
|
-
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
226
|
-
), a(
|
|
227
|
-
e,
|
|
228
|
-
l,
|
|
229
|
-
o,
|
|
230
|
-
n(),
|
|
231
|
-
D,
|
|
232
|
-
B
|
|
233
|
-
);
|
|
234
|
-
}
|
|
235
|
-
function F(e) {
|
|
236
|
-
T(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === C && (e._payload.status === "fulfilled" ? T(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
237
|
-
}
|
|
238
|
-
function T(e) {
|
|
239
|
-
return typeof e == "object" && e !== null && e.$$typeof === O;
|
|
240
|
-
}
|
|
241
|
-
var b = se, O = Symbol.for("react.transitional.element"), k = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), Y = Symbol.for("react.consumer"), M = Symbol.for("react.context"), P = Symbol.for("react.forward_ref"), W = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), z = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), V = Symbol.for("react.activity"), u = Symbol.for("react.client.reference"), R = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, E = Object.prototype.hasOwnProperty, h = Array.isArray, j = console.createTask ? console.createTask : function() {
|
|
242
|
-
return null;
|
|
243
|
-
};
|
|
244
|
-
b = {
|
|
245
|
-
react_stack_bottom_frame: function(e) {
|
|
246
|
-
return e();
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
|
-
var y, Z = {}, Q = b.react_stack_bottom_frame.bind(
|
|
250
|
-
b,
|
|
251
|
-
c
|
|
252
|
-
)(), K = j(s(c)), ee = {};
|
|
253
|
-
I.Fragment = x, I.jsx = function(e, r, o) {
|
|
254
|
-
var i = 1e4 > R.recentlyCreatedOwnerStacks++;
|
|
255
|
-
return m(
|
|
256
|
-
e,
|
|
257
|
-
r,
|
|
258
|
-
o,
|
|
259
|
-
!1,
|
|
260
|
-
i ? Error("react-stack-top-frame") : Q,
|
|
261
|
-
i ? j(s(e)) : K
|
|
262
|
-
);
|
|
263
|
-
}, I.jsxs = function(e, r, o) {
|
|
264
|
-
var i = 1e4 > R.recentlyCreatedOwnerStacks++;
|
|
265
|
-
return m(
|
|
266
|
-
e,
|
|
267
|
-
r,
|
|
268
|
-
o,
|
|
269
|
-
!0,
|
|
270
|
-
i ? Error("react-stack-top-frame") : Q,
|
|
271
|
-
i ? j(s(e)) : K
|
|
272
|
-
);
|
|
273
|
-
};
|
|
274
|
-
}()), I;
|
|
275
|
-
}
|
|
276
|
-
process.env.NODE_ENV === "production" ? X.exports = ie() : X.exports = le();
|
|
277
|
-
var t = X.exports;
|
|
278
|
-
const ce = ["Smile", "Blink", "Turn_Head", "Thumbs_Up"], ne = 60, ue = (d) => {
|
|
279
|
-
if (!d) return null;
|
|
280
|
-
const p = d.split(","), f = p[0].match(/:(.*?);/)[1], s = atob(p[1]);
|
|
281
|
-
let n = s.length;
|
|
282
|
-
const c = new Uint8Array(n);
|
|
283
|
-
for (; n--; ) c[n] = s.charCodeAt(n);
|
|
284
|
-
return new Blob([c], { type: f });
|
|
285
|
-
}, ye = ({ apiUrl: d, onComplete: p }) => {
|
|
286
|
-
const f = q(null), s = q(null), n = q(null), [c, v] = _([]), [g, L] = _(0), [a, m] = _("idle"), [F, T] = _(3), [b, O] = _(ne), [k, x] = _(!1), [w, S] = _(!1), [Y, M] = _(null), P = () => {
|
|
287
|
-
const u = [...ce].sort(() => 0.5 - Math.random()).slice(0, 3);
|
|
288
|
-
v(u), L(0), m("idle"), T(3), O(ne), x(!1), S(!1);
|
|
289
|
-
};
|
|
290
|
-
H(() => {
|
|
291
|
-
P();
|
|
292
|
-
}, []);
|
|
293
|
-
const W = () => {
|
|
294
|
-
P();
|
|
295
|
-
};
|
|
296
|
-
H(() => () => {
|
|
297
|
-
n.current && clearInterval(n.current), s.current && s.current.abort();
|
|
298
|
-
}, []), H(() => {
|
|
299
|
-
let u;
|
|
300
|
-
return k && b > 0 ? u = setInterval(() => {
|
|
301
|
-
O((R) => R - 1);
|
|
302
|
-
}, 1e3) : b === 0 && a !== "success" && (n.current && (clearInterval(n.current), n.current = null), s.current && s.current.abort(), m("timeout"), x(!1), S(!1), p && p(!1)), () => clearInterval(u);
|
|
303
|
-
}, [k, b, a]);
|
|
304
|
-
const $ = async () => {
|
|
305
|
-
if (a === "capturing" || a === "verifying") return;
|
|
306
|
-
n.current && clearInterval(n.current), k || x(!0), m("counting");
|
|
307
|
-
let u = 3;
|
|
308
|
-
n.current = setInterval(() => {
|
|
309
|
-
u -= 1, T(u), u === 0 && (clearInterval(n.current), n.current = null, z());
|
|
310
|
-
}, 1e3);
|
|
311
|
-
}, z = async () => {
|
|
312
|
-
if (!f.current)
|
|
313
|
-
return;
|
|
314
|
-
m("capturing");
|
|
315
|
-
const u = [], R = 20;
|
|
316
|
-
for (let E = 0; E < R; E++) {
|
|
317
|
-
if (!f.current || b <= 0) return;
|
|
318
|
-
try {
|
|
319
|
-
const h = f.current.getScreenshot();
|
|
320
|
-
h && u.push(h);
|
|
321
|
-
} catch {
|
|
322
|
-
break;
|
|
611
|
+
<%s key={someKey} {...props} />`, Un, _t, l1, _t), Ls[_t + Un] = !0;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
return a === n ? s1(Q) : i1(Q), Q;
|
|
323
615
|
}
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
616
|
+
}
|
|
617
|
+
function o1(a, h, p) {
|
|
618
|
+
return Ps(a, h, p, !0);
|
|
619
|
+
}
|
|
620
|
+
function a1(a, h, p) {
|
|
621
|
+
return Ps(a, h, p, !1);
|
|
622
|
+
}
|
|
623
|
+
var c1 = a1, u1 = o1;
|
|
624
|
+
vr.Fragment = n, vr.jsx = c1, vr.jsxs = u1;
|
|
625
|
+
}()), vr;
|
|
626
|
+
}
|
|
627
|
+
process.env.NODE_ENV === "production" ? Qn.exports = p1() : Qn.exports = g1();
|
|
628
|
+
var C = Qn.exports, Wt = typeof self < "u" ? self : {};
|
|
629
|
+
function Tr(e, t) {
|
|
630
|
+
e: {
|
|
631
|
+
for (var r = ["CLOSURE_FLAGS"], n = Wt, i = 0; i < r.length; i++) if ((n = n[r[i]]) == null) {
|
|
632
|
+
r = null;
|
|
633
|
+
break e;
|
|
634
|
+
}
|
|
635
|
+
r = n;
|
|
636
|
+
}
|
|
637
|
+
return (e = r && r[e]) != null ? e : t;
|
|
638
|
+
}
|
|
639
|
+
function wt() {
|
|
640
|
+
throw Error("Invalid UTF8");
|
|
641
|
+
}
|
|
642
|
+
function Rs(e, t) {
|
|
643
|
+
return t = String.fromCharCode.apply(null, t), e == null ? t : e + t;
|
|
644
|
+
}
|
|
645
|
+
let Kr, Wn;
|
|
646
|
+
const m1 = typeof TextDecoder < "u";
|
|
647
|
+
let y1;
|
|
648
|
+
const v1 = typeof TextEncoder < "u";
|
|
649
|
+
function Uo(e) {
|
|
650
|
+
if (v1) e = (y1 || (y1 = new TextEncoder())).encode(e);
|
|
651
|
+
else {
|
|
652
|
+
let r = 0;
|
|
653
|
+
const n = new Uint8Array(3 * e.length);
|
|
654
|
+
for (let i = 0; i < e.length; i++) {
|
|
655
|
+
var t = e.charCodeAt(i);
|
|
656
|
+
if (t < 128) n[r++] = t;
|
|
657
|
+
else {
|
|
658
|
+
if (t < 2048) n[r++] = t >> 6 | 192;
|
|
347
659
|
else {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
S(!0), m("idle");
|
|
359
|
-
} finally {
|
|
360
|
-
s.current = null;
|
|
361
|
-
}
|
|
362
|
-
}, V = {
|
|
363
|
-
Smile: "Show us a big SMILE! 😁",
|
|
364
|
-
Blink: "BLINK your eyes rapidly! 👁️",
|
|
365
|
-
Turn_Head: "Slowly TURN your head left or right! ↔️",
|
|
366
|
-
Thumbs_Up: "Give a THUMBS UP! 👍"
|
|
367
|
-
};
|
|
368
|
-
return /* @__PURE__ */ t.jsxs("div", { style: { textAlign: "center", padding: "20px", fontFamily: "sans-serif" }, children: [
|
|
369
|
-
k && a !== "success" && /* @__PURE__ */ t.jsxs("div", { style: { fontSize: "20px", fontWeight: "bold", color: b < 10 ? "red" : "black" }, children: [
|
|
370
|
-
"Time Remaining: ",
|
|
371
|
-
b,
|
|
372
|
-
"s"
|
|
373
|
-
] }),
|
|
374
|
-
w && /* @__PURE__ */ t.jsx("div", { style: fe, children: /* @__PURE__ */ t.jsxs("div", { style: de, children: [
|
|
375
|
-
/* @__PURE__ */ t.jsx("h3", { style: { color: "#dc3545" }, children: "Action Not Detected" }),
|
|
376
|
-
/* @__PURE__ */ t.jsx("p", { children: "We couldn't verify that move. Please try again before time runs out!" }),
|
|
377
|
-
/* @__PURE__ */ t.jsx("button", { onClick: () => {
|
|
378
|
-
S(!1), $();
|
|
379
|
-
}, style: U, children: "Try Again" })
|
|
380
|
-
] }) }),
|
|
381
|
-
a === "success" && /* @__PURE__ */ t.jsxs("div", { children: [
|
|
382
|
-
/* @__PURE__ */ t.jsx("h2", { children: "✅ Verification Passed!" }),
|
|
383
|
-
Y && /* @__PURE__ */ t.jsxs("div", { style: { margin: "20px auto", width: "200px" }, children: [
|
|
384
|
-
/* @__PURE__ */ t.jsx("p", { children: "Verified Photo:" }),
|
|
385
|
-
/* @__PURE__ */ t.jsx(
|
|
386
|
-
"img",
|
|
387
|
-
{
|
|
388
|
-
src: Y,
|
|
389
|
-
alt: "Verified",
|
|
390
|
-
style: { width: "100%", borderRadius: "10px", border: "3px solid #28a745" }
|
|
660
|
+
if (t >= 55296 && t <= 57343) {
|
|
661
|
+
if (t <= 56319 && i < e.length) {
|
|
662
|
+
const s = e.charCodeAt(++i);
|
|
663
|
+
if (s >= 56320 && s <= 57343) {
|
|
664
|
+
t = 1024 * (t - 55296) + s - 56320 + 65536, n[r++] = t >> 18 | 240, n[r++] = t >> 12 & 63 | 128, n[r++] = t >> 6 & 63 | 128, n[r++] = 63 & t | 128;
|
|
665
|
+
continue;
|
|
666
|
+
}
|
|
667
|
+
i--;
|
|
668
|
+
}
|
|
669
|
+
t = 65533;
|
|
391
670
|
}
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
671
|
+
n[r++] = t >> 12 | 224, n[r++] = t >> 6 & 63 | 128;
|
|
672
|
+
}
|
|
673
|
+
n[r++] = 63 & t | 128;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
e = r === n.length ? n : n.subarray(0, r);
|
|
677
|
+
}
|
|
678
|
+
return e;
|
|
679
|
+
}
|
|
680
|
+
function Vo(e) {
|
|
681
|
+
Wt.setTimeout(() => {
|
|
682
|
+
throw e;
|
|
683
|
+
}, 0);
|
|
684
|
+
}
|
|
685
|
+
var ei, _1 = Tr(610401301, !1), Ms = Tr(748402147, !0), _i = Tr(824648567, !0), bi = Tr(824656860, Tr(1, !0));
|
|
686
|
+
function Cs() {
|
|
687
|
+
var e = Wt.navigator;
|
|
688
|
+
return e && (e = e.userAgent) ? e : "";
|
|
689
|
+
}
|
|
690
|
+
const Is = Wt.navigator;
|
|
691
|
+
function on(e) {
|
|
692
|
+
return on[" "](e), e;
|
|
693
|
+
}
|
|
694
|
+
ei = Is && Is.userAgentData || null, on[" "] = function() {
|
|
695
|
+
};
|
|
696
|
+
const Go = {};
|
|
697
|
+
let wr = null;
|
|
698
|
+
function b1(e) {
|
|
699
|
+
const t = e.length;
|
|
700
|
+
let r = 3 * t / 4;
|
|
701
|
+
r % 3 ? r = Math.floor(r) : "=.".indexOf(e[t - 1]) != -1 && (r = "=.".indexOf(e[t - 2]) != -1 ? r - 2 : r - 1);
|
|
702
|
+
const n = new Uint8Array(r);
|
|
703
|
+
let i = 0;
|
|
704
|
+
return function(s, o) {
|
|
705
|
+
function c(f) {
|
|
706
|
+
for (; u < s.length; ) {
|
|
707
|
+
const l = s.charAt(u++), d = wr[l];
|
|
708
|
+
if (d != null) return d;
|
|
709
|
+
if (!/^[\s\xa0]*$/.test(l)) throw Error("Unknown base64 encoding at char: " + l);
|
|
710
|
+
}
|
|
711
|
+
return f;
|
|
712
|
+
}
|
|
713
|
+
Wo();
|
|
714
|
+
let u = 0;
|
|
715
|
+
for (; ; ) {
|
|
716
|
+
const f = c(-1), l = c(0), d = c(64), b = c(64);
|
|
717
|
+
if (b === 64 && f === -1) break;
|
|
718
|
+
o(f << 2 | l >> 4), d != 64 && (o(l << 4 & 240 | d >> 2), b != 64 && o(d << 6 & 192 | b));
|
|
719
|
+
}
|
|
720
|
+
}(e, function(s) {
|
|
721
|
+
n[i++] = s;
|
|
722
|
+
}), i !== r ? n.subarray(0, i) : n;
|
|
723
|
+
}
|
|
724
|
+
function Wo() {
|
|
725
|
+
if (!wr) {
|
|
726
|
+
wr = {};
|
|
727
|
+
var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""), t = ["+/=", "+/", "-_=", "-_.", "-_"];
|
|
728
|
+
for (let r = 0; r < 5; r++) {
|
|
729
|
+
const n = e.concat(t[r].split(""));
|
|
730
|
+
Go[r] = n;
|
|
731
|
+
for (let i = 0; i < n.length; i++) {
|
|
732
|
+
const s = n[i];
|
|
733
|
+
wr[s] === void 0 && (wr[s] = i);
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
var w1 = typeof Uint8Array < "u", Ho = !(!(_1 && ei && ei.brands.length > 0) && (Cs().indexOf("Trident") != -1 || Cs().indexOf("MSIE") != -1)) && typeof btoa == "function";
|
|
739
|
+
const Ns = /[-_.]/g, E1 = { "-": "+", _: "/", ".": "=" };
|
|
740
|
+
function A1(e) {
|
|
741
|
+
return E1[e] || "";
|
|
742
|
+
}
|
|
743
|
+
function zo(e) {
|
|
744
|
+
if (!Ho) return b1(e);
|
|
745
|
+
e = Ns.test(e) ? e.replace(Ns, A1) : e, e = atob(e);
|
|
746
|
+
const t = new Uint8Array(e.length);
|
|
747
|
+
for (let r = 0; r < e.length; r++) t[r] = e.charCodeAt(r);
|
|
748
|
+
return t;
|
|
749
|
+
}
|
|
750
|
+
function wi(e) {
|
|
751
|
+
return w1 && e != null && e instanceof Uint8Array;
|
|
752
|
+
}
|
|
753
|
+
var Ht = {};
|
|
754
|
+
function Ot() {
|
|
755
|
+
return k1 || (k1 = new qe(null, Ht));
|
|
756
|
+
}
|
|
757
|
+
function Ei(e) {
|
|
758
|
+
Ko(Ht);
|
|
759
|
+
var t = e.g;
|
|
760
|
+
return (t = t == null || wi(t) ? t : typeof t == "string" ? zo(t) : null) == null ? t : e.g = t;
|
|
761
|
+
}
|
|
762
|
+
var qe = class {
|
|
763
|
+
h() {
|
|
764
|
+
return new Uint8Array(Ei(this) || 0);
|
|
765
|
+
}
|
|
766
|
+
constructor(e, t) {
|
|
767
|
+
if (Ko(t), this.g = e, e != null && e.length === 0) throw Error("ByteString should be constructed with non-empty values");
|
|
768
|
+
}
|
|
769
|
+
};
|
|
770
|
+
let k1, S1;
|
|
771
|
+
function Ko(e) {
|
|
772
|
+
if (e !== Ht) throw Error("illegal external caller");
|
|
773
|
+
}
|
|
774
|
+
function Yo(e, t) {
|
|
775
|
+
e.__closure__error__context__984382 || (e.__closure__error__context__984382 = {}), e.__closure__error__context__984382.severity = t;
|
|
776
|
+
}
|
|
777
|
+
function ti(e) {
|
|
778
|
+
return Yo(e = Error(e), "warning"), e;
|
|
779
|
+
}
|
|
780
|
+
function zt(e, t) {
|
|
781
|
+
if (e != null) {
|
|
782
|
+
var r = S1 ?? (S1 = {}), n = r[e] || 0;
|
|
783
|
+
n >= t || (r[e] = n + 1, Yo(e = Error(), "incident"), Vo(e));
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
function tr() {
|
|
787
|
+
return typeof BigInt == "function";
|
|
788
|
+
}
|
|
789
|
+
var rr = typeof Symbol == "function" && typeof Symbol() == "symbol";
|
|
790
|
+
function Xe(e, t, r = !1) {
|
|
791
|
+
return typeof Symbol == "function" && typeof Symbol() == "symbol" ? r && Symbol.for && e ? Symbol.for(e) : e != null ? Symbol(e) : Symbol() : t;
|
|
792
|
+
}
|
|
793
|
+
var T1 = Xe("jas", void 0, !0), js = Xe(void 0, "0di"), _r = Xe(void 0, "1oa"), ke = Xe(void 0, Symbol()), x1 = Xe(void 0, "0ub"), L1 = Xe(void 0, "0ubs"), ri = Xe(void 0, "0ubsb"), P1 = Xe(void 0, "0actk"), Kt = Xe("m_m", "Pa", !0), Ds = Xe();
|
|
794
|
+
const $o = { Ga: { value: 0, configurable: !0, writable: !0, enumerable: !1 } }, qo = Object.defineProperties, m = rr ? T1 : "Ga";
|
|
795
|
+
var Mt;
|
|
796
|
+
const Bs = [];
|
|
797
|
+
function Fr(e, t) {
|
|
798
|
+
rr || m in e || qo(e, $o), e[m] |= t;
|
|
799
|
+
}
|
|
800
|
+
function ae(e, t) {
|
|
801
|
+
rr || m in e || qo(e, $o), e[m] = t;
|
|
802
|
+
}
|
|
803
|
+
function Rr(e) {
|
|
804
|
+
return Fr(e, 34), e;
|
|
805
|
+
}
|
|
806
|
+
function xr(e) {
|
|
807
|
+
return Fr(e, 8192), e;
|
|
808
|
+
}
|
|
809
|
+
ae(Bs, 7), Mt = Object.freeze(Bs);
|
|
810
|
+
var Yt = {};
|
|
811
|
+
function Te(e, t) {
|
|
812
|
+
return t === void 0 ? e.h !== Ft && !!(2 & (0 | e.v[m])) : !!(2 & t) && e.h !== Ft;
|
|
813
|
+
}
|
|
814
|
+
const Ft = {};
|
|
815
|
+
function Ai(e, t) {
|
|
816
|
+
if (e != null) {
|
|
817
|
+
if (typeof e == "string") e = e ? new qe(e, Ht) : Ot();
|
|
818
|
+
else if (e.constructor !== qe) if (wi(e)) e = e.length ? new qe(new Uint8Array(e), Ht) : Ot();
|
|
819
|
+
else {
|
|
820
|
+
if (!t) throw Error();
|
|
821
|
+
e = void 0;
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
return e;
|
|
825
|
+
}
|
|
826
|
+
class Us {
|
|
827
|
+
constructor(t, r, n) {
|
|
828
|
+
this.g = t, this.h = r, this.l = n;
|
|
829
|
+
}
|
|
830
|
+
next() {
|
|
831
|
+
const t = this.g.next();
|
|
832
|
+
return t.done || (t.value = this.h.call(this.l, t.value)), t;
|
|
833
|
+
}
|
|
834
|
+
[Symbol.iterator]() {
|
|
835
|
+
return this;
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
var O1 = Object.freeze({});
|
|
839
|
+
function Xo(e, t, r) {
|
|
840
|
+
const n = 128 & t ? 0 : -1, i = e.length;
|
|
841
|
+
var s;
|
|
842
|
+
(s = !!i) && (s = (s = e[i - 1]) != null && typeof s == "object" && s.constructor === Object);
|
|
843
|
+
const o = i + (s ? -1 : 0);
|
|
844
|
+
for (t = 128 & t ? 1 : 0; t < o; t++) r(t - n, e[t]);
|
|
845
|
+
if (s) {
|
|
846
|
+
e = e[i - 1];
|
|
847
|
+
for (const c in e) !isNaN(c) && r(+c, e[c]);
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
var Jo = {};
|
|
851
|
+
function nr(e) {
|
|
852
|
+
return 128 & e ? Jo : void 0;
|
|
853
|
+
}
|
|
854
|
+
function an(e) {
|
|
855
|
+
return e.Na = !0, e;
|
|
856
|
+
}
|
|
857
|
+
var F1 = an((e) => typeof e == "number"), Vs = an((e) => typeof e == "string"), R1 = an((e) => typeof e == "boolean"), cn = typeof Wt.BigInt == "function" && typeof Wt.BigInt(0) == "bigint";
|
|
858
|
+
function Se(e) {
|
|
859
|
+
var t = e;
|
|
860
|
+
if (Vs(t)) {
|
|
861
|
+
if (!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(t)) throw Error(String(t));
|
|
862
|
+
} else if (F1(t) && !Number.isSafeInteger(t)) throw Error(String(t));
|
|
863
|
+
return cn ? BigInt(e) : e = R1(e) ? e ? "1" : "0" : Vs(e) ? e.trim() || "0" : String(e);
|
|
864
|
+
}
|
|
865
|
+
var ni = an((e) => cn ? e >= C1 && e <= N1 : e[0] === "-" ? Gs(e, M1) : Gs(e, I1));
|
|
866
|
+
const M1 = Number.MIN_SAFE_INTEGER.toString(), C1 = cn ? BigInt(Number.MIN_SAFE_INTEGER) : void 0, I1 = Number.MAX_SAFE_INTEGER.toString(), N1 = cn ? BigInt(Number.MAX_SAFE_INTEGER) : void 0;
|
|
867
|
+
function Gs(e, t) {
|
|
868
|
+
if (e.length > t.length) return !1;
|
|
869
|
+
if (e.length < t.length || e === t) return !0;
|
|
870
|
+
for (let r = 0; r < e.length; r++) {
|
|
871
|
+
const n = e[r], i = t[r];
|
|
872
|
+
if (n > i) return !1;
|
|
873
|
+
if (n < i) return !0;
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
const j1 = typeof Uint8Array.prototype.slice == "function";
|
|
877
|
+
let D1, W = 0, ee = 0;
|
|
878
|
+
function Ws(e) {
|
|
879
|
+
const t = e >>> 0;
|
|
880
|
+
W = t, ee = (e - t) / 4294967296 >>> 0;
|
|
881
|
+
}
|
|
882
|
+
function $t(e) {
|
|
883
|
+
if (e < 0) {
|
|
884
|
+
Ws(-e);
|
|
885
|
+
const [t, r] = xi(W, ee);
|
|
886
|
+
W = t >>> 0, ee = r >>> 0;
|
|
887
|
+
} else Ws(e);
|
|
888
|
+
}
|
|
889
|
+
function ki(e) {
|
|
890
|
+
const t = D1 || (D1 = new DataView(new ArrayBuffer(8)));
|
|
891
|
+
t.setFloat32(0, +e, !0), ee = 0, W = t.getUint32(0, !0);
|
|
892
|
+
}
|
|
893
|
+
function ii(e, t) {
|
|
894
|
+
const r = 4294967296 * t + (e >>> 0);
|
|
895
|
+
return Number.isSafeInteger(r) ? r : Lr(e, t);
|
|
896
|
+
}
|
|
897
|
+
function B1(e, t) {
|
|
898
|
+
return Se(tr() ? BigInt.asUintN(64, (BigInt(t >>> 0) << BigInt(32)) + BigInt(e >>> 0)) : Lr(e, t));
|
|
899
|
+
}
|
|
900
|
+
function Si(e, t) {
|
|
901
|
+
const r = 2147483648 & t;
|
|
902
|
+
return r && (t = ~t >>> 0, (e = 1 + ~e >>> 0) == 0 && (t = t + 1 >>> 0)), typeof (e = ii(e, t)) == "number" ? r ? -e : e : r ? "-" + e : e;
|
|
903
|
+
}
|
|
904
|
+
function Zo(e, t) {
|
|
905
|
+
return tr() ? Se(BigInt.asIntN(64, (BigInt.asUintN(32, BigInt(t)) << BigInt(32)) + BigInt.asUintN(32, BigInt(e)))) : Se(Ti(e, t));
|
|
906
|
+
}
|
|
907
|
+
function Lr(e, t) {
|
|
908
|
+
if (e >>>= 0, (t >>>= 0) <= 2097151) var r = "" + (4294967296 * t + e);
|
|
909
|
+
else tr() ? r = "" + (BigInt(t) << BigInt(32) | BigInt(e)) : (e = (16777215 & e) + 6777216 * (r = 16777215 & (e >>> 24 | t << 8)) + 6710656 * (t = t >> 16 & 65535), r += 8147497 * t, t *= 2, e >= 1e7 && (r += e / 1e7 >>> 0, e %= 1e7), r >= 1e7 && (t += r / 1e7 >>> 0, r %= 1e7), r = t + Hs(r) + Hs(e));
|
|
910
|
+
return r;
|
|
911
|
+
}
|
|
912
|
+
function Hs(e) {
|
|
913
|
+
return e = String(e), "0000000".slice(e.length) + e;
|
|
914
|
+
}
|
|
915
|
+
function Ti(e, t) {
|
|
916
|
+
if (2147483648 & t) if (tr()) e = "" + (BigInt(0 | t) << BigInt(32) | BigInt(e >>> 0));
|
|
917
|
+
else {
|
|
918
|
+
const [r, n] = xi(e, t);
|
|
919
|
+
e = "-" + Lr(r, n);
|
|
920
|
+
}
|
|
921
|
+
else e = Lr(e, t);
|
|
922
|
+
return e;
|
|
923
|
+
}
|
|
924
|
+
function un(e) {
|
|
925
|
+
if (e.length < 16) $t(Number(e));
|
|
926
|
+
else if (tr()) e = BigInt(e), W = Number(e & BigInt(4294967295)) >>> 0, ee = Number(e >> BigInt(32) & BigInt(4294967295));
|
|
927
|
+
else {
|
|
928
|
+
const t = +(e[0] === "-");
|
|
929
|
+
ee = W = 0;
|
|
930
|
+
const r = e.length;
|
|
931
|
+
for (let n = t, i = (r - t) % 6 + t; i <= r; n = i, i += 6) {
|
|
932
|
+
const s = Number(e.slice(n, i));
|
|
933
|
+
ee *= 1e6, W = 1e6 * W + s, W >= 4294967296 && (ee += Math.trunc(W / 4294967296), ee >>>= 0, W >>>= 0);
|
|
934
|
+
}
|
|
935
|
+
if (t) {
|
|
936
|
+
const [n, i] = xi(W, ee);
|
|
937
|
+
W = n, ee = i;
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
function xi(e, t) {
|
|
942
|
+
return t = ~t, e ? e = 1 + ~e : t += 1, [e, t];
|
|
943
|
+
}
|
|
944
|
+
function Ge(e) {
|
|
945
|
+
return Array.prototype.slice.call(e);
|
|
946
|
+
}
|
|
947
|
+
const Mr = typeof BigInt == "function" ? BigInt.asIntN : void 0, U1 = typeof BigInt == "function" ? BigInt.asUintN : void 0, Rt = Number.isSafeInteger, ln = Number.isFinite, qt = Math.trunc, V1 = Se(0);
|
|
948
|
+
function Er(e) {
|
|
949
|
+
if (e != null && typeof e != "number") throw Error(`Value of float/double field must be a number, found ${typeof e}: ${e}`);
|
|
950
|
+
return e;
|
|
951
|
+
}
|
|
952
|
+
function $e(e) {
|
|
953
|
+
return e == null || typeof e == "number" ? e : e === "NaN" || e === "Infinity" || e === "-Infinity" ? Number(e) : void 0;
|
|
954
|
+
}
|
|
955
|
+
function Pr(e) {
|
|
956
|
+
if (e != null && typeof e != "boolean") {
|
|
957
|
+
var t = typeof e;
|
|
958
|
+
throw Error(`Expected boolean but got ${t != "object" ? t : e ? Array.isArray(e) ? "array" : t : "null"}: ${e}`);
|
|
959
|
+
}
|
|
960
|
+
return e;
|
|
961
|
+
}
|
|
962
|
+
function Qo(e) {
|
|
963
|
+
return e == null || typeof e == "boolean" ? e : typeof e == "number" ? !!e : void 0;
|
|
964
|
+
}
|
|
965
|
+
const G1 = /^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;
|
|
966
|
+
function Cr(e) {
|
|
967
|
+
switch (typeof e) {
|
|
968
|
+
case "bigint":
|
|
969
|
+
return !0;
|
|
970
|
+
case "number":
|
|
971
|
+
return ln(e);
|
|
972
|
+
case "string":
|
|
973
|
+
return G1.test(e);
|
|
974
|
+
default:
|
|
975
|
+
return !1;
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
function ir(e) {
|
|
979
|
+
if (e == null) return e;
|
|
980
|
+
if (typeof e == "string" && e) e = +e;
|
|
981
|
+
else if (typeof e != "number") return;
|
|
982
|
+
return ln(e) ? 0 | e : void 0;
|
|
983
|
+
}
|
|
984
|
+
function ea(e) {
|
|
985
|
+
if (e == null) return e;
|
|
986
|
+
if (typeof e == "string" && e) e = +e;
|
|
987
|
+
else if (typeof e != "number") return;
|
|
988
|
+
return ln(e) ? e >>> 0 : void 0;
|
|
989
|
+
}
|
|
990
|
+
function ta(e) {
|
|
991
|
+
const t = e.length;
|
|
992
|
+
return (e[0] === "-" ? t < 20 || t === 20 && e <= "-9223372036854775808" : t < 19 || t === 19 && e <= "9223372036854775807") ? e : (un(e), Ti(W, ee));
|
|
993
|
+
}
|
|
994
|
+
function Li(e) {
|
|
995
|
+
return e = qt(e), Rt(e) || ($t(e), e = Si(W, ee)), e;
|
|
996
|
+
}
|
|
997
|
+
function ra(e) {
|
|
998
|
+
var t = qt(Number(e));
|
|
999
|
+
return Rt(t) ? String(t) : ((t = e.indexOf(".")) !== -1 && (e = e.substring(0, t)), ta(e));
|
|
1000
|
+
}
|
|
1001
|
+
function na(e) {
|
|
1002
|
+
var t = qt(Number(e));
|
|
1003
|
+
return Rt(t) ? Se(t) : ((t = e.indexOf(".")) !== -1 && (e = e.substring(0, t)), tr() ? Se(Mr(64, BigInt(e))) : Se(ta(e)));
|
|
1004
|
+
}
|
|
1005
|
+
function ia(e) {
|
|
1006
|
+
return Rt(e) ? e = Se(Li(e)) : (e = qt(e), Rt(e) ? e = String(e) : ($t(e), e = Ti(W, ee)), e = Se(e)), e;
|
|
1007
|
+
}
|
|
1008
|
+
function W1(e) {
|
|
1009
|
+
return e == null ? e : typeof e == "bigint" ? (ni(e) ? e = Number(e) : (e = Mr(64, e), e = ni(e) ? Number(e) : String(e)), e) : Cr(e) ? typeof e == "number" ? Li(e) : ra(e) : void 0;
|
|
1010
|
+
}
|
|
1011
|
+
function Zr(e) {
|
|
1012
|
+
const t = typeof e;
|
|
1013
|
+
return e == null ? e : t === "bigint" ? Se(Mr(64, e)) : Cr(e) ? t === "string" ? na(e) : ia(e) : void 0;
|
|
1014
|
+
}
|
|
1015
|
+
function sa(e) {
|
|
1016
|
+
if (typeof e != "string") throw Error();
|
|
1017
|
+
return e;
|
|
1018
|
+
}
|
|
1019
|
+
function Ir(e) {
|
|
1020
|
+
if (e != null && typeof e != "string") throw Error();
|
|
1021
|
+
return e;
|
|
1022
|
+
}
|
|
1023
|
+
function fe(e) {
|
|
1024
|
+
return e == null || typeof e == "string" ? e : void 0;
|
|
1025
|
+
}
|
|
1026
|
+
function Pi(e, t, r, n) {
|
|
1027
|
+
return e != null && e[Kt] === Yt ? e : Array.isArray(e) ? ((n = (r = 0 | e[m]) | 32 & n | 2 & n) !== r && ae(e, n), new t(e)) : (r ? 2 & n ? ((e = t[js]) || (Rr((e = new t()).v), e = t[js] = e), t = e) : t = new t() : t = void 0, t);
|
|
1028
|
+
}
|
|
1029
|
+
function H1(e, t, r) {
|
|
1030
|
+
if (t) e: {
|
|
1031
|
+
if (!Cr(t = e)) throw ti("int64");
|
|
1032
|
+
switch (typeof t) {
|
|
1033
|
+
case "string":
|
|
1034
|
+
t = na(t);
|
|
1035
|
+
break e;
|
|
1036
|
+
case "bigint":
|
|
1037
|
+
t = Se(Mr(64, t));
|
|
1038
|
+
break e;
|
|
1039
|
+
default:
|
|
1040
|
+
t = ia(t);
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
else t = Zr(e);
|
|
1044
|
+
return (e = t) == null ? r ? V1 : void 0 : e;
|
|
1045
|
+
}
|
|
1046
|
+
const z1 = {};
|
|
1047
|
+
let K1 = function() {
|
|
1048
|
+
try {
|
|
1049
|
+
return on(new class extends Map {
|
|
1050
|
+
constructor() {
|
|
1051
|
+
super();
|
|
1052
|
+
}
|
|
1053
|
+
}()), !1;
|
|
1054
|
+
} catch {
|
|
1055
|
+
return !0;
|
|
1056
|
+
}
|
|
1057
|
+
}();
|
|
1058
|
+
class Hn {
|
|
1059
|
+
constructor() {
|
|
1060
|
+
this.g = /* @__PURE__ */ new Map();
|
|
1061
|
+
}
|
|
1062
|
+
get(t) {
|
|
1063
|
+
return this.g.get(t);
|
|
1064
|
+
}
|
|
1065
|
+
set(t, r) {
|
|
1066
|
+
return this.g.set(t, r), this.size = this.g.size, this;
|
|
1067
|
+
}
|
|
1068
|
+
delete(t) {
|
|
1069
|
+
return t = this.g.delete(t), this.size = this.g.size, t;
|
|
1070
|
+
}
|
|
1071
|
+
clear() {
|
|
1072
|
+
this.g.clear(), this.size = this.g.size;
|
|
1073
|
+
}
|
|
1074
|
+
has(t) {
|
|
1075
|
+
return this.g.has(t);
|
|
1076
|
+
}
|
|
1077
|
+
entries() {
|
|
1078
|
+
return this.g.entries();
|
|
1079
|
+
}
|
|
1080
|
+
keys() {
|
|
1081
|
+
return this.g.keys();
|
|
1082
|
+
}
|
|
1083
|
+
values() {
|
|
1084
|
+
return this.g.values();
|
|
1085
|
+
}
|
|
1086
|
+
forEach(t, r) {
|
|
1087
|
+
return this.g.forEach(t, r);
|
|
1088
|
+
}
|
|
1089
|
+
[Symbol.iterator]() {
|
|
1090
|
+
return this.entries();
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
const Y1 = K1 ? (Object.setPrototypeOf(Hn.prototype, Map.prototype), Object.defineProperties(Hn.prototype, { size: { value: 0, configurable: !0, enumerable: !0, writable: !0 } }), Hn) : class extends Map {
|
|
1094
|
+
constructor() {
|
|
1095
|
+
super();
|
|
1096
|
+
}
|
|
1097
|
+
};
|
|
1098
|
+
function zs(e) {
|
|
1099
|
+
return e;
|
|
1100
|
+
}
|
|
1101
|
+
function zn(e) {
|
|
1102
|
+
if (2 & e.J) throw Error("Cannot mutate an immutable Map");
|
|
1103
|
+
}
|
|
1104
|
+
var rt = class extends Y1 {
|
|
1105
|
+
constructor(e, t, r = zs, n = zs) {
|
|
1106
|
+
super(), this.J = 0 | e[m], this.K = t, this.S = r, this.fa = this.K ? $1 : n;
|
|
1107
|
+
for (let i = 0; i < e.length; i++) {
|
|
1108
|
+
const s = e[i], o = r(s[0], !1, !0);
|
|
1109
|
+
let c = s[1];
|
|
1110
|
+
t ? c === void 0 && (c = null) : c = n(s[1], !1, !0, void 0, void 0, this.J), super.set(o, c);
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
V(e) {
|
|
1114
|
+
return xr(Array.from(super.entries(), e));
|
|
1115
|
+
}
|
|
1116
|
+
clear() {
|
|
1117
|
+
zn(this), super.clear();
|
|
1118
|
+
}
|
|
1119
|
+
delete(e) {
|
|
1120
|
+
return zn(this), super.delete(this.S(e, !0, !1));
|
|
1121
|
+
}
|
|
1122
|
+
entries() {
|
|
1123
|
+
if (this.K) {
|
|
1124
|
+
var e = super.keys();
|
|
1125
|
+
e = new Us(e, q1, this);
|
|
1126
|
+
} else e = super.entries();
|
|
1127
|
+
return e;
|
|
1128
|
+
}
|
|
1129
|
+
values() {
|
|
1130
|
+
if (this.K) {
|
|
1131
|
+
var e = super.keys();
|
|
1132
|
+
e = new Us(e, rt.prototype.get, this);
|
|
1133
|
+
} else e = super.values();
|
|
1134
|
+
return e;
|
|
1135
|
+
}
|
|
1136
|
+
forEach(e, t) {
|
|
1137
|
+
this.K ? super.forEach((r, n, i) => {
|
|
1138
|
+
e.call(t, i.get(n), n, i);
|
|
1139
|
+
}) : super.forEach(e, t);
|
|
1140
|
+
}
|
|
1141
|
+
set(e, t) {
|
|
1142
|
+
return zn(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));
|
|
1143
|
+
}
|
|
1144
|
+
Ma(e) {
|
|
1145
|
+
const t = this.S(e[0], !1, !0);
|
|
1146
|
+
e = e[1], e = this.K ? e === void 0 ? null : e : this.fa(e, !1, !0, void 0, !1, this.J), super.set(t, e);
|
|
1147
|
+
}
|
|
1148
|
+
has(e) {
|
|
1149
|
+
return super.has(this.S(e, !1, !1));
|
|
1150
|
+
}
|
|
1151
|
+
get(e) {
|
|
1152
|
+
e = this.S(e, !1, !1);
|
|
1153
|
+
const t = super.get(e);
|
|
1154
|
+
if (t !== void 0) {
|
|
1155
|
+
var r = this.K;
|
|
1156
|
+
return r ? ((r = this.fa(t, !1, !0, r, this.ra, this.J)) !== t && super.set(e, r), r) : t;
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
[Symbol.iterator]() {
|
|
1160
|
+
return this.entries();
|
|
1161
|
+
}
|
|
1162
|
+
};
|
|
1163
|
+
function $1(e, t, r, n, i, s) {
|
|
1164
|
+
return e = Pi(e, n, r, s), i && (e = Fi(e)), e;
|
|
1165
|
+
}
|
|
1166
|
+
function q1(e) {
|
|
1167
|
+
return [e, this.get(e)];
|
|
1168
|
+
}
|
|
1169
|
+
let X1;
|
|
1170
|
+
function Ks() {
|
|
1171
|
+
return X1 || (X1 = new rt(Rr([]), void 0, void 0, void 0, z1));
|
|
1172
|
+
}
|
|
1173
|
+
function hn(e) {
|
|
1174
|
+
return ke ? e[ke] : void 0;
|
|
1175
|
+
}
|
|
1176
|
+
function Qr(e, t) {
|
|
1177
|
+
for (const r in e) !isNaN(r) && t(e, +r, e[r]);
|
|
1178
|
+
}
|
|
1179
|
+
rt.prototype.toJSON = void 0;
|
|
1180
|
+
var si = class {
|
|
1181
|
+
};
|
|
1182
|
+
const J1 = { Ka: !0 };
|
|
1183
|
+
function Z1(e, t) {
|
|
1184
|
+
t < 100 || zt(L1, 1);
|
|
1185
|
+
}
|
|
1186
|
+
function fn(e, t, r, n) {
|
|
1187
|
+
const i = n !== void 0;
|
|
1188
|
+
n = !!n;
|
|
1189
|
+
var s, o = ke;
|
|
1190
|
+
!i && rr && o && (s = e[o]) && Qr(s, Z1), o = [];
|
|
1191
|
+
var c = e.length;
|
|
1192
|
+
let u;
|
|
1193
|
+
s = 4294967295;
|
|
1194
|
+
let f = !1;
|
|
1195
|
+
const l = !!(64 & t), d = l ? 128 & t ? 0 : -1 : void 0;
|
|
1196
|
+
1 & t || (u = c && e[c - 1], u != null && typeof u == "object" && u.constructor === Object ? s = --c : u = void 0, !l || 128 & t || i || (f = !0, s = s - d + d)), t = void 0;
|
|
1197
|
+
for (var b = 0; b < c; b++) {
|
|
1198
|
+
let A = e[b];
|
|
1199
|
+
if (A != null && (A = r(A, n)) != null) if (l && b >= s) {
|
|
1200
|
+
const N = b - d;
|
|
1201
|
+
(t ?? (t = {}))[N] = A;
|
|
1202
|
+
} else o[b] = A;
|
|
1203
|
+
}
|
|
1204
|
+
if (u) for (let A in u) {
|
|
1205
|
+
if ((c = u[A]) == null || (c = r(c, n)) == null) continue;
|
|
1206
|
+
let N;
|
|
1207
|
+
b = +A, l && !Number.isNaN(b) && (N = b + d) < s ? o[N] = c : (t ?? (t = {}))[A] = c;
|
|
1208
|
+
}
|
|
1209
|
+
return t && (f ? o.push(t) : o[s] = t), i && ke && (e = hn(e)) && e instanceof si && (o[ke] = function(A) {
|
|
1210
|
+
const N = new si();
|
|
1211
|
+
return Qr(A, (Be, Ue, J) => {
|
|
1212
|
+
N[Ue] = Ge(J);
|
|
1213
|
+
}), N.da = A.da, N;
|
|
1214
|
+
}(e)), o;
|
|
1215
|
+
}
|
|
1216
|
+
function Q1(e) {
|
|
1217
|
+
return e[0] = Or(e[0]), e[1] = Or(e[1]), e;
|
|
1218
|
+
}
|
|
1219
|
+
function Or(e) {
|
|
1220
|
+
switch (typeof e) {
|
|
1221
|
+
case "number":
|
|
1222
|
+
return Number.isFinite(e) ? e : "" + e;
|
|
1223
|
+
case "bigint":
|
|
1224
|
+
return ni(e) ? Number(e) : "" + e;
|
|
1225
|
+
case "boolean":
|
|
1226
|
+
return e ? 1 : 0;
|
|
1227
|
+
case "object":
|
|
1228
|
+
if (Array.isArray(e)) {
|
|
1229
|
+
var t = 0 | e[m];
|
|
1230
|
+
return e.length === 0 && 1 & t ? void 0 : fn(e, t, Or);
|
|
1231
|
+
}
|
|
1232
|
+
if (e != null && e[Kt] === Yt) return oa(e);
|
|
1233
|
+
if (e instanceof qe) {
|
|
1234
|
+
if ((t = e.g) == null) e = "";
|
|
1235
|
+
else if (typeof t == "string") e = t;
|
|
1236
|
+
else {
|
|
1237
|
+
if (Ho) {
|
|
1238
|
+
for (var r = "", n = 0, i = t.length - 10240; n < i; ) r += String.fromCharCode.apply(null, t.subarray(n, n += 10240));
|
|
1239
|
+
r += String.fromCharCode.apply(null, n ? t.subarray(n) : t), t = btoa(r);
|
|
1240
|
+
} else {
|
|
1241
|
+
r === void 0 && (r = 0), Wo(), r = Go[r], n = Array(Math.floor(t.length / 3)), i = r[64] || "";
|
|
1242
|
+
let f = 0, l = 0;
|
|
1243
|
+
for (; f < t.length - 2; f += 3) {
|
|
1244
|
+
var s = t[f], o = t[f + 1], c = t[f + 2], u = r[s >> 2];
|
|
1245
|
+
s = r[(3 & s) << 4 | o >> 4], o = r[(15 & o) << 2 | c >> 6], c = r[63 & c], n[l++] = u + s + o + c;
|
|
1246
|
+
}
|
|
1247
|
+
switch (u = 0, c = i, t.length - f) {
|
|
1248
|
+
case 2:
|
|
1249
|
+
c = r[(15 & (u = t[f + 1])) << 2] || i;
|
|
1250
|
+
case 1:
|
|
1251
|
+
t = t[f], n[l] = r[t >> 2] + r[(3 & t) << 4 | u >> 4] + c + i;
|
|
1252
|
+
}
|
|
1253
|
+
t = n.join("");
|
|
1254
|
+
}
|
|
1255
|
+
e = e.g = t;
|
|
1256
|
+
}
|
|
1257
|
+
return e;
|
|
1258
|
+
}
|
|
1259
|
+
return e instanceof rt ? e = e.size !== 0 ? e.V(Q1) : void 0 : void 0;
|
|
1260
|
+
}
|
|
1261
|
+
return e;
|
|
1262
|
+
}
|
|
1263
|
+
function oa(e) {
|
|
1264
|
+
return fn(e = e.v, 0 | e[m], Or);
|
|
1265
|
+
}
|
|
1266
|
+
let ec, tc;
|
|
1267
|
+
function St(e, t) {
|
|
1268
|
+
return aa(e, t[0], t[1]);
|
|
1269
|
+
}
|
|
1270
|
+
function aa(e, t, r, n = 0) {
|
|
1271
|
+
if (e == null) {
|
|
1272
|
+
var i = 32;
|
|
1273
|
+
r ? (e = [r], i |= 128) : e = [], t && (i = -16760833 & i | (1023 & t) << 14);
|
|
1274
|
+
} else {
|
|
1275
|
+
if (!Array.isArray(e)) throw Error("narr");
|
|
1276
|
+
if (i = 0 | e[m], Ms && 1 & i) throw Error("rfarr");
|
|
1277
|
+
if (2048 & i && !(2 & i) && function() {
|
|
1278
|
+
if (Ms) throw Error("carr");
|
|
1279
|
+
zt(P1, 5);
|
|
1280
|
+
}(), 256 & i) throw Error("farr");
|
|
1281
|
+
if (64 & i) return (i | n) !== i && ae(e, i | n), e;
|
|
1282
|
+
if (r && (i |= 128, r !== e[0])) throw Error("mid");
|
|
1283
|
+
e: {
|
|
1284
|
+
i |= 64;
|
|
1285
|
+
var s = (r = e).length;
|
|
1286
|
+
if (s) {
|
|
1287
|
+
var o = s - 1;
|
|
1288
|
+
const u = r[o];
|
|
1289
|
+
if (u != null && typeof u == "object" && u.constructor === Object) {
|
|
1290
|
+
if ((o -= t = 128 & i ? 0 : -1) >= 1024) throw Error("pvtlmt");
|
|
1291
|
+
for (var c in u) (s = +c) < o && (r[s + t] = u[c], delete u[c]);
|
|
1292
|
+
i = -16760833 & i | (1023 & o) << 14;
|
|
1293
|
+
break e;
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
if (t) {
|
|
1297
|
+
if ((c = Math.max(t, s - (128 & i ? 0 : -1))) > 1024) throw Error("spvt");
|
|
1298
|
+
i = -16760833 & i | (1023 & c) << 14;
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
return ae(e, 64 | i | n), e;
|
|
1303
|
+
}
|
|
1304
|
+
function rc(e, t) {
|
|
1305
|
+
if (typeof e != "object") return e;
|
|
1306
|
+
if (Array.isArray(e)) {
|
|
1307
|
+
var r = 0 | e[m];
|
|
1308
|
+
return e.length === 0 && 1 & r ? void 0 : Ys(e, r, t);
|
|
1309
|
+
}
|
|
1310
|
+
if (e != null && e[Kt] === Yt) return $s(e);
|
|
1311
|
+
if (e instanceof rt) {
|
|
1312
|
+
if (2 & (t = e.J)) return e;
|
|
1313
|
+
if (!e.size) return;
|
|
1314
|
+
if (r = Rr(e.V()), e.K) for (e = 0; e < r.length; e++) {
|
|
1315
|
+
const n = r[e];
|
|
1316
|
+
let i = n[1];
|
|
1317
|
+
i = i == null || typeof i != "object" ? void 0 : i != null && i[Kt] === Yt ? $s(i) : Array.isArray(i) ? Ys(i, 0 | i[m], !!(32 & t)) : void 0, n[1] = i;
|
|
1318
|
+
}
|
|
1319
|
+
return r;
|
|
1320
|
+
}
|
|
1321
|
+
return e instanceof qe ? e : void 0;
|
|
1322
|
+
}
|
|
1323
|
+
function Ys(e, t, r) {
|
|
1324
|
+
return 2 & t || (!r || 4096 & t || 16 & t ? e = sr(e, t, !1, r && !(16 & t)) : (Fr(e, 34), 4 & t && Object.freeze(e))), e;
|
|
1325
|
+
}
|
|
1326
|
+
function Oi(e, t, r) {
|
|
1327
|
+
return e = new e.constructor(t), r && (e.h = Ft), e.m = Ft, e;
|
|
1328
|
+
}
|
|
1329
|
+
function $s(e) {
|
|
1330
|
+
const t = e.v, r = 0 | t[m];
|
|
1331
|
+
return Te(e, r) ? e : Ri(e, t, r) ? Oi(e, t) : sr(t, r);
|
|
1332
|
+
}
|
|
1333
|
+
function sr(e, t, r, n) {
|
|
1334
|
+
return n ?? (n = !!(34 & t)), e = fn(e, t, rc, n), n = 32, r && (n |= 2), ae(e, t = 16769217 & t | n), e;
|
|
1335
|
+
}
|
|
1336
|
+
function Fi(e) {
|
|
1337
|
+
const t = e.v, r = 0 | t[m];
|
|
1338
|
+
return Te(e, r) ? Ri(e, t, r) ? Oi(e, t, !0) : new e.constructor(sr(t, r, !1)) : e;
|
|
1339
|
+
}
|
|
1340
|
+
function or(e) {
|
|
1341
|
+
if (e.h !== Ft) return !1;
|
|
1342
|
+
var t = e.v;
|
|
1343
|
+
return Fr(t = sr(t, 0 | t[m]), 2048), e.v = t, e.h = void 0, e.m = void 0, !0;
|
|
1344
|
+
}
|
|
1345
|
+
function ar(e) {
|
|
1346
|
+
if (!or(e) && Te(e, 0 | e.v[m])) throw Error();
|
|
1347
|
+
}
|
|
1348
|
+
function Ct(e, t) {
|
|
1349
|
+
t === void 0 && (t = 0 | e[m]), 32 & t && !(4096 & t) && ae(e, 4096 | t);
|
|
1350
|
+
}
|
|
1351
|
+
function Ri(e, t, r) {
|
|
1352
|
+
return !!(2 & r) || !(!(32 & r) || 4096 & r) && (ae(t, 2 | r), e.h = Ft, !0);
|
|
1353
|
+
}
|
|
1354
|
+
const nc = Se(0), ut = {};
|
|
1355
|
+
function B(e, t, r, n, i) {
|
|
1356
|
+
if ((t = nt(e.v, t, r, i)) !== null || n && e.m !== Ft) return t;
|
|
1357
|
+
}
|
|
1358
|
+
function nt(e, t, r, n) {
|
|
1359
|
+
if (t === -1) return null;
|
|
1360
|
+
const i = t + (r ? 0 : -1), s = e.length - 1;
|
|
1361
|
+
let o, c;
|
|
1362
|
+
if (!(s < 1 + (r ? 0 : -1))) {
|
|
1363
|
+
if (i >= s) if (o = e[s], o != null && typeof o == "object" && o.constructor === Object) r = o[t], c = !0;
|
|
1364
|
+
else {
|
|
1365
|
+
if (i !== s) return;
|
|
1366
|
+
r = o;
|
|
1367
|
+
}
|
|
1368
|
+
else r = e[i];
|
|
1369
|
+
if (n && r != null) {
|
|
1370
|
+
if ((n = n(r)) == null) return n;
|
|
1371
|
+
if (!Object.is(n, r)) return c ? o[t] = n : e[i] = n, n;
|
|
1372
|
+
}
|
|
1373
|
+
return r;
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
function F(e, t, r, n) {
|
|
1377
|
+
ar(e), se(e = e.v, 0 | e[m], t, r, n);
|
|
1378
|
+
}
|
|
1379
|
+
function se(e, t, r, n, i) {
|
|
1380
|
+
const s = r + (i ? 0 : -1);
|
|
1381
|
+
var o = e.length - 1;
|
|
1382
|
+
if (o >= 1 + (i ? 0 : -1) && s >= o) {
|
|
1383
|
+
const c = e[o];
|
|
1384
|
+
if (c != null && typeof c == "object" && c.constructor === Object) return c[r] = n, t;
|
|
1385
|
+
}
|
|
1386
|
+
return s <= o ? (e[s] = n, t) : (n !== void 0 && (r >= (o = (t ?? (t = 0 | e[m])) >> 14 & 1023 || 536870912) ? n != null && (e[o + (i ? 0 : -1)] = { [r]: n }) : e[s] = n), t);
|
|
1387
|
+
}
|
|
1388
|
+
function At() {
|
|
1389
|
+
return O1 === void 0 ? 2 : 4;
|
|
1390
|
+
}
|
|
1391
|
+
function kt(e, t, r, n, i) {
|
|
1392
|
+
let s = e.v, o = 0 | s[m];
|
|
1393
|
+
n = Te(e, o) ? 1 : n, i = !!i || n === 3, n === 2 && or(e) && (s = e.v, o = 0 | s[m]);
|
|
1394
|
+
let c = (e = Mi(s, t)) === Mt ? 7 : 0 | e[m], u = Ci(c, o);
|
|
1395
|
+
var f = !(4 & u);
|
|
1396
|
+
if (f) {
|
|
1397
|
+
4 & u && (e = Ge(e), c = 0, u = xt(u, o), o = se(s, o, t, e));
|
|
1398
|
+
let l = 0, d = 0;
|
|
1399
|
+
for (; l < e.length; l++) {
|
|
1400
|
+
const b = r(e[l]);
|
|
1401
|
+
b != null && (e[d++] = b);
|
|
1402
|
+
}
|
|
1403
|
+
d < l && (e.length = d), r = -513 & (4 | u), u = r &= -1025, u &= -4097;
|
|
1404
|
+
}
|
|
1405
|
+
return u !== c && (ae(e, u), 2 & u && Object.freeze(e)), ca(e, u, s, o, t, n, f, i);
|
|
1406
|
+
}
|
|
1407
|
+
function ca(e, t, r, n, i, s, o, c) {
|
|
1408
|
+
let u = t;
|
|
1409
|
+
return s === 1 || s === 4 && (2 & t || !(16 & t) && 32 & n) ? Tt(t) || ((t |= !e.length || o && !(4096 & t) || 32 & n && !(4096 & t || 16 & t) ? 2 : 256) !== u && ae(e, t), Object.freeze(e)) : (s === 2 && Tt(t) && (e = Ge(e), u = 0, t = xt(t, n), n = se(r, n, i, e)), Tt(t) || (c || (t |= 16), t !== u && ae(e, t))), 2 & t || !(4096 & t || 16 & t) || Ct(r, n), e;
|
|
1410
|
+
}
|
|
1411
|
+
function Mi(e, t, r) {
|
|
1412
|
+
return e = nt(e, t, r), Array.isArray(e) ? e : Mt;
|
|
1413
|
+
}
|
|
1414
|
+
function Ci(e, t) {
|
|
1415
|
+
return 2 & t && (e |= 2), 1 | e;
|
|
1416
|
+
}
|
|
1417
|
+
function Tt(e) {
|
|
1418
|
+
return !!(2 & e) && !!(4 & e) || !!(256 & e);
|
|
1419
|
+
}
|
|
1420
|
+
function ua(e) {
|
|
1421
|
+
return Ai(e, !0);
|
|
1422
|
+
}
|
|
1423
|
+
function la(e) {
|
|
1424
|
+
e = Ge(e);
|
|
1425
|
+
for (let t = 0; t < e.length; t++) {
|
|
1426
|
+
const r = e[t] = Ge(e[t]);
|
|
1427
|
+
Array.isArray(r[1]) && (r[1] = Rr(r[1]));
|
|
1428
|
+
}
|
|
1429
|
+
return xr(e);
|
|
1430
|
+
}
|
|
1431
|
+
function ht(e, t, r, n) {
|
|
1432
|
+
ar(e), se(e = e.v, 0 | e[m], t, (n === "0" ? Number(r) === 0 : r === n) ? void 0 : r);
|
|
1433
|
+
}
|
|
1434
|
+
function cr(e, t, r) {
|
|
1435
|
+
if (2 & t) throw Error();
|
|
1436
|
+
const n = nr(t);
|
|
1437
|
+
let i = Mi(e, r, n), s = i === Mt ? 7 : 0 | i[m], o = Ci(s, t);
|
|
1438
|
+
return (2 & o || Tt(o) || 16 & o) && (o === s || Tt(o) || ae(i, o), i = Ge(i), s = 0, o = xt(o, t), se(e, t, r, i, n)), o &= -13, o !== s && ae(i, o), i;
|
|
1439
|
+
}
|
|
1440
|
+
function Kn(e, t) {
|
|
1441
|
+
var r = r2;
|
|
1442
|
+
return Ni(Ii(e = e.v), e, void 0, r) === t ? t : -1;
|
|
1443
|
+
}
|
|
1444
|
+
function Ii(e) {
|
|
1445
|
+
if (rr) return e[_r] ?? (e[_r] = /* @__PURE__ */ new Map());
|
|
1446
|
+
if (_r in e) return e[_r];
|
|
1447
|
+
const t = /* @__PURE__ */ new Map();
|
|
1448
|
+
return Object.defineProperty(e, _r, { value: t }), t;
|
|
1449
|
+
}
|
|
1450
|
+
function ha(e, t, r, n, i) {
|
|
1451
|
+
const s = Ii(e), o = Ni(s, e, t, r, i);
|
|
1452
|
+
return o !== n && (o && (t = se(e, t, o, void 0, i)), s.set(r, n)), t;
|
|
1453
|
+
}
|
|
1454
|
+
function Ni(e, t, r, n, i) {
|
|
1455
|
+
let s = e.get(n);
|
|
1456
|
+
if (s != null) return s;
|
|
1457
|
+
s = 0;
|
|
1458
|
+
for (let o = 0; o < n.length; o++) {
|
|
1459
|
+
const c = n[o];
|
|
1460
|
+
nt(t, c, i) != null && (s !== 0 && (r = se(t, r, s, void 0, i)), s = c);
|
|
1461
|
+
}
|
|
1462
|
+
return e.set(n, s), s;
|
|
1463
|
+
}
|
|
1464
|
+
function ji(e, t, r) {
|
|
1465
|
+
let n = 0 | e[m];
|
|
1466
|
+
const i = nr(n), s = nt(e, r, i);
|
|
1467
|
+
let o;
|
|
1468
|
+
if (s != null && s[Kt] === Yt) {
|
|
1469
|
+
if (!Te(s)) return or(s), s.v;
|
|
1470
|
+
o = s.v;
|
|
1471
|
+
} else Array.isArray(s) && (o = s);
|
|
1472
|
+
if (o) {
|
|
1473
|
+
const c = 0 | o[m];
|
|
1474
|
+
2 & c && (o = sr(o, c));
|
|
1475
|
+
}
|
|
1476
|
+
return o = St(o, t), o !== s && se(e, n, r, o, i), o;
|
|
1477
|
+
}
|
|
1478
|
+
function fa(e, t, r, n, i) {
|
|
1479
|
+
let s = !1;
|
|
1480
|
+
if ((n = nt(e, n, i, (o) => {
|
|
1481
|
+
const c = Pi(o, r, !1, t);
|
|
1482
|
+
return s = c !== o && c != null, c;
|
|
1483
|
+
})) != null) return s && !Te(n) && Ct(e, t), n;
|
|
1484
|
+
}
|
|
1485
|
+
function L(e, t, r, n) {
|
|
1486
|
+
let i = e.v, s = 0 | i[m];
|
|
1487
|
+
if ((t = fa(i, s, t, r, n)) == null) return t;
|
|
1488
|
+
if (s = 0 | i[m], !Te(e, s)) {
|
|
1489
|
+
const o = Fi(t);
|
|
1490
|
+
o !== t && (or(e) && (i = e.v, s = 0 | i[m]), s = se(i, s, r, t = o, n), Ct(i, s));
|
|
1491
|
+
}
|
|
1492
|
+
return t;
|
|
1493
|
+
}
|
|
1494
|
+
function da(e, t, r, n, i, s, o, c) {
|
|
1495
|
+
var u = Te(e, r);
|
|
1496
|
+
s = u ? 1 : s, o = !!o || s === 3, u = c && !u, (s === 2 || u) && or(e) && (r = 0 | (t = e.v)[m]);
|
|
1497
|
+
var f = (e = Mi(t, i)) === Mt ? 7 : 0 | e[m], l = Ci(f, r);
|
|
1498
|
+
if (c = !(4 & l)) {
|
|
1499
|
+
var d = e, b = r;
|
|
1500
|
+
const A = !!(2 & l);
|
|
1501
|
+
A && (b |= 2);
|
|
1502
|
+
let N = !A, Be = !0, Ue = 0, J = 0;
|
|
1503
|
+
for (; Ue < d.length; Ue++) {
|
|
1504
|
+
const V = Pi(d[Ue], n, !1, b);
|
|
1505
|
+
if (V instanceof n) {
|
|
1506
|
+
if (!A) {
|
|
1507
|
+
const yt = Te(V);
|
|
1508
|
+
N && (N = !yt), Be && (Be = yt);
|
|
1509
|
+
}
|
|
1510
|
+
d[J++] = V;
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
J < Ue && (d.length = J), l |= 4, l = Be ? -4097 & l : 4096 | l, l = N ? 8 | l : -9 & l;
|
|
1514
|
+
}
|
|
1515
|
+
if (l !== f && (ae(e, l), 2 & l && Object.freeze(e)), u && !(8 & l || !e.length && (s === 1 || s === 4 && (2 & l || !(16 & l) && 32 & r)))) {
|
|
1516
|
+
for (Tt(l) && (e = Ge(e), l = xt(l, r), r = se(t, r, i, e)), n = e, u = l, f = 0; f < n.length; f++) (d = n[f]) !== (l = Fi(d)) && (n[f] = l);
|
|
1517
|
+
u |= 8, ae(e, l = u = n.length ? 4096 | u : -4097 & u);
|
|
1518
|
+
}
|
|
1519
|
+
return ca(e, l, t, r, i, s, c, o);
|
|
1520
|
+
}
|
|
1521
|
+
function it(e, t, r) {
|
|
1522
|
+
const n = e.v;
|
|
1523
|
+
return da(e, n, 0 | n[m], t, r, At(), !1, !0);
|
|
1524
|
+
}
|
|
1525
|
+
function pa(e) {
|
|
1526
|
+
return e == null && (e = void 0), e;
|
|
1527
|
+
}
|
|
1528
|
+
function w(e, t, r, n, i) {
|
|
1529
|
+
return F(e, r, n = pa(n), i), n && !Te(n) && Ct(e.v), e;
|
|
1530
|
+
}
|
|
1531
|
+
function Ar(e, t, r, n) {
|
|
1532
|
+
e: {
|
|
1533
|
+
var i = n = pa(n);
|
|
1534
|
+
ar(e);
|
|
1535
|
+
const s = e.v;
|
|
1536
|
+
let o = 0 | s[m];
|
|
1537
|
+
if (i == null) {
|
|
1538
|
+
const c = Ii(s);
|
|
1539
|
+
if (Ni(c, s, o, r) !== t) break e;
|
|
1540
|
+
c.set(r, 0);
|
|
1541
|
+
} else o = ha(s, o, r, t);
|
|
1542
|
+
se(s, o, t, i);
|
|
1543
|
+
}
|
|
1544
|
+
n && !Te(n) && Ct(e.v);
|
|
1545
|
+
}
|
|
1546
|
+
function xt(e, t) {
|
|
1547
|
+
return -273 & (2 & t ? 2 | e : -3 & e);
|
|
1548
|
+
}
|
|
1549
|
+
function Di(e, t, r, n) {
|
|
1550
|
+
var i = n;
|
|
1551
|
+
ar(e), e = da(e, n = e.v, 0 | n[m], r, t, 2, !0), i = i ?? new r(), e.push(i), t = r = e === Mt ? 7 : 0 | e[m], (i = Te(i)) ? (r &= -9, e.length === 1 && (r &= -4097)) : r |= 4096, r !== t && ae(e, r), i || Ct(n);
|
|
1552
|
+
}
|
|
1553
|
+
function Ne(e, t, r) {
|
|
1554
|
+
return ir(B(e, t, void 0, r));
|
|
1555
|
+
}
|
|
1556
|
+
function ga(e) {
|
|
1557
|
+
return (bi ? B(e, 2, void 0, void 0, Zr) : Zr(B(e, 2))) ?? nc;
|
|
1558
|
+
}
|
|
1559
|
+
function q(e, t) {
|
|
1560
|
+
return B(e, t, void 0, void 0, $e) ?? 0;
|
|
1561
|
+
}
|
|
1562
|
+
function st(e, t, r) {
|
|
1563
|
+
if (r != null) {
|
|
1564
|
+
if (typeof r != "number" || !ln(r)) throw ti("int32");
|
|
1565
|
+
r |= 0;
|
|
1566
|
+
}
|
|
1567
|
+
F(e, t, r);
|
|
1568
|
+
}
|
|
1569
|
+
function _(e, t, r) {
|
|
1570
|
+
F(e, t, Er(r));
|
|
1571
|
+
}
|
|
1572
|
+
function xe(e, t, r) {
|
|
1573
|
+
ht(e, t, Ir(r), "");
|
|
1574
|
+
}
|
|
1575
|
+
function en(e, t, r) {
|
|
1576
|
+
{
|
|
1577
|
+
ar(e);
|
|
1578
|
+
const o = e.v;
|
|
1579
|
+
let c = 0 | o[m];
|
|
1580
|
+
if (r == null) se(o, c, t);
|
|
1581
|
+
else {
|
|
1582
|
+
var n = e = r === Mt ? 7 : 0 | r[m], i = Tt(e), s = i || Object.isFrozen(r);
|
|
1583
|
+
for (i || (e = 0), s || (r = Ge(r), n = 0, e = xt(e, c), s = !1), e |= 5, e |= (4 & e ? 512 & e ? 512 : 1024 & e ? 1024 : 0 : void 0) ?? (bi ? 1024 : 0), i = 0; i < r.length; i++) {
|
|
1584
|
+
const u = r[i], f = sa(u);
|
|
1585
|
+
Object.is(u, f) || (s && (r = Ge(r), n = 0, e = xt(e, c), s = !1), r[i] = f);
|
|
1586
|
+
}
|
|
1587
|
+
e !== n && (s && (r = Ge(r), e = xt(e, c)), ae(r, e)), se(o, c, t, r);
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
function dn(e, t, r) {
|
|
1592
|
+
ar(e), kt(e, t, fe, 2, !0).push(sa(r));
|
|
1593
|
+
}
|
|
1594
|
+
var Dt = class {
|
|
1595
|
+
constructor(e, t, r) {
|
|
1596
|
+
if (this.buffer = e, r && !t) throw Error();
|
|
1597
|
+
this.g = t;
|
|
1598
|
+
}
|
|
1599
|
+
};
|
|
1600
|
+
function Bi(e, t) {
|
|
1601
|
+
if (typeof e == "string") return new Dt(zo(e), t);
|
|
1602
|
+
if (Array.isArray(e)) return new Dt(new Uint8Array(e), t);
|
|
1603
|
+
if (e.constructor === Uint8Array) return new Dt(e, !1);
|
|
1604
|
+
if (e.constructor === ArrayBuffer) return e = new Uint8Array(e), new Dt(e, !1);
|
|
1605
|
+
if (e.constructor === qe) return t = Ei(e) || new Uint8Array(0), new Dt(t, !0, e);
|
|
1606
|
+
if (e instanceof Uint8Array) return e = e.constructor === Uint8Array ? e : new Uint8Array(e.buffer, e.byteOffset, e.byteLength), new Dt(e, !1);
|
|
1607
|
+
throw Error();
|
|
1608
|
+
}
|
|
1609
|
+
function Xt(e, t) {
|
|
1610
|
+
let r, n = 0, i = 0, s = 0;
|
|
1611
|
+
const o = e.h;
|
|
1612
|
+
let c = e.g;
|
|
1613
|
+
do
|
|
1614
|
+
r = o[c++], n |= (127 & r) << s, s += 7;
|
|
1615
|
+
while (s < 32 && 128 & r);
|
|
1616
|
+
if (s > 32) for (i |= (127 & r) >> 4, s = 3; s < 32 && 128 & r; s += 7) r = o[c++], i |= (127 & r) << s;
|
|
1617
|
+
if (Lt(e, c), !(128 & r)) return t(n >>> 0, i >>> 0);
|
|
1618
|
+
throw Error();
|
|
1619
|
+
}
|
|
1620
|
+
function Ui(e) {
|
|
1621
|
+
let t = 0, r = e.g;
|
|
1622
|
+
const n = r + 10, i = e.h;
|
|
1623
|
+
for (; r < n; ) {
|
|
1624
|
+
const s = i[r++];
|
|
1625
|
+
if (t |= s, (128 & s) == 0) return Lt(e, r), !!(127 & t);
|
|
1626
|
+
}
|
|
1627
|
+
throw Error();
|
|
1628
|
+
}
|
|
1629
|
+
function pt(e) {
|
|
1630
|
+
const t = e.h;
|
|
1631
|
+
let r = e.g, n = t[r++], i = 127 & n;
|
|
1632
|
+
if (128 & n && (n = t[r++], i |= (127 & n) << 7, 128 & n && (n = t[r++], i |= (127 & n) << 14, 128 & n && (n = t[r++], i |= (127 & n) << 21, 128 & n && (n = t[r++], i |= n << 28, 128 & n && 128 & t[r++] && 128 & t[r++] && 128 & t[r++] && 128 & t[r++] && 128 & t[r++]))))) throw Error();
|
|
1633
|
+
return Lt(e, r), i;
|
|
1634
|
+
}
|
|
1635
|
+
function ot(e) {
|
|
1636
|
+
return pt(e) >>> 0;
|
|
1637
|
+
}
|
|
1638
|
+
function tn(e) {
|
|
1639
|
+
var t = e.h;
|
|
1640
|
+
const r = e.g;
|
|
1641
|
+
var n = t[r], i = t[r + 1];
|
|
1642
|
+
const s = t[r + 2];
|
|
1643
|
+
return t = t[r + 3], Lt(e, e.g + 4), e = 2 * ((i = (n << 0 | i << 8 | s << 16 | t << 24) >>> 0) >> 31) + 1, n = i >>> 23 & 255, i &= 8388607, n == 255 ? i ? NaN : e * (1 / 0) : n == 0 ? 1401298464324817e-60 * e * i : e * Math.pow(2, n - 150) * (i + 8388608);
|
|
1644
|
+
}
|
|
1645
|
+
function ic(e) {
|
|
1646
|
+
return pt(e);
|
|
1647
|
+
}
|
|
1648
|
+
function Lt(e, t) {
|
|
1649
|
+
if (e.g = t, t > e.l) throw Error();
|
|
1650
|
+
}
|
|
1651
|
+
function ma(e, t) {
|
|
1652
|
+
if (t < 0) throw Error();
|
|
1653
|
+
const r = e.g;
|
|
1654
|
+
if ((t = r + t) > e.l) throw Error();
|
|
1655
|
+
return e.g = t, r;
|
|
1656
|
+
}
|
|
1657
|
+
function ya(e, t) {
|
|
1658
|
+
if (t == 0) return Ot();
|
|
1659
|
+
var r = ma(e, t);
|
|
1660
|
+
return e.Y && e.j ? r = e.h.subarray(r, r + t) : (e = e.h, r = r === (t = r + t) ? new Uint8Array(0) : j1 ? e.slice(r, t) : new Uint8Array(e.subarray(r, t))), r.length == 0 ? Ot() : new qe(r, Ht);
|
|
1661
|
+
}
|
|
1662
|
+
var qs = [];
|
|
1663
|
+
function va(e, t, r, n) {
|
|
1664
|
+
if (rn.length) {
|
|
1665
|
+
const i = rn.pop();
|
|
1666
|
+
return i.o(n), i.g.init(e, t, r, n), i;
|
|
1667
|
+
}
|
|
1668
|
+
return new sc(e, t, r, n);
|
|
1669
|
+
}
|
|
1670
|
+
function _a(e) {
|
|
1671
|
+
e.g.clear(), e.l = -1, e.h = -1, rn.length < 100 && rn.push(e);
|
|
1672
|
+
}
|
|
1673
|
+
function ba(e) {
|
|
1674
|
+
var t = e.g;
|
|
1675
|
+
if (t.g == t.l) return !1;
|
|
1676
|
+
e.m = e.g.g;
|
|
1677
|
+
var r = ot(e.g);
|
|
1678
|
+
if (t = r >>> 3, !((r &= 7) >= 0 && r <= 5) || t < 1) throw Error();
|
|
1679
|
+
return e.l = t, e.h = r, !0;
|
|
1680
|
+
}
|
|
1681
|
+
function Xr(e) {
|
|
1682
|
+
switch (e.h) {
|
|
1683
|
+
case 0:
|
|
1684
|
+
e.h != 0 ? Xr(e) : Ui(e.g);
|
|
1685
|
+
break;
|
|
1686
|
+
case 1:
|
|
1687
|
+
Lt(e = e.g, e.g + 8);
|
|
1688
|
+
break;
|
|
1689
|
+
case 2:
|
|
1690
|
+
if (e.h != 2) Xr(e);
|
|
1691
|
+
else {
|
|
1692
|
+
var t = ot(e.g);
|
|
1693
|
+
Lt(e = e.g, e.g + t);
|
|
1694
|
+
}
|
|
1695
|
+
break;
|
|
1696
|
+
case 5:
|
|
1697
|
+
Lt(e = e.g, e.g + 4);
|
|
1698
|
+
break;
|
|
1699
|
+
case 3:
|
|
1700
|
+
for (t = e.l; ; ) {
|
|
1701
|
+
if (!ba(e)) throw Error();
|
|
1702
|
+
if (e.h == 4) {
|
|
1703
|
+
if (e.l != t) throw Error();
|
|
1704
|
+
break;
|
|
1705
|
+
}
|
|
1706
|
+
Xr(e);
|
|
1707
|
+
}
|
|
1708
|
+
break;
|
|
1709
|
+
default:
|
|
1710
|
+
throw Error();
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
function Nr(e, t, r) {
|
|
1714
|
+
const n = e.g.l;
|
|
1715
|
+
var i = ot(e.g);
|
|
1716
|
+
let s = (i = e.g.g + i) - n;
|
|
1717
|
+
if (s <= 0 && (e.g.l = i, r(t, e, void 0, void 0, void 0), s = i - e.g.g), s) throw Error();
|
|
1718
|
+
return e.g.g = i, e.g.l = n, t;
|
|
1719
|
+
}
|
|
1720
|
+
function Vi(e) {
|
|
1721
|
+
var t = ot(e.g), r = ma(e = e.g, t);
|
|
1722
|
+
if (e = e.h, m1) {
|
|
1723
|
+
var n, i = e;
|
|
1724
|
+
(n = Wn) || (n = Wn = new TextDecoder("utf-8", { fatal: !0 })), t = r + t, i = r === 0 && t === i.length ? i : i.subarray(r, t);
|
|
1725
|
+
try {
|
|
1726
|
+
var s = n.decode(i);
|
|
1727
|
+
} catch (c) {
|
|
1728
|
+
if (Kr === void 0) {
|
|
1729
|
+
try {
|
|
1730
|
+
n.decode(new Uint8Array([128]));
|
|
1731
|
+
} catch {
|
|
1732
|
+
}
|
|
1733
|
+
try {
|
|
1734
|
+
n.decode(new Uint8Array([97])), Kr = !0;
|
|
1735
|
+
} catch {
|
|
1736
|
+
Kr = !1;
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
throw !Kr && (Wn = void 0), c;
|
|
1740
|
+
}
|
|
1741
|
+
} else {
|
|
1742
|
+
t = (s = r) + t, r = [];
|
|
1743
|
+
let c, u = null;
|
|
1744
|
+
for (; s < t; ) {
|
|
1745
|
+
var o = e[s++];
|
|
1746
|
+
o < 128 ? r.push(o) : o < 224 ? s >= t ? wt() : (c = e[s++], o < 194 || (192 & c) != 128 ? (s--, wt()) : r.push((31 & o) << 6 | 63 & c)) : o < 240 ? s >= t - 1 ? wt() : (c = e[s++], (192 & c) != 128 || o === 224 && c < 160 || o === 237 && c >= 160 || (192 & (n = e[s++])) != 128 ? (s--, wt()) : r.push((15 & o) << 12 | (63 & c) << 6 | 63 & n)) : o <= 244 ? s >= t - 2 ? wt() : (c = e[s++], (192 & c) != 128 || c - 144 + (o << 28) >> 30 || (192 & (n = e[s++])) != 128 || (192 & (i = e[s++])) != 128 ? (s--, wt()) : (o = (7 & o) << 18 | (63 & c) << 12 | (63 & n) << 6 | 63 & i, o -= 65536, r.push(55296 + (o >> 10 & 1023), 56320 + (1023 & o)))) : wt(), r.length >= 8192 && (u = Rs(u, r), r.length = 0);
|
|
1747
|
+
}
|
|
1748
|
+
s = Rs(u, r);
|
|
1749
|
+
}
|
|
1750
|
+
return s;
|
|
1751
|
+
}
|
|
1752
|
+
function wa(e) {
|
|
1753
|
+
const t = ot(e.g);
|
|
1754
|
+
return ya(e.g, t);
|
|
1755
|
+
}
|
|
1756
|
+
function pn(e, t, r) {
|
|
1757
|
+
var n = ot(e.g);
|
|
1758
|
+
for (n = e.g.g + n; e.g.g < n; ) r.push(t(e.g));
|
|
1759
|
+
}
|
|
1760
|
+
var sc = class {
|
|
1761
|
+
constructor(e, t, r, n) {
|
|
1762
|
+
if (qs.length) {
|
|
1763
|
+
const i = qs.pop();
|
|
1764
|
+
i.init(e, t, r, n), e = i;
|
|
1765
|
+
} else e = new class {
|
|
1766
|
+
constructor(i, s, o, c) {
|
|
1767
|
+
this.h = null, this.j = !1, this.g = this.l = this.m = 0, this.init(i, s, o, c);
|
|
1768
|
+
}
|
|
1769
|
+
init(i, s, o, { Y: c = !1, ea: u = !1 } = {}) {
|
|
1770
|
+
this.Y = c, this.ea = u, i && (i = Bi(i, this.ea), this.h = i.buffer, this.j = i.g, this.m = s || 0, this.l = o !== void 0 ? this.m + o : this.h.length, this.g = this.m);
|
|
1771
|
+
}
|
|
1772
|
+
clear() {
|
|
1773
|
+
this.h = null, this.j = !1, this.g = this.l = this.m = 0, this.Y = !1;
|
|
1774
|
+
}
|
|
1775
|
+
}(e, t, r, n);
|
|
1776
|
+
this.g = e, this.m = this.g.g, this.h = this.l = -1, this.o(n);
|
|
1777
|
+
}
|
|
1778
|
+
o({ ha: e = !1 } = {}) {
|
|
1779
|
+
this.ha = e;
|
|
1780
|
+
}
|
|
1781
|
+
}, rn = [];
|
|
1782
|
+
function Xs(e) {
|
|
1783
|
+
return e ? /^\d+$/.test(e) ? (un(e), new oi(W, ee)) : null : oc || (oc = new oi(0, 0));
|
|
1784
|
+
}
|
|
1785
|
+
var oi = class {
|
|
1786
|
+
constructor(e, t) {
|
|
1787
|
+
this.h = e >>> 0, this.g = t >>> 0;
|
|
1788
|
+
}
|
|
1789
|
+
};
|
|
1790
|
+
let oc;
|
|
1791
|
+
function Js(e) {
|
|
1792
|
+
return e ? /^-?\d+$/.test(e) ? (un(e), new ai(W, ee)) : null : ac || (ac = new ai(0, 0));
|
|
1793
|
+
}
|
|
1794
|
+
var ai = class {
|
|
1795
|
+
constructor(e, t) {
|
|
1796
|
+
this.h = e >>> 0, this.g = t >>> 0;
|
|
1797
|
+
}
|
|
1798
|
+
};
|
|
1799
|
+
let ac;
|
|
1800
|
+
function Vt(e, t, r) {
|
|
1801
|
+
for (; r > 0 || t > 127; ) e.g.push(127 & t | 128), t = (t >>> 7 | r << 25) >>> 0, r >>>= 7;
|
|
1802
|
+
e.g.push(t);
|
|
1803
|
+
}
|
|
1804
|
+
function ur(e, t) {
|
|
1805
|
+
for (; t > 127; ) e.g.push(127 & t | 128), t >>>= 7;
|
|
1806
|
+
e.g.push(t);
|
|
1807
|
+
}
|
|
1808
|
+
function gn(e, t) {
|
|
1809
|
+
if (t >= 0) ur(e, t);
|
|
1810
|
+
else {
|
|
1811
|
+
for (let r = 0; r < 9; r++) e.g.push(127 & t | 128), t >>= 7;
|
|
1812
|
+
e.g.push(1);
|
|
1813
|
+
}
|
|
1814
|
+
}
|
|
1815
|
+
function Gi(e) {
|
|
1816
|
+
var t = W;
|
|
1817
|
+
e.g.push(t >>> 0 & 255), e.g.push(t >>> 8 & 255), e.g.push(t >>> 16 & 255), e.g.push(t >>> 24 & 255);
|
|
1818
|
+
}
|
|
1819
|
+
function Jt(e, t) {
|
|
1820
|
+
t.length !== 0 && (e.l.push(t), e.h += t.length);
|
|
1821
|
+
}
|
|
1822
|
+
function je(e, t, r) {
|
|
1823
|
+
ur(e.g, 8 * t + r);
|
|
1824
|
+
}
|
|
1825
|
+
function Wi(e, t) {
|
|
1826
|
+
return je(e, t, 2), t = e.g.end(), Jt(e, t), t.push(e.h), t;
|
|
1827
|
+
}
|
|
1828
|
+
function Hi(e, t) {
|
|
1829
|
+
var r = t.pop();
|
|
1830
|
+
for (r = e.h + e.g.length() - r; r > 127; ) t.push(127 & r | 128), r >>>= 7, e.h++;
|
|
1831
|
+
t.push(r), e.h++;
|
|
1832
|
+
}
|
|
1833
|
+
function mn(e, t, r) {
|
|
1834
|
+
je(e, t, 2), ur(e.g, r.length), Jt(e, e.g.end()), Jt(e, r);
|
|
1835
|
+
}
|
|
1836
|
+
function nn(e, t, r, n) {
|
|
1837
|
+
r != null && (t = Wi(e, t), n(r, e), Hi(e, t));
|
|
1838
|
+
}
|
|
1839
|
+
function Je() {
|
|
1840
|
+
const e = class {
|
|
1841
|
+
constructor() {
|
|
1842
|
+
throw Error();
|
|
1843
|
+
}
|
|
1844
|
+
};
|
|
1845
|
+
return Object.setPrototypeOf(e, e.prototype), e;
|
|
1846
|
+
}
|
|
1847
|
+
var zi = Je(), Ea = Je(), Ki = Je(), Yi = Je(), Aa = Je(), ka = Je(), cc = Je(), yn = Je(), Sa = Je(), Ta = Je();
|
|
1848
|
+
function Ze(e, t, r) {
|
|
1849
|
+
var n = e.v;
|
|
1850
|
+
ke && ke in n && (n = n[ke]) && delete n[t.g], t.h ? t.j(e, t.h, t.g, r, t.l) : t.j(e, t.g, r, t.l);
|
|
1851
|
+
}
|
|
1852
|
+
var y = class {
|
|
1853
|
+
constructor(e, t) {
|
|
1854
|
+
this.v = aa(e, t, void 0, 2048);
|
|
1855
|
+
}
|
|
1856
|
+
toJSON() {
|
|
1857
|
+
return oa(this);
|
|
1858
|
+
}
|
|
1859
|
+
j() {
|
|
1860
|
+
var i;
|
|
1861
|
+
var e = Hc, t = this.v, r = e.g, n = ke;
|
|
1862
|
+
if (rr && n && ((i = t[n]) == null ? void 0 : i[r]) != null && zt(x1, 3), t = e.g, Ds && ke && Ds === void 0 && (n = (r = this.v)[ke]) && (n = n.da)) try {
|
|
1863
|
+
n(r, t, J1);
|
|
1864
|
+
} catch (s) {
|
|
1865
|
+
Vo(s);
|
|
1866
|
+
}
|
|
1867
|
+
return e.h ? e.m(this, e.h, e.g, e.l) : e.m(this, e.g, e.defaultValue, e.l);
|
|
1868
|
+
}
|
|
1869
|
+
clone() {
|
|
1870
|
+
const e = this.v, t = 0 | e[m];
|
|
1871
|
+
return Ri(this, e, t) ? Oi(this, e, !0) : new this.constructor(sr(e, t, !1));
|
|
1872
|
+
}
|
|
1873
|
+
};
|
|
1874
|
+
y.prototype[Kt] = Yt, y.prototype.toString = function() {
|
|
1875
|
+
return this.v.toString();
|
|
1876
|
+
};
|
|
1877
|
+
var lr = class {
|
|
1878
|
+
constructor(e, t, r) {
|
|
1879
|
+
this.g = e, this.h = t, e = zi, this.l = !!e && r === e || !1;
|
|
1880
|
+
}
|
|
1881
|
+
};
|
|
1882
|
+
function vn(e, t) {
|
|
1883
|
+
return new lr(e, t, zi);
|
|
1884
|
+
}
|
|
1885
|
+
function xa(e, t, r, n, i) {
|
|
1886
|
+
nn(e, r, Fa(t, n), i);
|
|
1887
|
+
}
|
|
1888
|
+
const uc = vn(function(e, t, r, n, i) {
|
|
1889
|
+
return e.h === 2 && (Nr(e, ji(t, n, r), i), !0);
|
|
1890
|
+
}, xa), lc = vn(function(e, t, r, n, i) {
|
|
1891
|
+
return e.h === 2 && (Nr(e, ji(t, n, r), i), !0);
|
|
1892
|
+
}, xa);
|
|
1893
|
+
var _n = Symbol(), bn = Symbol(), ci = Symbol(), Zs = Symbol(), Qs = Symbol();
|
|
1894
|
+
let La, Pa;
|
|
1895
|
+
function It(e, t, r, n) {
|
|
1896
|
+
var i = n[e];
|
|
1897
|
+
if (i) return i;
|
|
1898
|
+
(i = {}).qa = n, i.T = function(d) {
|
|
1899
|
+
switch (typeof d) {
|
|
1900
|
+
case "boolean":
|
|
1901
|
+
return ec || (ec = [0, void 0, !0]);
|
|
1902
|
+
case "number":
|
|
1903
|
+
return d > 0 ? void 0 : d === 0 ? tc || (tc = [0, void 0]) : [-d, void 0];
|
|
1904
|
+
case "string":
|
|
1905
|
+
return [0, d];
|
|
1906
|
+
case "object":
|
|
1907
|
+
return d;
|
|
1908
|
+
}
|
|
1909
|
+
}(n[0]);
|
|
1910
|
+
var s = n[1];
|
|
1911
|
+
let o = 1;
|
|
1912
|
+
s && s.constructor === Object && (i.ba = s, typeof (s = n[++o]) == "function" && (i.ma = !0, La ?? (La = s), Pa ?? (Pa = n[o + 1]), s = n[o += 2]));
|
|
1913
|
+
const c = {};
|
|
1914
|
+
for (; s && Array.isArray(s) && s.length && typeof s[0] == "number" && s[0] > 0; ) {
|
|
1915
|
+
for (var u = 0; u < s.length; u++) c[s[u]] = s;
|
|
1916
|
+
s = n[++o];
|
|
1917
|
+
}
|
|
1918
|
+
for (u = 1; s !== void 0; ) {
|
|
1919
|
+
let d;
|
|
1920
|
+
typeof s == "number" && (u += s, s = n[++o]);
|
|
1921
|
+
var f = void 0;
|
|
1922
|
+
if (s instanceof lr ? d = s : (d = uc, o--), d == null ? void 0 : d.l) {
|
|
1923
|
+
s = n[++o], f = n;
|
|
1924
|
+
var l = o;
|
|
1925
|
+
typeof s == "function" && (s = s(), f[l] = s), f = s;
|
|
1926
|
+
}
|
|
1927
|
+
for (l = u + 1, typeof (s = n[++o]) == "number" && s < 0 && (l -= s, s = n[++o]); u < l; u++) {
|
|
1928
|
+
const b = c[u];
|
|
1929
|
+
f ? r(i, u, d, f, b) : t(i, u, d, b);
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
return n[e] = i;
|
|
1933
|
+
}
|
|
1934
|
+
function Oa(e) {
|
|
1935
|
+
return Array.isArray(e) ? e[0] instanceof lr ? e : [lc, e] : [e, void 0];
|
|
1936
|
+
}
|
|
1937
|
+
function Fa(e, t) {
|
|
1938
|
+
return e instanceof y ? e.v : Array.isArray(e) ? St(e, t) : void 0;
|
|
1939
|
+
}
|
|
1940
|
+
function $i(e, t, r, n) {
|
|
1941
|
+
const i = r.g;
|
|
1942
|
+
e[t] = n ? (s, o, c) => i(s, o, c, n) : i;
|
|
1943
|
+
}
|
|
1944
|
+
function qi(e, t, r, n, i) {
|
|
1945
|
+
const s = r.g;
|
|
1946
|
+
let o, c;
|
|
1947
|
+
e[t] = (u, f, l) => s(u, f, l, c || (c = It(bn, $i, qi, n).T), o || (o = Xi(n)), i);
|
|
1948
|
+
}
|
|
1949
|
+
function Xi(e) {
|
|
1950
|
+
let t = e[ci];
|
|
1951
|
+
if (t != null) return t;
|
|
1952
|
+
const r = It(bn, $i, qi, e);
|
|
1953
|
+
return t = r.ma ? (n, i) => La(n, i, r) : (n, i) => {
|
|
1954
|
+
for (; ba(i) && i.h != 4; ) {
|
|
1955
|
+
var s = i.l, o = r[s];
|
|
1956
|
+
if (o == null) {
|
|
1957
|
+
var c = r.ba;
|
|
1958
|
+
c && (c = c[s]) && (c = fc(c)) != null && (o = r[s] = c);
|
|
1959
|
+
}
|
|
1960
|
+
if (o == null || !o(i, n, s)) {
|
|
1961
|
+
if (o = (c = i).m, Xr(c), c.ha) var u = void 0;
|
|
1962
|
+
else u = c.g.g - o, c.g.g = o, u = ya(c.g, u);
|
|
1963
|
+
o = void 0, c = n, u && ((o = c[ke] ?? (c[ke] = new si()))[s] ?? (o[s] = [])).push(u);
|
|
1964
|
+
}
|
|
1965
|
+
}
|
|
1966
|
+
return (n = hn(n)) && (n.da = r.qa[Qs]), !0;
|
|
1967
|
+
}, e[ci] = t, e[Qs] = hc.bind(e), t;
|
|
1968
|
+
}
|
|
1969
|
+
function hc(e, t, r, n) {
|
|
1970
|
+
var i = this[bn];
|
|
1971
|
+
const s = this[ci], o = St(void 0, i.T), c = hn(e);
|
|
1972
|
+
if (c) {
|
|
1973
|
+
var u = !1, f = i.ba;
|
|
1974
|
+
if (f) {
|
|
1975
|
+
if (i = (l, d, b) => {
|
|
1976
|
+
if (b.length !== 0) if (f[d]) for (const A of b) {
|
|
1977
|
+
l = va(A);
|
|
1978
|
+
try {
|
|
1979
|
+
u = !0, s(o, l);
|
|
1980
|
+
} finally {
|
|
1981
|
+
_a(l);
|
|
1982
|
+
}
|
|
1983
|
+
}
|
|
1984
|
+
else n == null || n(e, d, b);
|
|
1985
|
+
}, t == null) Qr(c, i);
|
|
1986
|
+
else if (c != null) {
|
|
1987
|
+
const l = c[t];
|
|
1988
|
+
l && i(c, t, l);
|
|
1989
|
+
}
|
|
1990
|
+
if (u) {
|
|
1991
|
+
let l = 0 | e[m];
|
|
1992
|
+
if (2 & l && 2048 & l && !(r != null && r.Ka)) throw Error();
|
|
1993
|
+
const d = nr(l), b = (A, N) => {
|
|
1994
|
+
if (nt(e, A, d) != null) {
|
|
1995
|
+
if ((r == null ? void 0 : r.Qa) === 1) return;
|
|
1996
|
+
throw Error();
|
|
1997
|
+
}
|
|
1998
|
+
N != null && (l = se(e, l, A, N, d)), delete c[A];
|
|
1999
|
+
};
|
|
2000
|
+
t == null ? Xo(o, 0 | o[m], (A, N) => {
|
|
2001
|
+
b(A, N);
|
|
2002
|
+
}) : b(t, nt(o, t, d));
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
}
|
|
2007
|
+
function fc(e) {
|
|
2008
|
+
const t = (e = Oa(e))[0].g;
|
|
2009
|
+
if (e = e[1]) {
|
|
2010
|
+
const r = Xi(e), n = It(bn, $i, qi, e).T;
|
|
2011
|
+
return (i, s, o) => t(i, s, o, n, r);
|
|
2012
|
+
}
|
|
2013
|
+
return t;
|
|
2014
|
+
}
|
|
2015
|
+
function wn(e, t, r) {
|
|
2016
|
+
e[t] = r.h;
|
|
2017
|
+
}
|
|
2018
|
+
function En(e, t, r, n) {
|
|
2019
|
+
let i, s;
|
|
2020
|
+
const o = r.h;
|
|
2021
|
+
e[t] = (c, u, f) => o(c, u, f, s || (s = It(_n, wn, En, n).T), i || (i = Ra(n)));
|
|
2022
|
+
}
|
|
2023
|
+
function Ra(e) {
|
|
2024
|
+
let t = e[Zs];
|
|
2025
|
+
if (!t) {
|
|
2026
|
+
const r = It(_n, wn, En, e);
|
|
2027
|
+
t = (n, i) => Ma(n, i, r), e[Zs] = t;
|
|
2028
|
+
}
|
|
2029
|
+
return t;
|
|
2030
|
+
}
|
|
2031
|
+
function Ma(e, t, r) {
|
|
2032
|
+
Xo(e, 0 | e[m], (n, i) => {
|
|
2033
|
+
if (i != null) {
|
|
2034
|
+
var s = function(o, c) {
|
|
2035
|
+
var u = o[c];
|
|
2036
|
+
if (u) return u;
|
|
2037
|
+
if ((u = o.ba) && (u = u[c])) {
|
|
2038
|
+
var f = (u = Oa(u))[0].h;
|
|
2039
|
+
if (u = u[1]) {
|
|
2040
|
+
const l = Ra(u), d = It(_n, wn, En, u).T;
|
|
2041
|
+
u = o.ma ? Pa(d, l) : (b, A, N) => f(b, A, N, d, l);
|
|
2042
|
+
} else u = f;
|
|
2043
|
+
return o[c] = u;
|
|
2044
|
+
}
|
|
2045
|
+
}(r, n);
|
|
2046
|
+
s ? s(t, i, n) : n < 500 || zt(ri, 3);
|
|
2047
|
+
}
|
|
2048
|
+
}), (e = hn(e)) && Qr(e, (n, i, s) => {
|
|
2049
|
+
for (Jt(t, t.g.end()), n = 0; n < s.length; n++) Jt(t, Ei(s[n]) || new Uint8Array(0));
|
|
2050
|
+
});
|
|
2051
|
+
}
|
|
2052
|
+
const dc = Se(0);
|
|
2053
|
+
function hr(e, t) {
|
|
2054
|
+
if (Array.isArray(t)) {
|
|
2055
|
+
var r = 0 | t[m];
|
|
2056
|
+
if (4 & r) return t;
|
|
2057
|
+
for (var n = 0, i = 0; n < t.length; n++) {
|
|
2058
|
+
const s = e(t[n]);
|
|
2059
|
+
s != null && (t[i++] = s);
|
|
2060
|
+
}
|
|
2061
|
+
return i < n && (t.length = i), (e = -1537 & (5 | r)) !== r && ae(t, e), 2 & e && Object.freeze(t), t;
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
function ge(e, t, r) {
|
|
2065
|
+
return new lr(e, t, r);
|
|
2066
|
+
}
|
|
2067
|
+
function fr(e, t, r) {
|
|
2068
|
+
return new lr(e, t, r);
|
|
2069
|
+
}
|
|
2070
|
+
function he(e, t, r) {
|
|
2071
|
+
se(e, 0 | e[m], t, r, nr(0 | e[m]));
|
|
2072
|
+
}
|
|
2073
|
+
var pc = vn(function(e, t, r, n, i) {
|
|
2074
|
+
if (e.h !== 2) return !1;
|
|
2075
|
+
if (e = Ge(e = Nr(e, St([void 0, void 0], n), i)), i = nr(n = 0 | t[m]), 2 & n) throw Error();
|
|
2076
|
+
let s = nt(t, r, i);
|
|
2077
|
+
if (s instanceof rt) 2 & s.J ? (s = s.V(), s.push(e), se(t, n, r, s, i)) : s.Ma(e);
|
|
2078
|
+
else if (Array.isArray(s)) {
|
|
2079
|
+
var o = 0 | s[m];
|
|
2080
|
+
8192 & o || ae(s, o |= 8192), 2 & o && (s = la(s), se(t, n, r, s, i)), s.push(e);
|
|
2081
|
+
} else se(t, n, r, xr([e]), i);
|
|
2082
|
+
return !0;
|
|
2083
|
+
}, function(e, t, r, n, i) {
|
|
2084
|
+
if (t instanceof rt) t.forEach((s, o) => {
|
|
2085
|
+
nn(e, r, St([o, s], n), i);
|
|
2086
|
+
});
|
|
2087
|
+
else if (Array.isArray(t)) {
|
|
2088
|
+
for (let s = 0; s < t.length; s++) {
|
|
2089
|
+
const o = t[s];
|
|
2090
|
+
Array.isArray(o) && nn(e, r, St(o, n), i);
|
|
2091
|
+
}
|
|
2092
|
+
xr(t);
|
|
2093
|
+
}
|
|
2094
|
+
});
|
|
2095
|
+
function Ca(e, t, r) {
|
|
2096
|
+
(t = $e(t)) != null && (je(e, r, 5), e = e.g, ki(t), Gi(e));
|
|
2097
|
+
}
|
|
2098
|
+
function Ia(e, t, r) {
|
|
2099
|
+
if (t = function(n) {
|
|
2100
|
+
if (n == null) return n;
|
|
2101
|
+
const i = typeof n;
|
|
2102
|
+
if (i === "bigint") return String(Mr(64, n));
|
|
2103
|
+
if (Cr(n)) {
|
|
2104
|
+
if (i === "string") return ra(n);
|
|
2105
|
+
if (i === "number") return Li(n);
|
|
2106
|
+
}
|
|
2107
|
+
}(t), t != null && (typeof t == "string" && Js(t), t != null))
|
|
2108
|
+
switch (je(e, r, 0), typeof t) {
|
|
2109
|
+
case "number":
|
|
2110
|
+
e = e.g, $t(t), Vt(e, W, ee);
|
|
2111
|
+
break;
|
|
2112
|
+
case "bigint":
|
|
2113
|
+
r = BigInt.asUintN(64, t), r = new ai(Number(r & BigInt(4294967295)), Number(r >> BigInt(32))), Vt(e.g, r.h, r.g);
|
|
2114
|
+
break;
|
|
2115
|
+
default:
|
|
2116
|
+
r = Js(t), Vt(e.g, r.h, r.g);
|
|
2117
|
+
}
|
|
2118
|
+
}
|
|
2119
|
+
function Na(e, t, r) {
|
|
2120
|
+
(t = ir(t)) != null && t != null && (je(e, r, 0), gn(e.g, t));
|
|
2121
|
+
}
|
|
2122
|
+
function ja(e, t, r) {
|
|
2123
|
+
(t = Qo(t)) != null && (je(e, r, 0), e.g.g.push(t ? 1 : 0));
|
|
2124
|
+
}
|
|
2125
|
+
function Da(e, t, r) {
|
|
2126
|
+
(t = fe(t)) != null && mn(e, r, Uo(t));
|
|
2127
|
+
}
|
|
2128
|
+
function Ba(e, t, r, n, i) {
|
|
2129
|
+
nn(e, r, Fa(t, n), i);
|
|
2130
|
+
}
|
|
2131
|
+
function Ua(e, t, r) {
|
|
2132
|
+
(t = t == null || typeof t == "string" || t instanceof qe ? t : void 0) != null && mn(e, r, Bi(t, !0).buffer);
|
|
2133
|
+
}
|
|
2134
|
+
function Va(e, t, r) {
|
|
2135
|
+
return (e.h === 5 || e.h === 2) && (t = cr(t, 0 | t[m], r), e.h == 2 ? pn(e, tn, t) : t.push(tn(e.g)), !0);
|
|
2136
|
+
}
|
|
2137
|
+
var te = ge(function(e, t, r) {
|
|
2138
|
+
return e.h === 5 && (he(t, r, tn(e.g)), !0);
|
|
2139
|
+
}, Ca, yn), gc = fr(Va, function(e, t, r) {
|
|
2140
|
+
if ((t = hr($e, t)) != null) for (let o = 0; o < t.length; o++) {
|
|
2141
|
+
var n = e, i = r, s = t[o];
|
|
2142
|
+
s != null && (je(n, i, 5), n = n.g, ki(s), Gi(n));
|
|
2143
|
+
}
|
|
2144
|
+
}, yn), Ji = fr(Va, function(e, t, r) {
|
|
2145
|
+
if ((t = hr($e, t)) != null && t.length) {
|
|
2146
|
+
je(e, r, 2), ur(e.g, 4 * t.length);
|
|
2147
|
+
for (let n = 0; n < t.length; n++) r = e.g, ki(t[n]), Gi(r);
|
|
2148
|
+
}
|
|
2149
|
+
}, yn), mc = ge(function(e, t, r) {
|
|
2150
|
+
return e.h === 5 && (he(t, r, (e = tn(e.g)) === 0 ? void 0 : e), !0);
|
|
2151
|
+
}, Ca, yn), gt = ge(function(e, t, r) {
|
|
2152
|
+
return _i ? (e.h !== 0 ? e = !1 : (he(t, r, Xt(e.g, Zo)), e = !0), e) : e.h === 0 && (he(t, r, Xt(e.g, Si)), !0);
|
|
2153
|
+
}, Ia, ka), Yn = ge(function(e, t, r) {
|
|
2154
|
+
return _i ? (e.h !== 0 ? t = !1 : (he(t, r, (e = Xt(e.g, Zo)) === dc ? void 0 : e), t = !0), t) : e.h === 0 && (he(t, r, (e = Xt(e.g, Si)) === 0 ? void 0 : e), !0);
|
|
2155
|
+
}, Ia, ka), yc = ge(function(e, t, r) {
|
|
2156
|
+
return _i ? (e.h !== 0 ? e = !1 : (he(t, r, Xt(e.g, B1)), e = !0), e) : e.h === 0 && (he(t, r, Xt(e.g, ii)), !0);
|
|
2157
|
+
}, function(e, t, r) {
|
|
2158
|
+
if (t = function(n) {
|
|
2159
|
+
if (n == null) return n;
|
|
2160
|
+
var i = typeof n;
|
|
2161
|
+
if (i === "bigint") return String(U1(64, n));
|
|
2162
|
+
if (Cr(n)) {
|
|
2163
|
+
if (i === "string") return i = qt(Number(n)), Rt(i) && i >= 0 ? n = String(i) : ((i = n.indexOf(".")) !== -1 && (n = n.substring(0, i)), (i = n[0] !== "-" && ((i = n.length) < 20 || i === 20 && n <= "18446744073709551615")) || (un(n), n = Lr(W, ee))), n;
|
|
2164
|
+
if (i === "number") return (n = qt(n)) >= 0 && Rt(n) || ($t(n), n = ii(W, ee)), n;
|
|
2165
|
+
}
|
|
2166
|
+
}(t), t != null && (typeof t == "string" && Xs(t), t != null))
|
|
2167
|
+
switch (je(e, r, 0), typeof t) {
|
|
2168
|
+
case "number":
|
|
2169
|
+
e = e.g, $t(t), Vt(e, W, ee);
|
|
2170
|
+
break;
|
|
2171
|
+
case "bigint":
|
|
2172
|
+
r = BigInt.asUintN(64, t), r = new oi(Number(r & BigInt(4294967295)), Number(r >> BigInt(32))), Vt(e.g, r.h, r.g);
|
|
2173
|
+
break;
|
|
2174
|
+
default:
|
|
2175
|
+
r = Xs(t), Vt(e.g, r.h, r.g);
|
|
2176
|
+
}
|
|
2177
|
+
}, cc), le = ge(function(e, t, r) {
|
|
2178
|
+
return e.h === 0 && (he(t, r, pt(e.g)), !0);
|
|
2179
|
+
}, Na, Yi), jr = fr(function(e, t, r) {
|
|
2180
|
+
return (e.h === 0 || e.h === 2) && (t = cr(t, 0 | t[m], r), e.h == 2 ? pn(e, pt, t) : t.push(pt(e.g)), !0);
|
|
2181
|
+
}, function(e, t, r) {
|
|
2182
|
+
if ((t = hr(ir, t)) != null && t.length) {
|
|
2183
|
+
r = Wi(e, r);
|
|
2184
|
+
for (let n = 0; n < t.length; n++) gn(e.g, t[n]);
|
|
2185
|
+
Hi(e, r);
|
|
2186
|
+
}
|
|
2187
|
+
}, Yi), Ut = ge(function(e, t, r) {
|
|
2188
|
+
return e.h === 0 && (he(t, r, (e = pt(e.g)) === 0 ? void 0 : e), !0);
|
|
2189
|
+
}, Na, Yi), X = ge(function(e, t, r) {
|
|
2190
|
+
return e.h === 0 && (he(t, r, Ui(e.g)), !0);
|
|
2191
|
+
}, ja, Ea), Pt = ge(function(e, t, r) {
|
|
2192
|
+
return e.h === 0 && (he(t, r, (e = Ui(e.g)) === !1 ? void 0 : e), !0);
|
|
2193
|
+
}, ja, Ea), de = fr(function(e, t, r) {
|
|
2194
|
+
return e.h === 2 && (e = Vi(e), cr(t, 0 | t[m], r).push(e), !0);
|
|
2195
|
+
}, function(e, t, r) {
|
|
2196
|
+
if ((t = hr(fe, t)) != null) for (let o = 0; o < t.length; o++) {
|
|
2197
|
+
var n = e, i = r, s = t[o];
|
|
2198
|
+
s != null && mn(n, i, Uo(s));
|
|
2199
|
+
}
|
|
2200
|
+
}, Ki), ft = ge(function(e, t, r) {
|
|
2201
|
+
return e.h === 2 && (he(t, r, (e = Vi(e)) === "" ? void 0 : e), !0);
|
|
2202
|
+
}, Da, Ki), I = ge(function(e, t, r) {
|
|
2203
|
+
return e.h === 2 && (he(t, r, Vi(e)), !0);
|
|
2204
|
+
}, Da, Ki), ue = function(e, t, r = zi) {
|
|
2205
|
+
return new lr(e, t, r);
|
|
2206
|
+
}(function(e, t, r, n, i) {
|
|
2207
|
+
return e.h === 2 && (n = St(void 0, n), cr(t, 0 | t[m], r).push(n), Nr(e, n, i), !0);
|
|
2208
|
+
}, function(e, t, r, n, i) {
|
|
2209
|
+
if (Array.isArray(t)) {
|
|
2210
|
+
for (let s = 0; s < t.length; s++) Ba(e, t[s], r, n, i);
|
|
2211
|
+
1 & (e = 0 | t[m]) || ae(t, 1 | e);
|
|
2212
|
+
}
|
|
2213
|
+
}), $ = vn(function(e, t, r, n, i, s) {
|
|
2214
|
+
if (e.h !== 2) return !1;
|
|
2215
|
+
let o = 0 | t[m];
|
|
2216
|
+
return ha(t, o, s, r, nr(o)), Nr(e, t = ji(t, n, r), i), !0;
|
|
2217
|
+
}, Ba), Ga = ge(function(e, t, r) {
|
|
2218
|
+
return e.h === 2 && (he(t, r, wa(e)), !0);
|
|
2219
|
+
}, Ua, Sa), vc = fr(function(e, t, r) {
|
|
2220
|
+
return (e.h === 0 || e.h === 2) && (t = cr(t, 0 | t[m], r), e.h == 2 ? pn(e, ot, t) : t.push(ot(e.g)), !0);
|
|
2221
|
+
}, function(e, t, r) {
|
|
2222
|
+
if ((t = hr(ea, t)) != null) for (let o = 0; o < t.length; o++) {
|
|
2223
|
+
var n = e, i = r, s = t[o];
|
|
2224
|
+
s != null && (je(n, i, 0), ur(n.g, s));
|
|
2225
|
+
}
|
|
2226
|
+
}, Aa), _c = ge(function(e, t, r) {
|
|
2227
|
+
return e.h === 0 && (he(t, r, (e = ot(e.g)) === 0 ? void 0 : e), !0);
|
|
2228
|
+
}, function(e, t, r) {
|
|
2229
|
+
(t = ea(t)) != null && t != null && (je(e, r, 0), ur(e.g, t));
|
|
2230
|
+
}, Aa), Le = ge(function(e, t, r) {
|
|
2231
|
+
return e.h === 0 && (he(t, r, pt(e.g)), !0);
|
|
2232
|
+
}, function(e, t, r) {
|
|
2233
|
+
(t = ir(t)) != null && (t = parseInt(t, 10), je(e, r, 0), gn(e.g, t));
|
|
2234
|
+
}, Ta);
|
|
2235
|
+
class bc {
|
|
2236
|
+
constructor(t, r) {
|
|
2237
|
+
var n = Oe;
|
|
2238
|
+
this.g = t, this.h = r, this.m = L, this.j = w, this.defaultValue = void 0, this.l = n.Oa != null ? Jo : void 0;
|
|
2239
|
+
}
|
|
2240
|
+
register() {
|
|
2241
|
+
on(this);
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
2244
|
+
function Qe(e, t) {
|
|
2245
|
+
return new bc(e, t);
|
|
2246
|
+
}
|
|
2247
|
+
function mt(e, t) {
|
|
2248
|
+
return (r, n) => {
|
|
2249
|
+
{
|
|
2250
|
+
const s = { ea: !0 };
|
|
2251
|
+
n && Object.assign(s, n), r = va(r, void 0, void 0, s);
|
|
2252
|
+
try {
|
|
2253
|
+
const o = new e(), c = o.v;
|
|
2254
|
+
Xi(t)(c, r);
|
|
2255
|
+
var i = o;
|
|
2256
|
+
} finally {
|
|
2257
|
+
_a(r);
|
|
2258
|
+
}
|
|
2259
|
+
}
|
|
2260
|
+
return i;
|
|
2261
|
+
};
|
|
2262
|
+
}
|
|
2263
|
+
function An(e) {
|
|
2264
|
+
return function() {
|
|
2265
|
+
const t = new class {
|
|
2266
|
+
constructor() {
|
|
2267
|
+
this.l = [], this.h = 0, this.g = new class {
|
|
2268
|
+
constructor() {
|
|
2269
|
+
this.g = [];
|
|
2270
|
+
}
|
|
2271
|
+
length() {
|
|
2272
|
+
return this.g.length;
|
|
2273
|
+
}
|
|
2274
|
+
end() {
|
|
2275
|
+
const o = this.g;
|
|
2276
|
+
return this.g = [], o;
|
|
2277
|
+
}
|
|
2278
|
+
}();
|
|
2279
|
+
}
|
|
2280
|
+
}();
|
|
2281
|
+
Ma(this.v, t, It(_n, wn, En, e)), Jt(t, t.g.end());
|
|
2282
|
+
const r = new Uint8Array(t.h), n = t.l, i = n.length;
|
|
2283
|
+
let s = 0;
|
|
2284
|
+
for (let o = 0; o < i; o++) {
|
|
2285
|
+
const c = n[o];
|
|
2286
|
+
r.set(c, s), s += c.length;
|
|
2287
|
+
}
|
|
2288
|
+
return t.l = [r], r;
|
|
2289
|
+
};
|
|
2290
|
+
}
|
|
2291
|
+
var eo = class extends y {
|
|
2292
|
+
constructor(e) {
|
|
2293
|
+
super(e);
|
|
2294
|
+
}
|
|
2295
|
+
}, to = [0, ft, ge(function(e, t, r) {
|
|
2296
|
+
return e.h === 2 && (he(t, r, (e = wa(e)) === Ot() ? void 0 : e), !0);
|
|
2297
|
+
}, function(e, t, r) {
|
|
2298
|
+
if (t != null) {
|
|
2299
|
+
if (t instanceof y) {
|
|
2300
|
+
const n = t.Ra;
|
|
2301
|
+
return void (n ? (t = n(t), t != null && mn(e, r, Bi(t, !0).buffer)) : zt(ri, 3));
|
|
2302
|
+
}
|
|
2303
|
+
if (Array.isArray(t)) return void zt(ri, 3);
|
|
2304
|
+
}
|
|
2305
|
+
Ua(e, t, r);
|
|
2306
|
+
}, Sa)];
|
|
2307
|
+
let $n, ro = globalThis.trustedTypes;
|
|
2308
|
+
function no(e) {
|
|
2309
|
+
var t;
|
|
2310
|
+
return $n === void 0 && ($n = function() {
|
|
2311
|
+
let r = null;
|
|
2312
|
+
if (!ro) return r;
|
|
2313
|
+
try {
|
|
2314
|
+
const n = (i) => i;
|
|
2315
|
+
r = ro.createPolicy("goog#html", { createHTML: n, createScript: n, createScriptURL: n });
|
|
2316
|
+
} catch {
|
|
2317
|
+
}
|
|
2318
|
+
return r;
|
|
2319
|
+
}()), e = (t = $n) ? t.createScriptURL(e) : e, new class {
|
|
2320
|
+
constructor(r) {
|
|
2321
|
+
this.g = r;
|
|
2322
|
+
}
|
|
2323
|
+
toString() {
|
|
2324
|
+
return this.g + "";
|
|
2325
|
+
}
|
|
2326
|
+
}(e);
|
|
2327
|
+
}
|
|
2328
|
+
function wc(e, ...t) {
|
|
2329
|
+
if (t.length === 0) return no(e[0]);
|
|
2330
|
+
let r = e[0];
|
|
2331
|
+
for (let n = 0; n < t.length; n++) r += encodeURIComponent(t[n]) + e[n + 1];
|
|
2332
|
+
return no(r);
|
|
2333
|
+
}
|
|
2334
|
+
var Wa = [0, le, Le, X, -1, jr, Le, -1, X], Ec = class extends y {
|
|
2335
|
+
constructor(e) {
|
|
2336
|
+
super(e);
|
|
2337
|
+
}
|
|
2338
|
+
}, Ha = [0, X, I, X, Le, -1, fr(function(e, t, r) {
|
|
2339
|
+
return (e.h === 0 || e.h === 2) && (t = cr(t, 0 | t[m], r), e.h == 2 ? pn(e, ic, t) : t.push(pt(e.g)), !0);
|
|
2340
|
+
}, function(e, t, r) {
|
|
2341
|
+
if ((t = hr(ir, t)) != null && t.length) {
|
|
2342
|
+
r = Wi(e, r);
|
|
2343
|
+
for (let n = 0; n < t.length; n++) gn(e.g, t[n]);
|
|
2344
|
+
Hi(e, r);
|
|
2345
|
+
}
|
|
2346
|
+
}, Ta), I, -1, [0, X, -1], Le, X, -1], za = [0, 3, X, -1, 2, [0, le], [0, Le, X], [0, I, -1], [0]], Ka = [0, I, -2], io = class extends y {
|
|
2347
|
+
constructor(e) {
|
|
2348
|
+
super(e);
|
|
2349
|
+
}
|
|
2350
|
+
}, Ya = [0], $a = [0, le, X, 1, X, -4], Oe = class extends y {
|
|
2351
|
+
constructor(e) {
|
|
2352
|
+
super(e, 2);
|
|
2353
|
+
}
|
|
2354
|
+
}, oe = {};
|
|
2355
|
+
oe[336783863] = [0, I, X, -1, le, [0, [1, 2, 3, 4, 5, 6, 7, 8, 9], $, Ya, $, Ha, $, Ka, $, $a, $, Wa, $, [0, I, -2], $, [0, I, Le], $, za, $, [0, Le, -1, X]], [0, I], X, [0, [1, 3], [2, 4], $, [0, jr], -1, $, [0, de], -1, ue, [0, I, -1]], I];
|
|
2356
|
+
var so = [0, Yn, -1, Pt, -3, Yn, jr, ft, Ut, Yn, -1, Pt, Ut, Pt, -2, ft];
|
|
2357
|
+
function U(e, t) {
|
|
2358
|
+
dn(e, 3, t);
|
|
2359
|
+
}
|
|
2360
|
+
function T(e, t) {
|
|
2361
|
+
dn(e, 4, t);
|
|
2362
|
+
}
|
|
2363
|
+
var be = class extends y {
|
|
2364
|
+
constructor(e) {
|
|
2365
|
+
super(e, 500);
|
|
2366
|
+
}
|
|
2367
|
+
o(e) {
|
|
2368
|
+
return w(this, 0, 7, e);
|
|
2369
|
+
}
|
|
2370
|
+
}, kr = [-1, {}], oo = [0, I, 1, kr], ao = [0, I, de, kr];
|
|
2371
|
+
function De(e, t) {
|
|
2372
|
+
Di(e, 1, be, t);
|
|
2373
|
+
}
|
|
2374
|
+
function H(e, t) {
|
|
2375
|
+
dn(e, 10, t);
|
|
2376
|
+
}
|
|
2377
|
+
function P(e, t) {
|
|
2378
|
+
dn(e, 15, t);
|
|
2379
|
+
}
|
|
2380
|
+
var Fe = class extends y {
|
|
2381
|
+
constructor(e) {
|
|
2382
|
+
super(e, 500);
|
|
2383
|
+
}
|
|
2384
|
+
o(e) {
|
|
2385
|
+
return w(this, 0, 1001, e);
|
|
2386
|
+
}
|
|
2387
|
+
}, qa = [-500, ue, [-500, ft, -1, de, -3, [-2, oe, X], ue, to, Ut, -1, oo, ao, ue, [0, ft, Pt], ft, so, Ut, de, 987, de], 4, ue, [-500, I, -1, [-1, {}], 998, I], ue, [-500, I, de, -1, [-2, {}, X], 997, de, -1], Ut, ue, [-500, I, de, kr, 998, de], de, Ut, oo, ao, ue, [0, ft, -1, kr], de, -2, so, ft, -1, Pt, [0, Pt, _c], 978, kr, ue, to];
|
|
2388
|
+
Fe.prototype.g = An(qa);
|
|
2389
|
+
var Ac = mt(Fe, qa), kc = class extends y {
|
|
2390
|
+
constructor(e) {
|
|
2391
|
+
super(e);
|
|
2392
|
+
}
|
|
2393
|
+
}, Xa = class extends y {
|
|
2394
|
+
constructor(e) {
|
|
2395
|
+
super(e);
|
|
2396
|
+
}
|
|
2397
|
+
g() {
|
|
2398
|
+
return it(this, kc, 1);
|
|
2399
|
+
}
|
|
2400
|
+
}, Ja = [0, ue, [0, le, te, I, -1]], kn = mt(Xa, Ja), Sc = class extends y {
|
|
2401
|
+
constructor(e) {
|
|
2402
|
+
super(e);
|
|
2403
|
+
}
|
|
2404
|
+
}, Tc = class extends y {
|
|
2405
|
+
constructor(e) {
|
|
2406
|
+
super(e);
|
|
2407
|
+
}
|
|
2408
|
+
}, qn = class extends y {
|
|
2409
|
+
constructor(e) {
|
|
2410
|
+
super(e);
|
|
2411
|
+
}
|
|
2412
|
+
l() {
|
|
2413
|
+
return L(this, Sc, 2);
|
|
2414
|
+
}
|
|
2415
|
+
g() {
|
|
2416
|
+
return it(this, Tc, 5);
|
|
2417
|
+
}
|
|
2418
|
+
}, Za = mt(class extends y {
|
|
2419
|
+
constructor(e) {
|
|
2420
|
+
super(e);
|
|
2421
|
+
}
|
|
2422
|
+
}, [0, de, jr, Ji, [0, Le, [0, le, -3], [0, te, -3], [0, le, -1, [0, ue, [0, le, -2]]], ue, [0, te, -1, I, te]], I, -1, gt, ue, [0, le, te], de, gt]), Qa = class extends y {
|
|
2423
|
+
constructor(e) {
|
|
2424
|
+
super(e);
|
|
2425
|
+
}
|
|
2426
|
+
}, Gt = mt(class extends y {
|
|
2427
|
+
constructor(e) {
|
|
2428
|
+
super(e);
|
|
2429
|
+
}
|
|
2430
|
+
}, [0, ue, [0, te, -4]]), e2 = class extends y {
|
|
2431
|
+
constructor(e) {
|
|
2432
|
+
super(e);
|
|
2433
|
+
}
|
|
2434
|
+
}, Dr = mt(class extends y {
|
|
2435
|
+
constructor(e) {
|
|
2436
|
+
super(e);
|
|
2437
|
+
}
|
|
2438
|
+
}, [0, ue, [0, te, -4]]), xc = class extends y {
|
|
2439
|
+
constructor(e) {
|
|
2440
|
+
super(e);
|
|
2441
|
+
}
|
|
2442
|
+
}, Lc = [0, le, -1, Ji, Le], t2 = class extends y {
|
|
2443
|
+
constructor(e) {
|
|
2444
|
+
super(e);
|
|
2445
|
+
}
|
|
2446
|
+
};
|
|
2447
|
+
t2.prototype.g = An([0, te, -4, gt]);
|
|
2448
|
+
var Pc = class extends y {
|
|
2449
|
+
constructor(e) {
|
|
2450
|
+
super(e);
|
|
2451
|
+
}
|
|
2452
|
+
}, Oc = mt(class extends y {
|
|
2453
|
+
constructor(e) {
|
|
2454
|
+
super(e);
|
|
2455
|
+
}
|
|
2456
|
+
}, [0, ue, [0, 1, le, I, Ja], gt]), co = class extends y {
|
|
2457
|
+
constructor(e) {
|
|
2458
|
+
super(e);
|
|
2459
|
+
}
|
|
2460
|
+
}, Fc = class extends y {
|
|
2461
|
+
constructor(e) {
|
|
2462
|
+
super(e);
|
|
2463
|
+
}
|
|
2464
|
+
na() {
|
|
2465
|
+
const e = B(this, 1, void 0, void 0, ua);
|
|
2466
|
+
return e ?? Ot();
|
|
2467
|
+
}
|
|
2468
|
+
}, Rc = class extends y {
|
|
2469
|
+
constructor(e) {
|
|
2470
|
+
super(e);
|
|
2471
|
+
}
|
|
2472
|
+
}, r2 = [1, 2], Mc = mt(class extends y {
|
|
2473
|
+
constructor(e) {
|
|
2474
|
+
super(e);
|
|
2475
|
+
}
|
|
2476
|
+
}, [0, ue, [0, r2, $, [0, Ji], $, [0, Ga], le, I], gt]), Zi = class extends y {
|
|
2477
|
+
constructor(e) {
|
|
2478
|
+
super(e);
|
|
2479
|
+
}
|
|
2480
|
+
}, n2 = [0, I, le, te, de, -1], uo = class extends y {
|
|
2481
|
+
constructor(e) {
|
|
2482
|
+
super(e);
|
|
2483
|
+
}
|
|
2484
|
+
}, Cc = [0, X, -1], lo = class extends y {
|
|
2485
|
+
constructor(e) {
|
|
2486
|
+
super(e);
|
|
2487
|
+
}
|
|
2488
|
+
}, Jr = [1, 2, 3, 4, 5, 6], sn = class extends y {
|
|
2489
|
+
constructor(e) {
|
|
2490
|
+
super(e);
|
|
2491
|
+
}
|
|
2492
|
+
g() {
|
|
2493
|
+
return B(this, 1, void 0, void 0, ua) != null;
|
|
2494
|
+
}
|
|
2495
|
+
l() {
|
|
2496
|
+
return fe(B(this, 2)) != null;
|
|
2497
|
+
}
|
|
2498
|
+
}, K = class extends y {
|
|
2499
|
+
constructor(e) {
|
|
2500
|
+
super(e);
|
|
2501
|
+
}
|
|
2502
|
+
g() {
|
|
2503
|
+
return Qo(B(this, 2)) ?? !1;
|
|
2504
|
+
}
|
|
2505
|
+
}, i2 = [0, Ga, I, [0, le, gt, -1], [0, yc, gt]], re = [0, i2, X, [0, Jr, $, $a, $, Ha, $, Wa, $, Ya, $, Ka, $, za], Le], Sn = class extends y {
|
|
2506
|
+
constructor(e) {
|
|
2507
|
+
super(e);
|
|
2508
|
+
}
|
|
2509
|
+
}, Qi = [0, re, te, -1, le], Ic = Qe(502141897, Sn);
|
|
2510
|
+
oe[502141897] = Qi;
|
|
2511
|
+
var Nc = mt(class extends y {
|
|
2512
|
+
constructor(e) {
|
|
2513
|
+
super(e);
|
|
2514
|
+
}
|
|
2515
|
+
}, [0, [0, Le, -1, gc, vc], Lc]), s2 = class extends y {
|
|
2516
|
+
constructor(e) {
|
|
2517
|
+
super(e);
|
|
2518
|
+
}
|
|
2519
|
+
}, o2 = class extends y {
|
|
2520
|
+
constructor(e) {
|
|
2521
|
+
super(e);
|
|
2522
|
+
}
|
|
2523
|
+
}, ui = [0, re, te, [0, re], X], jc = Qe(508968150, o2);
|
|
2524
|
+
oe[508968150] = [0, re, Qi, ui, te, [0, [0, i2]]], oe[508968149] = ui;
|
|
2525
|
+
var Bt = class extends y {
|
|
2526
|
+
constructor(e) {
|
|
2527
|
+
super(e);
|
|
2528
|
+
}
|
|
2529
|
+
l() {
|
|
2530
|
+
return L(this, Zi, 2);
|
|
2531
|
+
}
|
|
2532
|
+
g() {
|
|
2533
|
+
F(this, 2);
|
|
2534
|
+
}
|
|
2535
|
+
}, a2 = [0, re, n2];
|
|
2536
|
+
oe[478825465] = a2;
|
|
2537
|
+
var Dc = class extends y {
|
|
2538
|
+
constructor(e) {
|
|
2539
|
+
super(e);
|
|
2540
|
+
}
|
|
2541
|
+
}, c2 = class extends y {
|
|
2542
|
+
constructor(e) {
|
|
2543
|
+
super(e);
|
|
2544
|
+
}
|
|
2545
|
+
}, es = class extends y {
|
|
2546
|
+
constructor(e) {
|
|
2547
|
+
super(e);
|
|
2548
|
+
}
|
|
2549
|
+
}, ts = class extends y {
|
|
2550
|
+
constructor(e) {
|
|
2551
|
+
super(e);
|
|
2552
|
+
}
|
|
2553
|
+
}, u2 = class extends y {
|
|
2554
|
+
constructor(e) {
|
|
2555
|
+
super(e);
|
|
2556
|
+
}
|
|
2557
|
+
}, ho = [0, re, [0, re], a2, -1], l2 = [0, re, te, le], rs = [0, re, te], h2 = [0, re, l2, rs, te], Bc = Qe(479097054, u2);
|
|
2558
|
+
oe[479097054] = [0, re, h2, ho], oe[463370452] = ho, oe[464864288] = l2;
|
|
2559
|
+
var Uc = Qe(462713202, ts);
|
|
2560
|
+
oe[462713202] = h2, oe[474472470] = rs;
|
|
2561
|
+
var Vc = class extends y {
|
|
2562
|
+
constructor(e) {
|
|
2563
|
+
super(e);
|
|
2564
|
+
}
|
|
2565
|
+
}, f2 = class extends y {
|
|
2566
|
+
constructor(e) {
|
|
2567
|
+
super(e);
|
|
2568
|
+
}
|
|
2569
|
+
}, d2 = class extends y {
|
|
2570
|
+
constructor(e) {
|
|
2571
|
+
super(e);
|
|
2572
|
+
}
|
|
2573
|
+
}, p2 = class extends y {
|
|
2574
|
+
constructor(e) {
|
|
2575
|
+
super(e);
|
|
2576
|
+
}
|
|
2577
|
+
}, ns = [0, re, te, -1, le], li = [0, re, te, X];
|
|
2578
|
+
p2.prototype.g = An([0, re, rs, [0, re], Qi, ui, ns, li]);
|
|
2579
|
+
var g2 = class extends y {
|
|
2580
|
+
constructor(e) {
|
|
2581
|
+
super(e);
|
|
2582
|
+
}
|
|
2583
|
+
}, Gc = Qe(456383383, g2);
|
|
2584
|
+
oe[456383383] = [0, re, n2];
|
|
2585
|
+
var m2 = class extends y {
|
|
2586
|
+
constructor(e) {
|
|
2587
|
+
super(e);
|
|
2588
|
+
}
|
|
2589
|
+
}, Wc = Qe(476348187, m2);
|
|
2590
|
+
oe[476348187] = [0, re, Cc];
|
|
2591
|
+
var y2 = class extends y {
|
|
2592
|
+
constructor(e) {
|
|
2593
|
+
super(e);
|
|
2594
|
+
}
|
|
2595
|
+
}, fo = class extends y {
|
|
2596
|
+
constructor(e) {
|
|
2597
|
+
super(e);
|
|
2598
|
+
}
|
|
2599
|
+
}, v2 = [0, Le, -1], Hc = Qe(458105876, class extends y {
|
|
2600
|
+
constructor(e) {
|
|
2601
|
+
super(e);
|
|
2602
|
+
}
|
|
2603
|
+
g() {
|
|
2604
|
+
let e;
|
|
2605
|
+
var t = this.v;
|
|
2606
|
+
const r = 0 | t[m];
|
|
2607
|
+
return e = Te(this, r), t = function(n, i, s, o) {
|
|
2608
|
+
var c = fo;
|
|
2609
|
+
!o && or(n) && (s = 0 | (i = n.v)[m]);
|
|
2610
|
+
var u = nt(i, 2);
|
|
2611
|
+
if (n = !1, u == null) {
|
|
2612
|
+
if (o) return Ks();
|
|
2613
|
+
u = [];
|
|
2614
|
+
} else if (u.constructor === rt) {
|
|
2615
|
+
if (!(2 & u.J) || o) return u;
|
|
2616
|
+
u = u.V();
|
|
2617
|
+
} else Array.isArray(u) ? n = !!(2 & (0 | u[m])) : u = [];
|
|
2618
|
+
if (o) {
|
|
2619
|
+
if (!u.length) return Ks();
|
|
2620
|
+
n || (n = !0, Rr(u));
|
|
2621
|
+
} else n && (n = !1, xr(u), u = la(u));
|
|
2622
|
+
return !n && 32 & s && Fr(u, 32), s = se(i, s, 2, o = new rt(u, c, H1, void 0)), n || Ct(i, s), o;
|
|
2623
|
+
}(this, t, r, e), !e && fo && (t.ra = !0), t;
|
|
2624
|
+
}
|
|
2625
|
+
});
|
|
2626
|
+
oe[458105876] = [0, v2, pc, [!0, gt, [0, I, -1, de]], [0, jr, X, Le]];
|
|
2627
|
+
var is = class extends y {
|
|
2628
|
+
constructor(e) {
|
|
2629
|
+
super(e);
|
|
2630
|
+
}
|
|
2631
|
+
}, _2 = Qe(458105758, is);
|
|
2632
|
+
oe[458105758] = [0, re, I, v2];
|
|
2633
|
+
var Xn = class extends y {
|
|
2634
|
+
constructor(e) {
|
|
2635
|
+
super(e);
|
|
2636
|
+
}
|
|
2637
|
+
}, po = [0, mc, -1, Pt], zc = class extends y {
|
|
2638
|
+
constructor(e) {
|
|
2639
|
+
super(e);
|
|
2640
|
+
}
|
|
2641
|
+
}, b2 = class extends y {
|
|
2642
|
+
constructor(e) {
|
|
2643
|
+
super(e);
|
|
2644
|
+
}
|
|
2645
|
+
}, hi = [1, 2];
|
|
2646
|
+
b2.prototype.g = An([0, hi, $, po, $, [0, ue, po]]);
|
|
2647
|
+
var w2 = class extends y {
|
|
2648
|
+
constructor(e) {
|
|
2649
|
+
super(e);
|
|
2650
|
+
}
|
|
2651
|
+
}, Kc = Qe(443442058, w2);
|
|
2652
|
+
oe[443442058] = [0, re, I, le, te, de, -1, X, te], oe[514774813] = ns;
|
|
2653
|
+
var E2 = class extends y {
|
|
2654
|
+
constructor(e) {
|
|
2655
|
+
super(e);
|
|
2656
|
+
}
|
|
2657
|
+
}, Yc = Qe(516587230, E2);
|
|
2658
|
+
function fi(e, t) {
|
|
2659
|
+
return t = t ? t.clone() : new Zi(), e.displayNamesLocale !== void 0 ? F(t, 1, Ir(e.displayNamesLocale)) : e.displayNamesLocale === void 0 && F(t, 1), e.maxResults !== void 0 ? st(t, 2, e.maxResults) : "maxResults" in e && F(t, 2), e.scoreThreshold !== void 0 ? _(t, 3, e.scoreThreshold) : "scoreThreshold" in e && F(t, 3), e.categoryAllowlist !== void 0 ? en(t, 4, e.categoryAllowlist) : "categoryAllowlist" in e && F(t, 4), e.categoryDenylist !== void 0 ? en(t, 5, e.categoryDenylist) : "categoryDenylist" in e && F(t, 5), t;
|
|
2660
|
+
}
|
|
2661
|
+
function A2(e) {
|
|
2662
|
+
const t = Number(e);
|
|
2663
|
+
return Number.isSafeInteger(t) ? t : String(e);
|
|
2664
|
+
}
|
|
2665
|
+
function ss(e, t = -1, r = "") {
|
|
2666
|
+
return { categories: e.map((n) => ({ index: Ne(n, 1) ?? 0 ?? -1, score: q(n, 2) ?? 0, categoryName: fe(B(n, 3)) ?? "" ?? "", displayName: fe(B(n, 4)) ?? "" ?? "" })), headIndex: t, headName: r };
|
|
2667
|
+
}
|
|
2668
|
+
function $c(e) {
|
|
2669
|
+
const t = { classifications: it(e, Pc, 1).map((r) => {
|
|
2670
|
+
var n;
|
|
2671
|
+
return ss(((n = L(r, Xa, 4)) == null ? void 0 : n.g()) ?? [], Ne(r, 2) ?? 0, fe(B(r, 3)) ?? "");
|
|
2672
|
+
}) };
|
|
2673
|
+
return function(r) {
|
|
2674
|
+
return W1(bi ? B(r, 2, void 0, void 0, Zr) : B(r, 2));
|
|
2675
|
+
}(e) != null && (t.timestampMs = A2(ga(e))), t;
|
|
2676
|
+
}
|
|
2677
|
+
function k2(e) {
|
|
2678
|
+
var o, c;
|
|
2679
|
+
var t = kt(e, 3, $e, At()), r = kt(e, 2, ir, At()), n = kt(e, 1, fe, At()), i = kt(e, 9, fe, At());
|
|
2680
|
+
const s = { categories: [], keypoints: [] };
|
|
2681
|
+
for (let u = 0; u < t.length; u++) s.categories.push({ score: t[u], index: r[u] ?? -1, categoryName: n[u] ?? "", displayName: i[u] ?? "" });
|
|
2682
|
+
if ((t = (o = L(e, qn, 4)) == null ? void 0 : o.l()) && (s.boundingBox = { originX: Ne(t, 1, ut) ?? 0, originY: Ne(t, 2, ut) ?? 0, width: Ne(t, 3, ut) ?? 0, height: Ne(t, 4, ut) ?? 0, angle: 0 }), (c = L(e, qn, 4)) == null ? void 0 : c.g().length) for (const u of L(e, qn, 4).g()) s.keypoints.push({ x: B(u, 1, void 0, ut, $e) ?? 0, y: B(u, 2, void 0, ut, $e) ?? 0, score: B(u, 4, void 0, ut, $e) ?? 0, label: fe(B(u, 3, void 0, ut)) ?? "" });
|
|
2683
|
+
return s;
|
|
2684
|
+
}
|
|
2685
|
+
function Tn(e) {
|
|
2686
|
+
const t = [];
|
|
2687
|
+
for (const r of it(e, e2, 1)) t.push({ x: q(r, 1) ?? 0, y: q(r, 2) ?? 0, z: q(r, 3) ?? 0, visibility: q(r, 4) ?? 0 });
|
|
2688
|
+
return t;
|
|
2689
|
+
}
|
|
2690
|
+
function Sr(e) {
|
|
2691
|
+
const t = [];
|
|
2692
|
+
for (const r of it(e, Qa, 1)) t.push({ x: q(r, 1) ?? 0, y: q(r, 2) ?? 0, z: q(r, 3) ?? 0, visibility: q(r, 4) ?? 0 });
|
|
2693
|
+
return t;
|
|
2694
|
+
}
|
|
2695
|
+
function go(e) {
|
|
2696
|
+
return Array.from(e, (t) => t > 127 ? t - 256 : t);
|
|
2697
|
+
}
|
|
2698
|
+
function mo(e, t) {
|
|
2699
|
+
if (e.length !== t.length) throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${e.length} vs. ${t.length}).`);
|
|
2700
|
+
let r = 0, n = 0, i = 0;
|
|
2701
|
+
for (let s = 0; s < e.length; s++) r += e[s] * t[s], n += e[s] * e[s], i += t[s] * t[s];
|
|
2702
|
+
if (n <= 0 || i <= 0) throw Error("Cannot compute cosine similarity on embedding with 0 norm.");
|
|
2703
|
+
return r / Math.sqrt(n * i);
|
|
2704
|
+
}
|
|
2705
|
+
let Yr;
|
|
2706
|
+
oe[516587230] = [0, re, ns, li, te], oe[518928384] = li;
|
|
2707
|
+
const qc = 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]);
|
|
2708
|
+
async function S2() {
|
|
2709
|
+
if (Yr === void 0) try {
|
|
2710
|
+
await WebAssembly.instantiate(qc), Yr = !0;
|
|
2711
|
+
} catch {
|
|
2712
|
+
Yr = !1;
|
|
2713
|
+
}
|
|
2714
|
+
return Yr;
|
|
2715
|
+
}
|
|
2716
|
+
async function br(e, t = wc``) {
|
|
2717
|
+
const r = await S2() ? "wasm_internal" : "wasm_nosimd_internal";
|
|
2718
|
+
return { wasmLoaderPath: `${t}/${e}_${r}.js`, wasmBinaryPath: `${t}/${e}_${r}.wasm` };
|
|
2719
|
+
}
|
|
2720
|
+
var Et = class {
|
|
2721
|
+
};
|
|
2722
|
+
function T2() {
|
|
2723
|
+
var e = navigator;
|
|
2724
|
+
return typeof OffscreenCanvas < "u" && (!function(t = navigator) {
|
|
2725
|
+
return (t = t.userAgent).includes("Safari") && !t.includes("Chrome");
|
|
2726
|
+
}(e) || !!((e = e.userAgent.match(/Version\/([\d]+).*Safari/)) && e.length >= 1 && Number(e[1]) >= 17));
|
|
2727
|
+
}
|
|
2728
|
+
async function yo(e) {
|
|
2729
|
+
if (typeof importScripts != "function") {
|
|
2730
|
+
const t = document.createElement("script");
|
|
2731
|
+
return t.src = e.toString(), t.crossOrigin = "anonymous", new Promise((r, n) => {
|
|
2732
|
+
t.addEventListener("load", () => {
|
|
2733
|
+
r();
|
|
2734
|
+
}, !1), t.addEventListener("error", (i) => {
|
|
2735
|
+
n(i);
|
|
2736
|
+
}, !1), document.body.appendChild(t);
|
|
2737
|
+
});
|
|
2738
|
+
}
|
|
2739
|
+
try {
|
|
2740
|
+
importScripts(e.toString());
|
|
2741
|
+
} catch (t) {
|
|
2742
|
+
if (!(t instanceof TypeError)) throw t;
|
|
2743
|
+
await self.import(e.toString());
|
|
2744
|
+
}
|
|
2745
|
+
}
|
|
2746
|
+
function x2(e) {
|
|
2747
|
+
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];
|
|
2748
|
+
}
|
|
2749
|
+
function v(e, t, r) {
|
|
2750
|
+
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);
|
|
2751
|
+
}
|
|
2752
|
+
function vo(e, t, r) {
|
|
2753
|
+
if (!e.i.canvas) throw Error("No OpenGL canvas configured.");
|
|
2754
|
+
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`.");
|
|
2755
|
+
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);
|
|
2756
|
+
const [n, i] = x2(t);
|
|
2757
|
+
return !e.l || n === e.i.canvas.width && i === e.i.canvas.height || (e.i.canvas.width = n, e.i.canvas.height = i), [n, i];
|
|
2758
|
+
}
|
|
2759
|
+
function _o(e, t, r) {
|
|
2760
|
+
e.m || console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");
|
|
2761
|
+
const n = new Uint32Array(t.length);
|
|
2762
|
+
for (let i = 0; i < t.length; i++) n[i] = e.i.stringToNewUTF8(t[i]);
|
|
2763
|
+
t = e.i._malloc(4 * n.length), e.i.HEAPU32.set(n, t >> 2), r(t);
|
|
2764
|
+
for (const i of n) e.i._free(i);
|
|
2765
|
+
e.i._free(t);
|
|
2766
|
+
}
|
|
2767
|
+
function Ke(e, t, r) {
|
|
2768
|
+
e.i.simpleListeners = e.i.simpleListeners || {}, e.i.simpleListeners[t] = r;
|
|
2769
|
+
}
|
|
2770
|
+
function lt(e, t, r) {
|
|
2771
|
+
let n = [];
|
|
2772
|
+
e.i.simpleListeners = e.i.simpleListeners || {}, e.i.simpleListeners[t] = (i, s, o) => {
|
|
2773
|
+
s ? (r(n, o), n = []) : n.push(i);
|
|
2774
|
+
};
|
|
2775
|
+
}
|
|
2776
|
+
Et.forVisionTasks = function(e) {
|
|
2777
|
+
return br("vision", e);
|
|
2778
|
+
}, Et.forTextTasks = function(e) {
|
|
2779
|
+
return br("text", e);
|
|
2780
|
+
}, Et.forGenAiExperimentalTasks = function(e) {
|
|
2781
|
+
return br("genai_experimental", e);
|
|
2782
|
+
}, Et.forGenAiTasks = function(e) {
|
|
2783
|
+
return br("genai", e);
|
|
2784
|
+
}, Et.forAudioTasks = function(e) {
|
|
2785
|
+
return br("audio", e);
|
|
2786
|
+
}, Et.isSimdSupported = function() {
|
|
2787
|
+
return S2();
|
|
2788
|
+
};
|
|
2789
|
+
async function Xc(e, t, r, n) {
|
|
2790
|
+
return e = await (async (i, s, o, c, u) => {
|
|
2791
|
+
if (s && await yo(s), !self.ModuleFactory || o && (await yo(o), !self.ModuleFactory)) throw Error("ModuleFactory not set.");
|
|
2792
|
+
return self.Module && u && ((s = self.Module).locateFile = u.locateFile, u.mainScriptUrlOrBlob && (s.mainScriptUrlOrBlob = u.mainScriptUrlOrBlob)), u = await self.ModuleFactory(self.Module || u), self.ModuleFactory = self.Module = void 0, new i(u, c);
|
|
2793
|
+
})(e, r.wasmLoaderPath, r.assetLoaderPath, t, { locateFile: (i) => i.endsWith(".wasm") ? r.wasmBinaryPath.toString() : r.assetBinaryPath && i.endsWith(".data") ? r.assetBinaryPath.toString() : i }), await e.o(n), e;
|
|
2794
|
+
}
|
|
2795
|
+
function Jn(e, t) {
|
|
2796
|
+
const r = L(e.baseOptions, sn, 1) || new sn();
|
|
2797
|
+
typeof t == "string" ? (F(r, 2, Ir(t)), F(r, 1)) : t instanceof Uint8Array && (F(r, 1, Ai(t, !1)), F(r, 2)), w(e.baseOptions, 0, 1, r);
|
|
2798
|
+
}
|
|
2799
|
+
function bo(e) {
|
|
2800
|
+
try {
|
|
2801
|
+
const t = e.H.length;
|
|
2802
|
+
if (t === 1) throw Error(e.H[0].message);
|
|
2803
|
+
if (t > 1) throw Error("Encountered multiple errors: " + e.H.map((r) => r.message).join(", "));
|
|
2804
|
+
} finally {
|
|
2805
|
+
e.H = [];
|
|
2806
|
+
}
|
|
2807
|
+
}
|
|
2808
|
+
function g(e, t) {
|
|
2809
|
+
e.C = Math.max(e.C, t);
|
|
2810
|
+
}
|
|
2811
|
+
function xn(e, t) {
|
|
2812
|
+
e.B = new be(), xe(e.B, 2, "PassThroughCalculator"), U(e.B, "free_memory"), T(e.B, "free_memory_unused_out"), H(t, "free_memory"), De(t, e.B);
|
|
2813
|
+
}
|
|
2814
|
+
function Zt(e, t) {
|
|
2815
|
+
U(e.B, t), T(e.B, t + "_unused_out");
|
|
2816
|
+
}
|
|
2817
|
+
function Ln(e) {
|
|
2818
|
+
e.g.addBoolToStream(!0, "free_memory", e.C);
|
|
2819
|
+
}
|
|
2820
|
+
var di = class {
|
|
2821
|
+
constructor(e) {
|
|
2822
|
+
this.g = e, this.H = [], this.C = 0, this.g.setAutoRenderToScreen(!1);
|
|
2823
|
+
}
|
|
2824
|
+
l(e, t = !0) {
|
|
2825
|
+
var r, n, i, s, o, c;
|
|
2826
|
+
if (t) {
|
|
2827
|
+
const u = e.baseOptions || {};
|
|
2828
|
+
if ((r = e.baseOptions) != null && r.modelAssetBuffer && ((n = e.baseOptions) != null && n.modelAssetPath)) throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");
|
|
2829
|
+
if (!((i = L(this.baseOptions, sn, 1)) != null && i.g() || (s = L(this.baseOptions, sn, 1)) != null && s.l() || (o = e.baseOptions) != null && o.modelAssetBuffer || (c = e.baseOptions) != null && c.modelAssetPath)) throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");
|
|
2830
|
+
if (function(f, l) {
|
|
2831
|
+
let d = L(f.baseOptions, lo, 3);
|
|
2832
|
+
if (!d) {
|
|
2833
|
+
var b = d = new lo(), A = new io();
|
|
2834
|
+
Ar(b, 4, Jr, A);
|
|
2835
|
+
}
|
|
2836
|
+
"delegate" in l && (l.delegate === "GPU" ? (l = d, b = new Ec(), Ar(l, 2, Jr, b)) : (l = d, b = new io(), Ar(l, 4, Jr, b))), w(f.baseOptions, 0, 3, d);
|
|
2837
|
+
}(this, u), u.modelAssetPath) return fetch(u.modelAssetPath.toString()).then((f) => {
|
|
2838
|
+
if (f.ok) return f.arrayBuffer();
|
|
2839
|
+
throw Error(`Failed to fetch model: ${u.modelAssetPath} (${f.status})`);
|
|
2840
|
+
}).then((f) => {
|
|
2841
|
+
try {
|
|
2842
|
+
this.g.i.FS_unlink("/model.dat");
|
|
2843
|
+
} catch {
|
|
2844
|
+
}
|
|
2845
|
+
this.g.i.FS_createDataFile("/", "model.dat", new Uint8Array(f), !0, !1, !1), Jn(this, "/model.dat"), this.m(), this.L();
|
|
2846
|
+
});
|
|
2847
|
+
if (u.modelAssetBuffer instanceof Uint8Array) Jn(this, u.modelAssetBuffer);
|
|
2848
|
+
else if (u.modelAssetBuffer) return async function(f) {
|
|
2849
|
+
const l = [];
|
|
2850
|
+
for (var d = 0; ; ) {
|
|
2851
|
+
const { done: b, value: A } = await f.read();
|
|
2852
|
+
if (b) break;
|
|
2853
|
+
l.push(A), d += A.length;
|
|
2854
|
+
}
|
|
2855
|
+
if (l.length === 0) return new Uint8Array(0);
|
|
2856
|
+
if (l.length === 1) return l[0];
|
|
2857
|
+
f = new Uint8Array(d), d = 0;
|
|
2858
|
+
for (const b of l) f.set(b, d), d += b.length;
|
|
2859
|
+
return f;
|
|
2860
|
+
}(u.modelAssetBuffer).then((f) => {
|
|
2861
|
+
Jn(this, f), this.m(), this.L();
|
|
2862
|
+
});
|
|
2863
|
+
}
|
|
2864
|
+
return this.m(), this.L(), Promise.resolve();
|
|
2865
|
+
}
|
|
2866
|
+
L() {
|
|
2867
|
+
}
|
|
2868
|
+
ca() {
|
|
2869
|
+
let e;
|
|
2870
|
+
if (this.g.ca((t) => {
|
|
2871
|
+
e = Ac(t);
|
|
2872
|
+
}), !e) throw Error("Failed to retrieve CalculatorGraphConfig");
|
|
2873
|
+
return e;
|
|
2874
|
+
}
|
|
2875
|
+
setGraph(e, t) {
|
|
2876
|
+
this.g.attachErrorListener((r, n) => {
|
|
2877
|
+
this.H.push(Error(n));
|
|
2878
|
+
}), this.g.Ja(), this.g.setGraph(e, t), this.B = void 0, bo(this);
|
|
2879
|
+
}
|
|
2880
|
+
finishProcessing() {
|
|
2881
|
+
this.g.finishProcessing(), bo(this);
|
|
2882
|
+
}
|
|
2883
|
+
close() {
|
|
2884
|
+
this.B = void 0, this.g.closeGraph();
|
|
2885
|
+
}
|
|
2886
|
+
};
|
|
2887
|
+
function dt(e, t) {
|
|
2888
|
+
if (!e) throw Error(`Unable to obtain required WebGL resource: ${t}`);
|
|
2889
|
+
return e;
|
|
2890
|
+
}
|
|
2891
|
+
di.prototype.close = di.prototype.close;
|
|
2892
|
+
class Jc {
|
|
2893
|
+
constructor(t, r, n, i) {
|
|
2894
|
+
this.g = t, this.h = r, this.m = n, this.l = i;
|
|
2895
|
+
}
|
|
2896
|
+
bind() {
|
|
2897
|
+
this.g.bindVertexArray(this.h);
|
|
2898
|
+
}
|
|
2899
|
+
close() {
|
|
2900
|
+
this.g.deleteVertexArray(this.h), this.g.deleteBuffer(this.m), this.g.deleteBuffer(this.l);
|
|
2901
|
+
}
|
|
2902
|
+
}
|
|
2903
|
+
function wo(e, t, r) {
|
|
2904
|
+
const n = e.g;
|
|
2905
|
+
if (r = dt(n.createShader(r), "Failed to create WebGL shader"), n.shaderSource(r, t), n.compileShader(r), !n.getShaderParameter(r, n.COMPILE_STATUS)) throw Error(`Could not compile WebGL shader: ${n.getShaderInfoLog(r)}`);
|
|
2906
|
+
return n.attachShader(e.h, r), r;
|
|
2907
|
+
}
|
|
2908
|
+
function Eo(e, t) {
|
|
2909
|
+
const r = e.g, n = dt(r.createVertexArray(), "Failed to create vertex array");
|
|
2910
|
+
r.bindVertexArray(n);
|
|
2911
|
+
const i = dt(r.createBuffer(), "Failed to create buffer");
|
|
2912
|
+
r.bindBuffer(r.ARRAY_BUFFER, i), 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);
|
|
2913
|
+
const s = dt(r.createBuffer(), "Failed to create buffer");
|
|
2914
|
+
return r.bindBuffer(r.ARRAY_BUFFER, s), 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 Jc(r, n, i, s);
|
|
2915
|
+
}
|
|
2916
|
+
function os(e, t) {
|
|
2917
|
+
if (e.g) {
|
|
2918
|
+
if (t !== e.g) throw Error("Cannot change GL context once initialized");
|
|
2919
|
+
} else e.g = t;
|
|
2920
|
+
}
|
|
2921
|
+
function Zc(e, t, r, n) {
|
|
2922
|
+
return os(e, t), e.h || (e.m(), e.D()), r ? (e.u || (e.u = Eo(e, !0)), r = e.u) : (e.A || (e.A = Eo(e, !1)), r = e.A), t.useProgram(e.h), r.bind(), e.l(), e = n(), r.g.bindVertexArray(null), e;
|
|
2923
|
+
}
|
|
2924
|
+
function L2(e, t, r) {
|
|
2925
|
+
return os(e, t), e = dt(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;
|
|
2926
|
+
}
|
|
2927
|
+
function P2(e, t, r) {
|
|
2928
|
+
os(e, t), e.B || (e.B = dt(t.createFramebuffer(), "Failed to create framebuffe.")), t.bindFramebuffer(t.FRAMEBUFFER, e.B), t.framebufferTexture2D(t.FRAMEBUFFER, t.COLOR_ATTACHMENT0, t.TEXTURE_2D, r, 0);
|
|
2929
|
+
}
|
|
2930
|
+
function Qc(e) {
|
|
2931
|
+
var t;
|
|
2932
|
+
(t = e.g) == null || t.bindFramebuffer(e.g.FRAMEBUFFER, null);
|
|
2933
|
+
}
|
|
2934
|
+
var O2 = class {
|
|
2935
|
+
H() {
|
|
2936
|
+
return `
|
|
2937
|
+
precision mediump float;
|
|
2938
|
+
varying vec2 vTex;
|
|
2939
|
+
uniform sampler2D inputTexture;
|
|
2940
|
+
void main() {
|
|
2941
|
+
gl_FragColor = texture2D(inputTexture, vTex);
|
|
2942
|
+
}
|
|
2943
|
+
`;
|
|
2944
|
+
}
|
|
2945
|
+
m() {
|
|
2946
|
+
const e = this.g;
|
|
2947
|
+
if (this.h = dt(e.createProgram(), "Failed to create WebGL program"), this.X = wo(this, `
|
|
2948
|
+
attribute vec2 aVertex;
|
|
2949
|
+
attribute vec2 aTex;
|
|
2950
|
+
varying vec2 vTex;
|
|
2951
|
+
void main(void) {
|
|
2952
|
+
gl_Position = vec4(aVertex, 0.0, 1.0);
|
|
2953
|
+
vTex = aTex;
|
|
2954
|
+
}`, e.VERTEX_SHADER), this.W = wo(this, this.H(), e.FRAGMENT_SHADER), e.linkProgram(this.h), !e.getProgramParameter(this.h, e.LINK_STATUS)) throw Error(`Error during program linking: ${e.getProgramInfoLog(this.h)}`);
|
|
2955
|
+
this.O = e.getAttribLocation(this.h, "aVertex"), this.L = e.getAttribLocation(this.h, "aTex");
|
|
2956
|
+
}
|
|
2957
|
+
D() {
|
|
2958
|
+
}
|
|
2959
|
+
l() {
|
|
2960
|
+
}
|
|
2961
|
+
close() {
|
|
2962
|
+
if (this.h) {
|
|
2963
|
+
const e = this.g;
|
|
2964
|
+
e.deleteProgram(this.h), e.deleteShader(this.X), e.deleteShader(this.W);
|
|
2965
|
+
}
|
|
2966
|
+
this.B && this.g.deleteFramebuffer(this.B), this.A && this.A.close(), this.u && this.u.close();
|
|
2967
|
+
}
|
|
2968
|
+
};
|
|
2969
|
+
function tt(e, t) {
|
|
2970
|
+
switch (t) {
|
|
2971
|
+
case 0:
|
|
2972
|
+
return e.g.find((r) => r instanceof Uint8Array);
|
|
2973
|
+
case 1:
|
|
2974
|
+
return e.g.find((r) => r instanceof Float32Array);
|
|
2975
|
+
case 2:
|
|
2976
|
+
return e.g.find((r) => typeof WebGLTexture < "u" && r instanceof WebGLTexture);
|
|
2977
|
+
default:
|
|
2978
|
+
throw Error(`Type is not supported: ${t}`);
|
|
2979
|
+
}
|
|
2980
|
+
}
|
|
2981
|
+
function pi(e) {
|
|
2982
|
+
var t = tt(e, 1);
|
|
2983
|
+
if (!t) {
|
|
2984
|
+
if (t = tt(e, 0)) t = new Float32Array(t).map((n) => n / 255);
|
|
2985
|
+
else {
|
|
2986
|
+
t = new Float32Array(e.width * e.height);
|
|
2987
|
+
const n = Qt(e);
|
|
2988
|
+
var r = as(e);
|
|
2989
|
+
if (P2(r, n, F2(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) {
|
|
2990
|
+
r = new Float32Array(e.width * e.height * 4), n.readPixels(0, 0, e.width, e.height, n.RGBA, n.FLOAT, r);
|
|
2991
|
+
for (let i = 0, s = 0; i < t.length; ++i, s += 4) t[i] = r[s];
|
|
2992
|
+
} else n.readPixels(0, 0, e.width, e.height, n.RED, n.FLOAT, t);
|
|
2993
|
+
}
|
|
2994
|
+
e.g.push(t);
|
|
2995
|
+
}
|
|
2996
|
+
return t;
|
|
2997
|
+
}
|
|
2998
|
+
function F2(e) {
|
|
2999
|
+
let t = tt(e, 2);
|
|
3000
|
+
if (!t) {
|
|
3001
|
+
const r = Qt(e);
|
|
3002
|
+
t = M2(e);
|
|
3003
|
+
const n = pi(e), i = R2(e);
|
|
3004
|
+
r.texImage2D(r.TEXTURE_2D, 0, i, e.width, e.height, 0, r.RED, r.FLOAT, n), gi(e);
|
|
3005
|
+
}
|
|
3006
|
+
return t;
|
|
3007
|
+
}
|
|
3008
|
+
function Qt(e) {
|
|
3009
|
+
if (!e.canvas) throw Error("Conversion to different image formats require that a canvas is passed when initializing the image.");
|
|
3010
|
+
return e.h || (e.h = dt(e.canvas.getContext("webgl2"), "You cannot use a canvas that is already bound to a different type of rendering context.")), e.h;
|
|
3011
|
+
}
|
|
3012
|
+
function R2(e) {
|
|
3013
|
+
if (e = Qt(e), !$r) if (e.getExtension("EXT_color_buffer_float") && e.getExtension("OES_texture_float_linear") && e.getExtension("EXT_float_blend")) $r = e.R32F;
|
|
3014
|
+
else {
|
|
3015
|
+
if (!e.getExtension("EXT_color_buffer_half_float")) throw Error("GPU does not fully support 4-channel float32 or float16 formats");
|
|
3016
|
+
$r = e.R16F;
|
|
3017
|
+
}
|
|
3018
|
+
return $r;
|
|
3019
|
+
}
|
|
3020
|
+
function as(e) {
|
|
3021
|
+
return e.l || (e.l = new O2()), e.l;
|
|
3022
|
+
}
|
|
3023
|
+
function M2(e) {
|
|
3024
|
+
const t = Qt(e);
|
|
3025
|
+
t.viewport(0, 0, e.width, e.height), t.activeTexture(t.TEXTURE0);
|
|
3026
|
+
let r = tt(e, 2);
|
|
3027
|
+
return r || (r = L2(as(e), t, e.m ? t.LINEAR : t.NEAREST), e.g.push(r), e.j = !0), t.bindTexture(t.TEXTURE_2D, r), r;
|
|
3028
|
+
}
|
|
3029
|
+
function gi(e) {
|
|
3030
|
+
e.h.bindTexture(e.h.TEXTURE_2D, null);
|
|
3031
|
+
}
|
|
3032
|
+
var $r, ce = class {
|
|
3033
|
+
constructor(e, t, r, n, i, s, o) {
|
|
3034
|
+
this.g = e, this.m = t, this.j = r, this.canvas = n, this.l = i, this.width = s, this.height = o, this.j && --Ao === 0 && console.error("You seem to be creating MPMask instances without invoking .close(). This leaks resources.");
|
|
3035
|
+
}
|
|
3036
|
+
Fa() {
|
|
3037
|
+
return !!tt(this, 0);
|
|
3038
|
+
}
|
|
3039
|
+
ka() {
|
|
3040
|
+
return !!tt(this, 1);
|
|
3041
|
+
}
|
|
3042
|
+
R() {
|
|
3043
|
+
return !!tt(this, 2);
|
|
3044
|
+
}
|
|
3045
|
+
ja() {
|
|
3046
|
+
return (t = tt(e = this, 0)) || (t = pi(e), t = new Uint8Array(t.map((r) => Math.round(255 * r))), e.g.push(t)), t;
|
|
3047
|
+
var e, t;
|
|
3048
|
+
}
|
|
3049
|
+
ia() {
|
|
3050
|
+
return pi(this);
|
|
3051
|
+
}
|
|
3052
|
+
N() {
|
|
3053
|
+
return F2(this);
|
|
3054
|
+
}
|
|
3055
|
+
clone() {
|
|
3056
|
+
const e = [];
|
|
3057
|
+
for (const t of this.g) {
|
|
3058
|
+
let r;
|
|
3059
|
+
if (t instanceof Uint8Array) r = new Uint8Array(t);
|
|
3060
|
+
else if (t instanceof Float32Array) r = new Float32Array(t);
|
|
3061
|
+
else {
|
|
3062
|
+
if (!(t instanceof WebGLTexture)) throw Error(`Type is not supported: ${t}`);
|
|
3063
|
+
{
|
|
3064
|
+
const n = Qt(this), i = as(this);
|
|
3065
|
+
n.activeTexture(n.TEXTURE1), r = L2(i, n, this.m ? n.LINEAR : n.NEAREST), n.bindTexture(n.TEXTURE_2D, r);
|
|
3066
|
+
const s = R2(this);
|
|
3067
|
+
n.texImage2D(n.TEXTURE_2D, 0, s, this.width, this.height, 0, n.RED, n.FLOAT, null), n.bindTexture(n.TEXTURE_2D, null), P2(i, n, r), Zc(i, n, !1, () => {
|
|
3068
|
+
M2(this), n.clearColor(0, 0, 0, 0), n.clear(n.COLOR_BUFFER_BIT), n.drawArrays(n.TRIANGLE_FAN, 0, 4), gi(this);
|
|
3069
|
+
}), Qc(i), gi(this);
|
|
3070
|
+
}
|
|
3071
|
+
}
|
|
3072
|
+
e.push(r);
|
|
3073
|
+
}
|
|
3074
|
+
return new ce(e, this.m, this.R(), this.canvas, this.l, this.width, this.height);
|
|
3075
|
+
}
|
|
3076
|
+
close() {
|
|
3077
|
+
this.j && Qt(this).deleteTexture(tt(this, 2)), Ao = -1;
|
|
3078
|
+
}
|
|
3079
|
+
};
|
|
3080
|
+
ce.prototype.close = ce.prototype.close, ce.prototype.clone = ce.prototype.clone, ce.prototype.getAsWebGLTexture = ce.prototype.N, ce.prototype.getAsFloat32Array = ce.prototype.ia, ce.prototype.getAsUint8Array = ce.prototype.ja, ce.prototype.hasWebGLTexture = ce.prototype.R, ce.prototype.hasFloat32Array = ce.prototype.ka, ce.prototype.hasUint8Array = ce.prototype.Fa;
|
|
3081
|
+
var Ao = 250;
|
|
3082
|
+
function We(...e) {
|
|
3083
|
+
return e.map(([t, r]) => ({ start: t, end: r }));
|
|
3084
|
+
}
|
|
3085
|
+
const eu = /* @__PURE__ */ function(e) {
|
|
3086
|
+
return class extends e {
|
|
3087
|
+
Ja() {
|
|
3088
|
+
this.i._registerModelResourcesGraphService();
|
|
3089
|
+
}
|
|
3090
|
+
};
|
|
3091
|
+
}((ko = class {
|
|
3092
|
+
constructor(e, t) {
|
|
3093
|
+
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 : T2() ? 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"));
|
|
3094
|
+
}
|
|
3095
|
+
async initializeGraph(e) {
|
|
3096
|
+
const t = await (await fetch(e)).arrayBuffer();
|
|
3097
|
+
e = !(e.endsWith(".pbtxt") || e.endsWith(".textproto")), this.setGraph(new Uint8Array(t), e);
|
|
3098
|
+
}
|
|
3099
|
+
setGraphFromString(e) {
|
|
3100
|
+
this.setGraph(new TextEncoder().encode(e), !1);
|
|
3101
|
+
}
|
|
3102
|
+
setGraph(e, t) {
|
|
3103
|
+
const r = e.length, n = this.i._malloc(r);
|
|
3104
|
+
this.i.HEAPU8.set(e, n), t ? this.i._changeBinaryGraph(r, n) : this.i._changeTextGraph(r, n), this.i._free(n);
|
|
3105
|
+
}
|
|
3106
|
+
configureAudio(e, t, r, n, i) {
|
|
3107
|
+
this.i._configureAudio || console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'), v(this, n || "input_audio", (s) => {
|
|
3108
|
+
v(this, i = i || "audio_header", (o) => {
|
|
3109
|
+
this.i._configureAudio(s, o, e, t ?? 0, r);
|
|
3110
|
+
});
|
|
3111
|
+
});
|
|
3112
|
+
}
|
|
3113
|
+
setAutoResizeCanvas(e) {
|
|
3114
|
+
this.l = e;
|
|
3115
|
+
}
|
|
3116
|
+
setAutoRenderToScreen(e) {
|
|
3117
|
+
this.i._setAutoRenderToScreen(e);
|
|
3118
|
+
}
|
|
3119
|
+
setGpuBufferVerticalFlip(e) {
|
|
3120
|
+
this.i.gpuOriginForWebTexturesIsBottomLeft = e;
|
|
3121
|
+
}
|
|
3122
|
+
ca(e) {
|
|
3123
|
+
Ke(this, "__graph_config__", (t) => {
|
|
3124
|
+
e(t);
|
|
3125
|
+
}), v(this, "__graph_config__", (t) => {
|
|
3126
|
+
this.i._getGraphConfig(t, void 0);
|
|
3127
|
+
}), delete this.i.simpleListeners.__graph_config__;
|
|
3128
|
+
}
|
|
3129
|
+
attachErrorListener(e) {
|
|
3130
|
+
this.i.errorListener = e;
|
|
3131
|
+
}
|
|
3132
|
+
attachEmptyPacketListener(e, t) {
|
|
3133
|
+
this.i.emptyPacketListeners = this.i.emptyPacketListeners || {}, this.i.emptyPacketListeners[e] = t;
|
|
3134
|
+
}
|
|
3135
|
+
addAudioToStream(e, t, r) {
|
|
3136
|
+
this.addAudioToStreamWithShape(e, 0, 0, t, r);
|
|
3137
|
+
}
|
|
3138
|
+
addAudioToStreamWithShape(e, t, r, n, i) {
|
|
3139
|
+
const s = 4 * e.length;
|
|
3140
|
+
this.h !== s && (this.g && this.i._free(this.g), this.g = this.i._malloc(s), this.h = s), this.i.HEAPF32.set(e, this.g / 4), v(this, n, (o) => {
|
|
3141
|
+
this.i._addAudioToInputStream(this.g, t, r, o, i);
|
|
3142
|
+
});
|
|
3143
|
+
}
|
|
3144
|
+
addGpuBufferToStream(e, t, r) {
|
|
3145
|
+
v(this, t, (n) => {
|
|
3146
|
+
const [i, s] = vo(this, e, n);
|
|
3147
|
+
this.i._addBoundTextureToStream(n, i, s, r);
|
|
3148
|
+
});
|
|
3149
|
+
}
|
|
3150
|
+
addBoolToStream(e, t, r) {
|
|
3151
|
+
v(this, t, (n) => {
|
|
3152
|
+
this.i._addBoolToInputStream(e, n, r);
|
|
3153
|
+
});
|
|
3154
|
+
}
|
|
3155
|
+
addDoubleToStream(e, t, r) {
|
|
3156
|
+
v(this, t, (n) => {
|
|
3157
|
+
this.i._addDoubleToInputStream(e, n, r);
|
|
3158
|
+
});
|
|
3159
|
+
}
|
|
3160
|
+
addFloatToStream(e, t, r) {
|
|
3161
|
+
v(this, t, (n) => {
|
|
3162
|
+
this.i._addFloatToInputStream(e, n, r);
|
|
3163
|
+
});
|
|
3164
|
+
}
|
|
3165
|
+
addIntToStream(e, t, r) {
|
|
3166
|
+
v(this, t, (n) => {
|
|
3167
|
+
this.i._addIntToInputStream(e, n, r);
|
|
3168
|
+
});
|
|
3169
|
+
}
|
|
3170
|
+
addUintToStream(e, t, r) {
|
|
3171
|
+
v(this, t, (n) => {
|
|
3172
|
+
this.i._addUintToInputStream(e, n, r);
|
|
3173
|
+
});
|
|
3174
|
+
}
|
|
3175
|
+
addStringToStream(e, t, r) {
|
|
3176
|
+
v(this, t, (n) => {
|
|
3177
|
+
v(this, e, (i) => {
|
|
3178
|
+
this.i._addStringToInputStream(i, n, r);
|
|
3179
|
+
});
|
|
3180
|
+
});
|
|
3181
|
+
}
|
|
3182
|
+
addStringRecordToStream(e, t, r) {
|
|
3183
|
+
v(this, t, (n) => {
|
|
3184
|
+
_o(this, Object.keys(e), (i) => {
|
|
3185
|
+
_o(this, Object.values(e), (s) => {
|
|
3186
|
+
this.i._addFlatHashMapToInputStream(i, s, Object.keys(e).length, n, r);
|
|
3187
|
+
});
|
|
3188
|
+
});
|
|
3189
|
+
});
|
|
3190
|
+
}
|
|
3191
|
+
addProtoToStream(e, t, r, n) {
|
|
3192
|
+
v(this, r, (i) => {
|
|
3193
|
+
v(this, t, (s) => {
|
|
3194
|
+
const o = this.i._malloc(e.length);
|
|
3195
|
+
this.i.HEAPU8.set(e, o), this.i._addProtoToInputStream(o, e.length, s, i, n), this.i._free(o);
|
|
3196
|
+
});
|
|
3197
|
+
});
|
|
3198
|
+
}
|
|
3199
|
+
addEmptyPacketToStream(e, t) {
|
|
3200
|
+
v(this, e, (r) => {
|
|
3201
|
+
this.i._addEmptyPacketToInputStream(r, t);
|
|
3202
|
+
});
|
|
3203
|
+
}
|
|
3204
|
+
addBoolVectorToStream(e, t, r) {
|
|
3205
|
+
v(this, t, (n) => {
|
|
3206
|
+
const i = this.i._allocateBoolVector(e.length);
|
|
3207
|
+
if (!i) throw Error("Unable to allocate new bool vector on heap.");
|
|
3208
|
+
for (const s of e) this.i._addBoolVectorEntry(i, s);
|
|
3209
|
+
this.i._addBoolVectorToInputStream(i, n, r);
|
|
3210
|
+
});
|
|
3211
|
+
}
|
|
3212
|
+
addDoubleVectorToStream(e, t, r) {
|
|
3213
|
+
v(this, t, (n) => {
|
|
3214
|
+
const i = this.i._allocateDoubleVector(e.length);
|
|
3215
|
+
if (!i) throw Error("Unable to allocate new double vector on heap.");
|
|
3216
|
+
for (const s of e) this.i._addDoubleVectorEntry(i, s);
|
|
3217
|
+
this.i._addDoubleVectorToInputStream(i, n, r);
|
|
3218
|
+
});
|
|
3219
|
+
}
|
|
3220
|
+
addFloatVectorToStream(e, t, r) {
|
|
3221
|
+
v(this, t, (n) => {
|
|
3222
|
+
const i = this.i._allocateFloatVector(e.length);
|
|
3223
|
+
if (!i) throw Error("Unable to allocate new float vector on heap.");
|
|
3224
|
+
for (const s of e) this.i._addFloatVectorEntry(i, s);
|
|
3225
|
+
this.i._addFloatVectorToInputStream(i, n, r);
|
|
3226
|
+
});
|
|
3227
|
+
}
|
|
3228
|
+
addIntVectorToStream(e, t, r) {
|
|
3229
|
+
v(this, t, (n) => {
|
|
3230
|
+
const i = this.i._allocateIntVector(e.length);
|
|
3231
|
+
if (!i) throw Error("Unable to allocate new int vector on heap.");
|
|
3232
|
+
for (const s of e) this.i._addIntVectorEntry(i, s);
|
|
3233
|
+
this.i._addIntVectorToInputStream(i, n, r);
|
|
3234
|
+
});
|
|
3235
|
+
}
|
|
3236
|
+
addUintVectorToStream(e, t, r) {
|
|
3237
|
+
v(this, t, (n) => {
|
|
3238
|
+
const i = this.i._allocateUintVector(e.length);
|
|
3239
|
+
if (!i) throw Error("Unable to allocate new unsigned int vector on heap.");
|
|
3240
|
+
for (const s of e) this.i._addUintVectorEntry(i, s);
|
|
3241
|
+
this.i._addUintVectorToInputStream(i, n, r);
|
|
3242
|
+
});
|
|
3243
|
+
}
|
|
3244
|
+
addStringVectorToStream(e, t, r) {
|
|
3245
|
+
v(this, t, (n) => {
|
|
3246
|
+
const i = this.i._allocateStringVector(e.length);
|
|
3247
|
+
if (!i) throw Error("Unable to allocate new string vector on heap.");
|
|
3248
|
+
for (const s of e) v(this, s, (o) => {
|
|
3249
|
+
this.i._addStringVectorEntry(i, o);
|
|
3250
|
+
});
|
|
3251
|
+
this.i._addStringVectorToInputStream(i, n, r);
|
|
3252
|
+
});
|
|
3253
|
+
}
|
|
3254
|
+
addBoolToInputSidePacket(e, t) {
|
|
3255
|
+
v(this, t, (r) => {
|
|
3256
|
+
this.i._addBoolToInputSidePacket(e, r);
|
|
3257
|
+
});
|
|
3258
|
+
}
|
|
3259
|
+
addDoubleToInputSidePacket(e, t) {
|
|
3260
|
+
v(this, t, (r) => {
|
|
3261
|
+
this.i._addDoubleToInputSidePacket(e, r);
|
|
3262
|
+
});
|
|
3263
|
+
}
|
|
3264
|
+
addFloatToInputSidePacket(e, t) {
|
|
3265
|
+
v(this, t, (r) => {
|
|
3266
|
+
this.i._addFloatToInputSidePacket(e, r);
|
|
3267
|
+
});
|
|
3268
|
+
}
|
|
3269
|
+
addIntToInputSidePacket(e, t) {
|
|
3270
|
+
v(this, t, (r) => {
|
|
3271
|
+
this.i._addIntToInputSidePacket(e, r);
|
|
3272
|
+
});
|
|
3273
|
+
}
|
|
3274
|
+
addUintToInputSidePacket(e, t) {
|
|
3275
|
+
v(this, t, (r) => {
|
|
3276
|
+
this.i._addUintToInputSidePacket(e, r);
|
|
3277
|
+
});
|
|
3278
|
+
}
|
|
3279
|
+
addStringToInputSidePacket(e, t) {
|
|
3280
|
+
v(this, t, (r) => {
|
|
3281
|
+
v(this, e, (n) => {
|
|
3282
|
+
this.i._addStringToInputSidePacket(n, r);
|
|
3283
|
+
});
|
|
3284
|
+
});
|
|
3285
|
+
}
|
|
3286
|
+
addProtoToInputSidePacket(e, t, r) {
|
|
3287
|
+
v(this, r, (n) => {
|
|
3288
|
+
v(this, t, (i) => {
|
|
3289
|
+
const s = this.i._malloc(e.length);
|
|
3290
|
+
this.i.HEAPU8.set(e, s), this.i._addProtoToInputSidePacket(s, e.length, i, n), this.i._free(s);
|
|
3291
|
+
});
|
|
3292
|
+
});
|
|
3293
|
+
}
|
|
3294
|
+
addBoolVectorToInputSidePacket(e, t) {
|
|
3295
|
+
v(this, t, (r) => {
|
|
3296
|
+
const n = this.i._allocateBoolVector(e.length);
|
|
3297
|
+
if (!n) throw Error("Unable to allocate new bool vector on heap.");
|
|
3298
|
+
for (const i of e) this.i._addBoolVectorEntry(n, i);
|
|
3299
|
+
this.i._addBoolVectorToInputSidePacket(n, r);
|
|
3300
|
+
});
|
|
3301
|
+
}
|
|
3302
|
+
addDoubleVectorToInputSidePacket(e, t) {
|
|
3303
|
+
v(this, t, (r) => {
|
|
3304
|
+
const n = this.i._allocateDoubleVector(e.length);
|
|
3305
|
+
if (!n) throw Error("Unable to allocate new double vector on heap.");
|
|
3306
|
+
for (const i of e) this.i._addDoubleVectorEntry(n, i);
|
|
3307
|
+
this.i._addDoubleVectorToInputSidePacket(n, r);
|
|
3308
|
+
});
|
|
3309
|
+
}
|
|
3310
|
+
addFloatVectorToInputSidePacket(e, t) {
|
|
3311
|
+
v(this, t, (r) => {
|
|
3312
|
+
const n = this.i._allocateFloatVector(e.length);
|
|
3313
|
+
if (!n) throw Error("Unable to allocate new float vector on heap.");
|
|
3314
|
+
for (const i of e) this.i._addFloatVectorEntry(n, i);
|
|
3315
|
+
this.i._addFloatVectorToInputSidePacket(n, r);
|
|
3316
|
+
});
|
|
3317
|
+
}
|
|
3318
|
+
addIntVectorToInputSidePacket(e, t) {
|
|
3319
|
+
v(this, t, (r) => {
|
|
3320
|
+
const n = this.i._allocateIntVector(e.length);
|
|
3321
|
+
if (!n) throw Error("Unable to allocate new int vector on heap.");
|
|
3322
|
+
for (const i of e) this.i._addIntVectorEntry(n, i);
|
|
3323
|
+
this.i._addIntVectorToInputSidePacket(n, r);
|
|
3324
|
+
});
|
|
3325
|
+
}
|
|
3326
|
+
addUintVectorToInputSidePacket(e, t) {
|
|
3327
|
+
v(this, t, (r) => {
|
|
3328
|
+
const n = this.i._allocateUintVector(e.length);
|
|
3329
|
+
if (!n) throw Error("Unable to allocate new unsigned int vector on heap.");
|
|
3330
|
+
for (const i of e) this.i._addUintVectorEntry(n, i);
|
|
3331
|
+
this.i._addUintVectorToInputSidePacket(n, r);
|
|
3332
|
+
});
|
|
3333
|
+
}
|
|
3334
|
+
addStringVectorToInputSidePacket(e, t) {
|
|
3335
|
+
v(this, t, (r) => {
|
|
3336
|
+
const n = this.i._allocateStringVector(e.length);
|
|
3337
|
+
if (!n) throw Error("Unable to allocate new string vector on heap.");
|
|
3338
|
+
for (const i of e) v(this, i, (s) => {
|
|
3339
|
+
this.i._addStringVectorEntry(n, s);
|
|
3340
|
+
});
|
|
3341
|
+
this.i._addStringVectorToInputSidePacket(n, r);
|
|
3342
|
+
});
|
|
3343
|
+
}
|
|
3344
|
+
attachBoolListener(e, t) {
|
|
3345
|
+
Ke(this, e, t), v(this, e, (r) => {
|
|
3346
|
+
this.i._attachBoolListener(r);
|
|
3347
|
+
});
|
|
3348
|
+
}
|
|
3349
|
+
attachBoolVectorListener(e, t) {
|
|
3350
|
+
lt(this, e, t), v(this, e, (r) => {
|
|
3351
|
+
this.i._attachBoolVectorListener(r);
|
|
3352
|
+
});
|
|
3353
|
+
}
|
|
3354
|
+
attachIntListener(e, t) {
|
|
3355
|
+
Ke(this, e, t), v(this, e, (r) => {
|
|
3356
|
+
this.i._attachIntListener(r);
|
|
3357
|
+
});
|
|
3358
|
+
}
|
|
3359
|
+
attachIntVectorListener(e, t) {
|
|
3360
|
+
lt(this, e, t), v(this, e, (r) => {
|
|
3361
|
+
this.i._attachIntVectorListener(r);
|
|
3362
|
+
});
|
|
3363
|
+
}
|
|
3364
|
+
attachUintListener(e, t) {
|
|
3365
|
+
Ke(this, e, t), v(this, e, (r) => {
|
|
3366
|
+
this.i._attachUintListener(r);
|
|
3367
|
+
});
|
|
3368
|
+
}
|
|
3369
|
+
attachUintVectorListener(e, t) {
|
|
3370
|
+
lt(this, e, t), v(this, e, (r) => {
|
|
3371
|
+
this.i._attachUintVectorListener(r);
|
|
3372
|
+
});
|
|
3373
|
+
}
|
|
3374
|
+
attachDoubleListener(e, t) {
|
|
3375
|
+
Ke(this, e, t), v(this, e, (r) => {
|
|
3376
|
+
this.i._attachDoubleListener(r);
|
|
3377
|
+
});
|
|
3378
|
+
}
|
|
3379
|
+
attachDoubleVectorListener(e, t) {
|
|
3380
|
+
lt(this, e, t), v(this, e, (r) => {
|
|
3381
|
+
this.i._attachDoubleVectorListener(r);
|
|
3382
|
+
});
|
|
3383
|
+
}
|
|
3384
|
+
attachFloatListener(e, t) {
|
|
3385
|
+
Ke(this, e, t), v(this, e, (r) => {
|
|
3386
|
+
this.i._attachFloatListener(r);
|
|
3387
|
+
});
|
|
3388
|
+
}
|
|
3389
|
+
attachFloatVectorListener(e, t) {
|
|
3390
|
+
lt(this, e, t), v(this, e, (r) => {
|
|
3391
|
+
this.i._attachFloatVectorListener(r);
|
|
3392
|
+
});
|
|
3393
|
+
}
|
|
3394
|
+
attachStringListener(e, t) {
|
|
3395
|
+
Ke(this, e, t), v(this, e, (r) => {
|
|
3396
|
+
this.i._attachStringListener(r);
|
|
3397
|
+
});
|
|
3398
|
+
}
|
|
3399
|
+
attachStringVectorListener(e, t) {
|
|
3400
|
+
lt(this, e, t), v(this, e, (r) => {
|
|
3401
|
+
this.i._attachStringVectorListener(r);
|
|
3402
|
+
});
|
|
3403
|
+
}
|
|
3404
|
+
attachProtoListener(e, t, r) {
|
|
3405
|
+
Ke(this, e, t), v(this, e, (n) => {
|
|
3406
|
+
this.i._attachProtoListener(n, r || !1);
|
|
3407
|
+
});
|
|
3408
|
+
}
|
|
3409
|
+
attachProtoVectorListener(e, t, r) {
|
|
3410
|
+
lt(this, e, t), v(this, e, (n) => {
|
|
3411
|
+
this.i._attachProtoVectorListener(n, r || !1);
|
|
3412
|
+
});
|
|
3413
|
+
}
|
|
3414
|
+
attachAudioListener(e, t, r) {
|
|
3415
|
+
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, (n, i) => {
|
|
3416
|
+
n = new Float32Array(n.buffer, n.byteOffset, n.length / 4), t(n, i);
|
|
3417
|
+
}), v(this, e, (n) => {
|
|
3418
|
+
this.i._attachAudioListener(n, r || !1);
|
|
3419
|
+
});
|
|
3420
|
+
}
|
|
3421
|
+
finishProcessing() {
|
|
3422
|
+
this.i._waitUntilIdle();
|
|
3423
|
+
}
|
|
3424
|
+
closeGraph() {
|
|
3425
|
+
this.i._closeGraph(), this.i.simpleListeners = void 0, this.i.emptyPacketListeners = void 0;
|
|
3426
|
+
}
|
|
3427
|
+
}, class extends ko {
|
|
3428
|
+
get ga() {
|
|
3429
|
+
return this.i;
|
|
3430
|
+
}
|
|
3431
|
+
pa(e, t, r) {
|
|
3432
|
+
v(this, t, (n) => {
|
|
3433
|
+
const [i, s] = vo(this, e, n);
|
|
3434
|
+
this.ga._addBoundTextureAsImageToStream(n, i, s, r);
|
|
3435
|
+
});
|
|
3436
|
+
}
|
|
3437
|
+
Z(e, t) {
|
|
3438
|
+
Ke(this, e, t), v(this, e, (r) => {
|
|
3439
|
+
this.ga._attachImageListener(r);
|
|
3440
|
+
});
|
|
3441
|
+
}
|
|
3442
|
+
aa(e, t) {
|
|
3443
|
+
lt(this, e, t), v(this, e, (r) => {
|
|
3444
|
+
this.ga._attachImageVectorListener(r);
|
|
3445
|
+
});
|
|
3446
|
+
}
|
|
3447
|
+
}));
|
|
3448
|
+
var ko, He = class extends eu {
|
|
3449
|
+
};
|
|
3450
|
+
async function x(e, t, r) {
|
|
3451
|
+
return async function(n, i, s, o) {
|
|
3452
|
+
return Xc(n, i, s, o);
|
|
3453
|
+
}(e, r.canvas ?? (T2() ? void 0 : document.createElement("canvas")), t, r);
|
|
3454
|
+
}
|
|
3455
|
+
function C2(e, t, r, n) {
|
|
3456
|
+
if (e.U) {
|
|
3457
|
+
const s = new t2();
|
|
3458
|
+
if (r != null && r.regionOfInterest) {
|
|
3459
|
+
if (!e.oa) throw Error("This task doesn't support region-of-interest.");
|
|
3460
|
+
var i = r.regionOfInterest;
|
|
3461
|
+
if (i.left >= i.right || i.top >= i.bottom) throw Error("Expected RectF with left < right and top < bottom.");
|
|
3462
|
+
if (i.left < 0 || i.top < 0 || i.right > 1 || i.bottom > 1) throw Error("Expected RectF values to be in [0,1].");
|
|
3463
|
+
_(s, 1, (i.left + i.right) / 2), _(s, 2, (i.top + i.bottom) / 2), _(s, 4, i.right - i.left), _(s, 3, i.bottom - i.top);
|
|
3464
|
+
} else _(s, 1, 0.5), _(s, 2, 0.5), _(s, 4, 1), _(s, 3, 1);
|
|
3465
|
+
if (r != null && r.rotationDegrees) {
|
|
3466
|
+
if ((r == null ? void 0 : r.rotationDegrees) % 90 != 0) throw Error("Expected rotation to be a multiple of 90°.");
|
|
3467
|
+
if (_(s, 5, -Math.PI * r.rotationDegrees / 180), (r == null ? void 0 : r.rotationDegrees) % 180 != 0) {
|
|
3468
|
+
const [o, c] = x2(t);
|
|
3469
|
+
r = q(s, 3) * c / o, i = q(s, 4) * o / c, _(s, 4, r), _(s, 3, i);
|
|
3470
|
+
}
|
|
3471
|
+
}
|
|
3472
|
+
e.g.addProtoToStream(s.g(), "mediapipe.NormalizedRect", e.U, n);
|
|
3473
|
+
}
|
|
3474
|
+
e.g.pa(t, e.X, n ?? performance.now()), e.finishProcessing();
|
|
3475
|
+
}
|
|
3476
|
+
function ze(e, t, r) {
|
|
3477
|
+
var n;
|
|
3478
|
+
if ((n = e.baseOptions) != null && n.g()) throw Error("Task is not initialized with image mode. 'runningMode' must be set to 'IMAGE'.");
|
|
3479
|
+
C2(e, t, r, e.C + 1);
|
|
3480
|
+
}
|
|
3481
|
+
function et(e, t, r, n) {
|
|
3482
|
+
var i;
|
|
3483
|
+
if (!((i = e.baseOptions) != null && i.g())) throw Error("Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'.");
|
|
3484
|
+
C2(e, t, r, n);
|
|
3485
|
+
}
|
|
3486
|
+
function er(e, t, r, n) {
|
|
3487
|
+
var i = t.data;
|
|
3488
|
+
const s = t.width, o = s * (t = t.height);
|
|
3489
|
+
if ((i instanceof Uint8Array || i instanceof Float32Array) && i.length !== o) throw Error("Unsupported channel count: " + i.length / o);
|
|
3490
|
+
return e = new ce([i], r, !1, e.g.i.canvas, e.P, s, t), n ? e.clone() : e;
|
|
3491
|
+
}
|
|
3492
|
+
var Pe = class extends di {
|
|
3493
|
+
constructor(e, t, r, n) {
|
|
3494
|
+
super(e), this.g = e, this.X = t, this.U = r, this.oa = n, this.P = new O2();
|
|
3495
|
+
}
|
|
3496
|
+
l(e, t = !0) {
|
|
3497
|
+
if ("runningMode" in e && F(this.baseOptions, 2, Pr(!!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.");
|
|
3498
|
+
return super.l(e, t);
|
|
3499
|
+
}
|
|
3500
|
+
close() {
|
|
3501
|
+
this.P.close(), super.close();
|
|
3502
|
+
}
|
|
3503
|
+
};
|
|
3504
|
+
Pe.prototype.close = Pe.prototype.close;
|
|
3505
|
+
var Me = class extends Pe {
|
|
3506
|
+
constructor(e, t) {
|
|
3507
|
+
super(new He(e, t), "image_in", "norm_rect_in", !1), this.j = { detections: [] }, w(e = this.h = new Sn(), 0, 1, t = new K()), _(this.h, 2, 0.5), _(this.h, 3, 0.3);
|
|
3508
|
+
}
|
|
3509
|
+
get baseOptions() {
|
|
3510
|
+
return L(this.h, K, 1);
|
|
3511
|
+
}
|
|
3512
|
+
set baseOptions(e) {
|
|
3513
|
+
w(this.h, 0, 1, e);
|
|
3514
|
+
}
|
|
3515
|
+
o(e) {
|
|
3516
|
+
return "minDetectionConfidence" in e && _(this.h, 2, e.minDetectionConfidence ?? 0.5), "minSuppressionThreshold" in e && _(this.h, 3, e.minSuppressionThreshold ?? 0.3), this.l(e);
|
|
3517
|
+
}
|
|
3518
|
+
F(e, t) {
|
|
3519
|
+
return this.j = { detections: [] }, ze(this, e, t), this.j;
|
|
3520
|
+
}
|
|
3521
|
+
G(e, t, r) {
|
|
3522
|
+
return this.j = { detections: [] }, et(this, e, r, t), this.j;
|
|
3523
|
+
}
|
|
3524
|
+
m() {
|
|
3525
|
+
var e = new Fe();
|
|
3526
|
+
H(e, "image_in"), H(e, "norm_rect_in"), P(e, "detections");
|
|
3527
|
+
const t = new Oe();
|
|
3528
|
+
Ze(t, Ic, this.h);
|
|
3529
|
+
const r = new be();
|
|
3530
|
+
xe(r, 2, "mediapipe.tasks.vision.face_detector.FaceDetectorGraph"), U(r, "IMAGE:image_in"), U(r, "NORM_RECT:norm_rect_in"), T(r, "DETECTIONS:detections"), r.o(t), De(e, r), this.g.attachProtoVectorListener("detections", (n, i) => {
|
|
3531
|
+
for (const s of n) n = Za(s), this.j.detections.push(k2(n));
|
|
3532
|
+
g(this, i);
|
|
3533
|
+
}), this.g.attachEmptyPacketListener("detections", (n) => {
|
|
3534
|
+
g(this, n);
|
|
3535
|
+
}), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
3536
|
+
}
|
|
3537
|
+
};
|
|
3538
|
+
Me.prototype.detectForVideo = Me.prototype.G, Me.prototype.detect = Me.prototype.F, Me.prototype.setOptions = Me.prototype.o, Me.createFromModelPath = async function(e, t) {
|
|
3539
|
+
return x(Me, e, { baseOptions: { modelAssetPath: t } });
|
|
3540
|
+
}, Me.createFromModelBuffer = function(e, t) {
|
|
3541
|
+
return x(Me, e, { baseOptions: { modelAssetBuffer: t } });
|
|
3542
|
+
}, Me.createFromOptions = function(e, t) {
|
|
3543
|
+
return x(Me, e, t);
|
|
3544
|
+
};
|
|
3545
|
+
var cs = We([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]), us = We([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]), ls = We([276, 283], [283, 282], [282, 295], [295, 285], [300, 293], [293, 334], [334, 296], [296, 336]), I2 = We([474, 475], [475, 476], [476, 477], [477, 474]), hs = We([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]), fs = We([46, 53], [53, 52], [52, 65], [65, 55], [70, 63], [63, 105], [105, 66], [66, 107]), N2 = We([469, 470], [470, 471], [471, 472], [472, 469]), ds = We([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]), j2 = [...cs, ...us, ...ls, ...hs, ...fs, ...ds], D2 = We([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]);
|
|
3546
|
+
function So(e) {
|
|
3547
|
+
e.j = { faceLandmarks: [], faceBlendshapes: [], facialTransformationMatrixes: [] };
|
|
3548
|
+
}
|
|
3549
|
+
var G = class extends Pe {
|
|
3550
|
+
constructor(e, t) {
|
|
3551
|
+
super(new He(e, t), "image_in", "norm_rect", !1), this.j = { faceLandmarks: [], faceBlendshapes: [], facialTransformationMatrixes: [] }, this.outputFacialTransformationMatrixes = this.outputFaceBlendshapes = !1, w(e = this.h = new o2(), 0, 1, t = new K()), this.A = new s2(), w(this.h, 0, 3, this.A), this.u = new Sn(), w(this.h, 0, 2, this.u), st(this.u, 4, 1), _(this.u, 2, 0.5), _(this.A, 2, 0.5), _(this.h, 4, 0.5);
|
|
3552
|
+
}
|
|
3553
|
+
get baseOptions() {
|
|
3554
|
+
return L(this.h, K, 1);
|
|
3555
|
+
}
|
|
3556
|
+
set baseOptions(e) {
|
|
3557
|
+
w(this.h, 0, 1, e);
|
|
3558
|
+
}
|
|
3559
|
+
o(e) {
|
|
3560
|
+
return "numFaces" in e && st(this.u, 4, e.numFaces ?? 1), "minFaceDetectionConfidence" in e && _(this.u, 2, e.minFaceDetectionConfidence ?? 0.5), "minTrackingConfidence" in e && _(this.h, 4, e.minTrackingConfidence ?? 0.5), "minFacePresenceConfidence" in e && _(this.A, 2, e.minFacePresenceConfidence ?? 0.5), "outputFaceBlendshapes" in e && (this.outputFaceBlendshapes = !!e.outputFaceBlendshapes), "outputFacialTransformationMatrixes" in e && (this.outputFacialTransformationMatrixes = !!e.outputFacialTransformationMatrixes), this.l(e);
|
|
3561
|
+
}
|
|
3562
|
+
F(e, t) {
|
|
3563
|
+
return So(this), ze(this, e, t), this.j;
|
|
3564
|
+
}
|
|
3565
|
+
G(e, t, r) {
|
|
3566
|
+
return So(this), et(this, e, r, t), this.j;
|
|
3567
|
+
}
|
|
3568
|
+
m() {
|
|
3569
|
+
var e = new Fe();
|
|
3570
|
+
H(e, "image_in"), H(e, "norm_rect"), P(e, "face_landmarks");
|
|
3571
|
+
const t = new Oe();
|
|
3572
|
+
Ze(t, jc, this.h);
|
|
3573
|
+
const r = new be();
|
|
3574
|
+
xe(r, 2, "mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"), U(r, "IMAGE:image_in"), U(r, "NORM_RECT:norm_rect"), T(r, "NORM_LANDMARKS:face_landmarks"), r.o(t), De(e, r), this.g.attachProtoVectorListener("face_landmarks", (n, i) => {
|
|
3575
|
+
for (const s of n) n = Dr(s), this.j.faceLandmarks.push(Tn(n));
|
|
3576
|
+
g(this, i);
|
|
3577
|
+
}), this.g.attachEmptyPacketListener("face_landmarks", (n) => {
|
|
3578
|
+
g(this, n);
|
|
3579
|
+
}), this.outputFaceBlendshapes && (P(e, "blendshapes"), T(r, "BLENDSHAPES:blendshapes"), this.g.attachProtoVectorListener("blendshapes", (n, i) => {
|
|
3580
|
+
if (this.outputFaceBlendshapes) for (const s of n) n = kn(s), this.j.faceBlendshapes.push(ss(n.g() ?? []));
|
|
3581
|
+
g(this, i);
|
|
3582
|
+
}), this.g.attachEmptyPacketListener("blendshapes", (n) => {
|
|
3583
|
+
g(this, n);
|
|
3584
|
+
})), this.outputFacialTransformationMatrixes && (P(e, "face_geometry"), T(r, "FACE_GEOMETRY:face_geometry"), this.g.attachProtoVectorListener("face_geometry", (n, i) => {
|
|
3585
|
+
if (this.outputFacialTransformationMatrixes) for (const s of n) (n = L(n = Nc(s), xc, 2)) && this.j.facialTransformationMatrixes.push({ rows: Ne(n, 1) ?? 0 ?? 0, columns: Ne(n, 2) ?? 0 ?? 0, data: kt(n, 3, $e, At()).slice() ?? [] });
|
|
3586
|
+
g(this, i);
|
|
3587
|
+
}), this.g.attachEmptyPacketListener("face_geometry", (n) => {
|
|
3588
|
+
g(this, n);
|
|
3589
|
+
})), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
3590
|
+
}
|
|
3591
|
+
};
|
|
3592
|
+
G.prototype.detectForVideo = G.prototype.G, G.prototype.detect = G.prototype.F, G.prototype.setOptions = G.prototype.o, G.createFromModelPath = function(e, t) {
|
|
3593
|
+
return x(G, e, { baseOptions: { modelAssetPath: t } });
|
|
3594
|
+
}, G.createFromModelBuffer = function(e, t) {
|
|
3595
|
+
return x(G, e, { baseOptions: { modelAssetBuffer: t } });
|
|
3596
|
+
}, G.createFromOptions = function(e, t) {
|
|
3597
|
+
return x(G, e, t);
|
|
3598
|
+
}, G.FACE_LANDMARKS_LIPS = cs, G.FACE_LANDMARKS_LEFT_EYE = us, G.FACE_LANDMARKS_LEFT_EYEBROW = ls, G.FACE_LANDMARKS_LEFT_IRIS = I2, G.FACE_LANDMARKS_RIGHT_EYE = hs, G.FACE_LANDMARKS_RIGHT_EYEBROW = fs, G.FACE_LANDMARKS_RIGHT_IRIS = N2, G.FACE_LANDMARKS_FACE_OVAL = ds, G.FACE_LANDMARKS_CONTOURS = j2, G.FACE_LANDMARKS_TESSELATION = D2;
|
|
3599
|
+
var ps = We([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]);
|
|
3600
|
+
function To(e) {
|
|
3601
|
+
e.gestures = [], e.landmarks = [], e.worldLandmarks = [], e.handedness = [];
|
|
3602
|
+
}
|
|
3603
|
+
function xo(e) {
|
|
3604
|
+
return e.gestures.length === 0 ? { gestures: [], landmarks: [], worldLandmarks: [], handedness: [], handednesses: [] } : { gestures: e.gestures, landmarks: e.landmarks, worldLandmarks: e.worldLandmarks, handedness: e.handedness, handednesses: e.handedness };
|
|
3605
|
+
}
|
|
3606
|
+
function Lo(e, t = !0) {
|
|
3607
|
+
const r = [];
|
|
3608
|
+
for (const i of e) {
|
|
3609
|
+
var n = kn(i);
|
|
3610
|
+
e = [];
|
|
3611
|
+
for (const s of n.g()) n = t && Ne(s, 1) != null ? Ne(s, 1) ?? 0 : -1, e.push({ score: q(s, 2) ?? 0, index: n, categoryName: fe(B(s, 3)) ?? "" ?? "", displayName: fe(B(s, 4)) ?? "" ?? "" });
|
|
3612
|
+
r.push(e);
|
|
3613
|
+
}
|
|
3614
|
+
return r;
|
|
3615
|
+
}
|
|
3616
|
+
var we = class extends Pe {
|
|
3617
|
+
constructor(e, t) {
|
|
3618
|
+
super(new He(e, t), "image_in", "norm_rect", !1), this.gestures = [], this.landmarks = [], this.worldLandmarks = [], this.handedness = [], w(e = this.j = new u2(), 0, 1, t = new K()), this.u = new ts(), w(this.j, 0, 2, this.u), this.D = new es(), w(this.u, 0, 3, this.D), this.A = new c2(), w(this.u, 0, 2, this.A), this.h = new Dc(), w(this.j, 0, 3, this.h), _(this.A, 2, 0.5), _(this.u, 4, 0.5), _(this.D, 2, 0.5);
|
|
3619
|
+
}
|
|
3620
|
+
get baseOptions() {
|
|
3621
|
+
return L(this.j, K, 1);
|
|
3622
|
+
}
|
|
3623
|
+
set baseOptions(e) {
|
|
3624
|
+
w(this.j, 0, 1, e);
|
|
3625
|
+
}
|
|
3626
|
+
o(e) {
|
|
3627
|
+
var i, s, o, c;
|
|
3628
|
+
if (st(this.A, 3, e.numHands ?? 1), "minHandDetectionConfidence" in e && _(this.A, 2, e.minHandDetectionConfidence ?? 0.5), "minTrackingConfidence" in e && _(this.u, 4, e.minTrackingConfidence ?? 0.5), "minHandPresenceConfidence" in e && _(this.D, 2, e.minHandPresenceConfidence ?? 0.5), e.cannedGesturesClassifierOptions) {
|
|
3629
|
+
var t = new Bt(), r = t, n = fi(e.cannedGesturesClassifierOptions, (i = L(this.h, Bt, 3)) == null ? void 0 : i.l());
|
|
3630
|
+
w(r, 0, 2, n), w(this.h, 0, 3, t);
|
|
3631
|
+
} else e.cannedGesturesClassifierOptions === void 0 && ((s = L(this.h, Bt, 3)) == null || s.g());
|
|
3632
|
+
return e.customGesturesClassifierOptions ? (w(r = t = new Bt(), 0, 2, n = fi(e.customGesturesClassifierOptions, (o = L(this.h, Bt, 4)) == null ? void 0 : o.l())), w(this.h, 0, 4, t)) : e.customGesturesClassifierOptions === void 0 && ((c = L(this.h, Bt, 4)) == null || c.g()), this.l(e);
|
|
3633
|
+
}
|
|
3634
|
+
Ha(e, t) {
|
|
3635
|
+
return To(this), ze(this, e, t), xo(this);
|
|
3636
|
+
}
|
|
3637
|
+
Ia(e, t, r) {
|
|
3638
|
+
return To(this), et(this, e, r, t), xo(this);
|
|
3639
|
+
}
|
|
3640
|
+
m() {
|
|
3641
|
+
var e = new Fe();
|
|
3642
|
+
H(e, "image_in"), H(e, "norm_rect"), P(e, "hand_gestures"), P(e, "hand_landmarks"), P(e, "world_hand_landmarks"), P(e, "handedness");
|
|
3643
|
+
const t = new Oe();
|
|
3644
|
+
Ze(t, Bc, this.j);
|
|
3645
|
+
const r = new be();
|
|
3646
|
+
xe(r, 2, "mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"), U(r, "IMAGE:image_in"), U(r, "NORM_RECT:norm_rect"), T(r, "HAND_GESTURES:hand_gestures"), T(r, "LANDMARKS:hand_landmarks"), T(r, "WORLD_LANDMARKS:world_hand_landmarks"), T(r, "HANDEDNESS:handedness"), r.o(t), De(e, r), this.g.attachProtoVectorListener("hand_landmarks", (n, i) => {
|
|
3647
|
+
for (const s of n) {
|
|
3648
|
+
n = Dr(s);
|
|
3649
|
+
const o = [];
|
|
3650
|
+
for (const c of it(n, e2, 1)) o.push({ x: q(c, 1) ?? 0, y: q(c, 2) ?? 0, z: q(c, 3) ?? 0, visibility: q(c, 4) ?? 0 });
|
|
3651
|
+
this.landmarks.push(o);
|
|
3652
|
+
}
|
|
3653
|
+
g(this, i);
|
|
3654
|
+
}), this.g.attachEmptyPacketListener("hand_landmarks", (n) => {
|
|
3655
|
+
g(this, n);
|
|
3656
|
+
}), this.g.attachProtoVectorListener("world_hand_landmarks", (n, i) => {
|
|
3657
|
+
for (const s of n) {
|
|
3658
|
+
n = Gt(s);
|
|
3659
|
+
const o = [];
|
|
3660
|
+
for (const c of it(n, Qa, 1)) o.push({ x: q(c, 1) ?? 0, y: q(c, 2) ?? 0, z: q(c, 3) ?? 0, visibility: q(c, 4) ?? 0 });
|
|
3661
|
+
this.worldLandmarks.push(o);
|
|
3662
|
+
}
|
|
3663
|
+
g(this, i);
|
|
3664
|
+
}), this.g.attachEmptyPacketListener("world_hand_landmarks", (n) => {
|
|
3665
|
+
g(this, n);
|
|
3666
|
+
}), this.g.attachProtoVectorListener("hand_gestures", (n, i) => {
|
|
3667
|
+
this.gestures.push(...Lo(n, !1)), g(this, i);
|
|
3668
|
+
}), this.g.attachEmptyPacketListener("hand_gestures", (n) => {
|
|
3669
|
+
g(this, n);
|
|
3670
|
+
}), this.g.attachProtoVectorListener("handedness", (n, i) => {
|
|
3671
|
+
this.handedness.push(...Lo(n)), g(this, i);
|
|
3672
|
+
}), this.g.attachEmptyPacketListener("handedness", (n) => {
|
|
3673
|
+
g(this, n);
|
|
3674
|
+
}), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
3675
|
+
}
|
|
3676
|
+
};
|
|
3677
|
+
function Po(e) {
|
|
3678
|
+
return { landmarks: e.landmarks, worldLandmarks: e.worldLandmarks, handednesses: e.handedness, handedness: e.handedness };
|
|
3679
|
+
}
|
|
3680
|
+
we.prototype.recognizeForVideo = we.prototype.Ia, we.prototype.recognize = we.prototype.Ha, we.prototype.setOptions = we.prototype.o, we.createFromModelPath = function(e, t) {
|
|
3681
|
+
return x(we, e, { baseOptions: { modelAssetPath: t } });
|
|
3682
|
+
}, we.createFromModelBuffer = function(e, t) {
|
|
3683
|
+
return x(we, e, { baseOptions: { modelAssetBuffer: t } });
|
|
3684
|
+
}, we.createFromOptions = function(e, t) {
|
|
3685
|
+
return x(we, e, t);
|
|
3686
|
+
}, we.HAND_CONNECTIONS = ps;
|
|
3687
|
+
var _e = class extends Pe {
|
|
3688
|
+
constructor(e, t) {
|
|
3689
|
+
super(new He(e, t), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.handedness = [], w(e = this.h = new ts(), 0, 1, t = new K()), this.u = new es(), w(this.h, 0, 3, this.u), this.j = new c2(), w(this.h, 0, 2, this.j), st(this.j, 3, 1), _(this.j, 2, 0.5), _(this.u, 2, 0.5), _(this.h, 4, 0.5);
|
|
3690
|
+
}
|
|
3691
|
+
get baseOptions() {
|
|
3692
|
+
return L(this.h, K, 1);
|
|
3693
|
+
}
|
|
3694
|
+
set baseOptions(e) {
|
|
3695
|
+
w(this.h, 0, 1, e);
|
|
3696
|
+
}
|
|
3697
|
+
o(e) {
|
|
3698
|
+
return "numHands" in e && st(this.j, 3, e.numHands ?? 1), "minHandDetectionConfidence" in e && _(this.j, 2, e.minHandDetectionConfidence ?? 0.5), "minTrackingConfidence" in e && _(this.h, 4, e.minTrackingConfidence ?? 0.5), "minHandPresenceConfidence" in e && _(this.u, 2, e.minHandPresenceConfidence ?? 0.5), this.l(e);
|
|
3699
|
+
}
|
|
3700
|
+
F(e, t) {
|
|
3701
|
+
return this.landmarks = [], this.worldLandmarks = [], this.handedness = [], ze(this, e, t), Po(this);
|
|
3702
|
+
}
|
|
3703
|
+
G(e, t, r) {
|
|
3704
|
+
return this.landmarks = [], this.worldLandmarks = [], this.handedness = [], et(this, e, r, t), Po(this);
|
|
3705
|
+
}
|
|
3706
|
+
m() {
|
|
3707
|
+
var e = new Fe();
|
|
3708
|
+
H(e, "image_in"), H(e, "norm_rect"), P(e, "hand_landmarks"), P(e, "world_hand_landmarks"), P(e, "handedness");
|
|
3709
|
+
const t = new Oe();
|
|
3710
|
+
Ze(t, Uc, this.h);
|
|
3711
|
+
const r = new be();
|
|
3712
|
+
xe(r, 2, "mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"), U(r, "IMAGE:image_in"), U(r, "NORM_RECT:norm_rect"), T(r, "LANDMARKS:hand_landmarks"), T(r, "WORLD_LANDMARKS:world_hand_landmarks"), T(r, "HANDEDNESS:handedness"), r.o(t), De(e, r), this.g.attachProtoVectorListener("hand_landmarks", (n, i) => {
|
|
3713
|
+
for (const s of n) n = Dr(s), this.landmarks.push(Tn(n));
|
|
3714
|
+
g(this, i);
|
|
3715
|
+
}), this.g.attachEmptyPacketListener("hand_landmarks", (n) => {
|
|
3716
|
+
g(this, n);
|
|
3717
|
+
}), this.g.attachProtoVectorListener("world_hand_landmarks", (n, i) => {
|
|
3718
|
+
for (const s of n) n = Gt(s), this.worldLandmarks.push(Sr(n));
|
|
3719
|
+
g(this, i);
|
|
3720
|
+
}), this.g.attachEmptyPacketListener("world_hand_landmarks", (n) => {
|
|
3721
|
+
g(this, n);
|
|
3722
|
+
}), this.g.attachProtoVectorListener("handedness", (n, i) => {
|
|
3723
|
+
var s = this.handedness, o = s.push;
|
|
3724
|
+
const c = [];
|
|
3725
|
+
for (const u of n) {
|
|
3726
|
+
n = kn(u);
|
|
3727
|
+
const f = [];
|
|
3728
|
+
for (const l of n.g()) f.push({ score: q(l, 2) ?? 0, index: Ne(l, 1) ?? 0 ?? -1, categoryName: fe(B(l, 3)) ?? "" ?? "", displayName: fe(B(l, 4)) ?? "" ?? "" });
|
|
3729
|
+
c.push(f);
|
|
3730
|
+
}
|
|
3731
|
+
o.call(s, ...c), g(this, i);
|
|
3732
|
+
}), this.g.attachEmptyPacketListener("handedness", (n) => {
|
|
3733
|
+
g(this, n);
|
|
3734
|
+
}), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
3735
|
+
}
|
|
3736
|
+
};
|
|
3737
|
+
_e.prototype.detectForVideo = _e.prototype.G, _e.prototype.detect = _e.prototype.F, _e.prototype.setOptions = _e.prototype.o, _e.createFromModelPath = function(e, t) {
|
|
3738
|
+
return x(_e, e, { baseOptions: { modelAssetPath: t } });
|
|
3739
|
+
}, _e.createFromModelBuffer = function(e, t) {
|
|
3740
|
+
return x(_e, e, { baseOptions: { modelAssetBuffer: t } });
|
|
3741
|
+
}, _e.createFromOptions = function(e, t) {
|
|
3742
|
+
return x(_e, e, t);
|
|
3743
|
+
}, _e.HAND_CONNECTIONS = ps;
|
|
3744
|
+
var B2 = We([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]);
|
|
3745
|
+
function Oo(e) {
|
|
3746
|
+
e.h = { faceLandmarks: [], faceBlendshapes: [], poseLandmarks: [], poseWorldLandmarks: [], poseSegmentationMasks: [], leftHandLandmarks: [], leftHandWorldLandmarks: [], rightHandLandmarks: [], rightHandWorldLandmarks: [] };
|
|
3747
|
+
}
|
|
3748
|
+
function Fo(e) {
|
|
3749
|
+
try {
|
|
3750
|
+
if (!e.D) return e.h;
|
|
3751
|
+
e.D(e.h);
|
|
3752
|
+
} finally {
|
|
3753
|
+
Ln(e);
|
|
3754
|
+
}
|
|
3755
|
+
}
|
|
3756
|
+
function qr(e, t) {
|
|
3757
|
+
e = Dr(e), t.push(Tn(e));
|
|
3758
|
+
}
|
|
3759
|
+
var D = class extends Pe {
|
|
3760
|
+
constructor(e, t) {
|
|
3761
|
+
super(new He(e, t), "input_frames_image", null, !1), this.h = { faceLandmarks: [], faceBlendshapes: [], poseLandmarks: [], poseWorldLandmarks: [], poseSegmentationMasks: [], leftHandLandmarks: [], leftHandWorldLandmarks: [], rightHandLandmarks: [], rightHandWorldLandmarks: [] }, this.outputPoseSegmentationMasks = this.outputFaceBlendshapes = !1, w(e = this.j = new p2(), 0, 1, t = new K()), this.I = new es(), w(this.j, 0, 2, this.I), this.W = new Vc(), w(this.j, 0, 3, this.W), this.u = new Sn(), w(this.j, 0, 4, this.u), this.O = new s2(), w(this.j, 0, 5, this.O), this.A = new f2(), w(this.j, 0, 6, this.A), this.M = new d2(), w(this.j, 0, 7, this.M), _(this.u, 2, 0.5), _(this.u, 3, 0.3), _(this.O, 2, 0.5), _(this.A, 2, 0.5), _(this.A, 3, 0.3), _(this.M, 2, 0.5), _(this.I, 2, 0.5);
|
|
3762
|
+
}
|
|
3763
|
+
get baseOptions() {
|
|
3764
|
+
return L(this.j, K, 1);
|
|
3765
|
+
}
|
|
3766
|
+
set baseOptions(e) {
|
|
3767
|
+
w(this.j, 0, 1, e);
|
|
3768
|
+
}
|
|
3769
|
+
o(e) {
|
|
3770
|
+
return "minFaceDetectionConfidence" in e && _(this.u, 2, e.minFaceDetectionConfidence ?? 0.5), "minFaceSuppressionThreshold" in e && _(this.u, 3, e.minFaceSuppressionThreshold ?? 0.3), "minFacePresenceConfidence" in e && _(this.O, 2, e.minFacePresenceConfidence ?? 0.5), "outputFaceBlendshapes" in e && (this.outputFaceBlendshapes = !!e.outputFaceBlendshapes), "minPoseDetectionConfidence" in e && _(this.A, 2, e.minPoseDetectionConfidence ?? 0.5), "minPoseSuppressionThreshold" in e && _(this.A, 3, e.minPoseSuppressionThreshold ?? 0.3), "minPosePresenceConfidence" in e && _(this.M, 2, e.minPosePresenceConfidence ?? 0.5), "outputPoseSegmentationMasks" in e && (this.outputPoseSegmentationMasks = !!e.outputPoseSegmentationMasks), "minHandLandmarksConfidence" in e && _(this.I, 2, e.minHandLandmarksConfidence ?? 0.5), this.l(e);
|
|
3771
|
+
}
|
|
3772
|
+
F(e, t, r) {
|
|
3773
|
+
const n = typeof t != "function" ? t : {};
|
|
3774
|
+
return this.D = typeof t == "function" ? t : r, Oo(this), ze(this, e, n), Fo(this);
|
|
3775
|
+
}
|
|
3776
|
+
G(e, t, r, n) {
|
|
3777
|
+
const i = typeof r != "function" ? r : {};
|
|
3778
|
+
return this.D = typeof r == "function" ? r : n, Oo(this), et(this, e, i, t), Fo(this);
|
|
3779
|
+
}
|
|
3780
|
+
m() {
|
|
3781
|
+
var e = new Fe();
|
|
3782
|
+
H(e, "input_frames_image"), P(e, "pose_landmarks"), P(e, "pose_world_landmarks"), P(e, "face_landmarks"), P(e, "left_hand_landmarks"), P(e, "left_hand_world_landmarks"), P(e, "right_hand_landmarks"), P(e, "right_hand_world_landmarks");
|
|
3783
|
+
const t = new Oe(), r = new eo();
|
|
3784
|
+
xe(r, 1, "type.googleapis.com/mediapipe.tasks.vision.holistic_landmarker.proto.HolisticLandmarkerGraphOptions"), function(i, s) {
|
|
3785
|
+
if (s != null) if (Array.isArray(s)) F(i, 2, fn(s, 0, Or));
|
|
3786
|
+
else {
|
|
3787
|
+
if (!(typeof s == "string" || s instanceof qe || wi(s))) throw Error("invalid value in Any.value field: " + s + " expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");
|
|
3788
|
+
ht(i, 2, Ai(s, !1), Ot());
|
|
3789
|
+
}
|
|
3790
|
+
}(r, this.j.g());
|
|
3791
|
+
const n = new be();
|
|
3792
|
+
xe(n, 2, "mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"), Di(n, 8, eo, r), U(n, "IMAGE:input_frames_image"), T(n, "POSE_LANDMARKS:pose_landmarks"), T(n, "POSE_WORLD_LANDMARKS:pose_world_landmarks"), T(n, "FACE_LANDMARKS:face_landmarks"), T(n, "LEFT_HAND_LANDMARKS:left_hand_landmarks"), T(n, "LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"), T(n, "RIGHT_HAND_LANDMARKS:right_hand_landmarks"), T(n, "RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"), n.o(t), De(e, n), xn(this, e), this.g.attachProtoListener("pose_landmarks", (i, s) => {
|
|
3793
|
+
qr(i, this.h.poseLandmarks), g(this, s);
|
|
3794
|
+
}), this.g.attachEmptyPacketListener("pose_landmarks", (i) => {
|
|
3795
|
+
g(this, i);
|
|
3796
|
+
}), this.g.attachProtoListener("pose_world_landmarks", (i, s) => {
|
|
3797
|
+
var o = this.h.poseWorldLandmarks;
|
|
3798
|
+
i = Gt(i), o.push(Sr(i)), g(this, s);
|
|
3799
|
+
}), this.g.attachEmptyPacketListener("pose_world_landmarks", (i) => {
|
|
3800
|
+
g(this, i);
|
|
3801
|
+
}), this.outputPoseSegmentationMasks && (T(n, "POSE_SEGMENTATION_MASK:pose_segmentation_mask"), Zt(this, "pose_segmentation_mask"), this.g.Z("pose_segmentation_mask", (i, s) => {
|
|
3802
|
+
this.h.poseSegmentationMasks = [er(this, i, !0, !this.D)], g(this, s);
|
|
3803
|
+
}), this.g.attachEmptyPacketListener("pose_segmentation_mask", (i) => {
|
|
3804
|
+
this.h.poseSegmentationMasks = [], g(this, i);
|
|
3805
|
+
})), this.g.attachProtoListener("face_landmarks", (i, s) => {
|
|
3806
|
+
qr(i, this.h.faceLandmarks), g(this, s);
|
|
3807
|
+
}), this.g.attachEmptyPacketListener("face_landmarks", (i) => {
|
|
3808
|
+
g(this, i);
|
|
3809
|
+
}), this.outputFaceBlendshapes && (P(e, "extra_blendshapes"), T(n, "FACE_BLENDSHAPES:extra_blendshapes"), this.g.attachProtoListener("extra_blendshapes", (i, s) => {
|
|
3810
|
+
var o = this.h.faceBlendshapes;
|
|
3811
|
+
this.outputFaceBlendshapes && (i = kn(i), o.push(ss(i.g() ?? []))), g(this, s);
|
|
3812
|
+
}), this.g.attachEmptyPacketListener("extra_blendshapes", (i) => {
|
|
3813
|
+
g(this, i);
|
|
3814
|
+
})), this.g.attachProtoListener("left_hand_landmarks", (i, s) => {
|
|
3815
|
+
qr(i, this.h.leftHandLandmarks), g(this, s);
|
|
3816
|
+
}), this.g.attachEmptyPacketListener("left_hand_landmarks", (i) => {
|
|
3817
|
+
g(this, i);
|
|
3818
|
+
}), this.g.attachProtoListener("left_hand_world_landmarks", (i, s) => {
|
|
3819
|
+
var o = this.h.leftHandWorldLandmarks;
|
|
3820
|
+
i = Gt(i), o.push(Sr(i)), g(this, s);
|
|
3821
|
+
}), this.g.attachEmptyPacketListener("left_hand_world_landmarks", (i) => {
|
|
3822
|
+
g(this, i);
|
|
3823
|
+
}), this.g.attachProtoListener("right_hand_landmarks", (i, s) => {
|
|
3824
|
+
qr(i, this.h.rightHandLandmarks), g(this, s);
|
|
3825
|
+
}), this.g.attachEmptyPacketListener("right_hand_landmarks", (i) => {
|
|
3826
|
+
g(this, i);
|
|
3827
|
+
}), this.g.attachProtoListener("right_hand_world_landmarks", (i, s) => {
|
|
3828
|
+
var o = this.h.rightHandWorldLandmarks;
|
|
3829
|
+
i = Gt(i), o.push(Sr(i)), g(this, s);
|
|
3830
|
+
}), this.g.attachEmptyPacketListener("right_hand_world_landmarks", (i) => {
|
|
3831
|
+
g(this, i);
|
|
3832
|
+
}), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
3833
|
+
}
|
|
3834
|
+
};
|
|
3835
|
+
D.prototype.detectForVideo = D.prototype.G, D.prototype.detect = D.prototype.F, D.prototype.setOptions = D.prototype.o, D.createFromModelPath = function(e, t) {
|
|
3836
|
+
return x(D, e, { baseOptions: { modelAssetPath: t } });
|
|
3837
|
+
}, D.createFromModelBuffer = function(e, t) {
|
|
3838
|
+
return x(D, e, { baseOptions: { modelAssetBuffer: t } });
|
|
3839
|
+
}, D.createFromOptions = function(e, t) {
|
|
3840
|
+
return x(D, e, t);
|
|
3841
|
+
}, D.HAND_CONNECTIONS = ps, D.POSE_CONNECTIONS = B2, D.FACE_LANDMARKS_LIPS = cs, D.FACE_LANDMARKS_LEFT_EYE = us, D.FACE_LANDMARKS_LEFT_EYEBROW = ls, D.FACE_LANDMARKS_LEFT_IRIS = I2, D.FACE_LANDMARKS_RIGHT_EYE = hs, D.FACE_LANDMARKS_RIGHT_EYEBROW = fs, D.FACE_LANDMARKS_RIGHT_IRIS = N2, D.FACE_LANDMARKS_FACE_OVAL = ds, D.FACE_LANDMARKS_CONTOURS = j2, D.FACE_LANDMARKS_TESSELATION = D2;
|
|
3842
|
+
var Ce = class extends Pe {
|
|
3843
|
+
constructor(e, t) {
|
|
3844
|
+
super(new He(e, t), "input_image", "norm_rect", !0), this.j = { classifications: [] }, w(e = this.h = new g2(), 0, 1, t = new K());
|
|
3845
|
+
}
|
|
3846
|
+
get baseOptions() {
|
|
3847
|
+
return L(this.h, K, 1);
|
|
3848
|
+
}
|
|
3849
|
+
set baseOptions(e) {
|
|
3850
|
+
w(this.h, 0, 1, e);
|
|
3851
|
+
}
|
|
3852
|
+
o(e) {
|
|
3853
|
+
return w(this.h, 0, 2, fi(e, L(this.h, Zi, 2))), this.l(e);
|
|
3854
|
+
}
|
|
3855
|
+
sa(e, t) {
|
|
3856
|
+
return this.j = { classifications: [] }, ze(this, e, t), this.j;
|
|
3857
|
+
}
|
|
3858
|
+
ta(e, t, r) {
|
|
3859
|
+
return this.j = { classifications: [] }, et(this, e, r, t), this.j;
|
|
3860
|
+
}
|
|
3861
|
+
m() {
|
|
3862
|
+
var e = new Fe();
|
|
3863
|
+
H(e, "input_image"), H(e, "norm_rect"), P(e, "classifications");
|
|
3864
|
+
const t = new Oe();
|
|
3865
|
+
Ze(t, Gc, this.h);
|
|
3866
|
+
const r = new be();
|
|
3867
|
+
xe(r, 2, "mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"), U(r, "IMAGE:input_image"), U(r, "NORM_RECT:norm_rect"), T(r, "CLASSIFICATIONS:classifications"), r.o(t), De(e, r), this.g.attachProtoListener("classifications", (n, i) => {
|
|
3868
|
+
this.j = $c(Oc(n)), g(this, i);
|
|
3869
|
+
}), this.g.attachEmptyPacketListener("classifications", (n) => {
|
|
3870
|
+
g(this, n);
|
|
3871
|
+
}), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
3872
|
+
}
|
|
3873
|
+
};
|
|
3874
|
+
Ce.prototype.classifyForVideo = Ce.prototype.ta, Ce.prototype.classify = Ce.prototype.sa, Ce.prototype.setOptions = Ce.prototype.o, Ce.createFromModelPath = function(e, t) {
|
|
3875
|
+
return x(Ce, e, { baseOptions: { modelAssetPath: t } });
|
|
3876
|
+
}, Ce.createFromModelBuffer = function(e, t) {
|
|
3877
|
+
return x(Ce, e, { baseOptions: { modelAssetBuffer: t } });
|
|
3878
|
+
}, Ce.createFromOptions = function(e, t) {
|
|
3879
|
+
return x(Ce, e, t);
|
|
3880
|
+
};
|
|
3881
|
+
var Ee = class extends Pe {
|
|
3882
|
+
constructor(e, t) {
|
|
3883
|
+
super(new He(e, t), "image_in", "norm_rect", !0), this.h = new m2(), this.embeddings = { embeddings: [] }, w(e = this.h, 0, 1, t = new K());
|
|
3884
|
+
}
|
|
3885
|
+
get baseOptions() {
|
|
3886
|
+
return L(this.h, K, 1);
|
|
3887
|
+
}
|
|
3888
|
+
set baseOptions(e) {
|
|
3889
|
+
w(this.h, 0, 1, e);
|
|
3890
|
+
}
|
|
3891
|
+
o(e) {
|
|
3892
|
+
var t = this.h, r = L(this.h, uo, 2);
|
|
3893
|
+
return r = r ? r.clone() : new uo(), e.l2Normalize !== void 0 ? F(r, 1, Pr(e.l2Normalize)) : "l2Normalize" in e && F(r, 1), e.quantize !== void 0 ? F(r, 2, Pr(e.quantize)) : "quantize" in e && F(r, 2), w(t, 0, 2, r), this.l(e);
|
|
3894
|
+
}
|
|
3895
|
+
za(e, t) {
|
|
3896
|
+
return ze(this, e, t), this.embeddings;
|
|
3897
|
+
}
|
|
3898
|
+
Aa(e, t, r) {
|
|
3899
|
+
return et(this, e, r, t), this.embeddings;
|
|
3900
|
+
}
|
|
3901
|
+
m() {
|
|
3902
|
+
var e = new Fe();
|
|
3903
|
+
H(e, "image_in"), H(e, "norm_rect"), P(e, "embeddings_out");
|
|
3904
|
+
const t = new Oe();
|
|
3905
|
+
Ze(t, Wc, this.h);
|
|
3906
|
+
const r = new be();
|
|
3907
|
+
xe(r, 2, "mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"), U(r, "IMAGE:image_in"), U(r, "NORM_RECT:norm_rect"), T(r, "EMBEDDINGS:embeddings_out"), r.o(t), De(e, r), this.g.attachProtoListener("embeddings_out", (n, i) => {
|
|
3908
|
+
n = Mc(n), this.embeddings = function(s) {
|
|
3909
|
+
return { embeddings: it(s, Rc, 1).map((o) => {
|
|
3910
|
+
var f, l;
|
|
3911
|
+
const c = { headIndex: Ne(o, 3) ?? 0 ?? -1, headName: fe(B(o, 4)) ?? "" ?? "" };
|
|
3912
|
+
var u = o.v;
|
|
3913
|
+
return fa(u, 0 | u[m], co, Kn(o, 1)) !== void 0 ? (o = kt(o = L(o, co, Kn(o, 1), void 0), 1, $e, At()), c.floatEmbedding = o.slice()) : (u = new Uint8Array(0), c.quantizedEmbedding = ((l = (f = L(o, Fc, Kn(o, 2), void 0)) == null ? void 0 : f.na()) == null ? void 0 : l.h()) ?? u), c;
|
|
3914
|
+
}), timestampMs: A2(ga(s)) };
|
|
3915
|
+
}(n), g(this, i);
|
|
3916
|
+
}), this.g.attachEmptyPacketListener("embeddings_out", (n) => {
|
|
3917
|
+
g(this, n);
|
|
3918
|
+
}), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
3919
|
+
}
|
|
3920
|
+
};
|
|
3921
|
+
Ee.cosineSimilarity = function(e, t) {
|
|
3922
|
+
if (e.floatEmbedding && t.floatEmbedding) e = mo(e.floatEmbedding, t.floatEmbedding);
|
|
3923
|
+
else {
|
|
3924
|
+
if (!e.quantizedEmbedding || !t.quantizedEmbedding) throw Error("Cannot compute cosine similarity between quantized and float embeddings.");
|
|
3925
|
+
e = mo(go(e.quantizedEmbedding), go(t.quantizedEmbedding));
|
|
3926
|
+
}
|
|
3927
|
+
return e;
|
|
3928
|
+
}, Ee.prototype.embedForVideo = Ee.prototype.Aa, Ee.prototype.embed = Ee.prototype.za, Ee.prototype.setOptions = Ee.prototype.o, Ee.createFromModelPath = function(e, t) {
|
|
3929
|
+
return x(Ee, e, { baseOptions: { modelAssetPath: t } });
|
|
3930
|
+
}, Ee.createFromModelBuffer = function(e, t) {
|
|
3931
|
+
return x(Ee, e, { baseOptions: { modelAssetBuffer: t } });
|
|
3932
|
+
}, Ee.createFromOptions = function(e, t) {
|
|
3933
|
+
return x(Ee, e, t);
|
|
3934
|
+
};
|
|
3935
|
+
var mi = class {
|
|
3936
|
+
constructor(e, t, r) {
|
|
3937
|
+
this.confidenceMasks = e, this.categoryMask = t, this.qualityScores = r;
|
|
3938
|
+
}
|
|
3939
|
+
close() {
|
|
3940
|
+
var e, t;
|
|
3941
|
+
(e = this.confidenceMasks) == null || e.forEach((r) => {
|
|
3942
|
+
r.close();
|
|
3943
|
+
}), (t = this.categoryMask) == null || t.close();
|
|
3944
|
+
}
|
|
3945
|
+
};
|
|
3946
|
+
function tu(e) {
|
|
3947
|
+
var r, n;
|
|
3948
|
+
const t = function(i) {
|
|
3949
|
+
return it(i, be, 1);
|
|
3950
|
+
}(e.ca()).filter((i) => (fe(B(i, 1)) ?? "").includes("mediapipe.tasks.TensorsToSegmentationCalculator"));
|
|
3951
|
+
if (e.u = [], t.length > 1) throw Error("The graph has more than one mediapipe.tasks.TensorsToSegmentationCalculator.");
|
|
3952
|
+
t.length === 1 && (((n = (r = L(t[0], Oe, 7)) == null ? void 0 : r.j()) == null ? void 0 : n.g()) ?? /* @__PURE__ */ new Map()).forEach((i, s) => {
|
|
3953
|
+
e.u[Number(s)] = fe(B(i, 1)) ?? "";
|
|
3954
|
+
});
|
|
3955
|
+
}
|
|
3956
|
+
function Ro(e) {
|
|
3957
|
+
e.categoryMask = void 0, e.confidenceMasks = void 0, e.qualityScores = void 0;
|
|
3958
|
+
}
|
|
3959
|
+
function Mo(e) {
|
|
3960
|
+
try {
|
|
3961
|
+
const t = new mi(e.confidenceMasks, e.categoryMask, e.qualityScores);
|
|
3962
|
+
if (!e.j) return t;
|
|
3963
|
+
e.j(t);
|
|
3964
|
+
} finally {
|
|
3965
|
+
Ln(e);
|
|
3966
|
+
}
|
|
3967
|
+
}
|
|
3968
|
+
mi.prototype.close = mi.prototype.close;
|
|
3969
|
+
var ve = class extends Pe {
|
|
3970
|
+
constructor(e, t) {
|
|
3971
|
+
super(new He(e, t), "image_in", "norm_rect", !1), this.u = [], this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new is(), this.A = new y2(), w(this.h, 0, 3, this.A), w(e = this.h, 0, 1, t = new K());
|
|
3972
|
+
}
|
|
3973
|
+
get baseOptions() {
|
|
3974
|
+
return L(this.h, K, 1);
|
|
3975
|
+
}
|
|
3976
|
+
set baseOptions(e) {
|
|
3977
|
+
w(this.h, 0, 1, e);
|
|
3978
|
+
}
|
|
3979
|
+
o(e) {
|
|
3980
|
+
return e.displayNamesLocale !== void 0 ? F(this.h, 2, Ir(e.displayNamesLocale)) : "displayNamesLocale" in e && F(this.h, 2), "outputCategoryMask" in e && (this.outputCategoryMask = e.outputCategoryMask ?? !1), "outputConfidenceMasks" in e && (this.outputConfidenceMasks = e.outputConfidenceMasks ?? !0), super.l(e);
|
|
3981
|
+
}
|
|
3982
|
+
L() {
|
|
3983
|
+
tu(this);
|
|
3984
|
+
}
|
|
3985
|
+
segment(e, t, r) {
|
|
3986
|
+
const n = typeof t != "function" ? t : {};
|
|
3987
|
+
return this.j = typeof t == "function" ? t : r, Ro(this), ze(this, e, n), Mo(this);
|
|
3988
|
+
}
|
|
3989
|
+
La(e, t, r, n) {
|
|
3990
|
+
const i = typeof r != "function" ? r : {};
|
|
3991
|
+
return this.j = typeof r == "function" ? r : n, Ro(this), et(this, e, i, t), Mo(this);
|
|
3992
|
+
}
|
|
3993
|
+
Da() {
|
|
3994
|
+
return this.u;
|
|
3995
|
+
}
|
|
3996
|
+
m() {
|
|
3997
|
+
var e = new Fe();
|
|
3998
|
+
H(e, "image_in"), H(e, "norm_rect");
|
|
3999
|
+
const t = new Oe();
|
|
4000
|
+
Ze(t, _2, this.h);
|
|
4001
|
+
const r = new be();
|
|
4002
|
+
xe(r, 2, "mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"), U(r, "IMAGE:image_in"), U(r, "NORM_RECT:norm_rect"), r.o(t), De(e, r), xn(this, e), this.outputConfidenceMasks && (P(e, "confidence_masks"), T(r, "CONFIDENCE_MASKS:confidence_masks"), Zt(this, "confidence_masks"), this.g.aa("confidence_masks", (n, i) => {
|
|
4003
|
+
this.confidenceMasks = n.map((s) => er(this, s, !0, !this.j)), g(this, i);
|
|
4004
|
+
}), this.g.attachEmptyPacketListener("confidence_masks", (n) => {
|
|
4005
|
+
this.confidenceMasks = [], g(this, n);
|
|
4006
|
+
})), this.outputCategoryMask && (P(e, "category_mask"), T(r, "CATEGORY_MASK:category_mask"), Zt(this, "category_mask"), this.g.Z("category_mask", (n, i) => {
|
|
4007
|
+
this.categoryMask = er(this, n, !1, !this.j), g(this, i);
|
|
4008
|
+
}), this.g.attachEmptyPacketListener("category_mask", (n) => {
|
|
4009
|
+
this.categoryMask = void 0, g(this, n);
|
|
4010
|
+
})), P(e, "quality_scores"), T(r, "QUALITY_SCORES:quality_scores"), this.g.attachFloatVectorListener("quality_scores", (n, i) => {
|
|
4011
|
+
this.qualityScores = n, g(this, i);
|
|
4012
|
+
}), this.g.attachEmptyPacketListener("quality_scores", (n) => {
|
|
4013
|
+
this.categoryMask = void 0, g(this, n);
|
|
4014
|
+
}), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
4015
|
+
}
|
|
4016
|
+
};
|
|
4017
|
+
ve.prototype.getLabels = ve.prototype.Da, ve.prototype.segmentForVideo = ve.prototype.La, ve.prototype.segment = ve.prototype.segment, ve.prototype.setOptions = ve.prototype.o, ve.createFromModelPath = function(e, t) {
|
|
4018
|
+
return x(ve, e, { baseOptions: { modelAssetPath: t } });
|
|
4019
|
+
}, ve.createFromModelBuffer = function(e, t) {
|
|
4020
|
+
return x(ve, e, { baseOptions: { modelAssetBuffer: t } });
|
|
4021
|
+
}, ve.createFromOptions = function(e, t) {
|
|
4022
|
+
return x(ve, e, t);
|
|
4023
|
+
};
|
|
4024
|
+
var yi = class {
|
|
4025
|
+
constructor(e, t, r) {
|
|
4026
|
+
this.confidenceMasks = e, this.categoryMask = t, this.qualityScores = r;
|
|
4027
|
+
}
|
|
4028
|
+
close() {
|
|
4029
|
+
var e, t;
|
|
4030
|
+
(e = this.confidenceMasks) == null || e.forEach((r) => {
|
|
4031
|
+
r.close();
|
|
4032
|
+
}), (t = this.categoryMask) == null || t.close();
|
|
4033
|
+
}
|
|
4034
|
+
};
|
|
4035
|
+
yi.prototype.close = yi.prototype.close;
|
|
4036
|
+
var Ye = class extends Pe {
|
|
4037
|
+
constructor(e, t) {
|
|
4038
|
+
super(new He(e, t), "image_in", "norm_rect_in", !1), this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new is(), this.u = new y2(), w(this.h, 0, 3, this.u), w(e = this.h, 0, 1, t = new K());
|
|
4039
|
+
}
|
|
4040
|
+
get baseOptions() {
|
|
4041
|
+
return L(this.h, K, 1);
|
|
4042
|
+
}
|
|
4043
|
+
set baseOptions(e) {
|
|
4044
|
+
w(this.h, 0, 1, e);
|
|
4045
|
+
}
|
|
4046
|
+
o(e) {
|
|
4047
|
+
return "outputCategoryMask" in e && (this.outputCategoryMask = e.outputCategoryMask ?? !1), "outputConfidenceMasks" in e && (this.outputConfidenceMasks = e.outputConfidenceMasks ?? !0), super.l(e);
|
|
4048
|
+
}
|
|
4049
|
+
segment(e, t, r, n) {
|
|
4050
|
+
const i = typeof r != "function" ? r : {};
|
|
4051
|
+
if (this.j = typeof r == "function" ? r : n, this.qualityScores = this.categoryMask = this.confidenceMasks = void 0, r = this.C + 1, n = new b2(), t.keypoint && t.scribble) throw Error("Cannot provide both keypoint and scribble.");
|
|
4052
|
+
if (t.keypoint) {
|
|
4053
|
+
var s = new Xn();
|
|
4054
|
+
ht(s, 3, Pr(!0), !1), ht(s, 1, Er(t.keypoint.x), 0), ht(s, 2, Er(t.keypoint.y), 0), Ar(n, 1, hi, s);
|
|
4055
|
+
} else {
|
|
4056
|
+
if (!t.scribble) throw Error("Must provide either a keypoint or a scribble.");
|
|
4057
|
+
{
|
|
4058
|
+
const c = new zc();
|
|
4059
|
+
for (s of t.scribble) ht(t = new Xn(), 3, Pr(!0), !1), ht(t, 1, Er(s.x), 0), ht(t, 2, Er(s.y), 0), Di(c, 1, Xn, t);
|
|
4060
|
+
Ar(n, 2, hi, c);
|
|
4061
|
+
}
|
|
4062
|
+
}
|
|
4063
|
+
this.g.addProtoToStream(n.g(), "mediapipe.tasks.vision.interactive_segmenter.proto.RegionOfInterest", "roi_in", r), ze(this, e, i);
|
|
4064
|
+
e: {
|
|
4065
|
+
try {
|
|
4066
|
+
const c = new yi(this.confidenceMasks, this.categoryMask, this.qualityScores);
|
|
4067
|
+
if (!this.j) {
|
|
4068
|
+
var o = c;
|
|
4069
|
+
break e;
|
|
4070
|
+
}
|
|
4071
|
+
this.j(c);
|
|
4072
|
+
} finally {
|
|
4073
|
+
Ln(this);
|
|
4074
|
+
}
|
|
4075
|
+
o = void 0;
|
|
4076
|
+
}
|
|
4077
|
+
return o;
|
|
4078
|
+
}
|
|
4079
|
+
m() {
|
|
4080
|
+
var e = new Fe();
|
|
4081
|
+
H(e, "image_in"), H(e, "roi_in"), H(e, "norm_rect_in");
|
|
4082
|
+
const t = new Oe();
|
|
4083
|
+
Ze(t, _2, this.h);
|
|
4084
|
+
const r = new be();
|
|
4085
|
+
xe(r, 2, "mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraphV2"), U(r, "IMAGE:image_in"), U(r, "ROI:roi_in"), U(r, "NORM_RECT:norm_rect_in"), r.o(t), De(e, r), xn(this, e), this.outputConfidenceMasks && (P(e, "confidence_masks"), T(r, "CONFIDENCE_MASKS:confidence_masks"), Zt(this, "confidence_masks"), this.g.aa("confidence_masks", (n, i) => {
|
|
4086
|
+
this.confidenceMasks = n.map((s) => er(this, s, !0, !this.j)), g(this, i);
|
|
4087
|
+
}), this.g.attachEmptyPacketListener("confidence_masks", (n) => {
|
|
4088
|
+
this.confidenceMasks = [], g(this, n);
|
|
4089
|
+
})), this.outputCategoryMask && (P(e, "category_mask"), T(r, "CATEGORY_MASK:category_mask"), Zt(this, "category_mask"), this.g.Z("category_mask", (n, i) => {
|
|
4090
|
+
this.categoryMask = er(this, n, !1, !this.j), g(this, i);
|
|
4091
|
+
}), this.g.attachEmptyPacketListener("category_mask", (n) => {
|
|
4092
|
+
this.categoryMask = void 0, g(this, n);
|
|
4093
|
+
})), P(e, "quality_scores"), T(r, "QUALITY_SCORES:quality_scores"), this.g.attachFloatVectorListener("quality_scores", (n, i) => {
|
|
4094
|
+
this.qualityScores = n, g(this, i);
|
|
4095
|
+
}), this.g.attachEmptyPacketListener("quality_scores", (n) => {
|
|
4096
|
+
this.categoryMask = void 0, g(this, n);
|
|
4097
|
+
}), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
4098
|
+
}
|
|
4099
|
+
};
|
|
4100
|
+
Ye.prototype.segment = Ye.prototype.segment, Ye.prototype.setOptions = Ye.prototype.o, Ye.createFromModelPath = function(e, t) {
|
|
4101
|
+
return x(Ye, e, { baseOptions: { modelAssetPath: t } });
|
|
4102
|
+
}, Ye.createFromModelBuffer = function(e, t) {
|
|
4103
|
+
return x(Ye, e, { baseOptions: { modelAssetBuffer: t } });
|
|
4104
|
+
}, Ye.createFromOptions = function(e, t) {
|
|
4105
|
+
return x(Ye, e, t);
|
|
4106
|
+
};
|
|
4107
|
+
var Ie = class extends Pe {
|
|
4108
|
+
constructor(e, t) {
|
|
4109
|
+
super(new He(e, t), "input_frame_gpu", "norm_rect", !1), this.j = { detections: [] }, w(e = this.h = new w2(), 0, 1, t = new K());
|
|
4110
|
+
}
|
|
4111
|
+
get baseOptions() {
|
|
4112
|
+
return L(this.h, K, 1);
|
|
4113
|
+
}
|
|
4114
|
+
set baseOptions(e) {
|
|
4115
|
+
w(this.h, 0, 1, e);
|
|
4116
|
+
}
|
|
4117
|
+
o(e) {
|
|
4118
|
+
return e.displayNamesLocale !== void 0 ? F(this.h, 2, Ir(e.displayNamesLocale)) : "displayNamesLocale" in e && F(this.h, 2), e.maxResults !== void 0 ? st(this.h, 3, e.maxResults) : "maxResults" in e && F(this.h, 3), e.scoreThreshold !== void 0 ? _(this.h, 4, e.scoreThreshold) : "scoreThreshold" in e && F(this.h, 4), e.categoryAllowlist !== void 0 ? en(this.h, 5, e.categoryAllowlist) : "categoryAllowlist" in e && F(this.h, 5), e.categoryDenylist !== void 0 ? en(this.h, 6, e.categoryDenylist) : "categoryDenylist" in e && F(this.h, 6), this.l(e);
|
|
4119
|
+
}
|
|
4120
|
+
F(e, t) {
|
|
4121
|
+
return this.j = { detections: [] }, ze(this, e, t), this.j;
|
|
4122
|
+
}
|
|
4123
|
+
G(e, t, r) {
|
|
4124
|
+
return this.j = { detections: [] }, et(this, e, r, t), this.j;
|
|
4125
|
+
}
|
|
4126
|
+
m() {
|
|
4127
|
+
var e = new Fe();
|
|
4128
|
+
H(e, "input_frame_gpu"), H(e, "norm_rect"), P(e, "detections");
|
|
4129
|
+
const t = new Oe();
|
|
4130
|
+
Ze(t, Kc, this.h);
|
|
4131
|
+
const r = new be();
|
|
4132
|
+
xe(r, 2, "mediapipe.tasks.vision.ObjectDetectorGraph"), U(r, "IMAGE:input_frame_gpu"), U(r, "NORM_RECT:norm_rect"), T(r, "DETECTIONS:detections"), r.o(t), De(e, r), this.g.attachProtoVectorListener("detections", (n, i) => {
|
|
4133
|
+
for (const s of n) n = Za(s), this.j.detections.push(k2(n));
|
|
4134
|
+
g(this, i);
|
|
4135
|
+
}), this.g.attachEmptyPacketListener("detections", (n) => {
|
|
4136
|
+
g(this, n);
|
|
4137
|
+
}), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
4138
|
+
}
|
|
4139
|
+
};
|
|
4140
|
+
Ie.prototype.detectForVideo = Ie.prototype.G, Ie.prototype.detect = Ie.prototype.F, Ie.prototype.setOptions = Ie.prototype.o, Ie.createFromModelPath = async function(e, t) {
|
|
4141
|
+
return x(Ie, e, { baseOptions: { modelAssetPath: t } });
|
|
4142
|
+
}, Ie.createFromModelBuffer = function(e, t) {
|
|
4143
|
+
return x(Ie, e, { baseOptions: { modelAssetBuffer: t } });
|
|
4144
|
+
}, Ie.createFromOptions = function(e, t) {
|
|
4145
|
+
return x(Ie, e, t);
|
|
4146
|
+
};
|
|
4147
|
+
var vi = class {
|
|
4148
|
+
constructor(e, t, r) {
|
|
4149
|
+
this.landmarks = e, this.worldLandmarks = t, this.segmentationMasks = r;
|
|
4150
|
+
}
|
|
4151
|
+
close() {
|
|
4152
|
+
var e;
|
|
4153
|
+
(e = this.segmentationMasks) == null || e.forEach((t) => {
|
|
4154
|
+
t.close();
|
|
4155
|
+
});
|
|
4156
|
+
}
|
|
4157
|
+
};
|
|
4158
|
+
function Co(e) {
|
|
4159
|
+
e.landmarks = [], e.worldLandmarks = [], e.segmentationMasks = void 0;
|
|
4160
|
+
}
|
|
4161
|
+
function Io(e) {
|
|
4162
|
+
try {
|
|
4163
|
+
const t = new vi(e.landmarks, e.worldLandmarks, e.segmentationMasks);
|
|
4164
|
+
if (!e.u) return t;
|
|
4165
|
+
e.u(t);
|
|
4166
|
+
} finally {
|
|
4167
|
+
Ln(e);
|
|
4168
|
+
}
|
|
4169
|
+
}
|
|
4170
|
+
vi.prototype.close = vi.prototype.close;
|
|
4171
|
+
var Ae = class extends Pe {
|
|
4172
|
+
constructor(e, t) {
|
|
4173
|
+
super(new He(e, t), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.outputSegmentationMasks = !1, w(e = this.h = new E2(), 0, 1, t = new K()), this.A = new d2(), w(this.h, 0, 3, this.A), this.j = new f2(), w(this.h, 0, 2, this.j), st(this.j, 4, 1), _(this.j, 2, 0.5), _(this.A, 2, 0.5), _(this.h, 4, 0.5);
|
|
4174
|
+
}
|
|
4175
|
+
get baseOptions() {
|
|
4176
|
+
return L(this.h, K, 1);
|
|
4177
|
+
}
|
|
4178
|
+
set baseOptions(e) {
|
|
4179
|
+
w(this.h, 0, 1, e);
|
|
4180
|
+
}
|
|
4181
|
+
o(e) {
|
|
4182
|
+
return "numPoses" in e && st(this.j, 4, e.numPoses ?? 1), "minPoseDetectionConfidence" in e && _(this.j, 2, e.minPoseDetectionConfidence ?? 0.5), "minTrackingConfidence" in e && _(this.h, 4, e.minTrackingConfidence ?? 0.5), "minPosePresenceConfidence" in e && _(this.A, 2, e.minPosePresenceConfidence ?? 0.5), "outputSegmentationMasks" in e && (this.outputSegmentationMasks = e.outputSegmentationMasks ?? !1), this.l(e);
|
|
4183
|
+
}
|
|
4184
|
+
F(e, t, r) {
|
|
4185
|
+
const n = typeof t != "function" ? t : {};
|
|
4186
|
+
return this.u = typeof t == "function" ? t : r, Co(this), ze(this, e, n), Io(this);
|
|
4187
|
+
}
|
|
4188
|
+
G(e, t, r, n) {
|
|
4189
|
+
const i = typeof r != "function" ? r : {};
|
|
4190
|
+
return this.u = typeof r == "function" ? r : n, Co(this), et(this, e, i, t), Io(this);
|
|
4191
|
+
}
|
|
4192
|
+
m() {
|
|
4193
|
+
var e = new Fe();
|
|
4194
|
+
H(e, "image_in"), H(e, "norm_rect"), P(e, "normalized_landmarks"), P(e, "world_landmarks"), P(e, "segmentation_masks");
|
|
4195
|
+
const t = new Oe();
|
|
4196
|
+
Ze(t, Yc, this.h);
|
|
4197
|
+
const r = new be();
|
|
4198
|
+
xe(r, 2, "mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"), U(r, "IMAGE:image_in"), U(r, "NORM_RECT:norm_rect"), T(r, "NORM_LANDMARKS:normalized_landmarks"), T(r, "WORLD_LANDMARKS:world_landmarks"), r.o(t), De(e, r), xn(this, e), this.g.attachProtoVectorListener("normalized_landmarks", (n, i) => {
|
|
4199
|
+
this.landmarks = [];
|
|
4200
|
+
for (const s of n) n = Dr(s), this.landmarks.push(Tn(n));
|
|
4201
|
+
g(this, i);
|
|
4202
|
+
}), this.g.attachEmptyPacketListener("normalized_landmarks", (n) => {
|
|
4203
|
+
this.landmarks = [], g(this, n);
|
|
4204
|
+
}), this.g.attachProtoVectorListener("world_landmarks", (n, i) => {
|
|
4205
|
+
this.worldLandmarks = [];
|
|
4206
|
+
for (const s of n) n = Gt(s), this.worldLandmarks.push(Sr(n));
|
|
4207
|
+
g(this, i);
|
|
4208
|
+
}), this.g.attachEmptyPacketListener("world_landmarks", (n) => {
|
|
4209
|
+
this.worldLandmarks = [], g(this, n);
|
|
4210
|
+
}), this.outputSegmentationMasks && (T(r, "SEGMENTATION_MASK:segmentation_masks"), Zt(this, "segmentation_masks"), this.g.aa("segmentation_masks", (n, i) => {
|
|
4211
|
+
this.segmentationMasks = n.map((s) => er(this, s, !0, !this.u)), g(this, i);
|
|
4212
|
+
}), this.g.attachEmptyPacketListener("segmentation_masks", (n) => {
|
|
4213
|
+
this.segmentationMasks = [], g(this, n);
|
|
4214
|
+
})), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
4215
|
+
}
|
|
4216
|
+
};
|
|
4217
|
+
Ae.prototype.detectForVideo = Ae.prototype.G, Ae.prototype.detect = Ae.prototype.F, Ae.prototype.setOptions = Ae.prototype.o, Ae.createFromModelPath = function(e, t) {
|
|
4218
|
+
return x(Ae, e, { baseOptions: { modelAssetPath: t } });
|
|
4219
|
+
}, Ae.createFromModelBuffer = function(e, t) {
|
|
4220
|
+
return x(Ae, e, { baseOptions: { modelAssetBuffer: t } });
|
|
4221
|
+
}, Ae.createFromOptions = function(e, t) {
|
|
4222
|
+
return x(Ae, e, t);
|
|
4223
|
+
}, Ae.POSE_CONNECTIONS = B2;
|
|
4224
|
+
const ru = ["Smile", "Blink", "Turn_Head", "Thumbs_Up"], No = 60, uu = ({ apiUrl: e, onComplete: t }) => {
|
|
4225
|
+
var Ur;
|
|
4226
|
+
const r = Vn(null), n = Vn(), i = Vn(null), [s, o] = bt({ face: null, hand: null }), [c, u] = bt("loading"), [f, l] = bt(""), [d, b] = bt([]), [A, N] = bt(0), [Be, Ue] = bt(No), [J, V] = bt(!1);
|
|
4227
|
+
Gn(() => {
|
|
4228
|
+
(async () => {
|
|
4229
|
+
try {
|
|
4230
|
+
const z = await Et.forVisionTasks("https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@0.10.3/wasm"), R = await G.createFromOptions(z, {
|
|
4231
|
+
baseOptions: { modelAssetPath: "https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/1/face_landmarker.task", delegate: "GPU" },
|
|
4232
|
+
outputFaceBlendshapes: !0,
|
|
4233
|
+
runningMode: "VIDEO"
|
|
4234
|
+
}), Z = await _e.createFromOptions(z, {
|
|
4235
|
+
baseOptions: { modelAssetPath: "https://storage.googleapis.com/mediapipe-models/hand_landmarker/hand_landmarker/float16/1/hand_landmarker.task", delegate: "GPU" },
|
|
4236
|
+
runningMode: "VIDEO",
|
|
4237
|
+
numHands: 1
|
|
4238
|
+
});
|
|
4239
|
+
o({ face: R, hand: Z }), yt(), u("ready");
|
|
4240
|
+
} catch {
|
|
4241
|
+
l("Failed to load security assets. Please check your connection."), u("error");
|
|
4242
|
+
}
|
|
4243
|
+
})();
|
|
4244
|
+
}, []), Gn(() => (c === "capturing" && Be > 0 ? i.current = setInterval(() => Ue((ne) => ne - 1), 1e3) : Be === 0 && c === "capturing" && (u("expired"), clearInterval(i.current)), () => clearInterval(i.current)), [c, Be]);
|
|
4245
|
+
const yt = () => {
|
|
4246
|
+
b([...ru].sort(() => 0.5 - Math.random()).slice(0, 3));
|
|
4247
|
+
}, Pn = () => {
|
|
4248
|
+
u("capturing");
|
|
4249
|
+
}, On = () => {
|
|
4250
|
+
N(0), Ue(No), V(!1), l(""), yt(), u("ready");
|
|
4251
|
+
}, Fn = (ne, z, R) => {
|
|
4252
|
+
var Z, me;
|
|
4253
|
+
if (J) return !1;
|
|
4254
|
+
if (R === "Thumbs_Up" && ((Z = z == null ? void 0 : z.landmarks) == null ? void 0 : Z.length) > 0) {
|
|
4255
|
+
const j = z.landmarks[0];
|
|
4256
|
+
return j[4].y < j[2].y && [8, 12, 16, 20].every((ie) => j[ie].y > j[ie - 2].y);
|
|
4257
|
+
}
|
|
4258
|
+
if (((me = ne == null ? void 0 : ne.faceLandmarks) == null ? void 0 : me.length) > 0) {
|
|
4259
|
+
const j = ne.faceLandmarks[0];
|
|
4260
|
+
switch (R) {
|
|
4261
|
+
case "Smile":
|
|
4262
|
+
return j[291].x - j[61].x > 0.175;
|
|
4263
|
+
case "Blink":
|
|
4264
|
+
return (Math.abs(j[159].y - j[145].y) + Math.abs(j[386].y - j[374].y)) / 2 < 0.01;
|
|
4265
|
+
case "Turn_Head":
|
|
4266
|
+
const Ve = (j[1].x - j[33].x) / (j[263].x - j[33].x);
|
|
4267
|
+
return Ve < 0.2 || Ve > 0.8;
|
|
4268
|
+
default:
|
|
4269
|
+
return !1;
|
|
4270
|
+
}
|
|
4271
|
+
}
|
|
4272
|
+
return !1;
|
|
4273
|
+
}, dr = f1(async () => {
|
|
4274
|
+
var ne, z;
|
|
4275
|
+
if (c === "capturing" && ((z = (ne = r.current) == null ? void 0 : ne.video) == null ? void 0 : z.readyState) === 4) {
|
|
4276
|
+
const R = r.current.video, Z = performance.now(), me = s.face.detectForVideo(R, Z), j = s.hand.detectForVideo(R, Z);
|
|
4277
|
+
if (Fn(me, j, d[A])) {
|
|
4278
|
+
A < 2 ? (V(!0), setTimeout(() => {
|
|
4279
|
+
N((ie) => ie + 1), V(!1);
|
|
4280
|
+
}, 800)) : Rn();
|
|
4281
|
+
return;
|
|
4282
|
+
}
|
|
4283
|
+
}
|
|
4284
|
+
n.current = requestAnimationFrame(dr);
|
|
4285
|
+
}, [c, A, s, d, J]);
|
|
4286
|
+
Gn(() => (c === "capturing" && (n.current = requestAnimationFrame(dr)), () => cancelAnimationFrame(n.current)), [c, dr]);
|
|
4287
|
+
const Rn = async () => {
|
|
4288
|
+
var ne;
|
|
4289
|
+
clearInterval(i.current), u("verifying");
|
|
4290
|
+
try {
|
|
4291
|
+
const z = r.current.video, R = [];
|
|
4292
|
+
for (let ie = 0; ie < 5; ie++) {
|
|
4293
|
+
const Ve = performance.now(), at = s.face.detectForVideo(z, Ve);
|
|
4294
|
+
if ((ne = at.faceLandmarks) != null && ne[0]) {
|
|
4295
|
+
const ct = Br(z, at.faceLandmarks[0]);
|
|
4296
|
+
R.push(ct.toDataURL("image/jpeg", 0.95));
|
|
4297
|
+
}
|
|
4298
|
+
await new Promise((ct) => setTimeout(ct, 60));
|
|
4299
|
+
}
|
|
4300
|
+
const Z = new FormData();
|
|
4301
|
+
for (let ie = 0; ie < R.length; ie++) {
|
|
4302
|
+
const Ve = await (await fetch(R[ie])).blob();
|
|
4303
|
+
Z.append("files", Ve, `frame_${ie}.jpg`);
|
|
4304
|
+
}
|
|
4305
|
+
(await (await fetch(`${e}/v1/verify`, { method: "POST", body: Z })).json()).is_live ? (u("success"), setTimeout(() => t({ success: !0, image: R[R.length - 1] }), 2e3)) : (l("Security Check Failed. Low skin confidence score."), u("error"));
|
|
4306
|
+
} catch (z) {
|
|
4307
|
+
console.log(z), l("Unable to reach verification server. "), u("error");
|
|
4308
|
+
}
|
|
4309
|
+
}, Br = (ne, z) => {
|
|
4310
|
+
const R = document.createElement("canvas"), Z = R.getContext("2d"), me = z.map((gr) => gr.x * ne.videoWidth), j = z.map((gr) => gr.y * ne.videoHeight), ie = Math.min(...me), Ve = Math.max(...me), at = Math.min(...j), ct = Math.max(...j), pr = Ve - ie, Vr = ct - at, vt = pr * 0.25;
|
|
4311
|
+
return R.width = 224, R.height = 224, Z.drawImage(ne, ie - vt, at - vt, pr + vt * 2, Vr + vt * 2, 0, 0, 224, 224), R;
|
|
4312
|
+
};
|
|
4313
|
+
return c === "loading" ? /* @__PURE__ */ C.jsx("div", { style: jo, children: "Initializing Security Assets..." }) : /* @__PURE__ */ C.jsxs("div", { style: jo, children: [
|
|
4314
|
+
c === "success" && /* @__PURE__ */ C.jsxs("div", { style: { padding: "40px 20px" }, children: [
|
|
4315
|
+
/* @__PURE__ */ C.jsx("div", { style: { fontSize: "50px", marginBottom: "20px" }, children: "✅" }),
|
|
4316
|
+
/* @__PURE__ */ C.jsx("h2", { style: { color: "#4CAF50" }, children: "Verification Complete" }),
|
|
4317
|
+
/* @__PURE__ */ C.jsx("p", { children: "Identity confirmed." })
|
|
4318
|
+
] }),
|
|
4319
|
+
(c === "expired" || c === "error") && /* @__PURE__ */ C.jsx("div", { style: Zn, children: /* @__PURE__ */ C.jsxs("div", { style: ou, children: [
|
|
4320
|
+
/* @__PURE__ */ C.jsx("div", { style: { fontSize: "40px" }, children: c === "expired" ? "⏰" : "❌" }),
|
|
4321
|
+
/* @__PURE__ */ C.jsx("h3", { style: { margin: "10px 0" }, children: c === "expired" ? "Time Expired" : "Verification Failed" }),
|
|
4322
|
+
/* @__PURE__ */ C.jsx("p", { style: { color: "#ccc", fontSize: "14px" }, children: f || "The process was interrupted or timed out." }),
|
|
4323
|
+
/* @__PURE__ */ C.jsx("button", { onClick: On, style: Do, children: "Try Again" })
|
|
4324
|
+
] }) }),
|
|
4325
|
+
["ready", "capturing", "verifying"].includes(c) && /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
|
|
4326
|
+
/* @__PURE__ */ C.jsxs("div", { style: nu, children: [
|
|
4327
|
+
/* @__PURE__ */ C.jsxs("h2", { style: { margin: 0, fontSize: "1.2rem" }, children: [
|
|
4328
|
+
c === "ready" && "Identity Verification",
|
|
4329
|
+
c === "verifying" && "Analyzing...",
|
|
4330
|
+
c === "capturing" && /* @__PURE__ */ C.jsx("span", { style: { color: J ? "#4CAF50" : "white" }, children: J ? "Great!" : `${(Ur = d[A]) == null ? void 0 : Ur.replace("_", " ")}` })
|
|
4331
|
+
] }),
|
|
4332
|
+
c === "capturing" && /* @__PURE__ */ C.jsxs("div", { style: { ...iu, color: Be <= 10 ? "#ff4d4d" : "white" }, children: [
|
|
4333
|
+
Be,
|
|
4334
|
+
"s"
|
|
4335
|
+
] })
|
|
4336
|
+
] }),
|
|
4337
|
+
/* @__PURE__ */ C.jsxs("div", { style: su, children: [
|
|
4338
|
+
/* @__PURE__ */ C.jsx(
|
|
4339
|
+
d1,
|
|
4340
|
+
{
|
|
4341
|
+
ref: r,
|
|
4342
|
+
mirrored: !0,
|
|
4343
|
+
screenshotFormat: "image/jpeg",
|
|
4344
|
+
style: {
|
|
4345
|
+
width: "100%",
|
|
4346
|
+
borderRadius: "12px",
|
|
4347
|
+
border: c === "capturing" ? "2px solid #007bff" : "2px solid #333",
|
|
4348
|
+
opacity: c === "ready" ? 0.4 : 1,
|
|
4349
|
+
transition: "all 0.4s ease"
|
|
4350
|
+
}
|
|
418
4351
|
}
|
|
419
4352
|
),
|
|
420
|
-
/* @__PURE__ */
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
a === "counting" && /* @__PURE__ */ t.jsx("div", { style: J, children: F }),
|
|
426
|
-
a === "verifying" && /* @__PURE__ */ t.jsx("div", { style: J, children: "Analyzing..." }),
|
|
427
|
-
a === "capturing" && /* @__PURE__ */ t.jsx("div", { style: { ...J, background: "rgba(40, 167, 69, 0.3)" }, children: "Recording..." })
|
|
4353
|
+
c === "ready" && /* @__PURE__ */ C.jsxs("div", { style: Zn, children: [
|
|
4354
|
+
/* @__PURE__ */ C.jsx("button", { onClick: Pn, style: Do, children: "Start Challenge" }),
|
|
4355
|
+
/* @__PURE__ */ C.jsx("p", { style: { marginTop: "12px", fontSize: "13px", color: "#aaa" }, children: "3 steps • 60 seconds" })
|
|
4356
|
+
] }),
|
|
4357
|
+
c === "verifying" && /* @__PURE__ */ C.jsx("div", { style: Zn, children: /* @__PURE__ */ C.jsx("p", { style: { marginTop: "15px", fontWeight: "bold" }, children: "Securing Session..." }) })
|
|
428
4358
|
] }),
|
|
429
|
-
/* @__PURE__ */
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
opacity: w ? 0.6 : 1
|
|
434
|
-
}, children: "I'm Ready" }) })
|
|
4359
|
+
/* @__PURE__ */ C.jsx("div", { style: { marginTop: "15px", minHeight: "20px" }, children: /* @__PURE__ */ C.jsxs("p", { style: { color: J ? "#4CAF50" : "#888", margin: 0, fontSize: "14px" }, children: [
|
|
4360
|
+
c === "capturing" && !J && "Please perform the action above.",
|
|
4361
|
+
J && "Step verified! Get ready..."
|
|
4362
|
+
] }) })
|
|
435
4363
|
] })
|
|
436
4364
|
] });
|
|
437
|
-
},
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
background: "rgba(0,0,0,0.5)",
|
|
444
|
-
color: "white",
|
|
445
|
-
display: "flex",
|
|
446
|
-
alignItems: "center",
|
|
447
|
-
justifyContent: "center",
|
|
448
|
-
fontSize: "48px",
|
|
449
|
-
borderRadius: "10px"
|
|
450
|
-
}, U = {
|
|
451
|
-
padding: "10px 30px",
|
|
452
|
-
fontSize: "18px",
|
|
453
|
-
cursor: "pointer",
|
|
454
|
-
backgroundColor: "#28a745",
|
|
455
|
-
color: "white",
|
|
456
|
-
border: "none",
|
|
457
|
-
borderRadius: "5px"
|
|
458
|
-
}, fe = {
|
|
459
|
-
position: "absolute",
|
|
460
|
-
top: 0,
|
|
461
|
-
left: 0,
|
|
462
|
-
right: 0,
|
|
463
|
-
bottom: 0,
|
|
464
|
-
backgroundColor: "rgba(0,0,0,0.7)",
|
|
465
|
-
display: "flex",
|
|
466
|
-
alignItems: "center",
|
|
467
|
-
justifyContent: "center",
|
|
468
|
-
zIndex: 100,
|
|
469
|
-
borderRadius: "10px"
|
|
470
|
-
}, de = {
|
|
471
|
-
backgroundColor: "white",
|
|
472
|
-
padding: "30px",
|
|
473
|
-
borderRadius: "15px",
|
|
474
|
-
maxWidth: "300px",
|
|
475
|
-
boxShadow: "0 4px 15px rgba(0,0,0,0.3)",
|
|
476
|
-
color: "#000"
|
|
477
|
-
}, pe = {
|
|
478
|
-
position: "absolute",
|
|
479
|
-
top: "50%",
|
|
480
|
-
left: "50%",
|
|
481
|
-
transform: "translate(-50%, -50%)",
|
|
482
|
-
width: "260px",
|
|
483
|
-
// Adjust width based on your model's preference
|
|
484
|
-
height: "240px",
|
|
485
|
-
// Adjust height
|
|
486
|
-
borderRadius: "50%",
|
|
487
|
-
border: "2px dashed rgba(255, 255, 255, 0.6)",
|
|
488
|
-
boxShadow: "0 0 0 9999px rgba(0, 0, 0, 0.5)",
|
|
489
|
-
// This creates the dark "vignette"
|
|
490
|
-
pointerEvents: "none",
|
|
491
|
-
// Critical: clicks pass through to the webcam/buttons
|
|
492
|
-
zIndex: 10
|
|
493
|
-
}, me = {
|
|
494
|
-
position: "absolute",
|
|
495
|
-
top: 0,
|
|
496
|
-
left: 0,
|
|
497
|
-
right: 0,
|
|
498
|
-
bottom: 0,
|
|
499
|
-
borderRadius: "50%",
|
|
500
|
-
boxShadow: "inset 0 0 30px rgba(255, 255, 255, 0.2)"
|
|
501
|
-
}, ge = async (d, p, f) => {
|
|
502
|
-
const s = new FormData();
|
|
503
|
-
p.forEach((c, v) => {
|
|
504
|
-
s.append("files", c, `frame_${v}.jpg`);
|
|
505
|
-
}), s.append("challenge", f);
|
|
506
|
-
const n = await fetch(`${d}/v1/verify`, {
|
|
4365
|
+
}, jo = { textAlign: "center", color: "white", background: "#121212", padding: "24px", borderRadius: "20px", width: "100%", maxWidth: "450px", margin: "0 auto", boxShadow: "0 10px 30px rgba(0,0,0,0.5)" }, nu = { display: "flex", justifyContent: "space-between", alignItems: "center", marginBottom: "20px", minHeight: "40px" }, iu = { fontSize: "18px", fontWeight: "800", background: "rgba(255,255,255,0.1)", padding: "4px 12px", borderRadius: "20px" }, su = { position: "relative", overflow: "hidden", borderRadius: "12px" }, Zn = { position: "absolute", top: 0, left: 0, right: 0, bottom: 0, background: "rgba(0,0,0,0.75)", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", zIndex: 10, borderRadius: "12px" }, ou = { background: "#1e1e1e", padding: "30px", borderRadius: "15px", border: "1px solid #333", maxWidth: "80%", textAlign: "center" }, Do = { padding: "12px 30px", fontSize: "16px", fontWeight: "bold", background: "#007bff", border: "none", color: "white", borderRadius: "10px", cursor: "pointer", transition: "transform 0.2s" }, lu = async (e, t, r) => {
|
|
4366
|
+
const n = new FormData();
|
|
4367
|
+
t.forEach((s, o) => {
|
|
4368
|
+
n.append("files", s, `frame_${o}.jpg`);
|
|
4369
|
+
}), n.append("challenge", r);
|
|
4370
|
+
const i = await fetch(`${e}/v1/verify`, {
|
|
507
4371
|
method: "POST",
|
|
508
|
-
body:
|
|
4372
|
+
body: n
|
|
509
4373
|
});
|
|
510
|
-
if (!
|
|
511
|
-
return await
|
|
4374
|
+
if (!i.ok) throw new Error("Network response was not ok");
|
|
4375
|
+
return await i.json();
|
|
512
4376
|
};
|
|
513
4377
|
export {
|
|
514
|
-
|
|
515
|
-
|
|
4378
|
+
uu as LivenessSDK,
|
|
4379
|
+
lu as verifyLiveness
|
|
516
4380
|
};
|