Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fingerprintjs/fingerprintjs-pro

Package Overview
Dependencies
Maintainers
2
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fingerprintjs/fingerprintjs-pro - npm Package Compare versions

Comparing version 3.2.3 to 3.3.0-dev.1

4

dist/fp.cjs.min.js
/**
* FingerprintJS Pro v3.2.3 - Copyright (c) FingerprintJS, Inc, 2021 (https://fingerprintjs.com)
* FingerprintJS Pro v3.3.0-dev.1 - Copyright (c) FingerprintJS, Inc, 2021 (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(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 h(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(p("TimeoutError","The request timed out"))},a.onabort=function(){return n(p("AbortError","The request is aborted"))},a.onerror=function(){return n(p("TypeError",_.onLine?"Connection error":"Network offline"))},a.send(i)}))}function p(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,I=navigator,k=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.documentReadyState=k.readyState,n.isPageVisible=N(),n.isFullscreen=D(),n.network=q()),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=[[k,"readystatechange",function(){return t.handleDocumentReadyStateChange()}],[k,"visibilitychange",function(){return t.handleVisibilityChange()}],[k,"pageshow",function(){return t.handlePageTransition(!0)}],[k,"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.handleDocumentReadyStateChange=function(){this.storeEnvironmentEvent({time:new Date,type:"documentReadyState",state:k.readyState})},e.prototype.handleVisibilityChange=function(){this.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:N()})},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:D()})},e.prototype.handleNetworkConnectionChange=function(){this.storeEnvironmentEvent({time:new Date,type:"networkChange",network:q()})},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,_,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,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 I=R[E],k=I[0],T=I[1];if(p[k]){b=T;break}}return{time:null!==(c=null!==(s=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!==s?s:null===(u=p[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=p[0])||void 0===l?void 0:l.event.version,userAgent:navigator.userAgent,pageViewId:y(),agentId:null===(v=p[0])||void 0===v?void 0:v.event.agentId,getCallId:null===(f=p[3])||void 0===f?void 0:f.event.getCallId,requestId:null===(g=p[12])||void 0===g?void 0:g.event.requestId,visitorId:null===(_=p[4])||void 0===_?void 0:_.event.visitorId,identificationState:b,load:O(w,p[0],p[1],p[2]),get:O(w,p[3],p[4],p[5]),tls:O(w,p[6],p[7],p[8],(function(e){return{responseStatus:e.event.status}})),fingerprint:O(w,p[9],p[10],p[11],(function(e){return{failedComponents:x(e.event.result)}})),visitorIdRequest:O(w,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 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 N(){return!k.hidden}function D(){return!!(w.fullscreenElement||w.msFullscreenElement||w.mozFullScreenElement||w.webkitFullscreenElement)}function q(){var e,t,n,r,i,o;return{online:navigator.onLine,downlink:null===(e=I.connection)||void 0===e?void 0:e.downlink,downlinkMax:null===(t=I.connection)||void 0===t?void 0:t.downlinkMax,effectiveType:null===(n=I.connection)||void 0===n?void 0:n.effectiveType,roundTrip:null===(r=I.connection)||void 0===r?void 0:r.rtt,saveData:null===(i=I.connection)||void 0===i?void 0:i.saveData,type:null===(o=I.connection)||void 0===o?void 0:o.type}}function L(t,n,r){var i;void 0===r&&(r=[8,4,4,4,12].map((function(e){return a(e,"0123456789abcdef")})).join("-"));var o=A[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.3"},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}},person:void 0===t.visitorId?void 0:{id:"visitorId:"+t.visitorId},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: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:F(t.fingerprint),visitorIdRequest:t.visitorIdRequest}}}var A={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"documentReadyState":return e.__assign(e.__assign({},n),{body:{message:'Document ready state becomes "'+t.state+'"'}});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)"}})}for(var r=t.event,i=e.__assign(e.__assign({},n),{level:"info",body:{message:v(r.e)}}),o=0,a=["documentReadyState","isPageVisible","isFullscreen","network"];o<a.length;o++){var s=a[o];void 0!==t[s]&&(i.body[s]=t[s])}switch(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 F(t){return t&&"incomplete"!==t.state&&"fail"!==t.state?e.__assign(e.__assign({},t),{failedComponents:t.failedComponents.length?","+t.failedComponents.join(",")+",":void 0}):t}function j(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 V={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 h({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.3",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=H(i.osCpu),r.k2=H(i.languages),r.k3=H(i.colorDepth),r.k4=H(i.deviceMemory),r.k5=H(i.screenResolution),r.k6=H(i.availableScreenResolution,void 0,[]),r.k7=H(i.hardwareConcurrency),r.k8=H(i.timezoneOffset),r.k9=H(i.timezone),r.k10=W(H(i.sessionStorage)),r.k11=W(H(i.localStorage)),r.k12=W(H(i.indexedDB)),r.k13=W(H(i.openDatabase)),r.k14=H(i.cpuClass),r.k15=H(i.platform),r.k16=H(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=H(i.touchSupport),r.k20=H(i.fonts,[]),r.k21=H(i.audio,-4),r.k22=W(H(i.pluginsSupport)),r.k23=H(i.productSub),r.k24=H(i.emptyEvalLength),r.k25=W(H(i.errorFF)),r.k26=W(H(i[0])),r.k27=H(i.vendor),r.k28=W(H(i.chrome)),r.k29=W(H(i[1])),r.k30=W(H(i[2])),r.k31=W(H(i[3],!1)),r.k32=W(H(i.cookiesEnabled,!1)),r.k33=W(H(i[4])),r.k34=H(i[5],-5),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 h({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,J(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 H(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 J(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=window,de=document;var ve,fe=window;var ge=((ve={})[0]=function(){return void 0!==navigator.webdriver},ve[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]}}))}))},ve[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")},ve[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]}}))}))},ve[4]=function(){if(!t.isChromium())return!1;try{if([66,114,97,118,101].map((function(e){return String.fromCharCode(e)})).join("")in le)return!0;var e=de.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}},ve[5]=function(){return e.__awaiter(this,void 0,void 0,(function(){var n,r;return e.__generator(this,(function(e){switch(e.label){case 0:if(!t.isChromium()&&!t.isWebKit())return[2,-2];if(!(n=fe.RTCPeerConnection||fe.webkitRTCPeerConnection))return[2,-3];r=new n({iceServers:[]}),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,new Promise((function(e,t){var n=function(){return e(-1)};r.onicecandidate=function(t){var r=t.candidate;if(!(null==r?void 0:r.candidate))return n();var i=function(e){var t=/candidate:(\d+)\b/i.exec(e);return t?+t[1]:void 0}(r.candidate);void 0!==i&&e(i)},r.onicegatheringstatechange=function(){"complete"===r.iceGatheringState&&n()},r.onicecandidateerror=t,r.createDataChannel("test"),function(e,t){try{return e.createOffer(t)}catch(n){if(/\bcreateOffer\b.*(\bcallback\b.*\bnot a function\b|\barguments required\b.*\bpresent\b)/i.test(n.message))return new Promise((function(n,r){e.createOffer(n,r,t)}));throw n}}(r).then((function(e){return r.setLocalDescription(e)}),t),setTimeout((function(){return e(-4)}),500)}))];case 2:return[2,e.sent()];case 3:return r.close(),[7];case 4:return[2]}}))}))},ve);var _e=document,he=location;function pe(e){for(var t=e+"=",n=0,r=_e.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 me(e,t,n,r){var i=e+"="+t,o="expires="+new Date(Date.now()+24*n*60*60*1e3).toUTCString(),a=r?"domain="+r:"";_e.cookie=[i,"path=/",o,a,"SameSite=Lax"].join("; ")}function we(e,t,n){var r=he.hostname;be(r,(function(t){!function(e,t){me(e,"",-1,t)}(e,t)})),be(r,(function(r){return me(e,t,n,r),pe(e)!==t}))&&me(e,t,n)}function be(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 Ee(e){return void 0===e&&(e="_vid"),[pe(e),Re(e)]}function ye(e,t){void 0===t&&(t="_vid"),we(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 Re(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 Ie(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,h=o.debug;var p=function(t,r,i,o,s,u,l){return e.__awaiter(a,void 0,void 0,(function(){var a,f,h,p;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],h=a[1],[4,G(e.__assign(e.__assign({},f),{token:c,endpoint:U(d,v),components:h,tag:t,visitorId:Ee(_),linkedId:r,extendedResult:s,ipResolution:u}),e.__assign(e.__assign({},l),{agentId:n}))];case 2:return ye((p=b.sent()).visitorId,_),[2,p]}}))}))},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||V[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(ge,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([h,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")})),p(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.3",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,Ie(i,r,n)]}}))}))}))}var Te={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",ERROR_FORBIDDEN_ORIGIN:"Not available for this origin",ERROR_FORBIDDEN_HEADER:"Not available with restricted header"};exports.ERROR_BAD_REQUEST_FORMAT="Request cannot be parsed",exports.ERROR_CLIENT_TIMEOUT="Client timeout",exports.ERROR_FORBIDDEN_HEADER="Not available with restricted header",exports.ERROR_FORBIDDEN_ORIGIN="Not available for this origin",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=Te,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:L(e,t,r)}}(t,r,i),[4,j(a,n)];case 1:return e.sent(),[2]}}))}))})).addEvent};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("@fingerprintjs/fingerprintjs"),n="3.3.0-dev.1",r=document;function i(e,t){return new Promise((function(n){return setTimeout((function(){return n(t)}),e)}))}function a(e,t){return new Promise((function(n){var i=function(){return r.hidden?s():o()},a=function(e,t,n){var r,i=!1,a=e,o=0,s=function(){i||void 0!==r||(o=Date.now(),r=setTimeout((function(){i=!0,n()}),a))};return t&&s(),{start:s,stop:function(){i||void 0===r||(clearTimeout(r),r=void 0,a-=Date.now()-o)}}}(e,!r.hidden,(function(){r.removeEventListener("visibilitychange",i),n(t)})),o=a.start,s=a.stop;r.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 s(e,t){for(var n="",r=0;r<e;r++)n+=t.charAt(Math.random()*t.length);return n}function u(e){return s(e,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function c(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 l=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 _(){try{return l.self!==l.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"Getting TLS has started";case 7:return"Getting TLS has succeeded";case 8:return"Getting TLS has failed";case 9:return"TLS request try has started";case 10:return"TLS request try has succeeded";case 11:return"TLS request try has failed";case 12:return"Getting fingerprint has started";case 13:return"Getting fingerprint has succeeded";case 14:return"Getting fingerprint has failed";case 15:return"Visitor identifier request has started";case 16:return"Visitor identifier request has succeeded";case 17:return"Visitor identifier request has failed";case 18:return"DOM blockers debug"}}function v(t){return void 0===t&&(t="[FingerprintJS Pro] "),function(n){switch(n.e){case 2:case 5:case 8:case 11:case 14:case 17:console.error(h(t,n));break;case 13:var r=h(t,n),i=n.result;Object.keys(i).some((function(e){return i[e].error}))?console.warn(r):console.log(r);break;case 18:var a=n.blocked,o=e.__rest(n,["blocked"]);console.log(h(t,o)+"\n"+function(e,t){if(!Object.keys(e).length)return t;for(var n="```",r=0,i=Object.keys(e);r<i.length;r++){var a=i[r];n+="\n"+a+":";for(var o=0,s=Object.keys(e[a]);o<s.length;o++){var u=s[o];n+="\n "+u+" "+(e[a][u]?"🚫":"➡️")}}return n+"\n```"}(a,"Not applicable"));break;default:console.log(h(t,n))}}}function h(t,n){var r=n.e,i=e.__rest(n,["e"]),a=""+t+(new Date).toISOString()+": "+f(r);return Object.keys(i).length&&(a+="\n```\n"+function(e){return JSON.stringify(e,(function(e,t){return t instanceof Error?d(t,!0):t}),2)}(i)+"\n```"),a}var g=navigator;function E(e){var t=e.url,n=e.method,r=void 0===n?"get":n,i=e.body,a=e.headers,o=e.withCredentials,s=void 0!==o&&o,u=e.timeout;return new Promise((function(e,n){var o=new XMLHttpRequest;for(var c in o.open(r,t,!0),o.withCredentials=s,o.timeout=void 0===u?0:Math.max(u,1),a)o.setRequestHeader(c,a[c]);o.onload=function(){return e(function(e){return{text:e.responseText,status:e.status,statusText:e.statusText}}(o))},o.ontimeout=function(){return n(p("TimeoutError","The request timed out"))},o.onabort=function(){return n(p("AbortError","The request is aborted"))},o.onerror=function(){return n(p("TypeError",g.onLine?"Connection error":"Network offline"))},o.send(i)}))}function p(e,t){var n=new Error(t);return n.name=e,n}function m(e){var t=e.url,n=e.body;if(g.sendBeacon)return g.sendBeacon(t,n);var r=new XMLHttpRequest;r.open("POST",t,!function(){var e,t=null===(e=l.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}function R(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}function b(e){return e.reduce((function(e,t){return e+(t?1:0)}),0)}function S(e,t,n){return void 0===n&&(n="..."),e.length<=t?e:""+e.slice(0,Math.max(0,t-n.length))+n}function T(t,n){return e.__awaiter(this,void 0,void 0,(function(){var r,a,o,s,u,c,l;return e.__generator(this,(function(e){switch(e.label){case 0:r=Date.now(),o=n.next(),e.label=1;case 1:return o.done?[3,7]:(s=o.value,u=s[0],c=s[1],[4,i(u)]);case 2:e.sent(),e.label=3;case 3:return e.trys.push([3,5,,6]),[4,t(c)];case 4:return[2,e.sent()];case 5:return l=e.sent(),a=l,o=n.next([Date.now()-r,a]),[3,6];case 6:return[3,1];case 7:if(void 0!==a)throw a;throw new Error("The strategy must do at least 1 try")}}))}))}function A(t,n){var r;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,[0,void 0]];case 1:e.sent(),r=t,e.label=2;case 2:return[4,[r=Math.min(n,t+Math.random()*(3*r-t)),void 0]];case 3:e.sent(),e.label=4;case 4:return[3,2];case 5:return[2]}}))}function w(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);void 0!==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:u(10)}var C=window,I=document,k=navigator;function O(){return b(["maxTouchPoints"in k,"mediaCapabilities"in k,"PointerEvent"in C,"visualViewport"in C,"onafterprint"in C])>=4}var P=window,L=navigator,M=document,D=performance;var N=function(){function t(e){var t=this;this.onReportReady=e,this.isStopped=!1,this.pageStartTimestamp=function(){var e,t;if(D.timeOrigin){var n=null===(t=null===(e=D.getEntriesByType)||void 0===e?void 0:e.call(D,"navigation"))||void 0===t?void 0:t[0];if(n)return D.timeOrigin+(n.responseStart||n.unloadEventEnd)}return D.timing.domLoading||D.timing.responseStart||D.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.documentReadyState=M.readyState,n.isPageVisible=U(),n.isFullscreen=X(),n.network=j()),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=[[M,"readystatechange",function(){return t.handleDocumentReadyStateChange()}],[M,"visibilitychange",function(){return t.handleVisibilityChange()}],[M,"pageshow",function(){return t.handlePageTransition(!0)}],[M,"pagehide",function(){return t.handlePageTransition(!1)}],[P,"unload",function(){return t.handlePageUnload()}]],r=0,i=n;r<i.length;r++){var a=i[r],o=a[0],s=a[1],u=a[2];o.addEventListener(s,u)}var c=function(e,t){for(var n=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],r=0,i=n;r<i.length;r++){var a=i[r];I.addEventListener(a,e,t)}return function(){for(var r=0,i=n;r<i.length;r++){var a=i[r];I.removeEventListener(a,e,t)}}}((function(){return t.handleFullscreenChange()})),l=function(e){var t=k.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],a=i[0],o=i[1],s=i[2];a.removeEventListener(o,s)}c(),l()}}return t.prototype.handleDocumentReadyStateChange=function(){this.storeEnvironmentEvent({time:new Date,type:"documentReadyState",state:M.readyState})},t.prototype.handleVisibilityChange=function(){this.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:U()})},t.prototype.handlePageTransition=function(e){this.storeEnvironmentEvent({time:new Date,type:"pageTransition",isShown:e})},t.prototype.handleFullscreenChange=function(){this.storeEnvironmentEvent({time:new Date,type:"fullscreenToggle",isFullscreen:X()})},t.prototype.handleNetworkConnectionChange=function(){this.storeEnvironmentEvent({time:new Date,type:"networkChange",network:j()})},t.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,a=Object.keys(r.getCalls);i<a.length;i++){var o=a[i];x(r.getCalls[o])||this.submitReport(n,o)}}this.stop()},t.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)}},t.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 a=0,o=Object.keys(i.getCalls);a<o.length;a++){var s=o[a],u=i.getCalls[s];x(u)||u.push(e)}}},t.prototype.submitReport=function(t,n){var r=function(t,n){for(var r,i,a,o,s,u,c,l,d,f,v,h=function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];"agentEvent"===i.type&&(t[i.event.e]=i)}return t}(t),g=function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];if("agentEvent"===i.type)switch(i.event.e){case 9:case 10:case 11:t[i.event.tryNumber]||(t[i.event.tryNumber]={}),t[i.event.tryNumber][i.event.e]=i}}for(var a=[],o=0,s=Object.keys(t);o<s.length;o++){var u=s[o];a.push(t[u])}return a}(t),E=null!==(i=null===(r=t[t.length-1])||void 0===r?void 0:r.time)&&void 0!==i?i:new Date,p="null",m=0,R=[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]];m<R.length;m++){var b=R[m],S=b[0],T=b[1];if(h[S]){p=T;break}}return{time:null!==(o=null===(a=t[t.length-1])||void 0===a?void 0:a.time)&&void 0!==o?o:new Date,pageUrl:location.href,pageStartTime:new Date(n),isInIframe:_(),agentVersion:null===(s=h[0])||void 0===s?void 0:s.event.version,userAgent:navigator.userAgent,pageViewId:y(),agentId:null===(u=h[0])||void 0===u?void 0:u.event.agentId,getCallId:null===(c=h[3])||void 0===c?void 0:c.event.getCallId,requestId:null!==(d=null===(l=h[4])||void 0===l?void 0:l.event.requestId)&&void 0!==d?d:null===(f=h[5])||void 0===f?void 0:f.event.requestId,visitorId:null===(v=h[4])||void 0===v?void 0:v.event.visitorId,identificationState:p,load:B(E,h[0],h[1],h[2]),get:B(E,h[3],h[4],h[5]),tls:G(B(E,h[6],h[7],h[8]),(function(){var t,n,r,i;return e.__assign({timeout:null!==(n=null===(t=h[6])||void 0===t?void 0:t.event.timeout)&&void 0!==n?n:NaN},(i=E,{triesCount:(r=g).length,triesTotalDuration:r.reduce((function(e,t){var n,r,a=t[9],o=null!==(n=t[10])&&void 0!==n?n:t[11];return a?e+(null!==(r=null==o?void 0:o.time)&&void 0!==r?r:i).getTime()-a.time.getTime():e}),0)}))})),fingerprint:B(E,h[12],h[13],h[14],(function(e){var t=e.event;return{failedComponents:F(t.result),componentDurations:H(t.result)}})),visitorIdRequest:B(E,h[15],h[16],h[17],(function(e){return{responseStatus:e.event.status}})),events:t}}(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,t,n),this.pageStartTimestamp);try{this.onReportReady(r)}catch(i){console.error(i)}},t}();function x(e){return e.some((function(e){return"agentEvent"===e.type&&(4===e.event.e||5===e.event.e)}))}function B(t,n,r,i,a){if(void 0!==n)return void 0!==r?e.__assign(e.__assign({},null==a?void 0:a(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 G(t,n){return t?e.__assign(e.__assign({},t),n()):void 0}function F(e){return Object.keys(e).filter((function(t){return e[t].error}))}function H(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];t[i]=e[i].duration}return t}function U(){return!M.hidden}function X(){return!!t.getFullscreenElement()}function j(){var e,t,n,r,i,a;return{online:navigator.onLine,downlink:null===(e=L.connection)||void 0===e?void 0:e.downlink,downlinkMax:null===(t=L.connection)||void 0===t?void 0:t.downlinkMax,effectiveType:null===(n=L.connection)||void 0===n?void 0:n.effectiveType,roundTrip:null===(r=L.connection)||void 0===r?void 0:r.rtt,saveData:null===(i=L.connection)||void 0===i?void 0:i.saveData,type:null===(a=L.connection)||void 0===a?void 0:a.type}}function V(t,n,r){var i,a;void 0===r&&(r=[8,4,4,4,12].map((function(e){return s(e,"0123456789abcdef")})).join("-"));var o=q[t.identificationState],u=o.level,c=o.message;return{environment:n,level:u,timestamp:Math.round(t.time.getTime()/1e3),platform:"browser",framework:"FingerprintJS Pro",language:"javascript",uuid:r,notifier:{name:"FingerprintJS Pro monitoring",version:"3.3.0-dev.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}},person:void 0===t.visitorId?void 0:{id:"visitorId:"+t.visitorId},body:{telemetry:e.__spreadArrays([{level:"debug",source:"client",timestamp_ms:t.pageStartTime.getTime(),type:"manual",body:{message:"Page starts","~~hack~componentDurations":"success"===(null===(a=t.fingerprint)||void 0===a?void 0:a.state)?z(t.fingerprint.componentDurations):void 0}}],t.events.map(K)),message:{body:c}},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:W(t.fingerprint),visitorIdRequest:t.visitorIdRequest}}}var q={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 K(t){var n={type:"manual",level:"debug",source:"client",timestamp_ms:t.time.getTime()};switch(t.type){case"documentReadyState":return e.__assign(e.__assign({},n),{body:{message:'Document ready state becomes "'+t.state+'"'}});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=function(i,a){void 0===a&&(a="info");for(var o=e.__assign(e.__assign({},n),{level:a,body:e.__assign({message:f(r.e)},i)}),s=0,u=["documentReadyState","isPageVisible","isFullscreen","network"];s<u.length;s++){var c=u[s];void 0!==t[c]&&(o.body[c]=t[c])}return o};switch(r.e){case 0:case 3:return i({options:r.options});case 1:case 12:return i({});case 2:case 5:case 8:case 14:case 17:return i({error:r.error},"error");case 4:return i({result:r.result});case 6:return i({endpoint:r.endpoint,timeout:r.timeout});case 7:return i({result:S(r.result,1e3)});case 9:return i({tryNumber:r.tryNumber,timeout:r.timeout});case 10:return i({tryNumber:r.tryNumber,status:r.status,body:S(r.body,1e3)});case 11:return i({tryNumber:r.tryNumber,error:r.error},"error");case 13:return i({result:J(r.result)});case 15:return i({endpoint:r.endpoint,request:r.request});case 16:return i({status:r.status,body:S(r.body,4e3)});case 18:return i({blocked:Y(r.blocked)})}}function W(t){if(!t||"incomplete"===t.state||"fail"===t.state)return t;t.componentDurations;var n=e.__rest(t,["componentDurations"]),r=t.failedComponents.length?","+t.failedComponents.join(",")+",":void 0;return e.__assign(e.__assign({},n),{failedComponents:r})}function z(t,n){void 0===n&&(n="_");for(var r=e.__assign({},t),i=0,a=Object.keys(t);i<a.length;i++){var o=a[i];if(/^\d+$/.test(o)){delete r[o];var s=o;do{s=""+n+s}while(s in r);r[s]=t[o]}}return r}function Y(e){for(var t=[],n=0,r=Object.keys(e);n<r.length;n++)for(var i=r[n],a=0,o=Object.keys(e[i]);a<o.length;a++){var s=o[a];e[i][s]&&t.push(s)}return t}function J(t){var n,r="(removed to fit into beacon)";return function(t,n){for(var r={},i=0,a=Object.keys(t);i<a.length;i++){var o=a[i];!t[o].error&&n[o]?r[o]=e.__assign(e.__assign({},t[o]),{error:void 0,value:n[o](t[o].value)}):r[o]=t[o]}return r}(t,((n={plugins:function(e){return e&&r}})[3]=function(t){return e.__assign(e.__assign({},t),{data:r})},n[22]=function(){return r},n[25]=function(){return r},n[26]=function(e){return e&&r},n[27]=function(e){return e&&r},n))}function Z(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 r=JSON.stringify(n,(function(e,t){if(t instanceof Error){var n=d(t);return"string"==typeof n.stack&&(n.stack=S(n.stack,1e3)),n}return t})),[4,T((function(){if(!navigator.onLine||!m({url:t,body:r}))throw new Error}),A(1e3,1e4))];case 1:return e.sent(),[2]}}))}))}var $={us:"https://api.sjpf.io",eu:"https://tls-eun1.fpapi.io"};function Q(t,n,r){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(i){return[2,w(r,(function(){return{e:6,endpoint:t,timeout:n}}),(function(e){return{e:7,result:e}}),(function(e){return{e:8,error:e}}),(function(){return T((function(n){var i=n.timeout,a=n.number;return function(t,n,r,i){return e.__awaiter(this,void 0,void 0,(function(){var a;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,w(i,(function(){return{e:9,tryNumber:r,timeout:n}}),(function(e){var t=e.status,n=e.text;return{e:10,tryNumber:r,status:t,body:n}}),(function(e){return{e:11,tryNumber:r,error:e}}),(function(){return E({url:t,timeout:n})}))];case 1:return a=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===a.status)return[2,a.text];throw new Error(S(a.status+": "+a.text,255))}}))}))}(t,i,a,r)}),function(t,n,r,i,a){var o,s,u,c,l,d,_;void 0===n&&(n=200);void 0===r&&(r=1e4);void 0===i&&(i=5);void 0===a&&(a=Math.max(1e3,t/2.5));return e.__generator(this,(function(f){switch(f.label){case 0:o=function(t,n){var r,i,a,o,s,u,c;return e.__generator(this,(function(e){switch(e.label){case 0:return(i=r?n.next(r):n.next()).done?[2]:(a=r?r[0]:0,o=i.value,s=o[0],u=o[1],(c=t-a-s)<=0?[3,3]:[4,[s,[c,u]]]);case 1:r=e.sent(),e.label=2;case 2:return[3,0];case 3:return[2]}}))}(Math.max(1,t),function(t){var n,r,i,a,o,s,u;return e.__generator(this,(function(e){switch(e.label){case 0:n=0,e.label=1;case 1:return(i=r?t.next(r):t.next()).done?[2]:(a=r?r[0]:0,o=i.value,s=o[0],u=o[1],[4,[(n=Math.max(a,n+s))-a,u]]);case 2:r=e.sent(),e.label=3;case 3:return[3,1];case 4:return[2]}}))}(A(n,r))),u=0,f.label=1;case 1:return u<i?(c=s?o.next(s):o.next()).done?[3,4]:(l=c.value,d=l[0],_=l[1][0],[4,[d,{number:u,timeout:Math.min(a,_)}]]):[3,4];case 2:s=f.sent(),f.label=3;case 3:return++u,[3,1];case 4:return[2]}}))}(n))}))]}))}))}function ee(e){var t,n=e.components,r=e.token,i=e.visitorId,a=e.tag,o=e.ipResolution,s=e.extendedResult,u=e.linkedId,c=e.tls,l=e.tlsError,d=Object.keys(n).reduce((function(e,t){return e+n[t].duration}),0),_="full"===o?2:1;return(t={}).c=r,t.url=location.href,t.d=d,t.vid=i[0]||i[1]||void 0,t.ls=i[1]?1:void 0,t.t=function(e){if(e&&"object"==typeof e)return e;if(null==e)return;return{tag:e}}(a),t.i=_,t.cbd=s?1:void 0,t.lid=u,t.cr=document.referrer||void 0,t.j=c,t.je=null==l?void 0:l.message,t.k1=se(n.osCpu),t.k2=se(n.languages),t.k3=se(n.colorDepth),t.k4=se(n.deviceMemory),t.k5=se(n.screenResolution),t.k6=se(n[0],void 0,[]),t.k7=se(n.hardwareConcurrency,void 0,1),t.k8=se(n[1]),t.k9=se(n[2]),t.k10=ue(se(n.sessionStorage)),t.k11=ue(se(n.localStorage)),t.k12=ue(se(n.indexedDB)),t.k13=ue(se(n.openDatabase)),t.k14=se(n.cpuClass),t.k15=se(n.platform),t.k16=se(n.plugins,[]),t.k17=te(se(n[3])),t.k18=0,t.k19=se(n.touchSupport),t.k20=se(n.fonts,[]),t.k21=se(n.audio,-4),t.k22=ue(se(n.pluginsSupport)),t.k23=se(n.productSub),t.k24=se(n.emptyEvalLength),t.k25=ue(se(n.errorFF)),t.k26=ue(se(n[4])),t.k27=se(n.vendor),t.k28=ue(se(n.chrome)),t.k29=ue(se(n[5])),t.k30=ue(se(n[6])),t.k31=ue(se(n[7],!1)),t.k32=ue(se(n.cookiesEnabled,!1)),t.k33=ue(se(n[8])),t.k34=function(e){if("string"!=typeof e)return e;var t=/candidate:(\d+)\b/i.exec(e);return t?+t[1]:-1}(se(n[9],-5)),t.s1=ae(n.osCpu,-1),t.s2=ie(n.languages),t.s3=ie(n.colorDepth),t.s4=ae(n.deviceMemory,-1),t.s5=ie(n.screenResolution),t.s6=ne(n[19],(function(e){return{s:0,v:e.map((function(e){return null===e?-1:e}))}})),t.s7=ae(n.hardwareConcurrency,-1),t.s9=ie(n.timezone),t.s10=ie(n.sessionStorage),t.s11=ie(n.localStorage),t.s12=ae(n.indexedDB,-1),t.s13=ie(n.openDatabase),t.s14=ae(n.cpuClass,-1),t.s15=ie(n.platform),t.s16=ae(n.plugins,-1),t.s17=ne(n.canvas,(function(e){return{s:0,v:te(e)}})),t.s19=ie(n.touchSupport),t.s20=ie(n.fonts),t.s21=ne(n.audio,(function(e){return-1===e||-2===e||-3===e?{s:e,v:null}:{s:0,v:e}})),t.s22=ie(n.pluginsSupport),t.s23=ie(n.productSub),t.s24=ie(n.emptyEvalLength),t.s25=ie(n.errorFF),t.s26=ie(n[4]),t.s27=ie(n.vendor),t.s28=ie(n.chrome),t.s29=ae(n[5],-1),t.s30=ie(n[6]),t.s31=ie(n[7]),t.s32=ie(n.cookiesEnabled),t.s33=ie(n[8]),t.s34=ne(n[9],(function(e){return"number"==typeof e?{s:e,v:null}:{s:0,v:e.slice(0,255)}})),t.s35=ne(n[10],(function(e){return e})),t.s36=ae(n[11],-1),t.s37=ae(n[12],-1),t.s38=ae(n[16],-1),t.s39=ae(n[14],-1),t.s40=ae(n[18],-1),t.s41=ae(n[13],-1),t.s42=ae(n[15],-1),t.s43=ae(n[17],-1),t.s44=ae(n[20],-1),t.s45=ie(n[21]),t.s46=ie(n[22]),t.s47=oe(n[26]),t.s48=oe(n[27]),t.s49=ae(n[23],-1),t.s50=ae(n[24],-1),t.s51=ne(n[25],(function(e){var t=e[0];return{s:e[1]?0:1,v:t}})),t}function te(n){if(n)return e.__assign(e.__assign({},n),{data:t.murmurX64Hash128(n.data)})}function ne(e,t){return e.error?{e:re(e.error)}:t(e.value)}function re(e){var t;try{t=""+e.message,"name"in e&&(t=e.name+": "+t)}catch(e){t="Code 3017: "+e.name+": "+e.message}return S(t,500)}function ie(e){return ne(e,(function(e){return{s:0,v:e}}))}function ae(e,t){return ne(e,(function(e){return{s:null==e?t:0,v:null!=e?e:null}}))}function oe(n){return ne(n,(function(n){return{s:n?0:-1,v:n?e.__assign(e.__assign({},n),{fingerprint:t.murmurX64Hash128(n.fingerprint)}):null}}))}function se(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 ce(e,t){if(t)return t;var n="api.fpjs.io";return"us"!==e&&(n=e+"."+n),"https://"+n}function le(t,n){var r=t.endpoint,i=t.extendedResult,a=e.__rest(t,["endpoint","extendedResult"]);return e.__awaiter(this,void 0,void 0,(function(){var t;return e.__generator(this,(function(o){switch(o.label){case 0:return t=ee(e.__assign({extendedResult:i},a)),[4,de(r,t,n)];case 1:return[2,_e(o.sent(),i)]}}))}))}function de(t,r,i){return e.__awaiter(this,void 0,void 0,(function(){var a,o;return e.__generator(this,(function(e){switch(e.label){case 0:a=function(e){return e+(-1===e.indexOf("?")?"?":"&")+"cv="+encodeURIComponent(n)}(t),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,w(i,(function(){return{e:15,endpoint:a,request:r}}),(function(e){return{e:16,status:e.status,body:e.text}}),(function(e){return{e:17,error:e}}),(function(){return E({url:a,method:"post",body:JSON.stringify(r),headers:{"Content-Type":"text/plain"},withCredentials:!0})}))];case 2:return[2,e.sent()];case 3:throw o=e.sent(),new Error("AbortError"===o.name?"Network request aborted":"Network connection error");case 4:return[2]}}))}))}function _e(t,n){return e.__awaiter(this,void 0,void 0,(function(){var r,i;return e.__generator(this,(function(e){if(404===t.status||t.status>=500)throw new Error(t.statusText);try{r=JSON.parse(t.text)}catch(a){throw new Error(t.text)}if(function(e){return e&&"object"==typeof e&&"string"==typeof e.visitorId&&"n/a"!==e.visitorId}(r))return[2,fe(r)];if(function(e){return e&&"object"==typeof e&&"n/a"===e.visitorId}(r)){if("Not available for crawl bots"===r.reason||"Not available when User-Agent is unspecified"===r.reason)return[2,ve(r,n)];throw(i=new Error(r.reason)).requestId=r.requestId,i}throw new Error(t.text)}))}))}function fe(t){var n=t,r=n.botProbability,i=e.__rest(n,["botProbability"]),a=e.__assign({},i);return r&&(a.bot={probability:r}),a}function ve(t,n){var r={requestId:t.requestId,visitorFound:!1,visitorId:""};if(!n)return r;var i=e.__assign(e.__assign({},r),{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.reason&&(i.bot.safe=!0),i}var he=window;function ge(e){return e.toDataURL()}var Ee=window,pe=document;var me=window;var Re=navigator,be=window;function Se(){var e,t;return(null===(t=null===(e=window.performance)||void 0===e?void 0:e.memory)||void 0===t?void 0:t.jsHeapSizeLimit)||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 Re&&"estimate"in Re.storage?[4,Re.storage.estimate()]:[3,2];case 1:return[2,!!(t=e.sent().quota)&&t<Se()];case 2:return[2,!1]}}))}))}var Ae=window;function we(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return t.isDesktopSafari()?[2,ye()]:[2,Ce()]}))}))}function ye(){if(!Ae.safari)return!1;try{Ae.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 Ce(){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([i(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 Ie(){try{Ae.openDatabase(null,null,null,null)}catch(e){return!0}try{return Ae.localStorage.setItem("test","1"),Ae.localStorage.removeItem("test"),!1}catch(e){return!0}}var ke=[[function(){return t.isChromium()},function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return function(){var e=Re.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){be.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 O()?[2,we()]:[2,Ie()]}))}))}],[function(){return t.isGecko()},function(){return new Promise((function(e){try{var t=me.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 Oe(){return e.__awaiter(this,void 0,void 0,(function(){var t,n,r,i,a;return e.__generator(this,(function(e){switch(e.label){case 0:t=0,n=ke,e.label=1;case 1:return t<n.length?(r=n[t],i=r[0],a=r[1],i()?[4,a()]:[3,3]):[3,4];case 2:return[2,e.sent()];case 3:return t++,[3,1];case 4:return[2,!1]}}))}))}var Pe=window,Le=document;var Me=window;function De(e){if("InvalidAccessError"===e.name){if(/\bfrom\b.*\binsecure\b/i.test(e.message))return{s:-2,v:null};if(/\bdifferent\b.*\borigin\b.*top.level\b.*\bframe\b/i.test(e.message))return{s:-3,v:null}}throw e}function Ne(e){for(var t=function(e){for(var t,n,r="Unexpected syntax '"+e+"'",i=/^\s*([a-z-]*)(.*)$/i.exec(e),a=i[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(e,t){o[e]=o[e]||[],o[e].push(t)};;){var c=s.exec(i[2]);if(!c)break;var l=c[0];switch(l[0]){case".":u("class",l.slice(1));break;case"#":u("id",l.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l);if(!d)throw new Error(r);u(d[1],null!==(n=null!==(t=d[4])&&void 0!==t?t:d[5])&&void 0!==n?n:"");break;default:throw new Error(r)}}return[a,o]}(e),n=t[0],r=t[1],i=document.createElement(null!=n?n:"div"),a=0,o=Object.keys(r);a<o.length;a++){var s=o[a];i.setAttribute(s,r[s].join(" "))}return i}var xe=document,Be={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'a[title="7naga poker" i]','img[title="ALIENBOLA" i]'],abpvn:["#quangcaomb",".i-said-no-thing-can-stop-me-warning.dark",".quangcao",'[href^="https://r88.vn/"]','[href^="https://zbet.vn/"]'],adBlockFinland:[".mainostila",".sponsorit",".ylamainos",'a[href*="/clickthrgh.asp?"]','a[href^="https://app.readpeak.com/ads"]'],adBlockPersian:[".widget_arvins_ad_randomizer",'a[href^="https://iqoption.com/lp/mobile-partner/?aff="]','a[href*="fastclick.net/ad/"]','TABLE[width="140px"]',".facebook_shows_ad_cale"],adBlockWarningRemoval:["#adblock_message",".adblockInfo",".deadblocker-header-bar",".no-ad-reminder","#AdBlockDialog"],adGuardAnnoyances:['amp-embed[type="zen"]',".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil"],adGuardBase:[".ad-disclaimer-container","#content_ad_container","#ad_wp_base","#adxtop","#bannerfloat22"],adGuardChinese:['a[href*=".123ch.cn"]','a[href*=".acuxrecv.cn"]','a[href*=".bayiyy.com/download."]','a[href*=".quankan.tv"]',"#j-new-ad"],adGuardFrench:["#div_banniere_pub","#sp-entete-pour-la-pub",'a[href*="fducks.com/"]','a[href^="http://promo.vador.com/"]','a[href^="https://syndication.exdynsrv.com/"]'],adGuardGerman:[".banneritemwerbung_head_1",".boxstartwerbung",".werbung3",'a[href^="http://www.firstload.de/index.php?set_lang=de&log="]','a[href^="http://www.sendung-now.de/tick/click.php?id="]'],adGuardJapanese:[".ad-text-blockA01","._popIn_infinite_video","[class^=blogroll_wrapper]",'a[href^="http://ad2.trafficgate.net/"]','a[href^="http://www.rssad.jp/"]'],adGuardMobile:["amp-auto-ads","#mgid_iframe",".amp_ad","amp-sticky-ad",".plugin-blogroll"],adGuardRussian:['a[href^="https://ya-distrib.ru/r/"]','a[href*=".twkv.ru"]','div[data-adv-type="dfp"]',".b-journalpromo-container",'div[id^="AdFox_banner_"]'],adGuardSocial:['a[href^="//www.stumbleupon.com/submit?url="]','a[href^="//telegram.me/share/url?"]',"#___plusone_0","#inlineShare",".popup-social"],adGuardSpanishPortuguese:[".esp_publicidad","#Publicidade","#publiEspecial","#queTooltip",'[href^="http://ads.glispa.com/"]'],adGuardTrackingProtection:['amp-embed[type="taboola"]',"#qoo-counter",'a[href^="http://click.hotlog.ru/"]','a[href^="http://hitcounter.ru/top/stat.php"]','a[href^="http://top.mail.ru/jump"]'],adGuardTurkish:["#backkapat","#reklam",'a[href^="http://adserv.ontek.com.tr/"]','a[href^="http://izlenzi.com/campaign/"]','a[href^="http://www.installads.net/"]'],bulgarian:["#adbody","#newAd","#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:['[lazy-ad="leftthin_banner"]',".smart_ads_bom_title",".slide-advert_float",".six-ads-wrapper",".showcaseAd"],easyListChina:["#fuo_top_float",".kf_qycn_com_cckf_welcomebox",'a[href*=".caohang.com.cn/"]','a[href*=".yuanmengbi.com/"]','.layui-row[style="border-radius:10px;background-color:#ff0000;padding:15px;margin:15px;"]'],easyListCookie:["#cookieBgOverlay","#alerte-cookies","#cookieLY","#dlgCookies",".Section-Cookie"],easyListCzechSlovak:["#onlajny-stickers","#reklamni-box",".reklama-megaboard",".sklik",'[id^="sklikReklama"]'],easyListDutch:["#advertentie","#vipAdmarktBannerBlock",".adstekst",'a[href^="http://adserver.webads.nl/adclick/"]','a[href^="http://www.site-id.nl/servlet/___?"]'],easyListGermany:[".werb_textlink","#ad-qm-sidebar-oben",".adguru-content-html",".nfy-sebo-ad",".textlinkwerbung"],easyListItaly:[".box_adv_annunci",".sb-box-pubbliredazionale",'a[href^="http://affiliazioniads.snai.it/"]','a[href^="https://adserver.html.it/"]','a[href^="https://affiliazioniads.snai.it/"]'],easyListLithuania:[".reklamos_tarpas",'a[href="http://igrovoi-klub.org/fair-land"]','a[href="http://www.moteris.lt/didieji-grozio-pokyciai/"]','img[alt="Dedikuoti.lt serveriai"]','img[alt="Hostingas Serveriai.lt"]'],estonian:[".flex--align-items-center.flex--justify-content-center.flex.section-branding__digipakett-contents",'A[href*="http://pay4results24.eu"]'],fanboyAnnoyances:["#feedback-tab","#ruby-back-top",".feedburnerFeedBlock",".widget-feedburner-counter",'[title="Subscribe to our blog"]'],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag",'div[style*="box-shadow: rgb(136, 136, 136) 0px 0px 12px; color: "]','div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:[".td-tags-and-social-wrapper-box",".twitterContainer",".youtube-social",'a[title^="Like us on Facebook"]','img[alt^="Share on Digg"]'],frellwitSwedish:['a[href*="casinopro.se"][target="_blank"]','a[href*="doktor-se.onelink.me"]',"article.category-samarbete",'img[alt="Leovegas"]',"ul.adsmodern"],greekAdBlock:['A[href*="adman.otenet.gr/click?"]','A[href*="http://axiabanners.exodus.gr/"]','A[href*="http://interactive.forthnet.gr/click?"]',"DIV.agores300","TABLE.advright"],hungarian:['A[href*="ad.eval.hu"]','A[href*="ad.netmedia.hu"]','A[href*="daserver.ultraweb.hu"]',"#cemp_doboz",".optimonk-iframe-container"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container",".cookie-msg-info-container","#cookies-policy-sticky"],icelandicAbp:['A[href^="/framework/resources/forms/ads.aspx"]'],latvian:['a[href="http://www.salidzini.lv/"][style="display: block; width: 120px; height: 40px; overflow: hidden; position: relative;"]','a[href="http://www.salidzini.lv/"][style="display: block; width: 88px; height: 31px; overflow: hidden; position: relative;"]'],listKr:['a[href*="//kingtoon.slnk.kr"]','a[href*="//playdsb.com/kr"]','a[href*="//simba-kor.com"]','div[data-widget_id="ml6EJ074"]',"ins.daum_ddn_area"],listeAr:[".geminiLB1Ad",".right-and-left-sponsers",'a[href*=".aflam.info"]','a[href*="booraq.org"]','a[href*="dubizzle.com/ar/?utm_source="]'],listeFr:['a[href^="http://look.djfiln.com/"]',"#adcontainer_recherche",'a[href*="weborama.fr/fcgi-bin/"]','a[href^="https://secure.securitetotale.fr/"]','div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",'[href^="https://aff.sendhub.pl/"]','a[href^="http://advmanager.techfun.pl/redirect/"]','a[href^="http://www.trizer.pl/?utm_source"]',"div#skapiec_ad"],ro:['a[href^="//afftrk.altex.ro/Counter/Click"','a[href^="/magazin/"','a[href^="https://blackfridaysales.ro/trk/shop/"','a[href^="https://event.2performant.com/events/click"','a[href^="https://l.profitshare.ro/"]'],ruAd:['a[href*="//febrare.ru/"]','a[href*="//utimg.ru/"]','a[href*="://chikidiki.ru"]',"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]","#ads-google-middle_rectangle-group",".ads300s",".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",".ctpl-fullbanner",".j-share-bar-left",".yt.btn-link.btn-md.btn"]},Ge=Object.keys(Be);function Fe(t){var n;return e.__awaiter(this,void 0,void 0,(function(){var r,a,o,s,u,c,l,d,_;return e.__generator(this,(function(e){switch(e.label){case 0:for(r=document.createElement("div"),a=[],o={},He(r),s=0,u=t;s<u.length;s++)c=u[s],l=Ne(c),He(d=xe.createElement("div")),d.appendChild(l),r.appendChild(d),a.push(l);e.label=1;case 1:return xe.body?[3,3]:[4,i(100)];case 2:return e.sent(),[3,1];case 3:xe.body.appendChild(r);try{for(_=0;_<t.length;++_)a[_].offsetParent||(o[t[_]]=!0)}finally{null===(n=r.parentNode)||void 0===n||n.removeChild(r)}return[2,o]}}))}))}function He(e){e.style.setProperty("display","block","important")}function Ue(e,t){if(e){var n={};if(t)for(var r=0,i=Ge;r<i.length;r++){var a=i[r];n[a]={};for(var o=0,s=Be[a];o<s.length;o++){var u=s[o];n[a][u]=!!t[u]}}e({e:18,blocked:n})}}function Xe(e){return matchMedia("(inverted-colors: "+e+")").matches}function je(e){return matchMedia("(forced-colors: "+e+")").matches}function Ve(e){return matchMedia("(prefers-contrast: "+e+")").matches}function qe(e){return matchMedia("(prefers-reduced-motion: "+e+")").matches}function Ke(e){return matchMedia("(dynamic-range: "+e+")").matches}function We(e){return matchMedia("(prefers-color-scheme: "+e+")").matches}var ze,Ye,Je=["","WEBKIT_","MOZ_","O_","MS_"],Ze=["ACTIVE_TEXTURE","ALIASED_LINE_WIDTH_RANGE","ALIASED_POINT_SIZE_RANGE","ALPHA_BITS","ARRAY_BUFFER_BINDING","BLEND","BLEND_COLOR","BLEND_DST_ALPHA","BLEND_DST_RGB","BLEND_EQUATION","BLEND_EQUATION_ALPHA","BLEND_EQUATION_RGB","BLEND_SRC_ALPHA","BLEND_SRC_RGB","BLUE_BITS","COLOR_CLEAR_VALUE","COLOR_WRITEMASK","COMPRESSED_TEXTURE_FORMATS","CULL_FACE","CULL_FACE_MODE","CURRENT_PROGRAM","DEPTH_BITS","DEPTH_CLEAR_VALUE","DEPTH_FUNC","DEPTH_RANGE","DEPTH_TEST","DEPTH_WRITEMASK","DITHER","ELEMENT_ARRAY_BUFFER_BINDING","FRAMEBUFFER_BINDING","FRONT_FACE","GENERATE_MIPMAP_HINT","GREEN_BITS","IMPLEMENTATION_COLOR_READ_FORMAT","IMPLEMENTATION_COLOR_READ_TYPE","LINE_WIDTH","MAX_COMBINED_TEXTURE_IMAGE_UNITS","MAX_CUBE_MAP_TEXTURE_SIZE","MAX_FRAGMENT_UNIFORM_VECTORS","MAX_RENDERBUFFER_SIZE","MAX_TEXTURE_IMAGE_UNITS","MAX_TEXTURE_SIZE","MAX_VARYING_VECTORS","MAX_VERTEX_ATTRIBS","MAX_VERTEX_TEXTURE_IMAGE_UNITS","MAX_VERTEX_UNIFORM_VECTORS","MAX_VIEWPORT_DIMS","PACK_ALIGNMENT","POLYGON_OFFSET_FACTOR","POLYGON_OFFSET_FILL","POLYGON_OFFSET_UNITS","RED_BITS","RENDERBUFFER_BINDING","SAMPLE_BUFFERS","SAMPLE_COVERAGE_INVERT","SAMPLE_COVERAGE_VALUE","SAMPLES","SCISSOR_BOX","SCISSOR_TEST","STENCIL_BACK_FAIL","STENCIL_BACK_FUNC","STENCIL_BACK_PASS_DEPTH_FAIL","STENCIL_BACK_PASS_DEPTH_PASS","STENCIL_BACK_REF","STENCIL_BACK_VALUE_MASK","STENCIL_BACK_WRITEMASK","STENCIL_BITS","STENCIL_CLEAR_VALUE","STENCIL_FAIL","STENCIL_FUNC","STENCIL_PASS_DEPTH_FAIL","STENCIL_PASS_DEPTH_PASS","STENCIL_REF","STENCIL_TEST","STENCIL_VALUE_MASK","STENCIL_WRITEMASK","SUBPIXEL_BITS","TEXTURE_BINDING_2D","TEXTURE_BINDING_CUBE_MAP","UNPACK_ALIGNMENT","UNPACK_COLORSPACE_CONVERSION_WEBGL","UNPACK_FLIP_Y_WEBGL","UNPACK_PREMULTIPLY_ALPHA_WEBGL","VIEWPORT"],$e={WEBGL_compressed_texture_s3tc:["COMPRESSED_RGB_S3TC_DXT1_EXT","COMPRESSED_RGBA_S3TC_DXT1_EXT","COMPRESSED_RGBA_S3TC_DXT3_EXT","COMPRESSED_RGBA_S3TC_DXT5_EXT"],WEBGL_compressed_texture_s3tc_srgb:["COMPRESSED_SRGB_S3TC_DXT1_EXT","COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT","COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT","COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT"],WEBGL_compressed_texture_etc:["COMPRESSED_R11_EAC","COMPRESSED_SIGNED_R11_EAC","COMPRESSED_RG11_EAC","COMPRESSED_SIGNED_RG11_EAC","COMPRESSED_RGB8_ETC2","COMPRESSED_RGBA8_ETC2_EAC","COMPRESSED_SRGB8_ETC2","COMPRESSED_SRGB8_ALPHA8_ETC2_EAC","COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2","COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2"],WEBGL_compressed_texture_pvrtc:["COMPRESSED_RGB_PVRTC_4BPPV1_IMG","COMPRESSED_RGBA_PVRTC_4BPPV1_IMG","COMPRESSED_RGB_PVRTC_2BPPV1_IMG","COMPRESSED_RGBA_PVRTC_2BPPV1_IMG"],WEBGL_compressed_texture_etc1:["COMPRESSED_RGB_ETC1_WEBGL"],WEBGL_compressed_texture_atc:["COMPRESSED_RGB_ATC_WEBGL","COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL","COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL"],WEBGL_compressed_texture_astc:["COMPRESSED_RGBA_ASTC_4x4_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR","COMPRESSED_RGBA_ASTC_5x4_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR","COMPRESSED_RGBA_ASTC_5x5_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR","COMPRESSED_RGBA_ASTC_6x5_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR","COMPRESSED_RGBA_ASTC_6x6_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR","COMPRESSED_RGBA_ASTC_8x5_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR","COMPRESSED_RGBA_ASTC_8x6_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR","COMPRESSED_RGBA_ASTC_8x8_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR","COMPRESSED_RGBA_ASTC_10x5_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR","COMPRESSED_RGBA_ASTC_10x6_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR","COMPRESSED_RGBA_ASTC_10x6_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR","COMPRESSED_RGBA_ASTC_10x10_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR","COMPRESSED_RGBA_ASTC_12x10_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR","COMPRESSED_RGBA_ASTC_12x12_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR"],ANGLE_instanced_arrays:["VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE"],EXT_blend_minmax:["MIN_EXT","MAX_EXT"],EXT_color_buffer_half_float:["RGBA16F_EXT","RGB16F_EXT","FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT","UNSIGNED_NORMALIZED_EXT"],EXT_disjoint_timer_query:["GPU_DISJOINT_EXT"],EXT_sRGB:["SRGB_EXT","SRGB_ALPHA_EXT","SRGB8_ALPHA8_EXT","FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT"],EXT_texture_filter_anisotropic:["MAX_TEXTURE_MAX_ANISOTROPY_EXT","TEXTURE_MAX_ANISOTROPY_EXT"],OES_standard_derivatives:["FRAGMENT_SHADER_DERIVATIVE_HINT_OES"],OES_texture_half_float:["HALF_FLOAT_OES"],OES_vertex_array_object:["VERTEX_ARRAY_BINDING_OES"],WEBGL_color_buffer_float:["RGBA32F_EXT","RGB32F_EXT","FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT","UNSIGNED_NORMALIZED_EXT"],WEBGL_depth_texture:["UNSIGNED_INT_24_8_WEBGL"],WEBGL_draw_buffers:["COLOR_ATTACHMENT0_WEBGL","COLOR_ATTACHMENT1_WEBGL","COLOR_ATTACHMENT15_WEBGL","DRAW_BUFFER0_WEBGL","DRAW_BUFFER1_WEBGL","DRAW_BUFFER15_WEBGL","MAX_COLOR_ATTACHMENTS_WEBGL","MAX_DRAW_BUFFERS_WEBGL"]};function Qe(e,t,n){var r=e.getShaderPrecisionFormat(e[t],e[n]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function et(e){var t=e.getSupportedExtensions(),n=e.getExtension("WEBGL_debug_renderer_info"),r=e.getContextAttributes(),i=[];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&i.push(a+"="+r[a]);for(var o=[],s=0;s<Ze.length;s++){var u=Ze[s],c=e.getParameter(e[u]);o.push(u+"="+c)}for(var l=[],d=Object.keys(ze),_=Object.keys(Ye),f=0,v=d;f<v.length;f++)for(var h=v[f],g=0,E=_;g<E.length;g++){var p=E[g],m=Qe(e,h,p);l.push(h+"."+p+"="+m.join(","))}for(var R=[],b=Object.keys($e),S=!1,T=0,A=Je;T<A.length;T++){var w=A[T];if(!S)for(var y in b){var C=b[y],I=$e[C],k=e.getExtension(w+C);if(k){S=!0;for(var O=0;O<I.length;O++){var P=I[O];R.push(P+"="+k[P])}}}}return{version:e.getParameter(e.VERSION),vendor:e.getParameter(e.VENDOR),vendorUnmasked:n&&e.getParameter(n.UNMASKED_VENDOR_WEBGL),renderer:e.getParameter(e.RENDERER),rendererUnmasked:n&&e.getParameter(n.UNMASKED_RENDERER_WEBGL),shadingLanguageVersion:e.getParameter(e.SHADING_LANGUAGE_VERSION),contextAttributes:i.join("&"),parameters:o.join("&"),shaderPrecisions:l.join("&"),extensions:t?t.join(","):"",extensionParameters:R.join(",")}}function tt(e){e.clearColor(0,0,1,1);var t=e.createProgram();if(t){i(0,"attribute vec2 p;uniform float t;void main(){float s=sin(t);float c=cos(t);gl_Position=vec4(p*mat2(c,s,-s,c),1,1);}"),i(1,"void main(){gl_FragColor=vec4(1,0,0,1);}"),e.linkProgram(t),e.useProgram(t),e.enableVertexAttribArray(0);var n=e.getUniformLocation(t,"t"),r=e.createBuffer();e.bindBuffer(34962,r),e.bufferData(34962,new Float32Array([0,1,-1,-1,1,-1]),35044),e.vertexAttribPointer(0,2,5126,!1,0,0),e.clear(16384),e.uniform1f(n,3.65),e.drawArrays(4,0,3)}function i(n,r){var i=e.createShader(35633-n);t&&i&&(e.shaderSource(i,r),e.compileShader(i),e.attachShader(t,i))}}!function(e){e.FRAGMENT_SHADER="FRAGMENT_SHADER",e.VERTEX_SHADER="VERTEX_SHADER"}(ze||(ze={})),function(e){e.LOW_FLOAT="LOW_FLOAT",e.MEDIUM_FLOAT="MEDIUM_FLOAT",e.HIGH_FLOAT="HIGH_FLOAT",e.LOW_INT="LOW_INT",e.MEDIUM_INT="MEDIUM_INT",e.HIGH_INT="HIGH_INT"}(Ye||(Ye={}));var nt=function(){return 0},rt=Math.acos||nt,it=Math.acosh||nt,at=Math.asin||nt,ot=Math.asinh||nt,st=Math.atanh||nt,ut=Math.atan||nt,ct=Math.sin||nt,lt=Math.sinh||nt,dt=Math.cos||nt,_t=Math.cosh||nt,ft=Math.tan||nt,vt=Math.tanh||nt,ht=Math.exp||nt,gt=Math.expm1||nt,Et=Math.log1p||nt,pt=function(e){return Math.pow(Math.PI,e)},mt=function(e){return Math.log(e+Math.sqrt(e*e+1))},Rt=function(e){return Math.log((1+e)/(1-e))/2},bt=function(e){return Math.exp(e)-1/Math.exp(e)/2},St=function(e){return(Math.exp(e)+1/Math.exp(e))/2},Tt=function(e){return Math.exp(e)-1},At=function(e){return(Math.exp(2*e)-1)/(Math.exp(2*e)+1)},wt=function(e){return Math.log(1+e)};var yt,Ct={james:[],mary:[{font:"-apple-system-body"}],john:[{fontFamily:"serif"}],patricia:[{fontFamily:"sans-serif"}],robert:[{fontFamily:"monospace"}],jennifer:[{fontSize:"1px"}],michael:[{fontFamily:"system-ui"}]};function It(n,r){var a,o;return void 0===r&&(r=4e3),e.__awaiter(this,void 0,void 0,(function(){var s,u,c,l,d;return e.__generator(this,(function(_){switch(_.label){case 0:return document.body?[3,2]:[4,i(100)];case 1:return _.sent(),[3,0];case 2:s=document.createElement("iframe"),_.label=3;case 3:return _.trys.push([3,,9,10]),[4,new Promise((function(e,t){s.onload=e,s.onerror=t,s.style.setProperty("display","block","important"),s.style.position="absolute",s.style.visibility="hidden","srcdoc"in s?s.srcdoc='<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">':s.src="about:blank",document.body.appendChild(s)}))];case 4:_.sent(),_.label=5;case 5:return(null===(a=s.contentWindow)||void 0===a?void 0:a.document.body)?[3,7]:[4,i(100)];case 6:return _.sent(),[3,5];case 7:return u=s.contentWindow,c=u.document,(l=c.body).style.width=r+"px",t.isChromium()?l.style.zoom=""+1/u.devicePixelRatio:t.isWebKit()&&(l.style.zoom="reset"),(d=c.createElement("div")).textContent=e.__spreadArrays(Array(r/20<<0)).map((function(){return"word"})).join(" "),l.appendChild(d),[4,n(c,l)];case 8:return[2,_.sent()];case 9:return null===(o=s.parentNode)||void 0===o||o.removeChild(s),[7];case 10:return[2]}}))}))}var kt=((yt={})[0]=function(){var e=screen;if(e.availWidth&&e.availHeight){var t=[0|e.availWidth,0|e.availHeight];return t.sort().reverse(),t}},yt[1]=function(){var e=(new Date).getFullYear();return Math.max(+new Date(e,0,1).getTimezoneOffset(),+new Date(e,6,1).getTimezoneOffset())},yt[2]=function(){var e;if(null===(e=he.Intl)||void 0===e?void 0:e.DateTimeFormat)return(new he.Intl.DateTimeFormat).resolvedOptions().timeZone},yt[3]=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:ge(t)}},yt[4]=function(){return void 0!==navigator.webdriver},yt[5]=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]}}))}))},yt[6]=function(){var e=pe.documentElement;return"webdriver"in Ee||"_Selenium_IDE_Recorder"in Ee||"callSelenium"in Ee||"_selenium"in Ee||"__webdriver_script_fn"in pe||"__driver_evaluate"in pe||"__webdriver_evaluate"in pe||"__selenium_evaluate"in pe||"__fxdriver_evaluate"in pe||"__driver_unwrapped"in pe||"__webdriver_unwrapped"in pe||"__selenium_unwrapped"in pe||"__fxdriver_unwrapped"in pe||"__webdriver_script_func"in pe||null!==e.getAttribute("selenium")||null!==e.getAttribute("webdriver")||null!==e.getAttribute("driver")},yt[7]=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,Oe()];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]}}))}))},yt[8]=function(){if(!t.isChromium())return!1;try{if([66,114,97,118,101].map((function(e){return String.fromCharCode(e)})).join("")in Pe)return!0;var e=Le.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,a=new Uint8Array(i),o=0;o<i;o++)a[o]=r.charCodeAt(o);var s=R(a,[73,68,65,84,24]);if(-1===s)return!1;var u=R(a,[73,69,78,68]);return-1!==s&&1321!==a.slice(s+5,u).reduce((function(e,t){return e+t}),0)}catch(c){return!1}},yt[9]=function(){return e.__awaiter(this,void 0,void 0,(function(){var n,r;return e.__generator(this,(function(e){switch(e.label){case 0:if(!t.isChromium()&&!t.isWebKit())return[2,-2];if(!(n=Me.RTCPeerConnection||Me.webkitRTCPeerConnection))return[2,-3];r=new n({iceServers:[]}),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,new Promise((function(e,t){var n=function(){return e(-1)};r.onicecandidate=function(t){var r=t.candidate;r?r.candidate&&e(r.candidate):n()},r.onicegatheringstatechange=function(){"complete"===r.iceGatheringState&&n()},r.onicecandidateerror=t,r.createDataChannel("test"),function(e,t){try{return e.createOffer(t)}catch(n){if(/\bcreateOffer\b.*(\bcallback\b.*\bnot a function\b|\barguments required\b.*\bpresent\b)/i.test(n.message))return new Promise((function(n,r){e.createOffer(n,r,t)}));throw n}}(r).then((function(e){return r.setLocalDescription(e)}),t),setTimeout((function(){return e(-4)}),500)}))];case 2:return[2,e.sent()];case 3:return r.close(),[7];case 4:return[2]}}))}))},yt[10]=function(){return e.__awaiter(this,void 0,void 0,(function(){var n;return e.__generator(this,(function(e){switch(e.label){case 0:if("function"!=typeof(n=window.ApplePaySession))return[2,{s:-1,v:null}];e.label=1;case 1:return e.trys.push([1,3,,4]),n.canMakePayments()?t.isWebKit()&&!O()?[2,{s:0,v:1}]:[4,Promise.race([n.canMakePaymentsWithActiveCard(""),i(250,!1)])]:[2,{s:0,v:0}];case 2:return[2,{s:0,v:e.sent()?3:2}];case 3:return[2,De(e.sent())];case 4:return[2]}}))}))},yt[11]=function(n){var r=(void 0===n?{}:n).debug;return e.__awaiter(this,void 0,void 0,(function(){var n,i,a;return e.__generator(this,(function(e){switch(e.label){case 0:return t.isWebKit()||(o=t.isChromium(),s=t.isGecko(),(o||s)&&b(["onorientationchange"in C,"orientation"in C,o&&"SharedWorker"in C,s&&/android/i.test(k.appVersion)])>=2)?[4,Fe((a=[]).concat.apply(a,Ge.map((function(e){return Be[e]}))))]:(Ue(r,void 0),[2,void 0]);case 1:return n=e.sent(),Ue(r,n),(i=Ge.filter((function(e){var t=Be[e];return b(t.map((function(e){return n[e]})))>.5*t.length}))).sort(),[2,i]}var o,s}))}))},yt[12]=function(){for(var e=0,t=["rec2020","p3","srgb"];e<t.length;e++){var n=t[e];if(matchMedia("(color-gamut: "+n+")").matches)return n}},yt[13]=function(){return!!Xe("inverted")||!Xe("none")&&void 0},yt[14]=function(){return!!je("active")||!je("none")&&void 0},yt[15]=function(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=100;++e)if(matchMedia("(max-monochrome: "+e+")").matches)return e;throw new Error("Too high value")}},yt[16]=function(){return Ve("no-preference")?0:Ve("high")||Ve("more")?1:Ve("low")||Ve("less")?-1:Ve("forced")?10:void 0},yt[17]=function(){return!!qe("reduce")||!qe("no-preference")&&void 0},yt[18]=function(){return!!Ke("high")||!Ke("standard")&&void 0},yt[19]=t.getScreenFrame,yt[20]=function(){return!!We("dark")||!We("light")&&void 0},yt[21]=function(){var e=Date.now();return[e,e-6e4*(new Date).getTimezoneOffset()]},yt[22]=function(){return{acos:rt(.12312423423423424),acosh:it(1e308),acoshPf:(e=1e154,Math.log(e+Math.sqrt(e*e-1))),asin:at(.12312423423423424),asinh:ot(1),asinhPf:mt(1),atanh:st(.5),atanhPf:Rt(.5),atan:ut(.5),sin:ct(-1e300),sinh:lt(1),sinhPf:bt(1),cos:dt(10.000000000123),cosh:_t(1),coshPf:St(1),tan:ft(-1e300),tanh:vt(1),tanhPf:At(1),exp:ht(1),expm1:gt(1),expm1Pf:Tt(1),log1p:Et(10),log1pPf:wt(10),powPI:pt(-100)};var e},yt[23]=function(){if("performance"in window){for(var e=1,t=1,n=performance.now(),r=n,i=0;i<1e5;i++)if((n=r)<(r=performance.now())){var a=r-n;a>e?a<t&&(t=a):a<e&&(t=e,e=a)}return[e,t]}},yt[24]=function(){var e,t;return null===(t=null===(e=window.performance)||void 0===e?void 0:e.memory)||void 0===t?void 0:t.jsHeapSizeLimit},yt[25]=function(){return e.__awaiter(this,void 0,void 0,(function(){var n;return e.__generator(this,(function(e){switch(e.label){case 0:return n={},[4,It((function(e,t){for(var r={},i=0,a=Object.keys(Ct);i<a.length;i++){var o=a[i],s=Ct[o],u=s[0],c=void 0===u?{}:u,l=s[1],d=void 0===l?"mmMwWLliI0fiflO&1":l,_=e.createElement("span");_.textContent=d,_.style.whiteSpace="nowrap";for(var f=0,v=Object.keys(c);f<v.length;f++){var h=v[f],g=c[h];void 0!==g&&(_.style[h]=g)}r[o]=_,t.appendChild(e.createElement("br")),t.appendChild(_)}for(var E=0,p=Object.keys(Ct);E<p.length;E++){var m=r[o=p[E]].getBoundingClientRect();n[o]=[m.width,m.height]}}))];case 1:return e.sent(),[2,[n,!t.isGecko()]]}}))}))},yt[26]=function(){var t=document.createElement("canvas");t.width=256,t.height=256;for(var n=["webgl","experimental-webgl","moz-webgl","webkit-3d"],r=void 0,i=0;i<n.length&&!r;i++)try{r=t.getContext(n[i])}catch(o){}if(r){var a=e.__assign(e.__assign({},et(r)),{fingerprint:""});return tt(r),a.fingerprint=t.toDataURL(),a}},yt[27]=function(){if("OffscreenCanvas"in window){var t=new OffscreenCanvas(256,256),n=t.getContext("webgl");if(!n)return Promise.resolve(void 0);var r=e.__assign(e.__assign({},et(n)),{fingerprint:""});return tt(n),t.convertToBlob().then((function(e){return Promise.race([new Promise((function(e){return setTimeout((function(){return e("")}),150)})),new Promise((function(t){var n=new FileReader;n.onload=function(e){return e.target&&t(e.target.result)},n.readAsDataURL(e)}))])})).then((function(e){return r.fingerprint=e,r}))}return Promise.resolve(void 0)},yt);function Ot(e){return t.getComponents(kt,e,[])}var Pt=document,Lt=location;function Mt(e){for(var t=e+"=",n=0,r=Pt.cookie.split(";");n<r.length;n++){for(var i=r[n],a=0;" "===i[a]&&a<i.length;)++a;if(i.indexOf(t)===a)return i.slice(a+t.length)}}function Dt(e,t,n,r){var i=e+"="+t,a="expires="+new Date(Date.now()+24*n*60*60*1e3).toUTCString(),o=r?"domain="+r:"";Pt.cookie=[i,"path=/",a,o,"SameSite=Lax"].join("; ")}function Nt(e,t,n){var r=Lt.hostname;xt(r,(function(t){!function(e,t){Dt(e,"",-1,t)}(e,t)})),xt(r,(function(r){return Dt(e,t,n,r),Mt(e)!==t}))&&Dt(e,t,n)}function xt(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 Bt(e){return void 0===e&&(e="_vid"),[Mt(e),Ft(e)]}function Gt(e,t){void 0===t&&(t="_vid"),Nt(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 Ft(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 Ht(t,n,r,i){var o=this,s=i.token,l=i.region,d=void 0===l?"us":l,_=i.endpoint,f=i.tlsEndpoint,h=i.storageKey,g=i.debug;var E=function(t,n,r,i,a,u,c){return e.__awaiter(o,void 0,void 0,(function(){var o,l,v,g;return e.__generator(this,(function(E){switch(E.label){case 0:return[4,Promise.all([p(d,f,i,!!r,c),m(c)])];case 1:return o=E.sent(),l=o[0],v=o[1],[4,le(e.__assign(e.__assign({},l),{token:s,endpoint:ce(d,_),components:v,tag:t,visitorId:Bt(h),linkedId:n,extendedResult:a,ipResolution:u}),c)];case 2:return Gt((g=E.sent()).visitorId,h),[2,g]}}))}))},p=function(t,n,r,i,a){return e.__awaiter(o,void 0,void 0,(function(){return e.__generator(this,(function(e){return i?[2,void 0]:[2,Q(function(e,t){return t||$[e]}(t,n),r,a).then((function(e){return{tls:e}}),(function(e){return{tlsError:e}}))]}))}))},m=function(t){return w(t,(function(){return{e:12}}),(function(e){return{e:13,result:e}}),(function(e){return{e:14,error:e}}),(function(){return e.__awaiter(o,void 0,void 0,(function(){var i,a;return e.__generator(this,(function(o){switch(o.label){case 0:return[4,n.get()];case 1:return i=o.sent(),[4,r({debug:t})];case 2:return a=o.sent(),[2,e.__assign(e.__assign({},i.components),a)]}}))}))}))};return{get:function(n){void 0===n&&(n={});var r=g||n.debug?function(t,n,r){return function(i){return t(e.__assign(e.__assign({},i),{agentId:n,getCallId:r}))}}(c([g,n.debug&&v()]),t,u(8)):void 0;return w(r,(function(){return{e:3,options:n}}),(function(e){return{e:4,requestId:e.requestId,visitorId:e.visitorId,result:e}}),(function(e){return{e:5,requestId:e.requestId,error:e}}),(function(){var e=n.timeout,t=void 0===e?1e4:e,i=n.tag,o=n.linkedId,s=n.disableTls,u=n.extendedResult,c=n.ipResolution;return Promise.race([a(t).then((function(){throw new Error("Client timeout")})),E(i,o,s,t/2,u,c,r)])}))}}}function Ut(r){var i=this,a=u(8);return w(r.debug,(function(){return{e:0,agentId:a,version:n,options:r}}),(function(){return{e:1,agentId:a}}),(function(e){return{e:2,agentId:a,error:e}}),(function(){return e.__awaiter(i,void 0,void 0,(function(){var n;return e.__generator(this,(function(e){switch(e.label){case 0:if(!r.token||"string"!=typeof r.token)throw new Error("Token required");return[4,t.load({delayFallback:r.delayFallback})];case 1:return n=e.sent(),[2,Ht(a,n,Ot,r)]}}))}))}))}var Xt={load:Ut,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",ERROR_FORBIDDEN_ORIGIN:"Not available for this origin",ERROR_FORBIDDEN_HEADER:"Not available with restricted header"};exports.ERROR_BAD_REQUEST_FORMAT="Request cannot be parsed",exports.ERROR_CLIENT_TIMEOUT="Client timeout",exports.ERROR_FORBIDDEN_HEADER="Not available with restricted header",exports.ERROR_FORBIDDEN_ORIGIN="Not available for this origin",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=Xt,exports.load=Ut,exports.makeConsoleDebugger=v,exports.makeDebugReportBuilder=function(e){return new N(e).addEvent},exports.makeMulticastDebugger=c,exports.makeRemoteDebugger=function(t){var n=this,r=t.clientId,i=t.token,a=t.endpoint,o=void 0===a?"https://api.rollbar.com/api/1/item/":a;return new N((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:V(e,t,r)}}(t,r,i),[4,Z(o,n)];case 1:return e.sent(),[2]}}))}))})).addEvent};
/**
* FingerprintJS Pro v3.2.3 - Copyright (c) FingerprintJS, Inc, 2021 (https://fingerprintjs.com)
* FingerprintJS Pro v3.3.0-dev.1 - Copyright (c) FingerprintJS, Inc, 2021 (https://fingerprintjs.com)
*

@@ -25,8 +25,12 @@ * This software contains code from open-source projects:

TlsFail = 8,
FingerprintStart = 9,
FingerprintSuccess = 10,
FingerprintFail = 11,
VisitorIdRequestStart = 12,
VisitorIdRequestSuccess = 13,
VisitorIdRequestFail = 14
TlsTryStart = 9,
TlsTrySuccess = 10,
TlsTryFail = 11,
FingerprintStart = 12,
FingerprintSuccess = 13,
FingerprintFail = 14,
VisitorIdRequestStart = 15,
VisitorIdRequestSuccess = 16,
VisitorIdRequestFail = 17,
DomBlockers = 18
}

@@ -57,2 +61,3 @@ /**

getCallId: string;
requestId: string;
visitorId: string;

@@ -64,2 +69,3 @@ result: unknown;

getCallId: string;
requestId: string | undefined;
error: Readonly<Error>;

@@ -76,8 +82,26 @@ } | {

getCallId: string;
result: string;
} | {
e: DebugEvent.TlsFail;
agentId: string;
getCallId: string;
error: Readonly<Error>;
} | {
e: DebugEvent.TlsTryStart;
agentId: string;
getCallId: string;
tryNumber: number;
timeout: number;
} | {
e: DebugEvent.TlsTrySuccess;
agentId: string;
getCallId: string;
tryNumber: number;
status: number;
body: string;
} | {
e: DebugEvent.TlsFail;
e: DebugEvent.TlsTryFail;
agentId: string;
getCallId: string;
tryNumber: number;
error: Readonly<Error>;

@@ -102,3 +126,2 @@ } | {

getCallId: string;
requestId: string;
endpoint: string;

@@ -117,2 +140,7 @@ request: unknown;

error: Readonly<Error>;
} | {
e: DebugEvent.DomBlockers;
agentId: string;
getCallId: string;
blocked: Record<string, Record<string, boolean>>;
};

@@ -207,7 +235,10 @@ /**

get: DebugReportProcessReport | undefined;
tls: DebugReportProcessReport<{
responseStatus: number;
}> | undefined;
tls: (DebugReportProcessReport & {
timeout: number;
triesCount: number;
triesTotalDuration: number;
}) | undefined;
fingerprint: DebugReportProcessReport<{
failedComponents: string[];
componentDurations: Record<string, number>;
}> | undefined;

@@ -578,2 +609,3 @@ visitorIdRequest: DebugReportProcessReport<{

* See the `ERROR_...` constants for expected error messages.
* When an error is emitted by the backend, it gets a `requestId` field, same as in successful result.
*/

