bry-biometric-collector 3.2.1 → 3.2.3-RC01
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DocumentCollector_3a227a66_3.2.1.js → DocumentCollector_bd5774d4_3.2.3-RC01.js} +145 -143
- package/dist/FaceCollector_7c86c909_3.2.3-RC01.js +2353 -0
- package/dist/{ValidationAlert_71ec43a1_3.2.1.js → ValidationAlert_015a3bac_3.2.3-RC01.js} +1 -1
- package/dist/{___vite-browser-external_commonjs-proxy_eec4c905_3.2.1.js → ___vite-browser-external_commonjs-proxy_cb6dfc58_3.2.3-RC01.js} +1 -1
- package/dist/bry-biometric-collector-main.js +2 -2
- package/dist/{fingersApi_c9ee3c26_3.2.1.js → fingersApi_1d1d0ae2_3.2.3-RC01.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{index_3331e50f_3.2.1.js → index_8dec0329_3.2.3-RC01.js} +3 -3
- package/dist/{index_3e3b803e_3.2.1.js → index_fd9c2bdb_3.2.3-RC01.js} +3 -3
- package/dist/{main_f7bde95f_3.2.1.js → main_64b650bb_3.2.3-RC01.js} +34 -35
- package/package.json +1 -1
- package/dist/FaceCollector_aee737a8_3.2.1.js +0 -2350
- /package/dist/{en-us_e83efd5d_3.2.1.js → en-us_e83efd5d_3.2.3-RC01.js} +0 -0
- /package/dist/{es-cl_5939150a_3.2.1.js → es-cl_5939150a_3.2.3-RC01.js} +0 -0
- /package/dist/{face_api_0e3ce8c8_3.2.1.js → face_api_0e3ce8c8_3.2.3-RC01.js} +0 -0
- /package/dist/{index-idlf-detector_39cfdffa_3.2.1.js → index-idlf-detector_39cfdffa_3.2.3-RC01.js} +0 -0
- /package/dist/{index-idlf-detector_a819b3c8_3.2.1.js → index-idlf-detector_a819b3c8_3.2.3-RC01.js} +0 -0
- /package/dist/{pt-br_fae15356_3.2.1.js → pt-br_fae15356_3.2.3-RC01.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as H, q as P, r as F, t as G, x as M, y as S, z as I, B as T, C as h, I as g, J as E, X as we, $ as le,
|
|
1
|
+
import { S as H, q as P, r as F, t as G, x as M, y as S, z as I, B as T, C as h, I as g, J as E, X as we, $ as le, bn as Y, bo as $, T as B, bg as O, U as p, _ as L, bp as x, a2 as b, bq as Q, a3 as C, b2 as R, a0 as pe, a6 as ie, V as X, a9 as ve, aV as re, N as ee, ad as se, E as V, G as k, H as Z, D as z, L as Ae, bj as ae, Z as Le, ao as _e, M as q, b1 as U, bh as te, br as Ie, O as J, P as W, Q as K, R as oe, ag as Ce } from "./main_64b650bb_3.2.3-RC01.js";
|
|
2
2
|
function ke(i) {
|
|
3
3
|
let e, s, a, t, l = (
|
|
4
4
|
/*$_*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as m, $ as D, n as C, g as b, i as y, s as l, a as F, F as U, b as M, c, v as x, d as P, A as B, e as I, h as g, f as v, j as W, k as R, l as $, m as k, o as w, p as V } from "./
|
|
2
|
-
import "./face_api_0e3ce8c8_3.2.
|
|
1
|
+
import { u as m, $ as D, n as C, g as b, i as y, s as l, a as F, F as U, b as M, c, v as x, d as P, A as B, e as I, h as g, f as v, j as W, k as R, l as $, m as k, o as w, p as V } from "./main_64b650bb_3.2.3-RC01.js";
|
|
2
|
+
import "./face_api_0e3ce8c8_3.2.3-RC01.js";
|
|
3
3
|
const f = m(D);
|
|
4
4
|
var X = /* @__PURE__ */ ((n) => (n.EXTENSION_MISSING = "EXTENSION_MISSING", n.USER_CANCELLED = "USER_CANCELLED", n.UNAUTHORIZED_EXTENSION = "UNAUTHORIZED_EXTENSION", n.SCANNER_NOT_FOUND = "SCANNER_NOT_FOUND", n.EXTENSION_MODULE_NOT_INSTALLED = "EXTENSION_MODULE_NOT_INSTALLED", n.FINGER_NOT_REMOVED = "FINGER_NOT_REMOVED", n.UNKNOWN_ERROR = "UNKNOWN_ERROR", n.EVALUATE_BIOMETRICS_TIMEOUT = "EVALUATE_BIOMETRICS_TIMEOUT", n.EVALUATE_BIOMETRICS_NETWORK_ISSUE = "EVALUATE_BIOMETRICS_NETWORK_ISSUE", n))(X || {});
|
|
5
5
|
class r extends Error {
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as x1, l as b1, L as y1 } from "./___vite-browser-external_commonjs-
|
|
3
|
-
import "./face_api_0e3ce8c8_3.2.
|
|
1
|
+
import { bs as eo } from "./main_64b650bb_3.2.3-RC01.js";
|
|
2
|
+
import { r as x1, l as b1, L as y1 } from "./___vite-browser-external_commonjs-proxy_cb6dfc58_3.2.3-RC01.js";
|
|
3
|
+
import "./face_api_0e3ce8c8_3.2.3-RC01.js";
|
|
4
4
|
var pu = { exports: {} };
|
|
5
5
|
pu.exports;
|
|
6
6
|
(function(n) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as vu, L as Au, r as se } from "./___vite-browser-external_commonjs-
|
|
2
|
-
import {
|
|
3
|
-
import "./face_api_0e3ce8c8_3.2.
|
|
1
|
+
import { l as vu, L as Au, r as se } from "./___vite-browser-external_commonjs-proxy_cb6dfc58_3.2.3-RC01.js";
|
|
2
|
+
import { bs as Xa, bt as hr } from "./main_64b650bb_3.2.3-RC01.js";
|
|
3
|
+
import "./face_api_0e3ce8c8_3.2.3-RC01.js";
|
|
4
4
|
function gr(e, t) {
|
|
5
5
|
for (var n = 0; n < t.length; n++) {
|
|
6
6
|
const s = t[n];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { detectSingleFace as yc, Box as Dc } from "./face_api_0e3ce8c8_3.2.
|
|
1
|
+
import { detectSingleFace as yc, Box as Dc } from "./face_api_0e3ce8c8_3.2.3-RC01.js";
|
|
2
2
|
function Y() {
|
|
3
3
|
}
|
|
4
4
|
function Cn(A, e) {
|
|
@@ -7200,18 +7200,18 @@ async function rf(A) {
|
|
|
7200
7200
|
A && (e = A), console.log("requesting weights from", e);
|
|
7201
7201
|
try {
|
|
7202
7202
|
await Promise.all([
|
|
7203
|
-
(await import("./face_api_0e3ce8c8_3.2.
|
|
7204
|
-
(await import("./face_api_0e3ce8c8_3.2.
|
|
7203
|
+
(await import("./face_api_0e3ce8c8_3.2.3-RC01.js")).nets.tinyFaceDetector.load(e),
|
|
7204
|
+
(await import("./face_api_0e3ce8c8_3.2.3-RC01.js")).loadFaceLandmarkModel(e)
|
|
7205
7205
|
]);
|
|
7206
7206
|
} catch {
|
|
7207
7207
|
console.warn("Your browser doesn't support WebGL! Trying to use WASM backend now...");
|
|
7208
7208
|
try {
|
|
7209
7209
|
await Promise.all([
|
|
7210
|
-
(await import("./
|
|
7211
|
-
(await import("./
|
|
7212
|
-
(await import("./
|
|
7213
|
-
(await import("./face_api_0e3ce8c8_3.2.
|
|
7214
|
-
(await import("./face_api_0e3ce8c8_3.2.
|
|
7210
|
+
(await import("./index_fd9c2bdb_3.2.3-RC01.js")).setWasmPaths("https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-wasm/dist/"),
|
|
7211
|
+
(await import("./index_8dec0329_3.2.3-RC01.js")).setBackend("wasm"),
|
|
7212
|
+
(await import("./index_8dec0329_3.2.3-RC01.js")).ready(),
|
|
7213
|
+
(await import("./face_api_0e3ce8c8_3.2.3-RC01.js")).nets.tinyFaceDetector.load(e),
|
|
7214
|
+
(await import("./face_api_0e3ce8c8_3.2.3-RC01.js")).loadFaceLandmarkModel(e)
|
|
7215
7215
|
]);
|
|
7216
7216
|
} catch {
|
|
7217
7217
|
throw console.warn("WASM backend failed to load, face detection will be disabled"), new Error("Face detection failed to load");
|
|
@@ -7862,7 +7862,7 @@ async function uE(A, e, t, r) {
|
|
|
7862
7862
|
const i = {
|
|
7863
7863
|
audio: !1,
|
|
7864
7864
|
video: {
|
|
7865
|
-
deviceId: t
|
|
7865
|
+
deviceId: t ? { exact: t } : void 0,
|
|
7866
7866
|
facingMode: {},
|
|
7867
7867
|
height: {
|
|
7868
7868
|
min: 480,
|
|
@@ -10305,13 +10305,13 @@ async function $E(A) {
|
|
|
10305
10305
|
e = 0.2;
|
|
10306
10306
|
break;
|
|
10307
10307
|
}
|
|
10308
|
-
return new (await import("./face_api_0e3ce8c8_3.2.
|
|
10308
|
+
return new (await import("./face_api_0e3ce8c8_3.2.3-RC01.js")).TinyFaceDetectorOptions({
|
|
10309
10309
|
scoreThreshold: e
|
|
10310
10310
|
});
|
|
10311
10311
|
}
|
|
10312
10312
|
async function kf(A, e, t, r = !1) {
|
|
10313
10313
|
if (t) {
|
|
10314
|
-
const l = (await import("./face_api_0e3ce8c8_3.2.
|
|
10314
|
+
const l = (await import("./face_api_0e3ce8c8_3.2.3-RC01.js")).draw;
|
|
10315
10315
|
l.drawDetections(e, A), new l.DrawFaceLandmarks(A.landmarks, { pointColor: "gold" }).draw(e);
|
|
10316
10316
|
}
|
|
10317
10317
|
const o = A.landmarks.positions, i = AQ(o), n = await eQ(o), B = A.detection.box, I = await tQ(B, n, e, t);
|
|
@@ -10322,17 +10322,17 @@ function AQ(A) {
|
|
|
10322
10322
|
return Di(e, t);
|
|
10323
10323
|
}
|
|
10324
10324
|
async function eQ(A) {
|
|
10325
|
-
const e = (await import("./face_api_0e3ce8c8_3.2.
|
|
10325
|
+
const e = (await import("./face_api_0e3ce8c8_3.2.3-RC01.js")).Point;
|
|
10326
10326
|
let t = A[37].add(A[38]).add(A[40]).add(A[41]), r = A[43].add(A[44]).add(A[46]).add(A[47]);
|
|
10327
10327
|
t = t.div(new e(4, 4)), r = r.div(new e(4, 4));
|
|
10328
10328
|
const o = Di(r, t);
|
|
10329
10329
|
return jI.set(o), o;
|
|
10330
10330
|
}
|
|
10331
10331
|
async function tQ(A, e, t, r) {
|
|
10332
|
-
const o = (await import("./face_api_0e3ce8c8_3.2.
|
|
10332
|
+
const o = (await import("./face_api_0e3ce8c8_3.2.3-RC01.js")).Point;
|
|
10333
10333
|
let i = 2.5, n = 0.8;
|
|
10334
10334
|
const B = A.topLeft.x - e, I = A.topLeft.y - i * e, l = A.bottomLeft.x - e, E = A.bottomLeft.y + n * e, p = A.bottomRight.x + e, m = A.bottomRight.y + e, v = Di(new o(l, E), new o(B, I)), y = Di(new o(l, E), new o(p, m)), U = t.getContext("2d");
|
|
10335
|
-
return U.beginPath(), U.strokeStyle = "gold", YI.set(new (await import("./face_api_0e3ce8c8_3.2.
|
|
10335
|
+
return U.beginPath(), U.strokeStyle = "gold", YI.set(new (await import("./face_api_0e3ce8c8_3.2.3-RC01.js")).Box({ x: B, y: I, width: y, height: v })), U.rect(B, I, y, v), r && U.stroke(), {
|
|
10336
10336
|
topLeftX: A.topLeft.x,
|
|
10337
10337
|
topLeftY: A.topLeft.y,
|
|
10338
10338
|
bottomRightX: A.bottomRight.x,
|
|
@@ -10405,7 +10405,7 @@ async function aQ(A, e, t) {
|
|
|
10405
10405
|
height: e.height * E
|
|
10406
10406
|
}), m = document.createElement("canvas");
|
|
10407
10407
|
m.width = p.width, m.height = p.height, m.getContext("2d")?.clearRect(0, 0, m.width, m.height), I && gQ(I, A, B);
|
|
10408
|
-
const [y] = await (await import("./face_api_0e3ce8c8_3.2.
|
|
10408
|
+
const [y] = await (await import("./face_api_0e3ce8c8_3.2.3-RC01.js")).extractFaces(B, [p]);
|
|
10409
10409
|
return y;
|
|
10410
10410
|
}
|
|
10411
10411
|
function gQ(A, e, t) {
|
|
@@ -23156,7 +23156,7 @@ function QB(A) {
|
|
|
23156
23156
|
return this;
|
|
23157
23157
|
}
|
|
23158
23158
|
async function uB(A, e) {
|
|
23159
|
-
return await import("./
|
|
23159
|
+
return await import("./fingersApi_1d1d0ae2_3.2.3-RC01.js").then((t) => t.captureSingleFinger(A, e));
|
|
23160
23160
|
}
|
|
23161
23161
|
function Gd(A, e, t) {
|
|
23162
23162
|
let r, o, i, n, B, I, l, E, p, m, v, y, U, f, P, X, z, hA, aA, j, gA, T, lA, LA, Ie, Ue, Me, eA, Le, ae, mA, Ee, Ct, S, k;
|
|
@@ -23164,7 +23164,7 @@ function Gd(A, e, t) {
|
|
|
23164
23164
|
let { lottie_color: oA = "71 89 124" } = e, { extension_name: _ = "BryWebExtension" } = e, { extension_url_chrome: QA } = e, { extension_url_mozilla: sA } = e, { min_nfiq_acceptable: fA = 3 } = e;
|
|
23165
23165
|
bE(fA);
|
|
23166
23166
|
let { show_theme_picker: iA = "true" } = e, { video_dimensions: vA } = e, { enable_minutiae: UA } = e, { collector_select: RA = "BOTH" } = e, { import_lottie: qA = "true" } = e, { hide_tabs: PA = "false" } = e, { import_extension_script: ee = "false" } = e, { extension_url_script: SA } = e, { liveness_enable: te = "false" } = e, { weights_path: Be = "https://cdn.jsdelivr.net/npm/bry-biometric-collector@latest/dist/weights/" } = e, { evaluate_photo: WA = "true" } = e, { show_capture_button: he = "true" } = e, { show_unconformities: ZA = "true" } = e, { video_overlay: OA = "white" } = e, { video_overlay_transparency: Ge = 0 } = e, { show_config_button: Qe = "true" } = e, { show_auto_capture_button: $e = "false" } = e, { show_camera_button: ye = "true" } = e, { language: $A = hI() } = e, { show_justification_field: kA = "true" } = e, { min_eye_to_eye_dist: De = 0 } = e, { show_watermark: qe = "true" } = e, { face_detection_sensitivity: uA = "permissive" } = e;
|
|
23167
|
-
Vr("en", () => import("./en-us_e83efd5d_3.2.
|
|
23167
|
+
Vr("en", () => import("./en-us_e83efd5d_3.2.3-RC01.js")), Vr("pt", () => import("./pt-br_fae15356_3.2.3-RC01.js")), Vr("es", () => import("./es-cl_5939150a_3.2.3-RC01.js")), Sn({
|
|
23168
23168
|
fallbackLocale: "pt",
|
|
23169
23169
|
initialLocale: $A
|
|
23170
23170
|
});
|
|
@@ -23384,10 +23384,10 @@ function Gd(A, e, t) {
|
|
|
23384
23384
|
return pA(Mn, E = D, E), this;
|
|
23385
23385
|
}
|
|
23386
23386
|
async function kt() {
|
|
23387
|
-
return t(26, gt = (await import("./
|
|
23387
|
+
return t(26, gt = (await import("./FaceCollector_7c86c909_3.2.3-RC01.js")).default), this;
|
|
23388
23388
|
}
|
|
23389
23389
|
async function Te() {
|
|
23390
|
-
return t(27, Et = (await import("./
|
|
23390
|
+
return t(27, Et = (await import("./DocumentCollector_bd5774d4_3.2.3-RC01.js")).default), this;
|
|
23391
23391
|
}
|
|
23392
23392
|
function St(D) {
|
|
23393
23393
|
Rt(D);
|
|
@@ -24020,9 +24020,9 @@ class dB extends me {
|
|
|
24020
24020
|
}
|
|
24021
24021
|
}
|
|
24022
24022
|
customElements.define("biometric-collector", dB);
|
|
24023
|
-
Vr("en", () => import("./en-us_e83efd5d_3.2.
|
|
24024
|
-
Vr("pt", () => import("./pt-br_fae15356_3.2.
|
|
24025
|
-
Vr("es", () => import("./es-cl_5939150a_3.2.
|
|
24023
|
+
Vr("en", () => import("./en-us_e83efd5d_3.2.3-RC01.js"));
|
|
24024
|
+
Vr("pt", () => import("./pt-br_fae15356_3.2.3-RC01.js"));
|
|
24025
|
+
Vr("es", () => import("./es-cl_5939150a_3.2.3-RC01.js"));
|
|
24026
24026
|
Sn({
|
|
24027
24027
|
fallbackLocale: "pt",
|
|
24028
24028
|
initialLocale: hI()
|
|
@@ -24169,19 +24169,18 @@ export {
|
|
|
24169
24169
|
af as bh,
|
|
24170
24170
|
$I as bi,
|
|
24171
24171
|
lf as bj,
|
|
24172
|
-
|
|
24173
|
-
|
|
24174
|
-
|
|
24175
|
-
|
|
24176
|
-
|
|
24177
|
-
|
|
24178
|
-
|
|
24179
|
-
|
|
24180
|
-
|
|
24181
|
-
|
|
24182
|
-
|
|
24183
|
-
|
|
24184
|
-
Gf as bw,
|
|
24172
|
+
Nf as bk,
|
|
24173
|
+
oQ as bl,
|
|
24174
|
+
IE as bm,
|
|
24175
|
+
Cn as bn,
|
|
24176
|
+
za as bo,
|
|
24177
|
+
Wa as bp,
|
|
24178
|
+
Lc as bq,
|
|
24179
|
+
AB as br,
|
|
24180
|
+
We as bs,
|
|
24181
|
+
Os as bt,
|
|
24182
|
+
ef as bu,
|
|
24183
|
+
Gf as bv,
|
|
24185
24184
|
DA as c,
|
|
24186
24185
|
iE as d,
|
|
24187
24186
|
be as e,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "bry-biometric-collector",
|
|
3
3
|
"private": false,
|
|
4
4
|
"description": "BRy web-collector component for biometric capture.",
|
|
5
|
-
"version": "3.2.
|
|
5
|
+
"version": "3.2.3-RC01",
|
|
6
6
|
"main": "dist/bry-biometric-collector-main.js",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"license": "UNLICENSED",
|