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

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={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;
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-=359,a()[t]}function a(){var t=["5071ZPRGGF","6541540PIUAec","join","10305272XbQsjE",") {","@media ","596RGJdSR","exports","54984mFjgSo","@layer","30453lRqVON","map","13rIbhGB","106630ABwsnw","concat","undefined","1549827MMPpOs","push","toString","102482LVAyJQ","@supports (","658hlWYhE","length"];return(a=function(){return t})()}!function(t){for(var n=s,e=t();;)try{if(783597==parseInt(n(378))/1*(parseInt(n(362))/2)+-parseInt(n(376))/3*(parseInt(n(372))/4)+-parseInt(n(367))/5+parseInt(n(374))/6*(-parseInt(n(364))/7)+-parseInt(n(369))/8+parseInt(n(359))/9+parseInt(n(379))/10*(parseInt(n(366))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(a),t[r(373)]=function(t){var n=r,e=[];return e[n(361)]=function(){var e=n;return this[e(377)](function(n){var r=e,s="",a=typeof n[5]!==r(381);return n[4]&&(s+="@supports ("[r(380)](n[4],r(370))),n[2]&&(s+=r(371).concat(n[2]," {")),a&&(s+=r(375)[r(380)](n[5].length>0?" ".concat(n[5]):""," {")),s+=t(n),a&&(s+="}"),n[2]&&(s+="}"),n[4]&&(s+="}"),s})[e(368)]("")},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 d=this[u][0];null!=d&&(c[d]=!0)}for(var l=0;l<t[o(365)];l++){var p=[].concat(t[l]);s&&c[p[0]]||(typeof i!==o(381)&&(typeof p[5]===o(381)||(p[1]=o(375)[o(380)](p[5][o(365)]>0?" "[o(380)](p[5]):""," {")[o(380)](p[1],"}")),p[5]=i),r&&(p[2]?(p[1]=o(371).concat(p[2]," {")[o(380)](p[1],"}"),p[2]=r):p[2]=r),a&&(p[4]?(p[1]=o(363)[o(380)](p[4],o(370)).concat(p[1],"}"),p[4]=a):p[4]="".concat(a)),e[o(360)](p))}},e}},431(t){function n(){var t=["3ZcoFFL","9981369jerFeW","78WkHHoY","361634RlIrce","2348080tXpZZC","894456TXbrrL","6943032RhXXhI","2840242XUQywJ","2097816QhPhSW"];return(n=function(){return t})()}function e(t,e){return t-=455,n()[t]}!function(t){for(var n=e,r=t();;)try{if(724811==parseInt(n(459))/1+-parseInt(n(461))/2*(parseInt(n(463))/3)+-parseInt(n(462))/4+parseInt(n(458))/5+-parseInt(n(456))/6*(parseInt(n(457))/7)+parseInt(n(460))/8+parseInt(n(455))/9)break;r.push(r.shift())}catch(t){r.push(r.shift())}}(n),t.exports=function(t){return t[1]}},22(t,n,e){t=e.nmd(t);var r=a;!function(t){for(var n=a,e=t();;)try{if(755585==parseInt(n(422))/1*(-parseInt(n(421))/2)+parseInt(n(426))/3+-parseInt(n(418))/4+-parseInt(n(413))/5*(parseInt(n(419))/6)+-parseInt(n(412))/7+-parseInt(n(434))/8+parseInt(n(428))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(i);var s=[];function a(t,n){return t-=411,i()[t]}function i(){var t=["2wBHnGr","442697gtphNb","length","sourceMap","splice","2190354ElXuLH","css","45017415MHexdh","update","exports","updater","references","base","8213208NPEAzY","supports","6259575JLzptj","6539395MRKZXp","push","domAPI","media","layer","5220064cMTAZR","6mBeddI","concat"];return(i=function(){return t})()}function o(t){for(var n=a,e=-1,r=0;r<s[n(423)];r++)if(s[r].identifier===t){e=r;break}return e}function c(t,n){for(var e=a,r={},i=[],c=0;c<t[e(423)];c++){var d=t[c],l=n[e(433)]?d[0]+n[e(433)]:d[0],p=r[l]||0,h=""[e(420)](l," ")[e(420)](p);r[l]=p+1;var f=o(h),I={css:d[1],media:d[2],sourceMap:d[3],supports:d[4],layer:d[5]};if(-1!==f)s[f].references++,s[f][e(431)](I);else{var m=u(I,n);n.byIndex=c,s[e(425)](c,0,{identifier:h,updater:m,references:1})}i[e(414)](h)}return i}function u(t,n){var e=a,r=n[e(415)](n);return r[e(429)](t),function(n){var s=e;if(n){if(n[s(427)]===t[s(427)]&&n[s(416)]===t.media&&n[s(424)]===t[s(424)]&&n.supports===t[s(411)]&&n[s(417)]===t.layer)return;r.update(t=n)}else r.remove()}}t[r(430)]=function(t,n){var e=c(t=t||[],n=n||{});return function(t){var r=a;t=t||[];for(var i=0;i<e[r(423)];i++){var u=o(e[i]);s[u][r(432)]--}for(var d=c(t,n),l=0;l<e[r(423)];l++){var p=o(e[l]);0===s[p][r(432)]&&(s[p][r(431)](),s.splice(p,1))}e=d}}},365(t,n,e){t=e.nmd(t);var r=a;!function(t){for(var n=a,e=t();;)try{if(576438==-parseInt(n(119))/1+parseInt(n(113))/2*(parseInt(n(118))/3)+parseInt(n(121))/4+-parseInt(n(104))/5*(parseInt(n(111))/6)+-parseInt(n(106))/7+-parseInt(n(109))/8*(parseInt(n(114))/9)+parseInt(n(115))/10*(parseInt(n(108))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(i);var s={};function a(t,n){return t-=104,i()[t]}function i(){var t=["125480aYbPjV","contentDocument","2765336QnbdiH","querySelector","11YjdSuw","376qmnlDN","undefined","258byFJzr","Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.","982482GYOgJk","105507ikinTI","20629030KVQwEZ","exports","head","3bsQgjj","24393KIblpI","appendChild","287376hMiBED"];return(i=function(){return t})()}t[r(116)]=function(t,n){var e=a,r=function(t){var n=a;if(typeof s[t]===n(110)){var e=document[n(107)](t);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e[n(105)][n(117)]}catch(t){e=null}s[t]=e}return s[t]}(t);if(!r)throw new Error(e(112));r[e(120)](n)}},866(t,n,e){t=e.nmd(t);var r=s;function s(t,n){return t-=318,a()[t]}function a(){var t=["22917378eOncAX","4552560CKarpr","style","75572KvkRKZ","3015684qrjhtQ","4RfHZec","102ilwjQO","exports","options","255665gdkXIe","929768OPoMvN","720fpqikx","8612lBNrUL","attributes","createElement","18pxnMdy"];return(a=function(){return t})()}!function(t){for(var n=s,e=t();;)try{if(829593==-parseInt(n(318))/1*(parseInt(n(327))/2)+-parseInt(n(321))/3*(-parseInt(n(332))/4)+-parseInt(n(331))/5*(parseInt(n(328))/6)+-parseInt(n(325))/7*(parseInt(n(333))/8)+-parseInt(n(326))/9+-parseInt(n(323))/10+parseInt(n(322))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(a),t[r(329)]=function(t){var n=s,e=document[n(320)](n(324));return t.setAttributes(e,t[n(319)]),t.insert(e,t[n(330)]),e}},614(t,n,e){function r(t,n){return t-=457,a()[t]}t=e.nmd(t);var s=r;function a(){var t=["24355WfIQpL","2TlmVaS","9173890NXVErN","876406BTTUzn","224vZcneN","nonce","setAttribute","undefined","411633koAGZq","5106141PjwNvh","1428kBqXPj","1938YNIZWp","10003SbaDwZ","10690020uENIPd","exports"];return(a=function(){return t})()}!function(t){for(var n=r,e=t();;)try{if(876816==parseInt(n(461))/1*(-parseInt(n(463))/2)+parseInt(n(469))/3+parseInt(n(470))/4*(parseInt(n(460))/5)+parseInt(n(471))/6*(-parseInt(n(457))/7)+-parseInt(n(464))/8*(parseInt(n(468))/9)+-parseInt(n(462))/10+parseInt(n(458))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(a),t[s(459)]=function(t){var n=r,s=typeof e.nc!==n(467)?e.nc:null;s&&t[n(466)](n(465),s)}},271(t,n,e){function r(){var t=["295582HIBdEB","656255qWYDMk","insertStyleElement","100rERkaz","removeChild","36vbyWiI","stringify","sourceMap","exports","\n/*# sourceMappingURL=data:application/json;base64,","options","114177RGRCIL","layer","16077830xsYROf","10531144ceRaDr","9CVlRKS","length","media","11qSXteE","supports",") {","8576712wzIipF","166614FXaNmT","concat","undefined","parentNode"];return(r=function(){return t})()}t=e.nmd(t);var s=a;function a(t,n){return t-=457,r()[t]}!function(t){for(var n=a,e=t();;)try{if(700790==-parseInt(n(479))/1*(parseInt(n(460))/2)+parseInt(n(475))/3*(parseInt(n(467))/4)+-parseInt(n(465))/5*(parseInt(n(469))/6)+parseInt(n(464))/7+-parseInt(n(478))/8+parseInt(n(459))/9+-parseInt(n(477))/10*(-parseInt(n(482))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(r),t[s(472)]=function(t){var n=a;if(typeof document===n(462))return{update:function(){},remove:function(){}};var e=t[n(466)](t);return{update:function(n){!function(t,n,e){var r=a,s="";e[r(457)]&&(s+="@supports (".concat(e[r(457)],r(458))),e[r(481)]&&(s+="@media "[r(461)](e[r(481)]," {"));var i=typeof e[r(476)]!==r(462);i&&(s+="@layer"[r(461)](e.layer[r(480)]>0?" "[r(461)](e[r(476)]):""," {")),s+=e.css,i&&(s+="}"),e[r(481)]&&(s+="}"),e[r(457)]&&(s+="}");var o=e[r(471)];o&&typeof btoa!==r(462)&&(s+=r(473)[r(461)](btoa(unescape(encodeURIComponent(JSON[r(470)](o))))," */")),n.styleTagTransform(s,t,n[r(474)])}(e,t,n)},remove:function(){!function(t){var n=a;if(null===t[n(463)])return!1;t[n(463)][n(468)](t)}(e)}}}},439(t){function n(){var t=["createTextNode","styleSheet","78qGbDyg","40185VHEPSm","13436001SgCfMR","1845132wsNJnO","firstChild","664ahSvTq","4151khQxQF","18777WJRoJY","cssText","6xOCgES","appendChild","6095880fJCHro","26280dYPUUy","6937885SfepKL"];return(n=function(){return t})()}function e(t,e){return t-=287,n()[t]}!function(t){for(var n=e,r=t();;)try{if(898022==parseInt(n(289))/1*(-parseInt(n(288))/2)+-parseInt(n(291))/3+parseInt(n(299))/4+-parseInt(n(301))/5*(parseInt(n(297))/6)+parseInt(n(294))/7*(-parseInt(n(293))/8)+-parseInt(n(290))/9+parseInt(n(300))/10*(parseInt(n(295))/11))break;r.push(r.shift())}catch(t){r.push(r.shift())}}(n),t.exports=function(t,n){var r=e;if(n[r(287)])n[r(287)][r(296)]=t;else{for(;n[r(292)];)n.removeChild(n[r(292)]);n[r(298)](document[r(302)](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",c=u;function u(t,n){return t-=373,d()[t]}function d(){const t=["264jTkYVd","khw","58461JBhTFi","328276kaNoyP","249867ZmYJSO","640932vpxXRO","arc","2156268ZTMiDR","1460816vWNIMW","59730RBrhFj","5XJJfQH"];return(d=function(){return t})()}!function(){const t=u,n=d();for(;;)try{if(227628==-parseInt(t(381))/1+-parseInt(t(376))/2+-parseInt(t(380))/3+parseInt(t(383))/4*(-parseInt(t(377))/5)+-parseInt(t(374))/6+parseInt(t(375))/7+parseInt(t(378))/8*(parseInt(t(382))/9))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();const l=["ar",c(373),"dv","fa","ha","he",c(379),"ks","ku","ps","ur","yi"];var p=e(22),h=e.n(p),f=e(271),I=e.n(f),m=e(365),g=e.n(m),v=e(614),y=e.n(v),b=e(866),k=e.n(b),w=e(439),S=e.n(w),x=e(137),A={};A.styleTagTransform=S(),A.setAttributes=y(),A.insert=g().bind(null,"head"),A.domAPI=I(),A.insertStyleElement=k(),h()(x.A,A),x.A&&x.A.locals&&x.A.locals;const M=T;function T(t,n){return t-=352,E()[t]}function E(){const t=["703764GUREpY","Failed to load locale: ","_brandingText","/en.json","AzureAIVisionFace.js","undefined","brandingText","_baseAssetsURL","mediaInfoDeviceId","Error sending error:","cancelButton","5149276gXrJPj","includes","observedAttributes","isDefined","_mediaInfoDeviceId","None","AzureAIVisionFace","error","start","isConnected","invalid token","sendErrorToServer","_brandingImage","143AMdDHg","parse","AZAIF_FeedbackStarting","brightnessImagePath","hideLoadingAnimation","POST","onclick","Unexpected","languageDictionary","loading-dot","authToken","script","FaceRecoEngineAdapter","isRtl","1446760YeoqZH","isHTMLInit","_showBranding","length","find","constructor","3084hKZnLs","333psbFdm","stringify","text","fontFamily","createElement","_deviceCorrelationId","getAttemptEndPath","deviceCorrelationId","allowed-paths","_cancelModuleLoading","_continueButtonStyles","attempt/end","face","src","feedbackMessageStyles","className","Module error not available before cancellation","cancelLoadingButtonTimeout","AZAIF_FeedbackTakingLong","buttonStyles","appendChild","endsWith","activeMotionVisualHint","locale","_feedbackMessageStyles","Module not loaded on timeout","_languageDictionary","endpoint","Unknown Module abort error","fontSize","hasOwnProperty","split","showLoadingAnimation","_brightnessImagePath","textContent"," strings file: ","faceId","cleanup","./facelivenessdetector-assets/i18n/","_AzureAIVisionFace_ModuleErrorSent","skipInstructions","2960qWGIZV","loadingContainer","loading-text","checkModuleDefined","74BVvshg","cancel-button","brightnessSVGPath","8325SKzBjy","_userCorrelationId","_handleModuleAbortedStart","remove","bind","Module loading aborted:","button","replace","_moduleAbortedError","_moduleAborted","4qdAjgT","User reuse a cancelled or failed module, causing new failure: ","path","_locale","/facelivenessdetector-assets/js/","_originalStart","AZAIF_CancelPrompt","AzureAIVisionFace_SIMD.js","24159loHQSx","div","UserCancelledLoading","7OSqLpr","No attempt end path found","_attributeToProperty","Failed to send module abort error:","_fontFamily","brandingImage","metadata","userCorrelationId","warn","loadLanguageDictionary","_fontSize","_skipInstructions","110810fpUOBT","statusText"];return(E=function(){return t})()}!function(){const t=T,n=E();for(;;)try{if(263715==parseInt(t(373))/1*(-parseInt(t(370))/2)+parseInt(t(391))/3*(-parseInt(t(383))/4)+-parseInt(t(366))/5*(parseInt(t(452))/6)+-parseInt(t(394))/7*(-parseInt(t(446))/8)+parseInt(t(453))/9*(-parseInt(t(406))/10)+parseInt(t(419))/11+-parseInt(t(408))/12*(-parseInt(t(432))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var _=M(390);try{0==WebAssembly.validate(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]))&&(_=M(412))}catch(t){_=M(412)}class C extends HTMLElement{constructor(){const t=M;super(),this.smilePath=r,this[t(427)]=this[t(427)][t(377)](this),this[t(358)]="",this[t(463)]="",this[t(477)]="",this[t(404)]="",this._fontFamily="",this[t(479)]={},this[t(445)]=!1,this[t(386)]="en-US",this[t(415)]="./",this[t(423)]="",this[t(405)]=!0,this._deviceCorrelationId="",this._userCorrelationId="",this[t(422)]=!1,this[t(447)]=!1,this.authToken="",this[t(361)]=a,this[t(475)]=i,this[t(372)]=s,this[t(431)]="",this[t(410)]="",this[t(448)]=!1,this.logo=o,this[t(382)]=!1,this._moduleAbortedError="",this[t(388)]=null,this._cancelModuleLoading=!1}static[M(396)]={mediainfodeviceid:"mediaInfoDeviceId","media-info-device-id":M(416),locale:M(476),brightnessimagepath:"brightnessImagePath","brightness-image-path":M(435),fontsize:M(354),"font-size":"fontSize",fontfamily:M(456),"font-family":"fontFamily",buttonstyles:M(472),"button-styles":M(472),feedbackmessagestyles:"feedbackMessageStyles","feedback-message-styles":M(467),devicecorrelationid:M(460),"device-correlation-id":M(460),usercorrelationid:"userCorrelationId","user-correlation-id":"userCorrelationId",brandingimage:M(399),"branding-image":M(399),brandingtext:M(414),"branding-text":M(414)};static get[M(421)](){const t=M;return Object.keys(this[t(396)])}attributeChangedCallback(t,n,e){const r=M;if(n===e)return;const s=this[r(451)][r(396)][t];null!=s&&(this[s]=e??"")}set[M(435)](t){this[M(358)]=t}set[M(354)](t){this[M(404)]=t}set[M(456)](t){this[M(398)]=t}set[M(472)](t){this._continueButtonStyles=t}set[M(467)](t){this[M(477)]=t}set[M(476)](t){const n=M;this._locale=t,l.includes(t)&&(this[n(445)]=!0)}set[M(440)](t){const n=M;this._languageDictionary=t||this[n(479)]}set[M(416)](t){this[M(423)]=t}set[M(365)](t){this[M(405)]=t}set[M(460)](t){this[M(458)]=t}set[M(401)](t){this[M(374)]=t}set showBranding(t){this[M(448)]=Boolean(t)}set[M(399)](t){this[M(431)]=t}set brandingText(t){const n=M;t&&t[n(449)]>30&&(t=t.substring(0,30)),this[n(410)]=t}[M(459)](t){const n=M;try{const e=t[n(356)](".");if(3===e[n(449)]){const t=JSON[n(433)](atob(e[1]));if(t[n(355)]("face")){const e=JSON[n(433)](t[n(465)]);if(e&&e[n(352)]&&t.hasOwnProperty(n(461))){const r=JSON.parse(t[n(461)])[n(450)](t=>t[n(385)]&&t.path.includes(n(464)));return r?e.endpoint+"/"+r[n(385)]:(console[n(402)](n(429)),null)}}}}catch(t){return console[n(426)]("Error parsing JWT token:",t),null}return null}async sendErrorToServer(t,n){const e=M;window[e(364)]&&(n=e(384)+n);const r=this[e(459)](t);if(r)try{const s=new FormData;s.append(e(400),JSON[e(454)]({clientSDKversion:"1.5.0",failureReason:n}));const a=await fetch(r,{method:e(437),headers:{Authorization:"Bearer "+t},body:s});return window[e(364)]=!0,a}catch(t){throw console[e(426)](e(417),t),t}else console.warn(e(395))}[M(375)]=async t=>{const n=M;try{await this[n(430)](t,""+this[n(381)])}catch(t){console[n(426)](n(397),t)}return new Promise((t,e)=>{const r=n;e({livenessError:r(439),recognitionError:r(424)})})};start=async t=>{const n=M;if(this[n(442)]=t,this[n(422)]=await this[n(369)](1,1),await this[n(403)](),!this[n(422)]&&this[n(357)](),this[n(422)]=await this[n(369)](1e3,30),this[n(436)](),!this[n(422)])return!this[n(381)]&&(this._moduleAbortedError=n(478)),this[n(462)]?new Promise((t,e)=>{const r=n;e({livenessError:r(393),recognitionError:r(424)})}):this._handleModuleAbortedStart(t);if(this[n(462)])return new Promise((t,e)=>{const r=n;e({livenessError:r(393),recognitionError:r(424)})});try{return Module[n(427)](this)}catch{return this[n(375)](t)}};async connectedCallback(){const t=M;if(this[t(428)]&&(typeof Module===t(413)||typeof Module[t(444)]===t(413))){const n=this[t(415)][t(380)](/\/$/,"")+t(387);window.Module={locateFile:function(e,r){const s=t;return e[s(420)](s(425))&&e[s(474)](".wasm")?n+e:r+e},onAbort:n=>{const e=t;console.error(e(378),n);const r=n||e(353);this[e(382)]=!0,this[e(381)]=r}};const e=document[t(457)](t(443));e[t(466)]=n+_,document.head[t(473)](e)}}disconnectedCallback(){"undefined"!=typeof Module&&"function"==typeof Module[M(362)]&&Module.cleanup()}async loadLanguageDictionary(){const t=M;if(0===Object.keys(this._languageDictionary)[t(449)]){let n=await fetch(t(363)+this[t(386)]+t(411));if(!n.ok)throw new Error(t(409)+this[t(386)]+t(360)+n[t(407)]+".");let e=await n[t(455)]();this[t(479)]=JSON[t(433)](e)}}async checkModuleDefined(t,n){const e=M;let r=0;for(;r<n;){if(r++,typeof Module!==e(413)&&typeof Module[e(444)]!==e(413))return!0;if(this[e(462)])return!this[e(381)]&&(this._moduleAbortedError=e(469)),!1;if(this[e(382)])return!1;await new Promise(n=>setTimeout(n,t))}return!1}async[M(357)](){const t=M;this.hideLoadingAnimation();const n=document[t(457)]("div");n.id="face-liveness-loading";const e=document[t(457)]("div");e[t(468)]=t(368),e[t(359)]=this[t(479)][t(434)];const r=document[t(457)](t(392));r[t(468)]="dots-container";for(let n=0;n<3;n++){const n=document.createElement(t(392));n[t(468)]=t(441),r[t(473)](n)}const s=document[t(457)](t(379));s.className=t(371),s[t(359)]=this[t(479)][t(389)],s[t(438)]=()=>this.cancelLoading(),n[t(473)](e),n.appendChild(r),this[t(470)]=setTimeout(()=>{const r=t;this[r(367)]&&(e[r(359)]=this[r(479)][r(471)],n[r(473)](s))},1e4),document.body.appendChild(n),this.loadingContainer=n}hideLoadingAnimation(){const t=M;this[t(367)]&&(this[t(367)][t(376)](),this[t(367)]=null),this[t(470)]&&(clearTimeout(this[t(470)]),this.cancelLoadingButtonTimeout=null),this[t(418)]&&(this[t(418)][t(376)](),this.cancelButton=null)}cancelLoading(){const t=M;this[t(436)](),this[t(462)]=!0,this[t(430)](this[t(442)],t(393))}}function F(){var t=["define","841404nulAmi","9888nVSyXM","908850gvODZg","5528628trHJzT","5037072DWmfMO","46744AlvDYx","625hwtdlT","912564nnngYh"];return(F=function(){return t})()}var L=O;function O(t,n){return t-=128,F()[t]}!function(){for(var t=O,n=F();;)try{if(499718==parseInt(t(135))/1+-parseInt(t(131))/2+parseInt(t(128))/3+-parseInt(t(136))/4*(parseInt(t(132))/5)+-parseInt(t(133))/6+-parseInt(t(129))/7+parseInt(t(130))/8)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),customElements[L(134)]("azure-ai-vision-face-ui",C);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.8"
8
+ "@azure-ai-vision-face/ui-assets": "1.5.0"
9
9
  },
10
- "version": "1.4.8"
10
+ "version": "1.5.0"
11
11
  }
@@ -138,6 +138,8 @@ export class FaceLivenessDetector extends HTMLElement {
138
138
  * The default locale en.
139
139
  * Supported locales are en, pt, fa.
140
140
  * For other languages use the language property to set the dictionary.
141
+ *
142
+ * Equivalent HTML attribute: `locale`.
141
143
  */
142
144
  locale : string;
143
145
 
@@ -147,33 +149,59 @@ export class FaceLivenessDetector extends HTMLElement {
147
149
  languageDictionary : string;
148
150
 
149
151
  /**
150
- * Set the mediaInfoDeviceId to override the default camera used for face analysis.
151
- *
152
+ * Set the mediaInfoDeviceId to override the default camera used for face analysis.
153
+ *
154
+ *
155
+ * Equivalent HTML attributes (both honored, case-insensitive):
156
+ * `mediainfodeviceid` or `media-info-device-id`. For frameworks that reformat
157
+ * attribute names (React, Vue), prefer the JavaScript property assignment.
152
158
  */
153
159
  mediaInfoDeviceId : string;
154
160
 
155
161
  /**
156
162
  * Customize the default "Increase your screen brightness" image by providing your own image.
163
+ *
164
+ * Equivalent HTML attributes (both honored, case-insensitive):
165
+ * `brightnessimagepath` or `brightness-image-path`. For frameworks that
166
+ * reformat attribute names (React, Vue), prefer the JavaScript property
167
+ * assignment.
157
168
  */
158
169
  brightnessImagePath : string;
159
170
 
160
171
  /**
161
172
  * Customize the default font size for all the text.
173
+ *
174
+ * Equivalent HTML attributes (both honored, case-insensitive):
175
+ * `fontsize` or `font-size`. For frameworks that reformat attribute names
176
+ * (React, Vue), prefer the JavaScript property assignment.
162
177
  */
163
178
  fontSize : string;
164
179
 
165
180
  /**
166
181
  * Customize the default font family for all the text.
182
+ *
183
+ * Equivalent HTML attributes (both honored, case-insensitive):
184
+ * `fontfamily` or `font-family`. For frameworks that reformat attribute names
185
+ * (React, Vue), prefer the JavaScript property assignment.
167
186
  */
168
187
  fontFamily : string;
169
188
 
170
189
  /**
171
190
  * Customize the default CSS styles for buttons.
191
+ *
192
+ * Equivalent HTML attributes (both honored, case-insensitive):
193
+ * `buttonstyles` or `button-styles`. For frameworks that reformat attribute
194
+ * names (React, Vue), prefer the JavaScript property assignment.
172
195
  */
173
196
  buttonStyles : string;
174
197
 
175
198
  /**
176
199
  * Customize the default CSS styles for feedback messages.
200
+ *
201
+ * Equivalent HTML attributes (both honored, case-insensitive):
202
+ * `feedbackmessagestyles` or `feedback-message-styles`. For frameworks that
203
+ * reformat attribute names (React, Vue), prefer the JavaScript property
204
+ * assignment.
177
205
  */
178
206
  feedbackMessageStyles : string;
179
207
 
@@ -184,11 +212,20 @@ export class FaceLivenessDetector extends HTMLElement {
184
212
 
185
213
  /**
186
214
  * DeivceCorrelationId is used to set the device correlation for the session.
215
+ *
216
+ * Equivalent HTML attributes (both honored, case-insensitive):
217
+ * `devicecorrelationid` or `device-correlation-id`. For frameworks that
218
+ * reformat attribute names (React, Vue), prefer the JavaScript property
219
+ * assignment.
187
220
  */
188
221
  deviceCorrelationId : string;
189
222
 
190
223
  /**
191
224
  * UserCorrelationId is used to set the user correlation for the session.
225
+ *
226
+ * Equivalent HTML attributes (both honored, case-insensitive):
227
+ * `usercorrelationid` or `user-correlation-id`. For frameworks that reformat
228
+ * attribute names (React, Vue), prefer the JavaScript property assignment.
192
229
  */
193
230
  userCorrelationId : string;
194
231
 
@@ -201,12 +238,20 @@ export class FaceLivenessDetector extends HTMLElement {
201
238
  /**
202
239
  * Customize the default Microsoft's logo with a different image.
203
240
  * Ensure the image is deployed with the web application.
241
+ *
242
+ * Equivalent HTML attributes (both honored, case-insensitive):
243
+ * `brandingimage` or `branding-image`. For frameworks that reformat attribute
244
+ * names (React, Vue), prefer the JavaScript property assignment.
204
245
  */
205
246
  brandingImage: string;
206
247
 
207
248
  /**
208
249
  * Customize the branding text to override the default "Powered by Microsoft".
209
250
  * Ensure the overridden text is localized for all locales your web application supports.
251
+ *
252
+ * Equivalent HTML attributes (both honored, case-insensitive):
253
+ * `brandingtext` or `branding-text`. For frameworks that reformat attribute
254
+ * names (React, Vue), prefer the JavaScript property assignment.
210
255
  */
211
256
  brandingText: string;
212
257
  }