!function(){var e,t={182:function(e,t){"use strict";t.Z={prod:{adBlockerDetection:"https://libs.outbrain.com/video/outbrain-media-player/current/ads.min.js",style:"https://libs.outbrain.com/video/outbrain-media-player/current/omp.min.css"},preview:{adBlockerDetection:"https://libs.outbrain.com/video/outbrain-media-player/current/ads.min.js",style:"https://libs.outbrain.com/video/outbrain-media-player/current/omp.min.css"},staging:{adBlockerDetection:"https://libs.outbrain.com/video/outbrain-media-player/staging/ads.min.js",style:"https://libs.outbrain.com/video/outbrain-media-player/staging/omp.min.css"},dev:{adBlockerDetection:"https://localhost:8086/ads.js",style:"https://localhost:8086/omp.css"},omidPartnerName:"outbrain",omidPartnerVersion:"0.0.0"}},4:function(e,t,i){"use strict";i.r(t),i.d(t,{DisableIndirectDemandOptions:function(){return o}});var s=i(658),n=i(182),r=i(711);class a{constructor(e){if(this.id=e,this.env="prod",this.mobile=!1,this.opaAds=[],this.vastXML=null,this.eventTrackers=null,this.container=null,this.video=null,this.seek=!1,this.shouldTrackMoat=!1,this.options=null,this.adBlocker=!1,this.resizeId=0,this.maxRetries=3,this.currentOpaVideoData=null,this.opaCallRestDuration=5,this.videoAdsLookupTimeout=null,this.isDestroyed=!1,this.opaSupply=null,this.wasm={active:!1,url:"https://localhost:8084/outbrain-media-player/wasm/vast.js"},this.elements={container:{elm:null,className:"omp-full"},parser:{id:"omp-parser"},interpreter:{id:"omp-vast"}},this.events={resize:this.onResize.bind(this)},!this.id)return this.onError(new Error("Invalid ID attribute provided"))}init(e){return console.debug("OMP init: "+Date.now()),this.env=e.env?e.env:"prod",this.options=e,2===e.vidgetVersion&&e.requestParams?(this.maxRetries=e.maxRetries||3,this.allowedFailedRetriesStreak=e.failedRetriesStreak||0,this.failedRetriesStreak=0,this.opaCallRestDuration=1e3*(e.opaCallRestDuration||this.opaCallRestDuration),this.setPlayerContainer(),this.searchForVideoAds()):this.initVideoAd(e)}initVideoAd(e){if(!e.hasOwnProperty("vastXML"))throw new Error("Invalid vast xml source");if(this.isIndirectDemandBlocked(this.options.disableVideoIndirectDemand)&&a.isIndirectDemand(e))throw console.error("indirect demand ad blocked"),new Error("indirect demand ad blocked");return new Promise((t=>{s.default.waterfall([this.setPlayerContainer],this).catch(this.onError.bind(this)).then((()=>{this.currentOpaVideoData=e,this.mobile=this.options.hasOwnProperty("mobile")?this.options.mobile:this.isMobile(),this.container.classList.add(this.mobile?"omp-mobile":"omp-desktop"),this.vastXML=e.vastXML,this.seek=this.options.seek||!1,this.eventTrackers=e.eventTrackers||{},this.shouldTrackMoat=this.options.trackMoat||!1,this.setDefaultOpts(),this.setCustomOpts(),this.options.hasOwnProperty("promisedInit")&&this.options.promisedInit&&this.elements.container.elm.addEventListener("ready",(()=>{t("ready-promise")}));if(document.getElementById(this.elements.parser.id)){const t="video";i(563)(`./${t}`).then((t=>{this.video=new t(this,e)}))}else s.default.waterfall([this.insertWasm,this.detectAdBlocker,this.insertVideoTag],this).catch(this.onError.bind(this));window.addEventListener("resize",this.events.resize),this.options.promisedInit||t(!0)}))}))}async searchForVideoAds(){if(2===this.options.vidgetVersion&&!this.isDestroyed){if(!this.opaSupply){const{OpaSupply:e}=await Promise.all([i.e(330),i.e(252)]).then(i.bind(i,252));this.opaSupply=new e}if(0===this.maxRetries||this.allowedFailedRetriesStreak&&this.failedRetriesStreak>=this.allowedFailedRetriesStreak)this.onAdLookupExhausted();else if(this.maxRetries--,this.opaAds.length>0){const e=this.opaAds.shift();await this.initVideoAd(e)}else this.opaSupply.initOpaVideoCall(this.options).then((e=>{if(this.failedRetriesStreak=0,this.options.firstAuctionVideo=null,Array.isArray(e)&&e.length>0){const t=e.shift();this.initVideoAd(t),e.forEach((e=>this.opaAds.push(e)))}})).catch((e=>{"no doc content"===e?.errorMsg&&this.failedRetriesStreak++,this.options.firstAuctionVideo=null,this.onError(e),this.videoAdsLookupTimeout=setTimeout((()=>{this.searchForVideoAds()}),this.opaCallRestDuration)}))}}updateMacros(e){try{this.video.interpreter.updateMacros(e)}catch(e){}}setPlayerContainer(){if(null==this.container)if(this.container=this.options.playerElement||document.getElementById(this.id),this.elements.container.elm=this.container,this.container){const e=document.getElementsByTagName("head")[0];if(!document.getElementById("omp-style")){const t=document.createElement("link");t.href=n.Z[this.env].style,t.id="omp-style",t.rel="stylesheet",t.type="text/css",e.appendChild(t)}this.container.classList.add("omp")}else this.onError(new Error(`Cannot retrieve DOM element with ID ${this.id}`))}isMobile(){return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))}isIndirectDemandBlocked(e){return[o.BLOCK_INDIRECT].includes(e)}setDefaultOpts(){this.options.hasOwnProperty("controlsDelay")||(this.options.controlsDelay=1500),this.options.hasOwnProperty("twoStepsLoad")||(this.options.twoStepsLoad=!1),this.options.autoplay&&(this.options.twoStepsLoad=!1)}setCustomOpts(){this.options.relativeSize&&this.container.classList.add(this.elements.container.className)}insertWasm(){return new Promise(((e,t)=>{if(this.wasm.active){document.getElementsByTagName("head")[0];document.createElement("script").src=this.wasm.url}else e(!0)}))}detectAdBlocker(){return new Promise((e=>{if(this.options.adBlockerDetection&&!document.getElementById("obad")){const t=document.getElementsByTagName("body")[0],i=document.createElement("script");i.id="obad",i.src=n.Z[this.env].adBlockerDetection;const s=setTimeout((()=>{const t=document.getElementById("iSsVFRmjlhBx");t?t.parentNode.removeChild(t):(this.adBlocker=!0,console.log("Adblocker detected")),e(!0)}),6e3);i.onload=()=>{clearTimeout(s),this.adBlocker=!1;const t=document.getElementById("iSsVFRmjlhBx");t&&t.parentNode.removeChild(t),e(!0)},t.appendChild(i)}else e(!0)}))}async insertVideoTag(){const{Video:e}=await Promise.all([i.e(330),i.e(791)]).then(i.bind(i,258));this.adBlocker||(this.video=new e(this,this.currentOpaVideoData))}onResize(e){this.resizeId&&clearTimeout(this.resizeId),this.resizeId=setTimeout((()=>{this.resize()}),200)}play(){this.video.play()}pause(){this.video.pause()}resume(){this.video.resume()}stop(){this.video.stop()}skipAd(){this.lookForNextVideo();const e=new CustomEvent("adskipped",{bubbles:!1,cancelable:!0});this.container.dispatchEvent(e)}lookForNextVideo(){setTimeout((()=>{this.video.destroy(),this.searchForVideoAds()}))}static isIndirectDemand(e){return parseInt(e?.dealId??"-1")<1}stopAds(){this.video.stop()}displayThumbnail(){this.video.displayThumbnail()}resize(e,t){e&&t?this.video.resize(e,t):this.video.resize(this.container.offsetWidth,this.container.offsetHeight)}setMute(e){this.video.setMute(e)}setVideoMute(e){this.video.setVideoMute(e)}setControls(e){this.video.setControls(e)}destroy(){this.video&&this.video.destroy(),this.isDestroyed=!0,clearTimeout(this.videoAdsLookupTimeout)}mute(){this.video.setMute(!0)}unmute(){this.video.setMute(!1)}isMuted(){return this.video.isMuted()}getVolume(){return this.video.getVolume()}getAdPaused(){return this.video.getAdPaused()}getAdErrorCode(){return this.video.getAdErrorCode()}getAdErrorMessage(){return this.video.getAdErrorMessage()}getAdSystem(){return this.video.getAdSystem()}getVideoBitrate(){return this.video.getVideoBitrate()}getAdMediaBitrateArray(){return this.video.getAdMediaBitrateArray()}getHeavyAdStatus(){return this.video.getHeavyAdStatus()}getAdMediaHeight(){return this.video.getAdMediaHeight()}getAdMediaWidth(){return this.video.getAdMediaWidth()}getAdMediaUrl(){return this.video.getAdMediaUrl()}getAdTagUrl(){return this.video.getAdTagUrl()}getAdDuration(){return this.video?1e3*this.video.getAdDuration():0}getAdCurrentTime(){return this.video?1e3*this.video.getAdCurrentTime():0}getDuration(){return 1e3*this.video.duration}getAdUnit(){return this.video.interpreter.adUnit}getAdMedias(){return this.video.parser.medias}getAdDeliveryType(){return this.video.getAdDeliveryType()}getVastWidth(){return this.video?this.video.getVastWidth():0}getVastHeight(){return this.video?this.video.getVastHeight():0}getVideoClickThroughURL(){return this.video.getVideoClickThroughURL()}getVideoClickTrackingURL(){return this.video.getVideoClickTrackingURL()}getCompanionAds(){return this.video.getCompanionAds()}getVolumeState(){return this.video.getVolumeState()}async onError(e){if(e.errorMsg===r.VPAID_REJECTED_ERROR_MSG)return console.info("indirect vpaid blocked"),void await this.lookForNextVideo();const t=this.getVastAdId(this.vastXML),i={...e,errorMsg:`${e.errorMsg}, adId: ${t}`},s=new CustomEvent("playererror",{detail:i,bubbles:!1,cancelable:!0});this.container.dispatchEvent(s)}onAdLookupExhausted(){const e=new CustomEvent("adLookupExhausted",{bubbles:!1,cancelable:!0});(this.container||this.options.playerElement).dispatchEvent(e)}notifyVideoHasBeenRendered(e){this.video.notifyVideoHasBeenRendered(e)}getVastAdId(e){const t=e?.match(/<\/OpaAdId>/);if(t)return t[1];const i=e?.match(/e.then(t?i.bind(t):i)),Promise.resolve())}static getElement(e,t){const i=(e,t)=>{const s=Object.keys(t);let n=null;if(s.indexOf(e)>=0)return t[e];{let r=s.length;for(;r--;)if(t[s[r]]&&"object"==typeof t[s[r]]&&"elm"!==s[r]&&(n=i(e,t[s[r]]),n))return n}return n};return i(e,t)}static humanTime(e){const t=new Date(null);return t.setSeconds(e),t.toISOString().substr(14,5)}}},711:function(e,t,i){"use strict";i.r(t),i.d(t,{VPAID_REJECTED_ERROR_MSG:function(){return j},Vpaid:function(){return z}});var s=["handshakeVersion","initAd","startAd","stopAd","skipAd","resizeAd","pauseAd","resumeAd","expandAd","collapseAd","subscribe","unsubscribe"];function n(e,t,i){}n.prototype.handshakeVersion=function(e,t){},n.prototype.initAd=function(e,t,i,s,n,r,a){},n.prototype.startAd=function(e){},n.prototype.stopAd=function(e){},n.prototype.skipAd=function(e){},n.prototype.resizeAd=function(e,t,i,s){},n.prototype.pauseAd=function(e){},n.prototype.resumeAd=function(e){},n.prototype.expandAd=function(e){},n.prototype.collapseAd=function(e){},n.prototype.subscribe=function(e,t,i){},n.prototype.unsubscribe=function(e,t){},n.prototype.getAdLinear=function(e){},n.prototype.getAdWidth=function(e){},n.prototype.getAdHeight=function(e){},n.prototype.getAdExpanded=function(e){},n.prototype.getAdSkippableState=function(e){},n.prototype.getAdRemainingTime=function(e){},n.prototype.getAdDuration=function(e){},n.prototype.getAdVolume=function(e){},n.prototype.getAdCompanions=function(e){},n.prototype.getAdIcons=function(e){},n.prototype.setAdVolume=function(e,t){},o(n,"METHODS",s),o(n,"GETTERS",["getAdLinear","getAdWidth","getAdHeight","getAdExpanded","getAdSkippableState","getAdRemainingTime","getAdDuration","getAdVolume","getAdCompanions","getAdIcons"]),o(n,"SETTERS",["setAdVolume"]),o(n,"EVENTS",["AdLoaded","AdStarted","AdStopped","AdSkipped","AdSkippableStateChange","AdSizeChange","AdLinearChange","AdDurationChange","AdExpandedChange","AdRemainingTimeChange","AdVolumeChange","AdImpression","AdVideoStart","AdVideoFirstQuartile","AdVideoMidpoint","AdVideoThirdQuartile","AdVideoComplete","AdClickThru","AdInteraction","AdUserAcceptInvitation","AdUserMinimize","AdUserClose","AdPaused","AdPlaying","AdLog","AdError"]);var r=s.filter((function(e){return-1===["skipAd"].indexOf(e)}));o(n,"checkVPAIDInterface",(function(e){return r.every((function(t){return"function"==typeof e[t]}))}));var a=n;function o(e,t,i){Object.defineProperty(e,t,{writable:!1,configurable:!1,value:i})}function d(){this._subscribers={}}d.prototype.subscribe=function(e,t,i){this.isHandlerAttached(e,t)||this.get(t).push({handler:e,context:i,eventName:t})},d.prototype.unsubscribe=function(e,t){this._subscribers[t]=this.get(t).filter((function(t){return e!==t.handler}))},d.prototype.unsubscribeAll=function(){this._subscribers={}},d.prototype.trigger=function(e,t){var i=this;this.get(e).concat(this.get("*")).forEach((function(e){setTimeout((function(){i.isHandlerAttached(e.handler,e.eventName)&&e.handler.call(e.context,t)}),0)}))},d.prototype.triggerSync=function(e,t){this.get(e).concat(this.get("*")).forEach((function(e){e.handler.call(e.context,t)}))},d.prototype.get=function(e){return this._subscribers[e]||(this._subscribers[e]=[]),this._subscribers[e]},d.prototype.isHandlerAttached=function(e,t){return this.get(t).some((function(t){return e===t.handler}))};var l=d;function c(){}function h(e,t){return e?null:new Error(t)}function u(e,t,i){var s,n,r,a=function(e,t,i){var s=document.createElement("iframe");s.src=t||"about:blank",s.marginWidth="0",s.marginHeight="0",s.frameBorder="0",s.width="100%",s.height="100%",p(s),i&&(s.style.zIndex=i);return s.setAttribute("SCROLLING","NO"),e.innerHTML="",e.appendChild(s),s}(e,null,i.zIndex);if(s=a,n=function(e,t){return Object.keys(t).forEach((function(i){var s="object"==typeof s?JSON.stringify(t[i]):t[i];e=e.replace(new RegExp("{{"+i+"}}","g"),s)})),e}(t,i),(r=s.contentWindow&&s.contentWindow.document)&&(r.write(n),1))return a}function p(e){e&&(e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.margin="0px",e.style.padding="0px",e.style.border="none",e.style.width="100%",e.style.height="100%")}function m(e,t){return Object.keys(t).forEach((function(i){e[i]=t[i]})),e}var v=a.checkVPAIDInterface,g=(a.METHODS,"AdClickThru"),b=a.EVENTS.filter((function(e){return e!=g}));function f(e,t,i,s){this._isValid=v(e),this._isValid&&(this._creative=e,this._el=t,this._videoEl=i,this._iframe=s,this._subscribers=new l,p(t),y.call(this))}function y(){if(b.forEach(function(e){this._creative.subscribe(A.bind(this,e),e)}.bind(this)),this._creative.subscribe(E.bind(this),g),this._videoEl){var e=this._iframe.contentDocument.documentElement,t=this._videoEl;e.addEventListener("click",(function(i){i.target===e&&t.click()}))}}function E(e,t,i,s){this._subscribers.triggerSync(g,{url:e,id:t,playerHandles:i,description:s})}function A(e,...t){this._subscribers.trigger(e,t)}function k(e,t,i,s){e?e(i,s):i&&t.trigger("AdError",i)}f.prototype=Object.create(a.prototype),f.prototype.isValidVPAIDAd=function(){return this._isValid},a.METHODS.forEach((function(e){-1===["subscribe","unsubscribe","initAd"].indexOf(e)&&(f.prototype[e]=function(){var t=a.prototype[e].length,i=Array.prototype.slice.call(arguments),s=t===i.length?i.pop():void 0;setTimeout(function(){let t,n=null;try{t=this._creative[e].apply(this._creative,i)}catch(e){n=e}k(s,this._subscribers,n,t)}.bind(this),0)})})),f.prototype.initAd=function(e,t,i,s,n,r,a){n=n||{},r=m({slot:this._el,videoSlot:this._videoEl},r||{}),setTimeout(function(){let o;try{this._creative.initAd(e,t,i,s,n,r)}catch(e){o=e}k(a,this._subscribers,o)}.bind(this),0)},f.prototype.subscribe=function(e,t,i){this._subscribers.subscribe(t,e,i)},f.prototype.unsubscribe=function(e,t){this._subscribers.unsubscribe(t,e)},f.prototype.on=f.prototype.subscribe,f.prototype.off=f.prototype.unsubscribe,a.GETTERS.forEach((function(e){f.prototype[e]=function(t){setTimeout(function(){let i,s=null;try{i=this._creative[e]()}catch(e){s=e}k(t,this._subscribers,s,i)}.bind(this),0)}})),f.prototype.setAdVolume=function(e,t){setTimeout(function(){var i,s=null;try{this._creative.setAdVolume(e),i=this._creative.getAdVolume()}catch(e){s=e}setTimeout((()=>{s||(s=h(i===e,"failed to apply volume: "+e)),k(t,this._subscribers,s,i)}),200)}.bind(this),0)},f.prototype._destroy=function(){this.stopAd(),this._subscribers.unsubscribeAll()};var w,_,C=f,D=(w="vpaidIframe",_=-1,function(){return w+"_"+ ++_});function I(e,t,i,s){var n,r,a,o;i=i||{},this._id=D(),this._destroyed=!1,this._frameContainer=(n=e,r="div",o=document.createElement(r),a&&(o.id=a),n.appendChild(o),o),this._videoEl=t,this._vpaidOptions=s||{timeout:1e4},this._templateConfig={template:i.template||'