Skip to content

Instantly share code, notes, and snippets.

@AramZS
Created February 18, 2016 22:02
Show Gist options
  • Save AramZS/a8206f7650088a0e682e to your computer and use it in GitHub Desktop.
Save AramZS/a8206f7650088a0e682e to your computer and use it in GitHub Desktop.
Moat Video
/*Copyright (c) 2011-2016 Moat Inc. All Rights Reserved.*/
try {
(function(x, t) {
var l = {},
X, ga, ha, ca = 0,
da = {},
Y = [],
D = {},
O = [],
z = {},
P = !1,
Ga = {
15: "",
12: "",
6: "",
7: ""
},
Ha = function() {
for (var b = 0; b < Y.length; b++) l.a.a(Y[b]);
for (b = 0; b < O.length; b++) l.a.b(O[b]);
for (var h in D) D.hasOwnProperty && D.hasOwnProperty(h) && D[h] && (l.a.a(D[h].tid), D[h] = !1);
Y = [];
O = []
},
Z = function() {
for (var b in z)
if (z.hasOwnProperty(b)) {
var h = z[b];
l.b.a(h);
l.c.a(h)
}
Ha()
};
l.d = Z;
(function(b) {
function h(b) {
var m = new RegExp("(^| )" + b + "($| )");
return function(b) {
return b && b.className && b.className.match(m)
}
}
function f(b) {
return b && b.document && b.location && b[v + u] && b[r + q]
}
function c(b) {
if (null == b || f(b)) return !1;
var m = b.length;
return 1 === b.nodeType && m ? !0 : "string" === typeof b || e(b) || 0 === m || "number" === typeof m && 0 < m && m - 1 in b
}
function e(g) {
return "[object Array]" === b.a.bj.toString.call(g)
}
b.a = {};
b.a.c = 3E3;
b.a.d = function() {
var b = /Firefox\/(\d+)/.exec(navigator.userAgent);
return b ? (b = parseInt(b[1], 10), 21 > b && 14 < b) : !1
}();
b.a.e = function() {
var g, m = /^(?:[a-z]+:\/\/|:?\/?\/)?(?:www\.)?([^\/:]*)/i;
b.e.a || (g = b.a.f(), !g &&
b.e.b && (g = b.e.b));
g || (g = b.e.c.location.hostname);
return (g = g && g.match && g.match(m)) && g[1] || b.e.c.location.hostname
};
b.a.f = function() {
var b = location && location.ancestorOrigins;
return b ? 0 === b.length ? !1 : b[b.length - 1] : !1
};
b.a.g = function() {
var g, m = b.a.e(),
n = m && m.split("."),
c = n && n.length;
3 <= c ? g = "co" === n[c - 2] || "com" === n[c - 2] ? n[c - 3] + "." + n[c - 2] + "." + n[c - 1] : n[c - 2] + "." + n[c - 1] : 2 == c && (g = n[c - 2] + "." + n[c - 1]);
return g && decodeURIComponent(g) || decodeURIComponent(m)
};
b.a.h = function(b) {
if ("string" !== typeof b) return "";
var m =
b.match(/^([^:]{2,}:\/\/[^\/]*)/);
m && m[1] && (b = m[1]);
return b
};
b.a.i = function(b, m) {
for (var n = [b], c = 1; c <= m; c++) n.push(b + c), n.push(b - c);
n = n[t.floor(t.random() * n.length)];
c = t.floor(t.random() * n);
return {
multiplier: n,
sample: 0 == c
}
};
b.a.j = function(g, m) {
var n = b.a.i(g, m);
b.a.j = function() {
return n
};
return n
};
b.a.k = function() {
var g = b.a.l();
return 5 === g || 6 === g || 7 === g
};
b.a.l = function() {
if (!navigator) return null;
var b;
b = navigator.userAgent;
return "Microsoft Internet Explorer" == navigator.appName ? parseInt(b.replace(/^.*MSIE (\d+).*$/,
"$1"), 10) : "Netscape" == navigator.appName && (b = b.match(/(?:Trident\/.*rv:|MSIE )(\d+)/)) ? parseInt(b[1], 10) : null
};
b.a.m = function() {
return null != b.a.l()
};
b.a.n = function(g, m) {
return -1 !== b.a.indexOf(g, m)
};
b.a.o = function() {
function b(g) {
if (!g) return "";
g = g.match(/[\d]+/g);
g.length = 3;
return g.join(".")
}
var m = !1,
n = "";
if (navigator.plugins && navigator.plugins.length) {
var c = navigator.plugins["Shockwave Flash"];
c && (m = !0, c.description && (n = b(c.description)));
navigator.plugins["Shockwave Flash 2.0"] && (m = !0, n = "2.0.0.11")
} else if (navigator.mimeTypes &&
navigator.mimeTypes.length)(m = (c = navigator.mimeTypes["application/x-shockwave-flash"]) && c.enabledPlugin && c.enabledPlugin.description) && (n = b(c.enabledPlugin.description));
else try {
c = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"), m = !0, n = b(c.GetVariable("$version"))
} catch (d) {
try {
c = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"), m = !0, n = "6.0.21"
} catch (e) {
try {
c = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"), m = !0, n = b(c.GetVariable("$version"))
} catch (k) {}
}
}
return m ? n : "0"
};
b.a.getElementsByClassName =
function(b, m, n) {
m = m || "*";
n = n || document;
if (n.getElementsByClassName) {
var c = [],
d = n.getElementsByClassName(b);
if ("*" !== m) {
b = 0;
for (n = d.length; b < n; b++) {
var e = d[b];
e.tagName === m && c.push(e)
}
return c
}
return d
}
d = [];
m = n.getElementsByTagName(m);
n = h(b);
e = m.length;
for (b = 0; b < e; b++) c = m[b], n(c) && d.push(c);
return d
};
b.a.p = h;
b.a.q = function(b) {
return new x - b.de
};
b.a.r = function(b) {
return b.replace(/^http:/, "").replace(/^\/\//, "").replace(/^www[^.]*\./, "").split("/")[0]
};
b.a.s = function(g, m, n) {
if (("undefined" === typeof n ||
!n) && g && (n = b.a.t(g), !n)) return;
if (g && g.nodeType)
if ("undefined" === typeof Node) {
if (1 != g.nodeType) return
} else if (g.nodeType != Node.ELEMENT_NODE) return;
if (n.getComputedStyle) return n.getComputedStyle(g, "") && n.getComputedStyle(g, "")[m];
for (n = m.indexOf("-"); - 1 < n;) m = n == m.length - 1 ? m.substr(0, n) : m.substr(0, n) + m.charAt(n + 1).toUpperCase() + m.substr(n + 2), n = m.indexOf("-");
if (g.currentStyle) return g.currentStyle[m];
if (g.style) return g.style[m]
};
b.a.u = function(g) {
if (!g) return !1;
var m = b.a.s(g, "background-image");
m ||
(m = b.a.s(g, "backgroundImage"));
var n;
m && (n = (n = m.match("url\\((.*)\\)")) && n[1].replace(/\x22/g, ""));
return n
};
b.a.v = function(g, m) {
if (!g) return !1;
var n = [g],
c = !1;
b.a.forEach("number" === typeof m ? m : 50, function() {
if ((c = g.parentNode || g.parentElement || !1) && 1 == c.nodeType) g = c, n.push(g);
else return !1
});
return n
};
b.a.w = function(g, m) {
var n = "number" === typeof m ? m : 50,
c = [],
d = b.a.t(g);
if (d) c.push(d);
else return c;
b.a.forEach(n, function() {
var m = b.f.a(g, d);
return m && (d = b.a.t(m)) ? (c.push(d), !0) : !1
});
return c
};
b.a.x = function() {
return null !==
/iPad|iPhone|iPod|Silk|Kindle|Android|BlackBerry|PlayBook|BB10|Windows Phone|SpreadTrum|MAUI/.exec(navigator && navigator.userAgent || "")
};
b.a.y = function() {
return null !== /iPhone|iPod/.exec(navigator.userAgent)
};
b.a.z = function() {
return null !== /iPad/.exec(navigator.userAgent)
};
b.a.aa = function() {
return null !== /Android/.exec(navigator.userAgent)
};
b.a.ab = function() {
var b = navigator.userAgent;
return b.match(/iPhone|iPod|iPad/) && !b.match(/Safari|CriOS/i)
};
b.a.ac = function() {
var g = navigator.userAgent;
return b.a.aa() &&
g.match(/Version/)
};
b.a.ad = function() {
var g;
return function() {
if ("undefined" !== typeof g) return g;
g = {
isInApp: 0,
env: "Not app"
};
b.a.ab() ? (g.isInApp = 1, g.env = "iOS") : b.a.ac() && (g.isInApp = 1, g.env = "Android");
return g
}
}();
b.a.ae = function() {
var g = b.a.ad(),
m = b.e.c.screen;
if ("iOS" === g.env) return "undefined" !== typeof window.orientation ? 0 === window.orientation || 180 === window.orientation ? (g = m.width, m = m.height) : (g = m.height, m = m.width) : g = m = 0, {
w: g,
h: m
};
if ("Android" === g.env) {
var g = b.e.c.devicePixelRatio,
n = 1;
.05 > t.abs(m.width /
b.e.c.innerWidth - g) && (n = g);
return {
w: m.width / n,
h: m.height / n
}
}
return {
w: m.width,
h: m.height
}
};
b.a.af = function() {
return b.a.ag() ? b.a.ah() ? 1 : 2 : 0
};
b.a.ag = function() {
var g;
return function() {
if ("undefined" !== typeof g) return g;
var m = b.e.c,
n = b.a.ae();
if (b.e.c.navigator.standalone) g = !0;
else {
var c = m.innerWidth / n.w,
m = m.innerHeight / n.h,
c = !isNaN(c) && isFinite(c) && .9 <= c && 1.1 >= c,
m = !isNaN(m) && isFinite(m) && .75 <= m && 1.1 >= m;
g = c && m
}
return g
}
}();
b.a.ah = function() {
var g = b.a.ag(),
m = b.a.g(),
n = b.e.d(),
c = "applewebdata:" === window.location.protocol ||
"data:" === window.location.protocol,
m = "-" === m || "" === m.replace(/^\s+|\s+$/gm, "");
return g && !(m || n || c)
};
b.a.ai = function() {
return function() {}
}();
b.a.aj = function() {
var g;
return function() {
return "undefined" !== typeof g ? g : b.a.ai() ? g = !!document.getElementById(APPSCOPE_CONTAINER_ID) : g = !1
}
}();
b.a.ak = function() {
var g;
return function() {
return "undefined" !== typeof g ? g : g = b.a.ag()
}
}();
b.a.al = function() {
var b = window;
try {
return "undefined" !== typeof b.external && "undefined" !== typeof b.external.InPrivateFilteringEnabled &&
b.external.InPrivateFilteringEnabled() || "undefined" !== typeof b.external && "undefined" !== typeof b.external.msTrackingProtectionEnabled && b.external.msTrackingProtectionEnabled() || "undefined" !== typeof b._gaUserPrefs && b._gaUserPrefs.ioo && b._gaUserPrefs.ioo() || "undefined" !== typeof navigator.doNotTrack && ("yes" === navigator.doNotTrack || !0 === navigator.doNotTrack) || "undefined" !== typeof b._gaUserPrefs && !0 === b._gaUserPrefs
} catch (m) {
return !1
}
};
b.a.am = function() {
return !1
};
b.a.getAttribute = function(b, m) {
return b[m] ||
b.getAttribute(m)
};
b.a.an = function(b) {
var m = 0,
n;
for (n in b) b.hasOwnProperty(n) && (m += 1);
return m
};
var k = [function(b) {
if (!b || "IFRAME" !== b.nodeName) return !1;
var m = b.offsetHeight;
return isNaN(m) || 15 < m || "google_conversion_frame" !== b.name ? !1 : !0
}];
b.a.ao = function(g, m) {
return "undefined" === typeof g || null === g || !1 === g || !b.a.ap(g) || g.nodeName && "IMG" == g.nodeName && !g.complete || b.a.filter(k, function(b) {
return b(g)
}).length || !0 === g[F] ? !1 : !0
};
b.a.aq = function(b) {
return b.replace(/:/g, "%3A").replace(/=/g, "%3D").replace(/,/g,
"%2C")
};
b.a.ar = function(g) {
var m = [];
b.a.forEach(g, function(g, c) {
var d = typeof g;
"number" == d ? m.push(b.a.aq(c) + ":" + b.a.aq(g + "")) : "string" == d ? m.push(b.a.aq(c) + ":" + b.a.aq('"' + g + '"')) : "undefined" == d ? m.push(b.a.aq(c) + ":" + b.a.aq("undefined")) : "boolean" == d ? m.push(b.a.aq(c) + ":" + b.a.aq(g ? "true" : "false")) : null === g ? m.push(b.a.aq(c) + ":" + b.a.aq("null")) : "object" != d && "function" != d || !g.toString || m.push(b.a.aq(c) + ":" + b.a.aq('"' + g.toString() + '"'))
}, null, !0);
m.sort();
return "{" + m.join(",") + "}"
};
b.a.as = function(b) {
var m = {};
if ("string" != typeof b || "{" != b[0]) return !1;
b = b.slice(1, -1).split(",");
for (var n = 0; n < b.length; n++) {
var c = b[n].split(":");
c[1] = unescape(c[1]);
c[1] = "true" == c[1] ? !0 : "false" == c[1] ? !1 : '"' == c[1][0] ? c[1].slice(1, -1) : "undefined" == c[1] ? void 0 : "null" == c[1] ? null : "NaN" == c[1] ? NaN : parseFloat(c[1]);
m[unescape(c[0])] = c[1]
}
return m
};
b.a.ap = function(g) {
var m = g.offsetWidth,
c = g.offsetHeight;
b.a.forEach(b.a.v(g, 3), function(b) {
if (b && b.style && ("" != b.style.width || "" != b.style.height) && "hidden" == b.style.overflow) {
var g = parseFloat(b.style.width);
b = parseFloat(b.style.height);
m = !isNaN(g) && g < m ? g : m;
c = !isNaN(b) && b < c ? b : c
}
});
if (g = b.a.at(g)) m = g.width < m ? g.width : m, c = g.height < c ? g.height : c;
return m * c >= b.a.c
};
var d = {};
b.a.at = function(g) {
if (!(g && g.src && g.nodeName && "IMG" != !g.nodeName && g.complete)) return !1;
if (d[g.src]) return d[g.src];
try {
if ("undefined" !== typeof g.naturalHeight && "undefined" !== typeof g.naturalWidth) {
var m = {
width: g.naturalWidth,
height: g.naturalHeight
};
return d[g.src] = m
}
} catch (c) {}
return b.e.e && (b.e.e.src = g.src, b.e.e.a) ? (m = {
width: parseInt(b.e.e.b),
height: parseInt(b.e.e.c)
}, d[g.src] = m) : !1
};
b.a.au = function(b, m) {
var c = !1,
d = m.body,
e = d && d.firstChild;
d && e && (d.insertBefore(b, e), c = !0);
return c
};
b.a.av = function() {
var b;
return function() {
if (!b) a: {
for (var m = document.getElementsByTagName("script"), c = m.length - 1; - 1 < c; c--)
if ((b = m[c]) && b.src && b.src.indexOf && (-1 !== b.src.indexOf("xaxissupplyvpaid2626297/moatvideo.js") || -1 !== b.src.indexOf("xaxissupplyvpaid2626297%2Fmoatvideo.js")) && ("undefined" === typeof b[F] || !0 !== b[F])) {
b[F] = !0;
break a
}
b = void 0
}
return b ? (b[F] = !0, b) : null
}
}();
b.a.aw = function(b) {
for (var m = [], c = b && b.getElementsByTagName("script"), d = c.length - 1; - 1 < d; d--)(b = c[d]) && b.src && b.src.match(/moatads.com\/.*\/moat(ad|video)\.js/) && !b.src.match("xaxissupplyvpaid2626297") && m.push(b);
if (m && 0 < m.length) return m
};
b.a.ax = function(g, m) {
if (!g || !m) return !1;
var c = b.a.aw(b.e.f ? I.ownerDocument.body || m : m);
if (c && 0 < c.length) {
var d = c[0] && c[0].src && c[0].src.match(/moatads.com\/(.*)\/moat(ad|video)\.js/);
d && d[1] && (g.zMoatOtherScript = d[1], (c = b.g.a(c[0])) ? (c = c.cleanMoatClientLevel1 +
":" + c.cleanMoatClientLevel2 + ":" + c.cleanMoatClientLevel3 + ":" + c.cleanMoatClientLevel4, g.zMoatOtherHash = c ? c : "IDs Not Available") : g.zMoatOtherHash = "IDs Not Available")
}
};
b.a.ay = function(b, m) {
for (var c in m) m.hasOwnProperty(c) && (b[c] = m[c])
};
b.a.az = function(b, m) {
if ("string" !== typeof b || !m || !m.insertBefore || !m.ownerDocument) return !1;
var c = m.ownerDocument.createElement("script");
c.type = "text/javascript";
c.async = !0;
m.insertBefore(c, m.childNodes[0]);
c.src = b;
return !0
};
b.a.ba = function(b) {
var m;
if (b) m = /https:/i.test(b.src ||
b.href || "http:") ? "https:" : "http:";
else try {
m = window.location.protocol
} catch (c) {
b = document.createElement("a"), b.href = "", m = b.protocol
}
return "https:" === m ? "https:" : "http:"
};
b.a.bb = function(b) {
try {
return -1 !== (b.src || b.getAttribute("src")).indexOf("psd=1")
} catch (m) {
return !1
}
};
b.a.bc = function(g) {
if (y.yh.yj() && !b.a.x()) try {
var m = y.yh.yk(g, b.e.protocol),
c = '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="1" height="1" id="moatMessageSender' + y.yh.xq() +
'"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="' + m.src + '" /><param name="FlashVars" value="' + m.flashVars + '" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed type="application/x-shockwave-flash" src="' + m.src + '" quality="high" flashvars="' + m.flashVars + '" bgcolor="#ffffff" width="1" height="1" id="moatMessageSenderEmbed' + y.yh.xq() + '" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" /></object>',
d = K.document.createElement("div");
d.style.position = "absolute";
d.style.left = "-9999px";
d.style.top = "-9999px";
b.h.a(function() {
if (b.a.bd(d, K.document.body)) return d.innerHTML = c, !0
}, 1, 100)
} catch (e) {}
};
b.a.be = function(g) {
if (y && y.yh && y.yh.qa && y.yh.qa() && !b.a.x()) try {
var m = y.yh.qb(g, b.e.protocol),
c = '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="1" height="1" id="moatCap"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="' +
m.src + '" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed type="application/x-shockwave-flash" src="' + m.src + '" quality="high" bgcolor="#ffffff" width="1" height="1" id="moatCapEmbed" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" /></object>',
d = K.document.createElement("div");
d.style.position = "absolute";
d.style.left = "-9999px";
d.style.top = "-9999px";
b.h.a(function() {
if (b.a.bd(d, K.document.body)) return d.innerHTML =
c, !0
}, 3, 100)
} catch (e) {}
};
b.a.bf = function(b) {
for (var m = [], c = 0; c < b.length; c++) m.push(b[c]);
return m
};
b.a.nextElementSibling = function(b) {
if (b.nextElementSibling) return b.nextElementSibling;
for (; b = b.nextSibling;)
if (1 === b.nodeType) return b
};
b.a.previousElementSibling = function(b) {
if (b) {
if (b.previousElementSibling) return b.previousElementSibling;
for (var m = 0;
(b = b.previousSibling) && 1E3 > m;)
if (m++, b && 1 === b.nodeType) return b
}
};
b.a.bg = function(b, m, c) {
"undefined" !== typeof c && (b[m] = c)
};
b.a.filter = function(b, m) {
for (var c = [], d = 0; d < b.length; d++) m(b[d]) && c.push(b[d]);
return c
};
b.a.bh = function(b, c) {
for (var n = [], d = 0; d < c.length; d++) n.push(b(c[d]));
return n
};
b.a.indexOf = function(g, c) {
if (!g) return -1;
if (b.a.bi(g)) {
for (var n = 0, d = g.length; n < d; n++)
if (g[n] === c) return n;
return -1
}
return "string" === typeof g ? g.indexOf(c) : -1
};
b.a.bind = function(b, c) {
return function() {
b[c].apply(b, arguments)
}
};
var v = "ale",
u = "rt",
r = "setInte",
q = "rval";
b.a.bj = {};
b.a.bk = function(b, c) {
if (b && c && c.childNodes) {
var n = c.childNodes;
0 < n.length ? c.insertBefore(b, n[0]) :
c.appendChild(b)
}
};
b.a.bd = function(g, c) {
if (!g || !c) return !1;
var n = b.a.bl(c);
if (!n) return !1;
if (b.a.hasChildNodes(n)) {
var d = n.childNodes[t.max(0, n.childNodes.length - 1)] || null;
n.insertBefore(g, d)
} else n.appendChild(g);
return n
};
b.a.bm = function(g, c) {
if ("string" != typeof g || !c || !document) return !1;
var n = document.createElement("script");
n.type = "text/javascript";
var d = b.a.bd(n, c);
if (!d) return !1;
n.src = g;
return d
};
b.a.hasChildNodes = function(b) {
return b && b.childNodes && 0 < b.childNodes.length
};
b.a.bl = function(g) {
if (!g) return !1;
if ("OBJECT" !== g.nodeName && "EMBED" !== g.nodeName) return g;
g = b.a.v(g);
var c = !1;
b.a.forEach(g, function(b) {
if (b && "OBJECT" !== b.nodeName && "EMBED" !== b.nodeName) return c = b, !1
});
return c
};
b.a.bn = function(b, c) {
if ("undefined" === typeof b) return !1;
for (var n = 0, d = c.length; n < d; n++)
if ("string" == typeof c[n]) {
try {
b = b[c[n]]
} catch (e) {}
if ("undefined" === typeof b) return !1
}
return b
};
b.a.bo = function(b) {
return encodeURIComponent(b.moatClientLevel1 + ":" + b.moatClientLevel2 + ":" + b.moatClientLevel3 + ":" + b.moatClientLevel4)
};
b.a.bp =
function(b) {
return z && "undefined" !== typeof b && z[b] ? z[b] : !1
};
b.a.bq = function(b) {
return b && "function" === typeof b ? 0 > String(Function.prototype.toString).indexOf("[native code]") ? b === Function.prototype.toString ? !1 : null : 0 <= String(b).indexOf("[native code]") && !0 || !1 : !1
};
b.a.bi = e;
b.a.br = f;
b.a.bs = c;
b.a.forEach = function(b, m, n, d) {
var e, k = typeof b;
if (b)
if ("function" === k)
for (e in b) {
if ("prototype" != e && "length" != e && "name" != e && (d || !b.hasOwnProperty || b.hasOwnProperty(e)) && (k = m.call(n, b[e], e), "boolean" === typeof k &&
!k)) break
} else if ("number" === k)
for (e = 0; e < b && (k = m.call(n, b, e), "boolean" !== typeof k || k); e++);
else if ("function" === typeof b.every) b.every(function(b, g, c) {
b = m.call(n, b, g);
return !("boolean" === typeof b && !b)
});
else if (c(b))
for (e = 0; e < b.length && (k = m.call(n, b[e], e), "boolean" !== typeof k || k); e++);
else
for (e in b)
if (d || b.hasOwnProperty(e))
if (k = m.call(n, b[e], e), "boolean" === typeof k && !k) break; return b
};
b.a.bt = function(g) {
return g && b.a.filter(g.children, function(b) {
return 1 === b.nodeType
})
};
b.a.bu = function(b) {
if (!b ||
!b.aa) return !1;
if ("number" != typeof b.ADAREA) {
var c, n;
b.elementRect ? (c = b.elementRect.right - b.elementRect.left, n = b.elementRect.bottom - b.elementRect.top) : (c = b.aa.offsetWidth, n = b.aa.offsetHeight);
b.ADAREA = c * n
}
return b.ADAREA
};
var w = /rect\((\d+)px,? ?(\d+)px,? ?(\d+)px,? ?(\d+)px\)/;
b.a.bv = function(g) {
g = g.match(w);
var c = !1;
g && (g = b.a.bh(function(b) {
return parseInt(b, 10)
}, g), c = {
top: g[1],
right: g[2],
bottom: g[3],
left: g[4]
});
return c
};
b.a.bw = function(g) {
if (!g) return !1;
var c = !1;
if (g !== Object(g)) c = g;
else if (b.a.bs(g))
for (var c = [], n = 0, d = g.length; n < d; n++) c[n] = g[n];
else
for (n in c = {}, g) c[n] = g[n];
return c
};
b.a.trim = function(b) {
return String.prototype.trim ? b.trim() : b.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "")
};
b.a.bx = function() {
var b = function() {
var b = window.pageXOffset ? window.pageXOffset + window.innerWidth - 1 : 0,
g = window.pageYOffset ? window.pageYOffset + window.innerHeight - 1 : 0;
return b || g ? !document.elementFromPoint(b, g) : !0
}();
return function(c, n, d) {
if (!b) {
var e = d.defaultView || d.parentWindow || window;
c += e.pageXOffset;
n += e.pageYOffset
}
return d.elementFromPoint(c,
n)
}
}();
b.a.by = function(b, c) {
return Object.prototype.hasOwnProperty.call(b, c)
};
b.a.bz = function(g, c) {
if (!g || !c || "object" != typeof g || "object" != typeof c) return !1;
var n = !0;
b.a.forEach(g, function(b, g) {
if ("string" != typeof b && "number" != typeof b) return !0;
if (!c.hasOwnProperty(g) || c[g] !== b) return n = !1
});
b.a.forEach(c, function(b, c) {
if ("string" != typeof b && "number" != typeof b) return !0;
if (!g.hasOwnProperty(c) || g[c] !== b) return n = !1
});
return n
};
b.a.ca = function(b, c, n) {
return function() {
c.apply(n || null, b.concat(b.slice.call(arguments)))
}
};
b.a.t = function(b) {
try {
var c = b && b.ownerDocument;
return c && (c.defaultView || c.parentWindow)
} catch (n) {
return !1
}
};
b.a.cb = function(g, c) {
if (!g || !c) return !1;
for (var n = [], d, e = 0; 50 > e; e++)
if (c != c.parent) {
if (d = b.f.a(g, c)) n.push(d);
else break;
c = c.parent;
g = d
} else break;
return n
};
b.a.cc = function(b) {
b = t.max(4, b);
return ((1 + t.random()) * t.pow(16, b) | 0).toString(16).substring(0, b)
};
b.a.cd = function() {
var g = b.a.cc;
return g(4) + "-" + g(4) + "-" + g(4) + "-" + g(4)
};
b.a.a = function(b) {
window && window.clearTimeout && window.clearTimeout(b)
};
b.a.b = function(b) {
window && window.clearInterval && window.clearInterval(b)
};
var J = function(g, c) {
if (b.a.bq(c.toString)) return c.toString();
if (b.a.bq(g && g.Function.prototype.toString)) return c.toString = g.Function.prototype.toString, c.toString();
var n = b.e.c !== g && b.e.c && b.e.c.Function.prototype.toString;
if (b.a.bq(n)) return c.toString = n, c.toString();
if (b.e.g && 8 >= b.a.l()) return c.toString();
var n = g || window,
d = n.document.createElement("IFRAME");
d.style.display = "none";
d.style.width = "0px";
d.style.height = "0px";
d.width = "0";
d.height = "0";
b.a.bd(d, n.document.documentElement);
d.contentWindow && (c.toString = d.contentWindow.Function.prototype.toString);
var e = c.toString();
n.document.documentElement.removeChild(d);
return e
};
b.a.toString = function(g, c) {
c = c || b.e.c;
var d;
try {
d = J(c, g)
} catch (e) {
d = g.toString()
}
return d
};
b.a.ce = function(g, c, d) {
g = b.a.toString(g, d);
if (b.e.h()) d.eval("(" + g + ")(" + c + ")");
else {
var e = d.document.createElement("script");
e.type = "text/javascript";
e.text = "(" + g + ")(" + c + ")";
b.a.bd(e, d.document.body)
}
}
})(l);
(function(b) {
b.i = {};
b.i.a = function() {
this.desw = {};
this.edws = []
};
b.i.a.prototype.xsza = function(b) {
this.desw[b] || (this.desw[b] = {});
return this.desw[b]
};
b.i.a.prototype.azsx = function(h, f, c) {
c = c || {};
var e = c.id || b.a.cd();
h = this.xsza(h);
for (var k = 0; h[e] && !c.id && 10 > k;) k++, e = b.a.cd();
h[e] = f;
return e
};
b.i.a.prototype.zaxs = function(b, f) {
if (!this.desw[b]) return !1;
for (var c in this.desw[b]) this.desw[b][c] && this.desw[b][c].apply(null, this.edws.slice.call(arguments, 1))
};
b.i.a.prototype.swaq = function(b, f) {
if (this.desw[b]) try {
this.desw[b][f] =
null, delete this.desw[f]
} catch (c) {}
};
b.i.a.prototype.sxaz = function(b, f) {
if (!f || "object" != typeof f) return !1;
if (f.id) this.swaq(b, c);
else if (f.callback)
for (var c in this.desw) this.desw[b][c] == f.callback && this.swaq(b, c)
};
b.i.b = new b.i.a
})(l);
(function(b) {
b.f = {};
b.f.b = function(h) {
if (!h) return null;
try {
if (h.moatHostileIframe) return null;
if (h.src && h.src.slice && "http" === h.src.slice(0, 4) && b.a.r(h.src) != b.a.r(K.location.toString())) return h.moatHostileIframe = !0, null;
var f = h && (h.contentDocument || h.contentWindow &&
h.contentWindow.document);
if (f && "string" === typeof f.location.toString()) return f;
h.moatHostileIframe = !0;
return null
} catch (c) {
return h.moatHostileIframe = !0, null
}
};
b.f.a = function(h, f) {
f = f || b.a.t(h);
try {
return f && f.frameElement
} catch (c) {
return !1
}
};
b.f.c = function(h, f) {
var c;
b.a.forEach(h.getElementsByTagName("iframe"), function(b) {
if (b && b.contentWindow && b.contentWindow == f) return c = b, !1
});
return c
};
b.f.d = function(h) {
if (h = b.f.a(h)) try {
return h.parentNode
} catch (f) {}
return null
};
b.f.e = function(h, f) {
if (!h) return !1;
var c = 0,
e = [];
for (f = f || 10; c < f;)
if (c++, h = b.f.a(h)) e.push(h);
else return e
};
b.f.f = function(h, f) {
if (!h) return !1;
var c = 0,
e = [h],
k;
for (f = f || 10; c < f;) {
c++;
try {
if (h = (k = h.frameElement) && b.a.t(k), k && h && !b.f.g(h)) e.push(h);
else return e
} catch (d) {
break
}
}
return e
};
b.f.h = function(h, f, c) {
var e = [];
h && e.push(h);
c = c || 0;
if (10 < c || !h || !h.frames) return e;
for (var k = 0, d = h.frames.length; k < d; k++) try {
f && !b.f.i(h.frames[k]) ? e.push(h.frames[k]) : e = e.concat(b.f.h(h.frames[k], f, c + 1))
} catch (v) {
break
}
return e
};
b.f.j = function(b, f) {
f =
"number" == typeof f ? f : 15;
var c = [],
e;
if (b) {
e = b.top;
for (var k = 0; k < f; k++)
if ((b = b.parent) && b != b.top) c.push(b);
else break;
c.push(e)
}
return c
};
b.f.k = [];
b.f.i = function(h) {
for (var f, c = 0, e = b.f.k.length; c < e; c++) b.f.k[c].win == h && (f = b.f.k[c]);
if (!f) {
f = {
win: h,
friendly: !1
};
try {
h.document && (f.friendly = !0)
} catch (k) {}
}
return f.friendly
};
b.f.l = function(h, f) {
for (var c = b.f.f(h).pop(), c = b.f.h(c, !0), e = 0, k = c.length; e < k; e++)
if (c[e] == f) return !0;
return !1
};
b.f.g = function(b) {
try {
var f = typeof b.location.toString;
if ("undefined" ===
f || "unknown" === f) return !0;
var c = typeof b.document;
if ("undefined" === c || "unknown" === c) return !0;
var e = b.innerWidth || b.document.documentElement.clientWidth || b.document.body.clientWidth || 0;
return "number" !== typeof(b.screenX || b.screenLeft || 0) || "number" !== typeof e ? !0 : !1
} catch (k) {
return !0
}
}
})(l);
(function(b) {
b.e = {};
b.e.i = "MoatSuperV14";
b.e.j = 8;
b.e.k = 0 < Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor");
b.e.l = -1 !== navigator.userAgent.toLowerCase().indexOf("firefox");
b.e.g = b.a.m();
b.e.m =
(new x).getTime();
b.e.n = !!window.opera || 0 <= navigator.userAgent.indexOf(" OPR/");
b.e.o = !1;
var h = function() {
var c = function(c) {
if (b.a.bn(c, ["mraid", "isViewable"]) && (c = c.mraid.isViewable, "function" === typeof c)) try {
return isMraidViewable = c(), "undefined" !== typeof isMraidViewable
} catch (d) {}
return !1
},
d = document,
e = window,
f = c(e);
if (!f && b.e.p)
for (var r = 0; 20 > r && !f; r++) {
d = b.f.a(d.body);
if (!1 !== d && !d) break;
d = (e = b.a.t(d)) && e.document;
f = f || c(e)
}
b.e.q = function() {
return f && e
};
b.e.d = function() {
return f
};
b.e.r = function() {
return !1
};
(function() {
if (b.e.d()) {
var c = "___mraid_loop___" + (new x).getTime(),
d = b.a.bn(b.e.q(), ["mraid", "isViewable"]);
d && b.h.b(function() {
return d() ? (b.e.r = function() {
return !0
}, !1) : !0
}, {}, 300, c)
}
})()
};
b.e.q = function() {
h();
return b.e.q()
};
b.e.d = function() {
h();
return b.e.d()
};
b.e.r = function() {
h();
return b.e.r()
};
var f = function() {
var c = function(c) {
if (b.a.ad.isInApp) return !1;
if (b.a.bn(c, ["$sf", "ext", "inViewPercentage"]) && b.a.bn(c, ["$sf", "ext", "geom"])) {
var d = c.$sf,
d = d && d.ext && d.ext.geom;
if ("function" === typeof d) try {
return d =
c.$sf.ext.geom(), !(!d || !d.par)
} catch (g) {}
}
return !1
},
d = window,
e = document,
f = c(d),
r = !(!f && !d.$sf);
if (!f && b.e.p)
for (var q = 0; 20 > q && !f; q++) {
e = b.f.a(e.body);
if (!1 !== e && !e) break;
e = (d = b.a.t(e)) && d.document;
f = f || c(d);
r = r || f || d.$sf
}
b.e.s = function() {
return f && d
};
b.e.t = function() {
return f
};
b.e.u = function() {
return r
}
};
b.e.v = !1;
b.e.s = function() {
f();
return b.e.s()
};
b.e.u = function() {
f();
return b.e.u()
};
b.e.t = function() {
f();
return b.e.t()
};
b.e.protocol = b.a.ba();
b.e.w = ("https:" === b.e.protocol ? "z" : "js") + ".moatads.com";
b.e.f = window != window.parent;
var c = b.f.g(window.parent);
b.e.p = b.e.f && !c;
b.e.x = b.a.x();
b.e.a = c ? !1 : !b.f.g(window.top);
b.e.c = b.e.a ? window.top : b.e.p ? window.parent : window;
b.a.ad().isInApp && (b.e.a = b.a.ak() || b.a.ai());
b.e.b = b.e.c.document.referrer || "";
try {
b.e.y = b.e.c.history && b.e.c.history.length
} catch (k) {}
try {
if (!b.e.a) {
var c = window,
e;
for (e = 0; 20 > e && c != window.top; e++) c = c.parent;
b.e.z = e
}
} catch (k) {}
b.e.aa = function() {
var c = b.e.c;
if (!c) return !1;
try {
var d = c.document && c.document.body,
e = c.document && c.document.documentElement
} catch (f) {}
try {
c.screen &&
(b.e.ab = c.screen.availWidth, b.e.ac = c.screen.availHeight, b.e.ad = c.screen.width, b.e.ae = c.screen.height)
} catch (f) {
b.e.ab = b.e.ab || 0, b.e.ac = b.e.ac || 0, b.e.ad = b.e.ad || 0, b.e.ae = b.e.ae || 0
}
var u = b.e.af(c);
b.e.ag = u.width;
b.e.ah = u.height;
try {
b.e.ai = c.outerWidth || c.document && c.document.body && c.document.body.offsetWidth || 0, b.e.aj = c.outerHeight || c.document && c.document.body && c.document.body.offsetHeight || 0
} catch (f) {
b.e.ai = 0, b.e.aj = 0
}
d && e && (b.e.ak = t.max(d.scrollHeight, d.offsetHeight, e.clientHeight, e.scrollHeight,
e.offsetHeight), b.e.al = d.scrollTop || e.scrollTop || c.pageYOffset || 0)
};
b.e.af = function(b) {
var c, e, f, r = 0,
q = 0;
try {
(c = b.document, e = c.documentElement, f = c.body, "undefined" !== typeof b.innerWidth) ? (r = b.innerWidth, q = b.innerHeight) : "CSS1Compat" === c.compatMode && 5 !== c.documentMode || !f || "undefined" === typeof f.clientWidth ? e && "undefined" !== typeof e.clientWidth && (r = e.clientWidth, q = e.clientHeight) : (r = f.clientWidth, q = f.clientHeight)
} catch (w) {}
return {
width: r,
height: q,
left: 0,
right: r,
top: 0,
bottom: q
}
};
b.e.aa();
b.e.am = function() {
if (z)
for (var b in z)
if (z.hasOwnProperty(b)) return !0;
return !1
};
b.e.an = function(c) {
var d = !0;
b.a.forEach(c && c.parentNode && c.parentNode.childNodes, function(c) {
if (b.a.n(["DIV", "IFRAME", "A", "EMBED", "OBJECT"], c.nodeName)) return d = !1
});
return d
};
b.e.ao = function() {
for (var b in z)
if (z.hasOwnProperty(b)) {
var c = z[b];
if (c && c.aa && c.aa[F]) return !0
}
return !1
};
b.e.ap = function() {
return b.e.a
};
b.e.aq = function() {
return b.e.v || b.e.t && b.e.t()
};
b.e.ar = function(c) {
var d = !1;
b.j && b.j.a() ? d = !0 : b.b && b.b.b && (c && c.periscopeManager ? c.periscopeManager.measurable && (d = !0) : d = !0);
return d
};
b.e.as = function(c) {
return c ? b.e.ap() || b.e.aq() || b.e.ar(c) ? !0 : !1 : !1
};
b.e.e = new b.e.c.Image;
b.e.h = function() {
if ("undefined" !== typeof b.e.c["Moat#EVA"]) return !0;
try {
if ("undefined" !== typeof b.e.c.eval && (b.e.c.eval("(function(win){ win['Moat#EVA'] = true; })(window)"), "undefined" !== typeof b.e.c["Moat#EVA"])) return !0
} catch (c) {}
return !1
}
})(l);
(function(b) {
b.k = {};
b.k.a = function(h, f) {
this.sxdc = b.a.cd();
this.cdxs = h;
this.xscd = {};
this.swde = f
};
b.k.a.prototype.wsed = function(h, f, c, e, k) {
this.xscd[e] || (this.xscd[e] = {});
this.xscd[e].evt = f;
this.xscd[e].target = h;
var d;
d = b.a.ca([this], function(v, u) {
b.h.c(h, f, null, e);
if (v.xscd[e]) {
v.xscd[e].tid = b.h.d(function() {
b.h.e(h, f, d, e)
}, k);
try {
v.swde.zaxs(c, u)
} catch (r) {}
}
});
b.h.e(h, f, d, e)
};
b.k.a.prototype.wsqa = function(h) {
this.xscd[h] && (b.a.a(this.xscd[h].tid), b.h.c(this.xscd[h].target, this.xscd[h].evt, null, h), delete this.xscd[h])
};
b.k.a.prototype.qaws = function() {
this.wsed(this.cdxs, "scroll", "scroll", "globalScrollevent" + this.sxdc, 1E3)
};
b.k.a.prototype.aqsw = function() {
this.wsqa("globalScrollevent" +
this.sxdc)
}
})(l);
(function(b) {
function h(b) {
return function() {
var e = !1;
return function(k) {
try {
return b(k)
} catch (f) {
if (!e) {
e = !0;
k = (new x).getTime();
window["Moat#ETS"] || (window["Moat#ETS"] = k);
window["Moat#EMC"] || (window["Moat#EMC"] = 0);
var d = 36E5 <= k - window["Moat#ETS"],
v = "";
try {
v = b.toString()
} catch (w) {
v = "failed"
}
v = f.name + " in closure (cb): " + f.message + ", stack=" + f.stack + ", \ncb=" + v + "\n";
if (!d && 10 > window["Moat#EMC"]) {
window["Moat#EMC"]++;
try {
var h = "//video.moatads.com/pixel.gif?e=24&d=data%3Adata%3Adata%3Adata&i=" +
escape("XAXISSUPPLYVPAID1") + "&ac=1&k=" + escape(v) + "&ar=" + escape("0e1cb8a-clean") + "&j=" + escape(document.referrer) + "&cs=" + (new x).getTime(),
r = new Image(1, 1);
r.src = h
} catch (w) {}
} else if (d) {
window["Moat#EMC"] = 1;
window["Moat#ETS"] = k;
try {
h = "//video.moatads.com/pixel.gif?e=24&d=data%3Adata%3Adata%3Adata&i=" + escape("XAXISSUPPLYVPAID1") + "&ac=1&k=" + escape(v) + "&ar=" + escape("0e1cb8a-clean") + "&j=" + escape(document.referrer) + "&cs=" + (new x).getTime(), r = new Image(1, 1), r.src = h
} catch (w) {}
}
}
}
}
}()
}
b.h = {};
var f = {};
b.h.f = f;
b.h.g = function(c, e) {
if (!c || "string" !== typeof e || !c[e] || c == window) return !1;
if ("string" === typeof c.nodeName && ("OBJECT" === c.nodeName || "EMBED" === c.nodeName)) {
var k = b && b.l && b.l[e];
if (k && k !== c[e]) return k
}
return !1
};
b.h.e = function(c, e, k, d) {
var v, u = h(k),
r;
c.addEventListener ? (k = "addEventListener", v = "") : (k = "attachEvent", v = "on");
if (r = b.h.g(c, k)) try {
r.call(c, v + e, u, !1)
} catch (q) {
c[k](v + e, u, !1)
} else if (c && k && c[k]) try {
c[k](v + e, u, !1)
} catch (q) {}!1 !== d && (f[e + d] = u)
};
b.h.c = function(c, e, k, d) {
var v, h = e + d,
r;
if (!c) return delete f[h], !1;
k = !1 !== d ? f[h] : k;
c.removeEventListener ? (d = "removeEventListener", v = "") : (d = "detachEvent", v = "on");
if (r = b.h.g(c, d)) try {
r.call(c, v + e, k, !1)
} catch (q) {
c[d](v + e, k, !1)
} else try {
c[d](v + e, k, !1)
} catch (q) {}
delete f[h]
};
b.h.h = function(b, e) {
b = h(b);
var k;
window && window.setInterval && (k = window.setInterval(b, e), O.push(k));
return k
};
b.h.d = function(b, e) {
b = h(b);
var k;
window && window.setTimeout && (k = window.setTimeout(b, e), Y.push(k));
return k
};
b.h.b = function(c, e, k, d) {
if (!d) return !1;
d += "";
D[d] && b.a.a(D[d].tid);
D[d] = {};
D[d].callback =
h(c);
D[d].params = e;
D[d].interval = k;
D[d].tid = b.h.d(b.h.i(d), k);
callbacks = null
};
b.h.i = function(c) {
return function() {
if (!D || !D[c]) return !1;
var e = D[c].callback(D[c].params);
if ("boolean" === typeof e && !1 === e) return b.a.a(D[c].tid), D[c] = !1;
D[c].tid = b.h.d(b.h.i(c), D[c].interval);
time = c = null
}
};
b.h.j = function() {
return D
};
b.h.a = function(c, e, k, d) {
var f = 0,
h = function() {
f += 1;
!0 !== c() && (f < e ? b.h.d(h, k) : "function" === typeof d && d())
};
h()
};
b.h.k = h
})(l);
(function(b) {
function h() {
this.height = this.width = this.absTop = this.absLeft =
0;
this.update = function(b) {
var c = v("left", b.win),
d = v("top", b.win);
!1 !== c && !1 !== d && (this.absLeft = b.left + c, this.absTop = b.top + d, this.width = b.width, this.height = b.height)
}
}
function f(c, m) {
var d = c.zr;
J.hasOwnProperty(d) || (J[d] = new h);
var e = m || new b.m.i(c.aa);
J[d].update(e)
}
function c(c, m) {
if (!c) return !1;
var d = "number" == typeof c.zr,
e, r;
d ? (e = c.aa, r = c._calcVideoBasedOnContainer) : e = c;
r = r ? new b.m.i(e.parentNode, m) : new b.m.i(e, m);
e = r.height;
var q = r.width,
v = r.calcArea();
if (0 === v) return {
area: v,
percv: 0
};
var h = k(r),
J = h.visibleRect.calcArea(),
w = J / v,
u;
a: {
var l = h.cumulRect,
t = h.cumulRect.getViewportRect();
if (0 > l.top && 0 < l.bottom) u = -l.top;
else if (0 <= l.top && l.top <= t.height) u = 0;
else {
u = {
yMin: -1,
yMax: -1
};
break a
}
if (0 <= l.bottom && l.bottom <= t.height) l = l.height;
else if (l.bottom > t.height && l.top < t.height) l = l.height - (l.bottom - t.height);
else {
u = {
yMin: -1,
yMax: -1
};
break a
}
u = {
yMin: u,
yMax: l
}
}
d && f(c, r);
return {
area: v,
visibleArea: J,
visibleRect: h.visibleRect,
cumulRect: h.cumulRect,
percv: w,
yMinMax: u,
elGeo: {
elHeight: e,
elWidth: q,
foldTop: h.cumulRect.top,
totalArea: h.parentArea
},
rect: r.rect
}
}
function e(b, c) {
for (var d = [], e = 0; e < c.length; e++) d.push(b(c[e]));
return d
}
function k(c) {
var m, d = b.a.cb(c.el, c.win),
d = e(function(c) {
return new b.m.i(c)
}, d);
d.unshift(c);
var k = d.length;
c = new b.m.i(c.el, b.e.c);
for (var f = 0; f < k; f++) {
var r = d[f];
0 === f ? m = r : (m.changeReferenceFrame(r), c.changeReferenceFrame(r));
r = r.getViewportRect(f < k - 1 ? d[f + 1] : !1);
m = b.m.k(m, r)
}
return {
visibleRect: m,
cumulRect: c,
parentArea: d[d.length - 1].calcArea()
}
}
function d(b, c, d, e) {
b = t.max(b, d);
c = t.min(c,
e);
return c > b ? [b, c] : [0, 0]
}
function v(b, c) {
c || (c = window);
try {
var d = c.document.documentElement,
e = c.document.body;
return "left" === b ? c.pageXOffset || d && d.scrollLeft || e && e.scrollLeft : c.pageYOffset || d && d.scrollTop || e && e.scrollTop
} catch (k) {
return !1
}
}
function u(c, d, e, k) {
var f = [],
r;
for (r in c) {
var q = c[r],
q = b.a.bx(q[0], q[1], d),
v;
if (v = q && q !== e && q[M] !== k) q = (q = b.a.at(q)) && (1 >= q.width || 1 >= q.height) ? !0 : !1, v = !1 === q;
v && f.push(r)
}
return f
}
function r(b) {
var c = .01 * b.width,
d = .01 * b.height;
return {
tl: [b.left + c, b.top + d],
m: [b.left +
(b.right - b.left) / 2, b.top + (b.bottom - b.top) / 2
],
br: [b.right - c, b.bottom - d]
}
}
function q(c, d) {
var n = {
corners: [],
addCorner: function(c) {
var g = this;
b.a.forEach(c, function(c) {
-1 === b.a.indexOf(g.corners, c) && g.corners.push(c)
})
}
},
k = b.f.e(c),
k = e(function(d) {
var m = new b.m.i(c),
e = new b.m.i(d);
m.changeReferenceFrame(e);
return {
rect: m,
frame: d,
doc: d.ownerDocument
}
}, k);
k.unshift({
rect: new b.m.i(c),
frame: c,
doc: c.ownerDocument
});
b.a.forEach(k, function(b) {
var c = r(b.rect);
n.addCorner(u(c, b.doc, b.frame, d))
});
return n.corners
}
b.m = {};
var w = b.e.a,
J = {};
b.m.a = .5;
b.m.b = .98;
b.m.c = void 0;
b.m.d = function(g, d) {
d = d || !1;
return function(e, k) {
var f = e.ao.skin ? b.m.e(e, k) : c(e, k);
f.isVisible = d ? f.percv > g : f.percv >= g;
f.elGeo && (f.elGeo.threshold = g);
return f
}
};
b.m.e = function(g, d) {
var e = c(g, d),
k = b.m.f(e, g),
f = b.m.b;
e.isVisible = e.percv >= k;
e.isFullyVisible = e.percv >= f;
e.elGeo && (e.elGeo.threshold = k);
g.videoIsFullscreen && 0 < e.percv && (e.isVisible = !0);
.8 <= e.percv && (e.isDentsuVisible = !0);
b.m.c ? e.percv > b.m.c && (b.m.c = e.percv) : b.m.c = e.percv;
return e
};
b.m.f =
function(c, d) {
return b.m.a
};
b.m.g = function() {
return w
};
b.m.h = function(b, c) {
w && J.hasOwnProperty(c) || f(b);
return J[c]
};
b.m.j = b.e.af;
b.m.i = function(c, d, e, k) {
try {
this.rect = e || c.getBoundingClientRect && c.getBoundingClientRect() || {}
} catch (f) {
this.rect = e || c && {
top: c.offsetTop,
left: c.offsetLeft,
width: c.offsetWidth,
height: c.offsetHeight,
bottom: c.offsetTop + c.offsetHeight,
right: c.offsetLeft + c.offsetWidth
} || {}
}
e = "left right top bottom width height".split(" ");
for (k = 0; k < e.length; k++) {
var r = e[k];
this[r] = this.rect[r]
}
c &&
c.CLIPCHECKINGTARGET && (e = b.a.bv(c.CLIPCHECKINGTARGET.style.clip)) && (this.right = this.left + e.right, this.left += e.left, this.bottom = this.top + e.bottom, this.top += e.top);
this.width = this.right - this.left;
this.height = this.bottom - this.top;
this.el = c;
this.win = d || c && b.a.t(c);
this.changeReferenceFrame = function(b) {
this.left += b.left;
this.right += b.left;
this.top += b.top;
this.bottom += b.top
};
this.calcArea = function() {
return (this.right - this.left) * (this.bottom - this.top)
};
this.getViewportRect = function(c) {
var g = b.e.af(this.win);
c && (c.width < g.width && (g.width = c.width, g.right = g.left + g.width), c.height < g.height && (g.height = c.height, g.bottom = g.top + g.height));
return g
}
};
b.m.l = function(b, c, d) {
return {
left: Number(c) + Number(b.left),
right: Number(c) + Number(b.right),
top: Number(d) + Number(b.top),
bottom: Number(d) + Number(b.bottom)
}
};
b.m.l = function(b, c, d) {
return {
left: Number(c) + Number(b.left),
right: Number(c) + Number(b.right),
top: Number(d) + Number(b.top),
bottom: Number(d) + Number(b.bottom)
}
};
b.m.k = function(c, e) {
var n = d(c.left, c.right, e.left, e.right),
k = d(c.top, c.bottom, e.top, e.bottom);
return new b.m.i(void 0, void 0, {
left: n[0],
right: n[1],
top: k[0],
bottom: k[1]
})
};
b.m.m = v;
b.m.n = c;
b.m.o = function(c) {
var d = c.aa;
c = c.zr;
if (d) {
if (b.e.p) d = q(d, c);
else var e = new b.m.i(d),
e = r(e),
d = u(e, b.e.c.document, d, c);
return {
half: 1 < d.length ? !0 : !1,
full: 3 === d.length ? !0 : !1
}
}
}
})(l);
(function(b) {
b.b = {};
var h = b.a.l(),
f = null !== h,
c = -1 !== navigator.userAgent.indexOf("Chrome"),
e = !1,
k = function() {
var b = navigator.appVersion.match(/Windows NT (\d\.\d)/);
return b ? parseFloat(b[1]) : -1
}(),
d = 6.2 <= k;
b.b.c = h;
b.b.d = f;
b.b.e = c;
b.b.f = k;
b.b.g = d;
var v = {
FRAME_RATE: "fr",
STAGE_WIDTH: "sd",
ACTIVE_STAGE_WIDTH: "asd",
THROTTLE: "td",
RAPID_THROTTLE: "rtd"
};
b.b.h = v;
b.b.i = 0 < Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor");
b.b.j = b.a.o();
b.b.k = !1;
if (b.b.i) try {
var u = parseInt(navigator.userAgent.match(/Version\/(\d)/)[1], 10);
b.b.k = 5 < u
} catch (r) {}
b.b.l = !1;
b.b.m = function(c) {
if (c.currentFocusState) {
if ("center" != c.config.name) {
var d, e, k = (d = c.manager.getPixelByName("center")) && (e = d.viewstates[c.manager.getTargetViewState()]) &&
e.inview;
d = c.manager.reachedAnyInview;
if (!k && d) {
c.skipWidthCheck = !0;
return
}
}
var g, m;
"undefined" !== typeof c.manager.adNum && (g = b.a.bp(c.manager.adNum)) && (m = b.n.a(g, !0), b.n.b(g, 1));
!m || "bottomLeft" != c.config.name && "topRight" != c.config.name ? c.skipWidthCheck = !1 : c.killWidthCheck = !0
} else c.skipWidthCheck = !0
};
b.b.n = function(c) {
var d = {
insertableFunc: b.b.o,
pixels: [{
name: "center",
id: "moatPx" + c.zr + "_" + t.ceil(1E6 * t.random()),
target: c.aa,
container: c.aa.parentNode,
position: {
top: "50%",
left: "50%"
},
onWidthCheck: b.b.m
}, {
name: "topLeft",
id: "moatPx" + c.zr + "_" + t.ceil(1E6 * t.random()),
target: c.aa,
container: c.aa.parentNode,
position: {
top: "0px",
left: "0px"
},
onWidthCheck: b.b.m
}, {
name: "bottomRight",
id: "moatPx" + c.zr + "_" + t.ceil(1E6 * t.random()),
target: c.aa,
container: c.aa.parentNode,
position: {
top: "100%",
left: "100%"
},
onWidthCheck: b.b.m
}]
};
d.pixels.push({
name: "dentsuTopLeft",
id: "moatPx" + c.zr + "_" + t.ceil(1E6 * t.random()),
target: c.aa,
container: c.aa.parentNode,
position: {
top: "20%",
left: "20%"
},
onWidthCheck: b.b.m
});
d.pixels.push({
name: "dentsuBottomRight",
id: "moatPx" + c.zr + "_" + t.ceil(1E6 * t.random()),
target: c.aa,
container: c.aa.parentNode,
position: {
top: "80%",
left: "80%"
},
onWidthCheck: b.b.m
});
return d
};
b.b.p = function(c, d) {
var e = !1,
k = !1;
b.a.forEach(c.pixels, function(b) {
"0px" == b.config.position.left && "0px" == b.config.position.top && b.measurable && b.viewstates && b.viewstates[d] && (e = !0);
"100%" == b.config.position.left && "100%" == b.config.position.top && b.measurable && b.viewstates && b.viewstates[d] && (k = !0)
});
return e && k ? !0 : !1
};
b.b.q = function(c, d) {
var e = !1;
b.a.forEach(c.pixels,
function(b) {
if (b.config && "50%" == b.config.position.left && "50%" == b.config.position.top && b.viewstates && b.viewstates[d]) return e = !0, !1
});
return e
};
b.b.r = function(c, d) {
var e = !1,
k = !1,
g = !1,
m = !1;
b.a.forEach(c.pixels, function(b) {
"0px" == b.config.position.left && "0px" == b.config.position.top && b.measurable && b.viewstates && b.viewstates[d] && (e = !0);
"100%" == b.config.position.left && "100%" == b.config.position.top && b.measurable && b.viewstates && b.viewstates[d] && (g = !0);
b.config && "20%" == b.config.position.left && "20%" == b.config.position.top &&
b.viewstates && b.viewstates[d] && (k = !0);
b.config && "80%" == b.config.position.left && "80%" == b.config.position.top && b.viewstates && b.viewstates[d] && (m = !0)
});
return e && m && g && k
};
b.b.s = function(c, d) {
var e = !1;
b.a.forEach(c.pixels, function(b) {
if (b.config && b.viewstates && b.viewstates[d] && (e = b.viewstates[d].inview)) return !1
});
return e
};
b.b.t = function(c, d) {
var e = !1;
b.a.forEach(c.pixels, function(b) {
if (b.config && "50%" == b.config.position.left && "50%" == b.config.position.top && b.viewstates && b.viewstates[d]) return e = b.viewstates[d].inview, !1
});
return e
};
b.b.u = function(c, d) {
if (!c.inview) return !1;
var e = !1,
k = !1;
b.a.forEach(c.pixels, function(b) {
"0px" == b.config.position.left && "0px" == b.config.position.top && b.measurable && b.viewstates && b.viewstates[d] && (e = b.viewstates[d].inview);
"100%" == b.config.position.left && "100%" == b.config.position.top && b.measurable && b.viewstates && b.viewstates[d] && (k = b.viewstates[d].inview)
});
return e && k ? !0 : !1
};
b.b.v = function(c, d) {
if (!c.inview) return !1;
var e = !1,
k = !1,
g = !1,
m = !1;
b.a.forEach(c.pixels, function(b) {
"0px" == b.config.position.left &&
"0px" == b.config.position.top && b.measurable && b.viewstates && b.viewstates[d] && (e = b.viewstates[d].inview);
"100%" == b.config.position.left && "100%" == b.config.position.top && b.measurable && b.viewstates && b.viewstates[d] && (g = b.viewstates[d].inview);
b.config && "20%" == b.config.position.left && "20%" == b.config.position.top && b.viewstates && b.viewstates[d] && (k = b.viewstates[d].inview);
b.config && "80%" == b.config.position.left && "80%" == b.config.position.top && b.viewstates && b.viewstates[d] && (m = b.viewstates[d].inview)
});
return e &&
m || g && k
};
b.b.a = function(b) {
b.periscopeManager && b.periscopeManager.killAllPixels()
};
b.b.w = function(c) {
b.b.x(c.periscopeConfig) || (c.periscopeConfig = b.b.n(c));
c.periscopeManager = new b.b.y(c.periscopeConfig, c.zr);
b.b.b = c.periscopeManager.insertSuccessful;
return c.periscopeManager.insertSucceeded
};
b.b.b = !1;
b.b.o = function() {
return 1 === t.floor(100 * t.random()) ? !b.a.x() && (f || c || b.b.k) : !b.a.x() && !b.e.a && (f || c || b.b.k)
};
b.b.z = function(c) {
return c.periscopeManager ? (b.n.c(c, !0) && c.periscopeManager.killDentsuPixels(),
c.periscopeManager.getViewStats()) : {
isVisible: !1
}
};
b.b.aa = function() {};
b.b.x = function(c) {
if ("object" !== typeof c || "function" !== typeof c.insertableFunc || !b.a.bi(c.pixels) || 0 == c.pixels.length) return !1;
var d = !1;
b.a.forEach(c.pixels, function(b) {
b.id && b.target && b.container && "object" === typeof b.position && "string" === typeof b.position.top && "string" === typeof b.position.left || (d = !0)
});
return !d
};
b.b.ab = function() {
return d && f && 10 <= h
};
b.b.ac = /([0-9]+(?:\.[0-9]+)?)(\%|px)/i;
b.b.ad = function() {
var c = {};
return function(d) {
if ("string" !==
typeof d) return !1;
if ("undefined" !== typeof c[d]) return c[d];
var e, k;
(e = d.match(b.b.ac)) && 3 == e.length && (k = e[2], e = -1 != e[1].indexOf(".") ? parseInt(e[1], 10) : parseFloat(e[1], 10));
if ("number" !== typeof e) return !1;
c[d] = {
val: e,
type: k
};
return c[d]
}
}();
b.b.ae = function(c, d) {
this.config = c;
this.measurable = this.inserted = !1;
this.viewstates = {};
this.manager = d;
this.killed = !1;
this.cbNames = [];
this.killWidthCheck = this.skipWidthCheck = !1;
this.loopIds = [];
this.getPeriscopeAssetURI = function() {
return b.e.protocol + "//" + b.e.w + "/swf/p6.v3.swf"
};
this.insertIntoDOM = function() {
if (this.inserted) return !1;
var c, g;
g = f ? c = 2 : c = 1;
var d = "position: absolute; width: " + c + "px; height: " + g + "px; z-index: -9999;";
b.b.k && (d += "-webkit-transform: translate3d(0, 0, 0);");
var e = this.config.id,
k = this.getPeriscopeAssetURI(),
r = this.calcPosition();
if (!r) return !1;
var r = d + "left: " + r.left + "px; top: " + r.top + "px;",
v = d + "left: 0px; top: 0px;";
this.targetDoc = d = this.config.target.ownerDocument;
var h = "defaultView" in d ? d.defaultView : d.parentWindow,
q = "Moat#PSCB" + t.floor(1E8 * t.random());
h[q] = {
fn: this.onStateChange,
ct: this
};
this.cbNames.push(q);
h = "sco=" + encodeURIComponent(q) + "&tvs=" + this.manager.getTargetViewState();
q = d.createElement("div");
q.id = "moatPxDiv" + t.ceil(1E6 * t.random());
q.style.width = "0px";
q.style.height = "0px";
q.style.position = "absolute";
q.style.top = "0px";
q.style.left = "0px";
this.wrapperDiv = q;
b.b.ab() ? (v = function(b, c, g) {
var d = document.createElement("param");
d.setAttribute("name", c);
d.setAttribute("value", g);
b.appendChild(d)
}, d = d.createElement("OBJECT"), d.setAttribute("data",
k), d.setAttribute("id", e), d.setAttribute("name", e), d.setAttribute("style", r), d.setAttribute("width", c + ""), d.setAttribute("height", g + ""), v(d, "flashvars", h), v(d, "wmode", "transparent"), v(d, "bgcolor", ""), v(d, "allowscriptaccess", "always"), b.a.bd(q, this.config.container), q.appendChild(d)) : (b.a.bd(q, this.config.container), q.innerHTML = '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="' + c + '" height="' + g + '" style="' + r + '" id="' + e + '"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="' +
k + '" /><param name="quality" value="low" /><param name="hasPriority" value="true" /><param name="FlashVars" value="' + h + '" /><param name="bgcolor" value="" /><param name="wmode" value="transparent" /><embed type="application/x-shockwave-flash" src="' + k + '" quality="low" flashvars="' + h + '" bgcolor="" wmode="transparent" width="' + c + '" height="' + g + '" id="' + e + 'e" name="' + e + '" style="' + v + '" hasPriority="true" allowscriptaccess="always" allowFullScreen="false" type="application/x-shockwave-flash" /></object>');
return this.inserted = !0
};
this.startIntervals = function() {
var c = this.getPixelElement();
if (!c) return !1;
if (8 == h && (this.manager.getTargetViewState() === v.STAGE_WIDTH || this.manager.getTargetViewState() === v.ACTIVE_STAGE_WIDTH)) {
var g = "positionToggle#" + this.config.id;
this.loopIds.push(g);
b.h.j()[g] || (this.positionTogglingEnabled = !0, this.positionOffsets || (this.positionOffsets = {}), b.h.b(this.positionToggle, {
pxSwf: c,
pxRef: this
}, 100, g))
}
this.manager.getTargetViewState() === v.STAGE_WIDTH && (g = "stageWidthLoop#" + this.config.id,
this.loopIds.push(g), b.h.j()[g] || b.h.b(this.stageWidthToggle, {
pxSwf: c,
pxRef: this,
originalWidth: c.style.width,
widthRe: /^[0-9\.]+/i,
updates: 0
}, 150, g));
this.manager.getTargetViewState() === v.ACTIVE_STAGE_WIDTH && (g = "activeStageWidthLoop#" + this.config.id, this.loopIds.push(g), b.h.j()[g] || b.h.b(this.stageWidthToggle, {
pxSwf: c,
pxRef: this,
originalWidth: c.style.width,
widthRe: /^[0-9\.]+/i,
updates: 0,
active: !0,
onWidthCheck: this.config.onWidthCheck
}, 200, g))
};
this.stageWidthToggle = function(b) {
if (!b.pxSwf || !b.pxSwf.parentNode ||
!b.pxRef) return !1;
if (b.onWidthCheck) {
b.onWidthCheck(b.pxRef);
if (b.pxRef.killWidthCheck) return b.pxRef.kill(), !1;
if (b.pxRef.skipWidthCheck) return !0
}
var c;
if (b.parsedWidth || (c = b.pxSwf.style.width.match(b.widthRe))) b.parsedWidth || (b.parsedWidth = parseInt(c[0], 10)), 1 == b.updates ? (b.updates = 0, b.pxSwf.style.width = b.originalWidth, c = b.parsedWidth) : (b.updates = 1, c = 1 < b.parsedWidth ? b.parsedWidth - 1 : b.parsedWidth + 1, b.pxSwf.style.width = c + "px"), b.active && b.pxSwf.currentPW && b.pxSwf.currentPW(c)
};
this.positionToggle =
function(b) {
if (!b.pxRef || !b.pxRef.element) return !1;
0 > b.pxRef.positionOffsets.yOffset ? (b.pxRef.positionOffsets.yOffset = 0, b.pxRef.positionOffsets.xOffset = 0) : (b.pxRef.positionOffsets.yOffset = -2E3, b.pxRef.positionOffsets.xOffset = -2E3);
b.pxRef.updatePosition(!0)
};
this.onStateChange = function(c) {
if (!this.measurable) {
this.measurable = !0;
var g;
c && c[0] && c[0].rev && (g = c[0].rev.match(b.b.af)) && 3 == g.length && (b.b.ag = g[1], b.b.j = g[2]);
this.updateFocusState();
this.startIntervals()
}
this.inserted && this.killed ? (this.killed = !1, this.updateFocusState(), this.startIntervals()) : (b.a.forEach(c, function(b) {
this.viewstates[b.name] = b
}, this), this.manager.onStateChange(this, c))
};
this.calcPosition = function() {
var c = {},
g = this.config.position.left,
d = b.b.ad(this.config.position.top),
g = b.b.ad(g),
e = 0,
k = 0;
this.config.positionTarget ? this.config.positionTargetWindow ? this.targetRect = new b.m.i(this.config.positionTarget, this.config.positionTargetWindow, null, !0) : (this.targetRect = new b.m.i(this.config.positionTarget, null, null, !0), this.config.positionTargetWindow =
this.targetRect.win) : (this.targetRect = this.targetRect ? new b.m.i(this.config.target, this.targetRect.win, null, !0) : new b.m.i(this.config.target, null, null, !0), 0 == this.targetRect.left && 0 == this.targetRect.right && 0 == this.targetRect.top && 0 == this.targetRect.bottom && "EMBED" == this.targetRect.el.nodeName && null == this.targetRect.el.offsetParent && this.config.target.parentNode && (this.targetRect = new b.m.i(this.config.target.parentNode, null, null, !0), this.config.positionTarget = this.config.target.parentNode));
var e =
b.m.m("left", this.targetRect.win),
k = b.m.m("top", this.targetRect.win),
f;
this.wrapperDiv && (f = this.wrapperDiv.offsetParent) && "BODY" !== f.nodeName ? this.offsetRect = this.offsetRect ? new b.m.i(f, this.offsetRect.win, null, !0) : new b.m.i(f, null, null, !0) : this.offsetRect = {
left: -e,
top: -k
};
if (!d || !g) return !1;
if ("%" == d.type) c.relativeTop = d.val / 100 * this.targetRect.height, c.top = this.targetRect.top - this.offsetRect.top + d.val / 100 * this.targetRect.height;
else if ("px" == d.type) c.relativeTop = d.val, c.top = this.targetRect.top -
this.offsetRect.top + d.val;
else return !1;
if ("%" == g.type) c.relativeLeft = g.val / 100 * this.targetRect.width, c.left = this.targetRect.left - this.offsetRect.left + g.val / 100 * this.targetRect.width;
else if ("px" == g.type) c.relativeLeft = g.val, c.left = this.targetRect.left - this.offsetRect.left + g.val;
else return !1;
return c
};
this.maxPositionUpdateInterval = 200;
this.getStyle = function(b) {
var c;
try {
c = b && b.style
} catch (g) {}
return c
};
this.updatePosition = function(b) {
var c = (new x).getTime(),
g;
if (!this.element || !(g = this.getStyle(this.element)) ||
this.killed || !b && c - this.lastPositionUpdate < this.maxPositionUpdateInterval) return !1;
this.lastPositionUpdate = c;
b = this.calcPosition();
if (!b) return !1;
this.positionOffsets && (b.left += this.positionOffsets.xOffset || 0, b.top += this.positionOffsets.yOffset || 0);
g.left = this.width + b.relativeLeft > this.targetRect.width ? t.floor(b.left - this.width) + "px" : 0 == b.relativeLeft ? t.floor(b.left) + "px" : t.floor(b.left - .5 * this.width) + "px";
g.top = this.height + b.relativeTop > this.targetRect.height ? t.floor(b.top - this.height) + "px" : 0 == b.relativeTop ?
t.floor(b.top) + "px" : t.floor(b.top - .5 * this.height) + "px";
return !0
};
this.updateFocusState = function() {
var b = this.getPixelElement();
if (b && this.measurable) try {
b.updateFocusState(this.currentFocusState)
} catch (c) {}
};
this.kill = function() {
var c = this.getPixelElement(),
g = b.a.t(c);
g && c && c.dataMoatTIDS && b.a.forEach(c.dataMoatTIDS, function(b) {
g.clearTimeout(b)
});
b.a.forEach(this.loopIds, function(b) {
D && D[b] && (window.clearTimeout(D[b].tid), D[b] = !1)
});
for (var c = 0, d = this.cbNames.length; c < d; c++) {
window[this.cbNames[c]] =
null;
try {
delete window[this.cbNames[c]]
} catch (e) {}
}
return this.wrapperDiv && this.wrapperDiv.parentNode ? (this.wrapperDiv.parentNode.removeChild(this.wrapperDiv), this.killed = !0, this.inserted = !1, this.element = this.wrapperDiv = null, !0) : !1
};
this.getPixelElement = function() {
var b, c = !1,
g = this.config.id;
if (this.targetDoc) {
b = this.targetDoc.getElementById(g);
if (c = !!(b && b.isPxSwf && b.isPxSwf())) return b;
b = this.targetDoc.getElementById(g + "e");
if (c = !!(b && b.isPxSwf && b.isPxSwf())) return b
}
return !1
};
if ("embed" === c.container.nodeName ||
"object" === c.container.nodeName) {
var e;
b.a.forEach(b.a.v(c.container), function(b) {
if ("embed" !== b.nodeName && "object" !== b.nodeName) return e = b, !1
});
if (!e) return !1;
this.config.container = e
}
if (!this.insertIntoDOM()) return !1;
this.element = this.targetDoc.getElementById(this.config.id);
if (!this.element) return !1;
var k = new b.m.i(this.element, null, null, !0);
this.width = k.width;
this.height = k.height;
if (!this.updatePosition()) return !1;
this.currentFocusState = b.focus.pageIsVisible();
this.focusCheckingLoop = function(c) {
if (!c.pxRef) return !1;
c = c.pxRef;
c.currentFocusState != b.focus.pageIsVisible() && (c.currentFocusState = !c.currentFocusState, c.killed || c.updateFocusState())
};
this.rebuildOnFocusLoss = function() {
f && (this.currentFocusState || this.killed || !this.inserted ? this.currentFocusState && this.killed && !this.inserted && (this.insertIntoDOM.call(this), (this.element = this.targetDoc.getElementById(this.config.id)) && this.updatePosition()) : this.kill())
};
this.positionUpdateLoop = function(b) {
if (!b.pxRef) return !1;
b.pxRef.killed || b.pxRef.updatePosition()
};
var k = "focusCheckingLoop#" + this.config.id,
g = "positionUpdateLoop#" + this.config.id;
this.loopIds.push(k);
this.loopIds.push(g);
b.h.b(this.focusCheckingLoop, {
pxRef: this
}, 200, k);
b.h.b(this.positionUpdateLoop, {
pxRef: this
}, 500, g);
this.inserted = !0;
this.insertionTime = (new x).getTime()
};
b.b.af = /([0-9a-z]+-[a-z]+)-(.*)/i;
b.b.y = function(c, d) {
this.insertedAllSuccessfully = this.insertSuccessful = !1;
this.pixels = [];
this.adNum = d;
this.dentsuInview = this.dentsuMeasurable = this.anyMeasurable = this.fullyMeasurable = this.measurable =
this.reachedAnyInview = this.reachedFullyInview = this.reachedInview = this.anyInview = this.fullyInview = this.inview = !1;
this.getPixelByName = function(c) {
var g;
b.a.forEach(this.pixels, function(b) {
if (b.config.name && b.config.name == c) return g = b, !1
});
return g || !1
};
this.getTargetViewState = function() {
var c = v.FRAME_RATE;
f && (c = v.ACTIVE_STAGE_WIDTH);
b.b.k && (c = v.ACTIVE_STAGE_WIDTH);
return c
};
this.onStateChange = function(c, g) {
var d = this.getTargetViewState(),
k = b.focus.pageIsVisible(),
f = "undefined" != typeof z && z[this.adNum];
this.anyMeasurable || (this.anyMeasurable = !0);
this.fullyMeasurable || (this.fullyMeasurable = b.b.p(this, d));
this.measurable || (this.measurable = b.b.q(this, d), b.b.ah = (new x).getTime());
this.dentsuMeasurable || (this.dentsuMeasurable = b.b.r(this, d));
if (1 == g.length) {
if (g[0].name != d) return !1
} else {
var r = !0;
b.a.forEach(g, function(b) {
if (b.name == d) return r = !1
});
if (r || !k) return !1
}
this.anyMeasurable && (this.anyInview = b.b.s(this, d));
this.measurable && ((this.anyInview = b.b.s(this, d)) && !this.reachedAnyInview && (this.reachedAnyInview = !0), (this.inview = b.b.t(this, d)) && !this.reachedInview && (this.reachedInview = !0), !e && b.b.k && f && (e = !0, b.c.b(f)));
this.fullyMeasurable && (this.fullyInview = b.b.u(this, d)) && !this.reachedFullyInview && (this.reachedFullyInview = !0);
this.dentsuMeasurable && (this.dentsuInview = b.b.v(this, d));
f && b.n.d(f)
};
this.getViewStats = function() {
var b = 0;
if (this.fullyInview) b = 1;
else if (this.inview) b = .5;
else if (this.anyInview || this.reachedAnyInview && !this.sentReachedAnyInview) this.sentReachedAnyInview = !0, b = .01;
return {
isVisible: this.inview,
isFullyVisible: this.fullyInview,
isDentsuVisible: this.dentsuInview,
percv: b
}
};
this.killDentsuPixels = function() {
b.a.forEach(this.pixels, function(b) {
!b.config || "dentsuTopLeft" !== b.config.name && "dentsuBottomRight" !== b.config.name || b.kill()
})
};
this.killAllPixels = function() {
b.a.forEach(this.pixels, function(b) {
b.kill()
})
};
if (c.insertableFunc()) {
var k = 0;
b.a.forEach(c.pixels, function(c, g) {
this.pixels.push(new b.b.ae(c, this));
this.pixels[g].inserted && (k++, this.insertSuccessful = !0)
}, this);
this.insertedAllSuccessfully =
k === this.pixels.length
}
}
})(l);
(function(b) {
function h(b, c, g) {
b.IR5.MIN[g] = t.min(c, b.IR5.MIN[g]) || c || 1;
b.IR5.MAX[g] = t.max(c, b.IR5.MAX[g]) || c
}
function f(b, c) {
c.be = t.max("undefined" !== typeof c.be ? c.be : 0, b - c.bf);
"undefined" === typeof c.by && 500 <= c.be && (c.by = c.bk)
}
function c(c) {
c.az === b.o.a.d.a ? c.az = b.o.a.d.b : c.az === b.o.a.d.b && (c.az = b.o.a.d.a)
}
function e(c) {
c.ba === b.o.a.d.a ? c.ba = b.o.a.d.b : c.ba === b.o.a.d.b && (c.ba = b.o.a.d.a)
}
function k(c) {
c.ax === b.o.a.b.a ? c.ax = b.o.a.b.b : c.ax === b.o.a.b.b && (c.ax = b.o.a.b.a)
}
function d(c) {
c.ay === b.o.a.c.a ? c.ay = b.o.a.c.b : c.ay === b.o.a.c.b && (c.ay = b.o.a.c.a)
}
function v(b, c) {
"undefined" === typeof c.bk && (c.bk = 0);
c.bk += b - c.bo;
c.bo = b
}
function u(b, c) {
"undefined" === typeof c.bl && (c.bl = 0);
c.bl += b - c.bp;
c.bp = b
}
function r(b, c) {
"undefined" === typeof c.bg && (c.bg = 0);
"undefined" === typeof c.bc && (c.bc = 0);
c.bu = b - c.bs;
c.bu > c.bc && (c.bc = c.bu);
c.bg += b - c.bq;
500 <= c.bc && "undefined" === typeof c.bw && (c.bk += b - c.bo, c.bw = c.bk);
c.bq = b
}
function q(b, c) {
"undefined" === typeof c.bh && (c.bh = 0);
"undefined" === typeof c.bd &&
(c.bd = 0);
c.bv = b - c.bt;
c.bv > c.bd && (c.bd = c.bv);
c.bh += b - c.br;
500 <= c.bd && "undefined" === typeof c.bx && (c.bl += b - c.bp, c.bx = c.bl);
c.br = b
}
b.o = {};
b.o.a = {};
b.o.a.a = {};
b.o.a.a.a = 0;
b.o.a.a.b = 1;
b.o.a.b = {};
b.o.a.b.a = 0;
b.o.a.b.b = 1;
b.o.a.c = {};
b.o.a.c.a = 0;
b.o.a.c.b = 1;
b.o.a.d = {};
b.o.a.d.a = 0;
b.o.a.d.b = 1;
b.o.a.e = {};
b.o.a.e.a = 0;
b.o.a.e.b = 1;
b.o.a.f = {};
b.o.a.f.a = 0;
b.o.a.f.b = 1;
b.o.a.f.c = 2;
b.o.b = function(b) {
h(b, b.aj, "x");
h(b, b.ak, "y");
b.IR5.AREA = (b.IR5.MAX.x - b.IR5.MIN.x) * (b.IR5.MAX.y - b.IR5.MIN.y)
};
b.o.c = function(c) {
function d() {
500 <=
(new x).getTime() - ga && (b.o.d({
type: "park"
}, c), clearInterval(e), c.au = b.o.a.a.a)
}
var g = c.au;
if (g === b.o.a.a.a) {
ga = (new x).getTime();
var e = b.h.h(d, 50);
c.au = b.o.a.a.b
} else g === b.o.a.a.b && (ga = (new x).getTime())
};
b.o.e = function(c) {
function d() {
3E3 <= (new x).getTime() - ha && (b.o.f({
type: "park"
}, c), clearInterval(e), c.av = b.o.a.a.a)
}
var g = c.av;
if (g === b.o.a.a.a) {
ha = (new x).getTime();
var e = b.h.h(d, 50);
c.av = b.o.a.a.b
} else g === b.o.a.a.b && (ha = (new x).getTime())
};
b.o.g = function(d, e) {
var g = d.type;
if (e.az === b.o.a.d.a) {
if ("mouseover" ===
g || "mousemove" === g) e.bo = (new x).getTime(), c(e)
} else if (e.az === b.o.a.d.b) {
"mousemove" === g && v((new x).getTime(), e);
if ("mouseout" === g || "blur" === g) v((new x).getTime(), e), c(e);
"scooper" === g && v((new x).getTime(), e)
}
};
b.o.h = function(c, d) {
var g = c.type;
if (d.ba === b.o.a.d.a) {
if ("mouseover" === g || "mousemove" === g) d.bp = (new x).getTime(), e(d)
} else if (d.ba === b.o.a.d.b) {
"mousemove" === g && u((new x).getTime(), d);
if ("mouseout" === g || "blur" === g) u((new x).getTime(), d), e(d);
"scooper" === g && u((new x).getTime(), d)
}
};
b.o.d = function(c,
d) {
if (2 != d.an) {
var g = c.type;
if (d.ax === b.o.a.b.a) {
if ("mouseover" === g || "mousemove" === g) d.bq = (new x).getTime(), d.bs = (new x).getTime(), k(d)
} else d.ax === b.o.a.b.b && ("mousemove" !== g && "mouseout" !== g || r((new x).getTime(), d), "park" === g && r((new x).getTime() - 500, d), "mouseout" !== g && "park" !== g || k(d))
}
};
b.o.f = function(c, e) {
if (2 != e.an) {
var g = c.type;
if (e.ay === b.o.a.c.a) {
if ("mouseover" === g || "mousemove" === g) e.br = (new x).getTime(), e.bt = (new x).getTime(), d(e)
} else e.ay === b.o.a.c.b && ("mousemove" !== g && "mouseout" !== g ||
q((new x).getTime(), e), "park" === g && q((new x).getTime() - 3E3, e), "mouseout" !== g && "park" !== g || d(e))
}
};
b.o.i = function(c, d) {
var g = c.type;
if (d.bb == b.o.a.e.a) {
if ("mouseover" == g || "mousemove" == g) d.bf = (new x).getTime(), d.bb = b.o.a.e.b
} else d.bb == b.o.a.e.b && ("mouseout" == g ? (f((new x).getTime(), d), d.bb = b.o.a.e.a) : "mousemove" != g && "scooper" != g || f((new x).getTime(), d))
}
})(l);
(function(b) {
function h(c) {
b.focus.pageIsPrerendered() || b.h.c(document, r, h, "pr")
}
function f(b) {
"undefined" == typeof d && (d = b)
}
b.focus = {};
var c =
navigator.userAgent,
c = -1 < c.indexOf("Safari") && -1 == c.indexOf("Chrome") && -1 == c.indexOf("Chromium") && !b.a.x(),
e = b.a.m() && !b.a.x(),
k = "undefined" !== typeof document.hasFocus,
d, v = {
visible: 0,
hidden: 1,
prerender: 2
},
u, r, q, w;
"undefined" !== typeof document.hidden ? (u = "hidden", r = "visibilitychange") : "undefined" !== typeof document.mozHidden ? (u = "mozHidden", r = "mozvisibilitychange") : "undefined" !== typeof document.msHidden ? (u = "msHidden", r = "msvisibilitychange") : "undefined" !== typeof document.webkitHidden && (u = "webkitHidden",
r = "webkitvisibilitychange");
for (var l = ["v", "mozV", "msV", "webkitV"], g = 0; g < l.length; g++) {
var m = l[g] + "isibilityState";
if ("undefined" !== typeof document[m]) {
q = m;
break
}
}
w = "undefined" !== typeof u;
var n, C;
"undefined" !== typeof window.requestAnimationFrame ? n = "requestAnimationFrame" : "undefined" !== typeof window.webkitRequestAnimationFrame && (n = "webkitRequestAnimationFrame");
C = c && "string" == typeof n && !w;
var B = (new x).getTime();
C && function Ea() {
B = (new x).getTime();
window[n](Ea)
}();
b.focus.getFocusMethod = function() {
return d
};
b.focus.visibilitychange = r;
b.focus.setFocusListeners = function() {};
b.focus.getQueryString = function(b) {
b = {};
b.em = d;
E && (b.eo = 1);
"undefined" != typeof q && (b.en = v[document[q]]);
return b
};
b.focus.supportsPageVisAPI = function() {
return w
};
b.focus.checkFocus = function() {
if (b.focus.supportsPageVisAPI()) return f(0), !document[u];
if (C) return f(1), 100 > (new x).getTime() - B;
if (e && k) return f(2), document.hasFocus();
f(3);
return !0
};
_lastFocusState = !1;
b.focus.pageIsVisible = function() {
var c = b.focus.checkFocus();
if (_lastFocusState !=
c && y && y.dcsx) try {
y.dcsx.swde.zaxs("focusStateChange", c)
} catch (g) {}
return _lastFocusState = c
};
b.focus.pageIsPrerendered = function() {
return "undefined" !== typeof q ? "prerender" == document[q] : !1
};
b.focus.pageIsVisible();
b.focus.pageIsPrerendered() && b.h.e(document, r, h, "pr");
var E = b.focus.pageIsPrerendered()
})(l);
(function(b) {
function h(c, g, d, e, k) {
("remove" === k ? b.h.c : b.h.e)(c, g, function(g) {
g = g || this.event;
var e = g.currentTarget || c;
try {
var k = e[M]
} catch (f) {
k = e[M]
}
if (k = z[k]) {
var n;
n = g;
var r = e.getBoundingClientRect();
n = -1 != n.type.indexOf("touch") ? {
x: parseInt(n.changedTouches[0].clientX - r.left, 10),
y: parseInt(n.changedTouches[0].clientY - r.top, 10)
} : {
x: parseInt(n.clientX - r.left, 10),
y: parseInt(n.clientY - r.top, 10)
};
k.aj = n.x;
k.ak = n.y;
k.dm || (k.cb = 2 == b.focus.getFocusMethod() ? k.counters.laxDwell.tCur : k.counters.strictDwell.tCur, k.dm = 1);
d.call(c, g, e, k)
}
}, e)
}
function f(g, d, f) {
h(g, "click", w, d, f);
h(g, "mousedown", e, d, f);
R ? "mlb.com" === b.a.g() ? b.a.y() || b.a.z() || h(g, "touchstart", k, d, f) : h(g, "touchstart", k, d, f) : (h(g, "mousemove",
c, d, f), h(g, "mouseover", r, d, f), h(g, "mouseout", q, d, f))
}
function c(c, d, e) {
if (!R && (e.aj !== e.al || e.ak !== e.am)) {
b.o.d(c, e);
b.o.f(c, e);
b.o.g(c, e);
b.o.i(c, e);
b.o.h(c, e);
b.o.b(e);
b.o.c(e);
b.o.e(e);
0 === e.ar.length && (e.ai = g(e));
if (100 > e.ar.length || 100 > e.as.length || 100 > e.at.length) e.ar.push(e.aj), e.as.push(e.ak), e.at.push(b.a.q(e));
e.al = e.aj;
e.am = e.ak
}
e.ai !== g(e) && 1 < e.ar.length && l(e, "onMouseMove")
}
function e(c, g, d) {
c = {
e: 2
};
c.q = d.aq[2]++;
c.x = d.aj;
c.y = d.ak;
b.q.a(d, c)
}
function k(c, g, d) {
b.i.b.zaxs("mouseEvent", d);
c = c || window.event;
g = c.target || c.srcElement;
if (1 != d.ao.skin || !b.r.a(g, d.adContent, c)) {
c = {
e: 23
};
c.q = d.aq[23]++;
c.x = d.aj;
c.y = d.ak;
g = (new x).getTime();
if ("undefined" === typeof d.ct) d.ct = g;
else {
var e = g - d.ct;
d.ct = g;
d.cu = t.min(d.cu, e) || e
}
c.bz = void 0;
b.q.a(d, c)
}
}
function d(c, d, g) {
var e;
if (2 == c.an || c.hasIframeListener) e = !0;
if (e) {
e = d.e;
var k = c.ck;
k == b.o.a.f.a && 6 === e ? (v(c, 0), c.cl = b.a.q(c), c.ck = b.o.a.f.b) : k == b.o.a.f.b ? 22 === e ? (u(c, d), v(c, g), c.cl = b.a.q(c)) : 7 === e && (1E3 < b.a.q(c) - c.cl ? (clearTimeout(c.cm), d.e = 22, u(c,
d), c.cn = 0, c.ck = b.o.a.f.a) : c.ck = b.o.a.f.c) : k == b.o.a.f.c && (6 == e ? (1E3 < b.a.q(c) - c.cl && (clearTimeout(c.cm), c.cn = 0, c.cl = b.a.q(c), v(c, 0)), c.ck = b.o.a.f.b) : 22 == e && (u(c, d), c.ck = b.o.a.f.a, c.cn = 0))
}
}
function v(c, g) {
var e = 5 > c.cn ? 1E3 : 2 * g,
k = {
e: 22
};
c.cm = b.h.d(function() {
d(c, k, e)
}, e)
}
function u(c, d) {
d.q = c.aq[d.e]++;
d.m = b.a.q(c);
c.cl = d.m;
b.q.a(c, d);
c.cn++
}
function r(c, g, e) {
b.i.b.zaxs("mouseEvent", e);
b.o.d(c, e);
b.o.f(c, e);
b.o.g(c, e);
b.o.i(c, e);
b.o.h(c, e);
d(e, {
e: 6
}, 0)
}
function q(c, g, e) {
b.o.d(c, e);
b.o.f(c, e);
b.o.g(c,
e);
b.o.i(c, e);
b.o.h(c, e);
d(e, {
e: 7
}, 0)
}
function w(c, d, g) {
b.i.b.zaxs("mouseEvent", g);
c = {
e: 3
};
c.q = g.aq[3]++;
c.x = g.aj;
c.y = g.ak;
b.q.a(g, c)
}
function l(c, d) {
c.ai = g(c);
var e = {
e: 1
};
e.q = c.aq[1]++;
e.x = c.ar.join("a");
e.y = c.as.join("a");
for (var k = b.a.q(c), f = c.at, r = [], v = 0; v < f.length; v++) isNaN(f[v]) || r.push(t.abs(f[v] - k));
e.c = r.join("a");
e.m = k;
b.q.a(c, e);
c.ar = [];
c.as = [];
c.at = []
}
function g(c) {
return t.floor(b.a.q(c) / 1E3)
}
b.p = {};
b.p.a = function(b, c) {
if (!0 === b.isSkin)
for (var d = 0; d < b.elements.length; d++) f(b.elements[d],
b.zr + "-" + d, c);
else f(b.aa, b.zr, c)
};
b.p.b = function(c) {
for (var d in z) z.hasOwnProperty(d) && (c = z[d]) && (b.o.g({
type: "scooper"
}, c), b.o.i({
type: "scooper"
}, c), b.o.h({
type: "scooper"
}, c), 1 < c.ar.length && c.ai !== g(c) && l(c, "scooper"))
};
b.p.c = function(c, d) {
if (!d || !c) return c;
c.proxyAds || (c.proxyAds = []);
c.proxyAds.push({
aa: d,
zr: c.zr
});
!c.hasIframeListener && d.tagName && "iframe" === d.tagName.toLowerCase() && (c.hasIframeListener = !0);
d[M] = c.zr;
b.p.a(c.proxyAds[c.proxyAds.length - 1]);
return c
}
})(l);
(function(b) {
b.j = {};
try {
var h = -1 < navigator.platform.indexOf("Mac") ? 102 : 117
} catch (d) {
h = 117
}
var f = "undefined" !== typeof window.devicePixelRatio,
c = f && t.round(1E3 * window.devicePixelRatio),
e = b.e.a && f && "undefined" !== typeof window.innerHeight && "undefined" !== typeof window.outerHeight && t.round(window.devicePixelRatio * (b.e.c.outerHeight - b.e.c.innerHeight)),
k = function() {
var b = !1;
try {
b = "undefined" !== typeof window.mozInnerScreenX && "undefined" !== typeof window.screenX
} catch (c) {}
return b
}();
b.j.b = function(c, e) {
var k, r, q, w = {
isVisible: !1,
isFullyVisible: !1,
percv: 0
};
try {
q = c.aa.getBoundingClientRect();
var l = e || c.WINDOW || b.a.t(c.aa),
g = b.e.af(l),
m = b.m.k(q, g),
n = l.mozInnerScreenX,
C = l.mozInnerScreenY,
B = window.screenX,
E = window.screenY,
A = b.m.k({
left: m.left + n,
right: m.right + n,
top: m.top + C,
bottom: m.bottom + C
}, {
left: B,
right: B + window.outerWidth,
top: E + h / (f ? window.devicePixelRatio : 1),
bottom: E + window.outerHeight
}),
t = q.width * q.height;
k = {
area: t,
percv: (A.right - A.left) * (A.bottom - A.top) / t
};
r = b.m.f(k, c)
} catch (ia) {}
q = b.m.b;
"undefined" !== typeof k && "undefined" !== typeof r && (w.isVisible =
k.percv >= r, w.isFullyVisible = k.percv >= q, w.percv = k.percv, .8 <= k.percv && (w.isDentsuVisible = !0));
return w
};
b.j.a = function() {
return k
};
b.j.c = function() {
var b = {};
b.dl = Number(k);
"number" !== typeof c || isNaN(c) || (b.dm = c);
"number" !== typeof e || isNaN(e) || (b.dn = e);
return b
}
})(l);
(function(b) {
function h(b) {
var c = 0,
e;
return function() {
var f = (new x).getTime();
150 < f - c && (e = b.apply(this, arguments), c = f);
return e
}
}
function f(e, d, f, h, r) {
function q(b) {
return "number" === typeof b ? b : b.type
}
var w = 1E4;
b.a.ad().isInApp && (w = 500);
var l = [],
g = 0,
m = 0,
n = 0,
C = 0,
B = 0,
E = 0,
A = 0,
Ea = (new x).getTime(),
ia = !1,
y = !1,
ra = !1,
z = !1,
D, F, I, K = 0,
P = 0,
M = 0,
O = 0,
T = !1,
X = !1,
R = !1,
ca, U = 0,
ja = 0,
sa = 0,
da = !1,
Y = !1,
Z = !1,
ka = !1,
ba = !1,
ga = !1,
ta = !1,
ha = !1,
Ba = b.e.a,
ua;
if (0 === h) var Q = "as",
la = "ag",
ma = "an",
na = "ck",
oa = "kw",
ea = "ah",
pa = "aj",
Ca = "pg",
Da = "pf",
va = "gi",
wa = "gf",
xa = "gg",
ya = "ez",
T = !0,
qa = "dw",
za = "ka",
Aa = "kb";
else 1 === h ? (Q = "cc", la = "bw", ma = "bx", na = "ci", oa = "jz", ea = "bu", pa = "dj", qa = "dx") : 2 === h ? (Q = "cg", la = "ce", ma = "cf", na = "cj", oa = "ts", ea = "ah", pa = "dk", va = "gj", wa = "gb", xa = "ge", ya =
"ez", qa = "dy", za = "ke", Aa = "kf") : 3 === h ? (Q = "cg", la = "ce", ma = "cf", na = "cj", oa = "ts", ea = "ah", pa = "dk", va = "gi", wa = "gf", xa = "gg", ya = "ez", qa = "dy", za = "ke", Aa = "kf") : 5 === h ? (Q = "aa", la = "ad", ma = "cn", na = "co", oa = "cp", ea = "ah", pa = "cq", va = "gn", wa = "gk", xa = "gl", ya = "ez", qa = "cr", za = "ew", Aa = "ex") : 6 === q(h) && (Q = h.otsKey, la = h.ivtKey, ma = h.lastivtKey, na = h.ivtAtOtsKey, oa = h.timeToViewSendKey, ea = h.timeToViewAskKey, pa = h.visOnLoadKey, va = h.fullyIvtOtsKey, wa = h.fullyIvtKey, xa = h.lastFullyIvtKey, ya = h.wasPartiallyInviewKey, qa = h.visNearLoadKey,
za = h.video2SecOtsKey, Aa = h.visNearLoad2SecKey);
this.getLabel = function() {
return r
};
this.addListener = function(b) {
l.push(b)
};
this.removeListener = function(b) {
for (var c, d = l.length; c < d; c++) {
var g = !1,
e = !1,
k;
for (k in l[c])
if (e || (e = !0), l[c][k] !== b[k]) {
g = !0;
break
}
e && !g && l.splice(c, 1)
}
};
this.hadOTS = function() {
return ra
};
this.hadFullOTS = function() {
return z
};
this.hadFIT = function() {
return 0 < m
};
this.hadVideo2SecOTS = function() {
return "undefined" != typeof ta && ta
};
this.hadDentsuVideoOTS = function() {
return Y
};
this.hadDentsuDisplayOTS =
function() {
return da
};
this.getInViewTime = function() {
return g
};
this.getLastInviewPercent = function() {
var b = 0;
ia && (b = ca);
return b
};
this.visible = function() {
return ia
};
this.fullyVisible = function() {
return y
};
this.wasPartiallyInview = function() {
return R
};
this.getFullInviewTimeTotal = function() {
return m
};
this.getMaximumContinuousInViewTime = function() {
return t.max(B, E)
};
this.getMaximumContinuousFullyInViewTime = function() {
return t.max(0, A)
};
this.update = function(n) {
var q = g || 0,
C = m || 0,
O = U || 0,
Q = !1,
H = e(n);
H.rect &&
(n.elementRect = H.rect);
var V = H.isVisible,
aa = H.isFullyVisible,
G = H.isDentsuVisible,
fa = H.percv && 0 < H.percv;
ca = H.percv;
var N = d(n),
W = (new x).getTime(),
L = t.max(t.min(W - Ea, w), 0);
Ea = W;
var S;
S = !f || b.focus.pageIsVisible() || n.video.videoIsFullscreen;
n && n.video ? (N = n.video.videoIsFullscreen ? !1 : N, V = (V || n.video.videoIsFullscreen) && S && !N, aa = (aa || n.video.videoIsFullscreen) && S && !N, fa = (fa || n.video.videoIsFullscreen) && S && !N, ka = (G || n.video.videoIsFullscreen) && S && !N) : (V = V && S && !N, aa = aa && S && !N, fa = fa && S && !N, ka = G && S && !N);
!R &&
fa && (R = !0);
if (V && ia) g += L, B += L;
else if (V || ia) G = t.round(L / 2), g += G, B += G;
if (aa && y) m += L, A += L;
else if (aa || y) G = t.round(L / 2), m += G, A += G;
if (ka && Z) U += L, ja += L;
else if (ka || Z) G = t.round(L / 2), U += G, ja += G;
G = 0;
if ((N = n.video.isPlayingAndAudible()) && ba) G = L;
else if (N || ba) G = t.round(L / 2);
fa = t.max(U - O, 0);
G = t.max(t.min(G, fa), 0);
sa = n.ao.duration && 0 < n.ao.duration ? t.min(n.ao.duration, sa + G) : sa + G;
ba = N;
n.ao.duration && sa && sa >= t.min(.5 * n.ao.duration, 15E3) && (Y = !0);
0 < n.ao.duration && (g = t.min(n.ao.duration, g), m = t.min(n.ao.duration, m),
U = t.min(n.ao.duration, U), !X && .5 <= m / n.ao.duration && (Q = X = !0));
!ra && 1E3 <= B && (Q = ra = !0, this.timeToView = D = n.counters.query()[ea], 5E3 >= W - n.ao.startTime && ra && (ga = !0));
!z && 1E3 <= A && (z = !0);
!ta && B >= b.u.a && (Q = ta = !0, F = g, this.timeToView2Sec = n.counters.query()[ea], W - n.videoAdStartTime <= b.u.b + b.u.c && (ha = !0));
"undefined" === typeof I && (1E3 >= n.counters.query().bu ? V && (I = !0) : I = !1);
(n.el = Ba) && "undefined" === typeof ua && 2 !== h && 3 !== h && H.elGeo && (b.a.ad().isInApp && 4 === b.a.af() ? W = !1 : (W = c().y + H.elGeo.foldTop, G = H.elGeo.threshold *
H.elGeo.elHeight, W = W > b.n.e() - G), 0 < H.elGeo.totalArea && (ua = W, n.dn = ua));
n = H.yMinMax;
T && S && "undefined" !== typeof n && H.elGeo && 0 <= n.yMax && 0 <= n.yMin && 0 < H.visibleArea && (K = t.max(n.yMax, K), P = t.min(n.yMin, P), M = t.min(1, t.max((K - P) / H.elGeo.elHeight, M)));
E < B && (E = B);
V || (B = 0);
aa || (A = 0);
ia = V;
y = aa;
1E3 <= ja && (da = !0);
ka || (ja = 0);
Z = ka;
b.a.forEach(l, function(b) {
var c = H && H.percv,
c = "number" === typeof c && 100 * c;
if (b.onInViewTimeCount) b.onInViewTimeCount(L, g - q, c, r);
if (b.onFullyInViewTimeCount) {
var d = t.max(m - C, 0);
b.onFullyInViewTimeCount(L,
d, c, r)
}
b.onDentsuInViewTimeCount && (d = t.max(U - O, 0), Y = b.onDentsuInViewTimeCount(L, d, c, r))
});
return Q
};
this.getQS = function(b) {
n > g && (n = g);
C > m && (C = m);
b[Q] = Number(ra);
b[la] = g;
b[ma] = n;
if (0 === h || 2 === h || 3 === h || 5 === h || q(h)) z && (b[va] = 1), b[wa] = m, b[xa] = C, R && (b[ya] = 1);
"undefined" !== typeof F && (b[na] = F);
"undefined" !== typeof D && (b[oa] = D);
"undefined" !== typeof I && (b[pa] = Number(I));
if (!0 === T) {
var c = t.round(100 * M),
d = t.round(100 * O);
b[Ca] = c;
b[Da] = d;
O = M
}
"undefined" !== typeof ua && (b.ib = Number(ua));
!0 === ga && (b[qa] = 1);
if (0 ===
h || 2 === h || 3 === h || 5 === h || q(h)) !0 === ta && (b[za] = 1), !0 === ha && (b[Aa] = 1);
n = g;
C = m
}
}
function c() {
var c = b.e.c,
d = c.document;
return {
y: void 0 !== c.pageYOffset ? c.pageYOffset : (d.documentElement || d.body.parentNode || d.body).scrollTop
}
}
b.n = {};
var e = {};
b.n.e = function() {
return R ? b.e.af(b.e.c).height : 750
};
b.n.f = function() {
return b.a.ab() || b.a.ac() ? b.e.d() : !1
};
b.n.g = function() {
return b.n.f() ? b.e.r() : !1
};
b.n.h = function(c) {
var d = c.zr;
e[d] = e[d] || {};
c.viewstats = {
isBigAd: !1
};
if (b.m.g()) {
var v = h(b.m.e),
u;
u = b.a.y() ? new f(v, b.c.c, !1, 0, "strict") : new f(v, b.c.c, !0, 0, "strict");
e[d].strict = u;
v = new f(v, b.c.c, !1, 1, "lax");
e[d].lax = v
} else !0 !== c.isSkin && b.j && b.j.a() && (v = new f(b.j.b, b.c.c, !0, 3, "pscope"), e[d].pscope = v);
b.b && b.b.o() && !e[d].pscope && (v = new f(b.b.z, b.c.c, !0, 2, "pscope"), e[d].pscope = v);
v = !1;
v = b.e.v;
if (b.e.t() || v) v = new f(b.s.a, b.c.c, !0, 5, "sframe"), e[d].sframe = v;
b.i.b.zaxs("viewCounterStarted", c);
(b.a.ab() || b.a.ac()) && (d = b.n.i(c.zr)) && d.addListener({
_wasAnyPixelInView: !1,
onInViewTimeCount: function(d, e, f) {
return this._wasAnyPixelInView ?
!1 : c && c.video && c.video.isPlaying() ? b.n.g() ? (b.c.b(c), this._wasAnyPixelInView = !0, !1) : !0 : !0
}
})
};
b.n.j = function(c, d, e) {
return (c || opt_counters) && d && e ? (c = b.n.k(c.zr, d)) && "function" == typeof c[e] && c[e]() : !1
};
b.n.d = function(c) {
var d = e[c.zr],
h;
b.e.v && d && !d.sframe && (e[c.zr].sframe = new f(b.s.a, b.c.c, !0, 5, "sframe"), b.i.b.zaxs("viewCounterStarted", c));
for (var u in d) d.hasOwnProperty(u) && d[u].update(c) && (h = !0);
h && b.c.d(c);
b.t.a(c)
};
b.n.l = function(c, d, e) {
"undefined" == typeof e && (e = !1);
var f = 0;
f = !e && b.e.ap() ? (c = c &&
"undefined" != typeof c.zr && b.n && b.n.m && b.n.m(c.zr)) && c.lax && c.lax.getInViewTime() || 0 : b.n.n(c);
return f >= d
};
b.n.n = function(c) {
var d = 0,
e = c && "undefined" != typeof c.zr && b.n && b.n.m && b.n.m(c.zr);
e && (b.e.ap() ? d = e.strict && e.strict.getInViewTime() || 0 : b.e.aq() ? d = e.sframe && e.sframe.getInViewTime() || 0 : b.e.ar(c) && (d = e.pscope && e.pscope.getInViewTime() || 0));
return d
};
b.n.o = function() {
return "hadVideo2SecOTS"
};
b.n.p = function(c, d) {
var e = !1,
e = b.n.o();
return c && c && "undefined" != typeof c.zr ? e = d ? b.n.j(c, d, e) : b.n.j(c, b.n.q(c.zr),
e) : null
};
b.n.a = function(c, d) {
var e = b.n.m(c.zr);
return b.b && b.b.b && e && e.pscope && e.pscope[d ? "hadVideo2SecOTS" : "hadOTS"]()
};
b.n.c = function(c, d) {
var e = b.n.m(c.zr);
return b.b && b.b.b && e && e.pscope && e.pscope[d ? "hadDentsuVideoOTS" : "hadDentsuDisplayOTS"]()
};
b.n.b = function(c, d) {
var e = b.n && b.n.m(c.zr);
return b.b && b.b.b && e && e.pscope && e.pscope.getFullInviewTimeTotal() >= d
};
b.n.r = function(c) {
var d = 0,
e = c && "undefined" != typeof c.zr && b.n && b.n.m && b.n.m(c.zr);
e && (b.e.ap() ? d = e.strict && e.strict.getFullInviewTimeTotal() ||
0 : b.e.aq() ? d = e.sframe && e.sframe.getFullInviewTimeTotal() || 0 : b.e.ar(c) && (d = e.pscope && e.pscope.getFullInviewTimeTotal() || 0));
return d
};
b.n.s = function(c, d, e) {
"undefined" == typeof e && (e = !1);
var f = 0;
f = !e && b.e.ap() ? (c = c && "undefined" != typeof c.zr && b.n && b.n.m && b.n.m(c.zr)) && c.lax && c.lax.getInViewTime() || 0 : b.n.r(c);
return f >= d
};
b.n.t = function(b) {
delete e[b]
};
b.n.m = function(b) {
var c;
e[b] ? c = e[b] : e[b] = c = {};
return c
};
b.n.k = function(c, d) {
var e = b.n.m(c);
return e && e[d]
};
b.n.q = function(b) {
var c = null;
(b = e[b]) && b.strict ?
c = "strict" : b && b.sframe ? c = "sframe" : b && b.pscope && (c = "pscope");
return c
};
b.n.i = function(c) {
var d = b.n.q(c);
return (c = e[c]) && d && c[d]
};
b.n.u = function(c) {
var d = {},
f = e[c],
h;
for (h in f) f.hasOwnProperty(h) && f[h].getQS(d);
b.n.i(c) && b.n.i(c).hadDentsuVideoOTS() && (d.nc = 1);
(c = z[c]) && c.viewstats && c.viewstats.isBigAd && (d.el = 1);
return d
}
})(l);
(function(b) {
b.v = {};
b.v.a = function(b, f) {
var c;
f.outerHTML ? c = f.outerHTML : (c = document.createElement("div"), c.appendChild(f.cloneNode(!0)), c = c.innerHTML);
c = [/flashvars\s*=\s*(".*?"|'.*?')/i.exec(c),
/name\s*=\s*["']flashvars["']\s*value\s*=\s*(".*?"|'.*?')/i.exec(c), /value\s*=\s*(".*?"|'.*?')\s*name\s*=\s*["']flashvars["']/i.exec(c), b
];
for (var e, k, d = {}, v = 0; v < c.length; v++) {
if ((e = c[v]) && "object" === typeof e && e[1]) e = e[1].replace(/&amp;/g, "&").replace(/&quot;/g, '"').replace(/^"/g, "").replace(/"$/g, "").replace(/^'/g, "").replace(/'$/g, "");
else if ("string" === typeof e) e = e.split("?")[1];
else continue;
if (e) {
e = e.split("&");
for (var u = 0; u < e.length; u++) k = e[u].split("="), 2 > k.length || "function" == k[0].slice(0,
8) || (d[k[0]] = [k[1]])
}
}
return d
}
})(l);
(function(b) {
function h(c, d, e, k) {
u.hasOwnProperty(c) ? u[c][d] && b.a.bi(u[c][d]) ? u[c][d].push(e) : u[c][d] = [e] : (u[c] = {}, u[c][d] = [e], void 0 !== k && !0 === k && (r[c] = new f))
}
function f() {
var c = !1;
this.updateAndConditionallySend = function(b) {
!1 === c && (c = !0, this.sendNotification(b))
};
this.sendNotification = function(c) {
var d = {
e: 14
};
d.q = c.aq[14]++;
b.q.a(c, d)
};
this.getQS = function(b) {
!0 === c && (b.cv = Number(c))
}
}
function c(b, c) {
var d = r[c];
void 0 !== d && d.updateAndConditionallySend(b)
}
function e(b) {
return 500 <=
(2 === b.an ? b.be : b.bd)
}
function k(c, d) {
try {
return b.w.h(c) > d
} catch (e) {
return !1
}
}
function d(b, c) {
try {
return b.counters.laxDwell.tCur > c
} catch (d) {
return !1
}
}
function v(b, c) {
return e(b) ? ("undefined" !== typeof b.bk && e(b) ? t.min(3E5, b.bk) : 0) >= c : !1
}
b.w = {};
var u = {},
r = {},
q = function(b) {
return b.el ? b.dn ? !0 : !1 : !1
},
w = function() {
var c = 0;
return function() {
var d = b.e.c,
e = d.document,
f = e.body,
d = (f.scrollTop || e.documentElement.scrollTop || d.pageYOffset || 0) / f.offsetHeight;
d > c && (c = d);
return c
}
}(),
l = {
load: function(b) {
return b &&
b.video && !b.video.started ? !1 : !0
},
measurable: function(c) {
return c && c.video && !c.video.started ? !1 : b.e.as(c)
},
"full-measurable": function(c) {
return c && c.video && !c.video.started ? !1 : b.e.as(c)
},
"full-inView": function(c) {
return b.n.s(c, 1, !0)
},
nhtReady: function(c) {
return c && c.video && !c.video.started ? !1 : b && b.x && b.x.a
},
inView100: function(c) {
return b.n.l(c, 1E5, !0)
},
inView60: function(c) {
return b.n.l(c, 6E4, !0)
},
inView45: function(c) {
return b.n.l(c, 45E3, !0)
},
inView40: function(c) {
return b.n.l(c, 4E4, !0)
},
inView35: function(c) {
return b.n.l(c,
35E3, !0)
},
inView30: function(c) {
return b.n.l(c, 3E4, !0)
},
inView25: function(c) {
return b.n.l(c, 25E3, !0)
},
inView20: function(c) {
return b.n.l(c, 2E4, !0)
},
inView15: function(c) {
return b.n.l(c, 15E3, !0)
},
inView10: function(c) {
return b.n.l(c, 1E4, !0)
},
inView5: function(c) {
return b.n.l(c, 5E3, !0)
},
inView3: function(c) {
return b.n.l(c, 3E3, !0)
},
inView2: function(c) {
return b.n.l(c, 2E3, !0)
},
inView1: function(c) {
return b.n.l(c, 1E3, !0)
},
fullInView2: function(c) {
return b.n.s(c, 2E3, !0)
},
fullInView15: function(c) {
return b.n.s(c,
15E3, !0)
},
full_inview_05: function(c) {
return 600 <= c.INITIAL_HEIGHT && b.n.s(c, 500, !0)
},
full_inview_1: function(c) {
return 600 <= c.INITIAL_HEIGHT && b.n.s(c, 1E3, !0)
},
full_inview_5: function(c) {
return 600 <= c.INITIAL_HEIGHT && b.n.s(c, 5E3, !0)
},
full_inview_10: function(c) {
return 600 <= c.INITIAL_HEIGHT && b.n.s(c, 1E4, !0)
},
fully_inView2: function(c) {
return b.n.s(c, 2E3, !0)
},
fullViewActive: function(b) {
return this.active1(b) && this.full_inview_1(b)
},
inner_height_1000: function(c) {
return 1E3 <= b.e.ah
},
inner_height_1200: function(c) {
return 1200 <=
b.e.ah
},
inner_height_1300: function(c) {
return 1300 <= b.e.ah
},
inner_height_1400: function(c) {
return 1400 <= b.e.ah
},
inner_height_1000_1400: function(c) {
return 1E3 <= b.e.ah && 1400 >= b.e.ah
},
inner_height_1100_1400: function(c) {
return 1100 <= b.e.ah && 1400 >= b.e.ah
},
audibleFullVisibleHalfDuration: function(c) {
var d = c && b.n.i(c.zr),
d = d && c.video && c.video.getCounter(d.getLabel());
return -1 < c.ao.duration && d && d.get("audibleFullyVisIvt") > c.ao.duration / 2
},
groupmAudVisHumanCap15: function(c) {
if (!(b && b.x && b.x.a && c && c.video && c.ao)) return !1;
var d = !1;
"number" == typeof c.ao.duration && !isNaN(c.ao.duration) && 0 < c.ao.duration && (d = t.min(15E3, c.ao.duration));
var e = c && b.n.i(c.zr);
c = e && c.video.getCounter(e.getLabel());
return d && c && c.get("audibleFullyVisIvt") > .5 * d && "undefined" === typeof b.x.a.a
},
scroll_measurable: function(c) {
return b.e.a
},
scroll: function(b) {
return "undefined" !== typeof y.z
},
scrollfirst1: function(b) {
return 1E3 < y.z
},
scrollfirst2: function(b) {
return 2E3 < y.z
},
scrollfirst3: function(b) {
return 3E3 < y.z
},
scrollfirst5: function(b) {
return 5E3 <
y.z
},
scroll_interaction: function(b) {
return this.scroll(b) && this.interaction(b)
},
hover: function(b) {
return b.dm
},
laxOts: function(c) {
return b.n.p(c, "lax")
},
strictOts: function(c) {
return b.n.p(c)
},
interaction_measurable: function(c) {
return !b.a.x() || e(c)
},
interaction: function(b) {
return e(b)
},
btf_strictOts: function(b) {
return this.strictOts(b) && q(b)
},
btf_interaction: function(b) {
return e(b) && q(b)
},
btf_inView5: function(c) {
return b.n.l(c, 5E3, !0) && q(c)
},
btf_inView15: function(c) {
return b.n.l(c, 15E3, !0) && q(c)
},
atf_970_728_inview20: function(c) {
return (970 == c.INITIAL_WIDTH || 728 == c.INITIAL_WIDTH) && !q(c) && b.n.l(c, 2E4, !0)
},
atf_300x250_inview20: function(c) {
return 300 == c.INITIAL_WIDTH && 250 == c.INITIAL_HEIGHT && !q(c) && b.n.l(c, 2E4, !0)
},
atf_300x600_inview20: function(c) {
return 300 == c.INITIAL_WIDTH && 600 == c.INITIAL_HEIGHT && !q(c) && b.n.l(c, 2E4, !0)
},
btf_300_inview20: function(c) {
return 300 == c.INITIAL_WIDTH && q(c) && b.n.l(c, 2E4, !0)
},
btf_300_inview30: function(c) {
return 300 == c.INITIAL_WIDTH && q(c) && b.n.l(c, 3E4, !0)
},
btf_300_inview40: function(c) {
return 300 ==
c.INITIAL_WIDTH && q(c) && b.n.l(c, 4E4, !0)
},
inner_height_1000: function(c) {
return 1E3 <= b.e.ah
},
contentA: function(b) {
return this.page5(b) && .15 < w()
},
contentB: function(b) {
return this.page10(b) && .35 < w()
},
contentC: function(b) {
return this.page15(b) && .55 < w()
},
activeAny: function(b) {
return v(b, 10)
},
active05: function(b) {
return v(b, 500)
},
active1: function(b) {
return v(b, 1E3)
},
active2: function(b) {
return v(b, 2E3)
},
active3: function(b) {
return v(b, 3E3)
},
active4: function(b) {
return v(b, 4E3)
},
active5: function(b) {
return v(b,
5E3)
},
active6: function(b) {
return v(b, 6E3)
},
active8: function(b) {
return v(b, 8E3)
},
active10: function(b) {
return v(b, 1E4)
},
active13: function(b) {
return v(b, 13E3)
},
active15: function(b) {
return v(b, 15E3)
},
active20: function(b) {
return v(b, 2E4)
},
page1: function(b) {
return k(b, 1E3)
},
page3: function(b) {
return k(b, 3E3)
},
page5: function(b) {
return k(b, 5E3)
},
page10: function(b) {
return k(b, 1E4)
},
page15: function(b) {
return k(b, 15E3)
},
page30: function(b) {
return k(b, 3E4)
},
page45: function(b) {
return k(b, 45E3)
},
page60: function(b) {
return k(b,
6E4)
},
notmeasurable1: function(b) {
return d(b, 1E3) && !this.measurable(b)
},
notmeasurable3: function(b) {
return this.page3(b) && !this.measurable(b)
},
notmeasurable5: function(b) {
return this.page5(b) && !this.measurable(b)
},
notmeasurable10: function(b) {
return this.page10(b) && !this.measurable(b)
},
strictOtsAndSession5: function(b) {
return this.strictOts(b) && d(b, 5E3)
},
inView5AndActive2: function(c) {
return b.n.l(c, 5E3) && 2E3 <= c.bg
},
inView5AndActive1: function(c) {
return b.n.l(c, 5E3) && 1E3 <= c.bg
},
MoatScoreA: function(b) {
return d(b,
1E4) && !this.strictOts(b)
},
MoatScoreB: function(b) {
return this.strictOts(b)
},
MoatScoreC: function(c) {
return b.n.l(c, 15E3)
},
MoatScoreD: function(c) {
return b.n.l(c, 25E3) && this.scroll(c)
},
MoatScoreE: function(c) {
return b.n.l(c, 3E4) && v(c, 500) && this.scroll(c)
},
inView2AndScrollAndPage10: function(b) {
return this.inView2(b) && this.page10(b) && this.scroll(b)
},
page5AndScroll: function(b) {
return this.page5(b) && this.scroll(b)
},
page10AndScroll: function(b) {
return this.page10(b) && this.scroll(b)
},
scroll5Page15: function(b) {
return this.page15(b) ||
this.scrollfirst5(b)
},
click: function(b) {
return 0 < b.aq[2]
},
moatA: function(b) {
return d(b, 15E3) && this.inView10(b)
},
moatB: function(b) {
return d(b, 6E4) && this.scroll(b) && this.inView15(b)
},
moatC: function(b) {
return d(b, 15E4) && this.scroll(b) && this.inView20(b)
},
avoc: function(b) {
return b.reachedAvoc
},
quartile1AudVis: function(b) {
return "3" == b.video.quartiles.eg
},
quartile2AudVis: function(b) {
return "3" == b.video.quartiles.eh
},
quartile3AudVis: function(b) {
return "3" == b.video.quartiles.ei
},
quartile1NotAudVis: function(b) {
return b.video.quartiles.eg &&
"3" != b.video.quartiles.eg
},
avocWidth: function(b) {
b.get_width() && 400 <= b.get_width() && this.avoc(b)
},
moatVideoA: function(c) {
return c.get_duration() && b.n.l(c, .1 * c.get_duration(), !0)
},
everAudibleVisible: function(c) {
var d = c && b.n.i(c.zr);
return (c = d && c.video.getCounter(d.getLabel())) && c.get("everAudibleAndVisible")
},
visNeverAud: function(c) {
var d = c && b.n.i(c.zr),
d = d && c.video.getCounter(d.getLabel());
return c.video.reachedComplete && d && d.get("everVisible", !1) && !d.get("everAudible", !1)
},
completeView: function(b) {
return this.strictOts(b) &&
b.video.reachedComplete
},
complete: function(b) {
return b.video.reachedComplete
},
moatVideoB: function(c) {
return c.get_duration() && this.avoc(c) && b.n.l(c, .5 * c.get_duration(), !0)
},
moatVideoC: function(c) {
return c.get_duration() && this.avoc(c) && b.n.l(c, .95 * c.get_duration(), !0)
},
moatVideoD: function(c) {
return c.get_duration() && this.avoc(c) && b.n.l(c, .7 * c.get_duration(), !0)
},
moatVideoAWidth: function(b) {
return b.get_width() && 400 <= b.get_width() && b.get_duration() && this.moatVideoA(b)
},
moatVideoBWidth: function(c) {
return c.get_width() &&
400 <= c.get_width() && c.get_duration() && this.avoc(c) && b.n.l(c, .5 * c.get_duration(), !0)
},
moatVideoCWidth: function(c) {
return c.get_width() && 400 <= c.get_width() && c.get_duration() && this.avoc(c) && b.n.l(c, .95 * c.get_duration(), !0)
},
moatVideoDWidth: function(c) {
return c.get_width() && 400 <= c.get_width() && c.get_duration() && this.avoc(c) && b.n.l(c, .7 * c.get_duration(), !0)
},
moatVideoE: function(c) {
return c.get_duration() && b.n.l(c, .6 * c.get_duration(), !0)
}
};
b.w.a = function(c, d) {
h(c, "strictOts", function(c, e) {
var f = b.e.c,
g =
f.document.getElementsByTagName("script")[0],
f = f.document.createElement("img");
f.src = d;
g.parentNode.insertBefore(f, g);
c.viewableOcrPixelFired = 1
})
};
b.w.b = function(b, c) {};
b.w.c = function() {
for (var d in z)
if (z.hasOwnProperty(d)) {
var e = z[d],
f = u[d],
k;
for (k in f) f.hasOwnProperty(k) && l[k](e) && (b.a.forEach(f[k], function(c, d) {
var f = typeof c;
"string" === f ? b.w.d(c, e) : "function" === f && c(e)
}), c(e, d), delete f[k])
}
};
b.w.e = function(b) {
var c = {};
(b = r[b]) && b.getQS(c);
return c
};
b.w.f = function(b, c) {
if (u.hasOwnProperty(b) &&
u[b].hasOwnProperty(c)) return !0
};
b.w.g = function(b, c) {
u.hasOwnProperty(b) && u[b].hasOwnProperty(c) && delete u[b][c]
};
b.w.i = h;
b.w.d = function(c, d, e) {
var f;
d.Ord ? f = d.Ord : (f = b.e.m ? b.e.m : (new x).getTime(), d.Ord = f);
(new b.e.c.Image(1, 1)).src = e ? c : c + "&ord=" + f
}
})(l);
(function(b) {
function h(c) {
var d = [];
b.a.forEach(c, function(b, c) {
d.push(c + ":" + ("(function(){try{return(" + b.toString() + ")()}catch(e){return false}})()"))
});
return a = "{" + d.join(",") + "}"
}
function f(b) {
for (var c = "", d = 0; d < b.length; d++) var e = b.charCodeAt(d) ^
85,
c = c + String.fromCharCode(e);
b = c;
for (var c = "", f = e = d = 0, k = 0, n = 0, h = 0; h < b.length; ++h)
for (n = b.charCodeAt(h), k = 255 < n ? 0 : 1; 2 > k; ++k) d = 0 === k ? d | (n & 65280) / 256 << e : d | (n & 255) << e, e += 8, 13 < e && (f = d & 8191, 88 < f ? (d >>= 13, e -= 13) : (f = d & 16383, d >>= 14, e -= 14), c += g.charAt(f % 91), c += g.charAt(f / 91 | 0));
0 < e && (c += g.charAt(d % 91), 7 < e || 90 < d) && (c += g.charAt(d / 91 | 0));
return c
}
function c(c, d) {
var e = [];
b.a.forEach(c, function(b, c) {
if (void 0 !== b && ("string" === typeof(d ? b[d] : b) || "number" === typeof(d ? b[d] : b) || "boolean" === typeof(d ? b[d] : b))) {
var f = String(d ?
b[d] : b).split("&").join("%26").split("=").join("%3D");
e.push(("number" === typeof c ? "" : c + "=") + f)
}
}, null, !0);
e.sort();
return e.join("&")
}
function e(b) {
for (var c = "", d = 0; d < b.length; d++) b.hasOwnProperty(d) && (c += g[b[d]]);
return c
}
function k(c) {
var d = l.getElementById("moatCap");
if (!d || !d.gc && (d = l.getElementById("moatCapEmbed"), !d || !d.gc)) return !1;
b.x.aa = f(unescape(d.gc()));
var e = b.x.p();
c = b.q.b(35, c, e, !1, !0).res;
if (!c.shouldSendPixel) return !0;
d.sm({
fld: "pixel.moatads.com",
qs: c.querystring
});
return !0
}
function d(c,
e, f) {
if (void 0 === f) f = 1;
else if (5 < f) return;
var k = b.e.c && b.e.c.document && b.e.c.document.head;
if (k) {
c += "&callback=" + b.e.i + "." + e;
var g = document.createElement("script");
k.insertBefore(g, k.firstChild);
b.x.ar.push(g);
g.src = c
} else b.h.d(function() {
d(c, e, f + 1)
}, 200)
}
function v(c) {
var e = b.x.p(!0);
dataForNHT = "//geo.moatads.com/n.js?" + b.q.b(35, c, e, !1, !0).res.querystring;
d(dataForNHT, b.x.as)
}
b.x = {};
b.x.b = 1;
b.x.c = !1;
b.x.d = {};
b.x.e = [];
b.x.f = [];
b.x.g = 0;
b.x.h = 1;
b.x.i = 2;
b.x.j = 3;
b.x.k = 4;
b.x.l = function() {
var c = document &&
document.documentElement && document.documentElement.style || {},
d = !!window.opera,
e = "undefined" !== typeof InstallTrigger || "MozAppearance" in c,
f = 0 < Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor"),
k = !!window.chrome && !!window.chrome.webstore,
g = !+"\v1" || !!document.documentMode || !!window.ActiveXObject || "-ms-scroll-limit" in c && "-ms-ime-align" in c;
b.x.m = [!0 === !!window.opera ? 1 : 0, "undefined" !== typeof InstallTrigger === !0 ? 1 : 0, !0 === !!window.sidebar ? 1 : 0, !0 === "MozAppearance" in c ? 1 : 0, !0 === 0 <
Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor") ? 1 : 0, !0 === !!window.chrome ? 1 : 0, !0 === !(!window.chrome || !window.chrome.webstore) ? 1 : 0, !0 === !+"\v1" ? 1 : 0, !0 === !!document.documentMode ? 1 : 0, !0 === !!window.ActiveXObject ? 1 : 0, !0 === "-ms-scroll-limit" in c ? 1 : 0, !0 === "-ms-ime-align" in c ? 1 : 0
].join("");
c = {};
c[b.x.g] = k;
c[b.x.h] = e;
c[b.x.i] = d;
c[b.x.j] = f;
c[b.x.k] = g;
b.x.n = [!0 === k ? 1 : 0, !0 === e ? 1 : 0, !0 === d ? 1 : 0, !0 === f ? 1 : 0, !0 === g ? 1 : 0].join("");
for (var n in c)
if (c.hasOwnProperty(n) && c[n]) return n;
return !1
}();
var u = {
11: function() {
return b.a.bq(window.crypto.getRandomValues)
},
12: function() {
return "open" in document.createElement("details")
},
13: function() {
try {
Function(' "use strict"; return 01; ')()
} catch (b) {
return !0
}
return !1
},
14: function() {
return "boolean" == typeof navigator.onLine
},
15: function() {
return b.a.bq(document.documentElement.webkitRequestFullScreen)
},
16: function() {
return "-webkit-font-feature-settings" in document.body.style
},
18: function() {
return b.a.bq(window.MutationObserver) || b.a.bq(window.MutationEvent)
},
19: function() {
var b = document.createElement("div");
b.style.width = "1px";
b.style.width = "calc(1px - 1px)";
b.style.width = "-webkit-calc(1px - 1px)";
return "1px" != b.style.width
},
21: function() {
return "undefined" !== typeof window.navigator.webkitGamepads || b.a.bq(window.navigator.webkitGetGamepads) || b.a.bq(window.Gamepad)
},
22: function() {
var b = document.createElement("div");
b.style.width = "1px";
b.style.width = "-webkit-min-content";
b.style.width = "min-content";
return "1px" != b.style.width
},
23: function() {
return b.a.bq(window.webkitRTCPeerConnection)
},
24: function() {
return b.a.bq(Intl.Collator) || "object" == typeof Intl.Collator().resolvedOptions()
},
25: function() {
return b.a.bq(window.document.body.createShadowRoot) || b.a.bq(window.document.body.webkitCreateShadowRoot)
},
26: function() {
return "content" in document.createElement("template")
},
28: function() {
return b.a.bq(CSS.supports)
},
30: function() {
var c = document.createElement("canvas");
c.width = c.height = 1;
c = c.getContext("2d");
c.globalCompositeOperation = "multiply";
c.fillStyle = "rgb(0,255,255)";
c.fillRect(0,
0, 1, 1);
c.fill();
c.fillStyle = "rgb(255,255,0)";
c.fillRect(0, 0, 1, 1);
c.fill();
c = c.getImageData(0, 0, 1, 1).data;
return c[0] == c[2] && c[1] == c[3] || b.a.bq(window.navigator.vibrate)
},
32: function() {
return (1 == CSS.supports("object-fit", "contain") || 1 == CSS.supports("object-fit", "inherit")) && 1 == "object-fit" in document.body.style
},
33: function() {
return b.a.bq(window.speechSynthesis.speak)
},
34: function() {
return "srcset" in document.createElement("img")
},
35: function() {
return b.a.bq(window.FontFace)
},
36: function() {
return b.a.bq(document.createElement("div").animate)
},
37: function() {
return "shape-image-threshold" in document.body.style == CSS.supports("shape-image-threshold", .9) == 1 && b.a.bq(document.createElement("dialog").show)
},
38: function() {
return b.a.bq(navigator.getBattery)
},
39: function() {
return b.a.bq(document.createElement("div").animate([{
transform: "scale(1)",
easing: "ease-in"
}, {
transform: "scale(1.3)",
easing: "ease-in"
}], {
duration: 1300,
iterations: 1
}).reverse)
},
40: function() {
return !!window.navigator.serviceWorker && b.a.bq(window.navigator.serviceWorker.register)
},
41: function() {
return "image-rendering" in document.body.style && 1 == CSS.supports("image-rendering", "pixelated")
},
42: function() {
return b.a.bq(window.fetch)
},
43: function() {
return b.a.bq(navigator.permissions.query)
},
44: function() {
return CSS.supports("word-break", "keep-all")
},
47: function() {
return CSS.supports("text-align-last", "start")
}
},
r = {
20: function() {
var b = document.createElement("canvas");
b.width = b.height = 1;
b = b.getContext("2d");
b.globalCompositeOperation = "multiply";
b.fillStyle = "rgb(0,255,255)";
b.fillRect(0,
0, 1, 1);
b.fill();
b.fillStyle = "rgb(255,255,0)";
b.fillRect(0, 0, 1, 1);
b.fill();
b = b.getImageData(0, 0, 1, 1).data;
return b[0] == b[2] && b[1] == b[3]
},
21: function() {
return void 0 !== window.document.createElement("style").scoped
},
22: function() {
return "content" in document.createElement("template")
},
23: function() {
var b = document.createElement("input");
b.setAttribute("type", "range");
return "text" !== b.type
},
24: function() {
return window.CSS.supports("cursor", "zoom-in")
},
26: function() {
return window.CSS.supports("image-orientation",
"270deg")
},
27: function() {
return window.CSS.supports("cursor", "grab")
},
29: function() {
return b.a.bq(Intl.Collator) || "object" == typeof Intl.Collator().resolvedOptions()
},
30: function() {
return eval("1 == [for (item of [1,2,3]) item][0]")
},
31: function() {
return window.CSS.supports("--fake-var", 0)
},
32: function() {
return window.CSS.supports("position", "sticky")
},
35: function() {
return "performance" in window && "getEntriesByType" in window.performance && window.performance.getEntriesByType("resource") instanceof Array
},
36: function() {
return (1 == CSS.supports("object-fit", "contain") || 1 == CSS.supports("object-fit", "inherit")) && 1 == "object-fit" in document.body.style
},
40: function() {
var b = (new AudioContext).createBufferSource();
b.detune.value = 100;
return 100 == b.detune.value
},
41: function() {
return !!document.fonts.ready
},
42: function() {
return b.a.bq(Reflect.apply)
},
43: function() {
return b.a.bq(Array.prototype.includes)
},
44: function() {
return eval("(function(){let x = true; return x; })()")
}
},
q = {
5: function() {
try {
Function(' "use strict"; return 01; ')()
} catch (b) {
return !0
}
return !1
},
"5.1": function() {
return 0 == (new Uint16Array(1))[0]
},
6: function() {
return b.a.bq(webkitRequestAnimationFrame)
},
7: function() {
return b.a.bq(window.speechSynthesis.speak)
},
8: function() {
var c = new MediaSource;
return b.a.bq(c.addSourceBuffer) || "number" == typeof window.performance.now()
},
9: function() {
return b.a.bq(CSS.supports)
}
},
w = {
0: function() {
var b = document.createElement("div"),
c = null,
d = ["{45EA75A0-A269-11D1-B5BF-0000F8051515}", "{3AF36230-A269-11D1-B5BF-0000F8051515}", "{89820200-ECBD-11CF-8B85-00AA005B4383}"];
try {
b.style.behavior = "url(#default#clientcaps)"
} catch (e) {}
for (var f = 0; f < d.length; f++) {
try {
c = b.getComponentVersion(d[f], "componentid").replace(/,/g, ".")
} catch (e) {}
if (c) return c.split(".")[0]
}
return "-1"
},
11: function() {
return eval("(function(){let x = true; return x; })()")
},
12: function() {
return isNativeFunction(CSS.supports)
},
13: function() {
return "content" in document.createElement("template")
}
};
b.x.o = f;
b.x.p = function(c) {
var d = {};
d.ud = b.x.l;
if (void 0 === c || !1 === c) d.qa = b.x.q, d.qb = b.x.r, d.qc = b.x.s, d.qd =
b.x.t, d.qf = b.x.u, d.qe = b.x.v, d.qh = b.x.w, d.qg = b.x.x, d.qi = b.x.y, d.qj = b.x.z, d.qk = b.x.aa, d.ql = b.x.ab, d.qo = b.x.ac;
d.qm = b.x.ad;
d.qn = b.x.ae;
d.qp = b.x.n;
d.qq = b.x.m;
d.qr = b.x.af;
d.qt = b.x.ag;
return d
};
for (var u = h(u), r = h(r), q = h(q), w = h(w), l = [
[1, 25],
[7, 1],
[1, 25],
[-74, 1],
[1, 9],
[-24, 1],
[2, 1],
[1, 3],
[2, 1],
[1, 4],
[2, 1],
[1, 1],
[11, 1],
[1, 6],
[27, 1],
[2, 1],
[1, 3],
[27, 1],
[1, 3],
[-92, 1]
], u = 65, g = "", r = r = 0; r < l.length; r++)
for (q = 0; q < l[r][1]; q++) g += String.fromCharCode(u), u += l[r][0];
var g = g + String.fromCharCode(u),
u = e([48, 30, 27, 29, 43, 34,
47, 30, 43
]),
r = e([30, 47, 26, 37, 46, 26, 45, 30]),
q = e([43, 30, 44, 41, 40, 39, 44, 30]),
m = [u, r].join("-"),
n = [m, q].join("-");
e([38, 40, 46, 44, 30, 38, 40, 47, 30]);
var u = e([84, 41, 33, 26, 39, 45, 40, 38]),
r = e([28, 26, 37, 37, 15, 33, 26, 39, 45, 40, 38]),
q = b.e.c,
l = q.document,
w = l.body,
C = q.navigator;
b.x.y = b.e.ab;
b.x.z = b.e.ac;
b.x.q = b.e.ad;
b.x.r = b.e.ae;
try {
b.x.u = q.innerWidth || l.documentElement.clientWidth || w.clientWidth, b.x.v = q.innerHeight || l.documentElement.clientHeight || w.clientHeight, b.x.w = q.outerWidth || w.offsetWidth, b.x.x = q.outerHeight ||
w.offsetHeight
} catch (E) {}
try {
b.x.s = q.screenX || q.screenLeft || q.screenX, b.x.t = q.screenY || q.screenTop || q.screenY
} catch (E) {}
try {
b.x.ae = f(c(C))
} catch (E) {}
try {
b.x.ab = f(c(C.plugins, "name"))
} catch (E) {}
b.x.ad = (new x).getTimezoneOffset();
b.x.af = 0;
b.x.ag = !0 === ("undefined" != typeof q[u] || "undefined" != typeof q[r]) ? 1 : 0;
b.x.ac = 0;
b.x.aa = 0;
b.x.ah = {};
b.x.ai = function(c, d) {
var e = b.x.p(),
e = "//bk6521.moatads.com/pixel.gif?" + b.q.b(d, c, e, !1, !0).res.querystring + "&qu=$_BK_UUID",
e = "//tags.bluekai.com/site/25856?redir=" + encodeURIComponent(e);
(new Image).src = e
};
b.x.aj = function() {};
var B = "nu ib dc ob oh lt ab n nm".split(" ");
b.x.ak = function(c, d) {
d.ga ? b.a.forEach(B, function(d, e) {
c = d in b.x.a ? c + ("&" + d + "=1") : c + ("&" + d + "=0")
}) : d.APPEND_MANUAL && b.a.forEach(B, function(e, f) {
b.a.n(d.APPEND_MANUAL, e) && (c = e in b.x.a ? c + ("&" + e + "=1") : c + ("&" + e + "=0"))
});
d.gb ? 0 == b.x.al && ((new b.e.c.Image).src = c) : d.gc ? 1 == b.x.al && ((new b.e.c.Image).src = c) : (new b.e.c.Image).src = c
};
b.x.am = function(c, d) {
c(b.x.al)
};
b.x.an = function(c, d) {
return function() {
if (void 0 === b.x.al) return b.x.e.push({
pixel: c,
opts: d
});
b.x.ak(c, d)
}
};
b.x.ao = function(c, d) {
if (void 0 === b.x.al) return b.x.f.push({
callback: c,
opts: d
});
b.x.am(c, d)
};
b.x.ap = function() {
for (var c = 0; c < b.x.f.length; c++)
if (b.x.f.hasOwnProperty(c)) {
var d = b.x.f[c];
b.x.am(d.callback, d.opts)
}
};
b.x.aq = function() {
for (var c = 0; c < b.x.e.length; c++)
if (b.x.e.hasOwnProperty(c)) {
var d = b.x.e[c];
b.x.ak(d.pixel, d.opts)
}
};
b.x.ar = [];
b.x.at = function(c) {
if (y)
if (b.x.as = "gna" + t.floor(1E6 * t.random()), y[b.x.as] = function(c) {
b.x.au = new x - b.x.av;
b.x.al = "n" in c ? 1 : 0;
b.x.a = c;
b.x.aq();
b.x.ap();
y.jsonpcache = c;
y[b.x.as] = null
}, b.x.av = new x, b.h.d(function() {
b.x.aw = new x - b.x.av
}, 0), y.jsonpcache) y[b.x.as](y.jsonpcache);
else v(c);
else b.h.d(setupNadoListener, 200)
};
b.x.ax = function(c, d) {
void 0 === b.x.d[c] && (b.x.d[c] = 1 / b.x.b < t.random());
if (b.x.d[c]) return !1;
var e = b.x.p();
b.u && b.u.d && b.u.d.imaSDK ? c.moatClientLevel3 && b.q.b(34, c, e) : b.q.b(34, c, e);
return !0
};
b.x.ay = function(c) {
if (!0 !== b.x.az && (b.x.az = !0, b.x.ax(c))) {
try {
b.e.at || b.a.be("afs.moatads.com")
} catch (d) {}
var e = function() {
var d = {};
d.qr =
b.x.af;
d.qo = b.x.ac;
b.q.b(36, c, d)
};
b.h.e(l, m, function(c) {
b.h.c(l, m, null, "mswe");
b.x.af = 1;
e()
}, "mswe");
b.h.e(l, n, function(c) {
b.h.c(l, n, null, "mswer");
b.x.af = 1;
e()
}, "mswer");
b.h.a(function() {
return k(c)
}, 10, 200)
}
};
b.x.ba = function() {
if (b.x.ar) {
for (var c = 0, d = b.x.ar.length; c < d; c++) try {
b.x.ar[c].parentNode && b.x.ar[c].parentNode.removeChild(b.x.ar[c])
} catch (e) {}
b.x.ar = null
}
};
b.x.bb = function() {
b.h.c(l, m, null, "mswe");
b.h.c(l, n, null, "mswer");
b.x.ba()
}
})(l);
(function(b) {
function h(c) {
var d = {
window: 0,
transparent: 1,
opaque: 2,
direct: 3,
gpu: 4
};
if ("EMBED" === c.tagName) var e = b.a.getAttribute(c, "wmode");
else if ("OBJECT" === c.tagName) {
c = c.getElementsByTagName("param");
for (var f = 0; f < c.length; f++) {
var h = c[f],
q = b.a.getAttribute(h, "name"),
h = b.a.getAttribute(h, "value");
if ("wmode" === q) {
e = h;
break
}
}
}
return e && d[e.toLowerCase()] || 5
}
function f(c) {
try {
if (!c) return !1;
var d = c,
e;
if ("DIV" === d.tagName || "A" === d.tagName)(d = c.getElementsByTagName("EMBED")[0]) || (d = c.getElementsByTagName("OBJECT")[0]), d || (d = c.getElementsByTagName("IMG")[0]),
d || (d = c);
1 === d.nodeType && "IMG" !== d.nodeName && "EMBED" !== d.nodeName && "OBJECT" !== d.nodeName && (d = c.getElementsByTagName("EMBED")[0] || c.getElementsByTagName("OBJECT")[0] || c.getElementsByTagName("IMG")[0] || c);
if ("OBJECT" === d.tagName) {
for (c = 0; c < d.children.length; c++)
if ("movie" === d.children[c].name || "Movie" === d.children[c].name) e = d.children[c].value;
d.object && d.object.Movie ? e = d.object.Movie : d.data && -1 !== d.data.indexOf("swf") && (e = d.data)
}
"EMBED" !== d.tagName && "IMG" !== d.tagName || !d.src || (e = d.src);
e || (e = b.a.u(d));
var f = b.v.a(e, d);
return {
adURL: e,
flashVars: f
}
} catch (h) {
return !1
}
}
function c(c) {
var d = c.el,
v = c.url,
u = c.flashVars,
r = c.adIds,
q = c.opt_props;
(new x).getTime();
this.ao = r;
this.FIND_AD_TRIES = r.numTries || 0;
var w = f(d);
if (w && w.adURL && u)
for (p in w.flashVars) w.flashVars.hasOwnProperty(p) && (u[p] = w.flashVars[p]);
w && w.flashVars && (u = w.flashVars);
if ("string" !== typeof v || "div" === v.toLowerCase() || "a" === v.toLowerCase()) v = w && w.adURL || "-";
v && 0 !== v.toLowerCase().indexOf("http:") && 0 !== v.toLowerCase().indexOf("https:") && ("//" ===
v.substring(0, 2) ? v = window.location.protocol + v : "/" === v[0] ? v = window.location.protocol + "//" + window.location.host + v : (w = window.location.pathname.split("/").slice(0, -1).join("/"), v = window.location.protocol + "//" + window.location.host + "/" + w + (w ? "/" : "") + v));
"IFRAME" !== d.tagName && "IMG" !== d.tagName && -1 === v.indexOf("googlesyndication") && (v = v.split("?")[0]);
this.zr = r.adNum;
this.yg = b.a.cd();
b.aa.b(this.yg);
z[this.zr] = this;
b.z.c(this.zr, [d]);
this.ae = v;
this.aa = d;
this.WINDOW = b.a.t(this.aa);
"undefined" === typeof this._calcVideoBasedOnContainer &&
(this._calcVideoBasedOnContainer = "EMBED" === d.nodeName && d.parentNode && "OBJECT" === d.parentNode.nodeName && 0 == d.offsetWidth && 0 == d.offsetHeight ? !0 : !1);
this._calcVideoBasedOnContainer ? (this.INITIAL_WIDTH = d.parentNode.offsetWidth, this.INITIAL_HEIGHT = d.parentNode.offsetHeight) : (this.INITIAL_WIDTH = d.offsetWidth, this.INITIAL_HEIGHT = d.offsetHeight);
"undefined" === typeof u && (u = {});
b.aa.c(ca);
this.eg = [];
this.ee = {};
q && q.IS_PAGE_LEVEL || (this.ed = {}, b.b.w(this));
b.u.e(this);
this.get_duration = function() {
return "number" ==
typeof r.duration && !isNaN(r.duration) && 0 < r.duration && r.duration
};
this.get_width = function() {
return r.initWidth ? r.initWidth : this.INITIAL_WIDTH ? this.INITIAL_WIDTH : !1
};
b.c.e(this);
b.w.b(this.zr, this.ao);
this.ag = u;
this.ah = void 0;
this.ai = 0;
this.an = this.am = this.al = this.ak = this.aj = void 0;
this.ar = [];
this.as = [];
this.at = [];
this.av = this.au = b.o.a.a.a;
this.ax = b.o.a.b.a;
this.ay = b.o.a.c.a;
this.ba = this.az = b.o.a.d.a;
this.bb = b.o.a.e.a;
this.by = this.bx = this.bw = this.bv = this.bu = this.bt = this.bs = this.br = this.bq = this.bp = this.bo =
this.bm = this.bl = this.bk = this.bi = this.bh = this.bg = this.bf = this.be = this.bd = this.bc = void 0;
this.ca = this.bz = !1;
this.cb = this.cu = this.ct = void 0;
this.cc = +new x + 12E4;
this.ci = +new x;
this.cl = this.cm = void 0;
this.cn = 0;
this.ck = b.o.a.f.a;
this.cd = !1;
this.cy = void 0;
this.dt = !1;
this.db = void 0;
this.cf = this.ce = !1;
this.af = Number(this.ef);
this.eq = !1;
this.ds = this.ch = this.dr = this.cg = 0;
this.dq = this.bn = void 0;
this.IR5 = {
MIN: {
x: void 0,
y: void 0
},
MAX: {
x: void 0,
y: void 0
},
AREA: 0
};
this.dm = 0;
this.ep = this.dd = !1;
this.aq = {};
this.aq.g =
0;
this.aq[1] = 0;
this.aq[2] = 0;
this.aq[3] = 0;
this.aq[13] = 0;
this.aq[0] = 0;
this.aq[4] = 0;
this.aq[5] = 0;
this.aq[6] = 0;
this.aq[7] = 0;
this.aq[9] = 0;
this.aq[8] = 0;
this.aq[15] = 0;
this.aq[16] = 0;
this.aq[21] = 0;
this.aq[22] = 0;
this.aq[23] = 0;
this.aq[37] = 0;
this.es = [5, 10, 15, 30, 60];
this.doa = [5, 10, 15, 30, 60];
this.aq[28] = 0;
this.aq[33] = 0;
this.aq[29] = 0;
this.aq[14] = 0;
this.an = c.adType || c.opt_props && c.opt_props.adType || e(d);
0 === this.an && (this.WMODE = h(d));
c = b.a.v(this.aa, 2);
var l;
c && 0 < c.length && (b.a.forEach(c, function(b) {
if (b && b.style &&
b.style.clip) return l = b, !1
}), !l && this.aa.style && this.aa.style.clip && (l = this.aa), l && (this.aa.CLIPCHECKINGTARGET = l));
b.u.f(this)
}
function e(b) {
return "IFRAME" === b.tagName ? 2 : "IMG" === b.tagName ? 1 : "EMBED" === b.tagName || "OBJECT" === b.tagName ? 0 : 3
}
b.z = {};
b.z.a = function(f, d, v, u, r, q, w) {
q || b.x.ay(r);
var l;
l = 1 == arguments.length ? arguments[0] : {
el: f,
url: d,
flashVars: u,
adIds: r,
opt_props: w
};
if (q) {
if ("function" === typeof q) return q(f, d, u, r);
new x;
q.em = !0;
z[q.zr] = q;
f[M] = q.zr;
f[F] = !0;
q.aa = f;
q.INITIAL_WIDTH = f.offsetWidth;
q.INITIAL_HEIGHT =
f.offsetHeight;
q.ae = d;
q.an = e(f);
0 === q.an && (q.WMODE = h(f));
q.ag = u || {};
b.p.a(q);
l = {
e: 0
};
l.q = q.aq[0]++;
b.q.a(q, l);
w && w.IS_PAGE_LEVEL || (q.periscopeManager && q.periscopeManager.killAllPixels(), q.periscopeConfig = !1, b.b.w(q));
return q
}
return new c(l)
};
b.z.b = function(c) {
b.aa.a();
c.de = c.ao.startTime;
c.RAND = c.ao.rand;
(new x).getTime();
c.dd = !0;
b.n.h(c);
var d = b.n.i(c.zr);
d && d.addListener(c.video);
b.ab.a(c);
b.e.a || b.ac.a.a();
c._calcVideoBasedOnContainer ? (d = {
aa: c.aa.parentNode,
zr: c.zr
}, c.aa.parentNode[M] = c.zr, b.p.a(d)) :
b.p.a(c);
c.aa.parentNode && "swiffycontainer" === c.aa.parentNode.id && b.ad.a(["..../../iframe ~ #clicktag"], c, c.aa.parentNode);
b.i.b.zaxs("startAdTracking", c);
b.n.d(c);
d = {
e: 0
};
d.q = c.aq[0]++;
b.q.a(c, d)
};
b.z.d = function(c) {
var d = +new x,
e = d - c.ci;
if (0 < c.doa.length) {
var f = 1E3 * c.doa[0];
if (c.counters.laxDwell.tCur >= f) {
c.doa.shift();
var h = c.es.length ? c.es[0] : 60;
if (f < h) return !1;
if (5E3 < e) return !0
}
}
return 0 < c.es.length && (h = 1E3 * c.es[0], b.n.l(c, h)) ? (c.es.shift(), !0) : 0 === c.doa.length && d > c.cc ? (c.cc *= 2, !0) : !1
};
b.z.c =
function(b, c) {
for (var e = 0; e < c.length; e++) {
var f = c[e];
f[M] = b;
f[F] = !0
}
}
})(l);
(function(b) {
function h(b) {
var c = [];
if ("string" !== typeof b) return !1;
var e;
e = 4 > b.length ? !1 : ".../" === b.substring(b.length - 4);
if (e) return !1;
for (; b;) {
if (k(b, ".../")) e = ".../";
else if (k(b, "...../")) e = "...../";
else if (k(b, "../") || k(b, "..../")) {
e = k(b, "../") ? "../" : "..../";
for (var f = e.length; k(b.substring(f), e);) f += e.length;
e = b.substring(0, f)
} else k(b, "=>/") ? e = "=>/" : k(b, "-/") ? e = "-/" : (k(b, "$[") ? (e = b.length, f = d(b, "]/") + 2) : (e = b.length,
f = d(b, "/") + 1), e = b.substring(0, t.min(e, f)));
if (("../" === e || ".../" === e) && ".../" === (c.length && c[c.length - 1]) || ".../" === e && "../" === (c.length && c[c.length - 1])) return !1;
if (b = b.substring(e.length)) {
if ("/" !== e.substring(e.length - 1)) return !1;
k(e, "../") || k(e, ".../") || k(e, "..../") || k(e, "...../") || k(e, "=>/") || k(e, "-/") || k(e, "$[") || (e = e.substring(0, e.length - 1))
}
c.push(e)
}
return c
}
function f(c) {
if (!c) return !1;
if (!b.e.g || 10 < b.a.l() || c.querySelectorAll && c.querySelector && (!c.MoatQSShimSet || c[e])) return !0;
c.querySelector =
function(b) {
b = this.querySelectorAll(b);
return b.length ? b[0] : null
};
c.querySelectorAll = function(b) {
var c = [],
d = this.ownerDocument || document,
e = d.createElement("style");
(d = d.getElementsByTagName("head")[0]) && d.insertBefore(e, d.childNodes[t.max(d.childNodes.length - 1, 0)] || null);
e && e.styleSheet && (e.styleSheet.cssText = b + "{shimtest:bar}");
b = this.getElementsByTagName("*");
for (var d = b.length, f = 0; f < d; f++) b[f].currentStyle && "bar" === b[f].currentStyle.shimtest && (c[c.length] = b[f]);
e.parentNode.removeChild(e);
return c
};
c.MoatQSShimSet = !0;
return c[e] = !0
}
function c(c, d) {
var e = function(c, d) {
if (!c || !d) return !1;
if (c.matches) return c.matches(d);
if (!f(c.parentNode)) return !1;
var e = c.parentNode.querySelectorAll(d);
if (!e || !e.length) return !1;
var g = !1;
b.a.forEach(e, function(b) {
b === c && (g = !0);
return !g
});
return g
},
q = h(c);
if (!q) return !1;
for (var l = d, t = 0, g = [], m = function(c) {
return c && b.f.a(c)
}, n = function(b) {
return b && b.parentElement
}, C = function(c) {
return c ? (c = b.f.b(c)) && c.body : !1
}, B = function(b, c, d) {
return b ? (b = b.getAttribute(c)) &&
(d = (new RegExp(d)).exec(b)) && d.length && 0 < d.length ? d[d.length - 1] : !1 : !1
}, E = 0; E < q.length && 100 > t; E++) {
var A = q[E];
if (k(A, "../") || k(A, "..../")) {
var x, y;
k(A, "../") ? (x = "../", y = n) : (x = "..../", y = m);
if (0 !== A.length % x.length) return !1;
for (var z = 0; z < A.length / x.length; z++) {
if (!l || "HTML" === l.nodeName) return !1;
l = y(l);
t++
}
} else if (".../" === A)
for (; 100 > t;) {
if (l && e(l, q[E + 1])) {
E++;
break
}
if (!l || "HTML" === l.nodeName) return !1;
l = l.parentElement;
t++
} else if ("...../" === A) {
l = b.e.c && b.e.c.document && b.e.c.document.body;
if (!l) return !1;
t++
} else if ("=>/" === A) {
l = C(l);
if (!l) return !1;
t++
} else if ("-/" === A) {
l = b.a.previousElementSibling(l);
if (!l) return !1;
t++
} else if (k(A, "$["))
if (A = (z = (A = A.substring(2, A.length - 2)) && A.split("|")) && z[0], z = z && z[1], A && z)
if (A = B(l, A, z)) g.push(A), t++;
else return !1;
else return !1;
else {
if (g && 0 < g.length)
for (x = g.length, z = 0; z < x; z++) A = A.replace("$" + z, g[z]);
if (!e(l, A)) {
if (!f(l)) return !1;
l = l.querySelectorAll(A);
if (!l || 1 !== l.length) return !1;
l = l[0]
}
}
}
return l
}
b.ad = {};
var e = "MoatQSShimOrd_XAXISSUPPLYVPAID1_" + b.e.m,
k =
function(b, c) {
return 0 === b.indexOf(c) && c
},
d = function(b, c) {
var d = b.indexOf(c);
return 0 > d ? b.length + 1 : d
};
b.ad.b = function(d, e) {
var f = [];
b.a.forEach(d, function(b) {
(b = c(b, e)) && f.push(b)
});
return f
};
b.ad.a = function(c, d, e) {
c = b.ad.b(c, e);
b.a.forEach(c, function(c) {
b.p.c(d, c)
})
}
})(l);
(function(b) {
function h(c, e, f, d) {
d = d || function() {
return !0
};
if (!c) return !1;
var h = b.a.l(),
l = null !== h && 11 > h;
if (!l)
for (var r = c.getElementsByTagName("embed"), h = 0; h < r.length; h++) {
var q = r[h];
if (!0 !== q[F] && -1 === q.id.indexOf("moatPx") &&
b.a.ao(q) && q.getAttribute("src") && d(q)) {
var w = q.getAttribute("src");
d = b.v.a(w, q);
return b.z.a(q, w, !1, d, e, f)
}
}
for (var t = c.getElementsByTagName("object"), h = 0; h < t.length; h++)
if (r = t[h], b.a.ao(r) && d(r) && ("undefined" === typeof r[F] || !0 !== r[F]) && -1 == r.id.indexOf("moatPx")) {
for (var g = 0; g < r.children.length; g++)
if ("movie" === r.children[g].name || "Movie" === r.children[g].name)
if (w = r.children[g].value, !w || !w.match("scorecardresearch"))
for (var m = 0; m < r.children.length; m++) {
if (!l && "EMBED" === r.children[m].tagName) {
q =
r.children[m];
if ("undefined" !== typeof q[F] && !0 === q[F] || -1 != q.id.indexOf("moatPx")) continue;
if (b.a.ao(q) && d(q)) return d = b.v.a(w, q), b.z.a(q, w, !1, d, e, f)
}
if ("OBJECT" === r.children[m].tagName && (q = r.children[m], b.a.ao(q) && !0 !== q[F] && -1 === q.id.indexOf("moatPx") && d(q))) return b.z.a(q, void 0, !1, void 0, e, f)
}
r.object && r.object.Movie ? w = r.object.Movie : r.data && (w = r.data);
if (!w || !w.match("scorecardresearch")) return d = b.v.a(w, r), b.z.a(r, w, !1, d, e, f)
}
if (h = b.ae.h(c, e, f, d)) return h;
w = c.getElementsByTagName("img");
for (h =
0; h < w.length; h++)
if (l = w[h], "undefined" === typeof l[F] || !0 !== l[F]) {
if (b.a.ao(l) && "" !== l.src && -1 === document.location.href.indexOf(l.src) && d(l)) return b.z.a(l, l.getAttribute("src"), !1, void 0, e, f);
var n;
try {
n = l.src
} catch (B) {
n = l.getAttribute && l.getAttribute("src")
}
da["1"] = l.offsetWidth + "x" + l.offsetHeight + ":" + n
}
if (c = c.getElementsByTagName("canvas")[0]) {
var C;
d(c.parentNode) && b.a.ao(c.parentNode) && (C = b.z.a(c.parentNode, c.parentNode.nodeName, !1, void 0, e, f));
if (C) return C
}
return !1
}
function f(c, e) {
for (var f = [], d = b.a.bi(c) ? c : c.getElementsByTagName("iframe"), h, l = 0; l < d.length; l++)
if (h = d[l], !h[F]) {
var r = b.f.b(h) ? !1 : !0;
(1 === e && r && b.a.ao(h) || 2 === e && !r) && f.push(h)
}
return f
}
b.ae = {};
b.ae.a = function(c, e, f, d, h) {
var l = b.ae.b,
r = 0;
b.h.a(function() {
e.numTries = r++;
return l(c, e, f, d) && !0
}, b.ae.c, 500, h)
};
b.ae.h = function(c, e, h, d) {
d = d || function() {
return !0
};
c = f(c, 1);
if (c[0] && b.a.ao(c[0]) && d(c[0])) return b.z.a(c[0], c[0].src, !1, void 0, e, h)
};
b.ae.g = function(c, e, f, d) {
var l;
c = b.ae.f(d || c, b.ae.i);
for (d = 0; d < c.length; d++)
if (l = c[d],
(l = b.f.b(l)) && l.documentElement && (l = h(l.documentElement, e, f))) return l
};
b.ae.j = function(c, e, f) {
var d, l;
c = b.ae.f(c, b.ae.i);
for (var u = 0; u < c.length; u++) {
l = c[u];
var r = b.f.b(l);
if (r && r.documentElement) {
if ((d = b.ae.k(r.documentElement, e, f, l)) || (d = h(r.documentElement, e, f))) return d;
r = b.ae.f(r.documentElement, b.ae.i);
for (l = 0; l < r.length; l++) {
d = r[u];
var q = b.f.b(d);
if (q && q.documentElement && (d = b.ae.k(q.documentElement, e, f, d))) return d
}
}
}
};
b.ae.k = function(c, e, f, d) {
c = c && c.ownerDocument && c.ownerDocument.body;
var h;
if ((c = c && c.children && c.children[0]) && c.id.match(/flite-\d+$/) && (c && d && d.parentNode && d.parentNode.className && d.parentNode.className.match("flite-div") ? h = d.parentNode : c && d && d.parentNode && d.parentNode.parentNode && d.parentNode.parentNode.className.match("flite-lightbox") && (h = d.parentNode.parentNode), h && b.a.ao(h) && (e = b.z.a(h, h.nodeName, !1, void 0, e, f)))) return b.p.c(e, c), b.p.c(e, d), e
};
b.ae.e = function(b, e, f) {
return !1
};
b.ae.l = function(c, e, f, d) {
c = b.ad.b(c, e);
var h;
b.a.forEach(c, function(c) {
if (b.a.ao(c)) return h =
c, !1
});
if (h) return c = b.a.u(h) || h.src, b.z.a(h, c || "DIV", !1, void 0, f, d)
};
b.ae.d = h;
b.ae.b = function(c, e, f, d, h) {
h = h || function() {
return !0
};
var l = b.ae.d,
r = b.ae.e;
if ("undefined" === typeof c) return !1;
b.e.f && "HEAD" === c.tagName && (d = c.parentNode, "HTML" === d.tagName && (d = d.getElementsByTagName("body"), 0 < d.length && (c = d[0])));
var q;
if ((q = r(c, e, f)) || (q = l(c, e, f, h)) || (q = b.ae.g(c, e, f))) return q;
if (d = b.f.d(c))
if (q = b.ae.g(d, e, f)) return q;
return !Ia && !d || !(d = d || b.f.d(c)) || b.e.a && "BODY" === d.nodeName && b.a.t(d) == b.e.c || !(q = r(d,
e, f)) && !(q = l(d, e, f, h)) ? !1 : q
};
b.ae.f = f;
b.ae.m = 1;
b.ae.i = 2;
b.ae.n = 500;
b.ae.c = 20;
b.ae.o = {
object: 1,
embed: 1,
img: 1,
iframe: 1
}
})(l);
(function(b) {
function h(f, c, e) {
e = {};
f = f.replace(/&amp;/g, "&").replace(/(^\s+|\s+$)/g, "");
f = f.split("&");
for (var h = 0; h < f.length; h++) {
var d = f[h].split("=");
if ("string" === typeof d[1]) {
d[0] && d[0].match("moatClient") && (e["rawM" + d[0].slice(1)] = d[1]);
var l = d,
u, r = u = d[1];
try {
for (var q = 0; 100 > q && (u = decodeURIComponent(u), r != u) && !u.match(/^http(s)?\:/); q++) r = u
} catch (w) {}
u = u.replace(/(^\s+|\s+$)/g,
"");
l[1] = u
} else d[1] = "";
e[d[0]] = d[1]
}
"undefined" !== typeof c && (e.clientZone = "undefined" !== c ? c : "");
return e = b.g.g(e)
}
b.g = {};
b.g.b = function(f, c) {
if (!f) return !1;
if ("undefined" === typeof f.startTime || c) f.startTime = b.e.m;
if ("undefined" === typeof f.rand || c) f.rand = t.floor(t.random() * t.pow(10, 12));
"undefined" === typeof f.adNum && (f.adNum = y.zr, y.zr++);
f.duration = t.round(f.duration)
};
b.g.c = function(f) {
if (!f) return !1;
var c = b.a.e(),
e;
e = b.a.g();
c = decodeURIComponent(c);
f.moatClientSlicer1 = e;
f.moatClientSlicer2 = c;
e =
/^([a-fA-F0-9]+-){2,}[a-fA-F0-9]+$/i;
f.moatClientSlicer1 && f.moatClientSlicer1.match(e) ? (f.moatClientSlicer1 = "-", f.moatClientSlicer2 = "-") : f.moatClientSlicer2 && f.moatClientSlicer2.match(e) && (f.moatClientSlicer2 = "-");
b.a.ad().isInApp && !b.a.ah() && (e = f.moatClientSlicer1, c = f.moatClientSlicer2, e && "-" !== e && "" !== e.replace(/^\s+|\s+$/gm, "") || (c = e = "In App"), c || (c = "In App"), f.moatClientSlicer1 = "In App / " + e, f.moatClientSlicer2 = "In App / " + c);
return f
};
b.g.d = function(f) {
if (f = b.g.a(f)) f.zMoatOrigSlicer1 = f.moatClientSlicer1 ||
"N/A", f.zMoatOrigSlicer2 = f.moatClientSlicer2 || "N/A";
return f = b.g.c(f)
};
b.g.a = function(b) {
try {
var c = b.className,
e = b.getAttribute("src");
c.split("\n").join(" ");
if (-1 !== c.indexOf("moatfooter")) return !1;
var k = e.split("?"),
d = e.split("#");
b = !1;
1 < k.length && 1 < d.length && k[1].length < d[1].length && (b = !0);
if (1 == k.length || b) k = d;
return 1 < k.length ? h(k[1], "undefined") : !1
} catch (l) {
return !1
}
};
b.g.e = function(f) {
if (!f) return !1;
var c = {};
try {
var e = f && f.className.replace("amp;", "").split("?")[1];
if (c = e && h(e)) c.zMoatOrigSlicer1 =
c.moatClientSlicer1 || "N/A", c.zMoatOrigSlicer2 = c.moatClientSlicer2 || "N/A";
return c = b.g.c(c)
} catch (k) {
return !1
}
};
b.g.f = function(f) {
var c = /(level|slicer)([\d]*)/,
e, h, d;
if ("undefined" !== typeof f.flashVars)
for (e in f.flashVars) f.flashVars.hasOwnProperty(e) && (f[e] = f.flashVars[e]);
for (e in f) f.hasOwnProperty(e) && e.match && (h = e.match(c)) && (d = "level" === h[1] ? "moatClientLevel" : "moatClientSlicer", f[d + h[2]] = f[e], delete f[e]);
f && (f.zMoatOrigSlicer1 = f.moatClientSlicer1 || "N/A", f.zMoatOrigSlicer2 = f.moatClientSlicer2 ||
"N/A");
b.g.c(f)
};
b.g.g = function(b) {
if (b) {
for (var c in b) b.hasOwnProperty(c) && c && c.match("moatClientLevel") && "string" === typeof b[c] && (b[c] = b[c].replace(/\:/g, "_").replace(/%3A/gi, "_"));
return b
}
};
b.g.h = function(b) {
try {
var c = zoneRegEx.exec(b.innerHTML);
0 < c.length && (zone = c[1]);
return zone
} catch (e) {}
};
b.g.i = function(b) {
return (b = unescape(unescape(unescape(unescape(b.innerHTML)))).match(/~fdr=(\d*).*?\/.*?;(\d*)/)) ? {
adid: b && b[1] || "-",
cid: b && b[2] || "-"
} : !1
};
b.g.j = function(b, c) {
return c || {}
};
b.g.k = function(b) {
b =
decodeURIComponent(decodeURIComponent(b)); - 1 < b.indexOf("anonymous.google") && (b = "anonymous.google");
var c = b.match(/^(?:[^:]{1,}:\/\/)?(?::*\/?\/?)?(?:www\.)?([^\/:]*)/);
c && c[1] && (b = c[1]);
return b.split("/")[0]
}
})(l);
(function(b) {
function h(c, e) {
var f, d = [],
h, l = b.a.k() ? 2048 : 7750,
r = e || {};
h = {};
c.fs = "70379";
for (f in c) c.hasOwnProperty(f) && (1 != c.e || "x" !== f && "y" !== f && "c" !== f ? d.push(encodeURIComponent(f) + "=" + encodeURIComponent(c[f])) : h[f] = c[f].split("a"));
f = d.join("&");
var d = l - f.length,
q = 0;
if ("undefined" !==
typeof h.x) {
for (var w = 0, J = 0; J < h.x.length; J++)
if (w += h.x[J].length + (h.y[J] ? h.y[J].length : 0) + (h.c[J] ? h.c[J].length : 0), w < d) q++;
else break;
0 < q && (f += "&x=" + h.x.slice(0, q - 1).join("a"), f += "&y=" + h.y.slice(0, q - 1).join("a"), f += "&c=" + h.c.slice(0, q - 1).join("a"))
}
for (var g in r) r.hasOwnProperty(g) && (h = "&" + encodeURIComponent(g) + "=" + encodeURIComponent(r[g]), h.length + f.length < l && (f += h));
f = f.replace(/\x27/g, "%27");
try {
var l = f,
m;
var r = f,
n = c.i,
C = new x,
B = [C.getFullYear(), ("0" + (C.getMonth() + 1)).slice(-2), ("0" + C.getDate()).slice(-2)].join("-"),
r = r + (n + B),
n = 0;
if (0 == r.length) m = n;
else {
for (C = 0; C < r.length; C++) var E = r.charCodeAt(C),
B = n,
B = (B << 5) - B + E,
n = B &= B;
m = t.abs(n)
}
f = l + ("&na=" + m)
} catch (A) {}
return f
}
function f(c, e) {
c.j = 25 == e ? "string" == typeof b.e.b && b.e.b.slice(0, 500) || "" : b.a.h(b.e.b);
if (!b.e.a) {
var f = b.a.f();
f && (c.lp = f)
}
}
b.q = {};
b.q.b = function(c, e, k, d, l) {
b.g.b(e, d);
d = {};
d.e = c;
b.a.ay(d, k);
d.i = "XAXISSUPPLYVPAID1";
if (11 === c) {
c = [];
for (var u in da) da.hasOwnProperty(u) && c.push(u + "=" + da[u]);
d.k = c.join("&").slice(0, 300)
}
if (!(d.e in Ga)) {
d.bq = b.e.j;
d.f = Number(!Ba);
f(d, d.e);
d.o = 3;
d.t = e.startTime;
d.de = e.rand;
d.m = 0;
d.ar = "0e1cb8a-clean";
b.a.bg(d, "ai", y.z);
d.q = y.m++;
d.cb = R ? 1 : 0;
d.cu = Ca;
d.ll = b.e.y || 0;
b.a.bg(d, "lm", b.e.z);
d.ln = b.e.f ? 1 : 0;
d.r = b.b.j;
b.a.ay(d, b.focus.getQueryString());
b.g.j(e, d);
"undefined" !== typeof e && (d.d = e.moatClientLevel1 + ":" + e.moatClientLevel2 + ":" + e.moatClientLevel3 + ":" + e.moatClientLevel4, b.x && (d.qs = b.x.b), d.zGSRC = "1", d.bo = e.moatClientSlicer1, d.bd = e.moatClientSlicer2, d.zMoatOrigSlicer1 = e.zMoatOrigSlicer1, d.zMoatOrigSlicer2 = e.zMoatOrigSlicer2,
d.fd = "1");
d.ac = 1;
d.it = b.ae.n;
b.a.ad().isInApp && (d.lv = b.a.af(), b.a.ah() || b.a.ak() && (d.lx = 1));
c = h(d);
u = X;
e = b.q.c(e, c + "&cs=0", d);
if (!0 === l) return {
qs: d,
res: e
};
e.shouldSendPixel && e.querystring && (34 == d.e ? y.yh.yi(e.querystring, u, "afs.moatads.com", !0) : y.yh.yi(e.querystring, u, "afs.moatads.com", b.e.o))
}
};
b.q.d = function(c) {
if (!0 !== c.em) {
delete z[c.zr];
b.a.a(c.cc);
c.periscopeManager && c.periscopeManager.killAllPixels();
var e;
(e = I && I.parentNode) && b.ae.a(e, c.ao, c, void 0, function() {
b.c.a(c)
})
}
};
b.q.a = function(c,
e, k) {
if (!c || !0 === c.ep) return !1;
if ("undefined" !== typeof c.ao && (2 !== c.an || 1 !== e.e && 3 !== e.e) && !(e.e in Ga)) {
e.lo = c.FIND_AD_TRIES;
c.ah && (e.a = c.ah);
var d = c.ag,
l = {};
if (9 === e.e && 2 === e.q || 25 === e.e) {
for (var u in d) d.hasOwnProperty(u) && "" !== u && "undefined" !== typeof d[u] && -1 === u.indexOf("dvContains") && -1 === u.indexOf("indexOf") && -1 === u.toLowerCase().indexOf("clicktag") && (l["z" + u] = d[u]);
e.e = 25
}
0 === c.an && (e.dc = c.WMODE);
b.x && (e.qs = b.x.b);
"string" !== typeof c.ae || 0 != e.e && 25 != e.e ? e.ak = "-" : (d = b.e.g ? 700 : 1200, e.ak = c.ae.length <=
d ? c.ae : c.ae.slice(0, d));
0 !== e.e && 21 !== e.e && b.c.f(!0);
c.bi > c.bg && (c.bg = c.bi);
c.bm > c.bk && (c.bk = c.bm);
e.i = "XAXISSUPPLYVPAID1";
b.a.ay(e, b.x.p(!0));
e.bq = b.e.j;
e.g = c.aq.g++;
d = c.INITIAL_WIDTH;
e.h = c.INITIAL_HEIGHT;
e.w = d;
e.zGSRC = "1";
e.f = Number(!Ba);
f(e, e.e);
e.o = 3;
e.t = c.ao.startTime;
e.de = c.ao.rand;
e.cu = Ca;
e.m = e.m || b.a.q(c);
e.ar = "0e1cb8a-clean";
e.cb = R ? 1 : 0;
e.ll = b.e.y || 0;
b.a.bg(e, "lm", b.e.z);
e.ln = b.e.f ? 1 : 0;
e.r = b.b.j;
b.a.ay(e, b.j.c());
b.e.a && (e.gh = 1);
b.e.aa();
e.qa = b.e.ad;
e.qb = b.e.ae;
e.qi = b.e.ab;
e.qj = b.e.ac;
e.qf = b.e.ag;
e.qe = b.e.ah;
e.qh = b.e.ai;
e.qg = b.e.aj;
e.lk = c && c.elementRect && c.elementRect.top + b.e.al || "undefined";
e.lb = b.e.ak;
e.le = Ja ? 1 : 0;
b.x && void 0 !== b.x.au && (e.lf = b.x.au);
b.x && void 0 !== b.x.bc && (e.lj = b.x.bc);
b.x && void 0 !== b.x.bd && (e.li = b.x.bd);
b.x && void 0 !== b.x.al && (e.lg = b.x.al);
b.x && void 0 !== b.x.aw && (e.lh = b.x.aw);
b.n.f() && (e.mn = 1, b.n.g() && (e.mo = 1));
if (b.e.t() || b.e.v) e.gm = 1;
b.e.v && (e.fa = 1);
if (b.j && b.j.a()) e.ch = 1, e.gh = 1;
else if (b.b && b.b.b) {
e.ct = b.b.ag;
if (c && c.periscopeManager) {
d = !b.focus.pageIsVisible() &&
c && c.counters && c.counters.strictDwell && 0 == c.counters.strictDwell.tCur && 21 == e.e;
u = "0" != b.a.o();
if (c.periscopeManager.measurable || !b.e.a && d && u) e.ch = 1;
c.periscopeManager.fullyMeasurable && c.ao && 1 != c.ao.skin && (e.ga = 1)
} else e.ch = 1;
"undefined" !== typeof b.b.ah && c && c.ao && c.ao.startTime && !isNaN(c.ao.startTime) && (d = b.b.ah - c.ao.startTime, e.fg = 0 <= d ? d : 0)
} else e.ch = 0;
b.a.ay(e, b.n.u(c.zr));
b.a.ay(e, b.focus.getQueryString());
b.a.ay(e, b.w.e(c.zr));
b.a.ay(e, c.counters.getQs());
c.video.getQs(e);
b.a.bg(e, "ai", y.z);
b.a.bg(e,
"ap", c.cb);
b.a.bg(e, "ax", c.bg);
b.a.bg(e, "ay", c.bi);
b.a.bg(e, "az", c.bk);
b.a.bg(e, "ba", c.bm);
b.a.bg(e, "aw", c.bc);
b.a.bg(e, "bg", c.bd);
b.a.bg(e, "be", c.be);
b.a.bg(e, "bc", c.bw);
b.a.bg(e, "bf", c.by);
b.a.bg(e, "bh", c.bx);
b.a.bg(e, "bz", c.cu);
e.cl = t.round(100 * c.IR5.AREA / (e.w * e.h));
e.au = c.aq[2] - 1;
e.av = c.aq[3] - 1;
e.by = c.aq[23] - 1;
e.at = c.dm;
b.g.j(c.ao, e);
e.d = c.ao.moatClientLevel1 + ":" + c.ao.moatClientLevel2 + ":" + c.ao.moatClientLevel3 + ":" + c.ao.moatClientLevel4;
e.bo = c.ao.moatClientSlicer1;
e.bd = c.ao.moatClientSlicer2;
e.zMoatOrigSlicer1 =
c.ao.zMoatOrigSlicer1;
e.zMoatOrigSlicer2 = c.ao.zMoatOrigSlicer2;
e.ab = c.an;
e.ac = 1;
e.fd = "1";
e.it = b.ae.n;
c.bi = c.bg;
c.bm = c.bk;
b.t.b(c) && (e.fz = 1);
b.a.ad().isInApp && (e.lv = b.a.af(), b.a.ah() || b.a.ak() && (e.lx = 1));
u = h(e, l);
d = X;
if (k) return e;
c = b.q.c(c.ao, u + "&cs=0", e, l);
c.shouldSendPixel && c.querystring && (34 == e.e ? y.yh.yi(c.querystring, d, "afs.moatads.com", !0) : y.yh.yi(c.querystring, d, "afs.moatads.com", b.e.o))
}
};
b.q.e = function(b, e) {
b.zMoatSrcd = b.d;
b.zMoatSrcbo = b.bo;
b.zMoatSrcbp = b.bp;
b.zMoatSrcbd = b.bd;
b.d = (e.moatClientLevel1 ||
"") + ":";
b.d += (e.moatClientLevel2 || "") + ":";
b.d += (e.moatClientLevel3 || "") + ":";
b.d += e.moatClientLevel4 || "";
b.bo = e.moatClientSlicer1;
b.bd = e.moatClientSlicer2;
return b
};
b.q.f = function(c, e, f, d, l, u, r, q) {
c = "extraPx_" + c;
e[c] || (e[c] = {});
d = b.a.bw(d);
d.zMoatSrci = d.i;
d.i = f;
q && (d = b.q.e(d, q));
if (b.x.be && !e[c].timestampsReset)
for (var w = 0; w < b.x.be.length; w++) {
var t = b.x.be[w];
t.zMoatSrci = t.i;
t.i = f;
q && (t = b.q.e(t, q));
t = h(t) + "&cs=0";
y.yh.yi(t, l, u, !0)
}
e[c].timestampsReset || (e[c].timestampsReset = !0, d.am && (d.am = 0), d.an &&
(d.an = 0), d.ao && (d.ao = 0), d.aq && (d.aq = 0), d.ay && (d.ay = 0), d.ba && (d.ba = 0), d.bx && (d.bx = 0), d.cd && (d.cd = 0), d.cf && (d.cf = 0), d.db && (d.db = 0), d.dr && (d.dr = 0), d.dt && (d.dt = 0), d.es && (d.es = 0), d.ev && (d.ev = 0), d.sa && (d.sa = 0), d.sq && (d.sq = 0), d.si && (d.si = 0), d.sm && (d.sm = 0), d.mc && (d.mc = 0), d.lc && (d.lc = 0), d.pf && (d.pf = 0), d.ge && (d.ge = 0), d.gg && (d.gg = 0), d.cn && (d.cn = 0), d.gl && (d.gl = 0), d.pn && (d.pn = 0), d.fj && (d.fj = 0));
c = h(d, r);
y.yh.yi(c + "&cs=0", l, u, b.e.o)
};
b.q.c = function(b, e, f, d) {
return {
shouldSendPixel: !0,
querystring: e
}
};
b.q.g = function(b,
e) {
if (2 !== b.an || 1 !== e.e && 3 !== e.e)(new Image(1, 1)).src = ""
};
b.q.h = function(b, e) {
return h(b, e)
};
b.q.i = function(c) {
var e = {
e: 16
};
e.q = c.aq[16]++;
b.q.a(c, e)
};
b.q.j = function(c) {
var e = !1,
f = b.q.b(8, c.ao, !1, !1, !0);
if (f && f.qs && f.qs.d) {
e = f.qs.d.split(":");
e = {
viewHash: "XAXISSUPPLYVPAID1",
moatClientLevel1: e[0],
moatClientLevel2: e[1],
moatClientLevel3: e[2],
moatClientLevel4: e[3],
tagStartTime: b.e.m
};
if (c && c.ao)
for (var d in c.ao) c.ao.hasOwnProperty(d) && -1 != d.indexOf("zMoat") && (e[d] = c.ao[d]);
for (d in f) f.hasOwnProperty(d) &&
-1 != d.indexOf("zMoat") && (e[d] = f[d]);
e.moatClientSlicer1 = f.qs.bo;
e.moatClientSlicer2 = f.qs.bd
}
return e
};
b.q.k = function(c) {
var e = {
e: 8
};
e.q = c.aq[8]++;
return b.q.a(c, e, !0)
}
})(l);
(function(b) {
function h(f, c, e, h, d) {
var l = 1E4;
b.a.ad().isInApp && (l = 500);
var u = (new x).getTime();
this.tMaxContinuous = this.tContinuous = this.tLast = this.tCur = 0;
this.getMaxContinuous = function() {
return t.max(this.tContinuous, this.tMaxContinuous)
};
this.reset = function() {
this.tLast = this.tCur = 0
};
this.update = function(b) {
var c = (new x).getTime();
if (f(b)) {
b = t.min(c - u, l);
var e = typeof h;
b && 0 > b && (b = 0);
this.tCur += b;
this.tContinuous += b;
"number" === e && 0 < h ? this.tCur > h && (this.tCur = h) : "function" === e && (b = h(), "number" === typeof b && this.tCur > b && 0 < b && (this.tCur = b))
} else this.tMaxContinuous < this.tContinuous && (this.tMaxContinuous = this.tContinuous), this.tContinuous = 0;
u = c;
d && d(this.tCur)
};
this.getQs = function(b) {
b = this.query(b);
this.tLast = this.tCur;
return b
};
this.query = function(b) {
b = b || {};
this.tLast > this.tCur && (this.tLast = this.tCur);
c && e && (b[c] = this.tCur, b[e] =
this.tLast);
return b
}
}
b.c = {};
b.c.g = {};
b.c.g.a = [];
b.c.g.b = [];
b.c.h = function(f) {
try {
y.dcsx.swde.azsx("scroll", b.c.i)
} catch (c) {}
};
b.c.j = function(f, c) {
try {
var e = f.aa,
h = b.a.v(e, 5),
d = h && (6 == h.length || 1 <= h.length && "HTML" === h[h.length - 1].nodeName);
c = c || f.WINDOW || b.a.t(e);
return !(e && c && d) || e.ownerDocument && e.ownerDocument.body && !e.ownerDocument.body.contains(e) ? !1 : !0
} catch (l) {
return !1
}
};
b.c.k = function() {
var f;
return function() {
for (var c = 0, e = O.length; c < e; c++)
if (O[c] === f) return;
f = b.h.h(function() {
b.c.f();
for (var c in z)
if (z.hasOwnProperty(c)) {
var d =
z[c];
b.n.d(d);
d.video.onLoop()
}
d && d.video && d.video.started && b.w.c()
}, 200)
}
}();
b.c.f = function(f) {
var c, e;
for (e in z)
if (z.hasOwnProperty(e))
if (c = z[e], b.c.j(c, c.WINDOW)) c.counters.update(c);
else if (!f) {
var h = (new x).getTime() - c.ao.startTime;
!0 !== c.em && 5E3 > h ? b.q.d(c) : b.c.a(c)
}
};
b.c.l = function(f) {
try {
if (y) {
var c = b.a.indexOf(y.yf, f); - 1 < c && y.yf.splice(c, 1)
}
y && y.zs && y.yf && 0 === y.yf.length && (y.dcsx.aqsw(), y.zs = !1)
} catch (e) {}
};
b.c.a = function(f, c) {
var e = f.yg;
"undefined" === typeof P || P || c || (P = !0, b.c.m(f));
b.i.b.zaxs("adKilled",
f);
b.a.a(f.cc);
b.b.a(f);
f.ep = !0;
f.video.remove();
delete z[f.zr];
b.p.a(f, "remove");
b.n.t(f.zr);
f && f.aa && (f.aa[M] = !1, f.aa[F] = !1);
f.aa = null;
var h = 0;
for (prop in z) z.hasOwnProperty && z.hasOwnProperty(prop) && h++;
0 === h && (Ha(), b.x.bb(), b.h.c(window, "unload", ba, "unloadFn"), b.h.c(window, "beforeunload", ba, "beforeunloadFn"));
b.c.l(e)
};
b.c.d = function(f) {
f.eq || (f.eq = !0);
var c = {
e: 5
};
c.q = f.aq[5]++;
b.q.a(f, c)
};
b.c.n = function(f) {
if (!f || !f.aq || !f.aq[0]) return !1;
var c = {
e: 37
};
c.q = f.aq[37]++;
b.q.a(f, c)
};
b.c.o = [];
b.c.p =
function(f, c) {
var e = !1;
if (!f || !f.aq || !f.aq[29] || 3 > f.aq[29]) return !1;
for (var h = 0; h < c.length; h++) {
var d = c[h]; - 1 === b.a.indexOf(b.c.o, d) && (e = !0, b.c.o.push(d))
}
e && (e = {
e: 37
}, e.q = f.aq[37]++, b.q.a(f, e))
};
b.c.c = function(f) {
var c, e;
e = f._calcVideoBasedOnContainer ? f.aa.parentNode : f.aa;
f.elementRect ? (c = f.elementRect.right - f.elementRect.left, e = f.elementRect.bottom - f.elementRect.top) : (c = e.offsetWidth, e = e.offsetHeight);
return 3 > c || 3 > e || b.focus.pageIsPrerendered() || !f.video.isPlaying() && !f.video.pausedByMoat ? !0 : !1
};
b.c.q = function(b) {
var c = 1;
screen.deviceXDPI ? c = screen.deviceXDPI / screen.systemXDPI : b.devicePixelRatio && "undefined" !== typeof b.mozInnerScreenX && (c = b.devicePixelRatio);
return {
w: c * screen.width,
h: c * screen.height
}
};
b.c.e = function(f) {
f.counters = {};
f.counters.laxDwell = new h(function() {
return !b.focus.pageIsPrerendered()
}, "bu", "cd");
f.counters.strictDwell = new h(function(c) {
return b.focus.pageIsVisible() || c && c.video && c.video.videoIsFullscreen
}, "ah", "am");
var c = function(c) {
return c && c.video && c.video.isPlaying(c) &&
!b.focus.pageIsPrerendered()
};
f.counters.strictPlayTime = new h(function(c) {
return c && c.video && c.video.isPlaying() && (b.focus.pageIsVisible() || c.video.videoIsFullscreen)
}, "dq", "dr", function() {
return f.ao.duration
});
f.counters.laxPlayTime = new h(c, "ds", "dt", function() {
return f.ao.duration
});
f.counters.quartileDelta = new h(c, void 0, void 0);
f.counters.query = function() {
var b = {},
c;
for (c in this)
if (this.hasOwnProperty(c)) {
var d = this[c];
"function" === typeof d.query && d.query(b)
}
return b
};
f.counters.getQs = function() {
var b = {},
c;
for (c in this)
if (this.hasOwnProperty(c)) {
var d = this[c];
"function" === typeof d.getQs && d.getQs(b)
}
return b
};
f.counters.update = function(b) {
for (var c in this)
if (this.hasOwnProperty(c)) {
var d = this[c];
"function" === typeof d.update && !0 !== b.ep && d.update(b)
}
};
b.i.b.azsx("startAdTracking", b.c.h)
};
b.c.r = function() {
y.z = void 0;
y.zs = !1;
y.dcsx.wsqa("globalScrollevent" + y.dcsx.uid);
b.a.forEach(b.c.g.a, function(b) {
if (b && "function" === typeof b) try {
b()
} catch (c) {}
})
};
b.c.i = function(f) {
if (b.focus.pageIsVisible() && "undefined" ===
typeof y.z) a: {
y.z = new x - Ca,
f = void 0;
for (var c in z)
if (z.hasOwnProperty(c) && (f = z[c]) && "undefined" !== typeof f.ao) {
if (f.ce) break a;
var e = {
e: 4
};
e.q = f.aq[4]++;
e.ai = y.z;
b.q.a(f, e);
f.ce = !0
}
try {
y.dcsx.wsqa("globalScrollevent" + y.dcsx.uid), y.dcsx.swde.sxaz("scroll", {
callback: b.c.i
})
} catch (h) {}
}
};
b.c.m = function(f) {
function c(c) {
b.x.bb();
if (c && c.video && !c.video.started) return !1;
b.w && b.w.j && b.w.j(c);
var d = {
e: 21
};
d.q = c.aq[21]++;
b.q.a(c, d);
c.unloadPixelSent = !0;
b.c.a(c, !0)
}
if (f && !f.unloadPixelSent) c(f);
else if (!f)
for (var e in z) z.hasOwnProperty(e) &&
(f = z[e]) && (f.unloadPixelSent || c(f))
};
b.c.b = function(f, c) {
var e = {
e: 9
};
e.q = f.aq[9]++;
f.ci = +new x;
c && "object" === typeof c && b.a.forEach(c, function(b, c) {
e[c] = b
});
b.q.a(f, e)
}
})(l);
(function(b) {
function h(b, c) {
c[b] = c[b] || {
zs: !1,
zr: 0,
yf: [],
h: 0,
m: 0,
i: {}
}
}
b.aa = {};
b.aa.d = function(f) {
b.a.ce(h, "'" + b.e.i + "',window", f);
b.aa.e(f)
};
b.aa.e = function(f) {
try {
return f = f || b.e.c, f[b.e.i]
} catch (c) {
return null
}
};
b.aa.c = function(f) {
var c = b.aa.e();
c && (c.i[f] = !0)
};
b.aa.a = function() {
var f = b.aa.e();
f && !1 === f.zs && (f.dcsx = new b.k.a(b.e.c,
new b.i.a), f.dcsx.qaws(), f.zs = !0, b.focus.setFocusListeners())
};
b.aa.b = function(f) {
var c = b.aa.e();
c && c.yf.push(f)
}
})(l);
(function(b) {
function h(b, c) {
function e(b) {
return function() {
try {
b.sending && (t = b.sending = !1, q = 0, h())
} catch (c) {}
}
}
function h(b, d, f, g) {
if (b) {
d = {
qs: b,
jsd: d,
fld: f,
jso: g
};
if (0 === b.indexOf("e=21&")) {
l(d, !0);
return
}
r.push(d)
}
if (0 === q && 0 < r.length)
if (q++, b = r.shift(), b.sending = !0, b.uid = c.Math.floor(1E10 * c.Math.random()), b.timeoutId = setTimeout(e(b), 2E3), B[b.uid] = b, b.fld && !b.jso && t && w && w.sendMessage) try {
w.sendMessage(b)
} catch (n) {
t = !1, l(b)
} else l(b)
}
function d() {
try {
return new m(1, 1)
} catch (b) {
var c = window.document.createElement("img");
c.height = 1;
c.width = 1;
return c
}
}
function l(b, c) {
var e = d();
e.toSend = b;
c || (e.onerror = function() {
var b = this.toSend;
b.failedAttempts = "number" == typeof b.failedAttempts ? b.failedAttempts + 1 : 0;
var c = (b.jsd + "/pixel.gif?" + b.qs).length;
1 > b.failedAttempts ? l(b) : A && c > x && u(b)
}, e.onload = function() {
u(this.toSend)
});
e.src = b.jsd + "/pixel.gif?" + b.qs
}
function u(b) {
var c = b && b.uid && B && B[b.uid];
if (b && b.qs && "tracer=" == b.qs) return !1;
if (c) {
B[b.uid] = null;
try {
delete B[b.uid]
} catch (d) {}
try {
clearTimeout(c.timeoutId)
} catch (d) {}
if ("boolean" != typeof c.sending || c.sending) c.sending = !1;
else return !1
}
0 < q && q--;
h()
}
var r = [],
q = 0,
w = !1,
t = !1,
g = !1,
m, n = c[b],
C = c.Math.floor(1E10 * c.Math.random()),
B = {};
n.yh = {};
n = n.yh;
m = c.Image;
n.yi = function(b, c, d, e) {
h(b, c, d, e)
};
n.yk = function(c, d) {
w = !0;
var e = b + ".yh.",
g = {};
g.src = "https:" === d ? "https://z.moatads.com/swf/MessageSenderV4.swf" : "http://z.moatads.com/swf/MessageSenderV4.swf";
g.flashVars = "r=" + e + "zb&s=" + e + "zc&e=" +
e + "zd&td=" + c;
return g
};
n.yj = function() {
return !1 === w
};
n.xq = function() {
return C
};
n.qb = function(b, c) {
g = !0;
var d = {};
d.src = "https:" === c ? "https://z.moatads.com/swf/cap.swf" : "http://z.moatads.com/swf/cap.swf";
return d
};
n.qa = function() {
return !1 === g
};
n.zb = function() {
try {
if (!0 === w) {
var b = c.document.getElementById("moatMessageSender" + C);
b && !b.sendMessage && (b = c.document.getElementById("moatMessageSenderEmbed" + C));
b && b.sendMessage && (t = !0, w = b)
}
} catch (d) {}
};
n.zc = function(b) {
try {
u(b)
} catch (c) {}
};
n.zd = function(b) {
try {
t = !1, b && b.jsd && r.push(b), u(b)
} catch (c) {}
};
var E, A, x = 2083;
try {
E = document.createElement("div"), E.innerHTML = "\x3c!--[if IE 8]>x<![endif]--\x3e", A = "x" === E.innerHTML
} catch (y) {
A = !1
}
}
b.af = {};
b.af.a = function(f) {
try {
if (y.yh) return
} catch (c) {}
b.a.ce(h, "'" + b.e.i + "',window", f)
}
})(l);
(function(b) {
b.ag = {};
b.ag.a = function(b) {
this.label = b;
this.metrics = {};
this.set = function(b, c) {
return this.metrics[b] = c
};
this.increment = function(b, c, e) {
c = "number" !== typeof this.metrics[b] ? this.set(b, c) : this.metrics[b] += c;
"number" === typeof e &&
(c = this.cap(b, c));
return c
};
this.cap = function(b, c) {
return this.set(b, t.min(this.get(b), c))
};
this.max = function(b, c) {
return this.set(b, t.max(this.get(b), c))
};
this.get = function(b, c) {
return "undefined" === typeof this.metrics[b] ? this.set(b, "undefined" !== typeof c ? c : 0) : this.metrics[b]
}
};
b.ag.b = function(h, f) {
var c;
h[f] ? c = h[f] : (c = new b.ag.a(f), h[f] = c);
return c
}
})(l);
(function(b) {
b.s = {};
b.s.a = function(h) {
var f;
f = !1;
if (b.e.v)
if (f = b.ac.a.c, "undefined" != typeof b.ac.a.b && f) {
h = b.m.n(h.aa);
var c = h.rect;
h = b.m.l(h.visibleRect,
f.el, f.et);
f = b.m.k(h, {
left: f.vl,
right: f.vr,
top: f.vt,
bottom: f.vb
});
f = 100 * (f.right - f.left) * (f.bottom - f.top) / ((c.width || c.right - c.left) * (c.height || c.bottom - c.top))
} else f = !1;
else if (b.e.t()) {
c = b.a.bn(b.e.s(), ["$sf", "ext", "inViewPercentage"]);
f = b.a.bn(b.e.s(), ["$sf", "ext", "geom"]);
var e = c && c(),
c = f && f();
if (e && c && c.par)
if (0 === e) f = 0;
else {
e = h.aa;
f = e.getBoundingClientRect();
h = h.WINDOW || b.a.t(e);
h = b.m.j(h);
h = b.m.k(f, h);
h = b.m.l(h, c.self.l, c.self.t);
h = b.m.l(h, -1 * c.par.l, -1 * c.par.t);
var e = Number(c.win.l),
l = Number(c.win.t),
c = {
left: e,
right: Number(c.win.r),
top: l,
bottom: Number(c.win.b)
};
h = b.m.l(h, e, l);
c = b.m.k(h, c);
f = 100 * (c.right - c.left) * (c.bottom - c.top) / ((f.width || f.right - f.left) * (f.height || f.bottom - f.top))
}
else f = !1
}
c = f && !isNaN(f) && 50 <= f;
c = {
isVisible: c,
isFullyVisible: c && 98 <= f,
percv: f
};
80 <= f && (c.isDentsuVisible = !0);
return c
}
})(l);
(function(b) {
function h(b) {
if (b instanceof Array || "[object Array]" === {}.toString.call(b))
for (var c = 0, d = b.length; c < d; c++) "MOAT_API_REQUEST_EVENT" !== b[c] && f(b[c]);
else f(b)
}
function f(c) {
var d;
if ("string" === typeof c) d = {
adIds: b.u.j,
event: c,
timestamp: (new x).getTime(),
adVolume: -1
};
else {
d = {
adIds: b.u.j,
event: c.type,
timestamp: (new x).getTime(),
adVolume: -1
};
if ("number" === typeof c.adVolume && !isNaN(c.adVolume)) d.adVolume = c.adVolume;
else if ("string" === typeof c.adVolume) {
var e = parseFloat(c.adVolume, 10);
!isNaN(e) && 0 <= e && 1 >= e && (d.adVolume = e)
}
d.soundTransform = c.soundTransform
}
l(d)
}
function c(b) {
this.label = b;
this.metrics = {};
this.set = function(b, c) {
return this.metrics[b] = c
};
this.increment = function(b, c,
d) {
c = "number" !== typeof this.metrics[b] ? this.set(b, c) : this.metrics[b] += c;
"number" === typeof d && (c = this.cap(b, c));
return c
};
this.cap = function(b, c) {
return this.set(b, t.min(this.get(b), c))
};
this.max = function(b, c) {
return this.set(b, t.max(this.get(b), c))
};
this.get = function(b, c) {
return "undefined" === typeof this.metrics[b] ? this.set(b, "undefined" !== typeof c ? c : 0) : this.metrics[b]
}
}
function e(e) {
this.ad = e;
this.cbs = e.ao && e.ao.cbs;
this.state = 1;
this.volume = -1;
this.audibleMeasurable = !1;
this.cbPrefix = "xaxissupplyvpaid2626297";
this.notifyCB = "xaxissupplyvpaid2626297_notifyMoatVideo";
this.canMeasurePageLoad = b.e.a && "undefined" !== typeof window.performance;
this.receivedAdImpEvent = this.videoIsFullscreen = !1;
this.quartileDeltas = {};
this.adRemainingTimeDuration = void 0;
this.counters = {};
this.getCounter = function(b) {
var d;
this.counters[b] ? d = this.counters[b] : (d = new c(b), this.counters[b] = d);
return d
};
this.maxContinuousAudibleTime = function() {
var c = b.n.q(this.ad.zr),
c = this.getCounter(c);
return c.max("maxContinuousAudibleTime", c.get("continuousAudibleTime"))
};
this.maxContinuousFullVisAudibleTime = function() {
var c = b.n.q(this.ad.zr),
c = this.getCounter(c);
return c.max("maxContinuousFullVisAudibleTime", c.get("continuousFullyVisAudibleTime"))
};
this.tagLoadDelay = b.e.m - this.ad.ao.startTime;
this.quartiles = {};
var f = this.durationSent = !1,
h = !1,
u = void 0,
g = 0,
m = !1;
this.onInViewTimeCount = function(b, c, d, e) {
d = 0;
e = this.getCounter(e);
this.isPlayingAndAudible() && e.set("everAudible", !0);
0 < c && e.set("everVisible", !0);
if (this.isPlayingAndAudible() && e.get("audibleOnLastCheck", !1)) d =
t.max(b, 0);
else if (this.isPlayingAndAudible() || e.get("audibleOnLastCheck", !1)) d = t.max(t.round(b / 2), 0);
e.set("audibleOnLastCheck", this.isPlayingAndAudible());
e.increment("continuousAudibleTime", d);
e.get("audibleOnLastCheck", !1) ? 0 < c && e.set("everAudibleAndVisible", !0) : (e.max("maxContinuousAudibleTime", e.get("continuousAudibleTime")), e.set("continuousAudibleTime", 0));
this.ad.ao.duration && 0 < this.ad.ao.duration ? e.increment("audibleTime", d, this.ad.ao.duration) : e.increment("audibleTime", d);
this.performPoalCheck()
};
this.performPoalCheck = function() {
var c = b.n.i(this.ad.zr);
this.poalEnabled && this.disablePoalOnVis && c && c.hadVideo2SecOTS() && (this.poalEnabled = !1, 1 == this.state && this.pausedByMoat && (this.pausedByMoat = !1, this.triggerPlayerCallback(e.aa, this.cbs.resumeAd)));
this.poalEnabled && (!c.visible() && 0 == this.state && this.cbs ? (this.pausedByMoat = !0, this.triggerPlayerCallback(e.aa, this.cbs.pauseAd)) : c.visible() && 1 == this.state && this.pausedByMoat && this.cbs && (this.pausedByMoat = !1, this.triggerPlayerCallback(e.aa, this.cbs.resumeAd)))
};
this.onFullyInViewTimeCount = function(b, c, d, e) {
var f = 0;
e = this.getCounter(e);
if (this.isPlayingAndAudible() && e.get("audibleFullyVisOnLastCheck", !1)) f = b;
else if (this.isPlayingAndAudible() || e.get("audibleFullyVisOnLastCheck", !1)) f = t.round(b / 2);
e.set("audibleFullyVisOnLastCheck", this.isPlayingAndAudible());
f = t.max(t.min(f, c), 0);
e.increment("continuousFullyVisAudibleTime", f);
e.get("audibleFullyVisOnLastCheck", !1) && d || (e.max("maxContinuousFullVisAudibleTime", e.get("continuousFullyVisAudibleTime")), e.set("continuousFullyVisAudibleTime",
0));
this.ad.ao.duration && 0 < this.ad.ao.duration ? e.increment("audibleFullyVisIvt", f, this.ad.ao.duration) : e.increment("audibleFullyVisIvt", f)
};
this.isAudibleVolume = function(b) {
return .1 <= b || 0 > b
};
this.onLoop = function() {
var c = b.n.i(this.ad.zr);
c && (!this.hadVideoOTS && 5E3 <= c.getInViewTime() && (this.hadVideoOTS = !0, b.q.a(this.ad, {
e: 30,
q: 0
})), c = this.getGroupMQs(), 0 < c.length && b.c.p(this.ad, c))
};
this.checkVolume = function(c) {
if (!c) return !1;
if ("AdVolumeChange" === c.event || "AdStarted" === c.event || "AdImpression" === c.event ||
-1 != b.a.indexOf(v, c.event)) {
var d = c.soundTransform && c.soundTransform.volume;
c = c.adVolume;
var e = NaN;
"number" == typeof d && !isNaN(d) && 0 <= d ? e = "number" != typeof c || isNaN(c) || 0 > c ? d : d * c : "number" != typeof c && isNaN(c) || (e = c);
isNaN(e) || (this.volume = e);
this.audibleMeasurable = 0 <= this.volume
}
};
this.findVideoTags = function(c) {
var d = [];
c && "IFRAME" == c.nodeName ? (c = b.f.b(c)) && (d = c.body.getElementsByTagName("video")) : d = e.aa.getElementsByTagName("video");
return d
};
this.findValidTagDuration = function(c) {
var d;
b.a.forEach(c,
function(b) {
if (b && !b.paused && "number" == typeof b.duration && 0 < b.duration) return d = t.floor(1E3 * b.duration), !1
});
return d
};
this.onJsVideoStart = function(c) {
function d() {
var c;
try {
c = document.fullscreenElement || document.webkitFullscreenElement || document.webkitCurrentFullScreenElement || document.mozFullScreenElement || document.msFullscreenElement
} catch (e) {}
if (c) {
var g;
if (c == f.ad.aa || (g = b.a.v(c)) && -1 !== b.a.indexOf(g, f.ad.aa)) f.videoIsFullscreen = !0
} else f.videoIsFullscreen && (f.videoIsFullscreen = !1)
}
this.ad.localVideoTags =
this.findVideoTags(this.ad.aa);
0 == this.ad.localVideoTags.length ? this.ad.allVideoTags = e.aa.ownerDocument && e.aa.ownerDocument.getElementsByTagName("video") : (this.videoTagDuration = this.findValidTagDuration(this.ad.localVideoTags), this.ad.allVideoTags = this.ad.localVideoTags);
var f = this;
b.a.forEach(this.ad.allVideoTags, function(c) {
b.h.e(c, "webkitbeginfullscreen", function(b) {
f.videoIsFullscreen = !0
});
b.h.e(c, "webkitendfullscreen", function(b) {
f.videoIsFullscreen = !1
})
});
b.h.e(document, "fullscreenchange", d);
b.h.e(document, "webkitfullscreenchange", d);
b.h.e(document, "mozfullscreenchange", d);
b.h.e(document, "MSFullscreenChange", d);
d()
};
this.calculateDuration = function(b, c) {
var d = "number" === typeof c && !isNaN(c) && 0 < c,
e = 4 * b,
f;
if (d) {
var d = !(e < 105 * c / 100 && e > 95 * c / 100),
g = 4E3 < t.abs(e - c);
d && g && (f = e)
} else f = e;
return f || c
};
this.normalizeEventName = function(c) {
var d = c.toLowerCase();
b.a.forEach(b.u.g, function(b) {
if (b.toLowerCase() === d) return c = b, !1
});
return c
};
this.triggerPlayerCallback = function(c, d) {
var e = void 0,
f = b.a.bf(arguments).splice(2);
try {
if (!d || !c || !c[d]) return e;
e = 0 < f.length ? c[d].apply(c, f) : c[d]()
} catch (g) {}
return e
};
this.isValidAndUnmesDuration = function() {
return !h && "number" == typeof this.ad.ao.duration && 0 < this.ad.ao.duration
};
this.update = function(c) {
c && "string" == typeof c.event && (c.event = this.normalizeEventName(c.event));
this.receivedAdImpEvent || "AdImpression" != c.event || (this.receivedAdImpEvent = !0);
c && c.cbs && (this.cbs = c.cbs, c.adIds && c.adIds.flashVars && c.adIds.flashVars.zpoal && (this.poalEnabled = "1" == c.adIds.flashVars.zpoal || "2" ==
c.adIds.flashVars.zpoal, this.disablePoalOnVis = "2" == c.adIds.flashVars.zpoal));
if ("fullScreen" === c.event || "EnterFullscreen" === c.event) this.videoIsFullscreen = !0;
if ("exitFullscreen" === c.event || "ExitFullscreen" === c.event) this.videoIsFullscreen = !1;
var g;
g = "AdStarted" === c.event || "AdLoaded" === c.event || "AdRemainingTimeChange" === c.event || "AdVideoStart" === c.event || "AdImpression" === c.event;
"number" != typeof this.adRemainingTimeDuration && g && "number" === typeof c.adRemainingTime && 0 < c.adRemainingTime && (this.adRemainingTimeDuration =
2700 <= c.adRemainingTime ? t.floor(c.adRemainingTime) : 1E3 * t.floor(c.adRemainingTime));
"AdImpression" === c.event && (m = !0);
!this.started && -1 < b.a.indexOf(["AdPlaying", "AdImpression", "AdStarted"], c.event) && (c.event = "AdVideoStart");
"AdVideoStart" !== c.event && "AdStarted" !== c.event && "AdImpression" !== c.event || e.counters.quartileDelta.reset();
this.checkVolume(c);
if (!(this.started || "AdVideoStart" !== c.event && "AdImpression" !== c.event || this.started)) {
this.started = !0;
this.timeAtStartEvent = (new x).getTime();
if (b.u.j &&
!1 === b.u.j.a) this.onJsVideoStart(c);
f = !0;
this.state = 0;
b.z.b(this.ad);
this.trackVideoIframeChildren(this.ad, this.ad.aa);
b.w.c()
}
this.started && !this.reachedStart && (this.videoIsFullscreen && (this.ad.ao.initWidth = b.e.ad || 400, this.ad.ao.initHeight = b.e.ae || 400), this.reachedStart = !0);
if ("AdVideoComplete" === c.event || "AdPaused" === c.event) this.state = 1;
else if ("AdVideoStart" === c.event || "AdPlaying" === c.event || "AdImpression" === c.event) this.state = 0;
!this.ad.videoAdStartTime && this.timeAtStartEvent && (this.ad.videoAdStartTime =
this.timeAtStartEvent);
if ("AdStarted" === c.event || "AdVideoStart" === c.event)
if (this.hadFirstUpdate || (this.startEventDelay = (new x).getTime() - c.timestamp), this.canMeasurePageLoad) try {
this.tSincePageLoad = (new x).getTime() - window.top.performance.timing.navigationStart
} catch (l) {}
if (this.started && d.hasOwnProperty(c.event)) {
this.quartileDeltas[c.event] = this.ad.counters.quartileDelta.tCur;
this.ad.counters.quartileDelta.reset();
if ("AdVideoFirstQuartile" === c.event && !h) {
this.firstQuartileDuration = this.calculateDuration(this.quartileDeltas.AdVideoFirstQuartile,
this.ad.ao.duration);
if (b.u.j && !1 === b.u.j.a && (this.videoTagDuration || (g = this.findVideoTags(this.ad.aa), this.videoTagDuration = this.findValidTagDuration(g)), !h && this.videoTagDuration && 0 < this.videoTagDuration)) {
var k = (g = this.calculateDuration(.25 * this.videoTagDuration, this.ad.ao.duration)) && 0 < g && (33E3 < g && g <= this.firstQuartileDuration || 33E3 >= g);
g == this.videoTagDuration && k && (this.ad.ao.duration = g, h = f = !0)
}
this.isValidAndUnmesDuration() && this.firstQuartileDuration === this.ad.ao.duration && 0 < this.firstQuartileDuration &&
(this.ad.ao.duration = this.firstQuartileDuration, h = f = !0);
this.isValidAndUnmesDuration() && "number" == typeof this.adRemainingTimeDuration && (g = this.calculateDuration(.25 * this.adRemainingTimeDuration, this.ad.ao.duration)) && 0 < g && g == this.ad.ao.duration && (this.ad.ao.duration = t.floor(g), h = f = !0)
}
"AdVideoMidpoint" === c.event && !h && (this.midpointDuration = this.calculateDuration(this.quartileDeltas.AdVideoMidpoint, this.ad.ao.duration), 0 < this.midpointDuration || 0 < this.firstQuartileDuration) && (g = 15E3 < this.firstQuartileDuration &&
15E3 < this.midpointDuration ? t.min(this.firstQuartileDuration, this.midpointDuration) : 15E3 >= this.firstQuartileDuration || 15E3 >= this.midpointDuration ? t.max(this.firstQuartileDuration, this.midpointDuration) : 0 < this.midpointDuration ? this.midpointDuration : this.firstQuartileDuration, this.ad.ao.duration = g, h = f = !0);
this.state = 0;
var u = b.n.m(this.ad.zr);
g = !1;
k = !0;
u.strict ? g = u.strict.visible() : u.pscope ? b.b && b.b.b || b.j && b.j.a() ? g = u.pscope.visible() : k = !1 : k = !1;
u = this.isAudibleVolume(this.volume);
g = k ? g && u ? 3 : g ? 1 : u ? 2 :
0 : 4;
k = d[c.event];
"undefined" === typeof this.quartiles[k] && (this.quartiles[k] = g, k = {
e: 29
}, k.q = e.aq[29]++, b.q.a(e, k));
c.calculatedQuartileState = g
}
this.started && b.u.dispatchEvent(this, c);
this.started && "AdVideoComplete" === c.event && (this.reachedComplete = !0, b.w.c());
this.hadFirstUpdate || (hadFirstUpdate = !0);
!this.durationSent && f && h && (this.durationSent = !0, k = {
e: 9
}, k.q = e.aq[9]++, b.q.a(this.ad, k));
!this.started || this.stopped || "AdStopped" !== c.event && "AdVideoComplete" !== c.event && "AdSkipped" !== c.event || (this.stopped =
"AdSkipped" !== c.event, k = {}, c = this.stopped ? 28 : 33, k.e = c, k.q = e.aq[c]++, b.q.a(this.ad, k), "undefined" === typeof P || P || (P = !0, b.c.m()), Z())
};
this.trackVideoIframeChildren = function(c, d) {
for (var e = d.getElementsByTagName("iframe"), f, g = 0, h = e.length; g < h; g++) f = e[g], b.a.ao(f) && b.p.c(c, f)
};
this.isPlayingAndAudible = function() {
return this.isPlaying() && this.isAudible()
};
this.isPlaying = function() {
return 0 === this.state
};
this.isAudible = function() {
return this.isAudibleVolume(this.volume)
};
this.getGroupMQs = function() {
var c = [];
if (h) {
var d = b.n.i(this.ad.zr),
e = d && d.getFullInviewTimeTotal && d.getFullInviewTimeTotal(),
f = d && d.getInViewTime && d.getInViewTime(),
g = 98 * this.ad.ao.duration / 100;
if (d = d && this.getCounter(d.getLabel())) d.get("audibleFullyVisIvt") > g / 2 && c.push("hd"), d.get("audibleFullyVisIvt") > t.min(g / 2, 15E3) && c.push("hl"), d.get("audibleTime") >= g && c.push("he"), f >= g && c.push("hf"), d.get("audibleTime") >= g && f >= g && c.push("hg"), 0 == d.get("audibleTime") && f >= g && c.push("hi"), e >= g / 2 && c.push("hj"), e >= g && c.push("hm"), d.get("audibleFullyVisIvt") >=
g && c.push("hk")
}
return c
};
this.getQs = function(c) {
data = c || {};
var d = (c = b.n.i(this.ad.zr)) && this.getCounter(c.getLabel());
this.receivedAdImpEvent && (data.fc = "1");
for (var e = this.getGroupMQs(), f = 0; f < e.length; f++) data[e[f]] = 1;
h ? (data.dh = this.ad.ao.duration, data.hc = 1) : (e = this.firstQuartileDuration || this.midpointDuration, 21 == data.e && 0 < e ? (data.dh = e, data.hc = 1) : data.hc = 0);
d && (data.er = d.get("audibleTime"), data.es = d.get("audibleTimePrev"), d.set("audibleTimePrev", d.get("audibleTime")), data.eu = d.get("audibleFullyVisIvt"),
data.ev = d.get("audibleFullyVisIvtPrev"), d.set("audibleFullyVisIvtPrev", d.get("audibleFullyVisIvt")));
this.audibleMeasurable && (data.et = 1);
data.dp = this.tagLoadDelay;
this.started && (data.dz = 1);
this.stopped && (data.ea = 1);
b.a.bg(data, "du", this.startEventDelay);
this.canMeasurePageLoad && (data.eb = 1);
b.a.bg(data, "ec", this.tSincePageLoad);
"undefined" != typeof this.ad.ao.gc && "undefined" != typeof this.ad.ao.gd && "undefined" != typeof this.ad.ao.gr && "undefined" != typeof this.ad.ao.gy && (data.gc = this.ad.ao.gc, data.gd = this.ad.ao.gd,
data.gr = this.ad.ao.gr, data.gy = this.ad.ao.gy);
this.ad.ao.moatLoaderHash && this.ad.ao.moatSwfHash && (data.ed = this.ad.ao.moatLoaderHash, data.ee = this.ad.ao.moatSwfHash);
!0 === this.hadVideoOTS && (data.ek = 1);
c && c.hadVideo2SecOTS() && h && (u || (u = c && c.getInViewTime()), data.fh = u, data.fi = c.getInViewTime(), data.fj = g, g = c.getInViewTime());
m && (data.fk = 1);
this.ad.ao.initWidth && this.ad.ao.initHeight && (data.ha = this.ad.ao.initWidth, data.hb = this.ad.ao.initHeight);
for (var k in this.quartiles) this.quartiles.hasOwnProperty(k) &&
(data[k] = this.quartiles[k])
};
this.notify = function() {
var b = this.ad.aa,
c, d;
this.cbs ? (c = this.cbs.shiftVideoEvent, d = this.cbs.getQueueLength) : (c = this.cbPrefix + "_shiftVideoEvent", d = this.cbPrefix + "_getQueueLength");
for (var e = 0; b[d] && b[c] && 0 < b[d]() && 50 > e;) l(b[c]()), e++
};
this.remove = function() {
window[e.video.notifyCB] = void 0;
window.xaxissupplyvpaid2626297_moatElToTrack = void 0;
try {
delete window[e.video.notifyCB], delete window.xaxissupplyvpaid2626297_moatElToTrack
} catch (b) {}
}
}
function l(b) {
for (var c in z)
if (z.hasOwnProperty(c)) {
var d =
z[c];
b && b.adIds && d.ao.startTime === b.adIds.startTime && d.video.update(b)
}
}
b.u = {};
b.u.g = "AdStarted AdLoaded AdStopped AdSkipped AdRemainingTimeChange AdVolumeChange AdImpression AdVideoStart AdVideoFirstQuartile AdVideoMidpoint AdVideoThirdQuartile AdVideoComplete AdPaused AdPlaying".split(" ");
var d = {
AdVideoStart: "ef",
AdVideoFirstQuartile: "eg",
AdVideoMidpoint: "eh",
AdVideoThirdQuartile: "ei",
AdVideoComplete: "ej"
};
b.u.h = d;
var v = ["AdVideoStart", "AdVideoFirstQuartile", "AdVideoMidpoint", "AdVideoThirdQuartile",
"AdVideoComplete"
];
b.u.b = 2E3;
b.u.a = 2E3;
b.u.i = 2E3;
b.u.c = 500;
b.u.k = function(c) {
var d = {
complete: "AdVideoComplete",
firstquartile: "AdVideoFirstQuartile",
impression: "AdImpression",
loaded: "AdLoaded",
midpoint: "AdVideoMidpoint",
pause: "AdPaused",
skip: "AdSkipped",
start: "AdVideoStart",
thirdquartile: "AdVideoThirdQuartile",
volumeChange: "AdVolumeChange"
},
e;
for (e in google.ima.AdEvent.Type) c.adsManager.addEventListener(google.ima.AdEvent.Type[e], function(e) {
if (!b.u.j.moatClientLevel3) {
var f = e && e.getAd && e.getAd(),
h = z[b.u.j.adNum];
f && f.getAdId && (c.currentAd = f, b.u.j = h.ao = b.u.l(c, !0), b.x.ax(b.u.j), b.q.b(17, b.u.j))
}
b.u.d.sendEvent({
type: d[e.type] || e.type,
adVolume: c.adsManager.getVolume()
})
})
};
b.u.m = function(b) {
return !1
};
b.u.f = function(c) {
if (c.ao.isUsingVideoJsApi) b.u.d.sendEvent = h, b.u.d.imaSDK ? b.u.d.sendEvent("MOAT_API_REQUEST_EVENT") : b.u.d.dispatchEvent("MOAT_API_REQUEST_EVENT");
else {
window[c.video.notifyCB] = function() {
try {
c.video.notify()
} catch (b) {}
};
var d = c.aa,
e;
e = c.ao.cbs ? c.ao.cbs.registerCallback : c.video.cbPrefix +
"_registerCallback";
d[e] && d[e](c.video.notifyCB);
c.video.notify()
}
};
b.u.e = function(b, c) {
b.video = new e(b)
};
var u = [];
b.u.dispatchEvent = function(b, c) {
for (var d = 0, e = u.length; d < e; d++) u[d].call(null, b, c)
};
b.u.n = function(b) {
u.push(b)
}
})(l);
(function(b) {
b.t = {};
b.t.c = 242500;
b.t.d = 1;
b.t.e = function(h) {
return b.e.a || b.j && b.j.a && b.j.a() || b.b && b.b.b && h && h.periscopeManager && h.periscopeManager.fullyMeasurable
};
b.t.f = function(h) {
return b.a.bu(h) > b.t.c
};
b.t.g = function(b) {
return b && b.ao ? "slave" == b.ao.moatClientAT ? !0 :
!1 : !1
};
b.t.h = function(b) {
return b && b.ao ? "cpc" == b.ao.moatClientBT ? !0 : !1 : !1
};
b.t.i = function(b) {
return b && b.ao ? "cpcv" == b.ao.moatClientBT ? !0 : !1 : !1
};
b.t.j = function(b) {
return b && b.ao ? "flatrate" == b.ao.moatClientBT ? !0 : !1 : !1
};
b.t.k = function(b) {
return b && b.ao ? "skin" == b.ao.moatClientAT || "hpto" == b.ao.moatClientAT ? !0 : !1 : !1
};
b.t.b = function(h) {
if (!h || !h.aa) return !1;
if ("undefined" != typeof h.er) return h.er;
h.video ? !b.t.e(h) || b.t.i(h) && !h.video.reachedComplete || (h.er = !0) : b.t.g(h) || b.t.h(h) || b.t.j(h) ? h.er = !1 : b.t.k(h) ||
b.t.f(h) ? h.er = !0 : b.t.e(h) && b.n.s(h, b.t.d, !0) && (h.er = !0);
return h.er || !1
};
b.t.a = function(h) {
if (!h || h.SENT_FIT && h.et || !b.t.e(h)) return !1;
var f, c, e = b.n.q(h.zr);
h.SENT_FIT || (f = b.n.j(h, e, "hadFIT"));
h.et || (c = b.n.j(h, e, "hadFullOTS"));
if (f || c) b.c.n(h), h.SENT_FIT = h.SENT_FIT || !!f, h.et = h.et || !!c;
return f || c
}
})(l);
(function(b) {
b.ab = {};
b.ab.b = "1.1";
b.ab.prefix = "MSFAPI";
b.ab.c = {};
b.ab.d = {};
b.ab.e = t.floor(t.random() * t.pow(10, 12));
b.ab.f = /([a-z]+)#([a-z0-9.-]+)#([0-9]+)#([a-z]+)#([0-9]+)#(.+)/i;
b.ab.g = /@([a-z0-9]+)@@(.*)/i;
b.ab.a = function(h) {
b.ab.h(window)
};
b.ab.h = function(h) {
!h || h && h["Moat#PML#" + b.ab.e] || (h["Moat#PML#" + b.ab.e] = !0, b.h.e(h, "message", b.ab.i))
};
b.ab.j = function(h) {
h && h && h["Moat#PML#" + b.ab.e] && (h["Moat#PML#" + b.ab.e] = !1, b.h.c(h, "message", b.ab.i))
};
b.ab.k = function(h) {
return b.ab.prefix + "#" + h + "#"
};
b.ab.l = function(h) {
var f = h.match(b.ab.f);
h = !1;
f && 7 == f.length && (h = {
prefix: f[1],
version: f[2],
uid: f[3],
type: f[4],
request: f[5],
data: f[6]
}, (f = h.data.match(b.ab.g)) && 3 == f.length && (h.cmd = f[1], h.arg = f[2]));
return h
};
b.ab.i =
function(h) {
if (!(h && h.origin && h.data && "string" === typeof h.data)) return !1;
if ((msgData = b.ab.l(h.data)) && (!msgData || msgData.uid != b.ab.e.toString()) && msgData.version == b.ab.b && (h.msgData = msgData, msgData.request in b.ab.d && (h.triggerCallback = function() {
b.ab.d[msgData.request] && (b.ab.d[msgData.request](h), b.ab.d[msgData.request] = null, delete b.ab.d[msgData.request])
}), b.ab.c[msgData.type]))
for (var f = 0, c = b.ab.c[msgData.type].length; f < c; f++) b.ab.c[msgData.type][f](h)
};
b.ab.m = function(h, f) {
b.ab.c[h] = [f]
};
b.ab.n =
function(h, f, c, e) {
"object" == typeof f && (f = b.a.ar(f));
e = e || t.floor(1E10 * t.random());
"function" == typeof c && (b.ab.d[e] = c);
h = b.ab.k(b.ab.b) + b.ab.e + "#" + h + "#" + e + "#" + f;
return {
request: e,
msg: h
}
};
b.ab.o = function(h, f, c, e, k) {
"object" == typeof c && (c = b.a.ar(c));
return b.ab.n(h, "@" + f + "@@" + c, e, k)
};
b.ab.p = function(h, f, c) {
try {
if (!h || !h || !h.source) return !1;
h.source.postMessage(b.ab.n(h.msgData.type, f, c, h.msgData.request).msg, "*")
} catch (e) {
return !1
}
return !0
};
b.ab.q = function(h, f, c) {
try {
var e = b.f.h(f || window.top);
if (!e) return b.h.d(function() {
b.ab.q(h,
f, c)
}, 200);
for (var k = 0; k < e.length; k++) c && e[k] == window || e[k].postMessage(h, "*")
} catch (d) {}
}
})(l);
(function(b) {
b.ac = {};
b.ac.b = {};
b.ac.b.a = "CF";
b.ac.b.b = "CNF";
b.ac.b.c = "CNS";
b.ac.a = {};
b.ac.a.d = !1;
b.ac.a.e = [];
b.ac.a.a = function() {
if (!b.ac.a.d && !b.e.a) {
var c = b.ab.n("moatframe", "check", function(c) {
if ((c = b.a.as(c.msgData.data)) && c.available && !b.ac.a.d) {
b.e.v = !0;
b.ac.a.d = !0;
c = "MoatFrame#perc#" + (new x).getTime();
var f = "MoatFrame#geom#" + (new x).getTime();
b.h.b(b.ac.a.f, null, 200, c);
b.h.b(b.ac.a.g, null, 200, f);
b.ac.a.e.push(c);
b.ac.a.e.push(f)
}
});
b.ab.q(c.msg, !1, !0)
}
};
var h = !1;
b.ac.a.f = function() {
if (!h) {
h = !0;
var c = b.ab.n("moatframe", "inViewPercentage", function(c) {
h = !1;
b.ac.c(c.msgData.data) || (c = parseFloat(c.msgData.data), isNaN(c) || (b.ac.a.b = c))
});
b.ab.q(c.msg, !1, !0)
}
};
var f = !1;
b.ac.a.g = function() {
if (!f) {
f = !0;
var c = b.ab.n("moatframe", "geom", function(c) {
f = !1;
b.ac.c(c.msgData.data) || (b.ac.a.c = b.a.as(c.msgData.data))
});
b.ab.q(c.msg, !1, !0)
}
};
b.ac.d = function() {
b.ab.m("moatframe", b.ac.e);
b.ab.q(b.ab.n("moatframe",
"ping").msg, !1, !0)
};
b.ac.f = function() {
return b.e.a
};
b.ac.c = function(c) {
var e = !1;
b.a.forEach(b.ac.b, function(b) {
if (b == c) return e = !0, !1
});
return e
};
b.ac.e = function(c) {
if (c.triggerCallback) c.triggerCallback(c);
else if (b.ac.g[c.msgData.data]) b.ac.g[c.msgData.data](c);
else b.ac.c(c.msgData.data) || b.ab.p(c, b.ac.b.b)
};
b.ac.g = {};
b.ac.g.check = function(c) {
var e = {
available: b.ac.h(window, c.source) && b.ac.f()
};
b.ab.p(c, e)
};
b.ac.i = {};
b.ac.h = function(c, e, f) {
var d;
if ((d = b.ac.i[f]) && "boolean" == typeof d.isWithinReach)
if (!d.win ||
b.f.g(d.win)) d = !1;
else return d.isWithinReach;
d ? d.isWithinReach = b.f.l(c, e) : (d = {
win: c,
isWithinReach: b.f.l(c, e)
}, b.ac.i[f] = d);
return d.isWithinReach
};
b.ac.g.inViewPercentage = function(c) {
if (b.ac.h(window, c.source, c.msgData.uid) && b.ac.f()) {
var e = c.source && c.source.parent && b.f.c(c.source.parent.document, c.source);
if (e && (e = b.m.n(e))) {
b.ab.p(c, e.percv);
return
}
b.ab.p(c, b.ac.b.a)
} else b.ab.p(c, b.ac.b.c)
};
b.ac.g.ping = function(c) {
!b.e.a && b.e.am() && b.ac.a.a()
};
b.ac.g.geom = function(c) {
if (b.ac.h(window, c.source,
c.msgData.uid) && b.ac.f()) {
var e = c.source && c.source.parent && b.f.c(c.source.parent.document, c.source);
if (e && (e = b.m.n(e)) && e.visibleRect && e.rect) {
b.ab.p(c, {
w: e.cumulRect.width,
h: e.cumulRect.height,
vl: e.visibleRect.left,
vt: e.visibleRect.top,
vr: e.visibleRect.right,
vb: e.visibleRect.bottom,
el: e.cumulRect.left,
et: e.cumulRect.top,
er: e.cumulRect.right,
eb: e.cumulRect.bottom
});
return
}
b.ab.p(c, b.ac.b.a)
} else b.ab.p(c, b.ac.b.c)
}
})(l);
var Ia = l.e.p,
Ba = l.e.a,
R = l.a.x(),
Ca = l.e.m,
K = l.e.c;
if (l.a.al() || l.a.am()) return !1;
var Ja = l.focus.pageIsVisible();
l.aa.d(K);
var y = l.aa.e(K);
window[l.e.i] = y;
var F = "moatFoundXAXISSUPPLYVPAID1",
M = "__moat__XAXISSUPPLYVPAID1";
l.ab.h(window);
l.a.ad().isInApp || l.ac.d();
var I = l.a.av();
l.e.protocol = l.a.ba(I);
l.e.w && (l.e.w = l.e.w.replace(/^js/i, "z"));
"string" === typeof l.e.protocol && (X = ("https:" === l.e.protocol ? l.e.protocol : "http:") + "//video.moatads.com");
X || (X = "//video.moatads.com");
l.af.a(K);
var Da = l.a.av(),
Fa = !1,
T;
l.h.a(function() {
if (Fa || Da && Da.parentNode && "HEAD" !== Da.parentNode.nodeName) return l.a.bc("afs.moatads.com"), !0;
if (document.body && !Fa) return T = T || document.createElement("div"), T.style.position = "absolute", T.style.overflow = "hidden", document.body.insertBefore(T, document.body.childNodes[0] || null), Fa = !0, document.body.removeChild && document.body.removeChild(T), l.a.bc("afs.moatads.com"), !0
}, 500, 15);
var ba = function h() {
l.h.c(window, "unload", h, "unloadFn");
l.h.c(window, "beforeunload", h, "beforeunloadFn");
P || (l.c.m(), P = !0)
};
l.a.r(Ba ? K.location.href : K.document.referrer) || l.a.r(window.location.href);
if (!I) return !1;
l.l =
I;
l.a.bb(I);
(function(h) {
function f(c) {
return c = 1E3 > parseFloat(c, 10) ? 1E3 * parseFloat(c, 10) : parseFloat(c, 10)
}
function c(c) {
var d;
if (c.imaSDK) d = e(c);
else {
var h = c && c.adData && c.adData.ids;
d = {};
var k = f(c.adData.duration),
t = /^level([0-9]+)$/,
g = /^slicer([0-9]+)$/,
m, n;
for (n in h)
if (h.hasOwnProperty && h.hasOwnProperty(n))
if (m = n.match(t)) d["rawMoatClientLevel" + m[1]] = h[n];
else if (m = n.match(g)) d["rawMoatClientSlicer" + m[1]] = h[n];
d.moatClientLevel1 = h.level1;
d.moatClientLevel2 = h.level2;
d.moatClientLevel3 = h.level3;
d.moatClientLevel4 = h.level4;
d.moatClientSlicer1 = h.slicer1;
d.moatClientSlicer2 = h.slicer2;
d.duration = k;
d.startTime = l.e.m;
c.adData.hasOwnProperty("fullScreen") ? d.fullScreen = Number(c.adData.fullScreen) : l.a.ad().isInApp && (c = l.a.ae(), (h = document && document.getElementById("mianahwvc")) && c.w === h.offsetWidth && c.h === h.offsetHeight && (d.fullScreen = !0), h && (10 >= h.offsetWidth || 10 >= h.offsetHeight) && (h.style.height = "176px", h.style.width = "320px"));
l.g.b(d);
d && (d.zMoatOrigSlicer1 = d.moatClientSlicer1 || "N/A", d.zMoatOrigSlicer2 =
d.moatClientSlicer2 || "N/A");
d = l.g.c(d);
d = l.g.g(d);
l.g.l && l.g.l(d)
}
return d
}
function e(c, d) {
var e = {},
h = c.adsManager && c.adsManager.getCurrentAd && c.adsManager.getCurrentAd() || !1,
k, g, m;
d && (h = c.currentAd);
if (!h) return l.g.b(e), e;
k = h.getDuration();
m = h.getAdId();
(g = h.getWrapperAdSystems()) && g.length && 0 < g.length && "GDFP" === g[0] && (h = h.getWrapperAdIds(), m = h[0]);
e.moatClientLevel1 = "-";
e.moatClientLevel2 = "-";
e.moatClientLevel3 = m || "-";
e.moatClientLevel4 = "-";
e.moatClientSlicer1 = c.ids.slicer1 || "-";
e.moatClientSlicer2 =
c.ids.slicer2 || "-";
e.duration = f(k);
e.startTime = l.e.m;
l.g.b(e);
e && (e.zMoatOrigSlicer1 = e.moatClientSlicer1 || "N/A", e.zMoatOrigSlicer2 = e.moatClientSlicer2 || "N/A");
return e = l.g.c(e)
}
function k(c, d) {
var e, f, h;
if (d) {
c && c.moatCbs && window[c.moatCbs] ? (f = window[c.moatCbs], e = window[f.moatElToTrack]) : e = window.xaxissupplyvpaid2626297_moatElToTrack;
if (!e) return !1;
if (f)
if (f.getMoatIds && e[f.getMoatIds]) h = e[f.getMoatIds](), h.cbs = f;
else return !1;
else if (e.xaxissupplyvpaid2626297_getMoatIds) h = e.xaxissupplyvpaid2626297_getMoatIds();
else return !1;
h.isUsingVideoJsApi = !1;
h.isFlashVideo = !0
} else if (h = c.adData.ids, e = c.adData.ids.moateltotrack, h.cbs = {
pauseAd: h.cbPrefix + "_pauseAd",
resumeAd: h.cbPrefix + "_resumeAd"
}, h.isUsingVideoJsApi = !0, h.isFlashVideo = !0, !e) return !1;
l.g.b(h);
l.g.f(h);
h = l.g.g(h);
l.g.l && l.g.l(h);
l.u.j = h;
l.x.ay(h);
(h.usingWrapper || h.usingMoatWrapperSwf) && l.q.b(17, h);
l.z.a(e, !1, !1, !1, h);
return !0
}
ca = y.h;
y.h++;
y.i[ca] = !1;
l.c.k();
l.h.e(window, "unload", ba, "unloadFn");
l.h.e(window, "beforeunload", ba, "beforeunloadFn");
l.h.h(l.p.b,
100);
l.a.k() && l.h.d(Z, 3E5);
"undefined" === typeof h && (h = l.g.d(I));
"undefined" === typeof h && (h = {});
l.h.d(function() {
!1 === y.i[ca] && (l.q.b(11, h), Z())
}, 1E4);
l.u.l = e;
l.u.n(function(c, d) {
"AdVideoComplete" == d.event && 3 === d.calculatedQuartileState && (c.ad.reachedAvoc = !0, l.w.c())
});
l.u.d = function(c) {
if (I) {
var d = I.src.match(/#(_moatTracker\d+|_moatApi\d+)/);
if (d && d[1]) {
var e = c[d[1]];
if (e) return c[d[1]] = !1, e
}
}
}(window);
if (l.u.d)
if (l.u.d.adData && l.u.d.adData.ids && l.u.d.adData.ids.usingMoatWrapperSwf) k(l.u.d, !1);
else if (l.u.d.adData &&
l.u.d.adData.ids && l.u.d.adData.ids.usingMoatAnalyticsSwf) k(l.u.d, !1);
else {
var d = c(l.u.d);
d.isUsingVideoJsApi = !0;
d.isFlashVideo = !1;
l.u.j = d;
l.u.d.imaSDK && l.u.k(l.u.d);
l.x.ay(d);
l.u && l.u.d && l.u.d.imaSDK ? l.u.j && l.u.j.moatClientLevel3 && l.q.b(17, d) : l.q.b(17, d);
var t = window.xaxissupplyvpaid2626297_moatElToTrack;
t ? (l.z.a(t, !1, !1, !1, d), window.xaxissupplyvpaid2626297_moatElToTrack = void 0) : (t = l.u.m(I.parentNode)) ? l.z.a(t, !1, !1, !1, d) : l.z.a(I.parentNode, !1, !1, !1, d)
} else if (h.moatCbs) {
if (!k(h, !0)) return !1
} else if (window.xaxissupplyvpaid2626297_moatElToTrack &&
!k(h, !0)) return !1
})()
})(Date, Math)
} catch (x) {
var ct = (new Date).getTime();
window["Moat#ETS"] || (window["Moat#ETS"] = ct);
window["Moat#EMC"] || (window["Moat#EMC"] = 0);
var et = ct - window["Moat#ETS"],
hourElapsed = 36E5 <= et,
msg = x.name + " in closure (global): " + x.message + ", stack=" + x.stack;
if (!hourElapsed && 10 > window["Moat#EMC"]) {
window["Moat#EMC"]++;
try {
var pixelDomain = "video.moatads.com",
pxSrc = "//" + pixelDomain + "/pixel.gif?e=24&d=data%3Adata%3Adata%3Adata&i=" + escape("undefined" === typeof AD_VIEW_HASH ? "XAXISSUPPLYVPAID1" :
AD_VIEW_HASH) + "&ac=1&k=" + escape(msg) + "&ar=" + escape("0e1cb8a-clean") + "&j=" + escape(document.referrer) + "&cs=" + (new Date).getTime(),
px = new Image(1, 1);
px.src = pxSrc
} catch (t) {}
} else if (hourElapsed) {
window["Moat#EMC"] = 1;
window["Moat#ETS"] = ct;
try {
pixelDomain = "video.moatads.com", pxSrc = "//" + pixelDomain + "/pixel.gif?e=24&d=data%3Adata%3Adata%3Adata&i=" + escape("undefined" === typeof AD_VIEW_HASH ? "XAXISSUPPLYVPAID1" : AD_VIEW_HASH) + "&ac=1&k=" + escape(msg) + "&ar=" + escape("0e1cb8a-clean") + "&j=" + escape(document.referrer) +
"&cs=" + (new Date).getTime(), px = new Image(1, 1), px.src = pxSrc
} catch (t) {}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment