‘);t.insertAdjacentHTML(n,o)}return document.getElementById(e)},t.prototype._repeatDynamicAds=function(t){for(var e=[],i=t.lazy?s(this.locationMaxLazySequence.get(t.location),0):0,o=t.max,r=t.lazyMax,a=0===i&&t.lazy?o+r:Math.min(Math.max(i-t.sequence+1,0),o+r),l=Math.max(o,a),c=0;c=o;e.push(n(n({},t),{sequence:u,lazy:d}))}return e},t.prototype._locationEnabled=function(t){var e=this._clsOptions.enabledLocations.includes(t.location),n=this._clsOptions.disableAds&&this._clsOptions.disableAds.all||document.body.classList.contains(“adthrive-disable-all”),i=!document.body.classList.contains(“adthrive-disable-content”)&&!this._clsOptions.disableAds.reasons.has(“content_plugin”);return e&&!n&&i},t}();!function(t){t.Video_Collapse_Autoplay_SoundOff=”Video_Collapse_Autoplay_SoundOff”,t.Video_Individual_Autoplay_SOff=”Video_Individual_Autoplay_SOff”,t.Video_Coll_SOff_Smartphone=”Video_Coll_SOff_Smartphone”,t.Video_In_Post_ClicktoPlay_SoundOn=”Video_In-Post_ClicktoPlay_SoundOn”}(A||(A={})),function(t){t.StickySekindo=”stickySekindo”,t.StaticSekindo=”staticSekindo”,t.None=”none”}(E||(E={}));var x,R=function(t){function n(){var e=t.call(this)||this;return e.key=”sekho”,e._result=!1,e._choices=[{choice:!0},{choice:!1}],e._result=e.run(),e.setExperimentKey(),e}return e(n,t),Object.defineProperty(n.prototype,”result”,{get:function(){return this._result},enumerable:!1,configurable:!0}),n.prototype.run=function(){return new l(.05).get()},n}(y),T=function(t){function i(e,n){var i=t.call(this,e,(new R).result,”ClsVideoInsertion”)||this;return i._videoConfig=e,i._clsOptions=n,i._IN_POST_SELECTOR=”.adthrive-video-player”,i._WRAPPER_BAR_HEIGHT=36,i._playersAddedFromPlugin=[],i}return e(i,t),i.prototype.init=function(){this._initializePlayers()},i.prototype._wrapJWPlayerWithCLS=function(t,e,n){if(void 0===n&&(n=0),t.parentNode){var i=t.offsetWidth*(9/16),o=this._createGenericCLSWrapper(i,e,n);t.parentNode.insertBefore(o,t),o.appendChild(t)}},i.prototype._createSekindoCLSWrapper=function(t,e){var n=this._getTitleHeight(document.createElement(“h4”));return this._createGenericCLSWrapper(t,e,n)},i.prototype._createGenericCLSWrapper=function(t,e,n){var i=document.createElement(“div”);return i.id=”cls-video-container-“.concat(e),i.className=”adthrive”,i.style.minHeight=””.concat(t+n,”px”),i},i.prototype._getTitleHeight=function(t){t.innerText=”Title”,t.style.visibility=”hidden”,document.body.appendChild(t);var e=window.getComputedStyle(t),n=parseInt(e.height,10),i=parseInt(e.marginTop,10),o=parseInt(e.marginBottom,10);return document.body.removeChild(t),Math.min(n+o+i,50)},i.prototype._initializePlayers=function(){var t=document.querySelectorAll(this._IN_POST_SELECTOR);t.length&&this._initializeRelatedPlayers(t),this._shouldRunAutoplayPlayers()&&this._determineAutoplayPlayers()},i.prototype._createStationaryRelatedPlayer=function(t,e){this._device,A.Video_In_Post_ClicktoPlay_SoundOn,e&&t.mediaId&&(this._wrapJWPlayerWithCLS(e,t.mediaId),this._playersAddedFromPlugin.push(t.mediaId))},i.prototype._createStickyRelatedPlayer=function(t,e){if(this._device,A.Video_Individual_Autoplay_SOff,this._stickyRelatedOnPage=!0,this._videoConfig.mobileStickyPlayerOnPage=”mobile”===this._device,e&&t.position&&t.mediaId){var n=document.createElement(“div”);e.insertAdjacentElement(t.position,n);var i=document.createElement(“h3″);i.style.margin=”10px 0”;var o=this._getTitleHeight(i);this._wrapJWPlayerWithCLS(n,t.mediaId,this._WRAPPER_BAR_HEIGHT+o),this._playersAddedFromPlugin.push(t.mediaId)}},i.prototype._createSekindoPlayer=function(t,e){var i=t.playlistId;n(n({},t),{classNames:[]});var o=”mobile”===this._device?{width:340,height:260}:{width:320,height:250},r=this._createSekindoCLSWrapper(o.height,i);e.insertAdjacentElement(t.position,r),this._playersAddedFromPlugin.push(i)},i.prototype._createPlaylistPlayer=function(t,e){var n=t.playlistId;this._videoConfig.mobileStickyPlayerOnPage=!0;var i=document.createElement(“div”);e.insertAdjacentElement(t.position,i),this._wrapJWPlayerWithCLS(i,n,this._WRAPPER_BAR_HEIGHT),this._playersAddedFromPlugin.push(“playlist-“.concat(n))},i.prototype._isVideoAllowedOnPage=function(){var t=this._clsOptions.disableAds;return t&&t.video?(t.reasons.has(“video_tag”)||t.reasons.has(“video_plugin”)||t.reasons.has(“video_page”),!1):!this._clsOptions.videoDisabledFromPlugin},i}(function(t){function i(e,n,i){var o=t.call(this)||this;o._videoConfig=e,o._component=i,o._stickyRelatedOnPage=!1,o._contextualMediaIds=[];var r=o._videoConfig.players||[];o._device=u()?”desktop”:”mobile”,o._potentialPlayerMap=o._setPotentialPlayerMap(n);var a=r.filter((function(t){return”stationaryRelated”===t.type&&t.enabled}));return o._potentialPlayerMap.stationaryRelated=a,o}return e(i,t),i.prototype._setPotentialPlayerMap=function(t){var e=this,n=this._videoConfig.players,i={stickyRelated:[],stickyPlaylist:[],sekindo:[],stationaryRelated:[]};return n&&n.length?n.filter((function(t){var n;return null===(n=t.devices)||void 0===n?void 0:n.includes(e._device)})).reduce((function(n,i){return n[i.type]||(m.event(e._component,”constructor”,”Unknown Video Player Type detected”,i.type),n[i.type]=[]),i.enabled&&(t&&”sekindo”===i.type||n[i.type].push(i)),n}),i):i},i.prototype._checkPlayerSelectorOnPage=function(t){var e=this,n=this._potentialPlayerMap[t].map((function(t){return{player:t,playerElement:e._getPlacementElement(t)}}));return n.length?n[0]:{player:null,playerElement:null}},i.prototype._getOverrideElement=function(t,e,n){if(t&&e){var i=document.createElement(“div”);e.insertAdjacentElement(t.position,i),n=i}else{var o=this._checkPlayerSelectorOnPage(“stickyPlaylist”),r=o.player,a=o.playerElement;if(r&&a){i=document.createElement(“div”);a.insertAdjacentElement(r.position,i),n=i}}return n},i.prototype._shouldOverrideElement=function(t){var e=t.getAttribute(“override-embed”);return”true”===e||”false”===e?”true”===e:!!this._videoConfig.contextualSettings&&this._videoConfig.contextualSettings.overrideEmbedLocation},i.prototype._getPlacementElement=function(t){var e=p(t.pageSelector),n=d(t.elementSelector);return e.valid?t.pageSelector&&!e.elements.length?(m.event(“VideoUtils”,”getPlacementElement”,new Error(“PSNF: “.concat(t.pageSelector,” does not exist on the page”))),null):n.valid?n.elements.length>t.skip?n.elements[t.skip]:(m.event(“VideoUtils”,”getPlacementElement”,new Error(“ESNF: “.concat(t.elementSelector,” does not exist on the page”))),null):null:null},i.prototype._getEmbeddedPlayerType=function(t){var e=t.getAttribute(“data-player-type”);return e&&”default”!==e||(e=this._videoConfig.contextualSettings?this._videoConfig.contextualSettings.defaultPlayerType:”static”),this._stickyRelatedOnPage&&(e=”static”),e},i.prototype._getUnusedMediaId=function(t){var e=t.getAttribute(“data-video-id”);return!(!e||this._contextualMediaIds.includes(e))&&(this._contextualMediaIds.push(e),e)},i.prototype._createRelatedPlayer=function(t,e,n){“collapse”===e?this._createCollapsePlayer(t,n):”static”===e&&this._createStaticPlayer(t,n)},i.prototype._createCollapsePlayer=function(t,e){var i=this._checkPlayerSelectorOnPage(“stickyRelated”),o=i.player,r=i.playerElement,a=o||this._potentialPlayerMap.stationaryRelated[0];a&&a.playerId&&(this._shouldOverrideElement(e)&&(e=this._getOverrideElement(o,r,e)),e=document.querySelector(“#cls-video-container-“.concat(t,” > div”))||e,this._createStickyRelatedPlayer(n(n({},a),{mediaId:t}),e))},i.prototype._createStaticPlayer=function(t,e){if(this._potentialPlayerMap.stationaryRelated.length&&this._potentialPlayerMap.stationaryRelated[0].playerId){var i=this._potentialPlayerMap.stationaryRelated[0];this._createStationaryRelatedPlayer(n(n({},i),{mediaId:t}),e)}},i.prototype._shouldRunAutoplayPlayers=function(){return!(!this._isVideoAllowedOnPage()||!(this._potentialPlayerMap.stickyRelated.length||this._potentialPlayerMap.stickyPlaylist.length||this._potentialPlayerMap.sekindo.length))},i.prototype._determineAutoplayPlayers=function(){var t=this._component,e=”VideoManagerComponent”===t,n=this._config;if(this._stickyRelatedOnPage)m.event(t,”stickyRelatedOnPage”,e&&{device:n&&n.context.device,isDesktop:this._device}||{});else{var i=this._checkPlayerSelectorOnPage(“stickyPlaylist”),o=i.player,r=i.playerElement,a=this._checkPlayerSelectorOnPage(“sekindo”),l=a.player,s=a.playerElement;o&&o.playerId&&o.playlistId&&r?this._createPlaylistPlayer(o,r):l&&l.playlistId&&s?this._createSekindoPlayer(l,s):m.event(t,”noStickyPlaylistOrSekindo”,e&&{vendor:”none”,device:n&&n.context.device,isDesktop:this._device}||{})}},i.prototype._initializeRelatedPlayers=function(t){for(var e=0;e