@fingerprintjs/fingerprintjs-pro
Advanced tools
Comparing version 3.2.0 to 3.2.1
/** | ||
* FingerprintJS Pro v3.2.0 - Copyright (c) FingerprintJS, Inc, 2020 (https://fingerprintjs.com) | ||
* FingerprintJS Pro v3.2.1 - Copyright (c) FingerprintJS, Inc, 2020 (https://fingerprintjs.com) | ||
* | ||
@@ -8,2 +8,2 @@ * This software contains code from open-source projects: | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("@fingerprintjs/fingerprintjs"),n=document;function r(e,t){return new Promise((function(n){return setTimeout((function(){return n(t)}),e)}))}function i(e,t){return new Promise((function(r){var i=function(){return n.hidden?s():a()},o=function(e,t,n){var r,i=!1,o=e,a=0,s=function(){i||void 0!==r||(a=Date.now(),r=setTimeout((function(){i=!0,n()}),o))};return t&&s(),{start:s,stop:function(){i||void 0===r||(clearTimeout(r),r=void 0,o-=Date.now()-a)}}}(e,!n.hidden,(function(){n.removeEventListener("visibilitychange",i),r(t)})),a=o.start,s=o.stop;n.addEventListener("visibilitychange",i)}))}function o(t,n){return e.__awaiter(this,void 0,void 0,(function(){var r;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,t()];case 1:return[2,e.sent()];case 2:return r=e.sent(),console.error(r),[2,n];case 3:return[2]}}))}))}function a(e,t){for(var n="",r=0;r<e;r++)n+=t.charAt(Math.random()*t.length);return n}function s(e){return a(e,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function u(){return[8,4,4,4,12].map((function(e){return a(e,"0123456789abcdef")})).join("-")}function l(t){return function(n){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];for(var a=function(t){t&&o((function(){return t.apply(void 0,e.__spreadArrays([n],r))}))},s=0,u=t;s<u.length;s++){var l=u[s];a(l)}}}var c=window;function d(t,n){var r;return void 0===n&&(n=!1),e.__assign({name:t.name,message:t.message,stack:n?null===(r=t.stack)||void 0===r?void 0:r.split("\n"):t.stack},t)}function v(){try{return c.self!==c.top}catch(e){return!0}}function f(e){switch(e){case 0:return"Loading has started";case 1:return"Loading has succeeded";case 2:return"Loading has failed";case 3:return"Getting visitor identifier has started";case 4:return"Getting visitor identifier has succeeded";case 5:return"Getting visitor identifier has failed";case 6:return"TLS request has started";case 7:return"TLS request has succeeded";case 8:return"TLS request has failed";case 9:return"Getting fingerprint has started";case 10:return"Getting fingerprint has succeeded";case 11:return"Getting fingerprint has failed";case 12:return"Visitor identifier request has started";case 13:return"Visitor identifier request has succeeded";case 14:return"Visitor identifier request has failed"}}function g(t,n,r,i,a){return e.__awaiter(this,void 0,void 0,(function(){var s,u,l;return e.__generator(this,(function(c){switch(c.label){case 0:(u=function(n){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];t&&o((function(){var i=n.apply(void 0,r);if(i){var o=i[0],a=i.slice(1);t.apply(void 0,e.__spreadArrays([o],a))}}))})(n),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,a()];case 2:return s=c.sent(),[3,4];case 3:throw l=c.sent(),u(i,l),l;case 4:return u(r,s),[2,s]}}))}))}function _(){var e=window,t=e.__fpjs_pvid;return e.__fpjs_pvid="string"==typeof t?t:s(10)}function p(e,t,n){return-1!==e.indexOf(t)}var m=[0,1,2];function h(e){return void 0===e&&(e="[FingerprintJS Pro] "),function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(p([2,5,8,11,14],t))console.error(w(e,t,n));else if(p([10],t)){var i=w(e,t,n),o=n[2],a=Object.keys(o).some((function(e){return o[e].error}));a?console.warn(i):console.log(i)}else console.log(w(e,t,n))}}function w(e,t,n){void 0===n&&(n=[]);var r=""+e+(new Date).toISOString()+": "+f(t);return n.length&&(r+="\n```\n"+(n.map((function(e){return JSON.stringify(e,(function(e,t){return t instanceof Error?d(t,!0):t}),2)})).join("\n")+"\n```")),r}var b=navigator;function E(e){var t=e.url,n=e.method,r=void 0===n?"get":n,i=e.body,o=e.headers,a=e.withCredentials,s=void 0!==a&&a,u=e.timeout;return new Promise((function(e,n){var a=new XMLHttpRequest;for(var l in a.open(r,t,!0),a.withCredentials=s,a.timeout=void 0===u?0:Math.max(u,1),o)a.setRequestHeader(l,o[l]);a.onload=function(){return e(function(e){return{text:e.responseText,status:e.status,statusText:e.statusText}}(a))},a.ontimeout=function(){return n(y("TimeoutError","The request timed out"))},a.onabort=function(){return n(y("AbortError","The request is aborted"))},a.onerror=function(){return n(y("TypeError","Connection error"))},a.send(i)}))}function y(e,t){var n=new Error(t);return n.name=e,n}function R(e){var t=e.url,n=e.body;if(b.sendBeacon)return b.sendBeacon(t,n);var r=new XMLHttpRequest;r.open("POST",t,!function(){var e,t=null===(e=c.event)||void 0===e?void 0:e.type;return"pagehide"===t||"unload"===t}()),n instanceof Blob&&r.setRequestHeader("Content-Type",n.type);try{r.send(n)}catch(i){return!1}return!0}var T=document;var k=window,I=document,S=performance,O=function(){function e(e){var t=this;this.onReportReady=e,this.isUnloaded=!1,this.pageStartTimestamp=function(){var e,t;if(S.timeOrigin){var n=null===(t=null===(e=S.getEntriesByType)||void 0===e?void 0:e.call(S,"navigation"))||void 0===t?void 0:t[0];if(n)return S.timeOrigin+(n.responseStart||n.unloadEventEnd)}return S.timing.domLoading||S.timing.responseStart||S.timing.unloadEventEnd}(),this.events={},this.addEvent=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i={time:new Date,type:"agentEvent",name:e,args:n};if(0!==e&&3!==e||(i.isPageVisible=N(),i.isFullscreen=A()),t.storeAgentEvent(i),p([2],e)){var o=n[0];t.submitReport(o,void 0)}else if(p([4,5],e)){o=n[0];var a=n[1];t.submitReport(o,a)}},this.handleVisibilityChange=function(){t.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:N()})},this.handleFullscreenChange=function(){t.storeEnvironmentEvent({time:new Date,type:"fullscreenToggle",isFullscreen:A()})},this.handlePageUnload=function(){t.storeEnvironmentEvent({time:new Date,type:"pageUnload"});for(var e=0,n=Object.keys(t.events);e<n.length;e++){var r=n[e],i=t.events[r];if(0===Object.keys(i.getCalls).length)t.submitReport(r,void 0);else for(var o=0,a=Object.keys(i.getCalls);o<a.length;o++){var s=a[o];x(i.getCalls[s])||t.submitReport(r,s)}}t.isUnloaded=!0},I.addEventListener("visibilitychange",this.handleVisibilityChange),I.addEventListener("pageshow",(function(){return t.handlePageTransition(!0)})),I.addEventListener("pagehide",(function(){return t.handlePageTransition(!1)})),function(e,t){for(var n=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],r=0,i=n;r<i.length;r++){var o=i[r];T.addEventListener(o,e,t)}}(this.handleFullscreenChange),k.addEventListener("unload",this.handlePageUnload)}return e.prototype.handlePageTransition=function(e){this.storeEnvironmentEvent({time:new Date,type:"pageTransition",isShown:e})},e.prototype.storeAgentEvent=function(e){var t=e.args[0];if(this.events[t]||(this.events[t]={loadEvents:[],getCalls:{}}),p(m,e.name,e.args))this.events[t].loadEvents.push(e);else{var n=e.args[1];this.events[t].getCalls[n]||(this.events[t].getCalls[n]=[]),this.events[t].getCalls[n].push(e)}},e.prototype.storeEnvironmentEvent=function(e){for(var t=0,n=Object.keys(this.events);t<n.length;t++){var r=n[t],i=this.events[r];i.loadEvents.some((function(e){return"agentEvent"===e.type&&(1===e.name||2===e.name)}))||i.loadEvents.push(e);for(var o=0,a=Object.keys(i.getCalls);o<a.length;o++){var s=a[o],u=i.getCalls[s];x(u)||u.push(e)}}},e.prototype.submitReport=function(e,t){if(!this.isUnloaded){var n=function(e,t){for(var n,r,i,o,a,s,u,l,c,d,f,g,p,m,h,w,b,E,y,R,T,k,I,S,O,x,N,A,L,P,F,j,D,M,U=function(e){for(var t={},n={},r=0,i=e;r<i.length;r++){var o=i[r];"agentEvent"===o.type?t[o.name]=o:n[o.type]=o}return{agentEventMap:t,otherEventMap:n}}(e),V=U.agentEventMap,G=U.otherEventMap,K=null!==(r=null===(n=G.pageUnload)||void 0===n?void 0:n.time)&&void 0!==r?r:new Date,B="null",J=0,W=[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]];J<W.length;J++){var H=W[J],X=H[0],z=H[1];if(V[X]){B=z;break}}return{time:null!==(l=null!==(s=null!==(o=null===(i=V[4])||void 0===i?void 0:i.time)&&void 0!==o?o:null===(a=V[5])||void 0===a?void 0:a.time)&&void 0!==s?s:null===(u=V[2])||void 0===u?void 0:u.time)&&void 0!==l?l:K,pageUrl:location.href,pageStartTime:new Date(t),isInIframe:v(),agentVersion:null===(c=V[0])||void 0===c?void 0:c.args[1],userAgent:navigator.userAgent,pageViewId:_(),agentId:null===(d=V[0])||void 0===d?void 0:d.args[0],getCallId:null===(f=V[3])||void 0===f?void 0:f.args[1],requestId:null===(g=V[12])||void 0===g?void 0:g.args[2],visitorId:null===(p=V[4])||void 0===p?void 0:p.args[2],identificationState:B,load:C(K,null===(m=V[0])||void 0===m?void 0:m.time,null===(h=V[1])||void 0===h?void 0:h.time,null===(w=V[2])||void 0===w?void 0:w.time,null===(b=V[2])||void 0===b?void 0:b.args[1]),get:C(K,null===(E=V[3])||void 0===E?void 0:E.time,null===(y=V[4])||void 0===y?void 0:y.time,null===(R=V[5])||void 0===R?void 0:R.time,null===(T=V[5])||void 0===T?void 0:T.args[2]),tls:C(K,null===(k=V[6])||void 0===k?void 0:k.time,null===(I=V[7])||void 0===I?void 0:I.time,null===(S=V[8])||void 0===S?void 0:S.time,null===(O=V[8])||void 0===O?void 0:O.args[2]),fingerprint:C(K,null===(x=V[9])||void 0===x?void 0:x.time,null===(N=V[10])||void 0===N?void 0:N.time,null===(A=V[11])||void 0===A?void 0:A.time,null===(L=V[11])||void 0===L?void 0:L.args[2]),visitorIdRequest:C(K,null===(P=V[12])||void 0===P?void 0:P.time,null===(F=V[13])||void 0===F?void 0:F.time,null===(j=V[14])||void 0===j?void 0:j.time,null===(D=V[14])||void 0===D?void 0:D.args[2]),failedFingerprintComponents:q(null===(M=V[10])||void 0===M?void 0:M.args[2]),events:e}}(function(e,t,n){var r,i=[];e[t]&&(i.push.apply(i,e[t].loadEvents),void 0!==n&&i.push.apply(i,null!==(r=e[t].getCalls[n])&&void 0!==r?r:[]));return i}(this.events,e,t),this.pageStartTimestamp);try{this.onReportReady(n)}catch(r){console.error(r)}}},e}();function x(e){return e.some((function(e){return"agentEvent"===e.type&&(4===e.name||5===e.name)}))}function C(e,t,n,r,i){if(void 0!==t)return void 0!==n?{duration:n.getTime()-t.getTime(),state:"success"}:void 0!==r?{duration:r.getTime()-t.getTime(),state:"fail",error:null!=i?i:new Error("unknown")}:{duration:e.getTime()-t.getTime(),state:"incomplete"}}function q(e){return e?Object.keys(e).filter((function(t){return e[t].error})):[]}function N(){return!I.hidden}function A(){return!!(T.fullscreenElement||T.msFullscreenElement||T.mozFullScreenElement||T.webkitFullscreenElement)}var L={null:{level:"info",message:"Load() wasn't called"},loading:{level:"warning",message:"Load() incomplete"},loadSuccess:{level:"info",message:"Load() succeeded, get() wasn't called"},loadFail:{level:"error",message:"Load() failed"},getting:{level:"warning",message:"Get() incomplete"},getSuccess:{level:"info",message:"Get() succeeded"},getFail:{level:"error",message:"Get() failed"}};function P(t){var n={type:"manual",level:"debug",source:"client",timestamp_ms:t.time.getTime()};switch(t.type){case"pageVisibilityToggle":return e.__assign(e.__assign({},n),{body:{message:"Page becomes "+(t.isVisible?"visible (in foreground)":"invisible (in background)")}});case"pageTransition":return e.__assign(e.__assign({},n),{body:{message:t.isShown?"Page is restored from browser history":"Page is about to go to browser history"}});case"fullscreenToggle":return e.__assign(e.__assign({},n),{body:{message:"Programmatic fullscreen "+(t.isFullscreen?"on":"off")}});case"pageUnload":return e.__assign(e.__assign({},n),{body:{message:"Page is about to unload (terminate)"}})}var r=e.__assign(e.__assign({},n),{level:"info",body:{message:f(t.name),isPageVisible:t.isPageVisible,isFullscreen:t.isFullscreen}});switch(t.name){case 0:case 3:return e.__assign(e.__assign({},r),{body:e.__assign(e.__assign({},r.body),{options:t.args[2]})});case 1:case 9:return r;case 2:return e.__assign(e.__assign({},r),{level:"error",body:e.__assign(e.__assign({},r.body),{error:t.args[1]})});case 4:return e.__assign(e.__assign({},r),{body:e.__assign(e.__assign({},r.body),{result:t.args[3]})});case 7:case 10:return e.__assign(e.__assign({},r),{body:e.__assign(e.__assign({},r.body),{result:t.args[2]})});case 5:case 8:case 11:case 14:return e.__assign(e.__assign({},r),{level:"error",body:e.__assign(e.__assign({},r.body),{error:t.args[2]})});case 6:return e.__assign(e.__assign({},r),{body:e.__assign(e.__assign({},r.body),{endpoint:t.args[2],timeout:t.args[3]})});case 12:return e.__assign(e.__assign({},r),{body:e.__assign(e.__assign({},r.body),{endpoint:t.args[3],request:t.args[4]})});case 13:return e.__assign(e.__assign({},r),{body:e.__assign(e.__assign({},r.body),{status:t.args[2],body:t.args[3].slice(0,4096)})})}}var F={us:"https://api.sjpf.io",eu:"https://tls-eun1.fpapi.io"};function j(e,t){if(t)return t;var n="api.fpjs.io";return"us"!==e&&(n=e+"."+n),"https://"+n}function D(n,r){var i=n.endpoint,o=n.extendedResult,a=e.__rest(n,["endpoint","extendedResult"]);return e.__awaiter(this,void 0,void 0,(function(){var n,u;return e.__generator(this,(function(l){switch(l.label){case 0:return n=s(20),u=function(n){var r,i=n.components,o=n.token,a=n.visitorId,s=n.tag,u=n.ipResolution,l=n.extendedResult,c=n.linkedId,d=n.tls,v=n.tlsError,f=n.requestId,g=Object.keys(i).reduce((function(e,t){return e+i[t].duration}),0),_="full"===u?2:1;return(r={}).rid=f,r.cv="3.2.0",r.c=o,r.url=location.href,r.d=g,r.vid=a[0]||a[1]||void 0,r.ls=a[1]?1:void 0,r.t=function(e){if(e&&"object"==typeof e)return e;if(null==e)return;return{tag:e}}(s),r.i=_,r.cbd=l?1:void 0,r.lid=c,r.cr=document.referrer||void 0,r.j=d,r.je=null==v?void 0:v.message,r.k1=V(i.osCpu),r.k2=V(i.languages),r.k3=V(i.colorDepth),r.k4=V(i.deviceMemory),r.k5=V(i.screenResolution),r.k6=V(i.availableScreenResolution,void 0,[]),r.k7=V(i.hardwareConcurrency),r.k8=V(i.timezoneOffset),r.k9=V(i.timezone),r.k10=G(V(i.sessionStorage)),r.k11=G(V(i.localStorage)),r.k12=G(V(i.indexedDB)),r.k13=G(V(i.openDatabase)),r.k14=V(i.cpuClass),r.k15=V(i.platform),r.k16=V(i.plugins,[]),r.k17=function(n){var r=n.value;if(!r)return;return e.__assign(e.__assign({},r),{data:t.murmurX64Hash128(r.data)})}(i.canvas),r.k18=0,r.k19=V(i.touchSupport),r.k20=V(i.fonts,[]),r.k21=V(i.audio,-4),r.k22=G(V(i.pluginsSupport)),r.k23=V(i.productSub),r.k24=V(i.emptyEvalLength),r.k25=G(V(i.errorFF)),r.k26=G(V(i[0])),r.k27=V(i.vendor),r.k28=G(V(i.chrome)),r.k29=G(V(i[1])),r.k30=G(V(i[2])),r.k31=G(V(i[3],!1)),r.k32=G(V(i.cookiesEnabled,!1)),r.k33=G(V(i[4])),r}(e.__assign({extendedResult:o,requestId:n},a)),[4,M(i,u,r)];case 1:return[2,U(l.sent(),n,o)]}}))}))}function M(t,n,r){var i=r[0],o=r[1],a=r[2];return e.__awaiter(this,void 0,void 0,(function(){var r;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,g(i,(function(){return[12,o,a,n.rid,t,n]}),(function(e){return[13,o,a,e.status,e.text]}),(function(e){return[14,o,a,e]}),(function(){return E({url:t,method:"post",body:JSON.stringify(n),headers:{"Content-Type":"text/plain"},withCredentials:!0})}))];case 1:return[2,e.sent()];case 2:throw r=e.sent(),new Error("AbortError"===r.name?"Network request aborted":"Network connection error");case 3:return[2]}}))}))}function U(t,n,r){return e.__awaiter(this,void 0,void 0,(function(){var i;return e.__generator(this,(function(e){if(404===t.status||t.status>=500)throw new Error(t.statusText);try{i=JSON.parse(t.text)}catch(o){throw new Error(t.text)}if(function(e){return e&&"object"==typeof e&&"string"==typeof e.visitorId&&"n/a"!==e.visitorId}(i))return[2,K(i)];if(function(e){return e&&"object"==typeof e&&"n/a"===e.visitorId}(i)){if("Not available for crawl bots"===i.reason||"Not available when User-Agent is unspecified"===i.reason)return[2,B(i.reason,n,r)];throw new Error(i.reason)}throw new Error(t.text)}))}))}function V(e,t,n){return e.error?t:void 0===e.value?n:e.value}function G(e){return!0===e?1:!1===e?0:e}function K(t){var n=t,r=n.botProbability,i=e.__rest(n,["botProbability"]),o=e.__assign({},i);return r&&(o.bot={probability:r}),o}function B(t,n,r){var i={requestId:n,visitorFound:!1,visitorId:""};if(!r)return i;var o=e.__assign(e.__assign({},i),{bot:{probability:1},incognito:!1,browserName:"n/a",browserVersion:"n/a",device:"n/a",ip:"n/a",ipLocation:{},os:"n/a",osVersion:"n/a"});return"Not available for crawl bots"===t&&(o.bot.safe=!0),o}var J=window,W=document;var H=window;var X=navigator,z=window;function Q(){var e,t,n,r=(null===(e=X.userAgent)||void 0===e?void 0:e.indexOf("Mac OS"))>0&&-1===(null===(t=X.userAgent)||void 0===t?void 0:t.indexOf("iPhone")),i=(null===(n=X.userAgent)||void 0===n?void 0:n.indexOf("CrOS"))>0;return r||i?3221225472:1073741824}function $(){return e.__awaiter(this,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:return"storage"in X&&"estimate"in X.storage?[4,X.storage.estimate()]:[3,2];case 1:return[2,!!(t=e.sent().quota)&&t<Q()];case 2:return[2,!1]}}))}))}var Y=window;function Z(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return t.isDesktopSafari()?[2,ee()]:[2,te()]}))}))}function ee(){if(!Y.safari)return!1;try{Y.safari.pushNotification.requestPermission("https://example.com","private",{},(function(){}))}catch(t){return e=t,!new RegExp([103,101,115,116,117,114,101].map((function(e){return String.fromCharCode(e)})).join("")).test(e)}var e;throw new Error("Unexpected lack of error")}function te(){return e.__awaiter(this,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:(t=document.createElement("iframe")).style.display="none",e.label=1;case 1:return e.trys.push([1,,3,4]),document.body.appendChild(t),[4,Promise.race([r(20,!1),new Promise((function(e){t.contentWindow?t.contentWindow.applicationCache.addEventListener("error",(function(){return e(!0)})):e(!1)}))])];case 2:return[2,e.sent()];case 3:return t.remove(),[7];case 4:return[2]}}))}))}function ne(){try{Y.openDatabase(null,null,null,null)}catch(e){return!0}try{return Y.localStorage.setItem("test","1"),Y.localStorage.removeItem("test"),!1}catch(e){return!0}}var re=[[function(){return t.isChromium()},function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return function(){var e=X.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);if(!e)throw"UserAgent is not Google Chrome";return parseInt(e[2],10)}()>=76?[2,$()]:[2,new Promise((function(e){z.webkitRequestFileSystem(0,1,(function(){return e(!1)}),(function(){return e(!0)}))}))]}))}))}],[function(){return t.isWebKit()},function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return function(){var e=navigator.userAgent.match(/Version\/([0-9._]+).*Safari/);if(!e)throw new Error("UserAgent is not Safari");var t=e[1].split(".").map((function(e){return isNaN(parseInt(e))?0:parseInt(e)})),n=t[0],r=t[1],i=t[2];return{major:n,minor:r,patch:i}}().major<13?[2,ne()]:[2,Z()]}))}))}],[function(){return t.isGecko()},function(){return new Promise((function(e){try{var t=H.indexedDB.open("test");t.onerror=function(){return e(!0)},t.onsuccess=function(){return e(!1)}}catch(n){return e(!0)}}))}],[function(){return t.isTrident()||t.isEdgeHTML()},function(){try{if(!window.indexedDB)return!0}catch(e){return!0}return!1}]];function ie(){return e.__awaiter(this,void 0,void 0,(function(){var t,n,r,i,o;return e.__generator(this,(function(e){switch(e.label){case 0:t=0,n=re,e.label=1;case 1:return t<n.length?(r=n[t],i=r[0],o=r[1],i()?[4,o()]:[3,3]):[3,4];case 2:return[2,e.sent()];case 3:return t++,[3,1];case 4:return[2,!1]}}))}))}function oe(e,t){if(0==t.length||t.length>e.length)return-1;for(var n=0;n<e.length;n++){for(var r=0,i=0;i<t.length;i++){if(e[n+i]!==t[i]){r=0;break}r++}if(r==t.length)return n}return-1}var ae,se=window,ue=document;var le=((ae={})[0]=function(){return void 0!==navigator.webdriver},ae[1]=function(){return e.__awaiter(this,void 0,void 0,(function(){var t,n;return e.__generator(this,(function(e){switch(e.label){case 0:return(t=navigator.permissions)?[4,t.query({name:"notifications"})]:[2,void 0];case 1:return n=e.sent(),"undefined"==typeof Notification?[2,void 0]:[2,"denied"===Notification.permission&&"prompt"===n.state]}}))}))},ae[2]=function(){var e=W.documentElement;return"webdriver"in J||"_Selenium_IDE_Recorder"in J||"callSelenium"in J||"_selenium"in J||"__webdriver_script_fn"in W||"__driver_evaluate"in W||"__webdriver_evaluate"in W||"__selenium_evaluate"in W||"__fxdriver_evaluate"in W||"__driver_unwrapped"in W||"__webdriver_unwrapped"in W||"__selenium_unwrapped"in W||"__fxdriver_unwrapped"in W||"__webdriver_script_func"in W||null!==e.getAttribute("selenium")||null!==e.getAttribute("webdriver")||null!==e.getAttribute("driver")},ae[3]=function(){return e.__awaiter(this,void 0,void 0,(function(){var t,n;return e.__generator(this,(function(e){switch(e.label){case 0:if(void 0!==(t=function(){try{var e=localStorage.getItem("_inc");if(!e)return;return"1"===e}catch(t){return}}()))return[2,t];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,ie()];case 2:return function(e){try{localStorage.setItem("_inc",e?"1":"0")}catch(t){}}(n=e.sent()),[2,n];case 3:return e.sent(),[2,!1];case 4:return[2]}}))}))},ae[4]=function(){if(!t.isChromium())return!1;try{if([66,114,97,118,101].map((function(e){return String.fromCharCode(e)})).join("")in se)return!0;var e=ue.createElement("canvas");e.width=4,e.height=4,e.style.display="inline";var n=e.toDataURL();if(""===n)return!0;for(var r=window.atob(n.split(",")[1]),i=r.length,o=new Uint8Array(i),a=0;a<i;a++)o[a]=r.charCodeAt(a);var s=oe(o,[73,68,65,84,24]);if(-1===s)return!1;var u=oe(o,[73,69,78,68]);return-1!==s&&1321!==o.slice(s+5,u).reduce((function(e,t){return e+t}),0)}catch(l){return!1}},ae);var ce=document,de=location;function ve(e){for(var t=e+"=",n=0,r=ce.cookie.split(";");n<r.length;n++){for(var i=r[n],o=0;" "===i[o]&&o<i.length;)++o;if(i.indexOf(t)===o)return i.slice(o+t.length)}}function fe(e,t,n,r){var i=e+"="+t,o="expires="+new Date(Date.now()+24*n*60*60*1e3).toUTCString(),a=r?"domain="+r:"";ce.cookie=[i,"path=/",o,a].join("; ")}function ge(e,t,n){var r=de.hostname;_e(r,(function(t){!function(e,t){fe(e,"",-1,t)}(e,t)})),_e(r,(function(r){return fe(e,t,n,r),ve(e)!==t}))&&fe(e,t,n)}function _e(e,t){var n=e.length;do{if(n=n>0?e.lastIndexOf(".",n-1):-1,!1===t(e.slice(n+1)))return!1}while(n>=0);return!0}function pe(e){return void 0===e&&(e="_vid"),[ve(e),he(e)]}function me(e,t){void 0===t&&(t="_vid"),ge(t,e,365),function(e,t){var n;try{null===(n=null===localStorage||void 0===localStorage?void 0:localStorage.setItem)||void 0===n||n.call(localStorage,e,t)}catch(r){}}(t,e)}function he(e){var t,n;try{return null!==(n=null===(t=null===localStorage||void 0===localStorage?void 0:localStorage.getItem)||void 0===t?void 0:t.call(localStorage,e))&&void 0!==n?n:void 0}catch(r){}}function we(n,r,o){var a=this,u=o.token,c=o.region,d=void 0===c?"us":c,v=o.endpoint,f=o.tlsEndpoint,_=o.storageKey,p=o.debug;var m=function(t,r,i,o,s,l,c){return e.__awaiter(a,void 0,void 0,(function(){var a,g,p,m;return e.__generator(this,(function(h){switch(h.label){case 0:return[4,Promise.all([w(d,f,o,!!i,c),b(c)])];case 1:return a=h.sent(),g=a[0],p=a[1],[4,D(e.__assign(e.__assign({},g),{token:u,endpoint:j(d,v),components:p,tag:t,visitorId:pe(_),linkedId:r,extendedResult:s,ipResolution:l}),[c[0],n,c[1]])];case 2:return me((m=h.sent()).visitorId,_),[2,m]}}))}))},w=function(t,r,i,o,s){var u=s[0],l=s[1];return e.__awaiter(a,void 0,void 0,(function(){var a;return e.__generator(this,(function(s){return o?[2,void 0]:(a=function(e,t){return t||F[e]}(t,r),[2,g(u,(function(){return[6,n,l,a,i]}),(function(e){return[7,n,l,e]}),(function(e){return[8,n,l,e]}),(function(){return function(t,n){return e.__awaiter(this,void 0,void 0,(function(){var r;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,E({url:t,timeout:n})];case 1:return r=e.sent(),[3,3];case 2:switch(e.sent().name){case"AbortError":throw new Error("Abort");case"TimeoutError":throw new Error("Timeout");default:throw new Error("Connection error")}case 3:if(200===r.status)return[2,r.text];throw new Error(r.text.slice(0,255))}}))}))}(a,i)})).then((function(e){return{tls:e}}),(function(e){return{tlsError:e}}))])}))}))},b=function(i){var o=i[0],s=i[1];return g(o,(function(){return[9,n,s]}),(function(e){return[10,n,s,e]}),(function(e){return[11,n,s,e]}),(function(){return e.__awaiter(a,void 0,void 0,(function(){var n,i;return e.__generator(this,(function(o){switch(o.label){case 0:return[4,r.get()];case 1:return n=o.sent(),[4,t.getComponents(le,void 0,[])];case 2:return i=o.sent(),[2,e.__assign(e.__assign({},n.components),i)]}}))}))}))};return{get:function(e){void 0===e&&(e={});var t=s(8),r=l([p,e.debug&&h()]);return g(r,(function(){return[3,n,t,e]}),(function(e){return[4,n,t,e.visitorId,e]}),(function(e){return[5,n,t,e]}),(function(){var n=e.timeout,o=void 0===n?1e4:n,a=e.tag,s=e.linkedId,u=e.disableTls,l=e.extendedResult,c=e.ipResolution;return Promise.race([i(o).then((function(){throw new Error("Client timeout")})),m(a,s,u,o/2,l,c,[r,t])])}))}}}function be(n){var r=this,i=s(8);return g(n.debug,(function(){return[0,i,"3.2.0",n]}),(function(){return[1,i]}),(function(e){return[2,i,e]}),(function(){return e.__awaiter(r,void 0,void 0,(function(){var r;return e.__generator(this,(function(e){switch(e.label){case 0:if(!n.token||"string"!=typeof n.token)throw new Error("Token required");return[4,t.load({delayFallback:n.delayFallback})];case 1:return r=e.sent(),[2,we(i,r,n)]}}))}))}))}var Ee={load:be,ERROR_CLIENT_TIMEOUT:"Client timeout",ERROR_NETWORK_CONNECTION:"Network connection error",ERROR_NETWORK_ABORT:"Network request aborted",ERROR_TOKEN_MISSING:"Token required",ERROR_TOKEN_INVALID:"Token not found",ERROR_TOKEN_EXPIRED:"Token expired",ERROR_BAD_REQUEST_FORMAT:"Request cannot be parsed",ERROR_GENERAL_SERVER_FAILURE:"Request failed",ERROR_SERVER_TIMEOUT:"Request failed to process",ERROR_RATE_LIMIT:"Too many requests, rate limit exceeded"};exports.ERROR_BAD_REQUEST_FORMAT="Request cannot be parsed",exports.ERROR_CLIENT_TIMEOUT="Client timeout",exports.ERROR_GENERAL_SERVER_FAILURE="Request failed",exports.ERROR_NETWORK_ABORT="Network request aborted",exports.ERROR_NETWORK_CONNECTION="Network connection error",exports.ERROR_RATE_LIMIT="Too many requests, rate limit exceeded",exports.ERROR_SERVER_TIMEOUT="Request failed to process",exports.ERROR_TOKEN_EXPIRED="Token expired",exports.ERROR_TOKEN_INVALID="Token not found",exports.ERROR_TOKEN_MISSING="Token required",exports.default=Ee,exports.load=be,exports.makeConsoleDebugger=h,exports.makeMulticastDebugger=l,exports.makeRemoteDebugger=function(t){var n=this,i=t.clientId,o=t.token,a=t.endpoint,s=void 0===a?"https://api.rollbar.com/api/1/item/":a;return new O((function(t){return e.__awaiter(n,void 0,void 0,(function(){var n,a;return e.__generator(this,(function(l){switch(l.label){case 0:n=JSON.stringify(function(t,n,r){var i,o=L[t.identificationState],a=o.level,s=o.message;return{access_token:r,data:{environment:n,level:a,timestamp:Math.round(t.time.getTime()/1e3),platform:"browser",framework:"FingerprintJS Pro",language:"javascript",uuid:u(),notifier:{name:"FingerprintJS Pro monitoring",version:"3.2.0"},request:{url:t.pageUrl,query_string:(null!==(i=/\?.*$/.exec(t.pageUrl))&&void 0!==i?i:[""])[0],user_ip:"$remote_ip"},client:{javascript:{browser:t.userAgent,code_version:t.agentVersion}},body:{telemetry:e.__spreadArrays([{level:"debug",source:"client",timestamp_ms:t.pageStartTime.getTime(),type:"manual",body:{message:"Page starts"}}],t.events.map(P)),message:{body:s}},custom:{isInIframe:t.isInIframe,pageViewId:t.pageViewId,agentId:t.agentId,getCallId:t.getCallId,requestId:t.requestId,visitorId:t.visitorId,identificationState:t.identificationState,load:t.load,get:t.get,tls:t.tls,fingerprint:t.fingerprint,visitorIdRequest:t.visitorIdRequest,failedFingerprintComponents:t.failedFingerprintComponents.map((function(e){return e+","})).join()||void 0}}}}(t,i,o),(function(e,t){return t instanceof Error?d(t):t})),a=0,l.label=1;case 1:return R({url:s,body:n})?[3,5]:[3,2];case 2:return[4,r(1e3*Math.min(a+a,10))];case 3:l.sent(),l.label=4;case 4:return++a,[3,1];case 5:return[2]}}))}))})).addEvent}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("@fingerprintjs/fingerprintjs"),n=document;function r(e,t){return new Promise((function(n){return setTimeout((function(){return n(t)}),e)}))}function i(e,t){return new Promise((function(r){var i=function(){return n.hidden?s():a()},o=function(e,t,n){var r,i=!1,o=e,a=0,s=function(){i||void 0!==r||(a=Date.now(),r=setTimeout((function(){i=!0,n()}),o))};return t&&s(),{start:s,stop:function(){i||void 0===r||(clearTimeout(r),r=void 0,o-=Date.now()-a)}}}(e,!n.hidden,(function(){n.removeEventListener("visibilitychange",i),r(t)})),a=o.start,s=o.stop;n.addEventListener("visibilitychange",i)}))}function o(t,n){return e.__awaiter(this,void 0,void 0,(function(){var r;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,t()];case 1:return[2,e.sent()];case 2:return r=e.sent(),console.error(r),[2,n];case 3:return[2]}}))}))}function a(e,t){for(var n="",r=0;r<e;r++)n+=t.charAt(Math.random()*t.length);return n}function s(e){return a(e,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function u(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=function(e){e&&o((function(){return e.apply(void 0,t)}))},i=0,a=e;i<a.length;i++){var s=a[i];r(s)}}}var c=window;function l(t,n){var r;return void 0===n&&(n=!1),e.__assign({name:t.name,message:t.message,stack:n?null===(r=t.stack)||void 0===r?void 0:r.split("\n"):t.stack},t)}function d(){try{return c.self!==c.top}catch(e){return!0}}function v(e){switch(e){case 0:return"Loading has started";case 1:return"Loading has succeeded";case 2:return"Loading has failed";case 3:return"Getting visitor identifier has started";case 4:return"Getting visitor identifier has succeeded";case 5:return"Getting visitor identifier has failed";case 6:return"TLS request has started";case 7:return"TLS request has succeeded";case 8:return"TLS request has failed";case 9:return"Getting fingerprint has started";case 10:return"Getting fingerprint has succeeded";case 11:return"Getting fingerprint has failed";case 12:return"Visitor identifier request has started";case 13:return"Visitor identifier request has succeeded";case 14:return"Visitor identifier request has failed"}}function f(e){return void 0===e&&(e="[FingerprintJS Pro] "),function(t){switch(t.e){case 2:case 5:case 8:case 11:case 14:console.error(g(e,t));break;case 10:var n=g(e,t),r=t.result;Object.keys(r).some((function(e){return r[e].error}))?console.warn(n):console.log(n);break;default:console.log(g(e,t))}}}function g(t,n){var r=n.e,i=e.__rest(n,["e"]),o=""+t+(new Date).toISOString()+": "+v(r);return Object.keys(i).length&&(o+="\n```\n"+function(e){return JSON.stringify(e,(function(e,t){return t instanceof Error?l(t,!0):t}),2)}(i)+"\n```"),o}var _=navigator;function p(e){var t=e.url,n=e.method,r=void 0===n?"get":n,i=e.body,o=e.headers,a=e.withCredentials,s=void 0!==a&&a,u=e.timeout;return new Promise((function(e,n){var a=new XMLHttpRequest;for(var c in a.open(r,t,!0),a.withCredentials=s,a.timeout=void 0===u?0:Math.max(u,1),o)a.setRequestHeader(c,o[c]);a.onload=function(){return e(function(e){return{text:e.responseText,status:e.status,statusText:e.statusText}}(a))},a.ontimeout=function(){return n(h("TimeoutError","The request timed out"))},a.onabort=function(){return n(h("AbortError","The request is aborted"))},a.onerror=function(){return n(h("TypeError",_.onLine?"Connection error":"Network offline"))},a.send(i)}))}function h(e,t){var n=new Error(t);return n.name=e,n}function m(e){var t=e.url,n=e.body;if(_.sendBeacon)return _.sendBeacon(t,n);var r=new XMLHttpRequest;r.open("POST",t,!function(){var e,t=null===(e=c.event)||void 0===e?void 0:e.type;return"pagehide"===t||"unload"===t}()),n instanceof Blob&&r.setRequestHeader("Content-Type",n.type);try{r.send(n)}catch(i){return!1}return!0}var w=document,b=navigator;function E(t,n,r,i,a){return e.__awaiter(this,void 0,void 0,(function(){var s,u,c;return e.__generator(this,(function(e){switch(e.label){case 0:(u=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];t&&o((function(){var r=e.apply(void 0,n);r&&t(r)}))})(n),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a()];case 2:return s=e.sent(),[3,4];case 3:throw c=e.sent(),u(i,c),c;case 4:return u(r,s),[2,s]}}))}))}function y(){var e=window,t=e.__fpjs_pvid;return e.__fpjs_pvid="string"==typeof t?t:s(10)}var R=window,k=navigator,I=document,T=performance;var S=function(){function e(e){var t=this;this.onReportReady=e,this.isStopped=!1,this.pageStartTimestamp=function(){var e,t;if(T.timeOrigin){var n=null===(t=null===(e=T.getEntriesByType)||void 0===e?void 0:e.call(T,"navigation"))||void 0===t?void 0:t[0];if(n)return T.timeOrigin+(n.responseStart||n.unloadEventEnd)}return T.timing.domLoading||T.timing.responseStart||T.timing.unloadEventEnd}(),this.events={},this.addEvent=function(e){if(!t.isStopped){var n={time:new Date,type:"agentEvent",event:e};switch(0!==e.e&&3!==e.e||(n.isPageVisible=q(),n.isFullscreen=N(),n.network=L()),t.storeAgentEvent(n),e.e){case 2:t.submitReport(e.agentId,void 0);break;case 4:case 5:t.submitReport(e.agentId,e.getCallId)}}};for(var n=[[I,"visibilitychange",function(){return t.handleVisibilityChange()}],[I,"pageshow",function(){return t.handlePageTransition(!0)}],[I,"pagehide",function(){return t.handlePageTransition(!1)}],[R,"unload",function(){return t.handlePageUnload()}]],r=0,i=n;r<i.length;r++){var o=i[r],a=o[0],s=o[1],u=o[2];a.addEventListener(s,u)}var c=function(e,t){for(var n=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],r=0,i=n;r<i.length;r++){var o=i[r];w.addEventListener(o,e,t)}return function(){for(var r=0,i=n;r<i.length;r++){var o=i[r];w.removeEventListener(o,e,t)}}}((function(){return t.handleFullscreenChange()})),l=function(e){var t=b.connection;if(!t)return addEventListener("online",e),addEventListener("offline",e),function(){removeEventListener("online",e),removeEventListener("offline",e)};var n=!1,r=t.onchange,i=function(t){try{n||e()}finally{null==r||r(t)}};return t.onchange=i,function(){n=!0,t.onchange===i&&(t.onchange=r)}}((function(){return t.handleNetworkConnectionChange()}));this.stop=function(){t.isStopped=!0;for(var e=0,r=n;e<r.length;e++){var i=r[e],o=i[0],a=i[1],s=i[2];o.removeEventListener(a,s)}c(),l()}}return e.prototype.handleVisibilityChange=function(){this.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:q()})},e.prototype.handlePageTransition=function(e){this.storeEnvironmentEvent({time:new Date,type:"pageTransition",isShown:e})},e.prototype.handleFullscreenChange=function(){this.storeEnvironmentEvent({time:new Date,type:"fullscreenToggle",isFullscreen:N()})},e.prototype.handleNetworkConnectionChange=function(){this.storeEnvironmentEvent({time:new Date,type:"networkChange",network:L()})},e.prototype.handlePageUnload=function(){this.storeEnvironmentEvent({time:new Date,type:"pageUnload"});for(var e=0,t=Object.keys(this.events);e<t.length;e++){var n=t[e],r=this.events[n];if(0===Object.keys(r.getCalls).length)this.submitReport(n,void 0);else for(var i=0,o=Object.keys(r.getCalls);i<o.length;i++){var a=o[i];C(r.getCalls[a])||this.submitReport(n,a)}}this.stop()},e.prototype.storeAgentEvent=function(e){var t=e.event,n=t.agentId;switch(this.events[n]||(this.events[n]={loadEvents:[],getCalls:{}}),t.e){case 0:case 1:case 2:this.events[n].loadEvents.push(e);break;default:var r=t.getCallId;this.events[n].getCalls[r]||(this.events[n].getCalls[r]=[]),this.events[n].getCalls[r].push(e)}},e.prototype.storeEnvironmentEvent=function(e){for(var t=0,n=Object.keys(this.events);t<n.length;t++){var r=n[t],i=this.events[r];i.loadEvents.some((function(e){return"agentEvent"===e.type&&(1===e.event.e||2===e.event.e)}))||i.loadEvents.push(e);for(var o=0,a=Object.keys(i.getCalls);o<a.length;o++){var s=a[o],u=i.getCalls[s];C(u)||u.push(e)}}},e.prototype.submitReport=function(e,t){var n=function(e,t){for(var n,r,i,o,a,s,u,c,l,v,f,g,_,p=function(e){for(var t={},n={},r=0,i=e;r<i.length;r++){var o=i[r];"agentEvent"===o.type?t[o.event.e]=o:n[o.type]=o}return{agentEvents:t,otherEvents:n}}(e),h=p.agentEvents,m=p.otherEvents,w=null!==(r=null===(n=m.pageUnload)||void 0===n?void 0:n.time)&&void 0!==r?r:new Date,b="null",E=0,R=[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]];E<R.length;E++){var k=R[E],I=k[0],T=k[1];if(h[I]){b=T;break}}return{time:null!==(c=null!==(s=null!==(o=null===(i=h[4])||void 0===i?void 0:i.time)&&void 0!==o?o:null===(a=h[5])||void 0===a?void 0:a.time)&&void 0!==s?s:null===(u=h[2])||void 0===u?void 0:u.time)&&void 0!==c?c:w,pageUrl:location.href,pageStartTime:new Date(t),isInIframe:d(),agentVersion:null===(l=h[0])||void 0===l?void 0:l.event.version,userAgent:navigator.userAgent,pageViewId:y(),agentId:null===(v=h[0])||void 0===v?void 0:v.event.agentId,getCallId:null===(f=h[3])||void 0===f?void 0:f.event.getCallId,requestId:null===(g=h[12])||void 0===g?void 0:g.event.requestId,visitorId:null===(_=h[4])||void 0===_?void 0:_.event.visitorId,identificationState:b,load:O(w,h[0],h[1],h[2]),get:O(w,h[3],h[4],h[5]),tls:O(w,h[6],h[7],h[8],(function(e){return{responseStatus:e.event.status}})),fingerprint:O(w,h[9],h[10],h[11],(function(e){return{failedComponents:x(e.event.result)}})),visitorIdRequest:O(w,h[12],h[13],h[14],(function(e){return{responseStatus:e.event.status}})),events:e}}(function(e,t,n){var r,i=[];e[t]&&(i.push.apply(i,e[t].loadEvents),void 0!==n&&i.push.apply(i,null!==(r=e[t].getCalls[n])&&void 0!==r?r:[]));return i}(this.events,e,t),this.pageStartTimestamp);try{this.onReportReady(n)}catch(r){console.error(r)}},e}();function C(e){return e.some((function(e){return"agentEvent"===e.type&&(4===e.event.e||5===e.event.e)}))}function O(t,n,r,i,o){if(void 0!==n)return void 0!==r?e.__assign(e.__assign({},null==o?void 0:o(r)),{duration:r.time.getTime()-n.time.getTime(),state:"success"}):void 0!==i?{duration:i.time.getTime()-n.time.getTime(),state:"fail",error:i.event.error}:{duration:t.getTime()-n.time.getTime(),state:"incomplete"}}function x(e){return Object.keys(e).filter((function(t){return e[t].error}))}function q(){return!I.hidden}function N(){return!!(w.fullscreenElement||w.msFullscreenElement||w.mozFullScreenElement||w.webkitFullscreenElement)}function L(){var e,t,n,r,i,o;return{online:navigator.onLine,downlink:null===(e=k.connection)||void 0===e?void 0:e.downlink,downlinkMax:null===(t=k.connection)||void 0===t?void 0:t.downlinkMax,effectiveType:null===(n=k.connection)||void 0===n?void 0:n.effectiveType,roundTrip:null===(r=k.connection)||void 0===r?void 0:r.rtt,saveData:null===(i=k.connection)||void 0===i?void 0:i.saveData,type:null===(o=k.connection)||void 0===o?void 0:o.type}}function A(t,n,r){var i;void 0===r&&(r=[8,4,4,4,12].map((function(e){return a(e,"0123456789abcdef")})).join("-"));var o=P[t.identificationState],s=o.level,u=o.message;return{environment:n,level:s,timestamp:Math.round(t.time.getTime()/1e3),platform:"browser",framework:"FingerprintJS Pro",language:"javascript",uuid:r,notifier:{name:"FingerprintJS Pro monitoring",version:"3.2.1"},request:{url:t.pageUrl,query_string:(null!==(i=/\?.*$/.exec(t.pageUrl))&&void 0!==i?i:[""])[0],user_ip:"$remote_ip"},client:{javascript:{browser:t.userAgent,code_version:t.agentVersion}},body:{telemetry:e.__spreadArrays([{level:"debug",source:"client",timestamp_ms:t.pageStartTime.getTime(),type:"manual",body:{message:"Page starts"}}],t.events.map(D)),message:{body:u}},custom:{isInIframe:t.isInIframe,pageViewId:t.pageViewId,agentId:t.agentId,getCallId:t.getCallId,requestId:t.requestId,visitorId:t.visitorId,identificationState:t.identificationState,load:t.load,get:t.get,tls:t.tls,fingerprint:j(t.fingerprint),visitorIdRequest:t.visitorIdRequest}}}var P={null:{level:"info",message:"Load() wasn't called"},loading:{level:"warning",message:"Load() incomplete"},loadSuccess:{level:"info",message:"Load() succeeded, get() wasn't called"},loadFail:{level:"error",message:"Load() failed"},getting:{level:"warning",message:"Get() incomplete"},getSuccess:{level:"info",message:"Get() succeeded"},getFail:{level:"error",message:"Get() failed"}};function D(t){var n={type:"manual",level:"debug",source:"client",timestamp_ms:t.time.getTime()};switch(t.type){case"pageVisibilityToggle":return e.__assign(e.__assign({},n),{body:{message:"Page becomes "+(t.isVisible?"visible (in foreground)":"invisible (in background)")}});case"pageTransition":return e.__assign(e.__assign({},n),{body:{message:t.isShown?"Page is restored from browser history":"Page is about to go to browser history"}});case"fullscreenToggle":return e.__assign(e.__assign({},n),{body:{message:"Programmatic fullscreen "+(t.isFullscreen?"on":"off")}});case"networkChange":return e.__assign(e.__assign({},n),{body:e.__assign(e.__assign({},t.network),{message:"Network connection changes"})});case"pageUnload":return e.__assign(e.__assign({},n),{body:{message:"Page is about to unload (terminate)"}})}var r=t.event,i=e.__assign(e.__assign({},n),{level:"info",body:{message:v(r.e)}});switch(void 0!==t.isPageVisible&&(i.body.isPageVisible=t.isPageVisible),void 0!==t.isPageVisible&&(i.body.isFullscreen=t.isFullscreen),void 0!==t.isPageVisible&&(i.body.network=t.network),r.e){case 0:case 3:return e.__assign(e.__assign({},i),{body:e.__assign(e.__assign({},i.body),{options:r.options})});case 1:case 9:return i;case 2:case 5:case 8:case 11:case 14:return e.__assign(e.__assign({},i),{level:"error",body:e.__assign(e.__assign({},i.body),{error:r.error})});case 4:case 10:return e.__assign(e.__assign({},i),{body:e.__assign(e.__assign({},i.body),{result:r.result})});case 6:return e.__assign(e.__assign({},i),{body:e.__assign(e.__assign({},i.body),{endpoint:r.endpoint,timeout:r.timeout})});case 7:case 13:return e.__assign(e.__assign({},i),{body:e.__assign(e.__assign({},i.body),{status:r.status,body:r.body.slice(0,4096)})});case 12:return e.__assign(e.__assign({},i),{body:e.__assign(e.__assign({},i.body),{endpoint:r.endpoint,request:r.request})})}}function j(t){return t&&"incomplete"!==t.state&&"fail"!==t.state?e.__assign(e.__assign({},t),{failedComponents:t.failedComponents.length?","+t.failedComponents.map((function(e){return e+","})).join(""):void 0}):t}function V(t,n){return e.__awaiter(this,void 0,void 0,(function(){var i,o;return e.__generator(this,(function(e){switch(e.label){case 0:i=JSON.stringify(n,(function(e,t){return t instanceof Error?l(t):t})),o=0,e.label=1;case 1:return navigator.onLine&&m({url:t,body:i})?[3,5]:[3,2];case 2:return[4,r(1e3*Math.min(o+1,10))];case 3:e.sent(),e.label=4;case 4:return++o,[3,1];case 5:return[2]}}))}))}var F={us:"https://api.sjpf.io",eu:"https://tls-eun1.fpapi.io"};function M(t,n,r){var i=r.output,o=e.__rest(r,["output"]);return e.__awaiter(this,void 0,void 0,(function(){var r;return e.__generator(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,E(i,(function(){return e.__assign(e.__assign({e:6},o),{endpoint:t,timeout:n})}),(function(t){var n=t.status,r=t.text;return e.__assign(e.__assign({e:7},o),{status:n,body:r})}),(function(t){return e.__assign(e.__assign({e:8},o),{error:t})}),(function(){return p({url:t,timeout:n})}))];case 1:return r=a.sent(),[3,3];case 2:switch(a.sent().name){case"AbortError":throw new Error("Abort");case"TimeoutError":throw new Error("Timeout");default:throw new Error("Connection error")}case 3:if(200===r.status)return[2,r.text];throw new Error(r.text.slice(0,255))}}))}))}function U(e,t){if(t)return t;var n="api.fpjs.io";return"us"!==e&&(n=e+"."+n),"https://"+n}function G(n,r){var i=n.endpoint,o=n.extendedResult,a=e.__rest(n,["endpoint","extendedResult"]);return e.__awaiter(this,void 0,void 0,(function(){var n,u;return e.__generator(this,(function(c){switch(c.label){case 0:return n=s(20),u=function(n){var r,i=n.components,o=n.token,a=n.visitorId,s=n.tag,u=n.ipResolution,c=n.extendedResult,l=n.linkedId,d=n.tls,v=n.tlsError,f=n.requestId,g=Object.keys(i).reduce((function(e,t){return e+i[t].duration}),0),_="full"===u?2:1;return(r={}).rid=f,r.cv="3.2.1",r.c=o,r.url=location.href,r.d=g,r.vid=a[0]||a[1]||void 0,r.ls=a[1]?1:void 0,r.t=function(e){if(e&&"object"==typeof e)return e;if(null==e)return;return{tag:e}}(s),r.i=_,r.cbd=c?1:void 0,r.lid=l,r.cr=document.referrer||void 0,r.j=d,r.je=null==v?void 0:v.message,r.k1=J(i.osCpu),r.k2=J(i.languages),r.k3=J(i.colorDepth),r.k4=J(i.deviceMemory),r.k5=J(i.screenResolution),r.k6=J(i.availableScreenResolution,void 0,[]),r.k7=J(i.hardwareConcurrency),r.k8=J(i.timezoneOffset),r.k9=J(i.timezone),r.k10=W(J(i.sessionStorage)),r.k11=W(J(i.localStorage)),r.k12=W(J(i.indexedDB)),r.k13=W(J(i.openDatabase)),r.k14=J(i.cpuClass),r.k15=J(i.platform),r.k16=J(i.plugins,[]),r.k17=function(n){var r=n.value;if(!r)return;return e.__assign(e.__assign({},r),{data:t.murmurX64Hash128(r.data)})}(i.canvas),r.k18=0,r.k19=J(i.touchSupport),r.k20=J(i.fonts,[]),r.k21=J(i.audio,-4),r.k22=W(J(i.pluginsSupport)),r.k23=J(i.productSub),r.k24=J(i.emptyEvalLength),r.k25=W(J(i.errorFF)),r.k26=W(J(i[0])),r.k27=J(i.vendor),r.k28=W(J(i.chrome)),r.k29=W(J(i[1])),r.k30=W(J(i[2])),r.k31=W(J(i[3],!1)),r.k32=W(J(i.cookiesEnabled,!1)),r.k33=W(J(i[4])),r}(e.__assign({extendedResult:o,requestId:n},a)),[4,B(i,u,r)];case 1:return[2,K(c.sent(),n,o)]}}))}))}function B(t,n,r){var i=r.output,o=e.__rest(r,["output"]);return e.__awaiter(this,void 0,void 0,(function(){var r;return e.__generator(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,E(i,(function(){return e.__assign(e.__assign({e:12},o),{requestId:n.rid,endpoint:t,request:n})}),(function(t){var n=t.status,r=t.text;return e.__assign(e.__assign({e:13},o),{status:n,body:r})}),(function(t){return e.__assign(e.__assign({e:14},o),{error:t})}),(function(){return p({url:t,method:"post",body:JSON.stringify(n),headers:{"Content-Type":"text/plain"},withCredentials:!0})}))];case 1:return[2,a.sent()];case 2:throw r=a.sent(),new Error("AbortError"===r.name?"Network request aborted":"Network connection error");case 3:return[2]}}))}))}function K(t,n,r){return e.__awaiter(this,void 0,void 0,(function(){var i;return e.__generator(this,(function(e){if(404===t.status||t.status>=500)throw new Error(t.statusText);try{i=JSON.parse(t.text)}catch(o){throw new Error(t.text)}if(function(e){return e&&"object"==typeof e&&"string"==typeof e.visitorId&&"n/a"!==e.visitorId}(i))return[2,H(i)];if(function(e){return e&&"object"==typeof e&&"n/a"===e.visitorId}(i)){if("Not available for crawl bots"===i.reason||"Not available when User-Agent is unspecified"===i.reason)return[2,X(i.reason,n,r)];throw new Error(i.reason)}throw new Error(t.text)}))}))}function J(e,t,n){return e.error?t:void 0===e.value?n:e.value}function W(e){return!0===e?1:!1===e?0:e}function H(t){var n=t,r=n.botProbability,i=e.__rest(n,["botProbability"]),o=e.__assign({},i);return r&&(o.bot={probability:r}),o}function X(t,n,r){var i={requestId:n,visitorFound:!1,visitorId:""};if(!r)return i;var o=e.__assign(e.__assign({},i),{bot:{probability:1},incognito:!1,browserName:"n/a",browserVersion:"n/a",device:"n/a",ip:"n/a",ipLocation:{},os:"n/a",osVersion:"n/a"});return"Not available for crawl bots"===t&&(o.bot.safe=!0),o}var z=window,Q=document;var $=window;var Y=navigator,Z=window;function ee(){var e,t,n,r=(null===(e=Y.userAgent)||void 0===e?void 0:e.indexOf("Mac OS"))>0&&-1===(null===(t=Y.userAgent)||void 0===t?void 0:t.indexOf("iPhone")),i=(null===(n=Y.userAgent)||void 0===n?void 0:n.indexOf("CrOS"))>0;return r||i?3221225472:1073741824}function te(){return e.__awaiter(this,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:return"storage"in Y&&"estimate"in Y.storage?[4,Y.storage.estimate()]:[3,2];case 1:return[2,!!(t=e.sent().quota)&&t<ee()];case 2:return[2,!1]}}))}))}var ne=window;function re(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return t.isDesktopSafari()?[2,ie()]:[2,oe()]}))}))}function ie(){if(!ne.safari)return!1;try{ne.safari.pushNotification.requestPermission("https://example.com","private",{},(function(){}))}catch(t){return e=t,!new RegExp([103,101,115,116,117,114,101].map((function(e){return String.fromCharCode(e)})).join("")).test(e)}var e;throw new Error("Unexpected lack of error")}function oe(){return e.__awaiter(this,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:(t=document.createElement("iframe")).style.display="none",e.label=1;case 1:return e.trys.push([1,,3,4]),document.body.appendChild(t),[4,Promise.race([r(20,!1),new Promise((function(e){t.contentWindow?t.contentWindow.applicationCache.addEventListener("error",(function(){return e(!0)})):e(!1)}))])];case 2:return[2,e.sent()];case 3:return t.remove(),[7];case 4:return[2]}}))}))}function ae(){try{ne.openDatabase(null,null,null,null)}catch(e){return!0}try{return ne.localStorage.setItem("test","1"),ne.localStorage.removeItem("test"),!1}catch(e){return!0}}var se=[[function(){return t.isChromium()},function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return function(){var e=Y.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);if(!e)throw"UserAgent is not Google Chrome";return parseInt(e[2],10)}()>=76?[2,te()]:[2,new Promise((function(e){Z.webkitRequestFileSystem(0,1,(function(){return e(!1)}),(function(){return e(!0)}))}))]}))}))}],[function(){return t.isWebKit()},function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return function(){var e=navigator.userAgent.match(/Version\/([0-9._]+).*Safari/);if(!e)throw new Error("UserAgent is not Safari");var t=e[1].split(".").map((function(e){return isNaN(parseInt(e))?0:parseInt(e)})),n=t[0],r=t[1],i=t[2];return{major:n,minor:r,patch:i}}().major<13?[2,ae()]:[2,re()]}))}))}],[function(){return t.isGecko()},function(){return new Promise((function(e){try{var t=$.indexedDB.open("test");t.onerror=function(){return e(!0)},t.onsuccess=function(){return e(!1)}}catch(n){return e(!0)}}))}],[function(){return t.isTrident()||t.isEdgeHTML()},function(){try{if(!window.indexedDB)return!0}catch(e){return!0}return!1}]];function ue(){return e.__awaiter(this,void 0,void 0,(function(){var t,n,r,i,o;return e.__generator(this,(function(e){switch(e.label){case 0:t=0,n=se,e.label=1;case 1:return t<n.length?(r=n[t],i=r[0],o=r[1],i()?[4,o()]:[3,3]):[3,4];case 2:return[2,e.sent()];case 3:return t++,[3,1];case 4:return[2,!1]}}))}))}function ce(e,t){if(0==t.length||t.length>e.length)return-1;for(var n=0;n<e.length;n++){for(var r=0,i=0;i<t.length;i++){if(e[n+i]!==t[i]){r=0;break}r++}if(r==t.length)return n}return-1}var le,de=window,ve=document;var fe=((le={})[0]=function(){return void 0!==navigator.webdriver},le[1]=function(){return e.__awaiter(this,void 0,void 0,(function(){var t,n;return e.__generator(this,(function(e){switch(e.label){case 0:return(t=navigator.permissions)?[4,t.query({name:"notifications"})]:[2,void 0];case 1:return n=e.sent(),"undefined"==typeof Notification?[2,void 0]:[2,"denied"===Notification.permission&&"prompt"===n.state]}}))}))},le[2]=function(){var e=Q.documentElement;return"webdriver"in z||"_Selenium_IDE_Recorder"in z||"callSelenium"in z||"_selenium"in z||"__webdriver_script_fn"in Q||"__driver_evaluate"in Q||"__webdriver_evaluate"in Q||"__selenium_evaluate"in Q||"__fxdriver_evaluate"in Q||"__driver_unwrapped"in Q||"__webdriver_unwrapped"in Q||"__selenium_unwrapped"in Q||"__fxdriver_unwrapped"in Q||"__webdriver_script_func"in Q||null!==e.getAttribute("selenium")||null!==e.getAttribute("webdriver")||null!==e.getAttribute("driver")},le[3]=function(){return e.__awaiter(this,void 0,void 0,(function(){var t,n;return e.__generator(this,(function(e){switch(e.label){case 0:if(void 0!==(t=function(){try{var e=localStorage.getItem("_inc");if(!e)return;return"1"===e}catch(t){return}}()))return[2,t];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,ue()];case 2:return function(e){try{localStorage.setItem("_inc",e?"1":"0")}catch(t){}}(n=e.sent()),[2,n];case 3:return e.sent(),[2,!1];case 4:return[2]}}))}))},le[4]=function(){if(!t.isChromium())return!1;try{if([66,114,97,118,101].map((function(e){return String.fromCharCode(e)})).join("")in de)return!0;var e=ve.createElement("canvas");e.width=4,e.height=4,e.style.display="inline";var n=e.toDataURL();if(""===n)return!0;for(var r=window.atob(n.split(",")[1]),i=r.length,o=new Uint8Array(i),a=0;a<i;a++)o[a]=r.charCodeAt(a);var s=ce(o,[73,68,65,84,24]);if(-1===s)return!1;var u=ce(o,[73,69,78,68]);return-1!==s&&1321!==o.slice(s+5,u).reduce((function(e,t){return e+t}),0)}catch(c){return!1}},le);var ge=document,_e=location;function pe(e){for(var t=e+"=",n=0,r=ge.cookie.split(";");n<r.length;n++){for(var i=r[n],o=0;" "===i[o]&&o<i.length;)++o;if(i.indexOf(t)===o)return i.slice(o+t.length)}}function he(e,t,n,r){var i=e+"="+t,o="expires="+new Date(Date.now()+24*n*60*60*1e3).toUTCString(),a=r?"domain="+r:"";ge.cookie=[i,"path=/",o,a].join("; ")}function me(e,t,n){var r=_e.hostname;we(r,(function(t){!function(e,t){he(e,"",-1,t)}(e,t)})),we(r,(function(r){return he(e,t,n,r),pe(e)!==t}))&&he(e,t,n)}function we(e,t){var n=e.length;do{if(n=n>0?e.lastIndexOf(".",n-1):-1,!1===t(e.slice(n+1)))return!1}while(n>=0);return!0}function be(e){return void 0===e&&(e="_vid"),[pe(e),ye(e)]}function Ee(e,t){void 0===t&&(t="_vid"),me(t,e,365),function(e,t){var n;try{null===(n=null===localStorage||void 0===localStorage?void 0:localStorage.setItem)||void 0===n||n.call(localStorage,e,t)}catch(r){}}(t,e)}function ye(e){var t,n;try{return null!==(n=null===(t=null===localStorage||void 0===localStorage?void 0:localStorage.getItem)||void 0===t?void 0:t.call(localStorage,e))&&void 0!==n?n:void 0}catch(r){}}function Re(n,r,o){var a=this,c=o.token,l=o.region,d=void 0===l?"us":l,v=o.endpoint,g=o.tlsEndpoint,_=o.storageKey,p=o.debug;var h=function(t,r,i,o,s,u,l){return e.__awaiter(a,void 0,void 0,(function(){var a,f,p,h;return e.__generator(this,(function(b){switch(b.label){case 0:return[4,Promise.all([m(d,g,o,!!i,l),w(l)])];case 1:return a=b.sent(),f=a[0],p=a[1],[4,G(e.__assign(e.__assign({},f),{token:c,endpoint:U(d,v),components:p,tag:t,visitorId:be(_),linkedId:r,extendedResult:s,ipResolution:u}),e.__assign(e.__assign({},l),{agentId:n}))];case 2:return Ee((h=b.sent()).visitorId,_),[2,h]}}))}))},m=function(t,r,i,o,s){return e.__awaiter(a,void 0,void 0,(function(){return e.__generator(this,(function(a){return o?[2,void 0]:[2,M(function(e,t){return t||F[e]}(t,r),i,e.__assign(e.__assign({},s),{agentId:n})).then((function(e){return{tls:e}}),(function(e){return{tlsError:e}}))]}))}))},w=function(i){var o=i.output,s=i.getCallId;return E(o,(function(){return{e:9,agentId:n,getCallId:s}}),(function(e){return{e:10,agentId:n,getCallId:s,result:e}}),(function(e){return{e:11,agentId:n,getCallId:s,error:e}}),(function(){return e.__awaiter(a,void 0,void 0,(function(){var n,i;return e.__generator(this,(function(o){switch(o.label){case 0:return[4,r.get()];case 1:return n=o.sent(),[4,t.getComponents(fe,void 0,[])];case 2:return i=o.sent(),[2,e.__assign(e.__assign({},n.components),i)]}}))}))}))};return{get:function(e){void 0===e&&(e={});var t=s(8),r=u([p,e.debug&&f()]);return E(r,(function(){return{e:3,agentId:n,getCallId:t,options:e}}),(function(e){return{e:4,agentId:n,getCallId:t,visitorId:e.visitorId,result:e}}),(function(e){return{e:5,agentId:n,getCallId:t,error:e}}),(function(){var n=e.timeout,o=void 0===n?1e4:n,a=e.tag,s=e.linkedId,u=e.disableTls,c=e.extendedResult,l=e.ipResolution;return Promise.race([i(o).then((function(){throw new Error("Client timeout")})),h(a,s,u,o/2,c,l,{output:r,getCallId:t})])}))}}}function ke(n){var r=this,i=s(8);return E(n.debug,(function(){return{e:0,agentId:i,version:"3.2.1",options:n}}),(function(){return{e:1,agentId:i}}),(function(e){return{e:2,agentId:i,error:e}}),(function(){return e.__awaiter(r,void 0,void 0,(function(){var r;return e.__generator(this,(function(e){switch(e.label){case 0:if(!n.token||"string"!=typeof n.token)throw new Error("Token required");return[4,t.load({delayFallback:n.delayFallback})];case 1:return r=e.sent(),[2,Re(i,r,n)]}}))}))}))}var Ie={load:ke,ERROR_CLIENT_TIMEOUT:"Client timeout",ERROR_NETWORK_CONNECTION:"Network connection error",ERROR_NETWORK_ABORT:"Network request aborted",ERROR_TOKEN_MISSING:"Token required",ERROR_TOKEN_INVALID:"Token not found",ERROR_TOKEN_EXPIRED:"Token expired",ERROR_BAD_REQUEST_FORMAT:"Request cannot be parsed",ERROR_GENERAL_SERVER_FAILURE:"Request failed",ERROR_SERVER_TIMEOUT:"Request failed to process",ERROR_RATE_LIMIT:"Too many requests, rate limit exceeded"};exports.ERROR_BAD_REQUEST_FORMAT="Request cannot be parsed",exports.ERROR_CLIENT_TIMEOUT="Client timeout",exports.ERROR_GENERAL_SERVER_FAILURE="Request failed",exports.ERROR_NETWORK_ABORT="Network request aborted",exports.ERROR_NETWORK_CONNECTION="Network connection error",exports.ERROR_RATE_LIMIT="Too many requests, rate limit exceeded",exports.ERROR_SERVER_TIMEOUT="Request failed to process",exports.ERROR_TOKEN_EXPIRED="Token expired",exports.ERROR_TOKEN_INVALID="Token not found",exports.ERROR_TOKEN_MISSING="Token required",exports.default=Ie,exports.load=ke,exports.makeConsoleDebugger=f,exports.makeDebugReportBuilder=function(e){return new S(e).addEvent},exports.makeMulticastDebugger=u,exports.makeRemoteDebugger=function(t){var n=this,r=t.clientId,i=t.token,o=t.endpoint,a=void 0===o?"https://api.rollbar.com/api/1/item/":o;return new S((function(t){return e.__awaiter(n,void 0,void 0,(function(){var n;return e.__generator(this,(function(e){switch(e.label){case 0:return n=function(e,t,n,r){return{access_token:n,data:A(e,t,r)}}(t,r,i),[4,V(a,n)];case 1:return e.sent(),[2]}}))}))})).addEvent}; |
186
dist/fp.d.ts
/** | ||
* FingerprintJS Pro v3.2.0 - Copyright (c) FingerprintJS, Inc, 2020 (https://fingerprintjs.com) | ||
* FingerprintJS Pro v3.2.1 - Copyright (c) FingerprintJS, Inc, 2020 (https://fingerprintjs.com) | ||
* | ||
@@ -33,31 +33,86 @@ * This software contains code from open-source projects: | ||
/** | ||
* Types of extra arguments for the debug events. | ||
* Types of arguments for the debug events. | ||
*/ | ||
interface DebugEventArguments { | ||
[DebugEvent.LoadStart]: [agentId: string, version: string, options: unknown]; | ||
[DebugEvent.LoadSuccess]: [agentId: string]; | ||
[DebugEvent.LoadFail]: [agentId: string, error: Readonly<Error>]; | ||
[DebugEvent.GetStart]: [agentId: string, getCallId: string, options: unknown]; | ||
[DebugEvent.GetSuccess]: [agentId: string, getCallId: string, visitorId: string, result: unknown]; | ||
[DebugEvent.GetFail]: [agentId: string, getCallId: string, error: Readonly<Error>]; | ||
[DebugEvent.TlsStart]: [agentId: string, getCallId: string, endpoint: string, timeout: number]; | ||
[DebugEvent.TlsSuccess]: [agentId: string, getCallId: string, result: string]; | ||
[DebugEvent.TlsFail]: [agentId: string, getCallId: string, error: Readonly<Error>]; | ||
[DebugEvent.FingerprintStart]: [agentId: string, getCallId: string]; | ||
[DebugEvent.FingerprintSuccess]: [agentId: string, getCallId: string, result: Readonly<UnknownComponents>]; | ||
[DebugEvent.FingerprintFail]: [agentId: string, getCallId: string, error: Readonly<Error>]; | ||
[DebugEvent.VisitorIdRequestStart]: [ | ||
agentId: string, | ||
getCallId: string, | ||
requestId: string, | ||
endpoint: string, | ||
request: unknown | ||
]; | ||
[DebugEvent.VisitorIdRequestSuccess]: [agentId: string, getCallId: string, status: number, body: string]; | ||
[DebugEvent.VisitorIdRequestFail]: [agentId: string, getCallId: string, error: Readonly<Error>]; | ||
} | ||
declare type DebugEventArguments = { | ||
e: DebugEvent.LoadStart; | ||
agentId: string; | ||
version: string; | ||
options: unknown; | ||
} | { | ||
e: DebugEvent.LoadSuccess; | ||
agentId: string; | ||
} | { | ||
e: DebugEvent.LoadFail; | ||
agentId: string; | ||
error: Readonly<Error>; | ||
} | { | ||
e: DebugEvent.GetStart; | ||
agentId: string; | ||
getCallId: string; | ||
options: unknown; | ||
} | { | ||
e: DebugEvent.GetSuccess; | ||
agentId: string; | ||
getCallId: string; | ||
visitorId: string; | ||
result: unknown; | ||
} | { | ||
e: DebugEvent.GetFail; | ||
agentId: string; | ||
getCallId: string; | ||
error: Readonly<Error>; | ||
} | { | ||
e: DebugEvent.TlsStart; | ||
agentId: string; | ||
getCallId: string; | ||
endpoint: string; | ||
timeout: number; | ||
} | { | ||
e: DebugEvent.TlsSuccess; | ||
agentId: string; | ||
getCallId: string; | ||
status: number; | ||
body: string; | ||
} | { | ||
e: DebugEvent.TlsFail; | ||
agentId: string; | ||
getCallId: string; | ||
error: Readonly<Error>; | ||
} | { | ||
e: DebugEvent.FingerprintStart; | ||
agentId: string; | ||
getCallId: string; | ||
} | { | ||
e: DebugEvent.FingerprintSuccess; | ||
agentId: string; | ||
getCallId: string; | ||
result: Readonly<UnknownComponents>; | ||
} | { | ||
e: DebugEvent.FingerprintFail; | ||
agentId: string; | ||
getCallId: string; | ||
error: Readonly<Error>; | ||
} | { | ||
e: DebugEvent.VisitorIdRequestStart; | ||
agentId: string; | ||
getCallId: string; | ||
requestId: string; | ||
endpoint: string; | ||
request: unknown; | ||
} | { | ||
e: DebugEvent.VisitorIdRequestSuccess; | ||
agentId: string; | ||
getCallId: string; | ||
status: number; | ||
body: string; | ||
} | { | ||
e: DebugEvent.VisitorIdRequestFail; | ||
agentId: string; | ||
getCallId: string; | ||
error: Readonly<Error>; | ||
}; | ||
/** | ||
* Handles a debug event. It should be called as soon as the event happens. | ||
*/ | ||
declare type DebugOutput = <T extends DebugEvent>(event: T, ...args: DebugEventArguments[T]) => void; | ||
declare type DebugOutput = (event: DebugEventArguments) => void; | ||
@@ -80,2 +135,79 @@ /** | ||
/** | ||
* Macro state of the whole identification process. | ||
* The process is the following: null → loading → loadSuccess/loadFail → getting → gotSuccess/gotFail | ||
*/ | ||
declare type DebugReportState = 'null' | 'loading' | 'loadSuccess' | 'loadFail' | 'getting' | 'getSuccess' | 'getFail'; | ||
declare type DebugReportProcessReport<TSuccessFields = unknown> = { | ||
duration: number; | ||
} & (({ | ||
state: 'success'; | ||
} & TSuccessFields) | { | ||
state: 'incomplete'; | ||
} | { | ||
state: 'fail'; | ||
error: Readonly<Error>; | ||
}); | ||
interface DebugReportNetworkInformation { | ||
online: boolean; | ||
downlink?: number; | ||
downlinkMax?: number; | ||
effectiveType?: 'slow-2g' | '2g' | '3g' | '4g'; | ||
roundTrip?: number; | ||
saveData?: boolean; | ||
type?: 'bluetooth' | 'cellular' | 'ethernet' | 'none' | 'wifi' | 'wimax' | 'other' | 'unknown'; | ||
} | ||
declare type DebugReportEvent = { | ||
time: Date; | ||
} & ({ | ||
type: 'agentEvent'; | ||
event: DebugEventArguments; | ||
isPageVisible?: boolean; | ||
isFullscreen?: boolean; | ||
network?: DebugReportNetworkInformation; | ||
} | { | ||
type: 'pageVisibilityToggle'; | ||
isVisible: boolean; | ||
} | { | ||
type: 'pageTransition'; | ||
isShown: boolean; | ||
} | { | ||
type: 'fullscreenToggle'; | ||
isFullscreen: boolean; | ||
} | { | ||
type: 'networkChange'; | ||
network: DebugReportNetworkInformation; | ||
} | { | ||
type: 'pageUnload'; | ||
}); | ||
interface DebugReport { | ||
time: Date; | ||
pageUrl: string; | ||
pageStartTime: Date; | ||
isInIframe: boolean; | ||
agentVersion: string | undefined; | ||
userAgent: string; | ||
pageViewId: string; | ||
agentId: string | undefined; | ||
getCallId: string | undefined; | ||
requestId: string | undefined; | ||
visitorId: string | undefined; | ||
/** The latest state of the whole identification process */ | ||
identificationState: DebugReportState; | ||
load: DebugReportProcessReport | undefined; | ||
get: DebugReportProcessReport | undefined; | ||
tls: DebugReportProcessReport<{ | ||
responseStatus: number; | ||
}> | undefined; | ||
fingerprint: DebugReportProcessReport<{ | ||
failedComponents: string[]; | ||
}> | undefined; | ||
visitorIdRequest: DebugReportProcessReport<{ | ||
responseStatus: number; | ||
}> | undefined; | ||
/** Timeline of original events that the report is based on */ | ||
events: readonly Readonly<DebugReportEvent>[]; | ||
} | ||
declare function makeDebugReportBuilder(handleReport: (report: DebugReport) => void): DebugOutput; | ||
interface RollbarOptions { | ||
@@ -469,2 +601,2 @@ clientId: string; | ||
export default _default; | ||
export { Agent, BotInformation, ERROR_BAD_REQUEST_FORMAT, ERROR_CLIENT_TIMEOUT, ERROR_GENERAL_SERVER_FAILURE, ERROR_NETWORK_ABORT, ERROR_NETWORK_CONNECTION, ERROR_RATE_LIMIT, ERROR_SERVER_TIMEOUT, ERROR_TOKEN_EXPIRED, ERROR_TOKEN_INVALID, ERROR_TOKEN_MISSING, ExtendedGetResult, FullIpExtendedGetResult, FullIpLocation, GetOptions, GetResult, IPResolution, IpLocation, LoadOptions, Region, load, makeConsoleDebugger, makeMulticastDebugger, makeRollbarDebugger as makeRemoteDebugger }; | ||
export { Agent, BotInformation, ERROR_BAD_REQUEST_FORMAT, ERROR_CLIENT_TIMEOUT, ERROR_GENERAL_SERVER_FAILURE, ERROR_NETWORK_ABORT, ERROR_NETWORK_CONNECTION, ERROR_RATE_LIMIT, ERROR_SERVER_TIMEOUT, ERROR_TOKEN_EXPIRED, ERROR_TOKEN_INVALID, ERROR_TOKEN_MISSING, ExtendedGetResult, FullIpExtendedGetResult, FullIpLocation, GetOptions, GetResult, IPResolution, IpLocation, LoadOptions, Region, load, makeConsoleDebugger, makeDebugReportBuilder, makeMulticastDebugger, makeRollbarDebugger as makeRemoteDebugger }; |
/** | ||
* FingerprintJS Pro v3.2.0 - Copyright (c) FingerprintJS, Inc, 2020 (https://fingerprintjs.com) | ||
* FingerprintJS Pro v3.2.1 - Copyright (c) FingerprintJS, Inc, 2020 (https://fingerprintjs.com) | ||
* | ||
@@ -8,2 +8,2 @@ * This software contains code from open-source projects: | ||
import{__awaiter as e,__generator as t,__spreadArrays as n,__assign as r,__rest as i}from"tslib";import{murmurX64Hash128 as o,isGecko as a,isChromium as u,isWebKit as s,isDesktopSafari as c,isTrident as l,isEdgeHTML as d,getComponents as v,load as f}from"@fingerprintjs/fingerprintjs";var g=document;function m(e,t){return new Promise((function(n){return setTimeout((function(){return n(t)}),e)}))}function h(e,t){return new Promise((function(n){var r=function(){return g.hidden?a():o()},i=function(e,t,n){var r,i=!1,o=e,a=0,u=function(){i||void 0!==r||(a=Date.now(),r=setTimeout((function(){i=!0,n()}),o))};return t&&u(),{start:u,stop:function(){i||void 0===r||(clearTimeout(r),r=void 0,o-=Date.now()-a)}}}(e,!g.hidden,(function(){g.removeEventListener("visibilitychange",r),n(t)})),o=i.start,a=i.stop;g.addEventListener("visibilitychange",r)}))}function p(n,r){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,n()];case 1:return[2,t.sent()];case 2:return e=t.sent(),console.error(e),[2,r];case 3:return[2]}}))}))}function b(e,t){for(var n="",r=0;r<e;r++)n+=t.charAt(Math.random()*t.length);return n}function w(e){return b(e,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function y(){return[8,4,4,4,12].map((function(e){return b(e,"0123456789abcdef")})).join("-")}function E(e){return function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];for(var o=function(e){e&&p((function(){return e.apply(void 0,n([t],r))}))},a=0,u=e;a<u.length;a++){var s=u[a];o(s)}}}var k=window;function R(e,t){var n;return void 0===t&&(t=!1),r({name:e.name,message:e.message,stack:t?null===(n=e.stack)||void 0===n?void 0:n.split("\n"):e.stack},e)}function _(){try{return k.self!==k.top}catch(e){return!0}}function T(e){switch(e){case 0:return"Loading has started";case 1:return"Loading has succeeded";case 2:return"Loading has failed";case 3:return"Getting visitor identifier has started";case 4:return"Getting visitor identifier has succeeded";case 5:return"Getting visitor identifier has failed";case 6:return"TLS request has started";case 7:return"TLS request has succeeded";case 8:return"TLS request has failed";case 9:return"Getting fingerprint has started";case 10:return"Getting fingerprint has succeeded";case 11:return"Getting fingerprint has failed";case 12:return"Visitor identifier request has started";case 13:return"Visitor identifier request has succeeded";case 14:return"Visitor identifier request has failed"}}function S(r,i,o,a,u){return e(this,void 0,void 0,(function(){var e,s,c;return t(this,(function(t){switch(t.label){case 0:(s=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];r&&p((function(){var i=e.apply(void 0,t);if(i){var o=i[0],a=i.slice(1);r.apply(void 0,n([o],a))}}))})(i),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,u()];case 2:return e=t.sent(),[3,4];case 3:throw c=t.sent(),s(a,c),c;case 4:return s(o,e),[2,e]}}))}))}function I(){var e=window,t=e.__fpjs_pvid;return e.__fpjs_pvid="string"==typeof t?t:w(10)}function C(e,t,n){return-1!==e.indexOf(t)}var O=[0,1,2];function q(e){return void 0===e&&(e="[FingerprintJS Pro] "),function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(C([2,5,8,11,14],t))console.error(x(e,t,n));else if(C([10],t)){var i=x(e,t,n),o=n[2],a=Object.keys(o).some((function(e){return o[e].error}));a?console.warn(i):console.log(i)}else console.log(x(e,t,n))}}function x(e,t,n){void 0===n&&(n=[]);var r=""+e+(new Date).toISOString()+": "+T(t);return n.length&&(r+="\n```\n"+(n.map((function(e){return JSON.stringify(e,(function(e,t){return t instanceof Error?R(t,!0):t}),2)})).join("\n")+"\n```")),r}var P=navigator;function N(e){var t=e.url,n=e.method,r=void 0===n?"get":n,i=e.body,o=e.headers,a=e.withCredentials,u=void 0!==a&&a,s=e.timeout;return new Promise((function(e,n){var a=new XMLHttpRequest;for(var c in a.open(r,t,!0),a.withCredentials=u,a.timeout=void 0===s?0:Math.max(s,1),o)a.setRequestHeader(c,o[c]);a.onload=function(){return e(function(e){return{text:e.responseText,status:e.status,statusText:e.statusText}}(a))},a.ontimeout=function(){return n(A("TimeoutError","The request timed out"))},a.onabort=function(){return n(A("AbortError","The request is aborted"))},a.onerror=function(){return n(A("TypeError","Connection error"))},a.send(i)}))}function A(e,t){var n=new Error(t);return n.name=e,n}function j(e){var t=e.url,n=e.body;if(P.sendBeacon)return P.sendBeacon(t,n);var r=new XMLHttpRequest;r.open("POST",t,!function(){var e,t=null===(e=k.event)||void 0===e?void 0:e.type;return"pagehide"===t||"unload"===t}()),n instanceof Blob&&r.setRequestHeader("Content-Type",n.type);try{r.send(n)}catch(i){return!1}return!0}var F=document;var L=window,D=document,V=performance,U=function(){function e(e){var t=this;this.onReportReady=e,this.isUnloaded=!1,this.pageStartTimestamp=function(){var e,t;if(V.timeOrigin){var n=null===(t=null===(e=V.getEntriesByType)||void 0===e?void 0:e.call(V,"navigation"))||void 0===t?void 0:t[0];if(n)return V.timeOrigin+(n.responseStart||n.unloadEventEnd)}return V.timing.domLoading||V.timing.responseStart||V.timing.unloadEventEnd}(),this.events={},this.addEvent=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i={time:new Date,type:"agentEvent",name:e,args:n};if(0!==e&&3!==e||(i.isPageVisible=J(),i.isFullscreen=K()),t.storeAgentEvent(i),C([2],e)){var o=n[0];t.submitReport(o,void 0)}else if(C([4,5],e)){o=n[0];var a=n[1];t.submitReport(o,a)}},this.handleVisibilityChange=function(){t.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:J()})},this.handleFullscreenChange=function(){t.storeEnvironmentEvent({time:new Date,type:"fullscreenToggle",isFullscreen:K()})},this.handlePageUnload=function(){t.storeEnvironmentEvent({time:new Date,type:"pageUnload"});for(var e=0,n=Object.keys(t.events);e<n.length;e++){var r=n[e],i=t.events[r];if(0===Object.keys(i.getCalls).length)t.submitReport(r,void 0);else for(var o=0,a=Object.keys(i.getCalls);o<a.length;o++){var u=a[o];M(i.getCalls[u])||t.submitReport(r,u)}}t.isUnloaded=!0},D.addEventListener("visibilitychange",this.handleVisibilityChange),D.addEventListener("pageshow",(function(){return t.handlePageTransition(!0)})),D.addEventListener("pagehide",(function(){return t.handlePageTransition(!1)})),function(e,t){for(var n=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],r=0,i=n;r<i.length;r++){var o=i[r];F.addEventListener(o,e,t)}}(this.handleFullscreenChange),L.addEventListener("unload",this.handlePageUnload)}return e.prototype.handlePageTransition=function(e){this.storeEnvironmentEvent({time:new Date,type:"pageTransition",isShown:e})},e.prototype.storeAgentEvent=function(e){var t=e.args[0];if(this.events[t]||(this.events[t]={loadEvents:[],getCalls:{}}),C(O,e.name,e.args))this.events[t].loadEvents.push(e);else{var n=e.args[1];this.events[t].getCalls[n]||(this.events[t].getCalls[n]=[]),this.events[t].getCalls[n].push(e)}},e.prototype.storeEnvironmentEvent=function(e){for(var t=0,n=Object.keys(this.events);t<n.length;t++){var r=n[t],i=this.events[r];i.loadEvents.some((function(e){return"agentEvent"===e.type&&(1===e.name||2===e.name)}))||i.loadEvents.push(e);for(var o=0,a=Object.keys(i.getCalls);o<a.length;o++){var u=a[o],s=i.getCalls[u];M(s)||s.push(e)}}},e.prototype.submitReport=function(e,t){if(!this.isUnloaded){var n=function(e,t){for(var n,r,i,o,a,u,s,c,l,d,v,f,g,m,h,p,b,w,y,E,k,R,T,S,C,O,q,x,P,N,A,j,F,L,D=function(e){for(var t={},n={},r=0,i=e;r<i.length;r++){var o=i[r];"agentEvent"===o.type?t[o.name]=o:n[o.type]=o}return{agentEventMap:t,otherEventMap:n}}(e),V=D.agentEventMap,U=D.otherEventMap,M=null!==(r=null===(n=U.pageUnload)||void 0===n?void 0:n.time)&&void 0!==r?r:new Date,J="null",K=0,z=[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]];K<z.length;K++){var H=z[K],W=H[0],X=H[1];if(V[W]){J=X;break}}return{time:null!==(c=null!==(u=null!==(o=null===(i=V[4])||void 0===i?void 0:i.time)&&void 0!==o?o:null===(a=V[5])||void 0===a?void 0:a.time)&&void 0!==u?u:null===(s=V[2])||void 0===s?void 0:s.time)&&void 0!==c?c:M,pageUrl:location.href,pageStartTime:new Date(t),isInIframe:_(),agentVersion:null===(l=V[0])||void 0===l?void 0:l.args[1],userAgent:navigator.userAgent,pageViewId:I(),agentId:null===(d=V[0])||void 0===d?void 0:d.args[0],getCallId:null===(v=V[3])||void 0===v?void 0:v.args[1],requestId:null===(f=V[12])||void 0===f?void 0:f.args[2],visitorId:null===(g=V[4])||void 0===g?void 0:g.args[2],identificationState:J,load:G(M,null===(m=V[0])||void 0===m?void 0:m.time,null===(h=V[1])||void 0===h?void 0:h.time,null===(p=V[2])||void 0===p?void 0:p.time,null===(b=V[2])||void 0===b?void 0:b.args[1]),get:G(M,null===(w=V[3])||void 0===w?void 0:w.time,null===(y=V[4])||void 0===y?void 0:y.time,null===(E=V[5])||void 0===E?void 0:E.time,null===(k=V[5])||void 0===k?void 0:k.args[2]),tls:G(M,null===(R=V[6])||void 0===R?void 0:R.time,null===(T=V[7])||void 0===T?void 0:T.time,null===(S=V[8])||void 0===S?void 0:S.time,null===(C=V[8])||void 0===C?void 0:C.args[2]),fingerprint:G(M,null===(O=V[9])||void 0===O?void 0:O.time,null===(q=V[10])||void 0===q?void 0:q.time,null===(x=V[11])||void 0===x?void 0:x.time,null===(P=V[11])||void 0===P?void 0:P.args[2]),visitorIdRequest:G(M,null===(N=V[12])||void 0===N?void 0:N.time,null===(A=V[13])||void 0===A?void 0:A.time,null===(j=V[14])||void 0===j?void 0:j.time,null===(F=V[14])||void 0===F?void 0:F.args[2]),failedFingerprintComponents:B(null===(L=V[10])||void 0===L?void 0:L.args[2]),events:e}}(function(e,t,n){var r,i=[];e[t]&&(i.push.apply(i,e[t].loadEvents),void 0!==n&&i.push.apply(i,null!==(r=e[t].getCalls[n])&&void 0!==r?r:[]));return i}(this.events,e,t),this.pageStartTimestamp);try{this.onReportReady(n)}catch(r){console.error(r)}}},e}();function M(e){return e.some((function(e){return"agentEvent"===e.type&&(4===e.name||5===e.name)}))}function G(e,t,n,r,i){if(void 0!==t)return void 0!==n?{duration:n.getTime()-t.getTime(),state:"success"}:void 0!==r?{duration:r.getTime()-t.getTime(),state:"fail",error:null!=i?i:new Error("unknown")}:{duration:e.getTime()-t.getTime(),state:"incomplete"}}function B(e){return e?Object.keys(e).filter((function(t){return e[t].error})):[]}function J(){return!D.hidden}function K(){return!!(F.fullscreenElement||F.msFullscreenElement||F.mozFullScreenElement||F.webkitFullscreenElement)}function z(r){var i=this,o=r.clientId,a=r.token,u=r.endpoint,s=void 0===u?"https://api.rollbar.com/api/1/item/":u;return new U((function(r){return e(i,void 0,void 0,(function(){var e,i;return t(this,(function(t){switch(t.label){case 0:e=JSON.stringify(function(e,t,r){var i,o=H[e.identificationState],a=o.level,u=o.message;return{access_token:r,data:{environment:t,level:a,timestamp:Math.round(e.time.getTime()/1e3),platform:"browser",framework:"FingerprintJS Pro",language:"javascript",uuid:y(),notifier:{name:"FingerprintJS Pro monitoring",version:"3.2.0"},request:{url:e.pageUrl,query_string:(null!==(i=/\?.*$/.exec(e.pageUrl))&&void 0!==i?i:[""])[0],user_ip:"$remote_ip"},client:{javascript:{browser:e.userAgent,code_version:e.agentVersion}},body:{telemetry:n([{level:"debug",source:"client",timestamp_ms:e.pageStartTime.getTime(),type:"manual",body:{message:"Page starts"}}],e.events.map(W)),message:{body:u}},custom:{isInIframe:e.isInIframe,pageViewId:e.pageViewId,agentId:e.agentId,getCallId:e.getCallId,requestId:e.requestId,visitorId:e.visitorId,identificationState:e.identificationState,load:e.load,get:e.get,tls:e.tls,fingerprint:e.fingerprint,visitorIdRequest:e.visitorIdRequest,failedFingerprintComponents:e.failedFingerprintComponents.map((function(e){return e+","})).join()||void 0}}}}(r,o,a),(function(e,t){return t instanceof Error?R(t):t})),i=0,t.label=1;case 1:return j({url:s,body:e})?[3,5]:[3,2];case 2:return[4,m(1e3*Math.min(i+i,10))];case 3:t.sent(),t.label=4;case 4:return++i,[3,1];case 5:return[2]}}))}))})).addEvent}var H={null:{level:"info",message:"Load() wasn't called"},loading:{level:"warning",message:"Load() incomplete"},loadSuccess:{level:"info",message:"Load() succeeded, get() wasn't called"},loadFail:{level:"error",message:"Load() failed"},getting:{level:"warning",message:"Get() incomplete"},getSuccess:{level:"info",message:"Get() succeeded"},getFail:{level:"error",message:"Get() failed"}};function W(e){var t={type:"manual",level:"debug",source:"client",timestamp_ms:e.time.getTime()};switch(e.type){case"pageVisibilityToggle":return r(r({},t),{body:{message:"Page becomes "+(e.isVisible?"visible (in foreground)":"invisible (in background)")}});case"pageTransition":return r(r({},t),{body:{message:e.isShown?"Page is restored from browser history":"Page is about to go to browser history"}});case"fullscreenToggle":return r(r({},t),{body:{message:"Programmatic fullscreen "+(e.isFullscreen?"on":"off")}});case"pageUnload":return r(r({},t),{body:{message:"Page is about to unload (terminate)"}})}var n=r(r({},t),{level:"info",body:{message:T(e.name),isPageVisible:e.isPageVisible,isFullscreen:e.isFullscreen}});switch(e.name){case 0:case 3:return r(r({},n),{body:r(r({},n.body),{options:e.args[2]})});case 1:case 9:return n;case 2:return r(r({},n),{level:"error",body:r(r({},n.body),{error:e.args[1]})});case 4:return r(r({},n),{body:r(r({},n.body),{result:e.args[3]})});case 7:case 10:return r(r({},n),{body:r(r({},n.body),{result:e.args[2]})});case 5:case 8:case 11:case 14:return r(r({},n),{level:"error",body:r(r({},n.body),{error:e.args[2]})});case 6:return r(r({},n),{body:r(r({},n.body),{endpoint:e.args[2],timeout:e.args[3]})});case 12:return r(r({},n),{body:r(r({},n.body),{endpoint:e.args[3],request:e.args[4]})});case 13:return r(r({},n),{body:r(r({},n.body),{status:e.args[2],body:e.args[3].slice(0,4096)})})}}var X={us:"https://api.sjpf.io",eu:"https://tls-eun1.fpapi.io"};var Q="Client timeout",$="Network connection error",Y="Network request aborted";function Z(e,t){if(t)return t;var n="api.fpjs.io";return"us"!==e&&(n=e+"."+n),"https://"+n}function ee(n,a){var u=n.endpoint,s=n.extendedResult,c=i(n,["endpoint","extendedResult"]);return e(this,void 0,void 0,(function(){var e,n;return t(this,(function(t){switch(t.label){case 0:return e=w(20),n=function(e){var t,n=e.components,i=e.token,a=e.visitorId,u=e.tag,s=e.ipResolution,c=e.extendedResult,l=e.linkedId,d=e.tls,v=e.tlsError,f=e.requestId,g=Object.keys(n).reduce((function(e,t){return e+n[t].duration}),0),m="full"===s?2:1;return(t={}).rid=f,t.cv="3.2.0",t.c=i,t.url=location.href,t.d=g,t.vid=a[0]||a[1]||void 0,t.ls=a[1]?1:void 0,t.t=function(e){if(e&&"object"==typeof e)return e;if(null==e)return;return{tag:e}}(u),t.i=m,t.cbd=c?1:void 0,t.lid=l,t.cr=document.referrer||void 0,t.j=d,t.je=null==v?void 0:v.message,t.k1=re(n.osCpu),t.k2=re(n.languages),t.k3=re(n.colorDepth),t.k4=re(n.deviceMemory),t.k5=re(n.screenResolution),t.k6=re(n.availableScreenResolution,void 0,[]),t.k7=re(n.hardwareConcurrency),t.k8=re(n.timezoneOffset),t.k9=re(n.timezone),t.k10=ie(re(n.sessionStorage)),t.k11=ie(re(n.localStorage)),t.k12=ie(re(n.indexedDB)),t.k13=ie(re(n.openDatabase)),t.k14=re(n.cpuClass),t.k15=re(n.platform),t.k16=re(n.plugins,[]),t.k17=function(e){var t=e.value;if(!t)return;return r(r({},t),{data:o(t.data)})}(n.canvas),t.k18=0,t.k19=re(n.touchSupport),t.k20=re(n.fonts,[]),t.k21=re(n.audio,-4),t.k22=ie(re(n.pluginsSupport)),t.k23=re(n.productSub),t.k24=re(n.emptyEvalLength),t.k25=ie(re(n.errorFF)),t.k26=ie(re(n[0])),t.k27=re(n.vendor),t.k28=ie(re(n.chrome)),t.k29=ie(re(n[1])),t.k30=ie(re(n[2])),t.k31=ie(re(n[3],!1)),t.k32=ie(re(n.cookiesEnabled,!1)),t.k33=ie(re(n[4])),t}(r({extendedResult:s,requestId:e},c)),[4,te(u,n,a)];case 1:return[2,ne(t.sent(),e,s)]}}))}))}function te(n,r,i){var o=i[0],a=i[1],u=i[2];return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,S(o,(function(){return[12,a,u,r.rid,n,r]}),(function(e){return[13,a,u,e.status,e.text]}),(function(e){return[14,a,u,e]}),(function(){return N({url:n,method:"post",body:JSON.stringify(r),headers:{"Content-Type":"text/plain"},withCredentials:!0})}))];case 1:return[2,t.sent()];case 2:throw e=t.sent(),new Error("AbortError"===e.name?"Network request aborted":"Network connection error");case 3:return[2]}}))}))}function ne(n,r,i){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){if(404===n.status||n.status>=500)throw new Error(n.statusText);try{e=JSON.parse(n.text)}catch(o){throw new Error(n.text)}if(function(e){return e&&"object"==typeof e&&"string"==typeof e.visitorId&&"n/a"!==e.visitorId}(e))return[2,oe(e)];if(function(e){return e&&"object"==typeof e&&"n/a"===e.visitorId}(e)){if("Not available for crawl bots"===e.reason||"Not available when User-Agent is unspecified"===e.reason)return[2,ae(e.reason,r,i)];throw new Error(e.reason)}throw new Error(n.text)}))}))}function re(e,t,n){return e.error?t:void 0===e.value?n:e.value}function ie(e){return!0===e?1:!1===e?0:e}function oe(e){var t=e,n=t.botProbability,o=i(t,["botProbability"]),a=r({},o);return n&&(a.bot={probability:n}),a}function ae(e,t,n){var i={requestId:t,visitorFound:!1,visitorId:""};if(!n)return i;var o=r(r({},i),{bot:{probability:1},incognito:!1,browserName:"n/a",browserVersion:"n/a",device:"n/a",ip:"n/a",ipLocation:{},os:"n/a",osVersion:"n/a"});return"Not available for crawl bots"===e&&(o.bot.safe=!0),o}var ue=window,se=document;var ce=window;var le=navigator,de=window;function ve(){var e,t,n,r=(null===(e=le.userAgent)||void 0===e?void 0:e.indexOf("Mac OS"))>0&&-1===(null===(t=le.userAgent)||void 0===t?void 0:t.indexOf("iPhone")),i=(null===(n=le.userAgent)||void 0===n?void 0:n.indexOf("CrOS"))>0;return r||i?3221225472:1073741824}function fe(){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return"storage"in le&&"estimate"in le.storage?[4,le.storage.estimate()]:[3,2];case 1:return[2,!!(e=t.sent().quota)&&e<ve()];case 2:return[2,!1]}}))}))}var ge=window;function me(){return e(this,void 0,void 0,(function(){return t(this,(function(e){return c()?[2,he()]:[2,pe()]}))}))}function he(){if(!ge.safari)return!1;try{ge.safari.pushNotification.requestPermission("https://example.com","private",{},(function(){}))}catch(t){return e=t,!new RegExp([103,101,115,116,117,114,101].map((function(e){return String.fromCharCode(e)})).join("")).test(e)}var e;throw new Error("Unexpected lack of error")}function pe(){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:(e=document.createElement("iframe")).style.display="none",t.label=1;case 1:return t.trys.push([1,,3,4]),document.body.appendChild(e),[4,Promise.race([m(20,!1),new Promise((function(t){e.contentWindow?e.contentWindow.applicationCache.addEventListener("error",(function(){return t(!0)})):t(!1)}))])];case 2:return[2,t.sent()];case 3:return e.remove(),[7];case 4:return[2]}}))}))}function be(){try{ge.openDatabase(null,null,null,null)}catch(e){return!0}try{return ge.localStorage.setItem("test","1"),ge.localStorage.removeItem("test"),!1}catch(e){return!0}}var we=[[function(){return u()},function(){return e(this,void 0,void 0,(function(){return t(this,(function(e){return function(){var e=le.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);if(!e)throw"UserAgent is not Google Chrome";return parseInt(e[2],10)}()>=76?[2,fe()]:[2,new Promise((function(e){de.webkitRequestFileSystem(0,1,(function(){return e(!1)}),(function(){return e(!0)}))}))]}))}))}],[function(){return s()},function(){return e(this,void 0,void 0,(function(){return t(this,(function(e){return function(){var e=navigator.userAgent.match(/Version\/([0-9._]+).*Safari/);if(!e)throw new Error("UserAgent is not Safari");var t=e[1].split(".").map((function(e){return isNaN(parseInt(e))?0:parseInt(e)})),n=t[0],r=t[1],i=t[2];return{major:n,minor:r,patch:i}}().major<13?[2,be()]:[2,me()]}))}))}],[function(){return a()},function(){return new Promise((function(e){try{var t=ce.indexedDB.open("test");t.onerror=function(){return e(!0)},t.onsuccess=function(){return e(!1)}}catch(n){return e(!0)}}))}],[function(){return l()||d()},function(){try{if(!window.indexedDB)return!0}catch(e){return!0}return!1}]];function ye(){return e(this,void 0,void 0,(function(){var e,n,r,i,o;return t(this,(function(t){switch(t.label){case 0:e=0,n=we,t.label=1;case 1:return e<n.length?(r=n[e],i=r[0],o=r[1],i()?[4,o()]:[3,3]):[3,4];case 2:return[2,t.sent()];case 3:return e++,[3,1];case 4:return[2,!1]}}))}))}function Ee(e,t){if(0==t.length||t.length>e.length)return-1;for(var n=0;n<e.length;n++){for(var r=0,i=0;i<t.length;i++){if(e[n+i]!==t[i]){r=0;break}r++}if(r==t.length)return n}return-1}var ke,Re=window,_e=document;var Te=((ke={})[0]=function(){return void 0!==navigator.webdriver},ke[1]=function(){return e(this,void 0,void 0,(function(){var e,n;return t(this,(function(t){switch(t.label){case 0:return(e=navigator.permissions)?[4,e.query({name:"notifications"})]:[2,void 0];case 1:return n=t.sent(),"undefined"==typeof Notification?[2,void 0]:[2,"denied"===Notification.permission&&"prompt"===n.state]}}))}))},ke[2]=function(){var e=se.documentElement;return"webdriver"in ue||"_Selenium_IDE_Recorder"in ue||"callSelenium"in ue||"_selenium"in ue||"__webdriver_script_fn"in se||"__driver_evaluate"in se||"__webdriver_evaluate"in se||"__selenium_evaluate"in se||"__fxdriver_evaluate"in se||"__driver_unwrapped"in se||"__webdriver_unwrapped"in se||"__selenium_unwrapped"in se||"__fxdriver_unwrapped"in se||"__webdriver_script_func"in se||null!==e.getAttribute("selenium")||null!==e.getAttribute("webdriver")||null!==e.getAttribute("driver")},ke[3]=function(){return e(this,void 0,void 0,(function(){var e,n;return t(this,(function(t){switch(t.label){case 0:if(void 0!==(e=function(){try{var e=localStorage.getItem("_inc");if(!e)return;return"1"===e}catch(t){return}}()))return[2,e];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,ye()];case 2:return function(e){try{localStorage.setItem("_inc",e?"1":"0")}catch(t){}}(n=t.sent()),[2,n];case 3:return t.sent(),[2,!1];case 4:return[2]}}))}))},ke[4]=function(){if(!u())return!1;try{if([66,114,97,118,101].map((function(e){return String.fromCharCode(e)})).join("")in Re)return!0;var e=_e.createElement("canvas");e.width=4,e.height=4,e.style.display="inline";var t=e.toDataURL();if(""===t)return!0;for(var n=window.atob(t.split(",")[1]),r=n.length,i=new Uint8Array(r),o=0;o<r;o++)i[o]=n.charCodeAt(o);var a=Ee(i,[73,68,65,84,24]);if(-1===a)return!1;var s=Ee(i,[73,69,78,68]);return-1!==a&&1321!==i.slice(a+5,s).reduce((function(e,t){return e+t}),0)}catch(c){return!1}},ke);function Se(){return v(Te,void 0,[])}var Ie=document,Ce=location;function Oe(e){for(var t=e+"=",n=0,r=Ie.cookie.split(";");n<r.length;n++){for(var i=r[n],o=0;" "===i[o]&&o<i.length;)++o;if(i.indexOf(t)===o)return i.slice(o+t.length)}}function qe(e,t,n,r){var i=e+"="+t,o="expires="+new Date(Date.now()+24*n*60*60*1e3).toUTCString(),a=r?"domain="+r:"";Ie.cookie=[i,"path=/",o,a].join("; ")}function xe(e,t,n){var r=Ce.hostname;Pe(r,(function(t){!function(e,t){qe(e,"",-1,t)}(e,t)})),Pe(r,(function(r){return qe(e,t,n,r),Oe(e)!==t}))&&qe(e,t,n)}function Pe(e,t){var n=e.length;do{if(n=n>0?e.lastIndexOf(".",n-1):-1,!1===t(e.slice(n+1)))return!1}while(n>=0);return!0}function Ne(e){return void 0===e&&(e="_vid"),[Oe(e),je(e)]}function Ae(e,t){void 0===t&&(t="_vid"),xe(t,e,365),function(e,t){var n;try{null===(n=null===localStorage||void 0===localStorage?void 0:localStorage.setItem)||void 0===n||n.call(localStorage,e,t)}catch(r){}}(t,e)}function je(e){var t,n;try{return null!==(n=null===(t=null===localStorage||void 0===localStorage?void 0:localStorage.getItem)||void 0===t?void 0:t.call(localStorage,e))&&void 0!==n?n:void 0}catch(r){}}function Fe(n,i,o){var a=this,u=o.token,s=o.region,c=void 0===s?"us":s,l=o.endpoint,d=o.tlsEndpoint,v=o.storageKey,f=o.debug;var g=function(i,o,s,f,g,h,b){return e(a,void 0,void 0,(function(){var e,a,w,y;return t(this,(function(t){switch(t.label){case 0:return[4,Promise.all([m(c,d,f,!!s,b),p(b)])];case 1:return e=t.sent(),a=e[0],w=e[1],[4,ee(r(r({},a),{token:u,endpoint:Z(c,l),components:w,tag:i,visitorId:Ne(v),linkedId:o,extendedResult:g,ipResolution:h}),[b[0],n,b[1]])];case 2:return Ae((y=t.sent()).visitorId,v),[2,y]}}))}))},m=function(r,i,o,u,s){var c=s[0],l=s[1];return e(a,void 0,void 0,(function(){var a;return t(this,(function(s){return u?[2,void 0]:(a=function(e,t){return t||X[e]}(r,i),[2,S(c,(function(){return[6,n,l,a,o]}),(function(e){return[7,n,l,e]}),(function(e){return[8,n,l,e]}),(function(){return function(n,r){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,N({url:n,timeout:r})];case 1:return e=t.sent(),[3,3];case 2:switch(t.sent().name){case"AbortError":throw new Error("Abort");case"TimeoutError":throw new Error("Timeout");default:throw new Error("Connection error")}case 3:if(200===e.status)return[2,e.text];throw new Error(e.text.slice(0,255))}}))}))}(a,o)})).then((function(e){return{tls:e}}),(function(e){return{tlsError:e}}))])}))}))},p=function(o){var u=o[0],s=o[1];return S(u,(function(){return[9,n,s]}),(function(e){return[10,n,s,e]}),(function(e){return[11,n,s,e]}),(function(){return e(a,void 0,void 0,(function(){var e,n;return t(this,(function(t){switch(t.label){case 0:return[4,i.get()];case 1:return e=t.sent(),[4,Se()];case 2:return n=t.sent(),[2,r(r({},e.components),n)]}}))}))}))};return{get:function(e){void 0===e&&(e={});var t=w(8),r=E([f,e.debug&&q()]);return S(r,(function(){return[3,n,t,e]}),(function(e){return[4,n,t,e.visitorId,e]}),(function(e){return[5,n,t,e]}),(function(){var n=e.timeout,i=void 0===n?1e4:n,o=e.tag,a=e.linkedId,u=e.disableTls,s=e.extendedResult,c=e.ipResolution;return Promise.race([h(i).then((function(){throw new Error("Client timeout")})),g(o,a,u,i/2,s,c,[r,t])])}))}}}function Le(n){var r=this,i=w(8);return S(n.debug,(function(){return[0,i,"3.2.0",n]}),(function(){return[1,i]}),(function(e){return[2,i,e]}),(function(){return e(r,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:if(!n.token||"string"!=typeof n.token)throw new Error("Token required");return[4,f({delayFallback:n.delayFallback})];case 1:return e=t.sent(),[2,Fe(i,e,n)]}}))}))}))}var De="Token required",Ve="Token not found",Ue="Token expired",Me="Request cannot be parsed",Ge="Request failed",Be="Request failed to process",Je="Too many requests, rate limit exceeded",Ke={load:Le,ERROR_CLIENT_TIMEOUT:"Client timeout",ERROR_NETWORK_CONNECTION:"Network connection error",ERROR_NETWORK_ABORT:"Network request aborted",ERROR_TOKEN_MISSING:"Token required",ERROR_TOKEN_INVALID:"Token not found",ERROR_TOKEN_EXPIRED:"Token expired",ERROR_BAD_REQUEST_FORMAT:"Request cannot be parsed",ERROR_GENERAL_SERVER_FAILURE:"Request failed",ERROR_SERVER_TIMEOUT:"Request failed to process",ERROR_RATE_LIMIT:"Too many requests, rate limit exceeded"};export default Ke;export{Me as ERROR_BAD_REQUEST_FORMAT,Q as ERROR_CLIENT_TIMEOUT,Ge as ERROR_GENERAL_SERVER_FAILURE,Y as ERROR_NETWORK_ABORT,$ as ERROR_NETWORK_CONNECTION,Je as ERROR_RATE_LIMIT,Be as ERROR_SERVER_TIMEOUT,Ue as ERROR_TOKEN_EXPIRED,Ve as ERROR_TOKEN_INVALID,De as ERROR_TOKEN_MISSING,Le as load,q as makeConsoleDebugger,E as makeMulticastDebugger,z as makeRemoteDebugger}; | ||
import{__awaiter as e,__generator as t,__assign as n,__rest as r,__spreadArrays as i}from"tslib";import{murmurX64Hash128 as o,isGecko as a,isChromium as u,isWebKit as s,isDesktopSafari as c,isTrident as l,isEdgeHTML as d,getComponents as v,load as f}from"@fingerprintjs/fingerprintjs";var g=document;function h(e,t){return new Promise((function(n){return setTimeout((function(){return n(t)}),e)}))}function p(e,t){return new Promise((function(n){var r=function(){return g.hidden?a():o()},i=function(e,t,n){var r,i=!1,o=e,a=0,u=function(){i||void 0!==r||(a=Date.now(),r=setTimeout((function(){i=!0,n()}),o))};return t&&u(),{start:u,stop:function(){i||void 0===r||(clearTimeout(r),r=void 0,o-=Date.now()-a)}}}(e,!g.hidden,(function(){g.removeEventListener("visibilitychange",r),n(t)})),o=i.start,a=i.stop;g.addEventListener("visibilitychange",r)}))}function m(n,r){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,n()];case 1:return[2,t.sent()];case 2:return e=t.sent(),console.error(e),[2,r];case 3:return[2]}}))}))}function b(e,t){for(var n="",r=0;r<e;r++)n+=t.charAt(Math.random()*t.length);return n}function w(e){return b(e,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function y(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=function(e){e&&m((function(){return e.apply(void 0,t)}))},i=0,o=e;i<o.length;i++){var a=o[i];r(a)}}}var E=window;function k(e,t){var r;return void 0===t&&(t=!1),n({name:e.name,message:e.message,stack:t?null===(r=e.stack)||void 0===r?void 0:r.split("\n"):e.stack},e)}function I(){try{return E.self!==E.top}catch(e){return!0}}function R(e){switch(e){case 0:return"Loading has started";case 1:return"Loading has succeeded";case 2:return"Loading has failed";case 3:return"Getting visitor identifier has started";case 4:return"Getting visitor identifier has succeeded";case 5:return"Getting visitor identifier has failed";case 6:return"TLS request has started";case 7:return"TLS request has succeeded";case 8:return"TLS request has failed";case 9:return"Getting fingerprint has started";case 10:return"Getting fingerprint has succeeded";case 11:return"Getting fingerprint has failed";case 12:return"Visitor identifier request has started";case 13:return"Visitor identifier request has succeeded";case 14:return"Visitor identifier request has failed"}}function _(e){return void 0===e&&(e="[FingerprintJS Pro] "),function(t){switch(t.e){case 2:case 5:case 8:case 11:case 14:console.error(T(e,t));break;case 10:var n=T(e,t),r=t.result;Object.keys(r).some((function(e){return r[e].error}))?console.warn(n):console.log(n);break;default:console.log(T(e,t))}}}function T(e,t){var n=t.e,i=r(t,["e"]),o=""+e+(new Date).toISOString()+": "+R(n);return Object.keys(i).length&&(o+="\n```\n"+function(e){return JSON.stringify(e,(function(e,t){return t instanceof Error?k(t,!0):t}),2)}(i)+"\n```"),o}var S=navigator;function C(e){var t=e.url,n=e.method,r=void 0===n?"get":n,i=e.body,o=e.headers,a=e.withCredentials,u=void 0!==a&&a,s=e.timeout;return new Promise((function(e,n){var a=new XMLHttpRequest;for(var c in a.open(r,t,!0),a.withCredentials=u,a.timeout=void 0===s?0:Math.max(s,1),o)a.setRequestHeader(c,o[c]);a.onload=function(){return e(function(e){return{text:e.responseText,status:e.status,statusText:e.statusText}}(a))},a.ontimeout=function(){return n(q("TimeoutError","The request timed out"))},a.onabort=function(){return n(q("AbortError","The request is aborted"))},a.onerror=function(){return n(q("TypeError",S.onLine?"Connection error":"Network offline"))},a.send(i)}))}function q(e,t){var n=new Error(t);return n.name=e,n}function O(e){var t=e.url,n=e.body;if(S.sendBeacon)return S.sendBeacon(t,n);var r=new XMLHttpRequest;r.open("POST",t,!function(){var e,t=null===(e=E.event)||void 0===e?void 0:e.type;return"pagehide"===t||"unload"===t}()),n instanceof Blob&&r.setRequestHeader("Content-Type",n.type);try{r.send(n)}catch(i){return!1}return!0}var x=document,L=navigator;function N(n,r,i,o,a){return e(this,void 0,void 0,(function(){var e,u,s;return t(this,(function(t){switch(t.label){case 0:(u=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];n&&m((function(){var r=e.apply(void 0,t);r&&n(r)}))})(r),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,a()];case 2:return e=t.sent(),[3,4];case 3:throw s=t.sent(),u(o,s),s;case 4:return u(i,e),[2,e]}}))}))}function P(){var e=window,t=e.__fpjs_pvid;return e.__fpjs_pvid="string"==typeof t?t:w(10)}var A=window,j=navigator,D=document,F=performance;function V(e){return new U(e).addEvent}var U=function(){function e(e){var t=this;this.onReportReady=e,this.isStopped=!1,this.pageStartTimestamp=function(){var e,t;if(F.timeOrigin){var n=null===(t=null===(e=F.getEntriesByType)||void 0===e?void 0:e.call(F,"navigation"))||void 0===t?void 0:t[0];if(n)return F.timeOrigin+(n.responseStart||n.unloadEventEnd)}return F.timing.domLoading||F.timing.responseStart||F.timing.unloadEventEnd}(),this.events={},this.addEvent=function(e){if(!t.isStopped){var n={time:new Date,type:"agentEvent",event:e};switch(0!==e.e&&3!==e.e||(n.isPageVisible=J(),n.isFullscreen=K(),n.network=z()),t.storeAgentEvent(n),e.e){case 2:t.submitReport(e.agentId,void 0);break;case 4:case 5:t.submitReport(e.agentId,e.getCallId)}}};for(var n=[[D,"visibilitychange",function(){return t.handleVisibilityChange()}],[D,"pageshow",function(){return t.handlePageTransition(!0)}],[D,"pagehide",function(){return t.handlePageTransition(!1)}],[A,"unload",function(){return t.handlePageUnload()}]],r=0,i=n;r<i.length;r++){var o=i[r],a=o[0],u=o[1],s=o[2];a.addEventListener(u,s)}var c=function(e,t){for(var n=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],r=0,i=n;r<i.length;r++){var o=i[r];x.addEventListener(o,e,t)}return function(){for(var r=0,i=n;r<i.length;r++){var o=i[r];x.removeEventListener(o,e,t)}}}((function(){return t.handleFullscreenChange()})),l=function(e){var t=L.connection;if(!t)return addEventListener("online",e),addEventListener("offline",e),function(){removeEventListener("online",e),removeEventListener("offline",e)};var n=!1,r=t.onchange,i=function(t){try{n||e()}finally{null==r||r(t)}};return t.onchange=i,function(){n=!0,t.onchange===i&&(t.onchange=r)}}((function(){return t.handleNetworkConnectionChange()}));this.stop=function(){t.isStopped=!0;for(var e=0,r=n;e<r.length;e++){var i=r[e],o=i[0],a=i[1],u=i[2];o.removeEventListener(a,u)}c(),l()}}return e.prototype.handleVisibilityChange=function(){this.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:J()})},e.prototype.handlePageTransition=function(e){this.storeEnvironmentEvent({time:new Date,type:"pageTransition",isShown:e})},e.prototype.handleFullscreenChange=function(){this.storeEnvironmentEvent({time:new Date,type:"fullscreenToggle",isFullscreen:K()})},e.prototype.handleNetworkConnectionChange=function(){this.storeEnvironmentEvent({time:new Date,type:"networkChange",network:z()})},e.prototype.handlePageUnload=function(){this.storeEnvironmentEvent({time:new Date,type:"pageUnload"});for(var e=0,t=Object.keys(this.events);e<t.length;e++){var n=t[e],r=this.events[n];if(0===Object.keys(r.getCalls).length)this.submitReport(n,void 0);else for(var i=0,o=Object.keys(r.getCalls);i<o.length;i++){var a=o[i];M(r.getCalls[a])||this.submitReport(n,a)}}this.stop()},e.prototype.storeAgentEvent=function(e){var t=e.event,n=t.agentId;switch(this.events[n]||(this.events[n]={loadEvents:[],getCalls:{}}),t.e){case 0:case 1:case 2:this.events[n].loadEvents.push(e);break;default:var r=t.getCallId;this.events[n].getCalls[r]||(this.events[n].getCalls[r]=[]),this.events[n].getCalls[r].push(e)}},e.prototype.storeEnvironmentEvent=function(e){for(var t=0,n=Object.keys(this.events);t<n.length;t++){var r=n[t],i=this.events[r];i.loadEvents.some((function(e){return"agentEvent"===e.type&&(1===e.event.e||2===e.event.e)}))||i.loadEvents.push(e);for(var o=0,a=Object.keys(i.getCalls);o<a.length;o++){var u=a[o],s=i.getCalls[u];M(s)||s.push(e)}}},e.prototype.submitReport=function(e,t){var n=function(e,t){for(var n,r,i,o,a,u,s,c,l,d,v,f,g,h=function(e){for(var t={},n={},r=0,i=e;r<i.length;r++){var o=i[r];"agentEvent"===o.type?t[o.event.e]=o:n[o.type]=o}return{agentEvents:t,otherEvents:n}}(e),p=h.agentEvents,m=h.otherEvents,b=null!==(r=null===(n=m.pageUnload)||void 0===n?void 0:n.time)&&void 0!==r?r:new Date,w="null",y=0,E=[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]];y<E.length;y++){var k=E[y],R=k[0],_=k[1];if(p[R]){w=_;break}}return{time:null!==(c=null!==(u=null!==(o=null===(i=p[4])||void 0===i?void 0:i.time)&&void 0!==o?o:null===(a=p[5])||void 0===a?void 0:a.time)&&void 0!==u?u:null===(s=p[2])||void 0===s?void 0:s.time)&&void 0!==c?c:b,pageUrl:location.href,pageStartTime:new Date(t),isInIframe:I(),agentVersion:null===(l=p[0])||void 0===l?void 0:l.event.version,userAgent:navigator.userAgent,pageViewId:P(),agentId:null===(d=p[0])||void 0===d?void 0:d.event.agentId,getCallId:null===(v=p[3])||void 0===v?void 0:v.event.getCallId,requestId:null===(f=p[12])||void 0===f?void 0:f.event.requestId,visitorId:null===(g=p[4])||void 0===g?void 0:g.event.visitorId,identificationState:w,load:G(b,p[0],p[1],p[2]),get:G(b,p[3],p[4],p[5]),tls:G(b,p[6],p[7],p[8],(function(e){return{responseStatus:e.event.status}})),fingerprint:G(b,p[9],p[10],p[11],(function(e){return{failedComponents:B(e.event.result)}})),visitorIdRequest:G(b,p[12],p[13],p[14],(function(e){return{responseStatus:e.event.status}})),events:e}}(function(e,t,n){var r,i=[];e[t]&&(i.push.apply(i,e[t].loadEvents),void 0!==n&&i.push.apply(i,null!==(r=e[t].getCalls[n])&&void 0!==r?r:[]));return i}(this.events,e,t),this.pageStartTimestamp);try{this.onReportReady(n)}catch(r){console.error(r)}},e}();function M(e){return e.some((function(e){return"agentEvent"===e.type&&(4===e.event.e||5===e.event.e)}))}function G(e,t,r,i,o){if(void 0!==t)return void 0!==r?n(n({},null==o?void 0:o(r)),{duration:r.time.getTime()-t.time.getTime(),state:"success"}):void 0!==i?{duration:i.time.getTime()-t.time.getTime(),state:"fail",error:i.event.error}:{duration:e.getTime()-t.time.getTime(),state:"incomplete"}}function B(e){return Object.keys(e).filter((function(t){return e[t].error}))}function J(){return!D.hidden}function K(){return!!(x.fullscreenElement||x.msFullscreenElement||x.mozFullScreenElement||x.webkitFullscreenElement)}function z(){var e,t,n,r,i,o;return{online:navigator.onLine,downlink:null===(e=j.connection)||void 0===e?void 0:e.downlink,downlinkMax:null===(t=j.connection)||void 0===t?void 0:t.downlinkMax,effectiveType:null===(n=j.connection)||void 0===n?void 0:n.effectiveType,roundTrip:null===(r=j.connection)||void 0===r?void 0:r.rtt,saveData:null===(i=j.connection)||void 0===i?void 0:i.saveData,type:null===(o=j.connection)||void 0===o?void 0:o.type}}function H(n){var r=this,i=n.clientId,o=n.token,a=n.endpoint,u=void 0===a?"https://api.rollbar.com/api/1/item/":a;return new U((function(n){return e(r,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return e=function(e,t,n,r){return{access_token:n,data:W(e,t,r)}}(n,i,o),[4,Y(u,e)];case 1:return t.sent(),[2]}}))}))})).addEvent}function W(e,t,n){var r;void 0===n&&(n=[8,4,4,4,12].map((function(e){return b(e,"0123456789abcdef")})).join("-"));var o=X[e.identificationState],a=o.level,u=o.message;return{environment:t,level:a,timestamp:Math.round(e.time.getTime()/1e3),platform:"browser",framework:"FingerprintJS Pro",language:"javascript",uuid:n,notifier:{name:"FingerprintJS Pro monitoring",version:"3.2.1"},request:{url:e.pageUrl,query_string:(null!==(r=/\?.*$/.exec(e.pageUrl))&&void 0!==r?r:[""])[0],user_ip:"$remote_ip"},client:{javascript:{browser:e.userAgent,code_version:e.agentVersion}},body:{telemetry:i([{level:"debug",source:"client",timestamp_ms:e.pageStartTime.getTime(),type:"manual",body:{message:"Page starts"}}],e.events.map(Q)),message:{body:u}},custom:{isInIframe:e.isInIframe,pageViewId:e.pageViewId,agentId:e.agentId,getCallId:e.getCallId,requestId:e.requestId,visitorId:e.visitorId,identificationState:e.identificationState,load:e.load,get:e.get,tls:e.tls,fingerprint:$(e.fingerprint),visitorIdRequest:e.visitorIdRequest}}}var X={null:{level:"info",message:"Load() wasn't called"},loading:{level:"warning",message:"Load() incomplete"},loadSuccess:{level:"info",message:"Load() succeeded, get() wasn't called"},loadFail:{level:"error",message:"Load() failed"},getting:{level:"warning",message:"Get() incomplete"},getSuccess:{level:"info",message:"Get() succeeded"},getFail:{level:"error",message:"Get() failed"}};function Q(e){var t={type:"manual",level:"debug",source:"client",timestamp_ms:e.time.getTime()};switch(e.type){case"pageVisibilityToggle":return n(n({},t),{body:{message:"Page becomes "+(e.isVisible?"visible (in foreground)":"invisible (in background)")}});case"pageTransition":return n(n({},t),{body:{message:e.isShown?"Page is restored from browser history":"Page is about to go to browser history"}});case"fullscreenToggle":return n(n({},t),{body:{message:"Programmatic fullscreen "+(e.isFullscreen?"on":"off")}});case"networkChange":return n(n({},t),{body:n(n({},e.network),{message:"Network connection changes"})});case"pageUnload":return n(n({},t),{body:{message:"Page is about to unload (terminate)"}})}var r=e.event,i=n(n({},t),{level:"info",body:{message:R(r.e)}});switch(void 0!==e.isPageVisible&&(i.body.isPageVisible=e.isPageVisible),void 0!==e.isPageVisible&&(i.body.isFullscreen=e.isFullscreen),void 0!==e.isPageVisible&&(i.body.network=e.network),r.e){case 0:case 3:return n(n({},i),{body:n(n({},i.body),{options:r.options})});case 1:case 9:return i;case 2:case 5:case 8:case 11:case 14:return n(n({},i),{level:"error",body:n(n({},i.body),{error:r.error})});case 4:case 10:return n(n({},i),{body:n(n({},i.body),{result:r.result})});case 6:return n(n({},i),{body:n(n({},i.body),{endpoint:r.endpoint,timeout:r.timeout})});case 7:case 13:return n(n({},i),{body:n(n({},i.body),{status:r.status,body:r.body.slice(0,4096)})});case 12:return n(n({},i),{body:n(n({},i.body),{endpoint:r.endpoint,request:r.request})})}}function $(e){return e&&"incomplete"!==e.state&&"fail"!==e.state?n(n({},e),{failedComponents:e.failedComponents.length?","+e.failedComponents.map((function(e){return e+","})).join(""):void 0}):e}function Y(n,r){return e(this,void 0,void 0,(function(){var e,i;return t(this,(function(t){switch(t.label){case 0:e=JSON.stringify(r,(function(e,t){return t instanceof Error?k(t):t})),i=0,t.label=1;case 1:return navigator.onLine&&O({url:n,body:e})?[3,5]:[3,2];case 2:return[4,h(1e3*Math.min(i+1,10))];case 3:t.sent(),t.label=4;case 4:return++i,[3,1];case 5:return[2]}}))}))}var Z={us:"https://api.sjpf.io",eu:"https://tls-eun1.fpapi.io"};function ee(i,o,a){var u=a.output,s=r(a,["output"]);return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,N(u,(function(){return n(n({e:6},s),{endpoint:i,timeout:o})}),(function(e){var t=e.status,r=e.text;return n(n({e:7},s),{status:t,body:r})}),(function(e){return n(n({e:8},s),{error:e})}),(function(){return C({url:i,timeout:o})}))];case 1:return e=t.sent(),[3,3];case 2:switch(t.sent().name){case"AbortError":throw new Error("Abort");case"TimeoutError":throw new Error("Timeout");default:throw new Error("Connection error")}case 3:if(200===e.status)return[2,e.text];throw new Error(e.text.slice(0,255))}}))}))}var te="Client timeout",ne="Network connection error",re="Network request aborted";function ie(e,t){if(t)return t;var n="api.fpjs.io";return"us"!==e&&(n=e+"."+n),"https://"+n}function oe(i,a){var u=i.endpoint,s=i.extendedResult,c=r(i,["endpoint","extendedResult"]);return e(this,void 0,void 0,(function(){var e,r;return t(this,(function(t){switch(t.label){case 0:return e=w(20),r=function(e){var t,r=e.components,i=e.token,a=e.visitorId,u=e.tag,s=e.ipResolution,c=e.extendedResult,l=e.linkedId,d=e.tls,v=e.tlsError,f=e.requestId,g=Object.keys(r).reduce((function(e,t){return e+r[t].duration}),0),h="full"===s?2:1;return(t={}).rid=f,t.cv="3.2.1",t.c=i,t.url=location.href,t.d=g,t.vid=a[0]||a[1]||void 0,t.ls=a[1]?1:void 0,t.t=function(e){if(e&&"object"==typeof e)return e;if(null==e)return;return{tag:e}}(u),t.i=h,t.cbd=c?1:void 0,t.lid=l,t.cr=document.referrer||void 0,t.j=d,t.je=null==v?void 0:v.message,t.k1=se(r.osCpu),t.k2=se(r.languages),t.k3=se(r.colorDepth),t.k4=se(r.deviceMemory),t.k5=se(r.screenResolution),t.k6=se(r.availableScreenResolution,void 0,[]),t.k7=se(r.hardwareConcurrency),t.k8=se(r.timezoneOffset),t.k9=se(r.timezone),t.k10=ce(se(r.sessionStorage)),t.k11=ce(se(r.localStorage)),t.k12=ce(se(r.indexedDB)),t.k13=ce(se(r.openDatabase)),t.k14=se(r.cpuClass),t.k15=se(r.platform),t.k16=se(r.plugins,[]),t.k17=function(e){var t=e.value;if(!t)return;return n(n({},t),{data:o(t.data)})}(r.canvas),t.k18=0,t.k19=se(r.touchSupport),t.k20=se(r.fonts,[]),t.k21=se(r.audio,-4),t.k22=ce(se(r.pluginsSupport)),t.k23=se(r.productSub),t.k24=se(r.emptyEvalLength),t.k25=ce(se(r.errorFF)),t.k26=ce(se(r[0])),t.k27=se(r.vendor),t.k28=ce(se(r.chrome)),t.k29=ce(se(r[1])),t.k30=ce(se(r[2])),t.k31=ce(se(r[3],!1)),t.k32=ce(se(r.cookiesEnabled,!1)),t.k33=ce(se(r[4])),t}(n({extendedResult:s,requestId:e},c)),[4,ae(u,r,a)];case 1:return[2,ue(t.sent(),e,s)]}}))}))}function ae(i,o,a){var u=a.output,s=r(a,["output"]);return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,N(u,(function(){return n(n({e:12},s),{requestId:o.rid,endpoint:i,request:o})}),(function(e){var t=e.status,r=e.text;return n(n({e:13},s),{status:t,body:r})}),(function(e){return n(n({e:14},s),{error:e})}),(function(){return C({url:i,method:"post",body:JSON.stringify(o),headers:{"Content-Type":"text/plain"},withCredentials:!0})}))];case 1:return[2,t.sent()];case 2:throw e=t.sent(),new Error("AbortError"===e.name?"Network request aborted":"Network connection error");case 3:return[2]}}))}))}function ue(n,r,i){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){if(404===n.status||n.status>=500)throw new Error(n.statusText);try{e=JSON.parse(n.text)}catch(o){throw new Error(n.text)}if(function(e){return e&&"object"==typeof e&&"string"==typeof e.visitorId&&"n/a"!==e.visitorId}(e))return[2,le(e)];if(function(e){return e&&"object"==typeof e&&"n/a"===e.visitorId}(e)){if("Not available for crawl bots"===e.reason||"Not available when User-Agent is unspecified"===e.reason)return[2,de(e.reason,r,i)];throw new Error(e.reason)}throw new Error(n.text)}))}))}function se(e,t,n){return e.error?t:void 0===e.value?n:e.value}function ce(e){return!0===e?1:!1===e?0:e}function le(e){var t=e,i=t.botProbability,o=r(t,["botProbability"]),a=n({},o);return i&&(a.bot={probability:i}),a}function de(e,t,r){var i={requestId:t,visitorFound:!1,visitorId:""};if(!r)return i;var o=n(n({},i),{bot:{probability:1},incognito:!1,browserName:"n/a",browserVersion:"n/a",device:"n/a",ip:"n/a",ipLocation:{},os:"n/a",osVersion:"n/a"});return"Not available for crawl bots"===e&&(o.bot.safe=!0),o}var ve=window,fe=document;var ge=window;var he=navigator,pe=window;function me(){var e,t,n,r=(null===(e=he.userAgent)||void 0===e?void 0:e.indexOf("Mac OS"))>0&&-1===(null===(t=he.userAgent)||void 0===t?void 0:t.indexOf("iPhone")),i=(null===(n=he.userAgent)||void 0===n?void 0:n.indexOf("CrOS"))>0;return r||i?3221225472:1073741824}function be(){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return"storage"in he&&"estimate"in he.storage?[4,he.storage.estimate()]:[3,2];case 1:return[2,!!(e=t.sent().quota)&&e<me()];case 2:return[2,!1]}}))}))}var we=window;function ye(){return e(this,void 0,void 0,(function(){return t(this,(function(e){return c()?[2,Ee()]:[2,ke()]}))}))}function Ee(){if(!we.safari)return!1;try{we.safari.pushNotification.requestPermission("https://example.com","private",{},(function(){}))}catch(t){return e=t,!new RegExp([103,101,115,116,117,114,101].map((function(e){return String.fromCharCode(e)})).join("")).test(e)}var e;throw new Error("Unexpected lack of error")}function ke(){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:(e=document.createElement("iframe")).style.display="none",t.label=1;case 1:return t.trys.push([1,,3,4]),document.body.appendChild(e),[4,Promise.race([h(20,!1),new Promise((function(t){e.contentWindow?e.contentWindow.applicationCache.addEventListener("error",(function(){return t(!0)})):t(!1)}))])];case 2:return[2,t.sent()];case 3:return e.remove(),[7];case 4:return[2]}}))}))}function Ie(){try{we.openDatabase(null,null,null,null)}catch(e){return!0}try{return we.localStorage.setItem("test","1"),we.localStorage.removeItem("test"),!1}catch(e){return!0}}var Re=[[function(){return u()},function(){return e(this,void 0,void 0,(function(){return t(this,(function(e){return function(){var e=he.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);if(!e)throw"UserAgent is not Google Chrome";return parseInt(e[2],10)}()>=76?[2,be()]:[2,new Promise((function(e){pe.webkitRequestFileSystem(0,1,(function(){return e(!1)}),(function(){return e(!0)}))}))]}))}))}],[function(){return s()},function(){return e(this,void 0,void 0,(function(){return t(this,(function(e){return function(){var e=navigator.userAgent.match(/Version\/([0-9._]+).*Safari/);if(!e)throw new Error("UserAgent is not Safari");var t=e[1].split(".").map((function(e){return isNaN(parseInt(e))?0:parseInt(e)})),n=t[0],r=t[1],i=t[2];return{major:n,minor:r,patch:i}}().major<13?[2,Ie()]:[2,ye()]}))}))}],[function(){return a()},function(){return new Promise((function(e){try{var t=ge.indexedDB.open("test");t.onerror=function(){return e(!0)},t.onsuccess=function(){return e(!1)}}catch(n){return e(!0)}}))}],[function(){return l()||d()},function(){try{if(!window.indexedDB)return!0}catch(e){return!0}return!1}]];function _e(){return e(this,void 0,void 0,(function(){var e,n,r,i,o;return t(this,(function(t){switch(t.label){case 0:e=0,n=Re,t.label=1;case 1:return e<n.length?(r=n[e],i=r[0],o=r[1],i()?[4,o()]:[3,3]):[3,4];case 2:return[2,t.sent()];case 3:return e++,[3,1];case 4:return[2,!1]}}))}))}function Te(e,t){if(0==t.length||t.length>e.length)return-1;for(var n=0;n<e.length;n++){for(var r=0,i=0;i<t.length;i++){if(e[n+i]!==t[i]){r=0;break}r++}if(r==t.length)return n}return-1}var Se,Ce=window,qe=document;var Oe=((Se={})[0]=function(){return void 0!==navigator.webdriver},Se[1]=function(){return e(this,void 0,void 0,(function(){var e,n;return t(this,(function(t){switch(t.label){case 0:return(e=navigator.permissions)?[4,e.query({name:"notifications"})]:[2,void 0];case 1:return n=t.sent(),"undefined"==typeof Notification?[2,void 0]:[2,"denied"===Notification.permission&&"prompt"===n.state]}}))}))},Se[2]=function(){var e=fe.documentElement;return"webdriver"in ve||"_Selenium_IDE_Recorder"in ve||"callSelenium"in ve||"_selenium"in ve||"__webdriver_script_fn"in fe||"__driver_evaluate"in fe||"__webdriver_evaluate"in fe||"__selenium_evaluate"in fe||"__fxdriver_evaluate"in fe||"__driver_unwrapped"in fe||"__webdriver_unwrapped"in fe||"__selenium_unwrapped"in fe||"__fxdriver_unwrapped"in fe||"__webdriver_script_func"in fe||null!==e.getAttribute("selenium")||null!==e.getAttribute("webdriver")||null!==e.getAttribute("driver")},Se[3]=function(){return e(this,void 0,void 0,(function(){var e,n;return t(this,(function(t){switch(t.label){case 0:if(void 0!==(e=function(){try{var e=localStorage.getItem("_inc");if(!e)return;return"1"===e}catch(t){return}}()))return[2,e];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,_e()];case 2:return function(e){try{localStorage.setItem("_inc",e?"1":"0")}catch(t){}}(n=t.sent()),[2,n];case 3:return t.sent(),[2,!1];case 4:return[2]}}))}))},Se[4]=function(){if(!u())return!1;try{if([66,114,97,118,101].map((function(e){return String.fromCharCode(e)})).join("")in Ce)return!0;var e=qe.createElement("canvas");e.width=4,e.height=4,e.style.display="inline";var t=e.toDataURL();if(""===t)return!0;for(var n=window.atob(t.split(",")[1]),r=n.length,i=new Uint8Array(r),o=0;o<r;o++)i[o]=n.charCodeAt(o);var a=Te(i,[73,68,65,84,24]);if(-1===a)return!1;var s=Te(i,[73,69,78,68]);return-1!==a&&1321!==i.slice(a+5,s).reduce((function(e,t){return e+t}),0)}catch(c){return!1}},Se);function xe(){return v(Oe,void 0,[])}var Le=document,Ne=location;function Pe(e){for(var t=e+"=",n=0,r=Le.cookie.split(";");n<r.length;n++){for(var i=r[n],o=0;" "===i[o]&&o<i.length;)++o;if(i.indexOf(t)===o)return i.slice(o+t.length)}}function Ae(e,t,n,r){var i=e+"="+t,o="expires="+new Date(Date.now()+24*n*60*60*1e3).toUTCString(),a=r?"domain="+r:"";Le.cookie=[i,"path=/",o,a].join("; ")}function je(e,t,n){var r=Ne.hostname;De(r,(function(t){!function(e,t){Ae(e,"",-1,t)}(e,t)})),De(r,(function(r){return Ae(e,t,n,r),Pe(e)!==t}))&&Ae(e,t,n)}function De(e,t){var n=e.length;do{if(n=n>0?e.lastIndexOf(".",n-1):-1,!1===t(e.slice(n+1)))return!1}while(n>=0);return!0}function Fe(e){return void 0===e&&(e="_vid"),[Pe(e),Ue(e)]}function Ve(e,t){void 0===t&&(t="_vid"),je(t,e,365),function(e,t){var n;try{null===(n=null===localStorage||void 0===localStorage?void 0:localStorage.setItem)||void 0===n||n.call(localStorage,e,t)}catch(r){}}(t,e)}function Ue(e){var t,n;try{return null!==(n=null===(t=null===localStorage||void 0===localStorage?void 0:localStorage.getItem)||void 0===t?void 0:t.call(localStorage,e))&&void 0!==n?n:void 0}catch(r){}}function Me(r,i,o){var a=this,u=o.token,s=o.region,c=void 0===s?"us":s,l=o.endpoint,d=o.tlsEndpoint,v=o.storageKey,f=o.debug;var g=function(i,o,s,f,g,p,b){return e(a,void 0,void 0,(function(){var e,a,w,y;return t(this,(function(t){switch(t.label){case 0:return[4,Promise.all([h(c,d,f,!!s,b),m(b)])];case 1:return e=t.sent(),a=e[0],w=e[1],[4,oe(n(n({},a),{token:u,endpoint:ie(c,l),components:w,tag:i,visitorId:Fe(v),linkedId:o,extendedResult:g,ipResolution:p}),n(n({},b),{agentId:r}))];case 2:return Ve((y=t.sent()).visitorId,v),[2,y]}}))}))},h=function(i,o,u,s,c){return e(a,void 0,void 0,(function(){return t(this,(function(e){return s?[2,void 0]:[2,ee(function(e,t){return t||Z[e]}(i,o),u,n(n({},c),{agentId:r})).then((function(e){return{tls:e}}),(function(e){return{tlsError:e}}))]}))}))},m=function(o){var u=o.output,s=o.getCallId;return N(u,(function(){return{e:9,agentId:r,getCallId:s}}),(function(e){return{e:10,agentId:r,getCallId:s,result:e}}),(function(e){return{e:11,agentId:r,getCallId:s,error:e}}),(function(){return e(a,void 0,void 0,(function(){var e,r;return t(this,(function(t){switch(t.label){case 0:return[4,i.get()];case 1:return e=t.sent(),[4,xe()];case 2:return r=t.sent(),[2,n(n({},e.components),r)]}}))}))}))};return{get:function(e){void 0===e&&(e={});var t=w(8),n=y([f,e.debug&&_()]);return N(n,(function(){return{e:3,agentId:r,getCallId:t,options:e}}),(function(e){return{e:4,agentId:r,getCallId:t,visitorId:e.visitorId,result:e}}),(function(e){return{e:5,agentId:r,getCallId:t,error:e}}),(function(){var r=e.timeout,i=void 0===r?1e4:r,o=e.tag,a=e.linkedId,u=e.disableTls,s=e.extendedResult,c=e.ipResolution;return Promise.race([p(i).then((function(){throw new Error("Client timeout")})),g(o,a,u,i/2,s,c,{output:n,getCallId:t})])}))}}}function Ge(n){var r=this,i=w(8);return N(n.debug,(function(){return{e:0,agentId:i,version:"3.2.1",options:n}}),(function(){return{e:1,agentId:i}}),(function(e){return{e:2,agentId:i,error:e}}),(function(){return e(r,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:if(!n.token||"string"!=typeof n.token)throw new Error("Token required");return[4,f({delayFallback:n.delayFallback})];case 1:return e=t.sent(),[2,Me(i,e,n)]}}))}))}))}var Be="Token required",Je="Token not found",Ke="Token expired",ze="Request cannot be parsed",He="Request failed",We="Request failed to process",Xe="Too many requests, rate limit exceeded",Qe={load:Ge,ERROR_CLIENT_TIMEOUT:"Client timeout",ERROR_NETWORK_CONNECTION:"Network connection error",ERROR_NETWORK_ABORT:"Network request aborted",ERROR_TOKEN_MISSING:"Token required",ERROR_TOKEN_INVALID:"Token not found",ERROR_TOKEN_EXPIRED:"Token expired",ERROR_BAD_REQUEST_FORMAT:"Request cannot be parsed",ERROR_GENERAL_SERVER_FAILURE:"Request failed",ERROR_SERVER_TIMEOUT:"Request failed to process",ERROR_RATE_LIMIT:"Too many requests, rate limit exceeded"};export default Qe;export{ze as ERROR_BAD_REQUEST_FORMAT,te as ERROR_CLIENT_TIMEOUT,He as ERROR_GENERAL_SERVER_FAILURE,re as ERROR_NETWORK_ABORT,ne as ERROR_NETWORK_CONNECTION,Xe as ERROR_RATE_LIMIT,We as ERROR_SERVER_TIMEOUT,Ke as ERROR_TOKEN_EXPIRED,Je as ERROR_TOKEN_INVALID,Be as ERROR_TOKEN_MISSING,Ge as load,_ as makeConsoleDebugger,V as makeDebugReportBuilder,y as makeMulticastDebugger,H as makeRemoteDebugger}; |
/** | ||
* FingerprintJS Pro v3.2.0 - Copyright (c) FingerprintJS, Inc, 2020 (https://fingerprintjs.com) | ||
* FingerprintJS Pro v3.2.1 - Copyright (c) FingerprintJS, Inc, 2020 (https://fingerprintjs.com) | ||
* | ||
@@ -8,2 +8,2 @@ * This software contains code from open-source projects: | ||
var FingerprintJS=function(e){"use strict";var t=function(){return(t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function n(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function r(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(t){o(t)}}function u(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(u){o=[6,u],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}function o(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)r[i]=o[a];return r}function a(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function u(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function s(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}function c(e,t){return 0===(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function l(e,t){return[e[0]^t[0],e[1]^t[1]]}function d(e){return e=l(e,[0,e[0]>>>1]),e=l(e=u(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=l(e=u(e,[3301882366,444984403]),[0,e[0]>>>1])}function f(e,t){t=t||0;var n,r=(e=e||"").length%16,i=e.length-r,o=[0,t],f=[0,t],v=[0,0],g=[0,0],h=[2277735313,289559509],m=[1291169091,658871167];for(n=0;n<i;n+=16)v=[255&e.charCodeAt(n+4)|(255&e.charCodeAt(n+5))<<8|(255&e.charCodeAt(n+6))<<16|(255&e.charCodeAt(n+7))<<24,255&e.charCodeAt(n)|(255&e.charCodeAt(n+1))<<8|(255&e.charCodeAt(n+2))<<16|(255&e.charCodeAt(n+3))<<24],g=[255&e.charCodeAt(n+12)|(255&e.charCodeAt(n+13))<<8|(255&e.charCodeAt(n+14))<<16|(255&e.charCodeAt(n+15))<<24,255&e.charCodeAt(n+8)|(255&e.charCodeAt(n+9))<<8|(255&e.charCodeAt(n+10))<<16|(255&e.charCodeAt(n+11))<<24],v=s(v=u(v,h),31),o=a(o=s(o=l(o,v=u(v,m)),27),f),o=a(u(o,[0,5]),[0,1390208809]),g=s(g=u(g,m),33),f=a(f=s(f=l(f,g=u(g,h)),31),o),f=a(u(f,[0,5]),[0,944331445]);switch(v=[0,0],g=[0,0],r){case 15:g=l(g,c([0,e.charCodeAt(n+14)],48));case 14:g=l(g,c([0,e.charCodeAt(n+13)],40));case 13:g=l(g,c([0,e.charCodeAt(n+12)],32));case 12:g=l(g,c([0,e.charCodeAt(n+11)],24));case 11:g=l(g,c([0,e.charCodeAt(n+10)],16));case 10:g=l(g,c([0,e.charCodeAt(n+9)],8));case 9:g=u(g=l(g,[0,e.charCodeAt(n+8)]),m),f=l(f,g=u(g=s(g,33),h));case 8:v=l(v,c([0,e.charCodeAt(n+7)],56));case 7:v=l(v,c([0,e.charCodeAt(n+6)],48));case 6:v=l(v,c([0,e.charCodeAt(n+5)],40));case 5:v=l(v,c([0,e.charCodeAt(n+4)],32));case 4:v=l(v,c([0,e.charCodeAt(n+3)],24));case 3:v=l(v,c([0,e.charCodeAt(n+2)],16));case 2:v=l(v,c([0,e.charCodeAt(n+1)],8));case 1:v=u(v=l(v,[0,e.charCodeAt(n)]),h),o=l(o,v=u(v=s(v,31),m))}return o=a(o=l(o,[0,e.length]),f=l(f,[0,e.length])),f=a(f,o),o=a(o=d(o),f=d(f)),f=a(f,o),("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(f[0]>>>0).toString(16)).slice(-8)+("00000000"+(f[1]>>>0).toString(16)).slice(-8)}function v(e){return"number"==typeof e?0|e:parseInt(e)}function g(e){return"number"==typeof e?e:parseFloat(e)}function h(e){return e.reduce((function(e,t){return e+(t?1:0)}),0)}var m=window,p=navigator,b=document;function y(){return h(["MSCSSMatrix"in m,"msSetImmediate"in m,"msIndexedDB"in m,"msMaxTouchPoints"in p,"msPointerEnabled"in p])>=4}function w(){return h(["msWriteProfilerMark"in m,"MSStream"in m,"msLaunchUri"in p,"msSaveBlob"in p])>=3&&!y()}function E(){return h(["webkitPersistentStorage"in p,"webkitTemporaryStorage"in p,0===p.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in m,"BatteryManager"in m,"webkitMediaStream"in m,"webkitSpeechGrammar"in m])>=5}function R(){return h(["ApplePayError"in m,"CSSPrimitiveValue"in m,"Counter"in m,0===p.vendor.indexOf("Apple"),"getStorageUpdates"in p,"WebKitMediaKeys"in m])>=4}function S(){return h(["safari"in m,!("DeviceMotionEvent"in m),!("ongestureend"in m),!("standalone"in p)])>=3}var T=window,C=document;function k(e,t,n){(function(e){return e&&"function"==typeof e.setValueAtTime})(t)&&t.setValueAtTime(n,e.currentTime)}function I(e){return new Promise((function(t,n){e.oncomplete=function(e){return t(e.renderedBuffer)};var r=3,i=function(){switch(e.startRendering(),e.state){case"running":setTimeout((function(){return n(_("timeout"))}),1e3);break;case"suspended":C.hidden||r--,r>0?setTimeout(i,500):n(_("suspended"))}};i()}))}function O(e){for(var t=0,n=4500;n<5e3;++n)t+=Math.abs(e[n]);return t}function _(e){var t=new Error(e);return t.name=e,t}var A=document,x=["monospace","sans-serif","serif"],M=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"],P={fontStyle:"normal",fontWeight:"normal",letterSpacing:"normal",lineBreak:"auto",lineHeight:"normal",textTransform:"none",textAlign:"left",textDecoration:"none",textShadow:"none",whiteSpace:"normal",wordBreak:"normal",wordSpacing:"normal",position:"absolute",left:"-9999px",fontSize:"48px"};function L(e){return e.toDataURL()}var D=navigator,F=window;var N=navigator;var j=window;var U=window;var q=window;var B=document;var V={osCpu:function(){return navigator.oscpu},languages:function(){var e=[],t=N.language||N.userLanguage||N.browserLanguage||N.systemLanguage;if(void 0!==t&&e.push([t]),Array.isArray(N.languages))E()&&h([!("MediaSettingsRange"in m),"RTCEncodedAudioFrame"in m,""+m.Intl=="[object Intl]",""+m.Reflect=="[object Reflect]"])>=3||e.push(N.languages);else if("string"==typeof N.languages){var n=N.languages;n&&e.push(n.split(","))}return e},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return navigator.deviceMemory},screenResolution:function(){var e=[v(j.screen.width),v(j.screen.height)];return e.sort().reverse(),e},availableScreenResolution:function(){if(U.screen.availWidth&&U.screen.availHeight){var e=[v(U.screen.availWidth),v(U.screen.availHeight)];return e.sort().reverse(),e}},hardwareConcurrency:function(){try{var e=v(navigator.hardwareConcurrency);return isNaN(e)?1:e}catch(t){return 1}},timezoneOffset:function(){var e=(new Date).getFullYear();return Math.max(g(new Date(e,0,1).getTimezoneOffset()),g(new Date(e,6,1).getTimezoneOffset()))},timezone:function(){var e;if(null===(e=q.Intl)||void 0===e?void 0:e.DateTimeFormat)return(new q.Intl.DateTimeFormat).resolvedOptions().timeZone},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){if(!y()&&!w())try{return!!window.indexedDB}catch(e){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){return navigator.platform},plugins:function(){if(y())return[];if(navigator.plugins){for(var e=[],t=0;t<navigator.plugins.length;++t){var n=navigator.plugins[t];if(n){for(var r=[],i=0;i<n.length;++i){var o=n[i];r.push({type:o.type,suffixes:o.suffixes})}e.push({name:n.name,description:n.description,mimeTypes:r})}}return e}},canvas:function(){var e=function(){var e=document.createElement("canvas");return e.width=240,e.height=140,e.style.display="inline",[e,e.getContext("2d")]}(),t=e[0],n=e[1];if(!function(e,t){return!(!t||!e.toDataURL)}(t,n))return{winding:!1,data:""};n.rect(0,0,10,10),n.rect(2,2,6,6);var r=!n.isPointInPath(5,5,"evenodd");n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(125,1,62,20),n.fillStyle="#069",n.font="11pt no-real-font-123";var i="Cwm fjordbank 😃 gly";return n.fillText(i,2,15),n.fillStyle="rgba(102, 204, 0, 0.2)",n.font="18pt Arial",n.fillText(i,4,45),n.globalCompositeOperation="multiply",n.fillStyle="rgb(255,0,255)",n.beginPath(),n.arc(50,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(0,255,255)",n.beginPath(),n.arc(100,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,255,0)",n.beginPath(),n.arc(75,100,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,0,255)",n.arc(75,75,75,0,2*Math.PI,!0),n.arc(75,75,25,0,2*Math.PI,!0),n.fill("evenodd"),{winding:r,data:L(t)}},touchSupport:function(){var e,t=0;void 0!==D.maxTouchPoints?t=v(D.maxTouchPoints):void 0!==D.msMaxTouchPoints&&(t=D.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(n){e=!1}return{maxTouchPoints:t,touchEvent:e,touchStart:"ontouchstart"in F}},fonts:function(){var e=A.body,t=A.createElement("div"),n=A.createElement("div"),r={},i={},o=function(){var e=A.createElement("span");e.textContent="mmMwWLliI0O&1";for(var t=0,n=Object.keys(P);t<n.length;t++){var r=n[t];e.style[r]=P[r]}return e},a=function(e){return x.some((function(t,n){return e[n].offsetWidth!==r[t]||e[n].offsetHeight!==i[t]}))},u=x.map((function(e){var n=o();return n.style.fontFamily=e,t.appendChild(n),n}));e.appendChild(t);for(var s=0,c=x.length;s<c;s++)r[x[s]]=u[s].offsetWidth,i[x[s]]=u[s].offsetHeight;var l=function(){for(var e={},t=function(t){e[t]=x.map((function(e){var r=function(e,t){var n=o();return n.style.fontFamily="'"+e+"',"+t,n}(t,e);return n.appendChild(r),r}))},r=0,i=M;r<i.length;r++){t(i[r])}return e}();e.appendChild(n);for(var d=[],f=0,v=M.length;f<v;f++)a(l[M[f]])&&d.push(M[f]);return e.removeChild(n),e.removeChild(t),d},audio:function(){return r(this,void 0,void 0,(function(){var e,t,n,r,o,a;return i(this,(function(i){switch(i.label){case 0:if(R()&&!S()&&!(h(["DOMRectList"in m,"RTCPeerConnectionIceEvent"in m,"SVGGeometryElement"in m,"ontransitioncancel"in m])>=3))return[2,-1];if(!(e=T.OfflineAudioContext||T.webkitOfflineAudioContext))return[2,-2];t=new e(1,44100,44100),(n=t.createOscillator()).type="triangle",k(t,n.frequency,1e4),r=t.createDynamicsCompressor(),k(t,r.threshold,-50),k(t,r.knee,40),k(t,r.ratio,12),k(t,r.reduction,-20),k(t,r.attack,0),k(t,r.release,.25),n.connect(r),r.connect(t.destination),n.start(0),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,I(t)];case 2:return o=i.sent(),[3,5];case 3:if("timeout"===(a=i.sent()).name||"suspended"===a.name)return[2,-3];throw a;case 4:return n.disconnect(),r.disconnect(),[7];case 5:return[2,O(o.getChannelData(0))]}}))}))},pluginsSupport:function(){return void 0!==navigator.plugins},productSub:function(){return navigator.productSub},emptyEvalLength:function(){return eval.toString().length},errorFF:function(){try{throw"a"}catch(e){try{return e.toSource(),!0}catch(t){return!1}}},vendor:function(){return navigator.vendor},chrome:function(){return void 0!==window.chrome},cookiesEnabled:function(){try{B.cookie="cookietest=1";var e=-1!==B.cookie.indexOf("cookietest=");return B.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(t){return!1}}};function G(e,n,o){return r(this,void 0,void 0,(function(){var r,a,u,s,c,l,d,f,v;return i(this,(function(i){switch(i.label){case 0:r=Date.now(),a={},u=0,s=Object.keys(e),i.label=1;case 1:if(!(u<s.length))return[3,7];if(c=s[u],function(e,t){for(var n=0,r=e.length;n<r;++n)if(e[n]===t)return!0;return!1}(o,c))return[3,6];l=void 0,i.label=2;case 2:return i.trys.push([2,4,,5]),v={},[4,e[c](n)];case 3:return v.value=i.sent(),l=v,[3,5];case 4:return d=i.sent(),l=d&&"object"==typeof d&&"message"in d?{error:d}:{error:{message:d}},[3,5];case 5:f=Date.now(),a[c]=t(t({},l),{duration:f-r}),r=f,i.label=6;case 6:return u++,[3,1];case 7:return[2,a]}}))}))}function H(e){return f(function(e){for(var t="",n=0,r=Object.keys(e);n<r.length;n++){var i=r[n],o=e[i],a=o.error?"error":JSON.stringify(o.value);t+=(t?"|":"")+i.replace(/([:|\\])/g,"\\$1")+":"+a}return t}(e))}var W=function(){function e(){}return e.prototype.get=function(e){return void 0===e&&(e={}),r(this,void 0,void 0,(function(){var n,r;return i(this,(function(i){switch(i.label){case 0:return[4,G(V,void 0,[])];case 1:return n=i.sent(),r=function(e){var t;return{components:e,get visitorId(){return void 0===t&&(t=H(this.components)),t},set visitorId(e){t=e}}}(n),e.debug&&console.log("Copy the text below to get the debug data:\n\n```\nversion: 3.0.3\nuserAgent: "+navigator.userAgent+"\ngetOptions: "+JSON.stringify(e,void 0,2)+"\nvisitorId: "+r.visitorId+"\ncomponents: "+function(e){return JSON.stringify(e,(function(e,n){var r;return n instanceof Error?t(t({},n),{message:n.message,stack:null===(r=n.stack)||void 0===r?void 0:r.split("\n")}):n}),2)}(n)+"\n```"),[2,r]}}))}))},e}();function J(e){var t=(void 0===e?{}:e).delayFallback,n=void 0===t?50:t;return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,(t=n,new Promise((function(e){window.requestIdleCallback?window.requestIdleCallback((function(){return e()})):setTimeout(e,t)})))];case 1:return e.sent(),[2,new W]}var t}))}))}var K=f,z="3.2.0",X=document;function Q(e,t){return new Promise((function(n){return setTimeout((function(){return n(t)}),e)}))}function Y(e,t){return new Promise((function(n){var r=function(){return X.hidden?a():o()},i=function(e,t,n){var r,i=!1,o=e,a=0,u=function(){i||void 0!==r||(a=Date.now(),r=setTimeout((function(){i=!0,n()}),o))};return t&&u(),{start:u,stop:function(){i||void 0===r||(clearTimeout(r),r=void 0,o-=Date.now()-a)}}}(e,!X.hidden,(function(){X.removeEventListener("visibilitychange",r),n(t)})),o=i.start,a=i.stop;X.addEventListener("visibilitychange",r)}))}function Z(e,t){return r(this,void 0,void 0,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e()];case 1:return[2,r.sent()];case 2:return n=r.sent(),console.error(n),[2,t];case 3:return[2]}}))}))}function $(e,t){for(var n="",r=0;r<e;r++)n+=t.charAt(Math.random()*t.length);return n}function ee(e){return $(e,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function te(){return[8,4,4,4,12].map((function(e){return $(e,"0123456789abcdef")})).join("-")}function ne(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];for(var i=function(e){e&&Z((function(){return e.apply(void 0,o([t],n))}))},a=0,u=e;a<u.length;a++){var s=u[a];i(s)}}}var re=window;function ie(e,n){var r;return void 0===n&&(n=!1),t({name:e.name,message:e.message,stack:n?null===(r=e.stack)||void 0===r?void 0:r.split("\n"):e.stack},e)}function oe(){try{return re.self!==re.top}catch(e){return!0}}function ae(e){switch(e){case 0:return"Loading has started";case 1:return"Loading has succeeded";case 2:return"Loading has failed";case 3:return"Getting visitor identifier has started";case 4:return"Getting visitor identifier has succeeded";case 5:return"Getting visitor identifier has failed";case 6:return"TLS request has started";case 7:return"TLS request has succeeded";case 8:return"TLS request has failed";case 9:return"Getting fingerprint has started";case 10:return"Getting fingerprint has succeeded";case 11:return"Getting fingerprint has failed";case 12:return"Visitor identifier request has started";case 13:return"Visitor identifier request has succeeded";case 14:return"Visitor identifier request has failed"}}function ue(e,t,n,a,u){return r(this,void 0,void 0,(function(){var r,s,c;return i(this,(function(i){switch(i.label){case 0:(s=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];e&&Z((function(){var r=t.apply(void 0,n);if(r){var i=r[0],a=r.slice(1);e.apply(void 0,o([i],a))}}))})(t),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,u()];case 2:return r=i.sent(),[3,4];case 3:throw c=i.sent(),s(a,c),c;case 4:return s(n,r),[2,r]}}))}))}function se(){var e=window,t=e.__fpjs_pvid;return e.__fpjs_pvid="string"==typeof t?t:ee(10)}function ce(e,t,n){return-1!==e.indexOf(t)}var le=[0,1,2];function de(e){return void 0===e&&(e="[FingerprintJS Pro] "),function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(ce([2,5,8,11,14],t))console.error(fe(e,t,n));else if(ce([10],t)){var i=fe(e,t,n),o=n[2],a=Object.keys(o).some((function(e){return o[e].error}));a?console.warn(i):console.log(i)}else console.log(fe(e,t,n))}}function fe(e,t,n){void 0===n&&(n=[]);var r=""+e+(new Date).toISOString()+": "+ae(t);return n.length&&(r+="\n```\n"+(n.map((function(e){return JSON.stringify(e,(function(e,t){return t instanceof Error?ie(t,!0):t}),2)})).join("\n")+"\n```")),r}var ve=navigator;function ge(e){var t=e.url,n=e.method,r=void 0===n?"get":n,i=e.body,o=e.headers,a=e.withCredentials,u=void 0!==a&&a,s=e.timeout;return new Promise((function(e,n){var a=new XMLHttpRequest;for(var c in a.open(r,t,!0),a.withCredentials=u,a.timeout=void 0===s?0:Math.max(s,1),o)a.setRequestHeader(c,o[c]);a.onload=function(){return e(function(e){return{text:e.responseText,status:e.status,statusText:e.statusText}}(a))},a.ontimeout=function(){return n(he("TimeoutError","The request timed out"))},a.onabort=function(){return n(he("AbortError","The request is aborted"))},a.onerror=function(){return n(he("TypeError","Connection error"))},a.send(i)}))}function he(e,t){var n=new Error(t);return n.name=e,n}function me(e){var t=e.url,n=e.body;if(ve.sendBeacon)return ve.sendBeacon(t,n);var r=new XMLHttpRequest;r.open("POST",t,!function(){var e,t=null===(e=re.event)||void 0===e?void 0:e.type;return"pagehide"===t||"unload"===t}()),n instanceof Blob&&r.setRequestHeader("Content-Type",n.type);try{r.send(n)}catch(i){return!1}return!0}var pe=document;var be=window,ye=document,we=performance,Ee=function(){function e(e){var t=this;this.onReportReady=e,this.isUnloaded=!1,this.pageStartTimestamp=function(){var e,t;if(we.timeOrigin){var n=null===(t=null===(e=we.getEntriesByType)||void 0===e?void 0:e.call(we,"navigation"))||void 0===t?void 0:t[0];if(n)return we.timeOrigin+(n.responseStart||n.unloadEventEnd)}return we.timing.domLoading||we.timing.responseStart||we.timing.unloadEventEnd}(),this.events={},this.addEvent=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i={time:new Date,type:"agentEvent",name:e,args:n};if(0!==e&&3!==e||(i.isPageVisible=Ce(),i.isFullscreen=ke()),t.storeAgentEvent(i),ce([2],e)){var o=n[0];t.submitReport(o,void 0)}else if(ce([4,5],e)){o=n[0];var a=n[1];t.submitReport(o,a)}},this.handleVisibilityChange=function(){t.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:Ce()})},this.handleFullscreenChange=function(){t.storeEnvironmentEvent({time:new Date,type:"fullscreenToggle",isFullscreen:ke()})},this.handlePageUnload=function(){t.storeEnvironmentEvent({time:new Date,type:"pageUnload"});for(var e=0,n=Object.keys(t.events);e<n.length;e++){var r=n[e],i=t.events[r];if(0===Object.keys(i.getCalls).length)t.submitReport(r,void 0);else for(var o=0,a=Object.keys(i.getCalls);o<a.length;o++){var u=a[o];Re(i.getCalls[u])||t.submitReport(r,u)}}t.isUnloaded=!0},ye.addEventListener("visibilitychange",this.handleVisibilityChange),ye.addEventListener("pageshow",(function(){return t.handlePageTransition(!0)})),ye.addEventListener("pagehide",(function(){return t.handlePageTransition(!1)})),function(e,t){for(var n=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],r=0,i=n;r<i.length;r++){var o=i[r];pe.addEventListener(o,e,t)}}(this.handleFullscreenChange),be.addEventListener("unload",this.handlePageUnload)}return e.prototype.handlePageTransition=function(e){this.storeEnvironmentEvent({time:new Date,type:"pageTransition",isShown:e})},e.prototype.storeAgentEvent=function(e){var t=e.args[0];if(this.events[t]||(this.events[t]={loadEvents:[],getCalls:{}}),ce(le,e.name,e.args))this.events[t].loadEvents.push(e);else{var n=e.args[1];this.events[t].getCalls[n]||(this.events[t].getCalls[n]=[]),this.events[t].getCalls[n].push(e)}},e.prototype.storeEnvironmentEvent=function(e){for(var t=0,n=Object.keys(this.events);t<n.length;t++){var r=n[t],i=this.events[r];i.loadEvents.some((function(e){return"agentEvent"===e.type&&(1===e.name||2===e.name)}))||i.loadEvents.push(e);for(var o=0,a=Object.keys(i.getCalls);o<a.length;o++){var u=a[o],s=i.getCalls[u];Re(s)||s.push(e)}}},e.prototype.submitReport=function(e,t){if(!this.isUnloaded){var n=function(e,t){for(var n,r,i,o,a,u,s,c,l,d,f,v,g,h,m,p,b,y,w,E,R,S,T,C,k,I,O,_,A,x,M,P,L,D,F=function(e){for(var t={},n={},r=0,i=e;r<i.length;r++){var o=i[r];"agentEvent"===o.type?t[o.name]=o:n[o.type]=o}return{agentEventMap:t,otherEventMap:n}}(e),N=F.agentEventMap,j=F.otherEventMap,U=null!==(r=null===(n=j.pageUnload)||void 0===n?void 0:n.time)&&void 0!==r?r:new Date,q="null",B=0,V=[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]];B<V.length;B++){var G=V[B],H=G[0],W=G[1];if(N[H]){q=W;break}}return{time:null!==(c=null!==(u=null!==(o=null===(i=N[4])||void 0===i?void 0:i.time)&&void 0!==o?o:null===(a=N[5])||void 0===a?void 0:a.time)&&void 0!==u?u:null===(s=N[2])||void 0===s?void 0:s.time)&&void 0!==c?c:U,pageUrl:location.href,pageStartTime:new Date(t),isInIframe:oe(),agentVersion:null===(l=N[0])||void 0===l?void 0:l.args[1],userAgent:navigator.userAgent,pageViewId:se(),agentId:null===(d=N[0])||void 0===d?void 0:d.args[0],getCallId:null===(f=N[3])||void 0===f?void 0:f.args[1],requestId:null===(v=N[12])||void 0===v?void 0:v.args[2],visitorId:null===(g=N[4])||void 0===g?void 0:g.args[2],identificationState:q,load:Se(U,null===(h=N[0])||void 0===h?void 0:h.time,null===(m=N[1])||void 0===m?void 0:m.time,null===(p=N[2])||void 0===p?void 0:p.time,null===(b=N[2])||void 0===b?void 0:b.args[1]),get:Se(U,null===(y=N[3])||void 0===y?void 0:y.time,null===(w=N[4])||void 0===w?void 0:w.time,null===(E=N[5])||void 0===E?void 0:E.time,null===(R=N[5])||void 0===R?void 0:R.args[2]),tls:Se(U,null===(S=N[6])||void 0===S?void 0:S.time,null===(T=N[7])||void 0===T?void 0:T.time,null===(C=N[8])||void 0===C?void 0:C.time,null===(k=N[8])||void 0===k?void 0:k.args[2]),fingerprint:Se(U,null===(I=N[9])||void 0===I?void 0:I.time,null===(O=N[10])||void 0===O?void 0:O.time,null===(_=N[11])||void 0===_?void 0:_.time,null===(A=N[11])||void 0===A?void 0:A.args[2]),visitorIdRequest:Se(U,null===(x=N[12])||void 0===x?void 0:x.time,null===(M=N[13])||void 0===M?void 0:M.time,null===(P=N[14])||void 0===P?void 0:P.time,null===(L=N[14])||void 0===L?void 0:L.args[2]),failedFingerprintComponents:Te(null===(D=N[10])||void 0===D?void 0:D.args[2]),events:e}}(function(e,t,n){var r,i=[];e[t]&&(i.push.apply(i,e[t].loadEvents),void 0!==n&&i.push.apply(i,null!==(r=e[t].getCalls[n])&&void 0!==r?r:[]));return i}(this.events,e,t),this.pageStartTimestamp);try{this.onReportReady(n)}catch(r){console.error(r)}}},e}();function Re(e){return e.some((function(e){return"agentEvent"===e.type&&(4===e.name||5===e.name)}))}function Se(e,t,n,r,i){if(void 0!==t)return void 0!==n?{duration:n.getTime()-t.getTime(),state:"success"}:void 0!==r?{duration:r.getTime()-t.getTime(),state:"fail",error:null!=i?i:new Error("unknown")}:{duration:e.getTime()-t.getTime(),state:"incomplete"}}function Te(e){return e?Object.keys(e).filter((function(t){return e[t].error})):[]}function Ce(){return!ye.hidden}function ke(){return!!(pe.fullscreenElement||pe.msFullscreenElement||pe.mozFullScreenElement||pe.webkitFullscreenElement)}var Ie={null:{level:"info",message:"Load() wasn't called"},loading:{level:"warning",message:"Load() incomplete"},loadSuccess:{level:"info",message:"Load() succeeded, get() wasn't called"},loadFail:{level:"error",message:"Load() failed"},getting:{level:"warning",message:"Get() incomplete"},getSuccess:{level:"info",message:"Get() succeeded"},getFail:{level:"error",message:"Get() failed"}};function Oe(e){var n={type:"manual",level:"debug",source:"client",timestamp_ms:e.time.getTime()};switch(e.type){case"pageVisibilityToggle":return t(t({},n),{body:{message:"Page becomes "+(e.isVisible?"visible (in foreground)":"invisible (in background)")}});case"pageTransition":return t(t({},n),{body:{message:e.isShown?"Page is restored from browser history":"Page is about to go to browser history"}});case"fullscreenToggle":return t(t({},n),{body:{message:"Programmatic fullscreen "+(e.isFullscreen?"on":"off")}});case"pageUnload":return t(t({},n),{body:{message:"Page is about to unload (terminate)"}})}var r=t(t({},n),{level:"info",body:{message:ae(e.name),isPageVisible:e.isPageVisible,isFullscreen:e.isFullscreen}});switch(e.name){case 0:case 3:return t(t({},r),{body:t(t({},r.body),{options:e.args[2]})});case 1:case 9:return r;case 2:return t(t({},r),{level:"error",body:t(t({},r.body),{error:e.args[1]})});case 4:return t(t({},r),{body:t(t({},r.body),{result:e.args[3]})});case 7:case 10:return t(t({},r),{body:t(t({},r.body),{result:e.args[2]})});case 5:case 8:case 11:case 14:return t(t({},r),{level:"error",body:t(t({},r.body),{error:e.args[2]})});case 6:return t(t({},r),{body:t(t({},r.body),{endpoint:e.args[2],timeout:e.args[3]})});case 12:return t(t({},r),{body:t(t({},r.body),{endpoint:e.args[3],request:e.args[4]})});case 13:return t(t({},r),{body:t(t({},r.body),{status:e.args[2],body:e.args[3].slice(0,4096)})})}}var _e={us:"https://api.sjpf.io",eu:"https://tls-eun1.fpapi.io"};var Ae="Client timeout",xe="Network connection error",Me="Network request aborted",Pe="n/a";function Le(e,t){if(t)return t;var n="api.fpjs.io";return"us"!==e&&(n=e+"."+n),"https://"+n}function De(e,o){var a=e.endpoint,u=e.extendedResult,s=n(e,["endpoint","extendedResult"]);return r(this,void 0,void 0,(function(){var e,n;return i(this,(function(r){switch(r.label){case 0:return e=ee(20),n=function(e){var n,r=e.components,i=e.token,o=e.visitorId,a=e.tag,u=e.ipResolution,s=e.extendedResult,c=e.linkedId,l=e.tls,d=e.tlsError,f=e.requestId,v=Object.keys(r).reduce((function(e,t){return e+r[t].duration}),0),g="full"===u?2:1;return(n={}).rid=f,n.cv=z,n.c=i,n.url=location.href,n.d=v,n.vid=o[0]||o[1]||void 0,n.ls=o[1]?1:void 0,n.t=function(e){if(e&&"object"==typeof e)return e;if(null==e)return;return{tag:e}}(a),n.i=g,n.cbd=s?1:void 0,n.lid=c,n.cr=document.referrer||void 0,n.j=l,n.je=null==d?void 0:d.message,n.k1=je(r.osCpu),n.k2=je(r.languages),n.k3=je(r.colorDepth),n.k4=je(r.deviceMemory),n.k5=je(r.screenResolution),n.k6=je(r.availableScreenResolution,void 0,[]),n.k7=je(r.hardwareConcurrency),n.k8=je(r.timezoneOffset),n.k9=je(r.timezone),n.k10=Ue(je(r.sessionStorage)),n.k11=Ue(je(r.localStorage)),n.k12=Ue(je(r.indexedDB)),n.k13=Ue(je(r.openDatabase)),n.k14=je(r.cpuClass),n.k15=je(r.platform),n.k16=je(r.plugins,[]),n.k17=function(e){var n=e.value;if(!n)return;return t(t({},n),{data:K(n.data)})}(r.canvas),n.k18=0,n.k19=je(r.touchSupport),n.k20=je(r.fonts,[]),n.k21=je(r.audio,-4),n.k22=Ue(je(r.pluginsSupport)),n.k23=je(r.productSub),n.k24=je(r.emptyEvalLength),n.k25=Ue(je(r.errorFF)),n.k26=Ue(je(r[0])),n.k27=je(r.vendor),n.k28=Ue(je(r.chrome)),n.k29=Ue(je(r[1])),n.k30=Ue(je(r[2])),n.k31=Ue(je(r[3],!1)),n.k32=Ue(je(r.cookiesEnabled,!1)),n.k33=Ue(je(r[4])),n}(t({extendedResult:u,requestId:e},s)),[4,Fe(a,n,o)];case 1:return[2,Ne(r.sent(),e,u)]}}))}))}function Fe(e,t,n){var o=n[0],a=n[1],u=n[2];return r(this,void 0,void 0,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,ue(o,(function(){return[12,a,u,t.rid,e,t]}),(function(e){return[13,a,u,e.status,e.text]}),(function(e){return[14,a,u,e]}),(function(){return ge({url:e,method:"post",body:JSON.stringify(t),headers:{"Content-Type":"text/plain"},withCredentials:!0})}))];case 1:return[2,r.sent()];case 2:throw n=r.sent(),new Error("AbortError"===n.name?Me:xe);case 3:return[2]}}))}))}function Ne(e,t,n){return r(this,void 0,void 0,(function(){var r;return i(this,(function(i){if(404===e.status||e.status>=500)throw new Error(e.statusText);try{r=JSON.parse(e.text)}catch(o){throw new Error(e.text)}if(function(e){return e&&"object"==typeof e&&"string"==typeof e.visitorId&&e.visitorId!==Pe}(r))return[2,qe(r)];if(function(e){return e&&"object"==typeof e&&e.visitorId===Pe}(r)){if("Not available for crawl bots"===r.reason||"Not available when User-Agent is unspecified"===r.reason)return[2,Be(r.reason,t,n)];throw new Error(r.reason)}throw new Error(e.text)}))}))}function je(e,t,n){return e.error?t:void 0===e.value?n:e.value}function Ue(e){return!0===e?1:!1===e?0:e}function qe(e){var r=e,i=r.botProbability,o=n(r,["botProbability"]),a=t({},o);return i&&(a.bot={probability:i}),a}function Be(e,n,r){var i={requestId:n,visitorFound:!1,visitorId:""};if(!r)return i;var o=t(t({},i),{bot:{probability:1},incognito:!1,browserName:Pe,browserVersion:Pe,device:Pe,ip:Pe,ipLocation:{},os:Pe,osVersion:Pe});return"Not available for crawl bots"===e&&(o.bot.safe=!0),o}var Ve=window,Ge=document;var He=window;var We=navigator,Je=window;function Ke(){var e,t,n,r=(null===(e=We.userAgent)||void 0===e?void 0:e.indexOf("Mac OS"))>0&&-1===(null===(t=We.userAgent)||void 0===t?void 0:t.indexOf("iPhone")),i=(null===(n=We.userAgent)||void 0===n?void 0:n.indexOf("CrOS"))>0;return r||i?3221225472:1073741824}function ze(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return"storage"in We&&"estimate"in We.storage?[4,We.storage.estimate()]:[3,2];case 1:return[2,!!(e=t.sent().quota)&&e<Ke()];case 2:return[2,!1]}}))}))}var Xe=window;function Qe(){return r(this,void 0,void 0,(function(){return i(this,(function(e){return S()?[2,Ye()]:[2,Ze()]}))}))}function Ye(){if(!Xe.safari)return!1;try{Xe.safari.pushNotification.requestPermission("https://example.com","private",{},(function(){}))}catch(t){return e=t,!new RegExp([103,101,115,116,117,114,101].map((function(e){return String.fromCharCode(e)})).join("")).test(e)}var e;throw new Error("Unexpected lack of error")}function Ze(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:(e=document.createElement("iframe")).style.display="none",t.label=1;case 1:return t.trys.push([1,,3,4]),document.body.appendChild(e),[4,Promise.race([Q(20,!1),new Promise((function(t){e.contentWindow?e.contentWindow.applicationCache.addEventListener("error",(function(){return t(!0)})):t(!1)}))])];case 2:return[2,t.sent()];case 3:return e.remove(),[7];case 4:return[2]}}))}))}function $e(){try{Xe.openDatabase(null,null,null,null)}catch(e){return!0}try{return Xe.localStorage.setItem("test","1"),Xe.localStorage.removeItem("test"),!1}catch(e){return!0}}var et="_inc",tt=[[function(){return E()},function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){return function(){var e=We.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);if(!e)throw"UserAgent is not Google Chrome";return parseInt(e[2],10)}()>=76?[2,ze()]:[2,new Promise((function(e){Je.webkitRequestFileSystem(0,1,(function(){return e(!1)}),(function(){return e(!0)}))}))]}))}))}],[function(){return R()},function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){return function(){var e=navigator.userAgent.match(/Version\/([0-9._]+).*Safari/);if(!e)throw new Error("UserAgent is not Safari");var t=e[1].split(".").map((function(e){return isNaN(parseInt(e))?0:parseInt(e)})),n=t[0],r=t[1],i=t[2];return{major:n,minor:r,patch:i}}().major<13?[2,$e()]:[2,Qe()]}))}))}],[function(){return function(){var e;return h(["buildID"in p,(null===(e=b.documentElement)||void 0===e?void 0:e.style)&&"MozAppearance"in b.documentElement.style,"MediaRecorderErrorEvent"in m,"mozInnerScreenX"in m,"CSSMozDocumentRule"in m,"CanvasCaptureMediaStream"in m])>=4}()},function(){return new Promise((function(e){try{var t=He.indexedDB.open("test");t.onerror=function(){return e(!0)},t.onsuccess=function(){return e(!1)}}catch(n){return e(!0)}}))}],[function(){return y()||w()},function(){try{if(!window.indexedDB)return!0}catch(e){return!0}return!1}]];function nt(){return r(this,void 0,void 0,(function(){var e,t,n,r,o;return i(this,(function(i){switch(i.label){case 0:e=0,t=tt,i.label=1;case 1:return e<t.length?(n=t[e],r=n[0],o=n[1],r()?[4,o()]:[3,3]):[3,4];case 2:return[2,i.sent()];case 3:return e++,[3,1];case 4:return[2,!1]}}))}))}function rt(e,t){if(0==t.length||t.length>e.length)return-1;for(var n=0;n<e.length;n++){for(var r=0,i=0;i<t.length;i++){if(e[n+i]!==t[i]){r=0;break}r++}if(r==t.length)return n}return-1}var it,ot=window,at=document;var ut=((it={})[0]=function(){return void 0!==navigator.webdriver},it[1]=function(){return r(this,void 0,void 0,(function(){var e,t;return i(this,(function(n){switch(n.label){case 0:return(e=navigator.permissions)?[4,e.query({name:"notifications"})]:[2,void 0];case 1:return t=n.sent(),"undefined"==typeof Notification?[2,void 0]:[2,"denied"===Notification.permission&&"prompt"===t.state]}}))}))},it[2]=function(){var e=Ge.documentElement;return"webdriver"in Ve||"_Selenium_IDE_Recorder"in Ve||"callSelenium"in Ve||"_selenium"in Ve||"__webdriver_script_fn"in Ge||"__driver_evaluate"in Ge||"__webdriver_evaluate"in Ge||"__selenium_evaluate"in Ge||"__fxdriver_evaluate"in Ge||"__driver_unwrapped"in Ge||"__webdriver_unwrapped"in Ge||"__selenium_unwrapped"in Ge||"__fxdriver_unwrapped"in Ge||"__webdriver_script_func"in Ge||null!==e.getAttribute("selenium")||null!==e.getAttribute("webdriver")||null!==e.getAttribute("driver")},it[3]=function(){return r(this,void 0,void 0,(function(){var e,t;return i(this,(function(n){switch(n.label){case 0:if(void 0!==(e=function(){try{var e=localStorage.getItem(et);if(!e)return;return"1"===e}catch(t){return}}()))return[2,e];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,nt()];case 2:return function(e){try{localStorage.setItem(et,e?"1":"0")}catch(t){}}(t=n.sent()),[2,t];case 3:return n.sent(),[2,!1];case 4:return[2]}}))}))},it[4]=function(){if(!E())return!1;try{if([66,114,97,118,101].map((function(e){return String.fromCharCode(e)})).join("")in ot)return!0;var e=at.createElement("canvas");e.width=4,e.height=4,e.style.display="inline";var t=e.toDataURL();if(""===t)return!0;for(var n=window.atob(t.split(",")[1]),r=n.length,i=new Uint8Array(r),o=0;o<r;o++)i[o]=n.charCodeAt(o);var a=rt(i,[73,68,65,84,24]);if(-1===a)return!1;var u=rt(i,[73,69,78,68]);return-1!==a&&1321!==i.slice(a+5,u).reduce((function(e,t){return e+t}),0)}catch(s){return!1}},it);function st(){return G(ut,void 0,[])}var ct=document,lt=location;function dt(e){for(var t=e+"=",n=0,r=ct.cookie.split(";");n<r.length;n++){for(var i=r[n],o=0;" "===i[o]&&o<i.length;)++o;if(i.indexOf(t)===o)return i.slice(o+t.length)}}function ft(e,t,n,r){var i=e+"="+t,o="expires="+new Date(Date.now()+24*n*60*60*1e3).toUTCString(),a=r?"domain="+r:"";ct.cookie=[i,"path=/",o,a].join("; ")}function vt(e,t,n){var r=lt.hostname;gt(r,(function(t){!function(e,t){ft(e,"",-1,t)}(e,t)})),gt(r,(function(r){return ft(e,t,n,r),dt(e)!==t}))&&ft(e,t,n)}function gt(e,t){var n=e.length;do{if(n=n>0?e.lastIndexOf(".",n-1):-1,!1===t(e.slice(n+1)))return!1}while(n>=0);return!0}var ht="_vid";function mt(e){return void 0===e&&(e=ht),[dt(e),bt(e)]}function pt(e,t){void 0===t&&(t=ht),vt(t,e,365),function(e,t){var n;try{null===(n=null===localStorage||void 0===localStorage?void 0:localStorage.setItem)||void 0===n||n.call(localStorage,e,t)}catch(r){}}(t,e)}function bt(e){var t,n;try{return null!==(n=null===(t=null===localStorage||void 0===localStorage?void 0:localStorage.getItem)||void 0===t?void 0:t.call(localStorage,e))&&void 0!==n?n:void 0}catch(r){}}function yt(e,n,o){var a=this,u=o.token,s=o.region,c=void 0===s?"us":s,l=o.endpoint,d=o.tlsEndpoint,f=o.storageKey,v=o.debug;var g=function(n,o,s,v,g,p,b){return r(a,void 0,void 0,(function(){var r,a,y,w;return i(this,(function(i){switch(i.label){case 0:return[4,Promise.all([h(c,d,v,!!s,b),m(b)])];case 1:return r=i.sent(),a=r[0],y=r[1],[4,De(t(t({},a),{token:u,endpoint:Le(c,l),components:y,tag:n,visitorId:mt(f),linkedId:o,extendedResult:g,ipResolution:p}),[b[0],e,b[1]])];case 2:return pt((w=i.sent()).visitorId,f),[2,w]}}))}))},h=function(t,n,o,u,s){var c=s[0],l=s[1];return r(a,void 0,void 0,(function(){var a;return i(this,(function(s){return u?[2,void 0]:(a=function(e,t){return t||_e[e]}(t,n),[2,ue(c,(function(){return[6,e,l,a,o]}),(function(t){return[7,e,l,t]}),(function(t){return[8,e,l,t]}),(function(){return function(e,t){return r(this,void 0,void 0,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,ge({url:e,timeout:t})];case 1:return n=r.sent(),[3,3];case 2:switch(r.sent().name){case"AbortError":throw new Error("Abort");case"TimeoutError":throw new Error("Timeout");default:throw new Error("Connection error")}case 3:if(200===n.status)return[2,n.text];throw new Error(n.text.slice(0,255))}}))}))}(a,o)})).then((function(e){return{tls:e}}),(function(e){return{tlsError:e}}))])}))}))},m=function(o){var u=o[0],s=o[1];return ue(u,(function(){return[9,e,s]}),(function(t){return[10,e,s,t]}),(function(t){return[11,e,s,t]}),(function(){return r(a,void 0,void 0,(function(){var e,r;return i(this,(function(i){switch(i.label){case 0:return[4,n.get()];case 1:return e=i.sent(),[4,st()];case 2:return r=i.sent(),[2,t(t({},e.components),r)]}}))}))}))};return{get:function(t){void 0===t&&(t={});var n=ee(8),r=ne([v,t.debug&&de()]);return ue(r,(function(){return[3,e,n,t]}),(function(t){return[4,e,n,t.visitorId,t]}),(function(t){return[5,e,n,t]}),(function(){var e=t.timeout,i=void 0===e?1e4:e,o=t.tag,a=t.linkedId,u=t.disableTls,s=t.extendedResult,c=t.ipResolution;return Promise.race([Y(i).then((function(){throw new Error(Ae)})),g(o,a,u,i/2,s,c,[r,n])])}))}}}function wt(e){var t=this,n=ee(8);return ue(e.debug,(function(){return[0,n,z,e]}),(function(){return[1,n]}),(function(e){return[2,n,e]}),(function(){return r(t,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:if(!e.token||"string"!=typeof e.token)throw new Error("Token required");return[4,J({delayFallback:e.delayFallback})];case 1:return t=r.sent(),[2,yt(n,t,e)]}}))}))}))}var Et="Token required",Rt="Token not found",St="Token expired",Tt="Request cannot be parsed",Ct="Request failed",kt="Request failed to process",It="Too many requests, rate limit exceeded",Ot={load:wt,ERROR_CLIENT_TIMEOUT:Ae,ERROR_NETWORK_CONNECTION:xe,ERROR_NETWORK_ABORT:Me,ERROR_TOKEN_MISSING:Et,ERROR_TOKEN_INVALID:Rt,ERROR_TOKEN_EXPIRED:St,ERROR_BAD_REQUEST_FORMAT:Tt,ERROR_GENERAL_SERVER_FAILURE:Ct,ERROR_SERVER_TIMEOUT:kt,ERROR_RATE_LIMIT:It};return e.ERROR_BAD_REQUEST_FORMAT=Tt,e.ERROR_CLIENT_TIMEOUT=Ae,e.ERROR_GENERAL_SERVER_FAILURE=Ct,e.ERROR_NETWORK_ABORT=Me,e.ERROR_NETWORK_CONNECTION=xe,e.ERROR_RATE_LIMIT=It,e.ERROR_SERVER_TIMEOUT=kt,e.ERROR_TOKEN_EXPIRED=St,e.ERROR_TOKEN_INVALID=Rt,e.ERROR_TOKEN_MISSING=Et,e.default=Ot,e.load=wt,e.makeConsoleDebugger=de,e.makeMulticastDebugger=ne,e.makeRemoteDebugger=function(e){var t=this,n=e.clientId,a=e.token,u=e.endpoint,s=void 0===u?"https://api.rollbar.com/api/1/item/":u;return new Ee((function(e){return r(t,void 0,void 0,(function(){var t,r;return i(this,(function(i){switch(i.label){case 0:t=JSON.stringify(function(e,t,n){var r,i=Ie[e.identificationState],a=i.level,u=i.message;return{access_token:n,data:{environment:t,level:a,timestamp:Math.round(e.time.getTime()/1e3),platform:"browser",framework:"FingerprintJS Pro",language:"javascript",uuid:te(),notifier:{name:"FingerprintJS Pro monitoring",version:z},request:{url:e.pageUrl,query_string:(null!==(r=/\?.*$/.exec(e.pageUrl))&&void 0!==r?r:[""])[0],user_ip:"$remote_ip"},client:{javascript:{browser:e.userAgent,code_version:e.agentVersion}},body:{telemetry:o([{level:"debug",source:"client",timestamp_ms:e.pageStartTime.getTime(),type:"manual",body:{message:"Page starts"}}],e.events.map(Oe)),message:{body:u}},custom:{isInIframe:e.isInIframe,pageViewId:e.pageViewId,agentId:e.agentId,getCallId:e.getCallId,requestId:e.requestId,visitorId:e.visitorId,identificationState:e.identificationState,load:e.load,get:e.get,tls:e.tls,fingerprint:e.fingerprint,visitorIdRequest:e.visitorIdRequest,failedFingerprintComponents:e.failedFingerprintComponents.map((function(e){return e+","})).join()||void 0}}}}(e,n,a),(function(e,t){return t instanceof Error?ie(t):t})),r=0,i.label=1;case 1:return me({url:s,body:t})?[3,5]:[3,2];case 2:return[4,Q(1e3*Math.min(r+r,10))];case 3:i.sent(),i.label=4;case 4:return++r,[3,1];case 5:return[2]}}))}))})).addEvent},e}({}); | ||
var FingerprintJS=function(e){"use strict";var t=function(){return(t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function n(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function r(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(t){o(t)}}function u(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(u){o=[6,u],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}function o(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)r[i]=o[a];return r}function a(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function u(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function s(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}function c(e,t){return 0===(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function l(e,t){return[e[0]^t[0],e[1]^t[1]]}function d(e){return e=l(e,[0,e[0]>>>1]),e=l(e=u(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=l(e=u(e,[3301882366,444984403]),[0,e[0]>>>1])}function f(e,t){t=t||0;var n,r=(e=e||"").length%16,i=e.length-r,o=[0,t],f=[0,t],v=[0,0],g=[0,0],h=[2277735313,289559509],p=[1291169091,658871167];for(n=0;n<i;n+=16)v=[255&e.charCodeAt(n+4)|(255&e.charCodeAt(n+5))<<8|(255&e.charCodeAt(n+6))<<16|(255&e.charCodeAt(n+7))<<24,255&e.charCodeAt(n)|(255&e.charCodeAt(n+1))<<8|(255&e.charCodeAt(n+2))<<16|(255&e.charCodeAt(n+3))<<24],g=[255&e.charCodeAt(n+12)|(255&e.charCodeAt(n+13))<<8|(255&e.charCodeAt(n+14))<<16|(255&e.charCodeAt(n+15))<<24,255&e.charCodeAt(n+8)|(255&e.charCodeAt(n+9))<<8|(255&e.charCodeAt(n+10))<<16|(255&e.charCodeAt(n+11))<<24],v=s(v=u(v,h),31),o=a(o=s(o=l(o,v=u(v,p)),27),f),o=a(u(o,[0,5]),[0,1390208809]),g=s(g=u(g,p),33),f=a(f=s(f=l(f,g=u(g,h)),31),o),f=a(u(f,[0,5]),[0,944331445]);switch(v=[0,0],g=[0,0],r){case 15:g=l(g,c([0,e.charCodeAt(n+14)],48));case 14:g=l(g,c([0,e.charCodeAt(n+13)],40));case 13:g=l(g,c([0,e.charCodeAt(n+12)],32));case 12:g=l(g,c([0,e.charCodeAt(n+11)],24));case 11:g=l(g,c([0,e.charCodeAt(n+10)],16));case 10:g=l(g,c([0,e.charCodeAt(n+9)],8));case 9:g=u(g=l(g,[0,e.charCodeAt(n+8)]),p),f=l(f,g=u(g=s(g,33),h));case 8:v=l(v,c([0,e.charCodeAt(n+7)],56));case 7:v=l(v,c([0,e.charCodeAt(n+6)],48));case 6:v=l(v,c([0,e.charCodeAt(n+5)],40));case 5:v=l(v,c([0,e.charCodeAt(n+4)],32));case 4:v=l(v,c([0,e.charCodeAt(n+3)],24));case 3:v=l(v,c([0,e.charCodeAt(n+2)],16));case 2:v=l(v,c([0,e.charCodeAt(n+1)],8));case 1:v=u(v=l(v,[0,e.charCodeAt(n)]),h),o=l(o,v=u(v=s(v,31),p))}return o=a(o=l(o,[0,e.length]),f=l(f,[0,e.length])),f=a(f,o),o=a(o=d(o),f=d(f)),f=a(f,o),("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(f[0]>>>0).toString(16)).slice(-8)+("00000000"+(f[1]>>>0).toString(16)).slice(-8)}function v(e){return"number"==typeof e?0|e:parseInt(e)}function g(e){return"number"==typeof e?e:parseFloat(e)}function h(e){return e.reduce((function(e,t){return e+(t?1:0)}),0)}var p=window,m=navigator,b=document;function w(){return h(["MSCSSMatrix"in p,"msSetImmediate"in p,"msIndexedDB"in p,"msMaxTouchPoints"in m,"msPointerEnabled"in m])>=4}function y(){return h(["msWriteProfilerMark"in p,"MSStream"in p,"msLaunchUri"in m,"msSaveBlob"in m])>=3&&!w()}function E(){return h(["webkitPersistentStorage"in m,"webkitTemporaryStorage"in m,0===m.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in p,"BatteryManager"in p,"webkitMediaStream"in p,"webkitSpeechGrammar"in p])>=5}function S(){return h(["ApplePayError"in p,"CSSPrimitiveValue"in p,"Counter"in p,0===m.vendor.indexOf("Apple"),"getStorageUpdates"in m,"WebKitMediaKeys"in p])>=4}function R(){return h(["safari"in p,!("DeviceMotionEvent"in p),!("ongestureend"in p),!("standalone"in m)])>=3}var C=window,I=document;function k(e,t,n){(function(e){return e&&"function"==typeof e.setValueAtTime})(t)&&t.setValueAtTime(n,e.currentTime)}function T(e){return new Promise((function(t,n){e.oncomplete=function(e){return t(e.renderedBuffer)};var r=3,i=function(){switch(e.startRendering(),e.state){case"running":setTimeout((function(){return n(_("timeout"))}),1e3);break;case"suspended":I.hidden||r--,r>0?setTimeout(i,500):n(_("suspended"))}};i()}))}function O(e){for(var t=0,n=4500;n<5e3;++n)t+=Math.abs(e[n]);return t}function _(e){var t=new Error(e);return t.name=e,t}var A=document,x=["monospace","sans-serif","serif"],P=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"],M={fontStyle:"normal",fontWeight:"normal",letterSpacing:"normal",lineBreak:"auto",lineHeight:"normal",textTransform:"none",textAlign:"left",textDecoration:"none",textShadow:"none",whiteSpace:"normal",wordBreak:"normal",wordSpacing:"normal",position:"absolute",left:"-9999px",fontSize:"48px"};function L(e){return e.toDataURL()}var D=navigator,N=window;var F=navigator;var q=window;var j=window;var U=window;var V=document;var B={osCpu:function(){return navigator.oscpu},languages:function(){var e=[],t=F.language||F.userLanguage||F.browserLanguage||F.systemLanguage;if(void 0!==t&&e.push([t]),Array.isArray(F.languages))E()&&h([!("MediaSettingsRange"in p),"RTCEncodedAudioFrame"in p,""+p.Intl=="[object Intl]",""+p.Reflect=="[object Reflect]"])>=3||e.push(F.languages);else if("string"==typeof F.languages){var n=F.languages;n&&e.push(n.split(","))}return e},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return navigator.deviceMemory},screenResolution:function(){var e=[v(q.screen.width),v(q.screen.height)];return e.sort().reverse(),e},availableScreenResolution:function(){if(j.screen.availWidth&&j.screen.availHeight){var e=[v(j.screen.availWidth),v(j.screen.availHeight)];return e.sort().reverse(),e}},hardwareConcurrency:function(){try{var e=v(navigator.hardwareConcurrency);return isNaN(e)?1:e}catch(t){return 1}},timezoneOffset:function(){var e=(new Date).getFullYear();return Math.max(g(new Date(e,0,1).getTimezoneOffset()),g(new Date(e,6,1).getTimezoneOffset()))},timezone:function(){var e;if(null===(e=U.Intl)||void 0===e?void 0:e.DateTimeFormat)return(new U.Intl.DateTimeFormat).resolvedOptions().timeZone},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){if(!w()&&!y())try{return!!window.indexedDB}catch(e){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){return navigator.platform},plugins:function(){if(w())return[];if(navigator.plugins){for(var e=[],t=0;t<navigator.plugins.length;++t){var n=navigator.plugins[t];if(n){for(var r=[],i=0;i<n.length;++i){var o=n[i];r.push({type:o.type,suffixes:o.suffixes})}e.push({name:n.name,description:n.description,mimeTypes:r})}}return e}},canvas:function(){var e=function(){var e=document.createElement("canvas");return e.width=240,e.height=140,e.style.display="inline",[e,e.getContext("2d")]}(),t=e[0],n=e[1];if(!function(e,t){return!(!t||!e.toDataURL)}(t,n))return{winding:!1,data:""};n.rect(0,0,10,10),n.rect(2,2,6,6);var r=!n.isPointInPath(5,5,"evenodd");n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(125,1,62,20),n.fillStyle="#069",n.font="11pt no-real-font-123";var i="Cwm fjordbank 😃 gly";return n.fillText(i,2,15),n.fillStyle="rgba(102, 204, 0, 0.2)",n.font="18pt Arial",n.fillText(i,4,45),n.globalCompositeOperation="multiply",n.fillStyle="rgb(255,0,255)",n.beginPath(),n.arc(50,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(0,255,255)",n.beginPath(),n.arc(100,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,255,0)",n.beginPath(),n.arc(75,100,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,0,255)",n.arc(75,75,75,0,2*Math.PI,!0),n.arc(75,75,25,0,2*Math.PI,!0),n.fill("evenodd"),{winding:r,data:L(t)}},touchSupport:function(){var e,t=0;void 0!==D.maxTouchPoints?t=v(D.maxTouchPoints):void 0!==D.msMaxTouchPoints&&(t=D.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(n){e=!1}return{maxTouchPoints:t,touchEvent:e,touchStart:"ontouchstart"in N}},fonts:function(){var e=A.body,t=A.createElement("div"),n=A.createElement("div"),r={},i={},o=function(){var e=A.createElement("span");e.textContent="mmMwWLliI0O&1";for(var t=0,n=Object.keys(M);t<n.length;t++){var r=n[t];e.style[r]=M[r]}return e},a=function(e){return x.some((function(t,n){return e[n].offsetWidth!==r[t]||e[n].offsetHeight!==i[t]}))},u=x.map((function(e){var n=o();return n.style.fontFamily=e,t.appendChild(n),n}));e.appendChild(t);for(var s=0,c=x.length;s<c;s++)r[x[s]]=u[s].offsetWidth,i[x[s]]=u[s].offsetHeight;var l=function(){for(var e={},t=function(t){e[t]=x.map((function(e){var r=function(e,t){var n=o();return n.style.fontFamily="'"+e+"',"+t,n}(t,e);return n.appendChild(r),r}))},r=0,i=P;r<i.length;r++){t(i[r])}return e}();e.appendChild(n);for(var d=[],f=0,v=P.length;f<v;f++)a(l[P[f]])&&d.push(P[f]);return e.removeChild(n),e.removeChild(t),d},audio:function(){return r(this,void 0,void 0,(function(){var e,t,n,r,o,a;return i(this,(function(i){switch(i.label){case 0:if(S()&&!R()&&!(h(["DOMRectList"in p,"RTCPeerConnectionIceEvent"in p,"SVGGeometryElement"in p,"ontransitioncancel"in p])>=3))return[2,-1];if(!(e=C.OfflineAudioContext||C.webkitOfflineAudioContext))return[2,-2];t=new e(1,44100,44100),(n=t.createOscillator()).type="triangle",k(t,n.frequency,1e4),r=t.createDynamicsCompressor(),k(t,r.threshold,-50),k(t,r.knee,40),k(t,r.ratio,12),k(t,r.reduction,-20),k(t,r.attack,0),k(t,r.release,.25),n.connect(r),r.connect(t.destination),n.start(0),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,T(t)];case 2:return o=i.sent(),[3,5];case 3:if("timeout"===(a=i.sent()).name||"suspended"===a.name)return[2,-3];throw a;case 4:return n.disconnect(),r.disconnect(),[7];case 5:return[2,O(o.getChannelData(0))]}}))}))},pluginsSupport:function(){return void 0!==navigator.plugins},productSub:function(){return navigator.productSub},emptyEvalLength:function(){return eval.toString().length},errorFF:function(){try{throw"a"}catch(e){try{return e.toSource(),!0}catch(t){return!1}}},vendor:function(){return navigator.vendor},chrome:function(){return void 0!==window.chrome},cookiesEnabled:function(){try{V.cookie="cookietest=1";var e=-1!==V.cookie.indexOf("cookietest=");return V.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(t){return!1}}};function G(e,n,o){return r(this,void 0,void 0,(function(){var r,a,u,s,c,l,d,f,v;return i(this,(function(i){switch(i.label){case 0:r=Date.now(),a={},u=0,s=Object.keys(e),i.label=1;case 1:if(!(u<s.length))return[3,7];if(c=s[u],function(e,t){for(var n=0,r=e.length;n<r;++n)if(e[n]===t)return!0;return!1}(o,c))return[3,6];l=void 0,i.label=2;case 2:return i.trys.push([2,4,,5]),v={},[4,e[c](n)];case 3:return v.value=i.sent(),l=v,[3,5];case 4:return d=i.sent(),l=d&&"object"==typeof d&&"message"in d?{error:d}:{error:{message:d}},[3,5];case 5:f=Date.now(),a[c]=t(t({},l),{duration:f-r}),r=f,i.label=6;case 6:return u++,[3,1];case 7:return[2,a]}}))}))}function H(e){return f(function(e){for(var t="",n=0,r=Object.keys(e);n<r.length;n++){var i=r[n],o=e[i],a=o.error?"error":JSON.stringify(o.value);t+=(t?"|":"")+i.replace(/([:|\\])/g,"\\$1")+":"+a}return t}(e))}var W=function(){function e(){}return e.prototype.get=function(e){return void 0===e&&(e={}),r(this,void 0,void 0,(function(){var n,r;return i(this,(function(i){switch(i.label){case 0:return[4,G(B,void 0,[])];case 1:return n=i.sent(),r=function(e){var t;return{components:e,get visitorId(){return void 0===t&&(t=H(this.components)),t},set visitorId(e){t=e}}}(n),e.debug&&console.log("Copy the text below to get the debug data:\n\n```\nversion: 3.0.3\nuserAgent: "+navigator.userAgent+"\ngetOptions: "+JSON.stringify(e,void 0,2)+"\nvisitorId: "+r.visitorId+"\ncomponents: "+function(e){return JSON.stringify(e,(function(e,n){var r;return n instanceof Error?t(t({},n),{message:n.message,stack:null===(r=n.stack)||void 0===r?void 0:r.split("\n")}):n}),2)}(n)+"\n```"),[2,r]}}))}))},e}();function J(e){var t=(void 0===e?{}:e).delayFallback,n=void 0===t?50:t;return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,(t=n,new Promise((function(e){window.requestIdleCallback?window.requestIdleCallback((function(){return e()})):setTimeout(e,t)})))];case 1:return e.sent(),[2,new W]}var t}))}))}var K=f,z="3.2.1",X=document;function Q(e,t){return new Promise((function(n){return setTimeout((function(){return n(t)}),e)}))}function Y(e,t){return new Promise((function(n){var r=function(){return X.hidden?a():o()},i=function(e,t,n){var r,i=!1,o=e,a=0,u=function(){i||void 0!==r||(a=Date.now(),r=setTimeout((function(){i=!0,n()}),o))};return t&&u(),{start:u,stop:function(){i||void 0===r||(clearTimeout(r),r=void 0,o-=Date.now()-a)}}}(e,!X.hidden,(function(){X.removeEventListener("visibilitychange",r),n(t)})),o=i.start,a=i.stop;X.addEventListener("visibilitychange",r)}))}function Z(e,t){return r(this,void 0,void 0,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e()];case 1:return[2,r.sent()];case 2:return n=r.sent(),console.error(n),[2,t];case 3:return[2]}}))}))}function $(e,t){for(var n="",r=0;r<e;r++)n+=t.charAt(Math.random()*t.length);return n}function ee(e){return $(e,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function te(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=function(e){e&&Z((function(){return e.apply(void 0,t)}))},i=0,o=e;i<o.length;i++){var a=o[i];r(a)}}}var ne=window;function re(e,n){var r;return void 0===n&&(n=!1),t({name:e.name,message:e.message,stack:n?null===(r=e.stack)||void 0===r?void 0:r.split("\n"):e.stack},e)}function ie(){try{return ne.self!==ne.top}catch(e){return!0}}function oe(e){switch(e){case 0:return"Loading has started";case 1:return"Loading has succeeded";case 2:return"Loading has failed";case 3:return"Getting visitor identifier has started";case 4:return"Getting visitor identifier has succeeded";case 5:return"Getting visitor identifier has failed";case 6:return"TLS request has started";case 7:return"TLS request has succeeded";case 8:return"TLS request has failed";case 9:return"Getting fingerprint has started";case 10:return"Getting fingerprint has succeeded";case 11:return"Getting fingerprint has failed";case 12:return"Visitor identifier request has started";case 13:return"Visitor identifier request has succeeded";case 14:return"Visitor identifier request has failed"}}function ae(e){return void 0===e&&(e="[FingerprintJS Pro] "),function(t){switch(t.e){case 2:case 5:case 8:case 11:case 14:console.error(ue(e,t));break;case 10:var n=ue(e,t),r=t.result;Object.keys(r).some((function(e){return r[e].error}))?console.warn(n):console.log(n);break;default:console.log(ue(e,t))}}}function ue(e,t){var r=t.e,i=n(t,["e"]),o=""+e+(new Date).toISOString()+": "+oe(r);return Object.keys(i).length&&(o+="\n```\n"+function(e){return JSON.stringify(e,(function(e,t){return t instanceof Error?re(t,!0):t}),2)}(i)+"\n```"),o}var se=navigator;function ce(e){var t=e.url,n=e.method,r=void 0===n?"get":n,i=e.body,o=e.headers,a=e.withCredentials,u=void 0!==a&&a,s=e.timeout;return new Promise((function(e,n){var a=new XMLHttpRequest;for(var c in a.open(r,t,!0),a.withCredentials=u,a.timeout=void 0===s?0:Math.max(s,1),o)a.setRequestHeader(c,o[c]);a.onload=function(){return e(function(e){return{text:e.responseText,status:e.status,statusText:e.statusText}}(a))},a.ontimeout=function(){return n(le("TimeoutError","The request timed out"))},a.onabort=function(){return n(le("AbortError","The request is aborted"))},a.onerror=function(){return n(le("TypeError",se.onLine?"Connection error":"Network offline"))},a.send(i)}))}function le(e,t){var n=new Error(t);return n.name=e,n}function de(e){var t=e.url,n=e.body;if(se.sendBeacon)return se.sendBeacon(t,n);var r=new XMLHttpRequest;r.open("POST",t,!function(){var e,t=null===(e=ne.event)||void 0===e?void 0:e.type;return"pagehide"===t||"unload"===t}()),n instanceof Blob&&r.setRequestHeader("Content-Type",n.type);try{r.send(n)}catch(i){return!1}return!0}var fe=document,ve=navigator;function ge(e,t,n,o,a){return r(this,void 0,void 0,(function(){var r,u,s;return i(this,(function(i){switch(i.label){case 0:(u=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];e&&Z((function(){var r=t.apply(void 0,n);r&&e(r)}))})(t),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,a()];case 2:return r=i.sent(),[3,4];case 3:throw s=i.sent(),u(o,s),s;case 4:return u(n,r),[2,r]}}))}))}function he(){var e=window,t=e.__fpjs_pvid;return e.__fpjs_pvid="string"==typeof t?t:ee(10)}var pe=window,me=navigator,be=document,we=performance;var ye=function(){function e(e){var t=this;this.onReportReady=e,this.isStopped=!1,this.pageStartTimestamp=function(){var e,t;if(we.timeOrigin){var n=null===(t=null===(e=we.getEntriesByType)||void 0===e?void 0:e.call(we,"navigation"))||void 0===t?void 0:t[0];if(n)return we.timeOrigin+(n.responseStart||n.unloadEventEnd)}return we.timing.domLoading||we.timing.responseStart||we.timing.unloadEventEnd}(),this.events={},this.addEvent=function(e){if(!t.isStopped){var n={time:new Date,type:"agentEvent",event:e};switch(0!==e.e&&3!==e.e||(n.isPageVisible=Ce(),n.isFullscreen=Ie(),n.network=ke()),t.storeAgentEvent(n),e.e){case 2:t.submitReport(e.agentId,void 0);break;case 4:case 5:t.submitReport(e.agentId,e.getCallId)}}};for(var n=[[be,"visibilitychange",function(){return t.handleVisibilityChange()}],[be,"pageshow",function(){return t.handlePageTransition(!0)}],[be,"pagehide",function(){return t.handlePageTransition(!1)}],[pe,"unload",function(){return t.handlePageUnload()}]],r=0,i=n;r<i.length;r++){var o=i[r],a=o[0],u=o[1],s=o[2];a.addEventListener(u,s)}var c=function(e,t){for(var n=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],r=0,i=n;r<i.length;r++){var o=i[r];fe.addEventListener(o,e,t)}return function(){for(var r=0,i=n;r<i.length;r++){var o=i[r];fe.removeEventListener(o,e,t)}}}((function(){return t.handleFullscreenChange()})),l=function(e){var t=ve.connection;if(!t)return addEventListener("online",e),addEventListener("offline",e),function(){removeEventListener("online",e),removeEventListener("offline",e)};var n=!1,r=t.onchange,i=function(t){try{n||e()}finally{null==r||r(t)}};return t.onchange=i,function(){n=!0,t.onchange===i&&(t.onchange=r)}}((function(){return t.handleNetworkConnectionChange()}));this.stop=function(){t.isStopped=!0;for(var e=0,r=n;e<r.length;e++){var i=r[e],o=i[0],a=i[1],u=i[2];o.removeEventListener(a,u)}c(),l()}}return e.prototype.handleVisibilityChange=function(){this.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:Ce()})},e.prototype.handlePageTransition=function(e){this.storeEnvironmentEvent({time:new Date,type:"pageTransition",isShown:e})},e.prototype.handleFullscreenChange=function(){this.storeEnvironmentEvent({time:new Date,type:"fullscreenToggle",isFullscreen:Ie()})},e.prototype.handleNetworkConnectionChange=function(){this.storeEnvironmentEvent({time:new Date,type:"networkChange",network:ke()})},e.prototype.handlePageUnload=function(){this.storeEnvironmentEvent({time:new Date,type:"pageUnload"});for(var e=0,t=Object.keys(this.events);e<t.length;e++){var n=t[e],r=this.events[n];if(0===Object.keys(r.getCalls).length)this.submitReport(n,void 0);else for(var i=0,o=Object.keys(r.getCalls);i<o.length;i++){var a=o[i];Ee(r.getCalls[a])||this.submitReport(n,a)}}this.stop()},e.prototype.storeAgentEvent=function(e){var t=e.event,n=t.agentId;switch(this.events[n]||(this.events[n]={loadEvents:[],getCalls:{}}),t.e){case 0:case 1:case 2:this.events[n].loadEvents.push(e);break;default:var r=t.getCallId;this.events[n].getCalls[r]||(this.events[n].getCalls[r]=[]),this.events[n].getCalls[r].push(e)}},e.prototype.storeEnvironmentEvent=function(e){for(var t=0,n=Object.keys(this.events);t<n.length;t++){var r=n[t],i=this.events[r];i.loadEvents.some((function(e){return"agentEvent"===e.type&&(1===e.event.e||2===e.event.e)}))||i.loadEvents.push(e);for(var o=0,a=Object.keys(i.getCalls);o<a.length;o++){var u=a[o],s=i.getCalls[u];Ee(s)||s.push(e)}}},e.prototype.submitReport=function(e,t){var n=function(e,t){for(var n,r,i,o,a,u,s,c,l,d,f,v,g,h=function(e){for(var t={},n={},r=0,i=e;r<i.length;r++){var o=i[r];"agentEvent"===o.type?t[o.event.e]=o:n[o.type]=o}return{agentEvents:t,otherEvents:n}}(e),p=h.agentEvents,m=h.otherEvents,b=null!==(r=null===(n=m.pageUnload)||void 0===n?void 0:n.time)&&void 0!==r?r:new Date,w="null",y=0,E=[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]];y<E.length;y++){var S=E[y],R=S[0],C=S[1];if(p[R]){w=C;break}}return{time:null!==(c=null!==(u=null!==(o=null===(i=p[4])||void 0===i?void 0:i.time)&&void 0!==o?o:null===(a=p[5])||void 0===a?void 0:a.time)&&void 0!==u?u:null===(s=p[2])||void 0===s?void 0:s.time)&&void 0!==c?c:b,pageUrl:location.href,pageStartTime:new Date(t),isInIframe:ie(),agentVersion:null===(l=p[0])||void 0===l?void 0:l.event.version,userAgent:navigator.userAgent,pageViewId:he(),agentId:null===(d=p[0])||void 0===d?void 0:d.event.agentId,getCallId:null===(f=p[3])||void 0===f?void 0:f.event.getCallId,requestId:null===(v=p[12])||void 0===v?void 0:v.event.requestId,visitorId:null===(g=p[4])||void 0===g?void 0:g.event.visitorId,identificationState:w,load:Se(b,p[0],p[1],p[2]),get:Se(b,p[3],p[4],p[5]),tls:Se(b,p[6],p[7],p[8],(function(e){return{responseStatus:e.event.status}})),fingerprint:Se(b,p[9],p[10],p[11],(function(e){return{failedComponents:Re(e.event.result)}})),visitorIdRequest:Se(b,p[12],p[13],p[14],(function(e){return{responseStatus:e.event.status}})),events:e}}(function(e,t,n){var r,i=[];e[t]&&(i.push.apply(i,e[t].loadEvents),void 0!==n&&i.push.apply(i,null!==(r=e[t].getCalls[n])&&void 0!==r?r:[]));return i}(this.events,e,t),this.pageStartTimestamp);try{this.onReportReady(n)}catch(r){console.error(r)}},e}();function Ee(e){return e.some((function(e){return"agentEvent"===e.type&&(4===e.event.e||5===e.event.e)}))}function Se(e,n,r,i,o){if(void 0!==n)return void 0!==r?t(t({},null==o?void 0:o(r)),{duration:r.time.getTime()-n.time.getTime(),state:"success"}):void 0!==i?{duration:i.time.getTime()-n.time.getTime(),state:"fail",error:i.event.error}:{duration:e.getTime()-n.time.getTime(),state:"incomplete"}}function Re(e){return Object.keys(e).filter((function(t){return e[t].error}))}function Ce(){return!be.hidden}function Ie(){return!!(fe.fullscreenElement||fe.msFullscreenElement||fe.mozFullScreenElement||fe.webkitFullscreenElement)}function ke(){var e,t,n,r,i,o;return{online:navigator.onLine,downlink:null===(e=me.connection)||void 0===e?void 0:e.downlink,downlinkMax:null===(t=me.connection)||void 0===t?void 0:t.downlinkMax,effectiveType:null===(n=me.connection)||void 0===n?void 0:n.effectiveType,roundTrip:null===(r=me.connection)||void 0===r?void 0:r.rtt,saveData:null===(i=me.connection)||void 0===i?void 0:i.saveData,type:null===(o=me.connection)||void 0===o?void 0:o.type}}function Te(e,t,n){var r;void 0===n&&(n=[8,4,4,4,12].map((function(e){return $(e,"0123456789abcdef")})).join("-"));var i=Oe[e.identificationState],a=i.level,u=i.message;return{environment:t,level:a,timestamp:Math.round(e.time.getTime()/1e3),platform:"browser",framework:"FingerprintJS Pro",language:"javascript",uuid:n,notifier:{name:"FingerprintJS Pro monitoring",version:z},request:{url:e.pageUrl,query_string:(null!==(r=/\?.*$/.exec(e.pageUrl))&&void 0!==r?r:[""])[0],user_ip:"$remote_ip"},client:{javascript:{browser:e.userAgent,code_version:e.agentVersion}},body:{telemetry:o([{level:"debug",source:"client",timestamp_ms:e.pageStartTime.getTime(),type:"manual",body:{message:"Page starts"}}],e.events.map(_e)),message:{body:u}},custom:{isInIframe:e.isInIframe,pageViewId:e.pageViewId,agentId:e.agentId,getCallId:e.getCallId,requestId:e.requestId,visitorId:e.visitorId,identificationState:e.identificationState,load:e.load,get:e.get,tls:e.tls,fingerprint:Ae(e.fingerprint),visitorIdRequest:e.visitorIdRequest}}}var Oe={null:{level:"info",message:"Load() wasn't called"},loading:{level:"warning",message:"Load() incomplete"},loadSuccess:{level:"info",message:"Load() succeeded, get() wasn't called"},loadFail:{level:"error",message:"Load() failed"},getting:{level:"warning",message:"Get() incomplete"},getSuccess:{level:"info",message:"Get() succeeded"},getFail:{level:"error",message:"Get() failed"}};function _e(e){var n={type:"manual",level:"debug",source:"client",timestamp_ms:e.time.getTime()};switch(e.type){case"pageVisibilityToggle":return t(t({},n),{body:{message:"Page becomes "+(e.isVisible?"visible (in foreground)":"invisible (in background)")}});case"pageTransition":return t(t({},n),{body:{message:e.isShown?"Page is restored from browser history":"Page is about to go to browser history"}});case"fullscreenToggle":return t(t({},n),{body:{message:"Programmatic fullscreen "+(e.isFullscreen?"on":"off")}});case"networkChange":return t(t({},n),{body:t(t({},e.network),{message:"Network connection changes"})});case"pageUnload":return t(t({},n),{body:{message:"Page is about to unload (terminate)"}})}var r=e.event,i=t(t({},n),{level:"info",body:{message:oe(r.e)}});switch(void 0!==e.isPageVisible&&(i.body.isPageVisible=e.isPageVisible),void 0!==e.isPageVisible&&(i.body.isFullscreen=e.isFullscreen),void 0!==e.isPageVisible&&(i.body.network=e.network),r.e){case 0:case 3:return t(t({},i),{body:t(t({},i.body),{options:r.options})});case 1:case 9:return i;case 2:case 5:case 8:case 11:case 14:return t(t({},i),{level:"error",body:t(t({},i.body),{error:r.error})});case 4:case 10:return t(t({},i),{body:t(t({},i.body),{result:r.result})});case 6:return t(t({},i),{body:t(t({},i.body),{endpoint:r.endpoint,timeout:r.timeout})});case 7:case 13:return t(t({},i),{body:t(t({},i.body),{status:r.status,body:r.body.slice(0,4096)})});case 12:return t(t({},i),{body:t(t({},i.body),{endpoint:r.endpoint,request:r.request})})}}function Ae(e){return e&&"incomplete"!==e.state&&"fail"!==e.state?t(t({},e),{failedComponents:e.failedComponents.length?","+e.failedComponents.map((function(e){return e+","})).join(""):void 0}):e}function xe(e,t){return r(this,void 0,void 0,(function(){var n,r;return i(this,(function(i){switch(i.label){case 0:n=JSON.stringify(t,(function(e,t){return t instanceof Error?re(t):t})),r=0,i.label=1;case 1:return navigator.onLine&&de({url:e,body:n})?[3,5]:[3,2];case 2:return[4,Q(1e3*Math.min(r+1,10))];case 3:i.sent(),i.label=4;case 4:return++r,[3,1];case 5:return[2]}}))}))}var Pe={us:"https://api.sjpf.io",eu:"https://tls-eun1.fpapi.io"};function Me(e,o,a){var u=a.output,s=n(a,["output"]);return r(this,void 0,void 0,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,ge(u,(function(){return t(t({e:6},s),{endpoint:e,timeout:o})}),(function(e){var n=e.status,r=e.text;return t(t({e:7},s),{status:n,body:r})}),(function(e){return t(t({e:8},s),{error:e})}),(function(){return ce({url:e,timeout:o})}))];case 1:return n=r.sent(),[3,3];case 2:switch(r.sent().name){case"AbortError":throw new Error("Abort");case"TimeoutError":throw new Error("Timeout");default:throw new Error("Connection error")}case 3:if(200===n.status)return[2,n.text];throw new Error(n.text.slice(0,255))}}))}))}var Le="Client timeout",De="Network connection error",Ne="Network request aborted",Fe="n/a";function qe(e,t){if(t)return t;var n="api.fpjs.io";return"us"!==e&&(n=e+"."+n),"https://"+n}function je(e,o){var a=e.endpoint,u=e.extendedResult,s=n(e,["endpoint","extendedResult"]);return r(this,void 0,void 0,(function(){var e,n;return i(this,(function(r){switch(r.label){case 0:return e=ee(20),n=function(e){var n,r=e.components,i=e.token,o=e.visitorId,a=e.tag,u=e.ipResolution,s=e.extendedResult,c=e.linkedId,l=e.tls,d=e.tlsError,f=e.requestId,v=Object.keys(r).reduce((function(e,t){return e+r[t].duration}),0),g="full"===u?2:1;return(n={}).rid=f,n.cv=z,n.c=i,n.url=location.href,n.d=v,n.vid=o[0]||o[1]||void 0,n.ls=o[1]?1:void 0,n.t=function(e){if(e&&"object"==typeof e)return e;if(null==e)return;return{tag:e}}(a),n.i=g,n.cbd=s?1:void 0,n.lid=c,n.cr=document.referrer||void 0,n.j=l,n.je=null==d?void 0:d.message,n.k1=Be(r.osCpu),n.k2=Be(r.languages),n.k3=Be(r.colorDepth),n.k4=Be(r.deviceMemory),n.k5=Be(r.screenResolution),n.k6=Be(r.availableScreenResolution,void 0,[]),n.k7=Be(r.hardwareConcurrency),n.k8=Be(r.timezoneOffset),n.k9=Be(r.timezone),n.k10=Ge(Be(r.sessionStorage)),n.k11=Ge(Be(r.localStorage)),n.k12=Ge(Be(r.indexedDB)),n.k13=Ge(Be(r.openDatabase)),n.k14=Be(r.cpuClass),n.k15=Be(r.platform),n.k16=Be(r.plugins,[]),n.k17=function(e){var n=e.value;if(!n)return;return t(t({},n),{data:K(n.data)})}(r.canvas),n.k18=0,n.k19=Be(r.touchSupport),n.k20=Be(r.fonts,[]),n.k21=Be(r.audio,-4),n.k22=Ge(Be(r.pluginsSupport)),n.k23=Be(r.productSub),n.k24=Be(r.emptyEvalLength),n.k25=Ge(Be(r.errorFF)),n.k26=Ge(Be(r[0])),n.k27=Be(r.vendor),n.k28=Ge(Be(r.chrome)),n.k29=Ge(Be(r[1])),n.k30=Ge(Be(r[2])),n.k31=Ge(Be(r[3],!1)),n.k32=Ge(Be(r.cookiesEnabled,!1)),n.k33=Ge(Be(r[4])),n}(t({extendedResult:u,requestId:e},s)),[4,Ue(a,n,o)];case 1:return[2,Ve(r.sent(),e,u)]}}))}))}function Ue(e,o,a){var u=a.output,s=n(a,["output"]);return r(this,void 0,void 0,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,ge(u,(function(){return t(t({e:12},s),{requestId:o.rid,endpoint:e,request:o})}),(function(e){var n=e.status,r=e.text;return t(t({e:13},s),{status:n,body:r})}),(function(e){return t(t({e:14},s),{error:e})}),(function(){return ce({url:e,method:"post",body:JSON.stringify(o),headers:{"Content-Type":"text/plain"},withCredentials:!0})}))];case 1:return[2,r.sent()];case 2:throw n=r.sent(),new Error("AbortError"===n.name?Ne:De);case 3:return[2]}}))}))}function Ve(e,t,n){return r(this,void 0,void 0,(function(){var r;return i(this,(function(i){if(404===e.status||e.status>=500)throw new Error(e.statusText);try{r=JSON.parse(e.text)}catch(o){throw new Error(e.text)}if(function(e){return e&&"object"==typeof e&&"string"==typeof e.visitorId&&e.visitorId!==Fe}(r))return[2,He(r)];if(function(e){return e&&"object"==typeof e&&e.visitorId===Fe}(r)){if("Not available for crawl bots"===r.reason||"Not available when User-Agent is unspecified"===r.reason)return[2,We(r.reason,t,n)];throw new Error(r.reason)}throw new Error(e.text)}))}))}function Be(e,t,n){return e.error?t:void 0===e.value?n:e.value}function Ge(e){return!0===e?1:!1===e?0:e}function He(e){var r=e,i=r.botProbability,o=n(r,["botProbability"]),a=t({},o);return i&&(a.bot={probability:i}),a}function We(e,n,r){var i={requestId:n,visitorFound:!1,visitorId:""};if(!r)return i;var o=t(t({},i),{bot:{probability:1},incognito:!1,browserName:Fe,browserVersion:Fe,device:Fe,ip:Fe,ipLocation:{},os:Fe,osVersion:Fe});return"Not available for crawl bots"===e&&(o.bot.safe=!0),o}var Je=window,Ke=document;var ze=window;var Xe=navigator,Qe=window;function Ye(){var e,t,n,r=(null===(e=Xe.userAgent)||void 0===e?void 0:e.indexOf("Mac OS"))>0&&-1===(null===(t=Xe.userAgent)||void 0===t?void 0:t.indexOf("iPhone")),i=(null===(n=Xe.userAgent)||void 0===n?void 0:n.indexOf("CrOS"))>0;return r||i?3221225472:1073741824}function Ze(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return"storage"in Xe&&"estimate"in Xe.storage?[4,Xe.storage.estimate()]:[3,2];case 1:return[2,!!(e=t.sent().quota)&&e<Ye()];case 2:return[2,!1]}}))}))}var $e=window;function et(){return r(this,void 0,void 0,(function(){return i(this,(function(e){return R()?[2,tt()]:[2,nt()]}))}))}function tt(){if(!$e.safari)return!1;try{$e.safari.pushNotification.requestPermission("https://example.com","private",{},(function(){}))}catch(t){return e=t,!new RegExp([103,101,115,116,117,114,101].map((function(e){return String.fromCharCode(e)})).join("")).test(e)}var e;throw new Error("Unexpected lack of error")}function nt(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:(e=document.createElement("iframe")).style.display="none",t.label=1;case 1:return t.trys.push([1,,3,4]),document.body.appendChild(e),[4,Promise.race([Q(20,!1),new Promise((function(t){e.contentWindow?e.contentWindow.applicationCache.addEventListener("error",(function(){return t(!0)})):t(!1)}))])];case 2:return[2,t.sent()];case 3:return e.remove(),[7];case 4:return[2]}}))}))}function rt(){try{$e.openDatabase(null,null,null,null)}catch(e){return!0}try{return $e.localStorage.setItem("test","1"),$e.localStorage.removeItem("test"),!1}catch(e){return!0}}var it="_inc",ot=[[function(){return E()},function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){return function(){var e=Xe.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);if(!e)throw"UserAgent is not Google Chrome";return parseInt(e[2],10)}()>=76?[2,Ze()]:[2,new Promise((function(e){Qe.webkitRequestFileSystem(0,1,(function(){return e(!1)}),(function(){return e(!0)}))}))]}))}))}],[function(){return S()},function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){return function(){var e=navigator.userAgent.match(/Version\/([0-9._]+).*Safari/);if(!e)throw new Error("UserAgent is not Safari");var t=e[1].split(".").map((function(e){return isNaN(parseInt(e))?0:parseInt(e)})),n=t[0],r=t[1],i=t[2];return{major:n,minor:r,patch:i}}().major<13?[2,rt()]:[2,et()]}))}))}],[function(){return function(){var e;return h(["buildID"in m,(null===(e=b.documentElement)||void 0===e?void 0:e.style)&&"MozAppearance"in b.documentElement.style,"MediaRecorderErrorEvent"in p,"mozInnerScreenX"in p,"CSSMozDocumentRule"in p,"CanvasCaptureMediaStream"in p])>=4}()},function(){return new Promise((function(e){try{var t=ze.indexedDB.open("test");t.onerror=function(){return e(!0)},t.onsuccess=function(){return e(!1)}}catch(n){return e(!0)}}))}],[function(){return w()||y()},function(){try{if(!window.indexedDB)return!0}catch(e){return!0}return!1}]];function at(){return r(this,void 0,void 0,(function(){var e,t,n,r,o;return i(this,(function(i){switch(i.label){case 0:e=0,t=ot,i.label=1;case 1:return e<t.length?(n=t[e],r=n[0],o=n[1],r()?[4,o()]:[3,3]):[3,4];case 2:return[2,i.sent()];case 3:return e++,[3,1];case 4:return[2,!1]}}))}))}function ut(e,t){if(0==t.length||t.length>e.length)return-1;for(var n=0;n<e.length;n++){for(var r=0,i=0;i<t.length;i++){if(e[n+i]!==t[i]){r=0;break}r++}if(r==t.length)return n}return-1}var st,ct=window,lt=document;var dt=((st={})[0]=function(){return void 0!==navigator.webdriver},st[1]=function(){return r(this,void 0,void 0,(function(){var e,t;return i(this,(function(n){switch(n.label){case 0:return(e=navigator.permissions)?[4,e.query({name:"notifications"})]:[2,void 0];case 1:return t=n.sent(),"undefined"==typeof Notification?[2,void 0]:[2,"denied"===Notification.permission&&"prompt"===t.state]}}))}))},st[2]=function(){var e=Ke.documentElement;return"webdriver"in Je||"_Selenium_IDE_Recorder"in Je||"callSelenium"in Je||"_selenium"in Je||"__webdriver_script_fn"in Ke||"__driver_evaluate"in Ke||"__webdriver_evaluate"in Ke||"__selenium_evaluate"in Ke||"__fxdriver_evaluate"in Ke||"__driver_unwrapped"in Ke||"__webdriver_unwrapped"in Ke||"__selenium_unwrapped"in Ke||"__fxdriver_unwrapped"in Ke||"__webdriver_script_func"in Ke||null!==e.getAttribute("selenium")||null!==e.getAttribute("webdriver")||null!==e.getAttribute("driver")},st[3]=function(){return r(this,void 0,void 0,(function(){var e,t;return i(this,(function(n){switch(n.label){case 0:if(void 0!==(e=function(){try{var e=localStorage.getItem(it);if(!e)return;return"1"===e}catch(t){return}}()))return[2,e];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,at()];case 2:return function(e){try{localStorage.setItem(it,e?"1":"0")}catch(t){}}(t=n.sent()),[2,t];case 3:return n.sent(),[2,!1];case 4:return[2]}}))}))},st[4]=function(){if(!E())return!1;try{if([66,114,97,118,101].map((function(e){return String.fromCharCode(e)})).join("")in ct)return!0;var e=lt.createElement("canvas");e.width=4,e.height=4,e.style.display="inline";var t=e.toDataURL();if(""===t)return!0;for(var n=window.atob(t.split(",")[1]),r=n.length,i=new Uint8Array(r),o=0;o<r;o++)i[o]=n.charCodeAt(o);var a=ut(i,[73,68,65,84,24]);if(-1===a)return!1;var u=ut(i,[73,69,78,68]);return-1!==a&&1321!==i.slice(a+5,u).reduce((function(e,t){return e+t}),0)}catch(s){return!1}},st);function ft(){return G(dt,void 0,[])}var vt=document,gt=location;function ht(e){for(var t=e+"=",n=0,r=vt.cookie.split(";");n<r.length;n++){for(var i=r[n],o=0;" "===i[o]&&o<i.length;)++o;if(i.indexOf(t)===o)return i.slice(o+t.length)}}function pt(e,t,n,r){var i=e+"="+t,o="expires="+new Date(Date.now()+24*n*60*60*1e3).toUTCString(),a=r?"domain="+r:"";vt.cookie=[i,"path=/",o,a].join("; ")}function mt(e,t,n){var r=gt.hostname;bt(r,(function(t){!function(e,t){pt(e,"",-1,t)}(e,t)})),bt(r,(function(r){return pt(e,t,n,r),ht(e)!==t}))&&pt(e,t,n)}function bt(e,t){var n=e.length;do{if(n=n>0?e.lastIndexOf(".",n-1):-1,!1===t(e.slice(n+1)))return!1}while(n>=0);return!0}var wt="_vid";function yt(e){return void 0===e&&(e=wt),[ht(e),St(e)]}function Et(e,t){void 0===t&&(t=wt),mt(t,e,365),function(e,t){var n;try{null===(n=null===localStorage||void 0===localStorage?void 0:localStorage.setItem)||void 0===n||n.call(localStorage,e,t)}catch(r){}}(t,e)}function St(e){var t,n;try{return null!==(n=null===(t=null===localStorage||void 0===localStorage?void 0:localStorage.getItem)||void 0===t?void 0:t.call(localStorage,e))&&void 0!==n?n:void 0}catch(r){}}function Rt(e,n,o){var a=this,u=o.token,s=o.region,c=void 0===s?"us":s,l=o.endpoint,d=o.tlsEndpoint,f=o.storageKey,v=o.debug;var g=function(n,o,s,v,g,m,b){return r(a,void 0,void 0,(function(){var r,a,w,y;return i(this,(function(i){switch(i.label){case 0:return[4,Promise.all([h(c,d,v,!!s,b),p(b)])];case 1:return r=i.sent(),a=r[0],w=r[1],[4,je(t(t({},a),{token:u,endpoint:qe(c,l),components:w,tag:n,visitorId:yt(f),linkedId:o,extendedResult:g,ipResolution:m}),t(t({},b),{agentId:e}))];case 2:return Et((y=i.sent()).visitorId,f),[2,y]}}))}))},h=function(n,o,u,s,c){return r(a,void 0,void 0,(function(){return i(this,(function(r){return s?[2,void 0]:[2,Me(function(e,t){return t||Pe[e]}(n,o),u,t(t({},c),{agentId:e})).then((function(e){return{tls:e}}),(function(e){return{tlsError:e}}))]}))}))},p=function(o){var u=o.output,s=o.getCallId;return ge(u,(function(){return{e:9,agentId:e,getCallId:s}}),(function(t){return{e:10,agentId:e,getCallId:s,result:t}}),(function(t){return{e:11,agentId:e,getCallId:s,error:t}}),(function(){return r(a,void 0,void 0,(function(){var e,r;return i(this,(function(i){switch(i.label){case 0:return[4,n.get()];case 1:return e=i.sent(),[4,ft()];case 2:return r=i.sent(),[2,t(t({},e.components),r)]}}))}))}))};return{get:function(t){void 0===t&&(t={});var n=ee(8),r=te([v,t.debug&&ae()]);return ge(r,(function(){return{e:3,agentId:e,getCallId:n,options:t}}),(function(t){return{e:4,agentId:e,getCallId:n,visitorId:t.visitorId,result:t}}),(function(t){return{e:5,agentId:e,getCallId:n,error:t}}),(function(){var e=t.timeout,i=void 0===e?1e4:e,o=t.tag,a=t.linkedId,u=t.disableTls,s=t.extendedResult,c=t.ipResolution;return Promise.race([Y(i).then((function(){throw new Error(Le)})),g(o,a,u,i/2,s,c,{output:r,getCallId:n})])}))}}}function Ct(e){var t=this,n=ee(8);return ge(e.debug,(function(){return{e:0,agentId:n,version:z,options:e}}),(function(){return{e:1,agentId:n}}),(function(e){return{e:2,agentId:n,error:e}}),(function(){return r(t,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:if(!e.token||"string"!=typeof e.token)throw new Error("Token required");return[4,J({delayFallback:e.delayFallback})];case 1:return t=r.sent(),[2,Rt(n,t,e)]}}))}))}))}var It="Token required",kt="Token not found",Tt="Token expired",Ot="Request cannot be parsed",_t="Request failed",At="Request failed to process",xt="Too many requests, rate limit exceeded",Pt={load:Ct,ERROR_CLIENT_TIMEOUT:Le,ERROR_NETWORK_CONNECTION:De,ERROR_NETWORK_ABORT:Ne,ERROR_TOKEN_MISSING:It,ERROR_TOKEN_INVALID:kt,ERROR_TOKEN_EXPIRED:Tt,ERROR_BAD_REQUEST_FORMAT:Ot,ERROR_GENERAL_SERVER_FAILURE:_t,ERROR_SERVER_TIMEOUT:At,ERROR_RATE_LIMIT:xt};return e.ERROR_BAD_REQUEST_FORMAT=Ot,e.ERROR_CLIENT_TIMEOUT=Le,e.ERROR_GENERAL_SERVER_FAILURE=_t,e.ERROR_NETWORK_ABORT=Ne,e.ERROR_NETWORK_CONNECTION=De,e.ERROR_RATE_LIMIT=xt,e.ERROR_SERVER_TIMEOUT=At,e.ERROR_TOKEN_EXPIRED=Tt,e.ERROR_TOKEN_INVALID=kt,e.ERROR_TOKEN_MISSING=It,e.default=Pt,e.load=Ct,e.makeConsoleDebugger=ae,e.makeDebugReportBuilder=function(e){return new ye(e).addEvent},e.makeMulticastDebugger=te,e.makeRemoteDebugger=function(e){var t=this,n=e.clientId,o=e.token,a=e.endpoint,u=void 0===a?"https://api.rollbar.com/api/1/item/":a;return new ye((function(e){return r(t,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:return t=function(e,t,n,r){return{access_token:n,data:Te(e,t,r)}}(e,n,o),[4,xe(u,t)];case 1:return r.sent(),[2]}}))}))})).addEvent},e}({}); |
/** | ||
* FingerprintJS Pro v3.2.0 - Copyright (c) FingerprintJS, Inc, 2020 (https://fingerprintjs.com) | ||
* FingerprintJS Pro v3.2.1 - Copyright (c) FingerprintJS, Inc, 2020 (https://fingerprintjs.com) | ||
* | ||
@@ -8,2 +8,2 @@ * This software contains code from open-source projects: | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).FingerprintJS={})}(this,(function(e){"use strict";var t=function(){return(t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function n(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function r(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(t){o(t)}}function u(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(u){o=[6,u],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}function o(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)r[i]=o[a];return r}function a(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function u(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function s(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}function c(e,t){return 0===(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function l(e,t){return[e[0]^t[0],e[1]^t[1]]}function d(e){return e=l(e,[0,e[0]>>>1]),e=l(e=u(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=l(e=u(e,[3301882366,444984403]),[0,e[0]>>>1])}function f(e,t){t=t||0;var n,r=(e=e||"").length%16,i=e.length-r,o=[0,t],f=[0,t],v=[0,0],g=[0,0],h=[2277735313,289559509],p=[1291169091,658871167];for(n=0;n<i;n+=16)v=[255&e.charCodeAt(n+4)|(255&e.charCodeAt(n+5))<<8|(255&e.charCodeAt(n+6))<<16|(255&e.charCodeAt(n+7))<<24,255&e.charCodeAt(n)|(255&e.charCodeAt(n+1))<<8|(255&e.charCodeAt(n+2))<<16|(255&e.charCodeAt(n+3))<<24],g=[255&e.charCodeAt(n+12)|(255&e.charCodeAt(n+13))<<8|(255&e.charCodeAt(n+14))<<16|(255&e.charCodeAt(n+15))<<24,255&e.charCodeAt(n+8)|(255&e.charCodeAt(n+9))<<8|(255&e.charCodeAt(n+10))<<16|(255&e.charCodeAt(n+11))<<24],v=s(v=u(v,h),31),o=a(o=s(o=l(o,v=u(v,p)),27),f),o=a(u(o,[0,5]),[0,1390208809]),g=s(g=u(g,p),33),f=a(f=s(f=l(f,g=u(g,h)),31),o),f=a(u(f,[0,5]),[0,944331445]);switch(v=[0,0],g=[0,0],r){case 15:g=l(g,c([0,e.charCodeAt(n+14)],48));case 14:g=l(g,c([0,e.charCodeAt(n+13)],40));case 13:g=l(g,c([0,e.charCodeAt(n+12)],32));case 12:g=l(g,c([0,e.charCodeAt(n+11)],24));case 11:g=l(g,c([0,e.charCodeAt(n+10)],16));case 10:g=l(g,c([0,e.charCodeAt(n+9)],8));case 9:g=u(g=l(g,[0,e.charCodeAt(n+8)]),p),f=l(f,g=u(g=s(g,33),h));case 8:v=l(v,c([0,e.charCodeAt(n+7)],56));case 7:v=l(v,c([0,e.charCodeAt(n+6)],48));case 6:v=l(v,c([0,e.charCodeAt(n+5)],40));case 5:v=l(v,c([0,e.charCodeAt(n+4)],32));case 4:v=l(v,c([0,e.charCodeAt(n+3)],24));case 3:v=l(v,c([0,e.charCodeAt(n+2)],16));case 2:v=l(v,c([0,e.charCodeAt(n+1)],8));case 1:v=u(v=l(v,[0,e.charCodeAt(n)]),h),o=l(o,v=u(v=s(v,31),p))}return o=a(o=l(o,[0,e.length]),f=l(f,[0,e.length])),f=a(f,o),o=a(o=d(o),f=d(f)),f=a(f,o),("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(f[0]>>>0).toString(16)).slice(-8)+("00000000"+(f[1]>>>0).toString(16)).slice(-8)}function v(e){return"number"==typeof e?0|e:parseInt(e)}function g(e){return"number"==typeof e?e:parseFloat(e)}function h(e){return e.reduce((function(e,t){return e+(t?1:0)}),0)}var p=window,m=navigator,b=document;function y(){return h(["MSCSSMatrix"in p,"msSetImmediate"in p,"msIndexedDB"in p,"msMaxTouchPoints"in m,"msPointerEnabled"in m])>=4}function w(){return h(["msWriteProfilerMark"in p,"MSStream"in p,"msLaunchUri"in m,"msSaveBlob"in m])>=3&&!y()}function E(){return h(["webkitPersistentStorage"in m,"webkitTemporaryStorage"in m,0===m.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in p,"BatteryManager"in p,"webkitMediaStream"in p,"webkitSpeechGrammar"in p])>=5}function R(){return h(["ApplePayError"in p,"CSSPrimitiveValue"in p,"Counter"in p,0===m.vendor.indexOf("Apple"),"getStorageUpdates"in m,"WebKitMediaKeys"in p])>=4}function S(){return h(["safari"in p,!("DeviceMotionEvent"in p),!("ongestureend"in p),!("standalone"in m)])>=3}var T=window,C=document;function k(e,t,n){(function(e){return e&&"function"==typeof e.setValueAtTime})(t)&&t.setValueAtTime(n,e.currentTime)}function O(e){return new Promise((function(t,n){e.oncomplete=function(e){return t(e.renderedBuffer)};var r=3,i=function(){switch(e.startRendering(),e.state){case"running":setTimeout((function(){return n(_("timeout"))}),1e3);break;case"suspended":C.hidden||r--,r>0?setTimeout(i,500):n(_("suspended"))}};i()}))}function I(e){for(var t=0,n=4500;n<5e3;++n)t+=Math.abs(e[n]);return t}function _(e){var t=new Error(e);return t.name=e,t}var A=document,x=["monospace","sans-serif","serif"],M=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"],P={fontStyle:"normal",fontWeight:"normal",letterSpacing:"normal",lineBreak:"auto",lineHeight:"normal",textTransform:"none",textAlign:"left",textDecoration:"none",textShadow:"none",whiteSpace:"normal",wordBreak:"normal",wordSpacing:"normal",position:"absolute",left:"-9999px",fontSize:"48px"};function L(e){return e.toDataURL()}var D=navigator,F=window;var N=navigator;var j=window;var U=window;var q=window;var B=document;var V={osCpu:function(){return navigator.oscpu},languages:function(){var e=[],t=N.language||N.userLanguage||N.browserLanguage||N.systemLanguage;if(void 0!==t&&e.push([t]),Array.isArray(N.languages))E()&&h([!("MediaSettingsRange"in p),"RTCEncodedAudioFrame"in p,""+p.Intl=="[object Intl]",""+p.Reflect=="[object Reflect]"])>=3||e.push(N.languages);else if("string"==typeof N.languages){var n=N.languages;n&&e.push(n.split(","))}return e},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return navigator.deviceMemory},screenResolution:function(){var e=[v(j.screen.width),v(j.screen.height)];return e.sort().reverse(),e},availableScreenResolution:function(){if(U.screen.availWidth&&U.screen.availHeight){var e=[v(U.screen.availWidth),v(U.screen.availHeight)];return e.sort().reverse(),e}},hardwareConcurrency:function(){try{var e=v(navigator.hardwareConcurrency);return isNaN(e)?1:e}catch(t){return 1}},timezoneOffset:function(){var e=(new Date).getFullYear();return Math.max(g(new Date(e,0,1).getTimezoneOffset()),g(new Date(e,6,1).getTimezoneOffset()))},timezone:function(){var e;if(null===(e=q.Intl)||void 0===e?void 0:e.DateTimeFormat)return(new q.Intl.DateTimeFormat).resolvedOptions().timeZone},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){if(!y()&&!w())try{return!!window.indexedDB}catch(e){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){return navigator.platform},plugins:function(){if(y())return[];if(navigator.plugins){for(var e=[],t=0;t<navigator.plugins.length;++t){var n=navigator.plugins[t];if(n){for(var r=[],i=0;i<n.length;++i){var o=n[i];r.push({type:o.type,suffixes:o.suffixes})}e.push({name:n.name,description:n.description,mimeTypes:r})}}return e}},canvas:function(){var e=function(){var e=document.createElement("canvas");return e.width=240,e.height=140,e.style.display="inline",[e,e.getContext("2d")]}(),t=e[0],n=e[1];if(!function(e,t){return!(!t||!e.toDataURL)}(t,n))return{winding:!1,data:""};n.rect(0,0,10,10),n.rect(2,2,6,6);var r=!n.isPointInPath(5,5,"evenodd");n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(125,1,62,20),n.fillStyle="#069",n.font="11pt no-real-font-123";var i="Cwm fjordbank 😃 gly";return n.fillText(i,2,15),n.fillStyle="rgba(102, 204, 0, 0.2)",n.font="18pt Arial",n.fillText(i,4,45),n.globalCompositeOperation="multiply",n.fillStyle="rgb(255,0,255)",n.beginPath(),n.arc(50,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(0,255,255)",n.beginPath(),n.arc(100,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,255,0)",n.beginPath(),n.arc(75,100,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,0,255)",n.arc(75,75,75,0,2*Math.PI,!0),n.arc(75,75,25,0,2*Math.PI,!0),n.fill("evenodd"),{winding:r,data:L(t)}},touchSupport:function(){var e,t=0;void 0!==D.maxTouchPoints?t=v(D.maxTouchPoints):void 0!==D.msMaxTouchPoints&&(t=D.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(n){e=!1}return{maxTouchPoints:t,touchEvent:e,touchStart:"ontouchstart"in F}},fonts:function(){var e=A.body,t=A.createElement("div"),n=A.createElement("div"),r={},i={},o=function(){var e=A.createElement("span");e.textContent="mmMwWLliI0O&1";for(var t=0,n=Object.keys(P);t<n.length;t++){var r=n[t];e.style[r]=P[r]}return e},a=function(e){return x.some((function(t,n){return e[n].offsetWidth!==r[t]||e[n].offsetHeight!==i[t]}))},u=x.map((function(e){var n=o();return n.style.fontFamily=e,t.appendChild(n),n}));e.appendChild(t);for(var s=0,c=x.length;s<c;s++)r[x[s]]=u[s].offsetWidth,i[x[s]]=u[s].offsetHeight;var l=function(){for(var e={},t=function(t){e[t]=x.map((function(e){var r=function(e,t){var n=o();return n.style.fontFamily="'"+e+"',"+t,n}(t,e);return n.appendChild(r),r}))},r=0,i=M;r<i.length;r++){t(i[r])}return e}();e.appendChild(n);for(var d=[],f=0,v=M.length;f<v;f++)a(l[M[f]])&&d.push(M[f]);return e.removeChild(n),e.removeChild(t),d},audio:function(){return r(this,void 0,void 0,(function(){var e,t,n,r,o,a;return i(this,(function(i){switch(i.label){case 0:if(R()&&!S()&&!(h(["DOMRectList"in p,"RTCPeerConnectionIceEvent"in p,"SVGGeometryElement"in p,"ontransitioncancel"in p])>=3))return[2,-1];if(!(e=T.OfflineAudioContext||T.webkitOfflineAudioContext))return[2,-2];t=new e(1,44100,44100),(n=t.createOscillator()).type="triangle",k(t,n.frequency,1e4),r=t.createDynamicsCompressor(),k(t,r.threshold,-50),k(t,r.knee,40),k(t,r.ratio,12),k(t,r.reduction,-20),k(t,r.attack,0),k(t,r.release,.25),n.connect(r),r.connect(t.destination),n.start(0),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,O(t)];case 2:return o=i.sent(),[3,5];case 3:if("timeout"===(a=i.sent()).name||"suspended"===a.name)return[2,-3];throw a;case 4:return n.disconnect(),r.disconnect(),[7];case 5:return[2,I(o.getChannelData(0))]}}))}))},pluginsSupport:function(){return void 0!==navigator.plugins},productSub:function(){return navigator.productSub},emptyEvalLength:function(){return eval.toString().length},errorFF:function(){try{throw"a"}catch(e){try{return e.toSource(),!0}catch(t){return!1}}},vendor:function(){return navigator.vendor},chrome:function(){return void 0!==window.chrome},cookiesEnabled:function(){try{B.cookie="cookietest=1";var e=-1!==B.cookie.indexOf("cookietest=");return B.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(t){return!1}}};function G(e,n,o){return r(this,void 0,void 0,(function(){var r,a,u,s,c,l,d,f,v;return i(this,(function(i){switch(i.label){case 0:r=Date.now(),a={},u=0,s=Object.keys(e),i.label=1;case 1:if(!(u<s.length))return[3,7];if(c=s[u],function(e,t){for(var n=0,r=e.length;n<r;++n)if(e[n]===t)return!0;return!1}(o,c))return[3,6];l=void 0,i.label=2;case 2:return i.trys.push([2,4,,5]),v={},[4,e[c](n)];case 3:return v.value=i.sent(),l=v,[3,5];case 4:return d=i.sent(),l=d&&"object"==typeof d&&"message"in d?{error:d}:{error:{message:d}},[3,5];case 5:f=Date.now(),a[c]=t(t({},l),{duration:f-r}),r=f,i.label=6;case 6:return u++,[3,1];case 7:return[2,a]}}))}))}function H(e){return f(function(e){for(var t="",n=0,r=Object.keys(e);n<r.length;n++){var i=r[n],o=e[i],a=o.error?"error":JSON.stringify(o.value);t+=(t?"|":"")+i.replace(/([:|\\])/g,"\\$1")+":"+a}return t}(e))}var W=function(){function e(){}return e.prototype.get=function(e){return void 0===e&&(e={}),r(this,void 0,void 0,(function(){var n,r;return i(this,(function(i){switch(i.label){case 0:return[4,G(V,void 0,[])];case 1:return n=i.sent(),r=function(e){var t;return{components:e,get visitorId(){return void 0===t&&(t=H(this.components)),t},set visitorId(e){t=e}}}(n),e.debug&&console.log("Copy the text below to get the debug data:\n\n```\nversion: 3.0.3\nuserAgent: "+navigator.userAgent+"\ngetOptions: "+JSON.stringify(e,void 0,2)+"\nvisitorId: "+r.visitorId+"\ncomponents: "+function(e){return JSON.stringify(e,(function(e,n){var r;return n instanceof Error?t(t({},n),{message:n.message,stack:null===(r=n.stack)||void 0===r?void 0:r.split("\n")}):n}),2)}(n)+"\n```"),[2,r]}}))}))},e}();function J(e){var t=(void 0===e?{}:e).delayFallback,n=void 0===t?50:t;return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,(t=n,new Promise((function(e){window.requestIdleCallback?window.requestIdleCallback((function(){return e()})):setTimeout(e,t)})))];case 1:return e.sent(),[2,new W]}var t}))}))}var K=f,z="3.2.0",X=document;function Q(e,t){return new Promise((function(n){return setTimeout((function(){return n(t)}),e)}))}function Y(e,t){return new Promise((function(n){var r=function(){return X.hidden?a():o()},i=function(e,t,n){var r,i=!1,o=e,a=0,u=function(){i||void 0!==r||(a=Date.now(),r=setTimeout((function(){i=!0,n()}),o))};return t&&u(),{start:u,stop:function(){i||void 0===r||(clearTimeout(r),r=void 0,o-=Date.now()-a)}}}(e,!X.hidden,(function(){X.removeEventListener("visibilitychange",r),n(t)})),o=i.start,a=i.stop;X.addEventListener("visibilitychange",r)}))}function Z(e,t){return r(this,void 0,void 0,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e()];case 1:return[2,r.sent()];case 2:return n=r.sent(),console.error(n),[2,t];case 3:return[2]}}))}))}function $(e,t){for(var n="",r=0;r<e;r++)n+=t.charAt(Math.random()*t.length);return n}function ee(e){return $(e,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function te(){return[8,4,4,4,12].map((function(e){return $(e,"0123456789abcdef")})).join("-")}function ne(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];for(var i=function(e){e&&Z((function(){return e.apply(void 0,o([t],n))}))},a=0,u=e;a<u.length;a++){var s=u[a];i(s)}}}var re=window;function ie(e,n){var r;return void 0===n&&(n=!1),t({name:e.name,message:e.message,stack:n?null===(r=e.stack)||void 0===r?void 0:r.split("\n"):e.stack},e)}function oe(){try{return re.self!==re.top}catch(e){return!0}}function ae(e){switch(e){case 0:return"Loading has started";case 1:return"Loading has succeeded";case 2:return"Loading has failed";case 3:return"Getting visitor identifier has started";case 4:return"Getting visitor identifier has succeeded";case 5:return"Getting visitor identifier has failed";case 6:return"TLS request has started";case 7:return"TLS request has succeeded";case 8:return"TLS request has failed";case 9:return"Getting fingerprint has started";case 10:return"Getting fingerprint has succeeded";case 11:return"Getting fingerprint has failed";case 12:return"Visitor identifier request has started";case 13:return"Visitor identifier request has succeeded";case 14:return"Visitor identifier request has failed"}}function ue(e,t,n,a,u){return r(this,void 0,void 0,(function(){var r,s,c;return i(this,(function(i){switch(i.label){case 0:(s=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];e&&Z((function(){var r=t.apply(void 0,n);if(r){var i=r[0],a=r.slice(1);e.apply(void 0,o([i],a))}}))})(t),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,u()];case 2:return r=i.sent(),[3,4];case 3:throw c=i.sent(),s(a,c),c;case 4:return s(n,r),[2,r]}}))}))}function se(){var e=window,t=e.__fpjs_pvid;return e.__fpjs_pvid="string"==typeof t?t:ee(10)}function ce(e,t,n){return-1!==e.indexOf(t)}var le=[0,1,2];function de(e){return void 0===e&&(e="[FingerprintJS Pro] "),function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(ce([2,5,8,11,14],t))console.error(fe(e,t,n));else if(ce([10],t)){var i=fe(e,t,n),o=n[2],a=Object.keys(o).some((function(e){return o[e].error}));a?console.warn(i):console.log(i)}else console.log(fe(e,t,n))}}function fe(e,t,n){void 0===n&&(n=[]);var r=""+e+(new Date).toISOString()+": "+ae(t);return n.length&&(r+="\n```\n"+(n.map((function(e){return JSON.stringify(e,(function(e,t){return t instanceof Error?ie(t,!0):t}),2)})).join("\n")+"\n```")),r}var ve=navigator;function ge(e){var t=e.url,n=e.method,r=void 0===n?"get":n,i=e.body,o=e.headers,a=e.withCredentials,u=void 0!==a&&a,s=e.timeout;return new Promise((function(e,n){var a=new XMLHttpRequest;for(var c in a.open(r,t,!0),a.withCredentials=u,a.timeout=void 0===s?0:Math.max(s,1),o)a.setRequestHeader(c,o[c]);a.onload=function(){return e(function(e){return{text:e.responseText,status:e.status,statusText:e.statusText}}(a))},a.ontimeout=function(){return n(he("TimeoutError","The request timed out"))},a.onabort=function(){return n(he("AbortError","The request is aborted"))},a.onerror=function(){return n(he("TypeError","Connection error"))},a.send(i)}))}function he(e,t){var n=new Error(t);return n.name=e,n}function pe(e){var t=e.url,n=e.body;if(ve.sendBeacon)return ve.sendBeacon(t,n);var r=new XMLHttpRequest;r.open("POST",t,!function(){var e,t=null===(e=re.event)||void 0===e?void 0:e.type;return"pagehide"===t||"unload"===t}()),n instanceof Blob&&r.setRequestHeader("Content-Type",n.type);try{r.send(n)}catch(i){return!1}return!0}var me=document;var be=window,ye=document,we=performance,Ee=function(){function e(e){var t=this;this.onReportReady=e,this.isUnloaded=!1,this.pageStartTimestamp=function(){var e,t;if(we.timeOrigin){var n=null===(t=null===(e=we.getEntriesByType)||void 0===e?void 0:e.call(we,"navigation"))||void 0===t?void 0:t[0];if(n)return we.timeOrigin+(n.responseStart||n.unloadEventEnd)}return we.timing.domLoading||we.timing.responseStart||we.timing.unloadEventEnd}(),this.events={},this.addEvent=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i={time:new Date,type:"agentEvent",name:e,args:n};if(0!==e&&3!==e||(i.isPageVisible=Ce(),i.isFullscreen=ke()),t.storeAgentEvent(i),ce([2],e)){var o=n[0];t.submitReport(o,void 0)}else if(ce([4,5],e)){o=n[0];var a=n[1];t.submitReport(o,a)}},this.handleVisibilityChange=function(){t.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:Ce()})},this.handleFullscreenChange=function(){t.storeEnvironmentEvent({time:new Date,type:"fullscreenToggle",isFullscreen:ke()})},this.handlePageUnload=function(){t.storeEnvironmentEvent({time:new Date,type:"pageUnload"});for(var e=0,n=Object.keys(t.events);e<n.length;e++){var r=n[e],i=t.events[r];if(0===Object.keys(i.getCalls).length)t.submitReport(r,void 0);else for(var o=0,a=Object.keys(i.getCalls);o<a.length;o++){var u=a[o];Re(i.getCalls[u])||t.submitReport(r,u)}}t.isUnloaded=!0},ye.addEventListener("visibilitychange",this.handleVisibilityChange),ye.addEventListener("pageshow",(function(){return t.handlePageTransition(!0)})),ye.addEventListener("pagehide",(function(){return t.handlePageTransition(!1)})),function(e,t){for(var n=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],r=0,i=n;r<i.length;r++){var o=i[r];me.addEventListener(o,e,t)}}(this.handleFullscreenChange),be.addEventListener("unload",this.handlePageUnload)}return e.prototype.handlePageTransition=function(e){this.storeEnvironmentEvent({time:new Date,type:"pageTransition",isShown:e})},e.prototype.storeAgentEvent=function(e){var t=e.args[0];if(this.events[t]||(this.events[t]={loadEvents:[],getCalls:{}}),ce(le,e.name,e.args))this.events[t].loadEvents.push(e);else{var n=e.args[1];this.events[t].getCalls[n]||(this.events[t].getCalls[n]=[]),this.events[t].getCalls[n].push(e)}},e.prototype.storeEnvironmentEvent=function(e){for(var t=0,n=Object.keys(this.events);t<n.length;t++){var r=n[t],i=this.events[r];i.loadEvents.some((function(e){return"agentEvent"===e.type&&(1===e.name||2===e.name)}))||i.loadEvents.push(e);for(var o=0,a=Object.keys(i.getCalls);o<a.length;o++){var u=a[o],s=i.getCalls[u];Re(s)||s.push(e)}}},e.prototype.submitReport=function(e,t){if(!this.isUnloaded){var n=function(e,t){for(var n,r,i,o,a,u,s,c,l,d,f,v,g,h,p,m,b,y,w,E,R,S,T,C,k,O,I,_,A,x,M,P,L,D,F=function(e){for(var t={},n={},r=0,i=e;r<i.length;r++){var o=i[r];"agentEvent"===o.type?t[o.name]=o:n[o.type]=o}return{agentEventMap:t,otherEventMap:n}}(e),N=F.agentEventMap,j=F.otherEventMap,U=null!==(r=null===(n=j.pageUnload)||void 0===n?void 0:n.time)&&void 0!==r?r:new Date,q="null",B=0,V=[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]];B<V.length;B++){var G=V[B],H=G[0],W=G[1];if(N[H]){q=W;break}}return{time:null!==(c=null!==(u=null!==(o=null===(i=N[4])||void 0===i?void 0:i.time)&&void 0!==o?o:null===(a=N[5])||void 0===a?void 0:a.time)&&void 0!==u?u:null===(s=N[2])||void 0===s?void 0:s.time)&&void 0!==c?c:U,pageUrl:location.href,pageStartTime:new Date(t),isInIframe:oe(),agentVersion:null===(l=N[0])||void 0===l?void 0:l.args[1],userAgent:navigator.userAgent,pageViewId:se(),agentId:null===(d=N[0])||void 0===d?void 0:d.args[0],getCallId:null===(f=N[3])||void 0===f?void 0:f.args[1],requestId:null===(v=N[12])||void 0===v?void 0:v.args[2],visitorId:null===(g=N[4])||void 0===g?void 0:g.args[2],identificationState:q,load:Se(U,null===(h=N[0])||void 0===h?void 0:h.time,null===(p=N[1])||void 0===p?void 0:p.time,null===(m=N[2])||void 0===m?void 0:m.time,null===(b=N[2])||void 0===b?void 0:b.args[1]),get:Se(U,null===(y=N[3])||void 0===y?void 0:y.time,null===(w=N[4])||void 0===w?void 0:w.time,null===(E=N[5])||void 0===E?void 0:E.time,null===(R=N[5])||void 0===R?void 0:R.args[2]),tls:Se(U,null===(S=N[6])||void 0===S?void 0:S.time,null===(T=N[7])||void 0===T?void 0:T.time,null===(C=N[8])||void 0===C?void 0:C.time,null===(k=N[8])||void 0===k?void 0:k.args[2]),fingerprint:Se(U,null===(O=N[9])||void 0===O?void 0:O.time,null===(I=N[10])||void 0===I?void 0:I.time,null===(_=N[11])||void 0===_?void 0:_.time,null===(A=N[11])||void 0===A?void 0:A.args[2]),visitorIdRequest:Se(U,null===(x=N[12])||void 0===x?void 0:x.time,null===(M=N[13])||void 0===M?void 0:M.time,null===(P=N[14])||void 0===P?void 0:P.time,null===(L=N[14])||void 0===L?void 0:L.args[2]),failedFingerprintComponents:Te(null===(D=N[10])||void 0===D?void 0:D.args[2]),events:e}}(function(e,t,n){var r,i=[];e[t]&&(i.push.apply(i,e[t].loadEvents),void 0!==n&&i.push.apply(i,null!==(r=e[t].getCalls[n])&&void 0!==r?r:[]));return i}(this.events,e,t),this.pageStartTimestamp);try{this.onReportReady(n)}catch(r){console.error(r)}}},e}();function Re(e){return e.some((function(e){return"agentEvent"===e.type&&(4===e.name||5===e.name)}))}function Se(e,t,n,r,i){if(void 0!==t)return void 0!==n?{duration:n.getTime()-t.getTime(),state:"success"}:void 0!==r?{duration:r.getTime()-t.getTime(),state:"fail",error:null!=i?i:new Error("unknown")}:{duration:e.getTime()-t.getTime(),state:"incomplete"}}function Te(e){return e?Object.keys(e).filter((function(t){return e[t].error})):[]}function Ce(){return!ye.hidden}function ke(){return!!(me.fullscreenElement||me.msFullscreenElement||me.mozFullScreenElement||me.webkitFullscreenElement)}var Oe={null:{level:"info",message:"Load() wasn't called"},loading:{level:"warning",message:"Load() incomplete"},loadSuccess:{level:"info",message:"Load() succeeded, get() wasn't called"},loadFail:{level:"error",message:"Load() failed"},getting:{level:"warning",message:"Get() incomplete"},getSuccess:{level:"info",message:"Get() succeeded"},getFail:{level:"error",message:"Get() failed"}};function Ie(e){var n={type:"manual",level:"debug",source:"client",timestamp_ms:e.time.getTime()};switch(e.type){case"pageVisibilityToggle":return t(t({},n),{body:{message:"Page becomes "+(e.isVisible?"visible (in foreground)":"invisible (in background)")}});case"pageTransition":return t(t({},n),{body:{message:e.isShown?"Page is restored from browser history":"Page is about to go to browser history"}});case"fullscreenToggle":return t(t({},n),{body:{message:"Programmatic fullscreen "+(e.isFullscreen?"on":"off")}});case"pageUnload":return t(t({},n),{body:{message:"Page is about to unload (terminate)"}})}var r=t(t({},n),{level:"info",body:{message:ae(e.name),isPageVisible:e.isPageVisible,isFullscreen:e.isFullscreen}});switch(e.name){case 0:case 3:return t(t({},r),{body:t(t({},r.body),{options:e.args[2]})});case 1:case 9:return r;case 2:return t(t({},r),{level:"error",body:t(t({},r.body),{error:e.args[1]})});case 4:return t(t({},r),{body:t(t({},r.body),{result:e.args[3]})});case 7:case 10:return t(t({},r),{body:t(t({},r.body),{result:e.args[2]})});case 5:case 8:case 11:case 14:return t(t({},r),{level:"error",body:t(t({},r.body),{error:e.args[2]})});case 6:return t(t({},r),{body:t(t({},r.body),{endpoint:e.args[2],timeout:e.args[3]})});case 12:return t(t({},r),{body:t(t({},r.body),{endpoint:e.args[3],request:e.args[4]})});case 13:return t(t({},r),{body:t(t({},r.body),{status:e.args[2],body:e.args[3].slice(0,4096)})})}}var _e={us:"https://api.sjpf.io",eu:"https://tls-eun1.fpapi.io"};var Ae="Client timeout",xe="Network connection error",Me="Network request aborted",Pe="n/a";function Le(e,t){if(t)return t;var n="api.fpjs.io";return"us"!==e&&(n=e+"."+n),"https://"+n}function De(e,o){var a=e.endpoint,u=e.extendedResult,s=n(e,["endpoint","extendedResult"]);return r(this,void 0,void 0,(function(){var e,n;return i(this,(function(r){switch(r.label){case 0:return e=ee(20),n=function(e){var n,r=e.components,i=e.token,o=e.visitorId,a=e.tag,u=e.ipResolution,s=e.extendedResult,c=e.linkedId,l=e.tls,d=e.tlsError,f=e.requestId,v=Object.keys(r).reduce((function(e,t){return e+r[t].duration}),0),g="full"===u?2:1;return(n={}).rid=f,n.cv=z,n.c=i,n.url=location.href,n.d=v,n.vid=o[0]||o[1]||void 0,n.ls=o[1]?1:void 0,n.t=function(e){if(e&&"object"==typeof e)return e;if(null==e)return;return{tag:e}}(a),n.i=g,n.cbd=s?1:void 0,n.lid=c,n.cr=document.referrer||void 0,n.j=l,n.je=null==d?void 0:d.message,n.k1=je(r.osCpu),n.k2=je(r.languages),n.k3=je(r.colorDepth),n.k4=je(r.deviceMemory),n.k5=je(r.screenResolution),n.k6=je(r.availableScreenResolution,void 0,[]),n.k7=je(r.hardwareConcurrency),n.k8=je(r.timezoneOffset),n.k9=je(r.timezone),n.k10=Ue(je(r.sessionStorage)),n.k11=Ue(je(r.localStorage)),n.k12=Ue(je(r.indexedDB)),n.k13=Ue(je(r.openDatabase)),n.k14=je(r.cpuClass),n.k15=je(r.platform),n.k16=je(r.plugins,[]),n.k17=function(e){var n=e.value;if(!n)return;return t(t({},n),{data:K(n.data)})}(r.canvas),n.k18=0,n.k19=je(r.touchSupport),n.k20=je(r.fonts,[]),n.k21=je(r.audio,-4),n.k22=Ue(je(r.pluginsSupport)),n.k23=je(r.productSub),n.k24=je(r.emptyEvalLength),n.k25=Ue(je(r.errorFF)),n.k26=Ue(je(r[0])),n.k27=je(r.vendor),n.k28=Ue(je(r.chrome)),n.k29=Ue(je(r[1])),n.k30=Ue(je(r[2])),n.k31=Ue(je(r[3],!1)),n.k32=Ue(je(r.cookiesEnabled,!1)),n.k33=Ue(je(r[4])),n}(t({extendedResult:u,requestId:e},s)),[4,Fe(a,n,o)];case 1:return[2,Ne(r.sent(),e,u)]}}))}))}function Fe(e,t,n){var o=n[0],a=n[1],u=n[2];return r(this,void 0,void 0,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,ue(o,(function(){return[12,a,u,t.rid,e,t]}),(function(e){return[13,a,u,e.status,e.text]}),(function(e){return[14,a,u,e]}),(function(){return ge({url:e,method:"post",body:JSON.stringify(t),headers:{"Content-Type":"text/plain"},withCredentials:!0})}))];case 1:return[2,r.sent()];case 2:throw n=r.sent(),new Error("AbortError"===n.name?Me:xe);case 3:return[2]}}))}))}function Ne(e,t,n){return r(this,void 0,void 0,(function(){var r;return i(this,(function(i){if(404===e.status||e.status>=500)throw new Error(e.statusText);try{r=JSON.parse(e.text)}catch(o){throw new Error(e.text)}if(function(e){return e&&"object"==typeof e&&"string"==typeof e.visitorId&&e.visitorId!==Pe}(r))return[2,qe(r)];if(function(e){return e&&"object"==typeof e&&e.visitorId===Pe}(r)){if("Not available for crawl bots"===r.reason||"Not available when User-Agent is unspecified"===r.reason)return[2,Be(r.reason,t,n)];throw new Error(r.reason)}throw new Error(e.text)}))}))}function je(e,t,n){return e.error?t:void 0===e.value?n:e.value}function Ue(e){return!0===e?1:!1===e?0:e}function qe(e){var r=e,i=r.botProbability,o=n(r,["botProbability"]),a=t({},o);return i&&(a.bot={probability:i}),a}function Be(e,n,r){var i={requestId:n,visitorFound:!1,visitorId:""};if(!r)return i;var o=t(t({},i),{bot:{probability:1},incognito:!1,browserName:Pe,browserVersion:Pe,device:Pe,ip:Pe,ipLocation:{},os:Pe,osVersion:Pe});return"Not available for crawl bots"===e&&(o.bot.safe=!0),o}var Ve=window,Ge=document;var He=window;var We=navigator,Je=window;function Ke(){var e,t,n,r=(null===(e=We.userAgent)||void 0===e?void 0:e.indexOf("Mac OS"))>0&&-1===(null===(t=We.userAgent)||void 0===t?void 0:t.indexOf("iPhone")),i=(null===(n=We.userAgent)||void 0===n?void 0:n.indexOf("CrOS"))>0;return r||i?3221225472:1073741824}function ze(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return"storage"in We&&"estimate"in We.storage?[4,We.storage.estimate()]:[3,2];case 1:return[2,!!(e=t.sent().quota)&&e<Ke()];case 2:return[2,!1]}}))}))}var Xe=window;function Qe(){return r(this,void 0,void 0,(function(){return i(this,(function(e){return S()?[2,Ye()]:[2,Ze()]}))}))}function Ye(){if(!Xe.safari)return!1;try{Xe.safari.pushNotification.requestPermission("https://example.com","private",{},(function(){}))}catch(t){return e=t,!new RegExp([103,101,115,116,117,114,101].map((function(e){return String.fromCharCode(e)})).join("")).test(e)}var e;throw new Error("Unexpected lack of error")}function Ze(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:(e=document.createElement("iframe")).style.display="none",t.label=1;case 1:return t.trys.push([1,,3,4]),document.body.appendChild(e),[4,Promise.race([Q(20,!1),new Promise((function(t){e.contentWindow?e.contentWindow.applicationCache.addEventListener("error",(function(){return t(!0)})):t(!1)}))])];case 2:return[2,t.sent()];case 3:return e.remove(),[7];case 4:return[2]}}))}))}function $e(){try{Xe.openDatabase(null,null,null,null)}catch(e){return!0}try{return Xe.localStorage.setItem("test","1"),Xe.localStorage.removeItem("test"),!1}catch(e){return!0}}var et="_inc",tt=[[function(){return E()},function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){return function(){var e=We.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);if(!e)throw"UserAgent is not Google Chrome";return parseInt(e[2],10)}()>=76?[2,ze()]:[2,new Promise((function(e){Je.webkitRequestFileSystem(0,1,(function(){return e(!1)}),(function(){return e(!0)}))}))]}))}))}],[function(){return R()},function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){return function(){var e=navigator.userAgent.match(/Version\/([0-9._]+).*Safari/);if(!e)throw new Error("UserAgent is not Safari");var t=e[1].split(".").map((function(e){return isNaN(parseInt(e))?0:parseInt(e)})),n=t[0],r=t[1],i=t[2];return{major:n,minor:r,patch:i}}().major<13?[2,$e()]:[2,Qe()]}))}))}],[function(){return function(){var e;return h(["buildID"in m,(null===(e=b.documentElement)||void 0===e?void 0:e.style)&&"MozAppearance"in b.documentElement.style,"MediaRecorderErrorEvent"in p,"mozInnerScreenX"in p,"CSSMozDocumentRule"in p,"CanvasCaptureMediaStream"in p])>=4}()},function(){return new Promise((function(e){try{var t=He.indexedDB.open("test");t.onerror=function(){return e(!0)},t.onsuccess=function(){return e(!1)}}catch(n){return e(!0)}}))}],[function(){return y()||w()},function(){try{if(!window.indexedDB)return!0}catch(e){return!0}return!1}]];function nt(){return r(this,void 0,void 0,(function(){var e,t,n,r,o;return i(this,(function(i){switch(i.label){case 0:e=0,t=tt,i.label=1;case 1:return e<t.length?(n=t[e],r=n[0],o=n[1],r()?[4,o()]:[3,3]):[3,4];case 2:return[2,i.sent()];case 3:return e++,[3,1];case 4:return[2,!1]}}))}))}function rt(e,t){if(0==t.length||t.length>e.length)return-1;for(var n=0;n<e.length;n++){for(var r=0,i=0;i<t.length;i++){if(e[n+i]!==t[i]){r=0;break}r++}if(r==t.length)return n}return-1}var it,ot=window,at=document;var ut=((it={})[0]=function(){return void 0!==navigator.webdriver},it[1]=function(){return r(this,void 0,void 0,(function(){var e,t;return i(this,(function(n){switch(n.label){case 0:return(e=navigator.permissions)?[4,e.query({name:"notifications"})]:[2,void 0];case 1:return t=n.sent(),"undefined"==typeof Notification?[2,void 0]:[2,"denied"===Notification.permission&&"prompt"===t.state]}}))}))},it[2]=function(){var e=Ge.documentElement;return"webdriver"in Ve||"_Selenium_IDE_Recorder"in Ve||"callSelenium"in Ve||"_selenium"in Ve||"__webdriver_script_fn"in Ge||"__driver_evaluate"in Ge||"__webdriver_evaluate"in Ge||"__selenium_evaluate"in Ge||"__fxdriver_evaluate"in Ge||"__driver_unwrapped"in Ge||"__webdriver_unwrapped"in Ge||"__selenium_unwrapped"in Ge||"__fxdriver_unwrapped"in Ge||"__webdriver_script_func"in Ge||null!==e.getAttribute("selenium")||null!==e.getAttribute("webdriver")||null!==e.getAttribute("driver")},it[3]=function(){return r(this,void 0,void 0,(function(){var e,t;return i(this,(function(n){switch(n.label){case 0:if(void 0!==(e=function(){try{var e=localStorage.getItem(et);if(!e)return;return"1"===e}catch(t){return}}()))return[2,e];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,nt()];case 2:return function(e){try{localStorage.setItem(et,e?"1":"0")}catch(t){}}(t=n.sent()),[2,t];case 3:return n.sent(),[2,!1];case 4:return[2]}}))}))},it[4]=function(){if(!E())return!1;try{if([66,114,97,118,101].map((function(e){return String.fromCharCode(e)})).join("")in ot)return!0;var e=at.createElement("canvas");e.width=4,e.height=4,e.style.display="inline";var t=e.toDataURL();if(""===t)return!0;for(var n=window.atob(t.split(",")[1]),r=n.length,i=new Uint8Array(r),o=0;o<r;o++)i[o]=n.charCodeAt(o);var a=rt(i,[73,68,65,84,24]);if(-1===a)return!1;var u=rt(i,[73,69,78,68]);return-1!==a&&1321!==i.slice(a+5,u).reduce((function(e,t){return e+t}),0)}catch(s){return!1}},it);function st(){return G(ut,void 0,[])}var ct=document,lt=location;function dt(e){for(var t=e+"=",n=0,r=ct.cookie.split(";");n<r.length;n++){for(var i=r[n],o=0;" "===i[o]&&o<i.length;)++o;if(i.indexOf(t)===o)return i.slice(o+t.length)}}function ft(e,t,n,r){var i=e+"="+t,o="expires="+new Date(Date.now()+24*n*60*60*1e3).toUTCString(),a=r?"domain="+r:"";ct.cookie=[i,"path=/",o,a].join("; ")}function vt(e,t,n){var r=lt.hostname;gt(r,(function(t){!function(e,t){ft(e,"",-1,t)}(e,t)})),gt(r,(function(r){return ft(e,t,n,r),dt(e)!==t}))&&ft(e,t,n)}function gt(e,t){var n=e.length;do{if(n=n>0?e.lastIndexOf(".",n-1):-1,!1===t(e.slice(n+1)))return!1}while(n>=0);return!0}var ht="_vid";function pt(e){return void 0===e&&(e=ht),[dt(e),bt(e)]}function mt(e,t){void 0===t&&(t=ht),vt(t,e,365),function(e,t){var n;try{null===(n=null===localStorage||void 0===localStorage?void 0:localStorage.setItem)||void 0===n||n.call(localStorage,e,t)}catch(r){}}(t,e)}function bt(e){var t,n;try{return null!==(n=null===(t=null===localStorage||void 0===localStorage?void 0:localStorage.getItem)||void 0===t?void 0:t.call(localStorage,e))&&void 0!==n?n:void 0}catch(r){}}function yt(e,n,o){var a=this,u=o.token,s=o.region,c=void 0===s?"us":s,l=o.endpoint,d=o.tlsEndpoint,f=o.storageKey,v=o.debug;var g=function(n,o,s,v,g,m,b){return r(a,void 0,void 0,(function(){var r,a,y,w;return i(this,(function(i){switch(i.label){case 0:return[4,Promise.all([h(c,d,v,!!s,b),p(b)])];case 1:return r=i.sent(),a=r[0],y=r[1],[4,De(t(t({},a),{token:u,endpoint:Le(c,l),components:y,tag:n,visitorId:pt(f),linkedId:o,extendedResult:g,ipResolution:m}),[b[0],e,b[1]])];case 2:return mt((w=i.sent()).visitorId,f),[2,w]}}))}))},h=function(t,n,o,u,s){var c=s[0],l=s[1];return r(a,void 0,void 0,(function(){var a;return i(this,(function(s){return u?[2,void 0]:(a=function(e,t){return t||_e[e]}(t,n),[2,ue(c,(function(){return[6,e,l,a,o]}),(function(t){return[7,e,l,t]}),(function(t){return[8,e,l,t]}),(function(){return function(e,t){return r(this,void 0,void 0,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,ge({url:e,timeout:t})];case 1:return n=r.sent(),[3,3];case 2:switch(r.sent().name){case"AbortError":throw new Error("Abort");case"TimeoutError":throw new Error("Timeout");default:throw new Error("Connection error")}case 3:if(200===n.status)return[2,n.text];throw new Error(n.text.slice(0,255))}}))}))}(a,o)})).then((function(e){return{tls:e}}),(function(e){return{tlsError:e}}))])}))}))},p=function(o){var u=o[0],s=o[1];return ue(u,(function(){return[9,e,s]}),(function(t){return[10,e,s,t]}),(function(t){return[11,e,s,t]}),(function(){return r(a,void 0,void 0,(function(){var e,r;return i(this,(function(i){switch(i.label){case 0:return[4,n.get()];case 1:return e=i.sent(),[4,st()];case 2:return r=i.sent(),[2,t(t({},e.components),r)]}}))}))}))};return{get:function(t){void 0===t&&(t={});var n=ee(8),r=ne([v,t.debug&&de()]);return ue(r,(function(){return[3,e,n,t]}),(function(t){return[4,e,n,t.visitorId,t]}),(function(t){return[5,e,n,t]}),(function(){var e=t.timeout,i=void 0===e?1e4:e,o=t.tag,a=t.linkedId,u=t.disableTls,s=t.extendedResult,c=t.ipResolution;return Promise.race([Y(i).then((function(){throw new Error(Ae)})),g(o,a,u,i/2,s,c,[r,n])])}))}}}function wt(e){var t=this,n=ee(8);return ue(e.debug,(function(){return[0,n,z,e]}),(function(){return[1,n]}),(function(e){return[2,n,e]}),(function(){return r(t,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:if(!e.token||"string"!=typeof e.token)throw new Error("Token required");return[4,J({delayFallback:e.delayFallback})];case 1:return t=r.sent(),[2,yt(n,t,e)]}}))}))}))}var Et="Token required",Rt="Token not found",St="Token expired",Tt="Request cannot be parsed",Ct="Request failed",kt="Request failed to process",Ot="Too many requests, rate limit exceeded",It={load:wt,ERROR_CLIENT_TIMEOUT:Ae,ERROR_NETWORK_CONNECTION:xe,ERROR_NETWORK_ABORT:Me,ERROR_TOKEN_MISSING:Et,ERROR_TOKEN_INVALID:Rt,ERROR_TOKEN_EXPIRED:St,ERROR_BAD_REQUEST_FORMAT:Tt,ERROR_GENERAL_SERVER_FAILURE:Ct,ERROR_SERVER_TIMEOUT:kt,ERROR_RATE_LIMIT:Ot};e.ERROR_BAD_REQUEST_FORMAT=Tt,e.ERROR_CLIENT_TIMEOUT=Ae,e.ERROR_GENERAL_SERVER_FAILURE=Ct,e.ERROR_NETWORK_ABORT=Me,e.ERROR_NETWORK_CONNECTION=xe,e.ERROR_RATE_LIMIT=Ot,e.ERROR_SERVER_TIMEOUT=kt,e.ERROR_TOKEN_EXPIRED=St,e.ERROR_TOKEN_INVALID=Rt,e.ERROR_TOKEN_MISSING=Et,e.default=It,e.load=wt,e.makeConsoleDebugger=de,e.makeMulticastDebugger=ne,e.makeRemoteDebugger=function(e){var t=this,n=e.clientId,a=e.token,u=e.endpoint,s=void 0===u?"https://api.rollbar.com/api/1/item/":u;return new Ee((function(e){return r(t,void 0,void 0,(function(){var t,r;return i(this,(function(i){switch(i.label){case 0:t=JSON.stringify(function(e,t,n){var r,i=Oe[e.identificationState],a=i.level,u=i.message;return{access_token:n,data:{environment:t,level:a,timestamp:Math.round(e.time.getTime()/1e3),platform:"browser",framework:"FingerprintJS Pro",language:"javascript",uuid:te(),notifier:{name:"FingerprintJS Pro monitoring",version:z},request:{url:e.pageUrl,query_string:(null!==(r=/\?.*$/.exec(e.pageUrl))&&void 0!==r?r:[""])[0],user_ip:"$remote_ip"},client:{javascript:{browser:e.userAgent,code_version:e.agentVersion}},body:{telemetry:o([{level:"debug",source:"client",timestamp_ms:e.pageStartTime.getTime(),type:"manual",body:{message:"Page starts"}}],e.events.map(Ie)),message:{body:u}},custom:{isInIframe:e.isInIframe,pageViewId:e.pageViewId,agentId:e.agentId,getCallId:e.getCallId,requestId:e.requestId,visitorId:e.visitorId,identificationState:e.identificationState,load:e.load,get:e.get,tls:e.tls,fingerprint:e.fingerprint,visitorIdRequest:e.visitorIdRequest,failedFingerprintComponents:e.failedFingerprintComponents.map((function(e){return e+","})).join()||void 0}}}}(e,n,a),(function(e,t){return t instanceof Error?ie(t):t})),r=0,i.label=1;case 1:return pe({url:s,body:t})?[3,5]:[3,2];case 2:return[4,Q(1e3*Math.min(r+r,10))];case 3:i.sent(),i.label=4;case 4:return++r,[3,1];case 5:return[2]}}))}))})).addEvent},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).FingerprintJS={})}(this,(function(e){"use strict";var t=function(){return(t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function n(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function r(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(t){o(t)}}function u(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(u){o=[6,u],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}function o(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)r[i]=o[a];return r}function a(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function u(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function s(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}function c(e,t){return 0===(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function l(e,t){return[e[0]^t[0],e[1]^t[1]]}function d(e){return e=l(e,[0,e[0]>>>1]),e=l(e=u(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=l(e=u(e,[3301882366,444984403]),[0,e[0]>>>1])}function f(e,t){t=t||0;var n,r=(e=e||"").length%16,i=e.length-r,o=[0,t],f=[0,t],v=[0,0],g=[0,0],h=[2277735313,289559509],p=[1291169091,658871167];for(n=0;n<i;n+=16)v=[255&e.charCodeAt(n+4)|(255&e.charCodeAt(n+5))<<8|(255&e.charCodeAt(n+6))<<16|(255&e.charCodeAt(n+7))<<24,255&e.charCodeAt(n)|(255&e.charCodeAt(n+1))<<8|(255&e.charCodeAt(n+2))<<16|(255&e.charCodeAt(n+3))<<24],g=[255&e.charCodeAt(n+12)|(255&e.charCodeAt(n+13))<<8|(255&e.charCodeAt(n+14))<<16|(255&e.charCodeAt(n+15))<<24,255&e.charCodeAt(n+8)|(255&e.charCodeAt(n+9))<<8|(255&e.charCodeAt(n+10))<<16|(255&e.charCodeAt(n+11))<<24],v=s(v=u(v,h),31),o=a(o=s(o=l(o,v=u(v,p)),27),f),o=a(u(o,[0,5]),[0,1390208809]),g=s(g=u(g,p),33),f=a(f=s(f=l(f,g=u(g,h)),31),o),f=a(u(f,[0,5]),[0,944331445]);switch(v=[0,0],g=[0,0],r){case 15:g=l(g,c([0,e.charCodeAt(n+14)],48));case 14:g=l(g,c([0,e.charCodeAt(n+13)],40));case 13:g=l(g,c([0,e.charCodeAt(n+12)],32));case 12:g=l(g,c([0,e.charCodeAt(n+11)],24));case 11:g=l(g,c([0,e.charCodeAt(n+10)],16));case 10:g=l(g,c([0,e.charCodeAt(n+9)],8));case 9:g=u(g=l(g,[0,e.charCodeAt(n+8)]),p),f=l(f,g=u(g=s(g,33),h));case 8:v=l(v,c([0,e.charCodeAt(n+7)],56));case 7:v=l(v,c([0,e.charCodeAt(n+6)],48));case 6:v=l(v,c([0,e.charCodeAt(n+5)],40));case 5:v=l(v,c([0,e.charCodeAt(n+4)],32));case 4:v=l(v,c([0,e.charCodeAt(n+3)],24));case 3:v=l(v,c([0,e.charCodeAt(n+2)],16));case 2:v=l(v,c([0,e.charCodeAt(n+1)],8));case 1:v=u(v=l(v,[0,e.charCodeAt(n)]),h),o=l(o,v=u(v=s(v,31),p))}return o=a(o=l(o,[0,e.length]),f=l(f,[0,e.length])),f=a(f,o),o=a(o=d(o),f=d(f)),f=a(f,o),("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(f[0]>>>0).toString(16)).slice(-8)+("00000000"+(f[1]>>>0).toString(16)).slice(-8)}function v(e){return"number"==typeof e?0|e:parseInt(e)}function g(e){return"number"==typeof e?e:parseFloat(e)}function h(e){return e.reduce((function(e,t){return e+(t?1:0)}),0)}var p=window,m=navigator,b=document;function y(){return h(["MSCSSMatrix"in p,"msSetImmediate"in p,"msIndexedDB"in p,"msMaxTouchPoints"in m,"msPointerEnabled"in m])>=4}function w(){return h(["msWriteProfilerMark"in p,"MSStream"in p,"msLaunchUri"in m,"msSaveBlob"in m])>=3&&!y()}function E(){return h(["webkitPersistentStorage"in m,"webkitTemporaryStorage"in m,0===m.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in p,"BatteryManager"in p,"webkitMediaStream"in p,"webkitSpeechGrammar"in p])>=5}function S(){return h(["ApplePayError"in p,"CSSPrimitiveValue"in p,"Counter"in p,0===m.vendor.indexOf("Apple"),"getStorageUpdates"in m,"WebKitMediaKeys"in p])>=4}function R(){return h(["safari"in p,!("DeviceMotionEvent"in p),!("ongestureend"in p),!("standalone"in m)])>=3}var C=window,I=document;function k(e,t,n){(function(e){return e&&"function"==typeof e.setValueAtTime})(t)&&t.setValueAtTime(n,e.currentTime)}function T(e){return new Promise((function(t,n){e.oncomplete=function(e){return t(e.renderedBuffer)};var r=3,i=function(){switch(e.startRendering(),e.state){case"running":setTimeout((function(){return n(_("timeout"))}),1e3);break;case"suspended":I.hidden||r--,r>0?setTimeout(i,500):n(_("suspended"))}};i()}))}function O(e){for(var t=0,n=4500;n<5e3;++n)t+=Math.abs(e[n]);return t}function _(e){var t=new Error(e);return t.name=e,t}var A=document,x=["monospace","sans-serif","serif"],P=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"],M={fontStyle:"normal",fontWeight:"normal",letterSpacing:"normal",lineBreak:"auto",lineHeight:"normal",textTransform:"none",textAlign:"left",textDecoration:"none",textShadow:"none",whiteSpace:"normal",wordBreak:"normal",wordSpacing:"normal",position:"absolute",left:"-9999px",fontSize:"48px"};function L(e){return e.toDataURL()}var D=navigator,N=window;var F=navigator;var j=window;var q=window;var U=window;var V=document;var B={osCpu:function(){return navigator.oscpu},languages:function(){var e=[],t=F.language||F.userLanguage||F.browserLanguage||F.systemLanguage;if(void 0!==t&&e.push([t]),Array.isArray(F.languages))E()&&h([!("MediaSettingsRange"in p),"RTCEncodedAudioFrame"in p,""+p.Intl=="[object Intl]",""+p.Reflect=="[object Reflect]"])>=3||e.push(F.languages);else if("string"==typeof F.languages){var n=F.languages;n&&e.push(n.split(","))}return e},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return navigator.deviceMemory},screenResolution:function(){var e=[v(j.screen.width),v(j.screen.height)];return e.sort().reverse(),e},availableScreenResolution:function(){if(q.screen.availWidth&&q.screen.availHeight){var e=[v(q.screen.availWidth),v(q.screen.availHeight)];return e.sort().reverse(),e}},hardwareConcurrency:function(){try{var e=v(navigator.hardwareConcurrency);return isNaN(e)?1:e}catch(t){return 1}},timezoneOffset:function(){var e=(new Date).getFullYear();return Math.max(g(new Date(e,0,1).getTimezoneOffset()),g(new Date(e,6,1).getTimezoneOffset()))},timezone:function(){var e;if(null===(e=U.Intl)||void 0===e?void 0:e.DateTimeFormat)return(new U.Intl.DateTimeFormat).resolvedOptions().timeZone},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){if(!y()&&!w())try{return!!window.indexedDB}catch(e){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){return navigator.platform},plugins:function(){if(y())return[];if(navigator.plugins){for(var e=[],t=0;t<navigator.plugins.length;++t){var n=navigator.plugins[t];if(n){for(var r=[],i=0;i<n.length;++i){var o=n[i];r.push({type:o.type,suffixes:o.suffixes})}e.push({name:n.name,description:n.description,mimeTypes:r})}}return e}},canvas:function(){var e=function(){var e=document.createElement("canvas");return e.width=240,e.height=140,e.style.display="inline",[e,e.getContext("2d")]}(),t=e[0],n=e[1];if(!function(e,t){return!(!t||!e.toDataURL)}(t,n))return{winding:!1,data:""};n.rect(0,0,10,10),n.rect(2,2,6,6);var r=!n.isPointInPath(5,5,"evenodd");n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(125,1,62,20),n.fillStyle="#069",n.font="11pt no-real-font-123";var i="Cwm fjordbank 😃 gly";return n.fillText(i,2,15),n.fillStyle="rgba(102, 204, 0, 0.2)",n.font="18pt Arial",n.fillText(i,4,45),n.globalCompositeOperation="multiply",n.fillStyle="rgb(255,0,255)",n.beginPath(),n.arc(50,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(0,255,255)",n.beginPath(),n.arc(100,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,255,0)",n.beginPath(),n.arc(75,100,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,0,255)",n.arc(75,75,75,0,2*Math.PI,!0),n.arc(75,75,25,0,2*Math.PI,!0),n.fill("evenodd"),{winding:r,data:L(t)}},touchSupport:function(){var e,t=0;void 0!==D.maxTouchPoints?t=v(D.maxTouchPoints):void 0!==D.msMaxTouchPoints&&(t=D.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(n){e=!1}return{maxTouchPoints:t,touchEvent:e,touchStart:"ontouchstart"in N}},fonts:function(){var e=A.body,t=A.createElement("div"),n=A.createElement("div"),r={},i={},o=function(){var e=A.createElement("span");e.textContent="mmMwWLliI0O&1";for(var t=0,n=Object.keys(M);t<n.length;t++){var r=n[t];e.style[r]=M[r]}return e},a=function(e){return x.some((function(t,n){return e[n].offsetWidth!==r[t]||e[n].offsetHeight!==i[t]}))},u=x.map((function(e){var n=o();return n.style.fontFamily=e,t.appendChild(n),n}));e.appendChild(t);for(var s=0,c=x.length;s<c;s++)r[x[s]]=u[s].offsetWidth,i[x[s]]=u[s].offsetHeight;var l=function(){for(var e={},t=function(t){e[t]=x.map((function(e){var r=function(e,t){var n=o();return n.style.fontFamily="'"+e+"',"+t,n}(t,e);return n.appendChild(r),r}))},r=0,i=P;r<i.length;r++){t(i[r])}return e}();e.appendChild(n);for(var d=[],f=0,v=P.length;f<v;f++)a(l[P[f]])&&d.push(P[f]);return e.removeChild(n),e.removeChild(t),d},audio:function(){return r(this,void 0,void 0,(function(){var e,t,n,r,o,a;return i(this,(function(i){switch(i.label){case 0:if(S()&&!R()&&!(h(["DOMRectList"in p,"RTCPeerConnectionIceEvent"in p,"SVGGeometryElement"in p,"ontransitioncancel"in p])>=3))return[2,-1];if(!(e=C.OfflineAudioContext||C.webkitOfflineAudioContext))return[2,-2];t=new e(1,44100,44100),(n=t.createOscillator()).type="triangle",k(t,n.frequency,1e4),r=t.createDynamicsCompressor(),k(t,r.threshold,-50),k(t,r.knee,40),k(t,r.ratio,12),k(t,r.reduction,-20),k(t,r.attack,0),k(t,r.release,.25),n.connect(r),r.connect(t.destination),n.start(0),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,T(t)];case 2:return o=i.sent(),[3,5];case 3:if("timeout"===(a=i.sent()).name||"suspended"===a.name)return[2,-3];throw a;case 4:return n.disconnect(),r.disconnect(),[7];case 5:return[2,O(o.getChannelData(0))]}}))}))},pluginsSupport:function(){return void 0!==navigator.plugins},productSub:function(){return navigator.productSub},emptyEvalLength:function(){return eval.toString().length},errorFF:function(){try{throw"a"}catch(e){try{return e.toSource(),!0}catch(t){return!1}}},vendor:function(){return navigator.vendor},chrome:function(){return void 0!==window.chrome},cookiesEnabled:function(){try{V.cookie="cookietest=1";var e=-1!==V.cookie.indexOf("cookietest=");return V.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(t){return!1}}};function G(e,n,o){return r(this,void 0,void 0,(function(){var r,a,u,s,c,l,d,f,v;return i(this,(function(i){switch(i.label){case 0:r=Date.now(),a={},u=0,s=Object.keys(e),i.label=1;case 1:if(!(u<s.length))return[3,7];if(c=s[u],function(e,t){for(var n=0,r=e.length;n<r;++n)if(e[n]===t)return!0;return!1}(o,c))return[3,6];l=void 0,i.label=2;case 2:return i.trys.push([2,4,,5]),v={},[4,e[c](n)];case 3:return v.value=i.sent(),l=v,[3,5];case 4:return d=i.sent(),l=d&&"object"==typeof d&&"message"in d?{error:d}:{error:{message:d}},[3,5];case 5:f=Date.now(),a[c]=t(t({},l),{duration:f-r}),r=f,i.label=6;case 6:return u++,[3,1];case 7:return[2,a]}}))}))}function H(e){return f(function(e){for(var t="",n=0,r=Object.keys(e);n<r.length;n++){var i=r[n],o=e[i],a=o.error?"error":JSON.stringify(o.value);t+=(t?"|":"")+i.replace(/([:|\\])/g,"\\$1")+":"+a}return t}(e))}var W=function(){function e(){}return e.prototype.get=function(e){return void 0===e&&(e={}),r(this,void 0,void 0,(function(){var n,r;return i(this,(function(i){switch(i.label){case 0:return[4,G(B,void 0,[])];case 1:return n=i.sent(),r=function(e){var t;return{components:e,get visitorId(){return void 0===t&&(t=H(this.components)),t},set visitorId(e){t=e}}}(n),e.debug&&console.log("Copy the text below to get the debug data:\n\n```\nversion: 3.0.3\nuserAgent: "+navigator.userAgent+"\ngetOptions: "+JSON.stringify(e,void 0,2)+"\nvisitorId: "+r.visitorId+"\ncomponents: "+function(e){return JSON.stringify(e,(function(e,n){var r;return n instanceof Error?t(t({},n),{message:n.message,stack:null===(r=n.stack)||void 0===r?void 0:r.split("\n")}):n}),2)}(n)+"\n```"),[2,r]}}))}))},e}();function J(e){var t=(void 0===e?{}:e).delayFallback,n=void 0===t?50:t;return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,(t=n,new Promise((function(e){window.requestIdleCallback?window.requestIdleCallback((function(){return e()})):setTimeout(e,t)})))];case 1:return e.sent(),[2,new W]}var t}))}))}var K=f,z="3.2.1",X=document;function Q(e,t){return new Promise((function(n){return setTimeout((function(){return n(t)}),e)}))}function Y(e,t){return new Promise((function(n){var r=function(){return X.hidden?a():o()},i=function(e,t,n){var r,i=!1,o=e,a=0,u=function(){i||void 0!==r||(a=Date.now(),r=setTimeout((function(){i=!0,n()}),o))};return t&&u(),{start:u,stop:function(){i||void 0===r||(clearTimeout(r),r=void 0,o-=Date.now()-a)}}}(e,!X.hidden,(function(){X.removeEventListener("visibilitychange",r),n(t)})),o=i.start,a=i.stop;X.addEventListener("visibilitychange",r)}))}function Z(e,t){return r(this,void 0,void 0,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e()];case 1:return[2,r.sent()];case 2:return n=r.sent(),console.error(n),[2,t];case 3:return[2]}}))}))}function $(e,t){for(var n="",r=0;r<e;r++)n+=t.charAt(Math.random()*t.length);return n}function ee(e){return $(e,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function te(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=function(e){e&&Z((function(){return e.apply(void 0,t)}))},i=0,o=e;i<o.length;i++){var a=o[i];r(a)}}}var ne=window;function re(e,n){var r;return void 0===n&&(n=!1),t({name:e.name,message:e.message,stack:n?null===(r=e.stack)||void 0===r?void 0:r.split("\n"):e.stack},e)}function ie(){try{return ne.self!==ne.top}catch(e){return!0}}function oe(e){switch(e){case 0:return"Loading has started";case 1:return"Loading has succeeded";case 2:return"Loading has failed";case 3:return"Getting visitor identifier has started";case 4:return"Getting visitor identifier has succeeded";case 5:return"Getting visitor identifier has failed";case 6:return"TLS request has started";case 7:return"TLS request has succeeded";case 8:return"TLS request has failed";case 9:return"Getting fingerprint has started";case 10:return"Getting fingerprint has succeeded";case 11:return"Getting fingerprint has failed";case 12:return"Visitor identifier request has started";case 13:return"Visitor identifier request has succeeded";case 14:return"Visitor identifier request has failed"}}function ae(e){return void 0===e&&(e="[FingerprintJS Pro] "),function(t){switch(t.e){case 2:case 5:case 8:case 11:case 14:console.error(ue(e,t));break;case 10:var n=ue(e,t),r=t.result;Object.keys(r).some((function(e){return r[e].error}))?console.warn(n):console.log(n);break;default:console.log(ue(e,t))}}}function ue(e,t){var r=t.e,i=n(t,["e"]),o=""+e+(new Date).toISOString()+": "+oe(r);return Object.keys(i).length&&(o+="\n```\n"+function(e){return JSON.stringify(e,(function(e,t){return t instanceof Error?re(t,!0):t}),2)}(i)+"\n```"),o}var se=navigator;function ce(e){var t=e.url,n=e.method,r=void 0===n?"get":n,i=e.body,o=e.headers,a=e.withCredentials,u=void 0!==a&&a,s=e.timeout;return new Promise((function(e,n){var a=new XMLHttpRequest;for(var c in a.open(r,t,!0),a.withCredentials=u,a.timeout=void 0===s?0:Math.max(s,1),o)a.setRequestHeader(c,o[c]);a.onload=function(){return e(function(e){return{text:e.responseText,status:e.status,statusText:e.statusText}}(a))},a.ontimeout=function(){return n(le("TimeoutError","The request timed out"))},a.onabort=function(){return n(le("AbortError","The request is aborted"))},a.onerror=function(){return n(le("TypeError",se.onLine?"Connection error":"Network offline"))},a.send(i)}))}function le(e,t){var n=new Error(t);return n.name=e,n}function de(e){var t=e.url,n=e.body;if(se.sendBeacon)return se.sendBeacon(t,n);var r=new XMLHttpRequest;r.open("POST",t,!function(){var e,t=null===(e=ne.event)||void 0===e?void 0:e.type;return"pagehide"===t||"unload"===t}()),n instanceof Blob&&r.setRequestHeader("Content-Type",n.type);try{r.send(n)}catch(i){return!1}return!0}var fe=document,ve=navigator;function ge(e,t,n,o,a){return r(this,void 0,void 0,(function(){var r,u,s;return i(this,(function(i){switch(i.label){case 0:(u=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];e&&Z((function(){var r=t.apply(void 0,n);r&&e(r)}))})(t),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,a()];case 2:return r=i.sent(),[3,4];case 3:throw s=i.sent(),u(o,s),s;case 4:return u(n,r),[2,r]}}))}))}function he(){var e=window,t=e.__fpjs_pvid;return e.__fpjs_pvid="string"==typeof t?t:ee(10)}var pe=window,me=navigator,be=document,ye=performance;var we=function(){function e(e){var t=this;this.onReportReady=e,this.isStopped=!1,this.pageStartTimestamp=function(){var e,t;if(ye.timeOrigin){var n=null===(t=null===(e=ye.getEntriesByType)||void 0===e?void 0:e.call(ye,"navigation"))||void 0===t?void 0:t[0];if(n)return ye.timeOrigin+(n.responseStart||n.unloadEventEnd)}return ye.timing.domLoading||ye.timing.responseStart||ye.timing.unloadEventEnd}(),this.events={},this.addEvent=function(e){if(!t.isStopped){var n={time:new Date,type:"agentEvent",event:e};switch(0!==e.e&&3!==e.e||(n.isPageVisible=Ce(),n.isFullscreen=Ie(),n.network=ke()),t.storeAgentEvent(n),e.e){case 2:t.submitReport(e.agentId,void 0);break;case 4:case 5:t.submitReport(e.agentId,e.getCallId)}}};for(var n=[[be,"visibilitychange",function(){return t.handleVisibilityChange()}],[be,"pageshow",function(){return t.handlePageTransition(!0)}],[be,"pagehide",function(){return t.handlePageTransition(!1)}],[pe,"unload",function(){return t.handlePageUnload()}]],r=0,i=n;r<i.length;r++){var o=i[r],a=o[0],u=o[1],s=o[2];a.addEventListener(u,s)}var c=function(e,t){for(var n=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],r=0,i=n;r<i.length;r++){var o=i[r];fe.addEventListener(o,e,t)}return function(){for(var r=0,i=n;r<i.length;r++){var o=i[r];fe.removeEventListener(o,e,t)}}}((function(){return t.handleFullscreenChange()})),l=function(e){var t=ve.connection;if(!t)return addEventListener("online",e),addEventListener("offline",e),function(){removeEventListener("online",e),removeEventListener("offline",e)};var n=!1,r=t.onchange,i=function(t){try{n||e()}finally{null==r||r(t)}};return t.onchange=i,function(){n=!0,t.onchange===i&&(t.onchange=r)}}((function(){return t.handleNetworkConnectionChange()}));this.stop=function(){t.isStopped=!0;for(var e=0,r=n;e<r.length;e++){var i=r[e],o=i[0],a=i[1],u=i[2];o.removeEventListener(a,u)}c(),l()}}return e.prototype.handleVisibilityChange=function(){this.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:Ce()})},e.prototype.handlePageTransition=function(e){this.storeEnvironmentEvent({time:new Date,type:"pageTransition",isShown:e})},e.prototype.handleFullscreenChange=function(){this.storeEnvironmentEvent({time:new Date,type:"fullscreenToggle",isFullscreen:Ie()})},e.prototype.handleNetworkConnectionChange=function(){this.storeEnvironmentEvent({time:new Date,type:"networkChange",network:ke()})},e.prototype.handlePageUnload=function(){this.storeEnvironmentEvent({time:new Date,type:"pageUnload"});for(var e=0,t=Object.keys(this.events);e<t.length;e++){var n=t[e],r=this.events[n];if(0===Object.keys(r.getCalls).length)this.submitReport(n,void 0);else for(var i=0,o=Object.keys(r.getCalls);i<o.length;i++){var a=o[i];Ee(r.getCalls[a])||this.submitReport(n,a)}}this.stop()},e.prototype.storeAgentEvent=function(e){var t=e.event,n=t.agentId;switch(this.events[n]||(this.events[n]={loadEvents:[],getCalls:{}}),t.e){case 0:case 1:case 2:this.events[n].loadEvents.push(e);break;default:var r=t.getCallId;this.events[n].getCalls[r]||(this.events[n].getCalls[r]=[]),this.events[n].getCalls[r].push(e)}},e.prototype.storeEnvironmentEvent=function(e){for(var t=0,n=Object.keys(this.events);t<n.length;t++){var r=n[t],i=this.events[r];i.loadEvents.some((function(e){return"agentEvent"===e.type&&(1===e.event.e||2===e.event.e)}))||i.loadEvents.push(e);for(var o=0,a=Object.keys(i.getCalls);o<a.length;o++){var u=a[o],s=i.getCalls[u];Ee(s)||s.push(e)}}},e.prototype.submitReport=function(e,t){var n=function(e,t){for(var n,r,i,o,a,u,s,c,l,d,f,v,g,h=function(e){for(var t={},n={},r=0,i=e;r<i.length;r++){var o=i[r];"agentEvent"===o.type?t[o.event.e]=o:n[o.type]=o}return{agentEvents:t,otherEvents:n}}(e),p=h.agentEvents,m=h.otherEvents,b=null!==(r=null===(n=m.pageUnload)||void 0===n?void 0:n.time)&&void 0!==r?r:new Date,y="null",w=0,E=[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]];w<E.length;w++){var S=E[w],R=S[0],C=S[1];if(p[R]){y=C;break}}return{time:null!==(c=null!==(u=null!==(o=null===(i=p[4])||void 0===i?void 0:i.time)&&void 0!==o?o:null===(a=p[5])||void 0===a?void 0:a.time)&&void 0!==u?u:null===(s=p[2])||void 0===s?void 0:s.time)&&void 0!==c?c:b,pageUrl:location.href,pageStartTime:new Date(t),isInIframe:ie(),agentVersion:null===(l=p[0])||void 0===l?void 0:l.event.version,userAgent:navigator.userAgent,pageViewId:he(),agentId:null===(d=p[0])||void 0===d?void 0:d.event.agentId,getCallId:null===(f=p[3])||void 0===f?void 0:f.event.getCallId,requestId:null===(v=p[12])||void 0===v?void 0:v.event.requestId,visitorId:null===(g=p[4])||void 0===g?void 0:g.event.visitorId,identificationState:y,load:Se(b,p[0],p[1],p[2]),get:Se(b,p[3],p[4],p[5]),tls:Se(b,p[6],p[7],p[8],(function(e){return{responseStatus:e.event.status}})),fingerprint:Se(b,p[9],p[10],p[11],(function(e){return{failedComponents:Re(e.event.result)}})),visitorIdRequest:Se(b,p[12],p[13],p[14],(function(e){return{responseStatus:e.event.status}})),events:e}}(function(e,t,n){var r,i=[];e[t]&&(i.push.apply(i,e[t].loadEvents),void 0!==n&&i.push.apply(i,null!==(r=e[t].getCalls[n])&&void 0!==r?r:[]));return i}(this.events,e,t),this.pageStartTimestamp);try{this.onReportReady(n)}catch(r){console.error(r)}},e}();function Ee(e){return e.some((function(e){return"agentEvent"===e.type&&(4===e.event.e||5===e.event.e)}))}function Se(e,n,r,i,o){if(void 0!==n)return void 0!==r?t(t({},null==o?void 0:o(r)),{duration:r.time.getTime()-n.time.getTime(),state:"success"}):void 0!==i?{duration:i.time.getTime()-n.time.getTime(),state:"fail",error:i.event.error}:{duration:e.getTime()-n.time.getTime(),state:"incomplete"}}function Re(e){return Object.keys(e).filter((function(t){return e[t].error}))}function Ce(){return!be.hidden}function Ie(){return!!(fe.fullscreenElement||fe.msFullscreenElement||fe.mozFullScreenElement||fe.webkitFullscreenElement)}function ke(){var e,t,n,r,i,o;return{online:navigator.onLine,downlink:null===(e=me.connection)||void 0===e?void 0:e.downlink,downlinkMax:null===(t=me.connection)||void 0===t?void 0:t.downlinkMax,effectiveType:null===(n=me.connection)||void 0===n?void 0:n.effectiveType,roundTrip:null===(r=me.connection)||void 0===r?void 0:r.rtt,saveData:null===(i=me.connection)||void 0===i?void 0:i.saveData,type:null===(o=me.connection)||void 0===o?void 0:o.type}}function Te(e,t,n){var r;void 0===n&&(n=[8,4,4,4,12].map((function(e){return $(e,"0123456789abcdef")})).join("-"));var i=Oe[e.identificationState],a=i.level,u=i.message;return{environment:t,level:a,timestamp:Math.round(e.time.getTime()/1e3),platform:"browser",framework:"FingerprintJS Pro",language:"javascript",uuid:n,notifier:{name:"FingerprintJS Pro monitoring",version:z},request:{url:e.pageUrl,query_string:(null!==(r=/\?.*$/.exec(e.pageUrl))&&void 0!==r?r:[""])[0],user_ip:"$remote_ip"},client:{javascript:{browser:e.userAgent,code_version:e.agentVersion}},body:{telemetry:o([{level:"debug",source:"client",timestamp_ms:e.pageStartTime.getTime(),type:"manual",body:{message:"Page starts"}}],e.events.map(_e)),message:{body:u}},custom:{isInIframe:e.isInIframe,pageViewId:e.pageViewId,agentId:e.agentId,getCallId:e.getCallId,requestId:e.requestId,visitorId:e.visitorId,identificationState:e.identificationState,load:e.load,get:e.get,tls:e.tls,fingerprint:Ae(e.fingerprint),visitorIdRequest:e.visitorIdRequest}}}var Oe={null:{level:"info",message:"Load() wasn't called"},loading:{level:"warning",message:"Load() incomplete"},loadSuccess:{level:"info",message:"Load() succeeded, get() wasn't called"},loadFail:{level:"error",message:"Load() failed"},getting:{level:"warning",message:"Get() incomplete"},getSuccess:{level:"info",message:"Get() succeeded"},getFail:{level:"error",message:"Get() failed"}};function _e(e){var n={type:"manual",level:"debug",source:"client",timestamp_ms:e.time.getTime()};switch(e.type){case"pageVisibilityToggle":return t(t({},n),{body:{message:"Page becomes "+(e.isVisible?"visible (in foreground)":"invisible (in background)")}});case"pageTransition":return t(t({},n),{body:{message:e.isShown?"Page is restored from browser history":"Page is about to go to browser history"}});case"fullscreenToggle":return t(t({},n),{body:{message:"Programmatic fullscreen "+(e.isFullscreen?"on":"off")}});case"networkChange":return t(t({},n),{body:t(t({},e.network),{message:"Network connection changes"})});case"pageUnload":return t(t({},n),{body:{message:"Page is about to unload (terminate)"}})}var r=e.event,i=t(t({},n),{level:"info",body:{message:oe(r.e)}});switch(void 0!==e.isPageVisible&&(i.body.isPageVisible=e.isPageVisible),void 0!==e.isPageVisible&&(i.body.isFullscreen=e.isFullscreen),void 0!==e.isPageVisible&&(i.body.network=e.network),r.e){case 0:case 3:return t(t({},i),{body:t(t({},i.body),{options:r.options})});case 1:case 9:return i;case 2:case 5:case 8:case 11:case 14:return t(t({},i),{level:"error",body:t(t({},i.body),{error:r.error})});case 4:case 10:return t(t({},i),{body:t(t({},i.body),{result:r.result})});case 6:return t(t({},i),{body:t(t({},i.body),{endpoint:r.endpoint,timeout:r.timeout})});case 7:case 13:return t(t({},i),{body:t(t({},i.body),{status:r.status,body:r.body.slice(0,4096)})});case 12:return t(t({},i),{body:t(t({},i.body),{endpoint:r.endpoint,request:r.request})})}}function Ae(e){return e&&"incomplete"!==e.state&&"fail"!==e.state?t(t({},e),{failedComponents:e.failedComponents.length?","+e.failedComponents.map((function(e){return e+","})).join(""):void 0}):e}function xe(e,t){return r(this,void 0,void 0,(function(){var n,r;return i(this,(function(i){switch(i.label){case 0:n=JSON.stringify(t,(function(e,t){return t instanceof Error?re(t):t})),r=0,i.label=1;case 1:return navigator.onLine&&de({url:e,body:n})?[3,5]:[3,2];case 2:return[4,Q(1e3*Math.min(r+1,10))];case 3:i.sent(),i.label=4;case 4:return++r,[3,1];case 5:return[2]}}))}))}var Pe={us:"https://api.sjpf.io",eu:"https://tls-eun1.fpapi.io"};function Me(e,o,a){var u=a.output,s=n(a,["output"]);return r(this,void 0,void 0,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,ge(u,(function(){return t(t({e:6},s),{endpoint:e,timeout:o})}),(function(e){var n=e.status,r=e.text;return t(t({e:7},s),{status:n,body:r})}),(function(e){return t(t({e:8},s),{error:e})}),(function(){return ce({url:e,timeout:o})}))];case 1:return n=r.sent(),[3,3];case 2:switch(r.sent().name){case"AbortError":throw new Error("Abort");case"TimeoutError":throw new Error("Timeout");default:throw new Error("Connection error")}case 3:if(200===n.status)return[2,n.text];throw new Error(n.text.slice(0,255))}}))}))}var Le="Client timeout",De="Network connection error",Ne="Network request aborted",Fe="n/a";function je(e,t){if(t)return t;var n="api.fpjs.io";return"us"!==e&&(n=e+"."+n),"https://"+n}function qe(e,o){var a=e.endpoint,u=e.extendedResult,s=n(e,["endpoint","extendedResult"]);return r(this,void 0,void 0,(function(){var e,n;return i(this,(function(r){switch(r.label){case 0:return e=ee(20),n=function(e){var n,r=e.components,i=e.token,o=e.visitorId,a=e.tag,u=e.ipResolution,s=e.extendedResult,c=e.linkedId,l=e.tls,d=e.tlsError,f=e.requestId,v=Object.keys(r).reduce((function(e,t){return e+r[t].duration}),0),g="full"===u?2:1;return(n={}).rid=f,n.cv=z,n.c=i,n.url=location.href,n.d=v,n.vid=o[0]||o[1]||void 0,n.ls=o[1]?1:void 0,n.t=function(e){if(e&&"object"==typeof e)return e;if(null==e)return;return{tag:e}}(a),n.i=g,n.cbd=s?1:void 0,n.lid=c,n.cr=document.referrer||void 0,n.j=l,n.je=null==d?void 0:d.message,n.k1=Be(r.osCpu),n.k2=Be(r.languages),n.k3=Be(r.colorDepth),n.k4=Be(r.deviceMemory),n.k5=Be(r.screenResolution),n.k6=Be(r.availableScreenResolution,void 0,[]),n.k7=Be(r.hardwareConcurrency),n.k8=Be(r.timezoneOffset),n.k9=Be(r.timezone),n.k10=Ge(Be(r.sessionStorage)),n.k11=Ge(Be(r.localStorage)),n.k12=Ge(Be(r.indexedDB)),n.k13=Ge(Be(r.openDatabase)),n.k14=Be(r.cpuClass),n.k15=Be(r.platform),n.k16=Be(r.plugins,[]),n.k17=function(e){var n=e.value;if(!n)return;return t(t({},n),{data:K(n.data)})}(r.canvas),n.k18=0,n.k19=Be(r.touchSupport),n.k20=Be(r.fonts,[]),n.k21=Be(r.audio,-4),n.k22=Ge(Be(r.pluginsSupport)),n.k23=Be(r.productSub),n.k24=Be(r.emptyEvalLength),n.k25=Ge(Be(r.errorFF)),n.k26=Ge(Be(r[0])),n.k27=Be(r.vendor),n.k28=Ge(Be(r.chrome)),n.k29=Ge(Be(r[1])),n.k30=Ge(Be(r[2])),n.k31=Ge(Be(r[3],!1)),n.k32=Ge(Be(r.cookiesEnabled,!1)),n.k33=Ge(Be(r[4])),n}(t({extendedResult:u,requestId:e},s)),[4,Ue(a,n,o)];case 1:return[2,Ve(r.sent(),e,u)]}}))}))}function Ue(e,o,a){var u=a.output,s=n(a,["output"]);return r(this,void 0,void 0,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,ge(u,(function(){return t(t({e:12},s),{requestId:o.rid,endpoint:e,request:o})}),(function(e){var n=e.status,r=e.text;return t(t({e:13},s),{status:n,body:r})}),(function(e){return t(t({e:14},s),{error:e})}),(function(){return ce({url:e,method:"post",body:JSON.stringify(o),headers:{"Content-Type":"text/plain"},withCredentials:!0})}))];case 1:return[2,r.sent()];case 2:throw n=r.sent(),new Error("AbortError"===n.name?Ne:De);case 3:return[2]}}))}))}function Ve(e,t,n){return r(this,void 0,void 0,(function(){var r;return i(this,(function(i){if(404===e.status||e.status>=500)throw new Error(e.statusText);try{r=JSON.parse(e.text)}catch(o){throw new Error(e.text)}if(function(e){return e&&"object"==typeof e&&"string"==typeof e.visitorId&&e.visitorId!==Fe}(r))return[2,He(r)];if(function(e){return e&&"object"==typeof e&&e.visitorId===Fe}(r)){if("Not available for crawl bots"===r.reason||"Not available when User-Agent is unspecified"===r.reason)return[2,We(r.reason,t,n)];throw new Error(r.reason)}throw new Error(e.text)}))}))}function Be(e,t,n){return e.error?t:void 0===e.value?n:e.value}function Ge(e){return!0===e?1:!1===e?0:e}function He(e){var r=e,i=r.botProbability,o=n(r,["botProbability"]),a=t({},o);return i&&(a.bot={probability:i}),a}function We(e,n,r){var i={requestId:n,visitorFound:!1,visitorId:""};if(!r)return i;var o=t(t({},i),{bot:{probability:1},incognito:!1,browserName:Fe,browserVersion:Fe,device:Fe,ip:Fe,ipLocation:{},os:Fe,osVersion:Fe});return"Not available for crawl bots"===e&&(o.bot.safe=!0),o}var Je=window,Ke=document;var ze=window;var Xe=navigator,Qe=window;function Ye(){var e,t,n,r=(null===(e=Xe.userAgent)||void 0===e?void 0:e.indexOf("Mac OS"))>0&&-1===(null===(t=Xe.userAgent)||void 0===t?void 0:t.indexOf("iPhone")),i=(null===(n=Xe.userAgent)||void 0===n?void 0:n.indexOf("CrOS"))>0;return r||i?3221225472:1073741824}function Ze(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return"storage"in Xe&&"estimate"in Xe.storage?[4,Xe.storage.estimate()]:[3,2];case 1:return[2,!!(e=t.sent().quota)&&e<Ye()];case 2:return[2,!1]}}))}))}var $e=window;function et(){return r(this,void 0,void 0,(function(){return i(this,(function(e){return R()?[2,tt()]:[2,nt()]}))}))}function tt(){if(!$e.safari)return!1;try{$e.safari.pushNotification.requestPermission("https://example.com","private",{},(function(){}))}catch(t){return e=t,!new RegExp([103,101,115,116,117,114,101].map((function(e){return String.fromCharCode(e)})).join("")).test(e)}var e;throw new Error("Unexpected lack of error")}function nt(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:(e=document.createElement("iframe")).style.display="none",t.label=1;case 1:return t.trys.push([1,,3,4]),document.body.appendChild(e),[4,Promise.race([Q(20,!1),new Promise((function(t){e.contentWindow?e.contentWindow.applicationCache.addEventListener("error",(function(){return t(!0)})):t(!1)}))])];case 2:return[2,t.sent()];case 3:return e.remove(),[7];case 4:return[2]}}))}))}function rt(){try{$e.openDatabase(null,null,null,null)}catch(e){return!0}try{return $e.localStorage.setItem("test","1"),$e.localStorage.removeItem("test"),!1}catch(e){return!0}}var it="_inc",ot=[[function(){return E()},function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){return function(){var e=Xe.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);if(!e)throw"UserAgent is not Google Chrome";return parseInt(e[2],10)}()>=76?[2,Ze()]:[2,new Promise((function(e){Qe.webkitRequestFileSystem(0,1,(function(){return e(!1)}),(function(){return e(!0)}))}))]}))}))}],[function(){return S()},function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){return function(){var e=navigator.userAgent.match(/Version\/([0-9._]+).*Safari/);if(!e)throw new Error("UserAgent is not Safari");var t=e[1].split(".").map((function(e){return isNaN(parseInt(e))?0:parseInt(e)})),n=t[0],r=t[1],i=t[2];return{major:n,minor:r,patch:i}}().major<13?[2,rt()]:[2,et()]}))}))}],[function(){return function(){var e;return h(["buildID"in m,(null===(e=b.documentElement)||void 0===e?void 0:e.style)&&"MozAppearance"in b.documentElement.style,"MediaRecorderErrorEvent"in p,"mozInnerScreenX"in p,"CSSMozDocumentRule"in p,"CanvasCaptureMediaStream"in p])>=4}()},function(){return new Promise((function(e){try{var t=ze.indexedDB.open("test");t.onerror=function(){return e(!0)},t.onsuccess=function(){return e(!1)}}catch(n){return e(!0)}}))}],[function(){return y()||w()},function(){try{if(!window.indexedDB)return!0}catch(e){return!0}return!1}]];function at(){return r(this,void 0,void 0,(function(){var e,t,n,r,o;return i(this,(function(i){switch(i.label){case 0:e=0,t=ot,i.label=1;case 1:return e<t.length?(n=t[e],r=n[0],o=n[1],r()?[4,o()]:[3,3]):[3,4];case 2:return[2,i.sent()];case 3:return e++,[3,1];case 4:return[2,!1]}}))}))}function ut(e,t){if(0==t.length||t.length>e.length)return-1;for(var n=0;n<e.length;n++){for(var r=0,i=0;i<t.length;i++){if(e[n+i]!==t[i]){r=0;break}r++}if(r==t.length)return n}return-1}var st,ct=window,lt=document;var dt=((st={})[0]=function(){return void 0!==navigator.webdriver},st[1]=function(){return r(this,void 0,void 0,(function(){var e,t;return i(this,(function(n){switch(n.label){case 0:return(e=navigator.permissions)?[4,e.query({name:"notifications"})]:[2,void 0];case 1:return t=n.sent(),"undefined"==typeof Notification?[2,void 0]:[2,"denied"===Notification.permission&&"prompt"===t.state]}}))}))},st[2]=function(){var e=Ke.documentElement;return"webdriver"in Je||"_Selenium_IDE_Recorder"in Je||"callSelenium"in Je||"_selenium"in Je||"__webdriver_script_fn"in Ke||"__driver_evaluate"in Ke||"__webdriver_evaluate"in Ke||"__selenium_evaluate"in Ke||"__fxdriver_evaluate"in Ke||"__driver_unwrapped"in Ke||"__webdriver_unwrapped"in Ke||"__selenium_unwrapped"in Ke||"__fxdriver_unwrapped"in Ke||"__webdriver_script_func"in Ke||null!==e.getAttribute("selenium")||null!==e.getAttribute("webdriver")||null!==e.getAttribute("driver")},st[3]=function(){return r(this,void 0,void 0,(function(){var e,t;return i(this,(function(n){switch(n.label){case 0:if(void 0!==(e=function(){try{var e=localStorage.getItem(it);if(!e)return;return"1"===e}catch(t){return}}()))return[2,e];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,at()];case 2:return function(e){try{localStorage.setItem(it,e?"1":"0")}catch(t){}}(t=n.sent()),[2,t];case 3:return n.sent(),[2,!1];case 4:return[2]}}))}))},st[4]=function(){if(!E())return!1;try{if([66,114,97,118,101].map((function(e){return String.fromCharCode(e)})).join("")in ct)return!0;var e=lt.createElement("canvas");e.width=4,e.height=4,e.style.display="inline";var t=e.toDataURL();if(""===t)return!0;for(var n=window.atob(t.split(",")[1]),r=n.length,i=new Uint8Array(r),o=0;o<r;o++)i[o]=n.charCodeAt(o);var a=ut(i,[73,68,65,84,24]);if(-1===a)return!1;var u=ut(i,[73,69,78,68]);return-1!==a&&1321!==i.slice(a+5,u).reduce((function(e,t){return e+t}),0)}catch(s){return!1}},st);function ft(){return G(dt,void 0,[])}var vt=document,gt=location;function ht(e){for(var t=e+"=",n=0,r=vt.cookie.split(";");n<r.length;n++){for(var i=r[n],o=0;" "===i[o]&&o<i.length;)++o;if(i.indexOf(t)===o)return i.slice(o+t.length)}}function pt(e,t,n,r){var i=e+"="+t,o="expires="+new Date(Date.now()+24*n*60*60*1e3).toUTCString(),a=r?"domain="+r:"";vt.cookie=[i,"path=/",o,a].join("; ")}function mt(e,t,n){var r=gt.hostname;bt(r,(function(t){!function(e,t){pt(e,"",-1,t)}(e,t)})),bt(r,(function(r){return pt(e,t,n,r),ht(e)!==t}))&&pt(e,t,n)}function bt(e,t){var n=e.length;do{if(n=n>0?e.lastIndexOf(".",n-1):-1,!1===t(e.slice(n+1)))return!1}while(n>=0);return!0}var yt="_vid";function wt(e){return void 0===e&&(e=yt),[ht(e),St(e)]}function Et(e,t){void 0===t&&(t=yt),mt(t,e,365),function(e,t){var n;try{null===(n=null===localStorage||void 0===localStorage?void 0:localStorage.setItem)||void 0===n||n.call(localStorage,e,t)}catch(r){}}(t,e)}function St(e){var t,n;try{return null!==(n=null===(t=null===localStorage||void 0===localStorage?void 0:localStorage.getItem)||void 0===t?void 0:t.call(localStorage,e))&&void 0!==n?n:void 0}catch(r){}}function Rt(e,n,o){var a=this,u=o.token,s=o.region,c=void 0===s?"us":s,l=o.endpoint,d=o.tlsEndpoint,f=o.storageKey,v=o.debug;var g=function(n,o,s,v,g,m,b){return r(a,void 0,void 0,(function(){var r,a,y,w;return i(this,(function(i){switch(i.label){case 0:return[4,Promise.all([h(c,d,v,!!s,b),p(b)])];case 1:return r=i.sent(),a=r[0],y=r[1],[4,qe(t(t({},a),{token:u,endpoint:je(c,l),components:y,tag:n,visitorId:wt(f),linkedId:o,extendedResult:g,ipResolution:m}),t(t({},b),{agentId:e}))];case 2:return Et((w=i.sent()).visitorId,f),[2,w]}}))}))},h=function(n,o,u,s,c){return r(a,void 0,void 0,(function(){return i(this,(function(r){return s?[2,void 0]:[2,Me(function(e,t){return t||Pe[e]}(n,o),u,t(t({},c),{agentId:e})).then((function(e){return{tls:e}}),(function(e){return{tlsError:e}}))]}))}))},p=function(o){var u=o.output,s=o.getCallId;return ge(u,(function(){return{e:9,agentId:e,getCallId:s}}),(function(t){return{e:10,agentId:e,getCallId:s,result:t}}),(function(t){return{e:11,agentId:e,getCallId:s,error:t}}),(function(){return r(a,void 0,void 0,(function(){var e,r;return i(this,(function(i){switch(i.label){case 0:return[4,n.get()];case 1:return e=i.sent(),[4,ft()];case 2:return r=i.sent(),[2,t(t({},e.components),r)]}}))}))}))};return{get:function(t){void 0===t&&(t={});var n=ee(8),r=te([v,t.debug&&ae()]);return ge(r,(function(){return{e:3,agentId:e,getCallId:n,options:t}}),(function(t){return{e:4,agentId:e,getCallId:n,visitorId:t.visitorId,result:t}}),(function(t){return{e:5,agentId:e,getCallId:n,error:t}}),(function(){var e=t.timeout,i=void 0===e?1e4:e,o=t.tag,a=t.linkedId,u=t.disableTls,s=t.extendedResult,c=t.ipResolution;return Promise.race([Y(i).then((function(){throw new Error(Le)})),g(o,a,u,i/2,s,c,{output:r,getCallId:n})])}))}}}function Ct(e){var t=this,n=ee(8);return ge(e.debug,(function(){return{e:0,agentId:n,version:z,options:e}}),(function(){return{e:1,agentId:n}}),(function(e){return{e:2,agentId:n,error:e}}),(function(){return r(t,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:if(!e.token||"string"!=typeof e.token)throw new Error("Token required");return[4,J({delayFallback:e.delayFallback})];case 1:return t=r.sent(),[2,Rt(n,t,e)]}}))}))}))}var It="Token required",kt="Token not found",Tt="Token expired",Ot="Request cannot be parsed",_t="Request failed",At="Request failed to process",xt="Too many requests, rate limit exceeded",Pt={load:Ct,ERROR_CLIENT_TIMEOUT:Le,ERROR_NETWORK_CONNECTION:De,ERROR_NETWORK_ABORT:Ne,ERROR_TOKEN_MISSING:It,ERROR_TOKEN_INVALID:kt,ERROR_TOKEN_EXPIRED:Tt,ERROR_BAD_REQUEST_FORMAT:Ot,ERROR_GENERAL_SERVER_FAILURE:_t,ERROR_SERVER_TIMEOUT:At,ERROR_RATE_LIMIT:xt};e.ERROR_BAD_REQUEST_FORMAT=Ot,e.ERROR_CLIENT_TIMEOUT=Le,e.ERROR_GENERAL_SERVER_FAILURE=_t,e.ERROR_NETWORK_ABORT=Ne,e.ERROR_NETWORK_CONNECTION=De,e.ERROR_RATE_LIMIT=xt,e.ERROR_SERVER_TIMEOUT=At,e.ERROR_TOKEN_EXPIRED=Tt,e.ERROR_TOKEN_INVALID=kt,e.ERROR_TOKEN_MISSING=It,e.default=Pt,e.load=Ct,e.makeConsoleDebugger=ae,e.makeDebugReportBuilder=function(e){return new we(e).addEvent},e.makeMulticastDebugger=te,e.makeRemoteDebugger=function(e){var t=this,n=e.clientId,o=e.token,a=e.endpoint,u=void 0===a?"https://api.rollbar.com/api/1/item/":a;return new we((function(e){return r(t,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:return t=function(e,t,n,r){return{access_token:n,data:Te(e,t,r)}}(e,n,o),[4,xe(u,t)];case 1:return r.sent(),[2]}}))}))})).addEvent},Object.defineProperty(e,"__esModule",{value:!0})})); |
{ | ||
"name": "@fingerprintjs/fingerprintjs-pro", | ||
"description": "FingerprintJS Pro client agent", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"keywords": [ | ||
@@ -45,2 +45,3 @@ "browser", | ||
"@rollup/plugin-typescript": "^6.0.0", | ||
"@types/deep-freeze": "^0.1.2", | ||
"@types/jasmine": "^3.5.14", | ||
@@ -51,2 +52,3 @@ "@types/jasmine-ajax": "^3.3.2", | ||
"clean-webpack-plugin": "^3.0.0", | ||
"deep-freeze": "^0.0.1", | ||
"eslint": "^7.11.0", | ||
@@ -53,0 +55,0 @@ "eslint-config-prettier": "^6.13.0", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
171020
1168
36