Skip to content

Instantly share code, notes, and snippets.

@miketaylr miketaylr/pixel.js
Created Sep 11, 2018

Embed
What would you like to do?
/*! 2018-06-28 */
!function (a) {
function b(d) {
if (c[d]) return c[d].exports;
var e = c[d] = {
exports: {
},
id: d,
loaded: !1
};
return a[d].call(e.exports, e, e.exports, b),
e.loaded = !0,
e.exports
}
var c = {
};
b.m = a,
b.c = c,
b.p = '/',
b(0)
}([function (a, b, c) {
a.exports = c(1)
},
function (a, b, c) {
'use strict';
!function (a, b, d) {
var e = c(2),
f = function (a, b) {
this.a = a,
this.d = b,
this.e = e()
};
f.g = {
acrobat: c(3),
adCollision: c(4),
browser: c(6),
browserDetection: c(8),
canvas: c(9),
click: c(10),
color: c(12),
cookieStuffing: c(13),
dimensions: c(14),
flash: c(15),
flashDetection: c(16),
headless: c(17),
java: c(18),
mimeTypes: c(19),
mouseover: c(20),
popup: c(21),
proxy: c(22),
settings: c(24),
time: c(25),
video: c(26),
viewability: c(31),
wmp: c(32)
};
var g = c(33);
f.prototype.i = function (a) {
for (var b = this, c = {
}, d = {
}, e = 0, h = a.length, i = function (a, f) {
if (!c[a]) {
c[a] = !0;
for (var i in f) f.hasOwnProperty(i) && (d[i] = f[i]);
++e < h || (d.p01 = b.e.j(), g.k(b.a.url, d, b.a))
}
}, j = function (a) {
var c,
d = {
};
for (c in b.d) b.d.hasOwnProperty(c) && (d[c] = b.d[c]);
for (c in a) a.hasOwnProperty(c) && (d[c] = a[c]);
return d
}, k = function (a, c) {
var d;
d = a ? b.a.auxUrl + '/' + a : b.a.auxUrl + '/undefined',
g.l(d, j(c), b.a)
}, l = 0; l < h; ++l) f.g[a[l]] ? f.g[a[l]](i, b, k) : i(a[l], {
})
};
var h,
i = function (a, c, d) {
c = c || {
},
new f(d, c).i(a),
b.fqPixel.toString() !== i.toString() && (b.fqPixel = i, setTimeout(function () {
Polyfill.n(b.fqPixel.toString) && b.fqPixel.toString() === i.toString() || g.l(d.auxUrl + '/overwritten', {
f: String(b.fqPixel)
})
}, 1000))
};
h = i.toString(),
b.fqPixel && b.fqPixel.toString() === h || (b.fqPixel = i)
}(document, window, navigator)
},
function (a, b) {
var c = function () {
var a = + new Date;
return {
o: function () {
return a
},
j: function () {
return new Date - a
}
}
};
a.exports = c
},
function (a, b) {
a.exports = function (a) {
'use strict';
var b = !1;
if ('undefined' != typeof navigator && navigator) try {
if (navigator.userAgent.toLowerCase().indexOf('chrome') > - 1) {
for (var c in navigator.plugins) if (navigator.plugins.hasOwnProperty(c) && ('Chrome PDF Viewer' === navigator.plugins[c].name || 'Adobe Acrobat' === navigator.plugins[c].name)) {
b = !0;
break
}
} else if (navigator.userAgent.toLowerCase().indexOf('msie') > - 1) {
var d;
try {
d = new ActiveXObject('AcroPDF.PDF')
} catch (e) {
}
if (!d) try {
d = new ActiveXObject('PDF.PdfCtrl')
} catch (e) {
}
d && (b = !0)
} else navigator.plugins && navigator.plugins['Adobe Acrobat'] && (b = !0)
} catch (e) {
}
a('acrobat', {
p02: b
})
}
},
function (a, b, c) {
a.exports = function (a, b, d) {
'use strict';
a('adCollision', {
});
var e = c(5),
f = function (a) {
for (var b = 0, c = a; c !== a.top; c = c.parent) b++;
return b
},
g = function () {
if ('undefined' == typeof window || null === window) return [];
var a = function (b) {
var c = [
b
];
if (0 === b.length) return c;
for (var d = 0; d < b.length; d++) c = c.concat(a(b[d]));
return c
};
return a(window.top)
}(),
h = {
domain: '*',
p0a: !0,
p0b: function (a) {
if (void 0 === a || null === a) return {
};
var b = {
};
for (var c in a) if (a.hasOwnProperty(c)) {
var d = f(a[c]);
b[d] = b.hasOwnProperty(d) ? ++b[d] : 1
}
return b
}(g),
p0c: function (a) {
var b = 0;
for (var c in a) a.hasOwnProperty(c) && a[c].length > b && (b = a[c].length);
return b
}(g),
p0d: f(window),
p07: 0,
p08: 0,
p09: 0
};
setTimeout(function () {
window.postMessage && j(e.q.stringify(h), g)
}, 2000);
var i = function (a) {
var b = {
};
try {
b = e.q.parse(a.data)
} catch (err) {
return
}
b.hasOwnProperty('p09') && (b.p0a ? (b.org === h.org && ++h.p07, b.cmp === h.cmp && ++h.p08, ++h.p09) : (b.org === h.org && b.p07 >= h.p07 ? h.p07 = b.p07 : a.source.postMessage(e.q.stringify(h), h.domain), b.cmp === h.cmp && b.p08 >= h.p08 ? h.p08 = b.p08 : a.source.postMessage(e.q.stringify(h), h.domain), b.p09 >= h.p09 ? h.p09 = b.p09 : a.source.postMessage(e.q.stringify(h), h.domain)), d('a', {
p0a: b.p0a,
p0b: e.q.stringify(h.p0b),
p0c: h.p0c,
p0d: h.p0d,
p07: h.p07,
p08: h.p08,
p09: h.p09
}))
},
j = function (a, b) {
var c = e.q.parse(a).domain;
if (void 0 !== b && null !== b && void 0 !== a && null !== a) for (var d in b) b.hasOwnProperty(d) && b[d].postMessage(a, c)
};
window.addEventListener ? window.addEventListener('message', i) : window.attachEvent && window.attachEvent('message', i)
}
},
function (a, b) {
'use strict';
try {
d.documentMode = ''
} catch (e) {
}
var c = 'number' == typeof document.documentMode || eval('/*@cc_on!@*/!1');
try {
d.documentMode = _documentMode
} catch (e) {
}
var e = /^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code\]\s*}\s*$/i,
f = /^\[object .+?Constructor\]$/,
g = Object.prototype.toString,
h = Function.prototype.toString,
i = function (a, b, c, d) {
'function' == typeof a.addEventListener ? a.addEventListener(b, c, d || !1) : 'function' == typeof a.attachEvent && a.attachEvent(b, c)
},
j = function (a) {
var b = typeof a;
return 'function' === b ? e.test(h.call(a)) : a && 'object' === b && f.test(g.call(a)) || !1
},
k = function (a, b) {
return j(a) ? a : b
},
l = j(Function.prototype.bind) ? function (a, b) {
return Function.prototype.bind.call(a, b)
}
: function (a, b) {
if ('function' != typeof a) throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable');
var c = Array.prototype.slice.call(arguments, 1),
d = a,
e = function () {
},
f = function () {
return d.apply(this instanceof e ? this : b, c.concat(Array.prototype.slice.call(arguments)))
};
return this.prototype && (e.prototype = this.prototype),
f.prototype = new e,
f
},
m = k(Array.prototype.map, function (a) {
var b,
c,
d;
if (!this) throw new TypeError('this is null or not defined');
var e = Object(this),
f = e.length >>> 0;
if ('function' != typeof a) throw new TypeError(a + ' is not a function');
for (arguments.length > 1 && (b = arguments[1]), c = new Array(f), d = 0; d < f; ) {
var g,
h;
d in e && (g = e[d], h = a.call(b, g, d, e), c[d] = h),
d++
}
return c
}),
n = k(Array.isArray, function (a) {
return '[object Array]' === Object.prototype.toString.call(a)
}),
o = k(Array.prototype.filter, function (a) {
if (void 0 === this || null === this) throw new TypeError;
var b = Object(this),
c = b.length >>> 0;
if ('function' != typeof a) throw new TypeError;
for (var d = [
], e = arguments.length >= 2 ? arguments[1] : void 0, f = 0; f < c; f++) if (f in b) {
var g = b[f];
a.call(e, g, f, b) && d.push(g)
}
return d
}),
p = window.visualViewport ? function () {
return window.visualViewport.scale
}
: function () {
var a = window;
try {
window.top.location.hostname && (a = window.top.window)
} catch (e) {
}
var b = function () {
return null
},
c = function () {
return Math.round(a.outerWidth / a.innerWidth * 100) / 100
},
d = function () {
return Math.round(a.document.documentElement.clientWidth / a.innerWidth * 100) / 100
},
e = function () {
return (90 == Math.abs(a.orientation) ? screen.height : screen.width) / a.innerWidth
},
f = function () {
var b = a.outerWidth / a.innerWidth;
return Math.round(100 * b) / 100
};
return function () {
var g = b;
return a.chrome && !(a.opera || navigator.userAgent.indexOf(' Opera') >= 0) ? g = c : Object.prototype.toString.call(a.HTMLElement).indexOf('Constructor') > 0 ? g = d : 'orientation' in a && 'webkitRequestAnimationFrame' in a ? g = e : navigator.userAgent.indexOf('Opera') >= 0 ? g = f : a.devicePixelRatio && (g = c),
g
}()
}(),
q = k(Array.prototype.indexOf, function (a, b) {
var c;
if (!this) throw new TypeError('"this" is null or not defined');
var d = Object(this),
e = d.length >>> 0;
if (0 === e) return - 1;
var f = 0 | b;
if (f >= e) return - 1;
for (c = Math.max(f >= 0 ? f : e - Math.abs(f), 0); c < e; ) {
if (c in d && d[c] === a) return c;
c++
}
return - 1
}),
r = k(window.getComputedStyle, function () {
function a(b, c, d) {
var e,
f = b.document && b.currentStyle[c].match(/([\d\.]+)(%|cm|em|in|mm|pc|pt|)/) || [
0,
0,
''
],
g = f[1],
h = f[2];
return d = d ? /%|em/.test(h) && b.parentElement ? a(b.parentElement, 'fontSize', null) : 16 : d,
e = 'fontSize' === c ? d : /width/i.test(c) ? b.clientWidth : b.clientHeight,
'%' === h ? g / 100 * e : 'cm' === h ? 0.3937 * g * 96 : 'em' === h ? g * d : 'in' === h ? 96 * g : 'mm' === h ? 0.3937 * g * 96 / 10 : 'pc' === h ? 12 * g * 96 / 72 : 'pt' === h ? 96 * g / 72 : g
}
function b(a, b) {
var c = 'border' === b ? 'Width' : '',
d = b + 'Top' + c,
e = b + 'Right' + c,
f = b + 'Bottom' + c,
g = b + 'Left' + c;
a[b] = (a[d] === a[e] && a[d] === a[f] && a[d] === a[g] ? [
a[d]
] : a[d] === a[f] && a[g] === a[e] ? [
a[d],
a[e]
] : a[g] === a[e] ? [
a[d],
a[e],
a[f]
] : [
a[d],
a[e],
a[f],
a[g]
]).join(' ')
}
function c(c) {
var d,
e = this,
f = c.currentStyle,
g = a(c, 'fontSize'),
h = function (a) {
return '-' + a.toLowerCase()
};
for (d in f) if (Array.prototype.push.call(e, 'styleFloat' === d ? 'float' : d.replace(/[A-Z]/, h)), 'width' === d) e[d] = c.offsetWidth + 'px';
else if ('height' === d) e[d] = c.offsetHeight + 'px';
else if ('styleFloat' === d) e['float'] = f[d];
else if (/margin.|padding.|border.+W/.test(d) && 'auto' !== e[d]) e[d] = Math.round(a(c, d, g)) + 'px';
else if (/^outline/.test(d)) try {
e[d] = f[d]
} catch (error) {
e.outlineColor = f.color,
e.outlineStyle = e.outlineStyle || 'none',
e.outlineWidth = e.outlineWidth || '0px',
e.outline = [
e.outlineColor,
e.outlineWidth,
e.outlineStyle
].join(' ')
} else e[d] = f[d];
b(e, 'margin'),
b(e, 'padding'),
b(e, 'border'),
e.fontSize = Math.round(g) + 'px'
}
return c.prototype = {
constructor: c,
getPropertyPriority: function () {
throw new Error('NotSupportedError: DOM Exception 9')
},
getPropertyValue: function (a) {
return this[a.replace(/-\w/g, function (a) {
return a[1].toUpperCase()
})]
},
item: function (a) {
return this[a]
},
removeProperty: function () {
throw new Error('NoModificationAllowedError: DOM Exception 7')
},
setProperty: function () {
throw new Error('NoModificationAllowedError: DOM Exception 7')
},
getPropertyCSSValue: function () {
throw new Error('NotSupportedError: DOM Exception 9')
}
},
function (a) {
return new c(a)
}
}()),
s = {
n: j,
r: k,
s: l,
t: function (a) {
return n(a)
},
u: function (a, b) {
return o.call(a, b)
},
v: function (a, b) {
return m.call(a, b)
},
z: function (a, b, c) {
return q.call(a, b, c)
},
A: function (a) {
return r(a)
},
q: window.JSON || {
parse: function (a) {
return eval('(' + a + ')')
},
stringify: function () {
var a = Object.prototype.toString,
b = Array.isArray || function (b) {
return '[object Array]' === a.call(b)
},
c = {
'"': '\\"',
'\\': '\\\\',
'': '\\b',
'\f': '\\f',
'\n': '\\n',
'\r': '\\r',
'\t': '\\t'
},
d = function (a) {
return c[a] || '\\u' + (a.charCodeAt(0) + 65536).toString(16).substr(1)
},
e = /[\\"\u0000-\u001F\u2028\u2029]/g;
return function f(c) {
if (null === c) return 'null';
if ('number' == typeof c) return isFinite(c) ? c.toString() : 'null';
if ('boolean' == typeof c) return c.toString();
if ('object' == typeof c) {
if ('function' == typeof c.toJSON) return f(c.toJSON());
if (b(c)) {
for (var g = '[', h = 0; h < c.length; h++) g += (h ? ', ' : '') + f(c[h]);
return g + ']'
}
if ('[object Object]' === a.call(c)) {
var i = [
];
for (var j in c) c.hasOwnProperty(j) && i.push(f(j) + ': ' + f(c[j]));
return '{' + i.join(', ') + '}'
}
}
return '"' + c.toString().replace(e, d) + '"'
}
}()
},
B: p
};
a.exports = s
},
function (a, b, c) {
a.exports = function (a) {
'use strict';
function b(a, b) {
for (var c = (2 * i).toString(36) + '.', d = 0; d < a.length; d++) {
for (var e = 0; e < a[d].length; e++) c += a[d][e].toString(parseInt(h, 2) + e);
c += b[d]
}
return eval(c)
}
var d = c(5),
e = c(7),
f = [
[19632,
339,
19223],
[
291074,
897,
795
],
[
24856,
18039
]
],
g = [
'.',
'O',
''
],
h = 11110,
i = 983120776,
j = window.screen,
k = [
];
if (window.navigator.plugins) for (var l = 0; l < window.navigator.plugins.length; l++) k.push(window.navigator.plugins[l].name);
var m = b(f, g),
n = {
p0e: window.navigator.userAgent,
p0f: window.history.length,
p0g: window.navigator.vendor,
p0h: window.navigator.platform,
p0i: k.length ? k.join(' ; ') : null,
p0j: void 0 !== m ? d.q.stringify(e.C(m)) : null,
p0k: window.navigator.cookieEnabled,
p0l: 'undefined' != typeof document.defaultCharset ? document.defaultCharset : null,
p0m: 'undefined' != typeof window.D ? window.D : null,
p0n: 'function' == typeof document.replaceNode,
p0o: 'function' == typeof document.compareDocumentPosition,
p0p: 'undefined' != typeof window.screen.fontSmoothingEnabled && window.screen.fontSmoothingEnabled,
p0q: e.E(),
p0r: document.hasFocus && document.hasFocus(),
p0s: e.F()
};
window.navigator.oscpu && (n.p0t = window.navigator.oscpu),
window.opera && (n.p0u = window.opera.buildNumber('inconspicuous')),
a('browser', n)
}
},
function (a, b, c) {
'use strict';
var e = c(5),
f = {
hidden: 'visibilitychange',
mozHidden: 'mozvisibilitychange',
msHidden: 'msvisibilitychange',
webkitHidden: 'webkitvisibilitychange'
},
g = !0,
h = !1,
i = {
G: [
],
H: [
]
},
j = {
G: function (a) {
for (var b = 0, c = i.G.length; b < c; ++b) 'function' == typeof i.G[b] && i.G[b](a)
},
H: function (a) {
for (var b = 0, c = i.G.length; b < c; ++b) 'function' == typeof i.H[b] && i.H[b](a)
}
},
k = null,
l = null,
m = /^(\s+)?(about|javascript):/,
n = document.documentMode;
try {
d.documentMode = ''
} catch (e) {
}
var o = 'number' == typeof document.documentMode || eval('/*@cc_on!@*/!1');
try {
d.documentMode = n
} catch (e) {
}
var p = {
I: [
'i',
'n',
'n',
'e',
'r',
'H',
'T',
'M',
'L'
].join(''),
J: [
's',
'r',
'c'
].join(''),
K: o,
L: function () {
},
E: function () {
for (var a in f) if (f.hasOwnProperty(a) && 'undefined' != typeof document[a]) return !document[a];
if ('undefined' != typeof document.hasFocus) {
var b = document;
return p.M() && (b = parent.document),
b.hasFocus()
}
return g
},
N: function (a, b, c, d) {
'function' == typeof a.addEventListener ? a.addEventListener(b, c, d || !1) : 'function' == typeof a.attachEvent && a.attachEvent(b, c)
},
O: function (a) {
for (var b in f) if (f.hasOwnProperty(b) && 'undefined' != typeof document[b]) return p.N(document, f[b], a, !1);
if ('onfocusin' in document) {
if (!h) {
var c = document;
p.M() && (c = parent.document),
c.onfocusin !== j.G && (i.G.push(document.onfocusin), c.onfocusin = j.G),
c.onfocusout !== j.H && (i.H.push(document.onfocusout), c.onfocusout = j.H),
h = !0
}
i.G.push(a),
i.H.push(a)
}
return !1
},
P: function (a, b, c, d) {
return 'function' == typeof a.removeEventListener ? a.removeEventListener(b, c, d || !1) : 'function' == typeof a.detachEvent && a.detachEvent(b, c)
},
Q: function (a) {
for (var b in f) if (f.hasOwnProperty(b) && 'undefined' != typeof document[b]) return p.P(document, f[b], a, !1);
if ('onfocusin' in document) {
var c,
d,
e = [
],
g = [
];
for (c = 0, d = i.G.length; c < d; ++c) e[c] !== a && e.push(a);
for (i.G = e, c = 0, d = i.H.length; c < d; ++c) g[c] !== a && g.push(a);
i.H = g
}
return !1
},
R: function (a) {
var b = !1;
try {
b = a.parent && a.parent.location.hostname && a.frameElement && (m.test(a.frameElement.src) || m.test(a.location.href.toString()))
} catch (e) {
}
return b
},
M: function () {
return null === l && (l = p.R(window)),
l
},
S: function () {
if (null === k) try {
k = !!window.top.location.hostname
} catch (e) {
k = !1
}
return k
},
F: function () {
return window.top.location !== window.location
},
T: function () {
var a = document.getElementsByTagName('body') [0],
b = document.documentElement;
return {
w: Math.max(a.clientWidth, b.clientWidth, a.scrollWidth, b.scrollWidth, a.offsetWidth, b.offsetWidth, 0),
h: Math.max(a.clientHeight, b.clientHeight, a.scrollHeight, b.scrollHeight, a.offsetHeight, b.offsetHeight, 0)
}
},
U: function () {
if ('undefined' != typeof window.innerWidth) return {
w: Math.max(window.innerWidth || 0),
h: Math.max(window.innerHeight || 0)
};
if ('undefined' != typeof document.documentElement && 'CSS1Compat' === document.compatMode) return {
w: Math.max(document.documentElement.clientWidth || 0),
h: Math.max(document.documentElement.clientHeight || 0)
};
var a = document.getElementsByTagName('body') [0];
return {
w: Math.max(a.clientWidth || 0),
h: Math.max(a.clientHeight || 0)
}
},
V: function () {
return Math.floor(1000000001 * Math.random())
},
W: function (a) {
var b = 0,
c = 0;
if (a.offsetParent) do {
b += a.offsetLeft,
c += a.offsetTop
} while (a = a.offsetParent);
return {
x: b,
y: c
}
},
X: function (a) {
return 'object' != typeof a ? '' : e.q.stringify(a).replace(/([a-z]{3})/g, function (a) {
return '|' + parseInt(a, 36) + '|'
}).split('"').reverse().join('*')
},
Y: function (a) {
if (a && 'undefined' != typeof a.style) {
var b = a.style;
b.pointerEvents = 'none',
b.width = '1px',
b.height = '1px',
b.position = 'absolute'
}
},
C: function (a) {
if (null != a) {
for (var b = [
], c = a.length >>> 0; c--; ) b[c] = a[c];
return b
}
},
Z: function (a) {
var b = {
x: a.x,
y: a.y,
top: a.top,
right: a.right,
bottom: a.bottom,
left: a.left,
width: a.width,
height: a.height
};
return b.x && b.y || (b.x = b.left, b.y = b.top),
b.width && b.height || (b.width = b.right - b.left, b.height = b.bottom - b.top),
b
}
};
a.exports = p
},
function (a, b) {
a.exports = function (a) {
var b = window.navigator,
c = {
p0v: document.documentMode,
p10: !!(window.chrome && 'WebkitAppearance' in document.documentElement.style),
p11: !(!window.chrome || !window.chrome.webstore),
p12: !!window.sidebar,
p13: 'MozAppearance' in document.documentElement.style,
p14: 'undefined' != typeof InstallTrigger,
p15: 'x' === eval('(function x(){})[-6]'),
p16: 'a' === /a/[ - 1],
p17: !!window.globalStorage,
p18: 'x' === eval('(function x(){})[-5]'),
p19: !(!document.all || !window.XMLHttpRequest),
p1a: !(!document.all || window.XMLHttpRequest),
p1b: !!window.ActiveXObject,
p1c: !(!document.all || !document.compatMode),
p1d: !(!document.all || !document.querySelector),
p1e: !(!document.all || document.querySelector),
p1f: !(!document.all || !window.XMLHttpRequest || document.querySelector),
p1g: - 1 !== b.appVersion.indexOf('MSIE 7.'),
p1h: eval('!+\'\\v1\''),
p1i: eval('\'\\v\' == \'v\''),
p1j: !(!document.all || !document.addEventListener),
p1k: !(!document.all || document.addEventListener),
p1l: !(!document.all || !window.atob),
p1m: !(!document.all || window.atob),
p1n: !(!document.all || !document.querySelector || document.addEventListener),
p1o: !(!document.all || !document.addEventListener || window.atob),
p1p: eval('/*@cc_on!@*/false'),
p1q: !(!eval('/*@cc_on!@*/false') || 10 !== document.documentMode),
p1r: !!('behavior' in document.documentElement.style && '-ms-user-select' in document.documentElement.style),
p1s: undefined !== document.body.style.msTouchAction,
p1t: !!window.navigator.msPointerEnabled,
p1u: !!('-ms-scroll-limit' in document.documentElement.style && '-ms-ime-align' in document.documentElement.style),
p1v: '[object OperaMini]' === Object.prototype.toString.call(window.operamini),
p20: /^function \(/.test([].sort),
p21: !(!window.opera || !window.opera.version()),
p22: !!window.opera,
p23: /constructor/i.test(window.HTMLElement),
p24: !!(/constructor/i.test(window.HTMLElement) && 'WebkitAppearance' in document.documentElement.style),
p25: !!(window.chrome && 'WebkitAppearance' in document.documentElement.style)
};
try {
c.p26 = '//' == /a/.$
} catch (e) {
c.p26 = !1
}
a('browserDetection', c)
}
},
function (a, b, c) {
a.exports = function (a, b, d) {
'use strict';
function e(a) {
return a %= 2147483647,
a <= 0 && (a += 2147483646),
function () {
return a = 16807 * a % 2147483647
}
}
function f(a, b, c) {
return a = (a - 1) / 2147483646,
c ? a * b : Math.floor(a * b)
}
function g(a, b, c) {
var d = b.createRadialGradient(f(a(), c.width), f(a(), c.height), f(a(), c.width), f(a(), c.width), f(a(), c.height), f(a(), c.width));
d.addColorStop(0, k[f(a(), k.length)]),
d.addColorStop(1, k[f(a(), k.length)]),
b.fillStyle = d
}
if (!window.CanvasRenderingContext2D) return a('canvas', {
p27: '["Unsupported"]'
});
var h,
i = document.createElement('canvas'),
j = [
],
k = [
'red',
'green',
'blue',
'yellow',
'white',
'purple',
'brown',
'black'
],
l = [
function (a, b, c) {
b.beginPath(),
b.arc(f(a(), c.width), f(a(), c.height), f(a(), Math.min(c.width, c.height)), f(a(), 2 * Math.PI, !0), f(a(), 2 * Math.PI, !0)),
b.stroke()
},
function (a, b, c) {
var d = (f(a(), 900) + 100).toString();
b.font = c.height / 1.5 + 'px LorZarozzorArbgwaoth',
b.strokeText(d, f(a(), c.width), f(a(), c.height), f(a(), c.width))
},
function (a, b, c) {
b.beginPath(),
b.moveTo(f(a(), c.width), f(a(), c.height)),
b.bezierCurveTo(f(a(), c.width), f(a(), c.height), f(a(), c.width), f(a(), c.height), f(a(), c.width), f(a(), c.height)),
b.stroke()
},
function (a, b, c) {
b.beginPath(),
b.moveTo(f(a(), c.width), f(a(), c.height)),
b.quadraticCurveTo(f(a(), c.width), f(a(), c.height), f(a(), c.width), f(a(), c.height)),
b.stroke()
}
],
m = {
width: 200,
height: 200
},
n = b.a && b.a.picassoNumberOfShapes ? b.a.picassoNumberOfShapes : 5,
o = b.a && b.a.picassoStartingSeed ? b.a.picassoStartingSeed : 0;
!function (b, c, d) {
var j = e(b);
i.width = d.width,
i.height = d.height,
i.style.display = 'none',
h = i.getContext('2d');
for (var m = c - 1; m >= 0; m--) try {
g(j, h, d),
h.shadowBlur = f(j(), 50),
h.shadowColor = k[f(j(), k.length)],
(0, l[f(j(), l.length)]) (j, h, d),
h.fill()
} catch (err) {
return a('canvas', {
p27: '["Unsupported"]'
})
}
}(o, n, m);
var p = function (a, b) {
for (var c = a.getImageData(0, 0, b.width, b.height).data, d = 0, e = [
3,
7,
31
], f = 0, g = 0, h = c.length; g < h; g += 4) {
var i = d % 3,
j = (d + 1) % 3,
k = (d + 2) % 3;
f += e[i] * c[g] + e[j] * c[g + 1] + e[k] * c[g + 2],
d++
}
return f
}(h, m);
j.push({
seed: o,
iterations: n,
result: p
});
var q = c(5),
r = q.q.stringify(j);
return a('canvas', {
p27: r
})
}
},
function (a, b, c) {
a.exports = function (a, b, d) {
'use strict';
a('click', {
});
var e = c(7),
f = c(11),
g = f(b.d);
if (g) {
var h = !1,
i = function (a) {
if (!h) {
h = !0,
a = a || window.event;
var b,
c;
if (e.K) {
var f = document.body;
b = a.clientX + f.scrollLeft,
c = a.clientY + f.scrollTop
} else b = a.pageX,
c = a.pageY;
var g = a.currentTarget || a.srcElement || {
tagName: ''
};
d('c', {
p28: 'clickRes',
p29: b,
p2a: c,
p2b: g.tagName,
sc: 1
}),
document.removeEventListener ? document.removeEventListener('click', i, !1) : (document.onclick = null, document.detachEvent && document.detachEvent('onclick', i))
}
};
g.addEventListener ? g.addEventListener('click', i, !1) : (g.onclick = i, g.attachEvent && g.attachEvent('onclick', i))
}
}
},
function (a, b, c) {
'use strict';
var d = c(7),
e = function (a) {
var b = document;
d.M() && (b = parent.document);
var c = document;
if (a.ad) {
var e = c.getElementById(a.ad) || b.getElementById(a.ad);
if (e) return e
}
if (a.b) {
var f = c.getElementById(a.b) || b.getElementById(a.b);
if (f) {
var g = b.createElement('div');
return g.className = 'fq-beacon',
f.parentNode.insertBefore(g, f),
g
}
}
return c.body
};
a.exports = e
},
function (a, b) {
a.exports = function (a) {
'use strict';
var b = window.screen,
c = 'undefined' != typeof b.pixelDepth ? b.pixelDepth : '',
d = '';
c ? d = c : 'undefined' != typeof b.colorDepth && (d = b.colorDepth),
a('color', {
p2c: d,
p2d: c
})
}
},
function (a, b) {
a.exports = function (a) {
'use strict';
a('cookieStuffing', {
})
}
},
function (a, b, c) {
a.exports = function (a) {
'use strict';
var b = c(7),
d = b.T(),
e = b.U(),
f = window.screen,
g = {
p2g: 'undefined' != typeof f.width ? f.width : null,
p2h: 'undefined' != typeof f.height ? f.height : null,
p2i: 'undefined' != typeof f.availWidth ? f.availWidth : null,
p2j: 'undefined' != typeof f.availHeight ? f.availHeight : null,
p2k: d.h,
p2l: d.w,
p2m: e.h,
p2n: e.w,
p2o: 'undefined' != typeof window.devicePixelRatio ? window.devicePixelRatio : null
};
'undefined' != typeof f.deviceXDPI && f.deviceXDPI && (g.p2p = f.deviceXDPI),
'undefined' != typeof f.deviceYDPI && f.deviceYDPI && (g.p2q = f.deviceYDPI),
a('dimensions', g)
}
},
function (a, b) {
a.exports = function (a) {
'use strict';
a('flash', {
})
}
},
function (a, b) {
a.exports = function (a) {
'use strict';
a('flashDetection', {
})
}
},
function (a, b, c) {
a.exports = function (a, b) {
'use strict';
var d = c(5),
e = c(7),
f = c(11),
g = {
},
h = function (a) {
try {
return window.top[a]
} catch (e) {
}
return - 1
},
i = function (a, b, c) {
return a && - 1 !== a && b && - 1 !== b && c && - 1 !== c ? 'object' == typeof a && d.n(b) && d.n(c) && a instanceof b && a.timing instanceof c ? [
a.timing.hasOwnProperty('loadEventStart') || a.timing.hasOwnProperty('navigationStart') ? - 2 : Math.max(a.timing.loadEventStart - a.timing.navigationStart, - 1),
a.timing.hasOwnProperty('domainLookupEnd') || a.timing.hasOwnProperty('domainLookupStart') ? - 2 : Math.max(a.timing.domainLookupEnd - a.timing.domainLookupStart, - 1),
a.timing.hasOwnProperty('connectEnd') || a.timing.hasOwnProperty('connectStart') ? - 2 : Math.max(a.timing.connectEnd - a.timing.connectStart, - 1),
a.timing.hasOwnProperty('responseStart') || a.timing.hasOwnProperty('navigationStart') ? - 2 : Math.max(a.timing.responseStart - a.timing.navigationStart, - 1)
] : [
- 2,
- 2,
- 2,
- 2
] : [
- 1,
- 1,
- 1,
- 1
]
},
j = function (a) {
var b = a.join('');
return function () {
return window[b] && !d.n(window[b])
}
},
k = function (a, b) {
if ('string' != typeof a || 'string' != typeof b || b.length > a.length) return - 1;
for (var c = b.length, d = a.length, e = d - c, f = 0; f <= e; f++) {
if (b === a.substring(f, f + c)) return f
}
return - 1
},
l = [
function () {
return /PhantomJS/.test(navigator.userAgent)
},
function () {
return navigator.hasOwnProperty && navigator.hasOwnProperty('plugins') || 'undefined' != typeof PluginArray && !(navigator.plugins instanceof PluginArray)
},
function () {
return 'undefined' != typeof window.callphantom || 'undefined' != typeof window._ || 'undefined' != typeof window.aa
},
function () {
return !Function.prototype.bind || (Function.prototype.bind.toString().replace(/bind/g, 'Error') !== Error.toString() || Function.prototype.toString.toString().replace(/toString/g, 'Error') !== Error.toString())
},
function () {
var a;
try {
null[0]()
} catch (e) {
a = e
}
return k(a.stack, 'phantomjs') > - 1
},
function () {
return 'undefined' != typeof window.buffer
},
function () {
return 'undefined' != typeof window.emit
},
function () {
return 'undefined' != typeof window.spawn
},
function () {
return 'undefined' != typeof window.webdriver
},
function () {
return 'undefined' != typeof window.domautomation || 'undefined' != typeof window.domautomationcontroller
},
function () {
return 0 === window.outerWidth && 0 === window.outerHeight
},
j(['XML',
'Http',
'Request']),
j(['Intersection',
'Observer']),
j(['encode',
'URI',
'Component']),
function () {
return window.JSON && (!d.n(window.JSON.stringify) || !d.n(window.JSON.parse))
}
],
m = function () {
var a,
b,
c = window;
for (a = e.U(c), a.sd = Math.min(a.w, a.h); c !== window.top; ) {
c = c.parent;
try {
b = e.U(c),
b.sd = Math.min(b.w, b.h)
} catch (err) {
return a
}
if (b.sd < a.sd && (a = b), a.sd <= 5) return a
}
return a
}();
if (m && (g.p38 = m.w, g.p39 = m.h), window.chrome && d.n(window.chrome.csi)) {
var n = window.chrome.csi();
g.p3a = n.pageT,
g.p3b = n.onloadT - n.startE,
g.p3c = n.tran
}
g.p3d = h('outerWidth'),
g.p3e = h('outerHeight');
var o = h('innerHeight'),
p = h('innerWidth');
- 1 !== o && - 1 !== p && (g.p3f = p, g.p3g = o),
g.p3h = function () {
var a = function (a) {
for (var b; a; ) {
if (b = d.A(a, null), 'none' === b.getPropertyValue('display') || 'hidden' === b.getPropertyValue('visibility') || 'collapse' === b.getPropertyValue('visibility') || b.getPropertyValue('opacity') && b.getPropertyValue('opacity') < 0.1 || b.getPropertyValue('clip-path') && 'none' !== b.getPropertyValue('clip-path') || a.style.clipPath && 'none' !== a.style.clipPath) return !0;
a = a.parentElement
}
return !1
};
return function (b) {
for (var c = !1; b; ) {
if (c = a(b)) return !0;
var d = b.ownerDocument.defaultView || b.ownerDocument.parentWindow;
b = e.R(d) && d.frameElement
}
return c
}(f(b.d))
}();
for (var q = [
], r = 0, s = l.length; r < s; ++r) q.push(l[r]() ? 1 : 0);
q.length && (g.p3i = q.join('')),
g.p3j = !1,
setTimeout(function () {
var b = i(window.performance, window.Performance, window.PerformanceTiming);
g.p3k = b[0],
g.p3l = b[1],
g.p3m = b[2],
g.p3n = b[3];
var c = i(h('performance'), h('Performance'), h('PerformanceTiming'));
g.p3o = c[0],
g.p3p = c[1],
g.p3q = c[2],
g.p3r = c[3],
navigator.permissions && navigator.hasOwnProperty && !navigator.hasOwnProperty('permissions') ? navigator.permissions.query({
name: 'notifications'
}).then(function (b) {
g.p3j = 'denied' === Notification.permission && 'prompt' === b.state,
a('headless', g)
}) : a('headless', g)
}, 0)
}
},
function (a, b) {
a.exports = function (a) {
'use strict';
a('java', {
p3s: window.navigator.javaEnabled && window.navigator.javaEnabled()
})
}
},
function (a, b) {
a.exports = function (a) {
'use strict';
var b = window.navigator;
if ('undefined' == typeof b.mimeTypes) return a('mimeTypes', {
p3t: '',
p3u: '',
p3v: 0,
p40: 0
});
var c,
d = {
application: [
],
audio: [
],
video: [
]
},
e = {
application: 0,
audio: 0,
video: 0
},
f = [
],
g = {
application: '',
audio: '',
video: '',
other: ''
};
if (b.mimeTypes.length > 0) {
for (var h = 0, i = b.mimeTypes.length; h < i; ++h) {
var j = b.mimeTypes[h].type,
k = j.split('/');
if (k.length > 1) if (d[k[0]]) {
var l = k[0];
d[l][e[l]] = k[1];
for (var m = 2; m < k.length; m++) d[e[l]] = '/' + k[m];
++e[l]
} else f.push(b.mimeTypes[h].type);
else f.push(b.mimeTypes[h].type)
}
for (var n in d) d.hasOwnProperty(n) && d[n] && (g[n] = d[n].join(','))
}
c = {
p3t: g.application ? g.application : '',
p3u: g.other.length ? g.other.join(' ; ') : '',
p3v: 'undefined' != typeof b.mimeTypes ? b.mimeTypes.length : '',
p40: 'undefined' != typeof b.plugins ? b.plugins.length : ''
},
g.audio && (c.p41 = g.audio),
g.video && (c.p42 = g.video),
a('mimeTypes', c)
}
},
function (a, b, c) {
a.exports = function (a, b, d) {
'use strict';
a('m', {
});
for (var e = c(7), f = !1, g = function (a) {
if (!f) {
f = !0,
a = a || window.event;
var c,
g,
h = a.type.substring(0, 5),
i = {
p47: b.e.j()
};
if (e.K) {
var j = document.body;
c = a.clientX + j.scrollLeft,
g = a.clientY + j.scrollTop,
i.p44 = 'mouse'
} else 'touch' === h ? (c = a.touches[0].pageX, g = a.touches[0].pageY, i.p44 = 'touch') : (c = a.pageX, g = a.pageY, i.p44 = 'mouse');
i.p45 = c,
i.p46 = g,
d('m', i),
m()
}
}, h = [
'mousemove',
'touchstart'
], i = 0, j = h.length; i < j; ++i) {
var k = h[i];
if (document.addEventListener) document.addEventListener(k, g, !1);
else {
var l = 'on' + k;
document[l] = g,
document.attachEvent && document.attachEvent(l, g)
}
var m = function (a) {
return function () {
if (document.removeEventListener) document.removeEventListener(a, g, !1);
else {
var b = 'on' + a;
document[b] = null,
document.detachEvent && document.detachEvent(b, g)
}
}
}(k)
}
}
},
function (a, b, c) {
a.exports = function (a) {
'use strict';
a('popup', {
p48: c(7).E(),
p49: window.menubar ? window.menubar.visible : null,
p4a: window.toolbar ? window.toolbar.visible : null,
p4b: window.locationbar ? window.locationbar.visible : null
})
}
},
function (a, b, c) {
a.exports = function (a, b, d) {
'use strict';
var e = c(5);
a('p', {
});
var f = c(7),
g = c(2),
h = c(23),
i = [
'R',
'T',
'C',
'P',
'e',
'e',
'r',
'C',
'o',
'n',
'n',
'e',
'c',
't',
'i',
'o',
'n'
].join(''),
j = window[i] || window['moz' + i] || window['webkit' + i],
k = !1;
if (!j) {
k = document.createElement('IFRAME'),
f.Y(k),
document.body.appendChild(k);
var l = k.contentWindow;
if (!(j = l[i] || l['mox' + i] || l['webkit' + i])) {
try {
document.body.removeChild(k)
} catch (e) {
}
return
}
}
var m = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/,
n = {
},
o = function (a) {
var b = m.exec(a);
b && (n[b[1]] = b[1])
},
p = g(),
q = b.a.stunUrls && b.a.stunUrls.length > 0 ? b.a.stunUrls : [
'stun:stun.services.mozilla.com'
];
q.length > 5 && navigator.userAgent.indexOf('Firefox') > - 1 && (q = q.splice(0, 5));
var r = new j({
iceServers: [
{
urls: q
}
]
}, {
optional: [
{
RtpDataChannels: !0
}
]
});
if (e.n(r.createDataChannel)) {
var s = - 1,
t = - 1,
u = !1,
v = h(),
w = function () {
if (!(s < 0 || t < 0 || u)) {
u = !0;
var a = [
],
b = [
],
c = [
];
for (var f in n) if (n.hasOwnProperty(f)) {
var g = n[f];
v.ba(g) ? a.push(g) : v.ca(g) ? b.push(g) : c.push(g)
}
k && document.body.removeChild(k),
d('p', {
p4c: e.q.stringify(a),
p4d: e.q.stringify(c),
p4e: e.q.stringify(b),
p4f: p.j()
})
}
};
r.onicecandidate = function (a) {
s = 0,
a.candidate && a.candidate.candidate && (o(a.candidate.candidate), s = 1),
w()
},
r.createDataChannel(''),
r.createOffer(function (a) {
r.setLocalDescription(a, f.L, f.L)
}, f.L);
var x = function () {
if (!r.localDescription || !r.localDescription.sdp) return t = 0,
void w();
var a = r.localDescription.sdp.split('\n');
t = a.length;
for (var b = 0; b < t; ++b) o(a[b]);
w()
};
setTimeout(x, 1000)
}
}
},
function (a, b) {
var c = function () {
return {
ba: function (a) {
return /^(192\.168\.|198\.1[89]\.|169\.254\.|10\.|0\.|127\.|172\.(1[6-9]|2\d|3[01])|100\.([6-9][4-9]|1[0-2][0-7]))/.test(a)
},
ca: function (a) {
return /^[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7}$/.test(a)
}
}
};
a.exports = c
},
function (a, b) {
a.exports = function (a, b) {
'use strict';
var c = {
};
for (var d in b.d) b.d.hasOwnProperty(d) && (c[d] = b.d[d]);
a('settings', c)
}
},
function (a, b) {
a.exports = function (a) {
'use strict';
var b = new Date((new Date).getFullYear(), 0, 1, 0, 0, 0, 0),
c = b.toGMTString();
a('time', {
p4g: (b - new Date(c.substring(0, c.lastIndexOf(' ') - 1))) / 1000
})
}
},
function (a, b, c) {
a.exports = function (a, b, d) {
'use strict';
a('vd', {
});
var e = c(7),
f = c(27),
g = c(28);
c(29) (b.d, function (a, c) {
if (a) {
var h = !1,
i = new g(a, function (b, c, g) {
var h = f(a.element),
i = {
p57: e.F(),
p58: b,
p59: g,
p5a: c,
p5b: a.volume() ? a.volume() : - 1,
p5c: a.muted(),
p5d: h[0],
p5e: h[1],
p5f: h[2]
};
d('vd', i)
}, {
check: 250,
intervals: [
2,
5,
10
],
mob: b.d.mob
}),
j = !1;
a.onPlay(function () {
if (!j) {
if (j = !0, h) return i.da();
h = !0;
var b = {
p57: e.F(),
p4m: c.length,
p4i: !0
};
if (a.volume() > - 1 && (b.p4j = a.volume(), b.p4k = a.muted(), b.p4l = a.api), d('vd', b), e.E()) return i.i();
var f = function () {
e.E() && (i.i(), e.Q(f))
};
e.O(f)
}
}),
a.onPause(function () {
j && i.ea()
})
}
}, function (a) {
for (var b = Math.min(a.length, 8), c = {
p57: e.F(),
p4i: a.length > 0,
p4m: a.length,
p55: b
}, f = 0; f < b; ++f) c['p5g' + (f + 1)] = a[f].width() + 'x' + a[f].height();
d('vd', c)
})
}
},
function (a, b, c) {
var d = c(5),
e = c(7),
f = function () {
var a = function (a, b) {
for (var c = [
{
x: 0.1,
y: 0.1
},
{
x: 0.25,
y: 0.25
},
{
x: 0.59,
y: 0.59
},
{
x: 0.75,
y: 0.75
},
{
x: 0.9,
y: 0.9
},
{
x: 0.1,
y: 0.9
},
{
x: 0.25,
y: 0.75
},
{
x: 0.75,
y: 0.25
},
{
x: 0.9,
y: 0.1
}
], f = 0, g = 0, h = [
], i = 1 / c.length, j = 0, k = c.length; j < k; ++j) {
var l = Math.ceil(b.x + b.width * c[j].x),
m = Math.ceil(b.y + b.height * c[j].y),
n = d.n(a.ownerDocument.elementsFromPoint) ? a.ownerDocument.elementsFromPoint(l, m) : [
a.ownerDocument.elementFromPoint(l, m)
],
o = e.S() ? window.top.document.documentElement : document.documentElement;
if (n.length && n[0] && n[0] !== o) {
if (n[0] !== a && !a.contains(n[0])) {
f += i;
for (var p = 0, q = n.length; p < q && n[p] !== a; ++p) h.push(n[p])
}
} else g += i
}
for (var r = [
], s = 0, t = h.length; s < t; ++s) - 1 === d.z(r, h[s]) && r.push(h[s]);
return [parseInt(100 * f),
parseInt(100 * g),
r.length]
},
b = function (c, d) {
var f = e.Z(d),
g = a(c, f),
h = c.ownerDocument,
i = h.defaultView || h.parentWindow;
if (!e.R(i)) return g;
var j = i.frameElement;
if (!j) return g;
f.x += j.getBoundingClientRect().left,
f.y += j.getBoundingClientRect().top;
var k = b(j, f),
l = g[0],
m = g[1];
return k[0] > l && (l = k[0], m = k[1]),
[
l,
m,
g[2] + k[2]
]
};
return function (a) {
return b(a, a.getBoundingClientRect())
}
}();
a.exports = f
},
function (a, b, c) {
'use strict';
var d = c(7),
e = c(5),
f = document,
g = document;
d.M() && (g = parent.document);
var h = function (a) {
return !e.n(window.IntersectionObserver) || !e.n(window.IntersectionObserverEntry) || a
},
i = function (a, b, c) {
this.a = c || {
},
this.fa = 0,
a = a || {
element: !1
},
this.ga = a.element,
this.ha = a.onSeek || d.L,
this.ia = b || d.L,
this.ja = this.a.check || 100,
this.ka = this.a.intervals || [
1,
5,
10,
30
],
this.la = 0,
this.ma = !1,
this.na = null,
this.oa = !1,
this.pa = this.a.mob || !1
};
i.prototype.i = function () {
if (!this.ga || d.F()) {
var a = !1;
try {
a = this.ga === parent.document.body
} catch (e) {
}
if (a && d.M()) this.ga = document.body;
else if (!this.ga) return
}
var b = this,
c = function () {
return b.pa && (1 !== parseFloat(e.B()) || f.body.scrollWidth > f.body.clientWidth || g.body.scrollWidth > g.body.clientWidth || d.S() && window.top.document.body.scrollWidth > window.top.document.body.clientWidth)
},
i = !1;
if (h() ? (i = b.qa(), this.na = 'POLYFILL') : (i = window.IntersectionObserver, this.na = 'INTERSECTION_OBSERVER'), !i) return !1;
var j = new i(function (a) {
b.ma = !1;
for (var c = 0; c < a.length; c++) {
var d = a[c].target.offsetWidth * a[c].target.offsetHeight;
(a[c].intersectionRatio >= 0.5 || !b.pa && a[c].intersectionRatio >= 0.3 && d >= 242500) && (b.ma = !0, b.fa = a[c].intersectionRatio)
}
}, {
threshold: [
0.3,
0.5
]
}),
k = + new Date;
j.observe(b.ga),
b.ha(function () {
b.la = 0
});
var l = setInterval(function () {
b.oa || !d.E() || c() || (b.ma ? b.la += b.ja : b.la = 0, b.ka.length && b.la >= 1000 * b.ka[0] ? (b.ia(b.na, new Date - k, b.ka[0], b.fa), b.ka.shift()) : b.ka.length || (clearInterval(l), j.unobserve(b.ga)))
}, b.ja);
return this.oa = !1,
!0
},
i.prototype.qa = function () {
function a(a) {
for (var b = window, c = a, d = l(a), e = d; b !== window.top; ) {
var f = c.ownerDocument;
if (b = f.defaultView || f.parentWindow, b.frameElement) {
var g = l(b.frameElement);
e = {
top: g.top + e.top,
left: g.left + e.left,
width: d.width,
height: d.height
},
e.right = e.left + e.width,
e.bottom = e.top + e.height,
c = b.frameElement
}
}
return e
}
if (!d.S()) return !1;
var b = [
],
c = + new Date,
h = function () {
return window.performance && window.performance.now ? window.performance.now() : new Date - c
},
i = function (a, b) {
var c = null;
return function () {
c || (c = setTimeout(function () {
a(),
c = null
}, b))
}
},
j = function (a, b) {
var c = Math.max(a.top, b.top),
d = Math.min(a.bottom, b.bottom),
e = Math.max(a.left, b.left),
f = Math.min(a.right, b.right),
g = f - e,
h = d - c;
return g < 0 || h < 0 ? m() : {
top: c,
bottom: d,
left: e,
right: f,
width: g,
height: h
}
},
k = function (a) {
return a.top > 0 || a.bottom > 0 || a.left > 0 || a.right > 0
},
l = function (a, b) {
var c = a.getBoundingClientRect();
if (c) return c = {
top: c.top,
right: c.right,
bottom: c.bottom,
left: c.left,
width: c.width,
height: c.height
},
c.width && c.height || (c.width = c.right - c.left, c.height = c.bottom - c.top),
c
},
m = function () {
return {
top: 0,
bottom: 0,
left: 0,
right: 0,
width: 0,
height: 0
}
},
n = function (a, b) {
var c = b.parentNode;
try {
for (; c; ) {
if (a === c) return !0;
c = c.parentNode
}
} catch (e) {
}
return !1
},
o = function (a) {
this.time = a.time,
this.rootBounds = a.rootBounds,
this.boundingClientRect = a.boundingClientRect,
this.intersectionRect = a.intersectionRect,
this.target = a.target;
var b = this.boundingClientRect,
c = b.width * b.height,
d = this.intersectionRect,
e = d.width * d.height;
this.intersectionRatio = c ? e / c : 0
},
p = function (a, b) {
if (b = b || {
}, 'function' != typeof a) throw new Error('callback must be a function');
if (b.root && 1 !== parseInt(b.root.nodeType)) throw new Error('root must be an Element');
this.ra = i(e.s(this.ra, this), this.THROTTLE_TIMEOUT),
this.sa = e.s(this.sa, this),
this.ta = a,
this.ua = [
],
this.va = [
],
this.wa = this.xa(b.rootMargin),
this.oa = !1,
this.thresholds = this.ya(b.threshold),
this.root = b.root || null,
this.rootMargin = e.v(this.wa, function (a) {
return a.value + a.unit
}).join(' ')
};
return p.prototype.THROTTLE_TIMEOUT = 100,
p.prototype.POLL_INTERVAL = 100,
p.prototype.observe = function (a) {
for (var b = 0, c = this.ua.length; b < c; ++b) if (this.ua[b] === a) return;
if (!a || 1 !== parseInt(a.nodeType)) throw new Error('target must be an Element');
this.za(),
this.ua.push({
element: a,
entry: null
}),
this.Aa()
},
p.prototype.unobserve = function (a) {
this.ua = e.u(this.ua, function (b) {
return b.element !== a
}),
this.ua.length || (this.Ba(), this.Ca())
},
p.prototype.disconnect = function () {
this.ua = [
],
this.Ba(),
this.Ca()
},
p.prototype.takeRecords = function () {
var a = this.va.slice();
return this.va = [
],
a
},
p.prototype.ya = function (a) {
var b = a || [
0
];
return e.t(b) || (b = [
b
]),
e.u(b.sort(), function (a, b, c) {
if ('number' != typeof a || isNaN(a) || a < 0 || a > 1) throw new Error('threshold must be a number between 0 and 1 inclusively');
return a !== c[b - 1]
})
},
p.prototype.xa = function (a) {
var b = a || '0px',
c = e.v(b.split(/\s+/), function (a) {
var b = /^(-?\d*\.?\d+)(px|%)$/.exec(a);
if (!b) throw new Error('rootMargin must be specified in pixels or percent');
return {
value: parseFloat(b[1]),
unit: b[2]
}
});
return c[1] = c[1] || c[0],
c[2] = c[2] || c[0],
c[3] = c[3] || c[1],
c
},
p.prototype.Aa = function () {
this.Da || (this.Da = !0, this.ra(), this.Ea = setInterval(this.ra, this.POLL_INTERVAL), d.O(this.sa))
},
p.prototype.Ba = function () {
this.Da && (this.Da = !1, clearInterval(this.Ea), this.Ea = null, d.Q(this.sa))
},
p.prototype.sa = function () {
d.E() ? (this.oa = !1, this.ra()) : this.oa = !0
},
p.prototype.ra = function () {
if (!this.POLL_INTERVAL || !this.oa && d.E()) {
for (var b = this.Fa(), c = b ? this.Ga() : m(), e = 0, f = this.ua.length; e < f; ++e) {
var g = this.ua[e],
i = g.element,
j = a(i),
l = this.Ha(i),
n = g.entry,
p = g.entry = new o({
time: h(),
target: i,
boundingClientRect: j,
rootBounds: c,
intersectionRect: b && l ? this.Ia(i, c) : m()
});
b && l ? this.Ja(n, p) && this.va.push(p) : n && k(n.intersectionRect) && this.va.push(p)
}
this.va.length && this.ta(this.takeRecords(), this)
}
},
p.prototype.Ia = function (b, c) {
for (var d = a(b), f = b.parentNode, g = !1; !g; ) {
var h = null,
i = f.defaultView || f.parentWindow;
if (f === this.root || 1 !== parseInt(f.nodeType)) h = c,
9 !== f.nodeType || i.frameElement || (g = !0);
else {
'visible' === e.A(f).overflow && 'iframe' !== f.nodeName.toLowerCase() || (h = a(f))
}
if (h && (d = j(h, d), !k(d))) break;
f = 9 === parseInt(f.nodeType) && i.frameElement ? i.frameElement : f.parentNode
}
return d
},
p.prototype.Ga = function () {
var a;
if (this.root) a = l(this.root, !0);
else {
var b = window.top,
c = b.document.documentElement,
d = b.document.body;
a = {
top: 0,
left: 0,
right: c.clientWidth || d.clientWidth,
width: c.clientWidth || d.clientWidth,
bottom: c.clientHeight || d.clientHeight,
height: c.clientHeight || d.clientHeight
}
}
return this.Ka(a)
},
p.prototype.Ka = function (a) {
var b = e.v(this.wa, function (b, c) {
return 'px' === b.unit ? b.value : b.value * (c % 2 ? a.width : a.height) / 100
}),
c = {
top: a.top - b[0],
right: a.right + b[1],
bottom: a.bottom + b[2],
left: a.left - b[3]
};
return c.width = c.right - c.left,
c.height = c.bottom - c.top,
c
},
p.prototype.Ja = function (a, b) {
var c = a && k(a.intersectionRect) ? a.intersectionRatio || 0 : - 1,
d = k(b.intersectionRect) ? b.intersectionRatio || 0 : - 1;
if (c === d) return !1;
for (var e = 0; e < this.thresholds.length; e++) {
var f = this.thresholds[e];
if (f === c || f === d || f < c != f < d) return !0
}
},
p.prototype.Fa = function () {
return !this.root || n(f, this.root) || n(g, this.root)
},
p.prototype.Ha = function (a) {
return n(this.root || f, a) || n(g, a)
},
p.prototype.za = function () {
e.z(b, this) < 0 && b.push(this)
},
p.prototype.Ca = function () {
var a = this;
b = e.u(b, function (b) {
return b !== a
})
},
p
},
i.prototype.ea = function () {
this.oa = !0
},
i.prototype.da = function () {
this.oa = !1
},
a.exports = i
},
function (a, b, c) {
'use strict';
var d = c(7),
e = c(11),
f = c(30),
g = function (a, b, c) {
for (var d = a.getElementsByTagName(b), e = 0, g = d.length; e < g; ++e) if (d[e].width >= 100 && d[e].height >= 100) {
var h = f(d[e]);
h && c.push(h)
}
return c
},
h = function (a, b) {
var c,
d = [
];
if (a && (c = f(a), c ? d.push(c) : a.getElementsByTagName && a.getElementsByTagName('video').length && (c = f(a.getElementsByTagName('video') [0])) && d.push(c)), !c) return b([]);
for (var e = g(a, 'video', [
]), h = 0, i = e.length; h < i; ++h) {
var j = f(e[h]);
!j || c && c.element === j.element || d.push(j)
}
b(d)
},
i = function (a, b, c) {
c(g(a, 'embed', g(a, 'object', b)))
},
j = function (a, b) {
var c,
e = document.body;
return d.M() && (c = parent.document.body),
function () {
h(a, function (a) {
a = g(e, 'embed', g(e, 'object', g(e, 'video', a))),
c && (a = g(c, 'embed', g(c, 'object', g(c, 'video', a)))),
b(a)
})
}
};
a.exports = function (a, b, c) {
a = a || {
},
b = b || d.L,
c = c || d.L;
var f = a.timeout || 900000,
g = a.interval || 200,
k = 0,
l = e(a),
m = function () {
var a;
h(l, function (c) {
!a && c.length && (a = c[0]),
i(l, c, function (c) {
if (!a && c.length && (a = c[0]), a || (k += g) > f) return b(a, c);
setTimeout(m, g)
})
})
};
m(),
setTimeout(j(l, c), 2000)
}
},
function (a, b, c) {
'use strict';
var d = c(7),
e = {
level1: {
names: [
'flashvars',
'allowfullscreen',
'allowscriptaccess',
'movie'
],
matchLevel: 1
},
level2: {
names: [
'wmode',
'swfversion',
'scale',
'quality'
],
matchLevel: 2
}
},
f = function (a) {
if (a.GetVariable) return !0;
var b;
for (var c in e) if (e.hasOwnProperty(c)) {
b = 0;
for (var d = 0; d < e[c].names.length; ++d) for (var f = 0; f < a.children.length; ++f) if (a.children[f] && String(a.children[f].name).toLowerCase() === e[c].names[d] && ++b === e[c].matchLevel) return !0
}
return !1
},
g = function (a) {
for (var b = 0, c = a.children.length; b < c; ++b) if (a.children[b] && a.children[b].name && a.children[b].value && 'flashvars' === String(a.children[b].name || '').toLowerCase()) return a.children[b].value;
return ''
},
h = {
La: /vol(ume)?=(\d+)/i,
Ma: /mute=(1|true|yes)/i,
Na: /(playing|state|play)=(1|true|yes)/i
},
i = function (a) {
var b = function (b, c) {
return function (d) {
var e = function () {
var f = !1;
try {
f = c(a)
} catch (e) {
}
if (f === b) return setTimeout(e, 100);
d()
};
e()
}
};
if (a.GetVariable) {
var c = function (a) {
return !!a.GetVariable('/:state')
};
return {
api: 'none',
element: a,
volume: function () {
var b = - 1;
try {
b = parseInt(a.GetVariable('/:volume'))
} catch (e) {
}
return isNaN(b) ? - 1 : b
},
muted: function () {
var b = !1;
try {
b = a.GetVariable('/:mute')
} catch (e) {
return null
}
return b ? 'string' == typeof b ? 'true' === (b = b.toLowerCase()) || 'yes' === b || '1' === b : 'number' == typeof b ? b > 0 : null : null
},
height: function () {
return a.clientHeight || a.offsetHeight || a.height
},
width: function () {
return a.clientWidth || a.offsetWidth || a.width
},
onPlay: b(!0, c),
onPause: b(!1, c),
onSeek: d.L
}
}
var e = g(a);
if (e) {
for (var f = e.split('&'), i = 0, j = f.length; i < j; ++i) if ('volume=' === f[i].substring(0, 7)) {
parseInt(f[i].split('=') [1]);
break
}
var k = function (a) {
var b = g(a);
return h.Na.test(b)
};
return {
api: 'none',
element: a,
volume: function () {
return isNaN( - 1),
- 1
},
muted: function () {
return h.Ma.test(e)
},
height: function () {
return a.clientHeight || a.offsetHeight || a.height
},
width: function () {
return a.clientWidth || a.offsetWidth || a.width
},
onPlay: b(!0, k),
onPause: b(!1, k),
onSeek: d.L
}
}
return !1
},
j = [
function (a) {
return 'VIDEO' === a.tagName && {
api: 'HTML5',
element: a,
muted: function () {
return a.muted
},
volume: function () {
return Math.round(100 * a.volume)
},
height: function () {
return a.clientHeight || a.offsetHeight || a.height
},
width: function () {
return a.clientWidth || a.offsetWidth || a.width
},
onPlay: function (b) {
a.paused || b(),
a.addEventListener('play', b)
},
onPause: function (b) {
a.paused && b(),
a.addEventListener('pause', b)
},
onSeek: function (b) {
var c = 0;
a.addEventListener('seeking', b),
a.addEventListener('seeked', b),
a.addEventListener('timeupdate', function () {
a.currentTime < c && b(),
c = a.currentTime
})
}
}
},
function (a) {
return 'function' == typeof a.jwGetState && {
api: 'JW Player',
element: a,
muted: a.jwGetMute,
volume: a.jwGetVolume,
height: a.jwGetHeight,
width: a.jwGetWidth,
onPlay: function (b) {
'PLAYING' === a.jwGetState() && b(),
a.onPlay(b)
},
onPause: function (b) {
'PLAYING' !== a.jwGetState() && b(),
a.onPause(b)
},
onSeek: d.L
}
},
function (a) {
return 'function' == typeof a.sp_getState && {
api: 'Flow Player',
element: a,
volume: function () {
return Math.round(100 * a.sp_getVolume())
},
height: function () {
return a.clientHeight || a.offsetHeight || a.height
},
width: function () {
return a.clientWidth || a.offsetWidth || a.width
},
muted: function () {
return a.sp_getStatus().muted
},
onPlay: function (b) {
a.sp_isPlaying() && b(),
a.on('load', b)
},
onPause: function (b) {
a.sp_isPlaying() || b(),
a.on('pause', b)
},
onSeek: d.L
}
},
function (a) {
return !!f(a) && i(a)
}
];
a.exports = function (a) {
if (!a) return !1;
for (var b = 0, c = j.length; b < c; ++b) {
var d = j[b](a);
if (d) return d
}
return !1
}
},
function (a, b, c) {
a.exports = function (a, b, d) {
'use strict';
a('v', {
});
var e = c(7),
f = c(27),
g = c(28),
h = c(11),
i = h(b.d);
new g({
element: i
}, function (a, b, c) {
var g = f(i);
d('v', {
p57: e.F(),
p58: a,
p59: c,
p5a: b,
p5d: g[0],
p5e: g[1],
p5f: g[2]
})
}, {
mob: b.d.mob
}).i()
}
},
function (a, b) {
a.exports = function (a) {
'use strict';
var b = null;
if (window.ActiveXObject) try {
b = new ActiveXObject('WMPlayer.OCX')
} catch (e) {
return {
}
}
a('wmp', {
p5i: b ? parseFloat(b.versionInfo) : null
})
}
},
function (a, b, c) {
'use strict';
var d = c(34),
e = c(7),
f = c(35),
g = function (a, b) {
var c = document.createElement('iframe');
e.Y(c),
c.name = encodeURIComponent(b),
document.body.appendChild(c),
c.src = a,
c.addEventListener('beforeunload', function () {
c.src = '',
c.parentElement && c.parentElement.removeChild(c)
})
},
h = function (a, b, c) {
var e = d(b).asString(),
h = c.dataWrapper + '=' + encodeURIComponent(f(e)),
i = '&postUrl=' + a;
if ('undefined' == typeof XMLHttpRequest) return g(c.iframeUrl, h + i);
var j = new XMLHttpRequest;
if ('withCredentials' in j) j.open('POST', a, !0);
else {
if ('undefined' == typeof XDomainRequest) return g(c.iframeUrl, h + i);
j = new XDomainRequest,
j.open('POST', a)
}
j.setRequestHeader && j.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'),
j.send(h)
};
a.exports = {
k: h,
l: h
}
},
function (a, b) {
'use strict';
var c = {
integer: parseInt,
float: parseFloat,
string: function (a) {
return String(a)
},
boolean: function (a) {
return Boolean(a)
},
unknown: function (a) {
return a
}
},
d = function (a, b) {
var d = {
},
e = [
],
f = b && b.validations ? b.validations : {
};
for (var g in a) if (a.hasOwnProperty(g) && a[g] !== undefined) {
var h = c[f[g] ? f[g] : 'unknown'](a[g]);
e.push(g + '=' + encodeURIComponent(h)),
d[g] = h
}
return {
asString: function () {
return e.join('&')
},
asArray: function () {
return e
},
asObject: function () {
return d
}
}
};
a.exports = d
},
function (a, b) {
'use strict';
var c = function (a) {
if (!a || 'string' != typeof a) return a;
for (var b = a.length % 10, c = [
], d = 0; d < a.length; d++) {
var e = b + d % 10,
f = a.charCodeAt(d);
c.push(String.fromCharCode(f ^ e))
}
return c.join('')
};
a.exports = c
}
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.