@azure/ai-vision-face-ui 1.4.2 → 1.4.4

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.
@@ -1,4 +1,4 @@
1
- var t="./";const e=t+"facelivenessdetector-assets/images/Smile.svg",s=t+"facelivenessdetector-assets/images/Brightness.svg",n=t+"facelivenessdetector-assets/images/FaceId.svg",i=t+"facelivenessdetector-assets/images/activeMotionVisualHint.png",a=o;!function(){const t=o,e=c();for(;;)try{if(986462==parseInt(t(248))/1+parseInt(t(250))/2+-parseInt(t(251))/3+parseInt(t(253))/4*(-parseInt(t(249))/5)+-parseInt(t(246))/6+-parseInt(t(255))/7*(parseInt(t(254))/8)+parseInt(t(247))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const r=["ar",a(252),"dv","fa","ha","he","khw","ks","ku","ps","ur","yi"];function o(t,e){const s=c();return(o=function(t,e){return s[t-=246]})(t,e)}function c(){const t=["56kHOHQs","2456550WUYfOM","6460416CCYyHL","1969118baDsrf","235985YYXCie","3125988RTISRp","4877214FdLXGP","arc","44ymZRKK","709144QdGlWo"];return(c=function(){return t})()}const h=l;function u(){const t=["validate","_fontSize","8ZepLLy","_skipInstructions","languageDictionary","_fontFamily","496371ZzDLYx","appendChild","smilePath","loadLanguageDictionary","replace","start","315iADsLM","script","None","statusText","_feedbackMessageStyles","undefined","_locale","Failed to load locale: ","authToken","bind","./facelivenessdetector-assets/i18n/","endsWith","2547937VmiXeW","locale","_userCorrelationId","text","FaceRecoEngineAdapter","cleanup","3328120ttphio","Module","/en.json","includes","function","length","isRtl","6767330qYPCCR","en-US","_languageDictionary","_continueButtonStyles","36gazWIF",".wasm","/facelivenessdetector-assets/js/","brightnessSVGPath","Unexpected","deviceCorrelationId","AzureAIVisionFace.js","9356iWLqqq","buttonStyles","2384486hhbxwY","createElement","skipInstructions","_deviceCorrelationId","disconnectedCallback","AzureAIVisionFace_SIMD.js","isDefined","AzureAIVisionFace","6061170AElFUg","activeMotionVisualHint","_mediaInfoDeviceId"];return(u=function(){return t})()}function l(t,e){const s=u();return(l=function(t,e){return s[t-=236]})(t,e)}!function(){const t=l,e=u();for(;;)try{if(792143==-parseInt(t(251))/1+-parseInt(t(295))/2+parseInt(t(257))/3*(-parseInt(t(293))/4)+parseInt(t(275))/5+-parseInt(t(242))/6+-parseInt(t(269))/7*(-parseInt(t(247))/8)+-parseInt(t(286))/9*(-parseInt(t(282))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var f=h(239);try{0==WebAssembly[h(245)](new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]))&&(f=h(292))}catch(t){f=h(292)}class d extends HTMLElement{constructor(){const t=h;super(),this[t(253)]=e,this[t(256)]=this.start[t(266)](this),this._brightnessImagePath="",this[t(285)]="",this[t(261)]="",this[t(246)]="",this[t(250)]="",this[t(284)]={},this[t(281)]=!1,this[t(263)]=t(283),this._baseAssetsURL="./",this[t(244)]="",this[t(248)]=!0,this[t(237)]="",this[t(271)]="",this[t(240)]=!1,this.isHTMLInit=!1,this.authToken="",this.faceId=n,this[t(243)]=i,this[t(289)]=s}set brightnessImagePath(t){this._brightnessImagePath=t}set fontSize(t){this[h(246)]=t}set fontFamily(t){this[h(250)]=t}set[h(294)](t){this[h(285)]=t}set feedbackMessageStyles(t){this[h(261)]=t}set[h(270)](t){const e=h;this._locale=t,r[e(278)](t)&&(this[e(281)]=!0)}set[h(249)](t){const e=h;this[e(284)]=t||this[e(284)]}set mediaInfoDeviceId(t){this[h(244)]=t}set[h(236)](t){this[h(248)]=t}set[h(291)](t){this._deviceCorrelationId=t}set userCorrelationId(t){this[h(271)]=t}[h(256)]=async t=>{const e=h;return this[e(265)]=t,this[e(240)]=await this.checkModuleDefined(1e3,30),this[e(240)]?(await this[e(254)](),Module[e(256)](this)):new Promise((t,s)=>{const n=e;s({livenessError:n(290),recognitionError:n(259)})})};async connectedCallback(){const t=h;if(this.isConnected&&(typeof Module===t(262)||void 0===Module.FaceRecoEngineAdapter)){const e=this._baseAssetsURL[t(255)](/\/$/,"")+t(288);window[t(276)]={locateFile:function(s,n){const i=t;return s[i(278)](i(241))&&s[i(268)](i(287))?e+s:n+s}};const s=document[t(296)](t(258));s.src=e+f,document.head[t(252)](s)}}[h(238)](){const t=h;typeof Module!==t(262)&&typeof Module[t(274)]===t(279)&&Module[t(274)]()}async[h(254)](){const t=h;if(0===Object.keys(this._languageDictionary)[t(280)]){let e=await fetch(t(267)+this[t(263)]+t(277));if(!e.ok)throw new Error(t(264)+this._locale+" strings file: "+e[t(260)]+".");let s=await e[t(272)]();this[t(284)]=JSON.parse(s)}}async checkModuleDefined(t,e){const s=h;let n=0;for(;n<e;){if(n++,typeof Module!==s(262)&&typeof Module[s(273)]!==s(262))return!0;await new Promise(e=>setTimeout(e,t))}return!1}}function p(){var t=["636824nRjLre","42IqeYDl","1628541vQowzA","define","44emXQVG","717881vsLpRB","210395HvTUxU","6418188ZiPEkL","azure-ai-vision-face-ui","2016188KFeTJf","754670FyMbih","10GqTslk"];return(p=function(){return t})()}var I=g;function g(t,e){var s=p();return(g=function(t,e){return s[t-=451]})(t,e)}!function(){for(var t=g,e=p();;)try{if(667940==-parseInt(t(459))/1+-parseInt(t(451))/2+parseInt(t(456))/3+parseInt(t(458))/4*(parseInt(t(460))/5)+-parseInt(t(455))/6*(-parseInt(t(452))/7)+-parseInt(t(454))/8+parseInt(t(461))/9*(parseInt(t(453))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),customElements[I(457)](I(462),d);export var LivenessStatus;
1
+ var t="./";const e=t+"facelivenessdetector-assets/images/Smile.svg",s=t+"facelivenessdetector-assets/images/Brightness.svg",n=t+"facelivenessdetector-assets/images/FaceId.svg",i=t+"facelivenessdetector-assets/images/activeMotionVisualHint.png",a=t+"facelivenessdetector-assets/images/logo.svg",r=o;function o(t,e){const s=c();return(o=function(t,e){return s[t-=133]})(t,e)}function c(){const t=["5vXflyG","322536YALjgb","51236TRpVMQ","arc","230236zDLbXs","1857384FASLFo","30078efDFQO","3AMBEXx","964780lOWGvR","13869rotNfN","khw","196nbPirO"];return(c=function(){return t})()}!function(){const t=o,e=c();for(;;)try{if(176879==-parseInt(t(137))/1+parseInt(t(138))/2*(-parseInt(t(143))/3)+parseInt(t(140))/4*(parseInt(t(136))/5)+-parseInt(t(142))/6*(-parseInt(t(135))/7)+parseInt(t(141))/8+-parseInt(t(133))/9+parseInt(t(144))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const h=["ar",r(139),"dv","fa","ha","he",r(134),"ks","ku","ps","ur","yi"],u=l;function l(t,e){const s=f();return(l=function(t,e){return s[t-=174]})(t,e)}function f(){const t=["isDefined","17206eevbaa","isRtl","createElement","FaceRecoEngineAdapter","112fyeRgW","1015903CBtOId","_skipInstructions","locale","en-US","AzureAIVisionFace_SIMD.js","languageDictionary","checkModuleDefined","brandingText","head","fontSize","_feedbackMessageStyles","390ezkDjV","_userCorrelationId","brightnessImagePath","_fontSize","Failed to load locale: ","smilePath","_brandingImage","isHTMLInit","4phmujU","faceId","_deviceCorrelationId","_locale","_baseAssetsURL","buttonStyles","65HalnsN","undefined","brandingImage","/en.json","56dQofVb"," strings file: ","function","4004376CWOxQK","text","validate","cleanup","start","feedbackMessageStyles","_continueButtonStyles","replace","showBranding","_mediaInfoDeviceId","15664cNzahQ","connectedCallback","logo","src","_brightnessImagePath","_fontFamily","1122582rLfUfc","337098YXBlDG","keys","AzureAIVisionFace","activeMotionVisualHint","Module","length","_languageDictionary","AzureAIVisionFace.js","loadLanguageDictionary","_showBranding","includes","appendChild","userCorrelationId","endsWith","5OoyXDC","/facelivenessdetector-assets/js/","_brandingText","mediaInfoDeviceId","9928764vYkSFq","parse","statusText","authToken"];return(f=function(){return t})()}!function(){const t=l,e=f();for(;;)try{if(992502==parseInt(t(243))/1*(-parseInt(t(239))/2)+parseInt(t(215))/3*(parseInt(t(186))/4)+-parseInt(t(230))/5*(-parseInt(t(216))/6)+-parseInt(t(244))/7*(-parseInt(t(196))/8)+-parseInt(t(234))/9+parseInt(t(178))/10*(-parseInt(t(209))/11)+-parseInt(t(199))/12*(-parseInt(t(192))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var d=u(248);try{0==WebAssembly[u(201)](new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]))&&(d=u(223))}catch(t){d="AzureAIVisionFace.js"}class p extends HTMLElement{constructor(){const t=u;super(),this[t(183)]=e,this[t(203)]=this[t(203)].bind(this),this[t(213)]="",this[t(205)]="",this[t(177)]="",this[t(181)]="",this[t(214)]="",this[t(222)]={},this[t(240)]=!1,this._locale=t(247),this[t(190)]="./",this[t(208)]="",this[t(245)]=!0,this[t(188)]="",this[t(179)]="",this[t(238)]=!1,this[t(185)]=!1,this[t(237)]="",this[t(187)]=n,this[t(219)]=i,this.brightnessSVGPath=s,this[t(184)]="",this[t(232)]="",this[t(225)]=!1,this[t(211)]=a}set[u(180)](t){this[u(213)]=t}set[u(176)](t){this._fontSize=t}set fontFamily(t){this[u(214)]=t}set[u(191)](t){this[u(205)]=t}set[u(204)](t){this[u(177)]=t}set[u(246)](t){const e=u;this[e(189)]=t,h[e(226)](t)&&(this[e(240)]=!0)}set[u(249)](t){const e=u;this[e(222)]=t||this[e(222)]}set[u(233)](t){this[u(208)]=t}set skipInstructions(t){this[u(245)]=t}set deviceCorrelationId(t){this._deviceCorrelationId=t}set[u(228)](t){this[u(179)]=t}set[u(207)](t){this[u(225)]=Boolean(t)}set[u(194)](t){this[u(184)]=t}set[u(174)](t){const e=u;t&&t[e(221)]>30&&(t=t.substring(0,30)),this[e(232)]=t}start=async t=>{const e=u;return this[e(237)]=t,this.isDefined=await this[e(250)](1e3,30),this.isDefined?(await this[e(224)](),Module.start(this)):new Promise((t,e)=>{e({livenessError:"Unexpected",recognitionError:"None"})})};async[u(210)](){const t=u;if(this.isConnected&&(typeof Module===t(193)||typeof Module[t(242)]===t(193))){const e=this[t(190)][t(206)](/\/$/,"")+t(231);window[t(220)]={locateFile:function(s,n){const i=t;return s[i(226)](i(218))&&s[i(229)](".wasm")?e+s:n+s}};const s=document[t(241)]("script");s[t(212)]=e+d,document[t(175)][t(227)](s)}}disconnectedCallback(){const t=u;typeof Module!==t(193)&&typeof Module[t(202)]===t(198)&&Module[t(202)]()}async[u(224)](){const t=u;if(0===Object[t(217)](this[t(222)])[t(221)]){let e=await fetch("./facelivenessdetector-assets/i18n/"+this[t(189)]+t(195));if(!e.ok)throw new Error(t(182)+this._locale+t(197)+e[t(236)]+".");let s=await e[t(200)]();this[t(222)]=JSON[t(235)](s)}}async[u(250)](t,e){const s=u;let n=0;for(;n<e;){if(n++,typeof Module!==s(193)&&typeof Module[s(242)]!==s(193))return!0;await new Promise(e=>setTimeout(e,t))}return!1}}var I=g;function g(t,e){var s=v();return(g=function(t,e){return s[t-=397]})(t,e)}function v(){var t=["define","2561816UgEMAB","4907752dSgCzB","10874pBCiMx","1058830FKZFuM","4372515jrYCtn","3LUBuEK","6CSpKXP","907389soAEvD","98DvFsba","10511270LRjkeE"];return(v=function(){return t})()}!function(){for(var t=g,e=v();;)try{if(400844==parseInt(t(400))/1*(-parseInt(t(406))/2)+parseInt(t(403))/3*(parseInt(t(398))/4)+-parseInt(t(401))/5*(-parseInt(t(404))/6)+parseInt(t(405))/7+-parseInt(t(399))/8+-parseInt(t(402))/9+parseInt(t(407))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),customElements[I(397)]("azure-ai-vision-face-ui",p);export var LivenessStatus;
2
2
  (function (LivenessStatus) {
3
3
  LivenessStatus["RealFace"] = "RealFace";
4
4
  LivenessStatus["SpoofFace"] = "SpoofFace";
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "types": "types/index.d.ts",
6
6
  "homepage": "https://github.com/Azure-Samples/azure-ai-vision-sdk",
7
7
  "dependencies": {
8
- "@azure-ai-vision-face/ui-assets": "1.4.2"
8
+ "@azure-ai-vision-face/ui-assets": "1.4.4"
9
9
  },
10
- "version": "1.4.2"
10
+ "version": "1.4.4"
11
11
  }