‘);t.insertAdjacentHTML(n,o)}return document.getElementById(e)},n.prototype._repeatDynamicAds=function(e){for(var n=[],i=e.lazy?t(this.locationMaxLazySequence.get(e.location),0):0,r=e.max,a=e.lazyMax,l=0===i&&e.lazy?r+a:Math.min(Math.max(i-e.sequence+1,0),r+a),s=Math.max(r,l),c=0;c=r;n.push(o(o({},e),{sequence:d,lazy:u}))}return n},n.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},n}();!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”}(M||(M={})),function(t){t.StickySekindo=”stickySekindo”,t.StaticSekindo=”staticSekindo”,t.None=”none”}(C||(C={}));var j,x=function(t){function e(){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 i(e,t),Object.defineProperty(e.prototype,”result”,{get:function(){return this._result},enumerable:!1,configurable:!0}),e.prototype.run=function(){return new m(.05).get()},e}(_),R=function(t){function e(e,n){var i=t.call(this,e,(new x).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 i(e,t),e.prototype.init=function(){this._initializePlayers()},e.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)}},e.prototype._createSekindoCLSWrapper=function(t,e){var n=this._getTitleHeight(document.createElement(“h4”));return this._createGenericCLSWrapper(t,e,n)},e.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},e.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)},e.prototype._initializePlayers=function(){var t=document.querySelectorAll(this._IN_POST_SELECTOR);t.length&&this._initializeRelatedPlayers(t),this._shouldRunAutoplayPlayers()&&this._determineAutoplayPlayers()},e.prototype._createStationaryRelatedPlayer=function(t,e){this._device,M.Video_In_Post_ClicktoPlay_SoundOn,e&&t.mediaId&&(this._wrapJWPlayerWithCLS(e,t.mediaId),this._playersAddedFromPlugin.push(t.mediaId))},e.prototype._createStickyRelatedPlayer=function(t,e){if(this._device,M.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)}},e.prototype._createSekindoPlayer=function(t,e){var n=t.playlistId;o(o({},t),{classNames:[]});var i=”mobile”===this._device?{width:340,height:260}:{width:320,height:250},r=this._createSekindoCLSWrapper(i.height,n);e.insertAdjacentElement(t.position,r),this._playersAddedFromPlugin.push(n)},e.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))},e.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},e}(function(t){function e(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=c()?”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 i(e,t),e.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]||(v.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},e.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}},e.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},e.prototype._shouldOverrideElement=function(t){var e=t.getAttribute(“override-embed”);return”true”===e||”false”===e?”true”===e:!!this._videoConfig.contextualSettings&&this._videoConfig.contextualSettings.overrideEmbedLocation},e.prototype._getPlacementElement=function(t){var e=u(t.pageSelector),n=d(t.elementSelector);return e.valid?t.pageSelector&&!e.elements.length?(v.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]:(v.event(“VideoUtils”,”getPlacementElement”,new Error(“ESNF: “.concat(t.elementSelector,” does not exist on the page”))),null):null:null},e.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},e.prototype._getUnusedMediaId=function(t){var e=t.getAttribute(“data-video-id”);return!(!e||this._contextualMediaIds.includes(e))&&(this._contextualMediaIds.push(e),e)},e.prototype._createRelatedPlayer=function(t,e,n){“collapse”===e?this._createCollapsePlayer(t,n):”static”===e&&this._createStaticPlayer(t,n)},e.prototype._createCollapsePlayer=function(t,e){var n=this._checkPlayerSelectorOnPage(“stickyRelated”),i=n.player,r=n.playerElement,a=i||this._potentialPlayerMap.stationaryRelated[0];a&&a.playerId&&(this._shouldOverrideElement(e)&&(e=this._getOverrideElement(i,r,e)),e=document.querySelector(“#cls-video-container-“.concat(t,” > div”))||e,this._createStickyRelatedPlayer(o(o({},a),{mediaId:t}),e))},e.prototype._createStaticPlayer=function(t,e){if(this._potentialPlayerMap.stationaryRelated.length&&this._potentialPlayerMap.stationaryRelated[0].playerId){var n=this._potentialPlayerMap.stationaryRelated[0];this._createStationaryRelatedPlayer(o(o({},n),{mediaId:t}),e)}},e.prototype._shouldRunAutoplayPlayers=function(){return!(!this._isVideoAllowedOnPage()||!(this._potentialPlayerMap.stickyRelated.length||this._potentialPlayerMap.stickyPlaylist.length||this._potentialPlayerMap.sekindo.length))},e.prototype._determineAutoplayPlayers=function(){var t=this._component,e=”VideoManagerComponent”===t,n=this._config;if(this._stickyRelatedOnPage)v.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):v.event(t,”noStickyPlaylistOrSekindo”,e&&{vendor:”none”,device:n&&n.context.device,isDesktop:this._device}||{})}},e.prototype._initializeRelatedPlayers=function(t){for(var e=0;e