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.585', 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.585.js"}, protocol: 'https', jsref: "https:\/\/www.oklahoman.com\/", asid: "98eb0dc3-2312-11f0-a1a4-7a09dd99e9d8", 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: "970", 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=2339940", adsafeSrc: "https:\/\/fw.adsafeprotected.com\/rfw\/as.jivox.com\/2339940\/86514863\/unit\/unit_renderer.php?dspId=c6c4dfd3-80f3-47e3-a07e-603812b617a4&campaignId=186679&showAdChoices=0&jvxVer=2&isDynamic=1&siteId=8ea1447380ca443&es_pId=b491591d&ts_pId=b491591d&creativeUnitType=29&bDim=970x250&bUnitId=2900&us_privacy=${US_PRIVACY}&gdpr=&gdpr_consent=&ap_DataSignal1=894649&ap_DataSignal3=https%3A%2F%2Ftr.blismedia.com%2Fv1%2Fimpression%2Fpixel%3Fr%3Def9b65d05ff0d662888dccffad9f1b1963e09adf%26i%3D1%26c%3D894649%26ct%3D1%26b%3D1504692%26s%3D42%26ps%3D42%26cv%3D0%26t%3D1745722212672378%26sn%3Dwww.oklahoman.com%26pn%3Dwww.oklahoman.com%26hc%3D1%26wnet%3D1745725812%26bk%3D45926%26pregs%3D0%26is%3Dwww%26ewh%3D3jVqGg7JAn4JpnoDPWEHGUf6C4vaoDA7aobKFCWC6dn80GqQ1QDWYIo3as1faLfM%26we%3DTRACKING_NOTICE%26fce%3DTRACKING_NOTICE%26ctrlfc%3D0%26biid%3D7faf23b8ae4447b2a5cd968191e3a09a%26fckb64%3DNzkxMjk4NTE1%26fc%3Db%26bet%3D1751241600%26fcp%3DzsbjVCx4prXoBl4sSEh-5yMIb4zmdOO0MsbrCL4pb8sG7OxNryH0YHrSFvlus_Am%26a%3DSHOWN&r=1745722212672378&cMacro=https%3A%2F%2Ftr.blismedia.com%2Fv1%2Fclick%2Fredirect%3Fr%3Def9b65d05ff0d662888dccffad9f1b1963e09adf%26i%3D1%26c%3D894649%26ct%3D1%26b%3D1504692%26s%3D42%26ps%3D42%26cv%3D0%26t%3D1745722212672378%26sn%3Dwww.oklahoman.com%26pn%3Dwww.oklahoman.com%26hc%3D1%26wnet%3D1745725812%26bk%3D45926%26pregs%3D0%26is%3Dwww%26biid%3D7faf23b8ae4447b2a5cd968191e3a09a%26fckb64%3DNzkxMjk4NTE1%26fc%3Db%26bet%3D1751241600%26fcp%3DzsbjVCx4prXoBl4sSEh-5yMIb4zmdOO0MsbrCL4pb8sG7OxNryH0YHrSFvlus_Am%26a%3DSITE%26target%3D", tpiLookupURL: "", getTpl: "false", use100v: false, useBapiCallback: "", useViewabilityNotification: "", scriptUrl: "https:\/\/fw.adsafeprotected.com\/rjss\/as.jivox.com\/2339940\/86514863\/unit\/unit_renderer.php?dspId=c6c4dfd3-80f3-47e3-a07e-603812b617a4&campaignId=186679&", accountForSadImps: '', fwMonitoring: 'false', mn: "jsserver-primary-68f8c87b4b-m4s74", mobOrTab: false, app: false, mobAppWebview: false, mobFwUrl: "https:\/\/mobile.adsafeprotected.com\/internal\/blocking\/app\/initial\/2339940\/86514863?redirectUrl=https%3A%2F%2Fas.jivox.com%2Funit%2Funit_renderer.php%3FdspId%3Dc6c4dfd3-80f3-47e3-a07e-603812b617a4%26campaignId%3D186679%26showAdChoices%3D0%26jvxVer%3D2%26isDynamic%3D1%26siteId%3D8ea1447380ca443%26es_pId%3Db491591d%26ts_pId%3Db491591d%26creativeUnitType%3D29%26bDim%3D970x250%26bUnitId%3D2900%26us_privacy%3D%24%7BUS_PRIVACY%7D%26gdpr%3D%26gdpr_consent%3D%26ap_DataSignal1%3D894649%26ap_DataSignal3%3Dhttps%253A%252F%252Ftr.blismedia.com%252Fv1%252Fimpression%252Fpixel%253Fr%253Def9b65d05ff0d662888dccffad9f1b1963e09adf%2526i%253D1%2526c%253D894649%2526ct%253D1%2526b%253D1504692%2526s%253D42%2526ps%253D42%2526cv%253D0%2526t%253D1745722212672378%2526sn%253Dwww.oklahoman.com%2526pn%253Dwww.oklahoman.com%2526hc%253D1%2526wnet%253D1745725812%2526bk%253D45926%2526pregs%253D0%2526is%253Dwww%2526ewh%253D3jVqGg7JAn4JpnoDPWEHGUf6C4vaoDA7aobKFCWC6dn80GqQ1QDWYIo3as1faLfM%2526we%253DTRACKING_NOTICE%2526fce%253DTRACKING_NOTICE%2526ctrlfc%253D0%2526biid%253D7faf23b8ae4447b2a5cd968191e3a09a%2526fckb64%253DNzkxMjk4NTE1%2526fc%253Db%2526bet%253D1751241600%2526fcp%253DzsbjVCx4prXoBl4sSEh-5yMIb4zmdOO0MsbrCL4pb8sG7OxNryH0YHrSFvlus_Am%2526a%253DSHOWN%26r%3D1745722212672378%26cMacro%3Dhttps%253A%252F%252Ftr.blismedia.com%252Fv1%252Fclick%252Fredirect%253Fr%253Def9b65d05ff0d662888dccffad9f1b1963e09adf%2526i%253D1%2526c%253D894649%2526ct%253D1%2526b%253D1504692%2526s%253D42%2526ps%253D42%2526cv%253D0%2526t%253D1745722212672378%2526sn%253Dwww.oklahoman.com%2526pn%253Dwww.oklahoman.com%2526hc%253D1%2526wnet%253D1745725812%2526bk%253D45926%2526pregs%253D0%2526is%253Dwww%2526biid%253D7faf23b8ae4447b2a5cd968191e3a09a%2526fckb64%253DNzkxMjk4NTE1%2526fc%253Db%2526bet%253D1751241600%2526fcp%253DzsbjVCx4prXoBl4sSEh-5yMIb4zmdOO0MsbrCL4pb8sG7OxNryH0YHrSFvlus_Am%2526a%253DSITE%2526target%253D&gdpr_consent=&gdpr=", anId: '', advEntityId: '2339940', pubEntityId: '86514863', videoId: '', rts: {}, customViewability: [], serverSideAppDetection: [], groupm_native_publisher: false, integration: null, staticServer: '\/\/static.adsafeprotected.com\/', passback: '', iasProxyPartnerDomain: '', region: 'or' }; 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.5.3-iab4563']; 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",}, SessionOwner:{JAVASCRIPT:"javascript", NATIVE:"native",}, AccessMode:{FULL:"full", DOMAIN:"domain", LIMITED:"limited",}, AppState:{BACKGROUNDED:"backgrounded", FOREGROUNDED:"foregrounded",}, DeviceLockState:{LOCKED:"locked", UNLOCKED:"unlocked",}, 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", PICTURE_IN_PICTURE:"pictureInPicture", DEVICE_LOCKED:"deviceLocked", 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.5.3-iab4563"}; 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 = "Video Element (" + a.data.context.videoElement.id + ")"), "undefined" !== typeof a.data.context.slotElement && (a.data.context.slotElement = "Slot Element (" + a.data.context.slotElement.id + ")")); 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.5.3-iab4563'](); //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 getScripts = function (shouldSearchShadowDom) { var scripts = []; if (!shouldSearchShadowDom) { scripts = [...document.getElementsByTagName('script')]; } else { function traverse(node) { if (node.tagName === 'SCRIPT') { scripts.push(node); } if (node.shadowRoot) { traverse(node.shadowRoot); } var children = node.children; for (var i = 0; i < children.length; i++) { traverse(children[i]); } } traverse(document.body); } return scripts; } var tempScript; // TODO: I suspect this will become an issue for static FWJS within a shadow root, // which will a) not have a bootstrapper at this point and b) not have a currentScript. var scriptUrl = __IntegralASConfig.scriptUrl; var shouldSearchShadowDom = scriptUrl && scriptUrl.includes('ias_searchshadowdom=true'); var scripts = getScripts(shouldSearchShadowDom); var result = scripts[scripts.length - 1]; var scriptIndex = scripts.length; try { // If you encounter strange behavior with this node traversal (FWJS not selecting the expected script tag), // check ContextNodeHelper.js where this code is duplicated and can silently overwrite the context node later. 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}const o=({stringOrObject:e})=>{let t=null;if("object"==typeof e)t=e;else if("string"==typeof e)try{t=JSON.parse(e)}catch(e){}return t};class a{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 s{constructor({storeModelName:e}){this.storeModelName=e,this.storeModelHistory=new a}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 c={useSingleEvent:0};class u extends s{constructor(){super({storeModelName:"staticFeatures"}),this.useSingleEvent=function({percentage:e}){return e>100*Kt.random()}({percentage:c.useSingleEvent})}}const d=()=>{let e=!1;try{e=!!t.fence}catch(e){}return e};class g extends s{constructor(){super({storeModelName:"privacySandbox"}),this.isProtectedAudienceAuction=!1,this.isReportEventApiAvailable=!1;const e=d(),n=(()=>{var e;let n=!1;try{n=d()&&Z.isFunction(null===(e=t.fence)||void 0===e?void 0:e.reportEvent)}catch(e){}return n})();this.set("isProtectedAudienceAuction",e),this.set("isReportEventApiAvailable",n)}reportEvent({destinationURL:e}){let n=!1;try{e&&this.isReportEventApiAvailable&&(t.fence.reportEvent({destinationURL:e}),n=!0)}catch(e){}return n}}class l extends s{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:n}={}){const r=(({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:n,verificationParameters:this.verificationParameters}),i=(({contextNode:e,verificationParameters:n}={})=>{let r=null==n?void 0:n.config;if(!r)try{let n=null==e?void 0:e.srcUrl;if(!n&&"string"==typeof t.__IASTagUrl&&t.__IASTagUrl.length>0)try{n=new URL(t.__IASTagUrl)}catch(e){}if(!n.href.includes("/fw.js")&&n.href.includes("/jload")){const t=null==e?void 0:e.queryParameters,n=null==t?void 0:t.get("anId");n&&(r=`/jload/${n}`,t&&(r+=`?${t.toString()}`))}else{const e=/iasConfig=([^&#]*)/g.exec(n.href)||/config=([^&#]*)/g.exec(n.href);e&&"string"==typeof e[1]&&(r=decodeURIComponent(e[1]))}}catch(e){}return r})({contextNode:n,verificationParameters:this.verificationParameters});if(i){const t=(({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:r,path:i,adSessionId:e.adSessionId,queryParams:null==n?void 0:n.staticFwjsMacros});this.set("url",t,{locked:!1})}}}var f,p,m;!function(e){e.Firewall="Firewall",e.FirewallMonitoring="FirewallMonitoring",e.FirewallBlocking="FirewallBlocking",e.CampaignMonitoring="CampaignMonitoring",e.Amt="Amt"}(f||(f={})),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"}(p||(p={})),function(e){e.AnId="anId",e.TagType="tagType",e.AdvEntityId="advEntityId",e.PubEntityId="pubEntityId",e.CreativeDomain="creativeDomain",e.CreativePath="creativePath",e.CreativeUrl="creativeUrl"}(m||(m={}));const h={[f.Firewall]:[p.Jss,p.Jsi,p.Rjss,p.Rjsi,p.FwjsVid,p.JsApi],[f.CampaignMonitoring]:[p.Jload,p.JsVid],[f.Amt]:[p.Amt]},v=({globalTagUrl:e})=>{let t=null;if("string"==typeof e)try{const n=new URL(e),r=new URLSearchParams(n.searchParams),i=M({queryParams:r}),o=(null==i?void 0:i.config)||null;o&&(t=b({configPath:o}))}catch(e){}return t},E=({contextNode:e,measurementConfig:t})=>{let n=O({contextNode:e,measurementConfig:t});return n||(n=I({contextNode:e,measurementConfig:t})),n},I=({contextNode:e,measurementConfig:t})=>{let n=null;const r=S({contextNode:e,measurementConfig:t});return r&&(n=A({tagUrl:r})),n},A=({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=k({pathname:t})}catch(e){}return r&&t&&i===f.Firewall&&(n=L({parsedUrl:r})),r&&t&&i===f.CampaignMonitoring&&(n=x({parsedUrl:r})),r&&t&&i===f.Amt&&(n=U({parsedUrl:r})),n},S=({contextNode:e,measurementConfig:t})=>{let n=null;const{currentScript:r,isFrameInFrame:i,isLegacyTagRedirectedToStatic:o}=t;return n=i?T({currentScript:r}):y({contextNode:e}),n&&!(null==n?void 0:n.startsWith("http"))&&(n=V({url:n})),n},y=({contextNode:e})=>{let t=null;const n=null==e?void 0:e.src;return n&&(t=n),t},T=({currentScript:e})=>{let t=null;const n=null==e?void 0:e.getAttribute("src");return n&&(t=n),t},O=({contextNode:e,measurementConfig:t})=>{let n=null;const r=D({contextNode:e,measurementConfig:t});return r&&(n=b({configPath:r})),n},D=({contextNode:e,measurementConfig:t})=>{let n=null;const{isStaticMode:r,iasParameters:i,isSingleInstance:o,isStaticIframeTag:a}=t;return o?n=w({iasParameters:i}):(r||a)&&(n=N({contextNode:e})),n},w=({iasParameters:e})=>{let t=null;if(e){const n=F({jsonOrObject:e});if(n){const{config:e}=n;e&&(t=e)}}return t},N=({contextNode:e})=>{const t=C({contextNode:e});return(null==t?void 0:t.config)||null},b=({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=k({pathname:r});return r&&i===f.Firewall&&(t=L({parsedUrl:n})),r&&i===f.CampaignMonitoring&&(t=x({parsedUrl:n})),r&&i===f.Amt&&(t=U({parsedUrl:n})),t},C=({contextNode:e})=>{let t={};const n=R({contextNode:e}),r=_({contextNode:e});return t=n||r,t},R=({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=F({jsonOrObject:r});n=(null==e?void 0:e.config)?e:null}return n},_=({contextNode:e})=>{let t=null;if(null==e?void 0:e.queryParameters){const n=M({queryParams:e.queryParameters});t=(null==n?void 0:n.config)?n:null}return t},M=({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")}),P=({pathParts:e})=>{const t=Object.values(p),n=new Set(t),r=e.findIndex((e=>n.has(e)));let i=[...e];return-1!==r&&(i=e.slice(r)),i},V=({url:e})=>`https:${e}`,F=({jsonOrObject:e})=>{let t=null;if("string"==typeof e)try{t=JSON.parse(e)}catch(e){}else t=e;return t},x=({parsedUrl:e})=>{var t;let n;const r=e.pathname.split("/").splice(1),i=P({pathParts:r}),[o,a]=i;return n=a||(null===(t=e.searchParams)||void 0===t?void 0:t.get("anId")),{anId:n,tagType:o}},L=({parsedUrl:e})=>{const t=e.search,n=e.pathname.split("/").splice(1),r=P({pathParts:n}),[i,o,a,s,...c]=r,u=`/${c.join("/")}`;let d=o&&u?`//${o}${u}`:null;return t&&(d+=t),{tagType:i,advEntityId:a,pubEntityId:s,creativeDomain:o,creativePath:u,creativeUrl:d}},U=({parsedUrl:e})=>{var t,n;const r=e.pathname.split("/").splice(1),i=P({pathParts:r}),[o]=i;return{tagType:o,contractId:(null===(t=e.searchParams)||void 0===t?void 0:t.get("ias_cId"))||"",tagId:(null===(n=e.searchParams)||void 0===n?void 0:n.get("ias_tId"))||""}},k=function({pathname:e}){let t=null;const n=Object.keys(h).find((t=>h[t].some((t=>null==e?void 0:e.includes(t)))));return n&&(t=n),t};class W extends s{constructor({isDomless:n,contextNode:r,measurementConfig:i}){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 o=(({isDomless:e,contextNode:n,measurementConfig:r})=>{let i=null;return i=v({globalTagUrl:t.__IASTagUrl}),e||i||(i=E({contextNode:n,measurementConfig:r})),i})({isDomless:n,contextNode:r,measurementConfig:i});this.anId=null==o?void 0:o.anId,this.pubEntityId=null==o?void 0:o.pubEntityId,this.advEntityId=null==o?void 0:o.advEntityId,this.tagId=null==o?void 0:o.tagId,this.contractId=null==o?void 0:o.contractId,this.tagType=(null==o?void 0:o.tagType)||e.mode,this.creativeDomain=null==o?void 0:o.creativeDomain,this.creativePath=null==o?void 0:o.creativePath,this.creativeUrl=null==o?void 0:o.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=F({jsonOrObject:e});if(r){const{config:e}=r;e&&(t=e),t&&(n=b({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)}}class B extends s{constructor({bootstrapper:e}){super({storeModelName:"baseUrls"}),this.dtBaseUrl=null==e?void 0:e.dtBaseURL,this.cmEventBaseUrl=null==e?void 0:e.requrl,this.fwEventBaseUrl=null==e?void 0:e.adsafeSrc,this.mobileAppEventBaseUrl=null==e?void 0:e.mobFwUrl,this.eventBaseUrl=this.fwEventBaseUrl||this.cmEventBaseUrl}updateWithVerificationParameters({verificationParameters:e}){const t=o({stringOrObject:e});if("object"==typeof t){const e=null==t?void 0:t.iasImpBaseUrl,n=null==t?void 0:t.iasDtBaseUrl,r=null==t?void 0:t.iasMobileAppImpBaseUrl;n&&(this.dtBaseUrl=n),e&&(this.cmEventBaseUrl=e,this.fwEventBaseUrl=e,this.eventBaseUrl=e),(r||e)&&(this.mobileAppEventBaseUrl=r||e)}}updateWithResolvedJsConfig({jsConfig:e}){this.dtBaseUrl||(this.dtBaseUrl=null==e?void 0:e.dtBaseURL),this.cmEventBaseUrl||(this.cmEventBaseUrl=null==e?void 0:e.requrl),this.fwEventBaseUrl||(this.fwEventBaseUrl=null==e?void 0:e.adsafeSrc),this.mobileAppEventBaseUrl||(this.mobileAppEventBaseUrl=null==e?void 0:e.mobFwUrl),this.eventBaseUrl||(this.eventBaseUrl=this.fwEventBaseUrl||this.cmEventBaseUrl)}}var G;!function(e){e.Iframe="i",e.Script="s"}(G||(G={}));class H extends s{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",G.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"))?G.Iframe:G.Script,i=r?r===G.Iframe:void 0,o=r?r===G.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)),t.src.includes("/amt.js")&&(this.set("isAmtRedirect",!0),this.set("isLegacyTagRedirectedToStatic",!0)))}setDebugProp(){this.set("debug",!1)}updateWithVerificationParameters({verificationParameters:e}){const t=o({stringOrObject:e});"object"==typeof t&&((null==t?void 0:t.iasImpBaseUrl)&&(this.impressionNodeType="img"),(null==t?void 0:t.iasImpNodeType)&&(this.impressionNodeType=null==t?void 0:t.iasImpNodeType))}}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 j=({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 q extends s{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",j({url:t.href}))}}}const Y=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 K(){var t,n;e.executedContinueMain||(Y.measurementConfig.isStaticMode&&Y.baseUrls.updateWithResolvedJsConfig({jsConfig:e}),Y.adTag.updateWithResolvedJsConfig({jsConfig:e,measurementConfig:Y.measurementConfig}),e.executedContinueMain=!0,e.perf.markStart(se),he(e).verifyContextNode(),t=function(t,n,r,i,o,a,s,c,u,d,g){var l,f;try{new Po({contextNode:e.contextNode,features:u,bootstrapper:e}).start()}catch(e){o.add(ne.ERROR_CODES.AD_SERVER_POST_IMPRESSION_MACRO)}e.perf.markStart(ue),e[Ce.B11]="1"===e[Ce.AdHeight]&&"1"===e.adWidth?"true":"false",e[Ce.CNod]=e[Ce.ContextNode]?"true":"false",te.getAggregator().trigger(we.AddOutputItem,{output:Y.measurementConfig.mainBirthdate},Ce.MainFunctionStartedNow,{type:ne.IMPRESSION_EVENT});var p=e.hasOwnProperty("origMobOrTab")?e.origMobOrTab:e.mobOrTab;te.getAggregator().trigger(we.AddOutputItem,{output:p?"1":"0"},Ce.BootstrapperMobOrTab,{type:ne.IMPRESSION_EVENT}),te.getAggregator().trigger(we.AddOutputItem,{output:e.app?"1":"0"},Ce.BootstrapperApp,{type:ne.IMPRESSION_EVENT}),te.getAggregator().trigger(we.AddOutputItem,{output:e.mobAppWebview?"1":"0"},Ce.BootstrapperMobAppWebview,{type:ne.IMPRESSION_EVENT}),te.getAggregator().trigger(we.AddOutputItem,{output:Y.measurementConfig.tagDeliveryType},Ce.TagDeliveryType,{type:ne.IMPRESSION_EVENT});var m=it().getUserAgent(),h=te.getAggregator().request(be.MobileApp);!(h&&h.isMobileAppEnvironment&&h.isMobileAppEnvironment())&&m.indexOf("IMDb-flg")>-1&&(te.getAggregator().trigger(we.AddOutputItem,{output:"1"},Ce.MobileAppEnvironment,{type:ne.IMPRESSION_EVENT}),te.getAggregator().trigger(we.AddOutputItem,{output:"a_imdb"},Ce.MatchedMobileAppDetectionRule,{type:ne.IMPRESSION_EVENT}));X(r,i,u,o);try{a.isApplicable(s,d)&&a.start(),f=c.detectTopURL(),u.on("exch")&&(new Ft).createInstance(o,i).parse(f),(l=Eo()).isApplicable(u)&&l.start(u),d.usesGroupMCustomMetric()&&Pe(),g.start()}catch(e){o.add(ne.ERROR_CODES.IMPRESSION_LEADUP)}return e.perf.markEnd(ue),f}((n=function(){var t,n,r,i,o,a,s,c,u,d,g,l={};e.perf.markStart(ce),pn();var f=te.getAggregator();(function(){var t,n,r;r=te.getAggregator().request(be.OmidAdSessionContext),t=r.app&&r.isDisplay&&!r.isWeb,(n=e.mobFwUrl&&e.mobFwUrl.indexOf("/blocking/")>-1)&&r.isLimitedSandbox&&"1"===e.adWidth&&"1"===e[Ce.AdHeight]&&(r.isLimitedSandbox=!1);t&&n&&(r.delayingViewabilityEvents=!0);"app"!==r.environment&&!0!==e.mobAppWebview||(e.origMobOrTab=e[Ce.MobOrTab],e[Ce.MobOrTab]=!0)})(),l.mFeatures=f.request(be.Features),l.mFeatures||(l.mFeatures=f.provide(be.Features,Ut()));e.integration&&l.mFeatures.setReportedBootstrapFeatures("intblk","integration");e.autotagSizeSet&&l.mFeatures.setReportedBootstrapFeatures("ats","autotagSizeSet");e.encodeInvalidUrlChars=!bt.isDomless()&&l.mFeatures.on("encodeInvalidUrlChars"),f.provide(be.MobileApp,(function(){return t=t||new bi(l.mFeatures)})),f.provide(be.Context,bt),l.mBrowser=f.request(be.Browser),l.mErrors=f.request(be.Errors),l.mIds=f.request(be.IDS),l.iOutput=Ge(f),f.request(be.JSONP),l.mComm=f.request(be.Communication),l.viewabilityMeasurement=new hr(vr(l.mIds),l.mFeatures,l.mBrowser).create(),function(e,t){if(e&&e.queuedOutputItems)for(var n=0;n0&&(te.getAggregator().trigger(we.AddOutputItem,{output:c.join(".")},Ce.MetricIdEventCall,{type:ne.IMPRESSION_EVENT}),te.getAggregator().trigger(we.AddOutputItem,{output:c},Ce.MetricIdList,{type:ne.DT_CODES.UNLOAD,asION:!0}));return s}(t);te.getAggregator().provide(be.ViewabilityDefinitions,o),Z(o).map(function(e,t,n,r){return function(i,o){var a,s,c,u=Xr(o,t),d=xr(n,e,o.rts).getCallbacks(),g=ke(r.createPingJobs(o.type,o.timeInViewThresholds,d,o.metricId));return o.sendOtherwiseInViewSignal&&(c=Xr(o,t,o.sendOtherwiseInViewSignal),s=ke(r.createPingJobs(o.type,o.timeInViewThresholds,d,o.metricId,o.sendOtherwiseInViewSignal))),o.rtsCallbacks=d,o.thresholdType===ne.GROUPM_MOBILE_PASS_THRU_TIME_IN_VIEW_THRESHOLD_TYPE?a=Jr(u,o,g,bt.isVideo()):(a=Kr(u,ze(o.minUnit),g),o.sendOtherwiseInViewSignal&&Kr(c,ze(o.minUnit),s,o.sendOtherwiseInViewSignal).start()),a.start(),a}}(t,n,r,i))}(l.mFeatures,l.mViewability,r,u),l.loopDelay=Bn(),l.renderDetector=Oe(),l.mDataTransfer.setViewabilityMod(l.mViewability),e.perf.markEnd(ce),l}()).mDataTransfer,n.mViewability,n.mAdTalk,n.iOutput,n.mErrors,n.mAncestorOrigins,n.mBrowser,n.mPageUrls,n.mFeatures,bt,n.renderDetector),function(t,n,r,i,o,a,s,c,u){try{so(t,n,r,i,o,a,s).send(c),Z.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(de),(p=Qi()).start(),p.addFieldTypes([ne.DT_SLOT.IM,ne.DT_SLOT.FF,ne.DT_SLOT.ENVIRONMENT,ne.DT_SLOT.FF_EXP]),Vo(f),function(e,t,n,r){var i=qn(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")&&tt(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(),Kt.execAtEndOfThread((function(){J(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=So();let r=["sca","xsca","rsrch"];e&&e.isAMZN()&&(r=[]),n.start(r,t)}})(f,i),$e(),te.runTier(ne.TIERS.VIEWABILITY),function(t){var n=$i();n.isApplicable(t)&&(n.start(),io.recordBlockingTime(),e.perf.mark(ge),io.setupOnLoadTracking(),io.setupBrowserDelayTracking())}(i),vo(),e.perf.markEnd(de)}catch(e){s.add(ne.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,bt),Y&&Y.pageMetrics&&Y.pageMetrics.sendPageMetricsData(),e.perf.markEnd(se))}function J(t,n,r,i,o,a,s,c,u,d){try{if(e.perf.markStart(le),e.tpiLookupURL)Bt(s,c).init(e.tpiLookupURL);bt.isDomless()||d.isStarted()&&d.sendOriginList(),te.runAll(),Kt.execAtEndOfThread((function(){!function(t,n,r,i,o,a){var s;try{e.perf.markStart(fe),s={output:(new Date).getTime()-o},t.addItem(s,"sinceFw",{type:ne.DT_CODES.ADTALK}),Z.isDef(n.loopStarted())&&t.addItem({output:n.loopStarted()},"readyFired",{type:ne.DT_CODES.ADTALK}),e.perf.markEnd(fe),e.isSplitMode&&(u=e.protocol+"://"+e.sp_cdnScripts.main,e.perf.markResource(pe,u)),e.impUrl&&e.perf.markResource(me,e.impUrl),c=e.perf.getData(),te.getAggregator().trigger(we.AddThrottledProp,ne.DT_SLOT.IM,Ce.Performance,Z(c).toION()),r.isApplicable(bt)&&r.sendAdTalkCall()}catch(e){i.add(ne.ERROR_CODES.ADTALK_DELAY)}var c,u}(t,n,r,i,o)})),e.perf.markEnd(le)}catch(e){i.add(ne.ERROR_CODES.EVENT_LOOP_ONE)}}function X(e,t,n,r){var i;try{e.isApplicable(bt)&&(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(ne.ERROR_CODES.ADTALK_GENERAL)}}function z(t){var n=t&&t.sca,r=t&&t.xsca,i=t&&t.w,o=t&&t.h;return function(t){te.getAggregator().trigger(we.AddOutputItem,{output:bt.getTagTime()},Ce.StaticConfigResponseTime,{type:ne.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=Y.measurementConfig.tagDeliveryType===G.Iframe?"iframe":n;te.getAggregator().trigger(we.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];Y.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),K()}}const Q=()=>{var e,t;const n=null===(e=Y.jsConfigRequest)||void 0===e?void 0:e.verificationParameters,r=null===(t=Y.jsConfigRequest)||void 0===t?void 0:t.contentType,i=(()=>{var e,t,n;const r=(null===(e=Y.adTag)||void 0===e?void 0:e.advEntityId)||"",i=(null===(t=Y.adTag)||void 0===t?void 0:t.pubEntityId)||"",o=(null===(n=Y.adTag)||void 0===n?void 0:n.creativeUrl)||"",a=te.getAggregator().request(be.IDS).getCacheBustId(),s=new URL("https://fw.adsafeprotected.com/event"),c=te.getAggregator().request(be.AncestorOrigins);c.isApplicable(te.getAggregator().request(be.Browser),bt)&&c.start();const u=te.getAggregator().request(be.PageURLS).detectTopURL(),d=fo(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:${bt.embedded.toString()},fr:${bt.friendly.toString()}`),s.href})();te.getAggregator().trigger(we.AddOutputItem,{output:bt.getTagTime()},Ce.StaticConfigRequestTime,{type:"impression"}),te.getAggregator().trigger(we.AddOutputItem,{output:1},Ce.StaticUsedConfigAndBlockingRequest,{type:"impression"}),"application/json"===r?te.getAggregator().trigger(we.GetJSON,i,z(n)):te.getAggregator().trigger(we.JSONP,i,z(n),!1,"cbName")};const $=()=>{var e,t,n;(null===(e=Y.measurementConfig)||void 0===e?void 0:e.isResolved)?K():(null===(t=Y.staticFeatures)||void 0===t?void 0:t.useSingleEvent)&&"rjss"===(null===(n=Y.adTag)||void 0===n?void 0:n.tagType)?Q():(()=>{var e,t,n;const r=null===(e=Y.jsConfigRequest)||void 0===e?void 0:e.url,i=null===(t=Y.jsConfigRequest)||void 0===t?void 0:t.contentType,o=null===(n=Y.jsConfigRequest)||void 0===n?void 0:n.verificationParameters;if(r){te.getAggregator().trigger(we.AddOutputItem,{output:bt.getTagTime()},Ce.StaticConfigRequestTime,{type:ne.IMPRESSION_EVENT});const e="cbName";"application/json"===i?te.getAggregator().trigger(we.GetJSON,r,z(o)):te.getAggregator().trigger(we.JSONP,r,z(o),!1,e)}})()};var Z=function(e){"use strict";return new ee(e)},ee=function(e){"use strict";this.iterable=e};ee.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},ee.prototype.isArray=function(){"use strict";return this.iterable instanceof Array},ee.prototype.isEmpty=function(e){"use strict";return 0===this.keys(e).length},ee.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 Z(r).toION(e,t)})):(r="{",i="}",n=this.map((function(n,r){var i="string"==typeof n&&-1!==n.indexOf("NULL"),o=Z(r).toION(e,t);return i?o:(e[n]||n)+":"+o}))),r+n.join(",")+i)},ee.prototype.compareTo=function(e){"use strict";var t=!1;return this.each((function(n,r){e[n]!==r&&(t||(t={}),t[n]=r)})),t},ee.prototype.toParams=function(e){"use strict";return this.stringify((function(e,t){return"string"==typeof e&&-1!==e.indexOf("NULL")?t:e+":"+t}),e)},ee.prototype._privateMixin=function(e,t,n){"use strict";var r;for(r in t)Z.isDef(t[r])&&(n||t.hasOwnProperty(r))&&(e[r]=t[r]);return e},ee.prototype.mapToObj=function(e){"use strict";var t={},n=this;return this.each((function(r,i){var o=e(r,i);Z(o).isObj()&&n._privateMixin(t,o)})),t},ee.prototype.invert=function(){"use strict";return this.mapToObj((function(e,t){var n={};return n[t]=e,n}))},ee.prototype.mixin=function(e,t){"use strict";return this._privateMixin(this.iterable,e,t)},ee.prototype.find=function(e){"use strict";var t;return this.each((function(n,r){e(n,r)&&(t=r)})),t},ee.prototype.findFirst=function(e){"use strict";var t,n;return this.each((function(r,i){!n&&e(r,i)&&(t=i,n=!0)})),t},ee.prototype.keys=function(e){"use strict";var t=[];return this.each((function(e){t.push(e)}),e),t},ee.prototype.asStrings=function(){"use strict";var e={};return this.each((function(t,n){e[t]=""+n})),e},ee.prototype.selectProperties=function(e){"use strict";var t={},n=this;return Z(e).each((function(e,r){Z.isDef(n.iterable[r])&&(t[r]=n.iterable[r])})),t},ee.prototype.filter=function(e,t){"use strict";return this.map((function(t,n){var r;return(Z.isUndef(e)||Z.resolve(e,t,n))&&(r=n),r}),t)},ee.prototype.toArray=function(){"use strict";return this.map((function(e,t){return t}))},ee.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},ee.prototype.contains=function(e){"use strict";var t=Z(this.iterable).findFirst((function(t,n){return e===n}));return Z.isDef(t)},Z.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},Z.isDef=function(e){"use strict";return void 0!==e},Z.isUndef=function(e){"use strict";return!Z.isDef(e)},Z.isBool=function(e){"use strict";return"boolean"==typeof e},Z.noop=function(){},Z.identity=function(e){"use strict";return e},Z.isFunction=function(e){"use strict";return"function"==typeof e},Z.isStr=function(e){"use strict";return"string"==typeof e},Z.useIfDef=function(e){"use strict";return!!Z.isDef(e)&&e},Z.stringifyTriState=function(e){"use strict";return!0===e?1:!1===e?0:"na"},Z.getNum=function(e){"use strict";var t=parseInt(e);return isFinite(t)||(t=-1),t},Z.resolve=function(e,...t){return Z.isFunction(e)?e.apply({},t):e},Z.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},Z.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)}},Z.last=function(e){"use strict";return e[e.length-1]},Z.collapseArgsIntoHash=function(e,t){"use strict";var n={};return t?n[e]=t:n=e,n},Z.fromBoolToNum=function(e){"use strict";return e?1:0},Z.isNumeric=function(e){"use strict";return Z.isDef(e)&&null!==e&&!isNaN(e)},Z.fromNodeListToArray=function(e){"use strict";return Array.prototype.slice.call(e)},Z.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 te=function(){"use strict";var e,t={},n=[],r=[],i=function(){var e={},t=Z(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=Z(i).map((function(t,n){return e.request(n)}))),s.emits&&(r.events=new xe),s.applies&&!s.applies.apply(s,n)||(u=!0,(t=Z(o).map((function(t,n){return e.request(n)}),!0)).push(r),Z(r).mixin(a.apply({},t)))}var i};return d=(s=s||{}).tier,Z.isDef(d)&&(t[d]=t[d]||new Ue,t[d].push(g)),e.provide(i,(function(){var e;return g(),u&&(e=r),e})),r};return i.runAll=function(){var e=Z(t).keys().sort((function(e,t){return e-t}));Z(e).each((function(e,t){i.runTier(t)}))},i.runTier=function(e){t[e].run(),delete t[e]},i.startSystem=function(){e=e||new Fe,Z(r).each((function(e,t){o.apply({},t)}))},i.getAggregator=function(){return e},i}();const ne={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 re,ie,oe,ae="mf",se="cm",ce="in",ue="pr",de="po",ge="bl",le="lo",fe="lt",pe="md",me="id",he=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"}(re||(re={})),function(e){e.TcfApi="__tcfapi"}(ie||(ie={})),function(e){e.TcfApiLocator="__tcfapiLocator"}(oe||(oe={}));const ve=({apiFunctionName:e,apiFrameLocatorName:t})=>{try{let n,r,i=Kt.getWindow();const o=Kt.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 Ee={getMessageHandler:function(e,t){var n=Ee.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),Ct.removeEvent(Kt.getWindow(),"message",r))}catch(e){te.getAggregator().trigger(we.Error,ne.ERROR_CODES.GDPR)}};return r},getCallId:function(){return"ias_"+e.asid},send:function(e,t){te.getAggregator().trigger(we.AddThrottledProp,ne.DT_SLOT.ENVIRONMENT,e,t)}},Ie={name:"CCPAConsentDetector",dependencies:[],creator:function(){"use strict";function e(e){e&&Ee.send("ccd",Z(e).toION())}!function(){const t=ve({apiFunctionName:"__uspapi",apiFrameLocatorName:"__uspapiLocator"});Ee.send("cca",!!t),t&&function(t){var n,r;Z.isFunction(t)?t("getUSPData",1,e):(n={__uspapiCall:{command:"getUSPData",version:1,callId:Ee.getCallId()}},r=Ee.getMessageHandler("__uspapiReturn",e),Ct.addEvent(Kt.getWindow(),"message",r),t.postMessage(n,"*"))}(t)}()},settings:{tier:ne.TIERS.ENVIRONMENT,applies:function(e,t,n){"use strict";return t.hasPostMessage()&&!n.isDomless()}}},Ae={name:"GDPRConsentDetector",dependencies:[],creator:function(){"use strict";var e=278;function t(e){var t=Z.isDef(e)&&Z.isDef(e.vendorConsents)&&Z.isDef(e.vendorConsents[278])?e.vendorConsents[278]:void 0,n={appl:Z.stringifyTriState(e.gdprApplies),cnst:Z.stringifyTriState(t),glbl:Z.stringifyTriState(e.hasGlobalScope),mtdt:encodeURIComponent(e.metadata)},r=e&&e.tcString;te.getAggregator().provide(be.TCString,(function(){return r})),Ee.send("gcd",Z(n).toION())}!function(){const n=ve({apiFunctionName:"__cmp",apiFrameLocatorName:"__cmpLocator"});Ee.send("gca",!!n),n&&function(n){var r,i;Z.isFunction(n)?n("getVendorConsents",[e],t):(r={__cmpCall:{command:"getVendorConsents",parameter:[e],callId:Ee.getCallId()}},i=Ee.getMessageHandler("__cmpReturn",t),Ct.addEvent(Kt.getWindow(),"message",i),n.postMessage(r,"*"))}(n)}()},settings:{tier:ne.TIERS.ENVIRONMENT,applies:function(e,t,n){"use strict";return t.hasPostMessage()&&!n.isDomless()}}};const Se={name:"GDPRV2ConsentDetector",dependencies:[],creator:()=>{const e=e=>{const t=Z.isDef(e)&&Z.isDef(e.vendor)&&Z.isDef(e.vendor.consents)&&Z.isDef(e.vendor.consents[278])?e.vendor.consents[278]:void 0,n={appl:Z.stringifyTriState(null==e?void 0:e.gdprApplies),cnst:Z.stringifyTriState(t)};Ee.send("gcd2",Z(n).toION())};(()=>{const t=ie.TcfApi,n=oe.TcfApiLocator,r=ve({apiFunctionName:t,apiFrameLocatorName:n});Ee.send("gca2",!!r),r&&(t=>{let n,r;if(Z.isFunction(t))try{t(re.AddEventListener,2,e)}catch(n){try{t(re.GetTCData,2,e)}catch(e){}}else n={__tcfapiCall:{command:re.AddEventListener,callId:Ee.getCallId(),version:2}},r=Ee.getMessageHandler(re.TcfApiReturn,e),Ct.addEvent(Kt.getWindow(),"message",r,!1),t.postMessage(n,"*")})(r)})()},settings:{tier:ne.TIERS.ENVIRONMENT,applies:(e,t,n)=>t.hasPostMessage()&&!n.isDomless()}};var ye=function(){"use strict";var t,n=["STYLE","SCRIPT","HEAD","META"],r=ne.RENDER.CREATIVE_NODE_TYPES.concat(ne.RENDER.CONTAINER_NODE_TYPES),i=0,o=Y.measurementConfig.useFIF&&bt.friendlyIframe||bt.isSpecifiedAd(),a=0,s=[],c=function(t){var n,r,o=t,a=t,s=bt.friendly?Kt.getTop().document.body:e.contextNode.ownerDocument.body;for(;i<3;){if(s&&o===s){a=o,i=3;break}Pt.isWindow(o)&&(r=void 0,r="["+ne.AD_IDENTIFIER+"-"+e.asid+"]",n=Pt.crossQuerySelector(r),o=Z.isDef(n)?n:o),a=o=Z.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&&!Z(n).contains(e)&&(r=e,i=t)}var o,a,s}e.length&&te.getAggregator().request(be.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=Pt.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?Kt.clearInterval(i):a=!1};te.getAggregator().on(we.EvaluateCreativeFinderResult,(function(r){let i;Pt.isNodeXDomainIframe(r)?(d(),t=function(t){const r={},i="readystatechange",o="load",a=Kt.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),Ct.removeEvent(t,o,u),Ct.removeEvent(a,i,u))};return s?(c(r),n.saveNode(t),n.save("dr")):(Ct.addEvent(t,o,u,void 0),Ct.addEvent(a,i,u,void 0)),r}(r)):r?(function(e){let t=!1;const r=Pt.getRect(e);return e&&"IMG"===Pt.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){te.getAggregator().trigger(we.RenderDiag,e)}},l=te.getAggregator().request(be.MobileApp);l&&l.isMobileAppEnvironment&&l.isMobileAppEnvironment()&&bt.isMraid()?function(e,n){const r=Kt.getWindow().mraid,i=r&&r.getState&&r.getState(),o="ready",a=t,s=function(){Ct.removeEvent(r,o,s),n.save("env"),n.save("mr"),te.getAggregator().trigger(we.AdRendered),e({status:"1"})};n.save("env"),"default"===i?(te.getAggregator().trigger(we.AdRendered),n.save("md"),a.status="1"):"loading"===i?(Ct.addEvent(r,o,s,void 0),n.save("ml")):(Ct.addEvent(r,o,s,void 0),n.save("mu")),e(a)}(e,n):(g(),a&&(i=Kt.setInterval(g,500))),te.getAggregator().trigger(we.EligibleRender)}))};var we,Ne,be,Ce,Re=function(){"use strict";var e=[],t=[],n=function(e){var t;if(Pt.isWindow(e))t="WINDOW";else if(Pt.isNodeXDomainIframe(e))t="XIFRAME";else try{t=Pt.getNodeName(e)}catch(e){r("nen")}return t},r=function(t){e.push(t)};return{build:function(){var n=[];return Z(t).each((function(e,t){n.push(t)})),Z(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&&Pt.getRect(e),a=e&&Pt.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>=ne.RENDER.WIDTH_THRESHOLD&&o.height>=ne.RENDER.HEIGHT_THRESHOLD?ne.RENDER.DIAGNOSTIC.QUALIFIED_SIZE:ne.RENDER.DIAGNOSTIC.UNQUALIFIED_SIZE;t.push(i),t.push(d),a&&t.push(ne.RENDER.DIAGNOSTIC.STYLED_NODE),u&&t.push(ne.RENDER.DIAGNOSTIC.TEXT_NODE)}catch(e){r("sne")}}}},_e=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(){te.getAggregator().trigger(we.AddOutputItem,{output:!n&&r?o:a},Ce.MeasurableForRender),n&&n.message&&!i&&(__IntegralASDiagnosticCall("renderloop",n,e),te.getAggregator().trigger(we.AddThrottledProp,ne.DT_SLOT.ENVIRONMENT,"rle",1),i=!0)};te.getAggregator().on(we.EligibleRender,s),te.getAggregator().on(we.RenderDiag,c),u()},Me=function(){"use strict";return{applies:function(e,t){var n=te.getAggregator().request(be.MobileApp);return(e.browserIs(ne.BROWSERS.CHROME)||e.isAndroidWebViewBrowser()||e.browserIs(ne.BROWSERS.WEBKIT)||e.browserIs(ne.BROWSERS.MSEDGE))&&!n.isMobileAppEnvironment()&&e.hasIntersectionObserver()}}},Pe=function(){"use strict";var e,t,n=!1,r=te.getAggregator().request(be.Page),i=function(){!n&&t&&e&&!r.isHidden()&&(n=!0,te.getAggregator().trigger(we.SendDt,ne.DT_CODES.LARGE_BILLABLE))};te.getAggregator().on(we.PrimaryAdFound,(function(t){e=t.getDims().area()>=ne.MRC_LARGE_AD_SIZE,i()})),te.getAggregator().on(we.ImpressionSent,(function(){t=!0,i()})),r.onHiddenChange(i)},Ve=function(){"use strict";var e=[],t={},n={percentInView:"piv",sl:"vs",reason:"r",width:"w",height:"h",omidObstructions:"oobs"},r={omidObstructions:["sl","percentInView","reason"]};te.getAggregator().on(we.NewScreenEvent,(function(r){var o=Z(r).selectProperties(Z(n).keys()),a=Z(o).asStrings(),s=Z(a).compareTo(t);(s=i(s))&&JSON.stringify(s)!==JSON.stringify({})&&(s.t=bt.getTagTime(),e.push(s)),Z(t).mixin(a)}));var i=function(e){return Z(r).each((function(t,n){var r=!1;Z(n).each((function(t,n){e[n]&&(r=!0)})),!1===r&&delete e[t]})),e};return{toString:function(){return Z(e).toION(n)}}},Fe=function(){"use strict";var e=new He,t=new xe;return Z(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"}(we||(we={})),function(e){e.BEFORE_UNLOAD="beforeunload"}(Ne||(Ne={})),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"}(be||(be={})),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.ProtectedAudienceApi="paapi",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"}(Ce||(Ce={}));const xe=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)),Z(i).each((function(e,t){n.apply({},t)})),!0},o=function(t,n,r){e[t]=e[t]||new Ue,e[t].push(n,r)};return{on:function(e,t){let n={};t?n[e]=t:n=e,Z(n).each(o),Z(n).each(i)},once:function(e,t){i(e,t,!0)||o(e,t,1)},trigger:function(e){const t=Z(arguments).toArray();t.shift(),r(e,t)},persistentTrigger:function(e){const t=Z(arguments).toArray();t.shift(),n(e,t),r(e,t)}}};var Le=function(){"use strict";var e=function(t,n,r){var i,o,a=n.length,s=Pt.isWindow(t)?t.frames:Pt.getChildWindowsOf(t);if(r&&r(t,n),s&&s.length){for(i=0;i=i&&!t[i]&&(r.getTask().call(),t[i]=!0)}))}}},We=function(){"use strict";var e,n=new Be;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=Z.noop,t(o)&&(i&&(s=i(a,o))&&(c=function(){n.send((function(){return s}),a)}),r(e,o,c))}catch(e){o&&te.getAggregator().trigger(we.Error,ne.ERROR_CODES.MESSAGE_LISTENER)}}(e,r,i,o)},Ct.addEvent(t,"message",e)},stop:function(){e&&Ct.removeEvent(t,"message",e),e=null}}},Be=function(){"use strict";return{send:function(e,t){if(JSON&&JSON.stringify){var n=function(e){return Z(e).isObj()?[e]:(new Le).getFrames(e)}(t);Z(n).each((function(t,n){var r,i=Z.resolve(e,n)||{};i.sentTime=Kt.now(),r=function(e){return Z(e).mapToObj((function(e,t){var n;return Z.isFunction(t)||((n={})[e]=t),n}))}(i),n.postMessage(Z(r).JSONStringify(),"*")}))}}}},Ge=function(e){"use strict";var t=0,n={},r=function(e,n,r){if(Z.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=Z.resolve(e.output);return this.props.asION&&(t=Z(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=Z(e.output).isObj()&&!i.asION,a=function(e,t,i){var o=new r(e,t,i);n[o.id]=o};o?Z(e.output).each((function(e,t){a({output:t},e,i)})):a(e,t,i)};return e.on(we.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)),Z.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 He=function(){"use strict";const e={},t=(t,n)=>{e[t]=n};return{request:function(t){let n;const r=e[t],i=Z(arguments).toArray();return i.shift(),Z.isUndef(r)||(n=Z.isFunction(r)?r.apply({},i):r),n},provide:(e,n)=>(n?t(e,n):Z(e).each(t),n)}};var je=function(){"use strict";return{createInstance:function(e,t,n,r){return bt.isDomless()?new Ye:new qe(e,t,n,r)}}},qe=function(e,t,n,r){"use strict";var i,o=function(e,t){return{viewState:ne.NA,posViewState:ne.NA,embedded:bt.embedded,winDimensions:e,adDimensions:t}};return{collect:function(){var t=e.find(),a=t.getOutOfViewReasons(),s=n.isHidden(),c=r.isDeviceTypeGroupMobile()&&i?i:Mt(Pt.calcWinDims()),u=t.getDims();return i=c,t.hasAd()&&c.hasValidDims()&&u.hasValidDims()?(!0===s&&a.push(ne.OUT_OF_VIEW_REASONS.FOCUS),{winDimensions:c,adDimensions:u,containerDimensions:t.getContainerDims(),method:t.getDetectionMethod(),viewState:a.length?ne.OUT_OF_VIEW:t.getViewState(),viewStateIgnoringRender:t.getViewStateIgnoringRender(),percentInView:t.getPercentInView(),percentInViewIgnoringRender:t.getPercentInViewIgnoringRender(),reason:a.join("."),obstructed:Z.stringifyTriState(t.isObstructed()),isHidden:Z.stringifyTriState(t.isHidden()),tabHidden:Z.stringifyTriState(s),posViewState:t.getViewState(),adCompCount:t.getComponentCount(),sliceStatus:t.getSliceStatus()}):o(c,u)}}},Ye=function(){"use strict";return{collect:function(){return{}}}},Ke=function(e){"use strict";e=e||Z.identity;var t=[],n=Kt.now(),r=function(){var e=Kt.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 Je=function(e,t){"use strict";const n=e||1;let r,i=0,o=0,a=0;return{start:()=>{i%n==0&&(r=Kt.now())},stop:()=>{const e=r||t;i%n==0&&(a+=Kt.now()-e,o++),i++},getTime:()=>a,getCount:()=>o}};var Xe=function(){"use strict";var e,t=0,n=0,r=new xe(!0),i=function(){e&&(t++,r.trigger(t),n>t?Kt.execAtEndOfThread(i):o())},o=function(){e=!1,t=0};return{onTick:function(e,t){var i=Z.collapseArgsIntoHash(e,t);Z(i).each((function(e,t){e=parseInt(e),n=e>n?e:n})),r.on(i)},start:function(){e||(e=!0,Kt.execAtEndOfThread(i))},kill:o,isActive:function(){return e}}},ze=function(e){"use strict";var t,n=0,r=bt.getTagTime(),i=0,o=!1;return{getTotalTime:function(){return i},stop:function(){n=0,r=bt.getTagTime(),o=!1},mark:function(){t=o?bt.getTagTime()-r:0,(n+=t)>=e&&(i+=n-t1,a&&(i=r[1].split("&")[0],o=[r[0],i].join(e),l=l.replace(o,o+t)))},fullDom:a,hostname:c,sub:p,master:m,setParam:function(e,t){f[e]=f[e]||{},"string"==typeof t||"number"==typeof t?f[e]=t:Z(f[e]).mixin(t)},path:function(e){g=e},toString:function(){const e=p()?p()+".":"",t=g?"/"+g:"",n=l||!Z(f).isEmpty()?v():"";return s+"://"+e+m()+t+n}}};var $e=function(){"use strict";var e=function(e){var t=[];return Z(e).each((function(e,n){t.concat(n).join("").length<=400&&t.push(n)})),t},t=function(e){var t=Pt.getAncestorNodes(e);return Z(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 bt.friendly&&!bt.isMobileApp()&&((n=te.getAggregator().request(be.AdSlotIDs))?r=n:(n=function(){var n,r;return(n=Pt.getOurNodeInTop())&&(r=t(n)),r&&e(r)}(),n&&(te.getAggregator().trigger(we.AddOutputItem,{output:n},Ce.Slid,{type:ne.DT_CODES.ADTALK,asION:!0}),te.getAggregator().provide(be.AdSlotIDs,n),r=n))),r}catch(e){te.getAggregator().trigger(we.Error,ne.ERROR_CODES.AD_SLOT_ID)}}()},Ze={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?te.getAggregator().trigger(we.Error,ne.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=Kt.getWindow().location;return!(!e||!e.ancestorOrigins)},hasPostMessage:function(){var e=Kt.getWindow();return!(!e||!Z.isFunction(e.postMessage))},getBrowserType:t,getBrowserTypeByUA:r,getUserAgent:n,params:function(){return{br:t(),bru:r(),an:(e=ne.NA,n=Kt.getWindow(),Z.isDef(n.navigator)&&Z.isDef(n.navigator.appName)&&(e=n.navigator.appName.toLowerCase()[0]),e)};var e,n},isAndroidWebViewBrowser:function(){var e=n();return nn.contains(e,"Android")&&Z(["Line","SamsungBrowser","FB_IAB","Silk"]).findFirst((function(t,n){return nn.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}}},ot=function(){"use strict";var e=function(){return!1};return{getBrowserType:()=>"u",getBrowserTypeByUA:()=>"d",getIOSVersion:()=>{},params:()=>({br:"u",bru:"d",an:ne.NA}),browserIs:e,getUserAgent:e,hasPostMessage:e,hasAncestorOrigins:e,hasIntersectionObserver:e,hasMutationObserver:e,isAndroidWebViewBrowser:e}},at=function(){"use strict";return{createInstance:function(e,t){return bt.isDomless()?new ut(t):new ct(e,t)}}},st=function(){"use strict";var t;return{isApplicable:function(n){var r=!(!(t=te.getAggregator().request(be.OmidAdSessionContext)).app||!t.isDisplay||t.isWeb),i=n&&n.indexOf("/blocking/")>-1&&!bt.integratedBlockingApplies(n),o=1!=e.forceNoIframe;return r&&i&&o},deployBlockingScriptIntoIframe:function(n){t=te.getAggregator().request(be.OmidAdSessionContext);var r,i="iasbi"+e.asid,o=function(t,n){var r,i,o,a=e[Ce.ContextNode].parentNode,s="about:blank",c=e.adWidth&&e.adWidth>0?e.adWidth:0,u=e[Ce.AdHeight]&&e[Ce.AdHeight]>0?e[Ce.AdHeight]:0,d=Kt.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"===Kt.getDoc().readyState&&(e.forceAppend="true"),"true"===e.forceAppend?((r=Kt.getDoc().createElement("IFRAME")).id=t,r.src=s,a.appendChild(r)):Kt.getDoc().write(''),(i=Kt.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=Kt.getDoc().getElementsByTagName("ins");if(o&&o.length>0){n=o[0],r="