@rebilly/risk-data-collector 2.1.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -8
- package/cypress/integration/data-collector.spec.js +68 -7
- package/cypress/test-data/index.js +33 -0
- package/cypress.json +4 -1
- package/dist/data-collector.js +1 -1
- package/dist/data-collector.min.js +1 -1
- package/dist/data-collector.min.js.map +1 -1
- package/package.json +2 -2
- package/src/data-collector.js +38 -11
- package/src/fingerprint.js +6 -6
- package/src/kount.js +52 -0
- package/cypress/fixtures/example.json +0 -5
- package/cypress/plugins/index.js +0 -22
- package/cypress/support/commands.js +0 -25
- package/cypress/support/index.js +0 -20
package/README.md
CHANGED
|
@@ -13,6 +13,7 @@ screenHeight
|
|
|
13
13
|
screenWidth
|
|
14
14
|
timeZoneOffset
|
|
15
15
|
deviceFingerprintHash
|
|
16
|
+
kountFraudSessionId (optional)
|
|
16
17
|
```
|
|
17
18
|
|
|
18
19
|
## Usage
|
|
@@ -28,11 +29,11 @@ The library becomes available under the `RiskDataCollector` global namespace and
|
|
|
28
29
|
|
|
29
30
|
<body>
|
|
30
31
|
<script type="text/javascript">
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
(async () => {
|
|
33
|
+
const browserData = await RiskDataCollector.collectData();
|
|
34
|
+
console.log(`browserData is: ${JSON.stringify(browserData)}`);
|
|
35
|
+
})()
|
|
36
|
+
</script>
|
|
36
37
|
</body>
|
|
37
38
|
<html>
|
|
38
39
|
```
|
|
@@ -51,7 +52,26 @@ Which can be imported and used like so:
|
|
|
51
52
|
import {collectData} from '@rebilly/risk-data-collector';
|
|
52
53
|
|
|
53
54
|
(async () => {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
const browserData = await collectData();
|
|
56
|
+
console.log(`browserData is: ${JSON.stringify(browserData)}`);
|
|
57
|
+
})()
|
|
57
58
|
```
|
|
59
|
+
|
|
60
|
+
## Kount
|
|
61
|
+
`risk-data-collector` works with [Kount](https://kount.com/) to collect `kountFraudSessionId`.
|
|
62
|
+
|
|
63
|
+
If you already have an account with Kount, you can use it with `risk-data-collector` by providing:
|
|
64
|
+
* `env` - `sandbox` or `production`, determines which Kount environment to use (defaults to `sandbox`)
|
|
65
|
+
* `kountAccountId` - your Kount account ID
|
|
66
|
+
* (optional) `kountSessionId` - 32 character session ID, omit to have Kount generate a session ID for you
|
|
67
|
+
|
|
68
|
+
Example:
|
|
69
|
+
```js
|
|
70
|
+
import {collectData} from '@rebilly/risk-data-collector';
|
|
71
|
+
|
|
72
|
+
(async () => {
|
|
73
|
+
const env = 'production';
|
|
74
|
+
const kountAccountId = '123456';
|
|
75
|
+
const browserData = await collectData({ env, kountAccountId });
|
|
76
|
+
console.log(`browserData is: ${JSON.stringify(browserData)}`)
|
|
77
|
+
})()
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
/* eslint-disable no-self-compare, no-undef, no-confusing-arrow */
|
|
2
2
|
import { collectData, collectDataHelper } from '../../src/data-collector';
|
|
3
3
|
import getFingerprint from '../../src/fingerprint';
|
|
4
|
+
import getFraudSessionId from '../../src/kount';
|
|
4
5
|
import {
|
|
5
6
|
dataWithAllArguments,
|
|
6
7
|
dataMissingScreen,
|
|
7
8
|
dataMissingNavigator,
|
|
8
9
|
dataMissingFingerprintJs,
|
|
10
|
+
dataMissingKount,
|
|
9
11
|
dataMissingAllArguments,
|
|
10
12
|
} from '../test-data';
|
|
11
13
|
|
|
12
14
|
const isNull = (x) => !x && typeof x === 'object';
|
|
13
|
-
|
|
14
15
|
const getType = (value) => isNull(value) ? null : typeof value;
|
|
15
16
|
|
|
16
17
|
const getTypes = (data) => {
|
|
@@ -28,15 +29,25 @@ const getTypes = (data) => {
|
|
|
28
29
|
return dataTypes;
|
|
29
30
|
};
|
|
30
31
|
|
|
32
|
+
const env = 'sandbox';
|
|
33
|
+
const kountAccountId = '700000';
|
|
34
|
+
|
|
31
35
|
describe('collectData', () => {
|
|
32
36
|
it('Returns an object', async () => {
|
|
37
|
+
const browserData = await collectData({ env, kountAccountId });
|
|
38
|
+
|
|
39
|
+
expect(browserData).to.be.a('object');
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
it('Works when Kount configurations are omitted', async () => {
|
|
33
43
|
const browserData = await collectData();
|
|
34
44
|
|
|
35
45
|
expect(browserData).to.be.a('object');
|
|
46
|
+
expect(getTypes(browserData)).to.deep.equal(dataMissingKount);
|
|
36
47
|
});
|
|
37
48
|
|
|
38
49
|
it('browserData has the correct property types', async () => {
|
|
39
|
-
const browserData = getTypes(await collectData());
|
|
50
|
+
const browserData = getTypes(await collectData({ env, kountAccountId }));
|
|
40
51
|
|
|
41
52
|
expect(browserData).to.deep.equal(dataWithAllArguments);
|
|
42
53
|
});
|
|
@@ -44,19 +55,40 @@ describe('collectData', () => {
|
|
|
44
55
|
|
|
45
56
|
describe('collectDataHelper', () => {
|
|
46
57
|
it('Returns an object when it receives all arguments', async () => {
|
|
47
|
-
const browserData = await collectDataHelper(
|
|
58
|
+
const browserData = await collectDataHelper({
|
|
59
|
+
env,
|
|
60
|
+
screen,
|
|
61
|
+
navigator,
|
|
62
|
+
kountAccountId,
|
|
63
|
+
getFingerprint,
|
|
64
|
+
getFraudSessionId,
|
|
65
|
+
});
|
|
48
66
|
|
|
49
67
|
expect(browserData).to.be.a('object');
|
|
50
68
|
});
|
|
51
69
|
|
|
52
70
|
it('Uses fallback values whenever screen is missing', async () => {
|
|
53
|
-
const browserData = getTypes(await collectDataHelper(
|
|
71
|
+
const browserData = getTypes(await collectDataHelper({
|
|
72
|
+
env,
|
|
73
|
+
screen: null,
|
|
74
|
+
navigator,
|
|
75
|
+
kountAccountId,
|
|
76
|
+
getFingerprint,
|
|
77
|
+
getFraudSessionId,
|
|
78
|
+
}));
|
|
54
79
|
|
|
55
80
|
expect(browserData).to.deep.equal(dataMissingScreen);
|
|
56
81
|
});
|
|
57
82
|
|
|
58
83
|
it('Uses fallback values whenever navigator is missing', async () => {
|
|
59
|
-
const browserData = getTypes(await collectDataHelper(
|
|
84
|
+
const browserData = getTypes(await collectDataHelper({
|
|
85
|
+
env,
|
|
86
|
+
screen,
|
|
87
|
+
navigator: null,
|
|
88
|
+
kountAccountId,
|
|
89
|
+
getFingerprint,
|
|
90
|
+
getFraudSessionId,
|
|
91
|
+
}));
|
|
60
92
|
|
|
61
93
|
expect(browserData).to.deep.equal(dataMissingNavigator);
|
|
62
94
|
});
|
|
@@ -66,13 +98,42 @@ describe('collectDataHelper', () => {
|
|
|
66
98
|
resolve('');
|
|
67
99
|
});
|
|
68
100
|
|
|
69
|
-
const browserData = getTypes(await collectDataHelper(
|
|
101
|
+
const browserData = getTypes(await collectDataHelper({
|
|
102
|
+
env,
|
|
103
|
+
screen,
|
|
104
|
+
navigator,
|
|
105
|
+
kountAccountId,
|
|
106
|
+
getFingerprint: mockFingerprint,
|
|
107
|
+
getFraudSessionId,
|
|
108
|
+
}));
|
|
70
109
|
|
|
71
110
|
expect(browserData).to.deep.equal(dataMissingFingerprintJs);
|
|
72
111
|
});
|
|
73
112
|
|
|
113
|
+
it('Uses fallback values whenever Kount fails', async () => {
|
|
114
|
+
const mockKount = () => new Promise((resolve) => {
|
|
115
|
+
resolve('');
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
const browserData = getTypes(await collectDataHelper({
|
|
119
|
+
env,
|
|
120
|
+
screen,
|
|
121
|
+
navigator,
|
|
122
|
+
kountAccountId,
|
|
123
|
+
getFingerprint,
|
|
124
|
+
getFraudSessionId: mockKount,
|
|
125
|
+
}));
|
|
126
|
+
|
|
127
|
+
expect(browserData).to.deep.equal(dataMissingKount);
|
|
128
|
+
});
|
|
129
|
+
|
|
74
130
|
it('Uses fallback values if all arguments are missing', async () => {
|
|
75
|
-
const browserData = getTypes(await collectDataHelper(
|
|
131
|
+
const browserData = getTypes(await collectDataHelper({
|
|
132
|
+
screen: null,
|
|
133
|
+
navigator: null,
|
|
134
|
+
getFingerprint: null,
|
|
135
|
+
getFraudSessionId: null,
|
|
136
|
+
}));
|
|
76
137
|
|
|
77
138
|
expect(browserData).to.deep.equal(dataMissingAllArguments);
|
|
78
139
|
});
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
const dataWithAllArguments = {
|
|
2
2
|
riskMetadata: {
|
|
3
3
|
fingerprint: 'string',
|
|
4
|
+
extraData: {
|
|
5
|
+
kountFraudSessionId: 'string',
|
|
6
|
+
},
|
|
4
7
|
browserData: {
|
|
5
8
|
colorDepth: 'number',
|
|
6
9
|
isJavaEnabled: 'boolean',
|
|
@@ -15,6 +18,9 @@ const dataWithAllArguments = {
|
|
|
15
18
|
const dataMissingScreen = {
|
|
16
19
|
riskMetadata: {
|
|
17
20
|
fingerprint: 'string',
|
|
21
|
+
extraData: {
|
|
22
|
+
kountFraudSessionId: 'string',
|
|
23
|
+
},
|
|
18
24
|
browserData: {
|
|
19
25
|
colorDepth: null,
|
|
20
26
|
isJavaEnabled: 'boolean',
|
|
@@ -29,6 +35,9 @@ const dataMissingScreen = {
|
|
|
29
35
|
const dataMissingNavigator = {
|
|
30
36
|
riskMetadata: {
|
|
31
37
|
fingerprint: 'string',
|
|
38
|
+
extraData: {
|
|
39
|
+
kountFraudSessionId: 'string',
|
|
40
|
+
},
|
|
32
41
|
browserData: {
|
|
33
42
|
colorDepth: 'number',
|
|
34
43
|
isJavaEnabled: null,
|
|
@@ -43,6 +52,26 @@ const dataMissingNavigator = {
|
|
|
43
52
|
const dataMissingFingerprintJs = {
|
|
44
53
|
riskMetadata: {
|
|
45
54
|
fingerprint: null,
|
|
55
|
+
extraData: {
|
|
56
|
+
kountFraudSessionId: 'string',
|
|
57
|
+
},
|
|
58
|
+
browserData: {
|
|
59
|
+
colorDepth: 'number',
|
|
60
|
+
isJavaEnabled: 'boolean',
|
|
61
|
+
language: 'string',
|
|
62
|
+
screenHeight: 'number',
|
|
63
|
+
screenWidth: 'number',
|
|
64
|
+
timeZoneOffset: 'number',
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const dataMissingKount = {
|
|
70
|
+
riskMetadata: {
|
|
71
|
+
fingerprint: 'string',
|
|
72
|
+
extraData: {
|
|
73
|
+
kountFraudSessionId: null,
|
|
74
|
+
},
|
|
46
75
|
browserData: {
|
|
47
76
|
colorDepth: 'number',
|
|
48
77
|
isJavaEnabled: 'boolean',
|
|
@@ -57,6 +86,9 @@ const dataMissingFingerprintJs = {
|
|
|
57
86
|
const dataMissingAllArguments = {
|
|
58
87
|
riskMetadata: {
|
|
59
88
|
fingerprint: null,
|
|
89
|
+
extraData: {
|
|
90
|
+
kountFraudSessionId: null,
|
|
91
|
+
},
|
|
60
92
|
browserData: {
|
|
61
93
|
colorDepth: null,
|
|
62
94
|
isJavaEnabled: null,
|
|
@@ -73,5 +105,6 @@ export {
|
|
|
73
105
|
dataMissingScreen,
|
|
74
106
|
dataMissingNavigator,
|
|
75
107
|
dataMissingFingerprintJs,
|
|
108
|
+
dataMissingKount,
|
|
76
109
|
dataMissingAllArguments,
|
|
77
110
|
};
|
package/cypress.json
CHANGED
package/dist/data-collector.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var n=t((function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var a=t&&t.prototype instanceof m?t:m,i=Object.create(a.prototype),o=new b(r||[]);return i._invoke=function(e,t,n){var r=d;return function(a,i){if(r===h)throw new Error("Generator is already running");if(r===g){if("throw"===a)throw i;return M()}for(n.method=a,n.arg=i;;){var o=n.delegate;if(o){var c=C(o,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?g:f,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=g,n.method="throw",n.arg=u.arg)}}}(e,n,o),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d="suspendedStart",f="suspendedYield",h="executing",g="completed",p={};function m(){}function v(){}function y(){}var T={};T[i]=function(){return this};var w=Object.getPrototypeOf,A=w&&w(w(L([])));A&&A!==n&&r.call(A,i)&&(T=A);var S=y.prototype=m.prototype=Object.create(T);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(a,i,o,c){var u=l(e[a],e,i);if("throw"!==u.type){var s=u.arg,d=s.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,c)}),(function(e){n("throw",e,o,c)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,c)}))}c(u.arg)}var a;this._invoke=function(e,r){function i(){return new t((function(t,a){n(e,r,t,a)}))}return a=a?a.then(i,i):i()}}function C(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var a=l(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,p;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function B(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function b(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(B,this),this.reset(!0)}function L(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function n(){for(;++a<e.length;)if(r.call(e,a))return n.value=e[a],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}return{next:M}}function M(){return{value:t,done:!0}}return v.prototype=S.constructor=y,y.constructor=v,v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},x(E.prototype),E.prototype[o]=function(){return this},e.AsyncIterator=E,e.async=function(t,n,r,a,i){void 0===i&&(i=Promise);var o=new E(s(t,n,r,a),i);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(S),u(S,c,"Generator"),S[i]=function(){return this},S.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=L,b.prototype={constructor:b,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function a(r,a){return c.type="throw",c.arg=e,n.next=r,a&&(n.method="next",n.arg=t),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],c=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;O(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}));function r(e,t,n,r,a,i,o){try{var c=e[i](o),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,a)}var a=function(e){return function(){var t=this,n=arguments;return new Promise((function(a,i){var o=e.apply(t,n);function c(e){r(o,a,i,c,u,"next",e)}function u(e){r(o,a,i,c,u,"throw",e)}c(void 0)}))}},i=t((function(t){var n,r;n=e,r=function(){void 0===Array.isArray&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e=function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]},t=function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]},n=function(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])},r=function(e,t){return 0==(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]},a=function(e,t){return[e[0]^t[0],e[1]^t[1]]},i=function(e){return e=a(e,[0,e[0]>>>1]),e=t(e,[4283543511,3981806797]),e=a(e,[0,e[0]>>>1]),e=t(e,[3301882366,444984403]),e=a(e,[0,e[0]>>>1])},o=function(o,c){c=c||0;for(var u=(o=o||"").length%16,s=o.length-u,l=[0,c],d=[0,c],f=[0,0],h=[0,0],g=[2277735313,289559509],p=[1291169091,658871167],m=0;m<s;m+=16)f=[255&o.charCodeAt(m+4)|(255&o.charCodeAt(m+5))<<8|(255&o.charCodeAt(m+6))<<16|(255&o.charCodeAt(m+7))<<24,255&o.charCodeAt(m)|(255&o.charCodeAt(m+1))<<8|(255&o.charCodeAt(m+2))<<16|(255&o.charCodeAt(m+3))<<24],h=[255&o.charCodeAt(m+12)|(255&o.charCodeAt(m+13))<<8|(255&o.charCodeAt(m+14))<<16|(255&o.charCodeAt(m+15))<<24,255&o.charCodeAt(m+8)|(255&o.charCodeAt(m+9))<<8|(255&o.charCodeAt(m+10))<<16|(255&o.charCodeAt(m+11))<<24],f=t(f,g),f=n(f,31),f=t(f,p),l=a(l,f),l=n(l,27),l=e(l,d),l=e(t(l,[0,5]),[0,1390208809]),h=t(h,p),h=n(h,33),h=t(h,g),d=a(d,h),d=n(d,31),d=e(d,l),d=e(t(d,[0,5]),[0,944331445]);switch(f=[0,0],h=[0,0],u){case 15:h=a(h,r([0,o.charCodeAt(m+14)],48));case 14:h=a(h,r([0,o.charCodeAt(m+13)],40));case 13:h=a(h,r([0,o.charCodeAt(m+12)],32));case 12:h=a(h,r([0,o.charCodeAt(m+11)],24));case 11:h=a(h,r([0,o.charCodeAt(m+10)],16));case 10:h=a(h,r([0,o.charCodeAt(m+9)],8));case 9:h=a(h,[0,o.charCodeAt(m+8)]),h=t(h,p),h=n(h,33),h=t(h,g),d=a(d,h);case 8:f=a(f,r([0,o.charCodeAt(m+7)],56));case 7:f=a(f,r([0,o.charCodeAt(m+6)],48));case 6:f=a(f,r([0,o.charCodeAt(m+5)],40));case 5:f=a(f,r([0,o.charCodeAt(m+4)],32));case 4:f=a(f,r([0,o.charCodeAt(m+3)],24));case 3:f=a(f,r([0,o.charCodeAt(m+2)],16));case 2:f=a(f,r([0,o.charCodeAt(m+1)],8));case 1:f=a(f,[0,o.charCodeAt(m)]),f=t(f,g),f=n(f,31),f=t(f,p),l=a(l,f)}return l=a(l,[0,o.length]),d=a(d,[0,o.length]),l=e(l,d),d=e(d,l),l=i(l),d=i(d),l=e(l,d),d=e(d,l),("00000000"+(l[0]>>>0).toString(16)).slice(-8)+("00000000"+(l[1]>>>0).toString(16)).slice(-8)+("00000000"+(d[0]>>>0).toString(16)).slice(-8)+("00000000"+(d[1]>>>0).toString(16)).slice(-8)},c={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,fontsFlash:!0,adBlock:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},u=function(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t);else if(e.length===+e.length)for(var n=0,r=e.length;n<r;n++)t(e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t(e[a],a,e)},s=function(e,t){var n=[];return null==e?n:Array.prototype.map&&e.map===Array.prototype.map?e.map(t):(u(e,(function(e,r,a){n.push(t(e,r,a))})),n)},l=function(){return navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices},d=function(e){var t=[window.screen.width,window.screen.height];return e.screen.detectScreenOrientation&&t.sort().reverse(),t},f=function(e){if(window.screen.availWidth&&window.screen.availHeight){var t=[window.screen.availHeight,window.screen.availWidth];return e.screen.detectScreenOrientation&&t.sort().reverse(),t}return e.NOT_AVAILABLE},h=function(e){if(null==navigator.plugins)return e.NOT_AVAILABLE;for(var t=[],n=0,r=navigator.plugins.length;n<r;n++)navigator.plugins[n]&&t.push(navigator.plugins[n]);return p(e)&&(t=t.sort((function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}))),s(t,(function(e){var t=s(e,(function(e){return[e.type,e.suffixes]}));return[e.name,e.description,t]}))},g=function(e){var t=[];return Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window?t=s(["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"],(function(t){try{return new window.ActiveXObject(t),t}catch(t){return e.ERROR}})):t.push(e.NOT_AVAILABLE),navigator.plugins&&(t=t.concat(h(e))),t},p=function(e){for(var t=!1,n=0,r=e.plugins.sortPluginsFor.length;n<r;n++){var a=e.plugins.sortPluginsFor[n];if(navigator.userAgent.match(a)){t=!0;break}}return t},m=function(e){try{return!!window.sessionStorage}catch(t){return e.ERROR}},v=function(e){try{return!!window.localStorage}catch(t){return e.ERROR}},y=function(e){if(R())return e.EXCLUDED;try{return!!window.indexedDB}catch(t){return e.ERROR}},T=function(e){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:e.NOT_AVAILABLE},w=function(e){return navigator.cpuClass||e.NOT_AVAILABLE},A=function(e){return navigator.platform?navigator.platform:e.NOT_AVAILABLE},S=function(e){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:e.NOT_AVAILABLE},x=function(){var e,t=0;void 0!==navigator.maxTouchPoints?t=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(t=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return[t,e,"ontouchstart"in window]},E=function(e){var t=[],n=document.createElement("canvas");n.width=2e3,n.height=200,n.style.display="inline";var r=n.getContext("2d");return r.rect(0,0,10,10),r.rect(2,2,6,6),t.push("canvas winding:"+(!1===r.isPointInPath(5,5,"evenodd")?"yes":"no")),r.textBaseline="alphabetic",r.fillStyle="#f60",r.fillRect(125,1,62,20),r.fillStyle="#069",e.dontUseFakeFontInCanvas?r.font="11pt Arial":r.font="11pt no-real-font-123",r.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15),r.fillStyle="rgba(102, 204, 0, 0.2)",r.font="18pt Arial",r.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),r.globalCompositeOperation="multiply",r.fillStyle="rgb(255,0,255)",r.beginPath(),r.arc(50,50,50,0,2*Math.PI,!0),r.closePath(),r.fill(),r.fillStyle="rgb(0,255,255)",r.beginPath(),r.arc(100,50,50,0,2*Math.PI,!0),r.closePath(),r.fill(),r.fillStyle="rgb(255,255,0)",r.beginPath(),r.arc(75,100,50,0,2*Math.PI,!0),r.closePath(),r.fill(),r.fillStyle="rgb(255,0,255)",r.arc(75,75,75,0,2*Math.PI,!0),r.arc(75,75,25,0,2*Math.PI,!0),r.fill("evenodd"),n.toDataURL&&t.push("canvas fp:"+n.toDataURL()),t},C=function(){var e,t=function(t){return e.clearColor(0,0,0,1),e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),"["+t[0]+", "+t[1]+"]"};if(!(e=F()))return null;var n=[],r=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,r);var a=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);e.bufferData(e.ARRAY_BUFFER,a,e.STATIC_DRAW),r.itemSize=3,r.numItems=3;var i=e.createProgram(),o=e.createShader(e.VERTEX_SHADER);e.shaderSource(o,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),e.compileShader(o);var c=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(c,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),e.compileShader(c),e.attachShader(i,o),e.attachShader(i,c),e.linkProgram(i),e.useProgram(i),i.vertexPosAttrib=e.getAttribLocation(i,"attrVertex"),i.offsetUniform=e.getUniformLocation(i,"uniformOffset"),e.enableVertexAttribArray(i.vertexPosArray),e.vertexAttribPointer(i.vertexPosAttrib,r.itemSize,e.FLOAT,!1,0,0),e.uniform2f(i.offsetUniform,1,1),e.drawArrays(e.TRIANGLE_STRIP,0,r.numItems);try{n.push(e.canvas.toDataURL())}catch(e){}n.push("extensions:"+(e.getSupportedExtensions()||[]).join(";")),n.push("webgl aliased line width range:"+t(e.getParameter(e.ALIASED_LINE_WIDTH_RANGE))),n.push("webgl aliased point size range:"+t(e.getParameter(e.ALIASED_POINT_SIZE_RANGE))),n.push("webgl alpha bits:"+e.getParameter(e.ALPHA_BITS)),n.push("webgl antialiasing:"+(e.getContextAttributes().antialias?"yes":"no")),n.push("webgl blue bits:"+e.getParameter(e.BLUE_BITS)),n.push("webgl depth bits:"+e.getParameter(e.DEPTH_BITS)),n.push("webgl green bits:"+e.getParameter(e.GREEN_BITS)),n.push("webgl max anisotropy:"+function(e){var t=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic");if(t){var n=e.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT);return 0===n&&(n=2),n}return null}(e)),n.push("webgl max combined texture image units:"+e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS)),n.push("webgl max cube map texture size:"+e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE)),n.push("webgl max fragment uniform vectors:"+e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS)),n.push("webgl max render buffer size:"+e.getParameter(e.MAX_RENDERBUFFER_SIZE)),n.push("webgl max texture image units:"+e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),n.push("webgl max texture size:"+e.getParameter(e.MAX_TEXTURE_SIZE)),n.push("webgl max varying vectors:"+e.getParameter(e.MAX_VARYING_VECTORS)),n.push("webgl max vertex attribs:"+e.getParameter(e.MAX_VERTEX_ATTRIBS)),n.push("webgl max vertex texture image units:"+e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS)),n.push("webgl max vertex uniform vectors:"+e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS)),n.push("webgl max viewport dims:"+t(e.getParameter(e.MAX_VIEWPORT_DIMS))),n.push("webgl red bits:"+e.getParameter(e.RED_BITS)),n.push("webgl renderer:"+e.getParameter(e.RENDERER)),n.push("webgl shading language version:"+e.getParameter(e.SHADING_LANGUAGE_VERSION)),n.push("webgl stencil bits:"+e.getParameter(e.STENCIL_BITS)),n.push("webgl vendor:"+e.getParameter(e.VENDOR)),n.push("webgl version:"+e.getParameter(e.VERSION));try{var s=e.getExtension("WEBGL_debug_renderer_info");s&&(n.push("webgl unmasked vendor:"+e.getParameter(s.UNMASKED_VENDOR_WEBGL)),n.push("webgl unmasked renderer:"+e.getParameter(s.UNMASKED_RENDERER_WEBGL)))}catch(e){}return e.getShaderPrecisionFormat?(u(["FLOAT","INT"],(function(t){u(["VERTEX","FRAGMENT"],(function(r){u(["HIGH","MEDIUM","LOW"],(function(a){u(["precision","rangeMin","rangeMax"],(function(i){var o=e.getShaderPrecisionFormat(e[r+"_SHADER"],e[a+"_"+t])[i];"precision"!==i&&(i="precision "+i);var c=["webgl ",r.toLowerCase()," shader ",a.toLowerCase()," ",t.toLowerCase()," ",i,":",o].join("");n.push(c)}))}))}))})),U(e),n):(U(e),n)},B=function(){try{var e=F(),t=e.getExtension("WEBGL_debug_renderer_info"),n=e.getParameter(t.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(t.UNMASKED_RENDERER_WEBGL);return U(e),n}catch(e){return null}},O=function(){var e=document.createElement("div");e.innerHTML=" ",e.className="adsbox";var t=!1;try{document.body.appendChild(e),t=0===document.getElementsByClassName("adsbox")[0].offsetHeight,document.body.removeChild(e)}catch(e){t=!1}return t},b=function(){if(void 0!==navigator.languages)try{if(navigator.languages[0].substr(0,2)!==navigator.language.substr(0,2))return!0}catch(e){return!0}return!1},L=function(){return window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight},M=function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.oscpu,r=navigator.platform.toLowerCase();if(e=t.indexOf("windows phone")>=0?"Windows Phone":t.indexOf("windows")>=0||t.indexOf("win16")>=0||t.indexOf("win32")>=0||t.indexOf("win64")>=0||t.indexOf("win95")>=0||t.indexOf("win98")>=0||t.indexOf("winnt")>=0||t.indexOf("wow64")>=0?"Windows":t.indexOf("android")>=0?"Android":t.indexOf("linux")>=0||t.indexOf("cros")>=0||t.indexOf("x11")>=0?"Linux":t.indexOf("iphone")>=0||t.indexOf("ipad")>=0||t.indexOf("ipod")>=0||t.indexOf("crios")>=0||t.indexOf("fxios")>=0?"iOS":t.indexOf("macintosh")>=0||t.indexOf("mac_powerpc)")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows"!==e&&"Windows Phone"!==e&&"Android"!==e&&"iOS"!==e&&"Other"!==e&&-1===t.indexOf("cros"))return!0;if(void 0!==n){if((n=n.toLowerCase()).indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e)return!0;if(n.indexOf("linux")>=0&&"Linux"!==e&&"Android"!==e)return!0;if(n.indexOf("mac")>=0&&"Mac"!==e&&"iOS"!==e)return!0;if((-1===n.indexOf("win")&&-1===n.indexOf("linux")&&-1===n.indexOf("mac"))!=("Other"===e))return!0}return r.indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e||(r.indexOf("linux")>=0||r.indexOf("android")>=0||r.indexOf("pike")>=0)&&"Linux"!==e&&"Android"!==e||(r.indexOf("mac")>=0||r.indexOf("ipad")>=0||r.indexOf("ipod")>=0||r.indexOf("iphone")>=0)&&"Mac"!==e&&"iOS"!==e||!(r.indexOf("arm")>=0&&"Windows Phone"===e)&&!(r.indexOf("pike")>=0&&t.indexOf("opera mini")>=0)&&((r.indexOf("win")<0&&r.indexOf("linux")<0&&r.indexOf("mac")<0&&r.indexOf("iphone")<0&&r.indexOf("ipad")<0&&r.indexOf("ipod")<0)!=("Other"===e)||void 0===navigator.plugins&&"Windows"!==e&&"Windows Phone"!==e)},P=function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.productSub;if(t.indexOf("edge/")>=0||t.indexOf("iemobile/")>=0)return!1;if(t.indexOf("opera mini")>=0)return!1;if(("Chrome"==(e=t.indexOf("firefox/")>=0?"Firefox":t.indexOf("opera/")>=0||t.indexOf(" opr/")>=0?"Opera":t.indexOf("chrome/")>=0?"Chrome":t.indexOf("safari/")>=0?t.indexOf("android 1.")>=0||t.indexOf("android 2.")>=0||t.indexOf("android 3.")>=0||t.indexOf("android 4.")>=0?"AOSP":"Safari":t.indexOf("trident/")>=0?"Internet Explorer":"Other")||"Safari"===e||"Opera"===e)&&"20030107"!==n)return!0;var r,a=eval.toString().length;if(37===a&&"Safari"!==e&&"Firefox"!==e&&"Other"!==e)return!0;if(39===a&&"Internet Explorer"!==e&&"Other"!==e)return!0;if(33===a&&"Chrome"!==e&&"AOSP"!==e&&"Opera"!==e&&"Other"!==e)return!0;try{throw"a"}catch(e){try{e.toSource(),r=!0}catch(e){r=!1}}return r&&"Firefox"!==e&&"Other"!==e},k=function(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},I=function(){if(!k())return!1;var e=F(),t=!!window.WebGLRenderingContext&&!!e;return U(e),t},D=function(){return"Microsoft Internet Explorer"===navigator.appName||!("Netscape"!==navigator.appName||!/Trident/.test(navigator.userAgent))},R=function(){return("msWriteProfilerMark"in window)+("msLaunchUri"in navigator)+("msSaveBlob"in navigator)>=2},_=function(){return void 0!==window.swfobject},N=function(){return window.swfobject.hasFlashPlayerVersion("9.0.0")},G=function(e,t){var n="___fp_swf_loaded";window[n]=function(t){e(t)};var r=t.fonts.swfContainerId;!function(e){var t=document.createElement("div");t.setAttribute("id",e.fonts.swfContainerId),document.body.appendChild(t)}();var a={onReady:n};window.swfobject.embedSWF(t.fonts.swfPath,r,"1","1","9.0.0",!1,a,{allowScriptAccess:"always",menu:"false"},{})},F=function(){var e=document.createElement("canvas"),t=null;try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}return t||(t=null),t},U=function(e){var t=e.getExtension("WEBGL_lose_context");null!=t&&t.loseContext()},V=[{key:"userAgent",getData:function(e){e(navigator.userAgent)}},{key:"webdriver",getData:function(e,t){e(null==navigator.webdriver?t.NOT_AVAILABLE:navigator.webdriver)}},{key:"language",getData:function(e,t){e(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||t.NOT_AVAILABLE)}},{key:"colorDepth",getData:function(e,t){e(window.screen.colorDepth||t.NOT_AVAILABLE)}},{key:"deviceMemory",getData:function(e,t){e(navigator.deviceMemory||t.NOT_AVAILABLE)}},{key:"pixelRatio",getData:function(e,t){e(window.devicePixelRatio||t.NOT_AVAILABLE)}},{key:"hardwareConcurrency",getData:function(e,t){e(T(t))}},{key:"screenResolution",getData:function(e,t){e(d(t))}},{key:"availableScreenResolution",getData:function(e,t){e(f(t))}},{key:"timezoneOffset",getData:function(e){e((new Date).getTimezoneOffset())}},{key:"timezone",getData:function(e,t){window.Intl&&window.Intl.DateTimeFormat?e((new window.Intl.DateTimeFormat).resolvedOptions().timeZone||t.NOT_AVAILABLE):e(t.NOT_AVAILABLE)}},{key:"sessionStorage",getData:function(e,t){e(m(t))}},{key:"localStorage",getData:function(e,t){e(v(t))}},{key:"indexedDb",getData:function(e,t){e(y(t))}},{key:"addBehavior",getData:function(e){e(!!window.HTMLElement.prototype.addBehavior)}},{key:"openDatabase",getData:function(e){e(!!window.openDatabase)}},{key:"cpuClass",getData:function(e,t){e(w(t))}},{key:"platform",getData:function(e,t){e(A(t))}},{key:"doNotTrack",getData:function(e,t){e(S(t))}},{key:"plugins",getData:function(e,t){D()?t.plugins.excludeIE?e(t.EXCLUDED):e(g(t)):e(h(t))}},{key:"canvas",getData:function(e,t){k()?e(E(t)):e(t.NOT_AVAILABLE)}},{key:"webgl",getData:function(e,t){I()?e(C()):e(t.NOT_AVAILABLE)}},{key:"webglVendorAndRenderer",getData:function(e){I()?e(B()):e()}},{key:"adBlock",getData:function(e){e(O())}},{key:"hasLiedLanguages",getData:function(e){e(b())}},{key:"hasLiedResolution",getData:function(e){e(L())}},{key:"hasLiedOs",getData:function(e){e(M())}},{key:"hasLiedBrowser",getData:function(e){e(P())}},{key:"touchSupport",getData:function(e){e(x())}},{key:"fonts",getData:function(e,t){var n=["monospace","sans-serif","serif"],r=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];t.fonts.extendedJsFonts&&(r=r.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),r=(r=r.concat(t.fonts.userDefinedFonts)).filter((function(e,t){return r.indexOf(e)===t}));var a=document.getElementsByTagName("body")[0],i=document.createElement("div"),o=document.createElement("div"),c={},u={},s=function(){var e=document.createElement("span");return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize="72px",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="normal",e.style.lineBreak="auto",e.style.lineHeight="normal",e.style.textTransform="none",e.style.textAlign="left",e.style.textDecoration="none",e.style.textShadow="none",e.style.whiteSpace="normal",e.style.wordBreak="normal",e.style.wordSpacing="normal",e.innerHTML="mmmmmmmmmmlli",e},l=function(e,t){var n=s();return n.style.fontFamily="'"+e+"',"+t,n},d=function(e){for(var t=!1,r=0;r<n.length;r++)if(t=e[r].offsetWidth!==c[n[r]]||e[r].offsetHeight!==u[n[r]])return t;return t},f=function(){for(var e=[],t=0,r=n.length;t<r;t++){var a=s();a.style.fontFamily=n[t],i.appendChild(a),e.push(a)}return e}();a.appendChild(i);for(var h=0,g=n.length;h<g;h++)c[n[h]]=f[h].offsetWidth,u[n[h]]=f[h].offsetHeight;var p=function(){for(var e={},t=0,a=r.length;t<a;t++){for(var i=[],c=0,u=n.length;c<u;c++){var s=l(r[t],n[c]);o.appendChild(s),i.push(s)}e[r[t]]=i}return e}();a.appendChild(o);for(var m=[],v=0,y=r.length;v<y;v++)d(p[r[v]])&&m.push(r[v]);a.removeChild(o),a.removeChild(i),e(m)},pauseBefore:!0},{key:"fontsFlash",getData:function(e,t){return _()?N()?t.fonts.swfPath?void G((function(t){e(t)}),t):e("missing options.fonts.swfPath"):e("flash not installed"):e("swf object not loaded")},pauseBefore:!0},{key:"audio",getData:function(e,t){var n=t.audio;if(n.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return e(t.EXCLUDED);var r=window.OfflineAudioContext||window.webkitOfflineAudioContext;if(null==r)return e(t.NOT_AVAILABLE);var a=new r(1,44100,44100),i=a.createOscillator();i.type="triangle",i.frequency.setValueAtTime(1e4,a.currentTime);var o=a.createDynamicsCompressor();u([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],(function(e){void 0!==o[e[0]]&&"function"==typeof o[e[0]].setValueAtTime&&o[e[0]].setValueAtTime(e[1],a.currentTime)})),i.connect(o),o.connect(a.destination),i.start(0),a.startRendering();var c=setTimeout((function(){return console.warn('Audio fingerprint timed out. Please report bug at https://github.com/fingerprintjs/fingerprintjs with your user agent: "'+navigator.userAgent+'".'),a.oncomplete=function(){},a=null,e("audioTimeout")}),n.timeout);a.oncomplete=function(t){var n;try{clearTimeout(c),n=t.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(e,t){return e+Math.abs(t)}),0).toString(),i.disconnect(),o.disconnect()}catch(t){return void e(t)}e(n)}}},{key:"enumerateDevices",getData:function(e,t){if(!l())return e(t.NOT_AVAILABLE);navigator.mediaDevices.enumerateDevices().then((function(t){e(t.map((function(e){return"id="+e.deviceId+";gid="+e.groupId+";"+e.kind+";"+e.label})))})).catch((function(t){e(t)}))}}],H=function(e){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/fingerprintjs/fingerprintjs#upgrade-guide-from-182-to-200")};return H.get=function(e,t){t?e||(e={}):(t=e,e={}),function(e,t){if(null==t)return e;var n,r;for(r in t)null==(n=t[r])||Object.prototype.hasOwnProperty.call(e,r)||(e[r]=n)}(e,c),e.components=e.extraComponents.concat(V);var n={data:[],addPreprocessedComponent:function(t,r){"function"==typeof e.preprocessor&&(r=e.preprocessor(t,r)),n.data.push({key:t,value:r})}},r=-1,a=function(i){if((r+=1)>=e.components.length)t(n.data);else{var o=e.components[r];if(e.excludes[o.key])a(!1);else{if(!i&&o.pauseBefore)return r-=1,void setTimeout((function(){a(!0)}),1);try{o.getData((function(e){n.addPreprocessedComponent(o.key,e),a(!1)}),e)}catch(e){n.addPreprocessedComponent(o.key,String(e)),a(!1)}}}};a(!1)},H.getPromise=function(e){return new Promise((function(t,n){H.get(e,t)}))},H.getV18=function(e,t){return null==t&&(t=e,e={}),H.get(e,(function(n){for(var r=[],a=0;a<n.length;a++){var i=n[a];if(i.value===(e.NOT_AVAILABLE||"not available"))r.push({key:i.key,value:"unknown"});else if("plugins"===i.key)r.push({key:"plugins",value:s(i.value,(function(e){var t=s(e[2],(function(e){return e.join?e.join("~"):e})).join(",");return[e[0],e[1],t].join("::")}))});else if(-1!==["canvas","webgl"].indexOf(i.key)&&Array.isArray(i.value))r.push({key:i.key,value:i.value.join("~")});else if(-1!==["sessionStorage","localStorage","indexedDb","addBehavior","openDatabase"].indexOf(i.key)){if(!i.value)continue;r.push({key:i.key,value:1})}else i.value?r.push(i.value.join?{key:i.key,value:i.value.join(";")}:i):r.push({key:i.key,value:i.value})}var c=o(s(r,(function(e){return e.value})).join("~~~"),31);t(c,r)}))},H.x64hash128=o,H.VERSION="2.1.4",H},t.exports?t.exports=r():n.exports?n.exports=r():n.Fingerprint2=r()}));function o(){return c.apply(this,arguments)}function c(){return(c=a(n.mark((function e(){var t,r,a;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i.getPromise();case 3:return t=e.sent,r=t.map((function(e){return e.value})),a=i.x64hash128(r.join(""),31),e.abrupt("return",a);case 9:return e.prev=9,e.t0=e.catch(0),console.log(e.t0),e.abrupt("return","");case 13:case"end":return e.stop()}}),e,null,[[0,9]])})))).apply(this,arguments)}function u(){return s.apply(this,arguments)}function s(){return(s=a(n.mark((function e(){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){window.requestIdleCallback?requestIdleCallback(a(n.mark((function t(){var r;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o();case 2:r=t.sent,e(r);case 4:case"end":return t.stop()}}),t)})))):setTimeout(a(n.mark((function t(){var r;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o();case 2:r=t.sent,e(r);case 4:case"end":return t.stop()}}),t)}))),500)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(e,t,n){return d.apply(this,arguments)}function d(){return(d=a(n.mark((function e(t,r,a){var i,o,c,u,s,l,d,f,h;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(i=t||{}).colorDepth,c=i.height,u=i.width,l=(s=r||{}).javaEnabled,d=s.language,!a){e.next=12;break}return e.prev=3,e.next=6,a();case 6:f=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),console.error(e.t0);case 12:return h={riskMetadata:{fingerprint:f||null,browserData:{colorDepth:o||null,isJavaEnabled:l?l.call(r):null,language:d||null,screenWidth:u||null,screenHeight:c||null,timeZoneOffset:(new Date).getTimezoneOffset()}}},e.abrupt("return",h);case 14:case"end":return e.stop()}}),e,null,[[3,9]])})))).apply(this,arguments)}function f(){return h.apply(this,arguments)}function h(){return(h=a(n.mark((function e(){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l(screen,navigator,u));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}export{f as collectData,l as collectDataHelper};
|
|
1
|
+
var e,t,n=(function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,a=Object.create(o.prototype),i=new M(r||[]);return a._invoke=function(e,t,n){var r=f;return function(o,a){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw a;return L()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var c=S(i,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?p:d,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}(e,n,i),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",v={};function m(){}function g(){}function y(){}var w={};w[a]=function(){return this};var b=Object.getPrototypeOf,k=b&&b(b(E([])));k&&k!==n&&r.call(k,a)&&(w=k);var x=y.prototype=m.prototype=Object.create(w);function A(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,a,i,c){var u=l(e[o],e,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,i,c)}),(function(e){n("throw",e,i,c)})):t.resolve(f).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,c)}))}c(u.arg)}var o;this._invoke=function(e,r){function a(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(a,a):a()}}function S(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function E(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}return{next:L}}function L(){return{value:t,done:!0}}return g.prototype=x.constructor=y,y.constructor=g,g.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},A(C.prototype),C.prototype[i]=function(){return this},e.AsyncIterator=C,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new C(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},A(x),u(x,c,"Generator"),x[a]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}(t={path:e,exports:{},require:function(e,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&t.path)}},t.exports),t.exports);function r(e,t,n,r,o,a,i){try{var c=e[a](i),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}var o=function(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function c(e){r(i,o,a,c,u,"next",e)}function u(e){r(i,o,a,c,u,"throw",e)}c(void 0)}))}},a=function(){return(a=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}).apply(this,arguments)};function i(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{u(r.next(e))}catch(e){a(e)}}function c(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}u((r=r.apply(e,t||[])).next())}))}function c(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}function u(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,c=a.length;i<c;i++,o++)r[o]=a[i];return r}function s(e,t){return new Promise((function(n){return setTimeout(n,e,t)}))}function l(e,t){try{var n=e();(r=n)&&"function"==typeof r.then?n.then((function(e){return t(!0,e)}),(function(e){return t(!1,e)})):t(!0,n)}catch(e){t(!1,e)}var r}function f(e,t,n){return void 0===n&&(n=16),i(this,void 0,void 0,(function(){var r,o,a;return c(this,(function(i){switch(i.label){case 0:r=Date.now(),o=0,i.label=1;case 1:return o<e.length?(t(e[o],o),(a=Date.now())>=r+n?(r=a,[4,s(0)]):[3,3]):[3,4];case 2:i.sent(),i.label=3;case 3:return++o,[3,1];case 4:return[2]}}))}))}function d(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function h(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function p(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}function v(e,t){return 0===(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function m(e,t){return[e[0]^t[0],e[1]^t[1]]}function g(e){return e=m(e,[0,e[0]>>>1]),e=m(e=h(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=m(e=h(e,[3301882366,444984403]),[0,e[0]>>>1])}function y(e){return parseInt(e)}function w(e){return parseFloat(e)}function b(e,t){return"number"==typeof e&&isNaN(e)?t:e}function k(e){return e.reduce((function(e,t){return e+(t?1:0)}),0)}function x(e,t){if(void 0===t&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function A(e){return e&&"object"==typeof e&&"message"in e?e:{message:e}}function C(e,t,n){var r=Object.keys(e).filter((function(e){return!function(e,t){for(var n=0,r=e.length;n<r;++n)if(e[n]===t)return!0;return!1}(n,e)})),o=Array(r.length);return f(r,(function(n,r){o[r]=function(e,t){var n=function(e){return"function"!=typeof e},r=new Promise((function(r){var o=Date.now();l(e.bind(null,t),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var a=Date.now()-o;if(!e[0])return r((function(){return{error:A(e[1]),duration:a}}));var i=e[1];if(n(i))return r((function(){return{value:i,duration:a}}));r((function(){return new Promise((function(e){var t=Date.now();l(i,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=a+Date.now()-t;if(!n[0])return e({error:A(n[1]),duration:o});e({value:n[1],duration:o})}))}))}))}))}));return function(){return r.then((function(e){return e()}))}}(e[n],t)})),function(){return i(this,void 0,void 0,(function(){var e,t,n,a,i,u;return c(this,(function(l){switch(l.label){case 0:for(e={},t=0,n=r;t<n.length;t++)a=n[t],e[a]=void 0;i=Array(r.length),u=function(){var t;return c(this,(function(n){switch(n.label){case 0:return t=!0,[4,f(r,(function(n,r){i[r]||(o[r]?i[r]=o[r]().then((function(t){return e[n]=t})):t=!1)}))];case 1:return n.sent(),t?[2,"break"]:[4,s(1)];case 2:return n.sent(),[2]}}))},l.label=1;case 1:return[5,u()];case 2:if("break"===l.sent())return[3,4];l.label=3;case 3:return[3,1];case 4:return[4,Promise.all(i)];case 5:return l.sent(),[2,e]}}))}))}}function S(){var e=window,t=navigator;return k(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function _(){var e=window,t=navigator;return k(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===t.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function P(){var e=window,t=navigator;return k(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===t.vendor.indexOf("Apple"),"getStorageUpdates"in t,"WebKitMediaKeys"in e])>=4}function M(){var e=window;return k(["safari"in e,!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3}function E(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function L(){var e=_(),t=function(){var e,t,n=window;return k(["buildID"in navigator,"MozAppearance"in(null!==(t=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==t?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}();if(!e&&!t)return!1;var n=window;return k(["onorientationchange"in n,"orientation"in n,e&&!("SharedWorker"in n),t&&/android/i.test(navigator.appVersion)])>=2}function I(e){var t=new Error(e);return t.name=e,t}function T(e,t,n){var r,o,a;return void 0===n&&(n=50),i(this,void 0,void 0,(function(){var i,u;return c(this,(function(c){switch(c.label){case 0:i=document,c.label=1;case 1:return i.body?[3,3]:[4,s(n)];case 2:return c.sent(),[3,1];case 3:u=i.createElement("iframe"),c.label=4;case 4:return c.trys.push([4,,10,11]),[4,new Promise((function(e,n){var r=!1,o=function(){r=!0,e()};u.onload=o,u.onerror=function(e){r=!0,n(e)};var a=u.style;a.setProperty("display","block","important"),a.position="absolute",a.top="0",a.left="0",a.visibility="hidden",t&&"srcdoc"in u?u.srcdoc=t:u.src="about:blank",i.body.appendChild(u);var c=function(){var e,t;r||("complete"===(null===(t=null===(e=u.contentWindow)||void 0===e?void 0:e.document)||void 0===t?void 0:t.readyState)?o():setTimeout(c,10))};c()}))];case 5:c.sent(),c.label=6;case 6:return(null===(o=null===(r=u.contentWindow)||void 0===r?void 0:r.document)||void 0===o?void 0:o.body)?[3,8]:[4,s(n)];case 7:return c.sent(),[3,6];case 8:return[4,e(u,u.contentWindow)];case 9:return[2,c.sent()];case 10:return null===(a=u.parentNode)||void 0===a||a.removeChild(u),[7];case 11:return[2]}}))}))}function O(e){for(var t=function(e){for(var t,n,r="Unexpected syntax '"+e+"'",o=/^\s*([a-z-]*)(.*)$/i.exec(e),a=o[1]||void 0,i={},c=/([.:#][\w-]+|\[.+?\])/gi,u=function(e,t){i[e]=i[e]||[],i[e].push(t)};;){var s=c.exec(o[2]);if(!s)break;var l=s[0];switch(l[0]){case".":u("class",l.slice(1));break;case"#":u("id",l.slice(1));break;case"[":var f=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l);if(!f)throw new Error(r);u(f[1],null!==(n=null!==(t=f[4])&&void 0!==t?t:f[5])&&void 0!==n?n:"");break;default:throw new Error(r)}}return[a,i]}(e),n=t[0],r=t[1],o=document.createElement(null!=n?n:"div"),a=0,i=Object.keys(r);a<i.length;a++){var c=i[a],u=r[c].join(" ");"style"===c?D(o.style,u):o.setAttribute(c,u)}return o}function D(e,t){for(var n=0,r=t.split(";");n<r.length;n++){var o=r[n],a=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(o);if(a){var i=a[1],c=a[2],u=a[4];e.setProperty(i,c,u||"")}}}var F=["monospace","sans-serif","serif"],z=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function j(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}function B(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';var n="Cwm fjordbank gly "+String.fromCharCode(55357,56835);return t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(n,4,45),R(e)}function G(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(var n=0,r=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];n<r.length;n++){var o=r[n],a=o[0],i=o[1],c=o[2];t.fillStyle=a,t.beginPath(),t.arc(i,c,40,0,2*Math.PI,!0),t.closePath(),t.fill()}return t.fillStyle="#f9c",t.arc(60,60,60,0,2*Math.PI,!0),t.arc(60,60,20,0,2*Math.PI,!0),t.fill("evenodd"),R(e)}function R(e){return e.toDataURL()}var N,U;function q(){var e=this;return function(){if(void 0===U){var e=function(){var t=W();H(t)?U=setTimeout(e,2500):(N=t,U=void 0)};e()}}(),function(){return i(e,void 0,void 0,(function(){var e;return c(this,(function(t){switch(t.label){case 0:return H(e=W())?N?[2,u(N)]:(n=document).fullscreenElement||n.msFullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement?[4,E()]:[3,2]:[3,2];case 1:t.sent(),e=W(),t.label=2;case 2:return H(e)||(N=e),[2,e]}var n}))}))}}function W(){var e=screen;return[b(w(e.availTop),null),b(w(e.width)-w(e.availWidth)-b(w(e.availLeft),0),null),b(w(e.height)-w(e.availHeight)-b(w(e.availTop),0),null),b(w(e.availLeft),null)]}function H(e){for(var t=0;t<4;++t)if(e[t])return!1;return!0}var J={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'a[title="7naga poker" i]','[title="ALIENBOLA" i]'],abpvn:["#quangcaomb",".iosAdsiosAds-layout",".quangcao",'[href^="https://r88.vn/"]','[href^="https://zbet.vn/"]'],adBlockFinland:[".mainostila",".sponsorit",".ylamainos",'a[href*="/clickthrgh.asp?"]','a[href^="https://app.readpeak.com/ads"]'],adBlockPersian:["#navbar_notice_50",'a[href^="http://g1.v.fwmrm.net/ad/"]',".kadr",'TABLE[width="140px"]',"#divAgahi"],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect"],adGuardAnnoyances:['amp-embed[type="zen"]',".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil"],adGuardBase:["#ad-after","#ad-p3",".BetterJsPopOverlay","#ad_300X250","#bannerfloat22"],adGuardChinese:['a[href*=".ttz5.cn"]','a[href*=".yabovip2027.com/"]',".tm3all2h4b",".cc5278_banner_ad"],adGuardFrench:[".zonepub",'[class*="_adLeaderboard"]','[id^="block-xiti_oas-"]','a[href^="http://ptapjmp.com/"]','a[href^="https://go.alvexo.com/"]'],adGuardGerman:[".banneritemwerbung_head_1",".boxstartwerbung",".werbung3",'a[href^="http://www.eis.de/index.phtml?refid="]','a[href^="https://www.tipico.com/?affiliateId="]'],adGuardJapanese:["#kauli_yad_1","#ad-giftext","#adsSPRBlock",'a[href^="http://ad2.trafficgate.net/"]','a[href^="http://www.rssad.jp/"]'],adGuardMobile:["amp-auto-ads","#mgid_iframe",".amp_ad",'amp-embed[type="24smi"]',"#mgid_iframe1"],adGuardRussian:['a[href^="https://ya-distrib.ru/r/"]','a[href^="https://ad.letmeads.com/"]',".reclama",'div[id^="smi2adblock"]','div[id^="AdFox_banner_"]'],adGuardSocial:['a[href^="//www.stumbleupon.com/submit?url="]','a[href^="//telegram.me/share/url?"]',".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",'[href^="http://ads.glispa.com/"]'],adGuardTrackingProtection:['amp-embed[type="taboola"]',"#qoo-counter",'a[href^="http://click.hotlog.ru/"]','a[href^="http://hitcounter.ru/top/stat.php"]','a[href^="http://top.mail.ru/jump"]'],adGuardTurkish:["#backkapat","#reklami",'a[href^="http://adserv.ontek.com.tr/"]','a[href^="http://izlenzi.com/campaign/"]','a[href^="http://www.installads.net/"]'],bulgarian:["td#freenet_table_ads","#adbody","#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:["#AD_banner_bottom","#Ads_google_02","#N-ad-article-rightRail-1","#ad-fullbanner2","#ad-zone-2"],easyListChina:['a[href*=".wensixuetang.com/"]','A[href*="/hth107.com/"]','.appguide-wrap[onclick*="bcebos.com"]',".frontpageAdvM","#taotaole"],easyListCookie:["#adtoniq-msg-bar","#CoockiesPage","#CookieModal_cookiemodal","#DO_CC_PANEL","#ShowCookie"],easyListCzechSlovak:["#onlajny-stickers","#reklamni-box",".reklama-megaboard",".sklik",'[id^="sklikReklama"]'],easyListDutch:["#advertentie","#vipAdmarktBannerBlock",".adstekst",'a[href^="https://xltube.nl/click/"]',"#semilo-lrectangle"],easyListGermany:['a[href^="http://www.hw-area.com/?dp="]','a[href^="https://ads.sunmaker.com/tracking.php?"]',".werbung-skyscraper2",".bannergroup_werbung",".ads_rechts"],easyListItaly:[".box_adv_annunci",".sb-box-pubbliredazionale",'a[href^="http://affiliazioniads.snai.it/"]','a[href^="https://adserver.html.it/"]','a[href^="https://affiliazioniads.snai.it/"]'],easyListLithuania:[".reklamos_tarpas",".reklamos_nuorodos",'img[alt="Reklaminis skydelis"]','img[alt="Dedikuoti.lt serveriai"]','img[alt="Hostingas Serveriai.lt"]'],estonian:['A[href*="http://pay4results24.eu"]'],fanboyAnnoyances:["#feedback-tab","#taboola-below-article",".feedburnerFeedBlock",".widget-feedburner-counter",'[title="Subscribe to our blog"]'],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:[".td-tags-and-social-wrapper-box",".twitterContainer",".youtube-social",'a[title^="Like us on Facebook"]','img[alt^="Share on Digg"]'],frellwitSwedish:['a[href*="casinopro.se"][target="_blank"]','a[href*="doktor-se.onelink.me"]',"article.category-samarbete","div.holidAds","ul.adsmodern"],greekAdBlock:['A[href*="adman.otenet.gr/click?"]','A[href*="http://axiabanners.exodus.gr/"]','A[href*="http://interactive.forthnet.gr/click?"]',"DIV.agores300","TABLE.advright"],hungarian:['A[href*="ad.eval.hu"]','A[href*="ad.netmedia.hu"]','A[href*="daserver.ultraweb.hu"]',"#cemp_doboz",".optimonk-iframe-container"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container",".cookie-msg-info-container","#cookies-policy-sticky"],icelandicAbp:['A[href^="/framework/resources/forms/ads.aspx"]'],latvian:['a[href="http://www.salidzini.lv/"][style="display: block; width: 120px; height: 40px; overflow: hidden; position: relative;"]','a[href="http://www.salidzini.lv/"][style="display: block; width: 88px; height: 31px; overflow: hidden; position: relative;"]'],listKr:['a[href*="//kingtoon.slnk.kr"]','a[href*="//playdsb.com/kr"]',"div.logly-lift-adz",'div[data-widget_id="ml6EJ074"]',"ins.daum_ddn_area"],listeAr:[".geminiLB1Ad",".right-and-left-sponsers",'a[href*=".aflam.info"]','a[href*="booraq.org"]','a[href*="dubizzle.com/ar/?utm_source="]'],listeFr:['a[href^="http://promo.vador.com/"]',"#adcontainer_recherche",'a[href*="weborama.fr/fcgi-bin/"]',".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",'[href^="https://aff.sendhub.pl/"]','a[href^="http://advmanager.techfun.pl/redirect/"]','a[href^="http://www.trizer.pl/?utm_source"]',"div#skapiec_ad"],ro:['a[href^="//afftrk.altex.ro/Counter/Click"]','a[href^="/magazin/"]','a[href^="https://blackfridaysales.ro/trk/shop/"]','a[href^="https://event.2performant.com/events/click"]','a[href^="https://l.profitshare.ro/"]'],ruAd:['a[href*="//febrare.ru/"]','a[href*="//utimg.ru/"]','a[href*="://chikidiki.ru"]',"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]","#ads-google-middle_rectangle-group",".ads300s",".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",".ctpl-fullbanner",".zergnet-recommend",".yt.btn-link.btn-md.btn"]};function $(e){var t;return i(this,void 0,void 0,(function(){var n,r,o,a,i,u,l;return c(this,(function(c){switch(c.label){case 0:for(n=document,r=n.createElement("div"),o=new Array(e.length),a={},V(r),l=0;l<e.length;++l)i=O(e[l]),V(u=n.createElement("div")),u.appendChild(i),r.appendChild(u),o[l]=i;c.label=1;case 1:return n.body?[3,3]:[4,s(50)];case 2:return c.sent(),[3,1];case 3:n.body.appendChild(r);try{for(l=0;l<e.length;++l)o[l].offsetParent||(a[e[l]]=!0)}finally{null===(t=r.parentNode)||void 0===t||t.removeChild(r)}return[2,a]}}))}))}function V(e){e.style.setProperty("display","block","important")}function K(e){return matchMedia("(inverted-colors: "+e+")").matches}function Y(e){return matchMedia("(forced-colors: "+e+")").matches}function X(e){return matchMedia("(prefers-contrast: "+e+")").matches}function Z(e){return matchMedia("(prefers-reduced-motion: "+e+")").matches}function Q(e){return matchMedia("(dynamic-range: "+e+")").matches}var ee=Math,te=function(){return 0};var ne={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};var re={fonts:function(){return T((function(e,t){var n=t.document,r=n.body;r.style.fontSize="48px";var o=n.createElement("div"),a={},i={},c=function(e){var t=n.createElement("span"),r=t.style;return r.position="absolute",r.top="0",r.left="0",r.fontFamily=e,t.textContent="mmMwWLliI0O&1",o.appendChild(t),t},u=F.map(c),s=function(){for(var e={},t=function(t){e[t]=F.map((function(e){return function(e,t){return c("'"+e+"',"+t)}(t,e)}))},n=0,r=z;n<r.length;n++){t(r[n])}return e}();r.appendChild(o);for(var l=0;l<F.length;l++)a[F[l]]=u[l].offsetWidth,i[F[l]]=u[l].offsetHeight;return z.filter((function(e){return t=s[e],F.some((function(e,n){return t[n].offsetWidth!==a[e]||t[n].offsetHeight!==i[e]}));var t}))}))},domBlockers:function(e){var t=(void 0===e?{}:e).debug;return i(this,void 0,void 0,(function(){var e,n,r,o;return c(this,(function(a){switch(a.label){case 0:return P()||L()?(e=Object.keys(J),[4,$((o=[]).concat.apply(o,e.map((function(e){return J[e]}))))]):[2,void 0];case 1:return n=a.sent(),t&&function(e){for(var t="DOM blockers debug:\n```",n=0,r=Object.keys(J);n<r.length;n++){var o=r[n];t+="\n"+o+":";for(var a=0,i=J[o];a<i.length;a++){var c=i[a];t+="\n "+c+" "+(e[c]?"🚫":"➡️")}}console.log(t+"\n```")}(n),(r=e.filter((function(e){var t=J[e];return k(t.map((function(e){return n[e]})))>.6*t.length}))).sort(),[2,r]}}))}))},fontPreferences:function(){return function(e,t){void 0===t&&(t=4e3);return T((function(n,r){var o=r.document,a=o.body,i=a.style;i.width=t+"px",i.webkitTextSizeAdjust=i.textSizeAdjust="none",_()?a.style.zoom=""+1/r.devicePixelRatio:P()&&(a.style.zoom="reset");var c=o.createElement("div");return c.textContent=u(Array(t/20<<0)).map((function(){return"word"})).join(" "),a.appendChild(c),e(o,a)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}((function(e,t){for(var n={},r={},o=0,a=Object.keys(ne);o<a.length;o++){var i=a[o],c=ne[i],u=c[0],s=void 0===u?{}:u,l=c[1],f=void 0===l?"mmMwWLliI0fiflO&1":l,d=e.createElement("span");d.textContent=f,d.style.whiteSpace="nowrap";for(var h=0,p=Object.keys(s);h<p.length;h++){var v=p[h],m=s[v];void 0!==m&&(d.style[v]=m)}n[i]=d,t.appendChild(e.createElement("br")),t.appendChild(d)}for(var g=0,y=Object.keys(ne);g<y.length;g++){r[i=y[g]]=n[i].getBoundingClientRect().width}return r}))},audio:function(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(P()&&!M()&&!function(){var e=window;return k(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}())return-1;var n=new t(1,5e3,44100),r=n.createOscillator();r.type="triangle",r.frequency.value=1e4;var o=n.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,r.connect(o),o.connect(n.destination),r.start(0);var a=function(e){var t=3,n=500,r=500,o=5e3,a=function(){};return[new Promise((function(i,c){var u=!1,s=0,l=0;e.oncomplete=function(e){return i(e.renderedBuffer)};var f=function(){setTimeout((function(){return c(I("timeout"))}),Math.min(r,l+o-Date.now()))},d=function(){try{switch(e.startRendering(),e.state){case"running":l=Date.now(),u&&f();break;case"suspended":document.hidden||s++,u&&s>=t?c(I("suspended")):setTimeout(d,n)}}catch(e){c(e)}};d(),a=function(){u||(u=!0,l>0&&f())}})),a]}(n),i=a[0],c=a[1],u=i.then((function(e){return function(e){for(var t=0,n=0;n<e.length;++n)t+=Math.abs(e[n]);return t}(e.getChannelData(0).subarray(4500))}),(function(e){if("timeout"===e.name||"suspended"===e.name)return-3;throw e}));return u.catch((function(){})),function(){return c(),u}},screenFrame:function(){var e=this,t=q();return function(){return i(e,void 0,void 0,(function(){var e,n;return c(this,(function(r){switch(r.label){case 0:return[4,t()];case 1:return e=r.sent(),[2,[(n=function(e){return null===e?null:x(e,10)})(e[0]),n(e[1]),n(e[2]),n(e[3])]]}}))}))}},osCpu:function(){return navigator.oscpu},languages:function(){var e,t=navigator,n=[],r=t.language||t.userLanguage||t.browserLanguage||t.systemLanguage;if(void 0!==r&&n.push([r]),Array.isArray(t.languages))_()&&k([!("MediaSettingsRange"in(e=window)),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3||n.push(t.languages);else if("string"==typeof t.languages){var o=t.languages;o&&n.push(o.split(","))}return n},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return b(w(navigator.deviceMemory),void 0)},screenResolution:function(){var e=screen,t=function(e){return b(y(e),null)},n=[t(e.width),t(e.height)];return n.sort().reverse(),n},hardwareConcurrency:function(){return b(y(navigator.hardwareConcurrency),void 0)},timezone:function(){var e,t=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(t){var n=(new t).resolvedOptions().timeZone;if(n)return n}var r,o=(r=(new Date).getFullYear(),-Math.max(w(new Date(r,0,1).getTimezoneOffset()),w(new Date(r,6,1).getTimezoneOffset())));return"UTC"+(o>=0?"+":"")+Math.abs(o)},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){var e,t;if(!(S()||(e=window,t=navigator,k(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!S())))try{return!!window.indexedDB}catch(e){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var e=navigator.platform;return"MacIntel"===e&&P()&&!M()?function(){if("iPad"===navigator.platform)return!0;var e=screen,t=e.width/e.height;return k(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}()?"iPad":"iPhone":e},plugins:function(){var e=navigator.plugins;if(e){for(var t=[],n=0;n<e.length;++n){var r=e[n];if(r){for(var o=[],a=0;a<r.length;++a){var i=r[a];o.push({type:i.type,suffixes:i.suffixes})}t.push({name:r.name,description:r.description,mimeTypes:o})}}return t}},canvas:function(){var e=function(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}(),t=e[0],n=e[1];return function(e,t){return!(!t||!e.toDataURL)}(t,n)?{winding:j(n),geometry:G(t,n),text:B(t,n)}:{winding:!1,geometry:"",text:""}},touchSupport:function(){var e,t=navigator,n=0;void 0!==t.maxTouchPoints?n=y(t.maxTouchPoints):void 0!==t.msMaxTouchPoints&&(n=t.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return{maxTouchPoints:n,touchEvent:e,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];t<n.length;t++){var r=n[t],o=window[r];o&&"object"==typeof o&&e.push(r)}return e.sort()},cookiesEnabled:function(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var t=-1!==e.cookie.indexOf("cookietest=");return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(e){return!1}},colorGamut:function(){for(var e=0,t=["rec2020","p3","srgb"];e<t.length;e++){var n=t[e];if(matchMedia("(color-gamut: "+n+")").matches)return n}},invertedColors:function(){return!!K("inverted")||!K("none")&&void 0},forcedColors:function(){return!!Y("active")||!Y("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=100;++e)if(matchMedia("(max-monochrome: "+e+")").matches)return e;throw new Error("Too high value")}},contrast:function(){return X("no-preference")?0:X("high")||X("more")?1:X("low")||X("less")?-1:X("forced")?10:void 0},reducedMotion:function(){return!!Z("reduce")||!Z("no-preference")&&void 0},hdr:function(){return!!Q("high")||!Q("standard")&&void 0},math:function(){var e,t=ee.acos||te,n=ee.acosh||te,r=ee.asin||te,o=ee.asinh||te,a=ee.atanh||te,i=ee.atan||te,c=ee.sin||te,u=ee.sinh||te,s=ee.cos||te,l=ee.cosh||te,f=ee.tan||te,d=ee.tanh||te,h=ee.exp||te,p=ee.expm1||te,v=ee.log1p||te;return{acos:t(.12312423423423424),acosh:n(1e308),acoshPf:(e=1e154,ee.log(e+ee.sqrt(e*e-1))),asin:r(.12312423423423424),asinh:o(1),asinhPf:function(e){return ee.log(e+ee.sqrt(e*e+1))}(1),atanh:a(.5),atanhPf:function(e){return ee.log((1+e)/(1-e))/2}(.5),atan:i(.5),sin:c(-1e300),sinh:u(1),sinhPf:function(e){return ee.exp(e)-1/ee.exp(e)/2}(1),cos:s(10.000000000123),cosh:l(1),coshPf:function(e){return(ee.exp(e)+1/ee.exp(e))/2}(1),tan:f(-1e300),tanh:d(1),tanhPf:function(e){return(ee.exp(2*e)-1)/(ee.exp(2*e)+1)}(1),exp:h(1),expm1:p(1),expm1Pf:function(e){return ee.exp(e)-1}(1),log1p:v(10),log1pPf:function(e){return ee.log(1+e)}(10),powPI:function(e){return ee.pow(ee.PI,e)}(-100)}}};function oe(e){var t=function(e){if(L())return.4;if(P())return M()?.5:.3;var t=e.platform.value||"";if(/^Win/.test(t))return.6;if(/^Mac/.test(t))return.5;return.7}(e),n=function(e){return x(.99+.01*e,1e-4)}(t);return{score:t,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,""+n)}}function ae(e){return JSON.stringify(e,(function(e,t){return t instanceof Error?a({name:(n=t).name,message:n.message,stack:null===(r=n.stack)||void 0===r?void 0:r.split("\n")},n):t;var n,r}),2)}function ie(e){return function(e,t){t=t||0;var n,r=(e=e||"").length%16,o=e.length-r,a=[0,t],i=[0,t],c=[0,0],u=[0,0],s=[2277735313,289559509],l=[1291169091,658871167];for(n=0;n<o;n+=16)c=[255&e.charCodeAt(n+4)|(255&e.charCodeAt(n+5))<<8|(255&e.charCodeAt(n+6))<<16|(255&e.charCodeAt(n+7))<<24,255&e.charCodeAt(n)|(255&e.charCodeAt(n+1))<<8|(255&e.charCodeAt(n+2))<<16|(255&e.charCodeAt(n+3))<<24],u=[255&e.charCodeAt(n+12)|(255&e.charCodeAt(n+13))<<8|(255&e.charCodeAt(n+14))<<16|(255&e.charCodeAt(n+15))<<24,255&e.charCodeAt(n+8)|(255&e.charCodeAt(n+9))<<8|(255&e.charCodeAt(n+10))<<16|(255&e.charCodeAt(n+11))<<24],c=p(c=h(c,s),31),a=d(a=p(a=m(a,c=h(c,l)),27),i),a=d(h(a,[0,5]),[0,1390208809]),u=p(u=h(u,l),33),i=d(i=p(i=m(i,u=h(u,s)),31),a),i=d(h(i,[0,5]),[0,944331445]);switch(c=[0,0],u=[0,0],r){case 15:u=m(u,v([0,e.charCodeAt(n+14)],48));case 14:u=m(u,v([0,e.charCodeAt(n+13)],40));case 13:u=m(u,v([0,e.charCodeAt(n+12)],32));case 12:u=m(u,v([0,e.charCodeAt(n+11)],24));case 11:u=m(u,v([0,e.charCodeAt(n+10)],16));case 10:u=m(u,v([0,e.charCodeAt(n+9)],8));case 9:u=h(u=m(u,[0,e.charCodeAt(n+8)]),l),i=m(i,u=h(u=p(u,33),s));case 8:c=m(c,v([0,e.charCodeAt(n+7)],56));case 7:c=m(c,v([0,e.charCodeAt(n+6)],48));case 6:c=m(c,v([0,e.charCodeAt(n+5)],40));case 5:c=m(c,v([0,e.charCodeAt(n+4)],32));case 4:c=m(c,v([0,e.charCodeAt(n+3)],24));case 3:c=m(c,v([0,e.charCodeAt(n+2)],16));case 2:c=m(c,v([0,e.charCodeAt(n+1)],8));case 1:c=h(c=m(c,[0,e.charCodeAt(n)]),s),a=m(a,c=h(c=p(c,31),l))}return a=d(a=m(a,[0,e.length]),i=m(i,[0,e.length])),i=d(i,a),a=d(a=g(a),i=g(i)),i=d(i,a),("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)}(function(e){for(var t="",n=0,r=Object.keys(e).sort();n<r.length;n++){var o=r[n],a=e[o],i=a.error?"error":JSON.stringify(a.value);t+=(t?"|":"")+o.replace(/([:|\\])/g,"\\$1")+":"+i}return t}(e))}function ce(e){return void 0===e&&(e=50),function(e,t){void 0===t&&(t=1/0);var n=window.requestIdleCallback;return n?new Promise((function(e){return n.call(window,(function(){return e()}),{timeout:t})})):s(Math.min(e,t))}(e,2*e)}function ue(e,t){var n=Date.now();return{get:function(r){return i(this,void 0,void 0,(function(){var o,a,i;return c(this,(function(c){switch(c.label){case 0:return o=Date.now(),[4,e()];case 1:return a=c.sent(),i=function(e){var t;return{get visitorId(){return void 0===t&&(t=ie(this.components)),t},set visitorId(e){t=e},confidence:oe(e),components:e,version:"3.3.3"}}(a),(t||(null==r?void 0:r.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: "+i.version+"\nuserAgent: "+navigator.userAgent+"\ntimeBetweenLoadAndGet: "+(o-n)+"\nvisitorId: "+i.visitorId+"\ncomponents: "+ae(a)+"\n```"),[2,i]}}))}))}}}var se={load:function(e){var t=void 0===e?{}:e,n=t.delayFallback,r=t.debug,o=t.monitoring,a=void 0===o||o;return i(this,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return a&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v3.3.3/npm-monitoring",!0),e.send()}catch(e){console.error(e)}}(),[4,ce(n)];case 1:return e.sent(),[2,ue(C(re,{debug:r},[]),r)]}}))}))},hashComponents:ie,componentsToDebugString:ae};function le(){return fe.apply(this,arguments)}function fe(){return(fe=o(n.mark((function e(){var t,r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,se.load({monitoring:!1});case 3:return t=e.sent,e.next=6,t.get();case 6:return r=e.sent,e.abrupt("return",r.visitorId);case 10:return e.prev=10,e.t0=e.catch(0),console.log(e.t0),e.abrupt("return","");case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function de(){return he.apply(this,arguments)}function he(){return(he=o(n.mark((function e(){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){window.requestIdleCallback?requestIdleCallback(o(n.mark((function t(){var r;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,le();case 2:r=t.sent,e(r);case 4:case"end":return t.stop()}}),t)})))):setTimeout(o(n.mark((function t(){var r;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,le();case 2:r=t.sent,e(r);case 4:case"end":return t.stop()}}),t)}))),500)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var pe=function(e){var t=e.env,n=e.kountAccountId,r=e.kountSessionId,o=function(e){return"production"===e}(t)?"https://ssl.kaptcha.com":"https://tst.kaptcha.com",a=new URL("".concat(o,"/collect/sdk"));a.searchParams.append("m",n),r&&a.searchParams.append("m",r);var i=document.createElement("script");return i.setAttribute("class","kaxsdc"),i.setAttribute("data-event","load"),i.setAttribute("type","text/javascript"),i.setAttribute("src",a.href),document.body.append(i),i};function ve(e){return me.apply(this,arguments)}function me(){return(me=o(n.mark((function e(t){var r,o,a;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.env,o=t.kountAccountId,a=t.kountSessionId,e.abrupt("return",new Promise((function(e,t){var n=pe({env:r,kountAccountId:o,kountSessionId:a});n.onload=function(){var t=new ka.ClientSDK;t.setupCallback({"collect-begin":function(t){var n=t.MercSessId;e(n)}}),t.autoLoadEvents()},n.onerror=function(){t(new Error("Error attempting to mount Kount script"))}})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ge(e){return ye.apply(this,arguments)}function ye(){return(ye=o(n.mark((function e(t){var r,o,a,i,c,u,s,l,f,d,h,p,v,m,g,y,w,b,k,x;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.env,o=void 0===r?null:r,a=t.screen,i=t.navigator,c=t.kountAccountId,u=void 0===c?null:c,s=t.kountSessionId,l=void 0===s?null:s,f=t.getFingerprint,d=t.getFraudSessionId,p=(h=a||{}).colorDepth,v=h.height,m=h.width,y=(g=i||{}).javaEnabled,w=g.language,e.prev=3,e.next=6,f();case 6:if(b=e.sent,!u){e.next=11;break}return e.next=10,d({env:o,kountAccountId:u,kountSessionId:l});case 10:k=e.sent;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),console.error(e.t0);case 16:return x={riskMetadata:{fingerprint:b||null,extraData:{kountFraudSessionId:k||null},browserData:{colorDepth:p||null,isJavaEnabled:y?y.call(i):null,language:w||null,screenHeight:v||null,screenWidth:m||null,timeZoneOffset:(new Date).getTimezoneOffset()}}},e.abrupt("return",x);case 18:case"end":return e.stop()}}),e,null,[[3,13]])})))).apply(this,arguments)}function we(){return be.apply(this,arguments)}function be(){return(be=o(n.mark((function e(){var t,r,o,a,i,c,u,s=arguments;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:{},r=t.env,o=void 0===r?null:r,a=t.kountAccountId,i=void 0===a?null:a,c=t.kountSessionId,u=void 0===c?null:c,e.abrupt("return",ge({env:o,screen:screen,navigator:navigator,kountAccountId:i,kountSessionId:u,getFingerprint:de,getFraudSessionId:ve}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}export{we as collectData,ge as collectDataHelper};
|