Last active
September 15, 2024 23:51
-
-
Save youdie323323/caa0ce8317c158167756af5b3b8d489c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var packageFunction; | |
var p; | |
var attribute; | |
var namespacedP; | |
packageFunction = function (P, window, undefined) { | |
(function (t) { | |
var e = {}; | |
function n(r) { | |
if (e[r]) { | |
return e[r].exports; | |
} | |
var o = e[r] = { | |
i: r, | |
l: false, | |
exports: {} | |
}; | |
t[r].call(o.exports, o, o.exports, n); | |
o.l = true; | |
return o.exports; | |
} | |
n.m = t; | |
n.c = e; | |
n.d = function (t, e, r) { | |
if (!n.o(t, e)) { | |
Object.defineProperty(t, e, { | |
configurable: false, | |
enumerable: true, | |
get: r | |
}); | |
} | |
}; | |
n.r = function (t) { | |
Object.defineProperty(t, "__esModule", { | |
value: true | |
}); | |
}; | |
n.n = function (t) { | |
var e = t && t.__esModule ? function () { | |
return t.default; | |
} : function () { | |
return t; | |
}; | |
n.d(e, "a", e); | |
return e; | |
}; | |
n.o = function (t, e) { | |
return Object.prototype.hasOwnProperty.call(t, e); | |
}; | |
n.p = ""; | |
n(n.s = 76); | |
})([function (e, n, r) { | |
function o(t, e) { | |
return (o = Object.setPrototypeOf || { | |
__proto__: [] | |
} instanceof Array && function (t, e) { | |
t.__proto__ = e; | |
} || function (t, e) { | |
for (var n in e) { | |
if (Object.prototype.hasOwnProperty.call(e, n)) { | |
t[n] = e[n]; | |
} | |
} | |
})(t, e); | |
} | |
function i(t, e) { | |
if (typeof e != "function" && e !== null) { | |
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); | |
} | |
function n() { | |
this.constructor = t; | |
} | |
o(t, e); | |
t.prototype = e === null ? Object.create(e) : (n.prototype = e.prototype, new n()); | |
} | |
function a() { | |
return (a = Object.assign || function (t) { | |
var e; | |
for (var n = 1, r = arguments.length; n < r; n++) { | |
for (var o in e = arguments[n]) { | |
if (Object.prototype.hasOwnProperty.call(e, o)) { | |
t[o] = e[o]; | |
} | |
} | |
} | |
return t; | |
}).apply(this, arguments); | |
} | |
function s(t, e) { | |
var n = {}; | |
for (var r in t) { | |
if (Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0) { | |
n[r] = t[r]; | |
} | |
} | |
if (t != null && typeof Object.getOwnPropertySymbols == "function") { | |
var o = 0; | |
for (r = Object.getOwnPropertySymbols(t); o < r.length; o++) { | |
if (e.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[o])) { | |
n[r[o]] = t[r[o]]; | |
} | |
} | |
} | |
return n; | |
} | |
function u(t, e, n, r) { | |
var o; | |
var i = arguments.length; | |
var a = i < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, n) : r; | |
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") { | |
a = Reflect.decorate(t, e, n, r); | |
} else { | |
for (var s = t.length - 1; s >= 0; s--) { | |
if (o = t[s]) { | |
a = (i < 3 ? o(a) : i > 3 ? o(e, n, a) : o(e, n)) || a; | |
} | |
} | |
} | |
if (i > 3 && a) { | |
Object.defineProperty(e, n, a); | |
} | |
return a; | |
} | |
function c(t, e) { | |
return function (n, r) { | |
e(n, r, t); | |
}; | |
} | |
function l(t, e) { | |
if (typeof Reflect == "object" && typeof Reflect.metadata == "function") { | |
return Reflect.metadata(t, e); | |
} | |
} | |
function f(t, e, n, r) { | |
return new (n ||= Promise)(function (o, i) { | |
function a(t) { | |
try { | |
u(r.next(t)); | |
} catch (t) { | |
i(t); | |
} | |
} | |
function s(t) { | |
try { | |
u(r.throw(t)); | |
} catch (t) { | |
i(t); | |
} | |
} | |
function u(t) { | |
var e; | |
if (t.done) { | |
o(t.value); | |
} else { | |
(e = t.value, e instanceof n ? e : new n(function (t) { | |
t(e); | |
})).then(a, s); | |
} | |
} | |
u((r = r.apply(t, e || [])).next()); | |
}); | |
} | |
function h(t, e) { | |
var n; | |
var r; | |
var o; | |
var i; | |
var a = { | |
label: 0, | |
sent: function () { | |
if (o[0] & 1) { | |
throw o[1]; | |
} | |
return o[1]; | |
}, | |
trys: [], | |
ops: [] | |
}; | |
i = { | |
next: s(0), | |
throw: s(1), | |
return: s(2) | |
}; | |
if (typeof Symbol == "function") { | |
i[Symbol.iterator] = function () { | |
return this; | |
}; | |
} | |
return i; | |
function s(i) { | |
return function (s) { | |
return function (i) { | |
if (n) { | |
throw new TypeError("Generator is already executing."); | |
} | |
while (a) { | |
try { | |
n = 1; | |
if (r && (o = i[0] & 2 ? r.return : i[0] ? r.throw || ((o = r.return) && o.call(r), 0) : r.next) && !(o = o.call(r, i[1])).done) { | |
return o; | |
} | |
r = 0; | |
if (o) { | |
i = [i[0] & 2, o.value]; | |
} | |
switch (i[0]) { | |
case 0: | |
case 1: | |
o = i; | |
break; | |
case 4: | |
a.label++; | |
return { | |
value: i[1], | |
done: 0 | |
}; | |
case 5: | |
a.label++; | |
r = i[1]; | |
i = [0]; | |
continue; | |
case 7: | |
i = a.ops.pop(); | |
a.trys.pop(); | |
continue; | |
default: | |
if (!(o = (o = a.trys).length > 0 && o[o.length - 1]) && (i[0] === 6 || i[0] === 2)) { | |
a = 0; | |
continue; | |
} | |
if (i[0] === 3 && (!o || i[1] > o[0] && i[1] < o[3])) { | |
a.label = i[1]; | |
break; | |
} | |
if (i[0] === 6 && a.label < o[1]) { | |
a.label = o[1]; | |
o = i; | |
break; | |
} | |
if (o && a.label < o[2]) { | |
a.label = o[2]; | |
a.ops.push(i); | |
break; | |
} | |
if (o[2]) { | |
a.ops.pop(); | |
} | |
a.trys.pop(); | |
continue; | |
} | |
i = e.call(t, a); | |
} catch (t) { | |
i = [6, t]; | |
r = 0; | |
} finally { | |
n = o = 0; | |
} | |
} | |
if (i[0] & 5) { | |
throw i[1]; | |
} | |
return { | |
value: i[0] ? i[1] : void 0, | |
done: 1 | |
}; | |
}([i, s]); | |
}; | |
} | |
} | |
r.r(n); | |
r.d(n, "__extends", function () { | |
return i; | |
}); | |
r.d(n, "__assign", function () { | |
return a; | |
}); | |
r.d(n, "__rest", function () { | |
return s; | |
}); | |
r.d(n, "__decorate", function () { | |
return u; | |
}); | |
r.d(n, "__param", function () { | |
return c; | |
}); | |
r.d(n, "__metadata", function () { | |
return l; | |
}); | |
r.d(n, "__awaiter", function () { | |
return f; | |
}); | |
r.d(n, "__generator", function () { | |
return h; | |
}); | |
r.d(n, "__createBinding", function () { | |
return d; | |
}); | |
r.d(n, "__exportStar", function () { | |
return p; | |
}); | |
r.d(n, "__values", function () { | |
return _; | |
}); | |
r.d(n, "__read", function () { | |
return m; | |
}); | |
r.d(n, "__spread", function () { | |
return y; | |
}); | |
r.d(n, "__spreadArrays", function () { | |
return v; | |
}); | |
r.d(n, "__spreadArray", function () { | |
return E; | |
}); | |
r.d(n, "__await", function () { | |
return w; | |
}); | |
r.d(n, "__asyncGenerator", function () { | |
return g; | |
}); | |
r.d(n, "__asyncDelegator", function () { | |
return T; | |
}); | |
r.d(n, "__asyncValues", function () { | |
return b; | |
}); | |
r.d(n, "__makeTemplateObject", function () { | |
return A; | |
}); | |
r.d(n, "__importStar", function () { | |
return S; | |
}); | |
r.d(n, "__importDefault", function () { | |
return R; | |
}); | |
r.d(n, "__classPrivateFieldGet", function () { | |
return I; | |
}); | |
r.d(n, "__classPrivateFieldSet", function () { | |
return O; | |
}); | |
var d = Object.create ? function (t, e, n, r = n) { | |
Object.defineProperty(t, r, { | |
enumerable: 1, | |
get: function () { | |
return e[n]; | |
} | |
}); | |
} : function (t, e, n, r = n) { | |
t[r] = e[n]; | |
}; | |
function p(t, e) { | |
for (var n in t) { | |
if (n !== "default" && !Object.prototype.hasOwnProperty.call(e, n)) { | |
d(e, t, n); | |
} | |
} | |
} | |
function _(t) { | |
var e = typeof Symbol == "function" && Symbol.iterator; | |
var n = e && t[e]; | |
var r = 0; | |
if (n) { | |
return n.call(t); | |
} | |
if (t && typeof t.length == "number") { | |
return { | |
next: function () { | |
if (t && r >= t.length) { | |
t = void 0; | |
} | |
return { | |
value: t && t[r++], | |
done: !t | |
}; | |
} | |
}; | |
} | |
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); | |
} | |
function m(t, e) { | |
var n; | |
var r; | |
var o = typeof Symbol == "function" && t[Symbol.iterator]; | |
if (!o) { | |
return t; | |
} | |
var i = o.call(t); | |
var a = []; | |
try { | |
while ((void 0 === e || e-- > 0) && !(n = i.next()).done) { | |
a.push(n.value); | |
} | |
} catch (t) { | |
r = { | |
error: t | |
}; | |
} finally { | |
try { | |
if (n && !n.done && (o = i.return)) { | |
o.call(i); | |
} | |
} finally { | |
if (r) { | |
throw r.error; | |
} | |
} | |
} | |
return a; | |
} | |
function y() { | |
for (var e = 0; e < arguments.length; e++) { | |
t = t.concat(m(arguments[e])); | |
} | |
return t; | |
} | |
function v() { | |
var t = 0; | |
for (var e = 0, n = arguments.length; e < n; e++) { | |
t += arguments[e].length; | |
} | |
var r = Array(t); | |
var o = 0; | |
for (e = 0; e < n; e++) { | |
var i = arguments[e]; | |
for (var a = 0, s = i.length; a < s; a++, o++) { | |
r[o] = i[a]; | |
} | |
} | |
return r; | |
} | |
function E(t, e, n) { | |
if (n || arguments.length === 2) { | |
var r; | |
for (var o = 0, i = e.length; o < i; o++) { | |
if (!!r || !(o in e)) { | |
r ||= Array.prototype.slice.call(e, 0, o); | |
r[o] = e[o]; | |
} | |
} | |
} | |
return t.concat(r || Array.prototype.slice.call(e)); | |
} | |
function w(t) { | |
if (this instanceof w) { | |
this.v = t; | |
return this; | |
} else { | |
return new w(t); | |
} | |
} | |
function g(t, e, n) { | |
if (!Symbol.asyncIterator) { | |
throw new TypeError("Symbol.asyncIterator is not defined."); | |
} | |
var r; | |
var o = n.apply(t, e || []); | |
var i = []; | |
r = {}; | |
a("next"); | |
a("throw"); | |
a("return"); | |
r[Symbol.asyncIterator] = function () { | |
return this; | |
}; | |
return r; | |
function a(t) { | |
if (o[t]) { | |
r[t] = function (e) { | |
return new Promise(function (n, r) { | |
if (!(i.push([t, e, n, r]) > 1)) { | |
s(t, e); | |
} | |
}); | |
}; | |
} | |
} | |
function s(t, e) { | |
try { | |
if ((n = o[t](e)).value instanceof w) { | |
Promise.resolve(n.value.v).then(u, c); | |
} else { | |
l(i[0][2], n); | |
} | |
} catch (t) { | |
l(i[0][3], t); | |
} | |
var n; | |
} | |
function u(t) { | |
s("next", t); | |
} | |
function c(t) { | |
s("throw", t); | |
} | |
function l(t, e) { | |
t(e); | |
i.shift(); | |
if (i.length) { | |
s(i[0][0], i[0][1]); | |
} | |
} | |
} | |
function T(t) { | |
var e; | |
var n; | |
e = {}; | |
r("next"); | |
r("throw", function (t) { | |
throw t; | |
}); | |
r("return"); | |
e[Symbol.iterator] = function () { | |
return this; | |
}; | |
return e; | |
function r(r, o) { | |
e[r] = t[r] ? function (e) { | |
if (n = !n) { | |
return { | |
value: w(t[r](e)), | |
done: r === "return" | |
}; | |
} else if (o) { | |
return o(e); | |
} else { | |
return e; | |
} | |
} : o; | |
} | |
} | |
function b(t) { | |
if (!Symbol.asyncIterator) { | |
throw new TypeError("Symbol.asyncIterator is not defined."); | |
} | |
var e; | |
var n = t[Symbol.asyncIterator]; | |
if (n) { | |
return n.call(t); | |
} else { | |
t = _(t); | |
e = {}; | |
r("next"); | |
r("throw"); | |
r("return"); | |
e[Symbol.asyncIterator] = function () { | |
return this; | |
}; | |
return e; | |
} | |
function r(n) { | |
e[n] = t[n] && function (e) { | |
return new Promise(function (r, o) { | |
(function (t, e, n, r) { | |
Promise.resolve(r).then(function (e) { | |
t({ | |
value: e, | |
done: n | |
}); | |
}, e); | |
})(r, o, (e = t[n](e)).done, e.value); | |
}); | |
}; | |
} | |
} | |
function A(t, e) { | |
if (Object.defineProperty) { | |
Object.defineProperty(t, "raw", { | |
value: e | |
}); | |
} else { | |
t.raw = e; | |
} | |
return t; | |
} | |
var C = Object.create ? function (t, e) { | |
Object.defineProperty(t, "default", { | |
enumerable: 1, | |
value: e | |
}); | |
} : function (t, e) { | |
t.default = e; | |
}; | |
function S(t) { | |
if (t && t.__esModule) { | |
return t; | |
} | |
var e = {}; | |
if (t != null) { | |
for (var n in t) { | |
if (n !== "default" && Object.prototype.hasOwnProperty.call(t, n)) { | |
d(e, t, n); | |
} | |
} | |
} | |
C(e, t); | |
return e; | |
} | |
function R(t) { | |
if (t && t.__esModule) { | |
return t; | |
} else { | |
return { | |
default: t | |
}; | |
} | |
} | |
function I(t, e, n, r) { | |
if (n === "a" && !r) { | |
throw new TypeError("Private accessor was defined without a getter"); | |
} | |
if (typeof e == "function" ? t !== e || !r : !e.has(t)) { | |
throw new TypeError("Cannot read private member from an object whose class did not declare it"); | |
} | |
if (n === "m") { | |
return r; | |
} else if (n === "a") { | |
return r.call(t); | |
} else if (r) { | |
return r.value; | |
} else { | |
return e.get(t); | |
} | |
} | |
function O(t, e, n, r, o) { | |
if (r === "m") { | |
throw new TypeError("Private method is not writable"); | |
} | |
if (r === "a" && !o) { | |
throw new TypeError("Private accessor was defined without a setter"); | |
} | |
if (typeof e == "function" ? t !== e || !o : !e.has(t)) { | |
throw new TypeError("Cannot write private member to an object whose class did not declare it"); | |
} | |
if (r === "a") { | |
o.call(t, n); | |
} else if (o) { | |
o.value = n; | |
} else { | |
e.set(t, n); | |
} | |
return n; | |
} | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function () { | |
function t() { | |
this.data = null; | |
} | |
t.prototype.collect = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var t; | |
return (0, r.__generator)(this, function (e) { | |
switch (e.label) { | |
case 0: | |
if (this.data !== null) { | |
return [3, 2]; | |
} else { | |
t = this; | |
return [4, this.collectData()]; | |
} | |
case 1: | |
t.data = e.sent(); | |
e.label = 2; | |
case 2: | |
return [2, this.data]; | |
} | |
}); | |
}); | |
}; | |
return t; | |
}(); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = function () { | |
function t(t) { | |
this.element = t; | |
} | |
t.prototype.addEventListener = function (t, e) { | |
if (typeof this.element.addEventListener == "function") { | |
this.element.addEventListener(t, e); | |
} else { | |
if (typeof this.element.attachEvent != "function") { | |
throw new Error("The event listener could not be bound because the browser does not support any event listener methods."); | |
} | |
this.element.attachEvent("on" + t, e); | |
} | |
}; | |
t.prototype.removeEventListener = function (t, e) { | |
if (typeof this.element.removeEventListener == "function") { | |
this.element.removeEventListener(t, e); | |
} else { | |
if (typeof this.element.detachEvent != "function") { | |
throw new Error("The event listener could not be unbound because the browser does not support any event listener methods."); | |
} | |
this.element.detachEvent("on" + t, e); | |
} | |
}; | |
return t; | |
}(); | |
e.default = r; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = function () { | |
function t(t) { | |
if (void 0 === t) { | |
t = document; | |
} | |
this.context = t; | |
if (typeof t.querySelectorAll != "function") { | |
this.qsa = this.polyfillQuerySelectorAll(t); | |
} else { | |
this.qsa = function (e) { | |
return t.querySelectorAll(e); | |
}; | |
} | |
} | |
t.prototype.generateRandomId = function () { | |
return "i" + Math.random().toString(16).replace(".", ""); | |
}; | |
t.prototype.polyfillQuerySelectorAll = function (t) { | |
var e = this; | |
return function (n) { | |
var r; | |
var o = 0; | |
var i = t; | |
if (t !== document) { | |
if (i.id) { | |
r = i.id; | |
} else { | |
r = e.generateRandomId(); | |
o = 1; | |
i.id = r; | |
} | |
} | |
var a = document; | |
var s = a.createElement("style"); | |
var u = []; | |
a.documentElement.firstChild.appendChild(s); | |
a._qsa = []; | |
var c = n.split(","); | |
if (r) { | |
for (var l = 0; l < c.length; l++) { | |
c[l] = "#" + r + " " + c[l].trim(); | |
} | |
} | |
s.styleSheet.cssText = c.join(", ") + " {x-qsa:expression(document._qsa && document._qsa.push(this))}"; | |
window.scrollBy(0, 0); | |
s.parentNode.removeChild(s); | |
while (a._qsa.length) { | |
var f = a._qsa.shift(); | |
f.style.removeAttribute("x-qsa"); | |
u.push(f); | |
} | |
a._qsa = null; | |
if (o) { | |
i.id = null; | |
} | |
return u; | |
}; | |
}; | |
t.prototype.querySelectorAll = function (t) { | |
return this.qsa(t); | |
}; | |
t.prototype.querySelector = function (t) { | |
var e = this.querySelectorAll(t); | |
if (e.length) { | |
return e[0]; | |
} else { | |
return null; | |
} | |
}; | |
return t; | |
}(); | |
e.default = r; | |
}, function (t, e) { | |
var n; | |
n = function () { | |
return this; | |
}(); | |
try { | |
n = n || Function("return this")() || (0, eval)("this"); | |
} catch (t) { | |
if (typeof window == "object") { | |
n = window; | |
} | |
} | |
t.exports = n; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = function () { | |
function t() {} | |
t.prototype.buildCrcTable = function () { | |
this.crcTable = []; | |
for (var e = 0; e < 256; e++) { | |
var n = e; | |
for (var r = 0; r < 8; r++) { | |
if (~n & 1) { | |
n >>>= 1; | |
} else { | |
n = n >>> 1 ^ t.IEEE_POLYNOMIAL; | |
} | |
} | |
this.crcTable[e] = n; | |
} | |
}; | |
t.prototype.calculate = function (t) { | |
var e; | |
if (!this.crcTable) { | |
this.buildCrcTable(); | |
} | |
var n = 0; | |
n ^= 4294967295; | |
for (var r = 0; r < t.length; r++) { | |
e = (n ^ t.charCodeAt(r)) & 255; | |
n = n >>> 8 ^ this.crcTable[e]; | |
} | |
return n ^ 4294967295; | |
}; | |
t.IEEE_POLYNOMIAL = 3988292384; | |
return t; | |
}(); | |
e.default = r; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function () { | |
function t(t) { | |
this.telemetry = t.telemetry; | |
this.key = t.key; | |
} | |
t.prototype.collect = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var t; | |
var e; | |
return (0, r.__generator)(this, function (n) { | |
t = this.telemetry.get(); | |
return [2, (e = {}, e[this.key] = (0, r.__assign)((0, r.__assign)({}, t), { | |
keyCycles: this.transformCycles(t.keyCycles), | |
mouseCycles: this.transformCycles(t.mouseCycles), | |
touchCycles: this.transformCycles(t.touchCycles) | |
}), e)]; | |
}); | |
}); | |
}; | |
t.prototype.transformCycles = function (t) { | |
return t.map(function (t) { | |
return t.endEventTime - t.startEventTime; | |
}); | |
}; | |
t.collectorName = "el"; | |
return t; | |
}(); | |
e.default = o; | |
}, function (t, e) { | |
(function (e) { | |
t.exports = e; | |
}).call(this, {}); | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = function () { | |
function t() {} | |
t.prototype.create = function (t, e) { | |
var n = 0; | |
return function () { | |
var r = new Date().getTime(); | |
if (r - e >= n) { | |
n = r; | |
t.apply(this, arguments); | |
} | |
}; | |
}; | |
return t; | |
}(); | |
e.default = r; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function () { | |
function t(t) { | |
this.collectors = t; | |
} | |
t.prototype.collect = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var t; | |
var e; | |
var n; | |
var o; | |
var i; | |
var a; | |
var s; | |
var u; | |
var c; | |
var l; | |
var f; | |
var h; | |
return (0, r.__generator)(this, function (d) { | |
switch (d.label) { | |
case 0: | |
t = []; | |
e = { | |
metrics: {} | |
}; | |
n = 0; | |
o = this.collectors; | |
d.label = 1; | |
case 1: | |
if (!(n < o.length)) { | |
return [3, 6]; | |
} | |
i = o[n]; | |
a = i.constructor.collectorName; | |
s = e.metrics; | |
u = new Date().getTime(); | |
d.label = 2; | |
case 2: | |
d.trys.push([2, 4,, 5]); | |
return [4, i.collect()]; | |
case 3: | |
if (typeof (c = d.sent()) != "object") { | |
c = {}; | |
} | |
if (a !== undefined) { | |
s = (0, r.__assign)((0, r.__assign)({}, s), ((f = {})[a] = new Date().getTime() - u, f)); | |
} | |
e = (0, r.__assign)((0, r.__assign)((0, r.__assign)({}, e), c), { | |
metrics: s | |
}); | |
return [3, 5]; | |
case 4: | |
l = d.sent(); | |
t.push({ | |
collector: a, | |
message: l.message | |
}); | |
if (a !== undefined) { | |
e = (0, r.__assign)((0, r.__assign)({}, e), { | |
metrics: (0, r.__assign)((0, r.__assign)({}, s), (h = {}, h[a] = new Date().getTime() - u, h)) | |
}); | |
} | |
return [3, 5]; | |
case 5: | |
n++; | |
return [3, 1]; | |
case 6: | |
e.errors = t; | |
return [2, e]; | |
} | |
}); | |
}); | |
}; | |
return t; | |
}(); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = n(50); | |
var i = n(49); | |
var a = n(6); | |
var s = n(9); | |
var u = n(48); | |
var c = n(14); | |
var l = n(47); | |
var f = n(46); | |
var h = n(12); | |
var d = n(17); | |
var p = n(45); | |
var _ = function () { | |
function t(t, e) { | |
var n = this; | |
this.encoder = t; | |
this.encryptor = e; | |
this.initializationErrors = []; | |
var o = null; | |
this.initializeCollectors = function (t) { | |
var e = []; | |
for (var r = 0, o = t; r < o.length; r++) { | |
var i = o[r]; | |
try { | |
if (typeof i.collect == "function") { | |
e.push(i); | |
} else { | |
e.push(i(n)); | |
} | |
} catch (t) { | |
n.initializationErrors.push({ | |
message: t.message | |
}); | |
} | |
} | |
return e; | |
}; | |
this.initializeCompoundCollector = function () { | |
var t = n.constructor; | |
if (o === null) { | |
o = new s.default(n.initializeCollectors(t.COLLECTORS)); | |
} | |
}; | |
this.collectAndEncrypt = function (t) { | |
return (0, r.__awaiter)(n, void 0, void 0, function () { | |
var e; | |
return (0, r.__generator)(this, function (n) { | |
switch (n.label) { | |
case 0: | |
return [4, t.collect()]; | |
case 1: | |
(e = n.sent()).version = p.FWCIM_VERSION; | |
if (e.errors) { | |
e.errors = e.errors.concat(this.initializationErrors); | |
} else { | |
e.errors = this.initializationErrors; | |
} | |
return [4, this.encryptor.encrypt(this.encoder.encode(e))]; | |
case 2: | |
return [2, n.sent()]; | |
} | |
}); | |
}); | |
}; | |
this.collect = function () { | |
return (0, r.__awaiter)(n, void 0, void 0, function () { | |
return (0, r.__generator)(this, function (t) { | |
return [2, this.collectAndEncrypt(o)]; | |
}); | |
}); | |
}; | |
} | |
t.prototype.profile = function () { | |
this.initializeCompoundCollector(); | |
this.doProfile(); | |
}; | |
t.COLLECTORS = [function () { | |
return new c.default({ | |
key: "start" | |
}); | |
}, function () { | |
return new a.default({ | |
key: "interaction", | |
telemetry: new d.default({ | |
element: document, | |
cycleBuffer: 10 | |
}) | |
}); | |
}, function () { | |
return new f.default(); | |
}, function () { | |
return new u.default(); | |
}, function () { | |
return new i.default(); | |
}, function () { | |
return new l.default(); | |
}, function () { | |
return new o.default(); | |
}, function () { | |
return new h.default({ | |
key: "end" | |
}); | |
}]; | |
return t; | |
}(); | |
e.default = _; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function (t) { | |
function e() { | |
return t !== null && t.apply(this, arguments) || this; | |
} | |
(0, r.__extends)(e, t); | |
e.prototype.collectData = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var t; | |
var e; | |
var n; | |
return (0, r.__generator)(this, function (r) { | |
if (typeof (t = new Date()).toGMTString != "function") { | |
return [2, null]; | |
} else { | |
e = new Date(t.getFullYear(), 0, 10); | |
n = new Date(e.toGMTString().replace(/ (GMT|UTC)/, "")); | |
return [2, { | |
timeZone: (e.getTime() - n.getTime()) / 3600000 | |
}]; | |
} | |
}); | |
}); | |
}; | |
e.collectorName = "tz"; | |
return e; | |
}(n(1).default); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function () { | |
function t(t) { | |
this.key = t.key; | |
} | |
t.prototype.collect = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var t; | |
return (0, r.__generator)(this, function (e) { | |
return [2, (t = {}, t[this.key] = new Date().getTime(), t)]; | |
}); | |
}); | |
}; | |
return t; | |
}(); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function () { | |
function t(t) { | |
try { | |
this.storage = t === null ? t : window.localStorage; | |
} catch (t) {} | |
} | |
t.prototype.generateIdentifier = function () { | |
var t = 4022871197; | |
function e(e) { | |
e = typeof e === undefined || e === null ? "" : e.toString(); | |
for (var n = 0; n < e.length; n++) { | |
var r = (t += e.charCodeAt(n)) * 0.02519603282416938; | |
r -= t = r >>> 0; | |
t = (r *= t) >>> 0; | |
t += (r -= t) * 4294967296; | |
} | |
return (t >>> 0) * 2.3283064365386963e-10; | |
} | |
var n = e(" "); | |
var r = e(" "); | |
var o = e(" "); | |
var i = 1; | |
var a = [document.body.innerHTML, navigator.userAgent, new Date().getTime()]; | |
for (var s in a) { | |
if (a.hasOwnProperty(s)) { | |
if ((n -= e(a[s])) < 0) { | |
n += 1; | |
} | |
if ((r -= e(a[s])) < 0) { | |
r += 1; | |
} | |
if ((o -= e(a[s])) < 0) { | |
o += 1; | |
} | |
} | |
} | |
function u(t) { | |
return ("0000000000" + ((e = n * 2091639 + i * 2.3283064365386963e-10, n = r, r = o, o = e - (i = e | 0)) * 4294967296).toString()).slice(-t); | |
var e; | |
} | |
return "X" + u(2) + "-" + u(7) + "-" + u(7) + ":" + Math.floor(new Date().getTime() / 1000); | |
}; | |
t.prototype.validateIdentifier = function (t) { | |
return typeof t == "string" && !!t.match(/^[X\d]\d{2}\-\d{7}\-\d{7}:\d+$/); | |
}; | |
t.prototype.collect = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var e; | |
return (0, r.__generator)(this, function (n) { | |
if (this.storage) { | |
e = this.storage.getItem(t.STORAGE_KEY); | |
if (!this.validateIdentifier(e)) { | |
e = this.generateIdentifier(); | |
this.storage.removeItem(t.STORAGE_KEY); | |
this.storage.setItem(t.STORAGE_KEY, e); | |
} | |
return [2, { | |
lsUbid: e | |
}]; | |
} else { | |
return [2, null]; | |
} | |
}); | |
}); | |
}; | |
t.STORAGE_KEY = "amznfbgid"; | |
t.collectorName = "lsubid"; | |
return t; | |
}(); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function () { | |
function t(t) { | |
this.key = t.key; | |
this.time = new Date().getTime(); | |
} | |
t.prototype.collect = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var t; | |
return (0, r.__generator)(this, function (e) { | |
return [2, (t = {}, t[this.key] = this.time, t)]; | |
}); | |
}); | |
}; | |
return t; | |
}(); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = n(59); | |
var i = n(58); | |
var a = n(57); | |
var s = n(1); | |
var u = n(56); | |
var c = n(55); | |
var l = function (t) { | |
function e() { | |
var e = t.call(this) || this; | |
e.pluginCollectors = []; | |
if (window.navigator.plugins && window.navigator.plugins.length) { | |
e.pluginCollectors.push(new u.default()); | |
} | |
if (o.default.ie() && o.default.windows()) { | |
e.pluginCollectors.push(new a.default({ | |
container: document.body | |
})); | |
e.pluginCollectors.push(new i.default({ | |
container: document.body | |
})); | |
} | |
e.screenInfoCollector = new c.default(); | |
return e; | |
} | |
(0, r.__extends)(e, t); | |
e.prototype.collectData = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var t; | |
var e; | |
var n; | |
var o; | |
var i; | |
var a; | |
var s; | |
var u; | |
var c; | |
var l; | |
var f; | |
return (0, r.__generator)(this, function (r) { | |
switch (r.label) { | |
case 0: | |
t = null; | |
e = []; | |
n = 0; | |
o = this.pluginCollectors; | |
r.label = 1; | |
case 1: | |
if (n < o.length) { | |
return [4, o[n].collect()]; | |
} else { | |
return [3, 4]; | |
} | |
case 2: | |
i = r.sent(); | |
e = e.concat(i.plugins); | |
t = i.flashVersion || t; | |
r.label = 3; | |
case 3: | |
n++; | |
return [3, 1]; | |
case 4: | |
a = ""; | |
s = ""; | |
if (e.length > 0) { | |
u = 0; | |
c = e; | |
for (; u < c.length; u++) { | |
l = c[u]; | |
if (a.indexOf(l.name) === -1) { | |
a += l.str; | |
} | |
s += l.str; | |
} | |
} else { | |
a = "unknown"; | |
s = "unknown"; | |
} | |
return [4, this.screenInfoCollector.collect()]; | |
case 5: | |
f = r.sent().screenInfo; | |
return [2, { | |
flashVersion: t, | |
plugins: a += "||" + f, | |
dupedPlugins: s += "||" + f, | |
screenInfo: f | |
}]; | |
} | |
}); | |
}); | |
}; | |
e.collectorName = "fp2"; | |
return e; | |
}(s.default); | |
e.default = l; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = n(2); | |
var i = { | |
buffer: -1, | |
callback: function () {} | |
}; | |
var a = function () { | |
function t(t) { | |
var e = (0, r.__assign)((0, r.__assign)({}, i), t); | |
var n = e.element; | |
var o = e.buffer; | |
var a = e.startEvent; | |
var s = e.endEvent; | |
var u = e.callback; | |
this.element = n; | |
this.buffer = o; | |
this.startEvent = a; | |
this.endEvent = s; | |
this.callback = u; | |
this.bind(); | |
} | |
t.prototype.bind = function () { | |
var t = this; | |
var e = {}; | |
this.eventCycles = []; | |
var n = new o.default(this.element); | |
n.addEventListener(this.startEvent, function (n) { | |
var r = t.extractWhich(n); | |
if (r && !e.hasOwnProperty(r)) { | |
e[r] = { | |
startEventTime: new Date().getTime(), | |
startEvent: n, | |
which: r | |
}; | |
} | |
}); | |
n.addEventListener(this.endEvent, function (n) { | |
var r = t.extractWhich(n); | |
if (r && e.hasOwnProperty(r)) { | |
e[r].endEvent = n; | |
e[r].endEventTime = new Date().getTime(); | |
if (t.buffer < 0 || t.eventCycles.length < t.buffer) { | |
t.eventCycles.push(e[r]); | |
} | |
t.callback(r, e[r]); | |
delete e[r]; | |
} | |
}); | |
}; | |
t.prototype.extractWhich = function (e) { | |
for (var n = 0; n < t.WHICH_PROPERTIES.length; n++) { | |
var r = t.WHICH_PROPERTIES[n]; | |
if (e[r] !== undefined && e[r] !== t.UNIDENTIFIED) { | |
return e[r]; | |
} | |
} | |
return t.UNIDENTIFIED; | |
}; | |
t.prototype.get = function () { | |
return this.eventCycles; | |
}; | |
t.prototype.reset = function () { | |
this.eventCycles.splice(0); | |
}; | |
t.WHICH_PROPERTIES = ["key", "which", "button"]; | |
t.UNIDENTIFIED = "Unidentified"; | |
return t; | |
}(); | |
e.default = a; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(2); | |
var o = n(16); | |
var i = function () { | |
function t(t) { | |
this.options = t; | |
this.element = t.element; | |
this.data = { | |
clicks: 0, | |
touches: 0, | |
keyPresses: 0, | |
cuts: 0, | |
copies: 0, | |
pastes: 0, | |
keyPressTimeIntervals: [], | |
mouseClickPositions: [], | |
keyCycles: [], | |
mouseCycles: [], | |
touchCycles: [] | |
}; | |
this.bindElement(t.cycleBuffer); | |
} | |
t.prototype.bindElement = function (t) { | |
var e = this; | |
if (void 0 === t) { | |
t = -1; | |
} | |
var n = new r.default(this.element); | |
n.addEventListener("keydown", function () { | |
return e.data.keyPresses++; | |
}); | |
n.addEventListener("touchend", function () { | |
return e.data.touches++; | |
}); | |
n.addEventListener("click", function (t) { | |
e.data.clicks++; | |
if (e.data.mouseClickPositions.length <= 10) { | |
var n = { | |
top: 0, | |
left: 0 | |
}; | |
if (typeof e.element.getBoundingClientRect == "function") { | |
n = e.element.getBoundingClientRect(); | |
} | |
var r = n.top + window.scrollY; | |
var o = n.left + window.scrollX; | |
e.data.mouseClickPositions.push([t.pageX - o, t.pageY - r].join(",")); | |
} | |
}); | |
n.addEventListener("cut", function () { | |
return e.data.cuts++; | |
}); | |
n.addEventListener("copy", function () { | |
return e.data.copies++; | |
}); | |
n.addEventListener("paste", function () { | |
return e.data.pastes++; | |
}); | |
this.keyCycles = new o.default({ | |
startEvent: "keydown", | |
endEvent: "keyup", | |
element: this.element, | |
buffer: t, | |
callback: function () { | |
e.data.keyCycles = e.keyCycles.get(); | |
e.data.keyCycles.sort(function (t, e) { | |
return t.startEventTime - e.startEventTime; | |
}); | |
e.data.keyPressTimeIntervals = []; | |
if (e.data.keyCycles.length > 1) { | |
for (var t = e.data.keyCycles.length - 1; t > 0; t--) { | |
e.data.keyPressTimeIntervals.splice(0, 0, e.data.keyCycles[t].startEventTime - e.data.keyCycles[t - 1].startEventTime); | |
} | |
} | |
} | |
}); | |
this.mouseCycles = new o.default({ | |
startEvent: "mousedown", | |
endEvent: "mouseup", | |
element: this.element, | |
buffer: t, | |
callback: function () { | |
return e.data.mouseCycles = e.mouseCycles.get(); | |
} | |
}); | |
this.touchCycles = new o.default({ | |
startEvent: "touchstart", | |
endEvent: "touchend", | |
element: this.element, | |
buffer: t, | |
callback: function () { | |
return e.data.touchCycles = e.touchCycles.get(); | |
} | |
}); | |
}; | |
t.prototype.get = function () { | |
return this.data; | |
}; | |
return t; | |
}(); | |
e.default = i; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = n(29); | |
var i = n(28); | |
var a = n(5); | |
var s = n(2); | |
var u = function (t) { | |
function e(e) { | |
var n = t.call(this, e) || this; | |
n.hexEncoder = new o.default(); | |
n.crcCalculator = new a.default(); | |
n.utf8Encoder = new i.default(); | |
n.totalFocusTime = 0; | |
n.keyWasPressed = 0; | |
n.form = e.form; | |
var r = e.element.getBoundingClientRect(); | |
var s = r.width; | |
var u = r.height; | |
n.width = Math.round(s); | |
n.height = Math.round(u); | |
n.prefilled = !!e.element.value; | |
n.bindInput(); | |
return n; | |
} | |
(0, r.__extends)(e, t); | |
e.prototype.bindInput = function () { | |
var t = this; | |
var e = new s.default(this.element); | |
e.addEventListener("keydown", function () { | |
return t.keyWasPressed = 1; | |
}); | |
e.addEventListener("focus", function () { | |
return t.focusTimestamp = new Date().getTime(); | |
}); | |
e.addEventListener("blur", function () { | |
if (t.focusTimestamp) { | |
t.totalFocusTime += new Date().getTime() - t.focusTimestamp; | |
t.focusTimestamp = null; | |
} | |
}); | |
new s.default(this.form).addEventListener("submit", function () { | |
if (t.focusTimestamp) { | |
t.totalFocusTime += new Date().getTime() - t.focusTimestamp; | |
t.focusTimestamp = null; | |
} | |
t.autocomplete = !t.keyWasPressed && !t.prefilled && !!t.element.value; | |
if (t.element.type !== "password") { | |
var e = t.element.value; | |
if (!e || !e.length) { | |
return; | |
} | |
if (Array.isArray(e) && e.length) { | |
e = e.sort().join(","); | |
} | |
t.checksum = t.hexEncoder.encode(t.crcCalculator.calculate(t.utf8Encoder.encode(e))); | |
} | |
}); | |
}; | |
e.prototype.get = function () { | |
var e = this; | |
var n = e.width; | |
var o = e.height; | |
var i = e.totalFocusTime; | |
var a = e.checksum; | |
var s = e.autocomplete; | |
var u = e.prefilled; | |
var c = t.prototype.get.call(this); | |
return (0, r.__assign)((0, r.__assign)({}, c), { | |
width: n, | |
height: o, | |
totalFocusTime: i, | |
checksum: a, | |
autocomplete: s, | |
prefilled: u | |
}); | |
}; | |
return e; | |
}(n(17).default); | |
e.default = u; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(2); | |
var o = function () { | |
function t(t, e, n) { | |
if (void 0 === n) { | |
n = 0; | |
} | |
this.callback = t; | |
this.timeout = e; | |
this.minimumCallbackTime = n; | |
this.idleCallbackStart = new Date().getTime(); | |
this.idleTimeout = null; | |
this.idleCallbackCalled = 0; | |
this.bindInteractionEvents(); | |
} | |
t.prototype.bindInteractionEvents = function () { | |
var e = this; | |
this.callHandleInteractionEvent = function () { | |
e.handleInteractionEvent(); | |
}; | |
for (var n = 0, r = t.DOCUMENT_INTERACTION_EVENTS; n < r.length; n++) { | |
var o = r[n]; | |
t.DOCUMENT_EVENT_LISTENER.addEventListener(o, this.callHandleInteractionEvent); | |
} | |
if (typeof this.timeout == "number") { | |
setTimeout(function () { | |
e.triggerCallback(); | |
}, this.timeout); | |
} | |
}; | |
t.prototype.handleInteractionEvent = function () { | |
var e = this; | |
if (this.idleTimeout !== null) { | |
clearTimeout(this.idleTimeout); | |
} | |
var n = new Date().getTime() - this.idleCallbackStart; | |
var r = typeof this.timeout == "number" && n > this.timeout ? t.IMMEDIATELY_RUN_TIMEOUT_MS : t.IDLE_TIME_MS; | |
this.idleTimeout = setTimeout(function () { | |
if (n >= e.minimumCallbackTime) { | |
e.triggerCallback(); | |
} | |
}, r); | |
}; | |
t.prototype.triggerCallback = function () { | |
if (this.idleCallbackCalled == 0) { | |
this.idleCallbackCalled = 1; | |
this.clear(); | |
this.callback(); | |
} | |
}; | |
t.prototype.clear = function () { | |
this.idleCallbackCalled = 1; | |
if (this.idleTimeout !== null) { | |
clearTimeout(this.idleTimeout); | |
this.idleTimeout = null; | |
} | |
for (var e = 0, n = t.DOCUMENT_INTERACTION_EVENTS; e < n.length; e++) { | |
var r = n[e]; | |
t.DOCUMENT_EVENT_LISTENER.removeEventListener(r, this.callHandleInteractionEvent); | |
} | |
}; | |
t.IDLE_TIME_MS = 500; | |
t.IMMEDIATELY_RUN_TIMEOUT_MS = 10; | |
t.DOCUMENT_EVENT_LISTENER = new r.default(document); | |
t.DOCUMENT_INTERACTION_EVENTS = ["keypress", "keydown", "keyup", "click", "scroll"]; | |
return t; | |
}(); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(65); | |
var o = function () { | |
function t() {} | |
t.prototype.buildURL = function (t) { | |
try { | |
return new r.default(t); | |
} catch (n) { | |
var e = window.ueLogError; | |
if (e) { | |
e(n, { | |
logLevel: "WARN", | |
attribution: "FWCIMAssets", | |
message: "Invalid url (\"" + t + "\"): " + (n.message || n) | |
}); | |
} | |
return null; | |
} | |
}; | |
return t; | |
}(); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = n(20); | |
var i = { | |
"pharmacy-beta.corp.amazon.com": "https://development.amazon.com/", | |
"pharmacy-gamma.corp.amazon.com": "https://pre-prod.amazon.com/", | |
"pharmacy.amazon.com": "https://www.amazon.com/", | |
"virtualcare.integ.amazon.com": "https://development.amazon.com/", | |
"virtualcare-preprod.iad.xcorp.amazon.com": "https://pre-prod.amazon.com/", | |
"virtualcare.amazon.com": "https://www.amazon.com/", | |
"clinic-preprod.iad.xcorp.amazon.com": "https://pre-prod.amazon.com/", | |
"clinic.integ.amazon.com": "https://development.amazon.com/", | |
"clinic.amazon.com": "https://www.amazon.com/", | |
"health.integ.amazon.com": "https://development.amazon.com/", | |
"health-preprod.iad.xcorp.amazon.com": "https://pre-prod.amazon.com/", | |
"health.amazon.com": "https://www.amazon.com/" | |
}; | |
var a = function (t) { | |
function e() { | |
return t !== null && t.apply(this, arguments) || this; | |
} | |
(0, r.__extends)(e, t); | |
e.prototype.obfuscate = function (t) { | |
var e = this.buildURL(t); | |
if (e && e.getRawHostname() in i) { | |
return i[e.getRawHostname()]; | |
} else { | |
return t; | |
} | |
}; | |
return e; | |
}(o.default); | |
e.default = a; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = n(1); | |
var i = n(66); | |
var a = function (t) { | |
function e() { | |
return t !== null && t.apply(this, arguments) || this; | |
} | |
(0, r.__extends)(e, t); | |
e.prototype.collectData = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var t; | |
return (0, r.__generator)(this, function (e) { | |
t = window.location ? window.location.href : null; | |
return [2, { | |
referrer: i.default.obfuscate(document.referrer), | |
userAgent: navigator.userAgent, | |
location: i.default.obfuscate(t), | |
webDriver: typeof navigator.webdriver == "boolean" ? navigator.webdriver : null | |
}]; | |
}); | |
}); | |
}; | |
e.collectorName = "browser"; | |
return e; | |
}(o.default); | |
e.default = a; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function (t) { | |
function e() { | |
return t !== null && t.apply(this, arguments) || this; | |
} | |
(0, r.__extends)(e, t); | |
e.prototype.collectData = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
return (0, r.__generator)(this, function (t) { | |
return [2, { | |
math: { | |
tan: "" + Math.tan(e.CONSTANT), | |
sin: "" + Math.sin(e.CONSTANT), | |
cos: "" + Math.cos(e.CONSTANT) | |
} | |
}]; | |
}); | |
}); | |
}; | |
e.CONSTANT = -1e+300; | |
e.collectorName = "math"; | |
return e; | |
}(n(1).default); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function (t) { | |
function e() { | |
var e = t.call(this) || this; | |
e.canvas = document.createElement("canvas"); | |
return e; | |
} | |
(0, r.__extends)(e, t); | |
e.prototype.collectData = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var t; | |
var n; | |
return (0, r.__generator)(this, function (r) { | |
if (!this.canvas) { | |
return [2, {}]; | |
} | |
try { | |
(t = this.canvas.getContext("experimental-webgl")).viewportWidth = this.canvas.width; | |
t.viewportHeight = this.canvas.height; | |
} catch (t) { | |
return [2, { | |
gpu: null | |
}]; | |
} | |
if (n = t.getExtension(e.WEBGL_DEBUG_EXTENSION)) { | |
return [2, { | |
gpu: { | |
vendor: t.getParameter(n.UNMASKED_VENDOR_WEBGL), | |
model: t.getParameter(n.UNMASKED_RENDERER_WEBGL), | |
extensions: t.getSupportedExtensions() | |
} | |
}]; | |
} else { | |
return [2, { | |
gpu: { | |
vendor: t.getParameter(t.VENDOR), | |
model: t.getParameter(t.RENDERER), | |
extensions: t.getSupportedExtensions() | |
} | |
}]; | |
} | |
}); | |
}); | |
}; | |
e.WEBGL_DEBUG_EXTENSION = "WEBGL_debug_renderer_info"; | |
e.collectorName = "gpu"; | |
return e; | |
}(n(1).default); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function (t) { | |
function e() { | |
return t !== null && t.apply(this, arguments) || this; | |
} | |
(0, r.__extends)(e, t); | |
e.prototype.normalizeDntValue = function (t) { | |
switch (t) { | |
case 1: | |
case 1: | |
case "1": | |
case "yes": | |
return 1; | |
case 0: | |
case 0: | |
case "0": | |
case "no": | |
return 0; | |
default: | |
return null; | |
} | |
}; | |
e.prototype.collectData = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var t; | |
var e; | |
var n; | |
return (0, r.__generator)(this, function (r) { | |
t = [navigator.doNotTrack, navigator.msDoNotTrack, window.doNotTrack]; | |
e = 0; | |
for (; e < t.length; e++) { | |
if ((n = t[e]) !== undefined) { | |
return [2, { | |
dnt: this.normalizeDntValue(n) | |
}]; | |
} | |
} | |
return [2, {}]; | |
}); | |
}); | |
}; | |
e.collectorName = "dnt"; | |
return e; | |
}(n(1).default); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function (t) { | |
function e() { | |
return t !== null && t.apply(this, arguments) || this; | |
} | |
(0, r.__extends)(e, t); | |
e.prototype.cssCapabilities = function () { | |
var t = {}; | |
var n = document.createElement("div"); | |
for (var r = 0, o = e.CSS_PROPERTIES; r < o.length; r++) { | |
var i = o[r]; | |
var a = [i]; | |
for (var s = 0, u = e.CSS_PREFIXES; s < u.length; s++) { | |
var c = u[s]; | |
a.push(c + i.charAt(0).toUpperCase() + i.slice(1)); | |
} | |
for (var l = 0, f = a; l < f.length; l++) { | |
var h = f[l]; | |
if (n.style[h] === "") { | |
t[h] = 1; | |
break; | |
} | |
} | |
} | |
return t; | |
}; | |
e.prototype.jsCapabilities = function () { | |
var t = "disabled"; | |
try { | |
t = window.localStorage ? "supported" : window.localStorage === undefined ? "unsupported" : "disabled"; | |
} catch (t) {} | |
return { | |
audio: !!document.createElement("audio").canPlayType, | |
geolocation: !!navigator.geolocation, | |
localStorage: t, | |
touch: "ontouchend" in window, | |
video: !!document.createElement("video").canPlayType, | |
webWorker: !!window.Worker | |
}; | |
}; | |
e.prototype.collectData = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var t; | |
return (0, r.__generator)(this, function (e) { | |
t = new Date().getTime(); | |
return [2, { | |
capabilities: { | |
css: this.cssCapabilities(), | |
js: this.jsCapabilities(), | |
elapsed: new Date().getTime() - t | |
} | |
}]; | |
}); | |
}); | |
}; | |
e.CSS_PREFIXES = ["Webkit", "Moz", "O", "ms", "khtml"]; | |
e.CSS_PROPERTIES = ["textShadow", "textStroke", "boxShadow", "borderRadius", "borderImage", "opacity", "transform", "transform3d", "transition"]; | |
e.collectorName = "capabilities"; | |
return e; | |
}(n(1).default); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = n(26); | |
var i = n(25); | |
var a = n(24); | |
var s = n(23); | |
var u = n(22); | |
var c = n(63); | |
var l = n(61); | |
var f = n(15); | |
var h = n(54); | |
var d = n(53); | |
var p = n(14); | |
var _ = n(13); | |
var m = n(52); | |
var y = n(12); | |
var v = n(51); | |
var E = n(11); | |
var w = n(2); | |
var g = n(3); | |
var T = n(10); | |
var b = n(19); | |
var A = function (t) { | |
function e(n, r, o) { | |
var i = t.call(this, r, o) || this; | |
i.form = n; | |
var a = new g.default(i.form).querySelector("input[name=\"" + e.FORM_INPUT_NAME + "\"]"); | |
i.input = a || i.createMetadataInput(); | |
return i; | |
} | |
(0, r.__extends)(e, t); | |
e.prototype.createMetadataInput = function () { | |
var t = document.createElement("input"); | |
t.name = e.FORM_INPUT_NAME; | |
t.type = e.FORM_INPUT_TYPE; | |
this.form.appendChild(t); | |
return t; | |
}; | |
e.prototype.doProfile = function () { | |
var t = this; | |
new w.default(this.form).addEventListener("submit", function (e) { | |
t.report(); | |
}); | |
this.setupPeriodicReportingCallback(); | |
}; | |
e.prototype.setupPeriodicReportingCallback = function () { | |
if (this.periodicReportingIdleCallback) { | |
this.periodicReportingIdleCallback.clear(); | |
this.periodicReportingIdleCallback = null; | |
} | |
var t = this; | |
this.periodicReportingIdleCallback = new b.default(function () { | |
t.report(); | |
t.setupPeriodicReportingCallback(); | |
}, e.MAXIMUM_REPORT_INTERVAL_MS, e.MINIMUM_REPORT_INTERVAL_MS); | |
}; | |
e.prototype.report = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var t; | |
return (0, r.__generator)(this, function (e) { | |
switch (e.label) { | |
case 0: | |
return [4, this.collect()]; | |
case 1: | |
t = e.sent(); | |
this.input.value = t; | |
return [2]; | |
} | |
}); | |
}); | |
}; | |
e.prototype.stop = function () { | |
var t = this; | |
if (this.periodicReportingIdleCallback) { | |
this.periodicReportingIdleCallback.clear(); | |
this.periodicReportingIdleCallback = null; | |
} | |
new w.default(this.form).removeEventListener("submit", function (e) { | |
t.report(); | |
}); | |
}; | |
e.FORM_INPUT_NAME = "metadata1"; | |
e.FORM_INPUT_TYPE = "hidden"; | |
e.MINIMUM_REPORT_INTERVAL_MS = 1000; | |
e.MAXIMUM_REPORT_INTERVAL_MS = 2500; | |
e.CAPTCHA_FIELDS = ["#ap_captcha_guess", "#auth-captcha-guess", ".fwcim-captcha-guess"]; | |
e.CAPTCHA_REFRESH_LINKS = [".fwcim-captcha-refresh", "#ap_captcha_refresh_link", "#auth-captcha-refresh-link", "#auth-refresh-audio", "#auth-switch-captcha-to-audio", "#auth-switch-captcha-to-image"]; | |
e.COLLECTORS = (0, r.__spreadArray)((0, r.__spreadArray)([], T.default.COLLECTORS, 1), [function () { | |
return new p.default({ | |
key: "start" | |
}); | |
}, function () { | |
return new E.default(); | |
}, function () { | |
return new f.default(); | |
}, function () { | |
return new _.default(); | |
}, function () { | |
return new u.default(); | |
}, function () { | |
return new o.default(); | |
}, function () { | |
return new a.default(); | |
}, function () { | |
return new i.default(); | |
}, function () { | |
return new s.default(); | |
}, function (t) { | |
return new v.default({ | |
form: t.form | |
}); | |
}, function (t) { | |
return new h.default({ | |
form: t.form, | |
cycleBuffer: 10 | |
}); | |
}, function (t) { | |
return new c.default({ | |
form: t.form | |
}); | |
}, function (t) { | |
return new l.default({ | |
form: t.form, | |
captchaFieldsSelector: e.CAPTCHA_FIELDS.join(", "), | |
captchaRefreshLinksSelector: e.CAPTCHA_REFRESH_LINKS.join(", ") | |
}); | |
}, function () { | |
return new m.default(); | |
}, function (t) { | |
var e = t.form; | |
return new d.default({ | |
form: e | |
}); | |
}, function () { | |
return new y.default({ | |
key: "end" | |
}); | |
}], 0); | |
return e; | |
}(T.default); | |
e.default = A; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = function () { | |
function t() {} | |
t.prototype.encode = function (t) { | |
var e = []; | |
for (var n = 0; n < t.length; n++) { | |
var r = t.charCodeAt(n); | |
if (r < 128) { | |
e.push(String.fromCharCode(r)); | |
} else if (r >= 128 && r < 2048) { | |
e.push(String.fromCharCode(r >> 6 | 192)); | |
e.push(String.fromCharCode(r & 63 | 128)); | |
} else { | |
e.push(String.fromCharCode(r >> 12 | 224)); | |
e.push(String.fromCharCode(r >> 6 & 63 | 128)); | |
e.push(String.fromCharCode(r & 63 | 128)); | |
} | |
} | |
return e.join(""); | |
}; | |
return t; | |
}(); | |
e.default = r; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = function () { | |
function t() {} | |
t.prototype.encode = function (e) { | |
return [t.ALPHABET.charAt(e >>> 28 & 15), t.ALPHABET.charAt(e >>> 24 & 15), t.ALPHABET.charAt(e >>> 20 & 15), t.ALPHABET.charAt(e >>> 16 & 15), t.ALPHABET.charAt(e >>> 12 & 15), t.ALPHABET.charAt(e >>> 8 & 15), t.ALPHABET.charAt(e >>> 4 & 15), t.ALPHABET.charAt(e & 15)].join(""); | |
}; | |
t.ALPHABET = "0123456789ABCDEF"; | |
return t; | |
}(); | |
e.default = r; | |
}, function (t, e) { | |
(function (t) { | |
if (!t.fetch) { | |
var e = { | |
searchParams: "URLSearchParams" in t, | |
iterable: "Symbol" in t && "iterator" in Symbol, | |
blob: "FileReader" in t && "Blob" in t && function () { | |
try { | |
new Blob(); | |
return 1; | |
} catch (t) { | |
return 0; | |
} | |
}(), | |
formData: "FormData" in t, | |
arrayBuffer: "ArrayBuffer" in t | |
}; | |
if (e.arrayBuffer) { | |
var n = ArrayBuffer.isView || function (t) { | |
return t && r.indexOf(Object.prototype.toString.call(t)) > -1; | |
}; | |
} | |
l.prototype.append = function (t, e) { | |
t = s(t); | |
e = u(e); | |
var n = this.map[t]; | |
this.map[t] = n ? n + "," + e : e; | |
}; | |
l.prototype.delete = function (t) { | |
delete this.map[s(t)]; | |
}; | |
l.prototype.get = function (t) { | |
t = s(t); | |
if (this.has(t)) { | |
return this.map[t]; | |
} else { | |
return null; | |
} | |
}; | |
l.prototype.has = function (t) { | |
return this.map.hasOwnProperty(s(t)); | |
}; | |
l.prototype.set = function (t, e) { | |
this.map[s(t)] = u(e); | |
}; | |
l.prototype.forEach = function (t, e) { | |
for (var n in this.map) { | |
if (this.map.hasOwnProperty(n)) { | |
t.call(e, this.map[n], n, this); | |
} | |
} | |
}; | |
l.prototype.keys = function () { | |
this.forEach(function (e, n) { | |
t.push(n); | |
}); | |
return c(t); | |
}; | |
l.prototype.values = function () { | |
this.forEach(function (e) { | |
t.push(e); | |
}); | |
return c(t); | |
}; | |
l.prototype.entries = function () { | |
this.forEach(function (e, n) { | |
t.push([n, e]); | |
}); | |
return c(t); | |
}; | |
if (e.iterable) { | |
l.prototype[Symbol.iterator] = l.prototype.entries; | |
} | |
var i = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"]; | |
m.prototype.clone = function () { | |
return new m(this, { | |
body: this._bodyInit | |
}); | |
}; | |
_.call(m.prototype); | |
_.call(v.prototype); | |
v.prototype.clone = function () { | |
return new v(this._bodyInit, { | |
status: this.status, | |
statusText: this.statusText, | |
headers: new l(this.headers), | |
url: this.url | |
}); | |
}; | |
v.error = function () { | |
var t = new v(null, { | |
status: 0, | |
statusText: "" | |
}); | |
t.type = "error"; | |
return t; | |
}; | |
var a = [301, 302, 303, 307, 308]; | |
v.redirect = function (t, e) { | |
if (a.indexOf(e) === -1) { | |
throw new RangeError("Invalid status code"); | |
} | |
return new v(null, { | |
status: e, | |
headers: { | |
location: t | |
} | |
}); | |
}; | |
t.Headers = l; | |
t.Request = m; | |
t.Response = v; | |
t.fetch = function (t, n) { | |
return new Promise(function (r, o) { | |
var i = new m(t, n); | |
var a = new XMLHttpRequest(); | |
a.onload = function () { | |
var t; | |
var e; | |
var n = { | |
status: a.status, | |
statusText: a.statusText, | |
headers: (t = a.getAllResponseHeaders() || "", e = new l(), t.replace(/\r?\n[\t ]+/g, " ").split(/\r?\n/).forEach(function (t) { | |
var n = t.split(":"); | |
var r = n.shift().trim(); | |
if (r) { | |
var o = n.join(":").trim(); | |
e.append(r, o); | |
} | |
}), e) | |
}; | |
n.url = "responseURL" in a ? a.responseURL : n.headers.get("X-Request-URL"); | |
var o = "response" in a ? a.response : a.responseText; | |
r(new v(o, n)); | |
}; | |
a.onerror = function () { | |
o(new TypeError("Network request failed")); | |
}; | |
a.ontimeout = function () { | |
o(new TypeError("Network request failed")); | |
}; | |
a.open(i.method, i.url, 1); | |
if (i.credentials === "include") { | |
a.withCredentials = 1; | |
} else if (i.credentials === "omit") { | |
a.withCredentials = 0; | |
} | |
if ("responseType" in a && e.blob) { | |
a.responseType = "blob"; | |
} | |
i.headers.forEach(function (t, e) { | |
a.setRequestHeader(e, t); | |
}); | |
a.send(void 0 === i._bodyInit ? null : i._bodyInit); | |
}); | |
}; | |
t.fetch.polyfill = 1; | |
} | |
function s(t) { | |
if (typeof t != "string") { | |
t = String(t); | |
} | |
if (/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t)) { | |
throw new TypeError("Invalid character in header field name"); | |
} | |
return t.toLowerCase(); | |
} | |
function u(t) { | |
if (typeof t != "string") { | |
t = String(t); | |
} | |
return t; | |
} | |
function c(t) { | |
var n = { | |
next: function () { | |
var e = t.shift(); | |
return { | |
done: e === undefined, | |
value: e | |
}; | |
} | |
}; | |
if (e.iterable) { | |
n[Symbol.iterator] = function () { | |
return n; | |
}; | |
} | |
return n; | |
} | |
function l(t) { | |
this.map = {}; | |
if (t instanceof l) { | |
t.forEach(function (t, e) { | |
this.append(e, t); | |
}, this); | |
} else if (Array.isArray(t)) { | |
t.forEach(function (t) { | |
this.append(t[0], t[1]); | |
}, this); | |
} else if (t) { | |
Object.getOwnPropertyNames(t).forEach(function (e) { | |
this.append(e, t[e]); | |
}, this); | |
} | |
} | |
function f(t) { | |
if (t.bodyUsed) { | |
return Promise.reject(new TypeError("Already read")); | |
} | |
t.bodyUsed = 1; | |
} | |
function h(t) { | |
return new Promise(function (e, n) { | |
t.onload = function () { | |
e(t.result); | |
}; | |
t.onerror = function () { | |
n(t.error); | |
}; | |
}); | |
} | |
function d(t) { | |
var e = new FileReader(); | |
var n = h(e); | |
e.readAsArrayBuffer(t); | |
return n; | |
} | |
function p(t) { | |
if (t.slice) { | |
return t.slice(0); | |
} | |
var e = new Uint8Array(t.byteLength); | |
e.set(new Uint8Array(t)); | |
return e.buffer; | |
} | |
function _() { | |
this.bodyUsed = 0; | |
this._initBody = function (t) { | |
this._bodyInit = t; | |
if (t) { | |
if (typeof t == "string") { | |
this._bodyText = t; | |
} else if (e.blob && Blob.prototype.isPrototypeOf(t)) { | |
this._bodyBlob = t; | |
} else if (e.formData && FormData.prototype.isPrototypeOf(t)) { | |
this._bodyFormData = t; | |
} else if (e.searchParams && URLSearchParams.prototype.isPrototypeOf(t)) { | |
this._bodyText = t.toString(); | |
} else if (e.arrayBuffer && e.blob && o(t)) { | |
this._bodyArrayBuffer = p(t.buffer); | |
this._bodyInit = new Blob([this._bodyArrayBuffer]); | |
} else { | |
if (!e.arrayBuffer || !ArrayBuffer.prototype.isPrototypeOf(t) && !n(t)) { | |
throw new Error("unsupported BodyInit type"); | |
} | |
this._bodyArrayBuffer = p(t); | |
} | |
} else { | |
this._bodyText = ""; | |
} | |
if (!this.headers.get("content-type")) { | |
if (typeof t == "string") { | |
this.headers.set("content-type", "text/plain;charset=UTF-8"); | |
} else if (this._bodyBlob && this._bodyBlob.type) { | |
this.headers.set("content-type", this._bodyBlob.type); | |
} else if (e.searchParams && URLSearchParams.prototype.isPrototypeOf(t)) { | |
this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"); | |
} | |
} | |
}; | |
if (e.blob) { | |
this.blob = function () { | |
var t = f(this); | |
if (t) { | |
return t; | |
} | |
if (this._bodyBlob) { | |
return Promise.resolve(this._bodyBlob); | |
} | |
if (this._bodyArrayBuffer) { | |
return Promise.resolve(new Blob([this._bodyArrayBuffer])); | |
} | |
if (this._bodyFormData) { | |
throw new Error("could not read FormData body as blob"); | |
} | |
return Promise.resolve(new Blob([this._bodyText])); | |
}; | |
this.arrayBuffer = function () { | |
if (this._bodyArrayBuffer) { | |
return f(this) || Promise.resolve(this._bodyArrayBuffer); | |
} else { | |
return this.blob().then(d); | |
} | |
}; | |
} | |
this.text = function () { | |
var t; | |
var e; | |
var n; | |
var r = f(this); | |
if (r) { | |
return r; | |
} | |
if (this._bodyBlob) { | |
t = this._bodyBlob; | |
n = h(e = new FileReader()); | |
e.readAsText(t); | |
return n; | |
} | |
if (this._bodyArrayBuffer) { | |
return Promise.resolve(function (t) { | |
for (var e = new Uint8Array(t), n = new Array(e.length), r = 0; r < e.length; r++) { | |
n[r] = String.fromCharCode(e[r]); | |
} | |
return n.join(""); | |
}(this._bodyArrayBuffer)); | |
} | |
if (this._bodyFormData) { | |
throw new Error("could not read FormData body as text"); | |
} | |
return Promise.resolve(this._bodyText); | |
}; | |
if (e.formData) { | |
this.formData = function () { | |
return this.text().then(y); | |
}; | |
} | |
this.json = function () { | |
return this.text().then(JSON.parse); | |
}; | |
return this; | |
} | |
function m(t, e) { | |
var n; | |
var r; | |
var o = (e = e || {}).body; | |
if (t instanceof m) { | |
if (t.bodyUsed) { | |
throw new TypeError("Already read"); | |
} | |
this.url = t.url; | |
this.credentials = t.credentials; | |
if (!e.headers) { | |
this.headers = new l(t.headers); | |
} | |
this.method = t.method; | |
this.mode = t.mode; | |
if (!o && t._bodyInit != null) { | |
o = t._bodyInit; | |
t.bodyUsed = 1; | |
} | |
} else { | |
this.url = String(t); | |
} | |
this.credentials = e.credentials || this.credentials || "omit"; | |
if (!!e.headers || !this.headers) { | |
this.headers = new l(e.headers); | |
} | |
this.method = (r = (n = e.method || this.method || "GET").toUpperCase(), i.indexOf(r) > -1 ? r : n); | |
this.mode = e.mode || this.mode || null; | |
this.referrer = null; | |
if ((this.method === "GET" || this.method === "HEAD") && o) { | |
throw new TypeError("Body not allowed for GET or HEAD requests"); | |
} | |
this._initBody(o); | |
} | |
function y(t) { | |
var e = new FormData(); | |
t.trim().split("&").forEach(function (t) { | |
if (t) { | |
var n = t.split("="); | |
var r = n.shift().replace(/\+/g, " "); | |
var o = n.join("=").replace(/\+/g, " "); | |
e.append(decodeURIComponent(r), decodeURIComponent(o)); | |
} | |
}); | |
return e; | |
} | |
function v(t, e) { | |
e ||= {}; | |
this.type = "default"; | |
this.status = e.status === undefined ? 200 : e.status; | |
this.ok = this.status >= 200 && this.status < 300; | |
this.statusText = "statusText" in e ? e.statusText : "OK"; | |
this.headers = new l(e.headers); | |
this.url = e.url || ""; | |
this._initBody(t); | |
} | |
})(typeof self != "undefined" ? self : this); | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = function () { | |
function t(t, e) { | |
this.fwcim = t; | |
this.commands = e; | |
} | |
t.prototype.run = function () { | |
for (var t = 0; t < this.commands.length; t++) { | |
var e = this.commands[t]; | |
var n = e[0]; | |
if (typeof this.fwcim[n] == "function") { | |
this.fwcim[n].apply(this.fwcim, e.slice(1)); | |
} | |
} | |
}; | |
return t; | |
}(); | |
e.default = r; | |
}, function (t, e) { | |
var n; | |
var r; | |
var o; | |
var i = t.exports = {}; | |
function a() { | |
throw new Error("setTimeout has not been defined"); | |
} | |
function s() { | |
throw new Error("clearTimeout has not been defined"); | |
} | |
function u(t) { | |
if (n === setTimeout) { | |
return setTimeout(t, 0); | |
} | |
if ((n === a || !n) && setTimeout) { | |
n = setTimeout; | |
return setTimeout(t, 0); | |
} | |
try { | |
return n(t, 0); | |
} catch (e) { | |
try { | |
return n.call(null, t, 0); | |
} catch (e) { | |
return n.call(this, t, 0); | |
} | |
} | |
} | |
(function () { | |
try { | |
n = typeof setTimeout == "function" ? setTimeout : a; | |
} catch (t) { | |
n = a; | |
} | |
try { | |
r = typeof clearTimeout == "function" ? clearTimeout : s; | |
} catch (t) { | |
r = s; | |
} | |
})(); | |
var c = []; | |
var l = 0; | |
var f = -1; | |
function h() { | |
if (l && o) { | |
l = 0; | |
if (o.length) { | |
c = o.concat(c); | |
} else { | |
f = -1; | |
} | |
if (c.length) { | |
d(); | |
} | |
} | |
} | |
function d() { | |
if (!l) { | |
var t = u(h); | |
l = 1; | |
for (var e = c.length; e;) { | |
o = c; | |
c = []; | |
while (++f < e) { | |
if (o) { | |
o[f].run(); | |
} | |
} | |
f = -1; | |
e = c.length; | |
} | |
o = null; | |
l = 0; | |
(function (t) { | |
if (r === clearTimeout) { | |
return clearTimeout(t); | |
} | |
if ((r === s || !r) && clearTimeout) { | |
r = clearTimeout; | |
return clearTimeout(t); | |
} | |
try { | |
return r(t); | |
} catch (e) { | |
try { | |
return r.call(null, t); | |
} catch (e) { | |
return r.call(this, t); | |
} | |
} | |
})(t); | |
} | |
} | |
function p(t, e) { | |
this.fun = t; | |
this.array = e; | |
} | |
function _() {} | |
i.nextTick = function (t) { | |
var e = new Array(arguments.length - 1); | |
if (arguments.length > 1) { | |
for (var n = 1; n < arguments.length; n++) { | |
e[n - 1] = arguments[n]; | |
} | |
} | |
c.push(new p(t, e)); | |
if (c.length === 1 && !l) { | |
u(d); | |
} | |
}; | |
p.prototype.run = function () { | |
this.fun.apply(null, this.array); | |
}; | |
i.title = "browser"; | |
i.browser = 1; | |
i.env = {}; | |
i.argv = []; | |
i.version = ""; | |
i.versions = {}; | |
i.on = _; | |
i.addListener = _; | |
i.once = _; | |
i.off = _; | |
i.removeListener = _; | |
i.removeAllListeners = _; | |
i.emit = _; | |
i.prependListener = _; | |
i.prependOnceListener = _; | |
i.listeners = function (t) { | |
return []; | |
}; | |
i.binding = function (t) { | |
throw new Error("process.binding is not supported"); | |
}; | |
i.cwd = function () { | |
return "/"; | |
}; | |
i.chdir = function (t) { | |
throw new Error("process.chdir is not supported"); | |
}; | |
i.umask = function () { | |
return 0; | |
}; | |
}, function (module, exports, __webpack_require__) { | |
(function (process, global) { | |
var __WEBPACK_AMD_DEFINE_RESULT__; | |
(function () { | |
var ERROR = "input is invalid type"; | |
var WINDOW = typeof window == "object"; | |
var root = WINDOW ? window : {}; | |
if (root.JS_SHA256_NO_WINDOW) { | |
WINDOW = 0; | |
} | |
var WEB_WORKER = !WINDOW && typeof self == "object"; | |
var NODE_JS = !root.JS_SHA256_NO_NODE_JS && typeof process == "object" && process.versions && process.versions.node; | |
if (NODE_JS) { | |
root = global; | |
} else if (WEB_WORKER) { | |
root = self; | |
} | |
var COMMON_JS = !root.JS_SHA256_NO_COMMON_JS && typeof module == "object" && module.exports; | |
var AMD = __webpack_require__(7); | |
var ARRAY_BUFFER = !root.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer != "undefined"; | |
var HEX_CHARS = "0123456789abcdef".split(""); | |
var EXTRA = [-2147483648, 8388608, 32768, 128]; | |
var SHIFT = [24, 16, 8, 0]; | |
var K = [1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298]; | |
var OUTPUT_TYPES = ["hex", "array", "digest", "arrayBuffer"]; | |
var blocks = []; | |
function createOutputMethod(t, e) { | |
return function (n) { | |
return new Sha256(e, 1).update(n)[t](); | |
}; | |
} | |
function createMethod(t) { | |
var e = createOutputMethod("hex", t); | |
if (NODE_JS) { | |
e = nodeWrap(e, t); | |
} | |
e.create = function () { | |
return new Sha256(t); | |
}; | |
e.update = function (t) { | |
return e.create().update(t); | |
}; | |
for (var n = 0; n < OUTPUT_TYPES.length; ++n) { | |
var r = OUTPUT_TYPES[n]; | |
e[r] = createOutputMethod(r, t); | |
} | |
return e; | |
} | |
function nodeWrap(method, is224) { | |
var crypto = eval("require('crypto')"); | |
var Buffer = eval("require('buffer').Buffer"); | |
var algorithm = is224 ? "sha224" : "sha256"; | |
function nodeMethod(t) { | |
if (typeof t == "string") { | |
return crypto.createHash(algorithm).update(t, "utf8").digest("hex"); | |
} | |
if (t === null || t === undefined) { | |
throw new Error(ERROR); | |
} | |
if (t.constructor === ArrayBuffer) { | |
t = new Uint8Array(t); | |
} | |
if (Array.isArray(t) || ArrayBuffer.isView(t) || t.constructor === Buffer) { | |
return crypto.createHash(algorithm).update(new Buffer(t)).digest("hex"); | |
} else { | |
return method(t); | |
} | |
} | |
return nodeMethod; | |
} | |
function createHmacOutputMethod(t, e) { | |
return function (n, r) { | |
return new HmacSha256(n, e, 1).update(r)[t](); | |
}; | |
} | |
function createHmacMethod(t) { | |
var e = createHmacOutputMethod("hex", t); | |
e.create = function (e) { | |
return new HmacSha256(e, t); | |
}; | |
e.update = function (t, n) { | |
return e.create(t).update(n); | |
}; | |
for (var n = 0; n < OUTPUT_TYPES.length; ++n) { | |
var r = OUTPUT_TYPES[n]; | |
e[r] = createHmacOutputMethod(r, t); | |
} | |
return e; | |
} | |
function Sha256(t, e) { | |
if (e) { | |
blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; | |
this.blocks = blocks; | |
} else { | |
this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; | |
} | |
if (t) { | |
this.h0 = 3238371032; | |
this.h1 = 914150663; | |
this.h2 = 812702999; | |
this.h3 = 4144912697; | |
this.h4 = 4290775857; | |
this.h5 = 1750603025; | |
this.h6 = 1694076839; | |
this.h7 = 3204075428; | |
} else { | |
this.h0 = 1779033703; | |
this.h1 = 3144134277; | |
this.h2 = 1013904242; | |
this.h3 = 2773480762; | |
this.h4 = 1359893119; | |
this.h5 = 2600822924; | |
this.h6 = 528734635; | |
this.h7 = 1541459225; | |
} | |
this.block = this.start = this.bytes = this.hBytes = 0; | |
this.finalized = this.hashed = 0; | |
this.first = 1; | |
this.is224 = t; | |
} | |
function HmacSha256(t, e, n) { | |
var r; | |
var o = typeof t; | |
if (o === "string") { | |
var i; | |
var a = []; | |
var s = t.length; | |
var u = 0; | |
for (r = 0; r < s; ++r) { | |
if ((i = t.charCodeAt(r)) < 128) { | |
a[u++] = i; | |
} else if (i < 2048) { | |
a[u++] = i >> 6 | 192; | |
a[u++] = i & 63 | 128; | |
} else if (i < 55296 || i >= 57344) { | |
a[u++] = i >> 12 | 224; | |
a[u++] = i >> 6 & 63 | 128; | |
a[u++] = i & 63 | 128; | |
} else { | |
i = 65536 + ((i & 1023) << 10 | t.charCodeAt(++r) & 1023); | |
a[u++] = i >> 18 | 240; | |
a[u++] = i >> 12 & 63 | 128; | |
a[u++] = i >> 6 & 63 | 128; | |
a[u++] = i & 63 | 128; | |
} | |
} | |
t = a; | |
} else { | |
if (o !== "object") { | |
throw new Error(ERROR); | |
} | |
if (t === null) { | |
throw new Error(ERROR); | |
} | |
if (ARRAY_BUFFER && t.constructor === ArrayBuffer) { | |
t = new Uint8Array(t); | |
} else if (!Array.isArray(t) && (!ARRAY_BUFFER || !ArrayBuffer.isView(t))) { | |
throw new Error(ERROR); | |
} | |
} | |
if (t.length > 64) { | |
t = new Sha256(e, 1).update(t).array(); | |
} | |
var c = []; | |
var l = []; | |
for (r = 0; r < 64; ++r) { | |
var f = t[r] || 0; | |
c[r] = f ^ 92; | |
l[r] = f ^ 54; | |
} | |
Sha256.call(this, e, n); | |
this.update(l); | |
this.oKeyPad = c; | |
this.inner = 1; | |
this.sharedMemory = n; | |
} | |
if (!!root.JS_SHA256_NO_NODE_JS || !Array.isArray) { | |
Array.isArray = function (t) { | |
return Object.prototype.toString.call(t) === "[object Array]"; | |
}; | |
} | |
if (!!ARRAY_BUFFER && (!!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView)) { | |
ArrayBuffer.isView = function (t) { | |
return typeof t == "object" && t.buffer && t.buffer.constructor === ArrayBuffer; | |
}; | |
} | |
Sha256.prototype.update = function (t) { | |
if (!this.finalized) { | |
var e; | |
var n; | |
var r; | |
var o = typeof t; | |
if (o !== "string") { | |
if (o !== "object") { | |
throw new Error(ERROR); | |
} | |
if (t === null) { | |
throw new Error(ERROR); | |
} | |
if (ARRAY_BUFFER && t.constructor === ArrayBuffer) { | |
t = new Uint8Array(t); | |
} else if (!Array.isArray(t) && (!ARRAY_BUFFER || !ArrayBuffer.isView(t))) { | |
throw new Error(ERROR); | |
} | |
e = 1; | |
} | |
for (var i = 0, a = t.length, s = this.blocks; i < a;) { | |
if (this.hashed) { | |
this.hashed = 0; | |
s[0] = this.block; | |
s[16] = s[1] = s[2] = s[3] = s[4] = s[5] = s[6] = s[7] = s[8] = s[9] = s[10] = s[11] = s[12] = s[13] = s[14] = s[15] = 0; | |
} | |
if (e) { | |
for (r = this.start; i < a && r < 64; ++i) { | |
s[r >> 2] |= t[i] << SHIFT[r++ & 3]; | |
} | |
} else { | |
for (r = this.start; i < a && r < 64; ++i) { | |
if ((n = t.charCodeAt(i)) < 128) { | |
s[r >> 2] |= n << SHIFT[r++ & 3]; | |
} else if (n < 2048) { | |
s[r >> 2] |= (n >> 6 | 192) << SHIFT[r++ & 3]; | |
s[r >> 2] |= (n & 63 | 128) << SHIFT[r++ & 3]; | |
} else if (n < 55296 || n >= 57344) { | |
s[r >> 2] |= (n >> 12 | 224) << SHIFT[r++ & 3]; | |
s[r >> 2] |= (n >> 6 & 63 | 128) << SHIFT[r++ & 3]; | |
s[r >> 2] |= (n & 63 | 128) << SHIFT[r++ & 3]; | |
} else { | |
n = 65536 + ((n & 1023) << 10 | t.charCodeAt(++i) & 1023); | |
s[r >> 2] |= (n >> 18 | 240) << SHIFT[r++ & 3]; | |
s[r >> 2] |= (n >> 12 & 63 | 128) << SHIFT[r++ & 3]; | |
s[r >> 2] |= (n >> 6 & 63 | 128) << SHIFT[r++ & 3]; | |
s[r >> 2] |= (n & 63 | 128) << SHIFT[r++ & 3]; | |
} | |
} | |
} | |
this.lastByteIndex = r; | |
this.bytes += r - this.start; | |
if (r >= 64) { | |
this.block = s[16]; | |
this.start = r - 64; | |
this.hash(); | |
this.hashed = 1; | |
} else { | |
this.start = r; | |
} | |
} | |
if (this.bytes > 4294967295) { | |
this.hBytes += this.bytes / 4294967296 | 0; | |
this.bytes = this.bytes % 4294967296; | |
} | |
return this; | |
} | |
}; | |
Sha256.prototype.finalize = function () { | |
if (!this.finalized) { | |
this.finalized = 1; | |
var t = this.blocks; | |
var e = this.lastByteIndex; | |
t[16] = this.block; | |
t[e >> 2] |= EXTRA[e & 3]; | |
this.block = t[16]; | |
if (e >= 56) { | |
if (!this.hashed) { | |
this.hash(); | |
} | |
t[0] = this.block; | |
t[16] = t[1] = t[2] = t[3] = t[4] = t[5] = t[6] = t[7] = t[8] = t[9] = t[10] = t[11] = t[12] = t[13] = t[14] = t[15] = 0; | |
} | |
t[14] = this.hBytes << 3 | this.bytes >>> 29; | |
t[15] = this.bytes << 3; | |
this.hash(); | |
} | |
}; | |
Sha256.prototype.hash = function () { | |
var t; | |
var e; | |
var n; | |
var r; | |
var o; | |
var i; | |
var a; | |
var s; | |
var u; | |
var c = this.h0; | |
var l = this.h1; | |
var f = this.h2; | |
var h = this.h3; | |
var d = this.h4; | |
var p = this.h5; | |
var _ = this.h6; | |
var m = this.h7; | |
var y = this.blocks; | |
for (t = 16; t < 64; ++t) { | |
e = ((o = y[t - 15]) >>> 7 | o << 25) ^ (o >>> 18 | o << 14) ^ o >>> 3; | |
n = ((o = y[t - 2]) >>> 17 | o << 15) ^ (o >>> 19 | o << 13) ^ o >>> 10; | |
y[t] = y[t - 16] + e + y[t - 7] + n | 0; | |
} | |
u = l & f; | |
t = 0; | |
for (; t < 64; t += 4) { | |
if (this.first) { | |
if (this.is224) { | |
i = 300032; | |
m = (o = y[0] - 1413257819) - 150054599 | 0; | |
h = o + 24177077 | 0; | |
} else { | |
i = 704751109; | |
m = (o = y[0] - 210244248) - 1521486534 | 0; | |
h = o + 143694565 | 0; | |
} | |
this.first = 0; | |
} else { | |
e = (c >>> 2 | c << 30) ^ (c >>> 13 | c << 19) ^ (c >>> 22 | c << 10); | |
r = (i = c & l) ^ c & f ^ u; | |
m = h + (o = m + (n = (d >>> 6 | d << 26) ^ (d >>> 11 | d << 21) ^ (d >>> 25 | d << 7)) + (d & p ^ ~d & _) + K[t] + y[t]) | 0; | |
h = o + (e + r) | 0; | |
} | |
e = (h >>> 2 | h << 30) ^ (h >>> 13 | h << 19) ^ (h >>> 22 | h << 10); | |
r = (a = h & c) ^ h & l ^ i; | |
_ = f + (o = _ + (n = (m >>> 6 | m << 26) ^ (m >>> 11 | m << 21) ^ (m >>> 25 | m << 7)) + (m & d ^ ~m & p) + K[t + 1] + y[t + 1]) | 0; | |
e = ((f = o + (e + r) | 0) >>> 2 | f << 30) ^ (f >>> 13 | f << 19) ^ (f >>> 22 | f << 10); | |
r = (s = f & h) ^ f & c ^ a; | |
p = l + (o = p + (n = (_ >>> 6 | _ << 26) ^ (_ >>> 11 | _ << 21) ^ (_ >>> 25 | _ << 7)) + (_ & m ^ ~_ & d) + K[t + 2] + y[t + 2]) | 0; | |
e = ((l = o + (e + r) | 0) >>> 2 | l << 30) ^ (l >>> 13 | l << 19) ^ (l >>> 22 | l << 10); | |
r = (u = l & f) ^ l & h ^ s; | |
d = c + (o = d + (n = (p >>> 6 | p << 26) ^ (p >>> 11 | p << 21) ^ (p >>> 25 | p << 7)) + (p & _ ^ ~p & m) + K[t + 3] + y[t + 3]) | 0; | |
c = o + (e + r) | 0; | |
} | |
this.h0 = this.h0 + c | 0; | |
this.h1 = this.h1 + l | 0; | |
this.h2 = this.h2 + f | 0; | |
this.h3 = this.h3 + h | 0; | |
this.h4 = this.h4 + d | 0; | |
this.h5 = this.h5 + p | 0; | |
this.h6 = this.h6 + _ | 0; | |
this.h7 = this.h7 + m | 0; | |
}; | |
Sha256.prototype.hex = function () { | |
this.finalize(); | |
var t = this.h0; | |
var e = this.h1; | |
var n = this.h2; | |
var r = this.h3; | |
var o = this.h4; | |
var i = this.h5; | |
var a = this.h6; | |
var s = this.h7; | |
var u = HEX_CHARS[t >> 28 & 15] + HEX_CHARS[t >> 24 & 15] + HEX_CHARS[t >> 20 & 15] + HEX_CHARS[t >> 16 & 15] + HEX_CHARS[t >> 12 & 15] + HEX_CHARS[t >> 8 & 15] + HEX_CHARS[t >> 4 & 15] + HEX_CHARS[t & 15] + HEX_CHARS[e >> 28 & 15] + HEX_CHARS[e >> 24 & 15] + HEX_CHARS[e >> 20 & 15] + HEX_CHARS[e >> 16 & 15] + HEX_CHARS[e >> 12 & 15] + HEX_CHARS[e >> 8 & 15] + HEX_CHARS[e >> 4 & 15] + HEX_CHARS[e & 15] + HEX_CHARS[n >> 28 & 15] + HEX_CHARS[n >> 24 & 15] + HEX_CHARS[n >> 20 & 15] + HEX_CHARS[n >> 16 & 15] + HEX_CHARS[n >> 12 & 15] + HEX_CHARS[n >> 8 & 15] + HEX_CHARS[n >> 4 & 15] + HEX_CHARS[n & 15] + HEX_CHARS[r >> 28 & 15] + HEX_CHARS[r >> 24 & 15] + HEX_CHARS[r >> 20 & 15] + HEX_CHARS[r >> 16 & 15] + HEX_CHARS[r >> 12 & 15] + HEX_CHARS[r >> 8 & 15] + HEX_CHARS[r >> 4 & 15] + HEX_CHARS[r & 15] + HEX_CHARS[o >> 28 & 15] + HEX_CHARS[o >> 24 & 15] + HEX_CHARS[o >> 20 & 15] + HEX_CHARS[o >> 16 & 15] + HEX_CHARS[o >> 12 & 15] + HEX_CHARS[o >> 8 & 15] + HEX_CHARS[o >> 4 & 15] + HEX_CHARS[o & 15] + HEX_CHARS[i >> 28 & 15] + HEX_CHARS[i >> 24 & 15] + HEX_CHARS[i >> 20 & 15] + HEX_CHARS[i >> 16 & 15] + HEX_CHARS[i >> 12 & 15] + HEX_CHARS[i >> 8 & 15] + HEX_CHARS[i >> 4 & 15] + HEX_CHARS[i & 15] + HEX_CHARS[a >> 28 & 15] + HEX_CHARS[a >> 24 & 15] + HEX_CHARS[a >> 20 & 15] + HEX_CHARS[a >> 16 & 15] + HEX_CHARS[a >> 12 & 15] + HEX_CHARS[a >> 8 & 15] + HEX_CHARS[a >> 4 & 15] + HEX_CHARS[a & 15]; | |
if (!this.is224) { | |
u += HEX_CHARS[s >> 28 & 15] + HEX_CHARS[s >> 24 & 15] + HEX_CHARS[s >> 20 & 15] + HEX_CHARS[s >> 16 & 15] + HEX_CHARS[s >> 12 & 15] + HEX_CHARS[s >> 8 & 15] + HEX_CHARS[s >> 4 & 15] + HEX_CHARS[s & 15]; | |
} | |
return u; | |
}; | |
Sha256.prototype.toString = Sha256.prototype.hex; | |
Sha256.prototype.digest = function () { | |
this.finalize(); | |
var t = this.h0; | |
var e = this.h1; | |
var n = this.h2; | |
var r = this.h3; | |
var o = this.h4; | |
var i = this.h5; | |
var a = this.h6; | |
var s = this.h7; | |
var u = [t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, t & 255, e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, e & 255, n >> 24 & 255, n >> 16 & 255, n >> 8 & 255, n & 255, r >> 24 & 255, r >> 16 & 255, r >> 8 & 255, r & 255, o >> 24 & 255, o >> 16 & 255, o >> 8 & 255, o & 255, i >> 24 & 255, i >> 16 & 255, i >> 8 & 255, i & 255, a >> 24 & 255, a >> 16 & 255, a >> 8 & 255, a & 255]; | |
if (!this.is224) { | |
u.push(s >> 24 & 255, s >> 16 & 255, s >> 8 & 255, s & 255); | |
} | |
return u; | |
}; | |
Sha256.prototype.array = Sha256.prototype.digest; | |
Sha256.prototype.arrayBuffer = function () { | |
this.finalize(); | |
var t = new ArrayBuffer(this.is224 ? 28 : 32); | |
var e = new DataView(t); | |
e.setUint32(0, this.h0); | |
e.setUint32(4, this.h1); | |
e.setUint32(8, this.h2); | |
e.setUint32(12, this.h3); | |
e.setUint32(16, this.h4); | |
e.setUint32(20, this.h5); | |
e.setUint32(24, this.h6); | |
if (!this.is224) { | |
e.setUint32(28, this.h7); | |
} | |
return t; | |
}; | |
HmacSha256.prototype = new Sha256(); | |
HmacSha256.prototype.finalize = function () { | |
Sha256.prototype.finalize.call(this); | |
if (this.inner) { | |
this.inner = 0; | |
var t = this.array(); | |
Sha256.call(this, this.is224, this.sharedMemory); | |
this.update(this.oKeyPad); | |
this.update(t); | |
Sha256.prototype.finalize.call(this); | |
} | |
}; | |
var exports = createMethod(); | |
exports.sha256 = exports; | |
exports.sha224 = createMethod(1); | |
exports.sha256.hmac = createHmacMethod(); | |
exports.sha224.hmac = createHmacMethod(1); | |
if (COMMON_JS) { | |
module.exports = exports; | |
} else { | |
root.sha256 = exports.sha256; | |
root.sha224 = exports.sha224; | |
if (AMD) { | |
__WEBPACK_AMD_DEFINE_RESULT__ = function () { | |
return exports; | |
}.call(exports, __webpack_require__, exports, module); | |
if (__WEBPACK_AMD_DEFINE_RESULT__ !== undefined) { | |
module.exports = __WEBPACK_AMD_DEFINE_RESULT__; | |
} | |
} | |
} | |
})(); | |
}).call(this, __webpack_require__(32), __webpack_require__(4)); | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(33); | |
var o = function () { | |
function t(t) { | |
var e = this; | |
this.clientEndpoint = t; | |
var n = ["cbc62794911ff31b", "4aba82f7eb6c1f46", "b923405ba2c6a80a", "89df7e034ffe30b7", "20253cd8db8e4994", "2b12242f306cde1c", "8842c34f79f78667", "f77b4f6064c22577", "7764735c5d4d88ae", "93e4584d037704de", "961281ce5eace239", "8c06d4de1d737046", "a49016df6df8e729", "501a9f0d2cc8b375", "85d02de839b3f84f", "20b7d7fc9a51d933", "9e121458930b4b27", "3faa3827025ab346", "a6a29093d24484ef", "16f64ec25eae4431", "d5ba5dbdf6f9cd10", "02cd8bbf69bb5ae8", "ad2a542c84c7060f", "d0348826f00b8dab", "72eecef1af01ae02", "c06efa193037385e", "209a0e2b3f1bbf48", "41887e792edfd3fe", "16b974583155fdcb", "7324972c80ae76f4", "e32ac33fa53a3db6", "fa22ea9c46f62417", "6f6f2408523c88c6", "0c27ccf617e4649b", "b876f6f3af462afc"]; | |
var o = 0; | |
this.injectClient = function (n) { | |
if (!o && e.shouldInject(n)) { | |
var r = document.createElement("script"); | |
r.src = t; | |
r.type = "text/javascript"; | |
document.body.appendChild(r); | |
o = 1; | |
} | |
}; | |
this.shouldInject = function (t) { | |
if (t == null || t == "") { | |
return 0; | |
} | |
var e = t.split(".:")[0].split(":")[0].split("."); | |
if (e.pop() == "") { | |
e.pop(); | |
} | |
var o = e.pop(); | |
if (o == null) { | |
return 0; | |
} | |
var i = e.pop(); | |
var a = [o]; | |
if (o.length <= 4 && i != null) { | |
a.push(i); | |
} | |
a = a.map(function (t) { | |
return (0, r.sha256)(t.toLowerCase()).substring(0, 16); | |
}); | |
for (var s = 0, u = n; s < u.length; s++) { | |
var c = u[s]; | |
if (a.indexOf(c) !== -1) { | |
return 0; | |
} | |
} | |
return 1; | |
}; | |
} | |
t.prototype.fetch = function (t) { | |
try { | |
this.injectClient(t); | |
} catch (t) {} | |
}; | |
return t; | |
}(); | |
e.default = o; | |
}, function (t, e, n) { | |
(function (t) { | |
(function (t) { | |
if (!t.setImmediate) { | |
var e; | |
var n; | |
var r; | |
var o; | |
var i; | |
var a = 1; | |
var s = {}; | |
var u = 0; | |
var c = t.document; | |
var l = Object.getPrototypeOf && Object.getPrototypeOf(t); | |
l = l && l.setTimeout ? l : t; | |
if ({}.toString.call(t.process) === "[object process]") { | |
e = function (t) { | |
kt.nextTick(function () { | |
h(t); | |
}); | |
}; | |
} else if (function () { | |
if (t.postMessage && !t.importScripts) { | |
var e = 1; | |
var n = t.onmessage; | |
t.onmessage = function () { | |
e = 0; | |
}; | |
t.postMessage("", "*"); | |
t.onmessage = n; | |
return e; | |
} | |
}()) { | |
o = "setImmediate$" + Math.random() + "$"; | |
i = function (e) { | |
if (e.source === t && typeof e.data == "string" && e.data.indexOf(o) === 0) { | |
h(+e.data.slice(o.length)); | |
} | |
}; | |
if (t.addEventListener) { | |
t.addEventListener("message", i, 0); | |
} else { | |
t.attachEvent("onmessage", i); | |
} | |
e = function (e) { | |
t.postMessage(o + e, "*"); | |
}; | |
} else if (t.MessageChannel) { | |
(r = new MessageChannel()).port1.onmessage = function (t) { | |
h(t.data); | |
}; | |
e = function (t) { | |
r.port2.postMessage(t); | |
}; | |
} else if (c && "onreadystatechange" in c.createElement("script")) { | |
n = c.documentElement; | |
e = function (t) { | |
var e = c.createElement("script"); | |
e.onreadystatechange = function () { | |
h(t); | |
e.onreadystatechange = null; | |
n.removeChild(e); | |
e = null; | |
}; | |
n.appendChild(e); | |
}; | |
} else { | |
e = function (t) { | |
setTimeout(h, 0, t); | |
}; | |
} | |
l.setImmediate = function (t) { | |
if (typeof t != "function") { | |
t = new Function("" + t); | |
} | |
for (var n = new Array(arguments.length - 1), r = 0; r < n.length; r++) { | |
n[r] = arguments[r + 1]; | |
} | |
var o = { | |
callback: t, | |
args: n | |
}; | |
s[a] = o; | |
e(a); | |
return a++; | |
}; | |
l.clearImmediate = f; | |
} | |
function f(t) { | |
delete s[t]; | |
} | |
function h(t) { | |
if (u) { | |
setTimeout(h, 0, t); | |
} else { | |
var e = s[t]; | |
if (e) { | |
u = 1; | |
try { | |
(function (t) { | |
var e = t.callback; | |
var n = t.args; | |
switch (n.length) { | |
case 0: | |
e(); | |
break; | |
case 1: | |
e(n[0]); | |
break; | |
case 2: | |
e(n[0], n[1]); | |
break; | |
case 3: | |
e(n[0], n[1], n[2]); | |
break; | |
default: | |
e.apply(void 0, n); | |
} | |
})(e); | |
} finally { | |
f(t); | |
u = 0; | |
} | |
} | |
} | |
} | |
})(typeof self == "undefined" ? void 0 === t ? this : t : self); | |
}).call(this, n(4)); | |
}, function (t, e, n) { | |
(function (t) { | |
var r = void 0 !== t && t || typeof self != "undefined" && self || window; | |
var o = Function.prototype.apply; | |
function i(t, e) { | |
this._id = t; | |
this._clearFn = e; | |
} | |
e.setTimeout = function () { | |
return new i(o.call(setTimeout, r, arguments), clearTimeout); | |
}; | |
e.setInterval = function () { | |
return new i(o.call(setInterval, r, arguments), clearInterval); | |
}; | |
e.clearTimeout = e.clearInterval = function (t) { | |
if (t) { | |
t.close(); | |
} | |
}; | |
i.prototype.unref = i.prototype.ref = function () {}; | |
i.prototype.close = function () { | |
this._clearFn.call(r, this._id); | |
}; | |
e.enroll = function (t, e) { | |
clearTimeout(t._idleTimeoutId); | |
t._idleTimeout = e; | |
}; | |
e.unenroll = function (t) { | |
clearTimeout(t._idleTimeoutId); | |
t._idleTimeout = -1; | |
}; | |
e._unrefActive = e.active = function (t) { | |
clearTimeout(t._idleTimeoutId); | |
var e = t._idleTimeout; | |
if (e >= 0) { | |
t._idleTimeoutId = setTimeout(function () { | |
if (t._onTimeout) { | |
t._onTimeout(); | |
} | |
}, e); | |
} | |
}; | |
n(35); | |
e.setImmediate = typeof self != "undefined" && self.setImmediate || void 0 !== t && t.setImmediate || this && this.setImmediate; | |
e.clearImmediate = typeof self != "undefined" && self.clearImmediate || void 0 !== t && t.clearImmediate || this && this.clearImmediate; | |
}).call(this, n(4)); | |
}, function (t, e, n) { | |
(function (r, o) { | |
var i; | |
(function (r, a) { | |
a[r] = a[r] || function () { | |
var t; | |
var e; | |
var n; | |
var r = Object.prototype.toString; | |
var i = void 0 !== o ? function (t) { | |
return o(t); | |
} : setTimeout; | |
try { | |
Object.defineProperty({}, "x", {}); | |
t = function (t, e, n, r) { | |
return Object.defineProperty(t, e, { | |
value: n, | |
writable: 1, | |
configurable: r != 0 | |
}); | |
}; | |
} catch (e) { | |
t = function (t, e, n) { | |
t[e] = n; | |
return t; | |
}; | |
} | |
function a(t, r) { | |
n.add(t, r); | |
e ||= i(n.drain); | |
} | |
function s(t) { | |
var e; | |
var n = typeof t; | |
if (t != null && (n == "object" || n == "function")) { | |
e = t.then; | |
} | |
if (typeof e == "function") { | |
return e; | |
} else { | |
return 0; | |
} | |
} | |
function u() { | |
for (var t = 0; t < this.chain.length; t++) { | |
c(this, this.state === 1 ? this.chain[t].success : this.chain[t].failure, this.chain[t]); | |
} | |
this.chain.length = 0; | |
} | |
function c(t, e, n) { | |
var r; | |
var o; | |
try { | |
if (e == 0) { | |
n.reject(t.msg); | |
} else if ((r = e == 1 ? t.msg : e.call(void 0, t.msg)) === n.promise) { | |
n.reject(TypeError("Promise-chain cycle")); | |
} else if (o = s(r)) { | |
o.call(r, n.resolve, n.reject); | |
} else { | |
n.resolve(r); | |
} | |
} catch (t) { | |
n.reject(t); | |
} | |
} | |
function l(t) { | |
var e = this; | |
if (!e.triggered) { | |
e.triggered = 1; | |
if (e.def) { | |
e = e.def; | |
} | |
e.msg = t; | |
e.state = 2; | |
if (e.chain.length > 0) { | |
a(u, e); | |
} | |
} | |
} | |
function f(t, e, n, r) { | |
for (var o = 0; o < e.length; o++) { | |
(function (o) { | |
t.resolve(e[o]).then(function (t) { | |
n(o, t); | |
}, r); | |
})(o); | |
} | |
} | |
function h(t) { | |
this.def = t; | |
this.triggered = 0; | |
} | |
function d(t) { | |
this.promise = t; | |
this.state = 0; | |
this.triggered = 0; | |
this.chain = []; | |
this.msg = void 0; | |
} | |
function p(t) { | |
if (typeof t != "function") { | |
throw TypeError("Not a function"); | |
} | |
if (this.__NPO__ !== 0) { | |
throw TypeError("Not a promise"); | |
} | |
this.__NPO__ = 1; | |
var e = new d(this); | |
this.then = function (t, n) { | |
var r = { | |
success: typeof t == "function" ? t : 1, | |
failure: typeof n == "function" ? n : 0 | |
}; | |
r.promise = new this.constructor(function (t, e) { | |
if (typeof t != "function" || typeof e != "function") { | |
throw TypeError("Not a function"); | |
} | |
r.resolve = t; | |
r.reject = e; | |
}); | |
e.chain.push(r); | |
if (e.state !== 0) { | |
a(u, e); | |
} | |
return r.promise; | |
}; | |
this.catch = function (t) { | |
return this.then(void 0, t); | |
}; | |
try { | |
t.call(void 0, function (t) { | |
(function t(e) { | |
var n; | |
var r = this; | |
if (!r.triggered) { | |
r.triggered = 1; | |
if (r.def) { | |
r = r.def; | |
} | |
try { | |
if (n = s(e)) { | |
a(function () { | |
var o = new h(r); | |
try { | |
n.call(e, function () { | |
t.apply(o, arguments); | |
}, function () { | |
l.apply(o, arguments); | |
}); | |
} catch (t) { | |
l.call(o, t); | |
} | |
}); | |
} else { | |
r.msg = e; | |
r.state = 1; | |
if (r.chain.length > 0) { | |
a(u, r); | |
} | |
} | |
} catch (t) { | |
l.call(new h(r), t); | |
} | |
} | |
}).call(e, t); | |
}, function (t) { | |
l.call(e, t); | |
}); | |
} catch (t) { | |
l.call(e, t); | |
} | |
} | |
n = function () { | |
var t; | |
var n; | |
var r; | |
function o(t, e) { | |
this.fn = t; | |
this.self = e; | |
this.next = void 0; | |
} | |
return { | |
add: function (e, i) { | |
r = new o(e, i); | |
if (n) { | |
n.next = r; | |
} else { | |
t = r; | |
} | |
n = r; | |
r = void 0; | |
}, | |
drain: function () { | |
var r = t; | |
for (t = n = e = void 0; r;) { | |
r.fn.call(r.self); | |
r = r.next; | |
} | |
} | |
}; | |
}(); | |
var _ = t({}, "constructor", p, 0); | |
p.prototype = _; | |
t(_, "__NPO__", 0, 0); | |
t(p, "resolve", function (t) { | |
if (t && typeof t == "object" && t.__NPO__ === 1) { | |
return t; | |
} else { | |
return new this(function (e, n) { | |
if (typeof e != "function" || typeof n != "function") { | |
throw TypeError("Not a function"); | |
} | |
e(t); | |
}); | |
} | |
}); | |
t(p, "reject", function (t) { | |
return new this(function (e, n) { | |
if (typeof e != "function" || typeof n != "function") { | |
throw TypeError("Not a function"); | |
} | |
n(t); | |
}); | |
}); | |
t(p, "all", function (t) { | |
var e = this; | |
if (r.call(t) != "[object Array]") { | |
return e.reject(TypeError("Not an array")); | |
} else if (t.length === 0) { | |
return e.resolve([]); | |
} else { | |
return new e(function (n, r) { | |
if (typeof n != "function" || typeof r != "function") { | |
throw TypeError("Not a function"); | |
} | |
var o = t.length; | |
var i = Array(o); | |
var a = 0; | |
f(e, t, function (t, e) { | |
i[t] = e; | |
if (++a === o) { | |
n(i); | |
} | |
}, r); | |
}); | |
} | |
}); | |
t(p, "race", function (t) { | |
var e = this; | |
if (r.call(t) != "[object Array]") { | |
return e.reject(TypeError("Not an array")); | |
} else { | |
return new e(function (n, r) { | |
if (typeof n != "function" || typeof r != "function") { | |
throw TypeError("Not a function"); | |
} | |
f(e, t, function (t, e) { | |
n(e); | |
}, r); | |
}); | |
} | |
}); | |
return p; | |
}(); | |
if (void 0 !== t && t.exports) { | |
t.exports = a[r]; | |
} else if (n(7) && (i = function () { | |
return a[r]; | |
}.call(e, n, e, t)) !== undefined) { | |
t.exports = i; | |
} | |
})("Promise", void 0 !== r ? r : this); | |
}).call(this, n(4), n(36).setImmediate); | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
n(37); | |
n(30); | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function () { | |
function t() { | |
this.buffer = []; | |
} | |
t.prototype.add = function (t) { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
return (0, r.__generator)(this, function (e) { | |
this.buffer.push(t); | |
return [2]; | |
}); | |
}); | |
}; | |
t.prototype.get = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
return (0, r.__generator)(this, function (t) { | |
return [2, this.buffer.splice(0)]; | |
}); | |
}); | |
}; | |
return t; | |
}(); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function () { | |
function t(t) { | |
this.storage = t; | |
} | |
t.prototype.getExistingItems = function () { | |
var e = this.storage.getItem(t.BUFFER_KEY); | |
if (typeof e == "string") { | |
return JSON.parse(e).filter(function (e) { | |
return e.time > new Date().getTime() - t.MAX_AGE_SECONDS * 1000; | |
}); | |
} else { | |
return []; | |
} | |
}; | |
t.prototype.add = function (e) { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var n; | |
var o; | |
return (0, r.__generator)(this, function (r) { | |
(n = this.getExistingItems()).push({ | |
time: new Date().getTime(), | |
item: e | |
}); | |
if (!((o = JSON.stringify(n)).length > t.MAX_SIZE_BYTES)) { | |
this.storage.setItem(t.BUFFER_KEY, o); | |
} | |
return [2]; | |
}); | |
}); | |
}; | |
t.prototype.get = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var e; | |
return (0, r.__generator)(this, function (n) { | |
e = this.getExistingItems(); | |
this.storage.removeItem(t.BUFFER_KEY); | |
return [2, e.map(function (t) { | |
return t.item; | |
})]; | |
}); | |
}); | |
}; | |
t.BUFFER_KEY = "amzn:fwcim:events"; | |
t.MAX_SIZE_BYTES = 10240; | |
t.MAX_AGE_SECONDS = 3600; | |
return t; | |
}(); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(2); | |
var o = n(8); | |
var i = n(16); | |
var a = function () { | |
function t(e) { | |
if (void 0 === e) { | |
e = { | |
el: document, | |
sampleRateMilliseconds: t.DEFAULT_SAMPLE_RATE | |
}; | |
} | |
this.throttler = new o.default(); | |
this.start = new Date().getTime(); | |
this.events = []; | |
this.el = e.el; | |
this.sampleRateMilliseconds = e.sampleRateMilliseconds; | |
this.listener = new r.default(this.el); | |
this.bindHandlers(); | |
} | |
t.prototype.bindHandlers = function () { | |
this.bindMouseScrollHandler(); | |
this.bindMouseHandler(); | |
this.bindTouchHandler(); | |
this.bindKeyboardHandler(); | |
}; | |
t.prototype.bindMouseScrollHandler = function () { | |
var e = this; | |
this.listener.addEventListener("scroll", this.throttler.create(function (n) { | |
e.events.push({ | |
type: t.SCROLL_EVENT, | |
time: new Date().getTime() - e.start, | |
x: window.scrollX, | |
y: window.scrollY | |
}); | |
}, this.sampleRateMilliseconds)); | |
this.listener.addEventListener("wheel", this.throttler.create(function (n) { | |
e.events.push({ | |
type: t.MOUSE_WHEEL_EVENT, | |
time: new Date().getTime() - e.start, | |
dx: n.deltaX, | |
dy: n.deltaY, | |
dz: n.deltaZ | |
}); | |
}, this.sampleRateMilliseconds)); | |
}; | |
t.prototype.bindEventCycleTelemetry = function (t, e, n, r) { | |
var o = this; | |
if (void 0 === r) { | |
r = []; | |
} | |
new i.default({ | |
startEvent: t, | |
endEvent: e, | |
buffer: -1, | |
element: this.el, | |
callback: function (t, e) { | |
var i = e; | |
var a = i.startEvent; | |
var s = i.startEventTime; | |
var u = i.endEventTime; | |
var c = { | |
startTime: s - o.start, | |
time: u - o.start, | |
type: n | |
}; | |
if (a.pageX && a.pageY) { | |
c.x = a.pageX; | |
c.y = a.pageY; | |
} | |
if (t && r.indexOf(t) > -1) { | |
c.which = t; | |
} | |
o.events.push(c); | |
} | |
}); | |
}; | |
t.prototype.bindMouseHandler = function () { | |
var e = this; | |
this.bindEventCycleTelemetry("mousedown", "mouseup", t.MOUSE_EVENT); | |
this.listener.addEventListener("mousemove", this.throttler.create(function (n) { | |
e.events.push({ | |
time: new Date().getTime() - e.start, | |
type: t.MOUSE_MOVE_EVENT, | |
x: n.pageX, | |
y: n.pageY | |
}); | |
}, this.sampleRateMilliseconds)); | |
}; | |
t.prototype.bindTouchHandler = function () { | |
this.bindEventCycleTelemetry("touchstart", "touchend", t.TOUCH_EVENT); | |
}; | |
t.prototype.bindKeyboardHandler = function () { | |
this.bindEventCycleTelemetry("keydown", "keyup", t.KEY_EVENT, t.KEY_WHITELIST); | |
}; | |
t.prototype.get = function () { | |
var t = this.start; | |
var e = this.events.splice(0); | |
this.clear(); | |
return { | |
start: t, | |
events: e | |
}; | |
}; | |
t.prototype.clear = function () { | |
this.start = new Date().getTime(); | |
this.events = []; | |
}; | |
t.DEFAULT_SAMPLE_RATE = 100; | |
t.SCROLL_EVENT = "s"; | |
t.MOUSE_WHEEL_EVENT = "w"; | |
t.MOUSE_EVENT = "m"; | |
t.MOUSE_MOVE_EVENT = "mm"; | |
t.KEY_EVENT = "k"; | |
t.TOUCH_EVENT = "t"; | |
t.VISIBILITY_CHANGE_EVENT = "v"; | |
t.KEY_WHITELIST = ["Spacebar", "Space", " ", "ArrowUp", "Up", "ArrowDown", "Down", "ArrowLeft", "Left", "ArrowRight", "Right", "Esc", "Escape", "Shift", "Enter", "Control", "Alt", "Meta"]; | |
return t; | |
}(); | |
e.default = a; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function () { | |
function t(t) { | |
var e = t.key; | |
var n = t.data; | |
this.key = e; | |
this.data = n; | |
} | |
t.prototype.collect = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var t; | |
return (0, r.__generator)(this, function (e) { | |
return [2, (t = {}, t[this.key] = this.data, t)]; | |
}); | |
}); | |
}; | |
return t; | |
}(); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function () { | |
function t(t, e) { | |
if (void 0 === e) { | |
e = new Date(); | |
} | |
this.gesturalTelemetry = t; | |
this.lastCollection = e; | |
} | |
t.prototype.collect = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var e; | |
var n; | |
return (0, r.__generator)(this, function (r) { | |
if ((e = this.gesturalTelemetry.get()).events.length === 0) { | |
n = { | |
type: t.IDLE_PING_EVENT_TYPE, | |
time: new Date().getTime() - e.start, | |
startTime: this.lastCollection.getTime() - e.start | |
}; | |
e.events.push(n); | |
} | |
this.lastCollection = new Date(); | |
return [2, { | |
ciba: e | |
}]; | |
}); | |
}); | |
}; | |
t.collectorName = "ges"; | |
t.IDLE_PING_EVENT_TYPE = "i"; | |
return t; | |
}(); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = n(22); | |
var i = n(15); | |
var a = n(9); | |
var s = n(43); | |
var u = n(13); | |
var c = n(42); | |
var l = n(11); | |
var f = n(41); | |
var h = n(2); | |
var d = n(10); | |
var p = n(26); | |
var _ = n(24); | |
var m = n(25); | |
var y = n(23); | |
var v = function (t) { | |
function e(n, o, i, s, u, c, l) { | |
var f = t.call(this, i, s) || this; | |
f.selectorQuerier = n; | |
f.throttler = o; | |
f.buffer = u; | |
f.ue = c; | |
f.globalTimingMetrics = l; | |
f.firstReport = 1; | |
var h = f; | |
f.throttledReport = f.throttler.create(function () { | |
h.report(); | |
}, e.REPORT_THROTTLE_MS); | |
var d = null; | |
f.initializeIncrementalCollectors = function () { | |
if (d === null) { | |
d = new a.default(f.initializeCollectors(e.INCREMENTAL_REPORT_COLLECTORS)); | |
} | |
}; | |
f.collectIncrementalCollectors = function () { | |
return (0, r.__awaiter)(f, void 0, void 0, function () { | |
return (0, r.__generator)(this, function (t) { | |
return [2, this.collectAndEncrypt(d)]; | |
}); | |
}); | |
}; | |
return f; | |
} | |
(0, r.__extends)(e, t); | |
e.prototype.doProfile = function () { | |
this.initializeIncrementalCollectors(); | |
this.report(1); | |
this.reportToBufferIntervalId = setInterval(this.throttledReport, e.AUTO_REPORT_INTERVAL_MS); | |
var t = this; | |
this.reportToServerIntervalId = setInterval(function () { | |
t.reportToServer(); | |
}, e.AUTO_REPORT_TO_SERVER_INTERVAL_MS); | |
for (var n = this.selectorQuerier.querySelectorAll(e.LINK_SELECTOR), r = 0; r < n.length; r++) { | |
var o = n[r]; | |
new h.default(o).addEventListener("mouseover", this.throttledReport); | |
} | |
var i = this.selectorQuerier.querySelectorAll(e.FORM_SELECTOR); | |
for (r = 0; r < i.length; r++) { | |
var a = i[r]; | |
new h.default(a).addEventListener("submit", this.throttledReport); | |
} | |
}; | |
e.prototype.report = function (t) { | |
if (void 0 === t) { | |
t = 0; | |
} | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var n; | |
var o; | |
var i; | |
return (0, r.__generator)(this, function (a) { | |
switch (a.label) { | |
case 0: | |
a.trys.push([0, 7,, 8]); | |
n = void 0; | |
o = void 0; | |
if (this.firstReport) { | |
return [4, this.collect()]; | |
} else { | |
return [3, 2]; | |
} | |
case 1: | |
n = a.sent(); | |
o = e.INIT_REPORT_TYPE; | |
this.firstReport = 0; | |
return [3, 4]; | |
case 2: | |
return [4, this.collectIncrementalCollectors()]; | |
case 3: | |
n = a.sent(); | |
o = e.INCREMENTAL_REPORT_TYPE; | |
a.label = 4; | |
case 4: | |
if (n === null) { | |
return [3, 6]; | |
} else { | |
i = (0, r.__assign)((0, r.__assign)({}, e.BASE_DATA), { | |
t: new Date().getTime(), | |
type: o, | |
md: n | |
}); | |
return [4, this.buffer.add(i)]; | |
} | |
case 5: | |
a.sent(); | |
a.label = 6; | |
case 6: | |
if (t) { | |
this.reportToServer(); | |
} | |
return [3, 8]; | |
case 7: | |
a.sent(); | |
return [3, 8]; | |
case 8: | |
return [2]; | |
} | |
}); | |
}); | |
}; | |
e.prototype.reportToServer = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var t; | |
var n; | |
return (0, r.__generator)(this, function (o) { | |
switch (o.label) { | |
case 0: | |
o.trys.push([0, 2,, 3]); | |
return [4, this.buffer.get()]; | |
case 1: | |
t = o.sent(); | |
n = 0; | |
for (; n < t.length; n++) { | |
this.ue.log(t[n], e.CSM_CHANNEL, (0, r.__assign)((0, r.__assign)({}, e.CSM_OPTIONS), { | |
r: t[n].r | |
})); | |
} | |
return [3, 3]; | |
case 2: | |
o.sent(); | |
return [3, 3]; | |
case 3: | |
return [2]; | |
} | |
}); | |
}); | |
}; | |
e.prototype.stop = function () { | |
clearInterval(this.reportToBufferIntervalId); | |
clearInterval(this.reportToServerIntervalId); | |
var t = this.throttledReport; | |
this.selectorQuerier.querySelectorAll(e.LINK_SELECTOR).forEach(function (e) { | |
return new h.default(e).removeEventListener("mouseover", t); | |
}); | |
this.selectorQuerier.querySelectorAll(e.FORM_SELECTOR).forEach(function (e) { | |
return new h.default(e).removeEventListener("submit", t); | |
}); | |
}; | |
e.CSM_CHANNEL = "cap-ciba"; | |
e.CSM_KEY = "fwcim"; | |
e.LINK_SELECTOR = "a:not([href^=\"#\"])"; | |
e.FORM_SELECTOR = "form"; | |
e.INIT_REPORT_TYPE = "init"; | |
e.INCREMENTAL_REPORT_TYPE = "inc"; | |
e.REPORT_THROTTLE_MS = 3000; | |
e.AUTO_REPORT_INTERVAL_MS = 5000; | |
e.AUTO_REPORT_TO_SERVER_INTERVAL_MS = 30000; | |
e.BASE_DATA = { | |
k: e.CSM_KEY, | |
r: window.ue_id || null, | |
p: window.location ? window.location.href : null, | |
c: window.fwcimData ? window.fwcimData.customerId : null | |
}; | |
e.CSM_OPTIONS = {}; | |
e.COLLECTORS = (0, r.__spreadArray)((0, r.__spreadArray)([], d.default.COLLECTORS, 1), [function () { | |
return new p.default(); | |
}, function () { | |
return new _.default(); | |
}, function () { | |
return new m.default(); | |
}, function () { | |
return new y.default(); | |
}, function () { | |
return new i.default(); | |
}, function () { | |
return new u.default(); | |
}, function () { | |
return new l.default(); | |
}, function () { | |
return new o.default(); | |
}, function (t) { | |
return new c.default({ | |
key: "latencyMetrics", | |
data: t.globalTimingMetrics | |
}); | |
}], 0); | |
e.INCREMENTAL_REPORT_COLLECTORS = [function () { | |
return new s.default(new f.default()); | |
}]; | |
return e; | |
}(d.default); | |
e.default = v; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
e.FWCIM_VERSION = void 0; | |
e.FWCIM_VERSION = "4.0.0"; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = n(5); | |
var i = function (t) { | |
function e() { | |
return t !== null && t.apply(this, arguments) || this; | |
} | |
(0, r.__extends)(e, t); | |
e.prototype.collectData = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var t; | |
var n; | |
var o; | |
var i; | |
var a; | |
var s; | |
var u; | |
var c; | |
var l; | |
var f; | |
var h; | |
return (0, r.__generator)(this, function (r) { | |
t = new Date().getTime(); | |
n = document.documentElement.innerHTML; | |
o = /<script[\s\S]*?>[\s\S]*?<\/script>/gi; | |
i = []; | |
a = []; | |
s = /src="[\s\S]*?"/; | |
u = n.match(o); | |
c = 0; | |
l = u; | |
for (; c < l.length; c++) { | |
if ((f = l[c]).match(s)) { | |
h = s.exec(f)[0]; | |
i.push(h.substring(5, h.length - 1)); | |
} else { | |
a.push(e.CRC_CALCULATOR.calculate(f)); | |
} | |
} | |
return [2, { | |
scripts: { | |
dynamicUrls: i, | |
inlineHashes: a, | |
elapsed: new Date().getTime() - t, | |
dynamicUrlCount: i.length, | |
inlineHashesCount: a.length | |
} | |
}]; | |
}); | |
}); | |
}; | |
e.CRC_CALCULATOR = new o.default(); | |
e.collectorName = "script"; | |
return e; | |
}(n(1).default); | |
e.default = i; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function () { | |
function t() {} | |
t.prototype.collect = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
return (0, r.__generator)(this, function (t) { | |
if (window.performance && window.performance.timing && window.performance.timing.toJSON) { | |
return [2, { | |
performance: { | |
timing: window.performance.timing.toJSON() | |
} | |
}]; | |
} else { | |
return [2, null]; | |
} | |
}); | |
}); | |
}; | |
t.collectorName = "perf"; | |
return t; | |
}(); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function () { | |
function t() {} | |
t.prototype.collect = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
return (0, r.__generator)(this, function (t) { | |
return [2, { | |
history: { | |
length: window.history ? window.history.length : null | |
} | |
}]; | |
}); | |
}); | |
}; | |
t.collectorName = "h"; | |
return t; | |
}(); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function (t) { | |
function e() { | |
return t !== null && t.apply(this, arguments) || this; | |
} | |
(0, r.__extends)(e, t); | |
e.prototype.collectData = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var t; | |
var e; | |
return (0, r.__generator)(this, function (n) { | |
switch (n.label) { | |
case 0: | |
if (t = navigator.getBattery) { | |
e = {}; | |
return [4, t.call(navigator)]; | |
} else { | |
return [3, 2]; | |
} | |
case 1: | |
return [2, (e.battery = n.sent(), e)]; | |
case 2: | |
return [2, {}]; | |
} | |
}); | |
}); | |
}; | |
e.collectorName = "batt"; | |
return e; | |
}(n(1).default); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function (t) { | |
function e() { | |
return t !== null && t.apply(this, arguments) || this; | |
} | |
(0, r.__extends)(e, t); | |
e.prototype.containsProperties = function (t, e) { | |
return e.filter(function (e) { | |
return void 0 !== t[e] && !!t[e]; | |
}); | |
}; | |
e.prototype.collectData = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
return (0, r.__generator)(this, function (t) { | |
return [2, { | |
automation: { | |
wd: { | |
properties: { | |
document: this.containsProperties(document, e.WEBDRIVER_DOCUMENT_PROPERTIES), | |
window: this.containsProperties(window, e.WEBDRIVER_WINDOW_PROPERTIES), | |
navigator: this.containsProperties(navigator, e.WEBDRIVER_NAVIGATOR_PROPERTIES) | |
} | |
}, | |
phantom: { | |
properties: { | |
window: this.containsProperties(window, e.PHANTOM_WINDOW_PROPERTIES) | |
} | |
} | |
} | |
}]; | |
}); | |
}); | |
}; | |
e.WEBDRIVER_DOCUMENT_PROPERTIES = ["webdriver", "__driver_evaluate", "__webdriver_evaluate", "__selenium_evaluate", "__fxdriver_evaluate", "__driver_unwrapped", "__webdriver_unwrapped", "__selenium_unwrapped", "__fxdriver_unwrapped", "__webdriver_script_fn", "_Selenium_IDE_Recorder", "_selenium", "calledSelenium", "$cdc_asdjflasutopfhvcZLmcfl_", "$chrome_asyncScriptInfo", "__$webdriverAsyncExecutor"]; | |
e.WEBDRIVER_WINDOW_PROPERTIES = ["webdriver", "__webdriverFunc", "domAutomation", "domAutomationController", "__lastWatirAlert", "__lastWatirConfirm", "__lastWatirPrompt", "_WEBDRIVER_ELEM_CACHE"]; | |
e.WEBDRIVER_NAVIGATOR_PROPERTIES = ["webdriver"]; | |
e.PHANTOM_WINDOW_PROPERTIES = ["_phantom", "callPhantom"]; | |
e.collectorName = "auto"; | |
return e; | |
}(n(1).default); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = n(2); | |
var i = function () { | |
function t(t) { | |
this.start = new Date().getTime(); | |
this.form = t.form; | |
this.bindSubmitEvent(); | |
} | |
t.prototype.bindSubmitEvent = function () { | |
var t = this; | |
new o.default(this.form).addEventListener("submit", function () { | |
return t.timeSubmitted = new Date().getTime(); | |
}); | |
}; | |
t.prototype.collect = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
return (0, r.__generator)(this, function (t) { | |
if (this.timeSubmitted > 0) { | |
return [2, { | |
timeToSubmit: this.timeSubmitted - this.start | |
}]; | |
} else { | |
return [2, null]; | |
} | |
}); | |
}); | |
}; | |
t.collectorName = "tts"; | |
return t; | |
}(); | |
e.default = i; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = n(27); | |
var i = function () { | |
function t(t) { | |
this.token = null; | |
this.token = { | |
isCompatible: this.isCompatible(), | |
pageHasCaptcha: this.pageHasCaptcha() | |
}; | |
try { | |
this.storage = t || window.sessionStorage || window.localStorage; | |
} catch (t) {} | |
if (this.token.isCompatible && this.token.pageHasCaptcha) { | |
this.startProofOfWork(); | |
} | |
} | |
t.prototype.isCompatible = function () { | |
return !!fetch && !!Promise && !!Array && typeof Array.from == "function" && !!document.cookie && !!document.cookie.length && typeof document.querySelectorAll == "function" && !!window.Worker && !!window.crypto && !!window.crypto.subtle && (!!window.URL || !!window.webkitURL) && !!window.Blob; | |
}; | |
t.prototype.getProofOfWorkScript = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var e; | |
var n; | |
var o; | |
var i; | |
var a; | |
var s; | |
var u; | |
var c; | |
var l; | |
var f; | |
var h; | |
var d; | |
return (0, r.__generator)(this, function (r) { | |
switch (r.label) { | |
case 0: | |
e = document.querySelectorAll("script"); | |
n = 0; | |
r.label = 1; | |
case 1: | |
if (!(n < e.length)) { | |
return [3, 9]; | |
} | |
if (!(o = e[n].src)) { | |
return [3, 8]; | |
} | |
i = 0; | |
a = t.FWCIM_SCRIPT_MATCHERS; | |
r.label = 2; | |
case 2: | |
if (i < a.length) { | |
s = a[i]; | |
if ((u = s.exec(o)) && u.length >= 2) { | |
c = u[1] + t.PROOF_OF_WORK_SCRIPT_NAME; | |
return [4, fetch(c)]; | |
} else { | |
return [3, 7]; | |
} | |
} else { | |
return [3, 8]; | |
} | |
case 3: | |
if (!(l = r.sent()) || !l.ok) { | |
return [3, 7]; | |
} | |
r.label = 4; | |
case 4: | |
r.trys.push([4, 6,, 7]); | |
f = window.URL || window.webkitURL; | |
d = (h = f).createObjectURL; | |
return [4, l.blob()]; | |
case 5: | |
return [2, d.apply(h, [r.sent()])]; | |
case 6: | |
r.sent(); | |
return [3, 7]; | |
case 7: | |
i++; | |
return [3, 2]; | |
case 8: | |
n++; | |
return [3, 1]; | |
case 9: | |
return [2, null]; | |
} | |
}); | |
}); | |
}; | |
t.prototype.pageHasCaptcha = function () { | |
for (var t = o.default.CAPTCHA_FIELDS, e = 0; e < t.length; e++) { | |
if (document.querySelectorAll(t[e]).length) { | |
return 1; | |
} | |
} | |
return 0; | |
}; | |
t.prototype.getSessionId = function () { | |
for (var e = 0, n = document.cookie.split(";"); e < n.length; e++) { | |
var r = n[e].split("="); | |
if (r.length === 2 && r[0].trim() === t.SESSION_ID_COOKIE_NAME) { | |
return r[1].trim(); | |
} | |
} | |
return null; | |
}; | |
t.prototype.getDifficulty = function () { | |
return Math.floor(Math.random() * (t.MAX_PROOF_OF_WORK_DIFFICULTY - t.MIN_PROOF_OF_WORK_DIFFICULTY)) + t.MIN_PROOF_OF_WORK_DIFFICULTY; | |
}; | |
t.prototype.startProofOfWork = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var e; | |
var n; | |
var o; | |
var i; | |
var a; | |
var s; | |
var u; | |
var c; | |
return (0, r.__generator)(this, function (l) { | |
switch (l.label) { | |
case 0: | |
return [4, this.getProofOfWorkScript()]; | |
case 1: | |
if (e = l.sent()) { | |
n = new Date().getTime(); | |
o = this.getDifficulty(); | |
if (this.storage) { | |
try { | |
if (i = this.storage.getItem(t.POW_ATTEMPT_LS_KEY)) { | |
a = JSON.parse(i); | |
s = a[t.POW_ATTEMPT_DIFFICULTY_KEY]; | |
u = a[t.POW_ATTEMPT_TIME_KEY]; | |
if (typeof s == "number" && typeof u == "number" && n - u < t.POW_ATTEMPT_TTL_SECONDS * 1000) { | |
o = Math.max(t.MIN_PROOF_OF_WORK_DIFFICULTY, Math.min(o, s - 1)); | |
} | |
} | |
this.storage.setItem(t.POW_ATTEMPT_LS_KEY, JSON.stringify(((c = {})[t.POW_ATTEMPT_DIFFICULTY_KEY] = o, c[t.POW_ATTEMPT_TIME_KEY] = n, c))); | |
} catch (t) {} | |
} | |
this.token = (0, r.__assign)((0, r.__assign)({}, this.token), { | |
start: n, | |
difficulty: o, | |
iv: this.getSessionId() | |
}); | |
this.computeToken(e, this.token.iv, this.token.difficulty); | |
} | |
return [2]; | |
} | |
}); | |
}); | |
}; | |
t.prototype.computeToken = function (t, e, n) { | |
var r = this; | |
this.worker = new window.Worker(t); | |
this.worker.postMessage({ | |
difficulty: n, | |
iv: e | |
}); | |
this.worker.onmessage = function (t) { | |
try { | |
r.token.end = new Date().getTime(); | |
r.token.time = r.token.end - r.token.start; | |
r.token.token = Array.from(t.data.token); | |
r.token.difficulty = t.data.difficulty; | |
r.token.iv = t.data.iv; | |
} catch (t) { | |
r.token.error = t.toString(); | |
} | |
}; | |
}; | |
t.prototype.collect = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
return (0, r.__generator)(this, function (t) { | |
return [2, { | |
token: this.token | |
}]; | |
}); | |
}); | |
}; | |
t.MIN_PROOF_OF_WORK_DIFFICULTY = 8; | |
t.MAX_PROOF_OF_WORK_DIFFICULTY = 12; | |
t.PROOF_OF_WORK_SCRIPT_NAME = "fwcim-pow.js"; | |
t.FWCIM_SCRIPT_MATCHERS = [/^(https\:\/\/.+\/common\/login\/)fwcim/]; | |
t.SESSION_ID_COOKIE_NAME = "session-id"; | |
t.POW_ATTEMPT_LS_KEY = "fwcim-pow-state"; | |
t.POW_ATTEMPT_DIFFICULTY_KEY = "d"; | |
t.POW_ATTEMPT_TIME_KEY = "t"; | |
t.POW_ATTEMPT_TTL_SECONDS = 300; | |
t.collectorName = "pow"; | |
return t; | |
}(); | |
e.default = i; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function (t) { | |
function e(e) { | |
var n = e.form; | |
var r = t.call(this) || this; | |
r.formMethod = (n.method || "get").toLocaleLowerCase(); | |
return r; | |
} | |
(0, r.__extends)(e, t); | |
e.prototype.collectData = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
return (0, r.__generator)(this, function (t) { | |
return [2, { | |
auth: { | |
form: { | |
method: this.formMethod | |
} | |
} | |
}]; | |
}); | |
}); | |
}; | |
return e; | |
}(n(1).default); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = n(18); | |
var i = n(3); | |
var a = n(6); | |
var s = function () { | |
function t(t) { | |
this.telemetryCollectors = []; | |
this.form = t.form; | |
this.bindInputTelemetry(t.cycleBuffer); | |
} | |
t.prototype.bindInputTelemetry = function (e) { | |
if (void 0 === e) { | |
e = -1; | |
} | |
for (var n = new i.default(this.form).querySelectorAll(t.INPUT_SELECTORS.join(",")), r = 0; r < n.length; r++) { | |
var s = n[r]; | |
var u = s; | |
var c = u.id || u.name; | |
if (c) { | |
if (typeof t.FORM_ID_ALIASES[c] == "string") { | |
c = t.FORM_ID_ALIASES[c]; | |
} | |
var l = new o.default({ | |
form: this.form, | |
element: s, | |
cycleBuffer: e | |
}); | |
this.telemetryCollectors.push(new a.default({ | |
telemetry: l, | |
key: c | |
})); | |
} | |
} | |
}; | |
t.prototype.collect = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var t; | |
var e; | |
var n; | |
var o; | |
return (0, r.__generator)(this, function (i) { | |
switch (i.label) { | |
case 0: | |
t = {}; | |
e = 0; | |
i.label = 1; | |
case 1: | |
if (e < this.telemetryCollectors.length) { | |
n = this.telemetryCollectors[e]; | |
o = [(0, r.__assign)({}, t)]; | |
return [4, n.collect()]; | |
} else { | |
return [3, 4]; | |
} | |
case 2: | |
t = r.__assign.apply(void 0, o.concat([i.sent()])); | |
i.label = 3; | |
case 3: | |
e++; | |
return [3, 1]; | |
case 4: | |
return [2, { | |
form: t | |
}]; | |
} | |
}); | |
}); | |
}; | |
t.INPUT_SELECTORS = ["input[type=\"text\"]", "input[type=\"password\"]", "input[type=\"email\"]", "input[type=\"phone\"]", "input[type=\"date\"]", "input[type=\"datetime\"]", "input[type=\"numeric\"]"]; | |
t.EMAIL_INPUT_ALIAS = "email"; | |
t.PASSWORD_INPUT_ALIAS = "password"; | |
t.FORM_ID_ALIASES = { | |
ap_email: t.EMAIL_INPUT_ALIAS, | |
ap_password: t.PASSWORD_INPUT_ALIAS | |
}; | |
t.collectorName = "input"; | |
return t; | |
}(); | |
e.default = s; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function (t) { | |
function e() { | |
return t !== null && t.apply(this, arguments) || this; | |
} | |
(0, r.__extends)(e, t); | |
e.prototype.collectData = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var t; | |
var e; | |
return (0, r.__generator)(this, function (n) { | |
t = screen; | |
e = screen.width + "-" + screen.height + "-" + screen.availHeight + "-" + screen.colorDepth; | |
e += "-" + (t.deviceXDPI !== undefined ? t.deviceXDPI : "*"); | |
e += "-" + (t.logicalXDPI !== undefined ? t.logicalXDPI : "*"); | |
return [2, { | |
screenInfo: e += "-" + (t.fontSmoothingEnabled !== undefined ? t.fontSmoothingEnabled ? 1 : 0 : "*") | |
}]; | |
}); | |
}); | |
}; | |
e.collectorName = "screen"; | |
return e; | |
}(n(1).default); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function (t) { | |
function e() { | |
return t !== null && t.apply(this, arguments) || this; | |
} | |
(0, r.__extends)(e, t); | |
e.prototype.collectData = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var t; | |
var e; | |
var n; | |
var o; | |
var i; | |
var a; | |
return (0, r.__generator)(this, function (r) { | |
t = null; | |
e = []; | |
n = 0; | |
for (; n < window.navigator.plugins.length; n++) { | |
o = window.navigator.plugins.item(n); | |
i = o.name + " " + o.description.replace(/[^0-9]/g, ""); | |
e.push({ | |
name: o.name, | |
version: o.version, | |
str: i | |
}); | |
if (o.name.match(/Shockwave Flash/)) { | |
if (o.version) { | |
t = o.version; | |
} else { | |
a = o.description.match(/([0-9.]+)\s+r([0-9.]+)/); | |
t = a && a[1] + "." + a[2]; | |
} | |
} | |
} | |
return [2, { | |
flashVersion: t, | |
plugins: e | |
}]; | |
}); | |
}); | |
}; | |
e.collectorName = "navigator"; | |
return e; | |
}(n(1).default); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function () { | |
function t(t) { | |
var e = t.container; | |
this.container = e; | |
this.setupVBScript(); | |
} | |
t.prototype.setupVBScript = function () { | |
if (!this.container) { | |
throw new Error("The container was not found."); | |
} | |
var e = document.createElement("script"); | |
e.type = "text/vbscript"; | |
e.text = t.VB_SCRIPT; | |
this.container.appendChild(e); | |
}; | |
t.prototype.checkActiveXPlugin = function (t, e) { | |
var n = 1; | |
try { | |
if (dAXP) { | |
n = 1; | |
} | |
} catch (t) { | |
n = 0; | |
} | |
if (n) { | |
var r = dAXP(t, e); | |
if (r) { | |
return { | |
name: t, | |
version: r, | |
str: t + " : " + r | |
}; | |
} | |
} | |
return null; | |
}; | |
t.prototype.collect = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var t; | |
var e; | |
var n; | |
var o; | |
return (0, r.__generator)(this, function (r) { | |
t = navigator.userAgent.match(/Windows NT 6\.0/); | |
(e = []).push(this.checkActiveXPlugin("ShockwaveDirector", "SWCtl.SWCtl")); | |
n = this.checkActiveXPlugin("ShockwaveFlash", "ShockwaveFlash.ShockwaveFlash"); | |
o = null; | |
if (n) { | |
o = (n.version >> 16) + "." + (n.version & 65535); | |
e.push(n); | |
} | |
if (!t) { | |
e.push(this.checkActiveXPlugin("RealPlayer", "RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)")); | |
e.push(this.checkActiveXPlugin("RealPlayer", "RealVideo.RealVideo(tm) ActiveX Control (32-bit)")); | |
} | |
return [2, { | |
plugins: e, | |
flashVersion: o | |
}]; | |
}); | |
}); | |
}; | |
t.VB_SCRIPT = "Function dAXP(n, v)\non error resume next\nset o = CreateObject(v)\nIf IsObject(o) Then\nSelect case n\ncase \"ShockwaveDirector\"\nf = o.ShockwaveVersion(\"\")\ncase \"ShockwaveFlash\"\nf = o.FlashVersion()\ncase \"RealPlayer\"\nf = o.GetVersionInfo\ncase Else\nf = \"\"\nend Select\ndAXP = f\nEnd If\nEnd Function"; | |
t.collectorName = "ax-plugin"; | |
return t; | |
}(); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function () { | |
function t(t) { | |
var e = t.container; | |
this.container = e; | |
this.capsEl = this.prepareBrowserCapabilitiesElement(); | |
} | |
t.prototype.prepareBrowserCapabilitiesElement = function () { | |
if (this.container) { | |
var t = document.createElement("span"); | |
t.id = "fwcim-caps"; | |
t.style.behavior = "url('#default#clientCaps')"; | |
this.container.appendChild(t); | |
return t; | |
} | |
throw new Error("The container does not exist."); | |
}; | |
t.prototype.collect = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var e; | |
return (0, r.__generator)(this, function (n) { | |
e = this.capsEl; | |
return [2, { | |
plugins: Object.keys(t.COMPONENTS).reduce(function (n, r) { | |
var o = t.COMPONENTS[r]; | |
if (e.isComponentInstalled && e.isComponentInstalled(o, "ComponentID")) { | |
var i = e.getComponentVersion(o, "ComponentID"); | |
n.push({ | |
name: r, | |
version: i, | |
str: "|" + r + " " + i | |
}); | |
} | |
return n; | |
}, []) | |
}]; | |
}); | |
}); | |
}; | |
t.collectorName = "as-plugin"; | |
t.COMPONENTS = { | |
AB: "{7790769C-0471-11D2-AF11-00C04FA35D02}", | |
WDUN: "{89820200-ECBD-11CF-8B85-00AA005B4340}", | |
DA: "{283807B5-2C60-11D0-A31D-00AA00B92C03}", | |
DAJC: "{4F216970-C90C-11D1-B5C7-0000F8051515}", | |
DS: "{44BBA848-CC51-11CF-AAFA-00AA00B6015C}", | |
DHDB: "{9381D8F2-0288-11D0-9501-00AA00B911A5}", | |
DHDBFJ: "{4F216970-C90C-11D1-B5C7-0000F8051515}", | |
ICW: "{5A8D6EE0-3E18-11D0-821E-444553540000}", | |
IE: "{89820200-ECBD-11CF-8B85-00AA005B4383}", | |
IECFJ: "{08B0E5C0-4FCB-11CF-AAA5-00401C608555}", | |
WMP: "{22D6F312-B0F6-11D0-94AB-0080C74C7E95}", | |
NN: "{44BBA842-CC51-11CF-AAFA-00AA00B6015B}", | |
OBP: "{3AF36230-A269-11D1-B5BF-0000F8051515}", | |
OE: "{44BBA840-CC51-11CF-AAFA-00AA00B6015C}", | |
TS: "{CC2A9BA0-3BDD-11D0-821E-444553540000}", | |
MVM: "{08B0E5C0-4FCB-11CF-AAA5-00401C608500}", | |
DDE: "{44BBA855-CC51-11CF-AAFA-00AA00B6015F}", | |
DOTNET: "{6FAB99D0-BAB8-11D1-994A-00C04F98BBC9}", | |
YHOO: "{E5D12C4E-7B4F-11D3-B5C9-0050045C3C96}", | |
SWDNEW: "{166B1BCA-3F9C-11CF-8075-444553540000}", | |
DOTNETFM: "{89B4C1CD-B018-4511-B0A1-5476DBF70820}", | |
MDFH: "{8EFA4753-7169-4CC3-A28B-0A1643B8A39B}", | |
FLH: "{D27CDB6E-AE6D-11CF-96B8-444553540000}", | |
SW: "{2A202491-F00D-11CF-87CC-0020AFEECF20}", | |
SWD: "{233C1507-6A77-46A4-9443-F871F945D258}", | |
RP: "{CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA}", | |
QT: "{DE4AF3B0-F4D4-11D3-B41A-0050DA2E6C21}" | |
}; | |
return t; | |
}(); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = function () { | |
function t() {} | |
t.ie = function () { | |
return !!window.navigator.userAgent.match(/MSIE [0-9.]+/i); | |
}; | |
t.windows = function () { | |
return !!window.navigator.userAgent.match(/Windows/i); | |
}; | |
return t; | |
}(); | |
e.default = r; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = n(2); | |
var i = function (t) { | |
function e(e) { | |
var n = t.call(this, e) || this; | |
n.refreshes = 0; | |
n.captchaRefreshLinks = e.captchaRefreshLinks; | |
n.bindCaptcha(); | |
return n; | |
} | |
(0, r.__extends)(e, t); | |
e.prototype.bindCaptcha = function () { | |
var t = this; | |
new o.default(this.element).addEventListener("focus", function (e) { | |
t.firstFocusTime ||= new Date().getTime(); | |
}); | |
this.captchaRefreshLinks.forEach(function (e) { | |
return new o.default(e).addEventListener("click", function () { | |
return t.refreshes++; | |
}); | |
}); | |
}; | |
e.prototype.keyPressIntervals = function () { | |
var t = this; | |
for (var e = this.keyCycles.get().filter(function (e) { | |
return e.startEventTime > t.firstFocusTime; | |
}), n = [], r = 0; r < e.length; r++) { | |
if (r === 0) { | |
n.push(e[r].startEventTime - this.firstFocusTime); | |
} else { | |
n.push(e[r].startEventTime - e[r - 1].startEventTime); | |
} | |
} | |
return n; | |
}; | |
e.prototype.get = function () { | |
return (0, r.__assign)((0, r.__assign)({}, t.prototype.get.call(this)), { | |
refreshes: this.refreshes, | |
keyPressIntervals: this.keyPressIntervals() | |
}); | |
}; | |
return e; | |
}(n(18).default); | |
e.default = i; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = n(60); | |
var i = n(6); | |
var a = n(3); | |
var s = function () { | |
function t(e) { | |
var n = new a.default(e.form); | |
var r = []; | |
for (var s = n.querySelectorAll(e.captchaRefreshLinksSelector), u = 0; u < s.length; u++) { | |
r.push(s[u]); | |
} | |
var c = n.querySelector(e.captchaFieldsSelector); | |
if (c != null) { | |
this.telemetryCollector = new i.default({ | |
key: t.KEY, | |
telemetry: new o.default({ | |
form: e.form, | |
captchaRefreshLinks: r, | |
element: c | |
}) | |
}); | |
} | |
} | |
t.prototype.collect = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
return (0, r.__generator)(this, function (t) { | |
if (this.telemetryCollector != null) { | |
return [2, this.telemetryCollector.collect()]; | |
} else { | |
return [2, null]; | |
} | |
}); | |
}); | |
}; | |
t.KEY = "captcha"; | |
t.collectorName = "captchainput"; | |
return t; | |
}(); | |
e.default = s; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = n(19); | |
var i = function (t) { | |
function e(e) { | |
var n = t.call(this) || this; | |
n.timeoutMs = e; | |
n.scheduleCaching(); | |
return n; | |
} | |
(0, r.__extends)(e, t); | |
e.prototype.scheduleCaching = function () { | |
var t = this; | |
if (typeof window.requestIdleCallback == "function") { | |
window.requestIdleCallback(function () { | |
t.collect(); | |
}, { | |
timeout: this.timeoutMs | |
}); | |
} else { | |
new o.default(function () { | |
t.collect(); | |
}, this.timeoutMs); | |
} | |
}; | |
return e; | |
}(n(1).default); | |
e.default = i; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = n(5); | |
var i = n(3); | |
var a = function (t) { | |
function e(n) { | |
var r = t.call(this, e.CANVAS_COLLECTOR_PROACTIVE_CACHE_TIMEOUT) || this; | |
r.form = n.form; | |
r.canvas = document.createElement("canvas"); | |
if (r.form) { | |
r.formSelectorQuerier = new i.default(r.form); | |
} | |
return r; | |
} | |
(0, r.__extends)(e, t); | |
e.prototype.createHistogram = function (t) { | |
for (var e = [], n = 0; n < 256; e[n++] = 0); | |
for (var r = 0; r < t.length; r++) { | |
e[t[r]]++; | |
} | |
return e; | |
}; | |
e.prototype.collectData = function () { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var t; | |
var n; | |
var o; | |
var i; | |
var a; | |
var s; | |
var u; | |
var c; | |
return (0, r.__generator)(this, function (r) { | |
if (this.canvas && typeof this.canvas.getContext == "function" && this.canvas.getContext("2d")) { | |
t = []; | |
this.canvas.width = e.CANVAS_WIDTH; | |
this.canvas.height = e.CANVAS_HEIGHT; | |
this.canvas.style.display = "inline"; | |
(n = this.canvas.getContext("2d")).rect(0, 0, 10, 10); | |
n.rect(2, 2, 6, 6); | |
t.push(n.isPointInPath(5, 5, "evenodd") == 0 ? "yes" : "no"); | |
n.textBaseline = "alphabetic"; | |
n.fillStyle = "#f60"; | |
n.fillRect(125, 1, 62, 20); | |
n.fillStyle = "#069"; | |
n.font = "8pt Arial"; | |
n.fillText("Cwm fjordbank glyphs vext quiz,", 2, 15); | |
n.fillStyle = "rgba(102, 204, 0, 0.2)"; | |
n.font = "11pt Arial"; | |
n.fillText("Cwm fjordbank glyphs vext quiz,", 4, 45); | |
n.globalCompositeOperation = "multiply"; | |
n.fillStyle = "rgb(255,0,255)"; | |
n.beginPath(); | |
n.arc(20, 20, 20, 0, Math.PI * 2, 1); | |
n.closePath(); | |
n.fill(); | |
n.fillStyle = "rgb(0,255,255)"; | |
n.beginPath(); | |
n.arc(50, 20, 20, 0, Math.PI * 2, 1); | |
n.closePath(); | |
n.fill(); | |
n.fillStyle = "rgb(255,255,0)"; | |
n.beginPath(); | |
n.arc(35, 40, 20, 0, Math.PI * 2, 1); | |
n.closePath(); | |
n.fill(); | |
n.fillStyle = "rgb(255,0,255)"; | |
n.arc(20, 25, 10, 0, Math.PI * 2, 1); | |
n.arc(20, 25, 20, 0, Math.PI * 2, 1); | |
n.fill("evenodd"); | |
(o = n.createLinearGradient(40, 50, 60, 78)).addColorStop(0, "blue"); | |
o.addColorStop(0.5, "red"); | |
o.addColorStop(1, "white"); | |
n.fillStyle = o; | |
n.beginPath(); | |
n.arc(70, 50, 10, 0, Math.PI * 2, 1); | |
n.closePath(); | |
n.fill(); | |
n.font = "10pt dfgstg"; | |
n.strokeText(Math.tan(-1e+300).toString(), 4, 30); | |
n.fillText(Math.cos(-1e+300).toString(), 4, 40); | |
n.fillText(Math.sin(-1e+300).toString(), 4, 50); | |
n.beginPath(); | |
n.moveTo(25, 0); | |
n.quadraticCurveTo(1, 1, 1, 5); | |
n.quadraticCurveTo(1, 76, 26, 10); | |
n.quadraticCurveTo(26, 96, 6, 12); | |
n.quadraticCurveTo(60, 96, 41, 10); | |
n.quadraticCurveTo(121, 86, 101, 7); | |
n.quadraticCurveTo(121, 1, 56, 1); | |
n.stroke(); | |
n.globalCompositeOperation = "difference"; | |
n.fillStyle = "rgb(255,0,255)"; | |
n.beginPath(); | |
n.arc(80, 20, 20, 0, Math.PI * 2, 1); | |
n.closePath(); | |
n.fill(); | |
n.fillStyle = "rgb(0,255,255)"; | |
n.beginPath(); | |
n.arc(110, 20, 20, 0, Math.PI * 2, 1); | |
n.closePath(); | |
n.fill(); | |
n.fillStyle = "rgb(255,255,0)"; | |
n.beginPath(); | |
n.arc(95, 40, 20, 0, Math.PI * 2, 1); | |
n.closePath(); | |
n.fill(); | |
n.fillStyle = "rgb(255,0,255)"; | |
t.push("canvas fp:" + this.canvas.toDataURL()); | |
i = e.CRC_CALCULATOR.calculate(t.join("~")); | |
a = null; | |
if (this.form && (s = this.formSelectorQuerier.querySelectorAll("input[type=email]")).length > 0) { | |
u = s[0]; | |
c = (u.value || "Not Available").toUpperCase(); | |
n.fillStyle = "#808080"; | |
n.font = "8pt Arial"; | |
n.fillText(c, 2, 30); | |
a = e.CRC_CALCULATOR.calculate(this.canvas.toDataURL()); | |
} | |
return [2, { | |
canvas: { | |
hash: i, | |
emailHash: a, | |
histogramBins: this.createHistogram(n.getImageData(0, 0, e.CANVAS_WIDTH, e.CANVAS_HEIGHT).data) | |
} | |
}]; | |
} else { | |
return [2, {}]; | |
} | |
}); | |
}); | |
}; | |
e.CANVAS_COLLECTOR_PROACTIVE_CACHE_TIMEOUT = 5000; | |
e.CRC_CALCULATOR = new o.default(); | |
e.CANVAS_WIDTH = 150; | |
e.CANVAS_HEIGHT = 60; | |
e.collectorName = "canvas"; | |
return e; | |
}(n(62).default); | |
e.default = a; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = n(21); | |
var i = n(20); | |
var a = "pageId"; | |
var s = "openid.assoc_handle"; | |
var u = "openid.return_to"; | |
var c = { | |
amzn_whidbey_desktop_us: "usflex" | |
}; | |
var l = { | |
amzn_whidbey_desktop_us: "usflex" | |
}; | |
var f = function (t) { | |
function e() { | |
var e = t !== null && t.apply(this, arguments) || this; | |
e.returnUrlObfsucator = new o.default(); | |
return e; | |
} | |
(0, r.__extends)(e, t); | |
e.prototype.obfuscate = function (t) { | |
var e = this.buildURL(t); | |
if (!e || !this.shouldObfuscate(e)) { | |
return t; | |
} | |
var n = e.getParameter(s); | |
if (n in c) { | |
e.setParameter(s, c[n]); | |
} | |
var r = e.getParameter(a); | |
if (r in l) { | |
e.setParameter(a, l[r]); | |
} | |
if (e.hasParameter(u)) { | |
var o = e.getParameter(u); | |
e.setParameter(u, this.obfuscateReturnUrl(o)); | |
} | |
return e.toString(); | |
}; | |
e.prototype.obfuscateReturnUrl = function (t) { | |
return this.returnUrlObfsucator.obfuscate(t); | |
}; | |
e.prototype.shouldObfuscate = function (t) { | |
return t.getPathname().indexOf("/ap/") === 0 || t.getPathname().indexOf("/a/") === 0; | |
}; | |
return e; | |
}(i.default); | |
e.default = f; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = function () { | |
function t(t) { | |
this.url = t; | |
var e = t.indexOf("#"); | |
this.fragementWithHash = e < 0 ? null : t.substring(e); | |
var n = e < 0 ? t : t.substring(0, e); | |
var r = n.indexOf("?"); | |
var o = r < 0 ? n : n.substring(0, r); | |
var i = r < 0 ? "" : n.substring(r + 1); | |
var a = /^([a-z][a-z0-9.+-]*:)?(\/+)?(.*)/i.exec(o); | |
this.schemaWithColon = a[1]; | |
this.authorityPrefix = a[2]; | |
var s = a[3]; | |
if (!this.schemaWithColon || !s) { | |
throw new TypeError("Invalid URL"); | |
} | |
var u = s.indexOf("@"); | |
this.userinfoWithAt = u < 0 ? null : s.substring(0, u + 1); | |
var c = (s = s.substring(u + 1)).indexOf("/"); | |
this.pathname = c < 0 ? null : s.substring(c); | |
var l = c < 0 ? s : s.substring(0, c); | |
var f = /^(\[[0-9a-z:]+\]|[^:]+)?(:[0-9]*)?/i.exec(l); | |
if (f[0] !== l) { | |
throw new TypeError("Invalid URL"); | |
} | |
this.rawHostname = f[1]; | |
this.portWithColon = f[2]; | |
this.parameters = r < 0 ? null : []; | |
if (i.length > 0) { | |
for (var h = i.split("&"), d = 0; d < h.length; d++) { | |
var p = h[d]; | |
var _ = p.indexOf("="); | |
var m = _ < 0 ? decodeURIComponent(p) : decodeURIComponent(p.substring(0, _)); | |
var y = _ < 0 ? null : decodeURIComponent(p.substring(_ + 1)); | |
this.parameters.push({ | |
key: m, | |
value: y | |
}); | |
} | |
} | |
} | |
t.prototype.setParameter = function (t, e) { | |
this.parameters ||= []; | |
t = String(t); | |
e = String(e); | |
var n = 0; | |
for (var r = 0; r < this.parameters.length; r++) { | |
var o = this.parameters[r]; | |
if (o.key === t) { | |
if (n) { | |
this.parameters.splice(r--, 1); | |
} else { | |
o.value = e; | |
n = 1; | |
} | |
} | |
} | |
if (!n) { | |
this.parameters.push({ | |
key: t, | |
value: e | |
}); | |
} | |
}; | |
t.prototype.getParameter = function (t) { | |
if (this.parameters) { | |
for (var e = 0; e < this.parameters.length; e++) { | |
var n = this.parameters[e]; | |
if (n.key === t) { | |
return n.value || ""; | |
} | |
} | |
} | |
return null; | |
}; | |
t.prototype.hasParameter = function (t) { | |
if (this.parameters) { | |
for (var e = 0; e < this.parameters.length; e++) { | |
if (this.parameters[e].key === t) { | |
return 1; | |
} | |
} | |
} | |
return 0; | |
}; | |
t.prototype.getRawHostname = function () { | |
return this.rawHostname; | |
}; | |
t.prototype.getPathname = function () { | |
return this.pathname || "/"; | |
}; | |
t.prototype.toString = function () { | |
return this.schemaWithColon + (this.authorityPrefix || "") + (this.userinfoWithAt || "") + (this.rawHostname || "") + (this.portWithColon || "") + (this.pathname || "") + this.buildQuery() + (this.fragementWithHash || ""); | |
}; | |
t.prototype.buildQuery = function () { | |
if (!this.parameters) { | |
return ""; | |
} | |
if (this.parameters.length === 0) { | |
return "?"; | |
} | |
var t = ["?"]; | |
for (var e = 0; e < this.parameters.length; e++) { | |
var n = this.parameters[e]; | |
if (typeof n.key == "string" && typeof n.value == "string") { | |
t.push(encodeURIComponent(n.key)); | |
t.push("="); | |
t.push(encodeURIComponent(n.value)); | |
} else if (typeof n.key == "string") { | |
t.push(encodeURIComponent(n.key)); | |
} | |
t.push("&"); | |
} | |
t.pop(); | |
return t.join(""); | |
}; | |
return t; | |
}(); | |
e.default = r; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(21); | |
var o = n(64); | |
var i = function () { | |
function t() {} | |
t.obfuscate = function (t) { | |
if (t && t.trim() !== "") { | |
return this.OBFUSCATORS.reduce(function (t, e) { | |
return e.obfuscate(t); | |
}, t); | |
} else { | |
return t; | |
} | |
}; | |
t.OBFUSCATORS = [new r.default(), new o.default()]; | |
return t; | |
}(); | |
e.default = i; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(27); | |
var o = n(44); | |
var i = n(40); | |
var a = n(39); | |
n(38); | |
var s = function () { | |
function t(t, e, n, r) { | |
this.selectorQuerier = t; | |
this.objectEncoder = e; | |
this.encryptor = n; | |
this.throttler = r; | |
this.profilers = {}; | |
} | |
t.prototype.profile = function (e) { | |
if (e) { | |
this.profileForm("form[name=\"" + e + "\"]"); | |
} else { | |
var n = [".fwcim-form"]; | |
for (var r = 0; r < t.AUTO_BIND_FORM_IDS.length; r++) { | |
var o = t.AUTO_BIND_FORM_IDS[r]; | |
n.push("#" + o, "form[name=\"" + o + "\"]"); | |
} | |
n.push("form[method=\"POST\"][action^=\"/ap\"]"); | |
this.profileForm(n.join(", ")); | |
} | |
}; | |
t.prototype.profileForm = function (e) { | |
for (var n = this.selectorQuerier.querySelectorAll(e), o = 0; o < n.length; o++) { | |
var i = n[o]; | |
var a = i.getAttribute(t.FWCIM_ID_PROPERTY); | |
if (!a) { | |
a = this.generateRandomIdentifier(); | |
i.setAttribute(t.FWCIM_ID_PROPERTY, a); | |
var s = new r.default(i, this.objectEncoder, this.encryptor); | |
this.profilers[a] = s; | |
s.profile(); | |
} | |
} | |
}; | |
t.prototype.stopProfileForm = function (e) { | |
for (var n = this.selectorQuerier.querySelectorAll(e), r = 0; r < n.length; r++) { | |
var o = n[r].getAttribute(t.FWCIM_ID_PROPERTY); | |
if (o && this.profilers[o]) { | |
this.profilers[o].stop(); | |
} | |
} | |
}; | |
t.prototype.report = function (e, n) { | |
if (typeof n != "function") { | |
throw new Error("You must specify a callback function."); | |
} | |
var r = this.selectorQuerier.querySelectorAll(e); | |
if (r.length < 1) { | |
n(new Error("A form with that selector could not be found.")); | |
} else { | |
var o = r[0].getAttribute(t.FWCIM_ID_PROPERTY); | |
if (typeof o == "string" && o.trim() !== "" && this.profilers[o] !== undefined) { | |
this.profilers[o].collect().then(function (t) { | |
return n(null, t); | |
}).catch(function (t) { | |
return n(t); | |
}); | |
} else { | |
n(new Error("The form has not been profiled yet.")); | |
} | |
} | |
}; | |
t.prototype.useMercury = function (t) {}; | |
t.prototype.profilePage = function (e) { | |
if (void 0 === e) { | |
e = {}; | |
} | |
if (this.globalProfiler === undefined) { | |
e.globalReportInit = new Date().getTime(); | |
var n = null; | |
try { | |
(n = window.sessionStorage || window.localStorage).setItem(t.LOCAL_STORAGE_TEST_KEY, "test"); | |
n.removeItem(t.LOCAL_STORAGE_TEST_KEY); | |
} catch (t) { | |
n = null; | |
} | |
var r = n ? new i.default(n) : new a.default(); | |
this.globalProfiler = new o.default(this.selectorQuerier, this.throttler, this.objectEncoder, this.encryptor, r, window.ue, e); | |
this.globalProfiler.profile(); | |
} | |
}; | |
t.prototype.generateRandomIdentifier = function (e) { | |
if (void 0 === e) { | |
e = 8; | |
} | |
var n = ""; | |
for (var r = 0; r < e; r++) { | |
n += t.ALPHABET.charAt(Math.floor(Math.random() * t.ALPHABET.length)); | |
} | |
return n; | |
}; | |
t.FWCIM_ID_PROPERTY = "data-fwcim-id"; | |
t.LOCAL_STORAGE_TEST_KEY = "fwcim-ls-test"; | |
t.ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; | |
t.AUTO_BIND_FORM_IDS = ["signin", "sign-in", "sign_in", "signInForm", "signInLeftForm", "signInRightForm", "signInMainForm", "newAccountForm", "forgotPasswordForm", "changeAccountInformationForm"]; | |
return t; | |
}(); | |
e.default = s; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = function () { | |
function t() {} | |
t.prototype.provide = function () { | |
return { | |
identifier: "ECdITeCs", | |
material: [1888420705, 2576816180, 2347232058, 874813317] | |
}; | |
}; | |
return t; | |
}(); | |
e.default = r; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(0); | |
var o = function () { | |
function t(t, e) { | |
this.keyProvider = t; | |
this.base64Encoder = e; | |
} | |
t.prototype.encrypt = function (t) { | |
return (0, r.__awaiter)(this, void 0, void 0, function () { | |
var e; | |
return (0, r.__generator)(this, function (n) { | |
return [2, (e = this.keyProvider.provide()).identifier + ":" + this.base64Encoder.encode(this.doEncrypt(t, e.material))]; | |
}); | |
}); | |
}; | |
t.prototype.doEncrypt = function (t, e) { | |
if (t.length === 0) { | |
return ""; | |
} | |
for (var n = Math.ceil(t.length / 4), r = [], o = 0; o < n; o++) { | |
r[o] = (t.charCodeAt(o * 4) & 255) + ((t.charCodeAt(o * 4 + 1) & 255) << 8) + ((t.charCodeAt(o * 4 + 2) & 255) << 16) + ((t.charCodeAt(o * 4 + 3) & 255) << 24); | |
} | |
for (var i = Math.floor(6 + 52 / n), a = r[0], s = r[n - 1], u = 0; i-- > 0;) { | |
var c = (u += 2654435769) >>> 2 & 3; | |
for (var l = 0; l < n; l++) { | |
a = r[(l + 1) % n]; | |
s = r[l] += (s >>> 5 ^ a << 2) + (a >>> 3 ^ s << 4) ^ (u ^ a) + (e[l & 3 ^ c] ^ s); | |
} | |
} | |
var f = []; | |
for (var h = 0; h < n; h++) { | |
f[h] = String.fromCharCode(r[h] & 255, r[h] >>> 8 & 255, r[h] >>> 16 & 255, r[h] >>> 24 & 255); | |
} | |
return f.join(""); | |
}; | |
return t; | |
}(); | |
e.default = o; | |
}, function (e, n, r) { | |
n.__esModule = 1; | |
var o = function () { | |
function e() {} | |
e.prototype.encode = function (t) { | |
if (JSON && JSON.stringify) { | |
return JSON.stringify(t); | |
} else { | |
return this.encodeWithPolyfill(t); | |
} | |
}; | |
e.prototype.encodeWithPolyfill = function (e) { | |
if (e === null || this.isNumberNaN(e)) { | |
return "null"; | |
} | |
if (typeof e == "number") { | |
return "" + e; | |
} | |
if (typeof e == "boolean") { | |
if (e) { | |
return "true"; | |
} else { | |
return "false"; | |
} | |
} | |
if (typeof e == "object") { | |
if (this.isArray(e)) { | |
for (var n in e) { | |
if (e[n] !== undefined) { | |
t.push(this.encodeWithPolyfill(e[n])); | |
} else { | |
t.push("null"); | |
} | |
} | |
return "[" + t.join(",") + "]"; | |
} | |
t = []; | |
for (var r in e) { | |
if (e.hasOwnProperty(r) && e[r] !== undefined) { | |
t.push("\"" + this.jsonEscape(r) + "\":" + this.encodeWithPolyfill(e[r])); | |
} | |
} | |
return "{" + t.join(",") + "}"; | |
} | |
if (e === undefined) { | |
throw new Error("Undefined values cannot be stringified."); | |
} | |
return "\"" + this.jsonEscape(e) + "\""; | |
}; | |
e.prototype.isArray = function (t) { | |
if (Array.isArray) { | |
return Array.isArray(t); | |
} else { | |
return toString.call(t) === "[object Array]"; | |
} | |
}; | |
e.prototype.isNumberNaN = function (t) { | |
return typeof t == "number" && isNaN(t); | |
}; | |
e.prototype.jsonEscape = function (t) { | |
return t.toString().replace(/[\\"\u0000-\u001F\u2028\u2029]/g, function (t) { | |
if (e.ESCAPED_CHARACTERS.hasOwnProperty(t)) { | |
return e.ESCAPED_CHARACTERS[t]; | |
} else { | |
return "\\u" + (t.charCodeAt(0) + 65536).toString(16).substring(1); | |
} | |
}); | |
}; | |
e.ESCAPED_CHARACTERS = { | |
"\"": "\\\"", | |
"\\": "\\\\", | |
"\b": "\\b", | |
"\n": "\\n", | |
"\f": "\\f", | |
"\r": "\\r", | |
"\t": "\\t" | |
}; | |
return e; | |
}(); | |
n.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = function () { | |
function t(t, e, n, r) { | |
this.jsonEncoder = t; | |
this.utf8Encoder = e; | |
this.hexEncoder = n; | |
this.crc32 = r; | |
} | |
t.prototype.encode = function (e) { | |
var n = this.utf8Encoder.encode(this.jsonEncoder.encode(e)); | |
return this.hexEncoder.encode(this.crc32.calculate(n)) + t.CRC_JSON_SEPARATOR + n; | |
}; | |
t.CRC_JSON_SEPARATOR = "#"; | |
return t; | |
}(); | |
e.default = r; | |
}, function (t, e) { | |
t.exports = function (t) { | |
if (!t.webpackPolyfill) { | |
t.deprecate = function () {}; | |
t.paths = []; | |
t.children ||= []; | |
Object.defineProperty(t, "loaded", { | |
enumerable: 1, | |
get: function () { | |
return t.l; | |
} | |
}); | |
Object.defineProperty(t, "id", { | |
enumerable: 1, | |
get: function () { | |
return t.i; | |
} | |
}); | |
t.webpackPolyfill = 1; | |
} | |
return t; | |
}; | |
}, function (t, e, n) { | |
(function (t, r) { | |
var o; | |
(function () { | |
if (typeof t == "object" && t) { | |
t.exports; | |
} | |
var i = typeof r == "object" && r; | |
function a(t) { | |
this.message = t; | |
} | |
function s(t) { | |
throw new a(t); | |
} | |
if (i.global !== i) { | |
i.window; | |
} | |
(a.prototype = new Error()).name = "InvalidCharacterError"; | |
var u = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; | |
var c = /[\t\n\f\r ]/g; | |
var l = { | |
encode: function (t) { | |
var e; | |
var n; | |
var r; | |
var o; | |
t = String(t); | |
if (/[^\0-\xFF]/.test(t)) { | |
s("The string to be encoded contains characters outside of the Latin1 range."); | |
} | |
var i = t.length % 3; | |
var a = ""; | |
for (var c = -1, l = t.length - i; ++c < l;) { | |
e = t.charCodeAt(c) << 16; | |
n = t.charCodeAt(++c) << 8; | |
r = t.charCodeAt(++c); | |
a += u.charAt((o = e + n + r) >> 18 & 63) + u.charAt(o >> 12 & 63) + u.charAt(o >> 6 & 63) + u.charAt(o & 63); | |
} | |
if (i == 2) { | |
e = t.charCodeAt(c) << 8; | |
n = t.charCodeAt(++c); | |
a += u.charAt((o = e + n) >> 10) + u.charAt(o >> 4 & 63) + u.charAt(o << 2 & 63) + "="; | |
} else if (i == 1) { | |
o = t.charCodeAt(c); | |
a += u.charAt(o >> 2) + u.charAt(o << 4 & 63) + "=="; | |
} | |
return a; | |
}, | |
decode: function (t) { | |
var e; | |
var n; | |
var r = (t = String(t).replace(c, "")).length; | |
if (r % 4 == 0) { | |
r = (t = t.replace(/==?$/, "")).length; | |
} | |
if (r % 4 == 1 || /[^+a-zA-Z0-9/]/.test(t)) { | |
s("Invalid character: the string to be decoded is not correctly encoded."); | |
} | |
var o = 0; | |
var i = ""; | |
for (var a = -1; ++a < r;) { | |
n = u.indexOf(t.charAt(a)); | |
e = o % 4 ? e * 64 + n : n; | |
if (o++ % 4) { | |
i += String.fromCharCode(e >> (o * -2 & 6) & 255); | |
} | |
} | |
return i; | |
}, | |
version: "0.1.0" | |
}; | |
if ((o = function () { | |
return l; | |
}.call(e, n, e, t)) !== undefined) { | |
t.exports = o; | |
} | |
})(); | |
}).call(this, n(72)(t), n(4)); | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(73); | |
var o = function () { | |
function t() {} | |
t.prototype.encode = function (t) { | |
return (0, r.encode)(t); | |
}; | |
return t; | |
}(); | |
e.default = o; | |
}, function (t, e, n) { | |
e.__esModule = 1; | |
var r = n(74); | |
var o = n(71); | |
var i = n(29); | |
var a = n(70); | |
var s = n(28); | |
var u = n(69); | |
var c = n(68); | |
var l = n(67); | |
var f = n(5); | |
var h = n(3); | |
var d = n(8); | |
var p = n(34); | |
var _ = n(31); | |
var m = ["af", "cf", "fn"]; | |
var y = window; | |
var v = { | |
execute: new Date().getTime() | |
}; | |
if (!y.fwcim && !y.__fwcimLoaded) { | |
y.__fwcimLoaded = 1; | |
var E = new l.default(new h.default(), new o.default(new a.default(), new s.default(), new i.default(), new f.default()), new u.default(new c.default(), new r.default()), new d.default()); | |
y.fwcim = E; | |
if (void 0 !== P && typeof P.when == "function") { | |
var w = new Date().getTime() + Math.random(); | |
function A(t) { | |
var e = m[t]; | |
P.when(e).execute("fwcim-global-profiler-" + e + "-" + w, function () { | |
v[e] = new Date().getTime(); | |
}); | |
} | |
for (var g = 0; g < m.length; g++) { | |
A(g); | |
} | |
P.when.apply(P, m).execute("fwcim-global-profiler-" + w, function () { | |
setTimeout(function () { | |
E.profilePage(v); | |
}, 2500); | |
}); | |
} | |
var T = new p.default("https://d35uxhjf90umnp.cloudfront.net/index.js"); | |
function b() { | |
v.load = new Date().getTime(); | |
setTimeout(function () { | |
if (y.fwcimCmd && y.fwcimCmd.length) { | |
var t = y.fwcimCmd.splice(0); | |
new _.default(E, t).run(); | |
} | |
}, 500); | |
setTimeout(function () { | |
E.profilePage(v); | |
}, 15000); | |
T.fetch(window.location.host); | |
} | |
if (typeof document.readyState == "string" && document.readyState === "loading") { | |
document.addEventListener("readystatechange", function () { | |
if (document.readyState !== "loading") { | |
b(); | |
} | |
}); | |
document.addEventListener("DOMContentLoaded", b); | |
} else { | |
b(); | |
} | |
} | |
}, function (t, e, n) { | |
n(30); | |
t.exports = n(75); | |
}]); | |
}; | |
p = window.AmazonUIPageJS || window.P; | |
attribute = p._namespace || p.attributeErrors; | |
namespacedP = attribute ? attribute("FWCIMAssets", "") : p; | |
if (namespacedP.guardFatal) { | |
namespacedP.guardFatal(packageFunction)(namespacedP, window); | |
} else { | |
namespacedP.execute(function () { | |
packageFunction(namespacedP, window); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment