!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.dmp=t():e.dmp=t()}(this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n=window.webpackJsonpdmp;window.webpackJsonpdmp=function(r,o){for(var s,a,u=0,l=[];u>>0;if(0===n)return-1;var r=0;if(arguments.length>0&&(r=Number(arguments[1]),isNaN(r)?r=0:0!==r&&r!==1/0&&r!==-(1/0)&&(r=(r>0||-1)*Math.floor(Math.abs(r)))),r>=n)return-1;for(var i=r>=0?r:Math.max(n-Math.abs(r),0);n>i;i++)if(i in t&&t[i]===e)return i;return-1}),Array.prototype.every||(Array.prototype.every=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw TypeError();var r,i=arguments[1];for(r=0;n>r;r++)if(r in t&&!e.call(i,t[r],r,t))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw TypeError();var r,i=arguments[1];for(r=0;n>r;r++)if(r in t&&e.call(i,t[r],r,t))return!0;return!1}),Array.prototype.forEach||(Array.prototype.forEach=function(e){"use strict";if(void 0===this||null===this)throw new TypeError;var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError;var r,i=arguments[1];for(r=0;n>r;r++)r in t&&e.call(i,t[r],r,t)}),Array.prototype.map||(Array.prototype.map=function(e,t){var n,r,i;if(null===this)throw new TypeError(" this is null or not defined");var o=Object(this),s=o.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(t&&(n=t),r=new Array(s),i=0;s>i;){var a,u;i in o&&(a=o[i],u=e.call(n,a,i,o),r[i]=u),i++}return r}),Array.prototype.filter||(Array.prototype.filter=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw TypeError();var r,i=[],o=arguments[1];for(r=0;n>r;r++)if(r in t){var s=t[r];e.call(o,s,r,t)&&i.push(s)}return i}),Array.prototype.reduce||(Array.prototype.reduce=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw TypeError();if(0===n&&1===arguments.length)throw TypeError();var r,i=0;if(arguments.length>=2)r=arguments[1];else for(;;){if(i in t){r=t[i++];break}if(++i>=n)throw TypeError()}for(;n>i;)i in t&&(r=e.call(void 0,r,t[i],i,t)),i++;return r})}()},2:function(e,t,n){var r;(function(i){var o=[].slice;r=function(){var e,t,r,s,a,u,l,c,E,d,p,f,h,_,m,y,v,A;return c=n(4),p=n(6),e=n(7),y=n(9),v=n(27),a=n(10),u=n(30),E=n(359),d=n(374),r=n(375),l=n(18),s=n(378),A=n(379),f=n(380),h=n(381),_=a.get("Bootstrapper"),m=a.get("API"),t=function(){function t(e,t){var n;if(this._rootNode_=e,"string"==typeof this._rootNode_&&(this._rootNode_=document.getElementById(this._rootNode_)),1!==(null!=(n=this._rootNode_)?n.nodeType:void 0))throw new Error("Invalid first argument sent to DM.player(), requires a HTML element or element id: "+this._rootNode_);if(!t||"object"!=typeof t)throw new Error("Missing `config` parameter for DM.player()");c.set(this._rootNode_,t),a.customConf(c.settings("logger")),_.groupCollapsed("Starting player bootstrapper..."),_.log("Gatekeepers:",c.context("gatekeepers",[])),E.defineProperties(this._rootNode_,{ended:{get:function(e){return function(){return e.ended}}(this)},paused:{get:function(e){return function(){return e.paused}}(this)},ready:{get:function(e){return function(){return e.apiReady}}(this)},autoplay:{get:function(e){return function(){return e.autoplay}}(this)},bufferedTime:{get:function(e){return function(){return e.bufferedTime}}(this)},duration:{get:function(e){return function(){return e.duration}}(this)},seeking:{get:function(e){return function(){return e.seeking}}(this)},error:{get:function(e){return function(){return e.error}}(this)},adRunning:{get:function(e){return function(){return e.adRunning}}(this)},qualities:{get:function(e){return function(){return e.qualities}}(this)},subtitles:{get:function(e){return function(){return e.subtitles}}(this)},type:{get:function(e){return function(){return e.type}}(this)},muted:{get:function(e){return function(){return e.muted}}(this),set:function(e){return function(t){return e.api("muted",t)}}(this)},volume:{get:function(e){return function(){return e.volume}}(this),set:function(e){return function(t){return e.api("volume",t)}}(this)},currentTime:{get:function(e){return function(){return e.currentTime}}(this),set:function(e){return function(t){return e.api("seek",t)}}(this)},quality:{get:function(e){return function(){return e.quality}}(this),set:function(e){return function(t){return e.api("quality",t)}}(this)},subtitle:{get:function(e){return function(){return e.subtitle}}(this),set:function(e){return function(t){return e.api("subtitle",t)}}(this)},fullscreen:{get:function(e){return function(){return e.fullscreen}}(this),set:function(e){return function(t){return e.api("fullscreen",t)}}(this)},api:{get:function(e){return function(){return function(){return e.api.apply(e,arguments)}}}(this)},load:{get:function(e){return function(){return function(){return e.api.apply(e,["load"].concat(o.call(arguments)))}}}(this)},play:{get:function(e){return function(){return function(){return e.api("play")}}}(this)},pause:{get:function(e){return function(){return function(){return e.api("pause")}}}(this)},togglePlay:{get:function(e){return function(){return function(){return e.api("toggle-play")}}}(this)},seek:{get:function(e){return function(){return function(){return e.api.apply(e,["seek"].concat(o.call(arguments)))}}}(this)},mute:{get:function(e){return function(){return function(){return e.api("mute")}}}(this)},unmute:{get:function(e){return function(){return function(){return e.api("unmute")}}}(this)},toggleMuted:{get:function(e){return function(){return function(){return e.api("toggle-muted")}}}(this)},watchOnSite:{get:function(e){return function(){return function(){return e.api("watch-on-site")}}}(this)},setProp:{get:function(e){return function(){return function(){return e.api.apply(e,["set-prop"].concat(o.call(arguments)))}}}(this)}}),d.emulateAddEventListenerOn(this._rootNode_),l.debug(a.get("Chromecast")),l.injectScript()["catch"](function(e){}),c.settings("api")?(_.log("Initializing player API"),this.playerApi=new r):_.log("Player API disabled"),v.inject().then(function(e){return function(t){var n,r;return n=t.playerInstance,r=t.type,e.playerDispatcher=y.create(e,n),e.playerDispatcher.bindPlayerEventListeners(),s.init(n),A.init(e,n),f.init(n),u.supportsAnnotations()&&(_.log("Hapyak init"),h.init(e,n)),e.type=r,_.groupEnd()}}(this))}return t.prototype.started=!1,t.prototype.ended=!1,t.prototype.muted=!1,t.prototype.volume=1,t.prototype.paused=!0,t.prototype.type=null,t.prototype.apiReady=!1,t.prototype.autoplay=!1,t.prototype.currentTime=0,t.prototype.bufferedTime=0,t.prototype.duration=NaN,t.prototype.seeking=!1,t.prototype.error=null,t.prototype.fullscreen=!1,t.prototype.adRunning=!1,t.prototype.qualities=[],t.prototype.quality=null,t.prototype.subtitles=[],t.prototype.subtitle=null,t.flashAvailable=function(){return v.flashAvailable()},t.html5VideoAvailable=function(){return v.html5VideoAvailable()},t.prototype.rootNode=function(){return this._rootNode_},t.prototype.dispatchFromPlayer=function(e,t){var n;return i.nextTick(function(n){return function(){return _.log(">>> dispatchEvent",e.name),d.dispatchEvent(n._rootNode_,e.name,t)}}(this)),e.isPublic&&null!=this.playerApi&&("ad_timeupdate"!==(n=e.name)&&"timeupdate"!==n&&"progress"!==n&&m.log("<",e.name,t),this.playerApi.postMessage(e.name,t)),null!=e.deprecated?this.dispatchFromPlayer({name:e.deprecated,isPublic:e.isPublic},t):void 0},t.prototype.triggerToPlayer=function(e,t){return this.playerDispatcher.triggerToPlayer(e,t)},t.prototype.onHTML5Preferred=function(e){return v.onHTML5Preferred(e)},t.prototype.getAPIWarnNotRecommendedError=function(e){return{method:e,parameter:function(){switch(e){case"play":case"toggle-play":return"autoplay";case"seek":return"start";case"quality":return"quality";case"muted":case"toggle-muted":return"muted";default:return!1}}()}},t.prototype.reset=function(){return this.ended=!1,this.currentTime=0,this.bufferedTime=0,this.duration=NaN,this.seeking=!1,this.adRunning=!1,this.qualities=[],this.quality=null,this.subtitles=[],this.subtitle=null},t.prototype.api=function(t,n,r){var i,o;if(!this.apiReady)return void("undefined"!=typeof console&&null!==console&&"function"==typeof console.error&&console.error(p.API_ERR_PLAYER_NOT_READY+" : Dailymotion player is not ready yet.\nYou should wait for the `apiready` event before calling `"+t+"("+(n||"")+")` method.\nSee: https://developer.dailymotion.com/player#player-api-events"));switch(!this.started&&(o=this.getAPIWarnNotRecommendedError(t)).parameter&&this.triggerToPlayer(e.ERROR_PLAYER,{error:p.API_WARN_NOT_RECOMMENDED,extra:o}),"volume"!==t&&"seek"!==t||(n=parseFloat(n)),"fullscreen"!==t&&"muted"!==t||(n="1"===n||1===n||"true"===n||n===!0),m.log(">",t,n,r),t){case"play":return this.triggerToPlayer(e.PLAY_REQUESTED);case"pause":return this.triggerToPlayer(e.PAUSE_REQUESTED);case"volume":return this.triggerToPlayer(e.VOLUME_CHANGE_REQUESTED,{volume:n,muted:this.muted});case"seek":return this.triggerToPlayer(e.SEEK_REQUESTED,{time:n});case"toggle-play":return this.triggerToPlayer(e.TOGGLE_PLAYBACK_REQUESTED);case"toggle-muted":return this.api("muted",!this.muted);case"mute":return this.api("muted",!0);case"unmute":return this.api("muted",!1);case"muted":this.triggerToPlayer(e.VOLUME_CHANGE_REQUESTED,{volume:this.volume,muted:n});break;case"fullscreen":n!==this.fullscreen&&this.triggerToPlayer(e.FULLSCREEN_TOGGLE_REQUESTED);break;case"quality":return i="default"===n?{adaptive:!0,qualityName:"480"}:{adaptive:!1,qualityName:n},this.triggerToPlayer(e.QUALITY_CHANGE_REQUESTED,i);case"subtitle":return this.triggerToPlayer(e.SUBTITLE_CHANGE_REQUESTED,{code:n});case"load":return this.triggerToPlayer(e.LOAD_VIDEO,null!=r?{xid:n,settings:r}:{xid:n});case"watch-on-site":return this.triggerToPlayer(e.WATCH_ON_SITE_REQUESTED);case"--api-warning":return null!=n.deprecated&&"postMessage"===n.mode?this.triggerToPlayer(e.ERROR_PLAYER,{error:p.API_WARN_DEPRECATED_POSTMESSAGE,extra:{mode:n}}):_.warn("Unhandled API warning: "+t);case"set-prop":return this.triggerToPlayer(e.API_SET_PROP,{prop:n,value:r});default:return this.triggerToPlayer(e.ERROR_PLAYER,{error:p.API_ERR_UNKNOWN_METHOD,extra:{method:t}}),_.error("Invalid API method: "+t)}},t}()}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}).call(t,n(3))},3:function(e,t){function n(){l=!1,s.length?u=s.concat(u):c=-1,u.length&&r()}function r(){if(!l){var e=setTimeout(n);l=!0;for(var t=u.length;t;){for(s=u,u=[];++c1)for(var n=1;n1?(r=e.shift(),null!=t[r]?this._recursiveLookupProperty(e,t[r],n):n):null!=t[e[0]]?t[e[0]]:n},e.prototype.updateMetadata=function(e){return this._metadata=e},e.prototype.errorState=function(e){return this._context.error=e},e.prototype.getFlashVars=function(){return encodeURIComponent(JSON.stringify(this.get()))},e.prototype.getDependencyURL=function(e){return this.context("dependencies.html."+e)},e.prototype.isFeatureEnabled=function(e,t){var n;return null==t&&(t=!1),n=this.context("features",{}),null!=n[e]?n[e]:t},e.prototype.isGKEnabled=function(e){var t;return t=this.context("gatekeepers",[]),-1!==t.indexOf(e)},e.prototype.isLiveStatusEnabled=function(){return this.isFeatureEnabled("LIVE_STATUS",!0)},e.prototype.rootNode=function(){return this._rootNode},e.prototype.window=function(){return window},e}())}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},5:function(e,t,n){var r;!function(i,o){"use strict";var s=function(e){if("object"!=typeof e.document)throw new Error("Cookies.js requires a `window` with a `document` object");var t=function(e,n,r){return 1===arguments.length?t.get(e):t.set(e,n,r)};return t._document=e.document,t._cacheKeyPrefix="cookey.",t._maxExpireDate=new Date("Fri, 31 Dec 9999 23:59:59 UTC"),t.defaults={path:"/",secure:!1},t.get=function(e){t._cachedDocumentCookie!==t._document.cookie&&t._renewCache();var n=t._cache[t._cacheKeyPrefix+e];return n===o?o:decodeURIComponent(n)},t.set=function(e,n,r){return r=t._getExtendedOptions(r),r.expires=t._getExpiresDate(n===o?-1:r.expires),t._document.cookie=t._generateCookieString(e,n,r),t},t.expire=function(e,n){return t.set(e,o,n)},t._getExtendedOptions=function(e){return{path:e&&e.path||t.defaults.path,domain:e&&e.domain||t.defaults.domain,expires:e&&e.expires||t.defaults.expires,secure:e&&e.secure!==o?e.secure:t.defaults.secure}},t._isValidDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())},t._getExpiresDate=function(e,n){if(n=n||new Date,"number"==typeof e?e=e===1/0?t._maxExpireDate:new Date(n.getTime()+1e3*e):"string"==typeof e&&(e=new Date(e)),e&&!t._isValidDate(e))throw new Error("`expires` parameter cannot be converted to a valid Date instance");return e},t._generateCookieString=function(e,t,n){e=e.replace(/[^#$&+\^`|]/g,encodeURIComponent),e=e.replace(/\(/g,"%28").replace(/\)/g,"%29"),t=(t+"").replace(/[^!#$&-+\--:<-\[\]-~]/g,encodeURIComponent),n=n||{};var r=e+"="+t;return r+=n.path?";path="+n.path:"",r+=n.domain?";domain="+n.domain:"",r+=n.expires?";expires="+n.expires.toUTCString():"",r+=n.secure?";secure":""},t._getCacheFromString=function(e){for(var n={},r=e?e.split("; "):[],i=0;it?e.length:t;var n,r=e.substr(0,t);try{n=decodeURIComponent(r)}catch(i){console&&"function"==typeof console.error&&console.error('Could not decode cookie with key "'+r+'"',i)}return{key:n,value:e.substr(t+1)}},t._renewCache=function(){t._cache=t._getCacheFromString(t._document.cookie),t._cachedDocumentCookie=t._document.cookie},t._areEnabled=function(){var e="cookies.js",n="1"===t.set(e,1).get(e);return t.expire(e),n},t.enabled=t._areEnabled(),t},a="object"==typeof i.document?s(i):s;r=function(){return a}.call(t,n,t,e),!(r!==o&&(e.exports=r))}("undefined"==typeof window?this:window)},6:function(e,t,n){var r;r=function(){return function(e){var t,n,r,i;for(i={},t=0,n=e.length;n>t;t++)r=e[t],i[r]=r;return i}(["DM001","DM002","DM003","DM004","DM005","DM006","DM007","DM008","DM009","DM010","DM011","DM012","DM013","DM014","DM015","DM016","DM017","DM018","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","API_ERR_UNKNOWN_METHOD","API_ERR_PLAYER_NOT_READY","API_WARN_DEPRECATED_POSTMESSAGE","API_WARN_NOT_RECOMMENDED","PLAYER_PAYMENT_TYPE_NOT_SUPPORTED","PLAYER_ERR_DEVICE_NOT_SUPPORTED","PLAYER_ERR_NO_STREAM","PLAYER_ERR_NEED_FLASH","PLAYER_ERR_NEED_FLASH_UPGRADE","PLAYER_ERR_VIDEO_NOT_SUPPORTED","PLAYER_ERR_XHR_CALL_FAILED","PLAYER_ERR_CDN_RESOLVER_FAILED","PLAYER_ERR_BLOCKED","PLAYER_ERR_EB_BLOCKED","PLAYER_ERR_UNKNOWN","PLAYER_ERR_UNEXPECTED","PRIVATE_VIDEOS_NOT_SUPPORTED"])}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},7:function(e,t,n){var r;r=function(){var e;return(e=n(8))({AD_BLOCKER_DETECTED:null,AD_ERROR:null,AD_FETCHER_PREFETCH:null,AD_FETCHER_REQUESTED:null,AD_FETCHER_RESPONDED:null,AD_GLOBAL_DID_BEGIN:null,AD_GLOBAL_DID_END:null,AD_GLOBAL_DID_TIMEOUT:null,AD_IMPRESSION:null,AD_LINEAR_SLOT_ENDED:null,AD_LINEAR_SLOT_STARTED:null,AD_LOADED:null,AD_SDK_READY:null,AD_WILL_START:null,AD_STARTED:null,AD_STOPPED:null,AD_VIDEO_SKIPPABLE_REMAINING_TIME:null,AD_VIDEO_SKIPPABLE_STATE:null,AD_VIDEO_START:null,AD_VIDEO_COMPLETE:null,AIRPLAY_AVAILABLE:null,AIRPLAY_NOT_AVAILABLE:null,AIRPLAY_REQUESTED:null,AIRPLAY_WIRELESS_STATE:null,ALERT_PANE_WILL_CLOSE:null,ALERT_PANE_WILL_OPEN:null,ANNOTATIONS_CHANGE_CONFIRMED:null,ANNOTATIONS_CHANGE_REQUESTED:null,ANNOTATIONS_READY:null,API_SET_PROP:null,BREAKPOINT_CHANGED:null,CAN_PLAY_ONE_SOURCE:null,CHROMECAST_LAUNCH_REQUESTED:null,CHROMECAST_MEDIA_DISCOVERED:null,CHROMECAST_MEDIA_STATUS_UPDATE:null,CHROMECAST_NOT_AVAILABLE:null,CHROMECAST_OVERRIDE_PANE_WILL_CLOSE:null,CHROMECAST_OVERRIDE_PANE_WILL_OPEN:null,CHROMECAST_PREPARE_FOR_REMOTE:null,CHROMECAST_READY:null,CHROMECAST_REMOTE_ENABLED:null,CHROMECAST_REQUESTING_SESSION:null,CHROMECAST_SESSION_AVAILABLE:null,CHROMECAST_SESSION_STOPPED:null,CHROMECAST_STATUS_PANE_WILL_CLOSE:null,CHROMECAST_STATUS_PANE_WILL_OPEN:null,CHROMECAST_USER_CANCEL:null,CLOSE_DRAWER_REQUESTED:null,CLOSE_SHARE_PANE_REQUESTED:null,COMPONENTS_READY:null,CONTROL_BAR_UPDATED:null,CONTROL_BAR_WILL_HIDE:null,CONTROL_BAR_WILL_SHOW:null,CUE_ZONE_ENTERED:null,CUE_ZONE_LEFT:null,CUE_ZONE_REGISTER_GROUP:null,CUE_ZONE_UNREGISTER_GROUP:null,DEBUG_VIDEO_ZOOM_TOGGLE_REQUESTED:null,DISABLE_TOOLTIP_REQUESTED:null,DOCK_UPDATED:null,DRAWER_BUTTON_ENABLED:null,DRAWER_CLOSED:null,DRAWER_OPENED:null,DRAWER_UPDATED:null,EMBED_REQUESTED:null,ENABLE_TOOLTIP_REQUESTED:null,END_SCREEN_ACTION:null,END_SCREEN_VIDEO_CLICKED:null,END_SCREEN_DATA_CHANGED:null,END_SCREEN_WILL_CLOSE:null,END_SCREEN_WILL_OPEN:null,ERROR_DISPLAY_REQUESTED:null,ERROR_PLAYER:null,EXPAND_PLAYER_SIZE_REQUESTED:null,FOCUS_FIRST_MENUITEM_REQUESTED:null,FULLSCREEN_BUTTON_ENABLED:null,FULLSCREEN_ENTERED:null,FULLSCREEN_EXITED:null,FULLSCREEN_SUPPORTED:null,FULLSCREEN_TOGGLE_REQUESTED:null,HIDE_FILMSTRIP_REQUESTED:null,HIDE_MENU_REQUESTED:null,HIDE_TOOLTIP_REQUESTED:null,HTML5_PREFERED_REQUESTED:null,IMAGE_PRELOAD_ERROR:null,IMAGE_PRELOADED:null,LIVE_AUDIENCE:null,LIVE_STATUS:null,LOAD_VIDEO:null,MENU_DID_HIDE:null,MENU_DID_SHOW:null,MINI_UI_UPDATED:null,MODAL_WILL_CLOSE:null,MODAL_WILL_OPEN:null,MOUSE_ENTERED_PLAYER:null,MOUSE_LEFT_PLAYER:null,MOUSE_MOVED_OVER_PLAYER:null,OPEN_DRAWER_REQUESTED:null,OPEN_SHARE_PANE_REQUESTED:null,PASSWORD_REQUIRED:null,PASSWORD_SUBMITTED:null,PAUSE_REQUESTED:null,PIP_SUPPORTED:null,PIP_BUTTON_ENABLED:null,PLAY_REQUESTED:null,PLAYER_SIZE_CHANGED:null,PRESENT_CONTROLS_REQUESTED:null,PRESENTATION_MODE_CHANGED:null,PRESENTATION_MODE_TOGGLE_REQUESTED:null,PRESSED_0:null,PRESSED_1:null,PRESSED_2:null,PRESSED_3:null,PRESSED_4:null,PRESSED_5:null,PRESSED_6:null,PRESSED_7:null,PRESSED_8:null,PRESSED_9:null,PRESSED_DOWN:null,PRESSED_ENTER:null,PRESSED_ESC:null,PRESSED_F:null,PRESSED_LEFT:null,PRESSED_M:null,PRESSED_RIGHT:null,PRESSED_SHIFT_LEFT:null,PRESSED_SHIFT_RIGHT:null,PRESSED_SPACE:null,PRESSED_UP:null,QUALITIES_AVAILABLE:null,QUALITY_CHANGE_CONFIRMED:null,QUALITY_CHANGE_REQUESTED:null,QUALITY_CHANGED:null,QUALITY_STATS_REQUESTED:null,QUALITY_STATS_RESPONDED:null,REDUCE_PLAYER_SIZE_REQUESTED:null,REPORT_ISSUE_REQUESTED:null,SEEK_BAR_BLUR:null,SEEK_BAR_DRAGGING:null,SEEK_BAR_FOCUS:null,SEEK_BAR_INTERACTION_CHANGED:null,SEEK_BAR_MOUSE_MOVE:null,SEEK_BAR_POSITION_UPDATED:null,SEEK_REQUESTED:null,SEQUENCE_ENDED:null,SEQUENCE_READY:null,SEQUENCE_STARTED:null,SHARE_PANE_ACTION:null,SHOW_FILMSTRIP_REQUESTED:null,SHOW_MENU_CONTENT_REQUESTED:null,SHOW_MENU_REQUESTED:null,SHOW_TOOLTIP_REQUESTED:null,SKIP_AD_REQUESTED:null,SPEED_CHANGE_CONFIRMED:null,SPEED_CHANGE_REQUESTED:null,START_VIEW_WILL_CLOSE:null,START_VIEW_WILL_OPEN:null,STAT_INFO_READY:null,STAT_PLUGIN_READY:null,SUBTITLE_CHANGE_CONFIRMED:null,SUBTITLE_CHANGE_REQUESTED:null,SUBTITLE_TEXT_UPDATED:null,SUBTITLES_AVAILABLE:null,TOGGLE_DRAWER_REQUESTED:null,TOGGLE_MENU_REQUESTED:null,TOGGLE_PLAYBACK_REQUESTED:null,UPDATE_TOOLTIP_REQUESTED:null,VIDEO_BUFFER_UPDATE:null,VIDEO_BUFFERING:null,VIDEO_CAN_PLAY:null,VIDEO_CAN_PLAY_THROUGH:null,VIDEO_DURATION_CHANGE:null,VIDEO_ENDED:null,VIDEO_INTERRUPT_REQUESTED:null,VIDEO_LOADED_DATA:null,VIDEO_LOADED_METADATA:null,VIDEO_OVERLAY_SIZE_CHANGED:null,VIDEO_PAUSE:null,VIDEO_PLAY:null,VIDEO_PLAYING:null,VIDEO_REBUFFERING:null,VIDEO_RESUME_REQUESTED:null,VIDEO_SEEKED:null,VIDEO_SEEKING:null,VIDEO_SELECTED:null,VIDEO_SLOT_ENDED:null,VIDEO_SLOT_STARTED:null,VIDEO_START:null,VIDEO_STEADYPLAY:null,VIDEO_TAPPED:null,VIDEO_TIME_UPDATE:null,VIDEO_VOLUME_CHANGED:null,VIDEO_WAITING:null,VOLUME_CHANGE_REQUESTED:null,VPAID_AD_STARTED:null,VPAID_AD_STOPPED:null,WATCH_ON_SITE_REQUESTED:null},"dmp_")}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},8:function(e,t,n){var r;r=function(){var e;return e=function(e,t){var n,r,i;if(null==t&&(t=""),r={},!(e instanceof Object)||$.isArray(e))throw new Error("keyMirror(...): Argument must be an object.");for(n in e)i=e[n],e.hasOwnProperty(n)&&(r[n]=""+t+n);return r}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},9:function(e,t,n){var r;r=function(){var e,t,r,i,o,s;return o=n(4),s=n(10).get("Bootstrapper"),e=n(7),r=n(17),i=n(18),t=function(){function t(e,t){this.player=e,this.playerEmitter=t}return t.prototype.bindPlayerEventListeners=function(){return this.playerEmitter.on(e.VIDEO_CAN_PLAY,function(e){return function(){return e.dispatchFromPlayer(r.CAN_PLAY)}}(this)),this.playerEmitter.on(e.VIDEO_CAN_PLAY_THROUGH,function(e){return function(){return e.dispatchFromPlayer(r.CAN_PLAY_THROUGH)}}(this)),this.playerEmitter.on(e.VIDEO_LOADED_METADATA,function(e){return function(){return e.player.ended=!1,e.dispatchFromPlayer(r.LOADED_METADATA)}}(this)),this.playerEmitter.on(e.VIDEO_TIME_UPDATE,function(e){return function(t,n){var i;return e.player.currentTime=n.time,i={time:e.player.currentTime},e.dispatchFromPlayer(e.player.adRunning?r.AD_TIME_UPDATE:r.TIME_UPDATE,i)}}(this)),this.playerEmitter.on(e.VIDEO_BUFFER_UPDATE,function(e){return function(t,n){var i;return e.player.bufferedTime=n.buffer,i={time:e.player.bufferedTime},e.dispatchFromPlayer(r.PROGRESS,i)}}(this)),this.playerEmitter.on(e.VIDEO_DURATION_CHANGE,function(e){return function(t,n){var i;return e.player.duration=n.duration,i={duration:e.player.duration},e.dispatchFromPlayer(r.DURATION_CHANGE,i)}}(this)),this.playerEmitter.on(e.FULLSCREEN_ENTERED,function(e){return function(){var t;return e.player.fullscreen=!0,t={fullscreen:e.player.fullscreen},e.dispatchFromPlayer(r.FULLSCREEN_CHANGE,t)}}(this)),this.playerEmitter.on(e.FULLSCREEN_EXITED,function(e){return function(){var t;return e.player.fullscreen=!1,t={fullscreen:e.player.fullscreen},e.dispatchFromPlayer(r.FULLSCREEN_CHANGE,t)}}(this)),this.playerEmitter.on(e.VIDEO_VOLUME_CHANGED,function(e){return function(t,n){var i;return e.player.volume=n.volume,e.player.muted=n.muted,i={volume:e.player.volume,muted:e.player.muted},n.internal?void 0:e.dispatchFromPlayer(r.VOLUME_CHANGE,i)}}(this)),this.playerEmitter.on(e.QUALITY_CHANGED,function(e){return function(t,n){var i;return e.player.quality=n.quality.name,i={quality:e.player.quality},e.dispatchFromPlayer(r.QUALITY_CHANGE,i)}}(this)),this.playerEmitter.on(e.QUALITIES_AVAILABLE,function(e){return function(t,n){var i,o,s,a,u;for(a=[],u=n.qualities,i=0,o=u.length;o>i;i++)s=u[i],a.push(s.name);return e.player.qualities=a,e.dispatchFromPlayer(r.QUALITIES_AVAILABLE,{qualities:e.player.qualities})}}(this)),this.playerEmitter.on(e.SUBTITLES_AVAILABLE,function(e){return function(t,n){var i;return e.player.subtitles=n.subtitles,i={subtitles:e.player.subtitles},e.dispatchFromPlayer(r.SUBTITLES_AVAILABLE,i)}}(this)),this.playerEmitter.on(e.SUBTITLE_CHANGE_CONFIRMED,function(e){return function(t,n){var i;return e.player.subtitle=n.code,i={subtitle:e.player.subtitle},e.dispatchFromPlayer(r.SUBTITLE_CHANGE,i)}}(this)),this.playerEmitter.on(e.VIDEO_PLAYING,function(e){return function(){return e.player.adRunning?void 0:e.dispatchFromPlayer(r.PLAYING)}}(this)),this.playerEmitter.on(e.VIDEO_PLAY,function(e){return function(){return e.player.paused=!1,e.dispatchFromPlayer(e.player.adRunning?r.AD_PLAY:r.PLAY)}}(this)),this.playerEmitter.on(e.VIDEO_PAUSE,function(e){return function(){return e.player.paused=!0,e.dispatchFromPlayer(e.player.adRunning?r.AD_PAUSE:r.PAUSE)}}(this)),this.playerEmitter.on(e.VIDEO_START,function(e){return function(t,n){var i;return e.player.started=!0,i={replay:n.replay},e.dispatchFromPlayer(r.VIDEO_START,i)}}(this)),this.playerEmitter.on(e.VIDEO_ENDED,function(e){return function(){return e.player.ended=!0,e.dispatchFromPlayer(r.VIDEO_END)}}(this)),this.playerEmitter.on(e.VIDEO_SEEKING,function(e){return function(t,n){var i;return e.player.seeking=!0,i={time:n.time},e.dispatchFromPlayer(r.SEEKING,i)}}(this)),this.playerEmitter.on(e.VIDEO_SEEKED,function(e){return function(t,n){var i;return e.player.seeking=!1,i={time:n.time},e.dispatchFromPlayer(r.SEEKED,i)}}(this)),this.playerEmitter.on(e.VIDEO_WAITING,function(e){return function(){return e.dispatchFromPlayer(r.WAITING)}}(this)),this.playerEmitter.on(e.ERROR_DISPLAY_REQUESTED,function(e){return function(t,n){var i;return i={code:n.code,title:n.title,message:n.text},e.dispatchFromPlayer(r.ERROR,i)}}(this)),this.playerEmitter.on(e.AD_SDK_READY,function(t){return function(){var n,i;return i=function(){return t.playerEmitter.off(e.LOAD_VIDEO,i),t.playerEmitter.off(e.AD_LOADED,n),t.playerEmitter.off(e.AD_ERROR,n)},n=function(){return i(),t.dispatchFromPlayer(r.AD_RESPONDED)},t.playerEmitter.on(e.LOAD_VIDEO,i),t.playerEmitter.on(e.AD_LOADED,n),t.playerEmitter.on(e.AD_ERROR,n),t.dispatchFromPlayer(r.AD_REQUESTED)}}(this)),this.playerEmitter.on(e.AD_STARTED,function(e){return function(t,n){var i;return e.player.adRunning=!0,i={type:n.type,position:n.position},e.dispatchFromPlayer(r.AD_START,i)}}(this)),this.playerEmitter.on(e.AD_STOPPED,function(e){return function(t,n){var i;return e.player.adRunning?(e.player.adRunning=!1,i={type:n.type,position:n.position},e.dispatchFromPlayer(r.AD_END,i)):void 0}}(this)),this.playerEmitter.on(e.LOAD_VIDEO,function(e){return function(){return e.player.reset()}}(this)),this.playerEmitter.on(e.SHARE_PANE_ACTION,function(e){return function(t,n){var i;return i={type:n.type},e.dispatchFromPlayer(r.SHARE_PANE_ACTION,i)}}(this)),this.playerEmitter.on(e.EXPAND_PLAYER_SIZE_REQUESTED,function(e){return function(){return e.dispatchFromPlayer(r.EXPAND_PLAYER_SIZE_REQUESTED)}}(this)),this.playerEmitter.on(e.REDUCE_PLAYER_SIZE_REQUESTED,function(e){return function(){return e.dispatchFromPlayer(r.REDUCE_PLAYER_SIZE_REQUESTED)}}(this)),this.playerEmitter.on(e.EMBED_REQUESTED,function(e){return function(){return e.dispatchFromPlayer(r.EMBED_REQUESTED)}}(this)),this.playerEmitter.on(e.END_SCREEN_ACTION,function(e){return function(t,n){var i;return i={videoId:n.id,url:n.url},e.dispatchFromPlayer(r.END_SCREEN_ACTION,i)}}(this)),this.playerEmitter.on(e.REPORT_ISSUE_REQUESTED,function(e){return function(t,n){var i;return i={videoId:n.id,techno:n.techno,config:o.get()},e.dispatchFromPlayer(r.REPORT_ISSUE_REQUESTED,i)}}(this)),this.playerEmitter.on(e.SEQUENCE_STARTED,function(e){return function(){return e.dispatchFromPlayer(r.START)}}(this)),this.playerEmitter.on(e.SEQUENCE_ENDED,function(e){return function(){return e.dispatchFromPlayer(r.END)}}(this)),this.playerEmitter.on(e.HTML5_PREFERED_REQUESTED,function(e){return function(t,n){return e.player.onHTML5Preferred(n.reason)}}(this)),this.playerEmitter.on(e.COMPONENTS_READY,function(e){return function(){return s.log("Player loaded"), e.player.apiReady=!0,s.log("trigger '"+r.API_READY.name+"'"),e.dispatchFromPlayer(r.API_READY),i.initialize().then(e.bindChromecastEvents.bind(e))["catch"](function(e){return s.log("Couldn't initialize chromecast:",e)})}}(this))},t.prototype.bindChromecastEvents=function(){var t,n,r,o,s,a;for(t=i.Events,s=[{ccEvt:t.REQUESTING_SESSION,plEvt:e.CHROMECAST_REQUESTING_SESSION},{ccEvt:t.MEDIA_DISCOVERED,plEvt:e.CHROMECAST_MEDIA_DISCOVERED},{ccEvt:t.MEDIA_STATUS_UPDATE,plEvt:e.CHROMECAST_MEDIA_STATUS_UPDATE},{ccEvt:t.NOT_AVAILABLE,plEvt:e.CHROMECAST_NOT_AVAILABLE},{ccEvt:t.READY,plEvt:e.CHROMECAST_READY},{ccEvt:t.SESSION_AVAILABLE,plEvt:e.CHROMECAST_SESSION_AVAILABLE},{ccEvt:t.SESSION_STOPPED,plEvt:e.CHROMECAST_SESSION_STOPPED},{ccEvt:t.USER_CANCEL,plEvt:e.CHROMECAST_USER_CANCEL},{ccEvt:t.TIME_UPDATE,plEvt:e.VIDEO_TIME_UPDATE},{ccEvt:t.DURATION_CHANGE,plEvt:e.VIDEO_DURATION_CHANGE},{ccEvt:t.VOLUME_CHANGED,plEvt:e.VIDEO_VOLUME_CHANGED}],a=[],n=0,r=s.length;r>n;n++)o=s[n],a.push(function(e){return function(t){return i.on(t.ccEvt,function(n,r){return e.triggerToPlayer(t.plEvt,r)})}}(this)(o));return a},t.prototype.dispatchFromPlayer=function(e,t){return this.player.dispatchFromPlayer(e,t)},t.prototype.triggerToPlayer=function(e,t){return this.playerEmitter.trigger(e,t)},t}(),{create:function(e,n){return new t(e,n)}}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},10:function(e,t,n){var r;r=function(){var e,t,r;return e=n(11),r=n(16),t=e.get("Bootstrapper")||e.define("Bootstrapper","purple"),e.get("API")||t.define("API","purple"),e.get("Chromecast")||e.define("Chromecast","gray"),e.get("HapYak")||e.define("HapYak","gray"),e.get("i18n")||e.define("i18n","cyan"),e.customConf=function(t){var n,i,o,s;return s=!(r.isIE()||r.isOperaTv()||r.isAndroidStockBrowser()),o=function(){switch(t){case!0:case!1:case void 0:return e.config({enabled:!!t,styled:s});default:return e.config({enabled:!0,styled:s}),i="-"===t.charAt(0)?(t=t.substring(1),"exclude"):"include",n=t.split(",").join("|"),e.filter[i](new RegExp(n,"i"))}}()},e}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},11:function(e,t,n){/*! badgee v1.2.0 - MIT license */ "use strict";var r,i,o,s,a,u,l,c,E,d,p,f,h,_,m,y,v,A,g,S,D,T=[].slice;v=["memory"],m=["debug","dirxml","error","group","groupCollapsed","info","log","warn"],D=["assert","clear","count","dir","exception","groupEnd","markTimeline","profile","profileEnd","table","trace","time","timeEnd","timeStamp","timeline","timelineEnd"],y=function(){},this.console=this.console||{},l=function(e){var t,n,r,i;for(i=[],t=0,n=e.length;n>t;t++)r=e[t],console[r]?"function"!=typeof console[r]?v.push(r):i.push(r):(console[r]=y,i.push(r));return i},m=l(m),D=l(D),E=n(12),i=n(14),S=n(15),d=E(),g=new i,_={include:null,exclude:null},c=function(e,t,n){return null==e&&(e=""),null==n&&(n=!1),""+e+(n?"%c":"[")+t+(n?"":"]")},a=function(e,t,n){var r,i;return r=[],d.styled||(t=!1),n&&(i=g.get(n),r=a(i.badgee.label,i.style,i.parent)),e&&(r[0]=c(r[0],e,!!t)),t&&r.push(S.stringForStyle(t)),r},s=function(){var e,t,n,r,i,o;for(e=0,n=m.length;n>e;e++)i=m[e],this[i]=y;for(o=[],t=0,r=D.length;r>t;t++)i=D[t],o.push(this[i]=y);return o},o=function(e,t){var n,r,i,o,u,l,c,E,p,f,h,y,A,g;if(d.enabled){if(n=a(this.label,e,t),e&&n.length>1&&(n[0]+="%c",n.push("p:a")),o=null!=_.include&&!_.include.test(n[0]),i=null!=(y=_.exclude)?y.test(n[0]):void 0,o||i)s.bind(this)();else{for(r=0,c=m.length;c>r;r++)f=m[r],this[f]=(A=console[f]).bind.apply(A,[console].concat(T.call(n)));for(u=0,E=D.length;E>u;u++)f=D[u],this[f]=console[f].bind(console)}for(g=[],l=0,p=v.length;p>l;l++)h=v[l],g.push(this[h]=console[h]);return g}return s.bind(this)()},r=function(){function e(e,t,n){this.label=e,o.bind(this,t,n)(),g.add(this.label,{badgee:this,style:t,parent:n})}return e.prototype.define=function(t,n){return new e(t,n,this.label)},e}(),u=new r,A=function(){return g.each(function(e,t){return o.bind(t.badgee,t.style,t.parent)()})},u.style=S.style,u.defaultStyle=S.defaults,u.get=function(e){var t;return null!=(t=g.get(e))?t.badgee:void 0},u.filter={none:function(){return _={include:null,exclude:null},A(),u.filter},include:function(e){return null==e&&(e=null),e!==_.include&&(_.include=e,A()),u.filter},exclude:function(e){return null==e&&(e=null),e!==_.exclude&&(_.exclude=e,A()),u.filter}},u.config=function(e){return d=E(e),e&&A(),d};try{u.log()}catch(f){p=f,h=console,h.define=function(){return console},h.style=u.style,h.styleDefaults=u.styleDefaults,h.filter=u.filter,h.get=function(){return console},h.config=function(){return u.config},u=h}e.exports=u},12:function(e,t,n){"use strict";var r,i,o,s;s=n(13).extend,o={enabled:!0,styled:!0},r=s({},o),i=function(e){return"object"==typeof e&&(r=s({},o,e)),r},e.exports=i},13:function(e,t){"use strict";var n,r=[].slice;n=function(){var e,t,n,i,o,s,a;for(t=arguments[0],e=2<=arguments.length?r.call(arguments,1):[],n=0,o=e.length;o>n;n++){s=e[n];for(i in s)a=s[i],s.hasOwnProperty(i)&&(t[i]=a)}return t},e.exports={extend:n}},14:function(e,t){"use strict";var n;n=function(){function e(){this._store={}}return e.prototype.add=function(e,t){return this._store[e]=t},e.prototype.get=function(e){return this._store[e]?this._store[e]:null},e.prototype.list=function(){var e,t,n,r;n=this._store,r=[];for(e in n)t=n[e],r.push(e);return r},e.prototype.each=function(e){var t,n,r,i;r=this._store,i=[];for(t in r)n=r[t],i.push(e(t,n));return i},e}(),e.exports=n},15:function(e,t,n){"use strict";var r,i,o,s,a,u;r=n(14),s=n(13).extend,a=new r,o={"border-radius":"2px",padding:"1px 3px",margin:"0 1px",color:"white"},u={style:function(e,t){return null==e||null==t?null!=e?a.get(e):a.list():(t=s({},o,t),void a.add(e,t))},defaults:function(e){return null!=e&&(o=e),o},stringForStyle:function(e){var t,n,r;return n=a.get(e),function(){var e;e=[];for(t in n)r=n[t],e.push(n.hasOwnProperty(t)?t+":"+r+";":void 0);return e}().join("")}},i={color:"black"},u.style("black",s({},{background:"black"})),u.style("blue",s({},{background:"blue"})),u.style("brown",s({},{background:"brown"})),u.style("gray",s({},{background:"gray"})),u.style("green",s({},{background:"green"})),u.style("purple",s({},{background:"purple"})),u.style("red",s({},{background:"red"})),u.style("cyan",s({},i,{background:"cyan"})),u.style("magenta",s({},i,{background:"magenta"})),u.style("orange",s({},i,{background:"orange"})),u.style("pink",s({},i,{background:"pink"})),u.style("yellow",s({},i,{background:"yellow"})),e.exports=u},16:function(e,t,n){var r;r=function(){var e,t,r;return t=n(4),r=navigator.userAgent,new(e=function(){function e(){null==this._device&&(this._device=t.context("device"))}return e.prototype._getDevice=function(){return null!=this._device?this._device:this._device=t.context("device")},e.prototype.getType=function(){var e;return null!=(e=this._getDevice())?e.type:void 0},e.prototype.getOsName=function(){var e;return null!=(e=this._getDevice())?e.os_name:void 0},e.prototype.getOsFamily=function(){var e;return null!=(e=this._getDevice())?e.os_family:void 0},e.prototype.getUAFamily=function(){var e;return null!=(e=this._getDevice())?e.ua_family:void 0},e.prototype.getOsVersion=function(){var e,t;return null==this._osVersion&&(e=null!=(t=this.getOsName())?t.match(/(\d+(\.\d+)*)/):void 0,this._osVersion=null!=e?e[0]:"iOS"===this.getOsName()?(e=r.match(/Version\/(\d+(\.\d+)*)/),null!=e?e[1]:void 0):void 0,null==this._osVersion&&(this._osVersion="0")),this._osVersion},e.prototype.isDesktop=function(){return"desktop"===this.getType()},e.prototype.isMobile=function(){return"mobile"===this.getType()},e.prototype.isTablet=function(){return"tablet"===this.getType()},e.prototype.isTv=function(){return"tv"===this.getType()},e.prototype.isAndroid=function(){return"Android"===this.getOsFamily()},e.prototype.isBlackberry=function(){return"BlackBerry OS"===this.getOsFamily()},e.prototype.isIos=function(){return"iOS"===this.getOsFamily()},e.prototype.isWindows=function(){return"Windows"===this.getOsFamily()},e.prototype.isIE=function(){return"IE"===this.getUAFamily()},e.prototype.isEdge=function(){return"Microsoft Edge"===this.getUAFamily()},e.prototype.isSafari=function(){return"Safari"===this.getUAFamily()},e.prototype.isSafariMobile=function(){return"Safari mobile"===this.getUAFamily()},e.prototype.isFirefox=function(){return"Firefox"===this.getUAFamily()},e.prototype.isFirefoxMobile=function(){return"Firefox mobile"===this.getUAFamily()},e.prototype.isChrome=function(){return"Chrome"===this.getUAFamily()},e.prototype.isChromeMobile=function(){return"Chrome Mobile"===this.getUAFamily()},e.prototype.isOperaTv=function(){return"Opera TV Store"===this.getUAFamily()},e.prototype.isAndroidStockBrowser=function(){var e,t;return null==this._isAndroidStockBrowser&&(t=r.match(/AppleWebKit\/([\d.]+)/)||[],e=null!=t[1]?parseFloat(t[1]):null,this._isAndroidStockBrowser=this.isAndroid()&&this.isMobile()&&null!=e&&537>e),this._isAndroidStockBrowser},e.prototype.isChromiumWebview=function(){var e,t;return null==this._isChromiumWebview&&(t=r.match(/Version\/([\d.]+) Chrome\/([\d.]+)/)||[],e=null!=t[1],this._isChromiumWebview=this.isAndroid()&&this.isMobile()&&e),this._isChromiumWebview},e.prototype.isIphone=function(){return this.isMobile()&&this.isIos()},e.prototype.isWindowsPhone=function(){return this.isMobile()&&this.isWindows()},e.prototype.isGooglePreviewBot=function(){return/Google Web Preview/.test(r)},e}())}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},17:function(e,t,n){var r;r=function(){return{API_READY:{name:"apiready",isPublic:!0},CAN_PLAY:{name:"canplay",isPublic:!0},CAN_PLAY_THROUGH:{name:"canplaythrough",isPublic:!0},LOADED_METADATA:{name:"loadedmetadata",isPublic:!0},TIME_UPDATE:{name:"timeupdate",isPublic:!0},PROGRESS:{name:"progress",isPublic:!0},DURATION_CHANGE:{name:"durationchange",isPublic:!0},FULLSCREEN_CHANGE:{name:"fullscreenchange",isPublic:!0},VOLUME_CHANGE:{name:"volumechange",isPublic:!0},QUALITIES_AVAILABLE:{name:"qualitiesavailable",isPublic:!0},SUBTITLES_AVAILABLE:{name:"subtitlesavailable",isPublic:!0},QUALITY_CHANGE:{name:"qualitychange",isPublic:!0},SUBTITLE_CHANGE:{name:"subtitlechange",isPublic:!0},PLAYING:{name:"playing",isPublic:!0},PLAY:{name:"play",isPublic:!0},PAUSE:{name:"pause",isPublic:!0},START:{name:"start",isPublic:!0},END:{name:"end",isPublic:!0},VIDEO_START:{name:"video_start",isPublic:!0,deprecated:"started"},VIDEO_END:{name:"video_end",isPublic:!0,deprecated:"ended"},SEEKING:{name:"seeking",isPublic:!0},SEEKED:{name:"seeked",isPublic:!0},WAITING:{name:"waiting",isPublic:!0},ERROR:{name:"error",isPublic:!0},AD_START:{name:"ad_start",isPublic:!0},AD_TIME_UPDATE:{name:"ad_timeupdate",isPublic:!0},AD_PLAY:{name:"ad_play",isPublic:!0},AD_PAUSE:{name:"ad_pause",isPublic:!0},AD_END:{name:"ad_end",isPublic:!0},AD_REQUESTED:{name:"ad_requested",isPublic:!1},AD_RESPONDED:{name:"ad_responded",isPublic:!1},EXPAND_PLAYER_SIZE_REQUESTED:{name:"expandPlayerRequested",isPublic:!1},REDUCE_PLAYER_SIZE_REQUESTED:{name:"reducePlayerRequested",isPublic:!1},EMBED_REQUESTED:{name:"embedRequested",isPublic:!1},END_SCREEN_ACTION:{name:"endScreenAction",isPublic:!1},REPORT_ISSUE_REQUESTED:{name:"reportIssueRequested",isPublic:!1},SHARE_PANE_ACTION:{name:"shareAction",isPublic:!1}}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},18:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var i=n(19),o=r(i),s=n(20),a=r(s),u=n(21),l=n(22),c=r(l),E=n(24),d=r(E),p=n(25),f=r(p),h={Events:o["default"],PlayerState:null,debug:u.enableLogs,maySupportChromecast:a["default"].maySupportChromecast.bind(a["default"]),injectScript:d["default"],initialize:function(){return d["default"]().then(function(){h.PlayerState=chrome.cast.media.PlayerState,f["default"].initializeCastApi()})},on:c["default"].on.bind(c["default"]),off:c["default"].removeListener.bind(c["default"]),requestSession:f["default"].requestSession.bind(f["default"]),setVolume:f["default"].setVolume.bind(f["default"]),loadMedia:f["default"].loadMedia.bind(f["default"]),stopSession:f["default"].stopSession.bind(f["default"]),watchMediaUpdates:f["default"].watchMediaUpdates.bind(f["default"]),mediaPlay:f["default"].mediaPlay.bind(f["default"]),mediaPause:f["default"].mediaPause.bind(f["default"]),mediaSeek:f["default"].mediaSeek.bind(f["default"]),mediaVolume:f["default"].mediaVolume.bind(f["default"])};t["default"]=h,e.exports=t["default"]},19:function(e,t){"use strict";t.__esModule=!0,t["default"]={READY:"chromecast_ready",NOT_AVAILABLE:"chromecast_not_available",SESSION_AVAILABLE:"chromecast_session_available",MEDIA_DISCOVERED:"chromecast_media_discovered",REQUESTING_SESSION:"chromecast_requesting_session",SESSION_STOPPED:"chromecast_session_stopped",MEDIA_STATUS_UPDATE:"chromecast_media_status_update",USER_CANCEL:"chromecast_user_cancel",TIME_UPDATE:"chromecast_time_update",DURATION_CHANGE:"chromecast_duration_changed",VOLUME_CHANGED:"chromecast_volume_changed"},e.exports=t["default"]},20:function(e,t){"use strict";function n(e){return{then:function(t,r){return"function"==typeof r&&r(e),n(e)},"catch":function(t){return"function"==typeof t&&t(e),n(e)}}}t.__esModule=!0,t["default"]={window:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){return window}),maySupportChromecast:function(){return/Chrome/.test(this.window().navigator.userAgent)&&"function"==typeof this.window().Promise},fakePromise:n},e.exports=t["default"]},21:function(e,t){"use strict";function n(){}t.__esModule=!0;var r={log:n,warn:n,info:n,error:n},i=r,o=function(e){if(e===!0||"object"==typeof e)try{i.log=e.log?e.log.bind(e):console.log.bind(console),i.info=e.info?e.info.bind(e):console.info.bind(console),i.error=e.error?e.error.bind(e):console.error.bind(console),i.warn=e.warn?e.warn.bind(e):console.warn.bind(console),i.log()}catch(t){i.log=n,i.info=n,i.error=n,i.warn=n}else i=r};t.enableLogs=o;var s=i;t.logger=s},22:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var i=n(23),o=r(i),s=new o["default"];s.trigger=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];s.emit.apply(s,[e,e].concat(n))},t["default"]=s,e.exports=t["default"]},23:function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!i(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,i,a,u,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}if(n=this._events[e],s(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),n.apply(this,a)}else if(o(n))for(a=Array.prototype.slice.call(arguments,1),l=n.slice(),i=l.length,u=0;i>u;u++)l[u].apply(this,a);return!0},n.prototype.addListener=function(e,t){var i;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,o(this._events[e])&&!this._events[e].warned&&(i=s(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,i&&i>0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),i||(i=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var i=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,i,s,a;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],s=n.length,i=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(a=s;a-- >0;)if(n[a]===t||n[a].listener&&n[a].listener===t){i=a;break}if(0>i)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},24:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){"function"!=typeof E.__onGCastApiAvailable&&(l.logger.log("defining chromecast cb"),E.__onGCastApiAvailable=function(n,r){n?(l.logger.log("chromecast loaded"),e()):t(r)})}function o(){return new Promise(function(e,t){l.logger.log("injecting chromecast script");var n=d.createElement("script");n.onload=n.onreadystatechange=function(){return e()},n.onerror=function(){return t(Error("Error loading script:",c))},n.src=c,d.head.appendChild(n)})}function s(){return null===p&&(p=u["default"].maySupportChromecast()?new Promise(function(e,t){i(e,t),o()["catch"](function(e){t(e)})}):u["default"].fakePromise("Chromecast not supported")),p}t.__esModule=!0,t["default"]=s;var a=n(20),u=r(a),l=n(21),c="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js",E=u["default"].window(),d=E.document,p=null;e.exports=t["default"]},25:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var i=n(21),o=n(26),s=r(o),a=n(22),u=r(a),l=n(19),c=r(l),E="B88B034A";t["default"]={initialized:!1,session:null,lastPlayerState:null,initializeCastApi:function(){if(!this.initialized){this.initialized=!0;var e=new chrome.cast.SessionRequest(E),t=new chrome.cast.ApiConfig(e,this.onSessionCreated.bind(this),this.onReceiverUpdated.bind(this),chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED);chrome.cast.initialize(t,this.onSuccess.bind(this,"Initialization"),this.onError.bind(this))}},onSuccess:function(e){i.logger.log("success:",e)},onError:function(e){i.logger.error("Error:",e)},onRequestSessionError:function(e){i.logger.log("Launch error",e),e.code!==chrome.cast.ErrorCode.CANCEL?this.stopSession():u["default"].trigger(c["default"].USER_CANCEL,e)},onMediaError:function(){i.logger.log("Media error",arguments),this.stopSession()},onSessionCreated:function(e){this.session=e,i.logger.log("Session ID: "+this.session.sessionId),this.session.removeMediaListener(this.onMediaDiscovered.bind(this,"addMediaListener")),this.session.addMediaListener(this.onMediaDiscovered.bind(this,"addMediaListener")),this.session.removeUpdateListener(this.onSessionUpdate.bind(this)),this.session.addUpdateListener(this.onSessionUpdate.bind(this)),u["default"].trigger(c["default"].SESSION_AVAILABLE,this.session),0!==this.session.media.length&&(i.logger.log("Found "+this.session.media.length+" media: ["+this.session.media.map(function(e){return e.media.customData})+"]"),this.onMediaDiscovered.bind(this,"onSessionCreated",this.session.media[0])())},onReceiverUpdated:function(e){e===chrome.cast.ReceiverAvailability.AVAILABLE?(i.logger.log("Chromecast receiver was found on the network"),u["default"].trigger(c["default"].READY)):(i.logger.log("No Chromecasts available"),u["default"].trigger(c["default"].NOT_AVAILABLE))},onMediaDiscovered:function(e,t){t!==this.media&&(this.media=t,i.logger.log("Successfully loaded media ("+e+"): "+this.media.mediaSessionId),this.media.PlayerState=chrome.cast.media.PlayerState,this.info=this.info||{},null!=this.media.media&&(this.info.title=this.media.media.metadata.title,this.info.posterUrl=this.media.media.metadata.images[0].url,this.info.duration=this.media.media.duration,this.info.contentType=this.media.media.contentType,this.info.customData={xid:this.media.media.customData.xid,quality:this.media.media.customData.quality}),this.session&&this.session.receiver&&null!=this.session.receiver.volume&&(this.info.volume={volume:this.session.receiver.volume.level,muted:this.session.receiver.volume.muted}),u["default"].trigger(c["default"].MEDIA_DISCOVERED,{mediaSessionId:this.media.mediaSessionId,info:this.info,media:this.media}),u["default"].trigger(c["default"].DURATION_CHANGE,{duration:this.info.duration}))},onSessionUpdate:function(e){i.logger.log("onSessionUpdate:",e),e?this.onVolumeChanged():this.stopSession()},onVolumeChanged:function(){this.info.volume=this.info.volume||{};var e=this.info.volume,t=e.volume,n=e.muted;t===this.session.receiver.volume.level&&n===this.session.receiver.volume.muted||(this.info.volume.volume=this.session.receiver.volume.level,this.info.volume.muted=this.session.receiver.volume.muted,u["default"].trigger(c["default"].VOLUME_CHANGED,{volume:this.info.volume.volume,muted:this.info.volume.muted,origin:this.session.receiver.friendlyName}))},onCurrentTimeChanged:function(){var e=this.media.getEstimatedTime();e!==this.info.currentTime&&(this.info.currentTime=e,u["default"].trigger(c["default"].TIME_UPDATE,{time:e}))},onRequestSessionSuccess:function(e){this.session=e,i.logger.log("Successfully created session: "+this.session.sessionId),this.onSessionCreated.bind(this,this.session)()},onMediaStatusUpdate:function(){var e=chrome.cast.media.PlayerState;if(null==this.lastPlayerState||this.media.playerState!==this.lastPlayerState){switch(i.logger.log("MediaStatusUpdate",this.media.playerState),this.lastPlayerState=this.media.playerState,this.media.playerState){case e.PLAYING:s["default"].start(this.onCurrentTimeChanged.bind(this));break;case e.PAUSED:case e.BUFFERING:s["default"].stop();break;case e.IDLE:s["default"].stop(),this.lastPlayerState=null,this.media.removeUpdateListener(this.onMediaStatusUpdate.bind(this))}u["default"].trigger(c["default"].MEDIA_STATUS_UPDATE,this.media.playerState)}},requestSession:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.info=e,i.logger.log("Requesting Session with",e),this.session||u["default"].trigger(c["default"].REQUESTING_SESSION),chrome.cast.requestSession(this.onRequestSessionSuccess.bind(this),this.onRequestSessionError.bind(this))},setVolume:function(){var e=arguments.length<=0||void 0===arguments[0]?.5:arguments[0],t=arguments.length<=1||void 0===arguments[1]?!1:arguments[1];this.session&&(e!==this.session.receiver.volume.level&&this.session.setReceiverVolumeLevel(e,this.onSuccess,this.onError),t!==this.session.receiver.volume.muted&&this.session.setReceiverMuted(t,this.onSuccess,this.onError))},stopSession:function(){null!=this.session&&this.session.status!==chrome.cast.SessionStatus.STOPPED&&this.session.stop(this.onSuccess,this.onError),u["default"].trigger(c["default"].SESSION_STOPPED,this.info),s["default"].stop(),this.info=null,this.media=null,this.session=null},loadMedia:function(e){this.info=e;var t=new chrome.cast.media.MediaInfo(this.info.src,this.info.contentType);t.metadata=new chrome.cast.media.MovieMediaMetadata,t.metadata.metadataType=chrome.cast.media.MetadataType.MOVIE,t.metadata.title=this.info.title,t.metadata.images=[{url:this.info.posterUrl}],t.duration=this.info.duration,t.contentType=this.info.contentType,t.customData=this.info.customData;var n=new chrome.cast.media.LoadRequest(t);n.autoplay=this.info.autoplay,n.currentTime=this.info.currentTime,n.sessionId=this.session.sessionId,this.session.loadMedia(n,this.onMediaDiscovered.bind(this,"loadMedia"),this.onMediaError.bind(this))},watchMediaUpdates:function(){this.onMediaStatusUpdate(),this.media.removeUpdateListener(this.onMediaStatusUpdate.bind(this)),this.media.addUpdateListener(this.onMediaStatusUpdate.bind(this))},mediaPlay:function(){i.logger.log("Play Request"),this.media.play(null,this.onSuccess,this.onError)},mediaPause:function(){i.logger.log("Pause Request"),this.media.pause(null,this.onSuccess,this.onError)},mediaSeek:function(e){i.logger.log("Seek Request"),s["default"].stop();var t=new chrome.cast.media.SeekRequest;t.currentTime=e,this.media.seek(t,this.onSuccess,this.onError)},mediaVolume:function(){var e=arguments.length<=0||void 0===arguments[0]?.5:arguments[0],t=arguments.length<=1||void 0===arguments[1]?!1:arguments[1];i.logger.log("Volume Request");var n=new chrome.cast.media.VolumeRequest;n.volume=new chrome.cast.Volume(e,t),this.media.setVolume(n,this.onSuccess,this.onError)}},e.exports=t["default"]},26:function(e,t,n){"use strict";t.__esModule=!0;var r=n(21);t["default"]={timer:null,start:function(e){var t=arguments.length<=1||void 0===arguments[1]?500:arguments[1];this.timer||(r.logger.log("start timer"),this.timer=setInterval(e,t))},stop:function(){this.timer&&(r.logger.log("stop timer"),clearInterval(this.timer),this.timer=null)}},e.exports=t["default"]},27:function(e,t,n){var r;r=function(){var e,t,r,i,o,s,a,u,l,c,E,d,p,f,h,_,m;return t=n(28),c=n(4),d=n(6),a=n(10),e=n(29),s=n(40),h=n(181),u=n(30),E=n(16),m=n(37),r=n(39),_=a.get("Bootstrapper"),l="dmp_chromecast_launch_requested",f="dmp_html5_preferred",p="11.1",o=function(e){return _.log("Injecting HTML5 Player..."),s.loadPlayer(function(){return e.resolve({playerInstance:$(c.rootNode()),type:"html5"})})},i=function(t){return _.log("Injecting Flash Player..."),t.resolve({playerInstance:e.create(),type:"flash"})},{flashAvailable:function(){return u.flash()&&!u.htmlPreferred()},html5VideoAvailable:function(){return t.video&&t.video.h264||E.isGooglePreviewBot()},onHTML5Preferred:function(e){return _.log("The guy wants an HTML player instead of Flash. Smart move ;)",e),this.html5VideoAvailable()?("chromecast_launch_requested"===e&&h.set(l,!0,30),h.set(f,!0),c.window().location.reload()):void _.log('Ignoring "HTML5 Preferred" instruction.')},isHTML5PlayerPreferred:function(){return h.get(f)===!0&&("live"!==c.metadata("stream_type")||u.supportsMSE())},inject:function(){var e,t;return e=$.Deferred(),null!=(t=c.settings("html"))?t?o(e):i(e):c.isGKEnabled("PV5_HTML5_FIRST")?this.injectHTML5First(e):this.injectFlashFirst(e),e.promise()},injectHTML5First:function(e){return u.supportsMSE()||u.canPlayType(r.HLS)?o(e):this.flashAvailable()&&m.isGreaterOrEqualThan(u.flash().version,p)&&!this.isHTML5PlayerPreferred()?i(e):(this.html5VideoAvailable()||c.errorState(this.flashAvailable()?d.PLAYER_ERR_NEED_FLASH_UPGRADE:d.PLAYER_ERR_VIDEO_NOT_SUPPORTED),o(e))},injectFlashFirst:function(e){return this.flashAvailable()&&m.isGreaterOrEqualThan(u.flash().version,p)&&!c.settings("html")&&!this.isHTML5PlayerPreferred()?i(e):(this.html5VideoAvailable()||c.errorState(this.flashAvailable()?d.PLAYER_ERR_NEED_FLASH_UPGRADE:d.PLAYER_ERR_VIDEO_NOT_SUPPORTED),o(e))}}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},28:function(e,t){(function(){!function(e,t,n){function r(e,t){return typeof e===t}function i(){var e,t,n,i,o,s,a;for(var u in y)if(y.hasOwnProperty(u)){if(e=[],t=y[u],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;np;p++)if(h=e[p],_=O.style[h],s(h,"-")&&(h=d(h)),O.style[h]!==n){if(o||r(i,"undefined"))return u(),"pfx"==t?h:!0;try{O.style[h]=i}catch(y){}if(O.style[h]!=_)return u(),"pfx"==t?h:!0}return u(),!1}function f(e,t){return function(){return e.apply(t,arguments)}}function h(e,t,n){var i;for(var o in e)if(e[o]in t)return n===!1?e[o]:(i=t[e[o]],r(i,"function")?f(i,n||t):i);return!1}function _(e,t,n,i,o){var s=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+R.join(s+" ")+s).split(" ");return r(t,"string")||r(t,"undefined")?p(a,t,i,o):(a=(e+" "+I.join(s+" ")+s).split(" "),h(a,t,n))}function m(e,t,r){return _(e,n,n,t,r)}var y=[],v={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){y.push({name:e,fn:t,options:n})},addAsyncTest:function(e){y.push({name:null,fn:e})}},A=function(){};A.prototype=v,A=new A;var g=[],S=t.documentElement,D="svg"===S.nodeName.toLowerCase(),T="Moz O ms Webkit",R=v._config.usePrefixes?T.split(" "):[];v._cssomPrefixes=R;var P={elem:a("modernizr")};A._q.push(function(){delete P.elem});var O={style:P.elem.style};A._q.unshift(function(){delete O.style});var I=v._config.usePrefixes?T.toLowerCase().split(" "):[];v._domPrefixes=I,v.testAllProps=_;var b=function(t){var r,i=L.length,o=e.CSSRule;if("undefined"==typeof o)return n;if(!t)return!1;if(t=t.replace(/^@/,""),r=t.replace(/-/g,"_").toUpperCase()+"_RULE",r in o)return"@"+t;for(var s=0;i>s;s++){var a=L[s],u=a.toUpperCase()+"_"+r;if(u in o)return"@-"+a.toLowerCase()+"-"+t}return!1};v.atRule=b;v.prefixed=function(e,t,n){return 0===e.indexOf("@")?b(e):(-1!=e.indexOf("-")&&(e=d(e)),t?_(e,t,n):_(e,"pfx"))};v.testAllProps=m,/*! { "name": "CSS Transitions", "property": "csstransitions", "caniuse": "css-transitions", "tags": ["css"] } !*/ A.addTest("csstransitions",m("transition","all",!0)),/*! { "name": "SVG", "property": "svg", "caniuse": "svg", "tags": ["svg"], "authors": ["Erik Dahlstrom"], "polyfills": [ "svgweb", "raphael", "amplesdk", "canvg", "svg-boilerplate", "sie", "dojogfx", "fabricjs" ] } !*/ A.addTest("svg",!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect);var L=v._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):[];v._prefixes=L;var N=v.testStyles=l;/*! { "name": "Touch Events", "property": "touchevents", "caniuse" : "touch", "tags": ["media", "attribute"], "notes": [{ "name": "Touch Events spec", "href": "https://www.w3.org/TR/2013/WD-touch-events-20130124/" }], "warnings": [ "Indicates if the browser supports the Touch Events spec, and does not necessarily reflect a touchscreen device" ], "knownBugs": [ "False-positive on some configurations of Nokia N900", "False-positive on some BlackBerry 6.0 builds – https://github.com/Modernizr/Modernizr/issues/372#issuecomment-3112695" ] } !*/ A.addTest("touchevents",function(){var n;if("ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch)n=!0;else{var r=["@media (",L.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");N(r,function(e){n=9===e.offsetTop})}return n}),/*! { "name": "HTML5 Video", "property": "video", "caniuse": "video", "tags": ["html5"], "knownBugs": [ "Without QuickTime, `Modernizr.video.h264` will be `undefined`; https://github.com/Modernizr/Modernizr/issues/546" ], "polyfills": [ "html5media", "mediaelementjs", "sublimevideo", "videojs", "leanbackplayer", "videoforeverybody" ] } !*/ A.addTest("video",function(){var e=a("video"),t=!1;try{(t=!!e.canPlayType)&&(t=new Boolean(t),t.ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),t.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),t.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""),t.vp9=e.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,""),t.hls=e.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,""))}catch(n){}return t}),i(),o(g),delete v.addTest,delete v.addAsyncTest;for(var C=0;C'];for(r in t)o=t[r],i.push('');return''+i.join("")+""},c=$({}),l="dmpOnFlashEvent",t=null,e=function(){function e(t,n){var r;null==n&&(n="direct"),r={allowFullScreen:"true",allowScriptAccess:"always",wmode:n,bgcolor:"#000000",flashvars:"config="+o.getFlashVars()+"&externalInterface="+l},window[l]=function(e,t){c.trigger(e,t)},this.$swf=$(e.swfNode(t,r,"dmp-swf")),this.$swf.css({width:"100%",height:"100%","background-color":"#000000"}).attr({width:"100%",height:"100%"}),$(o.rootNode()).html(this.$swf)}return e.prototype.on=function(){var e;return e=1<=arguments.length?i.call(arguments,0):[],c.on.apply(c,e)},e.prototype.off=function(){var e;return e=1<=arguments.length?i.call(arguments,0):[],c.off.apply(c,e)},e.prototype.trigger=function(){var e,t;return e=1<=arguments.length?i.call(arguments,0):[],(t=this.$swf[0]).trigger.apply(t,e)},e}(),e.swfNode=function(e,t,n){switch(r.flash().tag){case"embed":return t.type="application/x-shockwave-flash",t.src=e,t.id=n,s(t);case"object":return a(e,t,n);default:throw u.PLAYER_ERR_DEVICE_NOT_SUPPORTED}},{create:function(){return null!=t?t:t=new e(o.context("dependencies.flash.player"),o.settings("wmode"))},cleanup:function(){return t=null}}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},30:function(e,t,n){var r;r=function(){var e,t,r,i,o,s,a,u,l,c,E,d,p,f,h,_;return s=n(4),E=n(31),e=n(28),a=n(16),_=n(37),l=n(38),t=n(39),u=document.createElement("video"),r=E(function(){var t;return t=a.isAndroid()&&_.isGreaterOrEqualThan(a.getOsVersion(),"4"),a.isIos()||t||a.isOperaTv()||e.video.hls}),i=E(function(){return a.isAndroid()&&_.isLesserOrEqualThan(a.getOsVersion(),"4.4")}),f=function(){var e,n;return e=(null!=(n=s.window().MediaSource)?n.isTypeSupported:void 0)||function(){return!1},s.isGKEnabled("PV5_MSE_HLS")&&!s.context("secure")&&e(t.MP4+'; codecs="avc1.42E01E,mp4a.40.2"')&&(s.isGKEnabled("PV5_MSE_ALL")||a.isChrome()&&s.isGKEnabled("PV5_MSE_CHROME_DESKTOP")&&a.isDesktop()||a.isFirefox()&&s.isGKEnabled("PV5_MSE_FIREFOX_DESKTOP")&&a.isDesktop()||a.isEdge()&&s.isGKEnabled("PV5_MSE_EDGE_DESKTOP")&&a.isDesktop()||a.isIE()&&(s.isGKEnabled("PV5_MSE_IE_DESKTOP")&&a.isDesktop()||s.isGKEnabled("PV5_MSE_IE_OTHER")&&!a.isDesktop())||a.isChromeMobile()&&a.isAndroid()&&(s.isGKEnabled("PV5_MSE_CHROME_ANDROID44")&&_.isEqualto(a.getOsVersion(),"4.4")||s.isGKEnabled("PV5_MSE_CHROME_ANDROID5")&&_.isGreaterOrEqualThan(a.getOsVersion(),"5")))},h=function(){return s.isGKEnabled("PV5_MIDROLLS")||s.isGKEnabled("PV5_MIDROLLS_DESKTOP")&&a.isDesktop()||s.isGKEnabled("PV5_MIDROLLS_MOBILE")&&a.isMobile()||s.isGKEnabled("PV5_MIDROLLS_OTHER")&&!(a.isDesktop()||a.isMobile())},d=function(){return!(a.isMobile()||a.isTablet())},p=function(){return l.capabilities()},c=function(){return/iPhone(?: Simulator)?;|iPod|iPad|WebOS|Blackberry|Symbian|Android|Bada/i.test(navigator.userAgent)},o=function(e){return e===t.HLS?r()&&!(i()&&"live"!==s.metadata("stream_type")):!!u.canPlayType(e).replace(/^no$/,"")},{canPlayType:function(e){return o(e)},htmlPreferred:E(c),flash:E(p),supportsAnnotations:E(d),supportsMSE:E(f),supportsMidrolls:E(h)}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},31:function(e,t,n){function r(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s),s};return n.cache=new r.Cache,n}var i=n(32),o="Expected a function";r.Cache=i,e.exports=r},32:function(e,t,n){function r(){this.__data__={}}var i=n(33),o=n(34),s=n(35),a=n(36);r.prototype["delete"]=i,r.prototype.get=o,r.prototype.has=s,r.prototype.set=a,e.exports=r},33:function(e,t){function n(e){return this.has(e)&&delete this.__data__[e]}e.exports=n},34:function(e,t){function n(e){return"__proto__"==e?void 0:this.__data__[e]}e.exports=n},35:function(e,t){function n(e){return"__proto__"!=e&&i.call(this.__data__,e)}var r=Object.prototype,i=r.hasOwnProperty;e.exports=n},36:function(e,t){function n(e,t){return"__proto__"!=e&&(this.__data__[e]=t),this}e.exports=n},37:function(e,t,n){var r;r=function(){"use strict";return{isLesserThan:function(e,t,n){return this.compare(e,t,n)<0},isLesserOrEqualThan:function(e,t,n){return this.compare(e,t,n)<=0},isEqualto:function(e,t,n){return 0===this.compare(e,t,n)},isGreaterOrEqualThan:function(e,t,n){return this.compare(e,t,n)>=0},isGreaterThan:function(e,t,n){return this.compare(e,t,n)>0},compare:function(e,t,n){var r,i,o,s,a,u,l,c,E,d;if(i=function(e){return(a?/^\d+[A-Za-z]*$/:/^\d+$/).test(e)},a=n&&n.lexicographical,d=n&&n.zeroExtend,l=e.split("."),E=t.split("."),!l.every(i)||!E.every(i))return NaN;if(d){for(;l.lengtho;r=++o){if(u=l[r],c=E[r],E.length===r)return 1;if(u!==c)return u>c?1:-1}return l.length!==E.length?-1:0}}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},38:function(e,t,n){var r;r=function(){var e,t,r,i,o,s;return e=n(4),s=n(37),t=null,r=function(){var n;return n=e.window(),null==t&&(t=o(null!=n?n.navigator:void 0)||i(null!=n?n.ActiveXObject:void 0)),t},o=function(e){var t,n,r,i,o,s,a,u,l;return t=!1,e&&(null!=(s=e.plugins)?s.length:void 0)&&(null!=(a=e.mimeTypes)?a.length:void 0)&&(null!=(u=e.mimeTypes["application/x-shockwave-flash"])?u.enabledPlugin:void 0)&&(o=e.plugins["Shockwave Flash"].description,l=o.match(/(\d+)\.(\d+)/)||[null,0,0],r=l[0],n=l[1],i=l[2],null!=r&&(t=new Boolean(!0),t.tag="embed",t.version=n+"."+i)),t},i=function(e){var t,n,r,i,o,s,a,u,l;if(n=!1,e)try{t=new e("ShockwaveFlash.ShockwaveFlash"),t&&(u=t.GetVariable("$version"),l=u.match(/(\d+)\,(\d+)/)||[null,0,0],s=l[0],o=l[1],a=l[2],null!=s&&(n=new Boolean(!0),n.tag="object",n.version=o+"."+a))}catch(r){i=r,n=!1}return n},{clear:function(){return t=null},capabilities:function(){return r()}}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},39:function(e,t,n){var r;r=function(){return{MP4:"video/mp4",WEBM:"video/webm",HLS:"application/x-mpegURL",DASH:"application/dash+xml"}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},40:function(e,t,n){var r;r=function(){return{loadPlayer:function(e){return n.e(1,function(t){return e(),n(41)})}}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},181:function(e,t,n){var r;r=function(){var e;return(e=n(182).getStorage)("local")}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},182:function(e,t,n){var r,i=[].slice;r=function(){var e,t,r,o,s,a,u;return u=n(4),a=function(t,n){var r,i;return i=function(){var e;try{switch(t){case"local":return u.window().localStorage;case"session":return u.window().sessionStorage;default:throw new Error("Unknown storage type: "+t)}}catch(e){return void(r=e)}}(),e(i,n)},e=function(e,t){return function(){var n,r,o;n=1<=arguments.length?i.call(arguments,0):[];try{return t.apply(null,[e].concat(i.call(n)))}catch(o){return void(r=o)}}},r=function(e,t){var n;return n=JSON.parse(e.getItem(t)),Date.now()<=(null!=n?n.expires:void 0)?n.data:(o(e,t),null)},s=function(e,t,n,r){return null==r&&(r=86400),null!=n?(n={expires:Date.now()+1e3*r,data:n},e.setItem(t,JSON.stringify(n))):void 0},o=function(e,t){return e.removeItem(t)},t=function(e){return e.clear()},{getStorage:function(e){return{get:a(e,r),set:a(e,s),remove:a(e,o),clear:a(e,t)}},get:function(){var e,t;return t=arguments[0],e=2<=arguments.length?i.call(arguments,1):[],a(t,r).apply(null,e)},set:function(){var e,t;return t=arguments[0],e=2<=arguments.length?i.call(arguments,1):[],a(t,s).apply(null,e)},remove:function(){var e,t;return t=arguments[0],e=2<=arguments.length?i.call(arguments,1):[],a(t,o).apply(null,e)},clear:function(){var e,n;return n=arguments[0],e=2<=arguments.length?i.call(arguments,1):[],a(n,t).apply(null,e)}}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},183:function(e,t,n){var r;r=function(){var e,t;return e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",t=function(t){var n,r,i,o,s,a,u,l,c,E,d;for(o=[],s=u=0;4>u;s=++u)o.push(Math.floor(64*Math.random()));for(n=window.btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),i="",s=l=0,E=n.length;E>=0?E>l:l>E;s=E>=0?++l:--l)d=o[s%4],r=n.charAt(s),a=e.indexOf(r),i+=e.charAt((a+d)%64);for(s=c=0;4>c;s=++c)i+=e.charAt(o[s]);return i},{obfuscate:t}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},359:function(e,t,n){var r;r=function(){return{defineProperty:function(e,t,n){var r,i,o,s;if(Object.defineProperty)try{Object.defineProperty(e,t,n)}catch(a){}else e.__defineGetter__&&e.__defineSetter__?(n.get&&e.__defineGetter__.call(e,t,n.get),n.set&&e.__defineSetter__.call(e,t,n.set)):"function"==typeof e.attachEvent&&(i=e[t],r=function(){return n.get.apply(e,[i])},s=function(t){return i=n.set.apply(e,[t])},o=function(n){var i;n.propertyName===t&&(e.detachEvent("onpropertychange",o),i=s(e[t]),e[t]=r,e[t].toString=r,e.attachEvent("onpropertychange",o))},e[t]=r,e[t].toString=r,e.attachEvent("onpropertychange",o))},defineProperties:function(e,t){var n,r;if(e!==Object(e))throw TypeError("Object.defineProperties called on non-object");for(r in t)n=t[r],Object.prototype.hasOwnProperty.call(t,r)&&this.defineProperty(e,r,n);return e}}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},374:function(e,t,n){var r;r=function(){var e;return e=n(359),{_EVENT_HANDLERS:{},emulateAddEventListenerOn:function(t){return!t.addEventListener&&t.attachEvent?e.defineProperty(t,"addEventListener",{get:function(e){return function(){return function(n,r,i){return"on"+n in t?t.attachEvent("on"+n,r,i):(n in e._EVENT_HANDLERS||(e._EVENT_HANDLERS[n]=[]),e._EVENT_HANDLERS[n].push(r))}}}(this)}):void 0},dispatchEvent:function(e,t,n){var r,i,o,s,a,u,l;if(a=a||{bubbles:!1,cancelable:!1,detail:n},"function"==typeof CustomEvent)r=new CustomEvent(t,a);else if(document.createEvent)try{r=document.createEvent("CustomEvent"),r.initCustomEvent(t,a.bubbles,a.cancelable,a.detail)}catch(c){r=document.createEvent("Event"),r.initEvent(t,a.bubbles,a.cancelable)}else r=document.createEventObject(),r.eventType=t,r.detail=a.detail;if(e.dispatchEvent)return e.dispatchEvent(r);if(e.fireEvent){if("on"+t in e)return e.fireEvent("on"+t,r);if(t in this._EVENT_HANDLERS){for(u=this._EVENT_HANDLERS[t],l=[],o=0,s=u.length;s>o;o++)i=u[o],l.push(i(t));return l}}}}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},375:function(e,t,n){var r;r=function(){var e,t,r,i,o;return t=n(4),r=n(376),o=n(377),i=n(11).get("API"),e=function(){function e(){var e;e=t.get("api"),e!==!1&&(this.api=("location"===e?r:o).init())}return e.prototype.api=null,e.prototype.postMessage=function(e,n){var r;return r="event="+e,t.get("id")&&(r+="&id="+t.get("id")),n&&(r+="&"+$.param(n)),this.api.postMessage(r)},e}()}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},376:function(e,t,n){var r;(function(i){r=function(){var e,t,r,o;return t=n(4),o=n(11).get("API"),r=null,e={init:function(){return r||(r=t.window()),this.messageQueue=[],this.messageQueueTimer=null,r.player=t.rootNode(),this},postMessage:function(e){return/event=qualitiesavailable.*/.test(e)?void 0:i.nextTick(function(t){return function(){var n;t.messageQueue.push(e),t.messageQueueTimer||(n=t,t.messageQueueTimer=r.setInterval(function(){n.unqueueMessage()},0))}}(this))},unqueueMessage:function(){var e;return e=this.messageQueue.shift(),0===this.messageQueue.length&&(this.messageQueueTimer=r.clearInterval(this.messageQueueTimer)),r.location.href="dmevent://none?"+e},destroy:function(){return r=null,this.messageQueue=[],this.messageQueueTimer=null}}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}).call(t,n(3))},377:function(e,t,n){var r,i=[].slice;r=function(){var e,t,r,o;return t=n(4),o=n(11).get("API"),r=null,e={init:function(){return r||(r=t.window()),this.origin=t.get("origin")||"*",this.rootNode=t.rootNode(),$(r).on("message",function(e){return function(){var t;return t=1<=arguments.length?i.call(arguments,0):[],e.receiveMessage.apply(e,t)}}(this)),this},postMessage:function(e){return r.parent.postMessage(e,this.origin)},receiveMessage:function(e){var t,n,o,s,a,u,l,c,E;if(e=null!=e?e.originalEvent:void 0,e&&e.source===r.parent&&("*"===this.origin||e.origin===this.origin)&&e.data&&("string"!=typeof e.data||!e.data.match(/^event=/))){if("object"==typeof e.data)u=e.data,t=u.command,a=u.parameters,null==a&&(a=[]),this.rootNode.api("--api-warning",{mode:"postMessage",deprecated:"object"});else if("string"==typeof e.data)try{l=JSON.parse(e.data),t=l.command,a=l.parameters}catch(o){n=o,c=e.data.split("="),t=c[0],s=c[1],a=s?[s]:[],this.rootNode.api("--api-warning",{mode:"postMessage",deprecated:"string"})}return(E=this.rootNode).api.apply(E,[t].concat(i.call(a))),!1}}}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},378:function(e,t,n){var r;r=function(){var e,t,r;return r=n(4),e=n(7),t={detect:function(){return this.div&&0!==this.div.innerHTML.length&&0!==this.div.clientHeight||this.playerEmitter.trigger(e.AD_BLOCKER_DETECTED),null!=this.div&&$.contains(document.body,this.div)&&document.body.removeChild(this.div),this.playerEmitter.off(e.VIDEO_START,this.boundDetect)},init:function(t){return this.playerEmitter=t,this.div=document.createElement("div"),this.div.className="ad_box",this.div.innerHTML=" ",this.div.style.position="absolute",this.div.style.top=0,this.div.style.left=0,document.body.appendChild(this.div),this.boundDetect=this.detect.bind(this),this.playerEmitter.on(e.VIDEO_START,this.boundDetect)}}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},379:function(e,t,n){var r;r=function(){var e,t,r,i;return t=n(4),e=n(7),r=n(10).get("Bootstrapper"),i={init:function(n,i){var o,s,a,u,l,c;return this.player=n,this.playerEmitter=i,t.isGKEnabled("PV5_AD_PAUSE")&&t.metadata("advertising.player.ad_pause",!1)?(u=!1,o=t.window().document,l=function(){switch(!1){case null==o.hidden:return["hidden","visibilitychange"];case null==o.webkitHidden:return["webkitHidden","webkitvisibilitychange"];case null==o.mozHidden:return["mozHidden","mozvisibilitychange"];case null==o.msHidden:return["msHidden","msvisibilitychange"];default:return[null,null]}}(),a=l[0],c=l[1],null!=a?(r.log("Tab focus detection supported"),s=function(n){return function(){if(t.window().document[a]){if(u=n.player.paused,!u)return n.playerEmitter.trigger(e.PAUSE_REQUESTED)}else if(!u)return n.playerEmitter.trigger(e.PLAY_REQUESTED)}}(this),this.playerEmitter.on(e.AD_STARTED,function(e,t){return"linear"===t.type?$(o).on(c,s):void 0}),this.playerEmitter.on(e.AD_STOPPED,function(){return $(o).off(c,s)})):r.log("Tab focus detection not supported")):void 0}}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},380:function(e,t,n){var r;r=function(){var e,t,r,i,o;return i=n(4),e=n(7),r=n(183),t=n(6).PLAYER_ERR_EB_BLOCKED,o={init:function(t){return this.playerEmitter=t,this.playerEmitter.on(e.ERROR_PLAYER,this.onPlayerError)},onPlayerError:function(e,n){return n.error===t?$.ajax({url:"/ac/video/"+i.metadata("id")+"?"+r.obfuscate("route=event&event=ebblocked"),xhrFields:{withCredentials:!0}}):void 0},destroy:function(){return this.playerEmitter.off(e.ERROR_PLAYER,this.onPlayerError),this.playerEmitter=null}}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},381:function(e,t,n){var r;r=function(){var e,t,r,i;return r=n(4),e=n(7),t=n(10),i={loaded:!1,logger:t.get("HapYak"),init:function(t,n){return this.player=t,this.playerEmitter=n,this.playerEmitter.on(e.VIDEO_SELECTED,function(e){return function(t,n){return e.playing=!1,e.overlaySize={left:0,top:0,width:0,height:0},e.duration=r.metadata("duration")}}(this)),this.playerEmitter.on(e.VIDEO_PLAY,this.setPlay.bind(this)),this.playerEmitter.on(e.VIDEO_PAUSE,this.setPause.bind(this)),this.playerEmitter.on(e.VIDEO_OVERLAY_SIZE_CHANGED,this.setOverlay.bind(this)),this.playerEmitter.on(e.ANNOTATIONS_CHANGE_REQUESTED,function(e){return function(t,n){if(null!=n.overlayData&&e.setOverlay.bind(e,n.overlayData),null!=n.visible)return n.visible?e.showAnnotations():e.hideAnnotations();if(null!=n.state)switch(n.state){case"toggle":return e.viewer?e.disableAnnotations():e.enableAnnotations();case"enable":return e.enableAnnotations();case"disable":return e.disableAnnotations()}}}(this))},setPause:function(e,t){return this.playing=!1},setPlay:function(e,t){return this.playing=!0},setOverlay:function(e,t){return this.overlaySize=t},hideAnnotations:function(){return $(".hapyak-root-box").hide()},showAnnotations:function(){return $(".hapyak-root-box").show()},disableAnnotations:function(){return this.viewer?this.destroyViewer():this.playerEmitter.trigger(e.ANNOTATIONS_CHANGE_CONFIRMED,{enabled:!1})},enableAnnotations:function(){return this.viewer?this.playerEmitter.trigger(e.ANNOTATIONS_CHANGE_CONFIRMED,{enabled:!0}):this.hasAnnotations()},hasAnnotations:function(){return r.get("annotations")?this.loaded?this.setHapyakViewer():this.loadHapyak():void 0},loadHapyak:function(){var e;return e=document.createElement("script"),e.src=r.getDependencyURL("hapyak"),e.onload=function(e){return function(){return e.loaded=!0,e.setHapyakViewer()}}(this),document.body.appendChild(e)},setHapyakViewer:function(){var t,n,i;return t=r.get("annotations"),this.logger.log("init viewer",t),this.hyPlayerObj={minimalRootCss:!0,play:function(t){return function(){return t.player.triggerToPlayer(e.PLAY_REQUESTED)}}(this),pause:function(t){return function(){return t.player.triggerToPlayer(e.PAUSE_REQUESTED)}}(this),currentTime:function(t){return function(n){return t.player.triggerToPlayer(e.SEEK_REQUESTED,{time:n})}}(this),element:this.player._rootNode_,x:this.overlaySize.left,y:this.overlaySize.top,videoWidth:this.overlaySize.width,videoHeight:this.overlaySize.height,width:400,height:400,duration:r.metadata("duration")},n={apiKey:"75debfb0ce714cd5ae1f",playerType:"skeleton",environment:"production",videoId:r.metadata().id,userId:t.reader_id,authorId:t.owner_id,player:this.hyPlayerObj,plugins:{cdn:{assets:{prefix:"http://hapyak.dmcdn.net/"},api:{prefix:"http://hapyak.dmcdn.net/",enabled:!0}}},onload:function(e){return function(t){return e.viewer=t,e.onload()}}(this),onLoadAnnotations:function(e){return function(){return e.logger.log("onLoadAnnotations"),e.onLoadAnnotations()}}(this)},(null!=(i=t.templates)?i["channel-promotion"]:void 0)&&(n.project={template:{tags:[t.templates["channel-promotion"].type]}},n.variables={channel:t.templates["channel-promotion"].channel}),hapyak.viewer(n)},onload:function(){var t,n,r,i,o,s,a,u,l;return r=function(e){return function(t,n){return e.viewer.dispatchEvent("timeupdate",n.time)}}(this),t=function(e){return function(t,n){return e.viewer.dispatchEvent("durationchange",n.duration)}}(this),l=function(e){return function(t,n){return e.viewer.dispatchEvent("volumechange",n.volume)}}(this),u=function(e){return function(){return e.viewer.dispatchEvent("seeking")}}(this),a=function(e){return function(){return e.viewer.dispatchEvent("seeked")}}(this),i=function(e){return function(){return e.viewer.dispatchEvent("ended")}}(this),s=function(e){return function(){return e.viewer.dispatchEvent("play")}}(this),o=function(e){return function(){return e.viewer.dispatchEvent("pause")}}(this),n=function(e){return function(t,n){return e.hyPlayerObj.x=Math.floor(n.left),e.hyPlayerObj.y=Math.floor(n.top),e.hyPlayerObj.videoWidth=Math.floor(n.width),e.hyPlayerObj.videoHeight=Math.floor(n.height),e.viewer.resize()}}(this),this.playerEmitter.on(e.VIDEO_TIME_UPDATE,r),this.playerEmitter.on(e.VIDEO_DURATION_CHANGE,t),this.playerEmitter.on(e.VIDEO_VOLUME_CHANGED,l),this.playerEmitter.on(e.VIDEO_SEEKING,u),this.playerEmitter.on(e.VIDEO_SEEKED,a),this.playerEmitter.on(e.VIDEO_ENDED,i),this.playerEmitter.on(e.VIDEO_PLAY,s),this.playerEmitter.on(e.VIDEO_PAUSE,o),this.playerEmitter.on(e.VIDEO_OVERLAY_SIZE_CHANGED,n),this.destroyViewer=function(c){return function(){var E,d;c.logger.log("clean viewer"),c.playerEmitter.off(e.VIDEO_TIME_UPDATE,r),c.playerEmitter.off(e.VIDEO_DURATION_CHANGE,t),c.playerEmitter.off(e.VIDEO_VOLUME_CHANGED,l),c.playerEmitter.off(e.VIDEO_SEEKING,u),c.playerEmitter.off(e.VIDEO_SEEKED,a),c.playerEmitter.off(e.VIDEO_ENDED,i),c.playerEmitter.off(e.VIDEO_PLAY,s),c.playerEmitter.off(e.VIDEO_PAUSE,o),c.playerEmitter.off(e.VIDEO_OVERLAY_SIZE_CHANGED,n);try{c.viewer.destroy()}catch(d){throw E=d,new Error("Hapyak error")}return c.viewer=null,c.playerEmitter.trigger(e.ANNOTATIONS_CHANGE_CONFIRMED,{enabled:!1})}}(this),this.playerEmitter.trigger(e.ANNOTATIONS_CHANGE_CONFIRMED,{enabled:!0})},onLoadAnnotations:function(){var e;if(null!=(e=this.viewer)?e.dispatchEvent:void 0)return this.logger.log("annotations loaded"),this.playing?(this.viewer.dispatchEvent("play"),this.logger.log("forward play event")):void 0}}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}})});