Action News - Action News
Home WebMail Friday, November 22, 2024, 11:56 PM | Calgary | -11.3°C | Regions Advertise Login | Our platform is in maintenance mode. Some URLs may not be available. |

function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _regeneratorRuntime(){"use strict";_regeneratorRuntime=function(){return o};var c,o={},e=Object.prototype,u=e.hasOwnProperty,l=Object.defineProperty||function(e,t,n){e[t]=n.value},t="function"==typeof Symbol?Symbol:{},r=t.iterator||"@@iterator",n=t.asyncIterator||"@@asyncIterator",i=t.toStringTag||"@@toStringTag";function a(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{a({},"")}catch(c){a=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var i,a,o,s,t=t&&t.prototype instanceof m?t:m,t=Object.create(t.prototype),r=new E(r||[]);return l(t,"_invoke",{value:(i=e,a=n,o=r,s=p,function(e,t){if(s===h)throw new Error("Generator is already running");if(s===_){if("throw"===e)throw t;return{value:c,done:!0}}for(o.method=e,o.arg=t;;){var n=o.delegate;if(n){n=function e(t,n){var r=n.method,i=t.iterator[r];if(i===c)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=c,e(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;i=r.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=c),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}(n,o);if(n){if(n===g)continue;return n}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(s===p)throw s=_,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);s=h;n=d(i,a,o);if("normal"===n.type){if(s=o.done?_:f,n.arg===g)continue;return{value:n.arg,done:o.done}}"throw"===n.type&&(s=_,o.method="throw",o.arg=n.arg)}})}),t}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}o.wrap=s;var p="suspendedStart",f="suspendedYield",h="executing",_="completed",g={};function m(){}function C(){}function v(){}var t={},y=(a(t,r,function(){return this}),Object.getPrototypeOf),y=y&&y(y(T([]))),A=(y&&y!==e&&u.call(y,r)&&(t=y),v.prototype=m.prototype=Object.create(t));function P(e){["next","throw","return"].forEach(function(t){a(e,t,function(e){return this._invoke(t,e)})})}function b(o,s){var t;l(this,"_invoke",{value:function(n,r){function e(){return new s(function(e,t){!function t(e,n,r,i){var a,e=d(o[e],o,n);if("throw"!==e.type)return(n=(a=e.arg).value)&&"object"==_typeof(n)&&u.call(n,"__await")?s.resolve(n.__await).then(function(e){t("next",e,r,i)},function(e){t("throw",e,r,i)}):s.resolve(n).then(function(e){a.value=e,r(a)},function(e){return t("throw",e,r,i)});i(e.arg)}(n,r,e,t)})}return t=t?t.then(e,e):e()}})}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function T(t){if(t||""===t){var n,e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return n=-1,(e=function e(){for(;++ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n>16)+(t>>16)+(n>>16)>>32-i,n)}function p(e,t,n,r,i,a,o){return s(t&n|~t&r,e,t,i,a,o)}function f(e,t,n,r,i,a,o){return s(t&r|n&~r,e,t,i,a,o)}function h(e,t,n,r,i,a,o){return s(t^n^r,e,t,i,a,o)}function _(e,t,n,r,i,a,o){return s(n^(t|~r),e,t,i,a,o)}function o(e,t){e[t>>5]|=128>>9>5]>>>n%32&255);return t}function u(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))>>4&15)+n.charAt(15&t);return r}function l(e){return unescape(encodeURIComponent(e))}function i(e){return c(o(u(e=l(e)),8*e.length))}function a(e,t){var n,e=l(e),t=l(t),r=u(e),i=[],a=[];for(i[15]=a[15]=void 0,16"},o.prototype.shutdown=function(){this._isShutDown||(this._logger.debug(r,"#shutdown > Shutting down"),this.off(),this._requests={},this._commands={},this._isShutDown=!0)},o.prototype.on=function(e,t,n){this._isShutDown||(this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push({fn:t,ctx:n}))},o.prototype.off=function(e,t,n){if(!this._isShutDown)if(t="function"==typeof t?t:null,e||null!=t||n)if(e)this._removeListener(e,t,n);else for(e in this._listeners)this._listeners.hasOwnProperty(e)&&this._removeListener(e,t,n);else this._listeners={}},o.prototype.trigger=function(e){if(!this._isShutDown)for(var t in this._listeners)if(this._listeners.hasOwnProperty(t)&&function(e,t){if(e===t)return 1;for(var n=(e||"").split(o.SEPARATOR),r=(t||"").split(o.SEPARATOR),i=!0,a=0;a No command handler for: "+e)},o.prototype.reply=function(e,t,n){this._isShutDown||(this._requests[e]={fn:t,ctx:n})},o.prototype.request=function(e){var t;if(!this._isShutDown)return(t=this._requests[e])?t.fn.call(t.ctx):(this._logger.warn(r,"#request > No request handler for: "+e),null)},o.prototype._removeListener=function(e,t,n){t="function"==typeof t?t:null;var r=this._listeners[e];if(r)if(!r.length||null==t&&!n)delete this._listeners[e];else for(var i=0;i Replacing plugin: "+t),(this._plugins[t]=e).bootstrap(this)},t.prototype.setupPlugins=function(){for(var e in this._plugins)this._plugins.hasOwnProperty(e)&&this._plugins[e].setup()},t.prototype.pluginExists=function(e){return!!this._plugins[e]},t.prototype.isPluginInitialized=function(e){return this._plugins[e]&&this._plugins[e].isInitialized()},t.prototype.on=function(e,t,n,r){this._dataChannel.on(e+i.SEPARATOR+t,n,r)},t.prototype.off=function(e,t,n,r){e=e&&t?e+i.SEPARATOR+t:null;this._dataChannel.off(e,n,r)},t.prototype.trigger=function(e){var t=e.name,n=this._behaviours[t];if(n){for(var r,i,a,o,s={},c={},u=0;u"},n.prototype._enabled=function(){},n.prototype._disabled=function(){},n.prototype._teardown=function(){},n.prototype._canProcess=function(){return this._isEnabled?!this._isDestroyed||(this._logger.error(this._logTag,"Plugin destroyed."),!1):(this._logger.error(this._logTag,"Plugin disabled."),!1)},n.prototype._trigger=function(e,t){e=a.createFromTrigger(new i(this.getName(),e));e.data=t,this._pluginManager.trigger(e)},e.plugin.BasePlugin=n}(r,n),function(e){"use strict";function r(e,t,n){this.name=e,this.interval=t,this.isActive=!1,this.repeatCount=void 0!==n?n:i,this._nextTickTimestamp=0,this.reset()}function t(e,t){if(!e)throw new Error("Reference to the ClockService object cannot be NULL");if(this._service=e,!t)throw new Error("Reference to the logger object cannot be NULL");this._logger=t,this._isDestroyed=!1,this._timers={};var n=this;this._clock=window.setInterval(function(){n._onTick()},1e3*a)}r.prototype.reset=function(){this.tick=0,this._createdTimestamp=(new Date).getTime(),this._updateNextTickTimestamp()},r.prototype.shouldTick=function(){return(new Date).getTime()>this._nextTickTimestamp-a/2&&(this.tick++,this._updateNextTickTimestamp(),!0)},r.prototype._updateNextTickTimestamp=function(){this._nextTickTimestamp=this._createdTimestamp+1e3*this.interval*(this.tick+1)},t.prototype.createTimer=function(e,t,n){this._timers[e]=new r(e,t,n)},t.prototype.destroyTimer=function(e){delete this._timers[e]},t.prototype.resumeTimer=function(e,t){this._logger.debug(n,"#resumeTimer(name="+e+", reset="+(t=void 0!==t&&t)+")");e=this._timers[e];e&&(e.isActive=!0,t)&&e.reset()},t.prototype.pauseTimer=function(e,t){this._logger.debug(n,"#pauseTimer(name="+e+", reset="+(t=void 0!==t&&t)+")");e=this._timers[e];e&&(e.isActive=!1,t)&&e.reset()},t.prototype.isTimerPaused=function(e){e=this._timers[e];return!!e&&!e.isActive},t.prototype.destroy=function(){this._isDestroyed||(this._isDestroyed=!0,this._timers={},window.clearInterval(this._clock))},t.prototype._onTick=function(){for(var e in this._timers)this._timers.hasOwnProperty(e)&&(e=this._timers[e]).isActive&&e.shouldTick()&&(1 "+e.name+"("+e.tick+" | "+e.repeatCount+")"),0!=e.repeatCount?(this._service.onTick(e.name,e.interval,e.tick),e.repeatCount!=i&&e.repeatCount--):this.destroyTimer(e.name))};var n="service.clock::TimerManager",i=-1,a=.25;e.clock.TimerDescriptor=r,e.clock.TimerManager=t}(i),function(e,t,n){"use strict";function r(e){if(r.__super__.constructor.call(this,a),!e)throw new Error("Reference to the logger object cannot be NULL");this._logger=e,this._timerManager=new i(this,this._logger),this._setupDataResolver()}var i=n.clock.TimerManager,o=t.StringUtils,t=e.plugin.BasePlugin,a=(e.extend(r,t),r.prototype.bootstrap=function(e){r.__super__.bootstrap.call(this,e),this._pluginManager.comply(this,s,this._cmdCreate),this._pluginManager.comply(this,u,this._cmdResume),this._pluginManager.comply(this,c,this._cmdPause),this._pluginManager.comply(this,l,this._cmdDestroy)},r.prototype._teardown=function(){this._timerManager.destroy()},r.prototype._cmdCreate=function(e){var t=e[f]||m;this._timerManager.createTimer(e[d],e[p],t)},r.prototype._cmdPause=function(e){this._timerManager.pauseTimer(e[d],!!e[_])},r.prototype._cmdResume=function(e){this._timerManager.resumeTimer(e[d],!!e[_])},r.prototype._cmdDestroy=function(e){this._timerManager.destroyTimer(e[d])},r.prototype.onTick=function(e,t,n){var r={};r[d]=e+=".tick",r[p]=t,r[h]=n,this._trigger(e,r)},r.prototype._setupDataResolver=function(){var a={},t=this._timerManager;a[g]=function(e){return t.isTimerPaused(e)},this._dataResolver=function(e){if(!e||0==e.length)return null;for(var t=null,n=0;n Tracking session already started."):(this._trigger(h),this._isTrackingSessionStarted=!0,(e=this._dataResolver(["video.resumed"])).hasOwnProperty("video.resumed")&&e["video.resumed"]&&this._trigger(_)):this._logger.warn(this._logTag,"#trackSessionStart() > No active tracking session."))},n.prototype.trackVideoLoad=function(){this._logger.info(this._logTag,"#trackVideoLoad()"),this._canProcess()&&(this._trigger(p),this._isTrackingSessionActive=!0,this._isTrackingSessionStarted=!1)},n.prototype.trackVideoUnload=function(){this._logger.info(this._logTag,"#trackVideoUnload()"),this._canProcess()&&(this._isTrackingSessionActive?(this._stopPlayheadTimer(),this._trigger(f),this._isTrackingSessionActive=!1,this._isTrackingSessionStarted=!1,this._videoIdle=!1):this._logger.warn(this._logTag,"#trackVideoUnload() > No active tracking session."))},n.prototype.trackPlay=function(){this._logger.info(this._logTag,"#trackPlay()"),this._canProcess()&&this._startSessionIfNeeded("trackPlay")&&(this._trigger(C),this._startPlayheadTimer())},n.prototype.trackPause=function(){var e;this._logger.info(this._logTag,"#trackPause()"),this._canProcess()&&this._startSessionIfNeeded("trackPause")&&(this._stopPlayheadTimer(),(e={})[B]=!1,this._trigger(v,e))},n.prototype.trackBufferStart=function(){this._logger.info(this._logTag,"#trackBufferStart()"),this._canProcess()&&this._startSessionIfNeeded("trackBufferStart")&&(this._stopPlayheadTimer(),this._trigger(P))},n.prototype.trackBufferComplete=function(){this._logger.info(this._logTag,"#trackBufferComplete()"),this._canProcess()&&this._startSessionIfNeeded("trackBufferComplete")&&(this._trigger(b),this._startPlayheadTimer())},n.prototype.trackSeekStart=function(){this._logger.info(this._logTag,"#trackSeekStart()"),this._canProcess()&&this._startSessionIfNeeded("trackSeekStart")&&(this._stopPlayheadTimer(),this._trigger(S))},n.prototype.trackSeekComplete=function(){var e;this._logger.info(this._logTag,"#trackSeekComplete()"),this._canProcess()&&this._startSessionIfNeeded("trackSeekComplete")&&(this._trigger(w),this._startPlayheadTimer(),e=this._dataResolver(["ad.isInAd"]),this._isTrackingAd=e.hasOwnProperty("ad.isInAd")&&e["ad.isInAd"])},n.prototype.trackComplete=function(e){var t;this._logger.info(this._logTag,"#trackComplete()"),this._canProcess()&&this._startSessionIfNeeded("trackComplete")&&((t={})[O]=e,this._stopPlayheadTimer(),this._trigger(g,t))},n.prototype.trackTimedMetadata=function(e){this._logger.info(this._logTag,"#trackComplete()"),this._canProcess()&&this._startSessionIfNeeded("trackTimedMetadata")&&this._trigger(m,e)},n.prototype.trackChapterStart=function(){this._logger.info(this._logTag,"#trackChapterStart()"),this._canProcess()&&this._startSessionIfNeeded("#trackChapterStart")&&this._trigger(E)},n.prototype.trackChapterComplete=function(){this._logger.info(this._logTag,"trackChapterComplete()"),this._canProcess()&&this._startSessionIfNeeded("trackChapterComplete")&&this._trigger(T)},n.prototype.trackAdStart=function(){this._logger.info(this._logTag,"#trackAdStart()"),this._canProcess()&&this._startSessionIfNeeded("trackAdStart")&&(this._trigger(y),this._isTrackingAd=!0)},n.prototype.trackAdComplete=function(){this._logger.info(this._logTag,"#trackAdComplete()"),this._canProcess()&&this._startSessionIfNeeded("trackAdComplete")&&(this._trigger(A),this._isTrackingAd=!1)},n.prototype.trackBitrateChange=function(){this._logger.info(this._logTag,"#trackBitrateChange()"),this._canProcess()&&this._startSessionIfNeeded("trackBitrateChange")&&this._trigger(I)},n.prototype.trackVideoPlayerError=function(e){var t;this._logger.info(this._logTag,"#trackVideoPlayerError(errorId="+e+")"),this._startSessionIfNeeded("trackVideoPlayerError")&&((t={})[L]=d,t[M]=e,this._trigger(D,t))},n.prototype.trackApplicationError=function(e){var t;this._logger.info(this._logTag,"#trackApplicationError(errorId="+e+")"),this._startSessionIfNeeded("trackApplicationError")&&((t={})[L]=l,t[M]=e,this._trigger(D,t))},n.prototype._registerCommands=function(){this._pluginManager.comply(this,"handleVideoIdleStart",this._cmdVideoIdleStart),this._pluginManager.comply(this,"handleVideoIdleResume",this._cmdVideoIdleResume)},n.prototype._registerBehaviours=function(){this._pluginManager.registerBehaviour(new i(u,k),this,"handleVideoIdleStart"),this._pluginManager.registerBehaviour(new i(u,N),this,"handleVideoIdleResume",[new r(c,"ad.isInAd","isInAd"),new r(c,"chapter.isInChapter","isInChapter")])},n.prototype._setupDataResolver=function(){function t(){return s.video||(s.video=c._delegate.getVideoInfo(),c._logger.info(c._logTag,"Data from delegate > VideoInfo: "+s.video),s.video)}function n(){return s.ad||(s.ad=c._delegate.getAdInfo(),c._logger.info(c._logTag,"Data from delegate > AdInfo: "+s.ad),s.ad)}function r(){return s.pod||(s.pod=c._delegate.getAdBreakInfo(),c._logger.info(c._logTag,"Data from delegate > AdBreakInfo: "+s.pod),s.pod)}function i(){return s.chapter||(s.chapter=c._delegate.getChapterInfo(),c._logger.info(c._logTag,"Data from delegate > ChapterInfo: "+s.chapter),s.chapter)}function a(){return s.qos||(s.qos=c._delegate.getQoSInfo(),c._logger.info(c._logTag,"Data from delegate > QoSInfo: "+s.qos),s.qos)}var o={},s={},c=this;o["video.id"]=function(){var e=t(),e=e?e.id:null;return c._logger.debug(c._logTag,"Resolving video.id: "+e),e},o["video.name"]=function(){var e=t(),e=e?e.name:null;return c._logger.debug(c._logTag,"Resolving video.name: "+e),e},o["video.length"]=function(){var e=t(),e=e?e.length:NaN;return c._logger.debug(c._logTag,"Resolving video.length: "+e),e},o["video.playerName"]=function(){var e=t(),e=e?e.playerName:null;return c._logger.debug(c._logTag,"Resolving video.playerName: "+e),e},o["video.streamType"]=function(){var e=t(),e=e?e.streamType:null;return c._logger.debug(c._logTag,"Resolving video.streamType: "+e),e},o["video.playhead"]=function(){var e=t(),e=e?e.playhead:NaN;return c._logger.debug(c._logTag,"Resolving video.playhead: "+e),e},o["video.resumed"]=function(){var e=t(),e=!!e&&e.resumed;return c._logger.debug(c._logTag,"Resolving video.resumed: "+e),e},o["video.playheadStalled"]=function(){return this._playheadStalled},o["pod.name"]=function(){var e=r(),e=e?e.name:null;return c._logger.debug(c._logTag,"Resolving pod.name: "+e),e},o["pod.playerName"]=function(){var e=r(),e=e?e.playerName:null;return c._logger.debug(c._logTag,"Resolving pod.playerName: "+e),e},o["pod.position"]=function(){var e=r(),e=e?e.position:NaN;return c._logger.debug(c._logTag,"Resolving pod.position: "+e),e},o["pod.startTime"]=function(){var e=r(),e=e?e.startTime:NaN;return c._logger.debug(c._logTag,"Resolving pod.startTime: "+e),e},o["ad.isInAd"]=function(){var e=null!=n();return c._logger.debug(c._logTag,"Resolving ad.isInAd: "+e),e},o["ad.isInAdBreak"]=function(){var e=null!=r();return c._logger.debug(c._logTag,"Resolving ad.isInAdBreak: "+e),e},o["ad.id"]=function(){var e=n(),e=e?e.id:null;return c._logger.debug(c._logTag,"Resolving ad.id: "+e),e},o["ad.name"]=function(){var e=n(),e=e?e.name:null;return c._logger.debug(c._logTag,"Resolving ad.name: "+e),e},o["ad.length"]=function(){var e=n(),e=e?e.length:NaN;return c._logger.debug(c._logTag,"Resolving ad.length: "+e),e},o["ad.position"]=function(){var e=n(),e=e?e.position:NaN;return c._logger.debug(c._logTag,"Resolving ad.position: "+e),e},o["chapter.isInChapter"]=function(){var e=null!=i();return c._logger.debug(c._logTag,"Resolving chapter.isInChapter: "+e),e},o["chapter.name"]=function(){var e=i(),e=e?e.name:null;return c._logger.debug(c._logTag,"Resolving chapter.name: "+e),e},o["chapter.length"]=function(){var e=i(),e=e?e.length:NaN;return c._logger.debug(c._logTag,"Resolving chapter.length: "+e),e},o["chapter.position"]=function(){var e=i(),e=e?e.position:NaN;return c._logger.debug(c._logTag,"Resolving chapter.position: "+e),e},o["chapter.startTime"]=function(){var e=i(),e=e?e.startTime:NaN;return c._logger.debug(c._logTag,"Resolving chapter.startTime: "+e),e},o["qos.bitrate"]=function(){var e=a(),e=e?e.bitrate:NaN;return c._logger.debug(c._logTag,"Resolving qos.bitrate: "+e),e},o["qos.fps"]=function(){var e=a(),e=e?e.fps:NaN;return c._logger.debug(c._logTag,"Resolving qos.fps: "+e),e},o["qos.droppedFrames"]=function(){var e=a(),e=e?e.droppedFrames:NaN;return c._logger.debug(c._logTag,"Resolving qos.droppedFrames: "+e),e},o["qos.startupTime"]=function(){var e=a(),e=e?1e3*e.startupTime:NaN;return c._logger.debug(c._logTag,"Resolving qos.startupTime: "+e),e},this._dataResolver=function(e){if(!e||0==e.length)return null;s={};for(var t=null,n=0;n Tracking session auto-start."),this.trackSessionStart()),!0):(this._logger.warn(this._logTag,"#"+e+"() > No active tracking session."),!1)},"player"),c=s,u="adobe-heartbeat",l="sourceErrorExternal",d="sourceErrorSDK",p="video_load",f="video_unload",h="video_start",_="video_resume",g="video_complete",m="timed_metadata",C="play",v="pause",y="ad_start",A="ad_complete",P="buffer_start",b="buffer_complete",S="seek_start",w="seek_complete",E="chapter_start",T="chapter_complete",I="bitrate_change",D="track_error",k="video_idle_start",N="video_idle_resume",O="callback",B="filter_report",L="source",M="error_id",R=1001,x=2;t.VideoPlayerPlugin=n}(e.ADB.core,t),e.ADB.va.plugins.videoplayer||(e.ADB.va.plugins.videoplayer=t)}(this),function(e){var t;(t=void 0===t?{}:t).clock||(t.clock={}),t.context||(t.context={}),t.filter||(t.filter={}),t.model||(t.model={}),t.network||(t.network={}),function(e,t){"use strict";function n(e,t,n,r,i){if(!t)throw new Error("Reference to the channel object cannot be NULL");if(this._channel=t,!e)throw new Error("Reference to the pluginManager object cannot be NULL");if(this._pluginManager=e,!i)throw new Error("Reference to the logger object cannot be NULL");this._logTag="ah::Timer."+n,this._logger=i,this._isDestroyed=!1,this._createTimer(n,r),this._installHandlers()}var r=e.Event,i=(n.KEY_NAME="name",n.KEY_INTERVAL="interval",n.KEY_RESET="reset",n.prototype.resume=function(e){this._logger.debug(this._logTag,"Starting timer: "+this._name);var t={};t[n.KEY_NAME]=i+"."+this._name,t[n.KEY_RESET]=e,this._pluginManager.command(a,c,t)},n.prototype.pause=function(e){this._logger.debug(this._logTag,"Stopping timer: "+this._name);var t={};t[n.KEY_NAME]=i+"."+this._name,t[n.KEY_RESET]=e,this._pluginManager.command(a,s,t)},n.prototype.destroy=function(){var e;this._isDestroyed||(this._isDestroyed=!0,this._uninstallHandlers(),(e={})[n.KEY_NAME]=i+"."+this._name,this._pluginManager.command(a,u,e))},n.prototype.setInterval=function(e){var t=l+"."+i+"."+this._name,t=this._pluginManager.request(a,[t])[t];this.pause(!0),this._createTimer(this._name,e),t||this.resume(!0)},n.prototype._cmdResume=function(e){var t=!1;null!=e&&e.hasOwnProperty(n.KEY_RESET)&&(t=e[n.KEY_RESET]),this.resume(t)},n.prototype._cmdPause=function(e){var t=!1;null!=e&&e.hasOwnProperty(n.KEY_RESET)&&(t=e[n.KEY_RESET]),this.pause(t)},n.prototype._onTick=function(e,t){this._channel.trigger(new r("clock:"+this._name+".tick",t))},n.prototype._installHandlers=function(){this._channel.comply("clock:"+this._name+".resume",this._cmdResume,this),this._channel.comply("clock:"+this._name+".pause",this._cmdPause,this),this._pluginManager.on(a,i+"."+this._name+".tick",this._onTick,this)},n.prototype._uninstallHandlers=function(){this._channel.off(null,null,this),this._pluginManager.off(null,null,null,this)},n.prototype._createTimer=function(e,t){this._name=e,this._interval=t;e={};e[n.KEY_NAME]=i+"."+this._name,e[n.KEY_INTERVAL]=this._interval,this._pluginManager.command(a,o,e)},"heartbeat"),a="service.clock",o="create",s="pause",c="resume",u="destroy",l="is_paused";t.clock.Timer=n}(e.ADB.core,t),function(e,t){"use strict";function r(e,t,n){r.__super__.constructor.call(this,e,t,a,s,n)}var n=e.Event,i=t.clock.Timer,a=(e.extend(r,i),r.prototype._onCheckStatusComplete=function(e){e=e.data[d];this._logger.debug(this._logTag,"#_onCheckStatusComplete(interval="+e+")"),e?e==this._interval?this._logger.debug(this._logTag,"#_onCheckStatusComplete() > Interval value not changed."):o Interval value too large: "+e),this.setInterval(o)):(this._logger.debug(this._logTag,"#_onCheckStatusComplete() > Interval changed to: "+e),this.setInterval(e)):(this._logger.warn(this._logTag,"#_onCheckStatusComplete() > Invalid interval value."),this.setInterval(s))},r.prototype._getSettings=function(e){this._logger.debug(this._logTag,"#_getSettings()"),this._channel.trigger(new n(c))},r.prototype._installHandlers=function(){r.__super__._installHandlers.call(this),this._channel.on(u,this._getSettings,this),this._channel.on(l,this._onCheckStatusComplete,this),this._channel.reply(d,function(){return this._interval},this)},"check_status"),o=600,s=60,c="clock:check_status.tick",u="clock:check_status.get_settings",l="net:check_status_complete",d="check_status_interval";t.clock.CheckStatusTimer=r}(e.ADB.core,t),function(e,t){"use strict";function r(e,t,n){r.__super__.constructor.call(this,e,t,i,a,n)}var n=t.clock.Timer,i=(e.extend(r,n),r.prototype._onCheckStatusComplete=function(e){e=e.data[o];this._logger.debug(this._logTag,"#_onCheckStatusComplete(interval="+e+")"),e?e==this._interval?this._logger.debug(this._logTag,"#_onCheckStatusComplete() > Interval value not changed."):(this._logger.debug(this._logTag,"#_onCheckStatusComplete() > Interval changed to: "+e),this.setInterval(e)):(this._logger.warn(this._logTag,"#_onCheckStatusComplete() > Invalid interval value."),this.setInterval(a))},r.prototype._installHandlers=function(){r.__super__._installHandlers.call(this),this._channel.on(s,this._onCheckStatusComplete,this),this._channel.reply(o,function(){return this._interval},this)},"reporting"),a=10,o="reporting_interval",s="net:check_status_complete";t.clock.ReportingTimer=r}(e.ADB.core,t),function(e,t){"use strict";function r(e,t,n){r.__super__.constructor.call(this,e,t,i,a,n)}var n=t.clock.Timer,i=(e.extend(r,n),"idle"),a=1800;t.clock.IdleTimer=r}(e.ADB.core,t),function(e,t){"use strict";function r(e,t,n){r.__super__.constructor.call(this,e,t,i,a,n)}var n=t.clock.Timer,i=(e.extend(r,n),"flush_filter"),a=.25;t.clock.FlushFilterTimer=r}(e.ADB.core,t),function(e){"use strict";function t(e,t,n){if(!e)throw new Error("Reference to the pluginManager object cannot be NULL");if(!t)throw new Error("Reference to the channel object cannot be NULL");if(!n)throw new Error("Reference to the logger object cannot be NULL");this._isDestroyed=!1,this._reportingTimer=new a(e,t,n),this._checkStatusTimer=new r(e,t,n),this._flushFilterTimer=new i(e,t,n),this._idleTimer=new o(e,t,n)}var r=e.clock.CheckStatusTimer,i=e.clock.FlushFilterTimer,a=e.clock.ReportingTimer,o=e.clock.IdleTimer;t.prototype.destroy=function(){this._isDestroyed||(this._isDestroyed=!0,this._reportingTimer.destroy(),this._checkStatusTimer.destroy(),this._flushFilterTimer.destroy(),this._idleTimer.destroy())},e.clock.Clock=t}((e.ADB.core,t)),function(e){"use strict";function r(e,t){this.value=e,this.hint=t}function t(e){this.realm=e,this.data={}}r.HINT_SHORT="short",t.prototype.setField=function(e,t,n){this.data[e]=new r(t,n)},t.prototype._createAccessor=function(e,t,n){var r=this;return function(){return arguments.length&&(r[e]=arguments[0],r.setField(t,arguments[0],n)),r[e]}},e.model.Dao=t,e.model.DaoField=r}((e.ADB.core,t)),function(e,t){"use strict";function n(){var e;n.__super__.constructor.call(this,"asset"),this.adId=this._createAccessor("_adId","ad_id",null),this.sid=this._createAccessor("_sid","ad_sid",null),this.resolver=this._createAccessor("_resolver","resolver",null),this.podId=this._createAccessor("_podId","pod_id",null),this.podPosition=this._createAccessor("_podPosition","pod_position",null),this.podOffset=this._createAccessor("_podOffset","pod_offset",null),this.podName=this._createAccessor("_podName","pod_name",null),this.adLength=this._createAccessor("_adLength","ad_length",null),this.adName=this._createAccessor("_adName","ad_name",null),arguments.length&&arguments[0]instanceof n?(this.adId((e=arguments[0]).adId()),this.sid(e.sid()),this.resolver(e.resolver()),this.podId(e.podId()),this.podPosition(e.podPosition()),this.podOffset(e.podOffset()),this.podName(e.podName()),this.adLength(e.adLength()),this.adName(e.adName())):(this.adId(""),this.sid(""),this.resolver(""),this.podId(""),this.podPosition(""),this.podOffset(0),this.podName(""),this.adLength(0),this.adName(""))}var r=t.model.Dao;e.extend(n,r),t.model.AdDao=n}(e.ADB.core,t),function(e,t){"use strict";function n(){var e;n.__super__.constructor.call(this,"sc"),this.reportSuiteId=this._createAccessor("_reportSuiteId","rsid",null),this.trackingServer=this._createAccessor("_trackingServer","tracking_server",null),this.ssl=this._createAccessor("_ssl","ssl",i.HINT_SHORT),arguments.length&&arguments[0]instanceof n?(this.reportSuiteId((e=arguments[0]).reportSuiteId()),this.trackingServer(e.trackingServer()),this.ssl(e.ssl())):(this.reportSuiteId(""),this.trackingServer(""),this.ssl(0))}var r=t.model.Dao,i=t.model.DaoField;e.extend(n,r),t.model.AdobeAnalyticsDao=n}(e.ADB.core,t),function(e,t){"use strict";function n(){var e;n.__super__.constructor.call(this,"stream"),this.id=this._createAccessor("_id","chapter_id",null),this.sid=this._createAccessor("_sid","chapter_sid",null),this.name=this._createAccessor("_name","chapter_name",null),this.position=this._createAccessor("_position","chapter_pos",null),this.length=this._createAccessor("_length","chapter_length",null),this.offset=this._createAccessor("_offset","chapter_offset",null),arguments.length&&arguments[0]instanceof n?(this.id((e=arguments[0]).id()),this.sid(e.sid()),this.name(e.name()),this.position(e.position()),this.length(e.length()),this.offset(e.offset())):(this.id(""),this.sid(""),this.name(""),this.position(0),this.length(0),this.offset(0))}var r=t.model.Dao;e.extend(n,r),t.model.ChapterDao=n}(e.ADB.core,t),function(e,t){"use strict";function n(){var e,t;n.__super__.constructor.call(this,"asset"),this.type=this._createAccessor("_type","type",null),this.videoId=this._createAccessor("_videoId","video_id",null),this.publisher=this._createAccessor("_publisher","publisher",null),this.adData=this._createAccessor("_adData","ad_data",null),this.chapterData=this._createAccessor("_chapterData","chapter_data",null),this.length=this._createAccessor("_length","length",null),this.name=this._createAccessor("_name","name",null),arguments.length&&arguments[0]instanceof n?(this.type((e=arguments[0]).type()),this.name(e.name()),this.videoId(e.videoId()),this.publisher(e.publisher()),this.length(e.length()),t=e.adData()?new i(e.adData()):null,this.adData(t),t=e.chapterData()?new a(e.chapterData()):null,this.chapterData(t)):(this.type(""),this.name(""),this.videoId(""),this.publisher(""),this.length(0),this.adData(null),this.chapterData(null))}var r=t.model.Dao,i=t.model.AdDao,a=t.model.ChapterDao;e.extend(n,r),n.TYPE_AD="ad",n.TYPE_MAIN_CONTENT="main",t.model.AssetDao=n}(e.ADB.core,t),function(e,t){"use strict";function n(){var e;n.__super__.constructor.call(this,"event"),this.type=this._createAccessor("_type","type",null),this.duration=this._createAccessor("_duration","duration",null),this.playhead=this._createAccessor("_playhead","playhead",null),this.id=this._createAccessor("_id","id",null),this.source=this._createAccessor("_source","source",null),this.ts=this._createAccessor("_ts","ts",null),this.prevTs=this._createAccessor("_prevTs","prev_ts",null),arguments.length&&arguments[0]instanceof n?(this.type((e=arguments[0]).type()),this.duration(e.duration()),this.playhead(e.playhead()),this.id(e.id()),this.source(e.source()),this.ts(e.ts()),this.prevTs(e.prevTs())):(this.type(""),this.duration(0),this.playhead(0),this.id(""),this.source(""),this.ts(0),this.prevTs(-1))}var r=t.model.Dao;e.extend(n,r),n.EVENT_TYPE_AA_START="aa_start",n.EVENT_TYPE_AA_AD_START="aa_ad_start",n.EVENT_TYPE_START="start",n.EVENT_TYPE_RESUME="resume",n.EVENT_TYPE_CHAPTER_START="chapter_start",n.EVENT_TYPE_CHAPTER_COMPLETE="chapter_complete",n.EVENT_TYPE_PLAY="play",n.EVENT_TYPE_PAUSE="pause",n.EVENT_TYPE_STALL="stall",n.EVENT_TYPE_BUFFER="buffer",n.EVENT_TYPE_BITRATE_CHANGE="bitrate_change",n.EVENT_TYPE_ERROR="error",n.EVENT_TYPE_COMPLETE="complete",t.model.EventDao=n}(e.ADB.core,t),function(e,t){"use strict";function n(){var e;n.__super__.constructor.call(this,"stream"),this.bitrate=this._createAccessor("_bitrate","bitrate",null),this.fps=this._createAccessor("_fps","fps",null),this.droppedFrames=this._createAccessor("_droppedFrames","dropped_frames",null),this.startupTime=this._createAccessor("_startup_time","startup_time",null),arguments.length&&arguments[0]instanceof n?(this.bitrate((e=arguments[0]).bitrate()),this.fps(e.fps()),this.droppedFrames(e.droppedFrames()),this.startupTime(e.startupTime()),this.isStartupTimeOverridden=e.isStartupTimeOverridden):(this.bitrate(0),this.fps(0),this.droppedFrames(0),this.startupTime(0),this.isStartupTimeOverridden=!1)}var r=t.model.Dao;e.extend(n,r),t.model.QoSDao=n}(e.ADB.core,t),function(e,t){"use strict";function n(){var e;n.__super__.constructor.call(this,"sp"),this.ovp=this._createAccessor("_ovp","ovp",null),this.sdk=this._createAccessor("_sdk","sdk",null),this.channel=this._createAccessor("_channel","channel",null),this.playerName=this._createAccessor("_playerName","player_name",null),this.libVersion=this._createAccessor("_libVersion","hb_version",null),this.apiLevel=this._createAccessor("_apiLevel","hb_api_lvl",null),arguments.length&&arguments[0]instanceof n?(this.ovp((e=arguments[0]).ovp()),this.sdk(e.sdk()),this.channel(e.channel()),this.playerName(e.playerName()),this.libVersion(e.libVersion()),this.apiLevel(e.apiLevel())):(this.ovp(i),this.sdk(i),this.channel(i),this.playerName(""),this.libVersion(""),this.apiLevel(0))}var r=t.model.Dao,i=(e.extend(n,r),"unknown");t.model.ServiceProviderDao=n}(e.ADB.core,t),function(e,t){"use strict";function n(){n.__super__.constructor.call(this,"event"),this.sessionId=this._createAccessor("_sessionId","sid",null),arguments.length&&arguments[0]instanceof n?this.sessionId(arguments[0].sessionId()):this.sessionId(null)}var r=t.model.Dao;e.extend(n,r),t.model.SessionDao=n}(e.ADB.core,t),function(e,t){"use strict";function n(){n.__super__.constructor.call(this,"stream"),this.type=this._createAccessor("_type","type",null),arguments.length&&arguments[0]instanceof n?this.type(arguments[0].type()):this.type(null)}var r=t.model.Dao;e.extend(n,r),t.model.StreamDao=n}(e.ADB.core,t),function(e,t){"use strict";function n(){var e;n.__super__.constructor.call(this,"user"),this.analyticsVisitorId=this._createAccessor("_analyticsVisitorId","aid",null),this.marketingCloudVisitorId=this._createAccessor("_marketingCloudVisitorId","mid",null),this.visitorId=this._createAccessor("_visitorId","id",null),arguments.length&&arguments[0]instanceof n?(this.analyticsVisitorId((e=arguments[0]).analyticsVisitorId()),this.marketingCloudVisitorId(e.marketingCloudVisitorId()),this.visitorId(e.visitorId())):(this.analyticsVisitorId(null),this.marketingCloudVisitorId(null),this.visitorId(null))}var r=t.model.Dao;e.extend(n,r),t.model.UserDao=n}(e.ADB.core,t),function(e,t){"use strict";function n(){var e;n.__super__.constructor.call(this,"aam"),this.audienceManagerBlob=this._createAccessor("_audienceManagerBlob","blob",null),this.audienceManagerLocationHint=this._createAccessor("_audienceManagerLocationHint","loc_hint",null),arguments.length&&arguments[0]instanceof n?(this.audienceManagerBlob((e=arguments[0]).audienceManagerBlob()),this.audienceManagerLocationHint(e.audienceManagerLocationHint())):(this.audienceManagerBlob(null),this.audienceManagerLocationHint(null))}var r=t.model.Dao;e.extend(n,r),t.model.AudienceManagerDao=n}(e.ADB.core,t),function(e,t){"use strict";var a=e.ObjectUtils,o=t.model.EventDao,s=t.model.AssetDao,c=t.model.StreamDao,u=t.model.QoSDao;t.model.TrackItem=function(e,t,n,r,i){this.eventData=new o,this.eventData.type(t),this.eventData.duration(0),this.eventData.ts((new Date).getTime()),this.eventData.playhead(n),this.assetData=new s(e._assetData),this.streamData=new c(e._streamData),this.qosData=new u(e._qosData),this.cuserData=a.clone(e._cuserData),this.meta=r,this.callback=i,this.filterReport=!0}}(e.ADB.va.utils,t),function(e,t){"use strict";var o=e.ObjectUtils,s=t.model.EventDao,c=t.model.AssetDao,u=t.model.StreamDao,l=t.model.QoSDao;t.model.CUserDao,t.model.Report=function(e,t,n,r,i,a){this.adobeAnalyticsData=e,this.userData=t,this.aamData=n,this.serviceProviderData=r,this.sessionData=i,this.eventData=new s(a.eventData),this.assetData=new c(a.assetData),this.streamData=new u(a.streamData),this.qosData=new l(a.qosData),this.cuserData=o.clone(a.cuserData),this.meta=o.clone(a.meta),this.callback=a.callback,this.filterReport=a.filterReport}}(e.ADB.va.utils,t),function(e){"use strict";function t(){}t.prototype.serializeReport=function(e){},t.prototype.serializeDao=function(e){},t.prototype.serializeMap=function(e){},t.prototype.serializeNumber=function(e,t,n,r){},t.prototype.serializeString=function(e,t,n,r){},e.model.ISerializer=t}(t),function(e,t){"use strict";function n(e){if(!e)throw new Error("Reference to the logger object cannot be NULL");this._logger=e}var s=t.model.Dao,a=t.model.DaoField,r=t.model.ISerializer,c=(e.extend(n,r),n.prototype.serializeReport=function(e){var t=[];return t.push(this.serializeDao(e.adobeAnalyticsData)),t.push(this.serializeDao(e.userData)),t.push(this.serializeDao(e.aamData)),t.push(this.serializeMap(e.cuserData,"cuser")),t.push(this.serializeDao(e.serviceProviderData)),t.push(this.serializeDao(e.sessionData)),t.push(this.serializeDao(e.eventData)),t.push(this.serializeDao(e.assetData)),t.push(this.serializeDao(e.streamData)),t.push(this.serializeDao(e.qosData)),t.push(this.serializeMap(e.meta,"meta")),{serializedOutput:t.filter(function(e){return!!e}).join("&"),callback:e.callback}},n.prototype.serializeDao=function(e){return this._processDao(e).filter(function(e){return!!e}).join("&")},n.prototype.serializeMap=function(e,t){var n,r=[],i=t||"meta";for(n in e)e.hasOwnProperty(n)&&e[n]&&r.push("s:"+i+":"+n+"="+window.encodeURIComponent(e[n]));return r.join("&")},n.prototype.serializeNumber=function(e,t,n,r){var i=o;return null==t||isNaN(t)?null:(i=r===a.HINT_SHORT?u:i)+":"+n+":"+e+"="+Math.floor(t)},n.prototype.serializeString=function(e,t,n,r){return t?i+":"+n+":"+e+"="+window.encodeURIComponent(t):null},n.prototype._processDao=function(e){var t,n=[];for(t in e.data)if(e.data.hasOwnProperty(t)){var r=e.data[t],i=r.value,r=r.hint,a=null,o=e.realm;if(null==i)continue;"number"==typeof i?a=this.serializeNumber(t,i,o,r):"string"==typeof i?a=this.serializeString(t,i,o,r):i instanceof s?a=this.serializeDao(i):this._logger.warn(c,"#_processDao() > Unable to serialize DAO. Field: "+t+". Value: "+i+"."),a&&n.push(a)}return n},"ah::QuerystringSerializer"),o="l",u="h",i="s";t.model.QuerystringSerializer=n}(e.ADB.core,t),function(e){"use strict";function t(e,t){if(!e)throw new Error("Reference to the data object cannot be NULL");if(this._data=e,!t)throw new Error("Reference to the logger object cannot be NULL");this._logger=t}t.prototype.parse=function(){window.DOMParser?i=(new window.DOMParser).parseFromString(this._data,"text/xml"):((i=new window.ActiveXObject("Microsoft.XMLDOM")).async=!1,i.loadXML(this._data)),(r=parseInt(i.getElementsByTagName("trackingInterval")[0].childNodes[0].nodeValue,10))&&(e=r),(r=parseInt(i.getElementsByTagName("setupCheckInterval")[0].childNodes[0].nodeValue,10))&&(t=r),(r=parseInt(i.getElementsByTagName("trackExternalErrors")[0].childNodes[0].nodeValue,10))&&(n=1==r),r=!i.getElementsByTagName("nielsenEnabled")[0]||1==parseInt(i.getElementsByTagName("nielsenEnabled")[0].childNodes[0].nodeValue,10);var e,t,n,r,i={};return i[o]=e,i[s]=t,i[c]=n,i[u]=r,this._logger.debug(a,"#parse() > Obtained configuration settings."),i};var a="ah::SettingsParser",o="reporting_interval",s="check_status_interval",c="track_external_errors",u="nielsen_enabled";e.network.SettingsParser=t}((e.ADB.core,t)),function(e,t){"use strict";function n(e,t){if(this._trackingServer=null,this._checkStatusServer=null,this._publisher=null,this._isConfigured=!1,this._isDestroyed=!1,this._quietMode=!1,this._visitorOptedOut=!1,this._prevReportSent=null,!e)throw new Error("Reference to the channel object cannot be NULL");if(this._channel=e,!t)throw new Error("Reference to the logger object cannot be NULL");this._logger=t,this._serializer=new r(t),this._installEventListeners()}var a=e.Event,o=e.URLRequestMethod,s=e.URLRequest,c=e.URLLoader,u=t.network.SettingsParser,r=t.model.QuerystringSerializer,l=(n.prototype.destroy=function(){this._isDestroyed||(this._isDestroyed=!0,this._logger.debug(l,"#destroy()"),this._uninstallEventListeners())},n.prototype._onApiConfig=function(e){e=e.data;this._logger.debug(l,"#_onApiConfig(sb_server="+e[i]+", check_status_server="+e[d]+", publisher="+e[p]+", quiet_mode="+e[f]+", ssl="+e[h]+")"),this._trackingServer=this._updateRequestProtocol(e[i],e[h]),this._checkStatusServer=this._updateRequestProtocol(e[d],e[h]),this._publisher=e[p],this._quietMode=e[f],this._isConfigured=!0},n.prototype._onUpdateVisitorOptOut=function(e){e=e.data;this._logger.debug(l,"#_onUpdateVisitorOptOut(visitor_opt_out="+e[g]+")"),this._visitorOptedOut=e[g]},n.prototype._onFilterReportAvailable=function(e){var t,n,r,i,e=e.data;this._isConfigured?(e=e[_],t=this._serializer.serializeReport(e),n=this._trackingServer+"/?"+t.serializedOutput,this._prevReportSent&&this._prevReportSent.eventData&&e.eventData&&this._prevReportSent.eventData.playhead==e.eventData.playhead&&this._prevReportSent.eventData.ts==e.eventData.ts&&this._prevReportSent.eventData.prevTs==e.eventData.prevTs&&this._prevReportSent.eventData.type==e.eventData.type?this._logger.debug(l,"#_onFilterReportAvailable() > Duplicate heartbeat report not sent for URL:\n"+n):(this._prevReportSent=e,e=new s(n,o.GET),this._logger.debug(l,"#_onFilterReportAvailable() > "+e.url),(r=this)._quietMode||this._visitorOptedOut||((i=new c).addEventListener(a.SUCCESS,function(e){i.close(),t.callback&&t.callback.call(null)},this),i.addEventListener(a.ERROR,function(e){i.close(),r._logger.warn(l,"#_onFilterReportAvailable() > Failed to send heartbeat report."),t.callback&&t.callback.call(null)},this),i.load(e)))):this._logger.warn(l,"#_onFilterReportAvailable() > Unable to send request: not configured.")},n.prototype._onClockCheckStatusTick=function(e){var t,n,r,i;this._isConfigured?this._publisher?(n=(t=this)._publisher.replace(/[^a-zA-Z0-9]+/,"-").toLocaleLowerCase(),n=this._checkStatusServer+n+".xml?r="+(new Date).getTime(),r=new s(n,o.GET),(i=new c).addEventListener(a.SUCCESS,function(e){e.data&&((e=new u(e.data.response,t._logger).parse())?t._channel.trigger(new a(A,e)):t._logger.warn(l,"#_onClockCheckStatusTick() > Failed to parse the config. settings.")),i.close()},this),i.addEventListener(a.ERROR,function(e){t._logger.warn(l,"#_onClockCheckStatusTick() > Failed to obtain the config. settings."),i.close()},this),this._logger.debug(l,"#_onClockCheckStatusTick() > Get new settings from: "+n),i.load(r)):this._logger.warn(l,"#_onClockCheckStatusTick() > Publisher is NULL."):this._logger.warn(l,"#_onClockCheckStatusTick() > Unable to send request: not configured.")},n.prototype._updateRequestProtocol=function(e,t){return 0===e.indexOf("http://")?e=e.slice(7):0===e.indexOf("https://")&&(e=e.slice(8)),t?"https://"+e:"http://"+e},n.prototype._installEventListeners=function(){this._channel.on(m,this._onApiConfig,this),this._channel.on(C,this._onUpdateVisitorOptOut,this),this._channel.on(v,this._onFilterReportAvailable,this),this._channel.on(y,this._onClockCheckStatusTick,this)},n.prototype._uninstallEventListeners=function(){this._channel.off(null,null,this)},"ah::Network"),i="tracking_server",d="check_status_server",p="publisher",f="quiet_mode",h="ssl",_="report",g="visitor_opt_out",m="api:config",C="api:update_visitor_optout",v="filter:data_available",y="clock:check_status.tick",A="net:check_status_complete";t.network.Network=n}(e.ADB.core,t),function(e,t){"use strict";function n(e,t){if(!e)throw new Error("Reference to the channel object cannot be NULL");if(this._channel=e,!t)throw new Error("Reference to the logger object cannot be NULL");this._logger=t,this._isDestroyed=!1,this._isBufferingInProgress=!1,this._reportBuffer={},this._tsHistory={},this._workQueue=new i,this._installEventListeners()}function f(r){var i=[];return r.forEach(function(e){var t,n;(e.eventData.type()!=_.EVENT_TYPE_PLAY||e.eventData.duration()>l||0==e.eventData.duration()&&e.assetData.type()==g.TYPE_MAIN_CONTENT&&(n=[],r.forEach(function(e){e.eventData.type()!=_.EVENT_TYPE_PLAY&&e.eventData.type()!=_.EVENT_TYPE_BUFFER&&e.eventData.type()!=_.EVENT_TYPE_START||n.push(e)}),(t=n).indexOf(e)==t.length-1))&&i.push(e)}),i}var r=e.radio.Command,i=e.radio.CommandQueue,h=e.Event,_=t.model.EventDao,g=t.model.AssetDao,a=(n.prototype.destroy=function(){this._isDestroyed||(this._isDestroyed=!0,this._logger.debug(d,"#destroy()"),this._uninstallEventListeners(),this.clear())},n.prototype.clear=function(){this._logger.debug(d,"#clear()"),this._workQueue.cancelAllCommands(),this._reportBuffer={},this._tsHistory={},this._isBufferingInProgress=!1},n.prototype.flush=function(){this._workQueue.addCommand(new r(this._flushBufferReport,this))},n.prototype._bufferReport=function(e){var t;this._isDestroyed||((e=e[C])&&(t=e.sessionData.sessionId(),this._reportBuffer[t]=this._reportBuffer[t]||[],this._reportBuffer[t].push(e)),this._isBufferingInProgress)||(this._isBufferingInProgress=!0,(t={})[s]=!0,t[c]=1,this._channel.command(u,t))},n.prototype._flushBufferReport=function(){if(!this._isDestroyed){var e,t=this;for(e in this._reportBuffer)if(this._reportBuffer.hasOwnProperty(e)){var n=f(function(e){var t=-1,n=-1,r=[];return e.forEach(function(e){e.eventData.type()==_.EVENT_TYPE_START?e.assetData.type()==g.TYPE_MAIN_CONTENT?-1==t?t=r.push(e)-1:(e.eventData.prevTs(-1),r[t]=e):-1==n?n=r.push(e)-1:(e.eventData.prevTs(-1),r[n]=e):r.push(e)}),r}(function(e){var t=[];return e&&e.forEach(function(e){(e.eventData.type()!=_.EVENT_TYPE_PAUSE&&e.eventData.type()!=_.EVENT_TYPE_STALL||!e.filterReport||e.eventData.duration()>v)&&t.push(e)}),t}(this._reportBuffer[e]))),r=(s=o=a=i=r=void 0,n);if(r)for(var i=0;i No active tracking session.")},r.prototype._onApiVideoStart=function(e){var t,e=e.data;this._logger.debug(A,"#_onApiVideoStart(id="+e.videoId+", name="+e.videoName+", length="+e.videoLength+", type="+e.streamType+", playerName="+e.playerName+")"),this._checkCall("_onApiVideoStart")&&this._inputDataValidator.validateFields(e,["videoId","streamType","videoLength","playhead","playerName"])&&(this._adobeAnalyticsData.reportSuiteId(e.rsid),this._adobeAnalyticsData.trackingServer(e.trackingServer),this._adobeAnalyticsData.ssl(Number(e.useSsl)),this._serviceProviderData.ovp(e.ovp),this._serviceProviderData.sdk(e.sdk),this._serviceProviderData.channel(e.channel),this._serviceProviderData.libVersion(e.version),this._serviceProviderData.apiLevel(e.apiLvl),this._activeAssetId=e.videoId,this._serviceProviderData.playerName(e.playerName),this._assetData.videoId(this._activeAssetId),this._assetData.length(e.videoLength),this._assetData.type(f.TYPE_MAIN_CONTENT),this._assetData.publisher(e.publisher),this._assetData.name(e.videoName),this._streamData.type(e.streamType),this._updateQoSInfo(e),t=e.metaNielsen?a.merge(e.metaVideo,e.metaNielsen):e.metaVideo,t=new C(this,p.EVENT_TYPE_START,e.playhead,t,e._eventData[D]),this._sendHit(t))},r.prototype._onApiVideoResume=function(e){var e=e.data;this._logger.debug(A,"#_onApiVideoResume(id="+e.videoId+", name="+e.videoName+", length="+e.videoLength+", type="+e.streamType+", playerName="+e.playerName+")"),this._checkCall("_onApiVideoResume")&&this._inputDataValidator.validateFields(e,["videoId","streamType","videoLength","playhead","playerName"])&&(this._activeAssetId=e.videoId,this._assetData.videoId(this._activeAssetId),this._assetData.length(e.videoLength),this._assetData.type(f.TYPE_MAIN_CONTENT),this._assetData.name(e.videoName),this._streamData.type(e.streamType),e=new C(this,p.EVENT_TYPE_RESUME,e.playhead,null,e._eventData[D]),this._sendHit(e))},r.prototype._onApiVideoComplete=function(e){this._logger.debug(A,"#_onApiVideoComplete()");var e=e.data;this._checkCall("_onApiVideoComplete")&&(e=new C(this,p.EVENT_TYPE_COMPLETE,this._assetData.length(),null,e._eventData[D]),this._sendHit(e),this._isVideoComplete=!0)},r.prototype._onApiPlay=function(e){this._logger.debug(A,"#_onApiPlay()");var e=e.data;this._checkCall("_onApiPlay")&&this._inputDataValidator.validateFields(e,["playhead"])&&(this._updateQoSInfo(e),e=new C(this,p.EVENT_TYPE_PLAY,e.playhead,null,e._eventData[D]),this._sendHit(e))},r.prototype._onApiPause=function(e){this._logger.debug(A,"#_onApiPause()");var t,e=e.data;this._checkCall("_onApiPause")&&this._inputDataValidator.validateFields(e,["playhead"])&&(this._updateQoSInfo(e),t=e.playheadStalled?p.EVENT_TYPE_STALL:p.EVENT_TYPE_PAUSE,t=new C(this,t,e.playhead,null,e._eventData[D]),e._eventData.hasOwnProperty(k)&&(t.filterReport=e._eventData[k]),this._sendHit(t))},r.prototype._onApiBufferStart=function(e){this._logger.debug(A,"#_onApiBufferStart()");var e=e.data;this._checkCall("_onApiBufferStart")&&this._inputDataValidator.validateFields(e,["playhead"])&&(this._updateQoSInfo(e),e=new C(this,p.EVENT_TYPE_BUFFER,e.playhead,null,e._eventData[D]),this._sendHit(e))},r.prototype._onApiSeekStart=function(e){this._logger.debug(A,"#_onApiSeekStart()"),this._checkCall("_onApiSeekStart")&&(this._stashedAdData=this._assetData.adData(),this._stashedChapterData=this._assetData.chapterData(),this._assetData.adData(null),this._assetData.type(f.TYPE_MAIN_CONTENT),this._activeAssetId=this._assetData.videoId(),this._assetData.chapterData(null))},r.prototype._onApiSeekComplete=function(e){this._logger.debug(A,"#_onApiSeekComplete()");e=e.data;if(this._checkCall("_onApiSeekComplete")&&this._inputDataValidator.validateFields(e,["playhead"])){if(e.isInAd){if(!this._inputDataValidator.validateFields(e,["adId","adPosition","podPosition","podPlayerName"]))return;var t,n=i(this._assetData.videoId())+"_"+e.podPosition;this._stashedAdData&&this._stashedAdData.podId()==n&&parseInt(this._stashedAdData.podPosition(),10)==e.adPosition?(this._assetData.adData(this._stashedAdData),this._activeAssetId=this._stashedAdData.adId()):this._assetData.adData()||(this._activeAssetId=e.adId,(t=new g).adId(this._activeAssetId),t.adName(e.adName),t.adLength(e.adLength),t.podId(n),t.resolver(e.podPlayerName),t.podPosition(e.podPosition+""),t.podName(e.podName),t.podOffset(e.podSecond),t.sid(this._generateSessionId()),this._assetData.adData(t)),this._assetData.type(f.TYPE_AD)}else this._assetData.adData(null),this._assetData.type(f.TYPE_MAIN_CONTENT),this._activeAssetId=this._assetData.videoId();if(e.isInChapter){if(!this._inputDataValidator.validateFields(e,["chapterPosition","chapterLength","chapterOffset"]))return;this._stashedChapterData&&e.chapterPosition==this._stashedChapterData.position()?this._assetData.chapterData(this._stashedChapterData):this._assetData.chapterData()||((n=new m).id(i(this._assetData.videoId())+"_"+e.chapterPosition),n.name(e.chapterName),n.length(e.chapterLength),n.position(e.chapterPosition),n.offset(e.chapterOffset),n.sid(this._generateSessionId()),this._assetData.chapterData(n))}else this._assetData.chapterData(null);this._stashedAdData=null,this._stashedChapterData=null}},r.prototype._onApiAdStart=function(e){var t,e=e.data;this._logger.debug(A,"#_onApiAdStart(id="+e.adId+", player_name="+e.podPlayerName+", parent_name="+this._assetData.videoId()+", pod_pos="+e.adPosition+")"),this._checkCall("_onApiAdStart")&&this._inputDataValidator.validateFields(e,["playhead","podPosition","podPlayerName","adId","adPosition"])&&(this._activeAssetId=e.adId,(t=new g).adId(this._activeAssetId),t.adName(e.adName),t.adLength(e.adLength),t.resolver(e.podPlayerName),t.podId(i(this._assetData.videoId())+"_"+e.podPosition),t.podPosition(e.adPosition+""),t.podName(e.podName),t.podOffset(e.podSecond),t.sid(this._generateSessionId()),this._assetData.adData(t),this._assetData.type(f.TYPE_AD),this._updateQoSInfo(e),t=a.merge(e.metaVideo,e.metaAd),t=e.metaNielsen?a.merge(t,e.metaNielsen):t,t=new C(this,p.EVENT_TYPE_START,e.playhead,t,e._eventData[D]),this._sendHit(t))},r.prototype._onApiAdComplete=function(e){this._logger.debug(A,"#_onApiAdComplete()");var e=e.data;this._checkCall("_onApiAdComplete")&&this._inputDataValidator.validateFields(e,["playhead"])&&(this._assetData.type()!=f.TYPE_AD?this._logger.warn(A,"#_onApiAdComplete() > Ignoring the ad complete event, because we are no longer in an ad."):(this._updateQoSInfo(e),e=new C(this,p.EVENT_TYPE_COMPLETE,e.playhead,null,e._eventData[D]),this._sendHit(e),this._assetData.adData(null),this._assetData.type(f.TYPE_MAIN_CONTENT),this._activeAssetId=this._assetData.videoId()))},r.prototype._onApiChapterStart=function(e){var t,e=e.data;this._logger.debug(A,"#_onApiChapterStart(name="+e.chapterName+", length="+e.chapterLength+", position="+e.chapterPosition+", chapter_offset="+e.chapterOffset+")"),this._checkCall("_onApiChapterStart")&&this._inputDataValidator.validateFields(e,["playhead","chapterPosition","chapterOffset","chapterLength"])&&((t=new m).id(i(this._assetData.videoId())+"_"+e.chapterPosition),t.name(e.chapterName),t.length(e.chapterLength),t.position(e.chapterPosition),t.offset(e.chapterOffset),t.sid(this._generateSessionId()),this._assetData.chapterData(t),this._updateQoSInfo(e),t=a.merge(e.metaVideo,e.metaChapter),(t=new C(this,p.EVENT_TYPE_CHAPTER_START,e.playhead,t,e._eventData[D])).assetData.adData(null),t.assetData.type(f.TYPE_MAIN_CONTENT),this._sendHit(t))},r.prototype._onApiChapterComplete=function(e){this._logger.debug(A,"#_onApiChapterComplete()");var e=e.data;this._checkCall("_onApiChapterComplete")&&this._inputDataValidator.validateFields(e,["playhead"])&&(this._assetData.chapterData()?(this._updateQoSInfo(e),(e=new C(this,p.EVENT_TYPE_CHAPTER_COMPLETE,e.playhead,null,e._eventData[D])).assetData.adData(null),e.assetData.type(f.TYPE_MAIN_CONTENT),this._sendHit(e),this._assetData.chapterData(null)):this._logger.warn(A,"#_onApiChapterComplete() > Ignoring the chapter complete event, because we are no longer in a chapter."))},r.prototype._onApiBitrateChange=function(e){this._logger.debug(A,"#_onApiBitrateChange()");var e=e.data;this._checkCall("_onApiBitrateChange")&&this._inputDataValidator.validateFields(e,["playhead"])&&(this._updateQoSInfo(e),e=new C(this,p.EVENT_TYPE_BITRATE_CHANGE,e.playhead,null,e._eventData[D]),this._sendHit(e))},r.prototype._onApiTrackError=function(e){var t,e=e.data;this._logger.debug(A,"#_onApiTrackError(source="+e._eventData.source+", err_id="+e._eventData.error_id+")"),this._isTrackingSessionActive?!this._trackExternalErrors&&e._eventData.source!==P||(this._updateQoSInfo(e),(t=new C(this,p.EVENT_TYPE_ERROR,0,null,e._eventData[D])).eventData.id(e._eventData.error_id),t.eventData.source(e._eventData.source),this._sendHit(t)):this._logger.warn(A,"#_onApiTrackError() > No active tracking session.")},r.prototype._onApiTrackInternalError=function(e){var e=e.data,t=(this._logger.debug(A,"#_onApiTrackInternalError(source="+e.source+", err_id="+e.error_id+")"),this._updateQoSInfo(e),new C(this,p.EVENT_TYPE_ERROR,0));t.eventData.id(e.error_id),t.eventData.source(e.source),this._sendHit(t)},r.prototype._onApiQuantumEnd=function(e){this._logger.debug(A,"#_onApiQuantumEnd(interval="+this._channel.request(E)+")");e=e.data;this._checkCall("_onApiQuantumEnd")&&this._inputDataValidator.validateFields(e,["playhead"])&&(this._lastInBandItem&&(this._lastInBandItem.eventData.playhead(e.playhead),this._updateQoSInfo(e),this._lastInBandItem.qosData.bitrate(this._qosData.bitrate()),this._lastInBandItem.qosData.fps(this._qosData.fps()),this._lastInBandItem.qosData.droppedFrames(this._qosData.droppedFrames()),this._lastInBandItem.qosData.startupTime(this._qosData.startupTime())),this._sendHit(this._lastInBandItem))},r.prototype._onNetworkCheckStatusComplete=function(e){e=e.data;this._trackExternalErrors=e[B],this._reportingInterval=e[R],this._reportingInterval||(this._reportingInterval=M),this._logger.debug(A,"#_onNetworkCheckStatusComplete(track_ext_err="+this._trackExternalErrors+")")},r.prototype._onResetSessionId=function(e){var t=this._generateSessionId();this._sessionData=new s,this._sessionData.sessionId(t),this._logger.debug(A,"#_resetSessionId(new sessionId="+t+")")},r.prototype._installEventListeners=function(){this._channel.on(x,this._onApiAnalyticsStart,this),this._channel.on(V,this._onApiAnalyticsAdStart,this),this._channel.on(U,this._onApiVideoLoad,this),this._channel.on(F,this._onApiVideoUnload,this),this._channel.on(j,this._onApiVideoStart,this),this._channel.on(G,this._onApiVideoComplete,this),this._channel.on(Y,this._onApiVideoResume,this),this._channel.on(H,this._onApiAdStart,this),this._channel.on(q,this._onApiAdComplete,this),this._channel.on(K,this._onApiPlay,this),this._channel.on(W,this._onApiPause,this),this._channel.on(J,this._onApiBufferStart,this),this._channel.on(z,this._onApiSeekStart,this),this._channel.on(X,this._onApiSeekComplete,this),this._channel.on(Q,this._onApiChapterStart,this),this._channel.on($,this._onApiChapterComplete,this),this._channel.on(te,this._onApiBitrateChange,this),this._channel.on(Z,this._onApiTrackError,this),this._channel.on(ee,this._onApiTrackInternalError,this),this._channel.on(ne,this._onApiQuantumEnd,this),this._channel.on(ie,this._onNetworkCheckStatusComplete,this),this._channel.on(I,this._onResetSessionId,this),this._channel.reply(T,function(){return this._sessionData&&this._sessionData.sessionId()?this._sessionData.sessionId():null},this)},r.prototype._uninstallEventListeners=function(){this._channel.off(null,null,this)},r.prototype._resetInternalState=function(){this._logger.debug(A,"#_resetInternalState()"),this._isTrackingSessionActive=!1,this._isVideoComplete=!1,this._autoComputedStartupTime=0,this._streamData=new h,this._qosData=new _,this._sessionData=new s,this._assetData=new f,this._cuserData=null,this._stashedAdData=null,this._stashedChapterData=null,this._lastInBandItem=null},r.prototype._generateSessionId=function(){return""+(new Date).getTime()+Math.floor(1e9*Math.random())},r.prototype._updateQoSInfo=function(e){this._qosData.bitrate(e.bitrate||0),this._qosData.fps(e.fps||0),this._qosData.droppedFrames(e.droppedFrames||0),null==e.startupTime||isNaN(e.startupTime)?(this._qosData.startupTime(this._autoComputedStartupTime),this._qosData.isStartupTimeOverridden=!1):(this._qosData.startupTime(e.startupTime),this._qosData.isStartupTimeOverridden=!0)},r.prototype._checkCall=function(e){return this._isTrackingSessionActive?!this._isVideoComplete||(this._logger.warn(A,"#"+e+"() > The video content already completed."),!1):(this._logger.warn(A,"#"+e+"() > No active tracking session."),!1)},r.prototype._updateLastInBandItem=function(e){var t=(new Date).getTime(),n=1e3*Math.abs(e.eventData.playhead()-this._lastInBandItem.eventData.playhead()),r=Math.abs(t-this._lastInBandItem.eventData.ts());this._lastInBandItem.eventData.type()==p.EVENT_TYPE_PAUSE||this._lastInBandItem.eventData.type()==p.EVENT_TYPE_STALL||(n Plugin in ERROR state."),!1):r.__super__._canProcess.call(this):(this._logger.error(this._logTag,"_canProcess() > Plugin not configured."),!1)},r.prototype._cmdAnalyticsError=function(e){this._errorInfo||(this._errorInfo=new u("Internal error","AdobeAnalyticsPlugin is in ERROR state."),this._trigger(w,this._errorInfo),this._delegate&&this._delegate.onError(this._errorInfo))},r.prototype._cmdAnalyticsStart=function(e){var t;this._canProcess()&&((t={})[oe]=e.visitorOptedOut,this._channel.trigger(new i(le,t)),this._channel.trigger(new i(se,e)))},r.prototype._cmdAnalyticsAdStart=function(e){this._canProcess()&&this._channel.trigger(new i(ce,e))},r.prototype._cmdVideoLoad=function(e){this._errorInfo=null,this._canProcess()&&(this._isTrackingSessionActive&&this._channel.trigger(new i(L,e)),this._isTrackingSessionActive=!1,this._isPaused=!0,this._isSeeking=!1,this._isBuffering=!1,this._isVideoIdle=!1,this._filter.clear(),this._channel.trigger(new i(de,e)),this._isTrackingSessionActive=!0)},r.prototype._cmdVideoUnload=function(e){this._errorInfo=null,this._canProcess()&&(this._channel.trigger(new i(L,e)),this._filter.flush(),this._runReportingTimer(!1),this._runFlushFilterTimer(!1),this._runIdleTimer(!1),this._isTrackingSessionActive=!1)},r.prototype._cmdVideoStart=function(e){this._canProcess()&&this._channel.trigger(new i(pe,e))},r.prototype._cmdVideoComplete=function(e){this._canProcess()&&this._channel.trigger(new i(fe,e))},r.prototype._cmdVideoResume=function(e){this._canProcess()&&this._channel.trigger(new i(he,e))},r.prototype._cmdPlay=function(e){this._canProcess()&&(this._isPaused=!1,this._resumePlaybackIfPossible(e))},r.prototype._cmdPause=function(e){this._canProcess()&&(this._channel.trigger(new i(M,e)),this._isPaused=!0,this._runIdleTimer(!0))},r.prototype._cmdAdStart=function(e){this._canProcess()&&(this._channel.trigger(new i(_e,e)),this._resumePlaybackIfPossible(e))},r.prototype._cmdAdComplete=function(e){this._canProcess()&&(this._channel.trigger(new i(ge,e)),e.isInAdBreak||this._resumePlaybackIfPossible(e))},r.prototype._cmdBufferStart=function(e){this._canProcess()&&(this._channel.trigger(new i(Ce,e)),this._isBuffering=!0,this._runIdleTimer(!0))},r.prototype._cmdBufferComplete=function(e){this._canProcess()&&(this._isBuffering=!1,this._resumePlaybackIfPossible(e))},r.prototype._cmdSeekStart=function(e){this._canProcess()&&(this._channel.trigger(new i(ve,e)),this._channel.trigger(new i(M,e)),this._isSeeking=!0,this._runIdleTimer(!0))},r.prototype._cmdSeekComplete=function(e){this._canProcess()&&(this._channel.trigger(new i(ye,e)),this._isSeeking=!1,this._resumePlaybackIfPossible(e))},r.prototype._cmdChapterStart=function(e){this._canProcess()&&this._channel.trigger(new i(Ae,e))},r.prototype._cmdChapterComplete=function(e){this._canProcess()&&this._channel.trigger(new i(Pe,e))},r.prototype._cmdBitrateChange=function(e){this._canProcess()&&this._channel.trigger(new i(we,e))},r.prototype._cmdTrackError=function(e){this._canProcess()&&this._channel.trigger(new i(be,e))},r.prototype._cmdClockReportingTick=function(e){this._canProcess()&&this._channel.trigger(new i(Ee,e))},r.prototype._cmdIdleTick=function(e){this._canProcess()&&(this._isVideoIdle=!0,this._trigger(O),this._filter.flush(),this._runReportingTimer(!1),this._runFlushFilterTimer(!1),this._runIdleTimer(!1),this._trigger(z))},r.prototype._onError=function(e){this._errorInfo=e.data;e={};e[Z]=Te,e[ee]=this._errorInfo.getMessage()+"|"+this._errorInfo.getDetails(),this._channel.trigger(new i(Se,e)),this._runReportingTimer(!1),this._trigger(w,this._errorInfo),this._delegate&&this._delegate.onError(this._errorInfo)},r.prototype._runIdleTimer=function(e){var t={};t[B]=!0,e?this._channel.command(Be,t):this._channel.command(Le,t)},r.prototype._runFlushFilterTimer=function(e){var t={};t[B]=!0,e?this._channel.command(Ne,t):this._channel.command(Oe,t)},r.prototype._runReportingTimer=function(e){var t={};t[B]=!0,e?this._channel.command(De,t):this._channel.command(ke,t)},r.prototype._registerCommands=function(){this._pluginManager.comply(this,"handleAnalyticsError",this._cmdAnalyticsError),this._pluginManager.comply(this,"handleAnalyticsStart",this._cmdAnalyticsStart),this._pluginManager.comply(this,"handleAnalyticsAdStart",this._cmdAnalyticsAdStart),this._pluginManager.comply(this,"handleVideoLoad",this._cmdVideoLoad),this._pluginManager.comply(this,"handleVideoUnload",this._cmdVideoUnload),this._pluginManager.comply(this,"handleVideoStart",this._cmdVideoStart),this._pluginManager.comply(this,"handleVideoComplete",this._cmdVideoComplete),this._pluginManager.comply(this,"handleVideoResume",this._cmdVideoResume),this._pluginManager.comply(this,"handlePlay",this._cmdPlay),this._pluginManager.comply(this,"handlePause",this._cmdPause),this._pluginManager.comply(this,"handleAdStart",this._cmdAdStart),this._pluginManager.comply(this,"handleAdComplete",this._cmdAdComplete),this._pluginManager.comply(this,"handleBufferStart",this._cmdBufferStart),this._pluginManager.comply(this,"handleBufferComplete",this._cmdBufferComplete),this._pluginManager.comply(this,"handleSeekStart",this._cmdSeekStart),this._pluginManager.comply(this,"handleSeekComplete",this._cmdSeekComplete),this._pluginManager.comply(this,"handleChapterStart",this._cmdChapterStart),this._pluginManager.comply(this,"handleChapterComplete",this._cmdChapterComplete),this._pluginManager.comply(this,"handleBitrateChange",this._cmdBitrateChange),this._pluginManager.comply(this,"handleTrackError",this._cmdTrackError),this._pluginManager.comply(this,"handleClockReportingTick",this._cmdClockReportingTick),this._pluginManager.comply(this,"handleIdleTick",this._cmdIdleTick)},r.prototype._registerBehaviours=function(){this._pluginManager.registerBehaviour(new a(v,I),this,"handleVideoLoad",[new s(C,"rsid","rsid"),new s(C,"tracking_server","trackingServer")]),this._pluginManager.registerBehaviour(new a(v,D),this,"handleVideoUnload"),this._pluginManager.registerBehaviour(new a(v,k),this,"handleVideoStart",[new s(v,"video.id","videoId"),new s(v,"video.name","videoName"),new s(v,"video.length","videoLength"),new s(v,"video.playhead","playhead"),new s(v,"video.playerName","playerName"),new s(v,"video.streamType","streamType"),new s(v,"qos.fps","fps"),new s(v,"qos.droppedFrames","droppedFrames"),new s(v,"qos.bitrate","bitrate"),new s(v,"qos.startupTime","startupTime"),new s(C,"rsid","rsid"),new s(C,"tracking_server","trackingServer"),new s(C,"channel","channel"),new s(C,"meta.video.*","metaVideo"),new s(C,"ssl","useSsl"),new s(y,"meta","metaNielsen"),new s(m,"publisher","publisher"),new s(m,"sdk","sdk"),new s(m,"ovp","ovp"),new s(m,"version","version"),new s(m,"api_level","apiLvl")]),this._pluginManager.registerBehaviour(new a(v,R),this,"handleVideoComplete",[new s(v,"qos.fps","fps"),new s(v,"qos.droppedFrames","droppedFrames"),new s(v,"qos.bitrate","bitrate"),new s(v,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new a(v,N),this,"handleVideoResume",[new s(v,"video.id","videoId"),new s(v,"video.name","videoName"),new s(v,"video.length","videoLength"),new s(v,"video.playhead","playhead"),new s(v,"video.playerName","playerName"),new s(v,"video.streamType","streamType")]),this._pluginManager.registerBehaviour(new a(v,x),this,"handlePlay",[new s(v,"video.playhead","playhead"),new s(v,"qos.fps","fps"),new s(v,"qos.droppedFrames","droppedFrames"),new s(v,"qos.bitrate","bitrate"),new s(v,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new a(v,V),this,"handlePause",[new s(v,"video.playhead","playhead"),new s(v,"video.playheadStalled","playheadStalled"),new s(v,"qos.fps","fps"),new s(v,"qos.droppedFrames","droppedFrames"),new s(v,"qos.bitrate","bitrate"),new s(v,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new a(v,U),this,"handleAdStart",[new s(v,"video.playhead","playhead"),new s(v,"ad.id","adId"),new s(v,"ad.name","adName"),new s(v,"ad.length","adLength"),new s(v,"ad.position","adPosition"),new s(v,"pod.name","podName"),new s(v,"pod.playerName","podPlayerName"),new s(v,"pod.position","podPosition"),new s(v,"pod.startTime","podSecond"),new s(v,"qos.fps","fps"),new s(v,"qos.droppedFrames","droppedFrames"),new s(v,"qos.bitrate","bitrate"),new s(v,"qos.startupTime","startupTime"),new s(C,"meta.video.*","metaVideo"),new s(C,"meta.ad.*","metaAd"),new s(y,"meta","metaNielsen")]),this._pluginManager.registerBehaviour(new a(v,F),this,"handleAdComplete",[new s(v,"video.playhead","playhead"),new s(v,"ad.isInAdBreak","isInAdBreak"),new s(v,"qos.fps","fps"),new s(v,"qos.droppedFrames","droppedFrames"),new s(v,"qos.bitrate","bitrate"),new s(v,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new a(v,j),this,"handleBufferStart",[new s(v,"video.playhead","playhead"),new s(v,"qos.fps","fps"),new s(v,"qos.droppedFrames","droppedFrames"),new s(v,"qos.bitrate","bitrate"),new s(v,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new a(v,G),this,"handleBufferComplete",[new s(v,"video.playhead","playhead"),new s(v,"qos.fps","fps"),new s(v,"qos.droppedFrames","droppedFrames"),new s(v,"qos.bitrate","bitrate"),new s(v,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new a(v,Y),this,"handleSeekStart",[new s(v,"video.playhead","playhead")]),this._pluginManager.registerBehaviour(new a(v,H),this,"handleSeekComplete",[new s(v,"video.playhead","playhead"),new s(v,"ad.isInAd","isInAd"),new s(v,"ad.id","adId"),new s(v,"ad.position","adPosition"),new s(v,"pod.playerName","podPlayerName"),new s(v,"pod.position","podPosition"),new s(v,"chapter.isInChapter","isInChapter"),new s(v,"chapter.position","chapterPosition"),new s(v,"chapter.name","chapterName"),new s(v,"chapter.length","chapterLength"),new s(v,"chapter.startTime","chapterOffset"),new s(v,"qos.fps","fps"),new s(v,"qos.droppedFrames","droppedFrames"),new s(v,"qos.bitrate","bitrate"),new s(v,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new a(v,q),this,"handleChapterStart",[new s(v,"video.playhead","playhead"),new s(v,"chapter.position","chapterPosition"),new s(v,"chapter.name","chapterName"),new s(v,"chapter.length","chapterLength"),new s(v,"chapter.startTime","chapterOffset"),new s(v,"qos.fps","fps"),new s(v,"qos.droppedFrames","droppedFrames"),new s(v,"qos.bitrate","bitrate"),new s(v,"qos.startupTime","startupTime"),new s(C,"meta.video.*","metaVideo"),new s(C,"meta.chapter.*","metaChapter"),new s(y,"meta","metaNielsen")]),this._pluginManager.registerBehaviour(new a(v,K),this,"handleChapterComplete",[new s(v,"video.playhead","playhead"),new s(v,"qos.fps","fps"),new s(v,"qos.droppedFrames","droppedFrames"),new s(v,"qos.bitrate","bitrate"),new s(v,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new a(v,W),this,"handleBitrateChange",[new s(v,"video.playhead","playhead"),new s(v,"qos.fps","fps"),new s(v,"qos.droppedFrames","droppedFrames"),new s(v,"qos.bitrate","bitrate"),new s(v,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new a(v,J),this,"handleTrackError"),this._pluginManager.registerBehaviour(new a(A,Q),this,"handleClockReportingTick",[new s(v,"video.playhead","playhead"),new s(v,"qos.fps","fps"),new s(v,"qos.droppedFrames","droppedFrames"),new s(v,"qos.bitrate","bitrate"),new s(v,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new a(A,$),this,"handleIdleTick",[]),this._pluginManager.registerBehaviour(new a(m,O),this,"handleClockReportingTick",[new s(v,"video.playhead","playhead"),new s(v,"qos.fps","fps"),new s(v,"qos.droppedFrames","droppedFrames"),new s(v,"qos.bitrate","bitrate"),new s(v,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new a(C,w),this,"handleAnalyticsError"),this._pluginManager.registerBehaviour(new a(C,E),this,"handleAnalyticsStart",[new s(C,"vid","vid"),new s(C,"aid","aid"),new s(C,"mid","mid"),new s(C,"customerIDs","customerIDs"),new s(C,"visitorOptedOut","visitorOptedOut"),new s(C,"blob","blob"),new s(C,"loc_hint","loc_hint"),new s(v,"video.playhead","playhead"),new s(v,"qos.fps","fps"),new s(v,"qos.droppedFrames","droppedFrames"),new s(v,"qos.bitrate","bitrate"),new s(v,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new a(C,T),this,"handleAnalyticsAdStart",[new s(v,"video.playhead","playhead"),new s(v,"qos.fps","fps"),new s(v,"qos.droppedFrames","droppedFrames"),new s(v,"qos.bitrate","bitrate"),new s(v,"qos.startupTime","startupTime")])},r.prototype._setupDataResolver=function(){var i={},e=this;i.version=function(){return l.getVersion()},i.api_level=function(){return l.getApiLevel()},i.tracking_server=function(){return e._config?e._config.trackingServer:null},i.publisher=function(){return e._config?e._config.publisher:null},i.quiet_mode=function(){return!!e._config&&e._config.quietMode},i.ovp=function(){return e._config?e._config.ovp:null},i.sdk=function(){return e._config?e._config.sdk:null},i.is_primetime=function(){return!!e._config&&e._config.__isPrimetime},i.psdk_version=function(){return e._config?e._config.__psdkVersion:null},i.session_id=function(){return e._channel.request(P)},this._dataResolver=function(e){if(!e||0==e.length)return null;for(var t=null,n=0;n In ERROR state."),!1):i.__super__._canProcess.call(this)},i.prototype._cmdVideoLoad=function(e){this._errorInfo=null},i.prototype._cmdVideoStart=function(e){this._logger.debug(this._logTag,"#_cmdVideoStart()"),this._canProcess()&&this._workQueue.addCommand(new u(this._executeOpen,this,[e]))},i.prototype._cmdAdStart=function(e){this._logger.debug(this._logTag,"#_cmdAdStart()"),this._canProcess()&&this._workQueue.addCommand(new u(this._executeOpenAd,this,[e]))},i.prototype._cmdHeartbeatPluginError=function(e){this._errorInfo||(this._errorInfo=new d("Internal error","HeartbeatPlugin is in ERROR state."),this._trigger(b,this._errorInfo),this._delegate&&this._delegate.onError(this._errorInfo))},i.prototype._resetAppMeasurementContextData=function(){delete this._appMeasurement.contextData["a.contentType"],delete this._appMeasurement.contextData["a.media.name"],delete this._appMeasurement.contextData["a.media.friendlyName"],delete this._appMeasurement.contextData["a.media.length"],delete this._appMeasurement.contextData["a.media.playerName"],delete this._appMeasurement.contextData["a.media.channel"],delete this._appMeasurement.contextData["a.media.view"],delete this._appMeasurement.contextData["a.media.ad.name"],delete this._appMeasurement.contextData["a.media.ad.friendlyName"],delete this._appMeasurement.contextData["a.media.ad.podFriendlyName"],delete this._appMeasurement.contextData["a.media.ad.length"],delete this._appMeasurement.contextData["a.media.ad.playerName"],delete this._appMeasurement.contextData["a.media.ad.pod"],delete this._appMeasurement.contextData["a.media.ad.podPosition"],delete this._appMeasurement.contextData["a.media.ad.podSecond"],delete this._appMeasurement.contextData["a.media.ad.view"];for(var e=0;ee.length||r+i>n.length)return!1;for(;0="a".charCodeAt(0)&&(c="c"+String.fromCharCode(n)+"_"),n++,s&&s!=o&&l.te(c+"cs_c12u",s),e[a]=o,i.setPublisherUniqueDeviceId(o)}u.put(G.Xn,e)}function w(e){var t;if(e instanceof k)t=e;else{t=new k,"object"==typeof e&&t.addLabels(e);var n=g.getIncludedPublishers();if(0>>32-i,n)}function o(e,t,n,r,i,a,o){return s(t&n|~t&r,e,t,i,a,o)}function c(e,t,n,r,i,a,o){return s(t&r|n&~r,e,t,i,a,o)}function u(e,t,n,r,i,a,o){return s(t^n^r,e,t,i,a,o)}function l(e,t,n,r,i,a,o){return s(n^(t|~r),e,t,i,a,o)}function d(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)>2]|=e.charCodeAt(r)>2]|=128>8*n+4&15]+r[e>>8*n&15];return t}(t[n]);return t.join("")}),e.exports=n.Ge},function(e,t){e.exports={DISABLED:4,LAN:3,MANUAL_FLUSH:2,ENABLED:1}},function(e,t){e.exports={STANDARD:1,LAN:2,CACHE:3}},function(e,t,n){var L=n(0),M=n(2).mn,R=n(11),n=n(27),x={je:2,He:3,we:4},V={Ke:1,Je:2,we:3};function r(r,e){var c,u,l,d,p,f,i,a,o,s,h,_,g,m,C,v,y,A,n,P,t,b,S=this,w=[],E=[];function T(e){if((t=u?V.Ke:l?V.Je:V.we)!=d){var t;if(d!=t){var n=d,r=e;switch(n){case V.we:break;case V.Je:case V.Ke:k()}for(var i=0;il&&f(0Q.Gi)||(U=!0,B=e)},ji:function(){return U?B:re.M},addIncludedPublisher:function(e){-1==y.indexOf(e)&&y.push(e)},getIncludedPublishers:function(){return y},addCrossPublisherUniqueDeviceIdChangeListener:function(e){K.Nn(e)&&-1===v.indexOf(e)&&v.push(e)},removeCrossPublisherUniqueDeviceIdChangeListener:function(e){e=v.indexOf(e);-1!==e&&v.splice(e,1)},Ut:function(e){if("string"==typeof e)for(var t=0;tr?0:h))||0==d.length||l)){l=!0;for(var n=(s=e).Li(),t,r=((t={}).c2=s.getPublisherConfigurations()[0].getPublisherId(),"JetportGotAMaskOfThe"+s.getPublisherConfigurations()[0].getPublisherSecret()+"S.D_K-"),r=v(r),r=(t.s=r,_.We(n,t,s.getLabelOrder())),n=s,i=+new Date-24*n.Wi()*60*60*1e3,a=0;a="a".charCodeAt(0)&&t[1].charCodeAt(0)=Ie&&(ye=!0,V++))},Lu:function(){return v},Tu:function(e){v=e},Nu:function(e){var t;isNaN(y)||(t=l.Lu(),t+=e-y,l.Tu(t),y=NaN)},Ou:function(){return y},Ru:function(e){y=e},Fr:function(e){isNaN(g)||(_+=e-g,g=NaN)},Pr:function(){return _},oo:function(e){return C+Math.floor((e-p)*F/100)},_o:function(e){return C+Math.floor((e-i)*F/100)},do:function(e,t){return C+A-t+e-i},vo:function(e){return A+Math.floor((e-i)*(1-F/100))},lo:function(e){return A+e-i},Qr:function(e){C=e},Zr:function(e){p=e},ku:function(){return p},ro:function(){return C},Cr:function(){return g},Kr:function(e){g=e},Mu:function(e){m=e},Hr:function(){return I},jr:function(e){I=e},Jr:function(){return B},Yr:function(e){B=e},Uu:function(){return L},xu:function(e){L=e},Wu:function(e){ce=e},Fu:function(){return ce},Bu:function(e){le=e},Vu:function(){return le},co:function(){return d},xo:function(e){d=e},qu:function(e){f=e},Ur:function(){return f},Gu:function(e){a=e},ju:function(){return a},Hu:function(e){var t;isNaN(a)||(t=l.Ku(),t+=e-a,l.Ju(t),a=NaN)},Ku:function(){return N},Ju:function(e){N=e},Yu:function(e){pe=e},Xu:function(){return pe},zu:function(e){o=e},Qu:function(){return o},$u:function(e){O=e},Zu:function(){return O},ns:function(e){var t,n=l.Zu();n+=Math.abs(e-o),l.$u(n),o==e?t=0:e\n'+o+""}(t[u],a,s)+"\n";return(o=(o+='md5="'+d(s.join(""))+'" ')+">\n"+c)+""}}},function(e,t,n){var r=n(0);e.exports=function(e){r.extend(this,{PlatformApis:e.PlatformApis,setPlatformAPI:e.setPlatformApi,setPlatformApi:e.setPlatformApi})}},function(e,t){e.exports={SmartTV:0,Netcast:1,Cordova:2,Trilithium:3,AppleTV:4,Chromecast:5,Xbox:6,webOS:7,tvOS:8,nodejs:9,html5:10,JSMAF:11,Skeleton:12,WebBrowser:13}},function(e,t,n){var r=n(0),i=n(5),a=n(4),o=n(3),s=n(6).Un,c=n(61),u=n(62),l=n(63),d=n(9),p=o.Sn,f=o.wn,h=null,_=null,g=null;function m(){var e;null==h&&(e=function(){if("object"!=typeof sf||"object"!=typeof sf.core||"function"!=typeof sf.core.sefplugin)return null;var e=sf.core.sefplugin("NNAVI");if("function"!=typeof e.Open||"function"!=typeof e.Execute)return null;e.Open("Network","1.001","Network");var t=e.Execute("GetMAC","0");return a.Pn(t)&&(t=e.Execute("GetMAC","1"),a.Pn(t))?(e=e.Execute("GetDeviceID"),a.Pn(e)?null:e):t}(),g=null!=e?(_="31",h=e):(h=+new Date+~~(1e3*Math.random()),_="72",null))}n=r.extend({},i,{D:"smarttv",T:s,N:null,Storage:c,O:!0,R:u,k:l,M:6e4,W:function(){return m(),g},B:function(){return"undefined"!=typeof sf&&a.Cn(sf.env)&&a.Cn(sf.env.getAppVersion)&&sf.env.getAppVersion()||p},V:function(){return m(),h},G:function(){return _},j:function(){return"undefined"!=typeof sf&&a.Cn(sf.core)&&a.Cn(sf.core.getEnvValue)&&sf.core.getEnvValue("modelid")||p},H:function(){return"2.0.0"},J:function(){var e;if("undefined"!=typeof sf&&a.Cn(sf.env)&&a.Cn(sf.env.getProductType)&&a.Cn(sf.env.PRODUCTTYPE_TV)&&a.Cn(sf.env.PRODUCTTYPE_MONITOR)&&a.Cn(sf.env.PRODUCTTYPE_BD))return(e=[])[sf.env.PRODUCTTYPE_TV]="samsung-smarttv-tv",e[sf.env.PRODUCTTYPE_MONITOR]="samsung-smarttv-monitor",e[sf.env.PRODUCTTYPE_BD]="samsung-smarttv-bd",e[sf.env.getProductType()]},Y:function(){return"undefined"!=typeof sf&&a.Cn(sf.env)&&a.Cn(sf.env.getFirmwareVer)&&sf.env.getFirmwareVer().version},X:function(){var e;return"undefined"!=typeof sf&&a.Cn(sf.env)&&a.Cn(sf.env.getScreenSize)?(e=sf.env.getScreenSize()).width+"x"+e.height:f},nn:function(){if("undefined"!=typeof sf&&a.Cn(sf.env)&&a.Cn(sf.env.getLanguageCode))return sf.env.getLanguageCode()},in:function(){if("object"!=typeof sf||"object"!=typeof sf.core||"function"!=typeof sf.core.sefplugin)return d.UNKNOWN;var e=sf.core.sefplugin("NETWORK");if("function"!=typeof e.Open||"function"!=typeof e.Execute)return d.UNKNOWN;e.Open("Network","1.001","Network");e=e.Execute("GetActiveType");return 0===e?d.ETHERNET:1===e?d.WIFI:d.UNKNOWN}});e.exports=n},function(e,t,n){var r,i,a,o,s=n(0);e.exports=function(e){a="undefined"!=typeof FileSystem?new FileSystem:null,o="undefined"!=typeof curWidget?curWidget.id:null,"undefined"!=typeof sf?r=i=function(e,t){sf.core.localData(e,t)}:(r=function(e,t){$.sf.setData(e,void 0===t?null:t)},i=function(e){return $.sf.getData(e)}),null==a||void 0===a.isValidCommonPath||a.isValidCommonPath(o)||a.createCommonDir(o),s.extend(this,{storeProperties:function(e){try{r("cs_settings",e)}catch(e){}},getProperties:function(){try{return i("cs_settings")}catch(e){}},storeCache:function(e){try{t=e,n=o+"/cs_cache_dir",a.isValidCommonPath(n)||a.createCommonDir(n),(n=a.openCommonFile(n+"/cs_cache_dir_single","w")).writeLine(t),a.closeCommonFile(n)}catch(e){}var t,n},getCache:function(){try{return t=o+"/cs_cache_dir",a.isValidCommonPath(t)&&(t=a.openCommonFile(t+"/cs_cache_dir_single","r"))?(e=t.As(),a.closeCommonFile(t),e):null}catch(e){}var e,t}})}},function(e,t,n){var r,i,a=n(0);"undefined"!=typeof sf?i=r=function(e,t){sf.core.localData(e,t)}:(i=function(e,t){$.sf.setData(e,void 0===t?null:t)},r=function(e){return $.sf.getData(e)}),e.exports=function(){a.extend(this,{get:function(e){return r("cs_"+e)},set:function(e,t){i("cs_"+e,t)},has:function(e){return void 0!==r("cs_"+e)},remove:function(e){i("cs_"+e,null)},clear:function(){}})}},function(e,t,n){var o,r,i=n(21),a=n(0),s=null,c=null,u={},l=!1;function d(){s="undefined"!=typeof FileSystem?new FileSystem:null,c="undefined"!=typeof curWidget?curWidget.id:null,"undefined"!=typeof sf&&(r=o=function(e,t){sf.core.localData(e,t)}),null==s||void 0===s.isValidCommonPath||s.isValidCommonPath(c)||s.createCommonDir(c),l=!0}function p(e){return e.replace(/^\s+|\s+$/g,"")}function f(e,t){var n=u[e];n?n.push(t):n=u[e]=[t],r("cs_dir_"+e,n.join("|"))}function h(e,t){var n=u[e],t=i.indexOf(t,n);0>14;0>14,l=s*c+u*o;i=((c=o*c+((16383&l)>28)+(l>>14)+s*u,n[r++]=268435455&c}return i},m.prototype.Os=28,m.prototype.Rs=268435455,m.prototype.ks=1>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function y(e){this.o=e}function A(e){this.o=e,this.Fs=e.Bs(),this.Vs=32767&this.Fs,this.qs=this.Fs>>15,this.Gs=(1>15)*this.Vs&this.Gs)=e.ks;)e[n]-=e.ks,e[++n]++}e.ua(),e.sa(this.o._,e),0this.Os?(this[this._-1]|=(o&(1>this.Os-a):this[this._-1]|=o=this.Os&&(a-=this.Os))}8==n&&0!=(128&e[0])&&(this.s=-1,0>r|o,o=(this[s]&i)=this._)t._=0;else{var r=e%this.Os,i=this.Os-r,a=(1>r;for(var o=n+1;o>r;0>=this.Os;if(e._>=this.Os;r+=this.s}else{for(r+=this.s;n>=this.Os;r-=e.s}t.s=r=t.ks&&(e[n+t._]-=t.ks,e[n+t._+1]=1)}0>this.xs:0),l=this.Ms/r,d=(1>s)&&(i=!0,a=c(n));0>(s+=this.Os-t)):(n=this[o]>>(s-=t)&r,s2*this.o._?e.Qs(this.o):e.zs(this.o)this.o._+1&&(e._=this.o._+1,e.ua()),this.Js.ha(this.r2,this.o._+1,this.Hs),this.o.ga(this.Hs,this.o._+1,this.r2);e.zs(this.r2)>8&255,E[T++]^=e>>16&255,E[T++]^=e>>24&255,256=n&&(this.Ea(r),this.ma(o,0),o=a=0))}0e&&this.ra(m.ONE.shiftLeft(e-1),this);else{var n=[],r=7&e;n.length=1+(e>>3),t.Ca(n),0>=this.Os;if(e._>=this.Os;r+=this.s}else{for(r+=this.s;n>=this.Os;r+=e.s}t.s=r=this.ks;)this[t]-=this.ks,++t>=this._&&(this[this._++]=0),++this[t]}},m.prototype.ga=function(e,t,n){var r,i=Math.min(this._+e._,t);for(n.s=0,n._=i;0>1)>h.length&&(e=h.length);for(var i=C(),a=0;a>24},m.prototype.Wa=function(){return 0==this._?this.s:this[0]>16},m.prototype.ba=function(){return this.s>r)!=(this.s&this.Rs)>>r&&(t[i++]=n|this.s>(r+=this.Os-8)):(n=this[e]>>(r-=8)&255,r>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t));return this.s=this._?0!=this.s:0!=(this[t]&1>n-c&u:(d=(e[f]&(1>this.Os+n-c)),s=i;0==(1&d);)d>>=1,--s;if((n-=s)>>8,E[T++]=255&w;T=0,S()}function I(){}function D(e,t){return new m(e,t)}function k(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}I.prototype.Ca=function(e){for(var t=0;t>6|192):(n[--t]=63&i|128,n[--t]=i>>6&63|128,n[--t]=i>>12|224)}n[--t]=0;for(var a=new I,o=[];2>3);return null==e||null==(e=this.tf(e))?null:0==(1&(e=e.toString(16)).length)?e:"0"+e},k.prototype.if=function(e){if(null==this.p||null==this.q)return e.Ua(this.d,this.n);for(var t=e.Qs(this.p).Ua(this.dmp1,this.p),n=e.Qs(this.q).Ua(this.dmq1,this.q);t.zs(n)>1;this.e=parseInt(t,16);for(var i=new m(t,16);;){for(;this.p=new m(e-r,1,n),0!=this.p.Ra(m.ONE).Za(i).zs(m.ONE)||!this.p.Da(10););for(;this.q=new m(r,1,n),0!=this.q.Ra(m.ONE).Za(i).zs(m.ONE)||!this.q.Da(10););this.p.zs(this.q)>3,n=e.Fa(),r=0;r=n.length)return null;for(var i="";++r>6)+N.charAt(63&t);for(r+1==e.length?(t=parseInt(e.substring(r,r+1),16),n+=N.charAt(t>2)+N.charAt((3&t)>16,n>>8&255,255&n));switch(t){case 1:n=o(e,a)>16,n>>8&255));break;case 2:n=o(e,a)>16))}return i.join("")}(e);for(var n=0;n>2),t=3&a,1):1==r?(n+=c(t>4),t=15&a,2):2==r?(n=(n+=c(t))+c(a>>2),t=3&a,3):(n=(n+=c(t>4))+c(15&a),0))}return 1==r&&(n+=c(t>>2]|=(n[i>>>2]>>>24-i%4*8&255)>>2]=n[i>>>2];else t.push.apply(t,n);return this.sigBytes+=e,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)>>2]>>>24-r%4*8&255));return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))>>24)|4278255360&(a>>8),o=16711935&((o=e[t+2*i+1])>>24)|4278255360&(o>>8),s=n[i];s.high^=o,s.low^=a}for(r=0;r>>31),c=s.low^(u>>31),u=0;u>>32-u,s>>32-u):(a=s>>64-u,i>>64-u),(s=_[d[o]]).high=a,s.low=c;for(i=n[0],(s=_[0]).high=i.high,s.low=i.low,i=0;i>>5]|=1>>5)-1]|=128,r.sigBytes=4*e.length,this._process();for(var r=this._state,t=(e=this.cfg.outputLength/8)/8,n=[],i=0;i>>24)|4278255360&(a>>8);n.push(16711935&(o>>24)|4278255360&(o>>8)),n.push(a)}return new c.init(n,e)},clone:function(){for(var e=r.clone.call(this),t=e._state=this._state.slice(0),n=0;n|>)/i.test(e)?(t=/|>)/i.exec(e)[0],/alt="[^"]+?"/.test(t)?/alt="(.*?)"/i.exec(t)[1]:/src="(.*\/|)(.*?)"/i.exec(t)[2]):(e=e.replace(/<.>/g,"")).replace("/&/i","")).replace(/["]/g,"")).length?e.substr(0,50):e},findParentTag:function(e,t){if(e.nodeName===t.toUpperCase())return e;for(;"BODY"!==e.nodeName&&(e=e.parentNode)&&e.nodeName!==t.toUpperCase(););return e&&"BODY"!==e.nodeName?e:null},debug:function(e){Boolean(CBC.APP.SC.DEBUG)&&"undefined"!=typeof console&&"function"==typeof console.log&&console.log(e)},debugListeners:function(){for(var e=0;eG.ADOBE_MC_TTL_IN_MIN||t.MCORGID!==r||(n((e=t)[S],g.setMarketingCloudVisitorID,S),g._setFieldExpire(T,-1),n(e[w],g.setAnalyticsVisitorID)))},g._mergeServerState=function(e){if(e)try{var t;r=e,(e=N.isObject(r)?r:JSON.parse(r))[g.marketingCloudOrgID]&&(t=e[g.marketingCloudOrgID],n=t.customerIDs,N.isObject(n)&&g.setCustomerIDs(n),i(t.sdid))}catch(e){throw new Error("`serverState` has an invalid format.")}var n,r},g._timeout=null,g._loadData=function(e,t,n,r){t=g._addQuerystringParam(t,"d_fieldgroup",e,1),r.url=g._addQuerystringParam(r.url,"d_fieldgroup",e,1),r.corsUrl=g._addQuerystringParam(r.corsUrl,"d_fieldgroup",e,1),B.fieldGroupObj[e]=!0,r===Object(r)&&r.corsUrl&&"XMLHttpRequest"===D.corsMetadata.corsType&&D.fireCORS(r,n,e)},g._clearTimeout=function(e){null!=g._timeout&&g._timeout[e]&&(clearTimeout(g._timeout[e]),g._timeout[e]=0)},g._settingsDigest=0,g._getSettingsDigest=function(){var e;return g._settingsDigest||(e=g.version,g.audienceManagerServer&&(e+="|"+g.audienceManagerServer),g.audienceManagerServerSecure&&(e+="|"+g.audienceManagerServerSecure),g._settingsDigest=g._hash(e)),g._settingsDigest},g._readVisitorDone=!1,g._readVisitor=function(){if(!g._readVisitorDone){g._readVisitorDone=!0;var e,t,n,r,i,a=g._getSettingsDigest(),o=!1,s=g.cookieRead(g.cookieName),c=new Date;if(s||y||g.discardTrackingServerECID||(s=g.cookieRead(G.FIRST_PARTY_SERVER_COOKIE)),null==g._fields&&(g._fields={}),s&&"T"!==s)for((s=s.split("|"))[0].match(/^[\-0-9]+$/)&&(parseInt(s[0],10)!==a&&(o=!0),s.shift()),s.length%2==1&&s.pop(),e=0;e=1e3*r||i&&!g.cookieRead(g.sessionCookieName))&&(g._fieldsExpired||(g._fieldsExpired={}),g._fieldsExpired[t]=!0);!g._getField(w)&&N.isTrackingServerPopulated()&&(s=g.cookieRead("s_vi"))&&1this.MAX_SYNCS_LENGTH)for(e.sort(function(e,t){return parseInt(e.split("-")[1],10)-parseInt(t.split("-")[1],10)});e.join("*").length>this.MAX_SYNCS_LENGTH;)e.shift()},fireSync:function(e,t,n,r,l,i){var d=this;if(e){if("img"===t.tag)for(var a=t.url,o=h.loadSSL?"https:":"http:",s=0,c=a.length;sG.DAYS_BETWEEN_SYNC_ID_CALLS},attachIframeASAP:function(){var t=this;!function e(){t.startedAttachingIframe||(p.body?t.attachIframe():setTimeout(e,30))}()}}),B=(g._destinationPublishing=O,g.timeoutMetricsLog=[],{isClientSideMarketingCloudVisitorID:null,MCIDCallTimedOut:null,AnalyticsIDCallTimedOut:null,AAMIDCallTimedOut:null,fieldGroupObj:{},setState:function(e,t){switch(e){case"MC":!1===t?!0!==this.MCIDCallTimedOut&&(this.MCIDCallTimedOut=!1):this.MCIDCallTimedOut=t;break;case"A":!1===t?!0!==this.AnalyticsIDCallTimedOut&&(this.AnalyticsIDCallTimedOut=!1):this.AnalyticsIDCallTimedOut=t;break;case E:!1===t?!0!==this.AAMIDCallTimedOut&&(this.AAMIDCallTimedOut=!1):this.AAMIDCallTimedOut=t}}});if(g.isClientSideMarketingCloudVisitorID=function(){return B.isClientSideMarketingCloudVisitorID},g.MCIDCallTimedOut=function(){return B.MCIDCallTimedOut},g.AnalyticsIDCallTimedOut=function(){return B.AnalyticsIDCallTimedOut},g.AAMIDCallTimedOut=function(){return B.AAMIDCallTimedOut},g.idSyncGetOnPageSyncInfo=function(){return g._readVisitor(),g._getField("MCSYNCSOP")},g.idSyncByURL=function(e){var t,n,r,i,a;if(!g.isOptedOut())return i=(r=e||{}).minutesToLive,a="",(g.idSyncDisableSyncs||g.disableIdSyncs)&&(a=a||"Error: id syncs have been disabled"),"string"==typeof r.dpid&&r.dpid.length||(a=a||"Error: config.dpid is empty"),"string"==typeof r.url&&r.url.length||(a=a||"Error: config.url is empty"),void 0===i?i=20160:(i=parseInt(i,10),(isNaN(i)||i>>t|e>8)return;c[r>>2]|=i>>3)+_[r-7]+(n(C,17)^n(C,19)^C>>>10)|0);(l=[y+((n(v,2)^n(v,13)^n(v,22))+(v&l[1]^v&l[2]^l[1]&l[2]))|0].concat(l))[4]=l[4]+y|0}for(r=0;r>8*i&255;s+=(A-1?i:l.length;a[x++]=l.substring(0,i);l=l.substring(i+d.length);}return a"),e.apl=function(e,t,n,r){var i=0;if(e=e||"",r)for(var a,o=this.split(e,n),s=0;st){f.K.unshift(e),setTimeout(f.delayReady,parseInt(f.maxDelay/2));break}f.Ja=1,f[e.m].apply(f,e.a),f.Ja=0}},f.setAccount=f.sa=function(e){var t,n;if(!f.ea("setAccount",arguments))if(f.account=e,f.allAccounts)for(t=f.allAccounts.concat(e.split(",")),f.allAccounts=[],t.sort(),n=0;nf.N&&f.Ua(f.i),f.qa(500)):0f.N&&f.Ua(f.i),f.ca(),f.qa(500)},t.onreadystatechange=function(){4==t.readyState&&(200==t.status?t.R():t.ga())},f.Sa=f.A(),1===n)t.send(e);else if(2===n)r=e.indexOf("?"),n=e.substring(0,r),r=(r=e.substring(r+1)).replace(/&callback=[a-zA-Z0-9_.\[\]]+/,""),t.open("POST",n,!0),t.withCredentials=!0,t.send(r);else if(t.src=e,3===n){if(f.Qa)try{r.removeChild(f.Qa)}catch(e){}r.firstChild?r.insertBefore(t,r.firstChild):r.appendChild(t),f.Qa=f.v}t.D=setTimeout(function(){t.D&&(t.complete?t.R():(f.trackOffline&&t.abort&&t.abort(),t.ga()))},5e3),f.Fb=e,f.v=d["s_i_"+f.replace(f.account,",","_")]=t,(f.useForcedLinkTracking&&f.J||f.bodyClickFunction)&&(f.forcedLinkTrackingTimeout||(f.forcedLinkTrackingTimeout=250),f.da=setTimeout(f.ca,f.forcedLinkTrackingTimeout))},f.lb=function(e){var t=!1;return navigator.sendBeacon&&(f.nb(e)||f.useBeacon)&&(t=!0),t=f.vb(e)?!1:t},f.nb=function(e){return!!(e&&0f.N))try{d.localStorage.removeItem(f.ma()),f.Ra=f.A()}catch(e){}},f.Ua=function(e){if(f.oa()){f.Wa();try{d.localStorage.setItem(f.ma(),d.JSON.stringify(e)),f.N=f.A()}catch(e){}}},f.Wa=function(){if(f.trackOffline)for((!f.offlineLimit||f.offlineLimitf.offlineLimit;)f.Ka()},f.forceOffline=function(){f.na=!0},f.forceOnline=function(){f.na=!1},f.ma=function(){return f.offlineFilename+"-"+f.visitorNamespace+f.account},f.A=function(){return(new Date).getTime()},f.Oa=function(e){return 0!=(e=e.toLowerCase()).indexOf("#")&&0!=e.indexOf("about:")&&0!=e.indexOf("opera:")&&0!=e.indexOf("javascript:")},f.setTagContainer=function(e){var t,n,r;for(f.Yb=e,t=0;ts.status.thresholds.domNode&&(s.status.activity.readingPoints+=s.status.activity.increment),s.status.activity.vpp>s.status.thresholds.viewport&&(s.status.activity.readingPoints+=s.status.activity.increment),s.status.activity.readingPoints)},isUpdateRequired:function(){return s.status.activity.pollingPoints+=100*Math.pow(.9,s.status.activity.timeInUnknownState),s.status.activity.pollingPoints>=s.status.thresholds.domPolling&&(s.console("readJS: analyzing the DOM at",s.status.activity.timeOnPage," seconds",s.status.activity.pollingPoints),!(s.status.activity.pollingPoints=0))},reactivate:function(){s.console("readJS: reactivating refresh rate"),s.status.activity.timeInUnknownState=0,s.status.activity.pollingPoints+=s.status.activity.increment},inDebugMode:function(){s.status.debug.overlay&&(s.scrollDataOverlay=document.createElement("DIV"),s.scrollDataOverlay.style.position="fixed",s.scrollDataOverlay.style.bottom="2em",s.scrollDataOverlay.style.right="2em",s.scrollDataOverlay.style.zIndex=1e4,s.scrollDataOverlay.id="scrollinfo",document.body.appendChild(s.scrollDataOverlay),s.showScrollInfo())},inViewport:function(e){e=e.getBoundingClientRect();return 0s.status.activity.scrollDepth&&(s.status.activity.scrollDepth=e),!0},removeDomNode:function(e){e=document.getElementById(e);return!!e&&(e.parentNode.removeChild(e),!null)},removeOverlays:function(){s.removeDomNode("viewport_inview"),s.removeDomNode("overlap_inview"),s.removeDomNode("domnode_inview")},getVisibilityProperties:function(){var e,t;return void 0!==document.hidden?(e="hidden",t="visibilitychange"):void 0!==document.mozHidden?(e="mozHidden",t="mozvisibilitychange"):void 0!==document.msHidden?(e="msHidden",t="msvisibilitychange"):void 0!==document.webkitHidden&&(e="webkitHidden",t="webkitvisibilitychange"),{hiddenProp:e,eventName:t}},handleVisibilityChange:function(){var e=s.getVisibilityProperties().hiddenProp;document[e]?(s.console("readJS: pausing after detecting focus to another tab"),s.stopPolling(),s.calculateTotalTime()):(s.console("readJS: reinitializing after detecting tab is in focus"),s.initialize(s.callback))},inView:function(e){s.domNode=e;var t,n,r={tl:[],br:[]},i=(r.tl[0]=Math.abs(document.body.scrollLeft||document.documentElement.scrollLeft),r.tl[1]=Math.abs(document.body.scrollTop||document.documentElement.scrollTop),r.br[0]=r.tl[0]+window.innerWidth,r.br[1]=r.tl[1]+window.innerHeight,r.width=window.innerWidth,r.height=window.innerHeight,r.area=r.width*r.height,s.status.debug.overlay&&(s.status.debug.overlays.vui||((i=document.createElement("DIV")).id="viewport_inview",i.style.position="absolute",i.style.background="green",i.style.opacity="0.5",i.style.zIndex=9999,document.body.appendChild(i),s.status.debug.overlays.vui=i),(i=s.status.debug.overlays.vui).style.left=r.tl[0]+"px",i.style.top=r.tl[1]+"px",i.style.width=r.width+"px",i.style.height=r.height+"px"),{tl:[],br:[]}),e=e.getBoundingClientRect(),a=void 0===window.scrollX?parseInt(window.pageXOffset,10):parseInt(window.scrollX,10),o=void 0===window.scrollY?parseInt(window.pageYOffset,10):parseInt(window.scrollY,10);return i.tl[0]=e.left+a,i.tl[1]=e.top+o,i.br[0]=i.tl[0]+e.width,i.br[1]=i.tl[1]+e.height,s.getScrollInfo(),s.status.thresholds.scrollDepth=Math.abs(i.tl[1])+e.height*s.status.thresholds.minVertical/100,s.status.debug.overlay&&(s.status.debug.overlays.dui||((n=document.createElement("DIV")).id="domnode_inview",n.style.position="absolute",n.style.background="blue",n.style.opacity="0.5",n.style.zIndex=9999,document.body.appendChild(n),s.status.debug.overlays.dui=n),(n=s.status.debug.overlays.dui).style.left=i.tl[0]+"px",n.style.top=i.tl[1]+"px",n.style.width=e.width+"px",n.style.height=e.height+"px"),s.inViewport(s.domNode)?((a={tl:[],br:[]}).tl[0]=(i.tl[0]>=r.tl[0]?i:r).tl[0],a.tl[1]=(i.tl[1]>=r.tl[1]?i:r).tl[1],a.br[0]=(i.br[0]s.status.thresholds.timeInView?s.status.thresholds.timeInView=s.status.thresholds.minTimeInView:s.status.thresholds.timeInView>s.status.thresholds.maxTimeInView&&(s.status.thresholds.timeInView=s.status.thresholds.maxTimeInView),!0)},removeListeners:function(){window.removeEventListener("scroll",s.handleScroll),window.removeEventListener("load",s.handleLoad),void 0!==s.domNode&&s.domNode.removeEventListener("click",s.handleClick),document.removeEventListener(s.getVisibilityProperties().eventName,s.handleVisibilityChange,!1)},isOn:function(){return t},turnOff:function(){return!(!t||(s.removeListeners(),s.console("readJS: stopping midway"),s.stopPolling(),s.removeOverlays(),s.status.activity.read=!1,t=!1))},turnOn:function(){return!(t||(s.resetConfigStatus(),s.setConfig(),n&&!readJSConfig.spa?(s.console("ERROR: Not a SPA. Cannot turnOn() again on the same web page"),1):"undefined"==typeof readJSConfig?(s.console("ERROR: Could not find callback and/or domNode css selector in window.readJSConfig"),1):"string"!=typeof readJSConfig.el?(s.console("ERROR: Could not find domNode css selector in window.readJSConfig"),1):"function"!=typeof readJSConfig.cb?(s.console("ERROR: Could not find callback function in window.readJSConfig"),1):(window.addEventListener("scroll",s.handleScroll),document.addEventListener(s.getVisibilityProperties().eventName,s.handleVisibilityChange,!1),s.status.spa?s.handleLoad():window.addEventListener("load",s.handleLoad),s.initialize(readJSConfig.cb),t=!0,n||(s.handleVisibilityChange(),n=!0),0)))}};function i(){return e.apply(this,arguments)}window.readJS=s},checkLoad:function(){void 0===window.readJS&&CBC.APP.readJS.init(),void 0!==window.readJSConfig&&!0!==window.readJSConfig.spa?(window.readJS.isOn&&window.readJS.resetConfigStatus(),window.readJS.turnOn()):void 0!==window.readJS&&window.readJS.resetConfigStatus()}}}(),function(){"use strict";function a(t){var o,s;s=function(){return r=this,i=function(e){switch(e.label){case 0:return t.priorityCommandQueue.length?[4,t.priorityCommandQueue.shift()()]:[3,2];case 1:return e.sent(),[3,0];case 2:for(;t.commandQueue.length&&!t.locked;)t.commandQueue.shift()();return[2]}},c={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},u={next:e(0),throw:e(1),return:e(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function e(n){return function(e){var t=[n,e];if(a)throw new TypeError("Generator is already executing.");for(;c=u&&t[u=0]?0:c;)try{if(a=1,o&&(s=2&t[0]?o.return:t[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,t[1])).done)return s;switch(o=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return c.label++,{value:t[1],done:!1};case 5:c.label++,o=t[1],t=[0];continue;case 7:t=c.ops.pop(),c.trys.pop();continue;default:if(!((s=0s[0]&&t[1]s[0]&&t[1]Math.floor(.75*A[e].videoPlayer._videoInfo.length)?(r._doNotFireWatchedEvent=!0,E("User has seeked past 75% of the video length. Therefore, WATCHED event will not ever fire for this video.")):!r._doNotFireWatchedEvent&&window.CBC.APP.SC.EventTracker&&A[e].videoPlayer._videoInfo.length&&c==Math.floor(.75*A[e].videoPlayer._videoInfo.length)&&(r._doNotFireWatchedEvent=!0,window.CBC.APP.SC.EventTracker.isOn()||window.CBC.APP.SC.EventTracker.turnOn(),i=N(A[e],"WATCHED"),E("CBC_EventTracker: FIRING WATCHED EVENT"),E(i),CBC.APP.SC.EventTracker.trackEvent("WATCHED",i)):(a=CBC.APP.SC.VideoHeartbeat.getCurrentTime(),!r._doNotFireWatchedEvent&&a-r._timeMainContentStreamStarted-r._accumulatedPauseTime-r._accumulatedBufferTime>=V&&(r._doNotFireWatchedEvent=!0,window.CBC.APP.SC.EventTracker.isOn()||window.CBC.APP.SC.EventTracker.turnOn(),o=N(A[e],"WATCHED"),E("CBC_EventTracker: FIRING WATCHED EVENT"),E(o),CBC.APP.SC.EventTracker.trackEvent("WATCHED",o)))):"audio"===r.audiovideo&&(r._doNotFireListenedEvent=r._doNotFireListenedEvent||!1,"on-demand"===r.liveondemand)&&(!r._doNotFireListenedEvent&&c>Math.floor(.75*A[e].videoPlayer._videoInfo.length)?(r._doNotFireListenedEvent=!0,E("User has seeked past 75% of the video length. Therefore, LISTENED event will not ever fire for this video.")):!r._doNotFireListenedEvent&&window.CBC.APP.SC.EventTracker&&A[e].videoPlayer._videoInfo.length&&c==Math.floor(.75*A[e].videoPlayer._videoInfo.length)&&(r._doNotFireListenedEvent=!0,window.CBC.APP.SC.EventTracker.isOn()||window.CBC.APP.SC.EventTracker.turnOn(),s=N(A[e],"LISTENED"),E("CBC_EventTracker: FIRING LISTENED EVENT"),E(s),CBC.APP.SC.EventTracker.trackEvent("LISTENED",s))),!0;throw new Error(L(6,"updatePlayHead",e,t))}catch(e){return M(e),!1}}function C(e,t){try{if(E("videoPause:::"+e),E(t),A[e]&&A[e].videoPlayer&&"function"==typeof A[e].videoPlayer._onPause)return m(e,t),A[e].videoPlayer._onPause(e,t),!0;throw new Error(L(8,"videoPause",e,t))}catch(e){return M(e),!1}}function v(e,t){try{if(E("videoUnload:::"+e),E(t),A[e]&&A[e].videoPlayer&&"function"==typeof A[e].videoPlayer._videoUnload)return A[e].videoPlayer._videoUnload(e,t),!0;throw new Error(L(4,"videoUnload",e,t))}catch(e){return M(e),!1}}function y(e){try{if(E("destroy:::"+e),A[e]&&A[e].videoPlayer&&"function"==typeof A[e].videoPlayer._destroy)return v(e),A[e].videoPlayer._destroy(e),!0;throw new Error(L(5,"destroy",e))}catch(e){return M(e),!1}}function F(e,t){var n="",r=A[e].vars.cbcContextVideo,i=A[e].vars.customContextGenerate.showval,n=p(n,r.contentarea);return n=p(n,i),n=p(n,r.streamtitle),n=p(n,r.seasonnumber),n=p(n,r.episodenumber),"music"!==r.contentarea&&"radio"!==r.contentarea&&t&&T(A[e].videoPlayer._chapterInfo.position)&&r.totalchapters&&(n=p(n,A[e].videoPlayer._chapterInfo.position+"of"+r.totalchapters)),n=p(n,Math.floor(A[e].videoPlayer._videoInfo.length)),n=p(n,r.type),r.audiovideo=_(r.audiovideo),n=p(n,r.audiovideo),r.liveondemand=g(e,r.liveondemand),n=p(n,r.liveondemand)}function N(e,t){var e=e.vars,n=e.cbcContextVideo||{},e=e.customContextGenerate||{},r=window.CBC&&CBC.APP&&CBC.APP.SC&&CBC.APP.SC.DTM&&CBC.APP.SC.DTM.DATA&&CBC.APP.SC.DTM.DATA.pillar?CBC.APP.SC.DTM.DATA.pillar:"",i={content:{media:{audiovideo:n.audiovideo||n.mediaType||"",liveondemand:n.liveondemand||e.copy_videostreamtype||"",type:n.type||n.contentType||"",genre:n.genre||"",show:n.show||n.broadcastType||"",sport:n.sport||"",region:n.region||"",publishedtime:n.airdate||n.publishedTime||"",seasonnumber:n.seasonnumber&&"nan"!==n.seasonnumber?n.seasonnumber:"",episodenumber:n.episodenumber&&"nan"!==n.episodenumber?n.episodenumber:"",length:e.copy_videolength||""},area:n.contentarea||"",cms:n.source||"",id:n.uid,tier:CBC.APP.SC.UTIL.convertTier(n.contenttier),title:n.streamtitle||n.title||"",url:CBC.APP.SC.DTM.formatted.DAL.url||document.location.href},department:n.department||{},referrer:{},app:{name:e.appname,pillar:n.pillar||r||"legacy",version:n.appversion||""},user:{tier:CBC.APP.SC.UTIL.convertTier(n.usertier)}},e=(CBC.APP.SC.DTM.formatted.raw.referrer&&CBC.APP.SC.DTM.formatted.raw.referrer.url&&(i.referrer.url=CBC.APP.SC.DTM.formatted.raw.referrer.url),n.sponsorname&&(i.sponsor={},i.sponsor.name=n.sponsorname),n.partnername&&(i.content.partner={},i.content.partner.name=n.partnername),CBC.APP.SC.LOCALGEO&&CBC.APP.SC.LOCALGEO.geo&&CBC.APP.SC.LOCALGEO.geo.timezone&&(i.device={},i.device.geo={},i.device.geo.timezone=CBC.APP.SC.LOCALGEO.geo.timezone),n.keywords&&(i.content.keywords=n.keywords),n.rawKeywords&&(i.content.rawKeywords=n.rawKeywords),n.feature&&(i.feature=D(n.feature)),CBC.APP.SC.UTIL.getReferringDepartmentStatus());return""!==e[t]||"STREAMED"!==t&&("WATCHED"!==t&&"LISTENED"!==t||e.STREAMED!==i.content.id)||(CBC.APP.SC.UTIL.setReferringDepartmentStatus(t,i.content.id),i.referrer.department={},i.referrer.department.level1=CBC.APP.SC.DTM.formatted.DAL&&CBC.APP.SC.DTM.formatted.DAL.referrer&&CBC.APP.SC.DTM.formatted.DAL.referrer.department&&CBC.APP.SC.DTM.formatted.DAL.referrer.department.level1||"",i.referrer.department.level2=CBC.APP.SC.DTM.formatted.DAL&&CBC.APP.SC.DTM.formatted.DAL.referrer&&CBC.APP.SC.DTM.formatted.DAL.referrer.department&&CBC.APP.SC.DTM.formatted.DAL.referrer.department.level2||"",i.referrer.department.level3=CBC.APP.SC.DTM.formatted.DAL&&CBC.APP.SC.DTM.formatted.DAL.referrer&&CBC.APP.SC.DTM.formatted.DAL.referrer.department&&CBC.APP.SC.DTM.formatted.DAL.referrer.department.level3||"",Object.keys(i.referrer.department).forEach(function(e){""===i.referrer.department[e]&&delete i.referrer.department[e]})),Object.keys(i.referrer).length||delete i.referrer,Object.keys(i.content.media).forEach(function(e){""===i.content.media[e]&&delete i.content.media[e]}),Object.keys(i.content).forEach(function(e){""===i.content[e]&&delete i.content[e]}),Object.keys(i.app).forEach(function(e){""===i.app[e]&&delete i.app[e]}),Object.keys(i.department).forEach(function(e){""===i.department[e]&&delete i.department[e]}),Object.keys(i.department).length||delete i.department,i}function j(e){e=A[e].vars.cbcContextVideo;T(e.seasonnumber)&&/^(S|s)?[0-9]+$/.test(e.seasonnumber)?(e.seasonnumber.toString(),1===e.seasonnumber.length?e.seasonnumber="s0"+e.seasonnumber:"s"!==e.seasonnumber.charAt(0)&&(e.seasonnumber="s"+e.seasonnumber)):e.seasonnumber=S.varDefault,T(e.episodenumber)&&/^(E|e)?[0-9]+$/.test(e.episodenumber)?(e.episodenumber.toString(),1===e.episodenumber.length?e.episodenumber="e0"+e.episodenumber:"e"!==e.episodenumber.charAt(0)&&(e.episodenumber="e"+e.episodenumber)):e.episodenumber=S.varDefault}function G(e,t){A[e].vars.customContextGenerate||(A[e].vars.customContextGenerate={});var n,r=A[e].vars,e=A[e].vars.customContextGenerate;function i(){var e,t,n,r="cbcvideoheartbeatplayer",i=function(e){for(var t=escape(e)+"=",n=document.cookie.split(";"),r=0;r