var __IntegralASDiagnosticCall = (function() {
try {
var alreadySent = {};
return function(code, err, config) {
try {
if (!__IASScope.isDomless) {
try {
__IASScope.postMessage(
{
code,
name: 'jsdiag',
origin: 'ias',
},
'*'
);
} catch (_) {}
}
var gen = function(code, err, config) {
var url = '//diag.adsafeprotected.com/js?';
try {
var errMsg = err && err.message ? encodeURIComponent(err.message.replace(/ /g, '-')).substring(0, 200) : '';
url += 'code:fwjs-diag-' + code;
url += '&err:' + errMsg;
url += '&codeanderr:' + code + '_' + errMsg;
if (config) {
url += '&version:' + config.version || '';
url += '&server:' + config.mn || '';
url += '®ion:' + config.region || '';
url += '&mode:' + config.mode || '';
url += '&forceAppend:' + config.forceAppend || '';
url += '&asid:' + config.asid || '';
url += '&anId:' + config.anId || '';
url += '&advEntityId:' + config.advEntityId || '';
url += '&pubEntityId:' + config.pubEntityId || '';
url += '&mobOrTab:' + config.mobOrTab || '';
url += '&app:' + config.app || '';
url += '&mobAppWebview:' + config.mobAppWebview || '';
}
url += '&domless:' + __IASScope.isDomless;
} catch (e) {
url += '&diagx:' + (e && e.message ? e.message.toString().replace(/ /g, '-') : '');
}
return url;
};
var send = function(url) {
if (__IASScope.isDomless && __IASOmidVerificationClient && __IASOmidVerificationClient.sendUrl) {
__IASOmidVerificationClient.sendUrl(url);
} else {
var img = new Image();
img.src = url;
}
};
if (!alreadySent[code] && Math.random() < 0.01) {
alreadySent[code] = true;
send(gen(code, err, config));
}
} catch (e) {}
};
} catch (e) {
return function() {};
}
})();
try {
var __IntegralASConfig = {
jsDoSplit: false,
debug: "false",
jsDiag: 'true',
version: '19.8.557',
exchList: {'e1':'nqzryq','e2':'tbbtyrnqf.t.qbhoyrpyvpx','e3':'ehovpbacebwrpg','e4':'chozngvp','e5':'bcrak','e6':'nqoevgr.pbz','e7':'tynz.pbz','e8':'lvryqznantre.pbz','e9':'yvwvg','e10':'nqakf','p11':'ghea.pbz','p12':'zngugnt','p13':'vaivgrzrqvn','p14':'qngnkh','n15':'zrqvn6qrterrf','n16':'dhnagfreir','n17':'esvuho.arg','a18':'napubeserr','a19':'eff2frnepu','a20':'mgfgngvp.pbz','n21':'ovq.npr.nqiregvfvat','e22':'wnfba','v23':'fcbgkpqa','v24':'ogeyy','v25':'yvirenvy','v26':'nqncgi','v27':'nqnc.gi','n29':'qbzqrk.pbz','n30':'ernyih.arg','d31':'cvengronl','d32':'cebklonl','d33':'onlcebkl','d34':'cvengrcebkl','d35':'cebklcvengr','d36':'onlcvengr','n37':'tjnyyrg','p39':'j55p.arg','p40':'c0l.pa','p41':'vcvalbh.pbz','p42':'c0lwferaqre'},
sp_cdnDomain: 'cdn.adsafeprotected.com',
sp_cdnScripts: {xsca: "static.adsafeprotected.com/xsca.17.4.85.js", sca: "static.adsafeprotected.com/sca.17.6.4.js", main: "static.adsafeprotected.com/main.19.8.557.js"},
protocol: 'https',
jsref: "https:\/\/74dd9869f3f78da8800b09614803efba.safeframe.googlesyndication.com\/",
asid: "578bf03d-bd65-11ef-80e5-6a655799a31b",
allowViewability: "true",
jsFeatures: "viewabilityready,rattie,exch,usedtdomain,resolution,usetpl,idMap,offscreen,everySecond:1,slid,fm2:1,largeAd,chromeNativeIO,ios,ancestor,avmm,avgrn,swapids,pIntervals:10,usesca,bustediframe,impFailSafe,yieldmo,sfdetect,pmdetect,novidnodeerr:5,viewabilityOptimization,usehaps,customMetric,sizmek,celtra,groupmCM,avidPropertiesInImpression,abcAudit,mrcAudit:1,bbs,bas,spg,exitOASRSEarly:1,encodeInvalidUrlChars,recoverOmidLostTime,forceKeepGoogleAdNode",
minimizeCalls: "false",
adWidth: "300",
adHeight: "250",
forceAppend: "false",
forceNoIframe: false,
sp_imp_maxLength: 10000,
sp_imp_jsInfo_minLength: 200,
_onInViewMRC15: __IntegralASConfig && __IntegralASConfig.onInViewMRC15,
_onInViewMRC: __IntegralASConfig && __IntegralASConfig.onInViewMRC,
_onMeasurable: __IntegralASConfig && __IntegralASConfig.onMeasurable,
_onAPIResult: __IntegralASConfig && __IntegralASConfig.onAPIResult,
_onInViewFull: __IntegralASConfig && __IntegralASConfig.onInViewFull,
_onSuspicious: __IntegralASConfig && __IntegralASConfig.onSuspicious,
_onInViewMRC5: __IntegralASConfig && __IntegralASConfig.onInViewMRC5,
reqquery: "",
mode: "rjss",
requrl: "",
dtBaseURL: "https:\/\/dt.adsafeprotected.com\/dt?advEntityId=2101562",
adsafeSrc: "https:\/\/fw.adsafeprotected.com\/rfw\/track.adform.net\/2101562\/83263151\/adfscript\/?bn=77253374&ias_dspID=3&ias_campId=1019205106&ias_pubId=pub-1601477034266482&ias_chanId=1&ias_placementId=21876246222&bidurl=https:\/\/randomnerdtutorials.com\/raspberry-pi-pico-web-server-micropython\/&ias_dealId=&ias_xappb=&adsafe_par&ias_impId=v4~~ABAjH0iVJ_WWcbTuPclU2_420oqN",
tpiLookupURL: "",
getTpl: "false",
use100v: false,
useBapiCallback: "",
useViewabilityNotification: "",
scriptUrl: "https:\/\/fw.adsafeprotected.com\/rjss\/track.adform.net\/2101562\/83263151\/adfscript\/?bn=77253374&ias_dspID=3&ias_campId=1019205106&ias_pubId=pub-160147703",
accountForSadImps: '',
fwMonitoring: 'false',
mn: "jsserver-primary-d476b99d6-9fjpk",
mobOrTab: false,
app: false,
mobAppWebview: false,
mobFwUrl: "https:\/\/mobile.adsafeprotected.com\/internal\/blocking\/app\/initial\/2101562\/83263151?redirectUrl=https%3A%2F%2Ftrack.adform.net%2Fadfscript%2F%3Fbn%3D77253374%26ias_xappb%3D&bidurl=https%3A%2F%2Frandomnerdtutorials.com%2Fraspberry-pi-pico-web-server-micropython%2F&ias_impId=v4~~ABAjH0iVJ_WWcbTuPclU2_420oqN&ias_pubId=pub-1601477034266482&ias_placementId=21876246222&ias_chanId=1&ias_dspId=3&ias_dealId=&ias_campId=1019205106&adsafe_par=",
anId: '',
advEntityId: '2101562',
pubEntityId: '83263151',
videoId: '',
rts: {},
customViewability: [{"id":"qktrf1","tiv":2,"minunit":2,"thresholds":[{"piv":50,"lb":0}],"mediaTypes":["display"],"deviceGroups":["desktop","mobile"],"distributionChannels":["web","app"]},{"id":"qktrf2","tiv":3,"sound":"any","minunit":3,"thresholds":[{"piv":50,"lb":0}],"mediaTypes":["video"],"deviceGroups":["desktop","mobile"],"distributionChannels":["web","app"]},{"id":"rHRbA1","tiv":0,"minunit":0,"thresholds":[{"piv":0,"lb":0}],"mediaTypes":["display"],"deviceGroups":["desktop","mobile"],"distributionChannels":["web","app"]},{"id":"rHRbA2","tiv":"15|50%","sound":"any","qiv":[2],"minunit":0,"thresholds":[{"piv":50,"lb":0}],"mediaTypes":["video"],"deviceGroups":["desktop","mobile"],"distributionChannels":["web","app"]},{"id":"kfMms1","tiv":300,"minunit":1,"thresholds":[{"piv":100,"lb":0}],"mediaTypes":["display"],"deviceGroups":["desktop","mobile"],"distributionChannels":["web","app"]},{"id":"kfMms2","qiv":[4],"sound":"any","minunit":1,"thresholds":[{"piv":50,"lb":0}],"mediaTypes":["video"],"deviceGroups":["desktop","mobile"],"distributionChannels":["web","app"]}],
serverSideAppDetection: [],
groupm_native_publisher: false,
integration: null,
staticServer: '\/\/static.adsafeprotected.com\/',
passback: '',
iasProxyPartnerDomain: '',
region: 'ie'
};
try {
__IASScope = typeof window !== "undefined" ? window : this;
__IntegralASConfig.isResolved = !!__IntegralASConfig.jsFeatures;
__IntegralASConfig.staticMode = !__IntegralASConfig.isResolved;
__IntegralASConfig.birthdate = new Date().getTime();
__IntegralASConfig.perfBirth = (typeof __IASScope.performance !== "undefined" && typeof __IASScope.performance.now === 'function') ? __IASScope.performance.now() : null;
;(function(omidGlobal, factory, exports) {
// CommonJS support
if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {
factory(omidGlobal, exports);
// If neither AMD nor CommonJS are used, export to a versioned name in the
// global context.
} else {
var exports = {};
var versions = ['1.4.9-iab4257'];
var additionalVersionString = '';
if (!!additionalVersionString) {
versions.push(additionalVersionString);
}
factory(omidGlobal, exports);
function deepFreeze(object) {
for (var key in object) {
if (object.hasOwnProperty(key)) {
object[key] = deepFreeze(object[key]);
}
}
return Object.freeze(object);
}
// Inject and freeze the exported components of omid.
for (var key in exports) {
if (exports.hasOwnProperty(key)) {
if (Object.getOwnPropertyDescriptor(omidGlobal, key) == null) {
// Define the top level property in the global scope
Object.defineProperty(omidGlobal, key, {
// value: {}, Removed trailing comma for build
value: {}
});
}
versions.forEach(function(version) {
if (Object.getOwnPropertyDescriptor(omidGlobal[key], version) == null) {
var frozenObject = deepFreeze(exports[key]);
// Define the object exports keyed-off versions
Object.defineProperty(omidGlobal[key], version, {
get: function () {
return frozenObject;
},
// enumerable: true, Removed trailing comma for build
enumerable: true
});
}
});
}
}
}
}(typeof global === 'undefined' ? this : global, function(omidGlobal, omidExports) {
var $jscomp = $jscomp || {};
$jscomp.scope = {};
$jscomp.createTemplateTagFirstArg = function(a) {
return a.raw = a;
};
$jscomp.createTemplateTagFirstArgWithRaw = function(a, b) {
a.raw = b;
return a;
};
$jscomp.arrayIteratorImpl = function(a) {
var b = 0;
return function() {
return b < a.length ? {done:!1, value:a[b++],} : {done:!0};
};
};
$jscomp.arrayIterator = function(a) {
return {next:$jscomp.arrayIteratorImpl(a)};
};
$jscomp.makeIterator = function(a) {
var b = "undefined" != typeof Symbol && Symbol.iterator && a[Symbol.iterator];
if (b) {
return b.call(a);
}
if ("number" == typeof a.length) {
return $jscomp.arrayIterator(a);
}
throw Error(String(a) + " is not an iterable or ArrayLike");
};
$jscomp.arrayFromIterator = function(a) {
for (var b, c = []; !(b = a.next()).done;) {
c.push(b.value);
}
return c;
};
$jscomp.arrayFromIterable = function(a) {
return a instanceof Array ? a : $jscomp.arrayFromIterator($jscomp.makeIterator(a));
};
$jscomp.ASSUME_ES5 = !1;
$jscomp.ASSUME_NO_NATIVE_MAP = !1;
$jscomp.ASSUME_NO_NATIVE_SET = !1;
$jscomp.SIMPLE_FROUND_POLYFILL = !1;
$jscomp.ISOLATE_POLYFILLS = !1;
$jscomp.FORCE_POLYFILL_PROMISE = !1;
$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION = !1;
$jscomp.objectCreate = $jscomp.ASSUME_ES5 || "function" == typeof Object.create ? Object.create : function(a) {
var b = function() {
};
b.prototype = a;
return new b();
};
$jscomp.defineProperty = $jscomp.ASSUME_ES5 || "function" == typeof Object.defineProperties ? Object.defineProperty : function(a, b, c) {
if (a == Array.prototype || a == Object.prototype) {
return a;
}
a[b] = c.value;
return a;
};
$jscomp.getGlobal = function(a) {
a = ["object" == typeof globalThis && globalThis, a, "object" == typeof window && window, "object" == typeof self && self, "object" == typeof global && global,];
for (var b = 0; b < a.length; ++b) {
var c = a[b];
if (c && c.Math == Math) {
return c;
}
}
throw Error("Cannot find global object");
};
$jscomp.global = $jscomp.getGlobal(this);
$jscomp.IS_SYMBOL_NATIVE = "function" === typeof Symbol && "symbol" === typeof Symbol("x");
$jscomp.TRUST_ES6_POLYFILLS = !$jscomp.ISOLATE_POLYFILLS || $jscomp.IS_SYMBOL_NATIVE;
$jscomp.polyfills = {};
$jscomp.propertyToPolyfillSymbol = {};
$jscomp.POLYFILL_PREFIX = "$jscp$";
var $jscomp$lookupPolyfilledValue = function(a, b, c) {
if (!c || null != a) {
c = $jscomp.propertyToPolyfillSymbol[b];
if (null == c) {
return a[b];
}
c = a[c];
return void 0 !== c ? c : a[b];
}
};
$jscomp.polyfill = function(a, b, c, d) {
b && ($jscomp.ISOLATE_POLYFILLS ? $jscomp.polyfillIsolated(a, b, c, d) : $jscomp.polyfillUnisolated(a, b, c, d));
};
$jscomp.polyfillUnisolated = function(a, b, c, d) {
c = $jscomp.global;
a = a.split(".");
for (d = 0; d < a.length - 1; d++) {
var e = a[d];
if (!(e in c)) {
return;
}
c = c[e];
}
a = a[a.length - 1];
d = c[a];
b = b(d);
b != d && null != b && $jscomp.defineProperty(c, a, {configurable:!0, writable:!0, value:b});
};
$jscomp.polyfillIsolated = function(a, b, c, d) {
var e = a.split(".");
a = 1 === e.length;
d = e[0];
d = !a && d in $jscomp.polyfills ? $jscomp.polyfills : $jscomp.global;
for (var f = 0; f < e.length - 1; f++) {
var g = e[f];
if (!(g in d)) {
return;
}
d = d[g];
}
e = e[e.length - 1];
c = $jscomp.IS_SYMBOL_NATIVE && "es6" === c ? d[e] : null;
b = b(c);
null != b && (a ? $jscomp.defineProperty($jscomp.polyfills, e, {configurable:!0, writable:!0, value:b}) : b !== c && (void 0 === $jscomp.propertyToPolyfillSymbol[e] && (c = 1E9 * Math.random() >>> 0, $jscomp.propertyToPolyfillSymbol[e] = $jscomp.IS_SYMBOL_NATIVE ? $jscomp.global.Symbol(e) : $jscomp.POLYFILL_PREFIX + c + "$" + e), $jscomp.defineProperty(d, $jscomp.propertyToPolyfillSymbol[e], {configurable:!0, writable:!0, value:b})));
};
$jscomp.getConstructImplementation = function() {
function a() {
function c() {
}
new c();
Reflect.construct(c, [], function() {
});
return new c() instanceof c;
}
if ($jscomp.TRUST_ES6_POLYFILLS && "undefined" != typeof Reflect && Reflect.construct) {
if (a()) {
return Reflect.construct;
}
var b = Reflect.construct;
return function(c, d, e) {
c = b(c, d);
e && Reflect.setPrototypeOf(c, e.prototype);
return c;
};
}
return function(c, d, e) {
void 0 === e && (e = c);
e = $jscomp.objectCreate(e.prototype || Object.prototype);
return Function.prototype.apply.call(c, e, d) || e;
};
};
$jscomp.construct = {valueOf:$jscomp.getConstructImplementation}.valueOf();
$jscomp.underscoreProtoCanBeSet = function() {
var a = {a:!0}, b = {};
try {
return b.__proto__ = a, b.a;
} catch (c) {
}
return !1;
};
$jscomp.setPrototypeOf = $jscomp.TRUST_ES6_POLYFILLS && "function" == typeof Object.setPrototypeOf ? Object.setPrototypeOf : $jscomp.underscoreProtoCanBeSet() ? function(a, b) {
a.__proto__ = b;
if (a.__proto__ !== b) {
throw new TypeError(a + " is not extensible");
}
return a;
} : null;
$jscomp.inherits = function(a, b) {
a.prototype = $jscomp.objectCreate(b.prototype);
a.prototype.constructor = a;
if ($jscomp.setPrototypeOf) {
var c = $jscomp.setPrototypeOf;
c(a, b);
} else {
for (c in b) {
if ("prototype" != c) {
if (Object.defineProperties) {
var d = Object.getOwnPropertyDescriptor(b, c);
d && Object.defineProperty(a, c, d);
} else {
a[c] = b[c];
}
}
}
}
a.superClass_ = b.prototype;
};
$jscomp.getRestArguments = function() {
for (var a = Number(this), b = [], c = a; c < arguments.length; c++) {
b[c - a] = arguments[c];
}
return b;
};
$jscomp.polyfill("Reflect", function(a) {
return a ? a : {};
}, "es6", "es3");
$jscomp.polyfill("Reflect.construct", function(a) {
return $jscomp.construct;
}, "es6", "es3");
$jscomp.polyfill("Reflect.setPrototypeOf", function(a) {
if (a) {
return a;
}
if ($jscomp.setPrototypeOf) {
var b = $jscomp.setPrototypeOf;
return function(c, d) {
try {
return b(c, d), !0;
} catch (e) {
return !1;
}
};
}
return null;
}, "es6", "es5");
$jscomp.owns = function(a, b) {
return Object.prototype.hasOwnProperty.call(a, b);
};
$jscomp.polyfill("Object.values", function(a) {
return a ? a : function(b) {
var c = [], d;
for (d in b) {
$jscomp.owns(b, d) && c.push(b[d]);
}
return c;
};
}, "es8", "es3");
var module$exports$omid$common$constants = {AdEventType:{IMPRESSION:"impression", LOADED:"loaded", GEOMETRY_CHANGE:"geometryChange", SESSION_START:"sessionStart", SESSION_ERROR:"sessionError", SESSION_FINISH:"sessionFinish", MEDIA:"media", VIDEO:"video", START:"start", FIRST_QUARTILE:"firstQuartile", MIDPOINT:"midpoint", THIRD_QUARTILE:"thirdQuartile", COMPLETE:"complete", PAUSE:"pause", RESUME:"resume", BUFFER_START:"bufferStart", BUFFER_FINISH:"bufferFinish", SKIPPED:"skipped", VOLUME_CHANGE:"volumeChange",
PLAYER_STATE_CHANGE:"playerStateChange", AD_USER_INTERACTION:"adUserInteraction", STATE_CHANGE:"stateChange",}, MediaEventType:{LOADED:"loaded", START:"start", FIRST_QUARTILE:"firstQuartile", MIDPOINT:"midpoint", THIRD_QUARTILE:"thirdQuartile", COMPLETE:"complete", PAUSE:"pause", RESUME:"resume", BUFFER_START:"bufferStart", BUFFER_FINISH:"bufferFinish", SKIPPED:"skipped", VOLUME_CHANGE:"volumeChange", PLAYER_STATE_CHANGE:"playerStateChange", AD_USER_INTERACTION:"adUserInteraction",}, ImpressionType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript",
UNSPECIFIED:"unspecified", LOADED:"loaded", BEGIN_TO_RENDER:"beginToRender", ONE_PIXEL:"onePixel", VIEWABLE:"viewable", AUDIBLE:"audible", OTHER:"other",}, ErrorType:{GENERIC:"generic", VIDEO:"video", MEDIA:"media",}, AdSessionType:{NATIVE:"native", HTML:"html", JAVASCRIPT:"javascript",}, EventOwner:{NATIVE:"native", JAVASCRIPT:"javascript", NONE:"none",}, AccessMode:{FULL:"full", DOMAIN:"domain", LIMITED:"limited",}, AppState:{BACKGROUNDED:"backgrounded", FOREGROUNDED:"foregrounded",}, Environment:{APP:"app",
WEB:"web",}, DeviceCategory:{CTV:"ctv", DESKTOP:"desktop", MOBILE:"mobile", OTHER:"other",}, InteractionType:{CLICK:"click", INVITATION_ACCEPT:"invitationAccept",}, CreativeType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript", HTML_DISPLAY:"htmlDisplay", NATIVE_DISPLAY:"nativeDisplay", VIDEO:"video", AUDIO:"audio",}, MediaType:{DISPLAY:"display", VIDEO:"video",}, Reason:{NOT_FOUND:"notFound", HIDDEN:"hidden", BACKGROUNDED:"backgrounded", VIEWPORT:"viewport", OBSTRUCTED:"obstructed", CLIPPED:"clipped",
UNMEASURABLE:"unmeasurable", NO_WINDOW_FOCUS:"noWindowFocus", NO_OUTPUT_DEVICE:"noOutputDevice",}, SupportedFeatures:{CONTAINER:"clid", VIDEO:"vlid",}, VideoPosition:{PREROLL:"preroll", MIDROLL:"midroll", POSTROLL:"postroll", STANDALONE:"standalone",}, VideoPlayerState:{MINIMIZED:"minimized", COLLAPSED:"collapsed", NORMAL:"normal", EXPANDED:"expanded", FULLSCREEN:"fullscreen",}, NativeViewKeys:{X:"x", LEFT:"left", Y:"y", TOP:"top", WIDTH:"width", HEIGHT:"height", AD_SESSION_ID:"adSessionId", IS_FRIENDLY_OBSTRUCTION_FOR:"isFriendlyObstructionFor",
CLIPS_TO_BOUNDS:"clipsToBounds", CHILD_VIEWS:"childViews", END_X:"endX", END_Y:"endY", OBSTRUCTIONS:"obstructions", OBSTRUCTION_CLASS:"obstructionClass", OBSTRUCTION_PURPOSE:"obstructionPurpose", OBSTRUCTION_REASON:"obstructionReason", PIXELS:"pixels", HAS_WINDOW_FOCUS:"hasWindowFocus",}, MeasurementStateChangeSource:{CONTAINER:"container", CREATIVE:"creative",}, ElementMarkup:{OMID_ELEMENT_CLASS_NAME:"omid-element",}, CommunicationType:{NONE:"NONE", DIRECT:"DIRECT", POST_MESSAGE:"POST_MESSAGE",},
OmidImplementer:{OMSDK:"omsdk",}, MessageMethod:{IDENTIFY_SERVICE_WINDOW:"identifyServiceWindow",}};
var module$contents$omid$common$InternalMessage_GUID_KEY = "omid_message_guid", module$contents$omid$common$InternalMessage_METHOD_KEY = "omid_message_method", module$contents$omid$common$InternalMessage_VERSION_KEY = "omid_message_version", module$contents$omid$common$InternalMessage_ARGS_KEY = "omid_message_args", module$exports$omid$common$InternalMessage = function(a, b, c, d) {
this.guid = a;
this.method = b;
this.version = c;
this.args = d;
};
module$exports$omid$common$InternalMessage.isValidSerializedMessage = function(a) {
return !!a && void 0 !== a[module$contents$omid$common$InternalMessage_GUID_KEY] && void 0 !== a[module$contents$omid$common$InternalMessage_METHOD_KEY] && void 0 !== a[module$contents$omid$common$InternalMessage_VERSION_KEY] && "string" === typeof a[module$contents$omid$common$InternalMessage_GUID_KEY] && "string" === typeof a[module$contents$omid$common$InternalMessage_METHOD_KEY] && "string" === typeof a[module$contents$omid$common$InternalMessage_VERSION_KEY] && (void 0 === a[module$contents$omid$common$InternalMessage_ARGS_KEY] ||
void 0 !== a[module$contents$omid$common$InternalMessage_ARGS_KEY]);
};
module$exports$omid$common$InternalMessage.deserialize = function(a) {
return new module$exports$omid$common$InternalMessage(a[module$contents$omid$common$InternalMessage_GUID_KEY], a[module$contents$omid$common$InternalMessage_METHOD_KEY], a[module$contents$omid$common$InternalMessage_VERSION_KEY], a[module$contents$omid$common$InternalMessage_ARGS_KEY]);
};
module$exports$omid$common$InternalMessage.prototype.serialize = function() {
var a = {};
a = (a[module$contents$omid$common$InternalMessage_GUID_KEY] = this.guid, a[module$contents$omid$common$InternalMessage_METHOD_KEY] = this.method, a[module$contents$omid$common$InternalMessage_VERSION_KEY] = this.version, a);
void 0 !== this.args && (a[module$contents$omid$common$InternalMessage_ARGS_KEY] = this.args);
return a;
};
var module$exports$omid$common$Communication = function(a) {
this.to = a;
this.communicationType_ = module$exports$omid$common$constants.CommunicationType.NONE;
};
module$exports$omid$common$Communication.prototype.sendMessage = function(a, b) {
};
module$exports$omid$common$Communication.prototype.handleMessage = function(a, b) {
if (this.onMessage) {
this.onMessage(a, b);
}
};
module$exports$omid$common$Communication.prototype.serialize = function(a) {
return JSON.stringify(a);
};
module$exports$omid$common$Communication.prototype.deserialize = function(a) {
return JSON.parse(a);
};
module$exports$omid$common$Communication.prototype.isDirectCommunication = function() {
return this.communicationType_ === module$exports$omid$common$constants.CommunicationType.DIRECT;
};
module$exports$omid$common$Communication.prototype.isCrossOrigin = function() {
};
var module$exports$omid$common$logger = {};
function module$contents$omid$common$logger_error() {
var a = $jscomp.getRestArguments.apply(0, arguments);
module$contents$omid$common$logger_executeLog(function() {
throw new (Function.prototype.bind.apply(Error, [null, "Could not complete the test successfully - "].concat($jscomp.arrayFromIterable(a))))();
}, function() {
return console.error.apply(console, $jscomp.arrayFromIterable(a));
});
}
function module$contents$omid$common$logger_debug() {
var a = $jscomp.getRestArguments.apply(0, arguments);
module$contents$omid$common$logger_executeLog(function() {
}, function() {
return console.error.apply(console, $jscomp.arrayFromIterable(a));
});
}
function module$contents$omid$common$logger_executeLog(a, b) {
"undefined" !== typeof jasmine && jasmine ? a() : "undefined" !== typeof console && console && console.error && b();
}
module$exports$omid$common$logger.error = module$contents$omid$common$logger_error;
module$exports$omid$common$logger.debug = module$contents$omid$common$logger_debug;
var module$exports$omid$common$eventTypedefs = {};
var module$exports$omid$common$version = {ApiVersion:"1.0", Version:"1.4.9-iab4257"};
var module$exports$omid$common$argsChecker = {};
function module$contents$omid$common$argsChecker_assertTruthyString(a, b) {
if (!b) {
throw Error("Value for " + a + " is undefined, null or blank.");
}
if ("string" !== typeof b && !(b instanceof String)) {
throw Error("Value for " + a + " is not a string.");
}
if ("" === b.trim()) {
throw Error("Value for " + a + " is empty string.");
}
}
function module$contents$omid$common$argsChecker_assertNotNullObject(a, b) {
if (null == b) {
throw Error("Value for " + a + " is undefined or null");
}
}
function module$contents$omid$common$argsChecker_assertNumber(a, b) {
if (null == b) {
throw Error(a + " must not be null or undefined.");
}
if ("number" !== typeof b || isNaN(b)) {
throw Error("Value for " + a + " is not a number");
}
}
function module$contents$omid$common$argsChecker_assertNumberBetween(a, b, c, d) {
module$contents$omid$common$argsChecker_assertNumber(a, b);
if (b < c || b > d) {
throw Error("Value for " + a + " is outside the range [" + c + "," + d + "]");
}
}
function module$contents$omid$common$argsChecker_assertFunction(a, b) {
if (!b) {
throw Error(a + " must not be truthy.");
}
}
function module$contents$omid$common$argsChecker_assertPositiveNumber(a, b) {
module$contents$omid$common$argsChecker_assertNumber(a, b);
if (0 > b) {
throw Error(a + " must be a positive number.");
}
}
module$exports$omid$common$argsChecker.assertTruthyString = module$contents$omid$common$argsChecker_assertTruthyString;
module$exports$omid$common$argsChecker.assertNotNullObject = module$contents$omid$common$argsChecker_assertNotNullObject;
module$exports$omid$common$argsChecker.assertNumber = module$contents$omid$common$argsChecker_assertNumber;
module$exports$omid$common$argsChecker.assertNumberBetween = module$contents$omid$common$argsChecker_assertNumberBetween;
module$exports$omid$common$argsChecker.assertFunction = module$contents$omid$common$argsChecker_assertFunction;
module$exports$omid$common$argsChecker.assertPositiveNumber = module$contents$omid$common$argsChecker_assertPositiveNumber;
var module$exports$omid$common$VersionUtils = {}, module$contents$omid$common$VersionUtils_SEMVER_DIGITS_NUMBER = 3;
function module$contents$omid$common$VersionUtils_isValidVersion(a) {
return /\d+\.\d+\.\d+(-.*)?/.test(a);
}
function module$contents$omid$common$VersionUtils_versionGreaterOrEqual(a, b) {
a = a.split("-")[0].split(".");
b = b.split("-")[0].split(".");
for (var c = 0; c < module$contents$omid$common$VersionUtils_SEMVER_DIGITS_NUMBER; c++) {
var d = parseInt(a[c], 10), e = parseInt(b[c], 10);
if (d > e) {
break;
} else if (d < e) {
return !1;
}
}
return !0;
}
module$exports$omid$common$VersionUtils.isValidVersion = module$contents$omid$common$VersionUtils_isValidVersion;
module$exports$omid$common$VersionUtils.versionGreaterOrEqual = module$contents$omid$common$VersionUtils_versionGreaterOrEqual;
var module$exports$omid$common$ArgsSerDe = {}, module$contents$omid$common$ArgsSerDe_ARGS_NOT_SERIALIZED_VERSION = "1.0.3";
function module$contents$omid$common$ArgsSerDe_serializeMessageArgs(a, b) {
return module$contents$omid$common$VersionUtils_isValidVersion(a) && module$contents$omid$common$VersionUtils_versionGreaterOrEqual(a, module$contents$omid$common$ArgsSerDe_ARGS_NOT_SERIALIZED_VERSION) ? b : JSON.stringify(b);
}
function module$contents$omid$common$ArgsSerDe_deserializeMessageArgs(a, b) {
return module$contents$omid$common$VersionUtils_isValidVersion(a) && module$contents$omid$common$VersionUtils_versionGreaterOrEqual(a, module$contents$omid$common$ArgsSerDe_ARGS_NOT_SERIALIZED_VERSION) ? b ? b : [] : b && "string" === typeof b ? JSON.parse(b) : [];
}
module$exports$omid$common$ArgsSerDe.serializeMessageArgs = module$contents$omid$common$ArgsSerDe_serializeMessageArgs;
module$exports$omid$common$ArgsSerDe.deserializeMessageArgs = module$contents$omid$common$ArgsSerDe_deserializeMessageArgs;
var module$exports$omid$common$guid = {};
function module$contents$omid$common$guid_generateGuid() {
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(a) {
var b = 16 * Math.random() | 0;
a = "y" === a ? (b & 3 | 8).toString(16) : b.toString(16);
return a;
});
}
module$exports$omid$common$guid.generateGuid = module$contents$omid$common$guid_generateGuid;
var module$exports$omid$common$DetectOmid = {OMID_PRESENT_FRAME_NAME:"omid_v1_present", OMID_PRESENT_FRAME_NAME_WEB:"omid_v1_present_web", OMID_PRESENT_FRAME_NAME_APP:"omid_v1_present_app", getEnvironmentIframeName:function(a) {
var b = {};
return (b[module$exports$omid$common$constants.Environment.APP] = module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_APP, b[module$exports$omid$common$constants.Environment.WEB] = module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_WEB, b)[a];
}};
function module$contents$omid$common$DetectOmid_isIframePresent(a, b) {
try {
return a.frames && !!a.frames[b];
} catch (c) {
return !1;
}
}
module$exports$omid$common$DetectOmid.isOmidPresent = function(a) {
return [module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_WEB, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_APP,].some(function(b) {
return module$contents$omid$common$DetectOmid_isIframePresent(a, b);
});
};
module$exports$omid$common$DetectOmid.getOmidEnvironment = function(a) {
for (var b = $jscomp.makeIterator(Object.values(module$exports$omid$common$constants.Environment)), c = b.next(); !c.done; c = b.next()) {
c = c.value;
var d = module$exports$omid$common$DetectOmid.getEnvironmentIframeName(c);
if (module$contents$omid$common$DetectOmid_isIframePresent(a, d)) {
return c;
}
}
return null;
};
function module$contents$omid$common$DetectOmid_writePresenceIframe_(a, b) {
a.document.write(''));
}
module$exports$omid$common$DetectOmid.declareOmidPresence = function(a, b) {
a.frames && a.document && ![module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_WEB, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_APP,].some(function(c) {
return !!a.frames[c];
}) && (null == a.document.body && module$exports$omid$common$DetectOmid.isMutationObserverAvailable_(a) ? module$exports$omid$common$DetectOmid.registerMutationObserver_(a, b) : (b = module$exports$omid$common$DetectOmid.getEnvironmentIframeName(b), a.document.body ? (module$exports$omid$common$DetectOmid.appendPresenceIframe_(a, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME), module$exports$omid$common$DetectOmid.appendPresenceIframe_(a, b)) : (module$contents$omid$common$DetectOmid_writePresenceIframe_(a,
module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME), module$contents$omid$common$DetectOmid_writePresenceIframe_(a, b))));
};
module$exports$omid$common$DetectOmid.appendPresenceIframe_ = function(a, b) {
var c = a.document.createElement("iframe");
c.id = b;
c.name = b;
c.style.display = "none";
c.sandbox = "";
a.document.body.appendChild(c);
};
module$exports$omid$common$DetectOmid.isMutationObserverAvailable_ = function(a) {
return "MutationObserver" in a;
};
module$exports$omid$common$DetectOmid.registerMutationObserver_ = function(a, b) {
var c = new MutationObserver(function(d) {
d.forEach(function(e) {
"BODY" === e.addedNodes[0].nodeName && (e = module$exports$omid$common$DetectOmid.getEnvironmentIframeName(b), module$exports$omid$common$DetectOmid.appendPresenceIframe_(a, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME), module$exports$omid$common$DetectOmid.appendPresenceIframe_(a, e), c.disconnect());
});
});
c.observe(a.document.documentElement, {childList:!0});
};
var module$exports$omid$common$serviceMethodUtils = {}, module$contents$omid$common$serviceMethodUtils_ServiceMethodPrefix = {SESSION_SERVICE:"SessionService.", VERIFICATION_SERVICE:"VerificationService.",};
function module$contents$omid$common$serviceMethodUtils_getPrefixedSessionServiceMethod(a) {
return module$contents$omid$common$serviceMethodUtils_getPrefixedMethod(a, module$contents$omid$common$serviceMethodUtils_ServiceMethodPrefix.SESSION_SERVICE);
}
function module$contents$omid$common$serviceMethodUtils_getUnprefixedSessionServiceMethod(a) {
return module$contents$omid$common$serviceMethodUtils_getUnprefixedMethod(a, module$contents$omid$common$serviceMethodUtils_ServiceMethodPrefix.SESSION_SERVICE);
}
function module$contents$omid$common$serviceMethodUtils_isPrefixedSessionServiceMethod(a) {
return null != module$contents$omid$common$serviceMethodUtils_getUnprefixedSessionServiceMethod(a);
}
function module$contents$omid$common$serviceMethodUtils_getPrefixedVerificationServiceMethod(a) {
return module$contents$omid$common$serviceMethodUtils_getPrefixedMethod(a, module$contents$omid$common$serviceMethodUtils_ServiceMethodPrefix.VERIFICATION_SERVICE);
}
function module$contents$omid$common$serviceMethodUtils_getUnprefixedVerificationServiceMethod(a) {
return module$contents$omid$common$serviceMethodUtils_getUnprefixedMethod(a, module$contents$omid$common$serviceMethodUtils_ServiceMethodPrefix.VERIFICATION_SERVICE);
}
function module$contents$omid$common$serviceMethodUtils_isPrefixedVerificationServiceMethod(a) {
return null != module$contents$omid$common$serviceMethodUtils_getUnprefixedVerificationServiceMethod(a);
}
function module$contents$omid$common$serviceMethodUtils_getPrefixedMethod(a, b) {
return b + a;
}
function module$contents$omid$common$serviceMethodUtils_getUnprefixedMethod(a, b) {
return (a = a.match(new RegExp("^" + b + "(.*)"))) && a[1];
}
module$exports$omid$common$serviceMethodUtils.getPrefixedSessionServiceMethod = module$contents$omid$common$serviceMethodUtils_getPrefixedSessionServiceMethod;
module$exports$omid$common$serviceMethodUtils.getPrefixedVerificationServiceMethod = module$contents$omid$common$serviceMethodUtils_getPrefixedVerificationServiceMethod;
module$exports$omid$common$serviceMethodUtils.getUnprefixedSessionServiceMethod = module$contents$omid$common$serviceMethodUtils_getUnprefixedSessionServiceMethod;
module$exports$omid$common$serviceMethodUtils.getUnprefixedVerificationServiceMethod = module$contents$omid$common$serviceMethodUtils_getUnprefixedVerificationServiceMethod;
module$exports$omid$common$serviceMethodUtils.isPrefixedSessionServiceMethod = module$contents$omid$common$serviceMethodUtils_isPrefixedSessionServiceMethod;
module$exports$omid$common$serviceMethodUtils.isPrefixedVerificationServiceMethod = module$contents$omid$common$serviceMethodUtils_isPrefixedVerificationServiceMethod;
var module$exports$omid$common$OmidGlobalProvider = {};
function module$contents$omid$common$OmidGlobalProvider_getOmidGlobal() {
if ("undefined" !== typeof omidGlobal && omidGlobal) {
return omidGlobal;
}
if ("undefined" !== typeof global && global) {
return global;
}
if ("undefined" !== typeof window && window) {
return window;
}
if ("undefined" !== typeof globalThis && globalThis) {
return globalThis;
}
var a = Function("return this")();
if (a) {
return a;
}
throw Error("Could not determine global object context.");
}
module$exports$omid$common$OmidGlobalProvider.omidGlobal = module$contents$omid$common$OmidGlobalProvider_getOmidGlobal();
var module$exports$omid$common$exporter = {};
function module$contents$omid$common$exporter_getOmidExports() {
return "undefined" === typeof omidExports ? null : omidExports;
}
function module$contents$omid$common$exporter_getOrCreateName(a, b) {
return a && (a[b] || (a[b] = {}));
}
function module$contents$omid$common$exporter_packageExport(a, b, c) {
if (c = void 0 === c ? module$contents$omid$common$exporter_getOmidExports() : c) {
a = a.split("."), a.slice(0, a.length - 1).reduce(module$contents$omid$common$exporter_getOrCreateName, c)[a[a.length - 1]] = b;
}
}
module$exports$omid$common$exporter.packageExport = module$contents$omid$common$exporter_packageExport;
var module$exports$omid$common$windowUtils = {};
function module$contents$omid$common$windowUtils_isValidWindow(a) {
return null != a && "undefined" !== typeof a.top && null != a.top;
}
function module$contents$omid$common$windowUtils_isCrossOrigin(a) {
if (a === module$exports$omid$common$OmidGlobalProvider.omidGlobal) {
return !1;
}
try {
if ("undefined" === typeof a.location.hostname) {
return !0;
}
module$contents$omid$common$windowUtils_isSameOriginForIE(a);
} catch (b) {
return !0;
}
return !1;
}
function module$contents$omid$common$windowUtils_isSameOriginForIE(a) {
return "" === a.x || "" !== a.x;
}
function module$contents$omid$common$windowUtils_resolveGlobalContext(a) {
"undefined" === typeof a && "undefined" !== typeof window && window && (a = window);
return module$contents$omid$common$windowUtils_isValidWindow(a) ? a : module$exports$omid$common$OmidGlobalProvider.omidGlobal;
}
function module$contents$omid$common$windowUtils_resolveTopWindowContext(a) {
return module$contents$omid$common$windowUtils_isValidWindow(a) ? a.top : module$exports$omid$common$OmidGlobalProvider.omidGlobal;
}
function module$contents$omid$common$windowUtils_isTopWindowAccessible(a) {
try {
return a.top.location.href ? !0 : !1;
} catch (b) {
return !1;
}
}
function module$contents$omid$common$windowUtils_removeDomElements(a) {
a.type === module$exports$omid$common$constants.AdEventType.SESSION_START && ("undefined" !== typeof a.data.context.videoElement && (a.data.context.videoElement = "DOM Video Element - Present but not parsed to avoid parse error"), "undefined" !== typeof a.data.context.slotElement && (a.data.context.slotElement = "DOM Slot Element - Present but not parsed to avoid parse error"));
return a;
}
function module$contents$omid$common$windowUtils_evaluatePageUrl(a) {
if (!module$contents$omid$common$windowUtils_isValidWindow(a)) {
return null;
}
try {
var b = a.top;
return module$contents$omid$common$windowUtils_isCrossOrigin(b) ? null : b.location.href;
} catch (c) {
return null;
}
}
module$exports$omid$common$windowUtils.evaluatePageUrl = module$contents$omid$common$windowUtils_evaluatePageUrl;
module$exports$omid$common$windowUtils.isCrossOrigin = module$contents$omid$common$windowUtils_isCrossOrigin;
module$exports$omid$common$windowUtils.removeDomElements = module$contents$omid$common$windowUtils_removeDomElements;
module$exports$omid$common$windowUtils.resolveGlobalContext = module$contents$omid$common$windowUtils_resolveGlobalContext;
module$exports$omid$common$windowUtils.resolveTopWindowContext = module$contents$omid$common$windowUtils_resolveTopWindowContext;
module$exports$omid$common$windowUtils.isTopWindowAccessible = module$contents$omid$common$windowUtils_isTopWindowAccessible;
var module$exports$omid$common$DirectCommunication = function(a) {
module$exports$omid$common$Communication.call(this, a);
this.communicationType_ = module$exports$omid$common$constants.CommunicationType.DIRECT;
this.handleExportedMessage = module$exports$omid$common$DirectCommunication.prototype.handleExportedMessage.bind(this);
};
$jscomp.inherits(module$exports$omid$common$DirectCommunication, module$exports$omid$common$Communication);
module$exports$omid$common$DirectCommunication.prototype.sendMessage = function(a, b) {
b = void 0 === b ? this.to : b;
if (!b) {
throw Error("Message destination must be defined at construction time or when sending the message.");
}
b.handleExportedMessage(a.serialize(), this);
};
module$exports$omid$common$DirectCommunication.prototype.handleExportedMessage = function(a, b) {
module$exports$omid$common$InternalMessage.isValidSerializedMessage(a) && this.handleMessage(module$exports$omid$common$InternalMessage.deserialize(a), b);
};
module$exports$omid$common$DirectCommunication.prototype.isCrossOrigin = function() {
return !1;
};
var module$exports$omid$common$PostMessageCommunication = function(a, b) {
b = void 0 === b ? module$exports$omid$common$OmidGlobalProvider.omidGlobal : b;
module$exports$omid$common$Communication.call(this, b);
var c = this;
this.communicationType_ = module$exports$omid$common$constants.CommunicationType.POST_MESSAGE;
a.addEventListener("message", function(d) {
if ("object" === typeof d.data) {
var e = d.data;
module$exports$omid$common$InternalMessage.isValidSerializedMessage(e) && (e = module$exports$omid$common$InternalMessage.deserialize(e), d.source && c.handleMessage(e, d.source));
}
});
};
$jscomp.inherits(module$exports$omid$common$PostMessageCommunication, module$exports$omid$common$Communication);
module$exports$omid$common$PostMessageCommunication.isCompatibleContext = function(a) {
return !!(a && a.addEventListener && a.postMessage);
};
module$exports$omid$common$PostMessageCommunication.prototype.sendMessage = function(a, b) {
b = void 0 === b ? this.to : b;
if (!b) {
throw Error("Message destination must be defined at construction time or when sending the message.");
}
b.postMessage(a.serialize(), "*");
};
module$exports$omid$common$PostMessageCommunication.prototype.isCrossOrigin = function() {
return this.to ? module$contents$omid$common$windowUtils_isCrossOrigin(this.to) : !0;
};
var module$exports$omid$common$serviceCommunication = {}, module$contents$omid$common$serviceCommunication_EXPORTED_SESSION_COMMUNICATION_NAME = ["omid", "v1_SessionServiceCommunication"], module$contents$omid$common$serviceCommunication_EXPORTED_VERIFICATION_COMMUNICATION_NAME = ["omid", "v1_VerificationServiceCommunication"], module$contents$omid$common$serviceCommunication_EXPORTED_SERVICE_WINDOW_NAME = ["omidVerificationProperties", "serviceWindow"];
function module$contents$omid$common$serviceCommunication_getValueForKeypath(a, b) {
return b.reduce(function(c, d) {
return c && c[d];
}, a);
}
function module$contents$omid$common$serviceCommunication_startServiceCommunication(a, b, c, d) {
if (!module$contents$omid$common$windowUtils_isCrossOrigin(b)) {
try {
var e = module$contents$omid$common$serviceCommunication_getValueForKeypath(b, c);
if (e) {
return new module$exports$omid$common$DirectCommunication(e);
}
} catch (f) {
}
}
return d(b) ? new module$exports$omid$common$PostMessageCommunication(a, b) : null;
}
function module$contents$omid$common$serviceCommunication_startServiceCommunicationFromCandidates(a, b, c, d) {
b = $jscomp.makeIterator(b);
for (var e = b.next(); !e.done; e = b.next()) {
if (e = module$contents$omid$common$serviceCommunication_startServiceCommunication(a, e.value, c, d)) {
return e;
}
}
return null;
}
function module$contents$omid$common$serviceCommunication_startSessionServiceCommunication(a, b, c) {
c = void 0 === c ? module$exports$omid$common$DetectOmid.isOmidPresent : c;
var d = [a, module$contents$omid$common$windowUtils_resolveTopWindowContext(a)];
b && d.unshift(b);
return module$contents$omid$common$serviceCommunication_startServiceCommunicationFromCandidates(a, d, module$contents$omid$common$serviceCommunication_EXPORTED_SESSION_COMMUNICATION_NAME, c);
}
function module$contents$omid$common$serviceCommunication_startVerificationServiceCommunication(a, b) {
b = void 0 === b ? module$exports$omid$common$DetectOmid.isOmidPresent : b;
var c = [], d = module$contents$omid$common$serviceCommunication_getValueForKeypath(a, module$contents$omid$common$serviceCommunication_EXPORTED_SERVICE_WINDOW_NAME);
d && c.push(d);
c.push(module$contents$omid$common$windowUtils_resolveTopWindowContext(a));
return module$contents$omid$common$serviceCommunication_startServiceCommunicationFromCandidates(a, c, module$contents$omid$common$serviceCommunication_EXPORTED_VERIFICATION_COMMUNICATION_NAME, b);
}
module$exports$omid$common$serviceCommunication.startSessionServiceCommunication = module$contents$omid$common$serviceCommunication_startSessionServiceCommunication;
module$exports$omid$common$serviceCommunication.startVerificationServiceCommunication = module$contents$omid$common$serviceCommunication_startVerificationServiceCommunication;
var module$contents$omid$verificationClient$VerificationClient_VERIFICATION_CLIENT_VERSION = module$exports$omid$common$version.Version, module$contents$omid$verificationClient$VerificationClient_EventCallback;
function module$contents$omid$verificationClient$VerificationClient_getThirdPartyOmid() {
var a = module$exports$omid$common$OmidGlobalProvider.omidGlobal.omid3p;
return a && "function" === typeof a.registerSessionObserver && "function" === typeof a.addEventListener ? a : null;
}
var module$exports$omid$verificationClient$VerificationClient = function(a) {
if (this.communication = a || module$contents$omid$common$serviceCommunication_startVerificationServiceCommunication(module$contents$omid$common$windowUtils_resolveGlobalContext())) {
this.communication.onMessage = this.handleMessage_.bind(this);
} else {
if (a = module$contents$omid$verificationClient$VerificationClient_getThirdPartyOmid()) {
this.omid3p = a;
}
}
//----------this.remoteIntervals_ = this.remoteTimeouts_ = 0;
this.callbackMap_ = {};
this.imgCache_ = [];
this.injectionId_ = (a = module$exports$omid$common$OmidGlobalProvider.omidGlobal.omidVerificationProperties) ? a.injectionId : void 0;
};
module$exports$omid$verificationClient$VerificationClient.prototype.isSupported = function() {
return this.getEnvironment() !== module$exports$omid$common$constants.Environment.WEB || this.injectionId_ ? !(!this.communication && !this.omid3p) : !1;
};
module$exports$omid$verificationClient$VerificationClient.prototype.getEnvironment = function() {
var a = module$contents$omid$common$windowUtils_resolveGlobalContext();
return this.injectionSource() || (0,module$exports$omid$common$DetectOmid.getOmidEnvironment)(a) || (0,module$exports$omid$common$DetectOmid.getOmidEnvironment)(module$contents$omid$common$windowUtils_resolveTopWindowContext(a));
};
module$exports$omid$verificationClient$VerificationClient.prototype.injectionSource = function() {
var a = module$exports$omid$common$OmidGlobalProvider.omidGlobal.omidVerificationProperties;
if (a && a.injectionSource) {
return a.injectionSource;
}
};
module$exports$omid$verificationClient$VerificationClient.prototype.registerSessionObserver = function(a, b) {
module$contents$omid$common$argsChecker_assertFunction("functionToExecute", a);
this.omid3p ? this.omid3p.registerSessionObserver(a, b, this.injectionId_) : this.sendMessage_("addSessionListener", a, b, this.injectionId_);
};
module$exports$omid$verificationClient$VerificationClient.prototype.addEventListener = function(a, b) {
module$contents$omid$common$argsChecker_assertTruthyString("eventType", a);
module$contents$omid$common$argsChecker_assertFunction("functionToExecute", b);
this.omid3p ? this.omid3p.addEventListener(a, b, this.injectionId_) : this.sendMessage_("addEventListener", b, a, this.injectionId_);
};
module$exports$omid$verificationClient$VerificationClient.prototype.sendUrl = function(a, b, c) {
module$contents$omid$common$argsChecker_assertTruthyString("url", a);
module$exports$omid$common$OmidGlobalProvider.omidGlobal.document && module$exports$omid$common$OmidGlobalProvider.omidGlobal.document.createElement ? this.sendUrlWithImg_(a, b, c) : this.sendMessage_("sendUrl", function(d) {
d && b ? b() : !d && c && c();
}, a);
};
module$exports$omid$verificationClient$VerificationClient.prototype.sendUrlWithImg_ = function(a, b, c) {
var d = this, e = module$exports$omid$common$OmidGlobalProvider.omidGlobal.document.createElement("img");
this.imgCache_.push(e);
var f = function(g) {
var h = d.imgCache_.indexOf(e);
0 <= h && d.imgCache_.splice(h, 1);
g && g();
};
e.addEventListener("load", f.bind(this, b));
e.addEventListener("error", f.bind(this, c));
e.src = a;
};
module$exports$omid$verificationClient$VerificationClient.prototype.injectJavaScriptResource = function(a, b, c) {
var d = this;
module$contents$omid$common$argsChecker_assertTruthyString("url", a);
module$exports$omid$common$OmidGlobalProvider.omidGlobal.document ? this.injectJavascriptResourceUrlInDom_(a, b, c) : this.sendMessage_("injectJavaScriptResource", function(e, f) {
e ? (d.evaluateJavaScript_(f, a), b()) : (module$contents$omid$common$logger_error("Service failed to load JavaScript resource."), c());
}, a);
};
module$exports$omid$verificationClient$VerificationClient.prototype.injectJavascriptResourceUrlInDom_ = function(a, b, c) {
var d = module$exports$omid$common$OmidGlobalProvider.omidGlobal.document, e = d.body;
d = d.createElement("script");
d.onload = b;
d.onerror = c;
d.src = a;
d.type = "application/javascript";
e.appendChild(d);
};
module$exports$omid$verificationClient$VerificationClient.prototype.evaluateJavaScript_ = function(a, b) {
try {
eval(a);
} catch (c) {
module$contents$omid$common$logger_error('Error evaluating the JavaScript resource from "' + b + '".');
}
};
module$exports$omid$verificationClient$VerificationClient.prototype.setTimeout = function(a, b) {
module$contents$omid$common$argsChecker_assertFunction("functionToExecute", a);
module$contents$omid$common$argsChecker_assertPositiveNumber("timeInMillis", b);
if (this.hasTimeoutMethods_()) {
return module$exports$omid$common$OmidGlobalProvider.omidGlobal.setTimeout(a, b);
}
//----------var c = this.remoteTimeouts_++;
var c = ((new Date()).getTime() * 1000000) + (Math.floor(Math.random() * 1000000));
this.sendMessage_("setTimeout", a, c, b);
return c;
};
module$exports$omid$verificationClient$VerificationClient.prototype.clearTimeout = function(a) {
module$contents$omid$common$argsChecker_assertPositiveNumber("timeoutId", a);
this.hasTimeoutMethods_() ? module$exports$omid$common$OmidGlobalProvider.omidGlobal.clearTimeout(a) : this.sendOneWayMessage_("clearTimeout", a);
};
module$exports$omid$verificationClient$VerificationClient.prototype.setInterval = function(a, b) {
module$contents$omid$common$argsChecker_assertFunction("functionToExecute", a);
module$contents$omid$common$argsChecker_assertPositiveNumber("timeInMillis", b);
if (this.hasIntervalMethods_()) {
return module$exports$omid$common$OmidGlobalProvider.omidGlobal.setInterval(a, b);
}
//----------var c = this.remoteIntervals_++;
var c = ((new Date()).getTime() * 1000000) + (Math.floor(Math.random() * 1000000));
this.sendMessage_("setInterval", a, c, b);
return c;
};
module$exports$omid$verificationClient$VerificationClient.prototype.clearInterval = function(a) {
module$contents$omid$common$argsChecker_assertPositiveNumber("intervalId", a);
this.hasIntervalMethods_() ? module$exports$omid$common$OmidGlobalProvider.omidGlobal.clearInterval(a) : this.sendOneWayMessage_("clearInterval", a);
};
module$exports$omid$verificationClient$VerificationClient.prototype.hasTimeoutMethods_ = function() {
return "function" === typeof module$exports$omid$common$OmidGlobalProvider.omidGlobal.setTimeout && "function" === typeof module$exports$omid$common$OmidGlobalProvider.omidGlobal.clearTimeout;
};
module$exports$omid$verificationClient$VerificationClient.prototype.hasIntervalMethods_ = function() {
return "function" === typeof module$exports$omid$common$OmidGlobalProvider.omidGlobal.setInterval && "function" === typeof module$exports$omid$common$OmidGlobalProvider.omidGlobal.clearInterval;
};
module$exports$omid$verificationClient$VerificationClient.prototype.handleMessage_ = function(a, b) {
b = a.method;
var c = a.guid;
a = a.args;
if ("response" === b && this.callbackMap_[c]) {
var d = module$contents$omid$common$ArgsSerDe_deserializeMessageArgs(module$exports$omid$common$version.Version, a);
this.callbackMap_[c].apply(this, d);
}
"error" === b && window.console && module$contents$omid$common$logger_error(a);
};
module$exports$omid$verificationClient$VerificationClient.prototype.sendOneWayMessage_ = function(a) {
var b = $jscomp.getRestArguments.apply(1, arguments);
this.sendMessage_.apply(this, [a, null].concat($jscomp.arrayFromIterable(b)));
};
module$exports$omid$verificationClient$VerificationClient.prototype.sendMessage_ = function(a, b) {
var c = $jscomp.getRestArguments.apply(2, arguments);
if (this.communication) {
var d = module$contents$omid$common$guid_generateGuid();
b && (this.callbackMap_[d] = b);
c = new module$exports$omid$common$InternalMessage(d, module$contents$omid$common$serviceMethodUtils_getPrefixedVerificationServiceMethod(a), module$exports$omid$common$version.Version, module$contents$omid$common$ArgsSerDe_serializeMessageArgs(module$exports$omid$common$version.Version, c));
this.communication.sendMessage(c);
}
};
module$contents$omid$common$exporter_packageExport("OmidVerificationClient", module$exports$omid$verificationClient$VerificationClient);
}, typeof exports === 'undefined' ? undefined : exports));
} catch(e) {
__IntegralASDiagnosticCall('thirdparty', e);
}
__IASScope.isDomless = typeof window === "undefined";
__IASOmidVerificationClient = { isSupported: function () { return false; } };
if (typeof __IASScope.OmidVerificationClient !== 'undefined') {
try {
__IASOmidVerificationClient = new __IASScope.OmidVerificationClient['1.4.9-iab4257'](); //try standard in-browser instantiation
}
catch(e) {
try {
__IASOmidVerificationClient = new __IASScope.OmidVerificationClient(); //try domless version which has no version
}
catch(e) {
}
}
}
var isRedirectedStaticCMTag = false;
if (
!__IASScope.isDomless &&
document.currentScript &&
document.currentScript.src &&
document.currentScript.src.includes('/jload')
) {
isRedirectedStaticCMTag = true;
}
__IntegralASConfig.useFIF = __IASScope && !!__IASScope.__IntegralASUseFIF && (__IntegralASConfig.mode === "jload" || isRedirectedStaticCMTag);
__IntegralASConfig.adRefreshThreshold = __IASScope && __IASScope.__IntegralASAdRefreshThreshold;
__IntegralASConfig.getContextNode = function (win, topWin) {
'use strict';
if (__IASScope.isDomless) {
return;
}
if (win.location && win.location.href && (win.location.href.includes('fw.html') || win.location.href.includes('/rjsi/'))) {
return { dataset: {}, parentNode: win.document.body, src: win.location.href };
}
if (__IntegralASConfig.useFIF) {
return __IASScope.frameElement; // Early exit if using FIF
}
if (document.currentScript) {
return document.currentScript;
}
var tempScript,
scripts = document.getElementsByTagName('script'),
result = scripts[scripts.length - 1],
scriptIndex = scripts.length,
scriptUrl = __IntegralASConfig.scriptUrl;
try {
while (--scriptIndex >= 0) {
tempScript = scripts[scriptIndex];
if (
tempScript.src &&
tempScript.src.indexOf(scriptUrl) === 0 &&
tempScript.getAttribute('data-ias-script-tag') === null
) {
result = tempScript;
tempScript.setAttribute('data-ias-script-tag', 'found');
break;
}
}
} catch (e) {} // TODO: maybe a jsDiagnostic?
return result;
};
__IntegralASConfig.getCurrentScript = function () {
if (document.currentScript) {
return document.currentScript;
}
};
__IntegralASConfig.contextNode = __IASScope.isDomless ? undefined : __IntegralASConfig.getContextNode(window, top);
__IntegralASConfig.currentScript = __IASScope.isDomless ? undefined : __IntegralASConfig.getCurrentScript();
__IntegralASConfig.perfFactory = function() {
'use strict';
var _marks = {};
var START_CODE = 'A';
var END_CODE = 'Z';
function _addMark(codeName, time) {
_marks[codeName] = time;
}
function mark(codeName) {
_addMark(codeName, Math.round(__IASScope.performance.now()));
}
function markStart(baseName) {
mark(baseName + START_CODE);
}
function markEnd(baseName) {
mark(baseName + END_CODE);
}
function markResource(baseName, url) {
var entry, entries;
entries = __IASScope.performance.getEntriesByName(url);
if (entries && entries.length) {
entry = entries[entries.length - 1];
if (entry.startTime > 0 && entry.responseEnd > 0) {
_addMark(baseName + START_CODE, Math.round(entry.startTime));
_addMark(baseName + END_CODE, Math.round(entry.responseEnd));
}
}
}
function getData() {
return _marks;
}
function getStart(baseName) {
return _marks[baseName + START_CODE];
}
function getEnd(baseName) {
return _marks[baseName + END_CODE];
}
function noop() {}
function setNoops() {
_addMark = noop;
mark = noop;
markStart = noop;
markEnd = noop;
markResource = noop;
}
function isFunc(obj) {
return typeof obj === 'function';
}
function _init() {
var canUsePerformanceAPIs = false;
var PERF_MARK_BOOTSTRAPPER_EXECUTION = 'be';
var PERF_MARK_BOOTSTRAPPER_SCRIPT_DOWNLOAD = 'bd';
var PERF_MARK_MAIN_SCRIPT_DOWNLOAD = 'md'; // note: this code is intentionally the same as the one in globalConstants.js
var downloadMark;
try {
canUsePerformanceAPIs =
__IASScope.performance &&
isFunc(__IASScope.performance.getEntriesByName) &&
isFunc(__IASScope.performance.now) &&
__IntegralASConfig.perfBirth !== null; // initialized to null or a time in jsAddOns1-birthdate.js
if (canUsePerformanceAPIs) {
downloadMark = __IntegralASConfig.jsDoSplit
? PERF_MARK_BOOTSTRAPPER_SCRIPT_DOWNLOAD
: PERF_MARK_MAIN_SCRIPT_DOWNLOAD;
markResource(downloadMark, __IntegralASConfig.scriptUrl); // in split mode, this captures download time for the bootstrapper script, in bundled mode, the bundled/main script
_addMark(PERF_MARK_BOOTSTRAPPER_EXECUTION + START_CODE, Math.round(__IntegralASConfig.perfBirth)); // put the birthdate that we already captured into our list of marks
markEnd(PERF_MARK_BOOTSTRAPPER_EXECUTION); // roughly the end time of execution for the bootstrapper script in split mode, in bundled mode, end of the bootstrapper part of the script and start of the module definition part
} else {
setNoops();
}
} catch (err) {
// TODO: remove if we never get here?
setNoops();
if (isFunc(__IASScope.__IntegralASDiagnosticCall)) {
__IASScope.__IntegralASDiagnosticCall('perf', err, __IntegralASConfig);
}
}
}
_init();
return {
mark: mark,
markStart: markStart,
markEnd: markEnd,
markResource: markResource,
getData: getData,
getStart: getStart,
getEnd: getEnd
};
};
__IntegralASConfig.perf = __IntegralASConfig.perfFactory();
} catch(err) {
__IntegralASConfig = {};
__IntegralASDiagnosticCall('bootstrapper', err);
}
__IntegralASConfig.initialize=function(e,t,n){var r={};if(Object.assign)e=Object.assign({},e);else{for(var i in e)r[i]=e[i];e=r}class o{constructor(){this.logs=[]}add({storeModelName:e,key:t,value:n,timeStamp:r}){this.logs.push({storeModelName:e,key:t,value:n,timeStamp:r})}getHistory(){return this.logs}logHistory(){}}class a{constructor({storeModelName:e}){this.storeModelName=e,this.storeModelHistory=new o}set(e,t,n={locked:!0}){try{Object.defineProperty(this,e,{value:t,writable:!n.locked,configurable:!1}),this.storeModelHistory.add({storeModelName:this.storeModelName,key:e,value:t,timeStamp:Date.now()})}catch(e){}}get(e){return this[e]}getHistory(){return this.storeModelHistory.getHistory()}logHistory(){this.storeModelHistory.logHistory()}}const s={useSingleEvent:0};class c extends a{constructor(){super({storeModelName:"staticFeatures"}),this.set("useSingleEvent",function({percentage:e}){return e>100*Ot.random()}({percentage:s.useSingleEvent}))}}class u extends a{constructor(){var e;super({storeModelName:"fencedFrame"}),this.isFencedFrame=!1,this.isReportEventApiAvailable=!1,this.set("isFencedFrame",K.isDef(t.fence)),this.set("isReportEventApiAvailable",this.isFencedFrame&&K.isFunction(null===(e=t.fence)||void 0===e?void 0:e.reportEvent))}reportEvent(e){try{t.fence.reportEvent({destinationURL:e})}catch(e){}}sendDt(){if(this.isReportEventApiAvailable)try{const t=new Ye(e.dtBaseURL),n={time:at.getTagTime(),type:"g",[De.FencedFrame]:1};e.anId?t.setParam("anId",e.anId):e.advEntityId&&t.setParam("advEntityId",e.advEntityId),t.setParam("asId",e.asid),t.setParam("tv",n),this.reportEvent(t.toString())}catch(e){}}}class d extends a{constructor({contextNode:e}){super({storeModelName:"jsConfigRequest"}),this.url="",this.contentType="",this.verificationParameters={},this.contentType="",this.contextNode=e,this.buildRequestUrlFromParameters({contextNode:e})}buildRequestUrlFromParameters({contextNode:e,omidParameters:t}){this.setParameters({contextNode:e,omidParameters:t}),this.buildRequestUrl({contextNode:e})}setParameters({contextNode:t,omidParameters:n}){if(n)if("string"==typeof n)try{const e=JSON.parse(n);this.set("verificationParameters",e,{locked:!1})}catch(e){}else this.set("verificationParameters",n,{locked:!1});else{const n=null==t?void 0:t.dataAttributes,r=(null==n?void 0:n.iasParameters)||e.iasParameters;if("string"==typeof r)try{this.set("verificationParameters",JSON.parse(r),{locked:!1})}catch(e){}else void 0!==r&&this.set("verificationParameters",r,{locked:!1})}this.set("contentType",this.verificationParameters.contentType||"",{locked:!1})}buildRequestUrl({contextNode:t}={}){const n=(({contextNode:t,verificationParameters:n}={})=>{var r;const i=null==t?void 0:t.queryParameters,o=null==i?void 0:i.get("iasConfigHost");let a=null;const s=null==n?void 0:n.config;if(s)a=/iasProxyPartnerId=([\d]+)/g.exec(s);else try{const e=(null===(r=null==t?void 0:t.srcUrl)||void 0===r?void 0:r.href)||"";a=/iasProxyPartnerId=([\d]+)/g.exec(e),a||(a=/iasProxyPartnerId%3D([\d]+)/g.exec(e))}catch(e){}const c=null==a?void 0:a[1];return e.proxyPartnerId=c,(null==n?void 0:n.host)||o||{37103:"https://vfw.amazon-adsystem.com/ias/ivt/j",2:"https://g.bing.com/p/tpv-ias"}[c]||"https://jsconfig.adsafeprotected.com"})({contextNode:t,verificationParameters:this.verificationParameters}),r=(({contextNode:e,verificationParameters:t}={})=>{let n=null==t?void 0:t.config;if(!n)try{const t=null==e?void 0:e.srcUrl;if(t.href.includes("/jload")){const t=null==e?void 0:e.queryParameters,r=null==t?void 0:t.get("anId");r&&(n=`/jload/${r}`,t&&(n+=`?${t.toString()}`))}else{const e=/iasConfig=([^]*)/g.exec(t.href)||/config=([^]*)/g.exec(t.href);e&&"string"==typeof e[1]&&(n=decodeURIComponent(e[1]))}}catch(e){}return n})({contextNode:t,verificationParameters:this.verificationParameters});if(r){const i=(({host:e,path:t,queryParams:n,adSessionId:r})=>{const i=t.includes("?");let o=`${e}/jsconfig${t}`;return n&&(o+=`${i?"&":"?"}${n}`),r&&(o+=`&adSessionId=${r}`),o})({host:n,path:r,adSessionId:e.adSessionId,queryParams:null==t?void 0:t.staticFwjsMacros});this.set("url",i,{locked:!1})}}}var g,l,f;!function(e){e.Firewall="Firewall",e.FirewallMonitoring="FirewallMonitoring",e.FirewallBlocking="FirewallBlocking",e.CampaignMonitoring="CampaignMonitoring",e.Amt="Amt"}(g||(g={})),function(e){e.Rjss="rjss",e.Rjsi="rjsi",e.JsVid="jsvid",e.FwjsVid="fwjsvid",e.JsApi="jsapi",e.Jload="jload",e.Jss="jss",e.Jsi="jsi",e.Amt="amtjs"}(l||(l={})),function(e){e.AnId="anId",e.TagType="tagType",e.AdvEntityId="advEntityId",e.PubEntityId="pubEntityId",e.CreativeDomain="creativeDomain",e.CreativePath="creativePath",e.CreativeUrl="creativeUrl"}(f||(f={}));const p={[g.Firewall]:[l.Jss,l.Jsi,l.Rjss,l.Rjsi,l.FwjsVid,l.JsApi],[g.CampaignMonitoring]:[l.Jload,l.JsVid],[g.Amt]:[l.Amt]},m=({contextNode:e,measurementConfig:t})=>{let n=S({contextNode:e,measurementConfig:t});return n||(n=h({contextNode:e,measurementConfig:t})),n},h=({contextNode:e,measurementConfig:t})=>{let n=null;const r=I({contextNode:e,measurementConfig:t});return r&&(n=v({tagUrl:r})),n},v=({tagUrl:e})=>{let t,n=null,r=null,i=null;try{r=e?new URL(e):null,t=null==r?void 0:r.pathname,i=F({pathname:t})}catch(e){}return r&&t&&i===g.Firewall&&(n=P({parsedUrl:r})),r&&t&&i===g.CampaignMonitoring&&(n=M({parsedUrl:r})),r&&t&&i===g.Amt&&(n=V({parsedUrl:r})),n},I=({contextNode:e,measurementConfig:t})=>{let n=null;const{currentScript:r,isFrameInFrame:i,isLegacyTagRedirectedToStatic:o}=t;return n=i?A({currentScript:r}):E({contextNode:e}),n&&!(null==n?void 0:n.startsWith("http"))&&(n=R({url:n})),n},E=({contextNode:e})=>{let t=null;const n=null==e?void 0:e.src;return n&&(t=n),t},A=({currentScript:e})=>{let t=null;const n=null==e?void 0:e.getAttribute("src");return n&&(t=n),t},S=({contextNode:e,measurementConfig:t})=>{let n=null;const r=y({contextNode:e,measurementConfig:t});return r&&(n=O({configPath:r})),n},y=({contextNode:e,measurementConfig:t})=>{let n=null;const{isStaticMode:r,iasParameters:i,isSingleInstance:o,isStaticIframeTag:a}=t;return o?n=T({iasParameters:i}):(r||a)&&(n=D({contextNode:e})),n},T=({iasParameters:e})=>{let t=null;if(e){const n=_({jsonOrObject:e});if(n){const{config:e}=n;e&&(t=e)}}return t},D=({contextNode:e})=>{const t=w({contextNode:e});return(null==t?void 0:t.config)||null},O=({configPath:e})=>{let t=null;const n=(({configPath:e})=>{let t=null;const n=null==e?void 0:e.split("?"),r=Array.isArray(n)&&n[0],i=Array.isArray(n)&&n[1];if(r&&(t={pathname:r}),(null==t?void 0:t.pathname)&&i)try{const e=new URLSearchParams(i);t.search=`?${i}`,t.searchParams=e}catch(e){}return t})({configPath:e}),r=null==n?void 0:n.pathname,i=F({pathname:r});return r&&i===g.Firewall&&(t=P({parsedUrl:n})),r&&i===g.CampaignMonitoring&&(t=M({parsedUrl:n})),t},w=({contextNode:e})=>{let t={};const n=N({contextNode:e}),r=C({contextNode:e});return t=n||r,t},N=({contextNode:e})=>{var t;let n=null;const r=null===(t=null==e?void 0:e.dataAttributes)||void 0===t?void 0:t.iasParameters;if(r){const e=_({jsonOrObject:r});n=(null==e?void 0:e.config)?e:null}return n},C=({contextNode:e})=>{let t=null;if(null==e?void 0:e.queryParameters){const n=b({queryParams:e.queryParameters});t=(null==n?void 0:n.config)?n:null}return t},b=({queryParams:e})=>({config:e.get("config")||e.get("iasConfig"),host:e.get("host")||e.get("iasConfigHost"),contentType:e.get("iasConfigContentType"),sca:e.get("iasSca"),xsca:e.get("iasXsca"),h:e.get("iasHeight"),w:e.get("iasWidth")}),R=({url:e})=>`https:${e}`,_=({jsonOrObject:e})=>{let t=null;if("string"==typeof e)try{t=JSON.parse(e)}catch(e){}else t=e;return t},M=({parsedUrl:e})=>{var t;let n;const r=e.pathname.split("/").splice(1),[i,o]=r;return n=o||(null===(t=e.searchParams)||void 0===t?void 0:t.get("anId")),{anId:n,tagType:i}},P=({parsedUrl:e})=>{const t=e.search,n=e.pathname.split("/").splice(1),[r,i,o,a,...s]=n,c=`/${s.join("/")}`;let u=i&&c?`//${i}${c}`:null;return t&&(u+=t),{tagType:r,advEntityId:o,pubEntityId:a,creativeDomain:i,creativePath:c,creativeUrl:u}},V=({parsedUrl:e})=>{var t,n,r,i;const o=e.pathname.split("/").splice(1),[a]=o;return{tagType:a,advEntityId:(null===(t=e.searchParams)||void 0===t?void 0:t.get("ias_aeId"))||"",pubEntityId:(null===(n=e.searchParams)||void 0===n?void 0:n.get("ias_peId"))||"",contractId:(null===(r=e.searchParams)||void 0===r?void 0:r.get("ias_cId"))||"",tagId:(null===(i=e.searchParams)||void 0===i?void 0:i.get("ias_tId"))||""}},F=function({pathname:e}){let t=null;const n=Object.keys(p).find((t=>p[t].some((t=>null==e?void 0:e.includes(t)))));return n&&(t=n),t};class x extends a{constructor({isDomless:t,contextNode:n,measurementConfig:r}){super({storeModelName:"adTag"}),this.anId=null,this.pubEntityId=null,this.advEntityId=null,this.tagId=null,this.contractId=null,this.tagType=null,this.creativeDomain=null,this.creativePath=null,this.creativeUrl=null,this.staticTagParams=null;const i=(({isDomless:e,contextNode:t,measurementConfig:n})=>{let r=null;return e||(r=m({contextNode:t,measurementConfig:n})),r})({isDomless:t,contextNode:n,measurementConfig:r});this.anId=null==i?void 0:i.anId,this.pubEntityId=null==i?void 0:i.pubEntityId,this.advEntityId=null==i?void 0:i.advEntityId,this.tagId=null==i?void 0:i.tagId,this.contractId=null==i?void 0:i.contractId,this.tagType=(null==i?void 0:i.tagType)||e.mode,this.creativeDomain=null==i?void 0:i.creativeDomain,this.creativePath=null==i?void 0:i.creativePath,this.creativeUrl=null==i?void 0:i.creativeUrl}updateWithVerificationParameters({verificationParameters:e}){var t,n,r,i,o,a,s,c,u;const d=(({verificationParameters:e})=>{let t=null,n=null;const r=_({jsonOrObject:e});if(r){const{config:e}=r;e&&(t=e),t&&(n=O({configPath:t}))}return n})({verificationParameters:e});this.anId=null!==(t=this.anId)&&void 0!==t?t:null==d?void 0:d.anId,this.pubEntityId=null!==(n=this.pubEntityId)&&void 0!==n?n:null==d?void 0:d.pubEntityId,this.advEntityId=null!==(r=this.advEntityId)&&void 0!==r?r:null==d?void 0:d.advEntityId,this.tagId=null!==(i=this.tagId)&&void 0!==i?i:null==d?void 0:d.tagId,this.contractId=null!==(o=this.contractId)&&void 0!==o?o:null==d?void 0:d.contractId,this.tagType=null!==(a=this.tagType)&&void 0!==a?a:null==d?void 0:d.tagType,this.creativeDomain=null!==(s=this.creativeDomain)&&void 0!==s?s:null==d?void 0:d.creativeDomain,this.creativePath=null!==(c=this.creativePath)&&void 0!==c?c:null==d?void 0:d.creativePath,this.creativeUrl=null!==(u=this.creativeUrl)&&void 0!==u?u:null==d?void 0:d.creativeUrl}updateWithResolvedJsConfig({jsConfig:e,measurementConfig:t}){t.isStaticMode&&!this.tagType&&(this.tagType=null==e?void 0:e.mode)}}var L;!function(e){e.Iframe="i",e.Script="s"}(L||(L={}));class k extends a{constructor({isDomless:e,currentWindow:t,defaultBootstrapperConfig:n}){super({storeModelName:"measurementConfig"}),this.setDefaultProps(),this.setBaseProps({defaultBootstrapperConfig:n}),e||this.setDomOnlyProps({currentWindow:t,isStaticMode:this.isStaticMode,currentScript:this.currentScript})}setDefaultProps(){this.set("tagDeliveryType",L.Script,{locked:!1})}setBaseProps({defaultBootstrapperConfig:e}){this.set("adRefreshThreshold",e.adRefreshThreshold),this.set("birthdate",e.birthdate),this.set("isResolved",e.isResolved,{locked:!1}),this.set("perfBirth",e.perfBirth),this.set("staticMode",e.staticMode),this.set("useFIF",e.useFIF),this.set("currentScript",e.currentScript),this.set("iasParameters",e.iasParameters),this.set("jsDiag",!0),this.set("spImpJsInfoMinLength",200),this.set("spImpMaxLength",1e4),this.set("isStaticMode",e.staticMode,{locked:!1}),this.set("isFrameInFrame",e.useFIF),this.set("isStaticFrameInFrame",this.get("isStaticMode")&&this.get("isFrameInFrame")),this.setDebugProp()}setDomOnlyProps({currentWindow:e,isStaticMode:t,currentScript:n}){this.setSingleInstanceProps(),this.setTagDeliveryTypeProps({currentWindow:e}),this.setStaticRedirectProps({isStaticMode:t,currentScript:n})}setSingleInstanceProps(){try{this.set("adSlots",null===top||void 0===top?void 0:top.iasAdSlots,{locked:!1}),this.set("isSingleInstance",null===top||void 0===top?void 0:top.isSingleIASInstance,{locked:!1})}catch(e){}}setTagDeliveryTypeProps({currentWindow:e}){var t,n;const r=(null===(n=null===(t=null==e?void 0:e.location)||void 0===t?void 0:t.href)||void 0===n?void 0:n.includes("fw.html"))?L.Iframe:L.Script,i=r?r===L.Iframe:void 0,o=r?r===L.Script:void 0;this.set("tagDeliveryType",r),this.set("isStaticIframeTag",i,{locked:!1}),this.set("isStaticScriptTag",o,{locked:!1})}setStaticRedirectProps({isStaticMode:e,currentScript:t}){e&&(null==t?void 0:t.src)&&(t.src.includes("/jload")&&(this.set("isJloadRedirect",!0),this.set("isLegacyTagRedirectedToStatic",!0)),t.src.includes("/jsvid")&&(this.set("isJsvidRedirect",!0),this.set("isLegacyTagRedirectedToStatic",!0)),t.src.includes("/rjss")&&(this.set("isRjssRedirect",!0),this.set("isLegacyTagRedirectedToStatic",!0)),t.src.includes("/fwjsvid")&&(this.set("isFwjsvidRedirect",!0),this.set("isLegacyTagRedirectedToStatic",!0)))}setDebugProp(){this.set("debug",!1)}}new class{constructor(){this.eventMap={}}on(e,t){this.eventMap[e]||(this.eventMap[e]=new Set),this.eventMap[e].add(t)}off(e,t){this.eventMap[e]&&this.eventMap[e].delete(t)}emit(e,...t){this.eventMap[e]&&this.eventMap[e].forEach((e=>e(...t)))}};const U=({url:e})=>{let t;const n=["config","iasConfig"];return e&&e.includes("fw.js")&&(n.forEach((t=>{e&&(e=(({url:e,queryParamName:t})=>{const n=new URL(e).search,r=new URLSearchParams(n);r.delete(t);const i=new URL(e);return i.search=r.toString(),i.toString()})({url:e,queryParamName:t}))})),e.includes("?")&&(t=e.split("?")[1])),t};class W extends a{constructor({contextNodeElement:e}){if(super({storeModelName:"contextNode"}),e){const t=new URL(e.src);this.set("element",e),this.set("srcUrl",t),this.set("src",t.href),this.set("path",t.pathname),this.set("protocol",t.protocol),this.set("dataAttributes",e.dataset),this.set("queryParameters",t.searchParams),this.set("staticFwjsMacros",U({url:t.href}))}}}const G=new class{addModel(e){try{Object.defineProperty(this,e.storeModelName,{value:e,writable:!1,configurable:!1,enumerable:!0})}catch(e){}return this[e.storeModelName]}getHistory(){return Object.keys(this).reduce(((e,t)=>{const n=this[t].getHistory();return e.concat(n)}),[])}logHistory(){}};function B(){"use strict";var t,n;e.executedContinueMain||(G.adTag.updateWithResolvedJsConfig({jsConfig:e,measurementConfig:G.measurementConfig}),e.executedContinueMain=!0,e.perf.markStart(ne),ge(e).verifyContextNode(),t=function(t,n,r,i,o,a,s,c,u,d,g){var l,f;try{new Xi({contextNode:e.contextNode,features:u,bootstrapper:e}).start()}catch(e){o.add(Q.ERROR_CODES.AD_SERVER_POST_IMPRESSION_MACRO)}e.perf.markStart(ie),e[De.B11]="1"===e[De.AdHeight]&&"1"===e.adWidth?"true":"false",e[De.CNod]=e[De.ContextNode]?"true":"false",z.getAggregator().trigger(Se.AddOutputItem,{output:G.measurementConfig.mainBirthdate},De.MainFunctionStartedNow,{type:Q.IMPRESSION_EVENT});var p=e.hasOwnProperty("origMobOrTab")?e.origMobOrTab:e.mobOrTab;z.getAggregator().trigger(Se.AddOutputItem,{output:p?"1":"0"},De.BootstrapperMobOrTab,{type:Q.IMPRESSION_EVENT}),z.getAggregator().trigger(Se.AddOutputItem,{output:e.app?"1":"0"},De.BootstrapperApp,{type:Q.IMPRESSION_EVENT}),z.getAggregator().trigger(Se.AddOutputItem,{output:e.mobAppWebview?"1":"0"},De.BootstrapperMobAppWebview,{type:Q.IMPRESSION_EVENT}),z.getAggregator().trigger(Se.AddOutputItem,{output:G.measurementConfig.tagDeliveryType},De.TagDeliveryType,{type:Q.IMPRESSION_EVENT});var m=Ze().getUserAgent(),h=z.getAggregator().request(Te.MobileApp);!(h&&h.isMobileAppEnvironment&&h.isMobileAppEnvironment())&&m.indexOf("IMDb-flg")>-1&&(z.getAggregator().trigger(Se.AddOutputItem,{output:"1"},De.MobileAppEnvironment,{type:Q.IMPRESSION_EVENT}),z.getAggregator().trigger(Se.AddOutputItem,{output:"a_imdb"},De.MatchedMobileAppDetectionRule,{type:Q.IMPRESSION_EVENT}));j(r,i,u,o),G&&G.fencedFrame&&G.fencedFrame.sendDt();try{a.isApplicable(s,d)&&a.start(),f=c.detectTopURL(),u.on("exch")&&(new ft).createInstance(o,i).parse(f),(l=Mi()).isApplicable(u)&&l.start(u),d.usesGroupMCustomMetric()&&Ce(),g.start()}catch(e){o.add(Q.ERROR_CODES.IMPRESSION_LEADUP)}return e.perf.markEnd(ie),f}((n=function(){var t,n,r,i,o,a,s,c,u,d,g,l={};e.perf.markStart(re);var f=z.getAggregator();(function(){var t,n,r;r=z.getAggregator().request(Te.OmidAdSessionContext),t=r.app&&r.isDisplay&&!r.isWeb,(n=e.mobFwUrl&&e.mobFwUrl.indexOf("/blocking/")>-1)&&r.isLimitedSandbox&&"1"===e.adWidth&&"1"===e[De.AdHeight]&&(r.isLimitedSandbox=!1);t&&n&&(r.delayingViewabilityEvents=!0);"app"!==r.environment&&!0!==e.mobAppWebview||(e.origMobOrTab=e[De.MobOrTab],e[De.MobOrTab]=!0)})(),l.mFeatures=f.request(Te.Features),l.mFeatures||(l.mFeatures=f.provide(Te.Features,ht()));e.integration&&l.mFeatures.setReportedBootstrapFeatures("intblk","integration");e.autotagSizeSet&&l.mFeatures.setReportedBootstrapFeatures("ats","autotagSizeSet");e.encodeInvalidUrlChars=!at.isDomless()&&l.mFeatures.on("encodeInvalidUrlChars"),f.provide(Te.MobileApp,(function(){return t=t||new Xr(l.mFeatures)})),f.provide(Te.Context,at),l.mBrowser=f.request(Te.Browser),l.mErrors=f.request(Te.Errors),l.mIds=f.request(Te.IDS),l.iOutput=Le(f),f.request(Te.JSONP),l.mComm=f.request(Te.Communication),l.viewabilityMeasurement=new Fn(xn(l.mIds),l.mFeatures,l.mBrowser).create(),function(e,t){if(e&&e.queuedOutputItems)for(var n=0;n0&&(z.getAggregator().trigger(Se.AddOutputItem,{output:c.join(".")},De.MetricIdEventCall,{type:Q.IMPRESSION_EVENT}),z.getAggregator().trigger(Se.AddOutputItem,{output:c},De.MetricIdList,{type:Q.DT_CODES.UNLOAD,asION:!0}));return s}(t);z.getAggregator().provide(Te.ViewabilityDefinitions,o),K(o).map(function(e,t,n,r){return function(i,o){var a,s,c,u=pr(o,t),d=tr(n,e,o.rts).getCallbacks(),g=Ve(r.createPingJobs(o.type,o.timeInViewThresholds,d,o.metricId));return o.sendOtherwiseInViewSignal&&(c=pr(o,t,o.sendOtherwiseInViewSignal),s=Ve(r.createPingJobs(o.type,o.timeInViewThresholds,d,o.metricId,o.sendOtherwiseInViewSignal))),o.rtsCallbacks=d,o.thresholdType===Q.GROUPM_MOBILE_PASS_THRU_TIME_IN_VIEW_THRESHOLD_TYPE?a=fr(u,o,g,at.isVideo()):(a=lr(u,qe(o.minUnit),g),o.sendOtherwiseInViewSignal&&lr(c,qe(o.minUnit),s,o.sendOtherwiseInViewSignal).start()),a.start(),a}}(t,n,r,i))}(l.mFeatures,l.mViewability,r,u),l.loopDelay=an(),l.renderDetector=Ee(),l.mDataTransfer.setViewabilityMod(l.mViewability),e.perf.markEnd(re),l}()).mDataTransfer,n.mViewability,n.mAdTalk,n.iOutput,n.mErrors,n.mAncestorOrigins,n.mBrowser,n.mPageUrls,n.mFeatures,at,n.renderDetector),function(t,n,r,i,o,a,s,c,u){try{wi(t,n,r,i,o,a,s).send(c),K.isFunction(u.triggerInitializationEvents)&&u.triggerInitializationEvents()}catch(t){__IntegralASDiagnosticCall("impsend",t,e)}}(n.mErrors,n.mFeatures,n.mIds,n.mMode,n.iOutput,n.mBrowser,n.mViewability,t,n.mVideo),function(t,n,r,i,o,a,s,c,u,d,g,l,f){try{e.perf.markStart(oe),(p=hi()).start(),p.addFieldTypes([Q.DT_SLOT.IM,Q.DT_SLOT.FF,Q.DT_SLOT.ENVIRONMENT,Q.DT_SLOT.FF_EXP]),Ki(f),function(e,t,n,r){var i=dn(e,t,n);i.isApplicable(r)&&i.start()}(t,n,r,i),function(e,t,n,r,i,o){e.bootstrapOn("getTpl")&&e.on("usetpl")&&ze(t,n,r,i,o).init()}(i,o,a,s,n,c),function(t,n,r,i,o,a,s,c,u){var d;"true"!==e.minimizeCalls&&(d=(new Date).getTime(),Ot.execAtEndOfThread((function(){H(t,n,r,i,d,o,a,s,c,u)})))}(c,u,d,s,i,o,a,n,l),function(e){e&&e.start&&e.start()}(g),((e,t)=>{if(!e.isDomless()){const n=Fi();let r=["sca","xsca","rsrch"];e&&e.isAMZN()&&(r=[]),n.start(r,t)}})(f,i),Xe(),z.runTier(Q.TIERS.VIEWABILITY),function(t){var n=vi();n.isApplicable(t)&&(n.start(),Ti.recordBlockingTime(),e.perf.mark(ae),Ti.setupOnLoadTracking(),Ti.setupBrowserDelayTracking())}(i),e.perf.markEnd(oe)}catch(e){s.add(Q.ERROR_CODES.POST_IMPRESSION)}var p}(n.mBrowser,n.mIds,n.mViewability,n.mFeatures,n.mComm,n.mDataTransfer,n.mErrors,n.iOutput,n.loopDelay,n.mAdTalk,n.viewabilityMeasurement,n.mAncestorOrigins,at),G&&G.pageMetrics&&G.pageMetrics.sendPageMetricsData(),e.perf.markEnd(ne))}function H(t,n,r,i,o,a,s,c,u,d){try{if(e.perf.markStart(se),e.tpiLookupURL)Et(s,c).init(e.tpiLookupURL);at.isDomless()||d.isStarted()&&d.sendOriginList(),z.runAll(),Ot.execAtEndOfThread((function(){!function(t,n,r,i,o,a){var s;try{e.perf.markStart(ce),s={output:(new Date).getTime()-o},t.addItem(s,"sinceFw",{type:Q.DT_CODES.ADTALK}),K.isDef(n.loopStarted())&&t.addItem({output:n.loopStarted()},"readyFired",{type:Q.DT_CODES.ADTALK}),e.perf.markEnd(ce),e.isSplitMode&&(u=e.protocol+"://"+e.sp_cdnScripts.main,e.perf.markResource(ue,u)),e.impUrl&&e.perf.markResource(de,e.impUrl),c=e.perf.getData(),z.getAggregator().trigger(Se.AddThrottledProp,Q.DT_SLOT.IM,De.Performance,K(c).toION()),r.isApplicable(at)&&r.sendAdTalkCall()}catch(e){i.add(Q.ERROR_CODES.ADTALK_DELAY)}var c,u}(t,n,r,i,o)})),e.perf.markEnd(se)}catch(e){i.add(Q.ERROR_CODES.EVENT_LOOP_ONE)}}function j(e,t,n,r){var i;try{e.isApplicable(at)&&(e.start(),t.addItem(e.getFrameMap(),"fm"),n.on("fm2")&&t.addItem(e.getFrameMapIncludingPeerCase(),"fm2"),n.on("idMap")&&(i=e.getIdMap())&&t.addItem(i,"idMap"))}catch(e){r.add(Q.ERROR_CODES.ADTALK_GENERAL)}}function q(t){var n=t&&t.sca,r=t&&t.xsca,i=t&&t.w,o=t&&t.h;return function(t){z.getAggregator().trigger(Se.AddOutputItem,{output:at.getTagTime()},De.StaticConfigResponseTime,{type:Q.IMPRESSION_EVENT});var a="string"==typeof t?JSON.parse(t):t;if(a.hasOwnProperty("creativeUrl")&&a.hasOwnProperty("nodeType")&&a.hasOwnProperty("didBlock")&&!1===a.didBlock){const{creativeUrl:e,nodeType:t}=a,n="unknown"===t?"script":t,r=G.measurementConfig.tagDeliveryType===L.Iframe?"iframe":n;z.getAggregator().trigger(Se.AddNode,r,e)}if(a.hasOwnProperty("config")&&(a=a.config),Object.assign)Object.assign(e,a);else for(var s in a)e[s]=a[s];G.measurementConfig.set("isResolved",!0),e.sp_cdnScripts=e.sp_cdnScripts||{},n&&(e.sp_cdnScripts.sca=n),r&&(e.sp_cdnScripts.xsca=r),i&&o&&(e.adWidth=i,e.adHeight=o,e.autotagSizeSet=!0),B()}}const Y=()=>{var e,t;const n=null===(e=G.jsConfigRequest)||void 0===e?void 0:e.verificationParameters,r=null===(t=G.jsConfigRequest)||void 0===t?void 0:t.contentType,i=(()=>{var e,t,n;const r=(null===(e=G.adTag)||void 0===e?void 0:e.advEntityId)||"",i=(null===(t=G.adTag)||void 0===t?void 0:t.pubEntityId)||"",o=(null===(n=G.adTag)||void 0===n?void 0:n.creativeUrl)||"",a=z.getAggregator().request(Te.IDS).getCacheBustId(),s=new URL("https://fw.adsafeprotected.com/event"),c=z.getAggregator().request(Te.AncestorOrigins);c.isApplicable(z.getAggregator().request(Te.Browser),at)&&c.start();const u=z.getAggregator().request(Te.PageURLS).detectTopURL(),d=_i(u,2e3,s.href.length,!0);return s.searchParams.append("advEntityId",r),s.searchParams.append("pubEntityId",i),s.searchParams.append("creativeUrl",o),s.searchParams.append("format","jsonp"),s.search+=`&${d.join("&")}`,s.searchParams.append("adsafe_jsinfo",`,c:${a},st:1,em:${at.embedded.toString()},fr:${at.friendly.toString()}`),s.href})();z.getAggregator().trigger(Se.AddOutputItem,{output:at.getTagTime()},De.StaticConfigRequestTime,{type:"impression"}),z.getAggregator().trigger(Se.AddOutputItem,{output:1},De.StaticUsedConfigAndBlockingRequest,{type:"impression"}),"application/json"===r?z.getAggregator().trigger(Se.GetJSON,i,q(n)):z.getAggregator().trigger(Se.JSONP,i,q(n),!1,"cbName")};const X=()=>{var e,t,n;(null===(e=G.measurementConfig)||void 0===e?void 0:e.isResolved)?B():(null===(t=G.staticFeatures)||void 0===t?void 0:t.useSingleEvent)&&"rjss"===(null===(n=G.adTag)||void 0===n?void 0:n.tagType)?Y():(()=>{var e,t,n;const r=null===(e=G.jsConfigRequest)||void 0===e?void 0:e.url,i=null===(t=G.jsConfigRequest)||void 0===t?void 0:t.contentType,o=null===(n=G.jsConfigRequest)||void 0===n?void 0:n.verificationParameters;if(r){z.getAggregator().trigger(Se.AddOutputItem,{output:at.getTagTime()},De.StaticConfigRequestTime,{type:Q.IMPRESSION_EVENT});const e="cbName";"application/json"===i?z.getAggregator().trigger(Se.GetJSON,r,q(o)):z.getAggregator().trigger(Se.JSONP,r,q(o),!1,e)}})()};var K=function(e){"use strict";return new J(e)},J=function(e){"use strict";this.iterable=e};J.prototype.isObj=function(e){"use strict";var t="object"==typeof this.iterable,n=null===this.iterable,r=t&&!n,i=!this.isArray()&&r;return e?r:i},J.prototype.isArray=function(){"use strict";return this.iterable instanceof Array},J.prototype.isEmpty=function(e){"use strict";return 0===this.keys(e).length},J.prototype.each=function(e,t){"use strict";var n=this.iterable;if(n.length===+n.length)for(var r=0,i=n.length;r4?"object":!this.isObj(!0)||this.iterable.hasOwnProperty("toString")?""+this.iterable:(this.isArray()?n=this.map((function(n,r){return K(r).toION(e,t)})):(r="{",i="}",n=this.map((function(n,r){var i="string"==typeof n&&-1!==n.indexOf("NULL"),o=K(r).toION(e,t);return i?o:(e[n]||n)+":"+o}))),r+n.join(",")+i)},J.prototype.compareTo=function(e){"use strict";var t=!1;return this.each((function(n,r){e[n]!==r&&(t||(t={}),t[n]=r)})),t},J.prototype.toParams=function(e){"use strict";return this.stringify((function(e,t){return"string"==typeof e&&-1!==e.indexOf("NULL")?t:e+":"+t}),e)},J.prototype._privateMixin=function(e,t,n){"use strict";var r;for(r in t)K.isDef(t[r])&&(n||t.hasOwnProperty(r))&&(e[r]=t[r]);return e},J.prototype.mapToObj=function(e){"use strict";var t={},n=this;return this.each((function(r,i){var o=e(r,i);K(o).isObj()&&n._privateMixin(t,o)})),t},J.prototype.invert=function(){"use strict";return this.mapToObj((function(e,t){var n={};return n[t]=e,n}))},J.prototype.mixin=function(e,t){"use strict";return this._privateMixin(this.iterable,e,t)},J.prototype.find=function(e){"use strict";var t;return this.each((function(n,r){e(n,r)&&(t=r)})),t},J.prototype.findFirst=function(e){"use strict";var t,n;return this.each((function(r,i){!n&&e(r,i)&&(t=i,n=!0)})),t},J.prototype.keys=function(e){"use strict";var t=[];return this.each((function(e){t.push(e)}),e),t},J.prototype.asStrings=function(){"use strict";var e={};return this.each((function(t,n){e[t]=""+n})),e},J.prototype.selectProperties=function(e){"use strict";var t={},n=this;return K(e).each((function(e,r){K.isDef(n.iterable[r])&&(t[r]=n.iterable[r])})),t},J.prototype.filter=function(e,t){"use strict";return this.map((function(t,n){var r;return(K.isUndef(e)||K.resolve(e,t,n))&&(r=n),r}),t)},J.prototype.toArray=function(){"use strict";return this.map((function(e,t){return t}))},J.prototype.JSONStringify=function(){"use strict";var e,n,r=!1;return t.Prototype&&t.Prototype.Version&&-1===t.Prototype.Version.indexOf("1.7")&&(r=!0),r&&(n=Array.prototype.toJSON,delete Array.prototype.toJSON),e=JSON.stringify(this.iterable),r&&(Array.prototype.toJSON=n),e},J.prototype.contains=function(e){"use strict";var t=K(this.iterable).findFirst((function(t,n){return e===n}));return K.isDef(t)},K.toBase=function(e,t){"use strict";var n,r=e<0,i="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),o=[];e=r?-e:e;do{n=e%t,o.push(i[n]),e=(e-n)/t}while(e>0);return o=o.reverse().join(""),r?"-"+o:o},K.isDef=function(e){"use strict";return void 0!==e},K.isUndef=function(e){"use strict";return!K.isDef(e)},K.isBool=function(e){"use strict";return"boolean"==typeof e},K.noop=function(){},K.identity=function(e){"use strict";return e},K.isFunction=function(e){"use strict";return"function"==typeof e},K.isStr=function(e){"use strict";return"string"==typeof e},K.useIfDef=function(e){"use strict";return!!K.isDef(e)&&e},K.stringifyTriState=function(e){"use strict";return!0===e?1:!1===e?0:"na"},K.getNum=function(e){"use strict";var t=parseInt(e);return isFinite(t)||(t=-1),t},K.resolve=function(e,...t){return K.isFunction(e)?e.apply({},t):e},K.flatJSONParse=function(e){"use strict";for(var t,n,r,i=/"(\w+)":(\d+|(?:"([^"]*)"))/g,o={},a=i.exec(e);a;)t=a[1],n=a[3],r=a[2],o[t]=n||+r,a=i.exec(e);return o},K.debounce=function(e,n,r){"use strict";var i,o=r||t;return function(...t){var r=this,a=t;o.clearTimeout(i),i=o.setTimeout((function(){i=null,e.apply(r,a)}),n)}},K.last=function(e){"use strict";return e[e.length-1]},K.collapseArgsIntoHash=function(e,t){"use strict";var n={};return t?n[e]=t:n=e,n},K.fromBoolToNum=function(e){"use strict";return e?1:0},K.isNumeric=function(e){"use strict";return K.isDef(e)&&null!==e&&!isNaN(e)},K.fromNodeListToArray=function(e){"use strict";return Array.prototype.slice.call(e)},K.encodeInvalidUrlChars=function(e,t){"use strict";var n={$:"%24","[":"%5B","]":"%5D","{":"%7B","}":"%7D","|":"%7C"},r=e;return t&&"string"==typeof e&&(r=(r=e.replace(/%(?![0-9A-F][0-9A-F])/gi,"%25")).replace(/\$|\[|\]|\{|\}|\|/gi,(function(e){return n[e]}))),r};var z=function(){"use strict";var e,t={},n=[],r=[],i=function(){var e={},t=K(arguments).toArray();return t.unshift(e),r.push(t),e},o=function(r,i,o,a,s){var c,u,d,g=function(){if(!c){var t=[];c=!0,i=["features","browser","context"],0===n.length&&(n=K(i).map((function(t,n){return e.request(n)}))),s.emits&&(r.events=new _e),s.applies&&!s.applies.apply(s,n)||(u=!0,(t=K(o).map((function(t,n){return e.request(n)}),!0)).push(r),K(r).mixin(a.apply({},t)))}var i};return d=(s=s||{}).tier,K.isDef(d)&&(t[d]=t[d]||new Pe,t[d].push(g)),e.provide(i,(function(){var e;return g(),u&&(e=r),e})),r};return i.runAll=function(){var e=K(t).keys().sort((function(e,t){return e-t}));K(e).each((function(e,t){i.runTier(t)}))},i.runTier=function(e){t[e].run(),delete t[e]},i.startSystem=function(){e=e||new Re,K(r).each((function(e,t){o.apply({},t)}))},i.getAggregator=function(){return e},i}();const Q={MRC_LARGE_AD_SIZE:242500,IN_VIEW:"inView",OUT_OF_VIEW:"outOfView",PARTIAL_VIEW_PLUS:"partialViewPlus",PARTIAL_VIEW_MINUS:"partialViewMinus",NA:"na",PIV_NA:-1,DT_CODES:{ADTALK:"a",DIAGNOSTIC:"b",PERFORMANCE:"e",THIRD_PARTY:"i",LARGE_BILLABLE:"l",VIDEO_EVENTS:"m",PING:"p",FULLY_INVIEW:"pf",QUARTILE_FULLY_INVIEW:"qf",SCA:"s",POS_INVIEW:"t",UNLOAD:"u",VIEWABILITY_READY:"v",EXTERNAL:"x",CUSTOM:"c",XSCA:"xs",ADSERVER_MACROS:"as"},DT_SLOT:{IM:"im",FF:"sca",FF_EXP:"xsca",ENVIRONMENT:"env"},DETECTION_METHODS:{AD_PLACEHOLDER:"s",AD_HUNT:"a",IFRAME:"i",VIDEO:"v",MRAID:"m",OMID:"o1",MUTATION:"c",SPECIFIED_AD:"sp",SPECIFIED_AD_COMPOUND:"spc",BUSTED_IFRAME_FLASHTALKING:"bf",BUSTED_IFRAME_YIELDMO:"by",BUSTED_IFRAME_SIZMEK:"bs",VENDOR_CELTRA:"vc"},ENGAGEMENT:{CLICKS:"clks",HOVER:"hov"},OUT_OF_VIEW_REASONS:{GEOM:"l",OBSTRUCTION:"o",FOCUS:"f",COLLAPSED:"c",HIDDEN:"h",RENDER:"r",VIDEO:"v",WINDOW:"w"},PERF_TIMELINE_TRACKER_CONFIG:{VANS:{TYPE:"vans",COUNT:4},WRAPPERS:{JS:{TYPE:"jswrapper",COUNT:15},AS:{TYPE:"flwrapper",COUNT:9}},RENDER:{TYPE:"render",COUNT:2,CODE:"tdr"}},ERROR_CODES:{GET_AD_DIMENSIONS:"a",AD_SLOT_ID:"A",AD_SERVER_POST_IMPRESSION_MACRO:"A2",BAPI_CALLBACK:"b",BROWSER_NOT_HTML5_COMPATIBLE:"B",ADTALK_GENERAL:"c",COCOA_GONE:"C",CLICK_TRACK:"Q",GET_SCREEN_LOC_GET_DIMENSIONS:"d",ADTALK_DUBIOUS:"D",IMPRESSION_PERFORMANCE:"e",POST_IMPRESSION:"E",ADTALK_DELAY:"f",VIDEO_IN_IFRAME_DIMS_CALC:"F",GDPR:"g",INIT_ADS_MANAGER:"G",PHONE_HOME:"h",FEATURE_SCRIPT:"H",HIDDEN:"H1",HIDDEN2:"H2",UID_GENERATION:"i",IMPRESSION_URLS:"I",NOT_VPAID_EVENT_OBJECT:"j",JSINFO:"J",KILL_IT:"k",NO_RESPONSE_XML:"K",LOCATION_DETAILS:"l",IMPRESSION_LEADUP:"L",MESSAGE_LISTENER:"m",MOBILE_APP:"M",AT_INIT:"N",AUTOPLAY_DETECTION:"n",ANCESTOR_ORIGINS:"o",EVENT_LOOP_ONE:"O",GET_SCREEN_LOC_PIV_CALC:"p",PLUGIN_PARSING:"P",NO_ORIGINAL_VAST:"q",AD_REFRESH:"r",AD_ERROR:"R",GET_ELEM_STYLE:"s",AT_SEND:"S",ADS_MANAGER_START_AD:"t",NO_COMPANION_AD_XML:"T",NO_VIDEO_AD_INTERFACE:"u",UNRECOGNIZED_EVENT_TYPE:"U",ENVIRONMENT:"v",CHECK_SCREEN_LOC:"V",GET_WIN_DIMENSIONS:"w",AC_WATCHER:"W",EXCHANGE_PARSING:"x",SCA:"X",BUSTED_IFRAME_IN_IO:"y",FLASH_API_ACCESS:"z",XSCA:"Z"},BROWSERS:{WEBKIT:"w",OPERA:"o",GECKO:"g",CHROME:"c",MSEDGE:"e",IE:"i",DOMLESS:"d"},MEDIA_TYPE_CODE:"mtp",MEDIA_TYPE:{DISPLAY:"display",DISPLAY_CODE:"d",VIDEO:"video",VIDEO_CODE:"v"},MEASUREMENT_STRATEGY:{DISPLAY:"display",VIDEO:"video"},TIERS:{PRE_IMPRESSION_FRAUD:4,VIEWABILITY:7,ENVIRONMENT:8},IMPRESSION_EVENT:"impression",DATA_TRANSFER_EVENT:"dt",CALLBACK_IDENTIFIER:"data-ias-callback",AD_IDENTIFIER:"data-integralas-id",IAS_DETECTOR:"iasdetector",CONTAINER_GEOMETRY_MEASUREMENT_CHANGED:"containerGeometryMeasurementChanged",OMID_GEOMETRY_MEASUREMENT_CHANGED:"omidGeometryChanged",VIEWABILITY_IN_VIEW_THRESHOLDS_INTERSECTION_OBSERVER:[0,.01,.2,.25,.3,.5,.7,.75,.8,.99,1],VIEWABILITY_IN_VIEW_THRESHOLDS_MOBILE_GRID:[0,.1,.2,.25,.3,.4,.5,.6,.7,.75,.8,.9,1],GROUPM_MOBILE_PASS_THRU_TIME_IN_VIEW_THRESHOLD_TYPE:"grpmMobPassThru",REFERRER_POLICY:"no-referrer-when-downgrade",RENDER:{CREATIVE_NODE_TYPES:["CANVAS","EMBED","IMG","OBJECT","PICTURE","SVG","VIDEO"],CONTAINER_NODE_TYPES:["A","DIV","IFRAME","INS"],WIDTH_THRESHOLD:20,HEIGHT_THRESHOLD:20,STATUS:{OTHER:"0",DETECTED:"1"},DETAILS:{ENVIRONMENT:"env",OTHER:"na"},DIAGNOSTIC:{BROKEN_IMAGE:"bi",UNQUALIFIED_SIZE:"us",QUALIFIED_SIZE:"qs",STYLED_NODE:"sn",TEXT_NODE:"tn",DOCUMENT_READY:"dr",LOAD_FIRED:"lf",CONTENT_STYLED:"cs",MRAID_DEFAULT:"md",MRAID_READY:"mr",MRAID_LOADING:"ml",MRAID_UNKNOWN:"mu",OMID_RENDERED:"or",OMID_UNRENDERED:"ou"}},RTS_KEY_FOR_VQ:"qiv",UNIQUE_ID_TOKEN:"[IAS_ASID]"};var $,Z,ee,te="mf",ne="cm",re="in",ie="pr",oe="po",ae="bl",se="lo",ce="lt",ue="md",de="id",ge=function(e){"use strict";return{verifyContextNode:function(){!(__IASScope.isDomless||e.contextNode&&null!==e.contextNode.parentNode)&&(e.contextNode=function(){var t,r=n.getElementsByTagName("script"),i=r.length,o=r[i-1],a=e.scriptUrl;try{for(;--i>=0;)if((t=r[i]).src&&0===t.src.indexOf(a)&&null===t.getAttribute("data-ias-script-tag")){o=t,t.setAttribute("data-ias-script-tag","found");break}}catch(e){}return o}())}}};!function(e){e.AddEventListener="addEventListener",e.GetTCData="getTCData",e.TcfApiReturn="__tcfapiReturn"}($||($={})),function(e){e.TcfApi="__tcfapi"}(Z||(Z={})),function(e){e.TcfApiLocator="__tcfapiLocator"}(ee||(ee={}));const le=({apiFunctionName:e,apiFrameLocatorName:t})=>{try{let n,r,i=Ot.getWindow();const o=Ot.getTop();try{n=null==o?void 0:o[e]}catch(e){for(;!r;){try{if(i.frames[t]){const e=i.frames[t];r=null==e?void 0:e.parent}}catch(e){}if(i===o)break;i=i.parent}}return n||r}catch(e){}};var fe={getMessageHandler:function(e,t){var n=fe.getCallId(),r=function(i){try{i&&i.data&&i.data[e]&&i.data[e].callId===n&&i.data[e].returnValue&&(t(i.data[e].returnValue),st.removeEvent(Ot.getWindow(),"message",r))}catch(e){z.getAggregator().trigger(Se.Error,Q.ERROR_CODES.GDPR)}};return r},getCallId:function(){return"ias_"+e.asid},send:function(e,t){z.getAggregator().trigger(Se.AddThrottledProp,Q.DT_SLOT.ENVIRONMENT,e,t)}},pe={name:"CCPAConsentDetector",dependencies:[],creator:function(){"use strict";function e(e){e&&fe.send("ccd",K(e).toION())}!function(){const t=le({apiFunctionName:"__uspapi",apiFrameLocatorName:"__uspapiLocator"});fe.send("cca",!!t),t&&function(t){var n,r;K.isFunction(t)?t("getUSPData",1,e):(n={__uspapiCall:{command:"getUSPData",version:1,callId:fe.getCallId()}},r=fe.getMessageHandler("__uspapiReturn",e),st.addEvent(Ot.getWindow(),"message",r),t.postMessage(n,"*"))}(t)}()},settings:{tier:Q.TIERS.ENVIRONMENT,applies:function(e,t,n){"use strict";return t.hasPostMessage()&&!n.isDomless()}}},me={name:"GDPRConsentDetector",dependencies:[],creator:function(){"use strict";var e=278;function t(e){var t=K.isDef(e)&&K.isDef(e.vendorConsents)&&K.isDef(e.vendorConsents[278])?e.vendorConsents[278]:void 0,n={appl:K.stringifyTriState(e.gdprApplies),cnst:K.stringifyTriState(t),glbl:K.stringifyTriState(e.hasGlobalScope),mtdt:encodeURIComponent(e.metadata)},r=e&&e.tcString;z.getAggregator().provide(Te.TCString,(function(){return r})),fe.send("gcd",K(n).toION())}!function(){const n=le({apiFunctionName:"__cmp",apiFrameLocatorName:"__cmpLocator"});fe.send("gca",!!n),n&&function(n){var r,i;K.isFunction(n)?n("getVendorConsents",[e],t):(r={__cmpCall:{command:"getVendorConsents",parameter:[e],callId:fe.getCallId()}},i=fe.getMessageHandler("__cmpReturn",t),st.addEvent(Ot.getWindow(),"message",i),n.postMessage(r,"*"))}(n)}()},settings:{tier:Q.TIERS.ENVIRONMENT,applies:function(e,t,n){"use strict";return t.hasPostMessage()&&!n.isDomless()}}};const he={name:"GDPRV2ConsentDetector",dependencies:[],creator:()=>{const e=e=>{const t=K.isDef(e)&&K.isDef(e.vendor)&&K.isDef(e.vendor.consents)&&K.isDef(e.vendor.consents[278])?e.vendor.consents[278]:void 0,n={appl:K.stringifyTriState(null==e?void 0:e.gdprApplies),cnst:K.stringifyTriState(t)};fe.send("gcd2",K(n).toION())};(()=>{const t=Z.TcfApi,n=ee.TcfApiLocator,r=le({apiFunctionName:t,apiFrameLocatorName:n});fe.send("gca2",!!r),r&&(t=>{let n,r;if(K.isFunction(t))try{t($.AddEventListener,2,e)}catch(n){try{t($.GetTCData,2,e)}catch(e){}}else n={__tcfapiCall:{command:$.AddEventListener,callId:fe.getCallId(),version:2}},r=fe.getMessageHandler($.TcfApiReturn,e),st.addEvent(Ot.getWindow(),"message",r,!1),t.postMessage(n,"*")})(r)})()},settings:{tier:Q.TIERS.ENVIRONMENT,applies:(e,t,n)=>t.hasPostMessage()&&!n.isDomless()}};var ve=function(){"use strict";var t,n=["STYLE","SCRIPT","HEAD","META"],r=Q.RENDER.CREATIVE_NODE_TYPES.concat(Q.RENDER.CONTAINER_NODE_TYPES),i=0,o=G.measurementConfig.useFIF&&at.friendlyIframe||at.isSpecifiedAd(),a=0,s=[],c=function(t){var n,r,o=t,a=t,s=at.friendly?Ot.getTop().document.body:e.contextNode.ownerDocument.body;for(;i<3;){if(s&&o===s){a=o,i=3;break}gt.isWindow(o)&&(r=void 0,r="["+Q.AD_IDENTIFIER+"-"+e.asid+"]",n=gt.crossQuerySelector(r),o=K.isDef(n)?n:o),a=o=K.isDef(o)&&o.parentNode||o,i++}return a},u=function(e){var t=function(e){var t,i,o=[],a=e&&e.getElementsByTagName&&e.getElementsByTagName("*"),s=a&&a.length;if(a)for(var c=0;c0&&(ai&&!K(n).contains(e)&&(r=e,i=t)}var o,a,s}e.length&&z.getAggregator().request(Te.UseYieldSearch)?function n(){do{o(e[t]),t+=1}while(t%500!=0&&t0&&!o&&(t=!1),"false"===a&&(n.save("cs"),t=!1),o&&!a&&function(e,t){n.save("cs");const r=/url(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t.content),i=r&&r[1],o=gt.createImage(),a=e;o.onload=function(){o.naturalHeight*o.naturalWidth>0&&a.setAttribute&&a.setAttribute(s,!1)},o.src=i,a.setAttribute(s,!0)}(e,i),t},d=function(){i?Ot.clearInterval(i):a=!1};z.getAggregator().on(Se.EvaluateCreativeFinderResult,(function(r){let i;gt.isNodeXDomainIframe(r)?(d(),t=function(t){const r={},i="readystatechange",o="load",a=Ot.getDoc(),s="complete"===a.readyState,u=function(s){const d=s&&s.type;(d===i&&"complete"===s.target.readyState||d===o)&&(c(r),n.saveNode(t),"readystatechange"===d?n.save("dr"):"load"===d&&n.save("lf"),e(r),st.removeEvent(t,o,u),st.removeEvent(a,i,u))};return s?(c(r),n.saveNode(t),n.save("dr")):(st.addEvent(t,o,u,void 0),st.addEvent(a,i,u,void 0)),r}(r)):r?(function(e){let t=!1;const r=gt.getRect(e);return e&&"IMG"===gt.getNodeName(e)&&u(e)&&(t=!0,n.save("bi")),!t&&r.width>=20&&r.height>=20}(r)&&(c(t),d()),n.saveNode(r)):(i=o.getClosestContainerName()||n.getAdNodeName(r)||t.details,n.save(i)),e(t)}));const g=function(){const e=r&&r.getAdNode();try{o.find(e)}catch(e){z.getAggregator().trigger(Se.RenderDiag,e)}},l=z.getAggregator().request(Te.MobileApp);l&&l.isMobileAppEnvironment&&l.isMobileAppEnvironment()&&at.isMraid()?function(e,n){const r=Ot.getWindow().mraid,i=r&&r.getState&&r.getState(),o="ready",a=t,s=function(){st.removeEvent(r,o,s),n.save("env"),n.save("mr"),z.getAggregator().trigger(Se.AdRendered),e({status:"1"})};n.save("env"),"default"===i?(z.getAggregator().trigger(Se.AdRendered),n.save("md"),a.status="1"):"loading"===i?(st.addEvent(r,o,s,void 0),n.save("ml")):(st.addEvent(r,o,s,void 0),n.save("mu")),e(a)}(e,n):(g(),a&&(i=Ot.setInterval(g,500))),z.getAggregator().trigger(Se.EligibleRender)}))};var Se,ye,Te,De,Oe=function(){"use strict";var e=[],t=[],n=function(e){var t;if(gt.isWindow(e))t="WINDOW";else if(gt.isNodeXDomainIframe(e))t="XIFRAME";else try{t=gt.getNodeName(e)}catch(e){r("nen")}return t},r=function(t){e.push(t)};return{build:function(){var n=[];return K(t).each((function(e,t){n.push(t)})),K(e).each((function(e,t){n.push(t)})),t=[],e=[],n.join(".")},getAdNodeName:n,save:r,saveNode:function(e){try{var i=e&&n(e),o=e&>.getRect(e),a=e&>.hasBackgroundImage(e),s=e&&e.children&&0===e.children.length,c=e&&e.innerText&&e.innerText.length>0,u=s&&c,d=o&&o.width>=Q.RENDER.WIDTH_THRESHOLD&&o.height>=Q.RENDER.HEIGHT_THRESHOLD?Q.RENDER.DIAGNOSTIC.QUALIFIED_SIZE:Q.RENDER.DIAGNOSTIC.UNQUALIFIED_SIZE;t.push(i),t.push(d),a&&t.push(Q.RENDER.DIAGNOSTIC.STYLED_NODE),u&&t.push(Q.RENDER.DIAGNOSTIC.TEXT_NODE)}catch(e){r("sne")}}}},we=function(t){"use strict";var n,r=!1,i=!1,o="1",a="0",s=function(){r=!0,u()},c=function(e){n=e,u()},u=function(){z.getAggregator().trigger(Se.AddOutputItem,{output:!n&&r?o:a},De.MeasurableForRender),n&&n.message&&!i&&(__IntegralASDiagnosticCall("renderloop",n,e),z.getAggregator().trigger(Se.AddThrottledProp,Q.DT_SLOT.ENVIRONMENT,"rle",1),i=!0)};z.getAggregator().on(Se.EligibleRender,s),z.getAggregator().on(Se.RenderDiag,c),u()},Ne=function(){"use strict";return{applies:function(e,t){var n=z.getAggregator().request(Te.MobileApp);return(e.browserIs(Q.BROWSERS.CHROME)||e.isAndroidWebViewBrowser()||e.browserIs(Q.BROWSERS.WEBKIT)||e.browserIs(Q.BROWSERS.MSEDGE))&&!n.isMobileAppEnvironment()&&e.hasIntersectionObserver()}}},Ce=function(){"use strict";var e,t,n=!1,r=z.getAggregator().request(Te.Page),i=function(){!n&&t&&e&&!r.isHidden()&&(n=!0,z.getAggregator().trigger(Se.SendDt,Q.DT_CODES.LARGE_BILLABLE))};z.getAggregator().on(Se.PrimaryAdFound,(function(t){e=t.getDims().area()>=Q.MRC_LARGE_AD_SIZE,i()})),z.getAggregator().on(Se.ImpressionSent,(function(){t=!0,i()})),r.onHiddenChange(i)},be=function(){"use strict";var e=[],t={},n={percentInView:"piv",sl:"vs",reason:"r",width:"w",height:"h",omidObstructions:"oobs"},r={omidObstructions:["sl","percentInView","reason"]};z.getAggregator().on(Se.NewScreenEvent,(function(r){var o=K(r).selectProperties(K(n).keys()),a=K(o).asStrings(),s=K(a).compareTo(t);(s=i(s))&&JSON.stringify(s)!==JSON.stringify({})&&(s.t=at.getTagTime(),e.push(s)),K(t).mixin(a)}));var i=function(e){return K(r).each((function(t,n){var r=!1;K(n).each((function(t,n){e[n]&&(r=!0)})),!1===r&&delete e[t]})),e};return{toString:function(){return K(e).toION(n)}}},Re=function(){"use strict";var e=new ke,t=new _e;return K(e).mixin(t)};!function(e){e.AdComponentAdded="adComponentAdded",e.AdComponentClicked="adComponentClicked",e.AdComponentTouchEnd="adComponentTouchEnd",e.AdComponentTouchStart="adComponentTouchStart",e.AdComponentMousedOver="adComponentMousedOver",e.AdComponentMousedOut="adComponentMousedOut",e.AdComponentPointerUp="adComponentPointerUp",e.AdComponentPointerDown="adComponentPointerDown",e.AdComponentRemoved="adComponentRemoved",e.AdImpression="adImpression",e.AdRendered="adRendered",e.AdSessionComplete="adSessionComplete",e.AdUserInteraction="adUserInteraction",e.AdVideoComplete="adVideoComplete",e.AdVideoStart="adVideoStart",e.AddNode="addNode",e.AddOutputItem="addOutputItem",e.AddThrottledOutputItem="addThrottledOutputItem",e.AddThrottledProp="addThrottledProp",e.AddToSpg="addToSpg",e.Blur="blur",e.CreativeFinderBatchCompleted="creativeFinderBatchCompleted",e.DeferredAdSessionReady="deferredAdSessionReady",e.DelayedViewabilityReady="delayedViewabilityReady",e.DelayedViewabilityReadyCallOnly="delayedViewabilityReadyCallOnly",e.DtEnterQueuingMode="dtEnterQueuingMode",e.DtExitQueuingMode="dtExitQueuingMode",e.DtReportDtsNotAllowed="dtReportDtsNotAllowed",e.EligibleRender="eligiblerender",e.EndAdSession="endAdSession",e.Error="error",e.EvaluateCreativeFinderResult="evaluateCreativeFinderResult",e.Exec="exec",e.GetJSON="getJSON",e.ImpressionSent="impressionsent",e.InternallyGeneratedGeometryEvent="internallyGeneratedGeometryEvent",e.IoPivChange="IOPivChange",e.JSONP="jsonp",e.MarkTime="markTime",e.Measurable="measurable",e.MeasureTime="measureTime",e.NewScreenEvent="newScreenEvent",e.NewState="newState",e.NodesAdded="nodesAdded",e.Notify="notify",e.OmidAdDuration="omidAdDuration",e.OmidImpressionArrived="omidimpressionarrived",e.OmidLoadedArrived="omidloadedarrived",e.OmidRendGeoUpdate="omidrendgeoupdate",e.OmidRendVideoStart="omidrendvideostart",e.PerfCheckpoint="perfCheckpoint",e.PreSendDt="preSendDt",e.PrimaryAdFound="primaryadfound",e.RenderDiag="renderdiag",e.Send="send",e.SendDiag="sendDiag",e.SendDt="sendDt",e.SendMinDt="sendMinDt",e.StartViewabilityLoop="startViewabilityLoop",e.StopAdTalk="stopAdTalk",e.Unload="unload",e.UpdateDtCount="updateDtCount",e.VideoBlockResult="videoBlockResult",e.VideoQuartileEvent="videoQuartileEvent"}(Se||(Se={})),function(e){e.BEFORE_UNLOAD="beforeunload"}(ye||(ye={})),function(e){e.AdNode="adNode",e.AdProxy="adProxy",e.AdRenderStatus="adRenderStatus",e.AdSlotIDs="adSlotIds",e.AdTalkEventAggregator="adTalkEventAggregator",e.AdTalkMessage="adTalkMessage",e.AdTalkMessageCollection="adTalkMessageCollection",e.AncestorOrigins="ancestorOrigins",e.Browser="browser",e.Communication="mComm",e.Context="context",e.Errors="mErrors",e.Features="features",e.FrameCollection="frameCollection",e.IDMapModule="idMapModule",e.IDS="ids",e.IframeCalculatorHelper="iframeCalculatorHelper",e.InterFrameQuerySelector="interFrameQuerySelector",e.IsFullyInViewProvider="isFullyInViewProvider",e.JobFactory="jobFactory",e.JSONP="mJsonp",e.MobileApp="mobileApp",e.OmidAdSessionContext="omidAdSessionContext",e.OmidAdSessionVerificationParameters="omidAdSessionVerificationParameters",e.OmidVerificationClient="omidVerificationClient",e.OmidVideoEventsString="omidVideoEventsString",e.Page="mPage",e.PageURLS="pageUrls",e.PerfActive="perfActive",e.ScreenEvents="mScreenEvents",e.TCString="tcString",e.UseYieldSearch="useYieldSearch",e.Video="video",e.VideoChannel="vc",e.VideoTranslator="videoTranslator",e.VideoVersion="videoVersion",e.Viewability="viewability",e.ViewabilityDefinitions="viewabilityDefinitions"}(Te||(Te={})),function(e){e.AdHeight="adHeight",e.AdWidth="adWidth",e.AppSDKsDetected="sdk",e.B11="b11",e.BadURLNoPeriod="bunp",e.BapiClient="bapiClient",e.BootstrapperApp="app",e.BootstrapperMobAppWebview="maw",e.BootstrapperMobOrTab="mot",e.BrowserIs="browserIs",e.CmpApi="cmpApi",e.CNod="cnod",e.ContextNode="contextNode",e.CustomMetricInViewReason="cmr",e.FencedFrame="ff",e.GeometryEventsReceived="og",e.Initial="initial",e.Length="length",e.MainFunctionStartedNow="mtim",e.Mapp1ExclusionListMatch="xlu",e.MatchedMobileAppDetectionRule="drul",e.MeasurableForRender="rmeas",e.MetricId="metricId",e.MetricIdEventCall="scm",e.MetricIdList="metricIdList",e.MismatchOfIntegratedBlockingTagTypes="smm",e.MobAppWebview="mobAppWebview",e.MobOrTab="mobOrTab",e.MobApp="app",e.MobileAppEnvironment="mapp",e.MobileFWURL="mobFwUrl",e.MRAIDInjectionStatus="mi",e.OMIDAppMeasurement="oam",e.OMIDRenderedIndication="oren",e.OMIDSessionError="oser",e.OMIDSessionFinish="osef",e.OriginalMobOrTab="origMobOrTab",e.Performance="prf",e.PluginDecoded="pd",e.PluginList="pl",e.SafeFrame="sf",e.SafeFrameHostURL="sfhu",e.SafeFrameInvalidHostURL="sfiv",e.Slid="slid",e.StaticConfigRequestTime="scq",e.StaticConfigResponseTime="scs",e.StaticImpressionRFWCallRequestTime="siq",e.StaticImpressionRFWCallResponseTime="sis",e.StaticUsedConfigAndBlockingRequest="scb",e.TagDeliveryType="tdt",e.ThirdPartyDataLookup="tpiLookup",e.VideoBreakPosition="vbp",e.VideoChannel="vc",e.VideoPlayerState="vps"}(De||(De={}));const _e=function(){"use strict";const e={},t={},n=function(e,n){t[e]=t[e]||[],t[e].push(n)},r=function(t,n){const r=e[t];r&&r.run.apply({},n)},i=function(e,n,r){let i=t[e];if(i&&0!==i)return r&&(i=i.slice(0,1)),K(i).each((function(e,t){n.apply({},t)})),!0},o=function(t,n,r){e[t]=e[t]||new Pe,e[t].push(n,r)};return{on:function(e,t){let n={};t?n[e]=t:n=e,K(n).each(o),K(n).each(i)},once:function(e,t){i(e,t,!0)||o(e,t,1)},trigger:function(e){const t=K(arguments).toArray();t.shift(),r(e,t)},persistentTrigger:function(e){const t=K(arguments).toArray();t.shift(),n(e,t),r(e,t)}}};var Me=function(){"use strict";var e=function(t,n,r){var i,o,a=n.length,s=gt.isWindow(t)?t.frames:gt.getChildWindowsOf(t);if(r&&r(t,n),s&&s.length){for(i=0;i=i&&!t[i]&&(r.getTask().call(),t[i]=!0)}))}}},Fe=function(){"use strict";var e,n=new xe;return{listen:function(r,i,o){e=function(e){!function(e,t,r,i){var o,a,s,c;if(JSON&&JSON.parse)try{o=JSON.parse(e.data),a=e.source,c=K.noop,t(o)&&(i&&(s=i(a,o))&&(c=function(){n.send((function(){return s}),a)}),r(e,o,c))}catch(e){o&&z.getAggregator().trigger(Se.Error,Q.ERROR_CODES.MESSAGE_LISTENER)}}(e,r,i,o)},st.addEvent(t,"message",e)},stop:function(){e&&st.removeEvent(t,"message",e),e=null}}},xe=function(){"use strict";return{send:function(e,t){if(JSON&&JSON.stringify){var n=function(e){return K(e).isObj()?[e]:(new Me).getFrames(e)}(t);K(n).each((function(t,n){var r,i=K.resolve(e,n)||{};i.sentTime=Ot.now(),r=function(e){return K(e).mapToObj((function(e,t){var n;return K.isFunction(t)||((n={})[e]=t),n}))}(i),n.postMessage(K(r).JSONStringify(),"*")}))}}}},Le=function(e){"use strict";var t=0,n={},r=function(e,n,r){if(K.isUndef(e.output))throw new Error("item with id "+n+' must have "output" method');this.item=e,this.id=n||++t,this.props=r||{},this.output=function(){var t=K.resolve(e.output);return this.props.asION&&(t=K(t).toION()),t}},i=function(e){var t,r,i=[];for(t in n)n.hasOwnProperty(t)&&(r=e(t,n[t]))&&i.push(r);return i},o=function(e,t,i){i="string"!=typeof(i=i||t)?i:{};var o=K(e.output).isObj()&&!i.asION,a=function(e,t,i){var o=new r(e,t,i);n[o.id]=o};o?K(e.output).each((function(e,t){a({output:t},e,i)})):a(e,t,i)};return e.on(Se.AddOutputItem,(function(e,t,n){o(e,t,n)})),{addItem:o,filterOutput:function(e,t){return i((function(n,r){var i,o=r.props;e(o)&&(i=r.output(),o.encode&&(n=encodeURIComponent(n),i=encodeURIComponent(i)),K.isFunction(t)?t(n,i):t[n]=i)}))},iterate:i,cleanup:function(){i((function(e,t){t.props.flagForRemoval&&delete n[e]}))},getItem:function(e){return n[e]}}};const ke=function(){"use strict";const e={},t=(t,n)=>{e[t]=n};return{request:function(t){let n;const r=e[t],i=K(arguments).toArray();return i.shift(),K.isUndef(r)||(n=K.isFunction(r)?r.apply({},i):r),n},provide:(e,n)=>(n?t(e,n):K(e).each(t),n)}};var Ue=function(){"use strict";return{createInstance:function(e,t,n,r){return at.isDomless()?new Ge:new We(e,t,n,r)}}},We=function(e,t,n,r){"use strict";var i,o=function(e,t){return{viewState:Q.NA,posViewState:Q.NA,embedded:at.embedded,winDimensions:e,adDimensions:t}};return{collect:function(){var t=e.find(),a=t.getOutOfViewReasons(),s=n.isHidden(),c=r.isDeviceTypeGroupMobile()&&i?i:dt(gt.calcWinDims()),u=t.getDims();return i=c,t.hasAd()&&c.hasValidDims()&&u.hasValidDims()?(!0===s&&a.push(Q.OUT_OF_VIEW_REASONS.FOCUS),{winDimensions:c,adDimensions:u,containerDimensions:t.getContainerDims(),method:t.getDetectionMethod(),viewState:a.length?Q.OUT_OF_VIEW:t.getViewState(),viewStateIgnoringRender:t.getViewStateIgnoringRender(),percentInView:t.getPercentInView(),percentInViewIgnoringRender:t.getPercentInViewIgnoringRender(),reason:a.join("."),obstructed:K.stringifyTriState(t.isObstructed()),isHidden:K.stringifyTriState(t.isHidden()),tabHidden:K.stringifyTriState(s),posViewState:t.getViewState(),adCompCount:t.getComponentCount(),sliceStatus:t.getSliceStatus()}):o(c,u)}}},Ge=function(){"use strict";return{collect:function(){return{}}}},Be=function(e){"use strict";e=e||K.identity;var t=[],n=Ot.now(),r=function(){var e=Ot.now();t.length&&(t[t.length-1].duration+=e-n,n=e)};return{clear:function(){r(),t=[]},fastForward:r,get:function(){return t},hasAlwaysBeen:function(e){return 1===t.length&&t[0].state===e},addState:function(n){var i=t[t.length-1],o=e(n);r(),0!==t.length&&o===i.state||t.push({state:o,duration:0})}}};const He=function(e,t){"use strict";const n=e||1;let r,i=0,o=0,a=0;return{start:()=>{i%n==0&&(r=Ot.now())},stop:()=>{const e=r||t;i%n==0&&(a+=Ot.now()-e,o++),i++},getTime:()=>a,getCount:()=>o}};var je=function(){"use strict";var e,t=0,n=0,r=new _e(!0),i=function(){e&&(t++,r.trigger(t),n>t?Ot.execAtEndOfThread(i):o())},o=function(){e=!1,t=0};return{onTick:function(e,t){var i=K.collapseArgsIntoHash(e,t);K(i).each((function(e,t){e=parseInt(e),n=e>n?e:n})),r.on(i)},start:function(){e||(e=!0,Ot.execAtEndOfThread(i))},kill:o,isActive:function(){return e}}},qe=function(e){"use strict";var t,n=0,r=at.getTagTime(),i=0,o=!1;return{getTotalTime:function(){return i},stop:function(){n=0,r=at.getTagTime(),o=!1},mark:function(){t=o?at.getTagTime()-r:0,(n+=t)>=e&&(i+=n-t1,a&&(i=r[1].split("&")[0],o=[r[0],i].join(e),g=g.replace(o,o+t)))},fullDom:o,hostname:s,sub:f,master:p,setParam:function(e,t){l[e]=l[e]||{},"string"==typeof t||"number"==typeof t?l[e]=t:K(l[e]).mixin(t)},path:function(e){d=e},toString:function(){const e=f()?f()+".":"",t=d?"/"+d:"",n=g||!K(l).isEmpty()?h():"";return a+"://"+e+p()+t+n}}};var Xe=function(){"use strict";var e=function(e){var t=[];return K(e).each((function(e,n){t.concat(n).join("").length<=400&&t.push(n)})),t},t=function(e){var t=gt.getAncestorNodes(e);return K(t).map(n)},n=function(e,t){var n;return t&&t.id&&(n=t.id.replace(/[^\w-_.>\/]/g,"")),n};return function(){var n,r;try{return at.friendly&&!at.isMobileApp()&&((n=z.getAggregator().request(Te.AdSlotIDs))?r=n:(n=function(){var n,r;return(n=gt.getOurNodeInTop())&&(r=t(n)),r&&e(r)}(),n&&(z.getAggregator().trigger(Se.AddOutputItem,{output:n},De.Slid,{type:Q.DT_CODES.ADTALK,asION:!0}),z.getAggregator().provide(Te.AdSlotIDs,n),r=n))),r}catch(e){z.getAggregator().trigger(Se.Error,Q.ERROR_CODES.AD_SLOT_ID)}}()},Ke={name:"AdRefreshDetection",dependencies:[],creator:function(){"use strict";var t=[15,20,30,45,60,90],n={start:function(){var t=this,n=e.asid,r=t.parseQuery(),i=t.getCacheId(r);n&&r.chanId&&(this.recordAdSlotImpression(n,r.chanId,i,(function(e,n){e?z.getAggregator().trigger(Se.Error,Q.ERROR_CODES.AD_REFRESH):t.sendRefreshSession(n)})),t.registerInternalViewabilityListener(r.chanId,i))},getCacheId:function(t){if(t&&t.cacheId)return t.cacheId;if(e&&e.contextNode){try{const n=e.contextNode.ownerDocument.querySelector("#ias-"+t.cb);if(n)return n.id}catch(e){}if(e.contextNode.nextSibling&&e.contextNode.nextSibling.id)return e.contextNode.nextSibling.id}return null},adRefreshIntervalIsValid:function(e){return-1!==t.indexOf(e)},parseQuery:function(){for(var t=e.reqquery.split("&"),n={},r=0;r-1?e.OPERA:t.indexOf("firefox")>-1?e.GECKO:t.indexOf("edg")>-1?e.MSEDGE:t.indexOf("chrome")>-1?e.CHROME:t.indexOf("webkit")>-1?e.WEBKIT:t.indexOf("msie")>-1?e.IE:encodeURIComponent(t)||"_"};return{browserIs:function(e){return t()===e},hasIntersectionObserver:function(){return"function"==typeof IntersectionObserver},hasMutationObserver:function(){return"function"==typeof MutationObserver},hasResizeObserver:function(){return"function"==typeof ResizeObserver},hasAncestorOrigins:function(){var e=Ot.getWindow().location;return!(!e||!e.ancestorOrigins)},hasPostMessage:function(){var e=Ot.getWindow();return!(!e||!K.isFunction(e.postMessage))},getBrowserType:t,getBrowserTypeByUA:r,getUserAgent:n,params:function(){return{br:t(),bru:r(),an:(e=Q.NA,n=Ot.getWindow(),K.isDef(n.navigator)&&K.isDef(n.navigator.appName)&&(e=n.navigator.appName.toLowerCase()[0]),e)};var e,n},isAndroidWebViewBrowser:function(){var e=n();return Vt.contains(e,"Android")&&K(["Line","SamsungBrowser","FB_IAB","Silk"]).findFirst((function(t,n){return Vt.contains(e,n)}))},getIOSVersion:function(){var e,t,r,i=n();return i&&(e=i.match(/OS\s\d+/))&&e.length>0&&(r=(t=e.toString().match(/\d+/))&&t.length>0&&parseInt(t.toString())),r}}},et=function(){"use strict";var e=function(){return!1};return{getBrowserType:()=>"u",getBrowserTypeByUA:()=>"d",getIOSVersion:()=>{},params:()=>({br:"u",bru:"d",an:Q.NA}),browserIs:e,getUserAgent:e,hasPostMessage:e,hasAncestorOrigins:e,hasIntersectionObserver:e,hasMutationObserver:e,isAndroidWebViewBrowser:e}},tt=function(){"use strict";return{createInstance:function(e,t){return at.isDomless()?new it(t):new rt(e,t)}}},nt=function(){"use strict";var t;return{isApplicable:function(n){var r=!(!(t=z.getAggregator().request(Te.OmidAdSessionContext)).app||!t.isDisplay||t.isWeb),i=n&&n.indexOf("/blocking/")>-1&&!at.integratedBlockingApplies(n),o=1!=e.forceNoIframe;return r&&i&&o},deployBlockingScriptIntoIframe:function(n){t=z.getAggregator().request(Te.OmidAdSessionContext);var r,i="iasbi"+e.asid,o=function(t,n){var r,i,o,a=e[De.ContextNode].parentNode,s="about:blank",c=e.adWidth&&e.adWidth>0?e.adWidth:0,u=e[De.AdHeight]&&e[De.AdHeight]>0?e[De.AdHeight]:0,d=Ot.getDoc().getElementsByTagName("ins"),g=0,l=0;d&&d.length>0&&(o=d[0],g=parseInt(o.style.width),l=parseInt(o.style.height));var f=g||c||window.innerWidth,p=l||u||window.innerHeight;return"complete"===Ot.getDoc().readyState&&(e.forceAppend="true"),"true"===e.forceAppend?((r=Ot.getDoc().createElement("IFRAME")).id=t,r.src=s,a.appendChild(r)):Ot.getDoc().write(''),(i=Ot.getDoc().getElementById(t))&&(i.style.width=f+"px",i.style.height=p+"px",i.scrolling="no",i.frameborder=0,i.style.position="absolute",i.style.padding=i.style.margin=i.style.border="0px"),i}(i);o&&(r=o.contentWindow.document)&&(r.open().write(function(e,t){var n,r="",i="",o=Ot.getDoc().getElementsByTagName("ins");if(o&&o.length>0){n=o[0],r="",i=""}return'