/*
 (c)Lalit Patel, MODIFIED apache.org/licenses/LICENSE-2.0*/
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(a){return a.raw=a};$jscomp.createTemplateTagFirstArgWithRaw=function(a,b){a.raw=b;return a};$jscomp.checkStringArgs=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return 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.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};
$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.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");
var $jscomp$lookupPolyfilledValue=function(a,b){var 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];e in c||(c[e]={});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];g in d||(d[g]={});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&&($jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(e):$jscomp.POLYFILL_PREFIX+e,e=$jscomp.propertyToPolyfillSymbol[e],
$jscomp.defineProperty(d,e,{configurable:!0,writable:!0,value:b})))};$jscomp.polyfill("String.prototype.startsWith",function(a){return a?a:function(a,c){var b=$jscomp.checkStringArgs(this,a,"startsWith");a+="";var e=b.length,f=a.length;c=Math.max(0,Math.min(c|0,b.length));for(var g=0;g<f&&c<e;)if(b[c++]!=a[g++])return!1;return g>=f}},"es6","es3");$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.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.SymbolClass=function(a,b){this.$jscomp$symbol$id_=a;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:b})};$jscomp.SymbolClass.prototype.toString=function(){return this.$jscomp$symbol$id_};
$jscomp.Symbol=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new $jscomp.SymbolClass($jscomp.SYMBOL_PREFIX+(c||"")+"_"+b++,c)}var b=0;return a}();
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}});$jscomp.initSymbolIterator=function(){}};
$jscomp.initSymbolAsyncIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.asyncIterator;a||(a=$jscomp.global.Symbol.asyncIterator=$jscomp.global.Symbol("Symbol.asyncIterator"));$jscomp.initSymbolAsyncIterator=function(){}};$jscomp.iteratorPrototype=function(a){$jscomp.initSymbolIterator();a={next:a};a[$jscomp.global.Symbol.iterator]=function(){return this};return a};
$jscomp.iteratorFromArray=function(a,b){$jscomp.initSymbolIterator();a instanceof String&&(a+="");var c=0,d={next:function(){if(c<a.length){var e=c++;return{value:b(e,a[e]),done:!1}}d.next=function(){return{done:!0,value:void 0}};return d.next()}};d[Symbol.iterator]=function(){return d};return d};$jscomp.polyfill("Array.prototype.keys",function(a){return a?a:function(){return $jscomp.iteratorFromArray(this,function(a){return a})}},"es6","es3");
$jscomp.polyfill("Object.is",function(a){return a?a:function(a,c){return a===c?0!==a||1/a===1/c:a!==a&&c!==c}},"es6","es3");$jscomp.polyfill("Array.prototype.includes",function(a){return a?a:function(a,c){var b=this;b instanceof String&&(b=String(b));var e=b.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=b[c];if(f===a||Object.is(f,a))return!0}return!1}},"es7","es3");
$jscomp.polyfill("String.prototype.includes",function(a){return a?a:function(a,c){return-1!==$jscomp.checkStringArgs(this,a,"includes").indexOf(a,c||0)}},"es6","es3");function createScript$$module$dist$src$shared$dom(a){var b=document.createElement("script");b.type="text/javascript";b.src=a;b.onerror=function(b){reportError$$module$dist$src$ads$logging("Error loading script: "+a,b)};return b}
function docWrite$$module$dist$src$shared$dom(a){try{var b=(new DOMParser).parseFromString(a,"text/html");document.currentScript.parentNode.insertBefore(b,document.currentScript)}catch(c){reportError$$module$dist$src$ads$logging("docWrite Error",c)}}
function getBrowserEngine$$module$dist$src$shared$dom(a,b){a=a||window;b=b||document;var c=b.documentElement.style,d="un";try{if(a.chrome)d="cr";else if(a.ActiveXObject||"-ms-ime-align"in c)d="ie";else if("mozInnerScreenX"in a&&"mozFullScreen"in b||"MozAppearance"in c)d="fx";else if("WebKitCSSMatrix"in a||"WebKitPoint"in a||"webkitStorageInfo"in a||"webkitURL"in a)d="sf";else if("OLink"in c||a.opera)d="op"}catch(e){dbg$$module$dist$src$ads$logging(e)}return d}
function isOldIE$$module$dist$src$shared$dom(a){var b=/MSIE ([0-9]+[\.0-9]*)/;a=a||navigator.userAgent;return"ie"===getBrowserEngine$$module$dist$src$shared$dom()&&!!b.exec(a)&&10>parseInt(RegExp.$1)}
(function(a){"currentScript"in a||Object.defineProperty(a,"currentScript",{get:function(){try{throw Error();}catch(h){var b=0,c=/.*at [^(]*\((.*):(.+):(.+)\)$/ig.exec(h.stack),d=c&&c[1]||!1,e=c&&c[2]||!1;c=a.location.href.replace(a.location.hash,"");var f=a.getElementsByTagName("script");if(d===c){var g=a.documentElement.outerHTML;e=new RegExp("(?:[^\\n]+?\\n){0,"+(e-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i");g=g.replace(e,"$1").trim()}for(;b<f.length;b++)if("interactive"===f[b].readyState||
f[b].src===d||d===c&&f[b].innerHTML&&f[b].innerHTML.trim()===g)return f[b];return null}}})})(document);function getScriptTag$$module$dist$src$shared$dom(a){var b;if(document.currentScript)return a=document.currentScript;var c=document.getElementsByTagName("script");for(b=c.length-1;0<=b;b--)if(a.test(c[b].src))return c[b];return null}
function hasFont$$module$dist$src$shared$dom(a){var b=["monospace","sans-serif","serif"],c=document.body,d=document.createElement("span"),e=d.style,f={},g={};e.fontSize="42px";e.visibility="hidden";d.innerHTML="OWTMwMmllii";for(h in b)b.hasOwnProperty(h)&&(e.fontFamily=b[h],c.appendChild(d),f[b[h]]=d.offsetWidth,g[b[h]]=d.offsetHeight,c.removeChild(d));var h=!1;var k;for(k in b)if(b.hasOwnProperty(k)){e.fontFamily=a+","+b[k];c.appendChild(d);var m=d.offsetWidth!==f[b[k]]||d.offsetHeight!==g[b[k]];
c.removeChild(d);h=h||m}return h}
function unhideElem$$module$dist$src$shared$dom(a,b,c){if(!a)return log$$module$dist$src$ads$logging("undefined element"),!1;for(a=a.parentNode;a&&"HTML"!==a.nodeName&&"BODY"!==a.nodeName;){if(a.style){b&&a.clientWidth<b&&(a.style.width=null);c&&a.clientHeight<c&&(a.style.height=null);if("undefined"!==typeof a.style.display&&""===a.style.display&&a.id&&0===a.id.indexOf("sovrn")||a.style.display&&"none"===a.style.display)a.style.display="block";a.style.visibility="visible";a.style.opacity="1"}a=a.parentNode}return!0}
function insCleanup$$module$dist$src$shared$dom(a){if(!a)throw new TypeError("element is required");try{var b,c=a.parentNode.children;for(b=0;b<c.length;b++)"ins"===c[b].tagName.toLowerCase()&&c[b]!==a&&(c[b].style.display="none");return!0}catch(d){return reportError$$module$dist$src$ads$logging("insCleanup Error",d),!1}}
function readCookie$$module$dist$src$shared$dom(a){a+="=";for(var b=document.cookie.split(";"),c=0;c<b.length;c++){for(var d=b[c];" "==d.charAt(0);)d=d.substring(1,d.length);if(0==d.indexOf(a))return d.substring(a.length,d.length)}return null}
function isNativeCode$$module$dist$src$shared$dom(a){var b=(typeof a).toLowerCase();return("function"===b||"object"===b)&&/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code\]\s*}\s*$/i.test(a+"")}
function getFlashVersion$$module$dist$src$shared$dom(){function a(a){a=a.match(/[\d]+/g);a.length=3;return a.join(".")}var b;var c=!1;var d="";if(navigator.plugins&&navigator.plugins.length)(b=navigator.plugins["Shockwave Flash"])&&(c=!0,b.description&&(d=a(b.description))),navigator.plugins["Shockwave Flash 2.0"]&&(c=!0,d="2.0.0.11");else if(navigator.mimeTypes&&navigator.mimeTypes.length)(c=(b=navigator.mimeTypes["application/x-shockwave-flash"])&&b.enabledPlugin)&&(d=a(b.enabledPlugin.description));
else try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),c=!0,d=a(b.GetVariable("$version"))}catch(e){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),c=!0,d="6.0.21"}catch(f){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),c=!0,d=a(b.GetVariable("$version"))}catch(g){}}}return c?d:"0.0.0"}function getSpif$$module$dist$src$shared$dom(){return"undefined"!==typeof window.postMessage}
function getTransactionFromCallingScriptTag$$module$dist$src$shared$dom(){try{var a=Error().stack;if(!a)try{throw Error();}catch(d){a=d.stack}var b=a.split("\n"),c=b[b.length-1];""===c&&(c=b[b.length-2]);return c.split("&").filter(function(a){return a.startsWith("tid")})[0].split("=")[1]}catch(d){}return!1}var module$dist$src$shared$dom={};module$dist$src$shared$dom.createScript=createScript$$module$dist$src$shared$dom;module$dist$src$shared$dom.docWrite=docWrite$$module$dist$src$shared$dom;
module$dist$src$shared$dom.getBrowserEngine=getBrowserEngine$$module$dist$src$shared$dom;module$dist$src$shared$dom.getFlashVersion=getFlashVersion$$module$dist$src$shared$dom;module$dist$src$shared$dom.getScriptTag=getScriptTag$$module$dist$src$shared$dom;module$dist$src$shared$dom.getSpif=getSpif$$module$dist$src$shared$dom;module$dist$src$shared$dom.getTransactionFromCallingScriptTag=getTransactionFromCallingScriptTag$$module$dist$src$shared$dom;module$dist$src$shared$dom.hasFont=hasFont$$module$dist$src$shared$dom;
module$dist$src$shared$dom.insCleanup=insCleanup$$module$dist$src$shared$dom;module$dist$src$shared$dom.isNativeCode=isNativeCode$$module$dist$src$shared$dom;module$dist$src$shared$dom.isOldIE=isOldIE$$module$dist$src$shared$dom;module$dist$src$shared$dom.readCookie=readCookie$$module$dist$src$shared$dom;module$dist$src$shared$dom.unhideElem=unhideElem$$module$dist$src$shared$dom;function byChance$$module$dist$src$shared$math(a){a=parseFloat(a);return isNaN(a)?null:Math.floor(100*Math.random())<=a}function getGUID$$module$dist$src$shared$math(){function a(b){return b?(b^16*Math.random()>>b/4).toString(16):((1E7).toString()+1E3+4E3+8E3+1E19).replace(/[018]/g,a)}return a()}var module$dist$src$shared$math={};module$dist$src$shared$math.byChance=byChance$$module$dist$src$shared$math;module$dist$src$shared$math.getGUID=getGUID$$module$dist$src$shared$math;var ad_url_regxs$$module$dist$src$ads$constants_regex=[{dmn:"?(apr|ap|www)?\\.lijit\\.(com|dev)",pat:'.*(\\?|&)(loc)=([^"&;, ]+)'},{dmn:"?googleusercontent\\.com",pat:'.*?u=([^"&;, ]+)'},{dmn:"webcache.googleusercontent.com/search",pat:'\\?q=cache:[^:]+:([^"&;, \\+]+)'},{dmn:"?doubleclick.*?",pat:'(url|admu|click|dc_ref)=([^"&;, ]+)'},{dmn:"?yieldmanager\\.com",pat:".*?==,,([^,]+)"},{dmn:"?yieldmanager\\.com",pat:'.*?pub_url=(\\$)?([^"&;, ]+)'},{dmn:"?openx.*",pat:'(\\?|&)loc=([^"&;, ]+)'},{dmn:"?admeld.com.*",
pat:'?url=([^"&;, ]+)'},{dmn:"?adnxs.com.*",pat:'?referrer=([^"&;, ]+)'},{dmn:"?ro2\\.biz.*",pat:'?rf=([^"&;, ]+)'},{dmn:"?ads.micklemedia\\.com",pat:'.*?&r=([^"&;, ]+)'},{dmn:"?c\\.lqw\\.me.*?",pat:'"url":"([^"& ]+)'},{dmn:"?mb\\.zam\\.com",pat:'.*?tr=([^"&;, ]+)'},{dmn:"?rubiconproject\\.com",pat:'.*?rf=([^"&;, ]+)'},{dmn:"?moocowads\\.com",pat:'.*?url=([^"&;, ]+)'},{dmn:"?pubmatic\\.com",pat:'.*?(\\?|&)(refurl|kadpageurl)=([^"&;, ]+)'},{dmn:"?tagcade\\.com",pat:'.*?(\\?|&)src=([^"&;, ]+)'},{dmn:"?burstdirectads\\.com",
pat:'.*?(\\?|&)(pub_url|src)=([^"&;, ]+)'},{dmn:"?localpages\\.com",pat:'.*?(\\?|&)(pageUrl)=([^"&;, ]+)'},{dmn:"?888media\\.net",pat:'.*?(\\?|&)(page_address|uadr)=([^"&;, ]+)'},{dmn:"",pat:"^javascript:.*http://www.googletagservices.com/tag/js/gpt.js.*page_url','([^'\"&;, ]+)"}],http_rgx$$module$dist$src$ads$constants_regex="^http(s)?:\\/\\/.*",other_url_regxs$$module$dist$src$ads$constants_regex=[{dmn:"",pat:"^{(.*)}$"},{dmn:"",pat:'#\\(parent_location\\)\\[([^\\]"&;, ]+)'}],module$dist$src$ads$constants_regex=
{ad_url_regxs:ad_url_regxs$$module$dist$src$ads$constants_regex,http_rgx:http_rgx$$module$dist$src$ads$constants_regex,other_url_regxs:other_url_regxs$$module$dist$src$ads$constants_regex};function buildQS$$module$dist$src$shared$url(a,b){var c,d=encodeURIComponent;b=b?"&amp;":"&";var e=[];for(c in a)a.hasOwnProperty(c)&&""!==c&&""!==a[c]&&e.push(d(c)+"="+d(a[c]));return e.join(b)}function urlCheck$$module$dist$src$shared$url(a){var b=!0;if(!a||-1===a.indexOf(".")||4>a.length||0===a.indexOf("file:")||0<=a.indexOf("javascript:")||0<=a.indexOf("data:"))b=!1;try{decodeURI(a)}catch(c){b=!1}return b}
function extractLoc$$module$dist$src$shared$url(a){var b=decodeURIComponent,c,d,e,f="";if(!a)return"";var g=/^http(s)?%/i;var h=[ad_url_regxs$$module$dist$src$ads$constants_regex,other_url_regxs$$module$dist$src$ads$constants_regex];try{try{var k=["/^http(s)?://.*?adnxs.com/bounce.*referrer.*/"];for(d=0;d<k.length;d++)if((new RegExp(k[d])).test(a)){try{a=b(a)}catch(l){dbg$$module$dist$src$ads$logging(l)}break}}catch(l){dbg$$module$dist$src$ads$logging(l)}for(;g.test(a);)try{a=b(a)}catch(l){dbg$$module$dist$src$ads$logging(l)}for(c=
0;c<h.length;c++)for(d=0;d<h[c].length;d++){var m=h[c][d].dmn?http_rgx$$module$dist$src$ads$constants_regex:"";var n=new RegExp(m+h[c][d].dmn+h[c][d].pat,"i");if((e=n.exec(a))&&1<=e.length){f=b(e[e.length-1]);break}}}catch(l){dbg$$module$dist$src$ads$logging(l)}b=extractLoc$$module$dist$src$shared$url(f);return urlCheck$$module$dist$src$shared$url(b)?b:a}
function parseUri$$module$dist$src$shared$url(a){var b;try{var c="source protocol authority userInfo user password host port relative path directory file query anchor".split(" ");var d=/(?:^|&)([^&=]*)=?([^&]*)/g;var e=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/;var f=e.exec(a);var g={};for(b=14;b--;)g[c[b]]=f[b]||"";g.queryKey={};g[c[12]].replace(d,
function(a,b,c){b&&(g.queryKey[b]=c)});return g}catch(h){reportError$$module$dist$src$ads$logging("parseUri Error",h)}}function getNonWebKitTopParentLoc$$module$dist$src$shared$url(){var a="";do{var b=b?b.parent:window;try{a=b.document.referrer}catch(c){return a}}while(b!==window.top);return""}
function getTopParentLoc$$module$dist$src$shared$url(){var a="";try{if(window.$sf)a=document.referrer;else{var b=document.location;var c=b.ancestorOrigins;b&&c&&1<c.length?a=c[c.length-1]:b&&!b.hasOwnProperty("ancestorOrigins")&&(a=getNonWebKitTopParentLoc$$module$dist$src$shared$url())}}catch(d){reportError$$module$dist$src$ads$logging("getTopParentLoc failure",d)}return a}
function parseQueryString$$module$dist$src$shared$url(a){var b={};a=a.split("?")[1]||"";a=a.split("#")[0]||"";if(!a)return{};a.replace(/([^?=&]+)(=([^&]*))?/g,function(a,d,e,f){try{b[d]=decodeURIComponent(f)}catch(g){dbg$$module$dist$src$ads$logging(g)}});return b}function matchProps$$module$dist$src$shared$url(a,b){var c,d={};for(c in b)b.hasOwnProperty(c)&&c.match(a)&&(d[c]=b[c]);return d}var module$dist$src$shared$url={};module$dist$src$shared$url.buildQS=buildQS$$module$dist$src$shared$url;
module$dist$src$shared$url.extractLoc=extractLoc$$module$dist$src$shared$url;module$dist$src$shared$url.getNonWebKitTopParentLoc=getNonWebKitTopParentLoc$$module$dist$src$shared$url;module$dist$src$shared$url.getTopParentLoc=getTopParentLoc$$module$dist$src$shared$url;module$dist$src$shared$url.matchProps=matchProps$$module$dist$src$shared$url;module$dist$src$shared$url.parseQueryString=parseQueryString$$module$dist$src$shared$url;module$dist$src$shared$url.parseUri=parseUri$$module$dist$src$shared$url;
module$dist$src$shared$url.urlCheck=urlCheck$$module$dist$src$shared$url;var buildConfig$$module$dist$src$ads$buildConfig={code_version:"1.70",beacon_url:"https://gslbeacon.lijit.com/beacon",adserver_url:"https://ap.lijit.com/addelivery",error_url:"https://ap.lijit.com/data/errors",config_url:"https://ap.lijit.com/adcfg",cookie_domain:".lijit.com",adserver_base:"https://ap.lijit.com",webserver_base:"https://www.lijit.com",impression_suffix:"/addelivery/impression",ad_timing_suffix:"/data/fp",adcenter_base:"https://adcenter.lijit.com/",lg_suffix:"/addelivery/impression",
log_all_js_errors:1,ssl_support:!0,tag_regex:/^(https?:)?\/\/.*\.lijit\.(com|dev)(:\d+)?(\/\/)?(\/www)?(\/delivery)?(\/js)?\/(fp|sync)/i,geo:{localStorageMaxAge:6E5,positionOptions:{timeout:3E4,maximumAge:0}},page:{log_page_data_percent:1,title_size:256,desc_size:256}},$jscompDefaultExport$$module$dist$src$ads$buildConfig=buildConfig$$module$dist$src$ads$buildConfig,module$dist$src$ads$buildConfig={buildConfig:buildConfig$$module$dist$src$ads$buildConfig};module$dist$src$ads$buildConfig.default=$jscompDefaultExport$$module$dist$src$ads$buildConfig;function createiFrame$$module$dist$src$ads$utils_iframe(a,b,c){var d,e,f=document.createElement("iframe"),g=f.style;a={id:a,margin:"0",padding:"0",frameborder:"0",width:b+"",height:c+"",scrolling:"no",src:"about:blank"};b={margin:"0px",padding:"0px",border:"0px none",width:b+"px",height:c+"px",overflow:"hidden"};for(d in a)a.hasOwnProperty(d)&&f.setAttribute(d,a[d]);for(e in b)if(b.hasOwnProperty(e))try{g[e]=b[e]}catch(h){}return f}
function inFriendlyIframe$$module$dist$src$ads$utils_iframe(){if(!$jscompDefaultExport$$module$dist$src$ads$config.isAsync())return!1;var a=$jscompDefaultExport$$module$dist$src$ads$config.getAsyncConfig("id");try{var b=!!self.parent.document.getElementById(a)}catch(c){b=!1}return b}function isInIframe$$module$dist$src$ads$utils_iframe(){return self!==top}
function getFrameDepth$$module$dist$src$ads$utils_iframe(a){a=a||self;return a===top?0:1+getFrameDepth$$module$dist$src$ads$utils_iframe(a.parent)}function getFriendlyIframe$$module$dist$src$ads$utils_iframe(){if(!inFriendlyIframe$$module$dist$src$ads$utils_iframe())return null;var a=$jscompDefaultExport$$module$dist$src$ads$config.getAsyncConfig("id");return self.parent.document.getElementById(a)}
function directOnPage$$module$dist$src$ads$utils_iframe(){var a=getFrameDepth$$module$dist$src$ads$utils_iframe();return 1<a?!1:$jscompDefaultExport$$module$dist$src$ads$config.isAsync()?inFriendlyIframe$$module$dist$src$ads$utils_iframe():0===a}
function asyncLevelUp$$module$dist$src$ads$utils_iframe(a){var b=$jscompDefaultExport$$module$dist$src$ads$config.getConfig(a),c=window.parent.window,d=c.sovrn;a=a||b.tid;try{return d=d||window.sovrn,d.config=d.config||window.sovrn.config,d.config.ads=d.config.ads||window.sovrn.config.ads,"undefined"===typeof d.config.ads.instances[a]&&(d.config.ads.instances[a]=b),d.config.ct=d.config.ct||window.sovrn.config.ct,"undefined"===typeof d.config.ct.instances[a]&&window.sovrn.ct.getConfig&&(d.config.ct.instances[a]=
window.sovrn.ct.getConfig(a)),c.LJT_Ads=d.ads=d.ads||window.sovrn.ads,d.ct=d.containerTag=d.containerTag||window.sovrn.containerTag,log$$module$dist$src$ads$logging("Async Level UP ("+b.zone_id+" / "+a+")"),!0}catch(e){return dbg$$module$dist$src$ads$logging(e),!1}}var module$dist$src$ads$utils_iframe={};module$dist$src$ads$utils_iframe.asyncLevelUp=asyncLevelUp$$module$dist$src$ads$utils_iframe;module$dist$src$ads$utils_iframe.createiFrame=createiFrame$$module$dist$src$ads$utils_iframe;
module$dist$src$ads$utils_iframe.directOnPage=directOnPage$$module$dist$src$ads$utils_iframe;module$dist$src$ads$utils_iframe.getFrameDepth=getFrameDepth$$module$dist$src$ads$utils_iframe;module$dist$src$ads$utils_iframe.getFriendlyIframe=getFriendlyIframe$$module$dist$src$ads$utils_iframe;module$dist$src$ads$utils_iframe.inFriendlyIframe=inFriendlyIframe$$module$dist$src$ads$utils_iframe;module$dist$src$ads$utils_iframe.isInIframe=isInIframe$$module$dist$src$ads$utils_iframe;function getOriginalLoc$$module$dist$src$ads$getLoc(){var a=document.location.href;try{if($jscompDefaultExport$$module$dist$src$ads$config.isAsync())if("1"===$jscompDefaultExport$$module$dist$src$ads$config.getAsyncConfig("ifr")&&$jscompDefaultExport$$module$dist$src$ads$config.getAsyncConfig("ref"))var b=$jscompDefaultExport$$module$dist$src$ads$config.getAsyncConfig("ref");else document.referrer&&(b=document.referrer);urlCheck$$module$dist$src$shared$url(b)||(b=$jscompDefaultExport$$module$dist$src$ads$config.getAsyncConfig("loc")||
a);b=extractLoc$$module$dist$src$shared$url(b)}catch(c){reportError$$module$dist$src$ads$logging("getOriginalLoc failure",c)}b=urlCheck$$module$dist$src$shared$url(b)?b:a;return"http://"+b.replace("http://","").substr(0,1024)}
function getLoc$$module$dist$src$ads$getLoc(a){var b=$jscompDefaultExport$$module$dist$src$ads$config.getConfig();try{isInIframe$$module$dist$src$ads$utils_iframe()&&(a=a||getTopParentLoc$$module$dist$src$shared$url(),$jscompDefaultExport$$module$dist$src$ads$config.isAsync()&&"1"===$jscompDefaultExport$$module$dist$src$ads$config.getAsyncConfig("ifr")?a=a||$jscompDefaultExport$$module$dist$src$ads$config.getAsyncConfig("loc"):document.referrer&&(a=a||document.referrer)),a=extractLoc$$module$dist$src$shared$url(a),
urlCheck$$module$dist$src$shared$url(a)||(a=extractLoc$$module$dist$src$shared$url(document.location.href))}catch(c){reportError$$module$dist$src$ads$logging("getLoc failure",c)}if(!urlCheck$$module$dist$src$shared$url(a))return"";b.zone&&1!==b.zone.rl&&!a.match(http_rgx$$module$dist$src$ads$constants_regex)&&(a=b.protocol+"//"+a);return a.substr(0,1024)}function getLocHost$$module$dist$src$ads$getLoc(a){return parseUri$$module$dist$src$shared$url(getLoc$$module$dist$src$ads$getLoc(a)).host}
function getRef$$module$dist$src$ads$getLoc(){return($jscompDefaultExport$$module$dist$src$ads$config.isAsync()?$jscompDefaultExport$$module$dist$src$ads$config.getAsyncConfig("ref")||"":document.referrer).substr(0,1024)}
function getRefSearch$$module$dist$src$ads$getLoc(a){var b=["q","p","search","query","kw"];a=a||getRef$$module$dist$src$ads$getLoc();if(!a)return"";try{a=decodeURI(a)}catch(d){dbg$$module$dist$src$ads$logging(d)}var c=parseQueryString$$module$dist$src$shared$url(a);for(a=0;a<b.length;a++)if(c.hasOwnProperty(b[a]))return c[b[a]].replace(/\+/g," ").substr(0,128);return""}
function getOD$$module$dist$src$ads$getLoc(){var a=$jscompDefaultExport$$module$dist$src$ads$config.getAsyncConfig("od")||null;isInIframe$$module$dist$src$ads$utils_iframe()&&("1"===$jscompDefaultExport$$module$dist$src$ads$config.getAsyncConfig("ifr")&&$jscompDefaultExport$$module$dist$src$ads$config.getAsyncConfig("ref")?a=$jscompDefaultExport$$module$dist$src$ads$config.getAsyncConfig("ref"):document.referrer&&(a=document.referrer));a=a||document.location.href.replace(/["']/g,"");return parseUri$$module$dist$src$shared$url(a).host}
var module$dist$src$ads$getLoc={};module$dist$src$ads$getLoc.getLoc=getLoc$$module$dist$src$ads$getLoc;module$dist$src$ads$getLoc.getLocHost=getLocHost$$module$dist$src$ads$getLoc;module$dist$src$ads$getLoc.getOD=getOD$$module$dist$src$ads$getLoc;module$dist$src$ads$getLoc.getOriginalLoc=getOriginalLoc$$module$dist$src$ads$getLoc;module$dist$src$ads$getLoc.getRef=getRef$$module$dist$src$ads$getLoc;module$dist$src$ads$getLoc.getRefSearch=getRefSearch$$module$dist$src$ads$getLoc;var Config$$module$dist$src$ads$config=function(){window.sovrn=window.sovrn||{};window.sovrn.config=window.sovrn.config||{};window.sovrn.config.ads=window.sovrn.config.ads||{instances:{},current_tid:"",globals:{beacon_tid_ss_key:"sovrn_beacon_tid_",tids:[],lgq:[],lg_fired:[],ie_cleanup_flag:!0,origin_regex:/.*\.lijit\.(com|dev).*$/i,fprint:""}};this.globalConfig=window.sovrn.config.ads};
Config$$module$dist$src$ads$config.prototype.addTransaction=function(){var a=getGUID$$module$dist$src$shared$math();this.globalConfig.globals.tids.push(a);this.globalConfig.current_tid=a;this.globalConfig.instances[a]=this.adsInstance={chain:{},tid:a,zone_id:"0",protocol:location.protocol};return a};Config$$module$dist$src$ads$config.prototype.getConfig=function(a){return a?this.globalConfig.instances[a]:this.adsInstance};
Config$$module$dist$src$ads$config.prototype.setConfig=function(a){this.adsInstance=this.globalConfig.instances[a]};Config$$module$dist$src$ads$config.prototype.getPod=function(a){return this.getConfig(a).chain.pod};Config$$module$dist$src$ads$config.prototype.getZoneID=function(){return this.getConfigParam("z",0)};Config$$module$dist$src$ads$config.prototype.getMode=function(){var a=0;this.isAsync()&&(a=1);isOldIE$$module$dist$src$shared$dom()&&(a+=2);return a};
Config$$module$dist$src$ads$config.prototype.getBannerID=function(a){a=this.getConfig(a);return a.hasOwnProperty("chain")?parseInt(a.chain.banner_id):0};Config$$module$dist$src$ads$config.prototype.isAsync=function(){if(self===top)return!1;var a=this.adsInstance.async;return"object"===typeof a&&"{}"!==JSON.stringify(a)};Config$$module$dist$src$ads$config.prototype.getDTID=function(){return this.getConfigParam("dtid")||""};
Config$$module$dist$src$ads$config.prototype.getTIDsByZoneID=function(a){for(var b=Object.keys(this.globalConfig.instances),c=[],d=0;d<b.length;d++)this.globalConfig.instances[b[d]].zone_id===a&&c.push(this.globalConfig.instances[b[d]].tid);return c};
Config$$module$dist$src$ads$config.prototype.getAsyncConfig=function(a){return this.isAsync()?this.adsInstance.async?a?"undefined"!==typeof this.adsInstance.async[a]?this.adsInstance.async[a]:null:this.adsInstance.async:(reportError$$module$dist$src$ads$logging("Cant find Async Config",Error()),null):null};Config$$module$dist$src$ads$config.prototype.getAdUnitID=function(a){try{var b=this.getConfig(a).ad_unit_id}catch(c){b="sovrn_ad_unit_"+Math.floor(99999*Math.random())+100}return b};
Config$$module$dist$src$ads$config.prototype.getUsername=function(){return this.getConfigParam("u","")};Config$$module$dist$src$ads$config.prototype.getCampaignID=function(a){a=this.getConfig(a);return a.hasOwnProperty("chain")?a.chain.campaign_id:0};
Config$$module$dist$src$ads$config.prototype.getConfigFromServer=function(){try{var a={};a.zoneid=this.adsInstance.zone_id;a.tid=this.adsInstance.tid;a.mode=this.getMode();a.dmn=getLocHost$$module$dist$src$ads$getLoc();var b=document.createElement("script");b.src=$jscompDefaultExport$$module$dist$src$ads$buildConfig.config_url+"?"+buildQS$$module$dist$src$shared$url(a);b.async=!1;document.head.appendChild(b);log$$module$dist$src$ads$logging("*adcfg ("+this.getZoneID+" / "+this.adsInstance.tid+")");
recordEvent$$module$dist$src$ads$logging("adcfg")}catch(c){reportError$$module$dist$src$ads$logging("ADCFGERROR",c)}};Config$$module$dist$src$ads$config.prototype.getConfigParam=function(a,b){return this.isAsync()?this.getAsyncConfig(a):this.adsInstance.query_params.hasOwnProperty(a)?this.adsInstance.query_params[a]:b};var $jscompDefaultExport$$module$dist$src$ads$config=new Config$$module$dist$src$ads$config,module$dist$src$ads$config={};module$dist$src$ads$config.default=$jscompDefaultExport$$module$dist$src$ads$config;function dbgEnabled$$module$dist$src$shared$debug(){try{var a=window.localStorage.getItem("debug")}catch(b){a=(document.cookie.match(/(^|; )debug=([^;]*)/)||0)[2]}return 1==a}function debug$$module$dist$src$shared$debug(a){a=parseInt(a,10);try{window.localStorage.setItem("debug",a)}catch(b){document.cookie="debug="+a+"; expires=Tue, 19 Jan 2038 00:00:00 GMT; path=/;"}return dbgEnabled$$module$dist$src$shared$debug()}window.sovrn=window.sovrn||{};window.sovrn.debug=debug$$module$dist$src$shared$debug;
var module$dist$src$shared$debug={};module$dist$src$shared$debug.dbgEnabled=dbgEnabled$$module$dist$src$shared$debug;module$dist$src$shared$debug.debug=debug$$module$dist$src$shared$debug;function dbg$$module$dist$src$ads$logging(a){if("undefined"===typeof console)return!1;if(dbgEnabled$$module$dist$src$shared$debug()){var b=a&&a.hasOwnProperty("stack")?a.stack:"";console.warn("[SQUELCHED ERROR]: "+a.message+"\n"+b)}return!0}
function reportError$$module$dist$src$ads$logging(a,b){var c=$jscompDefaultExport$$module$dist$src$ads$config.getConfig(),d=c.zone_id;try{var e=b&&b.hasOwnProperty("stack")?b.stack:"",f={zoneid:d};f.tid=c.tid;f.cv=$jscompDefaultExport$$module$dist$src$ads$buildConfig.cv;f.err=b&&b.hasOwnProperty("message")?b.message:"";f.msg=a;f.stack=e.substr(0,1024)(new Image).src=$jscompDefaultExport$$module$dist$src$ads$buildConfig.error_url+"/fp?"+buildQS$$module$dist$src$shared$url(f);dbgEnabled$$module$dist$src$shared$debug()&&
(a="JS ERROR on Zone "+d+"\n\n"+a+"\n\n"+e,alert(a),window.console&&console.error(a))}catch(g){dbg$$module$dist$src$ads$logging(g)}return b}
function log$$module$dist$src$ads$logging(a){var b="",c="";if("undefined"===typeof console)return!1;if(dbgEnabled$$module$dist$src$shared$debug()){var d=$jscompDefaultExport$$module$dist$src$ads$config.getConfig();var e=(new Date).getTime()-d.start_time;a="[sovrn.ads] "+e+": "+a;"ie"!==getBrowserEngine$$module$dist$src$shared$dom()&&(c="%c",b="background-color: #FFED96");console.log(c+a,b);d.log+=a+"\n"}}
function logToServer$$module$dist$src$ads$logging(){var a=$jscompDefaultExport$$module$dist$src$ads$config.getConfig(),b=$jscompDefaultExport$$module$dist$src$ads$buildConfig.ad_timing_suffix,c,d={tid:a.tid,zoneid:a.zone_id,starttime:a.start_time};for(c=0;c<a.ad_events.length;c++)d[a.ad_events[c].name]=a.ad_events[c].ts;c=$jscompDefaultExport$$module$dist$src$ads$config.getConfig(a.tid);"undefined"!==typeof c.start_time&&(d.ctstart=c.start_time-a.start_time);a.elapsed_ms=d.elapsed_ms=(new Date).getTime()-
a.start_time;c="http";$jscompDefaultExport$$module$dist$src$ads$buildConfig.ssl_support&&(c+="s");a=c+"://"+$jscompDefaultExport$$module$dist$src$ads$config.getPod(a.tid)+b+"?"+buildQS$$module$dist$src$shared$url(d);(new Image).src=a;log$$module$dist$src$ads$logging("Logged Ad Tag Successfully")}
function recordEvent$$module$dist$src$ads$logging(a){var b=$jscompDefaultExport$$module$dist$src$ads$config.getConfig();a={name:a,ts:(new Date).getTime()-b.start_time};"undefined"===typeof b.ad_events&&(b.ad_events=[]);b.ad_events.push(a)}var module$dist$src$ads$logging={};module$dist$src$ads$logging.dbg=dbg$$module$dist$src$ads$logging;module$dist$src$ads$logging.log=log$$module$dist$src$ads$logging;module$dist$src$ads$logging.logToServer=logToServer$$module$dist$src$ads$logging;
module$dist$src$ads$logging.recordEvent=recordEvent$$module$dist$src$ads$logging;module$dist$src$ads$logging.reportError=reportError$$module$dist$src$ads$logging;function getTitle$$module$dist$src$ads$page(){var a,b=inFriendlyIframe$$module$dist$src$ads$utils_iframe()?window.parent.document:document;var c="";b.querySelector&&(a=b.querySelector("meta[property='og:title']"))&&(c=a.getAttribute("content")||"");c||(a=b.getElementsByTagName("title"),c=0<a.length?a[0].innerHTML+"":"");return c.substr(0,$jscompDefaultExport$$module$dist$src$ads$buildConfig.page.title_size,10)}
function getDesc$$module$dist$src$ads$page(){var a;if(!document.querySelector)return"";var b=inFriendlyIframe$$module$dist$src$ads$utils_iframe()?window.parent.document:document;var c="";(a=b.querySelector("meta[property='og:description']"))?c=a.getAttribute("content"):(a=b.querySelector("meta[name='description']"))&&(c=a.getAttribute("content"));return c.substr(0,$jscompDefaultExport$$module$dist$src$ads$buildConfig.page.desc_size,10)}var module$dist$src$ads$page={};
module$dist$src$ads$page.getDesc=getDesc$$module$dist$src$ads$page;module$dist$src$ads$page.getTitle=getTitle$$module$dist$src$ads$page;var buildConfig$$module$dist$src$container$buildConfig={ct_url:"https://ap.lijit.com/containertag",log_url:"https://ap.lijit.com/data/ct",error_url:"https://ap.lijit.com/data/error",tag_regex:/^(https?:)?\/\/.*\.lijit\.(com|dev)(:\d+)?\/res\/sovrn\.containertag(\.min)?\.js/i,cv:"1.70"},$jscompDefaultExport$$module$dist$src$container$buildConfig=buildConfig$$module$dist$src$container$buildConfig,module$dist$src$container$buildConfig={buildConfig:buildConfig$$module$dist$src$container$buildConfig};
module$dist$src$container$buildConfig.default=$jscompDefaultExport$$module$dist$src$container$buildConfig;function log$$module$dist$src$container$logging(a){var b="",c="";if("undefined"!==typeof console&&dbgEnabled$$module$dist$src$shared$debug()){var d=$jscompDefaultExport$$module$dist$src$container$config.getConfig();var e=(new Date).getTime()-d.start_time;a="[sovrn.ct] "+e+": "+a+" ("+$jscompDefaultExport$$module$dist$src$container$config.ctInstance.tid+")";"ie"!==getBrowserEngine$$module$dist$src$shared$dom()&&(c="%c",b="background-color: #FFED96");console.log(c+a,b);d.log+=a+"\n";return!0}return!1}
function reportError$$module$dist$src$container$logging(a,b){var c=$jscompDefaultExport$$module$dist$src$container$config.ctInstance.zone_id||"";try{var d=b&&b.hasOwnProperty("stack")?b.stack:"";var e={zoneid:c,tid:$jscompDefaultExport$$module$dist$src$container$config.ctInstance.tid,err:b&&b.hasOwnProperty("message")?b.message:"",msg:a,stack:d.substr(0,1024)};(new Image).src=$jscompDefaultExport$$module$dist$src$container$buildConfig.error_url+"/ct?"+buildQS$$module$dist$src$shared$url(e);if(dbgEnabled$$module$dist$src$shared$debug()){var f=
"CT JS ERROR: \n\n"+a+"\n\n"+d;alert(f);window.console&&console.error(f)}}catch(g){}return b}var module$dist$src$container$logging={};module$dist$src$container$logging.log=log$$module$dist$src$container$logging;module$dist$src$container$logging.reportError=reportError$$module$dist$src$container$logging;var Config$$module$dist$src$container$config=function(){window.sovrn=window.sovrn||{};window.sovrn.config=window.sovrn.config||{};window.sovrn.config.ct=window.sovrn.config.ct||{instances:{},current_tid:"",globals:{fired_tags:{}}};this.ctConfig=window.sovrn.config.ct};
Config$$module$dist$src$container$config.prototype.addTransaction=function(a){a=void 0===a?getGUID$$module$dist$src$shared$math():a;this.ctConfig.current_tid=a;this.ctConfig.instances[a]=this.ctInstance={tid:a,zone_id:null,start_time:(new Date).getTime(),elapsed_ms:0,tss:[],query_params:{},data:{},fired_tags:{},all_tag_ids:[],fired_tag_ids:[],img_tags_fired:0,script_tags_fired:0,total_tags_fired:0,log:"",tag_status_codes:{}};return a};
Config$$module$dist$src$container$config.prototype.getConfig=function(a){return a?this.ctConfig.instances[a]:this.ctInstance};Config$$module$dist$src$container$config.prototype.getQueryParam=function(a){var b=this.ctInstance.query_params||{};return b.hasOwnProperty(a)?b[a]:null};
Config$$module$dist$src$container$config.prototype.addContainerData=function(a){this.ctInstance.data=a;this.ctInstance.data_layer={commscoreCategory:a.commscoreCategory||"",sovrnApplications:a.application_ids||[],sovrnGeo:a.geo||"",sovrnIid:a.user.iid||"",sovrnRandom:Math.floor(9E6*Math.random()),sovrnReader:a.ljt_reader||"",sovrnUser:a.user.username||""}};Config$$module$dist$src$container$config.prototype.getDataLayerValue=function(a){return this.ctInstance.data_layer[a]};
Config$$module$dist$src$container$config.prototype.getConfigValue=function(a){return this.ctInstance.data&&this.ctInstance.data.hasOwnProperty(a)?this.ctInstance.data[a]:null};Config$$module$dist$src$container$config.prototype.getData=function(a){var b=this.getDataLayerValue(a);if(null!==b&&void 0!==b)return b;b=this.getConfigValue(a);return null!==b&&void 0!==b?b:this.ctInstance[a]};
Config$$module$dist$src$container$config.prototype.setStatusCode=function(a,b){try{this.ctInstance.tag_status_codes&&"object"===typeof this.ctInstance.tag_status_codes[a]&&(this.ctInstance.tag_status_codes[a][b]=!0)}catch(c){return reportError$$module$dist$src$container$logging("Error Setting Status Code: "+b+" for Tag: "+a,c),!1}return!0};var $jscompDefaultExport$$module$dist$src$container$config=new Config$$module$dist$src$container$config,module$dist$src$container$config={};
module$dist$src$container$config.default=$jscompDefaultExport$$module$dist$src$container$config;function getTags$$module$dist$src$container$tags(a,b){var c=[],d=$jscompDefaultExport$$module$dist$src$container$config.getConfig(a);a=d.data.tags;if(b){b=d.fired_tags;for(d=0;d<a.length;d++)b.hasOwnProperty(a[d].id)&&c.push(a[d]);return c}return a}function getTagParams$$module$dist$src$container$tags(a){var b;var c={};if(a.params)for(b=0;b<a.params.length;b++)c[a.params[b].key]=$jscompDefaultExport$$module$dist$src$container$config.getData(a.params[b].var)+"";return c}
function getTagById$$module$dist$src$container$tags(a,b){var c;b=getTags$$module$dist$src$container$tags(b);for(c=0;c<b.length;c++){var d=b[c];if(parseInt(d.id,10)===parseInt(a,10))return d}return null}function getTagIds$$module$dist$src$container$tags(a,b){var c=[];b=getTags$$module$dist$src$container$tags(a,b);for(a=0;a<b.length;a++)c.push(b[a].id);return c}
function tagHasFired$$module$dist$src$container$tags(a){if(!a)throw new TypeError("Tag ID is required");return $jscompDefaultExport$$module$dist$src$container$config.ctConfig.globals.fired_tags.hasOwnProperty(a)}var module$dist$src$container$tags={};module$dist$src$container$tags.getTagById=getTagById$$module$dist$src$container$tags;module$dist$src$container$tags.getTagIds=getTagIds$$module$dist$src$container$tags;module$dist$src$container$tags.getTagParams=getTagParams$$module$dist$src$container$tags;
module$dist$src$container$tags.getTags=getTags$$module$dist$src$container$tags;module$dist$src$container$tags.tagHasFired=tagHasFired$$module$dist$src$container$tags;function checkFreq$$module$dist$src$container$rules(a){"number"===typeof a&&(a=getTagById$$module$dist$src$container$tags(a));if(!a.frequency)return!0;switch(a.frequency){case "sample":var b=parseFloat(a.percent);if(0===b){$jscompDefaultExport$$module$dist$src$container$config.setStatusCode(a.id,"disabled");var c=!1}else c=100===b||100*Math.random()<=(b||0);break;case "users":c=!1;if(100===parseInt(a.percent,10))c=!0;else{b=Math.floor(1/((parseFloat(a.percent)||0)/100));var d=$jscompDefaultExport$$module$dist$src$container$config.getData("ljt_reader");
if(32===d.length){c=parseInt(d.substr(0,8),16);var e=parseInt(d.substr(8,8),16);var f=parseInt(d.substr(16,8),16);d=parseInt(d.substr(24,8),16);c=0===(c+e+f+d)%b}else 24===d.length&&(c=parseInt(d.substr(0,8),16),e=parseInt(d.substr(8,8),16),f=parseInt(d.substr(16,8),16),c=0===(c+e+f)%b)}break;case "timed":c=!0;break;default:reportError$$module$dist$src$container$logging("Invalid Tag Freq. Type",Error()),c=!1}!1===c&&$jscompDefaultExport$$module$dist$src$container$config.setStatusCode(a.id,"frequency_capped");
return c}function isPageCapped$$module$dist$src$container$rules(a){var b;if("number"===typeof a||"string"===typeof a)a=getTagById$$module$dist$src$container$tags(a);(b=!("multi"===a.fire||!tagHasFired$$module$dist$src$container$tags(a.id)))&&$jscompDefaultExport$$module$dist$src$container$config.setStatusCode(a.id,"once_per_page_capped");return b}
function checkRules$$module$dist$src$container$rules(a,b){var c=!0,d=["gt","gte","lt","lte"],e=["ct","nct"];"number"===typeof a&&(a=getTagById$$module$dist$src$container$tags(a,b));if(!a)return reportError$$module$dist$src$container$logging("checkRules: tag argument is required",Error()),!1;var f=a.rules;if(0===f.length)return!0;for(b=0;b<f.length;b++){c=$jscompDefaultExport$$module$dist$src$container$config.getData(f[b].var);if("undefined"===typeof c||""===c||null===c)return log$$module$dist$src$container$logging("Empty data_value detected in checkRules; Tag: "+
a.id),!1;var g=f[b].operand;var h=f[b].value;if(0<=d.indexOf(g)&&(isNaN(c)||isNaN(h)))return reportError$$module$dist$src$container$logging("Numeric operand used on non-numeric data-layer var; Tag: "+a.id,Error()),!1;if(0<=e.indexOf(g)&&!(c instanceof Array))return reportError$$module$dist$src$container$logging("Contains operator used on non-array data-layer var; Tag: "+a.id,Error()),!1;switch(g){case "eq":c=c+""===h+"";break;case "ne":c=c+""!==h+"";break;case "gt":c=parseFloat(c)>parseFloat(h);break;
case "lt":c=parseFloat(c)<parseFloat(h);break;case "gte":c=parseFloat(c)>=parseFloat(h);break;case "lte":c=parseFloat(c)<=parseFloat(h);break;case "ct":c=0<=c.indexOf(h);break;case "nct":c=-1===c.indexOf(h);break;default:return log$$module$dist$src$container$logging("checkRules: Unsupported Operand Detected; Tag: "+a.id),!1}if(!c){$jscompDefaultExport$$module$dist$src$container$config.setStatusCode(a.id,"rules_did_not_pass");break}}return c}var module$dist$src$container$rules={};
module$dist$src$container$rules.checkFreq=checkFreq$$module$dist$src$container$rules;module$dist$src$container$rules.checkRules=checkRules$$module$dist$src$container$rules;module$dist$src$container$rules.isPageCapped=isPageCapped$$module$dist$src$container$rules;function createBitmask$$module$dist$src$container$logToServer(){var a=0,b=0,c=32<arguments.length?32:arguments.length;for(b;b<c;a|=arguments[b]<<b++);return a}
function getStatusCodes$$module$dist$src$container$logToServer(a){var b,c=[];a=$jscompDefaultExport$$module$dist$src$container$config.getConfig(a).tag_status_codes;for(b in a)if(a.hasOwnProperty(b)){var d=a[b];d=[d.fired,d.disabled,d.frequency_capped,d.rules_did_not_pass,d.once_per_page_capped,d.custom_js_logic_failed,d.js_error];c.push(createBitmask$$module$dist$src$container$logToServer.apply(this,d))}return c}
function logToServer$$module$dist$src$container$logToServer(){var a=$jscompDefaultExport$$module$dist$src$container$config.getConfig(),b=$jscompDefaultExport$$module$dist$src$container$buildConfig.log_url;var c=getTagIds$$module$dist$src$container$tags(null,!0);c={tid:a.tid,zoneid:a.zone_id,cid:a.container_id,geo:a.data.geo||"",all_tags:getTagIds$$module$dist$src$container$tags().join(","),tss:a.tss.join(","),fired_tags:c.join(","),count:c.length,status:getStatusCodes$$module$dist$src$container$logToServer().join(",")};
a.elapsed_ms=c.elapsed_ms=(new Date).getTime()-a.start_time;(new Image).src=b+"?"+buildQS$$module$dist$src$shared$url(c);log$$module$dist$src$container$logging("Logged Container Tag Successfully")}var module$dist$src$container$logToServer={};module$dist$src$container$logToServer.logToServer=logToServer$$module$dist$src$container$logToServer;function fireTag$$module$dist$src$container$fireTags(a){function b(a,b){log$$module$dist$src$container$logging("ERROR FIRING TAG "+a.id);$jscompDefaultExport$$module$dist$src$container$config.setStatusCode(a.id,"js_error");reportError$$module$dist$src$container$logging("Tag "+a.id+": "+a.error.replace(/["']/g,""),b);return!1}var c=$jscompDefaultExport$$module$dist$src$container$config.getConfig();"number"===typeof a&&(a=getTagById$$module$dist$src$container$tags(a));switch(a.type){case "img":try{var d=
buildQS$$module$dist$src$shared$url(getTagParams$$module$dist$src$container$tags(a));if(0===d.length)var e=a.src;else{var f=0<=a.src.indexOf("?")?"&":"?";e=a.src+f+d}(new Image).src=e;c.img_tags_fired++}catch(g){return b(a,g)}break;case "script":try{if(!1===eval(a.src))return $jscompDefaultExport$$module$dist$src$container$config.setStatusCode(a.id,"custom_js_logic_failed"),!1;c.script_tags_fired++}catch(g){return b(a,g)}}$jscompDefaultExport$$module$dist$src$container$config.ctConfig.globals.fired_tags[a.id]=
c.fired_tags[a.id]=a.id;c.total_tags_fired++;$jscompDefaultExport$$module$dist$src$container$config.setStatusCode(a.id,"fired");c.tss.push((new Date).getTime()-c.start_time);return!0}
function fireTags$$module$dist$src$container$fireTags(){var a;var b=$jscompDefaultExport$$module$dist$src$container$config.getConfig();var c=[];var d=[];for(a=0;a<b.data.tags.length;a++){var e=b.data.tags[a];b.tag_status_codes[e.id]={fired:!1,disabled:!1,frequency_capped:!1,rules_did_not_pass:!1,once_per_page_capped:!1,custom_js_logic_failed:!1,js_error:!1};var f=checkFreq$$module$dist$src$container$rules(e);var g=!isPageCapped$$module$dist$src$container$rules(e);var h=checkRules$$module$dist$src$container$rules(e);
var k=f&&g&&h;dbgEnabled$$module$dist$src$shared$debug()&&log$$module$dist$src$container$logging("CID: "+b.container_id+" Tag: "+e.id+" ("+e.type+") Not Page Capped: "+g+" | Rules Passed: "+h+" | Freq Check Passed: "+f+" | FIRED: "+k);k&&(g=fireTag$$module$dist$src$container$fireTags(e))&&("img"===e.type?d.push(e.id):"script"===e.type&&c.push(e.id))}log$$module$dist$src$container$logging("Fired Image Tags: "+d.join(", ")+" / Script Tags: "+c.join(", "));logToServer$$module$dist$src$container$logToServer()}
var module$dist$src$container$fireTags={};module$dist$src$container$fireTags.fireTag=fireTag$$module$dist$src$container$fireTags;module$dist$src$container$fireTags.fireTags=fireTags$$module$dist$src$container$fireTags;function getDataFromServer$$module$dist$src$container$getDataFromServer(a,b,c,d){var e;b=b||$jscompDefaultExport$$module$dist$src$container$config.getQueryParam("zid");c=c||$jscompDefaultExport$$module$dist$src$container$config.getQueryParam("aid");a=a||$jscompDefaultExport$$module$dist$src$container$config.getConfig().container_id||$jscompDefaultExport$$module$dist$src$container$config.getQueryParam("cid");if(!a)return reportError$$module$dist$src$container$logging("Missing Container ID",Error()),
!1;if(!b&&!c)return reportError$$module$dist$src$container$logging("Missing Zone ID and Affiliate ID",Error()),!1;c?e="affId="+c:b&&(e="zoneId="+b);b="";!1===d.hasOwnProperty("v")&&(d.v="2");for(var f in d)"cid"!=f&&"aid"!=f&&"zid"!=f&&(b+="&"+f+"="+d[f]);a=$jscompDefaultExport$$module$dist$src$container$buildConfig.ct_url+"?containerId="+a+"&"+e+b;d=document.createElement("script");d.src=a;document.head.appendChild(d);log$$module$dist$src$container$logging("*ct: Retrieved Config from Server/Cache");
return!0}function dataCallback$$module$dist$src$container$getDataFromServer(a){$jscompDefaultExport$$module$dist$src$container$config.addContainerData(a);exposeDataLayer$$module$dist$src$container$exposeVars();fireTags$$module$dist$src$container$fireTags();return!0}var module$dist$src$container$getDataFromServer={};module$dist$src$container$getDataFromServer.dataCallback=dataCallback$$module$dist$src$container$getDataFromServer;module$dist$src$container$getDataFromServer.getDataFromServer=getDataFromServer$$module$dist$src$container$getDataFromServer;function exposeVars$$module$dist$src$container$exposeVars(a){window.sovrn=window.sovrn||{};window.sovrn.containers=window.sovrn.containers||{};a="ct"+a;window.sovrn.containers[a]=window.sovrn.containers[a]||{getData:$jscompDefaultExport$$module$dist$src$container$config.getData,getDataLayerValue:$jscompDefaultExport$$module$dist$src$container$config.getDataLayerValue,getConfigValue:$jscompDefaultExport$$module$dist$src$container$config.getConfigValue,getConfig:$jscompDefaultExport$$module$dist$src$container$config.getConfig};
window.sovrn.containerTag=window.sovrn.containerTag||{};window.sovrn.containerTag.getConfig=$jscompDefaultExport$$module$dist$src$container$config.getConfig.bind($jscompDefaultExport$$module$dist$src$container$config);window.sovrn.containerTag.dataCallback=dataCallback$$module$dist$src$container$getDataFromServer;window.sovrn.containerTag.getData=$jscompDefaultExport$$module$dist$src$container$config.getData.bind($jscompDefaultExport$$module$dist$src$container$config);window.sovrn.ct=window.sovrn.containerTag}
function exposeDataLayer$$module$dist$src$container$exposeVars(){var a=$jscompDefaultExport$$module$dist$src$container$config.getConfig().data_layer;window.sovrn=window.sovrn||{};window.sovrn.dataLayer=window.sovrn.dataLayer||[{}];for(var b in a)a.hasOwnProperty(b)&&(window.sovrn.dataLayer[0][b]=a[b])}var module$dist$src$container$exposeVars={};module$dist$src$container$exposeVars.exposeDataLayer=exposeDataLayer$$module$dist$src$container$exposeVars;
module$dist$src$container$exposeVars.exposeVars=exposeVars$$module$dist$src$container$exposeVars;function doNotTrack$$module$dist$src$shared$consent(a,b){a=a||navigator;b=b||window;var c=readCookie$$module$dist$src$shared$dom("tracking_optout");return"yes"===a.doNotTrack||"1"===a.doNotTrack||"1"===a.msDoNotTrack||"1"===b.doNotTrack||"1"===c}
function lookupCcpaConsent$$module$dist$src$shared$consent(a){var b=function(b,c){b={uspData:b&&b.uspString||"",success:c};return c?a(null,b):a("Error")};try{var c=window.__uspapi||window.top.__uspapi}catch(h){}if("function"===typeof c)return c("getUSPData",1,b);b=window;for(var d;!d;){try{b.frames.__uspapiLocator&&(d=b)}catch(h){}if(b===window.top)return a("No USP for window.top");b=b.parent}var e=(new Date).getTime(),f=setTimeout(function(){window.removeEventListener("message",g);a("USPAPI Timeout")},
500),g=function(b){b.data&&b.data.__uspapiReturn&&b.data.__uspapiReturn.callId===e&&(window.removeEventListener("message",g),b.data.__uspapiReturn.success?(clearTimeout(f),window.removeEventListener("message",g),a(null,b.data.__uspapiReturn.returnValue)):a("invalid USP response"))};window.addEventListener("message",g,!1);d.postMessage({__uspapiCall:{command:"getUSPData",version:1,parameter:null,callId:e}},"*")}
function callCmpFromSafeframe$$module$dist$src$shared$consent(a,b){window.$sf.ext.register(1,1,function(c,d){"cmpReturn"===c&&b("getConsentData"===a?d.vendorConsentData:d.vendorConsents)});window.$sf.ext.cmp(a)}
function makeResponse$$module$dist$src$shared$consent(a,b,c){var d=setTimeout(function(){window.removeEventListener("message",e);c({},!1)},500),e=function(f){var g=a+"Return";if((f=("string"===typeof f.data&&f.data.includes(g)?JSON.parse(f.data):f.data)[g])&&f.callId&&f.callId==b)return clearTimeout(d),window.removeEventListener("message",e),c(f.returnValue,f.success)};return e}
function callCmpWhileInIframe$$module$dist$src$shared$consent(a,b,c){var d=Math.random()+"",e=(2===b.version?"__tcfapi":"__cmp")+"Call",f={};a=(f[e]={command:a,callId:d,version:void 0},f);2===b.version&&(a[e].version=2);window.addEventListener("message",makeResponse$$module$dist$src$shared$consent(e,d,c),!1);b.frame.postMessage(a,"*")}
function lookupGdprConsent$$module$dist$src$shared$consent(a){function b(b,d){d&&"string"===typeof b.tcString?"tcloaded"===b.eventStatus||"useractioncomplete"===b.eventStatus?a(null,c,b):"cmpuishown"===b.eventStatus&&0<b.tcString.length&&!0===b.purposeOneTreatment?a(null,c,b):a("Consent string is not available."):a("CMP unable to register callback function.  Please check CMP setup.")}var c=function(){for(var a=window,b,c,d;!b;){try{if("function"===typeof a.__tcfapi||"function"===typeof a.__cmp){"function"===
typeof a.__tcfapi?(d=2,c=a.__tcfapi):(d=1,c=a.__cmp);b=a;break}}catch(k){}try{if(a.frames.__tcfapiLocator){d=2;b=a;break}}catch(k){}try{if(a.frames.__cmpLocator){d=1;b=a;break}}catch(k){}if(a===window.top)break;a=a.parent}return{frame:b,func:c,version:d}}(),d=function(){function b(){d.getConsentData&&d.getVendorConsents&&a(null,c,d)}var d={};return{consentDataCallback:function(c,e){if(!1===!e)return a("CMP Call failed");d.getConsentData=c;b()},vendorConsentsCallback:function(c,e){if(!1===e)return a("CMP Call failed");
d.getVendorConsents=c;b()}}}();if(!c.frame)return a("CMP not found.");if(2===c.version)return"function"===typeof c.func?c.func("addEventListener",2,b):callCmpWhileInIframe$$module$dist$src$shared$consent("addEventListener",c,b);1===c.version&&("function"===typeof c.func?(c.func("getConsentData",null,d.consentDataCallback),c.func("getVendorConsents",null,d.vendorConsentsCallback)):window.$sf&&window.$sf.ext&&"function"===typeof window.$sf.ext.cmp?(callCmpFromSafeframe$$module$dist$src$shared$consent("getConsentData",
d.consentDataCallback),callCmpFromSafeframe$$module$dist$src$shared$consent("getVendorConsents",d.vendorConsentsCallback)):(callCmpWhileInIframe$$module$dist$src$shared$consent("getConsentData",c,d.consentDataCallback),callCmpWhileInIframe$$module$dist$src$shared$consent("getVendorConsents",c,d.vendorConsentsCallback)))}
function configureCcpaConsent$$module$dist$src$shared$consent(a,b,c){a?lookupCcpaConsent$$module$dist$src$shared$consent(function(a,e){if(a)return b.ccpa_consent="notFound",c();b.ccpa_consent=e.uspData;c()}):c()}
function configureGdprAndCcpaConsent$$module$dist$src$shared$consent(a,b,c,d){a?lookupGdprConsent$$module$dist$src$shared$consent(function(a,f,g){c.gdpr_consent=c.gdpr_consent||"";a||(c.gdpr_version=f.version,c.gdpr_consent=1===f.version?g.getConsentData.consentData:g.tcString);configureCcpaConsent$$module$dist$src$shared$consent(b,c,d)}):configureCcpaConsent$$module$dist$src$shared$consent(b,c,d)}var module$dist$src$shared$consent={};module$dist$src$shared$consent.configureGdprAndCcpaConsent=configureGdprAndCcpaConsent$$module$dist$src$shared$consent;
module$dist$src$shared$consent.doNotTrack=doNotTrack$$module$dist$src$shared$consent;function init$$module$dist$src$container$init(a,b,c,d){if(isOldIE$$module$dist$src$shared$dom())return log$$module$dist$src$container$logging("Legacy IE detected; Aborting"),!1;if($jscompDefaultExport$$module$dist$src$container$config.ctConfig.instances.hasOwnProperty(a))return log$$module$dist$src$container$logging("Container Tag already fired for tid:"+a),!1;a=$jscompDefaultExport$$module$dist$src$container$config.addTransaction(a);var e=$jscompDefaultExport$$module$dist$src$container$config.getConfig();
e.zone_id=c||null;log$$module$dist$src$container$logging("Container Tag Start");if(!b&&!c&&!d){a=getScriptTag$$module$dist$src$shared$dom($jscompDefaultExport$$module$dist$src$container$buildConfig.tag_regex);if(!a)return reportError$$module$dist$src$container$logging("Could not find CT script tag",Error()),!1;e.query_params=parseQueryString$$module$dist$src$shared$url(a.src)}e.container_id=b=b||$jscompDefaultExport$$module$dist$src$container$config.getQueryParam("cid");if(!b)return reportError$$module$dist$src$container$logging("Missing cid",
Error()),!1;exposeVars$$module$dist$src$container$exposeVars(b);return configureGdprAndCcpaConsent$$module$dist$src$shared$consent(!0,!0,e,function(){1===e.gdpr_version?e.gdpr_consent_v1=e.gdpr_consent:e.gdpr_consent_v2=e.gdpr_consent;getDataFromServer$$module$dist$src$container$getDataFromServer(b,c,d,e.query_params)})}var $jscompDefaultExport$$module$dist$src$container$init=init$$module$dist$src$container$init,module$dist$src$container$init={};module$dist$src$container$init.default=$jscompDefaultExport$$module$dist$src$container$init;
module$dist$src$container$init.init=init$$module$dist$src$container$init;function getBeaconTID$$module$dist$src$ads$beacon(){var a;if($jscompDefaultExport$$module$dist$src$ads$config.isAsync())try{return(a=window.parent.sovrn_beacon_tid)||null}catch(c){try{var b=getLoc$$module$dist$src$ads$getLoc().substr(0,128);return window.sessionStorage.getItem($jscompDefaultExport$$module$dist$src$ads$config.globalConfig.globals.beacon_tid_ss_key+b)}catch(d){if(window.sovrn_beacon_tid)return window.sovrn_beacon_tid;log$$module$dist$src$ads$logging("Unable to Get Async Beacon TID");
return null}}else return window.sovrn_beacon_tid}function beaconShouldFire$$module$dist$src$ads$beacon(){var a=getBeaconTID$$module$dist$src$ads$beacon();return null===a||a===$jscompDefaultExport$$module$dist$src$ads$config.adsInstance.tid}
function getBeaconURL$$module$dist$src$ads$beacon(){var a=$jscompDefaultExport$$module$dist$src$ads$config.getConfig();a.beacon_params={viewId:a.tid,rand:Math.floor(9E3*Math.random()),informer:"undefined"!==typeof a.zone?a.zone.iid:0,type:"fpads",lijit_kw:getRefSearch$$module$dist$src$ads$getLoc(),loc:getLoc$$module$dist$src$ads$getLoc(),rr:getRef$$module$dist$src$ads$getLoc(),v:"1.2"};directOnPage$$module$dist$src$ads$utils_iframe()&&byChance$$module$dist$src$shared$math($jscompDefaultExport$$module$dist$src$ads$buildConfig.page.percent_chance)?
(a.beacon_params.title=getTitle$$module$dist$src$ads$page(),a.beacon_params.desc=getDesc$$module$dist$src$ads$page()):log$$module$dist$src$ads$logging("Page data not collected");a.hasOwnProperty("gdpr_consent")&&(a.beacon_params.gdpr_consent=a.gdpr_consent);a.hasOwnProperty("ccpa_consent")&&"notFound"!==a.ccpa_consent&&(a.beacon_params.us_privacy=a.ccpa_consent);return $jscompDefaultExport$$module$dist$src$ads$buildConfig.beacon_url+"?"+buildQS$$module$dist$src$shared$url(a.beacon_params,!1)}
function isTracker$$module$dist$src$ads$beacon(a){try{var b=a.nodeName;return"IMG"!==b&&"IFRAME"!==b&&"DIV"!==b&&"SPAN"!==b&&"INS"!==b?!1:"undefined"!==typeof a.height&&"undefined"!==typeof a.width&&!(0!==a.height&&1!==a.height||0!==a.width&&1!==a.width)||"undefined"!==typeof a.name&&a.name.match(/^google_conversion/)||"undefined"!==typeof a.style&&!("0px"!==a.style.height&&"1px"!==a.style.height||"0px"!==a.style.width&&"1px"!==a.style.width)?!0:(1===a.clientHeight||1===a.offsetHeight)&&(1===a.clientWidth||
1===a.offsetWidth)}catch(c){dbg$$module$dist$src$ads$logging(c)}return!1}function doFixBeacons$$module$dist$src$ads$beacon(a){a=a||document.body;var b=a.childNodes;isTracker$$module$dist$src$ads$beacon(a)&&(a.style.display="none",a.setAttribute("x-beacon","1"));if(a.hasChildNodes())for(a=0;a<b.length;a++)doFixBeacons$$module$dist$src$ads$beacon(b[a])}
function fixBeacons$$module$dist$src$ads$beacon(){var a=getBrowserEngine$$module$dist$src$shared$dom();if(!isInIframe$$module$dist$src$ads$utils_iframe())return!1;if("cr"===a||"sf"===a)try{var b=function(){self.removeEventListener("load",b,!1);doFixBeacons$$module$dist$src$ads$beacon()};self.addEventListener("load",b,!1)}catch(c){dbg$$module$dist$src$ads$logging(c)}else doFixBeacons$$module$dist$src$ads$beacon();return!0}
function sendBeacon$$module$dist$src$ads$beacon(){var a=$jscompDefaultExport$$module$dist$src$ads$config.getConfig(),b=$jscompDefaultExport$$module$dist$src$ads$config.getAdUnitID()+"_beacon";b=createiFrame$$module$dist$src$ads$utils_iframe(b,1,1);if(!beaconShouldFire$$module$dist$src$ads$beacon())return log$$module$dist$src$ads$logging("sendBeacon: Beacon TID ("+getBeaconTID$$module$dist$src$ads$beacon()+") does not match current TID ("+$jscompDefaultExport$$module$dist$src$ads$config.adsInstance.tid+
"); skipping beacon"),!1;b.src=getBeaconURL$$module$dist$src$ads$beacon();document.body.appendChild(b);log$$module$dist$src$ads$logging("*beacon ("+a.zone_id+" / "+a.tid+")");recordEvent$$module$dist$src$ads$logging("beacon");return!0}
function setBeaconTID$$module$dist$src$ads$beacon(){function a(){var a=window.parent;return a.sovrn_beacon_tid?!1:(a.sovrn_beacon_tid=$jscompDefaultExport$$module$dist$src$ads$config.adsInstance.tid,!0)}function b(){var a=getLoc$$module$dist$src$ads$getLoc().substr(0,128);var b=$jscompDefaultExport$$module$dist$src$ads$config.globalConfig.globals.beacon_tid_ss_key+a;return window.sessionStorage.getItem(b)?!1:(a=$jscompDefaultExport$$module$dist$src$ads$config.adsInstance.tid,window.sessionStorage.setItem(b,
a),!0)}function c(){return window.sovrn_beacon_tid?!1:(window.sovrn_beacon_tid=$jscompDefaultExport$$module$dist$src$ads$config.adsInstance.tid,!0)}var d=!1;if($jscompDefaultExport$$module$dist$src$ads$config.isAsync())try{d=a()}catch(e){try{d=b()}catch(f){d=c()}}else d=c();d&&log$$module$dist$src$ads$logging("Setting Beacon TID to: "+$jscompDefaultExport$$module$dist$src$ads$config.adsInstance.tid);return!0}
function fireContainerTag$$module$dist$src$ads$beacon(){var a=$jscompDefaultExport$$module$dist$src$ads$config.getConfig();init$$module$dist$src$container$init(a.tid,18,a.zone_id);log$$module$dist$src$ads$logging("*container tag v2 ("+a.zone_id+" / "+a.tid+") SSL container");recordEvent$$module$dist$src$ads$logging("container")}var module$dist$src$ads$beacon={};module$dist$src$ads$beacon.beaconShouldFire=beaconShouldFire$$module$dist$src$ads$beacon;module$dist$src$ads$beacon.doFixBeacons=doFixBeacons$$module$dist$src$ads$beacon;
module$dist$src$ads$beacon.fireContainerTag=fireContainerTag$$module$dist$src$ads$beacon;module$dist$src$ads$beacon.fixBeacons=fixBeacons$$module$dist$src$ads$beacon;module$dist$src$ads$beacon.getBeaconTID=getBeaconTID$$module$dist$src$ads$beacon;module$dist$src$ads$beacon.getBeaconURL=getBeaconURL$$module$dist$src$ads$beacon;module$dist$src$ads$beacon.isTracker=isTracker$$module$dist$src$ads$beacon;module$dist$src$ads$beacon.sendBeacon=sendBeacon$$module$dist$src$ads$beacon;
module$dist$src$ads$beacon.setBeaconTID=setBeaconTID$$module$dist$src$ads$beacon;function isGeoDataFresh$$module$dist$src$ads$geo(a){return a&&(new Date).getTime()-(new Date(a)).getTime()<=$jscompDefaultExport$$module$dist$src$ads$buildConfig.geo.localStorageMaxAge}function geoSuccess$$module$dist$src$ads$geo(a){a={lat:a.coords.latitude,lon:a.coords.longitude,acc:a.coords.accuracy,acquisitionDate:new Date};if(window.localStorage)try{var b=JSON.stringify(a);window.localStorage.setItem("sovrn.geo",b);log$$module$dist$src$ads$logging("Updated geo position data: "+b)}catch(c){}}
function geoFail$$module$dist$src$ads$geo(a){log$$module$dist$src$ads$logging("Failed to obtain geo data: "+a.message)}
function getGeo$$module$dist$src$ads$geo(){var a={};try{var b=window.localStorage.getItem("sovrn.geo");log$$module$dist$src$ads$logging("Using geo position data: "+b);a=JSON.parse(b)||{}}catch(c){}navigator.geolocation?navigator.geolocation.getCurrentPosition(geoSuccess$$module$dist$src$ads$geo,geoFail$$module$dist$src$ads$geo,$jscompDefaultExport$$module$dist$src$ads$buildConfig.geo.positionOptions):log$$module$dist$src$ads$logging("geolocation unavailable");return a}
var module$dist$src$ads$geo={};module$dist$src$ads$geo.getGeo=getGeo$$module$dist$src$ads$geo;module$dist$src$ads$geo.isGeoDataFresh=isGeoDataFresh$$module$dist$src$ads$geo;function getTime$$module$dist$src$ads$adserver(){return(new Date).toUTCString().split(" ")[4]}function matchQueryParams$$module$dist$src$ads$adserver(a){var b={},c,d=$jscompDefaultExport$$module$dist$src$ads$config.getConfig().query_params;for(c in d)d.hasOwnProperty(c)&&d[c].match(a)&&(b[c]=d[c]);return b}
function getDPZ$$module$dist$src$ads$adserver(){var a=$jscompDefaultExport$$module$dist$src$ads$config.getTIDsByZoneID($jscompDefaultExport$$module$dist$src$ads$config.getConfig().zone_id);return"undefined"===typeof a?!1:1<a.length}
function getMoreParams$$module$dist$src$ads$adserver(){var a="",b=/(^ljt_|^x_)/;a=$jscompDefaultExport$$module$dist$src$ads$config.isAsync()?a+buildQS$$module$dist$src$shared$url(matchProps$$module$dist$src$shared$url(b,$jscompDefaultExport$$module$dist$src$ads$config.getAsyncConfig())):a+buildQS$$module$dist$src$shared$url(matchQueryParams$$module$dist$src$ads$adserver(b));return 0<a.length?"&"+a:""}
function atf$$module$dist$src$ads$adserver(a){var b;if($jscompDefaultExport$$module$dist$src$ads$config.isAsync())return $jscompDefaultExport$$module$dist$src$ads$config.getAsyncConfig("atf")||!1;try{a=a||$jscompDefaultExport$$module$dist$src$ads$config.getConfig().ad_unit_id;(b=document.getElementById(a))||reportError$$module$dist$src$ads$logging("ATF: Elem ID "+a+" not found",Error());var c=b.getClientRects()[0];var d=self.document.documentElement;var e=0<c.right&&c.left<d.clientWidth&&c.top+c.height/
2<=d.clientHeight&&0<=c.top}catch(f){e=!1}return e+""}function getViewability$$module$dist$src$ads$adserver(){var a=$jscompDefaultExport$$module$dist$src$ads$config.getAsyncConfig()?$jscompDefaultExport$$module$dist$src$ads$config.getAsyncConfig():$jscompDefaultExport$$module$dist$src$ads$config.getConfig().query_params;return a.hasOwnProperty("iv")?a.iv:""}
function getASParams$$module$dist$src$ads$adserver(){var a,b=$jscompDefaultExport$$module$dist$src$ads$config.getConfig();if(!b.hasOwnProperty("zone"))return reportError$$module$dist$src$ads$logging("Missing Server Config",new TypeError),!1;var c=+(isNativeCode$$module$dist$src$shared$dom(document.write)&&isNativeCode$$module$dist$src$shared$dom(document.writeln));b.as_params={zoneid:b.zone_id,tid:b.tid,cb:b.zone.cb,mode:$jscompDefaultExport$$module$dist$src$ads$config.getMode(),flv:getFlashVersion$$module$dist$src$shared$dom(),
fpr:"",ifr:isInIframe$$module$dist$src$ads$utils_iframe(),od:getOD$$module$dist$src$ads$getLoc(),time:getTime$$module$dist$src$ads$adserver(),fd:getFrameDepth$$module$dist$src$ads$utils_iframe(),be:getBrowserEngine$$module$dist$src$shared$dom(),lijit_kw:getRefSearch$$module$dist$src$ads$getLoc(),loc:getLoc$$module$dist$src$ads$getLoc(),orig_loc:getOriginalLoc$$module$dist$src$ads$getLoc(),referer:getRef$$module$dist$src$ads$getLoc(),abf:atf$$module$dist$src$ads$adserver(),dpz:getDPZ$$module$dist$src$ads$adserver(),
cv:$jscompDefaultExport$$module$dist$src$ads$buildConfig.cv,dop:+directOnPage$$module$dist$src$ads$utils_iframe(),ndw:c,dtid:$jscompDefaultExport$$module$dist$src$ads$config.getDTID(),spif:getSpif$$module$dist$src$shared$dom(),btid:getBeaconTID$$module$dist$src$ads$beacon()||"",iv:getViewability$$module$dist$src$ads$adserver()};if(1===b.zone.geo&&(c=getGeo$$module$dist$src$ads$geo(),isGeoDataFresh$$module$dist$src$ads$geo(c.acquisitionDate)))for(a in c)c.hasOwnProperty(a)&&"acquisitionDate"!==a&&
(b.as_params[a]=c[a]);b.hasOwnProperty("gdpr_consent")&&(b.as_params.gdpr_consent=b.gdpr_consent);b.hasOwnProperty("ccpa_consent")&&"notFound"!==b.ccpa_consent&&(b.as_params.us_privacy=b.ccpa_consent);return buildQS$$module$dist$src$shared$url(b.as_params,!1)}
function appendCSS$$module$dist$src$ads$adserver(){var a=$jscompDefaultExport$$module$dist$src$ads$config.getConfig();var b=a.css_class;var c=dbgEnabled$$module$dist$src$shared$debug();if(document.getElementById("css_"+b))return!1;var d=c?"border: solid #F2CB14 4px;":"";var e=c?'.sovrn_ad_unit:after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;opacity:0.3;border:solid #F2CB14 5px;}':"";var f=c?".sovrn_div_overlay{font-size:12 px;font-family:Sans-Serif;text-align:right;position:absolute;right:0;bottom:0;opacity:0.6;background-color:#F2CB14;z-index:999999}":
"";c="";isInIframe$$module$dist$src$ads$utils_iframe()&&document.body.clientHeight===a.zone.h&&document.body.clientWidth===a.zone.w&&(c="body{margin:0 !important;padding:0 !important;}");a=c+"."+b+"{display:inline-block !important;visibility:visible !important;opacity:1 !important;vertical-align:top;position:relative;width:"+a.zone.w+"px !important;height:"+a.zone.h+"px !important;z-index:999999 !important;"+d+" overflow:hidden}"+e+".sovrn_banner_ins{display:none;border:none;margin:0;padding:0;position:relative;visibility:visible;text-decoration:none;background-color:transparent;}"+
f;d=document.createElement("style");d.setAttribute("type","text/css");d.setAttribute("id","css_"+b);d.styleSheet?d.styleSheet.cssText=a:d.appendChild(document.createTextNode(a));(document.head||document.body).appendChild(d);return!0}
function callAdServer$$module$dist$src$ads$adserver(){var a,b=$jscompDefaultExport$$module$dist$src$ads$config.getConfig();if(b.called_ad_server)return log$$module$dist$src$ads$logging("DUPLICATE AD DELIVERY CALL ABORTED ("+b.zone_id+" / "+b.tid+")"),!1;b.called_ad_server=!0;var c=document.createElement("div");var d={id:b.ad_unit_id,"data-tid":b.tid,"data-zid":b.zone_id};for(a in d)d.hasOwnProperty(a)&&c.setAttribute(a,d[a]);d=document.createElement("script");$jscompDefaultExport$$module$dist$src$ads$config.isAsync()?
(c.setAttribute("style","display:none"),document.head.appendChild(d)):(c.setAttribute("class",b.css_class+" sovrn_ad_unit"),c.appendChild(d));d.async=!1;d.src=$jscompDefaultExport$$module$dist$src$ads$buildConfig.adserver_url+"?"+getASParams$$module$dist$src$ads$adserver()+getMoreParams$$module$dist$src$ads$adserver();b.scriptElement.parentNode.insertBefore(c,b.scriptElement);log$$module$dist$src$ads$logging("*addelivery ("+b.zone_id+" / "+b.tid+")");recordEvent$$module$dist$src$ads$logging("addelivery");
return!0}function getCSSClass$$module$dist$src$ads$adserver(){var a=$jscompDefaultExport$$module$dist$src$ads$config.getConfig();return"sovrn_ad_"+a.zone.w+"_"+a.zone.h}function lgFired$$module$dist$src$ads$adserver(a){var b=!1;try{"1"===window.sessionStorage.getItem("lg_"+a)&&(b=!0)}catch(c){try{-1!==$jscompDefaultExport$$module$dist$src$ads$config.globalConfig.globals.lg_fired.indexOf(a)&&(b=!0)}catch(d){dbg$$module$dist$src$ads$logging(d)}}return b}
function setServerTID$$module$dist$src$ads$adserver(a,b){var c=$jscompDefaultExport$$module$dist$src$ads$config.getConfig(),d=$jscompDefaultExport$$module$dist$src$ads$config.globalConfig,e=d.globals.tids.indexOf(a);d.globals.tids[e]=b;c.tid=b;d.instances[b]=d.instances[a];delete d.instances[a];d.current_tid=b}
function renderAd$$module$dist$src$ads$adserver(a){var b=getTransactionFromCallingScriptTag$$module$dist$src$shared$dom();b&&$jscompDefaultExport$$module$dist$src$ads$config.setConfig(b);b=$jscompDefaultExport$$module$dist$src$ads$config.getConfig();if("object"!==typeof a)return reportError$$module$dist$src$ads$logging("Invalid server config.",Error()),!1;log$$module$dist$src$ads$logging("adcfg response: "+JSON.stringify(a));recordEvent$$module$dist$src$ads$logging("adcfg_response");b.zone=a;b.css_class=
getCSSClass$$module$dist$src$ads$adserver();setServerTID$$module$dist$src$ads$adserver(b.tid,b.zone.tid);appendCSS$$module$dist$src$ads$adserver();setTimeout(setBeaconTID$$module$dist$src$ads$beacon,0);setBeaconTID$$module$dist$src$ads$beacon();a=b.zone.hasOwnProperty("gdprApplies")&&1===b.zone.gdprApplies;var c=b.zone.hasOwnProperty("ccpaApplies")&&1===b.zone.ccpaApplies;configureGdprAndCcpaConsent$$module$dist$src$shared$consent(a,c,b,callAdServer$$module$dist$src$ads$adserver)}
function generateAdUnitID$$module$dist$src$ads$adserver(a){a="sovrn_ad_unit_"+a;var b=0,c=!0;if(!document.getElementById(a))return a;for(;c;)c=void 0!==document.getElementById(a+"_"+ ++b);return a+"_"+b}var module$dist$src$ads$adserver={};module$dist$src$ads$adserver.callAdServer=callAdServer$$module$dist$src$ads$adserver;module$dist$src$ads$adserver.generateAdUnitID=generateAdUnitID$$module$dist$src$ads$adserver;module$dist$src$ads$adserver.getASParams=getASParams$$module$dist$src$ads$adserver;
module$dist$src$ads$adserver.getCSSClass=getCSSClass$$module$dist$src$ads$adserver;module$dist$src$ads$adserver.getMoreParams=getMoreParams$$module$dist$src$ads$adserver;module$dist$src$ads$adserver.getViewability=getViewability$$module$dist$src$ads$adserver;module$dist$src$ads$adserver.lgFired=lgFired$$module$dist$src$ads$adserver;module$dist$src$ads$adserver.matchQueryParams=matchQueryParams$$module$dist$src$ads$adserver;module$dist$src$ads$adserver.renderAd=renderAd$$module$dist$src$ads$adserver;function getAttributeNamesPolyfill$$module$dist$src$ads$documentWriter(){void 0==Element.prototype.getAttributeNames&&(Element.prototype.getAttributeNames=function(){for(var a=this.attributes,b=a.length,c=Array(b),d=0;d<b;d++)c[d]=a[d].name;return c})}getAttributeNamesPolyfill$$module$dist$src$ads$documentWriter();var DocumentWriter$$module$dist$src$ads$documentWriter=function(){};
DocumentWriter$$module$dist$src$ads$documentWriter.prototype.applyPolyfills=function(a){this.setDefaultElement(a);this.oldWrite=document.write;document.write=function(a){try{this.replace(a)}catch(e){reportError$$module$dist$src$ads$logging("docWrite Error",e),this.oldWrite(a)}}.bind(this);this.oldWriteLn=document.writeln;var b=[],c;document.writeln=function(a){var d=this;b.push(a);c||(c=setTimeout(function(){try{d.replace(b.join("\n")),b=[],c=!1}catch(f){reportError$$module$dist$src$ads$logging("docWriteLn Error",
f),b.forEach(function(a){return d.oldWriteLn(a)}),b=[],c=!1}}))}.bind(this)};DocumentWriter$$module$dist$src$ads$documentWriter.prototype.setDefaultElement=function(a){this.defaultElement=a;this.parent=a.parentNode;this.nextSibling=a.nextSibling};DocumentWriter$$module$dist$src$ads$documentWriter.prototype.restorePolyfills=function(){document.write=this.oldWrite;document.writeln=this.oldWriteLn};
DocumentWriter$$module$dist$src$ads$documentWriter.prototype.insert=function(a,b){a=this.getFragment(a);b.appendChild(a)};DocumentWriter$$module$dist$src$ads$documentWriter.prototype.replace=function(a,b){a=this.getFragment(a);b=b||document.currentScript||this.defaultElement;null===b.parentNode?this.nextSibling&&this.nextSibling.parentNode?this.parent.insertBefore(a,this.nextSibling):this.parent.appendChild(a):b.parentNode.replaceChild(a,b)};
DocumentWriter$$module$dist$src$ads$documentWriter.prototype.fixScriptsSoTheyAreExecuted=function(a){a=a.querySelectorAll("script");for(var b=0,c=a.length;b<c;b++){var d=a[b],e=document.createElement("script");d.innerHTML&&(e.innerHTML=d.innerHTML);e.async=!1;for(var f=d.getAttributeNames(),g=0;g<f.length;g++){var h=f[g];"async"!==h&&e.setAttribute(h,d.getAttribute(h))}d.parentNode.replaceChild(e,d)}};
DocumentWriter$$module$dist$src$ads$documentWriter.prototype.getFragment=function(a){a=(new DOMParser).parseFromString(a,"text/html");for(var b=document.createDocumentFragment(),c=0;c<a.head.childNodes.length;c++)b.appendChild(document.importNode(a.head.childNodes[c],!0));for(c=0;c<a.body.childNodes.length;c++)b.appendChild(document.importNode(a.body.childNodes[c],!0));this.fixScriptsSoTheyAreExecuted(b);return b};var module$dist$src$ads$documentWriter={};
module$dist$src$ads$documentWriter.DocumentWriter=DocumentWriter$$module$dist$src$ads$documentWriter;module$dist$src$ads$documentWriter.getAttributeNamesPolyfill=getAttributeNamesPolyfill$$module$dist$src$ads$documentWriter;function setDataAttribs$$module$dist$src$ads$passback(a,b,c){if(!dbgEnabled$$module$dist$src$shared$debug())return!1;var d=$jscompDefaultExport$$module$dist$src$ads$config.getConfig();b=document.getElementById(d.ad_unit_id);var e=$jscompDefaultExport$$module$dist$src$ads$config.isAsync()?"async":"sync";var f=d.zone.w+"x"+d.zone.h;d=dbgEnabled$$module$dist$src$shared$debug()?"TID: "+c+"\nBID: "+a.data.bannerid+"\nCID: "+a.data.campaignid+"\nBIDs: "+getChainValues$$module$dist$src$ads$chain("bannerid")+
"\nCIDs: "+getChainValues$$module$dist$src$ads$chain("campaignid")+"\nZID: "+d.zone_id+" ("+e+" "+f+")\nU: "+$jscompDefaultExport$$module$dist$src$ads$config.getUsername():"";b&&(b.setAttribute("data-bid",a.data.bannerid+""),b.setAttribute("data-cid",a.data.campaignid+""),b.setAttribute("title",d));if(b=getFriendlyIframe$$module$dist$src$ads$utils_iframe())b.setAttribute("data-tid",c),b.setAttribute("data-bid",a.data.bannerid+""),b.setAttribute("data-cid",a.data.campaignid+""),b.setAttribute("title",
d);return!0}
function doPassback$$module$dist$src$ads$passback(a){var b=$jscompDefaultExport$$module$dist$src$ads$config.getConfig();if("object"!==typeof b)return reportError$$module$dist$src$ads$logging("Failed to find chain config",Error()),!1;var c=$jscompDefaultExport$$module$dist$src$ads$config.globalConfig.globals;var d=$jscompDefaultExport$$module$dist$src$ads$config.adsInstance.tid;var e=b.chain;if(lgFired$$module$dist$src$ads$adserver(d))return log$$module$dist$src$ads$logging("Passback Aborted; lg already fired; ("+b.zone_id+
" / "+d+")"),!1;if("object"!==typeof e)return reportError$$module$dist$src$ads$logging("Invalid Chain Object",Error()),!1;try{var f=e.index;e.index++;var g=e.ads[f];log$$module$dist$src$ads$logging((0===f?"Start Chain":"Passback")+" ("+b.zone_id+" / "+d+")");var h=document.getElementById($jscompDefaultExport$$module$dist$src$ads$config.getAdUnitID(d));1===e.ads.length&&h.appendChild(document.createComment("[sovrn] No Ads Returned From Server, Including a Passback ("+d+")"));if(f>=e.ads.length)return h.appendChild(document.createComment("[sovrn] All Ads Exhausted, Including Default Ad;  ("+
d+")")),reportError$$module$dist$src$ads$logging("Chain Pointer Exception",Error()),!1;e.data=JSON.parse(JSON.stringify(g.data));e.data.tid=d;e.data.zoneid=b.zone_id;232===g.campaignid&&(c.lgq.push(d),chainLG$$module$dist$src$ads$chain());a||h.appendChild(document.createComment("[sovrn] Banner ("+b.zone_id+" / "+d+" / "+g.data.bannerid+" / "+g.data.campaignid+")"));var k=document.createElement("ins");k.setAttribute("class","sovrn_banner_ins_"+d);k.setAttribute("id",getChainLinkID$$module$dist$src$ads$chain(g,
d));(new DocumentWriter$$module$dist$src$ads$documentWriter).insert(decodeURIComponent(g.html),k);h.appendChild(k);log$$module$dist$src$ads$logging("Rendered Ad ("+b.zone_id+" / "+d+" / "+g.data.bannerid+" / "+g.data.campaignid+")");e.banner_id=parseInt(g.data.bannerid,10);e.campaign_id=parseInt(g.data.campaignid,10);232!==g.campaignid&&0===f&&(c.lgq.push(d),chainLG$$module$dist$src$ads$chain());setDataAttribs$$module$dist$src$ads$passback(g,e,d);return!0}catch(m){return reportError$$module$dist$src$ads$logging("Failed to Serve Chain Ad",
m),!1}}var module$dist$src$ads$passback={};module$dist$src$ads$passback.doPassback=doPassback$$module$dist$src$ads$passback;function getChainLinkID$$module$dist$src$ads$chain(a,b){return"sovrn_banner_"+b+"_"+a.data.bannerid+"_"+a.data.campaignid}function getContainer$$module$dist$src$ads$chain(a,b){if($jscompDefaultExport$$module$dist$src$ads$config.isAsync())if(inFriendlyIframe$$module$dist$src$ads$utils_iframe())a=document.body;else if(a)a=a.parentNode;else return null;else a=document.getElementById($jscompDefaultExport$$module$dist$src$ads$config.getAdUnitID(b));return a}
function showOverlay$$module$dist$src$ads$chain(a){var b=getContainer$$module$dist$src$ads$chain(null,a);if(b){var c=$jscompDefaultExport$$module$dist$src$ads$config.getZoneID();a=$jscompDefaultExport$$module$dist$src$ads$config.getBannerID(a);c="<a target = '_blank' href='"+$jscompDefaultExport$$module$dist$src$ads$buildConfig.adcenter_base+"adminpublisher/search/zone/"+c+"'>Zone: "+c+"</a>";var d="<a target = '_blank' href='"+$jscompDefaultExport$$module$dist$src$ads$buildConfig.adcenter_base+"campaigns/banners_edit/"+
a+"'>Banner: "+a+"</a>";a=document.createElement("div");a.innerHTML=c+"<br>"+d;a.setAttribute("class","sovrn_div_overlay");b.appendChild(a)}return!!b}
function chainCleanup$$module$dist$src$ads$chain(){var a,b,c=isOldIE$$module$dist$src$shared$dom()&&!$jscompDefaultExport$$module$dist$src$ads$config.isAsync(),d=$jscompDefaultExport$$module$dist$src$ads$config.globalConfig;if(c&&!d.globals.ie_cleanup_flag)return!1;d.globals.ie_cleanup_flag=!1;var e=$jscompDefaultExport$$module$dist$src$ads$config.getConfig();var f=c?d.globals.tids.length:1;for(b=0;b<f;b++){var g=c?d.globals.tids[b]:e.tid;if((a=document.querySelectorAll("ins.sovrn_banner_ins_"+g))&&
0!==a.length){var h=a[a.length-1];h.style.display="block";a=getContainer$$module$dist$src$ads$chain(a[0],g);h&&h.parentNode!==a&&a.appendChild(h);log$$module$dist$src$ads$logging("Chain Cleanup ("+g+")")}else reportError$$module$dist$src$ads$logging("Could not find ins tags for tid: "+g,Error())}h&&(unhideElem$$module$dist$src$shared$dom(h,e.zone.w,e.zone.h),insCleanup$$module$dist$src$shared$dom(h));return!0}
function finale$$module$dist$src$ads$chain(){var a=$jscompDefaultExport$$module$dist$src$ads$config.getConfig(),b=$jscompDefaultExport$$module$dist$src$ads$config.globalConfig;log$$module$dist$src$ads$logging("Finale ("+a.zone_id+" / "+a.tid+")");var c=doNotTrack$$module$dist$src$shared$consent();0==c&&sendBeacon$$module$dist$src$ads$beacon();a.chain&&!1===a.chain.pbi&&0==c&&fireContainerTag$$module$dist$src$ads$beacon();0==c&&fixBeacons$$module$dist$src$ads$beacon();if(dbgEnabled$$module$dist$src$shared$debug())if(!$jscompDefaultExport$$module$dist$src$ads$config.isAsync()&&
isOldIE$$module$dist$src$shared$dom())for(c=0;c<b.globals.tids.length;c++)showOverlay$$module$dist$src$ads$chain(b.globals.tids[c]);else showOverlay$$module$dist$src$ads$chain();a.finale_fired=!0;inFriendlyIframe$$module$dist$src$ads$utils_iframe()&&$jscompDefaultExport$$module$dist$src$ads$config.isAsync()&&document.close();asyncLevelUp$$module$dist$src$ads$utils_iframe();log$$module$dist$src$ads$logging("EOL ("+a.zone_id+" / "+a.tid+")");recordEvent$$module$dist$src$ads$logging("EOL");logToServer$$module$dist$src$ads$logging()}
function chainLG$$module$dist$src$ads$chain(a){var b,c=$jscompDefaultExport$$module$dist$src$ads$config.globalConfig;a||chainCleanup$$module$dist$src$ads$chain();try{for("undefined"!==typeof Array.prototype.filter&&(c.globals.lgq=c.globals.lgq.filter(function(a,b,c){return c.indexOf(a)>=b})),b=0;b<c.globals.lgq.length;b++){var d=c.globals.lgq[b];var e=$jscompDefaultExport$$module$dist$src$ads$config.getConfig(d);var f=e.chain.data.impurl;try{"1"!==window.sessionStorage.getItem("lg_"+d)&&((new Image).src=
f,c.globals.lgq.shift(),window.sessionStorage.setItem("lg_"+d,"1"),c.globals.lg_fired.push(d),log$$module$dist$src$ads$logging("*lg ("+e.zone_id+" / "+d+" / "+e.chain.data.bannerid+" / "+e.chain.data.campaignid+")"),e.chain.data={})}catch(g){-1===c.globals.lg_fired.indexOf(d)&&((new Image).src=f,c.globals.lgq.shift(),c.globals.lg_fired.push(d),log$$module$dist$src$ads$logging("*lg2 ("+e.zone_id+" / "+d+" / "+e.chain.data.bannerid+")"),e.chain.data={})}recordEvent$$module$dist$src$ads$logging("lgfired")}}catch(g){reportError$$module$dist$src$ads$logging("Error Firing LG",
g)}a||finale$$module$dist$src$ads$chain()}function getChainValues$$module$dist$src$ads$chain(a,b){b=$jscompDefaultExport$$module$dist$src$ads$config.getConfig(b).chain.ads;var c=[],d;for(d=0;d<b.length;d++)b[d].data.hasOwnProperty(a)&&c.push(b[d].data[a]);return c}
function setChainVars$$module$dist$src$ads$chain(a){var b=getTransactionFromCallingScriptTag$$module$dist$src$shared$dom();b&&$jscompDefaultExport$$module$dist$src$ads$config.setConfig(b);b=$jscompDefaultExport$$module$dist$src$ads$config.getConfig();recordEvent$$module$dist$src$ads$logging("addelivery_response");b.chain={ads:a.ads,pod:a.pod,pbi:a.hasOwnProperty("pbi")?a.pbi:!1,start_time:+new Date,banner_id:0,campaign_id:0,index:0};b.chain.pbi&&fireContainerTag$$module$dist$src$ads$beacon();doPassback$$module$dist$src$ads$passback()}
var module$dist$src$ads$chain={};module$dist$src$ads$chain.chainCleanup=chainCleanup$$module$dist$src$ads$chain;module$dist$src$ads$chain.chainLG=chainLG$$module$dist$src$ads$chain;module$dist$src$ads$chain.finale=finale$$module$dist$src$ads$chain;module$dist$src$ads$chain.getChainLinkID=getChainLinkID$$module$dist$src$ads$chain;module$dist$src$ads$chain.getChainValues=getChainValues$$module$dist$src$ads$chain;module$dist$src$ads$chain.setChainVars=setChainVars$$module$dist$src$ads$chain;
module$dist$src$ads$chain.showOverlay=showOverlay$$module$dist$src$ads$chain;function onMsg$$module$dist$src$ads$eventListeners(a){if(!$jscompDefaultExport$$module$dist$src$ads$config.globalConfig.globals.origin_regex.test(a.origin.toString()))return 3>++$jscompDefaultExport$$module$dist$src$ads$config.adsInstance.bad_origins_logged&&log$$module$dist$src$ads$logging("[onMsg] Invalid Event Origin: "+a.origin),null;var b=!1;a=JSON.parse(a.data).action;try{switch(a){case "passback":log$$module$dist$src$ads$logging("[onMsg] Passback Fired From iFrame");doPassback$$module$dist$src$ads$passback(!0);
b=!0;break;default:log$$module$dist$src$ads$logging("Invalid onMsg Action!")}}catch(c){reportError$$module$dist$src$ads$logging("onMsg Error",c)}return b}
function manageEventListeners$$module$dist$src$ads$eventListeners(){function a(){chainLG$$module$dist$src$ads$chain(!0)}function b(a){try{window.sessionStorage.removeItem($jscompDefaultExport$$module$dist$src$ads$config.globalConfig.globals.beacon_tid_ss_key+$jscompDefaultExport$$module$dist$src$ads$config.adsInstance.tid),window.sessionStorage.removeItem("lg_"+$jscompDefaultExport$$module$dist$src$ads$config.adsInstance.tid)}catch(g){}}var c=window.removeEventListener||window.detachEvent,d=window.addEventListener||
window.attachEvent,e=window.attachEvent?"on":"";c(e+"message",onMsg$$module$dist$src$ads$eventListeners);c(e+"beforeunload",a);c(e+"unload",b);d(e+"message",onMsg$$module$dist$src$ads$eventListeners);d(e+"beforeunload",a);d(e+"unload",b)}var module$dist$src$ads$eventListeners={};module$dist$src$ads$eventListeners.manageEventListeners=manageEventListeners$$module$dist$src$ads$eventListeners;function exposeVars$$module$dist$src$ads$exposeVars(){window.sovrn=window.sovrn||{};window.sovrn.ads=window.sovrn.ads||{};window.sovrn.ads.getLoc=getLoc$$module$dist$src$ads$getLoc;window.sovrn.ads.getOD=getOD$$module$dist$src$ads$getLoc;window.sovrn.ads.getZoneID=$jscompDefaultExport$$module$dist$src$ads$config.getZoneID.bind($jscompDefaultExport$$module$dist$src$ads$config);window.sovrn.ads.getConfig=$jscompDefaultExport$$module$dist$src$ads$config.getConfig.bind($jscompDefaultExport$$module$dist$src$ads$config);
window.sovrn.ads.renderAd=renderAd$$module$dist$src$ads$adserver;window.sovrn.ads.setChainVars=setChainVars$$module$dist$src$ads$chain;window.sovrn.ads.chainLG=chainLG$$module$dist$src$ads$chain;window.sovrn.ads.createiFrame=createiFrame$$module$dist$src$ads$utils_iframe;window.sovrn.ads.docWrite=docWrite$$module$dist$src$shared$dom;window.sovrn.ads.getCampaignID=$jscompDefaultExport$$module$dist$src$ads$config.getCampaignID.bind($jscompDefaultExport$$module$dist$src$ads$config);window.LJT_Ads=window.sovrn.ads}
var module$dist$src$ads$exposeVars={};module$dist$src$ads$exposeVars.exposeVars=exposeVars$$module$dist$src$ads$exposeVars;function initAsync$$module$dist$src$ads$init(a){if("object"!==typeof a)throw new TypeError("my_config is required");var b,c=a.tid;$jscompDefaultExport$$module$dist$src$ads$buildConfig.log_all_js_errors&&inFriendlyIframe$$module$dist$src$ads$utils_iframe()&&(window.onerror=function(a,c,f,g,h){try{return h=h||Error("Undetermined Error"),b="URL: "+c+" LINE: "+f+" COL: "+g+" MSG: "+a+" ERR: "+h,reportError$$module$dist$src$ads$logging(b,h),!0}catch(k){return reportError$$module$dist$src$ads$logging("Error in onerror handler",
k),!1}});log$$module$dist$src$ads$logging("Async Init ("+a.zone_id+" / "+c+")")}
function init$$module$dist$src$ads$init(a){try{var b=$jscompDefaultExport$$module$dist$src$ads$config.addTransaction();var c=$jscompDefaultExport$$module$dist$src$ads$config.getConfig();c.start_time=(new Date).getTime();c.async=a||window.sovrn_async||{};c.log="";c.scriptElement=getScriptTag$$module$dist$src$shared$dom($jscompDefaultExport$$module$dist$src$ads$buildConfig.tag_regex);if(!c.scriptElement){var d="Cant find Script Tag; URL: "+getLoc$$module$dist$src$ads$getLoc().substr(0,150)+"; REF: "+
getRef$$module$dist$src$ads$getLoc().substr(0,150);log$$module$dist$src$ads$logging(d);reportError$$module$dist$src$ads$logging(d,Error());return!1}c.query_params=parseQueryString$$module$dist$src$shared$url(c.scriptElement.src);c.zone_id="undefined"!==typeof c.query_params.z?c.query_params.z:$jscompDefaultExport$$module$dist$src$ads$config.getZoneID();if(!c.zone_id)return d="Unknown Zone ID; URL: "+getLoc$$module$dist$src$ads$getLoc().substr(0,150)+"; REF: "+getRef$$module$dist$src$ads$getLoc().substr(0,
150),log$$module$dist$src$ads$logging(d),reportError$$module$dist$src$ads$logging(d,Error()),!1;if("undefined"===typeof JSON)return reportError$$module$dist$src$ads$logging("JSON Browser support is required",Error()),!1;c.finale_fired=!1;c.chain_finished=!1;c.bad_origins_logged=0;c.ad_unit_id=generateAdUnitID$$module$dist$src$ads$adserver(c.zone_id);c.called_ad_server=!1;$jscompDefaultExport$$module$dist$src$ads$config.isAsync()&&initAsync$$module$dist$src$ads$init(c);manageEventListeners$$module$dist$src$ads$eventListeners();
(new DocumentWriter$$module$dist$src$ads$documentWriter).applyPolyfills(c.scriptElement);log$$module$dist$src$ads$logging("INIT ("+c.zone_id+" / "+b+")");exposeVars$$module$dist$src$ads$exposeVars();$jscompDefaultExport$$module$dist$src$ads$config.getConfigFromServer()}catch(e){reportError$$module$dist$src$ads$logging("Error Init",e)}}var module$dist$src$ads$init={};module$dist$src$ads$init.init=init$$module$dist$src$ads$init;window.lwp_ad_zoneid=null;window.LJT_executeCB=function(){return doPassback$$module$dist$src$ads$passback()};init$$module$dist$src$ads$init();var module$dist$src$ads$index={};
