@regulaforensics/idv-face 4.0.656-rc → 4.0.657-nightly

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/main.js CHANGED
@@ -1,4 +1,4 @@
1
- // ../../node_modules/@lit/reactive-element/css-tag.js
1
+ //#region ../../node_modules/@lit/reactive-element/css-tag.js
2
2
  var e = globalThis, t = e.ShadowRoot && (e.ShadyCSS === void 0 || e.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, n = Symbol(), r = /* @__PURE__ */ new WeakMap(), i = class {
3
3
  constructor(e, t, r) {
4
4
  if (this._$cssResult$ = !0, r !== n) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
@@ -30,7 +30,8 @@ var e = globalThis, t = e.ShadowRoot && (e.ShadyCSS === void 0 || e.ShadyCSS.nat
30
30
  for (let n of e.cssRules) t += n.cssText;
31
31
  return a(t);
32
32
  })(e) : e;
33
- // \0@oxc-project+runtime@0.155.0/helpers/esm/asyncToGenerator.js
33
+ //#endregion
34
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/asyncToGenerator.js
34
35
  function l(e, t, n, r, i, a, o) {
35
36
  try {
36
37
  var s = e[a](o), c = s.value;
@@ -55,7 +56,8 @@ function u(e) {
55
56
  });
56
57
  };
57
58
  }
58
- // ../../node_modules/@lit/reactive-element/reactive-element.js
59
+ //#endregion
60
+ //#region ../../node_modules/@lit/reactive-element/reactive-element.js
59
61
  var d, f, { is: p, defineProperty: m, getOwnPropertyDescriptor: h, getOwnPropertyNames: g, getOwnPropertySymbols: _, getPrototypeOf: v } = Object, y = globalThis, b = y.trustedTypes, x = b ? b.emptyScript : "", S = y.reactiveElementPolyfillSupport, C = (e, t) => e, w = {
60
62
  toAttribute(e, t) {
61
63
  switch (t) {
@@ -309,7 +311,8 @@ var D = class extends HTMLElement {
309
311
  firstUpdated(e) {}
310
312
  };
311
313
  D.elementStyles = [], D.shadowRootOptions = { mode: "open" }, D[C("elementProperties")] = /* @__PURE__ */ new Map(), D[C("finalized")] = /* @__PURE__ */ new Map(), S == null || S({ ReactiveElement: D }), ((f = y.reactiveElementVersions) == null ? y.reactiveElementVersions = [] : f).push("2.1.2");
312
- // ../../node_modules/lit-html/lit-html.js
314
+ //#endregion
315
+ //#region ../../node_modules/lit-html/lit-html.js
313
316
  var O, k = globalThis, A = (e) => e, j = k.trustedTypes, M = j ? j.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, N = "$lit$", P = `lit$${Math.random().toFixed(9).slice(2)}$`, F = "?" + P, I = `<${F}>`, L = document, R = () => L.createComment(""), ee = (e) => e === null || typeof e != "object" && typeof e != "function", te = Array.isArray, z = (e) => te(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", ne = "[ \n\f\r]", re = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ie = /-->/g, ae = />/g, oe = RegExp(`>|${ne}(?:([^\\s"'>=/]+)(${ne}*=${ne}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), se = /'/g, ce = /"/g, le = /^(?:script|style|textarea|title)$/i, ue = ((e) => (t, ...n) => ({
314
317
  _$litType$: e,
315
318
  strings: t,
@@ -595,7 +598,8 @@ var De = (e, t, n) => {
595
598
  je._$litElement$ = !0, je.finalized = !0, (Oe = Ae.litElementHydrateSupport) == null || Oe.call(Ae, { LitElement: je });
596
599
  var Me = Ae.litElementPolyfillSupport;
597
600
  Me == null || Me({ LitElement: je }), ((ke = Ae.litElementVersions) == null ? Ae.litElementVersions = [] : ke).push("4.2.2");
598
- // ../../node_modules/@lit/reactive-element/decorators/property.js
601
+ //#endregion
602
+ //#region ../../node_modules/@lit/reactive-element/decorators/property.js
599
603
  var Ne = {
600
604
  attribute: !0,
601
605
  type: String,
@@ -631,7 +635,8 @@ function Fe(e) {
631
635
  return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
632
636
  })(e, t, n);
633
637
  }
634
- // ../../node_modules/lit-html/directive.js
638
+ //#endregion
639
+ //#region ../../node_modules/lit-html/directive.js
635
640
  var Ie = (e) => (...t) => ({
636
641
  _$litDirective$: e,
637
642
  values: t
@@ -660,7 +665,8 @@ var Ie = (e) => (...t) => ({
660
665
  return t !== this.key && (Be(e), this.key = t), n;
661
666
  }
662
667
  });
663
- // \0@oxc-project+runtime@0.155.0/helpers/esm/typeof.js
668
+ //#endregion
669
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/typeof.js
664
670
  function He(e) {
665
671
  "@babel/helpers - typeof";
666
672
  return He = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -669,7 +675,8 @@ function He(e) {
669
675
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
670
676
  }, He(e);
671
677
  }
672
- // \0@oxc-project+runtime@0.155.0/helpers/esm/toPrimitive.js
678
+ //#endregion
679
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPrimitive.js
673
680
  function Ue(e, t) {
674
681
  if (He(e) != "object" || !e) return e;
675
682
  var n = e[Symbol.toPrimitive];
@@ -680,12 +687,14 @@ function Ue(e, t) {
680
687
  }
681
688
  return (t === "string" ? String : Number)(e);
682
689
  }
683
- // \0@oxc-project+runtime@0.155.0/helpers/esm/toPropertyKey.js
690
+ //#endregion
691
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPropertyKey.js
684
692
  function We(e) {
685
693
  var t = Ue(e, "string");
686
694
  return He(t) == "symbol" ? t : t + "";
687
695
  }
688
- // \0@oxc-project+runtime@0.155.0/helpers/esm/defineProperty.js
696
+ //#endregion
697
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/defineProperty.js
689
698
  function Ge(e, t, n) {
690
699
  return (t = We(t)) in e ? Object.defineProperty(e, t, {
691
700
  value: n,
@@ -694,7 +703,8 @@ function Ge(e, t, n) {
694
703
  writable: !0
695
704
  }) : e[t] = n, e;
696
705
  }
697
- // \0@oxc-project+runtime@0.155.0/helpers/esm/objectSpread2.js
706
+ //#endregion
707
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/objectSpread2.js
698
708
  function Ke(e, t) {
699
709
  var n = Object.keys(e);
700
710
  if (Object.getOwnPropertySymbols) {
@@ -716,7 +726,8 @@ function qe(e) {
716
726
  }
717
727
  return e;
718
728
  }
719
- // ../interfaces-idv/src/index.ts
729
+ //#endregion
730
+ //#region ../interfaces-idv/src/index.ts
720
731
  var Je = class e {
721
732
  constructor({ errorCode: e, errorCodeKey: t, message: n, underlyingError: r, underlyingBaseError: i, domain: a, module: o, errorEnumName: s, shortDomainCode: c }) {
722
733
  this.errorCode = e, this.errorCodeKey = t, this.message = n, this.underlyingError = r, this.underlyingBaseError = i, this.module = o, this.domain = a, this.errorEnumName = s, this.shortDomainCode = c;
@@ -829,22 +840,26 @@ var lt = class e extends Je {
829
840
  }
830
841
  };
831
842
  st = lt, st.MODULE = rt, st.ERROR_ENUM_NAME = "LivenessError", st.SHORT_CODE = "FML";
832
- // ../../node_modules/@lit/reactive-element/decorators/custom-element.js
843
+ //#endregion
844
+ //#region ../../node_modules/@lit/reactive-element/decorators/custom-element.js
833
845
  var ut = (e) => (t, n) => {
834
846
  n === void 0 ? customElements.define(e, t) : n.addInitializer(() => {
835
847
  customElements.define(e, t);
836
848
  });
837
849
  };
838
- // ../../node_modules/@lit/reactive-element/decorators/state.js
850
+ //#endregion
851
+ //#region ../../node_modules/@lit/reactive-element/decorators/state.js
839
852
  function dt(e) {
840
853
  return Fe(qe(qe({}, e), {}, {
841
854
  state: !0,
842
855
  attribute: !1
843
856
  }));
844
857
  }
845
- // ../../node_modules/@lit/reactive-element/decorators/base.js
858
+ //#endregion
859
+ //#region ../../node_modules/@lit/reactive-element/decorators/base.js
846
860
  var ft = (e, t, n) => (n.configurable = !0, n.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(e, t, n), n);
847
- // ../../node_modules/@lit/reactive-element/decorators/query.js
861
+ //#endregion
862
+ //#region ../../node_modules/@lit/reactive-element/decorators/query.js
848
863
  function pt(e, t) {
849
864
  return (n, r, i) => {
850
865
  let a = (t) => {
@@ -873,7 +888,8 @@ function pt(e, t) {
873
888
  } });
874
889
  };
875
890
  }
876
- // ../../node_modules/@regulaforensics/vp-frontend-face-components/dist/main.js
891
+ //#endregion
892
+ //#region ../../node_modules/@regulaforensics/vp-frontend-face-components/dist/main.js
877
893
  var mt = Object.defineProperty, ht = Object.getOwnPropertySymbols, gt = Object.prototype.hasOwnProperty, _t = Object.prototype.propertyIsEnumerable, vt = (e, t, n) => t in e ? mt(e, t, {
878
894
  enumerable: !0,
879
895
  configurable: !0,
@@ -10906,7 +10922,7 @@ function Px(e, t) {
10906
10922
  let n = Array.isArray(t.customProtocols) ? t.customProtocols : [], r = new Set(n.map((e) => Tx(e)).filter(Boolean)), i = Ex(e);
10907
10923
  if (i && !r.has(i)) return e;
10908
10924
  let a = e.startsWith("//");
10909
- !a && /^\.*\//.test(e) || i || (e = e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//, t.defaultProtocol));
10925
+ (a || !/^\.*\//.test(e)) && !i && (e = e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//, t.defaultProtocol));
10910
10926
  let o = new URL(e);
10911
10927
  if (t.forceHttp && t.forceHttps) throw Error("The `forceHttp` and `forceHttps` options cannot be used together");
10912
10928
  if (t.forceHttp && o.protocol === "https:" && (o.protocol = "http:"), t.forceHttps && o.protocol === "http:" && (o.protocol = "https:"), t.stripAuthentication && (o.username = "", o.password = ""), t.stripHash ? o.hash = "" : t.stripTextFragment && (o.hash = o.hash.replace(/#?:~:text.*?$/i, "")), o.pathname) {
@@ -14480,7 +14496,8 @@ var QC = class extends HTMLElement {
14480
14496
  }
14481
14497
  }, $C = window.customElements.get("face-capture"), ew = window.customElements.get("face-liveness"), tw = window.customElements.get("fullscreen-container");
14482
14498
  $C || window.customElements.define("face-capture", _C), ew || window.customElements.define("face-liveness", JC), tw || window.customElements.define("fullscreen-container", QC);
14483
- // src/utils/index.ts
14499
+ //#endregion
14500
+ //#region src/utils/index.ts
14484
14501
  var nw = (e) => {
14485
14502
  try {
14486
14503
  return new URL(e), !0;
@@ -14719,18 +14736,21 @@ var nw = (e) => {
14719
14736
  height: 100%;
14720
14737
  }
14721
14738
  `;
14722
- // \0@oxc-project+runtime@0.155.0/helpers/esm/decorateMetadata.js
14739
+ //#endregion
14740
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/decorateMetadata.js
14723
14741
  function ow(e, t) {
14724
14742
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
14725
14743
  }
14726
- // \0@oxc-project+runtime@0.155.0/helpers/esm/decorate.js
14744
+ //#endregion
14745
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/decorate.js
14727
14746
  function sw(e, t, n, r) {
14728
14747
  var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
14729
14748
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
14730
14749
  else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
14731
14750
  return i > 3 && a && Object.defineProperty(t, n, a), a;
14732
14751
  }
14733
- // src/web-components/face-idv/components/face-liveness-verification/index.ts
14752
+ //#endregion
14753
+ //#region src/web-components/face-idv/components/face-liveness-verification/index.ts
14734
14754
  var cw = class extends je {
14735
14755
  constructor(...e) {
14736
14756
  super(...e), this._performType = Ze.DATA, this.props = null, this._isFinishWithExitOnce = !1, this._handleFaceLiveness = (e) => {
@@ -15039,7 +15059,8 @@ var cw = class extends je {
15039
15059
  }
15040
15060
  }, lw = (cw.styles = [aw], cw);
15041
15061
  sw([dt(), ow("design:type", Object)], lw.prototype, "props", void 0), sw([pt("face-liveness"), ow("design:type", Object)], lw.prototype, "_component", void 0), lw = sw([ut("face-liveness-verification")], lw);
15042
- // src/web-components/face-idv/index.ts
15062
+ //#endregion
15063
+ //#region src/web-components/face-idv/index.ts
15043
15064
  var uw, dw = !1, fw = class extends je {
15044
15065
  constructor(...e) {
15045
15066
  super(...e), this.props = null, this.renderVersion = 0;
@@ -15071,4 +15092,5 @@ var uw, dw = !1, fw = class extends je {
15071
15092
  }
15072
15093
  };
15073
15094
  uw = fw, uw.getSupportedTemplates = () => [nt.LIVENESS], uw.getIdentifier = () => rt, uw.displayName = rt, sw([Fe({ attribute: !1 }), ow("design:type", Object)], fw.prototype, "props", void 0), sw([Fe({ attribute: !1 }), ow("design:type", Object)], fw.prototype, "renderVersion", void 0), Ye(rt, fw);
15095
+ //#endregion
15074
15096
  export { fw as FaceIdv };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/idv-face",
3
- "version": "4.0.656-rc",
3
+ "version": "4.0.657-nightly",
4
4
  "description": "Regula framework agnostic web components to work with face idv",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/main.js",