Action News - Action News
Home WebMail Thursday, November 28, 2024, 02:43 PM | Calgary | -14.7°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[o++]}},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 a};var c,a={},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 o(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{o({},"")}catch(c){o=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var i,o,a,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,o=n,a=r,s=f,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(a.method=e,a.arg=t;;){var n=a.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,a);if(n){if(n===g)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(s===f)throw s=_,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s=h;n=d(i,o,a);if("normal"===n.type){if(s=a.done?_:p,n.arg===g)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s=_,a.method="throw",a.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}}}a.wrap=s;var f="suspendedStart",p="suspendedYield",h="executing",_="completed",g={};function m(){}function v(){}function C(){}var t={},y=(o(t,r,function(){return this}),Object.getPrototypeOf),y=y&&y(y(T([]))),A=(y&&y!==e&&u.call(y,r)&&(t=y),C.prototype=m.prototype=Object.create(t));function b(e){["next","throw","return"].forEach(function(t){o(e,t,function(e){return this._invoke(t,e)})})}function P(a,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 o,e=d(a[e],a,n);if("throw"!==e.type)return(n=(o=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){o.value=e,r(o)},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 f(e,t,n,r,i,o,a){return s(t&n|~t&r,e,t,i,o,a)}function p(e,t,n,r,i,o,a){return s(t&r|n&~r,e,t,i,o,a)}function h(e,t,n,r,i,o,a){return s(t^n^r,e,t,i,o,a)}function _(e,t,n,r,i,o,a){return s(n^(t|~r),e,t,i,o,a)}function a(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(a(u(e=l(e)),8*e.length))}function o(e,t){var n,e=l(e),t=l(t),r=u(e),i=[],o=[];for(i[15]=o[15]=void 0,16"},a.prototype.shutdown=function(){this._isShutDown||(this._logger.debug(r,"#shutdown > Shutting down"),this.off(),this._requests={},this._commands={},this._isShutDown=!0)},a.prototype.on=function(e,t,n){this._isShutDown||(this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push({fn:t,ctx:n}))},a.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={}},a.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(a.SEPARATOR),r=(t||"").split(a.SEPARATOR),i=!0,o=0;o No command handler for: "+e)},a.prototype.reply=function(e,t,n){this._isShutDown||(this._requests[e]={fn:t,ctx:n})},a.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)},a.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,o,a,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=o.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*o)}r.prototype.reset=function(){this.tick=0,this._createdTimestamp=(new Date).getTime(),this._updateNextTickTimestamp()},r.prototype.shouldTick=function(){return(new Date).getTime()>this._nextTickTimestamp-o/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,o=.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,o),!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,a=t.StringUtils,t=e.plugin.BasePlugin,o=(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[p]||m;this._timerManager.createTimer(e[d],e[f],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[f]=t,r[h]=n,this._trigger(e,r)},r.prototype._setupDataResolver=function(){var o={},t=this._timerManager;o[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(f),this._isTrackingSessionActive=!0,this._isTrackingSessionStarted=!1)},n.prototype.trackVideoUnload=function(){this._logger.info(this._logTag,"#trackVideoUnload()"),this._canProcess()&&(this._isTrackingSessionActive?(this._stopPlayheadTimer(),this._trigger(p),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(v),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(C,e))},n.prototype.trackBufferStart=function(){this._logger.info(this._logTag,"#trackBufferStart()"),this._canProcess()&&this._startSessionIfNeeded("trackBufferStart")&&(this._stopPlayheadTimer(),this._trigger(b))},n.prototype.trackBufferComplete=function(){this._logger.info(this._logTag,"#trackBufferComplete()"),this._canProcess()&&this._startSessionIfNeeded("trackBufferComplete")&&(this._trigger(P),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 o(){return s.qos||(s.qos=c._delegate.getQoSInfo(),c._logger.info(c._logTag,"Data from delegate > QoSInfo: "+s.qos),s.qos)}var a={},s={},c=this;a["video.id"]=function(){var e=t(),e=e?e.id:null;return c._logger.debug(c._logTag,"Resolving video.id: "+e),e},a["video.name"]=function(){var e=t(),e=e?e.name:null;return c._logger.debug(c._logTag,"Resolving video.name: "+e),e},a["video.length"]=function(){var e=t(),e=e?e.length:NaN;return c._logger.debug(c._logTag,"Resolving video.length: "+e),e},a["video.playerName"]=function(){var e=t(),e=e?e.playerName:null;return c._logger.debug(c._logTag,"Resolving video.playerName: "+e),e},a["video.streamType"]=function(){var e=t(),e=e?e.streamType:null;return c._logger.debug(c._logTag,"Resolving video.streamType: "+e),e},a["video.playhead"]=function(){var e=t(),e=e?e.playhead:NaN;return c._logger.debug(c._logTag,"Resolving video.playhead: "+e),e},a["video.resumed"]=function(){var e=t(),e=!!e&&e.resumed;return c._logger.debug(c._logTag,"Resolving video.resumed: "+e),e},a["video.playheadStalled"]=function(){return this._playheadStalled},a["pod.name"]=function(){var e=r(),e=e?e.name:null;return c._logger.debug(c._logTag,"Resolving pod.name: "+e),e},a["pod.playerName"]=function(){var e=r(),e=e?e.playerName:null;return c._logger.debug(c._logTag,"Resolving pod.playerName: "+e),e},a["pod.position"]=function(){var e=r(),e=e?e.position:NaN;return c._logger.debug(c._logTag,"Resolving pod.position: "+e),e},a["pod.startTime"]=function(){var e=r(),e=e?e.startTime:NaN;return c._logger.debug(c._logTag,"Resolving pod.startTime: "+e),e},a["ad.isInAd"]=function(){var e=null!=n();return c._logger.debug(c._logTag,"Resolving ad.isInAd: "+e),e},a["ad.isInAdBreak"]=function(){var e=null!=r();return c._logger.debug(c._logTag,"Resolving ad.isInAdBreak: "+e),e},a["ad.id"]=function(){var e=n(),e=e?e.id:null;return c._logger.debug(c._logTag,"Resolving ad.id: "+e),e},a["ad.name"]=function(){var e=n(),e=e?e.name:null;return c._logger.debug(c._logTag,"Resolving ad.name: "+e),e},a["ad.length"]=function(){var e=n(),e=e?e.length:NaN;return c._logger.debug(c._logTag,"Resolving ad.length: "+e),e},a["ad.position"]=function(){var e=n(),e=e?e.position:NaN;return c._logger.debug(c._logTag,"Resolving ad.position: "+e),e},a["chapter.isInChapter"]=function(){var e=null!=i();return c._logger.debug(c._logTag,"Resolving chapter.isInChapter: "+e),e},a["chapter.name"]=function(){var e=i(),e=e?e.name:null;return c._logger.debug(c._logTag,"Resolving chapter.name: "+e),e},a["chapter.length"]=function(){var e=i(),e=e?e.length:NaN;return c._logger.debug(c._logTag,"Resolving chapter.length: "+e),e},a["chapter.position"]=function(){var e=i(),e=e?e.position:NaN;return c._logger.debug(c._logTag,"Resolving chapter.position: "+e),e},a["chapter.startTime"]=function(){var e=i(),e=e?e.startTime:NaN;return c._logger.debug(c._logTag,"Resolving chapter.startTime: "+e),e},a["qos.bitrate"]=function(){var e=o(),e=e?e.bitrate:NaN;return c._logger.debug(c._logTag,"Resolving qos.bitrate: "+e),e},a["qos.fps"]=function(){var e=o(),e=e?e.fps:NaN;return c._logger.debug(c._logTag,"Resolving qos.fps: "+e),e},a["qos.droppedFrames"]=function(){var e=o(),e=e?e.droppedFrames:NaN;return c._logger.debug(c._logTag,"Resolving qos.droppedFrames: "+e),e},a["qos.startupTime"]=function(){var e=o(),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",f="video_load",p="video_unload",h="video_start",_="video_resume",g="video_complete",m="timed_metadata",v="play",C="pause",y="ad_start",A="ad_complete",b="buffer_start",P="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(o,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(o,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(o,u,e))},n.prototype.setInterval=function(e){var t=l+"."+i+"."+this._name,t=this._pluginManager.request(o,[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(o,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(o,a,e)},"heartbeat"),o="service.clock",a="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,o,s,n)}var n=e.Event,i=t.clock.Timer,o=(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."):a Interval value too large: "+e),this.setInterval(a)):(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"),a=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,o,n)}var n=t.clock.Timer,i=(e.extend(r,n),r.prototype._onCheckStatusComplete=function(e){e=e.data[a];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(o))},r.prototype._installHandlers=function(){r.__super__._installHandlers.call(this),this._channel.on(s,this._onCheckStatusComplete,this),this._channel.reply(a,function(){return this._interval},this)},"reporting"),o=10,a="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,o,n)}var n=t.clock.Timer,i=(e.extend(r,n),"idle"),o=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,o,n)}var n=t.clock.Timer,i=(e.extend(r,n),"flush_filter"),o=.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 o(e,t,n),this._checkStatusTimer=new r(e,t,n),this._flushFilterTimer=new i(e,t,n),this._idleTimer=new a(e,t,n)}var r=e.clock.CheckStatusTimer,i=e.clock.FlushFilterTimer,o=e.clock.ReportingTimer,a=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 o(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,o=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 o=e.ObjectUtils,a=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 a,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=o.clone(e._cuserData),this.meta=r,this.callback=i,this.filterReport=!0}}(e.ADB.va.utils,t),function(e,t){"use strict";var a=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,o){this.adobeAnalyticsData=e,this.userData=t,this.aamData=n,this.serviceProviderData=r,this.sessionData=i,this.eventData=new s(o.eventData),this.assetData=new c(o.assetData),this.streamData=new u(o.streamData),this.qosData=new l(o.qosData),this.cuserData=a.clone(o.cuserData),this.meta=a.clone(o.meta),this.callback=o.callback,this.filterReport=o.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,o=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=a;return null==t||isNaN(t)?null:(i=r===o.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,o=null,a=e.realm;if(null==i)continue;"number"==typeof i?o=this.serializeNumber(t,i,a,r):"string"==typeof i?o=this.serializeString(t,i,a,r):i instanceof s?o=this.serializeDao(i):this._logger.warn(c,"#_processDao() > Unable to serialize DAO. Field: "+t+". Value: "+i+"."),o&&n.push(o)}return n},"ah::QuerystringSerializer"),a="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[a]=e,i[s]=t,i[c]=n,i[u]=r,this._logger.debug(o,"#parse() > Obtained configuration settings."),i};var o="ah::SettingsParser",a="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 o=e.Event,a=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[f]+", quiet_mode="+e[p]+", ssl="+e[h]+")"),this._trackingServer=this._updateRequestProtocol(e[i],e[h]),this._checkStatusServer=this._updateRequestProtocol(e[d],e[h]),this._publisher=e[f],this._quietMode=e[p],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,a.GET),this._logger.debug(l,"#_onFilterReportAvailable() > "+e.url),(r=this)._quietMode||this._visitorOptedOut||((i=new c).addEventListener(o.SUCCESS,function(e){i.close(),t.callback&&t.callback.call(null)},this),i.addEventListener(o.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,a.GET),(i=new c).addEventListener(o.SUCCESS,function(e){e.data&&((e=new u(e.data.response,t._logger).parse())?t._channel.trigger(new o(A,e)):t._logger.warn(l,"#_onClockCheckStatusTick() > Failed to parse the config. settings.")),i.close()},this),i.addEventListener(o.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(v,this._onUpdateVisitorOptOut,this),this._channel.on(C,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",f="publisher",p="quiet_mode",h="ssl",_="report",g="visitor_opt_out",m="api:config",v="api:update_visitor_optout",C="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 p(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,o=(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[v])&&(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=p(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()>C)&&t.push(e)}),t}(this._reportBuffer[e]))),r=(s=a=o=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(p.TYPE_MAIN_CONTENT),this._assetData.publisher(e.publisher),this._assetData.name(e.videoName),this._streamData.type(e.streamType),this._updateQoSInfo(e),t=e.metaNielsen?o.merge(e.metaVideo,e.metaNielsen):e.metaVideo,t=new v(this,f.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(p.TYPE_MAIN_CONTENT),this._assetData.name(e.videoName),this._streamData.type(e.streamType),e=new v(this,f.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 v(this,f.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 v(this,f.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?f.EVENT_TYPE_STALL:f.EVENT_TYPE_PAUSE,t=new v(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 v(this,f.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(p.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(p.TYPE_AD)}else this._assetData.adData(null),this._assetData.type(p.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(p.TYPE_AD),this._updateQoSInfo(e),t=o.merge(e.metaVideo,e.metaAd),t=e.metaNielsen?o.merge(t,e.metaNielsen):t,t=new v(this,f.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()!=p.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 v(this,f.EVENT_TYPE_COMPLETE,e.playhead,null,e._eventData[D]),this._sendHit(e),this._assetData.adData(null),this._assetData.type(p.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=o.merge(e.metaVideo,e.metaChapter),(t=new v(this,f.EVENT_TYPE_CHAPTER_START,e.playhead,t,e._eventData[D])).assetData.adData(null),t.assetData.type(p.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 v(this,f.EVENT_TYPE_CHAPTER_COMPLETE,e.playhead,null,e._eventData[D])).assetData.adData(null),e.assetData.type(p.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 v(this,f.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!==b||(this._updateQoSInfo(e),(t=new v(this,f.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 v(this,f.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 p,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()==f.EVENT_TYPE_PAUSE||this._lastInBandItem.eventData.type()==f.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={})[ae]=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(fe,e))},r.prototype._cmdVideoComplete=function(e){this._canProcess()&&this._channel.trigger(new i(pe,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(ve,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(Ce,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(be,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(Pe,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 o(C,I),this,"handleVideoLoad",[new s(v,"rsid","rsid"),new s(v,"tracking_server","trackingServer")]),this._pluginManager.registerBehaviour(new o(C,D),this,"handleVideoUnload"),this._pluginManager.registerBehaviour(new o(C,k),this,"handleVideoStart",[new s(C,"video.id","videoId"),new s(C,"video.name","videoName"),new s(C,"video.length","videoLength"),new s(C,"video.playhead","playhead"),new s(C,"video.playerName","playerName"),new s(C,"video.streamType","streamType"),new s(C,"qos.fps","fps"),new s(C,"qos.droppedFrames","droppedFrames"),new s(C,"qos.bitrate","bitrate"),new s(C,"qos.startupTime","startupTime"),new s(v,"rsid","rsid"),new s(v,"tracking_server","trackingServer"),new s(v,"channel","channel"),new s(v,"meta.video.*","metaVideo"),new s(v,"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 o(C,R),this,"handleVideoComplete",[new s(C,"qos.fps","fps"),new s(C,"qos.droppedFrames","droppedFrames"),new s(C,"qos.bitrate","bitrate"),new s(C,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new o(C,N),this,"handleVideoResume",[new s(C,"video.id","videoId"),new s(C,"video.name","videoName"),new s(C,"video.length","videoLength"),new s(C,"video.playhead","playhead"),new s(C,"video.playerName","playerName"),new s(C,"video.streamType","streamType")]),this._pluginManager.registerBehaviour(new o(C,x),this,"handlePlay",[new s(C,"video.playhead","playhead"),new s(C,"qos.fps","fps"),new s(C,"qos.droppedFrames","droppedFrames"),new s(C,"qos.bitrate","bitrate"),new s(C,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new o(C,V),this,"handlePause",[new s(C,"video.playhead","playhead"),new s(C,"video.playheadStalled","playheadStalled"),new s(C,"qos.fps","fps"),new s(C,"qos.droppedFrames","droppedFrames"),new s(C,"qos.bitrate","bitrate"),new s(C,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new o(C,U),this,"handleAdStart",[new s(C,"video.playhead","playhead"),new s(C,"ad.id","adId"),new s(C,"ad.name","adName"),new s(C,"ad.length","adLength"),new s(C,"ad.position","adPosition"),new s(C,"pod.name","podName"),new s(C,"pod.playerName","podPlayerName"),new s(C,"pod.position","podPosition"),new s(C,"pod.startTime","podSecond"),new s(C,"qos.fps","fps"),new s(C,"qos.droppedFrames","droppedFrames"),new s(C,"qos.bitrate","bitrate"),new s(C,"qos.startupTime","startupTime"),new s(v,"meta.video.*","metaVideo"),new s(v,"meta.ad.*","metaAd"),new s(y,"meta","metaNielsen")]),this._pluginManager.registerBehaviour(new o(C,F),this,"handleAdComplete",[new s(C,"video.playhead","playhead"),new s(C,"ad.isInAdBreak","isInAdBreak"),new s(C,"qos.fps","fps"),new s(C,"qos.droppedFrames","droppedFrames"),new s(C,"qos.bitrate","bitrate"),new s(C,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new o(C,j),this,"handleBufferStart",[new s(C,"video.playhead","playhead"),new s(C,"qos.fps","fps"),new s(C,"qos.droppedFrames","droppedFrames"),new s(C,"qos.bitrate","bitrate"),new s(C,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new o(C,G),this,"handleBufferComplete",[new s(C,"video.playhead","playhead"),new s(C,"qos.fps","fps"),new s(C,"qos.droppedFrames","droppedFrames"),new s(C,"qos.bitrate","bitrate"),new s(C,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new o(C,Y),this,"handleSeekStart",[new s(C,"video.playhead","playhead")]),this._pluginManager.registerBehaviour(new o(C,H),this,"handleSeekComplete",[new s(C,"video.playhead","playhead"),new s(C,"ad.isInAd","isInAd"),new s(C,"ad.id","adId"),new s(C,"ad.position","adPosition"),new s(C,"pod.playerName","podPlayerName"),new s(C,"pod.position","podPosition"),new s(C,"chapter.isInChapter","isInChapter"),new s(C,"chapter.position","chapterPosition"),new s(C,"chapter.name","chapterName"),new s(C,"chapter.length","chapterLength"),new s(C,"chapter.startTime","chapterOffset"),new s(C,"qos.fps","fps"),new s(C,"qos.droppedFrames","droppedFrames"),new s(C,"qos.bitrate","bitrate"),new s(C,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new o(C,q),this,"handleChapterStart",[new s(C,"video.playhead","playhead"),new s(C,"chapter.position","chapterPosition"),new s(C,"chapter.name","chapterName"),new s(C,"chapter.length","chapterLength"),new s(C,"chapter.startTime","chapterOffset"),new s(C,"qos.fps","fps"),new s(C,"qos.droppedFrames","droppedFrames"),new s(C,"qos.bitrate","bitrate"),new s(C,"qos.startupTime","startupTime"),new s(v,"meta.video.*","metaVideo"),new s(v,"meta.chapter.*","metaChapter"),new s(y,"meta","metaNielsen")]),this._pluginManager.registerBehaviour(new o(C,K),this,"handleChapterComplete",[new s(C,"video.playhead","playhead"),new s(C,"qos.fps","fps"),new s(C,"qos.droppedFrames","droppedFrames"),new s(C,"qos.bitrate","bitrate"),new s(C,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new o(C,W),this,"handleBitrateChange",[new s(C,"video.playhead","playhead"),new s(C,"qos.fps","fps"),new s(C,"qos.droppedFrames","droppedFrames"),new s(C,"qos.bitrate","bitrate"),new s(C,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new o(C,J),this,"handleTrackError"),this._pluginManager.registerBehaviour(new o(A,Q),this,"handleClockReportingTick",[new s(C,"video.playhead","playhead"),new s(C,"qos.fps","fps"),new s(C,"qos.droppedFrames","droppedFrames"),new s(C,"qos.bitrate","bitrate"),new s(C,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new o(A,$),this,"handleIdleTick",[]),this._pluginManager.registerBehaviour(new o(m,O),this,"handleClockReportingTick",[new s(C,"video.playhead","playhead"),new s(C,"qos.fps","fps"),new s(C,"qos.droppedFrames","droppedFrames"),new s(C,"qos.bitrate","bitrate"),new s(C,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new o(v,w),this,"handleAnalyticsError"),this._pluginManager.registerBehaviour(new o(v,E),this,"handleAnalyticsStart",[new s(v,"vid","vid"),new s(v,"aid","aid"),new s(v,"mid","mid"),new s(v,"customerIDs","customerIDs"),new s(v,"visitorOptedOut","visitorOptedOut"),new s(v,"blob","blob"),new s(v,"loc_hint","loc_hint"),new s(C,"video.playhead","playhead"),new s(C,"qos.fps","fps"),new s(C,"qos.droppedFrames","droppedFrames"),new s(C,"qos.bitrate","bitrate"),new s(C,"qos.startupTime","startupTime")]),this._pluginManager.registerBehaviour(new o(v,T),this,"handleAnalyticsAdStart",[new s(C,"video.playhead","playhead"),new s(C,"qos.fps","fps"),new s(C,"qos.droppedFrames","droppedFrames"),new s(C,"qos.bitrate","bitrate"),new s(C,"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(b)},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(P,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!=a&&l.te(c+"cs_c12u",s),e[o]=a,i.setPublisherUniqueDeviceId(a)}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 a(e,t,n,r,i,o,a){return s(t&n|~t&r,e,t,i,o,a)}function c(e,t,n,r,i,o,a){return s(t&r|n&~r,e,t,i,o,a)}function u(e,t,n,r,i,o,a){return s(t^n^r,e,t,i,o,a)}function l(e,t,n,r,i,o,a){return s(n^(t|~r),e,t,i,o,a)}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,f,p,i,o,a,s,h,_,g,m,v,C,y,A,n,b,t,P,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&&p(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===C.indexOf(e)&&C.push(e)},removeCrossPublisherUniqueDeviceIdChangeListener:function(e){e=C.indexOf(e);-1!==e&&C.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=C(r),r=(t.s=r,_.We(n,t,s.getLabelOrder())),n=s,i=+new Date-24*n.Wi()*60*60*1e3,o=0;o="a".charCodeAt(0)&&t[1].charCodeAt(0)=Ie&&(ye=!0,V++))},Lu:function(){return C},Tu:function(e){C=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 v+Math.floor((e-f)*F/100)},_o:function(e){return v+Math.floor((e-i)*F/100)},do:function(e,t){return v+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){v=e},Zr:function(e){f=e},ku:function(){return f},ro:function(){return v},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){p=e},Ur:function(){return p},Gu:function(e){o=e},ju:function(){return o},Hu:function(e){var t;isNaN(o)||(t=l.Ku(),t+=e-o,l.Ju(t),o=NaN)},Ku:function(){return N},Ju:function(e){N=e},Yu:function(e){fe=e},Xu:function(){return fe},zu:function(e){a=e},Qu:function(){return a},$u:function(e){O=e},Zu:function(){return O},ns:function(e){var t,n=l.Zu();n+=Math.abs(e-a),l.$u(n),a==e?t=0:e\n'+a+""}(t[u],o,s)+"\n";return(a=(a+='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),o=n(4),a=n(3),s=n(6).Un,c=n(61),u=n(62),l=n(63),d=n(9),f=a.Sn,p=a.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 o.Pn(t)&&(t=e.Execute("GetMAC","1"),o.Pn(t))?(e=e.Execute("GetDeviceID"),o.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&&o.Cn(sf.env)&&o.Cn(sf.env.getAppVersion)&&sf.env.getAppVersion()||f},V:function(){return m(),h},G:function(){return _},j:function(){return"undefined"!=typeof sf&&o.Cn(sf.core)&&o.Cn(sf.core.getEnvValue)&&sf.core.getEnvValue("modelid")||f},H:function(){return"2.0.0"},J:function(){var e;if("undefined"!=typeof sf&&o.Cn(sf.env)&&o.Cn(sf.env.getProductType)&&o.Cn(sf.env.PRODUCTTYPE_TV)&&o.Cn(sf.env.PRODUCTTYPE_MONITOR)&&o.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&&o.Cn(sf.env)&&o.Cn(sf.env.getFirmwareVer)&&sf.env.getFirmwareVer().version},X:function(){var e;return"undefined"!=typeof sf&&o.Cn(sf.env)&&o.Cn(sf.env.getScreenSize)?(e=sf.env.getScreenSize()).width+"x"+e.height:p},nn:function(){if("undefined"!=typeof sf&&o.Cn(sf.env)&&o.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,o,a,s=n(0);e.exports=function(e){o="undefined"!=typeof FileSystem?new FileSystem:null,a="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==o||void 0===o.isValidCommonPath||o.isValidCommonPath(a)||o.createCommonDir(a),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=a+"/cs_cache_dir",o.isValidCommonPath(n)||o.createCommonDir(n),(n=o.openCommonFile(n+"/cs_cache_dir_single","w")).writeLine(t),o.closeCommonFile(n)}catch(e){}var t,n},getCache:function(){try{return t=a+"/cs_cache_dir",o.isValidCommonPath(t)&&(t=o.openCommonFile(t+"/cs_cache_dir_single","r"))?(e=t.As(),o.closeCommonFile(t),e):null}catch(e){}var e,t}})}},function(e,t,n){var r,i,o=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(){o.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 a,r,i=n(21),o=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=a=function(e,t){sf.core.localData(e,t)}),null==s||void 0===s.isValidCommonPath||s.isValidCommonPath(c)||s.createCommonDir(c),l=!0}function f(e){return e.replace(/^\s+|\s+$/g,"")}function p(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*a;i=((c=a*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]|=(a&(1>this.Os-o):this[this._-1]|=a=this.Os&&(o-=this.Os))}8==n&&0!=(128&e[0])&&(this.s=-1,0>r|a,a=(this[s]&i)=this._)t._=0;else{var r=e%this.Os,i=this.Os-r,o=(1>r;for(var a=n+1;a>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,o=c(n));0>(s+=this.Os-t)):(n=this[a]>>(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(a,0),a=o=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=v(),o=0;o>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[p]&(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 o=new I,a=[];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=a(e,o)>16,n>>8&255));break;case 2:n=a(e,o)>16))}return i.join("")}(e);for(var n=0;n>2),t=3&o,1):1==r?(n+=c(t>4),t=15&o,2):2==r?(n=(n+=c(t))+c(o>>2),t=3&o,3):(n=(n+=c(t>4))+c(15&o),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&(o>>8),a=16711935&((a=e[t+2*i+1])>>24)|4278255360&(a>>8),s=n[i];s.high^=a,s.low^=o}for(r=0;r>>31),c=s.low^(u>>31),u=0;u>>32-u,s>>32-u):(o=s>>64-u,i>>64-u),(s=_[d[a]]).high=o,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&(o>>8);n.push(16711935&(a>>24)|4278255360&(a>>8)),n.push(o)}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,o=g._getSettingsDigest(),a=!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)!==o&&(a=!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 o=t.url,a=h.loadSSL?"https:":"http:",s=0,c=o.length;sG.DAYS_BETWEEN_SYNC_ID_CALLS},attachIframeASAP:function(){var t=this;!function e(){t.startedAttachingIframe||(f.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,o;if(!g.isOptedOut())return i=(r=e||{}).minutesToLive,o="",(g.idSyncDisableSyncs||g.disableIdSyncs)&&(o=o||"Error: id syncs have been disabled"),"string"==typeof r.dpid&&r.dpid.length||(o=o||"Error: config.dpid is empty"),"string"==typeof r.url&&r.url.length||(o=o||"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(v,17)^n(v,19)^v>>>10)|0);(l=[y+((n(C,2)^n(C,13)^n(C,22))+(C&l[1]^C&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 o,a=this.split(e,n),s=0;st){p.K.unshift(e),setTimeout(p.delayReady,parseInt(p.maxDelay/2));break}p.Ja=1,p[e.m].apply(p,e.a),p.Ja=0}},p.setAccount=p.sa=function(e){var t,n;if(!p.ea("setAccount",arguments))if(p.account=e,p.allAccounts)for(t=p.allAccounts.concat(e.split(",")),p.allAccounts=[],t.sort(),n=0;np.N&&p.Ua(p.i),p.qa(500)):0p.N&&p.Ua(p.i),p.ca(),p.qa(500)},t.onreadystatechange=function(){4==t.readyState&&(200==t.status?t.R():t.ga())},p.Sa=p.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(p.Qa)try{r.removeChild(p.Qa)}catch(e){}r.firstChild?r.insertBefore(t,r.firstChild):r.appendChild(t),p.Qa=p.v}t.D=setTimeout(function(){t.D&&(t.complete?t.R():(p.trackOffline&&t.abort&&t.abort(),t.ga()))},5e3),p.Fb=e,p.v=d["s_i_"+p.replace(p.account,",","_")]=t,(p.useForcedLinkTracking&&p.J||p.bodyClickFunction)&&(p.forcedLinkTrackingTimeout||(p.forcedLinkTrackingTimeout=250),p.da=setTimeout(p.ca,p.forcedLinkTrackingTimeout))},p.lb=function(e){var t=!1;return navigator.sendBeacon&&(p.nb(e)||p.useBeacon)&&(t=!0),t=p.vb(e)?!1:t},p.nb=function(e){return!!(e&&0p.N))try{d.localStorage.removeItem(p.ma()),p.Ra=p.A()}catch(e){}},p.Ua=function(e){if(p.oa()){p.Wa();try{d.localStorage.setItem(p.ma(),d.JSON.stringify(e)),p.N=p.A()}catch(e){}}},p.Wa=function(){if(p.trackOffline)for((!p.offlineLimit||p.offlineLimitp.offlineLimit;)p.Ka()},p.forceOffline=function(){p.na=!0},p.forceOnline=function(){p.na=!1},p.ma=function(){return p.offlineFilename+"-"+p.visitorNamespace+p.account},p.A=function(){return(new Date).getTime()},p.Oa=function(e){return 0!=(e=e.toLowerCase()).indexOf("#")&&0!=e.indexOf("about:")&&0!=e.indexOf("opera:")&&0!=e.indexOf("javascript:")},p.setTagContainer=function(e){var t,n,r;for(p.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(),o=void 0===window.scrollX?parseInt(window.pageXOffset,10):parseInt(window.scrollX,10),a=void 0===window.scrollY?parseInt(window.pageYOffset,10):parseInt(window.scrollY,10);return i.tl[0]=e.left+o,i.tl[1]=e.top+a,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)?((o={tl:[],br:[]}).tl[0]=(i.tl[0]>=r.tl[0]?i:r).tl[0],o.tl[1]=(i.tl[1]>=r.tl[1]?i:r).tl[1],o.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(){var n={486:function(P,S,w){var E;P=w.nmd(P),function(){var Bo,Lo="Expected a function",ua="__lodash_hash_undefined__",la="__lodash_placeholder__",Mo=9007199254740991,Ro=4294967295,da=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],xo="[object Arguments]",fa="[object Array]",Vo="[object Boolean]",Uo="[object Date]",pa="[object Error]",ha="[object Function]",_a="[object GeneratorFunction]",Fo="[object Map]",jo="[object Number]",Go="[object Object]",ga="[object Promise]",Yo="[object RegExp]",Ho="[object Set]",qo="[object String]",ma="[object Symbol]",Ko="[object WeakMap]",Wo="[object ArrayBuffer]",Jo="[object DataView]",va="[object Float32Array]",Ca="[object Float64Array]",ya="[object Int8Array]",Aa="[object Int16Array]",ba="[object Int32Array]",Pa="[object Uint8Array]",Sa="[object Uint8ClampedArray]",wa="[object Uint16Array]",Ea="[object Uint32Array]",Ta=/\b__p \+= '';/g,Ia=/\b(__p \+=) '' \+/g,Da=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ka=/&(?:amp|lt|gt|quot|#39);/g,Na=/[&"']/g,Oa=RegExp(ka.source),Ba=RegExp(Na.source),La=//g,Ma=//g,Ra=//g,xa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Va=/^\w*$/,Ua=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fa=/[\\^$.*+?()[\]{}|]/g,ja=RegExp(Fa.source),Ga=/^\s+/,a=/\s/,Ya=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ha=/\{\n\/\* \[wrapped with (.+)\] \*/,qa=/,? & /,Ka=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Wa=/[()=,{}\[\]\/\s]/,Ja=/\\(\\)?/g,za=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Xa=/\w*$/,Qa=/^[-+]0x[0-9a-f]+$/i,$a=/^0b[01]+$/i,Za=/^\[object .+?Constructor\]$/,es=/^0o[0-7]+$/i,ts=/^(?:0|[1-9]\d*)$/,ns=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rs=/($^)/,is=/['\n\r\u2028\u2029\\]/g,s="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",e="a-z\\xdf-\\xf6\\xf8-\\xff",t="A-Z\\xc0-\\xd6\\xd8-\\xde",n="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",c="["+n+"]",r="["+s+"]",u="["+e+"]",n="[^\\ud800-\\udfff"+n+"\\d+\\u2700-\\u27bf"+e+t+"]",e="\\ud83c[\\udffb-\\udfff]",l="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",t="["+t+"]",f="(?:"+u+"|"+n+")",n="(?:"+t+"|"+n+")",p="(?:['](?:d|ll|m|re|s|t|ve))?",h="(?:['](?:D|LL|M|RE|S|T|VE))?",_="(?:"+r+"|"+e+")?",g="[\\ufe0e\\ufe0f]?",g=g+_+"(?:\\u200d(?:"+[l,i,d].join("|")+")"+g+_+")*",_="(?:"+["[\\u2700-\\u27bf]",i,d].join("|")+")"+g,l="(?:"+[l+r+"?",r,i,d,"[\\ud800-\\udfff]"].join("|")+")",os=RegExp("[']","g"),as=RegExp(r,"g"),m=RegExp(e+"(?="+e+")|"+l+g,"g"),ss=RegExp([t+"?"+u+"+"+p+"(?="+[c,t,"$"].join("|")+")",n+"+"+h+"(?="+[c,t+f,"$"].join("|")+")",t+"?"+f+"+"+p,t+"+"+h,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",_].join("|"),"g"),v=RegExp("[\\u200d\\ud800-\\udfff"+s+"\\ufe0e\\ufe0f]"),cs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,us=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ls=-1,zo={},Xo=(zo[va]=zo[Ca]=zo[ya]=zo[Aa]=zo[ba]=zo[Pa]=zo[Sa]=zo[wa]=zo[Ea]=!0,zo[xo]=zo[fa]=zo[Wo]=zo[Vo]=zo[Jo]=zo[Uo]=zo[pa]=zo[ha]=zo[Fo]=zo[jo]=zo[Go]=zo[Yo]=zo[Ho]=zo[qo]=zo[Ko]=!1,{}),C=(Xo[xo]=Xo[fa]=Xo[Wo]=Xo[Jo]=Xo[Vo]=Xo[Uo]=Xo[va]=Xo[Ca]=Xo[ya]=Xo[Aa]=Xo[ba]=Xo[Fo]=Xo[jo]=Xo[Go]=Xo[Yo]=Xo[Ho]=Xo[qo]=Xo[ma]=Xo[Pa]=Xo[Sa]=Xo[wa]=Xo[Ea]=!0,Xo[pa]=Xo[ha]=Xo[Ko]=!1,{"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"}),ds=parseFloat,fs=parseInt,i="object"==_typeof(w.g)&&w.g&&w.g.Object===Object&&w.g,d="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,Qo=i||d||Function("return this")(),r=S&&!S.nodeType&&S,o=r&&P&&!P.nodeType&&P,ps=o&&o.exports===r,y=ps&&i.process,e=function(){try{return o&&o.require&&o.require("util").types||y&&y.binding&&y.binding("util")}catch(e){}}(),hs=e&&e.isArrayBuffer,_s=e&&e.isDate,gs=e&&e.isMap,ms=e&&e.isRegExp,vs=e&&e.isSet,Cs=e&&e.isTypedArray;function $o(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ys(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i":">",'"':""","'":"'"});function Ys(e){return"\\"+C[e]}function oa(e){return v.test(e)}function Hs(e){var n=-1,r=Array(e.size);return e.forEach(function(e,t){r[++n]=[t,e]}),r}function qs(t,n){return function(e){return t(n(e))}}function aa(e,t){for(var n=-1,r=e.length,i=0,o=[];++n":">",""":'"',"'":"'"}),zs=function i(e){var k=(e=null==e?Qo:zs.defaults(Qo.Object(),e,zs.pick(Qo,us))).Array,x=e.Date,V=e.Error,U=e.Function,F=e.Math,m=e.Object,j=e.RegExp,G=e.String,N=e.TypeError,Y=k.prototype,H=U.prototype,q=m.prototype,K=e["__core-js_shared__"],W=H.toString,v=q.hasOwnProperty,J=0,z=(H=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+H:"",X=q.toString,Q=W.call(m),$=Qo._,Z=j("^"+W.call(v).replace(Fa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),H=ps?e.Buffer:Bo,t=e.Symbol,ee=e.Uint8Array,te=H?H.allocUnsafe:Bo,ne=qs(m.getPrototypeOf,m),re=m.create,ie=q.propertyIsEnumerable,oe=Y.splice,ae=t?t.isConcatSpreadable:Bo,se=t?t.iterator:Bo,ce=t?t.toStringTag:Bo,ue=function(){try{var e=Hn(m,"defineProperty");return e({},"",{}),e}catch(e){}}(),le=e.clearTimeout!==Qo.clearTimeout&&e.clearTimeout,de=x&&x.now!==Qo.Date.now&&x.now,fe=e.setTimeout!==Qo.setTimeout&&e.setTimeout,pe=F.ceil,he=F.floor,_e=m.getOwnPropertySymbols,H=H?H.isBuffer:Bo,ge=e.isFinite,me=Y.join,ve=qs(m.keys,m),O=F.max,B=F.min,Ce=x.now,ye=e.parseInt,Ae=F.random,be=Y.reverse,x=Hn(e,"DataView"),Pe=Hn(e,"Map"),Se=Hn(e,"Promise"),we=Hn(e,"Set"),e=Hn(e,"WeakMap"),Ee=Hn(m,"create"),Te=e&&new e,Ie={},De=_r(x),ke=_r(Pe),Ne=_r(Se),Oe=_r(we),Be=_r(e),t=t?t.prototype:Bo,Le=t?t.valueOf:Bo,Me=t?t.toString:Bo;function h(e){if(o(e)&&!P(e)&&!(e instanceof g)){if(e instanceof _)return e;if(v.call(e,"__wrapped__"))return gr(e)}return new _(e)}var Re=function(e){if(!w(e))return{};if(re)return re(e);xe.prototype=e;e=new xe;return xe.prototype=Bo,e};function xe(){}function Ve(){}function _(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=Bo}function g(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ro,this.__views__=[]}function Ue(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t>>0,t>>>=0;for(var o=k(i);++r>>1,a=e[o];null!==a&&!E(a)&&(n?a>>0)?(e=I(e))&&("string"==typeof t||null!=t&&!Ci(t))&&!(t=u(t))&&oa(e)?tn(ca(e),0,n):e.split(t,n):[]},h.spread=function(n,r){if("function"!=typeof n)throw new N(Lo);return r=null==r?0:O(L(r),0),a(function(e){var t=e[r],e=tn(e,0,r);return t&&na(e,t),$o(n,this,e)})},h.tail=function(e){var t=null==e?0:e.length;return t?s(e,1,t):[]},h.take=function(e,t,n){return e&&e.length?s(e,0,(t=n||t===Bo?1:L(t))=B(t=t,n=n)&&e=this.__values__.length;return{done:e,value:e?Bo:this.__values__[this.__index__++]}},h.prototype.plant=function(e){for(var t,n=this;n instanceof Ve;)var r=gr(n),i=(r.__index__=0,r.__values__=Bo,t?i.__wrapped__=r:t=r,r),n=n.__wrapped__;return i.__wrapped__=e,t},h.prototype.reverse=function(){var e=this.__wrapped__;return e instanceof g?(e=e,(e=(e=this.__actions__.length?new g(this):e).reverse()).__actions__.push({func:Rr,args:[Pr],thisArg:Bo}),new _(e,this.__chain__)):this.thru(Pr)},h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=function(){return Jt(this.__wrapped__,this.__actions__)},h.prototype.first=h.prototype.head,se&&(h.prototype[se]=function(){return this}),h}();Qo._=zs,(E=function(){return zs}.call(S,w,S,P))!==Bo&&(P.exports=E)}.call(this)}},r={};function ze(e){var t=r[e];return void 0!==t||(t=r[e]={id:e,loaded:!1,exports:{}},n[e].call(t.exports,t,t.exports,ze),t.loaded=!0),t.exports}ze.g=function(){if("object"==("undefined"==typeof globalThis?"undefined":_typeof(globalThis)))return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==("undefined"==typeof window?"undefined":_typeof(window)))return window}}(),ze.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){"use strict";var e={FATAL:"fatal",ERROR:"error",WARN:"warn",INFO:"info",DEBUG:"debug",TRACE:"trace"},t={OFF:"OFF",FATAL:"fatal",ERROR:"error",WARN:"warn",INFO:"info",DEBUG:"debug",TRACE:"trace",ALL:"ALL"},R=[e.FATAL,e.ERROR,e.WARN,e.INFO,e.DEBUG,e.TRACE],a={LEVEL:t,CHANNEL:e,create:function(e){var n=(e=e||t.OFF)===t.OFF?0:e===t.ALL?R.length:R.indexOf(e)+1,r={};function i(e){return e&&e.toString===Object.prototype.toString?JSON.stringify(e):Array.isArray(e)?"[".concat(e.map(i).join(","),"]"):""+e}return R.forEach(function(e,t){r[e]=tl[0]&&t[1]s[0]&&t[1]s[0]&&t[1]s[0]&&t[1]s[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)):(o=CBC.APP.SC.VideoHeartbeat.getCurrentTime(),!r._doNotFireWatchedEvent&&o-r._timeMainContentStreamStarted-r._accumulatedPauseTime-r._accumulatedBufferTime>=V&&(r._doNotFireWatchedEvent=!0,window.CBC.APP.SC.EventTracker.isOn()||window.CBC.APP.SC.EventTracker.turnOn(),a=N(A[e],"WATCHED"),E("CBC_EventTracker: FIRING WATCHED EVENT"),E(a),CBC.APP.SC.EventTracker.trackEvent("WATCHED",a)))):"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 v(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 C(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 C(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=f(n,r.contentarea);return n=f(n,i),n=f(n,r.streamtitle),n=f(n,r.seasonnumber),n=f(n,r.episodenumber),"music"!==r.contentarea&&"radio"!==r.contentarea&&t&&T(A[e].videoPlayer._chapterInfo.position)&&r.totalchapters&&(n=f(n,A[e].videoPlayer._chapterInfo.position+"of"+r.totalchapters)),n=f(n,Math.floor(A[e].videoPlayer._videoInfo.length)),n=f(n,r.type),r.audiovideo=_(r.audiovideo),n=f(n,r.audiovideo),r.liveondemand=g(e,r.liveondemand),n=f(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