;/*FB_PKG_DELIM*/ __d("XBasicFBNuxDismissControllerRouteBuilder",["jsRouteBuilder"],(function(t,n,r,o,a,i,l){var e=r("jsRouteBuilder")("/ajax/megaphone/dismiss_fbnux/",Object.freeze({}),void 0),s=e;l.default=s}),98); __d("XBasicFBNuxViewControllerRouteBuilder",["jsRouteBuilder"],(function(t,n,r,o,a,i,l){var e=r("jsRouteBuilder")("/ajax/megaphone/view_fbnux/",Object.freeze({}),void 0),s=e;l.default=s}),98); __d("BasicFBNux",["AsyncRequest","XBasicFBNuxDismissControllerRouteBuilder","XBasicFBNuxViewControllerRouteBuilder"],(function(t,n,r,o,a,i,l){function e(e,t){e.subscribe("hide",function(){return u(t)})}function s(e){var t=r("XBasicFBNuxViewControllerRouteBuilder").buildUri({nux_id:e});new(r("AsyncRequest"))().setURI(t).send()}function u(e){var t=r("XBasicFBNuxDismissControllerRouteBuilder").buildUri({nux_id:e});new(r("AsyncRequest"))().setURI(t).send()}l.subscribeHide=e,l.onView=s,l.onDismiss=u}),98); __d("ReactBrowserEventEmitter_DO_NOT_USE",["ReactDOM"],(function(t,n,r,o,a,i){"use strict";var e=n("ReactDOM").__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;a.exports=e.ReactBrowserEventEmitter}),null); __d("ReactLayerCommon",["invariant","ReactDOM","SubscriptionsHandler","cr:1487782","emptyFunction","react","warning"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=n("react")),u=function(t){t.isPropagationStopped=n("emptyFunction").thatReturnsTrue},c=(function(e){function t(){return e.apply(this,arguments)||this}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.render=function(){return s.jsx("div",{onClick:u,onBlur:u,onDoubleClick:u,onFocus:u,onKeyDown:u,onKeyPress:u,onKeyUp:u,onMouseDown:u,onMouseMove:u,onMouseUp:u,children:this.props.children})},t})(s.Component),d={makeInitialSubscriptions:function(t,r){var e=new(n("SubscriptionsHandler"));return r.onToggle&&(d.layerSubscribe(t,e,"show",function(){return r.onToggle(!0)}),d.layerSubscribe(t,e,"hide",function(){return r.onToggle(!1)})),r.onBlur&&d.layerSubscribe(t,e,"blur",function(e,t){return r.onBlur(t)}),r.onHide&&d.layerSubscribe(t,e,"runhide",function(e,t){return r.includeHideSource?r.onHide(t):r.onHide()}),e},layerSubscribe:function(t,r,o,a){var e=t.subscribe||t.addListener;r.addSubscriptions(e.call(t,o,function(e,t){if(n("cr:1487782")==null)a(e,t);else{var r=n("cr:1487782").isEnabled();r&&a(e,t)}}))},render:function(t,r){var e=n("ReactDOM").createPortal(s.jsx(c,{children:t}),r);return e===void 0&&n("ReactDOM").createPortal._isMockFunction&&(e=null),e},diffBehaviors:function(t,n,r){var e;for(e in t)t[e]&&!n[e]&&r.disableBehavior(t[e]);for(e in n){var o=t[e],a=n[e];if(o&&a){o===a||l(0,120,e);continue}o&&r.disableBehavior(o),a&&r.enableBehavior(a)}}};a.exports=d}),null); __d("ReactLayer",["invariant","ExecutionEnvironment","OnUseEffectUnmount.react","ReactLayerCommon","createReactClass_DEPRECATED","emptyFunction","getObjectValues","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u=e||(e=n("react")),c={componentDidMount:function(){this.layer||(this.layer=this.createLayer(this._layerContainer)),this.layer||l(0,2397),this.layerSubscriptions||(this.layerSubscriptions=n("ReactLayerCommon").makeInitialSubscriptions(this.layer,this.props)),this._resetBehaviors()},componentDidUpdate:function(t){this.receiveProps(this.props,t)},_onUnmount:function(){this.layerSubscriptions&&(this.layerSubscriptions.release(),this.layerSubscriptions=null),this.layer&&(this.layer.destroy(),this.layer=null)},_createLayerContainer:function(){this._layerContainer==null&&(this._layerContainer=document.createElement("div"))},render:function(){return(s||(s=n("ExecutionEnvironment"))).canUseDOM?(this._createLayerContainer(),u.jsxs(u.Fragment,{children:[u.jsx(n("OnUseEffectUnmount.react"),{callback:this._onUnmount}),n("ReactLayerCommon").render(this.props.children,this._layerContainer)]})):null},enumerateBehaviors:function(t){return t=this.getEffectiveBehaviors(t),n("getObjectValues")(t).filter(n("emptyFunction").thatReturnsArgument)},_resetBehaviors:function(){this._diffBehaviors({},this.props.behaviors)},updateBehaviors:function(t,n){this._diffBehaviors(t,n)},_diffBehaviors:function(t,r){t=this.getEffectiveBehaviors(t),r=this.getEffectiveBehaviors(r),n("ReactLayerCommon").diffBehaviors(t,r,this.layer)},getEffectiveBehaviors:function(t){return this.getDefaultEnabledBehaviors?babelHelpers.extends({},this.getDefaultEnabledBehaviors(),t):t||{}},layerSubscribe:function(t,r){n("ReactLayerCommon").layerSubscribe(this.layer,this.layerSubscriptions,t,r)}},d={createClass:function(t){return n("createReactClass_DEPRECATED")({mixins:[c,t]})}};a.exports=d}),null); __d("ContextualLayer.react",["ContextualLayer","ReactBrowserEventEmitter_DO_NOT_USE","ReactDOM_DEPRECATED","ReactLayer","Style","prop-types","react","warning"],(function(t,n,r,o,a,i){var e,l=e||(e=n("react")),s=n("ReactLayer").createClass({propTypes:{contextRef:n("prop-types").func,excludeFromHeroVC:n("prop-types").bool,context:function(t,n,r){if(t.context==null==(t.contextRef==null))return new Error("Exactly one of `context` or `contextRef` must be set on `"+(r+"`."));var e=t[n];if(e!=null){if(typeof e!="object")return new Error("Invalid `"+n+"` supplied to `"+r+"`, expected a React component.");if(l.isValidElement(e))return new Error("Invalid `"+n+"` supplied to `"+r+"`, expected a React component instance. You're passing a React descriptor.")}}},immutableProps:{modal:null},createLayer:function(t){var e=this,r=this._getContextNode(),o={context:r,contextBounds:this.props.contextBounds,"data-testid":this.props["data-testid"],position:this.props.position,alignment:this.props.alignment,offsetX:this.props.offsetX,offsetY:this.props.offsetY,addedBehaviors:this.enumerateBehaviors(this.props.behaviors),shouldSetARIAProperties:this.props.shouldSetARIAProperties,isStrictlyControlled:this.props.isStrictlyControlled,excludeFromHeroVC:this.props.excludeFromHeroVC},a=new(n("ContextualLayer"))(o,t);return this._node=t,this._matchContextSize(this.props),this.props.contextBounds&&a.setContextWithBounds(r,this.props.contextBounds),this._resizeSubscription=a.subscribe("resize",function(t,r){var o=n("ReactBrowserEventEmitter_DO_NOT_USE").isEnabled();o&&e.props.onResize&&e.props.onResize(r)}),a.conditionShow(this.props.shown),a},componentWillUnmount:function(){this._resizeSubscription&&(this._resizeSubscription.unsubscribe(),this._resizeSubscription=null)},receiveProps:function(t,n){this.updateBehaviors(n.behaviors,t.behaviors);var e=this._getContextNode();t.contextBounds?this.layer.setContextWithBounds(e,t.contextBounds):this.layer.setContext(e),this._matchContextSize(t),this.layer.setPosition(t.position),this.layer.setAlignment(t.alignment),this.layer.setOffsetX(t.offsetX),this.layer.setOffsetY(t.offsetY),this.layer.conditionShow(t.shown)},getDefaultEnabledBehaviors:function(){return n("ContextualLayer").getDefaultBehaviorsAsObject()},_getContextNode:function(){var e;return this.props.context?e=this.props.context:this.props.contextRef&&(e=this.props.contextRef()),e!=null&&e.nodeType!==1&&(e=n("ReactDOM_DEPRECATED").findDOMNode_DEPRECATED(e)),e},_matchContextSize:function(t){var e=this._node,r=this._getContextNode();t.containerWidthMatchContext&&n("Style").set(e,"width",r.offsetWidth+"px"),t.containerHeightMatchContext&&n("Style").set(e,"height",r.offsetHeight+"px")}});a.exports=s}),null); __d("DocumentFocusForAdsVideoAutoplayRule",["VideoAutoplayRule"],(function(t,n,r,o,a,i,l){"use strict";var e=(function(e){function t(t){return e.call(this,t)||this}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.calculateAutoplayScore=function(){return this.isEnabled()?this.$DocumentFocusForAdsVideoAutoplayRule$p_1():1},n.$DocumentFocusForAdsVideoAutoplayRule$p_1=function(){var e=this.videoUnit.getVideoPlayerController(),t=!!(e&&e.isAd());return t?document.hasFocus()?1:0:1},t})(r("VideoAutoplayRule"));l.default=e}),98); __d("EmbeddedVideoPauseOverlay",["cx","fbt","Arbiter","CSS","DOM","DOMDimensions","EventListener","throttle"],(function(t,n,r,o,a,i,l,s){var e="_3bw",u=(function(){"use strict";function t(e,t,r,o,a,i,l,u,c){var d=this;this.$1=t,this.$2=e,this.$3=r,this.$4=o,this.$5=a,this.$6=i,this.$7=l,this.$8=u,this.$9=0,c?(this.$10=c.showOnlyOnFullscreen,this.$11=c.showOnEndscreen):(this.$10=!1,this.$11=!0),this.$12=s._(/*BTDS*/"Like"),this.$13=s._(/*BTDS*/"Unlike"),this.$14=s._(/*BTDS*/"Share"),this.$15(),this.$2.addListener("beginPlayback",this.$16.bind(this)),this.$2.addListener("pausePlayback",this.$17.bind(this)),this.$2.addListener("finishPlayback",this.$17.bind(this)),this.$2.addListener("toggleFullscreen",this.$18.bind(this)),n("EventListener").listen(this.$2.getRootNode(),"mousemove",n("throttle")(this.$19.bind(this),200)),n("EventListener").listen(this.$2.getRootNode(),"mouseenter",function(){d.$20=!0}),n("EventListener").listen(this.$2.getRootNode(),"mouseleave",function(){d.$2.isState("playing")&&(d.$20=!1,d.$21())}),n("Arbiter").subscribe("embeddedUfiToggle",function(){d.$22(),d.$23()}),n("EventListener").listen(window,"resize",n("throttle")(function(){d.$23()},100))}var r=t.prototype;return r.$16=function(){this.$22(),this.$23(),this.$19()},r.$22=function(){var e;this.$2.isFullscreen()?e=64:e=32,this.$15(),this.$9=n("DOMDimensions").getElementDimensions(this.$3).width+n("DOMDimensions").getElementDimensions(this.$4).width+e},r.$23=function(){if(!this.$2.isState("destroyed")){var e=n("DOMDimensions").getElementDimensions(this.$2.getRootNode()).width,t=e=t||l<0||s>=n)return!1;var u=this.$FeedVideoPlayerController$p_18();return u!==null?this.$FeedVideoPlayerController$p_19(o,r("getElementPosition")(u)):!0},a.$FeedVideoPlayerController$p_18=function(){var e=o("DOMQuery").scry(this.$FeedVideoPlayerController$p_2.video_container,"^div._1yj5");return e.length>0?e[0]:null},a.$FeedVideoPlayerController$p_19=function(t,n){var e=t.x,r=t.x+t.width,o=n.x,a=n.x+n.width;return o0,this.$FeedVideoPlayerController$p_7=!this.$FeedVideoPlayerController$p_9},a.$FeedVideoPlayerController$p_22=function(t){r("VideoPlayerExperiments").enableAutoplayOnUnmutedVideos&&t==="unmuted"||(this.$FeedVideoPlayerController$p_33(t),this.$FeedVideoPlayerController$p_7=!1)},a.$FeedVideoPlayerController$p_16=function(){this.$FeedVideoPlayerController$p_34()},a.getDOMPosition=function(){return this.$FeedVideoPlayerController$p_6.getDOMPosition()},a.isLooping=function(){return!!this.$FeedVideoPlayerController$p_6.getOption("Looping","isLooping")},a.pause=function(t){this.$FeedVideoPlayerController$p_6.pause(t)},a.$FeedVideoPlayerController$p_35=function(){this.$FeedVideoPlayerController$p_14(),this.$FeedVideoPlayerController$p_3.delete("fallback"),this.$FeedVideoPlayerController$p_7=this.$FeedVideoPlayerController$p_11.isAutoplaying,this.$FeedVideoPlayerController$p_9=this.$FeedVideoPlayerController$p_11.preventAutoplay},a.$FeedVideoPlayerController$p_34=function(){var e=this;if(this.isState("fallback")){this.$FeedVideoPlayerController$p_5.release();var t=this.$FeedVideoPlayerController$p_2;if(t.fallback_link&&(r("DOM").remove(this.$FeedVideoPlayerController$p_6.getVideoNode()),r("DOM").replace(t.video_container,t.fallback_link),r("DOM").appendContent(t.fallback_link,t.video_container)),this.$FeedVideoPlayerController$p_6.isFallbackRecoverable())this.$FeedVideoPlayerController$p_35();else var n=this.$FeedVideoPlayerController$p_6.addListener("VideoPlayerFallbackEvents/recover",function(){e.$FeedVideoPlayerController$p_35(),n.remove()})}},a.isState=function(t){return this.$FeedVideoPlayerController$p_6.isState(t)},a.getSource=function(){return this.$FeedVideoPlayerController$p_6.getSource()},a.getIsInChannel=function(){return this.$FeedVideoPlayerController$p_6.getIsInChannel()},a.getVideoPlayerController=function(){return this.$FeedVideoPlayerController$p_6},a.abortLoading=function(){this.$FeedVideoPlayerController$p_1.abort_loading_blocked||this.$FeedVideoPlayerController$p_6.abortLoading()},a.isMuted=function(){return this.$FeedVideoPlayerController$p_6.isMuted()},a.isPlaying=function(){return this.$FeedVideoPlayerController$p_6.isState("playing")},a.shouldPauseWhenScrolledOffscreen=function(){return!!r("VideoPlayerExperiments").enableAutoplayOnUnmutedVideos},n})(r("VideoAutoplayPlayerBase"));l.default=u}),98); __d("focusWithinLayer",["DOMQuery","Focus","TabbableElements","getActiveElement"],(function(t,n,r,o,a,i,l){function e(e,t){var n=o("DOMQuery").scry(e,".autofocus")[0],a=!0;if(n)n.tabIndex!==0&&(a=!1);else{var i=r("getActiveElement")();if(o("DOMQuery").isNodeOfType(i,["input","textarea"]))return;for(var l=o("TabbableElements").find(e),s=0;so)&&(o=l,r=a);break}l===n.length-1&&(o===null||l>o)&&(o=l,r=a)}}),r}function g(e,t){var n=_(e),r=null,o=null;return t.forEach(function(e){for(var t=e[0],a=e[1],i=_(t),l=0;lo)&&(o=l,r=a);break}}),r}var h={_associateUFIController:function(n,o){var t=n.getInstanceID(),a=h.findVideoPlayerControllerForElement(n.getRootNode(),o);if(!(!a||a.isState("destroyed"))){var i=u.get(t);if(i){if(!i.isState("destroyed")&&r("getOrCreateDOMID")(i.getRootNode())===r("getOrCreateDOMID")(a.getRootNode()))return;e.emit(t+"/unregister")}u.set(t,a),e.emit(t+"/register",a)}},addOnRegisterListener:function(t){m.add(t)},findVideoPlayerControllerForElement:function(t,n){var e=d.get(n);return e?e.length===1?e[0]:t?f(t,e.filter(function(e){return!e.isState("destroyed")}).map(function(e){return[e.getRootNode(),e]})):null:null},getAvailableUFIController:function(t){var e=p.get(t);if(e)return e;var n=s.get(t.getVideoID());if(!n)return null;if(n.length===1?e=n[0]:e=g(t.getRootNode(),n.map(function(e){return[e.getRootNode(),e]})),e){var r=h.findVideoPlayerControllerForElement(e.getRootNode(),t.getVideoID());if(r!==t)return null;p.set(t,e)}return e},getAvailableVideoPlayerController:function(t){return u.get(t)},getAvailableVideoPlayerControllerForElement:function(t,n){if(!t)return null;var e=c.get(n)||new Map,o=r("getOrCreateDOMID")(t),a=e.get(o)||h.findVideoPlayerControllerForElement(t,n);return e.set(o,a),c.set(n,e),a},getAvailableVideoPlayerControllerTime:function(t){var e=h.getAvailableVideoPlayerController(t);if(!e)return null;var n=e.getCurrentTimePosition();return n>=0?Math.floor(n):null},getAvailableVideoPlayerControllerTimeForElement:function(t,n){if(!t)return null;var e=h.getAvailableVideoPlayerControllerForElement(t,n);if(!e)return null;var r=e.getCurrentTimePosition();return r>=0?Math.floor(r):null},registerUFIController:function(n,r,o){var t=n.getInstanceID(),a=n.getFluentContentToken();if(a){var i=s.get(a);i?i.push(n):(i=[n],s.set(a,i)),e.addListener(t+"/register",r),e.addListener(t+"/unregister",o),h._associateUFIController(n,a)}},registerVideoPlayerController:function(t){var e=t.getVideoID(),n=d.get(e);n?n.push(t):(n=[t],d.set(e,n),c.delete(e)),m.forEach(function(e){return e()});var r=s.get(e);r&&r.forEach(function(t){return h._associateUFIController(t,e)})},removeOnRegisterListener:function(t){m.delete(t)},scrollToAvailableVideo:function(t){var e=h.getAvailableVideoPlayerController(t);if(e){var n=r("ViewportBounds").getElementPosition(e.getRootNode());window.scroll(0,n.y)}},seekAvailableVideoPlayerController:function(t,n){var e=h.getAvailableVideoPlayerController(t);e&&["ready","playing","paused","finished"].includes(e.getState())&&(e.pause("seek_initiated"),e.seek(n),e.play("seek_initiated"))},setAvailableVideoPlayerControllerSphericalViewport:function(t,n){var e=h.getAvailableVideoPlayerController(t);e&&e.emit("SphericalVideoViewportTagComment/click",n)},unregisterVideoPlayerControllerForElement:function(t,n){var e=d.get(n);if(e){var r=h.findVideoPlayerControllerForElement(t,n);if(r!=null){var o=e.findIndex(function(e){return e.getRootNode()===r.getRootNode()});e.splice(o,1),d.set(n,e)}}}},y=h;l.default=y}),98); __d("VODPresenceCVCDisplayStage",[],(function(t,n,r,o,a,i){var e=Object.freeze({PRE_ENTER:"pre_enter",POST_ENTER:"post_enter"});i.default=e}),66); __d("VideoPlayerHTML5ContextMenu.react",["cx","fbt","ContextualLayer.react","DOMQuery","Event","FBClipboardLink.react","Focus","FullScreen","Keys","LayerAutoFocus","LayerHideOnEscape","MountedContextMenu.react","ODS","ReactDOM_DEPRECATED","ReactXUIMenu","SubscriptionsHandler","URI","VideoPermalinkURI","VideoPlayerExperiments","getFullScreenElement","react"],(function(t,n,r,o,a,i,l,s,u){"use strict";var e,c,d,m=c||(c=o("react")),p=.35,_=6,f=60,g=(function(t){function n(){for(var e,n=arguments.length,a=new Array(n),i=0;i=0&&o===e.POST_ENTER&&(a.$4=r("setTimeout")(function(){return a.$11(n,o)},c))}}},function(e){a.$6||(a.$4=r("setTimeout")(function(){return a.$11(n,o)},a.$5),a.$5=Math.min(Number.MAX_SAFE_INTEGER,2*a.$5))})},t})();l.default=u}),98); __d("VideoVODCVCSubscription",["EntityPresenceClient","Int64","Run","SubscriptionsHandler"],(function(t,n,r,o,a,i,l){"use strict";var e=42,s=7,u=5,c=(function(){function t(e){var t=this;this.$7=function(){t.$5=null,t.$4&&(t.$4&&t.$4.leave(),t.$4=null)},!(e.isAd()||e.isLiveVideo())&&(this.$1=new(r("SubscriptionsHandler")),this.$4=null,this.$2=e,this.$3=this.$2.getPlayerOrigin(),this.$5=null,this.$1.addSubscriptions(e.addListener("beginPlayback",function(){t.$5=null}),e.addListener("updateStatus",function(e){t.$2.isState("playing")&&(t.$5===null&&(t.$5=e.position),t.$5+3<=e.position&&(t.$5=1/0,t.$6()))}),e.addListener("pausePlayback",this.$7),e.addListener("finishPlayback",function(){return!e.getOption("Looping","isLooping")&&t.$7()}),e.addListener("becomeInvisible",this.$7),e.addListener("seekEnd",this.$7),e.addListener("TahoeController/exitTahoe",this.$7)),o("Run").onLeave(function(){return t.cleanOnLeave()}))}var n=t.prototype;return n.cleanOnLeave=function(){this.$7(),this.$1&&this.$1.release()},n.$6=function(){this.$4||(this.$4=o("EntityPresenceClient").enter("vod",this.$2.getVideoID(),this.getLoggingCapabilitiesForEntityPresence().toString()))},n.getLoggingCapabilitiesForEntityPresence=function(){var t,n=(t=r("Int64")).fromInt(0);n=t.fromString(Date.now().toString());var o=7;n=n.shiftLeft(o),n=n.add(t.fromInt(1));var a=64-(e+s+u+o);return n=n.shiftLeft(a),n=n.shiftLeft(u),n=n.add(t.fromInt(this.mapPlayerFormatToCapabilityBits(this.$2.getPlayerFormat()))),n=n.shiftLeft(s),n=n.add(t.fromInt(this.mapPlayerOriginToCapabilityBits(this.$3))),n},n.mapPlayerOriginToCapabilityBits=function(t){if(t===null)return 0;switch(t){case"commerce":return 12;case"direct_inbox":return 4;case"events":return 18;case"explorefeed":return 19;case"fb_stories":return 5;case"group":return 11;case"instant_articles":return 16;case"instant_shopping":return 16;case"live_chaining":return 22;case"living_room":return 9;case"living_room_recap":return 8;case"media_gallery":return 3;case"movie_checkout_flow":return 21;case"newsfeed":return 13;case"notifications":return 7;case"page_timeline":return 17;case"permalink":return 15;case"photosfeed":return 14;case"saved":return 23;case"search":return 20;case"top_live_bookmark":return 1;case"user_timeline":return 24;case"video_home":return 2;case"unknown":default:return 0}},n.mapPlayerFormatToCapabilityBits=function(t){if(t===null)return 0;switch(t){case"inline":return 1;case"snowlift":return 2;case"permalink":return 3;case"channel":return 4;case"full_screen":return 5;case"social_player":return 6;case"tv":return 7;case"misc":return 8;case"watch_scroll":return 9;case"watch_scroll_app_background":return 10;case"watch_and_go":return 11;case"watch_and_browse":return 12;case"canvas":return 13;case"tahoe":return 14;case"fb_stories":return 15;default:return 0}},t})();l.default=c}),98); __d("VideoVODCVCUI.react",["ix","Image.react","intlSummarizeNumber","react","vulture"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c=(function(e){function t(){return e.apply(this,arguments)||this}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.render=function(){return r("vulture")("VqWMMW6mMUc-u_j7qd4_xWfYfnY="),u.jsxs("div",{className:"xo6aett xjwep3j x1t39747 x1wcsgtt x1pczhz8 xyxa9uu x1f6kntn xnl36cx x1iorvi4 x1icxu4v xjkvuk6 x25sj25",children:[u.jsx(r("Image.react"),{className:"x1p8j9ns x1n8ftqi",src:s("488783")}),r("intlSummarizeNumber")(this.props.viewerCount)]})},t})(u.PureComponent);l.default=c}),98); __d("VideoVODIndicator.react",["cx","fbt","BasicFBNux","JSResource","SubscriptionsHandler","TooltipData","VideoVODCVCUI.react","joinClasses","lazyLoadComponent","react","vulture"],(function(t,n,r,o,a,i,l,s,u){"use strict";var e,c=e||(e=o("react")),d=r("lazyLoadComponent")(r("JSResource")("XUIAmbientNUX.react").__setRef("VideoVODIndicator.react")),m=6171,p=!1,_=(function(e){function t(t){var n;n=e.call(this,t)||this,n.$2=null,n.state={showVODIndicator:!1,isDisplayingAdBreak:!1,viewerCount:null,showNUX:!1},n.$3=function(){o("BasicFBNux").onDismiss(m),n.setState({showNUX:!1})};var r=n.props.vpc;if(n.props.renderLocation==="tahoeBackAffordance"){var a=r.getOption("VideoVODCVCFetching","cvcData");a&&(n.state.showVODIndicator=a.showVODIndicator,n.state.viewerCount=a.viewerCount)}return n}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.initSubscriptions=function(t){var e=this;this.$2=new(r("SubscriptionsHandler")),this.$2.addSubscriptions(t.addListener("VideoVODCVC/viewCountChange",function(t){e.setState({showVODIndicator:t.showVODIndicator,viewerCount:t.viewerCount})}),t.addListener("finishPlayback",function(){return!t.getOption("Looping","isLooping")&&e.setState({showVODIndicator:!1})}),t.addListener("commercialBreak/vodBreakStarting",function(){e.setState({isDisplayingAdBreak:!0})}),t.addListener("commercialBreak/showUFI",function(){e.setState({isDisplayingAdBreak:!1})}))},n.releaseSubscriptions=function(){this.$2&&this.$2.release()},n.componentDidMount=function(){this.initSubscriptions(this.props.vpc)},n.componentWillUnmount=function(){this.releaseSubscriptions()},n.render=function(){var e=this;if(!this.state.showVODIndicator||!this.state.viewerCount||this.state.isDisplayingAdBreak)return null;r("vulture")("CE-q_tGS7veb3O1MpClG4GDBLIg=");var t=null,n=null;return this.state.showNUX?(n=c.jsx(c.Suspense,{fallback:null,children:c.jsx(d,{contextRef:function(){return e.$1},position:"right",shown:!0,onCloseButtonClick:this.$3,children:u._(/*BTDS*/"See how many people are watching this video now")})}),p||(p=!0,o("BasicFBNux").onView(m))):t=o("TooltipData").propsFor(u._(/*BTDS*/"Number of people watching now"),"right"),c.jsxs("div",babelHelpers.extends({className:r("joinClasses")("_75ug"+(this.props.renderLocation==="tahoeBackAffordance"?" _7348":"")+(this.props.renderLocation==="videoHomeFeedUnit"?" _72u5":"")+(this.props.renderLocation==="videoNewsFeedUnit"?" _75uh":"")+" uiContextualLayerParent")},t,{children:[c.jsx(r("VideoVODCVCUI.react"),{ref:function(n){return e.$1=n},viewerCount:this.state.viewerCount}),n]}))},t})(c.Component);l.default=_}),226); __d("VideoWithFluentUFISupport",["UFI2VideoPlayerRegistry"],(function(t,n,r,o,a,i,l){var e=function(t){r("UFI2VideoPlayerRegistry").registerVideoPlayerController(t)};l.default=e}),98); __d("VideoWithLoopingPlayback",["setImmediate"],(function(t,n,r,o,a,i,l){var e=(function(){function e(e,t,n){var o=this;t===void 0&&(t=-1),n===void 0&&(n=!1),this.$5=!1,this.$8=function(){var e,t=o.$1.getOption("FeedAutoplay","isVisibleForAutoplay"),n=o.$1.getOption("WatchAndScroll","isActive"),a=o.$1.getIsInChannel(),i=o.$1.getSource()==="tahoe",l=(e=o.$1.getVideoNodeNullable())==null?void 0:e.loop;o.$7&&l===!1||!o.$5&&(t||t===void 0)&&!n&&!a&&!i&&(!o.$4||o.$3-1?t:null,this.$6=this.$1.addListener("finishPlayback",this.$8),this.$1.registerOption("Looping","isLooping",function(){return o.$2},function(e){return o.$9(e)}),this.$1.registerOption("Looping","disabled",function(){return o.$5},function(e){return o.$5=e}),this.$7=n,this.setVideoNodeLoop(!0)}var t=e.prototype;return t.setVideoNodeLoop=function(t){if(this.$7){var e=this.$1.getVideoNodeNullable();e!=null&&(e.loop=t)}},t.destroy=function(){this.$6!=null&&(this.$6.remove(),this.$6=null),this.$1.hasOption("Looping","isLooping")&&this.$1.unregisterOption("Looping","isLooping"),this.$1.hasOption("Looping","disabled")&&this.$1.unregisterOption("Looping","disabled")},t.isLooping=function(){return this.$2},t.getLoopCount=function(){return this.$3},t.getMaxLoopCount=function(){return this.$4},t.setMaxLoopCount=function(t){this.$4=t>-1?t:null},t.$9=function(t){this.$2=t},e})();l.default=e}),98); __d("XVideoWithRapidFeedbackAsyncControllerRouteBuilder",["jsRouteBuilder"],(function(t,n,r,o,a,i,l){var e=r("jsRouteBuilder")("/video/instream_video/rapid_feedback/async/",Object.freeze({is_indicator_shown:!1,is_ad_complete:!1}),void 0),s=e;l.default=s}),98); __d("onViewportChanged",["EventListener","emptyFunction","getViewportDimensions","nullthrows","requestAnimationFrame"],(function(t,n,r,o,a,i,l){var e=[],s=!1,u=null,c,d;function m(){var e=r("getViewportDimensions").withoutScrollbars();return{top:0,bottom:e.height,left:0,right:e.width}}function p(t,n){var o={transform:n||r("emptyFunction").thatReturnsArgument,callback:t,needsUpdate:!0};return e.push(o),b(),f(),{remove:_.bind(null,o),scheduleCheck:y.bind(null,o)}}function _(t){var n=e.indexOf(t);n!==-1&&(e.splice(n,1),e.length===0&&(g(),u=null))}function f(){d||(d=r("EventListener").capture(window,"scroll",C),c=r("EventListener").capture(window,"resize",h))}function g(){d!==null&&(d.remove(),d=null),c!=null&&(c.remove(),c=null)}function h(){u=null,C()}function y(e){e.needsUpdate=!0,b()}function C(){e.map(function(e){return e.needsUpdate=!0}),b()}function b(){s||(s=!0,r("requestAnimationFrame")(function(){s=!1,S()}))}function v(e){return e.needsUpdate?(e.needsUpdate=!1,!0):!1}function S(){u||(u=m());var t=e.filter(v),n=t.map(function(e){return e.transform.call(null,r("nullthrows")(u))});t.forEach(function(e,t){return e.callback.call(null,n[t])})}l.default=p}),98); __d("VideoWithRapidFeedback",["AsyncRequest","DateConsts","ScriptPath","ViewportTrackingHelper","XVideoWithRapidFeedbackAsyncControllerRouteBuilder","onViewportChanged"],(function(t,n,r,o,a,i,l){var e=10*o("DateConsts").MS_PER_SEC,s=(function(){function t(e,t){var n=this;this.$1=e,this.$2=t,this.$3=0,this.$4=0,this.$6=!1,this.$7=!1,e.isState("playing")&&this.$8(),e.addListener("beginPlayback",function(){return n.$8()}),e.addListener("pausePlayback",function(){return n.$9()}),e.addListener("commercialBreak/vodBreakStarting",function(){return n.$10()}),e.addListener("commercialBreak/showUFI",function(){return n.$11()}),this.$5=this.$12(),r("onViewportChanged")(function(){return n.$13()})}var n=t.prototype;return n.$8=function(){this.$3===0&&(this.$3=Date.now())},n.$9=function(){this.$3>0&&(this.$4+=Date.now()-this.$3),this.$3=0},n.$10=function(){this.$6=!0},n.$11=function(){this.$6&&(this.$7=!0)},n.$13=function(){if(!this.$1.isState("destroyed")){var t=this.$5;if(this.$5=this.$12(),t&&!this.$5){var n=this.$4;this.$3>0&&(n+=Date.now()-this.$3),n>e&&(this.$4=0,this.$3=0,this.$14())}}},n.$12=function(){return o("ViewportTrackingHelper").isVisible(this.$1.getRootNode(),0)},n.$14=function(){var e=null,t=null,n=null,a=null,i=null,l=null,s=this.$1.getOption("VideoWithInstreamVideo","controller");if(s){var u=s.getMostRecentAdInfo();u&&u.adClientToken&&(e=u.adClientToken,t=Date.now()-u.adStartPlayingTimeMs,n=u.adPositionInVideoMs,a=u.playerOrigin,i=u.playerSubOrigin,l=u.playerFormat)}var c={ad_type:this.$2,video_id:this.$1.getVideoID(),is_indicator_shown:this.$6,is_ad_complete:this.$7},d=o("ScriptPath").getScriptPath();d!=null&&(c.script_path=d),e!=null&&(c.ad_client_token=e),t!=null&&(c.elapsed_time_since_ad=t),n!=null&&(c.ad_position_in_video=n),l!=null&&(c.player_format=l),a!=null&&(c.player_origin=a),i!=null&&(c.player_sub_origin=i);var m=r("XVideoWithRapidFeedbackAsyncControllerRouteBuilder").buildUri(c);new(r("AsyncRequest"))(m).send()},t})();l.default=s}),98); __d("VideoWithSequentialAutoplay",["Arbiter","SubscriptionsHandler","VideoPlayerHTML5Experiments","destroyOnUnload"],(function(t,n,r,o,a,i){var e=(function(){"use strict";function e(e,t){var r=this;if(this.$1=e,this.$2=t,this.$3=new(n("SubscriptionsHandler")),n("VideoPlayerHTML5Experiments").displayLoopingWhenAutoplayNextVideo&&this.$2&&this.$2!=="0")if(this.$1.hasOption("Looping","disabled"))this.$1.setOption("Looping","disabled",!0);else{var o=this.$1.addListener("optionsChange",function(){r.$1.hasOption("Looping","disabled")&&(r.$1.setOption("Looping","disabled",!0),o.remove())});this.$3.addSubscriptions(o)}this.$1.addListener("finishPlayback",this.$4.bind(this)),this.$3.addSubscriptions(n("Arbiter").subscribe("nextVideoAutoplay",function(e,t){t.nextVideoID==r.$1.getVideoID()&&r.$1.play("autoplay_initiated")})),n("destroyOnUnload")(function(){return r.$3.release()})}var t=e.prototype;return t.$4=function(){n("Arbiter").inform("nextVideoAutoplay",{nextVideoID:this.$2})},e})();a.exports=e}),null);