pose-ai-core 0.1.0
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 +348 -0
- package/dist/_virtual/_commonjsHelpers.js +5 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/camera_utils.js +6 -0
- package/dist/_virtual/camera_utils.js.map +1 -0
- package/dist/_virtual/camera_utils2.js +5 -0
- package/dist/_virtual/camera_utils2.js.map +1 -0
- package/dist/_virtual/drawing_utils.js +6 -0
- package/dist/_virtual/drawing_utils.js.map +1 -0
- package/dist/_virtual/drawing_utils2.js +5 -0
- package/dist/_virtual/drawing_utils2.js.map +1 -0
- package/dist/_virtual/pose.js +6 -0
- package/dist/_virtual/pose.js.map +1 -0
- package/dist/_virtual/pose2.js +5 -0
- package/dist/_virtual/pose2.js.map +1 -0
- package/dist/components/AnglePanel/index.css +1 -0
- package/dist/components/AnglePanel/index.js +79 -0
- package/dist/components/AnglePanel/index.js.map +1 -0
- package/dist/components/PoseCanvas/index.js +86 -0
- package/dist/components/PoseCanvas/index.js.map +1 -0
- package/dist/components/ROMVisualizer/index.css +1 -0
- package/dist/components/ROMVisualizer/index.js +208 -0
- package/dist/components/ROMVisualizer/index.js.map +1 -0
- package/dist/components/SkeletonOverlay/index.css +1 -0
- package/dist/components/SkeletonOverlay/index.js +45 -0
- package/dist/components/SkeletonOverlay/index.js.map +1 -0
- package/dist/components/styles.js +270 -0
- package/dist/components/styles.js.map +1 -0
- package/dist/components/utils/drawingUtils.js +45 -0
- package/dist/components/utils/drawingUtils.js.map +1 -0
- package/dist/engine/angleCalculator.js +196 -0
- package/dist/engine/angleCalculator.js.map +1 -0
- package/dist/engine/directionAnalyzer.js +97 -0
- package/dist/engine/directionAnalyzer.js.map +1 -0
- package/dist/engine/eventBus.js +45 -0
- package/dist/engine/eventBus.js.map +1 -0
- package/dist/engine/guidedAssessmentManager.js +252 -0
- package/dist/engine/guidedAssessmentManager.js.map +1 -0
- package/dist/engine/motionDetector.js +127 -0
- package/dist/engine/motionDetector.js.map +1 -0
- package/dist/engine/poseEngine.js +131 -0
- package/dist/engine/poseEngine.js.map +1 -0
- package/dist/engine.d.ts +153 -0
- package/dist/engine.js +10 -0
- package/dist/engine.js.map +1 -0
- package/dist/hooks/usePoseDetection.js +278 -0
- package/dist/hooks/usePoseDetection.js.map +1 -0
- package/dist/hooks/usePoseEngine.js +83 -0
- package/dist/hooks/usePoseEngine.js.map +1 -0
- package/dist/index.d.ts +596 -0
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@mediapipe_camera_utils@0.3.1675466862/node_modules/@mediapipe/camera_utils/camera_utils.js +377 -0
- package/dist/node_modules/.pnpm/@mediapipe_camera_utils@0.3.1675466862/node_modules/@mediapipe/camera_utils/camera_utils.js.map +1 -0
- package/dist/node_modules/.pnpm/@mediapipe_drawing_utils@0.3.1675466124/node_modules/@mediapipe/drawing_utils/drawing_utils.js +112 -0
- package/dist/node_modules/.pnpm/@mediapipe_drawing_utils@0.3.1675466124/node_modules/@mediapipe/drawing_utils/drawing_utils.js.map +1 -0
- package/dist/node_modules/.pnpm/@mediapipe_pose@0.5.1675469404/node_modules/@mediapipe/pose/pose.js +1796 -0
- package/dist/node_modules/.pnpm/@mediapipe_pose@0.5.1675469404/node_modules/@mediapipe/pose/pose.js.map +1 -0
- package/dist/types/index.js +5 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +47 -0
package/dist/node_modules/.pnpm/@mediapipe_pose@0.5.1675469404/node_modules/@mediapipe/pose/pose.js
ADDED
|
@@ -0,0 +1,1796 @@
|
|
|
1
|
+
import { commonjsGlobal as ir } from "../../../../../../_virtual/_commonjsHelpers.js";
|
|
2
|
+
import { __exports as Qt } from "../../../../../../_virtual/pose2.js";
|
|
3
|
+
var or;
|
|
4
|
+
function dn() {
|
|
5
|
+
return or ? Qt : (or = 1, (function() {
|
|
6
|
+
var F;
|
|
7
|
+
function Jt(t) {
|
|
8
|
+
var e = 0;
|
|
9
|
+
return function() {
|
|
10
|
+
return e < t.length ? { done: !1, value: t[e++] } : { done: !0 };
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
var gt = typeof Object.defineProperties == "function" ? Object.defineProperty : function(t, e, r) {
|
|
14
|
+
return t == Array.prototype || t == Object.prototype || (t[e] = r.value), t;
|
|
15
|
+
};
|
|
16
|
+
function ur(t) {
|
|
17
|
+
t = [typeof globalThis == "object" && globalThis, t, typeof window == "object" && window, typeof self == "object" && self, typeof ir == "object" && ir];
|
|
18
|
+
for (var e = 0; e < t.length; ++e) {
|
|
19
|
+
var r = t[e];
|
|
20
|
+
if (r && r.Math == Math) return r;
|
|
21
|
+
}
|
|
22
|
+
throw Error("Cannot find global object");
|
|
23
|
+
}
|
|
24
|
+
var B = ur(this);
|
|
25
|
+
function _(t, e) {
|
|
26
|
+
if (e) t: {
|
|
27
|
+
var r = B;
|
|
28
|
+
t = t.split(".");
|
|
29
|
+
for (var n = 0; n < t.length - 1; n++) {
|
|
30
|
+
var i = t[n];
|
|
31
|
+
if (!(i in r)) break t;
|
|
32
|
+
r = r[i];
|
|
33
|
+
}
|
|
34
|
+
t = t[t.length - 1], n = r[t], e = e(n), e != n && e != null && gt(r, t, { configurable: !0, writable: !0, value: e });
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
_("Symbol", function(t) {
|
|
38
|
+
function e(u) {
|
|
39
|
+
if (this instanceof e) throw new TypeError("Symbol is not a constructor");
|
|
40
|
+
return new r(n + (u || "") + "_" + i++, u);
|
|
41
|
+
}
|
|
42
|
+
function r(u, o) {
|
|
43
|
+
this.h = u, gt(this, "description", { configurable: !0, writable: !0, value: o });
|
|
44
|
+
}
|
|
45
|
+
if (t) return t;
|
|
46
|
+
r.prototype.toString = function() {
|
|
47
|
+
return this.h;
|
|
48
|
+
};
|
|
49
|
+
var n = "jscomp_symbol_" + (1e9 * Math.random() >>> 0) + "_", i = 0;
|
|
50
|
+
return e;
|
|
51
|
+
}), _("Symbol.iterator", function(t) {
|
|
52
|
+
if (t) return t;
|
|
53
|
+
t = /* @__PURE__ */ Symbol("Symbol.iterator");
|
|
54
|
+
for (var e = "Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "), r = 0; r < e.length; r++) {
|
|
55
|
+
var n = B[e[r]];
|
|
56
|
+
typeof n == "function" && typeof n.prototype[t] != "function" && gt(n.prototype, t, { configurable: !0, writable: !0, value: function() {
|
|
57
|
+
return sr(Jt(this));
|
|
58
|
+
} });
|
|
59
|
+
}
|
|
60
|
+
return t;
|
|
61
|
+
});
|
|
62
|
+
function sr(t) {
|
|
63
|
+
return t = { next: t }, t[Symbol.iterator] = function() {
|
|
64
|
+
return this;
|
|
65
|
+
}, t;
|
|
66
|
+
}
|
|
67
|
+
function O(t) {
|
|
68
|
+
var e = typeof Symbol < "u" && Symbol.iterator && t[Symbol.iterator];
|
|
69
|
+
return e ? e.call(t) : { next: Jt(t) };
|
|
70
|
+
}
|
|
71
|
+
function qt(t) {
|
|
72
|
+
if (!(t instanceof Array)) {
|
|
73
|
+
t = O(t);
|
|
74
|
+
for (var e, r = []; !(e = t.next()).done; ) r.push(e.value);
|
|
75
|
+
t = r;
|
|
76
|
+
}
|
|
77
|
+
return t;
|
|
78
|
+
}
|
|
79
|
+
var lr = typeof Object.assign == "function" ? Object.assign : function(t, e) {
|
|
80
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
81
|
+
var n = arguments[r];
|
|
82
|
+
if (n) for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
|
83
|
+
}
|
|
84
|
+
return t;
|
|
85
|
+
};
|
|
86
|
+
_("Object.assign", function(t) {
|
|
87
|
+
return t || lr;
|
|
88
|
+
});
|
|
89
|
+
var fr = typeof Object.create == "function" ? Object.create : function(t) {
|
|
90
|
+
function e() {
|
|
91
|
+
}
|
|
92
|
+
return e.prototype = t, new e();
|
|
93
|
+
}, wt;
|
|
94
|
+
if (typeof Object.setPrototypeOf == "function") wt = Object.setPrototypeOf;
|
|
95
|
+
else {
|
|
96
|
+
var At;
|
|
97
|
+
t: {
|
|
98
|
+
var ar = { a: !0 }, te = {};
|
|
99
|
+
try {
|
|
100
|
+
te.__proto__ = ar, At = te.a;
|
|
101
|
+
break t;
|
|
102
|
+
} catch {
|
|
103
|
+
}
|
|
104
|
+
At = !1;
|
|
105
|
+
}
|
|
106
|
+
wt = At ? function(t, e) {
|
|
107
|
+
if (t.__proto__ = e, t.__proto__ !== e) throw new TypeError(t + " is not extensible");
|
|
108
|
+
return t;
|
|
109
|
+
} : null;
|
|
110
|
+
}
|
|
111
|
+
var ee = wt;
|
|
112
|
+
function Z(t, e) {
|
|
113
|
+
if (t.prototype = fr(e.prototype), t.prototype.constructor = t, ee) ee(t, e);
|
|
114
|
+
else for (var r in e) if (r != "prototype") if (Object.defineProperties) {
|
|
115
|
+
var n = Object.getOwnPropertyDescriptor(e, r);
|
|
116
|
+
n && Object.defineProperty(t, r, n);
|
|
117
|
+
} else t[r] = e[r];
|
|
118
|
+
t.za = e.prototype;
|
|
119
|
+
}
|
|
120
|
+
function _t() {
|
|
121
|
+
this.m = !1, this.j = null, this.i = void 0, this.h = 1, this.v = this.s = 0, this.l = null;
|
|
122
|
+
}
|
|
123
|
+
function Tt(t) {
|
|
124
|
+
if (t.m) throw new TypeError("Generator is already running");
|
|
125
|
+
t.m = !0;
|
|
126
|
+
}
|
|
127
|
+
_t.prototype.u = function(t) {
|
|
128
|
+
this.i = t;
|
|
129
|
+
};
|
|
130
|
+
function jt(t, e) {
|
|
131
|
+
t.l = { ma: e, na: !0 }, t.h = t.s || t.v;
|
|
132
|
+
}
|
|
133
|
+
_t.prototype.return = function(t) {
|
|
134
|
+
this.l = { return: t }, this.h = this.v;
|
|
135
|
+
};
|
|
136
|
+
function w(t, e, r) {
|
|
137
|
+
return t.h = r, { value: e };
|
|
138
|
+
}
|
|
139
|
+
function cr(t) {
|
|
140
|
+
this.h = new _t(), this.i = t;
|
|
141
|
+
}
|
|
142
|
+
function hr(t, e) {
|
|
143
|
+
Tt(t.h);
|
|
144
|
+
var r = t.h.j;
|
|
145
|
+
return r ? Ft(t, "return" in r ? r.return : function(n) {
|
|
146
|
+
return { value: n, done: !0 };
|
|
147
|
+
}, e, t.h.return) : (t.h.return(e), $(t));
|
|
148
|
+
}
|
|
149
|
+
function Ft(t, e, r, n) {
|
|
150
|
+
try {
|
|
151
|
+
var i = e.call(t.h.j, r);
|
|
152
|
+
if (!(i instanceof Object)) throw new TypeError("Iterator result " + i + " is not an object");
|
|
153
|
+
if (!i.done) return t.h.m = !1, i;
|
|
154
|
+
var u = i.value;
|
|
155
|
+
} catch (o) {
|
|
156
|
+
return t.h.j = null, jt(t.h, o), $(t);
|
|
157
|
+
}
|
|
158
|
+
return t.h.j = null, n.call(t.h, u), $(t);
|
|
159
|
+
}
|
|
160
|
+
function $(t) {
|
|
161
|
+
for (; t.h.h; ) try {
|
|
162
|
+
var e = t.i(t.h);
|
|
163
|
+
if (e) return t.h.m = !1, { value: e.value, done: !1 };
|
|
164
|
+
} catch (r) {
|
|
165
|
+
t.h.i = void 0, jt(t.h, r);
|
|
166
|
+
}
|
|
167
|
+
if (t.h.m = !1, t.h.l) {
|
|
168
|
+
if (e = t.h.l, t.h.l = null, e.na) throw e.ma;
|
|
169
|
+
return { value: e.return, done: !0 };
|
|
170
|
+
}
|
|
171
|
+
return { value: void 0, done: !0 };
|
|
172
|
+
}
|
|
173
|
+
function pr(t) {
|
|
174
|
+
this.next = function(e) {
|
|
175
|
+
return Tt(t.h), t.h.j ? e = Ft(t, t.h.j.next, e, t.h.u) : (t.h.u(e), e = $(t)), e;
|
|
176
|
+
}, this.throw = function(e) {
|
|
177
|
+
return Tt(t.h), t.h.j ? e = Ft(t, t.h.j.throw, e, t.h.u) : (jt(t.h, e), e = $(t)), e;
|
|
178
|
+
}, this.return = function(e) {
|
|
179
|
+
return hr(t, e);
|
|
180
|
+
}, this[Symbol.iterator] = function() {
|
|
181
|
+
return this;
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
function vr(t) {
|
|
185
|
+
function e(n) {
|
|
186
|
+
return t.next(n);
|
|
187
|
+
}
|
|
188
|
+
function r(n) {
|
|
189
|
+
return t.throw(n);
|
|
190
|
+
}
|
|
191
|
+
return new Promise(function(n, i) {
|
|
192
|
+
function u(o) {
|
|
193
|
+
o.done ? n(o.value) : Promise.resolve(o.value).then(e, r).then(u, i);
|
|
194
|
+
}
|
|
195
|
+
u(t.next());
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
function R(t) {
|
|
199
|
+
return vr(new pr(new cr(t)));
|
|
200
|
+
}
|
|
201
|
+
_("Promise", function(t) {
|
|
202
|
+
function e(o) {
|
|
203
|
+
this.i = 0, this.j = void 0, this.h = [], this.u = !1;
|
|
204
|
+
var s = this.l();
|
|
205
|
+
try {
|
|
206
|
+
o(s.resolve, s.reject);
|
|
207
|
+
} catch (l) {
|
|
208
|
+
s.reject(l);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
function r() {
|
|
212
|
+
this.h = null;
|
|
213
|
+
}
|
|
214
|
+
function n(o) {
|
|
215
|
+
return o instanceof e ? o : new e(function(s) {
|
|
216
|
+
s(o);
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
if (t) return t;
|
|
220
|
+
r.prototype.i = function(o) {
|
|
221
|
+
if (this.h == null) {
|
|
222
|
+
this.h = [];
|
|
223
|
+
var s = this;
|
|
224
|
+
this.j(function() {
|
|
225
|
+
s.m();
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
this.h.push(o);
|
|
229
|
+
};
|
|
230
|
+
var i = B.setTimeout;
|
|
231
|
+
r.prototype.j = function(o) {
|
|
232
|
+
i(o, 0);
|
|
233
|
+
}, r.prototype.m = function() {
|
|
234
|
+
for (; this.h && this.h.length; ) {
|
|
235
|
+
var o = this.h;
|
|
236
|
+
this.h = [];
|
|
237
|
+
for (var s = 0; s < o.length; ++s) {
|
|
238
|
+
var l = o[s];
|
|
239
|
+
o[s] = null;
|
|
240
|
+
try {
|
|
241
|
+
l();
|
|
242
|
+
} catch (f) {
|
|
243
|
+
this.l(f);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
this.h = null;
|
|
248
|
+
}, r.prototype.l = function(o) {
|
|
249
|
+
this.j(function() {
|
|
250
|
+
throw o;
|
|
251
|
+
});
|
|
252
|
+
}, e.prototype.l = function() {
|
|
253
|
+
function o(f) {
|
|
254
|
+
return function(a) {
|
|
255
|
+
l || (l = !0, f.call(s, a));
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
var s = this, l = !1;
|
|
259
|
+
return { resolve: o(this.I), reject: o(this.m) };
|
|
260
|
+
}, e.prototype.I = function(o) {
|
|
261
|
+
if (o === this) this.m(new TypeError("A Promise cannot resolve to itself"));
|
|
262
|
+
else if (o instanceof e) this.L(o);
|
|
263
|
+
else {
|
|
264
|
+
t: switch (typeof o) {
|
|
265
|
+
case "object":
|
|
266
|
+
var s = o != null;
|
|
267
|
+
break t;
|
|
268
|
+
case "function":
|
|
269
|
+
s = !0;
|
|
270
|
+
break t;
|
|
271
|
+
default:
|
|
272
|
+
s = !1;
|
|
273
|
+
}
|
|
274
|
+
s ? this.F(o) : this.s(o);
|
|
275
|
+
}
|
|
276
|
+
}, e.prototype.F = function(o) {
|
|
277
|
+
var s = void 0;
|
|
278
|
+
try {
|
|
279
|
+
s = o.then;
|
|
280
|
+
} catch (l) {
|
|
281
|
+
this.m(l);
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
typeof s == "function" ? this.M(s, o) : this.s(o);
|
|
285
|
+
}, e.prototype.m = function(o) {
|
|
286
|
+
this.v(2, o);
|
|
287
|
+
}, e.prototype.s = function(o) {
|
|
288
|
+
this.v(1, o);
|
|
289
|
+
}, e.prototype.v = function(o, s) {
|
|
290
|
+
if (this.i != 0) throw Error("Cannot settle(" + o + ", " + s + "): Promise already settled in state" + this.i);
|
|
291
|
+
this.i = o, this.j = s, this.i === 2 && this.K(), this.H();
|
|
292
|
+
}, e.prototype.K = function() {
|
|
293
|
+
var o = this;
|
|
294
|
+
i(function() {
|
|
295
|
+
if (o.D()) {
|
|
296
|
+
var s = B.console;
|
|
297
|
+
typeof s < "u" && s.error(o.j);
|
|
298
|
+
}
|
|
299
|
+
}, 1);
|
|
300
|
+
}, e.prototype.D = function() {
|
|
301
|
+
if (this.u) return !1;
|
|
302
|
+
var o = B.CustomEvent, s = B.Event, l = B.dispatchEvent;
|
|
303
|
+
return typeof l > "u" ? !0 : (typeof o == "function" ? o = new o("unhandledrejection", { cancelable: !0 }) : typeof s == "function" ? o = new s("unhandledrejection", { cancelable: !0 }) : (o = B.document.createEvent("CustomEvent"), o.initCustomEvent("unhandledrejection", !1, !0, o)), o.promise = this, o.reason = this.j, l(o));
|
|
304
|
+
}, e.prototype.H = function() {
|
|
305
|
+
if (this.h != null) {
|
|
306
|
+
for (var o = 0; o < this.h.length; ++o) u.i(this.h[o]);
|
|
307
|
+
this.h = null;
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
var u = new r();
|
|
311
|
+
return e.prototype.L = function(o) {
|
|
312
|
+
var s = this.l();
|
|
313
|
+
o.T(s.resolve, s.reject);
|
|
314
|
+
}, e.prototype.M = function(o, s) {
|
|
315
|
+
var l = this.l();
|
|
316
|
+
try {
|
|
317
|
+
o.call(s, l.resolve, l.reject);
|
|
318
|
+
} catch (f) {
|
|
319
|
+
l.reject(f);
|
|
320
|
+
}
|
|
321
|
+
}, e.prototype.then = function(o, s) {
|
|
322
|
+
function l(h, c) {
|
|
323
|
+
return typeof h == "function" ? function(v) {
|
|
324
|
+
try {
|
|
325
|
+
f(h(v));
|
|
326
|
+
} catch (y) {
|
|
327
|
+
a(y);
|
|
328
|
+
}
|
|
329
|
+
} : c;
|
|
330
|
+
}
|
|
331
|
+
var f, a, p = new e(function(h, c) {
|
|
332
|
+
f = h, a = c;
|
|
333
|
+
});
|
|
334
|
+
return this.T(l(o, f), l(s, a)), p;
|
|
335
|
+
}, e.prototype.catch = function(o) {
|
|
336
|
+
return this.then(void 0, o);
|
|
337
|
+
}, e.prototype.T = function(o, s) {
|
|
338
|
+
function l() {
|
|
339
|
+
switch (f.i) {
|
|
340
|
+
case 1:
|
|
341
|
+
o(f.j);
|
|
342
|
+
break;
|
|
343
|
+
case 2:
|
|
344
|
+
s(f.j);
|
|
345
|
+
break;
|
|
346
|
+
default:
|
|
347
|
+
throw Error("Unexpected state: " + f.i);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
var f = this;
|
|
351
|
+
this.h == null ? u.i(l) : this.h.push(l), this.u = !0;
|
|
352
|
+
}, e.resolve = n, e.reject = function(o) {
|
|
353
|
+
return new e(function(s, l) {
|
|
354
|
+
l(o);
|
|
355
|
+
});
|
|
356
|
+
}, e.race = function(o) {
|
|
357
|
+
return new e(function(s, l) {
|
|
358
|
+
for (var f = O(o), a = f.next(); !a.done; a = f.next()) n(a.value).T(s, l);
|
|
359
|
+
});
|
|
360
|
+
}, e.all = function(o) {
|
|
361
|
+
var s = O(o), l = s.next();
|
|
362
|
+
return l.done ? n([]) : new e(function(f, a) {
|
|
363
|
+
function p(v) {
|
|
364
|
+
return function(y) {
|
|
365
|
+
h[v] = y, c--, c == 0 && f(h);
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
var h = [], c = 0;
|
|
369
|
+
do
|
|
370
|
+
h.push(void 0), c++, n(l.value).T(p(h.length - 1), a), l = s.next();
|
|
371
|
+
while (!l.done);
|
|
372
|
+
});
|
|
373
|
+
}, e;
|
|
374
|
+
});
|
|
375
|
+
function yr(t, e) {
|
|
376
|
+
t instanceof String && (t += "");
|
|
377
|
+
var r = 0, n = !1, i = { next: function() {
|
|
378
|
+
if (!n && r < t.length) {
|
|
379
|
+
var u = r++;
|
|
380
|
+
return { value: e(u, t[u]), done: !1 };
|
|
381
|
+
}
|
|
382
|
+
return n = !0, { done: !0, value: void 0 };
|
|
383
|
+
} };
|
|
384
|
+
return i[Symbol.iterator] = function() {
|
|
385
|
+
return i;
|
|
386
|
+
}, i;
|
|
387
|
+
}
|
|
388
|
+
_("Array.prototype.keys", function(t) {
|
|
389
|
+
return t || function() {
|
|
390
|
+
return yr(this, function(e) {
|
|
391
|
+
return e;
|
|
392
|
+
});
|
|
393
|
+
};
|
|
394
|
+
}), _("Array.prototype.fill", function(t) {
|
|
395
|
+
return t || function(e, r, n) {
|
|
396
|
+
var i = this.length || 0;
|
|
397
|
+
for (0 > r && (r = Math.max(0, i + r)), (n == null || n > i) && (n = i), n = Number(n), 0 > n && (n = Math.max(0, i + n)), r = Number(r || 0); r < n; r++) this[r] = e;
|
|
398
|
+
return this;
|
|
399
|
+
};
|
|
400
|
+
});
|
|
401
|
+
function M(t) {
|
|
402
|
+
return t || Array.prototype.fill;
|
|
403
|
+
}
|
|
404
|
+
_("Int8Array.prototype.fill", M), _("Uint8Array.prototype.fill", M), _("Uint8ClampedArray.prototype.fill", M), _("Int16Array.prototype.fill", M), _("Uint16Array.prototype.fill", M), _("Int32Array.prototype.fill", M), _("Uint32Array.prototype.fill", M), _("Float32Array.prototype.fill", M), _("Float64Array.prototype.fill", M), _("Object.is", function(t) {
|
|
405
|
+
return t || function(e, r) {
|
|
406
|
+
return e === r ? e !== 0 || 1 / e === 1 / r : e !== e && r !== r;
|
|
407
|
+
};
|
|
408
|
+
}), _("Array.prototype.includes", function(t) {
|
|
409
|
+
return t || function(e, r) {
|
|
410
|
+
var n = this;
|
|
411
|
+
n instanceof String && (n = String(n));
|
|
412
|
+
var i = n.length;
|
|
413
|
+
for (r = r || 0, 0 > r && (r = Math.max(r + i, 0)); r < i; r++) {
|
|
414
|
+
var u = n[r];
|
|
415
|
+
if (u === e || Object.is(u, e)) return !0;
|
|
416
|
+
}
|
|
417
|
+
return !1;
|
|
418
|
+
};
|
|
419
|
+
}), _("String.prototype.includes", function(t) {
|
|
420
|
+
return t || function(e, r) {
|
|
421
|
+
if (this == null) throw new TypeError("The 'this' value for String.prototype.includes must not be null or undefined");
|
|
422
|
+
if (e instanceof RegExp) throw new TypeError("First argument to String.prototype.includes must not be a regular expression");
|
|
423
|
+
return this.indexOf(e, r || 0) !== -1;
|
|
424
|
+
};
|
|
425
|
+
});
|
|
426
|
+
var Rt = this || self;
|
|
427
|
+
function G(t, e) {
|
|
428
|
+
t = t.split(".");
|
|
429
|
+
var r = Rt;
|
|
430
|
+
t[0] in r || typeof r.execScript > "u" || r.execScript("var " + t[0]);
|
|
431
|
+
for (var n; t.length && (n = t.shift()); ) t.length || e === void 0 ? r[n] && r[n] !== Object.prototype[n] ? r = r[n] : r = r[n] = {} : r[n] = e;
|
|
432
|
+
}
|
|
433
|
+
function re(t) {
|
|
434
|
+
var e;
|
|
435
|
+
t: {
|
|
436
|
+
if ((e = Rt.navigator) && (e = e.userAgent)) break t;
|
|
437
|
+
e = "";
|
|
438
|
+
}
|
|
439
|
+
return e.indexOf(t) != -1;
|
|
440
|
+
}
|
|
441
|
+
var dr = Array.prototype.map ? function(t, e) {
|
|
442
|
+
return Array.prototype.map.call(t, e, void 0);
|
|
443
|
+
} : function(t, e) {
|
|
444
|
+
for (var r = t.length, n = Array(r), i = typeof t == "string" ? t.split("") : t, u = 0; u < r; u++) u in i && (n[u] = e.call(void 0, i[u], u, t));
|
|
445
|
+
return n;
|
|
446
|
+
}, ne = {}, Q = null;
|
|
447
|
+
function mr(t) {
|
|
448
|
+
var e = t.length, r = 3 * e / 4;
|
|
449
|
+
r % 3 ? r = Math.floor(r) : "=.".indexOf(t[e - 1]) != -1 && (r = "=.".indexOf(t[e - 2]) != -1 ? r - 2 : r - 1);
|
|
450
|
+
var n = new Uint8Array(r), i = 0;
|
|
451
|
+
return Er(t, function(u) {
|
|
452
|
+
n[i++] = u;
|
|
453
|
+
}), i !== r ? n.subarray(0, i) : n;
|
|
454
|
+
}
|
|
455
|
+
function Er(t, e) {
|
|
456
|
+
function r(l) {
|
|
457
|
+
for (; n < t.length; ) {
|
|
458
|
+
var f = t.charAt(n++), a = Q[f];
|
|
459
|
+
if (a != null) return a;
|
|
460
|
+
if (!/^[\s\xa0]*$/.test(f)) throw Error("Unknown base64 encoding at char: " + f);
|
|
461
|
+
}
|
|
462
|
+
return l;
|
|
463
|
+
}
|
|
464
|
+
ie();
|
|
465
|
+
for (var n = 0; ; ) {
|
|
466
|
+
var i = r(-1), u = r(0), o = r(64), s = r(64);
|
|
467
|
+
if (s === 64 && i === -1) break;
|
|
468
|
+
e(i << 2 | u >> 4), o != 64 && (e(u << 4 & 240 | o >> 2), s != 64 && e(o << 6 & 192 | s));
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
function ie() {
|
|
472
|
+
if (!Q) {
|
|
473
|
+
Q = {};
|
|
474
|
+
for (var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""), e = ["+/=", "+/", "-_=", "-_.", "-_"], r = 0; 5 > r; r++) {
|
|
475
|
+
var n = t.concat(e[r].split(""));
|
|
476
|
+
ne[r] = n;
|
|
477
|
+
for (var i = 0; i < n.length; i++) {
|
|
478
|
+
var u = n[i];
|
|
479
|
+
Q[u] === void 0 && (Q[u] = i);
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
var Ot = typeof Uint8Array < "u", oe = !(re("Trident") || re("MSIE")) && typeof Rt.btoa == "function";
|
|
485
|
+
function ue(t) {
|
|
486
|
+
if (!oe) {
|
|
487
|
+
var e;
|
|
488
|
+
e === void 0 && (e = 0), ie(), e = ne[e];
|
|
489
|
+
for (var r = Array(Math.floor(t.length / 3)), n = e[64] || "", i = 0, u = 0; i < t.length - 2; i += 3) {
|
|
490
|
+
var o = t[i], s = t[i + 1], l = t[i + 2], f = e[o >> 2];
|
|
491
|
+
o = e[(o & 3) << 4 | s >> 4], s = e[(s & 15) << 2 | l >> 6], l = e[l & 63], r[u++] = f + o + s + l;
|
|
492
|
+
}
|
|
493
|
+
switch (f = 0, l = n, t.length - i) {
|
|
494
|
+
case 2:
|
|
495
|
+
f = t[i + 1], l = e[(f & 15) << 2] || n;
|
|
496
|
+
case 1:
|
|
497
|
+
t = t[i], r[u] = e[t >> 2] + e[(t & 3) << 4 | f >> 4] + l + n;
|
|
498
|
+
}
|
|
499
|
+
return r.join("");
|
|
500
|
+
}
|
|
501
|
+
for (e = ""; 10240 < t.length; ) e += String.fromCharCode.apply(null, t.subarray(0, 10240)), t = t.subarray(10240);
|
|
502
|
+
return e += String.fromCharCode.apply(
|
|
503
|
+
null,
|
|
504
|
+
t
|
|
505
|
+
), btoa(e);
|
|
506
|
+
}
|
|
507
|
+
var se = RegExp("[-_.]", "g");
|
|
508
|
+
function gr(t) {
|
|
509
|
+
switch (t) {
|
|
510
|
+
case "-":
|
|
511
|
+
return "+";
|
|
512
|
+
case "_":
|
|
513
|
+
return "/";
|
|
514
|
+
case ".":
|
|
515
|
+
return "=";
|
|
516
|
+
default:
|
|
517
|
+
return "";
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
function le(t) {
|
|
521
|
+
if (!oe) return mr(t);
|
|
522
|
+
se.test(t) && (t = t.replace(se, gr)), t = atob(t);
|
|
523
|
+
for (var e = new Uint8Array(t.length), r = 0; r < t.length; r++) e[r] = t.charCodeAt(r);
|
|
524
|
+
return e;
|
|
525
|
+
}
|
|
526
|
+
var fe;
|
|
527
|
+
function xt() {
|
|
528
|
+
return fe || (fe = new Uint8Array(0));
|
|
529
|
+
}
|
|
530
|
+
var J = {}, wr = typeof Uint8Array.prototype.slice == "function", A = 0, x = 0;
|
|
531
|
+
function ae(t) {
|
|
532
|
+
var e = 0 > t;
|
|
533
|
+
t = Math.abs(t);
|
|
534
|
+
var r = t >>> 0;
|
|
535
|
+
t = Math.floor((t - r) / 4294967296), e && (r = O(ce(r, t)), e = r.next().value, t = r.next().value, r = e), A = r >>> 0, x = t >>> 0;
|
|
536
|
+
}
|
|
537
|
+
var Ar = typeof BigInt == "function";
|
|
538
|
+
function ce(t, e) {
|
|
539
|
+
return e = ~e, t ? t = ~t + 1 : e += 1, [t, e];
|
|
540
|
+
}
|
|
541
|
+
function he(t, e) {
|
|
542
|
+
this.i = t >>> 0, this.h = e >>> 0;
|
|
543
|
+
}
|
|
544
|
+
function pe(t) {
|
|
545
|
+
if (!t) return ve || (ve = new he(0, 0));
|
|
546
|
+
if (!/^-?\d+$/.test(t)) return null;
|
|
547
|
+
if (16 > t.length) ae(Number(t));
|
|
548
|
+
else if (Ar) t = BigInt(t), A = Number(t & BigInt(4294967295)) >>> 0, x = Number(t >> BigInt(32) & BigInt(4294967295));
|
|
549
|
+
else {
|
|
550
|
+
var e = +(t[0] === "-");
|
|
551
|
+
x = A = 0;
|
|
552
|
+
for (var r = t.length, n = e, i = (r - e) % 6 + e; i <= r; n = i, i += 6) n = Number(t.slice(n, i)), x *= 1e6, A = 1e6 * A + n, 4294967296 <= A && (x += A / 4294967296 | 0, A %= 4294967296);
|
|
553
|
+
e && (e = O(ce(A, x)), t = e.next().value, e = e.next().value, A = t, x = e);
|
|
554
|
+
}
|
|
555
|
+
return new he(A, x);
|
|
556
|
+
}
|
|
557
|
+
var ve;
|
|
558
|
+
function ye(t, e) {
|
|
559
|
+
return Error("Invalid wire type: " + t + " (at position " + e + ")");
|
|
560
|
+
}
|
|
561
|
+
function St() {
|
|
562
|
+
return Error("Failed to read varint, encoding is invalid.");
|
|
563
|
+
}
|
|
564
|
+
function de(t, e) {
|
|
565
|
+
return Error("Tried to read past the end of the data " + e + " > " + t);
|
|
566
|
+
}
|
|
567
|
+
function Y() {
|
|
568
|
+
throw Error("Invalid UTF8");
|
|
569
|
+
}
|
|
570
|
+
function me(t, e) {
|
|
571
|
+
return e = String.fromCharCode.apply(null, e), t == null ? e : t + e;
|
|
572
|
+
}
|
|
573
|
+
var st = void 0, Lt, _r = typeof TextDecoder < "u", Ee, Tr = typeof TextEncoder < "u", ge;
|
|
574
|
+
function we(t) {
|
|
575
|
+
if (t !== J) throw Error("illegal external caller");
|
|
576
|
+
}
|
|
577
|
+
function q(t, e) {
|
|
578
|
+
if (we(e), this.V = t, t != null && t.length === 0) throw Error("ByteString should be constructed with non-empty values");
|
|
579
|
+
}
|
|
580
|
+
function bt() {
|
|
581
|
+
return ge || (ge = new q(null, J));
|
|
582
|
+
}
|
|
583
|
+
function Ae(t) {
|
|
584
|
+
we(J);
|
|
585
|
+
var e = t.V;
|
|
586
|
+
return e = e == null || Ot && e != null && e instanceof Uint8Array ? e : typeof e == "string" ? le(e) : null, e == null ? e : t.V = e;
|
|
587
|
+
}
|
|
588
|
+
function jr(t) {
|
|
589
|
+
if (typeof t == "string") return { buffer: le(t), C: !1 };
|
|
590
|
+
if (Array.isArray(t)) return { buffer: new Uint8Array(t), C: !1 };
|
|
591
|
+
if (t.constructor === Uint8Array) return { buffer: t, C: !1 };
|
|
592
|
+
if (t.constructor === ArrayBuffer) return { buffer: new Uint8Array(t), C: !1 };
|
|
593
|
+
if (t.constructor === q) return { buffer: Ae(t) || xt(), C: !0 };
|
|
594
|
+
if (t instanceof Uint8Array) return { buffer: new Uint8Array(t.buffer, t.byteOffset, t.byteLength), C: !1 };
|
|
595
|
+
throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers");
|
|
596
|
+
}
|
|
597
|
+
function _e(t, e) {
|
|
598
|
+
this.i = null, this.m = !1, this.h = this.j = this.l = 0, It(this, t, e);
|
|
599
|
+
}
|
|
600
|
+
function It(t, e, r) {
|
|
601
|
+
r = r === void 0 ? {} : r, t.S = r.S === void 0 ? !1 : r.S, e && (e = jr(e), t.i = e.buffer, t.m = e.C, t.l = 0, t.j = t.i.length, t.h = t.l);
|
|
602
|
+
}
|
|
603
|
+
_e.prototype.reset = function() {
|
|
604
|
+
this.h = this.l;
|
|
605
|
+
};
|
|
606
|
+
function W(t, e) {
|
|
607
|
+
if (t.h = e, e > t.j) throw de(t.j, e);
|
|
608
|
+
}
|
|
609
|
+
function tt(t) {
|
|
610
|
+
var e = t.i, r = t.h, n = e[r++], i = n & 127;
|
|
611
|
+
if (n & 128 && (n = e[r++], i |= (n & 127) << 7, n & 128 && (n = e[r++], i |= (n & 127) << 14, n & 128 && (n = e[r++], i |= (n & 127) << 21, n & 128 && (n = e[r++], i |= n << 28, n & 128 && e[r++] & 128 && e[r++] & 128 && e[r++] & 128 && e[r++] & 128 && e[r++] & 128))))) throw St();
|
|
612
|
+
return W(t, r), i;
|
|
613
|
+
}
|
|
614
|
+
function Te(t, e) {
|
|
615
|
+
if (0 > e) throw Error("Tried to read a negative byte length: " + e);
|
|
616
|
+
var r = t.h, n = r + e;
|
|
617
|
+
if (n > t.j) throw de(e, t.j - r);
|
|
618
|
+
return t.h = n, r;
|
|
619
|
+
}
|
|
620
|
+
var je = [];
|
|
621
|
+
function Nt() {
|
|
622
|
+
this.h = [];
|
|
623
|
+
}
|
|
624
|
+
Nt.prototype.length = function() {
|
|
625
|
+
return this.h.length;
|
|
626
|
+
}, Nt.prototype.end = function() {
|
|
627
|
+
var t = this.h;
|
|
628
|
+
return this.h = [], t;
|
|
629
|
+
};
|
|
630
|
+
function Fe(t, e, r) {
|
|
631
|
+
for (; 0 < r || 127 < e; ) t.h.push(e & 127 | 128), e = (e >>> 7 | r << 25) >>> 0, r >>>= 7;
|
|
632
|
+
t.h.push(e);
|
|
633
|
+
}
|
|
634
|
+
function X(t, e) {
|
|
635
|
+
for (; 127 < e; ) t.h.push(e & 127 | 128), e >>>= 7;
|
|
636
|
+
t.h.push(e);
|
|
637
|
+
}
|
|
638
|
+
function Pt(t, e) {
|
|
639
|
+
if (je.length) {
|
|
640
|
+
var r = je.pop();
|
|
641
|
+
It(r, t, e), t = r;
|
|
642
|
+
} else t = new _e(t, e);
|
|
643
|
+
this.h = t, this.j = this.h.h, this.i = this.l = -1, this.setOptions(e);
|
|
644
|
+
}
|
|
645
|
+
Pt.prototype.setOptions = function(t) {
|
|
646
|
+
t = t === void 0 ? {} : t, this.ca = t.ca === void 0 ? !1 : t.ca;
|
|
647
|
+
}, Pt.prototype.reset = function() {
|
|
648
|
+
this.h.reset(), this.j = this.h.h, this.i = this.l = -1;
|
|
649
|
+
};
|
|
650
|
+
function Re(t) {
|
|
651
|
+
var e = t.h;
|
|
652
|
+
if (e.h == e.j) return !1;
|
|
653
|
+
t.j = t.h.h;
|
|
654
|
+
var r = tt(t.h) >>> 0;
|
|
655
|
+
if (e = r >>> 3, r &= 7, !(0 <= r && 5 >= r)) throw ye(r, t.j);
|
|
656
|
+
if (1 > e) throw Error("Invalid field number: " + e + " (at position " + t.j + ")");
|
|
657
|
+
return t.l = e, t.i = r, !0;
|
|
658
|
+
}
|
|
659
|
+
function lt(t) {
|
|
660
|
+
switch (t.i) {
|
|
661
|
+
case 0:
|
|
662
|
+
if (t.i != 0) lt(t);
|
|
663
|
+
else t: {
|
|
664
|
+
t = t.h;
|
|
665
|
+
for (var e = t.h, r = e + 10, n = t.i; e < r; ) if ((n[e++] & 128) === 0) {
|
|
666
|
+
W(t, e);
|
|
667
|
+
break t;
|
|
668
|
+
}
|
|
669
|
+
throw St();
|
|
670
|
+
}
|
|
671
|
+
break;
|
|
672
|
+
case 1:
|
|
673
|
+
t = t.h, W(t, t.h + 8);
|
|
674
|
+
break;
|
|
675
|
+
case 2:
|
|
676
|
+
t.i != 2 ? lt(t) : (e = tt(t.h) >>> 0, t = t.h, W(t, t.h + e));
|
|
677
|
+
break;
|
|
678
|
+
case 5:
|
|
679
|
+
t = t.h, W(t, t.h + 4);
|
|
680
|
+
break;
|
|
681
|
+
case 3:
|
|
682
|
+
e = t.l;
|
|
683
|
+
do {
|
|
684
|
+
if (!Re(t)) throw Error("Unmatched start-group tag: stream EOF");
|
|
685
|
+
if (t.i == 4) {
|
|
686
|
+
if (t.l != e) throw Error("Unmatched end-group tag");
|
|
687
|
+
break;
|
|
688
|
+
}
|
|
689
|
+
lt(t);
|
|
690
|
+
} while (!0);
|
|
691
|
+
break;
|
|
692
|
+
default:
|
|
693
|
+
throw ye(t.i, t.j);
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
var ft = [];
|
|
697
|
+
function Fr() {
|
|
698
|
+
this.j = [], this.i = 0, this.h = new Nt();
|
|
699
|
+
}
|
|
700
|
+
function V(t, e) {
|
|
701
|
+
e.length !== 0 && (t.j.push(e), t.i += e.length);
|
|
702
|
+
}
|
|
703
|
+
function Rr(t, e) {
|
|
704
|
+
if (e = e.R) {
|
|
705
|
+
V(t, t.h.end());
|
|
706
|
+
for (var r = 0; r < e.length; r++) V(t, Ae(e[r]) || xt());
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
var D = typeof Symbol == "function" && typeof /* @__PURE__ */ Symbol() == "symbol" ? /* @__PURE__ */ Symbol() : void 0;
|
|
710
|
+
function K(t, e) {
|
|
711
|
+
return D ? t[D] |= e : t.A !== void 0 ? t.A |= e : (Object.defineProperties(t, { A: { value: e, configurable: !0, writable: !0, enumerable: !1 } }), e);
|
|
712
|
+
}
|
|
713
|
+
function Oe(t, e) {
|
|
714
|
+
D ? t[D] && (t[D] &= ~e) : t.A !== void 0 && (t.A &= ~e);
|
|
715
|
+
}
|
|
716
|
+
function g(t) {
|
|
717
|
+
var e;
|
|
718
|
+
return D ? e = t[D] : e = t.A, e ?? 0;
|
|
719
|
+
}
|
|
720
|
+
function P(t, e) {
|
|
721
|
+
D ? t[D] = e : t.A !== void 0 ? t.A = e : Object.defineProperties(t, { A: { value: e, configurable: !0, writable: !0, enumerable: !1 } });
|
|
722
|
+
}
|
|
723
|
+
function Ut(t) {
|
|
724
|
+
return K(t, 1), t;
|
|
725
|
+
}
|
|
726
|
+
function Or(t, e) {
|
|
727
|
+
P(e, (t | 0) & -51);
|
|
728
|
+
}
|
|
729
|
+
function at(t, e) {
|
|
730
|
+
P(e, (t | 18) & -41);
|
|
731
|
+
}
|
|
732
|
+
var Ct = {};
|
|
733
|
+
function ct(t) {
|
|
734
|
+
return t !== null && typeof t == "object" && !Array.isArray(t) && t.constructor === Object;
|
|
735
|
+
}
|
|
736
|
+
var et, xe = [];
|
|
737
|
+
P(xe, 23), et = Object.freeze(xe);
|
|
738
|
+
function Ht(t) {
|
|
739
|
+
if (g(t.o) & 2) throw Error("Cannot mutate an immutable Message");
|
|
740
|
+
}
|
|
741
|
+
function Mt(t) {
|
|
742
|
+
var e = t.length;
|
|
743
|
+
(e = e ? t[e - 1] : void 0) && ct(e) ? e.g = 1 : (e = {}, t.push((e.g = 1, e)));
|
|
744
|
+
}
|
|
745
|
+
function Se(t) {
|
|
746
|
+
var e = t.i + t.G;
|
|
747
|
+
return t.B || (t.B = t.o[e] = {});
|
|
748
|
+
}
|
|
749
|
+
function I(t, e) {
|
|
750
|
+
return e === -1 ? null : e >= t.i ? t.B ? t.B[e] : void 0 : t.o[e + t.G];
|
|
751
|
+
}
|
|
752
|
+
function U(t, e, r, n) {
|
|
753
|
+
Ht(t), rt(t, e, r, n);
|
|
754
|
+
}
|
|
755
|
+
function rt(t, e, r, n) {
|
|
756
|
+
t.j && (t.j = void 0), e >= t.i || n ? Se(t)[e] = r : (t.o[e + t.G] = r, (t = t.B) && e in t && delete t[e]);
|
|
757
|
+
}
|
|
758
|
+
function Gt(t, e, r, n) {
|
|
759
|
+
var i = I(t, e);
|
|
760
|
+
Array.isArray(i) || (i = et);
|
|
761
|
+
var u = g(i);
|
|
762
|
+
if (u & 1 || Ut(i), n) u & 2 || K(i, 2), r & 1 || Object.freeze(i);
|
|
763
|
+
else {
|
|
764
|
+
n = !(r & 2);
|
|
765
|
+
var o = u & 2;
|
|
766
|
+
r & 1 || !o ? n && u & 16 && !o && Oe(i, 16) : (i = Ut(Array.prototype.slice.call(i)), rt(t, e, i));
|
|
767
|
+
}
|
|
768
|
+
return i;
|
|
769
|
+
}
|
|
770
|
+
function Dt(t, e) {
|
|
771
|
+
var r = I(t, e), n = r == null ? r : typeof r == "number" || r === "NaN" || r === "Infinity" || r === "-Infinity" ? Number(r) : void 0;
|
|
772
|
+
return n != null && n !== r && rt(t, e, n), n;
|
|
773
|
+
}
|
|
774
|
+
function Le(t, e, r, n, i) {
|
|
775
|
+
t.h || (t.h = {});
|
|
776
|
+
var u = t.h[r], o = Gt(t, r, 3, i);
|
|
777
|
+
if (!u) {
|
|
778
|
+
var s = o;
|
|
779
|
+
u = [];
|
|
780
|
+
var l = !!(g(t.o) & 16);
|
|
781
|
+
o = !!(g(s) & 2);
|
|
782
|
+
var f = s;
|
|
783
|
+
!i && o && (s = Array.prototype.slice.call(s));
|
|
784
|
+
for (var a = o, p = 0; p < s.length; p++) {
|
|
785
|
+
var h = s[p], c = e, v = !1;
|
|
786
|
+
if (v = v === void 0 ? !1 : v, h = Array.isArray(h) ? new c(h) : v ? new c() : void 0, h !== void 0) {
|
|
787
|
+
c = h.o;
|
|
788
|
+
var y = v = g(c);
|
|
789
|
+
o && (y |= 2), l && (y |= 16), y != v && P(c, y), c = y, a = a || !!(2 & c), u.push(h);
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
return t.h[r] = u, l = g(s), e = l | 33, e = a ? e & -9 : e | 8, l != e && (a = s, Object.isFrozen(a) && (a = Array.prototype.slice.call(a)), P(a, e), s = a), f !== s && rt(
|
|
793
|
+
t,
|
|
794
|
+
r,
|
|
795
|
+
s
|
|
796
|
+
), (i || n && o) && K(u, 2), n && Object.freeze(u), u;
|
|
797
|
+
}
|
|
798
|
+
return i || (i = Object.isFrozen(u), n && !i ? Object.freeze(u) : !n && i && (u = Array.prototype.slice.call(u), t.h[r] = u)), u;
|
|
799
|
+
}
|
|
800
|
+
function Bt(t, e, r) {
|
|
801
|
+
var n = !!(g(t.o) & 2);
|
|
802
|
+
if (e = Le(t, e, r, n, n), t = Gt(t, r, 3, n), !(n || g(t) & 8)) {
|
|
803
|
+
for (n = 0; n < e.length; n++) {
|
|
804
|
+
if (r = e[n], g(r.o) & 2) {
|
|
805
|
+
var i = Ce(r, !1);
|
|
806
|
+
i.j = r;
|
|
807
|
+
} else i = r;
|
|
808
|
+
r !== i && (e[n] = i, t[n] = i.o);
|
|
809
|
+
}
|
|
810
|
+
K(t, 8);
|
|
811
|
+
}
|
|
812
|
+
return e;
|
|
813
|
+
}
|
|
814
|
+
function C(t, e, r) {
|
|
815
|
+
if (r != null && typeof r != "number") throw Error("Value of float/double field must be a number|null|undefined, found " + typeof r + ": " + r);
|
|
816
|
+
U(t, e, r);
|
|
817
|
+
}
|
|
818
|
+
function be(t, e, r, n, i) {
|
|
819
|
+
Ht(t);
|
|
820
|
+
var u = Le(t, r, e, !1, !1);
|
|
821
|
+
return r = n ?? new r(), t = Gt(t, e, 2, !1), i != null ? (u.splice(i, 0, r), t.splice(i, 0, r.o)) : (u.push(r), t.push(r.o)), r.C() && Oe(t, 8), r;
|
|
822
|
+
}
|
|
823
|
+
function ht(t, e) {
|
|
824
|
+
return t ?? e;
|
|
825
|
+
}
|
|
826
|
+
function H(t, e, r) {
|
|
827
|
+
return r = r === void 0 ? 0 : r, ht(Dt(t, e), r);
|
|
828
|
+
}
|
|
829
|
+
var pt;
|
|
830
|
+
function xr(t) {
|
|
831
|
+
switch (typeof t) {
|
|
832
|
+
case "number":
|
|
833
|
+
return isFinite(t) ? t : String(t);
|
|
834
|
+
case "object":
|
|
835
|
+
if (t) if (Array.isArray(t)) {
|
|
836
|
+
if ((g(t) & 128) !== 0) return t = Array.prototype.slice.call(t), Mt(t), t;
|
|
837
|
+
} else {
|
|
838
|
+
if (Ot && t != null && t instanceof Uint8Array) return ue(t);
|
|
839
|
+
if (t instanceof q) {
|
|
840
|
+
var e = t.V;
|
|
841
|
+
return e == null ? "" : typeof e == "string" ? e : t.V = ue(e);
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
return t;
|
|
846
|
+
}
|
|
847
|
+
function Ie(t, e, r, n) {
|
|
848
|
+
if (t != null) {
|
|
849
|
+
if (Array.isArray(t)) t = kt(t, e, r, n !== void 0);
|
|
850
|
+
else if (ct(t)) {
|
|
851
|
+
var i = {}, u;
|
|
852
|
+
for (u in t) i[u] = Ie(t[u], e, r, n);
|
|
853
|
+
t = i;
|
|
854
|
+
} else t = e(t, n);
|
|
855
|
+
return t;
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
function kt(t, e, r, n) {
|
|
859
|
+
var i = g(t);
|
|
860
|
+
n = n ? !!(i & 16) : void 0, t = Array.prototype.slice.call(t);
|
|
861
|
+
for (var u = 0; u < t.length; u++) t[u] = Ie(t[u], e, r, n);
|
|
862
|
+
return r(i, t), t;
|
|
863
|
+
}
|
|
864
|
+
function Sr(t) {
|
|
865
|
+
return t.ja === Ct ? t.toJSON() : xr(t);
|
|
866
|
+
}
|
|
867
|
+
function Lr(t, e) {
|
|
868
|
+
t & 128 && Mt(e);
|
|
869
|
+
}
|
|
870
|
+
function Ne(t, e, r) {
|
|
871
|
+
if (r = r === void 0 ? at : r, t != null) {
|
|
872
|
+
if (Ot && t instanceof Uint8Array) return t.length ? new q(new Uint8Array(t), J) : bt();
|
|
873
|
+
if (Array.isArray(t)) {
|
|
874
|
+
var n = g(t);
|
|
875
|
+
return n & 2 ? t : e && !(n & 32) && (n & 16 || n === 0) ? (P(t, n | 2), t) : (t = kt(t, Ne, n & 4 ? at : r, !0), e = g(t), e & 4 && e & 2 && Object.freeze(t), t);
|
|
876
|
+
}
|
|
877
|
+
return t.ja === Ct ? Ue(t) : t;
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
function Pe(t, e, r, n, i, u, o) {
|
|
881
|
+
if (t = t.h && t.h[r]) {
|
|
882
|
+
if (n = g(t), n & 2 ? n = t : (u = dr(t, Ue), at(n, u), Object.freeze(u), n = u), Ht(e), o = n == null ? et : Ut([]), n != null) {
|
|
883
|
+
for (u = !!n.length, t = 0; t < n.length; t++) {
|
|
884
|
+
var s = n[t];
|
|
885
|
+
u = u && !(g(s.o) & 2), o[t] = s.o;
|
|
886
|
+
}
|
|
887
|
+
u = (u ? 8 : 0) | 1, t = g(o), (t & u) !== u && (Object.isFrozen(o) && (o = Array.prototype.slice.call(o)), P(o, t | u)), e.h || (e.h = {}), e.h[r] = n;
|
|
888
|
+
} else e.h && (e.h[r] = void 0);
|
|
889
|
+
rt(e, r, o, i);
|
|
890
|
+
} else U(e, r, Ne(n, u, o), i);
|
|
891
|
+
}
|
|
892
|
+
function Ue(t) {
|
|
893
|
+
return g(t.o) & 2 || (t = Ce(t, !0), K(t.o, 2)), t;
|
|
894
|
+
}
|
|
895
|
+
function Ce(t, e) {
|
|
896
|
+
var r = t.o, n = [];
|
|
897
|
+
K(n, 16);
|
|
898
|
+
var i = t.constructor.h;
|
|
899
|
+
if (i && n.push(i), i = t.B, i) {
|
|
900
|
+
n.length = r.length, n.fill(void 0, n.length, r.length);
|
|
901
|
+
var u = {};
|
|
902
|
+
n[n.length - 1] = u;
|
|
903
|
+
}
|
|
904
|
+
(g(r) & 128) !== 0 && Mt(n), e = e || t.C() ? at : Or, u = t.constructor, pt = n, n = new u(n), pt = void 0, t.R && (n.R = t.R.slice()), u = !!(g(r) & 16);
|
|
905
|
+
for (var o = i ? r.length - 1 : r.length, s = 0; s < o; s++) Pe(t, n, s - t.G, r[s], !1, u, e);
|
|
906
|
+
if (i) for (var l in i) Pe(t, n, +l, i[l], !0, u, e);
|
|
907
|
+
return n;
|
|
908
|
+
}
|
|
909
|
+
function S(t, e, r) {
|
|
910
|
+
t == null && (t = pt), pt = void 0;
|
|
911
|
+
var n = this.constructor.i || 0, i = 0 < n, u = this.constructor.h, o = !1;
|
|
912
|
+
if (t == null) {
|
|
913
|
+
t = u ? [u] : [];
|
|
914
|
+
var s = 48, l = !0;
|
|
915
|
+
i && (n = 0, s |= 128), P(t, s);
|
|
916
|
+
} else {
|
|
917
|
+
if (!Array.isArray(t) || u && u !== t[0]) throw Error();
|
|
918
|
+
var f = s = K(t, 0);
|
|
919
|
+
if ((l = (16 & f) !== 0) && ((o = (32 & f) !== 0) || (f |= 32)), i) {
|
|
920
|
+
if (128 & f) n = 0;
|
|
921
|
+
else if (0 < t.length) {
|
|
922
|
+
var a = t[t.length - 1];
|
|
923
|
+
if (ct(a) && "g" in a) {
|
|
924
|
+
n = 0, f |= 128, delete a.g;
|
|
925
|
+
var p = !0, h;
|
|
926
|
+
for (h in a) {
|
|
927
|
+
p = !1;
|
|
928
|
+
break;
|
|
929
|
+
}
|
|
930
|
+
p && t.pop();
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
} else if (128 & f) throw Error();
|
|
934
|
+
s !== f && P(t, f);
|
|
935
|
+
}
|
|
936
|
+
this.G = (u ? 0 : -1) - n, this.h = void 0, this.o = t;
|
|
937
|
+
t: {
|
|
938
|
+
if (u = this.o.length, n = u - 1, u && (u = this.o[n], ct(u))) {
|
|
939
|
+
this.B = u, this.i = n - this.G;
|
|
940
|
+
break t;
|
|
941
|
+
}
|
|
942
|
+
e !== void 0 && -1 < e ? (this.i = Math.max(e, n + 1 - this.G), this.B = void 0) : this.i = Number.MAX_VALUE;
|
|
943
|
+
}
|
|
944
|
+
if (!i && this.B && "g" in this.B) throw Error('Unexpected "g" flag in sparse object of message that is not a group type.');
|
|
945
|
+
if (r) {
|
|
946
|
+
e = l && !o && !0, i = this.i;
|
|
947
|
+
var c;
|
|
948
|
+
for (l = 0; l < r.length; l++) o = r[l], o < i ? (o += this.G, (n = t[o]) ? He(n, e) : t[o] = et) : (c || (c = Se(this)), (n = c[o]) ? He(n, e) : c[o] = et);
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
S.prototype.toJSON = function() {
|
|
952
|
+
return kt(this.o, Sr, Lr);
|
|
953
|
+
}, S.prototype.C = function() {
|
|
954
|
+
return !!(g(this.o) & 2);
|
|
955
|
+
};
|
|
956
|
+
function He(t, e) {
|
|
957
|
+
if (Array.isArray(t)) {
|
|
958
|
+
var r = g(t), n = 1;
|
|
959
|
+
!e || r & 2 || (n |= 16), (r & n) !== n && P(t, r | n);
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
S.prototype.ja = Ct, S.prototype.toString = function() {
|
|
963
|
+
return this.o.toString();
|
|
964
|
+
};
|
|
965
|
+
function Me(t, e, r) {
|
|
966
|
+
if (r) {
|
|
967
|
+
var n = {}, i;
|
|
968
|
+
for (i in r) {
|
|
969
|
+
var u = r[i], o = u.ra;
|
|
970
|
+
o || (n.J = u.xa || u.oa.W, u.ia ? (n.aa = Ye(u.ia), o = /* @__PURE__ */ (function(s) {
|
|
971
|
+
return function(l, f, a) {
|
|
972
|
+
return s.J(l, f, a, s.aa);
|
|
973
|
+
};
|
|
974
|
+
})(n)) : u.ka ? (n.Z = We(u.da.P, u.ka), o = /* @__PURE__ */ (function(s) {
|
|
975
|
+
return function(l, f, a) {
|
|
976
|
+
return s.J(l, f, a, s.Z);
|
|
977
|
+
};
|
|
978
|
+
})(n)) : o = n.J, u.ra = o), o(e, t, u.da), n = { J: n.J, aa: n.aa, Z: n.Z };
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
Rr(e, t);
|
|
982
|
+
}
|
|
983
|
+
var vt = /* @__PURE__ */ Symbol();
|
|
984
|
+
function Ge(t, e, r) {
|
|
985
|
+
return t[vt] || (t[vt] = function(n, i) {
|
|
986
|
+
return e(n, i, r);
|
|
987
|
+
});
|
|
988
|
+
}
|
|
989
|
+
function De(t) {
|
|
990
|
+
var e = t[vt];
|
|
991
|
+
if (!e) {
|
|
992
|
+
var r = Wt(t);
|
|
993
|
+
e = function(n, i) {
|
|
994
|
+
return Xe(n, i, r);
|
|
995
|
+
}, t[vt] = e;
|
|
996
|
+
}
|
|
997
|
+
return e;
|
|
998
|
+
}
|
|
999
|
+
function br(t) {
|
|
1000
|
+
var e = t.ia;
|
|
1001
|
+
if (e) return De(e);
|
|
1002
|
+
if (e = t.wa) return Ge(t.da.P, e, t.ka);
|
|
1003
|
+
}
|
|
1004
|
+
function Ir(t) {
|
|
1005
|
+
var e = br(t), r = t.da, n = t.oa.U;
|
|
1006
|
+
return e ? function(i, u) {
|
|
1007
|
+
return n(i, u, r, e);
|
|
1008
|
+
} : function(i, u) {
|
|
1009
|
+
return n(i, u, r);
|
|
1010
|
+
};
|
|
1011
|
+
}
|
|
1012
|
+
function Be(t, e) {
|
|
1013
|
+
var r = t[e];
|
|
1014
|
+
return typeof r == "function" && r.length === 0 && (r = r(), t[e] = r), Array.isArray(r) && (it in r || nt in r || 0 < r.length && typeof r[0] == "function") ? r : void 0;
|
|
1015
|
+
}
|
|
1016
|
+
function ke(t, e, r, n, i, u) {
|
|
1017
|
+
e.P = t[0];
|
|
1018
|
+
var o = 1;
|
|
1019
|
+
if (t.length > o && typeof t[o] != "number") {
|
|
1020
|
+
var s = t[o++];
|
|
1021
|
+
r(e, s);
|
|
1022
|
+
}
|
|
1023
|
+
for (; o < t.length; ) {
|
|
1024
|
+
r = t[o++];
|
|
1025
|
+
for (var l = o + 1; l < t.length && typeof t[l] != "number"; ) l++;
|
|
1026
|
+
switch (s = t[o++], l -= o, l) {
|
|
1027
|
+
case 0:
|
|
1028
|
+
n(e, r, s);
|
|
1029
|
+
break;
|
|
1030
|
+
case 1:
|
|
1031
|
+
(l = Be(t, o)) ? (o++, i(e, r, s, l)) : n(e, r, s, t[o++]);
|
|
1032
|
+
break;
|
|
1033
|
+
case 2:
|
|
1034
|
+
l = o++, l = Be(t, l), i(e, r, s, l, t[o++]);
|
|
1035
|
+
break;
|
|
1036
|
+
case 3:
|
|
1037
|
+
u(e, r, s, t[o++], t[o++], t[o++]);
|
|
1038
|
+
break;
|
|
1039
|
+
case 4:
|
|
1040
|
+
u(e, r, s, t[o++], t[o++], t[o++], t[o++]);
|
|
1041
|
+
break;
|
|
1042
|
+
default:
|
|
1043
|
+
throw Error("unexpected number of binary field arguments: " + l);
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
return e;
|
|
1047
|
+
}
|
|
1048
|
+
var yt = /* @__PURE__ */ Symbol();
|
|
1049
|
+
function Ye(t) {
|
|
1050
|
+
var e = t[yt];
|
|
1051
|
+
if (!e) {
|
|
1052
|
+
var r = Yt(t);
|
|
1053
|
+
e = function(n, i) {
|
|
1054
|
+
return Ke(n, i, r);
|
|
1055
|
+
}, t[yt] = e;
|
|
1056
|
+
}
|
|
1057
|
+
return e;
|
|
1058
|
+
}
|
|
1059
|
+
function We(t, e) {
|
|
1060
|
+
var r = t[yt];
|
|
1061
|
+
return r || (r = function(n, i) {
|
|
1062
|
+
return Me(n, i, e);
|
|
1063
|
+
}, t[yt] = r), r;
|
|
1064
|
+
}
|
|
1065
|
+
var nt = /* @__PURE__ */ Symbol();
|
|
1066
|
+
function Nr(t, e) {
|
|
1067
|
+
t.push(e);
|
|
1068
|
+
}
|
|
1069
|
+
function Pr(t, e, r) {
|
|
1070
|
+
t.push(e, r.W);
|
|
1071
|
+
}
|
|
1072
|
+
function Ur(t, e, r, n) {
|
|
1073
|
+
var i = Ye(n), u = Yt(n).P, o = r.W;
|
|
1074
|
+
t.push(e, function(s, l, f) {
|
|
1075
|
+
return o(s, l, f, u, i);
|
|
1076
|
+
});
|
|
1077
|
+
}
|
|
1078
|
+
function Cr(t, e, r, n, i, u) {
|
|
1079
|
+
var o = We(n, u), s = r.W;
|
|
1080
|
+
t.push(e, function(l, f, a) {
|
|
1081
|
+
return s(l, f, a, n, o);
|
|
1082
|
+
});
|
|
1083
|
+
}
|
|
1084
|
+
function Yt(t) {
|
|
1085
|
+
var e = t[nt];
|
|
1086
|
+
return e || (e = ke(t, t[nt] = [], Nr, Pr, Ur, Cr), it in t && nt in t && (t.length = 0), e);
|
|
1087
|
+
}
|
|
1088
|
+
var it = /* @__PURE__ */ Symbol();
|
|
1089
|
+
function Hr(t, e) {
|
|
1090
|
+
t[0] = e;
|
|
1091
|
+
}
|
|
1092
|
+
function Mr(t, e, r, n) {
|
|
1093
|
+
var i = r.U;
|
|
1094
|
+
t[e] = n ? function(u, o, s) {
|
|
1095
|
+
return i(u, o, s, n);
|
|
1096
|
+
} : i;
|
|
1097
|
+
}
|
|
1098
|
+
function Gr(t, e, r, n, i) {
|
|
1099
|
+
var u = r.U, o = De(n), s = Wt(n).P;
|
|
1100
|
+
t[e] = function(l, f, a) {
|
|
1101
|
+
return u(l, f, a, s, o, i);
|
|
1102
|
+
};
|
|
1103
|
+
}
|
|
1104
|
+
function Dr(t, e, r, n, i, u, o) {
|
|
1105
|
+
var s = r.U, l = Ge(n, i, u);
|
|
1106
|
+
t[e] = function(f, a, p) {
|
|
1107
|
+
return s(f, a, p, n, l, o);
|
|
1108
|
+
};
|
|
1109
|
+
}
|
|
1110
|
+
function Wt(t) {
|
|
1111
|
+
var e = t[it];
|
|
1112
|
+
return e || (e = ke(t, t[it] = {}, Hr, Mr, Gr, Dr), it in t && nt in t && (t.length = 0), e);
|
|
1113
|
+
}
|
|
1114
|
+
function Xe(t, e, r) {
|
|
1115
|
+
for (; Re(e) && e.i != 4; ) {
|
|
1116
|
+
var n = e.l, i = r[n];
|
|
1117
|
+
if (!i) {
|
|
1118
|
+
var u = r[0];
|
|
1119
|
+
u && (u = u[n]) && (i = r[n] = Ir(u));
|
|
1120
|
+
}
|
|
1121
|
+
if (!i || !i(e, t, n)) {
|
|
1122
|
+
i = e, n = t, u = i.j, lt(i);
|
|
1123
|
+
var o = i;
|
|
1124
|
+
if (!o.ca) {
|
|
1125
|
+
if (i = o.h.h - u, o.h.h = u, o = o.h, i == 0) i = bt();
|
|
1126
|
+
else {
|
|
1127
|
+
if (u = Te(o, i), o.S && o.m) i = o.i.subarray(u, u + i);
|
|
1128
|
+
else {
|
|
1129
|
+
o = o.i;
|
|
1130
|
+
var s = u;
|
|
1131
|
+
i = u + i, i = s === i ? xt() : wr ? o.slice(s, i) : new Uint8Array(o.subarray(s, i));
|
|
1132
|
+
}
|
|
1133
|
+
i = i.length == 0 ? bt() : new q(i, J);
|
|
1134
|
+
}
|
|
1135
|
+
(u = n.R) ? u.push(i) : n.R = [i];
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
return t;
|
|
1140
|
+
}
|
|
1141
|
+
function Ke(t, e, r) {
|
|
1142
|
+
for (var n = r.length, i = n % 2 == 1, u = i ? 1 : 0; u < n; u += 2) (0, r[u + 1])(e, t, r[u]);
|
|
1143
|
+
Me(t, e, i ? r[0] : void 0);
|
|
1144
|
+
}
|
|
1145
|
+
function ot(t, e) {
|
|
1146
|
+
return { U: t, W: e };
|
|
1147
|
+
}
|
|
1148
|
+
var N = ot(function(t, e, r) {
|
|
1149
|
+
if (t.i !== 5) return !1;
|
|
1150
|
+
t = t.h;
|
|
1151
|
+
var n = t.i, i = t.h, u = n[i], o = n[i + 1], s = n[i + 2];
|
|
1152
|
+
return n = n[i + 3], W(t, t.h + 4), o = (u << 0 | o << 8 | s << 16 | n << 24) >>> 0, t = 2 * (o >> 31) + 1, u = o >>> 23 & 255, o &= 8388607, U(e, r, u == 255 ? o ? NaN : 1 / 0 * t : u == 0 ? t * Math.pow(2, -149) * o : t * Math.pow(2, u - 150) * (o + Math.pow(2, 23))), !0;
|
|
1153
|
+
}, function(t, e, r) {
|
|
1154
|
+
if (e = Dt(e, r), e != null) {
|
|
1155
|
+
X(t.h, 8 * r + 5), t = t.h;
|
|
1156
|
+
var n = +e;
|
|
1157
|
+
n === 0 ? 0 < 1 / n ? A = x = 0 : (x = 0, A = 2147483648) : isNaN(n) ? (x = 0, A = 2147483647) : (n = (r = 0 > n ? -2147483648 : 0) ? -n : n, 34028234663852886e22 < n ? (x = 0, A = (r | 2139095040) >>> 0) : 11754943508222875e-54 > n ? (n = Math.round(n / Math.pow(2, -149)), x = 0, A = (r | n) >>> 0) : (e = Math.floor(Math.log(n) / Math.LN2), n *= Math.pow(2, -e), n = Math.round(8388608 * n), 16777216 <= n && ++e, x = 0, A = (r | e + 127 << 23 | n & 8388607) >>> 0)), r = A, t.h.push(r >>> 0 & 255), t.h.push(r >>> 8 & 255), t.h.push(r >>> 16 & 255), t.h.push(r >>> 24 & 255);
|
|
1158
|
+
}
|
|
1159
|
+
}), Br = ot(function(t, e, r) {
|
|
1160
|
+
if (t.i !== 0) return !1;
|
|
1161
|
+
var n = t.h, i = 0, u = t = 0, o = n.i, s = n.h;
|
|
1162
|
+
do {
|
|
1163
|
+
var l = o[s++];
|
|
1164
|
+
i |= (l & 127) << u, u += 7;
|
|
1165
|
+
} while (32 > u && l & 128);
|
|
1166
|
+
for (32 < u && (t |= (l & 127) >> 4), u = 3; 32 > u && l & 128; u += 7) l = o[s++], t |= (l & 127) << u;
|
|
1167
|
+
if (W(
|
|
1168
|
+
n,
|
|
1169
|
+
s
|
|
1170
|
+
), 128 > l)
|
|
1171
|
+
n = i >>> 0, l = t >>> 0, (t = l & 2147483648) && (n = ~n + 1 >>> 0, l = ~l >>> 0, n == 0 && (l = l + 1 >>> 0)), n = 4294967296 * l + (n >>> 0);
|
|
1172
|
+
else throw St();
|
|
1173
|
+
return U(e, r, t ? -n : n), !0;
|
|
1174
|
+
}, function(t, e, r) {
|
|
1175
|
+
e = I(e, r), e != null && (typeof e == "string" && pe(e), e != null && (X(t.h, 8 * r), typeof e == "number" ? (t = t.h, ae(e), Fe(t, A, x)) : (r = pe(e), Fe(t.h, r.i, r.h))));
|
|
1176
|
+
}), kr = ot(function(t, e, r) {
|
|
1177
|
+
return t.i !== 0 ? !1 : (U(e, r, tt(t.h)), !0);
|
|
1178
|
+
}, function(t, e, r) {
|
|
1179
|
+
if (e = I(e, r), e != null && e != null) if (X(t.h, 8 * r), t = t.h, r = e, 0 <= r) X(t, r);
|
|
1180
|
+
else {
|
|
1181
|
+
for (e = 0; 9 > e; e++) t.h.push(r & 127 | 128), r >>= 7;
|
|
1182
|
+
t.h.push(1);
|
|
1183
|
+
}
|
|
1184
|
+
}), Ve = ot(function(t, e, r) {
|
|
1185
|
+
if (t.i !== 2) return !1;
|
|
1186
|
+
var n = tt(t.h) >>> 0;
|
|
1187
|
+
t = t.h;
|
|
1188
|
+
var i = Te(t, n);
|
|
1189
|
+
if (t = t.i, _r) {
|
|
1190
|
+
var u = t, o;
|
|
1191
|
+
(o = Lt) || (o = Lt = new TextDecoder("utf-8", { fatal: !0 })), t = i + n, u = i === 0 && t === u.length ? u : u.subarray(i, t);
|
|
1192
|
+
try {
|
|
1193
|
+
var s = o.decode(u);
|
|
1194
|
+
} catch (p) {
|
|
1195
|
+
if (st === void 0) {
|
|
1196
|
+
try {
|
|
1197
|
+
o.decode(new Uint8Array([128]));
|
|
1198
|
+
} catch {
|
|
1199
|
+
}
|
|
1200
|
+
try {
|
|
1201
|
+
o.decode(new Uint8Array([97])), st = !0;
|
|
1202
|
+
} catch {
|
|
1203
|
+
st = !1;
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
throw !st && (Lt = void 0), p;
|
|
1207
|
+
}
|
|
1208
|
+
} else {
|
|
1209
|
+
s = i, n = s + n, i = [];
|
|
1210
|
+
for (var l = null, f, a; s < n; ) f = t[s++], 128 > f ? i.push(f) : 224 > f ? s >= n ? Y() : (a = t[s++], 194 > f || (a & 192) !== 128 ? (s--, Y()) : i.push((f & 31) << 6 | a & 63)) : 240 > f ? s >= n - 1 ? Y() : (a = t[s++], (a & 192) !== 128 || f === 224 && 160 > a || f === 237 && 160 <= a || ((u = t[s++]) & 192) !== 128 ? (s--, Y()) : i.push((f & 15) << 12 | (a & 63) << 6 | u & 63)) : 244 >= f ? s >= n - 2 ? Y() : (a = t[s++], (a & 192) !== 128 || (f << 28) + (a - 144) >> 30 !== 0 || ((u = t[s++]) & 192) !== 128 || ((o = t[s++]) & 192) !== 128 ? (s--, Y()) : (f = (f & 7) << 18 | (a & 63) << 12 | (u & 63) << 6 | o & 63, f -= 65536, i.push((f >> 10 & 1023) + 55296, (f & 1023) + 56320))) : Y(), 8192 <= i.length && (l = me(l, i), i.length = 0);
|
|
1211
|
+
s = me(l, i);
|
|
1212
|
+
}
|
|
1213
|
+
return U(e, r, s), !0;
|
|
1214
|
+
}, function(t, e, r) {
|
|
1215
|
+
if (e = I(e, r), e != null) {
|
|
1216
|
+
var n = !1;
|
|
1217
|
+
if (n = n === void 0 ? !1 : n, Tr) {
|
|
1218
|
+
if (n && /(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(e)) throw Error("Found an unpaired surrogate");
|
|
1219
|
+
e = (Ee || (Ee = new TextEncoder())).encode(e);
|
|
1220
|
+
} else {
|
|
1221
|
+
for (var i = 0, u = new Uint8Array(3 * e.length), o = 0; o < e.length; o++) {
|
|
1222
|
+
var s = e.charCodeAt(o);
|
|
1223
|
+
if (128 > s) u[i++] = s;
|
|
1224
|
+
else {
|
|
1225
|
+
if (2048 > s) u[i++] = s >> 6 | 192;
|
|
1226
|
+
else {
|
|
1227
|
+
if (55296 <= s && 57343 >= s) {
|
|
1228
|
+
if (56319 >= s && o < e.length) {
|
|
1229
|
+
var l = e.charCodeAt(++o);
|
|
1230
|
+
if (56320 <= l && 57343 >= l) {
|
|
1231
|
+
s = 1024 * (s - 55296) + l - 56320 + 65536, u[i++] = s >> 18 | 240, u[i++] = s >> 12 & 63 | 128, u[i++] = s >> 6 & 63 | 128, u[i++] = s & 63 | 128;
|
|
1232
|
+
continue;
|
|
1233
|
+
} else o--;
|
|
1234
|
+
}
|
|
1235
|
+
if (n) throw Error("Found an unpaired surrogate");
|
|
1236
|
+
s = 65533;
|
|
1237
|
+
}
|
|
1238
|
+
u[i++] = s >> 12 | 224, u[i++] = s >> 6 & 63 | 128;
|
|
1239
|
+
}
|
|
1240
|
+
u[i++] = s & 63 | 128;
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
e = i === u.length ? u : u.subarray(0, i);
|
|
1244
|
+
}
|
|
1245
|
+
X(t.h, 8 * r + 2), X(t.h, e.length), V(t, t.h.end()), V(t, e);
|
|
1246
|
+
}
|
|
1247
|
+
}), ze = ot(function(t, e, r, n, i) {
|
|
1248
|
+
if (t.i !== 2) return !1;
|
|
1249
|
+
e = be(e, r, n), r = t.h.j, n = tt(t.h) >>> 0;
|
|
1250
|
+
var u = t.h.h + n, o = u - r;
|
|
1251
|
+
if (0 >= o && (t.h.j = u, i(e, t, void 0, void 0, void 0), o = u - t.h.h), o) throw Error("Message parsing ended unexpectedly. Expected to read " + (n + " bytes, instead read " + (n - o) + " bytes, either the data ended unexpectedly or the message misreported its own length"));
|
|
1252
|
+
return t.h.h = u, t.h.j = r, !0;
|
|
1253
|
+
}, function(t, e, r, n, i) {
|
|
1254
|
+
if (e = Bt(e, n, r), e != null) for (n = 0; n < e.length; n++) {
|
|
1255
|
+
var u = t;
|
|
1256
|
+
X(u.h, 8 * r + 2);
|
|
1257
|
+
var o = u.h.end();
|
|
1258
|
+
V(u, o), o.push(u.i), u = o, i(e[n], t), o = t;
|
|
1259
|
+
var s = u.pop();
|
|
1260
|
+
for (s = o.i + o.h.length() - s; 127 < s; ) u.push(s & 127 | 128), s >>>= 7, o.i++;
|
|
1261
|
+
u.push(s), o.i++;
|
|
1262
|
+
}
|
|
1263
|
+
});
|
|
1264
|
+
function Xt(t) {
|
|
1265
|
+
return function(e, r) {
|
|
1266
|
+
t: {
|
|
1267
|
+
if (ft.length) {
|
|
1268
|
+
var n = ft.pop();
|
|
1269
|
+
n.setOptions(r), It(n.h, e, r), e = n;
|
|
1270
|
+
} else e = new Pt(e, r);
|
|
1271
|
+
try {
|
|
1272
|
+
var i = Wt(t), u = Xe(new i.P(), e, i);
|
|
1273
|
+
break t;
|
|
1274
|
+
} finally {
|
|
1275
|
+
i = e.h, i.i = null, i.m = !1, i.l = 0, i.j = 0, i.h = 0, i.S = !1, e.l = -1, e.i = -1, 100 > ft.length && ft.push(e);
|
|
1276
|
+
}
|
|
1277
|
+
u = void 0;
|
|
1278
|
+
}
|
|
1279
|
+
return u;
|
|
1280
|
+
};
|
|
1281
|
+
}
|
|
1282
|
+
function Kt(t) {
|
|
1283
|
+
return function() {
|
|
1284
|
+
var e = new Fr();
|
|
1285
|
+
Ke(this, e, Yt(t)), V(e, e.h.end());
|
|
1286
|
+
for (var r = new Uint8Array(e.i), n = e.j, i = n.length, u = 0, o = 0; o < i; o++) {
|
|
1287
|
+
var s = n[o];
|
|
1288
|
+
r.set(s, u), u += s.length;
|
|
1289
|
+
}
|
|
1290
|
+
return e.j = [r], r;
|
|
1291
|
+
};
|
|
1292
|
+
}
|
|
1293
|
+
function z(t) {
|
|
1294
|
+
S.call(this, t);
|
|
1295
|
+
}
|
|
1296
|
+
Z(z, S);
|
|
1297
|
+
var Ze = [z, 1, kr, 2, N, 3, Ve, 4, Ve];
|
|
1298
|
+
z.prototype.l = Kt(Ze);
|
|
1299
|
+
function Vt(t) {
|
|
1300
|
+
S.call(this, t, -1, Yr);
|
|
1301
|
+
}
|
|
1302
|
+
Z(Vt, S), Vt.prototype.addClassification = function(t, e) {
|
|
1303
|
+
return be(this, 1, z, t, e), this;
|
|
1304
|
+
};
|
|
1305
|
+
var Yr = [1], Wr = Xt([Vt, 1, ze, Ze]);
|
|
1306
|
+
function ut(t) {
|
|
1307
|
+
S.call(this, t);
|
|
1308
|
+
}
|
|
1309
|
+
Z(ut, S);
|
|
1310
|
+
var $e = [ut, 1, N, 2, N, 3, N, 4, N, 5, N];
|
|
1311
|
+
ut.prototype.l = Kt($e);
|
|
1312
|
+
function Qe(t) {
|
|
1313
|
+
S.call(this, t, -1, Xr);
|
|
1314
|
+
}
|
|
1315
|
+
Z(Qe, S);
|
|
1316
|
+
var Xr = [1], Kr = Xt([Qe, 1, ze, $e]);
|
|
1317
|
+
function dt(t) {
|
|
1318
|
+
S.call(this, t);
|
|
1319
|
+
}
|
|
1320
|
+
Z(dt, S);
|
|
1321
|
+
var Je = [dt, 1, N, 2, N, 3, N, 4, N, 5, N, 6, Br], Vr = Xt(Je);
|
|
1322
|
+
dt.prototype.l = Kt(Je);
|
|
1323
|
+
function qe(t, e, r) {
|
|
1324
|
+
if (r = t.createShader(r === 0 ? t.VERTEX_SHADER : t.FRAGMENT_SHADER), t.shaderSource(r, e), t.compileShader(r), !t.getShaderParameter(r, t.COMPILE_STATUS)) throw Error(`Could not compile WebGL shader.
|
|
1325
|
+
|
|
1326
|
+
` + t.getShaderInfoLog(r));
|
|
1327
|
+
return r;
|
|
1328
|
+
}
|
|
1329
|
+
function zr(t) {
|
|
1330
|
+
return Bt(t, z, 1).map(function(e) {
|
|
1331
|
+
var r = I(e, 1);
|
|
1332
|
+
return { index: r ?? 0, qa: H(e, 2), label: I(e, 3) != null ? ht(I(e, 3), "") : void 0, displayName: I(e, 4) != null ? ht(I(e, 4), "") : void 0 };
|
|
1333
|
+
});
|
|
1334
|
+
}
|
|
1335
|
+
function Zr(t) {
|
|
1336
|
+
return { x: H(t, 1), y: H(t, 2), z: H(t, 3), visibility: Dt(t, 4) != null ? H(t, 4) : void 0 };
|
|
1337
|
+
}
|
|
1338
|
+
function zt(t) {
|
|
1339
|
+
return Bt(Kr(t), ut, 1).map(Zr);
|
|
1340
|
+
}
|
|
1341
|
+
function Zt(t, e) {
|
|
1342
|
+
this.i = t, this.h = e, this.m = 0;
|
|
1343
|
+
}
|
|
1344
|
+
function tr(t, e, r) {
|
|
1345
|
+
return $r(t, e), typeof t.h.canvas.transferToImageBitmap == "function" ? Promise.resolve(t.h.canvas.transferToImageBitmap()) : r ? Promise.resolve(t.h.canvas) : typeof createImageBitmap == "function" ? createImageBitmap(t.h.canvas) : (t.j === void 0 && (t.j = document.createElement("canvas")), new Promise(function(n) {
|
|
1346
|
+
t.j.height = t.h.canvas.height, t.j.width = t.h.canvas.width, t.j.getContext("2d", {}).drawImage(t.h.canvas, 0, 0, t.h.canvas.width, t.h.canvas.height), n(t.j);
|
|
1347
|
+
}));
|
|
1348
|
+
}
|
|
1349
|
+
function $r(t, e) {
|
|
1350
|
+
var r = t.h;
|
|
1351
|
+
if (t.s === void 0) {
|
|
1352
|
+
var n = qe(r, `
|
|
1353
|
+
attribute vec2 aVertex;
|
|
1354
|
+
attribute vec2 aTex;
|
|
1355
|
+
varying vec2 vTex;
|
|
1356
|
+
void main(void) {
|
|
1357
|
+
gl_Position = vec4(aVertex, 0.0, 1.0);
|
|
1358
|
+
vTex = aTex;
|
|
1359
|
+
}`, 0), i = qe(r, `
|
|
1360
|
+
precision mediump float;
|
|
1361
|
+
varying vec2 vTex;
|
|
1362
|
+
uniform sampler2D sampler0;
|
|
1363
|
+
void main(){
|
|
1364
|
+
gl_FragColor = texture2D(sampler0, vTex);
|
|
1365
|
+
}`, 1), u = r.createProgram();
|
|
1366
|
+
if (r.attachShader(u, n), r.attachShader(u, i), r.linkProgram(u), !r.getProgramParameter(u, r.LINK_STATUS)) throw Error(`Could not compile WebGL program.
|
|
1367
|
+
|
|
1368
|
+
` + r.getProgramInfoLog(u));
|
|
1369
|
+
n = t.s = u, r.useProgram(n), i = r.getUniformLocation(n, "sampler0"), t.l = { O: r.getAttribLocation(n, "aVertex"), N: r.getAttribLocation(n, "aTex"), ya: i }, t.v = r.createBuffer(), r.bindBuffer(r.ARRAY_BUFFER, t.v), r.enableVertexAttribArray(t.l.O), r.vertexAttribPointer(t.l.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), r.bindBuffer(r.ARRAY_BUFFER, null), t.u = r.createBuffer(), r.bindBuffer(r.ARRAY_BUFFER, t.u), r.enableVertexAttribArray(t.l.N), r.vertexAttribPointer(
|
|
1370
|
+
t.l.N,
|
|
1371
|
+
2,
|
|
1372
|
+
r.FLOAT,
|
|
1373
|
+
!1,
|
|
1374
|
+
0,
|
|
1375
|
+
0
|
|
1376
|
+
), r.bufferData(r.ARRAY_BUFFER, new Float32Array([0, 1, 0, 0, 1, 0, 1, 1]), r.STATIC_DRAW), r.bindBuffer(r.ARRAY_BUFFER, null), r.uniform1i(i, 0);
|
|
1377
|
+
}
|
|
1378
|
+
n = t.l, r.useProgram(t.s), r.canvas.width = e.width, r.canvas.height = e.height, r.viewport(0, 0, e.width, e.height), r.activeTexture(r.TEXTURE0), t.i.bindTexture2d(e.glName), r.enableVertexAttribArray(n.O), r.bindBuffer(r.ARRAY_BUFFER, t.v), r.vertexAttribPointer(n.O, 2, r.FLOAT, !1, 0, 0), r.enableVertexAttribArray(n.N), r.bindBuffer(r.ARRAY_BUFFER, t.u), r.vertexAttribPointer(
|
|
1379
|
+
n.N,
|
|
1380
|
+
2,
|
|
1381
|
+
r.FLOAT,
|
|
1382
|
+
!1,
|
|
1383
|
+
0,
|
|
1384
|
+
0
|
|
1385
|
+
), r.bindFramebuffer(r.DRAW_FRAMEBUFFER ? r.DRAW_FRAMEBUFFER : r.FRAMEBUFFER, null), r.clearColor(0, 0, 0, 0), r.clear(r.COLOR_BUFFER_BIT), r.colorMask(!0, !0, !0, !0), r.drawArrays(r.TRIANGLE_FAN, 0, 4), r.disableVertexAttribArray(n.O), r.disableVertexAttribArray(n.N), r.bindBuffer(r.ARRAY_BUFFER, null), t.i.bindTexture2d(0);
|
|
1386
|
+
}
|
|
1387
|
+
function Qr(t) {
|
|
1388
|
+
this.h = t;
|
|
1389
|
+
}
|
|
1390
|
+
var Jr = new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 9, 1, 7, 0, 65, 0, 253, 15, 26, 11]);
|
|
1391
|
+
function qr(t, e) {
|
|
1392
|
+
return e + t;
|
|
1393
|
+
}
|
|
1394
|
+
function er(t, e) {
|
|
1395
|
+
window[t] = e;
|
|
1396
|
+
}
|
|
1397
|
+
function tn(t) {
|
|
1398
|
+
var e = document.createElement("script");
|
|
1399
|
+
return e.setAttribute("src", t), e.setAttribute("crossorigin", "anonymous"), new Promise(function(r) {
|
|
1400
|
+
e.addEventListener("load", function() {
|
|
1401
|
+
r();
|
|
1402
|
+
}, !1), e.addEventListener("error", function() {
|
|
1403
|
+
r();
|
|
1404
|
+
}, !1), document.body.appendChild(e);
|
|
1405
|
+
});
|
|
1406
|
+
}
|
|
1407
|
+
function en() {
|
|
1408
|
+
return R(function(t) {
|
|
1409
|
+
switch (t.h) {
|
|
1410
|
+
case 1:
|
|
1411
|
+
return t.s = 2, w(t, WebAssembly.instantiate(Jr), 4);
|
|
1412
|
+
case 4:
|
|
1413
|
+
t.h = 3, t.s = 0;
|
|
1414
|
+
break;
|
|
1415
|
+
case 2:
|
|
1416
|
+
return t.s = 0, t.l = null, t.return(!1);
|
|
1417
|
+
case 3:
|
|
1418
|
+
return t.return(!0);
|
|
1419
|
+
}
|
|
1420
|
+
});
|
|
1421
|
+
}
|
|
1422
|
+
function $t(t) {
|
|
1423
|
+
if (this.h = t, this.listeners = {}, this.l = {}, this.L = {}, this.s = {}, this.v = {}, this.M = this.u = this.ga = !0, this.I = Promise.resolve(), this.fa = "", this.D = {}, this.locateFile = t && t.locateFile || qr, typeof window == "object") var e = window.location.pathname.toString().substring(0, window.location.pathname.toString().lastIndexOf("/")) + "/";
|
|
1424
|
+
else if (typeof location < "u") e = location.pathname.toString().substring(0, location.pathname.toString().lastIndexOf("/")) + "/";
|
|
1425
|
+
else throw Error("solutions can only be loaded on a web page or in a web worker");
|
|
1426
|
+
if (this.ha = e, t.options) {
|
|
1427
|
+
e = O(Object.keys(t.options));
|
|
1428
|
+
for (var r = e.next(); !r.done; r = e.next()) {
|
|
1429
|
+
r = r.value;
|
|
1430
|
+
var n = t.options[r].default;
|
|
1431
|
+
n !== void 0 && (this.l[r] = typeof n == "function" ? n() : n);
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
F = $t.prototype, F.close = function() {
|
|
1436
|
+
return this.j && this.j.delete(), Promise.resolve();
|
|
1437
|
+
};
|
|
1438
|
+
function rn(t) {
|
|
1439
|
+
var e, r, n, i, u, o, s, l, f, a, p;
|
|
1440
|
+
return R(function(h) {
|
|
1441
|
+
switch (h.h) {
|
|
1442
|
+
case 1:
|
|
1443
|
+
return t.ga ? (e = t.h.files === void 0 ? [] : typeof t.h.files == "function" ? t.h.files(t.l) : t.h.files, w(h, en(), 2)) : h.return();
|
|
1444
|
+
case 2:
|
|
1445
|
+
if (r = h.i, typeof window == "object") return er("createMediapipeSolutionsWasm", { locateFile: t.locateFile }), er("createMediapipeSolutionsPackedAssets", { locateFile: t.locateFile }), o = e.filter(function(c) {
|
|
1446
|
+
return c.data !== void 0;
|
|
1447
|
+
}), s = e.filter(function(c) {
|
|
1448
|
+
return c.data === void 0;
|
|
1449
|
+
}), l = Promise.all(o.map(function(c) {
|
|
1450
|
+
var v = mt(t, c.url);
|
|
1451
|
+
if (c.path !== void 0) {
|
|
1452
|
+
var y = c.path;
|
|
1453
|
+
v = v.then(function(E) {
|
|
1454
|
+
return t.overrideFile(y, E), Promise.resolve(E);
|
|
1455
|
+
});
|
|
1456
|
+
}
|
|
1457
|
+
return v;
|
|
1458
|
+
})), f = Promise.all(s.map(function(c) {
|
|
1459
|
+
return c.simd === void 0 || c.simd && r || !c.simd && !r ? tn(t.locateFile(c.url, t.ha)) : Promise.resolve();
|
|
1460
|
+
})).then(function() {
|
|
1461
|
+
var c, v, y;
|
|
1462
|
+
return R(function(E) {
|
|
1463
|
+
if (E.h == 1) return c = window.createMediapipeSolutionsWasm, v = window.createMediapipeSolutionsPackedAssets, y = t, w(E, c(v), 2);
|
|
1464
|
+
y.i = E.i, E.h = 0;
|
|
1465
|
+
});
|
|
1466
|
+
}), a = (function() {
|
|
1467
|
+
return R(function(c) {
|
|
1468
|
+
return t.h.graph && t.h.graph.url ? c = w(
|
|
1469
|
+
c,
|
|
1470
|
+
mt(t, t.h.graph.url),
|
|
1471
|
+
0
|
|
1472
|
+
) : (c.h = 0, c = void 0), c;
|
|
1473
|
+
});
|
|
1474
|
+
})(), w(h, Promise.all([f, l, a]), 7);
|
|
1475
|
+
if (typeof importScripts != "function") throw Error("solutions can only be loaded on a web page or in a web worker");
|
|
1476
|
+
return n = e.filter(function(c) {
|
|
1477
|
+
return c.simd === void 0 || c.simd && r || !c.simd && !r;
|
|
1478
|
+
}).map(function(c) {
|
|
1479
|
+
return t.locateFile(c.url, t.ha);
|
|
1480
|
+
}), importScripts.apply(null, qt(n)), i = t, w(h, createMediapipeSolutionsWasm(Module), 6);
|
|
1481
|
+
case 6:
|
|
1482
|
+
i.i = h.i, t.m = new OffscreenCanvas(1, 1), t.i.canvas = t.m, u = t.i.GL.createContext(t.m, {
|
|
1483
|
+
antialias: !1,
|
|
1484
|
+
alpha: !1,
|
|
1485
|
+
va: typeof WebGL2RenderingContext < "u" ? 2 : 1
|
|
1486
|
+
}), t.i.GL.makeContextCurrent(u), h.h = 4;
|
|
1487
|
+
break;
|
|
1488
|
+
case 7:
|
|
1489
|
+
if (t.m = document.createElement("canvas"), p = t.m.getContext("webgl2", {}), !p && (p = t.m.getContext("webgl", {}), !p)) return alert("Failed to create WebGL canvas context when passing video frame."), h.return();
|
|
1490
|
+
t.K = p, t.i.canvas = t.m, t.i.createContext(t.m, !0, !0, {});
|
|
1491
|
+
case 4:
|
|
1492
|
+
t.j = new t.i.SolutionWasm(), t.ga = !1, h.h = 0;
|
|
1493
|
+
}
|
|
1494
|
+
});
|
|
1495
|
+
}
|
|
1496
|
+
function nn(t) {
|
|
1497
|
+
var e, r, n, i, u, o, s, l;
|
|
1498
|
+
return R(function(f) {
|
|
1499
|
+
if (f.h == 1) {
|
|
1500
|
+
if (t.h.graph && t.h.graph.url && t.fa === t.h.graph.url) return f.return();
|
|
1501
|
+
if (t.u = !0, !t.h.graph || !t.h.graph.url) {
|
|
1502
|
+
f.h = 2;
|
|
1503
|
+
return;
|
|
1504
|
+
}
|
|
1505
|
+
return t.fa = t.h.graph.url, w(f, mt(t, t.h.graph.url), 3);
|
|
1506
|
+
}
|
|
1507
|
+
for (f.h != 2 && (e = f.i, t.j.loadGraph(e)), r = O(Object.keys(t.D)), n = r.next(); !n.done; n = r.next()) i = n.value, t.j.overrideFile(i, t.D[i]);
|
|
1508
|
+
if (t.D = {}, t.h.listeners) for (u = O(t.h.listeners), o = u.next(); !o.done; o = u.next()) s = o.value, ln(t, s);
|
|
1509
|
+
l = t.l, t.l = {}, t.setOptions(l), f.h = 0;
|
|
1510
|
+
});
|
|
1511
|
+
}
|
|
1512
|
+
F.reset = function() {
|
|
1513
|
+
var t = this;
|
|
1514
|
+
return R(function(e) {
|
|
1515
|
+
t.j && (t.j.reset(), t.s = {}, t.v = {}), e.h = 0;
|
|
1516
|
+
});
|
|
1517
|
+
}, F.setOptions = function(t, e) {
|
|
1518
|
+
var r = this;
|
|
1519
|
+
if (e = e || this.h.options) {
|
|
1520
|
+
for (var n = [], i = [], u = {}, o = O(Object.keys(t)), s = o.next(); !s.done; u = { X: u.X, Y: u.Y }, s = o.next()) if (s = s.value, !(s in this.l && this.l[s] === t[s])) {
|
|
1521
|
+
this.l[s] = t[s];
|
|
1522
|
+
var l = e[s];
|
|
1523
|
+
l !== void 0 && (l.onChange && (u.X = l.onChange, u.Y = t[s], n.push(/* @__PURE__ */ (function(f) {
|
|
1524
|
+
return function() {
|
|
1525
|
+
var a;
|
|
1526
|
+
return R(function(p) {
|
|
1527
|
+
if (p.h == 1) return w(p, f.X(f.Y), 2);
|
|
1528
|
+
a = p.i, a === !0 && (r.u = !0), p.h = 0;
|
|
1529
|
+
});
|
|
1530
|
+
};
|
|
1531
|
+
})(u))), l.graphOptionXref && (s = Object.assign(
|
|
1532
|
+
{},
|
|
1533
|
+
{ calculatorName: "", calculatorIndex: 0 },
|
|
1534
|
+
l.graphOptionXref,
|
|
1535
|
+
{ valueNumber: l.type === 1 ? t[s] : 0, valueBoolean: l.type === 0 ? t[s] : !1, valueString: l.type === 2 ? t[s] : "" }
|
|
1536
|
+
), i.push(s)));
|
|
1537
|
+
}
|
|
1538
|
+
(n.length !== 0 || i.length !== 0) && (this.u = !0, this.H = (this.H === void 0 ? [] : this.H).concat(i), this.F = (this.F === void 0 ? [] : this.F).concat(n));
|
|
1539
|
+
}
|
|
1540
|
+
};
|
|
1541
|
+
function on(t) {
|
|
1542
|
+
var e, r, n, i, u, o, s;
|
|
1543
|
+
return R(function(l) {
|
|
1544
|
+
switch (l.h) {
|
|
1545
|
+
case 1:
|
|
1546
|
+
if (!t.u) return l.return();
|
|
1547
|
+
if (!t.F) {
|
|
1548
|
+
l.h = 2;
|
|
1549
|
+
break;
|
|
1550
|
+
}
|
|
1551
|
+
e = O(t.F), r = e.next();
|
|
1552
|
+
case 3:
|
|
1553
|
+
if (r.done) {
|
|
1554
|
+
l.h = 5;
|
|
1555
|
+
break;
|
|
1556
|
+
}
|
|
1557
|
+
return n = r.value, w(l, n(), 4);
|
|
1558
|
+
case 4:
|
|
1559
|
+
r = e.next(), l.h = 3;
|
|
1560
|
+
break;
|
|
1561
|
+
case 5:
|
|
1562
|
+
t.F = void 0;
|
|
1563
|
+
case 2:
|
|
1564
|
+
if (t.H) {
|
|
1565
|
+
for (i = new t.i.GraphOptionChangeRequestList(), u = O(t.H), o = u.next(); !o.done; o = u.next()) s = o.value, i.push_back(s);
|
|
1566
|
+
t.j.changeOptions(i), i.delete(), t.H = void 0;
|
|
1567
|
+
}
|
|
1568
|
+
t.u = !1, l.h = 0;
|
|
1569
|
+
}
|
|
1570
|
+
});
|
|
1571
|
+
}
|
|
1572
|
+
F.initialize = function() {
|
|
1573
|
+
var t = this;
|
|
1574
|
+
return R(function(e) {
|
|
1575
|
+
return e.h == 1 ? w(e, rn(t), 2) : e.h != 3 ? w(e, nn(t), 3) : w(e, on(t), 0);
|
|
1576
|
+
});
|
|
1577
|
+
};
|
|
1578
|
+
function mt(t, e) {
|
|
1579
|
+
var r, n;
|
|
1580
|
+
return R(function(i) {
|
|
1581
|
+
return e in t.L ? i.return(t.L[e]) : (r = t.locateFile(e, ""), n = fetch(r).then(function(u) {
|
|
1582
|
+
return u.arrayBuffer();
|
|
1583
|
+
}), t.L[e] = n, i.return(n));
|
|
1584
|
+
});
|
|
1585
|
+
}
|
|
1586
|
+
F.overrideFile = function(t, e) {
|
|
1587
|
+
this.j ? this.j.overrideFile(t, e) : this.D[t] = e;
|
|
1588
|
+
}, F.clearOverriddenFiles = function() {
|
|
1589
|
+
this.D = {}, this.j && this.j.clearOverriddenFiles();
|
|
1590
|
+
}, F.send = function(t, e) {
|
|
1591
|
+
var r = this, n, i, u, o, s, l, f, a, p;
|
|
1592
|
+
return R(function(h) {
|
|
1593
|
+
switch (h.h) {
|
|
1594
|
+
case 1:
|
|
1595
|
+
return r.h.inputs ? (n = 1e3 * (e ?? performance.now()), w(h, r.I, 2)) : h.return();
|
|
1596
|
+
case 2:
|
|
1597
|
+
return w(h, r.initialize(), 3);
|
|
1598
|
+
case 3:
|
|
1599
|
+
for (i = new r.i.PacketDataList(), u = O(Object.keys(t)), o = u.next(); !o.done; o = u.next()) if (s = o.value, l = r.h.inputs[s]) {
|
|
1600
|
+
t: {
|
|
1601
|
+
var c = t[s];
|
|
1602
|
+
switch (l.type) {
|
|
1603
|
+
case "video":
|
|
1604
|
+
var v = r.s[l.stream];
|
|
1605
|
+
if (v || (v = new Zt(r.i, r.K), r.s[l.stream] = v), v.m === 0 && (v.m = v.i.createTexture()), typeof HTMLVideoElement < "u" && c instanceof HTMLVideoElement)
|
|
1606
|
+
var y = c.videoWidth, E = c.videoHeight;
|
|
1607
|
+
else typeof HTMLImageElement < "u" && c instanceof HTMLImageElement ? (y = c.naturalWidth, E = c.naturalHeight) : (y = c.width, E = c.height);
|
|
1608
|
+
E = { glName: v.m, width: y, height: E }, y = v.h, y.canvas.width = E.width, y.canvas.height = E.height, y.activeTexture(y.TEXTURE0), v.i.bindTexture2d(v.m), y.texImage2D(y.TEXTURE_2D, 0, y.RGBA, y.RGBA, y.UNSIGNED_BYTE, c), v.i.bindTexture2d(0), v = E;
|
|
1609
|
+
break t;
|
|
1610
|
+
case "detections":
|
|
1611
|
+
for (v = r.s[l.stream], v || (v = new Qr(r.i), r.s[l.stream] = v), v.data || (v.data = new v.h.DetectionListData()), v.data.reset(c.length), E = 0; E < c.length; ++E) {
|
|
1612
|
+
y = c[E];
|
|
1613
|
+
var m = v.data, T = m.setBoundingBox, b = E, L = y.la, d = new dt();
|
|
1614
|
+
if (C(d, 1, L.sa), C(d, 2, L.ta), C(d, 3, L.height), C(d, 4, L.width), C(d, 5, L.rotation), U(d, 6, L.pa), L = d.l(), T.call(m, b, L), y.ea) for (m = 0; m < y.ea.length; ++m) {
|
|
1615
|
+
d = y.ea[m], T = v.data, b = T.addNormalizedLandmark, L = E, d = Object.assign({}, d, { visibility: d.visibility ? d.visibility : 0 });
|
|
1616
|
+
var j = new ut();
|
|
1617
|
+
C(j, 1, d.x), C(j, 2, d.y), C(j, 3, d.z), d.visibility && C(j, 4, d.visibility), d = j.l(), b.call(
|
|
1618
|
+
T,
|
|
1619
|
+
L,
|
|
1620
|
+
d
|
|
1621
|
+
);
|
|
1622
|
+
}
|
|
1623
|
+
if (y.ba) for (m = 0; m < y.ba.length; ++m) T = v.data, b = T.addClassification, L = E, d = y.ba[m], j = new z(), C(j, 2, d.qa), d.index && U(j, 1, d.index), d.label && U(j, 3, d.label), d.displayName && U(j, 4, d.displayName), d = j.l(), b.call(T, L, d);
|
|
1624
|
+
}
|
|
1625
|
+
v = v.data;
|
|
1626
|
+
break t;
|
|
1627
|
+
default:
|
|
1628
|
+
v = {};
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
switch (f = v, a = l.stream, l.type) {
|
|
1632
|
+
case "video":
|
|
1633
|
+
i.pushTexture2d(Object.assign({}, f, { stream: a, timestamp: n }));
|
|
1634
|
+
break;
|
|
1635
|
+
case "detections":
|
|
1636
|
+
p = f, p.stream = a, p.timestamp = n, i.pushDetectionList(p);
|
|
1637
|
+
break;
|
|
1638
|
+
default:
|
|
1639
|
+
throw Error("Unknown input config type: '" + l.type + "'");
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
return r.j.send(i), w(h, r.I, 4);
|
|
1643
|
+
case 4:
|
|
1644
|
+
i.delete(), h.h = 0;
|
|
1645
|
+
}
|
|
1646
|
+
});
|
|
1647
|
+
};
|
|
1648
|
+
function un(t, e, r) {
|
|
1649
|
+
var n, i, u, o, s, l, f, a, p, h, c, v, y, E;
|
|
1650
|
+
return R(function(m) {
|
|
1651
|
+
switch (m.h) {
|
|
1652
|
+
case 1:
|
|
1653
|
+
if (!r) return m.return(e);
|
|
1654
|
+
for (n = {}, i = 0, u = O(Object.keys(r)), o = u.next(); !o.done; o = u.next()) s = o.value, l = r[s], typeof l != "string" && l.type === "texture" && e[l.stream] !== void 0 && ++i;
|
|
1655
|
+
1 < i && (t.M = !1), f = O(Object.keys(r)), o = f.next();
|
|
1656
|
+
case 2:
|
|
1657
|
+
if (o.done) {
|
|
1658
|
+
m.h = 4;
|
|
1659
|
+
break;
|
|
1660
|
+
}
|
|
1661
|
+
if (a = o.value, p = r[a], typeof p == "string") return y = n, E = a, w(m, sn(t, a, e[p]), 14);
|
|
1662
|
+
if (h = e[p.stream], p.type === "detection_list") {
|
|
1663
|
+
if (h) {
|
|
1664
|
+
for (var T = h.getRectList(), b = h.getLandmarksList(), L = h.getClassificationsList(), d = [], j = 0; j < T.size(); ++j) {
|
|
1665
|
+
var k = Vr(T.get(j)), fn = H(k, 1), an = H(k, 2), cn = H(k, 3), hn = H(k, 4), pn = H(k, 5, 0), Et = void 0;
|
|
1666
|
+
Et = Et === void 0 ? 0 : Et, k = { la: { sa: fn, ta: an, height: cn, width: hn, rotation: pn, pa: ht(I(k, 6), Et) }, ea: zt(b.get(j)), ba: zr(Wr(L.get(j))) }, d.push(k);
|
|
1667
|
+
}
|
|
1668
|
+
T = d;
|
|
1669
|
+
} else T = [];
|
|
1670
|
+
n[a] = T, m.h = 7;
|
|
1671
|
+
break;
|
|
1672
|
+
}
|
|
1673
|
+
if (p.type === "proto_list") {
|
|
1674
|
+
if (h) {
|
|
1675
|
+
for (T = Array(h.size()), b = 0; b < h.size(); b++) T[b] = h.get(b);
|
|
1676
|
+
h.delete();
|
|
1677
|
+
} else T = [];
|
|
1678
|
+
n[a] = T, m.h = 7;
|
|
1679
|
+
break;
|
|
1680
|
+
}
|
|
1681
|
+
if (h === void 0) {
|
|
1682
|
+
m.h = 3;
|
|
1683
|
+
break;
|
|
1684
|
+
}
|
|
1685
|
+
if (p.type === "float_list") {
|
|
1686
|
+
n[a] = h, m.h = 7;
|
|
1687
|
+
break;
|
|
1688
|
+
}
|
|
1689
|
+
if (p.type === "proto") {
|
|
1690
|
+
n[a] = h, m.h = 7;
|
|
1691
|
+
break;
|
|
1692
|
+
}
|
|
1693
|
+
if (p.type !== "texture") throw Error("Unknown output config type: '" + p.type + "'");
|
|
1694
|
+
return c = t.v[a], c || (c = new Zt(t.i, t.K), t.v[a] = c), w(m, tr(c, h, t.M), 13);
|
|
1695
|
+
case 13:
|
|
1696
|
+
v = m.i, n[a] = v;
|
|
1697
|
+
case 7:
|
|
1698
|
+
p.transform && n[a] && (n[a] = p.transform(n[a])), m.h = 3;
|
|
1699
|
+
break;
|
|
1700
|
+
case 14:
|
|
1701
|
+
y[E] = m.i;
|
|
1702
|
+
case 3:
|
|
1703
|
+
o = f.next(), m.h = 2;
|
|
1704
|
+
break;
|
|
1705
|
+
case 4:
|
|
1706
|
+
return m.return(n);
|
|
1707
|
+
}
|
|
1708
|
+
});
|
|
1709
|
+
}
|
|
1710
|
+
function sn(t, e, r) {
|
|
1711
|
+
var n;
|
|
1712
|
+
return R(function(i) {
|
|
1713
|
+
return typeof r == "number" || r instanceof Uint8Array || r instanceof t.i.Uint8BlobList ? i.return(r) : r instanceof t.i.Texture2dDataOut ? (n = t.v[e], n || (n = new Zt(t.i, t.K), t.v[e] = n), i.return(tr(n, r, t.M))) : i.return(void 0);
|
|
1714
|
+
});
|
|
1715
|
+
}
|
|
1716
|
+
function ln(t, e) {
|
|
1717
|
+
for (var r = e.name || "$", n = [].concat(qt(e.wants)), i = new t.i.StringList(), u = O(e.wants), o = u.next(); !o.done; o = u.next()) i.push_back(o.value);
|
|
1718
|
+
u = t.i.PacketListener.implement({ onResults: function(s) {
|
|
1719
|
+
for (var l = {}, f = 0; f < e.wants.length; ++f) l[n[f]] = s.get(f);
|
|
1720
|
+
var a = t.listeners[r];
|
|
1721
|
+
a && (t.I = un(t, l, e.outs).then(function(p) {
|
|
1722
|
+
p = a(p);
|
|
1723
|
+
for (var h = 0; h < e.wants.length; ++h) {
|
|
1724
|
+
var c = l[n[h]];
|
|
1725
|
+
typeof c == "object" && c.hasOwnProperty && c.hasOwnProperty("delete") && c.delete();
|
|
1726
|
+
}
|
|
1727
|
+
p && (t.I = p);
|
|
1728
|
+
}));
|
|
1729
|
+
} }), t.j.attachMultiListener(i, u), i.delete();
|
|
1730
|
+
}
|
|
1731
|
+
F.onResults = function(t, e) {
|
|
1732
|
+
this.listeners[e || "$"] = t;
|
|
1733
|
+
}, G("Solution", $t), G("OptionType", { BOOL: 0, NUMBER: 1, ua: 2, 0: "BOOL", 1: "NUMBER", 2: "STRING" });
|
|
1734
|
+
function rr(t) {
|
|
1735
|
+
switch (t === void 0 && (t = 0), t) {
|
|
1736
|
+
case 1:
|
|
1737
|
+
return "pose_landmark_full.tflite";
|
|
1738
|
+
case 2:
|
|
1739
|
+
return "pose_landmark_heavy.tflite";
|
|
1740
|
+
default:
|
|
1741
|
+
return "pose_landmark_lite.tflite";
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
function nr(t) {
|
|
1745
|
+
var e = this;
|
|
1746
|
+
t = t || {}, this.h = new $t({ locateFile: t.locateFile, files: function(r) {
|
|
1747
|
+
return [{ url: "pose_solution_packed_assets_loader.js" }, { simd: !1, url: "pose_solution_wasm_bin.js" }, { simd: !0, url: "pose_solution_simd_wasm_bin.js" }, { data: !0, url: rr(r.modelComplexity) }];
|
|
1748
|
+
}, graph: { url: "pose_web.binarypb" }, listeners: [{ wants: ["pose_landmarks", "world_landmarks", "segmentation_mask", "image_transformed"], outs: { image: { type: "texture", stream: "image_transformed" }, poseLandmarks: {
|
|
1749
|
+
type: "proto",
|
|
1750
|
+
stream: "pose_landmarks",
|
|
1751
|
+
transform: zt
|
|
1752
|
+
}, poseWorldLandmarks: { type: "proto", stream: "world_landmarks", transform: zt }, segmentationMask: { type: "texture", stream: "segmentation_mask" } } }], inputs: { image: { type: "video", stream: "input_frames_gpu" } }, options: {
|
|
1753
|
+
useCpuInference: { type: 0, graphOptionXref: { calculatorType: "InferenceCalculator", fieldName: "use_cpu_inference" }, default: typeof window != "object" || window.navigator === void 0 ? !1 : "iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document },
|
|
1754
|
+
selfieMode: { type: 0, graphOptionXref: { calculatorType: "GlScalerCalculator", calculatorIndex: 1, fieldName: "flip_horizontal" } },
|
|
1755
|
+
modelComplexity: { type: 1, graphOptionXref: { calculatorType: "ConstantSidePacketCalculator", calculatorName: "ConstantSidePacketCalculatorModelComplexity", fieldName: "int_value" }, onChange: function(r) {
|
|
1756
|
+
var n, i, u;
|
|
1757
|
+
return R(function(o) {
|
|
1758
|
+
return o.h == 1 ? (n = rr(r), i = "third_party/mediapipe/modules/pose_landmark/" + n, w(o, mt(e.h, n), 2)) : (u = o.i, e.h.overrideFile(i, u), o.return(!0));
|
|
1759
|
+
});
|
|
1760
|
+
} },
|
|
1761
|
+
smoothLandmarks: { type: 0, graphOptionXref: { calculatorType: "ConstantSidePacketCalculator", calculatorName: "ConstantSidePacketCalculatorSmoothLandmarks", fieldName: "bool_value" } },
|
|
1762
|
+
enableSegmentation: { type: 0, graphOptionXref: { calculatorType: "ConstantSidePacketCalculator", calculatorName: "ConstantSidePacketCalculatorEnableSegmentation", fieldName: "bool_value" } },
|
|
1763
|
+
smoothSegmentation: { type: 0, graphOptionXref: {
|
|
1764
|
+
calculatorType: "ConstantSidePacketCalculator",
|
|
1765
|
+
calculatorName: "ConstantSidePacketCalculatorSmoothSegmentation",
|
|
1766
|
+
fieldName: "bool_value"
|
|
1767
|
+
} },
|
|
1768
|
+
minDetectionConfidence: { type: 1, graphOptionXref: { calculatorType: "TensorsToDetectionsCalculator", calculatorName: "poselandmarkgpu__posedetectiongpu__TensorsToDetectionsCalculator", fieldName: "min_score_thresh" } },
|
|
1769
|
+
minTrackingConfidence: { type: 1, graphOptionXref: { calculatorType: "ThresholdingCalculator", calculatorName: "poselandmarkgpu__poselandmarkbyroigpu__tensorstoposelandmarksandsegmentation__ThresholdingCalculator", fieldName: "threshold" } }
|
|
1770
|
+
} });
|
|
1771
|
+
}
|
|
1772
|
+
F = nr.prototype, F.reset = function() {
|
|
1773
|
+
this.h.reset();
|
|
1774
|
+
}, F.close = function() {
|
|
1775
|
+
return this.h.close(), Promise.resolve();
|
|
1776
|
+
}, F.onResults = function(t) {
|
|
1777
|
+
this.h.onResults(t);
|
|
1778
|
+
}, F.initialize = function() {
|
|
1779
|
+
var t = this;
|
|
1780
|
+
return R(function(e) {
|
|
1781
|
+
return w(e, t.h.initialize(), 0);
|
|
1782
|
+
});
|
|
1783
|
+
}, F.send = function(t, e) {
|
|
1784
|
+
var r = this;
|
|
1785
|
+
return R(function(n) {
|
|
1786
|
+
return w(n, r.h.send(t, e), 0);
|
|
1787
|
+
});
|
|
1788
|
+
}, F.setOptions = function(t) {
|
|
1789
|
+
this.h.setOptions(t);
|
|
1790
|
+
}, G("Pose", nr), G("POSE_CONNECTIONS", [[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]]), G("POSE_LANDMARKS", { NOSE: 0, LEFT_EYE_INNER: 1, LEFT_EYE: 2, LEFT_EYE_OUTER: 3, RIGHT_EYE_INNER: 4, RIGHT_EYE: 5, RIGHT_EYE_OUTER: 6, LEFT_EAR: 7, RIGHT_EAR: 8, LEFT_RIGHT: 9, RIGHT_LEFT: 10, LEFT_SHOULDER: 11, RIGHT_SHOULDER: 12, LEFT_ELBOW: 13, RIGHT_ELBOW: 14, LEFT_WRIST: 15, RIGHT_WRIST: 16, LEFT_PINKY: 17, RIGHT_PINKY: 18, LEFT_INDEX: 19, RIGHT_INDEX: 20, LEFT_THUMB: 21, RIGHT_THUMB: 22, LEFT_HIP: 23, RIGHT_HIP: 24, LEFT_KNEE: 25, RIGHT_KNEE: 26, LEFT_ANKLE: 27, RIGHT_ANKLE: 28, LEFT_HEEL: 29, RIGHT_HEEL: 30, LEFT_FOOT_INDEX: 31, RIGHT_FOOT_INDEX: 32 }), G("POSE_LANDMARKS_LEFT", { LEFT_EYE_INNER: 1, LEFT_EYE: 2, LEFT_EYE_OUTER: 3, LEFT_EAR: 7, LEFT_RIGHT: 9, LEFT_SHOULDER: 11, LEFT_ELBOW: 13, LEFT_WRIST: 15, LEFT_PINKY: 17, LEFT_INDEX: 19, LEFT_THUMB: 21, LEFT_HIP: 23, LEFT_KNEE: 25, LEFT_ANKLE: 27, LEFT_HEEL: 29, LEFT_FOOT_INDEX: 31 }), G("POSE_LANDMARKS_RIGHT", { RIGHT_EYE_INNER: 4, RIGHT_EYE: 5, RIGHT_EYE_OUTER: 6, RIGHT_EAR: 8, RIGHT_LEFT: 10, RIGHT_SHOULDER: 12, RIGHT_ELBOW: 14, RIGHT_WRIST: 16, RIGHT_PINKY: 18, RIGHT_INDEX: 20, RIGHT_THUMB: 22, RIGHT_HIP: 24, RIGHT_KNEE: 26, RIGHT_ANKLE: 28, RIGHT_HEEL: 30, RIGHT_FOOT_INDEX: 32 }), G("POSE_LANDMARKS_NEUTRAL", { NOSE: 0 }), G("VERSION", "0.5.1675469404");
|
|
1791
|
+
}).call(Qt), Qt);
|
|
1792
|
+
}
|
|
1793
|
+
export {
|
|
1794
|
+
dn as __require
|
|
1795
|
+
};
|
|
1796
|
+
//# sourceMappingURL=pose.js.map
|