@microblink/blinkid-core 7.6.1 → 7.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,13 +4,13 @@ var J = (e) => {
4
4
  };
5
5
  var Oe = (e, t, r) => t in e ? Le(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
6
  var x = (e, t, r) => Oe(e, typeof t != "symbol" ? t + "" : t, r), $ = (e, t, r) => t.has(e) || J("Cannot " + r);
7
- var d = (e, t, r) => ($(e, t, "read from private field"), r ? r.call(e) : t.get(e)), p = (e, t, r) => t.has(e) ? J("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), y = (e, t, r, s) => ($(e, t, "write to private field"), s ? s.call(e, r) : t.set(e, r), r), R = (e, t, r) => ($(e, t, "access private method"), r);
8
- var Q = (e, t, r, s) => ({
9
- set _(n) {
10
- y(e, t, n, r);
7
+ var u = (e, t, r) => ($(e, t, "read from private field"), r ? r.call(e) : t.get(e)), p = (e, t, r) => t.has(e) ? J("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), y = (e, t, r, o) => ($(e, t, "write to private field"), o ? o.call(e, r) : t.set(e, r), r), R = (e, t, r) => ($(e, t, "access private method"), r);
8
+ var Q = (e, t, r, o) => ({
9
+ set _(s) {
10
+ y(e, t, s, r);
11
11
  },
12
12
  get _() {
13
- return d(e, t, s);
13
+ return u(e, t, o);
14
14
  }
15
15
  });
16
16
  /**
@@ -54,37 +54,37 @@ function Te(e, t) {
54
54
  return !1;
55
55
  }
56
56
  function H(e, t = globalThis, r = ["*"]) {
57
- t.addEventListener("message", function s(n) {
58
- if (!n || !n.data)
57
+ t.addEventListener("message", function o(s) {
58
+ if (!s || !s.data)
59
59
  return;
60
- if (!Te(r, n.origin)) {
61
- console.warn(`Invalid origin '${n.origin}' for comlink proxy`);
60
+ if (!Te(r, s.origin)) {
61
+ console.warn(`Invalid origin '${s.origin}' for comlink proxy`);
62
62
  return;
63
63
  }
64
- const { id: o, type: c, path: a } = Object.assign({ path: [] }, n.data), l = (n.data.argumentList || []).map(k);
64
+ const { id: n, type: m, path: a } = Object.assign({ path: [] }, s.data), c = (s.data.argumentList || []).map(k);
65
65
  let i;
66
66
  try {
67
- const u = a.slice(0, -1).reduce((h, w) => h[w], e), f = a.reduce((h, w) => h[w], e);
68
- switch (c) {
67
+ const l = a.slice(0, -1).reduce((f, w) => f[w], e), d = a.reduce((f, w) => f[w], e);
68
+ switch (m) {
69
69
  case "GET":
70
- i = f;
70
+ i = d;
71
71
  break;
72
72
  case "SET":
73
- u[a.slice(-1)[0]] = k(n.data.value), i = !0;
73
+ l[a.slice(-1)[0]] = k(s.data.value), i = !0;
74
74
  break;
75
75
  case "APPLY":
76
- i = f.apply(u, l);
76
+ i = d.apply(l, c);
77
77
  break;
78
78
  case "CONSTRUCT":
79
79
  {
80
- const h = new f(...l);
81
- i = me(h);
80
+ const f = new d(...c);
81
+ i = he(f);
82
82
  }
83
83
  break;
84
84
  case "ENDPOINT":
85
85
  {
86
- const { port1: h, port2: w } = new MessageChannel();
87
- H(e, w), i = fe(h, [h]);
86
+ const { port1: f, port2: w } = new MessageChannel();
87
+ H(e, w), i = me(f, [f]);
88
88
  }
89
89
  break;
90
90
  case "RELEASE":
@@ -93,18 +93,18 @@ function H(e, t = globalThis, r = ["*"]) {
93
93
  default:
94
94
  return;
95
95
  }
96
- } catch (u) {
97
- i = { value: u, [W]: 0 };
96
+ } catch (l) {
97
+ i = { value: l, [W]: 0 };
98
98
  }
99
- Promise.resolve(i).catch((u) => ({ value: u, [W]: 0 })).then((u) => {
100
- const [f, h] = j(u);
101
- t.postMessage(Object.assign(Object.assign({}, f), { id: o }), h), c === "RELEASE" && (t.removeEventListener("message", s), le(t), z in e && typeof e[z] == "function" && e[z]());
102
- }).catch((u) => {
103
- const [f, h] = j({
99
+ Promise.resolve(i).catch((l) => ({ value: l, [W]: 0 })).then((l) => {
100
+ const [d, f] = j(l);
101
+ t.postMessage(Object.assign(Object.assign({}, d), { id: n }), f), m === "RELEASE" && (t.removeEventListener("message", o), le(t), z in e && typeof e[z] == "function" && e[z]());
102
+ }).catch((l) => {
103
+ const [d, f] = j({
104
104
  value: new TypeError("Unserializable return value"),
105
105
  [W]: 0
106
106
  });
107
- t.postMessage(Object.assign(Object.assign({}, f), { id: o }), h);
107
+ t.postMessage(Object.assign(Object.assign({}, d), { id: n }), f);
108
108
  });
109
109
  }), t.start && t.start();
110
110
  }
@@ -116,16 +116,16 @@ function le(e) {
116
116
  }
117
117
  function Ie(e, t) {
118
118
  const r = /* @__PURE__ */ new Map();
119
- return e.addEventListener("message", function(n) {
120
- const { data: o } = n;
121
- if (!o || !o.id)
119
+ return e.addEventListener("message", function(s) {
120
+ const { data: n } = s;
121
+ if (!n || !n.id)
122
122
  return;
123
- const c = r.get(o.id);
124
- if (c)
123
+ const m = r.get(n.id);
124
+ if (m)
125
125
  try {
126
- c(o);
126
+ m(n);
127
127
  } finally {
128
- r.delete(o.id);
128
+ r.delete(n.id);
129
129
  }
130
130
  }), _(e, r, [], t);
131
131
  }
@@ -151,37 +151,37 @@ function Ne(e, t) {
151
151
  function ze(e) {
152
152
  C && C.unregister(e);
153
153
  }
154
- function _(e, t, r = [], s = function() {
154
+ function _(e, t, r = [], o = function() {
155
155
  }) {
156
- let n = !1;
157
- const o = new Proxy(s, {
158
- get(c, a) {
159
- if (M(n), a === ve)
156
+ let s = !1;
157
+ const n = new Proxy(o, {
158
+ get(m, a) {
159
+ if (M(s), a === ve)
160
160
  return () => {
161
- ze(o), ue(e), t.clear(), n = !0;
161
+ ze(n), ue(e), t.clear(), s = !0;
162
162
  };
163
163
  if (a === "then") {
164
164
  if (r.length === 0)
165
- return { then: () => o };
166
- const l = L(e, t, {
165
+ return { then: () => n };
166
+ const c = L(e, t, {
167
167
  type: "GET",
168
168
  path: r.map((i) => i.toString())
169
169
  }).then(k);
170
- return l.then.bind(l);
170
+ return c.then.bind(c);
171
171
  }
172
172
  return _(e, t, [...r, a]);
173
173
  },
174
- set(c, a, l) {
175
- M(n);
176
- const [i, u] = j(l);
174
+ set(m, a, c) {
175
+ M(s);
176
+ const [i, l] = j(c);
177
177
  return L(e, t, {
178
178
  type: "SET",
179
- path: [...r, a].map((f) => f.toString()),
179
+ path: [...r, a].map((d) => d.toString()),
180
180
  value: i
181
- }, u).then(k);
181
+ }, l).then(k);
182
182
  },
183
- apply(c, a, l) {
184
- M(n);
183
+ apply(m, a, c) {
184
+ M(s);
185
185
  const i = r[r.length - 1];
186
186
  if (i === Re)
187
187
  return L(e, t, {
@@ -189,24 +189,24 @@ function _(e, t, r = [], s = function() {
189
189
  }).then(k);
190
190
  if (i === "bind")
191
191
  return _(e, t, r.slice(0, -1));
192
- const [u, f] = Z(l);
192
+ const [l, d] = Z(c);
193
193
  return L(e, t, {
194
194
  type: "APPLY",
195
- path: r.map((h) => h.toString()),
196
- argumentList: u
197
- }, f).then(k);
195
+ path: r.map((f) => f.toString()),
196
+ argumentList: l
197
+ }, d).then(k);
198
198
  },
199
- construct(c, a) {
200
- M(n);
201
- const [l, i] = Z(a);
199
+ construct(m, a) {
200
+ M(s);
201
+ const [c, i] = Z(a);
202
202
  return L(e, t, {
203
203
  type: "CONSTRUCT",
204
- path: r.map((u) => u.toString()),
205
- argumentList: l
204
+ path: r.map((l) => l.toString()),
205
+ argumentList: c
206
206
  }, i).then(k);
207
207
  }
208
208
  });
209
- return Ne(o, e), o;
209
+ return Ne(n, e), n;
210
210
  }
211
211
  function We(e) {
212
212
  return Array.prototype.concat.apply([], e);
@@ -216,23 +216,23 @@ function Z(e) {
216
216
  return [t.map((r) => r[0]), We(t.map((r) => r[1]))];
217
217
  }
218
218
  const de = /* @__PURE__ */ new WeakMap();
219
- function fe(e, t) {
219
+ function me(e, t) {
220
220
  return de.set(e, t), e;
221
221
  }
222
- function me(e) {
222
+ function he(e) {
223
223
  return Object.assign(e, { [ae]: !0 });
224
224
  }
225
225
  function j(e) {
226
226
  for (const [t, r] of ce)
227
227
  if (r.canHandle(e)) {
228
- const [s, n] = r.serialize(e);
228
+ const [o, s] = r.serialize(e);
229
229
  return [
230
230
  {
231
231
  type: "HANDLER",
232
232
  name: t,
233
- value: s
233
+ value: o
234
234
  },
235
- n
235
+ s
236
236
  ];
237
237
  }
238
238
  return [
@@ -251,10 +251,10 @@ function k(e) {
251
251
  return e.value;
252
252
  }
253
253
  }
254
- function L(e, t, r, s) {
255
- return new Promise((n) => {
256
- const o = De();
257
- t.set(o, n), e.start && e.start(), e.postMessage(Object.assign({ id: o }, r), s);
254
+ function L(e, t, r, o) {
255
+ return new Promise((s) => {
256
+ const n = De();
257
+ t.set(n, s), e.start && e.start(), e.postMessage(Object.assign({ id: n }, r), o);
258
258
  });
259
259
  }
260
260
  function De() {
@@ -296,16 +296,16 @@ const ee = "application/javascript", Ye = (e, t = {}) => {
296
296
  ...t
297
297
  };
298
298
  return r.skipSameOrigin && new URL(e).origin === self.location.origin ? Promise.resolve(e) : new Promise(
299
- (s, n) => void fetch(e).then((o) => o.text()).then((o) => {
299
+ (o, s) => void fetch(e).then((n) => n.text()).then((n) => {
300
300
  new URL(e).href.split("/").pop();
301
301
  let a = "";
302
302
  if (r.useBlob) {
303
- const l = new Blob([o], { type: ee });
304
- a = URL.createObjectURL(l);
303
+ const c = new Blob([n], { type: ee });
304
+ a = URL.createObjectURL(c);
305
305
  } else
306
- a = `data:${ee},` + encodeURIComponent(o);
307
- s(a);
308
- }).catch(n)
306
+ a = `data:${ee},` + encodeURIComponent(n);
307
+ o(a);
308
+ }).catch(s)
309
309
  );
310
310
  };
311
311
  function Ke() {
@@ -361,21 +361,21 @@ function I(...e) {
361
361
  }
362
362
  return t;
363
363
  }
364
- function he(e) {
364
+ function fe(e) {
365
365
  return Object.prototype.toString.call(e).slice(8, -1);
366
366
  }
367
367
  function N(e) {
368
- if (he(e) !== "Object")
368
+ if (fe(e) !== "Object")
369
369
  return !1;
370
370
  const t = Object.getPrototypeOf(e);
371
371
  return !!t && t.constructor === Object && t === Object.prototype;
372
372
  }
373
373
  function ne(e) {
374
- return he(e) === "Symbol";
374
+ return fe(e) === "Symbol";
375
375
  }
376
- function se(e, t, r, s) {
377
- const n = {}.propertyIsEnumerable.call(s, t) ? "enumerable" : "nonenumerable";
378
- n === "enumerable" && (e[t] = r), n === "nonenumerable" && Object.defineProperty(e, t, {
376
+ function se(e, t, r, o) {
377
+ const s = {}.propertyIsEnumerable.call(o, t) ? "enumerable" : "nonenumerable";
378
+ s === "enumerable" && (e[t] = r), s === "nonenumerable" && Object.defineProperty(e, t, {
379
379
  value: r,
380
380
  enumerable: !1,
381
381
  writable: !0,
@@ -385,23 +385,23 @@ function se(e, t, r, s) {
385
385
  function ge(e, t, r) {
386
386
  if (!N(t))
387
387
  return t;
388
- let s = {};
388
+ let o = {};
389
389
  if (N(e)) {
390
- const a = Object.getOwnPropertyNames(e), l = Object.getOwnPropertySymbols(e);
391
- s = [...a, ...l].reduce((i, u) => {
392
- const f = e[u];
393
- return (!ne(u) && !Object.getOwnPropertyNames(t).includes(u) || ne(u) && !Object.getOwnPropertySymbols(t).includes(u)) && se(i, u, f, e), i;
390
+ const a = Object.getOwnPropertyNames(e), c = Object.getOwnPropertySymbols(e);
391
+ o = [...a, ...c].reduce((i, l) => {
392
+ const d = e[l];
393
+ return (!ne(l) && !Object.getOwnPropertyNames(t).includes(l) || ne(l) && !Object.getOwnPropertySymbols(t).includes(l)) && se(i, l, d, e), i;
394
394
  }, {});
395
395
  }
396
- const n = Object.getOwnPropertyNames(t), o = Object.getOwnPropertySymbols(t);
397
- return [...n, ...o].reduce((a, l) => {
398
- let i = t[l];
399
- const u = N(e) ? e[l] : void 0;
400
- return u !== void 0 && N(i) && (i = ge(u, i)), se(a, l, i, t), a;
401
- }, s);
396
+ const s = Object.getOwnPropertyNames(t), n = Object.getOwnPropertySymbols(t);
397
+ return [...s, ...n].reduce((a, c) => {
398
+ let i = t[c];
399
+ const l = N(e) ? e[c] : void 0;
400
+ return l !== void 0 && N(i) && (i = ge(l, i)), se(a, c, i, t), a;
401
+ }, o);
402
402
  }
403
403
  function Je(e, ...t) {
404
- return t.reduce((r, s) => ge(r, s), e);
404
+ return t.reduce((r, o) => ge(r, o), e);
405
405
  }
406
406
  function pe(e) {
407
407
  return {
@@ -422,59 +422,59 @@ const Qe = (e) => ({
422
422
  } : void 0
423
423
  });
424
424
  function et(e = {}, t) {
425
- var c, a, l, i;
425
+ var m, a, c, i;
426
426
  e && (e = Object.fromEntries(
427
- Object.entries(e).filter(([u, f]) => f !== void 0)
427
+ Object.entries(e).filter(([l, d]) => d !== void 0)
428
428
  ));
429
- const r = ((a = (c = e == null ? void 0 : e.scanningSettings) == null ? void 0 : c.customDocumentRules) == null ? void 0 : a.map(
429
+ const r = ((a = (m = e == null ? void 0 : e.scanningSettings) == null ? void 0 : m.customDocumentRules) == null ? void 0 : a.map(
430
430
  Qe
431
- )) ?? [], s = ((i = (l = e == null ? void 0 : e.scanningSettings) == null ? void 0 : l.customDocumentAnonymizationSettings) == null ? void 0 : i.map(
431
+ )) ?? [], o = ((i = (c = e == null ? void 0 : e.scanningSettings) == null ? void 0 : c.customDocumentAnonymizationSettings) == null ? void 0 : i.map(
432
432
  Ze
433
- )) ?? [], n = {
433
+ )) ?? [], s = {
434
434
  ...e == null ? void 0 : e.scanningSettings,
435
435
  customDocumentRules: r,
436
- customDocumentAnonymizationSettings: s
436
+ customDocumentAnonymizationSettings: o
437
437
  };
438
438
  return Je(t, {
439
439
  ...e,
440
- scanningSettings: n
440
+ scanningSettings: s
441
441
  });
442
442
  }
443
- const tt = { basic: { full: 3242406, lightweight: 3280244 }, advanced: { full: 3261747, lightweight: 3298066 }, "advanced-threads": { full: 3309394, lightweight: 3343706 } }, rt = { basic: { full: 13393962, lightweight: 11761277 }, advanced: { full: 13393962, lightweight: 11761277 }, "advanced-threads": { full: 13393962, lightweight: 11761277 } }, nt = {
443
+ const tt = { basic: { full: 3242571, lightweight: 3280459 }, advanced: { full: 3261161, lightweight: 3298193 }, "advanced-threads": { full: 3309330, lightweight: 3343822 } }, rt = { basic: { full: 13393962, lightweight: 11761277 }, advanced: { full: 13393962, lightweight: 11761277 }, "advanced-threads": { full: 13393962, lightweight: 11761277 } }, nt = {
444
444
  wasm: tt,
445
445
  data: rt
446
446
  };
447
447
  function st(e, t, r) {
448
448
  return nt[e][t][r];
449
449
  }
450
- async function oe(e, t, r, s, n) {
451
- var f;
452
- const o = await fetch(e);
453
- if (!n)
454
- return o.arrayBuffer();
455
- const c = o.headers.get("Content-Length"), a = c ? parseInt(c, 10) : st(t, r, s);
450
+ async function oe(e, t, r, o, s) {
451
+ var d;
452
+ const n = await fetch(e);
453
+ if (!s)
454
+ return n.arrayBuffer();
455
+ const m = n.headers.get("Content-Length"), a = m ? parseInt(m, 10) : st(t, r, o);
456
456
  if (isNaN(a) || a <= 0)
457
457
  throw new Error(
458
458
  `Invalid content length for ${t} file: ${a}`
459
459
  );
460
- let l = 0;
460
+ let c = 0;
461
461
  const i = new TransformStream({
462
- transform(h, w) {
463
- l += h.length;
462
+ transform(f, w) {
463
+ c += f.length;
464
464
  const V = Math.min(
465
- Math.round(l / a * 100),
465
+ Math.round(c / a * 100),
466
466
  100
467
467
  );
468
- n({
469
- loaded: l,
468
+ s({
469
+ loaded: c,
470
470
  contentLength: a,
471
471
  progress: V,
472
472
  finished: !1
473
- }), w.enqueue(h);
473
+ }), w.enqueue(f);
474
474
  },
475
475
  flush() {
476
- n({
477
- loaded: l,
476
+ s({
477
+ loaded: c,
478
478
  contentLength: a,
479
479
  progress: 100,
480
480
  finished: !0
@@ -482,26 +482,26 @@ async function oe(e, t, r, s, n) {
482
482
  }
483
483
  });
484
484
  return new Response(
485
- (f = o.body) == null ? void 0 : f.pipeThrough(i),
486
- o
485
+ (d = n.body) == null ? void 0 : d.pipeThrough(i),
486
+ n
487
487
  ).arrayBuffer();
488
488
  }
489
489
  class F extends Error {
490
- constructor(t, r, s) {
491
- super(`Proxy URL validation failed for "${s}": ${r}`), this.code = t, this.url = s, this.name = "ProxyUrlValidationError";
490
+ constructor(t, r, o) {
491
+ super(`Proxy URL validation failed for "${o}": ${r}`), this.code = t, this.url = o, this.name = "ProxyUrlValidationError";
492
492
  }
493
493
  }
494
494
  function ot(e) {
495
- const t = e.unlockResult === "requires-server-permission", { allowPingProxy: r, allowBaltazarProxy: s, hasPing: n } = e;
496
- if (!r && !s)
495
+ const t = e.unlockResult === "requires-server-permission", { allowPingProxy: r, allowBaltazarProxy: o, hasPing: s } = e;
496
+ if (!r && !o)
497
497
  throw new Error(
498
498
  "Microblink proxy URL is set but your license doesn't permit proxy usage. Check your license."
499
499
  );
500
- if (!t && !n)
500
+ if (!t && !s)
501
501
  throw new Error(
502
502
  "Microblink proxy URL is set but your license doesn't permit proxy usage. Check your license."
503
503
  );
504
- if (!t && n && s && !r || t && !n && !s && r)
504
+ if (!t && s && o && !r || t && !s && !o && r)
505
505
  throw new Error(
506
506
  "Microblink proxy URL is set but your license doesn't permit proxy usage. Check your license."
507
507
  );
@@ -525,10 +525,13 @@ function at(e) {
525
525
  );
526
526
  const r = t.origin;
527
527
  try {
528
- const s = new URL("/api/v2/status/check", r).toString();
528
+ const o = new URL(
529
+ `${t.pathname}${t.pathname.endsWith("/") ? "" : "/"}api/v2/status/check`,
530
+ r
531
+ ).toString();
529
532
  return {
530
- ping: r,
531
- baltazar: s
533
+ ping: r + t.pathname.replace(/\/$/, ""),
534
+ baltazar: o
532
535
  };
533
536
  } catch {
534
537
  throw new F(
@@ -538,14 +541,14 @@ function at(e) {
538
541
  );
539
542
  }
540
543
  }
541
- var m, v, A, U, T, b, O, P, ye, D;
544
+ var h, v, A, U, T, b, O, P, ye, D;
542
545
  class it {
543
546
  constructor() {
544
547
  p(this, P);
545
548
  /**
546
549
  * The Wasm module.
547
550
  */
548
- p(this, m);
551
+ p(this, h);
549
552
  /**
550
553
  * The default session settings.
551
554
  *
@@ -575,71 +578,71 @@ class it {
575
578
  p(this, O);
576
579
  }
577
580
  reportPinglet(t) {
578
- if (!d(this, m))
581
+ if (!u(this, h))
579
582
  throw new Error("Wasm module not loaded");
580
- d(this, m).isPingEnabled() && d(this, m).queuePinglet(
583
+ u(this, h).isPingEnabled() && u(this, h).queuePinglet(
581
584
  JSON.stringify(t.data),
582
585
  t.schemaName,
583
586
  t.schemaVersion,
584
587
  // session number can be overriden by pinglet, otherwise use current
585
588
  // session count
586
- t.sessionNumber ?? d(this, T)
589
+ t.sessionNumber ?? u(this, T)
587
590
  );
588
591
  }
589
592
  sendPinglets() {
590
- if (!d(this, m))
593
+ if (!u(this, h))
591
594
  throw new Error("Wasm module not loaded");
592
- d(this, m).sendPinglets();
595
+ u(this, h).sendPinglets();
593
596
  }
594
597
  /**
595
598
  * This method initializes everything.
596
599
  */
597
- async initBlinkId(t, r, s) {
600
+ async initBlinkId(t, r, o) {
598
601
  var a;
599
- const n = new URL(
602
+ const s = new URL(
600
603
  "resources/",
601
604
  t.resourcesLocation
602
605
  ).toString();
603
- if (y(this, v, r), this.progressStatusCallback = s, y(this, O, t.userId), await R(this, P, ye).call(this, {
604
- resourceUrl: n,
606
+ if (y(this, v, r), this.progressStatusCallback = o, y(this, O, t.userId), await R(this, P, ye).call(this, {
607
+ resourceUrl: s,
605
608
  variant: t.wasmVariant,
606
609
  initialMemory: t.initialMemory,
607
610
  useLightweightBuild: t.useLightweightBuild
608
- }), !d(this, m))
611
+ }), !u(this, h))
609
612
  throw new Error("Wasm module not loaded");
610
- const o = new lt({
611
- packageName: self.location.hostname,
612
- platform: "Emscripten",
613
- product: "BlinkID",
614
- userId: d(this, O)
615
- });
616
- this.reportPinglet(o), this.sendPinglets();
617
- const c = d(this, m).initializeWithLicenseKey(
613
+ const n = u(this, h).initializeWithLicenseKey(
618
614
  t.licenseKey,
619
615
  t.userId,
620
616
  !1
621
617
  );
622
- if (this.sendPinglets(), c.licenseError)
618
+ t.microblinkProxyUrl && (ot(n), y(this, b, at(t.microblinkProxyUrl)), n.allowPingProxy && n.hasPing && (u(this, h).setPingProxyUrl(u(this, b).ping), console.debug(`Using ping proxy URL: ${u(this, b).ping}`)));
619
+ const m = new lt({
620
+ packageName: self.location.hostname,
621
+ platform: "Emscripten",
622
+ product: "BlinkID",
623
+ userId: u(this, O)
624
+ });
625
+ if (this.reportPinglet(m), this.sendPinglets(), n.licenseError)
623
626
  throw R(this, P, D).call(this, {
624
627
  errorType: "Crash",
625
- errorMessage: c.licenseError
628
+ errorMessage: n.licenseError
626
629
  }), this.sendPinglets(), new ut(
627
- "License unlock error: " + c.licenseError,
630
+ "License unlock error: " + n.licenseError,
628
631
  "LICENSE_ERROR"
629
632
  );
630
- if (t.microblinkProxyUrl && (ot(c), y(this, b, at(t.microblinkProxyUrl)), c.allowPingProxy && c.hasPing && (d(this, m).setPingProxyUrl(d(this, b).ping), console.debug(`Using ping proxy URL: ${d(this, b).ping}`))), c.unlockResult === "requires-server-permission") {
631
- const i = ((a = d(this, b)) == null ? void 0 : a.baltazar) && c.allowBaltazarProxy ? d(this, b).baltazar : void 0;
633
+ if (n.unlockResult === "requires-server-permission") {
634
+ const i = ((a = u(this, b)) == null ? void 0 : a.baltazar) && n.allowBaltazarProxy ? u(this, b).baltazar : void 0;
632
635
  i && console.debug(`Using Baltazar proxy URL: ${i}`);
633
- const u = i ? await te(c, i) : await te(c), f = d(this, m).submitServerPermission(
634
- u
636
+ const l = i ? await te(n, i) : await te(n), d = u(this, h).submitServerPermission(
637
+ l
635
638
  );
636
- if (f != null && f.error)
639
+ if (d != null && d.error)
637
640
  throw R(this, P, D).call(this, {
638
641
  errorType: "Crash",
639
- errorMessage: f.error
640
- }), this.sendPinglets(), new Error("Server unlock error: " + f.error);
642
+ errorMessage: d.error
643
+ }), this.sendPinglets(), new Error("Server unlock error: " + d.error);
641
644
  }
642
- console.debug(`BlinkID SDK ${c.sdkVersion} unlocked`), y(this, A, c.showDemoOverlay), y(this, U, c.showProductionOverlay), d(this, m).initializeSdk(t.userId), this.sendPinglets();
645
+ console.debug(`BlinkID SDK ${n.sdkVersion} unlocked`), y(this, A, n.showDemoOverlay), y(this, U, n.showProductionOverlay), u(this, h).initializeSdk(t.userId), this.sendPinglets();
643
646
  }
644
647
  /**
645
648
  * This method creates a BlinkID scanning session.
@@ -648,16 +651,16 @@ class it {
648
651
  * @returns The session.
649
652
  */
650
653
  createBlinkIdScanningSession(t) {
651
- if (!d(this, m))
654
+ if (!u(this, h))
652
655
  throw new Error("Wasm module not loaded");
653
656
  const r = et(
654
657
  t,
655
- d(this, v)
656
- ), s = d(this, m).createBlinkIdScanningSession(
658
+ u(this, v)
659
+ ), o = u(this, h).createBlinkIdScanningSession(
657
660
  r,
658
- d(this, O)
661
+ u(this, O)
659
662
  );
660
- return this.sendPinglets(), Q(this, T)._++, this.createProxySession(s, r);
663
+ return this.sendPinglets(), Q(this, T)._++, this.createProxySession(o, r);
661
664
  }
662
665
  /**
663
666
  * This method creates a proxy session.
@@ -667,33 +670,33 @@ class it {
667
670
  * @returns The proxy session.
668
671
  */
669
672
  createProxySession(t, r) {
670
- return me({
673
+ return he({
671
674
  getResult: () => t.getResult(),
672
- process: (n) => {
673
- const o = t.process(n);
674
- if ("error" in o)
675
+ process: (s) => {
676
+ const n = t.process(s);
677
+ if ("error" in n)
675
678
  throw R(this, P, D).call(this, {
676
679
  errorType: "NonFatal",
677
- errorMessage: o.error
678
- }), new Error(`Error processing frame: ${o.error}`);
679
- return fe(
680
+ errorMessage: n.error
681
+ }), new Error(`Error processing frame: ${n.error}`);
682
+ return me(
680
683
  {
681
- ...o,
682
- arrayBuffer: n.data.buffer
684
+ ...n,
685
+ arrayBuffer: s.data.buffer
683
686
  },
684
- [n.data.buffer]
687
+ [s.data.buffer]
685
688
  );
686
689
  },
687
- ping: (n) => this.reportPinglet(n),
690
+ ping: (s) => this.reportPinglet(s),
688
691
  sendPinglets: () => this.sendPinglets(),
689
692
  getSettings: () => r,
690
693
  reset: () => t.reset(),
691
694
  delete: () => t.delete(),
692
695
  deleteLater: () => t.deleteLater(),
693
696
  isDeleted: () => t.isDeleted(),
694
- isAliasOf: (n) => t.isAliasOf(n),
695
- showDemoOverlay: () => d(this, A),
696
- showProductionOverlay: () => d(this, U)
697
+ isAliasOf: (s) => t.isAliasOf(s),
698
+ showDemoOverlay: () => u(this, A),
699
+ showProductionOverlay: () => u(this, U)
697
700
  });
698
701
  }
699
702
  /**
@@ -705,42 +708,42 @@ class it {
705
708
  * Terminates the workers and the Wasm runtime.
706
709
  */
707
710
  async terminate() {
708
- if (self.setTimeout(() => self.close, 5e3), !d(this, m)) {
711
+ if (self.setTimeout(() => self.close, 5e3), !u(this, h)) {
709
712
  console.warn(
710
713
  "No Wasm module loaded during worker termination. Skipping cleanup."
711
714
  ), self.close();
712
715
  return;
713
716
  }
714
- d(this, m).terminateSdk(), await new Promise((s) => setTimeout(s, 0)), this.sendPinglets();
717
+ u(this, h).terminateSdk(), await new Promise((o) => setTimeout(o, 0)), this.sendPinglets();
715
718
  const r = Date.now();
716
- for (; d(this, m).arePingRequestsInProgress() && Date.now() - r < 5e3; )
717
- await new Promise((s) => setTimeout(s, 100));
718
- y(this, m, void 0), console.debug("BlinkIdWorker terminated 🔴"), self.close();
719
+ for (; u(this, h).arePingRequestsInProgress() && Date.now() - r < 5e3; )
720
+ await new Promise((o) => setTimeout(o, 100));
721
+ y(this, h, void 0), console.debug("BlinkIdWorker terminated 🔴"), self.close();
719
722
  }
720
723
  }
721
- m = new WeakMap(), v = new WeakMap(), A = new WeakMap(), U = new WeakMap(), T = new WeakMap(), b = new WeakMap(), O = new WeakMap(), P = new WeakSet(), ye = async function({
724
+ h = new WeakMap(), v = new WeakMap(), A = new WeakMap(), U = new WeakMap(), T = new WeakMap(), b = new WeakMap(), O = new WeakMap(), P = new WeakSet(), ye = async function({
722
725
  resourceUrl: t,
723
726
  variant: r,
724
- useLightweightBuild: s,
725
- initialMemory: n
727
+ useLightweightBuild: o,
728
+ initialMemory: s
726
729
  }) {
727
- if (d(this, m)) {
730
+ if (u(this, h)) {
728
731
  console.log("Wasm already loaded");
729
732
  return;
730
733
  }
731
- const o = r ?? await Ge(), c = s ? "lightweight" : "full", a = "BlinkIdModule", l = I(
734
+ const n = r ?? await Ge(), m = o ? "lightweight" : "full", a = "BlinkIdModule", c = I(
732
735
  t,
733
- c,
734
- o
735
- ), i = I(l, `${a}.js`), u = I(l, `${a}.wasm`), f = I(l, `${a}.data`), h = await Ye(i), V = (await import(
736
+ m,
737
+ n
738
+ ), i = I(c, `${a}.js`), l = I(c, `${a}.wasm`), d = I(c, `${a}.data`), f = await Ye(i), V = (await import(
736
739
  /* @vite-ignore */
737
- h
740
+ f
738
741
  )).default;
739
- n || (n = Ke() ? 700 : 200);
742
+ s || (s = Ke() ? 700 : 200);
740
743
  const we = new WebAssembly.Memory({
741
- initial: re(n),
744
+ initial: re(s),
742
745
  maximum: re(2048),
743
- shared: o === "advanced-threads"
746
+ shared: n === "advanced-threads"
744
747
  });
745
748
  let S, E, q = 0;
746
749
  const be = 32, G = () => {
@@ -759,17 +762,17 @@ m = new WeakMap(), v = new WeakMap(), A = new WeakMap(), U = new WeakMap(), T =
759
762
  E = g, G();
760
763
  }, [Ee, xe] = await Promise.all([
761
764
  oe(
762
- u,
765
+ l,
763
766
  "wasm",
764
- o,
765
- c,
767
+ n,
768
+ m,
766
769
  Pe
767
770
  ),
768
771
  oe(
769
- f,
772
+ d,
770
773
  "data",
771
- o,
772
- c,
774
+ n,
775
+ m,
773
776
  Se
774
777
  )
775
778
  ]);
@@ -782,18 +785,18 @@ m = new WeakMap(), v = new WeakMap(), A = new WeakMap(), U = new WeakMap(), T =
782
785
  finished: !0
783
786
  });
784
787
  }
785
- if (y(this, m, await V({
786
- locateFile: (g) => `${l}/${o}/${g}`,
788
+ if (y(this, h, await V({
789
+ locateFile: (g) => `${c}/${n}/${g}`,
787
790
  // pthreads build breaks without this:
788
791
  // "Failed to execute 'createObjectURL' on 'URL': Overload resolution failed."
789
- mainScriptUrlOrBlob: h,
792
+ mainScriptUrlOrBlob: f,
790
793
  wasmBinary: Ee,
791
794
  getPreloadedPackage() {
792
795
  return xe;
793
796
  },
794
797
  wasmMemory: we,
795
798
  noExitRuntime: !0
796
- })), !d(this, m))
799
+ })), !u(this, h))
797
800
  throw new Error("Failed to load Wasm module");
798
801
  }, D = function(t) {
799
802
  const r = {
@@ -819,9 +822,9 @@ class lt {
819
822
  }
820
823
  }
821
824
  class ut extends Error {
822
- constructor(r, s) {
825
+ constructor(r, o) {
823
826
  super(r);
824
827
  x(this, "code");
825
- this.name = "LicenseError", this.code = s;
828
+ this.name = "LicenseError", this.code = o;
826
829
  }
827
830
  }
@@ -1,11 +1,11 @@
1
1
  async function createModule(moduleArg={}){var moduleRtn;var m=moduleArg,aa="object"==typeof window,ba="undefined"!=typeof WorkerGlobalScope;let ca;(ca=m).expectedDataFileDownloads??(ca.expectedDataFileDownloads=0);m.expectedDataFileDownloads++;
2
2
  (()=>{var a="undefined"!=typeof ENVIRONMENT_IS_WASM_WORKER&&ENVIRONMENT_IS_WASM_WORKER;"undefined"!=typeof ENVIRONMENT_IS_PTHREAD&&ENVIRONMENT_IS_PTHREAD||a||function(b){function c(k,u,n){let q;(q=m).dataFileDownloads??(q.dataFileDownloads={});fetch(k).catch(v=>Promise.reject(Error(`Network Error: ${k}`,{cause:v}))).then(v=>{if(!v.ok)return Promise.reject(Error(`${v.status}: ${v.url}`));if(!v.body&&v.arrayBuffer)return v.arrayBuffer().then(n);const p=v.body.getReader(),x=()=>p.read().then(K).catch(t=>
3
3
  Promise.reject(Error(`Unexpected error while handling : ${v.url} ${t}`,{cause:t}))),z=[],I=Number(v.headers.get("Content-Length")??u);let E=0;const K=({done:t,value:G})=>{if(t){var F=new Uint8Array(z.map(T=>T.length).reduce((T,ka)=>T+ka,0));t=0;for(var C of z)F.set(C,t),t+=C.length;n(F.buffer)}else{z.push(G);E+=G.length;m.dataFileDownloads[k]={loaded:E,total:I};t=C=0;for(F of Object.values(m.dataFileDownloads))C+=F.loaded,t+=F.total;m.setStatus?.(`Downloading data... (${C}/${t})`);return x()}};m.setStatus?.("Downloading data...");
4
- return x()})}function d(k){console.error("package error:",k)}function e(k){function u(p,x,z){this.start=p;this.end=x;this.audio=z}function n(p){if(!p)throw"Loading data file failed."+Error().stack;if(p.constructor.name!==ArrayBuffer.name)throw"bad input to processPackageData"+Error().stack;p=new Uint8Array(p);u.prototype.Ub=p;p=b.files;for(var x=0;x<p.length;++x)u.prototype.Cb[p[x].filename].onload();k.removeRunDependency("datafile_/opt/jenkins/android-arm64-huawei-p30-lite/root/E0/blinkid-next/packages/blinkid-wasm/dist/full/advanced/BlinkIdModule.data")}
4
+ return x()})}function d(k){console.error("package error:",k)}function e(k){function u(p,x,z){this.start=p;this.end=x;this.audio=z}function n(p){if(!p)throw"Loading data file failed."+Error().stack;if(p.constructor.name!==ArrayBuffer.name)throw"bad input to processPackageData"+Error().stack;p=new Uint8Array(p);u.prototype.Ub=p;p=b.files;for(var x=0;x<p.length;++x)u.prototype.Cb[p[x].filename].onload();k.removeRunDependency("datafile_/opt/jenkins/root/E0/blinkid-next/packages/blinkid-wasm/dist/full/advanced/BlinkIdModule.data")}
5
5
  k.FS_createPath("/","microblink",!0,!0);k.FS_createPath("/microblink","blinkid",!0,!0);u.prototype={Cb:{},open:function(p,x){this.name=x;this.Cb[x]=this;k.addRunDependency(`fp ${this.name}`)},send:function(){},onload:function(){this.finish(this.Ub.subarray(this.start,this.end))},finish:function(p){k.FS_createDataFile(this.name,null,p,!0,!0,!0);k.removeRunDependency(`fp ${this.name}`);this.Cb[this.name]=null}};for(var q=b.files,v=0;v<q.length;++v)(new u(q[v].start,q[v].end,q[v].audio||0)).open("GET",
6
- q[v].filename);k.addRunDependency("datafile_/opt/jenkins/android-arm64-huawei-p30-lite/root/E0/blinkid-next/packages/blinkid-wasm/dist/full/advanced/BlinkIdModule.data");k.preloadResults??(k.preloadResults={});k.preloadResults["/opt/jenkins/android-arm64-huawei-p30-lite/root/E0/blinkid-next/packages/blinkid-wasm/dist/full/advanced/BlinkIdModule.data"]={Gc:!1};l?(n(l),l=null):h=n}"object"===typeof window?window.encodeURIComponent(window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+
7
- "/"):"undefined"===typeof process&&"undefined"!==typeof location&&encodeURIComponent(location.pathname.substring(0,location.pathname.lastIndexOf("/"))+"/");var f=m.locateFile?m.locateFile("BlinkIdModule.data",""):"BlinkIdModule.data",g=b.remote_package_size,h=null,l=m.getPreloadedPackage?m.getPreloadedPackage(f,g):null;l||c(f,g,k=>{h?(h(k),h=null):l=k},d);if(m.calledRun)e(m);else{let k;((k=m).preRun??(k.preRun=[])).push(e)}}({files:[{filename:"/microblink/blinkid/Model_07c7ab860e77ec2e92bb822f6d62424b8595a5beb4340f6b2f7f6a4cffa5d050.strop",
8
- start:0,end:103198},{filename:"/microblink/blinkid/Model_083e679074e33233cdf9028116ed7803443e2acc876b915ecf4749ce6c33ee5c.strop",start:103198,end:228280},{filename:"/microblink/blinkid/Model_2880751121560047e6dc571bc8ff4683aeb863886f7c0789234594ceb1e23577.strop",start:228280,end:232015},{filename:"/microblink/blinkid/Model_36d8e94f4cb46097bd6b7385f2aa91fcdee1a5fefeec59e56d1b9e82c94b00a7.strop",start:232015,end:576471},{filename:"/microblink/blinkid/Model_3b11c3ffacbbf390b932fb9a7024f1a0016f66281ea8c790f8b5903374ad89c2.strop",
6
+ q[v].filename);k.addRunDependency("datafile_/opt/jenkins/root/E0/blinkid-next/packages/blinkid-wasm/dist/full/advanced/BlinkIdModule.data");k.preloadResults??(k.preloadResults={});k.preloadResults["/opt/jenkins/root/E0/blinkid-next/packages/blinkid-wasm/dist/full/advanced/BlinkIdModule.data"]={Gc:!1};l?(n(l),l=null):h=n}"object"===typeof window?window.encodeURIComponent(window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+"/"):"undefined"===typeof process&&"undefined"!==
7
+ typeof location&&encodeURIComponent(location.pathname.substring(0,location.pathname.lastIndexOf("/"))+"/");var f=m.locateFile?m.locateFile("BlinkIdModule.data",""):"BlinkIdModule.data",g=b.remote_package_size,h=null,l=m.getPreloadedPackage?m.getPreloadedPackage(f,g):null;l||c(f,g,k=>{h?(h(k),h=null):l=k},d);if(m.calledRun)e(m);else{let k;((k=m).preRun??(k.preRun=[])).push(e)}}({files:[{filename:"/microblink/blinkid/Model_07c7ab860e77ec2e92bb822f6d62424b8595a5beb4340f6b2f7f6a4cffa5d050.strop",start:0,
8
+ end:103198},{filename:"/microblink/blinkid/Model_083e679074e33233cdf9028116ed7803443e2acc876b915ecf4749ce6c33ee5c.strop",start:103198,end:228280},{filename:"/microblink/blinkid/Model_2880751121560047e6dc571bc8ff4683aeb863886f7c0789234594ceb1e23577.strop",start:228280,end:232015},{filename:"/microblink/blinkid/Model_36d8e94f4cb46097bd6b7385f2aa91fcdee1a5fefeec59e56d1b9e82c94b00a7.strop",start:232015,end:576471},{filename:"/microblink/blinkid/Model_3b11c3ffacbbf390b932fb9a7024f1a0016f66281ea8c790f8b5903374ad89c2.strop",
9
9
  start:576471,end:845192},{filename:"/microblink/blinkid/Model_4336af7999b059ac75281d0d71b60dd55b33c2b22c2b2c8e2b9ab56fe6ad720d.strop",start:845192,end:1172060},{filename:"/microblink/blinkid/Model_473ac5f5e256623c0a6b282698c1f1b033b9fb5359e6aa142e9fb4a4022afe4e.strop",start:1172060,end:1178509},{filename:"/microblink/blinkid/Model_7403cf61ed10e7e93ab9ebb030ee2aa31f5d3d19346a271859924d0288d2c8ba.strop",start:1178509,end:5147659},{filename:"/microblink/blinkid/Model_8326c5065a6d8451d6d004db73babf4a4a9f502c68643a14934cc098d04bf44f.strop",
10
10
  start:5147659,end:5535353},{filename:"/microblink/blinkid/Model_8c7727da554fd257fa758787ca3d0f517b47f6c5ba791792f516da7dd210fde8.strop",start:5535353,end:6562208},{filename:"/microblink/blinkid/Model_93607315418f2c5d3abec06d0b2a81e69abeb1b8d0506ed6373d7d74bd5e4b05.strop",start:6562208,end:7807199},{filename:"/microblink/blinkid/Model_a1516add883f909ebecf9b565238086f8f31bbb3e7fb2113258e3ae7c659555e.strop",start:7807199,end:8103001},{filename:"/microblink/blinkid/Model_b452fd3cd4037080cfcb4c423dba5bc58c8ceafc28427fdf9c5778fb353f088e.strop",
11
11
  start:8103001,end:8109497},{filename:"/microblink/blinkid/Model_dd833eb903e57415810f0f7beffb6eca256b1d070825dde8e54a46d684920682.strop",start:8109497,end:9532942},{filename:"/microblink/blinkid/Model_f2874f5766b779c063dbe30467979163497dc4b29c43bab23d70c798ee32993a.strop",start:9532942,end:9608344},{filename:"/microblink/blinkid/Model_f531088a1f65a31d6ba039e09446fe24c18360080fec3792308ac01514803620.strop",start:9608344,end:10271397},{filename:"/microblink/blinkid/Model_faf688599c7e261a2a7404730f69ed029115bb0d3e7a3657731d88e701720efe.strop",
@@ -1,16 +1,16 @@
1
1
  async function createModule(moduleArg={}){var moduleRtn;var h=moduleArg,ba="object"==typeof window,ca="undefined"!=typeof WorkerGlobalScope,n=ca&&self.name?.startsWith("em-pthread");let da;(da=h).expectedDataFileDownloads??(da.expectedDataFileDownloads=0);h.expectedDataFileDownloads++;
2
2
  (()=>{var a="undefined"!=typeof ENVIRONMENT_IS_WASM_WORKER&&ENVIRONMENT_IS_WASM_WORKER;"undefined"!=typeof n&&n||a||function(b){function c(m,r,p){let w;(w=h).dataFileDownloads??(w.dataFileDownloads={});fetch(m).catch(v=>Promise.reject(Error(`Network Error: ${m}`,{cause:v}))).then(v=>{if(!v.ok)return Promise.reject(Error(`${v.status}: ${v.url}`));if(!v.body&&v.arrayBuffer)return v.arrayBuffer().then(p);const t=v.body.getReader(),y=()=>t.read().then(L).catch(u=>Promise.reject(Error(`Unexpected error while handling : ${v.url} ${u}`,
3
3
  {cause:u}))),A=[],J=Number(v.headers.get("Content-Length")??r);let F=0;const L=({done:u,value:H})=>{if(u){var G=new Uint8Array(A.map(aa=>aa.length).reduce((aa,qa)=>aa+qa,0));u=0;for(var C of A)G.set(C,u),u+=C.length;p(G.buffer)}else{A.push(H);F+=H.length;h.dataFileDownloads[m]={loaded:F,total:J};u=C=0;for(G of Object.values(h.dataFileDownloads))C+=G.loaded,u+=G.total;h.setStatus?.(`Downloading data... (${C}/${u})`);return y()}};h.setStatus?.("Downloading data...");return y()})}function d(m){console.error("package error:",
4
- m)}function e(m){function r(t,y,A){this.start=t;this.end=y;this.audio=A}function p(t){if(!t)throw"Loading data file failed."+Error().stack;if(t.constructor.name!==ArrayBuffer.name)throw"bad input to processPackageData"+Error().stack;t=new Uint8Array(t);r.prototype.wc=t;t=b.files;for(var y=0;y<t.length;++y)r.prototype.bc[t[y].filename].onload();m.removeRunDependency("datafile_/opt/jenkins/android-arm64-huawei-p30-lite/root/E0/blinkid-next/packages/blinkid-wasm/dist/full/advanced-threads/BlinkIdModule.data")}
5
- m.FS_createPath("/","microblink",!0,!0);m.FS_createPath("/microblink","blinkid",!0,!0);r.prototype={bc:{},open:function(t,y){this.name=y;this.bc[y]=this;m.addRunDependency(`fp ${this.name}`)},send:function(){},onload:function(){this.finish(this.wc.subarray(this.start,this.end))},finish:function(t){m.FS_createDataFile(this.name,null,t,!0,!0,!0);m.removeRunDependency(`fp ${this.name}`);this.bc[this.name]=null}};for(var w=b.files,v=0;v<w.length;++v)(new r(w[v].start,w[v].end,w[v].audio||0)).open("GET",
6
- w[v].filename);m.addRunDependency("datafile_/opt/jenkins/android-arm64-huawei-p30-lite/root/E0/blinkid-next/packages/blinkid-wasm/dist/full/advanced-threads/BlinkIdModule.data");m.preloadResults??(m.preloadResults={});m.preloadResults["/opt/jenkins/android-arm64-huawei-p30-lite/root/E0/blinkid-next/packages/blinkid-wasm/dist/full/advanced-threads/BlinkIdModule.data"]={qd:!1};l?(p(l),l=null):k=p}"object"===typeof window?window.encodeURIComponent(window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+
7
- "/"):"undefined"===typeof process&&"undefined"!==typeof location&&encodeURIComponent(location.pathname.substring(0,location.pathname.lastIndexOf("/"))+"/");var f=h.locateFile?h.locateFile("BlinkIdModule.data",""):"BlinkIdModule.data",g=b.remote_package_size,k=null,l=h.getPreloadedPackage?h.getPreloadedPackage(f,g):null;l||c(f,g,m=>{k?(k(m),k=null):l=m},d);if(h.calledRun)e(h);else{let m;((m=h).preRun??(m.preRun=[])).push(e)}}({files:[{filename:"/microblink/blinkid/Model_07c7ab860e77ec2e92bb822f6d62424b8595a5beb4340f6b2f7f6a4cffa5d050.strop",
8
- start:0,end:103198},{filename:"/microblink/blinkid/Model_083e679074e33233cdf9028116ed7803443e2acc876b915ecf4749ce6c33ee5c.strop",start:103198,end:228280},{filename:"/microblink/blinkid/Model_2880751121560047e6dc571bc8ff4683aeb863886f7c0789234594ceb1e23577.strop",start:228280,end:232015},{filename:"/microblink/blinkid/Model_36d8e94f4cb46097bd6b7385f2aa91fcdee1a5fefeec59e56d1b9e82c94b00a7.strop",start:232015,end:576471},{filename:"/microblink/blinkid/Model_3b11c3ffacbbf390b932fb9a7024f1a0016f66281ea8c790f8b5903374ad89c2.strop",
9
- start:576471,end:845192},{filename:"/microblink/blinkid/Model_4336af7999b059ac75281d0d71b60dd55b33c2b22c2b2c8e2b9ab56fe6ad720d.strop",start:845192,end:1172060},{filename:"/microblink/blinkid/Model_473ac5f5e256623c0a6b282698c1f1b033b9fb5359e6aa142e9fb4a4022afe4e.strop",start:1172060,end:1178509},{filename:"/microblink/blinkid/Model_7403cf61ed10e7e93ab9ebb030ee2aa31f5d3d19346a271859924d0288d2c8ba.strop",start:1178509,end:5147659},{filename:"/microblink/blinkid/Model_8326c5065a6d8451d6d004db73babf4a4a9f502c68643a14934cc098d04bf44f.strop",
10
- start:5147659,end:5535353},{filename:"/microblink/blinkid/Model_8c7727da554fd257fa758787ca3d0f517b47f6c5ba791792f516da7dd210fde8.strop",start:5535353,end:6562208},{filename:"/microblink/blinkid/Model_93607315418f2c5d3abec06d0b2a81e69abeb1b8d0506ed6373d7d74bd5e4b05.strop",start:6562208,end:7807199},{filename:"/microblink/blinkid/Model_a1516add883f909ebecf9b565238086f8f31bbb3e7fb2113258e3ae7c659555e.strop",start:7807199,end:8103001},{filename:"/microblink/blinkid/Model_b452fd3cd4037080cfcb4c423dba5bc58c8ceafc28427fdf9c5778fb353f088e.strop",
11
- start:8103001,end:8109497},{filename:"/microblink/blinkid/Model_dd833eb903e57415810f0f7beffb6eca256b1d070825dde8e54a46d684920682.strop",start:8109497,end:9532942},{filename:"/microblink/blinkid/Model_f2874f5766b779c063dbe30467979163497dc4b29c43bab23d70c798ee32993a.strop",start:9532942,end:9608344},{filename:"/microblink/blinkid/Model_f531088a1f65a31d6ba039e09446fe24c18360080fec3792308ac01514803620.strop",start:9608344,end:10271397},{filename:"/microblink/blinkid/Model_faf688599c7e261a2a7404730f69ed029115bb0d3e7a3657731d88e701720efe.strop",
12
- start:10271397,end:10287070},{filename:"/microblink/blinkid/Model_fc22f7553e3e85531eb79ef6db1474302664508cc7ae4ff0d950447b20f2f8ee.strop",start:10287070,end:10359768},{filename:"/microblink/blinkid/ccc_lookup_table.zzip",start:10359768,end:10380237},{filename:"/microblink/blinkid/serialized_embedder_db_1.9.bin",start:10380237,end:13393962}],remote_package_size:13393962})})();h.onAbort=function(a){q("Aborted with message: "+a);try{throw new WebAssembly.RuntimeError(a);}catch(b){q("Stacktrace: "+b.stack)}};
13
- h="undefined"!==typeof h?h:{};(function(){var a="",b=!1;try{if("undefined"!==typeof self&&self.location&&self.location.href){var c=self.location.href;0===c.indexOf("blob:")&&(a=c,b=!0)}}catch(d){}b&&!h.locateFile&&(h.locateFile=function(d,e){return"BlinkIdModule.wasm"===d?a:e+d})})();var ea="./this.program",fa=import.meta.url,ha="",ia,ja;
4
+ m)}function e(m){function r(t,y,A){this.start=t;this.end=y;this.audio=A}function p(t){if(!t)throw"Loading data file failed."+Error().stack;if(t.constructor.name!==ArrayBuffer.name)throw"bad input to processPackageData"+Error().stack;t=new Uint8Array(t);r.prototype.wc=t;t=b.files;for(var y=0;y<t.length;++y)r.prototype.bc[t[y].filename].onload();m.removeRunDependency("datafile_/opt/jenkins/root/E0/blinkid-next/packages/blinkid-wasm/dist/full/advanced-threads/BlinkIdModule.data")}m.FS_createPath("/",
5
+ "microblink",!0,!0);m.FS_createPath("/microblink","blinkid",!0,!0);r.prototype={bc:{},open:function(t,y){this.name=y;this.bc[y]=this;m.addRunDependency(`fp ${this.name}`)},send:function(){},onload:function(){this.finish(this.wc.subarray(this.start,this.end))},finish:function(t){m.FS_createDataFile(this.name,null,t,!0,!0,!0);m.removeRunDependency(`fp ${this.name}`);this.bc[this.name]=null}};for(var w=b.files,v=0;v<w.length;++v)(new r(w[v].start,w[v].end,w[v].audio||0)).open("GET",w[v].filename);m.addRunDependency("datafile_/opt/jenkins/root/E0/blinkid-next/packages/blinkid-wasm/dist/full/advanced-threads/BlinkIdModule.data");
6
+ m.preloadResults??(m.preloadResults={});m.preloadResults["/opt/jenkins/root/E0/blinkid-next/packages/blinkid-wasm/dist/full/advanced-threads/BlinkIdModule.data"]={qd:!1};l?(p(l),l=null):k=p}"object"===typeof window?window.encodeURIComponent(window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+"/"):"undefined"===typeof process&&"undefined"!==typeof location&&encodeURIComponent(location.pathname.substring(0,location.pathname.lastIndexOf("/"))+"/");var f=h.locateFile?h.locateFile("BlinkIdModule.data",
7
+ ""):"BlinkIdModule.data",g=b.remote_package_size,k=null,l=h.getPreloadedPackage?h.getPreloadedPackage(f,g):null;l||c(f,g,m=>{k?(k(m),k=null):l=m},d);if(h.calledRun)e(h);else{let m;((m=h).preRun??(m.preRun=[])).push(e)}}({files:[{filename:"/microblink/blinkid/Model_07c7ab860e77ec2e92bb822f6d62424b8595a5beb4340f6b2f7f6a4cffa5d050.strop",start:0,end:103198},{filename:"/microblink/blinkid/Model_083e679074e33233cdf9028116ed7803443e2acc876b915ecf4749ce6c33ee5c.strop",start:103198,end:228280},{filename:"/microblink/blinkid/Model_2880751121560047e6dc571bc8ff4683aeb863886f7c0789234594ceb1e23577.strop",
8
+ start:228280,end:232015},{filename:"/microblink/blinkid/Model_36d8e94f4cb46097bd6b7385f2aa91fcdee1a5fefeec59e56d1b9e82c94b00a7.strop",start:232015,end:576471},{filename:"/microblink/blinkid/Model_3b11c3ffacbbf390b932fb9a7024f1a0016f66281ea8c790f8b5903374ad89c2.strop",start:576471,end:845192},{filename:"/microblink/blinkid/Model_4336af7999b059ac75281d0d71b60dd55b33c2b22c2b2c8e2b9ab56fe6ad720d.strop",start:845192,end:1172060},{filename:"/microblink/blinkid/Model_473ac5f5e256623c0a6b282698c1f1b033b9fb5359e6aa142e9fb4a4022afe4e.strop",
9
+ start:1172060,end:1178509},{filename:"/microblink/blinkid/Model_7403cf61ed10e7e93ab9ebb030ee2aa31f5d3d19346a271859924d0288d2c8ba.strop",start:1178509,end:5147659},{filename:"/microblink/blinkid/Model_8326c5065a6d8451d6d004db73babf4a4a9f502c68643a14934cc098d04bf44f.strop",start:5147659,end:5535353},{filename:"/microblink/blinkid/Model_8c7727da554fd257fa758787ca3d0f517b47f6c5ba791792f516da7dd210fde8.strop",start:5535353,end:6562208},{filename:"/microblink/blinkid/Model_93607315418f2c5d3abec06d0b2a81e69abeb1b8d0506ed6373d7d74bd5e4b05.strop",
10
+ start:6562208,end:7807199},{filename:"/microblink/blinkid/Model_a1516add883f909ebecf9b565238086f8f31bbb3e7fb2113258e3ae7c659555e.strop",start:7807199,end:8103001},{filename:"/microblink/blinkid/Model_b452fd3cd4037080cfcb4c423dba5bc58c8ceafc28427fdf9c5778fb353f088e.strop",start:8103001,end:8109497},{filename:"/microblink/blinkid/Model_dd833eb903e57415810f0f7beffb6eca256b1d070825dde8e54a46d684920682.strop",start:8109497,end:9532942},{filename:"/microblink/blinkid/Model_f2874f5766b779c063dbe30467979163497dc4b29c43bab23d70c798ee32993a.strop",
11
+ start:9532942,end:9608344},{filename:"/microblink/blinkid/Model_f531088a1f65a31d6ba039e09446fe24c18360080fec3792308ac01514803620.strop",start:9608344,end:10271397},{filename:"/microblink/blinkid/Model_faf688599c7e261a2a7404730f69ed029115bb0d3e7a3657731d88e701720efe.strop",start:10271397,end:10287070},{filename:"/microblink/blinkid/Model_fc22f7553e3e85531eb79ef6db1474302664508cc7ae4ff0d950447b20f2f8ee.strop",start:10287070,end:10359768},{filename:"/microblink/blinkid/ccc_lookup_table.zzip",start:10359768,
12
+ end:10380237},{filename:"/microblink/blinkid/serialized_embedder_db_1.9.bin",start:10380237,end:13393962}],remote_package_size:13393962})})();h.onAbort=function(a){q("Aborted with message: "+a);try{throw new WebAssembly.RuntimeError(a);}catch(b){q("Stacktrace: "+b.stack)}};h="undefined"!==typeof h?h:{};
13
+ (function(){var a="",b=!1;try{if("undefined"!==typeof self&&self.location&&self.location.href){var c=self.location.href;0===c.indexOf("blob:")&&(a=c,b=!0)}}catch(d){}b&&!h.locateFile&&(h.locateFile=function(d,e){return"BlinkIdModule.wasm"===d?a:e+d})})();var ea="./this.program",fa=import.meta.url,ha="",ia,ja;
14
14
  if(ba||ca){try{ha=(new URL(".",fa)).href}catch{}ca&&(ja=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)});ia=async a=>{a=await fetch(a,{credentials:"same-origin"});if(a.ok)return a.arrayBuffer();throw Error(a.status+" : "+a.url);}}var ka=console.log.bind(console),q=console.error.bind(console),la,ma,na=!1,oa;function x(){pa.buffer!=z.buffer&&ra()}var sa,ta,ua,va;
15
15
  if(n){var wa=!1;self.onunhandledrejection=b=>{throw b.reason||b;};function a(b){try{var c=b.data,d=c.nb;if("load"===d){let e=[];self.onmessage=f=>e.push(f);va=()=>{postMessage({nb:"loaded"});for(let f of e)a(f);self.onmessage=a};for(const f of c.Hc)if(!h[f]||h[f].proxy)h[f]=(...g)=>{postMessage({nb:"callHandler",Gc:f,tc:g})},"print"==f&&(ka=h[f]),"printErr"==f&&(q=h[f]);pa=c.gd;ra();ua(c.hd)}else if("run"===d){xa(c.jb);ya(c.jb,0,0,1,0,0);za();Aa(c.jb);wa||(Ba(),wa=!0);try{Ca(c.cd,c.Tb)}catch(e){if("unwind"!=
16
16
  e)throw e;}}else"setimmediate"!==c.target&&("checkMailbox"===d?wa&&Da():d&&(q(`worker: received unknown command ${d}`),q(c)))}catch(e){throw Ea(),e;}}self.onmessage=a}var pa,z,B,D,Fa,E,I,Ga,Ha,K,Ia,Ja=!1;function ra(){var a=pa.buffer;z=new Int8Array(a);D=new Int16Array(a);B=new Uint8Array(a);Fa=new Uint16Array(a);E=new Int32Array(a);I=new Uint32Array(a);Ga=new Float32Array(a);Ha=new Float64Array(a);K=new BigInt64Array(a);Ia=new BigUint64Array(a)}
@@ -1,16 +1,16 @@
1
1
  async function createModule(moduleArg={}){var moduleRtn;var m=moduleArg,aa="object"==typeof window,ba="undefined"!=typeof WorkerGlobalScope;let ca;(ca=m).expectedDataFileDownloads??(ca.expectedDataFileDownloads=0);m.expectedDataFileDownloads++;
2
2
  (()=>{var a="undefined"!=typeof ENVIRONMENT_IS_WASM_WORKER&&ENVIRONMENT_IS_WASM_WORKER;"undefined"!=typeof ENVIRONMENT_IS_PTHREAD&&ENVIRONMENT_IS_PTHREAD||a||function(b){function c(k,u,n){let q;(q=m).dataFileDownloads??(q.dataFileDownloads={});fetch(k).catch(v=>Promise.reject(Error(`Network Error: ${k}`,{cause:v}))).then(v=>{if(!v.ok)return Promise.reject(Error(`${v.status}: ${v.url}`));if(!v.body&&v.arrayBuffer)return v.arrayBuffer().then(n);const p=v.body.getReader(),x=()=>p.read().then(K).catch(r=>
3
3
  Promise.reject(Error(`Unexpected error while handling : ${v.url} ${r}`,{cause:r}))),z=[],I=Number(v.headers.get("Content-Length")??u);let E=0;const K=({done:r,value:G})=>{if(r){var F=new Uint8Array(z.map(T=>T.length).reduce((T,ka)=>T+ka,0));r=0;for(var C of z)F.set(C,r),r+=C.length;n(F.buffer)}else{z.push(G);E+=G.length;m.dataFileDownloads[k]={loaded:E,total:I};r=C=0;for(F of Object.values(m.dataFileDownloads))C+=F.loaded,r+=F.total;m.setStatus?.(`Downloading data... (${C}/${r})`);return x()}};m.setStatus?.("Downloading data...");
4
- return x()})}function d(k){console.error("package error:",k)}function e(k){function u(p,x,z){this.start=p;this.end=x;this.audio=z}function n(p){if(!p)throw"Loading data file failed."+Error().stack;if(p.constructor.name!==ArrayBuffer.name)throw"bad input to processPackageData"+Error().stack;p=new Uint8Array(p);u.prototype.Tb=p;p=b.files;for(var x=0;x<p.length;++x)u.prototype.Ab[p[x].filename].onload();k.removeRunDependency("datafile_/opt/jenkins/android-arm64-huawei-p30-lite/root/E0/blinkid-next/packages/blinkid-wasm/dist/full/basic/BlinkIdModule.data")}
4
+ return x()})}function d(k){console.error("package error:",k)}function e(k){function u(p,x,z){this.start=p;this.end=x;this.audio=z}function n(p){if(!p)throw"Loading data file failed."+Error().stack;if(p.constructor.name!==ArrayBuffer.name)throw"bad input to processPackageData"+Error().stack;p=new Uint8Array(p);u.prototype.Tb=p;p=b.files;for(var x=0;x<p.length;++x)u.prototype.Ab[p[x].filename].onload();k.removeRunDependency("datafile_/opt/jenkins/root/E0/blinkid-next/packages/blinkid-wasm/dist/full/basic/BlinkIdModule.data")}
5
5
  k.FS_createPath("/","microblink",!0,!0);k.FS_createPath("/microblink","blinkid",!0,!0);u.prototype={Ab:{},open:function(p,x){this.name=x;this.Ab[x]=this;k.addRunDependency(`fp ${this.name}`)},send:function(){},onload:function(){this.finish(this.Tb.subarray(this.start,this.end))},finish:function(p){k.FS_createDataFile(this.name,null,p,!0,!0,!0);k.removeRunDependency(`fp ${this.name}`);this.Ab[this.name]=null}};for(var q=b.files,v=0;v<q.length;++v)(new u(q[v].start,q[v].end,q[v].audio||0)).open("GET",
6
- q[v].filename);k.addRunDependency("datafile_/opt/jenkins/android-arm64-huawei-p30-lite/root/E0/blinkid-next/packages/blinkid-wasm/dist/full/basic/BlinkIdModule.data");k.preloadResults??(k.preloadResults={});k.preloadResults["/opt/jenkins/android-arm64-huawei-p30-lite/root/E0/blinkid-next/packages/blinkid-wasm/dist/full/basic/BlinkIdModule.data"]={Fc:!1};l?(n(l),l=null):h=n}"object"===typeof window?window.encodeURIComponent(window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+
7
- "/"):"undefined"===typeof process&&"undefined"!==typeof location&&encodeURIComponent(location.pathname.substring(0,location.pathname.lastIndexOf("/"))+"/");var f=m.locateFile?m.locateFile("BlinkIdModule.data",""):"BlinkIdModule.data",g=b.remote_package_size,h=null,l=m.getPreloadedPackage?m.getPreloadedPackage(f,g):null;l||c(f,g,k=>{h?(h(k),h=null):l=k},d);if(m.calledRun)e(m);else{let k;((k=m).preRun??(k.preRun=[])).push(e)}}({files:[{filename:"/microblink/blinkid/Model_07c7ab860e77ec2e92bb822f6d62424b8595a5beb4340f6b2f7f6a4cffa5d050.strop",
8
- start:0,end:103198},{filename:"/microblink/blinkid/Model_083e679074e33233cdf9028116ed7803443e2acc876b915ecf4749ce6c33ee5c.strop",start:103198,end:228280},{filename:"/microblink/blinkid/Model_2880751121560047e6dc571bc8ff4683aeb863886f7c0789234594ceb1e23577.strop",start:228280,end:232015},{filename:"/microblink/blinkid/Model_36d8e94f4cb46097bd6b7385f2aa91fcdee1a5fefeec59e56d1b9e82c94b00a7.strop",start:232015,end:576471},{filename:"/microblink/blinkid/Model_3b11c3ffacbbf390b932fb9a7024f1a0016f66281ea8c790f8b5903374ad89c2.strop",
9
- start:576471,end:845192},{filename:"/microblink/blinkid/Model_4336af7999b059ac75281d0d71b60dd55b33c2b22c2b2c8e2b9ab56fe6ad720d.strop",start:845192,end:1172060},{filename:"/microblink/blinkid/Model_473ac5f5e256623c0a6b282698c1f1b033b9fb5359e6aa142e9fb4a4022afe4e.strop",start:1172060,end:1178509},{filename:"/microblink/blinkid/Model_7403cf61ed10e7e93ab9ebb030ee2aa31f5d3d19346a271859924d0288d2c8ba.strop",start:1178509,end:5147659},{filename:"/microblink/blinkid/Model_8326c5065a6d8451d6d004db73babf4a4a9f502c68643a14934cc098d04bf44f.strop",
10
- start:5147659,end:5535353},{filename:"/microblink/blinkid/Model_8c7727da554fd257fa758787ca3d0f517b47f6c5ba791792f516da7dd210fde8.strop",start:5535353,end:6562208},{filename:"/microblink/blinkid/Model_93607315418f2c5d3abec06d0b2a81e69abeb1b8d0506ed6373d7d74bd5e4b05.strop",start:6562208,end:7807199},{filename:"/microblink/blinkid/Model_a1516add883f909ebecf9b565238086f8f31bbb3e7fb2113258e3ae7c659555e.strop",start:7807199,end:8103001},{filename:"/microblink/blinkid/Model_b452fd3cd4037080cfcb4c423dba5bc58c8ceafc28427fdf9c5778fb353f088e.strop",
11
- start:8103001,end:8109497},{filename:"/microblink/blinkid/Model_dd833eb903e57415810f0f7beffb6eca256b1d070825dde8e54a46d684920682.strop",start:8109497,end:9532942},{filename:"/microblink/blinkid/Model_f2874f5766b779c063dbe30467979163497dc4b29c43bab23d70c798ee32993a.strop",start:9532942,end:9608344},{filename:"/microblink/blinkid/Model_f531088a1f65a31d6ba039e09446fe24c18360080fec3792308ac01514803620.strop",start:9608344,end:10271397},{filename:"/microblink/blinkid/Model_faf688599c7e261a2a7404730f69ed029115bb0d3e7a3657731d88e701720efe.strop",
12
- start:10271397,end:10287070},{filename:"/microblink/blinkid/Model_fc22f7553e3e85531eb79ef6db1474302664508cc7ae4ff0d950447b20f2f8ee.strop",start:10287070,end:10359768},{filename:"/microblink/blinkid/ccc_lookup_table.zzip",start:10359768,end:10380237},{filename:"/microblink/blinkid/serialized_embedder_db_1.9.bin",start:10380237,end:13393962}],remote_package_size:13393962})})();m.onAbort=function(a){t("Aborted with message: "+a);try{throw new WebAssembly.RuntimeError(a);}catch(b){t("Stacktrace: "+b.stack)}};
13
- m="undefined"!==typeof m?m:{};(function(){var a="",b=!1;try{if("undefined"!==typeof self&&self.location&&self.location.href){var c=self.location.href;0===c.indexOf("blob:")&&(a=c,b=!0)}}catch(d){}b&&!m.locateFile&&(m.locateFile=function(d,e){return"BlinkIdModule.wasm"===d?a:e+d})})();var da="./this.program",ea=import.meta.url,fa="",ha,ia;
6
+ q[v].filename);k.addRunDependency("datafile_/opt/jenkins/root/E0/blinkid-next/packages/blinkid-wasm/dist/full/basic/BlinkIdModule.data");k.preloadResults??(k.preloadResults={});k.preloadResults["/opt/jenkins/root/E0/blinkid-next/packages/blinkid-wasm/dist/full/basic/BlinkIdModule.data"]={Fc:!1};l?(n(l),l=null):h=n}"object"===typeof window?window.encodeURIComponent(window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+"/"):"undefined"===typeof process&&"undefined"!==typeof location&&
7
+ encodeURIComponent(location.pathname.substring(0,location.pathname.lastIndexOf("/"))+"/");var f=m.locateFile?m.locateFile("BlinkIdModule.data",""):"BlinkIdModule.data",g=b.remote_package_size,h=null,l=m.getPreloadedPackage?m.getPreloadedPackage(f,g):null;l||c(f,g,k=>{h?(h(k),h=null):l=k},d);if(m.calledRun)e(m);else{let k;((k=m).preRun??(k.preRun=[])).push(e)}}({files:[{filename:"/microblink/blinkid/Model_07c7ab860e77ec2e92bb822f6d62424b8595a5beb4340f6b2f7f6a4cffa5d050.strop",start:0,end:103198},{filename:"/microblink/blinkid/Model_083e679074e33233cdf9028116ed7803443e2acc876b915ecf4749ce6c33ee5c.strop",
8
+ start:103198,end:228280},{filename:"/microblink/blinkid/Model_2880751121560047e6dc571bc8ff4683aeb863886f7c0789234594ceb1e23577.strop",start:228280,end:232015},{filename:"/microblink/blinkid/Model_36d8e94f4cb46097bd6b7385f2aa91fcdee1a5fefeec59e56d1b9e82c94b00a7.strop",start:232015,end:576471},{filename:"/microblink/blinkid/Model_3b11c3ffacbbf390b932fb9a7024f1a0016f66281ea8c790f8b5903374ad89c2.strop",start:576471,end:845192},{filename:"/microblink/blinkid/Model_4336af7999b059ac75281d0d71b60dd55b33c2b22c2b2c8e2b9ab56fe6ad720d.strop",
9
+ start:845192,end:1172060},{filename:"/microblink/blinkid/Model_473ac5f5e256623c0a6b282698c1f1b033b9fb5359e6aa142e9fb4a4022afe4e.strop",start:1172060,end:1178509},{filename:"/microblink/blinkid/Model_7403cf61ed10e7e93ab9ebb030ee2aa31f5d3d19346a271859924d0288d2c8ba.strop",start:1178509,end:5147659},{filename:"/microblink/blinkid/Model_8326c5065a6d8451d6d004db73babf4a4a9f502c68643a14934cc098d04bf44f.strop",start:5147659,end:5535353},{filename:"/microblink/blinkid/Model_8c7727da554fd257fa758787ca3d0f517b47f6c5ba791792f516da7dd210fde8.strop",
10
+ start:5535353,end:6562208},{filename:"/microblink/blinkid/Model_93607315418f2c5d3abec06d0b2a81e69abeb1b8d0506ed6373d7d74bd5e4b05.strop",start:6562208,end:7807199},{filename:"/microblink/blinkid/Model_a1516add883f909ebecf9b565238086f8f31bbb3e7fb2113258e3ae7c659555e.strop",start:7807199,end:8103001},{filename:"/microblink/blinkid/Model_b452fd3cd4037080cfcb4c423dba5bc58c8ceafc28427fdf9c5778fb353f088e.strop",start:8103001,end:8109497},{filename:"/microblink/blinkid/Model_dd833eb903e57415810f0f7beffb6eca256b1d070825dde8e54a46d684920682.strop",
11
+ start:8109497,end:9532942},{filename:"/microblink/blinkid/Model_f2874f5766b779c063dbe30467979163497dc4b29c43bab23d70c798ee32993a.strop",start:9532942,end:9608344},{filename:"/microblink/blinkid/Model_f531088a1f65a31d6ba039e09446fe24c18360080fec3792308ac01514803620.strop",start:9608344,end:10271397},{filename:"/microblink/blinkid/Model_faf688599c7e261a2a7404730f69ed029115bb0d3e7a3657731d88e701720efe.strop",start:10271397,end:10287070},{filename:"/microblink/blinkid/Model_fc22f7553e3e85531eb79ef6db1474302664508cc7ae4ff0d950447b20f2f8ee.strop",
12
+ start:10287070,end:10359768},{filename:"/microblink/blinkid/ccc_lookup_table.zzip",start:10359768,end:10380237},{filename:"/microblink/blinkid/serialized_embedder_db_1.9.bin",start:10380237,end:13393962}],remote_package_size:13393962})})();m.onAbort=function(a){t("Aborted with message: "+a);try{throw new WebAssembly.RuntimeError(a);}catch(b){t("Stacktrace: "+b.stack)}};m="undefined"!==typeof m?m:{};
13
+ (function(){var a="",b=!1;try{if("undefined"!==typeof self&&self.location&&self.location.href){var c=self.location.href;0===c.indexOf("blob:")&&(a=c,b=!0)}}catch(d){}b&&!m.locateFile&&(m.locateFile=function(d,e){return"BlinkIdModule.wasm"===d?a:e+d})})();var da="./this.program",ea=import.meta.url,fa="",ha,ia;
14
14
  if(aa||ba){try{fa=(new URL(".",ea)).href}catch{}ba&&(ia=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)});ha=async a=>{a=await fetch(a,{credentials:"same-origin"});if(a.ok)return a.arrayBuffer();throw Error(a.status+" : "+a.url);}}var ja=console.log.bind(console),t=console.error.bind(console),la,ma=!1,na,oa,pa,qa,w,y,A,ra,B,D,sa,ta,H,ua,va=!1;
15
15
  function wa(){var a=qa.buffer;w=new Int8Array(a);A=new Int16Array(a);y=new Uint8Array(a);ra=new Uint16Array(a);B=new Int32Array(a);D=new Uint32Array(a);sa=new Float32Array(a);ta=new Float64Array(a);H=new BigInt64Array(a);ua=new BigUint64Array(a)}var xa=0,ya=null;function za(){xa++;m.monitorRunDependencies?.(xa)}function Aa(){xa--;m.monitorRunDependencies?.(xa);if(0==xa&&ya){var a=ya;ya=null;a()}}
16
16
  function Ba(a){m.onAbort?.(a);a="Aborted("+a+")";t(a);ma=!0;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");pa?.(a);throw a;}var Ca;async function Da(a){if(!la)try{var b=await ha(a);return new Uint8Array(b)}catch{}if(a==Ca&&la)a=new Uint8Array(la);else if(ia)a=ia(a);else throw"both async and sync fetching of the wasm failed";return a}
@@ -93,7 +93,7 @@ Object.assign(Lc.prototype,{Zb(a){this.Ob&&(a=this.Ob(a));return a},Hb(a){this.M
93
93
  e?b.call(this):this.kb?Kc(d.ua.Va,{xa:d,va:e,Ha:this,Ca:a}):Kc(d.ua.Va,{xa:d,va:e})}});Y=new xd;za("library_fetch_init");(function(a,b){try{var c=indexedDB.open("emscripten_filesystem",1)}catch(d){b(d);return}c.onupgradeneeded=d=>{d=d.target.result;d.objectStoreNames.contains("FILES")&&d.deleteObjectStore("FILES");d.createObjectStore("FILES")};c.onsuccess=d=>a(d.target.result);c.onerror=b})(a=>{yd=a;Aa("library_fetch_init")},()=>{yd=!1;Aa("library_fetch_init")});
94
94
  qa=m.wasmMemory?m.wasmMemory:new WebAssembly.Memory({initial:(m.INITIAL_MEMORY||209715200)/65536,maximum:32768});wa();m.noExitRuntime&&(La=m.noExitRuntime);m.preloadPlugins&&(nb=m.preloadPlugins);m.print&&(ja=m.print);m.printErr&&(t=m.printErr);m.wasmBinary&&(la=m.wasmBinary);m.thisProgram&&(da=m.thisProgram);m.addRunDependency=za;m.removeRunDependency=Aa;
95
95
  m.FS_createPreloadedFile=(a,b,c,d,e,f,g,h,l,k)=>{function u(v){function p(x){k?.();h||Zb(a,b,x,d,e,l);f?.();Aa(q)}ob(v,n,p,()=>{g?.();Aa(q)})||p(v)}var n=b?Va(Ra(a+"/"+b)):a,q=`cp ${n}`;za(q);"string"==typeof c?mb(c).then(u,g):u(c)};m.FS_unlink=(...a)=>Qb(...a);m.FS_createPath=(...a)=>Xb(...a);m.FS_createDevice=(...a)=>$b(...a);m.FS_createDataFile=(...a)=>Zb(...a);m.FS_createLazyFile=(...a)=>bc(...a);
96
- var Id={332857:(a,b,c,d)=>{a=a?L(y,a):"";b=b?L(y,b):"";c=c?L(y,c):"";d=d?L(y,d):"";throw Error(a+b+c+d);},333073:(a,b)=>{a=a?L(y,a):"";b=b?L(y,b):"";throw Error(a+b);}},Oc,Pc,Ad,gb,Jd;m.__ZN2MB2NN28LinearDefragmentingAllocator10Allocation4nullE=1024;
96
+ var Id={332841:(a,b,c,d)=>{a=a?L(y,a):"";b=b?L(y,b):"";c=c?L(y,c):"";d=d?L(y,d):"";throw Error(a+b+c+d);},333057:(a,b)=>{a=a?L(y,a):"";b=b?L(y,b):"";throw Error(a+b);}},Oc,Pc,Ad,gb,Jd;m.__ZN2MB2NN28LinearDefragmentingAllocator10Allocation4nullE=1024;
97
97
  var Kd={y:(a,b)=>Oa(a)(b),q:function(a,b,c){Pa=c;try{var d=Hb(a);switch(b){case 0:var e=J();if(0>e)break;for(;sb[e];)e++;return Jb(d,e).Sa;case 1:case 2:return 0;case 3:return d.flags;case 4:return e=J(),d.flags|=e,0;case 12:return e=J(),A[e+0>>1]=2,0;case 13:case 14:return 0}return-28}catch(f){if("undefined"==typeof R||"ErrnoError"!==f.name)throw f;return-f.Aa}},R:function(a,b){try{var c=Hb(a),d=c.node,e=c.sa.Ja;a=e?c:d;e??=d.ta.Ja;Gb(e);var f=e(a);return ec(b,f)}catch(g){if("undefined"==typeof R||
98
98
  "ErrnoError"!==g.name)throw g;return-g.Aa}},S:function(a,b,c){Pa=c;try{var d=Hb(a);switch(b){case 21509:return d.wa?0:-59;case 21505:if(!d.wa)return-59;if(d.wa.Qa.fc){a=[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];var e=J();B[e>>2]=25856;B[e+4>>2]=5;B[e+8>>2]=191;B[e+12>>2]=35387;for(var f=0;32>f;f++)w[e+f+17]=a[f]||0}return 0;case 21510:case 21511:case 21512:return d.wa?0:-59;case 21506:case 21507:case 21508:if(!d.wa)return-59;if(d.wa.Qa.hc)for(e=J(),a=[],f=0;32>f;f++)a.push(w[e+
99
99
  f+17]);return 0;case 21519:if(!d.wa)return-59;e=J();return B[e>>2]=0;case 21520:return d.wa?-28:-59;case 21537:case 21531:e=J();if(!d.sa.ec)throw new N(59);return d.sa.ec(d,b,e);case 21523:if(!d.wa)return-59;d.wa.Qa.ic&&(f=[24,80],e=J(),A[e>>1]=f[0],A[e+2>>1]=f[1]);return 0;case 21524:return d.wa?0:-59;case 21515:return d.wa?0:-59;default:return-28}}catch(g){if("undefined"==typeof R||"ErrnoError"!==g.name)throw g;return-g.Aa}},P:function(a,b){try{return a=a?L(y,a):"",ec(b,Rb(a,!0))}catch(c){if("undefined"==
@@ -1,10 +1,10 @@
1
1
  async function createModule(moduleArg={}){var moduleRtn;var m=moduleArg,aa="object"==typeof window,ba="undefined"!=typeof WorkerGlobalScope;let ca;(ca=m).expectedDataFileDownloads??(ca.expectedDataFileDownloads=0);m.expectedDataFileDownloads++;
2
2
  (()=>{var a="undefined"!=typeof ENVIRONMENT_IS_WASM_WORKER&&ENVIRONMENT_IS_WASM_WORKER;"undefined"!=typeof ENVIRONMENT_IS_PTHREAD&&ENVIRONMENT_IS_PTHREAD||a||function(b){function c(k,u,n){let q;(q=m).dataFileDownloads??(q.dataFileDownloads={});fetch(k).catch(v=>Promise.reject(Error(`Network Error: ${k}`,{cause:v}))).then(v=>{if(!v.ok)return Promise.reject(Error(`${v.status}: ${v.url}`));if(!v.body&&v.arrayBuffer)return v.arrayBuffer().then(n);const p=v.body.getReader(),x=()=>p.read().then(K).catch(t=>
3
3
  Promise.reject(Error(`Unexpected error while handling : ${v.url} ${t}`,{cause:t}))),z=[],I=Number(v.headers.get("Content-Length")??u);let E=0;const K=({done:t,value:G})=>{if(t){var F=new Uint8Array(z.map(T=>T.length).reduce((T,ka)=>T+ka,0));t=0;for(var C of z)F.set(C,t),t+=C.length;n(F.buffer)}else{z.push(G);E+=G.length;m.dataFileDownloads[k]={loaded:E,total:I};t=C=0;for(F of Object.values(m.dataFileDownloads))C+=F.loaded,t+=F.total;m.setStatus?.(`Downloading data... (${C}/${t})`);return x()}};m.setStatus?.("Downloading data...");
4
- return x()})}function d(k){console.error("package error:",k)}function e(k){function u(p,x,z){this.start=p;this.end=x;this.audio=z}function n(p){if(!p)throw"Loading data file failed."+Error().stack;if(p.constructor.name!==ArrayBuffer.name)throw"bad input to processPackageData"+Error().stack;p=new Uint8Array(p);u.prototype.Ub=p;p=b.files;for(var x=0;x<p.length;++x)u.prototype.Cb[p[x].filename].onload();k.removeRunDependency("datafile_/opt/jenkins/android-arm64-huawei-p30-lite/root/E0/blinkid-next/packages/blinkid-wasm/dist/lightweight/advanced/BlinkIdModule.data")}
4
+ return x()})}function d(k){console.error("package error:",k)}function e(k){function u(p,x,z){this.start=p;this.end=x;this.audio=z}function n(p){if(!p)throw"Loading data file failed."+Error().stack;if(p.constructor.name!==ArrayBuffer.name)throw"bad input to processPackageData"+Error().stack;p=new Uint8Array(p);u.prototype.Ub=p;p=b.files;for(var x=0;x<p.length;++x)u.prototype.Cb[p[x].filename].onload();k.removeRunDependency("datafile_/opt/jenkins/root/E0/blinkid-next/packages/blinkid-wasm/dist/lightweight/advanced/BlinkIdModule.data")}
5
5
  k.FS_createPath("/","microblink",!0,!0);k.FS_createPath("/microblink","blinkid",!0,!0);u.prototype={Cb:{},open:function(p,x){this.name=x;this.Cb[x]=this;k.addRunDependency(`fp ${this.name}`)},send:function(){},onload:function(){this.finish(this.Ub.subarray(this.start,this.end))},finish:function(p){k.FS_createDataFile(this.name,null,p,!0,!0,!0);k.removeRunDependency(`fp ${this.name}`);this.Cb[this.name]=null}};for(var q=b.files,v=0;v<q.length;++v)(new u(q[v].start,q[v].end,q[v].audio||0)).open("GET",
6
- q[v].filename);k.addRunDependency("datafile_/opt/jenkins/android-arm64-huawei-p30-lite/root/E0/blinkid-next/packages/blinkid-wasm/dist/lightweight/advanced/BlinkIdModule.data");k.preloadResults??(k.preloadResults={});k.preloadResults["/opt/jenkins/android-arm64-huawei-p30-lite/root/E0/blinkid-next/packages/blinkid-wasm/dist/lightweight/advanced/BlinkIdModule.data"]={Gc:!1};l?(n(l),l=null):h=n}"object"===typeof window?window.encodeURIComponent(window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+
7
- "/"):"undefined"===typeof process&&"undefined"!==typeof location&&encodeURIComponent(location.pathname.substring(0,location.pathname.lastIndexOf("/"))+"/");var f=m.locateFile?m.locateFile("BlinkIdModule.data",""):"BlinkIdModule.data",g=b.remote_package_size,h=null,l=m.getPreloadedPackage?m.getPreloadedPackage(f,g):null;l||c(f,g,k=>{h?(h(k),h=null):l=k},d);if(m.calledRun)e(m);else{let k;((k=m).preRun??(k.preRun=[])).push(e)}}({files:[{filename:"/microblink/blinkid/Model_07c7ab860e77ec2e92bb822f6d62424b8595a5beb4340f6b2f7f6a4cffa5d050.strop",
6
+ q[v].filename);k.addRunDependency("datafile_/opt/jenkins/root/E0/blinkid-next/packages/blinkid-wasm/dist/lightweight/advanced/BlinkIdModule.data");k.preloadResults??(k.preloadResults={});k.preloadResults["/opt/jenkins/root/E0/blinkid-next/packages/blinkid-wasm/dist/lightweight/advanced/BlinkIdModule.data"]={Gc:!1};l?(n(l),l=null):h=n}"object"===typeof window?window.encodeURIComponent(window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+"/"):"undefined"===typeof process&&
7
+ "undefined"!==typeof location&&encodeURIComponent(location.pathname.substring(0,location.pathname.lastIndexOf("/"))+"/");var f=m.locateFile?m.locateFile("BlinkIdModule.data",""):"BlinkIdModule.data",g=b.remote_package_size,h=null,l=m.getPreloadedPackage?m.getPreloadedPackage(f,g):null;l||c(f,g,k=>{h?(h(k),h=null):l=k},d);if(m.calledRun)e(m);else{let k;((k=m).preRun??(k.preRun=[])).push(e)}}({files:[{filename:"/microblink/blinkid/Model_07c7ab860e77ec2e92bb822f6d62424b8595a5beb4340f6b2f7f6a4cffa5d050.strop",
8
8
  start:0,end:103198},{filename:"/microblink/blinkid/Model_083e679074e33233cdf9028116ed7803443e2acc876b915ecf4749ce6c33ee5c.strop",start:103198,end:228280},{filename:"/microblink/blinkid/Model_2880751121560047e6dc571bc8ff4683aeb863886f7c0789234594ceb1e23577.strop",start:228280,end:232015},{filename:"/microblink/blinkid/Model_36d8e94f4cb46097bd6b7385f2aa91fcdee1a5fefeec59e56d1b9e82c94b00a7.strop",start:232015,end:576471},{filename:"/microblink/blinkid/Model_3b11c3ffacbbf390b932fb9a7024f1a0016f66281ea8c790f8b5903374ad89c2.strop",
9
9
  start:576471,end:845192},{filename:"/microblink/blinkid/Model_4336af7999b059ac75281d0d71b60dd55b33c2b22c2b2c8e2b9ab56fe6ad720d.strop",start:845192,end:1172060},{filename:"/microblink/blinkid/Model_473ac5f5e256623c0a6b282698c1f1b033b9fb5359e6aa142e9fb4a4022afe4e.strop",start:1172060,end:1178509},{filename:"/microblink/blinkid/Model_7403cf61ed10e7e93ab9ebb030ee2aa31f5d3d19346a271859924d0288d2c8ba.strop",start:1178509,end:5147659},{filename:"/microblink/blinkid/Model_8c7727da554fd257fa758787ca3d0f517b47f6c5ba791792f516da7dd210fde8.strop",
10
10
  start:5147659,end:6174514},{filename:"/microblink/blinkid/Model_a1516add883f909ebecf9b565238086f8f31bbb3e7fb2113258e3ae7c659555e.strop",start:6174514,end:6470316},{filename:"/microblink/blinkid/Model_b452fd3cd4037080cfcb4c423dba5bc58c8ceafc28427fdf9c5778fb353f088e.strop",start:6470316,end:6476812},{filename:"/microblink/blinkid/Model_dd833eb903e57415810f0f7beffb6eca256b1d070825dde8e54a46d684920682.strop",start:6476812,end:7900257},{filename:"/microblink/blinkid/Model_f2874f5766b779c063dbe30467979163497dc4b29c43bab23d70c798ee32993a.strop",
@@ -1,16 +1,15 @@
1
1
  async function createModule(moduleArg={}){var moduleRtn;var h=moduleArg,ba="object"==typeof window,ca="undefined"!=typeof WorkerGlobalScope,n=ca&&self.name?.startsWith("em-pthread");let da;(da=h).expectedDataFileDownloads??(da.expectedDataFileDownloads=0);h.expectedDataFileDownloads++;
2
2
  (()=>{var a="undefined"!=typeof ENVIRONMENT_IS_WASM_WORKER&&ENVIRONMENT_IS_WASM_WORKER;"undefined"!=typeof n&&n||a||function(b){function c(m,r,p){let w;(w=h).dataFileDownloads??(w.dataFileDownloads={});fetch(m).catch(v=>Promise.reject(Error(`Network Error: ${m}`,{cause:v}))).then(v=>{if(!v.ok)return Promise.reject(Error(`${v.status}: ${v.url}`));if(!v.body&&v.arrayBuffer)return v.arrayBuffer().then(p);const t=v.body.getReader(),y=()=>t.read().then(L).catch(u=>Promise.reject(Error(`Unexpected error while handling : ${v.url} ${u}`,
3
3
  {cause:u}))),A=[],J=Number(v.headers.get("Content-Length")??r);let F=0;const L=({done:u,value:H})=>{if(u){var G=new Uint8Array(A.map(aa=>aa.length).reduce((aa,qa)=>aa+qa,0));u=0;for(var C of A)G.set(C,u),u+=C.length;p(G.buffer)}else{A.push(H);F+=H.length;h.dataFileDownloads[m]={loaded:F,total:J};u=C=0;for(G of Object.values(h.dataFileDownloads))C+=G.loaded,u+=G.total;h.setStatus?.(`Downloading data... (${C}/${u})`);return y()}};h.setStatus?.("Downloading data...");return y()})}function d(m){console.error("package error:",
4
- m)}function e(m){function r(t,y,A){this.start=t;this.end=y;this.audio=A}function p(t){if(!t)throw"Loading data file failed."+Error().stack;if(t.constructor.name!==ArrayBuffer.name)throw"bad input to processPackageData"+Error().stack;t=new Uint8Array(t);r.prototype.wc=t;t=b.files;for(var y=0;y<t.length;++y)r.prototype.bc[t[y].filename].onload();m.removeRunDependency("datafile_/opt/jenkins/android-arm64-huawei-p30-lite/root/E0/blinkid-next/packages/blinkid-wasm/dist/lightweight/advanced-threads/BlinkIdModule.data")}
5
- m.FS_createPath("/","microblink",!0,!0);m.FS_createPath("/microblink","blinkid",!0,!0);r.prototype={bc:{},open:function(t,y){this.name=y;this.bc[y]=this;m.addRunDependency(`fp ${this.name}`)},send:function(){},onload:function(){this.finish(this.wc.subarray(this.start,this.end))},finish:function(t){m.FS_createDataFile(this.name,null,t,!0,!0,!0);m.removeRunDependency(`fp ${this.name}`);this.bc[this.name]=null}};for(var w=b.files,v=0;v<w.length;++v)(new r(w[v].start,w[v].end,w[v].audio||0)).open("GET",
6
- w[v].filename);m.addRunDependency("datafile_/opt/jenkins/android-arm64-huawei-p30-lite/root/E0/blinkid-next/packages/blinkid-wasm/dist/lightweight/advanced-threads/BlinkIdModule.data");m.preloadResults??(m.preloadResults={});m.preloadResults["/opt/jenkins/android-arm64-huawei-p30-lite/root/E0/blinkid-next/packages/blinkid-wasm/dist/lightweight/advanced-threads/BlinkIdModule.data"]={qd:!1};l?(p(l),l=null):k=p}"object"===typeof window?window.encodeURIComponent(window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+
7
- "/"):"undefined"===typeof process&&"undefined"!==typeof location&&encodeURIComponent(location.pathname.substring(0,location.pathname.lastIndexOf("/"))+"/");var f=h.locateFile?h.locateFile("BlinkIdModule.data",""):"BlinkIdModule.data",g=b.remote_package_size,k=null,l=h.getPreloadedPackage?h.getPreloadedPackage(f,g):null;l||c(f,g,m=>{k?(k(m),k=null):l=m},d);if(h.calledRun)e(h);else{let m;((m=h).preRun??(m.preRun=[])).push(e)}}({files:[{filename:"/microblink/blinkid/Model_07c7ab860e77ec2e92bb822f6d62424b8595a5beb4340f6b2f7f6a4cffa5d050.strop",
8
- start:0,end:103198},{filename:"/microblink/blinkid/Model_083e679074e33233cdf9028116ed7803443e2acc876b915ecf4749ce6c33ee5c.strop",start:103198,end:228280},{filename:"/microblink/blinkid/Model_2880751121560047e6dc571bc8ff4683aeb863886f7c0789234594ceb1e23577.strop",start:228280,end:232015},{filename:"/microblink/blinkid/Model_36d8e94f4cb46097bd6b7385f2aa91fcdee1a5fefeec59e56d1b9e82c94b00a7.strop",start:232015,end:576471},{filename:"/microblink/blinkid/Model_3b11c3ffacbbf390b932fb9a7024f1a0016f66281ea8c790f8b5903374ad89c2.strop",
9
- start:576471,end:845192},{filename:"/microblink/blinkid/Model_4336af7999b059ac75281d0d71b60dd55b33c2b22c2b2c8e2b9ab56fe6ad720d.strop",start:845192,end:1172060},{filename:"/microblink/blinkid/Model_473ac5f5e256623c0a6b282698c1f1b033b9fb5359e6aa142e9fb4a4022afe4e.strop",start:1172060,end:1178509},{filename:"/microblink/blinkid/Model_7403cf61ed10e7e93ab9ebb030ee2aa31f5d3d19346a271859924d0288d2c8ba.strop",start:1178509,end:5147659},{filename:"/microblink/blinkid/Model_8c7727da554fd257fa758787ca3d0f517b47f6c5ba791792f516da7dd210fde8.strop",
10
- start:5147659,end:6174514},{filename:"/microblink/blinkid/Model_a1516add883f909ebecf9b565238086f8f31bbb3e7fb2113258e3ae7c659555e.strop",start:6174514,end:6470316},{filename:"/microblink/blinkid/Model_b452fd3cd4037080cfcb4c423dba5bc58c8ceafc28427fdf9c5778fb353f088e.strop",start:6470316,end:6476812},{filename:"/microblink/blinkid/Model_dd833eb903e57415810f0f7beffb6eca256b1d070825dde8e54a46d684920682.strop",start:6476812,end:7900257},{filename:"/microblink/blinkid/Model_f2874f5766b779c063dbe30467979163497dc4b29c43bab23d70c798ee32993a.strop",
11
- start:7900257,end:7975659},{filename:"/microblink/blinkid/Model_f531088a1f65a31d6ba039e09446fe24c18360080fec3792308ac01514803620.strop",start:7975659,end:8638712},{filename:"/microblink/blinkid/Model_faf688599c7e261a2a7404730f69ed029115bb0d3e7a3657731d88e701720efe.strop",start:8638712,end:8654385},{filename:"/microblink/blinkid/Model_fc22f7553e3e85531eb79ef6db1474302664508cc7ae4ff0d950447b20f2f8ee.strop",start:8654385,end:8727083},{filename:"/microblink/blinkid/ccc_lookup_table.zzip",start:8727083,
12
- end:8747552},{filename:"/microblink/blinkid/serialized_embedder_db_1.9.bin",start:8747552,end:11761277}],remote_package_size:11761277})})();h.onAbort=function(a){q("Aborted with message: "+a);try{throw new WebAssembly.RuntimeError(a);}catch(b){q("Stacktrace: "+b.stack)}};h="undefined"!==typeof h?h:{};
13
- (function(){var a="",b=!1;try{if("undefined"!==typeof self&&self.location&&self.location.href){var c=self.location.href;0===c.indexOf("blob:")&&(a=c,b=!0)}}catch(d){}b&&!h.locateFile&&(h.locateFile=function(d,e){return"BlinkIdModule.wasm"===d?a:e+d})})();var ea="./this.program",fa=import.meta.url,ha="",ia,ja;
4
+ m)}function e(m){function r(t,y,A){this.start=t;this.end=y;this.audio=A}function p(t){if(!t)throw"Loading data file failed."+Error().stack;if(t.constructor.name!==ArrayBuffer.name)throw"bad input to processPackageData"+Error().stack;t=new Uint8Array(t);r.prototype.wc=t;t=b.files;for(var y=0;y<t.length;++y)r.prototype.bc[t[y].filename].onload();m.removeRunDependency("datafile_/opt/jenkins/root/E0/blinkid-next/packages/blinkid-wasm/dist/lightweight/advanced-threads/BlinkIdModule.data")}m.FS_createPath("/",
5
+ "microblink",!0,!0);m.FS_createPath("/microblink","blinkid",!0,!0);r.prototype={bc:{},open:function(t,y){this.name=y;this.bc[y]=this;m.addRunDependency(`fp ${this.name}`)},send:function(){},onload:function(){this.finish(this.wc.subarray(this.start,this.end))},finish:function(t){m.FS_createDataFile(this.name,null,t,!0,!0,!0);m.removeRunDependency(`fp ${this.name}`);this.bc[this.name]=null}};for(var w=b.files,v=0;v<w.length;++v)(new r(w[v].start,w[v].end,w[v].audio||0)).open("GET",w[v].filename);m.addRunDependency("datafile_/opt/jenkins/root/E0/blinkid-next/packages/blinkid-wasm/dist/lightweight/advanced-threads/BlinkIdModule.data");
6
+ m.preloadResults??(m.preloadResults={});m.preloadResults["/opt/jenkins/root/E0/blinkid-next/packages/blinkid-wasm/dist/lightweight/advanced-threads/BlinkIdModule.data"]={qd:!1};l?(p(l),l=null):k=p}"object"===typeof window?window.encodeURIComponent(window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+"/"):"undefined"===typeof process&&"undefined"!==typeof location&&encodeURIComponent(location.pathname.substring(0,location.pathname.lastIndexOf("/"))+"/");var f=h.locateFile?
7
+ h.locateFile("BlinkIdModule.data",""):"BlinkIdModule.data",g=b.remote_package_size,k=null,l=h.getPreloadedPackage?h.getPreloadedPackage(f,g):null;l||c(f,g,m=>{k?(k(m),k=null):l=m},d);if(h.calledRun)e(h);else{let m;((m=h).preRun??(m.preRun=[])).push(e)}}({files:[{filename:"/microblink/blinkid/Model_07c7ab860e77ec2e92bb822f6d62424b8595a5beb4340f6b2f7f6a4cffa5d050.strop",start:0,end:103198},{filename:"/microblink/blinkid/Model_083e679074e33233cdf9028116ed7803443e2acc876b915ecf4749ce6c33ee5c.strop",start:103198,
8
+ end:228280},{filename:"/microblink/blinkid/Model_2880751121560047e6dc571bc8ff4683aeb863886f7c0789234594ceb1e23577.strop",start:228280,end:232015},{filename:"/microblink/blinkid/Model_36d8e94f4cb46097bd6b7385f2aa91fcdee1a5fefeec59e56d1b9e82c94b00a7.strop",start:232015,end:576471},{filename:"/microblink/blinkid/Model_3b11c3ffacbbf390b932fb9a7024f1a0016f66281ea8c790f8b5903374ad89c2.strop",start:576471,end:845192},{filename:"/microblink/blinkid/Model_4336af7999b059ac75281d0d71b60dd55b33c2b22c2b2c8e2b9ab56fe6ad720d.strop",
9
+ start:845192,end:1172060},{filename:"/microblink/blinkid/Model_473ac5f5e256623c0a6b282698c1f1b033b9fb5359e6aa142e9fb4a4022afe4e.strop",start:1172060,end:1178509},{filename:"/microblink/blinkid/Model_7403cf61ed10e7e93ab9ebb030ee2aa31f5d3d19346a271859924d0288d2c8ba.strop",start:1178509,end:5147659},{filename:"/microblink/blinkid/Model_8c7727da554fd257fa758787ca3d0f517b47f6c5ba791792f516da7dd210fde8.strop",start:5147659,end:6174514},{filename:"/microblink/blinkid/Model_a1516add883f909ebecf9b565238086f8f31bbb3e7fb2113258e3ae7c659555e.strop",
10
+ start:6174514,end:6470316},{filename:"/microblink/blinkid/Model_b452fd3cd4037080cfcb4c423dba5bc58c8ceafc28427fdf9c5778fb353f088e.strop",start:6470316,end:6476812},{filename:"/microblink/blinkid/Model_dd833eb903e57415810f0f7beffb6eca256b1d070825dde8e54a46d684920682.strop",start:6476812,end:7900257},{filename:"/microblink/blinkid/Model_f2874f5766b779c063dbe30467979163497dc4b29c43bab23d70c798ee32993a.strop",start:7900257,end:7975659},{filename:"/microblink/blinkid/Model_f531088a1f65a31d6ba039e09446fe24c18360080fec3792308ac01514803620.strop",
11
+ start:7975659,end:8638712},{filename:"/microblink/blinkid/Model_faf688599c7e261a2a7404730f69ed029115bb0d3e7a3657731d88e701720efe.strop",start:8638712,end:8654385},{filename:"/microblink/blinkid/Model_fc22f7553e3e85531eb79ef6db1474302664508cc7ae4ff0d950447b20f2f8ee.strop",start:8654385,end:8727083},{filename:"/microblink/blinkid/ccc_lookup_table.zzip",start:8727083,end:8747552},{filename:"/microblink/blinkid/serialized_embedder_db_1.9.bin",start:8747552,end:11761277}],remote_package_size:11761277})})();
12
+ h.onAbort=function(a){q("Aborted with message: "+a);try{throw new WebAssembly.RuntimeError(a);}catch(b){q("Stacktrace: "+b.stack)}};h="undefined"!==typeof h?h:{};(function(){var a="",b=!1;try{if("undefined"!==typeof self&&self.location&&self.location.href){var c=self.location.href;0===c.indexOf("blob:")&&(a=c,b=!0)}}catch(d){}b&&!h.locateFile&&(h.locateFile=function(d,e){return"BlinkIdModule.wasm"===d?a:e+d})})();var ea="./this.program",fa=import.meta.url,ha="",ia,ja;
14
13
  if(ba||ca){try{ha=(new URL(".",fa)).href}catch{}ca&&(ja=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)});ia=async a=>{a=await fetch(a,{credentials:"same-origin"});if(a.ok)return a.arrayBuffer();throw Error(a.status+" : "+a.url);}}var ka=console.log.bind(console),q=console.error.bind(console),la,ma,na=!1,oa;function x(){pa.buffer!=z.buffer&&ra()}var sa,ta,ua,va;
15
14
  if(n){var wa=!1;self.onunhandledrejection=b=>{throw b.reason||b;};function a(b){try{var c=b.data,d=c.nb;if("load"===d){let e=[];self.onmessage=f=>e.push(f);va=()=>{postMessage({nb:"loaded"});for(let f of e)a(f);self.onmessage=a};for(const f of c.Hc)if(!h[f]||h[f].proxy)h[f]=(...g)=>{postMessage({nb:"callHandler",Gc:f,tc:g})},"print"==f&&(ka=h[f]),"printErr"==f&&(q=h[f]);pa=c.gd;ra();ua(c.hd)}else if("run"===d){xa(c.jb);ya(c.jb,0,0,1,0,0);za();Aa(c.jb);wa||(Ba(),wa=!0);try{Ca(c.cd,c.Tb)}catch(e){if("unwind"!=
16
15
  e)throw e;}}else"setimmediate"!==c.target&&("checkMailbox"===d?wa&&Da():d&&(q(`worker: received unknown command ${d}`),q(c)))}catch(e){throw Ea(),e;}}self.onmessage=a}var pa,z,B,D,Fa,E,I,Ga,Ha,K,Ia,Ja=!1;function ra(){var a=pa.buffer;z=new Int8Array(a);D=new Int16Array(a);B=new Uint8Array(a);Fa=new Uint16Array(a);E=new Int32Array(a);I=new Uint32Array(a);Ga=new Float32Array(a);Ha=new Float64Array(a);K=new BigInt64Array(a);Ia=new BigUint64Array(a)}
@@ -1,11 +1,11 @@
1
1
  async function createModule(moduleArg={}){var moduleRtn;var m=moduleArg,aa="object"==typeof window,ba="undefined"!=typeof WorkerGlobalScope;let ca;(ca=m).expectedDataFileDownloads??(ca.expectedDataFileDownloads=0);m.expectedDataFileDownloads++;
2
2
  (()=>{var a="undefined"!=typeof ENVIRONMENT_IS_WASM_WORKER&&ENVIRONMENT_IS_WASM_WORKER;"undefined"!=typeof ENVIRONMENT_IS_PTHREAD&&ENVIRONMENT_IS_PTHREAD||a||function(b){function c(k,u,n){let q;(q=m).dataFileDownloads??(q.dataFileDownloads={});fetch(k).catch(v=>Promise.reject(Error(`Network Error: ${k}`,{cause:v}))).then(v=>{if(!v.ok)return Promise.reject(Error(`${v.status}: ${v.url}`));if(!v.body&&v.arrayBuffer)return v.arrayBuffer().then(n);const p=v.body.getReader(),x=()=>p.read().then(K).catch(r=>
3
3
  Promise.reject(Error(`Unexpected error while handling : ${v.url} ${r}`,{cause:r}))),z=[],I=Number(v.headers.get("Content-Length")??u);let E=0;const K=({done:r,value:G})=>{if(r){var F=new Uint8Array(z.map(T=>T.length).reduce((T,ka)=>T+ka,0));r=0;for(var C of z)F.set(C,r),r+=C.length;n(F.buffer)}else{z.push(G);E+=G.length;m.dataFileDownloads[k]={loaded:E,total:I};r=C=0;for(F of Object.values(m.dataFileDownloads))C+=F.loaded,r+=F.total;m.setStatus?.(`Downloading data... (${C}/${r})`);return x()}};m.setStatus?.("Downloading data...");
4
- return x()})}function d(k){console.error("package error:",k)}function e(k){function u(p,x,z){this.start=p;this.end=x;this.audio=z}function n(p){if(!p)throw"Loading data file failed."+Error().stack;if(p.constructor.name!==ArrayBuffer.name)throw"bad input to processPackageData"+Error().stack;p=new Uint8Array(p);u.prototype.Tb=p;p=b.files;for(var x=0;x<p.length;++x)u.prototype.Ab[p[x].filename].onload();k.removeRunDependency("datafile_/opt/jenkins/android-arm64-huawei-p30-lite/root/E0/blinkid-next/packages/blinkid-wasm/dist/lightweight/basic/BlinkIdModule.data")}
4
+ return x()})}function d(k){console.error("package error:",k)}function e(k){function u(p,x,z){this.start=p;this.end=x;this.audio=z}function n(p){if(!p)throw"Loading data file failed."+Error().stack;if(p.constructor.name!==ArrayBuffer.name)throw"bad input to processPackageData"+Error().stack;p=new Uint8Array(p);u.prototype.Tb=p;p=b.files;for(var x=0;x<p.length;++x)u.prototype.Ab[p[x].filename].onload();k.removeRunDependency("datafile_/opt/jenkins/root/E0/blinkid-next/packages/blinkid-wasm/dist/lightweight/basic/BlinkIdModule.data")}
5
5
  k.FS_createPath("/","microblink",!0,!0);k.FS_createPath("/microblink","blinkid",!0,!0);u.prototype={Ab:{},open:function(p,x){this.name=x;this.Ab[x]=this;k.addRunDependency(`fp ${this.name}`)},send:function(){},onload:function(){this.finish(this.Tb.subarray(this.start,this.end))},finish:function(p){k.FS_createDataFile(this.name,null,p,!0,!0,!0);k.removeRunDependency(`fp ${this.name}`);this.Ab[this.name]=null}};for(var q=b.files,v=0;v<q.length;++v)(new u(q[v].start,q[v].end,q[v].audio||0)).open("GET",
6
- q[v].filename);k.addRunDependency("datafile_/opt/jenkins/android-arm64-huawei-p30-lite/root/E0/blinkid-next/packages/blinkid-wasm/dist/lightweight/basic/BlinkIdModule.data");k.preloadResults??(k.preloadResults={});k.preloadResults["/opt/jenkins/android-arm64-huawei-p30-lite/root/E0/blinkid-next/packages/blinkid-wasm/dist/lightweight/basic/BlinkIdModule.data"]={Fc:!1};l?(n(l),l=null):h=n}"object"===typeof window?window.encodeURIComponent(window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+
7
- "/"):"undefined"===typeof process&&"undefined"!==typeof location&&encodeURIComponent(location.pathname.substring(0,location.pathname.lastIndexOf("/"))+"/");var f=m.locateFile?m.locateFile("BlinkIdModule.data",""):"BlinkIdModule.data",g=b.remote_package_size,h=null,l=m.getPreloadedPackage?m.getPreloadedPackage(f,g):null;l||c(f,g,k=>{h?(h(k),h=null):l=k},d);if(m.calledRun)e(m);else{let k;((k=m).preRun??(k.preRun=[])).push(e)}}({files:[{filename:"/microblink/blinkid/Model_07c7ab860e77ec2e92bb822f6d62424b8595a5beb4340f6b2f7f6a4cffa5d050.strop",
8
- start:0,end:103198},{filename:"/microblink/blinkid/Model_083e679074e33233cdf9028116ed7803443e2acc876b915ecf4749ce6c33ee5c.strop",start:103198,end:228280},{filename:"/microblink/blinkid/Model_2880751121560047e6dc571bc8ff4683aeb863886f7c0789234594ceb1e23577.strop",start:228280,end:232015},{filename:"/microblink/blinkid/Model_36d8e94f4cb46097bd6b7385f2aa91fcdee1a5fefeec59e56d1b9e82c94b00a7.strop",start:232015,end:576471},{filename:"/microblink/blinkid/Model_3b11c3ffacbbf390b932fb9a7024f1a0016f66281ea8c790f8b5903374ad89c2.strop",
6
+ q[v].filename);k.addRunDependency("datafile_/opt/jenkins/root/E0/blinkid-next/packages/blinkid-wasm/dist/lightweight/basic/BlinkIdModule.data");k.preloadResults??(k.preloadResults={});k.preloadResults["/opt/jenkins/root/E0/blinkid-next/packages/blinkid-wasm/dist/lightweight/basic/BlinkIdModule.data"]={Fc:!1};l?(n(l),l=null):h=n}"object"===typeof window?window.encodeURIComponent(window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+"/"):"undefined"===typeof process&&"undefined"!==
7
+ typeof location&&encodeURIComponent(location.pathname.substring(0,location.pathname.lastIndexOf("/"))+"/");var f=m.locateFile?m.locateFile("BlinkIdModule.data",""):"BlinkIdModule.data",g=b.remote_package_size,h=null,l=m.getPreloadedPackage?m.getPreloadedPackage(f,g):null;l||c(f,g,k=>{h?(h(k),h=null):l=k},d);if(m.calledRun)e(m);else{let k;((k=m).preRun??(k.preRun=[])).push(e)}}({files:[{filename:"/microblink/blinkid/Model_07c7ab860e77ec2e92bb822f6d62424b8595a5beb4340f6b2f7f6a4cffa5d050.strop",start:0,
8
+ end:103198},{filename:"/microblink/blinkid/Model_083e679074e33233cdf9028116ed7803443e2acc876b915ecf4749ce6c33ee5c.strop",start:103198,end:228280},{filename:"/microblink/blinkid/Model_2880751121560047e6dc571bc8ff4683aeb863886f7c0789234594ceb1e23577.strop",start:228280,end:232015},{filename:"/microblink/blinkid/Model_36d8e94f4cb46097bd6b7385f2aa91fcdee1a5fefeec59e56d1b9e82c94b00a7.strop",start:232015,end:576471},{filename:"/microblink/blinkid/Model_3b11c3ffacbbf390b932fb9a7024f1a0016f66281ea8c790f8b5903374ad89c2.strop",
9
9
  start:576471,end:845192},{filename:"/microblink/blinkid/Model_4336af7999b059ac75281d0d71b60dd55b33c2b22c2b2c8e2b9ab56fe6ad720d.strop",start:845192,end:1172060},{filename:"/microblink/blinkid/Model_473ac5f5e256623c0a6b282698c1f1b033b9fb5359e6aa142e9fb4a4022afe4e.strop",start:1172060,end:1178509},{filename:"/microblink/blinkid/Model_7403cf61ed10e7e93ab9ebb030ee2aa31f5d3d19346a271859924d0288d2c8ba.strop",start:1178509,end:5147659},{filename:"/microblink/blinkid/Model_8c7727da554fd257fa758787ca3d0f517b47f6c5ba791792f516da7dd210fde8.strop",
10
10
  start:5147659,end:6174514},{filename:"/microblink/blinkid/Model_a1516add883f909ebecf9b565238086f8f31bbb3e7fb2113258e3ae7c659555e.strop",start:6174514,end:6470316},{filename:"/microblink/blinkid/Model_b452fd3cd4037080cfcb4c423dba5bc58c8ceafc28427fdf9c5778fb353f088e.strop",start:6470316,end:6476812},{filename:"/microblink/blinkid/Model_dd833eb903e57415810f0f7beffb6eca256b1d070825dde8e54a46d684920682.strop",start:6476812,end:7900257},{filename:"/microblink/blinkid/Model_f2874f5766b779c063dbe30467979163497dc4b29c43bab23d70c798ee32993a.strop",
11
11
  start:7900257,end:7975659},{filename:"/microblink/blinkid/Model_f531088a1f65a31d6ba039e09446fe24c18360080fec3792308ac01514803620.strop",start:7975659,end:8638712},{filename:"/microblink/blinkid/Model_faf688599c7e261a2a7404730f69ed029115bb0d3e7a3657731d88e701720efe.strop",start:8638712,end:8654385},{filename:"/microblink/blinkid/Model_fc22f7553e3e85531eb79ef6db1474302664508cc7ae4ff0d950447b20f2f8ee.strop",start:8654385,end:8727083},{filename:"/microblink/blinkid/ccc_lookup_table.zzip",start:8727083,
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "wasm": {
3
3
  "basic": {
4
- "full": 3242406,
5
- "lightweight": 3280244
4
+ "full": 3242571,
5
+ "lightweight": 3280459
6
6
  },
7
7
  "advanced": {
8
- "full": 3261747,
9
- "lightweight": 3298066
8
+ "full": 3261161,
9
+ "lightweight": 3298193
10
10
  },
11
11
  "advanced-threads": {
12
- "full": 3309394,
13
- "lightweight": 3343706
12
+ "full": 3309330,
13
+ "lightweight": 3343822
14
14
  }
15
15
  },
16
16
  "data": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microblink/blinkid-core",
3
- "version": "7.6.1",
3
+ "version": "7.6.2",
4
4
  "author": "Microblink",
5
5
  "type": "module",
6
6
  "main": "./dist/blinkid-core.js",