/*!CK:2572700456!*//*1459309910,*/

if (self.CavalryLogger) { CavalryLogger.start_js(["sC3kS"]); }

__d("VideoChannelEntryPoint",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={GROUP:"group",NEWSFEED:"newsfeed",PAGE:"page",PROFILE:"profile",SAVED_STORY:"saved_story",SEARCH:"search",PERMALINK:"permalink",VIDEO_HOME:"video_home",VIDEO_HOME_LATEST_FROM_PAGES_CHANNEL:"video_home_latest_from_pages_channel",VIDEO_HOME_SAVED_CHANNEL:"video_home_saved_channel",VIDEO_HOME_SHARED_WITH_YOU_CHANNEL:"video_home_shared_with_you_channel",VIDEO_HOME_TOP_CHANNEL:"video_home_top_channel",VIDEO_HOME_WATCHED_CHANNEL:"video_home_watched_channel",UNKNOWN:"unknown"};},null);
__d("VideoScrubberPreviewEvent",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={SPRITE_GENERATION_START:"sprite_generation_start",SPRITE_GENERATION_ERROR:"sprite_generation_error",SPRITE_GENERATION_END:"sprite_generation_end",SPRITE_FETCH_ASYNC_REQUEST_ERROR:"sprite_fetch_async_request_error",SPRITE_FETCH_EVERSTORE_ERROR:"sprite_fetch_everstore_error"};},null);
__d("XPubcontentRelatedVideoInlineController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/pubcontent\/related_video_inline\/",{fbvideo_id:{type:"Int",required:true},query_id:{type:"String",required:true},mf_story_key:{type:"String",required:true},root_video_id:{type:"Int"}});},null);
__d('EntstreamAttachmentRelatedFBVideo',['csx','cx','Arbiter','AsyncRequest','AttachmentRelatedShareConstants','CSS','DOM','DOMQuery','Event','ge','Parent','VideoPlayerReason','XPubcontentRelatedVideoInlineController'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j={addHoverListener:function(k,l){var m=c('ge')(l),n=c('DOM').scry(m,"^div._3f-c")[0];c('Event').listen(n,'mouseover',this.doHover.bind(this,k));c('Event').listen(n,'mouseout',this.doHoverOut.bind(this,k));},addClickOutListener:function(k,l){var m=c('ge')(l);c('Event').listen(m,'click',this.doHoverOut.bind(this,k));},doHover:function(k){k.play(c('VideoPlayerReason').USER);k.mute();},doHoverOut:function(k,l){k.pause(c('VideoPlayerReason').USER);},loadRelatedLSCInlineFBVideoAttachmentInRelatedCard:function(k,l,m,n,o,p,q,r){var s=null;if(typeof l==='string'){s=c('ge')(l);}else s=l;if(!s)return;var t=null;if(typeof k==='string'){t=c('ge')(k);}else t=k;if(!t)return;c('Event').listen(t,'click',function(event){var u=event.srcElement?event.srcElement:event.target;if(u)for(var v in p){var w=c('ge')(p[v]);if(w&&c('DOMQuery').contains(w,u))return;}if(event.isDefaultRequested())return;event.preventDefault();var x=null;if(o){var y=c('DOM').scry(s,"^ul._5h5a")[0];if(!y)return;x=y.previousSibling;}else x=t.children[0];setTimeout(function(){var z=c('XPubcontentRelatedVideoInlineController').getURIBuilder();z.setInt('fbvideo_id',m);z.setString('query_id',q);z.setString('mf_story_key',r);new (c('AsyncRequest'))().setURI(z.getURI()).setRelativeTo(x).send();},1000);});},loadRelatedLSCInlineFBVideoAttachment:function(k,l,m,n,o){var p=null;if(!p)return;c('Event').listen(p,'click',function(event){if(event.isDefaultRequested())return;event.preventDefault();var q="^div._4-u2",r="_4zdu",s=c('DOM').scry(p,q),t=s.length===1?s[0]:null,u=t.parentNode,v=u.previousSibling;while(!v){u=u.parentNode;v=u.previousSibling;}if(!c('CSS').hasClass(v,r)){var w=c('DOM').create('div',{className:r}),x=c('DOM').insertBefore(t.parentNode,w),y=x.length>=1?x[0]:null;}else y=v;if(y.childNodes[0])c('CSS').hide(y.childNodes[0]);var z="div._4icy",aa=c('DOM').scry(u,z)[0];if(aa){var ba="_4icx";c('CSS').setClass(aa,ba);}setTimeout(function(){var ca=c('XPubcontentRelatedVideoInlineController').getURIBuilder();ca.setInt('fbvideo_id',l);ca.setString('query_id',n);ca.setString('mf_story_key',o);new (c('AsyncRequest'))().setURI(ca.getURI()).setRelativeTo(y).send();if(m)c('Arbiter').inform(c('AttachmentRelatedShareConstants').FBVIDEO_CLICK,{attachment:p,fbvideo_id:l,continued_chaining:true});if(aa)if(m){c('DOM').remove(aa);}else c('CSS').setClass(aa,"_4icy");},1000);});},loadRelatedFBVideos:function(k,l){var m=c('ge')(k);if(!m)return;var n="_4zdu",o=c('Parent').byClass(m,n);if(o)return;var p=c('Event').listen(m,'click',function(){p.remove();c('Arbiter').inform(c('AttachmentRelatedShareConstants').FBVIDEO_CLICK,{attachment:m,fbvideo_id:l});});}};f.exports=j;},null);
__d('flash-js',[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(){}Object.assign(h,{INIT:'flash/init',READY:'flash/ready',FAILED:'flash/failed'});f.exports=h;},null);
__d('legacy:flash-js',['flash-js'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();b.Flash=c('flash-js');},3);
__d('swfobject',['AsyncRequest','Bootloader','CSS','htmlSpecialChars'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();if(typeof h=="undefined")var h={};if(typeof h.util=="undefined")h.util={};if(typeof h.SWFObjectUtil=="undefined")h.SWFObjectUtil={};h.SWFObject=function(j,k,l,m,n,o,p,q,r,s){if(!document.getElementById)return;this.DETECT_KEY=s?s:'detectflash';this.skipDetect=h.util.getRequestParameter(this.DETECT_KEY);this.params={};this.variables={};this.attributes=[];this.fallback_html='';this.fallback_js_fcn=function(){};if(j)this.setAttribute('swf',j);if(k)this.setAttribute('id',k);if(l)this.setAttribute('width',l);if(m)this.setAttribute('height',m);this.installedVer=h.SWFObjectUtil.getPlayerVersion();if(n){if(!(n instanceof Array))n=[n];var t;n.forEach(function(w){t=new h.PlayerVersion(w.toString().split('.'));if(t.major==this.installedVer.major){this.setAttribute('version',t);return;}else if(!this.getAttribute('version')||t.major<this.getAttribute('version').major)this.setAttribute('version',t);}.bind(this));}if(!window.opera&&document.all&&this.installedVer.major>7)if(!h.unloadSet){h.SWFObjectUtil.prepUnload=function(){var w=function(){},x=function(){};window.attachEvent("onunload",h.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",h.SWFObjectUtil.prepUnload);h.unloadSet=true;}if(o)this.addParam('bgcolor',o);var u=p?p:'high';this.addParam('quality',u);this.setAttribute('useExpressInstall',false);this.setAttribute('doExpressInstall',false);var v=q?q:window.location;this.setAttribute('xiRedirectUrl',v);this.setAttribute('redirectUrl','');if(r)this.setAttribute('redirectUrl',r);};h.SWFObject.ieWorkaroundApplied=false;h.SWFObject.ensureIEWorkaroundAttached=function(){if(!h.SWFObject.ieWorkaroundApplied&&document.attachEvent){h.SWFObject.ieWorkaroundApplied=true;document.attachEvent('onpropertychange',h.SWFObject.onDocumentPropertyChange);}};h.SWFObject.onDocumentPropertyChange=function(event){if(event.propertyName=="title"){var j=document.title;if(j!=null&&j.indexOf('#!')!=-1){j=j.substring(0,j.indexOf('#!'));document.title=j;}}};Object.assign(h.SWFObject.prototype,{useExpressInstall:function(j){this.xiSWFPath=!j?"/swf/expressinstall.swf":j;this.setAttribute('useExpressInstall',true);},setAttribute:function(j,k){this.attributes[j]=k;},getAttribute:function(j){return this.attributes[j]||"";},addParam:function(j,k){this.params[j]=k;},getParams:function(){return this.params;},addVariable:function(j,k){this.variables[j]=k;},getVariable:function(j){return this.variables[j]||"";},getVariables:function(){return this.variables;},getVariablePairs:function(){var j=[],k,l=this.getVariables();for(k in l)j[j.length]=k+"="+l[k];return j.join('&');},getSWFHTML:function(){var j,k,l;if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute('swf',this.xiSWFPath);}k={type:'application/x-shockwave-flash',src:this.getAttribute('swf'),width:this.getAttribute('width'),height:this.getAttribute('height'),style:this.getAttribute('style')||'display: block;',id:this.getAttribute('id'),name:this.getAttribute('id')};var m=this.getParams();for(var n in m)k[n]=m[n];l=this.getVariablePairs();if(l)k.flashvars=l;j=i('embed',k,null);}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute('swf',this.xiSWFPath);}k={id:this.getAttribute('id'),classid:'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000',width:this.getAttribute('width'),height:this.getAttribute('height'),style:this.getAttribute('style')||'display: block;'};var o=i('param',{name:'movie',value:this.getAttribute('swf')},null),m=this.getParams();for(var n in m)o+=i('param',{name:n,value:m[n]},null);l=this.getVariablePairs();if(l)o+=i('param',{name:'flashvars',value:l},null);j=i('object',k,o);}return j;},write:function(j){if(this.getAttribute('useExpressInstall')){var k=new h.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(k)&&!this.installedVer.versionIsValid(this.getAttribute('version'))){this.setAttribute('doExpressInstall',true);this.addVariable("MMredirectURL",escape(this.getAttribute('xiRedirectUrl')));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}var l=typeof j=='string'?document.getElementById(j):j;if(!l)return false;c('CSS').addClass(l,'swfObject');l.setAttribute('data-swfid',this.getAttribute('id'));if(this.skipDetect||this.getAttribute('doExpressInstall')||this.installedVer.versionIsValid(this.getAttribute('version'))){h.SWFObject.ensureIEWorkaroundAttached();l.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute('redirectUrl')!="")document.location.replace(this.getAttribute('redirectUrl'));var m=this.getAttribute('version').major+'.'+this.getAttribute('version').minor+'.'+this.getAttribute('version').release+'.'+this.getAttribute('version').build,n=this.installedVer.major+'.'+this.installedVer.minor+'.'+this.installedVer.release+'.'+this.installedVer.build;this.fallback_js_fcn(n,m);l.innerHTML=this.fallback_html;}return false;}});h.SWFObjectUtil.getPlayerVersion=function(){var j=new h.PlayerVersion([0,0,0,0]),k;if(navigator.plugins&&navigator.mimeTypes.length){for(var l=0;l<navigator.plugins.length;l++)try{var n=navigator.plugins[l];if(n.name=='Shockwave Flash'){k=new h.PlayerVersion(n.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+(r|d)|\s+b[0-9]+)/,".").split("."));if(typeof j=='undefined'||k.major>j.major||k.major==j.major&&(k.minor>j.minor||k.minor==j.minor&&(k.release>j.release||k.release==j.release&&k.build>j.build)))j=k;}}catch(m){}}else if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var o=1,p=3;while(o)try{p++;o=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+p);j=new h.PlayerVersion([p,0,0]);}catch(q){o=null;}}else{try{var o=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(r){try{var o=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");j=new h.PlayerVersion([6,0,21]);o.AllowScriptAccess="always";}catch(s){if(j.major==6)return j;}try{o=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(t){}}if(o!=null)j=new h.PlayerVersion(o.GetVariable("$version").split(" ")[1].split(","));}return j;};h.PlayerVersion=function(j){this.major=j[0]!=null?parseInt(j[0],10):0;this.minor=j[1]!=null?parseInt(j[1],10):0;this.release=j[2]!=null?parseInt(j[2],10):0;this.build=j[3]!=null?parseInt(j[3],10):0;};h.PlayerVersion.prototype.versionIsValid=function(j){if(this.major<j.major)return false;if(this.major>j.major)return true;if(this.minor<j.minor)return false;if(this.minor>j.minor)return true;if(this.release<j.release)return false;if(this.release>j.release)return true;if(this.build<j.build)return false;return true;};h.util={getRequestParameter:function(j){var k=document.location.search||document.location.hash;if(j==null)return k;if(k){var l=k.substring(1).split("&");for(var m=0;m<l.length;m++)if(l[m].substring(0,l[m].indexOf("="))==j)return l[m].substring(l[m].indexOf("=")+1);}return "";}};h.SWFObjectUtil.cleanupSWFs=function(){var j=document.getElementsByTagName("OBJECT");for(var k=j.length-1;k>=0;k--){j[k].style.display='none';for(var l in j[k])if(typeof j[k][l]=='function')j[k][l]=function(){};}};if(!document.getElementById&&document.all)document.getElementById=function(j){return document.all[j];};h.spawn_flash_update_dialog=function(){new (c('AsyncRequest'))().setURI('/ajax/flash_update_dialog.php').setMethod('GET').setReadOnly(true).send();};h.showFlashErrorDialog=function(j,k){c('Bootloader').loadModules(["ErrorDialog"],function(l){l.show(j,k);});};function i(j,k,l){var m=/^[A-Za-z0-9\-]+$/;if(!j.match(m))throw new Error('Invalid tag '+j);var n='<'+j;for(var o in k){if(!o.match(m))throw new Error('Invalid attr '+o);n+=' '+o+'="'+c('htmlSpecialChars')(k[o])+'"';}if(l===null){return n+'/>';}else return n+'>'+l+'</'+j+'>';}f.exports=b.deconcept||h;},null);
__d('legacy:swfobject',['swfobject'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();b.deconcept=c('swfobject');b.SWFObject=c('swfobject').SWFObject;b.showFlashErrorDialog=c('swfobject').showFlashErrorDialog;},3);
__d('FeedVideoClickToPlayController',['Event','Set','VideoPlayerAbortLoadingExperiment','VideoPlayerReason','destroyOnUnload','throttle'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=null;function i(){'use strict';this.$FeedVideoClickToPlayController2=new (c('Set'))();this.$FeedVideoClickToPlayController1=null;c('destroyOnUnload')(function(){this.$FeedVideoClickToPlayController2.clear();if(this.$FeedVideoClickToPlayController1){this.$FeedVideoClickToPlayController1.remove();this.$FeedVideoClickToPlayController1=null;}if(this===h)h=null;}.bind(this));}i.prototype.addVideoUnit=function(j){'use strict';if(!this.$FeedVideoClickToPlayController3())this.$FeedVideoClickToPlayController4();j.addListener('beginPlayback',function(k){var l=k.reason;if(l===c('VideoPlayerReason').USER||l===c('VideoPlayerReason').LOOP)this.$FeedVideoClickToPlayController2.add(j);}.bind(this));j.addListener('turnOffAutoplay',function(k){var l=k.reason;if(l==='unmuted')this.$FeedVideoClickToPlayController2.add(j);}.bind(this));if(j.getVideoPlayerController().isState('playing')&&!j.isAutoplayable())this.$FeedVideoClickToPlayController2.add(j);j.addListener('pausePlayback',function(){this.$FeedVideoClickToPlayController2['delete'](j);}.bind(this));j.addListener('finishPlayback',function(){this.$FeedVideoClickToPlayController2['delete'](j);}.bind(this));};i.registerVideoUnit=function(j){'use strict';if(h==null)h=new i();h.addVideoUnit(j);};i.prototype.$FeedVideoClickToPlayController4=function(){'use strict';if(this.$FeedVideoClickToPlayController1)this.$FeedVideoClickToPlayController1.remove();this.$FeedVideoClickToPlayController1=c('Event').listen(window,'scroll',c('throttle')(this.onScroll.bind(this),300));};i.prototype.$FeedVideoClickToPlayController3=function(){'use strict';return !!this.$FeedVideoClickToPlayController1;};i.prototype.onScroll=function(){'use strict';this.$FeedVideoClickToPlayController2.forEach(function(j){if(j&&!j.isVisible()&&!j.getIsInChannel()){j.pause(c('VideoPlayerReason').AUTOPLAY);if(c('VideoPlayerAbortLoadingExperiment').canAbort)j.abortLoading();}});};f.exports=i;},null);
__d('VideoClickForMoreOverlay',['cx','CSS','EventListener'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();function i(j,k){'use strict';this.$VideoClickForMoreOverlay1=j;this.$VideoClickForMoreOverlay2=k;this.$VideoClickForMoreOverlay3=false;this.$VideoClickForMoreOverlay1.addListener('VideoControls/visibilityUpdate',function(m){var n=m.areControlsVisible;return (this.$VideoClickForMoreOverlay4(n));}.bind(this));var l=this.$VideoClickForMoreOverlay1.getOption('VideoControls','areControlsVisible');if(l)this.$VideoClickForMoreOverlay4(l);this.$VideoClickForMoreOverlay1.addListener('stateChange',this.$VideoClickForMoreOverlay5.bind(this));c('EventListener').listen(this.$VideoClickForMoreOverlay2,'click',function(){return this.$VideoClickForMoreOverlay6();}.bind(this));}i.prototype.$VideoClickForMoreOverlay4=function(j){'use strict';this.$VideoClickForMoreOverlay3=j;this.$VideoClickForMoreOverlay5();};i.prototype.$VideoClickForMoreOverlay5=function(){'use strict';var j=!this.$VideoClickForMoreOverlay1.isPlayerVersion('silvercity')&&!this.$VideoClickForMoreOverlay1.getIsInChannel()&&this.$VideoClickForMoreOverlay1.isState('playing');if(j&&this.$VideoClickForMoreOverlay3){this.$VideoClickForMoreOverlay7();}else this.$VideoClickForMoreOverlay8();};i.prototype.$VideoClickForMoreOverlay6=function(){'use strict';this.$VideoClickForMoreOverlay1.clickVideo();};i.prototype.$VideoClickForMoreOverlay7=function(){'use strict';c('CSS').removeClass(this.$VideoClickForMoreOverlay2,"_2is8");};i.prototype.$VideoClickForMoreOverlay8=function(){'use strict';c('CSS').addClass(this.$VideoClickForMoreOverlay2,"_2is8");};f.exports=i;},null);
__d('VideoPlayerAdditionalLogDataGetter',[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i){'use strict';if(typeof i==='function'){this.$VideoPlayerAdditionalLogDataGetter1=null;this.$VideoPlayerAdditionalLogDataGetter2=i;}else{this.$VideoPlayerAdditionalLogDataGetter1=i;this.$VideoPlayerAdditionalLogDataGetter2=null;}}h.prototype.get=function(){'use strict';if(this.$VideoPlayerAdditionalLogDataGetter2)return this.$VideoPlayerAdditionalLogDataGetter2();return this.$VideoPlayerAdditionalLogDataGetter1;};f.exports=h;},null);
__d('FeedVideoPlayerController',['csx','Arbiter','AttachmentRelatedShareConstants','CSS','DOM','DOMQuery','LitestandStoryInsertionStatus','Run','Set','SubscriptionsHandler','VideoAutoplayPlayerBase','VideoPlayerAdditionalLogDataGetter','VideoPlayerApiEvents','VideoPlayerLoggerErrors','VideoPlayerLoggerErrorStates','VideoPlayerLoggerEvent','VideoPlayerReason','getElementPosition','getViewportDimensions'],function a(b,c,d,e,f,g,h){var i,j;if(c.__markCompiled)c.__markCompiled();var k=1;i=babelHelpers.inherits(l,c('VideoAutoplayPlayerBase'));j=i&&i.prototype;function l(m,n){'use strict';j.constructor.call(this);this.$FeedVideoPlayerController1=n;this.$FeedVideoPlayerController2=m;this.$FeedVideoPlayerController3=new (c('Set'))();if(!this.$FeedVideoPlayerController1.viewport_autoplay)this.$FeedVideoPlayerController3.add('server_blocked');this.$FeedVideoPlayerController4=this.isAutoplayable();this.$FeedVideoPlayerController5=new (c('SubscriptionsHandler'))();c('Run').onLeave(function(){this.$FeedVideoPlayerController5.release();}.bind(this));this.$FeedVideoPlayerController6=n.controller;this.$FeedVideoPlayerController10=n.startsMuted;this.$FeedVideoPlayerController7=this.isAutoplayable();if(this.$FeedVideoPlayerController6.getIsInChannel()||this.$FeedVideoPlayerController6.isState('playing')&&!this.$FeedVideoPlayerController6.isMuted())this.$FeedVideoPlayerController7=false;this.$FeedVideoPlayerController6.registerOption('FeedAutoplay','isAutoplaying',function(){return this.$FeedVideoPlayerController7;}.bind(this),function(o){this.$FeedVideoPlayerController7=o;}.bind(this));this.$FeedVideoPlayerController6.registerOption('FeedAutoplay','isVisibleForAutoplay',function(){return this.isVisible();}.bind(this));this.$FeedVideoPlayerController6.setAdditionalLogDataGetter(new (c('VideoPlayerAdditionalLogDataGetter'))(function(){return {autoplay_eligible:this.isAutoplayable(),autoplay_failure_reasons:JSON.stringify(Array.from(this.$FeedVideoPlayerController3))};}.bind(this)));this.$FeedVideoPlayerController11();if(this.$FeedVideoPlayerController12('fallback')){this.$FeedVideoPlayerController13('fallback');this.$FeedVideoPlayerController14();return;}this.$FeedVideoPlayerController5.addSubscriptions(c('LitestandStoryInsertionStatus').registerBlocker(function(){return this.$FeedVideoPlayerController12('playing');}.bind(this)));}l.prototype.$FeedVideoPlayerController15=function(){'use strict';return !!this.$FeedVideoPlayerController1.show_play_button_on_finish;};l.prototype.getDistanceToViewport=function(){'use strict';if(this.$FeedVideoPlayerController6.isFullscreen())return 0;var m=c('getViewportDimensions')().height,n=this.getDOMPosition();if(n.height===0)return -Infinity;var o=n.y+(1-k)*n.height;return o-m/2;};l.prototype.isVisible=function(){'use strict';if(this.$FeedVideoPlayerController6.isFullscreen())return true;var m=c('getViewportDimensions')().height,n=c('getViewportDimensions')().width,o=this.getDOMPosition();if(o.height===0)return false;var p=o.y+(1-k)*o.height,q=o.y+k*o.height,r=o.x+(1-k)*o.width,s=o.x+k*o.width;if(p<0||q>=m||r<0||s>=n)return false;var t=this.$FeedVideoPlayerController16();if(t!==null)return this.$FeedVideoPlayerController17(o,c('getElementPosition')(t));return true;};l.prototype.$FeedVideoPlayerController16=function(){'use strict';var m=c('DOMQuery').scry(this.$FeedVideoPlayerController2.video_container,"^div._1yj5");if(m.length>0)return m[0];return null;};l.prototype.$FeedVideoPlayerController17=function(m,n){'use strict';var o=m.x,p=m.x+m.width,q=n.x,r=n.x+n.width;return q<o&&p<r;};l.prototype.isAutoplayable=function(){'use strict';return this.$FeedVideoPlayerController1.viewport_autoplay&&!this.$FeedVideoPlayerController9&&!this.$FeedVideoPlayerController3.length;};l.prototype.$FeedVideoPlayerController18=function(m){'use strict';if(this.$FeedVideoPlayerController4){this.$FeedVideoPlayerController4=false;this.$FeedVideoPlayerController6.unmute();}this.$FeedVideoPlayerController6.play(m);};l.prototype.getCurrentTimePosition=function(){'use strict';return this.$FeedVideoPlayerController6.getCurrentTimePosition();};l.prototype.playWithoutUnmute=function(m){'use strict';this.$FeedVideoPlayerController6.play(m);};l.prototype.getVideoID=function(){'use strict';return this.$FeedVideoPlayerController6.getVideoID();};l.prototype.$FeedVideoPlayerController19=function(){'use strict';this.$FeedVideoPlayerController14();};l.prototype.$FeedVideoPlayerController11=function(){'use strict';var m=[['finishPlayback',function(){return this.$FeedVideoPlayerController20();}.bind(this)],['turnOffAutoplay',function(o){return (this.$FeedVideoPlayerController21(o.reason));}.bind(this)],['unmuteVideo',function(){return this.$FeedVideoPlayerController22();}.bind(this)],['stateChange',function(){return this.$FeedVideoPlayerController23();}.bind(this)],['switchVideo',function(){return this.$FeedVideoPlayerController19();}.bind(this)],['fallbackPlay',function(){return this.$FeedVideoPlayerController24();}.bind(this)],['buffered',function(){return this.$FeedVideoPlayerController14();}.bind(this)],['buffering',function(){return this.$FeedVideoPlayerController14();}.bind(this)],['beginPlayback',function(o){var p=o.reason;return this.$FeedVideoPlayerController25(p);}.bind(this)],['toggleFullscreen',function(){return this.$FeedVideoPlayerController26();}.bind(this)],['resumeAutoplay',function(){return this.$FeedVideoPlayerController27();}.bind(this)]],n=function(event){return this.emit.bind(this,event);}.bind(this);this.$FeedVideoPlayerController5.addSubscriptions.apply(this.$FeedVideoPlayerController5,m.map(function(o){return this.$FeedVideoPlayerController6.addListener.apply(this.$FeedVideoPlayerController6,o);}.bind(this)).concat(c('VideoPlayerApiEvents').map(function(event){return this.$FeedVideoPlayerController6.addListener(event,n(event));}.bind(this))));};l.prototype.$FeedVideoPlayerController26=function(){'use strict';if(this.$FeedVideoPlayerController10)this.$FeedVideoPlayerController6.unmute();};l.prototype.$FeedVideoPlayerController23=function(){'use strict';if(this.$FeedVideoPlayerController6.isState('fallback'))this.$FeedVideoPlayerController13('fallback');if(!this.$FeedVideoPlayerController6.isState('loading')&&this.$FeedVideoPlayerController8){clearTimeout(this.$FeedVideoPlayerController8);this.$FeedVideoPlayerController8=null;}this.$FeedVideoPlayerController14();};l.prototype.$FeedVideoPlayerController25=function(m){'use strict';if(m===c('VideoPlayerReason').USER&&this.$FeedVideoPlayerController10)this.$FeedVideoPlayerController6.unmute();};l.prototype.preload=function(){'use strict';if(this.$FeedVideoPlayerController6.preload)this.$FeedVideoPlayerController6.preload();};l.prototype.logDisplayed=function(){'use strict';this.$FeedVideoPlayerController6.logEvent(c('VideoPlayerLoggerEvent').DISPLAYED,{autoplay_reason:this.$FeedVideoPlayerController1.autoplay_reason});};l.prototype.$FeedVideoPlayerController24=function(){'use strict';var m={error:c('VideoPlayerLoggerErrors').ENTERED_FALLBACK,state:c('VideoPlayerLoggerErrorStates').PLAYBACK_FAILURE};this.$FeedVideoPlayerController6.logEvent(c('VideoPlayerLoggerEvent').ERROR,m);};l.prototype.$FeedVideoPlayerController22=function(){'use strict';this.$FeedVideoPlayerController10=false;this.$FeedVideoPlayerController28();this.$FeedVideoPlayerController7=false;};l.prototype.$FeedVideoPlayerController29=function(){'use strict';return this.$FeedVideoPlayerController6.getVideosCount()>1;};l.prototype.$FeedVideoPlayerController20=function(){'use strict';if(this.$FeedVideoPlayerController29())this.$FeedVideoPlayerController6.nextVideo();var m=this.$FeedVideoPlayerController6.getOption('Looping','isLooping');if(!m)this.$FeedVideoPlayerController13('has_seen_finished');};l.prototype.handleFlashApiFactoryError=function(m,n){'use strict';j.handleFlashApiFactoryError.call(this,m,n);};l.prototype.$FeedVideoPlayerController13=function(m){'use strict';this.$FeedVideoPlayerController9=true;this.$FeedVideoPlayerController3.add(m);this.$FeedVideoPlayerController7=false;};l.prototype.$FeedVideoPlayerController27=function(){'use strict';this.$FeedVideoPlayerController7=true;this.$FeedVideoPlayerController3['delete']('unmuted');this.$FeedVideoPlayerController3['delete']('has_seen_finished');this.$FeedVideoPlayerController3['delete']('manually_paused');this.$FeedVideoPlayerController9=this.$FeedVideoPlayerController3.length>0;};l.prototype.$FeedVideoPlayerController21=function(m){'use strict';this.$FeedVideoPlayerController13(m);this.$FeedVideoPlayerController7=false;};l.prototype.$FeedVideoPlayerController14=function(){'use strict';this.$FeedVideoPlayerController30();};l.prototype.getDOMPosition=function(){'use strict';return this.$FeedVideoPlayerController6.getDOMPosition();};l.prototype.isLooping=function(){'use strict';return !!this.$FeedVideoPlayerController6.getOption('Looping','isLooping');};l.prototype.pause=function(m){'use strict';this.$FeedVideoPlayerController6.pause(m);};l.prototype.$FeedVideoPlayerController30=function(){'use strict';if(this.$FeedVideoPlayerController12('fallback')){this.$FeedVideoPlayerController5.release();var m=this.$FeedVideoPlayerController2;if(m.fallback_link){c('DOM').remove(this.$FeedVideoPlayerController6.getVideoNode());c('DOM').replace(m.video_container,m.fallback_link);c('DOM').appendContent(m.fallback_link,m.video_container);}}};l.prototype.$FeedVideoPlayerController28=function(){'use strict';c('Arbiter').inform(c('AttachmentRelatedShareConstants').FBVIDEO_CLICK,{attachment:this.$FeedVideoPlayerController2.video_container,fbvideo_id:this.$FeedVideoPlayerController1.video_ids[0]});};l.prototype.$FeedVideoPlayerController12=function(m){'use strict';return this.$FeedVideoPlayerController6.isState(m);};l.prototype.getIsInChannel=function(){'use strict';return this.$FeedVideoPlayerController6.getIsInChannel();};l.prototype.getVideoPlayerController=function(){'use strict';return this.$FeedVideoPlayerController6;};l.prototype.abortLoading=function(){'use strict';if(!this.$FeedVideoPlayerController1.abort_loading_blocked)this.$FeedVideoPlayerController6.abortLoading();};f.exports=l;},null);
__d('VideoFeedRegister',['Bootloader','FeedVideoPlayerController','VideoAutoplayControllerX','VideoPlayerFeedRegisterConfig'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={registerVideoUnit:function(i,j){var k=new (c('FeedVideoPlayerController'))(i,j);if(j.channelVersion){if(j.channelVersion==='channel_feed'){j.channelModule.registerVideoUnit(k);}else if(j.channelVersion==='channel_view'){j.channelModule.registerVideoController(j.controller);}else if(j.channelVersion==='watch_and_scroll'){c('VideoPlayerFeedRegisterConfig').watchAndScrollModule.registerChannelVideoController(j.controller);return;}}else c('VideoAutoplayControllerX').registerVideoUnit(k);if(c('VideoPlayerFeedRegisterConfig').watchAndScrollV2)c('VideoPlayerFeedRegisterConfig').watchAndScrollModule.registerVideoController(j.controller,j.videoChannelCaller,c('VideoPlayerFeedRegisterConfig').isSlidingEnabled,c('VideoPlayerFeedRegisterConfig').watchAndScrollChannelIntegration);if(c('VideoPlayerFeedRegisterConfig').disableOffscreenPlayModule&&j.controller.isAd())c('VideoPlayerFeedRegisterConfig').disableOffscreenPlayModule.registerVideoUnit(k);if(j.autoPlayWithChannelViewOrSnowlift)(function(){var l=j.controller,m=l.addListener('stateChange',function(){if(!l.isState('ready'))return;var n=l.getOption('VideoWithClickToChannelView','isChannelEligible');if(n){c('Bootloader').loadModules(["VideoChannelController"],function(o){return (o.openFromVideoPlayer(l,l.getVideoChannelID(),j.videoChannelCaller));});}else c('Bootloader').loadModules(["PhotoSnowlift"],function(o){return (o.bootstrap(l.getVideoURL()));});m.remove();});})();}};f.exports=h;},null);
__d('VideoScrubberPreviewLogger',['BanzaiLogger'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={logEvent:function(i,j){c('BanzaiLogger').log('VideoScrubberPreviewLoggerConfig',{event:i,video_id:parseInt(j,10)});}};f.exports=h;},null);
__d('VideoScrubberPreviewComponent',['AsyncRequest','Map','VideoScrubberPreviewLogger','VideoScrubberPreviewEvent'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i,j){'use strict';if(!j)throw new Error('VideoScrubberPreview Component config null.');this.$VideoScrubberPreviewComponent4=j;this.$VideoScrubberPreviewComponent5=i;this.$VideoScrubberPreviewComponent2=j.hasPreviewThumbnails;this.$VideoScrubberPreviewComponent3=new (c('Map'))();this.$VideoScrubberPreviewComponent6(j.spriteIndexToURIMap);this.$VideoScrubberPreviewComponent7();}h.prototype.hasPreviewThumbnails=function(){'use strict';return this.$VideoScrubberPreviewComponent2;};h.prototype.$VideoScrubberPreviewComponent7=function(){'use strict';this.$VideoScrubberPreviewComponent5.registerOption('VideoScrubberPreviewComponent','scrubberPreviewSprites',this.getSprites.bind(this));this.$VideoScrubberPreviewComponent5.registerOption('VideoScrubberPreviewComponent','hasPreviewThumbnails',this.hasPreviewThumbnails.bind(this));this.$VideoScrubberPreviewComponent5.registerOption('VideoScrubberPreviewComponent','previewThumbnailInformation',this.getPreviewThumbnailInformation.bind(this));};h.prototype.getSprites=function(){'use strict';return this.$VideoScrubberPreviewComponent3;};h.prototype.getPreviewThumbnailInformation=function(){'use strict';if(this.hasPreviewThumbnails()){this.$VideoScrubberPreviewComponent4.imagesPerColumn=this.$VideoScrubberPreviewComponent4.maxImagesPerSprite/this.$VideoScrubberPreviewComponent4.imagesPerRow;}else this.$VideoScrubberPreviewComponent4.imagesPerColumn=0;return this.$VideoScrubberPreviewComponent4;};h.prototype.$VideoScrubberPreviewComponent6=function(i){'use strict';for(var j in i)if(i.hasOwnProperty(j))this.$VideoScrubberPreviewComponent3.set(parseInt(j,10),i[j]);};f.exports=h;},null);
__d('VideoWithClickToChannelView',['cx','Bootloader','CSS','Map','VideoChainingCaller','VideoChannel','VideoChannelEntryPoint','VideoChannelViewGatings','VideoPlayerAdditionalLogDataGetter','VideoPlayerReason','logVideosClickTracking'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();function i(j,k,l,m){'use strict';this.$VideoWithClickToChannelView1=j;this.$VideoWithClickToChannelView2=k;this.$VideoWithClickToChannelView3=l;this.$VideoWithClickToChannelView4=m;this.$VideoWithClickToChannelView5=new (c('Map'))();this.$VideoWithClickToChannelView1.addListener('stateChange',this.$VideoWithClickToChannelView6.bind(this));this.$VideoWithClickToChannelView1.registerOption('VideoWithClickToChannelView','isChannelEligible',function(){return this.isChannelEligible();}.bind(this));this.$VideoWithClickToChannelView1.registerOption('VideoWithClickToChannelView','canOpenFromVideoPlayer',function(){return this.canOpenChannelView();}.bind(this));this.$VideoWithClickToChannelView1.setAdditionalLogDataGetter(new (c('VideoPlayerAdditionalLogDataGetter'))(function(){return {channel_eligibility:'eligible'};}));if(this.canOpenChannelView())this.$VideoWithClickToChannelView7();this.$VideoWithClickToChannelView1.addListener('clickVideo',this.$VideoWithClickToChannelView8.bind(this));if(this.$VideoWithClickToChannelView1.hasSeenClick())this.$VideoWithClickToChannelView8();}i.prototype.$VideoWithClickToChannelView9=function(){'use strict';return this.$VideoWithClickToChannelView1.hasOption('VideoControls','available');};i.prototype.$VideoWithClickToChannelView10=function(){'use strict';this.$VideoWithClickToChannelView11('hideOnFinish');this.$VideoWithClickToChannelView11('hideOnPause');};i.prototype.$VideoWithClickToChannelView11=function(j){'use strict';var k=this.$VideoWithClickToChannelView1.getOption('VideoControls',j);this.$VideoWithClickToChannelView5.set(j,k);};i.prototype.$VideoWithClickToChannelView7=function(){'use strict';c('CSS').addClass(this.$VideoWithClickToChannelView1.getVideoNode(),"_244o");};i.prototype.$VideoWithClickToChannelView12=function(){'use strict';c('CSS').removeClass(this.$VideoWithClickToChannelView1.getVideoNode(),"_244o");};i.prototype.$VideoWithClickToChannelView6=function(){'use strict';if(this.canOpenChannelView()){this.$VideoWithClickToChannelView7();}else this.$VideoWithClickToChannelView12();};i.prototype.$VideoWithClickToChannelView8=function(){'use strict';if(!this.canOpenChannelView()){if(this.$VideoWithClickToChannelView1.isState('playing')){this.$VideoWithClickToChannelView1.pause(c('VideoPlayerReason').USER);}else{c('logVideosClickTracking')(this.$VideoWithClickToChannelView1.getVideoNode());this.$VideoWithClickToChannelView1.play(c('VideoPlayerReason').USER);}}else this.$VideoWithClickToChannelView13();};i.prototype.isChannelEligible=function(){'use strict';var j=c('VideoChannelViewGatings').allowChannelViewForFlash||this.$VideoWithClickToChannelView3===c('VideoChannelEntryPoint').VIDEO_HOME,k=!this.$VideoWithClickToChannelView1.isPlayerVersion('silvercity')||j,l=c('VideoChannelViewGatings').channelView||this.$VideoWithClickToChannelView3===c('VideoChannelEntryPoint').VIDEO_HOME;return l&&!c('VideoChannel').get()&&!this.$VideoWithClickToChannelView1.isState('fallback')&&!this.$VideoWithClickToChannelView1.isFullscreen()&&k;};i.prototype.canOpenChannelView=function(){'use strict';var j=true;if(c('VideoChannelViewGatings').channelViewWithInlineControls)if(!this.$VideoWithClickToChannelView1.isState('playing'))j=false;return this.isChannelEligible()&&j;};i.prototype.$VideoWithClickToChannelView13=function(){'use strict';c('logVideosClickTracking')(this.$VideoWithClickToChannelView1.getVideoNode());c('Bootloader').loadModules(["VideoChannelController"],function(j){j.openFromVideoPlayer(this.$VideoWithClickToChannelView1,this.$VideoWithClickToChannelView2,this.$VideoWithClickToChannelView4);}.bind(this));};f.exports=i;},null);
__d('VideoWithFallbackMode',['VideoPlayerLoggerEvent','VideoPlayerLoggerFallbackReasons','VideoPlayerReason'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i,j){'use strict';this.$VideoWithFallbackMode1=i;if(this.$VideoWithFallbackMode1.isImplementationUnavailable()){this.$VideoWithFallbackMode2(c('VideoPlayerLoggerFallbackReasons').FLASH_UNAVAILABLE);return;}i.addListener('error',this.$VideoWithFallbackMode3.bind(this));if(j.fallbackTimeoutMs){var k=j.fallbackTimeoutMs;setTimeout(function(){if(this.$VideoWithFallbackMode1.isState('loading')){this.$VideoWithFallbackMode1.pause(c('VideoPlayerReason').FALLBACK_MODE);this.$VideoWithFallbackMode2(c('VideoPlayerLoggerFallbackReasons').TIMEOUT);}}.bind(this),k);}}h.prototype.$VideoWithFallbackMode3=function(){'use strict';if(this.$VideoWithFallbackMode1.isState('fallback'))return;if(this.$VideoWithFallbackMode1.isState('playing'))this.$VideoWithFallbackMode1.pause(c('VideoPlayerReason').FALLBACK_MODE);this.$VideoWithFallbackMode1.abortLoading();this.$VideoWithFallbackMode2(c('VideoPlayerLoggerFallbackReasons').FLASH_ERROR);};h.prototype.$VideoWithFallbackMode2=function(i){'use strict';this.$VideoWithFallbackMode1.setState('fallback');this.$VideoWithFallbackMode1.logEvent(c('VideoPlayerLoggerEvent').ENTERED_FALLBACK,{debug_reason:i});};f.exports=h;},null);
__d('VideoWithSequentialAutoplay',['Arbiter','SubscriptionsHandler','VideoPlayerReason','destroyOnUnload'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i,j){'use strict';this.$VideoWithSequentialAutoplay1=i;this.$VideoWithSequentialAutoplay2=j;this.$VideoWithSequentialAutoplay1.addListener('finishPlayback',this.$VideoWithSequentialAutoplay3.bind(this));this.$VideoWithSequentialAutoplay4=new (c('SubscriptionsHandler'))();this.$VideoWithSequentialAutoplay4.addSubscriptions(c('Arbiter').subscribe('nextVideoAutoplay',function(k,l){if(l.nextVideoID==this.$VideoWithSequentialAutoplay1.getVideoID())this.$VideoWithSequentialAutoplay1.play(c('VideoPlayerReason').AUTOPLAY);}.bind(this)));c('destroyOnUnload')(function(){return this.$VideoWithSequentialAutoplay4.release();}.bind(this));}h.prototype.$VideoWithSequentialAutoplay3=function(){'use strict';c('Arbiter').inform('nextVideoAutoplay',{nextVideoID:this.$VideoWithSequentialAutoplay2});};f.exports=h;},null);
__d('AbstractVideoFullscreenControl.react',['AbstractButton.react','React','ReactComponentWithPureRenderMixin'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'AbstractVideoFullscreenControl',mixins:[c('ReactComponentWithPureRenderMixin')],propTypes:{image:h.element,isFullscreen:h.bool,onToggleFullscreen:h.func},getInitialState:function(){return {awaitingUpdate:false};},isFullscreen:function(){if(this.state.awaitingUpdate)return this.state.isFullscreenOverride;return !!this.props.isFullscreen;},onButtonClick:function(){this.props.onToggleFullscreen&&this.props.onToggleFullscreen();},render:function(){return (c('React').createElement(c('AbstractButton.react'),babelHelpers['extends']({},this.props,{className:this.props.className,image:this.props.image,onClick:this.onButtonClick})));}});f.exports=i;},null);
__d('VideoPlayButton',['CSS','EventListener','VideoDisplayTimePlayButton'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i,j,k){'use strict';this.$VideoPlayButton1=i;this.$VideoPlayButton2=j;if(k){this.$VideoPlayButton3=k.hiddenAfterFinish;this.$VideoPlayButton4=k.hiddenWhilePaused;this.$VideoPlayButton5=!!k.hiddenInFallback;}var l=c('VideoDisplayTimePlayButton').getClicked(this.$VideoPlayButton2);c('VideoDisplayTimePlayButton').unregister(this.$VideoPlayButton2);i.addListener('beginPlayback',this.$VideoPlayButton6.bind(this));i.addListener('finishPlayback',this.$VideoPlayButton7.bind(this));i.addListener('pausePlayback',this.$VideoPlayButton8.bind(this));i.addListener('buffering',this.$VideoPlayButton9.bind(this));i.addListener('buffered',this.$VideoPlayButton10.bind(this));i.addListener('stateChange',this.$VideoPlayButton11.bind(this));i.addListener('playRequested',this.$VideoPlayButton12.bind(this));i.addListener('VideoChannelController/exitChannel',this.$VideoPlayButton13.bind(this));i.addListener('clickVideo',this.$VideoPlayButton14.bind(this));c('EventListener').listen(this.$VideoPlayButton2,'click',this.$VideoPlayButton15.bind(this));if(k&&k.hiddenWhileLoading)c('CSS').show(this.$VideoPlayButton2);if(l)this.$VideoPlayButton15();}h.prototype.$VideoPlayButton11=function(){'use strict';if(this.$VideoPlayButton1.isState('fallback'))if(this.$VideoPlayButton5||this.$VideoPlayButton1.getIsInChannel()){c('CSS').hide(this.$VideoPlayButton2);}else c('CSS').show(this.$VideoPlayButton2);};h.prototype.$VideoPlayButton6=function(){'use strict';c('CSS').hide(this.$VideoPlayButton2);};h.prototype.$VideoPlayButton8=function(){'use strict';if(this.$VideoPlayButton4)return;c('CSS').show(this.$VideoPlayButton2);};h.prototype.$VideoPlayButton12=function(){'use strict';if(this.$VideoPlayButton1.isState('fallback'))return;c('CSS').hide(this.$VideoPlayButton2);};h.prototype.$VideoPlayButton13=function(){'use strict';if(!this.$VideoPlayButton1.isState('playing'))c('CSS').show(this.$VideoPlayButton2);};h.prototype.$VideoPlayButton7=function(){'use strict';if(this.$VideoPlayButton3||this.$VideoPlayButton1.getIsInChannel()){c('CSS').hide(this.$VideoPlayButton2);}else c('CSS').show(this.$VideoPlayButton2);};h.prototype.$VideoPlayButton9=function(){'use strict';c('CSS').hide(this.$VideoPlayButton2);};h.prototype.$VideoPlayButton10=function(){'use strict';c('CSS').hide(this.$VideoPlayButton2);};h.prototype.$VideoPlayButton15=function(){'use strict';this.$VideoPlayButton1.clickVideo();};h.prototype.$VideoPlayButton14=function(){'use strict';if(this.$VideoPlayButton1.isState('fallback'))return;c('CSS').hide(this.$VideoPlayButton2);};f.exports=h;},null);
__d('MountedContextMenu.react',['cx','ContextualLayer.react','DOMQuery','Event','Focus','LayerHideOnEscape','PopoverMenu.react','PopoverMenuInterface','React','ReactDOM','ReactLayeredComponentMixin','SubscriptionsHandler','isNode'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=Object.prototype.hasOwnProperty,j=c('React').PropTypes;function k(m,n,o,p,q){var r=o.getContent().getBoundingClientRect(),s=o.getContext().getBoundingClientRect(),t=m-s.left,u=n-s.top;switch(q){case 'left':t-=r.width;break;case 'center':t-=s.width*.5;break;case 'right':t-=s.width-r.width;break;default:throw new Error('invalid alignment');}switch(p){case 'above':break;case 'left':t+=r.width;u-=r.height*.5;break;case 'right':t-=r.width;u-=r.height*.5;break;case 'below':u-=s.height;break;default:throw new Error('invalid position');}return {offsetX:t,offsetY:u};}var l=c('React').createClass({displayName:'MountedContextMenu',mixins:[c('ReactLayeredComponentMixin')],propTypes:{disableFocusOutline:j.bool,menu:function(m,n,o){if(!i.call(m,n))return new Error(o+'.'+n+' is required');var p=m[n],q=p&&p.type;if(!(q&&q.prototype instanceof c('PopoverMenuInterface')))return new Error(n+' must implement PopoverMenuInterface');},mountedTriggerElem:function(m,n,o){if(!i.call(m,n)){return new Error(o+'.'+n+' is required');}else if(!c('isNode')(m[n]))return new Error(o+'.'+n+' must be a raw DOM node');}},getDefaultProps:function(){return {disableFocusOutline:false};},getInitialState:function(){return {shown:false,lastOpenedX:0,lastOpenedY:0,offsetX:0,offsetY:0};},_getTriggerDOMNode:function(){return this.props.mountedTriggerElem;},_getMenuDOMNode:function(){var m=this.refs.popover.getMenu();return m&&m.getRoot();},_getLayer:function(){return this.refs.menuLayer.layer;},renderLayers:function(){var m=this.props.menu,n=m.props.onItemClick,o=this;m=c('React').cloneElement(m,{onItemClick:function(){o.hide();return n&&n.apply(this,arguments);}});return {menu:c('React').createElement(c('ContextualLayer.react'),{alignment:'right',behaviors:[c('LayerHideOnEscape')],contextRef:function(){return this._getTriggerDOMNode();}.bind(this),offsetX:this.state.offsetX,offsetY:this.state.offsetY,position:'below',ref:'menuLayer',shown:this.state.shown},c('React').createElement(c('PopoverMenu.react'),{alignh:'left',menu:m,position:'below',ref:'popover'},c('React').createElement('div',{className:"_4345",ref:'fakeTrigger'})))};},render:function(){if(this.props.mountedTriggerElem)return null;},_updatePosition:function(m,n){var o=this._getLayer(),p=o.getOrientation(),q=p.getPosition(),r=p.getAlignment(),s=k(m,n,o,q,r),t=s.offsetX,u=s.offsetY;o.setOffsetX(t).setOffsetY(u);this.setState({offsetX:t,offsetY:u});},_onContextMenu:function(m){var n=m.clientX,o=m.clientY;m.preventDefault();m.stopPropagation();this.showAt(n,o);},_onMousedownAnywhere:function(m){var n=this._getMenuDOMNode(),o=n&&c('DOMQuery').contains(n,m.target),p=m.button===0;if(!(o&&p))this.hide();},_onRealTriggerFocus:function(){if(this.props.disableFocusOutline)c('Focus').setWithoutOutline(this._getTriggerDOMNode());},_onFakeTriggerFocus:function(){var m=this._getTriggerDOMNode();if(this.props.disableFocusOutline){c('Focus').setWithoutOutline(m);}else c('Focus').set(m);if(this.state.shown)this.hide();},_onWindowBlur:function(){this.hide();},componentDidMount:function(){var m=this._getTriggerDOMNode(),n=c('ReactDOM').findDOMNode(this.refs.fakeTrigger),o=this._getLayer(),p=this.refs.popover;this._subscriberHandler=new (c('SubscriptionsHandler'))();this._subscriberHandler.addSubscriptions(c('Event').listen(m,'contextmenu',this._onContextMenu),c('Event').listen(document.body,'mousedown',this._onMousedownAnywhere),c('Event').listen(m,'focus',this._onRealTriggerFocus),c('Event').listen(n,'focus',this._onFakeTriggerFocus),c('Event').listen(window,'blur',this._onWindowBlur),o.subscribe('show',function(){var q=this.state.lastOpenedX,r=this.state.lastOpenedY;this._updatePosition(q,r);p.showPopover();}.bind(this)),o.subscribe('hide',function(){p.hidePopover();}));},componentWillUnmount:function(){this._subscriberHandler&&this._subscriberHandler.release();},show:function(){this.setState({shown:true});},showAt:function(m,n){this.setState({lastOpenedX:m,lastOpenedY:n});this.show();},hide:function(){this.setState({shown:false});}});f.exports=l;},null);
__d('VideoSpinner',['CSS','EventListener'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i,j){'use strict';this.$VideoSpinner2=j;this.$VideoSpinner1=i;this.$VideoSpinner3=false;i.addListener('beginPlayback',this.$VideoSpinner4.bind(this));i.addListener('finishPlayback',this.$VideoSpinner5.bind(this));i.addListener('pausePlayback',this.$VideoSpinner6.bind(this));i.addListener('playRequested',this.$VideoSpinner7.bind(this));i.addListener('buffering',this.$VideoSpinner8.bind(this));i.addListener('buffered',this.$VideoSpinner9.bind(this));i.addListener('stateChange',this.$VideoSpinner10.bind(this));i.addListener('clickVideo',this.$VideoSpinner11.bind(this));c('EventListener').listen(this.$VideoSpinner2,'click',this.$VideoSpinner12.bind(this));}h.prototype.$VideoSpinner8=function(){'use strict';c('CSS').show(this.$VideoSpinner2);this.$VideoSpinner3=true;};h.prototype.$VideoSpinner9=function(){'use strict';c('CSS').hide(this.$VideoSpinner2);this.$VideoSpinner3=false;};h.prototype.$VideoSpinner4=function(){'use strict';if(this.$VideoSpinner3){c('CSS').show(this.$VideoSpinner2);}else c('CSS').hide(this.$VideoSpinner2);};h.prototype.$VideoSpinner6=function(){'use strict';c('CSS').hide(this.$VideoSpinner2);};h.prototype.$VideoSpinner7=function(){'use strict';c('CSS').hide(this.$VideoSpinner2);};h.prototype.$VideoSpinner5=function(){'use strict';c('CSS').hide(this.$VideoSpinner2);};h.prototype.$VideoSpinner10=function(){'use strict';if(this.$VideoSpinner1.isState('fallback'))c('CSS').hide(this.$VideoSpinner2);};h.prototype.$VideoSpinner11=function(){'use strict';if(this.$VideoSpinner1.isState('fallback'))return;if(this.$VideoSpinner3||this.$VideoSpinner1.isState('ready')||this.$VideoSpinner1.isState('loading'))c('CSS').show(this.$VideoSpinner2);};h.prototype.$VideoSpinner12=function(){'use strict';this.$VideoSpinner1.clickVideo();};f.exports=h;},null);
__d('VideoPlayerHTML5ContextMenu.react',['cx','fbt','ContextualLayer.react','DOMQuery','Event','Focus','FullScreen','getFullScreenElement','Keys','LayerAutoFocus','LayerHideOnEscape','MountedContextMenu.react','React','ReactDOM','ReactLayeredComponentMixin','ReactXUIMenu','SubscriptionsHandler','VideoContextMenuGK','isNode'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=Object.prototype.hasOwnProperty,k=c('ReactXUIMenu').Item,l=c('React').PropTypes,m=.35,n=6,o=60,p=c('React').createClass({displayName:'VideoPlayerHTML5ContextMenu',mixins:[c('ReactLayeredComponentMixin')],propTypes:{videoElem:function(q,r,s){if(!j.call(q,r)){return new Error(s+'.'+r+' is required');}else if(!c('isNode')(q[r]))return new Error(s+'.'+r+' must be a raw DOM node');},paused:l.bool,muted:l.bool,permalinkURL:l.string,onTogglePause:l.func.isRequired,onToggleMute:l.func.isRequired},getInitialState:function(){return {permalinkVisible:false,fullscreened:false,screenWidth:screen.width,screenHeight:screen.height};},componentDidMount:function(){var q=this.refs.permalinkLayer.layer;this._subscriberHandler=new (c('SubscriptionsHandler'))();this._subscriberHandler.addSubscriptions(c('FullScreen').subscribe('changed',this._onFullScreenChanged),q.subscribe('hide',this._onHidePermalinkOverlay),q.subscribe('show',this._onShowPermalinkOverlay));},componentWillUnmount:function(){this._subscriberHandler&&this._subscriberHandler.release();},_onFullScreenChanged:function(){var q=c('getFullScreenElement')(),r=this.props.videoElem,s=!!(c('FullScreen').isFullScreen()&&q&&r&&c('DOMQuery').contains(q,r));this.setState({fullscreened:s});},_renderTogglePauseLabel:function(){if(this.props.paused){return i._("Play");}else return i._("Pause");},_renderToggleMuteLabel:function(){if(this.props.muted){return i._("Unmute");}else return i._("Mute");},_onTogglePause:function(){this.props.onTogglePause&&this.props.onTogglePause();},_onToggleMute:function(){this.props.onToggleMute&&this.props.onToggleMute();},_onShowPermalinkOverlay:function(){c('Focus').set(c('ReactDOM').findDOMNode(this.refs.permalinkText));this.setState({permalinkVisible:true});},_onHidePermalinkOverlay:function(){this.setState({permalinkVisible:false});},_onPermalinkTextFocus:function(){c('ReactDOM').findDOMNode(this.refs.permalinkText).select();},_onPermalinkTextKeyDown:function(q){if(c('Event').getKeyCode(q)==c('Keys').ESC)this.setState({permalinkVisible:false});},_onPermalinkTextMouseUp:function(q){q.preventDefault();},_getVideoDimensions:function(){var q,r;if(this.state.fullscreened){q=this.state.screenWidth;r=this.state.screenHeight;}else{var s=this.props.videoElem.getBoundingClientRect();q=s.width;r=s.height;}return {width:q,height:r};},_renderPermalinkLayerContent:function(q){var r=this.props.permalinkURL;if(r){var s={width:q+'px'};return (c('React').createElement('div',{className:"_26oo",style:s},c('React').createElement('input',{className:"_26op autofocus",onFocus:this._onPermalinkTextFocus,onKeyDown:this._onPermalinkTextKeyDown,onMouseUp:this._onPermalinkTextMouseUp,readOnly:true,ref:'permalinkText',type:'text',value:r}),c('React').createElement('button',{className:"_26oq",onClick:this._onHidePermalinkOverlay},i._("Close"))));}},renderLayers:function(){var q=this.props.permalinkURL&&this.state.permalinkVisible,r=0,s=0,t=null,u=this._getVideoDimensions(),v=u.width,w=u.height,x=v*m;r=v/2-x/2;s=-w+n;if(this.state.fullscreened)s+=o;t=this._renderPermalinkLayerContent(x);return {permalinkOverlay:c('React').createElement(c('ContextualLayer.react'),{alignment:'left',behaviors:[c('LayerHideOnEscape'),c('LayerAutoFocus')],contextRef:function(){return this.props.videoElem;}.bind(this),offsetX:r,offsetY:s,position:'below',ref:'permalinkLayer',shown:q},t)};},_renderPermalinkCopyOption:function(){if(this.props.permalinkURL)return (c('React').createElement(k,{onclick:this._onShowPermalinkOverlay,ref:'permalinkMenuItem'},i._("Show video URL")));},render:function(){var q=c('React').createElement(c('ReactXUIMenu'),{className:c('VideoContextMenuGK').menuRedesign?"_45di":''},c('React').createElement(k,{onclick:this._onTogglePause},this._renderTogglePauseLabel()),c('React').createElement(k,{onclick:this._onToggleMute},this._renderToggleMuteLabel()),this._renderPermalinkCopyOption(),this.props.children);return (c('React').createElement(c('MountedContextMenu.react'),{mountedTriggerElem:this.props.videoElem,menu:q,ref:'menu'}));}});f.exports=p;},null);
__d('VideoContextMenu',['EventListener','Bootloader','URI','React','ReactDOM','VideoPlayerHTML5ContextMenu.react','VideoPlayerReason','UserAgent','CurrentUser'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i,j,k){'use strict';this.$VideoContextMenu2=i;this.$VideoContextMenu3=k;this.$VideoContextMenu4=j;this.$VideoContextMenu1={};this.$VideoContextMenu5=null;if(this.$VideoContextMenu3.permalinkURL)this.$VideoContextMenu5=new (c('URI'))(this.$VideoContextMenu3.permalinkURL).getQualifiedURI().toString();var l=['muteVideo','unmuteVideo','changeVolume','beginPlayback','pausePlayback','finishPlayback'];i.addListener('optionsChange',function(){return this.$VideoContextMenu8();}.bind(this));this.$VideoContextMenu8();l.forEach(function(m){return (i.addListener(m,function(){return this.$VideoContextMenu9();}.bind(this)));}.bind(this));c('EventListener').listen(this.$VideoContextMenu2.getVideoNode(),'contextmenu',this.$VideoContextMenu10.bind(this));}h.prototype.$VideoContextMenu11=function(i,j,k,l){'use strict';c('Bootloader').loadModules(["VideoComponentOptionMenuItems"],function(m){if(!this.$VideoContextMenu7)this.$VideoContextMenu7=new m(this.$VideoContextMenu2,function(){return this.$VideoContextMenu9();}.bind(this));this.$VideoContextMenu7.addComponentOptionMenuItem(i,j,k,l);}.bind(this));};h.prototype.$VideoContextMenu8=function(){'use strict';if(this.$VideoContextMenu2.hasOption('DebugOverlay','hidden'))this.$VideoContextMenu11('DebugOverlay','hidden','Show Debug Information','Hide Debug Information');};h.prototype.$VideoContextMenu9=function(){'use strict';if(this.$VideoContextMenu6)this.$VideoContextMenu12();};h.prototype.$VideoContextMenu13=function(i,j){'use strict';if(!this.$VideoContextMenu7)return undefined;return this.$VideoContextMenu7.getComponentOptionMenuItem(i,j);};h.prototype.$VideoContextMenu12=function(){'use strict';var i=this.$VideoContextMenu13('DebugOverlay','hidden'),j=this.$VideoContextMenu2.getVideoNode();this.$VideoContextMenu6=c('ReactDOM').render(c('React').createElement(c('VideoPlayerHTML5ContextMenu.react'),{videoElem:j,paused:!this.$VideoContextMenu2.isState('playing'),muted:this.$VideoContextMenu2.isMuted(),permalinkURL:this.$VideoContextMenu5,onTogglePause:function(){return this.$VideoContextMenu14();}.bind(this),onToggleMute:function(){return this.$VideoContextMenu15();}.bind(this)},i),this.$VideoContextMenu4);};h.prototype.$VideoContextMenu15=function(){'use strict';if(this.$VideoContextMenu2.isMuted()){this.$VideoContextMenu2.unmute();}else this.$VideoContextMenu2.mute();};h.prototype.$VideoContextMenu14=function(){'use strict';var i=c('VideoPlayerReason').USER;if(!this.$VideoContextMenu2.isState('playing')){this.$VideoContextMenu2.play(i);}else this.$VideoContextMenu2.pause(i);};h.prototype.$VideoContextMenu10=function(i){'use strict';var j=c('CurrentUser').isEmployee()&&(c('UserAgent').isPlatform('Mac OS X')?i.getModifiers().meta:i.getModifiers().ctrl);if(j&&this.$VideoContextMenu6){var k=this.$VideoContextMenu2.getVideoNode();c('ReactDOM').unmountComponentAtNode(k);delete this.$VideoContextMenu6;}else if(!j&&!this.$VideoContextMenu6){i.preventDefault();this.$VideoContextMenu12();}};f.exports=h;},null);
__d('VideoCover',['invariant','Bootloader','CSS','EventListener'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();function i(j,k,l,m){var n=arguments.length<=4||arguments[4]===undefined?null:arguments[4];'use strict';!(l.length===j.getVideosCount())?h(0):void 0;this.$VideoCover1=k;this.$VideoCover2=l;this.$VideoCover3=m;this.$VideoCover4=j;if(n){this.$VideoCover5=n.hiddenAfterFinish;this.$VideoCover6=n.showWhileBuffering;this.$VideoCover7=n.showAfterFallback;}j.addListener('stateChange',function(){return this.$VideoCover8();}.bind(this));j.addListener('beginPlayback',this.$VideoCover9.bind(this));j.addListener('finishPlayback',this.$VideoCover10.bind(this));j.addListener('buffering',this.$VideoCover11.bind(this));j.addListener('buffered',this.$VideoCover12.bind(this));j.addListener('switchVideo',this.$VideoCover13.bind(this));c('EventListener').listen(this.$VideoCover1,'click',this.$VideoCover14.bind(this));}i.prototype.$VideoCover11=function(){'use strict';if(this.$VideoCover6)c('CSS').show(this.$VideoCover1);};i.prototype.$VideoCover12=function(){'use strict';if(this.$VideoCover6)c('CSS').hide(this.$VideoCover1);};i.prototype.getCurrentCover=function(){'use strict';return this.$VideoCover2[this.$VideoCover4.getVideoIndex()];};i.prototype.$VideoCover14=function(){'use strict';if(this.$VideoCover3!=null&&this.$VideoCover3.length>0){c('Bootloader').loadModules(["PhotoSnowlift"],function(j){return j.bootstrap(this.$VideoCover3);}.bind(this));}else this.$VideoCover4.clickVideo();};i.prototype.$VideoCover9=function(){'use strict';c('CSS').hide(this.$VideoCover1);};i.prototype.$VideoCover10=function(){'use strict';if(this.$VideoCover5)return;c('CSS').show(this.$VideoCover1);};i.prototype.$VideoCover13=function(){'use strict';this.$VideoCover2.forEach(function(j){return c('CSS').hide(j);});c('CSS').show(this.getCurrentCover());};i.prototype.$VideoCover8=function(){'use strict';if(this.$VideoCover4.isState('fallback')&&this.$VideoCover7)c('CSS').show(this.$VideoCover1);};f.exports=i;},null);
__d('EmbeddedVideoFullscreenControl.react',['cx','fbt','ix','AbstractVideoFullscreenControl.react','Image.react','React','ReactDOM','VideoPlayerExperiments','shallowCompare'],function a(b,c,d,e,f,g,h,i,j){'use strict';var k,l;if(c.__markCompiled)c.__markCompiled();var m=c('React').PropTypes;k=babelHelpers.inherits(n,c('React').Component);l=k&&k.prototype;n.prototype.shouldComponentUpdate=function(o,p){return c('shallowCompare')(this,o,p);};n.prototype.onMouseOut=function(o){c('ReactDOM').findDOMNode(this.refs.button).blur();};n.prototype.render=function(){var o=void 0;if(!c('VideoPlayerExperiments').fourArrowFullScreen){o=this.props.isFullscreen?j('/images/video/player/embedded_controls/icons/fullscreen-exit.png'):j('/images/video/player/embedded_controls/icons/fullscreen-enter.png');}else o=this.props.isFullscreen?j('/images/video/player/embedded_controls/icons/fullscreen-4arrow-exit.png'):j('/images/video/player/embedded_controls/icons/fullscreen-4arrow-enter.png');var p=c('React').createElement(c('Image.react'),{className:"_5i0o",src:o}),q=this.props.isFullscreen?i._("Exit Fullscreen"):i._("Enter Fullscreen");return (c('React').createElement(c('AbstractVideoFullscreenControl.react'),babelHelpers['extends']({},this.props,{'aria-label':q,className:"_3u33",image:p,onMouseOut:this.onMouseOut.bind(this),ref:'button',tabIndex:this.props.tabIndex,type:'button'})));};function n(){k.apply(this,arguments);}n.propTypes={isFullscreen:m.bool,onToggleFullscreen:m.func,tabIndex:m.string};f.exports=n;},null);
__d('EmbeddedVideoPlaybackControl.react',['cx','fbt','ix','AbstractButton.react','Image.react','React','ReactDOM','shallowCompare'],function a(b,c,d,e,f,g,h,i,j){var k,l;if(c.__markCompiled)c.__markCompiled();var m=c('React').PropTypes;k=babelHelpers.inherits(n,c('React').Component);l=k&&k.prototype;function n(o){'use strict';l.constructor.call(this,o);this.state={awaitingUpdate:false,isPlayingOverwrite:false};}n.prototype.shouldComponentUpdate=function(o,p){'use strict';return c('shallowCompare')(this,o,p);};n.prototype.isPlaying=function(){'use strict';if(this.state.awaitingUpdate)return this.state.isPlayingOverwrite;return this.props.isPlaying;};n.prototype.onButtonClick=function(){'use strict';var o=this.isPlaying();this.setState({awaitingUpdate:true,isPlayingOverwrite:!o});if(o){this.props.onPause&&this.props.onPause();}else this.props.onPlay&&this.props.onPlay();};n.prototype.componentWillReceiveProps=function(){'use strict';this.setState({awaitingUpdate:false});};n.prototype.onMouseOut=function(o){'use strict';c('ReactDOM').findDOMNode(this.refs.button).blur();};n.prototype.render=function(){'use strict';var o=null;if(this.props.finishedPlaying){o=j('/images/video/player/embedded_controls/icons/replay.png');}else o=this.isPlaying()?j('/images/video/player/embedded_controls/icons/pause.png'):j('/images/video/player/embedded_controls/icons/play.png');var p=c('React').createElement(c('Image.react'),{className:"_5i0o",src:o}),q=this.isPlaying()?i._("Pause"):i._("Play");return c('React').createElement(c('AbstractButton.react'),{'aria-label':q,className:"_3u33",image:p,onClick:this.onButtonClick.bind(this),onMouseOut:this.onMouseOut.bind(this),ref:'button',tabIndex:this.props.tabIndex,type:'button'});};n.propTypes={finishedPlaying:m.bool,isPlaying:m.bool,onPlay:m.func,onPause:m.func,tabIndex:m.string};f.exports=n;},null);
__d('EmbeddedVideoPlaybackTimer.react',['cx','React','joinClasses','shallowCompare'],function a(b,c,d,e,f,g,h){var i,j;if(c.__markCompiled)c.__markCompiled();var k=c('React').PropTypes;i=babelHelpers.inherits(l,c('React').Component);j=i&&i.prototype;function l(m){'use strict';j.constructor.call(this,m);this.state={displayRemainingTime:true};}l.prototype.shouldComponentUpdate=function(m,n){'use strict';return c('shallowCompare')(this,m,n);};l.prototype.getClock=function(m){'use strict';var n='';if(isNaN(m)){m=0;}else if(m<0){m*=-1;n='-';}m=Math.ceil(m);var o=Math.floor(m/3600),p=m-o*3600,q=Math.floor(p/60),r=Math.ceil(p-q*60),s=('0'+q).slice(-2),t=('0'+r).slice(-2);if(o===0){return n+q+':'+t;}else return n+o+':'+s+':'+t;};l.prototype.onButtonClick=function(){'use strict';this.setState({displayRemainingTime:!this.state.displayRemainingTime});};l.prototype.render=function(){'use strict';var m=this.state.displayRemainingTime?this.props.remainingTimestamp:this.props.playbackPosTimestamp,n="_4irg";if(this.props.isInScrubberPreview)n="_5lde";return (c('React').createElement('div',babelHelpers['extends']({},this.props,{className:c('joinClasses')(this.props.className,n),onClick:this.onButtonClick.bind(this)}),this.getClock(m)));};l.propTypes={isInScrubberPreview:k.bool,playbackPosTimestamp:k.number,remainingTimestamp:k.number};l.defaultProps={isInScrubberPreview:false,playbackPosTimestamp:0,remainingTimestamp:0};f.exports=l;},null);
__d('EmbeddedVideoScrubberPointOfInterestBar.react',['cx','EmbeddedVideoPlaybackTimer.react','React','ReactComponentWithPureRenderMixin'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'PointOfInterest',mixins:[c('ReactComponentWithPureRenderMixin')],propTypes:{playbackDuration:i.number.isRequired,timestamp:i.number.isRequired,onPointOfInterestSelect:i.func.isRequired},getInitialState:function(){return {visibility:'hidden'};},render:function(){var l=this.props.timestamp,m=l*100/this.props.playbackDuration+'%',n=c('React').createElement(c('EmbeddedVideoPlaybackTimer.react'),{className:"_2f0g",isInScrubberPreview:true,playbackPosTimestamp:0,remainingTimestamp:l,style:{left:m,visibility:this.state.visibility}});return (c('React').createElement('div',null,c('React').createElement('div',{style:{left:m},onClick:function(o){return this.props.onPointOfInterestSelect(l);}.bind(this),onMouseEnter:function(o){return this.setState({visibility:'visible'});}.bind(this),onMouseLeave:function(o){return this.setState({visibility:'hidden'});}.bind(this),className:"_2f0h"}),n));}}),k=c('React').createClass({displayName:'EmbeddedVideoScrubberPointOfInterestBar',propTypes:{tabIndex:i.string.isRequired,playbackDuration:i.number.isRequired,onPointOfInterestSelect:i.func.isRequired,pointsOfInterest:i.array.isRequired},shouldComponentUpdate:function(l,m){return (l.tabIndex!=this.props.tabIndex||l.playbackDuration!=this.props.playbackDuration||l.pointsOfInterest.length!=this.props.pointsOfInterest.length||l.pointsOfInterest.some(function(n,o){return this.props.pointsOfInterest[o]!=n;}.bind(this)));},_renderPointOfInterest:function(l){return (c('React').createElement(j,{key:'poi'+l,playbackDuration:this.props.playbackDuration,timestamp:l,onPointOfInterestSelect:this.props.onPointOfInterestSelect}));},render:function(){return (c('React').createElement('div',{className:"_2f0i",tabIndex:this.props.tabIndex},c('React').createElement('div',{className:"_2f0j"},this.props.pointsOfInterest.map(this._renderPointOfInterest,this))));}});f.exports=k;},null);
__d('VideoScrubberPreviewSpriteCalculation',[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={getImageCoordinatesInSpriteByTime:function(i,j){var k=this.getTotalTimeInSprite(j.maxImagesPerSprite,j.timeIntervalBetweenImages),l=Math.floor(i%k/j.timeIntervalBetweenImages),m=Math.floor(l/j.imagesPerRow),n=l%j.imagesPerRow;return {x:n*j.previewScrubberWidth,y:m*j.previewScrubberHeight};},getSpriteIndex:function(i,j,k){var l=this.getTotalTimeInSprite(j,k);return Math.floor(i/l)+1;},getTotalTimeInSprite:function(i,j){return i*j;}};f.exports=h;},null);
__d('EmbeddedVideoScrubber.react',['cx','fbt','EmbeddedVideoScrubberPointOfInterestBar.react','EventListener','Keys','Map','EmbeddedVideoPlaybackTimer.react','React','ReactDOM','VideoScrubberPreviewSpriteCalculation','getElementPosition','joinClasses','shallowCompare'],function a(b,c,d,e,f,g,h,i){var j,k;if(c.__markCompiled)c.__markCompiled();var l=c('React').PropTypes;j=babelHelpers.inherits(m,c('React').Component);k=j&&j.prototype;function m(n){'use strict';k.constructor.call(this,n);this.$EmbeddedVideoScrubber4=new (c('Map'))();this.$EmbeddedVideoScrubber4.set(0,'');this.state={awaitingUpdate:false,barCoords:{x:0,y:0,height:0,width:0},mouseOver:false,nubEngaged:false,previewRatio:0,scrubRatio:0,timecodeRatio:0,timecodeTimestamp:0,scrubberPreviewSpriteIndex:0,scrubberPreviewBackgroundPosition:{x:0,y:0},previewThumbnailInformation:{timeIntervalBetweenImages:0,maxImagesPerSprite:0,imagesPerRow:0,imagesPerColumn:0,previewScrubberWidth:0,previewScrubberHeight:0},lastSpriteDimension:{numRow:0,numColumn:0}};}m.prototype.shouldComponentUpdate=function(n,o){'use strict';return c('shallowCompare')(this,n,o);};m.prototype.onDragNubBegin=function(n){'use strict';if(n.button!==0)return;this.setState({nubEngaged:true,scrubRatio:this.getPositionRatio(n.clientX,this.state.barCoords)});this.props.onScrubBegin&&this.props.onScrubBegin();n.stopPropagation();n.preventDefault();};m.prototype.componentWillReceiveProps=function(){'use strict';this.setState({awaitingUpdate:false});};m.prototype.componentDidUpdate=function(n,o){'use strict';if(!o.nubEngaged&&this.state.nubEngaged){this.$EmbeddedVideoScrubber1=c('EventListener').listen(document,'mousemove',function(p){this.onDragNubUpdate(p);this.onTimecodeUpdate(p);}.bind(this));this.$EmbeddedVideoScrubber2=c('EventListener').listen(document,'mouseup',this.onDragNubRelease.bind(this));}else if(o.nubEngaged&&!this.state.nubEngaged){if(this.$EmbeddedVideoScrubber1)this.$EmbeddedVideoScrubber1.remove();if(this.$EmbeddedVideoScrubber2)this.$EmbeddedVideoScrubber2.remove();}if(!o.mouseOver&&this.state.mouseOver){this.$EmbeddedVideoScrubber3=c('EventListener').listen(document,'mousemove',this.onTimecodeUpdate.bind(this));}else if(o.mouseOver&&!this.state.mouseOver)if(this.$EmbeddedVideoScrubber3)this.$EmbeddedVideoScrubber3.remove();};m.prototype.onTimecodeUpdate=function(n){'use strict';var o=this.props.playbackDuration;if(!o)return;var p=this.getPositionRatio(n.clientX,this.state.barCoords)*o,q=this.$EmbeddedVideoScrubber5?this.$EmbeddedVideoScrubber5:c('getElementPosition')(c('ReactDOM').findDOMNode(this.refs.timecode));this.$EmbeddedVideoScrubber5=q;if(!this.props.hasScrubberPreview){var r=this.getPositionRatio(n.clientX,this.state.barCoords)-Math.ceil(q.width/2)/this.state.barCoords.width;this.setState({timecodeTimestamp:p,timecodeRatio:r});}else if(this.props.previewThumbnailInformation){if(this.state.previewThumbnailInformation.previewScrubberWidth===0)this.retrievePreviewThumbnailInfo();c('ReactDOM').unstable_batchedUpdates(function(){return (this.props.scrubberPreviewSprites&&this.updatePreviewThumbnail(this.props.scrubberPreviewSprites,p,q,n.clientX));}.bind(this));}n.preventDefault();n.stopPropagation();};m.prototype.updatePreviewThumbnail=function(n,o,p,q){'use strict';this.setState({timecodeTimestamp:o});var r=Math.floor(o),s=this.$EmbeddedVideoScrubber4;if(!this.isSpriteMapURIFetched())this.$EmbeddedVideoScrubber4=n;if(this.state.previewThumbnailInformation){var t=this.state.previewThumbnailInformation;this.updatePreviewThumbnailImage(r,t,s);}this.updatePreviewThumbnailLocation(p,q);};m.prototype.updatePreviewThumbnailLocation=function(n,o){'use strict';var p=this.$EmbeddedVideoScrubber6?this.$EmbeddedVideoScrubber6:this.$EmbeddedVideoScrubber6=c('getElementPosition')(c('ReactDOM').findDOMNode(this.refs.previewThumbnailContainer));this.$EmbeddedVideoScrubber6=p;var q=this.getPositionRatio(o,this.state.barCoords)-Math.ceil(p.width/2)/this.state.barCoords.width,r=(p.width-n.width)/(2*p.width);this.setState({timecodeRatio:r,previewRatio:q});};m.prototype.updatePreviewThumbnailImage=function(n,o,p){var q=this;'use strict';var r=c('VideoScrubberPreviewSpriteCalculation').getImageCoordinatesInSpriteByTime(n,o),s=c('VideoScrubberPreviewSpriteCalculation').getSpriteIndex(n,o.maxImagesPerSprite,o.timeIntervalBetweenImages);if(s==this.getNumberOfSprites()&&this.state.lastSpriteDimension.numRow==0&&this.$EmbeddedVideoScrubber4)(function(){var t=q.$EmbeddedVideoScrubber4.get(s),u=new Image(),v=q.onLastImageLoad.bind(q);u.onload=function(){v(this.width,this.height);};u.src=t;})();this.setState({scrubberPreviewSpriteIndex:s,scrubberPreviewBackgroundPosition:r});};m.prototype.onLastImageLoad=function(n,o){'use strict';this.setState({lastSpriteDimension:{numRow:o/this.state.previewThumbnailInformation.previewScrubberHeight,numColumn:n/this.state.previewThumbnailInformation.previewScrubberWidth}});};m.prototype.retrievePreviewThumbnailInfo=function(){'use strict';this.setState({previewThumbnailInformation:this.props.previewThumbnailInformation});};m.prototype.isSpriteMapURIFetched=function(){'use strict';if(this.$EmbeddedVideoScrubber4){return this.$EmbeddedVideoScrubber4.size>1;}else return false;};m.prototype.onPreviewThumbnailUpdate=function(n,o,p){'use strict';if(p){p.set(0,'');this.$EmbeddedVideoScrubber4=p;}this.setState({scrubberPreviewSpriteIndex:n,scrubberPreviewBackgroundPosition:o});};m.prototype.getPositionRatio=function(n,o){'use strict';var p=n-o.x,q=p/o.width;return Math.min(Math.max(0,q),1);};m.prototype.onDragNubUpdate=function(n){'use strict';this.setState({scrubRatio:this.getPositionRatio(n.clientX,this.state.barCoords)});};m.prototype.onDragNubRelease=function(n){'use strict';var o=this.props.playbackDuration;if(!o)return;var p=this.state.awaitingUpdate;if(this.props.onScrubEnd){this.props.onScrubEnd(this.state.scrubRatio*o);p=true;}this.setState({nubEngaged:false,awaitingUpdate:p});n.preventDefault();n.stopPropagation();};m.prototype.getPlayedRatio=function(){'use strict';var n=this.props.playbackDuration,o=this.props.playbackPosition;if(!n||!o)return 0;if(this.state.nubEngaged||this.state.awaitingUpdate)return this.state.scrubRatio;var p=o/n;return this.getRangeLimitedRatio(p);};m.prototype.getBufferedRatio=function(){'use strict';var n=this.props.playbackDuration,o=this.props.bufferedPosition;if(!n||!o)return 0;var p=o/n;return this.getRangeLimitedRatio(p);};m.prototype.getRangeLimitedRatio=function(n){'use strict';if(isNaN(n)||n<0||n>1)return 0;return n;};m.prototype.getNumberOfSprites=function(){'use strict';if(this.$EmbeddedVideoScrubber4)return this.$EmbeddedVideoScrubber4.size;return 0;};m.prototype.onMouseEnter=function(n){'use strict';var o=c('getElementPosition')(c('ReactDOM').findDOMNode(this.refs.bar));this.setState({mouseOver:true,barCoords:o});};m.prototype.onMouseLeave=function(n){'use strict';c('ReactDOM').findDOMNode(this.refs.bar).blur();c('ReactDOM').unstable_batchedUpdates(function(){this.setState({mouseOver:false});if(!this.state.nubEngaged)this.setState({scrubberPreviewSpriteIndex:0,scrubberPreviewBackgroundPosition:{x:0,y:0}});}.bind(this));this.$EmbeddedVideoScrubber6=null;this.$EmbeddedVideoScrubber5=null;};m.prototype.onMouseEnterOnThumbnailOrTimecode=function(n){'use strict';if(this.state.nubEngaged)return;var o=void 0;if(this.props.hasScrubberPreview){o=this.refs.previewThumbnailContainer;}else o=this.refs.timecode;var p=c('ReactDOM').findDOMNode(o);p.style.visibility='hidden';};m.prototype.onMouseLeaveOnThumbnailOrTimecode=function(n){'use strict';if(this.state.nubEngaged)return;var o=void 0;if(this.props.hasScrubberPreview){o=this.refs.previewThumbnailContainer;}else o=this.refs.timecode;var p=c('ReactDOM').findDOMNode(o);p.style.visibility='visible';};m.prototype.onKeyDown=function(n){'use strict';var o=this.props.playbackDuration,p=this.props.playbackPosition;if(!o||!p)return;var q=p;if(n.keyCode===c('Keys').RIGHT){n.preventDefault();n.stopPropagation();q+=5;if(q>=o)q=o-.01;}else if(n.keyCode===c('Keys').LEFT){n.preventDefault();n.stopPropagation();q-=5;if(q<0)q=0;}else return;if(this.props.onScrubEnd)this.props.onScrubEnd(q);};m.prototype.render=function(){'use strict';var n=c('joinClasses')(this.props.className,"_gn0"+(this.state.nubEngaged?' '+"_gn1":'')),o=(this.props.hasScrubberPreview?"_24wr":'')+(!this.props.hasScrubberPreview?' '+"_4irh":''),p={width:this.getPlayedRatio()*100+'%'},q={width:this.getBufferedRatio()*100+'%'},r={left:this.state.timecodeRatio*100+'%'},s={},t={},u=null,v=null;if(this.state.mouseOver||this.state.nubEngaged){v=c('React').createElement(c('EmbeddedVideoPlaybackTimer.react'),{className:o,isInScrubberPreview:true,onMouseEnter:this.onMouseEnterOnThumbnailOrTimecode.bind(this),onMouseLeave:this.onMouseLeaveOnThumbnailOrTimecode.bind(this),playbackPosTimestamp:0,ref:'timecode',remainingTimestamp:this.state.timecodeTimestamp,style:r});if(this.props.hasScrubberPreview&&this.state.previewThumbnailInformation&&this.$EmbeddedVideoScrubber4){var w='';if(this.state.scrubberPreviewSpriteIndex)w='url('+this.$EmbeddedVideoScrubber4.get(this.state.scrubberPreviewSpriteIndex)+')';var x=void 0;if(this.getNumberOfSprites()!==this.state.scrubberPreviewSpriteIndex){x=100*this.state.previewThumbnailInformation.imagesPerRow+'% '+100*this.state.previewThumbnailInformation.imagesPerColumn+'%';}else if(this.state.lastSpriteDimension.numRow){x=100*this.state.lastSpriteDimension.numColumn+'%'+100*this.state.lastSpriteDimension.numRow+'%';}else w='';var y=1;if(this.props.isFullscreen)y=2;s={width:this.state.previewThumbnailInformation.previewScrubberWidth*y+'px',height:this.state.previewThumbnailInformation.previewScrubberHeight*y+'px',backgroundImage:w,backgroundPosition:'-'+this.state.scrubberPreviewBackgroundPosition.x*y+'px '+'-'+this.state.scrubberPreviewBackgroundPosition.y*y+'px',backgroundSize:x};t={left:this.state.previewRatio*100+'%'};u=c('React').createElement('div',{onMouseEnter:this.onMouseEnterOnThumbnailOrTimecode.bind(this),onMouseLeave:this.onMouseLeaveOnThumbnailOrTimecode.bind(this),className:"_24ws",ref:'previewThumbnailContainer',style:t},c('React').createElement('div',{className:"_24wt",ref:'previewThumbnail',style:s}),v);}}var z=null;if(this.props.pointsOfInterest.length>0)z=c('React').createElement(c('EmbeddedVideoScrubberPointOfInterestBar.react'),{tabIndex:this.props.tabIndex,playbackDuration:this.props.playbackDuration,onPointOfInterestSelect:this.props.onPointOfInterestSelect,pointsOfInterest:this.props.pointsOfInterest});var aa=c('React').createElement('div',{onMouseDown:this.onDragNubBegin.bind(this),onMouseEnter:this.onMouseEnter.bind(this),onMouseLeave:this.onMouseLeave.bind(this),onKeyDown:this.onKeyDown.bind(this),className:n},c('React').createElement('div',{tabIndex:this.props.tabIndex,'aria-label':i._("Change Position"),className:"_gn2",ref:'bar'},c('React').createElement('div',{className:"_gn3",style:q}),c('React').createElement('div',{style:p,className:"_gn4"},c('React').createElement('div',{className:"_gn5 _5ixx"})),this.props.hasScrubberPreview?u:v));return (c('React').createElement('div',null,aa,z));};m.propTypes={bufferedPosition:l.number.isRequired,hasScrubberPreview:l.bool,isFullscreen:l.bool,onScrubBegin:l.func.isRequired,onPointOfInterestSelect:l.func,onScrubEnd:l.func.isRequired,playbackDuration:l.number.isRequired,playbackPosition:l.number.isRequired,pointsOfInterest:l.array,previewThumbnailInformation:l.object,scrubberPreviewSprites:l.object,tabIndex:l.string.isRequired};m.defaultProps={hasScrubberPreview:false,pointsOfInterest:[],onPointOfInterestSelect:function(){}};f.exports=m;},null);
__d('EmbeddedVideoVolumeSlider.react',['cx','EventListener','React','ReactDOM','getElementPosition','shallowCompare'],function a(b,c,d,e,f,g,h){var i,j;if(c.__markCompiled)c.__markCompiled();var k=c('React').PropTypes;i=babelHelpers.inherits(l,c('React').Component);j=i&&i.prototype;function l(m){'use strict';j.constructor.call(this,m);this.state={awaitingUpdate:false,engaged:false,volume:m.volume};}l.prototype.shouldComponentUpdate=function(m,n){'use strict';return c('shallowCompare')(this,m,n);};l.prototype.componentWillReceiveProps=function(m){'use strict';this.setState({awaitingUpdate:false});};l.prototype.componentDidUpdate=function(m,n){'use strict';if(!this.state.engaged&&n.engaged){if(this.$EmbeddedVideoVolumeSlider2)this.$EmbeddedVideoVolumeSlider2.remove();if(this.$EmbeddedVideoVolumeSlider1)this.$EmbeddedVideoVolumeSlider1.remove();}else if(this.state.engaged&&!n.engaged){this.$EmbeddedVideoVolumeSlider1=c('EventListener').listen(document,'mousemove',this.onMouseMove.bind(this));this.$EmbeddedVideoVolumeSlider2=c('EventListener').listen(document,'mouseup',this.onMouseUp.bind(this));}};l.prototype.onMouseDown=function(m){'use strict';if(m.button!==0)return;this.props.onVolumeChangeBegin&&this.props.onVolumeChangeBegin(this.state.volume);this.setState({engaged:true,volume:this.getClampedClickPositionVolume(m.clientY)});m.preventDefault();m.stopPropagation();};l.prototype.getClampedClickPositionVolume=function(m){'use strict';var n=c('getElementPosition')(c('ReactDOM').findDOMNode(this.refs.slider)),o=c('getElementPosition')(c('ReactDOM').findDOMNode(this.refs.nub)).height,p=n.y-m+n.height+o/2;return Math.max(0,Math.min(1,p/n.height));};l.prototype.onMouseUp=function(m){'use strict';this.props.onVolumeChangeEnd&&this.props.onVolumeChangeEnd(this.state.volume);this.setState({engaged:false,awaitingUpdate:true});m.preventDefault();m.stopPropagation();};l.prototype.onMouseMove=function(m){'use strict';this.setState({volume:this.getClampedClickPositionVolume(m.clientY)});this.props.onVolumeChange&&this.props.onVolumeChange(this.state.volume);m.preventDefault();m.stopPropagation();};l.prototype.getVolume=function(){'use strict';if(this.state.engaged||this.state.awaitingUpdate)return this.state.volume;return this.props.volume;};l.prototype.render=function(){'use strict';var m={height:Math.round(this.getVolume()*100)+'%'},n="_2-ml"+(this.state.engaged?' '+"_gn1":'');return c('React').createElement('div',{className:n,onMouseDown:this.onMouseDown.bind(this)},c('React').createElement('div',{className:"_3ghu"},c('React').createElement('div',{className:"_2-mm",ref:'slider'},c('React').createElement('div',{className:"_2-mn",style:m},c('React').createElement('div',{className:"_2-mo _5ixx",ref:'nub'})))),c('React').createElement('div',{className:"_2-mp"}));};l.propTypes={volume:k.number,onVolumeChangeBegin:k.func,onVolumeChangeEnd:k.func,onVolumeChange:k.func};l.defaultProps={volume:0,onVolumeChange:function(m){},onVolumeChangeBegin:function(m){},onVolumeChangeEnd:function(m){}};f.exports=l;},null);
__d('EmbeddedVideoVolumeControl.react',['cx','fbt','invariant','ix','AbstractButton.react','Image.react','Keys','React','ReactDOM','VideoPlayerExperiments','VideoPlayerVolumeSettings','EmbeddedVideoVolumeSlider.react','shallowCompare'],function a(b,c,d,e,f,g,h,i,j,k){var l,m;if(c.__markCompiled)c.__markCompiled();var n=c('React').PropTypes;l=babelHelpers.inherits(o,c('React').Component);m=l&&l.prototype;function o(p){'use strict';m.constructor.call(this,p);this.state={nubEngaged:false,focused:false,lastVolumeBeforeMute:1};}o.prototype.shouldComponentUpdate=function(p,q){'use strict';return c('shallowCompare')(this,p,q);};o.prototype.onButtonClick=function(){'use strict';this.checkLastVolumeBeforeMuteInvariant();if(this.props.volume===0)return this.onSliderVolumeChange(this.state.lastVolumeBeforeMute);this.props.onToggleMuted&&this.props.onToggleMuted();};o.prototype.onButtonFocus=function(){'use strict';this.setState({focused:true});};o.prototype.onButtonBlur=function(){'use strict';this.setState({focused:false});};o.prototype.onKeyDown=function(p){'use strict';var q=this.props.volume;if(p.keyCode===c('Keys').UP){p.preventDefault();p.stopPropagation();q+=.05;if(q>1)q=1;}else if(p.keyCode===c('Keys').DOWN){p.preventDefault();p.stopPropagation();q-=.05;if(q<0)q=0;}else return;this.onSliderVolumeChangeEnd(q);};o.prototype.onMouseOut=function(p){'use strict';c('ReactDOM').findDOMNode(this.refs.button).blur();};o.prototype.getVolume=function(){'use strict';if(this.props.isMuted)return 0;return this.props.volume;};o.prototype.onSliderVolumeChangeBegin=function(){'use strict';var p=this.props.volume;if(p>0){this.setState({nubEngaged:true,lastVolumeBeforeMute:p});c('VideoPlayerVolumeSettings').saveLastVolumeBeforeMute(p);}};o.prototype.onSliderVolumeChangeEnd=function(p){'use strict';if(p>0){this.setState({lastVolumeBeforeMute:p});c('VideoPlayerVolumeSettings').saveLastVolumeBeforeMute(p);}this.onSliderVolumeChange(p);this.setState({nubEngaged:false});};o.prototype.onSliderVolumeChange=function(p){'use strict';if(p>0&&this.props.isMuted)this.props.onToggleMuted&&this.props.onToggleMuted();this.props.onVolumeChange&&this.props.onVolumeChange(p);};o.prototype.checkLastVolumeBeforeMuteInvariant=function(){'use strict';!(this.state.lastVolumeBeforeMute>0&&this.state.lastVolumeBeforeMute<=1)?j(0):void 0;};o.prototype.render=function(){'use strict';var p=Math.round(this.getVolume()*100),q=null;if(p==0){q=c('React').createElement(c('Image.react'),{className:"_5i0o",src:k('/images/video/player/embedded_controls/icons/muted.png')});}else{var r=null;if(p<=33){r=k('/images/video/player_redesign/sound_1_bar.png');}else if(p<=66){r=k('/images/video/player_redesign/sound_2_bar.png');}else r=k('/images/video/player_redesign/sound.png');q=c('React').createElement('div',{className:"_44_"},c('React').createElement('div',{className:"_454"},c('React').createElement(c('Image.react'),{className:"_5i0o",src:r})));}var s="_3s02"+(this.state.nubEngaged?' '+"_gn1":'')+(this.state.focused?' '+"_4v4":''),t="_3u33"+(' '+"_3s03")+(!this.getVolume()&&!c('VideoPlayerExperiments').redesign?' '+"_17bp":''),u=!this.getVolume()?i._("Unmute"):i._("Mute");return c('React').createElement('div',{className:s},c('React').createElement(c('EmbeddedVideoVolumeSlider.react'),{onVolumeChangeBegin:this.onSliderVolumeChangeBegin.bind(this),onVolumeChangeEnd:this.onSliderVolumeChangeEnd.bind(this),onVolumeChange:this.onSliderVolumeChange.bind(this),volume:this.getVolume()}),c('React').createElement(c('AbstractButton.react'),{'aria-label':u,className:t,image:q,onClick:this.onButtonClick.bind(this),onFocus:this.onButtonFocus.bind(this),onBlur:this.onButtonBlur.bind(this),onKeyDown:this.onKeyDown.bind(this),onMouseOut:this.onMouseOut.bind(this),ref:'button',tabIndex:this.props.tabIndex,type:'button'}));};o.propTypes={isMuted:n.bool,onVolumeChange:n.func,onToggleMuted:n.func,tabIndex:n.string,volume:n.number};f.exports=o;},null);
__d('EmbeddedVideoControls.react',['cx','fbt','ix','BootloadedComponent.react','AbstractButton.react','EmbeddedVideoFullscreenControl.react','Image.react','JSResource','EmbeddedVideoPlaybackControl.react','EmbeddedVideoPlaybackTimer.react','React','ReactDOM','EmbeddedVideoScrubber.react','EmbeddedVideoVolumeControl.react','VideoPlayerExperiments','shallowCompare'],function a(b,c,d,e,f,g,h,i,j){var k,l;if(c.__markCompiled)c.__markCompiled();var m=c('React').PropTypes;k=babelHelpers.inherits(n,c('React').Component);l=k&&k.prototype;function n(o){'use strict';l.constructor.call(this,o);}n.prototype.shouldComponentUpdate=function(o,p){'use strict';return c('shallowCompare')(this,o,p);};n.prototype.isHidden=function(){'use strict';return this.props.hidden;};n.prototype.isTransparent=function(){'use strict';return this.props.transparent;};n.prototype.onMouseOut=function(o){'use strict';c('ReactDOM').findDOMNode(this.refs.button).blur();};n.prototype.render=function(){'use strict';var o=(!c('VideoPlayerExperiments').redesign?"_17l4":'')+(' '+"_2mbh")+(this.isHidden()?' '+"_2mbi":'')+(this.isTransparent()?' '+"_5744":''),p=(c('VideoPlayerExperiments').redesign&&c('VideoPlayerExperiments').noanim?"_fwi":'')+(c('VideoPlayerExperiments').redesign&&c('VideoPlayerExperiments').noshadow?' '+"_fwj":'')+(c('VideoPlayerExperiments').redesign?' '+"_i5q":''),q="_2mbj _2mbk",r="_2mbj _yaw",s="_2mbj _2mbl",t="_5rbl",u="_4lqt _4ubd",v=null;if(!this.props.isLive){var w=this.props.playbackPosition-this.props.playbackDuration;v=c('React').createElement(c('EmbeddedVideoPlaybackTimer.react'),{className:"_25e2",playbackPosTimestamp:this.props.playbackPosition,remainingTimestamp:Math.round(w)});}var x=null,y=null,z=null,aa=null;if(!this.props.isLive){if(!this.props.hideSettings)if(c('VideoPlayerExperiments').redesign){z=c('React').createElement(c('BootloadedComponent.react'),{bootloadLoader:c('JSResource')('EmbeddedVideoSettingsControl.react'),bootloadPlaceholder:c('React').createElement('span',null),hasHD:this.props.hasHD,hasSubtitles:this.props.hasSubtitles,isHD:this.props.isHD,areSubtitlesActive:this.props.areSubtitlesActive,onToggleHD:this.props.onToggleHD,onToggleSubtitles:this.props.onToggleSubtitles});}else{if(this.props.hasHD)x=c('React').createElement(c('BootloadedComponent.react'),{bootloadLoader:c('JSResource')('EmbeddedVideoQualityControl.react'),bootloadPlaceholder:c('React').createElement('span',null),isHD:this.props.isHD,onToggleHD:this.props.onToggleHD,tabIndex:'0'});if(this.props.hasSubtitles)y=c('React').createElement(c('BootloadedComponent.react'),{bootloadPlaceholder:c('React').createElement('span',null),bootloadLoader:c('JSResource')('EmbeddedVideoClosedCaptionsControl.react'),areClosedCaptionsActive:this.props.areSubtitlesActive,onToggleClosedCaptions:this.props.onToggleSubtitles,tabIndex:'0'});}}else if(c('VideoPlayerExperiments').hlsButton)aa=c('React').createElement(c('BootloadedComponent.react'),{bootloadPlaceholder:c('React').createElement('span',null),bootloadLoader:c('JSResource')('EmbeddedVideoToHLSControl.react'),areHLSActive:this.props.areHLSActive,onToggleHLS:this.props.onToggleHLS,tabIndex:'0'});var ba=null;if(this.props.allowFullscreen)ba=c('React').createElement(c('EmbeddedVideoFullscreenControl.react'),{isFullscreen:this.props.isFullscreen,onToggleFullscreen:this.props.onToggleFullscreen,tabIndex:'0'});var ca=null;if(this.props.hasWatchAndScroll&&!this.props.isFullscreen)ca=c('React').createElement(c('BootloadedComponent.react'),{bootloadPlaceholder:c('React').createElement('span',null),bootloadLoader:c('JSResource')('EmbeddedVideoWatchAndScrollControl.react'),onEnterWatchAndScroll:this.props.onEnterWatchAndScroll});var da=null;if(this.props.allowChromecast&&this.props.hasFoundReceiver)da=c('React').createElement(c('BootloadedComponent.react'),{bootloadPlaceholder:c('React').createElement('span',null),bootloadLoader:c('JSResource')('EmbeddedVideoChromecastControl.react'),hasFoundReceiver:this.props.hasFoundReceiver,isCasting:this.props.isCasting,isCastingSupported:this.props.isCastingSupported,onStartCast:this.props.onStartCast,onStopCast:this.props.onStopCast});var ea=null,fa=null;if(this.props.permalinkURL){fa=c('React').createElement(c('Image.react'),{className:"_5fp_",src:j('/images/video/player/embedded_controls/icons/fb-logo.png')});ea=c('React').createElement(c('AbstractButton.react'),{'aria-label':i._("Open in a new tab"),className:"_3u33",href:this.props.permalinkURL,image:fa,onMouseOut:this.onMouseOut.bind(this),ref:'button',tabIndex:'0',target:'_blank',type:'button'});}var ga=null,ha=null;if(!this.props.isLive){ha=c('React').createElement(c('EmbeddedVideoPlaybackControl.react'),{finishedPlaying:this.props.finishedPlaying,isPlaying:this.props.isPlaying,onPause:this.props.onPause,onPlay:this.props.onPlay,tabIndex:'0'});ga=c('React').createElement(c('EmbeddedVideoScrubber.react'),{bufferedPosition:this.props.bufferedPosition,hasScrubberPreview:this.props.hasScrubberPreview,isFullscreen:this.props.isFullscreen,onScrubBegin:this.props.onScrubBegin,onScrubEnd:this.props.onScrubEnd,playbackDuration:this.props.playbackDuration,playbackPosition:this.props.playbackPosition,previewThumbnailInformation:this.props.previewThumbnailInformation,scrubberPreviewSprites:this.props.scrubberPreviewSprites,onPointOfInterestSelect:this.props.onPointOfInterestSelect,pointsOfInterest:this.props.pointsOfInterest,tabIndex:'0'});}var ia=null;if(c('VideoPlayerExperiments').redesign)ia=c('React').createElement('div',{className:"_4lqu"+(this.isTransparent()?' '+"_5744":'')});return (c('React').createElement('div',{className:p},ia,c('React').createElement('div',{className:u},c('React').createElement('div',{className:t},c('React').createElement('div',{className:o},c('React').createElement('div',{className:q},ha),c('React').createElement('div',{className:r},ga),c('React').createElement('div',{className:s},v,c('React').createElement(c('EmbeddedVideoVolumeControl.react'),{isMuted:this.props.isMuted,onToggleMuted:this.props.onToggleMuted,onVolumeChange:this.props.onVolumeChange,volume:this.props.volume,tabIndex:'0'}),y,aa,x,z,ca,da,ba,ea))))));};n.propTypes={allowFullscreen:m.bool,finishedPlaying:m.bool,hasHD:m.bool,hasSubtitles:m.bool,hasWatchAndScroll:m.bool,hidden:m.bool,isFullscreen:m.bool,isHD:m.bool,isLive:m.bool,isMuted:m.bool,isPlaying:m.bool,areSubtitlesActive:m.bool,areHLSActive:m.bool,onEnterWatchAndScroll:m.func,onPause:m.func,onPlay:m.func,onSeek:m.func,onToggleFullscreen:m.func,onToggleHD:m.func,onToggleHLS:m.func,onToggleMuted:m.func,onToggleSubtitles:m.func,onVolumeChange:m.func,permalinkURL:m.string,playbackDuration:m.number,playbackPosition:m.number,transparent:m.bool,volume:m.number,scrubberPreviewSprites:m.object,hasScrubberPreview:m.bool,previewThumbnailInformation:m.object,onPointOfInterestSelect:m.func,pointsOfInterest:m.array};n.defaultProps={allowChromecast:false,bufferedPosition:0,hasFoundReceiver:false,hidden:false,isCasting:false,isCastingSupported:false,isMuted:false,isPlaying:false,onStartCast:function(){},onStopCast:function(){},playbackDuration:0,playbackPosition:0,transparent:false,volume:0};f.exports=n;},null);
__d('EmbeddedVideoControls',['DeferredComponent.react','EventListener','FullScreen','Map','React','ReactDOM','VideoPlayerExperiments','VideoPlayerReason','cancelAnimationFrame','containsNode','destroyOnUnload','getActiveElement','logVideosClickTracking','requestAnimationFrame','throttle','VideoChannelViewGatings'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i,j,k){'use strict';this.$EmbeddedVideoControls6=i;this.$EmbeddedVideoControls34=j;this.$EmbeddedVideoControls5=0;this.$EmbeddedVideoControls29=0;this.$EmbeddedVideoControls28=0;this.$EmbeddedVideoControls9=0;this.$EmbeddedVideoControls39=false;this.$EmbeddedVideoControls17=k.hideOnEvents.autoplay;this.$EmbeddedVideoControls18=k.hideOnEvents.finish;this.$EmbeddedVideoControls15=k.hideOnEvents.pause;this.$EmbeddedVideoControls16=k.hideSettings;this.$EmbeddedVideoControls13=k.showButtons.watchandscroll;this.$EmbeddedVideoControls1=k.showButtons.chromecast;this.$EmbeddedVideoControls2=k.showButtons.fullscreen&&!!c('FullScreen').isSupported();this.$EmbeddedVideoControls27=k.permalinkURL;this.$EmbeddedVideoControls22=k.isLive;this.$EmbeddedVideoControls32=c('VideoPlayerExperiments').redesign;this.$EmbeddedVideoControls14=false;this.$EmbeddedVideoControls41=this.enterWatchAndScroll.bind(this);this.$EmbeddedVideoControls43=this.play.bind(this);this.$EmbeddedVideoControls42=this.pause.bind(this);this.$EmbeddedVideoControls44=this.scrubBegin.bind(this);this.$EmbeddedVideoControls45=this.scrubEnd.bind(this);this.$EmbeddedVideoControls36=this.startCasting.bind(this);this.$EmbeddedVideoControls37=this.stopCasting.bind(this);this.$EmbeddedVideoControls46=this.toggleFullscreen.bind(this);this.$EmbeddedVideoControls47=this.toggleHD.bind(this);this.$EmbeddedVideoControls48=this.toggleHLS.bind(this);this.$EmbeddedVideoControls49=this.toggleMuted.bind(this);this.$EmbeddedVideoControls50=this.toggleSubtitles.bind(this);this.$EmbeddedVideoControls40=this.changeVolume.bind(this);c('destroyOnUnload')(function(){return c('ReactDOM').unmountComponentAtNode(j);});var l=this.$EmbeddedVideoControls6.getRootNode();c('EventListener').listen(this.$EmbeddedVideoControls34,'focusin',function(){this.$EmbeddedVideoControls8=true;this.scheduleRenderReactComponent();}.bind(this));c('EventListener').listen(this.$EmbeddedVideoControls34,'focusout',function(){if(!c('containsNode')(this.$EmbeddedVideoControls34,c('getActiveElement')())){this.$EmbeddedVideoControls8=false;this.scheduleRenderReactComponent();}}.bind(this));c('EventListener').listen(l,'click',function(n){if(this.$EmbeddedVideoControls8&&n.detail)c('getActiveElement')().blur();}.bind(this));c('EventListener').listen(l,'mouseleave',function(){this.$EmbeddedVideoControls25=false;this.scheduleRenderReactComponent();}.bind(this));c('EventListener').listen(l,'mouseenter',function(){this.$EmbeddedVideoControls25=true;this.scheduleRenderReactComponent();}.bind(this));this.$EmbeddedVideoControls6.registerOption('VideoControls','acquireForceHideLock',function(){this.$EmbeddedVideoControls9++;return {release:function(){this.$EmbeddedVideoControls9--;this.scheduleRenderReactComponent();}.bind(this)};}.bind(this));this.$EmbeddedVideoControls6.registerOption('VideoControls','hideOnFinish',function(){return this.$EmbeddedVideoControls18;}.bind(this),function(n){return this.$EmbeddedVideoControls18=n;}.bind(this));this.$EmbeddedVideoControls6.registerOption('VideoControls','hideOnPause',function(){return this.$EmbeddedVideoControls15;}.bind(this),function(n){return this.$EmbeddedVideoControls15=n;}.bind(this));this.$EmbeddedVideoControls6.registerOption('VideoControls','available',function(){return true;});this.$EmbeddedVideoControls6.registerOption('VideoControls','areControlsVisible',this.areControlsVisible.bind(this));c('EventListener').listen(this.$EmbeddedVideoControls6.getRootNode(),'mousemove',c('throttle')(this.flashControls.bind(this),200));this.scheduleRenderReactComponent();var m=['changeVolume','loadedSubtitles','muteVideo','pausePlayback','stateChange','toggleFullscreen','toggleSubtitles','updateMetadata','unmuteVideo','qualityChange','chromecast/receiverStateChange','chromecast/supportStateChange','chromecast/castingStateChange','chromecast/playStateChange'];m.forEach(function(event){return this.$EmbeddedVideoControls6.addListener(event,function(){return this.scheduleRenderReactComponentWithVideoInfoUpdate();}.bind(this));}.bind(this));this.$EmbeddedVideoControls6.addListener('beginPlayback',function(){return this.$EmbeddedVideoControls51();}.bind(this));this.$EmbeddedVideoControls6.addListener('updateStatus',function(n){this.$EmbeddedVideoControls29=n.position;this.scheduleRenderReactComponent();}.bind(this));this.$EmbeddedVideoControls6.addListener('updateBuffer',function(n){this.$EmbeddedVideoControls5=n.duration+n.offset;this.scheduleRenderReactComponent();}.bind(this));this.$EmbeddedVideoControls6.addListener('optionsChange',function(n){this.$EmbeddedVideoControls52();}.bind(this));this.$EmbeddedVideoControls6.addListener('resumeAutoplay',function(n){this.$EmbeddedVideoControls53();this.scheduleRenderReactComponentWithVideoInfoUpdate();}.bind(this));this.$EmbeddedVideoControls6.addListener('turnOffAutoplay',function(n){this.$EmbeddedVideoControls19=false;}.bind(this));this.$EmbeddedVideoControls53();this.$EmbeddedVideoControls54();}h.prototype.$EmbeddedVideoControls55=function(){'use strict';return this.$EmbeddedVideoControls6.isState('playing')&&this.$EmbeddedVideoControls6.getOption('FeedAutoplay','isAutoplaying');};h.prototype.$EmbeddedVideoControls54=function(){'use strict';this.$EmbeddedVideoControls35=this.$EmbeddedVideoControls6.getOption('VideoScrubberPreviewComponent','scrubberPreviewSprites');this.$EmbeddedVideoControls11=this.$EmbeddedVideoControls6.getOption('VideoScrubberPreviewComponent','hasPreviewThumbnails');this.$EmbeddedVideoControls30=this.$EmbeddedVideoControls6.getOption('VideoScrubberPreviewComponent','previewThumbnailInformation');};h.prototype.$EmbeddedVideoControls53=function(){'use strict';this.$EmbeddedVideoControls19=this.$EmbeddedVideoControls6.getOption('FeedAutoplay','isAutoplaying');};h.prototype.$EmbeddedVideoControls52=function(){'use strict';this.$EmbeddedVideoControls53();this.$EmbeddedVideoControls54();};h.prototype.$EmbeddedVideoControls51=function(){'use strict';this.flashControls();this.$EmbeddedVideoControls24=true;this.scheduleRenderReactComponentWithVideoInfoUpdate();};h.prototype.flashControls=function(){'use strict';if(!this.$EmbeddedVideoControls31){this.$EmbeddedVideoControls31=true;this.scheduleRenderReactComponent();}clearTimeout(this.$EmbeddedVideoControls7);this.$EmbeddedVideoControls7=setTimeout(function(){this.$EmbeddedVideoControls31=false;this.scheduleRenderReactComponent();}.bind(this),3000);};h.prototype.areControlsVisible=function(){'use strict';if(!this.areControlsEnabled())return false;if(this.$EmbeddedVideoControls6.isState('playing')){if(this.$EmbeddedVideoControls17&&this.$EmbeddedVideoControls19)return false;return this.$EmbeddedVideoControls8||this.$EmbeddedVideoControls25&&this.$EmbeddedVideoControls31;}else if(this.$EmbeddedVideoControls6.isState('finished')){return this.$EmbeddedVideoControls6.isFullscreen()||!this.$EmbeddedVideoControls18;}else if(this.$EmbeddedVideoControls6.isState('paused'))return this.$EmbeddedVideoControls6.isFullscreen()||!this.$EmbeddedVideoControls15;return false;};h.prototype.areControlsEnabled=function(){'use strict';if(this.$EmbeddedVideoControls9>0||this.$EmbeddedVideoControls6.isState('loading')||this.$EmbeddedVideoControls6.isState('fallback'))return false;return true;};h.prototype.scheduleRenderReactComponentWithVideoInfoUpdate=function(){'use strict';this.$EmbeddedVideoControls26=true;this.scheduleRenderReactComponent();};h.prototype.shouldRenderComponent=function(){'use strict';if(this.$EmbeddedVideoControls6.isState('loading')||this.$EmbeddedVideoControls6.isState('fallback'))return false;if(this.areControlsVisible()){this.$EmbeddedVideoControls14=false;return true;}if(!this.$EmbeddedVideoControls14){this.$EmbeddedVideoControls14=true;return true;}return false;};h.prototype.scheduleRenderReactComponent=function(){'use strict';if(!this.shouldRenderComponent())return;c('cancelAnimationFrame')(this.$EmbeddedVideoControls33);this.$EmbeddedVideoControls33=c('requestAnimationFrame')(this.renderReactComponent.bind(this));};h.prototype.renderReactComponent=function(){'use strict';if(this.$EmbeddedVideoControls26)this.$EmbeddedVideoControls56();var i=this.areControlsVisible();if(this.$EmbeddedVideoControls39!==i){this.$EmbeddedVideoControls6.emit('VideoControls/visibilityUpdate',{areControlsVisible:i});if(this.$EmbeddedVideoControls3){var j=!this.$EmbeddedVideoControls6.isPlayerVersion('silvercity')&&!this.$EmbeddedVideoControls6.getIsInChannel()&&this.$EmbeddedVideoControls6.isState('playing'),k=c('VideoChannelViewGatings').channelViewWithInlineControls,l=1;if(i)if(j&&k&&!this.$EmbeddedVideoControls20){l=-3;}else l=-2;this.$EmbeddedVideoControls6.shiftSubtitles(l);}}this.$EmbeddedVideoControls39=i;c('ReactDOM').render(c('React').createElement(c('DeferredComponent.react'),{deferredPlaceholder:c('React').createElement('span',null),deferredComponent:function(m){return e(['EmbeddedVideoControls.react'],m);},allowChromecast:this.$EmbeddedVideoControls1,allowFullscreen:this.$EmbeddedVideoControls2,areSubtitlesActive:this.$EmbeddedVideoControls3,areHLSActive:this.$EmbeddedVideoControls4,bufferedPosition:this.$EmbeddedVideoControls5,finishedPlaying:this.$EmbeddedVideoControls6.isState('finished'),hasFoundReceiver:this.hasFoundReceiver(),hasHD:this.$EmbeddedVideoControls10,hasSubtitles:this.$EmbeddedVideoControls12,hasWatchAndScroll:this.$EmbeddedVideoControls13&&!this.$EmbeddedVideoControls6.getIsInChannel(),hidden:!this.areControlsEnabled(),isCasting:this.isCasting(),isCastingSupported:this.isCastingSupported(),isFullscreen:this.$EmbeddedVideoControls20,isHD:this.$EmbeddedVideoControls21,isLive:this.$EmbeddedVideoControls22,isMuted:this.$EmbeddedVideoControls23,isPlaying:this.$EmbeddedVideoControls24,onEnterWatchAndScroll:this.$EmbeddedVideoControls41,onPause:this.$EmbeddedVideoControls42,onPlay:this.$EmbeddedVideoControls43,onScrubBegin:this.$EmbeddedVideoControls44,onScrubEnd:this.$EmbeddedVideoControls45,onStartCast:this.$EmbeddedVideoControls36,onStopCast:this.$EmbeddedVideoControls37,onToggleFullscreen:this.$EmbeddedVideoControls46,onToggleHD:this.$EmbeddedVideoControls47,onToggleHLS:this.$EmbeddedVideoControls48,onToggleMuted:this.$EmbeddedVideoControls49,onToggleSubtitles:this.$EmbeddedVideoControls50,onVolumeChange:this.$EmbeddedVideoControls40,permalinkURL:this.$EmbeddedVideoControls27,playbackDuration:this.$EmbeddedVideoControls28,playbackPosition:this.$EmbeddedVideoControls29,transparent:!i,redesign:this.$EmbeddedVideoControls32,hideSettings:this.$EmbeddedVideoControls16,volume:this.$EmbeddedVideoControls38,scrubberPreviewSprites:this.$EmbeddedVideoControls35,hasScrubberPreview:this.$EmbeddedVideoControls11,previewThumbnailInformation:this.$EmbeddedVideoControls30}),this.$EmbeddedVideoControls34);};h.prototype.$EmbeddedVideoControls56=function(){'use strict';var i=this.$EmbeddedVideoControls6.getVideoInfo();if(i){this.$EmbeddedVideoControls3=i.areSubtitlesActive;this.$EmbeddedVideoControls12=i.hasSubtitles;this.$EmbeddedVideoControls10=i.hasHD;this.$EmbeddedVideoControls21=i.isHD;this.$EmbeddedVideoControls23=i.isMuted;this.$EmbeddedVideoControls24=i.isPlaying||this.isCastPlaying();this.$EmbeddedVideoControls28=i.playbackDuration;this.$EmbeddedVideoControls38=i.volume;this.$EmbeddedVideoControls20=this.$EmbeddedVideoControls6.isFullscreen();this.$EmbeddedVideoControls22=i.isLiveStream;this.$EmbeddedVideoControls4=i.areHLSActive;this.$EmbeddedVideoControls26=false;}};h.prototype.toggleHD=function(){'use strict';this.$EmbeddedVideoControls6.toggleHD();};h.prototype.toggleHLS=function(){'use strict';this.$EmbeddedVideoControls6.switchToStreamType('hls');};h.prototype.enterWatchAndScroll=function(){'use strict';this.$EmbeddedVideoControls6.emit('enterWatchAndScroll');};h.prototype.scrubBegin=function(){'use strict';if(!this.isCasting())this.$EmbeddedVideoControls6.pause(c('VideoPlayerReason').SEEK);};h.prototype.scrubEnd=function(i){'use strict';this.$EmbeddedVideoControls6.seek(i);this.$EmbeddedVideoControls29=i;if(!this.isCasting())this.$EmbeddedVideoControls6.play(c('VideoPlayerReason').SEEK);};h.prototype.toggleMuted=function(){'use strict';if(this.$EmbeddedVideoControls6.isMuted()){c('logVideosClickTracking')(this.$EmbeddedVideoControls6.getVideoNode());this.$EmbeddedVideoControls6.unmute();}else this.$EmbeddedVideoControls6.mute();};h.prototype.toggleFullscreen=function(){'use strict';if(!this.$EmbeddedVideoControls6.isFullscreen())c('logVideosClickTracking')(this.$EmbeddedVideoControls6.getVideoNode());this.$EmbeddedVideoControls6.toggleFullscreen();};h.prototype.toggleSubtitles=function(){'use strict';this.$EmbeddedVideoControls6.toggleSubtitles();this.scheduleRenderReactComponent();};h.prototype.changeVolume=function(i){'use strict';this.$EmbeddedVideoControls6.setVolume(i);};h.prototype.play=function(){'use strict';c('logVideosClickTracking')(this.$EmbeddedVideoControls6.getVideoNode());if(this.isCasting()){this.$EmbeddedVideoControls6.setOption('chromecast','isPlaying',true);}else this.$EmbeddedVideoControls6.play(c('VideoPlayerReason').USER);};h.prototype.pause=function(){'use strict';if(this.isCasting()){this.$EmbeddedVideoControls6.setOption('chromecast','isPlaying',false);}else this.$EmbeddedVideoControls6.pause(c('VideoPlayerReason').USER);};h.prototype.startCasting=function(){'use strict';this.$EmbeddedVideoControls6.setOption('chromecast','isCasting',true);};h.prototype.stopCasting=function(){'use strict';this.$EmbeddedVideoControls6.setOption('chromecast','isCasting',false);};h.prototype.isCastPlaying=function(){'use strict';return this.$EmbeddedVideoControls6.getOption('chromecast','isPlaying');};h.prototype.hasFoundReceiver=function(){'use strict';return this.$EmbeddedVideoControls6.getOption('chromecast','hasFoundReceiver');};h.prototype.isCasting=function(){'use strict';return this.$EmbeddedVideoControls6.getOption('chromecast','isCasting');};h.prototype.isCastingSupported=function(){'use strict';return this.$EmbeddedVideoControls6.getOption('chromecast','isSupported');};f.exports=h;},null);
__d('EmbeddedVideoPauseOverlay',['cx','fbt','Arbiter','CSS','DOM','DOMDimensions','EventListener','throttle'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j="_3bw";function k(l,m,n,o,p,q,r,s,t){'use strict';this.$EmbeddedVideoPauseOverlay1=m;this.$EmbeddedVideoPauseOverlay2=l;this.$EmbeddedVideoPauseOverlay3=n;this.$EmbeddedVideoPauseOverlay4=o;this.$EmbeddedVideoPauseOverlay5=p;this.$EmbeddedVideoPauseOverlay6=q;this.$EmbeddedVideoPauseOverlay7=r;this.$EmbeddedVideoPauseOverlay8=s;this.$EmbeddedVideoPauseOverlay9=0;if(t){this.$EmbeddedVideoPauseOverlay10=t.showOnlyOnFullscreen;}else this.$EmbeddedVideoPauseOverlay10=false;this.$EmbeddedVideoPauseOverlay11=i._("Like");this.$EmbeddedVideoPauseOverlay12=i._("Unlike");this.$EmbeddedVideoPauseOverlay13=i._("Share");this.$EmbeddedVideoPauseOverlay14();this.$EmbeddedVideoPauseOverlay2.addListener('beginPlayback',this.$EmbeddedVideoPauseOverlay15.bind(this));this.$EmbeddedVideoPauseOverlay2.addListener('pausePlayback',this.$EmbeddedVideoPauseOverlay16.bind(this));this.$EmbeddedVideoPauseOverlay2.addListener('finishPlayback',this.$EmbeddedVideoPauseOverlay16.bind(this));this.$EmbeddedVideoPauseOverlay2.addListener('toggleFullscreen',this.$EmbeddedVideoPauseOverlay17.bind(this));c('EventListener').listen(this.$EmbeddedVideoPauseOverlay2.getRootNode(),'mousemove',c('throttle')(this.$EmbeddedVideoPauseOverlay18.bind(this),200));c('EventListener').listen(this.$EmbeddedVideoPauseOverlay2.getRootNode(),'mouseenter',function(){this.$EmbeddedVideoPauseOverlay19=true;}.bind(this));c('EventListener').listen(this.$EmbeddedVideoPauseOverlay2.getRootNode(),'mouseleave',function(){if(this.$EmbeddedVideoPauseOverlay2.isState('playing')){this.$EmbeddedVideoPauseOverlay19=false;this.$EmbeddedVideoPauseOverlay20();}}.bind(this));c('Arbiter').subscribe('embeddedUfiToggle',function(){this.$EmbeddedVideoPauseOverlay21();this.$EmbeddedVideoPauseOverlay22();}.bind(this));c('EventListener').listen(window,'resize',c('throttle')(function(){this.$EmbeddedVideoPauseOverlay22();}.bind(this),100));}k.prototype.$EmbeddedVideoPauseOverlay15=function(){'use strict';this.$EmbeddedVideoPauseOverlay21();this.$EmbeddedVideoPauseOverlay22();this.$EmbeddedVideoPauseOverlay18();};k.prototype.$EmbeddedVideoPauseOverlay21=function(){'use strict';var l;if(this.$EmbeddedVideoPauseOverlay2.isFullscreen()){l=64;}else l=32;this.$EmbeddedVideoPauseOverlay14();this.$EmbeddedVideoPauseOverlay9=c('DOMDimensions').getElementDimensions(this.$EmbeddedVideoPauseOverlay3).width+c('DOMDimensions').getElementDimensions(this.$EmbeddedVideoPauseOverlay4).width+l;};k.prototype.$EmbeddedVideoPauseOverlay22=function(){'use strict';var l=c('DOMDimensions').getElementDimensions(this.$EmbeddedVideoPauseOverlay2.getRootNode()).width,m=l<this.$EmbeddedVideoPauseOverlay9;if(m){this.$EmbeddedVideoPauseOverlay23();}else this.$EmbeddedVideoPauseOverlay14();};k.prototype.$EmbeddedVideoPauseOverlay14=function(){'use strict';if(this.$EmbeddedVideoPauseOverlay6)c('DOM').setContent(this.$EmbeddedVideoPauseOverlay6,this.$EmbeddedVideoPauseOverlay13);if(this.$EmbeddedVideoPauseOverlay7)c('DOM').setContent(this.$EmbeddedVideoPauseOverlay7,this.$EmbeddedVideoPauseOverlay11);if(this.$EmbeddedVideoPauseOverlay8)c('DOM').setContent(this.$EmbeddedVideoPauseOverlay8,this.$EmbeddedVideoPauseOverlay12);if(this.$EmbeddedVideoPauseOverlay5)this.$EmbeddedVideoPauseOverlay5.showText();};k.prototype.$EmbeddedVideoPauseOverlay23=function(){'use strict';if(this.$EmbeddedVideoPauseOverlay6)c('DOM').setContent(this.$EmbeddedVideoPauseOverlay6,null);if(this.$EmbeddedVideoPauseOverlay7)c('DOM').setContent(this.$EmbeddedVideoPauseOverlay7,null);if(this.$EmbeddedVideoPauseOverlay8)c('DOM').setContent(this.$EmbeddedVideoPauseOverlay8,null);if(this.$EmbeddedVideoPauseOverlay5)this.$EmbeddedVideoPauseOverlay5.hideText();};k.prototype.$EmbeddedVideoPauseOverlay24=function(){'use strict';if(this.$EmbeddedVideoPauseOverlay10&&!this.$EmbeddedVideoPauseOverlay2.isFullscreen())return false;return this.$EmbeddedVideoPauseOverlay2.isState('playing')&&this.$EmbeddedVideoPauseOverlay19||this.$EmbeddedVideoPauseOverlay2.isState('paused')||this.$EmbeddedVideoPauseOverlay2.isState('finished');};k.prototype.$EmbeddedVideoPauseOverlay18=function(){'use strict';if(this.$EmbeddedVideoPauseOverlay24()){this.$EmbeddedVideoPauseOverlay25();clearTimeout(this.$EmbeddedVideoPauseOverlay26);this.$EmbeddedVideoPauseOverlay26=setTimeout(function(){if(this.$EmbeddedVideoPauseOverlay2.isState('playing'))this.$EmbeddedVideoPauseOverlay20();}.bind(this),3000);}};k.prototype.$EmbeddedVideoPauseOverlay17=function(){'use strict';if(this.$EmbeddedVideoPauseOverlay24()){this.$EmbeddedVideoPauseOverlay25();}else this.$EmbeddedVideoPauseOverlay20();};k.prototype.$EmbeddedVideoPauseOverlay16=function(){'use strict';if(this.$EmbeddedVideoPauseOverlay24())this.$EmbeddedVideoPauseOverlay25();};k.prototype.$EmbeddedVideoPauseOverlay25=function(){'use strict';c('CSS').removeClass(this.$EmbeddedVideoPauseOverlay1,j);};k.prototype.$EmbeddedVideoPauseOverlay20=function(){'use strict';c('CSS').addClass(this.$EmbeddedVideoPauseOverlay1,j);};f.exports=k;},null);
__d('VideoErrorOverlay',[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(k,l){if('textContent' in k)k.textContent=l;k.innerText=l;}function i(k){if('textContent' in k)return k.textContent;if(!k.innerText)return '';return k.innerText;}function j(k,l,m,n){'use strict';this.$VideoErrorOverlay1=l;this.$VideoErrorOverlay2=m;this.$VideoErrorOverlay3=n;k.registerOption('VideoErrorOverlay','title',function(){return this.getTitle();}.bind(this),function(o){return this.setTitle(o);}.bind(this));k.registerOption('VideoErrorOverlay','message',function(){return this.getMessage();}.bind(this),function(o){return this.setMessage(o);}.bind(this));k.registerOption('VideoErrorOverlay','linkURL',function(){return this.getLinkURL();}.bind(this),function(o){return this.setLinkURL(o);}.bind(this));k.registerOption('VideoErrorOverlay','linkTitle',function(){return this.getLinkTitle();}.bind(this),function(o){return this.setLinkTitle(o);}.bind(this));k.registerOption('VideoErrorOverlay','available',function(){return true;});}j.prototype.getTitle=function(){'use strict';return i(this.$VideoErrorOverlay1);};j.prototype.setTitle=function(k){'use strict';h(this.$VideoErrorOverlay1,k);};j.prototype.getMessage=function(){'use strict';return i(this.$VideoErrorOverlay2);};j.prototype.setMessage=function(k){'use strict';h(this.$VideoErrorOverlay2,k);};j.prototype.getLinkURL=function(){'use strict';return this.$VideoErrorOverlay3.href;};j.prototype.setLinkURL=function(k){'use strict';this.$VideoErrorOverlay3.href=k;};j.prototype.getLinkTitle=function(){'use strict';return i(this.$VideoErrorOverlay3);};j.prototype.setLinkTitle=function(k){'use strict';h(this.$VideoErrorOverlay3,k);};f.exports=j;},null);
__d('VideoWatchAndScrollOverlay',['csx','cx','CSS','Bootloader','DOM','EventListener','React','ReactDOM','EmbeddedVideoScrubber.react','EmbeddedVideoPlaybackTimer.react','SubscriptionsHandler','UFICentralUpdates','UFIFeedbackTargets','UFIReactionTypes','UFIUserActions','VideoPlayerReason','destroyOnUnload','throttle'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();function j(k,l,m,n){'use strict';this.$VideoWatchAndScrollOverlay1=l;this.$VideoWatchAndScrollOverlay2=k;this.$VideoWatchAndScrollOverlay3=new (c('SubscriptionsHandler'))();this.$VideoWatchAndScrollOverlay4=n;this.$VideoWatchAndScrollOverlay5=m.likeButton;this.$VideoWatchAndScrollOverlay6=m.unlikeButton;this.$VideoWatchAndScrollOverlay7=m.ftEntID;this.$VideoWatchAndScrollOverlay8=m.feedbackSource;this.$VideoWatchAndScrollOverlay9=0;this.$VideoWatchAndScrollOverlay10=0;this.$VideoWatchAndScrollOverlay11=0;if(this.$VideoWatchAndScrollOverlay7){this.$VideoWatchAndScrollOverlay12();this.$VideoWatchAndScrollOverlay3.addSubscriptions(c('UFICentralUpdates').subscribe('feedback-updated',function(q,r){if(this.$VideoWatchAndScrollOverlay7 in r.updates)this.$VideoWatchAndScrollOverlay12();}.bind(this)));c('EventListener').listen(this.$VideoWatchAndScrollOverlay5,'click',this.$VideoWatchAndScrollOverlay13.bind(this));c('EventListener').listen(this.$VideoWatchAndScrollOverlay6,'click',this.$VideoWatchAndScrollOverlay13.bind(this));}this.$VideoWatchAndScrollOverlay14=c('DOM').find(this.$VideoWatchAndScrollOverlay1,"._n2-");this.$VideoWatchAndScrollOverlay15=c('DOM').find(this.$VideoWatchAndScrollOverlay1,"._4per");this.$VideoWatchAndScrollOverlay16=c('DOM').scry(this.$VideoWatchAndScrollOverlay1,"._35vp")[0];this.$VideoWatchAndScrollOverlay17=c('DOM').find(this.$VideoWatchAndScrollOverlay1,"._11jc");this.$VideoWatchAndScrollOverlay18=c('DOM').find(this.$VideoWatchAndScrollOverlay1,"._5sv5");this.$VideoWatchAndScrollOverlay19=c('DOM').find(this.$VideoWatchAndScrollOverlay1,"._n2_");this.$VideoWatchAndScrollOverlay2.addListener('stateChange',this.$VideoWatchAndScrollOverlay20.bind(this));this.$VideoWatchAndScrollOverlay2.addListener('beginPlayback',this.$VideoWatchAndScrollOverlay21.bind(this));this.$VideoWatchAndScrollOverlay2.addListener('pausePlayback',this.$VideoWatchAndScrollOverlay22.bind(this));this.$VideoWatchAndScrollOverlay2.addListener('finishPlayback',this.$VideoWatchAndScrollOverlay23.bind(this));this.$VideoWatchAndScrollOverlay2.addListener('unmuteVideo',this.$VideoWatchAndScrollOverlay24.bind(this));this.$VideoWatchAndScrollOverlay2.addListener('muteVideo',this.$VideoWatchAndScrollOverlay25.bind(this));this.$VideoWatchAndScrollOverlay2.addListener('unpreventWNSOverlay',this.$VideoWatchAndScrollOverlay26.bind(this));this.$VideoWatchAndScrollOverlay2.addListener('preventWNSOverlay',this.$VideoWatchAndScrollOverlay27.bind(this));var o=!(this.$VideoWatchAndScrollOverlay2.isState('loading')||this.$VideoWatchAndScrollOverlay2.isState('fallback'));if(o&&this.$VideoWatchAndScrollOverlay2.isMuted()){this.$VideoWatchAndScrollOverlay25();}else this.$VideoWatchAndScrollOverlay24();c('EventListener').listen(this.$VideoWatchAndScrollOverlay14,'click',this.$VideoWatchAndScrollOverlay28.bind(this));c('EventListener').listen(this.$VideoWatchAndScrollOverlay15,'click',this.$VideoWatchAndScrollOverlay29.bind(this));if(this.$VideoWatchAndScrollOverlay16)c('EventListener').listen(this.$VideoWatchAndScrollOverlay16,'click',this.$VideoWatchAndScrollOverlay30.bind(this));c('EventListener').listen(this.$VideoWatchAndScrollOverlay19,'click',this.$VideoWatchAndScrollOverlay31.bind(this));c('EventListener').listen(this.$VideoWatchAndScrollOverlay2.getRootNode(),'mousemove',c('throttle')(this.$VideoWatchAndScrollOverlay32.bind(this),200));c('EventListener').listen(this.$VideoWatchAndScrollOverlay2.getRootNode(),'mouseenter',function(){this.$VideoWatchAndScrollOverlay33=true;}.bind(this));var p=["_5190","_5199"];c('EventListener').listen(this.$VideoWatchAndScrollOverlay2.getRootNode(),'mouseleave',function(q){var r=false;if(q.toElement)p.forEach(function(s){if(c('CSS').hasClass(q.toElement,s))r=true;});if(r)return;if(this.$VideoWatchAndScrollOverlay2.isState('playing')){this.$VideoWatchAndScrollOverlay33=false;this.$VideoWatchAndScrollOverlay34();}}.bind(this));this.$VideoWatchAndScrollOverlay35();this.$VideoWatchAndScrollOverlay2.addListener('updateStatus',function(q){this.$VideoWatchAndScrollOverlay10=q.position;this.$VideoWatchAndScrollOverlay36();}.bind(this));this.$VideoWatchAndScrollOverlay2.addListener('updateBuffer',function(q){this.$VideoWatchAndScrollOverlay9=q.duration+q.offset;this.$VideoWatchAndScrollOverlay36();}.bind(this));this.$VideoWatchAndScrollOverlay37=this.$VideoWatchAndScrollOverlay38.bind(this);this.$VideoWatchAndScrollOverlay39=this.$VideoWatchAndScrollOverlay40.bind(this);c('destroyOnUnload')(function(){if(this.$VideoWatchAndScrollOverlay3){this.$VideoWatchAndScrollOverlay3.release();this.$VideoWatchAndScrollOverlay3=null;}c('ReactDOM').unmountComponentAtNode(this.$VideoWatchAndScrollOverlay17);c('ReactDOM').unmountComponentAtNode(this.$VideoWatchAndScrollOverlay18);}.bind(this));}j.prototype.$VideoWatchAndScrollOverlay35=function(){'use strict';var k=this.$VideoWatchAndScrollOverlay2.getVideoInfo();if(k){this.$VideoWatchAndScrollOverlay11=k.playbackDuration;this.$VideoWatchAndScrollOverlay41=k.volume;this.$VideoWatchAndScrollOverlay42=k.isMuted;this.$VideoWatchAndScrollOverlay43=k.isLiveStream;}};j.prototype.$VideoWatchAndScrollOverlay36=function(){'use strict';if(this.$VideoWatchAndScrollOverlay44)return;this.$VideoWatchAndScrollOverlay44=requestAnimationFrame(function(){this.$VideoWatchAndScrollOverlay44=null;this.$VideoWatchAndScrollOverlay45();}.bind(this));};j.prototype.$VideoWatchAndScrollOverlay45=function(){'use strict';if(!this.$VideoWatchAndScrollOverlay11)this.$VideoWatchAndScrollOverlay35();if(this.$VideoWatchAndScrollOverlay43){c('ReactDOM').unmountComponentAtNode(this.$VideoWatchAndScrollOverlay17);c('ReactDOM').unmountComponentAtNode(this.$VideoWatchAndScrollOverlay18);return;}c('ReactDOM').render(c('React').createElement(c('EmbeddedVideoScrubber.react'),{className:"_1681",bufferedPosition:this.$VideoWatchAndScrollOverlay9,hasScrubberPreview:false,isFullscreen:false,onScrubBegin:this.$VideoWatchAndScrollOverlay37,onPointOfInterestSelect:function(){},onScrubEnd:this.$VideoWatchAndScrollOverlay39,playbackDuration:this.$VideoWatchAndScrollOverlay11,playbackPosition:this.$VideoWatchAndScrollOverlay10,pointsOfInterest:[],previewThumbnailInformation:{},scrubberPreviewSprites:{},tabIndex:'-1'}),this.$VideoWatchAndScrollOverlay17);var k=this.$VideoWatchAndScrollOverlay10-this.$VideoWatchAndScrollOverlay11;c('ReactDOM').render(c('React').createElement(c('EmbeddedVideoPlaybackTimer.react'),{className:"_25e2 _1682",playbackPosTimestamp:this.$VideoWatchAndScrollOverlay10,remainingTimestamp:k}),this.$VideoWatchAndScrollOverlay18);};j.prototype.$VideoWatchAndScrollOverlay38=function(){'use strict';this.$VideoWatchAndScrollOverlay2.pause(c('VideoPlayerReason').SEEK);};j.prototype.$VideoWatchAndScrollOverlay40=function(k){'use strict';this.$VideoWatchAndScrollOverlay2.seek(k);this.$VideoWatchAndScrollOverlay10=k;this.$VideoWatchAndScrollOverlay2.play(c('VideoPlayerReason').SEEK);};j.prototype.$VideoWatchAndScrollOverlay12=function(){'use strict';if(!this.$VideoWatchAndScrollOverlay5||!this.$VideoWatchAndScrollOverlay6)return;this.$VideoWatchAndScrollOverlay46=c('UFIFeedbackTargets').getFeedbackTarget(this.$VideoWatchAndScrollOverlay7,function(k){c('CSS').hide(this.$VideoWatchAndScrollOverlay5);c('CSS').hide(this.$VideoWatchAndScrollOverlay6);if(k.viewercanlike)if(k.hasviewerliked){c('CSS').show(this.$VideoWatchAndScrollOverlay6);}else c('CSS').show(this.$VideoWatchAndScrollOverlay5);}.bind(this));};j.prototype.$VideoWatchAndScrollOverlay13=function(event){'use strict';this.$VideoWatchAndScrollOverlay46=c('UFIFeedbackTargets').getFeedbackTarget(this.$VideoWatchAndScrollOverlay7,function(k){c('UFIUserActions').changeReaction(this.$VideoWatchAndScrollOverlay7,k.hasviewerliked?c('UFIReactionTypes').NONE:c('UFIReactionTypes').LIKE,{source:this.$VideoWatchAndScrollOverlay8,target:event.target});}.bind(this));};j.prototype.$VideoWatchAndScrollOverlay20=function(){'use strict';if(this.$VideoWatchAndScrollOverlay2.isState('ready'))if(this.$VideoWatchAndScrollOverlay2.isMuted()){this.$VideoWatchAndScrollOverlay25();}else this.$VideoWatchAndScrollOverlay24();};j.prototype.$VideoWatchAndScrollOverlay21=function(){'use strict';this.$VideoWatchAndScrollOverlay47();c('CSS').addClass(this.$VideoWatchAndScrollOverlay14,"_n2w");this.$VideoWatchAndScrollOverlay32();};j.prototype.$VideoWatchAndScrollOverlay23=function(){'use strict';this.$VideoWatchAndScrollOverlay47();c('CSS').addClass(this.$VideoWatchAndScrollOverlay14,"_n2x");this.$VideoWatchAndScrollOverlay34();};j.prototype.$VideoWatchAndScrollOverlay22=function(){'use strict';this.$VideoWatchAndScrollOverlay47();c('CSS').addClass(this.$VideoWatchAndScrollOverlay14,"_n2y");this.$VideoWatchAndScrollOverlay32();};j.prototype.$VideoWatchAndScrollOverlay47=function(){'use strict';c('CSS').removeClass(this.$VideoWatchAndScrollOverlay14,"_n2w");c('CSS').removeClass(this.$VideoWatchAndScrollOverlay14,"_n2y");c('CSS').removeClass(this.$VideoWatchAndScrollOverlay14,"_n2x");};j.prototype.$VideoWatchAndScrollOverlay28=function(){'use strict';if(this.$VideoWatchAndScrollOverlay2.isState('playing')){this.$VideoWatchAndScrollOverlay2.pause(c('VideoPlayerReason').USER);}else this.$VideoWatchAndScrollOverlay2.play(c('VideoPlayerReason').USER);};j.prototype.$VideoWatchAndScrollOverlay25=function(){'use strict';c('CSS').removeClass(this.$VideoWatchAndScrollOverlay15,"_4pep");c('CSS').addClass(this.$VideoWatchAndScrollOverlay15,"_4peq");};j.prototype.$VideoWatchAndScrollOverlay24=function(){'use strict';c('CSS').removeClass(this.$VideoWatchAndScrollOverlay15,"_4peq");c('CSS').addClass(this.$VideoWatchAndScrollOverlay15,"_4pep");};j.prototype.$VideoWatchAndScrollOverlay31=function(){'use strict';this.$VideoWatchAndScrollOverlay2.emit('WatchAndScroll/close');};j.prototype.$VideoWatchAndScrollOverlay29=function(){'use strict';if(this.$VideoWatchAndScrollOverlay2.isMuted()){this.$VideoWatchAndScrollOverlay2.unmute();}else this.$VideoWatchAndScrollOverlay2.mute();};j.prototype.$VideoWatchAndScrollOverlay30=function(){'use strict';c('Bootloader').loadModules(["VideoWatchAndScrollController","VideoChannelController"],function(k,l){k.onEnterChannel();l.openFromVideoPlayer(this.$VideoWatchAndScrollOverlay2,this.$VideoWatchAndScrollOverlay2.getVideoChannelID(),this.$VideoWatchAndScrollOverlay4,k.getStoryFetcherData());}.bind(this));};j.prototype.$VideoWatchAndScrollOverlay32=function(){'use strict';if(this.$VideoWatchAndScrollOverlay33){this.$VideoWatchAndScrollOverlay48();clearTimeout(this.$VideoWatchAndScrollOverlay49);this.$VideoWatchAndScrollOverlay49=setTimeout(function(){if(this.$VideoWatchAndScrollOverlay2.isState('playing'))this.$VideoWatchAndScrollOverlay34();}.bind(this),3000);}};j.prototype.$VideoWatchAndScrollOverlay26=function(){'use strict';this.$VideoWatchAndScrollOverlay50=false;this.$VideoWatchAndScrollOverlay32();};j.prototype.$VideoWatchAndScrollOverlay27=function(){'use strict';this.$VideoWatchAndScrollOverlay50=true;this.$VideoWatchAndScrollOverlay34();};j.prototype.$VideoWatchAndScrollOverlay48=function(){'use strict';if(this.$VideoWatchAndScrollOverlay2.isState('finished')||this.$VideoWatchAndScrollOverlay50)return;c('CSS').addClass(this.$VideoWatchAndScrollOverlay1,"_1he7");this.$VideoWatchAndScrollOverlay2.emit('WatchAndScroll/overlayShown');};j.prototype.$VideoWatchAndScrollOverlay34=function(){'use strict';c('CSS').removeClass(this.$VideoWatchAndScrollOverlay1,"_1he7");this.$VideoWatchAndScrollOverlay2.emit('WatchAndScroll/overlayHidden');};f.exports=j;},null);