
        (function(config) {
            !function(n){var i={};function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.m=n,r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=46)}([function(e,t,n){"use strict";var i={render:function(e,n){var i=e;return Object.keys(n).forEach(function(e){var t=new RegExp("{{"+e+"}}","g");i=i.replace(t,n[e])}),i}},p=i,f=n(17),m=n(15),h=n(9),o=n(1),r="https://polyfill.io/v3/polyfill.js?features=default,es2015,es2016,es2017,es2018,es2019,es5,es6,es7&flags=gated",i="https://polyfill.io/v3/polyfill.min.js?features=default,es2015,es2016,es2017,es2018,es2019,es5,es6,es7&flags=gated",a={player:{debug:[r,"//imasdk.googleapis.com/js/sdkloader/ima3_debug.js"],default:[i,"//imasdk.googleapis.com/js/sdkloader/ima3.js"]},content:{debug:[r],default:[i]},banner:{debug:[r],default:[i]},sentry:"//cdn.ravenjs.com/3.17.0/raven.min.js"};function s(e){return'<script type="text/javascript" src="'.concat(e,'"><\/script>')}var g={getScripts:function(e){var t=e.get("format_family"),n=e.get("player.script"),i=e.get("sentry",null),r=e.get("debug",!1),o=e.get("scheme","https"),t=t===h.a.BANNER?a.banner:t===h.a.STREAM?a.content:a.player,t=(r?t.debug:t.default).slice();return i&&t.unshift(a.sentry),t.push(n),t.map(function(e){return n=o,e=t=e,e=/https?:/i.test(window.location.protocol)||/^https?/i.test(t)?e:n+":"+t;var t,n}).map(s).join("")}},l=n(4),w=o.a.injectorPlayerEmitter,c=o.a.config,y={},u={mov:"mp4",mkv:"x-matroska","3gp":"3gpp","3g2":"3gpp2",h261:"h261",h263:"h263",h264:"h264",jpgv:"jpeg",jpm:"jpm",mj2:"mj2",mp4:"mp4",mpeg:"mpeg",ogv:"ogg",qt:"quicktime",uvh:"vnd.dece.hd",uvm:"vnd.dece.mobile",uvp:"vnd.dece.pd",uvs:"vnd.dece.sd",uvv:"vnd.dece.video",fvt:"vnd.fvt",mxu:"vnd.mpegurl",pyv:"vnd.ms-playready.media.pyv",uvu:"vnd.uvvu.mp4",viv:"vnd.vivo",webm:"webm",f4v:"x-f4v",fli:"x-fli",flv:"x-flv",m4v:"x-m4v",asf:"x-ms-asf",wm:"x-ms-wm",wmv:"x-ms-wmv",wmx:"x-ms-wmx",wvx:"x-ms-wvx",avi:"x-msvideo",movie:"x-sgi-movie"};y.urlEncode=function(t){return Object.keys(t).map(function(e){return e+"="+encodeURIComponent(t[e])}).join("&")},y.getViewportSize=function(e){var t="inner",n=e;return"innerWidth"in e||(t="client",n=n.document.documentElement||n.document.body),{width:n[t+"Width"],height:n[t+"Height"]}},y.getScreenSize=function(e){return{width:e.screen.width,height:e.screen.height}},y.getPageSize=function(e){return{width:e.document.body.scrollWidth,height:e.document.body.scrollHeight}},y.setCookie=function(e,t,n){var i=(new Date).valueOf(),r=new Date(864e5+i);r.setHours(0,0,0,0);r=n||r,r=e+"="+t+";path=/;max-age="+Math.floor((r-i)/1e3)+";expires="+r.toUTCString();return o.d.document.cookie=r},y.getCookie=function(e){e=(e=window.encodeURIComponent(e)).replace(/[-.+*]/g,"\\$&"),e=new RegExp("(?:(?:^|.*;)\\s*"+e+"\\s*\\=\\s*([^;]*).*$)|^.*$"),e=o.d.document.cookie.replace(e,"$1");return""!==e?window.decodeURIComponent(e):null},y.deleteCookie=function(e){o.d.document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;"},y.filter=function(e,t){for(var n=[],i=0;i<e.length;i+=1){var r=e[i];t(r)&&n.push(r)}return n},y.classNamePrefix=function(e,t){for(var n=0,i=t.length;n<i;n+=1)t[n]=e+"-"+t[n];return t.join(" ")},y.hashCode=function(e){var t=0;if(0===e.length)return t;for(var n=0,i=e.length;n<i;n+=1){t=(t<<5)-t+e.charCodeAt(n);t|=0}return t},y.pad=function(e,t){for(var n=String(e);n.length<(t||2);)n="0"+n;return n},y.throwException=function(e){setTimeout(function(){throw e},0)},y.getCustomCss=function(e){var t=e.getAttribute("data-custom-style"),n="";return t&&((e=document.getElementById(t))?n=e.innerHTML:this.throwException("Couldn't find the custom style tag "+t)),n},y.onDOMContentLoaded=function(e,t){var n=t||"complete",i=o.d.document;o.d.document.readyState===n||"complete"===o.d.document.readyState?e():Object(l.a)(i,"readystatechange",function(){i.readyState===n&&e()})},y.trackUrl=function(e){var t=new Image;t.onload=function(){},t.onerror=function(){},t.src=e},y.trackRequestEvent=function(e,t){t=t||"ok",t=c.get("scheme")+"://"+c.get("endpoint_host")+"/track/?session_id="+c.get("sid")+"&request_session_id="+c.get("sid")+"&label="+e+"&ver=14&reason="+t+"&type=event&category=request_session";y.trackUrl(t)},y.trackPlayerEvent=function(e,t,n){t=t||"ok",n=n||c,t=n.get("scheme")+"://"+n.get("endpoint_host")+"/track/?session_id="+n.get("sid")+":0&player_session_id=0&label="+e+"&ver=12&reason="+t+"&type=event&category=player_session";y.trackUrl(t)},y.getVPTInstance=function(e){var t=e.get("is_preview"),n=e.get("is_test");return e.get("format_family")===h.a.INSTREAM&&(t||n)?null:o.a.namespace&&o.a.namespace.vptimpl},y.getAdditionalPlayerConfig=function(e,t){var n=null,e=y.getVPTInstance(e);return n=null!=e&&null!=e.getConfig?e.getConfig(t):n},y.loadPlayerIframe=function(r,e,o,a,t,s,n,l,i){var c=o.get("sentry",null),u=o.get("format_family")===h.a.INSTREAM,d=n||w;f.a.get(e,function(e){var t,n,i=r.elem.contentWindow||r.elem;try{t=JSON.parse(e)}catch(e){throw y.reportError(e,"jsonParse"),e}if(t.error)d.emit("event::loadPlayerError");else{if(m.a.constructCMPPostMessageStub(i),s&&s(t),!u)try{n=y.getVPTInstance(o)}catch(e){throw y.reportError(e,"getVPTInstance"),e}d.once("pl::playerReady",function(){y.setupHeavyAdReporting(i,d),null==n||null!=t.extra&&null!=t.extra.session_counter&&1!==t.extra.session_counter||n.emit(n.EVENTS.PLAYER_READY,a,t.environment.zone.format_family)}),i.onPlayerReady?i.onPlayerReady(t,d,n,l):(i.config=t,i.injectorPlayerEmitter=d,i.vpt=n,i.injectorConfig=l)}});i=p.render(i,{scripts:g.getScripts(o),sentryConfig:function(){return c?JSON.stringify({dsn:c.dsn,sampleRate:c.sample_rate}):JSON.stringify(null)}});d.once("cmd::dmp_user_data",function(e){t&&t(e.data)}),y.loadFriendlyIframeWithTemplate(r,i)},y.loadFriendlyIframeWithTemplate=function(e,t){e=e.elem||e,e=e.contentDocument||e.contentWindow.document;e.open("text/html","replace"),e.write(t),e.close()},y.isUrl=function(e){return/(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-/]))?/.test(e)},y.getFifAbsolutePosition=function(e){for(var t,n,i,r={top:0,left:0},o=e;o!==window.top;)t=o.frameElement.getBoundingClientRect(),n=o.parent.pageYOffset||o.parent.document.documentElement.scrollTop||o.parent.document.body.scrollTop||0,i=o.parent.pageXOffset||o.parent.document.documentElement.scrollLeft||o.parent.document.body.scrollLeft||0,r.top+=t.top+n,r.left+=t.left+i,o=o.parent;return r},y.copyString=function(e){return(" "+e).slice(1)},y.getFileExtension=function(e){return null==e?"":e.split(".").pop()},y.getMimetype=function(e){e=y.getFileExtension(e);return u[e.toLowerCase()]||""},y.setupHeavyAdReporting=function(e,i){var t,r=!1,o=!1;function n(e){for(var t=!1,n=0;n<e.length;n+=1)"HeavyAdIntervention"===e[n].body.id&&(t=!0,y.trackPlayerEvent("player_error","60000"));t&&!o&&(o=!0,c.get("format_family")===h.a.INTEXT?i.emit("cmd::pullup",{adFilled:r,skipped:!1}):i.emit("cmd::remove",{impression:r,skipped:!1}))}e.ReportingObserver&&(i.on("adFilled",function(){r=!0}),t=new e.ReportingObserver(n,{buffered:!0}),e.addEventListener("unload",n),t.observe())},y.getVptId=function(e){var t=c.get("zid");return t=e.hasAttribute("data-alias")?e.getAttribute("data-alias"):t},y.reportError=function(e,t){window.Raven&&null!=e&&(e.message&&e.message.startsWith("You are trying to put the player into the head")||window.Raven.captureException(e,{tags:{injector_error:t}}))};t.a=y},function(e,t,n){"use strict";n.d(t,"c",function(){return d}),n.d(t,"b",function(){return p}),n.d(t,"d",function(){return f});var i,r=n(18),o=n(9),a=n(16),s=n(2);"undefined"!=typeof config&&(i=new r.a(config));var l=window!==window.top&&s.b.canAccessTopWindow(),c=!!window.inGptIF;var u=new a.a,d=null==i?l?window.top:window:(r=(n=i).get("format_family"),a=n.get("enable_intext_animation",!0),n=!(r===o.a.BANNER||r===o.a.STREAM||r===o.a.INTEXT&&!a)||"no"!==n.get("vip_mode","no"),l&&n?window.top:window),p=d.document,f=s.b.getTopAccessibleWindow(window);(s=l?window.top:d).__VR=s.__VR||{},s.__VR.widgets=s.__VR.widgets||[],s.__VR.dataLayers=s.__VR.dataLayers||{},s=s.__VR;t.a={inDapIF:l,inGptIF:c,injectorPlayerEmitter:u,config:i,namespace:s}},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var r,i,o,a,s={canAccessTopWindow:function(){return s.canAccessWindow(window.top)},canAccessWindow:function(e){try{return e.location.href?!0:!1}catch(e){return!1}},getTopAccessibleWindow:function(e){return s.canAccessWindow(e.parent)&&e!==e.parent?s.getTopAccessibleWindow(e.parent):e},isString:function(e){return"string"==typeof e||e instanceof String}},l=0,c={},u=!1,d=window.document;function p(e){delete c[e]}function f(e){if(u)setTimeout(f,0,e);else{var t=c[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{p(e),u=!1}}}}function m(e){e.source===window&&"string"==typeof e.data&&0===e.data.indexOf(a)&&f(+e.data.slice(a.length))}function h(e,t){return function(){return e.apply(t,Array.prototype.slice.call(arguments))}}r=window.setImmediate?function(e){window.setImmediate(function(){f(e)})}:function(){if(window.postMessage&&!window.importScripts){var e=!0,t=window.onmessage;return window.onmessage=function(){e=!1},window.postMessage("","*"),window.onmessage=t,e}}()?(a="setImmediate$"+Math.random()+"$",window.addEventListener?window.addEventListener("message",m,!1):window.attachEvent("onmessage",m),function(e){window.postMessage(a+e,"*")}):window.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){o.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,function(e){var t=d.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):function(e){setTimeout(f,0,e)},s.setImmediate=function(e){var t=e;"function"!=typeof e&&(t=new Function(""+e));for(var n=new Array(arguments.length-1),i=0;i<n.length;i+=1)n[i]=arguments[i+1];return c[l+=1]={callback:t,args:n},r(l),l},s.clearImmediate=p,t.b=s},function(e,t,n){"use strict";var i=n(2),r={getAmpAdContext:function(){var e=r.getAmpAdWindowWithContext();if(null!=e)return e.context},getAmpAdWindowWithContext:function(){var e=window;try{for(;e!==window.top;){if(null!=e.context&&null!=e.context.observeIntersection)return e;e=e.parent}}catch(e){}},getAmpVideoIframe:function(){var e=r.getAmpVideoIframeWindow();if(null!=e)return e.AmpVideoIframe},getAmpVideoIframeWindow:function(){var e=window;try{for(;e!==window.top;){if(null!=e.AmpVideoIframe)return e;e=e.parent}}catch(e){}},isAmpIframe:function(){return null!=r.getAmpIframeWindow()},getAmpIframeWindow:function(){var e=window;try{for(;i.b.canAccessWindow(e);){if(r.isWindowAmpIframe(e))return e;if(e.parent===e)return;e=e.parent}return}catch(e){return}},isWindowAmpIframe:function(e){try{return(e.name||"").toLowerCase().startsWith("amp_iframe")}catch(e){return!1}},isInsideAmp:function(){return null!=r.getAmpAdContext()||null!=r.getAmpVideoIframe()||r.isAmpIframe()}};t.a=r},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r});var o=n(14);function i(e,t,n,i){var r=!1;e.addEventListener?(i&&o.a.isPassiveListenersSupported()&&(r={passive:!0}),e.addEventListener(t,n,r)):e.attachEvent&&e.attachEvent("on"+t,n)}function r(e,t,n,i){var r=!1;e.removeEventListener?(i&&o.a.isPassiveListenersSupported()&&(r={passive:!0}),e.removeEventListener(t,n,r)):e.detachEvent&&e.detachEvent("on"+t,n)}},function(e,t,n){"use strict";var r,i,a=n(15),s=n(6),o={AMP:"amp",FACEBOOK_INSTANT_ARTICLES:"fbia",APPLE_NEWS:"an",OEMBED:"oembed"},u=n(11),l=n(10),d=n(1),c=n(3),p=n(13),f=n(7),m=n(2),h=(r=window.CustomEvent?"CustomEvent":"Event",i={bubbles:!1,cancelable:!1,detail:null},function(e,t){var n=document.createEvent(r);return null!==e?g.call(n,e,(t=t||i).bubbles,t.cancelable,t.detail):n.initCustomEvent=g,n});function g(e,t,n,i){this["init"+r](e,t,n,i),"detail"in this||(this.detail=i)}function w(n){var t=!0;try{if(n.sessionStorage.setItem("VR_TEST_SESSIONSTORAGE","test"),"test"!==n.sessionStorage.getItem("VR_TEST_SESSIONSTORAGE"))throw new Error("sessionStorage unavailable")}catch(e){n.VR_sessionStorageFallback=n.VR_sessionStorageFallback||{},t=!1}return t?n.sessionStorage:{setItem:function(e,t){n.VR_sessionStorageFallback[e]=t},getItem:function(e){return n.VR_sessionStorageFallback[e]||null},removeItem:function(e){try{delete n.VR_sessionStorageFallback[e]}catch(e){}},clear:function(){n.VR_sessionStorageFallback={}}}}var y=n(0),v=d.a.inDapIF,b=l.a.MaxInstancesError,E=l.a.DuplicateInjectorError,I="_kxviralize_segs",A="VR-INJECTOR-INSTANCES-MAP",_={},T={};T.findScript=function(e,t){var n=document.getElementsByTagName("script");if(null==t||null==e)return null;var e=(e="^((https?:)?//)?{endpoint_host}/.*[?&]zid={zid}($|[&#])".replace("{endpoint_host}",e)).replace("{zid}",t),i=new RegExp(e,"gi");for(var r,o=null,a=n.length-1;0<=a;--a)if(!(r=n[a]).hasAttribute("data-injected")&&!!(null!==r.getAttribute("data-wid")||i&&i.test(r.getAttribute("src")))){o=n[a];break}return o},T.findIframe=function(){return v?window.frameElement:null},T.generateSuffixId=function(){return Math.random().toString(32).substr(2)},T.markAsInjected=function(e){e.hasAttribute("data-injected")||e.setAttribute("data-injected",!0)},T.register=function(e,t,n,i){n&&i&&this.registerOnSafeFrameApi(e,n,i);var r=w(d.d),o={},a=r.getItem(A),e=(o=null!=a?JSON.parse(a):o)[t.injectorName]||{count:0,instances:{}},n=e.count,i=t.config.get("max_family_instances",0),a=t.config.get("sid");if(0<i&&i<=n)throw new b("Sorry, but the "+t.injectorName+" format can be used at most "+i+" times.");if(e.instances[a])throw new E("Duplicated injector for sid: "+a);e.instances[a]=!0,e.count+=1,o[t.injectorName]=e,r.setItem(A,JSON.stringify(o)),d.a.namespace.widgets.push(t)},T.registerOnSafeFrameApi=function(e,t,n){e.$sf&&e.$sf.ext&&e.$sf.ext.register(t,n)},T.unRegister=function(e){var t,n={},i=w(d.d),r=i.getItem(A),r=(n=null!=r?JSON.parse(r):n)[e.injectorName]||{count:0,instances:{}},o=e.config.get("sid");for(0<r.count&&--r.count,n[e.injectorName]=r,i.setItem(A,JSON.stringify(n)),t=0;t<d.a.namespace.widgets.length;t+=1)d.a.namespace.widgets[t].config.get("sid")===o&&d.a.namespace.widgets.splice(t,1)},T.replaceInjector=function(e){for(var t=e.ownerDocument.createElement("script"),n=e.attributes,i=0;i<n.length;i+=1)"data-injected"!==n[i].nodeName&&t.setAttribute(n[i].nodeName,n[i].value);t.src=t.src+"&cb="+(new Date).getTime();var r=e.parentNode;r.insertBefore(t,e),r.removeChild(e)},T.createIframe=function(e,t,n,i){var n=n?n+"px":"100%",i=i?i+"px":"100%",r={allowfullscreen:!0,webkitallowfullscreen:e.webkitFullscreenEnabled,mozallowfullscreen:e.mozFullScreenEnabled},o=f.a.create(e,"iframe",{id:t,src:"about:blank",scrolling:"no",frameborder:0,marginheight:0,marginwidth:0,allow:"autoplay; fullscreen",width:n,height:i});return Object.keys(r).forEach(function(e){r[e]&&o.attr(e,r[e])}),o.elem.style.width=n,o.elem.style.height=i,o},T.createPageId=function(e){var t,n=T.getApiAdapter(e),i=d.d.navigator||null,r=e.get("publisher"),e=e.get("page_url"),i=i&&i.userAgent||"",i=y.a.hashCode(r+e+i),i=y.a.pad((16777215&i).toString(16),6);function o(){for(var e="",t=(new Date).getTime(),t=y.a.pad(t.toString(16),12),n=0;n<52;n+=1)e+=Math.round(Math.random()).toString();return t+(e=parseInt(e,2).toString(16))}return n===s.a.AMP_AD?(n=c.a.getAmpAdWindowWithContext()).context.computeInMasterFrame(n,"VR-PAGEID-PREFIX",function(e){e(o())},function(e){t=e}):t=o(),t+i+0},T.getDetectedPublishingPlatform=function(e){e=e.get("pub_platform","");return c.a.isInsideAmp()?o.AMP:e},T.getApiAdapter=function(e){if(null!=c.a.getAmpAdContext())return s.a.AMP_AD;if(null!=c.a.getAmpVideoIframe())return s.a.AMP_VIDEO_IFRAME;if(c.a.isAmpIframe())return s.a.AMP_IFRAME;var t=e.get("pub_platform",""),n=s.a.STANDARD;return Object.keys(s.a).forEach(function(e){e=s.a[e];e===t&&(n=e)}),n},T.createSrc=function(e,t,n,i,r,o){var a={},s=Object(p.a)();d.a.namespace.pageId=d.a.namespace.pageId||T.createPageId(r);r=o||{};r.player_size||(r.player_size={width:0,height:0});o={page_id:d.a.namespace.pageId,screen:y.a.getScreenSize(e),page:y.a.getPageSize(e),viewport:y.a.getViewportSize(e),player_size:{width:Math.round(r.player_size.width),height:Math.round(r.player_size.height)},semantic_data:r.semantic_data};return r.player_position&&(o.player_position={top:Math.round(r.player_position.top),left:Math.round(r.player_position.left)}),a.player_session=JSON.stringify(o),e.document.referrer&&(a.r=e.document.referrer),r.cid&&(a.cid=r.cid),r.sound&&(a.sound=r.sound),r.gallery_init&&(a.gallery_init=r.gallery_init),0<r.sessionCounter&&(a.sc=r.sessionCounter),r.pub_platform&&(a.pub_platform=r.pub_platform),r.inj_api_adapter&&(a.inj_api_adapter=r.inj_api_adapter),r.activation&&(a.activation=r.activation),r.cs&&(a.cs=r.cs),null!=r.gdpr&&(a.gdpr=r.gdpr),r.cmp&&(a.cmp=r.cmp),s&&(a.dd=s),t+"/"+n+"/?"+i+"&"+y.a.urlEncode(a)},T.createPlayerSrc=function(e,t,n){var i=t.get("is_preview"),r=t.get("is_test"),r=i?"preview":r?"test":"player",n=n||{};return T.createSrc(e,t.get("scheme")+"://"+t.get("endpoint_host"),r,t.get("base_query"),t,n)},T.findInjectionElem=function(e){var t={script:"",iframe:""},n=e.get("zid"),e=e.get("endpoint_host");return t.iframe=T.findIframe(),t.script=document.currentScript||T.findScript(e,n),null===t.script&&y.a.trackRequestEvent("adunit_request_error",u.a.SCRIPT_NOT_FOUND),t},T.isInHead=function(e){for(var t=e.parentNode;null!=t;){if("head"===t.nodeName.toLowerCase())return!0;t=t.parentNode}return!1},T.setElementRemovedListener=function(e,n,i){this.unsetElementRemovedListener();try{(_=new MutationObserver(function(e){e.forEach(function(e){if(0<e.removedNodes.length)for(var t=0;t<e.removedNodes.length;t+=1)!function(e,t){for(var n=t;null!=n;){if(e===n)return 1;n=n.parentNode}}(e.removedNodes[t],n)||i()})})).observe(e,{childList:!0,subtree:!0})}catch(e){}},T.unsetElementRemovedListener=function(){_.disconnect&&(_.disconnect(),_={})},T.addPluginsForNotBlacklisted=function(e,t,n){null!=n&&null!={179:!0,358:!0,711:!0}[n]||T.addInjectorPlugins(e,null,t)},T.addInjectorPlugins=function(e,t,i){var n,r="",o=d.d.document;d.d.__vrInjectorPlugins=d.d.__vrInjectorPlugins||{};var a=d.d.__vrInjectorPlugins;function s(e){var n=e;return i&&Object.keys(i).forEach(function(e){var t=new RegExp("{"+e+"}","g"),e=i[e];n=n.replace(t,e)}),n}t&&(r=t+"-"),n=o.createElement("placeholder"),o.body.appendChild(n);for(var l,c,u=0;u<e.length;u+=1)a[e[u].id]||(e[u].src?(l=e[u],c=void 0,(c=o.createElement("script")).setAttribute("id",r+l.id),c.src=s(l.src),c.setAttribute("async",""),o.body.appendChild(c)):e[u].content&&(c=e[u],f.a.insertHTMLBefore(n,r+c.id,s(c.content))),a[e[u].id]=!0);o.body.removeChild(n)},T.getInjectionPoint=function(e,t,n,i,r){var o=e.document,a=f.a.getAll(o,t),s=parseInt((i-n)/r,10)||1;for(var l=[],c=!1,u=i;n<=u;u-=s)if(0<(l=y.a.filter(a,Object(m.a)(function(t){return function(e){return 0!==e.offset().top&&e.text().length>t}}(u),this))).length){c=!0;break}if(c){var d=e.innerHeight;void 0===d&&(d=o.documentElement.clientHeight);o=(l=y.a.filter(l,function(e){return e.offset().top>d})).sort(function(e,t){return e.offset().top-t.offset().top});return o[0]?o[Math.floor(o.length/2)]:null}return null},T.searchPlayerLocation=function(e,t,n){for(var i,r,o=new RegExp(/^id-.*/),a=new RegExp(/^sel-.*/),s=e.length,l={auto:u.a.LOCATION_AUTO_ERROR,inline:u.a.LOCATION_INLINE_ERROR,idSelector:u.a.LOCATION_BY_ID_ERROR,querySelector:u.a.LOCATION_BY_SELECTOR_ERROR},c=0;c<s;c+=1){if("inline"===(i=e[c]))return!n||""!==t&&t||y.a.trackRequestEvent("adunit_request_error",l.inline),{playerLocation:t,usedCriteria:i};if("auto"===i?r=T.getInjectionPoint(d.c,"article p",10,100,20):o.test(i)?(r=function(e){for(var t=window,n=t.document.getElementById(e);null==n&&t!==t.parent&&m.b.canAccessWindow(t.parent);)n=(t=t.parent).document.getElementById(e);return n=null!==n?new f.a(n):n}(i.slice(3)),i="idSelector"):a.test(i)&&(r=function(e){for(var t=window,n=t.document.querySelector(e);null==n&&t!==t.parent&&m.b.canAccessWindow(t.parent);)n=(t=t.parent).document.querySelector(e);return n=null!==n?new f.a(n):n}(window.decodeURIComponent(i.slice(4))),i="querySelector"),r)return{playerLocation:r.elem,usedCriteria:i}}return n&&y.a.trackRequestEvent("adunit_request_error",l[i]),{playerLocation:null,usedCriteria:null}},T.sendDmpData=function(t,e,n){T.readDmpUserSegments("kxviralize_segs",function(e){T.setCookieSyncPixel(t,e)},n),d.a.namespace.dataLayers.dmp=d.a.namespace.dataLayers.dmp||{collected:!1,data:{}},d.a.namespace.dataLayers.dmp.collected||(d.a.namespace.dataLayers.dmp.collected=!0,d.a.namespace.dataLayers.dmp.data=e||{},d.d.dispatchEvent(new(function(e){try{return new e.CustomEvent("?"),e.CustomEvent}catch(e){return h}}(window))("VR-DMP-COLLECT")))},T.readDmpUserSegments=function(n,i,e){function r(e){return e?function(e){for(var t,n,i=e.length,r=0;r<i;r+=1){for(t=e[r],n=r-1;-1<n&&e[n]>t;--n)e[n+1]=e[n];e[n+1]=t}return e}(e.split(",")).join(","):""}var o=r(e),a=function(n){var t=!0;try{if(n.localStorage.setItem("VR_TEST_LOCALSTORAGE","test"),"test"!==n.localStorage.getItem("VR_TEST_LOCALSTORAGE"))throw new Error("localStorage unavailable")}catch(e){n.VR_localStorageFallback=n.VR_localStorageFallback||{},t=!1}return t?n.localStorage:{setItem:function(e,t){n.VR_localStorageFallback[e]=t},getItem:function(e){return n.VR_localStorageFallback[e]||null},removeItem:function(e){try{delete n.VR_localStorageFallback[e]}catch(e){}},clear:function(){n.VR_localStorageFallback={}}}}(d.d),s=a.getItem(I),l=0;setTimeout(function e(){var t;a.getItem(I)!==s?(l+=1,(t=r(a.getItem(n)))!==o?i(t):l<2&&setTimeout(e,250)):setTimeout(e,250)},250)},T.setCookieSyncPixel=function(e,t){t=window.encodeURIComponent(t);y.a.trackUrl(e+"/u-segment/?seg="+t)},T.readCMPData=function(e,r){var o,t=e.get("gdpr");if(t)return o=t.cs||"",void r("",t.cmp,t.gdpr?1:0,o);a.a.readCMPData(e.get("country"),function(e,t,n,i){r(e,t,n,o=i||"")})},T.evaluatePlayerPosition=function(e,t){var n,i=null,r=e.getBoundingClientRect(),e=e.ownerDocument.defaultView;return t===s.a.AMP_AD?i={top:(t=c.a.getAmpAdContext()).initialLayoutRect.top,left:t.initialLayoutRect.left}:e!==window.top?v?((i=y.a.getFifAbsolutePosition(e)).top+=r.top,i.left+=r.left):e.$sf&&e.$sf.ext&&null!=(n=e.$sf.ext.geom())&&null!=n.self&&null!=n.self.t&&null!=n.self.l&&(i={top:n.self.t,left:n.self.l}):(n=e.pageYOffset||e.document.documentElement.scrollTop||e.document.body.scrollTop||0,e=e.pageXOffset||e.document.documentElement.scrollLeft||e.document.body.scrollLeft||0,i={top:r.top+n,left:r.left+e}),i};t.a=T},function(e,t,n){"use strict";n.d(t,"b",function(){return r});var i={STANDARD:"standard",AMP_AD:"amp-ad",AMP_VIDEO_IFRAME:"amp-video-iframe",AMP_IFRAME:"amp-iframe",AMP_VIRALIZE_PLAYER:"amp-viralize-player",FACEBOOK_INSTANT_ARTICLES:"fbia",APPLE_NEWS:"an",OEMBED:"oembed"};function r(e){return e===i.AMP_AD||e===i.AMP_IFRAME||e===i.AMP_VIDEO_IFRAME||e===i.AMP_VIRALIZE_PLAYER}t.a=i},function(e,t,n){"use strict";function c(e){if(!(this instanceof c))return new c(e);this.elem=e}c.create=function(e,t,n){var i=new c(e.createElement(t));return n&&Object.keys(n).forEach(function(e){i.attr(e,n[e])}),i},c.getAll=function(e,t){for(var n=e.querySelectorAll(t),i=[],r=0;r<n.length;r+=1)i[r]=new c(n[r]);return i},c.remove=function(e,t){t=e.getElementById(t);null!==t&&t.parentNode&&t.parentNode.removeChild(t)},c.insertHTMLBefore=function(e,t,n){if(""===n)return null;var i=e.ownerDocument,t=c.create(i,"ins",{id:t});t.elem.innerHTML=n,e.parentNode.insertBefore(t.elem,e);for(var r=t.elem.getElementsByTagName("script"),o=0;o<r.length;o+=1){for(var a=i.createElement("script"),s=r[o].attributes,l=0;l<s.length;l+=1)a.setAttribute(s[l].nodeName,s[l].value);r[o].innerHTML&&(a.text=r[o].innerHTML),r[o].parentNode.replaceChild(a,r[o])}return this},c.prototype.remove=function(){this.elem.parentNode.removeChild(this.elem)},c.prototype.attr=function(e,t){return this.elem.setAttribute(e,t),this},c.prototype.appendTo=function(e){return e.appendChild(this.elem),this},c.prototype.append=function(e){return e.nextSibling?e.parentNode.insertBefore(this.elem,e.nextSibling):e.parentNode.appendChild(this.elem),this},c.prototype.prepend=function(e){return e.parentNode.insertBefore(this.elem,e),this},c.prototype.text=function(e){return void 0===e?"textContent"in this.elem?this.elem.textContent:this.elem.innerText:("textContent"in this.elem?this.elem.textContent=e:this.elem.innerText=e,this)},c.prototype.offset=function(){var e=this.elem.ownerDocument,t=e.defaultView,n=this.elem.getBoundingClientRect(),i=e.body,r=e.documentElement,o=t.pageYOffset||r.scrollTop||i.scrollTop,e=t.pageXOffset||r.scrollLeft||i.scrollLeft,t=r.clientTop||i.clientTop||0,i=r.clientLeft||i.clientLeft||0,t=n.top+o-t,i=n.left+e-i;return{top:Math.round(t),left:Math.round(i)}},c.prototype.hasClass=function(e){return new RegExp(" "+e+" ").test(" "+this.elem.className+" ")},c.prototype.addClass=function(e){return this.hasClass(e)||(this.elem.className+=(this.elem.className.length?" ":"")+e),this},c.prototype.removeClass=function(e){return this.hasClass(e)&&(this.elem.className=this.elem.className.replace(e,"").replace(/\s+$/g,"")),this},c.prototype.hide=function(){return this.elem.style.display="none",this.elem.style.visibility="hidden",this},c.prototype.show=function(){return this.elem.style.visibility="visible",this.elem.style.display="",this},t.a=c},function(e,t,n){"use strict";var i;function r(e,t,n,i){i.unshift(t,n),e.apply(console,i)}function o(e){this.prefix="["+(e||"VR-LOG")+"]",this.sporadicRate=.05}function a(e){var t=console;try{t.error(e)}catch(e){}}n.d(t,"b",function(){return a}),i=!1,o.prototype.debug=function(){i&&r(console.debug,this.prefix,"[DEBUG]",[].slice.call(arguments,0))},o.prototype.info=function(){i&&r(console.info,this.prefix,"[INFO]",[].slice.call(arguments,0))},o.prototype.warn=function(){i&&r(console.warn,this.prefix,"[WARN]",[].slice.call(arguments,0))},o.prototype.error=function(){i&&r(console.error,this.prefix,"[ERROR]",[].slice.call(arguments,0))},o.prototype.sporadic=function(){i&&Math.random()<this.sporadicRate&&this.debug.apply(this,arguments)},t.a=o},function(e,t,n){"use strict";t.a={BANNER:"banner",INSTREAM:"instream",STREAM:"gallery",VIP:"outstream",INTERSTITIAL:"interstitial",INTEXT:"native"}},function(e,t,n){"use strict";function i(e){this.message=e}function r(e){this.message=e}function o(e){this.message=e}function a(e){this.message=e}i.prototype=new Error,r.prototype=new Error,o.prototype=new Error,a.prototype=new Error,t.a={MaxInstancesError:i,DuplicateInjectorError:r,ViewabilityUnavailableError:o,ViewabilityClassNotFoundError:a}},function(e,t,n){"use strict";t.a={SCRIPT_NOT_FOUND:30001,LOCATION_INLINE_ERROR:30002,LOCATION_AUTO_ERROR:30003,LOCATION_BY_ID_ERROR:30004,LOCATION_BY_SELECTOR_ERROR:30005,SCRIPT_IN_HEAD:30006,INVALID_VPT_CONFIGURATION:50001}},,function(e,t,n){"use strict";n.d(t,"b",function(){return r});var i=n(2);new(n(8).a)("detectDomain");function r(e){e=e.match(/^https?:\/\/(?:www\.)?([^/:?#]+)(?:[/:?#]|$)/i);return e&&e[1]}t.a=function(){var e,t,n=((t=window.location.ancestorOrigins)&&0<t.length?(Array.from(t),r(t[t.length-1])):null)||(i.b.canAccessTopWindow()?(window.top.location.href,r(window.top.location.href)):null)||(null!=(n=i.b.getTopAccessibleWindow(window))&&null!==(e=n.document)&&void 0!==e&&e.referrer?(n.document.referrer,r(n.document.referrer)):null);return n||null}},function(e,t,n){"use strict";n.d(t,"b",function(){return i});n={};function i(){return void 0!==document.createElement("div").style.transition}n.detectAutoplay=function(){for(var e=[/mobile/i,/android/i,/(iphone|ipad|ipod)/i,/silk-accelerated/i],t=0;t<e.length;t+=1)if(window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.match(e[t]))return!1;return!0},n.detectMobile=function(){return navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i)},n.detectiOS=function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream},n.detectAndroidVersion=function(){return navigator.userAgent.toLowerCase().match(/android\s([0-9.]*)/)[1]},n.isPassiveListenersSupported=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return!(e=!0)}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch(e){}return e},t.a=n},function(e,t,n){"use strict";var log=n(8),i={AT:!0,BE:!0,BG:!0,HR:!0,CY:!0,CZ:!0,DK:!0,EE:!0,FI:!0,FR:!0,DE:!0,GR:!0,HU:!0,IE:!0,IT:!0,LV:!0,LT:!0,LU:!0,MT:!0,NL:!0,PL:!0,PT:!0,RO:!0,SK:!0,SI:!0,ES:!0,SE:!0,GB:!0,GF:!0,GP:!0,MQ:!0,ME:!0,YT:!0,RE:!0,MF:!0,GI:!0,AX:!0,PM:!0,GL:!0,BL:!0,SX:!0,AW:!0,CW:!0,WF:!0,PF:!0,NC:!0,TF:!0,AI:!0,BM:!0,IO:!0,VG:!0,KY:!0,FK:!0,MS:!0,PN:!0,SH:!0,GS:!0,TC:!0,AD:!0,LI:!0,MC:!0,SM:!0,VA:!0,JE:!0,GG:!0,EU:!0,CH:!0};var u=function(e){return i[e]||!1},r=n(3);function d(e){switch(e){case 1:return"1";case 2:return"2";default:return""}}function p(e){switch(e){case 1:case 2:return"available";default:return"unavailable"}}var c={isPresent:function(){return null!=r.a.getAmpAdContext()&&void 0!==r.a.getAmpAdContext().data.blockOnConsent||null!=r.a.getAmpVideoIframe()||r.a.isAmpIframe()},readCMPData:function(e,a){var s,i,t=u(e),l={consentStringType:0,gdprApplies:t};function c(){null!=s&&(clearTimeout(s),s=null)}function n(r){var o=r.parent;r.addEventListener("message",function e(t){var n,i;null!=s?(i="consent-data",(n=t).source===o&&n.origin!==r.location.origin&&n.data&&"amp"===n.data.sentinel&&n.data.type===i&&(i=Object.assign(l,t.data.consentMetadata),c(),a(d(i.consentStringType),p(t.data.consentPolicyState),i.gdprApplies?1:0,t.data.consentString||""))):window.removeEventListener("message",e)}),o.postMessage({sentinel:"amp",type:"send-consent-data"},"*")}s=setTimeout(function(){c(),s=null,a("","timeout",t?1:0,"")},2e3),r.a.getAmpAdWindowWithContext()?(i=r.a.getAmpAdWindowWithContext()).context.getConsentState(function(){var e=Object.assign(l,i.context.initialConsentMetadata),t=p(i.context.initialConsentState),n=i.context.initialConsentValue||"";null!=s&&(c(),a(d(e.consentStringType),t,e.gdprApplies?1:0,n||""))}):null!=r.a.getAmpVideoIframe()?r.a.getAmpVideoIframe().push(function(e){e.getConsentData(function(e){var t=Object.assign(l,e.consentMetadata);null!=s&&(c(),a(d(t.consentStringType),p(e.consentPolicyState),t.gdprApplies?1:0,e.consentString||""))})}):r.a.isAmpIframe()&&n(r.a.getAmpIframeWindow())},constructCMPPostMessageStub:function(){}},l=n(2),f=n(4);function m(e){for(var i,r,o,t,n,a=window;!i;){try{a.frames.__cmpLocator&&(i=a)}catch(e){}if(a===window.top)break;a=a.parent}var s={};function l(e){try{(t="string"==typeof e.data?JSON.parse(e.data):e.data).__cmpReturn&&(n=t.__cmpReturn,s[n.callId]&&(s[n.callId](n.returnValue,n.success),s[n.callId]=null))}catch(e){}}return e.__cmp=function(e,t,n){i?(r=Math.random().toString(32).substr(2),o={__cmpCall:{command:e,parameter:t,callId:r}},s[r]=n,i.postMessage(o,"*")):n({msg:"CMP not found"},!1)},Object(f.a)(window,"message",l),function(){Object(f.b)(window,"message",l)}}var h={readCMPData:function(o,a){var s,e,t=l.b.canAccessTopWindow(),n=t?window.top:window;t||(e=m(n)),n.__cmp?(s=setTimeout(function(){s=null,e&&e(),a("1","timeout",u(o)?1:0,"")},2e3),function r(){n.__cmp("getConsentData",null,function(e,t){var n,i;null!=s&&(t&&null==e.consentData?setTimeout(r,0):(clearTimeout(s),s=null,e=t?(n="available",i=e.gdprApplies?1:0,e.consentData):(n="error",i=u(o)?1:0,""),a("1",n,i,e)))})}()):a("","unavailable",u(o)?1:0,"")},constructCMPPostMessageStub:m};function a(){for(var e,t=window;t;){try{if(t.frames.__tcfapiLocator){e=t;break}}catch(e){}if(t===window.top)break;t=t.parent}return e}function s(){return null!=window.__tcfapi||null!=a()}function g(e){var r=a(),o={};function t(e){var t={};try{t="string"==typeof e.data?JSON.parse(e.data):e.data}catch(e){}t=t.__tcfapiReturn;t&&"function"==typeof o[t.callId]&&(o[t.callId](t.returnValue,t.success),o[t.callId]=null)}return e.__tcfapi=function(e,t,n,i){r?(t={__tcfapiCall:{command:e,parameter:i,version:t,callId:i=Math.random()+""}},o[i]=n,r.postMessage(t,"*")):n({msg:"CMP not found"},!1)},Object(f.a)(window,"message",t),function(){Object(f.b)(window,"message",t)}}var w={isPresent:s,readCMPData:function(n,i){var r,e,o,t;function a(){null!=r&&(clearTimeout(r),r=null),e&&e(),o&&(o=null,t.__tcfapi("removeEventListener",2,function(){},o))}s()?(null==(t=l.b.canAccessTopWindow()?window.top:window).__tcfapi&&(e=g(t)),r=setTimeout(function(){a(),i("2","timeout",u(n)?1:0,"")},2e3),t.__tcfapi("addEventListener",2,function(e,t){if(null!=r)return o=e.listenerId,t?t&&"tcloaded"===e.eventStatus?(a(),void i("2","available",e.gdprApplies?1:0,e.tcString)):void(t&&"useractioncomplete"===e.eventStatus&&(a(),i("2","available",e.gdprApplies?1:0,e.tcString))):(a(),void i("2","error",u(n)?1:0,""))})):i("","unavailable",u(n)?1:0,"")},constructCMPPostMessageStub:g};new log.a("CMP");t.a={readCMPData:function(e,o){var a,s=[],l=0;function t(e,t,n,i){var r={tcfVersion:e,cmpAvailability:t,gdprApplies:n,consentString:i};if(s.push(r),!a)return"available"===t||"error"===t?(a=r,void o(e,t,n,i)):void(l===s.length&&(a=s[0],o(a.tcfVersion,a.cmpAvailability,a.gdprApplies,a.consentString)))}c.isPresent()&&(l+=1,c.readCMPData(e,t)),w.isPresent()&&(l+=1,w.readCMPData(e,t)),0===l&&(l+=1,h.readCMPData(e,t))},constructCMPPostMessageStub:function(e){c.isPresent()?c.constructCMPPostMessageStub(e):w.isPresent()?null==e.__tcfapi&&w.constructCMPPostMessageStub(e):null==e.__cmp&&h.constructCMPPostMessageStub(e)}}},function(e,t,n){"use strict";var i=n(2);function r(){this.listeners={}}r.prototype.emit=function(e,t){null!=this.listeners[e]&&this.listeners[e].forEach(function(e){null!=e&&i.b.setImmediate(function(){e(t)})})},r.prototype.emitSync=function(e,t){null!=this.listeners[e]&&this.listeners[e].forEach(function(e){null!=e&&e(t)})},r.prototype.on=function(e,t){return this.listeners[e]?this.listeners[e].push(t):this.listeners[e]=[t],this.listeners[e].length-1},r.prototype.once=function(t,n){var i=this.on(t,function(e){this.listeners[t][i]&&(this.off(t,i),n(e))}.bind(this));return i},r.prototype.off=function(){switch(arguments.length){case 0:this.listeners={};break;case 1:null!=(t=this.listeners)[n=arguments[0]]&&(t[n]=null);break;default:e=this.listeners,t=arguments[0],n=arguments[1],null!=e[t]&&0<=n&&e[t].length>n&&(e[t][n]=null)}var e,t,n},t.a=r},function(e,t,n){"use strict";var i={};function r(e,t,n,i){var r=!0,o=4,a=[200,201,202,204,206,304,1223];var s=function(){try{return new XDomainRequest}catch(e){r=!1}try{return new XMLHttpRequest}catch(e){}try{return new ActiveXObject("Msxml3.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}return null}();s&&(s.open(t?"POST":"GET",e,!0),r?(s.onload=function(){n&&n(s.responseText)},s.onprogress=function(){},s.ontimeout=function(){},s.onerror=function(){i&&i()}):s.onreadystatechange=function(){s.readyState===o&&(-1<a.indexOf(s.status)?n&&n(s.responseText):i&&i())},"withCredentials"in s&&(s.withCredentials=!0),t&&s.setRequestHeader("Content-type","application/json"),s.send(t))}i.get=function(e,t,n){return r(e,null,t,n)},i.post=function(e,t,n,i){return r(e,t?JSON.stringify(t):"{}",n,i)},t.a=i},function(e,t,n){"use strict";t.a=function(n){this.get=function(e,t){if(0===arguments.length)return JSON.parse(JSON.stringify(n));1===arguments.length&&(t=null);e=function(e,t){for(var n=t.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split("."),i=n.length,r=0;r<i;r+=1){var o=n[r];if(!(o in e))return null;e=e[o]}return e}(n,e);return(e=null==e?t:e)?JSON.parse(JSON.stringify(e)):e}}},function(e,t,n){"use strict";var i=n(10).a.ViewabilityUnavailableError;function r(e,t,n){n=n||2;this.viewability=e,this.callback=t,this.iabViewabilityTimeout=null,this.counter=8,this.loopInterval=n/this.counter*1e3}r.prototype.start=function(){var t=this,n=this.counter;if(this.stop(),this.viewability.isViewabilityUnavailable())throw new i;this.iabViewabilityTimeout=window.setTimeout(function e(){50<=t.viewability.computeViewability().perc?0==--n?t.callback():t.iabViewabilityTimeout=window.setTimeout(e,t.loopInterval):(n=t.counter,t.iabViewabilityTimeout=window.setTimeout(e,t.loopInterval))},t.loopInterval)},r.prototype.stop=function(){window.clearTimeout(this.iabViewabilityTimeout)},t.a=r},function(e,t,n){"use strict";var o=n(6),log=n(8),r=n(3),i=n(10),a=n(2),s=i.a.ViewabilityUnavailableError;function l(e,t,n,i){this.reasons={OUT_OF_VIEWPORT:0,HIDDEN:1,NOT_IN_FOCUS:2,TOO_SMALL:3,IN_VIEWPORT:4,FIXED_VIEWABILITY:5},this.elem=e,this.wnd=t,this.forceViewability=n,this.onViewabilityChange=i}l.prototype.start=function(){if(this.isViewabilityUnavailable())throw new s;this.stop(),this.attachListeners(Object(a.a)(this.notifier,this)),this.notifier()},l.prototype.stop=function(){this.detachListeners()},l.prototype.notifier=function(){this.onViewabilityChange(this.computeViewability())};var c=l;function u(e,t,n,i){c.call(this,e,t,n,i),this.detachViewabilityObserver=null,this.currentViewability=null,this.ampAdContext=r.a.getAmpAdContext(),this.minElementArea=1}((u.prototype=Object.create(c.prototype)).constructor=u).prototype.isViewabilityUnavailable=function(){return!1},u.prototype.computeViewability=function(){var e=!this.ampAdContext.hidden,t=this.computeViewabilityReason(e),e={reason:t,focus:e};return t!==this.reasons.IN_VIEWPORT?e.perc=0:e.perc=this.currentViewability?Math.min(100,Math.round(100*this.currentViewability.intersectionRatio)):0,e},u.prototype.computeViewabilityReason=function(e){if(null==this.currentViewability)return this.reasons.FIXED_VIEWABILITY;var t=this.currentViewability.boundingClientRect,t=t.width*t.height;return e?this.currentViewability.intersectionRatio<=0?this.reasons.OUT_OF_VIEWPORT:t<this.minElementArea?this.reasons.TOO_SMALL:this.reasons.IN_VIEWPORT:this.reasons.NOT_IN_FOCUS},u.prototype.attachListeners=function(t){var n=this;this.detachViewabilityObserver=this.ampAdContext.observeIntersection(function(e){n.currentViewability=e[e.length-1],t()})},u.prototype.detachListeners=function(){this.detachViewabilityObserver&&this.detachViewabilityObserver()};var d=u;function p(e,t,n,i){c.call(this,e,t,n,i),this.currentIntersectionRatio=0,this.refreshFunctionId=void 0,this.ampVideoIframe=r.a.getAmpVideoIframe(),this.hiddenProperty=function(){for(var e=["hidden","mozHidden","webkitHidden","msHidden","oHidden"],t=null,n=0;n<e.length;n+=1)if((t=e[n])in document)return t;return t}()}((p.prototype=Object.create(c.prototype)).constructor=p).prototype.isViewabilityUnavailable=function(){return!1},p.prototype.computeViewability=function(){var e=this.inFocus(),t=e?0<this.currentIntersectionRatio?this.reasons.IN_VIEWPORT:this.reasons.OUT_OF_VIEWPORT:this.reasons.NOT_IN_FOCUS;return{reason:t,focus:e,perc:Math.min(100,Math.round(100*this.currentIntersectionRatio))}},p.prototype.attachListeners=function(n){var i=this;this.ampVideoIframe.push(function(e){function t(){e.getIntersection(function(e){i.currentIntersectionRatio=e.intersectionRatio,n()})}t(),i.refreshFunctionId=setInterval(t,250)})},p.prototype.detachListeners=function(){clearInterval(this.refreshFunctionId)},p.prototype.inFocus=function(){var e=this.wnd.document[this.hiddenProperty];return void 0===e||!e};var f=p,m={enters_viewport:1,center_enters_viewport:100,center_exits_viewport:49,exits_viewport:-1};function h(e,t,n,i){c.call(this,e,t,n,i),this.boundListener=Object(a.a)(this.receiveMessage,this),this.callback=null}((h.prototype=Object.create(c.prototype)).constructor=h).prototype.isViewabilityUnavailable=function(){return!1},h.prototype.computeViewability=function(){return{reason:0<this.wnd.viewabilityPerc?this.reasons.IN_VIEWPORT:this.reasons.OUT_OF_VIEWPORT,focus:!0,perc:this.wnd.viewabilityPerc}},h.prototype.attachListeners=function(e){this.wnd.viewabilityPerc=m[this.wnd.lastViewabilityMessage],this.callback=e,this.wnd.addEventListener("message",this.boundListener)},h.prototype.detachListeners=function(){this.wnd.removeEventListener("message",this.boundListener)},h.prototype.receiveMessage=function(e){m[e.data]&&(this.wnd.viewabilityPerc=m[e.data],this.callback&&this.callback())};var g=h,w=n(0);function y(e,t){this.callback=null,this.intersectionObserver=null,this.intersectionData=null,this.elem=t,this.wnd=e}y.prototype.start=function(e){var t=this,n={root:null,rootMargin:"0px",threshold:this.createIntersectionObserverThresholds()};this.callback=e,this.intersectionObserver=new IntersectionObserver(function(e){0!==e.length&&(t.intersectionData=t.parseIntersectionData(e),t.callback())},n),this.intersectionObserver.observe(this.elem)},y.prototype.createIntersectionObserverThresholds=function(){for(var e=[],t=0;t<=100;t+=1)e.push(t/100);return e},y.prototype.parseIntersectionData=function(e){e=e[e.length-1];return Math.min(100,Math.round(100*e.intersectionRatio))},y.prototype.stop=function(){this.intersectionObserver&&(this.intersectionObserver.disconnect&&this.intersectionObserver.disconnect(),this.intersectionObserver.unobserve&&this.intersectionObserver.unobserve(this.elem),this.intersectionObserver=null)},y.prototype.computeViewabilityPercentage=function(){var e;return!this.intersectionObserver.takeRecords||0<(e=this.intersectionObserver.takeRecords()).length&&(this.intersectionData=this.parseIntersectionData(e)),null!=this.intersectionData?this.intersectionData:0};var v=y;var b=function(e,t){var n=(o=e.getBoundingClientRect()).width*o.height,i=Math.ceil(Math.max(0,o.left)),r=Math.ceil(Math.min(t.width,o.right)),e=Math.ceil(Math.max(0,o.top)),o=Math.ceil(Math.min(t.height,o.bottom));return Math.floor((r-i)*(o-e)/n*100)};function E(e,t){this.callback=null,this.viewabilityObserver=null,this.elem=t,this.wnd=e}E.prototype.start=function(e){this.callback=e,this.viewabilityObserver=new this.wnd.MutationObserver(Object(a.a)(function(e){for(var t=0;t<e.length;t+=1)if(e[t].target.contains(this.elem))return void this.callback()},this)),this.viewabilityObserver.observe(this.wnd.document.body,{attributes:!0,subtree:!0})},E.prototype.stop=function(){this.viewabilityObserver&&(this.viewabilityObserver.disconnect(),this.viewabilityObserver=null)},E.prototype.computeViewabilityPercentage=function(){var e=w.a.getViewportSize(this.wnd);return b(this.elem,e)};var I=E;function A(e,t){this.callback=null,this.viewabilityLoopTimer=null,this.elem=t,this.wnd=e,this.loopInterval=250}A.prototype.start=function(e){var t=this;this.callback=e,function e(){t.callback(),t.viewabilityLoopTimer=t.wnd.setTimeout(e,t.loopInterval)}()},A.prototype.stop=function(){this.viewabilityLoopTimer&&(this.wnd.clearTimeout(this.viewabilityLoopTimer),this.viewabilityLoopTimer=null)},A.prototype.computeViewabilityPercentage=function(){var e=w.a.getViewportSize(this.wnd);return b(this.elem,e)};var _=A,T=n(4);function P(e,t,n,i){c.call(this,e,t,n,i),this.callback=null,this.windowEvents=["focus","blur","check","checkAndNotify"],this.documentEvents=["visibilitychange","mozvisibilitychange","msvisibilitychange","webkitvisibilitychange"],this.hiddenProperty=function(){for(var e=["hidden","mozHidden","webkitHidden","msHidden","oHidden"],t=null,n=0;n<e.length;n+=1)if((t=e[n])in document)return t;return t}(),this.minElementArea=1,this.ancestors=this.getElementAncestors(),this.viewabilityObserver=null,window.IntersectionObserver?this.viewabilityObserver=new v(this.wnd,this.elem):(this.windowEvents=this.windowEvents.concat(["scroll","resize"]),window.MutationObserver?this.viewabilityObserver=new I(this.wnd,this.elem):this.viewabilityObserver=new _(this.wnd,this.elem))}((P.prototype=Object.create(c.prototype)).constructor=P).prototype.getElementAncestors=function(){for(var e=[],t=this.elem;t;)e.unshift(t),t=t.parentNode;return e},P.prototype.isViewabilityUnavailable=function(){return!window.IntersectionObserver&&this.isInIframe()},P.prototype.isInIframe=function(){if(this.wnd.top!==this.wnd.self)return!0;for(var e=this.wnd.top.document.getElementsByTagName("iframe"),t=0;t<e.length;t+=1)if(e[t]===this.elem)return!1;return!0},P.prototype.computeViewability=function(){var e=this.inFocus(),t=this.computeViewabilityReason(e),e={reason:t,focus:e};return!this.forceViewability()||t!==this.reasons.OUT_OF_VIEWPORT&&t!==this.reasons.IN_VIEWPORT?t!==this.reasons.IN_VIEWPORT?e.perc=0:e.perc=this.viewabilityObserver.computeViewabilityPercentage():e.perc=100,e},P.prototype.computeViewabilityReason=function(e){var t=this.elem,n=w.a.getViewportSize(this.wnd),i=t.getBoundingClientRect(),r=i.width*i.height,o=this.ancestors;if("none"===t.style.display||"hidden"===t.style.visibility)return this.reasons.HIDDEN;for(var a=0;a<o.length;a+=1){var s=o[a].style;if(s&&("none"===s.display||"hidden"===s.visibility))return this.reasons.HIDDEN}return e?i.bottom<=0||i.right<=0||i.top>=n.height||i.left>=n.width?this.reasons.OUT_OF_VIEWPORT:r<this.minElementArea?this.reasons.TOO_SMALL:this.reasons.IN_VIEWPORT:this.reasons.NOT_IN_FOCUS},P.prototype.inFocus=function(){var e=this.wnd.document[this.hiddenProperty];return void 0!==e?!e:!a.b.canAccessTopWindow()||"function"!=typeof window.top.document.hasFocus||window.top.document.hasFocus()},P.prototype.attachListeners=function(e){var t;for(this.callback=e,t=0;t<this.windowEvents.length;t+=1)Object(T.a)(this.wnd,this.windowEvents[t],e,!0);for(t=0;t<this.documentEvents.length;t+=1)Object(T.a)(this.wnd.document,this.documentEvents[t],e,!0);this.viewabilityObserver.start(e)},P.prototype.detachListeners=function(){for(var e=0;e<this.windowEvents.length;e+=1)Object(T.b)(this.wnd,this.windowEvents[e],this.callback,!0);for(e=0;e<this.documentEvents.length;e+=1)Object(T.b)(this.wnd.document,this.documentEvents[e],this.callback,!0);this.viewabilityObserver.stop()};var S=P;new log.a("viewabilityFactory");t.a={getInstance:function(e,t,n,i,r){switch(e){case o.a.FACEBOOK_INSTANT_ARTICLES:return new g(t,n,i,r);case o.a.AMP_VIDEO_IFRAME:return new f(t,n,i,r);case o.a.AMP_AD:return new d(t,n,i,r);default:return new S(t,n,i,r)}}}},function(e,t,n){"use strict";var i=n(1),log=n(8),r=n(3),o=n(13),a=[/googlesyndication\.com/];new log.a("detectIframe");function s(e){try{if(function(e){for(var t=0;t<a.length;t+=1)if(a[t].test(e))return 1}(e.origin))return 1}catch(e){}}function l(e){if(e===e.top)return!1;for(var t=function(e){for(var t=[],n=e;n&&n!==e.top;)t.push(n),n=n.parent;return t.length,t}(e),n=0;n<t.length;n+=1)if(s(t[n]))return!0;return!1}var c=new log.a("generateInjectorConfig");t.a=function(e){var t=Object.assign({blacklistedAds:[],width:0,height:0,scriptSrc:"",brandConfig:null},e),e="content.viralize.tv"===(e=Object(o.b)(t.scriptSrc))||"dev-content.viralize.tv"===e,e={zoneDimensions:{width:t.width,height:t.height},blacklistedAds:t.blacklistedAds,isInsideAmp:r.a.isInsideAmp(),isInsideGpt:i.a.inGptIF,isInsideAdIframe:l(window),isInContentDomain:e};return c.debug(e),e}},function(e,t,n){"use strict";var i=n(0),r=n(7);function o(e,t,n){this.id=e,this.css=i.a.copyString(t),n&&(this.css+=n)}o.prototype.getCssNameNamespace=function(){return"vr-"+this.id},o.prototype.loadStyle=function(e){var t=this.css.replace(new RegExp("namespace","g"),this.id),n=this.getCssNameNamespace(),i=e.ownerDocument;r.a.remove(i,n);i=i.createElement("style");if(i.id=n,e.parentNode.insertBefore(i,e),i.styleSheet)i.styleSheet.disabled||(i.styleSheet.cssText=t);else try{i.innerHTML=t}catch(e){i.innerText=t}},t.a=o},function(e,t,n){"use strict";e.exports=function(n){var l=[];return l.toString=function(){return this.map(function(e){var t=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){e=function(e){e=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),e="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(e," */")}(i),t=i.sources.map(function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")});return[n].concat(t).concat([e]).join("\n")}return[n].join("\n")}(e,n);return e[2]?"@media ".concat(e[2]," {").concat(t,"}"):t}).join("")},l.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(n)for(var r=0;r<this.length;r++){var o=this[r][0];null!=o&&(i[o]=!0)}for(var a=0;a<e.length;a++){var s=[].concat(e[a]);n&&i[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),l.push(s))}},l}},,function(e,t,n){"use strict";var r=n(1),u=n(2),i=n(0),d={},o={},a={},p={},f="DELETED";function s(e,t){return e+";"+t+";"+Math.random().toString(32).substr(2)}function l(e,t,n){null!=d[e]&&null!=d[e][t]&&null!=d[e][t][n]&&(d[e][t][n]=f)}function c(e){var t={event:p.EVENTS.ALL,zid:p.ALL_ZID};return u.b.isString(e)?t.event=e:(t.event=e.event||t.event,t.zid=e.zid||t.zid),t}function m(t,n){Object.keys(n).forEach(function(e){t.push(n[e])})}function h(e,t){var n=p.getVrApis(t);if(null!=n)for(var i=0;i<n.length;i+=1)n[i][e]()}p.emit=function(e,t,n,i){var r,o,a,s,l=(r=e,o=t,l=[],a=p.ALL_ZID,s=p.EVENTS.ALL,d[a]&&d[a][s]&&m(l,d[a][s]),o!==a&&d[o]&&d[o][s]&&m(l,d[o][s]),r!==s&&(d[a]&&d[a][r]&&m(l,d[a][r]),d[o]&&d[o][r]&&m(l,d[o][r])),l),c={event:e,zid:t,format:n,data:i,timestamp:(new Date).getTime()};l.forEach(function(e){e!==f&&u.b.setImmediate(function(){e(c)})})},p.on=function(e,t){var n=c(e),i=s(n.zid,n.event);for(d[n.zid]||(d[n.zid]={}),d[n.zid][n.event]||(d[n.zid][n.event]={});null!=d[n.zid][n.event][i];)i=s(n.zid,n.event);return d[n.zid][n.event][i]=t,i},p.once=function(e,t){var n=c(e),i=p.on(n,function(e){d[n.zid][n.event][i]!==f&&(p.off(n,i),t(e))});return i},p.off=function(e,t){var n,i,e=c(e);null!=t?l(e.zid,e.event,t):(n=e.zid,i=e.event,null!=d[n]&&null!=d[n][i]&&Object.keys(d[n][i]).forEach(function(e){l(n,i,e)}))},p.EVENTS={ALL:"VPT-EVENT::*",PLAYER_READY:"VPT-EVENT::PLAYER_READY",ACTIVATION:"VPT-EVENT::ACTIVATION",COLLAPSE:"VPT-EVENT::COLLAPSE",END:"VPT-EVENT::END",AD_SESSION_START:"VPT-EVENT::AD_SESSION_START",AD_SESSION_END:"VPT-EVENT::AD_SESSION_END",AD_IMPRESSION:"VPT-EVENT::AD_IMPRESSION",START:"VPT-EVENT::START",FIRST_QUARTILE:"VPT-EVENT::FIRST_QUARTILE",MID_POINT:"VPT-EVENT::MID_POINT",THIRD_QUARTILE:"VPT-EVENT::THIRD_POINT",COMPLETE:"VPT-EVENT::COMPLETE",CONTENT_START:"VPT-EVENT::CONTENT_START",CONTENT_END:"VPT-EVENT::CONTENT_END",ERROR:"VPT-EVENT::ERROR",CLICK:"VPT-EVENT::CLICK",SKIP:"VPT-EVENT::SKIP",PLAYING:"VPT-EVENT::PLAYING",PAUSED:"VPT-EVENT::PAUSED",MUTED:"VPT-EVENT::MUTED",UNMUTED:"VPT-EVENT::UNMUTED"},p.ALL_ZID="VPT-ZID::*",p.queue={push:function(e){setTimeout(e,0)}},p.addConfig=function(){var e,t=u.b.isString(arguments[0])?(e=arguments[0],arguments[1]):(e=p.ALL_ZID,arguments[0]);o[e]=t},p.getConfig=function(e){return null!=o[e]?o[e]:o[p.ALL_ZID]},p.addVrApi=function(e,t){return null==a[e]&&(a[e]=[]),a[e].push(t),a[e].length-1},p.removeVrApi=function(e,t){null!=a[e]&&null!=a[e][t]&&(a[e][t]=null)},p.play=function(){h("play",Array.prototype.slice.call(arguments))},p.pause=function(){h("pause",Array.prototype.slice.call(arguments))},p.mute=function(){h("mute",Array.prototype.slice.call(arguments))},p.unmute=function(){h("unmute",Array.prototype.slice.call(arguments))},p.enterFullscreen=function(){h("enterFullscreen",Array.prototype.slice.call(arguments))},p.exitFullscreen=function(){h("exitFullscreen",Array.prototype.slice.call(arguments))},p.showControls=function(){h("showControls",Array.prototype.slice.call(arguments))},p.hideControls=function(){h("hideControls",Array.prototype.slice.call(arguments))},p.getVrApis=function(e){var t,e=0<e.length&&u.b.isString(e[0])?e[0]:p.ALL_ZID;return e!==p.ALL_ZID?t=a[e]:(t=[],Object.keys(a).forEach(function(e){t=t.concat(a[e])})),null==t||0===t.length?[]:i.a.filter(t,function(e){return null!=e})},t.a=function(e){var t,n,i;n=e,i={EVENTS:(t=p).EVENTS,ALL_ZID:t.ALL_ZID,queue:t.queue,on:t.on,once:t.once,off:t.off,addConfig:t.addConfig,getConfig:t.getConfig,play:t.play,pause:t.pause,mute:t.mute,unmute:t.unmute,enterFullscreen:t.enterFullscreen,exitFullscreen:t.exitFullscreen,showControls:t.showControls,hideControls:t.hideControls},e=window,null!=(e=u.b.canAccessTopWindow()&&!n?window.top:e).vpt?"[object Array]"===Object.prototype.toString.call(e.vpt.queue)&&(n=e.vpt.queue,e.vpt=i,r.a.namespace.vptimpl=t,n.forEach(function(e){e()})):(e.vpt=i,r.a.namespace.vptimpl=t)}},,,,,,,,,,,function(e,t,n){"use strict";var i=n(23),i=n.n(i)()(!1);i.push([e.i,"",""]),t.a=i},function(e,t){e.exports='<!DOCTYPE html> <html> <head> <meta charset="UTF-8"/> <meta name="viewport" content="width=device-width,initial-scale=1"/> {{scripts}} <title>Viralize Display Banner</title> </head> <body> <iframe id="prebid-ad-slot" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true" width="0" height="0"></iframe> <iframe id="google-ad-slot" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true" width="0" height="0"></iframe> <script>const gptScript=document.createElement(\'script\');gptScript.src=\'//www.googletagservices.com/tag/js/gpt.js\';const googleIframe=document.getElementById(\'google-ad-slot\'),targetDoc=googleIframe.contentDocument||googleIframe.contentWindow.document;targetDoc.body||(targetDoc.body=document.createElement(\'body\')),targetDoc.body.appendChild(gptScript)<\/script> <script>function onPlayerReady(n,i,o,e){window.config=n,window.injectorPlayerEmitter=i,window.injectorConfig=e,null!=o&&(window.vpt=o);var w=n.user_data||{},r=JSON.parse(\'{{sentryConfig}}\');new Banner(n,r,e);i.emit(\'cmd::dmp_user_data\',w)}window.config&&window.injectorPlayerEmitter?onPlayerReady(window.config,window.injectorPlayerEmitter,window.vpt,window.injectorConfig):window.onPlayerReady=onPlayerReady<\/script> </body> </html> '},,,,,,,,,function(e,t,n){e.exports=n(57)},,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var a=n(6),r=n(11),s=n(22),i=n(10),o=n(16),l=n(1),log=n(8),c=n(7),u=n(2),d=n(21),p=n(0),f=n(19),m=n(20),h=n(36),t=n(37),g=n.n(t),w=n(5),y=l.a.config,v=i.a.DuplicateInjectorError;function b(){this.log=new log.a("Banner"),this.width=y.get("width"),this.height=y.get("height"),this.injectorName="banner",this.suffixId=w.a.generateSuffixId(),this.detectedPlatform=w.a.getDetectedPublishingPlatform(y),this.apiAdapter=w.a.getApiAdapter(y),this.computedPlayerConf=null,this.script=null,this.injectionElem=null,this.playerWindow=null,this.currentDisplayedSlot={iframe:null,wrapperElement:null,startViewabilityCallBackId:null,startIABViewabilityCallBackId:null,stopViewabilityCallBackId:null,stopIABViewabilityCallBackId:null,injectorPlayerEmitter:null},this.newPlayerLoadingSlot={iframe:null,wrapperElement:null,startViewabilityCallBackId:null,startIABViewabilityCallBackId:null,stopViewabilityCallBackId:null,stopIABViewabilityCallBackId:null,injectorPlayerEmitter:null},this.config=y,this.bannerRefreshTimeout=2e4,this.refreshIfFirstNotFill=!1,this.maxNumberOfImpressions=10,this.maxNumberOfRetries=10,this.failuresInARow=0,this.somethingFill=!1,this.numberOfImpressions=0,this.numberOfRetries=0,this.cssLoader=null}b.prototype.performFallback=function(){w.a.unRegister(this);var e="viralize-fallback-"+this.suffixId,e=c.a.insertHTMLBefore(this.script,e,y.get("fallback_body"));this.currentDisplayedSlot.wrapperElement&&this.currentDisplayedSlot.wrapperElement.hide(),this.newPlayerLoadingSlot.wrapperElement&&this.newPlayerLoadingSlot.wrapperElement.hide(),this.currentDisplayedSlot&&this.currentDisplayedSlot.injectorPlayerEmitter&&this.currentDisplayedSlot.injectorPlayerEmitter.off(),this.newPlayerLoadingSlot&&this.newPlayerLoadingSlot.injectorPlayerEmitter&&this.newPlayerLoadingSlot.injectorPlayerEmitter.off(),e&&p.a.trackRequestEvent("adunit_response_fallback")},b.prototype.cleanViewability=function(e){null!=e.startViewabilityCallBackId&&null!=e.injectorPlayerEmitter&&e.injectorPlayerEmitter.off("cmd::startViewability",e.startViewabilityCallBackId),null!=e.startIABViewabilityCallBackId&&null!=e.injectorPlayerEmitter&&e.injectorPlayerEmitter.off("cmd::startIABViewability",e.startIABViewabilityCallBackId),null!=e.stopViewabilityCallBackId&&null!=e.injectorPlayerEmitter&&e.injectorPlayerEmitter.off("cmd::stopViewability",e.stopViewabilityCallBackId),null!=e.stopIABViewabilityCallBackId&&null!=e.injectorPlayerEmitter&&e.injectorPlayerEmitter.off("cmd::stopIABViewability",e.stopIABViewabilityCallBackId),e.startViewabilityCallBackId=null,e.startIABViewabilityCallBackId=null,e.stopViewabilityCallBackId=null,e.stopIABViewabilityCallBackId=null},b.prototype.setupViewability=function(t){this.cleanViewability(t);var e=m.a.getInstance(this.apiAdapter,t.iframe.elem,this.playerWindow,function(){return!1},function(e){t.injectorPlayerEmitter.emit("inj::viewability",e)}),n=new f.a(e,function(){t.injectorPlayerEmitter.emit("inj::viewable")},1);t.startViewabilityCallBackId=t.injectorPlayerEmitter.on("cmd::startViewability",function(){try{e.start(),t.injectorPlayerEmitter.emit("inj::viewabilityAvailable")}catch(e){t.injectorPlayerEmitter.emit("inj::viewabilityNotAvailable")}}),t.startIABViewabilityCallBackId=t.injectorPlayerEmitter.on("cmd::startIABViewability",function(){try{n.start()}catch(e){}}),t.stopViewabilityCallBackId=t.injectorPlayerEmitter.on("cmd::stopViewability",function(){e.stop()}),t.stopIABViewabilityCallBackId=t.injectorPlayerEmitter.on("cmd::stopIABViewability",function(){n.stop()})},b.prototype.removeGoogleBidders=function(e){for(var t=[],n=0;n<e.banneradns.length;n+=1)"google"!==e.banneradns[n].bidder.bidder.toLowerCase()&&t.push(e.banneradns[n]);e.banneradns=t},b.prototype.createBannerSlot=function(e,t,n){var i=w.a.createIframe(e,"vr-"+this.suffixId+"-banner-"+t,this.width,this.height),e=c.a.create(e,"div");e.attr("id",p.a.classNamePrefix(this.cssNamespace,["wrapper"])+"-"+t),i.appendTo(e.elem),n.iframe=i,n.wrapperElement=e,n.idPostfix=t},b.prototype._isRetry=function(){return 0<this.failuresInARow},b.prototype.loadPlayer=function(e,t,n){var i=this,r=p.a.getVptId(this.script),o=Object(d.a)({width:this.width,height:this.height,blacklistedAds:[],scriptSrc:this.script.src});n.on("event::loadPlayerError",function(){i.removePlayer(e,function(){0===i.numberOfImpressions&&i.performFallback()},!1)}),this._isRetry()||n.once("pl::playerReady",function(){p.a.trackPlayerEvent("ad_opportunity")});var a=this.numberOfRetries+1;this.computedPlayerConf.sessionCounter=a;a=w.a.createPlayerSrc(this.playerWindow,y,this.computedPlayerConf);e.injectorPlayerEmitter&&e.injectorPlayerEmitter.off(),e.injectorPlayerEmitter=n,p.a.loadPlayerIframe(e.iframe,a,y,r,function(e){w.a.sendDmpData(y.get("scheme")+"://"+y.get("endpoint_host"),e,y.get("dmp_segments"))},function(e){t&&t(e),e.extra.alias=r},e.injectorPlayerEmitter,o,g.a),this.setupViewability(e)},b.prototype.removePlayer=function(t,n,e){function i(){var e;w.a.unsetElementRemovedListener(),r.cleanViewability(t),null!=t.wrapperElement&&null!=t.wrapperElement.elem&&null!=t.iframe&&null!=t.iframe.elem?(e=r.playerWindow.document,t.iframe.remove(),t.iframe=w.a.createIframe(e,"vr-"+r.suffixId+"-banner-"+t.idPostfix,r.width,r.height),t.iframe.appendTo(t.wrapperElement.elem),w.a.setElementRemovedListener(e.body,r.injectionPoint,function(){throw new Error("Player removed by an external script")}),r.log.info("Banner slot removed"),n()):r.log.warn("Malformed slot: missing information")}var r=this;e&&null!=t.injectorPlayerEmitter?(t.injectorPlayerEmitter.once("cmd::remove",i),t.injectorPlayerEmitter.emit("inj::clean")):i()},b.prototype.refreshLoop=function(e){function t(){if(!i.refreshIfFirstNotFill&&!i.somethingFill)return i.log.info("Stop refresh because first does not fill"),void i.performFallback();if(!0!==e.success||"GOOGLE"!==e.type){if(i.numberOfRetries+=1,i.numberOfRetries>=i.maxNumberOfRetries||i.numberOfImpressions>=i.maxNumberOfImpressions)return i.log.info("Stop refresh because number of retries or impressions reached the maximum"),void(i.somethingFill||i.performFallback());setTimeout(function(){var e=new o.a;e.on("inj::adFillBanner",Object(u.a)(i.refreshLoop,i)),e.on("inj::adBlocked",function(){i.currentDisplayedSlot.wrapperElement.hide()}),i.loadPlayer(i.newPlayerLoadingSlot,i.removeGoogleBidders,e)},i.bannerRefreshTimeout)}else i.log.info("Stop refresh because a google AD fill")}var n,i=this;!0===e.success?(this.somethingFill=!0,this.numberOfImpressions+=1,this.failuresInARow=0,n=this.currentDisplayedSlot,this.currentDisplayedSlot=this.newPlayerLoadingSlot,this.newPlayerLoadingSlot=n,this.newPlayerLoadingSlot.wrapperElement.hide(),this.currentDisplayedSlot.wrapperElement.show()):this.failuresInARow+=1,this.removePlayer(this.newPlayerLoadingSlot,t,!0)},b.prototype.setupRefresh=function(){var e=this,t=new o.a;t.on("inj::adFillBanner",Object(u.a)(this.refreshLoop,this)),t.on("inj::adBlocked",function(){e.currentDisplayedSlot.wrapperElement.hide()}),this.loadPlayer(this.newPlayerLoadingSlot,null,t)},b.prototype.inject=function(){var e,t,n,o=this,i=w.a.findInjectionElem(y).script;null!==(this.script=i)&&(w.a.markAsInjected(i),this.injectionElem=i,i=p.a.getCustomCss(i)||y.get("custom_style"),this.cssLoader=new s.a(this.suffixId,h.a,i),this.cssNamespace=this.cssLoader.getCssNameNamespace(),this.script.style.display="none",e=function(e){o.playerWindow=e.ownerDocument.defaultView||e.ownerDocument.parentWindow;var t=o.playerWindow.document;o.createBannerSlot(t,"main",o.newPlayerLoadingSlot),o.createBannerSlot(t,"secondary",o.currentDisplayedSlot);try{w.a.register(o.playerWindow,o,o.width,o.height)}catch(e){return void(e instanceof v&&w.a.replaceInjector(o.script))}if(w.a.isInHead(e)){p.a.trackRequestEvent("adunit_request_error",r.a.SCRIPT_IN_HEAD);var n=new Error('You are trying to put the player into the head.Please check the script location or the "location" parameter');throw Object(log.b)(n),n}e.parentNode.insertBefore(o.newPlayerLoadingSlot.wrapperElement.elem,e),e.parentNode.insertBefore(o.currentDisplayedSlot.wrapperElement.elem,e),o.cssLoader.loadStyle(o.currentDisplayedSlot.wrapperElement.elem),o.currentDisplayedSlot.wrapperElement.hide(),w.a.setElementRemovedListener(t.body,e,function(){throw new Error("Player removed by an external script")}),w.a.readCMPData(y,function(e,t,n,i){var r=w.a.evaluatePlayerPosition(o.newPlayerLoadingSlot.wrapperElement.elem,o.apiAdapter);o.computedPlayerConf={player_size:{width:o.width,height:o.height},pub_platform:o.detectedPlatform,cs:i,gdpr:n,cmp:t,sessionCounter:null},o.apiAdapter!==a.a.STANDARD&&(o.computedPlayerConf.inj_api_adapter=o.apiAdapter),r&&(o.computedPlayerConf.player_position=r),o.setupRefresh();n={"gdpr_consent_?\\d*":i,gdpr:n,country:y.get("country")};w.a.addPluginsForNotBlacklisted(y.get("plugins",[]),n,y.get("publisher"))})},t=y.get("location",["inline"]),(n=w.a.searchPlayerLocation([t[0]],this.injectionElem,!1).playerLocation)?e(n):p.a.onDOMContentLoaded(function(){n=w.a.searchPlayerLocation(t,o.injectionElem,!0).playerLocation,e(n)}))};i=b,n=n(25);try{Object(n.a)(),(new i).inject()}catch(e){throw p.a.reportError(e,"Banner"),e}}]);
        })({"fallback_body": "", "sentry": {"dsn": "https://1aec9d790bc84140bb25fdb76f019171@sentry.viralize.com/6", "sample_rate": 0.05}, "plugins": [{"id": "113", "content": "<script language=\"javascript\" type=\"text/javascript\">\r\n\ts = document.createElement('script');\r\n\ts.src='https://sync.richaudience.com/b3adde1f4bbb31c3485562d6e3ddceb4/js/?r='+Math.round(Math.random()*99999999999); \r\n\tdocument.body.append(s);\r\n</script>"}, {"id": "3", "content": "<script>\r\n\t// Smart RTB+ force cookie-sync code - https only - 2020-02-04\r\n       var c ={\r\n           'insertionId' : 5733718,\r\n           'pageId' : 1473518,\r\n           'domain' : 'www8.smartadserver.com'\r\n       }\r\n       var h = document.getElementsByTagName('head')[0];\r\n       var sl = document.createElement('script');\r\n       sl.type = 'text/javascript';\r\n       sl.src =  'https://'+ c.domain+'/ac?pgid='+c.pageId+'&insid='+c.insertionId+'&tmstp='+Math.round(Math.random()*10000000000)+'&out=js';\r\n       sl.async = true;\r\n       h.appendChild(sl);\r\n</script>"}, {"id": "1", "content": "<img src=\"//ads.stickyadstv.com/auto-user-sync\" style=\"display:none;\" width=\"1\" height=\"1\">"}, {"id": "41", "content": "<script type=\"text/javascript\">\r\n    (function () {\r\n        'use strict'\r\n        function sendData(){\"use strict\";var t={gdpr:\"{gdpr}\",gdpr_consent:\"{gdpr_consent}\",ccpa:null,bp_id:\"viralize\"},e={name:\"P&G\",pixelUrl:\"https://pandg.tapad.com/tag\"},n=Tapad.init(t,e),d={};n.sync(d).then()}var scriptEl,parentNode;scriptEl=window.document.createElement(\"script\"),scriptEl.setAttribute(\"async\",!0),scriptEl.src=\"https://pghub.io/js/pandg-sdk.js\",scriptEl.addEventListener(\"load\",sendData),(parentNode=window.document.head||window.document.body)&&parentNode.appendChild(scriptEl);\r\n    })();\r\n</script>"}, {"id": "219", "content": "<iframe src=\"https://csync-global.smartadserver.com/2058/CookieSync.html\" style=\"position: absolute; width:0; height:0; border:0;\"></iframe>"}, {"id": "166", "content": "<iframe src=\"https://csync-global.smartadserver.com/2161/CookieSync.html\" style=\"position: absolute; width:0; height:0; border:0;\"></iframe>"}, {"id": "42", "content": "<iframe src=\"https://csync-global.smartadserver.com/3668/CookieSync.html\" style=\"position: absolute; width:0; height:0; border:0;\"></iframe>"}], "location": ["inline"], "dmp_segments": "", "player": {"script": "https://monetize-static.viralize.tv/viralize_player_banner.min.657f0c81.js?e=lpcdnall", "mobi": false}, "pub_platform": null, "country": "FI", "scheme": "https", "width": 320, "parent_network": "2", "publisher": "4885", "is_preview": false, "is_test": false, "sid": "01ed37a951660ff8ac2061b0678bdc91", "height": 50, "endpoint_host": "content.viralize.tv", "zid": "AADifaFjznCf1Mm8", "format_family": "banner", "page_url": "https://www.vidademadrid.com/es/22100/cine-verano-bombilla-2020/", "experiment": "lpcdnall.", "gdpr": null, "base_query": "zid=AADifaFjznCf1Mm8&sid=01ed37a951660ff8ac2061b0678bdc91&activation=&experiment=lpcdnall.&u=https%3A%2F%2Fwww.vidademadrid.com%2Fes%2F22100%2Fcine-verano-bombilla-2020%2F&ahd=1"});
        