PageSourceSearch

https://www.tvagder.no/_next/static/chunks/7496.46830c8d59770e1d.js

js tvagder.no collected 2026-10-04 17:01:19 UTC 103,365 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7496],{13810:()=>{},28311:(t,e,n)=>{"use strict";n.d(e,{A:()=>tl});var i,r=n(30778),o=n(71092),a=n.n(o),s=n(69417),d=n.n(s),l="7.5.2",c=function(t,e){e.isImmediatePropagationStopped=function(){return!0},e.cancelBubble=!0,e.isPropagationStopped=function(){return!0}},u=function(t,e,n){c(t,n),t.trigger({type:e+n.type,originalEvent:n})},h=function(t,e){t.ads.isInAdMode()&&(t.ads.isContentResuming()?t.ads._contentEnding&&u(t,"content",e):u(t,"ad",e))},A=function(t,e){t.ads.isInAdMode()?t.ads.isContentResuming()?(c(t,e),t.trigger("resumeended")):u(t,"ad",e):t.ads._contentHasEnded||t.ads.stitchedAds()||(u(t,"content",e),t.trigger("readyforpostroll"))},p=function(t,e){if(("loadstart"!==e.type||t.ads._hasThereBeenALoadStartDuringPlayerLife)&&("loadeddata"!==e.type||t.ads._hasThereBeenALoadedData)&&("loadedmetadata"!==e.type||t.ads._hasThereBeenALoadedMetaData))if(t.ads.inAdBreak())u(t,"ad",e);else{if(t.currentSrc()!==t.ads.contentSrc)return;u(t,"content",e)}},y=function(t,e){t.ads.inAdBreak()?u(t,"ad",e):t.ads.isContentResuming()&&u(t,"content",e)};function g(t){"playing"===t.type?h(this,t):"ended"===t.type?A(this,t):"loadstart"===t.type||"loadeddata"===t.type||"loadedmetadata"===t.type?p(this,t):"play"===t.type?y(this,t):this.ads.isInAdMode()&&(this.ads.isContentResuming()?u(this,"content",t):u(this,"ad",t))}function f(){return(f=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function v(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,m(t,e)}function m(t,e){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var P={},b=function(t){if(r.A.dom.isInFrame()&&"function"!=typeof a().__tcfapi){for(var e,n=a(),i={};n;){try{if(n.frames.__tcfapiLocator){e=n;break}}catch(t){}if(n===a().top)break;n=n.parent}e&&(a().__tcfapi=function(t,n,r,o){var a=Math.random()+"";i[a]=r,e.postMessage({__tcfapiCall:{command:t,parameter:o,version:n,callId:a}},"*")},a().addEventListener("message",function(t){var e={};try{e="string"==typeof t.data?JSON.parse(t.data):t.data}catch(t){}var n=e.__tcfapiReturn;n&&"function"==typeof i[n.callId]&&(i[n.callId](n.returnValue,n.success),i[n.callId]=null)},!1))}},C=function(){b(),"function"==typeof a().__tcfapi&&a().__tcfapi("addEventListener",2,function(t,e){e&&(P=t)})},S=function(t){for(var e=t.parent;e!==t.top;){try{if(e.frames&&e.frames.__uspapiLocator)return e}catch(t){}e=e.parent}try{if(t.top.frames&&t.top.frames.__uspapiLocator)return t.top}catch(t){}return null},k="",E=function(t,e){if(void 0===e&&(e=a()),e.__uspapi)e.__uspapi("getUSPData",1,function(e,n){var i=n?e.uspString:null;k=i,t(i)});else{var n=S(e);if(!n)return void t(null);var i=Math.random().toString(36).substring(2);e.addEventListener("message",function n(r){if(r&&r.data&&r.data.__uspapiReturn&&r.data.__uspapiReturn.callId===i){e.removeEventListener("message",n,!1);var o=r.data.__uspapiReturn,a=o.returnValue,s=o.success?a.uspString:null;k=s,t(s)}},!1),n.postMessage({__uspapiCall:{command:"getUSPData",version:1,callId:i}},"*")}},w={AdsBeforePrerollError:"ads-before-preroll-error",AdsPrerollError:"ads-preroll-error",AdsMidrollError:"ads-midroll-error",AdsPostrollError:"ads-postroll-error",AdsMacroReplacementFailed:"ads-macro-replacement-failed",AdsResumeContentFailed:"ads-resume-content-failed"},T=function(t,e){return e?encodeURIComponent(t):t},M=function(t,e,n){if(t&&t[n])for(var i=t[n],r=Object.keys(i),o=0;o<r.length;o++)e["{mediainfo."+n+"."+r[o]+"}"]=i[r[o]]},I=function(t,e){var n={};return["description","tags","reference_id","ad_keys"].forEach(function(i){t&&t[i]?n["{mediainfo."+i+"}"]=t[i]:e["{mediainfo."+i+"}"]?n["{mediainfo."+i+"}"]=e["{mediainfo."+i+"}"]:n["{mediainfo."+i+"}"]=""}),["custom_fields","customFields"].forEach(function(e){M(t,n,e)}),n},R=function(t){var e={},n=t.replace(/{([^}=]+)=([^}]*)}/g,function(t,n,i){return e["{"+n+"}"]=i,"{"+n+"}"});return{defaults:e,modifiedString:n}},L=function(t){var e={};return Object.keys(t).forEach(function(n){e["{tcf."+n+"}"]=t[n]}),e["{tcf.gdprAppliesInt}
1"]=+!!t.gdprApplies,e},D=function(t,e,n){var i=RegExp("{pageVariable\\.([^}]+)}","g"),o={},s=(t.match(i)||[]).concat(Object.keys(n).filter(function(e){return i.test(e)&&t.includes(n[e])}));if(s)return s.forEach(function(t){for(var n,i=t.slice(14,-1),s=i.split("."),d=a(),l=0;l<s.length;l++)if(l===s.length-1)n=d[s[l]];else if(void 0===(d=d[s[l]]))break;var c=typeof n;null===n?o[t]="null":void 0===n?e[t]?o[t]=e[t]:(r.A.log.warn('Page variable "'+i+'" not found'),o[t]=""):"string"!==c&&"number"!==c&&"boolean"!==c?(r.A.log.warn('Page variable "'+i+'" is not a supported type'),o[t]=""):o[t]=n}),o},B=function(t,e,n,i,o){for(var a in void 0===i&&(i={}),e){var s=i.hasOwnProperty(a)?i[a]:a;if(s.startsWith("r:"))try{var d=RegExp(s.slice(2),"g");t=t.replace(d,T(e[a],n))}catch(t){o.ads.error({errorType:w.AdsMacroReplacementFailed,macro:a,error:t}),r.A.log.warn('Unable to replace macro with regex "'+s+'". The provided regex may be invalid.')}else t=t.split(s).join(T(e[a],n))}return t};function j(t,e,n){void 0===e&&(e=!1),void 0===n&&(n={});var i,o=n.disableDefaultMacros||!1,s=n.macroNameOverrides||{};delete n.disableDefaultMacros,delete n.macroNameOverrides;var l=n;if(o)return B(t,l,e,s);var c=R(t),u=c.defaults;for(var h in t=c.modifiedString,f(l,(i=this,{"{player.id}":i.options_["data-player"]||i.id_,"{player.height}":i.currentHeight(),"{player.width}":i.currentWidth(),"{player.heightInt}":Math.round(i.currentHeight()),"{player.widthInt}":Math.round(i.currentWidth()),"{player.autoplay}":+!!i.autoplay(),"{player.muted}":+!!i.muted(),"{player.language}":i.language()||"","{mediainfo.id}":i.mediainfo?i.mediainfo.id:"","{mediainfo.name}":i.mediainfo?i.mediainfo.name:"","{mediainfo.duration}":i.mediainfo?i.mediainfo.duration:"","{player.duration}":i.duration(),"{player.durationInt}":Math.round(i.duration()),"{player.live}":+(i.duration()===1/0),"{player.pageUrl}":r.A.dom.isInFrame()?d().referrer:a().location.href,"{playlistinfo.id}":i.playlistinfo?i.playlistinfo.id:"","{playlistinfo.name}":i.playlistinfo?i.playlistinfo.name:"","{timestamp}":new Date().getTime(),"{document.referrer}":d().referrer,"{window.location.href}":a().location.href,"{random}":Math.floor(1e12*Math.random())}),I(this.mediainfo,u),L(P),{"{usp.uspString}":k},D(t,u,s)),t=B(t,l,e,s,this),u)t=t.replace(h,u[h]);return t}var _={};_.processMetadataTracks=function(t,e){for(var n=t.textTracks(),i=function(n){"metadata"===n.kind&&(t.ads.cueTextTracks.setMetadataTrackMode(n),e(t,n))},r=0;r<n.length;r++)i(n[r]);n.addEventListener("addtrack",function(t){i(t.track)})},_.setMetadataTrackMode=function(t){},_.getSupportedAdCue=function(t,e){return e},_.isSupportedAdCue=function(t,e){return!0},_.getCueId=function(t,e){return e.id};var F=function(t,e){void 0!==e&&""!==e&&(t.ads.includedCues[e]=!0)};function N(){!1!==this.ads._shouldBlockPlay&&(this.paused()||(this.ads.debug("Playback was canceled by cancelContentPlay"),this.pause()),this.ads._cancelledPlay=!0)}_.processAdTrack=function(t,e,n,i){t.ads.includedCues={};for(var o=0;o<e.length;o++){var a=e[o],s=this.getSupportedAdCue(t,a);if(!this.isSupportedAdCue(t,a))return void r.A.log.warn("Skipping as this is not a supported ad cue.",a);var d=this.getCueId(t,a),l=a.startTime;if(void 0!==d&&t.ads.includedCues[d])return void r.A.log("Skipping ad already seen with ID "+d);i&&i(t,s,d,l),n(t,s,d,l),F(t,d)}};var W={},O=r.A;W.isMiddlewareMediatorSupported=function(){if(O.browser.IS_IOS||O.browser.IS_ANDROID);else if(O.use&&O.middleware&&O.middleware.TERMINATOR)return!0;return!1},W.playMiddleware=function(t){return{setSource:function(t,e){e(null,t)},callPlay:function(){if(t.ads&&!0===t.ads._shouldBlockPlay)return t.ads.debug("Using playMiddleware to block content playback"),t.ads._playBlocked=!0,O.middleware.TERMINATOR},play:function(e,n){t.ads&&t.ads._playBlocked&&e?(t.ads.debug("Play call to Tech was terminated."),t.trigger("play"),t.addClass("vjs-has-started"),t.ads._playBlocked=!1):n&&n.catch&&n.catch(function(e){"NotAllowedError"!==e.name||r.A.browser.IS_SAFARI||t.trigger("pause")})}}},W.testHook=function(t){O=t};var U=W.playMiddleware,x=W.isMiddlewareMediatorSupported,V={src:"data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAAAxJtZGF03ABMYXZjNjEuMy4xMDAAQiAIwRg4AAACrgYF//+q3EXpvebZSLeWLNgg2SPu73gyNjQgLSBjb3JlIDE2NCByMzEwOCAzMWUxOWY5IC0gSC4yNjQvTVBFRy00IEFWQyBjb2RlYyAtIENvcHlsZWZ0IDIwMDMtMjAyMyAtIGh0dHA6Ly93d3cudmlkZW9sYW4ub3JnL3gyNjQuaHRtbCAtIG9wdGlvbnM6IGNhYmFjPTEgcmVmPTMgZGVibG9jaz0xOjA6MCBhbmFseXNlPTB4MzoweDExMyBtZT1oZXggc3VibWU9NyBwc3k9MSBwc3lfcmQ9MS4wMDowLjAwIG1peGVkX3JlZj0xIG1lX3JhbmdlPTE2IGNocm9tYV9tZT0xIHRyZWxsaXM9MSA4eDhkY3Q9MSBjcW09MCBkZWFkem9uZT0yMSwxMSBmYXN0X3Bza2lwPTEgY2hyb21hX3FwX29mZnNldD0tMiB0aHJlYWRzPTcgbG9va2FoZWFkX3RocmVhZHM9MSBzbGljZWRfdGhyZWFkcz0wIG5yPTAgZGVjaW1hdGU9MSBpbnRlcmxhY2VkPTAgYmx1cmF5X2NvbXBhdD0wIGNvbnN0cmFpbmVkX2ludHJhPTAgYmZyYW1lcz0zIGJfcHlyYW1pZD0yIGJfYWRhcHQ9MSBiX2JpYXM9MCBkaXJlY3Q9MSB3ZWlnaHRiPTEgb3Blbl9nb3A9MCB3ZWlnaHRwPTIga2V5aW50PTI1MCBrZXlpbnRfbWluPTI1IHNjZW5lY3V0PTQwIGludHJhX3JlZnJlc2g9MCByY19sb29rYWhlYWQ9NDAgcmM9Y3JmIG1idHJlZT0xIGNyZj0yMy4wIHFjb21wPTAuNjAgcXBtaW49MCBxcG1heD02OSBxcHN0ZXA9NCBpcF9yYXRpbz0xLjQwIGFxPTE6MS4wMACAAAAAOWWIhAAn//71sXwKaunqigzoMi7hlyTJrrYi4m0AwABFxzcqWKGahTaoBcQAAMWK4AlcFlIICBeldSEQBGCMHAAABVNtb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAAIgABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAACQXRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAEAAAAAAAAAIgAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAABQAAAAPAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAACIAAAAAAAEAAAAAAbltZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAADwAAAACAFXEAAAAAAAtaGRscgAAAAAAAAAAdmlkZQAAAAAAAAAAAAAAAFZpZGVvSGFuZGxlcgAAAAFkbWluZgAAABR2bWhkAAAAAQAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAABJHN0YmwAAADAc3RzZAAAAAAAAAABAAAAsGF2YzEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAABQADwAEgAAABIAAAAAAAAAAEUTGF2YzYxLjMuMTAwIGxpYngyNjQAAAAAAAAAAAAAAAAY//8AAAA2YXZjQwFkAA3/4QAZZ2QADazZQUH7ARAAAAMAEAAAAwPA8UKZYAEABmjr48siwP34+AAAAAAQcGFzcAAAAAEAAAABAAAAFGJ0cnQAAAAAAALAEAACwBAAAAAYc3R0cwAAAAAAAAABAAAAAQAAAgAAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAEAAAABAAAAFHN0c3oAAAAAAAAC7wAAAAEAAAAUc3RjbwAAAAAAAAABAAAARQAAAj10cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAACAAAAAAAAABgAAAAAAAAAAAAAAAEBAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAAXAAAEAAABAAAAAAG1bWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAACsRAAACABVxAAAAAAALWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABTb3VuZEhhbmRsZXIAAAABYG1pbmYAAAAQc21oZAAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAABJHN0YmwAAAB+c3RzZAAAAAAAAAABAAAAbm1wNGEAAAAAAAAAAQAAAAAAAAAAAAIAEAAAAACsRAAAAAAANmVzZHMAAAAAA4CAgCUAAgAEgICAF0AVAAAAAAH0AAAAEisFgICABRIQVuUABoCAgAECAAAAFGJ0cnQAAAAAAAH0AAAAEisAAAAYc3R0cwAAAAAAAAABAAAAAgAABAAAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAEAAAABAAAAHHN0c3oAAAAAAAAAAAAAAAIAAAAVAAAABgAAABhzdGNvAAAAAAAAAAIAAAAwAAADNAAAABpzZ3BkAQAAAHJvbGwAAAACAAAAAf//AAAAHHNiZ3AAAAAAcm9sbAAAAAEAAAACAAAAAQAAAGF1ZHRhAAAAWW1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAALGlsc3QAAAAkqXRvbwAAABxkYXRhAAAAAQAAAABMYXZmNjEuMS4xMDA=",type:"video/mp4"},H=function(){function t(){}return t.getState=function(e){if(e&&t.states_&&t.states_[e])return t.states_[e]},t.registerState=function(e,n){if("string"!=typeof e||!e)throw Error('Illegal state name, "'+e+'"; must be a non-empty string.');return t.states_||(t.states_={}),t.states_[e]=n,n},t}(),G=function(){function t(t){this.player=t}t._getName=function(){return"Anonymous State"};var e=t.prototype;return e.transitionTo=function(t){var e=this.player;this.cleanup(e);var n=new t(e);e.ads._state=n,e.ads.debug(this.constructor._getName()+" -> "+n.constructor._getName());for(var i=arguments.length,r=Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];
vendor: 5,413 bytes, line 1
1n.init.apply(n,[e].concat(r))},e.init=function(){},e.cleanup=function(){},e.onPlay=function(){},e.onPlaying=function(){},e.onEnded=function(){},e.onAdEnded=function(){},e.onAdsReady=function(){r.A.log.warn("Unexpected adsready event")},e.onAdsError=function(){},e.onAdsCanceled=function(){},e.onAdTimeout=function(){},e.onAdStarted=function(){},e.onAdSkipped=function(){},e.onContentChanged=function(){},e.onContentResumed=function(){},e.onReadyForPostroll=function(){r.A.log.warn("Unexpected readyforpostroll event")},e.onNoPreroll=function(){},e.onNoPostroll=function(){},e.startLinearAdMode=function(){r.A.log.warn("Unexpected startLinearAdMode invocation (State via "+this.constructor._getName()+")")},e.endLinearAdMode=function(){r.A.log.warn("Unexpected endLinearAdMode invocation (State via "+this.constructor._getName()+")")},e.skipLinearAdMode=function(){r.A.log.warn("Unexpected skipLinearAdMode invocation (State via "+this.constructor._getName()+")")},e.isAdState=function(){throw Error("isAdState unimplemented for "+this.constructor._getName())},e.isWaitingForAdBreak=function(){return!1},e.isContentResuming=function(){return!1},e.inAdBreak=function(){return!1},e.handleEvent=function(t){var e=this.player;"play"===t?this.onPlay(e):"adsready"===t?this.onAdsReady(e):"adserror"===t?this.onAdsError(e):"adscanceled"===t?this.onAdsCanceled(e):"adtimeout"===t?this.onAdTimeout(e):"ads-ad-started"===t?this.onAdStarted(e):"ads-ad-skipped"===t?this.onAdSkipped(e):"contentchanged"===t?this.onContentChanged(e):"contentresumed"===t?this.onContentResumed(e):"readyforpostroll"===t?this.onReadyForPostroll(e):"playing"===t?this.onPlaying(e):"ended"===t?this.onEnded(e):"nopreroll"===t?this.onNoPreroll(e):"nopostroll"===t?this.onNoPostroll(e):"adended"===t&&this.onAdEnded(e)},t}();H.registerState("State",G);var Z=function(t){function e(e){var n;return(n=t.call(this,e)||this).contentResuming=!1,n.waitingForAdBreak=!1,n}v(e,t);var n=e.prototype;return n.isAdState=function(){return!0},n.onPlaying=function(){var t=H.getState("ContentPlayback");this.contentResuming&&this.transitionTo(t)},n.onContentResumed=function(){var t=H.getState("ContentPlayback");this.contentResuming&&this.transitionTo(t)},n.isWaitingForAdBreak=function(){return this.waitingForAdBreak},n.isContentResuming=function(){return this.contentResuming},n.inAdBreak=function(){return!0===this.player.ads._inLinearAdMode},e}(G);H.registerState("AdState",Z);var z=function(t){function e(){return t.apply(this,arguments)||this}v(e,t);var n=e.prototype;return n.isAdState=function(){return!1},n.onContentChanged=function(t){var e=H.getState("BeforePreroll"),n=H.getState("Preroll");t.ads.debug("Received contentchanged event (ContentState)"),t.paused()?this.transitionTo(e):(this.transitionTo(n,!1),t.pause(),t.ads._pausedOnContentupdate=!0)},e}(G);H.registerState("ContentState",z);var Y=function(t){function e(){return t.apply(this,arguments)||this}v(e,t),e._getName=function(){return"AdsDone"};var n=e.prototype;return n.init=function(t){t.ads._contentHasEnded=!0,t.trigger("ended")},n.startLinearAdMode=function(){r.A.log.warn("Unexpected startLinearAdMode invocation (AdsDone)")},e}(H.getState("ContentState"));H.registerState("AdsDone",Y);var q={start:function(t){t.ads.debug("Starting ad break"),t.ads._inLinearAdMode=!0,t.trigger("adstart"),t.ads.shouldTakeSnapshots()&&(t.ads.snapshot=function(t){var e=r.A.browser.IS_IOS&&t.ads.isLive(t)&&t.seekable().length>0?t.currentTime()-t.seekable().end(0):t.currentTime(),n=t.$(".vjs-tech"),i=t.textTracks?t.textTracks():[],o=[],a={ended:t.ended(),currentSrc:t.currentSrc(),sources:t.currentSources(),src:t.tech_.src(),currentTime:e,type:t.currentType()};n&&(a.style=n.getAttribute("style"));for(var s=0;s<i.length;s++){var d=i[s];o.push({track:d,mode:d.mode}),d.mode="disabled"}return a.suppressedTracks=o,a}(t)),t.ads.shouldPlayContentBehindAd(t)&&!t.ads.settings.stitchedAds&&(t.ads.preAdVolume_=t.volume(),t.volume(0)),t.addClass("vjs-ad-playing"),t.hasClass("vjs-live")&&t.removeClass("vjs-live"),t.ads.removeNativePoster(),t.ads.preAdPlaybackRate_=t.playbackRate(),t.playbackRate(1),t.controlBar&&t.controlBar.playbackRateMenuButton&&t.controlBar.playbackRateMenuButton.playbackRateSupported&&!t.controlBar.playbackRateMenuButton.hasClass("vjs-hidden")?(t.controlBar.playbackRateMenuButton.hide(),t.ads.showPlaybackMenuOnAdEnd_=!0):t.ads.showPlaybackMenuOnAdEnd_=!1},end:function(t,e){t.ads.debug("Ending ad break"),void 0===e&&(e=function(){}),t.ads.adType=null,t.ads._inLinearAdMode=!1,t.trigger("adend"),t.removeClass("vjs-ad-playing"),t.ads.isLive(t)&&t.addClass("vjs-live"),t.ads.shouldTakeSnapshots()?function(t,e){var n,o=t.ads.snapshot;if(void 0===e&&(e=function(){}),!0===t.ads.disableNextSnapshotRestore){t.ads.disableNextSnapshotRestore=!1,delete t.ads.snapshot,e();return}var a=t.$(".vjs-tech"),s=20,d=o.suppressedTracks,l=function(){for(var t=0;t<d.length;t++)(n=d[t]).track.mode=n.mode},c=function(){var e;if(r.A.browser.IS_IOS&&t.ads.isLive(t)){if(o.currentTime<0&&(e=t.seekable().length>0?t.seekable().end(0)+o.currentTime:t.currentTime(),t.currentTime(e)),t.paused()){var n=t.play();n&&n.catch&&n.catch(function(t){r.A.log.warn("Play promise rejected in IOS snapshot resume",t)})}}else if(o.ended)t.currentTime(t.duration());else{t.currentTime(o.currentTime);var i=t.play();i&&i.catch&&i.catch(function(t){r.A.log.warn("Play promise rejected in snapshot resume",t)})}
vendor: 4,944 bytes, line 1
1t.ads.shouldRemoveAutoplay_&&(t.autoplay(!1),t.ads.shouldRemoveAutoplay_=!1)},u=function e(){if(t.off("contentcanplay",e),i&&t.clearTimeout(i),(a=t.el().querySelector(".vjs-tech")).readyState>1||void 0===a.seekable||a.seekable.length>0)return c();if(s--)t.setTimeout(e,50);else try{c()}catch(e){t.ads.error({errorType:w.AdsResumeContentFailed,error:e}),r.A.log.warn("Failed to resume the content after an advertisement",e)}};if("style"in o&&a.setAttribute("style",o.style||""),t.ads.videoElementRecycled())t.one("resumeended",function(){delete t.ads.snapshot,e()}),t.one("contentloadedmetadata",l),r.A.browser.IS_IOS&&!t.autoplay()&&"function"==typeof t.techCall_&&(t.techCall_("setAutoplay",!0),t.ads.shouldRemoveAutoplay_=!0),t.src(o.sources),t.one("contentcanplay",u),i=t.setTimeout(u,2e3);else{if(l(),!t.ended()){var h=t.play();h&&h.catch&&h.catch(function(t){r.A.log.warn("Play promise rejected in snapshot restore",t)})}delete t.ads.snapshot,e()}}(t,e):(t.ads.preAdVolume_&&t.volume(t.ads.preAdVolume_),e()),t.playbackRate(t.ads.preAdPlaybackRate_),t.ads.showPlaybackMenuOnAdEnd_&&t.controlBar.playbackRateMenuButton.show()}},Q=function(t){function e(){return t.apply(this,arguments)||this}v(e,t),e._getName=function(){return"Preroll"};var n=e.prototype;return n.init=function(t,e,n){if(this.waitingForAdBreak=!0,t.addClass("vjs-ad-loading"),n||t.ads.nopreroll_)return this.resumeAfterNoPreroll(t);var i=t.ads.settings.timeout;"number"==typeof t.ads.settings.prerollTimeout&&(i=t.ads.settings.prerollTimeout),this._timeout=t.setTimeout(function(){t.trigger("adtimeout")},i),e?this.handleAdsReady():this.adsReady=!1},n.onAdsReady=function(t){t.ads.inAdBreak()?r.A.log.warn("Unexpected adsready event (Preroll)"):(t.ads.debug("Received adsready event (Preroll)"),this.handleAdsReady())},n.handleAdsReady=function(){this.adsReady=!0,this.readyForPreroll()},n.afterLoadStart=function(t){var e=this.player;e.ads._hasThereBeenALoadStartDuringPlayerLife?t():(e.ads.debug("Waiting for loadstart..."),e.one("loadstart",function(){e.ads.debug("Received loadstart event"),t()}))},n.noPreroll=function(){var t=this;this.afterLoadStart(function(){t.player.ads.debug("Skipping prerolls due to nopreroll event (Preroll)"),t.resumeAfterNoPreroll(t.player)})},n.readyForPreroll=function(){var t=this.player;this.afterLoadStart(function(){t.ads.debug("Triggered readyforpreroll event (Preroll)"),t.trigger("readyforpreroll")})},n.onAdsCanceled=function(t){var e=this;t.ads.debug("adscanceled (Preroll)"),this.afterLoadStart(function(){e.resumeAfterNoPreroll(t)})},n.onAdsError=function(t){var e=this;r.A.log("adserror (Preroll)"),t.ads.error({errorType:w.AdsPrerollError}),this.inAdBreak()?t.ads.endLinearAdMode():this.afterLoadStart(function(){e.resumeAfterNoPreroll(t)})},n.startLinearAdMode=function(){var t=this.player;!this.adsReady||t.ads.inAdBreak()||this.isContentResuming()?r.A.log.warn("Unexpected startLinearAdMode invocation (Preroll)"):(this.clearTimeout(t),t.ads.adType="preroll",this.waitingForAdBreak=!1,q.start(t),t.ads._shouldBlockPlay=!1)},n.onAdStarted=function(t){t.removeClass("vjs-ad-loading")},n.endLinearAdMode=function(){var t=this.player;this.inAdBreak()&&(t.removeClass("vjs-ad-loading"),t.addClass("vjs-ad-content-resuming"),this.contentResuming=!0,q.end(t))},n.skipLinearAdMode=function(){var t=this,e=this.player;e.ads.inAdBreak()||this.isContentResuming()?r.A.log.warn("Unexpected skipLinearAdMode invocation"):this.afterLoadStart(function(){e.trigger("adskip"),e.ads.debug("skipLinearAdMode (Preroll)"),t.resumeAfterNoPreroll(e)})},n.onAdTimeout=function(t){var e=this;this.afterLoadStart(function(){t.ads.debug("adtimeout (Preroll)"),e.resumeAfterNoPreroll(t)})},n.onNoPreroll=function(t){t.ads.inAdBreak()||this.isContentResuming()?r.A.log.warn("Unexpected nopreroll event (Preroll)"):this.noPreroll()},n.resumeAfterNoPreroll=function(t){if(this.contentResuming=!0,t.ads._shouldBlockPlay=!1,this.cleanupPartial(t),t.ads._playRequested||t.ads._pausedOnContentupdate)if(t.paused()){t.ads.debug("resumeAfterNoPreroll: attempting to resume playback (Preroll)");var e=t.play();e&&e.then&&e.then(null,function(t){})}else t.ads.debug("resumeAfterNoPreroll: already playing (Preroll)"),t.trigger("play"),t.trigger("playing")},n.cleanup=function(t){t.ads._hasThereBeenALoadStartDuringPlayerLife||r.A.log.warn("Leaving Preroll state before loadstart event can cause issues."),this.cleanupPartial(t)},n.cleanupPartial=function(t){t.removeClass("vjs-ad-loading"),t.removeClass("vjs-ad-content-resuming"),this.clearTimeout(t)},n.clearTimeout=function(t){t.clearTimeout(this._timeout),this._timeout=null},e}(H.getState("AdState"));H.registerState("Preroll",Q);var X=function(t){function e(){return t.apply(this,arguments)||this}v(e,t),e._getName=function(){return"BeforePreroll"};var n=e.prototype;return n.init=function(t){this.adsReady=!1,this.shouldResumeToContent=!1,t.ads._shouldBlockPlay=!t.ads.settings.allowVjsAutoplay||!t.auto
vendor: 4,784 bytes, line 1
1play()},n.onAdsReady=function(t){t.ads.debug("Received adsready event (BeforePreroll)"),this.adsReady=!0},n.onPlay=function(t){var e=H.getState("Preroll");t.ads.debug("Received play event (BeforePreroll)"),this.transitionTo(e,this.adsReady,this.shouldResumeToContent)},n.onAdsCanceled=function(t){t.ads.debug("adscanceled (BeforePreroll)"),this.shouldResumeToContent=!0},n.onAdsError=function(){this.player.ads.debug("adserror (BeforePreroll)"),this.player.ads.error({errorType:w.AdsBeforePrerollError}),this.shouldResumeToContent=!0},n.onNoPreroll=function(){this.player.ads.debug("Skipping prerolls due to nopreroll event (BeforePreroll)"),this.shouldResumeToContent=!0},n.skipLinearAdMode=function(){var t=this.player;t.trigger("adskip"),t.ads.debug("skipLinearAdMode (BeforePreroll)"),this.shouldResumeToContent=!0},n.onContentChanged=function(){this.init(this.player)},e}(H.getState("ContentState"));H.registerState("BeforePreroll",X);var J=function(t){function e(){return t.apply(this,arguments)||this}v(e,t),e._getName=function(){return"Midroll"};var n=e.prototype;return n.init=function(t){t.ads.adType="midroll",q.start(t),t.addClass("vjs-ad-loading")},n.onAdStarted=function(t){t.removeClass("vjs-ad-loading")},n.endLinearAdMode=function(){var t=this.player;this.inAdBreak()&&(this.contentResuming=!0,t.addClass("vjs-ad-content-resuming"),t.removeClass("vjs-ad-loading"),q.end(t))},n.onAdsError=function(t){t.ads.error({errorType:w.AdsMidrollError}),this.inAdBreak()&&t.ads.endLinearAdMode()},n.cleanup=function(t){t.removeClass("vjs-ad-loading"),t.removeClass("vjs-ad-content-resuming")},e}(H.getState("AdState"));H.registerState("Midroll",J);var K=function(t){function e(){return t.apply(this,arguments)||this}v(e,t),e._getName=function(){return"Postroll"};var n=e.prototype;return n.init=function(t){if(this.waitingForAdBreak=!0,t.ads._contentEnding=!0,t.ads.nopostroll_){this.resumeContent(t);var e=H.getState("AdsDone");this.transitionTo(e)}else{t.addClass("vjs-ad-loading");var n=t.ads.settings.timeout;"number"==typeof t.ads.settings.postrollTimeout&&(n=t.ads.settings.postrollTimeout),this._postrollTimeout=t.setTimeout(function(){t.trigger("adtimeout")},n)}},n.startLinearAdMode=function(){var t=this.player;t.ads.inAdBreak()||this.isContentResuming()?r.A.log.warn("Unexpected startLinearAdMode invocation (Postroll)"):(t.ads.adType="postroll",t.clearTimeout(this._postrollTimeout),this.waitingForAdBreak=!1,q.start(t))},n.onAdStarted=function(t){t.removeClass("vjs-ad-loading")},n.endLinearAdMode=function(){var t=this,e=this.player,n=H.getState("AdsDone");this.inAdBreak()&&(e.removeClass("vjs-ad-loading"),this.resumeContent(e),q.end(e,function(){t.transitionTo(n)}))},n.skipLinearAdMode=function(){var t=this.player;t.ads.inAdBreak()||this.isContentResuming()?r.A.log.warn("Unexpected skipLinearAdMode invocation"):(t.ads.debug("Postroll abort (skipLinearAdMode)"),t.trigger("adskip"),this.abort(t))},n.onAdTimeout=function(t){t.ads.debug("Postroll abort (adtimeout)"),this.abort(t)},n.onAdsError=function(t){t.ads.debug("Postroll abort (adserror)"),t.ads.error({errorType:w.AdsPostrollError}),t.ads.inAdBreak()?t.ads.endLinearAdMode():this.abort(t)},n.onContentChanged=function(t){if(this.isContentResuming()){var e=H.getState("BeforePreroll");this.transitionTo(e)}else if(!this.inAdBreak()){var n=H.getState("Preroll");this.transitionTo(n)}},n.onNoPostroll=function(t){this.isContentResuming()||this.inAdBreak()?r.A.log.warn("Unexpected nopostroll event (Postroll)"):this.abort(t)},n.resumeContent=function(t){this.contentResuming=!0,t.addClass("vjs-ad-content-resuming")},n.abort=function(t){var e=H.getState("AdsDone");this.resumeContent(t),t.removeClass("vjs-ad-loading"),this.transitionTo(e)},n.cleanup=function(t){t.removeClass("vjs-ad-content-resuming"),t.clearTimeout(this._postrollTimeout),t.ads._contentEnding=!1},e}(H.getState("AdState"));H.registerState("Postroll",K);var $=function(t){function e(){return t.apply(this,arguments)||this}v(e,t),e._getName=function(){return"ContentPlayback"};var n=e.prototype;return n.init=function(t){t.ads._shouldBlockPlay=!1},n.onAdsReady=function(t){t.ads.debug("Received adsready event (ContentPlayback)"),t.ads.nopreroll_||(t.ads.debug("Triggered readyforpreroll event (ContentPlayback)"),t.trigger("readyforpreroll"))},n.onReadyForPostroll=function(t){var e=H.getState("Postroll");t.ads.debug("Received readyforpostroll event"),this.transitionTo(e)},n.startLinearAdMode=function(){var t=H.getState("Midroll");this.transitionTo(t)},e}(H.getState("ContentState"));H.registerState("ContentPlayback",$);var tt=function(t){function e(){return t.apply(this,arguments)||this}v(e,t),e._getName=function(){return"StitchedContentPlayback"};var n=e.prototype;return n.init=function(){this.player.ads._shouldBlockPlay=!1}
vendor: 4,595 bytes, line 1
1,n.onContentChanged=function(){this.player.ads.debug("Received contentchanged event ("+this.constructor._getName()+")")},n.startLinearAdMode=function(){var t=H.getState("StitchedAdRoll");this.transitionTo(t)},e}(H.getState("ContentState"));H.registerState("StitchedContentPlayback",tt);var te=function(t){function e(){return t.apply(this,arguments)||this}v(e,t),e._getName=function(){return"StitchedAdRoll"};var n=e.prototype;return n.init=function(){this.waitingForAdBreak=!1,this.contentResuming=!1,this.player.ads.adType="stitched",q.start(this.player)},n.onPlaying=function(){},n.onContentResumed=function(){},n.onAdEnded=function(){this.endLinearAdMode(),this.player.trigger("ended")},n.endLinearAdMode=function(){var t=H.getState("StitchedContentPlayback");q.end(this.player),this.transitionTo(t)},e}(H.getState("AdState"));H.registerState("StitchedAdRoll",te);var tn=function(t){function e(){return t.apply(this,arguments)||this}v(e,t),e._getName=function(){return"OutstreamPending"};var n=e.prototype;return n.init=function(t){this.adsReady=!1},n.onPlay=function(t){var e=H.getState("OutstreamPlayback");t.ads.debug("Received play event (OutstreamPending)"),this.transitionTo(e,this.adsReady)},n.onAdsReady=function(t){t.ads.debug("Received adsready event (OutstreamPending)"),this.adsReady=!0},n.onAdsError=function(){this.player.ads.debug("adserror (OutstreamPending)"),this.adsReady=!1},e}(H.getState("AdState"));H.registerState("OutstreamPending",tn);var ti=function(t){function e(){return t.apply(this,arguments)||this}v(e,t),e._getName=function(){return"OutstreamPlayback"};var n=e.prototype;return n.init=function(t,e){t.addClass("vjs-ad-loading"),e?this.handleAdsReady():this.abort(t)},n.onAdsReady=function(t){t.ads.inAdBreak()?r.A.log.warn("Unexpected adsready event (Preroll)"):(t.ads.debug("Received adsready event (Preroll)"),this.handleAdsReady())},n.abort=function(t){var e=H.getState("OutstreamDone");t.removeClass("vjs-ad-loading"),this.transitionTo(e)},n.onAdStarted=function(t){t.removeClass("vjs-ad-loading")},n.handleAdsReady=function(){this.adsReady=!0,this.readyForOutstreamPlayback()},n.readyForOutstreamPlayback=function(){var t=this.player;this.afterLoadStart(function(){t.trigger("readyforoutstream")})},n.startLinearAdMode=function(){var t=this.player;this.adsReady&&!t.ads.inAdBreak()&&q.start(t)},n.cleanup=function(t){t.ads._hasThereBeenALoadStartDuringPlayerLife||r.A.log.warn("Leaving OutstreamPlayback state before loadstart event can cause issues."),this.cleanupPartial(t)},n.cleanupPartial=function(t){t.removeClass("vjs-ad-loading"),t.removeClass("vjs-ad-content-resuming"),this.clearTimeout(t)},n.clearTimeout=function(t){t.clearTimeout(this._timeout),this._timeout=null},n.onAdStarted=function(t){t.removeClass("vjs-ad-loading")},n.onAdsError=function(t){var e=this;r.A.log("adserror (OutstreamPlayback)"),this.inAdBreak()?t.ads.endLinearAdMode():this.afterLoadStart(function(){e.abort(t)})},n.onAdTimeout=function(t){var e=this;this.afterLoadStart(function(){t.ads.debug("adtimeout (OutstreamPlayback)"),e.abort(t)})},n.onAdsCanceled=function(t){var e=this;t.ads.debug("adscanceled (OutstreamPlaybac)"),this.afterLoadStart(function(){e.abort(t)})},n.endLinearAdMode=function(){var t=this;if(this.inAdBreak()){this.player.removeClass("vjs-ad-loading");var e=H.getState("OutstreamDone");q.end(this.player,function(){t.transitionTo(e)})}},n.afterLoadStart=function(t){var e=this.player;e.ads._hasThereBeenALoadStartDuringPlayerLife?t():(e.ads.debug("Waiting for loadstart..."),e.one("loadstart",function(){e.ads.debug("Received loadstart event"),t()}))},n.skipLinearAdMode=function(){var t=this,e=this.player,n=H.getState("OutstreamDone");this.inAdBreak()?r.A.log.warn("Unexpected skipLinearAdMode invocation"):this.afterLoadStart(function(){e.trigger("adskip"),e.ads.debug("skipLinearAdMode (OutstreamPlayback)"),t.transitionTo(n)})},e}(H.getState("AdState"));H.registerState("OutstreamPlayback",ti);var tr=function(t){function e(){return t.apply(this,arguments)||this}v(e,t),e._getName=function(){return"OutstreamDone"};var n=e.prototype;return n.init=function(t){t.trigger("ended")},n.startLinearAdMode=function(){r.A.log.warn("Unexpected startLinearAdMode invocation (OutstreamDone)")},e}(H.getState("AdState"));H.registerState("OutstreamDone",tr);var to=W.isMiddlewareMediatorSupported,ta=r.A.getTech("Html5").Events,ts={timeout:5e3,prerollTimeout:void 0,postrollTimeout:void 0,debug:!1,stitchedAds:!1,contentIsLive:void 0,liveCuePoints:!0,allowVjsAutoplay:r.A.options.normalizeAutoplay||!1},td=function(t){var e=this,n=r.A.obj.merge(ts,t),i=[];
1ta.concat(["firstplay","loadedalldata"]).forEach(function(t){-1===i.indexOf(t)&&i.push(t)}),e.on(i,g),to()||(n.debug&&r.A.log("Using cancelContentPlay to block content playback"),e.on("play",N)),e.setTimeout(function(){e.ads._hasThereBeenALoadStartDuringPlayerLife||""===e.src()||r.A.log.error("videojs-contrib-ads has not seen a loadstart event 5 seconds after being initialized, but a source is present. This indicates that videojs-contrib-ads was initialized too late. It must be initialized immediately after video.js in the same tick. As a result, some ads will not play and some media events will be incorrect. For more information, see http://videojs.github.io/videojs-contrib-ads/integrator/getting-started.html")},5e3),e.on("ended",function(){e.hasClass("vjs-has-started")||e.addClass("vjs-has-started")}),e.on("contenttimeupdate",function(){e.removeClass("vjs-waiting")}),e.on(["addurationchange","adcanplay"],function(){if(!(e.ads.settings.stitchedAds||e.hasStarted())&&(!e.ads.snapshot||e.currentSrc()!==e.ads.snapshot.currentSrc)&&e.ads.inAdBreak()){var t=e.play();t&&t.catch&&t.catch(function(t){r.A.log.warn("Play promise rejected when playing ad",t)})}}),e.on("nopreroll",function(){e.ads.debug("Received nopreroll event"),e.ads.nopreroll_=!0}),e.on("nopostroll",function(){e.ads.debug("Received nopostroll event"),e.ads.nopostroll_=!0}),e.on("playing",function(){e.ads._cancelledPlay=!1,e.ads._pausedOnContentupdate=!1}),e.on("play",function(){e.ads._playRequested=!0}),e.one("loadstart",function(){e.ads._hasThereBeenALoadStartDuringPlayerLife=!0}),e.on("loadeddata",function(){e.ads._hasThereBeenALoadedData=!0}),e.on("loadedmetadata",function(){e.ads._hasThereBeenALoadedMetaData=!0}),e.ads={disableNextSnapshotRestore:!1,_contentEnding:!1,_contentHasEnded:!1,_hasThereBeenALoadStartDuringPlayerLife:!1,_hasThereBeenALoadedData:!1,_hasThereBeenALoadedMetaData:!1,_inLinearAdMode:!1,_shouldBlockPlay:!1,_playBlocked:!1,_playRequested:!1,_error:null,adType:null,VERSION:l,reset:function(){e.ads.disableNextSnapshotRestore=!1,e.ads._contentEnding=!1,e.ads._contentHasEnded=!1,e.ads.snapshot=null,e.ads.adType=null,e.ads._hasThereBeenALoadedData=!1,e.ads._hasThereBeenALoadedMetaData=!1,e.ads._cancelledPlay=!1,e.ads._shouldBlockPlay=!1,e.ads._playBlocked=!1,e.ads.nopreroll_=!1,e.ads.nopostroll_=!1,e.ads._playRequested=!1,e.ads._error=null},startLinearAdMode:function(){e.ads._state.startLinearAdMode()},endLinearAdMode:function(){e.ads._state.endLinearAdMode()},skipLinearAdMode:function(){e.ads._state.skipLinearAdMode()},stitchedAds:function(t){return void 0!==t&&(r.A.log.warn("Using player.ads.stitchedAds() as a setter is deprecated, it should be set as an option upon initialization of contrib-ads."),this.settings.stitchedAds=!!t),this.settings.stitchedAds},videoElementRecycled:function(){if(e.ads.shouldPlayContentBehindAd(e))return!1;if(!this.snapshot)throw Error("You cannot use videoElementRecycled while there is no snapshot.");var t=e.tech_.src()!==this.snapshot.src,n=e.currentSrc()!==this.snapshot.currentSrc;return t||n},isLive:function(t){return(void 0===t&&(t=e),"boolean"==typeof t.ads.settings.contentIsLive)?t.ads.settings.contentIsLive:t.duration()===1/0||"8"===r.A.browser.IOS_VERSION&&0===t.duration()||!1},shouldPlayContentBehindAd:function(t){if(void 0===t&&(t=e),t)if(!t.ads.settings.liveCuePoints)return!1;else return!r.A.browser.IS_IOS&&!r.A.browser.IS_ANDROID&&t.duration()===1/0;throw Error("shouldPlayContentBehindAd requires a player as a param")},shouldTakeSnapshots:function(t){return void 0===t&&(t=e),!this.shouldPlayContentBehindAd(t)&&!this.stitchedAds()},isInAdMode:function(){return this._state.isAdState()},isWaitingForAdBreak:function(){return this._state.isWaitingForAdBreak()},isContentResuming:function(){return this._state.isContentResuming()},isAdPlaying:function(){return this._state.inAdBreak()},inAdBreak:function(){return this._state.inAdBreak()},removeNativePoster:function(){var t=e.$(".vjs-tech");t&&t.removeAttribute("poster")},debug:function(){if(this.settings.debug){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];1===e.length&&"string"==typeof e[0]?r.A.log("ADS: "+e[0]):r.A.log.apply(r.A,["ADS:"].concat(e))}},error:function(t){if(void 0===t)return this._error||null;if(null===t||!t.errorType){this._error=null;return}this._error=t,r.A.log.error("An error with Ads occured. Type: "+t.errorType+"."),e.trigger({type:"vjsadserror",error:this._error})}},e.ads.settings=n,n.stitchedAds=!!n.stitchedAds,"outstream"===n.playerMode?(e.src(V),e.ads._state=new(H.getState("OutstreamPending"))(e)):n.stitchedAds?e.ads._state=new(H.getState("StitchedContentPlayback"))(e):e.ads._state=new(H.getState("BeforePreroll"))(e),e.ads._state.init(e),e.ads.cueTextTracks=_,e.ads.adMacroReplacement=j.bind(e),e.ads.contentSrc=e.currentSrc(),e.ads._seenInitialLoadstart=!1,e.on("loadstart",function(){if(!e.ads.inAdBreak()){var t=e.currentSrc();t!==e.ads.contentSrc&&(e.ads._seenInitialLoadstart&&e.trigger({type:"contentchanged"}),e.trigger({type:"contentupdate",oldValue:e.ads.contentSrc,newValue:t}),e.ads.contentSrc=t),e.ads._seenInitialLoadstart=!0}}),e.on("contentchanged",e.ads.reset);var o=function(){var t=e.textTracks();if(!e.ads.shouldPlayContentBehindAd(e)&&e.ads.inAdBreak()&&e.tech_.featuresNativeTextTracks&&r.A.browser.IS_IOS&&!Array.isArray(e.textTracks()))for(var n=0;n<t.length;n++){var i=t[n];"showing"===i.mode&&(i.mode="disabled")}};e.ready(function(){e.textTracks().addEventListener("change",o)}),e.on(["play","playing","ended","adsready","adscanceled","adskip","adserror","adtimeout","adended","ads-ad-started","ads-ad-skipped","contentchanged","dispose","contentresumed","readyforpostroll","nopreroll","nopostroll"],function(t){e.ads._state.handleEvent(t.type)}),e.on("dispose",function(){e.ads.reset(),e.textTracks().removeEventListener("change",o)}),C(),E(function(){}),e.ads.listenToTcf=C,e.ads.updateUsPrivacyString=function(t){return E(t)}};td.Error=w,td.VERSION=l,function(){if(r.A.getPlugin)return!!r.A.getPlugin("ads");var t=r.A.getComponent("Player");return!!(t&&t.prototype.ads)}(r.A)||((r.A.registerPlugin||r.A.plugin)("ads",td),x()&&!r.A.usingContribAdsMiddleware_&&(r.A.use("*",U),r.A.usingContribAdsMiddleware_=!0,r.A.log.debug("Play middleware has been registered with videojs")));let tl=td},59473:(t,e,n)=>{"use strict";n.d(e,{D:()=>k});var i,r,o,a,s={};s.d=(t,e)=>{for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var d={};s.d(d,{GP:()=>o,fZ:()=>c,vn:()=>a}),(i=o||(o={})).LOADED="loaded",i.SEEKING="seeking",i.SEEKED="seeked",i.BUFFERING="buffering",i.BUFFERED="buffered",i.PLAY="play",i.PLAYING="playing",i.PAUSE="pause",i.ENDED="ended",i.TIME_UPDATE="timeupdate",(r=a||(a={})).loadstart="loadstart",r.progress="progress",r.suspend="suspend",r.abort="abort",r.error="error",r.emptied="emptied",r.stalled="stalled",r.loadedmetadata="loadedmetadata",r.loadeddata="loadeddata",r.canplay="canplay",r.canplaythrough="canplaythrough",r.playing="playing",r.waiting="waiting",r.seeking="seeking",r.seeked="seeked",r.ended="ended",r.durationchange="durationchange",r.timeupdate="timeupdate",r.play="play",r.pause="pause",r.ratechange="ratechange",r.resize="resize",r.volumechange="volumechange";let l={paused:!1,ended:!1,loading:!0,buffering:!1,seeking:!1,initialPlayFired:!1,deferCanPlay:!1,deferCanPlayThroughHandling:!1,deferPlayingEvent:!1,deferSeekedEvent:!1,playRequested:!1},c=({mediaElement:t,callback:e,mp4Mode:n=!1})=>{let i=null,r=()=>{"number"==typeof i&&clearTimeout(i)},o={...l},a=()=>{r(),o={...l}},s=()=>
1{if(o.loading||o.ended){n&&d();return}if(0===t.playbackRate){o={...o,deferCanPlay:!0};return}o={...o,deferCanPlay:!1},r(),o.buffering?(o={...o,buffering:!1},e("buffered"),o.deferPlayingEvent&&A()):o.seeking&&(o={...o,seeking:!1,deferSeekedEvent:!1},e("seeked"),o.deferPlayingEvent&&A())},d=()=>{if(!n&&o.loading&&0===t.playbackRate){o={...o,deferCanPlayThroughHandling:!0};return}o.loading&&(o={...o,loading:!1,deferCanPlayThroughHandling:!1},e("loaded"))},c=()=>{o.loading||o.ended||(o.buffering&&e("buffered"),o={...o,seeking:!0,buffering:!1},e("seeking"))},u=()=>{if(!(o.loading||o.ended)&&o.seeking){if(0===t.playbackRate){o={...o,deferSeekedEvent:!0};return}t.readyState>=HTMLMediaElement.HAVE_FUTURE_DATA&&(o={...o,seeking:!1,deferSeekedEvent:!1},e("seeked"),o.deferPlayingEvent&&A())}},h=()=>{if(r(),!(t.ended||o.loading||o.ended)&&!o.seeking){if(t.seeking)return void c();o.buffering||(o={...o,buffering:!0},e("buffering"))}},A=()=>{if(0===t.playbackRate||o.paused&&o.playRequested&&(o.seeking||o.buffering)){o={...o,deferPlayingEvent:!0};return}(o={...o,deferPlayingEvent:!1}).loading&&d(),o.initialPlayFired||(o={...o,initialPlayFired:!0,paused:!1,playRequested:!1},e("playing")),o.paused&&o.playRequested&&(o={...o,paused:!1,playRequested:!1},e("playing"))},p=()=>!o.seeking&&!o.buffering&&0===t.playbackRate&&!t.seeking,y=[["canplay",s],["canplaythrough",d],["playing",A],["waiting",h],["seeking",c],["seeked",u],["ended",()=>{o.loading||o.ended||(o={...o,ended:!0,buffering:!1,seeking:!1,loading:!1,paused:!0},r(),e("ended"))}],["timeupdate",()=>{o.loading||o.ended||(o.buffering&&!t.paused&&t.readyState>=HTMLMediaElement.HAVE_FUTURE_DATA&&0!==t.playbackRate&&(o={...o,buffering:!1},e("buffered")),e("timeupdate"))}],["play",()=>{if(o.ended)return void a();!(o.loading||o.ended)&&o.paused&&o.initialPlayFired&&(o={...o,playRequested:!0},e("play"))}],["pause",()=>{t.ended||!o.playRequested&&o.paused||((o={...o,playRequested:!1}).deferCanPlayThroughHandling&&d(),o={...o,paused:!0},e("pause"))}],["ratechange",()=>{if(r(),t.ended)return;let n=t.playbackRate>0;o.deferCanPlayThroughHandling&&n&&d(),o.deferCanPlay&&n&&s(),o.deferSeekedEvent&&n&&u(),o.deferPlayingEvent&&n&&A(),!(o.loading||o.ended)&&(p()?i=window.setTimeout(()=>{p()&&h()},50):o.buffering&&n&&(o={...o,buffering:!1},e("buffered")))}],["emptied",()=>{a()}]];return y.forEach(([e,n])=>t.addEventListener(e,n)),{teardown:()=>{r(),y.forEach(([e,n])=>t.removeEventListener(e,n))}}};var u=d.GP,h=(d.vn,d.fZ);function A(t,e,n,i){Object.defineProperty(t,e,{get:n,set:i,enumerable:!0,configurable:!0})}var p={};A(p,"PlayerAnalytics",()=>b,t=>b=t);var y="0.5.0",g={};A(g,"Reporter",()=>m,t=>m=t);var f=function(){return(f=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},v=function(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};function s(o){return function(s){var d=[o,s];if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&d[0]?i.return:d[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,d[1])).done)return r;switch(i=0,r&&(d=[2&d[0],r.value]),d[0]){case 0:case 1:r=d;break;case 4:return a.label++,{value:d[1],done:!1};case 5:a.label++,i=d[1],d=[0];continue;case 7:d=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===d[0]||2===d[0])){a=0;continue}if(3===d[0]&&(!r||d[1]>r[0]&&d[1]<r[3])){a.label=d[1];break}if(6===d[0]&&a.label<r[1]){a.label=r[1],r=d;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(d);break}r[2]&&a.ops.pop(),a.trys.pop();continue}d=e.call(t,a)}catch(t){d=[6,t],i=0}finally{n=r=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o},m=function(){function t(t){this.isInitiated=!1,this.debug=t.debug,this.shardId=t.shardId,this.eventsinkUrl=t.eventsinkUrl,this.sessionId=t.sessionId,this.heartbeatInterval=t.heartbeatInterval||3e4,this.debug&&console.log("[AnalyticsReporter] Initiated AnalyticsReporter",t)}return t.prototype.init=function(t){var e,n,i,r;return e=this,n=void 0,i=Promise,r=function(){var e,n,i;return v(this,function(r){switch(r.label){case 0:if(this.sessionId=t||this.sessionId,e={event:"init",sessionId:this.sessionId,shardId:this.shardId,timestamp:Date.now(),playhead:-1,duration:-1},!this.debug)return[3,1];return console.log("[AnalyticsReporter] Init session:",e),this.isInitiated=!0,[2,{sessionId:this.sessionId,heartbeatInterval:this.heartbeatInterval,isInitiated:this.isInitiated}];case 1:return[4,fetch("".concat(this.eventsinkUrl),{method:"POST",mode:"cors",cache:"no-cache",headers:{"Content-Type":"application/json; charset=utf-8","X-EPAS-Event":e.event,"X-EPAS-Version":y},body:JSON.stringify(e)})];case 2:if(!(n=r.sent()).ok)throw Error("[AnalyticsReporter] init failed: ".concat(n.statusText));return[4,n.json()];case 3:if(i=r.sent(),!this.sessionId&&!i.sessionId)throw Error("[AnalyticsReporter] init failed: no sessionId");return i.sessionId&&(this.sessionId=i.sessionId),this.isInitiated=!0,[2,{heartbeatInterval:this.heartbeatInterval,sessionId:this.sessionId,isInitiated:this.isInitiated}]}})}
1,new(i||(i=Promise))(function(t,o){function a(t){try{d(r.next(t))}catch(t){o(t)}}function s(t){try{d(r.throw(t))}catch(t){o(t)}}function d(e){var n;e.done?t(e.value):((n=e.value)instanceof i?n:new i(function(t){t(n)})).then(a,s)}d((r=r.apply(e,n||[])).next())})},t.prototype.send=function(t){if(!this.isInitiated)return console.warn("[AnalyticsReporter] Cannot report before initiation:",t);var e=f({sessionId:this.sessionId,shardId:this.shardId},t);this.debug?console.log("[AnalyticsReporter] Send payload:",e):fetch("".concat(this.eventsinkUrl),{method:"POST",mode:"cors",cache:"no-cache",headers:{"Content-Type":"application/json; charset=utf-8","X-EPAS-Event":t.event,"X-EPAS-Version":y},body:JSON.stringify(e)})},t}(),P=function(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};function s(o){return function(s){var d=[o,s];if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&d[0]?i.return:d[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,d[1])).done)return r;switch(i=0,r&&(d=[2&d[0],r.value]),d[0]){case 0:case 1:r=d;break;case 4:return a.label++,{value:d[1],done:!1};case 5:a.label++,i=d[1],d=[0];continue;case 7:d=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===d[0]||2===d[0])){a=0;continue}if(3===d[0]&&(!r||d[1]>r[0]&&d[1]<r[3])){a.label=d[1];break}if(6===d[0]&&a.label<r[1]){a.label=r[1],r=d;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(d);break}r[2]&&a.ops.pop(),a.trys.pop();continue}d=e.call(t,a)}catch(t){d=[6,t],i=0}finally{n=r=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o},b=function(){function t(t,e){this.debug=!1,this.debug=e,this.eventsinkUrl=t}return t.prototype.initiateAnalyticsReporter=function(t){var e,n,i,r,o=t.sessionId,a=t.shardId,s=t.heartbeatInterval,d=void 0===s?3e4:s;return e=this,n=void 0,i=void 0,r=function(){var t;return P(this,function(e){switch(e.label){case 0:return this.analyticsReporter=new g.Reporter({sessionId:o,eventsinkUrl:this.eventsinkUrl,debug:this.debug,heartbeatInterval:d,shardId:a}),[4,this.analyticsReporter.init(o)];case 1:return[2,{sessionId:(t=e.sent()).sessionId,heartbeatInterval:d,isInitiated:t.isInitiated}]}})},new(i||(i=Promise))(function(t,o){function a(t){try{d(r.next(t))}catch(t){o(t)}}function s(t){try{d(r.throw(t))}catch(t){o(t)}}function d(e){var n;e.done?t(e.value):((n=e.value)instanceof i?n:new i(function(t){t(n)})).then(a,s)}d((r=r.apply(e,n||[])).next())})},t.prototype.init=function(t){this.analyticsReporter.send(t)},t.prototype.metadata=function(t){this.analyticsReporter.send(t)},t.prototype.heartbeat=function(t){this.analyticsReporter.send(t)},t.prototype.loading=function(t){this.analyticsReporter.send(t)},t.prototype.loaded=function(t){this.analyticsReporter.send(t)},t.prototype.playing=function(t){this.analyticsReporter.send(t)},t.prototype.pause=function(t){this.analyticsReporter.send(t)},t.prototype.buffering=function(t){this.analyticsReporter.send(t)},t.prototype.buffered=function(t){this.analyticsReporter.send(t)},t.prototype.seeking=function(t){this.analyticsReporter.send(t)},t.prototype.seeked=function(t){this.analyticsReporter.send(t)},t.prototype.bitrateChanged=function(t){this.analyticsReporter.send(t)},t.prototype.error=function(t){this.analyticsReporter.send(t)},t.prototype.warning=function(t){this.analyticsReporter.send(t)},t.prototype.stopped=function(t){this.analyticsReporter.send(t)},t.prototype.destroy=function(){this.analyticsReporter=null},t}();A({},"PlayerAnalyticsConnector",()=>k,t=>k=t);var C=function(){return(C=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},S=function(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};function s(o){return function(s){var d=[o,s];if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&d[0]?i.return:d[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,d[1])).done)return r;switch(i=0,r&&(d=[2&d[0],r.value]),d[0]){case 0:case 1:r=d;break;case 4:return a.label++,{value:d[1],done:!1};case 5:a.label++,i=d[1],d=[0];continue;case 7:d=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===d[0]||2===d[0])){a=0;continue}if(3===d[0]&&(!r||d[1]>r[0]&&d[1]<r[3])){a.label=d[1];break}if(6===d[0]&&a.label<r[1]){a.label=r[1],r=d;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(d);break}r[2]&&a.ops.pop(),a.trys.pop();continue}d=e.call(t,a)}catch(t){d=[6,t],i=0}finally{n=r=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o},k=function(){function t(t,e){this.analyticsInitiated=!1,this.eventsinkUrl=t,this.playerAnalytics=new p.PlayerAnalytics(this.eventsinkUrl,e)}return t.prototype.init=function(t){var e,n,i,r;return e=this,n=void 0,i=void 0,r=function(){var e,n,i;return S(this,function(r){switch(r.label){case 0:return this.sessionId=t.sessionId,[4,this.playerAnalytics.initiateAnalyticsReporter(C({sessionId:this.sessionId,shardId:t.shardId},t))];case 1:return n=(e=r.sent()).heartbeatInterval,i=e.isInitiated,this.analyticsInitiated=i,this.heartbeatInterval=n,[2]}})}
1,new(i||(i=Promise))(function(t,o){function a(t){try{d(r.next(t))}catch(t){o(t)}}function s(t){try{d(r.throw(t))}catch(t){o(t)}}function d(e){var n;e.done?t(e.value):((n=e.value)instanceof i?n:new i(function(t){t(n)})).then(a,s)}d((r=r.apply(e,n||[])).next())})},t.prototype.load=function(t){this.player=t,this.playerAnalytics.loading(C({event:"loading"},this.playbackState())),this.initiateVideoEventFilter()},t.prototype.initiateVideoEventFilter=function(){var t=this;this.player&&(this.videoEventFilter=h({mediaElement:this.player,mp4Mode:!1,callback:function(e){var n,i={};switch(e){case u.LOADED:n="loaded";break;case u.PLAYING:n="playing",t.startInterval();break;case u.PAUSE:n="paused";break;case u.SEEKING:n="seeking";break;case u.SEEKED:n="seeked";break;case u.BUFFERING:n="buffering";break;case u.BUFFERED:n="buffered";break;case u.ENDED:n="stopped",i.reason="ended",t.stopInterval()}try{if(!t.analyticsInitiated)return void console.warn("[PlayerAnalyticsConnector] Analytics not initiated");n&&t.playerAnalytics["paused"==n?"pause":n](C(C({event:n},t.playbackState()),Object.keys(i).length>0&&{payload:i}))}catch(t){console.error(t)}}}))},t.prototype.startInterval=function(){var t=this;this.heartbeatIntervalTimer||(this.heartbeatIntervalTimer=setInterval(function(){t.playerAnalytics.heartbeat(C({event:"heartbeat"},t.playbackState()))},this.heartbeatInterval))},t.prototype.stopInterval=function(){clearInterval(this.heartbeatIntervalTimer)},t.prototype.reportBitrateChange=function(t){if(!this.analyticsInitiated)return void console.warn("[PlayerAnalyticsConnector] Analytics not initiated");this.playerAnalytics.bitrateChanged(C(C({event:"bitrate_changed"},this.playbackState()),{payload:t}))},t.prototype.reportStop=function(){if(!this.analyticsInitiated)return void console.warn("[PlayerAnalyticsConnector] Analytics not initiated");this.playerAnalytics.stopped(C(C({event:"stopped"},this.playbackState()),{payload:{reason:"aborted"}})),this.stopInterval()},t.prototype.reportError=function(t){if(!this.analyticsInitiated)return void console.warn("[PlayerAnalyticsConnector] Analytics not initiated");this.playerAnalytics.error(C(C({event:"error"},this.playbackState()),{payload:t})),this.playerAnalytics.stopped(C(C({event:"stopped"},this.playbackState()),{payload:{reason:"error"}})),this.stopInterval()},t.prototype.reportMetadata=function(t){if(!this.analyticsInitiated)return void console.warn("[PlayerAnalyticsConnector] Analytics not initiated");this.playerAnalytics.metadata(C(C({event:"metadata"},this.playbackState()),{payload:t}))},t.prototype.reportWarning=function(t){if(!this.analyticsInitiated)return void console.warn("[PlayerAnalyticsConnector] Analytics not initiated");this.playerAnalytics.warning(C(C({event:"warning"},this.playbackState()),{payload:t}))},t.prototype.playbackState=function(){var t,e,n,i,r,o=(null==(t=this.player)?void 0:t.duration)&&(null==(e=this.player)?void 0:e.duration)!==1/0&&(null==(n=this.player)?void 0:n.duration)>0?this.player.duration:-1,a=(null==(i=this.player)?void 0:i.currentTime)&&-1!==o?null==(r=this.player)?void 0:r.currentTime:-1;return{sessionId:this.sessionId,timestamp:Date.now(),playhead:a,duration:o}},t.prototype.deinit=function(){if(!this.analyticsInitiated)return void console.warn("[PlayerAnalyticsConnector] Analytics not initiated");this.stopInterval(),this.heartbeatInterval=null,this.videoEventFilter&&this.videoEventFilter.teardown(),this.videoEventFilter=null},t.prototype.destroy=function(){if(!this.analyticsInitiated)return void console.warn("[PlayerAnalyticsConnector] Analytics not initiated");this.playerAnalytics.destroy(),this.heartbeatInterval=null,this.videoEventFilter&&this.videoEventFilter.teardown(),this.stopInterval()},t}()},73673:()=>{},79513:(t,e,n)=>{"use strict";var i=n(30778);function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function o(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}function a(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var d=function(t,e,n){this.vjsPlayer=t,this.controller=n,this.contentTrackingTimer=null,this.contentComplete=!1,this.updateTimeIntervalHandle=null,this.updateTimeInterval=1e3,this.seekCheckIntervalHandle=null,this.seekCheckInterval=1e3,this.resizeCheckIntervalHandle=null,this.resizeCheckInterval=250,this.seekThreshold=100,this.contentEndedListeners=[],this.contentSource="",this.contentSourceType="",this.contentPlayheadTracker={currentTime:0,previousTime:0,seeking:!1,duration:0},this.vjsPlayerDimensions={width:this.getPlayerWidth(),height:this.getPlayerHeight()},this.vjsControls=this.vjsPlayer.getChild("controlBar"),this.h5Player=null,this.vjsPlayer.one("play",this.setUpPlayerIntervals.bind(this)),this.boundContentEndedListener=this.localContentEndedListener.bind(this),this.vjsPlayer.on("readyforpostroll",this.boundContentEndedListener),this.vjsPlayer.on("dispose",this.playerDisposedListener.bind(this)),this.vjsPlayer.on("readyforpreroll",this.onReadyForPreroll.bind(this)),this.vjsPlayer.on("adtimeout",this.onAdTimeout.bind(this)),this.vjsPlayer.ready(this.onPlayerReady.bind(this)),"onPlay"===this.controller.getSettings().requestMode&&this.vjsPlayer.one("play",this.controller.requestAds.bind(this.controller)),this.vjsPlayer.ads||window.console.warn("You may be using a version of videojs-contrib-ads that is not compatible with your version of video.js."),this.vjsPlayer.ads(e)};d.prototype.setUpPlayerIntervals=function(){this.updateTimeIntervalHandle&&clearInterval(this.updateTimeIntervalHandle),this.seekCheckIntervalHandle&&clearInterval(this.seekCheckIntervalHandle),this.resizeCheckIntervalHandle&&clearInterval(this.resizeCheckIntervalHandle),this.updateTimeIntervalHandle=setInterval(this.updateCurrentTime.bind(this),this.updateTimeInterval),this.seekCheckIntervalHandle=setInterval(this.checkForSeeking.bind(this),this.seekCheckInterval),this.resizeCheckIntervalHandle=setInterval(this.checkForResize.bind(this),this.resizeCheckInterval)},d.prototype.updateCurrentTime=function(){this.contentPlayheadTracker.seeking||(this.contentPlayheadTracker.currentTime=this.vjsPlayer.currentTime())},d.prototype.checkForSeeking=function(){Math.abs((this.vjsPlayer.currentTime()-this.contentPlayheadTracker.previousTime)*1e3)>this.seekCheckInterval+this.seekThreshold?this.contentPlayheadTracker.seeking=!0:this.contentPlayheadTracker.seeking=!1,this.contentPlayheadTracker.previousTime=this.vjsPlayer.currentTime()},d.prototype.checkForResize=function(){var t=this.getPlayerWidth(),e=this.getPlayerHeight();(t!=this.vjsPlayerDimensions.width||e!=this.vjsPlayerDimensions.height)&&(this.vjsPlayerDimensions.width=t,this.vjsPlayerDimensions.height=e,this.controller.onPlayerResize(t,e))},d.prototype.localContentEndedListener=function(){for(var t in this.contentComplete||(this.contentComplete=!0,this.controller.onContentComplete()),this.contentEndedListeners)"function"==typeof this.contentEndedListeners[t]&&this.contentEndedListeners[t]();
vendor: 17,021 bytes, line 1
1this.vjsPlayer.el()&&this.vjsPlayer.one("play",this.setUpPlayerIntervals.bind(this))},d.prototype.onNoPostroll=function(){this.vjsPlayer.trigger("nopostroll")},d.prototype.playerDisposedListener=function(){this.contentEndedListeners=[],this.controller.onPlayerDisposed(),this.contentComplete=!0,this.vjsPlayer.off("readyforpostroll",this.boundContentEndedListener),this.vjsPlayer.ads.adTimeoutTimeout&&clearTimeout(this.vjsPlayer.ads.adTimeoutTimeout);var t=[this.updateTimeIntervalHandle,this.seekCheckIntervalHandle,this.resizeCheckIntervalHandle];for(var e in t)t[e]&&clearInterval(t[e])},d.prototype.onReadyForPreroll=function(){this.controller.onPlayerReadyForPreroll()},d.prototype.onAdTimeout=function(){this.controller.onAdTimeout()},d.prototype.onPlayerReady=function(){this.h5Player=document.getElementById(this.getPlayerId()).getElementsByClassName("vjs-tech")[0],this.h5Player.hasAttribute("autoplay")&&this.controller.setSetting("adWillAutoPlay",!0),this.onVolumeChange(),this.vjsPlayer.on("fullscreenchange",this.onFullscreenChange.bind(this)),this.vjsPlayer.on("volumechange",this.onVolumeChange.bind(this)),this.controller.onPlayerReady()},d.prototype.onFullscreenChange=function(){this.vjsPlayer.isFullscreen()?this.controller.onPlayerEnterFullscreen():this.controller.onPlayerExitFullscreen()},d.prototype.onVolumeChange=function(){var t=this.vjsPlayer.muted()?0:this.vjsPlayer.volume();this.controller.onPlayerVolumeChanged(t)},d.prototype.injectAdContainerDiv=function(t){this.vjsControls.el().parentNode.appendChild(t)},d.prototype.getContentPlayer=function(){return this.h5Player},d.prototype.getVolume=function(){return this.vjsPlayer.muted()?0:this.vjsPlayer.volume()},d.prototype.setVolume=function(t){this.vjsPlayer.volume(t),0==t?this.vjsPlayer.muted(!0):this.vjsPlayer.muted(!1)},d.prototype.unmute=function(){this.vjsPlayer.muted(!1)},d.prototype.mute=function(){this.vjsPlayer.muted(!0)},d.prototype.play=function(){this.vjsPlayer.play()},d.prototype.togglePlayback=function(){this.vjsPlayer.paused()?this.vjsPlayer.play():this.vjsPlayer.pause()},d.prototype.getPlayerWidth=function(){var t=(getComputedStyle(this.vjsPlayer.el())||{}).width;return t&&0!==parseFloat(t)||(t=(this.vjsPlayer.el().getBoundingClientRect()||{}).width),parseFloat(t)||this.vjsPlayer.width()},d.prototype.getPlayerHeight=function(){var t=(getComputedStyle(this.vjsPlayer.el())||{}).height;return t&&0!==parseFloat(t)||(t=(this.vjsPlayer.el().getBoundingClientRect()||{}).height),parseFloat(t)||this.vjsPlayer.height()},d.prototype.getPlayerOptions=function(){return this.vjsPlayer.options_},d.prototype.getPlayerId=function(){return this.vjsPlayer.id()},d.prototype.toggleFullscreen=function(){this.vjsPlayer.isFullscreen()?this.vjsPlayer.exitFullscreen():this.vjsPlayer.requestFullscreen()},d.prototype.getContentPlayheadTracker=function(){return this.contentPlayheadTracker},d.prototype.onAdError=function(t){this.vjsControls.show();var e=void 0!==t.getError?t.getError():t.stack;this.vjsPlayer.trigger({type:"adserror",data:{AdError:e,AdErrorEvent:t}})},d.prototype.onAdLog=function(t){var e=t.getAdData(),n=void 0!==e.adError?e.adError.getMessage():void 0;this.vjsPlayer.trigger({type:"adslog",data:{AdError:n,AdEvent:t}})},d.prototype.onAdBreakStart=function(){this.contentSource=this.vjsPlayer.currentSrc(),this.contentSourceType=this.vjsPlayer.currentType(),this.vjsPlayer.off("readyforpostroll",this.boundContentEndedListener),this.vjsPlayer.ads.startLinearAdMode(),this.vjsControls.hide(),this.vjsPlayer.pause()},d.prototype.onAdBreakEnd=function(){this.vjsPlayer.on("readyforpostroll",this.boundContentEndedListener),this.vjsPlayer.ads.inAdBreak()&&this.vjsPlayer.ads.endLinearAdMode(),this.vjsControls.show()},d.prototype.onAdStart=function(){this.vjsPlayer.trigger("ads-ad-started")},d.prototype.onAllAdsCompleted=function(){!0==this.contentComplete&&(this.contentSource&&this.vjsPlayer.currentSrc()!=this.contentSource&&this.vjsPlayer.src({src:this.contentSource,type:this.contentSourceType}),this.controller.onContentAndAdsCompleted())},d.prototype.onAdsReady=function(){this.vjsPlayer.trigger("adsready")},d.prototype.changeSource=function(t){this.vjsPlayer.currentSrc()&&(this.vjsPlayer.currentTime(0),this.vjsPlayer.pause()),t&&this.vjsPlayer.src(t),this.vjsPlayer.one("loadedmetadata",this.seekContentToZero.bind(this))},d.prototype.seekContentToZero=function(){this.vjsPlayer.currentTime(0)},d.prototype.triggerPlayerEvent=function(t,e){this.vjsPlayer.trigger(t,e)},d.prototype.addContentEndedListener=function(t){this.contentEndedListeners.push(t)},d.prototype.reset=function(){this.vjsPlayer.off("readyforpostroll",this.boundContentEndedListener),this.vjsPlayer.on("readyforpostroll",this.boundContentEndedListener),this.vjsControls.show(),this.vjsPlayer.ads.inAdBreak()&&this.vjsPlayer.ads.endLinearAdMode(),this.contentPlayheadTracker.currentTime=0,this.contentComplete=!1};var l=function(t){this.controller=t,this.adContainerDiv=document.createElement("div"),this.controlsDiv=document.createElement("div"),this.countdownDiv=document.createElement("div"),this.seekBarDiv=document.createElement("div"),this.progressDiv=document.createElement("div"),this.playPauseDiv=document.createElement("div"),this.muteDiv=document.createElement("div"),this.sliderDiv=document.createElement("div"),this.sliderLevelDiv=document.createElement("div"),this.fullscreenDiv=document.createElement("div"),this.boundOnMouseUp=this.onMouseUp.bind(this),this.boundOnMouseMove=this.onMouseMove.bind(this),this.adPlayheadTracker={currentTime:0,duration:0,isPod:!1,adPosition:0,totalAds:0},this.controlPrefix=this.controller.getPlayerId()+"_",this.showCountdown=!0,!1===this.controller.getSettings().showCountdown&&(this.showCountdown=!1),this.isAdNonlinear=!1,this.createAdContainer()};l.prototype.createAdContainer=function(){this.assignControlAttributes(this.adContainerDiv,"ima-ad-container"),this.adContainerDiv.classList.add("hide-ad-container"),this.adContainerDiv.addEventListener("mouseenter",this.showAdControls.bind(this),!1),this.adContainerDiv.addEventListener("mouseleave",this.hideAdControls.bind(this),!1),this.adContainerDiv.addEventListener("click",this.onAdContainerClick.bind(this),!1),this.createControls(),this.controller.injectAdContainerDiv(this.adContainerDiv)},l.prototype.createControls=function(){this.assignControlAttributes(this.controlsDiv,"ima-controls-div"),this.controlsDiv.style.width="100%",this.controller.getIsMobile()?this.countdownDiv.style.display="none":(this.assignControlAttributes(this.countdownDiv,"ima-countdown-div"),this.countdownDiv.innerHTML=this.controller.getSettings().adLabel,this.countdownDiv.style.display=this.showCountdown?"block":"none"),this.assignControlAttributes(this.seekBarDiv,"ima-seek-bar-div"),this.seekBarDiv.style.width="100%",this.assignControlAttributes(this.progressDiv,"ima-progress-div"),this.assignControlAttributes(this.playPauseDiv,"ima-play-pause-div"),this.addClass(this.playPauseDiv,"ima-playing"),this.playPauseDiv.addEventListener("click",this.onAdPlayPauseClick.bind(this),!1),this.assignControlAttributes(this.muteDiv,"ima-mute-div"),this.addClass(this.muteDiv,"ima-non-muted"),this.muteDiv.addEventListener("click",this.onAdMuteClick.bind(this),!1),this.assignControlAttributes(this.sliderDiv,"ima-slider-div"),this.sliderDiv.addEventListener("mousedown",this.onAdVolumeSliderMouseDown.bind(this),!1),this.controller.getIsIos()&&(this.sliderDiv.style.display="none"),this.assignControlAttributes(this.sliderLevelDiv,"ima-slider-level-div"),this.assignControlAttributes(this.fullscreenDiv,"ima-fullscreen-div"),this.addClass(this.fullscreenDiv,"ima-non-fullscreen"),this.fullscreenDiv.addEventListener("click",this.onAdFullscreenClick.bind(this),!1),this.adContainerDiv.appendChild(this.controlsDiv),this.controlsDiv.appendChild(this.countdownDiv),this.controlsDiv.appendChild(this.seekBarDiv),this.controlsDiv.appendChild(this.playPauseDiv),this.controlsDiv.appendChild(this.muteDiv),this.controlsDiv.appendChild(this.sliderDiv),this.controlsDiv.appendChild(this.fullscreenDiv),this.seekBarDiv.appendChild(this.progressDiv),this.sliderDiv.appendChild(this.sliderLevelDiv)},l.prototype.onAdPlayPauseClick=function(){this.controller.onAdPlayPauseClick()},l.prototype.onAdMuteClick=function(){this.controller.onAdMuteClick()},l.prototype.onAdFullscreenClick=function(){this.controller.toggleFullscreen()},l.prototype.onAdsPaused=function(){this.controller.sdkImpl.adPlaying=!1,this.addClass(this.playPauseDiv,"ima-paused"),this.removeClass(this.playPauseDiv,"ima-playing"),this.showAdControls()},l.prototype.onAdsResumed=function(){this.onAdsPlaying(),this.showAdControls()},l.prototype.onAdsPlaying=function(){this.controller.sdkImpl.adPlaying=!0,this.addClass(this.playPauseDiv,"ima-playing"),this.removeClass(this.playPauseDiv,"ima-paused")},l.prototype.updateAdUi=function(t,e,n,i,r){var o=Math.floor(e/60),a=Math.floor(e%60);a.toString().length<2&&(a="0"+a);var s=": ";r>1&&(s=" ("+i+" "+this.controller.getSettings().adLabelNofN+" "+r+"): "),this.countdownDiv.innerHTML=this.controller.getSettings().adLabel+s+o+":"+a,this.progressDiv.style.width=t/n*100+"%"},l.prototype.unmute=function(){this.addClass(this.muteDiv,"ima-non-muted"),this.removeClass(this.muteDiv,"ima-muted"),this.sliderLevelDiv.style.width=100*this.controller.getPlayerVolume()+"%"},l.prototype.mute=function(){this.addClass(this.muteDiv,"ima-muted"),this.removeClass(this.muteDiv,"ima-non-muted"),this.sliderLevelDiv.style.width="0%"},l.prototype.onAdVolumeSliderMouseDown=function(){document.addEventListener("mouseup",this.boundOnMouseUp,!1),document.addEventListener("mousemove",this.boundOnMouseMove,!1)},l.prototype.onMouseMove=function(t){this.changeVolume(t)},l.prototype.onMouseUp=function(t){this.changeVolume(t),document.removeEventListener("mouseup",this.boundOnMouseUp),document.removeEventListener("mousemove",this.boundOnMouseMove)},l.prototype.changeVolume=function(t){var e=(t.clientX-this.sliderDiv.getBoundingClientRect().left)/this.sliderDiv.offsetWidth;e*=100,e=Math.min(Math.max(e,0),100),this.sliderLevelDiv.style.width=e+"%",0==this.percent?(this.addClass(this.muteDiv,"ima-muted"),this.removeClass(this.muteDiv,"ima-non-muted")):(this.addClass(this.muteDiv,"ima-non-muted"),this.removeClass(this.muteDiv,"ima-muted")),this.controller.setVolume(e/100)},l.prototype.showAdContainer=function(){this.adContainerDiv.classList.remove("hide-ad-container")},l.prototype.hideAdContainer=function(){this.adContainerDiv.classList.add("hide-ad-container")},l.prototype.onAdContainerClick=function(){this.isAdNonlinear&&this.controller.togglePlayback()},l.prototype.reset=function(){this.hideAdContainer()},l.prototype.onAdError=function(){this.hideAdContainer()},l.prototype.onAdBreakStart=function(t){this.showAdContainer(),"application/javascript"!==t.getAd().getContentType()||this.controller.getSettings().showControlsForJSAds?this.controlsDiv.style.display="block":this.controlsDiv.style.display="none",this.onAdsPlaying(),this.hideAdControls()},l.prototype.onAdBreakEnd=function(){var t=this.controller.getCurrentAd();(null==t||t.isLinear())&&this.hideAdContainer(),this.controlsDiv.style.display="none",this.countdownDiv.innerHTML=""},l.prototype.onAllAdsCompleted=function(){this.hideAdContainer()},l.prototype.onLinearAdStart=function(){this.removeClass(this.adContainerDiv,"bumpable-ima-ad-container"),this.isAdNonlinear=!1},l.prototype.onNonLinearAdLoad=function(){this.addClass(this.adContainerDiv,"bumpable-ima-ad-container"),this.isAdNonlinear=!0},l.prototype.onPlayerEnterFullscreen=function(){this.addClass(this.fullscreenDiv,"ima-fullscreen"),this.removeClass(this.fullscreenDiv,"ima-non-fullscreen")},l.prototype.onPlayerExitFullscreen=function(){this.addClass(this.fullscreenDiv,"ima-non-fullscreen"),this.removeClass(this.fullscreenDiv,"ima-fullscreen")},l.prototype.onPlayerVolumeChanged=function(t){0==t?(this.addClass(this.muteDiv,"ima-muted"),this.removeClass(this.muteDiv,"ima-non-muted"),this.sliderLevelDiv.style.width="0%"):(this.addClass(this.muteDiv,"ima-non-muted"),this.removeClass(this.muteDiv,"ima-muted"),this.sliderLevelDiv.style.width=100*t+"%")},l.prototype.showAdControls=function(){this.controller.getSettings().disableAdControls||this.addClass(this.controlsDiv,"ima-controls-div-showing")},l.prototype.hideAdControls=function(){this.removeClass(this.controlsDiv,"ima-controls-div-showing")},l.prototype.assignControlAttributes=function(t,e){t.id=this.controlPrefix+e,t.className=this.controlPrefix+e+" "+e},l.prototype.getClassRegexp=function(t){return RegExp("(^|[^A-Za-z-])"+t+"((?![A-Za-z-])|$)","gi")},l.prototype.elementHasClass=function(t,e){return this.getClassRegexp(e).test(t.className)},l.prototype.addClass=function(t,e){t.className=t.className.trim()+" "+e},l.prototype.removeClass=function(t,e){var n=this.getClassRegexp(e);t.className=t.className.trim().replace(n,"")},l.prototype.getAdContainerDiv=function(){return this.adContainerDiv},l.prototype.setShowCountdown=function(t){this.showCountdown=t,this.countdownDiv.style.display=this.showCountdown?"block":"none"};var c={version:"2.6.0"},u=function(t){this.controller=t,this.adDisplayContainer=null,this.adDisplayContainerInitialized=!1,this.adsLoader=null,this.adsManager=null,this.adsRenderingSettings=null,this.adsResponse=null,this.currentAd=null,this.adTrackingTimer=null,this.allAdsCompleted=!1,this.adsActive=!1,this.adPlaying=!1,this.adMuted=!1,this.adBreakReadyListener=void 0,this.contentCompleteCalled=!1,this.isAdTimedOut=!1,this.adsManagerDimensions={width:0,height:0},this.autoPlayAdBreaks=!0,!1===this.controller.getSettings().autoPlayAdBreaks&&(this.autoPlayAdBreaks=!1),this.controller.getSettings().locale&&google.ima.settings.setLocale(this.controller.getSettings().locale),this.controller.getSettings().disableFlashAds&&google.ima.settings.setDisableFlashAds(this.controller.getSettings().disableFlashAds),this.controller.getSettings().disableCustomPlaybackForIOS10Plus&&google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.controller.getSettings().disableCustomPlaybackForIOS10Plus),this.controller.getSettings().ppid&&google.ima.settings.setPpid(this.controller.getSettings().ppid),this.controller.getSettings().featureFlags&&google.ima.settings.setFeatureFlags(this.controller.getSettings().featureFlags)};u.prototype.initAdObjects=function(){this.adDisplayContainer=new google.ima.AdDisplayContainer(this.controller.getAdContainerDiv(),this.controller.getContentPlayer()),this.adsLoader=new google.ima.AdsLoader(this.adDisplayContainer),this.adsLoader.getSettings().setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),!1==this.controller.getSettings().vpaidAllowed&&this.adsLoader.getSettings().setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.DISABLED),void 0!==this.controller.getSettings().vpaidMode&&this.adsLoader.getSettings().setVpaidMode(this.controller.getSettings().vpaidMode),this.controller.getSettings().locale&&this.adsLoader.getSettings().setLocale(this.controller.getSettings().locale),this.controller.getSettings().numRedirects&&this.adsLoader.getSettings().setNumRedirects(this.controller.getSettings().numRedirects),this.controller.getSettings().sessionId&&this.adsLoader.getSettings().setSessionId(this.controller.getSettings().sessionId),this.adsLoader.getSettings().setPlayerType("videojs-ima"),this.adsLoader.getSettings().setPlayerVersion(c.version),this.adsLoader.getSettings().setAutoPlayAdBreaks(this.autoPlayAdBreaks),this.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdsManagerLoaded.bind(this),!1),this.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdsLoaderError.bind(this),!1),this.controller.playerWrapper.vjsPlayer.trigger({type:"ads-loader",adsLoader:this.adsLoader})},u.prototype.requestAds=function(){var t=new google.ima.AdsRequest;if(this.controller.getSettings().adTagUrl?t.adTagUrl=this.controller.getSettings().adTagUrl:t.adsResponse=this.controller.getSettings().adsResponse,this.controller.getSettings().forceNonLinearFullSlot&&(t.forceNonLinearFullSlot=!0),this.controller.getSettings().vastLoadTimeout&&(t.vastLoadTimeout=this.controller.getSettings().vastLoadTimeout),this.controller.getSettings().omidMode&&window.console.warn("The additional setting `omidMode` has been removed. Use `omidVendorAccess` instead."),this.controller.getSettings().omidVendorAccess){t.omidAccessModeRules={};var e=this.controller.getSettings().omidVendorAccess;Object.keys(e).forEach(function(n){t.omidAccessModeRules[n]=e[n]})}t.linearAdSlotWidth=this.controller.getPlayerWidth(),t.linearAdSlotHeight=this.controller.getPlayerHeight(),t.nonLinearAdSlotWidth=this.controller.getSettings().nonLinearWidth||this.controller.getPlayerWidth(),t.nonLinearAdSlotHeight=this.controller.getSettings().nonLinearHeight||this.controller.getPlayerHeight(),t.setAdWillAutoPlay(this.controller.adsWillAutoplay()),t.setAdWillPlayMuted(this.controller.adsWillPlayMuted());var n=this.controller.getSettings().adsRequest;
vendor: 16,384 bytes, line 1
1n&&"object"===s(n)&&Object.keys(n).forEach(function(e){t[e]=n[e]}),this.adsLoader.requestAds(t),this.controller.playerWrapper.vjsPlayer.trigger({type:"ads-request",AdsRequest:t})},u.prototype.onAdsManagerLoaded=function(t){this.createAdsRenderingSettings(),this.adsManager=t.getAdsManager(this.controller.getContentPlayheadTracker(),this.adsRenderingSettings),this.adsManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.AD_BREAK_READY,this.onAdBreakReady.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,this.onContentPauseRequested.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,this.onContentResumeRequested.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.ALL_ADS_COMPLETED,this.onAllAdsCompleted.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.LOADED,this.onAdLoaded.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.STARTED,this.onAdStarted.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,this.onAdComplete.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.SKIPPED,this.onAdComplete.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.LOG,this.onAdLog.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.PAUSED,this.onAdPaused.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.RESUMED,this.onAdResumed.bind(this)),this.controller.playerWrapper.vjsPlayer.trigger({type:"ads-manager",adsManager:this.adsManager}),this.autoPlayAdBreaks||this.initAdsManager();var e=this.controller.getSettings().preventLateAdStart;e?e&&!this.isAdTimedOut&&this.controller.onAdsReady():this.controller.onAdsReady(),this.controller.getSettings().adsManagerLoadedCallback&&this.controller.getSettings().adsManagerLoadedCallback()},u.prototype.onAdsLoaderError=function(t){window.console.warn("AdsLoader error: "+t.getError()),this.controller.onErrorLoadingAds(t),this.adsManager&&this.adsManager.destroy()},u.prototype.initAdsManager=function(){try{var t=this.controller.getPlayerWidth(),e=this.controller.getPlayerHeight();this.adsManagerDimensions.width=t,this.adsManagerDimensions.height=e,this.adsManager.init(t,e),this.adsManager.setVolume(this.controller.getPlayerVolume()),this.initializeAdDisplayContainer()}catch(t){this.onAdError(t)}},u.prototype.createAdsRenderingSettings=function(){if(this.adsRenderingSettings=new google.ima.AdsRenderingSettings,this.adsRenderingSettings.restoreCustomPlaybackStateOnAdBreakComplete=!0,this.controller.getSettings().adsRenderingSettings)for(var t in this.controller.getSettings().adsRenderingSettings)""!==t&&(this.adsRenderingSettings[t]=this.controller.getSettings().adsRenderingSettings[t])},u.prototype.onAdError=function(t){var e=void 0!==t.getError?t.getError():t.stack;window.console.warn("Ad error: "+e),this.adsManager.destroy(),this.controller.onAdError(t),this.adsActive=!1,this.adPlaying=!1},u.prototype.onAdBreakReady=function(t){this.adBreakReadyListener(t)},u.prototype.onContentPauseRequested=function(t){this.adsActive=!0,this.adPlaying=!0,this.controller.onAdBreakStart(t)},u.prototype.onContentResumeRequested=function(t){this.adsActive=!1,this.adPlaying=!1,this.controller.onAdBreakEnd()},u.prototype.onAllAdsCompleted=function(t){this.allAdsCompleted=!0,this.controller.onAllAdsCompleted()},u.prototype.onAdLoaded=function(t){t.getAd().isLinear()||(this.controller.onNonLinearAdLoad(),this.controller.playContent())},u.prototype.onAdStarted=function(t){this.currentAd=t.getAd(),this.currentAd.isLinear()?(this.adTrackingTimer=setInterval(this.onAdPlayheadTrackerInterval.bind(this),250),this.controller.onLinearAdStart()):this.controller.onNonLinearAdStart()},u.prototype.onAdPaused=function(){this.controller.onAdsPaused()},u.prototype.onAdResumed=function(t){this.controller.onAdsResumed()},u.prototype.onAdComplete=function(){this.currentAd.isLinear()&&clearInterval(this.adTrackingTimer)},u.prototype.onAdLog=function(t){this.controller.onAdLog(t)},u.prototype.onAdPlayheadTrackerInterval=function(){if(null!==this.adsManager){var t,e=this.adsManager.getRemainingTime(),n=this.currentAd.getDuration(),i=n-e;i=i>0?i:0;var r=0;this.currentAd.getAdPodInfo()&&(t=this.currentAd.getAdPodInfo().getAdPosition(),r=this.currentAd.getAdPodInfo().getTotalAds()),this.controller.onAdPlayheadUpdated(i,e,n,t,r)}},u.prototype.onContentComplete=function(){this.adsLoader&&(this.adsLoader.contentComplete(),this.contentCompleteCalled=!0),(this.adsManager&&this.adsManager.getCuePoints()&&!this.adsManager.getCuePoints().includes(-1)||!this.adsManager)&&this.controller.onNoPostroll(),this.allAdsCompleted&&this.controller.onContentAndAdsCompleted()},u.prototype.onPlayerDisposed=function(){this.adTrackingTimer&&clearInterval(this.adTrackingTimer),this.adsManager&&(this.adsManager.destroy(),this.adsManager=null)},u.prototype.onPlayerReadyForPreroll=function(){if(this.autoPlayAdBreaks){this.initAdsManager();try{this.controller.showAdContainer(),this.adsManager.setVolume(this.controller.getPlayerVolume()),this.adsManager.start()}catch(t){this.onAdError(t)}}},u.prototype.onAdTimeout=function(){this.isAdTimedOut=!0},u.prototype.onPlayerReady=function(){this.initAdObjects(),(this.controller.getSettings().adTagUrl||this.controller.getSettings().adsResponse)&&"onLoad"===this.controller.getSettings().requestMode&&this.requestAds()},u.prototype.onPlayerEnterFullscreen=function(){this.adsManager&&this.adsManager.resize(window.screen.width,window.screen.height)},u.prototype.onPlayerExitFullscreen=function(){this.adsManager&&this.adsManager.resize(this.controller.getPlayerWidth(),this.controller.getPlayerHeight())},u.prototype.onPlayerVolumeChanged=function(t){this.adsManager&&this.adsManager.setVolume(t),0==t?this.adMuted=!0:this.adMuted=!1},u.prototype.onPlayerResize=function(t,e){this.adsManager&&(this.adsManagerDimensions.width=t,this.adsManagerDimensions.height=e,this.adsManager.resize(t,e))},u.prototype.getCurrentAd=function(){return this.currentAd},u.prototype.setAdBreakReadyListener=function(t){this.adBreakReadyListener=t},u.prototype.isAdPlaying=function(){return this.adPlaying},u.prototype.isAdMuted=function(){return this.adMuted},u.prototype.pauseAds=function(){this.adsManager.pause(),this.adPlaying=!1},u.prototype.resumeAds=function(){this.adsManager.resume(),this.adPlaying=!0},u.prototype.unmute=function(){this.adsManager.setVolume(1),this.adMuted=!1},u.prototype.mute=function(){this.adsManager.setVolume(0),this.adMuted=!0},u.prototype.setVolume=function(t){this.adsManager.setVolume(t),0==t?this.adMuted=!0:this.adMuted=!1},u.prototype.initializeAdDisplayContainer=function(){this.adDisplayContainer&&!this.adDisplayContainerInitialized&&(this.adDisplayContainer.initialize(),this.adDisplayContainerInitialized=!0)},u.prototype.playAdBreak=function(){this.autoPlayAdBreaks||(this.controller.showAdContainer(),this.adsManager.setVolume(this.controller.getPlayerVolume()),this.adsManager.start())},u.prototype.addEventListener=function(t,e){this.adsManager&&this.adsManager.addEventListener(t,e)},u.prototype.getAdsManager=function(){return this.adsManager},u.prototype.reset=function(){this.adsActive=!1,this.adPlaying=!1,this.adTrackingTimer&&clearInterval(this.adTrackingTimer),this.adsManager&&(this.adsManager.destroy(),this.adsManager=null),this.adsLoader&&!this.contentCompleteCalled&&this.adsLoader.contentComplete(),this.contentCompleteCalled=!1,this.allAdsCompleted=!1};var h=function(t,e){this.settings={},this.contentAndAdsEndedListeners=[],this.isMobile=navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i),this.isIos=navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i),this.initWithSettings(e);var n=Object.assign({},{debug:this.settings.debug,timeout:this.settings.timeout,prerollTimeout:this.settings.prerollTimeout},e.contribAdsSettings||{});this.playerWrapper=new d(t,n,this),this.adUi=new l(this),this.sdkImpl=new u(this)};h.IMA_DEFAULTS={adLabel:"Advertisement",adLabelNofN:"of",debug:!1,disableAdControls:!1,prerollTimeout:1e3,preventLateAdStart:!1,requestMode:"onLoad",showControlsForJSAds:!0,timeout:5e3},h.prototype.initWithSettings=function(t){this.settings=Object.assign({},h.IMA_DEFAULTS,t||{}),this.warnAboutDeprecatedSettings(),this.showCountdown=!0,!1===this.settings.showCountdown&&(this.showCountdown=!1)},h.prototype.warnAboutDeprecatedSettings=function(){var t=this;["adWillAutoplay","adsWillAutoplay","adWillPlayMuted","adsWillPlayMuted"].forEach(function(e){void 0!==t.settings[e]&&console.warn("WARNING: videojs.ima setting "+e+" is deprecated")})},h.prototype.getSettings=function(){return this.settings},h.prototype.getIsMobile=function(){return this.isMobile},h.prototype.getIsIos=function(){return this.isIos},h.prototype.injectAdContainerDiv=function(t){this.playerWrapper.injectAdContainerDiv(t)},h.prototype.getAdContainerDiv=function(){return this.adUi.getAdContainerDiv()},h.prototype.getContentPlayer=function(){return this.playerWrapper.getContentPlayer()},h.prototype.getContentPlayheadTracker=function(){return this.playerWrapper.getContentPlayheadTracker()},h.prototype.requestAds=function(){this.sdkImpl.requestAds()},h.prototype.setSetting=function(t,e){this.settings[t]=e},h.prototype.onErrorLoadingAds=function(t){this.adUi.onAdError(),this.playerWrapper.onAdError(t)},h.prototype.onAdPlayPauseClick=function(){this.sdkImpl.isAdPlaying()?(this.adUi.onAdsPaused(),this.sdkImpl.pauseAds()):(this.adUi.onAdsPlaying(),this.sdkImpl.resumeAds())},h.prototype.onAdMuteClick=function(){this.sdkImpl.isAdMuted()?(this.playerWrapper.unmute(),this.adUi.unmute(),this.sdkImpl.unmute()):(this.playerWrapper.mute(),this.adUi.mute(),this.sdkImpl.mute())},h.prototype.setVolume=function(t){this.playerWrapper.setVolume(t),this.sdkImpl.setVolume(t)},h.prototype.getPlayerVolume=function(){return this.playerWrapper.getVolume()},h.prototype.toggleFullscreen=function(){this.playerWrapper.toggleFullscreen()},h.prototype.onAdError=function(t){this.adUi.onAdError(),this.playerWrapper.onAdError(t)},h.prototype.onAdBreakStart=function(t){this.playerWrapper.onAdBreakStart(),this.adUi.onAdBreakStart(t)},h.prototype.showAdContainer=function(){this.adUi.showAdContainer()},h.prototype.onAdBreakEnd=function(){this.playerWrapper.onAdBreakEnd(),this.adUi.onAdBreakEnd()},h.prototype.onAllAdsCompleted=function(){this.adUi.onAllAdsCompleted(),this.playerWrapper.onAllAdsCompleted()},h.prototype.onAdsPaused=function(){this.adUi.onAdsPaused()},h.prototype.onAdsResumed=function(){this.adUi.onAdsResumed()},h.prototype.onAdPlayheadUpdated=function(t,e,n,i,r){this.adUi.updateAdUi(t,e,n,i,r)},h.prototype.onAdLog=function(t){this.playerWrapper.onAdLog(t)},h.prototype.getCurrentAd=function(){return this.sdkImpl.getCurrentAd()},h.prototype.playContent=function(){this.playerWrapper.play()},h.prototype.onLinearAdStart=function(){this.adUi.onLinearAdStart(),this.playerWrapper.onAdStart()},h.prototype.onNonLinearAdLoad=function(){this.adUi.onNonLinearAdLoad()},h.prototype.onNonLinearAdStart=function(){this.adUi.onNonLinearAdLoad(),this.playerWrapper.onAdStart()},h.prototype.getPlayerWidth=function(){return this.playerWrapper.getPlayerWidth()},h.prototype.getPlayerHeight=function(){return this.playerWrapper.getPlayerHeight()},h.prototype.onAdsReady=function(){this.playerWrapper.onAdsReady()},h.prototype.onPlayerResize=function(t,e){this.sdkImpl.onPlayerResize(t,e)},h.prototype.onContentComplete=function(){this.sdkImpl.onContentComplete()},h.prototype.onNoPostroll=function(){this.playerWrapper.onNoPostroll()},h.prototype.onContentAndAdsCompleted=function(){for(var t in this.contentAndAdsEndedListeners)"function"==typeof this.contentAndAdsEndedListeners[t]&&this.contentAndAdsEndedListeners[t]()},h.prototype.onPlayerDisposed=function(){this.contentAndAdsEndedListeners=[],this.sdkImpl.onPlayerDisposed()},h.prototype.onPlayerReadyForPreroll=function(){this.sdkImpl.onPlayerReadyForPreroll()},h.prototype.onAdTimeout=function(){this.sdkImpl.onAdTimeout()},h.prototype.onPlayerReady=function(){this.sdkImpl.onPlayerReady()},h.prototype.onPlayerEnterFullscreen=function(){this.adUi.onPlayerEnterFullscreen(),this.sdkImpl.onPlayerEnterFullscreen()},h.prototype.onPlayerExitFullscreen=function(){this.adUi.onPlayerExitFullscreen(),this.sdkImpl.onPlayerExitFullscreen()},h.prototype.onPlayerVolumeChanged=function(t){this.adUi.onPlayerVolumeChanged(t),this.sdkImpl.onPlayerVolumeChanged(t)},h.prototype.setContentWithAdTag=function(t,e){this.reset(),this.settings.adTagUrl=e||this.settings.adTagUrl,this.playerWrapper.changeSource(t)},h.prototype.setContentWithAdsResponse=function(t,e){this.reset(),this.settings.adsResponse=e||this.settings.adsResponse,this.playerWrapper.changeSource(t)},h.prototype.setContentWithAdsRequest=function(t,e){this.reset(),this.settings.adsRequest=e||this.settings.adsRequest,this.playerWrapper.changeSource(t)},h.prototype.reset=function(){this.sdkImpl.reset(),this.playerWrapper.reset(),this.adUi.reset()},h.prototype.addContentEndedListener=function(t){this.playerWrapper.addContentEndedListener(t)},h.prototype.addContentAndAdsEndedListener=function(t){this.contentAndAdsEndedListeners.push(t)},h.prototype.setAdBreakReadyListener=function(t){this.sdkImpl.setAdBreakReadyListener(t)},h.prototype.setShowCountdown=function(t){this.adUi.setShowCountdown(t),this.showCountdown=t,this.adUi.countdownDiv.style.display=this.showCountdown?"block":"none"},h.prototype.initializeAdDisplayContainer=function(){this.sdkImpl.initializeAdDisplayContainer()},h.prototype.playAdBreak=function(){this.sdkImpl.playAdBreak()},h.prototype.addEventListener=function(t,e){this.sdkImpl.addEventListener(t,e)},h.prototype.getAdsManager=function(){return this.sdkImpl.getAdsManager()},h.prototype.getPlayerId=function(){return this.playerWrapper.getPlayerId()},h.prototype.changeAdTag=function(t){this.reset(),this.settings.adTagUrl=t},h.prototype.pauseAd=function(){this.adUi.onAdsPaused(),this.sdkImpl.pauseAds()},h.prototype.resumeAd=function(){this.adUi.onAdsPlaying(),this.sdkImpl.resumeAds()},h.prototype.togglePlayback=function(){this.playerWrapper.togglePlayback()},h.prototype.adsWillAutoplay=function(){return void 0!==this.settings.adsWillAutoplay?this.settings.adsWillAutoplay:void 0!==this.settings.adWillAutoplay?this.settings.adWillAutoplay:!!this.playerWrapper.getPlayerOptions().autoplay},h.prototype.adsWillPlayMuted=function(){return void 0!==this.settings.adsWillPlayMuted?this.settings.adsWillPlayMuted:void 0!==this.settings.adWillPlayMuted?this.settings.adWillPlayMuted:void 0!==this.playerWrapper.getPlayerOptions().muted?this.playerWrapper.getPlayerOptions().muted:0==this.playerWrapper.getVolume()},h.prototype.triggerPlayerEvent=function(t,e){this.playerWrapper.triggerPlayerEvent(t,e)};var A=function(t,e,n){this.vjsPlayer=t,this.daiController=n,this.vjsControls=this.vjsPlayer.getChild("controlBar"),this.h5Player=null,this.vjsPlayer.on("dispose",this.playerDisposedListener.bind(this)),this.vjsPlayer.on("pause",this.onPause.bind(this)),this.vjsPlayer.on("play",this.onPlay.bind(this)),this.vjsPlayer.on("seeked",this.onSeekEnd.bind(this)),this.vjsPlayer.ready(this.onPlayerReady.bind(this)),this.vjsPlayer.ads||window.console.warn("You may be using a version of videojs-contrib-ads that is not compatible with your version of video.js."),this.vjsPlayer.ads(e)};A.prototype.playerDisposedListener=function(){this.contentEndedListeners=[],this.daiController.onPlayerDisposed()},A.prototype.onPause=function(){this.daiController.isInAdBreak()&&this.vjsControls.show()},A.prototype.onPlay=function(){this.daiController.isInAdBreak()&&this.vjsControls.hide()},A.prototype.onSeekEnd=function(){this.daiController.onSeekEnd(this.vjsPlayer.currentTime())},A.prototype.onPlayerReady=function(){this.h5Player=document.getElementById(this.getPlayerId()).getElementsByClassName("vjs-tech")[0],this.daiController.onPlayerReady()},A.prototype.getStreamPlayer=function(){return this.h5Player},A.prototype.getVjsPlayer=function(){return this.vjsPlayer},A.prototype.getPlayerOptions=function(){return this.vjsPlayer.options_},A.prototype.getPlayerId=function(){return this.vjsPlayer.id()},A.prototype.onAdError=function(t){t
1his.vjsControls.show();var e=void 0!==t.getError?t.getError():t.stack;this.vjsPlayer.trigger({type:"adserror",data:{AdError:e,AdErrorEvent:t}})},A.prototype.onAdBreakStart=function(){this.vjsControls.hide()},A.prototype.onAdBreakEnd=function(){this.vjsControls.show()},A.prototype.reset=function(){this.vjsControls.show()};var p="TXXX",y=function(t){this.daiController=t,this.streamPlayer=null,this.vjsPlayer=null,this.streamManager=null,this.uiSettings=new google.ima.dai.api.UiSettings,this.isAdBreak=!1,this.isSnapback=!1,this.snapForwardTime=0,this.timedMetadata,this.metadataLoaded={},this.SOURCE_TYPES={hls:"application/x-mpegURL",dash:"application/dash+xml"}};y.prototype.initImaDai=function(){var t=this;this.streamPlayer=this.daiController.getStreamPlayer(),this.vjsPlayer=this.daiController.getVjsPlayer(),this.createAdUiDiv(),this.daiController.getSettings().locale&&this.uiSettings.setLocale(this.daiController.getSettings().locale),this.streamManager=new google.ima.dai.api.StreamManager(this.streamPlayer,this.adUiDiv,this.uiSettings),this.streamPlayer.addEventListener("pause",this.onStreamPause),this.streamPlayer.addEventListener("play",this.onStreamPlay),[google.ima.dai.api.StreamEvent.Type.LOADED,google.ima.dai.api.StreamEvent.Type.ERROR,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED].forEach(function(e){t.streamManager.addEventListener(e,t.onStreamEvent.bind(t))}),this.vjsPlayer.textTracks().onaddtrack=this.onAddTrack.bind(this),this.vjsPlayer.trigger({type:"stream-manager",StreamManager:this.streamManager}),this.requestStream()},y.prototype.onAddTrack=function(t){var e=this,n=t.track;"metadata"===n.kind&&(n.mode="hidden",n.addEventListener("cuechange",function(t){var i=n.activeCues_||n.activeCues;if(i){var o,a=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return r(t,void 0);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,d=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){d=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(d)throw a}}}}(i);try{for(a.s();!(o=a.n()).done;){var s,d,l,c=o.value;c.value&&c.value.key===p&&e.streamManager.onTimedMetadata((s={},d=p,l=c.value.data,(d=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e);if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(d))in s?Object.defineProperty(s,d,{value:l,enumerable:!0,configurable:!0,writable:!0}):s[d]=l,s))}}catch(t){a.e(t)}finally{a.f()}}}))},y.prototype.createAdUiDiv=function(){var t=document.createElement("div");t.id="ad-ui",t.style.height="calc(100% - 3em)",this.streamPlayer.parentNode.appendChild(t),this.adUiDiv=t},y.prototype.onStreamPause=function(){this.isAdBreak&&(this.adUiDiv.style.display="none")},y.prototype.onStreamPlay=function(){this.isAdBreak&&(this.adUiDiv.style.display="block")},y.prototype.onSeekEnd=function(t){if("live"!==this.daiController.getSettings().streamType){if(this.isSnapback){this.isSnapback=!1;return}var e=this.streamManager.previousCuePointForStreamTime(t);e&&!e.played&&(this.isSnapback=!0,this.snapForwardTime=t,this.vjsPlayer.currentTime(e.start))}},y.prototype.onStreamEvent=function(t){switch(t.type){case google.ima.dai.api.StreamEvent.Type.LOADED:this.loadUrl(t.getStreamData().url);break;case google.ima.dai.api.StreamEvent.Type.ERROR:window.console.warn("Error loading stream, attempting to play backup stream. "+t.getStreamData().errorMessage),this.daiController.onErrorLoadingAds(t),this.daiController.getSettings().fallbackStreamUrl&&this.loadUrl(this.daiController.getSettings().fallbackStreamUrl);break;case google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED:this.isAdBreak=!0,this.adUiDiv.style.display="block",this.daiController.onAdBreakStart();break;case google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED:this.isAdBreak=!1,this.adUiDiv.style.display="none",this.daiController.onAdBreakEnd(),this.snapForwardTime&&this.snapForwardTime>this.vjsPlayer.currentTime()&&(this.vjsPlayer.currentTime(this.snapForwardTime),this.snapForwardTime=0)}},y.prototype.loadUrl=function(t){this.vjsPlayer.ready((function(){var e=this.daiController.getSettings().streamFormat;this.vjsPlayer.src({src:t,type:this.SOURCE_TYPES[e]});var n=this.daiController.getSettings().bookmarkTime;if(n){var i=this.streamManager.streamTimeForContentTime(n);this.isSnapback=!0,this.vjsPlayer.currentTime(i)}}).bind(this))},y.prototype.requestStream=function(){var t,e=this.daiController.getSettings().streamType;if("vod"===e?((t=new google.ima.dai.api.VODStreamRequest).contentSourceId=this.daiController.getSettings().cmsId,t.videoId=this.daiController.getSettings().videoId):"live"===e?(t=new google.ima.dai.api.LiveStreamRequest).assetKey=this.daiController.getSettings().assetKey:window.console.warn("No valid stream type selected"),t.format=this.daiController.getSettings().streamFormat,this.daiController.getSettings().apiKey&&(t.apiKey=this.daiController.getSettings().apiKey),this.daiController.getSettings().authToken&&(t.authToken=this.daiController.getSettings().authToken),this.daiController.getSettings().adTagParameters&&(t.adTagParameters=this.daiController.getSettings().adTagParameters),this.daiController.getSettings().streamActivityMonitorId&&(t.streamActivityMonitorId=this.daiController.getSettings().streamActivityMonitorId),this.daiController.getSettings().omidMode){t.omidAccessModeRules={};var n=this.daiController.getSettings().omidMode;n.FULL&&(t.omidAccessModeRules[google.ima.OmidAccessMode.FULL]=n.FULL),n.DOMAIN&&(t.omidAccessModeRules[google.ima.OmidAccessMode.DOMAIN]=n.DOMAIN),n.LIMITED&&(t.omidAccessModeRules[google.ima.OmidAccessMode.LIMITED]=n.LIMITED)}this.streamManager.requestStream(t),this.vjsPlayer.trigger({type:"stream-request",StreamRequest:t})},y.prototype.onPlayerReady=function(){this.initImaDai()},y.prototype.onPlayerDisposed=function(){this.streamManager&&this.streamManager.reset()},y.prototype.addEventListener=function(t,e){this.streamManager&&this.streamManager.addEventListener(t,e)},y.prototype.getStreamManager=function(){return this.streamManager},y.prototype.reset=function(){this.streamManager&&this.streamManager.reset()};var g=function(t,e){this.inAdBreak=!1,this.settings={},this.isMobile=navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i),this.isIos=navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i),this.initWithSettings(e);var n=Object.assign({},{debug:this.settings.debug,timeout:this.settings.timeout,prerollTimeout:this.settings.prerollTimeout},e.contribAdsSettings||{});this.playerWrapper=new A(t,n,this),this.sdkImpl=new y(this)};g.IMA_DEFAULTS={adLabel:"Advertisement",adLabelNofN:"of",debug:!1,disableAdControls:!1,showControlsForJSAds:!0},g.prototype.initWithSettings=function(t){this.settings=Object.assign({},g.IMA_DEFAULTS,t||{}),this.warnAboutDeprecatedSettings(),this.showCountdown=!0,!1===this.settings.showCountdown&&(this.showCountdown=!1)},g.prototype.warnAboutDeprecatedSettings=function(){var t=this;[].forEach(function(e){void 0!==t.settings[e]&&console.warn("WARNING: videojs.imaDai setting "+e+" is deprecated")})},g.prototype.getSettings=function(){return this.settings},g.prototype.getIsMobile=function(){return this.isMobile},g.prototype.getIsIos=function(){return this.isIos},g.prototype.getStreamPlayer=function(){return this.playerWrapper.getStreamPlayer()},g.prototype.getVjsPlayer=function(){return this.playerWrapper.getVjsPlayer()},g.prototype.requestStream=function(){this.sdkImpl.requestStream()},g.prototype.setSetting=function(t,e){this.settings[t]=e},g.prototype.onErrorLoadingAds=function(t){this.playerWrapper.onAdError(t)},g.prototype.onAdError=function(t){this.playerWrapper.onAdError(t)},g.prototype.onAdBreakStart=function(){this.inAdBreak=!0,this.playerWrapper.onAdBreakStart()},g.prototype.onAdBreakEnd=function(){this.inAdBreak=!1,this.playerWrapper.onAdBreakEnd()},g.prototype.onPlayerDisposed=function(){this.contentAndAdsEndedListeners=[],this.sdkImpl.onPlayerDisposed()},g.prototype.isInAdBreak=function(){return this.inAdBreak},g.prototype.onSeekEnd=function(t){this.sdkImpl.onSeekEnd(t)},g.prototype.onPlayerReady=function(){this.sdkImpl.onPlayerReady()},g.prototype.reset=function(){this.sdkImpl.reset(),this.playerWrapper.reset()},g.prototype.addEventListener=function(t,e){this.sdkImpl.addEventListener(t,e)},g.prototype.getStreamManager=function(){return this.sdkImpl.getStreamManager()},g.prototype.getPlayerId=function(){return this.playerWrapper.getPlayerId()},g.prototype.streamWillAutoplay=function(){return void 0!==this.settings.streamWillAutoplay?this.settings.streamWillAutoplay:!!this.playerWrapper.getPlayerOptions().autoplay},g.prototype.triggerPlayerEvent=function(t,e){this.playerWrapper.triggerPlayerEvent(t,e)};var f=function(t,e){this.controller=new h(t,e),this.addContentAndAdsEndedListener=(function(t){this.controller.addContentAndAdsEndedListener(t)}).bind(this),this.addContentEndedListener=(function(t){this.controller.addContentEndedListener(t)}).bind(this),this.addEventListener=(function(t,e){this.controller.addEventListener(t,e)}).bind(this),this.changeAdTag=(function(t){this.controller.changeAdTag(t)}).bind(this),this.getAdsManager=(function(){return this.controller.getAdsManager()}).bind(this),this.initializeAdDisplayContainer=(function(){this.controller.initializeAdDisplayContainer()}).bind(this),this.pauseAd=(function(){this.controller.pauseAd()}).bind(this),this.playAdBreak=(function(){this.controller.playAdBreak()}).bind(this),this.requestAds=(function(){this.controller.requestAds()}).bind(this),this.resumeAd=(function(){this.controller.resumeAd()}).bind(this),this.setAdBreakReadyListener=(function(t){this.controller.setAdBreakReadyListener(t)}).bind(this),this.setContentWithAdTag=(function(t,e){this.controller.setContentWithAdTag(t,e)}).bind(this),this.setContentWithAdsResponse=(function(t,e){this.controller.setContentWithAdsResponse(t,e)}).bind(this),this.setContentWithAdsRequest=(function(t,e){this.controller.setContentWithAdsRequest(t,e)}).bind(this),this.setShowCountdown=(function(t){this.controller.setShowCountdown(t)}).bind(this)},v=function(t,e){this.controller=new g(t,e),this.streamEndedListener=(function(t){this.controller.addStreamEndedListener(t)}).bind(this),this.addEventListener=(function(t,e){this.controller.addEventListener(t,e)}
1).bind(this),this.getStreamManager=(function(){return this.controller.getStreamManager()}).bind(this)},m=a(function t(e,n){return(o(this,t),"hls"!==(e=e.toLowerCase())&&"dash"!==e)?void window.console.error("VodStream error: incorrect streamFormat."):"dash"===e?void window.console.error("streamFormat error: DASH streams are notcurrently supported by this plugin."):"string"!=typeof n?void window.console.error("assetKey error: value must be string."):void(this.streamFormat=e,this.assetKey=n)}),P=a(function t(e,n,i){return(o(this,t),"hls"!==(e=e.toLowerCase())&&"dash"!==e)?void window.console.error("VodStream error: incorrect streamFormat."):"dash"===e?void window.console.error("streamFormat error: DASH streams are notcurrently supported by this plugin."):"string"!=typeof n?void window.console.error("cmsId error: value must be string."):"string"!=typeof i?void window.console.error("videoId error: value must be string."):void(this.streamFormat=e,this.cmsId=n,this.videoId=i)}),b=i.A.registerPlugin||i.A.plugin;b("ima",function(t){this.ima=new f(this,t)}),b("imaDai",function(t,e){if(t instanceof m)e.streamType="live",e.assetKey=t.assetKey;else{if(!(t instanceof P))return void window.console.error("initDai() first parameter must be an instance of LiveStream or VodStream.");e.streamType="vod",e.cmsId=t.cmsId,e.videoId=t.videoId}e.streamFormat=t.streamFormat,this.imaDai=new v(this,e)})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.