@azure/ai-vision-face-ui 1.4.7 → 1.4.8

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 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;
1
+ var t={137(t,n,e){e.d(n,{A:()=>o});var r=e(431),s=e.n(r),a=e(64),i=e.n(a)()(s());i.push([t.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(t,n,e){t=e.nmd(t);var r=s;function s(t,n){return t-=209,a()[t]}function a(){var t=["@layer","@media ","223881qjoCxl","undefined","@supports (","950883YdnKZJ","map","4LnsPNA","exports","273KTbnWC","8868miYLxF","concat","toString","1705234efrYah","push","3866598HTMqao","16qIvufL","3453690CdJXiy","join",") {","length","28323000SMHDZa"];return(a=function(){return t})()}!function(t){for(var n=s,e=t();;)try{if(465139==-parseInt(n(219))/1+-parseInt(n(230))/2+-parseInt(n(222))/3*(-parseInt(n(224))/4)+-parseInt(n(212))/5+-parseInt(n(227))/6*(parseInt(n(226))/7)+-parseInt(n(211))/8*(parseInt(n(210))/9)+parseInt(n(216))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(a),t[r(225)]=function(t){var n=r,e=[];return e[n(229)]=function(){var e=n;return this[e(223)](function(n){var r=e,s="",a=void 0!==n[5];return n[4]&&(s+=r(221).concat(n[4],r(214))),n[2]&&(s+="@media "[r(228)](n[2]," {")),a&&(s+=r(217)[r(228)](n[5].length>0?" "[r(228)](n[5]):""," {")),s+=t(n),a&&(s+="}"),n[2]&&(s+="}"),n[4]&&(s+="}"),s})[e(213)]("")},e.i=function(t,r,s,a,i){var o=n;"string"==typeof t&&(t=[[null,t,void 0]]);var c={};if(s)for(var u=0;u<this.length;u++){var l=this[u][0];null!=l&&(c[l]=!0)}for(var d=0;d<t[o(215)];d++){var p=[][o(228)](t[d]);s&&c[p[0]]||(typeof i!==o(220)&&(typeof p[5]===o(220)||(p[1]="@layer"[o(228)](p[5].length>0?" "[o(228)](p[5]):""," {")[o(228)](p[1],"}")),p[5]=i),r&&(p[2]?(p[1]=o(218)[o(228)](p[2]," {")[o(228)](p[1],"}"),p[2]=r):p[2]=r),a&&(p[4]?(p[1]=o(221)[o(228)](p[4],o(214))[o(228)](p[1],"}"),p[4]=a):p[4]=""[o(228)](a)),e[o(209)](p))}},e}},431(t,n,e){function r(t,n){return t-=382,a()[t]}t=e.nmd(t);var s=r;function a(){var t=["exports","36fiwLbx","10615044luukzZ","69624WdVkNw","668400FhUiLh","1128054xkZMNX","30sxkqsU","11wpGRTs","1908296WHDAKN","49wvSLTi","1535928YOagOb","3QcLWyc","874944FJHuYu"];return(a=function(){return t})()}!function(t){for(var n=r,e=t();;)try{if(901515==-parseInt(n(390))/1+parseInt(n(382))/2*(parseInt(n(383))/3)+-parseInt(n(388))/4*(-parseInt(n(391))/5)+parseInt(n(384))/6*(parseInt(n(394))/7)+-parseInt(n(393))/8*(-parseInt(n(386))/9)+parseInt(n(389))/10+parseInt(n(392))/11*(-parseInt(n(387))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(a),t[s(385)]=function(t){return t[1]}},22(t,n,e){t=e.nmd(t);var r=s;function s(t,n){return t-=412,a()[t]}function a(){var t=["235468CbKQSc","76914COSIdp","5goNpeR","splice","css","supports","concat","updater","484989YvvdEQ","update","push","base","3674lRzygO","1840DtKZQk","exports","272VVMRvc","sourceMap","1704552dbXpnQ","3134747EBOsIz","1344684DssxkN","layer","identifier","references","length","domAPI","remove","6AHieae"];return(a=function(){return t})()}!function(t){for(var n=s,e=t();;)try{if(266210==-parseInt(n(430))/1+parseInt(n(429))/2*(parseInt(n(438))/3)+-parseInt(n(420))/4+parseInt(n(432))/5*(parseInt(n(422))/6)+parseInt(n(421))/7+parseInt(n(418))/8*(-parseInt(n(431))/9)+parseInt(n(416))/10*(parseInt(n(415))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(a);var i=[];function o(t){for(var n=s,e=-1,r=0;r<i[n(426)];r++)if(i[r][n(424)]===t){e=r;break}return e}function c(t,n){for(var e=s,r={},a=[],c=0;c<t.length;c++){var l=t[c],d=n.base?l[0]+n[e(414)]:l[0],p=r[d]||0,h=""[e(436)](d," ").concat(p);r[d]=p+1;var f=o(h),I={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)i[f][e(425)]++,i[f][e(437)](I);else{var g=u(I,n);n.byIndex=c,i[e(433)](c,0,{identifier:h,updater:g,references:1})}a[e(413)](h)}return a}function u(t,n){var e=s,r=n[e(427)](n);return r[e(412)](t),function(n){var s=e;if(n){if(n[s(434)]===t[s(434)]&&n.media===t.media&&n[s(419)]===t[s(419)]&&n.supports===t[s(435)]&&n[s(423)]===t[s(423)])return;r[s(412)](t=n)}else r[s(428)]()}}t[r(417)]=function(t,n){var e=c(t=t||[],n=n||{});return function(t){var r=s;t=t||[];for(var a=0;a<e[r(426)];a++){var u=o(e[a]);i[u][r(425)]--}for(var l=c(t,n),d=0;d<e[r(426)];d++){var p=o(e[d]);0===i[p][r(425)]&&(i[p][r(437)](),i[r(433)](p,1))}e=l}}},365(t){function n(){var t=["2wnpaBX","3029212WoqXxb","undefined","5VoTNxK","62316uMSMkP","856wJClOF","appendChild","Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.","221143iEmCWJ","HTMLIFrameElement","10117674gDiIMr","querySelector","head","1300983idiOSr","3183918qNMnBg","34837940AIPrUG"];return(n=function(){return t})()}!function(t){for(var n=r,e=t();;)try{if(836520==-parseInt(n(371))/1+-parseInt(n(363))/2*(parseInt(n(376))/3)+-parseInt(n(364))/4+parseInt(n(366))/5*(-parseInt(n(377))/6)+-parseInt(n(373))/7+-parseInt(n(368))/8*(-parseInt(n(367))/9)+parseInt(n(378))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(n);var e={};function r(t,e){return t-=363,n()[t]}t.exports=function(t,n){var s=r,a=function(t){var n=r;if(typeof e[t]===n(365)){var s=document[n(374)](t);if(window[n(372)]&&s instanceof window[n(372)])try{s=s.contentDocument[n(375)]}catch(t){s=null}e[t]=s}return e[t]}(t);if(!a)throw new Error(s(370));a[s(369)](n)}},866(t,n,e){t=e.nmd(t);var r=a;function s(){var t=["108CFSxFY","exports","4788328umUkFy","87409ULDJVJ","2748645TKAbWH","1625316nmOsXB","options","insert","createElement","setAttributes","2166579ueMwzT","78315LhUeGV","414YkGILR","70LKgjbr","235678pRHPws"];return(s=function(){return t})()}function a(t,n){return t-=131,s()[t]}!function(t){for(var n=a,e=t();;)try{if(877885==parseInt(n(134))/1+-parseInt(n(140))/2+-parseInt(n(139))/3+-parseInt(n(135))/4*(-parseInt(n(131))/5)+-parseInt(n(132))/6*(-parseInt(n(138))/7)+-parseInt(n(137))/8+-parseInt(n(145))/9*(-parseInt(n(133))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(s),t[r(136)]=function(t){var n=a,e=document[n(143)]("style");return t[n(144)](e,t.attributes),t[n(142)](e,t[n(141)]),e}},614(t,n,e){t=e.nmd(t);var r=a;function s(){var t=["3mFbkKI","5384136qNsmOS","24WufJCT","10XZltUa","4528152GOxUCO","10023277LnSItB","10AhTzKY","681355cwstXC","6135260fyYFTG","239998CXxazD","283591CJXndU","exports","132ffPurC","nonce"];return(s=function(){return t})()}function a(t,n){return t-=364,s()[t]}!function(t){for(var n=a,e=t();;)try{if(890479==-parseInt(n(370))/1*(parseInt(n(376))/2)+-parseInt(n(367))/3*(parseInt(n(375))/4)+-parseInt(n(374))/5+parseInt(n(365))/6*(parseInt(n(377))/7)+-parseInt(n(369))/8*(-parseInt(n(371))/9)+parseInt(n(373))/10*(parseInt(n(372))/11)+parseInt(n(368))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(s),t[r(364)]=function(t){var n=a,r=e.nc;r&&t.setAttribute(n(366),r)}},271(t,n,e){t=e.nmd(t);var r=s;function s(t,n){return t-=234,a()[t]}function a(){var t=["parentNode","125745Uqvgsr","undefined","@layer"," */","sourceMap","media","options","67177MXVDAy","length","40sYLcwU","removeChild","2tlVmKS","@supports (","2280VqrgwO","supports","layer","@media ","1262367baEwnB","168xviiBE","concat","2418178SnZaRT","exports","7636266aNEcxj","16101CdrHwR","5999984NTsJgz","\n/*# sourceMappingURL=data:application/json;base64,","stringify","10SRzVqw","styleTagTransform"];return(a=function(){return t})()}!function(t){for(var n=s,e=t();;)try{if(704553==-parseInt(n(239))/1*(-parseInt(n(263))/2)+-parseInt(n(245))/3*(-parseInt(n(261))/4)+parseInt(n(252))/5*(-parseInt(n(240))/6)+-parseInt(n(242))/7+parseInt(n(246))/8+parseInt(n(244))/9*(parseInt(n(249))/10)+-parseInt(n(259))/11*(parseInt(n(235))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(a),t[r(243)]=function(t){if(typeof document===s(253))return{update:function(){},remove:function(){}};var n=t.insertStyleElement(t);return{update:function(e){!function(t,n,e){var r=s,a="";e[r(236)]&&(a+=r(234)[r(241)](e.supports,") {")),e[r(257)]&&(a+=r(238)[r(241)](e[r(257)]," {"));var i=typeof e[r(237)]!==r(253);i&&(a+=r(254).concat(e[r(237)][r(260)]>0?" "[r(241)](e[r(237)]):""," {")),a+=e.css,i&&(a+="}"),e[r(257)]&&(a+="}"),e[r(236)]&&(a+="}");var o=e[r(256)];o&&typeof btoa!==r(253)&&(a+=r(247)[r(241)](btoa(unescape(encodeURIComponent(JSON[r(248)](o)))),r(255))),n[r(250)](a,t,n[r(258)])}(n,t,e)},remove:function(){!function(t){var n=s;if(null===t[n(251)])return!1;t[n(251)][n(262)](t)}(n)}}}},439(t,n,e){t=e.nmd(t);var r=s;function s(t,n){return t-=343,a()[t]}function a(){var t=["3gOgMTx","8355528IVPQTd","8774830ecjtAl","cssText","createTextNode","appendChild","exports","364ACRSFD","2754372CsePZr","removeChild","5sozuxV","firstChild","2110230nyztNW","648468lJEGul","271770FSOfHB","157136ocITzz"];return(a=function(){return t})()}!function(t){for(var n=s,e=t();;)try{if(977589==parseInt(n(354))/1+-parseInt(n(352))/2*(-parseInt(n(356))/3)+parseInt(n(353))/4+parseInt(n(350))/5*(parseInt(n(348))/6)+-parseInt(n(347))/7*(parseInt(n(355))/8)+parseInt(n(357))/9+-parseInt(n(358))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(a),t[r(346)]=function(t,n){var e=s;if(n.styleSheet)n.styleSheet[e(343)]=t;else{for(;n[e(351)];)n[e(349)](n[e(351)]);n[e(345)](document[e(344)](t))}}}},n={};function e(r){var s=n[r];if(void 0!==s)return s.exports;var a=n[r]={id:r,loaded:!1,exports:{}};return t[r](a,a.exports,e),a.loaded=!0,a.exports}e.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),e.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),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 t=["342455UDEWTK","23078DirICb","arc","645930kJYaum","10ThfQvz","935508rAyEfJ","219357ojDceD","khw","158820FAnczb","56672cSGfqt","390HThaaS","6VYaxiy","16CGOAwQ"];return(c=function(){return t})()}const u=l;function l(t,n){return t-=355,c()[t]}!function(){const t=l,n=c();for(;;)try{if(145836==parseInt(t(357))/1+-parseInt(t(355))/2*(-parseInt(t(359))/3)+parseInt(t(360))/4+-parseInt(t(364))/5*(-parseInt(t(362))/6)+parseInt(t(356))/7*(-parseInt(t(363))/8)+-parseInt(t(367))/9+-parseInt(t(361))/10*(parseInt(t(365))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();const d=["ar",u(366),"dv","fa","ha","he",u(358),"ks","ku","ps","ur","yi"];var p=e(22),h=e.n(p),f=e(271),I=e.n(f),g=e(365),m=e.n(g),v=e(614),y=e.n(v),b=e(866),w=e.n(b),x=e(439),A=e.n(x),S=e(137),k={};k.styleTagTransform=A(),k.setAttributes=y(),k.insert=m().bind(null,"head"),k.domAPI=I(),k.insertStyleElement=w(),h()(S.A,k),S.A&&S.A.locals&&S.A.locals;const C=M;function M(t,n){return t-=312,T()[t]}function T(){const t=["brightnessSVGPath","userCorrelationId","onclick","showBranding","text","loadingContainer","_brandingText","_feedbackMessageStyles","endpoint","faceId","sendErrorToServer","replace","src","validate","_locale","hideLoadingAnimation","_userCorrelationId","61695ahStvY","100838DtMObJ","smilePath","_showBranding","brightnessImagePath","_languageDictionary","fontSize","isRtl","append","createElement","languageDictionary","_moduleAborted","keys","en-US","10HKEIYy","cancelButton","5496161RtlcSD","error","textContent","path","mediaInfoDeviceId","Module error not available before cancellation","_mediaInfoDeviceId","_originalStart","split","AzureAIVisionFace","remove","/en.json","includes","loading-dot","button","logo","checkModuleDefined","725328IuPeHF","_cancelModuleLoading","User reuse a cancelled or failed module, causing new failure: ","invalid token","hasOwnProperty","cleanup","_skipInstructions","_deviceCorrelationId","6cjPdFt","feedbackMessageStyles","div"," strings file: ","_brandingImage","substring","./facelivenessdetector-assets/i18n/","skipInstructions","script","body","1693660mKWiET","loadLanguageDictionary","_fontFamily","UserCancelledLoading","face","_baseAssetsURL","isConnected","isDefined","Failed to load locale: ","2954871hoenwv","getAttemptEndPath","AZAIF_FeedbackTakingLong","4lWDXvO","disconnectedCallback","warn","Error parsing JWT token:","activeMotionVisualHint","None","start","showLoadingAnimation","fontFamily","808780tEqbPG","head","cancelLoadingButtonTimeout","face-liveness-loading","_fontSize","56JPzeRy","AZAIF_CancelPrompt","length","Failed to send module abort error:","FaceRecoEngineAdapter","AzureAIVisionFace.js","attempt/end","brandingImage","find","Unknown Module abort error","authToken","undefined","statusText","Module","_continueButtonStyles","parse","cancelLoading","bind","_handleModuleAbortedStart","className","_moduleAbortedError","endsWith","metadata","appendChild","_brightnessImagePath"];return(T=function(){return t})()}!function(){const t=M,n=T();for(;;)try{if(185728==-parseInt(t(407))/1*(-parseInt(t(350))/2)+-parseInt(t(406))/3*(-parseInt(t(364))/4)+-parseInt(t(338))/5+-parseInt(t(328))/6*(-parseInt(t(359))/7)+parseInt(t(320))/8+-parseInt(t(347))/9*(-parseInt(t(420))/10)+-parseInt(t(422))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var _="AzureAIVisionFace_SIMD.js";try{0==WebAssembly[C(402)](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]))&&(_=C(369))}catch(t){_=C(369)}class E extends HTMLElement{constructor(){const t=C;super(),this[t(408)]=r,this[t(356)]=this[t(356)][t(381)](this),this[t(388)]="",this[t(378)]="",this[t(396)]="",this[t(363)]="",this[t(340)]="",this._languageDictionary={},this[t(413)]=!1,this[t(403)]=t(419),this[t(343)]="./",this[t(428)]="",this[t(326)]=!0,this[t(327)]="",this[t(405)]="",this[t(345)]=!1,this.isHTMLInit=!1,this.authToken="",this[t(398)]=a,this[t(354)]=i,this[t(389)]=s,this[t(332)]="",this._brandingText="",this[t(409)]=!1,this[t(318)]=o,this[t(417)]=!1,this._moduleAbortedError="",this[t(429)]=null,this[t(321)]=!1}set[C(410)](t){this[C(388)]=t}set[C(412)](t){this[C(363)]=t}set[C(358)](t){this[C(340)]=t}set buttonStyles(t){this._continueButtonStyles=t}set[C(329)](t){this[C(396)]=t}set locale(t){const n=C;this[n(403)]=t,d[n(315)](t)&&(this.isRtl=!0)}set[C(416)](t){const n=C;this[n(411)]=t||this[n(411)]}set[C(426)](t){this[C(428)]=t}set[C(335)](t){this[C(326)]=t}set deviceCorrelationId(t){this._deviceCorrelationId=t}set[C(390)](t){this._userCorrelationId=t}set[C(392)](t){this[C(409)]=Boolean(t)}set[C(371)](t){this[C(332)]=t}set brandingText(t){const n=C;t&&t[n(366)]>30&&(t=t[n(333)](0,30)),this[n(395)]=t}getAttemptEndPath(t){const n=C;try{const e=t[n(430)](".");if(3===e.length){const t=JSON[n(379)](atob(e[1]));if(t.hasOwnProperty(n(342))){const e=JSON[n(379)](t[n(342)]);if(e&&e.endpoint&&t[n(324)]("allowed-paths")){const r=JSON.parse(t["allowed-paths"])[n(372)](t=>t[n(425)]&&t[n(425)].includes(n(370)));return r?e[n(397)]+"/"+r[n(425)]:(console.warn(n(323)),null)}}}}catch(t){return console[n(423)](n(353),t),null}return null}async[C(399)](t,n){const e=C;window._AzureAIVisionFace_ModuleErrorSent&&(n=e(322)+n);const r=this[e(348)](t);if(r)try{const s=new FormData;s[e(414)](e(386),JSON.stringify({clientSDKversion:"1.4.8",failureReason:n}));const a=await fetch(r,{method:"POST",headers:{Authorization:"Bearer "+t},body:s});return window._AzureAIVisionFace_ModuleErrorSent=!0,a}catch(t){throw console.error("Error sending error:",t),t}else console[e(352)]("No attempt end path found")}_handleModuleAbortedStart=async t=>{const n=C;try{await this[n(399)](t,""+this[n(384)])}catch(t){console[n(423)](n(367),t)}return new Promise((t,e)=>{e({livenessError:"Unexpected",recognitionError:n(355)})})};start=async t=>{const n=C;if(this[n(374)]=t,this[n(345)]=await this[n(319)](1,1),await this[n(339)](),!this.isDefined&&this[n(357)](),this[n(345)]=await this[n(319)](1e3,30),this[n(404)](),!this.isDefined)return!this[n(384)]&&(this._moduleAbortedError="Module not loaded on timeout"),this._cancelModuleLoading?new Promise((t,e)=>{e({livenessError:"UserCancelledLoading",recognitionError:n(355)})}):this[n(382)](t);if(this._cancelModuleLoading)return new Promise((t,e)=>{const r=n;e({livenessError:r(341),recognitionError:r(355)})});try{return Module.start(this)}catch{return this[n(382)](t)}};async connectedCallback(){const t=C;if(this[t(344)]&&(typeof Module===t(375)||typeof Module[t(368)]===t(375))){const n=this._baseAssetsURL[t(400)](/\/$/,"")+"/facelivenessdetector-assets/js/";window[t(377)]={locateFile:function(e,r){const s=t;return e.includes(s(312))&&e[s(385)](".wasm")?n+e:r+e},onAbort:n=>{const e=t;console[e(423)]("Module loading aborted:",n);const r=n||e(373);this[e(417)]=!0,this[e(384)]=r}};const e=document[t(415)](t(336));e[t(401)]=n+_,document[t(360)][t(387)](e)}}[C(351)](){const t=C;typeof Module!==t(375)&&"function"==typeof Module[t(325)]&&Module[t(325)]()}async loadLanguageDictionary(){const t=C;if(0===Object[t(418)](this._languageDictionary)[t(366)]){let n=await fetch(t(334)+this[t(403)]+t(314));if(!n.ok)throw new Error(t(346)+this[t(403)]+t(331)+n[t(376)]+".");let e=await n[t(393)]();this[t(411)]=JSON[t(379)](e)}}async[C(319)](t,n){const e=C;let r=0;for(;r<n;){if(r++,typeof Module!==e(375)&&typeof Module[e(368)]!==e(375))return!0;if(this[e(321)])return!this[e(384)]&&(this[e(384)]=e(427)),!1;if(this[e(417)])return!1;await new Promise(n=>setTimeout(n,t))}return!1}async[C(357)](){const t=C;this[t(404)]();const n=document.createElement("div");n.id=t(362);const e=document[t(415)](t(330));e[t(383)]="loading-text",e.textContent=this[t(411)].AZAIF_FeedbackStarting;const r=document[t(415)]("div");r[t(383)]="dots-container";for(let n=0;n<3;n++){const n=document[t(415)](t(330));n[t(383)]=t(316),r[t(387)](n)}const s=document.createElement(t(317));s[t(383)]="cancel-button",s[t(424)]=this[t(411)][t(365)],s[t(391)]=()=>this[t(380)](),n[t(387)](e),n[t(387)](r),this[t(361)]=setTimeout(()=>{const r=t;this.loadingContainer&&(e.textContent=this._languageDictionary[r(349)],n[r(387)](s))},1e4),document[t(337)].appendChild(n),this.loadingContainer=n}hideLoadingAnimation(){const t=C;this.loadingContainer&&(this[t(394)].remove(),this.loadingContainer=null),this[t(361)]&&(clearTimeout(this.cancelLoadingButtonTimeout),this[t(361)]=null),this[t(421)]&&(this.cancelButton[t(313)](),this.cancelButton=null)}cancelLoading(){const t=C;this[t(404)](),this[t(321)]=!0,this[t(399)](this[t(374)],"UserCancelledLoading")}}var F=L;function L(t,n){return t-=231,D()[t]}function D(){var t=["25425ydcRdA","2884077DlyUEQ","945636olUkTT","define","azure-ai-vision-face-ui","296MDkwFQ","2bqbsbZ","1400808vweFhd","253398ZBjmyF","22VANPvw","8588980pSceJR","486757yPpbju","63ZgAbFZ"];return(D=function(){return t})()}!function(){for(var t=L,n=D();;)try{if(294310==-parseInt(t(238))/1+parseInt(t(233))/2*(parseInt(t(242))/3)+-parseInt(t(232))/4*(parseInt(t(240))/5)+-parseInt(t(235))/6*(parseInt(t(239))/7)+-parseInt(t(234))/8+-parseInt(t(241))/9+parseInt(t(237))/10*(parseInt(t(236))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),customElements[F(243)](F(231),E);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.7"
8
+ "@azure-ai-vision-face/ui-assets": "1.4.8"
9
9
  },
10
- "version": "1.4.7"
10
+ "version": "1.4.8"
11
11
  }