/*!CK:3426572715!*//*1427086744,*/ if (self.CavalryLogger) { CavalryLogger.start_js(["xWrym"]); } __d("VideoPlayerInitializationEvents",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();e.exports={PLAYER_INITIALIZATION:"player_initialization",PLAYER_ALLOCATED:"player_allocated",REQUESTED_PLAYING:"requested_playing",STARTED_PLAYING:"started_playing",PLAYER_SENT_REQUEST:"player_sent",PLAYER_RECEIVED_FIRST_BYTE:"player_received_first_byte",BUFFER_READY:"buffer_ready",METADATA_READY:"metadata_ready"};},null); __d("VideoPlayerLoggerEvents",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();e.exports={AUTOPLAY_PREFERENCE_CHANGED:"autoplay_preference_changed",END_STALL_TIME:"end_stall_time",AUTOPLAY_PREFERENCE_STATUS:"autoplay_preference_status",ERROR_ALERT_SHOWN:"video_error_alert_shown",NOT_AUTOPLAYING:"not_autoplaying",VIDEO_CHANNEL_NO_RELATED_VIDEO:"video_channel_no_related_video",VIDEO_ORIENTATION_CHANGED:"video_orientation_changed",ASSETS_LOADED:"assets_loaded",BUFFERED:"buffered",CANCELLED_REQUESTED_PLAYING:"cancelled_requested_playing",CAROUSEL_CHANGE:"carousel_change",DISPLAYED:"displayed",ENTERED_HD:"entered_hd",ENTERED_FALLBACK:"entered_fallback",ENTERED_FS:"entered_fs",EXITED_HD:"exited_hd",EXITED_FS:"exited_fs",ERROR:"error",FINISHED_PLAYING:"finished_playing",IMPRESSION:"impression",INVALID_URL:"invalid_url",MUTED:"muted",PAUSED:"paused",PLAY_REQUESTED:"play_requested",PLAYER_FORMAT_CHANGED:"player_format_changed",PLAYER_LOADED:"player_loaded",PROGRESS:"progress",READY_TO_PLAY:"ready_to_play",REPLAYED:"replayed",REQUESTED:"requested",REQUESTED_PLAYING:"requested_playing",SCRUBBED:"scrubbed",STARTED_PLAYING:"started_playing",STARTED_RECEIVING_BYTES:"started_receiving_bytes",STOPPED_PLAYING:"stopped_playing",UNMUTED:"unmuted",UNPAUSED:"unpaused",VOLUME_CHANGED:"volume_changed",VOLUME_DECREASE:"volume_decrease",VOLUME_INCREASE:"volume_increase",VIDEO_PLAYING:"video_playing",VIDEO_SKIP_AD:"video_skip_ad",VIDEO_CHAINING_IMPRESSION:"video_chaining_impression",PLAYING_LIVE_STARTED:"playing_live_started",PLAYING_LIVE_STOPPED:"playing_live_stopped",COMPLETION:"completion",VIEW:"view"};},null); __d("VideoPlayerLoggerSource",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();e.exports={ADS:"ads",ANIMATED_IMAGE_SHARE:"animated_image_share",BROADCAST_REQUEST_ATTACHMENT:"broadcast_request_attachment",EMBEDDED:"embedded",EMBEDDED_VIDEO:"embedded_video",HTML5:"html5",INLINE:"inline",CHAINED:"chained",CHAINED_SUGGESTION:"chained_suggestion",CHANNEL:"channel",INSIGHTS:"insights",LOOKBACK:"lookback",MESSAGING:"messaging",MISC:"misc",MOBILE:"mobile",PAGES_FINCH_MAIN_VIDEO:"pages_finch_main_video",PAGES_FINCH_THUMBNAIL_VIDEO:"pages_finch_thumbnail_video",PAGES_FINCH_TRAILER:"pages_finch_trailer",PAGES_VIDEO_SET:"pages_video_set",PERMALINK:"permalink",REPORT_FLOW:"report_flow",SNOWLIFT:"snowlift",TRAILER_OG_ATTACHMENT:"trailer_og_attachment",TRAILER_TIMELINE_COLLECTIONS:"trailer_timeline_collections",TRAILER_TIMELINE_UNIT:"trailer_timeline_unit",VIDEOHUB_PLAYLIST:"videohub_playlist",VIDEOHUB_FEATURED:"videohub_featured"};},null); __d("VideoPlayerVersions",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();e.exports={HTML5:"html5",SILVERCITY:"silvercity",PLEASANTVILLE:"pleasantville"};},null); __d("HVideoPlayerMixin",["EventListener","VideoPlayerLoggerEvents"],function(a,b,c,d,e,f,g,h){b.__markCompiled&&b.__markCompiled();var i=-1,j={initLogger:function(k){var l=this.getSubscriptions();this._loggedEvents={};this._logFunction=k;var m=this.getVideoElement();this._lastStartTimePosition=i;this._muted=m.muted;this._pausedPosition=i;this._seeking=false;this._seekSourceTimePosition=i;this._volume=m.volume;this._lastPlayedTime=i;if(m.readyState>=m.HAVE_FUTURE_DATA){this._logReadyToPlay();}else l.addSubscriptions(g.listen(m,'canplay',this._logReadyToPlay.bind(this)));l.addSubscriptions(g.listen(m,'pause',this._onPause.bind(this)),g.listen(m,'playing',this._onPlay.bind(this)),g.listen(m,'seeked',this._onSeeked.bind(this)),g.listen(m,'seeking',this._onSeeking.bind(this)),g.listen(m,'timeupdate',this._onTimeUpdate.bind(this)),g.listen(m,'volumechange',this._onVolumeChange.bind(this)));},_logOnce:function(event,k){if(this._loggedEvents[event])return;this._logEvent(event,k);},_logEvent:function(event,k){this._loggedEvents[event]=true;var l=k?k:{};l.video_id=this.getVideoID();if(!l.hasOwnProperty('video_time_position'))l.video_time_position=this.getVideoElement().currentTime;l.time=Math.round(Date.now()/1000);if(this.getAdClientToken){var m=this.getAdClientToken();if(m)l.ad_client_token=m;}this._logFunction(event,l);},_logReadyToPlay:function(){this._logOnce(h.READY_TO_PLAY);},_onPause:function(k){var l=this.getVideoElement(),event=l.ended?h.FINISHED_PLAYING:h.PAUSED,m=this._lastPlayedTime,n=k.lastPauseReason;if(event===h.FINISHED_PLAYING){m=Math.max(m,l.duration);}else if(this.preventPauseLoggingInMixin===true){return;}else if(this.preventPauseLoggingInMixin===false)n=n||'unloaded';this._logEvent(event,{video_last_start_time_position:this._lastStartTimePosition===i?this._lastPlayedTime:this._lastStartTimePosition,video_time_position:m,reason:n});this._lastStartTimePosition=i;},addWatchTimeData:function(k){if(this._lastStartTimePosition!=i&&this._lastPlayedTime!=i){k.video_last_start_time_position=this._lastStartTimePosition;k.video_time_position=this._lastPlayedTime;this._lastStartTimePosition=i;}return k;},getLastPlayReason:function(){return null;},getVideoPlayReason:function(){return null;},_onPlay:function(){var k=this.getLastPlayReason(),event=this._loggedEvents[h.STARTED_PLAYING]?h.UNPAUSED:h.STARTED_PLAYING,l={reason:k,video_play_reason:this.getVideoPlayReason()};this._logEvent(event,l);this._lastStartTimePosition=this.getVideoElement().currentTime.toFixed(2);this._lastPlayedTime=this.getVideoElement().currentTime.toFixed(2);},_onSeeked:function(){var k={video_seek_source_time_position:this._seekSourceTimePosition};if(this._lastStartTimePosition!==i){k.video_last_start_time_position=this._lastStartTimePosition;}else k.video_last_start_time_position=this._seekSourceTimePosition;this._logEvent(h.SCRUBBED,k);var l=this.getVideoElement();if(l.paused){this._lastStartTimePosition=i;}else this._lastStartTimePosition=l.currentTime;this._seekSourceTimePosition=i;this._seeking=false;},_onSeeking:function(){if(!this._seeking){this._seekSourceTimePosition=this.getVideoElement().currentTime.toFixed(2);this._seeking=true;}},_onTimeUpdate:function(){var k=this.getVideoElement();if(!k.paused)this._lastPlayedTime=k.currentTime.toFixed(2);},_onVolumeChange:function(){var k=this.getVideoElement(),l={},event=null;if(k.muted!==this._muted&&k.volume===this._volume&&k.volume>0){event=k.muted?h.MUTED:h.UNMUTED;}else{event=k.volume>this._volume?h.VOLUME_INCREASE:h.VOLUME_DECREASE;l.current_volume=k.volume;}this._logEvent(event,l);this._muted=k.muted;this._volume=k.volume;}};e.exports=j;},null); __d("VideoPlayerLoggerErrors",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();e.exports={ENTERED_FALLBACK:'entered_fallback',ERROR_CALLING_FLASH:'error_calling_flash'};},null); __d("VideoPlayerLoggerErrorStates",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();e.exports={PLAYBACK_FAILURE:'playback_failure',PLAYER_FAILURE:'player_failure'};},null); __d("VideoPlayerLoggerFallbackReasons",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();e.exports={TIMEOUT:'timeout',FLASH_ERROR:'flash_error',FLASH_UNAVAILABLE:'flash_unavailable'};},null); __d("VideoPlayerLoggerPlayerStates",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();e.exports={STARTED:'started',UNPAUSED:'unpaused'};},null); __d("VideoPlayerLogger",["Banzai","ErrorUtils","TimeSpentImmediateActiveSecondsLogger","VideoPlayerLoggerEvents","VideoPlayerLoggerErrors","VideoPlayerLoggerErrorStates","VideoPlayerLoggerFallbackReasons","VideoPlayerLoggerSource","VideoPlayerInitializationEvents","VideoPlayerLoggerPlayerStates","copyProperties","ex"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){b.__markCompiled&&b.__markCompiled();var s='video_player';function t(u,v){"use strict";this.$VideoPlayerLogger0=u;this.$VideoPlayerLogger1=null;this.$VideoPlayerLogger2={};this.$VideoPlayerLogger3=v;this.$VideoPlayerLogger4=0;this.$VideoPlayerLogger5();}t.prototype.logEvent=function(event,u){"use strict";q(u,this.$VideoPlayerLogger3);if(this.$VideoPlayerLogger2.hasOwnProperty(event)){u.initial_event=false;}else u.initial_event=this.$VideoPlayerLogger2[event]=true;if(!u.hasOwnProperty('time_ms'))u.time_ms=Date.now();if(!u.hasOwnProperty('time'))u.time=Math.round(u.time_ms/1000);if(this.$VideoPlayerLogger1)q(u,this.$VideoPlayerLogger1);switch(event){case o.PLAYER_INITIALIZATION:this.$VideoPlayerLogger6=u.time_ms;break;case o.REQUESTED_PLAYING:case o.STARTED_PLAYING:case o.PLAYER_ALLOCATED:case o.PLAYER_SENT_REQUEST:case o.PLAYER_RECEIVED_FIRST_BYTE:case o.BUFFER_READY:case o.METADATA_READY:if(!u.initial_event)break;u.elapsed_time_since_init=Date.now()-this.$VideoPlayerLogger6;break;}switch(event){case j.REQUESTED_PLAYING:this.$VideoPlayerLogger5();this.$VideoPlayerLogger7();this.$VideoPlayerLogger8=true;if(this.$VideoPlayerLogger2[j.STARTED_PLAYING]){u.state=p.UNPAUSED;}else u.state=p.STARTED;break;case j.STARTED_PLAYING:case j.UNPAUSED:case j.FINISHED_PLAYING:case j.CANCELLED_REQUESTED_PLAYING:case j.ERROR:case j.PAUSED:if(event===j.ERROR&&u.state!==l.PLAYBACK_FAILURE)break;if(event===j.CANCELLED_REQUESTED_PLAYING)if(this.$VideoPlayerLogger2[j.STARTED_PLAYING]){u.state=p.UNPAUSED;}else u.state=p.STARTED;if(this.$VideoPlayerLogger8)this.$VideoPlayerLogger9();this.$VideoPlayerLoggera(u);this.$VideoPlayerLogger5();break;}var v={logData:u,event:event,scriptPath:this.$VideoPlayerLoggerb,source:this.$VideoPlayerLogger0};if(!event)h.reportError(new Error(r('VideoPlayerLogger: Missing event name')),false);if(this.$VideoPlayerLogger0===n.ANIMATED_IMAGE_SHARE)return;if(u.ad_client_token){g.post(s,v,g.VITAL);}else g.post(s,v);if(event===j.FINISHED_PLAYING||event===j.PAUSED){var w=u.time_ms||Date.now(),x=u.video_time_position-u.video_last_start_time_position;if(x>=0)i.maybeReportActiveInterval('video',w-Math.floor(x*1000),w);}};t.prototype.setScriptPath=function(u){"use strict";this.$VideoPlayerLoggerb=u;};t.prototype.setFTData=function(u){"use strict";this.$VideoPlayerLogger1=u;};t.prototype.startBuffering=function(){"use strict";this.$VideoPlayerLogger7();};t.prototype.endBuffering=function(){"use strict";if(this.$VideoPlayerLoggerc>0)this.$VideoPlayerLogger9();};t.prototype.$VideoPlayerLogger7=function(){"use strict";this.$VideoPlayerLoggerc=Date.now();};t.prototype.$VideoPlayerLogger9=function(){"use strict";var u=(Date.now()-this.$VideoPlayerLoggerc);this.$VideoPlayerLoggerd=this.$VideoPlayerLoggerd+u;this.$VideoPlayerLogger4=this.$VideoPlayerLogger4+u;this.$VideoPlayerLoggere++;};t.prototype.getCurrentStallTime=function(){"use strict";return this.$VideoPlayerLogger4;};t.prototype.$VideoPlayerLoggera=function(u){"use strict";u.stall_time=Math.max(0,this.$VideoPlayerLoggerd);u.stall_count=this.$VideoPlayerLoggere;};t.prototype.$VideoPlayerLogger5=function(){"use strict";this.$VideoPlayerLoggerd=0;this.$VideoPlayerLoggerc=0;this.$VideoPlayerLoggere=0;this.$VideoPlayerLogger8=false;};q(t,{Sources:n,Errors:k,FallbackReasons:m,ErrorStates:l,PlayerStates:p});e.exports=t;},null); __d("XPubcontentRelatedVideoInlineController",["XController"],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();e.exports=b("XController").create("\/pubcontent\/related_video_inline\/",{fbvideo_id:{type:"Int",required:true},root_video_id:{type:"Int"}});},null); __d("EntstreamAttachmentRelatedFBVideo",["Arbiter","AsyncRequest","AttachmentRelatedShareConstants","csx","cx","CSS","DOM","DOMQuery","Event","ge","Parent","VideoPlayerReason","XPubcontentRelatedVideoInlineController"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){b.__markCompiled&&b.__markCompiled();var t={addHoverListener:function(u,v){var w=p(v),x=m.scry(w,"^div._3f-c")[0];o.listen(x,'mouseover',this.doHover.bind(this,u));o.listen(x,'mouseout',this.doHoverOut.bind(this,u));},addClickOutListener:function(u,v){var w=p(v);o.listen(w,'click',this.doHoverOut.bind(this,u));},doHover:function(u){u.play(r.USER);u.mute();},doHoverOut:function(u,v){u.pause(r.USER);},loadRelatedLSCInlineFBVideoAttachmentInRelatedCard:function(u,v,w,x,y,z){var aa=null;if(typeof v==='string'){aa=p(v);}else aa=v;if(!aa)return;var ba=null;if(typeof u==='string'){ba=p(u);}else ba=u;if(!ba)return;o.listen(ba,'click',function(event){var ca=event.srcElement?event.srcElement:event.target;if(ca)for(var da in z){var ea=p(z[da]);if(ea&&n.contains(ea,ca))return;}if(event.isDefaultRequested())return;event.preventDefault();var fa=null;if(y){var ga=m.scry(aa,"^ul._5h5a")[0];if(!ga)return;fa=ga.previousSibling;}else fa=ba.children[0];setTimeout(function(){var ha=s.getURIBuilder();ha.setInt('fbvideo_id',w);ha.setInt('root_video_id',x);new h().setURI(ha.getURI()).setRelativeTo(fa).send();},1000);});},loadRelatedLSCInlineFBVideoAttachment:function(u,v,w){var x=null;if(!x)return;o.listen(x,'click',function(event){if(event.isDefaultRequested())return;event.preventDefault();var y="^div._4-u2",z="_4zdu",aa=m.scry(x,y),ba=aa.length===1?aa[0]:null,ca=ba.parentNode,da=ca.previousSibling;while(!da){ca=ca.parentNode;da=ca.previousSibling;}if(!l.hasClass(da,z)){var ea=m.create('div',{className:z}),fa=m.insertBefore(ba.parentNode,ea),ga=fa.length>=1?fa[0]:null;}else ga=da;if(ga.childNodes[0])l.hide(ga.childNodes[0]);var ha="div._4icy",ia=m.scry(ca,ha)[0];if(ia){var ja="_4icx";l.setClass(ia,ja);}setTimeout(function(){var ka=s.getURIBuilder();ka.setInt('fbvideo_id',v);new h().setURI(ka.getURI()).setRelativeTo(ga).send();if(w)g.inform(i.FBVIDEO_CLICK,{attachment:x,fbvideo_id:v,continued_chaining:true});if(ia)if(w){m.remove(ia);}else l.setClass(ia,"_4icy");},1000);});},loadRelatedFBVideos:function(u,v){var w=p(u);if(!w)return;var x="_4zdu",y=q.byClass(w,x);if(y)return;var z=o.listen(w,'click',function(){z.remove();g.inform(i.FBVIDEO_CLICK,{attachment:w,fbvideo_id:v});});}};e.exports=t;},null); __d("flash-js",["copyProperties"],function(a,b,c,d,e,f,g){b.__markCompiled&&b.__markCompiled();function h(){}g(h,{INIT:'flash/init',READY:'flash/ready',FAILED:'flash/failed'});e.exports=h;},null); __d("legacy:flash-js",["flash-js"],function(a,b,c,d){b.__markCompiled&&b.__markCompiled();a.Flash=b('flash-js');},3); __d("getLayoutRoot",["DOMQuery","csx"],function(a,b,c,d,e,f,g,h){b.__markCompiled&&b.__markCompiled();var i=null;function j(){if(!i)i=g.scry(document.body,"._li")[0];return i;}e.exports=j;},null); __d("SpotlightViewerUnmountOnClose",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();function g(h){"use strict";this.$SpotlightViewerUnmountOnClose0=h;}g.prototype.enable=function(){"use strict";this.$SpotlightViewerUnmountOnClose1=this.$SpotlightViewerUnmountOnClose0.subscribeOnce('close',this.$SpotlightViewerUnmountOnClose0.unmountComponent.bind(this.$SpotlightViewerUnmountOnClose0));};g.prototype.disable=function(){"use strict";this.$SpotlightViewerUnmountOnClose1&&this.$SpotlightViewerUnmountOnClose1.unsubscribe();delete this.$SpotlightViewerUnmountOnClose1;};e.exports=g;},null); __d("CurationCaretNux",["csx","cx","ge","tidyEvent","AsyncRequest","CSS","DataStore","DOM","Event","Parent","Rect"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){b.__markCompiled&&b.__markCompiled();var r="div._1zpr",s="_5jmm",t='CurationCaretNux_instance',u='CurationCaretNux_caretMenuLoaded',v=100,w="caret_nux",x="save_option_nux",y="seen",z="dismissed",aa="focus",ba="click",ca="scroll",da=false;function ea(fa,ga,ha,ia){"use strict";var ja=i(ia);if(ja){this.container=ja;this.caret=ha;this.caretNux=fa.instance;this.caretNuxData=fa;this.saveOptionNux=ga.instance;this.saveOptionNuxData=ga;this.popoverTriggered=false;var ka=p.byClass(ja,s);m.set(ka,t,this);this.$CurationCaretNux0();}}ea.prototype.$CurationCaretNux0=function(){"use strict";var fa=n.scry(this.container,r);if(fa.length>0)j([o.listen(fa[0],'click',function(){if(da)return;this.caretNux.subscribe('show',function(){this.$CurationCaretNux1();}.bind(this));this.caretNux.subscribe('hide',function(){this.$CurationCaretNux2();if(da){this.$CurationCaretNux3(w,y);this.$CurationCaretNux3(w,z);}}.bind(this));this.$CurationCaretNux4();this.interactionTime=0;setTimeout(function(){if(!this.$CurationCaretNux5()){da=true;this.caretNux.show();}}.bind(this),this.caretNuxData.min_consume_duration);setTimeout(function(){if(!this.$CurationCaretNux5()){da=false;this.caretNux.hide();}}.bind(this),this.caretNuxData.max_consume_duration);var ga=Date.now();setTimeout(function(){this.$CurationCaretNux6(function(){if(!this.interactionTime)this.interactionTime=Date.now()-ga;}.bind(this));}.bind(this),0);}.bind(this))]);};ea.prototype.$CurationCaretNux5=function(){"use strict";return this.interactionTime&&this.interactionTime>0;};ea.prototype.$CurationCaretNux1=function(){"use strict";this.caretClickListener=o.listen(this.caret,'click',function(){this.caretNux.hide();if(this.saveOptionNux){this.popoverTriggered=true;this.$CurationCaretNux7();}}.bind(this));var fa=false;this.$CurationCaretNux6(function(ga){if(fa||ga===ba||!this.caretNux.isShown())return;var ha=q.getViewportWithoutScrollbarsBounds(),ia=q.getElementBounds(this.caretNux.getContentRoot());ia=ia.sub(0,v);if(ha.contains(ia)){this.$CurationCaretNux3(w,y);fa=true;}}.bind(this));};ea.prototype.$CurationCaretNux2=function(){"use strict";this.caretClickListener.remove();this.$CurationCaretNux8();};ea.prototype.$CurationCaretNux7=function(){"use strict";if(this.$CurationCaretNux9()&&this.popoverTriggered)setTimeout(function(){var fa=n.scry(document,"li.save_caret_menu_item");for(var ga=0;ga1){var t=g.getViewportDimensions().height/2;q.forEach(function(u){if(!u.isAutoplayable())return;var v=u.getDOMPosition(),w=v.y+v.height/2,x=Math.abs(w-t);u.playPriority=x;if(!s||u.playPriority=0&&ka1;};ga.prototype.$VideoInlinePlayerControllern=function(){"use strict";if(this.$VideoInlinePlayerControllerd())this.$VideoInlinePlayerController6.nextVideo();this.$VideoInlinePlayerControllert();};ga.prototype.handleFlashApiFactoryError=function(ha,ia){"use strict";fa.handleFlashApiFactoryError.call(this,ha,ia);this.$VideoInlinePlayerControllerg(true,w.FLASH_ERROR);};ga.prototype.$VideoInlinePlayerControllert=function(){"use strict";this.$VideoInlinePlayerControllerh=true;};ga.prototype.$VideoInlinePlayerControllero=function(){"use strict";this.$VideoInlinePlayerControllert();};ga.prototype.$VideoInlinePlayerControllerk=function(){"use strict";this.$VideoInlinePlayerControlleru();this.$VideoInlinePlayerControllerv();this.$VideoInlinePlayerControllerw();this.$VideoInlinePlayerControllerx();this.$VideoInlinePlayerControllery();this.$VideoInlinePlayerControllerz();};ga.prototype.getDOMPosition=function(){"use strict";return this.$VideoInlinePlayerController6.getDOMPosition();};ga.prototype.pause=function(ha){"use strict";this.$VideoInlinePlayerController6.pause(ha);};ga.prototype.$VideoInlinePlayerControlleru=function(){"use strict";if(this.$VideoInlinePlayerController9('fallback')){this.$VideoInlinePlayerController3.release();var ha=this.$VideoInlinePlayerController1;j.remove(this.$VideoInlinePlayerController6.getVideoNode());j.replace(ha.video_container,ha.fallback_link);j.appendContent(ha.fallback_link,ha.video_container);}};ga.prototype.$VideoInlinePlayerControllerx=function(){"use strict";if(this.$VideoInlinePlayerController9('fallback')||(this.$VideoInlinePlayerController9('loading')&&!this.$VideoInlinePlayerController6.isPlayRequestPending()&&!this.$VideoInlinePlayerController5&&!this.isAutoplayable())||((this.$VideoInlinePlayerController9('ready')||this.$VideoInlinePlayerController9('paused'))&&!this.$VideoInlinePlayerController6.isPlayRequestPending())){i.addClass(this.$VideoInlinePlayerController1.play_icon,"_5vos");}else if(this.$VideoInlinePlayerController9('finished')){if(!this.$VideoInlinePlayerControllerf()){return;}else if(!this.$VideoInlinePlayerControllerd())i.addClass(this.$VideoInlinePlayerController1.play_icon,"_5vos");}else if(!this.$VideoInlinePlayerController9('finished')||!this.$VideoInlinePlayerControllerd()){i.removeClass(this.$VideoInlinePlayerController1.play_icon,"_5vos");i.removeClass(this.$VideoInlinePlayerController1.play_icon,"_5vov");}};ga.prototype.$VideoInlinePlayerControllery=function(){"use strict";if(this.$VideoInlinePlayerController6.isBuffering()||(this.$VideoInlinePlayerController9('loading')&&(this.$VideoInlinePlayerController5||this.isAutoplayable()))||(this.$VideoInlinePlayerController9('ready')&&this.$VideoInlinePlayerController6.isPlayRequestPending())){i.show(this.$VideoInlinePlayerController1.spinner);}else i.hide(this.$VideoInlinePlayerController1.spinner);};ga.prototype.$VideoInlinePlayerControllerz=function(){"use strict";if(!this.$VideoInlinePlayerController1.thumbnails)return;if(this.$VideoInlinePlayerController9('playing')||this.$VideoInlinePlayerController9('paused')){this.$VideoInlinePlayerController1.thumbnails.forEach(function(ha){i.hide(ha);});}else i.show(this.$VideoInlinePlayerController1.thumbnails[this.$VideoInlinePlayerControlleri()]);};ga.prototype.$VideoInlinePlayerControllerw=function(){"use strict";if(!this.$VideoInlinePlayerControllerd())return;var ha=this.$VideoInlinePlayerController1.pivotThumbs;ha.forEach(function(ja){i.removeClass(ja,"_5vlu");i.removeClass(ja,"_5vou");i.addClass(ja,"_5vot");});i.removeClass(this.$VideoInlinePlayerController1.pivotReplayText,"_5vm5");i.removeClass(this.$VideoInlinePlayerController1.pivotNextText,"_5vm5");if(this.$VideoInlinePlayerController9('finished')){var ia=ha[this.$VideoInlinePlayerControllerA()];i.removeClass(ia,"_5vot");i.addClass(ia,"_5vlu");setTimeout(function(){if(!this.$VideoInlinePlayerController9('finished'))return;i.addClass(ia,"_5vou");i.addClass(this.$VideoInlinePlayerController1.pivotReplayText,"_5vm5");i.addClass(this.$VideoInlinePlayerController1.pivotNextText,"_5vm5");i.addClass(this.$VideoInlinePlayerController1.play_icon,"_5vov");}.bind(this),ca);}};ga.prototype.$VideoInlinePlayerControllerv=function(){"use strict";if(!this.$VideoInlinePlayerControllerd())return;var ha=this.$VideoInlinePlayerController1.story_footers;for(var ia=0;ia1)r+=Number(t[t.length-2])*60;if(t.length>2)r+=Number(t[t.length-3])*3600;return r;}function h(q){var r=q.split(/\r\n|\r|\n/).map(function(w){return w.trim();}),s=[],t=0;do{var u=r.indexOf('',t);if(u<0)u=r.length;var v=j(r.slice(t,u));if(v)s.push(v);t=u+1;}while(t>0&&t');if(r.length!=2)return null;var s=g(r[0].trim()),t=g(r[1].trim());if(Number.isNaN(t)||Number.isNaN(s))return null;return {begin:s,end:t};}function j(q){if(q.length<3)return null;var r=k(q[0]),s=i(q[1]);if(!s)return null;return {counter:r,begin:s.begin,end:s.end,text:q.slice(2,6)};}function k(q){return Number(q.trim());}function l(q){var r=q.split('.');if(r[0].length<2)return "0"+r.join('.');return r.join('.');}function m(q){var r=l(Math.floor(q/3600).toString()),s=l(Math.floor(q%3600/60).toString()),t=l((q%60).toFixed(3));return (r+":"+s+":"+t);}function n(q){return (q.counter+"\n"+m(q.begin)+" --> "+m(q.end)+"\n"+q.text.join('\n')+"\n");}function o(q){return ("WEBVTT\n\n"+q.map(function(r){return n(r);}).join('\n'));}function p(q){"use strict";this.$SubRipText0=h(q);this.$SubRipText0.sort(function(r,s){return r.counter-s.counter;});this.$SubRipText1=this.$SubRipText0.map(function(r,s){return s;}).sort(function(r,s){return this.$SubRipText0[r].begin-this.$SubRipText0[s].begin;}.bind(this));this.invalidateCache();}p.prototype.$SubRipText2=function(q){"use strict";return this.$SubRipText0[this.$SubRipText1[q]];};p.prototype.$SubRipText3=function(q){"use strict";var r=this.$SubRipText4;while(rq;});};p.prototype.invalidateCache=function(){"use strict";this.$SubRipText7=0;this.$SubRipText5=[];this.$SubRipText4=0;};p.prototype.getSubtitles=function(q){"use strict";if(q=h.HAVE_FUTURE_DATA;}function l(m,n){i(m instanceof window.HTMLMediaElement);if(k(m.readyState))j(n);return g.listen(m,'canplay',n);}l.once=function(m,n){var o=l(m,function(){for(var p=[],q=0,r=arguments.length;q=n.HAVE_METADATA){return ma.muted;}else return !!ma.getAttribute('muted')||ma.muted;}var ha=-1,ia=w(g,z(o));for(var ja in ia)if(ia.hasOwnProperty(ja))la[ja]=ia[ja];var ka=ia===null?null:ia.prototype;la.prototype=Object.create(ka);la.prototype.constructor=la;la.__superConstructor__=ia;function la(ma){"use strict";ka.constructor.call(this);this.$VideoPlayerHTML5Api0=ma;this.$VideoPlayerHTML5Api1=ma.id;var na=l.getElementDimensions(this.$VideoPlayerHTML5Api0);this.$VideoPlayerHTML5Api2=na.width;this.$VideoPlayerHTML5Api3=na.height;this.$VideoPlayerHTML5Api4=JSON.parse(ma.getAttribute('data-config'));this.$VideoPlayerHTML5Api5={};this.$VideoPlayerHTML5Api6=ha;this.$VideoPlayerHTML5Api7=ga(ma);this.$VideoPlayerHTML5Api8=this.$VideoPlayerHTML5Api7;this.$VideoPlayerHTML5Api9=ma.volume;this.$VideoPlayerHTML5Apia=false;this.$VideoPlayerHTML5Apib=ha;this.$VideoPlayerHTML5Apic=null;this.$VideoPlayerHTML5Apid=false;this.$VideoPlayerHTML5Apie=this.$VideoPlayerHTML5Api4.disableNativeControls;this.$VideoPlayerHTML5Apif=ma.controls;this.$VideoPlayerHTML5Apig=this.$VideoPlayerHTML5Api4.subtitlesActive;this.$VideoPlayerHTML5Apih={};this.restoreControls();this.preventPauseLoggingInMixin=false;this.$VideoPlayerHTML5Apii=new p();this.$VideoPlayerHTML5Apij();this.$VideoPlayerHTML5Apik=this.$VideoPlayerHTML5Api4.defaultHD;this.$VideoPlayerHTML5Apil=this.$VideoPlayerHTML5Api4.autoFullscreenHD;this.switchVideo(0);this.initLogger(this.$VideoPlayerHTML5Apim.bind(this));}la.prototype.getAdClientToken=function(){"use strict";this.$VideoPlayerHTML5Api4.ad_client_token;};la.prototype.getVideoID=function(){"use strict";if(this.$VideoPlayerHTML5Apin)return this.$VideoPlayerHTML5Apin.getVideoID();return this.$VideoPlayerHTML5Api4.video_id;};la.prototype.getDOMElement=function(){"use strict";return this.$VideoPlayerHTML5Api0;};la.prototype.getVideoElement=function(){"use strict";return this.$VideoPlayerHTML5Api0;};la.prototype.getSubscriptions=function(){"use strict";return this.$VideoPlayerHTML5Apii;};la.onImplementationReady=function(ma,na){"use strict";aa(na);};la.prototype.getVideoInfo=function(){"use strict";if(!this.$VideoPlayerHTML5Apin)return null;return {isHLS:this.$VideoPlayerHTML5Apin.isHLS(),isHD:this.$VideoPlayerHTML5Apik,hasHD:this.$VideoPlayerHTML5Apin.hasHD(),resourceUrl:this.$VideoPlayerHTML5Apio(),subtitles:this.$VideoPlayerHTML5Apin.hasSubtitles(),hasUnlimitedSrc:this.$VideoPlayerHTML5Apin.hasRateLimit(),useUnlimitedSrc:false,tagSD:this.$VideoPlayerHTML5Apin.getSDTag(),tagHD:this.$VideoPlayerHTML5Apin.getHDTag()};};la.isImplementationUnavailable=function(){"use strict";return !ca();};la.prototype.pause=function(ma){"use strict";this.$VideoPlayerHTML5Apic=ma;if(ma==='unloaded'&&!this.$VideoPlayerHTML5Api0.paused){this.$VideoPlayerHTML5Apim(s.PAUSED,this.addWatchTimeData({reason:'unloaded'}));this.preventPauseLoggingInMixin=true;}this.$VideoPlayerHTML5Apid=false;this.$VideoPlayerHTML5Api0.pause();};la.prototype.play=function(ma){"use strict";if(!this.$VideoPlayerHTML5Apip)this.$VideoPlayerHTML5Apip=ma;this.$VideoPlayerHTML5Apiq=ma;if(ma===t.USER&&this.$VideoPlayerHTML5Api8)this.unmute();this.$VideoPlayerHTML5Apid=true;if(!this.$VideoPlayerHTML5Api0.paused)return this.$VideoPlayerHTML5Apir();if(this.$VideoPlayerHTML5Api0.readyState>=n.HAVE_METADATA||this.$VideoPlayerHTML5Api0.currentTime>0){this.$VideoPlayerHTML5Api0.play();}else{ba.once(this.$VideoPlayerHTML5Api0,function(){if(this.$VideoPlayerHTML5Apid)this.$VideoPlayerHTML5Api0.play();}.bind(this));this.$VideoPlayerHTML5Apis();}};la.prototype.$VideoPlayerHTML5Apis=function(){"use strict";this.$VideoPlayerHTML5Api0.setAttribute('preload','auto');this.$VideoPlayerHTML5Api0.load();this.$VideoPlayerHTML5Api0.muted=this.$VideoPlayerHTML5Api7;};la.prototype.seek=function(ma){"use strict";this.$VideoPlayerHTML5Api0.currentTime=ma;};la.prototype.removeRotation=function(){"use strict";j.removeClass(this.$VideoPlayerHTML5Api0,"_56jr");j.removeClass(this.$VideoPlayerHTML5Api0,"_56js");j.removeClass(this.$VideoPlayerHTML5Api0,"_56jt");this.$VideoPlayerHTML5Api0.style.marginLeft='';this.$VideoPlayerHTML5Api0.style.marginTop='';this.$VideoPlayerHTML5Api0.style.width='';this.$VideoPlayerHTML5Api0.style.height='';};la.prototype.applyRotation=function(ma){"use strict";if(!ma)return;j.conditionClass(this.$VideoPlayerHTML5Api0,"_56jr",ma==90);j.conditionClass(this.$VideoPlayerHTML5Api0,"_56js",ma==180);j.conditionClass(this.$VideoPlayerHTML5Api0,"_56jt",ma==270);if(ma==180)return;var na=this.$VideoPlayerHTML5Api3,oa=this.$VideoPlayerHTML5Api2,pa=(na-oa)/2,qa=(oa-na)/2;this.$VideoPlayerHTML5Api0.style.marginLeft=qa+'px';this.$VideoPlayerHTML5Api0.style.marginTop=pa+'px';this.$VideoPlayerHTML5Api0.style.height=oa+'px';this.$VideoPlayerHTML5Api0.style.width=na+'px';};la.prototype.switchVideo=function(ma){"use strict";if(!this.$VideoPlayerHTML5Api4.videoData||this.$VideoPlayerHTML5Api4.videoData.length<=ma)return;this.$VideoPlayerHTML5Apin=new r(this.$VideoPlayerHTML5Api4.videoData[ma]);this.$VideoPlayerHTML5Api0.src=this.$VideoPlayerHTML5Apio();this.$VideoPlayerHTML5Apit();if(this.$VideoPlayerHTML5Apin.hasSubtitles())this.$VideoPlayerHTML5Apiu(this.$VideoPlayerHTML5Apin.getSubtitlesSrc());this.removeRotation();this.applyRotation(this.$VideoPlayerHTML5Apin.getRotation());};la.prototype.$VideoPlayerHTML5Apit=function(){"use strict";k.setContent(this.$VideoPlayerHTML5Api0,null);};la.prototype.$VideoPlayerHTML5Apiv=function(){"use strict";Array.prototype.forEach.call(this.$VideoPlayerHTML5Api0.textTracks,function(ma){return ma.mode='showing';});};la.prototype.$VideoPlayerHTML5Apiw=function(){"use strict";Array.prototype.forEach.call(this.$VideoPlayerHTML5Api0.textTracks,function(ma){return ma.mode='hidden';});};la.prototype.$VideoPlayerHTML5Apix=function(ma){"use strict";var na=new q(ma),oa=i.getBlob([na.renderVTT()],{type:'text/vtt'});return da.createObjectURL(oa);};la.prototype.$VideoPlayerHTML5Apiy=function(ma){"use strict";var na=k.create('track',{kind:'captions',src:ma});m.listen(na,'load',function(){if(this.$VideoPlayerHTML5Apig)this.$VideoPlayerHTML5Apiv();}.bind(this));na.track.mode='hidden';k.appendContent(this.$VideoPlayerHTML5Api0,na);};la.prototype.$VideoPlayerHTML5Apiu=function(ma){"use strict";if(ma in this.$VideoPlayerHTML5Apih)return this.$VideoPlayerHTML5Apiy(this.$VideoPlayerHTML5Apih[ma]);if(!da||!i.isSupported())return;new v(ma).setTransportBuilder(y).setMethod('GET').setResponseHandler(function(na){this.$VideoPlayerHTML5Apih[ma]=this.$VideoPlayerHTML5Apix(na);this.$VideoPlayerHTML5Apiy(this.$VideoPlayerHTML5Apih[ma]);}.bind(this)).send();};la.prototype.unmute=function(){"use strict";this.$VideoPlayerHTML5Api8=false;this.$VideoPlayerHTML5Api0.muted=false;};la.prototype.mute=function(){"use strict";this.$VideoPlayerHTML5Api0.muted=true;};la.prototype.setDimensions=function(ma,na){"use strict";this.removeRotation();this.$VideoPlayerHTML5Api2=ma;this.$VideoPlayerHTML5Api3=na;this.applyRotation(this.$VideoPlayerHTML5Apin.getRotation());};la.prototype.showControls=function(){"use strict";this.$VideoPlayerHTML5Api0.controls=!this.$VideoPlayerHTML5Apie;};la.prototype.restoreControls=function(){"use strict";this.$VideoPlayerHTML5Api0.controls=this.$VideoPlayerHTML5Apif&&!this.$VideoPlayerHTML5Apie;};la.prototype.$VideoPlayerHTML5Apij=function(){"use strict";this.$VideoPlayerHTML5Apii.addSubscriptions(m.listen(this.$VideoPlayerHTML5Api0,'playing',this.$VideoPlayerHTML5Apiz.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'play',this.$VideoPlayerHTML5Apir.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'ended',this.$VideoPlayerHTML5ApiA.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'error',this.$VideoPlayerHTML5ApiB.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'waiting',this.$VideoPlayerHTML5ApiC.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'pause',this.$VideoPlayerHTML5ApiD.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'volumechange',this.$VideoPlayerHTML5ApiE.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'mousedown',this.$VideoPlayerHTML5ApiF.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'mouseup',this.$VideoPlayerHTML5ApiG.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'timeupdate',this.$VideoPlayerHTML5ApiH.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'click',this.$VideoPlayerHTML5ApiI.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'loadedmetadata',this.$VideoPlayerHTML5ApiJ.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'progress',this.$VideoPlayerHTML5ApiK.bind(this)),m.capture(this.$VideoPlayerHTML5Api0.parentNode,'pause',this.$VideoPlayerHTML5ApiL.bind(this)));};la.prototype.$VideoPlayerHTML5ApiL=function(ma){"use strict";if(ma.target!==this.$VideoPlayerHTML5Api0)return;if(!this.$VideoPlayerHTML5Api0.ended){if(this.$VideoPlayerHTML5Apic==='unloaded'){this.preventPauseLoggingInMixin=false;ma.preventDefault();ma.stopPropagation();}ma.lastPauseReason=this.$VideoPlayerHTML5Apic;}};la.prototype.$VideoPlayerHTML5ApiK=function(){"use strict";var ma=this.$VideoPlayerHTML5Api0.buffered,na=0,oa=0,pa=ma.length;while(pa-->0){var qa=ma.end(pa),ra=ma.start(pa);if(ra<=this.$VideoPlayerHTML5Api0.currentTime){oa=ra;na=qa-ra;break;}}this.$VideoPlayerHTML5ApiM('flash/updateBuffer',{duration:na,offset:oa});};la.prototype.$VideoPlayerHTML5ApiH=function(){"use strict";this.$VideoPlayerHTML5ApiM('flash/updateStatus',{position:+this.$VideoPlayerHTML5Api0.currentTime.toFixed(3)});};la.prototype.$VideoPlayerHTML5ApiI=function(ma){"use strict";if(ma.button!==0)return;if(this.$VideoPlayerHTML5ApiN){this.pause(t.USER);}else this.play(t.USER);ma.preventDefault();ma.stopPropagation();};la.prototype.$VideoPlayerHTML5ApiC=function(){"use strict";this.$VideoPlayerHTML5ApiO=true;this.$VideoPlayerHTML5ApiM('flash/buffering');};la.prototype.setVolume=function(ma){"use strict";this.$VideoPlayerHTML5Api0.volume=ma;};la.prototype.$VideoPlayerHTML5ApiE=function(){"use strict";if(this.$VideoPlayerHTML5Api0.muted!==this.$VideoPlayerHTML5Api7&&this.$VideoPlayerHTML5Api0.volume===this.$VideoPlayerHTML5Api9&&this.$VideoPlayerHTML5Api0.volume>0){if(!this.$VideoPlayerHTML5Api0.muted){this.$VideoPlayerHTML5ApiM('flash/turnOffAutoplay');this.$VideoPlayerHTML5ApiM('flash/unmuteVideo');}else this.$VideoPlayerHTML5ApiM('flash/muteVideo');}else this.$VideoPlayerHTML5ApiM('flash/changeVolume',{volume:this.$VideoPlayerHTML5Api0.volume});this.$VideoPlayerHTML5Api7=this.$VideoPlayerHTML5Api0.muted;this.$VideoPlayerHTML5Api9=this.$VideoPlayerHTML5Api0.volume;};la.prototype.$VideoPlayerHTML5ApiF=function(ma){"use strict";if(ma.button===0)this.$VideoPlayerHTML5Apia=true;};la.prototype.$VideoPlayerHTML5ApiG=function(ma){"use strict";if(ma.button===0)this.$VideoPlayerHTML5Apia=false;};la.prototype.$VideoPlayerHTML5Apiz=function(){"use strict";if(this.$VideoPlayerHTML5ApiO){this.$VideoPlayerHTML5ApiO=false;this.$VideoPlayerHTML5ApiM('flash/buffered');}};la.prototype.$VideoPlayerHTML5Apir=function(){"use strict";this.$VideoPlayerHTML5ApiN=true;this.$VideoPlayerHTML5Apid=false;this.showControls();this.$VideoPlayerHTML5ApiM('flash/beginPlayback',{position:this.$VideoPlayerHTML5Api0.currentTime.toFixed(2),reason:this.$VideoPlayerHTML5Apiq});};la.prototype.$VideoPlayerHTML5ApiD=function(ma){"use strict";if(this.$VideoPlayerHTML5Api0.ended)return;if(this.$VideoPlayerHTML5Api0.seeking&&this.$VideoPlayerHTML5Apic===t.SEEK)return;if(this.$VideoPlayerHTML5Apia)return;if(this.$VideoPlayerHTML5Apic===t.SEEK){this.$VideoPlayerHTML5Apic=null;return;}if(this.$VideoPlayerHTML5Apic===null||this.$VideoPlayerHTML5Apic===t.USER)this.$VideoPlayerHTML5ApiM('flash/turnOffAutoplay');this.$VideoPlayerHTML5Apic=null;this.$VideoPlayerHTML5ApiN=false;this.restoreControls();this.$VideoPlayerHTML5ApiM('flash/pausePlayback',{position:this.$VideoPlayerHTML5Api0.currentTime.toFixed(2)});};la.prototype.$VideoPlayerHTML5ApiP=function(){"use strict";k.setContent(this.$VideoPlayerHTML5Api0,null);};la.prototype.$VideoPlayerHTML5ApiA=function(){"use strict";this.restoreControls();this.$VideoPlayerHTML5ApiN=false;this.$VideoPlayerHTML5ApiM('flash/finishPlayback');};la.prototype.$VideoPlayerHTML5ApiJ=function(){"use strict";this.$VideoPlayerHTML5ApiM('flash/updateMetadata');};la.prototype.$VideoPlayerHTML5ApiB=function(){"use strict";if(!this.$VideoPlayerHTML5Api0.error)return;this.emit('error',{error:fa(this.$VideoPlayerHTML5Api0.error.code),isPlayback:this.$VideoPlayerHTML5Apid,message:ea(this.$VideoPlayerHTML5Api0.error.code)});};la.prototype.$VideoPlayerHTML5Apim=function(event,ma){"use strict";ma.player_version=u.PLEASANTVILLE;this.$VideoPlayerHTML5ApiM('flash/logEvent',{logData:Object.assign({event:event},ma)});};la.prototype.$VideoPlayerHTML5ApiM=function(event,ma){"use strict";h.inform(event,Object.assign({divID:this.$VideoPlayerHTML5Api1},ma));this.emit(event.substr('flash/'.length),ma);};la.prototype.getLastPlayReason=function(){"use strict";return this.$VideoPlayerHTML5Apiq;};la.prototype.getVideoPlayReason=function(){"use strict";return this.$VideoPlayerHTML5Apip;};la.prototype.isMuted=function(){"use strict";return this.$VideoPlayerHTML5Api7;};la.prototype.getPlaybackDuration=function(){"use strict";return this.$VideoPlayerHTML5Api0.duration||0;};la.prototype.getVolume=function(){"use strict";return this.$VideoPlayerHTML5Api0.volume;};la.prototype.hasHD=function(){"use strict";if(!this.$VideoPlayerHTML5Apin)return false;return this.$VideoPlayerHTML5Apin.hasHD();};la.prototype.isHD=function(){"use strict";return this.$VideoPlayerHTML5Apik;};la.prototype.$VideoPlayerHTML5Apio=function(){"use strict";return (this.$VideoPlayerHTML5Apik&&this.$VideoPlayerHTML5Apin.hasHD())?this.$VideoPlayerHTML5Apin.getPlayableSrcHD():this.$VideoPlayerHTML5Apin.getPlayableSrcSD();};la.prototype.toggleSubtitles=function(){"use strict";this.$VideoPlayerHTML5Apig=!this.$VideoPlayerHTML5Apig;if(this.$VideoPlayerHTML5Apig){this.$VideoPlayerHTML5Apiv();}else this.$VideoPlayerHTML5Apiw();};la.prototype.hasSubtitles=function(){"use strict";return this.$VideoPlayerHTML5Apin.hasSubtitles();};la.prototype.areSubtitlesActive=function(){"use strict";return this.$VideoPlayerHTML5Apig;};la.prototype.toggleHD=function(){"use strict";if(!this.$VideoPlayerHTML5Apin)return;var ma=this.$VideoPlayerHTML5Api0.currentTime;this.$VideoPlayerHTML5Apik=!this.$VideoPlayerHTML5Apik;this.$VideoPlayerHTML5Api0.src=this.$VideoPlayerHTML5Apio();ba.once(this.$VideoPlayerHTML5Api0,function(){this.$VideoPlayerHTML5Api0.currentTime=ma;if(this.$VideoPlayerHTML5Apid)this.$VideoPlayerHTML5Api0.play();this.emit('qualityChange');}.bind(this));this.$VideoPlayerHTML5Apim(s.PAUSED,this.addWatchTimeData({reason:'toggle_hd'}));this.$VideoPlayerHTML5Apim(s.REQUESTED_PLAYING,{reason:t.USER});this.$VideoPlayerHTML5Apid=true;this.$VideoPlayerHTML5Apis();};e.exports=la;},null); __d("VideoPlayerApiFactory",["VideoPlayerFlashApi","VideoPlayerHTML5Api"],function(a,b,c,d,e,f,g,h){b.__markCompiled&&b.__markCompiled();var i={create:function(j,k){var l=this._getImplementationModule(j);return new l(j,k);},_getImplementationModule:function(j){var k=null;if(j.tagName==='VIDEO'){k=h;}else k=g;return k;},onImplementationReady:function(j,k){var l=this._getImplementationModule(j);l.onImplementationReady(j,function(m){return k(m,l);});}};e.exports=i;},null); __d("VideoCTAEndscreen",["CSS","Event","VideoPlayerReason","SubscriptionsHandler","VideoPlayerLoggerEvents","VideoPlayerReason","logVideosClickTracking"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){b.__markCompiled&&b.__markCompiled();function n(o,p){"use strict";this.$VideoCTAEndscreen0=o;this.$VideoCTAEndscreen1=p.endscreenElement;this.$VideoCTAEndscreen2=p.replayElement;this.$VideoCTAEndscreen3=new j();this.$VideoCTAEndscreen3.addSubscriptions(h.listen(this.$VideoCTAEndscreen2,'click',function(){return this.$VideoCTAEndscreen4();}.bind(this)),o.addListener('finishPlayback',function(){return this.$VideoCTAEndscreen5();}.bind(this)),o.addListener('beginPlayback',function(){return this.$VideoCTAEndscreen6();}.bind(this)));}n.prototype.$VideoCTAEndscreen4=function(){"use strict";var o={reason:i.USER};this.$VideoCTAEndscreen0.logEvent(k.REPLAYED,o);m(this.$VideoCTAEndscreen0.getVideoNode());this.$VideoCTAEndscreen0.play(l.USER);};n.prototype.$VideoCTAEndscreen5=function(){"use strict";g.show(this.$VideoCTAEndscreen1);};n.prototype.$VideoCTAEndscreen6=function(){"use strict";g.hide(this.$VideoCTAEndscreen1);};e.exports=n;},null); __d("VideoPlayerController",["Arbiter","Banzai","DOMDimensions","CSS","EventEmitter","Flash","FullScreen","Run","ScriptPath","SubscriptionsHandler","JSLogger","VideoChannelViewChainLengthManager","VideoPlayerApiEvents","VideoPlayerApiFactory","VideoPlayerLogger","VideoPlayerLoggerErrors","VideoPlayerLoggerErrorStates","VideoPlayerLoggerEvents","VideoPlayerInitializationEvents","VideoPlayerVersions","VideosRenderingInstrumentation","Visibility","VideoPlayerReason","arrayContains","collectDataAttributes","cx","destroyOnUnload","emptyFunction","getElementPosition","invariant","logVideosClickTracking"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka){b.__markCompiled&&b.__markCompiled();for(var la in k)if(k.hasOwnProperty(la))na[la]=k[la];var ma=k===null?null:k.prototype;na.prototype=Object.create(ma);na.prototype.constructor=na;na.__superConstructor__=k;function na(oa,pa){"use strict";var qa=oa.video_id,ra=oa.video_ids,sa=oa.chaining_token,ta=oa.source,ua=oa.ad_client_token,va=oa.should_autoplay,wa=oa.player_version,xa=oa.autoplay_setting,ya=oa.additional_logdata_getter,za=oa.apiModule,ab=pa.root_element,bb=pa.container_element,cb=pa.video_element;ma.constructor.call(this);this.$VideoPlayerController0=0;this.$VideoPlayerController1=va;this.$VideoPlayerController2=xa;this.$VideoPlayerController3=ua;this.$VideoPlayerController4=wa;this.$VideoPlayerController5=cb;this.$VideoPlayerController6=ab;this.$VideoPlayerController7=bb;this.$VideoPlayerController8=false;this.$VideoPlayerController9=false;this.$VideoPlayerControllera=qa;this.$VideoPlayerControllerb=ra||[qa];this.$VideoPlayerControllerc=sa;this.$VideoPlayerControllerd=ya||{get:ha};this.$VideoPlayerControllere=za;this.$VideoPlayerControllerf=null;this.$VideoPlayerControllerg=null;this.$VideoPlayerControllerh=new u(ta);this.collectFeedTrackingData();this.$VideoPlayerControllerh.setScriptPath(o.getScriptPath());var db=aa.retrieveRenderTime(this.$VideoPlayerController6);this.$VideoPlayerControlleri=Date.now()-db;this.logEvent(y.PLAYER_INITIALIZATION,{time_ms:db});this.$VideoPlayerControllerj=false;this.setState('loading');if(this.isImplementationUnavailable()){this.$VideoPlayerControllerk();return;}this.$VideoPlayerControllerl();h.subscribe(h.SHUTDOWN,function(){this.pause('unloaded');}.bind(this));if(this.$VideoPlayerController1)if(ba.isHidden()){ba.once(ba.VISIBLE,function(){this.play(ca.AUTOPLAY);}.bind(this));}else this.play(ca.AUTOPLAY);this.$VideoPlayerControllerm=0;this.$VideoPlayerControllern=false;this.$VideoPlayerControllero=new p();this.$VideoPlayerControllero.addSubscriptions(g.subscribe('layer_shown',function(eb,fb){if(fb.type==='DialogX'||fb.type==='PhotoSnowlift'){this.$VideoPlayerControllerm=this.$VideoPlayerControllerm+1;if(this.$VideoPlayerControllerm>0)if(this.isState('playing')){this.pause(ca.PAGE_VISIBILITY);this.$VideoPlayerControllern=true;}}}.bind(this)),g.subscribe('layer_hidden',function(eb,fb){if(fb.type==='DialogX'||fb.type==='PhotoSnowlift'){this.$VideoPlayerControllerm=this.$VideoPlayerControllerm-1;if(this.$VideoPlayerControllerm===0)if(this.$VideoPlayerControllern){this.play(ca.PAGE_VISIBILITY);this.$VideoPlayerControllern=false;}}}.bind(this)),g.subscribe(q.DUMP_EVENT,function(eb,fb){return this.$VideoPlayerControllerq(eb,fb);}.bind(this)));ga(function(){return this.$VideoPlayerControllero.release();}.bind(this));n.onLeave(function(){return this.pause('unloaded');}.bind(this));}na.prototype.collectFeedTrackingData=function(){"use strict";this.$VideoPlayerControllerh.setFTData(ea(this.getRootNode(),['ft']));};na.prototype.$VideoPlayerControllerq=function(oa,pa){"use strict";pa.video_player_debug_info=pa.video_player_debug_info||{};pa.video_player_debug_info[this.getVideoID()]=this.getDebugInfo();};na.prototype.setAdditionalLogDataGetter=function(oa){"use strict";this.$VideoPlayerControllerd=oa;};na.prototype.$VideoPlayerControllerl=function(){"use strict";if(this.$VideoPlayerControllere){this.$VideoPlayerControllere.onImplementationReady(this.getVideoNode(),function(){return this.onApiReady();}.bind(this));}else t.onImplementationReady(this.getVideoNode(),function(){return this.onApiReady();}.bind(this));};na.prototype.hasCTAEndscreen=function(){"use strict";return !!this.$VideoPlayerControllerr;};na.prototype.isImplementationUnavailable=function(){"use strict";if(this.$VideoPlayerControllere)return this.$VideoPlayerControllere.isImplementationUnavailable();return !this.isPlayerVersion(z.HTML5)&&!l.isAvailable();};na.prototype.$VideoPlayerControllerk=function(){"use strict";var oa={error:v.ERROR_CALLING_FLASH,state:w.PLAYER_FAILURE};this.logEvent(x.ERROR,oa);this.$VideoPlayerController1=false;};na.prototype.$VideoPlayerControllers=function(oa,pa,qa){"use strict";var ra={error:oa,error_description:pa,error_user_info:this.getDebugInfo(),state:qa?w.PLAYBACK_FAILURE:w.PLAYER_FAILURE};this.logEvent(x.ERROR,ra);if(qa&&this.$VideoPlayerControllerj)this.$VideoPlayerControllerj=false;};na.prototype.setDimensions=function(oa,pa){"use strict";this.$VideoPlayerController7.style.width=oa+'px';this.$VideoPlayerController7.style.height=pa+'px';if(this.isState('loading')){this.$VideoPlayerControllert={width:oa,height:pa};}else if(this.getVideoAPI().setDimensions)this.getVideoAPI().setDimensions(oa,pa);};na.prototype.handleFlashApiFactoryError=function(oa,pa){"use strict";this.$VideoPlayerControllers(v.ERROR_CALLING_FLASH,oa.message,pa);};na.prototype.isPlayRequestPending=function(){"use strict";return this.$VideoPlayerControllerj;};na.prototype.play=function(oa){"use strict";this.$VideoPlayerControlleru();if(!this.$VideoPlayerControllerv)this.$VideoPlayerControllerv=oa;if(!this.$VideoPlayerControllerj){var pa=this.$VideoPlayerControllerw({reason:oa});this.logEvent(x.REQUESTED_PLAYING,pa);}this.sendPlayRequest(oa);};na.prototype.sendPlayRequest=function(oa){"use strict";if(this.isState('fallback')){this.emit('fallbackPlay');return;}this.$VideoPlayerControllerj=true;if(this.isState('loading')){this.$VideoPlayerControllerx={reason:oa};}else{if(!this.getVideoAPI().isMuted()&&this.$VideoPlayerControllery)this.logEvent(x.UNMUTED);this.$VideoPlayerControllery=false;this.getVideoAPI().play(oa);}};na.prototype.getOriginalPlayReason=function(){"use strict";return this.$VideoPlayerControllerv;};na.prototype.reset=function(){"use strict";if(this.isState('loading')||this.isState('fallback'))return;this.resetPositions();this.$VideoPlayerControllerz();this.$VideoPlayerControllerA=null;this.setState('loading');this.$VideoPlayerControllerl();};na.prototype.cancelPlayRequest=function(){"use strict";if(this.$VideoPlayerControllerj){var oa={reason:this.getOriginalPlayReason()};this.$VideoPlayerControllerj=false;this.logEvent(x.CANCELLED_REQUESTED_PLAYING,oa);}};na.prototype.getVideoAPI=function(){"use strict";return this.$VideoPlayerControllerA;};na.prototype.getVideoNode=function(){"use strict";return this.$VideoPlayerController5;};na.prototype.getRootNode=function(){"use strict";return this.$VideoPlayerController6;};na.prototype.onApiReady=function(oa){"use strict";this.$VideoPlayerControllerA=t.create(this.getVideoNode(),this.handleFlashApiFactoryError.bind(this));this.setState('ready');this.logEvent(y.PLAYER_ALLOCATED);this.$VideoPlayerControllery=!this.getVideoAPI().isMuted();this.$VideoPlayerControllerB();if(this.$VideoPlayerControllerx){this.sendPlayRequest(this.$VideoPlayerControllerx.reason);this.$VideoPlayerControllerx=null;}if(this.$VideoPlayerControllert){this.setDimensions(this.$VideoPlayerControllert.width,this.$VideoPlayerControllert.height);this.$VideoPlayerControllert=null;}if(this.$VideoPlayerControllerC){this.getVideoAPI().unmute();this.$VideoPlayerControllerC=null;}var pa={is_auto_played:this.isAutoplayable()};if(oa)pa.init_delay=oa;this.logEvent(x.PLAYER_LOADED,pa);};na.prototype.resetPositions=function(){"use strict";this.$VideoPlayerControllerf=null;this.$VideoPlayerControllerg=null;};na.prototype.getCurrentTimePosition=function(){"use strict";return this.$VideoPlayerControllerf;};na.prototype.$VideoPlayerControlleru=function(){"use strict";r.registerChainingInfos(this.getVideoID(),this.$VideoPlayerControllerc);};na.prototype.$VideoPlayerControllerD=function(oa){"use strict";var pa=oa&&('playing_live' in oa)&&oa.playing_live;if(pa==this.$VideoPlayerController9)return;if(pa){this.logEvent(x.PLAYING_LIVE_STARTED);}else this.logEvent(x.PLAYING_LIVE_STOPPED);this.$VideoPlayerController9=pa;j.conditionClass(this.$VideoPlayerController7,"_2vq_",this.$VideoPlayerController9);};na.prototype.$VideoPlayerControllerE=function(oa){"use strict";this.$VideoPlayerControllerD(oa);var pa=oa.position;this.$VideoPlayerControllerj=false;if(pa!==(void 0))this.$VideoPlayerControllerg=pa;this.setState('playing');};na.prototype.$VideoPlayerControllerF=function(oa){"use strict";this.$VideoPlayerControllerD(oa);var pa=oa.position;if(pa!==(void 0))this.$VideoPlayerControllerf=pa;};na.prototype.$VideoPlayerControllerG=function(oa){"use strict";var event=oa.event;delete oa.event;this.logEvent(event,oa);};na.prototype.$VideoPlayerControllerH=function(){"use strict";this.$VideoPlayerControllerD({});this.resetPositions();if(!this.isState('finished'))this.setState('paused');};na.prototype.$VideoPlayerControllerI=function(){"use strict";this.$VideoPlayerControllerD({});this.resetPositions();this.setState('finished');};na.prototype.getVideosCount=function(){"use strict";return this.$VideoPlayerControllerb.length;};na.prototype.$VideoPlayerControllerJ=function(){"use strict";var oa=this.getVideosCount();return (this.$VideoPlayerController0+1)%oa;};na.prototype.getVolume=function(){"use strict";return this.getVideoAPI().getVolume();};na.prototype.$VideoPlayerControllerK=function(){"use strict";var oa=this.isFullscreen();j.conditionClass(this.$VideoPlayerController7,"_5gr8",oa);j.conditionClass(this.$VideoPlayerController7,"_52fb",oa);if(!oa&&this.$VideoPlayerControllerL){this.$VideoPlayerControllerL.unsubscribe();this.$VideoPlayerControllerL=null;}if(this.$VideoPlayerControllerM!=oa){this.logEvent(oa?x.ENTERED_FS:x.EXITED_FS);this.emit('toggleFullscreen');}this.$VideoPlayerControllerM=oa;};na.prototype.isFullscreen=function(){"use strict";return m.isFullScreen()&&this.$VideoPlayerController7===m.getFullScreenElement();};na.prototype.toggleFullscreen=function(){"use strict";if(m.toggleFullScreen(this.$VideoPlayerController7)){j.addClass(this.$VideoPlayerController7,"_5gr8");this.$VideoPlayerControllerL=m.subscribe('changed',this.$VideoPlayerControllerK.bind(this));}};na.prototype.$VideoPlayerControllerN=function(){"use strict";var oa=this.getVideosCount();return (this.$VideoPlayerController0-1+oa)%oa;};na.prototype.$VideoPlayerControllerO=function(oa){"use strict";this.logEvent(x.CAROUSEL_CHANGE,{source_index:this.$VideoPlayerController0,target_index:oa});this.getVideoAPI().switchVideo(oa);this.$VideoPlayerController0=oa;this.emit('switchVideo');};na.prototype.unmute=function(){"use strict";if(!this.isState('loading')){this.getVideoAPI().unmute();}else this.$VideoPlayerControllerC=true;};na.prototype.isMuted=function(){"use strict";return this.getVideoAPI().isMuted();};na.prototype.mute=function(){"use strict";this.getVideoAPI().mute();};na.prototype.getPlaybackDuration=function(){"use strict";return this.getVideoAPI().getPlaybackDuration();};na.prototype.getPlaybackPosition=function(){"use strict";return this.$VideoPlayerControllerf||0;};na.prototype.nextVideo=function(){"use strict";this.$VideoPlayerControllerO(this.$VideoPlayerControllerJ());};na.prototype.previousVideo=function(){"use strict";this.$VideoPlayerControllerO(this.$VideoPlayerControllerN());};na.prototype.getVideoIndex=function(){"use strict";return this.$VideoPlayerController0;};na.prototype.getVideoID=function(){"use strict";return this.$VideoPlayerControllerb[this.getVideoIndex()];};na.prototype.$VideoPlayerControllerB=function(){"use strict";var oa=this.$VideoPlayerControllerA;this.$VideoPlayerControllerP=new p();var pa=[['buffered',function(){return this.setBuffering(false);}.bind(this)],['buffering',function(){return this.setBuffering(true);}.bind(this)],['beginPlayback',function(ra){return this.$VideoPlayerControllerE(ra);}.bind(this)],['updateStatus',function(ra){return this.$VideoPlayerControllerF(ra);}.bind(this)],['logEvent',function(ra){return this.$VideoPlayerControllerG(ra.logData);}.bind(this)],['pausePlayback',function(){return this.$VideoPlayerControllerH();}.bind(this)],['clickForTracking',function(){return ka(this.getVideoNode());}.bind(this)],['error',function(ra){return this.$VideoPlayerControllers(ra.error,ra.message,ra.isPlayback);}.bind(this)],['finishPlayback',function(){return this.$VideoPlayerControllerI();}.bind(this)]],qa=function(event){return this.emit.bind(this,event);}.bind(this);this.$VideoPlayerControllerP.addSubscriptions.apply(this.$VideoPlayerControllerP,pa.map(function(ra){return oa.addListener.apply(oa,ra);}).concat(s.map(function(event){return oa.addListener(event,qa(event));})));};na.prototype.$VideoPlayerControllerz=function(){"use strict";if(this.$VideoPlayerControllerP)this.$VideoPlayerControllerP.release();};na.prototype.seek=function(oa){"use strict";this.getVideoAPI().seek(oa);};na.prototype.pause=function(oa){"use strict";if(this.isState('loading')){this.$VideoPlayerControllerx=null;}else if(this.isState('playing')){this.getVideoAPI().pause(oa);}else if(this.isState('ready'))this.getVideoAPI().pause(oa);this.cancelPlayRequest();};na.prototype.isPlayerVersion=function(oa){"use strict";return this.$VideoPlayerController4===oa;};na.prototype.isAutoplayable=function(){"use strict";return this.$VideoPlayerController1;};na.prototype.isBuffering=function(){"use strict";return this.$VideoPlayerController8;};na.prototype.setBuffering=function(oa){"use strict";if(oa!==this.$VideoPlayerController8){this.$VideoPlayerController8=oa;if(this.$VideoPlayerController8){this.$VideoPlayerControllerh.startBuffering();}else this.$VideoPlayerControllerh.endBuffering();}};na.prototype.setVolume=function(oa){"use strict";this.getVideoAPI().setVolume(oa);};na.prototype.getDOMPosition=function(){"use strict";return ia(this.getRootNode());};na.prototype.$VideoPlayerControllerQ=function(){"use strict";var oa=this.getDOMPosition(),pa=i.getViewportDimensions().height,qa=null;if(oa.y<=0){qa=oa.y;}else if(oa.y+oa.height