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.5.6 to 3.5.7

4

dist/fp.cjs.min.js
/**
* FingerprintJS Pro v3.5.6 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprintjs.com)
* FingerprintJS Pro v3.5.7 - Copyright (c) FingerprintJS, Inc, 2022 (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"),n=require("@fingerprintjs/fingerprintjs");function t(e,n){return new Promise((function(t){return r(t,e,n)}))}function r(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i=Date.now()+n,o=0,a=function(){o=setTimeout((function(){Date.now()<i?a():e.apply(void 0,t)}),i-Date.now())};return a(),function(){return clearTimeout(o)}}function i(e,n,t){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var a,s=!1,u=e,c=0,l=function(){s||a||(c=Date.now(),a=r((function(){s=!0,t.apply(void 0,i)}),u))},f=function(){!s&&a&&(a(),a=void 0,u-=Date.now()-c)};return n&&l(),{start:l,stop:f}}function o(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var o=document,a="visibilitychange",s=function(){return o.hidden?l():c()},u=i(n,!o.hidden,(function(){o.removeEventListener(a,s),e.apply(void 0,t)})),c=u.start,l=u.stop;return o.addEventListener(a,s),function(){o.removeEventListener(a,s),l()}}function a(e,n){return new Promise((function(t){return o(t,e,n)}))}function s(n,t){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,n()];case 1:return[2,e.sent()];case 2:return r=e.sent(),console.error(r),[2,t];case 3:return[2]}}))}))}function u(n,t){var r=this;return new Promise((function(i,o){var a=t(),s=!1;null==n||n.then(i,o).then((function(){return s=!0}));var u=function(n){return e.__awaiter(r,void 0,void 0,(function(){var t,r;return e.__generator(this,(function(e){switch(e.label){case 0:if(n.done)return[2,i(n.value)];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,n.value];case 2:if(t=e.sent(),!s)try{u(a.next(t))}catch(c){o(c)}return[3,4];case 3:if(r=e.sent(),!s)try{u(a.throw(r))}catch(c){o(c)}return[3,4];case 4:return[2]}}))}))};u(a.next())}))}function c(n,t){return e.__awaiter(this,void 0,void 0,(function(){var r,i,o,a;return e.__generator(this,(function(e){switch(e.label){case 0:try{r=t().then((function(e){return i=[!0,e]}),(function(e){return i=[!1,e]}))}catch(s){i=[!1,s]}return a=n.then((function(e){return o=[!0,e]}),(function(e){return o=[!1,e]})),[4,Promise.race([r,a])];case 1:return e.sent(),[2,function(){if(i){if(i[0])return i[1];throw i[1]}if(o){if(o[0])return o[1];throw o[1]}throw new Error("96375")}]}}))}))}function l(n,t){var r;return void 0===t&&(t=!1),e.__assign({name:n.name,message:n.message,stack:t?null===(r=n.stack)||void 0===r?void 0:r.split("\n"):n.stack},n)}function f(){var e=window;try{return e.self!==e.top}catch(n){return!0}}function d(n,t){var r;return e.__generator(this,(function(e){switch(e.label){case 0:r=0,e.label=1;case 1:return[4,Math.random()*Math.min(t,n*Math.pow(2,r))];case 2:e.sent(),e.label=3;case 3:return++r,[3,1];case 4:return[2]}}))}function v(e){return e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",h=g+"+/";function m(e,n){if(0==n.length||n.length>e.length)return-1;for(var t=0;t<e.length;t++){for(var r=0,i=0;i<n.length;i++){if(e[t+i]!==n[i]){r=0;break}r++}if(r==n.length)return t}return-1}function p(e){if("function"==typeof TextDecoder){var n=(new TextDecoder).decode(e);if(n)return n}var t=v(e);return decodeURIComponent(escape(String.fromCharCode.apply(null,t)))}function _(e){return e.reduce((function(e,n){return e+(n?1:0)}),0)}function w(e,n,t){return void 0===t&&(t="..."),e.length<=n?e:""+e.slice(0,Math.max(0,n-t.length))+t}function b(e,n){return(e-n+256)%256}function y(e){for(var n=v(e),t=n.length,r="",i=0;i<t;i+=3)r+=h[n[i]>>2]+h[(3&n[i])<<4|n[i+1]>>4]+h[(15&n[i+1])<<2|n[i+2]>>6]+h[63&n[i+2]];return t%3==2?r.slice(0,-1)+"=":t%3==1?r.slice(0,-2)+"==":r}function R(e){for(var n="",t=0;t<e.length;++t)if(t>0){var r=e[t].toLowerCase();r!==e[t]?n+=" "+r:n+=e[t]}else n+=e[t].toUpperCase();return n}function E(e){return void 0===e?void 0:""+e}function T(e,n){for(var t="",r=0;r<e;r++)t+=n.charAt(Math.random()*n.length);return t}function S(e){return T(e,g)}function I(){return 256*Math.random()|0}function O(e){var n=e.filter((function(e){return!!e}));return n.length?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=function(n){s((function(){return n.apply(void 0,e)}))},i=0,o=n;i<o.length;i++){var a=o[i];r(a)}}:void 0}function k(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"Visitor identifier request try has started";case 19:return"Visitor identifier request try has succeeded";case 20:return"Visitor identifier request try has failed"}}var A=function(e){return void 0===e&&(e="[FingerprintJS Pro] "),function(n){switch(n.e){case 2:case 5:case 8:case 11:case 14:case 17:case 20:console.error(N(e,n));break;case 13:var t=N(e,n),r=n.result;Object.keys(r).some((function(e){return r[e].error}))?console.warn(t):console.log(t);break;default:console.log(N(e,n))}}};function N(n,t){var r=t.e,i=e.__rest(t,["e"]),o=""+n+(new Date).toISOString()+": "+k(r);return Object.keys(i).length&&(o+="\n```\n"+function(e){return JSON.stringify(e,(function(e,n){return n instanceof Error?l(n,!0):n instanceof ArrayBuffer?"(base64) "+y(n):n}),2)}(i)+"\n```"),o}function D(e){void 0===e&&(e="[FingerprintJS Pro] ");var n={};return function(t){switch(t.e){case 15:n[t.getCallId]=t.request;break;case 18:console.log(e+"Visitor id request",n[t.getCallId]);break;case 19:console.log(e+"Visitor id response",t.body);break;case 16:case 17:delete n[t.getCallId]}}}function C(e){var n=e.url,t=e.method,r=void 0===t?"get":t,i=e.body,o=e.headers,a=e.withCredentials,s=void 0!==a&&a,u=e.timeout,c=e.responseFormat,l=e.abort;return new Promise((function(e,t){var a=new XMLHttpRequest;for(var f in a.open(r,n,!0),a.withCredentials=s,a.timeout=void 0===u?0:Math.max(u,1),"binary"===c&&(a.responseType="arraybuffer"),o)a.setRequestHeader(f,o[f]);a.onload=function(){return e(function(e){return{body:e.response,status:e.status,statusText:e.statusText}}(a))},a.ontimeout=function(){return t(P("TimeoutError","The request timed out"))},a.onabort=function(){return t(P("AbortError","The request is aborted"))},a.onerror=function(){return t(P("TypeError",navigator.onLine?"Connection error":"Network offline"))},a.send(function(e){var n,t=function(){try{return new Blob([]),!1}catch(n){return!0}};if(e instanceof ArrayBuffer){if(!t())return new Uint8Array(e)}else if((null===(n=e)||void 0===n?void 0:n.buffer)instanceof ArrayBuffer&&t())return e.buffer;return e}(i)),null==l||l.catch((function(){})).then((function(){a.onabort=null,a.abort()}))}))}function P(e,n){var t=new Error(n);return t.name=e,t}function x(e){var n,t=e.url,r=e.body;try{if(null===(n=navigator.sendBeacon)||void 0===n?void 0:n.call(navigator,t,r))return!0}catch(o){if("Illegal invocation"!==o.message)throw o}var i=new XMLHttpRequest;i.open("POST",t,!function(){var e,n=null===(e=window.event)||void 0===e?void 0:e.type;return"pagehide"===n||"unload"===n}()),r instanceof Blob&&i.setRequestHeader("Content-Type",r.type);try{i.send(r)}catch(a){return!1}return!0}function L(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];e&&s((function(){var r=n.apply(void 0,t);void 0!==r&&e(r)}))}function M(n,t,r,i,o){return e.__awaiter(this,void 0,void 0,(function(){var a,s;return e.__generator(this,(function(e){switch(e.label){case 0:L(n,t),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,o()];case 2:return a=e.sent(),[3,4];case 3:throw s=e.sent(),L(n,i,s),s;case 4:return L(n,r,a),[2,a]}}))}))}function q(){var e=window,n=e.__fpjs_pvid;return e.__fpjs_pvid="string"==typeof n?n:S(10)}function j(n,t){for(var r={},i=0,o=Object.keys(n);i<o.length;i++){var a=o[i];!n[a].error&&t[a]?r[a]=e.__assign(e.__assign({},n[a]),{value:t[a](n[a].value)}):r[a]=n[a]}return r}function U(){var e=window,n=navigator;return _(["maxTouchPoints"in n,"mediaCapabilities"in n,"PointerEvent"in e,"visualViewport"in e,"onafterprint"in e])>=4}function F(){var e=window;return _([!("PushManager"in e),!("AudioBuffer"in e),!("RTCPeerConnection"in e),!("geolocation"in navigator),!("ServiceWorker"in e)])>=3}var V=function(e){return new B(e).addEvent},B=function(){function n(e){var n=this;this.onReportReady=e,this.isStopped=!1,this.pageStartTimestamp=function(){var e,n,t=performance;if(t.timeOrigin){var r=null===(n=null===(e=t.getEntriesByType)||void 0===e?void 0:e.call(t,"navigation"))||void 0===n?void 0:n[0];if(r)return t.timeOrigin+(r.responseStart||r.unloadEventEnd)}return t.timing.domLoading||t.timing.responseStart||t.timing.unloadEventEnd}(),this.events={},this.addEvent=function(e){if(!n.isStopped){var t={time:new Date,type:"agentEvent",event:e};switch(0===e.e&&(t.documentReadyState=document.readyState,t.isPageVisible=Y(),t.isFullscreen=z(),t.network=Q()),n.storeAgentEvent(t),e.e){case 2:n.submitReport(e.agentId,void 0);break;case 4:case 5:n.submitReport(e.agentId,e.getCallId)}}};for(var t=window,r=document,i=[[r,"readystatechange",function(){return n.handleDocumentReadyStateChange()}],[r,"visibilitychange",function(){return n.handleVisibilityChange()}],[r,"pageshow",function(){return n.handlePageTransition(!0)}],[r,"pagehide",function(){return n.handlePageTransition(!1)}],[t,"unload",function(){return n.handlePageUnload()}]],o=0,a=i;o<a.length;o++){var s=a[o],u=s[0],c=s[1],l=s[2];u.addEventListener(c,l)}var f=function(e,n){for(var t=document,r=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],i=0,o=r;i<o.length;i++){var a=o[i];t.addEventListener(a,e,n)}return function(){for(var i=0,o=r;i<o.length;i++){var a=o[i];t.removeEventListener(a,e,n)}}}((function(){return n.handleFullscreenChange()})),d=function(e){var n=navigator.connection;return(null==n?void 0:n.addEventListener)?(n.addEventListener("change",e),function(){n.removeEventListener("change",e)}):(addEventListener("online",e),addEventListener("offline",e),function(){removeEventListener("online",e),removeEventListener("offline",e)})}((function(){return n.handleNetworkConnectionChange()}));this.stop=function(){n.isStopped=!0;for(var e=0,t=i;e<t.length;e++){var r=t[e],o=r[0],a=r[1],s=r[2];o.removeEventListener(a,s)}f(),d()}}return n.prototype.handleDocumentReadyStateChange=function(){this.storeEnvironmentEvent({time:new Date,type:"documentReadyState",state:document.readyState})},n.prototype.handleVisibilityChange=function(){this.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:Y()})},n.prototype.handlePageTransition=function(e){this.storeEnvironmentEvent({time:new Date,type:"pageTransition",isShown:e})},n.prototype.handleFullscreenChange=function(){this.storeEnvironmentEvent({time:new Date,type:"fullscreenToggle",isFullscreen:z()})},n.prototype.handleNetworkConnectionChange=function(){this.storeEnvironmentEvent({time:new Date,type:"networkChange",network:Q()})},n.prototype.handlePageUnload=function(){this.storeEnvironmentEvent({time:new Date,type:"pageUnload"});for(var e=0,n=Object.keys(this.events);e<n.length;e++){var t=n[e],r=this.events[t];if(0===Object.keys(r.getCalls).length)this.submitReport(t,void 0);else for(var i=0,o=Object.keys(r.getCalls);i<o.length;i++){var a=o[i];K(r.getCalls[a])||this.submitReport(t,a)}}this.stop()},n.prototype.storeAgentEvent=function(e){var n=e.event,t=n.agentId;if(this.events[t]||(this.events[t]={commonEvents:[],getCalls:{}}),function(e){return"string"==typeof e.getCallId}(n)){var r=n.getCallId;this.events[t].getCalls[r]||(this.events[t].getCalls[r]=[]),this.events[t].getCalls[r].push(e)}else this.events[t].commonEvents.push(e)},n.prototype.storeEnvironmentEvent=function(e){for(var n=0,t=Object.keys(this.events);n<t.length;n++){var r=t[n];this.events[r].commonEvents.push(e)}},n.prototype.submitReport=function(n,t){var r=function(n,t){for(var r,i,o,a,s,u,c,l,d,v,g=function(e){for(var n={},t=0,r=e;t<r.length;t++){var i=r[t];"agentEvent"===i.type&&(n[i.event.e]=i)}return n}(n),h=(null===(r=n[n.length-1])||void 0===r?void 0:r.time)||new Date,m="null",p=0,_=[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]];p<_.length;p++){var w=_[p],b=w[0],y=w[1];if(g[b]){m=y;break}}return{time:(null===(i=n[n.length-1])||void 0===i?void 0:i.time)||new Date,pageUrl:location.href,pageStartTime:new Date(t),isInIframe:f(),agentVersion:null===(o=g[0])||void 0===o?void 0:o.event.version,userAgent:navigator.userAgent,pageViewId:q(),agentId:null===(a=g[0])||void 0===a?void 0:a.event.agentId,getCallId:null===(s=g[3])||void 0===s?void 0:s.event.getCallId,requestId:null!==(c=null===(u=g[4])||void 0===u?void 0:u.event.result.requestId)&&void 0!==c?c:null===(l=g[5])||void 0===l?void 0:l.event.error.requestId,visitorId:null===(d=g[4])||void 0===d?void 0:d.event.result.visitorId,visitorToken:null===(v=g[16])||void 0===v?void 0:v.event.result[1],identificationState:m,timeBetweenLoadAndGet:G(g[1],g[3]),load:H(h,g[0],g[1],g[2]),get:H(h,g[3],g[4],g[5]),tls:X(H(h,g[6],g[7],g[8]),(function(){var t,r;return e.__assign(e.__assign({},W(n,9,10,11,(null===(t=g[7])||void 0===t?void 0:t.time)||(null===(r=g[8])||void 0===r?void 0:r.time)||h)),{getPhaseDuration:G(g[3],g[7]||g[8],h)})})),fingerprint:X(H(h,g[12],g[13],g[14],(function(e){var n=e.event;return{failedComponents:$(n.result),componentDurations:J(n.result)}})),(function(){return{getPhaseDuration:G(g[3],g[13]||g[14],h)}})),visitorIdRequest:X(H(h,g[15],g[16],g[17]),(function(){var e,t;return W(n,18,19,20,(null===(e=g[16])||void 0===e?void 0:e.time)||(null===(t=g[17])||void 0===t?void 0:t.time)||h)})),events:n}}(function(e,n,t){var r=[];e[n]&&(r.push.apply(r,e[n].commonEvents),void 0!==t&&r.push.apply(r,e[n].getCalls[t]||[]));return r.sort((function(e,n){return e.time.getTime()-n.time.getTime()})),r}(this.events,n,t),this.pageStartTimestamp);try{this.onReportReady(r)}catch(i){console.error(i)}},n}();function G(e,n,t){var r=null==e?void 0:e.time,i=(null==n?void 0:n.time)||t;return r&&i&&i.getTime()-r.getTime()}function K(e){return e.some((function(e){return"agentEvent"===e.type&&(4===e.event.e||5===e.event.e)}))}function H(n,t,r,i,o){if(void 0!==t)return void 0!==r?e.__assign(e.__assign({},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:n.getTime()-t.time.getTime(),state:"incomplete"}}function W(e,n,t,r,i){for(var o=i.getTime(),a=function(e,n){for(var t={},r=0,i=e;r<i.length;r++){var o=i[r];if("agentEvent"===o.type&&-1!==n.indexOf(o.event.e)){var a=o.event;t[a.tryNumber]||(t[a.tryNumber]={}),t[a.tryNumber][a.e]=o}}for(var s=[],u=0,c=Object.keys(t);u<c.length;u++){var l=c[u];s.push(t[l])}return s}(e,[n,t,r]),s={triesCount:0,triesTotalDuration:0,completeTriesCount:0,completeTriesTotalDuration:0},u=0,c=a;u<c.length;u++){var l=c[u],f=l[n],d=l[t]||l[r];if(f){if(f.time.getTime()>=o)break;var v=d&&d.time.getTime()<=o,g=((null==d?void 0:d.time)||i).getTime()-f.time.getTime();s.triesCount++,s.triesTotalDuration+=g,v&&(s.completeTriesCount++,s.completeTriesTotalDuration+=g)}}return s}function X(n,t){return n?e.__assign(e.__assign({},n),t()):void 0}function $(e){for(var n={},t=0,r=Object.keys(e);t<r.length;t++){var i=r[t],o=e[i].error;o&&(n[i]=o)}return n}function J(e){for(var n={},t=0,r=Object.keys(e);t<r.length;t++){var i=r[t];n[i]=e[i].duration}return n}function Y(){return!document.hidden}function z(){return!!n.getFullscreenElement()}function Q(){var e=navigator.connection;return{online:navigator.onLine,downlink:null==e?void 0:e.downlink,downlinkMax:null==e?void 0:e.downlinkMax,effectiveType:null==e?void 0:e.effectiveType,roundTrip:null==e?void 0:e.rtt,saveData:null==e?void 0:e.saveData,type:null==e?void 0:e.type}}var Z=function(n){var t=this,r=n.clientId,i=n.token,o=n.endpoint,a=void 0===o?"https://api.rollbar.com/api/1/item/":o;return new B((function(n){return e.__awaiter(t,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:return t=function(e,n,t,r){return{access_token:t,data:ee(e,n,r)}}(n,r,i),[4,oe(a,t)];case 1:return e.sent(),[2]}}))}))})).addEvent};function ee(n,t,r){var i,o;void 0===r&&(r=[8,4,4,4,12].map((function(e){return T(e,"0123456789abcdef")})).join("-"));var a=ne[n.identificationState],s=a.level,u=a.message;return{environment:t,level:s,timestamp:Math.round(n.time.getTime()/1e3),platform:"browser",framework:"FingerprintJS Pro",language:"javascript",uuid:r,notifier:{name:"FingerprintJS Pro monitoring",version:"3.5.6"},request:{url:n.pageUrl,query_string:(null!==(i=/\?.*$/.exec(n.pageUrl))&&void 0!==i?i:[""])[0],user_ip:"$remote_ip"},client:{javascript:{browser:n.userAgent,code_version:n.agentVersion}},person:void 0===n.visitorId?void 0:{id:"visitorId:"+n.visitorId},body:{telemetry:e.__spreadArrays([{level:"debug",source:"client",timestamp_ms:n.pageStartTime.getTime(),type:"manual",body:{message:"Page starts","~~hack~componentDurations":"success"===(null===(o=n.fingerprint)||void 0===o?void 0:o.state)?ie(n.fingerprint.componentDurations):void 0}}],n.events.map(te)),message:{body:u}},custom:{isInIframe:n.isInIframe,pageViewId:n.pageViewId,agentId:n.agentId,getCallId:n.getCallId,requestId:n.requestId,visitorId:n.visitorId,visitorToken:n.visitorToken,identificationState:n.identificationState,timeBetweenLoadAndGet:n.timeBetweenLoadAndGet,load:n.load,get:n.get,tls:n.tls,fingerprint:re(n.fingerprint),visitorIdRequest:n.visitorIdRequest}}}var ne={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 te(n){var t={type:"manual",level:"debug",source:"client",timestamp_ms:n.time.getTime()};switch(n.type){case"documentReadyState":return e.__assign(e.__assign({},t),{body:{message:'Document ready state becomes "'+n.state+'"'}});case"pageVisibilityToggle":return e.__assign(e.__assign({},t),{body:{message:"Page becomes "+(n.isVisible?"visible (in foreground)":"invisible (in background)")}});case"pageTransition":return e.__assign(e.__assign({},t),{body:{message:n.isShown?"Page is restored from browser history":"Page is about to go to browser history"}});case"fullscreenToggle":return e.__assign(e.__assign({},t),{body:{message:"Programmatic fullscreen "+(n.isFullscreen?"on":"off")}});case"networkChange":return e.__assign(e.__assign({},t),{body:e.__assign(e.__assign({},n.network),{message:"Network connection changes"})});case"pageUnload":return e.__assign(e.__assign({},t),{body:{message:"Page is about to unload (terminate)"}})}var r,i,o,a=n.event,s=function(r,i){void 0===i&&(i="info");for(var o=r,s=(o.e,o.agentId,o.getCallId,e.__rest(o,["e","agentId","getCallId"])),u=e.__assign(e.__assign({},t),{level:i,body:e.__assign({message:k(a.e)},s)}),c=0,l=["documentReadyState","isPageVisible","isFullscreen","network"];c<l.length;c++){var f=l[c];void 0!==n[f]&&(u.body[f]=n[f])}return u};switch(a.e){case 0:a.version;return s(e.__rest(a,["version"]));case 1:case 3:case 4:case 6:case 9:case 12:case 15:case 16:case 18:return s(a);case 2:case 5:case 8:case 11:case 14:case 17:case 20:return s(a,"error");case 7:return s(e.__assign(e.__assign({},a),{result:w(a.result,1e3)}));case 10:return s(e.__assign(e.__assign({},a),{body:w(a.body,1e3)}));case 13:return s(e.__assign(e.__assign({},a),{result:(r=a.result,o="(removed to fit into beacon)",j(r,(i={plugins:function(e){return e&&o},math:function(){return o},fontPreferences:function(){return o}},i.j=function(e){return e&&o},i[9]=function(e){return e&&o},i)))}));case 19:var u=a.body;if(u instanceof ArrayBuffer){u="(base64) "+(u.byteLength>1800?y(new Uint8Array(u,0,1800))+"...":y(u))}return s(e.__assign(e.__assign({},a),{body:u}))}}function re(n){if(!n||"incomplete"===n.state||"fail"===n.state)return n;n.componentDurations;var t=e.__rest(n,["componentDurations"]),r=Object.keys(n.failedComponents),i=r.length?","+r.join(",")+",":void 0;return e.__assign(e.__assign({},t),{failedComponents:i})}function ie(n,t){void 0===t&&(t="_");for(var r=e.__assign({},n),i=0,o=Object.keys(n);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]=n[a]}}return r}function oe(n,r){return e.__awaiter(this,void 0,void 0,(function(){var i,o;return e.__generator(this,(function(e){switch(e.label){case 0:i=function(e){return JSON.stringify(e,(function(e,n){if(n instanceof Error){var t=l(n);return"string"==typeof t.stack&&(t.stack=w(t.stack,1e3)),t}return n}))}(r),o=d(1e3,1e4),e.label=1;case 1:return navigator.onLine&&x({url:n,body:i})?[3,4]:[4,t(o.next().value)];case 2:e.sent(),e.label=3;case 3:return[3,1];case 4:return[2]}}))}))}var ae={us:"use1",eu:"eun1",ap:"aps1"};function se(n,r,i){var o,a=function(n,r,i,o){void 0===i&&(i=1/0);var a=d(300,1e4);return u(null==o?void 0:o.then((function(){}),(function(){})),(function(){var s,u,c;return e.__generator(this,(function(e){switch(e.label){case 0:s=0,e.label=1;case 1:if(!(s<i))return[3,8];u=Date.now(),e.label=2;case 2:return e.trys.push([2,4,,5]),[4,n(s,o)];case 3:return[2,e.sent()];case 4:return c=e.sent(),r(c),[3,5];case 5:return[4,t(u+a.next().value-Date.now())];case 6:e.sent(),e.label=7;case 7:return++s,[3,1];case 8:return[2,void 0]}}))}))}((function(t,r){return function(n,t,r,i,o){return e.__awaiter(this,void 0,void 0,(function(){var a,s;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,M(o,(function(){return{e:9,tryNumber:r,timeout:t}}),(function(e){var n=e.status,t=e.body;return{e:10,tryNumber:r,status:n,body:t}}),(function(e){return{e:11,tryNumber:r,error:e}}),(function(){return C({url:n,timeout:t,abort:i})}))];case 1:return a=e.sent(),[3,3];case 2:switch((s=e.sent()).name){case"AbortError":throw ue(s.message,-2);case"TimeoutError":throw ue(s.message,-3);case"TypeError":throw ue(s.message,-4)}throw s;case 3:if(200===a.status)return[2,a.body];throw ue(w(a.status+": "+a.body,255),-5)}}))}))}(n,5e3,t,r,i)}),(function(e){return o=e}),10,r);return a.catch((function(){})),function(e){return void 0===e&&(e=new Promise((function(){}))),Promise.race([e.then((function(){}),(function(){})),a]).then((function(e){if(void 0!==e)return e;throw o||ue("Timeout",-3)}))}}function ue(e,n){var t=new Error(e);return t.__="slt",t.s=n,t}function ce(t){var r,i=t.components,o=t.customComponent,a=t.apiKey,s=t.visitorToken,u=t.tls,c=t.tag,l=t.extendedResult,f=t.linkedId,d=t.algorithm;return(r={}).c=a,r.url=location.href,r.t=function(e){if(e&&"object"==typeof e)return e;if(null==e)return;return{tag:e}}(c),r.cbd=l?1:void 0,r.lid=f,r.cr=document.referrer||void 0,r.a=d,r.s1=ge(i.osCpu,-1),r.s2=de(i.languages),r.s3=de(i.colorDepth),r.s4=ge(i.deviceMemory,-1),r.s5=le(i.screenResolution,(function(e){return{s:0,v:e.map((function(e){return null===e?-1:e}))}})),r.s6=le(i[5],(function(e){return{s:0,v:e.map((function(e){return null===e?-1:e}))}})),r.s7=ge(i.hardwareConcurrency,-1),r.s8=he(i[6]),r.s9=de(i.timezone),r.s10=de(i.sessionStorage),r.s11=de(i.localStorage),r.s12=ge(i.indexedDB,-1),r.s13=de(i.openDatabase),r.s14=ge(i.cpuClass,-1),r.s15=de(i.platform),r.s16=ge(i.plugins,-1),r.s17=le(i.canvas,(function(t){return{s:0,v:e.__assign(e.__assign({},t),{geometry:n.murmurX64Hash128(t.geometry),text:n.murmurX64Hash128(t.text)})}})),r.s18=he(i[7]),r.s19=de(i.touchSupport),r.s20=de(i.fonts),r.s21=le(i.audio,(function(e){return-1===e||-2===e||-3===e?{s:e,v:null}:{s:0,v:e}})),r.s22=ge(i[10],-1),r.s24=de(i[31]),r.s26=he(i[8]),r.s27=de(i.vendor),r.s28=de(i.vendorFlavors),r.s30=ge(i[11],-1),r.s31=de(i[4]),r.s32=de(i.cookiesEnabled),r.s33=de(i[12]),r.s34=ve(i[0]),r.s35=ve(i[3]),r.s36=ge(i.domBlockers,-1),r.s37=ge(i.colorGamut,-1),r.s38=ge(i.contrast,-1),r.s39=ge(i.forcedColors,-1),r.s40=ge(i.hdr,-1),r.s41=ge(i.invertedColors,-1),r.s42=ge(i.monochrome,-1),r.s43=ge(i.reducedMotion,-1),r.s44=ge(i[13],-1),r.s45=de(i[14]),r.s46=le(i.math,(function(e){return{s:0,v:n.murmurX64Hash128(Object.keys(e).map((function(n){return n+"="+e[n]})).join(","))}})),r.s47=le(i.j,(function(t){return{s:t?0:-1,v:t?e.__assign(e.__assign({},t),{contextAttributes:n.murmurX64Hash128(t.contextAttributes),parameters:n.murmurX64Hash128(t.parameters),shaderPrecisions:n.murmurX64Hash128(t.shaderPrecisions),extensions:n.murmurX64Hash128(t.extensions),extensionParameters:n.murmurX64Hash128(t.extensionParameters),fingerprint:n.murmurX64Hash128(t.fingerprint)}):null}})),r.s48=de(i[15]),r.s49=ge(i[16],-1),r.s50=ge(i[17],-1),r.s51=de(i.fontPreferences),r.s52=le(i[2],(function(e){return{s:"number"==typeof e?e:e.length?0:1,v:"number"==typeof e?"":n.murmurX64Hash128(JSON.stringify(e))}})),r.s53=ve(i[18]),r.s54=he(i[1]),r.s55=function(e){var n=e[0],t=e[1];if(void 0!==n&&void 0!==t)return{s:0,v:n||t};if(void 0!==n)return{s:1,v:n};if(void 0!==t)return{s:2,v:t};return{s:-1,v:null}}(s),r.s56=function(e){if(!e)return{s:-1,v:null};if(e.error){var n=e.error;return function(e){return"slt"===e.__}(n)?{s:n.s,v:null}:{e:n.message}}return{s:0,v:e.value}}(u),r.s57=ge(i[19],-1),r.s58=ge(i[9],-1),r.s59=de(i[20]),r.s60=de(i[21]),r.s61=de(i[22]),r.s62=de(i[23]),r.s63=de(i[24]),r.s64=de(i[25]),r.s65=de(i[26]),r.s66=ge(i[27],-1),r.s67=o?{s:0,v:o}:{s:-1,v:null},r.s68=de(i[28]),r.s69=ve(i[29]),r.s71=de(i[30]),r.s72=ge(i[32],-1),r}function le(e,n){return e.error?{e:fe(e.error)}:n(e.value)}function fe(e){var n;try{n=""+e.message,"name"in e&&(n=e.name+": "+n)}catch(e){n="Code 3017: "+e.name+": "+e.message}return w(n,500)}function de(e){return le(e,(function(e){return{s:0,v:e}}))}function ve(e){return le(e,(function(e){return e}))}function ge(e,n){return le(e,(function(e){return{s:null==e?n:0,v:null!=e?e:null}}))}function he(e){return le(e,(function(e){return"number"==typeof e?{s:e,v:null}:{s:0,v:e}}))}var me=R("WrongRegion"),pe=R("SubscriptionNotActive"),_e=R("UnsupportedVersion");function we(n,t){var r=n.bodyData;return void 0===r?Ie(n):function(e){return e instanceof Object&&"2"===e.v&&e.products instanceof Object}(r)?function(n,t){var r=n.notifications,i=n.requestId,o=n.error,a=n.products;if(Te(r),o)return be(o,i,t);var s=a.identification;if(!s)throw new Error("There is no identification result in the response");if(Te(s.notifications),s.error)return be(s.error,i,t);return[e.__assign({requestId:i},s.data.result),s.data.visitorToken]}(r,t):Ie(n)}function be(e,n,t){switch(e.code){case"NotAvailableForCrawlBots":return Re(n,!0,t);case"NotAvailableWithoutUA":return Re(n,void 0,t);case"Failed":case"RequestTimeout":return Ee(ye(e),n,e);default:throw Ee(ye(e),n,e)}}function ye(e){var n,t=e.code,r=e.message;return void 0===t?r:null!==(n=function(e){switch(e){case"TokenRequired":return"Token required";case"TokenNotFound":return"Token not found";case"TokenExpired":return"Token expired";case"RequestCannotBeParsed":return"Request cannot be parsed";case"Failed":return"Request failed";case"RequestTimeout":return"Request failed to process";case"TooManyRequests":return"Too many requests, rate limit exceeded";case"OriginNotAvailable":return"Not available for this origin";case"HeaderRestricted":return"Not available with restricted header";case"NotAvailableForCrawlBots":return"Not available for crawl bots";case"NotAvailableWithoutUA":return"Not available when User-Agent is unspecified"}}(t))&&void 0!==n?n:R(t)}function Re(n,t,r){var i={requestId:n,visitorFound:!1,visitorId:"",confidence:{score:.9,comment:"The real score is unknown"}};if(!r)return[i];var o="n/a",a=e.__assign(e.__assign({},i),{bot:{probability:1},incognito:!1,browserName:o,browserVersion:o,device:o,ip:o,os:o,osVersion:o});return void 0!==t&&(a.bot.safe=t),[a]}function Ee(e,n,t){var r=new Error(e);return void 0!==n&&(r.requestId=n),void 0!==t&&(r.raw=t),r}function Te(e){null==e||e.forEach(Se)}function Se(e){var n=e.level,t=e.message;"error"===n?console.error(t):"warning"===n?console.warn(t):console.log(t)}function Ie(e){var n=Ee("Response cannot be parsed",void 0,{httpStatusCode:e.status,bodyBase64:y(e.body)});if(e.status>=500)return n;throw n}function Oe(e,n,t,r,i){void 0===i&&(i=I);var o=i()%(t+1),a=function(e){if("function"==typeof TextEncoder)return(new TextEncoder).encode(e);for(var n=unescape(encodeURI(e)),t=new Uint8Array(n.length),r=0;r<n.length;++r)t[r]=n.charCodeAt(r);return t}(JSON.stringify(e)),s=1+n.length+1+o+r+a.length,u=new ArrayBuffer(s),c=new Uint8Array(u),l=0,f=i();c[l++]=f;for(var d=0,v=n;d<v.length;d++){var g=v[d];c[l++]=f+g}c[l++]=f+o;for(var h=0;h<o;++h)c[l++]=i();var m=new Uint8Array(r);for(h=0;h<r;++h)m[h]=i(),c[l++]=m[h];for(h=0;h<a.length;++h)c[l++]=a[h]^m[h%r];return u}function ke(e,n,t){var r=function(){throw new Error("Invalid data")},i=v(e);i.length<n.length+2&&r();for(var o=0;o<n.length;++o)b(i[1+o],i[0])!==n[o]&&r();var a=1+n.length,s=b(i[a],i[0]);i.length<a+1+s+t&&r();var u=a+1+s,c=u+t,l=new Uint8Array(i.length-c);for(o=0;o<l.length;++o)l[o]=i[c+o]^i[u+o%t];return JSON.parse(p(l))}var Ae=[3,7];function Ne(n){return e.__awaiter(this,void 0,void 0,(function(){var t,r,i;return e.__generator(this,(function(o){switch(o.label){case 0:return[4,C(e.__assign(e.__assign({},n),{body:(s=n.body,Oe(s,Ae,3,7)),responseFormat:"binary"}))];case 1:t=o.sent();try{a=t.body,r=ke(a,Ae,7),i=!0}catch(u){try{r=JSON.parse(p(t.body)),i=!1}catch(c){}}return[2,e.__assign(e.__assign({},t),{bodyData:r,isSecret:i})]}var a,s}))}))}function De(e,n){if(n)return n;var t="api.fpjs.io";return"us"!==e&&(t=e+"."+t),"https://"+t}function Ce(n,r,i){var o=n.endpoint,a=n.extendedResult,s=void 0!==a&&a,c=e.__rest(n,["endpoint","extendedResult"]);return e.__awaiter(this,void 0,void 0,(function(){var n,a,l;return e.__generator(this,(function(f){switch(f.label){case 0:return n=(v=o)+(-1===v.indexOf("?")?"?":"&")+"ci=js/"+encodeURIComponent("3.5.6"),a=ce(e.__assign({extendedResult:s},c)),l=0,[4,M(i,(function(){return{e:15,endpoint:n,request:a}}),(function(e){return{e:16,result:e}}),(function(e){return{e:17,error:e}}),(function(){return function(n,r){var i,o=d(300,1e4);return u(null==r?void 0:r.catch((function(e){i||(i=e)})).then((function(){throw i})),(function(){var a,s,u;return e.__generator(this,(function(e){switch(e.label){case 0:return a=Date.now(),[4,n(r)];case 1:return(s=e.sent())instanceof Error?(i=s,u=o.next().value,[4,t(a+u-Date.now())]):[2,s];case 2:e.sent(),e.label=3;case 3:return[3,0];case 4:return[2]}}))}))}((function(t){return function(n,t,r,i,o,a){return e.__awaiter(this,void 0,void 0,(function(){var s,u;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,M(a,(function(){return{e:18,tryNumber:i}}),(function(e){var n=e.status,t=e.body,r=e.bodyData,o=e.isSecret;return{e:19,tryNumber:i,status:n,body:null!=r?r:t,isSecret:o}}),(function(e){return{e:20,tryNumber:i,error:e}}),(function(){return Ne({url:n,method:"post",body:t,headers:{"Content-Type":"text/plain"},withCredentials:!0,abort:o})}))];case 1:return s=e.sent(),[3,3];case 2:return u=e.sent(),[2,new Error("AbortError"===u.name?"Network request aborted":"Network connection error")];case 3:return[2,we(s,r)]}}))}))}(n,a,s,l++,t,i)}),r)}))];case 1:return[2,f.sent()]}var v}))}))}function Pe(){var e,n,t=xe();return(null===(n=null===(e=window[t[0]])||void 0===e?void 0:e[t[1]])||void 0===n?void 0:n[t[2]])||1073741824}function xe(){return ke(new Uint32Array([1238629110,448276002,3812774028,808844344,1040086494,3917076003,2006609522,3391962601,1618783843,902064594,3846817827,1945380650,2587245025,908308022,938305751,2922813991,1910122279,3709215973,809499767,66414809,3983071030,916072247,3711377838,822474088,300514777,4182498348,953759295,3408360096,591258990,229539788]),[],5)}function Le(){var e,n,t=je();try{n=f()?null===(e=window.top)||void 0===e?void 0:e[t[0]]:window[t[0]]}catch(r){if("SecurityError"===r.name)return!1;throw r}if(!n)return!1;try{n[t[1]][t[2]](t[3],t[4],{},(function(){}))}catch(r){return!new RegExp(t[5]).test(r)}return!1}function Me(){return e.__awaiter(this,void 0,void 0,(function(){var n,r,i;return e.__generator(this,(function(e){switch(e.label){case 0:n=document,r=je(),(i=n.createElement("iframe")).style.display="none",e.label=1;case 1:return n.body?[3,3]:[4,t(50)];case 2:return e.sent(),[3,1];case 3:return e.trys.push([3,,5,6]),n.body.appendChild(i),[4,Promise.race([t(20,!1),new Promise((function(e){i.contentWindow?i.contentWindow[r[6]].addEventListener("error",(function(){return e(!0)})):e(!1)}))])];case 4:return[2,e.sent()];case 5:return i.remove(),[7];case 6:return[2]}}))}))}function qe(){var e=window.openDatabase,n=window.localStorage;try{e(null,null,null,null)}catch(t){return!0}try{return n.setItem("test","1"),n.removeItem("test"),!1}catch(t){return!0}}function je(){return ke(new Uint32Array([571803394,2333197341,667974149,459532809,2807590137,1996360231,241878290,3893584866,1793199716,1479125268,4262158585,1442777440,325646623,3826480888,665278571,175243026,2757050360,1760166496,1415636746,2836884200,2012960809,241499411,2840995822,1912086370,1482750223,4212860839,1726092917,359464731,3894101733,1487478637]),[],3)}var Ue=[[function(){return n.isChromium()},function(){return _(["ClipboardItem"in(n=window),"PerformanceEventTiming"in n,"RTCSctpTransport"in n])>=2?function(){return e.__awaiter(this,void 0,void 0,(function(){var n,t,r,i,o;return e.__generator(this,(function(e){switch(e.label){case 0:return n=xe(),t=navigator,r=t[n[3]],(i=t[n[4]])?[4,new Promise((function(e){i[n[5]]((function(n,t){return e(t)}))}))]:[3,2];case 1:return o=e.sent(),[3,4];case 2:return(null==r?void 0:r[n[6]])?[4,r[n[6]]().then((function(e){return e.quota}))]:[3,4];case 3:o=e.sent(),e.label=4;case 4:return o?[2,o<Pe()]:[2,!1]}}))}))}():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=window.webkitRequestFileSystem)?[4,new Promise((function(e){n(0,1,(function(){return e(!1)}),(function(){return e(!0)}))}))]:[2,!1];case 1:return[2,e.sent()]}}))}))}();var n}],[function(){return n.isWebKit()},function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return U()?n.isDesktopSafari()?[2,Le()]:[2,Me()]:[2,qe()]}))}))}],[function(){return n.isGecko()},function(){return new Promise((function(e){try{var n=indexedDB.open("test");n.onerror=function(){return e(!0)},n.onsuccess=function(){return e(!1)}}catch(t){return e(!0)}}))}],[function(){return n.isTrident()||n.isEdgeHTML()},function(){try{if(!window.indexedDB)return!0}catch(e){return!0}return!1}]];function Fe(n){var t=n.storageKeyPrefix;return e.__awaiter(this,void 0,void 0,(function(){var n,r,i;return e.__generator(this,(function(e){switch(e.label){case 0:return void 0!==(r=function(e){try{var n=localStorage.getItem(e);if(!n)return;return"1"===n}catch(t){return}}(n=t+"_i"))?[2,r]:[4,Ve()];case 1:return i=e.sent(),function(e,n){try{localStorage.setItem(e,n?"1":"0")}catch(t){}}(n,i),[2,i]}}))}))}function Ve(){return e.__awaiter(this,void 0,void 0,(function(){var n,t,r,i,o;return e.__generator(this,(function(e){switch(e.label){case 0:n=0,t=Ue,e.label=1;case 1:return n<t.length?(r=t[n],i=r[0],o=r[1],i()?[4,o()]:[3,3]):[3,4];case 2:return[2,e.sent()];case 3:return n++,[3,1];case 4:return[2,!1]}}))}))}function Be(){var e=window;if(!n.isChromium())return!1;try{if([66,114,97,118,101].map((function(e){return String.fromCharCode(e)})).join("")in e)return!0;var t=document.createElement("canvas");t.width=4,t.height=4,t.style.display="inline";var r=t.toDataURL();if(""===r)return!0;for(var i=window.atob(r.split(",")[1]),o=i.length,a=new Uint8Array(o),s=0;s<o;s++)a[s]=i.charCodeAt(s);var u=m(a,[73,68,65,84,24]);if(-1===u)return!1;var c=m(a,[73,69,78,68]);return-1!==c&&1321!==a.slice(u+5,c).reduce((function(e,n){return e+n}),0)}catch(l){return!1}}function Ge(){return e.__awaiter(this,void 0,void 0,(function(){var n,t;return e.__generator(this,(function(r){switch(r.label){case 0:return n=[],[4,c(a(2e3,-4),Ke.bind(null,(function(e){return n.push(e)})))];case 1:return t=r.sent(),[2,function(){var r=t();return 0===r||-4===r?{s:r,v:e.__spreadArrays(n)}:{s:r,v:null}}]}}))}))}function Ke(t){return e.__awaiter(this,void 0,void 0,(function(){var r,i,a;return e.__generator(this,(function(e){switch(e.label){case 0:if(r=window,!(i=r.RTCPeerConnection||r.webkitRTCPeerConnection))return[2,-3];try{a=new i({iceServers:ke(new Uint32Array([1116284708,2807606666,1856165634,1993636598,3410021538,3195192872,1656883084,2598385300,3564798284,1087152758,1841329857,3355624888,3127755894,1804885912,4294258839]),[],7).map((function(e){return{urls:"stun:"+e}}))})}catch(s){if("NotSupportedError"===s.name)return[2,-6];throw s}e.label=1;case 1:return e.trys.push([1,,3,4]),[4,new Promise((function(e,r){var i,u=!1;a.onicecandidate=function(n){var r=n.candidate;if(!r)return e(0);var i=r.candidate;i&&(t(i),!u&&/ typ [sp]rflx /.test(i)&&(u=!0,o(e,10,0)))},a.onicegatheringstatechange=function(){"complete"===a.iceGatheringState&&e(0)};try{null===(i=a.createDataChannel)||void 0===i||i.call(a,"test")}catch(s){return void("NotSupportedError"===s.name?e(-7):r(s))}var c=function(e,n){try{return e.createOffer(n)}catch(s){if(/\bcreateOffer\b.*(\bcallback\b.*\bnot a function\b|\barguments required\b.*\bpresent\b)/i.test(s.message))return new Promise((function(t,r){e.createOffer(t,r,n)}));throw s}}(a,n.isEdgeHTML()?{offerToReceiveAudio:!0}:void 0);void 0===c?e(-8):c.then((function(e){return a.setLocalDescription(e)}),r)}))];case 2:return[2,e.sent()];case 3:try{a.close()}catch(u){}return[7];case 4:return[2]}}))}))}function He(){return e.__awaiter(this,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:if("function"!=typeof(t=window.ApplePaySession))return[2,{s:-1,v:null}];e.label=1;case 1:return e.trys.push([1,4,,5]),t.canMakePayments()?n.isWebKit()&&!U()?[2,{s:0,v:1}]:[4,new Promise((function(e){return setTimeout(e,0)}))]:[2,{s:0,v:0}];case 2:return e.sent(),[4,Promise.race([t.canMakePaymentsWithActiveCard(""),a(100,!1)])];case 3:return[2,{s:0,v:e.sent()?3:2}];case 4:return[2,We(e.sent())];case 5:return[2]}}))}))}function We(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 Xe(){return!!$e("dark")||!$e("light")&&void 0}function $e(e){return matchMedia("(prefers-color-scheme: "+e+")").matches}function Je(){var e=Date.now();return[Ye(e),Ye(e-6e4*(new Date).getTimezoneOffset())]}function Ye(e){var n=Number(e);return isNaN(n)?-1:n}function ze(){var e=window.performance;if(null==e?void 0:e.now){for(var n=1,t=1,r=e.now(),i=r,o=0;o<5e4;o++)if((r=i)<(i=e.now())){var a=i-r;a>n?a<t&&(t=a):a<n&&(t=n,n=a)}return[n,t]}}function Qe(){var e,n;return null===(n=null===(e=window.performance)||void 0===e?void 0:e.memory)||void 0===n?void 0:n.jsHeapSizeLimit}var Ze=["MAX_TEXTURE_MAX_ANISOTROPY_EXT","FRAGMENT_SHADER_DERIVATIVE_HINT_OES","MAX_COLOR_ATTACHMENTS_WEBGL","MAX_DRAW_BUFFERS_WEBGL","DRAW_BUFFER0_WEBGL","DRAW_BUFFER1_WEBGL","VERTEX_ARRAY_BINDING_OES","TIMESTAMP_EXT","GPU_DISJOINT_EXT","MAX_VIEWS_OVR"],en=[10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32926,32928,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938],nn=[32926,32928],tn=["FRAGMENT_SHADER","VERTEX_SHADER"],rn=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"];function on(e,n,t){var r=e.getShaderPrecisionFormat(e[n],e[t]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function an(e){return"string"==typeof e&&!e.match(/[^A-Z0-9_x]/)}function sn(e){return Object.keys(e.__proto__).filter(an)}function un(){for(var t=document.createElement("canvas"),r=["webgl","experimental-webgl"],i=void 0,o=0;o<r.length&&!i;o++)try{i=t.getContext(r[o])}catch(s){}if(i){var a=e.__assign(e.__assign({},function(e){var t,r,i,o,a,s,u=e.getSupportedExtensions(),c=e.getExtension("WEBGL_debug_renderer_info"),l=e.getContextAttributes(),f=[],d=[],v=[],g=[];for(var h in l)Object.prototype.hasOwnProperty.call(l,h)&&f.push(h+"="+l[h]);for(var m=sn(e),p=n.isTrident(),_=0,w=m;_<w.length;_++){var b=e[k=w[_]];if(en.indexOf(b)>-1){var y=p&&-1===nn.indexOf(b)?e.getParameter(b):null;d.push(k+"("+b+")="+y)}else d.push(k+"="+b)}if(u)for(var R=0,E=u;R<E.length;R++){var T=E[R],S=e.getExtension(T);if(S)for(var I=0,O=sn(S);I<O.length;I++){var k;b=S[k=O[I]],Ze.indexOf(k)>0?v.push(k+"("+b+")="+e.getParameter(b)):v.push(k+"="+b)}}for(var A=0,N=tn;A<N.length;A++)for(var D=N[A],C=0,P=rn;C<P.length;C++){var x=P[C],L=on(e,D,x);g.push(D+"."+x+"="+L.join(","))}return v.sort(),d.sort(),{version:(null===(t=e.getParameter(e.VERSION))||void 0===t?void 0:t.toString())||"",vendor:(null===(r=e.getParameter(e.VENDOR))||void 0===r?void 0:r.toString())||"",vendorUnmasked:c?null===(i=e.getParameter(c.UNMASKED_VENDOR_WEBGL))||void 0===i?void 0:i.toString():"",renderer:(null===(o=e.getParameter(e.RENDERER))||void 0===o?void 0:o.toString())||"",rendererUnmasked:c?null===(a=e.getParameter(c.UNMASKED_RENDERER_WEBGL))||void 0===a?void 0:a.toString():"",shadingLanguageVersion:(null===(s=e.getParameter(e.SHADING_LANGUAGE_VERSION))||void 0===s?void 0:s.toString())||"",contextAttributes:f.join("&"),parameters:d.join("&"),shaderPrecisions:g.join("&"),extensions:u?u.join(","):"",extensionParameters:v.join(",")}}(i)),{fingerprint:""});return function(e){e.clearColor(0,0,1,1);var n=e.createProgram();if(n){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(n),e.useProgram(n),e.enableVertexAttribArray(0);var t=e.getUniformLocation(n,"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(t,3.65),e.drawArrays(4,0,3)}function i(t,r){var i=e.createShader(35633-t);n&&i&&(e.shaderSource(i,r),e.compileShader(i),e.attachShader(n,i))}}(i),a.fingerprint=t.toDataURL(),a}}function cn(){var t=window.speechSynthesis;if("function"!=typeof(null==t?void 0:t.getVoices))return-1;var i=function(){return t.getVoices()};return!t.addEventListener||n.isGecko()&&F()?ln(i()):function(n){return e.__awaiter(this,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,,2,3]),[4,new Promise((function(e,i){var a,s=function(){n.getVoices().length?(null==a||a(),a=r(e,50)):a||(a=o(e,600))};t=function(){try{s()}catch(e){i(e)}},s(),n.addEventListener("voiceschanged",t)}))];case 1:return[2,e.sent()];case 2:return t&&n.removeEventListener("voiceschanged",t),[7];case 3:return[2]}}))}))}(t).then((function(){return function(){var e=i();return e.length?ln(e):-2}}))}function ln(e){var n=function(e){return e.replace(/([,\\])/g,"\\$1")};return e.map((function(e){return[n(e.voiceURI),n(e.name),n(e.lang),e.localService?"1":"0",e.default?"1":"0"].join(",")})).sort()}function fn(){return{s:n.isWebKit()&&!n.isDesktopSafari()?U()?0:1:2,v:[(typeof SourceBuffer).slice(0,3),(typeof SourceBufferList).slice(0,3)]}}var dn={m:["$$s-macbook-pro","$$s-macbook-air","$$s-mac-mini"],i:["$$s-iphone"]},vn={m:["macbook-pro-$$","macbook-air-$$","mac-mini-$$"],i:["iphone-$$"]},gn={us:["james","mary","john","patricia","robert","jennifer","michael","linda","william","elizabeth","david","barbara","richard","susan","joseph","jessica","thomas","sarah","charles","karen","christopher","nancy","daniel","lisa","matthew","margaret","anthony","betty","donald","sandra"],gb:["oliver","george","noah","arthur","harry","leo","muhammad","jack","charlie","oscar","jacob","henry","thomas","joshua","william","olivia","amelia","isla","ava","mia","isabella","sophia","grace","lily","freya","emily","ivy","ella","rosie","charlotte"],ru:["aleksandr","sergej","vladimir","elena","tatana","andrej","aleksej","olga","nikolaj","natala","anna","ivan","dmitrij","irina","maria","mihail","svetlana","ekaterina","evgenij","viktor","anastasia","urij","ulia","valentin","roman","igor","anatolij","oleg","pavel","maksim"]},hn={m:["macbook-pro","macbook-air","mac-mini","mac-pro"],i:["iphone","iphone-2"]};function mn(n){return e.__awaiter(this,void 0,void 0,(function(){var t,r,i,a,s,u,c,l,f=this;return e.__generator(this,(function(d){switch(d.label){case 0:if(!(t=window.RTCPeerConnection))return[2,-5];r=Math.random().toString(),i=new Map,s="candidate:0 1 udp 2113937151 $ad $pt typ host generation 0 ufrag "+(a="ABCD")+" network-cost 999",u=new t({iceTransportPolicy:"all"}),c=u.createDataChannel(r),l=0,d.label=1;case 1:return d.trys.push([1,,3,4]),[4,new Promise((function(t,r){o((function(){return t(-4)}),1e3),u.oniceconnectionstatechange=function(){"checking"===u.iceConnectionState&&(l=setInterval((function(){return e.__awaiter(f,void 0,void 0,(function(){var n,r;return e.__generator(this,(function(e){switch(e.label){case 0:return"checking"!==u.iceConnectionState?[2,t([])]:[4,u.getStats()];case 1:return n=e.sent(),r=[],n.forEach((function(e){if("remote-candidate"===e.type){var n=i.get(e.port);r.push(n)}})),r.length>0&&t(r),[2]}}))}))}),30))},u.createOffer().then((function(e){var r=e.sdp;if(!r)return t(-5);for(var o=[],c=0;c<n.length;c++){var l=n[c],f=50003+c,d=s.replace("$ad",l).replace("$pt",f.toString());i.set(f,l),o.push("a="+d)}var v={type:"answer",sdp:r.replace(/a=ice-ufrag:(.*?)\s{1,2}/,"a=ice-ufrag:"+a+"\r\n").replace(/a=setup:(.*?)\s{1,2}/,"a=setup:active\r\n").replace(/c=IN IP4 ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/,(function(e,n){return"c=IN IP4 "+n+"\r\nb=AS:30\r\n"+o.join("\r\n")}))};return u.setLocalDescription(e),u.setRemoteDescription(v)}),r)}))];case 2:return[2,d.sent()];case 3:return c.close(),u.close(),clearInterval(l),[7];case 4:return[2]}}))}))}function pn(n){return e.__awaiter(this,void 0,void 0,(function(){var t,r=this;return e.__generator(this,(function(i){switch(i.label){case 0:t=new AbortController,i.label=1;case 1:return i.trys.push([1,,3,4]),[4,Promise.race(e.__spreadArrays(n.map((function(n){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,fetch("http"+("http:"===location.protocol?"":"s")+"://"+n,{signal:t.signal})];case 1:return e.sent(),[3,3];case 2:return e.sent(),[3,3];case 3:return[2,n]}}))}))})),[a(500,-4)]))];case 2:return[2,i.sent()];case 3:return t.abort(),[7];case 4:return[2]}}))}))}function _n(){for(var t=!n.isDesktopSafari(),r=navigator.language.toLowerCase(),i=function(){var n={"en-us":e.__assign(e.__assign({},dn),{n:gn.us}),"en-gb":e.__assign(e.__assign({},dn),{n:gn.gb}),"ru-ru":e.__assign(e.__assign({},vn),{n:gn.ru})};return n.default=n["en-us"],n.en=n["en-us"],n.ru=n["ru-ru"],n}(),o=i[r]||i[r.slice(0,2)]||i.default,a=t?o.i.slice():o.m.slice(),s=t?hn.i.slice():hn.m.slice(),u=0,c=t?o.n:o.n.slice(0,15);u<c.length;u++)for(var l=c[u],f=0,d=a;f<d.length;f++){var v=d[f];s.push(v.replace("$$",l))}return s.map((function(e){return e+".local"}))}function wn(t){return e.__awaiter(this,void 0,void 0,(function(){var r,i;return e.__generator(this,(function(e){switch(e.label){case 0:return!n.isWebKit()||(o=window,_(["mediaSession"in navigator,"BigInt64Array"in o,"FormDataEvent"in o,"ImageBitmap"in o,"WebGL2RenderingContext"in o,"onclose"in o])>=4)?[2,-2]:[4,mn(r=_n())];case 1:return i=e.sent(),null==t||t(),"number"==typeof i?[2,i]:i.length===r.length?[2,-3]:i.length>1?[2,pn(i)]:1===i.length?[2,i[0]]:[2,-1]}var o}))}))}function bn(){var e,t,r,i=((r=new Promise((function(n,r){e=n,t=r}))).resolve=e,r.reject=t,r),o=a(n.isDesktopSafari()?310:410);return c(Promise.race([i,o]).then((function(e){if(void 0!==e)return a(e+100-Date.now())})).then((function(){return-4})),(function(){return wn((function(){return i.resolve(Date.now())}))}))}var yn=["brands","mobile","platform","platformVersion","architecture","bitness","model","uaFullVersion"];function Rn(){var n;return e.__awaiter(this,void 0,void 0,(function(){var t,r,i,o=this;return e.__generator(this,(function(a){switch(a.label){case 0:return(t=navigator.userAgentData)&&"object"==typeof t?(r={},i=[],"function"!=typeof t.getHighEntropyValues?[3,2]:[4,Promise.all(yn.map((function(n){return e.__awaiter(o,void 0,void 0,(function(){var o,a;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,t.getHighEntropyValues([n])];case 1:return void 0!==(o=e.sent()[n])&&(r[n]="string"==typeof o?o:JSON.stringify(o)),[3,3];case 2:if("NotAllowedError"!==(a=e.sent()).name)throw a;return i.push(n),[3,3];case 3:return[2]}}))}))})))]):[2,void 0];case 1:a.sent(),a.label=2;case 2:return[2,{b:t.brands.map((function(e){return{b:e.brand,v:e.version}})),m:t.mobile,p:null!==(n=t.platform)&&void 0!==n?n:null,h:r,nah:i}]}}))}))}function En(){var e=document.createElement("a").attributionsourceid;return void 0===e?void 0:String(e)}function Tn(){return function(e){for(var n,t,r=[],i=e;;)try{var o=null===(n=i.location)||void 0===n?void 0:n.href,a=null===(t=i.document)||void 0===t?void 0:t.referrer;if(void 0===o||void 0===a)return{s:1,v:r};r.push({l:o,f:a});var s=i.parent;if(!s||s===i)return{s:0,v:r};i=s}catch(u){if(Sn(u))return{s:1,v:r};throw u}}(window)}function Sn(e){if(!e||"object"!=typeof e)return!1;var t=e;return!(!n.isTrident()&&!n.isEdgeHTML()||"Error"!==t.name&&"TypeError"!==t.name||"Permission denied"!==t.message)||"SecurityError"===t.name}function In(){return function(e){var n=e.location,t=e.origin,r=n.origin,i=n.ancestorOrigins,o=null;if(i){o=new Array(i.length);for(var a=0;a<i.length;++a)o[a]=i[a]}return{w:null==t?null:t,l:null==r?null:r,a:o}}(window)}function On(){return eval.toString().length}function kn(){var n=this;return c(t(250,-2),(function(){return e.__awaiter(n,void 0,void 0,(function(){var n;return e.__generator(this,(function(e){switch(e.label){case 0:return(null==(n=navigator.mediaDevices)?void 0:n.enumerateDevices)?[4,n.enumerateDevices()]:[2,-1];case 1:return[2,e.sent().map((function(e){return{d:e.deviceId,g:e.groupId,k:e.kind,l:e.label}}))]}}))}))}))}function An(){return navigator.webdriver}function Nn(){var e;return null!==(e=navigator.doNotTrack)&&void 0!==e?e:void 0}function Dn(){var e;return null!==(e=window.devicePixelRatio)&&void 0!==e?e:void 0}function Cn(){var n=this;return c(t(75,-3),(function(){return e.__awaiter(n,void 0,void 0,(function(){var n,t,r,i;return e.__generator(this,(function(e){switch(e.label){case 0:if(!(n=navigator).requestMediaKeySystemAccess)return[2,-1];e.label=1;case 1:return e.trys.push([1,6,,7]),[4,n.requestMediaKeySystemAccess("org.w3.clearkey",[{initDataTypes:["keyids","webm"],audioCapabilities:["opus","vorbis"].map((function(e){return{contentType:'audio/webm; codecs="'+e+'"'}})),videoCapabilities:["vp9","vp8"].map((function(e){return{contentType:'video/webm; codecs="'+e+'"'}}))}])];case 2:return[4,e.sent().createMediaKeys()];case 3:return t=e.sent(),(r=t.createSession()).sessionId?[3,5]:[4,new Promise((function(e){r.onmessage=e,r.generateRequest("webm",new Uint8Array([1,1,1,1]))}))];case 4:e.sent(),e.label=5;case 5:return[2,r.sessionId];case 6:if("NotSupportedError"===(i=e.sent()).name)return[2,-2];throw i;case 7:return[2]}}))}))}))}function Pn(){var n=window.WebAssembly;if(null==n?void 0:n.validate){for(var t=[0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10],r=0,i=0,o=[[9,1,7,0,65,0,253,15,26,11,0,10,4,110,97,109,101,2,3,1,0,0],[240,67,0,0,0,12,1,10,0,252,2,3,1,1,0,0,110,26,11,161,10],[6,1,4,0,18,0,11,0,10,4,110,97,109,101,2,3,1,0,0],[8,1,6,0,65,0,192,26,11,0,10,4,110,97,109,101,2,3,1,0,0],[7,1,5,0,208,112,26,11,0,10,4,110,97,109,101,2,3,1,0,0]];i<o.length;i++){var a=o[i];r<<=1,r|=n.validate(Uint8Array.of.apply(Uint8Array,e.__spreadArrays(t,a)))?1:0}return r}}function xn(){for(var e=[],n=Math.random(),t=24575;t>=0;--t)if(t%4096==0){var r=Math.random();e.push((n-r)*Math.pow(2,31)|0),n=r}return e}function Ln(){var n;return e.__awaiter(this,void 0,void 0,(function(){var t,r,i,o,a,s,u=this;return e.__generator(this,(function(c){switch(c.label){case 0:if(!(t=null===(n=window.crypto)||void 0===n?void 0:n.subtle)||!t.generateKey||!t.exportKey)return[2,-1];r=function(){return e.__awaiter(u,void 0,void 0,(function(){var n,r;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,t.generateKey({name:"AES-GCM",length:128},!0,["encrypt"])];case 1:return n=e.sent(),[4,t.exportKey("raw",n)];case 2:return r=e.sent(),[2,new Uint8Array(r)]}}))}))},c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Promise.all([r(),r()])];case 2:for(i=c.sent(),o=new Uint8Array(i[0].length),a=0;a<i[0].length;++a)o[a]=165^i[0][a]^i[1][a];return[2,y(o)];case 3:if("NotSupportedError"===(s=c.sent()).name)return[2,-2];throw s;case 4:return[2]}}))}))}function Mn(t){var r=this,i=t.delayFallback,o=e.__rest(t,["delayFallback"]),a=n.loadSources(function(){var e;return(e={})[0]=Ge,e[1]=bn,e}(),o,[]),s=n.prepareForSources(i).then((function(){n.sources.screenFrame;var t=e.__rest(n.sources,["screenFrame"]);return n.loadSources(e.__assign(e.__assign(e.__assign({},function(){var e;return(e={})[2]=cn,e[3]=He,e[4]=Fe,e[5]=n.getScreenFrame,e[8]=kn,e[7]=Ln,e[6]=Cn,e[9]=Rn,e[10]=Pn,e[11]=Nn,e[12]=Be,e[13]=Xe,e[14]=Je,e[15]=xn,e[16]=ze,e[17]=Qe,e[18]=fn,e[19]=Dn,e[20]=n.isTrident,e[21]=n.isEdgeHTML,e[22]=n.isChromium,e[23]=n.isWebKit,e[24]=n.isDesktopSafari,e[25]=n.isGecko,e[26]=n.isAndroid,e[27]=En,e[28]=F,e[29]=Tn,e[30]=In,e[31]=On,e[32]=An,e}()),t),function(){var e;return(e={}).j=un,e}()),o,[])}));return function(){return e.__awaiter(r,void 0,void 0,(function(){var n,t,r;return e.__generator(this,(function(i){switch(i.label){case 0:return[4,Promise.all([a(),s.then((function(e){return e()}))])];case 1:return n=i.sent(),t=n[0],r=n[1],[2,e.__assign(e.__assign({},t),r)]}}))}))}}function qn(e){for(var n=e+"=",t=0,r=document.cookie.split(";");t<r.length;t++){for(var i=r[t],o=0;" "===i[o]&&o<i.length;)++o;if(i.indexOf(n)===o)return i.slice(o+n.length)}}function jn(e,n,t,r){var i=e+"="+n,o="expires="+new Date(Date.now()+24*t*60*60*1e3).toUTCString(),a=r?"domain="+r:"";document.cookie=[i,"path=/",o,a,"SameSite=Lax"].join("; ")}function Un(e,n,t){var r=location.hostname;(Fn(r,(function(n){!function(e,n){jn(e,"",-1,n)}(e,n)})),t<0)||Fn(r,(function(r){return jn(e,n,t,r),qn(e)!==n}))&&jn(e,n,t)}function Fn(e,n){var t=e.length;do{if(t=t>0?e.lastIndexOf(".",t-1):-1,!1===n(e.slice(t+1)))return!1}while(t>=0);return!0}function Vn(e,n){Un(n,e,365),function(e,n){var t;try{null===(t=null===localStorage||void 0===localStorage?void 0:localStorage.setItem)||void 0===t||t.call(localStorage,e,n)}catch(r){}}(n,e)}function Bn(e){var n,t;try{return null!==(t=null===(n=null===localStorage||void 0===localStorage?void 0:localStorage.getItem)||void 0===n?void 0:n.call(localStorage,e))&&void 0!==t?t:void 0}catch(r){}}function Gn(e,n,t,r,i){if(!n){var o=function(e,n){return n||(Object.prototype.hasOwnProperty.call(ae,e)||(e="us"),"https://tls-"+ae[e]+".fpapi.io")}(e,t);return L(i,(function(){return{e:6,endpoint:o}})),[se(o,r,i),Date.now()]}}function Kn(n,t,r,i,o,s,u,c){var l=this,f=function(n,t,c,f,g,h,m){return e.__awaiter(l,void 0,void 0,(function(){var l,p,_,w,b,y,R,E,T;return e.__generator(this,(function(e){switch(e.label){case 0:return l=a(f).then((function(){throw new Error("Client timeout")})),[4,Promise.race([l,Promise.all([v(m),d(f,c,m)])])];case 1:return p=e.sent(),_=p[0],w=p[1],y=function(e){return[qn(e),Bn(e)]}(b=u+"_t"),[4,Ce({apiKey:r,endpoint:De(i,o),components:_,customComponent:h,tag:n,visitorToken:y,tls:w,linkedId:t,extendedResult:g,algorithm:s},l,m)];case 2:return R=e.sent(),E=R[0],(T=R[1])&&Vn(T,b),[2,E]}}))}))},d=function(n,r,i){return e.__awaiter(l,void 0,void 0,(function(){var o,s,u,c,l;return e.__generator(this,(function(e){switch(e.label){case 0:if(!t||r)return[2,void 0];o=t[0],s=t[1],u=Math.min(Math.max(.1*n,s+1e4-Date.now()),.4*n),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,o(a(u))];case 2:return c=e.sent(),L(i,(function(){return{e:7,result:c}})),[2,{value:c}];case 3:return l=e.sent(),L(i,(function(){return{e:8,error:l}})),[2,{error:l}];case 4:return[2]}}))}))},v=function(t){return e.__awaiter(l,void 0,void 0,(function(){var r,i;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,n()];case 1:return r=e.sent(),L(t,(function(){return{e:13,result:r}})),[2,r];case 2:throw i=e.sent(),L(t,(function(){return{e:14,error:i}})),i;case 3:return[2]}}))}))};return{get:function(n){void 0===n&&(n={});var t=c&&function(n,t){return function(r){return n(e.__assign(e.__assign({},r),{getCallId:t}))}}(c,S(8));return M(t,(function(){return{e:3,options:n}}),(function(e){return{e:4,result:e}}),(function(e){return{e:5,error:e}}),(function(){var e=n.timeout,r=void 0===e?1e4:e,i=n.tag,o=n.linkedId,a=n.disableTls,s=n.extendedResult,u=n.environment;return f(i,E(o),a,r,s,u,t)}))}}}function Hn(n,t,r){var i,o=O([null==r?void 0:r.debug,(i=/{(.*?)}/.exec(location.hash),!!i&&1915004642===function(e){for(var n=0,t=0;t<e.length;++t)n=(n<<5)-n+e.charCodeAt(t)|0;return n}(i[1])&&D())]),a=o&&function(n,t){return function(r){return n(e.__assign(e.__assign({},r),{agentId:t}))}}(o,S(8));return M(a,(function(){return{e:0,version:"3.5.6",options:r}}),(function(){return{e:1}}),(function(e){return{e:2,error:e}}),(function(){var e=r.token,i=r.apiKey,o=void 0===i?e:i,s=r.region,u=void 0===s?"us":s,c=r.tlsEndpoint,l=r.disableTls,f=r.storageKey,d=void 0===f?"_vid":f,v=r.endpoint,g=r.delayFallback,h=r.algorithm;if(!o||"string"!=typeof o)throw new Error("Token required");var m=Gn(u,l,c,t,a);return L(a,(function(){return{e:12}})),Kn(n({delayFallback:g,storageKeyPrefix:d}),m,o,u,v,E(h),d,a)}))}var Wn=function(e){return Hn(Mn,void 0,e)},Xn={load:Wn,ERROR_CLIENT_TIMEOUT:"Client timeout",ERROR_NETWORK_CONNECTION:"Network connection error",ERROR_NETWORK_ABORT:"Network request aborted",ERROR_WRONG_REGION:me,ERROR_SUBSCRIPTION_NOT_ACTIVE:pe,ERROR_API_KEY_MISSING:"Token required",ERROR_API_KEY_INVALID:"Token not found",ERROR_API_KEY_EXPIRED:"Token expired",ERROR_BAD_REQUEST_FORMAT:"Request cannot be parsed",ERROR_BAD_RESPONSE_FORMAT:"Response 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",ERROR_UNSUPPORTED_VERSION:_e,ERROR_TOKEN_MISSING:"Token required",ERROR_TOKEN_INVALID:"Token not found",ERROR_TOKEN_EXPIRED:"Token expired"};exports.ERROR_API_KEY_EXPIRED="Token expired",exports.ERROR_API_KEY_INVALID="Token not found",exports.ERROR_API_KEY_MISSING="Token required",exports.ERROR_BAD_REQUEST_FORMAT="Request cannot be parsed",exports.ERROR_BAD_RESPONSE_FORMAT="Response 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_SUBSCRIPTION_NOT_ACTIVE=pe,exports.ERROR_TOKEN_EXPIRED="Token expired",exports.ERROR_TOKEN_INVALID="Token not found",exports.ERROR_TOKEN_MISSING="Token required",exports.ERROR_UNSUPPORTED_VERSION=_e,exports.ERROR_WRONG_REGION=me,exports.default=Xn,exports.load=Wn,exports.makeConsoleDebugger=A,exports.makeDebugReportBuilder=V,exports.makeMulticastDebugger=O,exports.makeRemoteDebugger=Z;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("@fingerprintjs/fingerprintjs");function t(e,n){return new Promise((function(t){return r(t,e,n)}))}function r(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i=Date.now()+n,o=0,a=function(){o=setTimeout((function(){Date.now()<i?a():e.apply(void 0,t)}),i-Date.now())};return a(),function(){return clearTimeout(o)}}function i(e,n,t){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var a,s=!1,u=e,c=0,l=function(){s||a||(c=Date.now(),a=r((function(){s=!0,t.apply(void 0,i)}),u))},f=function(){!s&&a&&(a(),a=void 0,u-=Date.now()-c)};return n&&l(),{start:l,stop:f}}function o(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var o=document,a="visibilitychange",s=function(){return o.hidden?l():c()},u=i(n,!o.hidden,(function(){o.removeEventListener(a,s),e.apply(void 0,t)})),c=u.start,l=u.stop;return o.addEventListener(a,s),function(){o.removeEventListener(a,s),l()}}function a(e,n){return new Promise((function(t){return o(t,e,n)}))}function s(n,t){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,n()];case 1:return[2,e.sent()];case 2:return r=e.sent(),console.error(r),[2,t];case 3:return[2]}}))}))}function u(n,t){var r=this;return new Promise((function(i,o){var a=t(),s=!1;null==n||n.then(i,o).then((function(){return s=!0}));var u=function(n){return e.__awaiter(r,void 0,void 0,(function(){var t,r;return e.__generator(this,(function(e){switch(e.label){case 0:if(n.done)return[2,i(n.value)];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,n.value];case 2:if(t=e.sent(),!s)try{u(a.next(t))}catch(c){o(c)}return[3,4];case 3:if(r=e.sent(),!s)try{u(a.throw(r))}catch(c){o(c)}return[3,4];case 4:return[2]}}))}))};u(a.next())}))}function c(n,t){return e.__awaiter(this,void 0,void 0,(function(){var r,i,o,a;return e.__generator(this,(function(e){switch(e.label){case 0:try{r=t().then((function(e){return i=[!0,e]}),(function(e){return i=[!1,e]}))}catch(s){i=[!1,s]}return a=n.then((function(e){return o=[!0,e]}),(function(e){return o=[!1,e]})),[4,Promise.race([r,a])];case 1:return e.sent(),[2,function(){if(i){if(i[0])return i[1];throw i[1]}if(o){if(o[0])return o[1];throw o[1]}throw new Error("96375")}]}}))}))}function l(n,t){var r;return void 0===t&&(t=!1),e.__assign({name:n.name,message:n.message,stack:t?null===(r=n.stack)||void 0===r?void 0:r.split("\n"):n.stack},n)}function f(){var e=window;try{return e.self!==e.top}catch(n){return!0}}function d(n,t){var r;return e.__generator(this,(function(e){switch(e.label){case 0:r=0,e.label=1;case 1:return[4,Math.random()*Math.min(t,n*Math.pow(2,r))];case 2:e.sent(),e.label=3;case 3:return++r,[3,1];case 4:return[2]}}))}function v(e){return e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",h=g+"+/";function m(e,n){if(0==n.length||n.length>e.length)return-1;for(var t=0;t<e.length;t++){for(var r=0,i=0;i<n.length;i++){if(e[t+i]!==n[i]){r=0;break}r++}if(r==n.length)return t}return-1}function p(e){if("function"==typeof TextDecoder){var n=(new TextDecoder).decode(e);if(n)return n}var t=v(e);return decodeURIComponent(escape(String.fromCharCode.apply(null,t)))}function _(e){return e.reduce((function(e,n){return e+(n?1:0)}),0)}function w(e,n,t){return void 0===t&&(t="..."),e.length<=n?e:""+e.slice(0,Math.max(0,n-t.length))+t}function b(e,n){return(e-n+256)%256}function y(e){for(var n=v(e),t=n.length,r="",i=0;i<t;i+=3)r+=h[n[i]>>2]+h[(3&n[i])<<4|n[i+1]>>4]+h[(15&n[i+1])<<2|n[i+2]>>6]+h[63&n[i+2]];return t%3==2?r.slice(0,-1)+"=":t%3==1?r.slice(0,-2)+"==":r}function R(e){for(var n="",t=0;t<e.length;++t)if(t>0){var r=e[t].toLowerCase();r!==e[t]?n+=" "+r:n+=e[t]}else n+=e[t].toUpperCase();return n}function E(e){return void 0===e?void 0:""+e}function T(e,n){for(var t="",r=0;r<e;r++)t+=n.charAt(Math.random()*n.length);return t}function S(e){return T(e,g)}function I(){return 256*Math.random()|0}function O(e){var n=e.filter((function(e){return!!e}));return n.length?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=function(n){s((function(){return n.apply(void 0,e)}))},i=0,o=n;i<o.length;i++){var a=o[i];r(a)}}:void 0}function k(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"Visitor identifier request try has started";case 19:return"Visitor identifier request try has succeeded";case 20:return"Visitor identifier request try has failed"}}var A=function(e){return void 0===e&&(e="[FingerprintJS Pro] "),function(n){switch(n.e){case 2:case 5:case 8:case 11:case 14:case 17:case 20:console.error(N(e,n));break;case 13:var t=N(e,n),r=n.result;Object.keys(r).some((function(e){return r[e].error}))?console.warn(t):console.log(t);break;default:console.log(N(e,n))}}};function N(n,t){var r=t.e,i=e.__rest(t,["e"]),o=""+n+(new Date).toISOString()+": "+k(r);return Object.keys(i).length&&(o+="\n```\n"+function(e){return JSON.stringify(e,(function(e,n){return n instanceof Error?l(n,!0):n instanceof ArrayBuffer?"(base64) "+y(n):n}),2)}(i)+"\n```"),o}function D(e){void 0===e&&(e="[FingerprintJS Pro] ");var n={};return function(t){switch(t.e){case 15:n[t.getCallId]=t.request;break;case 18:console.log(e+"Visitor id request",n[t.getCallId]);break;case 19:console.log(e+"Visitor id response",t.body);break;case 16:case 17:delete n[t.getCallId]}}}function C(e){var n=e.url,t=e.method,r=void 0===t?"get":t,i=e.body,o=e.headers,a=e.withCredentials,s=void 0!==a&&a,u=e.timeout,c=e.responseFormat,l=e.abort;return new Promise((function(e,t){var a=new XMLHttpRequest;for(var f in a.open(r,n,!0),a.withCredentials=s,a.timeout=void 0===u?0:Math.max(u,1),"binary"===c&&(a.responseType="arraybuffer"),o)a.setRequestHeader(f,o[f]);a.onload=function(){return e(function(e){return{body:e.response,status:e.status,statusText:e.statusText}}(a))},a.ontimeout=function(){return t(P("TimeoutError","The request timed out"))},a.onabort=function(){return t(P("AbortError","The request is aborted"))},a.onerror=function(){return t(P("TypeError",navigator.onLine?"Connection error":"Network offline"))},a.send(function(e){var n,t=function(){try{return new Blob([]),!1}catch(n){return!0}};if(e instanceof ArrayBuffer){if(!t())return new Uint8Array(e)}else if((null===(n=e)||void 0===n?void 0:n.buffer)instanceof ArrayBuffer&&t())return e.buffer;return e}(i)),null==l||l.catch((function(){})).then((function(){a.onabort=null,a.abort()}))}))}function P(e,n){var t=new Error(n);return t.name=e,t}function x(e){var n,t=e.url,r=e.body;try{if(null===(n=navigator.sendBeacon)||void 0===n?void 0:n.call(navigator,t,r))return!0}catch(o){if("Illegal invocation"!==o.message)throw o}var i=new XMLHttpRequest;i.open("POST",t,!function(){var e,n=null===(e=window.event)||void 0===e?void 0:e.type;return"pagehide"===n||"unload"===n}()),r instanceof Blob&&i.setRequestHeader("Content-Type",r.type);try{i.send(r)}catch(a){return!1}return!0}function L(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];e&&s((function(){var r=n.apply(void 0,t);void 0!==r&&e(r)}))}function M(n,t,r,i,o){return e.__awaiter(this,void 0,void 0,(function(){var a,s;return e.__generator(this,(function(e){switch(e.label){case 0:L(n,t),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,o()];case 2:return a=e.sent(),[3,4];case 3:throw s=e.sent(),L(n,i,s),s;case 4:return L(n,r,a),[2,a]}}))}))}function q(){var e=window,n=e.__fpjs_pvid;return e.__fpjs_pvid="string"==typeof n?n:S(10)}function j(n,t){for(var r={},i=0,o=Object.keys(n);i<o.length;i++){var a=o[i];!n[a].error&&t[a]?r[a]=e.__assign(e.__assign({},n[a]),{value:t[a](n[a].value)}):r[a]=n[a]}return r}function U(){var e=window,n=navigator;return _(["maxTouchPoints"in n,"mediaCapabilities"in n,"PointerEvent"in e,"visualViewport"in e,"onafterprint"in e])>=4}function F(){var e=window;return _([!("PushManager"in e),!("AudioBuffer"in e),!("RTCPeerConnection"in e),!("geolocation"in navigator),!("ServiceWorker"in e)])>=3}var V=function(e){return new B(e).addEvent},B=function(){function n(e){var n=this;this.onReportReady=e,this.isStopped=!1,this.pageStartTimestamp=function(){var e,n,t=performance;if(t.timeOrigin){var r=null===(n=null===(e=t.getEntriesByType)||void 0===e?void 0:e.call(t,"navigation"))||void 0===n?void 0:n[0];if(r)return t.timeOrigin+(r.responseStart||r.unloadEventEnd)}return t.timing.domLoading||t.timing.responseStart||t.timing.unloadEventEnd}(),this.events={},this.addEvent=function(e){if(!n.isStopped){var t={time:new Date,type:"agentEvent",event:e};switch(0===e.e&&(t.documentReadyState=document.readyState,t.isPageVisible=Y(),t.isFullscreen=z(),t.network=Q()),n.storeAgentEvent(t),e.e){case 2:n.submitReport(e.agentId,void 0);break;case 4:case 5:n.submitReport(e.agentId,e.getCallId)}}};for(var t=window,r=document,i=[[r,"readystatechange",function(){return n.handleDocumentReadyStateChange()}],[r,"visibilitychange",function(){return n.handleVisibilityChange()}],[r,"pageshow",function(){return n.handlePageTransition(!0)}],[r,"pagehide",function(){return n.handlePageTransition(!1)}],[t,"unload",function(){return n.handlePageUnload()}]],o=0,a=i;o<a.length;o++){var s=a[o],u=s[0],c=s[1],l=s[2];u.addEventListener(c,l)}var f=function(e,n){for(var t=document,r=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],i=0,o=r;i<o.length;i++){var a=o[i];t.addEventListener(a,e,n)}return function(){for(var i=0,o=r;i<o.length;i++){var a=o[i];t.removeEventListener(a,e,n)}}}((function(){return n.handleFullscreenChange()})),d=function(e){var n=navigator.connection;return(null==n?void 0:n.addEventListener)?(n.addEventListener("change",e),function(){n.removeEventListener("change",e)}):(addEventListener("online",e),addEventListener("offline",e),function(){removeEventListener("online",e),removeEventListener("offline",e)})}((function(){return n.handleNetworkConnectionChange()}));this.stop=function(){n.isStopped=!0;for(var e=0,t=i;e<t.length;e++){var r=t[e],o=r[0],a=r[1],s=r[2];o.removeEventListener(a,s)}f(),d()}}return n.prototype.handleDocumentReadyStateChange=function(){this.storeEnvironmentEvent({time:new Date,type:"documentReadyState",state:document.readyState})},n.prototype.handleVisibilityChange=function(){this.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:Y()})},n.prototype.handlePageTransition=function(e){this.storeEnvironmentEvent({time:new Date,type:"pageTransition",isShown:e})},n.prototype.handleFullscreenChange=function(){this.storeEnvironmentEvent({time:new Date,type:"fullscreenToggle",isFullscreen:z()})},n.prototype.handleNetworkConnectionChange=function(){this.storeEnvironmentEvent({time:new Date,type:"networkChange",network:Q()})},n.prototype.handlePageUnload=function(){this.storeEnvironmentEvent({time:new Date,type:"pageUnload"});for(var e=0,n=Object.keys(this.events);e<n.length;e++){var t=n[e],r=this.events[t];if(0===Object.keys(r.getCalls).length)this.submitReport(t,void 0);else for(var i=0,o=Object.keys(r.getCalls);i<o.length;i++){var a=o[i];K(r.getCalls[a])||this.submitReport(t,a)}}this.stop()},n.prototype.storeAgentEvent=function(e){var n=e.event,t=n.agentId;if(this.events[t]||(this.events[t]={commonEvents:[],getCalls:{}}),function(e){return"string"==typeof e.getCallId}(n)){var r=n.getCallId;this.events[t].getCalls[r]||(this.events[t].getCalls[r]=[]),this.events[t].getCalls[r].push(e)}else this.events[t].commonEvents.push(e)},n.prototype.storeEnvironmentEvent=function(e){for(var n=0,t=Object.keys(this.events);n<t.length;n++){var r=t[n];this.events[r].commonEvents.push(e)}},n.prototype.submitReport=function(n,t){var r=function(n,t){for(var r,i,o,a,s,u,c,l,d,v,g=function(e){for(var n={},t=0,r=e;t<r.length;t++){var i=r[t];"agentEvent"===i.type&&(n[i.event.e]=i)}return n}(n),h=(null===(r=n[n.length-1])||void 0===r?void 0:r.time)||new Date,m="null",p=0,_=[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]];p<_.length;p++){var w=_[p],b=w[0],y=w[1];if(g[b]){m=y;break}}return{time:(null===(i=n[n.length-1])||void 0===i?void 0:i.time)||new Date,pageUrl:location.href,pageStartTime:new Date(t),isInIframe:f(),agentVersion:null===(o=g[0])||void 0===o?void 0:o.event.version,userAgent:navigator.userAgent,pageViewId:q(),agentId:null===(a=g[0])||void 0===a?void 0:a.event.agentId,getCallId:null===(s=g[3])||void 0===s?void 0:s.event.getCallId,requestId:null!==(c=null===(u=g[4])||void 0===u?void 0:u.event.result.requestId)&&void 0!==c?c:null===(l=g[5])||void 0===l?void 0:l.event.error.requestId,visitorId:null===(d=g[4])||void 0===d?void 0:d.event.result.visitorId,visitorToken:null===(v=g[16])||void 0===v?void 0:v.event.result[1],identificationState:m,timeBetweenLoadAndGet:G(g[1],g[3]),load:H(h,g[0],g[1],g[2]),get:H(h,g[3],g[4],g[5]),tls:X(H(h,g[6],g[7],g[8]),(function(){var t,r;return e.__assign(e.__assign({},W(n,9,10,11,(null===(t=g[7])||void 0===t?void 0:t.time)||(null===(r=g[8])||void 0===r?void 0:r.time)||h)),{getPhaseDuration:G(g[3],g[7]||g[8],h)})})),fingerprint:X(H(h,g[12],g[13],g[14],(function(e){var n=e.event;return{failedComponents:$(n.result),componentDurations:J(n.result)}})),(function(){return{getPhaseDuration:G(g[3],g[13]||g[14],h)}})),visitorIdRequest:X(H(h,g[15],g[16],g[17]),(function(){var e,t;return W(n,18,19,20,(null===(e=g[16])||void 0===e?void 0:e.time)||(null===(t=g[17])||void 0===t?void 0:t.time)||h)})),events:n}}(function(e,n,t){var r=[];e[n]&&(r.push.apply(r,e[n].commonEvents),void 0!==t&&r.push.apply(r,e[n].getCalls[t]||[]));return r.sort((function(e,n){return e.time.getTime()-n.time.getTime()})),r}(this.events,n,t),this.pageStartTimestamp);try{this.onReportReady(r)}catch(i){console.error(i)}},n}();function G(e,n,t){var r=null==e?void 0:e.time,i=(null==n?void 0:n.time)||t;return r&&i&&i.getTime()-r.getTime()}function K(e){return e.some((function(e){return"agentEvent"===e.type&&(4===e.event.e||5===e.event.e)}))}function H(n,t,r,i,o){if(void 0!==t)return void 0!==r?e.__assign(e.__assign({},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:n.getTime()-t.time.getTime(),state:"incomplete"}}function W(e,n,t,r,i){for(var o=i.getTime(),a=function(e,n){for(var t={},r=0,i=e;r<i.length;r++){var o=i[r];if("agentEvent"===o.type&&-1!==n.indexOf(o.event.e)){var a=o.event;t[a.tryNumber]||(t[a.tryNumber]={}),t[a.tryNumber][a.e]=o}}for(var s=[],u=0,c=Object.keys(t);u<c.length;u++){var l=c[u];s.push(t[l])}return s}(e,[n,t,r]),s={triesCount:0,triesTotalDuration:0,completeTriesCount:0,completeTriesTotalDuration:0},u=0,c=a;u<c.length;u++){var l=c[u],f=l[n],d=l[t]||l[r];if(f){if(f.time.getTime()>=o)break;var v=d&&d.time.getTime()<=o,g=((null==d?void 0:d.time)||i).getTime()-f.time.getTime();s.triesCount++,s.triesTotalDuration+=g,v&&(s.completeTriesCount++,s.completeTriesTotalDuration+=g)}}return s}function X(n,t){return n?e.__assign(e.__assign({},n),t()):void 0}function $(e){for(var n={},t=0,r=Object.keys(e);t<r.length;t++){var i=r[t],o=e[i].error;o&&(n[i]=o)}return n}function J(e){for(var n={},t=0,r=Object.keys(e);t<r.length;t++){var i=r[t];n[i]=e[i].duration}return n}function Y(){return!document.hidden}function z(){return!!n.getFullscreenElement()}function Q(){var e=navigator.connection;return{online:navigator.onLine,downlink:null==e?void 0:e.downlink,downlinkMax:null==e?void 0:e.downlinkMax,effectiveType:null==e?void 0:e.effectiveType,roundTrip:null==e?void 0:e.rtt,saveData:null==e?void 0:e.saveData,type:null==e?void 0:e.type}}var Z=function(n){var t=this,r=n.clientId,i=n.token,o=n.endpoint,a=void 0===o?"https://api.rollbar.com/api/1/item/":o;return new B((function(n){return e.__awaiter(t,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:return t=function(e,n,t,r){return{access_token:t,data:ee(e,n,r)}}(n,r,i),[4,oe(a,t)];case 1:return e.sent(),[2]}}))}))})).addEvent};function ee(n,t,r){var i,o;void 0===r&&(r=[8,4,4,4,12].map((function(e){return T(e,"0123456789abcdef")})).join("-"));var a=ne[n.identificationState],s=a.level,u=a.message;return{environment:t,level:s,timestamp:Math.round(n.time.getTime()/1e3),platform:"browser",framework:"FingerprintJS Pro",language:"javascript",uuid:r,notifier:{name:"FingerprintJS Pro monitoring",version:"3.5.7"},request:{url:n.pageUrl,query_string:(null!==(i=/\?.*$/.exec(n.pageUrl))&&void 0!==i?i:[""])[0],user_ip:"$remote_ip"},client:{javascript:{browser:n.userAgent,code_version:n.agentVersion}},person:void 0===n.visitorId?void 0:{id:"visitorId:"+n.visitorId},body:{telemetry:e.__spreadArrays([{level:"debug",source:"client",timestamp_ms:n.pageStartTime.getTime(),type:"manual",body:{message:"Page starts","~~hack~componentDurations":"success"===(null===(o=n.fingerprint)||void 0===o?void 0:o.state)?ie(n.fingerprint.componentDurations):void 0}}],n.events.map(te)),message:{body:u}},custom:{isInIframe:n.isInIframe,pageViewId:n.pageViewId,agentId:n.agentId,getCallId:n.getCallId,requestId:n.requestId,visitorId:n.visitorId,visitorToken:n.visitorToken,identificationState:n.identificationState,timeBetweenLoadAndGet:n.timeBetweenLoadAndGet,load:n.load,get:n.get,tls:n.tls,fingerprint:re(n.fingerprint),visitorIdRequest:n.visitorIdRequest}}}var ne={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 te(n){var t={type:"manual",level:"debug",source:"client",timestamp_ms:n.time.getTime()};switch(n.type){case"documentReadyState":return e.__assign(e.__assign({},t),{body:{message:'Document ready state becomes "'+n.state+'"'}});case"pageVisibilityToggle":return e.__assign(e.__assign({},t),{body:{message:"Page becomes "+(n.isVisible?"visible (in foreground)":"invisible (in background)")}});case"pageTransition":return e.__assign(e.__assign({},t),{body:{message:n.isShown?"Page is restored from browser history":"Page is about to go to browser history"}});case"fullscreenToggle":return e.__assign(e.__assign({},t),{body:{message:"Programmatic fullscreen "+(n.isFullscreen?"on":"off")}});case"networkChange":return e.__assign(e.__assign({},t),{body:e.__assign(e.__assign({},n.network),{message:"Network connection changes"})});case"pageUnload":return e.__assign(e.__assign({},t),{body:{message:"Page is about to unload (terminate)"}})}var r,i,o,a=n.event,s=function(r,i){void 0===i&&(i="info");for(var o=r,s=(o.e,o.agentId,o.getCallId,e.__rest(o,["e","agentId","getCallId"])),u=e.__assign(e.__assign({},t),{level:i,body:e.__assign({message:k(a.e)},s)}),c=0,l=["documentReadyState","isPageVisible","isFullscreen","network"];c<l.length;c++){var f=l[c];void 0!==n[f]&&(u.body[f]=n[f])}return u};switch(a.e){case 0:a.version;return s(e.__rest(a,["version"]));case 1:case 3:case 4:case 6:case 9:case 12:case 15:case 16:case 18:return s(a);case 2:case 5:case 8:case 11:case 14:case 17:case 20:return s(a,"error");case 7:return s(e.__assign(e.__assign({},a),{result:w(a.result,1e3)}));case 10:return s(e.__assign(e.__assign({},a),{body:w(a.body,1e3)}));case 13:return s(e.__assign(e.__assign({},a),{result:(r=a.result,o="(removed to fit into beacon)",j(r,(i={plugins:function(e){return e&&o},math:function(){return o},fontPreferences:function(){return o}},i.j=function(e){return e&&o},i[9]=function(e){return e&&o},i)))}));case 19:var u=a.body;if(u instanceof ArrayBuffer){u="(base64) "+(u.byteLength>1800?y(new Uint8Array(u,0,1800))+"...":y(u))}return s(e.__assign(e.__assign({},a),{body:u}))}}function re(n){if(!n||"incomplete"===n.state||"fail"===n.state)return n;n.componentDurations;var t=e.__rest(n,["componentDurations"]),r=Object.keys(n.failedComponents),i=r.length?","+r.join(",")+",":void 0;return e.__assign(e.__assign({},t),{failedComponents:i})}function ie(n,t){void 0===t&&(t="_");for(var r=e.__assign({},n),i=0,o=Object.keys(n);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]=n[a]}}return r}function oe(n,r){return e.__awaiter(this,void 0,void 0,(function(){var i,o;return e.__generator(this,(function(e){switch(e.label){case 0:i=function(e){return JSON.stringify(e,(function(e,n){if(n instanceof Error){var t=l(n);return"string"==typeof t.stack&&(t.stack=w(t.stack,1e3)),t}return n}))}(r),o=d(1e3,1e4),e.label=1;case 1:return navigator.onLine&&x({url:n,body:i})?[3,4]:[4,t(o.next().value)];case 2:e.sent(),e.label=3;case 3:return[3,1];case 4:return[2]}}))}))}var ae={us:"use1",eu:"eun1",ap:"aps1"};function se(n,r,i){var o,a=function(n,r,i,o){void 0===i&&(i=1/0);var a=d(300,1e4);return u(null==o?void 0:o.then((function(){}),(function(){})),(function(){var s,u,c;return e.__generator(this,(function(e){switch(e.label){case 0:s=0,e.label=1;case 1:if(!(s<i))return[3,8];u=Date.now(),e.label=2;case 2:return e.trys.push([2,4,,5]),[4,n(s,o)];case 3:return[2,e.sent()];case 4:return c=e.sent(),r(c),[3,5];case 5:return[4,t(u+a.next().value-Date.now())];case 6:e.sent(),e.label=7;case 7:return++s,[3,1];case 8:return[2,void 0]}}))}))}((function(t,r){return function(n,t,r,i,o){return e.__awaiter(this,void 0,void 0,(function(){var a,s;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,M(o,(function(){return{e:9,tryNumber:r,timeout:t}}),(function(e){var n=e.status,t=e.body;return{e:10,tryNumber:r,status:n,body:t}}),(function(e){return{e:11,tryNumber:r,error:e}}),(function(){return C({url:n,timeout:t,abort:i})}))];case 1:return a=e.sent(),[3,3];case 2:switch((s=e.sent()).name){case"AbortError":throw ue(s.message,-2);case"TimeoutError":throw ue(s.message,-3);case"TypeError":throw ue(s.message,-4)}throw s;case 3:if(200===a.status)return[2,a.body];throw ue(w(a.status+": "+a.body,255),-5)}}))}))}(n,5e3,t,r,i)}),(function(e){return o=e}),10,r);return a.catch((function(){})),function(e){return void 0===e&&(e=new Promise((function(){}))),Promise.race([e.then((function(){}),(function(){})),a]).then((function(e){if(void 0!==e)return e;throw o||ue("Timeout",-3)}))}}function ue(e,n){var t=new Error(e);return t.__="slt",t.s=n,t}function ce(t){var r,i=t.components,o=t.customComponent,a=t.apiKey,s=t.visitorToken,u=t.tls,c=t.tag,l=t.extendedResult,f=t.linkedId,d=t.algorithm;return(r={}).c=a,r.url=location.href,r.t=function(e){if(e&&"object"==typeof e)return e;if(null==e)return;return{tag:e}}(c),r.cbd=l?1:void 0,r.lid=f,r.cr=document.referrer||void 0,r.a=d,r.s1=ge(i.osCpu,-1),r.s2=de(i.languages),r.s3=de(i.colorDepth),r.s4=ge(i.deviceMemory,-1),r.s5=le(i.screenResolution,(function(e){return{s:0,v:e.map((function(e){return null===e?-1:e}))}})),r.s6=le(i[5],(function(e){return{s:0,v:e.map((function(e){return null===e?-1:e}))}})),r.s7=ge(i.hardwareConcurrency,-1),r.s8=he(i[6]),r.s9=de(i.timezone),r.s10=de(i.sessionStorage),r.s11=de(i.localStorage),r.s12=ge(i.indexedDB,-1),r.s13=de(i.openDatabase),r.s14=ge(i.cpuClass,-1),r.s15=de(i.platform),r.s16=ge(i.plugins,-1),r.s17=le(i.canvas,(function(t){return{s:0,v:e.__assign(e.__assign({},t),{geometry:n.murmurX64Hash128(t.geometry),text:n.murmurX64Hash128(t.text)})}})),r.s18=he(i[7]),r.s19=de(i.touchSupport),r.s20=de(i.fonts),r.s21=le(i.audio,(function(e){return-1===e||-2===e||-3===e?{s:e,v:null}:{s:0,v:e}})),r.s22=ge(i[10],-1),r.s24=de(i[31]),r.s26=he(i[8]),r.s27=de(i.vendor),r.s28=de(i.vendorFlavors),r.s30=ge(i[11],-1),r.s31=de(i[4]),r.s32=de(i.cookiesEnabled),r.s33=de(i[12]),r.s34=ve(i[0]),r.s35=ve(i[3]),r.s36=ge(i.domBlockers,-1),r.s37=ge(i.colorGamut,-1),r.s38=ge(i.contrast,-1),r.s39=ge(i.forcedColors,-1),r.s40=ge(i.hdr,-1),r.s41=ge(i.invertedColors,-1),r.s42=ge(i.monochrome,-1),r.s43=ge(i.reducedMotion,-1),r.s44=ge(i[13],-1),r.s45=de(i[14]),r.s46=le(i.math,(function(e){return{s:0,v:n.murmurX64Hash128(Object.keys(e).map((function(n){return n+"="+e[n]})).join(","))}})),r.s47=le(i.j,(function(t){return{s:t?0:-1,v:t?e.__assign(e.__assign({},t),{contextAttributes:n.murmurX64Hash128(t.contextAttributes),parameters:n.murmurX64Hash128(t.parameters),shaderPrecisions:n.murmurX64Hash128(t.shaderPrecisions),extensions:n.murmurX64Hash128(t.extensions),extensionParameters:n.murmurX64Hash128(t.extensionParameters),fingerprint:n.murmurX64Hash128(t.fingerprint)}):null}})),r.s48=de(i[15]),r.s49=ge(i[16],-1),r.s50=ge(i[17],-1),r.s51=de(i.fontPreferences),r.s52=le(i[2],(function(e){return{s:"number"==typeof e?e:e.length?0:1,v:"number"==typeof e?"":n.murmurX64Hash128(JSON.stringify(e))}})),r.s53=ve(i[18]),r.s54=he(i[1]),r.s55=function(e){var n=e[0],t=e[1];if(void 0!==n&&void 0!==t)return{s:0,v:n||t};if(void 0!==n)return{s:1,v:n};if(void 0!==t)return{s:2,v:t};return{s:-1,v:null}}(s),r.s56=function(e){if(!e)return{s:-1,v:null};if(e.error){var n=e.error;return function(e){return"slt"===e.__}(n)?{s:n.s,v:null}:{e:n.message}}return{s:0,v:e.value}}(u),r.s57=ge(i[19],-1),r.s58=ge(i[9],-1),r.s59=de(i[20]),r.s60=de(i[21]),r.s61=de(i[22]),r.s62=de(i[23]),r.s63=de(i[24]),r.s64=de(i[25]),r.s65=de(i[26]),r.s66=ge(i[27],-1),r.s67=o?{s:0,v:o}:{s:-1,v:null},r.s68=de(i[28]),r.s69=ve(i[29]),r.s71=de(i[30]),r.s72=ge(i[32],-1),r}function le(e,n){return e.error?{e:fe(e.error)}:n(e.value)}function fe(e){var n;try{n=""+e.message,"name"in e&&(n=e.name+": "+n)}catch(e){n="Code 3017: "+e.name+": "+e.message}return w(n,500)}function de(e){return le(e,(function(e){return{s:0,v:e}}))}function ve(e){return le(e,(function(e){return e}))}function ge(e,n){return le(e,(function(e){return{s:null==e?n:0,v:null!=e?e:null}}))}function he(e){return le(e,(function(e){return"number"==typeof e?{s:e,v:null}:{s:0,v:e}}))}var me=R("WrongRegion"),pe=R("SubscriptionNotActive"),_e=R("UnsupportedVersion");function we(n,t){var r=n.bodyData;return void 0===r?Ie(n):function(e){return e instanceof Object&&"2"===e.v&&e.products instanceof Object}(r)?function(n,t){var r=n.notifications,i=n.requestId,o=n.error,a=n.products;if(Te(r),o)return be(o,i,t);var s=a.identification;if(!s)throw new Error("There is no identification result in the response");if(Te(s.notifications),s.error)return be(s.error,i,t);return[e.__assign({requestId:i},s.data.result),s.data.visitorToken]}(r,t):Ie(n)}function be(e,n,t){switch(e.code){case"NotAvailableForCrawlBots":return Re(n,!0,t);case"NotAvailableWithoutUA":return Re(n,void 0,t);case"Failed":case"RequestTimeout":return Ee(ye(e),n,e);default:throw Ee(ye(e),n,e)}}function ye(e){var n,t=e.code,r=e.message;return void 0===t?r:null!==(n=function(e){switch(e){case"TokenRequired":return"Token required";case"TokenNotFound":return"Token not found";case"TokenExpired":return"Token expired";case"RequestCannotBeParsed":return"Request cannot be parsed";case"Failed":return"Request failed";case"RequestTimeout":return"Request failed to process";case"TooManyRequests":return"Too many requests, rate limit exceeded";case"OriginNotAvailable":return"Not available for this origin";case"HeaderRestricted":return"Not available with restricted header";case"NotAvailableForCrawlBots":return"Not available for crawl bots";case"NotAvailableWithoutUA":return"Not available when User-Agent is unspecified"}}(t))&&void 0!==n?n:R(t)}function Re(n,t,r){var i={requestId:n,visitorFound:!1,visitorId:"",confidence:{score:.9,comment:"The real score is unknown"}};if(!r)return[i];var o="n/a",a=e.__assign(e.__assign({},i),{bot:{probability:1},incognito:!1,browserName:o,browserVersion:o,device:o,ip:o,os:o,osVersion:o});return void 0!==t&&(a.bot.safe=t),[a]}function Ee(e,n,t){var r=new Error(e);return void 0!==n&&(r.requestId=n),void 0!==t&&(r.raw=t),r}function Te(e){null==e||e.forEach(Se)}function Se(e){var n=e.level,t=e.message;"error"===n?console.error(t):"warning"===n?console.warn(t):console.log(t)}function Ie(e){var n=Ee("Response cannot be parsed",void 0,{httpStatusCode:e.status,bodyBase64:y(e.body)});if(e.status>=500)return n;throw n}function Oe(e,n,t,r,i){void 0===i&&(i=I);var o=i()%(t+1),a=function(e){if("function"==typeof TextEncoder)return(new TextEncoder).encode(e);for(var n=unescape(encodeURI(e)),t=new Uint8Array(n.length),r=0;r<n.length;++r)t[r]=n.charCodeAt(r);return t}(JSON.stringify(e)),s=1+n.length+1+o+r+a.length,u=new ArrayBuffer(s),c=new Uint8Array(u),l=0,f=i();c[l++]=f;for(var d=0,v=n;d<v.length;d++){var g=v[d];c[l++]=f+g}c[l++]=f+o;for(var h=0;h<o;++h)c[l++]=i();var m=new Uint8Array(r);for(h=0;h<r;++h)m[h]=i(),c[l++]=m[h];for(h=0;h<a.length;++h)c[l++]=a[h]^m[h%r];return u}function ke(e,n,t){var r=function(){throw new Error("Invalid data")},i=v(e);i.length<n.length+2&&r();for(var o=0;o<n.length;++o)b(i[1+o],i[0])!==n[o]&&r();var a=1+n.length,s=b(i[a],i[0]);i.length<a+1+s+t&&r();var u=a+1+s,c=u+t,l=new Uint8Array(i.length-c);for(o=0;o<l.length;++o)l[o]=i[c+o]^i[u+o%t];return JSON.parse(p(l))}var Ae=[3,7];function Ne(n){return e.__awaiter(this,void 0,void 0,(function(){var t,r,i;return e.__generator(this,(function(o){switch(o.label){case 0:return[4,C(e.__assign(e.__assign({},n),{body:(s=n.body,Oe(s,Ae,3,7)),responseFormat:"binary"}))];case 1:t=o.sent();try{a=t.body,r=ke(a,Ae,7),i=!0}catch(u){try{r=JSON.parse(p(t.body)),i=!1}catch(c){}}return[2,e.__assign(e.__assign({},t),{bodyData:r,isSecret:i})]}var a,s}))}))}function De(e,n){if(n)return n;var t="api.fpjs.io";return"us"!==e&&(t=e+"."+t),"https://"+t}function Ce(n,r,i){var o=n.endpoint,a=n.extendedResult,s=void 0!==a&&a,c=e.__rest(n,["endpoint","extendedResult"]);return e.__awaiter(this,void 0,void 0,(function(){var n,a,l;return e.__generator(this,(function(f){switch(f.label){case 0:return n=(v=o)+(-1===v.indexOf("?")?"?":"&")+"ci=js/"+encodeURIComponent("3.5.7"),a=ce(e.__assign({extendedResult:s},c)),l=0,[4,M(i,(function(){return{e:15,endpoint:n,request:a}}),(function(e){return{e:16,result:e}}),(function(e){return{e:17,error:e}}),(function(){return function(n,r){var i,o=d(300,1e4);return u(null==r?void 0:r.catch((function(e){i||(i=e)})).then((function(){throw i})),(function(){var a,s,u;return e.__generator(this,(function(e){switch(e.label){case 0:return a=Date.now(),[4,n(r)];case 1:return(s=e.sent())instanceof Error?(i=s,u=o.next().value,[4,t(a+u-Date.now())]):[2,s];case 2:e.sent(),e.label=3;case 3:return[3,0];case 4:return[2]}}))}))}((function(t){return function(n,t,r,i,o,a){return e.__awaiter(this,void 0,void 0,(function(){var s,u;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,M(a,(function(){return{e:18,tryNumber:i}}),(function(e){var n=e.status,t=e.body,r=e.bodyData,o=e.isSecret;return{e:19,tryNumber:i,status:n,body:null!=r?r:t,isSecret:o}}),(function(e){return{e:20,tryNumber:i,error:e}}),(function(){return Ne({url:n,method:"post",body:t,headers:{"Content-Type":"text/plain"},withCredentials:!0,abort:o})}))];case 1:return s=e.sent(),[3,3];case 2:return u=e.sent(),[2,new Error("AbortError"===u.name?"Network request aborted":"Network connection error")];case 3:return[2,we(s,r)]}}))}))}(n,a,s,l++,t,i)}),r)}))];case 1:return[2,f.sent()]}var v}))}))}function Pe(){var e,n,t=xe();return(null===(n=null===(e=window[t[0]])||void 0===e?void 0:e[t[1]])||void 0===n?void 0:n[t[2]])||1073741824}function xe(){return ke(new Uint32Array([1238629110,448276002,3812774028,808844344,1040086494,3917076003,2006609522,3391962601,1618783843,902064594,3846817827,1945380650,2587245025,908308022,938305751,2922813991,1910122279,3709215973,809499767,66414809,3983071030,916072247,3711377838,822474088,300514777,4182498348,953759295,3408360096,591258990,229539788]),[],5)}function Le(){var e,n,t=je();try{n=f()?null===(e=window.top)||void 0===e?void 0:e[t[0]]:window[t[0]]}catch(r){if("SecurityError"===r.name)return!1;throw r}if(!n)return!1;try{n[t[1]][t[2]](t[3],t[4],{},(function(){}))}catch(r){return!new RegExp(t[5]).test(r)}return!1}function Me(){return e.__awaiter(this,void 0,void 0,(function(){var n,r,i;return e.__generator(this,(function(e){switch(e.label){case 0:n=document,r=je(),(i=n.createElement("iframe")).style.display="none",e.label=1;case 1:return n.body?[3,3]:[4,t(50)];case 2:return e.sent(),[3,1];case 3:return e.trys.push([3,,5,6]),n.body.appendChild(i),[4,Promise.race([t(20,!1),new Promise((function(e){i.contentWindow?i.contentWindow[r[6]].addEventListener("error",(function(){return e(!0)})):e(!1)}))])];case 4:return[2,e.sent()];case 5:return i.remove(),[7];case 6:return[2]}}))}))}function qe(){var e=window.openDatabase,n=window.localStorage;try{e(null,null,null,null)}catch(t){return!0}try{return n.setItem("test","1"),n.removeItem("test"),!1}catch(t){return!0}}function je(){return ke(new Uint32Array([571803394,2333197341,667974149,459532809,2807590137,1996360231,241878290,3893584866,1793199716,1479125268,4262158585,1442777440,325646623,3826480888,665278571,175243026,2757050360,1760166496,1415636746,2836884200,2012960809,241499411,2840995822,1912086370,1482750223,4212860839,1726092917,359464731,3894101733,1487478637]),[],3)}var Ue=[[function(){return n.isChromium()},function(){return _(["ClipboardItem"in(n=window),"PerformanceEventTiming"in n,"RTCSctpTransport"in n])>=2?function(){return e.__awaiter(this,void 0,void 0,(function(){var n,t,r,i,o;return e.__generator(this,(function(e){switch(e.label){case 0:return n=xe(),t=navigator,r=t[n[3]],(i=t[n[4]])?[4,new Promise((function(e){i[n[5]]((function(n,t){return e(t)}))}))]:[3,2];case 1:return o=e.sent(),[3,4];case 2:return(null==r?void 0:r[n[6]])?[4,r[n[6]]().then((function(e){return e.quota}))]:[3,4];case 3:o=e.sent(),e.label=4;case 4:return o?[2,o<Pe()]:[2,!1]}}))}))}():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=window.webkitRequestFileSystem)?[4,new Promise((function(e){n(0,1,(function(){return e(!1)}),(function(){return e(!0)}))}))]:[2,!1];case 1:return[2,e.sent()]}}))}))}();var n}],[function(){return n.isWebKit()},function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return U()?n.isDesktopSafari()?[2,Le()]:[2,Me()]:[2,qe()]}))}))}],[function(){return n.isGecko()},function(){return new Promise((function(e){try{var n=indexedDB.open("test");n.onerror=function(){return e(!0)},n.onsuccess=function(){return e(!1)}}catch(t){return e(!0)}}))}],[function(){return n.isTrident()||n.isEdgeHTML()},function(){try{if(!window.indexedDB)return!0}catch(e){return!0}return!1}]];function Fe(n){var t=n.storageKeyPrefix;return e.__awaiter(this,void 0,void 0,(function(){var n,r,i;return e.__generator(this,(function(e){switch(e.label){case 0:return void 0!==(r=function(e){try{var n=localStorage.getItem(e);if(!n)return;return"1"===n}catch(t){return}}(n=t+"_i"))?[2,r]:[4,Ve()];case 1:return i=e.sent(),function(e,n){try{localStorage.setItem(e,n?"1":"0")}catch(t){}}(n,i),[2,i]}}))}))}function Ve(){return e.__awaiter(this,void 0,void 0,(function(){var n,t,r,i,o;return e.__generator(this,(function(e){switch(e.label){case 0:n=0,t=Ue,e.label=1;case 1:return n<t.length?(r=t[n],i=r[0],o=r[1],i()?[4,o()]:[3,3]):[3,4];case 2:return[2,e.sent()];case 3:return n++,[3,1];case 4:return[2,!1]}}))}))}function Be(){var e=window;if(!n.isChromium())return!1;try{if([66,114,97,118,101].map((function(e){return String.fromCharCode(e)})).join("")in e)return!0;var t=document.createElement("canvas");t.width=4,t.height=4,t.style.display="inline";var r=t.toDataURL();if(""===r)return!0;for(var i=window.atob(r.split(",")[1]),o=i.length,a=new Uint8Array(o),s=0;s<o;s++)a[s]=i.charCodeAt(s);var u=m(a,[73,68,65,84,24]);if(-1===u)return!1;var c=m(a,[73,69,78,68]);return-1!==c&&1321!==a.slice(u+5,c).reduce((function(e,n){return e+n}),0)}catch(l){return!1}}function Ge(){return e.__awaiter(this,void 0,void 0,(function(){var n,t;return e.__generator(this,(function(r){switch(r.label){case 0:return n=[],[4,c(a(2e3,-4),Ke.bind(null,(function(e){return n.push(e)})))];case 1:return t=r.sent(),[2,function(){var r=t();return 0===r||-4===r?{s:r,v:e.__spreadArrays(n)}:{s:r,v:null}}]}}))}))}function Ke(t){return e.__awaiter(this,void 0,void 0,(function(){var r,i,a;return e.__generator(this,(function(e){switch(e.label){case 0:if(r=window,!(i=r.RTCPeerConnection||r.webkitRTCPeerConnection))return[2,-3];try{a=new i({iceServers:ke(new Uint32Array([1116284708,2807606666,1856165634,1993636598,3410021538,3195192872,1656883084,2598385300,3564798284,1087152758,1841329857,3355624888,3127755894,1804885912,4294258839]),[],7).map((function(e){return{urls:"stun:"+e}}))})}catch(s){if("NotSupportedError"===s.name)return[2,-6];throw s}e.label=1;case 1:return e.trys.push([1,,3,4]),[4,new Promise((function(e,r){var i,u=!1;a.onicecandidate=function(n){var r=n.candidate;if(!r)return e(0);var i=r.candidate;i&&(t(i),!u&&/ typ [sp]rflx /.test(i)&&(u=!0,o(e,10,0)))},a.onicegatheringstatechange=function(){"complete"===a.iceGatheringState&&e(0)};try{null===(i=a.createDataChannel)||void 0===i||i.call(a,"test")}catch(s){return void("NotSupportedError"===s.name?e(-7):r(s))}var c=function(e,n){try{return e.createOffer(n)}catch(s){if(/\bcreateOffer\b.*(\bcallback\b.*\bnot a function\b|\barguments required\b.*\bpresent\b)/i.test(s.message))return new Promise((function(t,r){e.createOffer(t,r,n)}));throw s}}(a,n.isEdgeHTML()?{offerToReceiveAudio:!0}:void 0);void 0===c?e(-8):c.then((function(e){return a.setLocalDescription(e)}),r)}))];case 2:return[2,e.sent()];case 3:try{a.close()}catch(u){}return[7];case 4:return[2]}}))}))}function He(){return e.__awaiter(this,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:if("function"!=typeof(t=window.ApplePaySession))return[2,{s:-1,v:null}];e.label=1;case 1:return e.trys.push([1,4,,5]),t.canMakePayments()?n.isWebKit()&&!U()?[2,{s:0,v:1}]:[4,new Promise((function(e){return setTimeout(e,0)}))]:[2,{s:0,v:0}];case 2:return e.sent(),[4,Promise.race([t.canMakePaymentsWithActiveCard(""),a(100,!1)])];case 3:return[2,{s:0,v:e.sent()?3:2}];case 4:return[2,We(e.sent())];case 5:return[2]}}))}))}function We(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 Xe(){return!!$e("dark")||!$e("light")&&void 0}function $e(e){return matchMedia("(prefers-color-scheme: "+e+")").matches}function Je(){var e=Date.now();return[Ye(e),Ye(e-6e4*(new Date).getTimezoneOffset())]}function Ye(e){var n=Number(e);return isNaN(n)?-1:n}function ze(){var e=window.performance;if(null==e?void 0:e.now){for(var n=1,t=1,r=e.now(),i=r,o=0;o<5e4;o++)if((r=i)<(i=e.now())){var a=i-r;a>n?a<t&&(t=a):a<n&&(t=n,n=a)}return[n,t]}}function Qe(){var e,n;return null===(n=null===(e=window.performance)||void 0===e?void 0:e.memory)||void 0===n?void 0:n.jsHeapSizeLimit}var Ze=["MAX_TEXTURE_MAX_ANISOTROPY_EXT","FRAGMENT_SHADER_DERIVATIVE_HINT_OES","MAX_COLOR_ATTACHMENTS_WEBGL","MAX_DRAW_BUFFERS_WEBGL","DRAW_BUFFER0_WEBGL","DRAW_BUFFER1_WEBGL","VERTEX_ARRAY_BINDING_OES","TIMESTAMP_EXT","GPU_DISJOINT_EXT","MAX_VIEWS_OVR"],en=[10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32926,32928,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938],nn=[32926,32928],tn=["FRAGMENT_SHADER","VERTEX_SHADER"],rn=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"];function on(e,n,t){var r=e.getShaderPrecisionFormat(e[n],e[t]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function an(e){return"string"==typeof e&&!e.match(/[^A-Z0-9_x]/)}function sn(e){return Object.keys(e.__proto__).filter(an)}function un(){for(var t=document.createElement("canvas"),r=["webgl","experimental-webgl"],i=void 0,o=0;o<r.length&&!i;o++)try{i=t.getContext(r[o])}catch(s){}if(i){var a=e.__assign(e.__assign({},function(e){var t,r,i,o,a,s,u=e.getSupportedExtensions(),c=e.getExtension("WEBGL_debug_renderer_info"),l=e.getContextAttributes(),f=[],d=[],v=[],g=[];for(var h in l)Object.prototype.hasOwnProperty.call(l,h)&&f.push(h+"="+l[h]);for(var m=sn(e),p=n.isTrident(),_=0,w=m;_<w.length;_++){var b=e[k=w[_]];if(en.indexOf(b)>-1){var y=p&&-1===nn.indexOf(b)?e.getParameter(b):null;d.push(k+"("+b+")="+y)}else d.push(k+"="+b)}if(u)for(var R=0,E=u;R<E.length;R++){var T=E[R],S=e.getExtension(T);if(S)for(var I=0,O=sn(S);I<O.length;I++){var k;b=S[k=O[I]],Ze.indexOf(k)>0?v.push(k+"("+b+")="+e.getParameter(b)):v.push(k+"="+b)}}for(var A=0,N=tn;A<N.length;A++)for(var D=N[A],C=0,P=rn;C<P.length;C++){var x=P[C],L=on(e,D,x);g.push(D+"."+x+"="+L.join(","))}return v.sort(),d.sort(),{version:(null===(t=e.getParameter(e.VERSION))||void 0===t?void 0:t.toString())||"",vendor:(null===(r=e.getParameter(e.VENDOR))||void 0===r?void 0:r.toString())||"",vendorUnmasked:c?null===(i=e.getParameter(c.UNMASKED_VENDOR_WEBGL))||void 0===i?void 0:i.toString():"",renderer:(null===(o=e.getParameter(e.RENDERER))||void 0===o?void 0:o.toString())||"",rendererUnmasked:c?null===(a=e.getParameter(c.UNMASKED_RENDERER_WEBGL))||void 0===a?void 0:a.toString():"",shadingLanguageVersion:(null===(s=e.getParameter(e.SHADING_LANGUAGE_VERSION))||void 0===s?void 0:s.toString())||"",contextAttributes:f.join("&"),parameters:d.join("&"),shaderPrecisions:g.join("&"),extensions:u?u.join(","):"",extensionParameters:v.join(",")}}(i)),{fingerprint:""});return function(e){e.clearColor(0,0,1,1);var n=e.createProgram();if(n){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(n),e.useProgram(n),e.enableVertexAttribArray(0);var t=e.getUniformLocation(n,"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(t,3.65),e.drawArrays(4,0,3)}function i(t,r){var i=e.createShader(35633-t);n&&i&&(e.shaderSource(i,r),e.compileShader(i),e.attachShader(n,i))}}(i),a.fingerprint=t.toDataURL(),a}}function cn(){var t=window.speechSynthesis;if("function"!=typeof(null==t?void 0:t.getVoices))return-1;var i=function(){return t.getVoices()};return!t.addEventListener||n.isGecko()&&F()?ln(i()):function(n){return e.__awaiter(this,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,,2,3]),[4,new Promise((function(e,i){var a,s=function(){n.getVoices().length?(null==a||a(),a=r(e,50)):a||(a=o(e,600))};t=function(){try{s()}catch(e){i(e)}},s(),n.addEventListener("voiceschanged",t)}))];case 1:return[2,e.sent()];case 2:return t&&n.removeEventListener("voiceschanged",t),[7];case 3:return[2]}}))}))}(t).then((function(){return function(){var e=i();return e.length?ln(e):-2}}))}function ln(e){var n=function(e){return e.replace(/([,\\])/g,"\\$1")};return e.map((function(e){return[n(e.voiceURI),n(e.name),n(e.lang),e.localService?"1":"0",e.default?"1":"0"].join(",")})).sort()}function fn(){return{s:n.isWebKit()&&!n.isDesktopSafari()?U()?0:1:2,v:[(typeof SourceBuffer).slice(0,3),(typeof SourceBufferList).slice(0,3)]}}var dn={m:["$$s-macbook-pro","$$s-macbook-air","$$s-mac-mini"],i:["$$s-iphone"]},vn={m:["macbook-pro-$$","macbook-air-$$","mac-mini-$$"],i:["iphone-$$"]},gn={us:["james","mary","john","patricia","robert","jennifer","michael","linda","william","elizabeth","david","barbara","richard","susan","joseph","jessica","thomas","sarah","charles","karen","christopher","nancy","daniel","lisa","matthew","margaret","anthony","betty","donald","sandra"],gb:["oliver","george","noah","arthur","harry","leo","muhammad","jack","charlie","oscar","jacob","henry","thomas","joshua","william","olivia","amelia","isla","ava","mia","isabella","sophia","grace","lily","freya","emily","ivy","ella","rosie","charlotte"],ru:["aleksandr","sergej","vladimir","elena","tatana","andrej","aleksej","olga","nikolaj","natala","anna","ivan","dmitrij","irina","maria","mihail","svetlana","ekaterina","evgenij","viktor","anastasia","urij","ulia","valentin","roman","igor","anatolij","oleg","pavel","maksim"]},hn={m:["macbook-pro","macbook-air","mac-mini","mac-pro"],i:["iphone","iphone-2"]};function mn(n){return e.__awaiter(this,void 0,void 0,(function(){var t,r,i,a,s,u,c,l,f=this;return e.__generator(this,(function(d){switch(d.label){case 0:if(!(t=window.RTCPeerConnection))return[2,-5];r=Math.random().toString(),i=new Map,s="candidate:0 1 udp 2113937151 $ad $pt typ host generation 0 ufrag "+(a="ABCD")+" network-cost 999",u=new t({iceTransportPolicy:"all"}),c=u.createDataChannel(r),l=0,d.label=1;case 1:return d.trys.push([1,,3,4]),[4,new Promise((function(t,r){o((function(){return t(-4)}),1e3),u.oniceconnectionstatechange=function(){"checking"===u.iceConnectionState&&(l=setInterval((function(){return e.__awaiter(f,void 0,void 0,(function(){var n,r;return e.__generator(this,(function(e){switch(e.label){case 0:return"checking"!==u.iceConnectionState?[2,t([])]:[4,u.getStats()];case 1:return n=e.sent(),r=[],n.forEach((function(e){if("remote-candidate"===e.type){var n=i.get(e.port);r.push(n)}})),r.length>0&&t(r),[2]}}))}))}),30))},u.createOffer().then((function(e){var r=e.sdp;if(!r)return t(-5);for(var o=[],c=0;c<n.length;c++){var l=n[c],f=50003+c,d=s.replace("$ad",l).replace("$pt",f.toString());i.set(f,l),o.push("a="+d)}var v={type:"answer",sdp:r.replace(/a=ice-ufrag:(.*?)\s{1,2}/,"a=ice-ufrag:"+a+"\r\n").replace(/a=setup:(.*?)\s{1,2}/,"a=setup:active\r\n").replace(/c=IN IP4 ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/,(function(e,n){return"c=IN IP4 "+n+"\r\nb=AS:30\r\n"+o.join("\r\n")}))};return u.setLocalDescription(e),u.setRemoteDescription(v)}),r)}))];case 2:return[2,d.sent()];case 3:return c.close(),u.close(),clearInterval(l),[7];case 4:return[2]}}))}))}function pn(n){return e.__awaiter(this,void 0,void 0,(function(){var t,r=this;return e.__generator(this,(function(i){switch(i.label){case 0:t=new AbortController,i.label=1;case 1:return i.trys.push([1,,3,4]),[4,Promise.race(e.__spreadArrays(n.map((function(n){return e.__awaiter(r,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,fetch("http"+("http:"===location.protocol?"":"s")+"://"+n,{signal:t.signal})];case 1:return e.sent(),[3,3];case 2:return e.sent(),[3,3];case 3:return[2,n]}}))}))})),[a(500,-4)]))];case 2:return[2,i.sent()];case 3:return t.abort(),[7];case 4:return[2]}}))}))}function _n(){for(var t=!n.isDesktopSafari(),r=navigator.language.toLowerCase(),i=function(){var n={"en-us":e.__assign(e.__assign({},dn),{n:gn.us}),"en-gb":e.__assign(e.__assign({},dn),{n:gn.gb}),"ru-ru":e.__assign(e.__assign({},vn),{n:gn.ru})};return n.default=n["en-us"],n.en=n["en-us"],n.ru=n["ru-ru"],n}(),o=i[r]||i[r.slice(0,2)]||i.default,a=t?o.i.slice():o.m.slice(),s=t?hn.i.slice():hn.m.slice(),u=0,c=t?o.n:o.n.slice(0,15);u<c.length;u++)for(var l=c[u],f=0,d=a;f<d.length;f++){var v=d[f];s.push(v.replace("$$",l))}return s.map((function(e){return e+".local"}))}function wn(t){return e.__awaiter(this,void 0,void 0,(function(){var r,i;return e.__generator(this,(function(e){switch(e.label){case 0:return!n.isWebKit()||(o=window,_(["mediaSession"in navigator,"BigInt64Array"in o,"FormDataEvent"in o,"ImageBitmap"in o,"WebGL2RenderingContext"in o,"onclose"in o])>=4)?[2,-2]:[4,mn(r=_n())];case 1:return i=e.sent(),null==t||t(),"number"==typeof i?[2,i]:i.length===r.length?[2,-3]:i.length>1?[2,pn(i)]:1===i.length?[2,i[0]]:[2,-1]}var o}))}))}function bn(){var e,t,r,i=((r=new Promise((function(n,r){e=n,t=r}))).resolve=e,r.reject=t,r),o=a(n.isDesktopSafari()?310:410);return c(Promise.race([i,o]).then((function(e){if(void 0!==e)return a(e+100-Date.now())})).then((function(){return-4})),(function(){return wn((function(){return i.resolve(Date.now())}))}))}var yn=["brands","mobile","platform","platformVersion","architecture","bitness","model","uaFullVersion"];function Rn(){var n;return e.__awaiter(this,void 0,void 0,(function(){var t,r,i,o=this;return e.__generator(this,(function(a){switch(a.label){case 0:return(t=navigator.userAgentData)&&"object"==typeof t?(r={},i=[],"function"!=typeof t.getHighEntropyValues?[3,2]:[4,Promise.all(yn.map((function(n){return e.__awaiter(o,void 0,void 0,(function(){var o,a;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,t.getHighEntropyValues([n])];case 1:return void 0!==(o=e.sent()[n])&&(r[n]="string"==typeof o?o:JSON.stringify(o)),[3,3];case 2:if("NotAllowedError"!==(a=e.sent()).name)throw a;return i.push(n),[3,3];case 3:return[2]}}))}))})))]):[2,void 0];case 1:a.sent(),a.label=2;case 2:return[2,{b:t.brands.map((function(e){return{b:e.brand,v:e.version}})),m:t.mobile,p:null!==(n=t.platform)&&void 0!==n?n:null,h:r,nah:i}]}}))}))}function En(){var e=document.createElement("a").attributionsourceid;return void 0===e?void 0:String(e)}function Tn(){return function(e){for(var n,t,r=[],i=e;;)try{var o=null===(n=i.location)||void 0===n?void 0:n.href,a=null===(t=i.document)||void 0===t?void 0:t.referrer;if(void 0===o||void 0===a)return{s:1,v:r};r.push({l:o,f:a});var s=i.parent;if(!s||s===i)return{s:0,v:r};i=s}catch(u){if(Sn(u))return{s:1,v:r};throw u}}(window)}function Sn(e){if(!e||"object"!=typeof e)return!1;var t=e;return!(!n.isTrident()&&!n.isEdgeHTML()||"Error"!==t.name&&"TypeError"!==t.name||"Permission denied"!==t.message)||"SecurityError"===t.name}function In(){return function(e){var n=e.location,t=e.origin,r=n.origin,i=n.ancestorOrigins,o=null;if(i){o=new Array(i.length);for(var a=0;a<i.length;++a)o[a]=i[a]}return{w:null==t?null:t,l:null==r?null:r,a:o}}(window)}function On(){return eval.toString().length}function kn(){var n=this;return c(t(250,-2),(function(){return e.__awaiter(n,void 0,void 0,(function(){var n;return e.__generator(this,(function(e){switch(e.label){case 0:return(null==(n=navigator.mediaDevices)?void 0:n.enumerateDevices)?[4,n.enumerateDevices()]:[2,-1];case 1:return[2,e.sent().map((function(e){return{d:e.deviceId,g:e.groupId,k:e.kind,l:e.label}}))]}}))}))}))}function An(){return navigator.webdriver}function Nn(){var e;return null!==(e=navigator.doNotTrack)&&void 0!==e?e:void 0}function Dn(){var e;return null!==(e=window.devicePixelRatio)&&void 0!==e?e:void 0}function Cn(){var n=this;return c(t(75,-3),(function(){return e.__awaiter(n,void 0,void 0,(function(){var n,t,r,i;return e.__generator(this,(function(e){switch(e.label){case 0:if(!(n=navigator).requestMediaKeySystemAccess)return[2,-1];e.label=1;case 1:return e.trys.push([1,6,,7]),[4,n.requestMediaKeySystemAccess("org.w3.clearkey",[{initDataTypes:["keyids","webm"],audioCapabilities:["opus","vorbis"].map((function(e){return{contentType:'audio/webm; codecs="'+e+'"'}})),videoCapabilities:["vp9","vp8"].map((function(e){return{contentType:'video/webm; codecs="'+e+'"'}}))}])];case 2:return[4,e.sent().createMediaKeys()];case 3:return t=e.sent(),(r=t.createSession()).sessionId?[3,5]:[4,new Promise((function(e){r.onmessage=e,r.generateRequest("webm",new Uint8Array([1,1,1,1]))}))];case 4:e.sent(),e.label=5;case 5:return[2,r.sessionId];case 6:if("NotSupportedError"===(i=e.sent()).name)return[2,-2];throw i;case 7:return[2]}}))}))}))}function Pn(){var n=window.WebAssembly;if(null==n?void 0:n.validate){for(var t=[0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10],r=0,i=0,o=[[9,1,7,0,65,0,253,15,26,11,0,10,4,110,97,109,101,2,3,1,0,0],[240,67,0,0,0,12,1,10,0,252,2,3,1,1,0,0,110,26,11,161,10],[6,1,4,0,18,0,11,0,10,4,110,97,109,101,2,3,1,0,0],[8,1,6,0,65,0,192,26,11,0,10,4,110,97,109,101,2,3,1,0,0],[7,1,5,0,208,112,26,11,0,10,4,110,97,109,101,2,3,1,0,0]];i<o.length;i++){var a=o[i];r<<=1,r|=n.validate(Uint8Array.of.apply(Uint8Array,e.__spreadArrays(t,a)))?1:0}return r}}function xn(){for(var e=[],n=Math.random(),t=24575;t>=0;--t)if(t%4096==0){var r=Math.random();e.push((n-r)*Math.pow(2,31)|0),n=r}return e}function Ln(){var n;return e.__awaiter(this,void 0,void 0,(function(){var t,r,i,o,a,s,u=this;return e.__generator(this,(function(c){switch(c.label){case 0:if(!(t=null===(n=window.crypto)||void 0===n?void 0:n.subtle)||!t.generateKey||!t.exportKey)return[2,-1];r=function(){return e.__awaiter(u,void 0,void 0,(function(){var n,r;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,t.generateKey({name:"AES-GCM",length:128},!0,["encrypt"])];case 1:return n=e.sent(),[4,t.exportKey("raw",n)];case 2:return r=e.sent(),[2,new Uint8Array(r)]}}))}))},c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Promise.all([r(),r()])];case 2:for(i=c.sent(),o=new Uint8Array(i[0].length),a=0;a<i[0].length;++a)o[a]=165^i[0][a]^i[1][a];return[2,y(o)];case 3:if("NotSupportedError"===(s=c.sent()).name)return[2,-2];throw s;case 4:return[2]}}))}))}function Mn(t){var r=this,i=t.delayFallback,o=e.__rest(t,["delayFallback"]),a=n.loadSources(function(){var e;return(e={})[0]=Ge,e[1]=bn,e}(),o,[]),s=n.prepareForSources(i).then((function(){n.sources.screenFrame;var t=e.__rest(n.sources,["screenFrame"]);return n.loadSources(e.__assign(e.__assign(e.__assign({},function(){var e;return(e={})[2]=cn,e[3]=He,e[4]=Fe,e[5]=n.getScreenFrame,e[8]=kn,e[7]=Ln,e[6]=Cn,e[9]=Rn,e[10]=Pn,e[11]=Nn,e[12]=Be,e[13]=Xe,e[14]=Je,e[15]=xn,e[16]=ze,e[17]=Qe,e[18]=fn,e[19]=Dn,e[20]=n.isTrident,e[21]=n.isEdgeHTML,e[22]=n.isChromium,e[23]=n.isWebKit,e[24]=n.isDesktopSafari,e[25]=n.isGecko,e[26]=n.isAndroid,e[27]=En,e[28]=F,e[29]=Tn,e[30]=In,e[31]=On,e[32]=An,e}()),t),function(){var e;return(e={}).j=un,e}()),o,[])}));return function(){return e.__awaiter(r,void 0,void 0,(function(){var n,t,r;return e.__generator(this,(function(i){switch(i.label){case 0:return[4,Promise.all([a(),s.then((function(e){return e()}))])];case 1:return n=i.sent(),t=n[0],r=n[1],[2,e.__assign(e.__assign({},t),r)]}}))}))}}function qn(e){for(var n=e+"=",t=0,r=document.cookie.split(";");t<r.length;t++){for(var i=r[t],o=0;" "===i[o]&&o<i.length;)++o;if(i.indexOf(n)===o)return i.slice(o+n.length)}}function jn(e,n,t,r){var i=e+"="+n,o="expires="+new Date(Date.now()+24*t*60*60*1e3).toUTCString(),a=r?"domain="+r:"";document.cookie=[i,"path=/",o,a,"SameSite=Lax"].join("; ")}function Un(e,n,t){var r=location.hostname;(Fn(r,(function(n){!function(e,n){jn(e,"",-1,n)}(e,n)})),t<0)||Fn(r,(function(r){return jn(e,n,t,r),qn(e)!==n}))&&jn(e,n,t)}function Fn(e,n){var t=e.length;do{if(t=t>0?e.lastIndexOf(".",t-1):-1,!1===n(e.slice(t+1)))return!1}while(t>=0);return!0}function Vn(e,n){Un(n,e,365),function(e,n){var t;try{null===(t=null===localStorage||void 0===localStorage?void 0:localStorage.setItem)||void 0===t||t.call(localStorage,e,n)}catch(r){}}(n,e)}function Bn(e){var n,t;try{return null!==(t=null===(n=null===localStorage||void 0===localStorage?void 0:localStorage.getItem)||void 0===n?void 0:n.call(localStorage,e))&&void 0!==t?t:void 0}catch(r){}}function Gn(e,n,t,r,i){if(!n){var o=function(e,n){return n||(Object.prototype.hasOwnProperty.call(ae,e)||(e="us"),"https://tls-"+ae[e]+".fpapi.io")}(e,t);return L(i,(function(){return{e:6,endpoint:o}})),[se(o,r,i),Date.now()]}}function Kn(n,t,r,i,o,s,u,c){var l=this,f=function(n,t,c,f,g,h,m){return e.__awaiter(l,void 0,void 0,(function(){var l,p,_,w,b,y,R,E,T;return e.__generator(this,(function(e){switch(e.label){case 0:return l=a(f).then((function(){throw new Error("Client timeout")})),[4,Promise.race([l,Promise.all([v(m),d(f,c,m)])])];case 1:return p=e.sent(),_=p[0],w=p[1],y=function(e){return[qn(e),Bn(e)]}(b=u+"_t"),[4,Ce({apiKey:r,endpoint:De(i,o),components:_,customComponent:h,tag:n,visitorToken:y,tls:w,linkedId:t,extendedResult:g,algorithm:s},l,m)];case 2:return R=e.sent(),E=R[0],(T=R[1])&&Vn(T,b),[2,E]}}))}))},d=function(n,r,i){return e.__awaiter(l,void 0,void 0,(function(){var o,s,u,c,l;return e.__generator(this,(function(e){switch(e.label){case 0:if(!t||r)return[2,void 0];o=t[0],s=t[1],u=Math.min(Math.max(.1*n,s+1e4-Date.now()),.4*n),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,o(a(u))];case 2:return c=e.sent(),L(i,(function(){return{e:7,result:c}})),[2,{value:c}];case 3:return l=e.sent(),L(i,(function(){return{e:8,error:l}})),[2,{error:l}];case 4:return[2]}}))}))},v=function(t){return e.__awaiter(l,void 0,void 0,(function(){var r,i;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,n()];case 1:return r=e.sent(),L(t,(function(){return{e:13,result:r}})),[2,r];case 2:throw i=e.sent(),L(t,(function(){return{e:14,error:i}})),i;case 3:return[2]}}))}))};return{get:function(n){void 0===n&&(n={});var t=c&&function(n,t){return function(r){return n(e.__assign(e.__assign({},r),{getCallId:t}))}}(c,S(8));return M(t,(function(){return{e:3,options:n}}),(function(e){return{e:4,result:e}}),(function(e){return{e:5,error:e}}),(function(){var e=n.timeout,r=void 0===e?1e4:e,i=n.tag,o=n.linkedId,a=n.disableTls,s=n.extendedResult,u=n.environment;return f(i,E(o),a,r,s,u,t)}))}}}function Hn(n,t,r){var i,o=O([null==r?void 0:r.debug,(i=/{(.*?)}/.exec(location.hash),!!i&&1915004642===function(e){for(var n=0,t=0;t<e.length;++t)n=(n<<5)-n+e.charCodeAt(t)|0;return n}(i[1])&&D())]),a=o&&function(n,t){return function(r){return n(e.__assign(e.__assign({},r),{agentId:t}))}}(o,S(8));return M(a,(function(){return{e:0,version:"3.5.7",options:r}}),(function(){return{e:1}}),(function(e){return{e:2,error:e}}),(function(){var e=r.token,i=r.apiKey,o=void 0===i?e:i,s=r.region,u=void 0===s?"us":s,c=r.tlsEndpoint,l=r.disableTls,f=r.storageKey,d=void 0===f?"_vid":f,v=r.endpoint,g=r.delayFallback,h=r.algorithm;if(!o||"string"!=typeof o)throw new Error("Token required");var m=Gn(u,l,c,t,a);return L(a,(function(){return{e:12}})),Kn(n({delayFallback:g,storageKeyPrefix:d}),m,o,u,v,E(h),d,a)}))}var Wn=function(e){return Hn(Mn,void 0,e)},Xn={load:Wn,ERROR_CLIENT_TIMEOUT:"Client timeout",ERROR_NETWORK_CONNECTION:"Network connection error",ERROR_NETWORK_ABORT:"Network request aborted",ERROR_WRONG_REGION:me,ERROR_SUBSCRIPTION_NOT_ACTIVE:pe,ERROR_API_KEY_MISSING:"Token required",ERROR_API_KEY_INVALID:"Token not found",ERROR_API_KEY_EXPIRED:"Token expired",ERROR_BAD_REQUEST_FORMAT:"Request cannot be parsed",ERROR_BAD_RESPONSE_FORMAT:"Response 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",ERROR_UNSUPPORTED_VERSION:_e,ERROR_TOKEN_MISSING:"Token required",ERROR_TOKEN_INVALID:"Token not found",ERROR_TOKEN_EXPIRED:"Token expired"};exports.ERROR_API_KEY_EXPIRED="Token expired",exports.ERROR_API_KEY_INVALID="Token not found",exports.ERROR_API_KEY_MISSING="Token required",exports.ERROR_BAD_REQUEST_FORMAT="Request cannot be parsed",exports.ERROR_BAD_RESPONSE_FORMAT="Response 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_SUBSCRIPTION_NOT_ACTIVE=pe,exports.ERROR_TOKEN_EXPIRED="Token expired",exports.ERROR_TOKEN_INVALID="Token not found",exports.ERROR_TOKEN_MISSING="Token required",exports.ERROR_UNSUPPORTED_VERSION=_e,exports.ERROR_WRONG_REGION=me,exports.default=Xn,exports.load=Wn,exports.makeConsoleDebugger=A,exports.makeDebugReportBuilder=V,exports.makeMulticastDebugger=O,exports.makeRemoteDebugger=Z;
/**
* FingerprintJS Pro v3.5.6 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprintjs.com)
* FingerprintJS Pro v3.5.7 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprintjs.com)
*

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

}
/**
* Possible reasons for APIv1 backend to return 'n/a'.
* Even though APIv1 is not supported anymore, this dictionary is used for backward compatibility.
*/
declare const enum V1NotAvailableVisitorIdReason {
ApiKeyMissing = "Token required",
ApiKeyNotFound = "Token not found",
ApiKeyExpired = "Token expired",
BadRequestFormat = "Request cannot be parsed",
GeneralServerFailure = "Request failed",
ServerTimeout = "Request failed to process",
RateLimit = "Too many requests, rate limit exceeded",
ForbiddenOrigin = "Not available for this origin",
ForbiddenHeader = "Not available with restricted header",
CrawlBot = "Not available for crawl bots",
MissingUserAgent = "Not available when User-Agent is unspecified"
}

