Socket
Socket
Sign inDemoInstall

@fingerprintjs/fingerprintjs-pro

Package Overview
Dependencies
1
Maintainers
2
Versions
58
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.8.3 to 3.8.4

4

dist/fp.cjs.min.js
/**
* FingerprintJS Pro v3.8.3 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
* FingerprintJS Pro v3.8.4 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.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");function t(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:void 0}function r(e){for(var t="",r=0;r<e.length;++r)if(r>0){var n=e[r].toLowerCase();n!==e[r]?t+=" ".concat(n):t+=e[r]}else t+=e[r].toUpperCase();return t}var n={default:"endpoint"},R={default:"tlsEndpoint"},o="Client timeout",i="Network connection error",E="Network request aborted",_="Response cannot be parsed",a="Blocked by CSP",u="The endpoint parameter is not a valid URL",s=r("WrongRegion"),O=r("SubscriptionNotActive"),c=r("UnsupportedVersion"),p=r("InstallationMethodRestricted"),I=r("HostnameRestricted"),d=r("IntegrationFailed"),l="API key required",f="API key not found",N="API key expired",T="Request cannot be parsed",v="Request failed",A="Request failed to process",h="Too many requests, rate limit exceeded",P="Not available for this origin",D="Not available with restricted header",S=l,x=f,L=N,m="3.8.3",w="9319";function U(t,r){var n=[];return function(t,r){var n=5,R=(s=t,O=e.__spreadArray([],s,!0),{current:function(){return O[0]},postpone:function(){var e=O.shift();void 0!==e&&O.push(e)},exclude:function(){O.shift()}}),o=(E=100,_=3e3,u=0,function(){return Math.random()*Math.min(_,E*Math.pow(2,u++))}),i=R.current();var E,_,u;var s,O;if(void 0===i)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var c=function(e,t){return r(e).catch((function(e){if(t+1>=n)throw e;!function(e){if(!(e instanceof Error))return!1;var t=e.message;return t===a||t===w}(e)?R.postpone():R.exclude();var r,i=R.current();if(void 0===i)throw e;return(r=o(),new Promise((function(e){return setTimeout(e,r)}))).then((function(){return c(i,t+1)}))}))};return c(i,0)}(t,(function(e){var t=new Date,R=function(){return n.push({url:e,startedAt:t,finishedAt:new Date})},o=r(e);return o.then(R,R),o})).then((function(e){return[e,{attempts:n}]}))}var C="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",y=C,K="Failed to load the JS script of the agent";function M(r){var n;r.scriptUrlPattern;var R=r.token,o=r.apiKey,i=void 0===o?R:o,E=e.__rest(r,["scriptUrlPattern","token","apiKey"]),_=null!==(n=t(r,"scriptUrlPattern"))&&void 0!==n?n:C;return Promise.resolve().then((function(){if(!i||"string"!=typeof i)throw new Error(l);var e=function(e,t){return(Array.isArray(e)?e:[e]).map((function(e){return function(e,t){var r=encodeURIComponent;return e.replace(/<[^<>]+>/g,(function(e){return"<version>"===e?"3":"<apiKey>"===e?r(t):"<loaderVersion>"===e?r(m):e}))}(String(e),t)}))}(_,i);return U(e,g).catch(F)})).then((function(t){var r=t[0],n=t[1];return r.load(e.__assign(e.__assign({},E),{ldi:n}))}))}function g(e){return function(e,t,r,n){var R,o=document,i="securitypolicyviolation",E=function(t){var r=new URL(e,location.href),n=t.blockedURI;n!==r.href&&n!==r.protocol.slice(0,-1)&&n!==r.origin||(R=t,_())};o.addEventListener(i,E);var _=function(){return o.removeEventListener(i,E)};return null==n||n.then(_,_),Promise.resolve().then(t).then((function(e){return _(),e}),(function(e){return new Promise((function(e){return setTimeout(e)})).then((function(){if(_(),R)return r(R);throw e}))}))}(e,(function(){return function(e){return new Promise((function(t,r){var n=document.createElement("script"),R=function(){var e;return null===(e=n.parentNode)||void 0===e?void 0:e.removeChild(n)},o=document.head||document.getElementsByTagName("head")[0];n.onload=function(){R(),t()},n.onerror=function(){R(),r(new Error(K))},n.async=!0,n.src=e,o.appendChild(n)}))}(e)}),(function(){throw new Error(a)})).then(B)}function B(){var e=window,t="__fpjs_p_l_b",r=e[t];if(function(e,t){var r,n=null===(r=Object.getOwnPropertyDescriptor)||void 0===r?void 0:r.call(Object,e,t);(null==n?void 0:n.configurable)?delete e[t]:n&&!n.writable||(e[t]=void 0)}(e,t),"function"!=typeof(null==r?void 0:r.load))throw new Error(w);return r}function F(e){throw e instanceof Error&&e.message===w?new Error(K):e}var V={load:M,defaultScriptUrlPattern:y,ERROR_SCRIPT_LOAD_FAIL:K,ERROR_API_KEY_EXPIRED:N,ERROR_API_KEY_INVALID:f,ERROR_API_KEY_MISSING:l,ERROR_BAD_REQUEST_FORMAT:T,ERROR_BAD_RESPONSE_FORMAT:_,ERROR_CLIENT_TIMEOUT:o,ERROR_CSP_BLOCK:a,ERROR_FORBIDDEN_ENDPOINT:I,ERROR_FORBIDDEN_HEADER:D,ERROR_FORBIDDEN_ORIGIN:P,ERROR_GENERAL_SERVER_FAILURE:v,ERROR_INSTALLATION_METHOD_RESTRICTED:p,ERROR_INTEGRATION_FAILURE:d,ERROR_INVALID_ENDPOINT:u,ERROR_NETWORK_ABORT:E,ERROR_NETWORK_CONNECTION:i,ERROR_RATE_LIMIT:h,ERROR_SERVER_TIMEOUT:A,ERROR_SUBSCRIPTION_NOT_ACTIVE:O,ERROR_TOKEN_EXPIRED:L,ERROR_TOKEN_INVALID:x,ERROR_TOKEN_MISSING:S,ERROR_UNSUPPORTED_VERSION:c,ERROR_WRONG_REGION:s,defaultEndpoint:n,defaultTlsEndpoint:R};exports.ERROR_API_KEY_EXPIRED=N,exports.ERROR_API_KEY_INVALID=f,exports.ERROR_API_KEY_MISSING=l,exports.ERROR_BAD_REQUEST_FORMAT=T,exports.ERROR_BAD_RESPONSE_FORMAT=_,exports.ERROR_CLIENT_TIMEOUT=o,exports.ERROR_CSP_BLOCK=a,exports.ERROR_FORBIDDEN_ENDPOINT=I,exports.ERROR_FORBIDDEN_HEADER=D,exports.ERROR_FORBIDDEN_ORIGIN=P,exports.ERROR_GENERAL_SERVER_FAILURE=v,exports.ERROR_INSTALLATION_METHOD_RESTRICTED=p,exports.ERROR_INTEGRATION_FAILURE=d,exports.ERROR_INVALID_ENDPOINT=u,exports.ERROR_NETWORK_ABORT=E,exports.ERROR_NETWORK_CONNECTION=i,exports.ERROR_RATE_LIMIT=h,exports.ERROR_SCRIPT_LOAD_FAIL=K,exports.ERROR_SERVER_TIMEOUT=A,exports.ERROR_SUBSCRIPTION_NOT_ACTIVE=O,exports.ERROR_TOKEN_EXPIRED=L,exports.ERROR_TOKEN_INVALID=x,exports.ERROR_TOKEN_MISSING=S,exports.ERROR_UNSUPPORTED_VERSION=c,exports.ERROR_WRONG_REGION=s,exports.default=V,exports.defaultEndpoint=n,exports.defaultScriptUrlPattern=y,exports.defaultTlsEndpoint=R,exports.load=M;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib");function t(e){for(var t="",r=0;r<e.length;++r)if(r>0){var n=e[r].toLowerCase();n!==e[r]?t+=" ".concat(n):t+=e[r]}else t+=e[r].toUpperCase();return t}function r(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:void 0}var n={default:"endpoint"},R={default:"tlsEndpoint"},o="Client timeout",i="Network connection error",E="Network request aborted",_="Response cannot be parsed",a="Blocked by CSP",u="The endpoint parameter is not a valid URL",s=t("WrongRegion"),O=t("SubscriptionNotActive"),c=t("UnsupportedVersion"),p=t("InstallationMethodRestricted"),I=t("HostnameRestricted"),d=t("IntegrationFailed"),l="API key required",f="API key not found",N="API key expired",T="Request cannot be parsed",v="Request failed",A="Request failed to process",h="Too many requests, rate limit exceeded",P="Not available for this origin",D="Not available with restricted header",S=l,x=f,L=N,m="3.8.4",w="9319";function U(t,r){var n=[];return function(t,r){var n=5,R=(s=t,O=e.__spreadArray([],s,!0),{current:function(){return O[0]},postpone:function(){var e=O.shift();void 0!==e&&O.push(e)},exclude:function(){O.shift()}}),o=(E=100,_=3e3,u=0,function(){return Math.random()*Math.min(_,E*Math.pow(2,u++))}),i=R.current();var E,_,u;var s,O;if(void 0===i)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var c=function(e,t){return r(e).catch((function(e){if(t+1>=n)throw e;!function(e){if(!(e instanceof Error))return!1;var t=e.message;return t===a||t===w}(e)?R.postpone():R.exclude();var r,i=R.current();if(void 0===i)throw e;return(r=o(),new Promise((function(e){return setTimeout(e,r)}))).then((function(){return c(i,t+1)}))}))};return c(i,0)}(t,(function(e){var t=new Date,R=function(){return n.push({url:e,startedAt:t,finishedAt:new Date})},o=r(e);return o.then(R,R),o})).then((function(e){return[e,{attempts:n}]}))}var C="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",y=C,K="Failed to load the JS script of the agent";function M(t){var n;t.scriptUrlPattern;var R=t.token,o=t.apiKey,i=void 0===o?R:o,E=e.__rest(t,["scriptUrlPattern","token","apiKey"]),_=null!==(n=r(t,"scriptUrlPattern"))&&void 0!==n?n:C;return Promise.resolve().then((function(){if(!i||"string"!=typeof i)throw new Error(l);var e=function(e,t){return(Array.isArray(e)?e:[e]).map((function(e){return function(e,t){var r=encodeURIComponent;return e.replace(/<[^<>]+>/g,(function(e){return"<version>"===e?"3":"<apiKey>"===e?r(t):"<loaderVersion>"===e?r(m):e}))}(String(e),t)}))}(_,i);return U(e,g).catch(F)})).then((function(t){var r=t[0],n=t[1];return r.load(e.__assign(e.__assign({},E),{ldi:n}))}))}function g(e){return function(e,t,r,n){var R,o=document,i="securitypolicyviolation",E=function(t){var r=new URL(e,location.href),n=t.blockedURI;n!==r.href&&n!==r.protocol.slice(0,-1)&&n!==r.origin||(R=t,_())};o.addEventListener(i,E);var _=function(){return o.removeEventListener(i,E)};return null==n||n.then(_,_),Promise.resolve().then(t).then((function(e){return _(),e}),(function(e){return new Promise((function(e){return setTimeout(e)})).then((function(){if(_(),R)return r(R);throw e}))}))}(e,(function(){return function(e){return new Promise((function(t,r){var n=document.createElement("script"),R=function(){var e;return null===(e=n.parentNode)||void 0===e?void 0:e.removeChild(n)},o=document.head||document.getElementsByTagName("head")[0];n.onload=function(){R(),t()},n.onerror=function(){R(),r(new Error(K))},n.async=!0,n.src=e,o.appendChild(n)}))}(e)}),(function(){throw new Error(a)})).then(B)}function B(){var e=window,t="__fpjs_p_l_b",r=e[t];if(function(e,t){var r,n=null===(r=Object.getOwnPropertyDescriptor)||void 0===r?void 0:r.call(Object,e,t);(null==n?void 0:n.configurable)?delete e[t]:n&&!n.writable||(e[t]=void 0)}(e,t),"function"!=typeof(null==r?void 0:r.load))throw new Error(w);return r}function F(e){throw e instanceof Error&&e.message===w?new Error(K):e}var V={load:M,defaultScriptUrlPattern:y,ERROR_SCRIPT_LOAD_FAIL:K,ERROR_API_KEY_EXPIRED:N,ERROR_API_KEY_INVALID:f,ERROR_API_KEY_MISSING:l,ERROR_BAD_REQUEST_FORMAT:T,ERROR_BAD_RESPONSE_FORMAT:_,ERROR_CLIENT_TIMEOUT:o,ERROR_CSP_BLOCK:a,ERROR_FORBIDDEN_ENDPOINT:I,ERROR_FORBIDDEN_HEADER:D,ERROR_FORBIDDEN_ORIGIN:P,ERROR_GENERAL_SERVER_FAILURE:v,ERROR_INSTALLATION_METHOD_RESTRICTED:p,ERROR_INTEGRATION_FAILURE:d,ERROR_INVALID_ENDPOINT:u,ERROR_NETWORK_ABORT:E,ERROR_NETWORK_CONNECTION:i,ERROR_RATE_LIMIT:h,ERROR_SERVER_TIMEOUT:A,ERROR_SUBSCRIPTION_NOT_ACTIVE:O,ERROR_TOKEN_EXPIRED:L,ERROR_TOKEN_INVALID:x,ERROR_TOKEN_MISSING:S,ERROR_UNSUPPORTED_VERSION:c,ERROR_WRONG_REGION:s,defaultEndpoint:n,defaultTlsEndpoint:R};exports.ERROR_API_KEY_EXPIRED=N,exports.ERROR_API_KEY_INVALID=f,exports.ERROR_API_KEY_MISSING=l,exports.ERROR_BAD_REQUEST_FORMAT=T,exports.ERROR_BAD_RESPONSE_FORMAT=_,exports.ERROR_CLIENT_TIMEOUT=o,exports.ERROR_CSP_BLOCK=a,exports.ERROR_FORBIDDEN_ENDPOINT=I,exports.ERROR_FORBIDDEN_HEADER=D,exports.ERROR_FORBIDDEN_ORIGIN=P,exports.ERROR_GENERAL_SERVER_FAILURE=v,exports.ERROR_INSTALLATION_METHOD_RESTRICTED=p,exports.ERROR_INTEGRATION_FAILURE=d,exports.ERROR_INVALID_ENDPOINT=u,exports.ERROR_NETWORK_ABORT=E,exports.ERROR_NETWORK_CONNECTION=i,exports.ERROR_RATE_LIMIT=h,exports.ERROR_SCRIPT_LOAD_FAIL=K,exports.ERROR_SERVER_TIMEOUT=A,exports.ERROR_SUBSCRIPTION_NOT_ACTIVE=O,exports.ERROR_TOKEN_EXPIRED=L,exports.ERROR_TOKEN_INVALID=x,exports.ERROR_TOKEN_MISSING=S,exports.ERROR_UNSUPPORTED_VERSION=c,exports.ERROR_WRONG_REGION=s,exports.default=V,exports.defaultEndpoint=n,exports.defaultScriptUrlPattern=y,exports.defaultTlsEndpoint=R,exports.load=M;
/**
* FingerprintJS Pro v3.8.3 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
* FingerprintJS Pro v3.8.4 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
*

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

*/
subdivisions?: [
{
isoCode: string;
name: string;
}
];
subdivisions?: {
isoCode: string;
name: string;
}[];
/**

@@ -83,0 +81,0 @@ * Country, when available. Will be missing for Tor/anonymous proxies.

/**
* FingerprintJS Pro v3.8.3 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
* FingerprintJS Pro v3.8.4 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
*

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

import{__spreadArray as e,__rest as t,__assign as n}from"tslib";function r(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:void 0}function o(e){for(var t="",n=0;n<e.length;++n)if(n>0){var r=e[n].toLowerCase();r!==e[n]?t+=" ".concat(r):t+=e[n]}else t+=e[n].toUpperCase();return t}var i={default:"endpoint"},R={default:"tlsEndpoint"},u="Client timeout",a="Network connection error",c="Network request aborted",E="Response cannot be parsed",s="Blocked by CSP",f="The endpoint parameter is not a valid URL",d=/*#__PURE__*/o("WrongRegion"),l=/*#__PURE__*/o("SubscriptionNotActive"),_=/*#__PURE__*/o("UnsupportedVersion"),p=/*#__PURE__*/o("InstallationMethodRestricted"),O=/*#__PURE__*/o("HostnameRestricted"),v=/*#__PURE__*/o("IntegrationFailed"),I="API key required",h="API key not found",N="API key expired",T="Request cannot be parsed",m="Request failed",A="Request failed to process",w="Too many requests, rate limit exceeded",P="Not available for this origin",D="Not available with restricted header",y=I,S=h,L=N,U="3.8.3",g="9319";function C(t,n){var r=[];return function(t,n){var r=5,o=(E=t,f=e([],E,!0),{current:function(){return f[0]},postpone:function(){var e=f.shift();void 0!==e&&f.push(e)},exclude:function(){f.shift()}}),i=(u=100,a=3e3,c=0,function(){return Math.random()*Math.min(a,u*Math.pow(2,c++))}),R=o.current();var u,a,c;var E,f;if(void 0===R)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var d=function(e,t){return n(e).catch((function(e){if(t+1>=r)throw e;!function(e){if(!(e instanceof Error))return!1;var t=e.message;return t===s||t===g}(e)?o.postpone():o.exclude();var n,R=o.current();if(void 0===R)throw e;return(n=i(),new Promise((function(e){return setTimeout(e,n)}))).then((function(){return d(R,t+1)}))}))};return d(R,0)}(t,(function(e){var t=new Date,o=function(){return r.push({url:e,startedAt:t,finishedAt:new Date})},i=n(e);return i.then(o,o),i})).then((function(e){return[e,{attempts:r}]}))}var b="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",K=b,M="Failed to load the JS script of the agent";function B(e){var o;e.scriptUrlPattern;var i=e.token,R=e.apiKey,u=void 0===R?i:R,a=t(e,["scriptUrlPattern","token","apiKey"]),c=null!==(o=r(e,"scriptUrlPattern"))&&void 0!==o?o:b;return Promise.resolve().then((function(){if(!u||"string"!=typeof u)throw new Error(I);var e=function(e,t){return(Array.isArray(e)?e:[e]).map((function(e){return function(e,t){var n=encodeURIComponent;return e.replace(/<[^<>]+>/g,(function(e){return"<version>"===e?"3":"<apiKey>"===e?n(t):"<loaderVersion>"===e?n(U):e}))}(String(e),t)}))}(c,u);return C(e,F).catch(k)})).then((function(e){var t=e[0],r=e[1];return t.load(n(n({},a),{ldi:r}))}))}function F(e){return function(e,t,n,r){var o,i=document,R="securitypolicyviolation",u=function(t){var n=new URL(e,location.href),r=t.blockedURI;r!==n.href&&r!==n.protocol.slice(0,-1)&&r!==n.origin||(o=t,a())};i.addEventListener(R,u);var a=function(){return i.removeEventListener(R,u)};return null==r||r.then(a,a),Promise.resolve().then(t).then((function(e){return a(),e}),(function(e){return new Promise((function(e){return setTimeout(e)})).then((function(){if(a(),o)return n(o);throw e}))}))}(e,(function(){return function(e){return new Promise((function(t,n){var r=document.createElement("script"),o=function(){var e;return null===(e=r.parentNode)||void 0===e?void 0:e.removeChild(r)},i=document.head||document.getElementsByTagName("head")[0];r.onload=function(){o(),t()},r.onerror=function(){o(),n(new Error(M))},r.async=!0,r.src=e,i.appendChild(r)}))}(e)}),(function(){throw new Error(s)})).then(V)}function V(){var e=window,t="__fpjs_p_l_b",n=e[t];if(function(e,t){var n,r=null===(n=Object.getOwnPropertyDescriptor)||void 0===n?void 0:n.call(Object,e,t);(null==r?void 0:r.configurable)?delete e[t]:r&&!r.writable||(e[t]=void 0)}(e,t),"function"!=typeof(null==n?void 0:n.load))throw new Error(g);return n}function k(e){throw e instanceof Error&&e.message===g?new Error(M):e}var G={load:B,defaultScriptUrlPattern:K,ERROR_SCRIPT_LOAD_FAIL:M,ERROR_API_KEY_EXPIRED:N,ERROR_API_KEY_INVALID:h,ERROR_API_KEY_MISSING:I,ERROR_BAD_REQUEST_FORMAT:T,ERROR_BAD_RESPONSE_FORMAT:E,ERROR_CLIENT_TIMEOUT:u,ERROR_CSP_BLOCK:s,ERROR_FORBIDDEN_ENDPOINT:O,ERROR_FORBIDDEN_HEADER:D,ERROR_FORBIDDEN_ORIGIN:P,ERROR_GENERAL_SERVER_FAILURE:m,ERROR_INSTALLATION_METHOD_RESTRICTED:p,ERROR_INTEGRATION_FAILURE:v,ERROR_INVALID_ENDPOINT:f,ERROR_NETWORK_ABORT:c,ERROR_NETWORK_CONNECTION:a,ERROR_RATE_LIMIT:w,ERROR_SERVER_TIMEOUT:A,ERROR_SUBSCRIPTION_NOT_ACTIVE:l,ERROR_TOKEN_EXPIRED:L,ERROR_TOKEN_INVALID:S,ERROR_TOKEN_MISSING:y,ERROR_UNSUPPORTED_VERSION:_,ERROR_WRONG_REGION:d,defaultEndpoint:i,defaultTlsEndpoint:R};export{N as ERROR_API_KEY_EXPIRED,h as ERROR_API_KEY_INVALID,I as ERROR_API_KEY_MISSING,T as ERROR_BAD_REQUEST_FORMAT,E as ERROR_BAD_RESPONSE_FORMAT,u as ERROR_CLIENT_TIMEOUT,s as ERROR_CSP_BLOCK,O as ERROR_FORBIDDEN_ENDPOINT,D as ERROR_FORBIDDEN_HEADER,P as ERROR_FORBIDDEN_ORIGIN,m as ERROR_GENERAL_SERVER_FAILURE,p as ERROR_INSTALLATION_METHOD_RESTRICTED,v as ERROR_INTEGRATION_FAILURE,f as ERROR_INVALID_ENDPOINT,c as ERROR_NETWORK_ABORT,a as ERROR_NETWORK_CONNECTION,w as ERROR_RATE_LIMIT,M as ERROR_SCRIPT_LOAD_FAIL,A as ERROR_SERVER_TIMEOUT,l as ERROR_SUBSCRIPTION_NOT_ACTIVE,L as ERROR_TOKEN_EXPIRED,S as ERROR_TOKEN_INVALID,y as ERROR_TOKEN_MISSING,_ as ERROR_UNSUPPORTED_VERSION,d as ERROR_WRONG_REGION,G as default,i as defaultEndpoint,K as defaultScriptUrlPattern,R as defaultTlsEndpoint,B as load};
import{__spreadArray as e,__rest as t,__assign as n}from"tslib";function r(e){for(var t="",n=0;n<e.length;++n)if(n>0){var r=e[n].toLowerCase();r!==e[n]?t+=" ".concat(r):t+=e[n]}else t+=e[n].toUpperCase();return t}function o(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:void 0}var i={default:"endpoint"},R={default:"tlsEndpoint"},u="Client timeout",a="Network connection error",c="Network request aborted",E="Response cannot be parsed",s="Blocked by CSP",f="The endpoint parameter is not a valid URL",d=/*#__PURE__*/r("WrongRegion"),l=/*#__PURE__*/r("SubscriptionNotActive"),_=/*#__PURE__*/r("UnsupportedVersion"),p=/*#__PURE__*/r("InstallationMethodRestricted"),O=/*#__PURE__*/r("HostnameRestricted"),v=/*#__PURE__*/r("IntegrationFailed"),I="API key required",h="API key not found",N="API key expired",T="Request cannot be parsed",m="Request failed",A="Request failed to process",w="Too many requests, rate limit exceeded",P="Not available for this origin",D="Not available with restricted header",y=I,S=h,L=N,U="3.8.4",g="9319";function C(t,n){var r=[];return function(t,n){var r=5,o=(E=t,f=e([],E,!0),{current:function(){return f[0]},postpone:function(){var e=f.shift();void 0!==e&&f.push(e)},exclude:function(){f.shift()}}),i=(u=100,a=3e3,c=0,function(){return Math.random()*Math.min(a,u*Math.pow(2,c++))}),R=o.current();var u,a,c;var E,f;if(void 0===R)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var d=function(e,t){return n(e).catch((function(e){if(t+1>=r)throw e;!function(e){if(!(e instanceof Error))return!1;var t=e.message;return t===s||t===g}(e)?o.postpone():o.exclude();var n,R=o.current();if(void 0===R)throw e;return(n=i(),new Promise((function(e){return setTimeout(e,n)}))).then((function(){return d(R,t+1)}))}))};return d(R,0)}(t,(function(e){var t=new Date,o=function(){return r.push({url:e,startedAt:t,finishedAt:new Date})},i=n(e);return i.then(o,o),i})).then((function(e){return[e,{attempts:r}]}))}var b="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",K=b,M="Failed to load the JS script of the agent";function B(e){var r;e.scriptUrlPattern;var i=e.token,R=e.apiKey,u=void 0===R?i:R,a=t(e,["scriptUrlPattern","token","apiKey"]),c=null!==(r=o(e,"scriptUrlPattern"))&&void 0!==r?r:b;return Promise.resolve().then((function(){if(!u||"string"!=typeof u)throw new Error(I);var e=function(e,t){return(Array.isArray(e)?e:[e]).map((function(e){return function(e,t){var n=encodeURIComponent;return e.replace(/<[^<>]+>/g,(function(e){return"<version>"===e?"3":"<apiKey>"===e?n(t):"<loaderVersion>"===e?n(U):e}))}(String(e),t)}))}(c,u);return C(e,F).catch(k)})).then((function(e){var t=e[0],r=e[1];return t.load(n(n({},a),{ldi:r}))}))}function F(e){return function(e,t,n,r){var o,i=document,R="securitypolicyviolation",u=function(t){var n=new URL(e,location.href),r=t.blockedURI;r!==n.href&&r!==n.protocol.slice(0,-1)&&r!==n.origin||(o=t,a())};i.addEventListener(R,u);var a=function(){return i.removeEventListener(R,u)};return null==r||r.then(a,a),Promise.resolve().then(t).then((function(e){return a(),e}),(function(e){return new Promise((function(e){return setTimeout(e)})).then((function(){if(a(),o)return n(o);throw e}))}))}(e,(function(){return function(e){return new Promise((function(t,n){var r=document.createElement("script"),o=function(){var e;return null===(e=r.parentNode)||void 0===e?void 0:e.removeChild(r)},i=document.head||document.getElementsByTagName("head")[0];r.onload=function(){o(),t()},r.onerror=function(){o(),n(new Error(M))},r.async=!0,r.src=e,i.appendChild(r)}))}(e)}),(function(){throw new Error(s)})).then(V)}function V(){var e=window,t="__fpjs_p_l_b",n=e[t];if(function(e,t){var n,r=null===(n=Object.getOwnPropertyDescriptor)||void 0===n?void 0:n.call(Object,e,t);(null==r?void 0:r.configurable)?delete e[t]:r&&!r.writable||(e[t]=void 0)}(e,t),"function"!=typeof(null==n?void 0:n.load))throw new Error(g);return n}function k(e){throw e instanceof Error&&e.message===g?new Error(M):e}var G={load:B,defaultScriptUrlPattern:K,ERROR_SCRIPT_LOAD_FAIL:M,ERROR_API_KEY_EXPIRED:N,ERROR_API_KEY_INVALID:h,ERROR_API_KEY_MISSING:I,ERROR_BAD_REQUEST_FORMAT:T,ERROR_BAD_RESPONSE_FORMAT:E,ERROR_CLIENT_TIMEOUT:u,ERROR_CSP_BLOCK:s,ERROR_FORBIDDEN_ENDPOINT:O,ERROR_FORBIDDEN_HEADER:D,ERROR_FORBIDDEN_ORIGIN:P,ERROR_GENERAL_SERVER_FAILURE:m,ERROR_INSTALLATION_METHOD_RESTRICTED:p,ERROR_INTEGRATION_FAILURE:v,ERROR_INVALID_ENDPOINT:f,ERROR_NETWORK_ABORT:c,ERROR_NETWORK_CONNECTION:a,ERROR_RATE_LIMIT:w,ERROR_SERVER_TIMEOUT:A,ERROR_SUBSCRIPTION_NOT_ACTIVE:l,ERROR_TOKEN_EXPIRED:L,ERROR_TOKEN_INVALID:S,ERROR_TOKEN_MISSING:y,ERROR_UNSUPPORTED_VERSION:_,ERROR_WRONG_REGION:d,defaultEndpoint:i,defaultTlsEndpoint:R};export{N as ERROR_API_KEY_EXPIRED,h as ERROR_API_KEY_INVALID,I as ERROR_API_KEY_MISSING,T as ERROR_BAD_REQUEST_FORMAT,E as ERROR_BAD_RESPONSE_FORMAT,u as ERROR_CLIENT_TIMEOUT,s as ERROR_CSP_BLOCK,O as ERROR_FORBIDDEN_ENDPOINT,D as ERROR_FORBIDDEN_HEADER,P as ERROR_FORBIDDEN_ORIGIN,m as ERROR_GENERAL_SERVER_FAILURE,p as ERROR_INSTALLATION_METHOD_RESTRICTED,v as ERROR_INTEGRATION_FAILURE,f as ERROR_INVALID_ENDPOINT,c as ERROR_NETWORK_ABORT,a as ERROR_NETWORK_CONNECTION,w as ERROR_RATE_LIMIT,M as ERROR_SCRIPT_LOAD_FAIL,A as ERROR_SERVER_TIMEOUT,l as ERROR_SUBSCRIPTION_NOT_ACTIVE,L as ERROR_TOKEN_EXPIRED,S as ERROR_TOKEN_INVALID,y as ERROR_TOKEN_MISSING,_ as ERROR_UNSUPPORTED_VERSION,d as ERROR_WRONG_REGION,G as default,i as defaultEndpoint,K as defaultScriptUrlPattern,R as defaultTlsEndpoint,B as load};
/**
* FingerprintJS Pro v3.8.3 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
* FingerprintJS Pro v3.8.4 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
*

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

var FingerprintJS=function(e){"use strict";var t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var R in t=arguments[n])Object.prototype.hasOwnProperty.call(t,R)&&(e[R]=t[R]);return e},t.apply(this,arguments)};function n(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:void 0}function r(e){var t=function(e,t,n){if(n||2===arguments.length)for(var r,R=0,o=t.length;R<o;R++)!r&&R in t||(r||(r=Array.prototype.slice.call(t,0,R)),r[R]=t[R]);return e.concat(r||Array.prototype.slice.call(t))}([],e,!0);return{current:function(){return t[0]},postpone:function(){var e=t.shift();void 0!==e&&t.push(e)},exclude:function(){t.shift()}}}function R(e){for(var t="",n=0;n<e.length;++n)if(n>0){var r=e[n].toLowerCase();r!==e[n]?t+=" ".concat(r):t+=e[n]}else t+=e[n].toUpperCase();return t}var o={default:"endpoint"},i={default:"tlsEndpoint"},E="Client timeout",a="Network connection error",u="Network request aborted",O="Response cannot be parsed",_="Blocked by CSP",c="The endpoint parameter is not a valid URL",l=R("WrongRegion"),f=R("SubscriptionNotActive"),s=R("UnsupportedVersion"),I=R("InstallationMethodRestricted"),d=R("HostnameRestricted"),p=R("IntegrationFailed"),N="API key required",T="API key not found",v="API key expired",A="Request cannot be parsed",h="Request failed",P="Request failed to process",D="Too many requests, rate limit exceeded",S="Not available for this origin",y="Not available with restricted header",m=N,w=T,L=v,U="3.8.3",C="9319";function b(e,t){var n=[];return function(e,t){var n=5,R=r(e),o=(E=100,a=3e3,u=0,function(){return Math.random()*Math.min(a,E*Math.pow(2,u++))}),i=R.current();var E,a,u;if(void 0===i)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var O=function(e,r){return t(e).catch((function(e){if(r+1>=n)throw e;!function(e){if(!(e instanceof Error))return!1;var t=e.message;return t===_||t===C}(e)?R.postpone():R.exclude();var t,i=R.current();if(void 0===i)throw e;return(t=o(),new Promise((function(e){return setTimeout(e,t)}))).then((function(){return O(i,r+1)}))}))};return O(i,0)}(e,(function(e){var r=new Date,R=function(){return n.push({url:e,startedAt:r,finishedAt:new Date})},o=t(e);return o.then(R,R),o})).then((function(e){return[e,{attempts:n}]}))}var g="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",K=g,M="Failed to load the JS script of the agent";function F(e){var r;e.scriptUrlPattern;var R=e.token,o=e.apiKey,i=void 0===o?R:o,E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var R=0;for(r=Object.getOwnPropertySymbols(e);R<r.length;R++)t.indexOf(r[R])<0&&Object.prototype.propertyIsEnumerable.call(e,r[R])&&(n[r[R]]=e[r[R]])}return n}(e,["scriptUrlPattern","token","apiKey"]),a=null!==(r=n(e,"scriptUrlPattern"))&&void 0!==r?r:g;return Promise.resolve().then((function(){if(!i||"string"!=typeof i)throw new Error(N);var e=function(e,t){return(Array.isArray(e)?e:[e]).map((function(e){return function(e,t){var n=encodeURIComponent;return e.replace(/<[^<>]+>/g,(function(e){return"<version>"===e?"3":"<apiKey>"===e?n(t):"<loaderVersion>"===e?n(U):e}))}(String(e),t)}))}(a,i);return b(e,B).catch(G)})).then((function(e){var n=e[0],r=e[1];return n.load(t(t({},E),{ldi:r}))}))}function B(e){return function(e,t,n,r){var R,o=document,i="securitypolicyviolation",E=function(t){var n=new URL(e,location.href),r=t.blockedURI;r!==n.href&&r!==n.protocol.slice(0,-1)&&r!==n.origin||(R=t,a())};o.addEventListener(i,E);var a=function(){return o.removeEventListener(i,E)};return null==r||r.then(a,a),Promise.resolve().then(t).then((function(e){return a(),e}),(function(e){return new Promise((function(e){return setTimeout(e)})).then((function(){if(a(),R)return n(R);throw e}))}))}(e,(function(){return function(e){return new Promise((function(t,n){var r=document.createElement("script"),R=function(){var e;return null===(e=r.parentNode)||void 0===e?void 0:e.removeChild(r)},o=document.head||document.getElementsByTagName("head")[0];r.onload=function(){R(),t()},r.onerror=function(){R(),n(new Error(M))},r.async=!0,r.src=e,o.appendChild(r)}))}(e)}),(function(){throw new Error(_)})).then(V)}function V(){var e=window,t="__fpjs_p_l_b",n=e[t];if(function(e,t){var n,r=null===(n=Object.getOwnPropertyDescriptor)||void 0===n?void 0:n.call(Object,e,t);(null==r?void 0:r.configurable)?delete e[t]:r&&!r.writable||(e[t]=void 0)}(e,t),"function"!=typeof(null==n?void 0:n.load))throw new Error(C);return n}function G(e){throw e instanceof Error&&e.message===C?new Error(M):e}var j={load:F,defaultScriptUrlPattern:K,ERROR_SCRIPT_LOAD_FAIL:M,ERROR_API_KEY_EXPIRED:v,ERROR_API_KEY_INVALID:T,ERROR_API_KEY_MISSING:N,ERROR_BAD_REQUEST_FORMAT:A,ERROR_BAD_RESPONSE_FORMAT:O,ERROR_CLIENT_TIMEOUT:E,ERROR_CSP_BLOCK:_,ERROR_FORBIDDEN_ENDPOINT:d,ERROR_FORBIDDEN_HEADER:y,ERROR_FORBIDDEN_ORIGIN:S,ERROR_GENERAL_SERVER_FAILURE:h,ERROR_INSTALLATION_METHOD_RESTRICTED:I,ERROR_INTEGRATION_FAILURE:p,ERROR_INVALID_ENDPOINT:c,ERROR_NETWORK_ABORT:u,ERROR_NETWORK_CONNECTION:a,ERROR_RATE_LIMIT:D,ERROR_SERVER_TIMEOUT:P,ERROR_SUBSCRIPTION_NOT_ACTIVE:f,ERROR_TOKEN_EXPIRED:L,ERROR_TOKEN_INVALID:w,ERROR_TOKEN_MISSING:m,ERROR_UNSUPPORTED_VERSION:s,ERROR_WRONG_REGION:l,defaultEndpoint:o,defaultTlsEndpoint:i};return e.ERROR_API_KEY_EXPIRED=v,e.ERROR_API_KEY_INVALID=T,e.ERROR_API_KEY_MISSING=N,e.ERROR_BAD_REQUEST_FORMAT=A,e.ERROR_BAD_RESPONSE_FORMAT=O,e.ERROR_CLIENT_TIMEOUT=E,e.ERROR_CSP_BLOCK=_,e.ERROR_FORBIDDEN_ENDPOINT=d,e.ERROR_FORBIDDEN_HEADER=y,e.ERROR_FORBIDDEN_ORIGIN=S,e.ERROR_GENERAL_SERVER_FAILURE=h,e.ERROR_INSTALLATION_METHOD_RESTRICTED=I,e.ERROR_INTEGRATION_FAILURE=p,e.ERROR_INVALID_ENDPOINT=c,e.ERROR_NETWORK_ABORT=u,e.ERROR_NETWORK_CONNECTION=a,e.ERROR_RATE_LIMIT=D,e.ERROR_SCRIPT_LOAD_FAIL=M,e.ERROR_SERVER_TIMEOUT=P,e.ERROR_SUBSCRIPTION_NOT_ACTIVE=f,e.ERROR_TOKEN_EXPIRED=L,e.ERROR_TOKEN_INVALID=w,e.ERROR_TOKEN_MISSING=m,e.ERROR_UNSUPPORTED_VERSION=s,e.ERROR_WRONG_REGION=l,e.default=j,e.defaultEndpoint=o,e.defaultScriptUrlPattern=K,e.defaultTlsEndpoint=i,e.load=F,Object.defineProperty(e,"__esModule",{value:!0}),e}({});
var FingerprintJS=function(e){"use strict";var t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var R in t=arguments[n])Object.prototype.hasOwnProperty.call(t,R)&&(e[R]=t[R]);return e},t.apply(this,arguments)};function n(e){for(var t="",n=0;n<e.length;++n)if(n>0){var r=e[n].toLowerCase();r!==e[n]?t+=" ".concat(r):t+=e[n]}else t+=e[n].toUpperCase();return t}function r(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:void 0}function R(e){var t=function(e,t,n){if(n||2===arguments.length)for(var r,R=0,o=t.length;R<o;R++)!r&&R in t||(r||(r=Array.prototype.slice.call(t,0,R)),r[R]=t[R]);return e.concat(r||Array.prototype.slice.call(t))}([],e,!0);return{current:function(){return t[0]},postpone:function(){var e=t.shift();void 0!==e&&t.push(e)},exclude:function(){t.shift()}}}var o={default:"endpoint"},i={default:"tlsEndpoint"},E="Client timeout",a="Network connection error",u="Network request aborted",O="Response cannot be parsed",_="Blocked by CSP",c="The endpoint parameter is not a valid URL",l=n("WrongRegion"),f=n("SubscriptionNotActive"),s=n("UnsupportedVersion"),I=n("InstallationMethodRestricted"),d=n("HostnameRestricted"),p=n("IntegrationFailed"),N="API key required",T="API key not found",v="API key expired",A="Request cannot be parsed",h="Request failed",P="Request failed to process",D="Too many requests, rate limit exceeded",S="Not available for this origin",y="Not available with restricted header",m=N,w=T,L=v,U="3.8.4",C="9319";function b(e,t){var n=[];return function(e,t){var n=5,r=R(e),o=(E=100,a=3e3,u=0,function(){return Math.random()*Math.min(a,E*Math.pow(2,u++))}),i=r.current();var E,a,u;if(void 0===i)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var O=function(e,R){return t(e).catch((function(e){if(R+1>=n)throw e;!function(e){if(!(e instanceof Error))return!1;var t=e.message;return t===_||t===C}(e)?r.postpone():r.exclude();var t,i=r.current();if(void 0===i)throw e;return(t=o(),new Promise((function(e){return setTimeout(e,t)}))).then((function(){return O(i,R+1)}))}))};return O(i,0)}(e,(function(e){var r=new Date,R=function(){return n.push({url:e,startedAt:r,finishedAt:new Date})},o=t(e);return o.then(R,R),o})).then((function(e){return[e,{attempts:n}]}))}var g="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",K=g,M="Failed to load the JS script of the agent";function F(e){var n;e.scriptUrlPattern;var R=e.token,o=e.apiKey,i=void 0===o?R:o,E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var R=0;for(r=Object.getOwnPropertySymbols(e);R<r.length;R++)t.indexOf(r[R])<0&&Object.prototype.propertyIsEnumerable.call(e,r[R])&&(n[r[R]]=e[r[R]])}return n}(e,["scriptUrlPattern","token","apiKey"]),a=null!==(n=r(e,"scriptUrlPattern"))&&void 0!==n?n:g;return Promise.resolve().then((function(){if(!i||"string"!=typeof i)throw new Error(N);var e=function(e,t){return(Array.isArray(e)?e:[e]).map((function(e){return function(e,t){var n=encodeURIComponent;return e.replace(/<[^<>]+>/g,(function(e){return"<version>"===e?"3":"<apiKey>"===e?n(t):"<loaderVersion>"===e?n(U):e}))}(String(e),t)}))}(a,i);return b(e,B).catch(G)})).then((function(e){var n=e[0],r=e[1];return n.load(t(t({},E),{ldi:r}))}))}function B(e){return function(e,t,n,r){var R,o=document,i="securitypolicyviolation",E=function(t){var n=new URL(e,location.href),r=t.blockedURI;r!==n.href&&r!==n.protocol.slice(0,-1)&&r!==n.origin||(R=t,a())};o.addEventListener(i,E);var a=function(){return o.removeEventListener(i,E)};return null==r||r.then(a,a),Promise.resolve().then(t).then((function(e){return a(),e}),(function(e){return new Promise((function(e){return setTimeout(e)})).then((function(){if(a(),R)return n(R);throw e}))}))}(e,(function(){return function(e){return new Promise((function(t,n){var r=document.createElement("script"),R=function(){var e;return null===(e=r.parentNode)||void 0===e?void 0:e.removeChild(r)},o=document.head||document.getElementsByTagName("head")[0];r.onload=function(){R(),t()},r.onerror=function(){R(),n(new Error(M))},r.async=!0,r.src=e,o.appendChild(r)}))}(e)}),(function(){throw new Error(_)})).then(V)}function V(){var e=window,t="__fpjs_p_l_b",n=e[t];if(function(e,t){var n,r=null===(n=Object.getOwnPropertyDescriptor)||void 0===n?void 0:n.call(Object,e,t);(null==r?void 0:r.configurable)?delete e[t]:r&&!r.writable||(e[t]=void 0)}(e,t),"function"!=typeof(null==n?void 0:n.load))throw new Error(C);return n}function G(e){throw e instanceof Error&&e.message===C?new Error(M):e}var j={load:F,defaultScriptUrlPattern:K,ERROR_SCRIPT_LOAD_FAIL:M,ERROR_API_KEY_EXPIRED:v,ERROR_API_KEY_INVALID:T,ERROR_API_KEY_MISSING:N,ERROR_BAD_REQUEST_FORMAT:A,ERROR_BAD_RESPONSE_FORMAT:O,ERROR_CLIENT_TIMEOUT:E,ERROR_CSP_BLOCK:_,ERROR_FORBIDDEN_ENDPOINT:d,ERROR_FORBIDDEN_HEADER:y,ERROR_FORBIDDEN_ORIGIN:S,ERROR_GENERAL_SERVER_FAILURE:h,ERROR_INSTALLATION_METHOD_RESTRICTED:I,ERROR_INTEGRATION_FAILURE:p,ERROR_INVALID_ENDPOINT:c,ERROR_NETWORK_ABORT:u,ERROR_NETWORK_CONNECTION:a,ERROR_RATE_LIMIT:D,ERROR_SERVER_TIMEOUT:P,ERROR_SUBSCRIPTION_NOT_ACTIVE:f,ERROR_TOKEN_EXPIRED:L,ERROR_TOKEN_INVALID:w,ERROR_TOKEN_MISSING:m,ERROR_UNSUPPORTED_VERSION:s,ERROR_WRONG_REGION:l,defaultEndpoint:o,defaultTlsEndpoint:i};return e.ERROR_API_KEY_EXPIRED=v,e.ERROR_API_KEY_INVALID=T,e.ERROR_API_KEY_MISSING=N,e.ERROR_BAD_REQUEST_FORMAT=A,e.ERROR_BAD_RESPONSE_FORMAT=O,e.ERROR_CLIENT_TIMEOUT=E,e.ERROR_CSP_BLOCK=_,e.ERROR_FORBIDDEN_ENDPOINT=d,e.ERROR_FORBIDDEN_HEADER=y,e.ERROR_FORBIDDEN_ORIGIN=S,e.ERROR_GENERAL_SERVER_FAILURE=h,e.ERROR_INSTALLATION_METHOD_RESTRICTED=I,e.ERROR_INTEGRATION_FAILURE=p,e.ERROR_INVALID_ENDPOINT=c,e.ERROR_NETWORK_ABORT=u,e.ERROR_NETWORK_CONNECTION=a,e.ERROR_RATE_LIMIT=D,e.ERROR_SCRIPT_LOAD_FAIL=M,e.ERROR_SERVER_TIMEOUT=P,e.ERROR_SUBSCRIPTION_NOT_ACTIVE=f,e.ERROR_TOKEN_EXPIRED=L,e.ERROR_TOKEN_INVALID=w,e.ERROR_TOKEN_MISSING=m,e.ERROR_UNSUPPORTED_VERSION=s,e.ERROR_WRONG_REGION=l,e.default=j,e.defaultEndpoint=o,e.defaultScriptUrlPattern=K,e.defaultTlsEndpoint=i,e.load=F,Object.defineProperty(e,"__esModule",{value:!0}),e}({});
/**
* FingerprintJS Pro v3.8.3 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
* FingerprintJS Pro v3.8.4 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
*

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).FingerprintJS={})}(this,(function(e){"use strict";var t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)};function n(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:void 0}function r(e){var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,R=t.length;o<R;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],e,!0);return{current:function(){return t[0]},postpone:function(){var e=t.shift();void 0!==e&&t.push(e)},exclude:function(){t.shift()}}}function o(e){for(var t="",n=0;n<e.length;++n)if(n>0){var r=e[n].toLowerCase();r!==e[n]?t+=" ".concat(r):t+=e[n]}else t+=e[n].toUpperCase();return t}var R={default:"endpoint"},i={default:"tlsEndpoint"},E="Client timeout",a="Network connection error",u="Network request aborted",O="Response cannot be parsed",c="Blocked by CSP",_="The endpoint parameter is not a valid URL",l=o("WrongRegion"),f=o("SubscriptionNotActive"),s=o("UnsupportedVersion"),d=o("InstallationMethodRestricted"),I=o("HostnameRestricted"),p=o("IntegrationFailed"),N="API key required",T="API key not found",v="API key expired",h="Request cannot be parsed",A="Request failed",P="Request failed to process",y="Too many requests, rate limit exceeded",D="Not available for this origin",S="Not available with restricted header",m=N,w=T,L=v,U="3.8.3",b="9319";function g(e,t){var n=[];return function(e,t){var n=5,o=r(e),R=(E=100,a=3e3,u=0,function(){return Math.random()*Math.min(a,E*Math.pow(2,u++))}),i=o.current();var E,a,u;if(void 0===i)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var O=function(e,r){return t(e).catch((function(e){if(r+1>=n)throw e;!function(e){if(!(e instanceof Error))return!1;var t=e.message;return t===c||t===b}(e)?o.postpone():o.exclude();var t,i=o.current();if(void 0===i)throw e;return(t=R(),new Promise((function(e){return setTimeout(e,t)}))).then((function(){return O(i,r+1)}))}))};return O(i,0)}(e,(function(e){var r=new Date,o=function(){return n.push({url:e,startedAt:r,finishedAt:new Date})},R=t(e);return R.then(o,o),R})).then((function(e){return[e,{attempts:n}]}))}var C="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",K=C,M="Failed to load the JS script of the agent";function F(e){var r;e.scriptUrlPattern;var o=e.token,R=e.apiKey,i=void 0===R?o:R,E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["scriptUrlPattern","token","apiKey"]),a=null!==(r=n(e,"scriptUrlPattern"))&&void 0!==r?r:C;return Promise.resolve().then((function(){if(!i||"string"!=typeof i)throw new Error(N);var e=function(e,t){return(Array.isArray(e)?e:[e]).map((function(e){return function(e,t){var n=encodeURIComponent;return e.replace(/<[^<>]+>/g,(function(e){return"<version>"===e?"3":"<apiKey>"===e?n(t):"<loaderVersion>"===e?n(U):e}))}(String(e),t)}))}(a,i);return g(e,B).catch(j)})).then((function(e){var n=e[0],r=e[1];return n.load(t(t({},E),{ldi:r}))}))}function B(e){return function(e,t,n,r){var o,R=document,i="securitypolicyviolation",E=function(t){var n=new URL(e,location.href),r=t.blockedURI;r!==n.href&&r!==n.protocol.slice(0,-1)&&r!==n.origin||(o=t,a())};R.addEventListener(i,E);var a=function(){return R.removeEventListener(i,E)};return null==r||r.then(a,a),Promise.resolve().then(t).then((function(e){return a(),e}),(function(e){return new Promise((function(e){return setTimeout(e)})).then((function(){if(a(),o)return n(o);throw e}))}))}(e,(function(){return function(e){return new Promise((function(t,n){var r=document.createElement("script"),o=function(){var e;return null===(e=r.parentNode)||void 0===e?void 0:e.removeChild(r)},R=document.head||document.getElementsByTagName("head")[0];r.onload=function(){o(),t()},r.onerror=function(){o(),n(new Error(M))},r.async=!0,r.src=e,R.appendChild(r)}))}(e)}),(function(){throw new Error(c)})).then(V)}function V(){var e=window,t="__fpjs_p_l_b",n=e[t];if(function(e,t){var n,r=null===(n=Object.getOwnPropertyDescriptor)||void 0===n?void 0:n.call(Object,e,t);(null==r?void 0:r.configurable)?delete e[t]:r&&!r.writable||(e[t]=void 0)}(e,t),"function"!=typeof(null==n?void 0:n.load))throw new Error(b);return n}function j(e){throw e instanceof Error&&e.message===b?new Error(M):e}var G={load:F,defaultScriptUrlPattern:K,ERROR_SCRIPT_LOAD_FAIL:M,ERROR_API_KEY_EXPIRED:v,ERROR_API_KEY_INVALID:T,ERROR_API_KEY_MISSING:N,ERROR_BAD_REQUEST_FORMAT:h,ERROR_BAD_RESPONSE_FORMAT:O,ERROR_CLIENT_TIMEOUT:E,ERROR_CSP_BLOCK:c,ERROR_FORBIDDEN_ENDPOINT:I,ERROR_FORBIDDEN_HEADER:S,ERROR_FORBIDDEN_ORIGIN:D,ERROR_GENERAL_SERVER_FAILURE:A,ERROR_INSTALLATION_METHOD_RESTRICTED:d,ERROR_INTEGRATION_FAILURE:p,ERROR_INVALID_ENDPOINT:_,ERROR_NETWORK_ABORT:u,ERROR_NETWORK_CONNECTION:a,ERROR_RATE_LIMIT:y,ERROR_SERVER_TIMEOUT:P,ERROR_SUBSCRIPTION_NOT_ACTIVE:f,ERROR_TOKEN_EXPIRED:L,ERROR_TOKEN_INVALID:w,ERROR_TOKEN_MISSING:m,ERROR_UNSUPPORTED_VERSION:s,ERROR_WRONG_REGION:l,defaultEndpoint:R,defaultTlsEndpoint:i};e.ERROR_API_KEY_EXPIRED=v,e.ERROR_API_KEY_INVALID=T,e.ERROR_API_KEY_MISSING=N,e.ERROR_BAD_REQUEST_FORMAT=h,e.ERROR_BAD_RESPONSE_FORMAT=O,e.ERROR_CLIENT_TIMEOUT=E,e.ERROR_CSP_BLOCK=c,e.ERROR_FORBIDDEN_ENDPOINT=I,e.ERROR_FORBIDDEN_HEADER=S,e.ERROR_FORBIDDEN_ORIGIN=D,e.ERROR_GENERAL_SERVER_FAILURE=A,e.ERROR_INSTALLATION_METHOD_RESTRICTED=d,e.ERROR_INTEGRATION_FAILURE=p,e.ERROR_INVALID_ENDPOINT=_,e.ERROR_NETWORK_ABORT=u,e.ERROR_NETWORK_CONNECTION=a,e.ERROR_RATE_LIMIT=y,e.ERROR_SCRIPT_LOAD_FAIL=M,e.ERROR_SERVER_TIMEOUT=P,e.ERROR_SUBSCRIPTION_NOT_ACTIVE=f,e.ERROR_TOKEN_EXPIRED=L,e.ERROR_TOKEN_INVALID=w,e.ERROR_TOKEN_MISSING=m,e.ERROR_UNSUPPORTED_VERSION=s,e.ERROR_WRONG_REGION=l,e.default=G,e.defaultEndpoint=R,e.defaultScriptUrlPattern=K,e.defaultTlsEndpoint=i,e.load=F,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).FingerprintJS={})}(this,(function(e){"use strict";var t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)};function n(e){for(var t="",n=0;n<e.length;++n)if(n>0){var r=e[n].toLowerCase();r!==e[n]?t+=" ".concat(r):t+=e[n]}else t+=e[n].toUpperCase();return t}function r(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:void 0}function o(e){var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,R=t.length;o<R;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],e,!0);return{current:function(){return t[0]},postpone:function(){var e=t.shift();void 0!==e&&t.push(e)},exclude:function(){t.shift()}}}var R={default:"endpoint"},i={default:"tlsEndpoint"},E="Client timeout",a="Network connection error",u="Network request aborted",O="Response cannot be parsed",c="Blocked by CSP",_="The endpoint parameter is not a valid URL",l=n("WrongRegion"),f=n("SubscriptionNotActive"),s=n("UnsupportedVersion"),d=n("InstallationMethodRestricted"),I=n("HostnameRestricted"),p=n("IntegrationFailed"),N="API key required",T="API key not found",v="API key expired",h="Request cannot be parsed",A="Request failed",P="Request failed to process",y="Too many requests, rate limit exceeded",D="Not available for this origin",S="Not available with restricted header",m=N,w=T,L=v,U="3.8.4",b="9319";function g(e,t){var n=[];return function(e,t){var n=5,r=o(e),R=(E=100,a=3e3,u=0,function(){return Math.random()*Math.min(a,E*Math.pow(2,u++))}),i=r.current();var E,a,u;if(void 0===i)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var O=function(e,o){return t(e).catch((function(e){if(o+1>=n)throw e;!function(e){if(!(e instanceof Error))return!1;var t=e.message;return t===c||t===b}(e)?r.postpone():r.exclude();var t,i=r.current();if(void 0===i)throw e;return(t=R(),new Promise((function(e){return setTimeout(e,t)}))).then((function(){return O(i,o+1)}))}))};return O(i,0)}(e,(function(e){var r=new Date,o=function(){return n.push({url:e,startedAt:r,finishedAt:new Date})},R=t(e);return R.then(o,o),R})).then((function(e){return[e,{attempts:n}]}))}var C="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",K=C,M="Failed to load the JS script of the agent";function F(e){var n;e.scriptUrlPattern;var o=e.token,R=e.apiKey,i=void 0===R?o:R,E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["scriptUrlPattern","token","apiKey"]),a=null!==(n=r(e,"scriptUrlPattern"))&&void 0!==n?n:C;return Promise.resolve().then((function(){if(!i||"string"!=typeof i)throw new Error(N);var e=function(e,t){return(Array.isArray(e)?e:[e]).map((function(e){return function(e,t){var n=encodeURIComponent;return e.replace(/<[^<>]+>/g,(function(e){return"<version>"===e?"3":"<apiKey>"===e?n(t):"<loaderVersion>"===e?n(U):e}))}(String(e),t)}))}(a,i);return g(e,B).catch(j)})).then((function(e){var n=e[0],r=e[1];return n.load(t(t({},E),{ldi:r}))}))}function B(e){return function(e,t,n,r){var o,R=document,i="securitypolicyviolation",E=function(t){var n=new URL(e,location.href),r=t.blockedURI;r!==n.href&&r!==n.protocol.slice(0,-1)&&r!==n.origin||(o=t,a())};R.addEventListener(i,E);var a=function(){return R.removeEventListener(i,E)};return null==r||r.then(a,a),Promise.resolve().then(t).then((function(e){return a(),e}),(function(e){return new Promise((function(e){return setTimeout(e)})).then((function(){if(a(),o)return n(o);throw e}))}))}(e,(function(){return function(e){return new Promise((function(t,n){var r=document.createElement("script"),o=function(){var e;return null===(e=r.parentNode)||void 0===e?void 0:e.removeChild(r)},R=document.head||document.getElementsByTagName("head")[0];r.onload=function(){o(),t()},r.onerror=function(){o(),n(new Error(M))},r.async=!0,r.src=e,R.appendChild(r)}))}(e)}),(function(){throw new Error(c)})).then(V)}function V(){var e=window,t="__fpjs_p_l_b",n=e[t];if(function(e,t){var n,r=null===(n=Object.getOwnPropertyDescriptor)||void 0===n?void 0:n.call(Object,e,t);(null==r?void 0:r.configurable)?delete e[t]:r&&!r.writable||(e[t]=void 0)}(e,t),"function"!=typeof(null==n?void 0:n.load))throw new Error(b);return n}function j(e){throw e instanceof Error&&e.message===b?new Error(M):e}var G={load:F,defaultScriptUrlPattern:K,ERROR_SCRIPT_LOAD_FAIL:M,ERROR_API_KEY_EXPIRED:v,ERROR_API_KEY_INVALID:T,ERROR_API_KEY_MISSING:N,ERROR_BAD_REQUEST_FORMAT:h,ERROR_BAD_RESPONSE_FORMAT:O,ERROR_CLIENT_TIMEOUT:E,ERROR_CSP_BLOCK:c,ERROR_FORBIDDEN_ENDPOINT:I,ERROR_FORBIDDEN_HEADER:S,ERROR_FORBIDDEN_ORIGIN:D,ERROR_GENERAL_SERVER_FAILURE:A,ERROR_INSTALLATION_METHOD_RESTRICTED:d,ERROR_INTEGRATION_FAILURE:p,ERROR_INVALID_ENDPOINT:_,ERROR_NETWORK_ABORT:u,ERROR_NETWORK_CONNECTION:a,ERROR_RATE_LIMIT:y,ERROR_SERVER_TIMEOUT:P,ERROR_SUBSCRIPTION_NOT_ACTIVE:f,ERROR_TOKEN_EXPIRED:L,ERROR_TOKEN_INVALID:w,ERROR_TOKEN_MISSING:m,ERROR_UNSUPPORTED_VERSION:s,ERROR_WRONG_REGION:l,defaultEndpoint:R,defaultTlsEndpoint:i};e.ERROR_API_KEY_EXPIRED=v,e.ERROR_API_KEY_INVALID=T,e.ERROR_API_KEY_MISSING=N,e.ERROR_BAD_REQUEST_FORMAT=h,e.ERROR_BAD_RESPONSE_FORMAT=O,e.ERROR_CLIENT_TIMEOUT=E,e.ERROR_CSP_BLOCK=c,e.ERROR_FORBIDDEN_ENDPOINT=I,e.ERROR_FORBIDDEN_HEADER=S,e.ERROR_FORBIDDEN_ORIGIN=D,e.ERROR_GENERAL_SERVER_FAILURE=A,e.ERROR_INSTALLATION_METHOD_RESTRICTED=d,e.ERROR_INTEGRATION_FAILURE=p,e.ERROR_INVALID_ENDPOINT=_,e.ERROR_NETWORK_ABORT=u,e.ERROR_NETWORK_CONNECTION=a,e.ERROR_RATE_LIMIT=y,e.ERROR_SCRIPT_LOAD_FAIL=M,e.ERROR_SERVER_TIMEOUT=P,e.ERROR_SUBSCRIPTION_NOT_ACTIVE=f,e.ERROR_TOKEN_EXPIRED=L,e.ERROR_TOKEN_INVALID=w,e.ERROR_TOKEN_MISSING=m,e.ERROR_UNSUPPORTED_VERSION=s,e.ERROR_WRONG_REGION=l,e.default=G,e.defaultEndpoint=R,e.defaultScriptUrlPattern=K,e.defaultTlsEndpoint=i,e.load=F,Object.defineProperty(e,"__esModule",{value:!0})}));
{
"name": "@fingerprintjs/fingerprintjs-pro",
"description": "FingerprintJS Pro client agent",
"version": "3.8.3",
"version": "3.8.4",
"keywords": [

@@ -6,0 +6,0 @@ "browser",

@@ -5,5 +5,5 @@ <p align="center">

<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/fingerprintjs/library-template-typescript/1e1c73706046b8e9255145433ecfcfc48d4e9765/resources/logo_light.svg" />
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/fingerprintjs/library-template-typescript/1e1c73706046b8e9255145433ecfcfc48d4e9765/resources/logo_dark.svg" />
<img src="https://raw.githubusercontent.com/fingerprintjs/library-template-typescript/1e1c73706046b8e9255145433ecfcfc48d4e9765/resources/logo_dark.svg" alt="Fingerprint logo" width="312px" />
<source media="(prefers-color-scheme: dark)" srcset="https://fingerprintjs.github.io/home/resources/logo_light.svg" />
<source media="(prefers-color-scheme: light)" srcset="https://fingerprintjs.github.io/home/resources/logo_dark.svg" />
<img src="https://fingerprintjs.github.io/home/resources/logo_dark.svg" alt="Fingerprint logo" width="312px" />
</picture>

@@ -10,0 +10,0 @@ </a>

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc