@azure/ai-vision-face-ui 1.4.5 → 1.4.7
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/FaceLivenessDetector.js
CHANGED
|
@@ -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=t+"facelivenessdetector-assets/images/logo.svg",r=c;function o(){const t=["867504JrTDOL","817621MUfWHT","26825750wMYCmp","arc","3DpapZT","631lwSTgo","18QvMFvk","7143596BQehbL","4138PeguMP","9104085htqRuI","8593110OxPaDD","khw"];return(o=function(){return t})()}function c(t,e){const s=o();return(c=function(t,e){return s[t-=423]})(t,e)}!function(){const t=c,e=o();for(;;)try{if(970925==-parseInt(t(426))/1*(-parseInt(t(429))/2)+parseInt(t(425))/3*(parseInt(t(428))/4)+parseInt(t(430))/5+parseInt(t(431))/6+-parseInt(t(434))/7+parseInt(t(433))/8+-parseInt(t(427))/9*(parseInt(t(423))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const h=["ar",r(424),"dv","fa","ha","he",r(432),"ks","ku","ps","ur","yi"],u=f;!function(){const t=f,e=d();for(;;)try{if(644452==-parseInt(t(252))/1*(parseInt(t(206))/2)+-parseInt(t(254))/3*(-parseInt(t(264))/4)+parseInt(t(205))/5+-parseInt(t(232))/6*(parseInt(t(272))/7)+parseInt(t(241))/8+parseInt(t(233))/9+-parseInt(t(271))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var l="AzureAIVisionFace_SIMD.js";function d(){const t=["function","15369340OYUIcU","671391IBwQLV","brandingText","fontFamily","/en.json","None","_showBranding","5232375ROcJXM","16162ncsSLS","brightnessImagePath","isHTMLInit","FaceRecoEngineAdapter","_locale","authToken","appendChild","deviceCorrelationId","_fontFamily","Unexpected","isDefined","script","bind","./facelivenessdetector-assets/i18n/","faceId","undefined","_feedbackMessageStyles","_baseAssetsURL","src","fontSize","checkModuleDefined","_userCorrelationId","Failed to load locale: ","feedbackMessageStyles","statusText","locale","18vMcoiL","598743DslZOK","start","skipInstructions","_languageDictionary","showBranding","replace","cleanup","brandingImage","7023784nNUxnh","_continueButtonStyles","brightnessSVGPath","keys","_brandingImage","createElement","_mediaInfoDeviceId","AzureAIVisionFace","activeMotionVisualHint","endsWith","_skipInstructions","65lKEXsz","_brightnessImagePath","86007eFepXD"," strings file: ","AzureAIVisionFace.js","disconnectedCallback","mediaInfoDeviceId","_deviceCorrelationId","loadLanguageDictionary","logo","_brandingText","isRtl","140qRmeip","substring","validate",".wasm","length","includes"];return(d=function(){return t})()}function f(t,e){const s=d();return(f=function(t,e){return s[t-=203]})(t,e)}try{0==WebAssembly[u(266)](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]))&&(l=u(256))}catch(t){l=u(256)}class p extends HTMLElement{constructor(){const t=u;super(),this.smilePath=e,this[t(234)]=this[t(234)][t(218)](this),this[t(253)]="",this[t(242)]="",this[t(222)]="",this._fontSize="",this[t(214)]="",this[t(236)]={},this.isRtl=!1,this._locale="en-US",this[t(223)]="./",this._mediaInfoDeviceId="",this[t(251)]=!0,this[t(259)]="",this[t(227)]="",this.isDefined=!1,this[t(208)]=!1,this[t(211)]="",this[t(220)]=n,this[t(249)]=i,this[t(243)]=s,this[t(245)]="",this[t(262)]="",this[t(204)]=!1,this[t(261)]=a}set[u(207)](t){this._brightnessImagePath=t}set[u(225)](t){this._fontSize=t}set[u(274)](t){this[u(214)]=t}set buttonStyles(t){this[u(242)]=t}set[u(229)](t){this[u(222)]=t}set[u(231)](t){const e=u;this[e(210)]=t,h[e(269)](t)&&(this[e(263)]=!0)}set languageDictionary(t){const e=u;this._languageDictionary=t||this[e(236)]}set[u(258)](t){this[u(247)]=t}set[u(235)](t){this[u(251)]=t}set[u(213)](t){this[u(259)]=t}set userCorrelationId(t){this[u(227)]=t}set[u(237)](t){this[u(204)]=Boolean(t)}set[u(240)](t){this[u(245)]=t}set[u(273)](t){const e=u;t&&t[e(268)]>30&&(t=t[e(265)](0,30)),this[e(262)]=t}[u(234)]=async t=>{const e=u;return this[e(211)]=t,this[e(216)]=await this[e(226)](1e3,30),this[e(216)]?(await this[e(260)](),Module[e(234)](this)):new Promise((t,s)=>{const n=e;s({livenessError:n(215),recognitionError:n(203)})})};async connectedCallback(){const t=u;if(this.isConnected&&(typeof Module===t(221)||void 0===Module[t(209)])){const e=this._baseAssetsURL[t(238)](/\/$/,"")+"/facelivenessdetector-assets/js/";window.Module={locateFile:function(s,n){const i=t;return s[i(269)](i(248))&&s[i(250)](i(267))?e+s:n+s}};const s=document[t(246)](t(217));s[t(224)]=e+l,document.head[t(212)](s)}}[u(257)](){const t=u;"undefined"!=typeof Module&&typeof Module[t(239)]===t(270)&&Module[t(239)]()}async[u(260)](){const t=u;if(0===Object[t(244)](this[t(236)])[t(268)]){let e=await fetch(t(219)+this[t(210)]+t(275));if(!e.ok)throw new Error(t(228)+this[t(210)]+t(255)+e[t(230)]+".");let s=await e.text();this._languageDictionary=JSON.parse(s)}}async[u(226)](t,e){const s=u;let n=0;for(;n<e;){if(n++,typeof Module!==s(221)&&void 0!==Module[s(209)])return!0;await new Promise(e=>setTimeout(e,t))}return!1}}var I=v;function g(){var t=["1863711gugmXK","4546663mljlRK","12BUwRIs","144912YdBcUr","68000jdfpBL","31670hfObnV","1002424BvfVnp","10myPXZj","define","azure-ai-vision-face-ui","1326jRTolT","3069510DNyNrD","10bavqWJ","7tFoWwF","301FHkRAs"];return(g=function(){return t})()}function v(t,e){var s=g();return(v=function(t,e){return s[t-=298]})(t,e)}!function(){for(var t=v,e=g();;)try{if(649775==-parseInt(t(307))/1*(-parseInt(t(299))/2)+parseInt(t(311))/3*(parseInt(t(300))/4)+-parseInt(t(301))/5*(-parseInt(t(305))/6)+parseInt(t(308))/7*(parseInt(t(298))/8)+parseInt(t(309))/9*(-parseInt(t(306))/10)+-parseInt(t(310))/11+parseInt(t(312))/12*(-parseInt(t(304))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),customElements[I(302)](I(303),p);export var LivenessStatus;
|
|
1
|
+
var n={137(n,t,e){e.d(t,{A:()=>o});var r=e(431),s=e.n(r),a=e(64),i=e.n(a)()(s());i.push([n.id,"/* Loading container styles */\n#face-liveness-loading {\n display: flex;\n flex-direction: column;\n gap: 10px;\n /*justify-content: space-around;*/\n align-items: center;\n margin: auto;\n position: absolute;\n top: 10svh;\n height: 80svh;\n bottom: 10svh;\n left: 10vw;\n right: 10vw;\n font-size: 2rem;\n z-index: 2147483647;\n background-color: white;\n}\n\n/* Loading text styles */\n.loading-text {\n display: flex;\n position: relative;\n left: 0;\n top: 0;\n width: 100%;\n text-align: center;\n justify-content: center;\n z-index: 2147483646;\n margin-top: 40px;\n font-size: 1.5rem;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n}\n\n/* Dots container styles */\n.dots-container {\n display: flex;\n gap: 5px;\n margin-bottom: 30px;\n}\n\n/* Dot styles */\n.loading-dot {\n width: 12px;\n height: 12px;\n background: #0078d4;\n border-radius: 50%;\n animation: loading-bounce 1.4s ease-in-out infinite both;\n}\n\n.loading-dot:nth-child(1) {\n animation-delay: 0s;\n}\n\n.loading-dot:nth-child(2) {\n animation-delay: 0.16s;\n}\n\n.loading-dot:nth-child(3) {\n animation-delay: 0.32s;\n}\n\n/* Cancel button styles */\n.cancel-button {\n background-color: #0078d7;\n color: white;\n border: none;\n padding: 2vmin 3vmin;\n margin-top: 20px;\n font-size: 1rem;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n border-radius: 5px;\n cursor: pointer;\n transition: background-color 0.3s ease;\n}\n\n.cancel-button:hover {\n background-color: #005a9e;\n}\n\n/* Loading animation keyframes */\n@keyframes loading-bounce {\n 0%, 80%, 100% {\n transform: scale(0);\n opacity: 0.5;\n }\n 40% {\n transform: scale(1);\n opacity: 1;\n }\n}",""]);const o=i},64(n,t,e){n=e.nmd(n);var r=s;function s(n,t){return n-=230,a()[n]}function a(){var n=["16jSukmB","@media ","960764wYVRro","undefined","map","exports","822830LYhEvV","415768EqmMkz","@supports (","string","join","8376648BvxZOZ","72MmMSnp","@layer","2574596LOAtuF","195944lBXZwc","68532GJhwyC","length",") {","concat"];return(a=function(){return n})()}!function(n){for(var t=s,e=n();;)try{if(776242==parseInt(t(248))/1+-parseInt(t(240))/2+-parseInt(t(242))/3+-parseInt(t(246))/4*(parseInt(t(232))/5)+parseInt(t(237))/6+-parseInt(t(241))/7+-parseInt(t(233))/8*(-parseInt(t(238))/9))break;e.push(e.shift())}catch(n){e.push(e.shift())}}(a),n[r(231)]=function(n){var t=[];return t.toString=function(){var t=s;return this[t(230)](function(e){var r=t,s="",a=typeof e[5]!==r(249);return e[4]&&(s+=r(234)[r(245)](e[4],r(244))),e[2]&&(s+="@media ".concat(e[2]," {")),a&&(s+="@layer"[r(245)](e[5][r(243)]>0?" "[r(245)](e[5]):""," {")),s+=n(e),a&&(s+="}"),e[2]&&(s+="}"),e[4]&&(s+="}"),s})[t(236)]("")},t.i=function(n,e,r,a,i){var o=s;typeof n===o(235)&&(n=[[null,n,void 0]]);var c={};if(r)for(var u=0;u<this.length;u++){var d=this[u][0];null!=d&&(c[d]=!0)}for(var p=0;p<n[o(243)];p++){var l=[].concat(n[p]);r&&c[l[0]]||(typeof i!==o(249)&&(typeof l[5]===o(249)||(l[1]=o(239)[o(245)](l[5][o(243)]>0?" "[o(245)](l[5]):""," {")[o(245)](l[1],"}")),l[5]=i),e&&(l[2]?(l[1]=o(247)[o(245)](l[2]," {")[o(245)](l[1],"}"),l[2]=e):l[2]=e),a&&(l[4]?(l[1]=o(234)[o(245)](l[4],") {")[o(245)](l[1],"}"),l[4]=a):l[4]=""[o(245)](a)),t.push(l))}},t}},431(n,t,e){n=e.nmd(n);var r=a;function s(){var n=["946915ROmvXt","2709NtAlKu","36pMKHOh","2189768CzlIXS","161673XGVugC","1362345WamoCN","6GKsIlD","11139810ZunqIG","exports","19568oxkmAu","2155786YUUSTn"];return(s=function(){return n})()}function a(n,t){return n-=168,s()[n]}!function(n){for(var t=a,e=n();;)try{if(893943==parseInt(t(178))/1+-parseInt(t(172))/2+-parseInt(t(177))/3*(-parseInt(t(175))/4)+parseInt(t(173))/5*(parseInt(t(168))/6)+parseInt(t(176))/7+parseInt(t(171))/8*(parseInt(t(174))/9)+-parseInt(t(169))/10)break;e.push(e.shift())}catch(n){e.push(e.shift())}}(s),n[r(170)]=function(n){return n[1]}},22(n,t,e){n=e.nmd(n);var r=a;function s(){var n=["exports","319315fSdPiX","1771KpHVNG","base","supports","819123xVlapm","length","21SnYqvq","updater","10960OgCzrh","19920GzCsUE","concat","update","1897960VubSEw","81DSBIkq","push","splice","references","426966NVnTCV","domAPI","layer","2SqLCtk","media","css","315kVpUcr","159688pEeUjY","byIndex","identifier","sourceMap"];return(s=function(){return n})()}function a(n,t){return n-=321,s()[n]}!function(n){for(var t=a,e=n();;)try{if(190270==-parseInt(t(341))/1+parseInt(t(332))/2*(parseInt(t(345))/3)+parseInt(t(349))/4*(parseInt(t(335))/5)+-parseInt(t(329))/6*(parseInt(t(347))/7)+parseInt(t(336))/8*(-parseInt(t(325))/9)+parseInt(t(324))/10+-parseInt(t(342))/11*(-parseInt(t(321))/12))break;e.push(e.shift())}catch(n){e.push(e.shift())}}(s);var i=[];function o(n){for(var t=a,e=-1,r=0;r<i.length;r++)if(i[r][t(338)]===n){e=r;break}return e}function c(n,t){for(var e=a,r={},s=[],c=0;c<n[e(346)];c++){var d=n[c],p=t[e(343)]?d[0]+t[e(343)]:d[0],l=r[p]||0,h=""[e(322)](p," ")[e(322)](l);r[p]=l+1;var f=o(h),I={css:d[1],media:d[2],sourceMap:d[3],supports:d[4],layer:d[5]};if(-1!==f)i[f][e(328)]++,i[f].updater(I);else{var m=u(I,t);t[e(337)]=c,i[e(327)](c,0,{identifier:h,updater:m,references:1})}s[e(326)](h)}return s}function u(n,t){var e=a,r=t[e(330)](t);return r[e(323)](n),function(t){var s=e;if(t){if(t[s(334)]===n.css&&t[s(333)]===n[s(333)]&&t.sourceMap===n[s(339)]&&t[s(344)]===n[s(344)]&&t[s(331)]===n[s(331)])return;r[s(323)](n=t)}else r.remove()}}n[r(340)]=function(n,t){var e=c(n=n||[],t=t||{});return function(n){var r=a;n=n||[];for(var s=0;s<e[r(346)];s++){var u=o(e[s]);i[u][r(328)]--}for(var d=c(n,t),p=0;p<e[r(346)];p++){var l=o(e[p]);0===i[l].references&&(i[l][r(348)](),i[r(327)](l,1))}e=d}}},365(n,t,e){function r(){var n=["2044626qhsgyp","exports","668806rSsyzx","4120FKcOtD","HTMLIFrameElement","6667031yOWzVR","10PVahyP","head","contentDocument","9fCPhpr","appendChild","517BOPBXy","374756cEwCyW","1548297tGygRQ","Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.","5319hqGBlI","514110WZPzup","undefined"];return(r=function(){return n})()}n=e.nmd(n);var s=i;!function(n){for(var t=i,e=n();;)try{if(929376==parseInt(t(504))/1+-parseInt(t(511))/2*(parseInt(t(500))/3)+-parseInt(t(503))/4+parseInt(t(515))/5*(-parseInt(t(509))/6)+-parseInt(t(514))/7+parseInt(t(512))/8*(-parseInt(t(506))/9)+parseInt(t(507))/10*(parseInt(t(502))/11))break;e.push(e.shift())}catch(n){e.push(e.shift())}}(r);var a={};function i(n,t){return n-=498,r()[n]}n[s(510)]=function(n,t){var e=i,r=function(n){var t=i;if(typeof a[n]===t(508)){var e=document.querySelector(n);if(window[t(513)]&&e instanceof window[t(513)])try{e=e[t(499)][t(498)]}catch(n){e=null}a[n]=e}return a[n]}(n);if(!r)throw new Error(e(505));r[e(501)](t)}},866(n,t,e){n=e.nmd(n);var r=s;function s(n,t){return n-=147,a()[n]}function a(){var n=["style","options","29132jvDYnT","insert","20xqzkaj","6188130BkywwV","exports","840088BvugYW","7vnjJLb","2ShZkzp","5403310ODsvjX","1613037AecAgC","811575FKpELr","355NusMkh","createElement","49326YHDkLd","setAttributes"];return(a=function(){return n})()}!function(n){for(var t=s,e=n();;)try{if(424079==parseInt(t(147))/1+-parseInt(t(161))/2*(-parseInt(t(163))/3)+parseInt(t(154))/4*(-parseInt(t(148))/5)+-parseInt(t(150))/6+-parseInt(t(160))/7*(parseInt(t(159))/8)+parseInt(t(157))/9+parseInt(t(156))/10*(-parseInt(t(162))/11))break;e.push(e.shift())}catch(n){e.push(e.shift())}}(a),n[r(158)]=function(n){var t=s,e=document[t(149)](t(152));return n[t(151)](e,n.attributes),n[t(155)](e,n[t(153)]),e}},614(n,t,e){n=e.nmd(n);var r=a;function s(){var n=["5424688XSjVBn","1KueGPh","20rMokIZ","nonce","1388628iwujby","3532527uDBHXh","14juBoWg","exports","181851VOrmcV","4321396YTnRfT","setAttribute","18267160ugDhrn","1774854rkMLDY","undefined"];return(s=function(){return n})()}function a(n,t){return n-=382,s()[n]}!function(n){for(var t=a,e=n();;)try{if(750254==parseInt(t(388))/1*(parseInt(t(385))/2)+-parseInt(t(395))/3+-parseInt(t(382))/4+parseInt(t(389))/5*(parseInt(t(391))/6)+-parseInt(t(393))/7*(parseInt(t(387))/8)+-parseInt(t(392))/9+parseInt(t(384))/10)break;e.push(e.shift())}catch(n){e.push(e.shift())}}(s),n[r(394)]=function(n){var t=a,r=typeof e.nc!==t(386)?e.nc:null;r&&n[t(383)](t(390),r)}},271(n,t,e){n=e.nmd(n);var r=a;function s(){var n=["1IlZpOR","media","styleTagTransform","removeChild","319524CVjcOk","3730275DpTGNa","11128KMeMtn","supports"," */","17405uBaQko","length","1193106OBmdiX","784dkEibV",") {","\n/*# sourceMappingURL=data:application/json;base64,","layer","11831650yVjQgA","104JmdPze","1038418jwPMGt","@supports (","undefined","exports","parentNode","@media ","@layer","concat","options","css"];return(s=function(){return n})()}function a(n,t){return n-=245,s()[n]}!function(n){for(var t=a,e=n();;)try{if(276538==parseInt(t(262))/1*(-parseInt(t(252))/2)+-parseInt(t(266))/3+parseInt(t(251))/4*(parseInt(t(271))/5)+parseInt(t(245))/6+-parseInt(t(246))/7*(parseInt(t(268))/8)+-parseInt(t(267))/9+parseInt(t(250))/10)break;e.push(e.shift())}catch(n){e.push(e.shift())}}(s),n[r(255)]=function(n){if(typeof document===a(254))return{update:function(){},remove:function(){}};var t=n.insertStyleElement(n);return{update:function(e){!function(n,t,e){var r=a,s="";e[r(269)]&&(s+=r(253)[r(259)](e[r(269)],r(247))),e.media&&(s+=r(257)[r(259)](e[r(263)]," {"));var i=typeof e[r(249)]!==r(254);i&&(s+=r(258).concat(e.layer[r(272)]>0?" "[r(259)](e[r(249)]):""," {")),s+=e[r(261)],i&&(s+="}"),e.media&&(s+="}"),e[r(269)]&&(s+="}");var o=e.sourceMap;o&&typeof btoa!==r(254)&&(s+=r(248)[r(259)](btoa(unescape(encodeURIComponent(JSON.stringify(o)))),r(270))),t[r(264)](s,n,t[r(260)])}(t,n,e)},remove:function(){!function(n){var t=a;if(null===n[t(256)])return!1;n[t(256)][t(265)](n)}(t)}}}},439(n){function t(n,t){return n-=362,e()[n]}function e(){var n=["removeChild","cssText","34409151Pgncnv","appendChild","2404478wccSPU","createTextNode","516128FBdwXg","64wYOCpJ","5098944UEJIGQ","128958vRoLOg","4431395smzfDG","1143871oOSYpJ","styleSheet","10YaWUhY","14jkWPBk"];return(e=function(){return n})()}!function(n){for(var e=t,r=n();;)try{if(696776==-parseInt(e(364))/1+-parseInt(e(372))/2+-parseInt(e(362))/3*(parseInt(e(375))/4)+parseInt(e(363))/5+-parseInt(e(376))/6+-parseInt(e(367))/7*(parseInt(e(374))/8)+parseInt(e(370))/9*(parseInt(e(366))/10))break;r.push(r.shift())}catch(n){r.push(r.shift())}}(e),n.exports=function(n,e){var r=t;if(e.styleSheet)e[r(365)][r(369)]=n;else{for(;e.firstChild;)e[r(368)](e.firstChild);e[r(371)](document[r(373)](n))}}}},t={};function e(r){var s=t[r];if(void 0!==s)return s.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return n[r](a,a.exports,e),a.loaded=!0,a.exports}e.n=n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return e.d(t,{a:t}),t},e.d=(n,t)=>{for(var r in t)e.o(t,r)&&!e.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:t[r]})},e.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),e.nmd=n=>(n.paths=[],n.children||(n.children=[]),n),e.p="./",e.nc=void 0;const r=e.p+"facelivenessdetector-assets/images/Smile.svg",s=e.p+"facelivenessdetector-assets/images/Brightness.svg",a=e.p+"facelivenessdetector-assets/images/FaceId.svg",i=e.p+"facelivenessdetector-assets/images/activeMotionVisualHint.png",o=e.p+"facelivenessdetector-assets/images/logo.svg";function c(){const n=["168wWczAs","385160fKbulK","1386087qAnPPr","1208PrRuHD","171PFSAxk","7297715ywbGxp","842970iTLyBB","1221KfUBnm","khw","1402962JcboFw","2130366LICrXe","arc"];return(c=function(){return n})()}const u=d;function d(n,t){return n-=147,c()[n]}!function(){const n=d,t=c();for(;;)try{if(806749==-parseInt(n(147))/1+parseInt(n(154))/2+-parseInt(n(152))/3*(-parseInt(n(148))/4)+parseInt(n(150))/5+parseInt(n(155))/6+-parseInt(n(157))/7*(-parseInt(n(158))/8)+parseInt(n(149))/9*(-parseInt(n(151))/10))break;t.push(t.shift())}catch(n){t.push(t.shift())}}();const p=["ar",u(156),"dv","fa","ha","he",u(153),"ks","ku","ps","ur","yi"];var l=e(22),h=e.n(l),f=e(271),I=e.n(f),m=e(365),v=e.n(m),g=e(614),y=e.n(g),b=e(866),w=e.n(b),k=e(439),S=e.n(k),x=e(137),A={};A.styleTagTransform=S(),A.setAttributes=y(),A.insert=v().bind(null,"head"),A.domAPI=I(),A.insertStyleElement=w(),h()(x.A,A),x.A&&x.A.locals&&x.A.locals;const C=M;function M(n,t){return n-=249,T()[n]}!function(){const n=M,t=T();for(;;)try{if(323973==-parseInt(n(336))/1+-parseInt(n(342))/2+parseInt(n(295))/3+parseInt(n(347))/4+parseInt(n(313))/5+parseInt(n(346))/6+-parseInt(n(291))/7)break;t.push(t.shift())}catch(n){t.push(t.shift())}}();var P=C(358);function T(){const n=["undefined","keys","className","765995CRiPTL","cancelButton","warn","start","cancelLoadingButtonTimeout","Failed to load locale: ","_feedbackMessageStyles","brandingImage","cleanup","path","_mediaInfoDeviceId","Module not loaded on timeout","loading-dot","getAttemptEndPath","_brandingText","metadata","checkModuleDefined","loadLanguageDictionary","_skipInstructions","/facelivenessdetector-assets/js/","AZAIF_CancelPrompt","endpoint","bind","248495ZFwDBa","FaceRecoEngineAdapter","_languageDictionary","src","languageDictionary","text","273326uLArMv","userCorrelationId","_handleModuleAbortedStart","loadingContainer","1914744dBCncZ","1058380SYYPEC","head","button","_moduleAborted","_baseAssetsURL","_moduleAbortedError","hasOwnProperty","length","split","remove","Bearer ","AzureAIVisionFace_SIMD.js","No attempt end path found","None","Error parsing JWT token:","connectedCallback","_brightnessImagePath","textContent","logo","_cancelModuleLoading","_AzureAIVisionFace_ModuleErrorSent","isRtl","POST","Module error not available before cancellation","_brandingImage","face","script","_continueButtonStyles","fontSize","endsWith","_locale","sendErrorToServer","_userCorrelationId","AzureAIVisionFace","locale","AzureAIVisionFace.js","_originalStart","authToken","mediaInfoDeviceId","stringify","AZAIF_FeedbackStarting","brightnessSVGPath","div","replace","find","appendChild","cancel-button","cancelLoading","feedbackMessageStyles","deviceCorrelationId","includes","brightnessImagePath","isDefined"," strings file: ","allowed-paths","en-US","validate","createElement","4064130JroURf","body","_showBranding","_fontFamily","1658409dzNybO","error","skipInstructions","_deviceCorrelationId","/en.json","hideLoadingAnimation","_fontSize","function","append","./facelivenessdetector-assets/i18n/","UserCancelledLoading","Unknown Module abort error","parse","invalid token","AZAIF_FeedbackTakingLong"];return(T=function(){return n})()}try{0==WebAssembly[C(289)](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]))&&(P=C(268))}catch(n){P=C(268)}class B extends HTMLElement{constructor(){const n=C;super(),this.smilePath=r,this.start=this.start[n(335)](this),this._brightnessImagePath="",this[n(260)]="",this[n(319)]="",this[n(301)]="",this[n(294)]="",this[n(338)]={},this[n(254)]=!1,this[n(263)]=n(288),this[n(351)]="./",this[n(323)]="",this[n(331)]=!0,this._deviceCorrelationId="",this[n(265)]="",this[n(285)]=!1,this.isHTMLInit=!1,this[n(270)]="",this.faceId=a,this.activeMotionVisualHint=i,this[n(274)]=s,this[n(257)]="",this._brandingText="",this._showBranding=!1,this[n(251)]=o,this[n(350)]=!1,this[n(352)]="",this[n(269)]=null,this[n(252)]=!1}set[C(284)](n){this[C(249)]=n}set[C(261)](n){this[C(301)]=n}set fontFamily(n){this[C(294)]=n}set buttonStyles(n){this[C(260)]=n}set[C(281)](n){this[C(319)]=n}set[C(267)](n){const t=C;this._locale=n,p[t(283)](n)&&(this[t(254)]=!0)}set[C(340)](n){const t=C;this[t(338)]=n||this[t(338)]}set[C(271)](n){this[C(323)]=n}set[C(297)](n){this[C(331)]=n}set[C(282)](n){this[C(298)]=n}set[C(343)](n){this[C(265)]=n}set showBranding(n){this[C(293)]=Boolean(n)}set[C(320)](n){this[C(257)]=n}set brandingText(n){const t=C;n&&n[t(354)]>30&&(n=n.substring(0,30)),this[t(327)]=n}[C(326)](n){const t=C;try{const e=n[t(355)](".");if(3===e[t(354)]){const n=JSON[t(307)](atob(e[1]));if(n.hasOwnProperty(t(258))){const e=JSON[t(307)](n.face);if(e&&e[t(334)]&&n[t(353)](t(287))){const r=JSON.parse(n[t(287)])[t(277)](n=>n[t(322)]&&n[t(322)].includes("attempt/end"));return r?e.endpoint+"/"+r[t(322)]:(console.warn(t(308)),null)}}}}catch(n){return console[t(296)](t(361),n),null}return null}async[C(264)](n,t){const e=C;window[e(253)]&&(t="User reuse a cancelled or failed module, causing new failure: "+t);const r=this[e(326)](n);if(r)try{const s=new FormData;s[e(303)](e(328),JSON[e(272)]({clientSDKversion:"1.4.7",failureReason:t}));const a=await fetch(r,{method:e(255),headers:{Authorization:e(357)+n},body:s});return window[e(253)]=!0,a}catch(n){throw console[e(296)]("Error sending error:",n),n}else console[e(315)](e(359))}[C(344)]=async n=>{const t=C;try{await this.sendErrorToServer(n,""+this[t(352)])}catch(n){console.error("Failed to send module abort error:",n)}return new Promise((n,e)=>{e({livenessError:"Unexpected",recognitionError:t(360)})})};[C(316)]=async n=>{const t=C;if(this.authToken=n,this[t(285)]=await this.checkModuleDefined(1,1),await this.loadLanguageDictionary(),!this.isDefined&&this.showLoadingAnimation(),this[t(285)]=await this[t(329)](1e3,30),this.hideLoadingAnimation(),!this[t(285)])return!this[t(352)]&&(this[t(352)]=t(324)),this[t(252)]?new Promise((n,e)=>{const r=t;e({livenessError:r(305),recognitionError:r(360)})}):this[t(344)](n);if(this[t(252)])return new Promise((n,e)=>{const r=t;e({livenessError:r(305),recognitionError:r(360)})});try{return Module[t(316)](this)}catch{return this[t(344)](n)}};async[C(362)](){const n=C;if(this.isConnected&&(typeof Module===n(310)||typeof Module[n(337)]===n(310))){const t=this[n(351)][n(276)](/\/$/,"")+n(332);window.Module={locateFile:function(e,r){const s=n;return e.includes(s(266))&&e[s(262)](".wasm")?t+e:r+e},onAbort:t=>{const e=n;console[e(296)]("Module loading aborted:",t);const r=t||e(306);this[e(350)]=!0,this[e(352)]=r}};const e=document[n(290)](n(259));e[n(339)]=t+P,document[n(348)].appendChild(e)}}disconnectedCallback(){const n=C;"undefined"!=typeof Module&&typeof Module[n(321)]===n(302)&&Module.cleanup()}async[C(330)](){const n=C;if(0===Object[n(311)](this[n(338)]).length){let t=await fetch(n(304)+this[n(263)]+n(299));if(!t.ok)throw new Error(n(318)+this._locale+n(286)+t.statusText+".");let e=await t[n(341)]();this[n(338)]=JSON.parse(e)}}async[C(329)](n,t){const e=C;let r=0;for(;r<t;){if(r++,"undefined"!=typeof Module&&void 0!==Module.FaceRecoEngineAdapter)return!0;if(this[e(252)])return!this[e(352)]&&(this[e(352)]=e(256)),!1;if(this[e(350)])return!1;await new Promise(t=>setTimeout(t,n))}return!1}async showLoadingAnimation(){const n=C;this.hideLoadingAnimation();const t=document[n(290)](n(275));t.id="face-liveness-loading";const e=document[n(290)]("div");e[n(312)]="loading-text",e[n(250)]=this[n(338)][n(273)];const r=document.createElement("div");r[n(312)]="dots-container";for(let t=0;t<3;t++){const t=document[n(290)](n(275));t[n(312)]=n(325),r.appendChild(t)}const s=document[n(290)](n(349));s[n(312)]=n(279),s[n(250)]=this[n(338)][n(333)],s.onclick=()=>this.cancelLoading(),t.appendChild(e),t[n(278)](r),this.cancelLoadingButtonTimeout=setTimeout(()=>{const r=n;this[r(345)]&&(e[r(250)]=this[r(338)][r(309)],t[r(278)](s))},1e4),document[n(292)][n(278)](t),this[n(345)]=t}[C(300)](){const n=C;this[n(345)]&&(this.loadingContainer.remove(),this[n(345)]=null),this[n(317)]&&(clearTimeout(this[n(317)]),this.cancelLoadingButtonTimeout=null),this[n(314)]&&(this[n(314)][n(356)](),this[n(314)]=null)}[C(280)](){const n=C;this[n(300)](),this[n(252)]=!0,this[n(264)](this[n(270)],n(305))}}var L=O;function O(n,t){return n-=251,E()[n]}function E(){var n=["173gYMnsO","4HBkBCC","1408505ndabRY","azure-ai-vision-face-ui","define","1457344AIqlde","37325547hpvtqW","7304549ORVkMS","14722TloUPU","696219fKChxL","4184310qYdyyT"];return(E=function(){return n})()}!function(){for(var n=O,t=E();;)try{if(901142==-parseInt(n(252))/1*(parseInt(n(260))/2)+parseInt(n(261))/3+parseInt(n(253))/4*(-parseInt(n(254))/5)+-parseInt(n(251))/6+-parseInt(n(259))/7+-parseInt(n(257))/8+parseInt(n(258))/9)break;t.push(t.shift())}catch(n){t.push(t.shift())}}(),customElements[L(256)](L(255),B);export var LivenessStatus;
|
|
2
2
|
(function (LivenessStatus) {
|
|
3
3
|
LivenessStatus["RealFace"] = "RealFace";
|
|
4
4
|
LivenessStatus["SpoofFace"] = "SpoofFace";
|
package/package.json
CHANGED
|
@@ -191,4 +191,22 @@ export class FaceLivenessDetector extends HTMLElement {
|
|
|
191
191
|
* UserCorrelationId is used to set the user correlation for the session.
|
|
192
192
|
*/
|
|
193
193
|
userCorrelationId : string;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Show a logo and text during the liveness session, this is turned off by default.
|
|
197
|
+
* If turned on, then Microsoft's logo will be shown by default.
|
|
198
|
+
*/
|
|
199
|
+
showBranding: boolean;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Customize the default Microsoft's logo with a different image.
|
|
203
|
+
* Ensure the image is deployed with the web application.
|
|
204
|
+
*/
|
|
205
|
+
brandingImage: string;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Customize the branding text to override the default "Powered by Microsoft".
|
|
209
|
+
* Ensure the overridden text is localized for all locales your web application supports.
|
|
210
|
+
*/
|
|
211
|
+
brandingText: string;
|
|
194
212
|
}
|