@@ -417,17 +400,17 @@ interface ResultExtraFields {

declare const ERROR_API_KEY_MISSING = V1NotAvailableVisitorIdReason.ApiKeyMissing;
declare const ERROR_API_KEY_INVALID = V1NotAvailableVisitorIdReason.ApiKeyNotFound;
declare const ERROR_API_KEY_EXPIRED = V1NotAvailableVisitorIdReason.ApiKeyExpired;
declare const ERROR_BAD_REQUEST_FORMAT = V1NotAvailableVisitorIdReason.BadRequestFormat;
declare const ERROR_GENERAL_SERVER_FAILURE = V1NotAvailableVisitorIdReason.GeneralServerFailure;
declare const ERROR_SERVER_TIMEOUT = V1NotAvailableVisitorIdReason.ServerTimeout;
declare const ERROR_RATE_LIMIT = V1NotAvailableVisitorIdReason.RateLimit;
declare const ERROR_FORBIDDEN_ORIGIN = V1NotAvailableVisitorIdReason.ForbiddenOrigin;
declare const ERROR_FORBIDDEN_HEADER = V1NotAvailableVisitorIdReason.ForbiddenHeader;
declare const ERROR_API_KEY_MISSING: string;
declare const ERROR_API_KEY_INVALID: string;
declare const ERROR_API_KEY_EXPIRED: string;
declare const ERROR_BAD_REQUEST_FORMAT: string;
declare const ERROR_GENERAL_SERVER_FAILURE: string;
declare const ERROR_SERVER_TIMEOUT: string;
declare const ERROR_RATE_LIMIT: string;
declare const ERROR_FORBIDDEN_ORIGIN: string;
declare const ERROR_FORBIDDEN_HEADER: string;
/** @deprecated Use ERROR_API_KEY_MISSING instead */
declare const ERROR_TOKEN_MISSING = V1NotAvailableVisitorIdReason.ApiKeyMissing;
declare const ERROR_TOKEN_MISSING: string;
/** @deprecated Use ERROR_API_KEY_INVALID instead */
declare const ERROR_TOKEN_INVALID = V1NotAvailableVisitorIdReason.ApiKeyNotFound;
declare const ERROR_TOKEN_INVALID: string;
/** @deprecated Use ERROR_API_KEY_EXPIRED instead */
declare const ERROR_TOKEN_EXPIRED = V1NotAvailableVisitorIdReason.ApiKeyExpired;
declare const ERROR_TOKEN_EXPIRED: string;
declare const _default: {

@@ -462,19 +445,19 @@ readonly load: (options: Readonly<Pick<LoadOptions, "delayFallback"> & {

readonly ERROR_SUBSCRIPTION_NOT_ACTIVE: string;
readonly ERROR_API_KEY_MISSING: V1NotAvailableVisitorIdReason.ApiKeyMissing;
readonly ERROR_API_KEY_INVALID: V1NotAvailableVisitorIdReason.ApiKeyNotFound;
readonly ERROR_API_KEY_EXPIRED: V1NotAvailableVisitorIdReason.ApiKeyExpired;
readonly ERROR_BAD_REQUEST_FORMAT: V1NotAvailableVisitorIdReason.BadRequestFormat;
readonly ERROR_API_KEY_MISSING: string;
readonly ERROR_API_KEY_INVALID: string;
readonly ERROR_API_KEY_EXPIRED: string;
readonly ERROR_BAD_REQUEST_FORMAT: string;
readonly ERROR_BAD_RESPONSE_FORMAT: "Response cannot be parsed";
readonly ERROR_GENERAL_SERVER_FAILURE: V1NotAvailableVisitorIdReason.GeneralServerFailure;
readonly ERROR_SERVER_TIMEOUT: V1NotAvailableVisitorIdReason.ServerTimeout;
readonly ERROR_RATE_LIMIT: V1NotAvailableVisitorIdReason.RateLimit;
readonly ERROR_FORBIDDEN_ORIGIN: V1NotAvailableVisitorIdReason.ForbiddenOrigin;
readonly ERROR_FORBIDDEN_HEADER: V1NotAvailableVisitorIdReason.ForbiddenHeader;
readonly ERROR_GENERAL_SERVER_FAILURE: string;
readonly ERROR_SERVER_TIMEOUT: string;
readonly ERROR_RATE_LIMIT: string;
readonly ERROR_FORBIDDEN_ORIGIN: string;
readonly ERROR_FORBIDDEN_HEADER: string;
readonly ERROR_UNSUPPORTED_VERSION: string;
/** @deprecated Use ERROR_API_KEY_MISSING instead */
readonly ERROR_TOKEN_MISSING: V1NotAvailableVisitorIdReason.ApiKeyMissing;
readonly ERROR_TOKEN_MISSING: string;
/** @deprecated Use ERROR_API_KEY_INVALID instead */
readonly ERROR_TOKEN_INVALID: V1NotAvailableVisitorIdReason.ApiKeyNotFound;
readonly ERROR_TOKEN_INVALID: string;
/** @deprecated Use ERROR_API_KEY_EXPIRED instead */
readonly ERROR_TOKEN_EXPIRED: V1NotAvailableVisitorIdReason.ApiKeyExpired;
readonly ERROR_TOKEN_EXPIRED: string;
};

@@ -481,0 +464,0 @@

/**
* FingerprintJS Pro v3.5.6 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprintjs.com)
* FingerprintJS Pro v3.5.7 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprintjs.com)
*

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

import{__awaiter as e,__generator as n,__assign as t,__rest as r,__spreadArrays as i}from"tslib";import{getFullscreenElement as o,murmurX64Hash128 as a,isGecko as u,isChromium as s,isWebKit as c,isDesktopSafari as l,isTrident as f,isEdgeHTML as d,loadSources as v,prepareForSources as h,sources as g,getScreenFrame as m,isAndroid as p}from"@fingerprintjs/fingerprintjs";function b(e,n){return new Promise((function(t){return y(t,e,n)}))}function y(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i=Date.now()+n,o=0,a=function(){o=setTimeout((function(){Date.now()<i?a():e.apply(void 0,t)}),i-Date.now())};return a(),function(){return clearTimeout(o)}}function w(e,n,t){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];var o,a=!1,u=e,s=0,c=function(){a||o||(s=Date.now(),o=y((function(){a=!0,t.apply(void 0,r)}),u))},l=function(){!a&&o&&(o(),o=void 0,u-=Date.now()-s)};return n&&c(),{start:c,stop:l}}function E(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i=document,o="visibilitychange",a=function(){return i.hidden?c():s()},u=w(n,!i.hidden,(function(){i.removeEventListener(o,a),e.apply(void 0,t)})),s=u.start,c=u.stop;return i.addEventListener(o,a),function(){i.removeEventListener(o,a),c()}}function R(e,n){return new Promise((function(t){return E(t,e,n)}))}function T(t,r){return e(this,void 0,void 0,(function(){var e;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,t()];case 1:return[2,n.sent()];case 2:return e=n.sent(),console.error(e),[2,r];case 3:return[2]}}))}))}function S(t,r){var i=this;return new Promise((function(o,a){var u=r(),s=!1;null==t||t.then(o,a).then((function(){return s=!0}));var c=function(t){return e(i,void 0,void 0,(function(){var e,r;return n(this,(function(n){switch(n.label){case 0:if(t.done)return[2,o(t.value)];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,t.value];case 2:if(e=n.sent(),!s)try{c(u.next(e))}catch(i){a(i)}return[3,4];case 3:if(r=n.sent(),!s)try{c(u.throw(r))}catch(i){a(i)}return[3,4];case 4:return[2]}}))}))};c(u.next())}))}function I(t,r){return e(this,void 0,void 0,(function(){var e,i,o,a;return n(this,(function(n){switch(n.label){case 0:try{e=r().then((function(e){return i=[!0,e]}),(function(e){return i=[!1,e]}))}catch(u){i=[!1,u]}return a=t.then((function(e){return o=[!0,e]}),(function(e){return o=[!1,e]})),[4,Promise.race([e,a])];case 1:return n.sent(),[2,function(){if(i){if(i[0])return i[1];throw i[1]}if(o){if(o[0])return o[1];throw o[1]}throw new Error("96375")}]}}))}))}function k(e,n){var r;return void 0===n&&(n=!1),t({name:e.name,message:e.message,stack:n?null===(r=e.stack)||void 0===r?void 0:r.split("\n"):e.stack},e)}function A(){var e=window;try{return e.self!==e.top}catch(n){return!0}}function _(e,t){var r;return n(this,(function(n){switch(n.label){case 0:r=0,n.label=1;case 1:return[4,Math.random()*Math.min(t,e*Math.pow(2,r))];case 2:n.sent(),n.label=3;case 3:return++r,[3,1];case 4:return[2]}}))}function C(e){return e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",D=O+"+/";function P(e,n){if(0==n.length||n.length>e.length)return-1;for(var t=0;t<e.length;t++){for(var r=0,i=0;i<n.length;i++){if(e[t+i]!==n[i]){r=0;break}r++}if(r==n.length)return t}return-1}function N(e){if("function"==typeof TextDecoder){var n=(new TextDecoder).decode(e);if(n)return n}var t=C(e);return decodeURIComponent(escape(String.fromCharCode.apply(null,t)))}function x(e){return e.reduce((function(e,n){return e+(n?1:0)}),0)}function L(e,n,t){return void 0===t&&(t="..."),e.length<=n?e:""+e.slice(0,Math.max(0,n-t.length))+t}function q(e,n){return(e-n+256)%256}function j(e){for(var n=C(e),t=n.length,r="",i=0;i<t;i+=3)r+=D[n[i]>>2]+D[(3&n[i])<<4|n[i+1]>>4]+D[(15&n[i+1])<<2|n[i+2]>>6]+D[63&n[i+2]];return t%3==2?r.slice(0,-1)+"=":t%3==1?r.slice(0,-2)+"==":r}function M(e){for(var n="",t=0;t<e.length;++t)if(t>0){var r=e[t].toLowerCase();r!==e[t]?n+=" "+r:n+=e[t]}else n+=e[t].toUpperCase();return n}function U(e){return void 0===e?void 0:""+e}function F(e,n){for(var t="",r=0;r<e;r++)t+=n.charAt(Math.random()*n.length);return t}function V(e){return F(e,O)}function B(){return 256*Math.random()|0}function G(e){var n=e.filter((function(e){return!!e}));return n.length?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=function(n){T((function(){return n.apply(void 0,e)}))},i=0,o=n;i<o.length;i++){var a=o[i];r(a)}}:void 0}function W(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"Visitor identifier request try has started";case 19:return"Visitor identifier request try has succeeded";case 20:return"Visitor identifier request try has failed"}}var $=function(e){return void 0===e&&(e="[FingerprintJS Pro] "),function(n){switch(n.e){case 2:case 5:case 8:case 11:case 14:case 17:case 20:console.error(K(e,n));break;case 13:var t=K(e,n),r=n.result;Object.keys(r).some((function(e){return r[e].error}))?console.warn(t):console.log(t);break;default:console.log(K(e,n))}}};function K(e,n){var t=n.e,i=r(n,["e"]),o=""+e+(new Date).toISOString()+": "+W(t);return Object.keys(i).length&&(o+="\n```\n"+function(e){return JSON.stringify(e,(function(e,n){return n instanceof Error?k(n,!0):n instanceof ArrayBuffer?"(base64) "+j(n):n}),2)}(i)+"\n```"),o}function H(e){void 0===e&&(e="[FingerprintJS Pro] ");var n={};return function(t){switch(t.e){case 15:n[t.getCallId]=t.request;break;case 18:console.log(e+"Visitor id request",n[t.getCallId]);break;case 19:console.log(e+"Visitor id response",t.body);break;case 16:case 17:delete n[t.getCallId]}}}function X(e){var n=e.url,t=e.method,r=void 0===t?"get":t,i=e.body,o=e.headers,a=e.withCredentials,u=void 0!==a&&a,s=e.timeout,c=e.responseFormat,l=e.abort;return new Promise((function(e,t){var a=new XMLHttpRequest;for(var f in a.open(r,n,!0),a.withCredentials=u,a.timeout=void 0===s?0:Math.max(s,1),"binary"===c&&(a.responseType="arraybuffer"),o)a.setRequestHeader(f,o[f]);a.onload=function(){return e(function(e){return{body:e.response,status:e.status,statusText:e.statusText}}(a))},a.ontimeout=function(){return t(J("TimeoutError","The request timed out"))},a.onabort=function(){return t(J("AbortError","The request is aborted"))},a.onerror=function(){return t(J("TypeError",navigator.onLine?"Connection error":"Network offline"))},a.send(function(e){var n,t=function(){try{return new Blob([]),!1}catch(n){return!0}};if(e instanceof ArrayBuffer){if(!t())return new Uint8Array(e)}else if((null===(n=e)||void 0===n?void 0:n.buffer)instanceof ArrayBuffer&&t())return e.buffer;return e}(i)),null==l||l.catch((function(){})).then((function(){a.onabort=null,a.abort()}))}))}function J(e,n){var t=new Error(n);return t.name=e,t}function z(e){var n,t=e.url,r=e.body;try{if(null===(n=navigator.sendBeacon)||void 0===n?void 0:n.call(navigator,t,r))return!0}catch(o){if("Illegal invocation"!==o.message)throw o}var i=new XMLHttpRequest;i.open("POST",t,!function(){var e,n=null===(e=window.event)||void 0===e?void 0:e.type;return"pagehide"===n||"unload"===n}()),r instanceof Blob&&i.setRequestHeader("Content-Type",r.type);try{i.send(r)}catch(a){return!1}return!0}function Y(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];e&&T((function(){var r=n.apply(void 0,t);void 0!==r&&e(r)}))}function Q(t,r,i,o,a){return e(this,void 0,void 0,(function(){var e,u;return n(this,(function(n){switch(n.label){case 0:Y(t,r),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,a()];case 2:return e=n.sent(),[3,4];case 3:throw u=n.sent(),Y(t,o,u),u;case 4:return Y(t,i,e),[2,e]}}))}))}function Z(){var e=window,n=e.__fpjs_pvid;return e.__fpjs_pvid="string"==typeof n?n:V(10)}function ee(e,n){for(var r={},i=0,o=Object.keys(e);i<o.length;i++){var a=o[i];!e[a].error&&n[a]?r[a]=t(t({},e[a]),{value:n[a](e[a].value)}):r[a]=e[a]}return r}function ne(){var e=window,n=navigator;return x(["maxTouchPoints"in n,"mediaCapabilities"in n,"PointerEvent"in e,"visualViewport"in e,"onafterprint"in e])>=4}function te(){var e=window;return x([!("PushManager"in e),!("AudioBuffer"in e),!("RTCPeerConnection"in e),!("geolocation"in navigator),!("ServiceWorker"in e)])>=3}var re=function(e){return new ie(e).addEvent},ie=function(){function e(e){var n=this;this.onReportReady=e,this.isStopped=!1,this.pageStartTimestamp=function(){var e,n,t=performance;if(t.timeOrigin){var r=null===(n=null===(e=t.getEntriesByType)||void 0===e?void 0:e.call(t,"navigation"))||void 0===n?void 0:n[0];if(r)return t.timeOrigin+(r.responseStart||r.unloadEventEnd)}return t.timing.domLoading||t.timing.responseStart||t.timing.unloadEventEnd}(),this.events={},this.addEvent=function(e){if(!n.isStopped){var t={time:new Date,type:"agentEvent",event:e};switch(0===e.e&&(t.documentReadyState=document.readyState,t.isPageVisible=de(),t.isFullscreen=ve(),t.network=he()),n.storeAgentEvent(t),e.e){case 2:n.submitReport(e.agentId,void 0);break;case 4:case 5:n.submitReport(e.agentId,e.getCallId)}}};for(var t=window,r=document,i=[[r,"readystatechange",function(){return n.handleDocumentReadyStateChange()}],[r,"visibilitychange",function(){return n.handleVisibilityChange()}],[r,"pageshow",function(){return n.handlePageTransition(!0)}],[r,"pagehide",function(){return n.handlePageTransition(!1)}],[t,"unload",function(){return n.handlePageUnload()}]],o=0,a=i;o<a.length;o++){var u=a[o],s=u[0],c=u[1],l=u[2];s.addEventListener(c,l)}var f=function(e,n){for(var t=document,r=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],i=0,o=r;i<o.length;i++){var a=o[i];t.addEventListener(a,e,n)}return function(){for(var i=0,o=r;i<o.length;i++){var a=o[i];t.removeEventListener(a,e,n)}}}((function(){return n.handleFullscreenChange()})),d=function(e){var n=navigator.connection;return(null==n?void 0:n.addEventListener)?(n.addEventListener("change",e),function(){n.removeEventListener("change",e)}):(addEventListener("online",e),addEventListener("offline",e),function(){removeEventListener("online",e),removeEventListener("offline",e)})}((function(){return n.handleNetworkConnectionChange()}));this.stop=function(){n.isStopped=!0;for(var e=0,t=i;e<t.length;e++){var r=t[e],o=r[0],a=r[1],u=r[2];o.removeEventListener(a,u)}f(),d()}}return e.prototype.handleDocumentReadyStateChange=function(){this.storeEnvironmentEvent({time:new Date,type:"documentReadyState",state:document.readyState})},e.prototype.handleVisibilityChange=function(){this.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:de()})},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:ve()})},e.prototype.handleNetworkConnectionChange=function(){this.storeEnvironmentEvent({time:new Date,type:"networkChange",network:he()})},e.prototype.handlePageUnload=function(){this.storeEnvironmentEvent({time:new Date,type:"pageUnload"});for(var e=0,n=Object.keys(this.events);e<n.length;e++){var t=n[e],r=this.events[t];if(0===Object.keys(r.getCalls).length)this.submitReport(t,void 0);else for(var i=0,o=Object.keys(r.getCalls);i<o.length;i++){var a=o[i];ae(r.getCalls[a])||this.submitReport(t,a)}}this.stop()},e.prototype.storeAgentEvent=function(e){var n=e.event,t=n.agentId;if(this.events[t]||(this.events[t]={commonEvents:[],getCalls:{}}),function(e){return"string"==typeof e.getCallId}(n)){var r=n.getCallId;this.events[t].getCalls[r]||(this.events[t].getCalls[r]=[]),this.events[t].getCalls[r].push(e)}else this.events[t].commonEvents.push(e)},e.prototype.storeEnvironmentEvent=function(e){for(var n=0,t=Object.keys(this.events);n<t.length;n++){var r=t[n];this.events[r].commonEvents.push(e)}},e.prototype.submitReport=function(e,n){var r=function(e,n){for(var r,i,o,a,u,s,c,l,f,d,v=function(e){for(var n={},t=0,r=e;t<r.length;t++){var i=r[t];"agentEvent"===i.type&&(n[i.event.e]=i)}return n}(e),h=(null===(r=e[e.length-1])||void 0===r?void 0:r.time)||new Date,g="null",m=0,p=[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]];m<p.length;m++){var b=p[m],y=b[0],w=b[1];if(v[y]){g=w;break}}return{time:(null===(i=e[e.length-1])||void 0===i?void 0:i.time)||new Date,pageUrl:location.href,pageStartTime:new Date(n),isInIframe:A(),agentVersion:null===(o=v[0])||void 0===o?void 0:o.event.version,userAgent:navigator.userAgent,pageViewId:Z(),agentId:null===(a=v[0])||void 0===a?void 0:a.event.agentId,getCallId:null===(u=v[3])||void 0===u?void 0:u.event.getCallId,requestId:null!==(c=null===(s=v[4])||void 0===s?void 0:s.event.result.requestId)&&void 0!==c?c:null===(l=v[5])||void 0===l?void 0:l.event.error.requestId,visitorId:null===(f=v[4])||void 0===f?void 0:f.event.result.visitorId,visitorToken:null===(d=v[16])||void 0===d?void 0:d.event.result[1],identificationState:g,timeBetweenLoadAndGet:oe(v[1],v[3]),load:ue(h,v[0],v[1],v[2]),get:ue(h,v[3],v[4],v[5]),tls:ce(ue(h,v[6],v[7],v[8]),(function(){var n,r;return t(t({},se(e,9,10,11,(null===(n=v[7])||void 0===n?void 0:n.time)||(null===(r=v[8])||void 0===r?void 0:r.time)||h)),{getPhaseDuration:oe(v[3],v[7]||v[8],h)})})),fingerprint:ce(ue(h,v[12],v[13],v[14],(function(e){var n=e.event;return{failedComponents:le(n.result),componentDurations:fe(n.result)}})),(function(){return{getPhaseDuration:oe(v[3],v[13]||v[14],h)}})),visitorIdRequest:ce(ue(h,v[15],v[16],v[17]),(function(){var n,t;return se(e,18,19,20,(null===(n=v[16])||void 0===n?void 0:n.time)||(null===(t=v[17])||void 0===t?void 0:t.time)||h)})),events:e}}(function(e,n,t){var r=[];e[n]&&(r.push.apply(r,e[n].commonEvents),void 0!==t&&r.push.apply(r,e[n].getCalls[t]||[]));return r.sort((function(e,n){return e.time.getTime()-n.time.getTime()})),r}(this.events,e,n),this.pageStartTimestamp);try{this.onReportReady(r)}catch(i){console.error(i)}},e}();function oe(e,n,t){var r=null==e?void 0:e.time,i=(null==n?void 0:n.time)||t;return r&&i&&i.getTime()-r.getTime()}function ae(e){return e.some((function(e){return"agentEvent"===e.type&&(4===e.event.e||5===e.event.e)}))}function ue(e,n,r,i,o){if(void 0!==n)return void 0!==r?t(t({},null==o?void 0:o(r)),{duration:r.time.getTime()-n.time.getTime(),state:"success"}):void 0!==i?{duration:i.time.getTime()-n.time.getTime(),state:"fail",error:i.event.error}:{duration:e.getTime()-n.time.getTime(),state:"incomplete"}}function se(e,n,t,r,i){for(var o=i.getTime(),a=function(e,n){for(var t={},r=0,i=e;r<i.length;r++){var o=i[r];if("agentEvent"===o.type&&-1!==n.indexOf(o.event.e)){var a=o.event;t[a.tryNumber]||(t[a.tryNumber]={}),t[a.tryNumber][a.e]=o}}for(var u=[],s=0,c=Object.keys(t);s<c.length;s++){var l=c[s];u.push(t[l])}return u}(e,[n,t,r]),u={triesCount:0,triesTotalDuration:0,completeTriesCount:0,completeTriesTotalDuration:0},s=0,c=a;s<c.length;s++){var l=c[s],f=l[n],d=l[t]||l[r];if(f){if(f.time.getTime()>=o)break;var v=d&&d.time.getTime()<=o,h=((null==d?void 0:d.time)||i).getTime()-f.time.getTime();u.triesCount++,u.triesTotalDuration+=h,v&&(u.completeTriesCount++,u.completeTriesTotalDuration+=h)}}return u}function ce(e,n){return e?t(t({},e),n()):void 0}function le(e){for(var n={},t=0,r=Object.keys(e);t<r.length;t++){var i=r[t],o=e[i].error;o&&(n[i]=o)}return n}function fe(e){for(var n={},t=0,r=Object.keys(e);t<r.length;t++){var i=r[t];n[i]=e[i].duration}return n}function de(){return!document.hidden}function ve(){return!!o()}function he(){var e=navigator.connection;return{online:navigator.onLine,downlink:null==e?void 0:e.downlink,downlinkMax:null==e?void 0:e.downlinkMax,effectiveType:null==e?void 0:e.effectiveType,roundTrip:null==e?void 0:e.rtt,saveData:null==e?void 0:e.saveData,type:null==e?void 0:e.type}}var ge=function(t){var r=this,i=t.clientId,o=t.token,a=t.endpoint,u=void 0===a?"https://api.rollbar.com/api/1/item/":a;return new ie((function(t){return e(r,void 0,void 0,(function(){var e;return n(this,(function(n){switch(n.label){case 0:return e=function(e,n,t,r){return{access_token:t,data:me(e,n,r)}}(t,i,o),[4,Ee(u,e)];case 1:return n.sent(),[2]}}))}))})).addEvent};function me(e,n,t){var r,o;void 0===t&&(t=[8,4,4,4,12].map((function(e){return F(e,"0123456789abcdef")})).join("-"));var a=pe[e.identificationState],u=a.level,s=a.message;return{environment:n,level:u,timestamp:Math.round(e.time.getTime()/1e3),platform:"browser",framework:"FingerprintJS Pro",language:"javascript",uuid:t,notifier:{name:"FingerprintJS Pro monitoring",version:"3.5.6"},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)?we(e.fingerprint.componentDurations):void 0}}],e.events.map(be)),message:{body:s}},custom:{isInIframe:e.isInIframe,pageViewId:e.pageViewId,agentId:e.agentId,getCallId:e.getCallId,requestId:e.requestId,visitorId:e.visitorId,visitorToken:e.visitorToken,identificationState:e.identificationState,timeBetweenLoadAndGet:e.timeBetweenLoadAndGet,load:e.load,get:e.get,tls:e.tls,fingerprint:ye(e.fingerprint),visitorIdRequest:e.visitorIdRequest}}}var pe={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 be(e){var n={type:"manual",level:"debug",source:"client",timestamp_ms:e.time.getTime()};switch(e.type){case"documentReadyState":return t(t({},n),{body:{message:'Document ready state becomes "'+e.state+'"'}});case"pageVisibilityToggle":return t(t({},n),{body:{message:"Page becomes "+(e.isVisible?"visible (in foreground)":"invisible (in background)")}});case"pageTransition":return t(t({},n),{body:{message:e.isShown?"Page is restored from browser history":"Page is about to go to browser history"}});case"fullscreenToggle":return t(t({},n),{body:{message:"Programmatic fullscreen "+(e.isFullscreen?"on":"off")}});case"networkChange":return t(t({},n),{body:t(t({},e.network),{message:"Network connection changes"})});case"pageUnload":return t(t({},n),{body:{message:"Page is about to unload (terminate)"}})}var i,o,a,u=e.event,s=function(i,o){void 0===o&&(o="info");for(var a=i,s=(a.e,a.agentId,a.getCallId,r(a,["e","agentId","getCallId"])),c=t(t({},n),{level:o,body:t({message:W(u.e)},s)}),l=0,f=["documentReadyState","isPageVisible","isFullscreen","network"];l<f.length;l++){var d=f[l];void 0!==e[d]&&(c.body[d]=e[d])}return c};switch(u.e){case 0:u.version;return s(r(u,["version"]));case 1:case 3:case 4:case 6:case 9:case 12:case 15:case 16:case 18:return s(u);case 2:case 5:case 8:case 11:case 14:case 17:case 20:return s(u,"error");case 7:return s(t(t({},u),{result:L(u.result,1e3)}));case 10:return s(t(t({},u),{body:L(u.body,1e3)}));case 13:return s(t(t({},u),{result:(i=u.result,a="(removed to fit into beacon)",ee(i,(o={plugins:function(e){return e&&a},math:function(){return a},fontPreferences:function(){return a}},o.j=function(e){return e&&a},o[9]=function(e){return e&&a},o)))}));case 19:var c=u.body;if(c instanceof ArrayBuffer){c="(base64) "+(c.byteLength>1800?j(new Uint8Array(c,0,1800))+"...":j(c))}return s(t(t({},u),{body:c}))}}function ye(e){if(!e||"incomplete"===e.state||"fail"===e.state)return e;e.componentDurations;var n=r(e,["componentDurations"]),i=Object.keys(e.failedComponents),o=i.length?","+i.join(",")+",":void 0;return t(t({},n),{failedComponents:o})}function we(e,n){void 0===n&&(n="_");for(var r=t({},e),i=0,o=Object.keys(e);i<o.length;i++){var a=o[i];if(/^\d+$/.test(a)){delete r[a];var u=a;do{u=""+n+u}while(u in r);r[u]=e[a]}}return r}function Ee(t,r){return e(this,void 0,void 0,(function(){var e,i;return n(this,(function(n){switch(n.label){case 0:e=function(e){return JSON.stringify(e,(function(e,n){if(n instanceof Error){var t=k(n);return"string"==typeof t.stack&&(t.stack=L(t.stack,1e3)),t}return n}))}(r),i=_(1e3,1e4),n.label=1;case 1:return navigator.onLine&&z({url:t,body:e})?[3,4]:[4,b(i.next().value)];case 2:n.sent(),n.label=3;case 3:return[3,1];case 4:return[2]}}))}))}var Re={us:"use1",eu:"eun1",ap:"aps1"};function Te(t,r,i){var o,a=function(e,t,r,i){void 0===r&&(r=1/0);var o=_(300,1e4);return S(null==i?void 0:i.then((function(){}),(function(){})),(function(){var a,u,s;return n(this,(function(n){switch(n.label){case 0:a=0,n.label=1;case 1:if(!(a<r))return[3,8];u=Date.now(),n.label=2;case 2:return n.trys.push([2,4,,5]),[4,e(a,i)];case 3:return[2,n.sent()];case 4:return s=n.sent(),t(s),[3,5];case 5:return[4,b(u+o.next().value-Date.now())];case 6:n.sent(),n.label=7;case 7:return++a,[3,1];case 8:return[2,void 0]}}))}))}((function(r,o){return function(t,r,i,o,a){return e(this,void 0,void 0,(function(){var e,u;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,Q(a,(function(){return{e:9,tryNumber:i,timeout:r}}),(function(e){var n=e.status,t=e.body;return{e:10,tryNumber:i,status:n,body:t}}),(function(e){return{e:11,tryNumber:i,error:e}}),(function(){return X({url:t,timeout:r,abort:o})}))];case 1:return e=n.sent(),[3,3];case 2:switch((u=n.sent()).name){case"AbortError":throw Se(u.message,-2);case"TimeoutError":throw Se(u.message,-3);case"TypeError":throw Se(u.message,-4)}throw u;case 3:if(200===e.status)return[2,e.body];throw Se(L(e.status+": "+e.body,255),-5)}}))}))}(t,5e3,r,o,i)}),(function(e){return o=e}),10,r);return a.catch((function(){})),function(e){return void 0===e&&(e=new Promise((function(){}))),Promise.race([e.then((function(){}),(function(){})),a]).then((function(e){if(void 0!==e)return e;throw o||Se("Timeout",-3)}))}}function Se(e,n){var t=new Error(e);return t.__="slt",t.s=n,t}var Ie="Client timeout",ke="Network connection error",Ae="Network request aborted",_e="Response cannot be parsed";function Ce(e){var n,r=e.components,i=e.customComponent,o=e.apiKey,u=e.visitorToken,s=e.tls,c=e.tag,l=e.extendedResult,f=e.linkedId,d=e.algorithm;return(n={}).c=o,n.url=location.href,n.t=function(e){if(e&&"object"==typeof e)return e;if(null==e)return;return{tag:e}}(c),n.cbd=l?1:void 0,n.lid=f,n.cr=document.referrer||void 0,n.a=d,n.s1=xe(r.osCpu,-1),n.s2=Pe(r.languages),n.s3=Pe(r.colorDepth),n.s4=xe(r.deviceMemory,-1),n.s5=Oe(r.screenResolution,(function(e){return{s:0,v:e.map((function(e){return null===e?-1:e}))}})),n.s6=Oe(r[5],(function(e){return{s:0,v:e.map((function(e){return null===e?-1:e}))}})),n.s7=xe(r.hardwareConcurrency,-1),n.s8=Le(r[6]),n.s9=Pe(r.timezone),n.s10=Pe(r.sessionStorage),n.s11=Pe(r.localStorage),n.s12=xe(r.indexedDB,-1),n.s13=Pe(r.openDatabase),n.s14=xe(r.cpuClass,-1),n.s15=Pe(r.platform),n.s16=xe(r.plugins,-1),n.s17=Oe(r.canvas,(function(e){return{s:0,v:t(t({},e),{geometry:a(e.geometry),text:a(e.text)})}})),n.s18=Le(r[7]),n.s19=Pe(r.touchSupport),n.s20=Pe(r.fonts),n.s21=Oe(r.audio,(function(e){return-1===e||-2===e||-3===e?{s:e,v:null}:{s:0,v:e}})),n.s22=xe(r[10],-1),n.s24=Pe(r[31]),n.s26=Le(r[8]),n.s27=Pe(r.vendor),n.s28=Pe(r.vendorFlavors),n.s30=xe(r[11],-1),n.s31=Pe(r[4]),n.s32=Pe(r.cookiesEnabled),n.s33=Pe(r[12]),n.s34=Ne(r[0]),n.s35=Ne(r[3]),n.s36=xe(r.domBlockers,-1),n.s37=xe(r.colorGamut,-1),n.s38=xe(r.contrast,-1),n.s39=xe(r.forcedColors,-1),n.s40=xe(r.hdr,-1),n.s41=xe(r.invertedColors,-1),n.s42=xe(r.monochrome,-1),n.s43=xe(r.reducedMotion,-1),n.s44=xe(r[13],-1),n.s45=Pe(r[14]),n.s46=Oe(r.math,(function(e){return{s:0,v:a(Object.keys(e).map((function(n){return n+"="+e[n]})).join(","))}})),n.s47=Oe(r.j,(function(e){return{s:e?0:-1,v:e?t(t({},e),{contextAttributes:a(e.contextAttributes),parameters:a(e.parameters),shaderPrecisions:a(e.shaderPrecisions),extensions:a(e.extensions),extensionParameters:a(e.extensionParameters),fingerprint:a(e.fingerprint)}):null}})),n.s48=Pe(r[15]),n.s49=xe(r[16],-1),n.s50=xe(r[17],-1),n.s51=Pe(r.fontPreferences),n.s52=Oe(r[2],(function(e){return{s:"number"==typeof e?e:e.length?0:1,v:"number"==typeof e?"":a(JSON.stringify(e))}})),n.s53=Ne(r[18]),n.s54=Le(r[1]),n.s55=function(e){var n=e[0],t=e[1];if(void 0!==n&&void 0!==t)return{s:0,v:n||t};if(void 0!==n)return{s:1,v:n};if(void 0!==t)return{s:2,v:t};return{s:-1,v:null}}(u),n.s56=function(e){if(!e)return{s:-1,v:null};if(e.error){var n=e.error;return function(e){return"slt"===e.__}(n)?{s:n.s,v:null}:{e:n.message}}return{s:0,v:e.value}}(s),n.s57=xe(r[19],-1),n.s58=xe(r[9],-1),n.s59=Pe(r[20]),n.s60=Pe(r[21]),n.s61=Pe(r[22]),n.s62=Pe(r[23]),n.s63=Pe(r[24]),n.s64=Pe(r[25]),n.s65=Pe(r[26]),n.s66=xe(r[27],-1),n.s67=i?{s:0,v:i}:{s:-1,v:null},n.s68=Pe(r[28]),n.s69=Ne(r[29]),n.s71=Pe(r[30]),n.s72=xe(r[32],-1),n}function Oe(e,n){return e.error?{e:De(e.error)}:n(e.value)}function De(e){var n;try{n=""+e.message,"name"in e&&(n=e.name+": "+n)}catch(e){n="Code 3017: "+e.name+": "+e.message}return L(n,500)}function Pe(e){return Oe(e,(function(e){return{s:0,v:e}}))}function Ne(e){return Oe(e,(function(e){return e}))}function xe(e,n){return Oe(e,(function(e){return{s:null==e?n:0,v:null!=e?e:null}}))}function Le(e){return Oe(e,(function(e){return"number"==typeof e?{s:e,v:null}:{s:0,v:e}}))}var qe=M("WrongRegion"),je=M("SubscriptionNotActive"),Me=M("UnsupportedVersion");function Ue(e,n){var r=e.bodyData;return void 0===r?Ke(e):function(e){return e instanceof Object&&"2"===e.v&&e.products instanceof Object}(r)?function(e,n){var r=e.notifications,i=e.requestId,o=e.error,a=e.products;if(We(r),o)return Fe(o,i,n);var u=a.identification;if(!u)throw new Error("There is no identification result in the response");if(We(u.notifications),u.error)return Fe(u.error,i,n);return[t({requestId:i},u.data.result),u.data.visitorToken]}(r,n):Ke(e)}function Fe(e,n,t){switch(e.code){case"NotAvailableForCrawlBots":return Be(n,!0,t);case"NotAvailableWithoutUA":return Be(n,void 0,t);case"Failed":case"RequestTimeout":return Ge(Ve(e),n,e);default:throw Ge(Ve(e),n,e)}}function Ve(e){var n,t=e.code,r=e.message;return void 0===t?r:null!==(n=function(e){switch(e){case"TokenRequired":return"Token required";case"TokenNotFound":return"Token not found";case"TokenExpired":return"Token expired";case"RequestCannotBeParsed":return"Request cannot be parsed";case"Failed":return"Request failed";case"RequestTimeout":return"Request failed to process";case"TooManyRequests":return"Too many requests, rate limit exceeded";case"OriginNotAvailable":return"Not available for this origin";case"HeaderRestricted":return"Not available with restricted header";case"NotAvailableForCrawlBots":return"Not available for crawl bots";case"NotAvailableWithoutUA":return"Not available when User-Agent is unspecified"}}(t))&&void 0!==n?n:M(t)}function Be(e,n,r){var i={requestId:e,visitorFound:!1,visitorId:"",confidence:{score:.9,comment:"The real score is unknown"}};if(!r)return[i];var o="n/a",a=t(t({},i),{bot:{probability:1},incognito:!1,browserName:o,browserVersion:o,device:o,ip:o,os:o,osVersion:o});return void 0!==n&&(a.bot.safe=n),[a]}function Ge(e,n,t){var r=new Error(e);return void 0!==n&&(r.requestId=n),void 0!==t&&(r.raw=t),r}function We(e){null==e||e.forEach($e)}function $e(e){var n=e.level,t=e.message;"error"===n?console.error(t):"warning"===n?console.warn(t):console.log(t)}function Ke(e){var n=Ge("Response cannot be parsed",void 0,{httpStatusCode:e.status,bodyBase64:j(e.body)});if(e.status>=500)return n;throw n}function He(e,n,t,r,i){void 0===i&&(i=B);var o=i()%(t+1),a=function(e){if("function"==typeof TextEncoder)return(new TextEncoder).encode(e);for(var n=unescape(encodeURI(e)),t=new Uint8Array(n.length),r=0;r<n.length;++r)t[r]=n.charCodeAt(r);return t}(JSON.stringify(e)),u=1+n.length+1+o+r+a.length,s=new ArrayBuffer(u),c=new Uint8Array(s),l=0,f=i();c[l++]=f;for(var d=0,v=n;d<v.length;d++){var h=v[d];c[l++]=f+h}c[l++]=f+o;for(var g=0;g<o;++g)c[l++]=i();var m=new Uint8Array(r);for(g=0;g<r;++g)m[g]=i(),c[l++]=m[g];for(g=0;g<a.length;++g)c[l++]=a[g]^m[g%r];return s}function Xe(e,n,t){var r=function(){throw new Error("Invalid data")},i=C(e);i.length<n.length+2&&r();for(var o=0;o<n.length;++o)q(i[1+o],i[0])!==n[o]&&r();var a=1+n.length,u=q(i[a],i[0]);i.length<a+1+u+t&&r();var s=a+1+u,c=s+t,l=new Uint8Array(i.length-c);for(o=0;o<l.length;++o)l[o]=i[c+o]^i[s+o%t];return JSON.parse(N(l))}var Je=[3,7];function ze(r){return e(this,void 0,void 0,(function(){var e,i,o;return n(this,(function(n){switch(n.label){case 0:return[4,X(t(t({},r),{body:(u=r.body,He(u,Je,3,7)),responseFormat:"binary"}))];case 1:e=n.sent();try{a=e.body,i=Xe(a,Je,7),o=!0}catch(s){try{i=JSON.parse(N(e.body)),o=!1}catch(c){}}return[2,t(t({},e),{bodyData:i,isSecret:o})]}var a,u}))}))}function Ye(e,n){if(n)return n;var t="api.fpjs.io";return"us"!==e&&(t=e+"."+t),"https://"+t}function Qe(i,o,a){var u=i.endpoint,s=i.extendedResult,c=void 0!==s&&s,l=r(i,["endpoint","extendedResult"]);return e(this,void 0,void 0,(function(){var r,i,s;return n(this,(function(f){switch(f.label){case 0:return r=(d=u)+(-1===d.indexOf("?")?"?":"&")+"ci=js/"+encodeURIComponent("3.5.6"),i=Ce(t({extendedResult:c},l)),s=0,[4,Q(a,(function(){return{e:15,endpoint:r,request:i}}),(function(e){return{e:16,result:e}}),(function(e){return{e:17,error:e}}),(function(){return function(e,t){var r,i=_(300,1e4);return S(null==t?void 0:t.catch((function(e){r||(r=e)})).then((function(){throw r})),(function(){var o,a,u;return n(this,(function(n){switch(n.label){case 0:return o=Date.now(),[4,e(t)];case 1:return(a=n.sent())instanceof Error?(r=a,u=i.next().value,[4,b(o+u-Date.now())]):[2,a];case 2:n.sent(),n.label=3;case 3:return[3,0];case 4:return[2]}}))}))}((function(t){return function(t,r,i,o,a,u){return e(this,void 0,void 0,(function(){var e,s;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,Q(u,(function(){return{e:18,tryNumber:o}}),(function(e){var n=e.status,t=e.body,r=e.bodyData,i=e.isSecret;return{e:19,tryNumber:o,status:n,body:null!=r?r:t,isSecret:i}}),(function(e){return{e:20,tryNumber:o,error:e}}),(function(){return ze({url:t,method:"post",body:r,headers:{"Content-Type":"text/plain"},withCredentials:!0,abort:a})}))];case 1:return e=n.sent(),[3,3];case 2:return s=n.sent(),[2,new Error("AbortError"===s.name?"Network request aborted":"Network connection error")];case 3:return[2,Ue(e,i)]}}))}))}(r,i,c,s++,t,a)}),o)}))];case 1:return[2,f.sent()]}var d}))}))}function Ze(){var e,n,t=en();return(null===(n=null===(e=window[t[0]])||void 0===e?void 0:e[t[1]])||void 0===n?void 0:n[t[2]])||1073741824}function en(){return Xe(new Uint32Array([1238629110,448276002,3812774028,808844344,1040086494,3917076003,2006609522,3391962601,1618783843,902064594,3846817827,1945380650,2587245025,908308022,938305751,2922813991,1910122279,3709215973,809499767,66414809,3983071030,916072247,3711377838,822474088,300514777,4182498348,953759295,3408360096,591258990,229539788]),[],5)}function nn(){var e,n,t=on();try{n=A()?null===(e=window.top)||void 0===e?void 0:e[t[0]]:window[t[0]]}catch(r){if("SecurityError"===r.name)return!1;throw r}if(!n)return!1;try{n[t[1]][t[2]](t[3],t[4],{},(function(){}))}catch(r){return!new RegExp(t[5]).test(r)}return!1}function tn(){return e(this,void 0,void 0,(function(){var e,t,r;return n(this,(function(n){switch(n.label){case 0:e=document,t=on(),(r=e.createElement("iframe")).style.display="none",n.label=1;case 1:return e.body?[3,3]:[4,b(50)];case 2:return n.sent(),[3,1];case 3:return n.trys.push([3,,5,6]),e.body.appendChild(r),[4,Promise.race([b(20,!1),new Promise((function(e){r.contentWindow?r.contentWindow[t[6]].addEventListener("error",(function(){return e(!0)})):e(!1)}))])];case 4:return[2,n.sent()];case 5:return r.remove(),[7];case 6:return[2]}}))}))}function rn(){var e=window.openDatabase,n=window.localStorage;try{e(null,null,null,null)}catch(t){return!0}try{return n.setItem("test","1"),n.removeItem("test"),!1}catch(t){return!0}}function on(){return Xe(new Uint32Array([571803394,2333197341,667974149,459532809,2807590137,1996360231,241878290,3893584866,1793199716,1479125268,4262158585,1442777440,325646623,3826480888,665278571,175243026,2757050360,1760166496,1415636746,2836884200,2012960809,241499411,2840995822,1912086370,1482750223,4212860839,1726092917,359464731,3894101733,1487478637]),[],3)}var an=[[function(){return s()},function(){return x(["ClipboardItem"in(t=window),"PerformanceEventTiming"in t,"RTCSctpTransport"in t])>=2?function(){return e(this,void 0,void 0,(function(){var e,t,r,i,o;return n(this,(function(n){switch(n.label){case 0:return e=en(),t=navigator,r=t[e[3]],(i=t[e[4]])?[4,new Promise((function(n){i[e[5]]((function(e,t){return n(t)}))}))]:[3,2];case 1:return o=n.sent(),[3,4];case 2:return(null==r?void 0:r[e[6]])?[4,r[e[6]]().then((function(e){return e.quota}))]:[3,4];case 3:o=n.sent(),n.label=4;case 4:return o?[2,o<Ze()]:[2,!1]}}))}))}():function(){return e(this,void 0,void 0,(function(){var e;return n(this,(function(n){switch(n.label){case 0:return(e=window.webkitRequestFileSystem)?[4,new Promise((function(n){e(0,1,(function(){return n(!1)}),(function(){return n(!0)}))}))]:[2,!1];case 1:return[2,n.sent()]}}))}))}();var t}],[function(){return c()},function(){return e(this,void 0,void 0,(function(){return n(this,(function(e){return ne()?l()?[2,nn()]:[2,tn()]:[2,rn()]}))}))}],[function(){return u()},function(){return new Promise((function(e){try{var n=indexedDB.open("test");n.onerror=function(){return e(!0)},n.onsuccess=function(){return e(!1)}}catch(t){return e(!0)}}))}],[function(){return f()||d()},function(){try{if(!window.indexedDB)return!0}catch(e){return!0}return!1}]];function un(t){var r=t.storageKeyPrefix;return e(this,void 0,void 0,(function(){var e,t,i;return n(this,(function(n){switch(n.label){case 0:return void 0!==(t=function(e){try{var n=localStorage.getItem(e);if(!n)return;return"1"===n}catch(t){return}}(e=r+"_i"))?[2,t]:[4,sn()];case 1:return i=n.sent(),function(e,n){try{localStorage.setItem(e,n?"1":"0")}catch(t){}}(e,i),[2,i]}}))}))}function sn(){return e(this,void 0,void 0,(function(){var e,t,r,i,o;return n(this,(function(n){switch(n.label){case 0:e=0,t=an,n.label=1;case 1:return e<t.length?(r=t[e],i=r[0],o=r[1],i()?[4,o()]:[3,3]):[3,4];case 2:return[2,n.sent()];case 3:return e++,[3,1];case 4:return[2,!1]}}))}))}function cn(){var e=window;if(!s())return!1;try{if([66,114,97,118,101].map((function(e){return String.fromCharCode(e)})).join("")in e)return!0;var n=document.createElement("canvas");n.width=4,n.height=4,n.style.display="inline";var t=n.toDataURL();if(""===t)return!0;for(var r=window.atob(t.split(",")[1]),i=r.length,o=new Uint8Array(i),a=0;a<i;a++)o[a]=r.charCodeAt(a);var u=P(o,[73,68,65,84,24]);if(-1===u)return!1;var c=P(o,[73,69,78,68]);return-1!==c&&1321!==o.slice(u+5,c).reduce((function(e,n){return e+n}),0)}catch(l){return!1}}function ln(){return e(this,void 0,void 0,(function(){var e,t;return n(this,(function(n){switch(n.label){case 0:return e=[],[4,I(R(2e3,-4),fn.bind(null,(function(n){return e.push(n)})))];case 1:return t=n.sent(),[2,function(){var n=t();return 0===n||-4===n?{s:n,v:i(e)}:{s:n,v:null}}]}}))}))}function fn(t){return e(this,void 0,void 0,(function(){var e,r,i;return n(this,(function(n){switch(n.label){case 0:if(e=window,!(r=e.RTCPeerConnection||e.webkitRTCPeerConnection))return[2,-3];try{i=new r({iceServers:Xe(new Uint32Array([1116284708,2807606666,1856165634,1993636598,3410021538,3195192872,1656883084,2598385300,3564798284,1087152758,1841329857,3355624888,3127755894,1804885912,4294258839]),[],7).map((function(e){return{urls:"stun:"+e}}))})}catch(o){if("NotSupportedError"===o.name)return[2,-6];throw o}n.label=1;case 1:return n.trys.push([1,,3,4]),[4,new Promise((function(e,n){var r,a=!1;i.onicecandidate=function(n){var r=n.candidate;if(!r)return e(0);var i=r.candidate;i&&(t(i),!a&&/ typ [sp]rflx /.test(i)&&(a=!0,E(e,10,0)))},i.onicegatheringstatechange=function(){"complete"===i.iceGatheringState&&e(0)};try{null===(r=i.createDataChannel)||void 0===r||r.call(i,"test")}catch(o){return void("NotSupportedError"===o.name?e(-7):n(o))}var u=function(e,n){try{return e.createOffer(n)}catch(o){if(/\bcreateOffer\b.*(\bcallback\b.*\bnot a function\b|\barguments required\b.*\bpresent\b)/i.test(o.message))return new Promise((function(t,r){e.createOffer(t,r,n)}));throw o}}(i,d()?{offerToReceiveAudio:!0}:void 0);void 0===u?e(-8):u.then((function(e){return i.setLocalDescription(e)}),n)}))];case 2:return[2,n.sent()];case 3:try{i.close()}catch(a){}return[7];case 4:return[2]}}))}))}function dn(){return e(this,void 0,void 0,(function(){var e;return n(this,(function(n){switch(n.label){case 0:if("function"!=typeof(e=window.ApplePaySession))return[2,{s:-1,v:null}];n.label=1;case 1:return n.trys.push([1,4,,5]),e.canMakePayments()?c()&&!ne()?[2,{s:0,v:1}]:[4,new Promise((function(e){return setTimeout(e,0)}))]:[2,{s:0,v:0}];case 2:return n.sent(),[4,Promise.race([e.canMakePaymentsWithActiveCard(""),R(100,!1)])];case 3:return[2,{s:0,v:n.sent()?3:2}];case 4:return[2,vn(n.sent())];case 5:return[2]}}))}))}function vn(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 hn(){return!!gn("dark")||!gn("light")&&void 0}function gn(e){return matchMedia("(prefers-color-scheme: "+e+")").matches}function mn(){var e=Date.now();return[pn(e),pn(e-6e4*(new Date).getTimezoneOffset())]}function pn(e){var n=Number(e);return isNaN(n)?-1:n}function bn(){var e=window.performance;if(null==e?void 0:e.now){for(var n=1,t=1,r=e.now(),i=r,o=0;o<5e4;o++)if((r=i)<(i=e.now())){var a=i-r;a>n?a<t&&(t=a):a<n&&(t=n,n=a)}return[n,t]}}function yn(){var e,n;return null===(n=null===(e=window.performance)||void 0===e?void 0:e.memory)||void 0===n?void 0:n.jsHeapSizeLimit}var wn=["MAX_TEXTURE_MAX_ANISOTROPY_EXT","FRAGMENT_SHADER_DERIVATIVE_HINT_OES","MAX_COLOR_ATTACHMENTS_WEBGL","MAX_DRAW_BUFFERS_WEBGL","DRAW_BUFFER0_WEBGL","DRAW_BUFFER1_WEBGL","VERTEX_ARRAY_BINDING_OES","TIMESTAMP_EXT","GPU_DISJOINT_EXT","MAX_VIEWS_OVR"],En=[10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32926,32928,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938],Rn=[32926,32928],Tn=["FRAGMENT_SHADER","VERTEX_SHADER"],Sn=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"];function In(e,n,t){var r=e.getShaderPrecisionFormat(e[n],e[t]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function kn(e){return"string"==typeof e&&!e.match(/[^A-Z0-9_x]/)}function An(e){return Object.keys(e.__proto__).filter(kn)}function _n(){for(var e=document.createElement("canvas"),n=["webgl","experimental-webgl"],r=void 0,i=0;i<n.length&&!r;i++)try{r=e.getContext(n[i])}catch(a){}if(r){var o=t(t({},function(e){var n,t,r,i,o,a,u=e.getSupportedExtensions(),s=e.getExtension("WEBGL_debug_renderer_info"),c=e.getContextAttributes(),l=[],d=[],v=[],h=[];for(var g in c)Object.prototype.hasOwnProperty.call(c,g)&&l.push(g+"="+c[g]);for(var m=An(e),p=f(),b=0,y=m;b<y.length;b++){var w=e[_=y[b]];if(En.indexOf(w)>-1){var E=p&&-1===Rn.indexOf(w)?e.getParameter(w):null;d.push(_+"("+w+")="+E)}else d.push(_+"="+w)}if(u)for(var R=0,T=u;R<T.length;R++){var S=T[R],I=e.getExtension(S);if(I)for(var k=0,A=An(I);k<A.length;k++){var _;w=I[_=A[k]],wn.indexOf(_)>0?v.push(_+"("+w+")="+e.getParameter(w)):v.push(_+"="+w)}}for(var C=0,O=Tn;C<O.length;C++)for(var D=O[C],P=0,N=Sn;P<N.length;P++){var x=N[P],L=In(e,D,x);h.push(D+"."+x+"="+L.join(","))}return v.sort(),d.sort(),{version:(null===(n=e.getParameter(e.VERSION))||void 0===n?void 0:n.toString())||"",vendor:(null===(t=e.getParameter(e.VENDOR))||void 0===t?void 0:t.toString())||"",vendorUnmasked:s?null===(r=e.getParameter(s.UNMASKED_VENDOR_WEBGL))||void 0===r?void 0:r.toString():"",renderer:(null===(i=e.getParameter(e.RENDERER))||void 0===i?void 0:i.toString())||"",rendererUnmasked:s?null===(o=e.getParameter(s.UNMASKED_RENDERER_WEBGL))||void 0===o?void 0:o.toString():"",shadingLanguageVersion:(null===(a=e.getParameter(e.SHADING_LANGUAGE_VERSION))||void 0===a?void 0:a.toString())||"",contextAttributes:l.join("&"),parameters:d.join("&"),shaderPrecisions:h.join("&"),extensions:u?u.join(","):"",extensionParameters:v.join(",")}}(r)),{fingerprint:""});return function(e){e.clearColor(0,0,1,1);var n=e.createProgram();if(n){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(n),e.useProgram(n),e.enableVertexAttribArray(0);var t=e.getUniformLocation(n,"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(t,3.65),e.drawArrays(4,0,3)}function i(t,r){var i=e.createShader(35633-t);n&&i&&(e.shaderSource(i,r),e.compileShader(i),e.attachShader(n,i))}}(r),o.fingerprint=e.toDataURL(),o}}function Cn(){var t=window.speechSynthesis;if("function"!=typeof(null==t?void 0:t.getVoices))return-1;var r=function(){return t.getVoices()};return!t.addEventListener||u()&&te()?On(r()):function(t){return e(this,void 0,void 0,(function(){var e;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,,2,3]),[4,new Promise((function(n,r){var i,o=function(){t.getVoices().length?(null==i||i(),i=y(n,50)):i||(i=E(n,600))};e=function(){try{o()}catch(e){r(e)}},o(),t.addEventListener("voiceschanged",e)}))];case 1:return[2,n.sent()];case 2:return e&&t.removeEventListener("voiceschanged",e),[7];case 3:return[2]}}))}))}(t).then((function(){return function(){var e=r();return e.length?On(e):-2}}))}function On(e){var n=function(e){return e.replace(/([,\\])/g,"\\$1")};return e.map((function(e){return[n(e.voiceURI),n(e.name),n(e.lang),e.localService?"1":"0",e.default?"1":"0"].join(",")})).sort()}function Dn(){return{s:c()&&!l()?ne()?0:1:2,v:[(typeof SourceBuffer).slice(0,3),(typeof SourceBufferList).slice(0,3)]}}var Pn={m:["$$s-macbook-pro","$$s-macbook-air","$$s-mac-mini"],i:["$$s-iphone"]},Nn={m:["macbook-pro-$$","macbook-air-$$","mac-mini-$$"],i:["iphone-$$"]},xn={us:["james","mary","john","patricia","robert","jennifer","michael","linda","william","elizabeth","david","barbara","richard","susan","joseph","jessica","thomas","sarah","charles","karen","christopher","nancy","daniel","lisa","matthew","margaret","anthony","betty","donald","sandra"],gb:["oliver","george","noah","arthur","harry","leo","muhammad","jack","charlie","oscar","jacob","henry","thomas","joshua","william","olivia","amelia","isla","ava","mia","isabella","sophia","grace","lily","freya","emily","ivy","ella","rosie","charlotte"],ru:["aleksandr","sergej","vladimir","elena","tatana","andrej","aleksej","olga","nikolaj","natala","anna","ivan","dmitrij","irina","maria","mihail","svetlana","ekaterina","evgenij","viktor","anastasia","urij","ulia","valentin","roman","igor","anatolij","oleg","pavel","maksim"]},Ln={m:["macbook-pro","macbook-air","mac-mini","mac-pro"],i:["iphone","iphone-2"]};function qn(t){return e(this,void 0,void 0,(function(){var r,i,o,a,u,s,c,l,f=this;return n(this,(function(d){switch(d.label){case 0:if(!(r=window.RTCPeerConnection))return[2,-5];i=Math.random().toString(),o=new Map,u="candidate:0 1 udp 2113937151 $ad $pt typ host generation 0 ufrag "+(a="ABCD")+" network-cost 999",s=new r({iceTransportPolicy:"all"}),c=s.createDataChannel(i),l=0,d.label=1;case 1:return d.trys.push([1,,3,4]),[4,new Promise((function(r,i){E((function(){return r(-4)}),1e3),s.oniceconnectionstatechange=function(){"checking"===s.iceConnectionState&&(l=setInterval((function(){return e(f,void 0,void 0,(function(){var e,t;return n(this,(function(n){switch(n.label){case 0:return"checking"!==s.iceConnectionState?[2,r([])]:[4,s.getStats()];case 1:return e=n.sent(),t=[],e.forEach((function(e){if("remote-candidate"===e.type){var n=o.get(e.port);t.push(n)}})),t.length>0&&r(t),[2]}}))}))}),30))},s.createOffer().then((function(e){var n=e.sdp;if(!n)return r(-5);for(var i=[],c=0;c<t.length;c++){var l=t[c],f=50003+c,d=u.replace("$ad",l).replace("$pt",f.toString());o.set(f,l),i.push("a="+d)}var v={type:"answer",sdp:n.replace(/a=ice-ufrag:(.*?)\s{1,2}/,"a=ice-ufrag:"+a+"\r\n").replace(/a=setup:(.*?)\s{1,2}/,"a=setup:active\r\n").replace(/c=IN IP4 ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/,(function(e,n){return"c=IN IP4 "+n+"\r\nb=AS:30\r\n"+i.join("\r\n")}))};return s.setLocalDescription(e),s.setRemoteDescription(v)}),i)}))];case 2:return[2,d.sent()];case 3:return c.close(),s.close(),clearInterval(l),[7];case 4:return[2]}}))}))}function jn(t){return e(this,void 0,void 0,(function(){var r,o=this;return n(this,(function(a){switch(a.label){case 0:r=new AbortController,a.label=1;case 1:return a.trys.push([1,,3,4]),[4,Promise.race(i(t.map((function(t){return e(o,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,fetch("http"+("http:"===location.protocol?"":"s")+"://"+t,{signal:r.signal})];case 1:return e.sent(),[3,3];case 2:return e.sent(),[3,3];case 3:return[2,t]}}))}))})),[R(500,-4)]))];case 2:return[2,a.sent()];case 3:return r.abort(),[7];case 4:return[2]}}))}))}function Mn(){for(var e=!l(),n=navigator.language.toLowerCase(),r=function(){var e={"en-us":t(t({},Pn),{n:xn.us}),"en-gb":t(t({},Pn),{n:xn.gb}),"ru-ru":t(t({},Nn),{n:xn.ru})};return e.default=e["en-us"],e.en=e["en-us"],e.ru=e["ru-ru"],e}(),i=r[n]||r[n.slice(0,2)]||r.default,o=e?i.i.slice():i.m.slice(),a=e?Ln.i.slice():Ln.m.slice(),u=0,s=e?i.n:i.n.slice(0,15);u<s.length;u++)for(var c=s[u],f=0,d=o;f<d.length;f++){var v=d[f];a.push(v.replace("$$",c))}return a.map((function(e){return e+".local"}))}function Un(t){return e(this,void 0,void 0,(function(){var e,r;return n(this,(function(n){switch(n.label){case 0:return!c()||(i=window,x(["mediaSession"in navigator,"BigInt64Array"in i,"FormDataEvent"in i,"ImageBitmap"in i,"WebGL2RenderingContext"in i,"onclose"in i])>=4)?[2,-2]:[4,qn(e=Mn())];case 1:return r=n.sent(),null==t||t(),"number"==typeof r?[2,r]:r.length===e.length?[2,-3]:r.length>1?[2,jn(r)]:1===r.length?[2,r[0]]:[2,-1]}var i}))}))}function Fn(){var e,n,t,r=((t=new Promise((function(t,r){e=t,n=r}))).resolve=e,t.reject=n,t),i=R(l()?310:410);return I(Promise.race([r,i]).then((function(e){if(void 0!==e)return R(e+100-Date.now())})).then((function(){return-4})),(function(){return Un((function(){return r.resolve(Date.now())}))}))}var Vn=["brands","mobile","platform","platformVersion","architecture","bitness","model","uaFullVersion"];function Bn(){var t;return e(this,void 0,void 0,(function(){var r,i,o,a=this;return n(this,(function(u){switch(u.label){case 0:return(r=navigator.userAgentData)&&"object"==typeof r?(i={},o=[],"function"!=typeof r.getHighEntropyValues?[3,2]:[4,Promise.all(Vn.map((function(t){return e(a,void 0,void 0,(function(){var e,a;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,r.getHighEntropyValues([t])];case 1:return void 0!==(e=n.sent()[t])&&(i[t]="string"==typeof e?e:JSON.stringify(e)),[3,3];case 2:if("NotAllowedError"!==(a=n.sent()).name)throw a;return o.push(t),[3,3];case 3:return[2]}}))}))})))]):[2,void 0];case 1:u.sent(),u.label=2;case 2:return[2,{b:r.brands.map((function(e){return{b:e.brand,v:e.version}})),m:r.mobile,p:null!==(t=r.platform)&&void 0!==t?t:null,h:i,nah:o}]}}))}))}function Gn(){var e=document.createElement("a").attributionsourceid;return void 0===e?void 0:String(e)}function Wn(){return function(e){for(var n,t,r=[],i=e;;)try{var o=null===(n=i.location)||void 0===n?void 0:n.href,a=null===(t=i.document)||void 0===t?void 0:t.referrer;if(void 0===o||void 0===a)return{s:1,v:r};r.push({l:o,f:a});var u=i.parent;if(!u||u===i)return{s:0,v:r};i=u}catch(s){if($n(s))return{s:1,v:r};throw s}}(window)}function $n(e){if(!e||"object"!=typeof e)return!1;var n=e;return!(!f()&&!d()||"Error"!==n.name&&"TypeError"!==n.name||"Permission denied"!==n.message)||"SecurityError"===n.name}function Kn(){return function(e){var n=e.location,t=e.origin,r=n.origin,i=n.ancestorOrigins,o=null;if(i){o=new Array(i.length);for(var a=0;a<i.length;++a)o[a]=i[a]}return{w:null==t?null:t,l:null==r?null:r,a:o}}(window)}function Hn(){return eval.toString().length}function Xn(){var t=this;return I(b(250,-2),(function(){return e(t,void 0,void 0,(function(){var e;return n(this,(function(n){switch(n.label){case 0:return(null==(e=navigator.mediaDevices)?void 0:e.enumerateDevices)?[4,e.enumerateDevices()]:[2,-1];case 1:return[2,n.sent().map((function(e){return{d:e.deviceId,g:e.groupId,k:e.kind,l:e.label}}))]}}))}))}))}function Jn(){return navigator.webdriver}function zn(){var e;return null!==(e=navigator.doNotTrack)&&void 0!==e?e:void 0}function Yn(){var e;return null!==(e=window.devicePixelRatio)&&void 0!==e?e:void 0}function Qn(){var t=this;return I(b(75,-3),(function(){return e(t,void 0,void 0,(function(){var e,t,r,i;return n(this,(function(n){switch(n.label){case 0:if(!(e=navigator).requestMediaKeySystemAccess)return[2,-1];n.label=1;case 1:return n.trys.push([1,6,,7]),[4,e.requestMediaKeySystemAccess("org.w3.clearkey",[{initDataTypes:["keyids","webm"],audioCapabilities:["opus","vorbis"].map((function(e){return{contentType:'audio/webm; codecs="'+e+'"'}})),videoCapabilities:["vp9","vp8"].map((function(e){return{contentType:'video/webm; codecs="'+e+'"'}}))}])];case 2:return[4,n.sent().createMediaKeys()];case 3:return t=n.sent(),(r=t.createSession()).sessionId?[3,5]:[4,new Promise((function(e){r.onmessage=e,r.generateRequest("webm",new Uint8Array([1,1,1,1]))}))];case 4:n.sent(),n.label=5;case 5:return[2,r.sessionId];case 6:if("NotSupportedError"===(i=n.sent()).name)return[2,-2];throw i;case 7:return[2]}}))}))}))}function Zn(){var e=window.WebAssembly;if(null==e?void 0:e.validate){for(var n=[0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10],t=0,r=0,o=[[9,1,7,0,65,0,253,15,26,11,0,10,4,110,97,109,101,2,3,1,0,0],[240,67,0,0,0,12,1,10,0,252,2,3,1,1,0,0,110,26,11,161,10],[6,1,4,0,18,0,11,0,10,4,110,97,109,101,2,3,1,0,0],[8,1,6,0,65,0,192,26,11,0,10,4,110,97,109,101,2,3,1,0,0],[7,1,5,0,208,112,26,11,0,10,4,110,97,109,101,2,3,1,0,0]];r<o.length;r++){var a=o[r];t<<=1,t|=e.validate(Uint8Array.of.apply(Uint8Array,i(n,a)))?1:0}return t}}function et(){for(var e=[],n=Math.random(),t=24575;t>=0;--t)if(t%4096==0){var r=Math.random();e.push((n-r)*Math.pow(2,31)|0),n=r}return e}function nt(){var t;return e(this,void 0,void 0,(function(){var r,i,o,a,u,s,c=this;return n(this,(function(l){switch(l.label){case 0:if(!(r=null===(t=window.crypto)||void 0===t?void 0:t.subtle)||!r.generateKey||!r.exportKey)return[2,-1];i=function(){return e(c,void 0,void 0,(function(){var e,t;return n(this,(function(n){switch(n.label){case 0:return[4,r.generateKey({name:"AES-GCM",length:128},!0,["encrypt"])];case 1:return e=n.sent(),[4,r.exportKey("raw",e)];case 2:return t=n.sent(),[2,new Uint8Array(t)]}}))}))},l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Promise.all([i(),i()])];case 2:for(o=l.sent(),a=new Uint8Array(o[0].length),u=0;u<o[0].length;++u)a[u]=165^o[0][u]^o[1][u];return[2,j(a)];case 3:if("NotSupportedError"===(s=l.sent()).name)return[2,-2];throw s;case 4:return[2]}}))}))}function tt(i){var o=this,a=i.delayFallback,b=r(i,["delayFallback"]),y=v(function(){var e;return(e={})[0]=ln,e[1]=Fn,e}(),b,[]),w=h(a).then((function(){g.screenFrame;var e=r(g,["screenFrame"]);return v(t(t(t({},function(){var e;return(e={})[2]=Cn,e[3]=dn,e[4]=un,e[5]=m,e[8]=Xn,e[7]=nt,e[6]=Qn,e[9]=Bn,e[10]=Zn,e[11]=zn,e[12]=cn,e[13]=hn,e[14]=mn,e[15]=et,e[16]=bn,e[17]=yn,e[18]=Dn,e[19]=Yn,e[20]=f,e[21]=d,e[22]=s,e[23]=c,e[24]=l,e[25]=u,e[26]=p,e[27]=Gn,e[28]=te,e[29]=Wn,e[30]=Kn,e[31]=Hn,e[32]=Jn,e}()),e),function(){var e;return(e={}).j=_n,e}()),b,[])}));return function(){return e(o,void 0,void 0,(function(){var e,r,i;return n(this,(function(n){switch(n.label){case 0:return[4,Promise.all([y(),w.then((function(e){return e()}))])];case 1:return e=n.sent(),r=e[0],i=e[1],[2,t(t({},r),i)]}}))}))}}function rt(e){for(var n=e+"=",t=0,r=document.cookie.split(";");t<r.length;t++){for(var i=r[t],o=0;" "===i[o]&&o<i.length;)++o;if(i.indexOf(n)===o)return i.slice(o+n.length)}}function it(e,n,t,r){var i=e+"="+n,o="expires="+new Date(Date.now()+24*t*60*60*1e3).toUTCString(),a=r?"domain="+r:"";document.cookie=[i,"path=/",o,a,"SameSite=Lax"].join("; ")}function ot(e,n,t){var r=location.hostname;(at(r,(function(n){!function(e,n){it(e,"",-1,n)}(e,n)})),t<0)||at(r,(function(r){return it(e,n,t,r),rt(e)!==n}))&&it(e,n,t)}function at(e,n){var t=e.length;do{if(t=t>0?e.lastIndexOf(".",t-1):-1,!1===n(e.slice(t+1)))return!1}while(t>=0);return!0}function ut(e,n){ot(n,e,365),function(e,n){var t;try{null===(t=null===localStorage||void 0===localStorage?void 0:localStorage.setItem)||void 0===t||t.call(localStorage,e,n)}catch(r){}}(n,e)}function st(e){var n,t;try{return null!==(t=null===(n=null===localStorage||void 0===localStorage?void 0:localStorage.getItem)||void 0===n?void 0:n.call(localStorage,e))&&void 0!==t?t:void 0}catch(r){}}function ct(e,n,t,r,i){if(!n){var o=function(e,n){return n||(Object.prototype.hasOwnProperty.call(Re,e)||(e="us"),"https://tls-"+Re[e]+".fpapi.io")}(e,t);return Y(i,(function(){return{e:6,endpoint:o}})),[Te(o,r,i),Date.now()]}}function lt(r,i,o,a,u,s,c,l){var f=this,d=function(t,r,i,l,d,g,m){return e(f,void 0,void 0,(function(){var e,f,p,b,y,w,E,T,S;return n(this,(function(n){switch(n.label){case 0:return e=R(l).then((function(){throw new Error("Client timeout")})),[4,Promise.race([e,Promise.all([h(m),v(l,i,m)])])];case 1:return f=n.sent(),p=f[0],b=f[1],w=function(e){return[rt(e),st(e)]}(y=c+"_t"),[4,Qe({apiKey:o,endpoint:Ye(a,u),components:p,customComponent:g,tag:t,visitorToken:w,tls:b,linkedId:r,extendedResult:d,algorithm:s},e,m)];case 2:return E=n.sent(),T=E[0],(S=E[1])&&ut(S,y),[2,T]}}))}))},v=function(t,r,o){return e(f,void 0,void 0,(function(){var e,a,u,s,c;return n(this,(function(n){switch(n.label){case 0:if(!i||r)return[2,void 0];e=i[0],a=i[1],u=Math.min(Math.max(.1*t,a+1e4-Date.now()),.4*t),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,e(R(u))];case 2:return s=n.sent(),Y(o,(function(){return{e:7,result:s}})),[2,{value:s}];case 3:return c=n.sent(),Y(o,(function(){return{e:8,error:c}})),[2,{error:c}];case 4:return[2]}}))}))},h=function(t){return e(f,void 0,void 0,(function(){var e,i;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,r()];case 1:return e=n.sent(),Y(t,(function(){return{e:13,result:e}})),[2,e];case 2:throw i=n.sent(),Y(t,(function(){return{e:14,error:i}})),i;case 3:return[2]}}))}))};return{get:function(e){void 0===e&&(e={});var n=l&&function(e,n){return function(r){return e(t(t({},r),{getCallId:n}))}}(l,V(8));return Q(n,(function(){return{e:3,options:e}}),(function(e){return{e:4,result:e}}),(function(e){return{e:5,error:e}}),(function(){var t=e.timeout,r=void 0===t?1e4:t,i=e.tag,o=e.linkedId,a=e.disableTls,u=e.extendedResult,s=e.environment;return d(i,U(o),a,r,u,s,n)}))}}}function ft(e,n,r){var i,o=G([null==r?void 0:r.debug,(i=/{(.*?)}/.exec(location.hash),!!i&&1915004642===function(e){for(var n=0,t=0;t<e.length;++t)n=(n<<5)-n+e.charCodeAt(t)|0;return n}(i[1])&&H())]),a=o&&function(e,n){return function(r){return e(t(t({},r),{agentId:n}))}}(o,V(8));return Q(a,(function(){return{e:0,version:"3.5.6",options:r}}),(function(){return{e:1}}),(function(e){return{e:2,error:e}}),(function(){var t=r.token,i=r.apiKey,o=void 0===i?t:i,u=r.region,s=void 0===u?"us":u,c=r.tlsEndpoint,l=r.disableTls,f=r.storageKey,d=void 0===f?"_vid":f,v=r.endpoint,h=r.delayFallback,g=r.algorithm;if(!o||"string"!=typeof o)throw new Error("Token required");var m=ct(s,l,c,n,a);return Y(a,(function(){return{e:12}})),lt(e({delayFallback:h,storageKeyPrefix:d}),m,o,s,v,U(g),d,a)}))}var dt=function(e){return ft(tt,void 0,e)},vt="Token required",ht="Token not found",gt="Token expired",mt="Request cannot be parsed",pt="Request failed",bt="Request failed to process",yt="Too many requests, rate limit exceeded",wt="Not available for this origin",Et="Not available with restricted header",Rt="Token required",Tt="Token not found",St="Token expired",It={load:dt,ERROR_CLIENT_TIMEOUT:"Client timeout",ERROR_NETWORK_CONNECTION:"Network connection error",ERROR_NETWORK_ABORT:"Network request aborted",ERROR_WRONG_REGION:qe,ERROR_SUBSCRIPTION_NOT_ACTIVE:je,ERROR_API_KEY_MISSING:"Token required",ERROR_API_KEY_INVALID:"Token not found",ERROR_API_KEY_EXPIRED:"Token expired",ERROR_BAD_REQUEST_FORMAT:"Request cannot be parsed",ERROR_BAD_RESPONSE_FORMAT:"Response 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",ERROR_UNSUPPORTED_VERSION:Me,ERROR_TOKEN_MISSING:"Token required",ERROR_TOKEN_INVALID:"Token not found",ERROR_TOKEN_EXPIRED:"Token expired"};export default It;export{gt as ERROR_API_KEY_EXPIRED,ht as ERROR_API_KEY_INVALID,vt as ERROR_API_KEY_MISSING,mt as ERROR_BAD_REQUEST_FORMAT,_e as ERROR_BAD_RESPONSE_FORMAT,Ie as ERROR_CLIENT_TIMEOUT,Et as ERROR_FORBIDDEN_HEADER,wt as ERROR_FORBIDDEN_ORIGIN,pt as ERROR_GENERAL_SERVER_FAILURE,Ae as ERROR_NETWORK_ABORT,ke as ERROR_NETWORK_CONNECTION,yt as ERROR_RATE_LIMIT,bt as ERROR_SERVER_TIMEOUT,je as ERROR_SUBSCRIPTION_NOT_ACTIVE,St as ERROR_TOKEN_EXPIRED,Tt as ERROR_TOKEN_INVALID,Rt as ERROR_TOKEN_MISSING,Me as ERROR_UNSUPPORTED_VERSION,qe as ERROR_WRONG_REGION,dt as load,$ as makeConsoleDebugger,re as makeDebugReportBuilder,G as makeMulticastDebugger,ge as makeRemoteDebugger};
import{__awaiter as e,__generator as n,__assign as t,__rest as r,__spreadArrays as i}from"tslib";import{getFullscreenElement as o,murmurX64Hash128 as a,isGecko as u,isChromium as s,isWebKit as c,isDesktopSafari as l,isTrident as f,isEdgeHTML as d,loadSources as v,prepareForSources as h,sources as g,getScreenFrame as m,isAndroid as p}from"@fingerprintjs/fingerprintjs";function b(e,n){return new Promise((function(t){return y(t,e,n)}))}function y(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i=Date.now()+n,o=0,a=function(){o=setTimeout((function(){Date.now()<i?a():e.apply(void 0,t)}),i-Date.now())};return a(),function(){return clearTimeout(o)}}function w(e,n,t){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];var o,a=!1,u=e,s=0,c=function(){a||o||(s=Date.now(),o=y((function(){a=!0,t.apply(void 0,r)}),u))},l=function(){!a&&o&&(o(),o=void 0,u-=Date.now()-s)};return n&&c(),{start:c,stop:l}}function E(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i=document,o="visibilitychange",a=function(){return i.hidden?c():s()},u=w(n,!i.hidden,(function(){i.removeEventListener(o,a),e.apply(void 0,t)})),s=u.start,c=u.stop;return i.addEventListener(o,a),function(){i.removeEventListener(o,a),c()}}function R(e,n){return new Promise((function(t){return E(t,e,n)}))}function T(t,r){return e(this,void 0,void 0,(function(){var e;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,t()];case 1:return[2,n.sent()];case 2:return e=n.sent(),console.error(e),[2,r];case 3:return[2]}}))}))}function S(t,r){var i=this;return new Promise((function(o,a){var u=r(),s=!1;null==t||t.then(o,a).then((function(){return s=!0}));var c=function(t){return e(i,void 0,void 0,(function(){var e,r;return n(this,(function(n){switch(n.label){case 0:if(t.done)return[2,o(t.value)];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,t.value];case 2:if(e=n.sent(),!s)try{c(u.next(e))}catch(i){a(i)}return[3,4];case 3:if(r=n.sent(),!s)try{c(u.throw(r))}catch(i){a(i)}return[3,4];case 4:return[2]}}))}))};c(u.next())}))}function I(t,r){return e(this,void 0,void 0,(function(){var e,i,o,a;return n(this,(function(n){switch(n.label){case 0:try{e=r().then((function(e){return i=[!0,e]}),(function(e){return i=[!1,e]}))}catch(u){i=[!1,u]}return a=t.then((function(e){return o=[!0,e]}),(function(e){return o=[!1,e]})),[4,Promise.race([e,a])];case 1:return n.sent(),[2,function(){if(i){if(i[0])return i[1];throw i[1]}if(o){if(o[0])return o[1];throw o[1]}throw new Error("96375")}]}}))}))}function k(e,n){var r;return void 0===n&&(n=!1),t({name:e.name,message:e.message,stack:n?null===(r=e.stack)||void 0===r?void 0:r.split("\n"):e.stack},e)}function A(){var e=window;try{return e.self!==e.top}catch(n){return!0}}function _(e,t){var r;return n(this,(function(n){switch(n.label){case 0:r=0,n.label=1;case 1:return[4,Math.random()*Math.min(t,e*Math.pow(2,r))];case 2:n.sent(),n.label=3;case 3:return++r,[3,1];case 4:return[2]}}))}function C(e){return e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",D=O+"+/";function P(e,n){if(0==n.length||n.length>e.length)return-1;for(var t=0;t<e.length;t++){for(var r=0,i=0;i<n.length;i++){if(e[t+i]!==n[i]){r=0;break}r++}if(r==n.length)return t}return-1}function N(e){if("function"==typeof TextDecoder){var n=(new TextDecoder).decode(e);if(n)return n}var t=C(e);return decodeURIComponent(escape(String.fromCharCode.apply(null,t)))}function x(e){return e.reduce((function(e,n){return e+(n?1:0)}),0)}function L(e,n,t){return void 0===t&&(t="..."),e.length<=n?e:""+e.slice(0,Math.max(0,n-t.length))+t}function q(e,n){return(e-n+256)%256}function j(e){for(var n=C(e),t=n.length,r="",i=0;i<t;i+=3)r+=D[n[i]>>2]+D[(3&n[i])<<4|n[i+1]>>4]+D[(15&n[i+1])<<2|n[i+2]>>6]+D[63&n[i+2]];return t%3==2?r.slice(0,-1)+"=":t%3==1?r.slice(0,-2)+"==":r}function M(e){for(var n="",t=0;t<e.length;++t)if(t>0){var r=e[t].toLowerCase();r!==e[t]?n+=" "+r:n+=e[t]}else n+=e[t].toUpperCase();return n}function U(e){return void 0===e?void 0:""+e}function F(e,n){for(var t="",r=0;r<e;r++)t+=n.charAt(Math.random()*n.length);return t}function V(e){return F(e,O)}function B(){return 256*Math.random()|0}function G(e){var n=e.filter((function(e){return!!e}));return n.length?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=function(n){T((function(){return n.apply(void 0,e)}))},i=0,o=n;i<o.length;i++){var a=o[i];r(a)}}:void 0}function W(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"Visitor identifier request try has started";case 19:return"Visitor identifier request try has succeeded";case 20:return"Visitor identifier request try has failed"}}var $=function(e){return void 0===e&&(e="[FingerprintJS Pro] "),function(n){switch(n.e){case 2:case 5:case 8:case 11:case 14:case 17:case 20:console.error(K(e,n));break;case 13:var t=K(e,n),r=n.result;Object.keys(r).some((function(e){return r[e].error}))?console.warn(t):console.log(t);break;default:console.log(K(e,n))}}};function K(e,n){var t=n.e,i=r(n,["e"]),o=""+e+(new Date).toISOString()+": "+W(t);return Object.keys(i).length&&(o+="\n```\n"+function(e){return JSON.stringify(e,(function(e,n){return n instanceof Error?k(n,!0):n instanceof ArrayBuffer?"(base64) "+j(n):n}),2)}(i)+"\n```"),o}function H(e){void 0===e&&(e="[FingerprintJS Pro] ");var n={};return function(t){switch(t.e){case 15:n[t.getCallId]=t.request;break;case 18:console.log(e+"Visitor id request",n[t.getCallId]);break;case 19:console.log(e+"Visitor id response",t.body);break;case 16:case 17:delete n[t.getCallId]}}}function X(e){var n=e.url,t=e.method,r=void 0===t?"get":t,i=e.body,o=e.headers,a=e.withCredentials,u=void 0!==a&&a,s=e.timeout,c=e.responseFormat,l=e.abort;return new Promise((function(e,t){var a=new XMLHttpRequest;for(var f in a.open(r,n,!0),a.withCredentials=u,a.timeout=void 0===s?0:Math.max(s,1),"binary"===c&&(a.responseType="arraybuffer"),o)a.setRequestHeader(f,o[f]);a.onload=function(){return e(function(e){return{body:e.response,status:e.status,statusText:e.statusText}}(a))},a.ontimeout=function(){return t(J("TimeoutError","The request timed out"))},a.onabort=function(){return t(J("AbortError","The request is aborted"))},a.onerror=function(){return t(J("TypeError",navigator.onLine?"Connection error":"Network offline"))},a.send(function(e){var n,t=function(){try{return new Blob([]),!1}catch(n){return!0}};if(e instanceof ArrayBuffer){if(!t())return new Uint8Array(e)}else if((null===(n=e)||void 0===n?void 0:n.buffer)instanceof ArrayBuffer&&t())return e.buffer;return e}(i)),null==l||l.catch((function(){})).then((function(){a.onabort=null,a.abort()}))}))}function J(e,n){var t=new Error(n);return t.name=e,t}function z(e){var n,t=e.url,r=e.body;try{if(null===(n=navigator.sendBeacon)||void 0===n?void 0:n.call(navigator,t,r))return!0}catch(o){if("Illegal invocation"!==o.message)throw o}var i=new XMLHttpRequest;i.open("POST",t,!function(){var e,n=null===(e=window.event)||void 0===e?void 0:e.type;return"pagehide"===n||"unload"===n}()),r instanceof Blob&&i.setRequestHeader("Content-Type",r.type);try{i.send(r)}catch(a){return!1}return!0}function Y(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];e&&T((function(){var r=n.apply(void 0,t);void 0!==r&&e(r)}))}function Q(t,r,i,o,a){return e(this,void 0,void 0,(function(){var e,u;return n(this,(function(n){switch(n.label){case 0:Y(t,r),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,a()];case 2:return e=n.sent(),[3,4];case 3:throw u=n.sent(),Y(t,o,u),u;case 4:return Y(t,i,e),[2,e]}}))}))}function Z(){var e=window,n=e.__fpjs_pvid;return e.__fpjs_pvid="string"==typeof n?n:V(10)}function ee(e,n){for(var r={},i=0,o=Object.keys(e);i<o.length;i++){var a=o[i];!e[a].error&&n[a]?r[a]=t(t({},e[a]),{value:n[a](e[a].value)}):r[a]=e[a]}return r}function ne(){var e=window,n=navigator;return x(["maxTouchPoints"in n,"mediaCapabilities"in n,"PointerEvent"in e,"visualViewport"in e,"onafterprint"in e])>=4}function te(){var e=window;return x([!("PushManager"in e),!("AudioBuffer"in e),!("RTCPeerConnection"in e),!("geolocation"in navigator),!("ServiceWorker"in e)])>=3}var re=function(e){return new ie(e).addEvent},ie=function(){function e(e){var n=this;this.onReportReady=e,this.isStopped=!1,this.pageStartTimestamp=function(){var e,n,t=performance;if(t.timeOrigin){var r=null===(n=null===(e=t.getEntriesByType)||void 0===e?void 0:e.call(t,"navigation"))||void 0===n?void 0:n[0];if(r)return t.timeOrigin+(r.responseStart||r.unloadEventEnd)}return t.timing.domLoading||t.timing.responseStart||t.timing.unloadEventEnd}(),this.events={},this.addEvent=function(e){if(!n.isStopped){var t={time:new Date,type:"agentEvent",event:e};switch(0===e.e&&(t.documentReadyState=document.readyState,t.isPageVisible=de(),t.isFullscreen=ve(),t.network=he()),n.storeAgentEvent(t),e.e){case 2:n.submitReport(e.agentId,void 0);break;case 4:case 5:n.submitReport(e.agentId,e.getCallId)}}};for(var t=window,r=document,i=[[r,"readystatechange",function(){return n.handleDocumentReadyStateChange()}],[r,"visibilitychange",function(){return n.handleVisibilityChange()}],[r,"pageshow",function(){return n.handlePageTransition(!0)}],[r,"pagehide",function(){return n.handlePageTransition(!1)}],[t,"unload",function(){return n.handlePageUnload()}]],o=0,a=i;o<a.length;o++){var u=a[o],s=u[0],c=u[1],l=u[2];s.addEventListener(c,l)}var f=function(e,n){for(var t=document,r=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],i=0,o=r;i<o.length;i++){var a=o[i];t.addEventListener(a,e,n)}return function(){for(var i=0,o=r;i<o.length;i++){var a=o[i];t.removeEventListener(a,e,n)}}}((function(){return n.handleFullscreenChange()})),d=function(e){var n=navigator.connection;return(null==n?void 0:n.addEventListener)?(n.addEventListener("change",e),function(){n.removeEventListener("change",e)}):(addEventListener("online",e),addEventListener("offline",e),function(){removeEventListener("online",e),removeEventListener("offline",e)})}((function(){return n.handleNetworkConnectionChange()}));this.stop=function(){n.isStopped=!0;for(var e=0,t=i;e<t.length;e++){var r=t[e],o=r[0],a=r[1],u=r[2];o.removeEventListener(a,u)}f(),d()}}return e.prototype.handleDocumentReadyStateChange=function(){this.storeEnvironmentEvent({time:new Date,type:"documentReadyState",state:document.readyState})},e.prototype.handleVisibilityChange=function(){this.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:de()})},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:ve()})},e.prototype.handleNetworkConnectionChange=function(){this.storeEnvironmentEvent({time:new Date,type:"networkChange",network:he()})},e.prototype.handlePageUnload=function(){this.storeEnvironmentEvent({time:new Date,type:"pageUnload"});for(var e=0,n=Object.keys(this.events);e<n.length;e++){var t=n[e],r=this.events[t];if(0===Object.keys(r.getCalls).length)this.submitReport(t,void 0);else for(var i=0,o=Object.keys(r.getCalls);i<o.length;i++){var a=o[i];ae(r.getCalls[a])||this.submitReport(t,a)}}this.stop()},e.prototype.storeAgentEvent=function(e){var n=e.event,t=n.agentId;if(this.events[t]||(this.events[t]={commonEvents:[],getCalls:{}}),function(e){return"string"==typeof e.getCallId}(n)){var r=n.getCallId;this.events[t].getCalls[r]||(this.events[t].getCalls[r]=[]),this.events[t].getCalls[r].push(e)}else this.events[t].commonEvents.push(e)},e.prototype.storeEnvironmentEvent=function(e){for(var n=0,t=Object.keys(this.events);n<t.length;n++){var r=t[n];this.events[r].commonEvents.push(e)}},e.prototype.submitReport=function(e,n){var r=function(e,n){for(var r,i,o,a,u,s,c,l,f,d,v=function(e){for(var n={},t=0,r=e;t<r.length;t++){var i=r[t];"agentEvent"===i.type&&(n[i.event.e]=i)}return n}(e),h=(null===(r=e[e.length-1])||void 0===r?void 0:r.time)||new Date,g="null",m=0,p=[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]];m<p.length;m++){var b=p[m],y=b[0],w=b[1];if(v[y]){g=w;break}}return{time:(null===(i=e[e.length-1])||void 0===i?void 0:i.time)||new Date,pageUrl:location.href,pageStartTime:new Date(n),isInIframe:A(),agentVersion:null===(o=v[0])||void 0===o?void 0:o.event.version,userAgent:navigator.userAgent,pageViewId:Z(),agentId:null===(a=v[0])||void 0===a?void 0:a.event.agentId,getCallId:null===(u=v[3])||void 0===u?void 0:u.event.getCallId,requestId:null!==(c=null===(s=v[4])||void 0===s?void 0:s.event.result.requestId)&&void 0!==c?c:null===(l=v[5])||void 0===l?void 0:l.event.error.requestId,visitorId:null===(f=v[4])||void 0===f?void 0:f.event.result.visitorId,visitorToken:null===(d=v[16])||void 0===d?void 0:d.event.result[1],identificationState:g,timeBetweenLoadAndGet:oe(v[1],v[3]),load:ue(h,v[0],v[1],v[2]),get:ue(h,v[3],v[4],v[5]),tls:ce(ue(h,v[6],v[7],v[8]),(function(){var n,r;return t(t({},se(e,9,10,11,(null===(n=v[7])||void 0===n?void 0:n.time)||(null===(r=v[8])||void 0===r?void 0:r.time)||h)),{getPhaseDuration:oe(v[3],v[7]||v[8],h)})})),fingerprint:ce(ue(h,v[12],v[13],v[14],(function(e){var n=e.event;return{failedComponents:le(n.result),componentDurations:fe(n.result)}})),(function(){return{getPhaseDuration:oe(v[3],v[13]||v[14],h)}})),visitorIdRequest:ce(ue(h,v[15],v[16],v[17]),(function(){var n,t;return se(e,18,19,20,(null===(n=v[16])||void 0===n?void 0:n.time)||(null===(t=v[17])||void 0===t?void 0:t.time)||h)})),events:e}}(function(e,n,t){var r=[];e[n]&&(r.push.apply(r,e[n].commonEvents),void 0!==t&&r.push.apply(r,e[n].getCalls[t]||[]));return r.sort((function(e,n){return e.time.getTime()-n.time.getTime()})),r}(this.events,e,n),this.pageStartTimestamp);try{this.onReportReady(r)}catch(i){console.error(i)}},e}();function oe(e,n,t){var r=null==e?void 0:e.time,i=(null==n?void 0:n.time)||t;return r&&i&&i.getTime()-r.getTime()}function ae(e){return e.some((function(e){return"agentEvent"===e.type&&(4===e.event.e||5===e.event.e)}))}function ue(e,n,r,i,o){if(void 0!==n)return void 0!==r?t(t({},null==o?void 0:o(r)),{duration:r.time.getTime()-n.time.getTime(),state:"success"}):void 0!==i?{duration:i.time.getTime()-n.time.getTime(),state:"fail",error:i.event.error}:{duration:e.getTime()-n.time.getTime(),state:"incomplete"}}function se(e,n,t,r,i){for(var o=i.getTime(),a=function(e,n){for(var t={},r=0,i=e;r<i.length;r++){var o=i[r];if("agentEvent"===o.type&&-1!==n.indexOf(o.event.e)){var a=o.event;t[a.tryNumber]||(t[a.tryNumber]={}),t[a.tryNumber][a.e]=o}}for(var u=[],s=0,c=Object.keys(t);s<c.length;s++){var l=c[s];u.push(t[l])}return u}(e,[n,t,r]),u={triesCount:0,triesTotalDuration:0,completeTriesCount:0,completeTriesTotalDuration:0},s=0,c=a;s<c.length;s++){var l=c[s],f=l[n],d=l[t]||l[r];if(f){if(f.time.getTime()>=o)break;var v=d&&d.time.getTime()<=o,h=((null==d?void 0:d.time)||i).getTime()-f.time.getTime();u.triesCount++,u.triesTotalDuration+=h,v&&(u.completeTriesCount++,u.completeTriesTotalDuration+=h)}}return u}function ce(e,n){return e?t(t({},e),n()):void 0}function le(e){for(var n={},t=0,r=Object.keys(e);t<r.length;t++){var i=r[t],o=e[i].error;o&&(n[i]=o)}return n}function fe(e){for(var n={},t=0,r=Object.keys(e);t<r.length;t++){var i=r[t];n[i]=e[i].duration}return n}function de(){return!document.hidden}function ve(){return!!o()}function he(){var e=navigator.connection;return{online:navigator.onLine,downlink:null==e?void 0:e.downlink,downlinkMax:null==e?void 0:e.downlinkMax,effectiveType:null==e?void 0:e.effectiveType,roundTrip:null==e?void 0:e.rtt,saveData:null==e?void 0:e.saveData,type:null==e?void 0:e.type}}var ge=function(t){var r=this,i=t.clientId,o=t.token,a=t.endpoint,u=void 0===a?"https://api.rollbar.com/api/1/item/":a;return new ie((function(t){return e(r,void 0,void 0,(function(){var e;return n(this,(function(n){switch(n.label){case 0:return e=function(e,n,t,r){return{access_token:t,data:me(e,n,r)}}(t,i,o),[4,Ee(u,e)];case 1:return n.sent(),[2]}}))}))})).addEvent};function me(e,n,t){var r,o;void 0===t&&(t=[8,4,4,4,12].map((function(e){return F(e,"0123456789abcdef")})).join("-"));var a=pe[e.identificationState],u=a.level,s=a.message;return{environment:n,level:u,timestamp:Math.round(e.time.getTime()/1e3),platform:"browser",framework:"FingerprintJS Pro",language:"javascript",uuid:t,notifier:{name:"FingerprintJS Pro monitoring",version:"3.5.7"},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)?we(e.fingerprint.componentDurations):void 0}}],e.events.map(be)),message:{body:s}},custom:{isInIframe:e.isInIframe,pageViewId:e.pageViewId,agentId:e.agentId,getCallId:e.getCallId,requestId:e.requestId,visitorId:e.visitorId,visitorToken:e.visitorToken,identificationState:e.identificationState,timeBetweenLoadAndGet:e.timeBetweenLoadAndGet,load:e.load,get:e.get,tls:e.tls,fingerprint:ye(e.fingerprint),visitorIdRequest:e.visitorIdRequest}}}var pe={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 be(e){var n={type:"manual",level:"debug",source:"client",timestamp_ms:e.time.getTime()};switch(e.type){case"documentReadyState":return t(t({},n),{body:{message:'Document ready state becomes "'+e.state+'"'}});case"pageVisibilityToggle":return t(t({},n),{body:{message:"Page becomes "+(e.isVisible?"visible (in foreground)":"invisible (in background)")}});case"pageTransition":return t(t({},n),{body:{message:e.isShown?"Page is restored from browser history":"Page is about to go to browser history"}});case"fullscreenToggle":return t(t({},n),{body:{message:"Programmatic fullscreen "+(e.isFullscreen?"on":"off")}});case"networkChange":return t(t({},n),{body:t(t({},e.network),{message:"Network connection changes"})});case"pageUnload":return t(t({},n),{body:{message:"Page is about to unload (terminate)"}})}var i,o,a,u=e.event,s=function(i,o){void 0===o&&(o="info");for(var a=i,s=(a.e,a.agentId,a.getCallId,r(a,["e","agentId","getCallId"])),c=t(t({},n),{level:o,body:t({message:W(u.e)},s)}),l=0,f=["documentReadyState","isPageVisible","isFullscreen","network"];l<f.length;l++){var d=f[l];void 0!==e[d]&&(c.body[d]=e[d])}return c};switch(u.e){case 0:u.version;return s(r(u,["version"]));case 1:case 3:case 4:case 6:case 9:case 12:case 15:case 16:case 18:return s(u);case 2:case 5:case 8:case 11:case 14:case 17:case 20:return s(u,"error");case 7:return s(t(t({},u),{result:L(u.result,1e3)}));case 10:return s(t(t({},u),{body:L(u.body,1e3)}));case 13:return s(t(t({},u),{result:(i=u.result,a="(removed to fit into beacon)",ee(i,(o={plugins:function(e){return e&&a},math:function(){return a},fontPreferences:function(){return a}},o.j=function(e){return e&&a},o[9]=function(e){return e&&a},o)))}));case 19:var c=u.body;if(c instanceof ArrayBuffer){c="(base64) "+(c.byteLength>1800?j(new Uint8Array(c,0,1800))+"...":j(c))}return s(t(t({},u),{body:c}))}}function ye(e){if(!e||"incomplete"===e.state||"fail"===e.state)return e;e.componentDurations;var n=r(e,["componentDurations"]),i=Object.keys(e.failedComponents),o=i.length?","+i.join(",")+",":void 0;return t(t({},n),{failedComponents:o})}function we(e,n){void 0===n&&(n="_");for(var r=t({},e),i=0,o=Object.keys(e);i<o.length;i++){var a=o[i];if(/^\d+$/.test(a)){delete r[a];var u=a;do{u=""+n+u}while(u in r);r[u]=e[a]}}return r}function Ee(t,r){return e(this,void 0,void 0,(function(){var e,i;return n(this,(function(n){switch(n.label){case 0:e=function(e){return JSON.stringify(e,(function(e,n){if(n instanceof Error){var t=k(n);return"string"==typeof t.stack&&(t.stack=L(t.stack,1e3)),t}return n}))}(r),i=_(1e3,1e4),n.label=1;case 1:return navigator.onLine&&z({url:t,body:e})?[3,4]:[4,b(i.next().value)];case 2:n.sent(),n.label=3;case 3:return[3,1];case 4:return[2]}}))}))}var Re={us:"use1",eu:"eun1",ap:"aps1"};function Te(t,r,i){var o,a=function(e,t,r,i){void 0===r&&(r=1/0);var o=_(300,1e4);return S(null==i?void 0:i.then((function(){}),(function(){})),(function(){var a,u,s;return n(this,(function(n){switch(n.label){case 0:a=0,n.label=1;case 1:if(!(a<r))return[3,8];u=Date.now(),n.label=2;case 2:return n.trys.push([2,4,,5]),[4,e(a,i)];case 3:return[2,n.sent()];case 4:return s=n.sent(),t(s),[3,5];case 5:return[4,b(u+o.next().value-Date.now())];case 6:n.sent(),n.label=7;case 7:return++a,[3,1];case 8:return[2,void 0]}}))}))}((function(r,o){return function(t,r,i,o,a){return e(this,void 0,void 0,(function(){var e,u;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,Q(a,(function(){return{e:9,tryNumber:i,timeout:r}}),(function(e){var n=e.status,t=e.body;return{e:10,tryNumber:i,status:n,body:t}}),(function(e){return{e:11,tryNumber:i,error:e}}),(function(){return X({url:t,timeout:r,abort:o})}))];case 1:return e=n.sent(),[3,3];case 2:switch((u=n.sent()).name){case"AbortError":throw Se(u.message,-2);case"TimeoutError":throw Se(u.message,-3);case"TypeError":throw Se(u.message,-4)}throw u;case 3:if(200===e.status)return[2,e.body];throw Se(L(e.status+": "+e.body,255),-5)}}))}))}(t,5e3,r,o,i)}),(function(e){return o=e}),10,r);return a.catch((function(){})),function(e){return void 0===e&&(e=new Promise((function(){}))),Promise.race([e.then((function(){}),(function(){})),a]).then((function(e){if(void 0!==e)return e;throw o||Se("Timeout",-3)}))}}function Se(e,n){var t=new Error(e);return t.__="slt",t.s=n,t}var Ie="Client timeout",ke="Network connection error",Ae="Network request aborted",_e="Response cannot be parsed";function Ce(e){var n,r=e.components,i=e.customComponent,o=e.apiKey,u=e.visitorToken,s=e.tls,c=e.tag,l=e.extendedResult,f=e.linkedId,d=e.algorithm;return(n={}).c=o,n.url=location.href,n.t=function(e){if(e&&"object"==typeof e)return e;if(null==e)return;return{tag:e}}(c),n.cbd=l?1:void 0,n.lid=f,n.cr=document.referrer||void 0,n.a=d,n.s1=xe(r.osCpu,-1),n.s2=Pe(r.languages),n.s3=Pe(r.colorDepth),n.s4=xe(r.deviceMemory,-1),n.s5=Oe(r.screenResolution,(function(e){return{s:0,v:e.map((function(e){return null===e?-1:e}))}})),n.s6=Oe(r[5],(function(e){return{s:0,v:e.map((function(e){return null===e?-1:e}))}})),n.s7=xe(r.hardwareConcurrency,-1),n.s8=Le(r[6]),n.s9=Pe(r.timezone),n.s10=Pe(r.sessionStorage),n.s11=Pe(r.localStorage),n.s12=xe(r.indexedDB,-1),n.s13=Pe(r.openDatabase),n.s14=xe(r.cpuClass,-1),n.s15=Pe(r.platform),n.s16=xe(r.plugins,-1),n.s17=Oe(r.canvas,(function(e){return{s:0,v:t(t({},e),{geometry:a(e.geometry),text:a(e.text)})}})),n.s18=Le(r[7]),n.s19=Pe(r.touchSupport),n.s20=Pe(r.fonts),n.s21=Oe(r.audio,(function(e){return-1===e||-2===e||-3===e?{s:e,v:null}:{s:0,v:e}})),n.s22=xe(r[10],-1),n.s24=Pe(r[31]),n.s26=Le(r[8]),n.s27=Pe(r.vendor),n.s28=Pe(r.vendorFlavors),n.s30=xe(r[11],-1),n.s31=Pe(r[4]),n.s32=Pe(r.cookiesEnabled),n.s33=Pe(r[12]),n.s34=Ne(r[0]),n.s35=Ne(r[3]),n.s36=xe(r.domBlockers,-1),n.s37=xe(r.colorGamut,-1),n.s38=xe(r.contrast,-1),n.s39=xe(r.forcedColors,-1),n.s40=xe(r.hdr,-1),n.s41=xe(r.invertedColors,-1),n.s42=xe(r.monochrome,-1),n.s43=xe(r.reducedMotion,-1),n.s44=xe(r[13],-1),n.s45=Pe(r[14]),n.s46=Oe(r.math,(function(e){return{s:0,v:a(Object.keys(e).map((function(n){return n+"="+e[n]})).join(","))}})),n.s47=Oe(r.j,(function(e){return{s:e?0:-1,v:e?t(t({},e),{contextAttributes:a(e.contextAttributes),parameters:a(e.parameters),shaderPrecisions:a(e.shaderPrecisions),extensions:a(e.extensions),extensionParameters:a(e.extensionParameters),fingerprint:a(e.fingerprint)}):null}})),n.s48=Pe(r[15]),n.s49=xe(r[16],-1),n.s50=xe(r[17],-1),n.s51=Pe(r.fontPreferences),n.s52=Oe(r[2],(function(e){return{s:"number"==typeof e?e:e.length?0:1,v:"number"==typeof e?"":a(JSON.stringify(e))}})),n.s53=Ne(r[18]),n.s54=Le(r[1]),n.s55=function(e){var n=e[0],t=e[1];if(void 0!==n&&void 0!==t)return{s:0,v:n||t};if(void 0!==n)return{s:1,v:n};if(void 0!==t)return{s:2,v:t};return{s:-1,v:null}}(u),n.s56=function(e){if(!e)return{s:-1,v:null};if(e.error){var n=e.error;return function(e){return"slt"===e.__}(n)?{s:n.s,v:null}:{e:n.message}}return{s:0,v:e.value}}(s),n.s57=xe(r[19],-1),n.s58=xe(r[9],-1),n.s59=Pe(r[20]),n.s60=Pe(r[21]),n.s61=Pe(r[22]),n.s62=Pe(r[23]),n.s63=Pe(r[24]),n.s64=Pe(r[25]),n.s65=Pe(r[26]),n.s66=xe(r[27],-1),n.s67=i?{s:0,v:i}:{s:-1,v:null},n.s68=Pe(r[28]),n.s69=Ne(r[29]),n.s71=Pe(r[30]),n.s72=xe(r[32],-1),n}function Oe(e,n){return e.error?{e:De(e.error)}:n(e.value)}function De(e){var n;try{n=""+e.message,"name"in e&&(n=e.name+": "+n)}catch(e){n="Code 3017: "+e.name+": "+e.message}return L(n,500)}function Pe(e){return Oe(e,(function(e){return{s:0,v:e}}))}function Ne(e){return Oe(e,(function(e){return e}))}function xe(e,n){return Oe(e,(function(e){return{s:null==e?n:0,v:null!=e?e:null}}))}function Le(e){return Oe(e,(function(e){return"number"==typeof e?{s:e,v:null}:{s:0,v:e}}))}var qe=M("WrongRegion"),je=M("SubscriptionNotActive"),Me=M("UnsupportedVersion");function Ue(e,n){var r=e.bodyData;return void 0===r?Ke(e):function(e){return e instanceof Object&&"2"===e.v&&e.products instanceof Object}(r)?function(e,n){var r=e.notifications,i=e.requestId,o=e.error,a=e.products;if(We(r),o)return Fe(o,i,n);var u=a.identification;if(!u)throw new Error("There is no identification result in the response");if(We(u.notifications),u.error)return Fe(u.error,i,n);return[t({requestId:i},u.data.result),u.data.visitorToken]}(r,n):Ke(e)}function Fe(e,n,t){switch(e.code){case"NotAvailableForCrawlBots":return Be(n,!0,t);case"NotAvailableWithoutUA":return Be(n,void 0,t);case"Failed":case"RequestTimeout":return Ge(Ve(e),n,e);default:throw Ge(Ve(e),n,e)}}function Ve(e){var n,t=e.code,r=e.message;return void 0===t?r:null!==(n=function(e){switch(e){case"TokenRequired":return"Token required";case"TokenNotFound":return"Token not found";case"TokenExpired":return"Token expired";case"RequestCannotBeParsed":return"Request cannot be parsed";case"Failed":return"Request failed";case"RequestTimeout":return"Request failed to process";case"TooManyRequests":return"Too many requests, rate limit exceeded";case"OriginNotAvailable":return"Not available for this origin";case"HeaderRestricted":return"Not available with restricted header";case"NotAvailableForCrawlBots":return"Not available for crawl bots";case"NotAvailableWithoutUA":return"Not available when User-Agent is unspecified"}}(t))&&void 0!==n?n:M(t)}function Be(e,n,r){var i={requestId:e,visitorFound:!1,visitorId:"",confidence:{score:.9,comment:"The real score is unknown"}};if(!r)return[i];var o="n/a",a=t(t({},i),{bot:{probability:1},incognito:!1,browserName:o,browserVersion:o,device:o,ip:o,os:o,osVersion:o});return void 0!==n&&(a.bot.safe=n),[a]}function Ge(e,n,t){var r=new Error(e);return void 0!==n&&(r.requestId=n),void 0!==t&&(r.raw=t),r}function We(e){null==e||e.forEach($e)}function $e(e){var n=e.level,t=e.message;"error"===n?console.error(t):"warning"===n?console.warn(t):console.log(t)}function Ke(e){var n=Ge("Response cannot be parsed",void 0,{httpStatusCode:e.status,bodyBase64:j(e.body)});if(e.status>=500)return n;throw n}function He(e,n,t,r,i){void 0===i&&(i=B);var o=i()%(t+1),a=function(e){if("function"==typeof TextEncoder)return(new TextEncoder).encode(e);for(var n=unescape(encodeURI(e)),t=new Uint8Array(n.length),r=0;r<n.length;++r)t[r]=n.charCodeAt(r);return t}(JSON.stringify(e)),u=1+n.length+1+o+r+a.length,s=new ArrayBuffer(u),c=new Uint8Array(s),l=0,f=i();c[l++]=f;for(var d=0,v=n;d<v.length;d++){var h=v[d];c[l++]=f+h}c[l++]=f+o;for(var g=0;g<o;++g)c[l++]=i();var m=new Uint8Array(r);for(g=0;g<r;++g)m[g]=i(),c[l++]=m[g];for(g=0;g<a.length;++g)c[l++]=a[g]^m[g%r];return s}function Xe(e,n,t){var r=function(){throw new Error("Invalid data")},i=C(e);i.length<n.length+2&&r();for(var o=0;o<n.length;++o)q(i[1+o],i[0])!==n[o]&&r();var a=1+n.length,u=q(i[a],i[0]);i.length<a+1+u+t&&r();var s=a+1+u,c=s+t,l=new Uint8Array(i.length-c);for(o=0;o<l.length;++o)l[o]=i[c+o]^i[s+o%t];return JSON.parse(N(l))}var Je=[3,7];function ze(r){return e(this,void 0,void 0,(function(){var e,i,o;return n(this,(function(n){switch(n.label){case 0:return[4,X(t(t({},r),{body:(u=r.body,He(u,Je,3,7)),responseFormat:"binary"}))];case 1:e=n.sent();try{a=e.body,i=Xe(a,Je,7),o=!0}catch(s){try{i=JSON.parse(N(e.body)),o=!1}catch(c){}}return[2,t(t({},e),{bodyData:i,isSecret:o})]}var a,u}))}))}function Ye(e,n){if(n)return n;var t="api.fpjs.io";return"us"!==e&&(t=e+"."+t),"https://"+t}function Qe(i,o,a){var u=i.endpoint,s=i.extendedResult,c=void 0!==s&&s,l=r(i,["endpoint","extendedResult"]);return e(this,void 0,void 0,(function(){var r,i,s;return n(this,(function(f){switch(f.label){case 0:return r=(d=u)+(-1===d.indexOf("?")?"?":"&")+"ci=js/"+encodeURIComponent("3.5.7"),i=Ce(t({extendedResult:c},l)),s=0,[4,Q(a,(function(){return{e:15,endpoint:r,request:i}}),(function(e){return{e:16,result:e}}),(function(e){return{e:17,error:e}}),(function(){return function(e,t){var r,i=_(300,1e4);return S(null==t?void 0:t.catch((function(e){r||(r=e)})).then((function(){throw r})),(function(){var o,a,u;return n(this,(function(n){switch(n.label){case 0:return o=Date.now(),[4,e(t)];case 1:return(a=n.sent())instanceof Error?(r=a,u=i.next().value,[4,b(o+u-Date.now())]):[2,a];case 2:n.sent(),n.label=3;case 3:return[3,0];case 4:return[2]}}))}))}((function(t){return function(t,r,i,o,a,u){return e(this,void 0,void 0,(function(){var e,s;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,Q(u,(function(){return{e:18,tryNumber:o}}),(function(e){var n=e.status,t=e.body,r=e.bodyData,i=e.isSecret;return{e:19,tryNumber:o,status:n,body:null!=r?r:t,isSecret:i}}),(function(e){return{e:20,tryNumber:o,error:e}}),(function(){return ze({url:t,method:"post",body:r,headers:{"Content-Type":"text/plain"},withCredentials:!0,abort:a})}))];case 1:return e=n.sent(),[3,3];case 2:return s=n.sent(),[2,new Error("AbortError"===s.name?"Network request aborted":"Network connection error")];case 3:return[2,Ue(e,i)]}}))}))}(r,i,c,s++,t,a)}),o)}))];case 1:return[2,f.sent()]}var d}))}))}function Ze(){var e,n,t=en();return(null===(n=null===(e=window[t[0]])||void 0===e?void 0:e[t[1]])||void 0===n?void 0:n[t[2]])||1073741824}function en(){return Xe(new Uint32Array([1238629110,448276002,3812774028,808844344,1040086494,3917076003,2006609522,3391962601,1618783843,902064594,3846817827,1945380650,2587245025,908308022,938305751,2922813991,1910122279,3709215973,809499767,66414809,3983071030,916072247,3711377838,822474088,300514777,4182498348,953759295,3408360096,591258990,229539788]),[],5)}function nn(){var e,n,t=on();try{n=A()?null===(e=window.top)||void 0===e?void 0:e[t[0]]:window[t[0]]}catch(r){if("SecurityError"===r.name)return!1;throw r}if(!n)return!1;try{n[t[1]][t[2]](t[3],t[4],{},(function(){}))}catch(r){return!new RegExp(t[5]).test(r)}return!1}function tn(){return e(this,void 0,void 0,(function(){var e,t,r;return n(this,(function(n){switch(n.label){case 0:e=document,t=on(),(r=e.createElement("iframe")).style.display="none",n.label=1;case 1:return e.body?[3,3]:[4,b(50)];case 2:return n.sent(),[3,1];case 3:return n.trys.push([3,,5,6]),e.body.appendChild(r),[4,Promise.race([b(20,!1),new Promise((function(e){r.contentWindow?r.contentWindow[t[6]].addEventListener("error",(function(){return e(!0)})):e(!1)}))])];case 4:return[2,n.sent()];case 5:return r.remove(),[7];case 6:return[2]}}))}))}function rn(){var e=window.openDatabase,n=window.localStorage;try{e(null,null,null,null)}catch(t){return!0}try{return n.setItem("test","1"),n.removeItem("test"),!1}catch(t){return!0}}function on(){return Xe(new Uint32Array([571803394,2333197341,667974149,459532809,2807590137,1996360231,241878290,3893584866,1793199716,1479125268,4262158585,1442777440,325646623,3826480888,665278571,175243026,2757050360,1760166496,1415636746,2836884200,2012960809,241499411,2840995822,1912086370,1482750223,4212860839,1726092917,359464731,3894101733,1487478637]),[],3)}var an=[[function(){return s()},function(){return x(["ClipboardItem"in(t=window),"PerformanceEventTiming"in t,"RTCSctpTransport"in t])>=2?function(){return e(this,void 0,void 0,(function(){var e,t,r,i,o;return n(this,(function(n){switch(n.label){case 0:return e=en(),t=navigator,r=t[e[3]],(i=t[e[4]])?[4,new Promise((function(n){i[e[5]]((function(e,t){return n(t)}))}))]:[3,2];case 1:return o=n.sent(),[3,4];case 2:return(null==r?void 0:r[e[6]])?[4,r[e[6]]().then((function(e){return e.quota}))]:[3,4];case 3:o=n.sent(),n.label=4;case 4:return o?[2,o<Ze()]:[2,!1]}}))}))}():function(){return e(this,void 0,void 0,(function(){var e;return n(this,(function(n){switch(n.label){case 0:return(e=window.webkitRequestFileSystem)?[4,new Promise((function(n){e(0,1,(function(){return n(!1)}),(function(){return n(!0)}))}))]:[2,!1];case 1:return[2,n.sent()]}}))}))}();var t}],[function(){return c()},function(){return e(this,void 0,void 0,(function(){return n(this,(function(e){return ne()?l()?[2,nn()]:[2,tn()]:[2,rn()]}))}))}],[function(){return u()},function(){return new Promise((function(e){try{var n=indexedDB.open("test");n.onerror=function(){return e(!0)},n.onsuccess=function(){return e(!1)}}catch(t){return e(!0)}}))}],[function(){return f()||d()},function(){try{if(!window.indexedDB)return!0}catch(e){return!0}return!1}]];function un(t){var r=t.storageKeyPrefix;return e(this,void 0,void 0,(function(){var e,t,i;return n(this,(function(n){switch(n.label){case 0:return void 0!==(t=function(e){try{var n=localStorage.getItem(e);if(!n)return;return"1"===n}catch(t){return}}(e=r+"_i"))?[2,t]:[4,sn()];case 1:return i=n.sent(),function(e,n){try{localStorage.setItem(e,n?"1":"0")}catch(t){}}(e,i),[2,i]}}))}))}function sn(){return e(this,void 0,void 0,(function(){var e,t,r,i,o;return n(this,(function(n){switch(n.label){case 0:e=0,t=an,n.label=1;case 1:return e<t.length?(r=t[e],i=r[0],o=r[1],i()?[4,o()]:[3,3]):[3,4];case 2:return[2,n.sent()];case 3:return e++,[3,1];case 4:return[2,!1]}}))}))}function cn(){var e=window;if(!s())return!1;try{if([66,114,97,118,101].map((function(e){return String.fromCharCode(e)})).join("")in e)return!0;var n=document.createElement("canvas");n.width=4,n.height=4,n.style.display="inline";var t=n.toDataURL();if(""===t)return!0;for(var r=window.atob(t.split(",")[1]),i=r.length,o=new Uint8Array(i),a=0;a<i;a++)o[a]=r.charCodeAt(a);var u=P(o,[73,68,65,84,24]);if(-1===u)return!1;var c=P(o,[73,69,78,68]);return-1!==c&&1321!==o.slice(u+5,c).reduce((function(e,n){return e+n}),0)}catch(l){return!1}}function ln(){return e(this,void 0,void 0,(function(){var e,t;return n(this,(function(n){switch(n.label){case 0:return e=[],[4,I(R(2e3,-4),fn.bind(null,(function(n){return e.push(n)})))];case 1:return t=n.sent(),[2,function(){var n=t();return 0===n||-4===n?{s:n,v:i(e)}:{s:n,v:null}}]}}))}))}function fn(t){return e(this,void 0,void 0,(function(){var e,r,i;return n(this,(function(n){switch(n.label){case 0:if(e=window,!(r=e.RTCPeerConnection||e.webkitRTCPeerConnection))return[2,-3];try{i=new r({iceServers:Xe(new Uint32Array([1116284708,2807606666,1856165634,1993636598,3410021538,3195192872,1656883084,2598385300,3564798284,1087152758,1841329857,3355624888,3127755894,1804885912,4294258839]),[],7).map((function(e){return{urls:"stun:"+e}}))})}catch(o){if("NotSupportedError"===o.name)return[2,-6];throw o}n.label=1;case 1:return n.trys.push([1,,3,4]),[4,new Promise((function(e,n){var r,a=!1;i.onicecandidate=function(n){var r=n.candidate;if(!r)return e(0);var i=r.candidate;i&&(t(i),!a&&/ typ [sp]rflx /.test(i)&&(a=!0,E(e,10,0)))},i.onicegatheringstatechange=function(){"complete"===i.iceGatheringState&&e(0)};try{null===(r=i.createDataChannel)||void 0===r||r.call(i,"test")}catch(o){return void("NotSupportedError"===o.name?e(-7):n(o))}var u=function(e,n){try{return e.createOffer(n)}catch(o){if(/\bcreateOffer\b.*(\bcallback\b.*\bnot a function\b|\barguments required\b.*\bpresent\b)/i.test(o.message))return new Promise((function(t,r){e.createOffer(t,r,n)}));throw o}}(i,d()?{offerToReceiveAudio:!0}:void 0);void 0===u?e(-8):u.then((function(e){return i.setLocalDescription(e)}),n)}))];case 2:return[2,n.sent()];case 3:try{i.close()}catch(a){}return[7];case 4:return[2]}}))}))}function dn(){return e(this,void 0,void 0,(function(){var e;return n(this,(function(n){switch(n.label){case 0:if("function"!=typeof(e=window.ApplePaySession))return[2,{s:-1,v:null}];n.label=1;case 1:return n.trys.push([1,4,,5]),e.canMakePayments()?c()&&!ne()?[2,{s:0,v:1}]:[4,new Promise((function(e){return setTimeout(e,0)}))]:[2,{s:0,v:0}];case 2:return n.sent(),[4,Promise.race([e.canMakePaymentsWithActiveCard(""),R(100,!1)])];case 3:return[2,{s:0,v:n.sent()?3:2}];case 4:return[2,vn(n.sent())];case 5:return[2]}}))}))}function vn(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 hn(){return!!gn("dark")||!gn("light")&&void 0}function gn(e){return matchMedia("(prefers-color-scheme: "+e+")").matches}function mn(){var e=Date.now();return[pn(e),pn(e-6e4*(new Date).getTimezoneOffset())]}function pn(e){var n=Number(e);return isNaN(n)?-1:n}function bn(){var e=window.performance;if(null==e?void 0:e.now){for(var n=1,t=1,r=e.now(),i=r,o=0;o<5e4;o++)if((r=i)<(i=e.now())){var a=i-r;a>n?a<t&&(t=a):a<n&&(t=n,n=a)}return[n,t]}}function yn(){var e,n;return null===(n=null===(e=window.performance)||void 0===e?void 0:e.memory)||void 0===n?void 0:n.jsHeapSizeLimit}var wn=["MAX_TEXTURE_MAX_ANISOTROPY_EXT","FRAGMENT_SHADER_DERIVATIVE_HINT_OES","MAX_COLOR_ATTACHMENTS_WEBGL","MAX_DRAW_BUFFERS_WEBGL","DRAW_BUFFER0_WEBGL","DRAW_BUFFER1_WEBGL","VERTEX_ARRAY_BINDING_OES","TIMESTAMP_EXT","GPU_DISJOINT_EXT","MAX_VIEWS_OVR"],En=[10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32926,32928,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938],Rn=[32926,32928],Tn=["FRAGMENT_SHADER","VERTEX_SHADER"],Sn=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"];function In(e,n,t){var r=e.getShaderPrecisionFormat(e[n],e[t]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function kn(e){return"string"==typeof e&&!e.match(/[^A-Z0-9_x]/)}function An(e){return Object.keys(e.__proto__).filter(kn)}function _n(){for(var e=document.createElement("canvas"),n=["webgl","experimental-webgl"],r=void 0,i=0;i<n.length&&!r;i++)try{r=e.getContext(n[i])}catch(a){}if(r){var o=t(t({},function(e){var n,t,r,i,o,a,u=e.getSupportedExtensions(),s=e.getExtension("WEBGL_debug_renderer_info"),c=e.getContextAttributes(),l=[],d=[],v=[],h=[];for(var g in c)Object.prototype.hasOwnProperty.call(c,g)&&l.push(g+"="+c[g]);for(var m=An(e),p=f(),b=0,y=m;b<y.length;b++){var w=e[_=y[b]];if(En.indexOf(w)>-1){var E=p&&-1===Rn.indexOf(w)?e.getParameter(w):null;d.push(_+"("+w+")="+E)}else d.push(_+"="+w)}if(u)for(var R=0,T=u;R<T.length;R++){var S=T[R],I=e.getExtension(S);if(I)for(var k=0,A=An(I);k<A.length;k++){var _;w=I[_=A[k]],wn.indexOf(_)>0?v.push(_+"("+w+")="+e.getParameter(w)):v.push(_+"="+w)}}for(var C=0,O=Tn;C<O.length;C++)for(var D=O[C],P=0,N=Sn;P<N.length;P++){var x=N[P],L=In(e,D,x);h.push(D+"."+x+"="+L.join(","))}return v.sort(),d.sort(),{version:(null===(n=e.getParameter(e.VERSION))||void 0===n?void 0:n.toString())||"",vendor:(null===(t=e.getParameter(e.VENDOR))||void 0===t?void 0:t.toString())||"",vendorUnmasked:s?null===(r=e.getParameter(s.UNMASKED_VENDOR_WEBGL))||void 0===r?void 0:r.toString():"",renderer:(null===(i=e.getParameter(e.RENDERER))||void 0===i?void 0:i.toString())||"",rendererUnmasked:s?null===(o=e.getParameter(s.UNMASKED_RENDERER_WEBGL))||void 0===o?void 0:o.toString():"",shadingLanguageVersion:(null===(a=e.getParameter(e.SHADING_LANGUAGE_VERSION))||void 0===a?void 0:a.toString())||"",contextAttributes:l.join("&"),parameters:d.join("&"),shaderPrecisions:h.join("&"),extensions:u?u.join(","):"",extensionParameters:v.join(",")}}(r)),{fingerprint:""});return function(e){e.clearColor(0,0,1,1);var n=e.createProgram();if(n){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(n),e.useProgram(n),e.enableVertexAttribArray(0);var t=e.getUniformLocation(n,"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(t,3.65),e.drawArrays(4,0,3)}function i(t,r){var i=e.createShader(35633-t);n&&i&&(e.shaderSource(i,r),e.compileShader(i),e.attachShader(n,i))}}(r),o.fingerprint=e.toDataURL(),o}}function Cn(){var t=window.speechSynthesis;if("function"!=typeof(null==t?void 0:t.getVoices))return-1;var r=function(){return t.getVoices()};return!t.addEventListener||u()&&te()?On(r()):function(t){return e(this,void 0,void 0,(function(){var e;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,,2,3]),[4,new Promise((function(n,r){var i,o=function(){t.getVoices().length?(null==i||i(),i=y(n,50)):i||(i=E(n,600))};e=function(){try{o()}catch(e){r(e)}},o(),t.addEventListener("voiceschanged",e)}))];case 1:return[2,n.sent()];case 2:return e&&t.removeEventListener("voiceschanged",e),[7];case 3:return[2]}}))}))}(t).then((function(){return function(){var e=r();return e.length?On(e):-2}}))}function On(e){var n=function(e){return e.replace(/([,\\])/g,"\\$1")};return e.map((function(e){return[n(e.voiceURI),n(e.name),n(e.lang),e.localService?"1":"0",e.default?"1":"0"].join(",")})).sort()}function Dn(){return{s:c()&&!l()?ne()?0:1:2,v:[(typeof SourceBuffer).slice(0,3),(typeof SourceBufferList).slice(0,3)]}}var Pn={m:["$$s-macbook-pro","$$s-macbook-air","$$s-mac-mini"],i:["$$s-iphone"]},Nn={m:["macbook-pro-$$","macbook-air-$$","mac-mini-$$"],i:["iphone-$$"]},xn={us:["james","mary","john","patricia","robert","jennifer","michael","linda","william","elizabeth","david","barbara","richard","susan","joseph","jessica","thomas","sarah","charles","karen","christopher","nancy","daniel","lisa","matthew","margaret","anthony","betty","donald","sandra"],gb:["oliver","george","noah","arthur","harry","leo","muhammad","jack","charlie","oscar","jacob","henry","thomas","joshua","william","olivia","amelia","isla","ava","mia","isabella","sophia","grace","lily","freya","emily","ivy","ella","rosie","charlotte"],ru:["aleksandr","sergej","vladimir","elena","tatana","andrej","aleksej","olga","nikolaj","natala","anna","ivan","dmitrij","irina","maria","mihail","svetlana","ekaterina","evgenij","viktor","anastasia","urij","ulia","valentin","roman","igor","anatolij","oleg","pavel","maksim"]},Ln={m:["macbook-pro","macbook-air","mac-mini","mac-pro"],i:["iphone","iphone-2"]};function qn(t){return e(this,void 0,void 0,(function(){var r,i,o,a,u,s,c,l,f=this;return n(this,(function(d){switch(d.label){case 0:if(!(r=window.RTCPeerConnection))return[2,-5];i=Math.random().toString(),o=new Map,u="candidate:0 1 udp 2113937151 $ad $pt typ host generation 0 ufrag "+(a="ABCD")+" network-cost 999",s=new r({iceTransportPolicy:"all"}),c=s.createDataChannel(i),l=0,d.label=1;case 1:return d.trys.push([1,,3,4]),[4,new Promise((function(r,i){E((function(){return r(-4)}),1e3),s.oniceconnectionstatechange=function(){"checking"===s.iceConnectionState&&(l=setInterval((function(){return e(f,void 0,void 0,(function(){var e,t;return n(this,(function(n){switch(n.label){case 0:return"checking"!==s.iceConnectionState?[2,r([])]:[4,s.getStats()];case 1:return e=n.sent(),t=[],e.forEach((function(e){if("remote-candidate"===e.type){var n=o.get(e.port);t.push(n)}})),t.length>0&&r(t),[2]}}))}))}),30))},s.createOffer().then((function(e){var n=e.sdp;if(!n)return r(-5);for(var i=[],c=0;c<t.length;c++){var l=t[c],f=50003+c,d=u.replace("$ad",l).replace("$pt",f.toString());o.set(f,l),i.push("a="+d)}var v={type:"answer",sdp:n.replace(/a=ice-ufrag:(.*?)\s{1,2}/,"a=ice-ufrag:"+a+"\r\n").replace(/a=setup:(.*?)\s{1,2}/,"a=setup:active\r\n").replace(/c=IN IP4 ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/,(function(e,n){return"c=IN IP4 "+n+"\r\nb=AS:30\r\n"+i.join("\r\n")}))};return s.setLocalDescription(e),s.setRemoteDescription(v)}),i)}))];case 2:return[2,d.sent()];case 3:return c.close(),s.close(),clearInterval(l),[7];case 4:return[2]}}))}))}function jn(t){return e(this,void 0,void 0,(function(){var r,o=this;return n(this,(function(a){switch(a.label){case 0:r=new AbortController,a.label=1;case 1:return a.trys.push([1,,3,4]),[4,Promise.race(i(t.map((function(t){return e(o,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,fetch("http"+("http:"===location.protocol?"":"s")+"://"+t,{signal:r.signal})];case 1:return e.sent(),[3,3];case 2:return e.sent(),[3,3];case 3:return[2,t]}}))}))})),[R(500,-4)]))];case 2:return[2,a.sent()];case 3:return r.abort(),[7];case 4:return[2]}}))}))}function Mn(){for(var e=!l(),n=navigator.language.toLowerCase(),r=function(){var e={"en-us":t(t({},Pn),{n:xn.us}),"en-gb":t(t({},Pn),{n:xn.gb}),"ru-ru":t(t({},Nn),{n:xn.ru})};return e.default=e["en-us"],e.en=e["en-us"],e.ru=e["ru-ru"],e}(),i=r[n]||r[n.slice(0,2)]||r.default,o=e?i.i.slice():i.m.slice(),a=e?Ln.i.slice():Ln.m.slice(),u=0,s=e?i.n:i.n.slice(0,15);u<s.length;u++)for(var c=s[u],f=0,d=o;f<d.length;f++){var v=d[f];a.push(v.replace("$$",c))}return a.map((function(e){return e+".local"}))}function Un(t){return e(this,void 0,void 0,(function(){var e,r;return n(this,(function(n){switch(n.label){case 0:return!c()||(i=window,x(["mediaSession"in navigator,"BigInt64Array"in i,"FormDataEvent"in i,"ImageBitmap"in i,"WebGL2RenderingContext"in i,"onclose"in i])>=4)?[2,-2]:[4,qn(e=Mn())];case 1:return r=n.sent(),null==t||t(),"number"==typeof r?[2,r]:r.length===e.length?[2,-3]:r.length>1?[2,jn(r)]:1===r.length?[2,r[0]]:[2,-1]}var i}))}))}function Fn(){var e,n,t,r=((t=new Promise((function(t,r){e=t,n=r}))).resolve=e,t.reject=n,t),i=R(l()?310:410);return I(Promise.race([r,i]).then((function(e){if(void 0!==e)return R(e+100-Date.now())})).then((function(){return-4})),(function(){return Un((function(){return r.resolve(Date.now())}))}))}var Vn=["brands","mobile","platform","platformVersion","architecture","bitness","model","uaFullVersion"];function Bn(){var t;return e(this,void 0,void 0,(function(){var r,i,o,a=this;return n(this,(function(u){switch(u.label){case 0:return(r=navigator.userAgentData)&&"object"==typeof r?(i={},o=[],"function"!=typeof r.getHighEntropyValues?[3,2]:[4,Promise.all(Vn.map((function(t){return e(a,void 0,void 0,(function(){var e,a;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,r.getHighEntropyValues([t])];case 1:return void 0!==(e=n.sent()[t])&&(i[t]="string"==typeof e?e:JSON.stringify(e)),[3,3];case 2:if("NotAllowedError"!==(a=n.sent()).name)throw a;return o.push(t),[3,3];case 3:return[2]}}))}))})))]):[2,void 0];case 1:u.sent(),u.label=2;case 2:return[2,{b:r.brands.map((function(e){return{b:e.brand,v:e.version}})),m:r.mobile,p:null!==(t=r.platform)&&void 0!==t?t:null,h:i,nah:o}]}}))}))}function Gn(){var e=document.createElement("a").attributionsourceid;return void 0===e?void 0:String(e)}function Wn(){return function(e){for(var n,t,r=[],i=e;;)try{var o=null===(n=i.location)||void 0===n?void 0:n.href,a=null===(t=i.document)||void 0===t?void 0:t.referrer;if(void 0===o||void 0===a)return{s:1,v:r};r.push({l:o,f:a});var u=i.parent;if(!u||u===i)return{s:0,v:r};i=u}catch(s){if($n(s))return{s:1,v:r};throw s}}(window)}function $n(e){if(!e||"object"!=typeof e)return!1;var n=e;return!(!f()&&!d()||"Error"!==n.name&&"TypeError"!==n.name||"Permission denied"!==n.message)||"SecurityError"===n.name}function Kn(){return function(e){var n=e.location,t=e.origin,r=n.origin,i=n.ancestorOrigins,o=null;if(i){o=new Array(i.length);for(var a=0;a<i.length;++a)o[a]=i[a]}return{w:null==t?null:t,l:null==r?null:r,a:o}}(window)}function Hn(){return eval.toString().length}function Xn(){var t=this;return I(b(250,-2),(function(){return e(t,void 0,void 0,(function(){var e;return n(this,(function(n){switch(n.label){case 0:return(null==(e=navigator.mediaDevices)?void 0:e.enumerateDevices)?[4,e.enumerateDevices()]:[2,-1];case 1:return[2,n.sent().map((function(e){return{d:e.deviceId,g:e.groupId,k:e.kind,l:e.label}}))]}}))}))}))}function Jn(){return navigator.webdriver}function zn(){var e;return null!==(e=navigator.doNotTrack)&&void 0!==e?e:void 0}function Yn(){var e;return null!==(e=window.devicePixelRatio)&&void 0!==e?e:void 0}function Qn(){var t=this;return I(b(75,-3),(function(){return e(t,void 0,void 0,(function(){var e,t,r,i;return n(this,(function(n){switch(n.label){case 0:if(!(e=navigator).requestMediaKeySystemAccess)return[2,-1];n.label=1;case 1:return n.trys.push([1,6,,7]),[4,e.requestMediaKeySystemAccess("org.w3.clearkey",[{initDataTypes:["keyids","webm"],audioCapabilities:["opus","vorbis"].map((function(e){return{contentType:'audio/webm; codecs="'+e+'"'}})),videoCapabilities:["vp9","vp8"].map((function(e){return{contentType:'video/webm; codecs="'+e+'"'}}))}])];case 2:return[4,n.sent().createMediaKeys()];case 3:return t=n.sent(),(r=t.createSession()).sessionId?[3,5]:[4,new Promise((function(e){r.onmessage=e,r.generateRequest("webm",new Uint8Array([1,1,1,1]))}))];case 4:n.sent(),n.label=5;case 5:return[2,r.sessionId];case 6:if("NotSupportedError"===(i=n.sent()).name)return[2,-2];throw i;case 7:return[2]}}))}))}))}function Zn(){var e=window.WebAssembly;if(null==e?void 0:e.validate){for(var n=[0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10],t=0,r=0,o=[[9,1,7,0,65,0,253,15,26,11,0,10,4,110,97,109,101,2,3,1,0,0],[240,67,0,0,0,12,1,10,0,252,2,3,1,1,0,0,110,26,11,161,10],[6,1,4,0,18,0,11,0,10,4,110,97,109,101,2,3,1,0,0],[8,1,6,0,65,0,192,26,11,0,10,4,110,97,109,101,2,3,1,0,0],[7,1,5,0,208,112,26,11,0,10,4,110,97,109,101,2,3,1,0,0]];r<o.length;r++){var a=o[r];t<<=1,t|=e.validate(Uint8Array.of.apply(Uint8Array,i(n,a)))?1:0}return t}}function et(){for(var e=[],n=Math.random(),t=24575;t>=0;--t)if(t%4096==0){var r=Math.random();e.push((n-r)*Math.pow(2,31)|0),n=r}return e}function nt(){var t;return e(this,void 0,void 0,(function(){var r,i,o,a,u,s,c=this;return n(this,(function(l){switch(l.label){case 0:if(!(r=null===(t=window.crypto)||void 0===t?void 0:t.subtle)||!r.generateKey||!r.exportKey)return[2,-1];i=function(){return e(c,void 0,void 0,(function(){var e,t;return n(this,(function(n){switch(n.label){case 0:return[4,r.generateKey({name:"AES-GCM",length:128},!0,["encrypt"])];case 1:return e=n.sent(),[4,r.exportKey("raw",e)];case 2:return t=n.sent(),[2,new Uint8Array(t)]}}))}))},l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Promise.all([i(),i()])];case 2:for(o=l.sent(),a=new Uint8Array(o[0].length),u=0;u<o[0].length;++u)a[u]=165^o[0][u]^o[1][u];return[2,j(a)];case 3:if("NotSupportedError"===(s=l.sent()).name)return[2,-2];throw s;case 4:return[2]}}))}))}function tt(i){var o=this,a=i.delayFallback,b=r(i,["delayFallback"]),y=v(function(){var e;return(e={})[0]=ln,e[1]=Fn,e}(),b,[]),w=h(a).then((function(){g.screenFrame;var e=r(g,["screenFrame"]);return v(t(t(t({},function(){var e;return(e={})[2]=Cn,e[3]=dn,e[4]=un,e[5]=m,e[8]=Xn,e[7]=nt,e[6]=Qn,e[9]=Bn,e[10]=Zn,e[11]=zn,e[12]=cn,e[13]=hn,e[14]=mn,e[15]=et,e[16]=bn,e[17]=yn,e[18]=Dn,e[19]=Yn,e[20]=f,e[21]=d,e[22]=s,e[23]=c,e[24]=l,e[25]=u,e[26]=p,e[27]=Gn,e[28]=te,e[29]=Wn,e[30]=Kn,e[31]=Hn,e[32]=Jn,e}()),e),function(){var e;return(e={}).j=_n,e}()),b,[])}));return function(){return e(o,void 0,void 0,(function(){var e,r,i;return n(this,(function(n){switch(n.label){case 0:return[4,Promise.all([y(),w.then((function(e){return e()}))])];case 1:return e=n.sent(),r=e[0],i=e[1],[2,t(t({},r),i)]}}))}))}}function rt(e){for(var n=e+"=",t=0,r=document.cookie.split(";");t<r.length;t++){for(var i=r[t],o=0;" "===i[o]&&o<i.length;)++o;if(i.indexOf(n)===o)return i.slice(o+n.length)}}function it(e,n,t,r){var i=e+"="+n,o="expires="+new Date(Date.now()+24*t*60*60*1e3).toUTCString(),a=r?"domain="+r:"";document.cookie=[i,"path=/",o,a,"SameSite=Lax"].join("; ")}function ot(e,n,t){var r=location.hostname;(at(r,(function(n){!function(e,n){it(e,"",-1,n)}(e,n)})),t<0)||at(r,(function(r){return it(e,n,t,r),rt(e)!==n}))&&it(e,n,t)}function at(e,n){var t=e.length;do{if(t=t>0?e.lastIndexOf(".",t-1):-1,!1===n(e.slice(t+1)))return!1}while(t>=0);return!0}function ut(e,n){ot(n,e,365),function(e,n){var t;try{null===(t=null===localStorage||void 0===localStorage?void 0:localStorage.setItem)||void 0===t||t.call(localStorage,e,n)}catch(r){}}(n,e)}function st(e){var n,t;try{return null!==(t=null===(n=null===localStorage||void 0===localStorage?void 0:localStorage.getItem)||void 0===n?void 0:n.call(localStorage,e))&&void 0!==t?t:void 0}catch(r){}}function ct(e,n,t,r,i){if(!n){var o=function(e,n){return n||(Object.prototype.hasOwnProperty.call(Re,e)||(e="us"),"https://tls-"+Re[e]+".fpapi.io")}(e,t);return Y(i,(function(){return{e:6,endpoint:o}})),[Te(o,r,i),Date.now()]}}function lt(r,i,o,a,u,s,c,l){var f=this,d=function(t,r,i,l,d,g,m){return e(f,void 0,void 0,(function(){var e,f,p,b,y,w,E,T,S;return n(this,(function(n){switch(n.label){case 0:return e=R(l).then((function(){throw new Error("Client timeout")})),[4,Promise.race([e,Promise.all([h(m),v(l,i,m)])])];case 1:return f=n.sent(),p=f[0],b=f[1],w=function(e){return[rt(e),st(e)]}(y=c+"_t"),[4,Qe({apiKey:o,endpoint:Ye(a,u),components:p,customComponent:g,tag:t,visitorToken:w,tls:b,linkedId:r,extendedResult:d,algorithm:s},e,m)];case 2:return E=n.sent(),T=E[0],(S=E[1])&&ut(S,y),[2,T]}}))}))},v=function(t,r,o){return e(f,void 0,void 0,(function(){var e,a,u,s,c;return n(this,(function(n){switch(n.label){case 0:if(!i||r)return[2,void 0];e=i[0],a=i[1],u=Math.min(Math.max(.1*t,a+1e4-Date.now()),.4*t),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,e(R(u))];case 2:return s=n.sent(),Y(o,(function(){return{e:7,result:s}})),[2,{value:s}];case 3:return c=n.sent(),Y(o,(function(){return{e:8,error:c}})),[2,{error:c}];case 4:return[2]}}))}))},h=function(t){return e(f,void 0,void 0,(function(){var e,i;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,r()];case 1:return e=n.sent(),Y(t,(function(){return{e:13,result:e}})),[2,e];case 2:throw i=n.sent(),Y(t,(function(){return{e:14,error:i}})),i;case 3:return[2]}}))}))};return{get:function(e){void 0===e&&(e={});var n=l&&function(e,n){return function(r){return e(t(t({},r),{getCallId:n}))}}(l,V(8));return Q(n,(function(){return{e:3,options:e}}),(function(e){return{e:4,result:e}}),(function(e){return{e:5,error:e}}),(function(){var t=e.timeout,r=void 0===t?1e4:t,i=e.tag,o=e.linkedId,a=e.disableTls,u=e.extendedResult,s=e.environment;return d(i,U(o),a,r,u,s,n)}))}}}function ft(e,n,r){var i,o=G([null==r?void 0:r.debug,(i=/{(.*?)}/.exec(location.hash),!!i&&1915004642===function(e){for(var n=0,t=0;t<e.length;++t)n=(n<<5)-n+e.charCodeAt(t)|0;return n}(i[1])&&H())]),a=o&&function(e,n){return function(r){return e(t(t({},r),{agentId:n}))}}(o,V(8));return Q(a,(function(){return{e:0,version:"3.5.7",options:r}}),(function(){return{e:1}}),(function(e){return{e:2,error:e}}),(function(){var t=r.token,i=r.apiKey,o=void 0===i?t:i,u=r.region,s=void 0===u?"us":u,c=r.tlsEndpoint,l=r.disableTls,f=r.storageKey,d=void 0===f?"_vid":f,v=r.endpoint,h=r.delayFallback,g=r.algorithm;if(!o||"string"!=typeof o)throw new Error("Token required");var m=ct(s,l,c,n,a);return Y(a,(function(){return{e:12}})),lt(e({delayFallback:h,storageKeyPrefix:d}),m,o,s,v,U(g),d,a)}))}var dt=function(e){return ft(tt,void 0,e)},vt="Token required",ht="Token not found",gt="Token expired",mt="Request cannot be parsed",pt="Request failed",bt="Request failed to process",yt="Too many requests, rate limit exceeded",wt="Not available for this origin",Et="Not available with restricted header",Rt="Token required",Tt="Token not found",St="Token expired",It={load:dt,ERROR_CLIENT_TIMEOUT:"Client timeout",ERROR_NETWORK_CONNECTION:"Network connection error",ERROR_NETWORK_ABORT:"Network request aborted",ERROR_WRONG_REGION:qe,ERROR_SUBSCRIPTION_NOT_ACTIVE:je,ERROR_API_KEY_MISSING:"Token required",ERROR_API_KEY_INVALID:"Token not found",ERROR_API_KEY_EXPIRED:"Token expired",ERROR_BAD_REQUEST_FORMAT:"Request cannot be parsed",ERROR_BAD_RESPONSE_FORMAT:"Response 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",ERROR_UNSUPPORTED_VERSION:Me,ERROR_TOKEN_MISSING:"Token required",ERROR_TOKEN_INVALID:"Token not found",ERROR_TOKEN_EXPIRED:"Token expired"};export default It;export{gt as ERROR_API_KEY_EXPIRED,ht as ERROR_API_KEY_INVALID,vt as ERROR_API_KEY_MISSING,mt as ERROR_BAD_REQUEST_FORMAT,_e as ERROR_BAD_RESPONSE_FORMAT,Ie as ERROR_CLIENT_TIMEOUT,Et as ERROR_FORBIDDEN_HEADER,wt as ERROR_FORBIDDEN_ORIGIN,pt as ERROR_GENERAL_SERVER_FAILURE,Ae as ERROR_NETWORK_ABORT,ke as ERROR_NETWORK_CONNECTION,yt as ERROR_RATE_LIMIT,bt as ERROR_SERVER_TIMEOUT,je as ERROR_SUBSCRIPTION_NOT_ACTIVE,St as ERROR_TOKEN_EXPIRED,Tt as ERROR_TOKEN_INVALID,Rt as ERROR_TOKEN_MISSING,Me as ERROR_UNSUPPORTED_VERSION,qe as ERROR_WRONG_REGION,dt as load,$ as makeConsoleDebugger,re as makeDebugReportBuilder,G as makeMulticastDebugger,ge as makeRemoteDebugger};
{
"name": "@fingerprintjs/fingerprintjs-pro",
"description": "FingerprintJS Pro client agent",
"version": "3.5.6",
"version": "3.5.7",
"keywords": [

@@ -32,5 +32,5 @@ "browser",

"test:browserstack": "karma start tests/karma.browserstack.config.js --single-run",
"test:dts": "tsc --noEmit dist/fp.d.ts",
"test:dist-obscurity": "ts-node --compiler-options '{\"module\": \"CommonJS\"}' ./resources/check_dist_obscurity.ts",
"test:ssr": "node --require './dist/fp.cjs.min.js' --eval '' || (echo \"The distributive files can't be used with server side rendering. Make sure the code doesn't use browser API until an exported function is called.\" && exit 1)",
"check:dts": "tsc --noEmit --isolatedModules dist/fp.d.ts",
"check:dist-obscurity": "ts-node --compiler-options '{\"module\": \"CommonJS\"}' ./resources/check_dist_obscurity.ts",
"check:ssr": "node --require './dist/fp.cjs.min.js' --eval '' || (echo \"The distributive files can't be used with server side rendering. Make sure the code doesn't use browser API until an exported function is called.\" && exit 1)",
"open-dev:on": "git submodule update --init && yarn add link:subpackages/fingerprintjs && yarn --cwd subpackages/fingerprintjs install && yarn --cwd subpackages/fingerprintjs build",

@@ -37,0 +37,0 @@ "open-dev:off": "yarn add @fingerprintjs/fingerprintjs --exact",

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