@@ -580,0 +612,0 @@ get<TExtended extends boolean = false, TIP extends IPResolution = 'city'>(options?: Readonly<GetOptions<TExtended, TIP>>): Promise<DeriveGetResult<TExtended, TIP>>;

/**
* FingerprintJS Pro v3.2.3 - Copyright (c) FingerprintJS, Inc, 2021 (https://fingerprintjs.com)
* FingerprintJS Pro v3.3.0-dev.1 - Copyright (c) FingerprintJS, Inc, 2021 (https://fingerprintjs.com)
*

@@ -8,2 +8,2 @@ * This software contains code from open-source projects:

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 S(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(_(e,t));break;case 10:var n=_(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(_(e,t))}}}function _(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 T=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(O("TimeoutError","The request timed out"))},a.onabort=function(){return n(O("AbortError","The request is aborted"))},a.onerror=function(){return n(O("TypeError",T.onLine?"Connection error":"Network offline"))},a.send(i)}))}function O(e,t){var n=new Error(t);return n.name=e,n}function q(e){var t=e.url,n=e.body;if(T.sendBeacon)return T.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,N=navigator;function D(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 L(){var e=window,t=e.__fpjs_pvid;return e.__fpjs_pvid="string"==typeof t?t:w(10)}var P=window,A=navigator,j=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.documentReadyState=j.readyState,n.isPageVisible=J(),n.isFullscreen=K(),n.network=H()),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=[[j,"readystatechange",function(){return t.handleDocumentReadyStateChange()}],[j,"visibilitychange",function(){return t.handleVisibilityChange()}],[j,"pageshow",function(){return t.handlePageTransition(!0)}],[j,"pagehide",function(){return t.handlePageTransition(!1)}],[P,"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=N.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.handleDocumentReadyStateChange=function(){this.storeEnvironmentEvent({time:new Date,type:"documentReadyState",state:j.readyState})},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:H()})},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],S=k[1];if(p[R]){w=S;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:L(),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!j.hidden}function K(){return!!(x.fullscreenElement||x.msFullscreenElement||x.mozFullScreenElement||x.webkitFullscreenElement)}function H(){var e,t,n,r,i,o;return{online:navigator.onLine,downlink:null===(e=A.connection)||void 0===e?void 0:e.downlink,downlinkMax:null===(t=A.connection)||void 0===t?void 0:t.downlinkMax,effectiveType:null===(n=A.connection)||void 0===n?void 0:n.effectiveType,roundTrip:null===(r=A.connection)||void 0===r?void 0:r.rtt,saveData:null===(i=A.connection)||void 0===i?void 0:i.saveData,type:null===(o=A.connection)||void 0===o?void 0:o.type}}function z(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.3"},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}},person:void 0===e.visitorId?void 0:{id:"visitorId:"+e.visitorId},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"documentReadyState":return n(n({},t),{body:{message:'Document ready state becomes "'+e.state+'"'}});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)"}})}for(var r=e.event,i=n(n({},t),{level:"info",body:{message:R(r.e)}}),o=0,a=["documentReadyState","isPageVisible","isFullscreen","network"];o<a.length;o++){var u=a[o];void 0!==e[u]&&(i.body[u]=e[u])}switch(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.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&&q({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,D(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.3",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.k34=se(r[5],-5),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,D(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 Se(){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 _e(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 Te=window,Ce=document;var Oe,qe=window;var xe=((Oe={})[0]=function(){return void 0!==navigator.webdriver},Oe[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]}}))}))},Oe[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")},Oe[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,Se()];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]}}))}))},Oe[4]=function(){if(!u())return!1;try{if([66,114,97,118,101].map((function(e){return String.fromCharCode(e)})).join("")in Te)return!0;var e=Ce.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=_e(i,[73,68,65,84,24]);if(-1===a)return!1;var s=_e(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}},Oe[5]=function(){return e(this,void 0,void 0,(function(){var e,n;return t(this,(function(t){switch(t.label){case 0:if(!u()&&!s())return[2,-2];if(!(e=qe.RTCPeerConnection||qe.webkitRTCPeerConnection))return[2,-3];n=new e({iceServers:[]}),t.label=1;case 1:return t.trys.push([1,,3,4]),[4,new Promise((function(e,t){var r=function(){return e(-1)};n.onicecandidate=function(t){var n=t.candidate;if(!(null==n?void 0:n.candidate))return r();var i=function(e){var t=/candidate:(\d+)\b/i.exec(e);return t?+t[1]:void 0}(n.candidate);void 0!==i&&e(i)},n.onicegatheringstatechange=function(){"complete"===n.iceGatheringState&&r()},n.onicecandidateerror=t,n.createDataChannel("test"),function(e,t){try{return e.createOffer(t)}catch(n){if(/\bcreateOffer\b.*(\bcallback\b.*\bnot a function\b|\barguments required\b.*\bpresent\b)/i.test(n.message))return new Promise((function(n,r){e.createOffer(n,r,t)}));throw n}}(n).then((function(e){return n.setLocalDescription(e)}),t),setTimeout((function(){return e(-4)}),500)}))];case 2:return[2,t.sent()];case 3:return n.close(),[7];case 4:return[2]}}))}))},Oe);function Ne(){return v(xe,void 0,[])}var De=document,Le=location;function Pe(e){for(var t=e+"=",n=0,r=De.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:"";De.cookie=[i,"path=/",o,a,"SameSite=Lax"].join("; ")}function je(e,t,n){var r=Le.hostname;Fe(r,(function(t){!function(e,t){Ae(e,"",-1,t)}(e,t)})),Fe(r,(function(r){return Ae(e,t,n,r),Pe(e)!==t}))&&Ae(e,t,n)}function Fe(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 Ve(e){return void 0===e&&(e="_vid"),[Pe(e),Me(e)]}function Ue(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 Me(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 Ge(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:Ve(v),linkedId:o,extendedResult:g,ipResolution:p}),n(n({},b),{agentId:r}))];case 2:return Ue((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 D(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,Ne()];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&&S()]);return D(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 Be(n){var r=this,i=w(8);return D(n.debug,(function(){return{e:0,agentId:i,version:"3.2.3",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,Ge(i,e,n)]}}))}))}))}var Je="Token required",Ke="Token not found",He="Token expired",ze="Request cannot be parsed",We="Request failed",Xe="Request failed to process",Qe="Too many requests, rate limit exceeded",$e="Not available for this origin",Ye="Not available with restricted header",Ze={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",ERROR_FORBIDDEN_ORIGIN:"Not available for this origin",ERROR_FORBIDDEN_HEADER:"Not available with restricted header"};export default Ze;export{ze as ERROR_BAD_REQUEST_FORMAT,te as ERROR_CLIENT_TIMEOUT,Ye as ERROR_FORBIDDEN_HEADER,$e as ERROR_FORBIDDEN_ORIGIN,We as ERROR_GENERAL_SERVER_FAILURE,re as ERROR_NETWORK_ABORT,ne as ERROR_NETWORK_CONNECTION,Qe as ERROR_RATE_LIMIT,Xe as ERROR_SERVER_TIMEOUT,He as ERROR_TOKEN_EXPIRED,Ke as ERROR_TOKEN_INVALID,Je as ERROR_TOKEN_MISSING,Be as load,S as makeConsoleDebugger,V as makeDebugReportBuilder,y as makeMulticastDebugger,z as makeRemoteDebugger};
import{__awaiter as e,__generator as t,__assign as n,__rest as r,__spreadArrays as i}from"tslib";import{isChromium as o,isGecko as a,getFullscreenElement as s,murmurX64Hash128 as u,isWebKit as c,isDesktopSafari as l,isTrident as d,isEdgeHTML as f,getScreenFrame as v,getComponents as h,load as _}from"@fingerprintjs/fingerprintjs";var p="3.3.0-dev.1",E=document;function m(e,t){return new Promise((function(n){return setTimeout((function(){return n(t)}),e)}))}function g(e,t){return new Promise((function(n){var r=function(){return E.hidden?a():o()},i=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,!E.hidden,(function(){E.removeEventListener("visibilitychange",r),n(t)})),o=i.start,a=i.stop;E.addEventListener("visibilitychange",r)}))}function b(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 R(e,t){for(var n="",r=0;r<e;r++)n+=t.charAt(Math.random()*t.length);return n}function S(e){return R(e,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function T(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=function(e){e&&b((function(){return e.apply(void 0,t)}))},i=0,o=e;i<o.length;i++){var a=o[i];r(a)}}}var A=window;function w(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 y(){try{return A.self!==A.top}catch(e){return!0}}function C(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"Getting TLS has started";case 7:return"Getting TLS has succeeded";case 8:return"Getting TLS has failed";case 9:return"TLS request try has started";case 10:return"TLS request try has succeeded";case 11:return"TLS request try has failed";case 12:return"Getting fingerprint has started";case 13:return"Getting fingerprint has succeeded";case 14:return"Getting fingerprint has failed";case 15:return"Visitor identifier request has started";case 16:return"Visitor identifier request has succeeded";case 17:return"Visitor identifier request has failed";case 18:return"DOM blockers debug"}}function k(e){return void 0===e&&(e="[FingerprintJS Pro] "),function(t){switch(t.e){case 2:case 5:case 8:case 11:case 14:case 17:console.error(I(e,t));break;case 13:var n=I(e,t),i=t.result;Object.keys(i).some((function(e){return i[e].error}))?console.warn(n):console.log(n);break;case 18:var o=t.blocked,a=r(t,["blocked"]);console.log(I(e,a)+"\n"+function(e,t){if(!Object.keys(e).length)return t;for(var n="```",r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];n+="\n"+o+":";for(var a=0,s=Object.keys(e[o]);a<s.length;a++){var u=s[a];n+="\n "+u+" "+(e[o][u]?"🚫":"➡️")}}return n+"\n```"}(o,"Not applicable"));break;default:console.log(I(e,t))}}}function I(e,t){var n=t.e,i=r(t,["e"]),o=""+e+(new Date).toISOString()+": "+C(n);return Object.keys(i).length&&(o+="\n```\n"+function(e){return JSON.stringify(e,(function(e,t){return t instanceof Error?w(t,!0):t}),2)}(i)+"\n```"),o}var P=navigator;function O(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(L("TimeoutError","The request timed out"))},a.onabort=function(){return n(L("AbortError","The request is aborted"))},a.onerror=function(){return n(L("TypeError",P.onLine?"Connection error":"Network offline"))},a.send(i)}))}function L(e,t){var n=new Error(t);return n.name=e,n}function M(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=A.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}function D(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}function N(e){return e.reduce((function(e,t){return e+(t?1:0)}),0)}function B(e,t,n){return void 0===n&&(n="..."),e.length<=t?e:""+e.slice(0,Math.max(0,t-n.length))+n}function x(n,r){return e(this,void 0,void 0,(function(){var e,i,o,a,s,u,c;return t(this,(function(t){switch(t.label){case 0:e=Date.now(),o=r.next(),t.label=1;case 1:return o.done?[3,7]:(a=o.value,s=a[0],u=a[1],[4,m(s)]);case 2:t.sent(),t.label=3;case 3:return t.trys.push([3,5,,6]),[4,n(u)];case 4:return[2,t.sent()];case 5:return c=t.sent(),i=c,o=r.next([Date.now()-e,i]),[3,6];case 6:return[3,1];case 7:if(void 0!==i)throw i;throw new Error("The strategy must do at least 1 try")}}))}))}function G(e,n){var r;return t(this,(function(t){switch(t.label){case 0:return[4,[0,void 0]];case 1:t.sent(),r=e,t.label=2;case 2:return[4,[r=Math.min(n,e+Math.random()*(3*r-e)),void 0]];case 3:t.sent(),t.label=4;case 4:return[3,2];case 5:return[2]}}))}function F(n,r,i,o,a){return e(this,void 0,void 0,(function(){var e,s,u;return t(this,(function(t){switch(t.label){case 0:(s=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];n&&b((function(){var r=e.apply(void 0,t);void 0!==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 u=t.sent(),s(o,u),u;case 4:return s(i,e),[2,e]}}))}))}function H(){var e=window,t=e.__fpjs_pvid;return e.__fpjs_pvid="string"==typeof t?t:S(10)}var U=window,X=document,j=navigator;function q(){return N(["maxTouchPoints"in j,"mediaCapabilities"in j,"PointerEvent"in U,"visualViewport"in U,"onafterprint"in U])>=4}var V=window,W=navigator,K=document,z=performance;function Y(e){return new J(e).addEvent}var J=function(){function e(e){var t=this;this.onReportReady=e,this.isStopped=!1,this.pageStartTimestamp=function(){var e,t;if(z.timeOrigin){var n=null===(t=null===(e=z.getEntriesByType)||void 0===e?void 0:e.call(z,"navigation"))||void 0===t?void 0:t[0];if(n)return z.timeOrigin+(n.responseStart||n.unloadEventEnd)}return z.timing.domLoading||z.timing.responseStart||z.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.documentReadyState=K.readyState,n.isPageVisible=ne(),n.isFullscreen=re(),n.network=ie()),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=[[K,"readystatechange",function(){return t.handleDocumentReadyStateChange()}],[K,"visibilitychange",function(){return t.handleVisibilityChange()}],[K,"pageshow",function(){return t.handlePageTransition(!0)}],[K,"pagehide",function(){return t.handlePageTransition(!1)}],[V,"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];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=j.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.handleDocumentReadyStateChange=function(){this.storeEnvironmentEvent({time:new Date,type:"documentReadyState",state:K.readyState})},e.prototype.handleVisibilityChange=function(){this.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:ne()})},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:re()})},e.prototype.handleNetworkConnectionChange=function(){this.storeEnvironmentEvent({time:new Date,type:"networkChange",network:ie()})},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];Z(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];Z(u)||u.push(e)}}},e.prototype.submitReport=function(e,t){var r=function(e,t){for(var r,i,o,a,s,u,c,l,d,f,v,h=function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];"agentEvent"===i.type&&(t[i.event.e]=i)}return t}(e),_=function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];if("agentEvent"===i.type)switch(i.event.e){case 9:case 10:case 11:t[i.event.tryNumber]||(t[i.event.tryNumber]={}),t[i.event.tryNumber][i.event.e]=i}}for(var o=[],a=0,s=Object.keys(t);a<s.length;a++){var u=s[a];o.push(t[u])}return o}(e),p=null!==(i=null===(r=e[e.length-1])||void 0===r?void 0:r.time)&&void 0!==i?i:new Date,E="null",m=0,g=[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]];m<g.length;m++){var b=g[m],R=b[0],S=b[1];if(h[R]){E=S;break}}return{time:null!==(a=null===(o=e[e.length-1])||void 0===o?void 0:o.time)&&void 0!==a?a:new Date,pageUrl:location.href,pageStartTime:new Date(t),isInIframe:y(),agentVersion:null===(s=h[0])||void 0===s?void 0:s.event.version,userAgent:navigator.userAgent,pageViewId:H(),agentId:null===(u=h[0])||void 0===u?void 0:u.event.agentId,getCallId:null===(c=h[3])||void 0===c?void 0:c.event.getCallId,requestId:null!==(d=null===(l=h[4])||void 0===l?void 0:l.event.requestId)&&void 0!==d?d:null===(f=h[5])||void 0===f?void 0:f.event.requestId,visitorId:null===(v=h[4])||void 0===v?void 0:v.event.visitorId,identificationState:E,load:$(p,h[0],h[1],h[2]),get:$(p,h[3],h[4],h[5]),tls:Q($(p,h[6],h[7],h[8]),(function(){var e,t,r,i;return n({timeout:null!==(t=null===(e=h[6])||void 0===e?void 0:e.event.timeout)&&void 0!==t?t:NaN},(i=p,{triesCount:(r=_).length,triesTotalDuration:r.reduce((function(e,t){var n,r,o=t[9],a=null!==(n=t[10])&&void 0!==n?n:t[11];return o?e+(null!==(r=null==a?void 0:a.time)&&void 0!==r?r:i).getTime()-o.time.getTime():e}),0)}))})),fingerprint:$(p,h[12],h[13],h[14],(function(e){var t=e.event;return{failedComponents:ee(t.result),componentDurations:te(t.result)}})),visitorIdRequest:$(p,h[15],h[16],h[17],(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(r)}catch(i){console.error(i)}},e}();function Z(e){return e.some((function(e){return"agentEvent"===e.type&&(4===e.event.e||5===e.event.e)}))}function $(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 Q(e,t){return e?n(n({},e),t()):void 0}function ee(e){return Object.keys(e).filter((function(t){return e[t].error}))}function te(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];t[i]=e[i].duration}return t}function ne(){return!K.hidden}function re(){return!!s()}function ie(){var e,t,n,r,i,o;return{online:navigator.onLine,downlink:null===(e=W.connection)||void 0===e?void 0:e.downlink,downlinkMax:null===(t=W.connection)||void 0===t?void 0:t.downlinkMax,effectiveType:null===(n=W.connection)||void 0===n?void 0:n.effectiveType,roundTrip:null===(r=W.connection)||void 0===r?void 0:r.rtt,saveData:null===(i=W.connection)||void 0===i?void 0:i.saveData,type:null===(o=W.connection)||void 0===o?void 0:o.type}}function oe(n){var r=this,i=n.clientId,o=n.token,a=n.endpoint,s=void 0===a?"https://api.rollbar.com/api/1/item/":a;return new J((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:ae(e,t,r)}}(n,i,o),[4,ve(s,e)];case 1:return t.sent(),[2]}}))}))})).addEvent}function ae(e,t,n){var r,o;void 0===n&&(n=[8,4,4,4,12].map((function(e){return R(e,"0123456789abcdef")})).join("-"));var a=se[e.identificationState],s=a.level,u=a.message;return{environment:t,level:s,timestamp:Math.round(e.time.getTime()/1e3),platform:"browser",framework:"FingerprintJS Pro",language:"javascript",uuid:n,notifier:{name:"FingerprintJS Pro monitoring",version:"3.3.0-dev.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}},person:void 0===e.visitorId?void 0:{id:"visitorId:"+e.visitorId},body:{telemetry:i([{level:"debug",source:"client",timestamp_ms:e.pageStartTime.getTime(),type:"manual",body:{message:"Page starts","~~hack~componentDurations":"success"===(null===(o=e.fingerprint)||void 0===o?void 0:o.state)?le(e.fingerprint.componentDurations):void 0}}],e.events.map(ue)),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:ce(e.fingerprint),visitorIdRequest:e.visitorIdRequest}}}var se={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 ue(e){var t={type:"manual",level:"debug",source:"client",timestamp_ms:e.time.getTime()};switch(e.type){case"documentReadyState":return n(n({},t),{body:{message:'Document ready state becomes "'+e.state+'"'}});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=function(i,o){void 0===o&&(o="info");for(var a=n(n({},t),{level:o,body:n({message:C(r.e)},i)}),s=0,u=["documentReadyState","isPageVisible","isFullscreen","network"];s<u.length;s++){var c=u[s];void 0!==e[c]&&(a.body[c]=e[c])}return a};switch(r.e){case 0:case 3:return i({options:r.options});case 1:case 12:return i({});case 2:case 5:case 8:case 14:case 17:return i({error:r.error},"error");case 4:return i({result:r.result});case 6:return i({endpoint:r.endpoint,timeout:r.timeout});case 7:return i({result:B(r.result,1e3)});case 9:return i({tryNumber:r.tryNumber,timeout:r.timeout});case 10:return i({tryNumber:r.tryNumber,status:r.status,body:B(r.body,1e3)});case 11:return i({tryNumber:r.tryNumber,error:r.error},"error");case 13:return i({result:fe(r.result)});case 15:return i({endpoint:r.endpoint,request:r.request});case 16:return i({status:r.status,body:B(r.body,4e3)});case 18:return i({blocked:de(r.blocked)})}}function ce(e){if(!e||"incomplete"===e.state||"fail"===e.state)return e;e.componentDurations;var t=r(e,["componentDurations"]),i=e.failedComponents.length?","+e.failedComponents.join(",")+",":void 0;return n(n({},t),{failedComponents:i})}function le(e,t){void 0===t&&(t="_");for(var r=n({},e),i=0,o=Object.keys(e);i<o.length;i++){var a=o[i];if(/^\d+$/.test(a)){delete r[a];var s=a;do{s=""+t+s}while(s in r);r[s]=e[a]}}return r}function de(e){for(var t=[],n=0,r=Object.keys(e);n<r.length;n++)for(var i=r[n],o=0,a=Object.keys(e[i]);o<a.length;o++){var s=a[o];e[i][s]&&t.push(s)}return t}function fe(e){var t,r="(removed to fit into beacon)";return function(e,t){for(var r={},i=0,o=Object.keys(e);i<o.length;i++){var a=o[i];!e[a].error&&t[a]?r[a]=n(n({},e[a]),{error:void 0,value:t[a](e[a].value)}):r[a]=e[a]}return r}(e,((t={plugins:function(e){return e&&r}})[3]=function(e){return n(n({},e),{data:r})},t[22]=function(){return r},t[25]=function(){return r},t[26]=function(e){return e&&r},t[27]=function(e){return e&&r},t))}function ve(n,r){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return e=JSON.stringify(r,(function(e,t){if(t instanceof Error){var n=w(t);return"string"==typeof n.stack&&(n.stack=B(n.stack,1e3)),n}return t})),[4,x((function(){if(!navigator.onLine||!M({url:n,body:e}))throw new Error}),G(1e3,1e4))];case 1:return t.sent(),[2]}}))}))}var he={us:"https://api.sjpf.io",eu:"https://tls-eun1.fpapi.io"};function _e(n,r,i){return e(this,void 0,void 0,(function(){return t(this,(function(o){return[2,F(i,(function(){return{e:6,endpoint:n,timeout:r}}),(function(e){return{e:7,result:e}}),(function(e){return{e:8,error:e}}),(function(){return x((function(r){var o=r.timeout,a=r.number;return function(n,r,i,o){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,F(o,(function(){return{e:9,tryNumber:i,timeout:r}}),(function(e){var t=e.status,n=e.text;return{e:10,tryNumber:i,status:t,body:n}}),(function(e){return{e:11,tryNumber:i,error:e}}),(function(){return O({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(B(e.status+": "+e.text,255))}}))}))}(n,o,a,i)}),function(e,n,r,i,o){var a,s,u,c,l,d,f;void 0===n&&(n=200);void 0===r&&(r=1e4);void 0===i&&(i=5);void 0===o&&(o=Math.max(1e3,e/2.5));return t(this,(function(v){switch(v.label){case 0:a=function(e,n){var r,i,o,a,s,u,c;return t(this,(function(t){switch(t.label){case 0:return(i=r?n.next(r):n.next()).done?[2]:(o=r?r[0]:0,a=i.value,s=a[0],u=a[1],(c=e-o-s)<=0?[3,3]:[4,[s,[c,u]]]);case 1:r=t.sent(),t.label=2;case 2:return[3,0];case 3:return[2]}}))}(Math.max(1,e),function(e){var n,r,i,o,a,s,u;return t(this,(function(t){switch(t.label){case 0:n=0,t.label=1;case 1:return(i=r?e.next(r):e.next()).done?[2]:(o=r?r[0]:0,a=i.value,s=a[0],u=a[1],[4,[(n=Math.max(o,n+s))-o,u]]);case 2:r=t.sent(),t.label=3;case 3:return[3,1];case 4:return[2]}}))}(G(n,r))),u=0,v.label=1;case 1:return u<i?(c=s?a.next(s):a.next()).done?[3,4]:(l=c.value,d=l[0],f=l[1][0],[4,[d,{number:u,timeout:Math.min(o,f)}]]):[3,4];case 2:s=v.sent(),v.label=3;case 3:return++u,[3,1];case 4:return[2]}}))}(r))}))]}))}))}var pe="Client timeout",Ee="Network connection error",me="Network request aborted";function ge(e){var t,n=e.components,r=e.token,i=e.visitorId,o=e.tag,a=e.ipResolution,s=e.extendedResult,u=e.linkedId,c=e.tls,l=e.tlsError,d=Object.keys(n).reduce((function(e,t){return e+n[t].duration}),0),f="full"===a?2:1;return(t={}).c=r,t.url=location.href,t.d=d,t.vid=i[0]||i[1]||void 0,t.ls=i[1]?1:void 0,t.t=function(e){if(e&&"object"==typeof e)return e;if(null==e)return;return{tag:e}}(o),t.i=f,t.cbd=s?1:void 0,t.lid=u,t.cr=document.referrer||void 0,t.j=c,t.je=null==l?void 0:l.message,t.k1=ye(n.osCpu),t.k2=ye(n.languages),t.k3=ye(n.colorDepth),t.k4=ye(n.deviceMemory),t.k5=ye(n.screenResolution),t.k6=ye(n[0],void 0,[]),t.k7=ye(n.hardwareConcurrency,void 0,1),t.k8=ye(n[1]),t.k9=ye(n[2]),t.k10=Ce(ye(n.sessionStorage)),t.k11=Ce(ye(n.localStorage)),t.k12=Ce(ye(n.indexedDB)),t.k13=Ce(ye(n.openDatabase)),t.k14=ye(n.cpuClass),t.k15=ye(n.platform),t.k16=ye(n.plugins,[]),t.k17=be(ye(n[3])),t.k18=0,t.k19=ye(n.touchSupport),t.k20=ye(n.fonts,[]),t.k21=ye(n.audio,-4),t.k22=Ce(ye(n.pluginsSupport)),t.k23=ye(n.productSub),t.k24=ye(n.emptyEvalLength),t.k25=Ce(ye(n.errorFF)),t.k26=Ce(ye(n[4])),t.k27=ye(n.vendor),t.k28=Ce(ye(n.chrome)),t.k29=Ce(ye(n[5])),t.k30=Ce(ye(n[6])),t.k31=Ce(ye(n[7],!1)),t.k32=Ce(ye(n.cookiesEnabled,!1)),t.k33=Ce(ye(n[8])),t.k34=function(e){if("string"!=typeof e)return e;var t=/candidate:(\d+)\b/i.exec(e);return t?+t[1]:-1}(ye(n[9],-5)),t.s1=Ae(n.osCpu,-1),t.s2=Te(n.languages),t.s3=Te(n.colorDepth),t.s4=Ae(n.deviceMemory,-1),t.s5=Te(n.screenResolution),t.s6=Re(n[19],(function(e){return{s:0,v:e.map((function(e){return null===e?-1:e}))}})),t.s7=Ae(n.hardwareConcurrency,-1),t.s9=Te(n.timezone),t.s10=Te(n.sessionStorage),t.s11=Te(n.localStorage),t.s12=Ae(n.indexedDB,-1),t.s13=Te(n.openDatabase),t.s14=Ae(n.cpuClass,-1),t.s15=Te(n.platform),t.s16=Ae(n.plugins,-1),t.s17=Re(n.canvas,(function(e){return{s:0,v:be(e)}})),t.s19=Te(n.touchSupport),t.s20=Te(n.fonts),t.s21=Re(n.audio,(function(e){return-1===e||-2===e||-3===e?{s:e,v:null}:{s:0,v:e}})),t.s22=Te(n.pluginsSupport),t.s23=Te(n.productSub),t.s24=Te(n.emptyEvalLength),t.s25=Te(n.errorFF),t.s26=Te(n[4]),t.s27=Te(n.vendor),t.s28=Te(n.chrome),t.s29=Ae(n[5],-1),t.s30=Te(n[6]),t.s31=Te(n[7]),t.s32=Te(n.cookiesEnabled),t.s33=Te(n[8]),t.s34=Re(n[9],(function(e){return"number"==typeof e?{s:e,v:null}:{s:0,v:e.slice(0,255)}})),t.s35=Re(n[10],(function(e){return e})),t.s36=Ae(n[11],-1),t.s37=Ae(n[12],-1),t.s38=Ae(n[16],-1),t.s39=Ae(n[14],-1),t.s40=Ae(n[18],-1),t.s41=Ae(n[13],-1),t.s42=Ae(n[15],-1),t.s43=Ae(n[17],-1),t.s44=Ae(n[20],-1),t.s45=Te(n[21]),t.s46=Te(n[22]),t.s47=we(n[26]),t.s48=we(n[27]),t.s49=Ae(n[23],-1),t.s50=Ae(n[24],-1),t.s51=Re(n[25],(function(e){var t=e[0];return{s:e[1]?0:1,v:t}})),t}function be(e){if(e)return n(n({},e),{data:u(e.data)})}function Re(e,t){return e.error?{e:Se(e.error)}:t(e.value)}function Se(e){var t;try{t=""+e.message,"name"in e&&(t=e.name+": "+t)}catch(e){t="Code 3017: "+e.name+": "+e.message}return B(t,500)}function Te(e){return Re(e,(function(e){return{s:0,v:e}}))}function Ae(e,t){return Re(e,(function(e){return{s:null==e?t:0,v:null!=e?e:null}}))}function we(e){return Re(e,(function(e){return{s:e?0:-1,v:e?n(n({},e),{fingerprint:u(e.fingerprint)}):null}}))}function ye(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 ke(e,t){if(t)return t;var n="api.fpjs.io";return"us"!==e&&(n=e+"."+n),"https://"+n}function Ie(i,o){var a=i.endpoint,s=i.extendedResult,u=r(i,["endpoint","extendedResult"]);return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return e=ge(n({extendedResult:s},u)),[4,Pe(a,e,o)];case 1:return[2,Oe(t.sent(),s)]}}))}))}function Pe(n,r,i){return e(this,void 0,void 0,(function(){var e,o;return t(this,(function(t){switch(t.label){case 0:e=function(e){return e+(-1===e.indexOf("?")?"?":"&")+"cv="+encodeURIComponent(p)}(n),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,F(i,(function(){return{e:15,endpoint:e,request:r}}),(function(e){return{e:16,status:e.status,body:e.text}}),(function(e){return{e:17,error:e}}),(function(){return O({url:e,method:"post",body:JSON.stringify(r),headers:{"Content-Type":"text/plain"},withCredentials:!0})}))];case 2:return[2,t.sent()];case 3:throw o=t.sent(),new Error("AbortError"===o.name?"Network request aborted":"Network connection error");case 4:return[2]}}))}))}function Oe(n,r){return e(this,void 0,void 0,(function(){var e,i;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,Me(e,r)];throw(i=new Error(e.reason)).requestId=e.requestId,i}throw new Error(n.text)}))}))}function Le(e){var t=e,i=t.botProbability,o=r(t,["botProbability"]),a=n({},o);return i&&(a.bot={probability:i}),a}function Me(e,t){var r={requestId:e.requestId,visitorFound:!1,visitorId:""};if(!t)return r;var i=n(n({},r),{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.reason&&(i.bot.safe=!0),i}var De=window;function Ne(e){return e.toDataURL()}var Be=window,xe=document;var Ge=window;var Fe=navigator,He=window;function Ue(){var e,t;return(null===(t=null===(e=window.performance)||void 0===e?void 0:e.memory)||void 0===t?void 0:t.jsHeapSizeLimit)||1073741824}function Xe(){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return"storage"in Fe&&"estimate"in Fe.storage?[4,Fe.storage.estimate()]:[3,2];case 1:return[2,!!(e=t.sent().quota)&&e<Ue()];case 2:return[2,!1]}}))}))}var je=window;function qe(){return e(this,void 0,void 0,(function(){return t(this,(function(e){return l()?[2,Ve()]:[2,We()]}))}))}function Ve(){if(!je.safari)return!1;try{je.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 We(){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 Ke(){try{je.openDatabase(null,null,null,null)}catch(e){return!0}try{return je.localStorage.setItem("test","1"),je.localStorage.removeItem("test"),!1}catch(e){return!0}}var ze=[[function(){return o()},function(){return e(this,void 0,void 0,(function(){return t(this,(function(e){return function(){var e=Fe.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);if(!e)throw"UserAgent is not Google Chrome";return parseInt(e[2],10)}()>=76?[2,Xe()]:[2,new Promise((function(e){He.webkitRequestFileSystem(0,1,(function(){return e(!1)}),(function(){return e(!0)}))}))]}))}))}],[function(){return c()},function(){return e(this,void 0,void 0,(function(){return t(this,(function(e){return q()?[2,qe()]:[2,Ke()]}))}))}],[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 d()||f()},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=ze,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]}}))}))}var Je=window,Ze=document;var $e=window;function Qe(e){if("InvalidAccessError"===e.name){if(/\bfrom\b.*\binsecure\b/i.test(e.message))return{s:-2,v:null};if(/\bdifferent\b.*\borigin\b.*top.level\b.*\bframe\b/i.test(e.message))return{s:-3,v:null}}throw e}function et(e){for(var t=function(e){for(var t,n,r="Unexpected syntax '"+e+"'",i=/^\s*([a-z-]*)(.*)$/i.exec(e),o=i[1]||void 0,a={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(e,t){a[e]=a[e]||[],a[e].push(t)};;){var c=s.exec(i[2]);if(!c)break;var l=c[0];switch(l[0]){case".":u("class",l.slice(1));break;case"#":u("id",l.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l);if(!d)throw new Error(r);u(d[1],null!==(n=null!==(t=d[4])&&void 0!==t?t:d[5])&&void 0!==n?n:"");break;default:throw new Error(r)}}return[o,a]}(e),n=t[0],r=t[1],i=document.createElement(null!=n?n:"div"),o=0,a=Object.keys(r);o<a.length;o++){var s=a[o];i.setAttribute(s,r[s].join(" "))}return i}var tt=document,nt={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'a[title="7naga poker" i]','img[title="ALIENBOLA" i]'],abpvn:["#quangcaomb",".i-said-no-thing-can-stop-me-warning.dark",".quangcao",'[href^="https://r88.vn/"]','[href^="https://zbet.vn/"]'],adBlockFinland:[".mainostila",".sponsorit",".ylamainos",'a[href*="/clickthrgh.asp?"]','a[href^="https://app.readpeak.com/ads"]'],adBlockPersian:[".widget_arvins_ad_randomizer",'a[href^="https://iqoption.com/lp/mobile-partner/?aff="]','a[href*="fastclick.net/ad/"]','TABLE[width="140px"]',".facebook_shows_ad_cale"],adBlockWarningRemoval:["#adblock_message",".adblockInfo",".deadblocker-header-bar",".no-ad-reminder","#AdBlockDialog"],adGuardAnnoyances:['amp-embed[type="zen"]',".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil"],adGuardBase:[".ad-disclaimer-container","#content_ad_container","#ad_wp_base","#adxtop","#bannerfloat22"],adGuardChinese:['a[href*=".123ch.cn"]','a[href*=".acuxrecv.cn"]','a[href*=".bayiyy.com/download."]','a[href*=".quankan.tv"]',"#j-new-ad"],adGuardFrench:["#div_banniere_pub","#sp-entete-pour-la-pub",'a[href*="fducks.com/"]','a[href^="http://promo.vador.com/"]','a[href^="https://syndication.exdynsrv.com/"]'],adGuardGerman:[".banneritemwerbung_head_1",".boxstartwerbung",".werbung3",'a[href^="http://www.firstload.de/index.php?set_lang=de&log="]','a[href^="http://www.sendung-now.de/tick/click.php?id="]'],adGuardJapanese:[".ad-text-blockA01","._popIn_infinite_video","[class^=blogroll_wrapper]",'a[href^="http://ad2.trafficgate.net/"]','a[href^="http://www.rssad.jp/"]'],adGuardMobile:["amp-auto-ads","#mgid_iframe",".amp_ad","amp-sticky-ad",".plugin-blogroll"],adGuardRussian:['a[href^="https://ya-distrib.ru/r/"]','a[href*=".twkv.ru"]','div[data-adv-type="dfp"]',".b-journalpromo-container",'div[id^="AdFox_banner_"]'],adGuardSocial:['a[href^="//www.stumbleupon.com/submit?url="]','a[href^="//telegram.me/share/url?"]',"#___plusone_0","#inlineShare",".popup-social"],adGuardSpanishPortuguese:[".esp_publicidad","#Publicidade","#publiEspecial","#queTooltip",'[href^="http://ads.glispa.com/"]'],adGuardTrackingProtection:['amp-embed[type="taboola"]',"#qoo-counter",'a[href^="http://click.hotlog.ru/"]','a[href^="http://hitcounter.ru/top/stat.php"]','a[href^="http://top.mail.ru/jump"]'],adGuardTurkish:["#backkapat","#reklam",'a[href^="http://adserv.ontek.com.tr/"]','a[href^="http://izlenzi.com/campaign/"]','a[href^="http://www.installads.net/"]'],bulgarian:["#adbody","#newAd","#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:['[lazy-ad="leftthin_banner"]',".smart_ads_bom_title",".slide-advert_float",".six-ads-wrapper",".showcaseAd"],easyListChina:["#fuo_top_float",".kf_qycn_com_cckf_welcomebox",'a[href*=".caohang.com.cn/"]','a[href*=".yuanmengbi.com/"]','.layui-row[style="border-radius:10px;background-color:#ff0000;padding:15px;margin:15px;"]'],easyListCookie:["#cookieBgOverlay","#alerte-cookies","#cookieLY","#dlgCookies",".Section-Cookie"],easyListCzechSlovak:["#onlajny-stickers","#reklamni-box",".reklama-megaboard",".sklik",'[id^="sklikReklama"]'],easyListDutch:["#advertentie","#vipAdmarktBannerBlock",".adstekst",'a[href^="http://adserver.webads.nl/adclick/"]','a[href^="http://www.site-id.nl/servlet/___?"]'],easyListGermany:[".werb_textlink","#ad-qm-sidebar-oben",".adguru-content-html",".nfy-sebo-ad",".textlinkwerbung"],easyListItaly:[".box_adv_annunci",".sb-box-pubbliredazionale",'a[href^="http://affiliazioniads.snai.it/"]','a[href^="https://adserver.html.it/"]','a[href^="https://affiliazioniads.snai.it/"]'],easyListLithuania:[".reklamos_tarpas",'a[href="http://igrovoi-klub.org/fair-land"]','a[href="http://www.moteris.lt/didieji-grozio-pokyciai/"]','img[alt="Dedikuoti.lt serveriai"]','img[alt="Hostingas Serveriai.lt"]'],estonian:[".flex--align-items-center.flex--justify-content-center.flex.section-branding__digipakett-contents",'A[href*="http://pay4results24.eu"]'],fanboyAnnoyances:["#feedback-tab","#ruby-back-top",".feedburnerFeedBlock",".widget-feedburner-counter",'[title="Subscribe to our blog"]'],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag",'div[style*="box-shadow: rgb(136, 136, 136) 0px 0px 12px; color: "]','div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:[".td-tags-and-social-wrapper-box",".twitterContainer",".youtube-social",'a[title^="Like us on Facebook"]','img[alt^="Share on Digg"]'],frellwitSwedish:['a[href*="casinopro.se"][target="_blank"]','a[href*="doktor-se.onelink.me"]',"article.category-samarbete",'img[alt="Leovegas"]',"ul.adsmodern"],greekAdBlock:['A[href*="adman.otenet.gr/click?"]','A[href*="http://axiabanners.exodus.gr/"]','A[href*="http://interactive.forthnet.gr/click?"]',"DIV.agores300","TABLE.advright"],hungarian:['A[href*="ad.eval.hu"]','A[href*="ad.netmedia.hu"]','A[href*="daserver.ultraweb.hu"]',"#cemp_doboz",".optimonk-iframe-container"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container",".cookie-msg-info-container","#cookies-policy-sticky"],icelandicAbp:['A[href^="/framework/resources/forms/ads.aspx"]'],latvian:['a[href="http://www.salidzini.lv/"][style="display: block; width: 120px; height: 40px; overflow: hidden; position: relative;"]','a[href="http://www.salidzini.lv/"][style="display: block; width: 88px; height: 31px; overflow: hidden; position: relative;"]'],listKr:['a[href*="//kingtoon.slnk.kr"]','a[href*="//playdsb.com/kr"]','a[href*="//simba-kor.com"]','div[data-widget_id="ml6EJ074"]',"ins.daum_ddn_area"],listeAr:[".geminiLB1Ad",".right-and-left-sponsers",'a[href*=".aflam.info"]','a[href*="booraq.org"]','a[href*="dubizzle.com/ar/?utm_source="]'],listeFr:['a[href^="http://look.djfiln.com/"]',"#adcontainer_recherche",'a[href*="weborama.fr/fcgi-bin/"]','a[href^="https://secure.securitetotale.fr/"]','div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",'[href^="https://aff.sendhub.pl/"]','a[href^="http://advmanager.techfun.pl/redirect/"]','a[href^="http://www.trizer.pl/?utm_source"]',"div#skapiec_ad"],ro:['a[href^="//afftrk.altex.ro/Counter/Click"','a[href^="/magazin/"','a[href^="https://blackfridaysales.ro/trk/shop/"','a[href^="https://event.2performant.com/events/click"','a[href^="https://l.profitshare.ro/"]'],ruAd:['a[href*="//febrare.ru/"]','a[href*="//utimg.ru/"]','a[href*="://chikidiki.ru"]',"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]","#ads-google-middle_rectangle-group",".ads300s",".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",".ctpl-fullbanner",".j-share-bar-left",".yt.btn-link.btn-md.btn"]},rt=Object.keys(nt);function it(n){var r;return e(this,void 0,void 0,(function(){var e,i,o,a,s,u,c,l,d;return t(this,(function(t){switch(t.label){case 0:for(e=document.createElement("div"),i=[],o={},ot(e),a=0,s=n;a<s.length;a++)u=s[a],c=et(u),ot(l=tt.createElement("div")),l.appendChild(c),e.appendChild(l),i.push(c);t.label=1;case 1:return tt.body?[3,3]:[4,m(100)];case 2:return t.sent(),[3,1];case 3:tt.body.appendChild(e);try{for(d=0;d<n.length;++d)i[d].offsetParent||(o[n[d]]=!0)}finally{null===(r=e.parentNode)||void 0===r||r.removeChild(e)}return[2,o]}}))}))}function ot(e){e.style.setProperty("display","block","important")}function at(e,t){if(e){var n={};if(t)for(var r=0,i=rt;r<i.length;r++){var o=i[r];n[o]={};for(var a=0,s=nt[o];a<s.length;a++){var u=s[a];n[o][u]=!!t[u]}}e({e:18,blocked:n})}}function st(e){return matchMedia("(inverted-colors: "+e+")").matches}function ut(e){return matchMedia("(forced-colors: "+e+")").matches}function ct(e){return matchMedia("(prefers-contrast: "+e+")").matches}function lt(e){return matchMedia("(prefers-reduced-motion: "+e+")").matches}function dt(e){return matchMedia("(dynamic-range: "+e+")").matches}function ft(e){return matchMedia("(prefers-color-scheme: "+e+")").matches}var vt,ht,_t=["","WEBKIT_","MOZ_","O_","MS_"],pt=["ACTIVE_TEXTURE","ALIASED_LINE_WIDTH_RANGE","ALIASED_POINT_SIZE_RANGE","ALPHA_BITS","ARRAY_BUFFER_BINDING","BLEND","BLEND_COLOR","BLEND_DST_ALPHA","BLEND_DST_RGB","BLEND_EQUATION","BLEND_EQUATION_ALPHA","BLEND_EQUATION_RGB","BLEND_SRC_ALPHA","BLEND_SRC_RGB","BLUE_BITS","COLOR_CLEAR_VALUE","COLOR_WRITEMASK","COMPRESSED_TEXTURE_FORMATS","CULL_FACE","CULL_FACE_MODE","CURRENT_PROGRAM","DEPTH_BITS","DEPTH_CLEAR_VALUE","DEPTH_FUNC","DEPTH_RANGE","DEPTH_TEST","DEPTH_WRITEMASK","DITHER","ELEMENT_ARRAY_BUFFER_BINDING","FRAMEBUFFER_BINDING","FRONT_FACE","GENERATE_MIPMAP_HINT","GREEN_BITS","IMPLEMENTATION_COLOR_READ_FORMAT","IMPLEMENTATION_COLOR_READ_TYPE","LINE_WIDTH","MAX_COMBINED_TEXTURE_IMAGE_UNITS","MAX_CUBE_MAP_TEXTURE_SIZE","MAX_FRAGMENT_UNIFORM_VECTORS","MAX_RENDERBUFFER_SIZE","MAX_TEXTURE_IMAGE_UNITS","MAX_TEXTURE_SIZE","MAX_VARYING_VECTORS","MAX_VERTEX_ATTRIBS","MAX_VERTEX_TEXTURE_IMAGE_UNITS","MAX_VERTEX_UNIFORM_VECTORS","MAX_VIEWPORT_DIMS","PACK_ALIGNMENT","POLYGON_OFFSET_FACTOR","POLYGON_OFFSET_FILL","POLYGON_OFFSET_UNITS","RED_BITS","RENDERBUFFER_BINDING","SAMPLE_BUFFERS","SAMPLE_COVERAGE_INVERT","SAMPLE_COVERAGE_VALUE","SAMPLES","SCISSOR_BOX","SCISSOR_TEST","STENCIL_BACK_FAIL","STENCIL_BACK_FUNC","STENCIL_BACK_PASS_DEPTH_FAIL","STENCIL_BACK_PASS_DEPTH_PASS","STENCIL_BACK_REF","STENCIL_BACK_VALUE_MASK","STENCIL_BACK_WRITEMASK","STENCIL_BITS","STENCIL_CLEAR_VALUE","STENCIL_FAIL","STENCIL_FUNC","STENCIL_PASS_DEPTH_FAIL","STENCIL_PASS_DEPTH_PASS","STENCIL_REF","STENCIL_TEST","STENCIL_VALUE_MASK","STENCIL_WRITEMASK","SUBPIXEL_BITS","TEXTURE_BINDING_2D","TEXTURE_BINDING_CUBE_MAP","UNPACK_ALIGNMENT","UNPACK_COLORSPACE_CONVERSION_WEBGL","UNPACK_FLIP_Y_WEBGL","UNPACK_PREMULTIPLY_ALPHA_WEBGL","VIEWPORT"],Et={WEBGL_compressed_texture_s3tc:["COMPRESSED_RGB_S3TC_DXT1_EXT","COMPRESSED_RGBA_S3TC_DXT1_EXT","COMPRESSED_RGBA_S3TC_DXT3_EXT","COMPRESSED_RGBA_S3TC_DXT5_EXT"],WEBGL_compressed_texture_s3tc_srgb:["COMPRESSED_SRGB_S3TC_DXT1_EXT","COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT","COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT","COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT"],WEBGL_compressed_texture_etc:["COMPRESSED_R11_EAC","COMPRESSED_SIGNED_R11_EAC","COMPRESSED_RG11_EAC","COMPRESSED_SIGNED_RG11_EAC","COMPRESSED_RGB8_ETC2","COMPRESSED_RGBA8_ETC2_EAC","COMPRESSED_SRGB8_ETC2","COMPRESSED_SRGB8_ALPHA8_ETC2_EAC","COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2","COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2"],WEBGL_compressed_texture_pvrtc:["COMPRESSED_RGB_PVRTC_4BPPV1_IMG","COMPRESSED_RGBA_PVRTC_4BPPV1_IMG","COMPRESSED_RGB_PVRTC_2BPPV1_IMG","COMPRESSED_RGBA_PVRTC_2BPPV1_IMG"],WEBGL_compressed_texture_etc1:["COMPRESSED_RGB_ETC1_WEBGL"],WEBGL_compressed_texture_atc:["COMPRESSED_RGB_ATC_WEBGL","COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL","COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL"],WEBGL_compressed_texture_astc:["COMPRESSED_RGBA_ASTC_4x4_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR","COMPRESSED_RGBA_ASTC_5x4_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR","COMPRESSED_RGBA_ASTC_5x5_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR","COMPRESSED_RGBA_ASTC_6x5_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR","COMPRESSED_RGBA_ASTC_6x6_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR","COMPRESSED_RGBA_ASTC_8x5_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR","COMPRESSED_RGBA_ASTC_8x6_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR","COMPRESSED_RGBA_ASTC_8x8_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR","COMPRESSED_RGBA_ASTC_10x5_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR","COMPRESSED_RGBA_ASTC_10x6_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR","COMPRESSED_RGBA_ASTC_10x6_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR","COMPRESSED_RGBA_ASTC_10x10_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR","COMPRESSED_RGBA_ASTC_12x10_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR","COMPRESSED_RGBA_ASTC_12x12_KHR","COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR"],ANGLE_instanced_arrays:["VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE"],EXT_blend_minmax:["MIN_EXT","MAX_EXT"],EXT_color_buffer_half_float:["RGBA16F_EXT","RGB16F_EXT","FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT","UNSIGNED_NORMALIZED_EXT"],EXT_disjoint_timer_query:["GPU_DISJOINT_EXT"],EXT_sRGB:["SRGB_EXT","SRGB_ALPHA_EXT","SRGB8_ALPHA8_EXT","FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT"],EXT_texture_filter_anisotropic:["MAX_TEXTURE_MAX_ANISOTROPY_EXT","TEXTURE_MAX_ANISOTROPY_EXT"],OES_standard_derivatives:["FRAGMENT_SHADER_DERIVATIVE_HINT_OES"],OES_texture_half_float:["HALF_FLOAT_OES"],OES_vertex_array_object:["VERTEX_ARRAY_BINDING_OES"],WEBGL_color_buffer_float:["RGBA32F_EXT","RGB32F_EXT","FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT","UNSIGNED_NORMALIZED_EXT"],WEBGL_depth_texture:["UNSIGNED_INT_24_8_WEBGL"],WEBGL_draw_buffers:["COLOR_ATTACHMENT0_WEBGL","COLOR_ATTACHMENT1_WEBGL","COLOR_ATTACHMENT15_WEBGL","DRAW_BUFFER0_WEBGL","DRAW_BUFFER1_WEBGL","DRAW_BUFFER15_WEBGL","MAX_COLOR_ATTACHMENTS_WEBGL","MAX_DRAW_BUFFERS_WEBGL"]};function mt(e,t,n){var r=e.getShaderPrecisionFormat(e[t],e[n]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function gt(e){var t=e.getSupportedExtensions(),n=e.getExtension("WEBGL_debug_renderer_info"),r=e.getContextAttributes(),i=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&i.push(o+"="+r[o]);for(var a=[],s=0;s<pt.length;s++){var u=pt[s],c=e.getParameter(e[u]);a.push(u+"="+c)}for(var l=[],d=Object.keys(vt),f=Object.keys(ht),v=0,h=d;v<h.length;v++)for(var _=h[v],p=0,E=f;p<E.length;p++){var m=E[p],g=mt(e,_,m);l.push(_+"."+m+"="+g.join(","))}for(var b=[],R=Object.keys(Et),S=!1,T=0,A=_t;T<A.length;T++){var w=A[T];if(!S)for(var y in R){var C=R[y],k=Et[C],I=e.getExtension(w+C);if(I){S=!0;for(var P=0;P<k.length;P++){var O=k[P];b.push(O+"="+I[O])}}}}return{version:e.getParameter(e.VERSION),vendor:e.getParameter(e.VENDOR),vendorUnmasked:n&&e.getParameter(n.UNMASKED_VENDOR_WEBGL),renderer:e.getParameter(e.RENDERER),rendererUnmasked:n&&e.getParameter(n.UNMASKED_RENDERER_WEBGL),shadingLanguageVersion:e.getParameter(e.SHADING_LANGUAGE_VERSION),contextAttributes:i.join("&"),parameters:a.join("&"),shaderPrecisions:l.join("&"),extensions:t?t.join(","):"",extensionParameters:b.join(",")}}function bt(e){e.clearColor(0,0,1,1);var t=e.createProgram();if(t){i(0,"attribute vec2 p;uniform float t;void main(){float s=sin(t);float c=cos(t);gl_Position=vec4(p*mat2(c,s,-s,c),1,1);}"),i(1,"void main(){gl_FragColor=vec4(1,0,0,1);}"),e.linkProgram(t),e.useProgram(t),e.enableVertexAttribArray(0);var n=e.getUniformLocation(t,"t"),r=e.createBuffer();e.bindBuffer(34962,r),e.bufferData(34962,new Float32Array([0,1,-1,-1,1,-1]),35044),e.vertexAttribPointer(0,2,5126,!1,0,0),e.clear(16384),e.uniform1f(n,3.65),e.drawArrays(4,0,3)}function i(n,r){var i=e.createShader(35633-n);t&&i&&(e.shaderSource(i,r),e.compileShader(i),e.attachShader(t,i))}}!function(e){e.FRAGMENT_SHADER="FRAGMENT_SHADER",e.VERTEX_SHADER="VERTEX_SHADER"}(vt||(vt={})),function(e){e.LOW_FLOAT="LOW_FLOAT",e.MEDIUM_FLOAT="MEDIUM_FLOAT",e.HIGH_FLOAT="HIGH_FLOAT",e.LOW_INT="LOW_INT",e.MEDIUM_INT="MEDIUM_INT",e.HIGH_INT="HIGH_INT"}(ht||(ht={}));var Rt=function(){return 0},St=Math.acos||Rt,Tt=Math.acosh||Rt,At=Math.asin||Rt,wt=Math.asinh||Rt,yt=Math.atanh||Rt,Ct=Math.atan||Rt,kt=Math.sin||Rt,It=Math.sinh||Rt,Pt=Math.cos||Rt,Ot=Math.cosh||Rt,Lt=Math.tan||Rt,Mt=Math.tanh||Rt,Dt=Math.exp||Rt,Nt=Math.expm1||Rt,Bt=Math.log1p||Rt,xt=function(e){return Math.pow(Math.PI,e)},Gt=function(e){return Math.log(e+Math.sqrt(e*e+1))},Ft=function(e){return Math.log((1+e)/(1-e))/2},Ht=function(e){return Math.exp(e)-1/Math.exp(e)/2},Ut=function(e){return(Math.exp(e)+1/Math.exp(e))/2},Xt=function(e){return Math.exp(e)-1},jt=function(e){return(Math.exp(2*e)-1)/(Math.exp(2*e)+1)},qt=function(e){return Math.log(1+e)};var Vt,Wt={james:[],mary:[{font:"-apple-system-body"}],john:[{fontFamily:"serif"}],patricia:[{fontFamily:"sans-serif"}],robert:[{fontFamily:"monospace"}],jennifer:[{fontSize:"1px"}],michael:[{fontFamily:"system-ui"}]};function Kt(n,r){var a,s;return void 0===r&&(r=4e3),e(this,void 0,void 0,(function(){var e,u,l,d,f;return t(this,(function(t){switch(t.label){case 0:return document.body?[3,2]:[4,m(100)];case 1:return t.sent(),[3,0];case 2:e=document.createElement("iframe"),t.label=3;case 3:return t.trys.push([3,,9,10]),[4,new Promise((function(t,n){e.onload=t,e.onerror=n,e.style.setProperty("display","block","important"),e.style.position="absolute",e.style.visibility="hidden","srcdoc"in e?e.srcdoc='<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">':e.src="about:blank",document.body.appendChild(e)}))];case 4:t.sent(),t.label=5;case 5:return(null===(a=e.contentWindow)||void 0===a?void 0:a.document.body)?[3,7]:[4,m(100)];case 6:return t.sent(),[3,5];case 7:return u=e.contentWindow,l=u.document,(d=l.body).style.width=r+"px",o()?d.style.zoom=""+1/u.devicePixelRatio:c()&&(d.style.zoom="reset"),(f=l.createElement("div")).textContent=i(Array(r/20<<0)).map((function(){return"word"})).join(" "),d.appendChild(f),[4,n(l,d)];case 8:return[2,t.sent()];case 9:return null===(s=e.parentNode)||void 0===s||s.removeChild(e),[7];case 10:return[2]}}))}))}var zt=((Vt={})[0]=function(){var e=screen;if(e.availWidth&&e.availHeight){var t=[0|e.availWidth,0|e.availHeight];return t.sort().reverse(),t}},Vt[1]=function(){var e=(new Date).getFullYear();return Math.max(+new Date(e,0,1).getTimezoneOffset(),+new Date(e,6,1).getTimezoneOffset())},Vt[2]=function(){var e;if(null===(e=De.Intl)||void 0===e?void 0:e.DateTimeFormat)return(new De.Intl.DateTimeFormat).resolvedOptions().timeZone},Vt[3]=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:Ne(t)}},Vt[4]=function(){return void 0!==navigator.webdriver},Vt[5]=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]}}))}))},Vt[6]=function(){var e=xe.documentElement;return"webdriver"in Be||"_Selenium_IDE_Recorder"in Be||"callSelenium"in Be||"_selenium"in Be||"__webdriver_script_fn"in xe||"__driver_evaluate"in xe||"__webdriver_evaluate"in xe||"__selenium_evaluate"in xe||"__fxdriver_evaluate"in xe||"__driver_unwrapped"in xe||"__webdriver_unwrapped"in xe||"__selenium_unwrapped"in xe||"__fxdriver_unwrapped"in xe||"__webdriver_script_func"in xe||null!==e.getAttribute("selenium")||null!==e.getAttribute("webdriver")||null!==e.getAttribute("driver")},Vt[7]=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]}}))}))},Vt[8]=function(){if(!o())return!1;try{if([66,114,97,118,101].map((function(e){return String.fromCharCode(e)})).join("")in Je)return!0;var e=Ze.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),a=0;a<r;a++)i[a]=n.charCodeAt(a);var s=D(i,[73,68,65,84,24]);if(-1===s)return!1;var u=D(i,[73,69,78,68]);return-1!==s&&1321!==i.slice(s+5,u).reduce((function(e,t){return e+t}),0)}catch(c){return!1}},Vt[9]=function(){return e(this,void 0,void 0,(function(){var e,n;return t(this,(function(t){switch(t.label){case 0:if(!o()&&!c())return[2,-2];if(!(e=$e.RTCPeerConnection||$e.webkitRTCPeerConnection))return[2,-3];n=new e({iceServers:[]}),t.label=1;case 1:return t.trys.push([1,,3,4]),[4,new Promise((function(e,t){var r=function(){return e(-1)};n.onicecandidate=function(t){var n=t.candidate;n?n.candidate&&e(n.candidate):r()},n.onicegatheringstatechange=function(){"complete"===n.iceGatheringState&&r()},n.onicecandidateerror=t,n.createDataChannel("test"),function(e,t){try{return e.createOffer(t)}catch(n){if(/\bcreateOffer\b.*(\bcallback\b.*\bnot a function\b|\barguments required\b.*\bpresent\b)/i.test(n.message))return new Promise((function(n,r){e.createOffer(n,r,t)}));throw n}}(n).then((function(e){return n.setLocalDescription(e)}),t),setTimeout((function(){return e(-4)}),500)}))];case 2:return[2,t.sent()];case 3:return n.close(),[7];case 4:return[2]}}))}))},Vt[10]=function(){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:if("function"!=typeof(e=window.ApplePaySession))return[2,{s:-1,v:null}];t.label=1;case 1:return t.trys.push([1,3,,4]),e.canMakePayments()?c()&&!q()?[2,{s:0,v:1}]:[4,Promise.race([e.canMakePaymentsWithActiveCard(""),m(250,!1)])]:[2,{s:0,v:0}];case 2:return[2,{s:0,v:t.sent()?3:2}];case 3:return[2,Qe(t.sent())];case 4:return[2]}}))}))},Vt[11]=function(n){var r=(void 0===n?{}:n).debug;return e(this,void 0,void 0,(function(){var e,n,i;return t(this,(function(t){switch(t.label){case 0:return c()||(s=o(),u=a(),(s||u)&&N(["onorientationchange"in U,"orientation"in U,s&&"SharedWorker"in U,u&&/android/i.test(j.appVersion)])>=2)?[4,it((i=[]).concat.apply(i,rt.map((function(e){return nt[e]}))))]:(at(r,void 0),[2,void 0]);case 1:return e=t.sent(),at(r,e),(n=rt.filter((function(t){var n=nt[t];return N(n.map((function(t){return e[t]})))>.5*n.length}))).sort(),[2,n]}var s,u}))}))},Vt[12]=function(){for(var e=0,t=["rec2020","p3","srgb"];e<t.length;e++){var n=t[e];if(matchMedia("(color-gamut: "+n+")").matches)return n}},Vt[13]=function(){return!!st("inverted")||!st("none")&&void 0},Vt[14]=function(){return!!ut("active")||!ut("none")&&void 0},Vt[15]=function(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=100;++e)if(matchMedia("(max-monochrome: "+e+")").matches)return e;throw new Error("Too high value")}},Vt[16]=function(){return ct("no-preference")?0:ct("high")||ct("more")?1:ct("low")||ct("less")?-1:ct("forced")?10:void 0},Vt[17]=function(){return!!lt("reduce")||!lt("no-preference")&&void 0},Vt[18]=function(){return!!dt("high")||!dt("standard")&&void 0},Vt[19]=v,Vt[20]=function(){return!!ft("dark")||!ft("light")&&void 0},Vt[21]=function(){var e=Date.now();return[e,e-6e4*(new Date).getTimezoneOffset()]},Vt[22]=function(){return{acos:St(.12312423423423424),acosh:Tt(1e308),acoshPf:(e=1e154,Math.log(e+Math.sqrt(e*e-1))),asin:At(.12312423423423424),asinh:wt(1),asinhPf:Gt(1),atanh:yt(.5),atanhPf:Ft(.5),atan:Ct(.5),sin:kt(-1e300),sinh:It(1),sinhPf:Ht(1),cos:Pt(10.000000000123),cosh:Ot(1),coshPf:Ut(1),tan:Lt(-1e300),tanh:Mt(1),tanhPf:jt(1),exp:Dt(1),expm1:Nt(1),expm1Pf:Xt(1),log1p:Bt(10),log1pPf:qt(10),powPI:xt(-100)};var e},Vt[23]=function(){if("performance"in window){for(var e=1,t=1,n=performance.now(),r=n,i=0;i<1e5;i++)if((n=r)<(r=performance.now())){var o=r-n;o>e?o<t&&(t=o):o<e&&(t=e,e=o)}return[e,t]}},Vt[24]=function(){var e,t;return null===(t=null===(e=window.performance)||void 0===e?void 0:e.memory)||void 0===t?void 0:t.jsHeapSizeLimit},Vt[25]=function(){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return e={},[4,Kt((function(t,n){for(var r={},i=0,o=Object.keys(Wt);i<o.length;i++){var a=o[i],s=Wt[a],u=s[0],c=void 0===u?{}:u,l=s[1],d=void 0===l?"mmMwWLliI0fiflO&1":l,f=t.createElement("span");f.textContent=d,f.style.whiteSpace="nowrap";for(var v=0,h=Object.keys(c);v<h.length;v++){var _=h[v],p=c[_];void 0!==p&&(f.style[_]=p)}r[a]=f,n.appendChild(t.createElement("br")),n.appendChild(f)}for(var E=0,m=Object.keys(Wt);E<m.length;E++){var g=r[a=m[E]].getBoundingClientRect();e[a]=[g.width,g.height]}}))];case 1:return t.sent(),[2,[e,!a()]]}}))}))},Vt[26]=function(){var e=document.createElement("canvas");e.width=256,e.height=256;for(var t=["webgl","experimental-webgl","moz-webgl","webkit-3d"],r=void 0,i=0;i<t.length&&!r;i++)try{r=e.getContext(t[i])}catch(a){}if(r){var o=n(n({},gt(r)),{fingerprint:""});return bt(r),o.fingerprint=e.toDataURL(),o}},Vt[27]=function(){if("OffscreenCanvas"in window){var e=new OffscreenCanvas(256,256),t=e.getContext("webgl");if(!t)return Promise.resolve(void 0);var r=n(n({},gt(t)),{fingerprint:""});return bt(t),e.convertToBlob().then((function(e){return Promise.race([new Promise((function(e){return setTimeout((function(){return e("")}),150)})),new Promise((function(t){var n=new FileReader;n.onload=function(e){return e.target&&t(e.target.result)},n.readAsDataURL(e)}))])})).then((function(e){return r.fingerprint=e,r}))}return Promise.resolve(void 0)},Vt);function Yt(e){return h(zt,e,[])}var Jt=document,Zt=location;function $t(e){for(var t=e+"=",n=0,r=Jt.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 Qt(e,t,n,r){var i=e+"="+t,o="expires="+new Date(Date.now()+24*n*60*60*1e3).toUTCString(),a=r?"domain="+r:"";Jt.cookie=[i,"path=/",o,a,"SameSite=Lax"].join("; ")}function en(e,t,n){var r=Zt.hostname;tn(r,(function(t){!function(e,t){Qt(e,"",-1,t)}(e,t)})),tn(r,(function(r){return Qt(e,t,n,r),$t(e)!==t}))&&Qt(e,t,n)}function tn(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 nn(e){return void 0===e&&(e="_vid"),[$t(e),on(e)]}function rn(e,t){void 0===t&&(t="_vid"),en(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 on(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 an(r,i,o,a){var s=this,u=a.token,c=a.region,l=void 0===c?"us":c,d=a.endpoint,f=a.tlsEndpoint,v=a.storageKey,h=a.debug;var _=function(r,i,o,a,c,h,_){return e(s,void 0,void 0,(function(){var e,s,m,g;return t(this,(function(t){switch(t.label){case 0:return[4,Promise.all([p(l,f,a,!!o,_),E(_)])];case 1:return e=t.sent(),s=e[0],m=e[1],[4,Ie(n(n({},s),{token:u,endpoint:ke(l,d),components:m,tag:r,visitorId:nn(v),linkedId:i,extendedResult:c,ipResolution:h}),_)];case 2:return rn((g=t.sent()).visitorId,v),[2,g]}}))}))},p=function(n,r,i,o,a){return e(s,void 0,void 0,(function(){return t(this,(function(e){return o?[2,void 0]:[2,_e(function(e,t){return t||he[e]}(n,r),i,a).then((function(e){return{tls:e}}),(function(e){return{tlsError:e}}))]}))}))},E=function(r){return F(r,(function(){return{e:12}}),(function(e){return{e:13,result:e}}),(function(e){return{e:14,error:e}}),(function(){return e(s,void 0,void 0,(function(){var e,a;return t(this,(function(t){switch(t.label){case 0:return[4,i.get()];case 1:return e=t.sent(),[4,o({debug:r})];case 2:return a=t.sent(),[2,n(n({},e.components),a)]}}))}))}))};return{get:function(e){void 0===e&&(e={});var t=h||e.debug?function(e,t,r){return function(i){return e(n(n({},i),{agentId:t,getCallId:r}))}}(T([h,e.debug&&k()]),r,S(8)):void 0;return F(t,(function(){return{e:3,options:e}}),(function(e){return{e:4,requestId:e.requestId,visitorId:e.visitorId,result:e}}),(function(e){return{e:5,requestId:e.requestId,error:e}}),(function(){var n=e.timeout,r=void 0===n?1e4:n,i=e.tag,o=e.linkedId,a=e.disableTls,s=e.extendedResult,u=e.ipResolution;return Promise.race([g(r).then((function(){throw new Error("Client timeout")})),_(i,o,a,r/2,s,u,t)])}))}}}function sn(n){var r=this,i=S(8);return F(n.debug,(function(){return{e:0,agentId:i,version:p,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,_({delayFallback:n.delayFallback})];case 1:return e=t.sent(),[2,an(i,e,Yt,n)]}}))}))}))}var un="Token required",cn="Token not found",ln="Token expired",dn="Request cannot be parsed",fn="Request failed",vn="Request failed to process",hn="Too many requests, rate limit exceeded",_n="Not available for this origin",pn="Not available with restricted header",En={load:sn,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",ERROR_FORBIDDEN_ORIGIN:"Not available for this origin",ERROR_FORBIDDEN_HEADER:"Not available with restricted header"};export default En;export{dn as ERROR_BAD_REQUEST_FORMAT,pe as ERROR_CLIENT_TIMEOUT,pn as ERROR_FORBIDDEN_HEADER,_n as ERROR_FORBIDDEN_ORIGIN,fn as ERROR_GENERAL_SERVER_FAILURE,me as ERROR_NETWORK_ABORT,Ee as ERROR_NETWORK_CONNECTION,hn as ERROR_RATE_LIMIT,vn as ERROR_SERVER_TIMEOUT,ln as ERROR_TOKEN_EXPIRED,cn as ERROR_TOKEN_INVALID,un as ERROR_TOKEN_MISSING,sn as load,k as makeConsoleDebugger,Y as makeDebugReportBuilder,T as makeMulticastDebugger,oe as makeRemoteDebugger};
{
"name": "@fingerprintjs/fingerprintjs-pro",
"description": "FingerprintJS Pro client agent",
"version": "3.2.3",
"version": "3.3.0-dev.1",
"keywords": [

@@ -38,3 +38,3 @@ "browser",

"dependencies": {
"@fingerprintjs/fingerprintjs": "3.0.5",
"@fingerprintjs/fingerprintjs": "3.1.0-dev.0",
"tslib": "^2.0.1"

@@ -76,2 +76,3 @@ },

"ts-loader": "^8.0.4",
"ts-node": "^9.1.1",
"typescript": "^4.0.3",

@@ -78,0 +79,0 @@ "ua-parser-js": "^0.7.23",

@@ -26,6 +26,9 @@ <p align="center">

function initFingerprintJS() {
FingerprintJS.load({ token: 'your-pro-key' }).then(fp => {
// The FingerprintJS agent is ready.
// Get a visitor identifier when you'd like to.
fp.get().then(result => {
// We recommend to call `load` at application startup.
const fpPromise = FingerprintJS.load({ token: 'your-pro-key' })
// Get a visitor identifier when you need it.
fpPromise
.then(fp => fp.get)
.then(result => {
// This is the visitor identifier:

@@ -35,3 +38,2 @@ const visitorId = result.visitorId;

});
});
}

@@ -59,6 +61,6 @@ </script>

// We recommend to call `load` at application startup.
const fp = await FingerprintJS.load({ token: 'your-pro-key' });
const fpPromise = FingerprintJS.load({ token: 'your-pro-key' });
// The FingerprintJS agent is ready.
// Get a visitor identifier when you'd like to.
// Get a visitor identifier when you need it.
const fp = await fpPromise
const result = await fp.get();

@@ -65,0 +67,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc