;/*FB_PKG_DELIM*/ __d("VideoPlayerScrubberPreview_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerScrubberPreview_video",selections:[{alias:null,args:null,concreteType:"ScrubberPreview",kind:"LinkedField",name:"scrubber_preview_thumbnail_information",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"sprite_uris",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"thumbnail_width",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"thumbnail_height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_preview_thumbnails",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"num_images_per_row",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"max_number_of_images_per_sprite",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"time_interval_between_image",storageKey:null}],storageKey:null}],type:"Video",abstractKey:null};e.exports=a}),null); __d("useRelayClientStateWithLocalStorage",["CometRelay","FBLogger","WebStorage","react","useStable"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useCallback,i=b.useEffect,j=new Set();function a(a,b,e,f){var g=j.has(b),k=d("CometRelay").useRelayEnvironment(),l=c("useStable")(c("WebStorage").getLocalStorage),m=c("useStable")(function(){if(g||l==null)return f;var a=l.getItem(b);try{return a==null||a===""?f:JSON.parse(a)}catch(a){return f}}),n=h(function(c){d("CometRelay").commitLocalUpdate(k,function(d){d=d.get(a);if(d==null)return;if(d.getValue(e)===c)return;d.setValue(c,e);j.add(b)})},[k,e,a,b]);i(function(){if(l==null)return;if(!g)return;var a=JSON.stringify(f);if(a==null)return;try{l.setItem(b,a)}catch(b){b!=null&&typeof b==="object"&&b.code===22&&l.clear();a=c("FBLogger")("use_local_storage");b instanceof Error&&(a=a.catching(b));a.mustfix("Cannot save to local storage.")}},[b,g,l,f]);return[g?f:m,n]}g.useRelayClientStateWithLocalStorage=a}),98); __d("useFeedClickEventHandler",["react","useStoryClickEventLogger"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useCallback;function a(a,b){var d=c("useStoryClickEventLogger")();return h(function(c){a&&a(c);var e=c.type;if(e==="click"||e==="contextmenu"||e==="mousedown"&&typeof c.button==="number"&&(c.button===1||c.button===2)||e==="keydown"&&(c.key==="Enter"||c.key===" ")){e=typeof c.button==="number"?c.button:0;d(c.timeStamp,e,b)}},[a,d,b])}g["default"]=a}),98); __d("useSEOLoggedOutWebCrawler",["gkx"],(function(a,b,c,d,e,f,g){"use strict";function a(){return c("gkx")("1779508")}g["default"]=a}),98); __d("getFormattedTimestamp",["DateConsts"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b="";a=a;isNaN(a)?a=0:a<0&&(a*=-1,b="-");var c=Math.floor(a/d("DateConsts").SEC_PER_HOUR),e=Math.floor((a-c*d("DateConsts").SEC_PER_HOUR)/d("DateConsts").SEC_PER_MIN);a=Math.round(a-c*d("DateConsts").SEC_PER_HOUR-e*d("DateConsts").SEC_PER_MIN);a===d("DateConsts").SEC_PER_MIN&&(a=0,e++);e===d("DateConsts").MIN_PER_HOUR&&(e=0,c++);a=("0"+a).slice(-2);if(c===0)return""+b+e+":"+a;else{e=("0"+e).slice(-2);return""+b+c+":"+e+":"+a}}g["default"]=a}),98); __d("VideoPlayerWwwLogger",["VideoPlayerWwwFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";function h(a){var b,c=a.logData.live_trace_stream_id!==null&&a.logData.live_trace_stream_type!==null;return{access_token:a.logData.access_token,ad_client_token:a.logData.ad_client_token,attribution_id:a.logData.attribution_id,attribution_id_v2:a.logData.attribution_id_v2,attribution_id_v2_root:a.logData.attribution_id_v2_root,audio_only:a.logData.audio_only,audio_representation_id:a.logData.audio_representation_id,autoplay_eligible:a.logData.autoplay_eligible,autoplay_failure_reasons:a.logData.autoplay_failure_reasons,autoplay_setting:a.logData.autoplay_setting,available_qualities:a.logData.available_qualities,broadcaster_origin:a.logData.broadcaster_origin,browser_tab_id:a.logData.browser_tab_id,caption_state:a.logData.caption_state,cast_client_app_id:a.logData.cast_client_app_id,client_latency_setting:a.logData.client_latency_setting,current_playback_speed:a.logData.current_playback_speed,current_viewability_percentage:Number(a.logData.current_viewability_percentage),current_volume:a.logData.current_volume,dash_perf_logging_enabled:a.logData.dash_perf_logging_enabled,data_connection_quality:a.logData.data_connection_quality,debug_reason:a.logData.debug_reason,device_id:a.logData.device_id,device_type:a.logData.device_type,dropped_frame_count:Number(a.logData.dropped_frame_count),error:a.logData.error,error_code:a.logData.error_code,error_description:a.logData.error_description,error_domain:a.logData.error_domain,error_type:a.logData.error_type,error_user_info:a.logData.error_user_info,event_name:a.eventType,event_seq_num:a.logData.event_seq_num,external_log_id:a.logData.external_log_id,external_log_type:a.logData.external_log_id,fb_manifest_identifier:a.logData.fb_manifest_identifier,feed_aggregation_type:a.logData.feed_aggregation_type,feed_position:a.logData.feed_position,frame_events:a.logData.frame_events,ft:a.logData.ft,imf_emsg_id:a.logData.imf_emsg_id,imf_event_type:a.logData.imf_event_type,imf_topic:a.logData.imf_topic,interrupt_count:a.logData.interrupt_count!==null?Number(a.logData.interrupt_count):null,interrupt_time:Number(a.logData.interrupt_time),is_abr_enabled:a.logData.is_abr_enabled,is_fbms:a.logData.is_fbms,is_live_preview:(b=a.logData.is_live_preview)!=null?b:!1,is_live_video_rewound:a.logData.is_live_video_rewound,is_p2p_playback:a.logData.is_p2p_playback,is_pip:a.logData.is_pip,is_predictive_playback:a.logData.is_predictive_playback,is_sound_on:a.logData.is_sound_on,is_stalling:a.logData.is_stalling,is_templated_manifest:a.logData.is_templated_manifest,last_viewability_percentage:Number(a.logData.last_viewability_percentage),live_trace_source_id:a.logData.live_trace_source_id,live_trace_stream_id:c?a.logData.live_trace_stream_id:null,live_trace_stream_type:c?a.logData.live_trace_stream_type:null,mpd_validation_errors:a.logData.mpd_validation_errors,network_connected:a.logData.network_connected,next_representation_id:a.logData.next_representation_id,notification_id:a.logData.notification_id,notification_medium:a.logData.notification_medium,offset_ms:a.logData.offset_ms!=null?String(a.logData.offset_ms):null,permalink_share_id:a.logData.permalink_share_id,playback_caption_format:a.logData.playback_caption_format,playback_caption_locale:a.logData.playback_caption_locale,playback_duration:a.logData.playback_duration,playback_is_broadcast:a.logData.playback_is_broadcast,playback_is_drm:a.logData.playback_is_drm,playback_is_live_streaming:a.logData.playback_is_live_streaming,player_format:a.logData.player_format,player_instance_key:a.logData.player_instance_key,player_mode:a.logData.player_mode,player_origin:a.logData.player_origin,player_state:a.logData.player_state,player_suborigin:a.logData.player_suborigin,player_version:a.logData.player_version,reaction_video_channel_type:a.logData.reaction_video_channel_type,representation_id:a.logData.representation_id,resource_url:a.logData.resource_url,routeTracePolicy:a.routeTracePolicy,seq_num:a.logData.seq_num,source:a.source_VPL_LOGGING_HACK,source_VPL_LOGGING_HACK:a.logData.source_VPL_LOGGING_HACK,stall_count:Number(a.logData.stall_count),stall_count_200_ms:Number(a.logData.stall_count_200_ms),stall_time:Number(a.logData.stall_time),state:a.logData.state,streaming_format:a.logData.streaming_format,time_ms:a.logData.time_ms,total_frame_count:Number(a.logData.total_frame_count),tracking_data_encrypted:a.logData.tracking_data_encrypted,tracking_nodes:a.logData.tracking_nodes,tv_session_id:a.logData.tv_session_id,v2_heart_beat:a.logData.v2_heart_beat,video_bandwidth:a.logData.video_bandwidth,video_buffer_end_position:a.logData.video_buffer_end_position,video_chaining_depth_level:a.logData.video_chaining_depth_level,video_chaining_parent_video_id:a.logData.video_chaining_parent_video_id,video_chaining_session_id:a.logData.video_chaining_session_id,video_channel_id:a.logData.video_channel_id,video_id:a.logData.video_id,video_last_start_time_position:a.logData.video_last_start_time_position,video_play_reason:a.logData.video_play_reason,video_player_height:Number(a.logData.video_player_height),video_player_width:Number(a.logData.video_player_width),video_time_position:a.logData.video_time_position,vpts:a.logData.vpts,web_client_revision:a.logData.web_client_revision}}a={logComet:function(a){c("VideoPlayerWwwFalcoEvent").log(function(){return h(a)})},logCometImmediately:function(a){c("VideoPlayerWwwFalcoEvent").logImmediately(function(){return h(a)})}};b=a;g["default"]=b}),98); __d("useConcurrentAutoplayManagementAPI",["react","removeFromArray","useCometUniqueID"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useState;function a(){return c("useCometUniqueID")()}function i(){var a=[];return{isControllingComponent:function(b){var c=a.length;return a[c-1]===b},registerControllingComponent:function(b){c("removeFromArray")(a,b),a.push(b)},unregisterControllingComponent:function(b){var d=a.length;d>1&&c("removeFromArray")(a,b);return d>1}}}function b(){var a=h(function(){return i()});a=a[0];return a}g.useAutoplayControlID=a;g.createConcurrentAutoplayManagementAPI=i;g.useConcurrentAutoplayManagementAPI=b}),98); __d("VideoPlayerCaptionsController",["JSResourceForInteraction","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h=c("JSResourceForInteraction")("VideoPlayerHTML5ApiCea608State").__setRef("VideoPlayerCaptionsController"),i=c("JSResourceForInteraction")("VideoPlayerHTML5ApiWebVttState").__setRef("VideoPlayerCaptionsController");function a(a){var b=a.captionsUrl,d=a.inbandCaptionsExpected,e=a.onCaptionsLoaded,f=null,g=null,j=null,k=null;function l(a){var b=i.load().then(function(c){if(b!==j)return;f=new c({captionsDisplay:null,onCaptionsLoaded:e,onReady:function(b){b.loadFromUrl(a)}})})["catch"](function(a){if(b!==j)return;c("recoverableViolation")("Failed to load the VideoPlayerHTML5ApiWebVttState module: "+a.message,"comet_video_player")});return b}function m(){var a=h.load().then(function(b){if(a!==k)return;g=new b({captionsDisplay:null,onCaptionsLoaded:e,onReady:function(a){a.processQueue()}})})["catch"](function(b){if(a!==k)return;c("recoverableViolation")("Failed to load the VideoPlayerHTML5ApiCea608State module: "+b.message,"comet_video_player")});return a}b!=null?j=l(b):d===!0&&(k=m());return{destroy:function(){f&&(f.destroy(),f=null),g&&(g.destroy(),g=null),j&&(j=null),k&&(k=null)},getCaptionFormat:function(){return f?"webvtt":g?"cea608":null},handleCea608BytesReceived:function(a){g&&g.enqueueBytes(a)},handleTimeUpdate:function(a){if(f){var b;f.source&&f.source.handleTimeUpdate(a);return(b=(b=f)==null?void 0:b.getCurrentScreenRepresentation())!=null?b:null}else if(g){g.source&&g.source.handleTimeUpdate(a);return(a=(b=g)==null?void 0:b.getCurrentScreenRepresentation())!=null?a:null}return null},updateCaptionsUrl:function(a){f&&(f.destroy(),f=null),a!=null&&(j=l(a))},updateInbandCaptionsExpected:function(a){g&&(g.destroy(),g=null),a&&(k=m())}}}g.createCaptionsController=a}),98); __d("CastingStateHooks",["CastingContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useContext;function a(){var a=h(d("CastingContext").CastingStateContext);return(a==null?void 0:a.receiverIsConnected)||!1}function i(){var a=s();return a==null?null:a.currentVideoID}function b(){var a=i();return a!=null}function c(){var a=s();return a==null?0:a.currentPosition||0}function e(){var a=s();return a==null?0:a.currentDuration||0}function f(){var a=s();if(a==null)return!1;a=a.currentPlaybackState;return a==="play"||a==="seeking"}function j(){var a=s();if(a==null)return!1;a=a.currentPlaybackState;return a==="paused"}function k(){var a=s();if(a==null)return!1;a=a.currentPlaybackState;return a==="ended"}function l(){var a=h(d("CastingContext").CastingStateContext);return a==null||!a.receiverIsConnected?!1:a.receiverIsMuted===!0}function m(){var a=h(d("CastingContext").CastingStateContext);return a==null||!a.receiverIsConnected?0:a.receiverVolume||0}function n(){var a=h(d("CastingContext").CastingStateContext);return a==null||!a.receiverIsConnected?null:a.receiverFriendlyName}function o(){var a=t();return a==null?!1:!0}function p(){var a=u();return a==null?!1:a.currentPlaybackState==="paused"}function q(){var a=u();return a==null?!1:a.currentPlaybackState==="play"}function r(){var a=u();return a==null?null:a.currentAssetID}function s(){var a=h(d("CastingContext").CastingStateContext),b=h(d("CastingContext").CastingExperienceStateContext);if(a==null||!a.receiverIsConnected)return null;return(b==null?void 0:b.type)!=="video_channel"?null:b}function t(){var a=h(d("CastingContext").CastingStateContext),b=h(d("CastingContext").CastingExperienceStateContext);if(a==null||!a.receiverIsConnected)return null;return(b==null?void 0:b.type)!=="photo"?null:b}function u(){var a=h(d("CastingContext").CastingStateContext),b=h(d("CastingContext").CastingExperienceStateContext);if(a==null||!a.receiverIsConnected)return null;return(b==null?void 0:b.type)!=="photo_album"?null:b}g.useIsCastingConnected=a;g.useCastingVideoID=i;g.useIsCastingAnyVideo=b;g.useCastingCurrentTime=c;g.useCastingDuration=e;g.useCastingIsPlaying=f;g.useCastingIsPaused=j;g.useCastingIsEnded=k;g.useCastingIsMuted=l;g.useCastingVolume=m;g.useCastingReceiverFriendlyName=n;g.useIsCastingPhotoExperience=o;g.useCastingIsAlbumPaused=p;g.useCastingIsAlbumPlaying=q;g.useCastingAlbumAssetID=r}),98); __d("VideoControlsContainerFocusedContext",["react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b=a.createContext(!1);g["default"]=b}),98); __d("VideoPlayerControlsBottomRowAddOnContext",["react","useStable"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");d=d("react");var i=d.useContext,j=d.useEffect,k=d.useState,l=h.createContext(null);function a(a){a=a.children;var b=c("useStable")(function(){var a=null,b=null,c=null;return{getBottomRowAddOn:function(){return b},initialize:function(d){c=function(a){b=a,d(a)};if(a==null)return;c(a);a=null},setBottomRowAddOn:function(b){if(c==null){a=b;return}c(b)}}});return h.jsx(l.Provider,{value:b,children:a})}a.displayName=a.name+" [from "+f.id+"]";function b(a){var b=i(l);a=k(a);var c=a[0],d=a[1];j(function(){if(b==null)return;b.initialize(d)},[b]);return c}b.displayName=b.name+" [from "+f.id+"]";function e(a){var b=i(l);j(function(){if(b==null)return;b.setBottomRowAddOn(a)},[a,b])}g.VideoPlayerControlsBottomRowAddOnContext=l;g.VideoPlayerControlsBottomRowAddOnContextProvider=a;g.useVideoPlayerControlsBottomRowAddOn=b;g.useSetVideoPlayerControlsBottomRowAddOn=e}),98); __d("VideoPlayerControlsContainerOverlay.react",["CometErrorBoundary.react","FocusWithinHandler.react","VideoControlsContainerFocusedContext","VideoPlayerControlsBottomRowAddOnContext","VideoPlayerControlsHiddenContext","VideoPlayerHooks","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useEffect,j=44,k={backgroundGradient:{backgroundImage:"x11v4dcs",bottom:"x1ey2m1c",height:"xn3w4p2",position:"x10l6tqk",transitionDuration:"x1d8287x",transitionProperty:"x6o7n8i",transitionTimingFunction:"xl405pv",width:"xh8yej3",zIndex:"x8knxv4",$$css:!0},"default":{bottom:"x1ey2m1c",flexDirection:"x1q0g3np",position:"x10l6tqk",transitionDuration:"x1d8287x",transitionProperty:"x6o7n8i",transitionTimingFunction:"xl405pv",width:"xh8yej3",zIndex:"x11uqc5h",$$css:!0},firstRow:{alignItems:"x6s0dn4",direction:"xzt5al7",display:"x78zum5",flexDirection:"x1q0g3np",$$css:!0},hidden:{opacity:"xg01cxk",pointerEvents:"x47corl",visibility:"xlshs6z",$$css:!0},visible:{opacity:"x1hc1fzr",$$css:!0}};function a(a){var b=a.children,e=a.initialBottomRowAddOn;e=e===void 0?null:e;var f=a.isBackgroundVisible,g=a.isVisible,l=a.xstyle,m=d("VideoPlayerControlsBottomRowAddOnContext").useVideoPlayerControlsBottomRowAddOn(e);a=d("VideoPlayerHooks").useVideoPlayerCaptionsReservationActions();var n=a.release,o=a.reserve;i(function(){if(Boolean(g)||Boolean(f)){var a=o({location:"bottom",size:j});return function(){n(a)}}},[g,f,o,n]);var p=f===!1||g===!1,q=f===!0||g===!0;return h.jsx(c("FocusWithinHandler.react"),{children:function(a,d){return h.jsx(c("VideoControlsContainerFocusedContext").Provider,{value:d,children:h.jsxs("div",{className:"x1ey2m1c x10l6tqk x1d8287x x6o7n8i xl405pv xh8yej3 x11uqc5h"+((m==null?" x1q0g3np x6s0dn4 xzt5al7 x78zum5":" x1q0g3np")+((g===!0?" x1hc1fzr":""+(g===!1?" xg01cxk":""+(m==null?"":"")))+(g===!1?" x47corl xlshs6z":""))),"data-testid":void 0,children:[h.jsx("div",{className:c("stylex")(k.backgroundGradient,p&&k.hidden,q&&k.visible,l)}),h.jsx(c("VideoPlayerControlsHiddenContext").Provider,{value:p,children:m==null?b:h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"x6s0dn4 xzt5al7 x78zum5 x1q0g3np",children:b}),h.jsx(c("CometErrorBoundary.react"),{children:m})]})})]})})}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerControlsGroups.react",["VideoControlsContainerFocusedContext","VideoPlayerControlsHiddenContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useContext;function a(a){var b=a.children,d=a.isVisible;d=d===void 0?!0:d;var e=a.noPaddingEnd;e=e===void 0?!1:e;a=a.noPaddingStart;a=a===void 0?!1:a;var f=i(c("VideoControlsContainerFocusedContext"));d=d||f;f=i(c("VideoPlayerControlsHiddenContext"));return h.jsx("div",{className:"x6s0dn4 x78zum5 x1q0g3np x2lah0s xozqiw3 xexx8yu x18d9i69"+((d?" x1hc1fzr":" x1fmh03i x47corl")+((e?" x4uap5":" x1mpkggp")+(a?" xkhd6sd":" x1t2a60a"))),children:h.jsx(c("VideoPlayerControlsHiddenContext").Provider,{value:f||!d,children:b})})}a.displayName=a.name+" [from "+f.id+"]";function b(a){var b=a.children;a=a.isVisible;a=a===void 0?!0:a;var d=i(c("VideoControlsContainerFocusedContext"));a=a||d;d=i(c("VideoPlayerControlsHiddenContext"));return h.jsx("div",{className:"x6s0dn4 x78zum5 x1q0g3np x2lah0s xozqiw3 x1iyjqo2"+(a?" x1hc1fzr":" x1fmh03i x47corl"),children:h.jsx(c("VideoPlayerControlsHiddenContext").Provider,{value:d||!a,children:b})})}b.displayName=b.name+" [from "+f.id+"]";g.Contracted=a;g.Expanded=b}),98); __d("VideoPlayerPlaybackControlBase.react",["fbt","ix","VideoPlayerControlIcon.react","fbicon","react","unrecoverableViolation"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");function a(a){var b=a.onPress;a=a.playbackIcon;var e,f;switch(a){case"pause":e=h._("__JHASH__neZzFA-dHLC__JHASH__");f=d("fbicon")._(i("497675"),20);break;case"replay":e=h._("__JHASH__HFCl7btmLVQ__JHASH__");f=d("fbicon")._(i("534219"),20);break;case"play":e=h._("__JHASH__Pdft-1wnTrL__JHASH__");f=d("fbicon")._(i("484863"),20);break;default:a;throw c("unrecoverableViolation")("The playback icon is unsupported "+a,"comet_video_player")}return j.jsx(c("VideoPlayerControlIcon.react"),{icon:f,label:e,onPress:b,tooltip:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerPlaybackControl.react",["VideoHomeTypedLoggerLite","VideoPlayerHooks","VideoPlayerPlaybackControlBase.react","react","useFeedClickEventHandler","useVideoPlayerControllerSubscription"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useEffect;function a(a){var b=a.isNPC,e=b===void 0?!1:b;b=a.unmuteOnPlay;var f=b===void 0?!1:b;i(function(){e&&c("VideoHomeTypedLoggerLite").log({event:"npc_control_playback_button_impression"})},[e]);a=c("useVideoPlayerControllerSubscription")(function(a,b){var c=a.getCurrentState(),d=c.ended,e=c.paused,f=c.playing,g=c.stalling;a=a.getPlayheadPosition();c=c.duration;e=!e&&(f||g);g=!f&&d&&a>=c;return b!=null&&b.showPauseButton===e&&b.showReplayButton===g?b:{showPauseButton:e,showReplayButton:g}});var g=a.showPauseButton;b=a.showReplayButton;var j=d("VideoPlayerHooks").useController();a=c("useFeedClickEventHandler")(function(){e&&c("VideoHomeTypedLoggerLite").log({click_point:"npc_control_playback_button",event:"click",event_target:"video"}),g?j.pause("user_initiated"):(f&&j.setMuted(!1,"user_initiated"),j.play("user_initiated"))});b=g?"pause":b?"replay":"play";return h.jsx(c("VideoPlayerPlaybackControlBase.react"),{onPress:a,playbackIcon:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerLiveRewindControlContext",["react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b=a.createContext({cachedLiveRewindTimestamp:null,onLiveRewindControlEvent:function(){}});g["default"]=b}),98); __d("VideoPlayerPlaybackTimerBase.react",["getFormattedTimestamp","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.currentTime;a=a.duration;return h.jsxs("div",{className:"x14ctfv x1rg5ohu x1pg5gke xss6m8b x7h9g57 x1t4t16n x8j4wrb x9hgts1 x2b8uid x27saw0 x3ajldb",children:[h.jsx("span",{className:"x1s688f x15hfatp",children:c("getFormattedTimestamp")(b)}),a!=null&&h.jsxs(h.Fragment,{children:[h.jsx("span",{children:" / "}),h.jsx("span",{children:c("getFormattedTimestamp")(a)})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useLiveRewindUtils",["VideoPlayerHooks","VideoPlayerLiveRewindControlContext","react","useVideoPlayerControllerSubscription"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=h.useCallback,j=h.useContext,k=10,l=10;function a(){var a=d("VideoPlayerHooks").useController(),b=j(c("VideoPlayerLiveRewindControlContext"));return i(function(){var c=a.getCurrentState().seekableRanges;c=c!=null?(c=c.end(c.length()-1))!=null?c:0:0;var d=Math.min(a.getPlayheadPosition()+k,c);d===c?(a.setIsLiveRewindActive(!1),a.seek(c)):a.seek(d);b.onLiveRewindControlEvent()},[b,a])}function b(){var a=d("VideoPlayerHooks").useController(),b=j(c("VideoPlayerLiveRewindControlContext"));return i(function(){var c=a.getCurrentState().seekableRanges;c=(c=c==null?void 0:c.start(0))!=null?c:0;c=Math.max(a.getPlayheadPosition()-l,c);a.seek(c);a.setIsLiveRewindActive(!0);b.onLiveRewindControlEvent()},[b,a])}function e(){var a=d("VideoPlayerHooks").useController(),b=j(c("VideoPlayerLiveRewindControlContext"));return i(function(){var c=a.getCurrentState().seekableRanges;c=c!=null?(c=c.end(c.length()-1))!=null?c:0:0;a.seek(c);a.play("user_initiated");a.setIsLiveRewindActive(!1);b.onLiveRewindControlEvent()},[b,a])}function f(){var a=d("VideoPlayerHooks").useController(),b=j(c("VideoPlayerLiveRewindControlContext"));return i(function(){var c=a.getCurrentState().seekableRanges;c=(c=c==null?void 0:c.start(0))!=null?c:0;a.seek(c);a.setIsLiveRewindActive(!0);b.onLiveRewindControlEvent()},[b,a])}function m(){var a=d("VideoPlayerHooks").useController(),b=j(c("VideoPlayerLiveRewindControlContext"));return i(function(){a.play("user_initiated"),b.onLiveRewindControlEvent()},[b,a])}function n(){var a=d("VideoPlayerHooks").useController(),b=j(c("VideoPlayerLiveRewindControlContext"));return i(function(){a.pause("user_initiated"),a.setIsLiveRewindActive(!0),b.onLiveRewindControlEvent()},[b,a])}function o(){var a=d("VideoPlayerHooks").useController(),b=j(c("VideoPlayerLiveRewindControlContext"));return i(function(){var c=a.getCurrentState().seekableRanges;c=(c=c==null?void 0:c.start(0))!=null?c:0;a.seek(c);a.setIsLiveRewindActive(!0);a.play("user_initiated");b.onLiveRewindControlEvent()},[b,a])}function p(){var a=d("VideoPlayerHooks").useController(),b=j(c("VideoPlayerLiveRewindControlContext"));return i(function(c){var d,e=a.getCurrentState().seekableRanges;d=(d=e==null?void 0:e.start(0))!=null?d:0;e=e!=null?(e=e.end(e.length()-1))!=null?e:0:0;d=Math.min(d+c,e);a.scrubEnd(d);d===e?a.setIsLiveRewindActive(!1):a.setIsLiveRewindActive(!0);b.onLiveRewindControlEvent()},[b,a])}function q(){return c("useVideoPlayerControllerSubscription")(function(a){return(a=(a=a.getCurrentState().seekableRanges)==null?void 0:a.start(0))!=null?a:0})}g.useLiveRewindForward=a;g.useLiveRewindBack=b;g.useLiveRewindLive=e;g.useLiveRewindStart=f;g.useLiveRewindPlay=m;g.useLiveRewindPause=n;g.useLiveRewindReplay=o;g.useLiveRewindScrub=p;g.useLiveRewindSeekableStartTime=q}),98); __d("VideoPlayerPlaybackTimer.react",["VideoPlayerHooks","VideoPlayerLiveRewindControlContext","VideoPlayerPlaybackTimerBase.react","gkx","react","useLiveRewindUtils"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useContext,j=function(){return d("VideoPlayerHooks").useCurrentTimeThrottled(200)};function a(){var a=d("VideoPlayerHooks").useIsLive(),b=d("VideoPlayerHooks").useDuration(),e=j(),f=d("useLiveRewindUtils").useLiveRewindSeekableStartTime(),g=i(c("VideoPlayerLiveRewindControlContext"));g=g.cachedLiveRewindTimestamp;var k=d("VideoPlayerHooks").useIsLiveRewindActive();if(a){a=e-f;k&&g!=null&&c("gkx")("1657274")&&(a=g);return h.jsx(c("VideoPlayerPlaybackTimerBase.react"),{currentTime:a,duration:null})}return h.jsx(c("VideoPlayerPlaybackTimerBase.react"),{currentTime:e,duration:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerPointerDrag",["react","useResizeObserver","useStable"],(function(a,b,c,d,e,f,g){"use strict";f=d("react");var h=f.useEffect,i=f.useRef,j=f.useState;function a(){var a=i(null),b=i(null),d=c("useResizeObserver")(function(c,d){a.current=d.getBoundingClientRect(),b.current=d}),e=c("useStable")(function(){return function(){var c=b.current;c?a.current=c.getBoundingClientRect():a.current=null}});return{invalidateRootRect:e,rootRectRef:a,rootSizeRefCallback:d}}function b(a,b){if(b==null)return null;var c=Math.max(0,Math.min(b.width,a.clientX-b.left));a=Math.max(0,Math.min(b.height,a.clientY-b.top));return{ratioX:b.width>0?c/b.width:0,ratioY:b.height>0?a/b.height:0}}function k(a,b){a=a.changedTouches;if(b==null||!a)return null;for(var c=0;c=0};function o(a,b,c){var d=m,e=null,f=null,g=function(b){d=l(d,b),a(d)},h=function(a){g({clientX:a.clientX,clientY:a.clientY,type:"move"});a=b.current.onDragMoveSync;a==null?void 0:a(d)},i=function(a){e&&e();g({clientX:a.clientX,clientY:a.clientY,type:"end"});a=b.current.onDragEndSync;a==null?void 0:a(d)},j=function(){e&&e();g({type:"cancel"});var a=b.current.onDragCancelSync;a==null?void 0:a(d)},o=function(a){a=k(a,c.current);if(a==null)return;g({clientX:a.clientX,clientY:a.clientY,type:"move"});a=b.current.onDragMoveSync;a==null?void 0:a(d)},p=function(a){a=k(a,c.current);if(a==null)return;f&&f();g({clientX:a.clientX,clientY:a.clientY,type:"end"});a=b.current.onDragEndSync;a==null?void 0:a(d)},q=p;return{destroy:function(){e&&e(),f&&f()},onMouseDown:function(a){n()||a.preventDefault();g({clientX:a.clientX,clientY:a.clientY,type:"start"});a=b.current.onDragStartSync;a==null?void 0:a(d);e||(window.addEventListener("mousemove",h),window.addEventListener("mouseup",i),window.addEventListener("blur",j),window.addEventListener("mouseleave",j),e=function(){e=null,window.removeEventListener("mousemove",h),window.removeEventListener("mouseup",i),window.removeEventListener("blur",j),window.removeEventListener("mouseleave",j)})},onTouchStart:function(a){a.preventDefault();var e=a.changedTouches[0];e!=null&&(c.current=e.identifier);e=k(a,c.current);if(e==null)return;g({clientX:e.clientX,clientY:e.clientY,type:"start"});a=b.current.onDragStartSync;a==null?void 0:a(d);f||(window.addEventListener("touchmove",o),window.addEventListener("touchend",p),window.addEventListener("touchcancel",q),window.addEventListener("blur",j),f=function(){f=null,window.removeEventListener("touchmove",o),window.removeEventListener("touchend",p),window.removeEventListener("touchcancel",q),window.removeEventListener("blur",j)})}}}function p(a,b){h(function(){var c=b.current,d=c.onDragCancel,e=c.onDragEnd,f=c.onDragMove;c=c.onDragStart;switch(a.lastEffect){case"start":c(a);return;case"move":f(a);return;case"end":e(a);return;case"cancel":d(a);return}},[a,b])}function q(a,b,d){var e=j(m),f=e[0],g=e[1];e=c("useStable")(function(){return o(g,a,b)});var i=e.destroy,k=e.onMouseDown;e=e.onTouchStart;h(function(){return i},[i]);return{dragState:f,rootProps:{onClick:function(a){a.stopPropagation(),a.preventDefault()},onMouseDown:k,onTouchStart:(d==null?void 0:d.hasTouchEvents)===!0?e:void 0}}}function e(a,b){var c=i(a),d=i(null);h(function(){c.current=a},[a]);d=q(c,d,b);b=d.dragState;d=d.rootProps;p(b,c);return{dragState:b,isDragging:b.dragState==="dragging",rootProps:d}}g.usePointerDragResizeObserver=a;g.computePointerOffsetRatio=b;g.usePointerDrag=e}),98); __d("VideoPlayerSliderNub.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){a=a.isVisible;return h.jsx("div",{className:"x14hiurz xtucvfd xj0q7ni x1e4yufr x1sp3icg x14yjl9h xudhj91 x18nykt9 xww2gxu x1nqv1ya xdk7pt x1x862rh x1rdy4ex x10l6tqk x3m8u43 x1xc55vz x1vjfegm"+(a?" x1lliihq":" x1s85apg"),"data-testid":void 0})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerScrubberBase.react",["fbt","CometComponentWithKeyCommands.react","CometKeys","CometVisualCompletionAttributes","VideoPlayerPointerDrag","VideoPlayerSliderNub.react","VideoPlayerUserInteractionCounter","react","stylex","usePrevious"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useCallback,k=b.useEffect,l=b.useMemo,m=b.useState,n={liveRewindTimePlayed:{backgroundColor:"xh1tjdi",$$css:!0},liveTimePlayed:{backgroundColor:"x1ciooss",$$css:!0},root:{cursor:"x1ypdohk",paddingTop:"x1y1aw1k",paddingEnd:"x4uap5",paddingBottom:"xwib8y2",paddingStart:"xkhd6sd",position:"x1n2onr6",userSelect:"x87ps6o",width:"xh8yej3",$$css:!0},timelineBackground:{backgroundColor:"x1rwy58d",borderTopStartRadius:"xm3z3ea",borderTopEndRadius:"x1x8b98j",borderBottomEndRadius:"x131883w",borderBottomStartRadius:"x16mih1h",boxShadow:"xpdb0fs",height:"xuoj239",textShadow:"xd9u3wd",userSelect:"x87ps6o",$$css:!0},timelineBuffered:{height:"xuoj239",position:"x10l6tqk",$$css:!0},timelineBufferedBackground:{backgroundColor:"x17j41np",$$css:!0},timelinePlayed:{backgroundColor:"x1evw4sf",borderTopStartRadius:"xm3z3ea",borderTopEndRadius:"x1x8b98j",borderBottomEndRadius:"x131883w",borderBottomStartRadius:"x16mih1h",height:"xuoj239",position:"x10l6tqk",userSelect:"x87ps6o",$$css:!0},tooltipContainer:{bottom:"xfqi8uc",position:"x10l6tqk",$$css:!0}};function o(a,b){return Math.min(a>0?b/a:0,1)}function a(a){var b=a.bufferEnd,e=a.currentTime,f=a.disableKeyCommands,g=a.duration,p=a.isLive,q=a.isLiveRewindActive,r=a.keyLeftDescription,s=a.keyRightDescription,t=a.onScrubCancel,u=a.onScrubEnd,v=a.onScrubStart,w=a.onUserInteraction,x=a.playFromBeginningImpl,y=a.renderTooltip,z=a.skipBackwardImpl,A=a.skipForwardImpl,B=a.skipToEndImpl,C=a.supportsTouch,D=a.timelineBackgroundXStyle,E=a.timelineBufferedXStyle;a=a.timelinePlayedXStyle;var F=d("VideoPlayerPointerDrag").usePointerDragResizeObserver(),G=F.invalidateRootRect,H=F.rootRectRef;F=F.rootSizeRefCallback;var I=c("usePrevious")(e),J=m(!1),K=J[0],L=J[1];J=m(0);var M=J[0],N=J[1];J=m(!1);var O=J[0],P=J[1];J=m(0);var Q=J[0],R=J[1];J=m(null);var S=J[0],T=J[1];k(function(){e!==I&&P(!1)},[e,I]);J=d("VideoPlayerPointerDrag").usePointerDrag({onDragCancel:function(a){t()},onDragEnd:function(a){a=d("VideoPlayerPointerDrag").computePointerOffsetRatio(a,H.current);if(!a){t();return}N(a.ratioX);a=a.ratioX*g;u(a)},onDragEndSync:function(){P(!0)},onDragMove:function(a){a=d("VideoPlayerPointerDrag").computePointerOffsetRatio(a,H.current);if(!a)return;N(a.ratioX)},onDragStart:function(a){G();a=d("VideoPlayerPointerDrag").computePointerOffsetRatio(a,H.current);if(!a)return;N(a.ratioX);v()}},{hasTouchEvents:C===!0});C=J.isDragging;J=J.rootProps;var U=j(function(){L(!0)},[]),V=j(function(){L(!1)},[]),W=j(function(a){G();if(H.current!=null){var b=H.current.left,c=H.current.width,d=Math.max(0,Math.min(c,a.clientX-b));d=c>0?d/c:0;c=Number.isFinite(g)&&g>0?g*d:null;R(a.clientX-b);T(c)}},[g,G,H]),X=K||C;d("VideoPlayerUserInteractionCounter").useVideoPlayerUserInteraction("video_scrubber",X,w);X=K||C||O;w=C||O?M:p&&!q?1:o(g,e);C=o(g,b);O=l(function(){return f===!0?[]:[{command:{key:c("CometKeys").RIGHT},description:s,handler:A},{command:{key:c("CometKeys").LEFT},description:r,handler:z},{command:{key:c("CometKeys").HOME},description:h._("__JHASH__3cUloDtyzSK__JHASH__"),handler:x},{command:{key:c("CometKeys").END},description:h._("__JHASH__jTksR1FMT97__JHASH__"),handler:B}]},[f,s,A,r,z,x,B]);return i.jsx(c("CometComponentWithKeyCommands.react"),{commandConfigs:O,children:i.jsxs("div",babelHelpers["extends"]({},J,{"aria-label":h._("__JHASH__69czi8qDKMx__JHASH__"),"aria-orientation":"horizontal","aria-valuemax":g,"aria-valuemin":"0","aria-valuenow":e,className:"x1ypdohk x1y1aw1k x4uap5 xwib8y2 xkhd6sd x1n2onr6 x87ps6o xh8yej3","data-testid":void 0,onMouseEnter:U,onMouseLeave:V,onMouseMove:W,ref:F,role:"slider",tabIndex:"0",children:[i.jsxs("div",{className:c("stylex")(n.timelineBackground,D),children:[i.jsx("div",babelHelpers["extends"]({className:c("stylex")(n.timelineBuffered,!p&&n.timelineBufferedBackground,E)},c("CometVisualCompletionAttributes").IGNORE,{style:{width:(100*C).toFixed(5)+"%"}})),i.jsx("div",babelHelpers["extends"]({className:c("stylex")(n.timelinePlayed,p&&!q&&n.liveTimePlayed,p&&q&&n.liveRewindTimePlayed,a)},c("CometVisualCompletionAttributes").IGNORE,{style:{width:(100*w).toFixed(5)+"%"},children:i.jsx(c("VideoPlayerSliderNub.react"),{isVisible:X})}))]}),y!=null&&S!=null&&K&&i.jsx("div",{className:"xfqi8uc x10l6tqk",style:{left:Q},children:y(S)})]}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerScrubber.react",["fbt","VideoPlayerHooks","VideoPlayerScrubberBase.react","react","useLiveRewindUtils"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useCallback,k=function(){return d("VideoPlayerHooks").useCurrentTimeThrottled(200)};function a(a){var b=a.onUserInteraction;a=a.renderTooltip;var e=k(),f=d("VideoPlayerHooks").useDuration(),g=d("VideoPlayerHooks").useController(),l=d("VideoPlayerHooks").useBufferEnd(),m=d("VideoPlayerHooks").useIsLive(),n=d("VideoPlayerHooks").useIsLiveRewindActive(),o=d("useLiveRewindUtils").useLiveRewindScrub(),p=d("useLiveRewindUtils").useLiveRewindForward(),q=d("useLiveRewindUtils").useLiveRewindBack(),r=d("useLiveRewindUtils").useLiveRewindStart(),s=d("useLiveRewindUtils").useLiveRewindLive(),t=d("useLiveRewindUtils").useLiveRewindSeekableStartTime();m&&(f-=t,e-=t);t=j(function(){if(m)p();else{var a=g.getPlayheadPosition()+5;a>=f?g.seek(f-.01):g.seek(a)}},[g,m,p,f]);var u=m?h._("__JHASH__Fazg7jyI-AJ__JHASH__"):h._("__JHASH__Hz44qTuOc36__JHASH__"),v=j(function(){if(m)q();else{var a=g.getPlayheadPosition()-5;a<0?g.seek(0):g.seek(a)}},[g,m,q]),w=m?h._("__JHASH__fXj-dMG-OtJ__JHASH__"):h._("__JHASH__KzLU7zLc4h8__JHASH__"),x=j(function(){m?r():g.seek(0)},[g,m,r]),y=j(function(){m?s():g.seek(f-.01)},[g,m,s,f]),z=j(function(){g.scrubEnd(null)},[g]),A=j(function(){g.scrubBegin()},[g]),B=j(function(a){!m?g.scrubEnd(a):o(a)},[g,m,o]);return i.jsx(c("VideoPlayerScrubberBase.react"),{bufferEnd:l,currentTime:e,duration:f,isLive:m,isLiveRewindActive:n,keyLeftDescription:w,keyRightDescription:u,onScrubCancel:z,onScrubEnd:B,onScrubStart:A,onUserInteraction:b,playFromBeginningImpl:x,renderTooltip:a,skipBackwardImpl:v,skipForwardImpl:t,skipToEndImpl:y})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerTimeIndicator.react",["TetraText.react","formatDurationSeconds","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.shouldCenterSelf;a=a.timestampSec;var d=b===!0?"var(--always-black)":"var(--always-dark-overlay)";d=h.jsx("div",{className:"x18l40ae x1lcm9me x1yr5g0i xrt01vj x10y3i5r x1wa3icf x123j3cw x1mpkggp xs9asl8 x1t2a60a x10l6tqk xuxw1ft",style:{backgroundColor:d},children:h.jsx(c("TetraText.react"),{color:"primaryOnMedia",type:"body4",children:c("formatDurationSeconds")(Math.round(a))})});return b===!0?h.jsx("div",{className:"x78zum5 xl56j7k x1n2onr6",children:d}):d}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerScrubberPreview.react",["CometRelay","VideoPlayerHooks","VideoPlayerScrubberPreview_video.graphql","VideoPlayerTimeIndicator.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=.1,k=60,l=120;function m(a,b,c,d,e,f){c=c*b;b=Math.floor(a%c/b);var g=Math.floor(b/d);b=b%d;d=b*e;b=g*f;e=Math.floor(a/c);return{spriteIndex:e,spriteX:d,spriteY:b}}function a(a){var e=a.timestampSec;a=a.video;var f=d("VideoPlayerHooks").useDimensions();a=d("CometRelay").useFragment(h!==void 0?h:h=b("VideoPlayerScrubberPreview_video.graphql"),a);a=a==null?void 0:a.scrubber_preview_thumbnail_information;var g=a==null?void 0:a.sprite_uris,n=a==null?void 0:a.thumbnail_width,o=a==null?void 0:a.thumbnail_height,p=a==null?void 0:a.has_preview_thumbnails,q=a==null?void 0:a.num_images_per_row,r=a==null?void 0:a.max_number_of_images_per_sprite;a=a==null?void 0:a.time_interval_between_image;if(g==null||n==null||o==null||p==null||q==null||r==null||a==null||!p)return i.jsx(c("VideoPlayerTimeIndicator.react"),{shouldCenterSelf:!0,timestampSec:e});p=m(e,a,r,q,n,o);a=p.spriteIndex;r=p.spriteX;q=p.spriteY;p=n/o;n=f==null?k:Math.max(k,Math.min(l,f.height*j));f=n*p;p=o/n;o={backgroundImage:"url("+g[a]+")",backgroundPosition:"-"+r/p+"px -"+q/p+"px",backgroundSize:"1000% 1000%",borderRadius:4,height:n,width:f};g={backgroundColor:"var(--fds-black-alpha-60)",borderRadius:4,height:n,left:-f/2,padding:1,width:f};return i.jsxs("div",{className:"x78zum5 xl56j7k x1n2onr6",style:g,children:[i.jsx("div",{style:o}),i.jsx(c("VideoPlayerTimeIndicator.react"),{timestampSec:e})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerVolumeControlBase.react",["fbt","ix","FocusWithinHandler.react","VideoPlayerControlIcon.react","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useState,l=.33,m=.66;function a(a){var b=a.audioAvailabilityUI,e=a.isMuted,f=a.onMouseEnter,g=a.onMouseLeave,n=a.onSetMuted,o=a.onUserInteraction,p=a.renderVolumeSlider;a=a.volume;var q=!e&&a>0,r;b!=null&&b.shouldShowNullIcon?r=d("fbicon")._(i("944792"),20):q?a<=l?r=d("fbicon")._(i("1104387"),20):a<=m?r=d("fbicon")._(i("1104390"),20):r=d("fbicon")._(i("564390"),20):r=d("fbicon")._(i("564396"),20);q=k(!1);var s=q[0],t=q[1],u=e?h._("__JHASH__2eve7xHkp9w__JHASH__"):h._("__JHASH__5xFv4FPvBT3__JHASH__");return j.jsx(c("FocusWithinHandler.react"),{children:function(a,d){return j.jsxs("div",{className:"x1ypdohk x1rg5ohu xhsvlbd xyamay9 xsyo7zv x10b6aqq x16hj40l x1n2onr6",onMouseEnter:f,onMouseLeave:g,children:[b!=null&&b.shouldDisableVolumeControl?null:j.jsx("div",{className:"xk7dvq3 x9f619 x1yrsyyn xsyo7zv x10b6aqq x16hj40l x10l6tqk x17qophe xh8yej3",children:p({focusVisible:d,onVisibilityChange:t})}),j.jsx(c("VideoPlayerControlIcon.react"),{icon:r,label:u,onPress:function(){b&&b.onVolumeControlPress(),b!=null&&b.shouldDisableVolumeControl||n(!e,"user_initiated"),o&&o({name:"video_mute_button",type:"happened"})},tooltip:b!=null?b.tooltipContent:null,tooltipAlign:"end",tooltipImpl:b!=null?b.tooltipImpl:null,tooltipOffsetY:s?-80:0})]})}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerVolumeSliderBase.react",["fbt","CometComponentWithKeyCommands.react","CometKeys","VideoPlayerPointerDrag","VideoPlayerSliderNub.react","VideoPlayerUserInteractionCounter","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useEffect,k=b.useMemo,l=b.useRef,m=b.useState;function a(a){var b=a.isHovering,e=a.isMuted,f=a.onChangeVolumeDown,g=a.onChangeVolumeUp,n=a.onSetMuted,o=a.onSetVolume,p=a.onUserInteraction,q=a.onVisibilityChange,r=a.volume;a=d("VideoPlayerPointerDrag").usePointerDragResizeObserver();var s=a.invalidateRootRect,t=a.rootRectRef;a=a.rootSizeRefCallback;var u=l(r),v=l(e),w=e?0:r,x=m(w),y=x[0],z=x[1],A=function(a){a=d("VideoPlayerPointerDrag").computePointerOffsetRatio(a,t.current);if(!a)return;a=Math.max(0,Math.min(1,1-a.ratioY));z(a);o(a);e&&n(!1,"user_initiated")};x=d("VideoPlayerPointerDrag").usePointerDrag({onDragCancel:function(a){z(u.current),o(u.current),n(v.current,"user_initiated")},onDragEnd:function(a){A(a)},onDragMove:function(a){A(a)},onDragStart:function(a){s(),u.current=r,v.current=e,z(w),A(a)}});var B=x.isDragging;x=x.rootProps;y=B?y:w;var C=b||B,D=l(C);j(function(){D.current!==C&&(q&&q(C)),D.current=C},[q,C]);b=C;d("VideoPlayerUserInteractionCounter").useVideoPlayerUserInteraction("video_volume_slider",b,p);B=k(function(){return[{command:{key:c("CometKeys").UP},description:h._("__JHASH__2--dERDMJls__JHASH__"),handler:function(){g()}},{command:{key:c("CometKeys").DOWN},description:h._("__JHASH__rnGEAKbNBgc__JHASH__"),handler:function(){f()}}]},[g,f]);return i.jsx(c("CometComponentWithKeyCommands.react"),{commandConfigs:B,children:i.jsx("div",babelHelpers["extends"]({},x,{"aria-label":h._("__JHASH__qjrL7gM7Ew1__JHASH__"),"aria-orientation":"vertical","aria-valuemax":"1","aria-valuemin":"0","aria-valuenow":r,className:"x1ypdohk xng8ra x1n2onr6 x1d8287x x19991ni xl405pv x1td3qas x1ja2u2z"+(C?" x1hc1fzr x67bb7w":" xg01cxk x47corl"),ref:a,role:"slider",tabIndex:"0",children:i.jsx("div",{className:"x18fn2jl x1lcm9me x1yr5g0i xrt01vj x10y3i5r x1ey2m1c xng8ra x10l6tqk xoyjkpr x1xc55vz",children:i.jsx("div",{className:"x1spa7qu x1lcm9me x1yr5g0i xrt01vj x10y3i5r x1ey2m1c x10l6tqk xh8yej3",style:{height:y*100+"%"},children:i.jsx("div",{className:"x1c7jfne x1f4buv5 x1n2onr6",children:i.jsx(c("VideoPlayerSliderNub.react"),{isVisible:C})})})})}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerVolumeSlider.react",["VideoPlayerHooks","VideoPlayerVolumeSliderBase.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useEffect;function a(a){var b=a.isHovering,e=a.onUserInteraction;a=a.onVisibilityChange;var f=d("VideoPlayerHooks").useController(),g=d("VideoPlayerHooks").useMuted(),k=d("VideoPlayerHooks").useVolume(),l=d("VideoPlayerHooks").useSetVolume();j(function(){f.setVolume(k)},[f,k]);var m=i(function(a){f.setVolume(a),l(a)},[f,l]),n=i(function(a,b){f.setMuted(a,b)},[f]),o=i(function(a){var b=f.getCurrentState();a=Math.max(0,Math.min(1,b.volume+a));l(a);f.setVolume(a);a===0?f.setMuted(!0,"user_initiated"):b.muted&&f.setMuted(!1,"user_initiated")},[f,l]),p=i(function(){o(.05)},[o]),q=i(function(){o(-.05)},[o]);return h.jsx(c("VideoPlayerVolumeSliderBase.react"),{isHovering:b,isMuted:g,onChangeVolumeDown:q,onChangeVolumeUp:p,onSetMuted:n,onSetVolume:m,onUserInteraction:e,onVisibilityChange:a,volume:k})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerVolumeControl.react",["VideoPlayerHooks","VideoPlayerVolumeControlBase.react","VideoPlayerVolumeSlider.react","cr:1826284","emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");e=d("react");var i=e.useCallback,j=e.useState,k=(e=b("cr:1826284"))!=null?e:c("emptyFunction");function a(a){var b=a.onUserInteraction;a=j(!1);var e=a[0],f=a[1],g=d("VideoPlayerHooks").useController();a=d("VideoPlayerHooks").useMuted();var l=d("VideoPlayerHooks").useVolume(),m=function(){f(!0)},n=function(){f(!1)},o=i(function(a,b){g.setMuted(a,b)},[g]),p=!a&&l>0;p=k({canPlayerProduceSound:p,isHovering:e})||null;return h.jsx(c("VideoPlayerVolumeControlBase.react"),{audioAvailabilityUI:p,isMuted:a,onMouseEnter:m,onMouseLeave:n,onSetMuted:o,onUserInteraction:b,renderVolumeSlider:function(a){var d=a.focusVisible;a=a.onVisibilityChange;return h.jsx(c("VideoPlayerVolumeSlider.react"),{isHovering:e||d,onUserInteraction:b,onVisibilityChange:a})},volume:l})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useVideoPlayerVolumeControlAudioAvailabilityUI",["fbt","CometTooltipImpl.react","VideoPlayerControlsHiddenContext","clearTimeout","emptyFunction","react","setTimeout","useAudioAvailabilityAtPlayhead","usePrevious","useStable"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useContext,k=b.useEffect,l=b.useRef,m=b.useState,n=3e3;function a(a){var b=a.canPlayerProduceSound,d=a.isHovering;a=c("useAudioAvailabilityAtPlayhead")();var e=a.isSilentAtPlayhead;a=a.volumeControlState;var f=null;switch(a){case"VOLUME_SILENT":f=h._("__JHASH__OCDN7D7X_lH__JHASH__");break;case"VOLUME_COPYRIGHT_FULL":f=h._("__JHASH__OuqKl-7-Xbl__JHASH__");break;case"VOLUME_COPYRIGHT_PARTIAL_SILENCED":f=h._("__JHASH__SxiQArhdkrI__JHASH__");break;case"VOLUME_COPYRIGHT_PARTIAL_NOT_SILENCED":break;case"VOLUME_DEFAULT":break;default:a}var g=c("usePrevious")(e),o=m(!1),p=o[0],q=o[1],r=l(c("emptyFunction")),s=l(!1);o=m(!1);var t=o[0],u=o[1],v=c("useStable")(function(){return function(a){s.current=a,u(a),r.current(a),a||q(!1)}}),w=j(c("VideoPlayerControlsHiddenContext"));k(function(){w?v(!1):f==null?v(!1):d||p?v(!0):e!==g&&e&&b&&v(!0)},[f,b,w,d,p,e,g,v]);k(function(){if(t){var a=c("setTimeout")(function(){v(!1)},n);return function(){c("clearTimeout")(a)}}},[t,v]);o=c("useStable")(function(){return function(){q(function(a){return!a})}});var x=c("useStable")(function(){return function(a){var b=m(!1),d=b[0],e=b[1];k(function(){r.current=e;return function(){r.current=c("emptyFunction")}},[e]);k(function(){a.isVisible||v(!1)},[a.isVisible]);return i.jsx(c("CometTooltipImpl.react"),babelHelpers["extends"]({},a,{isVisible:d}))}}),y=a==="VOLUME_COPYRIGHT_FULL"||a==="VOLUME_SILENT",z=b?e:y;return f==null?null:{onVolumeControlPress:o,shouldDisableVolumeControl:y,shouldShowNullIcon:z,tooltipContent:f,tooltipImpl:x,volumeControlState:a}}g["default"]=a}),98); __d("useSelectedLatencySetting",["useRelayClientStateWithLocalStorage"],(function(a,b,c,d,e,f,g){"use strict";var h="_video_LiveVideoLatencyMenuContextProvider_selected_latency_setting";function i(a){if(a==null)return null;switch(a){case"low":case"normal":return a;default:return null}}function a(a,b){b=d("useRelayClientStateWithLocalStorage").useRelayClientStateWithLocalStorage(a,h,"selected_latency_setting",(a=i(b))!=null?a:"normal");a=b[0];b=b[1];return[a,b]}g["default"]=a}),98); __d("CometVideoPictureInPictureManagerContext",["gkx","qex","react"],(function(a,b,c,d,e,f,g){"use strict";f=d("react").createContext;d=f({openPipPlayer:function(){},setController:function(){},setPipPortableVideoID:function(){}});f=f({hasNextChainedVideo:!1,isPipEnabled:!1,setHasNextChainedVideo:function(){},setSkippedFromPipPlayer:function(){},skippedFromPipPlayer:!1});function a(){return c("gkx")("3610")}function b(){return!1}function e(){return!!c("qex")._("586")}g.CometVideoPictureInPictureManagerAPIContext=d;g.CometVideoPictureInPictureManagerContext=f;g.isInPictureInPictureExp=a;g.isInPictureInPictureExpControlGroup=b;g.isSkipAndChainingDisabledInPictureInPicture=e}),98); __d("MediaPlaybackCompoundEventStateMachineLogger",["emptyFunction","gkx","qex"],(function(a,b,c,d,e,f,g){"use strict";var h=.5;b=c("emptyFunction");d=c("emptyFunction");e=c("emptyFunction");function i(){return{canLogPausedOrFinishedPlaying:!1,canLogPlayingEvent:!0,hasLoggedStartedPlaying:!1,hasPendingRequestedPlaying:!1,isLoggingScrubbingSequence:!1,lastLoggedCaptionState:null,lastLoggedFullscreenState:!1,lastLoggedSoundOnState:null,shouldIgnoreDomPause:!1,shouldIgnoreDomPlay:!1,shouldLogRequestedPlayingForScrub:!1}}function a(a){var b={},d=a.initialLoggingMetaData;d;var e=[],f=i();function g(a){var b,c=a.eventType,g=a.snaplOverrides,h=a.state;a=a.tags;var i=null,j=null,k=(a==null?void 0:a.fullscreen)!=null?a==null?void 0:a.fullscreen:f.lastLoggedFullscreenState,l=(a==null?void 0:a.captions_displayed)!=null?a==null?void 0:a.captions_displayed:f.lastLoggedCaptionState,m=(a==null?void 0:a.player_sound_on)!=null?a==null?void 0:a.player_sound_on:f.lastLoggedSoundOnState;b=(b=d.coreVideoPlayerMetaData.videoFBID)!=null?b:"-1";var n=d.coreVideoPlayerMetaData.adClientToken==null?"organic":"paid";b={current_watching_module:"",media_id:b,player_origin:d.coreVideoPlayerMetaData.playerOriginOverride,player_suborigin:d.coreVideoPlayerMetaData.subOrigin,tracking_type:n};n="";(g==null?void 0:g.video_time_position)!=null?n=Math.round(g.video_time_position*1e3).toString():h.uncontrolledState.videoElementPlayheadPosition!=null&&(n=Math.round(h.uncontrolledState.videoElementPlayheadPosition*1e3).toString());g={client_time_ms:Date.now().toString(),event_name:c,media_time_ms:n,tag_metadata:{captions_displayed:a==null?void 0:a.captions_displayed,fullscreen:a==null?void 0:a.fullscreen,player_sound_on:a==null?void 0:a.player_sound_on}};h={client_high_res_packaging_time_ms:i,event:g,operational_metadata:j,required_metadata:b};e.push(h);f.lastLoggedSoundOnState=m;f.lastLoggedFullscreenState=k;f.lastLoggedCaptionState=l}function j(a){d;if(a.type==="notify_logging_metadata_change"){a=a.payload.loggingMetaData;d=a}}function k(a,c,d){if(a.controlledState.playbackState!==c.controlledState.playbackState&&c.controlledState.playbackState==="ended"&&f.canLogPausedOrFinishedPlaying){g({eventType:"completed",state:c});f.canLogPausedOrFinishedPlaying=!1;return b}else return b}function l(a,c){g({eventType:"requested_playing",snaplOverrides:c,state:a});f.hasPendingRequestedPlaying=!0;f.canLogPausedOrFinishedPlaying=!0;return b}function m(a){if(!f.canLogPausedOrFinishedPlaying)return b;else if(f.hasPendingRequestedPlaying){n(a);f.canLogPausedOrFinishedPlaying=!1;f.hasPendingRequestedPlaying=!1;return b}else{g({eventType:"paused",state:a});f.canLogPausedOrFinishedPlaying=!1;f.hasPendingRequestedPlaying=!1;return b}}function n(a){g({eventType:"cancelled",state:a});return b}function o(a,c,d){if(d.type==="dom_event_play_promise_rejected"&&f.hasPendingRequestedPlaying){a=d.payload.playPromiseRejectionReason;if(a!=null&&a.name==="NotAllowedError"){n(c);return b}else return b}else return b}function p(a,c,d){if((d.type==="controller_play_requested"||d.type==="dom_event_play"&&!f.shouldIgnoreDomPlay)&&a.controlledState.playbackState!==c.controlledState.playbackState){l(c);return b}else return b}function q(a,c,d){var e=c.controlledState.playbackState,g=a.controlledState.playbackState;if(d.type==="controller_scrub_begin_requested"&&!a.controlledState.scrubbing&&e!=="paused"&&e!=="ended"){m(c);f.isLoggingScrubbingSequence=!0;return b}else if(!a.controlledState.seeking&&c.controlledState.seeking&&!f.isLoggingScrubbingSequence&&e!=="paused"&&e!=="ended"&&!f.hasPendingRequestedPlaying){m(c);f.shouldLogRequestedPlayingForScrub=!0;return b}else if(d.type==="controller_scrub_end_requested"&&a.controlledState.scrubbing&&e!=="paused"&&e!=="ended"){l(c,{video_time_position:d.payload.seekTargetPosition});return b}else if(a.controlledState.seeking&&!c.controlledState.seeking){d=c.uncontrolledState.videoElementPlayheadPosition;a=a.controlledState.implementationSeekSourcePosition;a!=null&&d!=null&&Math.abs(a-d)>h&&(f.shouldLogRequestedPlayingForScrub&&e!=="paused"&&e!=="ended"&&l(c),f.isLoggingScrubbingSequence=!1,f.shouldLogRequestedPlayingForScrub=!1,g!=="paused"&&g!=="ended"&&(f.canLogPlayingEvent=!0));return b}else return b}function r(a,c,d){if(a.controlledState.playbackState==="stalling"&&c.controlledState.playbackState==="playing"&&f.canLogPlayingEvent){g({eventType:f.hasLoggedStartedPlaying?"unpaused":"started_playing",state:c});f.hasLoggedStartedPlaying=!0;f.canLogPlayingEvent=!1;f.hasPendingRequestedPlaying=!1;return b}else return b}function s(a,c,d){if((d.type==="controller_pause_requested"||d.type==="dom_event_pause"&&!f.shouldIgnoreDomPause)&&a.controlledState.playbackState!==c.controlledState.playbackState){m(c);return b}else return b}function t(a,d,e){a=d.controlledState.playbackState;if(a!=="paused"&&a!=="ended"){c("gkx")("1469813")&&e.type==="implementation_video_node_unmounted"?m(d):(e.type==="implementation_unmounted"||e.type==="implementation_engine_destroy_requested")&&m(d);return b}else return b}function u(a,c,d){if(d.type!=="notify_fullscreen_changed")return b;a=f.lastLoggedFullscreenState;d=c.uncontrolledState.isFullscreen;if(a!==!0&&d===!0){x(c,!0);return b}else if(a===!0&&d===!1){x(c,!1);return b}else return b}function v(a,c,d){if(d.type!=="controller_muted_requested"&&d.type!=="controller_volume_requested")return b;a=c.controlledState.muted;d=c.controlledState.volume;a=!(a||d===0);d=f.lastLoggedSoundOnState;if(d!==!0&&a===!0){g({eventType:"tags_changed",state:c,tags:{player_sound_on:!0}});return b}else if(d!==!1&&a===!1){g({eventType:"tags_changed",state:c,tags:{player_sound_on:!1}});return b}else return b}function w(a,c,d){if(d.type!=="controller_set_captions_visible_requested")return b;a=f.lastLoggedCaptionState;d=c.controlledState.captionsVisible;if(a!==!0&&d===!0){g({eventType:"tags_changed",state:c,tags:{captions_displayed:!0}});return b}else if(a!==!1&&d===!1){g({eventType:"tags_changed",state:c,tags:{captions_displayed:!1}});return b}else return b}function x(a,b){g({eventType:"tags_changed",state:a,tags:{fullscreen:b}})}return{consumeLoggerEvents:function(){if(e.length>0)if(c("qex")._("1217")){var a=e.some(function(a){return a.event.event_name==="paused"||a.event.event_name==="completed"||a.event.event_name==="cancelled"});if(a)return e.splice(0)}else return e.splice(0);return[]},handleStateMachine:function(a,b,c){j(c);var d=b.controlledState.playbackState,e=[u,o,p,q,r,k,s,v,t,w];e.forEach(function(d){d(a,b,c)});(d==="paused"||d==="ended")&&(f.canLogPlayingEvent=!0);c.type==="controller_pause_requested"&&(f.shouldIgnoreDomPause=!0);c.type==="controller_play_requested"&&(f.shouldIgnoreDomPlay=!0);c.type==="dom_event_pause"&&(f.shouldIgnoreDomPause=!1);c.type==="dom_event_play"&&(f.shouldIgnoreDomPlay=!1)}}}g.createMediaPlaybackCompoundEventStateMachineLogger=a}),98); __d("VideoPlayerBanzaiLogFlusher",["VideoPlayerWwwLogger","emptyFunction","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=c("emptyFunction");b=function(){function a(a){this.$1=a}var b=a.prototype;b.flushLogs=function(){var a=this.$1.consumeLoggerEvents();a.forEach(function(a){var b={event:a.eventType,logData:a.logData,routeTracePolicy:a.routeTracePolicy,source:a.source_VPL_LOGGING_HACK};if(a.source_VPL_LOGGING_HACK==="animated_image_share"&&c("gkx")("1710047"))return;b=(b=a.logData)==null?void 0:b.ad_client_token;b!=null?c("VideoPlayerWwwLogger").logCometImmediately(a):c("VideoPlayerWwwLogger").logComet(a)})};b.discardLogsWithoutFlushing=function(){var a=this.$1.consumeLoggerEvents()};return a}();g["default"]=b}),98); __d("VideoPlayerImplementationErrorNormalization",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b=a.getType();switch(b){case"OZ_NETWORK":b=(b=(b=a.getExtra())==null?void 0:b.code)!=null?b:"0";b=parseInt(b,10);return b<100||b>599?"NetworkError":"HTTPError";case"OZ_SOURCE_BUFFER_QUOTA_EXCEEDED":a=(b=a.getExtra())==null?void 0:b.mimeType;if(a!=null&&a.indexOf("video")>-1)return"VideoDecodeError";else if(a!=null&&a.indexOf("audio")>-1)return"AudioDecodeError";else return"GenericDecodeError"}return null}function b(a){switch(a){case"MEDIA_ERR_NETWORK":return"NetworkError";case"MEDIA_ERR_ABORTED":case"MEDIA_ERR_DECODE":case"MEDIA_ERR_SRC_NOT_SUPPORTED":case"MEDIA_ERR_UNKNOWN":return"GenericDecodeError";case"OZ_REPRESENTATION_PARSER":case"OZ_XML_PARSER":return"ManifestParseError";case"BUFFERING_TIMEOUT":case"OZ_DRM_MANAGER":case"OZ_INITIALIZATION":case"OZ_JAVASCRIPT_NATIVE":case"OZ_SOURCE_BUFFER":case"OZ_STREAM_APPEND_QUOTA_EXCEEDED_HANDLER_ERROR":case"OZ_NETWORK_REQUEST_STREAM_RETRY_HANDLER_ERROR":return"RuntimeError"}return null}f.getVideoPlayerNormalizedErrorTypeFromOzError=a;f.getErrorTypeFromErrorName=b}),66); __d("VideoPlayerImplementationErrors",["NetworkStatus","VideoPlayerImplementationErrorNormalization","getErrorMessageFromMediaErrorCode","getErrorNameFromMediaErrorCode","gkx","oz-player/utils/OzError"],(function(a,b,c,d,e,f,g){"use strict";var h={BUFFERING_TIMEOUT_INPLAY:"30000",BUFFERING_TIMEOUT_INPLAY_NO_NETWORK:"30001",BUFFERING_TIMEOUT_LIVEREWIND_INPLAY:"30010",BUFFERING_TIMEOUT_LIVEREWIND_INPLAY_NO_NETWORK:"30011",BUFFERING_TIMEOUT_LIVEREWIND_START:"30012",BUFFERING_TIMEOUT_LIVEREWIND_START_NO_NETWORK:"30013",BUFFERING_TIMEOUT_START:"30002",BUFFERING_TIMEOUT_START_NO_NETWORK:"30003"};function a(a){var b=a.errorLocation,d=a.hostCallError,e=a.videoElementError,f=a.videoElementNetworkState;a=a.videoElementReadyState;var g=e==null?void 0:e.code,h=d!=null&&typeof d.message==="string"?d.message:null;h==null&&(h=e==null?void 0:e.message);h==null&&g!=null&&(h=c("getErrorMessageFromMediaErrorCode")(g));return{createdTimestamp:Date.now(),errorDescription:((e=h)!=null?e:"Empty error")+("; code: "+((h=g)!=null?h:"undefined"))+("; readyState: "+a)+("; networkState: "+f),errorLocation:b,errorName:c("getErrorNameFromMediaErrorCode")(g),originalError:d}}function b(a,b){return a==null?{createdTimestamp:Date.now(),errorDescription:"Empty rejection reason from video play()",errorLocation:b,errorName:"PlayRejectedError"}:{createdTimestamp:Date.now(),errorCode:typeof a.code==="string"?a.code:typeof a.code==="number"?String(a.code):void 0,errorDescription:typeof a.message==="string"?a.message:String(a),errorLocation:b,errorName:typeof a.name==="string"?a.name:"PlayRejectedError"}}function e(a,b,d,e,f){var g,i=function(){if(f)if(e==="in_play"&&c("NetworkStatus").isOnline())return h.BUFFERING_TIMEOUT_LIVEREWIND_INPLAY;else if(e==="in_play"&&!c("NetworkStatus").isOnline())return h.BUFFERING_TIMEOUT_LIVEREWIND_INPLAY_NO_NETWORK;else if(e==="start/unpause"&&c("NetworkStatus").isOnline())return h.BUFFERING_TIMEOUT_LIVEREWIND_START;else if(e==="start/unpause"&&!c("NetworkStatus").isOnline())return h.BUFFERING_TIMEOUT_LIVEREWIND_START_NO_NETWORK;else return 0;else if(e==="in_play"&&c("NetworkStatus").isOnline())return h.BUFFERING_TIMEOUT_INPLAY;else if(e==="in_play"&&!c("NetworkStatus").isOnline())return h.BUFFERING_TIMEOUT_INPLAY_NO_NETWORK;else if(e==="start/unpause"&&c("NetworkStatus").isOnline())return h.BUFFERING_TIMEOUT_START;else if(e==="start/unpause"&&!c("NetworkStatus").isOnline())return h.BUFFERING_TIMEOUT_START_NO_NETWORK;else return 0}();g={message:String((g=b==null?void 0:b.message)!=null?g:""),name:String((g=b==null?void 0:b.name)!=null?g:"UnknownError"),stack:String((b==null?void 0:b.stack)||new Error().stack)};return{createdTimestamp:Date.now(),errorCode:String(i),errorDescription:g.name+" "+g.message,errorLocation:d,errorName:a,stack:g.stack,url:null}}function i(a,b,d,e){var f;e===void 0&&(e=null);f={message:String((f=b==null?void 0:b.message)!=null?f:""),name:String((f=b==null?void 0:b.name)!=null?f:"UnknownError"),stack:String((b==null?void 0:b.stack)||new Error().stack)};return{createdTimestamp:Date.now(),errorCode:null,errorDescription:f.name+" "+f.message,errorLocation:d,errorName:a,stack:f.stack,url:e!=null&&c("gkx")("1526990")?e:null}}function f(a,b){if(a instanceof c("oz-player/utils/OzError")){var e=a,f=e.getExtra();return{createdTimestamp:Date.now(),errorCode:f.code,errorDescription:e.getDescription(),errorLocation:b,errorName:e.getType(),errorType:d("VideoPlayerImplementationErrorNormalization").getVideoPlayerNormalizedErrorTypeFromOzError(e),stack:e.stack,url:f.url}}else return i("OZ_JAVASCRIPT_NATIVE",a,b)}function j(a,b){a=a.message;var c="The video node set its error property to a MediaError",d=a.split(": ");d.length>1&&(a=d.shift(),c=d.join(": "));return{createdTimestamp:Date.now(),errorDescription:c,errorLocation:b,errorName:a,errorType:"GenericDecodeError"}}g.createVideoPlayerErrorFromHTMLVideoElementError=a;g.createVideoPlayerErrorFromVideoElementPlayPromiseRejectionReason=b;g.createVideoPlayerBufferingErrorFromGenericError=e;g.createVideoPlayerErrorFromGenericError=i;g.createVideoPlayerErrorFromOzImplementationError=f;g.createVideoPlayerErrorFromVideoNodeError=j}),98); __d("VideoPlayerImplementationReactVideoElement.react",["gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.alt,d=a.implementationExposedState,e=a.seoWebCrawlerVideoTracks,f=a.src,g=a.videoElementCallbacks,i=a.videoElementPreloadDisabled;a=a.videoElementRefCallback;var j=d.hasPlayEverBeenRequested;d=d.isExternalMedia;j=d&&!j?null:f;f=d&&c("gkx")("2449")?babelHelpers["extends"]({crossOrigin:"anonymous"},g):babelHelpers["extends"]({},g);return h.jsx("video",babelHelpers["extends"]({"aria-label":(d=b)!=null?d:void 0,className:"x1lliihq x5yr21d xh8yej3",controls:!1,muted:!0,playsInline:!0,preload:i===!0?"none":void 0},f,{ref:a,src:j,children:e}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerImplementationStateMachine",["VideoPlayerImplementationErrors","cr:4964","gkx","recoverableViolation","shallowEqual","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";b=(f=b("cr:4964"))!=null?f:{makeUpdatedActiveEmsgBoxes:null,makeUpdatedAllEmsgBoxes:null};var h=b.makeUpdatedActiveEmsgBoxes,i=b.makeUpdatedAllEmsgBoxes;function j(a){var b=a.bufferingDetected,c=a.seeking;a=a.waitingForDomPlaying;return!b&&!c&&!a}function k(a){var b=a.bufferingDetected,d=a.prevPlaybackState,e=a.seeking;a=a.waitingForDomPlaying;b=j({bufferingDetected:b,seeking:e,waitingForDomPlaying:a});e=d;switch(d){case"stalling":e=b?"playing":"stalling";break;case"ended":case"paused":case"playing":break;default:d;c("recoverableViolation")("unexpected playbackState: "+d,"comet_video_player");break}return e}function l(a){return a.loopCount>0&&a.loopCurrent0?a.watchTimeMs+(Date.now()-a.lastPlayedTimeMs):a.watchTimeMs});case"controller_play_requested":return a.playbackState!=="paused"&&a.playbackState!=="ended"?a:babelHelpers["extends"]({},a,{hasPlayEverBeenRequested:!0,lastPlayedTimeMs:a.lastPlayedTimeMs===0?Date.now():a.lastPlayedTimeMs,lastPlayReason:e.payload.reason,loopCurrent:l(a)?e.payload.reason==="loop_initiated"?a.loopCurrent+1:a.loopCurrent:0,playbackState:"stalling",waitingForDomPlaying:!0});case"controller_seek_requested":return babelHelpers["extends"]({},a,{implementationSeekSourcePosition:(g=b.videoElementPlayheadPosition)!=null?g:a.implementationSeekSourcePosition,seeking:!0,seekTargetPosition:e.payload.seekTargetPosition});case"controller_quality_requested":return babelHelpers["extends"]({},a,{selectedVideoQuality:e.payload.selectedVideoQuality});case"controller_set_caption_display_style_requested":return babelHelpers["extends"]({},a,{captionDisplayStyle:e.payload.captionDisplayStyle});case"controller_set_picture_in_picture_state_requested":return babelHelpers["extends"]({},a,{isDesktopPictureInPicture:e.payload.isInPictureInPictureMode});case"controller_set_caption_format_requested":return babelHelpers["extends"]({},a,{captionFormat:e.payload.captionFormat});case"controller_set_playback_rate":return babelHelpers["extends"]({},a,{targetPlaybackRate:e.payload.playbackRate});case"controller_muted_requested":return babelHelpers["extends"]({},a,{lastMuteReason:e.payload.reason,muted:e.payload.muted});case"controller_volume_requested":return babelHelpers["extends"]({},a,{volume:e.payload.volume});case"controller_scrub_begin_requested":return a.scrubbing?a:babelHelpers["extends"]({},a,{scrubbing:!0,seekTargetPosition:null});case"controller_scrub_end_requested":return!a.scrubbing?a:babelHelpers["extends"]({},a,{implementationSeekSourcePosition:(n=b.videoElementPlayheadPosition)!=null?n:a.implementationSeekSourcePosition,scrubbing:!1,seeking:e.payload.seekTargetPosition!=null,seekTargetPosition:e.payload.seekTargetPosition});case"buffering_begin_requested":f=a.playbackState;m=f;switch(f){case"paused":case"ended":break;case"playing":case"stalling":m="stalling";break;default:f;c("recoverableViolation")("unexpected playbackState: "+f,"comet_video_player");break}j=e.payload.bufferingType;return babelHelpers["extends"]({},a,{bufferingDetected:!0,lastBufferingType:j,playbackState:m});case"buffering_end_requested":g=a.seeking;n=a.waitingForDomPlaying;f=!1;j=a.playbackState;return babelHelpers["extends"]({},a,{bufferingDetected:f,playbackState:k({bufferingDetected:f,prevPlaybackState:j,seeking:g,waitingForDomPlaying:n})});case"controller_set_captions_visible_requested":m=e.payload.captionsVisible;return a.captionsVisible===m?a:babelHelpers["extends"]({},a,{activeCaptions:m?a.activeCaptions:null,captionsLocale:m?a.captionsLocale:null,captionsVisible:m});case"controller_set_active_captions_requested":f=e.payload.activeCaptions;g=(j=f==null?void 0:f.rows)!=null?j:[];n=e.payload.captionsLocale;m=a.activeCaptions;var o=(j=m==null?void 0:m.rows)!=null?j:[];return o.length===g.length&&g.every(function(a,b){return o[b]===a})?a:babelHelpers["extends"]({},a,{activeCaptions:f,captionsLocale:n});case"captions_loaded":return babelHelpers["extends"]({},a,{activeCaptions:a.activeCaptions,captionsLoaded:!0});case"captions_unloaded":return babelHelpers["extends"]({},a,{activeCaptions:null,captionsLoaded:!1,captionsLocale:null});case"inband_captions_autogenerated_changed":m=e.payload.inbandCaptionsAutogenerated;return a.inbandCaptionsAutogenerated===m?a:babelHelpers["extends"]({},a,{inbandCaptionsAutogenerated:m});case"stream_ended":return babelHelpers["extends"]({},a,{streamEnded:!0});case"stream_gone_before_start":return babelHelpers["extends"]({},a,{playbackState:"ended",streamEnded:!0,waitingForDomPlaying:!1});case"stream_interrupted":return babelHelpers["extends"]({},a,{streamInterrupted:!0});case"stream_resumed":return babelHelpers["extends"]({},a,{streamInterrupted:!1});case"seekable_ranges_changed":j=e.payload.seekableRanges;return babelHelpers["extends"]({},a,{seekableRanges:j});case"controller_set_is_live_rewind_active_requested":g=e.payload.isLiveRewindActive;return babelHelpers["extends"]({},a,{isLiveRewindActive:g});case"loop_count_change_requested":f=e.payload.loopCount;return f===a.loopCount?a:babelHelpers["extends"]({},a,{loopCount:f,loopCurrent:0});case"player_dimensions_changed":n=e.payload.dimensions;m=n.height;j=n.width;return j===a.dimensions.width&&m===a.dimensions.height?a:babelHelpers["extends"]({},a,{dimensions:{height:m,width:j}});case"emsg_boxes_parsed":g=i?i(a.allEmsgBoxes,e.payload.emsgBoxes):a.allEmsgBoxes;f=h?h(g,b.videoElementPlayheadPosition,a.activeEmsgBoxes):a.activeEmsgBoxes;return babelHelpers["extends"]({},a,{activeEmsgBoxes:f,allEmsgBoxes:g});case"register_emsg_observer":n=new Set(a.emsgObserverTokens);n.add(e.payload.token);return babelHelpers["extends"]({},a,{emsgObserverTokens:n});case"unregister_emsg_observer":m=new Set(a.emsgObserverTokens);m["delete"](e.payload.token);return babelHelpers["extends"]({},a,{emsgObserverTokens:m});default:return a}}function n(a,b,d){var e=b.type!=="dom_seeking";e=e?d:a.uncontrolledState;d=!c("shallowEqual")(e,a.uncontrolledState);b=m(a.controlledState,e,b);var f=!c("shallowEqual")(b,a.controlledState);return d||f?babelHelpers["extends"]({},a,{controlledState:f?b:a.controlledState,uncontrolledState:d?e:a.uncontrolledState}):a}var o,p;function q(a){var b=a.collectUncontrolledState,d=a.debugLogId;d=a.initialState;var e=a.onDispatched,f=a.onFatalError,g=d,h=g,i=0,j=!1,k=!1,l=!0,m=!0;return{dispatch:function(a){if(!m)return;var d=null,g=null;try{++i;if(i>=10)if(!j){j=!0;throw c("unrecoverableViolation")("Video player state machine loop detected","comet_video_player")}else return;var o=h.uncontrolledState;if(l)try{o=b()}catch(a){l=!1,g=a}var p=h;o=n(p,a,o);h=o;e(p,o,a)}catch(a){m=!1,d=a}finally{if(!k&&(d!=null||g!=null)){k=!0;try{f((p=d)!=null?p:g)}catch(a){}}--i}},getCurrentState:function(){return h},getInitialState:function(){return g}}}var r,s;function a(a){var b=a.collectUncontrolledState,c=a.debugLogId,d=a.initialState,e=a.onFatalError,f=a.stateTransitionHandlers;function g(a,b,c){try{var d=!0,e=0;while(d&&e0){l.stallCount+=1;l.stallCountTotal+=1;l.hasPendingRequestedPlaying&&(l.startStallCountTotal+=1);a=a-b;l.stallDurationTotal+=a;l.stallDuration+=a;l.stallCount200ms+=a>200?1:0;l.hasPendingRequestedPlaying&&(l.startStallDurationTotal+=a)}}function u(a,b){a=a.uncontrolledState.videoElementPlayheadPosition==null?null:a.uncontrolledState.videoElementPlayheadPosition;var c=null;switch(b){case"paused":case"cancelled_requested_playing":case"finished_playing":case"heart_beat":case"playback_speed_changed":case"representation_ended":c=l.lastStartTimePosition;break;case"scrubbed":c=a;break;default:break}switch(b){case"paused":case"cancelled_requested_playing":case"finished_playing":case"scrubbed":l.lastStartTimePosition=null;break;case"started_playing":case"unpaused":case"heart_beat":case"playback_speed_changed":case"representation_ended":l.lastStartTimePosition=a;break;default:break}return{video_last_start_time_position:c}}function v(a,b){var c=b.uncontrolledState.clockTimestamp;a=a.controlledState.streamInterrupted;b=b.controlledState.streamInterrupted;!a&&b?l.interruptStartTimestamp=c:a&&!b&&l.interruptStartTimestamp>0&&(l.interruptEndTimestamp=c,l.interruptCount+=1,l.interruptDuration+=l.interruptEndTimestamp-l.interruptStartTimestamp)}function w(a,b,d){var e=b.uncontrolledState.clockTimestamp;a=a.controlledState.playbackState;var f=b.controlledState.playbackState;a!=="stalling"&&f==="stalling"&&(s("stall_start"),l.stallStartTimestamp=e);if(a==="stalling"&&f!=="stalling"){e=0;c("gkx")("3881")&&(d.type==="dom_event_playing"||d.type==="buffering_end_requested")&&d.payload.domEventPerfTimestamp!=null&&(e=Math.max(b.uncontrolledState.perfTimestamp-d.payload.domEventPerfTimestamp,0));t(b.uncontrolledState.clockTimestamp-e);l.stallStartTimestamp=0;s("stall_end")}}function x(a,b,c){a=b.uncontrolledState;b=a.videoElementPlayheadPosition;switch(c){case"unpaused":case"started_playing":l.nextPlayedThreeSecondsPlayheadPosition=((a=b)!=null?a:0)+3;break;case"paused":case"finished_playing":l.nextPlayedThreeSecondsPlayheadPosition=null;break;default:break}}function y(a,b,c){if(l.interruptCount>0&&l.interruptDuration>0){a={interrupt_count:l.interruptCount,interrupt_time:l.interruptDuration};l.interruptCount=0;l.interruptDuration=0;l.interruptStartTimestamp=0;l.interruptEndTimestamp=0;return a}return{interrupt_count:null,interrupt_time:null}}function z(a,b,c){var d={stall_count:null,stall_count_200_ms:null,stall_time:null},e=b.uncontrolledState.clockTimestamp,f=function(){var a={stall_count:l.stallCount,stall_count_200_ms:l.stallCount200ms,stall_time:l.stallDuration};l.stallCount=0;l.stallCount200ms=0;l.stallDuration=0;l.stallStartTimestamp=0;return a};a=a.controlledState.playbackState;var g=b.controlledState.playbackState;a!=="stalling"&&g==="stalling"&&(l.stallStartTimestamp=e);switch(c){case"started_playing":case"unpaused":case"finished_playing":case"paused":case"cancelled_requested_playing":case"playback_speed_changed":case"representation_ended":t(b.uncontrolledState.clockTimestamp);d=f();break;case"heart_beat":b.controlledState.playbackState!=="stalling"&&(t(b.uncontrolledState.clockTimestamp),d=f());break;default:break}return d}function A(a,b,c){a=b.controlledState.playbackState==="paused"&&a.controlledState.playbackState==="stalling";return c>0&&(b.controlledState.playbackState==="stalling"||a)}function B(a,b){a=a.current;var c=null;switch(b){case"finished_playing":case"paused":case"heart_beat":a&&(c=a.getAndFlushTracedFrames());return c!=null?JSON.stringify(c):null;default:return null}}function C(a){a=a.controlledState.playbackState;switch(a){case"playing":case"stalling":return"playing";case"paused":return"paused";case"ended":return"finished";default:a;return"unknown"}}function D(a){switch(a){case"normal":return"normal";case"low":return"low";case"ultra-low":return"ultra_low";default:return null}}function E(){return{state:l.hasLoggedStartedPlaying?c("VideoPlayerLoggerPlayerStates").UNPAUSED:c("VideoPlayerLoggerPlayerStates").STARTED}}function F(a){if(c("gkx")("2714")&&(a==null?void 0:a.v2)&&(a==null?void 0:a.v2.length)>0){var b=a==null?void 0:a.v2;b=b[b.length-1];return[b["class"],b.module].map(d("CometProductAttribution").filterEntryValue).join(":")}return(a=a==null?void 0:(b=a.v2)==null?void 0:b.map(function(a){return[a["class"],a.module].map(d("CometProductAttribution").filterEntryValue).join(":")}).join(";"))!=null?a:""}function G(f){var h,i=f.eventType,j=f.logDataOverrides,k=f.prevState,m=f.state;f=u(m,i);f=f.video_last_start_time_position;var o=z(k,m,i),r=o.stall_count,s=o.stall_count_200_ms;o=o.stall_time;var t=y(k,m,i),v=t.interrupt_count;t=t.interrupt_time;var w=B(a.videoLiveTraceRef,i),E=[],G=a.initialLoggingMetaData.coreVideoPlayerMetaData.autoplayGatingResult;G&&E.push(G);G=i==="entered_fs"?!0:i==="exited_fs"?!1:l.lastLoggedFullscreenState;h=c("getPlayerFormatForLogData")({isDesktopPictureInPicture:(h=m.controlledState.isDesktopPictureInPicture)!=null?h:!1,isFullscreen:G},e.coreVideoPlayerMetaData.playerFormat);var H=m.uncontrolledState.viewabilityPercentage,I=Boolean(m.uncontrolledState.isFBIsLiveTemplated),J=Boolean(m.uncontrolledState.isFBWasLive),K=m.uncontrolledState.videoElementPlaybackRate;K=K==null||K===0?l.lastLoggedPlaybackSpeed:K;var L=a.initialLoggingMetaData.productAttribution;if(h==="watch_scroll"&&L&&L.v2){var M,N={0:babelHelpers["extends"]({},L["0"]),v2:[babelHelpers["extends"]({},L.v2[0])]};M=(M=e.productAttribution)==null?void 0:(M=M.v2)==null?void 0:M[0];if(M){var O=N.v2[0];O["class"]=M["class"];O.scope_id=M.scope_id;O.ts=M.ts}L=N}O=null;M=null;c("gkx")("3013")&&(O=L!=null?d("CometProductAttribution").minifyProductAttributionV2(L):null,M=L!=null?F(L):null);N=A(k,m,(N=o)!=null?N:0);M={access_token:a.initialLoggingMetaData.accessToken,ad_client_token:e.coreVideoPlayerMetaData.adClientToken,attribution_id:L!=null&&Object.prototype.hasOwnProperty.call(L,"0")?JSON.stringify({0:L["0"]}):null,attribution_id_v2:O,attribution_id_v2_root:M,audio_only:e.coreVideoPlayerMetaData.audioOnly,audio_representation_id:m.uncontrolledState.audioRepresentationID,autoplay_eligible:a.initialLoggingMetaData.coreVideoPlayerMetaData.canAutoplay==="allow",autoplay_failure_reasons:JSON.stringify(E),autoplay_setting:a.initialLoggingMetaData.coreVideoPlayerMetaData.autoplaySetting,available_qualities:m.controlledState.availableQualities.length,broadcaster_origin:a.initialLoggingMetaData.coreVideoPlayerMetaData.broadcasterOrigin,browser_tab_id:c("getVideoBrowserTabId")(),caption_state:p(m,i),client_latency_setting:D(m.controlledState.latencyLevel),current_playback_speed:n?K:null,current_viewability_percentage:H,dash_perf_logging_enabled:e.coreVideoPlayerMetaData.VideoPlayerShakaPerformanceLoggerClass!=null&&e.coreVideoPlayerMetaData.VideoPlayerShakaPerformanceLoggerClass.isEnabled(),data_connection_quality:d("VideoPlayerConnectionQuality").evaluate(function(){return m.uncontrolledState.estimatedBandwidth}),dropped_frame_count:m.uncontrolledState.videoElementDroppedFrameCount,external_log_id:e.coreVideoPlayerMetaData.externalLogID,external_log_type:e.coreVideoPlayerMetaData.externalLogType,fb_manifest_identifier:m.uncontrolledState.manifestIdentifier,frame_events:w,interrupt_count:v,interrupt_time:t,is_abr_enabled:m.isAbrEnabled,is_fbms:m.uncontrolledState.isFBMS,is_live_video_rewound:m.controlledState.isLiveRewindActive,is_pip:m.controlledState.isDesktopPictureInPicture,is_predictive_playback:m.uncontrolledState.isPredictiveDash,is_sound_on:!m.controlledState.muted,is_stalling:N,is_templated_manifest:I||J,last_viewability_percentage:l.lastLoggedViewabilityPercentage,mpd_validation_errors:m.uncontrolledState.mpdValidationErrors,network_connected:m.uncontrolledState.networkConnected,playback_caption_format:m.controlledState.captionFormat,playback_caption_locale:m.controlledState.captionsLocale,playback_duration:m.uncontrolledState.videoElementDuration,playback_is_broadcast:a.initialLoggingMetaData.coreVideoPlayerMetaData.isVideoBroadcast,playback_is_drm:Boolean(a.initialLoggingMetaData.coreVideoPlayerMetaData.graphQLVideoDRMInfo),playback_is_live_streaming:a.initialLoggingMetaData.coreVideoPlayerMetaData.isLiveStreaming,player_format:h,player_instance_key:e.instanceKey,player_origin:e.coreVideoPlayerMetaData.playerOriginOverride,player_state:C(m),player_suborigin:e.coreVideoPlayerMetaData.subOrigin,player_version:m.playerVersion,representation_id:m.uncontrolledState.videoRepresentationID,source_VPL_LOGGING_HACK:e.coreVideoPlayerMetaData.source_VPL_LOGGING_HACK,stall_count:r,stall_count_200_ms:s,stall_time:o,streaming_format:m.controlledState.streamingFormat,total_frame_count:m.uncontrolledState.videoElementTotalFrameCount,tracking_data_encrypted:a.initialLoggingMetaData.trackingDataEncrypted,tracking_nodes:a.initialLoggingMetaData.trackingNodes,v2_heart_beat:c("gkx")("1434599")&&i==="heart_beat"?!0:null,video_bandwidth:m.uncontrolledState.estimatedBandwidth,video_buffer_end_position:m.uncontrolledState.videoElementLastBufferEndPosition,video_id:e.coreVideoPlayerMetaData.videoFBID,video_last_start_time_position:f,video_play_reason:m.controlledState.lastPlayReason,video_player_height:(L=e.dimensions)==null?void 0:L.height,video_player_width:(O=e.dimensions)==null?void 0:O.width,video_time_position:m.uncontrolledState.videoElementPlayheadPosition,web_client_revision:c("SiteData").client_revision};E=c("gkx")("1286")&&i==="error_recovery_attempt"?null:q.has(i)?++l.sequenceNumber:null;v={event_seq_num:++l.vplEventSequenceNumber,seq_num:E,time_ms:Date.now(),vpts:((w=c("qex")._("33"))!=null?w:!1)?c("performanceAbsoluteNow")():null};var P={};b.forEach(function(a,b){P[b]=a});t=e.coreVideoPlayerMetaData.additionalLogData;N=babelHelpers["extends"]({},t,P);I=babelHelpers["extends"]({},N,M,j,v);h=(J=l.initialSuborigin)!=null?J:e.coreVideoPlayerMetaData.subOrigin;s=(r=I.source_VPL_LOGGING_HACK)!=null?r:h;f=(o=e.coreVideoPlayerMetaData.initialTracePolicy)!=null?o:e.coreVideoPlayerMetaData.routeTracePolicy;L={eventType:i,logData:I,routeTracePolicy:f,source_VPL_LOGGING_HACK:s};g.push(L);x(k,m,i);l.initialSuborigin==null&&h!=null&&(l.initialSuborigin=h);l.lastLoggedFullscreenState=G;l.lastLoggedPlaybackSpeed=K;i==="viewability_changed"&&(l.lastLoggedViewabilityPercentage=H)}var H={};function I(a,b,c){G({eventType:"requested_playing",logDataOverrides:babelHelpers["extends"]({},c,E()),prevState:a,state:b});l.hasPendingRequestedPlaying=!0;l.canLogPausedOrFinishedPlaying=!0;return H}function J(a,b,c){if(!l.canLogPausedOrFinishedPlaying)return H;else if(l.hasPendingRequestedPlaying){K(a,b,c);l.canLogPausedOrFinishedPlaying=!1;l.hasPendingRequestedPlaying=!1;return H}else{G({eventType:"paused",logDataOverrides:babelHelpers["extends"]({},c,{error_user_info:JSON.stringify({is_document_hidden:b.uncontrolledState.isDocumentHidden})}),prevState:a,state:b});l.canLogPausedOrFinishedPlaying=!1;l.hasPendingRequestedPlaying=!1;return H}}function K(a,b,c){var d=b.uncontrolledState.liveTraceContext;c=babelHelpers["extends"]({},c,E(),{live_trace_source_id:d?d.sourceId:void 0,live_trace_stream_id:d?d.streamId:void 0,live_trace_stream_type:d?d.streamType:void 0});G({eventType:"cancelled_requested_playing",logDataOverrides:c,prevState:a,state:b});return H}function L(a,b,c){if(c.type==="dom_event_play_promise_rejected"&&l.hasPendingRequestedPlaying){c=c.payload.playPromiseRejectionReason;if(c!=null&&c.name==="NotAllowedError"){K(a,b,{debug_reason:"not_allowed"});return H}else return H}else return H}function M(a,b,c){if((c.type==="controller_play_requested"||c.type==="dom_event_play"&&!l.shouldIgnoreDomPlay)&&a.controlledState.playbackState!==b.controlledState.playbackState){c=b.uncontrolledState.liveTraceContext;c=c?{live_trace_source_id:c.sourceId,live_trace_stream_id:c.streamId,live_trace_stream_type:c.streamType}:null;I(a,b,c);return H}else return H}function N(a,b,c){if(a.controlledState.playbackState==="stalling"&&b.controlledState.playbackState==="playing"&&l.canLogPlayingEvent){c=b.uncontrolledState.liveTraceContext;c=c?{live_trace_source_id:c.sourceId,live_trace_stream_id:c.streamId,live_trace_stream_type:c.streamType}:null;G({eventType:l.hasLoggedStartedPlaying?"unpaused":"started_playing",logDataOverrides:c,prevState:a,state:b});l.hasLoggedStartedPlaying=!0;l.canLogPlayingEvent=!1;l.hasPendingRequestedPlaying=!1;return H}else return H}function O(a,b,d){var e=b.controlledState.playbackState,f=a.controlledState.playbackState;if(d.type==="controller_scrub_begin_requested"&&!a.controlledState.scrubbing&&e!=="paused"&&e!=="ended"){J(a,b);l.isLoggingScrubbingSequence=!0;return H}else if(!a.controlledState.seeking&&b.controlledState.seeking&&!l.isLoggingScrubbingSequence&&e!=="paused"&&e!=="ended"&&!l.hasPendingRequestedPlaying){J(a,b);l.shouldLogRequestedPlayingForScrub=!0;return H}else if(d.type==="controller_scrub_end_requested"&&a.controlledState.scrubbing&&e!=="paused"&&e!=="ended"){I(a,b,{video_time_position:d.payload.seekTargetPosition});return H}else if(a.controlledState.seeking&&!b.controlledState.seeking){d=b.uncontrolledState.videoElementPlayheadPosition;var g=a.controlledState.implementationSeekSourcePosition;(!c("gkx")("1482680")||g!=null&&d!=null&&Math.abs(g-d)>i)&&(l.shouldLogRequestedPlayingForScrub&&e!=="paused"&&e!=="ended"&&I(a,b),G({eventType:"scrubbed",prevState:a,state:b}),l.isLoggingScrubbingSequence=!1,l.shouldLogRequestedPlayingForScrub=!1,f!=="paused"&&f!=="ended"&&(l.canLogPlayingEvent=!0));return H}else return H}function P(a,b,c){if(a.controlledState.playbackState!==b.controlledState.playbackState&&b.controlledState.playbackState==="ended"&&l.canLogPausedOrFinishedPlaying){G({eventType:"finished_playing",prevState:a,state:b});l.canLogPausedOrFinishedPlaying=!1;return H}else return H}function Q(a,b,c){if((c.type==="controller_pause_requested"||c.type==="dom_event_pause"&&!l.shouldIgnoreDomPause)&&a.controlledState.playbackState!==b.controlledState.playbackState){J(a,b);return H}else return H}function R(a,b,d){var e=b.controlledState.playbackState;if(e!=="paused"&&e!=="ended"){c("gkx")("1469813")&&d.type==="implementation_video_node_unmounted"?J(a,a,{debug_reason:"unloaded"}):(d.type==="implementation_unmounted"||d.type==="implementation_engine_destroy_requested")&&J(a,b,{debug_reason:"unloaded"});return H}else return H}function S(a,b,c){if(c.type==="implementation_engine_representation_blocked"){c=c.payload.blockedRepresentationID;G({eventType:"video_playback_fallback",logDataOverrides:{representation_id:c},prevState:a,state:b})}return H}function T(a,b,e){e=b.controlledState.muted;var f=b.controlledState.volume,g=a.controlledState.muted,h=a.controlledState.volume;e=d("VideoPlayerMutedStateChange").getVideoPlayerMutedStateChange({currMuted:e,currVolume:f,prevMuted:g,prevVolume:h});g={current_volume:Math.round(f*100)};switch(e){case"muted":G({eventType:"muted",logDataOverrides:g,prevState:a,state:b});return H;case"unmuted":G({eventType:"unmuted",logDataOverrides:g,prevState:a,state:b});return H;case null:if(hf){G({eventType:"volume_decrease",logDataOverrides:g,prevState:a,state:b});return H}else return H;default:e;c("recoverableViolation")('Unexpected mutedStateChange "'+e+'"',"comet_video_player");return H}}function U(a,b,c){c=b.uncontrolledState.videoRepresentationID;var d=l.lastTrackedRepresentation,e=b.controlledState.playbackState,f=b.controlledState.seeking;if(!f&&e!=="paused"&&e!=="ended"&&d!=null&&d!==c){G({eventType:"representation_ended",logDataOverrides:{next_representation_id:c,representation_id:d},prevState:a,state:b});l.lastTrackedRepresentation=c;s("quality_change");return H}else if(d==null&&d!==c){l.lastTrackedRepresentation=c;return H}else return H}function V(a,b){var d=a.controlledState.error;return{currentVideo:{audioStreamId:a.uncontrolledState.audioRepresentationID,dashAudioFormat:void 0,hasHD:void 0,hasRateLimit:void 0,hasSubtitles:a.controlledState.captionsLoaded,isDrm:Boolean(e.coreVideoPlayerMetaData.graphQLVideoDRMInfo),isHD:void 0,isLiveStream:e.coreVideoPlayerMetaData.isLiveStreaming,isRateLimited:void 0,liveManifestUrl:void 0,projection:void 0,resourceUrl:void 0,streamId:a.uncontrolledState.videoRepresentationID,streamType:a.controlledState.streamingFormat,tagHD:void 0,tagSD:void 0,videoID:e.coreVideoPlayerMetaData.videoFBID},player:{canPlayType:c("mapObject")(c("VideoMimeTypes"),m),dimensions:e.dimensions?{height:e.dimensions.height,width:e.dimensions.width}:null,droppedFrames:a.uncontrolledState.videoElementDroppedFrameCount,initializationTime:void 0,initializationTimestamp:void 0,inPlayStallCount:void 0,inPlayStallTime:void 0,interruptCount:void 0,interruptTime:void 0,lastError:d,loggedError:l.lastLoggedError,stack:d==null?void 0:d.stack,stallCount:l.stallCount,stallTime:l.stallDuration,state:C(a),totalFrames:a.uncontrolledState.videoElementTotalFrameCount,version:a.playerVersion,videoSource:void 0,viewabilityPercentage:a.uncontrolledState.viewabilityPercentage},playerStateMachine:{action:b,state:a}}}function W(a,b,e){var f=b.controlledState.error;if(f!=null&&f!==l.lastLoggedError&&f.errorCode!=="410"){var g=f.errorDescription,h=f.errorName,i=f.errorType,j=f.url,k=f.errorCode==null||f.errorCode===""?h:f.errorCode;e=V(b,e);G({eventType:"error",logDataOverrides:babelHelpers["extends"]({},c("gkx")("1565232")?E():null,{error:h,error_code:k,error_description:g,error_domain:h,error_type:(k=i)!=null?k:d("VideoPlayerImplementationErrorNormalization").getErrorTypeFromErrorName(h),error_user_info:JSON.stringify(e),resource_url:j}),prevState:a,state:b});l.lastLoggedError=f}return H}function X(a,b){var c=l.errorRecoveryAttemptState.currentRecoverableError;if(c!=null){var d=c.errorCode,e=c.errorDescription,f=c.errorName,g=c.errorType;c=c.url;l.errorRecoveryAttemptState.eventsLogged++;l.errorRecoveryAttemptState.repeatCount=0;G({eventType:"error_recovery_attempt",logDataOverrides:{error:f,error_code:d,error_description:e,error_domain:f,error_type:g,resource_url:c},prevState:a,state:b})}return H}function Y(a,b,d){if(d.type==="error_recovery_attempt"&&l.errorRecoveryAttemptState.eventsLoggedj&&X(a,b))}return H}function Z(a,b,c){if(!n)return H;var d=b.uncontrolledState.videoElementPlaybackRate;c.type==="dom_event_ratechange"&&l.lastLoggedPlaybackSpeed!=null&&d!==0&&d!==l.lastLoggedPlaybackSpeed&&G({eventType:"playback_speed_changed",prevState:a,state:b});return H}function aa(a,b,c){c=b.controlledState.playbackState;c==="paused"||c==="ended"?l.nextHeartbeatTime=null:c!=="stalling"&&l.nextHeartbeatTime==null&&(l.nextHeartbeatTime=Date.now()+h);var d=l.nextHeartbeatTime;if(d!=null){var e=Date.now();e>=d&&(c!=="stalling"&&G({eventType:"heart_beat",prevState:a,state:b}),l.nextHeartbeatTime=e+h)}return H}function ba(a,b,c){if(c.type==="implementation_mounted"){G({eventType:"player_loaded",prevState:a,state:b});return H}else return H}function $(a,b,c){G({eventType:c?"entered_fs":"exited_fs",prevState:a,state:b})}function ca(a,b,c){var d=e.coreVideoPlayerMetaData.playerFormat;(f.coreVideoPlayerMetaData.playerFormat!==d||c.type==="controller_override_player_format")&&G({eventType:"player_format_changed",prevState:a,state:b});return H}function da(a,b,c){if(c.type==="dom_event_timeupdate"){c=l.nextPlayedThreeSecondsPlayheadPosition;if(c!=null){var d=b.uncontrolledState;d=d.videoElementPlayheadPosition;d!=null&&c<=d&&(G({eventType:"played_for_three_seconds",prevState:a,state:b}),l.nextPlayedThreeSecondsPlayheadPosition=null)}}return H}function ea(a,b,c){if(c.type!=="notify_fullscreen_changed")return H;c=l.lastLoggedFullscreenState;var d=b.uncontrolledState.isFullscreen;if(c!==!0&&d===!0){$(a,b,d);return H}else if(c===!0&&d===!1){$(a,b,d);return H}else return H}function fa(a,b,d){d=e.coreVideoPlayerMetaData.adClientToken;if((d==null||d==="")&&c("gkx")("1401747"))return H;d=b.controlledState.playbackState;var f=l.lastLoggedViewabilityPercentage,g=b.uncontrolledState.viewabilityPercentage;if(d!=="paused"&&d!=="ended"&&f!=null&&f!==g){G({eventType:"viewability_changed",prevState:a,state:b});return H}else return H}function ga(a,b,c){if(c.type==="controller_set_captions_visible_requested"){G({eventType:"caption_change",prevState:a,state:b});return H}else return H}function ha(a){f=e;if(a.type==="notify_logging_metadata_change"){a=a.payload.loggingMetaData;e=a}}return{addDebugSubscriber:function(a){return r(a)},consumeLoggerEvents:function(){var a=g.splice(0);return a},getLoggerState:function(){return l},handleStateMachine:function(a,b,c){ha(c);var d=b.controlledState.playbackState;w(a,b,c);v(a,b);var e=[ca,ea,fa,L,M,O,N,P,Q,S,T,R,ba,ga,U,W,Y,aa,Z,da];e.forEach(function(d){d(a,b,c)});(d==="paused"||d==="ended")&&(l.canLogPlayingEvent=!0);c.type==="controller_pause_requested"&&(l.hasPausedOnce=!0,l.shouldIgnoreDomPause=!0);c.type==="controller_play_requested"&&(l.hasPausedOnce=!0,l.shouldIgnoreDomPlay=!0);c.type==="dom_event_pause"&&(l.shouldIgnoreDomPause=!1);c.type==="dom_event_play"&&(l.shouldIgnoreDomPlay=!1,l.lastLoggedViewabilityPercentage=b.uncontrolledState.viewabilityPercentage)},logVPLEvent:function(a){var b=a.eventType,c=a.logDataOverrides;a=a.state;G({eventType:b,logDataOverrides:c,prevState:a,state:a})},setAdditionalLogData:function(a,c){b.set(a,c)}}}g.HEARTBEAT_INTERVAL=h;g.createVideoPlayerImplementationStateMachineLogger=a}),98); __d("convertToViewabilityPercentage",[],(function(a,b,c,d,e,f){"use strict";function a(a){if(a>=.99)return 100;else if(a>=.75)return 75;else if(a>=.5)return 50;else if(a>=.25)return 25;else if(a>=0)return 0;else return-2}f["default"]=a}),66); __d("VideoPlayerImplementationStateMachineStateUncontrolledState",["NetworkStatus","convertToViewabilityPercentage","gkx","performance"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=a.engineExtrasAPI,d=a.fullscreenControllerRef,e=a.videoElementAPI,f=a.videoLiveTraceRef;a=a.videoPlayerPassiveViewabilityInfoRef;f=f.current;var g=Date.now(),h=typeof c("performance").now==="function"?c("performance").now():0;if(e==null){var i;return{audioRepresentationID:void 0,clockTimestamp:g,currentPlayingVideoQuality:void 0,estimatedBandwidth:void 0,isDocumentHidden:document.hidden,isFBIsLiveTemplated:void 0,isFBMS:void 0,isFBWasLive:void 0,isFullscreen:d.current?d.current.getIsFullscreen():void 0,isPredictiveDash:void 0,liveTraceContext:f?(i=f.getLiveTraceContext())!=null?i:void 0:void 0,manifestIdentifier:void 0,mpdValidationErrors:void 0,networkConnected:void 0,perfTimestamp:h,videoElementDebugCurrentSrc:void 0,videoElementDebugSrc:void 0,videoElementDroppedFrameCount:void 0,videoElementDuration:void 0,videoElementEnded:void 0,videoElementError:void 0,videoElementLastBufferEndPosition:void 0,videoElementMuted:void 0,videoElementNetworkState:void 0,videoElementPaused:void 0,videoElementPlaybackRate:void 0,videoElementPlayheadPosition:void 0,videoElementReadyState:void 0,videoElementTotalFrameCount:void 0,videoElementVolume:void 0,videoRepresentationID:void 0,viewabilityPercentage:void 0}}i=e.getPlayheadPosition();a=a&&a.current;a=a&&a.getCurrent();return{audioRepresentationID:b?b.getAudioRepresentationIDAtTime(i):void 0,clockTimestamp:g,currentPlayingVideoQuality:b?b.getCurrentPlayingVideoQuality():void 0,estimatedBandwidth:b?b.getEstimatedBandwidth():void 0,isDocumentHidden:document.hidden,isFBIsLiveTemplated:b?b.isFBIsLiveTemplated():void 0,isFBMS:b?b.isFBMS():void 0,isFBWasLive:b?b.isFBWasLive():void 0,isFullscreen:d.current?d.current.getIsFullscreen():void 0,isPredictiveDash:b?b.isPredictiveDash():void 0,liveTraceContext:f?(g=f.getLiveTraceContext())!=null?g:void 0:void 0,manifestIdentifier:b?b.getManifestIdentifier():void 0,mpdValidationErrors:b?b.getMpdValidationErrors():void 0,networkConnected:c("NetworkStatus").isOnline(),perfTimestamp:h,videoElementDebugCurrentSrc:c("gkx")("1526990")?(d=e.getUnderlyingVideoElement())==null?void 0:d.currentSrc:void 0,videoElementDebugSrc:c("gkx")("1526990")?(f=e.getUnderlyingVideoElement())==null?void 0:f.src:void 0,videoElementDroppedFrameCount:e.getDroppedFrameCount(),videoElementDuration:e.getDuration(),videoElementEnded:e.getEnded(),videoElementError:e.getError(),videoElementLastBufferEndPosition:e.getLastBufferEndPosition(),videoElementMuted:e.getMuted(),videoElementNetworkState:e.getNetworkState(),videoElementPaused:e.getPaused(),videoElementPlaybackRate:e.getPlaybackRate(),videoElementPlayheadPosition:i,videoElementReadyState:e.getReadyState(),videoElementTotalFrameCount:e.getTotalFrameCount(),videoElementVolume:e.getVolume(),videoRepresentationID:b?b.getVideoRepresentationIDAtTime(i):void 0,viewabilityPercentage:a?c("convertToViewabilityPercentage")(a.visiblePercentage):void 0}}g.createVideoPlayerImplementationStateMachineStateUncontrolledState=a}),98); __d("VideoPlayerImplementationStateMachineState",["VideoPlayerImplementationStateMachineStateUncontrolledState"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=a.alwaysShowCaptions,c=a.areCaptionsAutogenerated,e=a.captionDisplayStyle,f=a.dimensions,g=a.isAbrEnabled,h=a.playerImplementationName,i=a.playerVersion;a=a.streamingFormat;var j=!0,k=1,l=d("VideoPlayerImplementationStateMachineStateUncontrolledState").createVideoPlayerImplementationStateMachineStateUncontrolledState({engineExtrasAPI:null,fullscreenControllerRef:{current:null},videoElementAPI:null,videoLiveTraceRef:{current:null},videoPlayerPassiveViewabilityInfoRef:{current:null}});return{controlledState:{activeCaptions:null,activeEmsgBoxes:[],allEmsgBoxes:new Map(),availableQualities:[],bufferingDetected:!1,captionDisplayStyle:e,captionFormat:null,captionsLoaded:!1,captionsLocale:null,captionsVisible:b,dimensions:f,emsgObserverTokens:new Set(),error:null,hasPlayEverBeenRequested:!1,hostCallPlayIDLast:null,hostCallQueue:[],implementationSeekSourcePosition:null,inbandCaptionsAutogenerated:c,isDesktopPictureInPicture:!1,isLiveRewindActive:!1,lastBufferingType:null,lastMuteReason:null,lastPausedTimeMs:0,lastPauseReason:null,lastPlayedTimeMs:0,lastPlayReason:null,latencyLevel:"normal",loopCount:0,loopCurrent:0,muted:j,overriddenPlayerFormat:"unknown",playbackState:"paused",playerFormat:"unknown",scrubbing:!1,seekableRanges:null,seeking:!1,seekTargetPosition:null,selectedVideoQuality:"notselected",streamEnded:!1,streamingFormat:a,streamInterrupted:!1,targetAudioQuality:"",targetPlaybackRate:1,targetVideoQuality:"",videoProjection:null,volume:k,waitingForDomPlaying:!1,waitingForDomTimeUpdateAfterSeeked:!1,watchTimeMs:0},isAbrEnabled:g,playerImplementationName:h,playerVersion:i,uncontrolledState:l}}g.createVideoPlayerImplementationStateMachineInitialState=a}),98); __d("VideoPlayerImplementationEngineAPI",["CometEventListener","CometVideoPictureInPictureManagerContext","CurrentUser","ErrorMetadata","FBLogger","MediaPlaybackCompoundEventStateMachineLogger","NetworkStatus","PlaybackSpeedExperiments","RunComet","SubscriptionsHandler","VideoLiveTrace","VideoPlayerBanzaiLogFlusher","VideoPlayerCaptionsController","VideoPlayerImplementationErrors","VideoPlayerImplementationReactVideoElement.react","VideoPlayerImplementationStateMachine","VideoPlayerImplementationStateMachineHostCallQueue","VideoPlayerImplementationStateMachineLogger","VideoPlayerImplementationStateMachineState","VideoPlayerImplementationStateMachineStateUncontrolledState","VideoPlayerODS","clearTimeout","cr:4081","cr:506","cr:683059","deepEquals","err","gkx","killswitch","qex","react","recoverableViolation","removeFromArray","setTimeout","unrecoverableViolation","useConcurrentAutoplayManagementAPI","useSEOLoggedOutWebCrawler","useStable"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");f=d("react");var i=f.useEffect,j=f.useRef,k=f.useState,l=(f=c("qex")._("1653"))!=null?f:0,m=function(){function a(a){var b=a.pauseRequestCallbacks,c=a.playRequestCallbacks,d=a.scrubBeginRequestCallbacks;a=a.scrubEndRequestCallbacks;this.$1=c;this.$2=b;this.$3=d;this.$4=a}var b=a.prototype;b.playRequest=function(a){var b=this;this.$1.push(a);return function(){c("removeFromArray")(b.$1,a)}};b.pauseRequest=function(a){var b=this;this.$2.push(a);return function(){c("removeFromArray")(b.$2,a)}};b.scrubBeginRequest=function(a){var b=this;this.$3.push(a);return function(){c("removeFromArray")(b.$3,a)}};b.scrubEndRequest=function(a){var b=this;this.$4.push(a);return function(){c("removeFromArray")(b.$4,a)}};return a}();function n(a){var b=a.concurrentAutoplayManagementAPI,d=a.debugAPI,e=a.exitPictureInPictureImpl,f=a.fullscreenControllerRef,g=a.getCurrentExposedState,h=a.getCurrentIsDesktopPictureInPicture,i=a.getCurrentIsFullscreen,j=a.getCurrentLiveRewindPlayheadPosition,k=a.getCurrentPlayheadPosition,l=a.internal_getCurrentStateMachineState,n=a.loggerAPI,o=a.overridePlayerFormatImpl,p=a.pauseImpl,q=a.playImpl,r=a.registerEmsgObserverImpl,s=a.requestPictureInPictureImpl,t=a.scrubBeginImpl,u=a.scrubEndImpl,v=a.seekImpl,w=a.selectVideoQualityImpl,x=a.setCaptionsDisplayStyleImpl,y=a.setCaptionsUrlImpl,z=a.setCaptionsVisibleImpl,A=a.setIsLiveRewindActiveImpl,B=a.setLatencyLevelImpl,C=a.setMutedImpl,D=a.setPictureInPictureStateImpl,E=a.setPlaybackRateImpl,F=a.setVolumeImpl,G=a.subscribers,H=a.unregisterEmsgObserverImpl,I=a.videoElementAPIRef,J=new Set(),K=!1,L=null,M=[],N=[],O=[],P=[],Q=new m({pauseRequestCallbacks:N,playRequestCallbacks:M,scrubBeginRequestCallbacks:O,scrubEndRequestCallbacks:P}),R={freeze:function(){if(!g().paused)throw c("unrecoverableViolation")("Video player must be paused before the controller freeze","comet_video_player");var a={};try{var b=!1;J.size===0&&(b=!0,L={exposedState:g(),isFullscreen:i(),liveRewindPlayheadPosition:j(),playheadPosition:k(),stateMachineState:l()});J.add(a);b&&(K=!0,G.forEach(function(a){a()}))}finally{K=!1}return a},isFrozen:function(){return L!=null},unfreeze:function(a){if(!J.has(a))throw c("unrecoverableViolation")("Video player controller unfreeze token not found","comet_video_player");J["delete"](a);J.size===0&&(L=null,G.forEach(function(a){a()}))}},S=babelHelpers["extends"]({},b,R,n,{debugAPI:d,exitPictureInPicture:function(){if(R.isFrozen())return;e()},getCurrentState:function(){return L!=null?L.exposedState:g()},getIsDesktopPictureInPicture:function(){return L!=null?L.isFullscreen:h()},getIsFullscreen:function(){return L!=null?L.isFullscreen:i()},getLiveRewindPlayheadPosition:function(){return L!=null?L.liveRewindPlayheadPosition:j()},getPlayheadPosition:function(){return L!=null?L.playheadPosition:k()},internal_getStateMachineState:function(){return L!=null?L.stateMachineState:l()},internal_getVideoElement:function(){var a=I.current;if(a!=null){a=a.getUnderlyingVideoElement();return a}return null},observeOn:function(){return Q},overridePlayerFormat:function(a){if(R.isFrozen())return;o(a)},pause:function(a){if(R.isFrozen())return;N.forEach(function(b){return b(a)});p(a)},play:function(a){if(R.isFrozen())return;M.forEach(function(b){return b(a)});q(a)},registerEmsgObserver:function(){var a={};r(a);return a},requestPictureInPicture:function(){if(R.isFrozen())return;s()},requestSetIsFullscreen:function(a){if(R.isFrozen())return;var b=f.current;if(b){var c=S.internal_getVideoElement();b.requestSetIsFullscreen(a,c)}},scrollIntoView:function(a){var b=S.internal_getVideoElement();b&&b.scrollIntoView(a)},scrubBegin:function(){if(R.isFrozen())return;O.forEach(function(a){return a()});t()},scrubEnd:function(a){if(R.isFrozen())return;P.forEach(function(b){return b(a)});u(a)},seek:function(a){if(R.isFrozen())return;v(a)},selectVideoQuality:function(a){if(R.isFrozen())return;w(a)},setCaptionsDisplayStyle:function(a){if(R.isFrozen())return;x(a)},setCaptionsUrl:function(a){if(R.isFrozen())return;y(a)},setCaptionsVisible:function(a){if(R.isFrozen())return;z(a)},setIsLiveRewindActive:function(a){if(R.isFrozen())return;A(a)},setLatencyLevel:function(a){if(R.isFrozen())return;B(a)},setMuted:function(a,b){if(R.isFrozen())return;C(a,b)},setPictureInPictureState:function(a){if(R.isFrozen())return;D(a)},setPlaybackRate:function(a){if(R.isFrozen())return;E(a)},setVolume:function(a){if(R.isFrozen())return;F(a)},subscribe:function(a){var b=function(){if(R.isFrozen()&&!K)return;a()},d=f.current,e=d?d.subscribe(b):null;G.push(b);return{remove:function(){e&&e.remove(),c("removeFromArray")(G,b)}}},unregisterEmsgObserver:function(a){H(a)},videoElementAPIRef:I});return S}function o(a){var b=a.concurrentAutoplayManagementAPI,d=a.createExposedState,e=a.debugAPI,f=a.fullscreenControllerRef,g=a.logger,h=a.machine,i=a.subscribers,j=a.videoElementAPIRef;a={logVPLEvent_DO_NOT_USE:function(a,b){g.logVPLEvent({eventType:a,logDataOverrides:b,state:h.getCurrentState()})},setAdditionalLogData:function(a,b){g.setAdditionalLogData(a,b)}};return n({concurrentAutoplayManagementAPI:b,debugAPI:e,exitPictureInPictureImpl:function(){h.dispatch({type:"controller_picture_in_picture_exit_requested"})},fullscreenControllerRef:f,getCurrentExposedState:function(){return d(h.getCurrentState())},getCurrentIsDesktopPictureInPicture:function(){var a;return(a=h.getCurrentState().controlledState.isDesktopPictureInPicture)!=null?a:!1},getCurrentIsFullscreen:function(){var a=f.current;return a?a.getIsFullscreen():!1},getCurrentLiveRewindPlayheadPosition:function(){var a=h.getCurrentState();a=a.controlledState;var b=a.isLiveRewindActive,c=a.seekableRanges;a=a.seekTargetPosition;if(!b||a==null)return null;c=(b=c==null?void 0:c.end(0))!=null?b:0;return a-c},getCurrentPlayheadPosition:function(){var a,b=0;return(a=(a=c("gkx")("3464")?(a=j.current)==null?void 0:a.getPlayheadPosition():void 0)!=null?a:h.getCurrentState().uncontrolledState.videoElementPlayheadPosition)!=null?a:b},internal_getCurrentStateMachineState:function(){return h.getCurrentState()},loggerAPI:a,overridePlayerFormatImpl:function(a){h.dispatch({payload:{playerFormat:a},type:"controller_override_player_format"})},pauseImpl:function(a){h.dispatch({payload:{reason:a},type:"controller_pause_requested"})},playImpl:function(a){h.dispatch({payload:{reason:a},type:"controller_play_requested"})},registerEmsgObserverImpl:function(a){h.dispatch({payload:{token:a},type:"register_emsg_observer"})},requestPictureInPictureImpl:function(){h.dispatch({type:"controller_picture_in_picture_requested"})},scrubBeginImpl:function(){h.dispatch({type:"controller_scrub_begin_requested"})},scrubEndImpl:function(a){h.dispatch({payload:{seekTargetPosition:a},type:"controller_scrub_end_requested"})},seekImpl:function(a){h.dispatch({payload:{seekTargetPosition:a},type:"controller_seek_requested"})},selectVideoQualityImpl:function(a){h.dispatch({payload:{selectedVideoQuality:a},type:"controller_quality_requested"})},setCaptionsDisplayStyleImpl:function(a){h.dispatch({payload:{captionDisplayStyle:a},type:"controller_set_caption_display_style_requested"})},setCaptionsUrlImpl:function(a){h.dispatch({payload:{captionsUrl:a},type:"controller_set_captions_url_requested"})},setCaptionsVisibleImpl:function(a){h.dispatch({payload:{captionsVisible:a},type:"controller_set_captions_visible_requested"})},setIsLiveRewindActiveImpl:function(a){h.dispatch({payload:{isLiveRewindActive:a},type:"controller_set_is_live_rewind_active_requested"})},setLatencyLevelImpl:function(a){h.dispatch({payload:{latencyLevel:a},type:"controller_set_latency_level_requested"})},setMutedImpl:function(a,b){h.dispatch({payload:{muted:a,reason:b},type:"controller_muted_requested"})},setPictureInPictureStateImpl:function(a){h.dispatch({payload:{isInPictureInPictureMode:a},type:"controller_set_picture_in_picture_state_requested"})},setPlaybackRateImpl:function(a){h.dispatch({payload:{playbackRate:a},type:"controller_set_playback_rate"})},setVolumeImpl:function(a){h.dispatch({payload:{volume:a},type:"controller_volume_requested"})},subscribers:i,unregisterEmsgObserverImpl:function(a){h.dispatch({payload:{token:a},type:"unregister_emsg_observer"})},videoElementAPIRef:j})}function p(a){a=a.current;if(a==null)throw c("unrecoverableViolation")("Attempted to access VideoElementAPI while it is not available.","comet_video_player");return a}function q(a){var e=a.alwaysShowCaptions,f=a.areCaptionsAutogenerated,g=a.captionDisplayStyle,h=a.captionsControllerRef,i=a.debugLogId,j=a.dimensions,k=a.engineExtrasAPI,m=a.engineMetadata,n=a.fullscreenControllerRef,o=a.handleFatalError,q=a.handleStateMachine,s=a.videoElementAPIRef,t=a.videoLiveTraceRef,u=a.videoPlayerPassiveViewabilityInfoRef;function v(a){d("VideoPlayerImplementationStateMachineHostCallQueue").applyOrQueueHostCall({engineExtrasAPI:k,hostCall:a,machine:y,videoElementAPI:s.current})}var w=null,x=null;a=[function(a,c,d){b("cr:683059")&&d.type==="implementation_host_call_applied"&&d.payload.hostCall.type==="host_call_play"&&c.controlledState.lastPlayReason==="autoplay_initiated"?b("cr:683059").addFirstMarkerPoint("firstVideoAutoplayStalling"):b("cr:683059")&&c.controlledState.playbackState!==a.controlledState.playbackState&&c.controlledState.playbackState==="playing"&&c.controlledState.lastPlayReason==="autoplay_initiated"&&b("cr:683059").addFirstMarkerPoint("firstVideoAutoplayPlaying");return!0},function(a,b,c){q(a,b,c);return!0},function(a,b,e){if(c("gkx")("1633455")&&(a.controlledState.streamInterrupted===!1&&b.controlledState.streamInterrupted===!0||a.controlledState.streamInterrupted===!0&&b.controlledState.streamInterrupted===!1)){a=b.controlledState;b=a.bufferingDetected;var f=a.lastBufferingType,g=a.streamInterrupted;a=a.targetPlaybackRate;g?(b&&y.dispatch({payload:{domEventPerfTimestamp:null},type:"buffering_end_requested"}),v({payload:{hostCallID:d("VideoPlayerImplementationStateMachineHostCallQueue").makeHostCallID(),playbackRate:0,reason:e.type},type:"host_call_set_playback_rate"})):(v({payload:{hostCallID:d("VideoPlayerImplementationStateMachineHostCallQueue").makeHostCallID(),playbackRate:a,reason:e.type},type:"host_call_set_playback_rate"}),b&&y.dispatch({payload:{bufferingType:f||"in_play"},type:"buffering_begin_requested"}))}return!0},function(a,b,e){if(a.controlledState.bufferingDetected===!1&&b.controlledState.bufferingDetected===!0||a.controlledState.bufferingDetected===!0&&b.controlledState.bufferingDetected===!1){w!==null&&(c("clearTimeout")(w),w=null);if(b.controlledState.bufferingDetected&&(!c("gkx")("1633455")||!b.controlledState.streamInterrupted)){e=function a(){w=null;if(c("gkx")("1849507")&&!c("NetworkStatus").isOnline())w=c("setTimeout")(a,g);else{var e=d("VideoPlayerImplementationErrors").createVideoPlayerBufferingErrorFromGenericError("BUFFERING_TIMEOUT",c("err")("The video has been in a buffering state for over "+g+" ms."),"buffering_timeout",f,b.controlledState.isLiveRewindActive);x&&(x.log(),x=null);y.dispatch({payload:{fatalError:e},type:"implementation_fatal_error"});e=k.getPerfLoggerProvider();e==null?void 0:e.getOperationLogger("buffering_timeout").setType(f).setInitiator("engine_api").setLength(g).setResult("failed").log()}};var f=(a=b.controlledState.lastBufferingType)!=null?a:"in_play";a=(a=c("qex")._("1654"))!=null?a:l;var g=f==="in_play"?a:l;g>0&&(w=c("setTimeout")(e,g));a=k.getPerfLoggerProvider();x=a?a.getOperationLogger("buffering").setState("buffering").setType(f).start():null}else!b.controlledState.bufferingDetected&&x!=null&&(x.log(),x=null)}return!0},function(a,b,d){if(d.type!=="implementation_engine_destroy_requested")return!0;w!==null&&c("clearTimeout")(w);w=null;return!1},function(a,b,c){if(c.type!=="implementation_engine_initialized")return!0;a=p(s);c=c.type;d("VideoPlayerImplementationStateMachineHostCallQueue").flushHostCallQueue({engineExtrasAPI:k,machine:y,reason:c,state:b,videoElementAPI:a});return!1},function(a,b,c){if(c.type!=="dom_event_ended")return!0;a=b.controlledState;(a.loopCount>0&&a.loopCurrent=g&&y.dispatch({payload:{isLiveRewindActive:!1},type:"controller_set_is_live_rewind_active_requested"})}if(!k.getRepresentationCaptionsExpectedFromManifest()&&c&&e&&b.controlledState.captionsLoaded){g=c.handleTimeUpdate(f);e=c.getCaptionFormat();b=a.controlledState.activeCaptions;c=a.controlledState.captionFormat;e!==c&&y.dispatch({payload:{captionFormat:e},type:"controller_set_caption_format_requested"});r(b,g)&&y.dispatch({payload:{activeCaptions:g,captionsLocale:null},type:"controller_set_active_captions_requested"})}a=t.current;a!=null&&a.onUpdateStatus({position:f});return!1},function(a,b,c){if(c.type!=="cea608_bytes_received")return!0;a=h.current;if(a){b=c.payload;c=b.timescale;b=b.videoBytes;a.handleCea608BytesReceived({timescale:c,videoBytes:b})}return!1},function(a,b,c){if(c.type!=="controller_set_captions_url_requested")return!0;a=h.current;if(a){b=c.payload.captionsUrl;a.updateCaptionsUrl(b)}return!1},function(a,b,c){if(c.type!=="controller_set_is_live_rewind_active_requested")return!0;k.setEnableLiveheadCatchup(!c.payload.isLiveRewindActive);!!d("PlaybackSpeedExperiments").enableCometPlaybackSpeedControl()&&!c.payload.isLiveRewindActive&&y.dispatch({payload:{playbackRate:1},type:"controller_set_playback_rate"});return!1},function(a,b,c){if(c.type!=="controller_picture_in_picture_requested")return!0;v({payload:{hostCallID:d("VideoPlayerImplementationStateMachineHostCallQueue").makeHostCallID(),reason:c.type},type:"host_call_picture_in_picture"});return!1},function(a,b,c){if(c.type!=="controller_picture_in_picture_exit_requested")return!0;v({payload:{hostCallID:d("VideoPlayerImplementationStateMachineHostCallQueue").makeHostCallID(),reason:c.type},type:"host_call_exit_picture_in_picture"});return!1}];var y=d("VideoPlayerImplementationStateMachine").createVideoPlayerImplementationStateMachineWithStateTransitionHandlers({collectUncontrolledState:function(){var a=s.current;return d("VideoPlayerImplementationStateMachineStateUncontrolledState").createVideoPlayerImplementationStateMachineStateUncontrolledState({engineExtrasAPI:k,fullscreenControllerRef:n,videoElementAPI:a,videoLiveTraceRef:t,videoPlayerPassiveViewabilityInfoRef:u})},debugLogId:i,initialState:d("VideoPlayerImplementationStateMachineState").createVideoPlayerImplementationStateMachineInitialState({alwaysShowCaptions:e,areCaptionsAutogenerated:f,captionDisplayStyle:g,dimensions:j,isAbrEnabled:m.isAbrEnabled,playerImplementationName:m.playerImplementationName,playerVersion:m.playerVersion,streamingFormat:m.streamingFormat}),onFatalError:o,stateTransitionHandlers:a});return y}function r(a,b){if(a===null&&b===null)return!1;if(a===null||b===null)return!0;var c=(b=b.rows)!=null?b:[];a=(b=a.rows)!=null?b:[];return a.length!==c.length||a.some(function(a,b){return a!==c[b]})}function s(a,b,c,d){a!==b.current&&(c.current&&(c.current.remove(),c.current=null),b.current=a),b.current&&!c.current&&(c.current=b.current.subscribe(function(){d.dispatch({type:"notify_fullscreen_changed"})}))}function t(a,b,c,d){a!==b.current&&(c.current&&(c.current.remove(),c.current=null),b.current=a),b.current&&!c.current&&(c.current=b.current.subscribe(function(){d.dispatch({type:"notify_viewability_changed"})}))}function u(a){var b=a.engineMetadata;a=a.state;var c=a.controlledState,d=c.activeCaptions,e=c.activeEmsgBoxes,f=c.availableQualities,g=c.captionDisplayStyle,h=c.captionsLoaded,i=c.captionsVisible,j=c.error,k=c.hasPlayEverBeenRequested,l=c.implementationSeekSourcePosition,m=c.inbandCaptionsAutogenerated,n=c.isDesktopPictureInPicture,o=c.isLiveRewindActive,p=c.lastMuteReason,q=c.lastPauseReason,r=c.lastPlayedTimeMs,s=c.lastPlayReason,t=c.latencyLevel,u=c.loopCount,v=c.loopCurrent,w=c.muted,x=c.overriddenPlayerFormat,y=c.playbackState,z=c.seekableRanges,A=c.seeking,B=c.seekTargetPosition,C=c.selectedVideoQuality,D=c.streamInterrupted,E=c.targetAudioQuality,F=c.targetPlaybackRate,G=c.targetVideoQuality,H=c.videoProjection,I=c.volume;c=c.watchTimeMs;var J=a.uncontrolledState,K=J.currentPlayingVideoQuality,L=J.videoElementDuration,M=J.videoElementLastBufferEndPosition;J=J.videoRepresentationID;var N=y==="ended",O=y==="paused"||N,P=y==="playing",Q=y==="inPlayStalling";y=y==="stalling"||Q;d={activeCaptions:d,activeEmsgBoxes:e,availableVideoQualities:f,bufferEnd:(d=M)!=null?d:0,captionDisplayStyle:g,captionsLoaded:h,captionsVisible:i,currentVideoQuality:(e=K)!=null?e:"",duration:(f=L)!=null?f:0,ended:N,error:j,hasPlayEverBeenRequested:k,inbandCaptionsAutogenerated:m,inPlayStalling:Q,isAbrEnabled:b.isAbrEnabled,isDesktopPictureInPicture:(M=n)!=null?M:!1,isExternalMedia:b.isExternalMedia,isLiveRewindActive:o,lastMuteReason:p,lastPauseReason:q,lastPlayedTimeMs:r,lastPlayReason:s,latencyLevel:t,loopCount:u,loopCurrent:v,muted:w,overriddenPlayerFormat:x,paused:O,playerImplementationName:a.playerImplementationName,playerVersion:a.playerVersion,playing:P,seekableRanges:z,seeking:A,seekSourcePosition:l,seekTargetPosition:B,selectedVideoQuality:C,stalling:y,streamInterrupted:D,targetAudioQuality:E,targetPlaybackRate:F,targetVideoQuality:G,videoProjection:H,videoRepresentationID:J,volume:I,watchTimeMs:c};return d}function a(a){var e=a.createDebugAPI,f=a.createVideoPlayerError,g=a.debugLog,h=a.debugLogId,i=a.destroyEngineParts,j=a.engineExtrasAPI,k=a.engineMetadata,l=a.handleFatalError,m=a.handleVideoElementMounted,n=a.handleVideoElementUnmounted,p=a.handleVideoInfoChange,r=a.initialProps,v=a.setExposedStateInReact;g=r.loggingMetaData.instanceKey;a=r.loggingMetaData.coreVideoPlayerMetaData;var w=a.broadcastId,x=a.isLiveStreaming;a=a.isLiveTraceEnabled;var y={current:Boolean(x)&&Boolean(a)&&w!=null?new(c("VideoLiveTrace"))(w,g,c("CurrentUser").getAccountID()):null},z=d("VideoPlayerImplementationStateMachineLogger").createVideoPlayerImplementationStateMachineLogger({debugLogId:h,initialLoggingMetaData:r.loggingMetaData,videoLiveTraceRef:y}),A=b("cr:4081")?d("MediaPlaybackCompoundEventStateMachineLogger").createMediaPlaybackCompoundEventStateMachineLogger({debugLogId:h,initialLoggingMetaData:r.loggingMetaData}):null,B=b("cr:4081")&&A?new(b("cr:4081"))(A):null,C=new(c("VideoPlayerBanzaiLogFlusher"))(z),D={current:(x=r.videoPlayerPassiveViewabilityInfo)!=null?x:null},E={current:(a=r.fullscreenController)!=null?a:null},F={current:null};w=d("useConcurrentAutoplayManagementAPI").createConcurrentAutoplayManagementAPI();var G=[],H=function(){G.forEach(function(a){a()}),r.disableLogging?(C.discardLogsWithoutFlushing(),b("cr:4081")&&(B==null?void 0:B.discardLogsWithoutFlushing())):(C.flushLogs(),B==null?void 0:B.flushLogs())},I={current:null},J=null,K={current:{inbandCaptionsAutogeneratedFromManifest:!1,inbandCaptionsExpectedFromManifest:!1,inbandCaptionsExpectedFromProps:r.inbandCaptionsExpected,representationCaptionsExpectedFromManifest:!1,sideLoadCaptionsExpectedFromProps:r.sideLoadCaptionsExpected,sideLoadCaptionsUrlFromProps:(g=r.captionsUrl)!=null?g:null}},L={current:null},M={current:null},N=new(c("SubscriptionsHandler"))(),O=new(c("SubscriptionsHandler"))(),P="before_mounted";function Q(){return P==="mounted"}var R={current:null},S=function(a){a=u({engineMetadata:k,state:a});return a},T={current:null},U={current:null},aa=function(a){if(Q()){if(a===T.current)return;var b=S(a);if(U.current!=null&&c("deepEquals")(U.current,b))return;T.current=a;U.current=b;v(b)}};x=function(a,b,c){z.handleStateMachine(a,b,c),A==null?void 0:A.handleStateMachine(a,b,c),aa(b),H()};var V=function(a,b){};a=function(a){V(a,"state_machine_fatal_error")};var W=q({alwaysShowCaptions:Boolean(r.alwaysShowCaptions),areCaptionsAutogenerated:Boolean(r.areCaptionsAutogenerated),captionDisplayStyle:r.captionDisplayStyle,captionsControllerRef:F,debugLogId:h,dimensions:r.dimensions,engineExtrasAPI:j,engineMetadata:k,fullscreenControllerRef:E,handleFatalError:a,handleStateMachine:x,videoElementAPIRef:R,videoLiveTraceRef:y,videoPlayerPassiveViewabilityInfoRef:D}),X=!1,Y=function(a){var b=I.current!=null,d=R.current!=null;N.release();W.dispatch({payload:{reason:a,videoElementAPIExisted:d,videoElementExisted:b},type:"implementation_engine_destroy_requested"});try{c("gkx")("1494163")?i(["destroyEngine("+a+")"]):X||(X=!0,i(["destroyEngine("+a+")"]))}catch(e){if(c("gkx")("1494163"))try{c("FBLogger")("comet_video_player").catching(e).warn("Error thrown by destroyEngineParts: %s %s",e.message,JSON.stringify({playerImplementationName:k.playerImplementationName,reason:a,videoElementAPIExisted:d,videoElementExisted:b}))}catch(a){}}var e=F.current;e!=null&&(W.getCurrentState().controlledState.captionsLoaded&&W.dispatch({type:"captions_unloaded"}),F.current=null,e.destroy());s(null,E,L,W);t(null,D,M,W);W.dispatch({payload:{reason:a,videoElementAPIExisted:d,videoElementExisted:b},type:"implementation_engine_destroyed"})};V=function(a,b){a=f(a,b);W.dispatch({payload:{fatalError:a},type:"implementation_fatal_error"});Y("implementation_fatal_error");l(a)};function ba(a){return a.sideLoadCaptionsExpectedFromProps&&a.sideLoadCaptionsUrlFromProps!==null}function Z(a){return a.inbandCaptionsExpectedFromProps&&((a=a.inbandCaptionsExpectedFromManifest)!=null?a:!1)}function $(a){return(a=a.inbandCaptionsAutogeneratedFromManifest)!=null?a:!1}var ca=function(a){var b=ba(a),c=Z(a),e=$(a),f=F.current;e!==$(K.current)&&W.dispatch({payload:{inbandCaptionsAutogenerated:e},type:"inband_captions_autogenerated_changed"});f!=null?c!==Z(K.current)&&(f.updateInbandCaptionsExpected(c),!c&&W.getCurrentState().controlledState.captionsLoaded&&W.dispatch({type:"captions_unloaded"})):(b||c)&&f==null&&(F.current=d("VideoPlayerCaptionsController").createCaptionsController({captionsUrl:b?a.sideLoadCaptionsUrlFromProps:null,inbandCaptionsExpected:c,onCaptionsLoaded:function(){W.getCurrentState().controlledState.captionsLoaded||W.dispatch({type:"captions_loaded"})}}));K.current=a},da=function(a){j!=null&&a&&a.width>0&&a.height>0&&(j.setDimensions(a),W.dispatch({payload:{dimensions:{height:a.height,width:a.width}},type:"player_dimensions_changed"}))},ea=function(a){a!==W.getCurrentState().controlledState.loopCount&&W.dispatch({payload:{loopCount:a},type:"loop_count_change_requested"})},fa=function(a){"srcObject"in a&&(a.srcObject=null),c("gkx")("8054")&&a.removeAttribute("src"),O.release(),O.engage()},ga=function(a,e){if(I.current===a)return;if(!Q()&&c("gkx")("1405244"))return;if(!Q()){var f=function(a){switch(a){case"unmounted":return"EngineAPI.handleVideoElement.unmounted";case"before_mounted":return"EngineAPI.handleVideoElement.before_mounted";case"mounted":return null;default:a;return null}}(P);f&&d("VideoPlayerODS").bumpEntityKey("comet_video_player",f,1)}a!=null&&I.current!=null&&I.current!==a&&c("recoverableViolation")("The video element was recreated","comet_video_player");J!=null&&J();f=I.current;f&&fa(f);I.current=a;b("cr:506")!=null&&a!=null&&(J=b("cr:506")(a,h));a!=null&&O.addSubscriptions(c("CometEventListener").listen(a,"enterpictureinpicture",function(){var a=d("CometVideoPictureInPictureManagerContext").isInPictureInPictureExp();a&&W.dispatch({payload:{isInPictureInPictureMode:!0},type:"controller_set_picture_in_picture_state_requested"})}),c("CometEventListener").listen(a,"leavepictureinpicture",function(){var a=d("CometVideoPictureInPictureManagerContext").isInPictureInPictureExp();a&&W.dispatch({payload:{isInPictureInPictureMode:!1},type:"controller_set_picture_in_picture_state_requested"})}));c("gkx")("1494163")&&(a==null&&(R.current=null));I.current!=null?(W.dispatch({type:"implementation_video_node_mounted"}),m([].concat(e,["handleVideoElement(non-null)"]))):(W.dispatch({type:"implementation_video_node_unmounted"}),n([].concat(e,["handleVideoElement(null)"])))};g=r.loggingMetaData.instanceKey;a=function(a){var b;if(!Q())return;s((b=a.fullscreenController)!=null?b:null,E,L,W);t((b=a.videoPlayerPassiveViewabilityInfo)!=null?b:null,D,M,W);if(!p(a)){b={inbandCaptionsAutogeneratedFromManifest:K.current.inbandCaptionsAutogeneratedFromManifest,inbandCaptionsExpectedFromManifest:K.current.inbandCaptionsExpectedFromManifest,inbandCaptionsExpectedFromProps:a.inbandCaptionsExpected,representationCaptionsExpectedFromManifest:K.current.representationCaptionsExpectedFromManifest,sideLoadCaptionsExpectedFromProps:a.sideLoadCaptionsExpected,sideLoadCaptionsUrlFromProps:(b=a.captionsUrl)!=null?b:null};ca(b);da(a.dimensions);ea((b=a.loopCount)!=null?b:0)}W.dispatch({payload:{loggingMetaData:a.loggingMetaData},type:"notify_logging_metadata_change"})};x=function(){if(P!=="before_mounted"){var a=function(a){switch(a){case"before_mounted":return null;case"unmounted":return"EngineAPI.handleReactMount.unmounted";case"mounted":return"EngineAPI.handleReactMount.mounted";default:a;return null}}(P);a&&d("VideoPlayerODS").bumpEntityKey("comet_video_player",a,1)}Q()||(P="mounted",N.addSubscriptions(d("RunComet").onUnload(function(){Y("page_unload")})),W.dispatch({type:"implementation_mounted"}),m(["handleReactMount"]))};g=function(){if(!Q()){var a=function(a){switch(a){case"unmounted":return"EngineAPI.handleReactUnmount.unmounted";case"before_mounted":return"EngineAPI.handleReactUnmount.before_mounted";case"mounted":return null;default:a;return null}}(P);a&&d("VideoPlayerODS").bumpEntityKey("comet_video_player",a,1)}Q()&&(P="unmounted",W.dispatch({payload:{reason:"react_effect_cleanup"},type:"implementation_unmounted"}),Y("implementation_unmounted:react_effect_cleanup"))};w=o({concurrentAutoplayManagementAPI:w,createExposedState:S,debugAPI:e({getVideoElementAPI:function(){return R.current},logger:z}),fullscreenControllerRef:E,logger:z,machine:W,subscribers:G,videoElementAPIRef:R});e=d("VideoPlayerImplementationStateMachine").createReactVideoElementCallbacksForStateMachine(W,ga);var ha=S(W.getInitialState());x={destroy:Y,handleReactMount:x,handleReactPropsChanged:a,handleReactUnmount:g,implementationController:w,initialExposedState:ha,logFlusher:C,machine:W,notifySubscribers:H,videoElementCallbacks:e,videoElementRefCallback:function(a){ga(a,["videoElementRefCallback"])}};return{engine:x,getCaptionsInfo:function(){return K.current},getVideoElement:function(){return I.current},getVideoLiveTrace:function(){return y.current},handleCaptionsInfoChange:ca,handleFatalImplementationError:V,logger:z,machine:W,videoElementAPIRef:R}}function v(a,b){var d,e=c("err")(a.errorName+": "+a.errorDescription);e.name=a.errorName;e.errorName=a.errorName;e.type="error";a.stack!=null&&a.stack!==""&&(e.stack=a.stack);var f=new(c("ErrorMetadata"))();f.addEntries(["COMET_VIDEO","ERROR_LOCATION",a.errorLocation],["COMET_VIDEO","ERROR_CODE",(d=a.errorCode)!=null?d:""],["COMET_VIDEO","ERROR_URL",(d=a.url)!=null?d:""]);b!=null&&f.addEntry("COMET_VIDEO","VIDEO_ID",b);d=a.originalError;d!=null&&(typeof d==="string"?f.addEntry("COMET_VIDEO","ORIGINAL_ERROR",d):d instanceof Error&&d.message!=null&&f.addEntry("COMET_VIDEO","ORIGINAL_ERROR",d.message));e.metadata=f;return e}function e(a,b){var d=k(null),e=d[0],f=d[1],g=j(!1),l=j(null);d=k(null);var m=d[0],n=d[1];d=a.wrapVideoPixels_EXPERIMENTAL;i(function(){m||(l.current=null)},[m]);var o=j(a),p=j(b),q=c("useStable")(function(){return p.current({debugLogId:String(o.current.loggingMetaData.instanceKey),handleFatalError:function(a){if(g.current&&c("gkx")("1722590"))return;c("gkx")("1444664")?l.current||(l.current=a,n(a)):n(a)},initialProps:o.current,setExposedStateInReact:f})});e=(b=e)!=null?b:q.initialExposedState;b=(b=e.error)!=null?b:m;if(b!=null){if(c("killswitch")("COMET_VIDEO_ERROR_DEAGGREGATION"))throw c("unrecoverableViolation")(b.errorName+": "+b.errorDescription,"comet_video_player",{error:b.originalError instanceof Error?b.originalError:void 0});var r=a.VideoPlayerShakaPerformanceLoggerClass;r&&(c("gkx")("2007883")||c("qex")._("1655"))&&r.flushQueuedLogs();throw v(b,o.current.videoFBID)}i(function(){q.handleReactMount();return function(){g.current=!0,q.handleReactUnmount()}},[q]);var s=j(null);i(function(){a!==s.current&&q.handleReactPropsChanged(a),s.current=a});r=c("useSEOLoggedOutWebCrawler")();b=h.jsx(c("VideoPlayerImplementationReactVideoElement.react"),{alt:a.alt,implementationExposedState:e,seoWebCrawlerVideoTracks:r&&a.seoWebCrawlerVideoTracks!=null?a.seoWebCrawlerVideoTracks:null,src:r?a.seoWebCrawlerLookasideUrl:null,videoElementCallbacks:r?null:q.videoElementCallbacks,videoElementPreloadDisabled:a.preloadForProgressiveDisabled,videoElementRefCallback:r?null:q.videoElementRefCallback});r=a.renderWithExposedState({implementationController:q.implementationController,implementationExposedState:e});d=h.jsxs(h.Fragment,{children:[d?d(b):b,r]});return{engine:q,exposedState:e,reactVideoComponents:r,reactVideoFrame:b,reactVideoFrameAndComponents:d}}g.internal_createVideoPlayerImplementationControllerImpl=n;g.internal_createVideoPlayerImplementationEngineStateMachineWithEffects=q;g.internal_createVideoPlayerImplementationExposedStateFromStateMachineState=u;g.createVideoPlayerImplementationEngine=a;g.internal_makeExpandedErrorFromVideoPlayerError=v;g.useVideoPlayerImplementationEngine=e}),98); __d("VideoPlayerImplementationEngineVideoElementAPI",["Promise","VideoPlaybackQuality","VideoPlayerOzWWWGlobalConfig"],(function(a,b,c,d,e,f,g){"use strict";function h(a){return isNaN(a)?0:a}function i(a){return h(a.duration)}function j(a){a=a.buffered;return a.length>0?a.end(a.length-1):0}function k(a){return h(a.currentTime)}function l(a){return a.buffered.length===0?0:a.buffered.start(0)}function a(a,e){var f=e!==!0,g=null,h=function(b){f?b==null||b===""?a.removeAttribute("src"):a.setAttribute("src",b):g=b};return{exitPictureInPicture:function(){window.document.exitPictureInPicture()},getCanPlayPromise:function(){return new(b("Promise"))(function(b,c){a.readyState===4?b():a.addEventListener("canplay",function(){return b()})})},getDOMLoadedMetadataPromise:function(){return new(b("Promise"))(function(b,c){a.addEventListener("loadedmetadata",function(){return b()})})},getDroppedFrameCount:function(){return d("VideoPlaybackQuality").getDroppedFrames(a)},getDuration:function(){return i(a)},getEnded:function(){return a.ended},getError:function(){return a.error},getLastBufferEndPosition:function(){return j(a)},getMuted:function(){return a.muted},getNetworkState:function(){return a.networkState},getPaused:function(){return a.paused},getPlaybackRate:function(){return a.playbackRate},getPlayheadPosition:function(){return k(a)},getReadyState:function(){return a.readyState},getTotalFrameCount:function(){return d("VideoPlaybackQuality").getTotalFrames(a)},getUnderlyingVideoElement:function(){return a},getVolume:function(){return a.volume},pause:function(){a.pause()},play:function(){f||(f=!0,h(g),g=null);var c=a.play();c=c&&typeof c.then==="function"?b("Promise").resolve(c):null;return c},requestPictureInPicture:function(){typeof a.requestPictureInPicture==="function"&&a.requestPictureInPicture()},setDuration:function(b){a.duration=b},setMuted:function(b){a.muted=b},setPlaybackRate:function(b){a.playbackRate=b},setPlayheadPosition:function(b){var d=b;if(b===0){b=c("VideoPlayerOzWWWGlobalConfig").getNumber("clamp_seek_to_first_buffer_range_epsilon",0);if(b>0){var e=l(a);e>0&&e<=b&&(d=e)}}a.currentTime=d},setSrc:h,setVolume:function(b){a.volume=b}}}g.getDurationFromVideoElement=i;g.getLastBufferEndPositionFromVideoElement=j;g.getPlayheadPositionFromVideoElement=k;g.createVideoPlayerImplementationEngineVideoElementAPI=a}),98);/*FB_PKG_DELIM*/ __d("LSFilteredThreadsRangesQuery",["LSGetCursor","LSIssueNewTaskAndGetTaskID"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.i64.neq(a[10],f)?d[0]=a[10]:d[0]=[0,0],a[11]!==f?d[1]=a[11]:d[1]="",(a[2]&&c.i64.neq(a[7],f)&&c.i64.neq(a[4],f)||a[3]&&c.i64.neq(a[6],f)&&c.i64.neq(a[5],f))&&!(a[2]&&c.i64.neq(a[7],f)&&c.i64.neq(a[4],f)&&a[3]&&c.i64.neq(a[6],f)&&c.i64.neq(a[5],f))?c.seq([function(e){return d[3]=a[4]==null?[-2147483648,0]:a[4],d[4]=a[7]==null?[0,1]:a[7],d[10]=c.i64.gt(d[4],[0,1])&&c.i64.gt(d[3],[-2147483648,0]),c.sp(b("LSGetCursor"),[0,1]).then(function(a){return a=a,d[2]=a[0],a})},function(e){return d[5]=new c.Map(),d[5].set("cursor",d[2]),d[5].set("filter",a[1]),d[5].set("is_after",a[3]),d[5].set("parent_thread_key",a[0]),d[5].set("reference_activity_timestamp",a[3]?a[6]:a[7]),d[5].set("reference_thread_key",a[3]?a[5]:a[4]),d[5].set("secondary_filter",d[0]),d[5].set("filter_value",d[1]),c.i64.gt([0,0],[0,0])?d[6]=c.i64.add(c.i64.of_float(Date.now()),[0,0]):d[6]=[0,0],d[7]=c.toJSON(d[5]),c.sp(b("LSIssueNewTaskAndGetTaskID"),"trq",[0,313],d[7],f,f,[0,0],[0,0],f,f,d[6]).then(function(a){return a=a,d[8]=a[0],a})},function(b){return c.ftr(c.db.table(247).fetch([[[a[0]]]]),function(b){return c.i64.eq(b.parentThreadKey,a[0])&&c.i64.eq(b.threadRangeFilter,a[1])&&c.i64.eq(b.secondaryThreadRangeFilter,d[0])&&b.threadRangeFilterValue===d[1]}).next().then(function(b,e){e=b.done;b=b.value;return e?c.db.table(247).add({folderName:"",parentThreadKey:a[0],minThreadKey:d[3]==null?[-2147483648,0]:d[3],minLastActivityTimestampMs:d[4]==null?[0,1]:d[4],threadRangeFilter:a[1],secondaryThreadRangeFilter:d[0],threadRangeFilterValue:d[1],maxLastActivityTimestampMs:[0,1],maxThreadKey:[-2147483648,0],isLoadingBefore:d[10],isLoadingAfter:!1,hasMoreBefore:d[10],hasMoreAfter:!1}):(b.item,c.fe(c.ftr(c.db.table(247).fetch([[[a[0]]]]),function(b){return c.i64.eq(b.parentThreadKey,a[0])&&c.i64.eq(b.threadRangeFilter,a[1])&&c.i64.eq(b.secondaryThreadRangeFilter,d[0])&&b.threadRangeFilterValue===d[1]}),function(a){var b=a.update;a.item;return b({isLoadingBefore:!0,isLoadingAfter:!1,hasMoreBefore:d[10],hasMoreAfter:!1})}))})}]):c.resolve()},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSUpdateCommunityChannelDirectInvite",["LSIssueNewError","LSIssueNewTaskAndGetTaskID"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(a){return c.sb(c.db.table(115).fetch(),[["timestampMs","DESC"]]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[0]=!1:(b=a.item,d[0]=b.errorShouldBeShown)})},function(a){return d[0]===!0?c.seq([function(a){return c.localizeV2Async([0,2285622730],f).then(function(a){return d[11]=a})},function(a){return c.localizeV2Async([0,1919524925],f).then(function(a){return d[12]=a})},function(a){return c.sp(b("LSIssueNewError"),f,[0,1545093],d[11],d[12],f)}]):c.resolve()},function(e){return d[2]=new c.Map(),d[2].set("channel_id",a[0]),d[2].set("state",a[1]),c.i64.gt([0,0],[0,0])?d[3]=c.i64.add(c.i64.of_float(Date.now()),[0,0]):d[3]=[0,0],d[4]=d[2].get("channel_id"),d[2],d[5]=c.toJSON(d[2]),c.sp(b("LSIssueNewTaskAndGetTaskID"),["community_channel_invitation","_",c.i64.to_string(d[4])].join(""),[0,463],d[5],f,f,[0,0],[0,0],f,f,d[3]).then(function(a){return a=a,d[6]=a[0],a})},function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[7]=[-1,4294967295]:(b=a.item,d[7]=b.parentThreadKey)})},function(a){return c.db.table(162).fetch([[[d[7]]]]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[9]=[-1,4294967295]:(b=a.item,d[9]=b.fbGroupId)})},function(b){return c.i64.eq(a[1],[0,1])?c.fe(c.ftr(c.db.table(162).fetch(),function(a){return c.i64.eq(a.fbGroupId,d[9])}),function(a){var b=a.update;a.item;return b({joiningChannelTaskId:d[6]})}):c.resolve()}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("CometMessagingJewelCommunitiesQPBannerContainerQuery.graphql",["CometMessagingJewelCommunitiesQPBannerContainerQuery_facebookRelayOperation","relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"Literal",name:"surface_nux_id",value:10713},{kind:"Literal",name:"trigger",value:"MESSAGING_JEWEL_COMMUNITIES_TAB_OPEN"}],c=[{kind:"Literal",name:"supported",value:["CometQuickPromotionMessengerWebCommunitiesBannerRendererStrategy"]}],d={kind:"InlineFragment",selections:[{args:null,documentName:"CometMessagingJewelCommunitiesQPBannerContainerQuery",fragmentName:"CometQuickPromotionMessengerWebCommunitiesBannerRendererStrategy_quickPromotionRef",fragmentPropName:"quickPromotionRef",kind:"ModuleImport"}],type:"CometQuickPromotionMessengerWebCommunitiesBannerRendererStrategy",abstractKey:null};return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometMessagingJewelCommunitiesQPBannerContainerQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:a,concreteType:"ViewerEligibleQuickPromotionsConnection",kind:"LinkedField",name:"eligible_promotions",plural:!1,selections:[{alias:null,args:null,concreteType:"QuickPromotion",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"CometQuickPromotionSections",kind:"LinkedField",name:"comet_qp_sections",plural:!1,selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"renderer_strategy",plural:!1,selections:[d],storageKey:'renderer_strategy(supported:["CometQuickPromotionMessengerWebCommunitiesBannerRendererStrategy"])'}],storageKey:null}],storageKey:null}],storageKey:'eligible_promotions(surface_nux_id:10713,trigger:"MESSAGING_JEWEL_COMMUNITIES_TAB_OPEN")'}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"CometMessagingJewelCommunitiesQPBannerContainerQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:a,concreteType:"ViewerEligibleQuickPromotionsConnection",kind:"LinkedField",name:"eligible_promotions",plural:!1,selections:[{alias:null,args:null,concreteType:"QuickPromotion",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"CometQuickPromotionSections",kind:"LinkedField",name:"comet_qp_sections",plural:!1,selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"renderer_strategy",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},d],storageKey:'renderer_strategy(supported:["CometQuickPromotionMessengerWebCommunitiesBannerRendererStrategy"])'}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:'eligible_promotions(surface_nux_id:10713,trigger:"MESSAGING_JEWEL_COMMUNITIES_TAB_OPEN")'}],storageKey:null}]},params:{id:b("CometMessagingJewelCommunitiesQPBannerContainerQuery_facebookRelayOperation"),metadata:{},name:"CometMessagingJewelCommunitiesQPBannerContainerQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null); __d("CometMessagingJewelDropdownQPBannerContainerQuery.graphql",["CometMessagingJewelDropdownQPBannerContainerQuery_facebookRelayOperation","relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"Literal",name:"surface_nux_id",value:8439},{kind:"Literal",name:"trigger",value:"MESSAGING_JEWEL_OPEN"}],c=[{kind:"Literal",name:"supported",value:["CometQuickPromotionMessengerDesktopDownloadBannerRendererStrategy","CometQuickPromotionMessengerDesktopDownloadBannerInstructorBeforeClassRendererStrategy","CometQuickPromotionMessengerDesktopDownloadBannerInstructorAfterClassRendererStrategy","CometQuickPromotionMessengerDesktopDownloadBannerLearnerBeforeClassRendererStrategy","CometQuickPromotionMessengerDesktopDownloadBannerLearnerAfterClassRendererStrategy","CometQuickPromotionMessengerWebEPDBannerRendererStrategy","CometQuickPromotionMessengerWebPrivacyPolicyNoticeBannerRendererStrategy","CometQuickPromotionArmadilloSecurityAlertsSettingsDefaultOffBannerRendererStrategy"]}],d={kind:"InlineFragment",selections:[{args:null,documentName:"CometMessagingJewelDropdownQPBannerContainerQuery",fragmentName:"CometQuickPromotionMessengerDesktopDownloadBannerRendererStrategy_cometQuickPromotionBaseStrategy",fragmentPropName:"cometQuickPromotionBaseStrategy",kind:"ModuleImport"}],type:"CometQuickPromotionMessengerDesktopDownloadBannerRendererStrategy",abstractKey:null},e={kind:"InlineFragment",selections:[{args:null,documentName:"CometMessagingJewelDropdownQPBannerContainerQuery",fragmentName:"CometQuickPromotionMessengerDesktopDownloadBannerInstructorBeforeClassRendererStrategy_cometQuickPromotionBaseStrategy",fragmentPropName:"cometQuickPromotionBaseStrategy",kind:"ModuleImport"}],type:"CometQuickPromotionMessengerDesktopDownloadBannerInstructorBeforeClassRendererStrategy",abstractKey:null},f={kind:"InlineFragment",selections:[{args:null,documentName:"CometMessagingJewelDropdownQPBannerContainerQuery",fragmentName:"CometQuickPromotionMessengerDesktopDownloadBannerInstructorAfterClassRendererStrategy_cometQuickPromotionBaseStrategy",fragmentPropName:"cometQuickPromotionBaseStrategy",kind:"ModuleImport"}],type:"CometQuickPromotionMessengerDesktopDownloadBannerInstructorAfterClassRendererStrategy",abstractKey:null},g={kind:"InlineFragment",selections:[{args:null,documentName:"CometMessagingJewelDropdownQPBannerContainerQuery",fragmentName:"CometQuickPromotionMessengerDesktopDownloadBannerLearnerBeforeClassRendererStrategy_cometQuickPromotionBaseStrategy",fragmentPropName:"cometQuickPromotionBaseStrategy",kind:"ModuleImport"}],type:"CometQuickPromotionMessengerDesktopDownloadBannerLearnerBeforeClassRendererStrategy",abstractKey:null},h={kind:"InlineFragment",selections:[{args:null,documentName:"CometMessagingJewelDropdownQPBannerContainerQuery",fragmentName:"CometQuickPromotionMessengerDesktopDownloadBannerLearnerAfterClassRendererStrategy_cometQuickPromotionBaseStrategy",fragmentPropName:"cometQuickPromotionBaseStrategy",kind:"ModuleImport"}],type:"CometQuickPromotionMessengerDesktopDownloadBannerLearnerAfterClassRendererStrategy",abstractKey:null},i={kind:"InlineFragment",selections:[{args:null,documentName:"CometMessagingJewelDropdownQPBannerContainerQuery",fragmentName:"CometQuickPromotionMessengerWebEPDBannerRendererStrategy_cometQuickPromotionBaseStrategy",fragmentPropName:"cometQuickPromotionBaseStrategy",kind:"ModuleImport"}],type:"CometQuickPromotionMessengerWebEPDBannerRendererStrategy",abstractKey:null},j={kind:"InlineFragment",selections:[{args:null,documentName:"CometMessagingJewelDropdownQPBannerContainerQuery",fragmentName:"CometQuickPromotionMessengerWebPrivacyPolicyNoticeBannerRendererStrategy_quickPromotionRef",fragmentPropName:"quickPromotionRef",kind:"ModuleImport"}],type:"CometQuickPromotionMessengerWebPrivacyPolicyNoticeBannerRendererStrategy",abstractKey:null},k={kind:"InlineFragment",selections:[{args:null,documentName:"CometMessagingJewelDropdownQPBannerContainerQuery",fragmentName:"CometQuickPromotionArmadilloSecurityAlertsSettingsDefaultOffBannerRendererStrategy_cometQuickPromotionBaseStrategy",fragmentPropName:"cometQuickPromotionBaseStrategy",kind:"ModuleImport"}],type:"CometQuickPromotionArmadilloSecurityAlertsSettingsDefaultOffBannerRendererStrategy",abstractKey:null};return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometMessagingJewelDropdownQPBannerContainerQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:a,concreteType:"ViewerEligibleQuickPromotionsConnection",kind:"LinkedField",name:"eligible_promotions",plural:!1,selections:[{alias:null,args:null,concreteType:"QuickPromotion",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"CometQuickPromotionSections",kind:"LinkedField",name:"comet_qp_sections",plural:!1,selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"renderer_strategy",plural:!1,selections:[d,e,f,g,h,i,j,k],storageKey:'renderer_strategy(supported:["CometQuickPromotionMessengerDesktopDownloadBannerRendererStrategy","CometQuickPromotionMessengerDesktopDownloadBannerInstructorBeforeClassRendererStrategy","CometQuickPromotionMessengerDesktopDownloadBannerInstructorAfterClassRendererStrategy","CometQuickPromotionMessengerDesktopDownloadBannerLearnerBeforeClassRendererStrategy","CometQuickPromotionMessengerDesktopDownloadBannerLearnerAfterClassRendererStrategy","CometQuickPromotionMessengerWebEPDBannerRendererStrategy","CometQuickPromotionMessengerWebPrivacyPolicyNoticeBannerRendererStrategy","CometQuickPromotionArmadilloSecurityAlertsSettingsDefaultOffBannerRendererStrategy"])'}],storageKey:null}],storageKey:null}],storageKey:'eligible_promotions(surface_nux_id:8439,trigger:"MESSAGING_JEWEL_OPEN")'}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"CometMessagingJewelDropdownQPBannerContainerQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:a,concreteType:"ViewerEligibleQuickPromotionsConnection",kind:"LinkedField",name:"eligible_promotions",plural:!1,selections:[{alias:null,args:null,concreteType:"QuickPromotion",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"CometQuickPromotionSections",kind:"LinkedField",name:"comet_qp_sections",plural:!1,selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"renderer_strategy",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},d,e,f,g,h,i,j,k],storageKey:'renderer_strategy(supported:["CometQuickPromotionMessengerDesktopDownloadBannerRendererStrategy","CometQuickPromotionMessengerDesktopDownloadBannerInstructorBeforeClassRendererStrategy","CometQuickPromotionMessengerDesktopDownloadBannerInstructorAfterClassRendererStrategy","CometQuickPromotionMessengerDesktopDownloadBannerLearnerBeforeClassRendererStrategy","CometQuickPromotionMessengerDesktopDownloadBannerLearnerAfterClassRendererStrategy","CometQuickPromotionMessengerWebEPDBannerRendererStrategy","CometQuickPromotionMessengerWebPrivacyPolicyNoticeBannerRendererStrategy","CometQuickPromotionArmadilloSecurityAlertsSettingsDefaultOffBannerRendererStrategy"])'}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:'eligible_promotions(surface_nux_id:8439,trigger:"MESSAGING_JEWEL_OPEN")'}],storageKey:null}]},params:{id:b("CometMessagingJewelDropdownQPBannerContainerQuery_facebookRelayOperation"),metadata:{},name:"CometMessagingJewelDropdownQPBannerContainerQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null); __d("CometMessagingJewelCommunitiesQPBannerContainer.react",["CometMessagingJewelCommunitiesQPBannerContainerQuery.graphql","CometMessagingJewelDropdownQPBannerPlaceholder.react","CometPlaceholder.react","CometQuickPromotionLoggerContext.react","CometRelay","react","useQuickPromotionFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");function a(a){var e=a.messagingEntryPoint,f=a.onClose;a=a.queryRef;a=d("CometRelay").usePreloadedQuery(h!==void 0?h:h=b("CometMessagingJewelCommunitiesQPBannerContainerQuery.graphql"),a);var g=c("useQuickPromotionFalcoEvent")({context_surface_id:10713,context_trigger:"messaging_jewel_communities_tab_open"});a=a==null?void 0:(a=a.viewer)==null?void 0:(a=a.eligible_promotions)==null?void 0:(a=a.nodes)==null?void 0:a.find(function(a){return((a=a.comet_qp_sections)==null?void 0:a.renderer_strategy)!=null});a=a==null?void 0:(a=a.comet_qp_sections)==null?void 0:a.renderer_strategy;return a==null?null:i.jsx(c("CometPlaceholder.react"),{fallback:i.jsx(c("CometMessagingJewelDropdownQPBannerPlaceholder.react"),{}),children:i.jsx(c("CometQuickPromotionLoggerContext.react").Provider,{value:g,children:i.jsx(d("CometRelay").MatchContainer,{match:a,props:{messagingEntryPoint:e,onClose:f}})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometMessagingJewelDropdownQPBannerContainer.react",["CometMessagingJewelDropdownQPBannerContainerQuery.graphql","CometMessagingJewelDropdownQPBannerPlaceholder.react","CometPlaceholder.react","CometQuickPromotionLoggerContext.react","CometRelay","react","useQuickPromotionFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");function a(a){a=a.queryRef;a=d("CometRelay").usePreloadedQuery(h!==void 0?h:h=b("CometMessagingJewelDropdownQPBannerContainerQuery.graphql"),a);var e=c("useQuickPromotionFalcoEvent")({context_surface_id:8439,context_trigger:"messaging_jewel_open"});a=a==null?void 0:(a=a.viewer)==null?void 0:(a=a.eligible_promotions)==null?void 0:(a=a.nodes)==null?void 0:a.find(function(a){return((a=a.comet_qp_sections)==null?void 0:a.renderer_strategy)!=null});a=a==null?void 0:(a=a.comet_qp_sections)==null?void 0:a.renderer_strategy;return a==null?null:i.jsx(c("CometPlaceholder.react"),{fallback:i.jsx(c("CometMessagingJewelDropdownQPBannerPlaceholder.react"),{}),children:i.jsx(c("CometQuickPromotionLoggerContext.react").Provider,{value:e,children:i.jsx(d("CometRelay").MatchContainer,{match:a})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWInboxContextSwitcherGlimmer.react",["BaseGlimmer.react","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={tabPlaceholder:{borderTopStartRadius:"x1tlxs6b",borderTopEndRadius:"x1g8br2z",borderBottomEndRadius:"x1gn5b1j",borderBottomStartRadius:"x230xth",display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",justifyContent:"xl56j7k",$$css:!0},tabPlaceholderRoot:{display:"x78zum5",minHeight:"xu0aao5",paddingStart:"x1swvt13",paddingEnd:"x1pi30zi",paddingTop:"x1y1aw1k",paddingBottom:"xwib8y2",width:"x3bhodz",$$css:!0}};function a(a){a=a.xstyle;a=a===void 0?i.tabPlaceholderRoot:a;return h.jsx("div",{className:c("stylex")(a),children:h.jsx(c("BaseGlimmer.react"),{index:0,xstyle:i.tabPlaceholder})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWInboxQuickPromotionWrapper.react",["CometErrorBoundary.react","CometPlaceholder.react","cr:108","deferredLoadComponent","react","requireDeferredForDisplay"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=c("deferredLoadComponent")(c("requireDeferredForDisplay")("MAWUserVisibleErrorsNuxWrapper.react").__setRef("MWInboxQuickPromotionWrapper.react")),j=(e=b("cr:108"))!=null?e:h.Fragment;function a(a){var b=a.children;a=a.onError;return h.jsx(c("CometErrorBoundary.react"),{onError:a,children:h.jsx(c("CometPlaceholder.react"),{fallback:null,children:h.jsx(i,{children:h.jsx(j,{children:b})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWJewelDropdownHeaderOpenInAppButton.react",["fbt","ix","Actor","CometTooltip.react","ImageIconSource","MessengerDesktopDeeplinkEventFalcoEvent","TetraCircleButton.react","XMessengerDotComDesktopLaunchAppInterstitialControllerRouteBuilder","react","useCurrentDisplayMode","uuid"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");b=d("react");var k=b.useEffect,l=b.useRef;function a(a){var b=d("Actor").useActor();b=b[0];var e=l(!1),f=l(c("uuid")()).current,g=c("useCurrentDisplayMode")();g=g==="dark";k(function(){e.current||(e.current=!0,c("MessengerDesktopDeeplinkEventFalcoEvent").log(function(){return{event:"open_in_app_button_impression",eventLocation:"browser",eventType:"thread",funnelSessionId:f,mobile_app_source:"unknown"}}))});var m=h._("__JHASH___3DTfSod6m3__JHASH__");b=(b=c("XMessengerDotComDesktopLaunchAppInterstitialControllerRouteBuilder").buildUri({funnel_session_id:f,id:b,origin:"FB"}).setDomain("messenger.com"))==null?void 0:(b=b.setProtocol("https"))==null?void 0:b.toString();g=g?new(c("ImageIconSource"))(i("2009370"),32,32):new(c("ImageIconSource"))(i("1996477"),32,32);return j.jsx(c("CometTooltip.react"),{align:"end",tooltip:m,children:j.jsx(c("TetraCircleButton.react"),{color:"secondary",icon:g,label:m,linkProps:{url:b},onPress:function(){c("MessengerDesktopDeeplinkEventFalcoEvent").log(function(){return{event:"open_in_app_button_click",eventLocation:"browser",eventType:"thread",funnelSessionId:f,mobile_app_source:"unknown"}}),a.onClose()},size:32,testid:void 0,type:"deemphasized"})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWJewelDropdownHeaderOpenInAppLocalhostWithFallbackButton.react",["fbt","ix","CometTooltip.react","ImageIconSource","MessengerDesktopDeepLinkUtils","MessengerDesktopDeeplinkEventFalcoEvent","MessengerDesktopLocalServerRequest","ODS","Promise","TetraCircleButton.react","goUriOnNewWindow","promiseDone","react","useCurrentDisplayMode","uuid"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");e=d("react");var k=e.useEffect,l=e.useRef;function a(a){var e=l(!1),f=l(c("uuid")()).current,g=c("useCurrentDisplayMode")();g=g==="dark";k(function(){e.current||(e.current=!0,c("MessengerDesktopDeeplinkEventFalcoEvent").log(function(){return{event:"open_in_app_button_impression",eventLocation:"browser",eventType:"thread",funnelSessionId:f,mobile_app_source:"unknown"}}))});var m=h._("__JHASH___3DTfSod6m3__JHASH__");g=g?new(c("ImageIconSource"))(i("2009370"),32,32):new(c("ImageIconSource"))(i("1996477"),32,32);var n=function(){c("goUriOnNewWindow")(a.fallbackUrl)};return j.jsx(c("CometTooltip.react"),{align:"end",tooltip:m,children:j.jsx(c("TetraCircleButton.react"),{color:"secondary",icon:g,label:m,onPress:function(){c("MessengerDesktopDeeplinkEventFalcoEvent").log(function(){return{event:"open_in_app_button_click",eventLocation:"browser",eventType:"thread",funnelSessionId:f,mobile_app_source:"unknown"}}),c("promiseDone")(b("Promise").all([new(c("MessengerDesktopLocalServerRequest"))("/thread?funnel_id="+f+"&data=empty",d("MessengerDesktopDeepLinkUtils").PORT).setOnLoadEndHandler(function(){}).setErrorHandler(function(a){d("ODS").bumpEntityKey(3303,"dapp_non_calling_entrypoints","request_failed_with_error_"+a),n()}).setTimeoutHandler(function(){d("ODS").bumpEntityKey(3303,"dapp_non_calling_entrypoints","request_timed_out"),n()}).send()])),a.onClose()},size:32,testid:void 0,type:"deemphasized"})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWJewelSettingsButtonBadge",["cr:2753","cr:2760","react"],(function(a,b,c,d,e,f,g){"use strict";d("react");function a(){var a;a=(a=b("cr:2753")==null?void 0:b("cr:2753")())!=null?a:{};var c=a.badge;c=c===void 0?null:c;var d=a.onButtonPress;a=(a=b("cr:2760")==null?void 0:b("cr:2760")())!=null?a:{};a=a.badge;a=a===void 0?null:a;return{badge:(c=c)!=null?c:a,onButtonPress:function(){d==null?void 0:d()}}}g["default"]=a}),98); __d("MWJewelDropdownHeader.react",["fbt","ix","CometEntryPointPopoverTrigger.react","CometGlobalPanelLayoutContext","CometGlobalPanelPopoverActiveContext","CometHomeChatSettings.entrypoint","CometProgressRingIndeterminate.react","CometTooltip.react","CometTopNavListDropdown.react","MWChatOpenNewTab.bs","MWJewelDropdownHeaderOpenInAppButton.react","MWJewelDropdownHeaderOpenInAppLocalhostWithFallbackButton.react","MWJewelDropdownHeaderSeeAllButton.react","MWJewelPopoverDialogContext.react","MWPSearchSystem.bs","MessengerDesktopDeepLinkUtils","RoomsLinkCreationSupported","TetraCircleButton.react","XCometMessengerControllerRouteBuilder","emptyFunction","fbicon","react","useCometPreloader","useMWChatNewVideoChat","useMWJewelSettingsButtonBadge","useMWNewChatTabContainerPreload","useReStore","useShouldShowMessagingEntrypointInCometRoot"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");b=d("react");var k=b.useCallback,l=b.useContext;function m(a){var b=a.onOpenArchivedChats,e=a.onOpenMessageRequests;a=a.onOpenRestrictedAccountsList;var f=h._("__JHASH__wPDFO2UUg3d__JHASH__"),g=l(c("MWJewelPopoverDialogContext.react")),k=g.setIsOpenForDialog;g=c("useMWJewelSettingsButtonBadge")();var m=g.badge,n=g.onButtonPress;return j.jsx(c("CometEntryPointPopoverTrigger.react"),{align:"end",entryPointParams:{},otherProps:{onOpenArchivedChats:(g=b)!=null?g:void 0,onOpenMessageRequests:(b=e)!=null?b:void 0,onOpenRestrictedAccountsList:(g=a)!=null?g:void 0},popoverEntryPoint:c("CometHomeChatSettings.entrypoint"),position:"below",preloadTrigger:"button",children:function(a,b,e,g,h,l){return j.jsxs(c("CometTooltip.react"),{align:"end",tooltip:f,children:[m,j.jsx(c("TetraCircleButton.react"),{color:"secondary",icon:d("fbicon")._(i("484387"),20),label:f,onHoverIn:g,onHoverOut:h,onPress:function(){k(!1),b(),n()},onPressIn:l,ref:a,size:32,testid:void 0,type:"deemphasized"})]})}})}m.displayName=m.name+" [from "+f.id+"]";function a(a){var b=c("useShouldShowMessagingEntrypointInCometRoot")("CHAT"),e=d("MWChatOpenNewTab.bs").useHook("jewelNewMessage"),f=c("useMWChatNewVideoChat")(a.onClose),g=f[0];f=f[1];var n=c("XCometMessengerControllerRouteBuilder").buildURL({thread_key:"new"}),o=function(){b&&(e(!1),a.onClose())},p=c("useMWNewChatTabContainerPreload")(),q=p[0],r=p[1],s=c("useReStore")();p=k(function(){return d("MWPSearchSystem.bs").makeAll(s)},[s]);var t=c("useCometPreloader")("button_aggressive",c("emptyFunction"),p),u=t[0],v=t[1];t=h._("__JHASH__JTlMNMvbiI7__JHASH__");var w=h._("__JHASH__6-yEucnbb8q__JHASH__"),x=l(c("CometGlobalPanelLayoutContext")),y=l(c("CometGlobalPanelPopoverActiveContext")),z=y.setIsPopoverActive;y=d("MessengerDesktopDeepLinkUtils").useMessengerDesktopWindowsDeeplinkSwitcher;y=y();var A=d("MessengerDesktopDeepLinkUtils").isMessengerDesktopDeeplinkEnabled();y?y=j.jsx(c("MWJewelDropdownHeaderOpenInAppLocalhostWithFallbackButton.react"),{fallbackUrl:a.inboxUrl,onClose:a.onClose}):A?y=j.jsx(c("MWJewelDropdownHeaderOpenInAppButton.react"),{onClose:a.onClose}):y=j.jsx(c("MWJewelDropdownHeaderSeeAllButton.react"),{onClose:x?function(){return z(!1)}:a.onClose,testid:void 0,url:a.inboxUrl});return j.jsx(c("CometTopNavListDropdown.react").Title,{actions:[j.jsx(m,{onOpenArchivedChats:a.onOpenArchivedChats,onOpenMessageRequests:a.onOpenMessageRequests,onOpenRestrictedAccountsList:a.onOpenRestrictedAccountsList}),y,d("RoomsLinkCreationSupported").isLinkCreationSupported()?j.jsx(c("CometTooltip.react"),{align:"end",tooltip:w,children:f?j.jsx("div",{className:"x6s0dn4 x78zum5 x10w6t97",children:j.jsx(c("CometProgressRingIndeterminate.react"),{color:"disabled",size:20})}):j.jsx(c("TetraCircleButton.react"),{color:"secondary",icon:d("fbicon")._(i("1388374"),20),label:w,onPress:function(){return g("fb_messenger_jewel")},size:32,type:"deemphasized"})}):null,j.jsx(c("CometTooltip.react"),{align:"end",tooltip:t,children:j.jsx(c("TetraCircleButton.react"),{color:"secondary",icon:d("fbicon")._(i("507170"),16),label:t,linkProps:{preventLocalNavigation:b,url:n},onFocusIn:p,onHoverIn:function(a){q(a),u(a)},onHoverOut:function(){r(),v()},onPress:o,size:32,type:"deemphasized"})})].filter(Boolean),onReturn:a.onReturn,title:a.title})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWJewelMessengerAppLink.react",["fbt","Actor","CometLink.react","MessengerDesktopDeeplinkEventFalcoEvent","TetraText.react","XMessengerDotComDesktopLaunchAppInterstitialControllerRouteBuilder","react","uuid"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useEffect,k=b.useRef;function a(a){var b=a.onClick,e=k(!1),f=k(c("uuid")()).current;a=d("Actor").useActor();a=a[0];j(function(){e.current||(e.current=!0,c("MessengerDesktopDeeplinkEventFalcoEvent").log(function(){return{event:"open_messenger_app_link_impression",eventLocation:"browser",eventType:"thread",funnelSessionId:f,mobile_app_source:"unknown"}}))});a=(a=c("XMessengerDotComDesktopLaunchAppInterstitialControllerRouteBuilder").buildUri({funnel_session_id:f,id:a,origin:"FB"}).setDomain("messenger.com"))==null?void 0:(a=a.setProtocol("https"))==null?void 0:a.toString();return i.jsx("div",{className:"xlsxne2 x1l90r2v x1i80of2",children:i.jsx(c("TetraText.react"),{align:"center",color:"blueLink",type:"bodyLink3",children:i.jsx(c("CometLink.react"),{href:a,onClick:function(){c("MessengerDesktopDeeplinkEventFalcoEvent").log(function(){return{event:"open_messenger_app_link_click",eventLocation:"browser",eventType:"thread",funnelSessionId:f,mobile_app_source:"unknown"}}),b()},children:h._("__JHASH__0SfI3JPHppz__JHASH__")})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWJewelMessengerAppLinkLocalhostWithFallback.react",["fbt","CometLink.react","MessengerDesktopDeepLinkUtils","MessengerDesktopDeeplinkEventFalcoEvent","MessengerDesktopLocalServerRequest","ODS","Promise","TetraText.react","goUriOnNewWindow","promiseDone","react","uuid"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");e=d("react");var j=e.useEffect,k=e.useRef;function a(a){var e=a.fallbackUrl,f=a.onClick,g=k(!1),l=k(c("uuid")()).current;j(function(){g.current||(g.current=!0,c("MessengerDesktopDeeplinkEventFalcoEvent").log(function(){return{event:"open_messenger_app_link_impression",eventLocation:"browser",eventType:"thread",funnelSessionId:l,mobile_app_source:"unknown"}}))});var m=function(){c("goUriOnNewWindow")(e)};return i.jsx("div",{className:"xlsxne2 x1l90r2v x1i80of2",children:i.jsx(c("TetraText.react"),{align:"center",color:"blueLink",type:"bodyLink3",children:i.jsx(c("CometLink.react"),{onClick:function(){c("MessengerDesktopDeeplinkEventFalcoEvent").log(function(){return{event:"open_messenger_app_link_click",eventLocation:"browser",eventType:"thread",funnelSessionId:l,mobile_app_source:"unknown"}}),c("promiseDone")(b("Promise").all([new(c("MessengerDesktopLocalServerRequest"))("/thread?funnel_id="+l+"&data=empty",d("MessengerDesktopDeepLinkUtils").PORT).setOnLoadEndHandler(function(){}).setErrorHandler(function(a){d("ODS").bumpEntityKey(3303,"dapp_non_calling_entrypoints","request_failed_with_error_"+a),m()}).setTimeoutHandler(function(){d("ODS").bumpEntityKey(3303,"dapp_non_calling_entrypoints","request_timed_out"),m()}).send()])),f()},children:h._("__JHASH__0SfI3JPHppz__JHASH__")})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWJewelMessengerAppLinkV2.react",["Actor","CometLink.react","MWJewelMessengerLink.react","MessengerDesktopDeepLinkUtils","MessengerDesktopDeeplinkEventFalcoEvent","TetraText.react","react","uuid"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useEffect,j=b.useRef;function a(a){var b=a.onClick;a=a.url;return d("MessengerDesktopDeepLinkUtils").isMessengerDesktopDeeplinkEnabled()?h.jsx(k,{onClick:b}):h.jsx(c("MWJewelMessengerLink.react"),{onClick:b,url:a})}a.displayName=a.name+" [from "+f.id+"]";function k(a){var b=a.onClick,e=j(!1),f=j(c("uuid")()).current;a=d("Actor").useActor();a=a[0];i(function(){e.current||(e.current=!0,c("MessengerDesktopDeeplinkEventFalcoEvent").log(function(){return{event:"open_messenger_app_link_impression",eventLocation:"browser",eventType:"thread",funnelSessionId:f,mobile_app_source:"unknown"}}))});var g=d("MessengerDesktopDeepLinkUtils").getDeeplinkButtonLabel();a=d("MessengerDesktopDeepLinkUtils").getDeeplinkButtonURI({funnel_session_id:f,id:a,origin:"FB"});return h.jsx("div",{className:"xlsxne2 x1l90r2v x1i80of2",children:h.jsx(c("TetraText.react"),{align:"center",color:"blueLink",type:"bodyLink3",children:h.jsx(c("CometLink.react"),{href:a,onClick:function(){c("MessengerDesktopDeeplinkEventFalcoEvent").log(function(){return{event:"open_messenger_app_link_click",eventLocation:"browser",eventType:"thread",funnelSessionId:f,mobile_app_source:"unknown"}}),b()},children:g})})})}k.displayName=k.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWJewelNestedFolderThreadListHeader.react",["CometTopNavListDropdown.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){return h.jsx(c("CometTopNavListDropdown.react").Title,{onReturn:a.onReturn,title:a.title})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWJewelThreadSnippet.react",["CurrentEnvironment","MDSText.react","TetraText.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.isUnread;a=a.text;return b?c("CurrentEnvironment").facebookdotcom?h.jsx(c("TetraText.react"),{color:"highlight",numberOfLines:1,type:"bodyLink4",children:a}):c("MDSText.react")!=null?h.jsx(c("MDSText.react"),{color:"primary",numberOfLines:1,type:"entityHeaderMeta3",children:a}):h.jsx(c("TetraText.react"),{color:"primary",numberOfLines:1,type:"bodyLink4",children:a}):h.jsx(c("TetraText.react"),{color:"secondary",numberOfLines:1,type:"body4",children:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWJewelMessageRequestsThread.react",["fbt","ix","I64","Locale","LsSystemFolderInterop.bs","MWJewelThreadSnippet.react","ReQL","ReQLSuspense","TetraIcon.react","TetraListCell.react","fbicon","react","useReStore"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=function(){var a=c("useReStore")();return d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableDescending(a.table("threads").index("parentThreadKeyLastActivityTimestampMs")).getKeyRange(d("LsSystemFolderInterop.bs").pending).filter(function(a){return d("I64").gt(a.lastActivityTimestampMs,a.lastReadWatermarkTimestampMs)}).map(function(b){b=b.snippetSenderContactId;if(b!=null){b=d("ReQLSuspense").first(d("ReQL").fromTableAscending(a.table("contacts")).getKeyRange(b));return b?b.name:void 0}})},[a])};function a(a){var b=a.onOpenMessageRequests;a=a.unreadRequestsCount;var e=h._("__JHASH__SQMsXxQB2ND__JHASH__",[h._plural(a)]),f=h._("__JHASH__jhOYdnXiHj7__JHASH__",[h._enum(a===1?"someone":"people",{someone:"someone",people:"people"})]),g=k();g!=null&&(a===1?f=h._("__JHASH__Lhb1JePxKuz__JHASH__",[h._param("name",g)]):f=h._("__JHASH__CG_5_9rh3Rj__JHASH__",[h._param("name",g),h._param("count",a-1)]));return j.jsx(c("TetraListCell.react"),{addOnPrimary:{icon:d("fbicon")._(i("542884"),24),size:56,type:"contained-icon"},addOnSecondary:{addOn:j.jsx(c("TetraIcon.react"),{color:"secondary",icon:d("Locale").isRTL()?d("fbicon")._(i("492485"),16):d("fbicon")._(i("492533"),16)}),type:"body"},body:j.jsx(c("MWJewelThreadSnippet.react"),{isUnread:!0,text:f}),headline:e,level:4,onPress:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWLSLoadThreadFolderIfNotPresent.bs",["CancellablePromise.bs","CancellationToken.bs","MWLSJewelLoadMoreThreads.bs","Promise","ReQL.bs","bs_caml","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var e=c("useReStore")(),f=d("MWLSJewelLoadMoreThreads.bs").useHook(a);h.useEffect(function(){var g=d("CancellationToken.bs").make(),h=d("CancellablePromise.bs").ignoreFailed(void 0,d("CancellablePromise.bs").then_(g,function(a){a!==void 0||f();return b("Promise").resolve()},d("ReQL.bs").first(d("ReQL.bs").filter(d("ReQL.bs").fromTableAscending(e.table("threads_ranges_v2__generated")),function(b){return c("bs_caml").i64_eq(b.parentThreadKey,a)}))));c("promiseDone")(h);return g.cancel},[f,e,JSON.stringify(a)])}g.useHook=a}),98); __d("MWLSJewelMessageRequestsThread.bs",["LsSystemFolder.bs","MWJewelMessageRequestsThread.react","MWLSLoadThreadFolderIfNotPresent.bs","MWPActor.bs","ReQL.bs","ReQLSubscription.bs","bs_caml","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b={make:c("MWJewelMessageRequestsThread.react")};function i(a){var b=c("useReStore")();a=d("MWPActor.bs").useActor();a=h.useMemo(function(){return d("ReQL.bs").filter(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromIndexDescending(b.table("threads").index("parentThreadKeyLastActivityTimestampMs")),{hd:d("LsSystemFolder.bs").pending,tl:0}),function(a){return c("bs_caml").i64_gt(a.lastActivityTimestampMs,a.lastReadWatermarkTimestampMs)})},[b,JSON.stringify(a)]);return d("ReQLSubscription.bs").useArray(a).length}function a(a){d("MWLSLoadThreadFolderIfNotPresent.bs").useHook(d("LsSystemFolder.bs").pending);var b=i();if(a!==void 0&&b>0)return h.jsx(c("MWJewelMessageRequestsThread.react"),{onOpenMessageRequests:a,unreadRequestsCount:b});else return null}g.RequestsThread=b;g.useHook=a}),98); __d("LSThreadRangeFilter.bs",["bs_caml_int64"],(function(a,b,c,d,e,f){"use strict";a=b("bs_caml_int64").zero;c=b("bs_caml_int64").one;d=[0,2];e=[0,3];b=[0,4];var g=[0,5],h=[0,6],i=[0,7],j=[0,8];f.none=a;f.unreadOnly=c;f.groupsOnly=d;f.igdProPrimary=e;f.igdProGeneral=b;f.pinned=g;f.readButUnresponded=h;f.threadChatLabel=i;f.businessInboxFollowUp=j}),null); __d("LSThreadRangeFilter.re",["LSThreadRangeFilter.bs"],(function(a,b,c,d,e,f){c=(a=b("LSThreadRangeFilter.bs")).none;f.none=c;d=a.unreadOnly;f.unreadOnly=d;e=a.groupsOnly;f.groupsOnly=e;b=a.igdProPrimary;f.igdProPrimary=b;c=a.igdProGeneral;f.igdProGeneral=c;d=a.pinned;f.pinned=d;e=a.readButUnresponded;f.readButUnresponded=e;b=a.threadChatLabel;f.threadChatLabel=b;c=a.businessInboxFollowUp;f.businessInboxFollowUp=c}),null); __d("MWThreadListFocusableTable.react",["FocusTable.react","focusScopeQueries","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");a=d("FocusTable.react").createFocusTable(d("focusScopeQueries").tabbableScopeQuery);var i=a[0];b=a[1];c=a[2];e=function(a){return h.jsx(i,{allowModifiers:!0,tabScopeQuery:d("focusScopeQueries").tabbableScopeQuery,wrapX:!0,children:a.children})};g.MWThreadListFocusableTableRow=b;g.MWThreadListFocusableTableCell=c;g.MWThreadListFocusableTableScopeQuery=d("focusScopeQueries").tabbableScopeQuery;g.MWThreadListFocusableTable=e}),98); __d("MWPBaseThreadList.react",["I64","LS.re","LSFilteredThreadsRangesQuery","LSThreadRangeFilter.re","LSThreadsRangesQuery","MWIsXacGroupThread.bs","MWPFolderFocusedManager.bs","MWPMarkSeen.bs","MWThreadListFocusableTable.react","MWThreadListSupportedThreadTypes.bs","MWXacGating.bs","ReQL","ReQLPaginatedList.react","ReQLSuspense","UserActivity","gkx","justknobx","promiseDone","react","regeneratorRuntime","useReStore","useSimpleImpression","useVisibilityObserver"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");e=d("react");var i=e.useCallback,j=e.useEffect,k=e.useMemo,l=e.useRef,m={container:{display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},emptyContentContainer:{alignItems:"x6s0dn4",display:"x78zum5",flexGrow:"x1iyjqo2",justifyContent:"xl56j7k",$$css:!0},list:{display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0}};function n(a,e,f){c("promiseDone")(a.runInTransaction(function(a){var g;return b("regeneratorRuntime").async(function(h){while(1)switch(h.prev=h.next){case 0:h.next=2;return b("regeneratorRuntime").awrap(a.table("threads_ranges_v2__generated").get(e));case 2:g=h.sent;if(!(g==null||g.isLoadingBefore)){h.next=5;break}return h.abrupt("return");case 5:f&&f();return h.abrupt("return",c("LSThreadsRangesQuery")(g.parentThreadKey,!0,!1,g.minThreadKey,g.maxThreadKey,g.maxLastActivityTimestampMs,g.minLastActivityTimestampMs,d("I64").zero,c("LS.re").make(a)));case 7:case"end":return h.stop()}},null,this)},"readwrite"))}function o(a,e,f,g,h){f===void 0&&(f=d("LSThreadRangeFilter.re").none),g===void 0&&(g=d("LSThreadRangeFilter.re").none),c("promiseDone")(a.runInTransaction(function(a){var d;return b("regeneratorRuntime").async(function(i){while(1)switch(i.prev=i.next){case 0:i.next=2;return b("regeneratorRuntime").awrap(a.table("filtered_threads_ranges_v3__generated").get(e));case 2:d=i.sent;if(!(d==null||d.isLoadingBefore)){i.next=5;break}return i.abrupt("return");case 5:h&&h();return i.abrupt("return",c("LSFilteredThreadsRangesQuery")(d.parentThreadKey,f,!0,!1,d.minThreadKey,d.maxThreadKey,d.maxLastActivityTimestampMs,d.minLastActivityTimestampMs,void 0,void 0,g,void 0,c("LS.re").make(a)));case 7:case"end":return i.stop()}},null,this)},"readwrite"))}function p(a,b,c,e,f){c===void 0&&(c=d("LSThreadRangeFilter.re").none);e===void 0&&(e=d("LSThreadRangeFilter.re").none);if(b==null)return;if(!b.threadRangeFilter){var g=d("ReQL").key(b.parentThreadKey,b.minThreadKey,b.minLastActivityTimestampMs);n(a,g,f)}else{g=d("ReQL").key(b.parentThreadKey,b.minThreadKey,b.minLastActivityTimestampMs,b.threadRangeFilter,b.folderName,b.secondaryThreadRangeFilter,b.threadRangeFilterValue);o(a,g,c,e,f)}}function q(a,b,e,f,g){c("promiseDone")(a.runInTransaction(function(a){g==null?void 0:g();if(e==null)return c("LSThreadsRangesQuery")(b,!0,!1,d("I64").max_int,d("I64").max_int,d("I64").max_int,d("I64").max_int,d("I64").zero,c("LS.re").make(a));else return c("LSFilteredThreadsRangesQuery")(b,e,!0,!1,d("I64").max_int,d("I64").max_int,d("I64").max_int,d("I64").max_int,void 0,void 0,f,void 0,c("LS.re").make(a))},"readwrite"))}function a(a){var b=a.afterContent,e=a.beforeContent,f=a.customThreadFilter_DO_NOT_USE,g=a.emptyContent,n=a.filter,o=a.gridLabel,r=a.loadMoreThreads,s=r===void 0?p:r;r=a.loadMoreThreadsForEmptyRange;var t=r===void 0?q:r,u=a.onLoadMoreThreads;r=a.onThreadsLoaded;var v=a.parentThreadKey,w=a.renderItem,x=a.renderLoadingAnimation,y=a.scrollAreaElementRef,z=a.secondaryFilter,A=a.setIsEmptyInbox,B=c("useReStore")(),C=d("ReQLSuspense").useFirst(function(){if(n==null)return d("ReQL").fromTableDescending(B.table("threads_ranges_v2__generated")).getKeyRange(v);else return d("ReQL").fromTableDescending(B.table("filtered_threads_ranges_v3__generated")).getKeyRange(v).filter(function(a){return d("I64").equal(a.threadRangeFilter,n)&&(!z||d("I64").equal(a.secondaryThreadRangeFilter,z))})},[B,v,n,z]),D=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(B.table("pinned_threads").index("pinnedTimestamp"))},[B]);a=c("justknobx")._("568");C!=null&&!C.isLoadingBefore&&(r&&r());var E=C!=null?d("I64").equal(C.minLastActivityTimestampMs,d("I64").zero)||d("I64").equal(C.minLastActivityTimestampMs,d("I64").one)||(a?d("I64").equal(C.minLastActivityTimestampMs,d("I64").max_int):!1)?null:C.minLastActivityTimestampMs:null,F=C!=null?d("I64").equal(C.maxLastActivityTimestampMs,d("I64").zero)||d("I64").equal(C.maxLastActivityTimestampMs,d("I64").one)?null:C.maxLastActivityTimestampMs:null,G=k(function(){return{gte:E==null?d("ReQL").key(v):d("ReQL").key(v,E),lte:F==null?d("ReQL").key(v):d("ReQL").key(v,F)}},[F,E,JSON.stringify(v)]),H=k(function(){var a=B.table("threads").index("parentThreadKeyLastActivityTimestampMs");function b(a){return a.filter(function(a){return d("MWThreadListSupportedThreadTypes.bs").supportedThreadTypes.findIndex(function(b){return d("I64").equal(a.threadType,b)})!==-1&&(!c("gkx")("2445")||D.findIndex(function(b){return d("I64").equal(a.threadKey,b.threadKey)})===-1)&&(d("MWXacGating.bs").isGroupsEnabled()||!d("MWIsXacGroupThread.bs").check(a))&&(!f||f(a))})}var e=b(d("ReQL").fromTableAscending(a)),g=b(d("ReQL").fromTableDescending(a));return{entries:function(a,b,c){return(b==="asc"?e:g).iterator(a,c)},keyLength:e.keyLength,subscribe:function(a,b){var c=e.subscribe(function(b,c,d){return a(b,c,d)},b),d=g.subscribe(function(b,c,d){return a(b,c,d)},b);return function(){c(),d()}}}},[B,D,f]),I=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableDescending(H).bounds(G)},[G,H])==null;j(function(){A&&A(I)},[I,A]);j(function(){C==null&&t(B,v,n,z,u)},[JSON.stringify(v),C,B,n,z,u]);var J=l(!1);r=c("useVisibilityObserver")({onHidden:function(){J.current=!1},onVisible:function(){J.current=!0}});var K=d("MWPMarkSeen.bs").useHook(v);d("MWPFolderFocusedManager.bs").useWatchFocusChanges(K,J);c("useSimpleImpression")(K);j(function(){if(c("gkx")("6551"))return function(){};else return d("ReQL").fromTableDescending(B.table("threads").index("parentThreadKeyLastActivityTimestampMs")).getKeyRange(v).take(1).subscribe(function(){c("UserActivity").isOnTab()&&J.current===!0&&K()})},[B,JSON.stringify(v),K]);a=i(function(){s(B,C,n,z,u)},[B,s,C,n,z,u]);return C==null?x!=null?x():null:h.jsx("div",{"aria-label":o,className:"x78zum5 xdt5ytf x1iyjqo2 x6ikm8r x10wlt62","data-testid":void 0,ref:r,role:"grid",children:h.jsx(d("MWThreadListFocusableTable.react").MWThreadListFocusableTable,{children:h.jsx(c("ReQLPaginatedList.react"),{bounds:G,direction:"desc",hasReachedBottom:!C.hasMoreBefore,hasReachedTop:!C.hasMoreAfter,onReachingBottom:a,renderEmptyContent:function(){return I&&!C.isLoadingAfter&&!C.isLoadingBefore?h.jsx("div",{className:"x6s0dn4 x78zum5 x1iyjqo2 xl56j7k",children:g}):null},renderFooter:function(){return b},renderHeader:function(){return e},renderItem:function(a){return h.jsx(h.Fragment,{children:w(a)},JSON.stringify(a.threadKey))},renderLoadingAnimation:x,scrollAreaElementRef:y,table:H,xstyle:m.list})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("FBGroupChatInviteState.bs",["bs_caml_int64"],(function(a,b,c,d,e,f){"use strict";a=b("bs_caml_int64").one;c=[0,2];d=[0,3];e=[0,4];b=[0,5];var g=[0,6];f.accepted=a;f.active=c;f.declinedByReceiver=d;f.ignoredByReceiver=e;f.deletedBySender=b;f.discarded=g}),null); __d("MAWGroupInvitesForThread.bs",["LSMessagingThreadTypeUtil.bs","LSThreadBitOffset.bs","LSThreadCapabilityBitOffset.bs","ReQL.bs","ReQLSubscription.bs","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=c("useReStore")();return d("ReQLSubscription.bs").useArray(h.useMemo(function(){return d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableDescending(b.table("group_invites")),{hd:a.threadKey,tl:0})},[b,JSON.stringify(a.threadKey)]))}function b(a){var b=d("LSMessagingThreadTypeUtil.bs").isSecure(a.threadType),c=d("LSMessagingThreadTypeUtil.bs").isGroup(a.threadType);a=d("LSThreadBitOffset.bs").has(d("LSThreadCapabilityBitOffset.bs").messageRequestGroupInvite,a);if(b&&c)return a;else return!1}e=a;f=b;g.useValue=e;g.isGroupInviteThread=f}),98); __d("MWPThreadListItemInviteAddOn.react",["fbt","MDSCircleButton.react","MDSRow.react","MDSRowItem.react","MWPBumpEntityKey.re","MessengerCheckmark.svg.react","MessengerCross.svg.react","SVGIcon","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=h._("__JHASH__ThY36iiMiSm__JHASH__"),k=h._("__JHASH__IQ1-ytNyqLB__JHASH__");a=function(a){var b=a.onAccept,e=a.onDecline;return i.jsxs(c("MDSRow.react"),{paddingHorizontal:0,paddingVertical:0,verticalAlign:"center",children:[i.jsx(c("MDSRowItem.react"),{children:i.jsx(c("MDSCircleButton.react"),{icon:d("SVGIcon").svgIcon(c("MessengerCheckmark.svg.react")),label:j,onPress:function(a){d("MWPBumpEntityKey.re").bumpEntityKeyWithAppId("mw.sidebar","thread_invite.accept"),b()},size:32})}),i.jsx(c("MDSRowItem.react"),{children:i.jsx(c("MDSCircleButton.react"),{icon:d("SVGIcon").svgIcon(c("MessengerCross.svg.react")),label:k,onPress:function(a){d("MWPBumpEntityKey.re").bumpEntityKeyWithAppId("mw.sidebar","thread_invite.decline"),e()},size:32})})]})};b=a;g["default"]=b}),98); __d("MDSPushPinSvgIcon.react",["MDSSvgIcon.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){return h.jsx(c("MDSSvgIcon.react"),babelHelpers["extends"]({},a,{children:h.jsx("path",{clipRule:"evenodd",d:"M21.39 21.997a.5.5 0 0 0-.485.38l-1.663 6.65c-.322 1.292-2.162 1.291-2.484 0l-1.663-6.65a.5.5 0 0 0-.485-.38h-4.442c-.95 0-1.478-1.064-.972-1.816.419-.62 1.533-2.029 3.589-3.04a.982.982 0 0 0 .536-.811c.099-1.284.334-3.339.435-4.661a.988.988 0 0 0-.465-.918 7.136 7.136 0 0 1-2.075-1.914C10.674 8.07 11.212 7 12.163 7h11.675c.95 0 1.488 1.07.946 1.837-.31.44-.97 1.232-2.075 1.914a.99.99 0 0 0-.465.918c.102 1.322.337 3.377.435 4.661a.982.982 0 0 0 .537.812c2.055 1.01 3.17 2.419 3.588 3.04.506.751-.021 1.816-.971 1.816H21.39Z",fillRule:"evenodd"})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWJewelThreadAddOnSecondaryIcons",["cr:1737009"],(function(a,b,c,d,e,f,g){"use strict";g.MWJewelThreadAddOnSecondaryIcons=b("cr:1737009")}),98); __d("MWThreadAddOnSecondary.react",["fbt","CometBadge.react","CometPressable.react","CurrentEnvironment","I64","LSMediaUrl.bs","LSMessagingThreadTypeUtil.bs","MAWGating","MDSPushPinSvgIcon.react","MWJewelThreadAddOnSecondaryIcons","MWLSMarkThreadAsRead.bs","MWMessageDeliveryStatusIcons","MWPActor.bs","ReQL","ReQLSuspense","TetraOverlappingFacepileUnstyled.react","gkx","react","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function j(a){var b=c("useReStore")(),e=d("MWPActor.bs").useActor();return d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(b.table("participants").index("threadKeyReadWatermarkTimestampMs")).getKeyRange(a.threadKey).bounds({gte:{hd:a.lastActivityTimestampMs,tl:0}}).filter(function(a){a=a.contactId;return!d("I64").equal(a,e)}).take(3).map(function(a){a=a.contactId;a=d("ReQLSuspense").first(d("ReQL").fromTableAscending(b.table("contacts")).getKeyRange(a));return a!=null?{alt:a.name,source:{uri:d("LSMediaUrl.bs").Contact.profilePictureUrl(a)}}:null})},[b,e,a.threadKey,a.lastActivityTimestampMs]).filter(Boolean)}function a(a){var b=a.isMuted,e=a.isPinned,f=a.isUnread,g=a.isViewerSender,k=a.lastMessageDeliveryStatusIcon;a=a.thread;var l=d("MWLSMarkThreadAsRead.bs").useHook(),m=j(a),n=[];a=d("LSMessagingThreadTypeUtil.bs").isSecure(a.threadType)&&d("LSMessagingThreadTypeUtil.bs").isGroup(a.threadType);c("gkx")("2445")&&e&&n.push(i.jsx(c("MDSPushPinSvgIcon.react"),{color:"tertiary",size:24}));b&&n.push(d("MWJewelThreadAddOnSecondaryIcons").MWJewelThreadAddOnSecondaryIcons.bell);f?n.push(i.jsx(c("CometPressable.react"),{"aria-label":h._("__JHASH__kxStFVEPa-2__JHASH__"),expanding:!0,onPress:function(a){return l()},children:i.jsx(c("CometBadge.react"),{color:"blue",isProfileBadge:!0,size:d("MAWGating").isArmadillo()&&c("CurrentEnvironment").messengerdotcom?10:12})})):g&&(m.length===0?k&&n.push(k):a?n.push(i.jsx(c("MWMessageDeliveryStatusIcons").DeliveredAndReadIcon,{size:12})):n.push(i.jsx(c("TetraOverlappingFacepileUnstyled.react"),{count:m.length,isTextInline:!0,items:m,screenReaderLabel:m.length===1?h._("__JHASH__2MhSP-AMGlO__JHASH__",[h._param("=personName",m[0].alt)]):h._("__JHASH__jJBaERf_iKB__JHASH__",[h._param("=numPeople",m.length,[0])]),size:16})));return i.jsx("div",{className:"x6s0dn4 x78zum5 xozqiw3",children:n.map(function(a,b){return i.jsxs(i.Fragment,{children:[b!==0?i.jsx("div",{className:"x1fsd2vl"}):null,a]},"item_"+b.toString(10))})})}a.displayName=a.name+" [from "+f.id+"]";b=i.memo(a);g["default"]=b}),98); __d("MWThreadListLastMessage.bs",["fbt","CometGlimmer.react","CometMiddot.react","CometRelativeTimestamp.react","LSMessagingThreadTypeUtil.bs","MAWGating","MAWThreadCutover.bs","MDSLockSvgIcon.bs","MWJewelThreadSnippet.react","MWText.react","MWVerticalRhythm","gkx","react","useMAWOfflineQueueState"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j={bodyGlimmer:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"x1l36t39",$$css:!0},bodyGlimmerSecond:{width:"xktia5q",$$css:!0},lockIcon:{color:"xi81zsa",marginStart:"x8182xy",$$css:!0},lockIconMiddot:{marginStart:"xgzva0m",marginEnd:"xeyog9w",$$css:!0},root:{alignItems:"x6s0dn4",color:"xi81zsa",display:"x78zum5",minHeight:"x1hshjfz",$$css:!0},subtext:{whiteSpace:"xuxw1ft",$$css:!0},verticallyPaddedMiddot:{marginTop:"xdj266r",marginEnd:"xfs2ol5",marginBottom:"xat24cr",marginStart:"x12mruv9",$$css:!0}};function k(a){a=a.timestamp;return i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"xdj266r xfs2ol5 xat24cr x12mruv9",children:i.jsx(c("MWText.react"),{align:"start",color:"secondary",type:"body4",children:i.jsx(c("CometMiddot.react"),{})})}),i.jsx("span",{className:"xuxw1ft","data-testid":void 0,children:i.jsx(c("CometRelativeTimestamp.react"),{date:new Date(a),format:"minimized"})})]})}b={make:k};function l(a){return i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"xi81zsa x8182xy","data-testid":void 0,children:i.jsx(c("MDSLockSvgIcon.bs"),{color:"secondary",size:16})}),i.jsx("span",{className:"xgzva0m xeyog9w",children:i.jsx(c("MWText.react"),{align:"start",color:"secondary",type:"body4",children:i.jsx(c("CometMiddot.react"),{})})})]})}e={make:l};f={};function a(a){var b=a.hasOngoingCall,e=a.isUnread,f=a.lastMessageTimestamp,g=a.showTimestamp,m=a.snippet;a=a.thread;var n=a!==void 0?d("LSMessagingThreadTypeUtil.bs").isSecure(a.threadType):!1;a=d("MAWThreadCutover.bs").useIsCutoverSecureThread(a==null?void 0:a.threadKey);var o=c("useMAWOfflineQueueState")();if(d("MAWGating").isWebLoadStateEnabled()&&n&&o)return i.jsx(c("CometGlimmer.react"),{index:1,xstyle:[j.bodyGlimmer,j.bodyGlimmerSecond]});o=d("MAWGating").isArmadillo()&&d("MAWGating").isE2EEAttributionAndPresenceEnabled()&&n&&!(c("gkx")("3711")&&a);return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"x6s0dn4 xi81zsa x78zum5 x1hshjfz","data-testid":void 0,children:[o&&i.jsx(l,{}),i.jsx(c("MWJewelThreadSnippet.react"),{isUnread:e,text:m}),g&&f!==void 0&&f>0?i.jsx(k,{timestamp:f}):null]}),b?i.jsxs(i.Fragment,{children:[d("MAWGating").isArmadillo()?i.jsx(c("MWVerticalRhythm"),{height:5}):null,i.jsx(c("MWText.react"),{align:"start",color:"positive",numberOfLines:1,type:"body4",children:h._("__JHASH__vQgw_4Xpge6__JHASH__")})]}):null]})}a=a;b=b;e=e;a=a;g.CometGlimmer=f;g.Timestamp=b;g.LockIcon=e;g.make=a}),98); __d("MessageRequestsBulkActionsThreadListItem.bs",["ix","CometPressable.react","JSSet.bs","MWIcon.react","MWPIsThreadUnread.bs","MWUseAriaLabelForThread.bs","MessageRequestsBulkActionsContext.react","bs_curry","bs_int64","fbicon","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j={checkboxWrapper:{paddingRight:"xy13l1i",$$css:!0},pressableContent:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",display:"x1lliihq",width:"xh8yej3",$$css:!0},selectorWrapper:{alignItems:"x6s0dn4",display:"x78zum5",paddingTop:"xexx8yu",paddingEnd:"x1iji9kk",paddingBottom:"x18d9i69",paddingStart:"x1sln4lm",$$css:!0},threadItemContainerEditMode:{flexGrow:"x1iyjqo2",minWidth:"xeuugli",pointerEvents:"x47corl",$$css:!0}};function a(a){var b=a.thread;a=a.threadListCell;var e=i.useContext(c("MessageRequestsBulkActionsContext.react")),f=e.setBulkActionsUnreadSelectedThreads,g=e.setBulkActionsSelectedThreads,k=e.bulkActionsSelectedThreads,l=c("bs_int64").to_string(b.threadKey),m=i.useCallback(function(a){return c("bs_curry")._1(g,function(a){a=new Set(d("JSSet.bs").values(a));if(a["delete"](l))return a;else return a.add(l)})});i.useEffect(function(){c("bs_curry")._1(f,function(a){a=new Set(d("JSSet.bs").values(a));if(d("MWPIsThreadUnread.bs").isThreadUnread(b)&&k.has(l))return a.add(l);else if(d("MWPIsThreadUnread.bs").isThreadUnread(b)){a["delete"](l);return a}else return a})},[k]);e=k.has(l);var n=d("MWUseAriaLabelForThread.bs").useHook(b);return i.jsx(c("CometPressable.react"),{"aria-checked":e,"aria-label":n,onPress:function(a){return c("bs_curry")._1(m)},role:"checkbox",xstyle:function(a){return[j.pressableContent]},children:i.jsxs("div",{"aria-hidden":!0,className:"x6s0dn4 x78zum5 xexx8yu x1iji9kk x18d9i69 x1sln4lm",children:[i.jsx("div",{className:"xy13l1i",children:i.jsx(c("MWIcon.react"),{color:e?"highlight":"disabled",hideHoverOverlay:!0,icon:e?d("fbicon")._(h("484757"),20):d("fbicon")._(h("659288"),20)})}),i.jsx("div",{className:"x1iyjqo2 xeuugli x47corl",children:a})]})})}a.displayName=a.name+" [from "+f.id+"]";b=a;e=b;g.make=e}),98); __d("RTWebInboxJoinOngoingCallIcon.react",["ix","TetraIcon.react","fbicon","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=function(a,b,c){if(b===!0)return k.camcorder[c];switch(a){case"AUDIO_GROUP_CALL":return k.phone[c];case"VIDEO_GROUP_CALL":return k.camcorder[c];default:return null}};function a(a){var b=a.hasActiveRoom,d=a.hidden,e=a.ongoingCallType;a=a.size;a=a===void 0?36:a;if(d)return null;d=j(e,b,a);return d===null?null:i.jsx("div",{className:"x14yjl9h xudhj91 x18nykt9 xww2gxu x1qeybcx x84fkku x67bb7w x10l6tqk xwa60dl x1cb1t30",children:i.jsx("div",{className:c("stylex")(m.button,l[a]),children:i.jsx(c("TetraIcon.react"),{color:"white",icon:d})})})}a.displayName=a.name+" [from "+f.id+"]";var k={camcorder:{32:d("fbicon")._(h("493173"),16),36:d("fbicon")._(h("493174"),20)},phone:{32:d("fbicon")._(h("558160"),16),36:d("fbicon")._(h("558161"),20)}},l={32:{height:"x10w6t97",width:"x1td3qas",$$css:!0},36:{height:"xc9qbxq",width:"x14qfxbe",$$css:!0}},m={button:{alignItems:"x6s0dn4",backgroundImage:"x144zhqp",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",borderTopWidth:"x972fbf",borderEndWidth:"xcfux6l",borderBottomWidth:"x1qhh985",borderStartWidth:"xm0m39n",boxSizing:"x9f619",display:"x78zum5",justifyContent:"xl56j7k",paddingTop:"xexx8yu",paddingEnd:"x4uap5",paddingBottom:"x18d9i69",paddingStart:"xkhd6sd",position:"x1n2onr6",$$css:!0},buttonContainer:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",boxShadow:"x1qeybcx",end:"x84fkku",pointerEvents:"x67bb7w",position:"x10l6tqk",top:"xwa60dl",transform:"x1cb1t30",$$css:!0}};g["default"]=a}),98); __d("MWThreadListItem.bs",["fbt","CometCardedDialogLoadingState.re","CometEntryPointDialogTrigger.react","CometListCellHoverButton.react","CometTextWithEntities.react","CometTransientDialogProvider.react","CommunityMessagingEnableState.bs","FBGroupChatInviteState.bs","GroupsCometJoinChatDialog.entrypoint","I64","InteractionTracingMetrics","JSResourceForInteraction","LS.bs","LSMessagingThreadTypeUtil.bs","LSRtcCallState.bs","LSThreadTitle.bs","LSUpdateCommunityChannelDirectInvite","LsMessengerThreadDamagingActionsEntryPoint.bs","LsSystemFolder.bs","MAWGating","MAWGroupInvitesForThread.bs","MDSListCell.react","MWCMIsAnyCMThread","MWCMThreadTypes.bs","MWCMUseFolder.bs","MWCMUseShouldGoToFullScreenChat.bs","MWChatCalculateIsMutedFromExpireTime.bs","MWChatTextTransform.bs","MWJewelPopoverDialogContext.react","MWLSThreadDisplayContext.bs","MWLSThreadIsPinned.bs","MWLSThreadSnippetForDisplay","MWMessageDeliveryStatusIcons","MWPActor.bs","MWPIsThreadUnread.bs","MWPMessageRowCalculateStatus.react","MWPThreadListItemInviteAddOn.react","MWSelectedThreadOptionsIdContext.bs","MWText.react","MWThreadAddOnSecondary.react","MWThreadListFocusableTable.react","MWThreadListLastMessage.bs","MWThreadPicture.bs","MWV2OpenTabOrThread.bs","MWV2PreloadThread.bs","MWVerticalRhythm","MessageRequestsBulkActionsContext.react","MessageRequestsBulkActionsThreadListItem.bs","MessengerMuteUtils.bs","MessengerWebEntryPointsUtil.bs","RTCCallState.bs","RTWebInboxJoinOngoingCallIcon.react","ReQL.bs","ReQLSuspense","UseBlockedUserInterstitial.bs","cometPushToast","emptyFunction","gkx","promiseDone","qex","react","requireDeferred","stylex","useCometLazyDialog","useGroupsCometCMOffboardingEntryPointDialog","useMatchMedia","useMenuButtonVisibilityState","useReStore","useSimpleImpression"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=c("requireDeferred")("C4gEngagementFalcoEvent.bs").__setRef("MWThreadListItem.bs"),k=c("requireDeferred")("MWThreadListHoverButtonDropdownMenu.bs").__setRef("MWThreadListItem.bs"),l={listItemContainer:{paddingStart:"xurb0ha",paddingEnd:"x1sxyh0",position:"x1n2onr6",$$css:!0},listItemContainerForMessengerDotCom:{paddingStart:"x16hj40l",paddingEnd:"xsyo7zv",$$css:!0},listItemContainerHiddenContent:{display:"x1lliihq",width:"xnalus7",height:"xqtp20y",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0}};function m(a,b,c,d){j.onReady(function(e){return e.log(function(){return{action:"tap",event:c,group_id:b,parent_surface:"channel_list",source:d,surface:"chat_row",thread_id:a}})})}function a(a){var b,e=a.lsEntryPoint,f=a.messagingEntrypoint,g=a.onClose,j=g===void 0?c("emptyFunction"):g,n=a.onPress;g=a.onThreadSelected;var o=g===void 0?c("emptyFunction"):g;g=a.parentSurface;g=g===void 0?"channel_list":g;var p=a.renderAddOnEnd,q=a.renderThreadPhoto,r=a.renderThreadSubtitle,s=a.renderThreadTitle,t=a.responsive,u=a.selected,v=a.thread,w=(a=q)!=null?a:function(a){return i.jsx(d("MWThreadPicture.bs").make,{badgeSize:c("gkx")("571")?10:14,photoSize:c("MWCMIsAnyCMThread")(a.threadType)||c("gkx")("571")?"s_48":"s_56",thread:a})},x=(q=s)!=null?q:function(a){return i.jsx(d("LSThreadTitle.bs").make,{thread:a})},y=(a=r)!=null?a:function(a){return i.jsx(d("MWThreadListLastMessage.bs").make,{hasOngoingCall:!d("I64").equal(a.ongoingCallState,d("LSRtcCallState.bs").noOngoingCall),isUnread:d("MWPIsThreadUnread.bs").isThreadUnread(a),lastMessageTimestamp:d("I64").to_float(a.lastActivityTimestampMs),showTimestamp:!d("MWCMThreadTypes.bs").isUnjoinedCMThread(a.threadType),snippet:d("MWLSThreadSnippetForDisplay").MWLSThreadSnippetForDisplay(a),thread:a})};c("useSimpleImpression")(function(){var a=d("LSMessagingThreadTypeUtil.bs").isSecure(v.threadType),b=c("InteractionTracingMetrics").currentInteractionLogger();return b.addMetadata("hasSecureThread",a?1:0)});var z=d("LSMessagingThreadTypeUtil.bs").isSecure(v.threadType),A=d("LSMessagingThreadTypeUtil.bs").isGroup(v.threadType),B=d("MAWGroupInvitesForThread.bs").isGroupInviteThread(v),C=d("MWV2OpenTabOrThread.bs").useHook();s=i.useRef(null);q=i.useMemo(function(){return d("I64").to_string(v.threadKey)},[v]);var D=c("useMatchMedia")("(min-width: 900px)")||!t,E=c("useReStore")();r=c("useCometLazyDialog")(c("JSResourceForInteraction")("MAWGroupInviteDialog.react").__setRef("MWThreadListItem.bs"));var F=r[0];a=d("MWPActor.bs").useActor();var G=d("MWPIsThreadUnread.bs").isThreadUnread(v),H=d("MWCMThreadTypes.bs").isUnjoinedCMThread(v.threadType);t=i.useMemo(function(){return d("MessengerMuteUtils.bs").calcMuteUntilMs(v)},[v]);r=v.snippetSenderContactId;var I=r!==void 0?d("I64").equal(r,a):!1,J=d("MWChatCalculateIsMutedFromExpireTime.bs").useHook(t);r=c("useMenuButtonVisibilityState")(!0);a=r[0];r=r[1];var K=r.setListItemHovered,L=r.setMenuBtnFocused,aa=r.setMenuBtnHovered,ba=r.setMenuOpened,M=c("MWCMIsAnyCMThread")(v.threadType),N=d("MWCMThreadTypes.bs").isBroadcastThread(v.threadType),O=d("I64").equal(v.parentThreadKey,d("LsSystemFolder.bs").inbox);r=O?D:!H;var ca=i.useCallback(function(){return K(!1)},[K]),da=i.useCallback(L,[L]),ea=d("MWLSThreadIsPinned.bs").useHook(),P=i.useContext(c("MWJewelPopoverDialogContext.react")),Q=P.setIsOpenForDialog,fa=i.useCallback(function(){if(f==="jewel")return Q(!1)},[f,Q]);P=i.useCallback(function(a){return K(!0)},[K]);var R=d("ReQLSuspense").useFirst(function(){return d("ReQL.bs").getKeyRange(d("ReQL.bs").fromIndexDescending(E.table("messages").index("messageDisplayOrder")),{hd:v.threadKey,tl:0})},[v.threadKey]),S=d("MWV2PreloadThread.bs").useHook(v.threadKey,z),ga=S[0],ha=S[1];S=!d("I64").equal(v.ongoingCallState,d("LSRtcCallState.bs").noOngoingCall);var T=v.additionalThreadContext,ia=i.useMemo(function(){if(T!==void 0)return i.jsxs(i.Fragment,{children:[i.jsx(c("MWText.react"),{align:"start",color:"secondary",numberOfLines:1,type:"meta4",children:i.jsx(c("CometTextWithEntities.react"),{text:T,transforms:d("MWChatTextTransform.bs").epdTextTransforms})}),i.jsx(c("MWVerticalRhythm"),{height:8})]});else return null},[T]),U=d("MWCMUseFolder.bs").useHook(v),V=i.useMemo(function(){if(U!==void 0&&M)return[U.fbGroupId,U.enableState,U.disableTimestamp];else return[void 0,void 0,void 0]},[M,U]),W=V[0];V=V[1];var ja=d("I64").equal((V=V)!=null?V:d("CommunityMessagingEnableState.bs").enabled,d("CommunityMessagingEnableState.bs").disableRequested),ka=v.folderName==="inbox"?d("LsMessengerThreadDamagingActionsEntryPoint.bs").inboxThreadList:v.folderName==="pending"?d("LsMessengerThreadDamagingActionsEntryPoint.bs").pendingThreadList:d("LsMessengerThreadDamagingActionsEntryPoint.bs").spamThreadList,la=d("UseBlockedUserInterstitial.bs").useHook(v.threadKey),ma=function(a){la(function(){var b={clientThreadKey:v.clientThreadKey,threadKey:v.threadKey,threadType:v.threadType};return a?C.openInbox(b,e):C.openTabOrInbox(!0,b,e)},ka);return j()};V=d("MWLSThreadDisplayContext.bs").useHook();V=V==="Inbox";var X=i.useContext(c("MessageRequestsBulkActionsContext.react"));X=X.isBulkActionsEditMode;var Y=d("MWCMUseShouldGoToFullScreenChat.bs").useHook();b=(b=c("qex")._("873"))!=null?b:!1;d("MWV2OpenTabOrThread.bs").usePreloadRoute(v.threadKey,v.threadType);var Z=v.hasPendingInvitation||!1,$=c("useGroupsCometCMOffboardingEntryPointDialog")({groupID:d("I64").to_string(W||d("I64").zero)}),na=$[0],oa=function(a){c("promiseDone")(E.runInTransaction(function(a){return c("LSUpdateCommunityChannelDirectInvite")(v.threadKey,d("FBGroupChatInviteState.bs").declinedByReceiver,d("LS.bs").make(a))},"readwrite"));m(d("I64").to_string(v.threadKey),d("I64").to_string((a=W)!=null?a:d("I64").zero),"invite_declined","direct_invite_join_button");d("cometPushToast").cometPushSimpleToast(h._("__JHASH__tNF5MX9GoB5__JHASH__").toString())},pa=!c("MWCMIsAnyCMThread")(v.threadType)||d("MessengerWebEntryPointsUtil.bs").getEntryPointHasGroupNameAsThreadSnippet(e)?!1:c("gkx")("957");$=i.jsx(c("CometEntryPointDialogTrigger.react"),{dialogEntryPoint:c("GroupsCometJoinChatDialog.entrypoint"),fallback:function(){return i.jsx(d("CometCardedDialogLoadingState.re").make,{})},otherProps:{invited:Z,parentSurface:g,shouldGoToMessenger:Y,shouldAutojoin:b},preloadParams:{groupID:d("I64").to_string(W||d("I64").zero),threadID:d("I64").to_string(v.threadKey)},children:function(a){var b=function(){if(p!==void 0)return p(v);if(Z)return i.jsx(c("MWPThreadListItemInviteAddOn.react"),{onAccept:function(){m(d("I64").to_string(v.threadKey),d("I64").to_string(W||d("I64").zero),"invite_accepted","direct_invite_decline_button");return a()},onDecline:oa});return D||!O?i.jsx(c("MWThreadAddOnSecondary.react"),{isMuted:J,isPinned:ea,isUnread:G,isViewerSender:I,lastMessageDeliveryStatusIcon:R!==void 0&&!(N&&c("gkx")("6159"))?i.jsx(c("MWPMessageRowCalculateStatus.react"),{isBroadcastThread:N,isLargeGroup:!1,isSecureGroupThread:z&&A,message:R,nextMessage:void 0,children:function(a){switch(a.TAG){case 1:return i.jsx(c("MWMessageDeliveryStatusIcons").SendingIcon,{size:12});case 2:return i.jsx(c("MWMessageDeliveryStatusIcons").SentIcon,{size:12});case 3:return i.jsx(c("MWMessageDeliveryStatusIcons").DeliveredIcon,{size:12});case 4:return i.jsx(c("MWMessageDeliveryStatusIcons").ErrorIcon,{size:12});default:return null}}}):null,thread:v}):void 0}();return i.jsx(c("MDSListCell.react"),{addOnEnd:b,addOnStart:w(v),"aria-current":u?"page":"false",content:i.jsxs("span",{className:D||!O?void 0:"x1lliihq xnalus7 xqtp20y x6ikm8r x10wlt62",children:[ia,i.jsx(c("MWText.react"),{align:"start",color:"primary",numberOfLines:1,type:G?c("gkx")("571")?"entityHeaderMeta1":"headlineEmphasized4":c("gkx")("571")?"headline4":"body3",children:x(v)}),d("MWCMThreadTypes.bs").isJoinedCMThread(v.threadType)&&pa?null:i.jsxs(i.Fragment,{children:[i.jsx(c("MWVerticalRhythm"),{height:8}),y(v)]})]}),linkProps:{preventLocalNavigation:!0,url:C.getUrlFromThreadKey(v.threadKey,v.threadType)},onFocusChange:da,onHoverIn:ga,onHoverOut:ha,onPress:function(b){n==null?void 0:n(b);if(H){if(!ja)return a();if(W===void 0)return;return na({onClose:c("emptyFunction")},c("emptyFunction"))}d("MAWGating").isGroupInvitesEnabled()&&B?F({onClose:c("emptyFunction"),thread:v},c("emptyFunction")):ma(b.metaKey||b.ctrlKey||b.shiftKey);return o()},selected:u,size:"large"})}},d("I64").to_string(v.threadKey));if(r){if(X)g=null;else{b={hidden:!a,onFocusChange:L,onHoverChange:aa,onMenuStateChange:function(a){fa();return ba(a)},popoverProps:{fbid:q,groupId:d("I64").to_string((Y=W)!=null?Y:d("I64").zero),isUnread:G,messagingEntrypoint:f,mutedUntil:t/1e3,onCloseJewel:j,selected:u,thread:v},popoverResource:k,popoverTriggerType:"lazy",testid:"mwthreadlist-menu-id-"+q};r=c("gkx")("571")?32:void 0;r!==void 0&&(b.size=r);g=i.jsx(c("CometListCellHoverButton.react"),babelHelpers["extends"]({},b))}a=i.jsx(d("MWThreadListFocusableTable.react").MWThreadListFocusableTableCell,{children:i.jsxs("div",{role:"gridcell",children:[i.jsx(c("RTWebInboxJoinOngoingCallIcon.react"),{hidden:!S,ongoingCallType:d("RTCCallState.bs").ofLsRtcCallState(v.ongoingCallState,v.threadType),size:32}),g]})})}else a=null;L=i.jsx("div",{"data-testid":void 0,children:i.jsx("div",{className:c("stylex")(l.listItemContainer,c("gkx")("571")?l.listItemContainerForMessengerDotCom:!1),"data-testid":void 0,onMouseEnter:P,onMouseLeave:ca,role:"row",children:i.jsxs(d("MWThreadListFocusableTable.react").MWThreadListFocusableTableRow,{children:[i.jsx(d("MWThreadListFocusableTable.react").MWThreadListFocusableTableCell,{children:i.jsx("div",{ref:s,role:"gridcell",children:X?i.jsx(d("MessageRequestsBulkActionsThreadListItem.bs").make,{thread:v,threadListCell:$}):$})}),a]})})});if(V)return i.jsx(d("MWSelectedThreadOptionsIdContext.bs").make,{threadId:v.threadKey,children:i.jsx(c("CometTransientDialogProvider.react"),{children:L})});else return L}a.displayName=a.name+" [from "+f.id+"]";b=i.memo(a);e=b;g.make=e}),98); __d("MWThreadListFolderItem.bs",["CometTextWithEntities.react","MDSListCell.react","MDSTextPairing.react","MWAddOnCircleContainer.react","MWCMThreadTypes.bs","MWChatTextTransform.bs","MWPIsThreadUnread.bs","MWText.react","MWThreadListFocusableTable.react","MWThreadListLastMessage.bs","ReQL.bs","ReQLSubscription.bs","SortedAsyncIterable.bs","bs_belt_Option","bs_caml","bs_caml_int64","bs_curry","react","useMatchMedia","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.icon,e=a.onClick,f=a.responsive,g=a.selectedThreadKey,i=a.size,j=a.systemFolder,k=a.thread,l=a.threadName;a=c("useMatchMedia")("(min-width: 900px)")||!f;var m=c("useReStore")();f=c("bs_belt_Option").isSome(d("ReQLSubscription.bs").useFirst(h.useMemo(function(){if(g!==void 0)return d("ReQL.bs").filter(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(m.table("threads")),{hd:g,tl:0}),function(a){return c("bs_caml").i64_eq(a.parentThreadKey,j)});else return d("SortedAsyncIterable.bs").empty()},[g,k])));var n=h.useMemo(function(){var a=k.snippet;if(a!==void 0)return a;else return null},[k]),o=c("bs_caml_int64").to_float(k.lastActivityTimestampMs),p=d("MWPIsThreadUnread.bs").isThreadUnread(k),q=k.threadName,r=h.useMemo(function(){return h.jsx(c("MWAddOnCircleContainer.react"),{size:function(){switch(i){case"s_28":return 28;case"s_36":return 36;case"s_40":return 40;case"s_48":return 48;case"s_56":return 56}}(),children:b})},[i]),s=h.useMemo(function(){return c("bs_belt_Option").getWithDefault(q,l)},[q]),t=h.useMemo(function(){return h.jsx(c("MWText.react"),{color:"primary",numberOfLines:1,type:p?"headlineEmphasized4":"body3",children:h.jsx(c("CometTextWithEntities.react"),{text:s.toString(),transforms:d("MWChatTextTransform.bs").epdTextTransforms})})},[p,s]),u=h.useCallback(function(a){return c("bs_curry")._1(e)},[e]);r=h.jsx(d("MWThreadListFocusableTable.react").MWThreadListFocusableTableRow,{children:h.jsx("div",{role:"row",children:h.jsx(d("MWThreadListFocusableTable.react").MWThreadListFocusableTableCell,{children:h.jsx("div",{className:"xurb0ha x1sxyh0",role:"gridcell",children:h.jsx(c("MDSListCell.react"),{addOnStart:r,content:h.jsx(c("MDSTextPairing.react"),{body:a?h.jsx(d("MWThreadListLastMessage.bs").make,{hasOngoingCall:!1,isUnread:p,lastMessageTimestamp:o,showTimestamp:!d("MWCMThreadTypes.bs").isUnjoinedCMThread(k.threadType),snippet:n}):null,bodyLineLimit:1,headline:a?t:null,headlineLineLimit:1,level:4,reduceEmphasis:!p}),onPress:u,selected:f,size:"large"})})})})});o={children:r};return h.jsx("div",babelHelpers["extends"]({},(o["data-testid"]="mwthreadlist-item",o)))}a.displayName=a.name+" [from "+f.id+"]";b=a;e=b;g.make=e}),98); __d("MWThreadListJobsItem.bs",["fbt","ix","LsSystemFolder.bs","MWIcon.react","MWThreadListFolderItem.bs","bs_curry","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");function a(a){var b=a.onClick,e=a.responsive,f=a.selectedThreadKey,g=a.size;a=a.thread;var k=function(a){return c("bs_curry")._1(b,d("LsSystemFolder.bs").jobs)};return j.jsx(d("MWThreadListFolderItem.bs").make,{icon:j.jsx(c("MWIcon.react"),{color:"primary",icon:d("fbicon")._(i("512668"),32),size:56}),onClick:k,responsive:e,selectedThreadKey:f,size:g,systemFolder:d("LsSystemFolder.bs").jobs,thread:a,threadName:h._("__JHASH__fyt3EBzeQRx__JHASH__")})}a.displayName=a.name+" [from "+f.id+"]";b=a;e=b;g.make=e}),98); __d("MWThreadList.bs",["fbt","BootloaderResource","CometPlaceholder.react","FocusRegion.react","JSResource","LSMessagingThreadTypeUtil.bs","LsSystemFolder.bs","MWIsXacGroupThread.bs","MWLSJewelMessageRequestsThread.bs","MWPBaseThreadList.react","MWPBumpEntityKey","MWPThreadIsPage.bs","MWPThreadsForThreadList.bs","MWText.react","MWThreadKey.bs","MWThreadListGlimmer.react","MWThreadListItem.bs","MWThreadListJobsItem.bs","MWThreadListSupportedThreadTypes.bs","MWThread_DEPRECATED.bs","MWXacGating.bs","MessagingThreadType.bs","ReQL.bs","ReQLSuspense","bs_belt_Option","bs_caml","bs_caml_obj","bs_caml_option","bs_curry","bs_int64","cr:12211","cr:1913","cr:4519","cr:4716","cr:9873","gkx","qex","react","recoverableViolation","useCometUniqueID","useReStore","useSimpleImpression"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=b("cr:4519")==null?void 0:c("bs_caml_option").some(b("cr:4519")),k=b("cr:1913")==null?void 0:c("bs_caml_option").some(b("cr:1913")),l=b("cr:12211")==null?void 0:c("bs_caml_option").some(b("cr:12211")),m=c("JSResource")("MWThreadListNullState.react").__setRef("MWThreadList.bs");function n(a){return i.createElement(d("BootloaderResource").read(m),a)}function a(a){c("useSimpleImpression")(a)}function o(a){i.useEffect(function(){c("recoverableViolation")("Unknown thread type","comet_messenger")},[]);return null}var p={make:o};function q(a){var b=c("bs_int64").to_string(a.threadKey),e=a.threadType;a=a.cannotUnsendReason;if(a!==void 0&&c("bs_caml").i64_eq(e,d("MessagingThreadType.bs").oneToOne)&&c("bs_caml").i64_eq(a,[0,4]))return{NAME:"Page",VAL:b};if(d("LSMessagingThreadTypeUtil.bs").isOneToOne(e))return{NAME:"User",VAL:b};else if(d("LSMessagingThreadTypeUtil.bs").isGroup(e))return{NAME:"Group",VAL:b};else return}var r=c("gkx")("7681")===!1&&c("gkx")("1950")===!1;function e(a){var e=a.lsEntryPoint,f=a.messagingEntrypoint,g=a.onClickNestedFolderThread,h=a.onClose,l=a.responsive,m=a.selectedThreadKey;a=a.thread;if(c("bs_caml").i64_eq(a.threadType,d("MessagingThreadType.bs").folder)){var n=a.threadKey;if(!c("bs_caml").i64_eq(n,d("LsSystemFolder.bs").mplace))if(c("bs_caml").i64_eq(n,d("LsSystemFolder.bs").jobs))return i.jsx(d("MWThreadListJobsItem.bs").make,{onClick:g,responsive:l,selectedThreadKey:m,size:"s_56",thread:a});else return null;if(b("cr:4519")==null){if(b("cr:1913")==null)return null;n=k}else n=j;if(r===!0)return i.jsx(n.make,{onClick:g,responsive:l,selectedThreadKey:m,size:"s_56",thread:a});else return null}n=q(a);if(n!==void 0)return i.jsx(d("MWThread_DEPRECATED.bs").make,{id:n,children:i.jsx(c("CometPlaceholder.react"),{fallback:i.jsx(c("MWThreadListGlimmer.react"),{}),children:i.jsx(d("MWPThreadIsPage.bs").make,{threadKey:a.threadKey,children:i.jsx(d("MWThreadKey.bs").make,{id:a.threadKey,children:i.jsx(d("MWThreadListItem.bs").make,{lsEntryPoint:e,messagingEntrypoint:f,onClose:h,responsive:l,selected:c("bs_caml_obj").caml_equal(m,a.threadKey),size:56,thread:a})})})})});else return i.jsx(o,{})}var s=i.memo(e);e={make:s};var t=b("cr:12211")==null?function(a){}:l.useHook;function u(a){var e=a.onClose,f=a.preamble,g=a.onClickNestedFolderThread,j=a.gridLabel,k=a.header,l=a.lsEntryPoint,m=a.onOpenMessageRequests,o=a.parentThreadKey,p=a.responsive,q=a.selectedThreadKey,r=a.setHasScrolled,u=a.setIsEmptyInbox,v=a.threadListMessagingEntrypoint,w=e!==void 0?e:function(a){};a=f!==void 0?c("bs_caml_option").valFromOption(f):null;var x=g!==void 0?g:function(a){},y=c("useReStore")(),z=d("ReQLSuspense").useFirst(function(){return d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(y.table("threads_ranges_v2__generated")),{hd:o,tl:0})},[y,o]);e=d("ReQLSuspense").useArray(function(){return d("ReQL.bs").take(d("ReQL.bs").filter(d("ReQL.bs").filter(d("MWPThreadsForThreadList.bs").createIterable(y,o,z),function(a){return d("MWThreadListSupportedThreadTypes.bs").supportedThreadTypes.findIndex(function(b){return c("bs_caml").i64_eq(a.threadType,b)})!==-1}),function(a){if(d("MWXacGating.bs").isGroupsEnabled())return!0;else return!d("MWIsXacGroupThread.bs").check(a)}),5)},[y,JSON.stringify(o),z]).pop();var A=e===void 0?void 0:c("bs_caml_option").some(e);f=k!==void 0?i.jsx(d("FocusRegion.react").FocusRegion,{children:c("bs_caml_option").valFromOption(k)}):null;g=c("useCometUniqueID")();c("bs_curry")._1(t,g);e=d("MWLSJewelMessageRequestsThread.bs").useHook(m);var B=i.useCallback(function(a){if(r!==void 0)return c("bs_curry")._1(r,function(b){return a.target.scrollTop!==0})},[]);k=i.useCallback(function(a){return i.jsx(s,{lsEntryPoint:l==="inboxThreadList"?c("bs_belt_Option").mapWithDefault(A,!1,function(b){return c("bs_caml").i64_le(a.lastActivityTimestampMs,b.lastActivityTimestampMs)})?"inboxRecentThreads":"inboxRemainingThreads":l,messagingEntrypoint:c("bs_belt_Option").getWithDefault(v,"jewel"),onClickNestedFolderThread:x,onClose:w,responsive:p,selectedThreadKey:q,thread:a})},[p,v,l,w,x,q,A]);m=b("cr:4716")==null?null:i.jsx(b("cr:4716"),{renderItem:k});var C=i.useRef(null),D=C.current;i.useEffect(function(){D==null||D.addEventListener("scroll",B)},[D]);f={beforeContent:i.jsxs(i.Fragment,{children:[f,e,a,m]}),emptyContent:c("qex")._("1310")===!0?i.jsx(c("CometPlaceholder.react"),{fallback:null,children:i.jsx(n,{parentThreadKey:o})}):i.jsx("div",{className:"xyamay9 x1pi30zi x1l90r2v x1swvt13",children:i.jsx(c("MWText.react"),{align:"center",type:"body2",children:h._("__JHASH__1gb6sA7PX-j__JHASH__")})}),gridLabel:j,itemPlaceholder:i.jsxs(i.Fragment,{children:[i.jsx(c("MWThreadListGlimmer.react"),{}),i.jsx(c("MWThreadListGlimmer.react"),{})]}),onLoadMoreThreads:function(a){return d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.threadlist","load_more_threads")},parentThreadKey:o,renderItem:k,renderLoadingAnimation:function(a){return i.jsxs(i.Fragment,{children:[i.jsx(c("MWThreadListGlimmer.react"),{}),i.jsx(c("MWThreadListGlimmer.react"),{})]})},scrollAreaElementRef:C};u!==void 0&&(f.setIsEmptyInbox=c("bs_caml_option").valFromOption(u));return i.jsx("div",{className:"x78zum5 xdt5ytf x1iyjqo2 x6ikm8r x10wlt62",id:g,children:i.jsx(c("MWPBaseThreadList.react"),babelHelpers["extends"]({},f))})}u.displayName=u.name+" [from "+f.id+"]";l=56;f="s_56";u=u;l=l;f=f;p=p;e=e;var v=t;u=u;g.$MAWThreadId$requireCond=b("cr:9873");g.$MWUseKeyCommandsForThreadList$OR$null$requireCond=b("cr:12211");g.$null$OR$MWThreadListMarketplaceItem$requireCond=b("cr:4519");g.$null$OR$MWThreadListMarketplaceItem$requireCond$1=b("cr:1913");g.useSimpleImpression=a;g.threadlistItemHeight=l;g.threadListItemHeightListCell=f;g.UnknownThreadType=p;g.ThreadListItemMemoized=e;g.useKeyCommandsForThreadList=v;g.make=u}),98); __d("MWJewelNestedFolderThreadList.react",["CometScrollView.react","CometTopNavListDropdown.react","MWJewelNestedFolderThreadListHeader.react","MWThreadList.bs","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.folder,e=a.onClose,f=a.onReturn;a=a.title;return h.jsx(c("CometTopNavListDropdown.react").Card,{useMaxHeight:!0,children:h.jsxs(c("CometScrollView.react"),{showsHorizontalScrollIndicator:!1,showsVerticalScrollIndicator:!0,children:[h.jsx(c("MWJewelNestedFolderThreadListHeader.react"),{onReturn:f,title:a}),h.jsx(d("MWThreadList.bs").make,{gridLabel:typeof a==="string"?a:a.toString(),lsEntryPoint:"jewelNestedFolder",onClose:e,parentThreadKey:b,responsive:!1}),h.jsx("div",{className:"x1qx5ct2"})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWJewelThreadListSearchTypeahead.react",["MWPSearchSystem.bs","cr:3070","emptyFunction","gkx","qex","react","setTimeoutCometSpeculative","useCometPreloader","useMWChatOpenTabForGroup","useMWChatOpenTabForPage","useMWChatOpenTabForUser","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");e=d("react");var i=e.useCallback,j=e.useEffect,k=e.useMemo,l=c("gkx")("4164");function a(a,e,f,g){var m=c("useMWChatOpenTabForGroup")("jewelSearch"),n=m[0];m[1];var o=c("useMWChatOpenTabForPage")("jewelSearch");m=c("useMWChatOpenTabForUser")("jewelSearch");var p=m[0];m[1];var q=c("useReStore")(),r=i(function(){return d("MWPSearchSystem.bs").makeAll(q)},[q]);j(function(){if(l){var a;a=(a=c("qex")._("2154"))!=null?a:1e4;c("setTimeoutCometSpeculative")(r,a)}});var s=i(function(a){a=a.rawData;var b=a.id;a=a.resultType;switch(a){case"group":n(b);break;case"user":p(b);break;case"page":o(b);break}g()},[g,n,o,p]);m=c("useCometPreloader")("button_aggressive",c("emptyFunction"),r);var t=m[0],u=m[1];return k(function(){return h.jsx("div",{onMouseEnter:t,onMouseLeave:u,children:h.jsx(b("cr:3070"),{onBlur:function(){return a(!1)},onChange:e,onFocus:function(){a(!0),r()},onPressEntry:s,queryString:f})})},[s,e,f,a,r,t,u])}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometMessagingJewelDropdownContent.react",["fbt","CometErrorBoundary.react","CometHeroInteractionWithDiv.react","CometMessagingJewelCommunitiesQPBannerContainer.react","CometMessagingJewelDropdownQPBannerContainer.react","CometPlaceholder.react","CometSettingsListDropdownLoadingState.react","CometTopNavListDropdown.react","CometTransientDialogProvider.react","FBLogger","I64","InteractionTracing","JSResourceForInteraction","LsSystemFolderInterop.bs","MWCMJewelContext","MWChatSearchClearSearchResults.bs","MWInboxContextSwitcherGlimmer.react","MWInboxQuickPromotionWrapper.react","MWJewelDropdownHeader.react","MWJewelMessengerAppLink.react","MWJewelMessengerAppLinkLocalhostWithFallback.react","MWJewelMessengerAppLinkV2.react","MWJewelMessengerLink.react","MWJewelNestedFolderThreadList.react","MWJewelPopoverDialogContext.react","MWThreadList.bs","MessengerDesktopDeepLinkUtils","ODS","XCometMessengerControllerRouteBuilder","deferredLoadComponent","gkx","lazyLoadComponent","qex","qpl","react","recoverableViolation","requireDeferredForDisplay","useMWJewelThreadListSearchTypeahead.react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");e=b.memo;var j=b.useCallback,k=b.useContext,l=b.useEffect,m=b.useRef,n=b.useState,o=c("deferredLoadComponent")(c("requireDeferredForDisplay")("MWInboxContextSwitcherCond.react").__setRef("CometMessagingJewelDropdownContent.react")),p=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWCMBlendedThreadList.react").__setRef("CometMessagingJewelDropdownContent.react")),q=c("lazyLoadComponent")(c("JSResourceForInteraction")("MAWJewelMessageRequestsAndSpamDropdownWithTab.react").__setRef("CometMessagingJewelDropdownContent.react")),r=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWRestrictedAccountsListForJS").__setRef("CometMessagingJewelDropdownContent.react")),s=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWJewelArchivedChatsDropdown.react").__setRef("CometMessagingJewelDropdownContent.react")),t=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWUncaughtErrorState.react").__setRef("CometMessagingJewelDropdownContent.react")),u=h._("__JHASH__9FTPnWJWCay__JHASH__");function v(a){c("recoverableViolation")("CometMessagingJewelDropdownQPBannerContainer failed to render","messenger_web_product",{error:a})}var w={errorBoundary:{height:"x20eyyc",$$css:!0},headerContainer:{flexGrow:"x1c4vz4f",$$css:!0}},x=c("gkx")("6975")===!0;function y(a){var b=a.onClose,e=a.pushPage,f=a.qpBannerCommunitiesContainerQueryRef;a=a.qpBannerContainerQueryRef;var g=k(c("MWJewelPopoverDialogContext.react")),t=g.setIsOpenForDialog,w=d("MWChatSearchClearSearchResults.bs").useHook(),y=j(function(){w(),b()},[b,w]);l(function(){return w},[w]);g=n(!1);g[0];var z=g[1];g=n("");var A=g[0];g=g[1];var B=c("XCometMessengerControllerRouteBuilder").buildURL({});g=c("useMWJewelThreadListSearchTypeahead.react")(z,g,A,y);A=k(c("MWCMJewelContext"));var C=A.selectedFolderTab,D=A.setSelectedFolderTab,E=m();A=j(function(){var a=c("InteractionTracing").startInteraction({interactionClass:"fast",qplEvent:c("qpl")._(30607516,"756"),tracePolicy:"comet.jewel.message_requests",traceType:"INTERACTION"});e(function(b){b=b.onReturn;b={interactionID:a,onClose:y,onReturn:b};return i.jsx(q,babelHelpers["extends"]({},b))})},[y,e]);var F=j(function(){e(function(a){a=a.onReturn;return i.jsx(r,{hidePage:a,onClose:y})})},[y,e]),G=j(function(){d("ODS").bumpEntityKey(3185,"mw_jewel","archived_chats"),e(function(a){a=a.onReturn;return i.jsx(s,{onClose:y,onReturn:a})})},[y,e]),H=j(function(a){e(function(b){b=b.onReturn;switch(a){case d("LsSystemFolderInterop.bs").jobs:return i.jsx(c("MWJewelNestedFolderThreadList.react"),{folder:a,onClose:y,onReturn:b,title:h._("__JHASH__yJarfmqcRDP__JHASH__")});case d("LsSystemFolderInterop.bs").mplace:return i.jsx(c("MWJewelNestedFolderThreadList.react"),{folder:a,onClose:y,onReturn:b,title:h._("__JHASH__Yxm-6KVT3xg__JHASH__")});default:c("FBLogger")("messenger_web_product").mustfix("Attempted to show an unimplemented nested system folder");return null}})},[y,e]),I=d("MessengerDesktopDeepLinkUtils").isMessengerDesktopDeeplinkEnabled();G=i.jsxs(i.Fragment,{children:[i.jsx(c("MWJewelDropdownHeader.react"),{inboxUrl:B,onClose:y,onOpenArchivedChats:G,onOpenMessageRequests:A,onOpenRestrictedAccountsList:F,title:u}),i.jsxs("div",{className:"x1c4vz4f",children:[g," ",x&&i.jsx(c("CometPlaceholder.react"),{fallback:i.jsx(c("MWInboxContextSwitcherGlimmer.react"),{}),children:i.jsx(o,{entryPoint:"jewel",onTabChange:function(a){a===d("LsSystemFolderInterop.bs").community&&(E.current=c("InteractionTracing").startInteraction({interactionClass:"fast",qplEvent:c("qpl")._(30620417,"938"),tracePolicy:"comet.jewel.messenger.communities",traceType:"INTERACTION"})),t(!1),z(!1),D==null?void 0:D(function(b){return a})},selectedFolderTab:C})})]}),d("I64").equal(C,d("LsSystemFolderInterop.bs").inbox)?i.jsx(c("MWInboxQuickPromotionWrapper.react"),{onError:v,children:i.jsx(c("CometMessagingJewelDropdownQPBannerContainer.react"),{queryRef:a})}):null]});F=d("MessengerDesktopDeepLinkUtils").useMessengerDesktopWindowsDeeplinkSwitcher;g=F();c("qex")._("940")?a=i.jsx(c("MWJewelMessengerAppLinkV2.react"),{onClick:y,url:B}):g?a=i.jsx(c("MWJewelMessengerAppLinkLocalhostWithFallback.react"),{fallbackUrl:B,onClick:y}):a=I?i.jsx(c("MWJewelMessengerAppLink.react"),{onClick:y}):i.jsx(c("MWJewelMessengerLink.react"),{onClick:y,url:B});return i.jsx(c("CometHeroInteractionWithDiv.react"),{interactionDesc:"CommunitiesTabOnJewel",interactionUUID:E.current,children:i.jsxs(c("CometTopNavListDropdown.react").Card,{testid:void 0,useFullHeight:x,useMaxHeight:!0,children:[x&&d("I64").equal(C,d("LsSystemFolderInterop.bs").community)?i.jsx(c("CometPlaceholder.react"),{fallback:i.jsxs(i.Fragment,{children:[G,i.jsx(c("CometSettingsListDropdownLoadingState.react").InnerGlimmer,{})]}),children:i.jsx(p,{gridLabel:u.toString(),header:i.jsxs(i.Fragment,{children:[G,i.jsx(c("CometErrorBoundary.react"),{onError:v,children:i.jsx(c("CometPlaceholder.react"),{fallback:null,children:i.jsx(c("CometTransientDialogProvider.react"),{children:i.jsx(c("CometMessagingJewelCommunitiesQPBannerContainer.react"),{messagingEntryPoint:"jewel",onClose:y,queryRef:f})})})})]}),lsEntryPoint:"jewel",messagingEntryPoint:"jewel",onClose:y,responsive:!1})}):i.jsx(d("MWThreadList.bs").make,{gridLabel:u.toString(),header:G,lsEntryPoint:"jewel",onClickNestedFolderThread:H,onClose:y,onOpenMessageRequests:A,parentThreadKey:C,responsive:!1}),a]})})}y.displayName=y.name+" [from "+f.id+"]";function a(a){var b=a.errorBoundaryXstyle;a=babelHelpers.objectWithoutPropertiesLoose(a,["errorBoundaryXstyle"]);return i.jsx(c("CometErrorBoundary.react"),{fallback:function(a){return i.jsx(t,{error:a,xstyle:[b,w.errorBoundary]})},children:i.jsx(y,babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";b=e(a);g["default"]=b}),98); __d("CometMessagingJewelDropdown.react",["fbt","BaseMultiStepContainer.react","CometMessagingJewelDropdownContent.react","CometTopNavListDropdown.react","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){var b=a.props.onClose;a=a.queries;var d=a.qpBannerCommunitiesContainerQueryRef,e=a.qpBannerContainerQueryRef;a=i.jsx("div",{className:c("stylex")([c("CometTopNavListDropdown.react").styles.cardWidth]),children:i.jsx(c("BaseMultiStepContainer.react"),{fitContentWidth:!0,children:function(a){return i.jsx(c("CometMessagingJewelDropdownContent.react"),{errorBoundaryXstyle:c("CometTopNavListDropdown.react").styles.cardWidth,onClose:b,pushPage:a,qpBannerCommunitiesContainerQueryRef:d,qpBannerContainerQueryRef:e})}})});return i.jsx(c("CometTopNavListDropdown.react"),{label:h._("__JHASH__ptC-BqtItMK__JHASH__"),name:"MWJewelDropdown",children:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWInboxContextSwitcher.react",["fbt","CometPivotLinkTabs.react","I64","LsSystemFolderInterop.bs","MWChatBadgeCountUpdates.bs","MWInboxPersistedUIState","MWPBumpEntityKey.re","MessagingThreadType.re","ReQL","ReQLSuspense","cr:3408","cr:3437","react","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useEffect,k=(e=b("cr:3408"))!=null?e:function(){return!1},l={inboxTabContainer:{paddingStart:"xkhd6sd",paddingEnd:"x4uap5",paddingTop:"x1y1aw1k",paddingBottom:"xwib8y2",$$css:!0},tabContainer:{paddingStart:"x1swvt13",paddingEnd:"x1pi30zi",paddingTop:"x1y1aw1k",paddingBottom:"xwib8y2",$$css:!0}};function a(a){var e=a.entryPoint,f=a.onTabChange,g=a.selectedFolderTab,m=c("useReStore")();j(function(){b("cr:3437")!=null&&m.runInTransaction(function(a){return b("cr:3437")(a)},"readwrite","background")},[m]);a=!!d("ReQLSuspense").useFirst(function(){var a=[d("ReQL").fromTableDescending(m.table("threads").index("threadTypeLastActivityTimestampMs")).getKeyRange(c("MessagingThreadType.re").communityBroadcastJoinedThread),d("ReQL").fromTableDescending(m.table("threads").index("threadTypeLastActivityTimestampMs")).getKeyRange(c("MessagingThreadType.re").communityGroup),d("ReQL").fromTableDescending(m.table("threads").index("threadTypeLastActivityTimestampMs")).getKeyRange(c("MessagingThreadType.re").communityPrivateHiddenJoinedThread)];return d("ReQL").union.apply(void 0,a)},[m]);var n=k(),o=d("MWInboxPersistedUIState").usePersistedUIState(n,"__MWInboxContextSwitcher.hasViewedSuggestedChats__"),p=o[0],q=o[1];o=d("MWChatBadgeCountUpdates.bs").useHook(d("LsSystemFolderInterop.bs").inbox);o=o!=null&&o>0;var r=d("MWChatBadgeCountUpdates.bs").useHasUnseenCommunityThreads(),s=n&&!p;o=[{folder:d("LsSystemFolderInterop.bs").inbox,hasNewContentBadge:o,isShown:!0,label:h._("__JHASH__4dBM4WjAtAu__JHASH__"),odsAction:"inbox_tab_click"},{folder:d("LsSystemFolderInterop.bs").community,hasNewContentBadge:r||s,isShown:a||n,label:h._("__JHASH___yDrE8px4gt__JHASH__"),odsAction:"communities_tab_click"}];r=o.filter(function(a){return a.isShown}).map(function(a,b){var c=a.folder;b=a.hasNewContentBadge;a.isShown;var h=a.odsAction;a=babelHelpers.objectWithoutPropertiesLoose(a,["folder","hasNewContentBadge","isShown","odsAction"]);return babelHelpers["extends"]({},a,{hasNewContentBadge:b,onPress:function(){c===d("LsSystemFolderInterop.bs").community&&n&&!p&&q(!0),d("MWPBumpEntityKey.re").bumpEntityKeyWithAppId("mw.contextswitcher."+e,h),f(c)},selected:d("I64").equal(c,g)})});return i.jsx(c("CometPivotLinkTabs.react"),{linkType:"deemphasized",tabs:r,tabsContainerStyle:e==="inbox"?l.inboxTabContainer:l.tabContainer})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWInboxContextSwitcherCond.react",["cr:4067","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){return b("cr:4067")?h.jsx(b("cr:4067"),babelHelpers["extends"]({},a)):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("TetraMWJewelThreadAddOnSecondaryIcons",["ix","TetraIcon.react","fbicon","react"],(function(a,b,c,d,e,f,g,h){"use strict";a=d("react");b=a.jsx(c("TetraIcon.react"),{color:"disabled",icon:d("fbicon")._(h("569284"),16)});g.bell=b}),98); __d("MWJewelLightspeedSearchTypeaheadViewList.react",["CometScrollView.react","MWChatSearchLightspeedTypeaheadViewList.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={scroll:{maxHeight:"xo4cw3p",$$css:!0}};function a(a){var b=a.xstyle;a=babelHelpers.objectWithoutPropertiesLoose(a,["xstyle"]);return h.jsx(c("CometScrollView.react"),{showsHorizontalScrollIndicator:!1,xstyle:[i.scroll,b],children:h.jsx(c("MWChatSearchLightspeedTypeaheadViewList.react"),babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWJewelSearchEmptyState.react",["fbt","TetraText.react","react","useCometTypeaheadEmptyState"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){var b=c("useCometTypeaheadEmptyState")();return b?i.jsxs("div",{className:"xz9dl7a xn6708d xsag5q8 x1ye3gou",children:[i.jsx(c("TetraText.react"),{align:"center",type:"body2",children:h._("__JHASH__kjfZwRT5xYf__JHASH__")}),i.jsx("br",{}),i.jsx(c("TetraText.react"),{align:"center",color:"tertiary",type:"body3",children:h._("__JHASH__vJvyHT-oIpm__JHASH__",[h._param("query",a.queryString)])})]}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useBaseTypeaheadSubscriptionDataSourceFetchResolverNetwork",["react"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useCallback,i=b.useEffect,j=b.useRef,k=b.useState;function a(a){var b=a.dataSource;a=k(!1);var c=a[0],d=a[1],e=j(null);a=h(function(a){var c,f=a.onResolvePayload;a=a.requestParams;(c=e.current)==null?void 0:c.unsubscribe();e.current=b.fetchNetwork(a).subscribe({complete:function(){d(!1)},error:function(a){d(!1)},next:function(a){return f(a)},start:function(a){d(!0)},unsubscribe:function(){d(!1)}})},[b]);i(function(){return function(){var a;(a=e.current)==null?void 0:a.unsubscribe()}},[]);return[{isLoading:c},a]}g["default"]=a}),98); __d("useBaseTypeaheadSubscriptionDataSourceFetchResolver",["cometTypeaheadODSLogFetchNetworkEvent","cr:2557","react","recoverableViolation","useBaseTypeaheadSubscriptionDataSourceFetchResolverNetwork","useDebouncedComet"],(function(a,b,c,d,e,f,g){"use strict";e=d("react");var h=e.useCallback,i=e.useEffect,j=e.useRef;function a(a,d){var e=a.dataSource,f=a.dataSourceFetchConfigParams;f=f===void 0?{}:f;var g=f.requestFlow;f=f.shouldDebounceNetwork;var k=f===void 0?!0:f,l=a.onResolvePayload;f=c("useBaseTypeaheadSubscriptionDataSourceFetchResolverNetwork")({dataSource:e});a=f[0].isLoading;var m=f[1],n=c("useDebouncedComet")(m),o=h(function(a,b){var d=b.isTraceComplete;b=b.source;try{l(a,{isTraceComplete:d,source:b})}catch(a){c("recoverableViolation")("Failed to resolve fetched payload","search")}return b},[l]),p=j(g),q=h(function(a){o(a,{isTraceComplete:!0,source:a.entries.length>0?"network":"network-no-results"}),c("cometTypeaheadODSLogFetchNetworkEvent")&&c("cometTypeaheadODSLogFetchNetworkEvent")("comet.ta.fetch",!0,1),b("cr:2557")&&b("cr:2557")(["all"],a)},[o]);i(function(){function a(a){a=a.requestParams;var b=a.requestFlow;b!=null&&(p.current=b);b={onResolvePayload:q,requestParams:babelHelpers["extends"]({},a,{requestFlow:p.current})};Boolean(k)?n(b):m(b)}d!=null&&a(d)},[m,n,d,q,k]);return[{isLoading:a}]}g["default"]=a}),98); __d("useBaseTypeaheadSubscriptionDataSourceFetch",["react","recoverableViolation","useBaseTypeaheadSubscriptionDataSourceFetchResolver"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useCallback,i=b.useState;function a(a){var b=i(null),d=b[0],e=b[1];b=c("useBaseTypeaheadSubscriptionDataSourceFetchResolver")(a,d);a=b[0].isLoading;var f=h(function(a,b){b===void 0&&(b="all"),e({requestParams:a,source:b})},[]);b=h(function(a){a=a||{};var b=a.requestFlow;a=a.source;if(d==null){c("recoverableViolation")("Refetch cannot be called with undefined `fetchParams`","search");return}var e=d.requestParams,g=e.loggingEventTrace;e=babelHelpers.objectWithoutPropertiesLoose(e,["loggingEventTrace"]);g=babelHelpers["extends"]({loggingEventTrace:babelHelpers["extends"]({},g,{sequenceID:String(Date.now())}),requestFlow:b},e);f(g,a)},[f,d]);return[{isLoading:a,source:(a=d==null?void 0:d.source)!=null?a:"all"},f,b]}g["default"]=a}),98); __d("TypeaheadLoggingFetchRequestFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1880031");c=b("FalcoLoggerInternal").create("typeahead_logging_fetch_request",a);e.exports=c}),null); __d("CometTypeaheadVolumeLoggingProvider",["TypeaheadLoggingFetchRequestFalcoEvent","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h=function(){return Math.random().toString()};a=function(){function a(a){this.$2=null,this.$1=a,this.$2=h()}var b=a.prototype;b.getContext=function(){return this.$1};b.getSessionID=function(){this.$2==null&&c("recoverableViolation")("Logging sessionID requested from "+this.getContext()+" surface does not exist.","search");return this.$2};b.logRequest=function(a){var b={context:this.getContext(),requestType:a,sessionID:this.getSessionID()};c("TypeaheadLoggingFetchRequestFalcoEvent").log(function(){return{fetchRequest:b}})};return a}();g["default"]=a}),98); __d("useCometTypeaheadVolumeLoggingProvider",["CometTypeaheadVolumeLoggingProvider","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useMemo;function a(a){a===void 0&&(a="UNKNOWN");return h(function(){return new(c("CometTypeaheadVolumeLoggingProvider"))(a)},[a])}g["default"]=a}),98); __d("CometInternalTypeaheadSubscriptionProvider",["CometInternalTypeaheadEmptyFetchProvider","CometInternalTypeaheadFetchContext","react","useBaseTypeaheadSubscriptionDataSourceFetch","useCometInternalTypeaheadStateDispatcher","useCometTypeaheadVolumeLoggingProvider"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useMemo;function a(a){var b=a.children,d=a.dataSource,e=a.dataSourceFetchConfigParams,f=a.loggingContext,g=a.onFetchEntries_DO_NOT_USE,k=a.traceProvider;a=c("useCometInternalTypeaheadStateDispatcher")();var l=a.dispatchActiveEntries,m=c("useCometTypeaheadVolumeLoggingProvider")(f);a=c("useBaseTypeaheadSubscriptionDataSourceFetch")({dataSource:d,dataSourceFetchConfigParams:e,onResolvePayload:i(function(a,b){var c;a=a.entries;var d=b.isTraceComplete;b=b.source;l((c=a)!=null?c:[]);m.logRequest(o);g&&g(a);k&&!k.isResolved()&&(d&&(b==="cache"&&a.length>=k.getEntriesCountForVisualComplete()?k.setEndReason("max_suggestions_reached"):b==="network"?k.setEndReason("all_queries_completed"):b==="network-no-results"&&k.setEndReason("all_queries_completed_no_network_results"),k.resolve()))},[l,g,k])});f=a[0];var n=f.isLoading,o=f.source,p=a[1],q=a[2];d=j(function(){return{fetch:p,isLoading:n,refetch:q,source:o}},[p,n,q,o]);return h.jsx(c("CometInternalTypeaheadFetchContext").Provider,{value:d,children:h.jsx(c("CometInternalTypeaheadEmptyFetchProvider"),{isLoading:n,source:o,children:b})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("BaseSubscriptionTypeahead.react",["CometHeroInteractionContextPassthrough.react","CometInternalTypeahead.react","CometInternalTypeaheadStateProvider","CometInternalTypeaheadSubscriptionProvider","emptyFunction","react","useCometUniqueID","withCometTypeaheadInputStrategyShouldQueryStringFollowHighlightedEntry"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useMemo;function a(a){var b=a.autoOpen;b=b===void 0?!1:b;var d=a.autoFocus;d=d===void 0?!1:d;var e=a.isDisabled;e=e===void 0?!1:e;var f=a.errorMessage;f=f===void 0?null:f;var g=a.inputStrategyRenderer,k=a.dataSource,l=a.dataSourceFetchConfigParams,m=a.decorators,n=m===void 0?[]:m;m=a.emptyEntries_DO_NOT_USE;var o=a.id,p=a.label;p=p===void 0?"":p;var q=a.loggingContext,r=a.onBackspace;r=r===void 0?c("emptyFunction"):r;var s=a.onBlur;s=s===void 0?c("emptyFunction"):s;var t=a.onChange,u=a.onClose;u=u===void 0?c("emptyFunction"):u;var v=a.onEnter;v=v===void 0?c("emptyFunction"):v;var w=a.onEscape;w=w===void 0?c("emptyFunction"):w;var x=a.onFetchEntries_DO_NOT_USE,y=a.onFocus;y=y===void 0?c("emptyFunction"):y;var z=a.onOpen;z=z===void 0?c("emptyFunction"):z;var A=a.onPressEntry,B=a.placeholder;B=B===void 0?"":B;var C=a.shouldQueryStringFollowHighlightedEntry,D=C===void 0?!0:C;C=a.shouldQueryStringUpdateFromSelectedEntryOnClick;var E=C===void 0?!0:C;C=a.testid;C=C===void 0?"":C;C=a.traceProvider;var F=a.inputRef,G=a.viewRole;G=G===void 0?"listbox":G;var H=a.viewStrategyRenderer;a=babelHelpers.objectWithoutPropertiesLoose(a,["autoOpen","autoFocus","isDisabled","errorMessage","inputStrategyRenderer","dataSource","dataSourceFetchConfigParams","decorators","emptyEntries_DO_NOT_USE","id","label","loggingContext","onBackspace","onBlur","onChange","onClose","onEnter","onEscape","onFetchEntries_DO_NOT_USE","onFocus","onOpen","onPressEntry","placeholder","shouldQueryStringFollowHighlightedEntry","shouldQueryStringUpdateFromSelectedEntryOnClick","testid","traceProvider","inputRef","viewRole","viewStrategyRenderer"]);var I=c("useCometUniqueID")(),J=j(function(){var a=c("CometInternalTypeahead.react");n.forEach(function(b){var c=b.decorate;b=b.params;a=c(a,b)});return a},[n]),K=i(function(a){E&&t(a.label),A&&A(a)},[t,A,E]),L=j(function(){return c("withCometTypeaheadInputStrategyShouldQueryStringFollowHighlightedEntry")(g,{shouldQueryStringFollowHighlightedEntry:D})},[g,D]);p=p||B;return h.jsx(c("CometHeroInteractionContextPassthrough.react"),{clear:!0,children:h.jsx(c("CometInternalTypeaheadStateProvider"),{autoOpen:b,emptyEntries_DO_NOT_USE:m,onClose:u,onOpen:z,children:h.jsx(c("CometInternalTypeaheadSubscriptionProvider"),{dataSource:k,dataSourceFetchConfigParams:l,loggingContext:q,onFetchEntries_DO_NOT_USE:x,traceProvider:C,children:h.jsx(J,babelHelpers["extends"]({},a,{autoFocus:d,errorMessage:f,id:(b=o)!=null?b:I,inputRef:F,inputStrategyRenderer:L,isDisabled:e,label:p,onBackspace:r,onBlur:s,onChange:t,onDownArrow:c("emptyFunction"),onEnter:v,onEscape:w,onFocus:y,onHighlightEntry:c("emptyFunction"),onPressEntry:K,onShiftTab:c("emptyFunction"),onTab:c("emptyFunction"),onUpArrow:c("emptyFunction"),placeholder:B,testid:void 0,viewRole:G,viewStrategyRenderer:H}))})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LsUniversalSearchEndFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("92");c=b("FalcoLoggerInternal").create("ls_universal_search_end",a);e.exports=c}),null); __d("LsUniversalSearchQueryChangedFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("94");c=b("FalcoLoggerInternal").create("ls_universal_search_query_changed",a);e.exports=c}),null); __d("LsUniversalSearchStartFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("96");c=b("FalcoLoggerInternal").create("ls_universal_search_start",a);e.exports=c}),null); __d("LsUniversalSearchResultSelectedFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("95");c=b("FalcoLoggerInternal").create("ls_universal_search_result_selected",a);e.exports=c}),null); __d("MWJewelSearchTypeaheadHelper.bs",["bs_caml_int64","bs_int64"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=c("bs_caml_int64").to_int32(a.threadType),d=c("bs_caml_int64").to_int32(a.type_),e;switch(d){case 0:e=1;break;case 1:e=2;break;case 2:e=3;break;case 3:e=9;break;case 4:e=14;break;case 5:e=7;break;case 6:e=15;break;case 7:e=6;break;default:e=7}return{queryString:a.query,resultFbid:a.resultId,resultIndex:c("bs_int64").to_string(a.globalIndex),resultType:c("bs_caml_int64").to_int32(a.type_),threadType:c("bs_caml_int64").to_int32(a.threadType),transportType:b!==0?b!==1?3:2:1,universalSearchResultType:e}}b=a;g.getLoggingValues=b}),98); __d("UniversalSearchEndFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("844");c=b("FalcoLoggerInternal").create("universal_search_end",a);e.exports=c}),null); __d("UniversalSearchResultSelectedFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("846");c=b("FalcoLoggerInternal").create("universal_search_result_selected",a);e.exports=c}),null); __d("MWSearchLogging",["LsUniversalSearchEndFalcoEvent","LsUniversalSearchResultSelectedFalcoEvent","MWJewelSearchTypeaheadHelper.bs","UniversalSearchEndFalcoEvent","UniversalSearchResultSelectedFalcoEvent","gkx"],(function(a,b,c,d,e,f,g){"use strict";var h=c("gkx")("4438"),i=c("gkx")("4370"),j=function(a){if(a==="offline"||a==="offline_nullstate"||a==="secure")return[0];return a==="server"?[1,2]:[]};function a(a,b,e,f,g){var k=e.rawData;e=k.id;var l=2,m=3;k.isE2e&&(l=0,m=1);var n=e,o=5,p=7;e=k.serverSearchResult;if(e!=null){e=d("MWJewelSearchTypeaheadHelper.bs").getLoggingValues(e);o=e.resultType;l=e.threadType;n=e.resultFbid}var q=((e=k.renderIndex)!=null?e:-1).toString();c("LsUniversalSearchResultSelectedFalcoEvent").log(function(){return{data_sources:j(k.searchSource),instance_id:a,recipient_ids:f,result_index_without_header:q,search_result:{query_string:b,result_fbid:n,result_index:q,result_type:o},thread_type:l,ui_section:0}});c("LsUniversalSearchEndFalcoEvent").log(function(){return{end_action:6,instance_id:a,recipient_ids:f,thread_type:l}});i&&(c("UniversalSearchResultSelectedFalcoEvent").log(function(){return{data_sources:j(k.searchSource),is_epd:h||k.isEPD,search_result:{query_string:b,result_fbid:n,result_index:q,result_type:p},session_id:a,transport_type:m,ui_section:1}}),g.current||(c("UniversalSearchEndFalcoEvent").log(function(){return{end_action:7,is_epd:h||k.isEPD,session_id:a,transport_type:m}}),g.current=!0))}g.logResultSelected=a}),98); __d("UniversalSearchQueryChangedFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("843");c=b("FalcoLoggerInternal").create("universal_search_query_changed",a);e.exports=c}),null); __d("UniversalSearchStartFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("840");c=b("FalcoLoggerInternal").create("universal_search_start",a);e.exports=c}),null); __d("createMWJewelSearchTypeaheadViewStrategy.react",["CometTypeaheadProgressGlimmer.react","MWJewelLightspeedSearchTypeaheadViewList.react","MWJewelSearchEmptyState.react","MWJewelSearchTypeaheadViewItem.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){return function(b){var d=b.ariaProps,e=b.entries;b.extraViewProps;var f=b.highlightedEntry,g=b.isLoading;b.onAbandonTypeahead_DO_NOT_USE;var i=babelHelpers.objectWithoutPropertiesLoose(b,["ariaProps","entries","extraViewProps","highlightedEntry","isLoading","onAbandonTypeahead_DO_NOT_USE"]);b=e.length===0&&i.queryString.length>0;g=e.length>0&&g;return b?h.jsx(c("MWJewelSearchEmptyState.react"),{queryString:i.queryString}):h.jsxs(h.Fragment,{children:[h.jsx(c("MWJewelLightspeedSearchTypeaheadViewList.react"),{ariaProps:d,entries:e,highlightedEntry:f,xstyle:a,children:function(a){var b=a.entry,d=a.isActive;a=a.itemRole;return h.createElement(c("MWJewelSearchTypeaheadViewItem.react"),babelHelpers["extends"]({},i,{entry:b,isActive:d,key:b.key,role:a}))}}),g&&h.jsx(c("CometTypeaheadProgressGlimmer.react"),{})]})}}g["default"]=a}),98); __d("MWJewelSearchSubscriptionTypeahead.react",["fbt","BaseSubscriptionTypeahead.react","CometTypeaheadBackButton.react","CometTypeaheadInputRoundedStrategy.react","CometTypeaheadLayoutContextualStrategy.react","LsUniversalSearchEndFalcoEvent","LsUniversalSearchQueryChangedFalcoEvent","LsUniversalSearchStartFalcoEvent","MAWGating","MWChatSearchIssueLightspeedQuery.bs","MWChatSearchTypeaheadLightspeedSubscriptionDataSource","MWLSSearchIssueSearchQuerySupportedTypes.bs","MWLSThreadDisplayContext.re","MWPSearchSystem.bs","MWSearchLogging","UniversalSearchEndFalcoEvent","UniversalSearchQueryChangedFalcoEvent","UniversalSearchStartFalcoEvent","clearTimeout","createMWJewelSearchTypeaheadViewStrategy.react","gkx","react","setTimeout","useReStore","uuid"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useCallback,k=b.useMemo,l=b.useRef,m=b.useState,n={searchInput:{marginTop:"x1xmf6yo",marginEnd:"x11i5rnm",marginBottom:"x1e56ztr",marginStart:"x1mh8g0r",paddingTop:"xexx8yu",paddingEnd:"x1pi30zi",paddingBottom:"x18d9i69",paddingStart:"x1swvt13",$$css:!0},searchView:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",boxShadow:"x1gnnqk1",display:"x78zum5",minHeight:"x1vvvjs8",$$css:!0}},o=c("createMWJewelSearchTypeaheadViewStrategy.react")(),p=["1001"],q=c("gkx")("6395"),r=c("gkx")("4438"),s=c("gkx")("4370");function a(a){var b=a.onBlur,e=a.onChange,f=a.onFocus,g=a.onPressEntry,t=a.onSelectFreeformQuery,u=babelHelpers.objectWithoutPropertiesLoose(a,["onBlur","onChange","onFocus","onPressEntry","onSelectFreeformQuery"]);a=m(null);var v=a[0],w=a[1],x=l(null),y=c("useReStore")(),z=l(!1),A=c("MWLSThreadDisplayContext.re").useHook();a=k(function(){return new(c("MWChatSearchTypeaheadLightspeedSubscriptionDataSource"))({database:y,excludedIDs:[],includeGroupSearch:A!=="ChatTab"&&c("gkx")("1902857"),includeMessageSearchEntry:!1,includeRecommendations:!0,lightspeedSupportedTypes:d("MWLSSearchIssueSearchQuerySupportedTypes.bs").allSupportedTypes,source:d("MWChatSearchIssueLightspeedQuery.bs").Surfaces.universal})},[y,A]);var B=j(function(){w(null),v!=null&&(c("LsUniversalSearchEndFalcoEvent").log(function(){return{end_action:0,instance_id:v,recipient_ids:p}}),s&&(z.current||(x.current!=null&&(c("clearTimeout")(x.current),x.current=null),c("UniversalSearchEndFalcoEvent").log(function(){return{end_action:8,is_epd:r,session_id:v,transport_type:null}}),z.current=!0))),e("")},[e,v]),C=j(function(a){var b=function(){x.current!=null&&(c("clearTimeout")(x.current),x.current=null),g!=null&&g(a)};if(v==null){b();return}d("MWSearchLogging").logResultSelected(v,u.queryString,a,p,z);b()},[g,v,u.queryString]),D=j(function(){q&&d("MWPSearchSystem.bs").clearAll(y);var a=c("uuid")();w(a);z.current=!1;c("LsUniversalSearchStartFalcoEvent").log(function(){return{instance_id:a}});s&&(c("UniversalSearchStartFalcoEvent").log(function(){return{is_epd:r,session_id:a}}),c("UniversalSearchQueryChangedFalcoEvent").log(function(){return{query_length:"0",query_string:null,session_id:a}}));x.current=c("setTimeout")(function(){w(null),c("LsUniversalSearchEndFalcoEvent").log(function(){return{end_action:3,instance_id:a,recipient_ids:p}}),s&&(z.current||(c("UniversalSearchEndFalcoEvent").log(function(){return{end_action:8,is_epd:r,session_id:a,transport_type:null}}),z.current=!0))},3e4)},[y]),E=j(function(a){v!=null&&(c("LsUniversalSearchQueryChangedFalcoEvent").log(function(){return{instance_id:v,query_string:a}}),s&&c("UniversalSearchQueryChangedFalcoEvent").log(function(){return{query_length:a.length.toString(),query_string:a,session_id:v}})),e(a)},[e,v]);return i.jsx(c("BaseSubscriptionTypeahead.react"),{dataSource:a,dataSourceFetchConfigParams:d("MAWGating").isArmadillo()?{requestFlow:"network-upon-approve"}:void 0,inputExtraProps:{hideIconAnimation:!0,hideIconOnFocus:!0},inputStartContent:v?i.jsx(c("CometTypeaheadBackButton.react"),{testid:void 0}):null,inputStrategyRenderer:c("CometTypeaheadInputRoundedStrategy.react"),layoutStrategyRenderer:c("CometTypeaheadLayoutContextualStrategy.react"),loggingContext:"messenger_jewel",onBlur:b,onChange:E,onClose:B,onFocus:f,onOpen:D,onPressEntry:C,onSelectFreeformQuery:t,placeholder:h._("__JHASH__ktsKn3dbNLm__JHASH__"),queryString:u.queryString,shouldHandleCloseAfterHandlePressEntry:!0,shouldQueryStringUpdateFromSelectedEntryOnClick:!1,viewStrategyRenderer:o,xstyles:{inputXStyle:n.searchInput,viewXStyle_DO_NOT_USE:n.searchView}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useHasUnjoinedCMThreads",["MessagingThreadType.re","ReQL","ReQLSuspense","useReStore"],(function(a,b,c,d,e,f,g){"use strict";function a(){var a=c("useReStore")();return!!d("ReQLSuspense").useFirst(function(){return d("ReQL").union(d("ReQL").fromTableDescending(a.table("threads").index("threadTypeLastActivityTimestampMs")).getKeyRange(c("MessagingThreadType.re").communityBroadcastUnjoinedThread),d("ReQL").fromTableDescending(a.table("threads").index("threadTypeLastActivityTimestampMs")).getKeyRange(c("MessagingThreadType.re").communityGroupUnjoined))},[a])}g["default"]=a}),98); __d("MWThreadListMarketplaceItem.bs",["fbt","ix","LsSystemFolder.bs","MWIcon.react","MWPBumpEntityKey","MWThreadListFolderItem.bs","bs_curry","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");function a(a){var b=a.onClick,e=a.responsive,f=a.selectedThreadKey,g=a.size;a=a.thread;return j.jsx(d("MWThreadListFolderItem.bs").make,{icon:j.jsx(c("MWIcon.react"),{color:"primary",icon:d("fbicon")._(i("1027308"),32),size:56}),onClick:function(a){c("bs_curry")._1(b,d("LsSystemFolder.bs").mplace);return d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.sidebar","marketplace_threads")},responsive:e,selectedThreadKey:f,size:g,systemFolder:d("LsSystemFolder.bs").mplace,thread:a,threadName:h._("__JHASH__0Ktcc3EsRI7__JHASH__")})}a.displayName=a.name+" [from "+f.id+"]";b=a;e=b;g.make=e}),98);/*FB_PKG_DELIM*/ __d("CometProfileSwitchedToast_query.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometProfileSwitchedToast_query",selections:[{args:null,kind:"FragmentSpread",name:"useCometProfileSwitchedToast_query"}],type:"Query",abstractKey:null};e.exports=a}),null); __d("useCometProfileSwitchedToast_query.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useCometProfileSwitchedToast_query",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"actor",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},a,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"profile_type_name_for_content",storageKey:null},{alias:null,args:[{kind:"Literal",name:"height",value:32},{kind:"Literal",name:"width",value:32}],concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:"profile_picture(height:32,width:32)"},{alias:null,args:null,concreteType:"UserProfileSwitcherEligibleProfilesConnection",kind:"LinkedField",name:"profile_switcher_eligible_profiles",plural:!1,selections:[{alias:null,args:null,concreteType:"ProfileSwitcherEligibleProfile",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"profile",plural:!1,selections:[a],storageKey:null}],storageKey:null}],storageKey:null}],type:"User",abstractKey:null}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"useCometProfileSwitchMutation_query"}],type:"Query",abstractKey:null}}();e.exports=a}),null); __d("ZenonMWSendMessageMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5071220792985090"}),null); __d("ZenonMWSendMessageMutation.graphql",["ZenonMWSendMessageMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"RtcWebSendMultiwaySignalingMessageResponsePayload",kind:"LinkedField",name:"rtc_web_send_multiway_signaling_message",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"header",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"body",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"ZenonMWSendMessageMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"ZenonMWSendMessageMutation",selections:c},params:{id:b("ZenonMWSendMessageMutation_facebookRelayOperation"),metadata:{},name:"ZenonMWSendMessageMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null); __d("useCometProfileSwitchedToast",["fbt","CometListCellStrict.react","CometRelay","CometRouteURL","TetraButtonGroup.react","TetraText.react","XCometMeControllerRouteBuilder","XCometProfileControllerRouteBuilder","XCometProfileVanityControllerRouteBuilder","emptyFunction","react","useCometProfileSwitchMutation","useCometProfileSwitchTracer","useCometProfileSwitchedToast_query.graphql"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");function a(a){var e,f,g,k,l,m=a.onDismiss,n=a.previousProfileID;a=a.query;a=d("CometRelay").useFragment(i!==void 0?i:i=b("useCometProfileSwitchedToast_query.graphql"),a);e=a==null?void 0:(e=a.viewer)==null?void 0:(e=e.actor)==null?void 0:e.name;f=a==null?void 0:(f=a.viewer)==null?void 0:(f=f.actor)==null?void 0:f.id;g=a==null?void 0:(g=a.viewer)==null?void 0:(g=g.actor)==null?void 0:(g=g.profile_picture)==null?void 0:g.uri;var o=a==null?void 0:(k=a.viewer)==null?void 0:(k=k.actor)==null?void 0:(k=k.profile_switcher_eligible_profiles)==null?void 0:k.nodes.map(function(a){return(a=a.profile)==null?void 0:a.id});k=(a==null?void 0:(k=a.viewer)==null?void 0:(k=k.actor)==null?void 0:k.profile_type_name_for_content)==="PAGE";l=(l=a.viewer)==null?void 0:(l=l.actor)==null?void 0:l.username;l=l==null||l.length===0?"":c("XCometProfileVanityControllerRouteBuilder").buildURL({vanity:l});var p=d("CometRouteURL").useRouteURLPath();l=l===p;var q=c("XCometProfileControllerRouteBuilder").buildURL({}),r=d("CometRouteURL").useRouteURLParams().id;q=q===p&&r===f;p=l||q;var s=c("useCometProfileSwitchTracer")({origin:"switched_toast",originatingSurface:"switched_toast"}),t=c("useCometProfileSwitchMutation")({data:a});r=function(){(o==null?void 0:o.includes(n))&&s(function(a){t(n,a,null,"switched_toast")}),m()};f=null;l=j.jsx(c("CometListCellStrict.react"),{addOnStart:g!=null?{"aria-label":h._("__JHASH__fZU-5mdO94e__JHASH__"),linkProps:{url:c("XCometMeControllerRouteBuilder").buildURL({})},onPress:m,shape:"circle",size:48,source:{uri:g},type:"profile-photo"}:null,body:j.jsx(c("TetraButtonGroup.react"),{align:p?"start":"justify",paddingHorizontal:0,paddingTop:12,primary:p?{label:h._("__JHASH__2kACvdZJNBP__JHASH__"),onPress:r,padding:"wide",type:"secondary"}:{label:k?h._("__JHASH__--2XPIPCpnJ__JHASH__"):h._("__JHASH__GRs1INByQRl__JHASH__"),linkProps:{url:c("XCometMeControllerRouteBuilder").buildURL({})},onPress:m,type:"primary"},secondary:p?null:{label:h._("__JHASH__2kACvdZJNBP__JHASH__"),onPress:r,type:"secondary"},size:"large",wrap:"forward"}),headline:j.jsx(c("TetraText.react"),{type:"headline4",children:h._("__JHASH__AG0e6FYCEFC__JHASH__",[h._param("profile_name",e)])})});return{accessibilityAnnouncement:f,content:l,onCloseClick:m,onMouseEnter:c("emptyFunction"),profileName:e}}g["default"]=a}),98); __d("CometProfileSwitchedToast.react",["fbt","CometProfileSwitchedToast_query.graphql","CometRelay","CometToastCard.react","react","useCometProfileSwitchedToast"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");function a(a){var e=a.onDismiss,f=a.previousProfileID;a=a.query;a=d("CometRelay").useFragment(i!==void 0?i:i=b("CometProfileSwitchedToast_query.graphql"),a);f=c("useCometProfileSwitchedToast")({onDismiss:e,previousProfileID:f,query:a});return j.jsx(c("CometToastCard.react"),{accessibilityAnnouncement:f.accessibilityAnnouncement,content:f.content,headline:h._("__JHASH__H1oTPehjLo5__JHASH__",[h._param("profile_name",f.profileName)]),onCloseClick:e,onMouseEnter:function(){}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("BrowserPushCommands",[],(function(a,b,c,d,e,f){a="browser_push_ack";b="browser_push_redirect";c="browser_push_window_visible";d={ACK:a,REDIRECT:b,WINDOW_VISIBLE:c};e.exports=d}),null); __d("BrowserPushMessageRedirectUtil",["Bootloader"],(function(a,b,c,d,e,f,g){function a(a){var b="(messages)(.*?)(?:(tid=))([^&]*)";a=a.match(b);if(!a)return!0;var d=a.pop();c("Bootloader").loadModules(["FantaTabActions"],function(a){a.openTab(d)},"BrowserPushMessageRedirectUtil");return!1}g["default"]=a}),98); __d("BrowserPushMessageHandler",["BrowserPushCommands","BrowserPushMessageRedirectUtil","EventListener","URI","URISchemes","isFacebookURI"],(function(a,b,c,d,e,f,g){function h(a){if(a.data.command&&a.data.command===d("BrowserPushCommands").REDIRECT){if(typeof window.onbeforeunload==="function"&&window.onbeforeunload()===void 0)a.ports[0].postMessage({command:d("BrowserPushCommands").ACK,success:!0});else{a.ports[0].postMessage({command:d("BrowserPushCommands").ACK,success:!1});return}a=a.data.uri;if(/^([^.:/?#]+):/.test(a)&&!d("URISchemes").isAllowed(/^([^.:/?#]+):/.exec(a)[1])||!c("isFacebookURI")(new(c("URI"))(a)))throw new Error("goURI: URI scheme rejected, URI: "+a);c("BrowserPushMessageRedirectUtil")(a)&&(window.location.href=a)}}a={registerRedirectHandler:function(){c("EventListener").listen(window,"message",function(a){a.origin===""&&h(a)}),navigator.serviceWorker&&navigator.serviceWorker.addEventListener&&navigator.serviceWorker.addEventListener("message",function(a){(navigator.serviceWorker&&navigator.serviceWorker.controller&&a.target&&a.target.controller&&a.target.controller===navigator.serviceWorker.controller||new RegExp("^"+window.location.protocol+"//"+window.location.host+"$").test(a.origin))&&h(a)})}};b=a;g["default"]=b}),98); __d("BrowserPushVisibilityChanger",["BrowserPushCommands","ClientServiceWorkerMessage","Visibility"],(function(a,b,c,d,e,f,g){function h(){new(c("ClientServiceWorkerMessage"))(d("BrowserPushCommands").WINDOW_VISIBLE,null).sendViaController()}a={listenForVisibility:function(){c("Visibility").isHidden()||h(),c("Visibility").addListener(c("Visibility").VISIBLE,h)}};b=a;g["default"]=b}),98); __d("NUXWizardTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";a=function(){function a(){this.$1={}}var c=a.prototype;c.log=function(a){b("GeneratedLoggerUtils").log("logger:NUXWizardLoggerConfig",this.$1,b("Banzai").BASIC,a)};c.logVital=function(a){b("GeneratedLoggerUtils").log("logger:NUXWizardLoggerConfig",this.$1,b("Banzai").VITAL,a)};c.logImmediately=function(a){b("GeneratedLoggerUtils").log("logger:NUXWizardLoggerConfig",this.$1,{signal:!0},a)};c.clear=function(){this.$1={};return this};c.getData=function(){return babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.setEligibleSteps=function(a){this.$1.eligible_steps=b("GeneratedLoggerUtils").serializeVector(a);return this};c.setEvent=function(a){this.$1.event=a;return this};c.setEventLocation=function(a){this.$1.event_location=a;return this};c.setEventType=function(a){this.$1.event_type=a;return this};c.setExtraBloksData=function(a){this.$1.extra_bloks_data=a;return this};c.setInitializedPlatforms=function(a){this.$1.initialized_platforms=b("GeneratedLoggerUtils").serializeVector(a);return this};c.setIsInNuxCometFlow=function(a){this.$1.is_in_nux_comet_flow=a;return this};c.setIsOnBloksUI=function(a){this.$1.is_on_bloks_ui=a;return this};c.setIsOnCaa=function(a){this.$1.is_on_caa=a;return this};c.setPlatform=function(a){this.$1.platform=a;return this};c.setStage=function(a){this.$1.stage=a;return this};c.setStep=function(a){this.$1.step=a;return this};c.setTimeSinceStepsCalculated=function(a){this.$1.time_since_steps_calculated=a;return this};c.updateExtraData=function(a){a=b("nullthrows")(b("GeneratedLoggerUtils").serializeMap(a));b("GeneratedLoggerUtils").checkExtraDataFieldNames(a,g);this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.addToExtraData=function(a,b){var c={};c[a]=b;return this.updateExtraData(c)};return a}();var g={eligible_steps:!0,event:!0,event_location:!0,event_type:!0,extra_bloks_data:!0,initialized_platforms:!0,is_in_nux_comet_flow:!0,is_on_bloks_ui:!0,is_on_caa:!0,platform:!0,stage:!0,step:!0,time_since_steps_calculated:!0};f["default"]=a}),66); __d("MPushPermissionUtil",["BanzaiLogger","NUXWizardTypedLogger","gkx"],(function(a,b,c,d,e,f,g){function a(a,b){b===void 0&&(b=!1);var d=c("gkx")("910664");d&&c("BanzaiLogger").log("ChromePushPermissionEventsLoggerConfig",{event:a});if(b){d=null;b="step";a==="allow"?(d="allow",b="conversion"):a==="deny"?d="deny":a==="install_ignore"?d="ignore":a==="turn_on_attempt"&&(d="show_browser_dialog");if(d!==null){a=new(c("NUXWizardTypedLogger"))().setEvent(d).setEventType(b).setPlatform("mobile").setStep("turn_on_notification");a.logVital()}}}g.logEvent=a}),98); __d("PushRegistrationUtils",[],(function(a,b,c,d,e,f){"use strict";function g(a){var b=a.endpoint;"subscriptionId"in a&&!new RegExp("/"+a.subscriptionId+"$").test(b)&&(b+="/"+a.subscriptionId);return b}function a(a,b){var c=g(a),d=null;a.toJSON?d=a.toJSON().keys:a.keys&&(d=a.keys);return{app_id:b,push_endpoint:c,subscription_keys:JSON.stringify(d)}}f.normalizeSubscriptionEndpoint=g;f.setupPushRegistrationData=a}),66); __d("ServiceWorkerRegistration",["BrowserPaymentHandlerConfig","ClientServiceWorkerMessage","EventListener","Promise","Run","promiseDone"],(function(a,b,c,d,e,f){var g=!!navigator.serviceWorker,h={},i={name:"Facebook Pay",method:self.location.origin+"/pay"};function j(a){if(!b("BrowserPaymentHandlerConfig").enabled)return;(a=a.paymentManager)==null?void 0:(a=a.instruments)==null?void 0:a.set("Facebook",i)}function k(){var a=navigator.serviceWorker;if(!g||!a)throw new Error("serviceWorker is not supported in this browser");return a}var l={isSupported:function(){return g},registerWorkerIfUnregisteredAfterDD:function(a){b("Run").onAfterLoad(function(){l.registerWorkerIfUnregistered(a)})},registerWorkerIfUnregistered:function(a){if(h[a])return h[a];var c=k(),d=h[a]=new(b("Promise"))(function(d,e){b("promiseDone")(l.getWorkerRegistration(a),function(f){if(!f){var g=b("EventListener").listen(window,"message",function(a){(a==null?void 0:(a=a.data)==null?void 0:a.command)==="ServiceWorkerInstallError"&&e()});b("promiseDone")(b("Promise").resolve(c.register(a,{updateViaCache:"all"})),function(){g.remove(),b("promiseDone")(b("Promise").resolve(c.ready),d)})}else d(f)})});b("promiseDone")(d,function(b){h[a]=null,j(b)});return d},unregisterControllingWorker:function(){return new(b("Promise"))(function(a,c){c=new(b("ClientServiceWorkerMessage"))("unregister",{},function(){a(!0)});c.sendViaController()})},getWorkerRegistration:function(a){var b=k();return b.getRegistration(a)},isAWorkerActivated:function(){return!navigator.serviceWorker||!navigator.serviceWorker.getRegistration?b("Promise").resolve(!1):navigator.serviceWorker.getRegistration().then(function(a){return!!(a&&a.active)})}};e.exports=l}),null); __d("XAsyncPushMuteController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/notifications/settings/push/mute/",{appid:{type:"Int",required:!0},push_endpoint:{type:"String",required:!0},mute_for:{type:"Enum",enumType:0}})}),null); __d("XAsyncPushMuteStateController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/notifications/settings/push/mute/state/",{appid:{type:"Int",required:!0},push_endpoint:{type:"String",required:!0}})}),null); __d("PushRegistration",["BrowserPushMessageHandler","BrowserPushPubKey","BrowserPushVisibilityChanger","MPushPermissionUtil","Promise","PushRegistrationUtils","ServiceWorkerRegistration","XAsyncPushMuteController","XAsyncPushMuteStateController","emptyFunction","gkx","promiseDone"],(function(a,b,c,d,e,f){var g=window.Notification,h=new Map(),i=65,j=4;a=function(){"use strict";a.get=function(b,c){if(h.has(c))return h.get(c);b=new a(b,c);h.set(c,b);return b};function a(b,c){this.$3=b,this.appID=c,!a.$1&&!a.$2&&(a.$1=!1,a.$2=!1)}var c=a.prototype;c.getPushSubscription=function(){var c=this;return new(b("Promise"))(function(d,e){a.pushPermissionIsDenied()&&(b("MPushPermissionUtil").logEvent("permission_denied_or_blocked"),e(new Error("No permission or not supported"))),b("ServiceWorkerRegistration").getWorkerRegistration(c.$3).then(function(a){if(!a){d(null);return}a.pushManager.getSubscription().then(function(a){d(a)})["catch"](e)})["catch"](e)})};c.$4=function(a,c,d){a=a.getURIBuilder().getURI();c=new c(a);c.setData(b("PushRegistrationUtils").setupPushRegistrationData(d,this.appID));c.setMethod("post");c.send()};c.getMutedUntilInServer=function(a){var c=this;return new(b("Promise"))(function(d,e){c.getPushSubscription().then(function(f){if(f){f=b("PushRegistrationUtils").normalizeSubscriptionEndpoint(f);f=b("XAsyncPushMuteStateController").getURIBuilder().setString("push_endpoint",f).setInt("appid",c.appID).getURI();f=new a(f);f.listen("done",function(a){d(a.payload.muteUntilTimestampSec)});f.send()}else e("cannot check mute status for unsubscribed endpoint")})["catch"](e)})};c.muteNotifications=function(a,c){var d=this;return new(b("Promise"))(function(e,f){d.getPushSubscription().then(function(g){if(g){g=b("PushRegistrationUtils").normalizeSubscriptionEndpoint(g);g=b("XAsyncPushMuteController").getURIBuilder().setEnum("mute_for",a).setString("push_endpoint",g).setInt("appid",d.appID).getURI();g=new c(g);g.setMethod("POST");g.listen("done",function(b){a!==0&&b.payload.muteUntilTimestampSec===0?f("operation failed in server"):e(b.payload.muteUntilTimestampSec)});g.send()}else f("no subscription found")})["catch"](f)})};c.getSubscription=function(){var a=this;return new(b("Promise"))(function(c,d){a.getPushSubscription().then(function(a){a?c(b("PushRegistrationUtils").normalizeSubscriptionEndpoint(a)):c(null)})["catch"](d)})};c.maybeRegisterPushAgain=function(a,c){var d=this;return new(b("Promise"))(function(e,f){d.getPushSubscription().then(function(f){f?(d.$4(a,c,f),e(b("PushRegistrationUtils").normalizeSubscriptionEndpoint(f))):e(null)})["catch"](function(){e(null)})})};c.$5=function(c,d,e){var f=this;return new(b("Promise"))(function(b,g){if(a.$2&&!e){g(new Error("sending disable info already"));return}a.$2=!0;var h=c.getURIBuilder().getURI();h=new d(h.toString());h.setData({appid:f.appID,from_browser_settings:e});h.setMethod("post");h.listen?(h.listen("finally",b),h.listen("fail",function(){a.$2=!1,g()})):h.setErrorHandler&&h.setHandler?(h.setErrorHandler(function(){a.$2=!1,g()}),h.setHandler(b)):b();h.send()})};c.isPushRegistered=function(c,d,e,f,g,h){var i=this;g===void 0&&(g=!1);h===void 0&&(h=!1);b("BrowserPushMessageHandler").registerRedirectHandler();return new(b("Promise"))(function(j,k){i.getPushSubscription().then(function(k){j(!!k||c&&!a.pushPermissionIsPending());var l=i.$6();l=i.$7(k,l);if(k&&l)g?i.$4(d,f,k):b("BrowserPushVisibilityChanger").listenForVisibility();else if((!k||!l)&&c){k=i.$8(k,!l);a.pushPermissionIsOn()?k.then(function(a){return i.registerPush(d,f,h)})["catch"](function(){}):i.$5(e,f,!1)}})["catch"](function(){c&&i.$5(e,f,!1),h&&b("ServiceWorkerRegistration").unregisterControllingWorker(),k()})})};c.$8=function(a,c){if(!!a&&c)return a.unsubscribe().then(function(a){return!!a})["catch"](function(a){throw new Error("Unsubscribing invalid PushToken failed")});else return b("Promise").resolve(!0)};c.$7=function(a,c){if(!b("gkx")("6734"))return!0;if(!a)return!1;var d=this.$9(a);return c?!d?!1:this.$10(a,b("BrowserPushPubKey").appServerKey):!d};c.$10=function(a,b){a=this.$11(a);if(!a)return!1;a=new Uint8Array(a);a=window.btoa(String.fromCharCode.apply(null,a));a=a.replace("/","_").replace("=","");return a===b};c.$9=function(a){a=this.$11(a);if(!!a&&a.byteLength===i){a=new Uint8Array(a);return a[0]===j}return!1};c.$11=function(a){return!!a&&!!a.options&&!!a.options.applicationServerKey?a.options.applicationServerKey:null};c.$12=function(){return new(b("Promise"))(function(a,b){g.requestPermission(a)})};c.registerPushAndWaitForEndpoint=function(a,c,d){var e=this;d===void 0&&(d=!1);return new(b("Promise"))(function(b,f){e.$13(a,c,!0,null,d).then(function(a){if(typeof a!=="string"){f(new Error("registerPushImpl did not return an endpoint"));return}b(a)})["catch"](f)})};c.registerPushOnKaiOS=function(a,c,d){var e=this;return new(b("Promise"))(function(f,g){b("promiseDone")(d.waitForKaiOS(),function(){d.registerPush(function(d){d=JSON.parse(d.get("push_endpoint"));e.$4(a,c,d);f(b("PushRegistrationUtils").normalizeSubscriptionEndpoint(d))})})})};c.registerPush=function(a,c,d,e){d===void 0&&(d=!1);e===void 0&&(e=b("emptyFunction"));return this.registerPushWithFinishedCallBack(a,c,e,d)};c.registerPushWithFinishedCallBack=function(a,c,d,e){var f=this;e===void 0&&(e=!1);return new(b("Promise"))(function(b,g){f.$13(a,c,!1,d,e).then(function(a){if(typeof a!=="boolean"){g(new Error("registerPushImpl did not return a boolean"));return}b(a)})["catch"](g)})};c.$13=function(c,d,e,f,g){var h=this;if(a.$1)return new(b("Promise"))(function(a,b){b(new Error("registering already"))});if(!self.PushManager)return b("Promise").reject(new Error("PushManager not found."));a.$1=!0;return new(b("Promise"))(function(i,j){var k=b("ServiceWorkerRegistration").registerWorkerIfUnregistered(h.$3),l=h.$12();b("Promise").all([k,l]).then(function(k){var l=k[0];if(!a.pushPermissionIsOn()){g&&l.unregister();throw new Error("Push permission was denied")}e||i(!0);k=b("BrowserPushPubKey").appServerKey;var m=h.$6();m=m?{userVisibleOnly:!0,applicationServerKey:k}:{userVisibleOnly:!0};l.pushManager.subscribe(m).then(function(a){e&&i(b("PushRegistrationUtils").normalizeSubscriptionEndpoint(a)),h.$4(c,d,a),f&&f(),b("BrowserPushVisibilityChanger").listenForVisibility()})["catch"](function(b){a.$1=!1,g&&l.unregister(),j(b)})})["catch"](function(b){a.$1=!1,j(b)})})};c.$6=function(){var a=b("BrowserPushPubKey").appServerKey;return b("gkx")("1511920")&&a!=null&&a!=""};c.unregisterPushAndSWOnKaiOS=function(a,c,d,e){var f=this;return new(b("Promise"))(function(b,g){f.$5(a,c,e).then(function(){d.unregisterPush(),b()})["catch"](g)})};c.unregisterPushAndSW=function(a,c){var d=this;return new(b("Promise"))(function(e,f){d.$5(a,c,!0).then(function(){b("promiseDone")(b("ServiceWorkerRegistration").unregisterControllingWorker(),e)})["catch"](f)})};c.unregisterPushOnly=function(a,c){var d=this;return new(b("Promise"))(function(b,e){d.getPushSubscription().then(function(f){f?f.unsubscribe().then(d.$5(a,c,!0)).then(function(){b(!0)})["catch"](e):e()})["catch"](e)})};a.pushPermissionIsPending=function(){return window.Notification&&window.Notification.permission==="default"};a.pushPermissionIsOn=function(){return window.Notification&&window.Notification.permission==="granted"};a.pushPermissionIsDenied=function(){return window.Notification&&window.Notification.permission==="denied"};return a}();e.exports=a}),null); __d("XBrowserPushDisabledController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/notifications/client/push/disabled/",{})}),null); __d("XBrowserPushXOutController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/notifications/client/push/xout/",{})}),null); __d("XPushRegisterServiceWorkerController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/push/register/service_worker/",{})}),null); __d("incognito",["Promise","UserAgent","WebStorage","gkx","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";function d(){var d;return b("regeneratorRuntime").async(function(e){while(1)switch(e.prev=e.next){case 0:d=window.RequestFileSystem||window.webkitRequestFileSystem;if(!d){e.next=3;break}return e.abrupt("return",new(b("Promise"))(function(a){return d(window.TEMPORARY,10,function(){return a(!1)},function(){return a(!0)})}));case 3:if(!(c("UserAgent").isBrowser("IE >= 10")||c("UserAgent").isBrowser("Edge"))){e.next=5;break}return e.abrupt("return",!window.indexedDB);case 5:if(!c("UserAgent").isBrowser("Firefox >= 16")){e.next=7;break}return e.abrupt("return",new(b("Promise"))(function(a){var b=window.indexedDB.open("__test__");b.onsuccess=function(){return a(!1)};b.onerror=function(b){b.preventDefault(),a(!0)}}));case 7:if(!(c("gkx")("676917")&&(c("UserAgent").isPlatform("iOS")&&c("UserAgent").isBrowser("Safari >= 10.3")||c("UserAgent").isPlatform("Mac OS X")&&c("UserAgent").isBrowser("Safari >= 11.1")))){e.next=18;break}e.prev=8;a.I_AM_INCOGNITO_AND_I_REALLY_NEED_WEBSQL("sid","1.0","",0);e.next=16;break;case 12:e.prev=12;e.t0=e["catch"](8);if(!(e.t0.name==="SecurityError")){e.next=16;break}return e.abrupt("return",!0);case 16:e.next=20;break;case 18:if(!c("UserAgent").isBrowser("Safari")){e.next=20;break}return e.abrupt("return",!c("WebStorage").getLocalStorage());case 20:return e.abrupt("return",!1);case 21:case"end":return e.stop()}},null,this,[[8,12]])}g["default"]=d}),98); __d("BrowserPushDirectPromptInstallerComet",["AsyncRequest","BanzaiLogger","Promise","PushNotificationsEventEmitter","PushRegistration","QE2Logger","XBrowserPushDisabledController","XBrowserPushXOutController","XPushRegisterServiceWorkerController","incognito"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function j(a,b,d){d===void 0&&(d="prompt");b=babelHelpers["extends"]({appID:b,event:a,surface:d},h);c("BanzaiLogger").log("BrowserPushLoggerConfig",b)}function k(){h!=null&&h.xout_count===0&&i&&d("QE2Logger").logExposureForUser(i)}function l(a){var b=c("XBrowserPushXOutController").getURIBuilder().getURI();new(c("AsyncRequest"))().setURI(b).setMethod("POST").send();j("xout",a)}function a(a,b){a=c("PushRegistration").get(a,b);return a.getSubscription()}function e(a,b){a=c("PushRegistration").get(a,b);j("turn_off",b);return a.unregisterPushAndSW(c("XBrowserPushDisabledController"),c("AsyncRequest"))}function m(a,b,d,e){a=c("PushRegistration").get(a,b);j("turn_on",b);return a.registerPushWithFinishedCallBack(c("XPushRegisterServiceWorkerController"),c("AsyncRequest"),function(){},e).then(function(){c("PushNotificationsEventEmitter").emit("closeInstallPush"),j("install",b)})["catch"](function(a){c("PushNotificationsEventEmitter").emit("closeInstallPush"),c("PushRegistration").pushPermissionIsDenied()?(c("PushNotificationsEventEmitter").emit("openPushBlockedNotice",d),j("deny",b)):j("install_ignore",b),l(b)})}function f(a,d,e,f,g,h,i,j){var l=c("PushRegistration").get(a,d);l=l.isPushRegistered(e,c("XPushRegisterServiceWorkerController"),c("XBrowserPushDisabledController"),c("AsyncRequest"),!!g,i);b("Promise").all([l,c("incognito")()]).then(function(b){var e=b[0];b=b[1];if(e||b)return;k();if(c("PushRegistration").pushPermissionIsPending()){if(!j||f)return;c("PushNotificationsEventEmitter").emit("openInstallPush",{appID:d,browserName:h,path:a,workerIsForPushOnly:i})}else f||m(a,d,h,i)})["catch"](function(){c("PushNotificationsEventEmitter").emit("closeInstallPush"),c("PushRegistration").pushPermissionIsDenied()&&k()})}function n(a){h=a}function o(a){i=a}g.genPushSubscription=a;g.genDisableNotifications=e;g.genEnableNotifications=m;g.installPush=f;g.setLogExtraData=n;g.setQEUniverseName=o}),98); __d("NotificationPermissionNoticeComet.react",["fbt","Locale","react","useCometCallout"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j={calloutMaxWidth:{maxWidth:"xw5ewwj",$$css:!0},root:{left:"x1q8m99l",maxWidth:"xw5ewwj",position:"xixxii4",top:"x13vifvy",$$css:!0}};function a(a){var b=a.shortText?h._("__JHASH__A9Dnz89oPKf__JHASH__",[h._param("browser_name",a.browserName)]):h._("__JHASH___Rm1fgWzjfd__JHASH__",[h._param("browser_name",a.browserName)]),e=d("Locale").isRTL();e=e?"end":"start";e={align:e,arrowStyle:"inset",label:b,onHide:a.onHide,position:"below",type:"accent",xstyle:j.calloutMaxWidth};b=c("useCometCallout")(e,!0);return i.jsx("div",{className:"x1q8m99l xw5ewwj xixxii4 x13vifvy",ref:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("NotificationPermissionRequestComet.react",["fbt","BaseAccessibleElement_DEPRECATED.react","BaseModal.react","CometHideLayerOnEscape.react","CometVisualCompletion","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useEffect;function a(a){j(function(){window.addEventListener("mousedown",a.onClick);c("CometVisualCompletion").addAnnotationInt("pushRequestOverlay",1);return function(){window.removeEventListener("mousedown",a.onClick)}},[a.onClick]);return i.jsx(c("BaseModal.react"),{stackingBehavior:"above-everything",children:i.jsx(c("CometHideLayerOnEscape.react"),{onHide:a.onClick,children:i.jsx(c("BaseAccessibleElement_DEPRECATED.react"),{children:i.jsxs("div",{"aria-label":h._("__JHASH__oE04FVLR0CK__JHASH__"),"aria-modal":"true",role:"alertdialog",children:[h._("__JHASH__gW3M_fEDpFx__JHASH__"),i.jsx("button",{onClick:a.onClick,children:h._("__JHASH__uufiRayKSVE__JHASH__")})]})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MDSButton.react",["BaseStyledButton.react","BaseTheme.react","MDSText.react","TetraIcon.react","mergeRefs","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useRef,j={destructive:{backgroundColor:"x1wbbese",$$css:!0},disabled:{backgroundColor:"xwcfey6",$$css:!0},primary:{backgroundColor:"xtvsq51",$$css:!0},primaryDeemphasized:{backgroundColor:"x1hr4nm9",$$css:!0},secondary:{backgroundColor:"x1qhmfi1",$$css:!0},secondaryDeemphasized:{backgroundColor:"xjbqb8w",$$css:!0},sizeLarge:{height:"xc9qbxq",$$css:!0},sizeMedium:{height:"x10w6t97",$$css:!0},sizeSmall:{borderTopStartRadius:"xfh8nwu",borderTopEndRadius:"xoqspk4",borderBottomEndRadius:"x12v9rci",borderBottomStartRadius:"x138vmkv",height:"x1fgtraw",$$css:!0}},k={dark:{"disabled-button-background":"var(--secondary-button-background)","disabled-button-text":"rgba(155, 160, 168, 0.5)","primary-button-background":"#429AFF","secondary-button-background":"rgba(255, 255, 255, 0.19)",warning:"rgba(235, 52, 52, 100)"},light:{"disabled-button-background":"var(--secondary-button-background)","disabled-button-text":"rgba(134, 142, 153, 0.5)","primary-button-background":"#0A7CFF","secondary-button-background":"rgba(0, 0, 0, 0.04)",warning:"rgba(255, 41, 41, 100)"},type:"VARIABLES"},l={":deemphasized":{iconColor:"highlight",textColor:"highlight"},":disabled":{iconColor:"disabled",textColor:"disabled"},iconColor:"white",textColor:"white"},m={":deemphasized":{iconColor:"highlight",textColor:"highlight"},":disabled":{iconColor:"disabled",textColor:"disabled"},iconColor:"primary",textColor:"secondary"};function n(a){switch(a){case"secondary":return m;case"destructive":case"primary":default:return l}}function o(a,b){var c=b.disabled;b=b.reduceEmphasis;a=n(a);return(c?a[":disabled"]:null)||(b?a[":deemphasized"]:null)||a}function a(a,b){var d=a.addOnStart,e=a.disabled;e=e===void 0?!1:e;var f=a.icon,g=a.label,l=a.labelIsHidden;l=l===void 0?!1:l;var m=a.linkProps,n=a.onFocusIn,p=a.onFocusOut,q=a.onHoverIn,r=a.onHoverOut,s=a.onPress,t=a.onPressIn,u=a.onPressOut,v=a.padding;v=v===void 0?"normal":v;var w=a.reduceEmphasis;w=w===void 0?!1:w;var x=a.size;x=x===void 0?32:x;var y=a.suppressHydrationWarning;y=y===void 0?!1:y;var z=a.testid;z=a.type;z=z===void 0?"primary":z;a=babelHelpers.objectWithoutPropertiesLoose(a,["addOnStart","disabled","icon","label","labelIsHidden","linkProps","onFocusIn","onFocusOut","onHoverIn","onHoverOut","onPress","onPressIn","onPressOut","padding","reduceEmphasis","size","suppressHydrationWarning","testid","type"]);var A=o(z,{disabled:e,reduceEmphasis:w}),B=A.iconColor;A=A.textColor;var C=i(null);return h.jsx(c("BaseTheme.react"),{config:k,style:{width:"100%"},children:h.jsx(c("BaseStyledButton.react"),babelHelpers["extends"]({},a,{addOnStart:d,"aria-label":(d=a["aria-label"])!=null?d:g,content:l?null:h.jsx(c("MDSText.react"),{color:A,numberOfLines:1,type:"button2",children:g}),contentXstyle:[x===28&&j.sizeSmall,x===32&&j.sizeMedium,x===36&&j.sizeLarge],disabled:e,icon:f&&h.jsx(c("TetraIcon.react"),{color:B,icon:f,size:24}),linkProps:m,onFocusIn:n,onFocusOut:p,onHoverIn:q,onHoverOut:r,onPress:s,onPressIn:t,onPressOut:u,padding:v,ref:c("mergeRefs")(C,b),suppressHydrationWarning:y,testid:void 0,xstyle:[z==="primary"&&j.primary,z==="secondary"&&j.secondary,z==="destructive"&&j.destructive,z==="secondary"&&w&&j.secondaryDeemphasized,z==="primary"&&w&&j.primaryDeemphasized,e&&j.disabled]}))})}a.displayName=a.name+" [from "+f.id+"]";b=h.forwardRef(a);g["default"]=b}),98); __d("MDSDefaultProfilePicture.react",["fbt","react","useCometUniqueID","useSetAttributeRef"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){a=a.size;var b=c("useCometUniqueID")(),d=c("useSetAttributeRef")("id",b),e="url(#"+b+")",f=c("useSetAttributeRef")("clip-path",e);return i.jsxs("svg",{className:"x1lliihq",fill:"none",height:a,viewBox:"0 0 36 36",width:a,xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("title",{children:h._("__JHASH__GHJU3Bu9b8k__JHASH__")}),i.jsxs("g",{clipPath:e,ref:f,children:[i.jsx("path",{d:"M18 36C27.9411 36 36 27.9411 36 18C36 8.05888 27.9411 0 18 0C8.05888 0 0 8.05888 0 18C0 27.9411 8.05888 36 18 36Z",fill:"#F1F1F1"}),i.jsx("path",{clipRule:"evenodd",d:"M27.509 25.8997C28.1761 26.418 28.2142 27.3898 27.6045 27.9745C25.1057 30.371 21.714 31.8436 17.9784 31.8436C14.2428 31.8436 10.8512 30.371 8.35234 27.9746C7.74264 27.3899 7.78075 26.418 8.44782 25.8997C10.8669 24.0202 14.2885 22.8436 17.9784 22.8436C21.6683 22.8436 25.0899 24.0202 27.509 25.8997ZM17.9784 19.5709C14.8984 19.5709 12.2512 17.4366 12.2512 12.7936C12.2512 9.00661 14.663 6.47998 17.9784 6.47998C21.2939 6.47998 23.7057 9.00661 23.7057 12.7936C23.7057 17.4366 21.0584 19.5709 17.9784 19.5709Z",fill:"black",fillOpacity:"0.34",fillRule:"evenodd"})]}),i.jsx("defs",{children:i.jsx("clipPath",{id:b,ref:d,children:i.jsx("rect",{fill:"white",height:"36",width:"36"})})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MDSPhotoUtils",["Locale"],(function(a,b,c,d,e,f,g){"use strict";function a(a){switch(a){case 28:case 32:case 36:return 8;case 40:case 48:return 9;case 60:return 14;case 72:return 18;default:return 8}}function b(a){switch(a){case 28:case 32:case 36:case 40:case 48:return 2;case 60:case 72:return 4;default:return 2}}function c(a){switch(a){case 12:return[6,1.5];case 28:return[7,1.5];case 32:return[8,2];case 36:case 40:case 48:return[9,2];case 60:return[14,4];case 72:return[18,4];default:a;return[8,2]}}function e(a){a=Math.sqrt(2)*a-a;a=Math.round(Math.sqrt(a*a/2));if(d("Locale").isRTL())return{bottom:a,left:a,transform:"translate(-50%, 50%)"};else return{bottom:a,right:a,transform:"translate(50%, 50%)"}}function f(a){switch(a){case 12:case 28:case 32:return-4;case 36:case 40:case 48:return-2;case 72:return-1;default:return-4}}g.getDiagonalFacepileBadgeSize=a;g.getDiagonalFacepileCutoffSpacing=b;g.getProfilePhotoBadgeSizeAndStrokeWidth=c;g.getProfilePhotoBadgePosition=e;g.getHorizontalFacepileCutoffSpacing=f}),98); __d("MDSIcon.react",["BaseTheme.react","CometIcon.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={dark:{"secondary-button-background":"rgba(255, 255, 255, 0.14)"},light:{"secondary-button-background":"rgba(0, 0, 0, 0.04)"},type:"VARIABLES"};function a(a){var b=a.backgroundEnabled;b=b===void 0?!1:b;a=babelHelpers.objectWithoutPropertiesLoose(a,["backgroundEnabled"]);a=h.jsx(c("CometIcon.react"),babelHelpers["extends"]({},a));return b?h.jsx(c("BaseTheme.react"),{config:i,children:h.jsx("div",{className:"x6s0dn4 x1qhmfi1 x14yjl9h xudhj91 x18nykt9 xww2gxu x78zum5 xl56j7k x1iorvi4 x150jy0e xjkvuk6 x1e558r4",children:a})}):a}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MDSProfilePhotoAvailabilityBadge.react",["BaseTheme.react","CometProfilePhotoAvailabilityBadge.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={dark:{positive:"#45D658"},light:{positive:"#31CC46"},type:"VARIABLES"};function a(a){a=a.size;return h.jsx(c("BaseTheme.react"),{config:i,children:h.jsx(c("CometProfilePhotoAvailabilityBadge.react"),{pressed:!1,size:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MDSProfilePhoto.react",["fbt","BaseImage.react","BaseSvgImage.react","CometPressable.react","CometProfilePhotoLastActiveTimeBadge.react","MDSDefaultProfilePicture.react","MDSPhotoUtils","MDSProfilePhotoAvailabilityBadge.react","getImageSourceURLFromImageish","react","useCometUniqueID","useSetAttributeRef"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useEffect,k=b.useState,l={badge:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",position:"x10l6tqk",zIndex:"xhtitgo",$$css:!0},badgeWithLastActiveTime:{bottom:"x1ey2m1c",display:"x78zum5",end:"xds687c",justifyContent:"x13a6bvl",start:"x17qophe",$$css:!0},insetSVG:{fill:"xbh8q5q",stroke:"x1pwv2dq",strokeWidth:"xvlca1e",$$css:!0},photo:{verticalAlign:"x3ajldb",$$css:!0},pressable:{color:"xzsf02u",display:"x1rg5ohu",$$css:!0},pressed:{transform:"x1n5d1j9",$$css:!0},svgOverlay:{fill:"x1tgjyoi",$$css:!0},wrapper:{display:"x1rg5ohu",position:"x1n2onr6",verticalAlign:"x3ajldb",zIndex:"x1ja2u2z",$$css:!0}};function a(a,b){var e=a.addOn,f=a.alt,g=f===void 0?h._("__JHASH__GHJU3Bu9b8k__JHASH__"):f;f=a.cursorDisabled;var n=a.isOverlapped,o=n===void 0?!1:n;n=a.linkProps;var p=a.onHoverIn,q=a.onHoverOut,r=a.onPress,s=a.onPressIn,t=a.size,u=a.source,v=a.testid;v=babelHelpers.objectWithoutPropertiesLoose(a,["addOn","alt","cursorDisabled","isOverlapped","linkProps","onHoverIn","onHoverOut","onPress","onPressIn","size","source","testid"]);a=k(!1);var w=a[0],x=a[1],y=function(){return x(!0)};j(function(){x(!1)},[u]);var z=c("useCometUniqueID")(),A=c("useSetAttributeRef")("id",z),B="url(#"+z+")",C=c("useSetAttributeRef")("mask",B),D=function(a,b){var f=a.overlay;a=a.pressed;var h=d("MDSPhotoUtils").getProfilePhotoBadgeSizeAndStrokeWidth(t),j=h[0];h=h[1];var k=t/2,l=(e==null?void 0:e.type)!=="lastActiveTimeBadge"?d("MDSPhotoUtils").getProfilePhotoBadgePosition(k):{},n=e!=null?i.jsx("div",{className:"x14yjl9h xudhj91 x18nykt9 xww2gxu x10l6tqk xhtitgo"+(e.type==="lastActiveTimeBadge"?" x1ey2m1c x78zum5 xds687c x13a6bvl x17qophe":""),style:babelHelpers["extends"]({},l),children:i.jsx(m,{addOn:e,pressed:a,size:t})}):null,p=u.uri,q=c("getImageSourceURLFromImageish")(p);l=!w&&typeof p!=="string"&&q!==""?i.jsx(c("BaseImage.react"),{alt:g,height:t,onError:y,src:q,style:{borderRadius:"50%",verticalAlign:"bottom"},width:t}):i.jsxs("svg",{"aria-label":g,className:"x3ajldb",role:"img",style:{height:t,width:t},children:[i.jsx("title",{children:g}),i.jsxs("mask",{id:z,ref:A,suppressHydrationWarning:!0,children:[i.jsx("circle",{cx:k,cy:k,fill:"white",r:k}),n!=null&&(e==null?void 0:e.type)!=="lastActiveTimeBadge"&&i.jsx("circle",{cx:(q=l.left)!=null?q:t-((q=l.right)!=null?q:0),cy:(q=l.top)!=null?q:t-((q=l.bottom)!=null?q:0),fill:"black",r:Math.max(0,j/2+h)}),o&&i.jsx("circle",{cx:-k+4,cy:k,fill:"black",r:k+2})]}),i.jsxs("g",{mask:B,ref:C,suppressHydrationWarning:!0,children:[!w&&typeof p==="string"&&p!==""?i.jsx(c("BaseSvgImage.react"),{onError:y,src:p,style:{height:t,width:t},x:0,y:0}):i.jsx(c("MDSDefaultProfilePicture.react"),{size:t}),i.jsx("circle",{className:"x1pwv2dq xvlca1e"+(a?" x1tgjyoi":" xbh8q5q"),cx:k,cy:k,r:k})]})]});return i.jsxs("div",{className:"x1rg5ohu x1n2onr6 x3ajldb x1ja2u2z",ref:b,children:[l,f,n]})};return!r&&!n?D({pressed:!1},b):i.jsx(c("CometPressable.react"),babelHelpers["extends"]({},v,{cursorDisabled:f,linkProps:n,onHoverIn:p,onHoverOut:q,onPress:r,onPressIn:s,overlayRadius:"50%",ref:b,testid:void 0,xstyle:function(a){a=a.pressed;return[l.pressable,a&&l.pressed]},children:function(a){var b=a.overlay;a=a.pressed;return D({overlay:b,pressed:a},null)}}))}a.displayName=a.name+" [from "+f.id+"]";function m(a){var b=a.addOn,e=a.pressed;a=a.size;switch(b.type){case"availabilityBadge":a=d("MDSPhotoUtils").getProfilePhotoBadgeSizeAndStrokeWidth(a);a=a[0];return i.jsx(c("MDSProfilePhotoAvailabilityBadge.react"),{size:a});case"lastActiveTimeBadge":return i.jsx(c("CometProfilePhotoLastActiveTimeBadge.react"),{border:b.border,pressed:e,time:b.time});default:return null}}m.displayName=m.name+" [from "+f.id+"]";e=i.forwardRef(a);g["default"]=e}),98); __d("legacy:cookie",["Cookie"],(function(a,b,c,d,e,f){a.getCookie=b("Cookie").get,a.setCookie=b("Cookie").set,a.clearCookie=b("Cookie").clear}),3); __d("ZenonLoggingEventTypes",["$InternalEnum"],(function(a,b,c,d,e,f){"use strict";a=b("$InternalEnum").Mirrored(["Send","Receive"]);c=b("$InternalEnum")({Primary:"primary",Secondary:"secondary"});d="rtc_www";f.ZenonUpdateIceInfoDirection=a;f.ZenonJoinMode=c;f.tslogSource=d}),66); __d("ZenonIGMediaUtil",["ZenonAppProvider","gkx"],(function(a,b,c,d,e,f,g){"use strict";a={shouldUseSFUOnly:function(){return d("ZenonAppProvider").isInstagramApp()&&c("gkx")("6662")}};b=a;g["default"]=b}),98); __d("ZenonMediaModeManager",["UserAgent","ZenonIGMediaUtil","ZenonInfraActionsLogger","ZenonSignalingProtocol","qex"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(){this.$1="sfu"}var b=a.prototype;b.onJoin=function(a,b,d,e){var f=h()&&!d;if(e||f||c("ZenonIGMediaUtil").shouldUseSFUOnly()){this.$2("sfu");return}e=this.$3(a,b,d);switch(e){case c("ZenonSignalingProtocol").MWPP:this.$2("p2p");return;case c("ZenonSignalingProtocol").MW:this.$2("sfu");return}};b.onDeescalated=function(){this.$2("p2p")};b.onSfuEscalated=function(){this.$2("sfu")};b.getMediaMode=function(){return this.$1};b.$2=function(a){this.$1=a,c("ZenonInfraActionsLogger").updateCachedValues({mediaPath:a}),c("ZenonInfraActionsLogger").logCheckpoint({checkpoint:"Media mode updated to "+a,mediaPath:a})};b.$3=function(a,b,d){if(a)return!c("UserAgent").isBrowser("Firefox")&&b===1?c("ZenonSignalingProtocol").MWPP:c("ZenonSignalingProtocol").MW;else return d?c("ZenonSignalingProtocol").MWPP:c("ZenonSignalingProtocol").MW};return a}();function h(){var a;return(a=c("qex")._("80")||c("qex")._("1331"))!=null?a:!1}g.ZenonMediaModeManager=a;g.shouldUseSFUMediaPath=h}),98); __d("ZenonJoiningContext",[],(function(a,b,c,d,e,f){"use strict";b="joining_context";function a(a){var b=a.groupThreadID,c=a.peerID;a=a.serverInfoData;return{group_thread_id:b,peer_id:c,server_info_data:a}}f.JOINING_CONTEXT_TOPIC=b;f.convertCollisionToJoiningContext=a}),66); __d("ZenonMWMessageLogger",["ZenonLoggingEventTypes","ZenonMWMessageTypes"],(function(a,b,c,d,e,f,g){"use strict";var h=new Set(),i=new Set();function a(a,b){a=a.jsonPayload;var c=a.body;a=a.header;if(h.has(a.transactionId))return;switch(a.type){case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.JOIN:c.joinRequest&&j(c.joinRequest,b);break;case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.ICE_CANDIDATE:c.iceCandidateRequest&&l(c.iceCandidateRequest,b,d("ZenonLoggingEventTypes").ZenonUpdateIceInfoDirection.Send);break;case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.CLIENT_MEDIA_UPDATE:c.clientMediaUpdateRequest&&m(c.clientMediaUpdateRequest,b);break;case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.SERVER_MEDIA_UPDATE:c.serverMediaUpdateResponse&&p(c.serverMediaUpdateResponse,b);break}h.add(a.transactionId)}function b(a,b){a=a.jsonPayload;var c=a.body;a=a.header;if(i.has(a.transactionId))return;switch(a.type){case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.JOIN:c.joinResponse&&k(c.joinResponse,b);break;case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.ICE_CANDIDATE:c.iceCandidateRequest&&l(c.iceCandidateRequest,b,d("ZenonLoggingEventTypes").ZenonUpdateIceInfoDirection.Receive);break;case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.CLIENT_MEDIA_UPDATE:c.clientMediaUpdateResponse&&n(c.clientMediaUpdateResponse,b);break;case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.SERVER_MEDIA_UPDATE:c.serverMediaUpdateRequest&&o(c.serverMediaUpdateRequest,b);break}i.add(a.transactionId)}function j(a,b){var c=a.answer;a=a.offer;b({name:"inviteSent"});q(a,b,d("ZenonLoggingEventTypes").ZenonUpdateIceInfoDirection.Send);c&&q(c,b,d("ZenonLoggingEventTypes").ZenonUpdateIceInfoDirection.Send)}function k(a,b){a=a.answer;a&&q(a,b,d("ZenonLoggingEventTypes").ZenonUpdateIceInfoDirection.Receive)}function l(a,b,c){a=a.iceCandidateSdps;a.forEach(function(a){a.candidateSdpString!=null&&b({direction:c,name:"updateIceInfo",sdpString:a.candidateSdpString})})}function m(a,b){a=a.offer;a&&q(a,b,d("ZenonLoggingEventTypes").ZenonUpdateIceInfoDirection.Send)}function n(a,b){a=a.answer;a&&q(a,b,d("ZenonLoggingEventTypes").ZenonUpdateIceInfoDirection.Receive)}function o(a,b){var c=a.answer;a=a.offer;a&&q(a,b,d("ZenonLoggingEventTypes").ZenonUpdateIceInfoDirection.Receive);c&&q(c,b,d("ZenonLoggingEventTypes").ZenonUpdateIceInfoDirection.Receive)}function p(a,b){a=a.answer;a&&q(a,b,d("ZenonLoggingEventTypes").ZenonUpdateIceInfoDirection.Send)}function q(a,b,c){a.sdpString!=null&&b({direction:c,name:"updateIceInfo",sdpString:a.sdpString})}g.logSentMessage=a;g.logReceivedMessage=b}),98); __d("IGDOverLSMqttChannel",["CurrentUser","Env","MqttChannel","MqttEnv","MqttEnvInitializer","MqttWebConfig"],(function(a,b,c,d,e,f,g){"use strict";c("MqttEnvInitializer").initialize();function h(a){d("MqttEnv").setIsUserLoggedInNow(c("CurrentUser").isLoggedIn);var b=c("CurrentUser").getAppID()==null?936619743392459:Number(c("CurrentUser").getAppID());return new(c("MqttChannel"))({appId:b,capabilities:c("MqttWebConfig").capabilities,chatVisibility:!0,clientCapabilities:c("MqttWebConfig").clientCapabilities,clientType:"cookie_auth",deviceId:a,endpoint:c("Env").ig_mqtt_wss_endpoint||"wss://edge-chat.instagram.com/chat",initialSubscribedTopics:c("MqttWebConfig").subscribedTopics,phpOverride:c("MqttWebConfig").hostNameOverride,pollingEndpoint:c("Env").ig_mqtt_polling_endpoint||"https://edge-chat.instagram.com/mqtt/pull",userFbid:c("CurrentUser").getPossiblyNonFacebookUserID()})}var i=null;function a(a){if(i==null){i=h(a);return i}else return i}function b(){i!=null&&(i.shutdown(),i=null)}g.getInstance=a;g.shutdownAndClear=b}),98); __d("ZenonMqttChannel",["CurrentUser","MqttChannel","MqttEnv","MqttEnvInitializer","MqttWebConfig"],(function(a,b,c,d,e,f,g){"use strict";c("MqttEnvInitializer").initialize();d("MqttEnv").setIsUserLoggedInNow(c("CurrentUser").isLoggedIn);a=c("CurrentUser").getAppID()!=null?Number(c("CurrentUser").getAppID()):c("MqttWebConfig").appID;b=new(c("MqttChannel"))({appId:a,capabilities:c("MqttWebConfig").capabilities,chatVisibility:!1,clientCapabilities:c("MqttWebConfig").clientCapabilities,endpoint:c("MqttWebConfig").endpoint,initialSubscribedTopics:c("MqttWebConfig").subscribedTopics,phpOverride:c("MqttWebConfig").hostNameOverride,pollingEndpoint:c("MqttWebConfig").pollingEndpoint,userFbid:c("MqttWebConfig").fbid});e=b;g["default"]=e}),98); __d("ZenonMqttUtil",["CurrentUser","FBMqttChannel","IGDOverLSMqttChannel","RpWebMqttEnabledAppIds","ZenonAppProvider","ZenonMqttChannel"],(function(a,b,c,d,e,f,g){"use strict";var h=new Set(c("RpWebMqttEnabledAppIds").APP_IDS);function a(){if(d("ZenonAppProvider").isInstagramApp())return d("IGDOverLSMqttChannel").getInstance();else return h.has(Number(c("CurrentUser").getAppID()))?c("ZenonMqttChannel"):c("FBMqttChannel")}g.getMqttChannel=a}),98); __d("ZenonMWMessageReliabilityLogger",["$InternalEnum","ChannelClientID","DateConsts","ODS","QPLMsgTypesSitevarConfig","QPLUserFlow","ZenonActorHooks","ZenonMWMessageMap","ZenonMqttUtil","justknobx","qpl"],(function(a,b,c,d,e,f,g){"use strict";var h=new Map(),i=new Map(),j=b("$InternalEnum").Mirrored(["RECEIVED_REQUEST","RECEIVED_RESPONSE","PROCESSING_REQUEST","START_PROCESSING_RESPONSE","PROCESSING_RESPONSE","PROCESSED_REQUEST","PROCESSED_RESPONSE","SENDING_REQUEST","SENDING_RESPONSE","SENT_REQUEST","SENT_REQUEST_FROM_HANDLER","SENT_RESPONSE","SEND_REQUEST_FAILED","SEND_REQUEST_FAILED_FROM_HANDLER","SEND_RESPONSE_FAILED","SENT_SM_EVENT","PROCESSED_SM_EVENT","STUCK_IN_SIGNALING_STATE_MACHINE","STUCK_IN_CONNECTION_STATE_MACHINE","STUCK_IN_PEER_CONNECTION_STATE_MACHINE","STUCK_IN_SCTP_STATE_MACHINE","RECEIVED_REQUEST_IN_TERMINATED_STATE"]);function a(a,b,c){a=i.get(a);if(!a)return;x(a,b,c)}function e(a){o(a)?x(a,j.RECEIVED_RESPONSE):x(a,j.RECEIVED_REQUEST)}function f(a){o(a)?x(a,j.PROCESSING_RESPONSE):x(a,j.PROCESSING_REQUEST)}function k(a){o(a)?x(a,j.PROCESSED_RESPONSE):x(a,j.PROCESSED_REQUEST)}function l(a){o(a)?x(a,j.SENDING_RESPONSE):x(a,j.SENDING_REQUEST)}function m(a){o(a)?x(a,j.SENT_RESPONSE):x(a,j.SENT_REQUEST)}function n(a,b){var c=o(a)?j.SEND_RESPONSE_FAILED:j.SEND_REQUEST_FAILED;x(a,c,{errorMessage:b})}function o(a){a=a.jsonPayload.header;return a.responseStatusCode!=null}function p(a){a=isNaN(+a)?0:+a;var b=9223372036854776e3;return Math.round(a%b)}function q(a,b){var e=a.jsonPayload.header;e=c("ZenonMWMessageMap")[e.type].toLowerCase();a=o(a)?"response":"request";switch(b){case j.RECEIVED_REQUEST:case j.RECEIVED_RESPONSE:d("ODS").bumpEntityKey(4083,"zenon_multiway","receive_"+a+"_"+e);d("ODS").flush();return;case j.PROCESSED_REQUEST:d("ODS").bumpEntityKey(4083,"zenon_multiway","processed_"+a+"_"+e);d("ODS").flush();return;case j.SENDING_RESPONSE:d("ODS").bumpEntityKey(4083,"zenon_multiway","sending_"+a+"_"+e);d("ODS").flush();return;case j.SENT_RESPONSE:case j.SENT_REQUEST:d("ODS").bumpEntityKey(4083,"zenon_multiway","sent_"+a+"_"+e);d("ODS").flush();return;default:return}}var r=30*d("DateConsts").MS_PER_SEC,s=d("ZenonMqttUtil").getMqttChannel(),t=new Map(),u={connectionState:"",peerConnectionState:"",signalingState:""};function v(a){var b=babelHelpers["extends"]({},u,a);if(u.connectionState!==b.connectionState||u.peerConnectionState!==b.peerConnectionState||u.signalingState!==b.signalingState){u=b;for(var b=h.keys(),d=Array.isArray(b),e=0,b=d?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=b.length)break;f=b[e++]}else{e=b.next();if(e.done)break;f=e.value}f=f;c("QPLUserFlow").addAnnotations(c("qpl")._(398988976,"737"),{string:babelHelpers["extends"]({},a)},{instanceKey:+f})}}}function w(a,b,e){var f=a.jsonPayload.header,g=String(Date.now()),h=a.endpoint;h=h.appId!==""?String(h.appId):d("ZenonActorHooks").ZenonActor.getAppID();var i=c("ZenonMWMessageMap")[f.type].toLowerCase();if(!c("QPLMsgTypesSitevarConfig").QPL_MSG_TYPES.includes(i))return;var k=p(f.transactionId);switch(b){case j.RECEIVED_REQUEST:var l;c("QPLUserFlow").start(c("qpl")._(398988976,"737"),{annotations:{string:babelHelpers["extends"]({},u,{client_session_id:f.clientSessionId,conference_name:f.conferenceName,data:JSON.stringify({extra_data:JSON.stringify(babelHelpers["extends"]({},e,{responseSubCode:f.responseSubCode})),response_status_code:String(f.responseStatusCode)}),event_name:b,messageTags:JSON.stringify((l=f.messageTags)!=null?l:[]),messageType:i,mqttState:s.getConnectionState(),retry_count:String(f.retryCount),server_info_data:f.serverInfoData,tc:g,transaction_id:f.transactionId,version:"1",web_app_id:h,web_device_id:c("ChannelClientID").getID()})},instanceKey:k,timeoutInMs:r});if(a.jsonPayload.body.serverMediaUpdateRequest){l=a.jsonPayload.body.serverMediaUpdateRequest;a=l.answer;var m=l.offer;l=l.update;c("QPLUserFlow").addAnnotations(c("qpl")._(398988976,"737"),{string:{sdpType:m?"offer":a?"answer":l?"delta":"empty"}},{instanceKey:k})}m={onMQTTStateChanged:function(a){c("QPLUserFlow").addPoint(c("qpl")._(398988976,"737"),"mqtt_"+a,{instanceKey:k})}};s.subscribeChannelEvents(m);t.set(k,m);return;case j.PROCESSED_REQUEST:c("QPLUserFlow").addPoint(c("qpl")._(398988976,"737"),"processed_request",{instanceKey:k});return;case j.SENDING_RESPONSE:c("QPLUserFlow").addPoint(c("qpl")._(398988976,"737"),"sending_response",{instanceKey:k});return;case j.SENT_RESPONSE:c("QPLUserFlow").endSuccess(c("qpl")._(398988976,"737"),{instanceKey:k});a=t.get(k);a&&(s.unsubscribeChannelEvents(a),t["delete"](k));return;case j.SEND_RESPONSE_FAILED:c("QPLUserFlow").endFailure(c("qpl")._(398988976,"737"),"send_response_failed",{annotations:{string:{errorMessage:e==null?void 0:e.errorMessage}},instanceKey:k});l=t.get(k);l&&(s.unsubscribeChannelEvents(l),t["delete"](k));return;case j.SENT_SM_EVENT:if((e==null?void 0:e.smEvent)!=null){m=e.smEvent;c("QPLUserFlow").addPoint(c("qpl")._(398988976,"737"),"sent_sm_event:"+m,{instanceKey:k})}return;case j.PROCESSED_SM_EVENT:if((e==null?void 0:e.smEvent)!=null){a=e.smEvent;c("QPLUserFlow").addPoint(c("qpl")._(398988976,"737"),"processed_sm_event:"+a,{instanceKey:k})}return;case j.SENT_REQUEST:c("QPLUserFlow").start(c("qpl")._(398988976,"737"),{annotations:{string:babelHelpers["extends"]({},u,{client_session_id:f.clientSessionId,conference_name:f.conferenceName,data:JSON.stringify({extra_data:JSON.stringify(babelHelpers["extends"]({},e,{responseSubCode:f.responseSubCode})),response_status_code:String(f.responseStatusCode)}),event_name:b,messageTags:JSON.stringify((l=f.messageTags)!=null?l:[]),messageType:i,mqttState:s.getConnectionState(),retry_count:String(f.retryCount),server_info_data:f.serverInfoData,tc:g,transaction_id:f.transactionId,version:"1",web_app_id:h,web_device_id:c("ChannelClientID").getID()})},instanceKey:k,timeoutInMs:r});return;case j.SENDING_REQUEST:c("QPLUserFlow").addPoint(c("qpl")._(398988976,"737"),"sending_request",{instanceKey:k});return;case j.SEND_REQUEST_FAILED:c("QPLUserFlow").endFailure(c("qpl")._(398988976,"737"),"send_request_failed",{annotations:{string:{errorMessage:e==null?void 0:e.errorMessage}},instanceKey:k});return;case j.RECEIVED_RESPONSE:c("QPLUserFlow").endSuccess(c("qpl")._(398988976,"737"),{instanceKey:k});return;default:return}}function x(a,b,d){var e;if(c("justknobx")._("855"))return;var f=a.jsonPayload.header;e=(e=h.get(f.transactionId))!=null?e:new Set();h.set(f.transactionId,e);if(b!==j.SENT_SM_EVENT&&b!==j.PROCESSED_SM_EVENT&&e.has(b))return;e.add(b);i.set(f.transactionId,a);q(a,b);w(a,b,d)}g.MWMessageReliabilityEvent=j;g.logEventForTxid=a;g.logReceivedMessage=e;g.logProcessingMessage=f;g.logProcessedMessage=k;g.logSendingMessage=l;g.logSentMessage=m;g.logSendMessageFailed=n;g.updateState=v}),98); __d("ZenonSignalingMessage",[],(function(a,b,c,d,e,f){"use strict";a=function(){function a(a,b){this.$1=a,this.$2=b}var b=a.prototype;b.getHeader=function(){return this.$1};b.getEvents=function(){return this.$2};b.setSignalingID=function(a){this.$1.signalingID=a};b.setRetryCount=function(a){this.$1.retryCount=a};return a}();f["default"]=a}),66); __d("ZenonValidateMWMessage",["FBLogger","ZenonInfraActionsLogger","ZenonMWMessageTypes"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=a.jsonPayload.header.type;if(a.jsonPayload.header.serverInfoData==null&&b!=null&&b!==d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.JOIN){c("ZenonInfraActionsLogger").logCheckpoint({checkpoint:"[ZP][DROP] No remoteSignalingID in message: "+b});c("FBLogger")("rtc_www").warn("[ZP][DROP] No remoteSignalingID in message: "+b);return!1}return!0}g["default"]=a}),98); __d("ZenonMWAddRemoveParticipantsTranslator",["ZenonMWMessageTypes","ZenonMWTranslatorUtils"],(function(a,b,c,d,e,f,g){"use strict";var h="new_room_context";function a(a,b){var c={usersToInvite:b.participants};if(b.groupThreadId!=null){b={calling_tags:2,group_thread_id:b.groupThreadId};if(b){b=[{body:{genericMessage:{data:JSON.stringify(b),topic:h}},header:{topic_DEPRECATED:h}}];c.appMessages=b}}return d("ZenonMWTranslatorUtils").createMWRequest(d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.ADD_PARTICIPANTS,a,{addParticipantsRequest:c})}function b(a,b){b={usersToRemove:b.participants};return d("ZenonMWTranslatorUtils").createMWRequest(d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.REMOVE_PARTICIPANTS,a,{removeParticipantsRequest:b})}g.NEW_ROOM_CONTEXT=h;g.toAddParticipantsRequest=a;g.toRemoveParticipantsRequest=b}),98); __d("ZenonMWApprovalTranslator",["ZenonMWMessageTypes","ZenonMWTranslatorUtils"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){var c=b.approvalStatus;b=b.targetUsers;c={approvalStatus:c,targetUsers:b};return d("ZenonMWTranslatorUtils").createMWRequest(d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.APPROVAL,a,{approvalRequest:c})}g.toApprovalRequest=a}),98); __d("ZenonMWClientEventTranslator",["ZenonMWMessageTypes","ZenonMWTranslatorUtils"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){b={clientEvents:[{type:b.clientEventType}]};return d("ZenonMWTranslatorUtils").createMWRequest(d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.CLIENT_EVENT,a,{clientEventRequest:b})}g.toClientEventRequest=a}),98); __d("ZenonMWClientMediaUpdateTranslator",["ZenonMWMessageTypes","ZenonMWTranslatorUtils"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=[];a=a.jsonPayload;var c=a.body;a=a.header;c=c.clientMediaUpdateResponse;var e=a.responseStatusCode,f=a.responseSubCode,g=a.retryAfterMsec;if(c){d("ZenonMWTranslatorUtils").addStateStoreSignalingEvents(c.stateStore,b);var h=c.answer,i=c.mediaStatus;if(h!=null&&i!=null){h=(h=h.sdpString)!=null?h:"";i=d("ZenonMWTranslatorUtils").toZenonMediaStates(i);var j={ackMessageId:a.transactionId,eventName:"localSdpResponse",hasAnswerInJoinResponse:!1,source:"clientMediaUpdate"},k=c.renegotiationOffer,l=null;k!=null&&k.sdpString!=null&&(l={sdp:k.sdpString,type:"offer",version:d("ZenonMWTranslatorUtils").getSdpVersion(k.sdpString)});k={eventName:"remoteSdpRequest",mediaPath:c.mediaPath,mediaStates:i,negotiateType:!1,renegotiationOffer:l,sdp:{sdp:h,type:"answer",version:d("ZenonMWTranslatorUtils").getSdpVersion(h)},source:"clientMediaUpdateResponse"};b.push(j);b.push(k)}i={ackMessageId:a.transactionId,acknowledgedVersion:c.currentVersion,eventName:"mediaUpdateResponse",responseStatusCode:e,responseSubCode:f,retryAfter:g};b.push(i)}return b}function b(a,b,c){b={fromVersion:b.version,mediaUpdates:[{mediaStatus:d("ZenonMWTranslatorUtils").toMWMediaStatus(b),mediaStatusEx:d("ZenonMWTranslatorUtils").toMWMediaStatusEx(b)}],toVersion:b.version};c!==void 0&&(b.offer={sdpString:c.sdp});return d("ZenonMWTranslatorUtils").createMWRequest(d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.CLIENT_MEDIA_UPDATE,a,{clientMediaUpdateRequest:b})}g.fromClientMediaUpdateResponse=a;g.toClientMediaUpdateRequest=b}),98); __d("ZenonMWConferenceStateTranslator",["ZenonMWMessageTypes","ZenonMWTranslatorUtils"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=[];a=a.jsonPayload.body.conferenceStateRequest;if(a){var c=a.appMessages,e=a.participantStates,f={eventName:"participantUpdateRequest",participantStates:new Map(),sctpUserIdNodeIdMap:new Map(),versionId:a.version},g={actorRepresentatives:new Map(),eventName:"clientInfoRequest",mediaPath:d("ZenonMWMessageTypes").ZenonMWMediaPath.UNKNOWN,userCapabilities:new Map()};Object.keys(e).forEach(function(a){var b=e[a],c=b.sctpNodeId,h=b.state;b=b.userCapabilities;f.participantStates.set(a,d("ZenonMWTranslatorUtils").fromMWParticipantState(h));c!=null&&f.sctpUserIdNodeIdMap.set(a,c);g.userCapabilities.set(a,(h=b)!=null?h:"")});b.push(f);b.push(g);a=d("ZenonMWTranslatorUtils").getCollisionContextFromAppMessages(c);if(a){c={context:a,eventName:"roomContextUpdateRequest"};b.push(c)}}return b}function b(a,b){b={currentVersion:b.requestVersionId};return d("ZenonMWTranslatorUtils").createMWResponse(d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.CONFERENCE_STATE,a,{conferenceStateResponse:b})}g.fromConferenceStateRequest=a;g.toConferenceStateResponse=b}),98); __d("ZenonMWDataMessageTranslator",["ZenonActorHooks","ZenonMWMessageTypes","ZenonMWTranslatorUtils"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=[];a=a.jsonPayload.body.dataMessageRequest;if(a){var c=a.message.header,e=d("ZenonMWTranslatorUtils").getGenericDataMessageData(a);a=d("ZenonMWTranslatorUtils").getGenericDataMessageTopic(a);if(e!=null&&a!=null){c={data:e,eventName:"genericDataMessageRequest",recipientIDs:(e=c.recipients)!=null?e:[],serviceRecipients:(e=c.serviceRecipients)!=null?e:[],topic:a};b.push(c)}}return b}function b(a,b){var c={data:b.data,topic:b.topic};return d("ZenonMWTranslatorUtils").createMWRequest(d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.DATA_MESSAGE,a,{dataMessageRequest:{message:{body:{genericMessage:c},header:{recipients:b.recipientIDs,sender:d("ZenonActorHooks").ZenonActor.getID(),serviceRecipients:b.serviceRecipients,topic_DEPRECATED:""}}}})}function c(a){return d("ZenonMWTranslatorUtils").createMWResponse(d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.DATA_MESSAGE,a,{dataMessageResponse:{deliveryResult:{}}})}g.fromDataMessageRequest=a;g.toDataMessageRequest=b;g.toDataMessageResponse=c}),98); __d("ZenonMWDismissTranslator",["ZenonMWMessageTypes","ZenonMWTranslatorUtils"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=[];a=a.jsonPayload.body.dismissRequest;if(a){var c=a.detailedReasonString;a=a.reason;a={eventName:"terminateRequest",fromJoinResponse:!1,reason:d("ZenonMWTranslatorUtils").fromMWDismissReason(a),shouldInformPeer:!0,subreason:c};b.push(a)}return b}function b(a){return d("ZenonMWTranslatorUtils").createMWResponse(d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.DISMISS,a,{})}g.fromDismissRequest=a;g.toDismissResponse=b}),98); __d("ZenonMWHangupTranslator",["ZenonMWMessageTypes","ZenonMWTranslatorUtils"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=[];a=a.jsonPayload.header;a={ackMessageId:a.transactionId,eventName:"hangupResponse"};b.push(a);return b}function b(a,b){b=b.reason;b={detailedReasonString:"",reason:d("ZenonMWTranslatorUtils").toMWHangupReason(b)};return d("ZenonMWTranslatorUtils").createMWRequest(d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.HANGUP,a,{hangupRequest:b})}g.fromHangupResponse=a;g.toHangupRequest=b}),98); __d("ZenonMWIceCandidateTranslator",["ZenonMWMessageTypes","ZenonMWTranslatorUtils"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=[];a=a.jsonPayload.body.iceCandidateRequest;if(a){a={eventName:"iceCandidateRequest",iceCandidates:a.iceCandidateSdps.map(function(a){var b;return{candidateSdpString:(b=a.candidateSdpString)!=null?b:"",sdpMid:a.sdpMid,sdpMLineIndex:a.sdpMLineIndex}})};b.push(a)}return b}function b(a){var b=[];a=a.jsonPayload.header;a={ackMessageId:a.transactionId,eventName:"iceCandidateResponse"};b.push(a);return b}function c(a){return d("ZenonMWTranslatorUtils").createMWResponse(d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.ICE_CANDIDATE,a,{})}function e(a,b){b=b.iceCandidates;b=b.map(function(a){return{candidateSdpString:a.candidateSdpString,sdpMid:a.sdpMid,sdpMLineIndex:a.sdpMLineIndex}});b={iceCandidateSdps:b};return d("ZenonMWTranslatorUtils").createMWRequest(d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.ICE_CANDIDATE,a,{iceCandidateRequest:b})}g.fromIceCandidateRequest=a;g.fromIceCandidateResponse=b;g.toIceCandidateResponse=c;g.toIceCandidateRequest=e}),98); __d("ZenonMWJoinTranslator",["RoboticsPermission","ZenonBrowsers","ZenonIGMediaUtil","ZenonInfraActionsLogger","ZenonJoiningContext","ZenonMWMessageTypes","ZenonMWTranslatorUtils","ZenonMediaModeManager","ZenonScreenShare","gkx"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=[],e=a.jsonPayload.header,f=e.responseStatusCode,g=e.responseSubCode;if(f&&f!==d("ZenonMWMessageTypes").ZenonMWResponseStatusCode.OK){g="JOIN response status code: "+f+" subcode "+((g=g)!=null?g:"[undefined]");c("ZenonInfraActionsLogger").logError({callType:"mw",checkpoint:"[ZP] Got non-OK "+g,errorDomain:"ZenonMWMessageTranslator.fromJoinResponse"});f={detailedReasonFromMW:e.responseStatusMessage,eventName:"terminateRequest",fromJoinResponse:!0,reason:d("ZenonMWTranslatorUtils").fromMWJoinResponseStatusToDismissReason(f,e.responseSubCode),shouldInformPeer:!1,subreason:g};b.push(f);return b}g=a.jsonPayload.body.joinResponse;if(!g)return b;d("ZenonMWTranslatorUtils").addStateStoreSignalingEvents(g.stateStore,b);d("ZenonMWTranslatorUtils").maybeAddOverlayConfigServerUpdateRequest(b,e);f=(a=(f=g.answer)==null?void 0:f.sdpString)!=null?a:"";a=f!=="";e={ackMessageId:e.transactionId,eventName:"localSdpResponse",hasAnswerInJoinResponse:a,source:"joinResponse"};b.push(e);if(a){e={sdp:f,type:"answer",version:d("ZenonMWTranslatorUtils").getSdpVersion(f)};a=d("ZenonMWTranslatorUtils").toZenonMediaStates(g.mediaStatusEx);f=g.renegotiationOffer;var h=null;f!=null&&f.sdpString!=null&&(h={sdp:f.sdpString,type:"offer",version:d("ZenonMWTranslatorUtils").getSdpVersion(f.sdpString)});f={eventName:"remoteSdpRequest",mediaPath:g.mediaPath,mediaStates:a,negotiateType:!1,renegotiationOffer:h,sdp:e,source:"joinResponse"};b.push(f)}a={capabilities:{addParticipantEnabled:!0,cowatchEnabled:!0,cowatchGroupEnabled:!0,multipleVideoStreamsAllowed:g.multipleVideoStreamsAllowed},eventName:"capabilitiesRequest"};b.push(a);if(g.isPendingApproval){h={eventName:"pendingApprovalRequest"};b.push(h)}e=g.groupsOfUsers;var i=new Map();e.forEach(function(a){var b=a.aliasId;a=a.users;b!=null&&a.forEach(function(a){i.set(a,b)})});f={actorRepresentatives:i,eventName:"clientInfoRequest",mediaPath:g.mediaPath,userCapabilities:new Map()};b.push(f);return b}function b(a,b,e,f){var g=b.initialSyncStates,l=b.isSecondaryJoinRole,m=b.userCapabilities;g={clientMediaMode:k(e.mediaMode),deviceCapabilities:[d("ZenonMWMessageTypes").ZenonMWCapability.SUPPORT_NEW_PARTICIPANT_STATES,d("ZenonMWMessageTypes").ZenonMWCapability.REQUIRE_FULL_SDP_IN_SMU,d("ZenonMWMessageTypes").ZenonMWCapability.SUPPORT_SDP_RENEGOTIATION,d("ZenonMWMessageTypes").ZenonMWCapability.REQUIRE_FULL_SDP_IN_SMU_OPTIMIZED].concat(c("gkx")("2870")||c("gkx")("4113")?[d("ZenonMWMessageTypes").ZenonMWCapability.SUPPORT_DELTA_SMU]:[]),mediaStatus:d("ZenonMWTranslatorUtils").toMWMediaStatus(e.mediaStates),mediaStatusEx:d("ZenonMWTranslatorUtils").toMWMediaStatusEx(e.mediaStates),offer:{},syncPayload:g?{stateStore:d("ZenonMWTranslatorUtils").toMWSyncStateStore(g)}:void 0,userCapabilities:m.get(a.userInfo.userID)};l!=null&&c("gkx")("1855")&&(g.endpointSettings={joinMode:l?d("ZenonMWMessageTypes").ZenonMWJoinMode.SECONDARY:d("ZenonMWMessageTypes").ZenonMWJoinMode.PRIMARY});m=b.isE2eeMandated===!0;c("gkx")("5709")&&(g.e2eeEnforcement={mode:m?d("ZenonMWMessageTypes").ZenonMWE2eeMode.E2EE_MANDATED:d("ZenonMWMessageTypes").ZenonMWE2eeMode.E2EE_NOT_MANDATED});e.sdp.type==="offer"&&(g.offer={sdpString:e.sdp.sdp});i(e.sdp.type)&&(g.deviceCapabilities.push(d("ZenonMWMessageTypes").ZenonMWCapability.SUPPORT_MWPP),e.sdp.type==="answer"&&(g.answer={sdpString:e.sdp.sdp}),j(m)&&g.deviceCapabilities.push(d("ZenonMWMessageTypes").ZenonMWCapability.SUPPORT_MWPP_DEESCALATION));(d("ZenonScreenShare").isDualStreamScreenSharingEnabled(e.mediaStates.tracks)||c("RoboticsPermission").is_authorized_robot)&&g.deviceCapabilities.push(d("ZenonMWMessageTypes").ZenonMWCapability.SUPPORT_MULTIPLE_VIDEO_STREAMS);l=f==null?void 0:f.otherParticipants;l&&(g.usersToCall=l);b=[];e=(e=f==null?void 0:f.roomInfo.context)!=null?e:a.roomInfo.context;if(e){var n=d("ZenonJoiningContext").convertCollisionToJoiningContext(e);m&&(n.calling_tags=2);b=[].concat(b,[{body:{genericMessage:{data:JSON.stringify(n),topic:d("ZenonJoiningContext").JOINING_CONTEXT_TOPIC}},header:{topic_DEPRECATED:d("ZenonJoiningContext").JOINING_CONTEXT_TOPIC}}])}(f==null?void 0:f.appMessages)!=null&&(b=[].concat(b,d("ZenonMWTranslatorUtils").signalingMessageAppMessagesToMWAppMessages(f.appMessages,l)));g.appMessages=b;m=d("ZenonMWTranslatorUtils").createMWRequest(d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.JOIN,a,{joinRequest:g});e&&e.serverInfoData!=null&&(m.jsonPayload.header.serverInfoData=e.serverInfoData);h(e,m.jsonPayload.header)&&(m.jsonPayload.header.conferenceType=d("ZenonMWMessageTypes").ZenonMWConferenceType.ROOM);return m}function h(a,b){return(a==null?void 0:a.peerID)!==null&&b.conferenceName===null}function i(a){return d("ZenonBrowsers").isFirefox()&&a!=="answer"?!1:!c("ZenonIGMediaUtil").shouldUseSFUOnly()}function j(a){return a||d("ZenonMediaModeManager").shouldUseSFUMediaPath()?!1:c("gkx")("4221")}function k(a){return a==="p2p"?d("ZenonMWMessageTypes").ZenonMWMediaPath.P2P:d("ZenonMWMessageTypes").ZenonMWMediaPath.SFU}g.fromJoinResponse=a;g.toJoinRequest=b}),98); __d("ZenonMWPingTranslator",["ZenonMWMessageTypes","ZenonMWTranslatorUtils"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=[];a=a.jsonPayload.header;a={ackMessageId:a.transactionId,eventName:"pingResponse"};b.push(a);return b}function b(a){var b=Object.freeze({});return d("ZenonMWTranslatorUtils").createMWRequest(d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.PING,a,{pingRequest:b})}g.fromPingResponse=a;g.toPingRequest=b}),98); __d("ZenonMWRingTranslator",["ZenonMWMessageTypes","ZenonMWTranslatorUtils"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){var c=[];a=a.jsonPayload;var e=a.body;a=a.header;e=e.ringRequest;if(e){var f=e.appMessages,g=e.caller,h=e.e2eeEnforcement,i=e.otherParticipants,j=e.ringType;g=g;j=j===d("ZenonMWMessageTypes").ZenonMWRingType.PEER_VIDEO_CALL||j===d("ZenonMWMessageTypes").ZenonMWRingType.GROUP_VIDEO_CALL||j===d("ZenonMWMessageTypes").ZenonMWRingType.LIVE_STREAM||j===d("ZenonMWMessageTypes").ZenonMWRingType.PEER_ESCALATED_AUDIO_CALL;var k=a.conferenceName;a=a.serverInfoData;var l=d("ZenonMWTranslatorUtils").getCollisionContextFromAppMessages(f);l&&(l==null?void 0:l.serverInfoData)==null&&(l.serverInfoData=a);var m=d("ZenonMWTranslatorUtils").getRoomMetadataFromAppMessages(f);h={actorID:b.actorID,eventName:"inviteRequest",inviterID:g,isE2eeMandated:(h==null?void 0:h.mode)===d("ZenonMWMessageTypes").ZenonMWE2eeMode.E2EE_MANDATED,isRemoteOfferer:!1,otherParticipants:i,requestingVideo:j,roomInfo:{context:(g=l)!=null?g:{groupThreadID:null,peerID:null,serverInfoData:a},name:k,room:m,sender:m.sender},serverInfoData:a,userID:b.userInfo.userID};f!=null&&(h.appMessages=d("ZenonMWTranslatorUtils").mwAppMessagesToSignalingAppMessages(f));c.push(h);l=(j=(i=e.offer)==null?void 0:i.sdpString)!=null?j:"";k=(g=e.mediaStatusEx)!=null?g:null;if(l!==""&&k!=null){m={sdp:l,type:"offer",version:d("ZenonMWTranslatorUtils").getSdpVersion(l)};a=d("ZenonMWTranslatorUtils").toZenonMediaStates(k);b={eventName:"remoteSdpRequest",mediaPath:e.mediaPath,mediaStates:a,negotiateType:!1,sdp:m,source:"ringRequest"};c.push(b)}}return c}function b(a,b){b=b.status;b==="IN_ANOTHER_CALL"&&(a.signalingID=null);b=d("ZenonMWTranslatorUtils").toMWDeviceStatus(b);b={deviceCapabilities:[d("ZenonMWMessageTypes").ZenonMWCapability.SUPPORT_AUDIO_DEPRECATED,d("ZenonMWMessageTypes").ZenonMWCapability.SUPPORT_VIDEO_DEPRECATED],deviceStatus:b};return d("ZenonMWTranslatorUtils").createMWResponse(d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.RING,a,{ringResponse:b})}g.fromRingRequest=a;g.toRingResponse=b}),98); __d("ZenonMWServerMediaUpdateTranslator",["FBLogger","ZenonInfraActionsLogger","ZenonMWMessageReliabilityLogger","ZenonMWMessageTypes","ZenonMWTranslatorUtils","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=[],e=a.jsonPayload,f=e.body;e=e.header;f=f.serverMediaUpdateRequest;var g=e.messageTags,i=e.transactionId;if(!f)return b;var j=f.answer,k=f.fromVersion,l=f.mediaPath,m=f.mediaStatus,n=f.multipleVideoStreamsAllowed,o=f.offer,p=f.renegotiationRequested,q=f.stateStore,r=f.toVersion;f=f.update;o=(o=o==null?void 0:o.sdpString)!=null?o:"";j=(j=j==null?void 0:j.sdpString)!=null?j:"";var s=function(){d("ZenonMWMessageReliabilityLogger").logProcessedMessage(a)};d("ZenonMWTranslatorUtils").addStateStoreSignalingEvents(q,b);if(p){p={ackMessageId:i,eventName:"initiateRenegotiationRequest",fromVersion:k,hasRemoteOffer:o!=="",mediaPath:l,messageTags:(q=g)!=null?q:[],onProcessed:s,version:r};b.push(p);if(o!==""){q=h(i,k,l,m,{sdp:o,type:"offer",version:d("ZenonMWTranslatorUtils").getSdpVersion(o)},s,g);b.push(q)}}else if(j!==""){p=h(i,k,l,m,{sdp:j,type:"answer",version:d("ZenonMWTranslatorUtils").getSdpVersion(j)},s,g);if(p.sdp.sdp!=null&&d("ZenonMWTranslatorUtils").isUnifiedPlan(p.sdp.sdp)){q={sdp:j,type:"offer",version:d("ZenonMWTranslatorUtils").getSdpVersion(j)};p.renegotiationOffer=q}b.push(p)}else if(o!==""){j=h(i,k,l,m,{sdp:o,type:"offer",version:d("ZenonMWTranslatorUtils").getSdpVersion(o)},s,g);b.push(j)}else if(f){q=h(i,k,l,m,{type:"offer",update:f,version:r},s,g);b.push(q)}else if(m){o={ackMessageId:i,eventName:"mediaUpdateRequest",mediaStates:d("ZenonMWTranslatorUtils").toZenonMediaStates(m,k,r),messageTags:(p=g)!=null?p:[],onProcessed:s};b.push(o)}else{j="Warning: unsupported SMU type. TXID: "+i;c("FBLogger")("rpweb").warn(j);c("ZenonInfraActionsLogger").logError({error:j,errorDomain:"ZenonMWServerMediaUpdateTranslator"})}d("ZenonMWTranslatorUtils").maybeAddOverlayConfigServerUpdateRequest(b,e);f={capabilities:{multipleVideoStreamsAllowed:n},eventName:"capabilitiesRequest",messageTags:(l=g)!=null?l:[]};b.push(f);return b}function h(a,b,c,e,f,g,h){return{ackMessageId:a,eventName:"remoteSdpRequest",fromVersion:b,mediaPath:c,mediaStates:d("ZenonMWTranslatorUtils").toZenonMediaStates(e),messageTags:(a=h)!=null?a:[],negotiateType:!1,onProcessed:g,sdp:f,source:"serverMediaUpdateRequest"}}function b(a,b,c,e){return i(a,(a=b.acknowledgedVersion)!=null?a:null,d("ZenonMWTranslatorUtils").toMWResponseStatusCode(b.statusCode),d("ZenonMWTranslatorUtils").toMWResponseStatusSubCode(b.subCode),c,e)}function e(a,b){return i(a,b.acknowledgedVersion,d("ZenonMWTranslatorUtils").toMWResponseStatusCode(b.statusCode),d("ZenonMWTranslatorUtils").toMWResponseStatusSubCode(b.subCode))}function f(a,b){return i(a,b.acknowledgedVersion,(a=b.responseStatusCode)!=null?a:d("ZenonMWMessageTypes").ZenonMWResponseStatusCode.CONDITIONAL_REQUEST_FAILED,b.responseSubCode)}function i(a,b,e,f,g,h){if(b==null)throw c("unrecoverableViolation")("Error creating ServerMediaUpdateResponse: acknowledgedVersion is null","messenger_web_product");b={currentVersion:b};g&&(b.mediaStatus=d("ZenonMWTranslatorUtils").toMWClientMediaStatus(g));h&&(b.answer={sdpString:h.sdp});return d("ZenonMWTranslatorUtils").createMWResponse(d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.SERVER_MEDIA_UPDATE,a,{serverMediaUpdateResponse:b},e,f)}g.fromServerMediaUpdateRequest=a;g.toServerMediaUpdateResponse=b;g.toServerMediaUpdateRenegotiationResponse=e;g.toServerMediaUpdateNoSdpResponse=f}),98); __d("ZenonMWStateSyncTranslator",["ZenonMWMessageTypes","ZenonMWTranslatorUtils"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=a.jsonPayload;var b=a.body.updateResponse;a=a.header.transactionId;if(!b)return[];var c=b.topic;b=b.version;a={ackMessageId:a,eventName:"stateSyncUpdateResponse",topic:c,version:b};return[a]}function b(a){a=a.jsonPayload.body.notifyRequest;if(!a)return[];var b=[];if(a.syncPayload!=null)d("ZenonMWTranslatorUtils").addStateStoreSignalingEvents(a.syncPayload.stateStore,b,!0);else{var c=a.data,e=a.topic;a=a.version;c={data:c,eventName:"stateSyncNotifyRequest",responseRequired:!0,topic:e,version:a};b.push(c)}return b}function c(a){a=a.jsonPayload;var b=a.body.unsubscribeResponse;a=a.header.transactionId;if(!b)return[];var c=b.topic;b=b.version;a={ackMessageId:a,eventName:"stateSyncUnsubscribeResponse",topic:c,version:b};return[a]}function e(a,b){var c=b.data,e=b.topic;b=b.version;c={data:c,topic:e,version:b};return d("ZenonMWTranslatorUtils").createMWRequest(d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.UPDATE,a,{updateRequest:c})}function f(a,b){var c=b.topic;b=b.version;c={topic:c,version:b};return d("ZenonMWTranslatorUtils").createMWResponse(d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.NOTIFY,a,{notifyResponse:c})}function h(a,b){var c=b.topic;b=b.version;c={topic:c,version:b};return d("ZenonMWTranslatorUtils").createMWRequest(d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.UNSUBSCRIBE,a,{unsubscribeRequest:c})}g.fromUpdateResponse=a;g.fromNotifyRequest=b;g.fromUnsubscribeResponse=c;g.toUpdateRequest=e;g.toNotifyResponse=f;g.toUnsubscribeRequest=h}),98); __d("ZenonMWSubscriptionTranslator",["ZenonMWMessageTypes","ZenonMWTranslatorUtils"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){b=b.subscriptions;b={subscriptions:b};return d("ZenonMWTranslatorUtils").createMWRequest(d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.SUBSCRIPTION,a,{subscriptionRequest:b})}g.toSubscriptionRequest=a}),98); __d("ZenonMWWakeupTranslator",["ZenonMWMessageTypes","ZenonMWTranslatorUtils"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=[];a=a.jsonPayload.header;a={ackMessageId:a.transactionId,eventName:"wakeupRequest"};b.push(a);return b}function b(a){var b=Object.freeze({});return d("ZenonMWTranslatorUtils").createMWResponse(d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.WAKEUP,a,{wakeupResponse:b})}g.fromWakeupRequest=a;g.toWakeupResponse=b}),98); __d("ZenonMWMessageTranslator",["ZenonActorHooks","ZenonMWAddRemoveParticipantsTranslator","ZenonMWApprovalTranslator","ZenonMWClientEventTranslator","ZenonMWClientMediaUpdateTranslator","ZenonMWConferenceStateTranslator","ZenonMWDataMessageTranslator","ZenonMWDismissTranslator","ZenonMWHangupTranslator","ZenonMWIceCandidateTranslator","ZenonMWJoinTranslator","ZenonMWMessageTypes","ZenonMWPingTranslator","ZenonMWRingTranslator","ZenonMWServerMediaUpdateTranslator","ZenonMWStateSyncTranslator","ZenonMWSubscriptionTranslator","ZenonMWTranslatorUtils","ZenonMWWakeupTranslator","ZenonSignalingMessage","gkx","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h=c("gkx")("2821")||c("gkx")("3356");function a(a){var b=a.getHeader();a=a.getEvents();if(a.length===0)throw c("unrecoverableViolation")("Unexpected Translation: called toMWMessage with empty signaling events","messenger_web_product");else{var e=a[0];switch(e.eventName){case"addParticipantsRequest":return d("ZenonMWAddRemoveParticipantsTranslator").toAddParticipantsRequest(b,e);case"clientEventRequest":return d("ZenonMWClientEventTranslator").toClientEventRequest(b,e);case"clientInfoRequest":if(a.length>=2&&a[1].eventName==="localSdpRequest"&&(a[1].sdp.type==="offer"||a[1].sdp.type==="answer"))return d("ZenonMWJoinTranslator").toJoinRequest(b,e,a[1]);break;case"genericDataMessageRequest":return d("ZenonMWDataMessageTranslator").toDataMessageRequest(b,e);case"inviteRequest":if(a.length>=3&&a[1].eventName==="clientInfoRequest"&&a[2].eventName==="localSdpRequest"&&a[2].sdp.type==="offer")return d("ZenonMWJoinTranslator").toJoinRequest(b,a[1],a[2],e);break;case"genericDataMessageResponse":return d("ZenonMWDataMessageTranslator").toDataMessageResponse(b);case"inviteResponse":return d("ZenonMWRingTranslator").toRingResponse(b,e);case"dismissResponse":return d("ZenonMWDismissTranslator").toDismissResponse(b);case"initiateRenegotiationResponse":if(a.length>=3&&a[1].eventName==="remoteSdpResponse"&&a[2].eventName==="localSdpRequest"&&a[2].sdp.type==="answer")return d("ZenonMWServerMediaUpdateTranslator").toServerMediaUpdateResponse(b,a[1],a[2].mediaStates,a[2].sdp);else return d("ZenonMWServerMediaUpdateTranslator").toServerMediaUpdateRenegotiationResponse(b,e);case"iceCandidateRequest":return d("ZenonMWIceCandidateTranslator").toIceCandidateRequest(b,e);case"iceCandidateResponse":return d("ZenonMWIceCandidateTranslator").toIceCandidateResponse(b);case"localSdpRequest":return d("ZenonMWClientMediaUpdateTranslator").toClientMediaUpdateRequest(b,e.mediaStates,e.sdp);case"mediaUpdateRequest":return d("ZenonMWClientMediaUpdateTranslator").toClientMediaUpdateRequest(b,e.mediaStates);case"mediaUpdateResponse":return d("ZenonMWServerMediaUpdateTranslator").toServerMediaUpdateNoSdpResponse(b,e);case"participantUpdateResponse":return d("ZenonMWConferenceStateTranslator").toConferenceStateResponse(b,e);case"pingRequest":return d("ZenonMWPingTranslator").toPingRequest(b);case"remoteSdpResponse":return e.type==="offer"&&(a.length>=2&&a[1].eventName==="localSdpRequest"&&a[1].sdp.type==="answer")?h&&a[1].mediaMode!=="p2p"?d("ZenonMWServerMediaUpdateTranslator").toServerMediaUpdateResponse(b,e,a[1].mediaStates):d("ZenonMWServerMediaUpdateTranslator").toServerMediaUpdateResponse(b,e,a[1].mediaStates,a[1].sdp):d("ZenonMWServerMediaUpdateTranslator").toServerMediaUpdateResponse(b,e);case"removeParticipantsRequest":return d("ZenonMWAddRemoveParticipantsTranslator").toRemoveParticipantsRequest(b,e);case"stateSyncNotifyResponse":return d("ZenonMWStateSyncTranslator").toNotifyResponse(b,e);case"stateSyncUnsubscribeRequest":return d("ZenonMWStateSyncTranslator").toUnsubscribeRequest(b,e);case"stateSyncUpdateRequest":return d("ZenonMWStateSyncTranslator").toUpdateRequest(b,e);case"subscriptionRequest":return d("ZenonMWSubscriptionTranslator").toSubscriptionRequest(b,e);case"terminateRequest":return d("ZenonMWHangupTranslator").toHangupRequest(b,e);case"usersApprovalRequest":return d("ZenonMWApprovalTranslator").toApprovalRequest(b,e);case"wakeupResponse":return d("ZenonMWWakeupTranslator").toWakeupResponse(b)}}return null}function b(a){var b=a.jsonPayload.header;if(!i(b))throw c("unrecoverableViolation")("Ignoring MW message; receiver does not match self ID","messenger_web_product");var e=b.type,f=b.responseStatusCode==null;b=d("ZenonMWTranslatorUtils").mwMessageHeaderToSignalingMessageHeader(b);var g=[];switch(e){case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.RING:f&&(g=d("ZenonMWRingTranslator").fromRingRequest(a,b));break;case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.DISMISS:f&&(g=d("ZenonMWDismissTranslator").fromDismissRequest(a));break;case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.JOIN:f||(g=d("ZenonMWJoinTranslator").fromJoinResponse(a));break;case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.ICE_CANDIDATE:f?g=d("ZenonMWIceCandidateTranslator").fromIceCandidateRequest(a):g=d("ZenonMWIceCandidateTranslator").fromIceCandidateResponse(a);break;case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.CONFERENCE_STATE:f&&(g=d("ZenonMWConferenceStateTranslator").fromConferenceStateRequest(a));break;case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.CLIENT_MEDIA_UPDATE:f||(g=d("ZenonMWClientMediaUpdateTranslator").fromClientMediaUpdateResponse(a));break;case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.SERVER_MEDIA_UPDATE:f&&(g=d("ZenonMWServerMediaUpdateTranslator").fromServerMediaUpdateRequest(a));break;case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.PING:f||(g=d("ZenonMWPingTranslator").fromPingResponse(a));break;case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.HANGUP:f||(g=d("ZenonMWHangupTranslator").fromHangupResponse(a));break;case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.DATA_MESSAGE:f&&(g=d("ZenonMWDataMessageTranslator").fromDataMessageRequest(a));break;case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.UPDATE:f||(g=d("ZenonMWStateSyncTranslator").fromUpdateResponse(a));break;case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.UNSUBSCRIBE:f||(g=d("ZenonMWStateSyncTranslator").fromUnsubscribeResponse(a));break;case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.NOTIFY:f&&(g=d("ZenonMWStateSyncTranslator").fromNotifyRequest(a));break;case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.WAKEUP:f&&(g=d("ZenonMWWakeupTranslator").fromWakeupRequest(a))}return new(c("ZenonSignalingMessage"))(b,g)}function i(a){var b=c("gkx")("1877");return d("ZenonActorHooks").ZenonActor.isInstagramUser()||a.receiverUserId==null||a.receiverUserId===d("ZenonActorHooks").ZenonActor.getID()||b&&((b=a.receiver)==null?void 0:b.baseId)===d("ZenonActorHooks").ZenonActor.getAccountID()}g.toMWMessage=a;g.toSignalingMessage=b}),98); __d("ZenonMWSendMessageMutation",["CometRelayEnvironmentFactory","CometRelayErrorHandling","Promise","RelayFBEnvironmentDefinitions","ZenonMWSendMessageMutation.graphql","cr:1012418","gkx","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h;function i(a,e){return new(b("Promise"))(function(f,g){b("cr:1012418").commitMutation(k(e),{mutation:h!==void 0?h:h=b("ZenonMWSendMessageMutation.graphql"),onCompleted:function(a){return f(a)},onError:function(a){c("gkx")("708253")&&d("CometRelayErrorHandling").markErrorAsHandled(a);return g(a)},variables:{input:{message:a}}})})}function j(a){a=a.rtc_web_send_multiway_signaling_message;var b=null,c=null;a!=null&&(a.header!=null&&(b=JSON.parse(a.header)),a.body!=null&&(c=JSON.parse(a.body)));return{body:c,header:b}}function a(a,c){var d;return b("regeneratorRuntime").async(function(e){while(1)switch(e.prev=e.next){case 0:e.next=2;return b("regeneratorRuntime").awrap(i(a,c));case 2:d=e.sent;return e.abrupt("return",j(d));case 4:case"end":return e.stop()}},null,this)}function k(a){return d("RelayFBEnvironmentDefinitions").createEnvironment(d("CometRelayEnvironmentFactory").configEnvironment({actorID:a}))}g.sendMessage=a}),98); __d("ZenonGraphQLMWMessageSender",["ChannelClientID","Promise","ZenonActorHooks","ZenonDebugLogger","ZenonInfraActionsLogger","ZenonMWMessageLogger","ZenonMWMessageReliabilityLogger","ZenonMWMessageTranslator","ZenonMWMessageTypes","ZenonMWSendMessageMutation","ZenonMWTranslatorUtils","ZenonValidateMWMessage","err","regeneratorRuntime","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(){}var e=a.prototype;e.handleResponse=function(a){var b=a.header||null;a=a.body||null;var e=c("ZenonDebugLogger").getInstance();if(b!=null&&a!=null){var f;f={endpoint:{appId:d("ZenonMWTranslatorUtils").getMWAppID(),deviceId:c("ChannelClientID").getID(),userId:(f=b.receiverUserId)!=null?f:d("ZenonActorHooks").ZenonActor.getID()},jsonPayload:{body:a,header:b}};e.logMWMessage("RECEIVED","GraphQL",f);d("ZenonMWMessageReliabilityLogger").logReceivedMessage(f);a=d("ZenonMWMessageTranslator").toSignalingMessage(f);if(this.$1!=null)this.$1(a),d("ZenonMWMessageReliabilityLogger").logProcessingMessage(f);else throw c("unrecoverableViolation")("Should never have null message receiver","rtc_www")}};e.$3=function(a){var e,f,g;return b("regeneratorRuntime").async(function(h){while(1)switch(h.prev=h.next){case 0:e=c("ZenonDebugLogger").getInstance();d("ZenonMWMessageReliabilityLogger").logSendingMessage(a);e.logMWMessage("SENDING","GraphQL",a);this.$2&&d("ZenonMWMessageLogger").logSentMessage(a,this.$2);h.prev=4;h.next=7;return b("regeneratorRuntime").awrap(d("ZenonMWSendMessageMutation").sendMessage(JSON.stringify(a),a.endpoint.userId));case 7:f=h.sent;d("ZenonMWMessageReliabilityLogger").logSentMessage(a);this.handleResponse(f);h.next=18;break;case 12:h.prev=12,h.t0=h["catch"](4),g=h.t0!=null?h.t0.toString():"Message Send Error",d("ZenonMWMessageReliabilityLogger").logSendMessageFailed(a,"[GraphQL] "+g),e.logSendMultiwayMessageFailure(g,a.jsonPayload.header.type),h.t0!=null&&c("ZenonInfraActionsLogger").logCheckpoint({checkpoint:"Failed to send MW message of type "+a.jsonPayload.header.type+". Stack Trace: "+h.t0.stack+"."});case 18:case"end":return h.stop()}},null,this,[[4,12]])};e.sendMessage=function(a){a=d("ZenonMWMessageTranslator").toMWMessage(a);if(!a||!c("ZenonValidateMWMessage")(a))return b("Promise").reject(c("err")("Invalid MW message"));var e=a.jsonPayload.header.type;return a.endpoint.userId!==d("ZenonActorHooks").ZenonActor.getAccountID()||e!==d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.DATA_MESSAGE?this.$3(a):b("Promise").reject(c("err")("GraphQL only sends DATA_MESSAGE for Page users"))};e.setMessageReceiver=function(a){this.$1=a};e.setLoggingEventHandler=function(a){this.$2=a};return a}();g["default"]=a}),98); __d("XRefererFrameController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/common/referer_frame.php",{})}),null); __d("isDollyFBURI",["isFacebookURI"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return c("isFacebookURI")(a)&&a.getSubdomain()==="store"}g["default"]=a}),98); __d("isMetaDotComURI",[],(function(a,b,c,d,e,f){var g=new RegExp("(^|\\.)meta\\.com$","i"),h=["https"];function a(a){if(a.isEmpty()&&a.toString()!=="#")return!1;return!a.getDomain()&&!a.getProtocol()?!0:h.indexOf(a.getProtocol())!==-1&&g.test(a.getDomain())}f["default"]=a}),66); __d("isWhatsAppBlogURI",[],(function(a,b,c,d,e,f){var g=new RegExp("^blog\\.whatsapp\\.com$","i"),h=["https"];function a(a){if(a.isEmpty()&&a.toString()!=="#")return!1;return!a.getDomain()&&!a.getProtocol()?!1:h.indexOf(a.getProtocol())!==-1&&g.test(a.getDomain())}f["default"]=a}),66); __d("ControlledReferer",["Bootloader","CookieConsent","XRefererFrameController","getRequestConstUri","gkx","isDollyFBURI","isInstagramURI","isInternalFBURI","isMessengerDotComURI","isMetaDotComURI","isOculusDotComURI","isWhatsAppBlogURI","isWorkplaceDotComURI","justknobx","lowerFacebookDomain"],(function(a,b,c,d,e,f,g){var h=c("justknobx")._("452");function i(a,b,d){if(!c("CookieConsent").isThirdPartyIframeAllowed(a)){c("Bootloader").loadModules(["ODS"],function(a){a.bumpEntityKey(2966,"defer_cookies","block_controlled_referer_iframe")},"ControlledReferer");return}var e=!1;function f(){if(e)return;var c=a.contentWindow.location.pathname;if(c!=="/intern/common/referer_frame.php"&&c!=="/common/referer_frame.php"&&c!=="/common/referer_frame.php/")return;e=!0;a.contentWindow.document.body.style.margin=0;b()}var g;c("isMessengerDotComURI")(c("getRequestConstUri")())||c("justknobx")._("186")&&c("isInstagramURI")(c("getRequestConstUri")())||c("isWhatsAppBlogURI")(c("getRequestConstUri")())||c("isMetaDotComURI")(c("getRequestConstUri")())||c("isDollyFBURI")(c("getRequestConstUri")())?g=c("XRefererFrameController").getURIBuilder().getURI().toString():c("isOculusDotComURI")(c("getRequestConstUri")())?g="/common/referer_frame.php":c("isWorkplaceDotComURI")(c("getRequestConstUri")())&&c("gkx")("5626")?g="/common/referer_frame.php":h&&c("isInternalFBURI")(c("getRequestConstUri")())||!h&&!c("lowerFacebookDomain").isValidDocumentDomain()?g="/intern/common/referer_frame.php":g=c("XRefererFrameController").getURIBuilder().getURI().toString();d==null&&c("isWorkplaceDotComURI")(c("getRequestConstUri")())&&(d="workplace");d&&(g+="?fb_source="+d);a.onload=f;a.src=g}function a(a,b,c){i(a,function(){a.contentWindow.document.body.innerHTML=b},c)}g.shouldUseFacebookReferer=i;g.useFacebookRefererHtml=a}),98); __d("StaticContainer.react",["React"],(function(a,b,c,d,e,f,g){var h=d("React");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.shouldComponentUpdate=function(a){return!!a.shouldUpdate};c.render=function(){var a=this.props.children;return a===null||a===!1?null:h.Children.only(a)};return b}(h.Component);g["default"]=a}),98); __d("ControlledRefererIFrame.react",["ControlledReferer","ControlledRefererIFrameConfig","SecurePostMessage","StaticContainer.react","TrustedTypesNoOpPolicy_DO_NOT_USE","URI","isTruthy","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var e=b.prototype;e.mountFrameRef=function(a){this.frame=a};e.updateFrame=function(){var a=this,b=this.frame;if(!b)return;this.props.onBeforeFrameRender&&this.props.onBeforeFrameRender(this.props);d("ControlledReferer").shouldUseFacebookReferer(b,function(){var e=b.contentWindow.document;e.body.innerHTML=c("TrustedTypesNoOpPolicy_DO_NOT_USE").createHTML('\n
\n '+d("ControlledRefererIFrameConfig").additional_markup+"\n ");var f=new(c("URI"))(a.props.src).qualify(),g=e.getElementById("theform");g.action=f.toString();f=f.getQueryData();for(var h in f)if(Object.prototype.hasOwnProperty.call(f,h)){var i=e.createElement("input");i.name=h;i.setAttribute("value",f[h]);i.autocomplete="off";i.type="hidden";g.appendChild(i)}i='\n \n ';if(c("isTruthy")(a.props.useTrustedHtml)){g=c("TrustedTypesNoOpPolicy_DO_NOT_USE").createHTML(e.body.innerHTML+i);a.props.onFrameRender&&a.props.onFrameRender(a.props);e.body.innerHTML=g}else e.body.innerHTML+=i;a.props.onFrameRender&&a.props.onFrameRender(a.props)})};e.componentDidMount=function(){this.updateFrame()};e.componentDidUpdate=function(a){a.src!==this.props.src&&this.updateFrame()};e.UNSAFE_componentWillReceiveProps=function(a){var b=this.frame;b&&(a.width!==this.props.width||a.height!==this.props.height)&&(a.width!=null&&(b.width=""+a.width),a.height!=null&&(b.height=""+a.height))};e.render=function(){var a=this,b=this.props;b.src;b.onFrameRender;b.onBeforeFrameRender;b.useTrustedHtml;b=babelHelpers.objectWithoutPropertiesLoose(b,["src","onFrameRender","onBeforeFrameRender","useTrustedHtml"]);return h.jsx(c("StaticContainer.react"),{children:h.jsx("iframe",babelHelpers["extends"]({},b,{ref:function(b){return a.mountFrameRef(b)}}))})};e.postMessage=function(a,b){this.frame&&c("SecurePostMessage").sendMessageToSpecificOrigin(this.frame.contentWindow,a,b)};return b}(h.PureComponent);g["default"]=a}),98);/*FB_PKG_DELIM*/ __d("useEventCallbackOn",["react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useEffect;function a(a,b,c){h(function(){a.addEventListener(b,c);return function(){a.removeEventListener(b,c)}},[a,b,c])}g["default"]=a}),98); __d("useIsBackgrounded",["emptyFunction","react","useEventCallbackOn"],(function(a,b,c,d,e,f,g){"use strict";f=d("react");var h=f.useCallback,i=f.useState;function b(){var b=a.document;if(typeof b.hidden!=="undefined")return"visibilitychange";else if(typeof b.mozHidden!=="undefined")return"mozvisibilitychange";else if(typeof b.msHidden!=="undefined")return"msvisibilitychange";else if(typeof b.webkitHidden!=="undefined")return"webkitvisibilitychange";return"visibilitychange"}function j(){var b=a.document;if(typeof b.hidden!=="undefined")return b.hidden;else if(typeof b.mozHidden!=="undefined")return b.mozHidden;else if(typeof b.msHidden!=="undefined")return b.msHidden;else if(typeof b.webkitHidden!=="undefined")return b.webkitHidden;return!1}var k=b();function l(b){var c=a.document.hasFocus?a.document.hasFocus():!0,d=j();return d||(b?!1:!c)}function m(){return j()}function e(b){var d=(b==null?void 0:b.noPauseOnBlurOrFocus)===!0,e=i(function(){return l(d)}),f=e[0],g=e[1];e=i(function(){return m()});var j=e[0],n=e[1],o=!!b&&b.scrollTerminatesHiddenOrBlurred===!0;e=h(function(){g(l(d)),n(m())},[g,d]);b=e;var p=h(function(){var a=l(d);a&&o&&f&&g(!1)},[f,d,o]);d&&(b=c("emptyFunction"));c("useEventCallbackOn")(a.window,"blur",b);c("useEventCallbackOn")(a.window,"focus",b);c("useEventCallbackOn")(a.document,k,e);c("useEventCallbackOn")(a.window,"scroll",p);return{isDocumentHidden:j,isDocumentHiddenOrBlurred:f}}g["default"]=e}),98); __d("VideoPlayerViewabilityProvider.react",["VideoPlayerViewabilityContexts","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.children,c=a.isDesktopPictureInPicture,e=a.isFullscreen;a=a.videoPlayerPassiveViewabilityInfo;return h.jsx(d("VideoPlayerViewabilityContexts").VideoPlayerPassiveViewabilityInfoContext.Provider,{value:a,children:h.jsx(d("VideoPlayerViewabilityContexts").VideoPlayerDesktopPictureInPictureContext.Provider,{value:c,children:h.jsx(d("VideoPlayerViewabilityContexts").VideoPlayerFullscreenContext.Provider,{value:e,children:b})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("wrapWithContextProviders",["react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a,b){return b.reduceRight(function(a,b){return b(a)},a)}a.displayName=a.name+" [from "+f.id+"]";function b(a,b){return function(c){return h.jsx(a.Provider,{value:b,children:c})}}g.wrapWithContextProviders=a;g.makeRenderProviderFn=b}),98); __d("VideoPlayerComponentContainer.react",["CometVisualCompletionAttributes","VideoPlayerContexts","VideoPlayerHooks","VideoPlayerViewabilityProvider.react","clearTimeout","cr:1269159","react","setTimeout","wrapWithContextProviders"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");e=d("react");var i=e.useCallback,j=e.useEffect,k=e.useRef,l=e.useState;function m(a){var b=k(a);j(function(){b.current=a},[a]);var d=l(!1),e=d[0],f=d[1];d=l(function(){var a=null;return{cleanup:function(){a&&a()},pingNotIdle:function(){a&&a();f(!1);var d=c("setTimeout")(function(){f(!0)},b.current);a=function(){c("clearTimeout")(d),a=null}}}});d=d[0];var g=d.cleanup;d=d.pingNotIdle;j(function(){return g},[g]);return{isIdle:e,pingNotIdle:d}}function n(){var a=l(!1),b=a[0],c=a[1];a=3e3;a=m(a);var d=a.isIdle,e=a.pingNotIdle;a=i(function(){c(!0),e()},[e]);var f=i(function(){c(!1),e()},[e]),g=i(function(){c(!0),e()},[e]),h=i(function(){e()},[e]),j=i(function(){e()},[e]);return{isHovering:b,isIdle:d,onMouseDown:h,onMouseEnter:a,onMouseLeave:f,onMouseMove:g,onMouseUp:j}}function o(a){var b=n(),e=b.isHovering,f=b.isIdle,g=b.onMouseDown,i=b.onMouseEnter,j=b.onMouseLeave,k=b.onMouseMove;b=b.onMouseUp;var l=d("VideoPlayerHooks").useIsFullscreen();return h.jsx("div",babelHelpers["extends"]({className:"x5yr21d x10l6tqk x13vifvy xh8yej3"+(l&&f?" xjfk50j":"")},c("CometVisualCompletionAttributes").IGNORE,{onMouseDown:g,onMouseEnter:i,onMouseLeave:j,onMouseMove:k,onMouseUp:b,children:h.jsx(d("VideoPlayerContexts").VideoPlayerMouseHoverContext.Provider,{value:e,children:h.jsx(d("VideoPlayerContexts").VideoPlayerMouseIdleContext.Provider,{value:f,children:a.children})})}))}o.displayName=o.name+" [from "+f.id+"]";function a(a){var e=a.children;a=babelHelpers.objectWithoutPropertiesLoose(a,["children"]);var f=a.adClientToken,g=a.audioAvailabilityInfo,i=a.autoplayGatingResult,j=a.broadcastStatus,k=a.canAutoplay,m=a.controller,n=a.dimensions,p=a.initialTracePolicy,q=a.instanceKey,r=a.isDesktopPictureInPicture,s=a.isFullscreen,t=a.isNCSR,u=a.isPremiumMusicVideo,v=a.lastMuteReason,w=a.lastPauseReason,x=a.lastPlayReason,y=a.videoFBID,z=a.videoPixelsAspectRatio,A=a.videoPlayerPassiveViewabilityInfo,B=a.videoState,C=a.volumeSetting,D=B.activeCaptions,E=B.activeEmsgBoxes,F=B.availableVideoQualities,G=B.bufferEnd,H=B.captionDisplayStyle,I=B.captionsLoaded,J=B.captionsVisible,K=B.currentVideoQuality,L=B.duration,M=B.ended,N=B.error,O=B.inbandCaptionsAutogenerated,P=B.inPlayStalling,Q=B.isAbrEnabled,R=B.isExternalMedia,S=B.isLiveRewindActive,T=B.lastPlayedTimeMs,U=B.latencyLevel,V=B.loopCount,W=B.loopCurrent,X=B.muted,Y=B.paused,Z=B.playerImplementationName,aa=B.playing,ba=B.seekableRanges,ca=B.seeking,da=B.selectedVideoQuality,ea=B.stalling,fa=B.streamInterrupted,ga=B.targetAudioQuality,ha=B.targetPlaybackRate,ia=B.targetVideoQuality,$=B.volume;B=B.watchTimeMs;e=h.jsx(o,{children:e});$=l($);var ja=$[0];$=$[1];b("cr:1269159")(q,{controller:m,coreVideoStates:a,videoPlayerPassiveViewabilityInfo:A});e=d("wrapWithContextProviders").wrapWithContextProviders(e,[d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").VideoFBIDContext,y),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").StallingContext,ea),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").PlayingContext,aa),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").InPlayStallingContext,P),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").BufferEndContext,G),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").LastMuteReasonContext,v),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").LastPlayReasonContext,x),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").LastPauseReasonContext,w),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").PausedContext,Y),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").CurrentVideoQualityContext,K),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").MutedContext,X),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").VolumeContext,{setVolume:$,volume:ja}),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").SelectedVideoQualityContext,da),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").SeekingContext,ca),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").DurationContext,L),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").EndedContext,M),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").ErrorContext,N),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").DimensionsContext,n||null),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").InstanceKeyContext,q),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").ControllerContext,m),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").AvailableVideoQualitiesContext,F),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").PlayerImplementationNameContext,Z),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").IsAbrEnabledContext,Q),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").TargetAudioQualityContext,ga),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").TargetVideoQualityContext,ia),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").PlaybackRateContext,ha),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").CanAutoplayContext,k),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").VolumeSettingContext,C),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").AutoplayGatingResultContext,i),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").BroadcastStatusContext,j),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").LoopCountContext,V),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").LoopCurrentContext,W),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").AdClientTokenContext,f),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").ActiveCaptionsContext,D),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").CaptionsVisibleContext,J),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").CaptionDisplayStyleContext,H),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").CaptionsLoadedContext,I),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").InbandCaptionsAutogeneratedContext,O),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").StreamInterruptedContext,fa),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").WatchTimeContext,B),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").LastPlayedTimeContext,T),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").SeekableRangesContext,ba),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").LatencyLevelContext,U),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").IsLiveRewindActiveContext,S),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").AudioAvailabilityInfoContext,g),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").IsNCSRContext,t),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").IsPremiumMusicVideoContext,u),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").InitialTracePolicyContext,p),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").ActiveEmsgBoxesContext,E),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").IsExternalMediaContext,R),d("wrapWithContextProviders").makeRenderProviderFn(d("VideoPlayerContexts").VideoPixelsAspectRatioContext,(a=z)!=null?a:null),function(a){return h.jsx(c("VideoPlayerViewabilityProvider.react"),{isDesktopPictureInPicture:r,isFullscreen:s,videoPlayerPassiveViewabilityInfo:A,children:a})}]);return h.jsx("div",{"data-instancekey":q,"data-testid":void 0,children:e})}a.displayName=a.name+" [from "+f.id+"]";e=h.memo(a);g["default"]=e}),98); __d("VideoPlayerFullscreenController",["CometFullScreen","removeFromArray","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function h(a){return a.current!=null&&d("CometFullScreen").getFullScreenElement()===a.current}function a(a){var b=[];function e(){b.forEach(function(a){a()})}var f=null;return{getIsFullscreen:function(){return h(a)},requestSetIsFullscreen:function(b,e){var f=a.current;if(f==null)throw c("unrecoverableViolation")("Requested full screen while the element is not present","comet_video_player");d("CometFullScreen").isSupported()?b!==h(a)&&(b===!0?d("CometFullScreen").requestFullScreen(f):b===!1&&d("CometFullScreen").exitFullScreen()):b&&e!=null&&typeof e.webkitEnterFullScreen==="function"?e.webkitEnterFullScreen():!b&&e!=null&&typeof e.webkitExitFullScreen==="function"&&e.webkitExitFullscreen()},subscribe:function(a){b.length===0&&f==null&&(f=d("CometFullScreen").subscribeToFullScreenChangeEvent(e));b.push(a);return{remove:function(){c("removeFromArray")(b,a),b.length===0&&f!=null&&(f(),f=null)}}}}}g.createFullscreenController=a}),98); __d("VideoPlayerPortalingPlaceState",["GlobalVideoPortsContexts","GlobalVideoPortsID","gkx","react","usePrevious"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useEffect,i=b.useState;e=function(a,b){var e=c("usePrevious")(a);h(function(){a!==e&&(e!==null&&e&&!a&&b(d("GlobalVideoPortsID").makeVideoID()))},[a,e,b])};f=function(a,b){var c=i(null),e=c[0];c=c[1];a!==e&&(e!==null&&e&&!a&&b(d("GlobalVideoPortsID").makeVideoID()),c(a))};var j=c("gkx")("1375802")?f:e;function a(a){var b=a.portalingEnabled;a=a.portalingFromVideoID;var c=d("GlobalVideoPortsContexts").useGlobalVideoPortsLoader(),e=d("GlobalVideoPortsContexts").useGlobalVideoPortsManager(),f=d("GlobalVideoPortsContexts").useGlobalVideoPortsState(),g=e!=null&&f!=null,k=(g||c!=null)&&(b||a!=null),l=i(function(){return d("GlobalVideoPortsID").makePlaceID()});l=l[0];var m=i(function(){return d("GlobalVideoPortsID").makeVideoID()}),n=m[0];m=m[1];b=k&&b&&a!=null;a=b&&a!=null?a:n;j(b,m);h(function(){k&&!g&&c&&c()},[g,k,c]);return{canBecomePortableLater:k,currentVideoID:a,globalVideoPortsManager:e,globalVideoPortsState:f,thisPlaceID:l}}g.useRegenerateUniqueVideoID_exportedForTest=j;g.useVideoPlayerPortalingPlaceState=a}),98); __d("VideoPlayerPortalingPlaceWithPortaling.react",["BaseContextualLayerAnchorRootContext","CoreVideoPlayerFitParentContainer.react","GlobalVideoPortsRenderers.react","getOwnObjectValues","killswitch","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useContext,j=b.useEffect,k=b.useRef,l=b.useState;function a(a){var b=a.coreVideoPlayerMetaData,e=a.currentPlaceID,f=a.currentVideoID,g=a.fullscreenController,m=a.globalVideoPortsManager,n=a.globalVideoPortsState_DEPRECATED,o=a.implementations,p=a.isFullscreen,q=a.portablePlaceMetaData,r=a.previousPlaceMetaData,s=a.renderComponents,t=a.renderPlaceholder,u=a.thisPlaceID,v=a.trackingDataEncrypted,w=a.trackingNodes,x=a.viewportMarginsForViewability;a=l(function(){return d("CoreVideoPlayerFitParentContainer.react").createFitParentContainerDiv({debugRole:null})});var y=a[0],z=k(null);j(function(){m.addOrUpdatePlace({coreVideoPlayerMetaData:b,fullscreenController:g,implementations:o,injectCoreVideoStatesRef:z,isFullscreen:p,portablePlaceContainer:y,portablePlaceID:u,portablePlaceMetaData:q,portableVideoID:f,renderComponents:s,renderPlaceholder:t,trackingDataEncrypted:v,trackingNodes:w,viewportMarginsForViewability:x})},[].concat(c("getOwnObjectValues")(b),[f,g,p,m,y],c("getOwnObjectValues")(q||{}),[s,t,u,v,w,x]));j(function(){return function(){m.removePlace({portablePlaceID:u})}},[m,u]);a=i(c("BaseContextualLayerAnchorRootContext"));var A=k(null);return h.jsxs(c("BaseContextualLayerAnchorRootContext").Provider,{value:p&&!c("killswitch")("WORKPLACE_VIDEO_FULLSCREEN_CONTEXT_LAYER_ROOT")?A:a,children:[h.jsx(d("CoreVideoPlayerFitParentContainer.react").CoreVideoPlayerFitParentDOMContainer,{debugRole:null,domElement:y},u),h.jsx(d("GlobalVideoPortsRenderers.react").GlobalVideoPortsVideoComponentsRenderer,{currentPlaceID:n!=null?(a=(a=m.getCurrentPlaceStateForVideo(n,f))==null?void 0:a.portablePlaceID)!=null?a:null:e,currentVideoID:f,injectCoreVideoStatesRef:z,previousPlaceMetaData:n!=null?(e=(a=m.getPortableVideoState(n,f))==null?void 0:a.previousPlaceMetaData)!=null?e:null:r,renderComponents:s,thisPlaceID:u}),h.jsx("div",{ref:A})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerPortalingPlace.react",["BaseViewportMarginsContext","CometTrackingCodeContext","CometTrackingNodesContext","CoreVideoPlayer.react","CoreVideoPlayerFitParentContainer.react","GlobalVideoPortsID","GlobalVideoPortsRenderers.react","VideoPlayerFullscreenController","VideoPlayerPortalingPlaceInfoProvider.react","VideoPlayerPortalingPlaceState","VideoPlayerPortalingPlaceWithPortaling.react","gkx","react","recoverableViolation","useStable","useUnsafeRef_DEPRECATED"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useContext,j=b.useEffect,k=b.useState,l={bottom:0,left:0,right:0,top:0},m=h.forwardRef(function(a,b){var c=a.children;a=a.debugRole;return h.jsx(d("CoreVideoPlayerFitParentContainer.react").CoreVideoPlayerFitParentContainer,{debugRole:a,ref:b,children:c})});function a(a){var b=a.implementations,e=a.portalingEnabled,f=a.portalingFromVideoID,g=a.portalingPlaceMetaData,n=a.renderComponents,o=a.renderPlaceholder;a=babelHelpers.objectWithoutPropertiesLoose(a,["implementations","portalingEnabled","portalingFromVideoID","portalingPlaceMetaData","renderComponents","renderPlaceholder"]);j(function(){return function(){}},[]);var p=f!=null?d("GlobalVideoPortsID").ensureVideoID(f):null;f!=null&&p==null&&c("recoverableViolation")("The provided portalingFromVideoID ("+String(f)+") does not look like such an ID. The video player will not use portaling until a valid ID is provided","comet_video_player");f=d("VideoPlayerPortalingPlaceState").useVideoPlayerPortalingPlaceState({portalingEnabled:e,portalingFromVideoID:p});e=f.canBecomePortableLater;p=f.currentVideoID;var q=f.globalVideoPortsManager,r=f.globalVideoPortsState;f=f.thisPlaceID;var s=i(c("BaseViewportMarginsContext")),t=c("useUnsafeRef_DEPRECATED")(null),u=c("useStable")(function(){return d("VideoPlayerFullscreenController").createFullscreenController(t)}),v=k(u.getIsFullscreen()),w=v[0],x=v[1];j(function(){var a=u.subscribe(function(){var a=u.getIsFullscreen();x(a)});x(u.getIsFullscreen());return function(){a.remove()}},[u,x]);v=i(c("CometTrackingNodesContext"));v=v.join("");var y=i(c("CometTrackingCodeContext"));y=(y=y.encrypted_tracking[0])!=null?y:"";s=w?l:s;if(!e)return h.jsx(m,{debugRole:null,ref:t,children:h.jsx(d("VideoPlayerPortalingPlaceInfoProvider.react").VideoPlayerPortalingPlaceInfoProvider,{currentPlaceID:f,currentVideoID:p,portalingEnabled:!1,previousPlaceMetaData:null,thisPlaceID:f,children:h.jsx(c("CoreVideoPlayer.react"),babelHelpers["extends"]({},a,{fullscreenController:u,implementations:b,isFullscreen:w,renderWithCoreVideoStates:n,trackingDataEncrypted:y,trackingNodes:v,viewportMarginsForViewability:s}))})});if(q&&r){return h.jsx(m,{debugRole:null,ref:t,children:h.jsx(c("VideoPlayerPortalingPlaceWithPortaling.react"),{coreVideoPlayerMetaData:a,currentPlaceID:c("gkx")("4184")?(e=(e=q.getCurrentPlaceStateForVideo(r,p))==null?void 0:e.portablePlaceID)!=null?e:null:null,currentVideoID:p,fullscreenController:u,globalVideoPortsManager:q,globalVideoPortsState_DEPRECATED:c("gkx")("4184")?null:r,implementations:b,isFullscreen:w,portablePlaceMetaData:g,previousPlaceMetaData:c("gkx")("4184")?(b=(e=q.getPortableVideoState(r,p))==null?void 0:e.previousPlaceMetaData)!=null?b:null:null,renderComponents:n,renderPlaceholder:o,thisPlaceID:f,trackingDataEncrypted:y,trackingNodes:v,viewportMarginsForViewability:s})})}else{return h.jsx(m,{debugRole:null,ref:t,children:h.jsx(d("GlobalVideoPortsRenderers.react").GlobalVideoPortsPlaceholderRenderer,{currentPlaceID:null,currentVideoID:p,previousPlaceMetaData:null,renderPlaceholder:o,thisPlaceID:f,videoPixelsAspectRatio:(w=a.videoPixelsAspectRatio)!=null?w:null})})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerTracePolicyContext",["react"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=d("react").useContext;c={initialTracePolicy:null,routeTracePolicy:null};var i=b.createContext(c);function a(){return h(i)}g.VideoPlayerTracePolicyContext=i;g.useVideoPlayerTracePolicy=a}),98); __d("VideoPlayerTracePolicyProvider.react",["VideoPlayerTracePolicyContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useEffect,j=b.useState;function a(a){var b=a.children,c=a.initialTracePolicy,e=a.routeTracePolicy;a=j(c);var f=a[0],g=a[1];a=j(e);var k=a[0],l=a[1];i(function(){f!==c&&g(c),k!==e&&l(e)},[c,e,f,k]);return h.jsx(d("VideoPlayerTracePolicyContext").VideoPlayerTracePolicyContext.Provider,{value:{initialTracePolicy:f,routeTracePolicy:k},children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CoreVideoPlayerWithComponents.react",["VideoPlayerComponentContainer.react","VideoPlayerPortalingPlace.react","VideoPlayerTracePolicyProvider.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useCallback;function a(a){var b=a.children,d=a.implementations,e=a.portalingEnabled,f=a.portalingFromVideoID,g=a.portalingPlaceMetaData,j=a.portalingRenderPlaceholder;a=babelHelpers.objectWithoutPropertiesLoose(a,["children","implementations","portalingEnabled","portalingFromVideoID","portalingPlaceMetaData","portalingRenderPlaceholder"]);var k=i(function(a){return h.jsx(c("VideoPlayerComponentContainer.react"),babelHelpers["extends"]({},a,{children:b}))},[b]);return h.jsx(c("VideoPlayerTracePolicyProvider.react"),{initialTracePolicy:a.initialTracePolicy,routeTracePolicy:a.routeTracePolicy,children:h.jsx(c("VideoPlayerPortalingPlace.react"),babelHelpers["extends"]({},a,{implementations:d,portalingEnabled:e,portalingFromVideoID:f,portalingPlaceMetaData:g,renderComponents:k,renderPlaceholder:j}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerErrorBoundary.react",["FBLogger","getErrorSafe","oz-player/utils/OzError","react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f0;v.current.disableScrollBeforePlayWhenOffscreen!==!0&&a&&b==="user_initiated"&&d&&(p.current=!0)}},[o,r]),x=l(w);j(function(){x.current=w},[w]);j(function(){var a=o.subscribe(function(){w()});return function(){a.remove()}},[o,w]);var y=c("useVideoAutoplayState")({noPauseOnBlurOrFocus:u.noPauseOnBlurOrFocus}),z=c("useAutoplayRulesEngine")(u.autoplayLocalRules),A=b==="allow"?c("evaluateVideoAutoplayDefaultAllowRule"):c("evaluateVideoAutoplayDefaultIgnoreRule");s=m(function(){return A});var B=s[0],C=s[1];s=m(null);var D=s[0],E=s[1];s=m(function(){return z.evaluateAutoplay(y,A)});var F=s[0],G=s[1];s=m(null);var H=s[0],I=s[1],J=l(F),K=d("VideoPlayerAutoplayHooks").useAutoplayApi(),L=l(K);j(function(){L.current=K},[K]);var M=b!=="dangerously_disable_autoplay_management";j(function(){K.register(f,e,u,o,n,M);c("WwwCometVideoAutoplayFalcoEvent").log(function(){return{autoplay_event_name:"register",autoplay_scope_id:v.current.autoplayScopeID,event_creation_time:Date.now(),initiator:g.current,initiator_type:"autoplay_component",selected_autoplay_video_symbol:K.getAutoplayManagerDebugInfo(v.current).selectedAutoplayVideoSymbol,target:g.current,target_current_autoplay_decision:J.current}});return function(){K.unregister(f),c("WwwCometVideoAutoplayFalcoEvent").log(function(){return{autoplay_event_name:"unregister",autoplay_scope_id:v.current.autoplayScopeID,event_creation_time:Date.now(),initiator:g.current,initiator_type:"autoplay_component",selected_autoplay_video_symbol:K.getAutoplayManagerDebugInfo(v.current).selectedAutoplayVideoSymbol,target:g.current,target_current_autoplay_decision:J.current}})}},[K,u,o,n,e,M,f]);j(function(){var a=function(){var b=z.evaluateAutoplay(y,A);J.current=b;var e=z.getRules(),h=z.getIndexOfLastWinningRule(),a=h>=0?e[h]:A;e=r&&r.getCurrent();h=o.getCurrentState();h=h.paused;(H===null||H!==b)&&(G(b),I(b));if(b==="PAUSE"&&!h&&o.isControllingComponent(q)){h=!0;x.current();if(p.current){p.current=!1;var i=e==null?void 0:e.positionToViewport;i&&o.scrollIntoView(i.top<0);h=!1}if(h){i="[PAUSE] via short-circuit on "+a.name+".";d("CoreVideoPlayerAutoplayClientUtils").log(g.current,i);o.pause("autoplay_initiated");c("WwwCometVideoAutoplayFalcoEvent").log(function(){return{autoplay_event_name:"pause",autoplay_scope_id:v.current.autoplayScopeID,event_creation_time:Date.now(),initiator:g.current,initiator_type:"autoplay_component",selected_autoplay_video_symbol:K.getAutoplayManagerDebugInfo(v.current).selectedAutoplayVideoSymbol,target:g.current,target_current_autoplay_decision:b}})}}(D===null||D!==a)&&(C(function(){return a}),E(function(){return a}),c("WwwCometVideoAutoplayFalcoEvent").log(function(){return{autoplay_event_name:"rule_changed",autoplay_scope_id:v.current.autoplayScopeID,event_creation_time:Date.now(),initiator:g.current,initiator_type:"autoplay_component",selected_autoplay_video_symbol:K.getAutoplayManagerDebugInfo(v.current).selectedAutoplayVideoSymbol,target:g.current,target_current_autoplay_decision:b}}));d("CoreVideoPlayerAutoplayClientUtils").log(g.current,"[DECISION: "+b+"] from "+a.name);e&&K.update(f,b,e)},b=n.subscribeToChanges(function(a){n.getCurrentState().hidden||n.getCurrentState().backgrounded?o.isControllingComponent(q)||o.unregisterControllingComponent(q):o.registerControllingComponent(q)}),e=r?r.subscribe(function(){n.getCurrentState().hidden||n.getCurrentState().backgrounded?o.isControllingComponent(q)||o.unregisterControllingComponent(q):o.registerControllingComponent(q),a()}):null;a();return function(){b.remove(),e&&e.remove()}},[K,q,z,o,A,n,D,H,C,G,E,I,f,y,r]);j(function(){var a=o.isControllingComponent(q),b=o.getCurrentState();b=b.paused;d("CoreVideoPlayerAutoplayClientUtils").componentShouldPause(F,J.current,b,a)&&(d("CoreVideoPlayerAutoplayClientUtils").log(g.current,"[PAUSE] the video for "+F),o.pause("autoplay_initiated"),c("WwwCometVideoAutoplayFalcoEvent").log(function(){return{autoplay_event_name:"pause",autoplay_scope_id:v.current.autoplayScopeID,event_creation_time:Date.now(),initiator:g.current,initiator_type:"autoplay_component",selected_autoplay_video_symbol:L.current.getAutoplayManagerDebugInfo(v.current).selectedAutoplayVideoSymbol,target:g.current,target_current_autoplay_decision:F}}))},[F,o,q]);j(function(){return function(){d("CoreVideoPlayerAutoplayClientUtils").log(g.current,"[RELEASE CONTROL] "+q),o.unregisterControllingComponent(q)}},[o,q]);c("VideoPlayerDebugAutoplayAPI").useVideoPlayerDebugAPIDefinition({applicableRule:B,autoplayApiRef:L,autoplayDecision:F,autoplayLocalScope:u,symbol:f});return null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerCaptionsAreaDeferred.react",["deferredLoadComponent","react","requireDeferredForDisplay"],(function(a,b,c,d,e,f,g){"use strict";d("react");a=c("deferredLoadComponent")(c("requireDeferredForDisplay")("VideoPlayerCaptionsArea.react").__setRef("VideoPlayerCaptionsAreaDeferred.react"));g["default"]=a}),98); __d("VideoPlayerIMFMetadataContext",["react","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=d("react").useContext,i={imfExpectedFromEmsg:!1,specInlineJson:null},j=b.createContext(i);j.displayName="VideoPlayerIMFMetadataContext";e=j.Provider;function a(){var a=h(j);if(a===i)throw c("unrecoverableViolation")("useVideoPlayerIMFMetadata is not called from a component nested under VideoPlayerRelay/VideoPlayerX.","comet_video_player");return a}g.VideoPlayerIMFMetadataContextProvider=e;g.useVideoPlayerIMFMetadataFromContext=a}),98); __d("WebSessionExtender",["WebSession","clearInterval","cr:913","setInterval"],(function(a,b,c,d,e,f,g){"use strict";var h=2e4,i=new Set(),j=null;function a(a,e){e===void 0&&(e="extender"),i.add(a),j==null&&(d("WebSession").extend(Date.now()+h+2e3),j=c("setInterval")(function(){d("WebSession").extend(Date.now()+h+2e3),b("cr:913")&&new(b("cr:913"))().setClientTime(Date.now()).setWebsessionID(d("WebSession").getId()).setReason(e).log()},h))}function e(a){i["delete"](a);a=i.size;a===0&&j!=null&&(c("clearInterval")(j),j=null)}g.subscribe=a;g.unsubscribe=e}),98); __d("VideoPlayerWebSessionExtender.react",["VideoPlayerHooks","WebSessionExtender","react","useCometUniqueID"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useEffect;function a(){var a=d("VideoPlayerHooks").usePlaying(),b=c("useCometUniqueID")();h(function(){if(a){d("WebSessionExtender").subscribe(b,"video");return function(){d("WebSessionExtender").unsubscribe(b)}}},[a,b]);return null}g["default"]=a}),98); __d("useVideoPlayerDefaultLoadingIndicatorsLogic",["VideoPlayerHooks"],(function(a,b,c,d,e,f,g){"use strict";function a(){var a=d("VideoPlayerHooks").useStalling(),b=d("VideoPlayerHooks").useStreamInterrupted(),c=d("VideoPlayerHooks").useIsLiveRewindActive();b=b&&!c;c=a;a=b?"live_video_interrupted_overlay":c?"spinner":"none";return{liveVideoInterruptedOverlayVisible:b,loadingIndicatorType:a,spinnerVisible:c}}g["default"]=a}),98); __d("useVideoPlayerDefaultLoadingIndicators",["CometPlaceholder.react","deferredLoadComponent","gkx","once","react","requireDeferred","requireDeferredForDisplay","useVideoPlayerDefaultLoadingIndicatorsLogic"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=c("deferredLoadComponent")(c("requireDeferredForDisplay")("VideoPlayerSpinner.react").__setRef("useVideoPlayerDefaultLoadingIndicators")),j=c("deferredLoadComponent")(c("requireDeferred")("VideoPlayerWithLiveVideoInterruptedOverlay.react").__setRef("useVideoPlayerDefaultLoadingIndicators")),k=c("once")(function(){return c("gkx")("5900")?null:h.jsx(c("CometPlaceholder.react"),{fallback:null,children:h.jsx(j,{})})});function a(){var a=c("useVideoPlayerDefaultLoadingIndicatorsLogic")(),b=a.loadingIndicatorType;a=a.spinnerVisible;a=h.jsx(i,{isVisible:a});var d=null;switch(b){case"spinner":d=a;break;case"live_video_interrupted_overlay":d=k();break;case"none":default:d=a}return{loadingIndicatorElement:d,loadingIndicatorType:b}}g["default"]=a}),98); __d("CvcV3HttpEventFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1856513");c=b("FalcoLoggerInternal").create("cvc_v3_http_event",a);e.exports=c}),null); __d("CVCv3DisabledPlayerOrigins",[],(function(a,b,c,d,e,f){a=Object.freeze({BEEPER:"beeper",FB_STORIES:"fb_stories"});f["default"]=a}),66); __d("CVCv3DisabledPlayerSubOrigins",[],(function(a,b,c,d,e,f){a=Object.freeze({LIVE_BEEPER:"live_beeper"});f["default"]=a}),66); __d("CVCv3SubscriptionHelper",["CvcV3HttpEventFalcoEvent","DateConsts","guid"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a,b,d){this.$1=a;this.$2=c("guid")();this.$3=((a=b)!=null?a:"null")+"::"+((b=d)!=null?b:"null");this.$4=null;this.$5=null}var b=a.prototype;b.isValidSubscription=function(){return!!this.$1};b.makeCVCv3StateUpdate=function(a,b,c,e){var f=null;a!=null&&!Number.isNaN(a)&&b!=null&&!Number.isNaN(b)&&(f={m:e,pf:Math.floor((b-a)*d("DateConsts").MS_PER_SEC),s:c,sa:Math.floor(a*d("DateConsts").MS_PER_SEC)});e={pps:this.$4,ps:f,si:this.$2,so:this.$3,vi:this.$1};this.$4=f;return e};b.makeUnifiedVideoCVCUpdate=function(a,b,c,d,e){a=this.makeCVCv3StateUpdate(a,b,c,d);this.$5!=null&&(a.tk=this.$5);return babelHelpers["extends"]({},a,e)};b.processUnifiedResponse=function(a){a=a;this.$5=a.tk;return a};b.clearAnyPreviousContext=function(){this.$4=null};b.logHttpRequestSuccess=function(a){var b=this;c("CvcV3HttpEventFalcoEvent").log(function(){return{name:"http_request_success",duration_ms:a!=null?a.toString():null,countable_id:b.$1}})};b.logHttpRequestFailure=function(a,b){var d=this;c("CvcV3HttpEventFalcoEvent").log(function(){return{name:"http_request_failed",error_msg:a,duration_ms:b!=null?b.toString():null,countable_id:d.$1}})};b.logHttpRequestTimeout=function(a){var b=this;c("CvcV3HttpEventFalcoEvent").log(function(){return{name:"http_request_timeout",duration_ms:a!=null?a.toString():null,countable_id:b.$1}})};b.logHttpResponseBad=function(a,b){var d=this;c("CvcV3HttpEventFalcoEvent").log(function(){return{name:"http_response_bad",error_msg:a,duration_ms:b!=null?b.toString():null,countable_id:d.$1}})};b.logDebugInfo=function(a){var b=this;c("CvcV3HttpEventFalcoEvent").log(function(){return{name:a,countable_id:b.$1}})};return a}();g["default"]=a}),98); __d("XVideoUnifiedCVCControllerRouteBuilder",["jsRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsRouteBuilder")("/video/unified_cvc/",Object.freeze({}),void 0);b=a;g["default"]=b}),98); __d("UnifiedVideoCVCSubscription",["CVCv3DisabledPlayerOrigins","CVCv3DisabledPlayerSubOrigins","CVCv3SubscriptionHelper","DateConsts","XVideoUnifiedCVCControllerRouteBuilder","clearTimeout","cometAsyncFetch","gkx","promiseDone","setTimeout"],(function(a,b,c,d,e,f,g){"use strict";var h=Object.values(c("CVCv3DisabledPlayerOrigins")),i=Object.values(c("CVCv3DisabledPlayerSubOrigins")),j=10;a=function(){function a(a,b,d,e,f,g){var j=this;this.$1=new(c("CVCv3SubscriptionHelper"))(a,b,d);this.$5=f;this.$6=null;this.$9=null;this.$10=!this.$1.isValidSubscription();this.$3=null;this.$2=null;a=b!=null?h.includes(b):!1;f=d!=null?i.includes(d):!1;!a&&!f&&(this.$3=e,this.$11=g,this.$4=e.subscribe(function(){if(j.$3==null){j.$1.logDebugInfo("empty_video_controller");return}var a=j.$3.getCurrentState();a.playing?j.$12(a):j.$13()}))}var b=a.prototype;b.$12=function(a){if(this.$3==null){this.$1.logDebugInfo("empty_video_controller");return}var b=!1;b||(b=this.$5?!0:c("gkx")("1124976"));if(!b){this.$1.logDebugInfo("ineligible_to_comet_cvc");return}if(a.playing){if(this.$2==null){b=this.$3.getPlayheadPosition();b>=0&&(this.$2=b)}}else this.$2=null;this.$14(0)};b.stopUnifiedCVC=function(){this.$13()};b.destroy=function(){this.$13(),this.$4!=null&&this.$4.remove(),this.$4=null,this.$3=null};b.$13=function(){c("clearTimeout")(this.$8),c("clearTimeout")(this.$7),this.$8=null,this.$7=null,this.$2=null,this.$1.clearAnyPreviousContext(),this.$9=null};b.$15=function(){c("clearTimeout")(this.$7),this.$7=null};b.$16=function(){this.$9=null,this.$15(),this.$14(0)};b.$14=function(a){var b=this;if(this.$3==null||this.$8!=null||this.$9!=null||this.$10)return;this.$8=c("setTimeout")(function(){b.$8=null;var a=b.$17();if(a==null){b.$1.logDebugInfo("empty_request");return}b.$9=a;var e=Date.now(),f=!1;c("promiseDone")(a,function(c){if(a!==b.$9)return;b.$9=null;if(c!=null){c=b.$1.processUnifiedResponse(c);b.$18(c,e)}else b.$1.logHttpResponseBad("null payload",Date.now()-e)},function(a){f=!0,b.$1.logHttpRequestFailure(a!=null?JSON.stringify(a):null,Date.now()-e)});b.$7=c("setTimeout")(function(){f||b.$1.logHttpRequestTimeout(Date.now()-e),b.$16()},j*d("DateConsts").MS_PER_SEC)},a)};b.$18=function(a,b){this.$15();b=Date.now()-b;a.d!=null?(this.$1.logHttpRequestSuccess(b),this.$11!=null&&this.$11(a.d)):this.$1.logHttpResponseBad("no data field",b);if(a.a!=null){b=a.a.t;switch(b){case"p":b=a.a.pi;b==null&&(b=j);this.$14(b*d("DateConsts").MS_PER_SEC);break;case"s":this.$10=!0;break}}};b.$17=function(){var a=this.$19();if(a==null)return null;a={d:JSON.stringify(a)};return c("cometAsyncFetch")(c("XVideoUnifiedCVCControllerRouteBuilder").buildURL({}),{data:a,method:"POST"})};b.$19=function(){if(this.$3==null)return null;var a={};this.$6!=null&&(a.lc=this.$6);this.$5&&(a.ls=!0);var b=0,c=0;this.$2!=null&&(b=this.$2,c=this.$3.getPlayheadPosition());var d=this.$3.getCurrentState();b=this.$1.makeUnifiedVideoCVCUpdate(b,c,this.$20(d),d.muted,a);return b};b.$20=function(a){if(a.playing||a.seeking)return"playing";else if(a.ended)return"ended";else if(a.paused)return"paused";else return"unknown"};b.testing_setLastStartPosition=function(a){this.$2=a};b.testing_makeUnifiedStateUpdate=function(){return this.$19()};b.testing_handleUnifiedResponse=function(a){return this.$18(a,Date.now())};return a}();g["default"]=a}),98); __d("getPlayerFormatForLogData",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){a=a.isFullscreen;return a===!0?"full_screen":b!=null?b:"inline"}f["default"]=a}),66); __d("useVideoPlayerUnifiedCVCProvider",["CvcV3HttpEventFalcoEvent","UnifiedVideoCVCSubscription","VideoPlayerHooks","createVideoStateHook","getPlayerFormatForLogData","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useEffect;b=d("createVideoStateHook").createVideoStateHook(null);var i=b.setterHook;e=d("createVideoStateHook").createVideoStateHook(null);var j=e.setterHook;f=e.valueHook;function a(a){var b=a.disableSubscription,e=a.playerFormat,f=a.subOrigin,g=a.videoFBID,k=d("VideoPlayerHooks").useIsLive(),l=d("VideoPlayerHooks").useIsFullscreen(),m=d("VideoPlayerHooks").useIsDesktopPictureInPicture(),n=d("VideoPlayerHooks").useController(),o=i(),p=j();h(function(){if(b===!0){c("CvcV3HttpEventFalcoEvent").log(function(){return{countable_id:g,name:"disable_subscription"}});return}var a=new(c("UnifiedVideoCVCSubscription"))(g,c("getPlayerFormatForLogData")({isDesktopPictureInPicture:m,isFullscreen:l},e),f,n,k,function(a){p(a)});o(a);return function(){a.destroy()}},[m,l,k,b,e,p,o,f,n,g])}b=f;g.useVideoPlayerUnifiedCVCProvider=a;g.useVideoPlayerUnifiedCVCData=b}),98); __d("VideoPlayerXImplSurface.react",["CoreVideoPlayerAudioClient.react","CoreVideoPlayerAutoplayClient.react","VideoPlayerCaptionsAreaDeferred.react","VideoPlayerIMFMetadataContext","VideoPlayerInteractionOverlay.react","VideoPlayerWebSessionExtender.react","cr:1954434","cr:3916","cr:902","emptyFunction","gkx","react","useVideoPlayerDefaultLoadingIndicators","useVideoPlayerUnifiedCVCProvider"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=(e=b("cr:902"))!=null?e:c("emptyFunction");function a(a){var e=a.children,f=a.disableCVCSubscription,g=a.disableLoadingIndicator;g=g===void 0?!1:g;var j=a.disableLogging,k=a.instreamVideoAdBreaksPlayer,l=a.playerFormat,m=a.subOrigin,n=a.videoFBID,o=a.videoPlayerIMFFromVideoMetadata;a=a.videoPlayerSpherical;d("useVideoPlayerUnifiedCVCProvider").useVideoPlayerUnifiedCVCProvider({disableSubscription:j===!0||f,playerFormat:l,subOrigin:m,videoFBID:n});i();j=c("useVideoPlayerDefaultLoadingIndicators")();f=j.loadingIndicatorElement;return h.jsxs(d("VideoPlayerIMFMetadataContext").VideoPlayerIMFMetadataContextProvider,{value:(l=o)!=null?l:null,children:[a,g?null:f,c("gkx")("1586633")?h.jsx(d("VideoPlayerInteractionOverlay.react").VideoPlayerInteractionOverlay,{}):null,h.jsxs(c("VideoPlayerCaptionsAreaDeferred.react"),{children:[e,k]}),h.jsx(c("CoreVideoPlayerAutoplayClient.react"),{}),h.jsx(c("CoreVideoPlayerAudioClient.react"),{}),b("cr:1954434")?h.jsx(b("cr:1954434"),{}):null,b("cr:3916")?h.jsx(b("cr:3916"),{subOrigin:m}):null,h.jsx(c("VideoPlayerWebSessionExtender.react"),{})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("normalizeVideoPlayerLoopCount",["unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,d){b===void 0&&(b=null);d===void 0&&(d=null);if(a==null){var e;d=((e=b)!=null?e:!1)?(e=d)!=null?e:0:0;d===-1?e=-1:d<0||!Number.isFinite(d)||Math.floor(d)!==d?e=0:d===0&&b===!0?e=-1:e=d}else if(a===-1||a===Number.POSITIVE_INFINITY)e=-1;else if(a<0||!Number.isFinite(a)||Math.floor(a)!==a)throw c("unrecoverableViolation")("Invalid loopingCount: "+a,"comet_video_player");else e=a;return e}g["default"]=a}),98); __d("VideoPlayerXImpl.react",["CoreVideoPlayerWithComponents.react","VideoPlayerXImplSurface.react","normalizeVideoPlayerLoopCount","react","usePlayerOriginRouteTracePolicy","useRouteProductAttribution"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.children,d=a.disableCVCSubscription;d=d===void 0?!1:d;var e=a.disableLoadingIndicator,f=a.disableLogging,g=a.implementations,i=a.instreamVideoAdBreaksPlayer,j=a.portalingEnabled,k=a.portalingFromVideoID,l=a.portalingPlaceMetaData,m=a.portalingRenderPlaceholder,n=a.videoPlayerIMFFromVideoMetadata,o=a.videoPlayerSpherical;a=babelHelpers.objectWithoutPropertiesLoose(a,["children","disableCVCSubscription","disableLoadingIndicator","disableLogging","implementations","instreamVideoAdBreaksPlayer","portalingEnabled","portalingFromVideoID","portalingPlaceMetaData","portalingRenderPlaceholder","videoPlayerIMFFromVideoMetadata","videoPlayerSpherical"]);var p=c("usePlayerOriginRouteTracePolicy")(),q=c("useRouteProductAttribution")();q||(q=a.productAttribution);var r=a.loopCount,s=a.playerFormat,t=a.subOrigin,u=a.videoFBID;r=c("normalizeVideoPlayerLoopCount")(r);return h.jsx(c("CoreVideoPlayerWithComponents.react"),babelHelpers["extends"]({},a,{disableLogging:f,implementations:g,loopCount:r,portalingEnabled:j,portalingFromVideoID:k,portalingPlaceMetaData:l,portalingRenderPlaceholder:m,productAttribution:q,routeTracePolicy:p,children:h.jsx(c("VideoPlayerXImplSurface.react"),{children:b,disableCVCSubscription:d,disableLoadingIndicator:e,disableLogging:f,instreamVideoAdBreaksPlayer:i,playerFormat:s,subOrigin:t,videoFBID:u,videoPlayerIMFFromVideoMetadata:n,videoPlayerSpherical:o})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("GraphQLVideoAutoplayGatingResult",[],(function(a,b,c,d,e,f){"use strict";function a(a,b,c){a=a!=null?a:"unknown";b=b?b:null;return{autoplayGatingResult:a,autoplaySetting:b,canAutoplay:c!=null?c:!1}}f.makeGraphQLVideoAutoplayGatingResult=a}),66); __d("getVideoPlayerAutoplayProps",[],(function(a,b,c,d,e,f){"use strict";function a(a,b,c){b=b!=null?b:"respect_user_settings";var d=b==="dangerously_always_autoplay";c=c!=null?c:"unknown";var e=a.autoplaySetting||"default_autoplay",f=e==="off";d=d||b==="respect_user_settings"&&!f&&a.canAutoplay;f=b==="do_not_autoplay"?c:a.autoplayGatingResult;c=d?"allow":b==="dangerously_disable_autoplay_management"?"dangerously_disable_autoplay_management":"deny";return{autoplayGatingResult:f,autoplaySetting:e,canAutoplay:c}}f["default"]=a}),66); __d("VideoPlayerCaptionsDisplayConfigContext",["react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b=a.createContext({liveCaptionsTextAlignment:null,textSizeMapping:null});g["default"]=b}),98); __d("VideoPlayerCaptionsDisplay.react",["VideoPlayerCaptionsDisplayConfigContext","VideoPlayerControlsBottomRowAddOnContext","VideoPlayerHooks","react","recoverableViolation","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useContext,j={captionsCenterAlign:{justifyContent:"xl56j7k",textAlign:"x2b8uid",$$css:!0},captionsContainer:{bottom:"xfqi8uc",boxSizing:"x9f619",display:"x78zum5",justifyContent:"xl56j7k",position:"x10l6tqk",textAlign:"x2b8uid",transitionDuration:"xu6gjpd",transitionProperty:"x11xpdln",transitionTimingFunction:"x1r7x56h",width:"xh8yej3",$$css:!0},captionsDefault:{backgroundColor:"x18l40ae",color:"x14ctfv",fontSize:"x1lkfr7t",fontWeight:"xk50ysn",lineHeight:"x37zpob",marginTop:"xdj266r",marginEnd:"xv81d3b",marginBottom:"xat24cr",marginStart:"x5jn1jc",paddingTop:"xulzisn",paddingEnd:"x1msn8f2",paddingBottom:"x1uwfbks",paddingStart:"x1qobr7z",$$css:!0},captionsLeftAlign:{justifyContent:"x1nhvcw1",textAlign:"x1yc453h",$$css:!0},captionsRightAlign:{justifyContent:"x13a6bvl",textAlign:"xp4054r",$$css:!0}},k={BIG:"25px",BIGGER:"30px",BIGGEST:"34px",DEFAULT:"17px",MEDIUM:"21px",SMALL:"13px",SMALLEST:"8px"},l={DARK:.75,DEFAULT:.45,LIGHT:.25,OPAQUE:1,TRANSPARENT:0},m={BLACK:"20, 22, 26",BLUE:"0, 0, 255",CYAN:"0, 255, 255",GREEN:"0, 255, 0",MAGENTA:"255, 0, 255",RED:"255, 0, 0",WHITE:"255, 255, 255",YELLOW:"255, 255, 0"};function n(a){switch(a){case"center":return j.captionsCenterAlign;case"left":return j.captionsLeftAlign;case"right":return j.captionsRightAlign;default:c("recoverableViolation")("Unsupported captions text alignment: "+a,"comet_video_player")}}function o(a,b,c){var d={},e=a.captionsBackgroundColor,f=a.captionsBackgroundOpacity,g=a.captionsTextColor;a=a.captionsTextSize;if(e!==null){f=f!==null?l[f]:1;d.backgroundColor="rgba("+m[e]+","+f+")"}g!==null&&(d.color="rgba("+m[g]+")");a!==null&&(d.fontSize=b!=null?babelHelpers["extends"]({},k,b)[a]:k[a]);c&&(d.marginBottom=35);return d}function a(a){var b=a.activeCaptions,e=a.adjustments;a=a.captionDisplayStyle;var f=b==null?void 0:b.rows,g=i(c("VideoPlayerCaptionsDisplayConfigContext")),k=g.liveCaptionsTextAlignment;g=g.textSizeMapping;var l=i(d("VideoPlayerControlsBottomRowAddOnContext").VideoPlayerControlsBottomRowAddOnContext);l=(l==null?void 0:l.getBottomRowAddOn())!=null;var m={};a&&(m=o(a,g,l));a=d("VideoPlayerHooks").useIsLive();b=(l=b==null?void 0:(g=b.styles)==null?void 0:g.textAlignment)!=null?l:"center";if(f!=null&&f.length>0){g=f.map(function(a){return a.trim()}).filter(function(a){return!!a});return g.length>0?h.jsx("div",{className:c("stylex")(j.captionsContainer,n(a?(l=k)!=null?l:b:b)),style:{paddingLeft:e.left,paddingRight:e.right,transform:"translateY("+-e.bottom+"px)"},children:h.jsx("div",{className:"x18l40ae x14ctfv x1lkfr7t xk50ysn x37zpob xdj266r xv81d3b xat24cr x5jn1jc xulzisn x1msn8f2 x1uwfbks x1qobr7z",style:m,children:g.map(function(a,b){return h.jsxs("span",{children:[a,h.jsx("br",{})]},b)})})}):null}return null}a.displayName=a.name+" [from "+f.id+"]";b=h.memo(a);e=b;g["default"]=e}),98); __d("useVideoPlayerCaptionsDisplayAdjustments",["VideoPlayerHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useMemo;function a(){var a=d("VideoPlayerHooks").useVideoPlayerCaptionsReservations();return h(function(){var b={bottom:0,left:0,right:0,top:0};a.length>0&&a.forEach(function(a){b[a.location]+=a.size});return b},[a])}g["default"]=a}),98); __d("VideoPlayerCaptions.react",["VideoPlayerCaptionsDisplay.react","VideoPlayerHooks","react","useVideoPlayerCaptionsDisplayAdjustments"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(){var a=d("VideoPlayerHooks").useActiveCaptions(),b=c("useVideoPlayerCaptionsDisplayAdjustments")(),e=d("VideoPlayerHooks").useCaptionDisplayStyle();return h.jsx(c("VideoPlayerCaptionsDisplay.react"),{activeCaptions:a,adjustments:b,captionDisplayStyle:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerCaptionsArea.react",["VideoPlayerCaptions.react","VideoPlayerContexts","VideoPlayerHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useReducer,j=b.useState;function k(a,b){switch(b.type){case"reserve":return a.concat(b.reservation);case"release":return a.filter(function(a){return a!==b.reservation});default:return a}}function a(a){a=a.children;var b=i(k,[]),e=b[0],f=b[1];b=j({release:function(a){f({reservation:a,type:"release"})},reserve:function(a){f({reservation:a,type:"reserve"});return a}});b=b[0];var g=d("VideoPlayerHooks").useCaptionsVisible();return h.jsx(d("VideoPlayerContexts").VideoPlayerCaptionsReservationActionsContext.Provider,{value:b,children:h.jsxs(d("VideoPlayerContexts").VideoPlayerCaptionsReservationsContext.Provider,{value:e,children:[g?h.jsx(c("VideoPlayerCaptions.react"),{}):null,a]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerFallbackCover.react",["fbt","cr:1405514","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){var c;c=(c=a.message)!=null?c:h._("__JHASH__dzG08k88Xfs__JHASH__");return i.jsx(b("cr:1405514"),{debugError:a.debugError,message:c,onRetry:a.onRetry})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerFallbackLearnMoreLink.react",["fbt","CometLink.react","TetraText.react","gkx","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){a=c("gkx")("1224637")?"/help/work/1876956335887765/i-cant-view-or-play-videos-on-workplace":"https://www.facebook.com/help/396404120401278/list";return i.jsx(c("TetraText.react"),{color:"primaryOnMedia",type:"headlineEmphasized3",children:i.jsx(c("CometLink.react"),{href:a,children:h._("__JHASH__GWeGP0j1NWF__JHASH__")})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerFallbackCoverImplWithoutRetry.react",["TetraText.react","VideoPlayerFallbackLearnMoreLink.react","cr:1672302","cr:4149","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var d=a.debugError,e=a.message;a.onRetry;return h.jsx("div",{className:"x6s0dn4 xatbrnm x1ey2m1c x9f619 x78zum5 xds687c xl56j7k x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy",children:h.jsxs("div",{className:"x6s0dn4 x78zum5 xdt5ytf x3es6ox",children:[h.jsx("div",{className:"x6s0dn4 x78zum5 xdt5ytf x193iq5w",children:h.jsx(c("TetraText.react"),{align:"center",color:"primaryOnMedia",type:"bodyLink3",children:e})}),h.jsx("div",{className:"x6s0dn4 x78zum5 xdt5ytf xw7yly9 x193iq5w",children:h.jsx(c("VideoPlayerFallbackLearnMoreLink.react"),{})}),b("cr:4149")?h.jsx(b("cr:4149"),{error:d}):null,b("cr:1672302")?h.jsx(b("cr:1672302"),{error:d}):null]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerRetryableErrorBoundary.react",["VideoPlayerErrorBoundary.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useState;function a(a){var b=a.children,d=a.description,e=a.fallback;a=j(0);var f=a[0],g=a[1],k=i(function(){g(function(a){return a+1})},[]);a=i(function(a){return f>=3?e({error:a,retry:null}):e({error:a,retry:k})},[e,k,f]);return h.jsx(c("VideoPlayerErrorBoundary.react"),{description:d,fallback:a,project:"comet_video_player",children:b},f)}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerSpinner.react",["CometLoadingAnimation.react","react","useDebouncedValue"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=36;function a(a){a=a.isVisible;var b=c("useDebouncedValue")(a,a?200:500);return h.jsx("div",{className:"xc9qbxq x10l6tqk xtzzx4i xwa60dl x11lhmoz x14qfxbe"+(a?" x1hc1fzr x5w5eug x13dflua x19991ni xl405pv":" xg01cxk x2p8vrm x13dflua x1jl3cmp xl405pv xlshs6z"),children:h.jsx(c("CometLoadingAnimation.react"),{animationPaused:!b,size:i})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerFullscreenControl.react",["fbt","ix","VideoPlayerControlIcon.react","VideoPlayerHooks","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");function a(a){var b=a.onPress,e=a.onUserInteraction,f=a.shouldUnmute,g=d("VideoPlayerHooks").useController(),k=d("VideoPlayerHooks").useIsFullscreen(),l=d("VideoPlayerHooks").useLastMuteReason();a=k?h._("__JHASH__hwf7JoNGQNh__JHASH__"):h._("__JHASH__5hSxdUd3nQi__JHASH__");var m=function(){b&&b(),g.requestSetIsFullscreen(!k),f===!0&&l!=="user_initiated"&&g.setMuted(!1,"product_initiated"),e&&e({name:"video_fullscreen_button",type:"happened"})};return j.jsx(c("VideoPlayerControlIcon.react"),{icon:k?d("fbicon")._(i("517758"),20):d("fbicon")._(i("517763"),20),label:a,onPress:m,tooltip:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useVideoPlayerDefaultControlsVisibility",["VideoPlayerHooks","VideoPlayerInstreamAdsStateHooks","VideoPlayerUserInteractionCounter","clearTimeout","react","setTimeout"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useEffect,i=b.useState,j=5e3;function a(a){a=a===void 0?{}:a;var b=a.forceVisible,e=a.forceVisibleOnMount;a.isInteracting;a=d("VideoPlayerUserInteractionCounter").useVideoPlayerUserInteractionCounter();var f=a.ongoingInteractionsCount;a=a.onUserInteraction;var g=d("VideoPlayerHooks").useEnded(),k=d("VideoPlayerHooks").useIsHovering(),l=d("VideoPlayerHooks").usePaused(),m=d("VideoPlayerHooks").useIsMouseIdle(),n=d("VideoPlayerHooks").useVideoPlaybackEnded(),o=d("VideoPlayerInstreamAdsStateHooks").useInstreamAdsIsStart();d("VideoPlayerUserInteractionCounter").useVideoPlayerUserInteraction("video_pointer_active",k&&!m,a);k=i(e===!0);var p=k[0],q=k[1];h(function(){if(!l&&p){var a=c("setTimeout")(function(){q(!1)},j);return function(){c("clearTimeout")(a)}}},[p,l]);b===!0||b===!1?m=b:o?m=!1:f>0||p?m=!0:l?m=g?n:!0:m=!1;return{isControlsVisible:m,onUserInteraction:a}}g["default"]=a}),98); __d("useVideoPlayerClickToPlayInteraction",["fbt","VideoPlayerHooks","react","useFeedClickEventHandler"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react").useCallback;function a(a){a=a===void 0?{}:a;var b=a.shouldUnmute;a=d("VideoPlayerHooks").usePaused();var e=d("VideoPlayerHooks").useController(),f=d("VideoPlayerHooks").useLastMuteReason(),g=i(function(){e.play("user_initiated"),b===!0&&f!=="user_initiated"&&e.setMuted(!1,"product_initiated")},[e,f,b]);g=c("useFeedClickEventHandler")(g);a=a;return a?{ariaLabel:h._("__JHASH__hpqc6JvA6ND__JHASH__"),handler:g,overlayLabel:""}:null}g["default"]=a}),98); __d("computeAspectRatio",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){return a!=null&&b!=null&&a!==0&&b!==0?a/b:null}f["default"]=a}),66); __d("defaultErrorBoundaryFallback",["fbt","VideoPlayerFallbackCover.react","gkx","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function j(a){return a&&c("gkx")("1792489")?a.message.toLowerCase().indexOf("audio_renderer_error")>=0:!1}function a(a){var b=a.error;a=a.retry;var d=j(b),e=null;a=a;d&&(e=h._("__JHASH__32piJ10frlX__JHASH__"),a=null);return i.jsx(c("VideoPlayerFallbackCover.react"),{debugError:b,message:e,onRetry:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("Mp4DASHEventMessageBox",[],(function(a,b,c,d,e,f){a=function(){function a(a,b){this.$1=b,this.$2=null,b.getVersion()==0?this.$2={version:0,schemeIdUri:a.readZeroTerminatedString(this.$4(a,b)),value:a.readZeroTerminatedString(this.$4(a,b)),timescale:a.readUint32(),presentationTimeDelta:a.readUint32(),eventDuration:a.readUint32(),id:a.readUint32()}:b.getVersion()==1&&(this.$2={version:1,timescale:a.readUint32(),presentationTime:a.readUint64(),eventDuration:a.readUint32(),id:a.readUint32(),schemeIdUri:a.readZeroTerminatedString(this.$4(a,b)),value:a.readZeroTerminatedString(this.$4(a,b))}),this.$3=new DataView(a.getDataView().buffer,a.getCursor())}var b=a.prototype;b.getFullBox=function(){return this.$1};b.getEmsgFields=function(){return this.$2};b.getMessageData=function(){return this.$3};b.getStartTime=function(){var a=this.$2;if(a==null)return null;switch(a.version){case 0:return null;case 1:return this.$5(a)}};b.getDuration=function(){var a=this.$2;if(a==null)return null;var b=a.eventDuration;a=a.timescale;return a!==0?b/a:b};b.$5=function(a){var b=a.timescale;a=a.presentationTime;return b!==0?a/b:a};b.$4=function(a,b){return b.getBox().getSize()-(a.getCursor()-b.getBox().getStart())};return a}();a.canonicalType="emsg";f["default"]=a}),66); __d("parseJSONMixed",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){return a==null?null:JSON.parse(a,b)}f["default"]=a}),66); __d("tryParseJSONMixed",["parseJSONMixed"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){try{return c("parseJSONMixed")(a,b)}catch(a){return null}}g["default"]=a}),98); __d("VideoPlayerEmsg",["DataViewReader","ErrorMetadata","ErrorSerializer","FBLogger","Mp4DASHEventMessageBox","Mp4Demuxer","deepEquals","err","getErrorSafe","refine","tryParseJSONMixed"],(function(a,b,c,d,e,f,g){"use strict";f=d("refine").custom(function(a){return typeof a==="number"?a:typeof a==="string"&&/^[0-9]+$/.test(a)?a:void 0});var h=d("refine").object({rosterData:d("refine").object({activeSpeaker:d("refine").nullable(f),speakerInfoList:d("refine").array(d("refine").object({audioMuted:d("refine").bool(),id:f}))})}),i=d("refine").object({imf:d("refine").object({pluginEventData:d("refine").mixed(),pluginEventType:d("refine").string()})});function j(a,b,e){try{return d("refine").jsonParserEnforced(a)(b)}catch(d){if(c("tryParseJSONMixed")(b)==null)throw c("err")('Failed to parse emsg payload as JSON for scheme "%s"',e);else{a=c("getErrorSafe")(d);throw c("err")('Unsupported emsg payload format for scheme "%s": %s',e,a.message)}}}var k={LIVE_HUDDLE_SCHEME_ID:"urn:fb:metadata",LIVE_HUDDLE_ZLIB_SCHEME_ID:"urn:fb:metadata:deflate",LIVE_INSTREAM_ADS_SCHEME_ID:"urn:fb:ads_meta",LIVE_INTERACTIVE_PLUGIN_EVENT_ID:"urn:fb:interactive_plugin",LIVE_STICKER_SCHEME_ID:"urn:fb:lvstickr"};function l(a,b){for(var d=arguments.length,e=new Array(d>2?d-2:0),f=2;f=c&&b=0;b--){var c=this.$6[b];if(c.presentationTimestamp>a)continue;if(c.displayTimestamp==null)c.displayTimestamp=Date.now();else continue;this.$9(this.$5,"FRAME",c.traceId,this.$4,"SUCCESS",null)}};b.getAndFlushTracedFrames=function(){var a,b={currentTimeMs:Date.now(),streamId:this.$1},c={dl:[],dis:[]},d=[];this.$6.forEach(function(a){a.hasBeenFlushedAsDownloaded||(c.dl.push({id:a.traceId,timeMs:a.downloadTimestamp}),a.hasBeenFlushedAsDownloaded=!0),a.displayTimestamp!=null?c.dis.push({id:a.traceId,timeMs:a.displayTimestamp}):d.push(a)});this.$6=d;b[(a=this.$2)!=null?a:0]=c;return c.dl.length>0||c.dis.length>0?b:null};b.handleHeadersString=function(a,b){a=a.trim().split(q);this.$10(a.map(function(a){a=a.split(": ");return[a.shift().toLowerCase(),a.shift()]}),b)};b.handleHeaders=function(a,b){this.$10(this.$11(a),b)};b.handleHeadersAndBody=function(a,b,c){this.$12(this.$11(a),b,c)};b.$11=function(a){var b=[];for(var a=a.entries(),c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;b.push(e)}return b};b.$13=function(a){var b=Date.now(),d=new Map(),e=a.reduce(function(a,b){return a+b.byteLength},0),f=new Uint8Array(e),g=0;a.forEach(function(a){f.set(a,g),g+=a.byteLength});e=new(c("Mp4Demuxer"))(new DataView(f.buffer,f.byteOffset,f.byteLength));while(!e.atEnd()){a=e.parseBox();if(a.getType()===c("Mp4DASHEventMessageBox").canonicalType){var h=e.parseCanonicalBox(c("Mp4DASHEventMessageBox"),e.parseFullBox(a));if(h instanceof c("Mp4DASHEventMessageBox")){var i;i=(i=h.getEmsgFields())==null?void 0:i.schemeIdUri;if(i==null?void 0:i.startsWith("livedash:trace:")){i=h.getMessageData();h=new(c("DataViewReader"))(i).readZeroTerminatedString(i.byteLength);try{i=JSON.parse(h);Array.isArray(i)&&i.filter(function(a){return Array.isArray(a)&&a.length===2}).forEach(function(a){var c=a[0];a=a[1];d.set(c,{displayTimestamp:null,downloadTimestamp:b,hasBeenFlushedAsDownloaded:!1,presentationTimestamp:a,traceId:c})})}catch(a){}}}}e.skipBox(a)}return d};b.$14=function(a,b){var c=this,d="null",e=Date.now(),f=new Map(),g="";a.forEach(function(a){var b=a[0].toLowerCase();a=a[1];if(b===h&&a){var m=a.split(",");m.forEach(function(a){a=a.split(":");var b=+a[0];a=+a[1];f.set(b,{displayTimestamp:null,downloadTimestamp:e,hasBeenFlushedAsDownloaded:!1,presentationTimestamp:a,traceId:b})})}b===i&&(g=a);c.$2===null&&b===j&&(c.$2=parseInt(a,10));(b===k||b===l)&&parseInt(a,10)&&(d=b===k?"origin":"edge")});a=b||{};a.hit=d;return g!==""?{tracedFrames:f,eventMetaData:a,parentSource:g,streamType:this.$2}:null};b.$12=function(a,b,c){var d=this.$14(a,c);if(d==null||d.parentSource==="")return;if(b==null?void 0:b.length){a=this.$13(b);a.forEach(function(a,b){d.tracedFrames.set(b,a)})}this.$6=this.$6.concat(Array.from(d.tracedFrames.values()));c=d.tracedFrames.keys();for(b=c,a=Array.isArray(b),c=0,b=a?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(a){if(c>=b.length)break;e=b[c++]}else{c=b.next();if(c.done)break;e=c.value}e=e;this.$9(this.$4,"SEGMENT",e,d.parentSource,"SUCCESS",d.eventMetaData)}};b.$10=function(a,b){this.$12(a,null,b)};b.handleXHR=function(a,b){this.handleHeadersString(a.getAllResponseHeaders(),b)};b.getLiveTraceContext=function(){return this.$2!=null?{streamId:this.$1,streamType:this.$2,sourceId:this.$3}:null};return a}();g["default"]=a}),98); __d("VideoPlayerWwwFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1914651");c=b("FalcoLoggerInternal").create("video_player_www",a);e.exports=c}),null); __d("getErrorMessageFromMediaErrorCode",[],(function(a,b,c,d,e,f){"use strict";function a(a){switch(a){case 1:return"The fetching process for the media resource was aborted by the user agent at the users request.";case 2:return"A network error of some description caused the user agent to stop fetching the media resource, after the resource was established to be usable.";case 3:return"An error of some description occurred while decoding the media resource, after the resource was established to be usable.";case 4:return"The media resource indicated by the src attribute was not suitable."}return null}f["default"]=a}),66); __d("getErrorNameFromMediaErrorCode",[],(function(a,b,c,d,e,f){"use strict";function a(a){switch(a){case 1:return"MEDIA_ERR_ABORTED";case 2:return"MEDIA_ERR_NETWORK";case 3:return"MEDIA_ERR_DECODE";case 4:return"MEDIA_ERR_SRC_NOT_SUPPORTED";default:return"MEDIA_ERR_UNKNOWN_"+((a=a)!=null?a:"UNDEFINED")}}f["default"]=a}),66); __d("VideoMimeTypes",[],(function(a,b,c,d,e,f){function a(a,b,c){return a+'; codecs="'+b+", "+c+'"'}e="mp4a.40.2";function b(a){return"avc1.42E0"+a.toString(16).toUpperCase()}function c(a){return"avc1.4D40"+a.toString(16).toUpperCase()}function d(a){return"avc1.6400"+a.toString(16).toUpperCase()}var g="video/mp4";b=a(g,b(30),e);var h=a(g,c(30),e);c=a(g,c(31),e);var i=a(g,d(50),e);a=a(g,d(51),e);g={h264baseline:b,h264main30avc:h,h264main31avc:c,h264high50avc:i,h264high51avc:a};f["default"]=g}),66); __d("isSSR",["ExecutionEnvironment","XPlatReactEnvironment"],(function(a,b,c,d,e,f,g){"use strict";a=d("XPlatReactEnvironment").isWeb()&&!c("ExecutionEnvironment").canUseDOM;b=a;g["default"]=b}),98); __d("VideoPlayerConnectionQuality",["isSSR"],(function(a,b,c,d,e,f,g){"use strict";var h={POOR:"POOR",MODERATE:"MODERATE",GOOD:"GOOD",EXCELLENT:"EXCELLENT"},i=[{bandwidth:5e5,connectionQuality:h.POOR},{bandwidth:2e6,connectionQuality:h.MODERATE},{bandwidth:1e7,connectionQuality:h.GOOD}],j=100,k=null,l=null;a=function(a){if(c("isSSR"))return"MODERATE";if(k!==null&&l!==null&&k>=Date.now()-j)return l;a=a();var b=null;if(a!=null)for(var d=0;d0&&e.setPlayheadPosition(f);z.getCurrentState().controlledState.playbackState==="playing"&&e.play();z.dispatch({payload:{targetVideoQuality:t.getCurrentTargetVideoQuality()},type:"representation_changed"})}}}}),u=function(){p.current&&(p.current.destroy(),p.current=null)};e=d("VideoPlayerImplementationEngineAPI").createVideoPlayerImplementationEngine({createDebugAPI:function(a){var c=a.getVideoElementAPI;a=a.logger;return b("cr:1473550")?b("cr:1473550").createVideoPlayerImplementationDebugAPI({engineExtrasAPI:t,getVideoElementAPI:c,logger:a}):null},createVideoPlayerError:function(a,b){return i(a,b,(a=l.current)==null?void 0:a.targetSrc)},debugLog:h,debugLogId:e,destroyEngineParts:function(){if(c("gkx")("1467411")){n();var a=A.current;a&&a.setSrc(null);l.current=null}u()},engineExtrasAPI:t,engineMetadata:{isAbrEnabled:!1,isExternalMedia:g.isExternalMedia,playerImplementationName:"progressive_v2",playerVersion:"comet_progressive",streamingFormat:"progressive"},handleFatalError:f,handleVideoElementMounted:q,handleVideoElementUnmounted:function(){c("gkx")("1467411")&&n()},handleVideoInfoChange:s,initialProps:g,setExposedStateInReact:a});f=e.engine;var v=e.getCaptionsInfo,w=e.getVideoElement,x=e.handleCaptionsInfoChange,y=e.handleFatalImplementationError,z=e.machine,A=e.videoElementAPIRef;return f}g.createVideoPlayerProgressiveImplementationEngine=a}),98); __d("VideoPlayerProgressiveImplementationV2.react",["VideoPlayerImplementationEngineAPI","VideoPlayerProgressiveImplementationEngine","react"],(function(a,b,c,d,e,f,g){"use strict";d("react");function a(a){a=d("VideoPlayerImplementationEngineAPI").useVideoPlayerImplementationEngine(a,d("VideoPlayerProgressiveImplementationEngine").createVideoPlayerProgressiveImplementationEngine);a=a.reactVideoFrameAndComponents;return a}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);/*FB_PKG_DELIM*/ __d("useLiveCostreamerTagSubscription_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5407268109402615"}),null); __d("useLiveCostreamerTagSubscription.graphql",["useLiveCostreamerTagSubscription_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"data",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},e=[d],f={alias:null,args:null,concreteType:"Page",kind:"LinkedField",name:"tagged_page",plural:!1,selections:[d,{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"currently_live_video",plural:!1,selections:e,storageKey:null}],storageKey:null},g={args:null,documentName:"useLiveCostreamerTagSubscription",fragmentName:"VideoPlayerCostreamingControl_video",fragmentPropName:"video",kind:"ModuleImport"};e={alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"video",plural:!1,selections:[d,{alias:null,args:null,concreteType:"VideoLiveCostreamingStreamersConnection",kind:"LinkedField",name:"live_costreaming_streamers",plural:!1,selections:[{alias:null,args:null,concreteType:"Page",kind:"LinkedField",name:"nodes",plural:!0,selections:e,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"count",storageKey:null}],storageKey:null}],storageKey:null};var h={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},i=[h,d],j=[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"useLiveCostreamerTagSubscription",selections:[{alias:null,args:c,concreteType:"LiveVideoTagSubscribeResponsePayload",kind:"LinkedField",name:"live_video_tag_subscribe",plural:!1,selections:[f,{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"tagged_video",plural:!1,selections:[d,{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"if_viewer_can_see_costreaming_tools",plural:!1,selections:[g],storageKey:null},{alias:null,args:null,concreteType:"VideoLiveCostreamingStreamersConnection",kind:"LinkedField",name:"live_costreaming_streamers",plural:!1,selections:[{alias:null,args:null,concreteType:"Page",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"currently_live_video",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"CometVideoPlayerCostreamingThumbnailRowInner_video"}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},e],storageKey:null}],type:"Subscription",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"useLiveCostreamerTagSubscription",selections:[{alias:null,args:c,concreteType:"LiveVideoTagSubscribeResponsePayload",kind:"LinkedField",name:"live_video_tag_subscribe",plural:!1,selections:[f,{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"tagged_video",plural:!1,selections:[d,{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"if_viewer_can_see_costreaming_tools",plural:!1,selections:[g,d],storageKey:null},{alias:null,args:null,concreteType:"VideoLiveCostreamingStreamersConnection",kind:"LinkedField",name:"live_costreaming_streamers",plural:!1,selections:[{alias:null,args:null,concreteType:"Page",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"currently_live_video",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"video_channel",plural:!1,selections:i,storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[h,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:j,storageKey:null},d],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"animated_image_caption",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"broadcaster_origin",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"broadcast_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"broadcast_status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dash_manifest",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_live_streaming",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_live_trace_enabled",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_looping",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_video_broadcast",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_podcast_video",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"loop_count",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_spherical",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_spherical_enabled",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"unsupported_browser_message",storageKey:null},{alias:null,args:null,concreteType:"MusicVideoMetadata",kind:"LinkedField",name:"pmv_metadata",plural:!1,selections:i,storageKey:null},{alias:null,args:null,concreteType:"LatencySensitiveConfig",kind:"LinkedField",name:"latency_sensitive_config",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"broadcast_latency_sensitivity",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"LivePlaybackInstrumentationConfigParams",kind:"LinkedField",name:"live_playback_instrumentation_configs",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"is_client_triggered_trace_enabled",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_ncsr",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"permalink_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"captions_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dash_prefetch_experimental",storageKey:null},{alias:null,args:null,concreteType:"VideoCaptionLocale",kind:"LinkedField",name:"video_available_captions_locales",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"localized_creation_method",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"can_use_oz",storageKey:null},{alias:"playable_url_dash",args:[{kind:"Literal",name:"scrubbing_preference",value:"MPEG_DASH"}],kind:"ScalarField",name:"playable_url",storageKey:'playable_url(scrubbing_preference:"MPEG_DASH")'},{alias:null,args:null,kind:"ScalarField",name:"min_quality_preference",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_rss_podcast_video",storageKey:null},{alias:null,args:null,concreteType:"VideoPlayerShakaLiveP2PInit",kind:"LinkedField",name:"video_player_shaka_live_p2p_init",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"json_encoded_video_data",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"playable_url",storageKey:null},{alias:"playable_url_quality_hd",args:[{kind:"Literal",name:"quality",value:"HD"}],kind:"ScalarField",name:"playable_url",storageKey:'playable_url(quality:"HD")'},{alias:null,args:null,concreteType:"SphericalVideoFallbackUrls",kind:"LinkedField",name:"spherical_video_fallback_urls",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"hd",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"sd",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_gaming_video",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_latency_menu_enabled",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fbls_tier",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_latency_sensitive_broadcast",storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"selected_latency_setting",storageKey:null}]},{alias:null,args:null,kind:"ScalarField",name:"comet_video_player_static_config",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"comet_video_player_context_sensitive_config",storageKey:null},{alias:null,args:null,concreteType:"VideoPlayerShakaPerformanceLoggerInit",kind:"LinkedField",name:"video_player_shaka_performance_logger_init",plural:!1,selections:[{args:null,documentName:"useVideoPlayerShakaPerformanceLoggerRelayImpl_video",fragmentName:"useVideoPlayerShakaPerformanceLoggerRelayImpl_init",fragmentPropName:"init",kind:"ModuleImport"}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"video_player_shaka_performance_logger_should_sample",storageKey:null},{alias:"video_player_shaka_performance_logger_init2",args:null,concreteType:"VideoPlayerShakaPerformanceLoggerInit",kind:"LinkedField",name:"video_player_shaka_performance_logger_init",plural:!1,selections:[{args:null,documentName:"useVideoPlayerShakaPerformanceLoggerBuilder_video",fragmentName:"useVideoPlayerShakaPerformanceLoggerBuilder_init",fragmentPropName:"init",kind:"ModuleImport"},{alias:null,args:null,kind:"ScalarField",name:"per_session_sampling_rate",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"autoplay_gating_result",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"viewer_autoplay_setting",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"can_autoplay",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"drm_info",storageKey:null},{alias:null,args:null,concreteType:"VideoP2PSettings",kind:"LinkedField",name:"p2p_settings",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ticket",storageKey:null},{alias:null,args:null,concreteType:"VideoP2PSettingsConfig",kind:"LinkedField",name:"config",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"delay_p2p_until_play",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"disable_hivejava_for_livevc",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"VideoHiveCommunityInfo",kind:"LinkedField",name:"community_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"community_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"community_name",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"VideoHiveInitializationOptions",kind:"LinkedField",name:"hive_initialization_options",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoHiveInitializationOptionHiveJava",kind:"LinkedField",name:"hive_java",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"min_version",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hive_tech_order",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"debug_level",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AudioSettings",kind:"LinkedField",name:"audio_settings",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"video_volume_setting",storageKey:null},d],storageKey:null},{alias:null,args:null,concreteType:"CaptionsSettings",kind:"LinkedField",name:"captions_settings",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"always_show_captions",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"captions_background_color",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"captions_background_opacity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"captions_text_color",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"captions_text_size",storageKey:null},d],storageKey:null},{alias:null,args:null,concreteType:"VideoBroadcastLowLatencyConfig",kind:"LinkedField",name:"broadcast_low_latency_config",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ll_desired_latency_ms",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ll_latency_tolerance_ms",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"audio_availability",storageKey:null},{alias:null,args:null,concreteType:"VideoMutedSegment",kind:"LinkedField",name:"muted_segments",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"mute_start_time_in_sec",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mute_end_time_in_sec",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"SphericalVideoRenderer",kind:"LinkedField",name:"spherical_video_renderer",plural:!1,selections:[{args:null,documentName:"VideoPlayerRelay_video_spherical_video_renderer",fragmentName:"VideoPlayerSphericalRelay_sphericalVideoRenderer",fragmentPropName:"sphericalVideoRenderer",kind:"ModuleImport"}],storageKey:null},{"if":null,kind:"Defer",label:"VideoPlayerRelay_video$defer$InstreamVideoAdBreaksPlayer_video",selections:[d,{alias:null,args:null,concreteType:"InstreamExtraConfig",kind:"LinkedField",name:"instream_extra_config",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"instream_halo_delay_time_seconds",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"InstreamVideoAdBreaks",kind:"LinkedField",name:"instream_video_ad_breaks_comet",plural:!1,selections:[{args:null,documentName:"InstreamVideoAdBreaksPlayer_video_instream_video_ad_breaks_comet",fragmentName:"InstreamVideoAdBreaksPlayerImpl_adBreaks",fragmentPropName:"adBreaks",kind:"ModuleImport"}],storageKey:null}]},{alias:null,args:null,concreteType:"VideoThumbnail",kind:"LinkedField",name:"preferred_thumbnail",plural:!1,selections:[{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"image",plural:!1,selections:j,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"image_preview_payload",storageKey:null},d],storageKey:null},{alias:null,args:null,concreteType:"VideoIMFData",kind:"LinkedField",name:"video_imf_data",plural:!1,selections:[{args:null,documentName:"useVideoPlayerIMFFromVideoMetadataRelay_video",fragmentName:"useVideoPlayerIMFFromVideoMetadataRelay_video_imf_data",fragmentPropName:"video_imf_data",kind:"ModuleImport"}],storageKey:null}],storageKey:null},d],storageKey:null}],storageKey:null}],storageKey:null},e],storageKey:null}]},params:{id:b("useLiveCostreamerTagSubscription_facebookRelayOperation"),metadata:{subscriptionName:"live_video_tag_subscribe"},name:"useLiveCostreamerTagSubscription",operationKind:"subscription",text:null}}}();e.exports=a}),null); __d("fetchCtvCastPayloadQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4867407706706103"}),null); __d("fetchCtvCastPayloadQuery.graphql",["fetchCtvCastPayloadQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"castSessionID"},c={defaultValue:null,kind:"LocalArgument",name:"mediaParameters"},d={defaultValue:null,kind:"LocalArgument",name:"requestID"},e=[{alias:null,args:[{kind:"Variable",name:"cast_session_id",variableName:"castSessionID"},{kind:"Literal",name:"caster_id",value:0},{kind:"Variable",name:"media_parameters_json",variableName:"mediaParameters"},{kind:"Literal",name:"receiver_app_id",value:1614120985559993},{kind:"Variable",name:"request_id",variableName:"requestID"},{kind:"Literal",name:"uses_secure_connection",value:!0}],kind:"ScalarField",name:"ctv_cast_payload",storageKey:null}];return{fragment:{argumentDefinitions:[a,c,d],kind:"Fragment",metadata:null,name:"fetchCtvCastPayloadQuery",selections:e,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[a,d,c],kind:"Operation",name:"fetchCtvCastPayloadQuery",selections:e},params:{id:b("fetchCtvCastPayloadQuery_facebookRelayOperation"),metadata:{},name:"fetchCtvCastPayloadQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("fetchVideoCastPayloadQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4715510405214458"}),null); __d("fetchVideoCastPayloadQuery.graphql",["fetchVideoCastPayloadQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"castSessionID"},c={defaultValue:null,kind:"LocalArgument",name:"playerOrigin"},d={defaultValue:null,kind:"LocalArgument",name:"playerSubOrigin"},e={defaultValue:null,kind:"LocalArgument",name:"videoID"},f=[{kind:"Variable",name:"id",variableName:"videoID"}],g={alias:null,args:[{kind:"Variable",name:"cast_session_id",variableName:"castSessionID"},{kind:"Variable",name:"player_origin",variableName:"playerOrigin"},{kind:"Variable",name:"player_suborigin",variableName:"playerSubOrigin"}],kind:"ScalarField",name:"video_cast_payload",storageKey:null};return{fragment:{argumentDefinitions:[a,c,d,e],kind:"Fragment",metadata:null,name:"fetchVideoCastPayloadQuery",selections:[{alias:null,args:f,concreteType:"Video",kind:"LinkedField",name:"video",plural:!1,selections:[g],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[e,c,d,a],kind:"Operation",name:"fetchVideoCastPayloadQuery",selections:[{alias:null,args:f,concreteType:"Video",kind:"LinkedField",name:"video",plural:!1,selections:[g,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:b("fetchVideoCastPayloadQuery_facebookRelayOperation"),metadata:{},name:"fetchVideoCastPayloadQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("LiveVideoLatencyMenuContextProvider_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"LiveVideoLatencyMenuContextProvider_video",selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"if_viewer_can_use_latency_menu",plural:!1,selections:[{args:null,documentName:"LiveVideoLatencyMenuContextProvider_video_if_viewer_can_use_latency_menu",fragmentName:"VideoPlayerSettingsMenuLatencyPane_video",fragmentPropName:"video",kind:"ModuleImport"}],storageKey:null},action:"NONE",path:"if_viewer_can_use_latency_menu"},{kind:"RequiredField",field:{alias:"if_viewer_can_use_latency_menu_toggle",args:null,concreteType:"Video",kind:"LinkedField",name:"if_viewer_can_use_latency_menu",plural:!1,selections:[{args:null,documentName:"LiveVideoLatencyMenuContextProvider_video_if_viewer_can_use_latency_menu_toggle",fragmentName:"VideoPlayerSettingsMenuLatencyPaneToggle_video",fragmentPropName:"video",kind:"ModuleImport"}],storageKey:null},action:"NONE",path:"if_viewer_can_use_latency_menu_toggle"}],type:"Video",abstractKey:null};e.exports=a}),null); __d("VideoPlayerCometFeedStoryControlsImplLive_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerCometFeedStoryControlsImplLive_video",selections:[{args:null,kind:"FragmentSpread",name:"VideoPlayerLiveVideoControls_video"}],type:"Video",abstractKey:null};e.exports=a}),null); __d("VideoPlayerCometFeedStoryControlsImplNotLive_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerCometFeedStoryControlsImplNotLive_video",selections:[{args:null,kind:"FragmentSpread",name:"VideoPlayerScrubberPreview_video"},{args:null,kind:"FragmentSpread",name:"VideoPlayerWatchAndScrollControl_video"},{args:null,kind:"FragmentSpread",name:"VideoPlayerCaptionsControl_video"},{alias:null,args:null,concreteType:"Group",kind:"LinkedField",name:"recipient_group",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"captions_url",storageKey:null}],type:"Video",abstractKey:null};e.exports=a}),null); __d("VideoPlayerDefaultControlsImplMusicClip_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerDefaultControlsImplMusicClip_video",selections:[{alias:null,args:null,concreteType:"XFBMusicAttachmentMetadata",kind:"LinkedField",name:"music_attachment_metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"end_time_ms",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"start_time_ms",storageKey:null}],storageKey:null}],type:"Video",abstractKey:null};e.exports=a}),null); __d("VideoPlayerWithVideoCardsOverlay_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerWithVideoCardsOverlay_video",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"comet_video_player_with_video_card_renderer",plural:!1,selections:[{kind:"InlineFragment",selections:[{args:null,documentName:"VideoPlayerWithVideoCardsOverlay_video",fragmentName:"VideoPlayerVideoCardsOverlay_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"CometVideoPlayerWithVideoCardRenderer",abstractKey:null}],storageKey:null}],type:"Video",abstractKey:null};e.exports=a}),null); __d("useLiveCostreamerTagSubscription.react",["CometRelay","react","useLiveCostreamerTagSubscription.graphql","uuid"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react").useMemo;function a(a,e,f){var g=h!==void 0?h:h=b("useLiveCostreamerTagSubscription.graphql"),j=i(function(){return{onNext:f,subscription:g,updater:function(a){var b;a=a.getRootField("live_video_tag_subscribe");b=a==null?void 0:(b=a.getLinkedRecord("tagged_page"))==null?void 0:b.getLinkedRecord("currently_live_video");a=a==null?void 0:a.getLinkedRecord("tagged_video");b==null&&a!=null&&a.setValue(null,"if_viewer_can_see_costreaming_tools")},variables:{input:{client_subscription_id:c("uuid")(),tagged_page_id:a,tagged_video_id:e}}}},[f,a,g,e]);d("CometRelay").useSubscription(j)}g["default"]=a}),98); __d("LiveCostreamerTagSubscription.react",["useLiveCostreamerTagSubscription.react"],(function(a,b,c,d,e,f,g){"use strict";function a(a){c("useLiveCostreamerTagSubscription.react")(a.pageID,a.videoID,a.onNext);return null}g["default"]=a}),98); __d("CastingChromecastAPIWrapper",["cr:1885117"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=b("cr:1885117")}),98); __d("CastingChromecastSession",["Promise","err","recoverableViolation","removeFromArray"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a,b,d){var e=this;this.$3=null;this.$4=[];this.$5=[];this.$6=[];this.$7=[];this.$8=[];this.$9=[];this.$10=[];this.$11=[];this.$12=function(a,b){if(a===e.$2){var d=e.$4.slice();d.forEach(function(a){a(b)})}else e.$6.slice().forEach(function(b){b(c("err")("Namespace does not match. Expected "+e.$2+" but received "+a),"CastingChromecastSession._onMessageReceived")})};this.$1=a;this.$2=b;this.$3=d;d.addMessageListener(this.$2,this.$12)}var d=a.prototype;d.destroy=function(){var a=this.$3;a!=null&&(a.status!=null&&a.status!=="disconnected"&&c("recoverableViolation")("Destroying receiver session that is not disconnected. Status, "+a.status,"comet_cast_sender"),a.removeMessageListener(this.$2,this.$12));this.$3=null};d.isCasting=function(){return this.$3!=null};d.isConnected=function(){return this.$3!=null&&this.$3.status==="connected"};d.isDisconnected=function(){return this.$3!=null&&this.$3.status==="disconnected"};d.disconnect=function(){var a=this;this.$5.slice().forEach(function(a){a()});return new(b("Promise"))(function(b,c){a.$3!=null?a.$3.stop(b,c):b()})["catch"](function(b){if(a.$3!=null&&a.$3.status!=="stopped"){a.$6.slice().forEach(function(a){a(b,"CastingChromecastSession.disconnect")});throw b}})["finally"](function(){var b=a.$3;a.$3=null;b&&b.removeMessageListener(a.$2,a.$12);a.$7.slice().forEach(function(a){a()})})};d.getVolume=function(){var a=this.$13();return a?a.level:null};d.getFriendlyName=function(){return this.$14()};d.setVolume=function(a){var d=this,e=this.$3;return new(b("Promise"))(function(b,d){if(e==null){d(c("err")("Cannot set volume without a session"));return}e.setReceiverVolumeLevel(a,b,d)})["catch"](function(a){d.$6.slice().forEach(function(b){b(a,"CastingChromecastSession.setVolume")});throw a})};d.isMuted=function(){var a=this.$13();return a?a.muted:null};d.mute=function(){return this.$15(!0)};d.unmute=function(){return this.$15(!1)};d.sendMessage=function(a){var d=this;return new(b("Promise"))(function(b,e){var f=d.$3;if(f==null){e(c("err")("The message can not be sent without a session"));return}f.sendMessage(d.$2,a,b,e)})["catch"](function(a){d.$6.slice().forEach(function(b){b(a,"CastingChromecastSession.sendMessage")});throw a})};d.$13=function(){var a;a=(a=this.$3)==null?void 0:(a=a.receiver)==null?void 0:a.volume;return a==null?null:a};d.$14=function(){var a;return((a=this.$3)==null?void 0:a.receiver.friendlyName)||null};d.$15=function(a){var d=this;return new(b("Promise"))(function(b,e){var f=d.$3;if(f==null){e(c("err")("The muted state can not be set without a session"));return}f.setReceiverMuted(a,b,e)})["catch"](function(a){d.$6.slice().forEach(function(b){b(a,"CastingChromecastSession._setIsMuted")});throw a})};d.onMessage=function(a){var b=this.$4;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};d.onDisconnecting=function(a){var b=this.$5;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};d.onError=function(a){var b=this.$6;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};d.onDisconnected=function(a){var b=this.$7;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};d.onVideoLoading=function(a){var b=this.$8;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};d.onVideoLoaded=function(a){var b=this.$9;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};d.onVideoPlaying=function(a){var b=this.$10;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};d.onVideoPaused=function(a){var b=this.$11;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};return a}();g["default"]=a}),98); __d("CastingErrorUtils",["ErrorMetadata","err","getErrorSafe"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){return a!=null&&typeof a==="object"&&typeof a.code==="string"&&a.code===b}function b(a){return a!=null&&typeof a==="object"&&typeof a.code==="string"?c("err")("Chromecast error: %s, keys: %s","cast.ChromecastError",JSON.stringify({code:a.code})):c("getErrorSafe")(a)}function d(a,b){a.metadata==null&&(a.metadata=new(c("ErrorMetadata"))());var d=a.metadata;b=b==null?void 0:b.videoID;b!=null&&d.addEntries(["COMET_VIDEO","VIDEO_ID",b]);return a}g.isChromecastError=a;g.getCastingErrorSafe=b;g.appendCastingMetadataToExpandedError=d}),98); __d("ConnectedTvLoggingFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1843753");c=b("FalcoLoggerInternal").create("connected_tv_logging",a);e.exports=c}),null); __d("CastingChromecastScanner",["CastingChromecastAPIWrapper","CastingChromecastSession","CastingErrorUtils","ConnectedTvLoggingFalcoEvent","Promise","err","performanceAbsoluteNow","promiseDone","removeFromArray"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a,b){this.$6=null,this.$7=[],this.$8=[],this.$9=[],this.$10=[],this.$11=[],this.$12=[],this.$13=[],this.$14=[],this.$15=[],this.$1=a,this.$2=b,this.$4=!1,this.$3=!1,this.$5=new Set()}var e=a.prototype;e.init=function(){if(this.$6!=null)return b("Promise").reject(c("err")("Scanner can only be initialized once."));this.$6=this.$16();return this.$6};e.ready=function(){return this.$6==null?b("Promise").reject(c("err")("Scanner should be initialized.")):this.$6};e.hasSupport=function(){return this.$3};e.hasFoundReceiver=function(){return this.$4};e.getSession=function(){var a=this;if(!this.$4)return b("Promise").reject(c("err")("No receivers found"));this.$13.slice().forEach(function(a){a()});return this.$17().then(function(b){var c=a.$18(b);a.$5.add(c);a.$14.slice().forEach(function(a){a(c)});return c})["catch"](function(b){a.$10.slice().forEach(function(a){a()});a.$11.slice().forEach(function(a){a()});throw b})};e.$16=function(){var a=this;this.$3=!0;return this.$19().then(function(b){return a.$20()}).then(function(b){a.$9.slice().forEach(function(a){a()})}).then(function(b){return a.$21()})["catch"](function(b){!d("CastingErrorUtils").isChromecastError(b,"not_supported")&&!d("CastingErrorUtils").isChromecastError(b,"extension_not_available")&&!d("CastingErrorUtils").isChromecastError(b,"extension_no_casting_script")&&a.$8.slice().forEach(function(a){a(b,"CastingChromecastScanner._init")});throw b})};e.$21=function(){var a=this,d=this.$1;if(d==null)return b("Promise").reject(c("err")("App ID is not defined"));var e=function(b){var c=a.$18(b);a.$14.slice().forEach(function(a){a(c)})},f=function(b){c("promiseDone")(c("CastingChromecastAPIWrapper").getIsAvailable(b).then(function(b){a.$4=b,a.$15.slice().forEach(function(b){b({foundReceiver:a.$4})})}))};return c("CastingChromecastAPIWrapper").initialize({appID:d,receiverListener:f,sessionListener:e}).then(function(){})["catch"](function(b){a.$8.slice().forEach(function(a){a(b,"CastingChromecastScanner._initializeApi")});throw b})};e.$19=function(){var a=this;return this.$1!=null?b("Promise").resolve():c("CastingChromecastAPIWrapper").getDefaultAppID().then(function(b){a.$1=b})};e.$17=function(){var a=this.$1;if(a==null)return b("Promise").reject(c("err")("App ID is not defined"));var d=c("performanceAbsoluteNow")();c("ConnectedTvLoggingFalcoEvent").log(function(){return{event:"sender_session_requested"}});return c("CastingChromecastAPIWrapper").getSession(a).then(function(a){c("ConnectedTvLoggingFalcoEvent").log(function(){return{event:"sender_session_started",perf_time_ms:Math.floor(c("performanceAbsoluteNow")()-d)}});return a})["catch"](function(a){c("ConnectedTvLoggingFalcoEvent").log(function(){return{event:"sender_session_failed",perf_time_ms:Math.floor(c("performanceAbsoluteNow")()-d),session_failure_code:typeof a.code==="string"?a.code:null,session_failure_description:a.description}});throw a})};e.$18=function(a){var b=this,d=new(c("CastingChromecastSession"))(this.$1||"",this.$2||"",a),e=d.onDisconnecting(function(){b.$12.slice().forEach(function(a){a()})}),f=d.onError(function(a,c){b.$8.slice().forEach(function(b){b(a,c)})}),g=d.onDisconnected(function(){b.$11.slice().forEach(function(a){a()}),b.$5["delete"](d),e.remove(),f.remove(),g.remove()});return d};e.$20=function(){var a=this;return c("CastingChromecastAPIWrapper").addReceiverListener({onCast:function(b){a.$7.slice().forEach(function(a){a(b)})},onStop:function(){a.$5.forEach(function(a){return a.disconnect()})}})};e.onCast=function(a){var b=this.$7;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};e.onError=function(a){var b=this.$8;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};e.onInit=function(a){var b=this.$9;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};e.onSessionCancelled=function(a){var b=this.$10;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};e.onSessionDisconnected=function(a){var b=this.$11;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};e.onSessionDisconnecting=function(a){var b=this.$12;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};e.onSessionRequested=function(a){var b=this.$13;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};e.onSessionStarted=function(a){var b=this.$14;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};e.onStatusChanged=function(a){var b=this.$15;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};return a}();g["default"]=a}),98); __d("CastingState",[],(function(a,b,c,d,e,f){"use strict";function a(){return{isCastPending:!1,receiverExperience:null,receiverFriendlyName:null,receiverIsConnected:!1,receiverIsMuted:null,receiverVolume:null}}function b(){return{currentDuration:null,currentPlaybackState:null,currentPosition:null,currentVideoID:null,type:"video_channel"}}function c(){return{type:"photo"}}function d(){return{currentAssetID:null,currentPlaybackState:null,type:"photo_album"}}f.initialCastingState=a;f.initialVideoChannelExperienceState=b;f.initialPhotoExperienceState=c;f.initialPhotoAlbumExperienceState=d}),66); __d("TV2PhotoAlbumReportedState",[],(function(a,b,c,d,e,f){"use strict";function a(a){return k(JSON.parse(a),m("TV2PhotoAlbumReportedState"))}function b(a){return JSON.stringify(l(a,m("TV2PhotoAlbumReportedState")),null,2)}function g(a,b,c){c===void 0&&(c="");if(c)throw Error('Invalid value for key "'+c+'". Expected type '+JSON.stringify(a)+" but got "+JSON.stringify(b));throw Error("Invalid value "+JSON.stringify(b)+" for type "+JSON.stringify(a))}function h(a){if(a.jsonToJS===void 0){var b={};a.props.forEach(function(a){return b[a.json]={key:a.js,typ:a.typ}});a.jsonToJS=b}return a.jsonToJS}function i(a){if(a.jsToJSON===void 0){var b={};a.props.forEach(function(a){return b[a.js]={key:a.json,typ:a.typ}});a.jsToJSON=b}return a.jsToJSON}function j(a,b,c,d){d===void 0&&(d="");function e(b,a){return typeof b===typeof a?a:g(b,a,d)}function f(b,a){var d=b.length;for(var e=0;e=0);return b};e.getSession=function(){var a=this;return this.ready().then(function(){var b=a.$5;b!=null&&!b.isConnected()&&a.$21()}).then(function(){if(a.$5)return a.$5;a.$8||(a.$8=a.$23());return a.$8})["catch"](function(b){a.$11.slice().forEach(function(a){a(b,"CastingReceiverManager.getSession")});throw b})["finally"](function(){a.$8=null})};e.startCasting=function(a,b,c){var d=this;return this.$24(a,b,c).then(function(a){a.success?d.$6=a.target:d.$6=null})};e.stopCasting=function(){var a=this;return!this.isCasting()?b("Promise").resolve():this.ready().then(function(){var b=a.$5;b!=null&&b.isDisconnected()&&a.$21();return a.$5}).then(function(a){return a==null?b("Promise").resolve(null):a.disconnect()}).then(function(){a.$21()})};e.playVideoNow=function(a,c){return!this.isCasting()?b("Promise").resolve():this.$25("next_video",babelHelpers["extends"]({},a,{auto_advance:!0}),c).then(function(){})};e.skipToNextVideo=function(){return!this.isCasting()?b("Promise").resolve():this.$25("skip_video").then(function(){})};e.playVideo=function(a){return!this.isCasting()?b("Promise").resolve():this.$25("play_video",{position:a||0}).then(function(){})};e.pauseVideo=function(){return!this.isCasting()?b("Promise").resolve():this.$25("pause_video").then(function(){})};e.seekVideo=function(a){return!this.isCasting()?b("Promise").resolve():this.$25("seek_video",{position:a}).then(function(){})};e.showPhoto=function(a){return!this.isCasting()?b("Promise").resolve():this.$25("show_photo",void 0,d("TV2PhotoShowRequest").TV2PhotoShowRequestToJson(a),"Photo").then(function(){})};e.stopVideo=function(){return!this.isCasting()?b("Promise").resolve():this.$25("stop_video").then(function(){})};e.playAlbumSlideshow=function(){return!this.isCasting()?b("Promise").resolve():this.$25("play_photo",void 0,void 0,"PhotoAlbum").then(function(){})};e.pauseAlbumSlideshow=function(){return!this.isCasting()?b("Promise").resolve():this.$25("pause_photo",void 0,void 0,"PhotoAlbum").then(function(){})};e.nextPhotoAlbumSlideshow=function(){return!this.isCasting()?b("Promise").resolve():this.$25("next_photo",void 0,void 0,"PhotoAlbum").then(function(){})};e.previousPhotoAlbumSlideshow=function(){return!this.isCasting()?b("Promise").resolve():this.$25("previous_photo",void 0,void 0,"PhotoAlbum").then(function(){})};e.getFriendlyName=function(){return this.$5==null?null:this.$5.getFriendlyName()};e.getVolume=function(){return this.$5==null?null:this.$5.getVolume()};e.setVolume=function(a){if(!this.isCasting())return b("Promise").resolve();return this.$5==null?b("Promise").resolve():this.$5.setVolume(a)};e.isMuted=function(){if(!this.isCasting())return null;return this.$5==null?null:this.$5.isMuted()};e.mute=function(){if(!this.isCasting())return b("Promise").resolve();return this.$5==null?b("Promise").resolve():this.$5.mute()};e.unmute=function(){if(!this.isCasting())return b("Promise").resolve();return this.$5==null?b("Promise").resolve():this.$5.unmute()};e.$26=function(){var a=this,b=this.$27();return this.$28(function(a){return{data:{client_cast_session:b,version:h},num:a,target:"version",timestamp:Date.now(),type:"version_request"}}).then(function(b){var c=b.messageNum;return a.$29(function(a){return a.response_num===c})}).then(function(a){if(a.type!=="version_response")throw c("unrecoverableViolation")('Response message was not a "version_response"',"comet_cast_sender");if(a.data==null)throw c("unrecoverableViolation")("Version response is missing data","comet_cast_sender");return a.data})};e.$24=function(a,b,d){var e=this,f=this.$27();return this.$28(function(c){return{data:{client_cast_session:f,name:a,params:b,payload:d,version:h},num:c,target:"version_launch",timestamp:Date.now(),type:"version_launch"}}).then(function(a){var b=a.messageNum;return e.$29(function(a){return a.response_num===b})}).then(function(a){if(a.type!=="version_launch_response")throw c("unrecoverableViolation")('Response message was not a "version_launch_response"',"comet_cast_sender");if(a.data==null)throw c("unrecoverableViolation")("Version launch response is missing data","comet_cast_sender");return a.data})};e.$30=function(){var a=this;return this.$6!=null?b("Promise").resolve(this.$6):this.getSession().then(function(b){return a.$26()}).then(function(b){var d=null;typeof b.currently_running_experience==="object"&&(d=b.currently_running_experience);if(d==null)throw c("unrecoverableViolation")("Session has no target","comet_cast_sender");a.$6=d;return a.$6})};e.$27=function(){var a=null;localStorage&&(a=localStorage.getItem("CastingSessionKey"));a==null&&(a=c("Random").uint32().toString(16),localStorage&&localStorage.setItem("CastingSessionKey",a));return a};e.$28=function(a){var b=this.$3+=2;return this.getSession().then(function(d){if(d==null)throw c("unrecoverableViolation")("The message can not be sent without a session","comet_cast_sender");var e=a(b);return d.sendMessage(e)}).then(function(){return{messageNum:b}})};e.$29=function(a){return this.getSession().then(function(e){if(e==null)throw c("unrecoverableViolation")("The message cannot be received without a session","comet_cast_sender");return new(b("Promise"))(function(b,c){var f=e.onMessage(function(e){try{e=d("TV2CommsParseUtils").parseTV2CommsFBAppOutboundMessageFromJSON(e);if(e.type==="version_response"||e.type==="version_launch_response"||e.type==="experience_state"||e.type==="command_result"){var g=!a||a(e);g&&(f.remove(),b(e))}}catch(a){f.remove(),c(a)}})})})};e.$25=function(a,b,d,e){var f=this;return this.$30().then(function(c){return f.$28(function(f){return{data:{cmd:a,name:e,params:b,payload:d},num:f,target:c,timestamp:Date.now(),type:"experience_command"}})}).then(function(a){var b=a.messageNum;return f.$29(function(a){return a.response_num===b})}).then(function(a){if(a.type!=="command_result")throw c("unrecoverableViolation")('Response message was not a "command_result"',"comet_cast_sender");return a.data})};e.$23=function(){var a=this;return this.$4.getSession().then(function(b){a.$5==null&&(a.$5=b);return a.$5})};e.$22=function(a){var b=this;this.$5=a;var e="extension";this.$8&&(e="site");c("promiseDone")(this.$26().then(function(c){var f=c.success;if(!f)return;var g=null;typeof c.currently_running_experience==="object"&&(g=c.currently_running_experience);g!=null&&(b.$6=g);b.$18.slice().forEach(function(c){c(a,{session:a,source:e,success:f,target:b.$6})});b.$10=a.onMessage(function(a){try{var c=d("TV2CommsParseUtils").parseTV2CommsFBAppOutboundMessageFromJSON(a);b.$17.slice().forEach(function(a){a(c)})}catch(a){b.$11.slice().forEach(function(b){b(a,"CastingReceiverManager._onSessionStartedHandler")})}})}))};e.$21=function(){this.$10!=null&&(this.$10.remove(),this.$10=null);var a=this.$5;a!=null&&a.destroy();this.$5=null;this.$6=null};e.onError=function(a){var b=this.$11;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};e.onExperienceNotSupported=function(a){var b=this.$12;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};e.onExperienceReady=function(a){var b=this.$13;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};e.onReceiverDisconnected=function(a){var b=this.$14;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};e.onReceiverStatusChanged=function(a){var b=this.$15;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};e.onSessionDisconnected=function(a){var b=this.$16;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};e.onSessionMessage=function(a){var b=this.$17;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};e.onSessionStarted=function(a){var b=this.$18;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};e.onStopView=function(a){var b=this.$19;b.push(a);return{remove:function(){c("removeFromArray")(b,a)}}};return a}();g["default"]=a}),98); __d("CastingControllerHooks",["CastingContext","CastingController","CastingEventReporter","CastingReceiverManager","CurrentUser","ExecutionEnvironment","Promise","guid","qex","react","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";f=d("react");var h=f.useContext,i=f.useEffect,j=f.useState,k=null,l=c("qex")._("1648");function m(){if(k!=null)return k;if(l==null)throw c("unrecoverableViolation")("Use useIsCastAvailable first to check if casting feature is available in this browser.","comet_cast_sender");var a=new(c("CastingReceiverManager"))(l),b=c("guid")(),d=new(c("CastingController"))(a,b);b=new(c("CastingEventReporter"))(b);b.bindToCastingController(d);k={castingController:d,castingEventReporter:b,castingReceiverManager:a};return k}function n(){var a=o();a=a.castingReceiverManager;return a}function o(){if(c("ExecutionEnvironment").canUseDOM&&c("CurrentUser").isLoggedIn())return m();throw new(b("Promise"))(function(){})}function p(){var a=o();a=a.castingController;return a}function a(){var a=n(),b=h(d("CastingContext").SetCastingControllerContext),c=j(!1),e=c[0],f=c[1];c=j(!1);var g=c[0],k=c[1];i(function(){var b=a.onExperienceReady(function(){f(a.hasSupport()||!1)});f(a.hasSupport()||!1);return function(){return b.remove()}},[a]);i(function(){var b=a.onReceiverStatusChanged(function(){k(a.hasFoundReceiver()||!1)});k(a.hasFoundReceiver()||!1);return function(){return b.remove()}},[a]);if(l==null)return!1;if(b==null)return!1;if(!e)return!1;return!g?!1:!0}function e(){var a=p(),b=h(d("CastingContext").SetCastingControllerContext);if(b==null)throw c("unrecoverableViolation")("Casting has to be initialized inside CastingProvider.","comet_cast_sender");i(function(){b(a)},[b,a])}g.useCastingController=p;g.useIsCastAvailable=a;g.useCastingInitializeIfNecessary=e}),98); __d("VideoPlayerSettingsMenuQualityPaneToggle.react",["fbt","ix","CometImage.react","CometPressable.react","VideoPlayerSettingsMenu.react","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k={chevronRight:{display:"x3nfvp2",marginBottom:"xmgb6t1",marginStart:"x12mruv9",$$css:!0},label:{cursor:"x1ypdohk",fontWeight:"x1s688f",$$css:!0},option:{alignItems:"x6s0dn4",color:"x14ctfv",cursor:"x1ypdohk",display:"x78zum5",flexGrow:"x1bhwmg6",justifyContent:"x13a6bvl",marginStart:"x1i64zmx",minWidth:"x450l9j",$$css:!0},pressableOption:{width:"xh8yej3",$$css:!0}};function a(a){var b=a.selectedVideoQuality,e=a.setPane;a=a.targetVideoQuality;return j.jsxs(c("CometPressable.react"),{onPress:function(){e(d("VideoPlayerSettingsMenu.react").VideoPlayerSettingsMenuPaneType.QUALITY)},testid:void 0,xstyle:k.pressableOption,children:[j.jsx("div",{className:"x1ypdohk x1s688f",children:h._("__JHASH__0EdCFWvij7o__JHASH__")}),j.jsxs("div",{className:"x6s0dn4 x14ctfv x1ypdohk x78zum5 x1bhwmg6 x13a6bvl x1i64zmx x450l9j",children:[b==="notselected"?j.jsx("span",{"data-testid":void 0,children:"\xa0"}):b==="auto"?j.jsxs(j.Fragment,{children:[j.jsx("span",{"data-testid":void 0,children:h._("__JHASH__hdERtczUAO6__JHASH__")}),a!=null?j.jsxs(j.Fragment,{children:[j.jsx("span",{children:"\xa0"}),j.jsx("span",{"data-testid":void 0,children:a})]}):null]}):j.jsx("span",{"data-testid":void 0,children:b}),j.jsx("span",{className:"x3nfvp2 xmgb6t1 x12mruv9",children:j.jsx(c("CometImage.react"),{src:i("480587")})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LiveVideoLatencyMenu.react",["fbt","CometRelay","LiveVideoLatencyMenuContextProvider_video.graphql","VideoPlayerHooks","gkx","react","recoverableViolation","useSelectedLatencySetting"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=d("react").useMemo,l=h._("__JHASH__bTzlM2_yLZR__JHASH__"),m=c("gkx")("3681")?[o("ultra-low"),o("low"),o("normal")]:[o("low"),o("normal")],n=j.createContext({liveVideoLatencyMenuPaneMatchPointer:null,liveVideoLatencyMenuPaneToggleMatchPointer:null});function o(a){switch(a){case"low":return{description:h._("__JHASH__Wdbuy3igQMj__JHASH__"),title:h._("__JHASH__dCQb4PMifya__JHASH__"),value:a};case"normal":return{description:h._("__JHASH__dcU5TOtw40F__JHASH__"),title:h._("__JHASH__PL-fSmiQjO2__JHASH__"),value:a};case"ultra-low":return{description:h._("__JHASH__99h8y4YbicW__JHASH__"),title:h._("__JHASH__U6zABNuSUIw__JHASH__"),value:a};default:a;c("recoverableViolation")("Setting "+a+" is not valid","gaming_video");return{description:h._("__JHASH__TWLERIjePxH__JHASH__"),title:h._("__JHASH__TWLERIjePxH__JHASH__"),value:a}}}function a(a,b){var e=d("VideoPlayerHooks").useController(),f=d("VideoPlayerHooks").useLatencyLevel();a=c("useSelectedLatencySetting")(a,b);a[0];var g=a[1];b=o(f);a=b.title;b=function(a){f!==a&&(g(a),e.setLatencyLevel(a))};return{selectedLatencySetting:f,selectedLatencySettingTitle:a,setSelectedLatencySetting:b}}var p=i!==void 0?i:i=b("LiveVideoLatencyMenuContextProvider_video.graphql");function e(a){var b=a.children;a=a.video;var c=d("CometRelay").useFragment(p,a);a=k(function(){return c==null?{liveVideoLatencyMenuPaneMatchPointer:null,liveVideoLatencyMenuPaneToggleMatchPointer:null}:{liveVideoLatencyMenuPaneMatchPointer:c.if_viewer_can_use_latency_menu,liveVideoLatencyMenuPaneToggleMatchPointer:c.if_viewer_can_use_latency_menu_toggle}},[c]);return j.jsx(n.Provider,{value:a,children:b})}e.displayName=e.name+" [from "+f.id+"]";g.LATENCY_MENU_TITLE=l;g.LATENCY_SETTING_OPTIONS=m;g.LiveVideoLatencyMenuContext=n;g.getLiveVideoLatencySettingToInfoMapping=o;g.useLatencySettingState=a;g.LiveVideoLatencyMenuContextProvider=e}),98); __d("VideoPlayerSettingsMenu.react",["fbt","$InternalEnum","CometErrorBoundary.react","CometKeys","CometPlaceholder.react","CometRelay","LiveVideoLatencyMenu.react","PlaybackSpeedExperiments","VideoPlayerHooks","VideoPlayerSettingsMenuMainPane.react","VideoPlayerSettingsMenuPlaybackSpeedPane.react","VideoPlayerSettingsMenuQualityPane.react","cr:564","react","recoverableViolation","useLayerKeyCommands"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");e=d("react");var j=e.useCallback,k=e.useContext,l=e.useEffect,m=e.useMemo,n=e.useRef,o=e.useState,p=b("$InternalEnum")({LATENCY:"latency",MAIN:"main",PLAYBACK_SPEED:"playbackSpeed",QUALITY:"quality",SEARCH_CAPTIONS:"searchCaptions"});function a(a){var e=a.children;e=e===void 0?null:e;var f=a.onClose;a=d("VideoPlayerHooks").useCaptionsLoaded();var g=d("VideoPlayerHooks").useCaptionsVisible(),q=d("VideoPlayerHooks").useSelectedVideoQuality(),r=d("VideoPlayerHooks").useInbandCaptionsAutogenerated(),s=d("VideoPlayerHooks").useTargetVideoQuality(),t=o(p.MAIN),u=t[0],v=t[1];t=o(g);g=t[0];t=t[1];var w=d("VideoPlayerHooks").usePlaybackRate(),x=d("VideoPlayerHooks").useIsLive(),y=d("VideoPlayerHooks").useIsLiveRewindActive(),z=k(d("LiveVideoLatencyMenu.react").LiveVideoLatencyMenuContext);z=z.liveVideoLatencyMenuPaneMatchPointer;var A=d("VideoPlayerHooks").useShouldShowPlaybackRateControl();A=!!d("PlaybackSpeedExperiments").enableCometPlaybackSpeedControlPublicTest()&&A;l(function(){x&&!y&&u===p.PLAYBACK_SPEED&&v(p.MAIN)},[y,v,x,u]);var B=n(null),C=n(null),D=j(function(a){B.current&&C.current&&a.target instanceof HTMLElement&&document.contains(a.target)&&!B.current.contains(a.target)&&C.current.contains(a.target)&&f()},[f]);l(function(){document.addEventListener("click",D);return function(){document.removeEventListener("click",D)}},[D]);var E=m(function(){return[{command:{key:c("CometKeys").ESCAPE},description:h._("__JHASH__hGEFqYmPW2a__JHASH__"),handler:function(){f()}}]},[f]);c("useLayerKeyCommands")(E);E=i.jsx(c("VideoPlayerSettingsMenuMainPane.react"),{captionsLoaded:a,captionsVisibleOptimistic:g,inbandCaptionsAutogenerated:r,playbackRate:w,selectedVideoQuality:q,setIsCaptionsVisible:t,setPane:v,shouldEnablePlaybackRateSupport:A,targetVideoQuality:s,children:e});switch(u){case p.LATENCY:if(z==null){c("recoverableViolation")("Latency components should not be null","gaming_video");break}E=i.jsx(c("CometErrorBoundary.react"),{children:i.jsx(c("CometPlaceholder.react"),{fallback:null,children:i.jsx(d("CometRelay").MatchContainer,{match:z,props:{setPane:v}})})});break;case p.MAIN:break;case p.PLAYBACK_SPEED:E=i.jsx(c("VideoPlayerSettingsMenuPlaybackSpeedPane.react"),{playbackRate:w,setPane:v});break;case p.QUALITY:E=i.jsx(c("VideoPlayerSettingsMenuQualityPane.react"),{selectedVideoQuality:q,setPane:v});break;case p.SEARCH_CAPTIONS:b("cr:564")!=null&&(E=i.jsx(b("cr:564"),{setPane:v,children:e}));break}return i.jsxs(i.Fragment,{children:[i.jsx("div",{ref:B,children:E}),i.jsx("div",{className:"xjbqb8w x5yr21d xg6iff7 x1g81zrj xixxii4 x17qophe x13vifvy xh8yej3 x8knxv4","data-testid":void 0,ref:C})]})}a.displayName=a.name+" [from "+f.id+"]";g.VideoPlayerSettingsMenuPaneType=p;g.VideoPlayerSettingsMenu=a}),98); __d("VideoPlayerSettingsMenuMainPane.react",["CometErrorBoundary.react","CometPlaceholder.react","CometRelay","FocusRegion.react","LiveVideoLatencyMenu.react","VideoPlayerSettingsMenuPlaybackPaneToggle.react","VideoPlayerSettingsMenuQualityPaneToggle.react","cr:565","focusScopeQueries","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useContext;function a(a){var e=a.children,f=a.playbackRate,g=a.selectedVideoQuality,j=a.setPane,k=a.shouldEnablePlaybackRateSupport;a=a.targetVideoQuality;var l=i(d("LiveVideoLatencyMenu.react").LiveVideoLatencyMenuContext);l=l.liveVideoLatencyMenuPaneToggleMatchPointer;return h.jsx(d("FocusRegion.react").FocusRegion,{autoFocusQuery:d("focusScopeQueries").headerFirstTabbableSecondScopeQuery,recoverFocusQuery:d("focusScopeQueries").headerFirstTabbableSecondScopeQuery,children:h.jsxs("div",{"data-testid":void 0,children:[h.jsx("div",{className:"x14ctfv x78zum5 x1hoihq8 x1lku1pv",children:b("cr:565")&&h.jsx(b("cr:565"),{setPane:j})}),h.jsx("div",{className:"x14ctfv x78zum5 x1hoihq8 x1lku1pv",children:h.jsx(c("VideoPlayerSettingsMenuQualityPaneToggle.react"),{selectedVideoQuality:g,setPane:j,targetVideoQuality:a})}),h.jsx("div",{className:"x14ctfv x78zum5 x1hoihq8 x1lku1pv",children:h.jsx(c("VideoPlayerSettingsMenuPlaybackPaneToggle.react"),{playbackRate:f,setPane:j,shouldEnablePlaybackRateSupport:k})}),l!=null&&h.jsx("div",{className:"x14ctfv x78zum5 x1hoihq8 x1lku1pv",children:h.jsx(c("CometErrorBoundary.react"),{children:h.jsx(c("CometPlaceholder.react"),{fallback:null,children:h.jsx(d("CometRelay").MatchContainer,{match:l,props:{setPane:j}})})})}),e]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerSettingsMenuPlaybackPaneToggle.react",["fbt","ix","CometImage.react","CometPressable.react","VideoPlayerSettingsMenu.react","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k={chevronRight:{display:"x3nfvp2",marginBottom:"xmgb6t1",marginStart:"x12mruv9",$$css:!0},label:{cursor:"x1ypdohk",fontWeight:"x1s688f",$$css:!0},option:{alignItems:"x6s0dn4",color:"x14ctfv",cursor:"x1ypdohk",display:"x78zum5",flexGrow:"x1bhwmg6",justifyContent:"x13a6bvl",marginStart:"x1i64zmx",minWidth:"x450l9j",$$css:!0},pressableOption:{width:"xh8yej3",$$css:!0}};function a(a){var b=a.playbackRate,e=a.setPane;a=a.shouldEnablePlaybackRateSupport;return!a?null:j.jsxs(c("CometPressable.react"),{onPress:function(){e(d("VideoPlayerSettingsMenu.react").VideoPlayerSettingsMenuPaneType.PLAYBACK_SPEED)},testid:void 0,xstyle:k.pressableOption,children:[j.jsx("div",{className:"x1ypdohk x1s688f",children:h._("__JHASH__8IenQAQlVCL__JHASH__")}),j.jsxs("div",{className:"x6s0dn4 x14ctfv x1ypdohk x78zum5 x1bhwmg6 x13a6bvl x1i64zmx x450l9j",children:[j.jsx("span",{"data-testid":void 0,children:b}),j.jsx("span",{className:"x3nfvp2 xmgb6t1 x12mruv9",children:j.jsx(c("CometImage.react"),{src:i("480587")})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerSettingsMenuPlaybackSpeedPane.react",["fbt","ix","CometImage.react","CometPressable.react","FocusRegion.react","VideoPlayerHooks","VideoPlayerSettingsMenu.react","focusScopeQueries","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k={chevronLeft:{display:"x3nfvp2",marginBottom:"xmgb6t1",marginStart:"x139jcc6",$$css:!0},menuHeading:{alignItems:"x6s0dn4",color:"x14ctfv",cursor:"x1ypdohk",display:"x78zum5",fontWeight:"x1s688f",":hover_textDecoration":"x1lku1pv",$$css:!0},menuLabel:{cursor:"x1ypdohk",display:"x1rg5ohu",$$css:!0},menuOption:{marginStart:"x17adc0v",marginTop:"x1anpbxc",$$css:!0},menuOptionRow:{color:"x14ctfv",display:"x1lliihq",minWidth:"xfvyar9",outline:"x1a2a7pz",paddingTop:"xyqdw3p",paddingEnd:"x4uap5",paddingBottom:"xg8j3zb",paddingStart:"xkhd6sd",textAlign:"x1yc453h",$$css:!0},pressableOption:{width:"xh8yej3",$$css:!0},radio:{backgroundColor:"x17j41np",borderTopStartRadius:"x1ykpwxx",borderTopEndRadius:"x118zf8b",borderBottomEndRadius:"xnwxkdh",borderBottomStartRadius:"xfocsrx",display:"x1rg5ohu",marginBottom:"xmgb6t1",marginEnd:"xmo9yow",paddingTop:"x1yrsyyn",paddingEnd:"xsyo7zv",paddingBottom:"x10b6aqq",paddingStart:"x16hj40l",$$css:!0},radioDot:{backgroundColor:"x14hiurz",borderTopStartRadius:"x8u2fvd",borderTopEndRadius:"x1ht7hnu",borderBottomEndRadius:"x1quq95r",borderBottomStartRadius:"x5yzy4c",display:"x1rg5ohu",height:"xqu0tyb",marginStart:"x8182xy",marginTop:"x1kgmq87",position:"x10l6tqk",width:"x51ohtg",$$css:!0},selectedOption:{fontWeight:"x1s688f",$$css:!0}};function a(a){var b=a.playbackRate,e=a.setPane,f=d("VideoPlayerHooks").useController();return j.jsx(d("FocusRegion.react").FocusRegion,{autoFocusQuery:d("focusScopeQueries").headerFirstTabbableSecondScopeQuery,recoverFocusQuery:d("focusScopeQueries").headerFirstTabbableSecondScopeQuery,children:j.jsxs("div",{"data-testid":void 0,children:[j.jsx("div",{className:"x6s0dn4 x14ctfv x1ypdohk x78zum5 x1s688f x1lku1pv",children:j.jsxs(c("CometPressable.react"),{onPress:function(){return e(d("VideoPlayerSettingsMenu.react").VideoPlayerSettingsMenuPaneType.MAIN)},testid:void 0,xstyle:k.pressableOption,children:[" ",j.jsx("span",{className:"x3nfvp2 xmgb6t1 x139jcc6",children:j.jsx(c("CometImage.react"),{src:i("480579")})}),h._("__JHASH__8IenQAQlVCL__JHASH__")]})}),j.jsx("div",{className:"x17adc0v x1anpbxc","data-testid":void 0,children:[.5,.75,1,1.25,1.5,1.75,2].map(function(a){var d=b===a;return j.jsx("div",{children:j.jsxs(c("CometPressable.react"),{onPress:function(){f.setPlaybackRate(a)},testid:void 0,xstyle:k.menuOptionRow,children:[j.jsx("div",{className:"x17j41np x1ykpwxx x118zf8b xnwxkdh xfocsrx x1rg5ohu xmgb6t1 xmo9yow x1yrsyyn xsyo7zv x10b6aqq x16hj40l",children:d&&j.jsx("div",{className:"x14hiurz x8u2fvd x1ht7hnu x1quq95r x5yzy4c x1rg5ohu xqu0tyb x8182xy x1kgmq87 x10l6tqk x51ohtg","data-testid":void 0})}),j.jsx("div",{className:"x1ypdohk x1rg5ohu"+(d?" x1s688f":""),"data-testid":void 0,children:a})]})},a)})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerSettingsMenuQualityPane.react",["fbt","ix","CometImage.react","CometPressable.react","FocusRegion.react","VideoPlayerHooks","VideoPlayerSettingsMenu.react","focusScopeQueries","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k={chevronLeft:{alignItems:"x6s0dn4",display:"x3nfvp2",marginBottom:"xmgb6t1",marginStart:"x139jcc6",$$css:!0},menuHeading:{alignItems:"x6s0dn4",color:"x14ctfv",cursor:"x1ypdohk",display:"x78zum5",fontWeight:"x1s688f",":hover_textDecoration":"x1lku1pv",$$css:!0},menuLabel:{cursor:"x1ypdohk",display:"x1rg5ohu",$$css:!0},menuOption:{marginStart:"x17adc0v",marginTop:"x1anpbxc",$$css:!0},menuOptionRow:{color:"x14ctfv",display:"x1lliihq",minWidth:"xfvyar9",outline:"x1a2a7pz",paddingTop:"xyqdw3p",paddingEnd:"x4uap5",paddingBottom:"xg8j3zb",paddingStart:"xkhd6sd",textAlign:"x1yc453h",$$css:!0},pressableOption:{width:"xh8yej3",$$css:!0},radio:{backgroundColor:"xiakxrv",borderTopStartRadius:"x1ykpwxx",borderTopEndRadius:"x118zf8b",borderBottomEndRadius:"xnwxkdh",borderBottomStartRadius:"xfocsrx",display:"x1rg5ohu",marginBottom:"xmgb6t1",marginEnd:"xmo9yow",paddingTop:"x1yrsyyn",paddingEnd:"xsyo7zv",paddingBottom:"x10b6aqq",paddingStart:"x16hj40l",$$css:!0},radioDot:{backgroundColor:"x14hiurz",borderTopStartRadius:"x8u2fvd",borderTopEndRadius:"x1ht7hnu",borderBottomEndRadius:"x1quq95r",borderBottomStartRadius:"x5yzy4c",display:"x1rg5ohu",height:"xqu0tyb",marginStart:"x8182xy",marginTop:"x1kgmq87",position:"x10l6tqk",width:"x51ohtg",$$css:!0},selectedOption:{fontWeight:"x1s688f",$$css:!0}};function a(a){var b=a.selectedVideoQuality,e=a.setPane;a=d("VideoPlayerHooks").useAvailableVideoQualities();var f=d("VideoPlayerHooks").useIsAbrEnabled(),g=d("VideoPlayerHooks").useController();return j.jsx(d("FocusRegion.react").FocusRegion,{autoFocusQuery:d("focusScopeQueries").headerFirstTabbableSecondScopeQuery,recoverFocusQuery:d("focusScopeQueries").headerFirstTabbableSecondScopeQuery,children:j.jsxs("div",{"data-testid":void 0,children:[j.jsx("div",{className:"x6s0dn4 x14ctfv x1ypdohk x78zum5 x1s688f x1lku1pv",children:j.jsxs(c("CometPressable.react"),{onPress:function(){return e(d("VideoPlayerSettingsMenu.react").VideoPlayerSettingsMenuPaneType.MAIN)},testid:void 0,xstyle:k.pressableOption,children:[j.jsx("span",{className:"x6s0dn4 x3nfvp2 xmgb6t1 x139jcc6",children:j.jsx(c("CometImage.react"),{src:i("480579")})}),h._("__JHASH__0EdCFWvij7o__JHASH__")]})}),j.jsxs("div",{className:"x17adc0v x1anpbxc","data-testid":void 0,children:[f?j.jsx("div",{children:j.jsxs(c("CometPressable.react"),{onPress:function(){g.selectVideoQuality("auto")},testid:void 0,xstyle:k.menuOptionRow,children:[j.jsx("div",{className:"xiakxrv x1ykpwxx x118zf8b xnwxkdh xfocsrx x1rg5ohu xmgb6t1 xmo9yow x1yrsyyn xsyo7zv x10b6aqq x16hj40l",children:b==="auto"&&j.jsx("div",{className:"x14hiurz x8u2fvd x1ht7hnu x1quq95r x5yzy4c x1rg5ohu xqu0tyb x8182xy x1kgmq87 x10l6tqk x51ohtg","data-testid":void 0})}),j.jsx("div",{className:"x1ypdohk x1rg5ohu"+(b==="auto"?" x1s688f":""),"data-testid":void 0,children:h._("__JHASH__pan0Y10zXIi__JHASH__")})]})},"auto"):null,a.map(function(a){var d=b===a;return j.jsx("div",{children:j.jsxs(c("CometPressable.react"),{onPress:function(){g.selectVideoQuality(a)},testid:void 0,xstyle:k.menuOptionRow,children:[j.jsx("div",{className:"xiakxrv x1ykpwxx x118zf8b xnwxkdh xfocsrx x1rg5ohu xmgb6t1 xmo9yow x1yrsyyn xsyo7zv x10b6aqq x16hj40l",children:d&&j.jsx("div",{className:"x14hiurz x8u2fvd x1ht7hnu x1quq95r x5yzy4c x1rg5ohu xqu0tyb x8182xy x1kgmq87 x10l6tqk x51ohtg","data-testid":void 0})}),j.jsx("div",{className:"x1ypdohk x1rg5ohu"+(d?" x1s688f":""),"data-testid":void 0,children:a})]})},a)}).reverse()]})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerCastControlIcon.react",["fbt","ix","CastingControllerHooks","CometRelay","CometWatchAndScrollVideoContext","JSResourceForInteraction","VideoPlayerControlIcon.react","VideoPlayerHooks","emptyFunction","fbicon","react","recoverableViolation","useCometLazyDialog"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");b=d("react");var k=b.useCallback,l=b.useContext,m=c("JSResourceForInteraction")("CometCastingStopWatchAndScrollDialog.react").__setRef("VideoPlayerCastControlIcon.react");function a(a){var b=a.subOrigin;d("CastingControllerHooks").useCastingInitializeIfNecessary();var e=(a=d("VideoPlayerHooks").useVideoFbid())!=null?a:"",f=d("VideoPlayerHooks").useController(),g=d("CometRelay").useRelayEnvironment(),n=d("CastingControllerHooks").useCastingController();a=l(c("CometWatchAndScrollVideoContext"));var o=c("useCometLazyDialog")(m),p=o[0],q=a==null?void 0:a.videoID,r=k(function(){if(e!=null){var a=f.getPlayheadPosition();n.startPlayVideoNow({environment:g,origin:"video_home",position:a,subOrigin:b,videoID:e})}else c("recoverableViolation")("Could not transition to Cast player because videoID was null","comet_video_player")},[n,g,b,f,e]);o=k(function(){q!=null?p({onClose:c("emptyFunction"),onContinue:r,startingVideoType:"cast"},c("emptyFunction")):r()},[p,r,q]);a=h._("__JHASH__n4AAlvyuR-n__JHASH__");return j.jsx(c("VideoPlayerControlIcon.react"),{color:"white",icon:d("fbicon")._(i("788899"),20),label:a,onPress:o,tooltip:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerCastControl.react",["CastingControllerHooks","VideoPlayerCastControlIcon.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){a=a.subOrigin;var b=d("CastingControllerHooks").useIsCastAvailable();return!b?null:h.jsx(c("VideoPlayerCastControlIcon.react"),{subOrigin:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerCastControlShimImpl.modern.react",["deferredLoadComponent","react","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";d("react");a=c("deferredLoadComponent")(c("requireDeferred")("VideoPlayerCastControl.react").__setRef("VideoPlayerCastControlShimImpl.modern.react"));g["default"]=a}),98); __d("VideoPlayerSettingsControl.react",["fbt","ix","VideoPlayerControlIcon.react","VideoPlayerDefaultControlsProperties","VideoPlayerSettingsMenu.react","VideoPlayerUserInteractionCounter","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useState;a=j.forwardRef(function(a,b){var e=a.alignMenuToIcon;e=e===void 0?!1:e;var f=a.children;f=f===void 0?null:f;var g=a.compactMenu,l=a.icon,m=a.menuOpened,n=a.onMenuOpen,o=a.onUserInteraction,p=a.setMenuOpened;a=k(!1);var q=a[0],r=a[1];a=h._("__JHASH__uL7pUaxPcnz__JHASH__");var s=p!=null;d("VideoPlayerUserInteractionCounter").useVideoPlayerUserInteraction("video_settings_menu",s?m===d("VideoPlayerDefaultControlsProperties").VideoMenuType.VIDEO_SETTINGS_MENU:q,o);var t=s?m===d("VideoPlayerDefaultControlsProperties").VideoMenuType.VIDEO_SETTINGS_MENU:q;return j.jsxs("div",{className:"x1rg5ohu x1k70j0n x1w0mnb xzueoph x1mnrxsn"+(e===!0?" x1n2onr6 xuxw1ft":""),ref:b,children:[t&&j.jsx("div",{className:"xjb1437 xacj9c0 x14ctfv x89ytp0 x889kno x1ou2tus x1a8lsjc x1egjynq x10l6tqk"+(e===!0?" x3m8u43":""+(g===!0?" xwjie4w":" x1fwd5yv")),children:j.jsx(d("VideoPlayerSettingsMenu.react").VideoPlayerSettingsMenu,{onClose:function(){s?p!=null&&p(null):r(!1)},children:f})}),j.jsx(c("VideoPlayerControlIcon.react"),{icon:l==null?d("fbicon")._(i("497567"),20):l,label:a,onPress:function(){s?p!=null&&p(t?null:d("VideoPlayerDefaultControlsProperties").VideoMenuType.VIDEO_SETTINGS_MENU):r(!q),!t&&n!=null&&n()},tooltip:a})]})});a.displayName="VideoPlayerSettingsControl";b=a;g["default"]=b}),98); __d("VideoPlayerCometFeedStoryControlsImplLive.react",["CometRelay","VideoPlayerCometFeedStoryControlsImplLive_video.graphql","VideoPlayerLiveVideoControls.react","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");function a(a){var e=a.disablePlaybackControls,f=a.expandControl,g=a.isAdVideo,j=a.isControlsVisible,k=a.isExpandControlVisible,l=a.isVolumeControlVisible,m=a.isWatchAndScrollControlVisible,n=a.isWatchAndScrollDisabled,o=a.onUserInteraction,p=a.reactionVideoChannelType,q=a.shouldHideRewindControls,r=a.subOrigin,s=a.video;a=a.videoTahoeUrl;s=d("CometRelay").useFragment(h!==void 0?h:h=b("VideoPlayerCometFeedStoryControlsImplLive_video.graphql"),s);var t=c("gkx")("976093");return i.jsx(c("VideoPlayerLiveVideoControls.react"),{disablePlaybackControls:e,expandControl:f,isControlsVisible:j,isExpandControlVisible:k,isVolumeControlVisible:l,isWatchAndScrollControlVisible:m,onUserInteraction:o,reactionVideoChannelType:p,shouldHideRewindControls:q,shouldRenderCastControl:!g,shouldRenderWatchAndScrollControl:!t&&!g&&n!==!0,subOrigin:r,video:s,videoTahoeUrl:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerScrubberBottomWithPreview.react",["VideoPlayerScrubber.react","VideoPlayerScrubberPreview.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.onUserInteraction,d=a.video;return h.jsx("i",{className:"x1ypdohk x1hc1fzr x10l6tqk x17qophe x13e46mh xh8yej3",children:h.jsx(c("VideoPlayerScrubber.react"),{onUserInteraction:b,renderTooltip:function(a){return h.jsx(c("VideoPlayerScrubberPreview.react"),{timestampSec:a,video:d})}})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerScrubberWithPreview.react",["VideoPlayerScrubber.react","VideoPlayerScrubberPreview.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.onUserInteraction,d=a.video;return h.jsx(c("VideoPlayerScrubber.react"),{onUserInteraction:b,renderTooltip:function(a){return h.jsx(c("VideoPlayerScrubberPreview.react"),{timestampSec:a,video:d})}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useVideoPlayerPlaybackRateControlNUX",["cr:11881"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=b("cr:11881")}),98); __d("VideoPlayerCometFeedStoryControlsImplNotLive.react",["fbt","CometRelay","CometTrackingNodeProvider.react","PlaybackSpeedExperiments","VideoPlayerCaptionsControl.react","VideoPlayerCastControlShim.react","VideoPlayerCometFeedStoryControlsImplNotLive_video.graphql","VideoPlayerControlsContainerOverlay.react","VideoPlayerControlsGroups.react","VideoPlayerHooks","VideoPlayerJoinOnPortalControl.react","VideoPlayerPlaybackControl.react","VideoPlayerPlaybackTimer.react","VideoPlayerScrubberBottomWithPreview.react","VideoPlayerScrubberWithPreview.react","VideoPlayerSettingsControl.react","VideoPlayerVolumeControl.react","VideoPlayerWatchAndScrollControl.react","cr:1790881","cr:1809777","emptyFunction","gkx","nux:31","react","useCurrentRouteBuilder","useVideoPlayerBigPlayButtonOverlay","useVideoPlayerPlaybackRateControlNUX"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=d("react").useState,l=d("PlaybackSpeedExperiments").isInCometHeadroomTest()?b("cr:1790881"):null,m=d("PlaybackSpeedExperiments").isInCometHeadroomTest()?b("cr:1809777"):null,n={nux:{maxWidth:"xw5ewwj",$$css:!0}};function a(a){var e,f=a.disablePlaybackControls,g=a.expandControl,o=a.isAdVideo,p=a.isControlsVisible,q=a.isExpandControlVisible,r=a.isVolumeControlVisible,s=a.isWatchAndScrollControlVisible,t=a.isWatchAndScrollDisabled,u=a.onUserInteraction,v=a.subOrigin,w=a.video;a=a.videoTahoeUrl;w=d("CometRelay").useFragment(i!==void 0?i:i=b("VideoPlayerCometFeedStoryControlsImplNotLive_video.graphql"),w);var x=d("VideoPlayerHooks").useShouldShowPlaybackRateControl();x=d("PlaybackSpeedExperiments").enableCometPlaybackSpeedControlNUX()&&["discover","entry_point"].includes(v)&&x;x=c("useVideoPlayerPlaybackRateControlNUX")(x);var y=x[0];x=x[1];var z=(w==null?void 0:w.recipient_group)!=null&&(w==null?void 0:w.captions_url)!=null;z=z;e=(e=b("nux:31")==null?void 0:b("nux:31")("comet_group_video_caption_setting"))!=null?e:c("emptyFunction");e=e({align:"end",arrowStyle:"inset",hasCloseButton:!0,label:h._("__JHASH__hNkQA-7yz1h__JHASH__"),position:"above",type:"accent",xstyle:n.nux},z);z=c("useVideoPlayerBigPlayButtonOverlay")();z=z.bigPlayButtonIsVisible;p=!e&&x||p;s=s||p||f===!0&&!z;q=q||f===!0&&!o&&!z;z=c("gkx")("976093");var A=d("VideoPlayerHooks").useCaptionsLoaded(),B=d("VideoPlayerHooks").useCaptionsVisible(),C=c("useCurrentRouteBuilder")();C=C==null?void 0:C.buildURL().toString();a=f!==!0&&a==null&&(C==null?void 0:C.includes("/watch/"))===!0;C=!z&&!o&&t!==!0&&w!=null?j.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:s,children:j.jsx(c("VideoPlayerWatchAndScrollControl.react"),{subOrigin:v,video:w})}):null;z=j.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:p,noPaddingEnd:!0,children:j.jsx(c("VideoPlayerJoinOnPortalControl.react"),{isVisible:p})});t=j.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:!e&&x||q,noPaddingEnd:!0,noPaddingStart:!0,children:g});s=k(null);x=s[0];q=s[1];return j.jsxs(c("VideoPlayerControlsContainerOverlay.react"),{isBackgroundVisible:p,children:[j.jsxs(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:p,children:[j.jsx(c("VideoPlayerPlaybackControl.react"),{isNPC:a}),f===!0?null:j.jsx(c("VideoPlayerPlaybackTimer.react"),{}),l!=null?j.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:p&&!f,children:j.jsx(l,{onUserInteraction:u})}):null]}),j.jsx(d("VideoPlayerControlsGroups.react").Expanded,{isVisible:p&&!f,children:j.jsx(c("VideoPlayerScrubberWithPreview.react"),{onUserInteraction:u,video:w})}),j.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:!1,children:j.jsx(c("VideoPlayerScrubberBottomWithPreview.react"),{onUserInteraction:u,video:w})}),j.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:p&&!f,noPaddingEnd:!0,children:j.jsx(c("CometTrackingNodeProvider.react"),{trackingNode:257,children:j.jsx(c("VideoPlayerSettingsControl.react"),{menuOpened:x,onUserInteraction:u,ref:(g=e)!=null?g:y,setMenuOpened:q})})}),A?j.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:p&&!f,children:j.jsx(c("VideoPlayerCaptionsControl.react"),{captionsVisible:B,menuOpened:x,onUserInteraction:u,setMenuOpened:q,video:w})}):null,!o&&w!=null?j.jsx(c("VideoPlayerCastControlShim.react"),{isVisible:p&&!f,subOrigin:v}):null,t,z,C,m!=null?j.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:!0,children:j.jsx(m,{enableNUX:d("PlaybackSpeedExperiments").enableCometPlaybackSpeedControlHeadroomTestNUX()&&["discover","entry_point"].includes(v),onUserInteraction:u})}):null,j.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:m?!0:r,noPaddingStart:!0,children:j.jsx(c("CometTrackingNodeProvider.react"),{trackingNode:114,children:j.jsx(c("VideoPlayerVolumeControl.react"),{onUserInteraction:u})})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MusicClipPlayerPlaybackTimer.react",["VideoPlayerHooks","getFormattedTimestamp","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.endTimeSeconds,e=a.startTimeSeconds,f=a.timerTextXStyle;a=a.timerXStyle;var g=d("VideoPlayerHooks").useCurrentTimeThrottled(200);g=g-e;b=b-e;e=d("VideoPlayerHooks").usePlaying();e=g<=0&&!e?b:g;return h.jsx("div",{className:c("stylex")(a),children:h.jsx("span",{className:c("stylex")(f),children:c("getFormattedTimestamp")(e)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerDefaultControlsImplMusicClipConvertBoundsLogic",[],(function(a,b,c,d,e,f){"use strict";var g=1e3,h=0,i=30,j=30;function a(a,b){var c=h,d=i;a!=null&&b!=null&&(c=Math.round(a/g),d=Math.round(b/g));d>c+j&&(d=c+j);return{lower_s:c,upper_s:d}}f["default"]=a}),66); __d("VideoPlayerDefaultControlsImplMusicClip.react",["CometRelay","MusicClipPlayerPlaybackTimer.react","VideoPlayerControlsContainerOverlay.react","VideoPlayerControlsGroups.react","VideoPlayerDefaultControlsImplMusicClipConvertBoundsLogic","VideoPlayerDefaultControlsImplMusicClip_video.graphql","VideoPlayerHooks","VideoPlayerPlaybackControl.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useEffect,k=e.useRef,l={controls:{alignItems:"x6s0dn4",bottom:"xn0vg7t",display:"x78zum5",end:"x1f00ac0",flexDirection:"x1q0g3np",justifyContent:"xl56j7k",position:"x10l6tqk",$$css:!0},timer:{color:"x14ctfv",display:"x1rg5ohu",fontSize:"x1pg5gke",fontVariantNumeric:"xss6m8b",lineHeight:"x7h9g57",marginEnd:"x1t4t16n",marginStart:"x8j4wrb",minWidth:"x9hgts1",textAlign:"x2b8uid",textShadow:"x27saw0",verticalAlign:"x3ajldb",$$css:!0},timerText:{fontWeight:"x1s688f",minWidth:"x15hfatp",$$css:!0}};function a(a){var e;a=a.video;a=d("CometRelay").useFragment(h!==void 0?h:h=b("VideoPlayerDefaultControlsImplMusicClip_video.graphql"),a);e=a==null?void 0:(e=a.music_attachment_metadata)==null?void 0:e.start_time_ms;a=a==null?void 0:(a=a.music_attachment_metadata)==null?void 0:a.end_time_ms;e=c("VideoPlayerDefaultControlsImplMusicClipConvertBoundsLogic")(e,a);var f=e.lower_s,g=e.upper_s,m=d("VideoPlayerHooks").useController();j(function(){m.seek(f),m.pause("product_initiated")},[m,f]);var n=k(null);j(function(){var a=m.subscribe(function(){var a=m.getPlayheadPosition();a!==n.current&&(n.current=a,a>g&&(m.seek(f),m.pause("product_initiated")))});return function(){a.remove()}},[m,f,g]);a=i.jsxs(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:!0,children:[i.jsx(c("MusicClipPlayerPlaybackTimer.react"),{endTimeSeconds:g,startTimeSeconds:f,timerTextXStyle:l.timerText,timerXStyle:l.timer}),i.jsx(c("VideoPlayerPlaybackControl.react"),{unmuteOnPlay:!0})]});return i.jsx("div",{className:"x6s0dn4 xn0vg7t x78zum5 x1f00ac0 x1q0g3np xl56j7k x10l6tqk",children:i.jsx(c("VideoPlayerControlsContainerOverlay.react"),{isVisible:!0,children:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useVideoPlayerPlaybackRateControlNUX.good",["emptyFunction","nux:87"],(function(a,b,c,d,e,f,g){"use strict";d=(a=b("nux:87")==null?void 0:b("nux:87")("comet_playback_speed_prompt_headroom_test"))!=null?a:c("emptyFunction").thatReturns([void 0,void 0]);g["default"]=d}),98); __d("VideoPlayerWithVideoCardsOverlay.react",["CometPlaceholder.react","CometRelay","VideoPlayerWithVideoCardsOverlay_video.graphql","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");function a(a){var e=a.cardsHidden,f=a.surface;a=a.video;a=d("CometRelay").useFragment(h!==void 0?h:h=b("VideoPlayerWithVideoCardsOverlay_video.graphql"),a);return i.jsx(c("CometPlaceholder.react"),{fallback:null,children:i.jsx(d("CometRelay").MatchContainer,{match:a==null?void 0:a.comet_video_player_with_video_card_renderer,props:{cardsHidden:e,surface:f}})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);/*FB_PKG_DELIM*/ __d("LSBeginHandlingFireForgetTasksForQueue",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[],e;return b.seq([function(f){return b.seq([function(d){return c[0]=b.createArray(),b.fe(b.ftr(b.db.table(5).fetch(),function(b){return b.queueName===a[0]}),function(a){a=a.item;return c[3]=new b.Map(),c[3].set("label",a.context),c[3].set("payload",a.taskValue),c[3].set("queue_name",a.queueName),c[3].set("task_id",a.taskId),c[3].set("failure_count",b.i64.eq([0,0],[0,0])?e:[0,0]),c[4]=(c[0].push(c[3]),c[0])})},function(f){return c[1]=new b.Map(),c[1].set("tasks",c[0]),c[1].set("epoch_id",e),c[2]=new b.Map(),c[2].set("queue_name",a[0]),c[2].set("next_sync_ms",e),c[2].set("work_item_type",[0,5]),c[2].set("network_payload",c[1]),c[2].set("http_url_override",e),c[2].set("skip_realtime_gateway",!1),d[0]=c[2]}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSSerializeBackupPayloadIndirection.bs",["bs_curry","cr:280","cr:4152","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function a(a,d,e,f,g){if(b("cr:4152")==null)if(b("cr:280")==null)return c("unrecoverableViolation")("LSSerializeBackupPayloadIndirection.res: messenger_armadillo_web:enable_armadillo OR messenger_armadillo_web:enable_encrypted_backups_shadow_test is not defined","labyrinth_web");else return c("bs_curry")._5(b("cr:280").call,a,d,e,f,g).then(function(a){return a});else return c("bs_curry")._5(b("cr:4152").call,a,d,e,f,g).then(function(a){return a})}d=a;g.$LSSerializeBackupPayloadConditional$requireCond=b("cr:280");g.$LSSerializeBackupPayloadConditional$requireCondXplat=b("cr:4152");g.call=d}),98); __d("LSSerializeBackupPayloadIndirection.nop",["LSSerializeBackupPayloadIndirection.bs"],(function(a,b,c,d,e,f,g){"use strict";a=function(a,b,c,e,f){return d("LSSerializeBackupPayloadIndirection.bs").call(a,b,c,e,f)};g["default"]=a}),98); __d("LSDeleteBackupOnClient",["LSAppendDataTraceAddon","LSFlushDataTrace.nop","LSLogMebClientEvent.nop"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(d){return function(a){c.logger(a).info(a)}("[EncryptedBackups][LSEncryptedBackupsDeleteBackupOnClientStoredProcedure]Beginning execution."),a[3]!==f?c.sp(b("LSAppendDataTraceAddon"),a[3],[0,1423],[0,2],f,f):c.resolve()},function(a){return d[0]=!1,d[0]?d[1]=!0:d[1]=!1,d[1]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),d[2]=c.createArray(),f!==f?d[3]=(d[2].push(f),d[2]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",d[2],[0,3])):c.resolve()},function(b){return c.i64.neq(a[0],f)?c.fe(c.db.table(168).fetch([[[a[0]]]]),function(a){return a["delete"]()}):c.fe(c.db.table(168).fetch(),function(a){return a["delete"]()})},function(b){return c.i64.neq(a[0],f)?c.fe(c.db.table(169).fetch([[[a[0]]],"fk_secure_encrypted_backups_client_state"]),function(a){return a["delete"]()}):c.fe(c.db.table(169).fetch(),function(a){return a["delete"]()})},function(a){return c.fe(c.db.table(190).fetch(),function(a){return a["delete"]()})},function(a){return c.fe(c.db.table(174).fetch(),function(a){return a["delete"]()})},function(b){return a[1]==="fetch_virtual_device"?c.db.table(178).put({pk:[0,1],recoveryCodeStatus:[0,4]}):c.resolve()},function(b){return a[2]?c.seq([function(a){return c.fe(c.db.table(172).fetch([[[[0,1]]]]),function(a){var b=a.update;a.item;return b({backupId:f})})},function(b){return c.i64.neq(a[0],f)?c.fe(c.ftr(c.db.table(184).fetch(),function(b){return c.i64.eq(b.backupId,a[0])}),function(a){return a["delete"]()}):c.fe(c.db.table(184).fetch(),function(a){return a["delete"]()})},function(b){return c.i64.neq(a[0],f)?c.fe(c.db.table(196).fetch([[[a[0]]]]),function(a){return a["delete"]()}):c.fe(c.db.table(196).fetch(),function(a){return a["delete"]()})}]):c.resolve()},function(e){return a[5]?c.seq([function(e){return a[5]?c.seq([function(d){return a[3]!==f?c.sp(b("LSAppendDataTraceAddon"),a[3],[0,84],[0,2],f,f):c.resolve()},function(a){return d[4]=!1,d[4]?d[5]=!0:d[5]=!1,d[5]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),d[6]=c.createArray(),f!==f?d[7]=(d[6].push(f),d[6]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",d[6],[0,3])):c.resolve()}]):a[3]!==f?c.seq([function(d){return a[3]!==f?c.sp(b("LSAppendDataTraceAddon"),a[3],[0,85],[0,2],"The flow did not succeed",f):c.resolve()},function(a){return d[4]=!1,d[4]?d[5]=!0:d[5]=!1,d[5]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),d[6]=c.createArray(),f!==f?d[7]=(d[6].push(f),d[6]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",d[6],[0,3])):c.resolve()}]):c.resolve()},function(d){return a[3]!==f?c.nop(b("LSFlushDataTrace.nop"),a[3]):c.resolve()},function(a){return d[2]=!1,d[2]?d[3]=!0:d[3]=!1,d[3]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),d[4]=c.createArray(),f!==f?d[5]=(d[4].push(f),d[4]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",d[4],[0,3])):c.resolve()}]):a[4]!==f?c.seq([function(e){return d[5]=["[EncryptedBackups][LSEncryptedBackupsDeleteBackupOnClientStoredProcedure]","",a[4]].join(""),function(a){c.logger(a).mustfix(a)}(d[5]),d[2]=c.createArray(),a[3]!==f?d[6]=(d[2].push(a[3]),d[2]):0,c.nop(b("LSLogMebClientEvent.nop"),"LSEncryptedBackupsDeleteBackupOnClientStoredProcedure",a[4],d[2],[0,3])},function(e){return a[3]!==f?c.seq([function(e){return a[3]!==f?c.sp(b("LSAppendDataTraceAddon"),a[3],[0,85],[0,2],d[5],f):c.resolve()},function(a){return d[6]=!1,d[6]?d[7]=!0:d[7]=!1,d[7]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),d[8]=c.createArray(),f!==f?d[9]=(d[8].push(f),d[8]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",d[8],[0,3])):c.resolve()}]):c.resolve()},function(d){return a[3]!==f?c.nop(b("LSFlushDataTrace.nop"),a[3]):c.resolve()},function(a){return d[3]=!1,d[3]?d[4]=!0:d[4]=!1,d[4]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),d[6]=c.createArray(),f!==f?d[7]=(d[6].push(f),d[6]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",d[6],[0,3])):c.resolve()}]):c.seq([function(e){return a[3]!==f?c.seq([function(d){return a[3]!==f?c.sp(b("LSAppendDataTraceAddon"),a[3],[0,85],[0,2],["[EncryptedBackups][LSEncryptedBackupsDeleteBackupOnClientStoredProcedure]","",""].join(""),f):c.resolve()},function(a){return d[4]=!1,d[4]?d[5]=!0:d[5]=!1,d[5]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),d[6]=c.createArray(),f!==f?d[7]=(d[6].push(f),d[6]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",d[6],[0,3])):c.resolve()}]):c.resolve()},function(d){return a[3]!==f?c.nop(b("LSFlushDataTrace.nop"),a[3]):c.resolve()},function(a){return d[2]=!1,d[2]?d[3]=!0:d[3]=!1,d[3]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),d[4]=c.createArray(),f!==f?d[5]=(d[4].push(f),d[4]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",d[4],[0,3])):c.resolve()}])},function(a){return function(a){c.logger(a).info(a)}("[EncryptedBackups][LSEncryptedBackupsDeleteBackupOnClientStoredProcedure]Finishing execution.")}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSSyncEpochs",["LSAppendDataTraceAddon","LSCreateDataTraceID.nop","LSDeleteBackupOnClient","LSFlushDataTrace.nop","LSIssueNewTask","LSLogMebClientEvent.nop"],(function(a,b,c,d,e,f){function g(){var a=babelHelpers.taggedTemplateLiteralLoose(["0"]);g=function(){return a};return a}function a(){var a=arguments,c=a[a.length-1],d=c.n,e=[],f=[],h;return c.seq([function(a){return c.seq([function(a){return function(a){c.logger(a).info(a)}("[EncryptedBackups][LSEncryptedBackupsSyncEpochsStoredProcedure]Beginning execution."),c.islc(c.ftr(c.db.table(168).fetch(),function(a){return c.i64.eq(a.authorityLevel,[0,80])&&c.i64.eq(a.backupTenancy,[0,2])}),0,c.i64.to_float([0,1])).next().then(function(a,b){b=a.done;a=a.value;return b?e[0]=!1:(a.item,e[0]=!0)})},function(a){return e[0]?e[2]=c.i64.or_([0,78],[0,128]):e[2]=[0,78],c.nop(b("LSCreateDataTraceID.nop")).then(function(a){return a=a,e[3]=a[0],a})},function(a){return e[4]="",function(a){c.logger(a).info(a)}(["[EncryptedBackups][MEBTraceUtils]",e[4],"EncryptedBackups MCD Trace ID",e[4],c.i64.to_string(e[2])].join("")),c.db.table(153).add({traceId:e[3],initTimestampMs:c.i64.of_float(Date.now()),traceType:e[2],shouldFlush:!1,contextThree:"synch_epochs"})},function(a){return e[5]=!1,e[5]?e[6]=!0:e[6]=!1,e[6]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),e[11]=c.createArray(),h!==h?e[12]=(e[11].push(h),e[11]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",e[11],[0,3])):c.resolve()},function(a){return e[3]!==h?c.sp(b("LSAppendDataTraceAddon"),e[3],[0,1436],[0,2],h,h):c.resolve()},function(a){return e[7]=!1,e[7]?e[8]=!0:e[8]=!1,e[8]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),e[11]=c.createArray(),h!==h?e[12]=(e[11].push(h),e[11]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",e[11],[0,3])):c.resolve()},function(a){return c.ftr(c.db.table(2).fetch(),function(a){return a.context===c.i64.to_string([0,50013])}).next().then(function(a,b){b=a.done;a=a.value;return b?e[9]=!1:(a.item,e[9]=!0)})},function(a){return e[9]?(e[11]="Another sync job is already in progress. Terminating this.",e[11]!==h?c.seq([function(a){return e[15]=["[EncryptedBackups][LSEncryptedBackupsSyncEpochsStoredProcedure]","",e[11]].join(""),function(a){c.logger(a).mustfix(a)}(e[15]),e[12]=c.createArray(),e[3]!==h?e[16]=(e[12].push(e[3]),e[12]):0,c.nop(b("LSLogMebClientEvent.nop"),"LSEncryptedBackupsSyncEpochsStoredProcedure",e[11],e[12],[0,3])},function(a){return e[3]!==h?c.seq([function(a){return e[3]!==h?c.sp(b("LSAppendDataTraceAddon"),e[3],[0,85],[0,2],e[15],h):c.resolve()},function(a){return e[16]=!1,e[16]?e[17]=!0:e[17]=!1,e[17]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),e[18]=c.createArray(),h!==h?e[19]=(e[18].push(h),e[18]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",e[18],[0,3])):c.resolve()}]):c.resolve()},function(a){return e[3]!==h?c.nop(b("LSFlushDataTrace.nop"),e[3]):c.resolve()},function(a){return e[13]=!1,e[13]?e[14]=!0:e[14]=!1,e[14]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),e[16]=c.createArray(),h!==h?e[17]=(e[16].push(h),e[16]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",e[16],[0,3])):c.resolve()}]):c.seq([function(a){return e[3]!==h?c.seq([function(a){return e[3]!==h?c.sp(b("LSAppendDataTraceAddon"),e[3],[0,85],[0,2],["[EncryptedBackups][LSEncryptedBackupsSyncEpochsStoredProcedure]","",""].join(""),h):c.resolve()},function(a){return e[14]=!1,e[14]?e[15]=!0:e[15]=!1,e[15]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),e[16]=c.createArray(),h!==h?e[17]=(e[16].push(h),e[16]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",e[16],[0,3])):c.resolve()}]):c.resolve()},function(a){return e[3]!==h?c.nop(b("LSFlushDataTrace.nop"),e[3]):c.resolve()},function(a){return e[12]=!1,e[12]?e[13]=!0:e[13]=!1,e[13]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),e[14]=c.createArray(),h!==h?e[15]=(e[14].push(h),e[14]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",e[14],[0,3])):c.resolve()}])):c.seq([function(a){return c.ct(c.ftr(c.db.table(168).fetch(),function(a){return c.i64.eq(a.authorityLevel,[0,80])})).then(function(a){return e[11]=a})},function(a){return c.i64.eq(e[11],[0,1])?c.ftr(c.db.table(168).fetch(),function(a){return c.i64.eq(a.authorityLevel,[0,80])}).next().then(function(a,f){var i=a.done;a=a.value;return i?0:(f=a.item,e[13]=f.backupId,e[12]=f.deviceId,c.i64.neq(e[12],h)?c.seq([function(a){return c.ct(c.db.table(169).fetch()).then(function(a){return e[14]=a})},function(a){return c.i64.neq(e[14],d(g()))?e[15]=!0:e[15]=!1,e[15]?(e[16]=new c.Map(),e[16].set("backup_id",e[13]),e[16].set("device_id",e[12]),e[16].set("trace_id",e[3]),e[17]=c.toJSON(e[16]),c.sp(b("LSIssueNewTask"),"messenger_encrypted_backups",[0,50013],e[17],h,h,[0,0],[0,0],h,h,[0,0])):c.seq([function(a){return function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][LSEncryptedBackupsSyncEpochsStoredProcedure]epochs table is null/empty. Cleaning backup on client"),e[3]!==h?c.seq([function(a){return e[3]!==h?c.sp(b("LSAppendDataTraceAddon"),e[3],[0,85],[0,2],"[EncryptedBackups][LSEncryptedBackupsSyncEpochsStoredProcedure]epochs table is null/empty. Cleaning backup on client",h):c.resolve()},function(a){return e[17]=!1,e[17]?e[18]=!0:e[18]=!1,e[18]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),e[19]=c.createArray(),h!==h?e[20]=(e[19].push(h),e[19]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",e[19],[0,3])):c.resolve()}]):c.resolve()},function(a){return e[16]=c.createArray(),e[3]!==h?e[17]=(e[16].push(e[3]),e[16]):0,c.nop(b("LSLogMebClientEvent.nop"),"LSEncryptedBackupsSyncEpochsStoredProcedure","epochs table is null/empty. Cleaning backup on client",e[16],[0,3])},function(a){return c.sp(b("LSDeleteBackupOnClient"),e[13],"synch_epochs",!0,e[3],"epochs table is null/empty. Cleaning backup on client",!1)}])}]):c.seq([function(a){return function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][LSEncryptedBackupsSyncEpochsStoredProcedure]device_id is null. Cleaning backup on client"),e[3]!==h?c.seq([function(a){return e[3]!==h?c.sp(b("LSAppendDataTraceAddon"),e[3],[0,85],[0,2],"[EncryptedBackups][LSEncryptedBackupsSyncEpochsStoredProcedure]device_id is null. Cleaning backup on client",h):c.resolve()},function(a){return e[15]=!1,e[15]?e[16]=!0:e[16]=!1,e[16]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),e[17]=c.createArray(),h!==h?e[18]=(e[17].push(h),e[17]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",e[17],[0,3])):c.resolve()}]):c.resolve()},function(a){return e[14]=c.createArray(),e[3]!==h?e[15]=(e[14].push(e[3]),e[14]):0,c.nop(b("LSLogMebClientEvent.nop"),"LSEncryptedBackupsSyncEpochsStoredProcedure","device_id is null. Cleaning backup on client",e[14],[0,3])},function(a){return c.sp(b("LSDeleteBackupOnClient"),e[13],"synch_epochs",!0,e[3],"device_id is null. Cleaning backup on client",!1)}]))}):c.seq([function(a){return e[17]="Exactly 1 entry is expected in client_state_table",e[17]!==h?c.seq([function(a){return e[21]=["[EncryptedBackups][LSEncryptedBackupsSyncEpochsStoredProcedure]","",e[17]].join(""),function(a){c.logger(a).mustfix(a)}(e[21]),e[18]=c.createArray(),e[3]!==h?e[22]=(e[18].push(e[3]),e[18]):0,c.nop(b("LSLogMebClientEvent.nop"),"LSEncryptedBackupsSyncEpochsStoredProcedure",e[17],e[18],[0,3])},function(a){return e[3]!==h?c.seq([function(a){return e[3]!==h?c.sp(b("LSAppendDataTraceAddon"),e[3],[0,85],[0,2],e[21],h):c.resolve()},function(a){return e[22]=!1,e[22]?e[23]=!0:e[23]=!1,e[23]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),e[24]=c.createArray(),h!==h?e[25]=(e[24].push(h),e[24]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",e[24],[0,3])):c.resolve()}]):c.resolve()},function(a){return e[3]!==h?c.nop(b("LSFlushDataTrace.nop"),e[3]):c.resolve()},function(a){return e[19]=!1,e[19]?e[20]=!0:e[20]=!1,e[20]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),e[22]=c.createArray(),h!==h?e[23]=(e[22].push(h),e[22]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",e[22],[0,3])):c.resolve()}]):c.seq([function(a){return e[3]!==h?c.seq([function(a){return e[3]!==h?c.sp(b("LSAppendDataTraceAddon"),e[3],[0,85],[0,2],["[EncryptedBackups][LSEncryptedBackupsSyncEpochsStoredProcedure]","",""].join(""),h):c.resolve()},function(a){return e[20]=!1,e[20]?e[21]=!0:e[21]=!1,e[21]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),e[22]=c.createArray(),h!==h?e[23]=(e[22].push(h),e[22]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",e[22],[0,3])):c.resolve()}]):c.resolve()},function(a){return e[3]!==h?c.nop(b("LSFlushDataTrace.nop"),e[3]):c.resolve()},function(a){return e[18]=!1,e[18]?e[19]=!0:e[19]=!1,e[19]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),e[20]=c.createArray(),h!==h?e[21]=(e[20].push(h),e[20]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",e[20],[0,3])):c.resolve()}])},function(a){return e[14]="Exactly 1 entry is expected in client_state_table. Found = ",c.ct(c.ftr(c.db.table(168).fetch(),function(a){return c.i64.eq(a.authorityLevel,[0,80])})).then(function(a){return e[12]=a})},function(a){return e[15]=c.i64.to_string(e[12]),e[13]="",function(a){c.logger(a).mustfix(a)}(["[EncryptedBackups][LSEncryptedBackupsSyncEpochsStoredProcedure]",e[13],e[14],e[13],e[15]].join("")),e[16]=c.createArray(),h!==h?e[18]=(e[16].push(h),e[16]):0,c.nop(b("LSLogMebClientEvent.nop"),"LSEncryptedBackupsSyncEpochsStoredProcedure",[e[14],",",e[15]].join(""),e[16],[0,3])}])}])},function(a){return function(a){c.logger(a).info(a)}("[EncryptedBackups][LSEncryptedBackupsSyncEpochsStoredProcedure]Finishing execution.")}])},function(a){return c.resolve(f)}])}e.exports=a}),null); __d("LSTaskSerializerMuteThreadV2",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[],e;return b.seq([function(f){return b.seq([function(d){return b.db.table(32).fetch([[[a[0]]]]).next().then(function(d,f){var g=d.done;d=d.value;return g?(c[3]=b.createArray(),c[4]=(c[3].push("TaskSerializerMuteThreadV2: Task ID not found"),c[3]),c[5]=(c[3].push(a[0]),c[3]),c[6]=b.toJSON(c[3]),function(a){b.logger(a).mustfix(a)}(c[6]),g=[e,e],c[0]=g[0],c[1]=g[1],g):(f=d.item,b.seq([function(a){return c[6]=f.threadKey,b.db.table(9).fetch([[[c[6]]]]).next().then(function(d,f){var a=d.done;d=d.value;return a?(c[7]=b.createArray(),c[8]=(c[7].push("TaskSerializerMuteThreadV2: Thread not found"),c[7]),c[9]=(c[7].push(c[6]),c[7]),c[10]=b.toJSON(c[7]),function(a){b.logger(a).mustfix(a)}(c[10]),a=[e,e],c[3]=a[0],c[4]=a[1],a):(f=d.item,b.seq([function(a){return b.db.table(9).fetch([[[c[6]]]]).next().then(function(d,f){var a=d.done;d=d.value;return a?c[7]=[0,1]:(f=d.item,c[12]=f.syncGroup,b.i64.neq(c[12],e)?c[11]=c[12]:c[11]=[0,1],c[7]=c[11])})},function(a){return c[9]=new b.Map(),c[9].set("thread_key",c[6]),c[9].set("mailbox_type",[0,0]),c[9].set("mute_expire_time_ms",f.muteExpireTimeMs),c[9].set("sync_group",c[7]),c[10]=b.toJSON(c[9]),a=[c[10],[0,144]],c[3]=a[0],c[4]=a[1],a}]))})},function(a){return a=[c[3],c[4]],c[0]=a[0],c[1]=a[1],a}]))})},function(a){return a=[c[0],c[1]],d[0]=a[0],d[1]=a[1],a}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSTaskSerializerRemoveThread",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[],e;return b.seq([function(f){return b.seq([function(d){return b.db.table(32).fetch([[[a[0]]]]).next().then(function(d,f){var g=d.done;d=d.value;return g?(c[3]=b.createArray(),c[4]=(c[3].push("TaskSerializerRemoveThreadV2: Task ID not found"),c[3]),c[5]=(c[3].push(a[0]),c[3]),c[6]=b.toJSON(c[3]),function(a){b.logger(a).mustfix(a)}(c[6]),g=[e,e],c[0]=g[0],c[1]=g[1],g):(f=d.item,c[5]=f.removeType,b.i64.neq(c[5],e)?(c[6]=new b.Map(),c[6].set("thread_key",f.threadKey),c[6].set("remove_type",c[5]),c[6].set("sync_group",f.syncGroup==null?[0,1]:f.syncGroup),c[7]=b.toJSON(c[6]),g=[c[7],[0,146]],c[3]=g[0],c[4]=g[1],g):(d=[e,e],c[3]=d[0],c[4]=d[1],d),f=[c[3],c[4]],c[0]=f[0],c[1]=f[1],f)})},function(a){return a=[c[0],c[1]],d[0]=a[0],d[1]=a[1],a}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("EncryptedBackupsSymmetricEncryptionUtils.bs",[],(function(a,b,c,d,e,f){"use strict";a=16;b=28;c=16;d=128;f.hChaCha20SubKeyNonceLengthInBytes=a;f.totalNonceLengthInBytes=b;f.aesGcmTagLengthInBytes=c;f.aesGcmTagLength=d}),66); __d("HChaCha20",["err"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(){}a.fromHexString=function(a){var b=a.match(/[A-Fa-f0-9]{1,2}/g);if(a.length===0||a.length%2!==0||b==null)throw c("err")('The string "'+a+'" is not valid hex.');return new Uint8Array(b.map(function(a){return parseInt(a,16)}))};a.bufferToUint32Array=function(a){var b=new DataView(a),c=[];a=a.byteLength/4;for(var d=0;d>>32-b)>>>0};a.quarterRound=function(b,c,d,e){b=b;c=c;d=d;e=e;b=b+c&4294967295;e=a.rotate(e^b,16);d=d+e&4294967295;c=a.rotate(c^d,12);b=b+c&4294967295;e=a.rotate(e^b,8);d=d+e&4294967295;c=a.rotate(c^d,7);return[b>>>0,c>>>0,d>>>0,e>>>0]};var b=a.prototype;b.createHCtx=function(b,d){var e=new Uint32Array(16),f=a.fromHexString("657870616e642033322d62797465206b");if(f.byteLength!==16)throw c("err")("Could not create context. Invalid constant buffer length of "+f.byteLength+". Expected a length of 16");else if(b.byteLength!==32)throw c("err")("Could not create context. Invalid key buffer length of "+b.byteLength+". Expected a length of 32");else if(d.byteLength!==16)throw c("err")("Could not create context. Invalid nonce buffer length of "+d.byteLength+". Expected a length of 16");f=a.bufferToUint32Array(f.buffer);b=a.bufferToUint32Array(b);d=a.bufferToUint32Array(d);e.set(f);e.set(b,f.length);e.set(d,f.length+b.length);return e.buffer};b.hChaCha20Bytes=function(b,c){c=new DataView(this.createHCtx(c,b));b=c.getInt32(0);var d=c.getInt32(1<<2),e=c.getInt32(2<<2),f=c.getInt32(3<<2),g=c.getInt32(4<<2),h=c.getInt32(5<<2),i=c.getInt32(6<<2),j=c.getInt32(7<<2),k=c.getInt32(8<<2),l=c.getInt32(9<<2),m=c.getInt32(10<<2),n=c.getInt32(11<<2),o=c.getInt32(12<<2),p=c.getInt32(13<<2),q=c.getInt32(14<<2);c=c.getInt32(15<<2);for(var r=0;r<10;r++){var s=a.quarterRound(b,g,k,o);b=s[0];g=s[1];k=s[2];o=s[3];s=a.quarterRound(d,h,l,p);d=s[0];h=s[1];l=s[2];p=s[3];s=a.quarterRound(e,i,m,q);e=s[0];i=s[1];m=s[2];q=s[3];s=a.quarterRound(f,j,n,c);f=s[0];j=s[1];n=s[2];c=s[3];s=a.quarterRound(b,h,m,c);b=s[0];h=s[1];m=s[2];c=s[3];s=a.quarterRound(d,i,n,o);d=s[0];i=s[1];n=s[2];o=s[3];s=a.quarterRound(e,j,k,p);e=s[0];j=s[1];k=s[2];p=s[3];s=a.quarterRound(f,g,l,q);f=s[0];g=s[1];l=s[2];q=s[3]}return Uint32Array.from([b,d,e,f,o,p,q,c]).buffer};return a}();g.HChaCha20=a}),98); __d("SymmetricEncryptionPaddingUtils.bs",["TextEncoder.bs","bs_caml_option","bs_js_math","bs_pervasives"],(function(a,b,c,d,e,f,g){"use strict";function h(a){if(a<10)return 10-a|0;var b=c("bs_js_math").floor_int(Math.log2(a)),d=c("bs_js_math").floor_int(Math.log2(b))+1|0;b=b-d|0;d=(1<=0&&d<=e)return c("bs_caml_option").some(a.slice(b,b+d|0))}g.getPaddingLength=h;g.padData=i;g.pad=a;g.stripPadding=b}),98); __d("LSSymmetricEncryptionCreateEncryptedData.bs",["Crypto.bs","CryptoLogger.bs","EncryptedBackupsSymmetricEncryptionUtils.bs","HChaCha20","LSResult.bs","Promise","Promise.bs","SymmetricEncryptionPaddingUtils.bs","bs_caml_option"],(function(a,b,c,d,e,f,g){"use strict";function a(a,e,f,g,h){var i=d("CryptoLogger.bs").make("symmetric_encryption_create_encrypted_data"),j=d("SymmetricEncryptionPaddingUtils.bs").padData(h),k=d("Crypto.bs").getRandomValues(new Uint8Array(d("EncryptedBackupsSymmetricEncryptionUtils.bs").totalNonceLengthInBytes));a=new(d("HChaCha20").HChaCha20)();e=a.hChaCha20Bytes(k.slice(0,d("EncryptedBackupsSymmetricEncryptionUtils.bs").hChaCha20SubKeyNonceLengthInBytes).buffer,f);return d("Promise.bs").$$catch(d("Crypto.bs").importKey("raw",e,{NAME:"Aes",VAL:"AES-GCM"},!1,["encrypt"]).then(function(a){return d("Crypto.bs").encrypt({additionalData:c("bs_caml_option").some(g),iv:k.slice(d("EncryptedBackupsSymmetricEncryptionUtils.bs").hChaCha20SubKeyNonceLengthInBytes).buffer,name:"AES-GCM",tagLength:d("EncryptedBackupsSymmetricEncryptionUtils.bs").aesGcmTagLength},a,j)}).then(function(a){var e=k.byteLength+a.byteLength|0;e=new Uint8Array(e);e.set(k);e.set(new Uint8Array(a),d("EncryptedBackupsSymmetricEncryptionUtils.bs").totalNonceLengthInBytes);return b("Promise").resolve(d("LSResult.bs").make(c("bs_caml_option").some(e.buffer)))}),function(a){d("CryptoLogger.bs").captureError(i,a).mustfix("symmetric data encryption failed");return b("Promise").resolve(d("LSResult.bs").make())})}e=a;g.call=e}),98); __d("PromiseOptional.bs",["Promise","bs_caml_option","bs_curry"],(function(a,b,c,d,e,f,g){"use strict";function h(a,d){return a.then(function(a){if(a!==void 0)return c("bs_curry")._1(d,c("bs_caml_option").valFromOption(a));else return b("Promise").resolve()})}function i(a){return b("Promise").resolve(c("bs_caml_option").some(a))}function a(a){return a.then(i)}function d(a){return b("Promise").resolve(a)}function e(a,d){var e=function(a){a=c("bs_curry")._1(d,a);return b("Promise").resolve(c("bs_caml_option").some(a))};return h(a,e)}function f(a,d){var e=function(a){return b("Promise").resolve(c("bs_curry")._1(d,a))};return h(a,e)}function j(a){return b("Promise").reject(a)}g.$$then=h;g.resolve=i;g.fromPromise=a;g.wrapOption=d;g.thenSome=e;g.thenResolve=f;g.reject=j}),98); __d("LSSymmetricEncryptionCreateEncryptedString.bs",["Base64.bs","Crypto.bs","CryptoLogger.bs","LSResult.bs","LSSymmetricEncryptionCreateEncryptedData.bs","Promise","Promise.bs","PromiseOptional.bs"],(function(a,b,c,d,e,f,g){"use strict";function a(a,c,e,f,g){var h=d("CryptoLogger.bs").make("symmetric_encryption_create_encrypted_string");return d("Promise.bs").$$catch(d("PromiseOptional.bs").thenSome(d("LSSymmetricEncryptionCreateEncryptedData.bs").call(a,c,e,f,d("Crypto.bs").Utils.strToBuf(g)).then(function(a){return a[0]}),d("Base64.bs").fromArrayBuffer).then(d("LSResult.bs").make),function(a){d("CryptoLogger.bs").captureError(h,a).mustfix("symmetric string encryption failed");return b("Promise").resolve(d("LSResult.bs").make())})}c=a;g.call=c}),98); __d("LSSymmetricEncryptionCreateEncryptedString.nop",["LSSymmetricEncryptionCreateEncryptedString.bs"],(function(a,b,c,d,e,f,g){"use strict";a=function(a,b,c,e,f){return d("LSSymmetricEncryptionCreateEncryptedString.bs").call(a,b,c,e,f)};g["default"]=a}),98); __d("LSTaskSerializerSendMessageV2",["LSSymmetricEncryptionCreateEncryptedString.nop"],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[],e;return b.seq([function(f){return b.seq([function(d){return b.db.table(31).fetch([[[a[0]]]]).next().then(function(d,f){var g=d.done;d=d.value;return g?(c[3]=b.createArray(),c[4]=(c[3].push("task ID not found"),c[3]),c[5]=(c[3].push(a[0]),c[3]),c[6]=b.toJSON(c[3]),function(a){b.logger(a).mustfix(a)}(c[6]),g=[e,e],c[0]=g[0],c[1]=g[1],g):(f=d.item,b.seq([function(d){return c[9]=f.offlineThreadingId,c[10]=f.messageId,c[16]=f.threadAttributionSource,c[7]=f.platformRef,c[8]=f.platformToken,c[6]=f.replySourceId,c[11]=f.replySourceType,c[15]=f.sendType,c[12]=f.initiatingSource,c[13]=f.skipUrlPreviewGen,c[14]=f.textHasLinks,b.db.table(12).fetch([[[c[9]]],"optimistic"]).next().then(function(f,h){var d=f.done;f=f.value;return d?(c[17]=b.createArray(),c[18]=(c[17].push("OTID not found"),c[17]),c[19]=(c[17].push(c[9]),c[17]),c[20]=b.toJSON(c[17]),function(a){b.logger(a).mustfix(a)}(c[20]),d=[e,e],c[3]=d[0],c[4]=d[1],d):(h=f.item,b.seq([function(d){return c[23]=h.text,c[20]=h.threadKey,c[24]=h.messageId,c[22]=h.stickerId,c[26]=h.mentionOffsets,c[27]=h.mentionLengths,c[21]=h.mentionIds,c[28]=h.mentionTypes,c[31]=h.replyType,c[29]=h.isForwarded,c[25]=h.forwardScore,c[30]=h.hotEmojiSize,b.db.table(9).fetch([[[c[20]]]]).next().then(function(f,i){var d=f.done;f=f.value;return d?(c[32]=b.createArray(),c[33]=(c[32].push("thread not found"),c[32]),c[34]=(c[32].push(c[20]),c[32]),c[35]=b.toJSON(c[32]),function(a){b.logger(a).mustfix(a)}(c[35]),d=[e,e],c[17]=d[0],c[18]=d[1],d):(i=f.item,b.seq([function(d){return b.db.table(2).fetch([[[a[0]]]]).next().then(function(e,f){var d=e.done;e=e.value;return d?c[32]=!1:(f=e.item,b.seq([function(d){return b.islc(b.db.table(2).fetch([[[f.queueName]],"queueNameTaskId"]),0,b.i64.to_float([0,1])).next().then(function(e,f){var d=e.done;e=e.value;return d?c[36]=!1:(f=e.item,c[36]=b.i64.eq(f.taskId,a[0]))})},function(a){return c[32]=c[36]}]))})},function(a){return b.i64.eq(i.authorityLevel,[0,20])&&b.i64.eq(i.threadType,[0,2])&&c[32]?b.seq([function(a){return c[39]=c[15]==null?[0,1]:c[15],b.db.table(9).fetch([[[c[20]]]]).next().then(function(d,f){var a=d.done;d=d.value;return a?c[36]=[0,1]:(f=d.item,c[48]=f.syncGroup,b.i64.neq(c[48],e)?c[47]=c[48]:c[47]=[0,1],c[36]=c[47])})},function(a){return c[38]=new b.Map(),c[38].set("thread_id",c[20]),c[38].set("otid",c[9]),c[38].set("source",c[16]==null?[0,0]:c[16]),c[38].set("send_type",[0,1]),c[38].set("sync_group",c[36]),b.i64.eq(c[39],[0,1])?b.resolve(c[38].set("text",c[23])):b.i64.eq(c[39],[0,2])?b.resolve(b.i64.neq(c[22],e)?(c[38].set("sticker_id",c[22]),c[38].set("send_type",c[39])):0):b.i64.eq(c[39],[0,7])?b.seq([function(a){return b.db.table(16).fetch([[[c[20],c[24]]]]).next().then(function(b,d){var a=b.done;b=b.value;return a?(a=[e,e],c[47]=a[0],c[48]=a[1],a):(d=b.item,a=[d.filename,d.attributionAppId],c[47]=a[0],c[48]=a[1],a)})},function(a){return c[47]!==e?b.i64.neq(c[48],e)?(c[38].set("url",c[47]),c[38].set("attribution_app_id",c[48]),c[38].set("send_type",c[39])):0:0}]):b.i64.eq(c[39],[0,3])?b.seq([function(a){return c[38].set("text",c[23]),c[47]=b.createArray(),c[48]=b.createArray(),b.fe(b.sb(b.db.table(16).fetch([[[c[20],c[24]]]]),[["attachmentIndex","ASC"]]),function(a){a=a.item;return c[49]=a.offlineAttachmentId,c[50]=(c[47].push(b.i64.from_string(a.attachmentFbid)),c[47]),c[49]!==e?c[50]=(c[48].push(c[49]),c[48]):0})},function(a){return c[38].set("attachment_fbids",c[47]),b.i64.eq(c[39],[0,9])?c[38].set("offline_attachment_ids",c[48]):0,c[38].set("send_type",c[39])}]):b.i64.eq(c[39],[0,9])?b.seq([function(a){return c[38].set("text",c[23]),c[47]=b.createArray(),c[48]=b.createArray(),b.fe(b.sb(b.db.table(16).fetch([[[c[20],c[24]]]]),[["attachmentIndex","ASC"]]),function(a){a=a.item;return c[49]=a.offlineAttachmentId,c[50]=(c[47].push(b.i64.from_string(a.attachmentFbid)),c[47]),c[49]!==e?c[50]=(c[48].push(c[49]),c[48]):0})},function(a){return c[38].set("attachment_fbids",c[47]),b.i64.eq(c[39],[0,9])?c[38].set("offline_attachment_ids",c[48]):0,c[38].set("send_type",c[39])}]):b.i64.eq(c[39],[0,10])?b.seq([function(a){return c[38].set("text",c[23]),c[47]=b.createArray(),c[48]=b.createArray(),b.fe(b.sb(b.db.table(16).fetch([[[c[20],c[24]]]]),[["attachmentIndex","ASC"]]),function(a){a=a.item;return c[49]=a.offlineAttachmentId,c[50]=(c[47].push(b.i64.from_string(a.attachmentFbid)),c[47]),c[49]!==e?c[50]=(c[48].push(c[49]),c[48]):0})},function(a){return c[38].set("attachment_fbids",c[47]),b.i64.eq(c[39],[0,9])?c[38].set("offline_attachment_ids",c[48]):0,c[38].set("send_type",c[39])}]):b.i64.eq(c[39],[0,4])?b.seq([function(a){return b.db.table(16).fetch([[[c[20],c[24]]]]).next().then(function(b,d){var a=b.done;b=b.value;return a?c[47]=e:(d=b.item,c[47]=d.attachmentFbid)})},function(a){return c[47]!==e?(c[38].set("text",c[23]),c[38].set("forwarded_share_id",c[47]),c[38].set("send_type",c[39])):0}]):b.i64.eq(c[39],[0,5])?b.resolve(c[10]!==e?(c[38].set("forwarded_msg_id",c[10]),c[38].set("send_type",c[39]),b.i64.neq(c[25],e)?c[38].set("forward_score",c[25]):0,c[38].set("strip_forwarded_msg_caption",!1)):0):b.i64.eq(c[39],[0,6])?b.seq([function(a){return b.db.table(16).fetch([[[c[20],c[24]]]]).next().then(function(b,d){var a=b.done;b=b.value;return a?(a=[e,e],c[47]=a[0],c[48]=a[1],a):(d=b.item,a=[d.filename,d.attributionAppId],c[47]=a[0],c[48]=a[1],a)})},function(a){return c[47]!==e?(c[38].set("url",c[47]),c[38].set("text",c[23]),c[38].set("send_type",c[39])):0}]):b.resolve(0)},function(a){return c[43]=c[6]===""?e:c[6],c[43]!==e?b.i64.neq(c[11],e)?(c[47]=new b.Map(),c[47].set("reply_source_id",c[43]),c[47].set("reply_source_type",c[11]),c[47].set("reply_type",c[31]==null?[0,0]:c[31]),c[38].set("reply_metadata",c[47])):0:0,c[44]=c[21]===""?e:c[21],c[44]!==e?(c[47]=c[26]===""?e:c[26],c[47]!==e?(c[48]=c[27]===""?e:c[27],c[48]!==e?(c[49]=new b.Map(),c[49].set("mention_ids",c[44]),c[49].set("mention_offsets",c[47]),c[49].set("mention_lengths",c[48]),c[49].set("mention_types",c[28]===""?e:c[28]),c[38].set("mention_data",c[49])):0):0):0,c[29]!==e?c[38].set("is_forwarded",c[29]):0,c[45]=c[7]===""?e:c[7],c[45]!==e?c[38].set("platform_ref",c[45]):0,c[46]=c[8]===""?e:c[8],c[46]!==e?c[38].set("platform_token",c[46]):0,[[0,1],[0,2]].some(function(a){return b.i64.eq(c[39],a)})?b.i64.neq(c[30],e)?c[38].set("hot_emoji_size",c[30]):0:0,b.i64.neq(c[12],e)?c[38].set("initiating_source",c[12]):0,c[13]!==e?c[38].set("skip_url_preview_gen",c[13]):0,b.resolve()},function(a){return c[14]!==e?c[38].set("text_has_links",c[14]):0,c[40]=b.createArray(),b.fe(b.db.table(14).fetch([[[c[20]]]]),function(a){a=a.item;return c[47]=(c[40].push(a.contactId),c[40])})},function(a){return c[41]=new b.Map(),c[41].set("participants",c[40]),c[41].set("send_payload",c[38]),b.fe(b.db.table(9).fetch([[[i.threadKey]]]),function(a){var b=a.update;a.item;return b({otidOfFirstMessage:h.offlineThreadingId})})},function(a){return c[42]=b.toJSON(c[41]),a=[c[42],[0,130]],c[34]=a[0],c[35]=a[1],a}]):b.seq([function(a){return c[39]=c[15]==null?[0,1]:c[15],b.db.table(9).fetch([[[c[20]]]]).next().then(function(d,f){var a=d.done;d=d.value;return a?c[36]=[0,1]:(f=d.item,c[46]=f.syncGroup,b.i64.neq(c[46],e)?c[45]=c[46]:c[45]=[0,1],c[36]=c[45])})},function(a){return c[38]=new b.Map(),c[38].set("thread_id",c[20]),c[38].set("otid",c[9]),c[38].set("source",c[16]==null?[0,0]:c[16]),c[38].set("send_type",[0,1]),c[38].set("sync_group",c[36]),b.i64.eq(c[39],[0,1])?b.resolve(c[38].set("text",c[23])):b.i64.eq(c[39],[0,2])?b.resolve(b.i64.neq(c[22],e)?(c[38].set("sticker_id",c[22]),c[38].set("send_type",c[39])):0):b.i64.eq(c[39],[0,7])?b.seq([function(a){return b.db.table(16).fetch([[[c[20],c[24]]]]).next().then(function(b,d){var a=b.done;b=b.value;return a?(a=[e,e],c[45]=a[0],c[46]=a[1],a):(d=b.item,a=[d.filename,d.attributionAppId],c[45]=a[0],c[46]=a[1],a)})},function(a){return c[45]!==e?b.i64.neq(c[46],e)?(c[38].set("url",c[45]),c[38].set("attribution_app_id",c[46]),c[38].set("send_type",c[39])):0:0}]):b.i64.eq(c[39],[0,3])?b.seq([function(a){return c[38].set("text",c[23]),c[45]=b.createArray(),c[46]=b.createArray(),b.fe(b.sb(b.db.table(16).fetch([[[c[20],c[24]]]]),[["attachmentIndex","ASC"]]),function(a){a=a.item;return c[47]=a.offlineAttachmentId,c[48]=(c[45].push(b.i64.from_string(a.attachmentFbid)),c[45]),c[47]!==e?c[48]=(c[46].push(c[47]),c[46]):0})},function(a){return c[38].set("attachment_fbids",c[45]),b.i64.eq(c[39],[0,9])?c[38].set("offline_attachment_ids",c[46]):0,c[38].set("send_type",c[39])}]):b.i64.eq(c[39],[0,9])?b.seq([function(a){return c[38].set("text",c[23]),c[45]=b.createArray(),c[46]=b.createArray(),b.fe(b.sb(b.db.table(16).fetch([[[c[20],c[24]]]]),[["attachmentIndex","ASC"]]),function(a){a=a.item;return c[47]=a.offlineAttachmentId,c[48]=(c[45].push(b.i64.from_string(a.attachmentFbid)),c[45]),c[47]!==e?c[48]=(c[46].push(c[47]),c[46]):0})},function(a){return c[38].set("attachment_fbids",c[45]),b.i64.eq(c[39],[0,9])?c[38].set("offline_attachment_ids",c[46]):0,c[38].set("send_type",c[39])}]):b.i64.eq(c[39],[0,10])?b.seq([function(a){return c[38].set("text",c[23]),c[45]=b.createArray(),c[46]=b.createArray(),b.fe(b.sb(b.db.table(16).fetch([[[c[20],c[24]]]]),[["attachmentIndex","ASC"]]),function(a){a=a.item;return c[47]=a.offlineAttachmentId,c[48]=(c[45].push(b.i64.from_string(a.attachmentFbid)),c[45]),c[47]!==e?c[48]=(c[46].push(c[47]),c[46]):0})},function(a){return c[38].set("attachment_fbids",c[45]),b.i64.eq(c[39],[0,9])?c[38].set("offline_attachment_ids",c[46]):0,c[38].set("send_type",c[39])}]):b.i64.eq(c[39],[0,4])?b.seq([function(a){return b.db.table(16).fetch([[[c[20],c[24]]]]).next().then(function(b,d){var a=b.done;b=b.value;return a?c[45]=e:(d=b.item,c[45]=d.attachmentFbid)})},function(a){return c[45]!==e?(c[38].set("text",c[23]),c[38].set("forwarded_share_id",c[45]),c[38].set("send_type",c[39])):0}]):b.i64.eq(c[39],[0,5])?b.resolve(c[10]!==e?(c[38].set("forwarded_msg_id",c[10]),c[38].set("send_type",c[39]),b.i64.neq(c[25],e)?c[38].set("forward_score",c[25]):0,c[38].set("strip_forwarded_msg_caption",!1)):0):b.i64.eq(c[39],[0,6])?b.seq([function(a){return b.db.table(16).fetch([[[c[20],c[24]]]]).next().then(function(b,d){var a=b.done;b=b.value;return a?(a=[e,e],c[45]=a[0],c[46]=a[1],a):(d=b.item,a=[d.filename,d.attributionAppId],c[45]=a[0],c[46]=a[1],a)})},function(a){return c[45]!==e?(c[38].set("url",c[45]),c[38].set("text",c[23]),c[38].set("send_type",c[39])):0}]):b.resolve(0)},function(a){return c[41]=c[6]===""?e:c[6],c[41]!==e?b.i64.neq(c[11],e)?(c[45]=new b.Map(),c[45].set("reply_source_id",c[41]),c[45].set("reply_source_type",c[11]),c[45].set("reply_type",c[31]==null?[0,0]:c[31]),c[38].set("reply_metadata",c[45])):0:0,c[42]=c[21]===""?e:c[21],c[42]!==e?(c[45]=c[26]===""?e:c[26],c[45]!==e?(c[46]=c[27]===""?e:c[27],c[46]!==e?(c[47]=new b.Map(),c[47].set("mention_ids",c[42]),c[47].set("mention_offsets",c[45]),c[47].set("mention_lengths",c[46]),c[47].set("mention_types",c[28]===""?e:c[28]),c[38].set("mention_data",c[47])):0):0):0,c[29]!==e?c[38].set("is_forwarded",c[29]):0,c[43]=c[7]===""?e:c[7],c[43]!==e?c[38].set("platform_ref",c[43]):0,c[44]=c[8]===""?e:c[8],c[44]!==e?c[38].set("platform_token",c[44]):0,[[0,1],[0,2]].some(function(a){return b.i64.eq(c[39],a)})?b.i64.neq(c[30],e)?c[38].set("hot_emoji_size",c[30]):0:0,b.i64.neq(c[12],e)?c[38].set("initiating_source",c[12]):0,c[13]!==e?c[38].set("skip_url_preview_gen",c[13]):0,b.resolve()},function(a){return c[14]!==e?c[38].set("text_has_links",c[14]):0,c[40]=b.toJSON(c[38]),a=[c[40],[0,46]],c[34]=a[0],c[35]=a[1],a}])},function(a){return a=[c[34],c[35]],c[17]=a[0],c[18]=a[1],a}]))})},function(a){return a=[c[17],c[18]],c[3]=a[0],c[4]=a[1],a}]))})},function(a){return a=[c[3],c[4]],c[0]=a[0],c[1]=a[1],a}]))})},function(a){return a=[c[0],c[1]],d[0]=a[0],d[1]=a[1],a}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSBeginHandlingPendingTasksForQueue",["LSAppendDataTraceAddon","LSFlushDataTrace.nop","LSLogMebClientEvent.nop","LSSerializeBackupPayloadIndirection.nop","LSSyncEpochs","LSTaskSerializerMuteThreadV2","LSTaskSerializerRemoveThread","LSTaskSerializerSendMessageV2","gkx","qex"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(g){return c.seq([function(b){return c.ftr(c.db.table(3).fetch([[[a[0]]]]),function(b){return c.i64.neq(b.epochId,f)&&b.taskQueueName===a[0]}).next().then(function(a,b){b=a.done;a=a.value;return b?d[0]=!1:(a.item,d[0]=!0)})},function(e){return d[2]=new c.Map(),d[2].set("queue_name",a[0]),d[2].set("next_sync_ms",f),d[2].set("work_item_type",[0,4]),d[2].set("network_payload",f),d[2].set("http_url_override",f),d[2].set("skip_realtime_gateway",!1),d[3]=d[2],d[0]?c.resolve():c.seq([function(b){return c.islc(c.db.table(2).fetch([[[a[0]]],"queueNameTaskId"]),0,c.i64.to_float([0,1])).next().then(function(a,b){var c=a.done;a=a.value;return c?(c=["",[-1,4294967295],[0,0],[-1,4294967295],f,f],d[4]=c[0],d[5]=c[1],d[6]=c[2],d[7]=c[3],d[8]=c[4],d[9]=c[5],c):(b=a.item,c=[b.queueName,b.minTimeToSyncTimestampMs,b.pluginType,b.failureCount,b.context,b.httpUrlOverride],d[4]=c[0],d[5]=c[1],d[6]=c[2],d[7]=c[3],d[8]=c[4],d[9]=c[5],c)})},function(b){return c.db.table(3).fetch([[[a[0]]]]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[11]=[0,0]:(b=a.item,d[11]=b.lastSyncRequestTimestampMs)})},function(e){return d[14]=c.i64.sub(d[5],c.i64.of_float(Date.now())),c.i64.le(d[14],[0,0])?(c.i64.eq(d[7],[0,0])||a[1]?d[15]=[0,0]:(c.i64.gt(d[7],[0,7])?d[17]=c.i64.sub(d[7],[0,7]):d[17]=d[7],d[18]=c.i64.sub(d[17],[0,1]),d[19]=c.i64.mul(c.i64.lsl_([0,1],c.i64.to_int32(c.i64.lt(d[18],[0,7])?d[18]:[0,7])),[0,500]),d[15]=c.i64.lt(d[19],[0,3e4])?d[19]:[0,3e4]),d[16]=c.i64.sub(c.i64.add(d[11],d[15]),c.i64.of_float(Date.now())),d[13]=c.i64.gt(d[16],[0,0])?d[16]:[0,0]):d[13]=d[14],c.i64.neq(d[13],[0,0])?c.resolve((d[15]=new c.Map(),d[15].set("queue_name",a[0]),d[15].set("next_sync_ms",d[13]),d[15].set("work_item_type",[0,3]),d[15].set("network_payload",f),d[15].set("http_url_override",f),d[15].set("skip_realtime_gateway",!1),d[3]=d[15])):c.seq([function(a){return c.i64.neq(d[6],[0,0])||d[8]==="16"||d[8]==="4"?c.resolve((a=[d[4],f,[0,2],f,f,!1],d[15]=a[0],d[16]=a[1],d[17]=a[2],d[18]=a[3],d[19]=a[4],d[20]=a[5],a)):c.seq([function(a){return d[22]=c.createArray(),d[23]=!0,c.islc(c.db.table(2).fetch([[[d[4]]],"queueNameTaskId"]),0,c.i64.to_float([0,1])).next().then(function(a,b){var c=a.done;a=a.value;return c?(c=["",[-1,4294967295],[0,0],[-1,4294967295],f,f],d[24]=c[0],d[25]=c[1],d[26]=c[2],d[27]=c[3],d[28]=c[4],d[29]=c[5],c):(b=a.item,c=[b.queueName,b.minTimeToSyncTimestampMs,b.pluginType,b.failureCount,b.context,b.httpUrlOverride],d[24]=c[0],d[25]=c[1],d[26]=c[2],d[27]=c[3],d[28]=c[4],d[29]=c[5],c)})},function(a){return c.db.table(2).fetch([[[d[4]]],"queueNameTaskId"]).next().then(function(a,b){b=a.done;a=a.value;return b?d[31]=!0:(a.item,d[31]=!0)})},function(a){return c.fe(c.db.table(2).fetch([[[d[4]]],"queueNameTaskId"]),function(a){var e=a.item;return d[42]=e.taskId,d[40]=e.context,d[43]=e.failureCount,d[41]=e.timeoutTimestampMs,d[23]=e.httpUrlOverride===d[29]&&!0===d[31]&&d[23],d[23]?c.seq([function(a){return d[40]===f?c.seq([function(a){return c.fe(c.db.table(2).fetch([[[d[42]]]]),function(a){return a["delete"]()})},function(a){return d[44]=f}]):c.seq([function(a){return c.i64.neq(d[41],f)?d[49]=c.i64.ge(c.i64.of_float(Date.now()),d[41]):d[49]=!1,d[49]?c.seq([function(a){return c.fe(c.db.table(2).fetch([[[d[42]]]]),function(a){return a["delete"]()})},function(a){return d[50]=f}]):c.seq([function(a){return c.seq([function(a){return d[40]==="46"?c.seq([function(a){return c.sp(b("LSTaskSerializerSendMessageV2"),d[42]).then(function(a){return a=a,d[61]=a[0],d[62]=a[1],a})},function(a){return a=[d[61],c.i64.to_string(d[62]),f],d[55]=a[0],d[56]=a[1],d[57]=a[2],a}]):c.seq([function(a){return d[40]==="144"?c.seq([function(a){return c.sp(b("LSTaskSerializerMuteThreadV2"),d[42]).then(function(a){return a=a,d[64]=a[0],d[65]=a[1],a})},function(a){return a=[d[64],c.i64.to_string(d[65]),f],d[61]=a[0],d[62]=a[1],d[63]=a[2],a}]):c.seq([function(a){return d[40]==="146"?c.seq([function(a){return c.sp(b("LSTaskSerializerRemoveThread"),d[42]).then(function(a){return a=a,d[67]=a[0],d[68]=a[1],a})},function(a){return a=[d[67],c.i64.to_string(d[68]),f],d[64]=a[0],d[65]=a[1],d[66]=a[2],a}]):c.seq([function(a){return d[40]==="32"?c.seq([function(a){return c.seq([function(a){return c.db.table(32).fetch([[[d[42]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?(d[75]=c.createArray(),d[76]=(d[75].push("taskSerializerUpdateThreadName: Task ID not found"),d[75]),d[77]=(d[75].push(d[42]),d[75]),d[78]=c.toJSON(d[75]),function(a){c.logger(a).mustfix(a)}(d[78]),e=[f,f],d[72]=e[0],d[73]=e[1],e):(b=a.item,c.seq([function(a){return d[78]=b.threadKey,c.db.table(9).fetch([[[d[78]]]]).next().then(function(b,e){var a=b.done;b=b.value;return a?(d[79]=c.createArray(),d[80]=(d[79].push("taskSerializerUpdateThreadName: Thread not found"),d[79]),d[81]=(d[79].push(d[78]),d[79]),d[82]=c.toJSON(d[79]),function(a){c.logger(a).mustfix(a)}(d[82]),a=[f,f],d[75]=a[0],d[76]=a[1],a):(e=b.item,c.seq([function(a){return c.db.table(9).fetch([[[d[78]]]]).next().then(function(b,e){var a=b.done;b=b.value;return a?d[79]=[0,1]:(e=b.item,d[84]=e.syncGroup,c.i64.neq(d[84],f)?d[83]=d[84]:d[83]=[0,1],d[79]=d[83])})},function(a){return d[81]=new c.Map(),d[81].set("thread_key",d[78]),d[81].set("thread_name",e.threadName==null?"":e.threadName),d[81].set("sync_group",d[79]),d[82]=c.toJSON(d[81]),a=[d[82],[0,32]],d[75]=a[0],d[76]=a[1],a}]))})},function(a){return a=[d[75],d[76]],d[72]=a[0],d[73]=a[1],a}]))})},function(a){return a=[d[72],d[73]],d[70]=a[0],d[71]=a[1],a}])},function(a){return a=[d[70],c.i64.to_string(d[71]),f],d[67]=a[0],d[68]=a[1],d[69]=a[2],a}]):c.seq([function(a){return d[40]==="362"?c.resolve((a=[f,f],d[73]=a[0],d[74]=a[1],a,a=[d[73],c.i64.to_string(d[74]),f],d[70]=a[0],d[71]=a[1],d[72]=a[2],a)):c.seq([function(a){return d[40]==="50015"?c.seq([function(a){return c.seq([function(a){return function(a){c.logger(a).info(a)}("[EncryptedBackups][LSEncryptedBackupsTaskSerializerEncryptedBackupsRestoreWithSerializerStoredProcedure]Beginning execution."),c.db.table(168).fetch().next().then(function(a,e){var h=a.done;a=a.value;return h?(h=[f,f],d[78]=h[0],d[79]=h[1],h):(e=a.item,c.seq([function(a){return d[83]=e.deviceId,c.i64.neq(d[83],f)?c.seq([function(a){return c.db.table(190).fetch([[[d[42]]]]).next().then(function(e,i){var a=e.done;e=e.value;return a?c.seq([function(a){return function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][LSEncryptedBackupsTaskSerializerEncryptedBackupsRestoreWithSerializerStoredProcedure]No restore payload context found."),d[87]=c.createArray(),f!==f?d[88]=(d[87].push(f),d[87]):0,c.nop(b("LSLogMebClientEvent.nop"),"LSEncryptedBackupsTaskSerializerEncryptedBackupsRestoreWithSerializerStoredProcedure","No restore payload context found.",d[87],[0,3])},function(a){return a=[f,f],d[84]=a[0],d[85]=a[1],a}]):(i=e.item,c.seq([function(a){return d[93]=i.traceId,d[93]!==f?c.sp(b("LSAppendDataTraceAddon"),d[93],[0,3603],[0,2],f,f):c.resolve()},function(a){return d[87]=!1,d[87]?d[88]=!0:d[88]=!1,d[88]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),d[94]=c.createArray(),f!==f?d[95]=(d[94].push(f),d[94]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",d[94],[0,3])):c.resolve()},function(a){return c.seq([function(a){return function(a){c.logger(a).info(a)}("[EncryptedBackups][LSEncryptedBackupsGetOpenEpochKeysStoredProcedure]Beginning execution."),c.ct(c.ftr(c.db.table(169).fetch(),function(a){return c.i64.eq(a.epochStatus,[0,1])&&c.i64.eq(a.authorityLevel,[0,80])})).then(function(a){return d[94]=a})},function(a){return c.i64.le(d[94],[0,1])?c.seq([function(a){return c.ftr(c.db.table(169).fetch(),function(a){return c.i64.eq(a.epochStatus,[0,1])&&c.i64.eq(a.authorityLevel,[0,80])}).next().then(function(e,i){var a=e.done;e=e.value;return a?c.seq([function(a){return d[100]=function(a){return a==f?f:a}(b("qex")._("1221")),d[100]!==f?d[98]=d[100]:d[98]=!1,d[101]=function(a){return a==f?f:a}(b("qex")._("234")),d[101]!==f?d[99]=d[101]:d[99]=!1,(d[98]||d[99])===!1?function(a){c.logger(a).info(a)}("[EncryptedBackups][LSEncryptedBackupsGetOpenEpochKeysStoredProcedure]Epoch rotation is disabled but open epoch count is not 1. Executing sync"):0,c.sp(b("LSSyncEpochs"))},function(a){return d[96]=f}]):(i=e.item,d[98]=new c.Map(),d[98].set("epoch_id",i.epochId),d[98].set("epoch_root_key",i.epochRootKeyBlob),d[98].set("epoch_anon_id",i.epochAnonIdBlob),d[96]=d[98])})},function(a){return d[95]=d[96]}]):c.seq([function(a){return function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][LSEncryptedBackupsSecureEncryptedBackupsEpochsTable]Error! More than 1 open epoch was found. Calling the sync flow and returning empty results"),d[96]=c.createArray(),f!==f?d[99]=(d[96].push(f),d[96]):0,c.nop(b("LSLogMebClientEvent.nop"),"LSEncryptedBackupsSecureEncryptedBackupsEpochsTable","Error! More than 1 open epoch was found. Calling the sync flow and returning empty results",d[96],[0,3])},function(a){return c.sp(b("LSSyncEpochs"))},function(a){return c.ftr(c.db.table(169).fetch(),function(a){return!1}).next().then(function(e,i){var a=e.done;e=e.value;return a?c.seq([function(a){return d[101]=function(a){return a==f?f:a}(b("qex")._("1221")),d[101]!==f?d[99]=d[101]:d[99]=!1,d[102]=function(a){return a==f?f:a}(b("qex")._("234")),d[102]!==f?d[100]=d[102]:d[100]=!1,(d[99]||d[100])===!1?function(a){c.logger(a).info(a)}("[EncryptedBackups][LSEncryptedBackupsGetOpenEpochKeysStoredProcedure]Epoch rotation is disabled but open epoch count is not 1. Executing sync"):0,c.sp(b("LSSyncEpochs"))},function(a){return d[97]=f}]):(i=e.item,d[99]=new c.Map(),d[99].set("epoch_id",i.epochId),d[99].set("epoch_root_key",i.epochRootKeyBlob),d[99].set("epoch_anon_id",i.epochAnonIdBlob),d[97]=d[99])})},function(a){return d[95]=d[97]}])},function(a){return function(a){c.logger(a).info(a)}("[EncryptedBackups][LSEncryptedBackupsGetOpenEpochKeysStoredProcedure]Finishing execution."),d[89]=d[95]}])},function(a){return d[89]!==f?(d[94]=d[89].get("epoch_id"),d[89],d[90]=d[94]):d[90]=f,d[91]=new c.Map(),d[91].set("content_type",i.contentType),d[91].set("device_id",d[83]),d[91].set("epoch_id",d[90]),d[91].set("list_id",i.listId),d[91].set("num_items",i.numItems),d[91].set("start_sort_key",i.startSortKey),d[91].set("mailbox_partial_id",i.mailboxPartialId),d[91].set("trace_id",d[93]),d[91].set("message_partial_id",i.messagePartialId),d[91].set("newer_num_items",i.newerNumItems),d[92]=c.toJSON(d[91]),a=[d[92],[0,50015]],d[84]=a[0],d[85]=a[1],a}]))})},function(a){return a=[d[84],d[85]],d[81]=a[0],d[82]=a[1],a}]):c.seq([function(a){return function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][LSEncryptedBackupsTaskSerializerEncryptedBackupsRestoreWithSerializerStoredProcedure]Unexpected error: Device ID is null."),d[84]=c.createArray(),f!==f?d[85]=(d[84].push(f),d[84]):0,c.nop(b("LSLogMebClientEvent.nop"),"LSEncryptedBackupsTaskSerializerEncryptedBackupsRestoreWithSerializerStoredProcedure","Unexpected error: Device ID is null.",d[84],[0,3])},function(a){return a=[f,f],d[81]=a[0],d[82]=a[1],a}])},function(a){return a=[d[81],d[82]],d[78]=a[0],d[79]=a[1],a}]))})},function(a){return function(a){c.logger(a).info(a)}("[EncryptedBackups][LSEncryptedBackupsTaskSerializerEncryptedBackupsRestoreWithSerializerStoredProcedure]Finishing execution."),a=[d[78],d[79]],d[76]=a[0],d[77]=a[1],a}])},function(a){return a=[d[76],c.i64.to_string(d[77]),f],d[73]=a[0],d[74]=a[1],d[75]=a[2],a}]):c.seq([function(a){return d[40]==="319"?c.seq([function(a){return c.seq([function(a){return function(a){c.logger(a).info(a)}("[EncryptedBackups][LSEncryptedBackupsTaskSerializerEncryptedBackupActionStoredProcedure]Beginning execution."),c.db.table(177).fetch([[[d[42]]],"fk_pending_tasks"]).next().then(function(a,e){var h=a.done;a=a.value;return h?c.seq([function(a){return c.db.table(2).fetch([[[d[42]]]]).next().then(function(e,i){var a=e.done;e=e.value;return a?c.seq([function(a){return function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][LSEncryptedBackupsTaskSerializerEncryptedBackupActionStoredProcedure]Task not found."),d[93]=c.createArray(),f!==f?d[94]=(d[93].push(f),d[93]):0,c.nop(b("LSLogMebClientEvent.nop"),"LSEncryptedBackupsTaskSerializerEncryptedBackupActionStoredProcedure","Task not found.",d[93],[0,3])},function(a){return d[90]=f}]):(i=e.item,d[90]=i.dataTraceId)})},function(a){return d[92]="Pending backup context not found",d[92]!==f?c.seq([function(a){return d[96]=["[EncryptedBackups][LSEncryptedBackupsTaskSerializerEncryptedBackupActionStoredProcedure]","",d[92]].join(""),function(a){c.logger(a).mustfix(a)}(d[96]),d[93]=c.createArray(),d[90]!==f?d[97]=(d[93].push(d[90]),d[93]):0,c.nop(b("LSLogMebClientEvent.nop"),"LSEncryptedBackupsTaskSerializerEncryptedBackupActionStoredProcedure",d[92],d[93],[0,3])},function(a){return d[90]!==f?c.seq([function(a){return d[90]!==f?c.sp(b("LSAppendDataTraceAddon"),d[90],[0,85],[0,2],d[96],f):c.resolve()},function(a){return d[97]=!1,d[97]?d[98]=!0:d[98]=!1,d[98]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),d[99]=c.createArray(),f!==f?d[100]=(d[99].push(f),d[99]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",d[99],[0,3])):c.resolve()}]):c.resolve()},function(a){return d[90]!==f?c.nop(b("LSFlushDataTrace.nop"),d[90]):c.resolve()},function(a){return d[94]=!1,d[94]?d[95]=!0:d[95]=!1,d[95]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),d[97]=c.createArray(),f!==f?d[98]=(d[97].push(f),d[97]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",d[97],[0,3])):c.resolve()}]):c.seq([function(a){return d[90]!==f?c.seq([function(a){return d[90]!==f?c.sp(b("LSAppendDataTraceAddon"),d[90],[0,85],[0,2],["[EncryptedBackups][LSEncryptedBackupsTaskSerializerEncryptedBackupActionStoredProcedure]","",""].join(""),f):c.resolve()},function(a){return d[95]=!1,d[95]?d[96]=!0:d[96]=!1,d[96]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),d[97]=c.createArray(),f!==f?d[98]=(d[97].push(f),d[97]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",d[97],[0,3])):c.resolve()}]):c.resolve()},function(a){return d[90]!==f?c.nop(b("LSFlushDataTrace.nop"),d[90]):c.resolve()},function(a){return d[93]=!1,d[93]?d[94]=!0:d[94]=!1,d[94]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),d[95]=c.createArray(),f!==f?d[96]=(d[95].push(f),d[95]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",d[95],[0,3])):c.resolve()}])},function(a){return d[81]=f}]):(e=a.item,d[81]=e.lsTraceId)})},function(a){return d[81]!==f?c.sp(b("LSAppendDataTraceAddon"),d[81],[0,1451],[0,2],f,f):c.resolve()},function(a){return d[83]=!1,d[83]?d[84]=!0:d[84]=!1,d[84]?(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][MEBTraceUtils]LSDataTraceMciTraceLog native op not supported"),d[90]=c.createArray(),f!==f?d[91]=(d[90].push(f),d[90]):0,c.nop(b("LSLogMebClientEvent.nop"),"MEBTraceUtils","LSDataTraceMciTraceLog native op not supported",d[90],[0,3])):c.resolve()},function(a){return d[85]=c.createArray(),d[81]!==f?d[90]=(d[85].push(d[81]),d[85]):0,c.nop(b("LSLogMebClientEvent.nop"),"LSEncryptedBackupsTaskSerializerEncryptedBackupActionStoredProcedure","backup upload serializer started",d[85],[0,4])},function(a){return d[81]!==f?c.resolve(0):(function(a){c.logger(a).mustfix(a)}("[EncryptedBackups][LSEncryptedBackupsTaskSerializerEncryptedBackupActionStoredProcedure]Trace ID is null"),d[90]=c.createArray(),f!==f?d[91]=(d[90].push(f),d[90]):0,c.nop(b("LSLogMebClientEvent.nop"),"LSEncryptedBackupsTaskSerializerEncryptedBackupActionStoredProcedure","Trace ID is null",d[90],[0,3]))},function(a){return c.db.table(177).fetch([[[d[42]]],"fk_pending_tasks"]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[86]=f:(b=a.item,d[86]=b.echoContent)})},function(a){return d[88]=c.createArray(),d[81]!==f?d[90]=(d[88].push(d[81]),d[88]):0,c.nop(b("LSLogMebClientEvent.nop"),"LSEncryptedBackupsTaskSerializerEncryptedBackupActionStoredProcedure","LSSerializeBackupPayloadIndirection op called",d[88],[0,4])},function(a){return c.nop(b("LSSerializeBackupPayloadIndirection.nop"),d[42],d[86],d[81]).then(function(a){return a=a,d[89]=a[0],a})},function(a){return function(a){c.logger(a).info(a)}("[EncryptedBackups][LSEncryptedBackupsTaskSerializerEncryptedBackupActionStoredProcedure]Finishing execution."),a=[d[89],[0,319]],d[79]=a[0],d[80]=a[1],a}])},function(a){return a=[d[79],c.i64.to_string(d[80]),f],d[76]=a[0],d[77]=a[1],d[78]=a[2],a}]):c.resolve((d[40]==="700"?(a=[f,[0,700]],d[82]=a[0],d[83]=a[1],a,a=[d[82],c.i64.to_string(d[83]),f],d[79]=a[0],d[80]=a[1],d[81]=a[2],a):(d[40]==="705"?(a=[f,[0,705]],d[85]=a[0],d[86]=a[1],a,a=[d[85],c.i64.to_string(d[86]),f],d[82]=a[0],d[83]=a[1],d[84]=a[2],a):(a=[e.taskValue,d[40],f],d[82]=a[0],d[83]=a[1],d[84]=a[2],a),a=[d[82],d[83],d[84]],d[79]=a[0],d[80]=a[1],d[81]=a[2],a),a=[d[79],d[80],d[81]],d[76]=a[0],d[77]=a[1],d[78]=a[2],a))},function(a){return a=[d[76],d[77],d[78]],d[73]=a[0],d[74]=a[1],d[75]=a[2],a}])},function(a){return a=[d[73],d[74],d[75]],d[70]=a[0],d[71]=a[1],d[72]=a[2],a}])},function(a){return a=[d[70],d[71],d[72]],d[67]=a[0],d[68]=a[1],d[69]=a[2],a}])},function(a){return a=[d[67],d[68],d[69]],d[64]=a[0],d[65]=a[1],d[66]=a[2],a}])},function(a){return a=[d[64],d[65],d[66]],d[61]=a[0],d[62]=a[1],d[63]=a[2],a}])},function(a){return a=[d[61],d[62],d[63]],d[55]=a[0],d[56]=a[1],d[57]=a[2],a}])},function(a){return d[31]?(a=[d[55],d[56],d[57]],d[58]=a[0],d[59]=a[1],d[60]=a[2],a):(a=[f,f],d[61]=a[0],d[62]=a[1],a,a=[d[61],c.i64.to_string(d[62]),f],d[58]=a[0],d[59]=a[1],d[60]=a[2],a),a=[d[58],d[59],d[60]],d[51]=a[0],d[52]=a[1],d[53]=a[2],a}])},function(a){return d[51]!==f?(d[55]=new c.Map(),d[55].set("label",d[52]),d[55].set("payload",d[51]),d[55].set("queue_name",e.queueName),d[55].set("task_id",d[42]),d[55].set("failure_count",c.i64.eq(d[43],[0,0])?f:d[43]),d[54]=d[55]):d[54]=f,d[50]=d[54]}])},function(a){return d[44]=d[50]}])},function(a){return d[44]?d[45]=!1:d[45]=!0,d[45]?0:d[49]=(d[22].push(d[44]),d[22]),d[46]=c.i64.of_int32(d[22].length),b("gkx")("6280")?d[47]=[0,50]:d[47]=[0,5],d[40]!==f?d[48]=["90","130","153"].includes(d[40]):d[48]=!1,d[23]=!(c.i64.ge(d[46],d[47])||d[48])}]):c.resolve()})},function(a){return d[33]=c.i64.of_int32(d[22].length),c.i64.eq(d[33],[0,0])?c.resolve((a=[d[4],f,[0,4],f,f,!1],d[34]=a[0],d[35]=a[1],d[36]=a[2],d[37]=a[3],d[38]=a[4],d[39]=a[5],a)):c.seq([function(a){return d[40]=c.i64.random(),d[50]=c.i64.and_(c.i64.or_(c.i64.lsl_(c.i64.of_float(Date.now()),c.i64.to_int32([0,22])),c.i64.and_(d[40],[0,4194303])),[2147483647,4294967295]),c.db.table(3).fetch([[[d[4],[-1,4294967295]]]]).next().then(function(a,b){b=a.done;a=a.value;return b?c.db.table(3).add({syncDatabaseId:[-1,4294967295],taskQueueName:d[4],failureCount:[0,0],lastSentTimestampMs:[0,0],lastSyncRequestTimestampMs:c.i64.of_float(Date.now()),epochId:d[50]}):(a.item,c.fe(c.db.table(3).fetch([[[d[4],[-1,4294967295]]]]),function(a){var b=a.update;a.item;return b({epochId:d[50],lastSyncRequestTimestampMs:c.i64.of_float(Date.now())})}))})},function(a){return c.islc(c.db.table(2).fetch([[[d[4]]],"queueNameTaskId"]),0,c.i64.to_float([0,1])).next().then(function(a,b){var c=a.done;a=a.value;return c?(c=["",[-1,4294967295],[0,0],[-1,4294967295],f,f],d[42]=c[0],d[43]=c[1],d[44]=c[2],d[45]=c[3],d[46]=c[4],d[47]=c[5],c):(b=a.item,c=[b.queueName,b.minTimeToSyncTimestampMs,b.pluginType,b.failureCount,b.context,b.httpUrlOverride],d[42]=c[0],d[43]=c[1],d[44]=c[2],d[45]=c[3],d[46]=c[4],d[47]=c[5],c)})},function(a){return d[49]=new c.Map(),d[49].set("tasks",d[22]),d[49].set("epoch_id",d[50]),a=[d[4],f,[0,1],d[49],d[47],!(d[47]===f)||c.i64.gt(d[45],[0,7])],d[34]=a[0],d[35]=a[1],d[36]=a[2],d[37]=a[3],d[38]=a[4],d[39]=a[5],a}])},function(a){return a=[d[34],d[35],d[36],d[37],d[38],d[39]],d[15]=a[0],d[16]=a[1],d[17]=a[2],d[18]=a[3],d[19]=a[4],d[20]=a[5],a}])},function(a){return d[21]=new c.Map(),d[21].set("queue_name",d[15]),d[21].set("next_sync_ms",d[16]),d[21].set("work_item_type",d[17]),d[21].set("network_payload",d[18]),d[21].set("http_url_override",d[19]),d[21].set("skip_realtime_gateway",d[20]),d[3]=d[21]}])}])},function(a){return e[0]=d[3]}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSBeginHandlingSyncForSyncGroup",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[],e;return b.seq([function(f){return b.seq([function(d){return b.db.table(1).fetch([[[a[0]]]]).next().then(function(a,d){var f=a.done;a=a.value;return f?c[0]=e:(d=a.item,c[9]=new b.Map(),c[9].set("group_id",d.groupId),c[9].set("current_cursor",d.currentCursor),c[9].set("sync_status",d.syncStatus),c[9].set("sync_params",d.syncParams),c[9].set("send_sync_params",d.sendSyncParams),c[9].set("min_time_to_sync_timestamp_ms",d.minTimeToSyncTimestampMs),c[9].set("can_ignore_timestamp",d.canIgnoreTimestamp),c[9].set("sync_channel",d.syncChannel),c[9].set("last_sync_request_timestamp_ms",d.lastSyncRequestTimestampMs),c[0]=c[9])})},function(d){return c[0]?c[2]=!1:c[2]=!0,c[2]?b.resolve((d=[a[0],e,[0,4],e,!1],c[3]=d[0],c[4]=d[1],c[5]=d[2],c[6]=d[3],c[7]=d[4],d)):b.seq([function(a){return c[9]=c[0].get("group_id"),c[0],b.ftr(b.db.table(3).fetch(),function(a){return b.i64.neq(a.epochId,e)&&b.i64.eq(a.syncDatabaseId,c[9])}).next().then(function(a,b){b=a.done;a=a.value;return b?c[10]=!1:(a.item,c[10]=!0)})},function(d){return c[10]?b.resolve((c[17]=c[0].get("group_id"),c[0],d=[c[17],e,[0,4],e,!1],c[12]=d[0],c[13]=d[1],c[14]=d[2],c[15]=d[3],c[16]=d[4],d)):b.seq([function(d){return c[27]=b.i64.of_float(Date.now()),c[17]=c[0].get("min_time_to_sync_timestamp_ms"),c[0],c[18]=c[0].get("last_sync_request_timestamp_ms"),c[0],c[19]=c[0].get("can_ignore_timestamp"),c[0],c[19]&&a[1]||b.i64.ge(c[27],c[17])?b.seq([function(d){return a[1]?b.resolve(c[28]=[0,0]):b.seq([function(a){return c[29]=c[0].get("group_id"),c[0],b.db.table(3).fetch([[["",c[29]]]]).next().then(function(a,b){var d=a.done;a=a.value;return d?c[30]=[0,0]:(b=a.item,c[30]=b.failureCount)})},function(a){return c[32]=b.i64.mul(b.i64.sub(b.i64.lsl_([0,1],b.i64.to_int32(b.i64.lt([0,15],c[30])?[0,15]:c[30])),[0,1]),[0,500]),c[33]=b.i64.sub(b.i64.add(c[18]==null?[0,0]:c[18],b.i64.lt(c[32],[0,3e4])?c[32]:[0,3e4]),c[27]),c[28]=b.i64.gt(c[33],[0,0])?c[33]:[0,0]}])},function(a){return c[20]=c[28]}]):b.resolve(c[20]=b.i64.sub(c[17],c[27]))},function(a){return c[21]=c[0].get("group_id"),c[0],b.i64.gt(c[20],[0,0])?b.seq([function(a){return b.fe(b.ftr(b.db.table(3).fetch(),function(a){return b.i64.eq(a.syncDatabaseId,c[21])}),function(a){var c=a.update;a.item;return c({lastDelayedRequestTimestampMs:b.i64.of_float(Date.now())})})},function(a){return a=[c[21],c[20],[0,3],e,!1],c[22]=a[0],c[23]=a[1],c[24]=a[2],c[25]=a[3],c[26]=a[4],a}]):b.seq([function(a){return b.fe(b.db.table(1).fetch([[[c[21]]]]),function(a){var c=a.update;a.item;return c({lastSyncRequestTimestampMs:b.i64.of_float(Date.now())})})},function(a){return b.fe(b.ftr(b.db.table(3).fetch(),function(a){return b.i64.eq(a.syncDatabaseId,c[21])}),function(a){var c=a.update;a.item;return c({lastSyncRequestTimestampMs:b.i64.of_float(Date.now())})})},function(a){return c[28]=c[0].get("group_id"),c[0],c[29]=b.i64.random(),c[42]=b.i64.and_(b.i64.or_(b.i64.lsl_(b.i64.of_float(Date.now()),b.i64.to_int32([0,22])),b.i64.and_(c[29],[0,4194303])),[2147483647,4294967295]),b.db.table(3).fetch([[["",c[28]]]]).next().then(function(a,d){d=a.done;a=a.value;return d?b.db.table(3).add({syncDatabaseId:c[28],taskQueueName:"",failureCount:[0,0],lastSentTimestampMs:[0,0],lastSyncRequestTimestampMs:[0,0],epochId:c[42]}):(a.item,b.fe(b.db.table(3).fetch([[["",c[28]]]]),function(a){var b=a.update;a.item;return b({epochId:c[42]})}))})},function(a){return c[31]=c[0].get("group_id"),c[0],b.db.table(3).fetch([[["",c[31]]]]).next().then(function(a,b){var d=a.done;a=a.value;return d?c[32]=[0,0]:(b=a.item,c[32]=b.failureCount)})},function(a){return c[34]=c[0].get("send_sync_params"),c[0],c[35]=c[0].get("sync_params"),c[0],c[36]=c[0].get("current_cursor"),c[0],c[37]=new b.Map(),c[37].set("database",c[31]),c[37].set("version",[-1,4294967295]),c[37].set("epoch_id",c[42]),c[37].set("last_applied_cursor",c[36]),c[37].set("sync_params",c[34]?c[35]:e),c[37].set("failure_count",b.i64.gt(c[32],[0,0])?c[32]:e),c[38]=c[0].get("current_cursor"),c[0],e===c[38]?c[39]=[0,1]:c[39]=[0,2],c[40]=new b.Map(),c[40].set("type",c[39]),c[40].set("request_payload",c[37]),c[41]=c[0].get("sync_channel"),c[0],a=[c[28],e,[0,1],c[40],b.i64.eq(c[41],[0,2])],c[22]=a[0],c[23]=a[1],c[24]=a[2],c[25]=a[3],c[26]=a[4],a}])},function(a){return a=[c[22],c[23],c[24],c[25],c[26]],c[12]=a[0],c[13]=a[1],c[14]=a[2],c[15]=a[3],c[16]=a[4],a}])},function(a){return a=[c[12],c[13],c[14],c[15],c[16]],c[3]=a[0],c[4]=a[1],c[5]=a[2],c[6]=a[3],c[7]=a[4],a}])},function(a){return c[8]=new b.Map(),c[8].set("sync_group_id",c[3]),c[8].set("next_sync_ms",c[4]),c[8].set("work_item_type",c[5]),c[8].set("network_payload",c[6]),c[8].set("skip_realtime_gateway",c[7]),d[0]=c[8]}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSBeginHandlingSync",["LSBeginHandlingSyncForSyncGroup"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[];return c.seq([function(f){return c.seq([function(e){return d[0]=c.createArray(),c.fe(c.db.table(1).fetch(),function(e){var f=e.item;return c.seq([function(e){return c.sp(b("LSBeginHandlingSyncForSyncGroup"),f.groupId,a[0]).then(function(a){return a=a,d[1]=a[0],a})},function(a){return d[2]=(d[0].push(d[1]),d[0])}])})},function(a){return e[0]=d[0]}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSHandleTaskSendFailureForQueue",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[],e;return b.seq([function(d){return b.seq([function(d){return b.islc(b.db.table(2).fetch([[[a[0]]],"queueNameTaskId"]),0,b.i64.to_float([0,1])).next().then(function(a,d){var f=a.done;a=a.value;return f?0:(d=a.item,b.db.table(2).fetch([[[d.taskId]]]).next().then(function(d,f){var a=d.done;d=d.value;return a?0:(f=d.item,b.i64.neq(e,e)?c[1]=b.i64.add(b.i64.of_float(Date.now()),e):c[1]=f.minTimeToSyncTimestampMs,b.fe(b.db.table(2).fetch([[[f.taskId]]]),function(a){var d=a.update;a.item;return d({failureCount:b.i64.add(f.failureCount,[0,1]),minTimeToSyncTimestampMs:c[1]})}))}))})},function(c){return b.fe(b.db.table(3).fetch([[[a[0],[-1,4294967295]]]]),function(a){var c=a.update;a=a.item;return c({failureCount:b.i64.add(a.failureCount,[0,1])})})},function(c){return b.fe(b.db.table(3).fetch([[[a[0],[-1,4294967295]]]]),function(a){var b=a.update;a.item;return b({epochId:e,networkTaskIdentifier:e})})}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSHandleTaskSendSuccessForQueue",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d;return b.seq([function(c){return b.fe(b.ftr(b.db.table(3).fetch([[[a[0],[-1,4294967295]]]]),function(c){return c.taskQueueName===a[0]&&b.i64.eq(c.syncDatabaseId,[-1,4294967295])&&!b.i64.eq(c.epochId,d)}),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("MAWTTRC.bs",["MAWTTRC"],(function(a,b,c,d,e,f,g){"use strict";function a(a){d("MAWTTRC").fail(a)}function b(a){d("MAWTTRC").markEvent(a)}g.fail=a;g.markEvent=b}),98); __d("LSDataTraceFlushDeferred.bs",["Promise","killswitch","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h=c("requireDeferred")("LSDataTraceFlush.bs").__setRef("LSDataTraceFlushDeferred.bs");function a(a){if(c("killswitch")("MESSENGER_WEB_DATA_TRACE_ID"))return b("Promise").resolve(function(a){});else return h.load().then(function(b){return b.flushExpiredDataTraces(a)})}g.$LSDataTraceFlush$Deferred=h;g.watchForExpiredTraces=a}),98); __d("LSPlatformDataTraceCheckPoint",["I64"],(function(a,b,c,d,e,f,g){"use strict";a=d("I64").of_int32(5e4);g.CLIENT_SEND_TASK_PAYLOAD=a}),98); __d("LSPlatformDeviceId",["ChannelClientID","FBLogger","LSCookie.bs","MAWGating","MqttWebDeviceID","gkx"],(function(a,b,c,d,e,f,g){"use strict";function h(){if(c("gkx")("3400"))return c("MqttWebDeviceID").clientID;else return c("ChannelClientID").getID()}b=h();var i=d("MAWGating").isArmadillo()||d("MAWGating").isTlcPublicUser();function a(a){a==null&&c("FBLogger")("messenger_browser_clients").info("Missed provider type for deviceId");if(i&&a==="persisted")return d("LSCookie.bs").get().d;else return h()}g.deviceId=b;g.getDeviceIdForProviderType=a}),98); __d("LSPlatformGraphQLTransport.bs",["FBLogger","LSDynamicDependencies","LSLogHistory","Promise","Promise.bs","bs_belt_Option","bs_caml_exceptions","bs_caml_int64","bs_caml_option","bs_int64"],(function(a,b,c,d,e,f,g){"use strict";var h=c("bs_caml_exceptions").create("LSPlatformGraphQLTransport.ServerError");function a(a,e,f,g,i){return d("Promise.bs").$$catch(i(a,e,g,c("bs_caml_int64").to_int32(f)),function(a){if(a.RE_EXN_ID===d("Promise.bs").JsError){a=a._1;var b=a.message;d("LSLogHistory").log("Error sending Graphql Request. Type: "+c("bs_int64").to_string(f)+" Message: "+(b!==void 0?b:"None"),"error");c("FBLogger")("messenger_web_product").catching(a).debug("Relay or Graphql Server error in LSPlatformGraphqlTransport")}throw{Error:new Error(),RE_EXN_ID:h}}).then(function(e){e=c("bs_belt_Option").getExn(e==null?void 0:c("bs_caml_option").some(e));var a=c("bs_belt_Option").getExn(c("bs_caml_option").nullable_to_opt(e.payload)),f=e.dependencies;f=f==null?b("Promise").resolve():d("LSDynamicDependencies").downloadRelayDependencies(f);return[f,a,c("bs_caml_option").nullable_to_opt(e.experiments)]})}g.ServerError=h;g.publish=a}),98); __d("LSPlatformHardcodedInitSync.bs",["CurrentUser","LSDatabaseProviderType","LSDatabaseType.bs","LSDict","LSJson","LSPlatformGraphQLTransport.bs","LSPlatformLsInitLog","LSRequestType.bs","MAWTTRC.bs","MWPBumpEntityKey","Promise","Promise.bs","QuickPerformanceLogger","ReQL.bs","bs_belt_Option","bs_caml_format","bs_caml_int64","bs_caml_option","bs_curry","bs_js_dict","cr:4194","cr:4654","justknobx","qpl","recoverableViolation"],(function(a,b,c,d,e,f){"use strict";var g=b("bs_caml_int64").zero;c=b("cr:4654")==null?void 0:b("bs_caml_option").some(b("cr:4654"));var h=b("cr:4654")==null?!1:b("bs_curry")._1(b("cr:4654").isArmadillo)&&b("bs_curry")._1(b("cr:4654").isOccamadillo),i=b("bs_belt_Option").mapWithDefault(c,!1,function(a){return b("bs_curry")._1(a.isArmadillo)});function j(a){return a.runInTransaction(function(a){var c;return b("Promise").all([a.table("network_requests").put({epochId:void 0,failureCount:(c=b("bs_caml_int64")).zero,lastDelayedRequestTimestampMs:void 0,lastSentTimestampMs:c.zero,lastSyncRequestTimestampMs:c.zero,networkTaskIdentifier:void 0,syncDatabaseId:b("LSDatabaseType.bs").mailbox,taskQueueName:""}),a.table("network_requests").put({epochId:void 0,failureCount:c.zero,lastDelayedRequestTimestampMs:void 0,lastSentTimestampMs:c.zero,lastSyncRequestTimestampMs:c.zero,networkTaskIdentifier:void 0,syncDatabaseId:b("LSDatabaseType.bs").contact,taskQueueName:""}),h?a.table("network_requests").put({epochId:void 0,failureCount:b("bs_caml_int64").zero,lastDelayedRequestTimestampMs:void 0,lastSentTimestampMs:b("bs_caml_int64").zero,lastSyncRequestTimestampMs:b("bs_caml_int64").zero,networkTaskIdentifier:void 0,syncDatabaseId:b("LSDatabaseType.bs").e2eeMessagingMetadataMailbox,taskQueueName:""}):b("Promise").resolve()])},"readwrite").then(function(a){return b("Promise").resolve()})}function k(a){return a.runInTransaction(function(a){var c;return b("Promise").all([(c=b("ReQL.bs")).first(c.getKeyRange(c.fromTableAscending(a.table("network_requests")),{hd:"",tl:{hd:b("LSDatabaseType.bs").mailbox,tl:0}})),c.first(c.getKeyRange(c.fromTableAscending(a.table("network_requests")),{hd:"",tl:{hd:b("LSDatabaseType.bs").contact,tl:0}})),h?b("ReQL.bs").first(b("ReQL.bs").getKeyRange(b("ReQL.bs").fromTableAscending(a.table("network_requests")),{hd:"",tl:{hd:b("LSDatabaseType.bs").e2eeMessagingMetadataMailbox,tl:0}})):b("Promise").resolve()]).then(function(c){var d=c[2],e=c[1];c=c[0];c=c!==void 0&&e!==void 0?b("Promise").all([a.table("network_requests").put({epochId:g,failureCount:c.failureCount,lastDelayedRequestTimestampMs:c.lastDelayedRequestTimestampMs,lastSentTimestampMs:c.lastSentTimestampMs,lastSyncRequestTimestampMs:c.lastSyncRequestTimestampMs,networkTaskIdentifier:c.networkTaskIdentifier,syncDatabaseId:c.syncDatabaseId,taskQueueName:c.taskQueueName}),a.table("network_requests").put({epochId:g,failureCount:e.failureCount,lastDelayedRequestTimestampMs:e.lastDelayedRequestTimestampMs,lastSentTimestampMs:e.lastSentTimestampMs,lastSyncRequestTimestampMs:e.lastSyncRequestTimestampMs,networkTaskIdentifier:e.networkTaskIdentifier,syncDatabaseId:e.syncDatabaseId,taskQueueName:e.taskQueueName})]).then(function(a){}):b("Promise").resolve();e=h&&d!==void 0?a.table("network_requests").put({epochId:g,failureCount:d.failureCount,lastDelayedRequestTimestampMs:d.lastDelayedRequestTimestampMs,lastSentTimestampMs:d.lastSentTimestampMs,lastSyncRequestTimestampMs:d.lastSyncRequestTimestampMs,networkTaskIdentifier:d.networkTaskIdentifier,syncDatabaseId:d.syncDatabaseId,taskQueueName:d.taskQueueName}):b("Promise").resolve();return b("Promise").all([c,e]).then(function(a){})})},"readwrite")}function l(a){if(b("LSDatabaseProviderType").isProviderPersisted()&&b("justknobx")._("207"))return a.runInTransaction(function(a){return b("ReQL.bs").first(b("ReQL.bs").getKeyRange(b("ReQL.bs").fromTableAscending(a.table("network_requests")),{hd:"",tl:{hd:b("LSDatabaseType.bs").mailbox,tl:0}})).then(function(c){if(c!==void 0)return a.table("network_requests").put({epochId:void 0,failureCount:c.failureCount,lastDelayedRequestTimestampMs:c.lastDelayedRequestTimestampMs,lastSentTimestampMs:c.lastSentTimestampMs,lastSyncRequestTimestampMs:c.lastSyncRequestTimestampMs,networkTaskIdentifier:c.networkTaskIdentifier,syncDatabaseId:c.syncDatabaseId,taskQueueName:c.taskQueueName});else return b("Promise").resolve()})},"readwrite","ui");else return b("Promise").resolve()}function a(a,c,d,e){var f=b("CurrentUser").isWorkUser();return k(d).then(function(k){return b("Promise.bs").$$catch(b("Promise").all([(k=b("ReQL.bs")).first(k.getKeyRange(k.fromTableAscending(d.table("sync_groups")),{hd:b("LSDatabaseType.bs").mailbox,tl:0})),k.first(k.getKeyRange(k.fromTableAscending(d.table("sync_groups")),{hd:b("LSDatabaseType.bs").contact,tl:0})),h?b("ReQL.bs").first(b("ReQL.bs").getKeyRange(b("ReQL.bs").fromTableAscending(d.table("sync_groups")),{hd:b("LSDatabaseType.bs").e2eeMessagingMetadataMailbox,tl:0})):b("Promise").resolve()]).then(function(i){var j,k=(j=b("bs_belt_Option")).mapWithDefault(i[0],void 0,function(a){return a.currentCursor}),m=j.mapWithDefault(i[1],void 0,function(a){return a.currentCursor});i=j.mapWithDefault(i[2],void 0,function(a){return a.currentCursor});var n=new(b("LSDict"))().set("database",b("LSDatabaseType.bs").mailbox).set("epoch_id",g).set("last_applied_cursor",k).set("sync_params",j.getExn(b("bs_js_dict").get(a.syncParams,"mailbox"))).set("version",b("bs_caml_format").caml_int64_of_string(a.schemaVersion));j=new(b("LSDict"))().set("database",b("LSDatabaseType.bs").contact).set("epoch_id",g).set("last_applied_cursor",m).set("sync_params",j.getExn(b("bs_js_dict").get(a.syncParams,"contact"))).set("version",b("bs_caml_format").caml_int64_of_string(a.schemaVersion));var o=b("bs_js_dict").get(a.syncParams,"e2ee");o=new(b("LSDict"))().set("database",b("LSDatabaseType.bs").e2eeMessagingMetadataMailbox).set("epoch_id",g).set("last_applied_cursor",i).set("sync_params",o!==void 0?o:"{}").set("version",b("bs_caml_format").caml_int64_of_string(a.schemaVersion));f&&(b("QuickPerformanceLogger").markerPoint(b("qpl")._(1036588047,"310"),"start_mailbox"),b("QuickPerformanceLogger").markerPoint(b("qpl")._(1036588047,"310"),"start_contact"));b("LSPlatformLsInitLog").addPoint("ls_sync_starts",{string:{contactsSync:b("bs_belt_Option").isSome(m)?"resume":"init",mailboxSync:b("bs_belt_Option").isSome(k)?"resume":"init"}});return b("Promise").all([b("LSPlatformGraphQLTransport.bs").publish(e,0,b("bs_belt_Option").isSome(k)?b("LSRequestType.bs").resumeSync:b("LSRequestType.bs").initSync,b("LSJson").stringify(n),a.executeGraphQLLightSpeedRequest).then(function(a){f&&b("QuickPerformanceLogger").markerPoint(b("qpl")._(1036588047,"310"),"mailbox_synced");return b("Promise").resolve([a[0],a[1],a[2]])}),b("LSPlatformGraphQLTransport.bs").publish(e,1,b("bs_belt_Option").isSome(m)?b("LSRequestType.bs").resumeSync:b("LSRequestType.bs").initSync,b("LSJson").stringify(j),a.executeGraphQLLightSpeedRequest).then(function(a){f&&b("QuickPerformanceLogger").markerPoint(b("qpl")._(1036588047,"310"),"contact_synced");return b("Promise").resolve([a[0],a[1],a[2]])}),h?b("LSPlatformGraphQLTransport.bs").publish(e,2,b("bs_belt_Option").isSome(i)?b("LSRequestType.bs").resumeSync:b("LSRequestType.bs").initSync,b("LSJson").stringify(o),a.executeGraphQLLightSpeedRequest):b("Promise").resolve([b("Promise").resolve(),"",void 0])]).then(function(a){var d=a[2],e=d[2],f=d[1],g=a[1],i=g[2],j=g[1];a=a[0];var k=a[2],l=a[1];b("LSPlatformLsInitLog").addPoint("gql_payload_received");h&&b("LSPlatformLsInitLog").addPointForEvent(b("qpl")._(25300040,"1388"),"gql_payload_received");return b("Promise").all([a[0],g[0],d[0]]).then(function(a){b("LSPlatformLsInitLog").addPoint("gql_deps_downloaded");h&&b("LSPlatformLsInitLog").addPointForEvent(b("qpl")._(25300040,"1388"),"gql_deps_downloaded");return b("bs_curry")._1(c,{experiments:k,syncScript:l})}).then(function(a){return b("bs_curry")._1(c,{experiments:i,syncScript:j})}).then(function(a){if(!h)return b("Promise").resolve();a=f.split("updateOrInsertThread").length-1|0;b("cr:4194")==null||b("bs_curry")._1(b("cr:4194").initSync,a);return b("bs_curry")._1(c,{experiments:e,syncScript:f})})}).then(function(a){if(k!==void 0)return l(d);else return b("Promise").resolve()})}).then(function(a){f&&b("QuickPerformanceLogger").markerPoint(b("qpl")._(1036588047,"310"),"sync_completed"),i&&b("MAWTTRC.bs").markEvent("ls_init_end"),h&&b("LSPlatformLsInitLog").addPointForEvent(b("qpl")._(25300040,"1388"),"success_with_init_sync"),b("LSPlatformLsInitLog").addPoint("success_with_init_sync"),b("LSPlatformLsInitLog").endSuccess(),b("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw_graphql","init_sync.success"),b("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw_ls","init_sync.success")}),function(a){b("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw_ls","init_sync.fail");f&&b("QuickPerformanceLogger").markerPoint(b("qpl")._(1036588047,"310"),"sync_failed");b("LSPlatformLsInitLog").fail("failure_during_init_sync");b("LSPlatformLsInitLog").failEvent(b("qpl")._(25300040,"1388"),"failure_during_init_sync");b("MAWTTRC.bs").fail("ls_init_fail");a.RE_EXN_ID===b("LSPlatformGraphQLTransport.bs").ServerError||a.RE_EXN_ID!==b("Promise.bs").JsError||b("recoverableViolation")("Encountered an error while performining preloaded init sync request via graphql","messenger_web_product",{error:b("bs_caml_option").some(a._1)});return j(d)})})}d={epochId:void 0,failureCount:b("bs_caml_int64").zero,lastDelayedRequestTimestampMs:void 0,lastSentTimestampMs:b("bs_caml_int64").zero,lastSyncRequestTimestampMs:b("bs_caml_int64").zero,networkTaskIdentifier:void 0,syncDatabaseId:b("bs_caml_int64").zero,taskQueueName:""};f.defaultNetworkRequest=d;f.initialEpochId=g;f.$MAWGating$requireCondXplat=b("cr:4654");f.mawGating=c;f.isArmadilloAndOccamadillo=h;f.isArmadillo=i;f.handlePreloadedSyncFailure=j;f.setEpochId=k;f.clearEpochForMailbox=l;f.$MAWCommonSetup$requireCondXplat=b("cr:4194");f.sendHardcodedInitSync=a}),null); __d("LSPlatformRequestId",[],(function(a,b,c,d,e,f){"use strict";var g=4;function a(){var a=g;g+=1;return a}b={generate:a};f["default"]=b}),66); __d("LSPlatformRequestScheduler",["clearTimeout","setTimeout"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(){this.requests=new Map()}var b=a.prototype;b.schedule=function(a,b,d){var e=this.requests.get(b);e!=null&&c("clearTimeout")(e);this.requests.set(b,c("setTimeout")(a,d))};b.cleanup=function(){this.requests.forEach(function(a){return c("clearTimeout")(a)})};return a}();g["default"]=a}),98); __d("LSTaskWorkItemType.bs",["bs_caml_int64"],(function(a,b,c,d,e,f){"use strict";a=b("bs_caml_int64").one;c=[0,2];d=[0,3];e=[0,4];b=[0,5];f.workItemTypeSendToServer=a;f.workItemTypeHandleNative=c;f.workItemTypeDelayHandling=d;f.workItemTypeNone=e;f.workItemTypeSendToServerFireAndForget=b}),null); __d("LSPlatformSyncSystem.bs",["FBLogger","LS.bs","LSBeginHandlingSync","LSBeginHandlingSyncForSyncGroup","LSDict","LSJson","LSLogHistory","LSPlatformGraphQLTransport.bs","LSPlatformRealtimeTransport.bs","LSPlatformRequestId","LSPlatformRequestScheduler","LSSyncChannel.bs","LSTaskWorkItemType.bs","MWPBumpEntityKey","Promise","Promise.bs","ReQL.bs","SortedAsyncIterable.bs","bs_caml","bs_caml_format","bs_caml_int64","bs_caml_option","bs_curry","bs_int64","gkx","promiseDone","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function a(a,e,f,g,h,i){var j=function(a,e){return a.runInTransaction(function(a){return d("ReQL.bs").first(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(a.table("network_requests")),{hd:"",tl:{hd:e,tl:0}})).then(function(d){if(d!==void 0)return a.table("network_requests").put({epochId:void 0,failureCount:c("bs_caml_int64").add(d.failureCount,c("bs_caml_int64").one),lastDelayedRequestTimestampMs:d.lastDelayedRequestTimestampMs,lastSentTimestampMs:d.lastSentTimestampMs,lastSyncRequestTimestampMs:d.lastSyncRequestTimestampMs,networkTaskIdentifier:d.networkTaskIdentifier,syncDatabaseId:d.syncDatabaseId,taskQueueName:d.taskQueueName});else return b("Promise").resolve()})},"readwrite")},k=new(c("LSPlatformRequestScheduler"))(),l=function(a,j,k){k=c("LSDict").shapeToRecord(k);var l=c("LSDict").shapeToRecord(k.request_payload),m=k.type,n=c("LSPlatformRequestId").generate(),o=d("LSJson").stringify(c("LSDict").fromObject({database:l.database,epoch_id:l.epoch_id,failure_count:l.failure_count,last_applied_cursor:l.last_applied_cursor,sync_params:l.sync_params,version:c("bs_caml_format").caml_int64_of_string(g)}));if(j.skip_realtime_gateway)return d("LSPlatformGraphQLTransport.bs").publish(h,n,m,o,i).then(function(a){return f({experiments:a[2],syncScript:a[1]})});else return d("ReQL.bs").first(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(a.table("sync_groups")),{hd:j.sync_group_id,tl:0})).then(function(a){a=a!==void 0?a.syncChannel:d("LSSyncChannel.bs").mqtt;return c("bs_curry")._5(e.publish,a,void 0,n,m,o).then(function(a){return b("Promise").resolve()})})},m=function a(e,f){var g=function(b){return e.runInTransaction(function(a){return c("LSBeginHandlingSyncForSyncGroup")(b,!1,d("LS.bs").make(a))},"readwrite").then(function(b){return a(e,b[0])})},h=function(a,b){k.schedule(function(){c("promiseDone")(g(a))},c("bs_int64").to_string(a),c("bs_caml_int64").to_float(b))},i=c("LSDict").shapeToRecord(f);f=i.work_item_type;if(c("bs_caml").i64_eq(f,d("LSTaskWorkItemType.bs").workItemTypeSendToServer)||c("bs_caml").i64_eq(f,d("LSTaskWorkItemType.bs").workItemTypeSendToServerFireAndForget)){var m=i.network_payload;if(m!==void 0)return l(e,i,c("bs_caml_option").valFromOption(m))["catch"](function(a){a.RE_EXN_ID===d("LSPlatformGraphQLTransport.bs").ServerError?d("MWPBumpEntityKey").bumpEntityKeyWithAppId("lsplatform_sync","send_sync_request_graphql_error"):a.RE_EXN_ID===d("Promise.bs").JsError?(d("MWPBumpEntityKey").bumpEntityKeyWithAppId("lsplatform_sync","send_sync_request_js_error"),c("recoverableViolation")("Encountered an JS error while publishing a LS sync request","messenger_web_product",{error:c("bs_caml_option").some(a._1)})):a.RE_EXN_ID===d("LSPlatformRealtimeTransport.bs").Timeout||a.RE_EXN_ID===d("LSPlatformRealtimeTransport.bs").NotConnected?(d("MWPBumpEntityKey").bumpEntityKeyWithAppId("lsplatform_sync","send_sync_request_timeout_or_disc"),d("LSLogHistory").log("Publish timed out","warn")):(d("MWPBumpEntityKey").bumpEntityKeyWithAppId("lsplatform_sync","send_sync_request_other_error"),c("FBLogger")("messenger_web_product").catching(a).mustfix("Encountered an JS error while publishing a LS sync request"));return j(e,i.sync_group_id).then(function(){return g(i.sync_group_id)})});else{c("recoverableViolation")("Expected networkpayload for sync request but didn't get any","messenger_web_product");return b("Promise").resolve()}}if(!c("bs_caml").i64_eq(f,d("LSTaskWorkItemType.bs").workItemTypeDelayHandling))if(c("bs_caml").i64_eq(f,d("LSTaskWorkItemType.bs").workItemTypeNone)||!c("bs_caml").i64_eq(f,d("LSTaskWorkItemType.bs").workItemTypeHandleNative))return b("Promise").resolve();else{c("recoverableViolation")("Native handling for sync group not implemented yet","messenger_web_product");return b("Promise").resolve()}m=i.next_sync_ms;if(m!==void 0){h(i.sync_group_id,m);return b("Promise").resolve()}else{c("recoverableViolation")("Expected delay for delayed sync request but didn't get any","messenger_web_product");return b("Promise").resolve()}},n=function(c){return b("Promise").all(c[0].map(function(b){return m(a,b)}))},o=function(){c("promiseDone")(a.runInTransaction(function(a){return c("LSBeginHandlingSync")(!1,d("LS.bs").make(a))},"readwrite").then(n))},p=function(){return d("SortedAsyncIterable.bs").subscribe(d("ReQL.bs").fromTableAscending(a.table("sync_groups")),function(a,b){return o()})},q=function(){return e.subscribeToNonTaskResponses(function(a,b){a=b.ex;b=b.payload;a={experiments:a,syncScript:b};c("promiseDone")(f(a),function(){return o()},function(a){d("MWPBumpEntityKey").bumpEntityKeyWithAppId("lsplatform_sync","handle_sync_response_failure"),c("FBLogger")("messenger_web_product").catching(a.RE_EXN_ID===d("Promise.bs").JsError?c("bs_caml_option").some(a._1):a).mustfix("JS error encountered handling response from MQTT (pdb=%s): %s",c("gkx")("6543"),a.message)})})},r=function(){return e.onReconnect(function(){d("MWPBumpEntityKey").bumpEntityKeyWithAppId("lsplatform_sync","resume_sync_reconnect"),d("LSLogHistory").log("LS Sync System reconnecting","debug"),c("promiseDone")(a.runInTransaction(function(a){return d("ReQL.bs").toArray(d("ReQL.bs").mergeJoin(d("ReQL.bs").fromTableAscending(a.table("sync_groups")),d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(a.table("network_requests")),{hd:"",tl:0}))).then(function(c){return b("Promise").all(c.map(function(b){b=b[1];return a.table("network_requests").put({epochId:void 0,failureCount:b.failureCount,lastDelayedRequestTimestampMs:b.lastDelayedRequestTimestampMs,lastSentTimestampMs:b.lastSentTimestampMs,lastSyncRequestTimestampMs:b.lastSyncRequestTimestampMs,networkTaskIdentifier:b.networkTaskIdentifier,syncDatabaseId:b.syncDatabaseId,taskQueueName:b.taskQueueName})}))}).then(function(b){return c("LSBeginHandlingSync")(!1,d("LS.bs").make(a))})},"readwrite").then(n))})},s=p(),t=q(),u=r();o();return{cleanup:function(){s(),u(),t()}}}g.make=a}),98); __d("LSPlatformTraceTasks",["LS.re","LSGenerateTraceId","LSPredefineTraceForTask","gkx","justknobx","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h=new Set();c("gkx")("4729")&&h.add("207");function a(a,e){var f,g,i,j;return b("regeneratorRuntime").async(function(k){while(1)switch(k.prev=k.next){case 0:if(!c("justknobx")._("506")){k.next=12;break}f=0;case 2:if(!(f0;(a||c)&&f.add(b.value.queueName);(b.operation==="add"&&b.value.dataTraceId==null||b.value.dataTraceId==="")&&g.push(b.value)}));i.push(a.table("network_requests").subscribe(function(a,b){a=a.hd;if(a==="")return;b.operation==="delete"?f.add(a):b.value.epochId==null&&f.add(a)}));i.push(a.subscribeToCommit(function(){var i=Array.from(f),j=g;f.clear();g=[];i.forEach(function(c){var f;return b("regeneratorRuntime").async(function(g){while(1)switch(g.prev=g.next){case 0:g.next=2;return b("regeneratorRuntime").awrap(d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.table("pending_tasks").index("queueNameTaskId")).bounds({gte:{hd:c,tl:0}})));case 2:f=g.sent,f!=null&&h(a,e,f);case 4:case"end":return g.stop()}},null,this)});j.length>0&&c("promiseDone")(a.runInTransaction(function(a){return c("LSPlatformTraceTasks").startTraceForTaskIfEligible(a,j)},"readwrite","background"))}));return i}function e(a,e){c("promiseDone")(function(){var c,f,g,i,j,k,l;return b("regeneratorRuntime").async(function(m){while(1)switch(m.prev=m.next){case 0:m.next=2;return b("regeneratorRuntime").awrap(d("ReQL").toArrayAsync(d("ReQL").fromTableAscending(a.table("pending_tasks"))));case 2:c=m.sent,f=new Set(),(g=c,i=Array.isArray(g),j=0,g=i?g:g[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]());case 5:if(!i){m.next=11;break}if(!(j>=g.length)){m.next=8;break}return m.abrupt("break",22);case 8:k=g[j++];m.next=15;break;case 11:j=g.next();if(!j.done){m.next=14;break}return m.abrupt("break",22);case 14:k=j.value;case 15:l=k;if(!f.has(l.queueName)){m.next=18;break}return m.abrupt("continue",20);case 18:f.add(l.queueName),h(a,e,l);case 20:m.next=5;break;case 22:case"end":return m.stop()}},null,this)}())}function j(a,e){c("promiseDone")(function(){var f;return b("regeneratorRuntime").async(function(g){while(1)switch(g.prev=g.next){case 0:g.next=2;return b("regeneratorRuntime").awrap(d("ReQL").toArrayAsync(d("ReQL").fromTableAscending(a.table("pending_fire_and_forget_tasks"))));case 2:f=g.sent;g.next=5;return b("regeneratorRuntime").awrap(b("Promise").all(f.map(function(b){return i(a,e,b)})));case 5:c("promiseDone")(a.runInTransaction(function(a){return b("Promise").all(f.map(function(b){return a.table("pending_fire_and_forget_tasks")["delete"]({hd:b.taskId,tl:0})}))},"readwrite","background"));case 6:case"end":return g.stop()}},null,this)}())}function f(a,b){var c=!1,d=[];d.push(a.table("pending_fire_and_forget_tasks").subscribe(function(a,b){if(b.operation==="delete")return;a=b.operation==="put"&&b.prevValue==null||b.operation==="add";a&&(c=!0)}));d.push(a.subscribeToCommit(function(){c&&j(a,b),c=!1}));return d}g.checkQueuesWhenPendingTaskTableUpdates=a;g.checkAllPendingTasksForWork=e;g.checkAllFireForgetTasksForWork=j;g.checkQueuesWhenPendingFireForgetTaskTableUpdates=f}),98); __d("LSPlatformTaskSystem.bs",["FBLogger","LS.bs","LSAppendDataTraceAddon","LSBeginHandlingPendingTasksForQueue","LSDict","LSHandleTaskSendFailureForQueue","LSHandleTaskSendSuccessForQueue","LSJson","LSPlatformDataTraceCheckPoint","LSPlatformRealtimeTransport.bs","LSPlatformRequestId","LSPlatformRequestScheduler","LSPlatformTaskUtils","LSRequestType.bs","LSSyncChannel.bs","LSTaskWorkItemType.bs","MWPBumpEntityKey","Promise","Promise.bs","ReQL.bs","bs_belt_Array","bs_belt_Option","bs_caml","bs_caml_int64","bs_caml_option","bs_curry","bs_int64","cr:1266","gkx","promiseDone","recoverableViolation"],(function(a,b,c,d,e,f){"use strict";var g=b("cr:1266")==null?void 0:b("bs_caml_option").some(b("cr:1266"));c={};function h(a,c){if(b("gkx")("6551")&&c!=null&&c.dataTraceId!=null&&c.context=="46")try{var d=c.dataTraceId;b("promiseDone")(a.runInTransaction(function(a){return b("LSAppendDataTraceAddon")(d,b("LSPlatformDataTraceCheckPoint").CLIENT_SEND_TASK_PAYLOAD,b("LSSyncChannel.bs").mqtt,void 0,"pdb",b("LS.bs").make(a))},"readwrite"),function(a){},function(a){b("FBLogger")("messenger_web_product").catching(a).warn("AppendTrace rejected in task system")})}catch(a){b("FBLogger")("messenger_web_product").catching(a).warn("Cannot append trace in task system")}}function a(a,c,d,e){var f=new(b("LSPlatformRequestScheduler"))(),i=function(c){c=b("bs_belt_Option").map(c.network_payload,function(a){return b("LSDict").shapeToRecord(a)});if(c!==void 0)return b("bs_belt_Option").mapWithDefault(b("bs_belt_Array").get(c.tasks,0),b("Promise").resolve(),function(c){c=b("LSDict").shapeToRecord(c).task_id;return b("ReQL.bs").first(b("ReQL.bs").getKeyRange(b("ReQL.bs").fromTableAscending(a.table("pending_tasks")),{hd:c,tl:0}))});else return b("Promise").resolve()},j=function(c){return a.runInTransaction(function(a){return b("LSHandleTaskSendFailureForQueue")(c,b("LS.bs").make(a))},"readwrite")},k=function l(k){var m=function(c,d){f.schedule(function(){b("promiseDone")(a.runInTransaction(function(a){return b("LSBeginHandlingPendingTasksForQueue")(c,!1,b("LS.bs").make(a))},"readwrite").then(function(a){return l(b("LSDict").shapeToRecord(a[0]))}))},c,b("bs_caml_int64").to_float(d))},n=b("LSPlatformRequestId").generate(),o=b("bs_belt_Option").map(k.network_payload,function(a){return b("LSDict").shapeToRecord(a)}),p=k.work_item_type;if(o!==void 0){if(b("bs_caml").i64_eq(p,b("LSTaskWorkItemType.bs").workItemTypeSendToServer)){var q=o.epoch_id,r=o.tasks,s=k.queue_name;b("cr:1266")==null||b("bs_curry")._1(g.recordTaskSending,r);return b("Promise.bs").$$catch(i(k).then(function(b){h(a,b);return b}).then(function(a){return c.publish(b("LSSyncChannel.bs").mqtt,s,n,b("LSRequestType.bs").taskBatch,b("LSJson").stringify(b("LSDict").fromObject({data_trace_id:a==null?void 0:a.dataTraceId,epoch_id:q,tasks:r,version_id:e})))}).then(function(c){if(c.TAG===0){var e=c._1;c=e.ex;var f=e.payload;f={syncScript:f};c!=null&&(f=babelHelpers["extends"]({},f,{experiments:c}));return b("Promise.bs").$$catch(d(f).then(function(c){b("cr:1266")==null||b("bs_curry")._2(g.recordTaskSent,r,e.payload);return a.runInTransaction(function(a){return b("LSHandleTaskSendSuccessForQueue")(s,b("LS.bs").make(a))},"readwrite")}),function(a){b("MWPBumpEntityKey").bumpEntityKeyWithAppId("lsplatform_tasks","handle_task_failure");a=a.RE_EXN_ID===b("Promise.bs").JsError?a._1:a;b("FBLogger")("messenger_web_product").catching(a).mustfix("Encountered an error while processing a task response via realtime transport");return j(s)})}b("recoverableViolation")("Expected a response for a non fire forget task","messenger_web_product");return b("Promise").resolve()}),function(a){if(a.RE_EXN_ID===b("LSPlatformRealtimeTransport.bs").Timeout)b("MWPBumpEntityKey").bumpEntityKeyWithAppId("lsplatform_tasks","send_fail_timeout");else if(a.RE_EXN_ID!==b("LSPlatformRealtimeTransport.bs").NotConnected){b("MWPBumpEntityKey").bumpEntityKeyWithAppId("lsplatform_tasks","send_fail_generic");a=a.RE_EXN_ID===b("Promise.bs").JsError?a._1:a;b("FBLogger")("messenger_web_product").catching(a).mustfix("Encountered an error while publishing a LS task payload via realtime transport")}return j(s)})}if(b("bs_caml").i64_eq(p,b("LSTaskWorkItemType.bs").workItemTypeSendToServerFireAndForget))return b("Promise.bs").$$catch(b("Promise").all(o.tasks.map(function(a){return b("LSDict").shapeToRecord(a)}).map(function(a){return b("bs_curry")._5(c.publish,b("LSSyncChannel.bs").mqtt,void 0,n,b("LSRequestType.bs").fireForget,b("LSJson").stringify(b("LSDict").fromObject({label:a.label,payload:a.payload,version:e})))})).then(function(a){return b("Promise").resolve()}),function(a){return b("Promise").resolve()})}if(b("bs_caml").i64_eq(p,b("LSTaskWorkItemType.bs").workItemTypeDelayHandling)){m(k.queue_name,k.next_sync_ms);return b("Promise").resolve()}else if(b("bs_caml").i64_eq(p,b("LSTaskWorkItemType.bs").workItemTypeNone))return b("Promise").resolve();else if(b("bs_caml").i64_eq(p,b("LSTaskWorkItemType.bs").workItemTypeHandleNative)){b("recoverableViolation")("Native tasks not supported so far","messenger_web_product");return b("Promise").resolve()}else{b("recoverableViolation")("Unknown Task type of "+b("bs_int64").to_string(p),"messenger_web_product");return b("Promise").resolve()}},l=function(c){b("LSPlatformTaskUtils").checkAllPendingTasksForWork(a,k);return b("LSPlatformTaskUtils").checkAllPendingTasksForWork(a,k)},m=function(){return c.onReconnect(function(){b("promiseDone")(a.runInTransaction(function(a){return b("ReQL.bs").toArray(b("ReQL.bs").bounds(b("ReQL.bs").fromTableAscending(a.table("network_requests")),{NAME:"greaterThan",VAL:{hd:"",tl:0}})).then(function(c){return b("Promise").all(c.map(function(c){return b("LSHandleTaskSendFailureForQueue")(c.taskQueueName,b("LS.bs").make(a))}))})},"readwrite"));return l()})},n=b("LSPlatformTaskUtils").checkQueuesWhenPendingTaskTableUpdates(a,k),o=b("LSPlatformTaskUtils").checkQueuesWhenPendingFireForgetTaskTableUpdates(a,k),p=m();l();return{cleanup:function(){n.forEach(function(a){return a()});o.forEach(function(a){return a()});return b("bs_curry")._1(p)}}}f.$LSPlatformDevtools$OR$null$requireCond=b("cr:1266");f.LSPlatformTaskUtils=c;f.make=a}),null); __d("LSPlatformClient.bs",["ExecutionEnvironment","LSDataTraceFlushDeferred.bs","LSDatabaseProviderType","LSJSInMemoryStorage.bs","LSMetadata","LSPlatformDeviceId","LSPlatformHardcodedInitSync.bs","LSPlatformLsInitLog","LSPlatformRealtimeTransport.bs","LSPlatformSyncSystem.bs","LSPlatformTaskSystem.bs","Promise","cr:1266","cr:4153","cr:4160","cr:4654","cr:4783","promiseDone","recoverableViolation","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var e,f,g,h,i,j,k,l;return b("regeneratorRuntime").async(function(m){while(1)switch(m.prev=m.next){case 0:e={status:"NotStarted"};if(!c("ExecutionEnvironment").canUseDOM){m.next=29;break}m.next=4;return b("regeneratorRuntime").awrap(a.getDb());case 4:f=m.sent;g=d("LSDatabaseProviderType").getProviderType();h=d("LSPlatformDeviceId").getDeviceIdForProviderType(g);b("cr:1266")!==null&&b("cr:1266").registerDb(f);if(!(g==="persisted"&&b("cr:4160")!==null)){m.next=16;break}m.next=11;return b("regeneratorRuntime").awrap(b("cr:4160").make());case 11:i=m.sent;i.isTabWithoutClient()===!0&&(b("cr:4783")!=null&&(b("cr:4783").markEvent("ls_init_end"),b("cr:4783").markEvent("maw_init_end"),b("cr:4783").markEvent("maw_init_skipped")),d("LSPlatformLsInitLog").addPoint("no_ls_sync"),d("LSPlatformLsInitLog").endSuccess());return m.abrupt("return",{cleanup:function(a){},db:f,onConnectionStatusChange:function(a){return function(){}},start:function(){return b("Promise").resolve()}});case 16:m.next=18;return b("regeneratorRuntime").awrap(a.getEval());case 18:j=m.sent;try{k=b("cr:1266")!=null?b("cr:1266").registerEval(j)()(f):j()(f)}catch(a){c("recoverableViolation")("fail to register datascriptEvaluator","messenger_web_product",{error:a}),k=j()(f)}if(!a.sendHardcodedInitSync){m.next=23;break}m.next=23;return b("regeneratorRuntime").awrap(d("LSPlatformHardcodedInitSync.bs").sendHardcodedInitSync(a,k,f,h));case 23:l=function(){if(e.status==="Started")return b("Promise").resolve();var c=d("LSPlatformRealtimeTransport.bs").make(a.realtimeUnderylingTransport,a.appId,h),g=d("LSPlatformTaskSystem.bs").make(f,c,k,a.schemaVersion),i=d("LSPlatformSyncSystem.bs").make(f,c,k,a.schemaVersion,h,a.executeGraphQLLightSpeedRequest),j=function(){g.cleanup(),i.cleanup(),c.cleanup(),e={status:"Paused"}};e={cleanup:j,transportConnectionChange:c.onConnectionStatusChange,status:"Started"};return b("Promise").resolve()};c("promiseDone")(d("LSDataTraceFlushDeferred.bs").watchForExpiredTraces(f));b("cr:4654")!==null&&b("cr:4654").isLabyrinthOnWebEnabled()&&b("cr:4153")!=null&&b("cr:4153").listenForChangesToBackupState(f);return m.abrupt("return",{cleanup:function(){e.status==="Started"&&e.cleanup()},db:f,onConnectionStatusChange:function(a){e.status==="Started"&&e.transportConnectionChange(a);return function(){}},start:l});case 27:m.next=30;break;case 29:return m.abrupt("return",{cleanup:function(){},db:d("LSJSInMemoryStorage.bs").make(d("LSMetadata").metadata),onConnectionStatusChange:function(a){return function(){}},start:function(){return b("Promise").resolve()}});case 30:case"end":return m.stop()}},null,this)}g.make=a}),98);/*FB_PKG_DELIM*/ __d("d3-selection",["d3-selection-1.3.0"],(function(a,b,c,d,e,f){e.exports=b("d3-selection-1.3.0")()}),null); /** * License: https://www.facebook.com/legal/license/9cisb7Fe7ih/ */ __d("immutable-3.7.3",[],(function(a,b,c,d,e,f){"use strict";var g={},h={exports:g},i;function j(){(function(b,c){typeof g==="object"&&typeof h!=="undefined"?h.exports=c():typeof i==="function"&&i.amd?i(c):b.Immutable=c()})(this,function(){var a=Array.prototype.slice;function b(a,b){b&&(a.prototype=Object.create(b.prototype)),a.prototype.constructor=a}var c="delete",d=5,e=1<=0?+b:n(a)+ +b}function p(){return!0}function q(a,b,c){return(a===0||c!==void 0&&a<=-c)&&(b===void 0||c!==void 0&&b>=c)}function r(a,b){return aa(a,b,0)}function s(a,b){return aa(a,b,b)}function aa(a,b,c){return a===void 0?c:a<0?Math.max(0,b+a):b===void 0?a:Math.min(b,a)}function t(a){return x(a)?a:F(a)}b(u,t);function u(a){return y(a)?a:G(a)}b(v,t);function v(a){return z(a)?a:H(a)}b(w,t);function w(a){return x(a)&&!ba(a)?a:I(a)}function x(a){return!!(a&&a[da])}function y(a){return!!(a&&a[ea])}function z(a){return!!(a&&a[fa])}function ba(a){return y(a)||z(a)}function ca(a){return!!(a&&a[ga])}t.isIterable=x;t.isKeyed=y;t.isIndexed=z;t.isAssociative=ba;t.isOrdered=ca;t.Keyed=u;t.Indexed=v;t.Set=w;var da="@@__IMMUTABLE_ITERABLE__@@",ea="@@__IMMUTABLE_KEYED__@@",fa="@@__IMMUTABLE_INDEXED__@@",ga="@@__IMMUTABLE_ORDERED__@@",ha=0,A=1,B=2,ia=typeof Symbol==="function"&&Symbol.iterator,ja="@@iterator",ka=ia||ja;function C(a){this.next=a}C.prototype.toString=function(){return"[Iterator]"};C.KEYS=ha;C.VALUES=A;C.ENTRIES=B;C.prototype.inspect=C.prototype.toSource=function(){return this.toString()};C.prototype[ka]=function(){return this};function D(a,b,c,d){a=a===0?b:a===1?c:[b,c];d?d.value=a:d={value:a,done:!1};return d}function E(){return{value:void 0,done:!0}}function la(a){return!!oa(a)}function ma(a){return a&&typeof a.next==="function"}function na(a){var b=oa(a);return b&&b.call(a)}function oa(a){a=a&&(ia&&a[ia]||a[ja]);if(typeof a==="function")return a}function pa(a){return a&&typeof a.length==="number"}b(F,t);function F(a){return a===null||a===void 0?xa():x(a)?a.toSeq():Aa(a)}F.of=function(){return F(arguments)};F.prototype.toSeq=function(){return this};F.prototype.toString=function(){return this.__toString("Seq {","}")};F.prototype.cacheResult=function(){!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length);return this};F.prototype.__iterate=function(a,b){return Ca(this,a,b,!0)};F.prototype.__iterator=function(a,b){return Da(this,a,b,!0)};b(G,F);function G(a){return a===null||a===void 0?xa().toKeyedSeq():x(a)?y(a)?a.toSeq():a.fromEntrySeq():ya(a)}G.prototype.toKeyedSeq=function(){return this};b(H,F);function H(a){return a===null||a===void 0?xa():x(a)?y(a)?a.entrySeq():a.toIndexedSeq():za(a)}H.of=function(){return H(arguments)};H.prototype.toIndexedSeq=function(){return this};H.prototype.toString=function(){return this.__toString("Seq [","]")};H.prototype.__iterate=function(a,b){return Ca(this,a,b,!1)};H.prototype.__iterator=function(a,b){return Da(this,a,b,!1)};b(I,F);function I(a){return(a===null||a===void 0?xa():x(a)?y(a)?a.entrySeq():a:za(a)).toSetSeq()}I.of=function(){return I(arguments)};I.prototype.toSetSeq=function(){return this};F.isSeq=va;F.Keyed=G;F.Set=I;F.Indexed=H;var qa="@@__IMMUTABLE_SEQ__@@";F.prototype[qa]=!0;b(ra,H);function ra(a){this._array=a,this.size=a.length}ra.prototype.get=function(a,b){return this.has(a)?this._array[o(this,a)]:b};ra.prototype.__iterate=function(a,b){var c=this._array,d=c.length-1;for(var e=0;e<=d;e++)if(a(c[b?d-e:e],e,this)===!1)return e+1;return e};ra.prototype.__iterator=function(a,b){var c=this._array,d=c.length-1,e=0;return new C(function(){return e>d?E():D(a,e,c[b?d-e++:e++])})};b(sa,G);function sa(a){var b=Object.keys(a);this._object=a;this._keys=b;this.size=b.length}sa.prototype.get=function(a,b){return b!==void 0&&!this.has(a)?b:this._object[a]};sa.prototype.has=function(a){return this._object.hasOwnProperty(a)};sa.prototype.__iterate=function(a,b){var c=this._object,d=this._keys,e=d.length-1;for(var f=0;f<=e;f++){var g=d[b?e-f:f];if(a(c[g],g,this)===!1)return f+1}return f};sa.prototype.__iterator=function(a,b){var c=this._object,d=this._keys,e=d.length-1,f=0;return new C(function(){var g=d[b?e-f:f];return f++>e?E():D(a,g,c[g])})};sa.prototype[ga]=!0;b(ta,H);function ta(a){this._iterable=a,this.size=a.length||a.size}ta.prototype.__iterateUncached=function(a,b){if(b)return this.cacheResult().__iterate(a,b);b=this._iterable;b=na(b);var c=0;if(ma(b)){var d;while(!(d=b.next()).done)if(a(d.value,c++,this)===!1)break}return c};ta.prototype.__iteratorUncached=function(a,b){if(b)return this.cacheResult().__iterator(a,b);b=this._iterable;var c=na(b);if(!ma(c))return new C(E);var d=0;return new C(function(){var b=c.next();return b.done?b:D(a,d++,b.value)})};b(ua,H);function ua(a){this._iterator=a,this._iteratorCache=[]}ua.prototype.__iterateUncached=function(a,b){if(b)return this.cacheResult().__iterate(a,b);b=this._iterator;var c=this._iteratorCache,d=0;while(d=d.length){var b=c.next();if(b.done)return b;d[e]=b.value}return D(a,e,d[e++])})};function va(a){return!!(a&&a[qa])}var wa;function xa(){return wa||(wa=new ra([]))}function ya(a){var b=Array.isArray(a)?new ra(a).fromEntrySeq():ma(a)?new ua(a).fromEntrySeq():la(a)?new ta(a).fromEntrySeq():typeof a==="object"?new sa(a):void 0;if(!b)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+a);return b}function za(a){var b=Ba(a);if(!b)throw new TypeError("Expected Array or iterable object of values: "+a);return b}function Aa(a){var b=Ba(a)||typeof a==="object"&&new sa(a);if(!b)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+a);return b}function Ba(a){return pa(a)?new ra(a):ma(a)?new ua(a):la(a)?new ta(a):void 0}function Ca(a,b,c,d){var e=a._cache;if(e){var f=e.length-1;for(var g=0;g<=f;g++){var h=e[c?f-g:g];if(b(h[1],d?h[0]:g,a)===!1)return g+1}return g}return a.__iterateUncached(b,c)}function Da(a,b,c,d){var e=a._cache;if(e){var f=e.length-1,g=0;return new C(function(){var a=e[c?f-g:g];return g++>f?E():D(b,d?a[0]:g-1,a[1])})}return a.__iteratorUncached(b,c)}b(Ea,t);function Ea(){throw TypeError("Abstract")}b(Fa,Ea);function Fa(){}b(Ga,Ea);function Ga(){}b(Ha,Ea);function Ha(){}Ea.Keyed=Fa;Ea.Indexed=Ga;Ea.Set=Ha;function J(a,b){if(a===b||a!==a&&b!==b)return!0;if(!a||!b)return!1;if(typeof a.valueOf==="function"&&typeof b.valueOf==="function"){a=a.valueOf();b=b.valueOf();if(a===b||a!==a&&b!==b)return!0;if(!a||!b)return!1}return typeof a.equals==="function"&&typeof b.equals==="function"&&a.equals(b)?!0:!1}function Ia(a,b){return b?Ja(b,a,"",{"":a}):Ka(a)}function Ja(a,b,c,d){if(Array.isArray(b))return a.call(d,c,H(b).map(function(c,d){return Ja(a,c,d,b)}));return La(b)?a.call(d,c,G(b).map(function(c,d){return Ja(a,c,d,b)})):b}function Ka(a){if(Array.isArray(a))return H(a).map(Ka).toList();return La(a)?G(a).map(Ka).toMap():a}function La(a){return a&&(a.constructor===Object||a.constructor===void 0)}var Ma=typeof Math.imul==="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(a,b){a=a|0;b=b|0;var c=a&65535,d=b&65535;return c*d+((a>>>16)*d+c*(b>>>16)<<16>>>0)|0};function Na(a){return a>>>1&1073741824|a&3221225471}function K(a){if(a===!1||a===null||a===void 0)return 0;if(typeof a.valueOf==="function"){a=a.valueOf();if(a===!1||a===null||a===void 0)return 0}if(a===!0)return 1;var b=typeof a;if(b==="number"){var c=a|0;c!==a&&(c^=a*4294967295);while(a>4294967295)a/=4294967295,c^=a;return Na(c)}if(b==="string")return a.length>Ya?Oa(a):Pa(a);return typeof a.hashCode==="function"?a.hashCode():Qa(a)}function Oa(b){var a=ab[b];a===void 0&&(a=Pa(b),$a===Za&&($a=0,ab={}),$a++,ab[b]=a);return a}function Pa(b){var a=0;for(var c=0;c0)switch(a.nodeType){case 1:return a.uniqueID;case 9:return a.documentElement&&a.documentElement.uniqueID}}var Ua=typeof WeakMap==="function",Va;Ua&&(Va=new WeakMap());var Wa=0,Xa="__immutablehash__";typeof Symbol==="function"&&(Xa=Symbol(Xa));var Ya=16,Za=255,$a=0,ab={};function bb(a,b){if(!a)throw new Error(b)}function L(a){bb(a!==Infinity,"Cannot perform this action with an infinite size.")}b(M,G);function M(a,b){this._iter=a,this._useKeys=b,this.size=a.size}M.prototype.get=function(a,b){return this._iter.get(a,b)};M.prototype.has=function(a){return this._iter.has(a)};M.prototype.valueSeq=function(){return this._iter.valueSeq()};M.prototype.reverse=function(){var a=this,b=hb(this,!0);this._useKeys||(b.valueSeq=function(){return a._iter.toSeq().reverse()});return b};M.prototype.map=function(a,b){var c=this,d=gb(this,a,b);this._useKeys||(d.valueSeq=function(){return c._iter.toSeq().map(a,b)});return d};M.prototype.__iterate=function(a,b){var c=this,d;return this._iter.__iterate(this._useKeys?function(b,d){return a(b,d,c)}:(d=b?xb(this):0,function(e){return a(e,b?--d:d++,c)}),b)};M.prototype.__iterator=function(a,b){if(this._useKeys)return this._iter.__iterator(a,b);var c=this._iter.__iterator(A,b),d=b?xb(this):0;return new C(function(){var e=c.next();return e.done?e:D(a,b?--d:d++,e.value,e)})};M.prototype[ga]=!0;b(cb,H);function cb(a){this._iter=a,this.size=a.size}cb.prototype.includes=function(a){return this._iter.includes(a)};cb.prototype.__iterate=function(a,b){var c=this,d=0;return this._iter.__iterate(function(b){return a(b,d++,c)},b)};cb.prototype.__iterator=function(a,b){var c=this._iter.__iterator(A,b),d=0;return new C(function(){var b=c.next();return b.done?b:D(a,d++,b.value,b)})};b(db,I);function db(a){this._iter=a,this.size=a.size}db.prototype.has=function(a){return this._iter.includes(a)};db.prototype.__iterate=function(a,b){var c=this;return this._iter.__iterate(function(b){return a(b,b,c)},b)};db.prototype.__iterator=function(a,b){var c=this._iter.__iterator(A,b);return new C(function(){var b=c.next();return b.done?b:D(a,b.value,b.value,b)})};b(eb,G);function eb(a){this._iter=a,this.size=a.size}eb.prototype.entrySeq=function(){return this._iter.toSeq()};eb.prototype.__iterate=function(a,b){var c=this;return this._iter.__iterate(function(b){if(b){wb(b);var d=x(b);return a(d?b.get(1):b[1],d?b.get(0):b[0],c)}},b)};eb.prototype.__iterator=function(a,b){var c=this._iter.__iterator(A,b);return new C(function(){while(!0){var b=c.next();if(b.done)return b;var d=b.value;if(d){wb(d);var e=x(d);return D(a,e?d.get(0):d[0],e?d.get(1):d[1],b)}}})};cb.prototype.cacheResult=M.prototype.cacheResult=db.prototype.cacheResult=eb.prototype.cacheResult=Ab;function fb(a){var b=zb(a);b._iter=a;b.size=a.size;b.flip=function(){return a};b.reverse=function(){var b=a.reverse.apply(this);b.flip=function(){return a.reverse()};return b};b.has=function(b){return a.includes(b)};b.includes=function(b){return a.has(b)};b.cacheResult=Ab;b.__iterateUncached=function(b,c){var d=this;return a.__iterate(function(a,c){return b(c,a,d)!==!1},c)};b.__iteratorUncached=function(b,c){if(b===B){var d=a.__iterator(b,c);return new C(function(){var a=d.next();if(!a.done){var b=a.value[0];a.value[0]=a.value[1];a.value[1]=b}return a})}return a.__iterator(b===A?ha:A,c)};return b}function gb(a,b,c){var d=zb(a);d.size=a.size;d.has=function(b){return a.has(b)};d.get=function(d,e){var f=a.get(d,g);return f===g?e:b.call(c,f,d,a)};d.__iterateUncached=function(d,e){var f=this;return a.__iterate(function(a,e,g){return d(b.call(c,a,e,g),e,f)!==!1},e)};d.__iteratorUncached=function(d,e){var f=a.__iterator(B,e);return new C(function(){var e=f.next();if(e.done)return e;var g=e.value,h=g[0];return D(d,h,b.call(c,g[1],h,a),e)})};return d}function hb(a,b){var c=zb(a);c._iter=a;c.size=a.size;c.reverse=function(){return a};a.flip&&(c.flip=function(){var b=fb(a);b.reverse=function(){return a.flip()};return b});c.get=function(c,d){return a.get(b?c:-1-c,d)};c.has=function(c){return a.has(b?c:-1-c)};c.includes=function(b){return a.includes(b)};c.cacheResult=Ab;c.__iterate=function(b,c){var d=this;return a.__iterate(function(a,c){return b(a,c,d)},!c)};c.__iterator=function(b,c){return a.__iterator(b,!c)};return c}function ib(a,b,c,d){var e=zb(a);d&&(e.has=function(d){var e=a.get(d,g);return e!==g&&!!b.call(c,e,d,a)},e.get=function(d,e){var f=a.get(d,g);return f!==g&&b.call(c,f,d,a)?f:e});e.__iterateUncached=function(e,f){var g=this,h=0;a.__iterate(function(a,f,i){if(b.call(c,a,f,i)){h++;return e(a,d?f:h-1,g)}},f);return h};e.__iteratorUncached=function(e,f){var g=a.__iterator(B,f),h=0;return new C(function(){while(!0){var f=g.next();if(f.done)return f;var i=f.value,j=i[0];i=i[1];if(b.call(c,i,j,a))return D(e,d?j:h++,i,f)}})};return e}function jb(a,b,c){var d=O().asMutable();a.__iterate(function(e,f){d.update(b.call(c,e,f,a),0,function(a){return a+1})});return d.asImmutable()}function kb(a,b,c){var d=y(a),e=(ca(a)?S():O()).asMutable();a.__iterate(function(f,g){e.update(b.call(c,f,g,a),function(a){return a=a||[],a.push(d?[g,f]:f),a})});var f=yb(a);return e.map(function(b){return N(a,f(b))})}function lb(a,b,c,d){var e=a.size;if(q(b,c,e))return a;var f=r(b,e);e=s(c,e);if(f!==f||e!==e)return lb(a.toSeq().cacheResult(),b,c,d);b=e-f;var g;b===b&&(g=b<0?0:b);c=zb(a);c.size=g;!d&&va(a)&&g>=0&&(c.get=function(b,c){b=o(this,b);return b>=0&&bg)return E();var a=e.next();if(d||b===A)return a;else if(b===ha)return D(b,i-1,void 0,a);else return D(b,i-1,a.value[1],a)})};return c}function mb(a,b,c){var d=zb(a);d.__iterateUncached=function(d,e){var f=this;if(e)return this.cacheResult().__iterate(d,e);var g=0;a.__iterate(function(a,e,h){return b.call(c,a,e,h)&&++g&&d(a,e,f)});return g};d.__iteratorUncached=function(d,e){var f=this;if(e)return this.cacheResult().__iterator(d,e);var g=a.__iterator(B,e),h=!0;return new C(function(){if(!h)return E();var a=g.next();if(a.done)return a;var e=a.value,i=e[0];e=e[1];if(!b.call(c,e,i,f)){h=!1;return E()}return d===B?a:D(d,i,e,a)})};return d}function nb(a,b,c,d){var e=zb(a);e.__iterateUncached=function(e,f){var g=this;if(f)return this.cacheResult().__iterate(e,f);var h=!0,i=0;a.__iterate(function(a,f,j){if(!(h&&(h=b.call(c,a,f,j)))){i++;return e(a,d?f:i-1,g)}});return i};e.__iteratorUncached=function(e,f){var g=this;if(f)return this.cacheResult().__iterator(e,f);var h=a.__iterator(B,f),i=!0,j=0;return new C(function(){var a,f;do{a=h.next();if(a.done)if(d||e===A)return a;else if(e===ha)return D(e,j++,void 0,a);else return D(e,j++,a.value[1],a);var k=a.value;f=k[0];k=k[1];i&&(i=b.call(c,k,f,g))}while(i);return e===B?a:D(e,f,k,a)})};return e}function ob(a,b){var c=y(a);b=[a].concat(b).map(function(a){!x(a)?a=c?ya(a):za(Array.isArray(a)?a:[a]):c&&(a=u(a));return a}).filter(function(a){return a.size!==0});if(b.length===0)return a;if(b.length===1){var d=b[0];if(d===a||c&&y(d)||z(a)&&z(d))return d}d=new ra(b);c?d=d.toKeyedSeq():z(a)||(d=d.toSetSeq());d=d.flatten(!0);d.size=b.reduce(function(a,b){if(a!==void 0){b=b.size;if(b!==void 0)return a+b}},0);return d}function pb(a,b,c){var d=zb(a);d.__iterateUncached=function(d,e){var f=0,g=!1;function h(a,i){var j=this;a.__iterate(function(a,e){(!b||i0}function vb(a,b,c){a=zb(a);a.size=new ra(c).map(function(a){return a.size}).min();a.__iterate=function(a,b){b=this.__iterator(A,b);var c,d=0;while(!(c=b.next()).done)if(a(c.value,d++,this)===!1)break;return d};a.__iteratorUncached=function(a,d){var e=c.map(function(a){return a=t(a),na(d?a.reverse():a)}),f=0,g=!1;return new C(function(){var c;g||(c=e.map(function(a){return a.next()}),g=c.some(function(a){return a.done}));return g?E():D(a,f++,b.apply(null,c.map(function(a){return a.value})))})};return a}function N(a,b){return va(a)?b:a.constructor(b)}function wb(a){if(a!==Object(a))throw new TypeError("Expected [K, V] tuple: "+a)}function xb(a){L(a.size);return n(a)}function yb(a){return y(a)?u:z(a)?v:w}function zb(a){return Object.create((y(a)?G:z(a)?H:I).prototype)}function Ab(){if(this._iter.cacheResult){this._iter.cacheResult();this.size=this._iter.size;return this}else return F.prototype.cacheResult.call(this)}function Bb(a,b){return a>b?1:a=ec)return Ub(a,c,d,e);h=a&&a===this.ownerID;f=h?c:m(c);l?b?i===j-1?f.pop():f[i]=f.pop():f[i]=[d,e]:f.push([d,e]);if(h){this.entries=f;return this}return new Fb(a,f)};function Gb(a,b,c){this.ownerID=a,this.bitmap=b,this.nodes=c}Gb.prototype.get=function(a,b,c,e){b===void 0&&(b=K(c));var g=1<<((a===0?b:b>>>a)&f),h=this.bitmap;return(h&g)===0?e:this.nodes[ac(h&g-1)].get(a+d,b,c,e)};Gb.prototype.update=function(a,b,c,e,h,i,j){c===void 0&&(c=K(e));var k=(b===0?c:c>>>b)&f,l=1<=fc)return Wb(a,p,m,k,b);if(n&&!b&&p.length===2&&Sb(p[o^1]))return p[o^1];if(n&&b&&p.length===1&&Sb(b))return b;c=a&&a===this.ownerID;e=n?b?m:m^l:m|l;h=n?b?bc(p,o,b,c):dc(p,o,c):cc(p,o,b,c);if(c){this.bitmap=e;this.nodes=h;return this}return new Gb(a,e,h)};function Hb(a,b,c){this.ownerID=a,this.count=b,this.nodes=c}Hb.prototype.get=function(a,b,c,e){b===void 0&&(b=K(c));var g=(a===0?b:b>>>a)&f;g=this.nodes[g];return g?g.get(a+d,b,c,e):e};Hb.prototype.update=function(a,b,c,e,h,i,j){c===void 0&&(c=K(e));var k=(b===0?c:c>>>b)&f,l=h===g,m=this.nodes,n=m[k];if(l&&!n)return this;l=Rb(n,a,b+d,c,e,h,i,j);if(l===n)return this;b=this.count;if(!n)b++;else if(!l){b--;if(b>>c)&f,i=(c===0?e:e>>>c)&f;e=h===i?[Tb(a,b,c+d,e,g)]:(c=new Jb(b,e,g),h>>=1)h[i]=c&1?b[g++]:void 0;h[d]=f;return new Hb(a,g+1,h)}function Xb(a,b,c){var d=[];for(var e=0;e>1&1431655765);a=(a&858993459)+(a>>2&858993459);a=a+(a>>4)&252645135;a=a+(a>>8);a=a+(a>>16);return a&127}function bc(a,b,c,d){d=d?a:m(a);d[b]=c;return d}function cc(a,b,c,d){var e=a.length+1;if(d&&b+1===e){a[b]=c;return a}d=new Array(e);var f=0;for(var g=0;g0&&f=this.size)return b;a+=this._origin;b=sc(this,a);return b&&b.array[a&f]};Q.prototype.set=function(a,b){return pc(this,a,b)};Q.prototype.remove=function(a){return this.has(a)?a===0?this.shift():a===this.size-1?this.pop():this.splice(a,1):this};Q.prototype.clear=function(){if(this.size===0)return this;if(this.__ownerID){this.size=this._origin=this._capacity=0;this._level=d;this._root=this._tail=null;this.__hash=void 0;this.__altered=!0;return this}return oc()};Q.prototype.push=function(){var a=arguments,b=this.size;return this.withMutations(function(c){tc(c,0,b+a.length);for(var d=0;d>>b&f;if(e>=this.array.length)return new jc([],a);var g=e===0,h;if(b>0){var i=this.array[e];h=i&&i.removeBefore(a,b-d,c);if(h===i&&g)return this}if(g&&!h)return this;b=rc(this,a);if(!g)for(c=0;c>>b&f;if(e>=this.array.length)return this;var g=e===this.array.length-1,h;if(b>0){var i=this.array[e];h=i&&i.removeAfter(a,b-d,c);if(h===i&&g)return this}if(g&&!h)return this;b=rc(this,a);g||b.array.pop();h&&(b.array[e]=h);return b};var kc={};function lc(a,b){var c=a._origin,f=a._capacity,g=vc(f),h=a._tail;return i(a._root,a._level,0);function i(a,b,c){return b===0?j(a,c):k(a,b,c)}function j(a,d){var i=d===g?h&&h.array:a&&a.array,j=d>c?0:c-d,k=f-d;k>e&&(k=e);return function(){if(j===k)return kc;var a=b?--k:j++;return i&&i[a]}}function k(a,g,h){var j,k=a&&a.array,l=h>c?0:c-h>>g,m=(f-h>>g)+1;m>e&&(m=e);return function(){do{if(j){var a=j();if(a!==kc)return a;j=null}if(l===m)return kc;a=b?--m:l++;j=i(k&&k[a],g-d,h+(a<=a.size||b<0)return a.withMutations(function(a){b<0?tc(a,b).set(0,c):tc(a,0,b+1).set(b,c)});b+=a._origin;var d=a._tail,e=a._root,f=j(i);b>=vc(a._capacity)?d=qc(d,a.__ownerID,0,b,c,f):e=qc(e,a.__ownerID,a._level,b,c,f);if(!f.value)return a;if(a.__ownerID){a._root=e;a._tail=d;a.__hash=void 0;a.__altered=!0;return a}return mc(a._origin,a._capacity,a._level,e,d)}function qc(a,b,c,e,g,h){var i=e>>>c&f,j=a&&i0){var l=a&&a.array[i];c=qc(l,b,c-d,e,g,h);if(c===l)return a;e=rc(a,b);e.array[i]=c;return e}if(j&&a.array[i]===g)return a;k(h);e=rc(a,b);g===void 0&&i===e.array.length-1?e.array.pop():e.array[i]=g;return e}function rc(a,b){return b&&a&&b===a.ownerID?a:new jc(a?a.array.slice():[],b)}function sc(a,b){if(b>=vc(a._capacity))return a._tail;if(b<1<0)c=c.array[b>>>a&f],a-=d;return c}}function tc(a,b,c){var e=a.__ownerID||new l(),g=a._origin,h=a._capacity;b=g+b;c=c===void 0?h:c<0?h+c:g+c;if(b===g&&c===h)return a;if(b>=c)return a.clear();var i=a._level,j=a._root,k=0;while(b+k<0)j=new jc(j&&j.array.length?[void 0,j]:[],e),i+=d,k+=1<=1<m?new jc([],e):o;if(o&&n>m&&bd;r-=d){var s=m>>>r&f;q=q.array[s]=rc(q.array[s],e)}q.array[m>>>d&f]=o}c=n)b-=n,c-=n,i=d,j=null,p=p&&p.removeBefore(e,0,b);else if(b>g||n>>i&f;if(s!==n>>>i&f)break;s&&(k+=(1<g&&(j=j.removeBefore(e,i,b-k));j&&ne&&(e=h.size);x(g)||(h=h.map(function(a){return Ia(a)}));d.push(h)}e>a.size&&(a=a.setSize(e));return Zb(a,b,d)}function vc(a){return a>>d<=e&&f.size>=d.size*2?(k=f.filter(function(a,b){return a!==void 0&&h!==b}),j=k.toKeyedSeq().map(function(a){return a[0]}).flip().toMap(),a.__ownerID&&(j.__ownerID=k.__ownerID=a.__ownerID)):(j=d.remove(b),k=h===f.size-1?f.pop():f.set(h,void 0))}else if(i){if(c===f.get(h)[1])return a;j=d;k=f.set(h,[b,c])}else j=d.set(b,f.size),k=f.set(f.size,[b,c]);if(a.__ownerID){a.size=j.size;a._map=j;a._list=k;a.__hash=void 0;return a}return xc(j,k)}b(T,Ga);function T(a){return a===null||a===void 0?Gc():Bc(a)?a:Gc().unshiftAll(a)}T.of=function(){return this(arguments)};T.prototype.toString=function(){return this.__toString("Stack [","]")};T.prototype.get=function(a,b){var c=this._head;a=o(this,a);while(c&&a--)c=c.next;return c?c.value:b};T.prototype.peek=function(){return this._head&&this._head.value};T.prototype.push=function(){if(arguments.length===0)return this;var a=this.size+arguments.length,b=this._head;for(var c=arguments.length-1;c>=0;c--)b={value:arguments[c],next:b};if(this.__ownerID){this.size=a;this._head=b;this.__hash=void 0;this.__altered=!0;return this}return Ec(a,b)};T.prototype.pushAll=function(a){a=v(a);if(a.size===0)return this;L(a.size);var b=this.size,c=this._head;a.reverse().forEach(function(a){b++,c={value:a,next:c}});if(this.__ownerID){this.size=b;this._head=c;this.__hash=void 0;this.__altered=!0;return this}return Ec(b,c)};T.prototype.pop=function(){return this.slice(1)};T.prototype.unshift=function(){return this.push.apply(this,arguments)};T.prototype.unshiftAll=function(a){return this.pushAll(a)};T.prototype.shift=function(){return this.pop.apply(this,arguments)};T.prototype.clear=function(){if(this.size===0)return this;if(this.__ownerID){this.size=0;this._head=void 0;this.__hash=void 0;this.__altered=!0;return this}return Gc()};T.prototype.slice=function(a,b){if(q(a,b,this.size))return this;var c=r(a,this.size),d=s(b,this.size);if(d!==this.size)return Ga.prototype.slice.call(this,a,b);d=this.size-c;a=this._head;while(c--)a=a.next;if(this.__ownerID){this.size=d;this._head=a;this.__hash=void 0;this.__altered=!0;return this}return Ec(d,a)};T.prototype.__ensureOwner=function(a){if(a===this.__ownerID)return this;if(!a){this.__ownerID=a;this.__altered=!1;return this}return Ec(this.size,this._head,a,this.__hash)};T.prototype.__iterate=function(a,b){if(b)return this.reverse().__iterate(a);b=0;var c=this._head;while(c){if(a(c.value,b++,this)===!1)break;c=c.next}return b};T.prototype.__iterator=function(a,b){if(b)return this.reverse().__iterator(a);var c=0,d=this._head;return new C(function(){if(d){var b=d.value;d=d.next;return D(a,c++,b)}return E()})};function Bc(a){return!!(a&&a[Cc])}T.isStack=Bc;var Cc="@@__IMMUTABLE_STACK__@@",Dc=T.prototype;Dc[Cc]=!0;Dc.withMutations=P.withMutations;Dc.asMutable=P.asMutable;Dc.asImmutable=P.asImmutable;Dc.wasAltered=P.wasAltered;function Ec(b,c,d,a){var e=Object.create(Dc);e.size=b;e._head=c;e.__ownerID=d;e.__hash=a;e.__altered=!1;return e}var Fc;function Gc(){return Fc||(Fc=Ec(0))}b(U,Ha);function U(a){return a===null||a===void 0?Mc():Hc(a)?a:Mc().withMutations(function(b){var c=w(a);L(c.size);c.forEach(function(a){return b.add(a)})})}U.of=function(){return this(arguments)};U.fromKeys=function(a){return this(u(a).keySeq())};U.prototype.toString=function(){return this.__toString("Set {","}")};U.prototype.has=function(a){return this._map.has(a)};U.prototype.add=function(a){return Jc(this,this._map.set(a,!0))};U.prototype.remove=function(a){return Jc(this,this._map.remove(a))};U.prototype.clear=function(){return Jc(this,this._map.clear())};U.prototype.union=function(){var b=a.call(arguments,0);b=b.filter(function(a){return a.size!==0});if(b.length===0)return this;return this.size===0&&!this.__ownerID&&b.length===1?this.constructor(b[0]):this.withMutations(function(a){for(var c=0;c1?" by "+this._step:"")+" ]"};Y.prototype.get=function(a,b){return this.has(a)?this._start+o(this,a)*this._step:b};Y.prototype.includes=function(a){a=(a-this._start)/this._step;return a>=0&&a=0&&ac?E():D(a,f++,g)})};Y.prototype.equals=function(a){return a instanceof Y?this._start===a._start&&this._end===a._end&&this._step===a._step:Xc(this,a)};var Yc;b(Z,H);function Z(a,b){if(!(this instanceof Z))return new Z(a,b);this._value=a;this.size=b===void 0?Infinity:Math.max(0,b);if(this.size===0){if(Zc)return Zc;Zc=this}}Z.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"};Z.prototype.get=function(a,b){return this.has(a)?this._value:b};Z.prototype.includes=function(a){return J(this._value,a)};Z.prototype.slice=function(a,b){var c=this.size;return q(a,b,c)?this:new Z(this._value,s(b,c)-r(a,c))};Z.prototype.reverse=function(){return this};Z.prototype.indexOf=function(a){return J(this._value,a)?0:-1};Z.prototype.lastIndexOf=function(a){return J(this._value,a)?this.size:-1};Z.prototype.__iterate=function(a,b){for(b=0;bthis.size?b:this.find(function(b,c){return c===a},void 0,b)},has:function(a){a=o(this,a);return a>=0&&(this.size!==void 0?this.size===Infinity||ab?-1:0}function hd(a){if(a.size===Infinity)return 0;var b=ca(a),c=y(a),d=b?1:0;a=a.__iterate(c?b?function(a,b){d=31*d+jd(K(a),K(b))|0}:function(a,b){d=d+jd(K(a),K(b))|0}:b?function(a){d=31*d+K(a)|0}:function(a){d=d+K(a)|0});return id(a,d)}function id(a,b){b=Ma(b,3432918353);b=Ma(b<<15|b>>>-15,461845907);b=Ma(b<<13|b>>>-13,5);b=(b+3864292196|0)^a;b=Ma(b^b>>>16,2246822507);b=Ma(b^b>>>13,3266489909);b=Na(b^b>>>16);return b}function jd(a,b){return a^b+2654435769+(a<<6)+(a>>2)|0}b={Iterable:t,Seq:F,Collection:Ea,Map:O,OrderedMap:S,List:Q,Stack:T,Set:U,OrderedSet:Nc,Record:W,Range:Y,Repeat:Z,is:J,fromJS:Ia};return b})}var k=!1;function l(){k||(k=!0,j());return h.exports}function a(a){switch(a){case void 0:return l()}}e.exports=a}),null); __d("immutable",["immutable-3.7.3"],(function(a,b,c,d,e,f){e.exports=b("immutable-3.7.3")()}),null);/*FB_PKG_DELIM*/ __d("LSClearTables",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(a){return b.seq([function(a){return b.fe(b.db.table(67).fetch(),function(a){return a["delete"]()})},function(a){return b.fe(b.db.table(66).fetch(),function(a){return a["delete"]()})},function(a){return b.fe(b.db.table(65).fetch(),function(a){return a["delete"]()})},function(a){return b.fe(b.db.table(69).fetch(),function(a){return a["delete"]()})}])},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSInsertRankingContacts",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("limit",a[0]),d[1]=c.createArray(),d[4]=(d[1].push("search_contacts"),d[1]),d[4]=(d[1].push(c.i64.to_string(c.i64.of_float(Date.now()))),d[1]),d[2]=c.toJSON(d[1]),d[3]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),d[2],[0,452],d[3],f,f,[0,0],[0,0],f,f,[0,0])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSIssueSearchQuery",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.db.table(67).fetch([[[a[0]]]]).next().then(function(e,g){g=e.done;e=e.value;return g?c.seq([function(b){return c.db.table(67).add({query:a[0],statusPrimary:[0,1],statusSecondary:[0,1],startTimeMs:c.i64.of_float(Date.now())})},function(e){return d[1]=new c.Map(),d[1].set("query",a[0]),d[1].set("supported_types",a[1]),d[1].set("session_id",a[2]),d[1].set("surface_type",a[3]),d[1].set("group_id",a[4]),d[1].set("thread_id",a[5]),d[2]=c.createArray(),d[7]=(d[2].push("search_primary"),d[2]),d[7]=(d[2].push(c.i64.to_string(c.i64.of_float(Date.now()))),d[2]),d[3]=c.toJSON(d[2]),d[4]=c.toJSON(d[1]),c.sp(b("LSIssueNewTask"),d[3],[0,30],d[4],f,f,[0,0],[0,0],f,f,[0,0])},function(e){return d[5]=new c.Map(),d[5].set("query",a[0]),d[5].set("supported_types",a[1]),d[5].set("session_id",a[2]),d[5].set("surface_type",a[3]),d[5].set("group_id",a[4]),d[5].set("thread_id",a[5]),d[6]=c.toJSON(d[5]),c.sp(b("LSIssueNewTask"),"search_secondary",[0,31],d[6],f,f,[0,0],[0,0],f,f,[0,0])}]):(e.item,0)})},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSMessageSearchType.bs",["bs_caml_int64"],(function(a,b,c,d,e,f){"use strict";a=b("bs_caml_int64").one;c=[0,2];f.thread=a;f.message=c}),null); __d("LSSearchRequestStatusType.bs",["bs_caml_int64"],(function(a,b,c,d,e,f){"use strict";a=b("bs_caml_int64").one;c=[0,2];d=[0,3];f.pending=a;f.complete=c;f.failed=d}),null); __d("MWLSParticipant.bs",["LSContactBlockedByViewerStatus.bs","LSContactGender.bs","LSContactType.bs","LSContactWorkForeignEntityType.bs","LSMailboxType.bs","LSMediaUrl.bs","MWLSContactTypeExactUtils.bs","ReQL.bs","bs_belt_Option","bs_caml_int64"],(function(a,b,c,d,e,f,g){"use strict";e={actual_name:"",blocked_by_viewer_status:d("LSContactBlockedByViewerStatus.bs").unblocked,contact_id:c("bs_caml_int64").zero,contactType:d("LSContactType.bs").unknown,delivered_watermark_timestamp_ms:c("bs_caml_int64").zero,gender:d("LSContactGender.bs").unknown,is_admin:!1,is_messenger_user:!1,mailbox_type:d("LSMailboxType.bs").messenger,name:"",nickname:void 0,profile_picture_url:"",rank:0,read_action_timestamp_ms:c("bs_caml_int64").zero,read_watermark_timestamp_ms:c("bs_caml_int64").zero,secondary_name:void 0,thread_key:c("bs_caml_int64").zero,work_company_name:void 0,work_foreign_entity_info:d("LSContactWorkForeignEntityType.bs").unknown,work_job_title:void 0};function h(a){var b=a[1];a=a[0];var e=a.nickname;if(e!==void 0)e=e;else{var f=b.firstName;e=f!==void 0?f:b.name}return{actual_name:b.name,blocked_by_viewer_status:b.blockedByViewerStatus,contact_id:a.contactId,contactType:b.contactType,delivered_watermark_timestamp_ms:a.deliveredWatermarkTimestampMs,gender:b.gender,is_admin:c("bs_belt_Option").getWithDefault(a.isAdmin,!1),is_messenger_user:b.isMessengerUser,mailbox_type:d("LSMailboxType.bs").messenger,name:e,nickname:a.nickname,profile_picture_url:d("LSMediaUrl.bs").Contact.profilePictureUrl(b),rank:b.rank,read_action_timestamp_ms:a.readActionTimestampMs,read_watermark_timestamp_ms:a.readWatermarkTimestampMs,secondary_name:d("MWLSContactTypeExactUtils.bs").isIgContact(b)?b.secondaryName:void 0,thread_key:a.threadKey,work_company_name:b.workCompanyName,work_foreign_entity_info:b.workForeignEntityType,work_job_title:b.workJobTitle}}function a(a,b,c){return d("ReQL.bs").map(d("ReQL.bs").mergeJoin(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(a.table("participants")),{hd:c,tl:0}),b),h)}function b(a,b){return d("ReQL.bs").getKeyRange(a,{hd:b,tl:0})}f=e;e=h;a=a;b=b;g.empty=f;g.projectOpen=e;g.getAllInOpenThread=a;g.getInOpenThread=b}),98); __d("MWLSThreadTitle.bs",["fbt","LSMessagingThreadTypeUtil.bs","bs_caml","bs_curry","gkx"],(function(a,b,c,d,e,f,g,h){"use strict";function i(a){var b=a.length,d=a.length;return(d!==1?d!==0?b===2?h._("__JHASH__CYtAjqXrfJL__JHASH__",[h._param("participant1",a[0]),h._param("participant2",a[1])]):b===3?h._("__JHASH__0GwsaOqt1zM__JHASH__",[h._param("participant1",a[0]),h._param("participant2",a[1]),h._param("participant3",a[2])]):h._("__JHASH__-HjU-GfOUIJ__JHASH__",[h._param("participant1",a[0]),h._param("participant2",a[1]),h._param("others_count",String(b-2|0))]):c("gkx")("1341692")?h._("__JHASH__ypNvBdrcgnu__JHASH__"):h._("__JHASH__v1-lXqbvI1-__JHASH__"):a[0]).toString()}var j=c("gkx")("1846003");function k(a){var b=a.actual_name;a=a.nickname;if(a!==void 0&&j)return a;else return b}function l(a){var b=a.name;a=a.nickname;if(a!==void 0&&j)return a;else return b}function m(a,b,e,f,g,h){f=d("LSMessagingThreadTypeUtil.bs").isGroup(f);var j=e.filter(function(a){return c("bs_caml").i64_neq(a.contact_id,b)});if(a!==void 0)return a;else if(f)return i(j.map(c("bs_curry").__1(g)));else if(e.length!==1)return i(j.map(c("bs_curry").__1(h)));else return c("bs_curry")._1(h,e[0])}function a(a,b,c,d){return m(a,b,c,d,l,k)}function b(a,b,c,d){var e=function(a){return a.actual_name};return m(a,b,c,d,e,e)}g.getTitleFromParticipants=i;g.nicknamesEnabled=j;g.internalMake=m;g.make=a;g.makeFullName=b}),98); __d("MWInboxSecureContentSearch.bs",["fbt","LSMediaUrl.bs","LSMessageSearchType.bs","LSSearchRequestStatusType.bs","MAWBackendBridge.bs","MAWThreadId.bs","MAWTimeUtils","MWLSParticipant.bs","MWLSThreadTitle.bs","Promise","ReQL.bs","bs_belt_Array","bs_caml","bs_caml_int64","bs_curry","bs_int64","bs_js_dict","groupBy"],(function(a,b,c,d,e,f,g,h){"use strict";function i(a,c){return d("MAWThreadId.bs").toThreadKey_DEPRECATED(c,a.chatId).then(function(e){return b("Promise").all([d("ReQL.bs").first(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(c.table("threads")),{hd:e,tl:0})),b("Promise").resolve(a)])})}function j(a,e,f){var g=d("LSMediaUrl.bs").Thread.threadPictureUrl(a);if(g!==void 0)return b("Promise").resolve([g,void 0]);else return d("ReQL.bs").toArray(d("ReQL.bs").map(d("ReQL.bs").leftJoin(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(f.table("participants")),{hd:a.threadKey,tl:0}),d("ReQL.bs").fromTableAscending(f.table("contacts"))),function(a){return a[1]})).then(function(a){a=c("bs_belt_Array").keepMap(a,function(a){return a}).sort(function(a,b){return a.rank-b.rank}).filter(function(a){return c("bs_caml").i64_neq(a.id,e)}).map(function(a){return d("LSMediaUrl.bs").Contact.profilePictureUrl(a)});var f=a[0];a=a[1];if(f!==void 0)if(a!==void 0)return b("Promise").resolve([f,a]);else return b("Promise").resolve([f,void 0]);else return b("Promise").resolve(["",void 0])})}function k(a,b,c){if(a===1||c===d("LSMessageSearchType.bs").message)return b.content;else return h._("__JHASH__MOcENwPdyTO__JHASH__",[h._plural(a,"number")]).toString()}function l(a,b){return d("ReQL.bs").toArray(d("MWLSParticipant.bs").getAllInOpenThread(b,d("ReQL.bs").fromTableAscending(b.table("contacts")),a.threadKey))}function m(a,e,f,g,h,m){return m.runInTransaction(function(n){return i(a,n).then(function(a){var i=a[0];if(i===void 0)return b("Promise").resolve();var o=a[1];if(o!==void 0)return b("Promise").all([j(i,h,m),l(i,m)]).then(function(a){var j=a[0],l=o.content;return b("Promise").all([n.table("message_search_queries").put({hasNextPage:void 0,nextPageCursor:void 0,query:f,resultCount:c("bs_caml_int64").of_int32(e),status:d("LSSearchRequestStatusType.bs").complete,threadKeyV2:i.threadKey,type_:g}),n.table("message_search_results").put({contextLine:k(e,o,g),displayName:d("MWLSThreadTitle.bs").make(i.threadName,h,a[1],i.threadType),globalIndex:c("bs_caml_int64").of_int32(-o.rowId|0),matchLengths:String(f.length),matchOffsets:l!==void 0?String(l.indexOf(f)):void 0,messageId:o.msgId,messageTimestampMs:d("MAWTimeUtils").toTimestamp(o.ts),profilePicUrl:j[0],query:f,secondaryProfilePicUrl:j[1],threadKey:i.threadKey,threadType:i.threadType,type_:g})]).then(function(a){})});else return b("Promise").resolve()})},"readwrite")}function n(a,e){return c("bs_curry")._1(d("MAWBackendBridge.bs").search({search:e}).sendAndReceive).then(function(c){var e=[];for(var f=0,g=c.length;f0)return 1;else return 0}function j(a){return a.sort(function(a,b){b=b[0];var c=b[1];b=b[0];a=a[0];var d=a[1];a=a[0];if(b.score!==a.score)return i(b.score-a.score);else if(d!==void 0)if(c!==void 0)return i(c.rank-d.rank);else return-1;else if(c!==void 0)return 1;else return 0})}function k(a){var b=d("MWLSContactTypeExactUtils.bs").isIgContact(a);a=a.contactViewerRelationship;if(b)if(c("bs_caml").i64_eq(a,d("LSContactViewerRelationship.bs").notContact))return d("LSSearchType.bs").igNoncontactFollowing;else if(c("bs_caml").i64_eq(a,d("LSContactViewerRelationship.bs").contactOfViewer))return d("LSSearchType.bs").igContactFollowing;else return d("LSSearchType.bs").igNoncontactNonfollowing;else return d("LSSearchType.bs").contact}function l(a){var b=[];a.forEach(function(a,e){var f=a[1];a=a[0];var g=a[1];a=a[0];f=f!==void 0?f.e2eeEligibility:void 0;if(g===void 0)return;var h=a.contactType,i;if(!c("gkx")("3711")&&c("bs_belt_Option").getWithDefault(d("LSContactBitOffset.bs").has(d("LSContactCapabilityBitOffset.bs").hasCutoverThread,g),!1))i=d("MessagingThreadType.bs").secureMessageOverWaOneToOne;else{a=a.contactType;i=c("bs_caml").i64_eq(a,d("MNetContactItemType.bs").group)?d("MessagingThreadType.bs").group:d("MessagingThreadType.bs").oneToOne}a=g.secondaryName;var j=c("bs_int64").to_string(g.id);e=c("bs_caml_int64").of_int32(e);h=c("bs_caml").i64_eq(h,d("MNetContactItemType.bs").contact)?k(g):c("bs_caml").i64_eq(h,d("MNetContactItemType.bs").group)?d("LSSearchType.bs").group:c("bs_caml").i64_eq(h,d("MNetContactItemType.bs").page)?d("LSSearchType.bs").page:c("bs_caml").i64_eq(h,d("MNetContactItemType.bs").nonContact)?d("LSSearchType.bs").noncontact:c("bs_caml").i64_eq(h,d("MNetContactItemType.bs").igThread)||c("bs_caml").i64_eq(h,d("MNetContactItemType.bs").interopThread)||c("bs_caml").i64_eq(h,d("MNetContactItemType.bs").msgrThread)?d("LSSearchType.bs").integratedMessageSearchThread:c("bs_caml").i64_eq(h,d("MNetContactItemType.bs").igUser)?d("LSSearchType.bs").igContactFollowing:c("bs_caml").i64_eq(h,d("MNetContactItemType.bs").bot)||c("bs_caml").i64_eq(h,d("MNetContactItemType.bs").game)||c("bs_caml").i64_eq(h,d("MNetContactItemType.bs").sticker)?d("LSSearchType.bs").page:d("LSSearchType.bs").noncontact;var l=g.name,m=d("LSMediaUrl.bs").Contact.profilePictureUrl(g);a=a!==void 0?a:"";var n=g.blockedByViewerStatus,o=d("LSContactBitOffset.bs").has(d("LSContactCapabilityBitOffset.bs").verified,g),p=d("MWLSContactTypeExactUtils.bs").isIgContact(g)?d("LSContactBitOffset.bs").has(d("LSContactCapabilityBitOffset.bs").isXacEligible,g):void 0,q=d("LSContactBitOffset.bs").has(d("LSContactCapabilityBitOffset.bs").isGroupsXacEligible,g),r=c("bs_caml").i64_eq(g.waConnectStatus,d("LSWhatsAppConnectStatus.bs").whatsappAddressable);n={blockedByViewerStatus:n,canViewerMessage:void 0,communityId:void 0,contextLine:a,displayName:l,globalIndex:e,isArmadilloTlcEligible:void 0,isEligibleForCmInvite:void 0,isGroupsXacEligible:q,isInteropEligible:p,isInvitedToCmChannel:void 0,isVerified:o,isWaAddressable:r,messageId:void 0,messageTimestampMs:void 0,otherUserId:void 0,profilePicUrl:m,query:"",restrictionType:void 0,resultId:j,secondaryProfilePicUrl:void 0,threadJoinLinkHash:void 0,threadType:i,type_:h,waEligibility:f};a=d("MWChatTemporarySearchResult.bs").fromServerSearchResult(n,void 0,"offline_nullstate");b.push([a,g])});return b}function m(a,b){return d("ReQL.bs").leftJoin(d("ReQL.bs").leftJoin(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromIndexAscending(a.table("ranking_scores").index("scoreTypeContactId")),{hd:b,tl:0}),d("ReQL.bs").fromTableAscending(a.table("contacts"))),d("ReQL.bs").fromTableAscending(a.table("ig_contact_info")))}function n(a,b){var e=a!==void 0?a:d("MNetRankType.bs").messengerUserSearchNullstate,f=c("useReStore")(),g=d("ReQLSubscription.bs").useArray(h.useMemo(function(){return m(f,e)},[e,f]));return h.useMemo(function(){return l(j(g))},[g])}function a(a){var b=d("MWLSDatabaseLazySync.bs").useSync(d("LSDatabaseType.bs").ranking);a=n(d("MNetRankType.bs").inboxActiveNow);h.useEffect(function(){c("bs_curry")._1(b)},[b]);return a.length}function e(a,c){var e=a!==void 0?a:d("MNetRankType.bs").messengerUserSearchNullstate;return d("LSPlatformClientSingleton.bs").getDB().then(function(a){return d("ReQL.bs").toArray(m(a,e))}).then(function(a){return b("Promise").resolve(l(j(a)))})}f=j;var o=k,p=l,q=m,r=n;a=a;e=e;g.sortInPlaceQueryResults=f;g.matchContactType=o;g.mapToServerSearchResults=p;g.makeQuery=q;g.useHook=r;g.useActiveContactCount=a;g.fetchRecommendations=e}),98); __d("MWChatSearchFetchThreadRecommendations.bs",["LSMessagingThreadTypeUtil.bs","LSPlatformClientSingleton.bs","MWInboxSecureContentSearch.bs","MWLSThreadTitle.bs","Promise","ReQL.bs","bs_belt_Option","bs_caml_int64","bs_int64"],(function(a,b,c,d,e,f,g){"use strict";function h(a,b,e,f,g,h,i,j){return{canViewerMessage:void 0,communityId:void 0,displayName:d("MWLSThreadTitle.bs").make(a.threadName,e,h,a.threadType),id:c("bs_int64").to_string(a.threadKey),imageUrl:f,isContact:!1,isE2e:d("LSMessagingThreadTypeUtil.bs").isSecure(a.threadType),isEligibleForCmInvite:void 0,isEPD:!1,isGroupsXacEligible:void 0,isInstagramAccount:!1,isInteropEligible:void 0,isInvitedToCmChannel:void 0,isVerified:!1,isWAEligible:void 0,otherUserId:void 0,rankingScore:i,restrictionType:void 0,resultType:j?"group":"user",searchSource:b,secondaryImageUrl:g,section:"",serverSearchResult:void 0,subtext:c("bs_belt_Option").getWithDefault(a.threadDescription,""),threadJoinLinkHash:void 0,threadKey:a.threadKey,threadType:void 0,waAddressable:void 0,waEligibility:void 0}}function i(a,e,f){return b("Promise").all([d("MWInboxSecureContentSearch.bs").getThreadPics(f,e,a),d("MWInboxSecureContentSearch.bs").getThreadParticipants(f,a)]).then(function(a){var b=a[0],g=c("bs_caml_int64").to_float(f.lastActivityTimestampMs);g={contactId:c("bs_caml_int64").zero,contactType:c("bs_caml_int64").zero,score:g,scoreIndex:c("bs_caml_int64").zero,scoreType:c("bs_caml_int64").zero};var i=d("LSMessagingThreadTypeUtil.bs").isGroup(f.threadType);return h(f,"offline_nullstate",e,b[0],b[1],a[1],g,i)})}function j(a,c,d){var e=[];c.forEach(function(b,c){c=i(a,d,b);e.push(c)});return b("Promise").all(e).then(function(a){return a})}function k(a){return d("ReQL.bs").toArray(d("ReQL.bs").take(d("ReQL.bs").filter(d("ReQL.bs").fromIndexDescending(a.table("threads").index("parentThreadKeyLastActivityTimestampMs")),function(a){if(d("LSMessagingThreadTypeUtil.bs").isRecentsSectionAllowedTypes(a.threadType))return d("LSMessagingThreadTypeUtil.bs").isMessengerOrE2EEInbox(a.folderName);else return!1}),5))}function l(a){return d("ReQL.bs").firstExn(d("ReQL.bs").map(d("ReQL.bs").fromTableAscending(a.table("_user_info")),function(a){return a.facebookUserId}))}function m(a){return b("Promise").all([k(a),l(a)]).then(function(b){return j(a,b[0],b[1])}).then(function(a){return b("Promise").resolve(a)})}function a(a,c){return d("LSPlatformClientSingleton.bs").getDB().then(m).then(function(a){return b("Promise").resolve(a)})}e=h;f=i;var n=j,o=k,p=l,q=m;a=a;g.toSearchresult=e;g.mapThreadHelper=f;g.mapToServerSearchResults=n;g.makeThreadQuery=o;g.getActor=p;g.fetchThreadsAsSearchResults=q;g.fetchRecommendations=a}),98); __d("MWChatSearchIssueLightspeedQuery.bs",["LS.bs","LSContactBlockedByViewerStatus.bs","LSIssueSearchQuery","LSPlatformClientSingleton.bs","LSPlatformWaitForTaskCompletion","LSSearchGranularSurfaceType.bs","LSSearchRequestStatusType.bs","LSSearchType.bs","LSVec","MNetRankType.bs","MWChatSearchFetchContactRecommendations.bs","MWChatSearchFetchThreadRecommendations.bs","MWChatTemporarySearchResult.bs","Promise","ReQL","ReQLSubscription.bs","bs_caml","bs_caml_exceptions","bs_curry","bs_int64","gkx","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h=c("bs_caml_exceptions").create("MWChatSearchIssueLightspeedQuery.FailedToFetchSearchResults"),i=c("gkx")("4164");function a(a){return c("bs_caml").i64_eq(a,d("LSSearchType.bs").contact)}function j(a,b){var e=a[1];a=a[0];var f=[],g=0;a.sort(function(a,b){return c("bs_int64").compare(a.globalIndex,b.globalIndex)});e.sort(function(a,b){return c("bs_int64").compare(a.globalIndex,b.globalIndex)});for(var h=0,i=a.length;h0&&!e.includes("server"))return b("Promise").resolve([]);else return d("LSPlatformClientSingleton.bs").getDB().then(function(b){return c("LSPlatformWaitForTaskCompletion")(b,function(b){return c("LSIssueSearchQuery")(h.query,c("LSVec").make(a),void 0,f,void 0,void 0,d("LS.bs").make(b))},"issueSearchQuery").then(function(a){return b})}).then(function(a){var e,f,i;return b("regeneratorRuntime").async(function(k){while(1)switch(k.prev=k.next){case 0:e=d("ReQL").toArrayAsync(d("ReQL").fromTableAscending(a.table("server_search_results")).getKeyRange(h.query).filter(function(a){return c("bs_caml").i64_eq(a.blockedByViewerStatus,d("LSContactBlockedByViewerStatus.bs").unblocked)}));f=d("ReQL").toArrayAsync(d("ReQL").fromTableAscending(a.table("server_search_sections")).getKeyRange(h.query));k.next=4;return b("regeneratorRuntime").awrap(b("Promise").all([f,e]));case 4:i=k.sent;return k.abrupt("return",j(i,g));case 6:case"end":return k.stop()}},null,this)})}function f(a,c,e,f){return d("MWChatSearchFetchContactRecommendations.bs").fetchRecommendations(f).then(function(a){return b("Promise").resolve(a.map(function(a){return a[0]}))})}function n(a,c,e,f){return d("MWChatSearchFetchThreadRecommendations.bs").fetchRecommendations(f).then(function(a){return b("Promise").resolve(a)})}function o(a,b,e,f){var g=d("ReQL").fromTableAscending(a.table("server_search_results")).getKeyRange(b).filter(function(a){return c("bs_caml").i64_eq(a.blockedByViewerStatus,d("LSContactBlockedByViewerStatus.bs").unblocked)}),h=d("ReQL").fromTableAscending(a.table("server_search_sections")).getKeyRange(b);b=d("ReQL").fromTableAscending(a.table("search_queries")).getKeyRange(b);return d("ReQLSubscription.bs").combineLatest3(a,g,h,b,function(a){var b=a[0],g=a[1];a=a[2];if(b===void 0||g===void 0||a===void 0)return;if(a.length!==1)return;(!i||c("bs_caml").i64_neq(a[0].statusPrimary,d("LSSearchRequestStatusType.bs").pending))&&f(j([g,b],e))})}function p(a,b,c,d,e,f){m(b,c,e);return o(a,e.query,d,f)}function q(a,b,e,f,g,h){m(b,f,g);e=d("MWChatSearchFetchContactRecommendations.bs").makeQuery(a,d("MNetRankType.bs").messengerUserSearchNullstate);b=function(a){if(a!==void 0)return c("bs_curry")._1(h,d("MWChatSearchFetchContactRecommendations.bs").mapToServerSearchResults(d("MWChatSearchFetchContactRecommendations.bs").sortInPlaceQueryResults(a)).map(function(a){return a[0]}))};return d("ReQLSubscription.bs").subscribe(a,e,b)}var r=i;a=a;var s=j;k=k;l=l;e=e;f=f;n=n;q=q;g.FailedToFetchSearchResults=h;g.subscribe=o;g.requestResults=p;g.loaderIndicatorFix=r;g.checkIsContact=a;g.toSearchResults=s;g.contentSearchTypes=k;g.Surfaces=l;g.fetchResults=e;g.fetchRecommendations=f;g.fetchThreadRecommendations=n;g.requestRecommendations=q}),98); __d("MWChatSearchInsertRankingContacts.bs",["LS.bs","LSInsertRankingContacts","bs_caml","bs_caml_int64","gkx","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h={contents:!1},i={contents:!1},j=c("gkx")("4164")?[0,100]:c("bs_caml_int64").zero;function a(a){if(!h.contents&&c("bs_caml").i64_gt(j,c("bs_caml_int64").zero)){h.contents=!0;c("promiseDone")(a.runInTransaction(function(a){return c("LSInsertRankingContacts")(j,d("LS.bs").make(a))},"readwrite"),function(a){i.contents=!0});return}}function b(a){return i.contents}g.rankingContactsStarted=h;g.rankingContactsDone=i;g.numRankingContacts=j;g.insertRankingContacts=a;g.isDone=b}),98); __d("MWLSUseSyncRankings.bs",["LSDatabaseType.bs","MWLSDatabaseLazySync.bs","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return d("MWLSDatabaseLazySync.bs").useSync(d("LSDatabaseType.bs").ranking)}var h={contents:!1},i={contents:!1};function b(a){if(!h.contents){h.contents=!0;c("promiseDone")(d("MWLSDatabaseLazySync.bs").sync(a,d("LSDatabaseType.bs").ranking),function(a){i.contents=!0});return}}function e(a){return i.contents}g.useHook=a;g.rankingSyncStarted=h;g.rankingSyncDone=i;g.sync=b;g.isDone=e}),98); __d("MWPSearchIndexingSource.bs",["MessagingThreadType.bs","ReQL.bs","ReQLSuspense","SortedAsyncIterable.bs","bs_caml","bs_curry"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return d("ReQL.bs").toArray(d("ReQL.bs").fromTableAscending(a.table("contacts")))}function b(a,b){return d("SortedAsyncIterable.bs").subscribe(d("ReQL.bs").fromTableAscending(a.table("contacts")),function(a,d){return c("bs_curry")._2(b,a.hd,d)})}function e(a){return d("ReQL.bs").toArray(d("ReQL.bs").filter(d("ReQL.bs").fromTableAscending(a.table("threads")),function(a){return c("bs_caml").i64_eq(a.threadType,d("MessagingThreadType.bs").group)}))}function f(a,b){return d("SortedAsyncIterable.bs").subscribe(d("ReQL.bs").filter(d("ReQL.bs").fromTableAscending(a.table("threads")),function(a){return c("bs_caml").i64_eq(a.threadType,d("MessagingThreadType.bs").group)}),function(a,d){return c("bs_curry")._2(b,a.hd,d)})}function h(a,b){return d("ReQL.bs").toArray(d("ReQL.bs").map(d("ReQL.bs").filter(d("ReQL.bs").fromTableAscending(b.table("participants")),function(b){return c("bs_caml").i64_neq(b.contactId,a)}),function(a){return[a,d("ReQLSuspense").first(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(b.table("contacts")),{hd:a.contactId,tl:0}))]}))}function i(a,b,e){return d("SortedAsyncIterable.bs").subscribe(d("ReQL.bs").filter(d("ReQL.bs").fromTableAscending(b.table("participants")),function(b){return c("bs_caml").i64_neq(b.contactId,a)}),function(a,b){return c("bs_curry")._3(e,a.hd,a.tl.hd,b)})}a=a;b=b;e=e;f=f;h=h;i=i;g.fetchContacts=a;g.subToContacts=b;g.fetchGroupThreads=e;g.subToGroupThreads=f;g.fetchGroupParticipants=h;g.subToGroupParticipants=i}),98); __d("MWPSearchSystem.bs",["CurrentUser","JSScheduler","LS.bs","LSClearTables","MWChatSearchInsertRankingContacts.bs","MWLSUseSyncRankings.bs","MWPSearchIndexingSource.bs","Promise","bs_caml_format","bs_caml_option","bs_curry","cr:3072","cr:4228","promiseDone","qex","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h={contents:!1},i={contents:!1},j={contents:!1},k=c("qex")._("84"),l=k==null?!1:k,m=b("cr:4228")==null?void 0:c("bs_caml_option").some(b("cr:4228")),n=b("cr:3072")==null?void 0:c("bs_caml_option").some(b("cr:3072"));function a(a){if(!j.contents){j.contents=!0;d("JSScheduler").scheduleSpeculativeCallback(function(){d("MWChatSearchInsertRankingContacts.bs").insertRankingContacts(a);d("MWLSUseSyncRankings.bs").sync(a);if(n!==void 0||m!==void 0){var e=c("bs_caml_format").caml_int64_of_string(c("CurrentUser").getID());if(!h.contents){h.contents=!0;c("promiseDone")(b("Promise").all([d("MWPSearchIndexingSource.bs").fetchContacts(a),l?d("MWPSearchIndexingSource.bs").fetchGroupThreads(a):b("Promise").resolve([]),l?d("MWPSearchIndexingSource.bs").fetchGroupParticipants(e,a):b("Promise").resolve([])]).then(function(d){var e=d[0];b("cr:3072")==null||c("bs_curry")._4(b("cr:3072").startInitialIndex,a,e,d[1],d[2]);if(!(b("cr:4228")==null))return c("bs_curry")._2(b("cr:4228").startInitialIndex,a,e)}),function(a){i.contents=!0},function(a){c("recoverableViolation")("Error indexing contacts for search","messenger_search",{error:c("bs_caml_option").some(a)})});d("MWPSearchIndexingSource.bs").subToContacts(a,function(a,d){b("cr:4228")==null||c("bs_curry")._2(b("cr:4228").onContactChanged,a,d);if(!(b("cr:3072")==null))return c("bs_curry")._2(b("cr:3072").onContactChanged,a,d)});if(l){d("MWPSearchIndexingSource.bs").subToGroupThreads(a,function(a,d){if(!(b("cr:3072")==null))return c("bs_curry")._2(b("cr:3072").onGroupThreadChanged,a,d)});d("MWPSearchIndexingSource.bs").subToGroupParticipants(e,a,function(d,e,f){if(!(b("cr:3072")==null))return c("bs_curry")._4(b("cr:3072").onGroupParticipantChanged,a,d,e,f)});return}else return}else return}});return}}function e(a){return a.runInTransaction(function(a){return c("LSClearTables")(d("LS.bs").make(a))},"readwrite")}function f(a){if(d("MWLSUseSyncRankings.bs").isDone()&&d("MWChatSearchInsertRankingContacts.bs").isDone())return i.contents;else return!1}g.$MWPSearchOpenIndexer$requireCond=b("cr:3072");g.$MWPSearchSecureIndexer$OR$null$requireCondXplat=b("cr:4228");g.initialIndexingStarted=h;g.initialIndexingDone=i;g.makeAllStarted=j;g.makeAll=a;g.clearAll=e;g.isDone=f}),98); __d("mwStaticSearchEntries",["fbt"],(function(a,b,c,d,e,f,g,h){"use strict";function a(a){var b=h._("__JHASH__--dZZ_HGKAA__JHASH__",[h._param("query_value",a)]);return{key:a,label:b,rawData:{displayName:b,id:a,imageUrl:"",isContact:!1,isE2e:!1,isEPD:!1,resultType:"messages",secondaryImageUrl:"",subtext:""},type:"entry"}}g.createMessageSearchEntry=a}),98); __d("sortMWChatSearchLocalEntries",[],(function(a,b,c,d,e,f){"use strict";var g={group:1,message:2,messages:3,page:4,user:0};function a(a){var b={};for(var c=0;c=b.length)break;j=b[i++]}else{i=b.next();if(i.done)break;j=i.value}j=j;g.has(j.key)||(f.push(j),g.add(j.key))}j=k?f.filter(function(a){var b=a.key;a=a.rawData;return a.resultType!==c("MWChatSearchResultType").USER||a.searchSource==="offline_nullstate"?!0:!d("MWChatSearchThreadCutover").isCutoverOpenThread(e.$4,b)}):f;i={entries:j,params:a};h=c("mwChatSearchPayloadDecoratorRemoveExcluded")(this.$1);return c("mwChatSearchPayloadEnumerate")(h(i))};e.fetchNetwork=function(a){var e=this;this.$5();return c("relay-runtime/network/RelayObservable").create(function(f){if(a.query.length===0&&!e.$6){f.next({entries:[],params:a});f.complete();return}if(a.query.length===0){e.$5=d("MWChatSearchIssueLightspeedQuery.bs").requestRecommendations(e.$4,e.$2,e.$7,e.$3,a,function(b){f.next(e.resolveData(a,b)),f.complete()});return}var g=[],k=[],l=!1,m=b("Promise").allSettled([b("cr:10864")!=null?b("cr:10864").fetchResults(e.$2,e.$3,e.$7,a):b("Promise").resolve([]),b("cr:3071")!=null&&(e.$3!==d("MWChatSearchIssueLightspeedQuery.bs").Surfaces.broadcast||h)?b("cr:3071").search(a.query,e.$7):b("Promise").resolve([])]).then(function(b){var d=b[0];b=b[1];d=d.status==="fulfilled"?d.value:[];b=b.status==="fulfilled"?b.value:[];b=i<=0?b:b.slice(0,i);d=j<=0?d:d.slice(0,j);g=b.concat(d);g=c("sortMWChatSearchLocalEntries")(g);l||f.next(e.resolveData(a,g.concat(k)))})["catch"](function(a){c("FBLogger")("messenger_search").catching(a).mustfix("Error performing MWChatSearchIssueMAWFTSQuery.fetchResults")}),n=d("MWChatSearchIssueLightspeedQuery.bs").requestResults(e.$4,e.$2,e.$3,e.$7,a,function(h){k=h;h=a.query.length>0&&d("MWPSearchSystem.bs").isDone()?m:b("Promise").resolve();c("promiseDone")(h["finally"](function(){f.next(e.resolveData(a,g.concat(k))),f.complete()}))});e.$5=function(){n(),l=!0}})};e.setExcludedIds=function(a){this.$1=a};return a}();g["default"]=e}),98); __d("MWChatSearchClearSearchResults.bs",["LS.bs","LSClearTables","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=c("useReStore")();return h.useCallback(function(a){a=b.runInTransaction(function(a){return c("LSClearTables")(d("LS.bs").make(a))},"readwrite");c("promiseDone")(a)},[b])}g.useHook=a}),98); __d("mwGroupEntriesForDisplay",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b=new Map();for(var a=a,c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e,f,g;if(c){if(d>=a.length)break;g=a[d++]}else{d=a.next();if(d.done)break;g=d.value}g=g;e=(e=g.rawData.section)!=null?e:"";f=(f=b.get(e))!=null?f:[];f.push(g);b.set(e,f)}return b}f.mwGroupEntriesForDisplay=a}),66); __d("MWChatSearchLightspeedTypeaheadViewList.react",["TetraText.react","getItemRoleFromCompositeRole","mwGroupEntriesForDisplay","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useMemo;function j(a){var b=a.activeEntryKey,d=a.children,e=a.entries,f=a.itemRole;a=a.title;return e!=null&&e.length>0?h.jsxs("li",{className:"xexx8yu xsyo7zv x18d9i69 x16hj40l",children:[a?h.jsx("div",{className:"x1y1aw1k x1sxyh0 xwib8y2 xurb0ha",children:h.jsx(c("TetraText.react"),{type:"entityHeaderMeta1",children:a})}):null,h.jsx("ul",{children:e.map(function(a,c){var e=b===a.key;return d({entry:a,index:c,isActive:e,itemRole:f})})})]}):null}function a(a){var b=a.ariaProps,e=a.children,f=a.entries,g=a.highlightedEntry;a=babelHelpers.objectWithoutPropertiesLoose(a,["ariaProps","children","entries","highlightedEntry"]);var k=g!=null?g.key:null;a=i(function(){return d("mwGroupEntriesForDisplay").mwGroupEntriesForDisplay(f)},[f]);var l=c("getItemRoleFromCompositeRole")(b.role);return h.jsx("ul",{"data-testid":void 0,role:"listbox",children:Array.from(a.entries()).map(function(a){var b=a[0];a=a[1];return h.jsx(j,{activeEntryKey:k,children:e,entries:a,itemRole:l,title:b},b)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPSearchOfflineOpenConversations",["minisearch"],(function(a,b,c,d,e,f,g){"use strict";var h=new(c("minisearch"))({fields:["content"],searchOptions:{fuzzy:.2,prefix:!0},storeFields:["category"]});function a(a){return h.search(a)}function b(a){h.add(a)}function d(a){h.remove(a)}g.search=a;g.add=b;g.remove=d}),98); __d("bs_belt_SortArray",["bs_belt_Array","bs_curry"],(function(a,b,c,d,e,f){"use strict";function g(a,b,c,d,e){while(!0){var f=c,g=b;if(f>=d)return f;var h=a[f];if(!e(h,g))return f;c=f+1|0;b=h;continue}}function h(a,b){var c=a.length;if(c===0||c===1)return c;var d=a[0],e=a[1];if(b(d,e)){var f=e,h=2;while(!0){var i=h,j=f;if(i>=c)return i;var k=a[i];if(!b(j,k))return i;h=i+1|0;f=k;continue}}else if(b(e,d))return-g(a,e,2,c,b)|0;else return 1}function a(a,c){return h(a,b("bs_curry").__2(c))}function i(a,b){var c=a.length;if(c===0)return!0;else{var d=0;c=c-1|0;while(!0){var e=d;if(e===c)return!0;if(b(a[e],a[e+1|0])>0)return!1;d=e+1|0;continue}}}function c(a,c){return i(a,b("bs_curry").__2(c))}function j(a,c,d,e,f,g,h,i,j){d=c+d|0;g=f+g|0;var k=c;c=a[c];var l=f;f=e[f];i=i;while(!0){var m=i,n=f,o=l,p=c,q=k;if(j(p,n)<=0){h[m]=p;p=q+1|0;if(p>=d)return b("bs_belt_Array").blitUnsafe(e,o,h,m+1|0,g-o|0);i=m+1|0;c=a[p];k=p;continue}h[m]=n;p=o+1|0;if(p>=g)return b("bs_belt_Array").blitUnsafe(a,q,h,m+1|0,d-q|0);i=m+1|0;f=e[p];l=p;continue}}function k(a,c,d,e,f,g,h,i,j){d=c+d|0;g=f+g|0;var k=c;c=a[c];var l=f;f=e[f];i=i;while(!0){var m=i,n=f,o=l,p=c,q=k,r=j(p,n);if(r<0){h[m]=p;var s=q+1|0,t=m+1|0;if(s=c)return l;b=a[q];j=q;continue}if(m===0){g[l]=o;q=p+1|0;m=n+1|0;o=l+1|0;if(!(q=f)return l;e=d[p];k=p;continue}}function e(a,c,d,e,f,g,h,i,j){return l(a,c,d,e,f,g,h,i,b("bs_curry").__2(j))}function m(a,c,d,e,f,g,h,i,j){d=c+d|0;g=f+g|0;var k=c;c=a[c];var l=f;f=e[f];i=i;while(!0){var m=i,n=f,o=l,p=c,q=k;n=j(p,n);if(n<0){h[m]=p;p=m+1|0;var r=q+1|0;if(r>=d)return p;i=p;c=a[r];k=r;continue}if(n===0){p=q+1|0;r=o+1|0;if(!(p=d&&f(c[i],h)>0)c[i+1|0]=c[i],i=i-1|0;c[i+1|0]=h}}function p(a,b,c,d,e,f){if(e<=5)return o(a,b,c,d,e,f);var g=e/2|0;e=e-g|0;p(a,b+g|0,c,d+g|0,e,f);p(a,b,a,b+e|0,g,f);return j(a,b+e|0,g,c,d+g|0,e,c,d,f)}function q(a,b){var c=a.length;if(c<=5)return o(a,0,a,0,c,b);var d=c/2|0;c=c-d|0;var e=new Array(c);p(a,d,e,0,c,b);p(a,0,a,c,d,b);return j(a,c,d,e,0,c,a,0,b)}function r(a,c){return q(a,b("bs_curry").__2(c))}function s(a,b){a=a.slice(0);q(a,b);return a}function t(a,c){return s(a,b("bs_curry").__2(c))}function u(a,b,c){var d=a.length;if(d===0)return-1;var e=a[0];e=c(b,e);if(e<0)return-1;e=a[d-1|0];e=c(b,e);if(e>0)return-(d+1|0)|0;else{e=0;d=d-1|0;while(!0){var f=d,g=e,h=(g+f|0)/2|0,i=a[h];i=c(b,i);if(i===0)return h;if(i<0){if(f===h)if(c(a[g],b)===0)return g;else return-(f+1|0)|0;d=h;continue}if(g===h)if(c(a[f],b)===0)return f;else return-(f+1|0)|0;e=h;continue}}}function v(a,c,d){return u(a,c,b("bs_curry").__2(d))}var w,x;f.Int=w;f.$$String=x;f.strictlySortedLengthU=h;f.strictlySortedLength=a;f.isSortedU=i;f.isSorted=c;f.stableSortInPlaceByU=q;f.stableSortInPlaceBy=r;f.stableSortByU=s;f.stableSortBy=t;f.binarySearchByU=u;f.binarySearchBy=v;f.unionU=k;f.union=d;f.intersectU=l;f.intersect=e;f.diffU=m;f.diff=n}),null); __d("MWPSearchOfflineOpenConversations.bs",["LSContactBitOffset.bs","LSContactCapabilityBitOffset.bs","LSDatabaseType.bs","LSInitSyncCompleteSubscription.bs","MNetRankType.bs","MWChatTemporarySearchResult.bs","MWInboxSecureContentSearch.bs","MWPSearchOfflineOpenConversations","Promise","ReQL.bs","ReStore.bs","bs_belt_Array","bs_belt_Option","bs_belt_SortArray","bs_caml","bs_caml_format","bs_caml_int64","bs_caml_option","bs_int64"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){return"p__"+c("bs_int64").to_string(a)+"__"+c("bs_int64").to_string(b)}function h(a){a=a.split("__");var b=a.length;if(b!==3)return;else return[c("bs_caml_format").caml_int64_of_string(a[1]),c("bs_caml_format").caml_int64_of_string(a[2])]}function i(a,e){return b("Promise").all([d("ReQL.bs").firstExn(d("ReQL.bs").map(d("ReQL.bs").fromTableAscending(a.table("_user_info")),function(a){return a.facebookUserId})),d("ReQL.bs").first(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(a.table("threads")),{hd:c("bs_caml_format").caml_int64_of_string(e),tl:0}))]).then(function(e){var f=e[1];if(f!==void 0&&f.folderName==="inbox"){var g=e[0];return b("Promise").all([d("MWInboxSecureContentSearch.bs").getThreadPics(f,g,a),d("MWInboxSecureContentSearch.bs").getThreadParticipants(f,a)]).then(function(a){var b=a[0],e=c("bs_caml_int64").to_float(f.lastActivityTimestampMs);e={contactId:c("bs_caml_int64").zero,contactType:c("bs_caml_int64").zero,score:e,scoreIndex:c("bs_caml_int64").zero,scoreType:c("bs_caml_int64").zero};return d("MWChatTemporarySearchResult.bs").fromThread(f,"offline",g,b[0],b[1],a[1],e)})}else return b("Promise").resolve()})}function j(a,b){a=a.rankingScore;a=a!==void 0?a.score:0;b=b.rankingScore;b=b!==void 0?b.score:0;if(b>a)return 1;else if(b-1}function h(a){var b=0;a=a.match(/generation (\d+)/);a&&(b=parseInt(a[1],10));return b}function i(a){a=a.match(/typ (host|relay|srflx|prflx)/);if(a)return a[1];else return"unknown"}f.extractIceInfo=a}),66); __d("RpWebInfraActionsLoggerEventFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1744334");c=b("FalcoLoggerInternal").create("rp_web_infra_actions_logger_event",a);e.exports=c}),null); __d("ZenonInfraActionsLogger",["Log","ODS","RpWebInfraActionsLoggerEventFalcoEvent","ZenonAuditedCheckpointLogId","formatDate","gkx","justknobx"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(){this.$1={callTrigger:void 0,conferenceName:void 0,deviceID:void 0,mediaPath:"sfu",peerID:void 0,serverInfoData:void 0,signalingID:void 0},this.$2=new Set(),this.$3=!1,this.$4=new Map()}var b=a.prototype;b.updateCachedValues=function(a){Object.assign(this.$1,a)};b.setE2eeMandated=function(){this.$3=!0};b.logCheckpointEmployeesTestUsersOnly=function(a){if(!c("gkx")("2890")&&!c("gkx")("6954"))return;this.logCheckpoint(a)};b.logCheckpoint=function(a){this.logEvent(babelHelpers["extends"]({},a))};b.logCheckpointOnceForDomain=function(a){var b=a.checkpoint;this.$2.has(b)||(this.$2.add(b),this.logCheckpoint(a))};b.logError=function(a){this.logEvent(babelHelpers["extends"]({},a))};b.startTimer=function(a){var b=Date.now();this.$4.set(a,b);this.logEvent({checkpoint:a+"_timerStart"})};b.stopTimer=function(a){var b=this.$4.get(a);this.$4["delete"](a);b=b!=null?Date.now()-b:null;this.logEvent({checkpoint:a+"_timerEnd",eventTimeElapsed:b});return parseInt(b,10)};b.logEvent=function(a){if(c("justknobx")._("854"))return;if(this.$3&&a.auditId==null){var b="Encountered an unaudited log line, dropping it.";a.error!=null?this.logEvent({auditId:c("ZenonAuditedCheckpointLogId").RP_ROOMS_INFRA_WWW__LOGGER_INFRA,error:b}):this.logEvent({auditId:c("ZenonAuditedCheckpointLogId").RP_ROOMS_INFRA_WWW__LOGGER_INFRA,checkpoint:b});return}if(((b=a.checkpoint)==null?void 0:b.length)!=null&&a.checkpoint.length>3e5)return;var d={call_id:(b=a.signalingID)!=null?b:this.$1.signalingID==null?void 0:String(this.$1.signalingID),call_trigger:this.$1.callTrigger,call_type:(b=a.callType)!=null?b:null,checkpoint:a.checkpoint,client_session_id:this.$1.signalingID,client_time:Date.now().toString(),conference_name:(b=a.conferenceName)!=null?b:this.$1.conferenceName,connection:(b=a.connectionState)!=null?b:this.$1.connectionState,device_id:this.$1.deviceID,error:a.error,error_domain:a.errorDomain,event_time_elapsed:(b=a.eventTimeElapsed)==null?void 0:b.toString(),is_caller:(b=a.isCaller)!=null?b:null,media_path:(b=a.mediaPath)!=null?b:this.$1.mediaPath,message_id:a.messageID,peer_connection:(b=a.peerConnectionState)!=null?b:this.$1.peerConnectionState,peer_id:this.$1.peerID,sdp_format:(b=a.sdpFormat)!=null?b:null,server_info_data:(b=a.serverInfoData)!=null?b:this.$1.serverInfoData,signaling:(b=a.signalingState)!=null?b:this.$1.signalingState,state_machine_id:a.stateMachineID};c("RpWebInfraActionsLoggerEventFalcoEvent").log(function(){return d})};b.logCounter=function(a){d("ODS").bumpEntityKey(4083,"zenon_multiway",a),d("ODS").flush()};return a}();b=new a();g["default"]=b}),98); __d("fbwebrtc_ClientStack",[],(function(a,b,c,d,e,f){a=Object.freeze({OLD_CLIENT_PLATFORM_STACK:0,RSYS_X:1,IG_OLD_STACK:2,MLITE_OLD_STACK:3,SCOTCH:4,ZENON:5});f["default"]=a}),66); __d("multiway_ApprovalStatus",[],(function(a,b,c,d,e,f){a=Object.freeze({DENIED:0,APPROVED:1});f["default"]=a}),66); __d("multiway_Capability",[],(function(a,b,c,d,e,f){a=Object.freeze({SUPPORT_AUDIO_DEPRECATED:0,SUPPORT_VIDEO_DEPRECATED:1,SUPPORT_EXPERIMENTS_IN_JOIN_RESPONSE:2,SUPPORT_NEW_PARTICIPANT_STATES:3,SUPPORT_SDP_RENEGOTIATION:4,SUPPORT_MWPP:5,REQUIRE_FULL_SDP_IN_SMU:6,SUPPORT_PRECONNECT:7,SUPPORT_MWPP_DEESCALATION:8,SUPPORT_PARTICIPANT_STATE_UNCALLABLE:9,SUPPORT_MULTIPLE_VIDEO_STREAMS:10,REQUIRE_FULL_SDP_IN_SMU_OPTIMIZED:11,SUPPORT_MULTISTREAM_FEC:12,SUPPORT_DELTA_SMU:13,REQUIRE_DEFAULT_CHANNEL_SCREENSHARE:14,SUPPORT_SCREENSHARE_FLAG_IN_JOIN_RESPONSE_AND_SMU:15,SUPPORT_TEMPORAL_LAYER_JBE:16});f["default"]=a}),66); __d("multiway_ClientEventType",[],(function(a,b,c,d,e,f){a=Object.freeze({UNKNOWN:0,MEDIA_CONNECTED:1});f["default"]=a}),66); __d("multiway_ConferenceType",[],(function(a,b,c,d,e,f){a=Object.freeze({UNKNOWN:0,GROUP:1,LIVE:3,MESSENGER:5,ALOHA:6,IGLIVE:8,IGVIDEOCALL:9,OCULUS:10,WATCH:13,GUEST:14,ROOM:15,DEBUGTOOL:16,ROBOCALL:17,DARWIN:19,CRUCIBLE:20});f["default"]=a}),66); __d("multiway_DeviceStatus",[],(function(a,b,c,d,e,f){a=Object.freeze({OK:0,NOT_SUPPORTED:1,IN_ANOTHER_CALL:10});f["default"]=a}),66); __d("multiway_DismissReason",[],(function(a,b,c,d,e,f){a=Object.freeze({CALL_ENDED:0,ANSWERED_ON_ANOTHER_DEVICE:1,IN_ANOTHER_CALL:2,CONNECTION_DROPPED:3,REJECTED_ON_ANOTHER_DEVICE:4,REMOVED_BY_PARTICIPANT:5,REJECTED_BY_CALLEE:6,INTERNAL_ERROR:7,CALL_ENDED_BY_PRODUCT:9,JOIN_APPROVAL_DENIED:10,JOIN_APPROVAL_TIMEDOUT:11,UNSUPPORTED_VERSION:12,LIVE_NOT_ACKED:13,TX_ACK_TIMEDOUT:14,ANSWERED_BY_OTHER_USER:15,PARTICIPANT_SELF_TERMINATION:16,PARTICIPANT_REJOIN:17,LONG_LASTING_AUDIO_ISSUE:18,PRIMARY_ENDPOINT_HANGUP:19});f["default"]=a}),66); __d("multiway_E2eeMode",[],(function(a,b,c,d,e,f){a=Object.freeze({E2EE_NOT_MANDATED:0,DEPRECATED_NO_REQUIREMENT:1,E2EE_MANDATED:2});f["default"]=a}),66); __d("multiway_EndpointServiceType",[],(function(a,b,c,d,e,f){a=Object.freeze({UNKNOWN:0,COMPOSITING_SERVICE:1});f["default"]=a}),66); __d("multiway_HangupReason",[],(function(a,b,c,d,e,f){a=Object.freeze({IGNORE_CALL:0,HANGUP_CALL:1,NO_ANSWER_TIMEOUT:2,CLIENT_ERROR:3,IN_ANOTHER_CALL:4,CLIENT_INTERRUPTED:5,SESSION_MIGRATED:6,E2EE_MANDATED_BUT_OFFER_DID_NOT_CONTAIN_E2EE:7,E2EE_MANDATED_BUT_ANSWER_DID_NOT_NEGOTIATE_E2EE:8,WEBRTC_ERROR:9,CONNECTION_DROPPED:10});f["default"]=a}),66); __d("multiway_JoinMode",[],(function(a,b,c,d,e,f){a=Object.freeze({PRIMARY:0,SECONDARY:1});f["default"]=a}),66); __d("multiway_MediaPath",[],(function(a,b,c,d,e,f){a=Object.freeze({UNKNOWN:0,SFU:1,P2P:2});f["default"]=a}),66); __d("multiway_MediaPauseStatus",[],(function(a,b,c,d,e,f){a=Object.freeze({NotPaused:0,Paused:1});f["default"]=a}),66); __d("multiway_MessageTag",[],(function(a,b,c,d,e,f){a=Object.freeze({PRANSWER:1001,INITIAL_ANSWER_TO_P2P_CALLER:1002,DEESCALATE_OFFER_TO_P2P_CALLEE:1003,DEESCALATE_ANSWER_TO_P2P_CALLER:1004,REQUEST_DEESCALATE_TO_P2P_CALLER:1005,REQUEST_ESCALATE:1006,REQUEST_CLIENT_FULL_RENEGOTIATION_TO_ADMIT_FROM_WAITINGROOM:1007,REQUEST_CLIENT_FULL_RENEGOTIATION_AGAINST_MWS:1008,PARTICIPANT_ADDED:1009,PARTICIPANT_REMOVED:1010,FIRST_REMOTE_ALERTED_FOR_INITIATOR:2001,FIRST_REMOTE_ANSWERED_FOR_INITIATOR:2002,CONTAIN_PENDING_APPROVAL_PARTICIPANTS:2003});f["default"]=a}),66); __d("multiway_MessageType",[],(function(a,b,c,d,e,f){a=Object.freeze({JOIN:0,SERVER_MEDIA_UPDATE:1,HANGUP:2,ICE_CANDIDATE:3,RING:4,DISMISS:5,CONFERENCE_STATE:6,ADD_PARTICIPANTS:7,SUBSCRIPTION:8,CLIENT_MEDIA_UPDATE:9,DATA_MESSAGE:10,REMOVE_PARTICIPANTS:11,PING:18,P2P_PROTOCOL:19,UPDATE:20,NOTIFY:21,CONNECT:22,CLIENT_EVENT:23,UNSUBSCRIBE:25,APPROVAL:26,TRANSFER:27,WAKEUP:28});f["default"]=a}),66); __d("multiway_ParticipantCallState",[],(function(a,b,c,d,e,f){a=Object.freeze({UNKNOWN:0,DISCONNECTED:1,NO_ANSWER:2,REJECTED:3,UNREACHABLE:4,CONNECTION_DROPPED:5,CONTACTING:6,RINGING:7,CONNECTING:8,CONNECTED:9,PARTICIPANT_LIMIT_REACHED:10,IN_ANOTHER_CALL:11,RING_TYPE_UNSUPPORTED:12,PENDING_APPROVAL:13,APPROVED:14,FAILED_APPROVAL:15,HANGUP_IN_WAITING_ROOM:16,UNCALLABLE:17});f["default"]=a}),66); __d("multiway_RingType",[],(function(a,b,c,d,e,f){a=Object.freeze({GROUP_AUDIO_CALL:0,PEER_VIDEO_CALL:1,PEER_AUDIO_CALL:2,GROUP_VIDEO_CALL:3,LIVE_STREAM:4,PEER_ESCALATED_VIDEO_CALL:5,PEER_ESCALATED_AUDIO_CALL:6,LIVE_AUDIO_ROOM:7,LIVE_WITH_ROOM:8});f["default"]=a}),66); __d("multiway_RtcResponseStatusCode",[],(function(a,b,c,d,e,f){a=Object.freeze({OK:200,BAD_REQUEST:400,UNAUTHORIZED:401,NOT_FOUND:404,METHOD_NOT_ALLOWED:406,CONFLICT:409,CONDITIONAL_REQUEST_FAILED:412,SERVER_INTERNAL_ERROR:500,SERVICE_UNAVAILABLE:503});f["default"]=a}),66); __d("multiway_RtcResponseSubCode",[],(function(a,b,c,d,e,f){a=Object.freeze({UNKNOWN:1e3,EXCEEDED_MAX_ALLOWED_PARTICIPANTS:1001,MEMBERSHIP_CHECK_FAIL:1002,CONFERENCE_THROTTLED:1003,ENDPOINT_THROTTLED:1004,MWS_MESSAGE_SENT_TO_INCORRECT_REGION:1005,UNSUPPORTED_REQUEST_TYPE:2e3,CLIENT_REQUEST_UNACCEPTABLE:2001,CLIENT_RESPONSE_UNACCEPTABLE:2002,RING_RESPONSE_BODY_NOT_SET:2004,SERVER_MEDIA_UPDATE_RESPONSE_BODY_NOT_SET:2005,INVALID_SDP:2006,INVALID_CONFERENCE_NAME:2007,SERVER_INFO_CONFERENCE_NAME_MISMATCH:2008,INVALID_USER_ID:2009,INCORRECT_VERSION_RANGE:2010,SENDER_ID_MISMATCH:2011,RECIPIENT_NOT_SPECIFIED:2012,FIELD_NOT_ALLOWED:2013,USERS_NOT_SPECIFIED:2015,REQUEST_UNACCEPTABLE_FOR_ENDPOINT_STATE:2016,INVALID_CALL_ID:2017,SESSION_DESCRIPTION_ID_MISMATCH:2018,EMPTY_CLIENT_MEDIA_UPDATES:2019,INVALID_SERVER_INFO_DATA:2020,INCORRECT_STATE_VERSION:2021,MISMATCHED_STATE_FOR_VERSION:2022,INVALID_STATE_VERSION:2023,NO_RESOLVER_FOUND:2024,MISSING_APPROVERLIST:2025,FULL_SDP_REQUIRED_IN_APPROVED_STATE:2026,INVALID_BROADCAST_ID:2027,INVALID_ENDPOINT_CONFIG:2028,INVALID_E2EE_STATE:2029,SFU_MODE_PREVENTED:2030,INVALID_CONFERENCE_STATE:2031,JOIN_REQUEST_DENIED:2032,MISSING_BODY_ENDPOINT:2101,MISSING_BODY_HEADER:2102,MISSING_BODY_BODY:2103,MISSING_BODY_PARAMS:2104,MISSING_BODY_REMOVE_PARTICIPANTS_REQUEST:2105,MISSING_BODY_DATA_MESSAGE_REQUEST:2106,MISSING_BODY_CLIENT_MEDIA_UPDATE_REQUEST:2107,MISSING_BODY_ADD_PARTICIPANTS_REQUEST:2108,MISSING_BODY_SUBSCRIPTION_REQUEST:2110,MISSING_BODY_JOIN_REQUEST:2111,MISSING_BODY_HANGUP_REQUEST:2112,MISSING_BODY_ICE_CANDIDATE_REQUEST:2113,MISSING_BODY_P2P_MESSAGE_REQUEST:2114,MISSING_BODY_UPDATE_REQUEST:2115,MISSING_BODY_CLIENT_EVENT_REQUEST:2116,MISSING_BODY_CONNECT_REQUEST:2117,MISSING_BODY_UNSUBSCRIBE_REQUEST:2118,MISSING_BODY_APPROVAL_REQUEST:2119,MISSING_ENDPOINT_USER_ID:2120,EMPTY_ENDPOINT_USER_ID:2121,MISSING_BODY_TRANSFER_REQUEST:2122,MISSING_BODY_GENERIC:2199,REQUESTOR_NOT_MEMBER_CONFERENCE:3002,NOT_BROADCAST_OWNER:3003,GUEST_NOT_INVITED:3004,GUEST_DISCONNECTED:3005,GUEST_INVITATION_EXPIRED:3006,SHOULD_USE_NEW_SIGNALING_PATH:3007,PARTICIPANT_IN_PENDING_APPROVAL_STATE:3008,BROADCAST_ALREADY_STOPPED:4002,FAILED_TO_GENERATE_SDP_ANSWER:4003,FAILED_GENERATE_SESSION_DESCRIPTION:4004,SDP_SESSION_ID_MISMATCH:4005,MEDIA_ENDPOINT_GONE:4007,MEDIA_ENDPOINT_ALREADY_EXISTS:4008,MEDIA_ENDPOINT_EXISTS_DIFFERENT_SESSION_ID:4009,LEGACY_MESSENGER_SENDER_UNSET:4010,FAILED_TO_SET_TRANSPORT_INFO:4011,NON_PRIMARY_MULTIWAY_SERVER:4012,FAILED_TO_GET_REMOTE_DESCRIPTION:4013,LOCAL_DESCRIPTION_NOT_SET:4014,INVALID_SDP_TYPE:4015,CLIENT_MEDIA_UPDATE_WITHOUT_REMOTE_SDP_INFO:4016,SDP_UNSET_ON_P2P_ANSWER:4017,MISSING_ICE_CANDIDATE_PAYLOAD:4018,P2P_PROTOCOL_UNSET:4019,CREATE_ACK_FOR_INVALID_MESSAGE_TYPE:4020,LEGACY_CLIENT_CANNOT_JOIN_SFU_MODE:4021,CONNECT_UNSUPPORTED_IN_SFU_MODE:4022,CONNECT_UNSUPPORTED_FOR_JOINED_ENDPOINTS:4023,RESOLVE_STATE_API_ERROR:4024,EXTERNAL_RESOLUTION_ERROR:4025,INTERNAL_RESOLUTION_ERROR:4026,RESOLUTION_DISABLED:4027,BROADCAST_ID_MISSING:4028,SDP_UNSET_ON_P2P_OFFER:4029,LIVESTREAM_INPUT_DESERIALIZATION_FAILED:4030,LEGACY_OFFER_MISSING_REQUIRED_VALUE:4031,MEDIA_SERVER_STATE_SYNC_DESERIALIZATION_ERROR:4032,CONNECT_UNSUPPORTED_FOR_PRECONNECTED_USERS:4033,OTHER_USER_ANSWERED_THE_CALL:4034,MEDIA_SERVER_DESERIALIZATION_ERROR:4035,REMOTE_SDP_TRACKID_MISMATCH:4036,SIGNALING_MESSAGE_TO_CLIENT_DROPPED:4037,DATA_CHANNEL_ENDPOINT_GONE:4038,DATA_CHANNEL_ENDPOINT_ALREADY_EXISTS:4039,CONFERENCE_NOT_FOUND:5001,CONFERENCE_IS_TERMINATING:5002,CONFERENCE_IS_TERMINATED:5003,CONFERENCE_NAME_EMPTY:5004,NONCE_EMPTY:5005,NONCE_MISMATCH:5006,CONFERENCE_HAS_GONE:5007,PARTICIPANT_HAS_GONE:5008,MEDIA_SERVER_NOT_FOUND:5009,CLIENT_TERMINATED:5010,PRECONNECT_FROM_OLDSTACK_TO_UNIFIED_NOT_SUPPORTED:5011,MEDIA_CODECS_UNSUPPORTED_BY_CONFERENCE:6001,CONFERENCE_INCAPABLE_RENEGOTIATION:6002,REJECTING_CMU_WHEN_SMU_PENDING:6003,PARTICIPANT_NOT_SUBSCRIBED_TO_TOPIC:6004,PARTICIPANT_ALREADY_IN_WAITING_ROOM:6005,PARTICIPANT_NOT_IN_PENDING_APPROVAL:6006,USER_NOT_APPROVER_FOR_TARGET_USER:6007,UNSUPPORTED_CAPABILITIES:6008,PRODUCT_SERVER_DEFINED_END_REASON:6009,WWW_KILLSWITCHED_REQUEST:6010,CONFLICTING_MEDIA_PATH:6011,CONFLICTING_MEDIA_STATUS:6012,CONFLICTING_SESSION_DESCRIPTION:6013,OK:9e3});f["default"]=a}),66); __d("multiway_SubscriptionType",[],(function(a,b,c,d,e,f){a=Object.freeze({CNAME:0,TRACK:1,DOMINANT_SPEAKER:2});f["default"]=a}),66); __d("multiway_VideoQuality",[],(function(a,b,c,d,e,f){a=Object.freeze({LOW:0,MEDIUM:1,HIGH:2,HD:3,NUM_QUALITIES:4});f["default"]=a}),66); __d("ZenonMWMessageTypes",["$InternalEnum","fbwebrtc_ClientStack","multiway_ApprovalStatus","multiway_Capability","multiway_ClientEventType","multiway_ConferenceType","multiway_DeviceStatus","multiway_DismissReason","multiway_E2eeMode","multiway_EndpointServiceType","multiway_HangupReason","multiway_JoinMode","multiway_MediaPath","multiway_MediaPauseStatus","multiway_MessageTag","multiway_MessageType","multiway_ParticipantCallState","multiway_RingType","multiway_RtcResponseStatusCode","multiway_RtcResponseSubCode","multiway_SubscriptionType","multiway_VideoQuality"],(function(a,b,c,d,e,f,g){"use strict";a=b("$InternalEnum")({DEFAULT_AUDIO:0,DEFAULT_VIDEO:1,SCREEN_AUDIO:2,SCREEN_VIDEO:3});g.ZenonMWClientStack=c("fbwebrtc_ClientStack");g.ZenonMWApprovalStatus=c("multiway_ApprovalStatus");g.ZenonMWCapability=c("multiway_Capability");g.ZenonMWClientEventType=c("multiway_ClientEventType");g.ZenonMWConferenceType=c("multiway_ConferenceType");g.ZenonMWDeviceStatus=c("multiway_DeviceStatus");g.ZenonMWDismissReason=c("multiway_DismissReason");g.ZenonMWE2eeMode=c("multiway_E2eeMode");g.ZenonMWEndpointServiceType=c("multiway_EndpointServiceType");g.ZenonMWHangupReason=c("multiway_HangupReason");g.ZenonMWMediaPath=c("multiway_MediaPath");g.ZenonMWJoinMode=c("multiway_JoinMode");g.ZenonMWMediaPauseStatus=c("multiway_MediaPauseStatus");g.ZenonMWMessageTag=c("multiway_MessageTag");g.ZenonMWSignalingPayloadType=c("multiway_MessageType");g.ZenonMWParticipantCallState=c("multiway_ParticipantCallState");g.ZenonMWRingType=c("multiway_RingType");g.ZenonMWResponseStatusCode=c("multiway_RtcResponseStatusCode");g.ZenonMWResponseSubCode=c("multiway_RtcResponseSubCode");g.ZenonMWSubscriptionType=c("multiway_SubscriptionType");g.ZenonMWVideoQuality=c("multiway_VideoQuality");g.ZenonMWTrackLabel=a}),98); __d("ZenonMWMessageMap",["ZenonMWMessageTypes"],(function(a,b,c,d,e,f,g){"use strict";b=Object.freeze((a={},a[d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.JOIN]="JOIN",a[d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.SERVER_MEDIA_UPDATE]="SERVER_MEDIA_UPDATE",a[d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.ICE_CANDIDATE]="ICE_CANDIDATE",a[d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.HANGUP]="HANGUP",a[d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.RING]="RING",a[d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.DISMISS]="DISMISS",a[d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.CONFERENCE_STATE]="CONFERENCE_STATE",a[d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.ADD_PARTICIPANTS]="ADD_PARTICIPANTS",a[d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.SUBSCRIPTION]="SUBSCRIPTION",a[d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.CLIENT_MEDIA_UPDATE]="CLIENT_MEDIA_UPDATE",a[d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.DATA_MESSAGE]="DATA_MESSAGE",a[d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.REMOVE_PARTICIPANTS]="REMOVE_PARTICIPANTS",a[d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.PING]="PING",a[d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.P2P_PROTOCOL]="P2P_PROTOCOL",a[d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.NOTIFY]="NOTIFY",a[d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.CONNECT]="CONNECT",a[d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.CLIENT_EVENT]="CLIENT_EVENT",a[d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.UNSUBSCRIBE]="UNSUBSCRIBE",a[d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.UPDATE]="UPDATE",a[d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.APPROVAL]="APPROVAL",a[d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.WAKEUP]="WAKEUP",a));c=b;g["default"]=c}),98); __d("OverlayConfigConstants",[],(function(a,b,c,d,e,f){"use strict";a={OverlayConfigNumParameters:2522,OverlayConfigNotPresentFlagValue:-1};e.exports=a}),null); __d("OverlayConfigLayerSource",[],(function(a,b,c,d,e,f){"use strict";a=Object.freeze({UNKNOWN:0,DEFAULT:1,MOBILECONFIG:2,APP_CRUCIBLE:3,APP_JNI:4,UNITTEST_CONFIG:5,SERVER:6,PLACEHOLDER:7,LS_MOBILECONFIG:8,APP_LS:9,APP_JS:10,BROWSER:11,APP_OVRRTC:12,APP_IG:13,MLITE4A_LEGACY_QE:14,APP_MLITE4A:15,APP_PORTAL:16,IG_LAUNCHER:17,APP_ARCHON:18,APP_WS:19,APP_NOX:20,APP_WEARABLE_MSNGR:21,APP_WEARABLE_IG:22,APP_ORCA_RSYS:23,APP_WILDE:24,APP_MKIOS:25,APP_MK4A:26,DYNAMIC:27,SDK_DEFAULT:28,APP_FB4A:29,APP_RSYS_SDK_SAMPLE:30,APP_BIZAPP:31,APP_WORKCHAT:32,APP_ARCHON_LOCAL_OVERRIDES:33,APP_CATHODE:34});e.exports=a}),null); __d("OverlayConfigServerLayer",["OverlayConfigConstants","OverlayConfigLayerSource"],(function(a,b,c,d,e,f,g){"use strict";a=function(){a.createFromHeader=function(b){try{b=b==null?void 0:(b=b.extensions)==null?void 0:b.oc1_json;if(b==null)return null;b=JSON.parse(b);b=b==null?void 0:b.values;return b==null?null:new a(b)}catch(a){return null}};function a(a){this.$1=a}var b=a.prototype;b.getLayerSource=function(){return c("OverlayConfigLayerSource").SERVER};b.getValue=function(a){a=this.$1[String(a)];return a!=null?a:d("OverlayConfigConstants").OverlayConfigNotPresentFlagValue};b.logExposure=function(a){};return a}();g["default"]=a}),98); __d("ZenonEndCallReason",["$InternalEnum"],(function(a,b,c,d,e,f){a=b("$InternalEnum")({BREAKOUT_SESSION_SWITCH_ROOM:"BreakoutSessionSwitchRoom",CALL_END_ACCEPT_AFTER_HANG_UP:"CallEndAcceptAfterHangUp",CALLER_NOT_VISIBLE:"CallerNotVisible",CAMERA_PERMISSION_DENIED:"CameraPermissionDenied",CARRIER_BLOCKED:"CarrierBlocked",CLIENT_ENCRYPTION_ERROR:"ClientEncryptionError",CLIENT_ERROR:"ClientError",CLIENT_INTERRUPTED:"ClientInterrupted",CONNECTION_DROPPED:"ConnectionDropped",END_TO_END_ENCRYPTION_INVARIANT_VIOLATED:"EndToEndEncryptionInvariantViolated",HANGUP_CALL:"HangupCall",IGNORE_CALL:"IgnoreCall",IN_ANOTHER_CALL:"InAnotherCall",INACTIVE_TIMEOUT:"InactiveTimeout",INCOMING_TIMEOUT:"IncomingTimeout",MAX_ALLOWED_PARTICIPANTS_REACHED:"MaxAllowedParticipantsReached",MICROPHONE_PERMISSION_DENIED:"MicrophonePermissionDenied",NO_ANSWER_TIMEOUT:"NoAnswerTimeout",NO_PERMISSION:"NoPermission",NO_UI_SHOWN:"NoUIShown",OTHER_CARRIER_BLOCKED:"OtherCarrierBlocked",OTHER_INSTANCE_HANDLED:"OtherInstanceHandled",OTHER_NOT_CAPABLE:"OtherNotCapable",PRODUCT_SERVER_DEFINED_END_REASON:"ProductServerDefinedEndReason",RING_MUTED:"RingMuted",SESSION_MIGRATED:"SessionMigrated",SIGNALING_MESSAGE_FAILED:"SignalingMessageFailed",TX_ACK_TIMEOUT:"TxAckTimeout",UNEXPECTED_END_OF_CALL:"UnexpectedEndOfCall",UNKNOWN:"Unknown",VERSION_UNSUPPORTED:"VersionUnsupported",WEBRTC_ERROR:"WebRTCError"});c=a;f["default"]=c}),66); __d("ZenonIncomingRingSDKTypes",["$InternalEnum"],(function(a,b,c,d,e,f){"use strict";a=b("$InternalEnum").Mirrored(["Hangup","OtherDismiss"]);f.ZenonCancelReason=a}),66); __d("ZenonMediaError",["$InternalEnum"],(function(a,b,c,d,e,f){"use strict";a=b("$InternalEnum").Mirrored(["ConnectionClosed","IceDisconnected","IceFailure","SetLocalSdpFailed","SetRemoteSdpFailed","RollbackSdpFailed","UnknownError"]);f.ZenonMediaError=a}),66); __d("ZenonDismissReason",["$InternalEnum","FBLogger","ZenonIncomingRingSDKTypes","ZenonMWMessageTypes","ZenonMediaError"],(function(a,b,c,d,e,f,g){"use strict";var h=b("$InternalEnum")({IgnoreCall:0,HangupCall:1,InAnotherCall:2,AcceptAfterHangUp:3,NoAnswerTimeout:4,IncomingTimeout:5,OtherInstanceHandled:6,SignalingMessageFailed:7,ConnectionDropped:8,ClientInterrupted:9,WebRTCError:10,ClientError:11,NoPermission:12,OtherNotCapable:13,NoUIShown:14,VersionUnsupported:15,CallerNotVisible:16,CarrierBlocked:17,OtherCarrierBlocked:18,ClientEncryptionError:19,MicrophonePermissionDenied:20,CameraPermissionDenied:21,SessionMigrated:22,RingMuted:23,JoinApprovalDenied:24,RejectedByCallee:25,CallEndedByProduct:26,CallEnded:27,AnsweredOnAnotherDevice:28,RejectedOnAnotherDevice:29,CallCollision:30,MaxAllowedParticipantsReached:31,UnexpectedEndOfCall:32,TxAckTimeout:33,EndToEndEncryptionInvariantViolated:34,ProductServerDefinedEndReason:35});function a(a){switch(a){case"BreakoutSessionSwitchRoom":return h.HangupCall;case"CallEndAcceptAfterHangUp":return h.AcceptAfterHangUp;case"CallerNotVisible":return h.CallerNotVisible;case"CarrierBlocked":return h.CarrierBlocked;case"ClientEncryptionError":return h.ClientEncryptionError;case"ClientError":return h.ClientError;case"ClientInterrupted":return h.ClientInterrupted;case"ConnectionDropped":return h.ConnectionDropped;case"HangupCall":return h.HangupCall;case"IgnoreCall":return h.IgnoreCall;case"InAnotherCall":return h.InAnotherCall;case"EndToEndEncryptionInvariantViolated":return h.EndToEndEncryptionInvariantViolated;case"InactiveTimeout":return h.CallEnded;case"IncomingTimeout":return h.IncomingTimeout;case"MaxAllowedParticipantsReached":return h.MaxAllowedParticipantsReached;case"NoAnswerTimeout":return h.NoAnswerTimeout;case"NoPermission":return h.NoPermission;case"NoUIShown":return h.NoUIShown;case"OtherCarrierBlocked":return h.OtherCarrierBlocked;case"OtherInstanceHandled":return h.OtherInstanceHandled;case"OtherNotCapable":return h.OtherNotCapable;case"SignalingMessageFailed":return h.SignalingMessageFailed;case"UnexpectedEndOfCall":return h.UnexpectedEndOfCall;case"Unknown":return h.CallEnded;case"VersionUnsupported":return h.VersionUnsupported;case"WebRTCError":return h.WebRTCError;case"MicrophonePermissionDenied":return h.MicrophonePermissionDenied;case"CameraPermissionDenied":return h.CameraPermissionDenied;case"SessionMigrated":return h.SessionMigrated;case"RingMuted":return h.RingMuted;case"TxAckTimeout":return h.TxAckTimeout;case"ProductServerDefinedEndReason":return h.ProductServerDefinedEndReason}}function e(a){switch(a){case h.CallEnded:case h.CallEndedByProduct:case h.HangupCall:return"HangupCall";case h.IgnoreCall:case h.JoinApprovalDenied:case h.RejectedByCallee:return"IgnoreCall";case h.InAnotherCall:return"InAnotherCall";case h.AcceptAfterHangUp:return"CallEndAcceptAfterHangUp";case h.NoAnswerTimeout:return"NoAnswerTimeout";case h.IncomingTimeout:return"IncomingTimeout";case h.AnsweredOnAnotherDevice:case h.CallCollision:case h.RejectedOnAnotherDevice:case h.OtherInstanceHandled:return"OtherInstanceHandled";case h.SignalingMessageFailed:return"SignalingMessageFailed";case h.ConnectionDropped:return"ConnectionDropped";case h.ClientInterrupted:return"ClientInterrupted";case h.WebRTCError:return"WebRTCError";case h.ClientError:return"ClientError";case h.NoPermission:return"NoPermission";case h.OtherNotCapable:return"OtherNotCapable";case h.NoUIShown:return"NoUIShown";case h.VersionUnsupported:return"VersionUnsupported";case h.CallerNotVisible:return"CallerNotVisible";case h.CarrierBlocked:return"CarrierBlocked";case h.OtherCarrierBlocked:return"OtherCarrierBlocked";case h.ClientEncryptionError:return"ClientEncryptionError";case h.UnexpectedEndOfCall:return"UnexpectedEndOfCall";case h.MaxAllowedParticipantsReached:return"MaxAllowedParticipantsReached";case h.MicrophonePermissionDenied:return"MicrophonePermissionDenied";case h.CameraPermissionDenied:return"CameraPermissionDenied";case h.SessionMigrated:return"SessionMigrated";case h.RingMuted:return"RingMuted";case h.TxAckTimeout:return"TxAckTimeout";case h.EndToEndEncryptionInvariantViolated:return"EndToEndEncryptionInvariantViolated";case h.ProductServerDefinedEndReason:return"ProductServerDefinedEndReason"}c("FBLogger")("rtc_www").mustfix("Unknown dismiss reason: %s",a);return"Unknown"}function f(a){switch(a){case h.OtherInstanceHandled:case h.AnsweredOnAnotherDevice:case h.RejectedOnAnotherDevice:return d("ZenonIncomingRingSDKTypes").ZenonCancelReason.OtherDismiss;default:return d("ZenonIncomingRingSDKTypes").ZenonCancelReason.Hangup}}function i(a){switch(a){case d("ZenonMediaError").ZenonMediaError.IceDisconnected:return h.ConnectionDropped;case d("ZenonMediaError").ZenonMediaError.ConnectionClosed:return h.HangupCall;case d("ZenonMediaError").ZenonMediaError.IceFailure:case d("ZenonMediaError").ZenonMediaError.SetLocalSdpFailed:case d("ZenonMediaError").ZenonMediaError.SetRemoteSdpFailed:case d("ZenonMediaError").ZenonMediaError.RollbackSdpFailed:return h.WebRTCError;case d("ZenonMediaError").ZenonMediaError.UnknownError:return h.UnexpectedEndOfCall}}function j(a){return k[a]}var k=Object.freeze((b={},b[d("ZenonMWMessageTypes").ZenonMWDismissReason.CALL_ENDED]=h.CallEnded,b[d("ZenonMWMessageTypes").ZenonMWDismissReason.ANSWERED_ON_ANOTHER_DEVICE]=h.AnsweredOnAnotherDevice,b[d("ZenonMWMessageTypes").ZenonMWDismissReason.IN_ANOTHER_CALL]=h.InAnotherCall,b[d("ZenonMWMessageTypes").ZenonMWDismissReason.CONNECTION_DROPPED]=h.ConnectionDropped,b[d("ZenonMWMessageTypes").ZenonMWDismissReason.REJECTED_ON_ANOTHER_DEVICE]=h.RejectedOnAnotherDevice,b[d("ZenonMWMessageTypes").ZenonMWDismissReason.REJECTED_BY_CALLEE]=h.RejectedByCallee,b[d("ZenonMWMessageTypes").ZenonMWDismissReason.CALL_ENDED_BY_PRODUCT]=h.CallEndedByProduct,b[d("ZenonMWMessageTypes").ZenonMWDismissReason.INTERNAL_ERROR]=h.SignalingMessageFailed,b[d("ZenonMWMessageTypes").ZenonMWDismissReason.REMOVED_BY_PARTICIPANT]=h.HangupCall,b[d("ZenonMWMessageTypes").ZenonMWDismissReason.TX_ACK_TIMEDOUT]=h.TxAckTimeout,b));g.ZenonDismissReason=h;g.endCallToDismissReason=a;g.dismissToEndCallReason=e;g.dismissReasonToCancelReason=f;g.mediaErrorToDismissReason=i;g.mwDismissToDmissReason=j}),98); __d("ZenonCallsModelTypes",["$InternalEnum"],(function(a,b,c,d,e,f){"use strict";c=(a=b("$InternalEnum")).Mirrored(["Disconnected","Precontacting","Contacting","Ringing","PendingApproval","Approved","FailedApproval","Connecting","Connected","Reconnecting","ProvisionalRinging"]);d=a.Mirrored(["Facebook","Instagram","Messenger","Guest","WhatsApp","Workplace"]);e=a.Mirrored(["New","Connecting","PendingApproval","Connected","Terminating","Terminated"]);b=a.Mirrored(["Unknown","CallsBlocked"]);a=a.Mirrored(["None","PendingPeerFeedback","Declined","RemoteDeclined","LocalDeclined","Cancelled","TimedOut","Accepted","InitiatedFromPeer"]);f.ZenonCallParticipantState=c;f.ZenonCallParticipantType=d;f.ZenonCallState=e;f.ZenonEndCallSubreason=b;f.ZenonVideoEscalationStatus=a}),66); __d("ZenonParticipantState",["$InternalEnum","ZenonCallsModelTypes"],(function(a,b,c,d,e,f,g){"use strict";var h=b("$InternalEnum")({UNKNOWN:0,ADDING:1,CONTACTING:2,RINGING:3,ACCEPTING:4,PRECONNECTING:5,CONNECTING:6,CONNECTED:7,REMOVING:8,DISCONNECTED:9,NO_ANSWER:10,REJECTED:11,UNREACHABLE:12,CONNECTION_DROPPED:13,PARTICIPANT_LIMIT_REACHED:14,IN_ANOTHER_CALL:15,RING_TYPE_UNSUPPORTED:16,PENDING_APPROVAL:17,APPROVING:18,DENYING:19,APPROVED:20,FAILED_APPROVAL:21,HANGUP_IN_WAITING_ROOM:22,RECONNECTING:23});function a(a){if(a==null)return d("ZenonCallsModelTypes").ZenonCallParticipantState.Disconnected;switch(a){case h.CONTACTING:case h.PRECONNECTING:return d("ZenonCallsModelTypes").ZenonCallParticipantState.Contacting;case h.RINGING:return d("ZenonCallsModelTypes").ZenonCallParticipantState.Ringing;case h.CONNECTING:case h.RECONNECTING:return d("ZenonCallsModelTypes").ZenonCallParticipantState.Connecting;case h.CONNECTED:return d("ZenonCallsModelTypes").ZenonCallParticipantState.Connected;case h.PENDING_APPROVAL:case h.APPROVING:case h.DENYING:case h.ACCEPTING:case h.ADDING:case h.REMOVING:return d("ZenonCallsModelTypes").ZenonCallParticipantState.PendingApproval;case h.APPROVED:return d("ZenonCallsModelTypes").ZenonCallParticipantState.Approved;case h.FAILED_APPROVAL:return d("ZenonCallsModelTypes").ZenonCallParticipantState.FailedApproval;case h.HANGUP_IN_WAITING_ROOM:case h.UNKNOWN:case h.DISCONNECTED:case h.NO_ANSWER:case h.REJECTED:case h.UNREACHABLE:case h.CONNECTION_DROPPED:case h.PARTICIPANT_LIMIT_REACHED:case h.IN_ANOTHER_CALL:case h.RING_TYPE_UNSUPPORTED:return d("ZenonCallsModelTypes").ZenonCallParticipantState.Disconnected}return d("ZenonCallsModelTypes").ZenonCallParticipantState.Disconnected}g.ZenonParticipantState=h;g.toCallParticipantState=a}),98); __d("ZenonScreenShare",["UserAgent","gkx"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return a.length===1&&((a=a[0])==null?void 0:a.contentType)==="screen"}function h(){return!c("UserAgent").isBrowser("Safari")}function i(){return!h()?!0:!c("gkx")("1667037")}function b(a){return h()&&(c("gkx")("4883")||c("gkx")("1675"))?!0:!i()&&(a==null?void 0:a.find(function(a){return a.type==="video"}))!=null}g.isScreenSharingTrack=a;g.screenShareWithReplaceTrack=i;g.isDualStreamScreenSharingEnabled=b}),98); __d("ZenonSignalingTypes",[],(function(a,b,c,d,e,f){"use strict";a={OK:0,REJECTED_FROM_VERSION_DOES_NOT_MATCH:1,METHOD_NOT_ALLOWED:2};b={CLIENT_TERMINATED:0};f.ZenonSignalingStatusCode=a;f.ZenonSignalingStatusSubCode=b}),66); __d("ZenonMWTranslatorUtils",["ChannelClientID","CurrentUser","OverlayConfigServerLayer","RpWebMqttEnabledAppIds","ZenonDismissReason","ZenonInfraActionsLogger","ZenonMWMessageTypes","ZenonParticipantState","ZenonScreenShare","ZenonSignalingProtocol","ZenonSignalingTypes","err","gkx","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i="signalingDominantSpeakerUpdate",j="signalingVideoUploadUpdate",k=new Set(c("RpWebMqttEnabledAppIds").APP_IDS);function l(a){var b={multiwayCoreTier:"",multiwayWwwTier:""};if(!c("gkx")("678350"))return b;b.multiwayWwwTier=t(a,"multiway_www_tier");b.multiwayCoreTier=t(a,"multiway_core_tier");return b}function a(a,b,c){c===void 0&&(c=!1),a&&Object.keys(a).forEach(function(d){var e=a[d],f=e.data;e=e.version;if(f!=null){f={data:f,eventName:"stateSyncNotifyRequest",responseRequired:c,topic:d,version:e};b.push(f)}})}function b(a,b,d){var e={appId:r(),deviceId:c("ChannelClientID").getID(),userId:b.userInfo.userID};b=A(b,a);return{endpoint:e,jsonPayload:{body:d,header:b}}}function e(a,b,d,e,f){var g={appId:r(),deviceId:c("ChannelClientID").getID(),userId:b.userInfo.userID};b=B(b,a,e,f);return{endpoint:g,jsonPayload:{body:d,header:b}}}function f(a){a=d("ZenonDismissReason").mwDismissToDmissReason(a);return(a=a)!=null?a:d("ZenonDismissReason").ZenonDismissReason.CallEnded}function m(a,b){if(b===d("ZenonMWMessageTypes").ZenonMWResponseSubCode.EXCEEDED_MAX_ALLOWED_PARTICIPANTS)return d("ZenonDismissReason").ZenonDismissReason.MaxAllowedParticipantsReached;if(b===d("ZenonMWMessageTypes").ZenonMWResponseSubCode.PRODUCT_SERVER_DEFINED_END_REASON)return d("ZenonDismissReason").ZenonDismissReason.ProductServerDefinedEndReason;switch(a){case d("ZenonMWMessageTypes").ZenonMWResponseStatusCode.METHOD_NOT_ALLOWED:case d("ZenonMWMessageTypes").ZenonMWResponseStatusCode.UNAUTHORIZED:return d("ZenonDismissReason").ZenonDismissReason.NoPermission;case d("ZenonMWMessageTypes").ZenonMWResponseStatusCode.SERVICE_UNAVAILABLE:return d("ZenonDismissReason").ZenonDismissReason.SignalingMessageFailed;case d("ZenonMWMessageTypes").ZenonMWResponseStatusCode.OK:throw c("unrecoverableViolation")("Response status code is OK; should not return a dismiss reason","rtc_www");default:c("ZenonInfraActionsLogger").logError({callType:"mw",error:"[ZP] Got unexpected JOIN response status: "+a+" subcode "+((a=b)!=null?a:"[undefined]"),errorDomain:"fromMWJoinResponseStatusToDismissReason"});return d("ZenonDismissReason").ZenonDismissReason.UnexpectedEndOfCall}}function n(a){a=O[a];return(a=a)!=null?a:d("ZenonMWMessageTypes").ZenonMWParticipantCallState.UNKNOWN}function o(a){var b=null;a!=null&&a.forEach(function(a){a=(a=a.body)==null?void 0:a.genericMessage;if(a!=null&&a.topic==="collision_context_payload"){a=a.data;if(a!=null){var c;a=JSON.parse(a);b={groupThreadID:(c=a.group_thread_id)!=null?c:null,peerID:(c=a.peer_id)!=null?c:null,serverInfoData:(c=a.server_info_data)!=null?c:null}}}});return b}function p(a){a=(a=a.message.body)!=null?a:{};var b=a.dominantSpeakerSignalingInfo,c=a.genericMessage;a=a.videoUploadSignalingInfo;if(c)try{return atob(c.data)}catch(a){return c.data}else if(b)return JSON.stringify(b);else if(a)return JSON.stringify(a);return null}function q(a){a=(a=a.message.body)!=null?a:{};var b=a.dominantSpeakerSignalingInfo,c=a.genericMessage;a=a.videoUploadSignalingInfo;if(c)return c.topic;else if(b)return i;else if(a)return j;return null}function r(){var a=c("CurrentUser").getAppID();if(a!=null&&(a===936619743392459..toString()||a===1217981644879628..toString()))return a;a=(a=a)!=null?a:219994525426954..toString();return k.has(Number(a))?a:219994525426954..toString()}function s(a){a=a&&a.length>0?a.find(function(a){return((a=a.body)==null?void 0:(a=a.genericMessage)==null?void 0:a.topic)==="room_metadata"}):null;if(a){var b;b=(b=a.body)==null?void 0:(b=b.genericMessage)==null?void 0:b.data;if(b!=null){b=JSON.parse(b);a=(a=a.header)==null?void 0:a.sender;if(b.link_hash!=null&&b.room_name!=null&&a!=null)return{linkHash:b.link_hash,profileURL:b.profile_url,ringSubtitle:b.ring_subtitle,roomName:b.room_name,sender:a}}}return{}}function t(a,b){b=b+"=";a=a.split(b);return a[1]?a.pop().split("&").shift():""}function u(a){a=a.split("\n");if(a.length<2)throw c("unrecoverableViolation")("Expected SDP string with two or more lines, but got "+a.length,"rtc_www");a=a[1].trim();a=a.split(" ");if(a.length<3)throw c("unrecoverableViolation")("Session line should have at least 3 tokens, but got "+a.length,"rtc_www");a=parseInt(a[2],10);if(isNaN(a))throw c("unrecoverableViolation")("SDP version could not be parsed as number.","rtc_www");return a}function v(a){return a.includes("BUNDLE 0")}function w(a,b){b=c("OverlayConfigServerLayer").createFromHeader(b);if(b){b={eventName:"overlayConfigServerUpdateRequest",serverLayer:b};a.push(b)}}function x(a){return a.reduce(function(a,b){var c;c=(c=b.body)==null?void 0:(c=c.genericMessage)==null?void 0:c.topic;b=(b=b.body)==null?void 0:(b=b.genericMessage)==null?void 0:b.data;c!=null&&b!=null&&(a[c]=b);return a},{})}function y(a){var b=a.clientSessionId,d=a.conferenceName,e=a.receiver,f=a.receiverUserId,g=a.sequenceNumber,h=a.serverInfoData,i=a.transactionId;if(c("gkx")("1877")&&f==null)throw c("err")("Incoming MW messages should have receiverUserId populated.");b=b;var j={userID:"2"};e={actorID:(e=e==null?void 0:e.actorId)!=null?e:null,messageID:i,messageTags:(e=a.messageTags)!=null?e:[],protocol:c("ZenonSignalingProtocol").MW,remoteInfo:j,retryCount:a.retryCount,roomInfo:{name:d},sequenceNumber:g,signalingID:b,userInfo:{userID:(i=f)!=null?i:"1"}};h!=null&&(e.remoteSignalingID=h);return e}function z(a,b){return Object.keys(a).map(function(c){var d=a[c];return{body:{genericMessage:{data:d,topic:c}},header:{recipients:b,topic_DEPRECATED:c}}})}function A(a,b){var c=a.messageID,e=a.messageTags,f=a.remoteSignalingID,g=a.roomInfo,h=a.signalingID,i=l(window.location.href);g={clientStack:d("ZenonMWMessageTypes").ZenonMWClientStack.ZENON,conferenceName:g.name,messageTags:e,retryCount:a.retryCount,sequenceNumber:a.sequenceNumber,transactionId:c,type:b};(i.multiwayCoreTier!==""||i.multiwayWwwTier!=="")&&(g.extensions=i);h!=null&&(g.clientSessionId=h);f!=null&&(g.serverInfoData=f);a.actorID!=null&&(g.sender={id:a.actorID});return g}function B(a,b,c,e){a=A(a,b);a.responseStatusCode=(b=c)!=null?b:d("ZenonMWMessageTypes").ZenonMWResponseStatusCode.OK;e!=null&&(a.responseSubCode=e);return a}function C(a){var b={tracks:{}},c=d("ZenonScreenShare").isDualStreamScreenSharingEnabled(a.tracks);a.tracks.forEach(function(a){var d={enabled:a.enabled,name:a.name,owner:a.participantID},e=c?L(a.type):null;e!=null&&(d.label=e);b.tracks[a.trackID]=d});return b}function D(a){if(a==null)return null;switch(a){case d("ZenonMWMessageTypes").ZenonMWTrackLabel.DEFAULT_AUDIO:return"audio";case d("ZenonMWMessageTypes").ZenonMWTrackLabel.DEFAULT_VIDEO:return"video";case d("ZenonMWMessageTypes").ZenonMWTrackLabel.SCREEN_AUDIO:return"screen_audio";case d("ZenonMWMessageTypes").ZenonMWTrackLabel.SCREEN_VIDEO:return"screen"}}function E(a){a=N[a];return(a=a)!=null?a:d("ZenonMWMessageTypes").ZenonMWDeviceStatus.OK}function F(a){switch(a){case d("ZenonDismissReason").ZenonDismissReason.IgnoreCall:return d("ZenonMWMessageTypes").ZenonMWHangupReason.IGNORE_CALL;case d("ZenonDismissReason").ZenonDismissReason.HangupCall:return d("ZenonMWMessageTypes").ZenonMWHangupReason.HANGUP_CALL;case d("ZenonDismissReason").ZenonDismissReason.NoAnswerTimeout:return d("ZenonMWMessageTypes").ZenonMWHangupReason.NO_ANSWER_TIMEOUT;case d("ZenonDismissReason").ZenonDismissReason.ClientError:return d("ZenonMWMessageTypes").ZenonMWHangupReason.CLIENT_ERROR;case d("ZenonDismissReason").ZenonDismissReason.InAnotherCall:return d("ZenonMWMessageTypes").ZenonMWHangupReason.IN_ANOTHER_CALL;case d("ZenonDismissReason").ZenonDismissReason.ClientInterrupted:return d("ZenonMWMessageTypes").ZenonMWHangupReason.CLIENT_INTERRUPTED;case d("ZenonDismissReason").ZenonDismissReason.SessionMigrated:return d("ZenonMWMessageTypes").ZenonMWHangupReason.SESSION_MIGRATED;default:return d("ZenonMWMessageTypes").ZenonMWHangupReason.HANGUP_CALL}}function G(a){var b={};a.tracks.forEach(function(a){b[a.trackID]=a.enabled});return b}function H(a){var b={},c=d("ZenonScreenShare").isDualStreamScreenSharingEnabled(a.tracks);a.tracks.forEach(function(a){var d={enabled:a.enabled},e=c?L(a.type):null;e!=null&&(d.label=e);b[a.trackID]=d});return{tracks:b}}function I(a){return P[a]}function J(a){return a==null?null:Q[a]}function K(a){var b={};a.forEach(function(a,c){b[c]=a});return b}function L(a){switch(a){case"audio":return d("ZenonMWMessageTypes").ZenonMWTrackLabel.DEFAULT_AUDIO;case"video":return d("ZenonMWMessageTypes").ZenonMWTrackLabel.DEFAULT_VIDEO;case"screen":return d("ZenonMWMessageTypes").ZenonMWTrackLabel.SCREEN_VIDEO;case"screen_audio":return d("ZenonMWMessageTypes").ZenonMWTrackLabel.SCREEN_AUDIO;default:return null}}function M(a,b,c){c===void 0&&(c=0);var d={fromVersion:b,tracks:[],version:c};a!=null&&Object.keys(a.tracks).forEach(function(b){var c=a.tracks[b];b={enabled:c.enabled,name:c.name,participantID:c.owner,trackID:b,type:D(c.label)};d.tracks.push(b)});return d}var N={IN_ANOTHER_CALL:d("ZenonMWMessageTypes").ZenonMWDeviceStatus.IN_ANOTHER_CALL,NOT_SUPPORTED:d("ZenonMWMessageTypes").ZenonMWDeviceStatus.NOT_SUPPORTED,OK:d("ZenonMWMessageTypes").ZenonMWDeviceStatus.OK},O=Object.freeze((h={},h[d("ZenonMWMessageTypes").ZenonMWParticipantCallState.UNKNOWN]=d("ZenonParticipantState").ZenonParticipantState.UNKNOWN,h[d("ZenonMWMessageTypes").ZenonMWParticipantCallState.DISCONNECTED]=d("ZenonParticipantState").ZenonParticipantState.DISCONNECTED,h[d("ZenonMWMessageTypes").ZenonMWParticipantCallState.NO_ANSWER]=d("ZenonParticipantState").ZenonParticipantState.NO_ANSWER,h[d("ZenonMWMessageTypes").ZenonMWParticipantCallState.REJECTED]=d("ZenonParticipantState").ZenonParticipantState.REJECTED,h[d("ZenonMWMessageTypes").ZenonMWParticipantCallState.UNREACHABLE]=d("ZenonParticipantState").ZenonParticipantState.UNREACHABLE,h[d("ZenonMWMessageTypes").ZenonMWParticipantCallState.CONNECTION_DROPPED]=d("ZenonParticipantState").ZenonParticipantState.CONNECTION_DROPPED,h[d("ZenonMWMessageTypes").ZenonMWParticipantCallState.CONTACTING]=d("ZenonParticipantState").ZenonParticipantState.CONTACTING,h[d("ZenonMWMessageTypes").ZenonMWParticipantCallState.RINGING]=d("ZenonParticipantState").ZenonParticipantState.RINGING,h[d("ZenonMWMessageTypes").ZenonMWParticipantCallState.CONNECTING]=d("ZenonParticipantState").ZenonParticipantState.CONNECTING,h[d("ZenonMWMessageTypes").ZenonMWParticipantCallState.CONNECTED]=d("ZenonParticipantState").ZenonParticipantState.CONNECTED,h[d("ZenonMWMessageTypes").ZenonMWParticipantCallState.PARTICIPANT_LIMIT_REACHED]=d("ZenonParticipantState").ZenonParticipantState.PARTICIPANT_LIMIT_REACHED,h[d("ZenonMWMessageTypes").ZenonMWParticipantCallState.IN_ANOTHER_CALL]=d("ZenonParticipantState").ZenonParticipantState.IN_ANOTHER_CALL,h[d("ZenonMWMessageTypes").ZenonMWParticipantCallState.RING_TYPE_UNSUPPORTED]=d("ZenonParticipantState").ZenonParticipantState.RING_TYPE_UNSUPPORTED,h[d("ZenonMWMessageTypes").ZenonMWParticipantCallState.PENDING_APPROVAL]=d("ZenonParticipantState").ZenonParticipantState.PENDING_APPROVAL,h[d("ZenonMWMessageTypes").ZenonMWParticipantCallState.APPROVED]=d("ZenonParticipantState").ZenonParticipantState.APPROVED,h[d("ZenonMWMessageTypes").ZenonMWParticipantCallState.FAILED_APPROVAL]=d("ZenonParticipantState").ZenonParticipantState.FAILED_APPROVAL,h[d("ZenonMWMessageTypes").ZenonMWParticipantCallState.UNCALLABLE]=d("ZenonParticipantState").ZenonParticipantState.UNREACHABLE,h[d("ZenonMWMessageTypes").ZenonMWParticipantCallState.HANGUP_IN_WAITING_ROOM]=d("ZenonParticipantState").ZenonParticipantState.HANGUP_IN_WAITING_ROOM,h)),P=Object.freeze((h={},h[d("ZenonSignalingTypes").ZenonSignalingStatusCode.OK]=d("ZenonMWMessageTypes").ZenonMWResponseStatusCode.OK,h[d("ZenonSignalingTypes").ZenonSignalingStatusCode.REJECTED_FROM_VERSION_DOES_NOT_MATCH]=d("ZenonMWMessageTypes").ZenonMWResponseStatusCode.CONDITIONAL_REQUEST_FAILED,h[d("ZenonSignalingTypes").ZenonSignalingStatusCode.METHOD_NOT_ALLOWED]=d("ZenonMWMessageTypes").ZenonMWResponseStatusCode.METHOD_NOT_ALLOWED,h)),Q=Object.freeze((h={},h[d("ZenonSignalingTypes").ZenonSignalingStatusSubCode.CLIENT_TERMINATED]=d("ZenonMWMessageTypes").ZenonMWResponseSubCode.CLIENT_TERMINATED,h));g.addDevTierOverridesToHeaderExtensions=l;g.addStateStoreSignalingEvents=a;g.createMWRequest=b;g.createMWResponse=e;g.fromMWDismissReason=f;g.fromMWJoinResponseStatusToDismissReason=m;g.fromMWParticipantState=n;g.getCollisionContextFromAppMessages=o;g.getGenericDataMessageData=p;g.getGenericDataMessageTopic=q;g.getMWAppID=r;g.getRoomMetadataFromAppMessages=s;g.getSandboxingTierFromURIOrEmpty=t;g.getSdpVersion=u;g.isUnifiedPlan=v;g.maybeAddOverlayConfigServerUpdateRequest=w;g.mwAppMessagesToSignalingAppMessages=x;g.mwMessageHeaderToSignalingMessageHeader=y;g.signalingMessageAppMessagesToMWAppMessages=z;g.toMWClientMediaStatus=C;g.toMWClientTrackContentType=D;g.toMWDeviceStatus=E;g.toMWHangupReason=F;g.toMWMediaStatus=G;g.toMWMediaStatusEx=H;g.toMWResponseStatusCode=I;g.toMWResponseStatusSubCode=J;g.toMWSyncStateStore=K;g.toMWTrackLabel=L;g.toZenonMediaStates=M}),98); __d("ZenonMachineToQPLEvent",["qpl"],(function(a,b,c,d,e,f,g){"use strict";a={ConnectionStateMachine:c("qpl")._(64243854,"2452"),ParentSignalingClient:c("qpl")._(64234815,"1094"),PeerConnectionStateMachine:c("qpl")._(64239068,"6172"),SignalingStateMachine:c("qpl")._(64245348,"8823")};g["default"]=a}),98); __d("ZenonDebugLogger",["ChannelClientID","CurrentUser","FBLogger","Log","LogHistory","ODS","QuickLogActionType","QuickPerformanceLogger","RpWebStateMachineLoggingBlocklist","UserAgentData","ZenonAuditedCheckpointLogId","ZenonIceStatsParser","ZenonInfraActionsLogger","ZenonMWMessageMap","ZenonMWMessageTypes","ZenonMWTranslatorUtils","ZenonMachineToQPLEvent","formatDate","gkx","qpl"],(function(a,b,c,d,e,f,g){"use strict";var h=null;a=function(){a.getInstance=function(){h||(h=new a());return h};a.getFBLogger=function(a){var b;a===void 0&&(a={});return c("FBLogger")("rpweb").addMetadata("RT_WEB","CALL_ID",""+((b=a.signalingID)!=null?b:"null")).addMetadata("RT_WEB","PEER_ID",""+((b=a.peerID)!=null?b:"null"))};function a(){this.$1=d("LogHistory").getInstance("webrtc");this.$2=d("ChannelClientID").getID();this.$3=JSON.stringify({browser:c("UserAgentData").browserName,browser_version:c("UserAgentData").browserFullVersion,device:c("UserAgentData").deviceName,msg_source:"web",os:c("UserAgentData").platformName,os_version:c("UserAgentData").platformFullVersion,version:2});var a=c("CurrentUser").getAppID();a!=null&&(a===936619743392459..toString()||a===1217981644879628..toString())?this.$4=parseInt(a):this.$4=219994525426954;this.$5=new Set(c("RpWebStateMachineLoggingBlocklist").EVENT_TYPES);this.$6=new Set(c("RpWebStateMachineLoggingBlocklist").STATES);this.$7=new Set(c("RpWebStateMachineLoggingBlocklist").MESSAGE_TYPES)}var b=a.prototype;b.$8=function(a,b,d){b===void 0&&(b=!0);var e=c("formatDate")(new Date(),"[H:i:s:X]",{skipPatternLocalization:!0});this.$1.log("Console",e+" "+a);b&&c("ZenonInfraActionsLogger").logCheckpoint({checkpoint:"[ZP] "+a,messageID:d})};b.$9=function(a,b,d){var e=c("formatDate")(new Date(),"[H:i:s:X]",{skipPatternLocalization:!0});this.$1.log("Console",e+" "+a+". StateMachineID: "+((e=b)!=null?e:""));e={auditId:c("ZenonAuditedCheckpointLogId").RP_ROOMS_INFRA_WWW__STATE_MACHINE,checkpoint:"[ZP] "+a+".",stateMachineID:b};d!=null&&(e.messageID=d);c("ZenonInfraActionsLogger").logCheckpoint(e)};b.$10=function(a,b,d,e){e===void 0&&(e=0);a=c("ZenonMachineToQPLEvent")==null?void 0:c("ZenonMachineToQPLEvent")[a];if(!a||!c("QuickPerformanceLogger")||!c("QuickLogActionType"))return;d==="terminated"?c("QuickPerformanceLogger").markerEnd(a,2,e):c("QuickPerformanceLogger").markerPoint(a,b,{data:{string:{data:d}},instanceKey:e})};b.$11=function(a){return isNaN(+a)?0:+a};b.$12=function(a){a=a.jsonPayload.header;return a.responseStatusCode!=null};b.getLogHistory=function(){return this.$1};b.logStateMachine=function(a,b,d,e,f){if(!c("gkx")("2890"))return;if(this.$5.has(d))return;var g="["+a+"] [Current State: "+b+"] Processing event: "+d;g={auditId:c("ZenonAuditedCheckpointLogId").RP_ROOMS_INFRA_WWW__STATE_MACHINE,checkpoint:""+g,stateMachineID:e};f!=null&&(g.messageID=f);c("ZenonInfraActionsLogger").logCheckpoint(g);this.$10(a,d,b,this.$11(e))};b.logStateMachineTransition=function(a,b,d,e,f,g,h,i){if(this.$6.has(d)||this.$5.has(f))return;if(!c("gkx")("2890"))return;var j="";g!=null&&g.length===1&&g[0].type==="defer"?j="["+a+"] [[DEFERRED] "+f+" did not trigger transition. Current state remains "+d:d!==e?j="["+a+"] [[PROCESSED] "+f+" caused transition from "+(e||"")+" to "+d+".":b?j="["+a+"] [[PROCESSED] "+f+" did not trigger transition. Current state remains "+d:(j="["+a+"] [[DROPPED] "+f+" did not trigger transition. Current state remains "+d,this.$13(a));this.$9(j,h,i)};b.logMWMessage=function(a,b,e){this.$14(a,b,e);var f=e.jsonPayload.header;if(f.type===d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.JOIN){if(!c("QuickPerformanceLogger")||!c("QuickLogActionType"))return;this.$12(e)?(c("QuickPerformanceLogger").markerPoint(c("qpl")._(41156609,"943"),"signaling_mw_join_response_recv",{instanceKey:this.$11(f.clientSessionId)}),c("QuickPerformanceLogger").markerEnd(c("qpl")._(41156609,"943"),2,this.$11(f.clientSessionId))):(c("QuickPerformanceLogger").markerStart(c("qpl")._(41156609,"943"),this.$11(f.clientSessionId)),c("QuickPerformanceLogger").markerPoint(c("qpl")._(41156609,"943"),"signaling_mw_join_req_sent",{instanceKey:this.$11(f.clientSessionId)}))}if(e.jsonPayload==null||!c("gkx")("2890"))return;var g=c("ZenonMWMessageMap")[f.type],h=this.$12(e)?"RESPONSE":"REQUEST";e=this.$15(e);a="[ms] "+a+" ["+b+"] "+g+" "+h+" [retryCount: "+f.retryCount+(e!=null?" details: "+e:"")+"]";this.$7.has(g)||this.$8(a,!0,f.transactionId)};b.startQPL=function(a,b){b===void 0&&(b=0),c("QuickPerformanceLogger")&&c("QuickPerformanceLogger").markerStart(a,this.$11(b))};b.endQPL=function(a,b){b===void 0&&(b=0),c("QuickPerformanceLogger")&&c("QuickLogActionType")&&c("QuickPerformanceLogger").markerEnd(a,2,this.$11(b))};b.$14=function(a,b,c){a=this.$16(a,b,c);a!==null&&d("ODS").bumpEntityKey(4083,"zenon_signaling",a)};b.$16=function(a,b,e){if(e.jsonPayload==null)return null;var f=e.jsonPayload,g=f.body;f=f.header;var h="";switch(f.type){case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.DATA_MESSAGE:if(g.dataMessageRequest){h=(g=d("ZenonMWTranslatorUtils").getGenericDataMessageTopic(g.dataMessageRequest))!=null?g:"undefined"}break}g=this.$12(e)?"response":"request";e=c("ZenonMWMessageMap")[f.type];if(h==="")return a+"-"+b+"-"+e+"-"+g;else return a+"-"+b+"-"+e+"-"+g+"-"+h};b.$15=function(a){if(a.jsonPayload==null)return null;var b=a.jsonPayload,c=b.body;b=b.header;switch(b.type){case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.JOIN:if(this.$12(a)){var e;return JSON.stringify({hasAnswer:((e=c.joinResponse)==null?void 0:e.answer)!=null,hasRenegotiationOffer:((e=c.joinResponse)==null?void 0:e.renegotiationOffer)!=null,isPendingApproval:(e=c.joinResponse)==null?void 0:e.isPendingApproval,multipleVideoStreamsAllowed:(e=c.joinResponse)==null?void 0:e.multipleVideoStreamsAllowed,statusCode:b.responseStatusCode,subCode:b.responseSubCode})}return JSON.stringify({deviceCapabilities:(e=c.joinRequest)==null?void 0:e.deviceCapabilities,sdpType:((e=c.joinRequest)==null?void 0:e.offer)!=null?"offer":((e=c.joinRequest)==null?void 0:e.answer)!=null?"answer":"null",userCapabilities:(e=c.joinRequest)==null?void 0:e.userCapabilities});case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.SERVER_MEDIA_UPDATE:if(this.$12(a)){return JSON.stringify({currentVersion:(e=c.serverMediaUpdateResponse)==null?void 0:e.currentVersion,hasAnswer:((e=c.serverMediaUpdateResponse)==null?void 0:e.answer)!=null,statusCode:b.responseStatusCode})}return JSON.stringify({fromVersion:(e=c.serverMediaUpdateRequest)==null?void 0:e.fromVersion,messageTags:b.messageTags,renegotiationRequested:(e=(e=c.serverMediaUpdateRequest)==null?void 0:e.renegotiationRequested)!=null?e:!1,sdpType:((e=c.serverMediaUpdateRequest)==null?void 0:e.offer)?"offer":((e=c.serverMediaUpdateRequest)==null?void 0:e.answer)?"answer":((e=c.serverMediaUpdateRequest)==null?void 0:e.update)?"delta":"empty",toVersion:(e=(e=c.serverMediaUpdateRequest)==null?void 0:e.toVersion)!=null?e:""});case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.CLIENT_MEDIA_UPDATE:if(this.$12(a)){return JSON.stringify({currentVersion:(e=(e=c.clientMediaUpdateResponse)==null?void 0:e.currentVersion)!=null?e:"",statusCode:b.responseStatusCode})}return JSON.stringify({fromVersion:(b=(e=c.clientMediaUpdateRequest)==null?void 0:e.fromVersion)!=null?b:"",toVersion:(b=(e=c.clientMediaUpdateRequest)==null?void 0:e.toVersion)!=null?b:""});case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.SUBSCRIPTION:return this.$12(a)?null:JSON.stringify({subscriptions:(b=(e=c.subscriptionRequest)==null?void 0:e.subscriptions)!=null?b:""});case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.ICE_CANDIDATE:if(this.$12(a))return null;b=(e=c.iceCandidateRequest)==null?void 0:e.iceCandidateSdps.map(function(a){a=a.candidateSdpString;if(a!=null)return d("ZenonIceStatsParser").extractIceInfo(a)});return JSON.stringify({iceCandidates:b});default:return null}};b.logConsole=function(a){this.$8(a,!1)};b.logMQTTStateChange=function(a){var b="mqtt_client_state_"+a;c("ZenonInfraActionsLogger").logCounter(b);c("gkx")("2890")&&c("ZenonInfraActionsLogger").logCheckpoint({checkpoint:"[ZP] onMQTTStateChanged: "+a+", document.visibility: "+document.visibilityState+", document.hasFocus: "+String(document.hasFocus())+", navigator.onLine: "+String(navigator.onLine)})};b.logMQTTConnectStats=function(a,b){c("ZenonInfraActionsLogger").logCheckpoint({checkpoint:"[ZP] MQTT Connection time: "+String(a)+"ms, Retry Count: "+String(b)})};b.logSendMultiwayMessageFailure=function(a,b){d("ODS").bumpEntityKey(4083,"zenon_multiway","send_message_failure"),d("ODS").flush(),c("ZenonInfraActionsLogger").logCheckpoint({checkpoint:"Failed to send MW message of type "+b+". Error msg: "+a+":"})};b.$13=function(a){d("ODS").bumpEntityKey(4083,"zenon_state_machine",a+"_event_dropped"),d("ODS").flush()};return a}();g["default"]=a}),98); __d("ZenonUserActionLogger",["RtcWebUserActionsDebugFalcoEvent","RtcWebUserActionsFalcoEvent","ZenonDebugLogger","ZenonSDESKeyDetector","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h=new Map(),i=window.location.hostname.search("facebook")!==-1?"facebook":window.location.hostname.search("messenger")!==-1?"messenger_dot_com":null,j={logCheckpoint:function(a){j.logEvent(babelHelpers["extends"]({},a,{event:"checkpoint"}))},logClick:function(a){j.logEvent(babelHelpers["extends"]({},a,{event:"tap"}))},logError:function(a){j.logEvent(babelHelpers["extends"]({},a,{event:"error"}))},logEvent:function(a){var b;if(c("ZenonSDESKeyDetector")(a))throw c("unrecoverableViolation")("ZenonUserActionLogger event contains SDES crypto key! This log entry must be removed!","rtc_www");b=babelHelpers["extends"]({},a,{page:(b=a.page)!=null?b:i});var d=babelHelpers["extends"]({},b,{client_time:Date.now().toString()});c("RtcWebUserActionsDebugFalcoEvent").log(function(){return d});c("RtcWebUserActionsFalcoEvent").log(function(){return d});c("ZenonDebugLogger").getInstance().getLogHistory().log((a=a.event)!=null?a:"null",JSON.stringify(b))},logImpression:function(a){j.logEvent(babelHelpers["extends"]({},a,{event:"impression"}))},logPreCallClick:function(a){j.logEvent(babelHelpers["extends"]({},a,{event:"tap"}))},logPreCallImpression:function(a){j.logEvent(babelHelpers["extends"]({},a,{event:"impression"}))},startTimer:function(a){var b=Date.now();h=h.set(a,b);j.logCheckpoint({checkpoint:a+"_timerStart"})},stopTimer:function(a){var b=a.checkpointName===void 0?a.timerName:a.checkpointName,c=a.event||{},d=function(a){var b=h.get(a);if(b!=null){h["delete"](a);return parseInt(Date.now()-b,10)}return null};d=d(a.timerName);j.logCheckpoint(babelHelpers["extends"]({},c,{checkpoint:b+"_timerEnd",event_time_elapsed:d==null?void 0:d.toString()}));return parseInt(d,10)}};f.exports=j}),34);/*FB_PKG_DELIM*/ /** * License: https://www.facebook.com/legal/license/t3hOLs8wlXy/ */ __d("javascript-blowfish-1.0.5",[],(function(a,b,c,d,e,f){"use strict";b={};var g={exports:b};function h(){var a=function(b,c){this.key=b,(c==="ecb"||c==="cbc")&&(this.mode=c),this.sBox0=a.sBox0.slice(),this.sBox1=a.sBox1.slice(),this.sBox2=a.sBox2.slice(),this.sBox3=a.sBox3.slice(),this.pArray=a.pArray.slice(),this.generateSubkeys(b)};a.prototype={sBox0:null,sBox1:null,sBox2:null,sBox3:null,pArray:null,key:null,mode:"ecb",iv:"abc12345",keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encrypt:function(a,b){if(this.mode==="ecb")return this.encryptECB(a);if(this.mode==="cbc")return this.encryptCBC(a,b);throw new Error("\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f.")},decrypt:function(a,b){if(this.mode==="ecb")return this.decryptECB(a);if(this.mode==="cbc")return this.decryptCBC(a,b);throw new Error("\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f.")},encryptECB:function(a){a=this.utf8Decode(a);var b=Math.ceil(a.length/8),c="";for(var d=0;d>>24,c=a<<8>>>24,d=a<<16>>>24;a=a<<24>>>24;b=this.addMod32(this.sBox0[b],this.sBox1[c]);b=this.xor(b,this.sBox2[d]);b=this.addMod32(b,this.sBox3[a]);return b},encipher:function(a,b){var c;for(var d=0;d<16;d++)a=this.xor(a,this.pArray[d]),b=this.xor(this.F(a),b),c=a,a=b,b=c;c=a;a=b;b=c;b=this.xor(b,this.pArray[16]);a=this.xor(a,this.pArray[17]);return[a,b]},decipher:function(a,b){var c;a=this.xor(a,this.pArray[17]);b=this.xor(b,this.pArray[16]);c=a;a=b;b=c;for(var d=15;d>=0;d--)c=a,a=b,b=c,b=this.xor(this.F(a),b),a=this.xor(a,this.pArray[d]);return[a,b]},generateSubkeys:function(a){var b=0,c=0,d,e;for(d=0;d<18;d++){for(e=4;e>0;e--)b=this.fixNegative(b<<8|a.charCodeAt(c)),c=(c+1)%a.length;this.pArray[d]=this.xor(this.pArray[d],b);b=0}e=[0,0];for(d=0;d<18;d+=2)e=this.encipher(e[0],e[1]),this.pArray[d]=e[0],this.pArray[d+1]=e[1];for(d=0;d<256;d+=2)e=this.encipher(e[0],e[1]),this.sBox0[d]=e[0],this.sBox0[d+1]=e[1];for(d=0;d<256;d+=2)e=this.encipher(e[0],e[1]),this.sBox1[d]=e[0],this.sBox1[d+1]=e[1];for(d=0;d<256;d+=2)e=this.encipher(e[0],e[1]),this.sBox2[d]=e[0],this.sBox2[d+1]=e[1];for(d=0;d<256;d+=2)e=this.encipher(e[0],e[1]),this.sBox3[d]=e[0],this.sBox3[d+1]=e[1]},block32toNum:function(a){return this.fixNegative(a.charCodeAt(0)<<24|a.charCodeAt(1)<<16|a.charCodeAt(2)<<8|a.charCodeAt(3))},num2block32:function(a){return String.fromCharCode(a>>>24)+String.fromCharCode(a<<8>>>24)+String.fromCharCode(a<<16>>>24)+String.fromCharCode(a<<24>>>24)},xor:function(a,b){return this.fixNegative(a^b)},addMod32:function(a,b){return this.fixNegative(a+b|0)},fixNegative:function(a){return a>>>0},split64by32:function(a){var b=a.substring(0,4);a=a.substring(4,8);return[this.block32toNum(b),this.block32toNum(a)]},utf8Decode:function(a){var b="";for(var c=0;c127&&d<2048?(b+=String.fromCharCode(d>>6|192),b+=String.fromCharCode(d&63|128)):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128),b+=String.fromCharCode(d&63|128))}return b},utf8Encode:function(a){var b="",c=0,d=0,e=0,f;while(c191&&d<224?(e=a.charCodeAt(c+1),b+=String.fromCharCode((d&31)<<6|e&63),c+=2):(e=a.charCodeAt(c+1),f=a.charCodeAt(c+2),b+=String.fromCharCode((d&15)<<12|(e&63)<<6|f&63),c+=3);return b},base64Encode:function(a){var b="",c,d,e,f,g,h,i=0;while(i>2,c=(c&3)<<4|d>>4,g=(d&15)<<2|e>>6,h=e&63,isNaN(d)?g=h=64:isNaN(e)&&(h=64),b=b+this.keyStr.charAt(f)+this.keyStr.charAt(c)+this.keyStr.charAt(g)+this.keyStr.charAt(h);return b},base64Decode:function(a){var b="",c,d,e,f,g,h=0;a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(h>4,e=(e&15)<<4|f>>2,c=(f&3)<<6|g,b=b+String.fromCharCode(d),f!=64&&(b=b+String.fromCharCode(e)),g!=64&&(b=b+String.fromCharCode(c));return b},trimZeros:function(a){return a.replace(/\0+$/g,"")}};a.pArray=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731];a.sBox0=[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946];a.sBox1=[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055];a.sBox2=[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504];a.sBox3=[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462];g.exports=a}var i=!1;function j(){i||(i=!0,h());return g.exports}function a(a){switch(a){case void 0:return j()}}e.exports=a}),null); __d("javascript-blowfish",["javascript-blowfish-1.0.5"],(function(a,b,c,d,e,f){e.exports=b("javascript-blowfish-1.0.5")()}),null); /** * License: https://www.facebook.com/legal/license/t3hOLs8wlXy/ */ __d("minisearch-3.0.2",[],(function(a,b,c,d,e,f){"use strict";var g={},h={exports:g},i;function j(){(function(b,c){typeof g==="object"&&typeof h!=="undefined"?h.exports=c():typeof i==="function"&&i.amd?i(c):(b=typeof globalThis!=="undefined"?globalThis:b||self,b.MiniSearch=c())})(this,function(){var a=function(){a=Object.assign||function(a){for(var b,c=1,d=arguments.length;c=a.length&&(a=void 0);return{value:a&&a[d++],done:!a}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(a,b){var c=typeof Symbol==="function"&&a[Symbol.iterator];if(!c)return a;a=c.call(a);var d,e=[],f;try{while((b===void 0||b-->0)&&!(d=a.next()).done)e.push(d.value)}catch(a){f={error:a}}finally{try{d&&!d.done&&(c=a["return"])&&c.call(a)}finally{if(f)throw f.error}}return e}function d(){for(var a=[],b=0;b0?[{node:c,keys:d}]:[]}a.prototype.next=function(){var a=this.dive();this.backtrack();return a};a.prototype.dive=function(){if(this._path.length===0)return{done:!0,value:void 0};var a=j(this._path),b=a.node;a=a.keys;if(j(a)===h)return{done:!1,value:this.result()};this._path.push({node:b[j(a)],keys:Object.keys(b[j(a)])});return this.dive()};a.prototype.backtrack=function(){if(this._path.length===0)return;j(this._path).keys.pop();if(j(this._path).keys.length>0)return;this._path.pop();this.backtrack()};a.prototype.key=function(){return this.set._prefix+this._path.map(function(a){a=a.keys;return j(a)}).filter(function(a){return a!==h}).join("")};a.prototype.value=function(){return j(this._path).node[h]};a.prototype.result=function(){if(this._type===g)return this.value();return this._type===f?this.key():[this.key(),this.value()]};a.prototype[Symbol.iterator]=function(){return this};return a}(),j=function(a){return a[a.length-1]},k=0,l=1,m=2,n=3,o=function(a,b,d){var e=[{distance:0,i:0,key:"",node:a}],f={},g=[];a=function(){var a=e.pop(),i=a.node,j=a.distance,k=a.key,l=a.i,m=a.edit;Object.keys(i).forEach(function(n){if(n===h){var o=j+(b.length-l),a=c(f[k]||[null,Infinity],2);a=a[1];o<=d&&o0)a();return f},p=function(a,b,c,d,e,f){f.push({distance:0,ia:d,ib:0,edit:e});d=[];while(f.length>0){e=f.pop();var g=e.distance,h=e.ia,i=e.ib;e=e.edit;if(i===b.length){d.push({distance:g,i:h,edit:e});continue}if(a[h]===b[i])f.push({distance:g,ia:h+1,ib:i+1,edit:k});else{if(g>=c)continue;e!==m&&f.push({distance:g+1,ia:h,ib:i+1,edit:n});h=d)return e;return a[c]!==b[c]?e:u(a,b,c+1,d,e+a[c])},v=function(a,b){a=c(r(a,b),2);b=a[0];a=a[1];if(b===void 0)return;delete b[h];var d=Object.keys(b);d.length===0&&w(a);d.length===1&&x(a,d[0],b[d[0]])},w=function(b){if(b.length===0)return;var a=c(y(b),2),d=a[0];a=a[1];delete d[a];Object.keys(d).length===0&&w(b.slice(0,-1))},x=function(a,b,d){if(a.length===0)return;a=c(y(a),2);var e=a[0];a=a[1];e[a+b]=d;delete e[a]},y=function(a){return a[a.length-1]},z,A="or",B="and",C=function(){function b(b){if((b===null||b===void 0?void 0:b.fields)==null)throw new Error('MiniSearch: option "fields" must be provided');this._options=a(a(a({},J),b),{searchOptions:a(a({},K),b.searchOptions||{})});this._index=new q();this._documentCount=0;this._documentIds={};this._fieldIds={};this._fieldLength={};this._averageFieldLength={};this._nextId=0;this._storedFields={};this.addFields(this._options.fields)}b.prototype.add=function(b){var c=this,a=this._options,d=a.extractField,e=a.tokenize,f=a.processTerm,g=a.fields;a=a.idField;var h=d(b,a);if(h==null)throw new Error('MiniSearch: document does not have ID field "'+a+'"');var i=this.addDocumentId(h);this.saveStoredFields(i,b);g.forEach(function(a){var g=d(b,a);if(g==null)return;g=e(g.toString(),a);c.addFieldLength(i,c._fieldIds[a],c.documentCount-1,g.length);g.forEach(function(b){b=f(b,a);b&&c.addTerm(c._fieldIds[a],i,b)})})};b.prototype.addAll=function(a){var b=this;a.forEach(function(a){return b.add(a)})};b.prototype.addAllAsync=function(a,b){var c=this;b===void 0&&(b={});b=b.chunkSize;var d=b===void 0?10:b;b={chunk:[],promise:Promise.resolve()};a=a.reduce(function(a,e,f){var b=a.chunk;a=a.promise;b.push(e);if((f+1)%d===0)return{chunk:[],promise:a.then(function(){return new Promise(function(a){return setTimeout(a,0)})}).then(function(){return c.addAll(b)})};else return{chunk:b,promise:a}},b);var e=a.chunk;b=a.promise;return b.then(function(){return c.addAll(e)})};b.prototype.remove=function(b){var d=this,a=this._options,e=a.tokenize,f=a.processTerm,g=a.extractField,h=a.fields;a=a.idField;var i=g(b,a);if(i==null)throw new Error('MiniSearch: document does not have ID field "'+a+'"');a=c(Object.entries(this._documentIds).find(function(a){a=c(a,2);a[0];a=a[1];return i===a})||[],1);var j=a[0];if(j==null)throw new Error("MiniSearch: cannot remove document with ID "+i+": it is not in the index");h.forEach(function(a){var c=g(b,a);if(c==null)return;c=e(c.toString(),a);c.forEach(function(b){b=f(b,a);b&&d.removeTerm(d._fieldIds[a],j,b)})});delete this._storedFields[j];delete this._documentIds[j];this._documentCount-=1};b.prototype.removeAll=function(a){var b=this;if(a)a.forEach(function(a){return b.remove(a)});else if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");else this._index=new q(),this._documentCount=0,this._documentIds={},this._fieldLength={},this._averageFieldLength={},this._storedFields={},this._nextId=0};b.prototype.search=function(d,e){var f=this;e===void 0&&(e={});var b=this._options,g=b.tokenize,h=b.processTerm;b=b.searchOptions;var i=a(a({tokenize:g,processTerm:h},b),e);g=i.tokenize;var j=i.processTerm;h=g(d).map(function(a){return j(a)}).filter(function(a){return!!a});b=h.map(H(i));e=b.map(function(a){return f.executeQuery(a,i)});g=this.combineResults(e,i.combineWith);return Object.entries(g).reduce(function(d,a){a=c(a,2);var e=a[0];a=a[1];var b=a.score,g=a.match;a=a.terms;a={id:f._documentIds[e],terms:I(a),score:b,match:g};Object.assign(a,f._storedFields[e]);(i.filter==null||i.filter(a))&&d.push(a);return d},[]).sort(function(a,b){a=a.score;b=b.score;return aa.clientHeight*2;if(!e&&!F.current&&!K)if(M){if(!g&&t!=null)return t()}else{F.current=!0;c("promiseDone")(Promise.resolve(d("SortedAsyncIterable").toArray(p(f==="asc"?d("ReQL").fromTableAscending(B):d("ReQL").fromTableDescending(B),b).bounds(f==="asc"?{gt:S[S.length-1][0]}:{lt:S[S.length-1][0]}).take(x))),function(a){F.current=!1;var b=a.lengtha.clientHeight*2;if(!e&&!F.current&&!K)if(N){if(!r&&u!=null)return u()}else{F.current=!0;c("promiseDone")(Promise.resolve(d("SortedAsyncIterable").toArray(p(f==="asc"?d("ReQL").fromTableDescending(B):d("ReQL").fromTableAscending(B),b).bounds(f==="asc"?{lt:S[0][0]}:{gt:S[0][0]}).take(x))),function(a){F.current=!1;var b=a.lengthe?X-e:0);for(var Z=e;Z0&&n;if(m){r=function(a){if(k!==void 0){c("promiseDone")(j.runInTransaction(function(b){return c("LSOptimisticPseudoUnblock")(k.id,a,d("LS.bs").make(b))},"readwrite"),function(a){return c("bs_curry")._1(e)},function(a){return c("bs_curry")._1(e)});return}};return g({contact:k,entryPoint:h,onClose:function(a){},onOptIn:r,thread:l},function(a){})}if(!o)return c("bs_curry")._1(e);n=function(a){a=c("bs_belt_Option").flatMap(p,function(a){return c("bs_caml_option").nullable_to_opt(d("WebStorage.bs").setItemGuarded(a,q,"true"))});a!==void 0&&c("recoverableViolation")("Unable to set item at path for BlockedUserInterstitial","messenger_web_product");return c("bs_curry")._1(e)};return f({blockees:b,onOptIn:n,thread:l},function(a){})})},[c("bs_int64").to_string(a)])}g.getWarningCardStorageKey=i;g.useHook=a}),98); __d("MWUseAriaLabelForThread.bs",["fbt","MWPActor.bs","MWPGetThreadTitle.bs","ReQL.bs","ReQLSuspense","bs_belt_Option","react","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){var b=d("MWPActor.bs").useActor(),e=c("useReStore")(),f=d("ReQLSuspense").useArray(function(){return d("ReQL.bs").take(d("ReQL.bs").leftJoin(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(e.table("participants")),{hd:a.threadKey,tl:0}),d("ReQL.bs").fromTableAscending(e.table("contacts"))),8)},[a.threadKey]);return i.useMemo(function(){var e=a.threadName;if(e!==void 0)return h._("__JHASH__Hkglfueb2S7__JHASH__",[h._param("name of conversation",e)]).toString();e=c("bs_belt_Option").getWithDefault(d("MWPGetThreadTitle.bs").computeThreadTitle(void 0,a,f,b),"");return h._("__JHASH__Bc4odEiE4Gu__JHASH__",[h._param("participant list",e)]).toString()},[a.threadName,b])}b=a;g.useHook=b}),98); __d("XCometArchivedThreadsControllerRouteBuilder",["jsExtraRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsExtraRouteBuilder")("/messages/archived/t/{thread_key}/",Object.freeze({}),["/messages/archived/"],void 0);b=a;g["default"]=b}),98); __d("XMessengerDotComCometArchivedThreadsControllerRouteBuilder",["jsExtraRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsExtraRouteBuilder")("/archived/t/{thread_key}/",Object.freeze({}),["/archived/"],void 0);b=a;g["default"]=b}),98); __d("MWInboxArchivedThreadsRouteBuilder.bs",["CurrentEnvironment","XCometArchivedThreadsControllerRouteBuilder","XMessengerDotComCometArchivedThreadsControllerRouteBuilder"],(function(a,b,c,d,e,f,g){"use strict";a=c("CurrentEnvironment").facebookdotcom?{buildURL:function(a){return c("XCometArchivedThreadsControllerRouteBuilder").buildURL(a)},buildURLWithoutThread:function(a){return c("XCometArchivedThreadsControllerRouteBuilder").buildExtraURL("/messages/archived/",a)}}:{buildURL:function(a){return c("XMessengerDotComCometArchivedThreadsControllerRouteBuilder").buildURL(a)},buildURLWithoutThread:function(a){return c("XMessengerDotComCometArchivedThreadsControllerRouteBuilder").buildExtraURL("/archived/",a)}};b=a.buildURL;d=a.buildURLWithoutThread;g.routeBuilderModule=a;g.buildURL=b;g.buildURLWithoutThread=d}),98); __d("XCometBusinessSupportThreadsControllerRouteBuilder",["jsExtraRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsExtraRouteBuilder")("/messages/business_support/t/{thread_key}/",Object.freeze({}),["/messages/business_support/"],void 0);b=a;g["default"]=b}),98); __d("XMessengerDotComCometBusinessSupportThreadsControllerRouteBuilder",["jsExtraRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsExtraRouteBuilder")("/business_support/t/{thread_key}/",Object.freeze({}),["/business_support/"],void 0);b=a;g["default"]=b}),98); __d("MWInboxBusinessSupportThreadsRouteBuilder.bs",["CurrentEnvironment","XCometBusinessSupportThreadsControllerRouteBuilder","XMessengerDotComCometBusinessSupportThreadsControllerRouteBuilder"],(function(a,b,c,d,e,f,g){"use strict";a=c("CurrentEnvironment").facebookdotcom?{buildURL:function(a){return c("XCometBusinessSupportThreadsControllerRouteBuilder").buildURL(a)},buildURLWithoutThread:function(a){return c("XCometBusinessSupportThreadsControllerRouteBuilder").buildExtraURL("/messages/business_support/",a)}}:{buildURL:function(a){return c("XMessengerDotComCometBusinessSupportThreadsControllerRouteBuilder").buildURL(a)},buildURLWithoutThread:function(a){return c("XMessengerDotComCometBusinessSupportThreadsControllerRouteBuilder").buildExtraURL("/business_support/",a)}};b=a.buildURL;d=a.buildURLWithoutThread;g.routeBuilderModule=a;g.buildURL=b;g.buildURLWithoutThread=d}),98); __d("XCometMarketplaceThreadsControllerRouteBuilder",["jsExtraRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsExtraRouteBuilder")("/messages/marketplace/t/{thread_key}/",Object.freeze({}),["/messages/marketplace/"],void 0);b=a;g["default"]=b}),98); __d("XMessengerDotComCometMarketplaceThreadsControllerRouteBuilder",["jsExtraRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsExtraRouteBuilder")("/marketplace/t/{thread_key}/",Object.freeze({}),["/marketplace/"],void 0);b=a;g["default"]=b}),98); __d("MWInboxMarketplaceThreadsRouteBuilder.bs",["CurrentEnvironment","XCometMarketplaceThreadsControllerRouteBuilder","XMessengerDotComCometMarketplaceThreadsControllerRouteBuilder"],(function(a,b,c,d,e,f,g){"use strict";a=c("CurrentEnvironment").facebookdotcom?{buildURL:function(a){return c("XCometMarketplaceThreadsControllerRouteBuilder").buildURL(a)},buildURLWithoutThread:function(a){return c("XCometMarketplaceThreadsControllerRouteBuilder").buildExtraURL("/messages/marketplace/",a)}}:{buildURL:function(a){return c("XMessengerDotComCometMarketplaceThreadsControllerRouteBuilder").buildURL(a)},buildURLWithoutThread:function(a){return c("XMessengerDotComCometMarketplaceThreadsControllerRouteBuilder").buildExtraURL("/marketplace/",a)}};b=a.buildURL;d=a.buildURLWithoutThread;g.routeBuilderModule=a;g.buildURL=b;g.buildURLWithoutThread=d}),98); __d("XCometMessageRequestsControllerRouteBuilder",["jsExtraRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsExtraRouteBuilder")("/messages/requests/t/{thread_key}/",Object.freeze({}),["/messages/requests/"],void 0);b=a;g["default"]=b}),98); __d("XMessengerDotComCometMessageRequestsControllerRouteBuilder",["jsExtraRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsExtraRouteBuilder")("/requests/t/{thread_key}/",Object.freeze({}),["/requests/"],void 0);b=a;g["default"]=b}),98); __d("MWInboxMessageRequestsRouteBuilder.bs",["CurrentEnvironment","XCometMessageRequestsControllerRouteBuilder","XMessengerDotComCometMessageRequestsControllerRouteBuilder"],(function(a,b,c,d,e,f,g){"use strict";a=c("CurrentEnvironment").facebookdotcom?{buildURL:function(a){return c("XCometMessageRequestsControllerRouteBuilder").buildURL(a)},buildURLWithoutThread:function(a){return c("XCometMessageRequestsControllerRouteBuilder").buildExtraURL("/messages/requests/",a)}}:{buildURL:function(a){return c("XMessengerDotComCometMessageRequestsControllerRouteBuilder").buildURL(a)},buildURLWithoutThread:function(a){return c("XMessengerDotComCometMessageRequestsControllerRouteBuilder").buildExtraURL("/requests/",a)}};b=a.buildURL;d=a.buildURLWithoutThread;g.routeBuilderModule=a;g.buildURL=b;g.buildURLWithoutThread=d}),98); __d("MWSelectedThreadOptionsIdContext.bs",["react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=h.createContext();function a(a){var b=a.children;a=a.threadId;return h.createElement(i.Provider,{children:b,value:a})}b=a;g.context=i;g.make=b}),98); __d("useMWV2ChatOpenTabTraceProvider",["CometHeroLogging","ODS","qpl","react","useCometInteractionTracing"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useCallback,i=!1;function j(a){return a===15||a===16}function a(){var a=c("useCometInteractionTracing")(c("qpl")._(30605380,"18"),"responsive","INTERACTION");return h(function(b,e,f,g){d("ODS").bumpEntityKey(3185,"mwchat_tab","open_tab_start");var h=j(e);a(function(a){var g=c("CometHeroLogging").genHeroInteractionUUIDAndMarkStart(a.getTraceId());a.onComplete(function(){d("ODS").bumpEntityKey(3185,"mwchat_tab","open_tab_completed"),a.addMetadata("messagingThreadType",e),a.addMetadata("entrypoint",f),a.addMetadata("version",2),a.addMetadata("isSecure",h?1:0),i?a.addMetadata("revisit",1):(a.addMetadata("revisit",0),i=!0)});b(g)},void 0,void 0,void 0,g)},[a])}g["default"]=a}),98); __d("MWClickedMessageContext.react",["I64","LS.re","LSFetchMessageSeenCount","cr:3775","emptyFunction","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");e=d("react");var i=e.createContext,j=e.useCallback,k=e.useContext,l=e.useMemo,m=e.useState,n=i({clickedMessageId:null,fetchMessageSeenCount:c("emptyFunction"),hasError:!1,isLoading:!1,setClickedMessageId:c("emptyFunction")});function a(a){a=a.children;var e=m(null),f=e[0],g=e[1];e=m(!1);var i=e[0],k=e[1];e=m(!1);var o=e[0],p=e[1],q=c("useReStore")(),r=j(function(a,e,f){p(!0),g(e),q.runInTransaction(function(b){return c("LSFetchMessageSeenCount")(a,e,c("LS.re").make(b))},"readwrite").then(function(){p(!1);k(!1);if(f!=null){var c;b("cr:3775")==null?void 0:b("cr:3775").log({action:"impression",client_extras:{mid:e},community_id:(c=d("I64").to_string(f.folderId))!=null?c:null,event:"seen_count_rendered",group_id:(c=d("I64").to_string(f.fbGroupId))!=null?c:null,source:"message_bubble",surface:"thread_view",thread_id:d("I64").to_string(a)})}})["catch"](function(){p(!1),k(!0)})},[q]);e=l(function(){return{clickedMessageId:f,fetchMessageSeenCount:r,hasError:i,isLoading:o,setClickedMessageId:g}},[f,r,i,o]);return h.jsx(n.Provider,{value:e,children:a})}a.displayName=a.name+" [from "+f.id+"]";e={Provider:a,useHook:function(){return k(n)}};g["default"]=e}),98); __d("MercuryTimestamp",["fbt","formatDate"],(function(a,b,c,d,e,f,g){a=864e5;var h=6*a,i={getFormatedTimestamp:function(a){var b=a/1e3;return i.getFormattedTimestampByBucket(b,i.getTimeBucket(a))},getAbsoluteTimestamp:function(a){if(a==null)return null;else{a=i.getFormatedTimestamp(a);return a.absolute}},getRelativeTimestamp:function(a){a=i.getFormatedTimestamp(a);return a.relative},getFormattedTimestampByBucket:function(a,c){switch(c){case 0:return{absolute:g._("__JHASH__EpdLnM9AeUo__JHASH__").toString(),relative:b("formatDate")(a,"g:ia")};case 1:return{absolute:b("formatDate")(a,"l"),relative:b("formatDate")(a,"D")};case 3:return{absolute:b("formatDate")(a,"F j"),relative:b("formatDate")(a,"M j")};default:return{absolute:b("formatDate")(a,"F j, Y"),relative:b("formatDate")(a,"n/j/y")}}},getTimeBucket:function(a){a=new Date(a);var b=new Date();b=new Date(b.getFullYear(),b.getMonth(),b.getDate());if(b0)return h._("__JHASH__i65FoHjBJBT__JHASH__",[h._name("full name",a.name,c("getFBTSafeGenderFromGenderConst")(a.gender)),h._param("seen time",d("MercuryTimestamp").getPreciseTimestamp(a.timestamp))]);else return h._("__JHASH__o0y2JESDXU1__JHASH__",[h._name("full name",a.name,c("getFBTSafeGenderFromGenderConst")(a.gender))])}function n(a,b){if(a.length===0)return"";if(b)return h._("__JHASH__xJFzJjmgrii__JHASH__").toString();b=a.map(function(a){return h._("__JHASH__anoMlIo0TA0__JHASH__",[h._name("full name",a.name,c("getFBTSafeGenderFromGenderConst")(a.gender))])});a=c("intlList")(b,c("intlList").CONJUNCTIONS.AND,c("intlList").DELIMITERS.COMMA);return h._("__JHASH__rtgGiNEWfHK__JHASH__",[h._param("full name",a)]).toString()}function o(a){return h._("__JHASH___KIWePVuuHb__JHASH__",[h._param("seen count",a.toString())]).toString()}var p=h._("__JHASH__ge1hq8iGlfw__JHASH__"),q=h._("__JHASH__VG5ajSXV9DG__JHASH__"),r={delivered:k,error:l,getDeliveredAndRead:n,getSeenCount:o,getSingleSeenHead:m,loading:p,retriableError:q,sending:i,sent:j};function f(a){switch(a.TAG){case 1:return i;case 2:case 3:return j;case 4:return l;case 5:return m(a._0);case 0:case 6:return"";case 7:return n(a._0,a._1);case 8:return o(a._0);case 9:return p;case 10:return q}}function s(a){switch(a.TAG){case 1:return i;case 2:return j;case 3:return k;case 4:return l;case 5:return m(a._0);case 7:return n(a._0,a._1);default:return""}}function t(a){if(c("bs_caml").i64_eq(a,d("LSMessageSendStatusV2.bs").sendingToServer))return{_0:void 0,TAG:1};else if(c("bs_caml").i64_eq(a,d("LSMessageSendStatusV2.bs").serverReceived)||c("bs_caml").i64_eq(a,d("LSMessageSendStatusV2.bs").sentOnly))return{_0:void 0,TAG:2};else if(c("bs_caml").i64_eq(a,d("LSMessageSendStatusV2.bs").nonRetriableError)||c("bs_caml").i64_eq(a,d("LSMessageSendStatusV2.bs").retriableError))return{_0:void 0,TAG:4};else return{_0:void 0,TAG:0}}function u(a,b,e){var f=t(a.sendStatusV2);if(c("bs_caml").i64_eq(a.sendStatusV2,d("LSMessageSendStatusV2.bs").nonRetriableError)||c("bs_caml").i64_eq(a.sendStatusV2,d("LSMessageSendStatusV2.bs").retriableError)||c("bs_caml").i64_eq(a.sendStatusV2,d("LSMessageSendStatusV2.bs").sendingToServer))return f;else if(!e&&c("bs_caml").i64_eq(a.sendStatusV2,d("LSMessageSendStatusV2.bs").serverReceived))return{_0:void 0,TAG:0};else if(c("bs_caml").i64_ge(b,a.timestampMs))return{_0:void 0,TAG:3};else return f}var v={_0:void 0,TAG:0},w={_0:void 0,TAG:1},x={_0:void 0,TAG:2},y={_0:void 0,TAG:3},z={_0:void 0,TAG:4},A={_0:void 0,TAG:9},B={_0:void 0,TAG:10};v=v;w=w;x=x;y=y;z=z;a=a;b=b;e=e;A=A;B=B;r=r;f=f;s=s;var C=t;u=u;g.noneStatus=v;g.sending=w;g.sent=x;g.delivered=y;g.error=z;g.seenHead=a;g.deliveredAndRead=b;g.seenCount=e;g.loading=A;g.retriableError=B;g.Titles=r;g.getBroadcastStatusTitle=f;g.getStatusTitle=s;g.getFromSendStatus=C;g.deliveryStatusForMessageSentByYou=u}),98); __d("MWPMessageRowCalculateStatus.react",["GenderConst","I64","LSMediaUrl.bs","MWClickedMessageContext.react","MWMessageDeliveryStatus.bs","MWPActor.bs","ReQL","ReQLSuspense","gkx","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useState;function a(a){var b=a.children,e=a.isBroadcastThread,f=a.isLargeGroup,g=a.isSecureGroupThread,i=a.message,j=a.nextMessage,k=d("MWPActor.bs").useActor(),l=c("useReStore")(),o=d("I64").equal(k,i.senderId);k=j!=null&&!d("I64").equal(k,j.senderId);var p=i.isUnsent,q=e&&!i.isUnsent&&c("gkx")("6706"),r=c("MWClickedMessageContext.react").useHook(),s=r.clickedMessageId,t=r.hasError;r=r.isLoading;var u=d("ReQLSuspense").useFirst(function(){return e?d("ReQL").fromTableAscending(l.table("community_chat_message_seen_count")).getKeyRange(i.threadKey,i.messageId):d("ReQL").empty()},[l,e,i.threadKey,i.messageId]);if(i.isAdminMessage)return b(d("MWMessageDeliveryStatus.bs").noneStatus);if(e)if(!q){if(!o||j!=null||p)return b(d("MWMessageDeliveryStatus.bs").noneStatus)}else{if(s!==i.messageId)return b(d("MWMessageDeliveryStatus.bs").noneStatus);if(r)return b(d("MWMessageDeliveryStatus.bs").loading);return t?b(d("MWMessageDeliveryStatus.bs").retriableError):u!=null?b(d("MWMessageDeliveryStatus.bs").seenCount(d("I64").to_int32(u.seenCount))):b(d("MWMessageDeliveryStatus.bs").loading)}if(!o)return g||f?b(d("MWMessageDeliveryStatus.bs").noneStatus):h.jsx(m,babelHelpers["extends"]({},a));if(k&&g)return b(d("MWMessageDeliveryStatus.bs").noneStatus);if(d("I64").equal(i.sendStatusV2,d("I64").of_int32(0)))return b(d("MWMessageDeliveryStatus.bs").noneStatus);if(d("I64").equal(i.sendStatusV2,d("I64").of_int32(4))||d("I64").equal(i.sendStatusV2,d("I64").of_int32(5)))return b(d("MWMessageDeliveryStatus.bs").error);if(d("I64").equal(i.sendStatusV2,d("I64").of_int32(1)))return b(d("MWMessageDeliveryStatus.bs").sending);if(d("I64").equal(i.sendStatusV2,d("I64").of_int32(6)))return b(d("MWMessageDeliveryStatus.bs").sent);if(f)if(j!=null||p)return b(d("MWMessageDeliveryStatus.bs").noneStatus);else if(d("I64").equal(i.sendStatusV2,d("I64").of_int32(2)))return b(d("MWMessageDeliveryStatus.bs").delivered);return h.jsx(n,babelHelpers["extends"]({},a))}a.displayName=a.name+" [from "+f.id+"]";var j=10;function k(a){var b=a.message;a=a.nextMessage;var e=c("useReStore")(),f=(a==null?void 0:a.isAdminMessage)===!0,g=d("ReQLSuspense").useFirst(function(){return f?d("ReQL").fromTableAscending(e.table("messages").index("messageDisplayOrder")).getKeyRange(b.threadKey).bounds({gt:{hd:b.primarySortKey,tl:0}}).take(j).filter(function(a){return!a.isAdminMessage}):d("ReQL").empty()},[e,f,b.primarySortKey,b.threadKey]);return f?g:a}function l(a,b,e){var f=c("useReStore")(),g=d("MWPActor.bs").useActor(),h=a.message,i=k(a);a=o(function(){var a=i!=null?{gte:{hd:h.timestampMs,tl:0},lt:{hd:i.timestampMs,tl:0}}:{gte:{hd:h.timestampMs,tl:0}};return d("ReQL").fromTableAscending(f.table("participants").index("threadKeyReadWatermarkTimestampMs")).getKeyRange(h.threadKey).bounds(a).filter(function(a){return!d("I64").equal(a.contactId,g)}).map(function(a){var b=d("ReQLSuspense").first(d("ReQL").fromTableAscending(f.table("contacts")).getKeyRange(a.contactId));return[a,b]})},b,[f,h.threadKey,h.timestampMs,i==null?void 0:i.timestampMs,i==null,g].concat(e));return a.map(function(a){var b,e=a[0];a=a[1];if(a==null)return;return{gender:c("GenderConst").UNKNOWN_SINGULAR,id:d("I64").to_string(a.id),imageSrc:d("LSMediaUrl.bs").Contact.profilePictureUrl(a),name:(b=e.nickname)!=null?b:a.name,timestamp:d("I64").to_float(e.readActionTimestampMs)}}).filter(Boolean)}function m(a){var b=a.nextMessage,c=b==null;b=l(a,function(a){return!c&&a.length===0},[c]);return b.length>0?a.children(d("MWMessageDeliveryStatus.bs").seenHead(b)):a.children(d("MWMessageDeliveryStatus.bs").noneStatus)}m.displayName=m.name+" [from "+f.id+"]";function n(a){var b=a.children,e=a.isSecureGroupThread,f=a.message,g=a.nextMessage,h=c("useReStore")(),i=d("MWPActor.bs").useActor(),j=o(function(){return d("ReQL").fromTableDescending(h.table("participants").index("threadKeyReadWatermarkTimestampMs")).getKeyRange(f.threadKey).filter(function(a){return!d("I64").equal(a.contactId,i)}).take(1)},function(a){return a.length>0},[f.threadKey,i]).length>0,k=o(function(){return d("ReQL").fromTableDescending(h.table("participants").index("threadKeyReadWatermarkTimestampMs")).getKeyRange(f.threadKey).bounds({gte:{hd:f.timestampMs,tl:0}}).filter(function(a){return!d("I64").equal(a.contactId,i)}).take(1)},function(a){return j&&a.length>0},[f.timestampMs,f.threadKey,i,j]),m=k.length>0,n=o(function(){return d("ReQL").fromTableAscending(h.table("participants").index("threadKeyReadWatermarkTimestampMs")).getKeyRange(f.threadKey).bounds({lt:{hd:f.timestampMs,tl:0}}).filter(function(a){return!d("I64").equal(a.contactId,i)}).take(1)},function(a){return m&&a.length===0},[f.threadKey,m,f.timestampMs,i]).length===0&&m,p=o(function(){return d("ReQL").fromTableDescending(h.table("participants").index("threadKeyDeliveredWatermarkTimestampMs")).getKeyRange(f.threadKey).bounds({gte:{hd:f.timestampMs,tl:0}}).filter(function(a){return!d("I64").equal(a.contactId,i)}).take(1)},function(a){return a.length>0||m},[f.threadKey,f.timestampMs,m,i]).length>0;a=l(a,function(a){return m&&a.length===0},[m]);if(m)if(e){e=g==null||d("I64").compare(k[0].readWatermarkTimestampMs,g.timestampMs)<0;return e&&a.length>0?b(d("MWMessageDeliveryStatus.bs").deliveredAndRead(a,n)):b(d("MWMessageDeliveryStatus.bs").noneStatus)}else return a.length>0?b(d("MWMessageDeliveryStatus.bs").seenHead(a)):b(d("MWMessageDeliveryStatus.bs").noneStatus);return p?b(d("MWMessageDeliveryStatus.bs").delivered):b(d("MWMessageDeliveryStatus.bs").sent)}n.displayName=n.name+" [from "+f.id+"]";function o(a,b,c){var e=i(void 0),f=e[0];e=e[1];c=d("ReQLSuspense").useArray(function(){return f!=null?d("ReQL").empty():a()},[].concat(c,[f]));b(c)&&f==null&&e(c);return f!=null?f:c}g["default"]=a}),98); __d("MWV2OpenTabOrThread.bs",["CurrentEnvironment","JSScheduler","LSMessagingThreadTypeUtil.bs","LSThreadAttributionStore.bs","MAWGating","MWChatInteraction.bs","MWChatStateActions.bs","MWChatStateV2.bs","MWInboxArchivedThreadsRouteBuilder.bs","MWInboxBusinessSupportThreadsRouteBuilder.bs","MWInboxMarketplaceThreadsRouteBuilder.bs","MWInboxMessageRequestsRouteBuilder.bs","MWInboxRouteBuilder.bs","XCometGroupDiscussionControllerRouteBuilder","XCometMessengerControllerRouteBuilder","bs_belt_Option","bs_caml_int64","bs_caml_option","bs_curry","bs_int64","cr:3904","cr:3905","gkx","react","useCometEntityKey","useCometFeedNoRoutingNavigationEventLogger","useCometRouterDispatcher","useGroupThreadViewParams","useMWV2ChatOpenTabTraceProvider","useShouldShowMessagingEntrypointInCometRoot"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=h.createContext();function a(a){var b=a.children;a=a.value;return h.createElement(i.Provider,{children:b,value:a})}f={make:a};var j=b("cr:3904")==null?void 0:c("bs_caml_option").some(b("cr:3904")),k=b("cr:3905")==null?void 0:c("bs_caml_option").some(b("cr:3905"));function l(a){var b=d("MWChatStateV2.bs").useDispatch(),e=c("useCometFeedNoRoutingNavigationEventLogger")(),f=c("useMWV2ChatOpenTabTraceProvider")();return h.useCallback(function(a){return function(g,h){e(Date.now(),"","messenger");return f(function(e){d("MWChatInteraction.bs").set(c("bs_int64").to_string(a.threadKey),e);return c("bs_curry")._1(b,d("MWChatStateActions.bs").openTab(Date.now(),{shouldFocus:!0},{_0:a,TAG:1}))},c("bs_caml_int64").to_int32(a.threadType),h,c("bs_int64").to_string(a.threadKey))}},[b,e,f])}function m(a){var e=c("useShouldShowMessagingEntrypointInCometRoot")("CHAT"),f=c("useCometRouterDispatcher")(),g=h.useContext(i),m=c("useGroupThreadViewParams")(),n=l(),o=c("bs_belt_Option").getWithDefault(c("bs_belt_Option").map(c("bs_caml_option").nullable_to_opt(c("useCometEntityKey")()),function(a){return c("bs_caml_option").nullable_to_opt(a.entity_type)}));return h.useMemo(function(){var a=function(a,e){var f=c("bs_belt_Option").getWithDefault(g,function(a){var f=c("bs_int64").to_string(a);if(!(b("cr:3905")==null)){if(!d("MAWGating").isOccamadillo()&&c("bs_curry")._1(k.isThreadId,a))if(c("CurrentEnvironment").facebookdotcom)return c("XCometMessengerControllerRouteBuilder").buildURL({});else return"/";if(d("MAWGating").isOccamadillo()&&d("LSMessagingThreadTypeUtil.bs").isSecure(e))return c("bs_curry")._1(d("MWInboxRouteBuilder.bs").buildE2EEThreadURL,{thread_key:f})}if(!(m==null))return c("XCometGroupDiscussionControllerRouteBuilder").buildURL({chats_to_open:[m.threadKey,c("bs_int64").to_string(a)],idorvanity:m.groupId});if(o===void 0)return c("bs_curry")._1(d("MWInboxRouteBuilder.bs").buildURL,{thread_key:f});switch(o){case"archived":return c("bs_curry")._1(d("MWInboxArchivedThreadsRouteBuilder.bs").buildURL,{thread_key:f});case"business_support":return c("bs_curry")._1(d("MWInboxBusinessSupportThreadsRouteBuilder.bs").buildURL,{thread_key:f});case"marketplace":return c("bs_curry")._1(d("MWInboxMarketplaceThreadsRouteBuilder.bs").buildURL,{thread_key:f});case"message_requests":return c("bs_curry")._1(d("MWInboxMessageRequestsRouteBuilder.bs").buildURL,{thread_key:f});default:return c("bs_curry")._1(d("MWInboxRouteBuilder.bs").buildURL,{thread_key:f})}});return c("bs_curry")._1(f,a)},h=function(e){var g=e.threadKey;!(b("cr:3905")==null)&&!(b("cr:3904")==null)&&!d("MAWGating").isOccamadillo()&&c("bs_curry")._1(k.isThreadId,g)&&c("bs_curry")._1(j.setMostRecentSecureThreadKey,c("bs_int64").to_string(g));if(!(f==null)){f.go(a(g,e.threadType));return}},i=function(a,b){return d("LSThreadAttributionStore.bs").setSource(c("bs_int64").to_string(a.threadKey),b)};return{getUrlFromThreadKey:a,openInbox:function(a,b){i(a,b);return h(a)},openTabOrInbox:function(a,b,d){a=a!==void 0?a:!0;i(b,d);if(e)return c("bs_curry")._3(n,b,a,d);else return h(b)}}},[e,f,n])}function e(a,b){var e=m(),f=c("useCometRouterDispatcher")();h.useEffect(function(){c("gkx")("6944")&&d("JSScheduler").scheduleSpeculativeCallback(function(){if(!(f==null)){f.prefetchRouteDefinition(c("bs_curry")._2(e.getUrlFromThreadKey,a,b));return}})},[])}g.$MAWSessionStorage$requireCondXplat=b("cr:3904");g.$MAWThreadId$requireCondXplat=b("cr:3905");g.Provider=f;g.useHook=m;g.usePreloadRoute=e}),98); __d("FDSMWMessageDeliveryStatusIcons.bs",["MWMessageDeliveryStatus.bs","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={disabled:{fill:"xsrhx6k",$$css:!0},negative:{fill:"x1i5740i",$$css:!0}};function j(a){switch(a){case 12:return"12px";case 14:return"14px";case 16:return"16px"}}function a(a){var b=a.size;a=a.xstyle;return h.jsxs("svg",{className:c("stylex")(i.disabled,a),height:j(b),role:"img",viewBox:"2 2 20 20",width:j(b),xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("title",{children:d("MWMessageDeliveryStatus.bs").Titles.sending}),h.jsx("path",{d:"m12 2a10 10 0 1 0 10 10 10.011 10.011 0 0 0 -10-10zm0 18.5a8.5 8.5 0 1 1 8.5-8.5 8.51 8.51 0 0 1 -8.5 8.5z"})]})}a.displayName=a.name+" [from "+f.id+"]";function b(a){var b=a.size;a=a.xstyle;return h.jsxs("svg",{className:c("stylex")(i.disabled,a),"data-testid":void 0,height:j(b),role:"img",viewBox:"2 2 20 20",width:j(b),xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("title",{children:d("MWMessageDeliveryStatus.bs").Titles.sent}),h.jsx("path",{d:"m12 2a10 10 0 1 0 10 10 10.011 10.011 0 0 0 -10-10zm0 18.5a8.5 8.5 0 1 1 8.5-8.5 8.51 8.51 0 0 1 -8.5 8.5z"}),h.jsx("path",{d:"m15.982 8.762-5.482 5.487-2.482-2.478a.75.75 0 0 0 -1.06 1.06l3.008 3.008a.748.748 0 0 0 1.06 0l6.016-6.016a.75.75 0 0 0 -1.06-1.061z"})]})}b.displayName=b.name+" [from "+f.id+"]";function e(a){var b=a.size;a=a.xstyle;return h.jsxs("svg",{className:c("stylex")(i.disabled,a),"data-testid":void 0,height:j(b),role:"img",viewBox:"2 2 20 20",width:j(b),xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("title",{children:d("MWMessageDeliveryStatus.bs").Titles.delivered}),h.jsx("path",{d:"m12 2a10 10 0 1 0 10 10 10.011 10.011 0 0 0 -10-10zm5.219 8-6.019 6.016a1 1 0 0 1 -1.414 0l-3.005-3.008a1 1 0 1 1 1.419-1.414l2.3 2.3 5.309-5.31a1 1 0 1 1 1.41 1.416z"})]})}e.displayName=e.name+" [from "+f.id+"]";function k(a){var b=a.size,e=a.title;e=e===void 0?d("MWMessageDeliveryStatus.bs").Titles.error:e;a=a.xstyle;return h.jsxs("svg",{className:c("stylex")(i.negative,a),height:j(b),role:"img",viewBox:"2 2 20 20",width:j(b),xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("title",{children:e}),h.jsx("path",{d:"m12 2a10 10 0 1 0 10 10 10.011 10.011 0 0 0 -10-10zm0 15.139a1.125 1.125 0 1 1 1.125-1.125 1.127 1.127 0 0 1 -1.125 1.125zm.8-3.81a.75.75 0 0 1 -.75.685.852.852 0 0 1 -.847-.685l-.45-5.145c0-.022 0-.043 0-.065a1.254 1.254 0 1 1 2.5 0z"})]})}k.displayName=k.name+" [from "+f.id+"]";function l(a){var b=a.size;a=a.xstyle;return h.jsx("svg",{className:c("stylex")(i.disabled,a),height:j(b),role:"img",viewBox:"0 0 16 16",width:j(b),xmlns:"http://www.w3.org/2000/svg",children:h.jsx("path",{clipRule:"evenodd",d:"M8 16A8 8 0 108 0a8 8 0 000 16zm.473-5.26a.5.5 0 00.08.605l.27.271a1 1 0 001.572-.205l3.379-5.818a1 1 0 00-1.73-1.004l-.974 1.678a.911.911 0 01-.034.06L8.473 10.74zm1.3-5.147A1 1 0 008.045 4.59L5.417 9.114a.15.15 0 01-.236.03L3.798 7.763a1 1 0 10-1.414 1.414l2.44 2.44a1 1 0 001.571-.205l3.379-5.818z",fillRule:"evenodd"})})}l.displayName=l.name+" [from "+f.id+"]";f={SendingIcon:a,SentIcon:b,DeliveredIcon:e,DeliveredAndReadIcon:l,ErrorIcon:k};a=f;g["default"]=a}),98); __d("MWMessageDeliveryStatusIcons",["cr:151"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=b("cr:151")}),98); __d("MWFacepile.bs",["BaseGlimmer.react","CometFacepilePhoto.react","LSMediaUrl.bs","MWFacepileBadge.bs","MWFacepileGetContactsToShow.bs","bs_caml_option","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={glimmer:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",height:"x5yr21d",width:"xh8yej3",$$css:!0}};function a(a){var b=a.badgeSize,e=a.photoSize,f=a.thread,g=a.badge;a=a.withAltText;g=g!==void 0?c("bs_caml_option").valFromOption(g):h.jsx(d("MWFacepileBadge.bs").make,{size:b,thread:f});var j=a!==void 0?a:!0;b=e==="s_36"?"36px":e==="s_40"?"40px":e==="s_44"?"44px":e==="s_48"?"48px":e==="s_56"?"56px":e==="s_60"?"60px":e==="s_72"?"72px":e==="s_80"?"80px":"32px";a=h.jsx("div",{style:{height:b,width:b},children:h.jsx(c("BaseGlimmer.react"),{index:1,xstyle:i.glimmer})});b=d("MWFacepileGetContactsToShow.bs").useHook(f);if(b.length!==0)return h.jsx(c("CometFacepilePhoto.react"),{badge:g,size:function(){switch(e){case"s_32":return 32;case"s_36":return 36;case"s_40":return 40;case"s_44":return 44;case"s_48":return 48;case"s_56":return 56;case"s_60":return 60;case"s_72":return 72;case"s_80":return 80}}(),sources:b.map(function(a){return{alt:j?a.name:"",disabled:!1,source:d("LSMediaUrl.bs").Contact.profilePictureUrl(a)}}),totalItems:b.length});else return a}b=a;e=b;g.make=e}),98); __d("MWThreadPicture.bs",["CometFacepilePhoto.react","CometProfilePhoto.react","LSMediaUrl.bs","MWCMIsAnyCMThread","MWFacepile.bs","MWFacepileBadge.bs","MWPActor.bs","MWPGetThreadTitle.bs","ReQL.bs","ReQLSuspense","gkx","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=c("react"),i=c("gkx")("571");function j(a){var b=a.badge,e=a.badgeSize,f=a.photoSize,g=a.thread,j=a.threadPictureUrl;a=a.withAltText;e=b!=null?b:h.jsx(d("MWFacepileBadge.bs").make,{size:e,thread:g});var k=d("MWPActor.bs").useActor(),l=c("useReStore")(),m=d("ReQLSuspense").useArray(function(){return d("ReQL.bs").take(d("ReQL.bs").leftJoin(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(l.table("participants")),{hd:g.threadKey,tl:0}),d("ReQL.bs").fromTableAscending(l.table("contacts"))),8)},[g.threadKey]);m=d("MWPGetThreadTitle.bs").computeThreadTitle(void 0,g,m,k);if(c("MWCMIsAnyCMThread")(g.threadType))return h.jsx(c("CometProfilePhoto.react"),{badge:b,shape:i?"circle":"roundedRect",size:function(){switch(f){case"s_32":return 32;case"s_36":return 36;case"s_40":return 40;case"s_44":return 44;case"s_48":return 48;case"s_56":return 56;case"s_60":return 60;case"s_72":return 72;case"s_80":return 80}}(),source:{uri:j}});else return h.jsx(c("CometFacepilePhoto.react"),{badge:e,size:function(){switch(f){case"s_32":return 32;case"s_36":return 36;case"s_40":return 40;case"s_44":return 44;case"s_48":return 48;case"s_56":return 56;case"s_60":return 60;case"s_72":return 72;case"s_80":return 80}}(),sources:[{alt:a?m:"",disabled:!1,source:j}],totalItems:1})}function a(a){var b=a.badge,c=a.badgeSize,e=a.photoSize,f=a.thread;a=a.withAltText;a=a===void 0?!0:a;var g=d("LSMediaUrl.bs").Thread.threadPictureUrl(f);return g!==void 0?h.jsx(j,{badge:b,badgeSize:c,photoSize:e,thread:f,threadPictureUrl:g,withAltText:a}):h.jsx(d("MWFacepile.bs").make,{badge:b,badgeSize:c,photoSize:e,thread:f,withAltText:a})}a.displayName=a.name+" [from "+f.id+"]";b=a;g.make=b}),34); __d("CancellationToken.bs",["bs_caml_exceptions"],(function(a,b,c,d,e,f,g){"use strict";b=c("bs_caml_exceptions").create("CancellationToken.TokenCancelled");function a(a){var b={contents:!1};return{cancel:function(a){b.contents=!0},isCancelled:function(a){return b.contents}}}g.TokenCancelled=b;g.make=a}),98); __d("CancellablePromise.bs",["CancellationToken.bs","Promise","bs_caml_exceptions","bs_curry","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h=c("bs_caml_exceptions").create("CancellablePromise.PromiseError"),i=function(a){throw a};function a(a){var d={contents:!1},e=new window.Promise(function(b,e){var f=a.then(function(a){d.contents?e({_0:void 0,TAG:0}):b({_0:a,TAG:1})});c("promiseDone")(f)})["catch"](function(a){if(a.TAG===0)return b("Promise").resolve({_0:void 0,TAG:0});throw{_1:a,Error:new Error(),RE_EXN_ID:h}}),f=function(a){d.contents=!0};return[f,e]}function e(a,e,f){return f.then(function(f){if(c("bs_curry")._1(a.isCancelled))return b("Promise").reject({RE_EXN_ID:d("CancellationToken.bs").TokenCancelled});else return c("bs_curry")._1(e,f)})}function f(a,c){return c["catch"](function(c){if(c.RE_EXN_ID===d("CancellationToken.bs").TokenCancelled)return b("Promise").resolve(a);else return b("Promise").reject(c)})}g.PromiseError=h;g.jsThrowError=i;g.make=a;g.then_=e;g.ignoreFailed=f}),98); __d("CometCardedDialogLoadingState.re",["CometCardedDialogLoadingStateLegacy.react"],(function(a,b,c,d,e,f){a=b("CometCardedDialogLoadingStateLegacy.react");f.makeTypeChecked=a;c=a;f.make=c}),null); __d("MessengerDesktopDeeplinkEventFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1856945");c=b("FalcoLoggerInternal").create("messenger_desktop_deeplink_event",a);e.exports=c}),null); __d("MWQuickPromotionDesktopInterstitialUpsellQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5400811576681231"}),null); __d("MWQuickPromotionThreadlistBannerQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5979651878724584"}),null);/*FB_PKG_DELIM*/ __d("LSLocalOptimisticDeleteCommunityChannel",["LSDeleteThread","LSGetViewerFBID","LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(d){return c.sp(b("LSDeleteThread"),a[0],!1)},function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[0]=a[0],a})},function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[1]=[0,1]:(b=a.item,d[7]=b.syncGroup,c.i64.neq(d[7],f)?d[6]=d[7]:d[6]=[0,1],d[1]=d[6])})},function(e){return d[3]=new c.Map(),d[3].set("thread_key",a[0]),d[3].set("actor_id",d[0]),d[3].set("sync_group",d[1]),d[4]=d[3].get("actor_id"),d[3],d[5]=c.toJSON(d[3]),c.sp(b("LSIssueNewTask"),c.i64.to_string(d[4]),[0,366],d[5],f,f,[0,0],[0,0],f,f,[0,0])}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSLocalOptimisticDeleteDiscoverableChat",["LSDeleteThread","LSGetViewerFBID","LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(d){return c.sp(b("LSDeleteThread"),a[0],!1)},function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[0]=a[0],a})},function(e){return d[1]=new c.Map(),d[1].set("thread_key",a[0]),d[1].set("actor_id",d[0]),d[2]=c.toJSON(d[1]),c.sp(b("LSIssueNewTask"),"expr_delete_public_chat",[0,110004],d[2],f,f,[0,0],[0,0],f,f,[0,0])}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSMarkThreadUnread",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[],e;return b.seq([function(f){return b.seq([function(d){return b.db.table(9).fetch([[[a[0]]]]).next().then(function(d,f){var g=d.done;d=d.value;return g?(c[2]=b.createArray(),c[3]=(c[2].push("markThreadUnread unable to find thread key in DB:"),c[2]),c[4]=(c[2].push(a[0]),c[2]),c[5]=b.toJSON(c[2]),function(a){b.logger(a).mustfix(a)}(c[5]),c[0]=e):(f=d.item,b.seq([function(a){return c[3]=f.lastActivityTimestampMs,c[5]=f.lastReadWatermarkTimestampMs,c[4]=f.threadKey,b.i64.eq(f.threadType,[0,102])?b.resolve(c[2]=[0,1]):b.seq([function(a){return b.i64.neq(e,e)?b.seq([function(a){return c[8]=b.i64.sub(b.i64.lt(e,c[3])?e:c[3],[0,1]),b.i64.lt(c[8],c[5])?b.seq([function(a){return b.fe(b.db.table(9).fetch([[[c[4]]]]),function(a){var b=a.update;a.item;return b({lastReadWatermarkTimestampMs:c[8]})})},function(a){return c[7]=c[8]}]):b.resolve(c[7]=e)},function(a){return c[6]=c[7]}]):b.seq([function(a){return b.db.table(12).fetchDesc([[[c[4]]]]).next().then(function(d,f){var a=d.done;d=d.value;return a?(c[9]=b.createArray(),c[10]=(c[9].push("markThreadUnread unable to find message with thread key in DB:"),c[9]),c[11]=(c[9].push(c[4]),c[9]),c[12]=b.toJSON(c[9]),function(a){b.logger(a).mustfix(a)}(c[12]),c[7]=e):(f=d.item,b.seq([function(a){return c[9]=f.timestampMs,c[11]=b.i64.sub(b.i64.lt(c[9],c[3])?c[9]:c[3],[0,1]),b.i64.lt(c[11],c[5])?b.seq([function(a){return b.fe(b.db.table(9).fetch([[[c[4]]]]),function(a){var b=a.update;a.item;return b({lastReadWatermarkTimestampMs:c[11]})})},function(a){return c[10]=c[11]}]):b.resolve(c[10]=e)},function(a){return c[7]=c[10]}]))})},function(a){return c[6]=c[7]}])},function(a){return c[2]=c[6]}])},function(a){return c[0]=c[2]}]))})},function(a){return d[0]=c[0]}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSMuteCallsFromThread",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[0]=[0,1]:(b=a.item,d[6]=b.syncGroup,c.i64.neq(d[6],f)?d[5]=d[6]:d[5]=[0,1],d[0]=d[5])})},function(e){return d[2]=new c.Map(),d[2].set("thread_key",a[0]),d[2].set("mailbox_type",a[1]),d[2].set("mute_calls_expire_time_ms",a[2]),d[2].set("request_id",a[3]),d[2].set("sync_group",d[0]),d[3]=d[2].get("thread_key"),d[2],d[4]=c.toJSON(d[2]),c.sp(b("LSIssueNewTask"),c.i64.to_string(d[3]),[0,229],d[4],f,f,[0,0],[0,0],f,f,[0,0])}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSOptimisticMarkThreadUnread",["LSIssueNewTask","LSMarkThreadUnread"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(g){return c.seq([function(e){return c.sp(b("LSMarkThreadUnread"),a[0]).then(function(a){return a=a,d[0]=a[0],a})},function(e){return c.i64.neq(d[0],f)?c.seq([function(b){return function(a){c.logger(a).info(a)}("optimisticMarkThreadUnread issuing task"),c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[1]=[0,1]:(b=a.item,d[7]=b.syncGroup,c.i64.neq(d[7],f)?d[6]=d[7]:d[6]=[0,1],d[1]=d[6])})},function(e){return d[3]=new c.Map(),d[3].set("thread_key",a[0]),d[3].set("last_read_watermark_timestamp_ms",d[0]),d[3].set("sync_group",d[1]),d[4]=d[3].get("thread_key"),d[3],d[5]=c.toJSON(d[3]),c.sp(b("LSIssueNewTask"),c.i64.to_string(d[4]),[0,49],d[5],f,f,[0,0],[0,0],f,f,[0,0])}]):c.resolve()},function(a){return e[0]=d[0]}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSOptimisticMuteThread",["LSIssueNewTaskAndGetTaskID"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(b){return c.fe(c.db.table(9).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({muteExpireTimeMs:a[2]})})},function(e){return c.sp(b("LSIssueNewTaskAndGetTaskID"),c.i64.to_string(a[0]),[0,144],"",f,f,[0,0],[0,0],[0,1],f,[0,0]).then(function(a){return a=a,d[0]=a[0],a})},function(b){return c.db.table(32).add({taskId:d[0],threadKey:a[0]})}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSReportCommunityChannel",["LSIssueNewError","LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(a){return c.sb(c.db.table(115).fetch(),[["timestampMs","DESC"]]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[0]=!1:(b=a.item,d[0]=b.errorShouldBeShown)})},function(a){return d[0]===!0?c.seq([function(a){return c.localizeV2Async([0,2285622730],f).then(function(a){return d[5]=a})},function(a){return c.localizeV2Async([0,1919524925],f).then(function(a){return d[6]=a})},function(a){return c.sp(b("LSIssueNewError"),f,[0,1545093],d[5],d[6],f)}]):c.resolve()},function(e){return d[2]=new c.Map(),d[2].set("thread_key",a[0]),d[3]=d[2].get("thread_key"),d[2],d[4]=c.toJSON(d[2]),c.sp(b("LSIssueNewTask"),c.i64.to_string(d[3]),[0,371],d[4],f,f,[0,0],[0,0],f,f,[0,0])}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSRemovePinnedThread",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(82).fetch([[[a[0]]]]),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSOptimisticallyRemovePinnedThread",["LSIssueNewTask","LSRemovePinnedThread"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(d){return c.sp(b("LSRemovePinnedThread"),a[0])},function(e){return d[0]=new c.Map(),d[0].set("thread_key",a[0]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"pin_thread",[0,158],d[1],f,f,[0,0],[0,0],f,f,[0,0])}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("GroupsCometChatsThreadNotificationSettingsDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5640678335995419"}),null); __d("GroupsCometChatsThreadNotificationSettingsDialogQuery$Parameters",["GroupsCometChatsThreadNotificationSettingsDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("GroupsCometChatsThreadNotificationSettingsDialogQuery_facebookRelayOperation"),metadata:{},name:"GroupsCometChatsThreadNotificationSettingsDialogQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("GroupsCometChatsThreadNotificationSettingsDialog.entrypoint",["GroupsCometChatsThreadNotificationSettingsDialogQuery$Parameters","JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){a=a.threadID;return{queries:{threadNotificationSettingsDialogRef:{parameters:c("GroupsCometChatsThreadNotificationSettingsDialogQuery$Parameters"),variables:{threadID:a}}}}},root:c("JSResourceForInteraction")("GroupsCometChatsThreadNotificationSettingsDialog.react").__setRef("GroupsCometChatsThreadNotificationSettingsDialog.entrypoint")};b=a;g["default"]=b}),98); __d("MWInboxInfoBlockMessages.bs",["fbt","CometLazyDialogTrigger.react","JSResourceForInteraction","LSContactBlockedByViewerStatus.bs","ReQL.bs","ReQLSubscription.bs","bs_caml","bs_curry","bs_int64","react","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){var b=a.children,e=a.contactId,f=a.loggingEntryPoint,g=a.loggingSource,j=a.loggingSourceOwner;a=a.thread;var k=c("useReStore")(),l=d("ReQLSubscription.bs").useFirst(i.useMemo(function(){return d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(k.table("contacts")),{hd:e,tl:0})},[k,JSON.stringify(e)])),m=l!==void 0?c("bs_caml").i64_eq(l.blockedByViewerStatus,d("LSContactBlockedByViewerStatus.bs").messageBlocked):!1,n=l!==void 0?c("bs_caml").i64_eq(l.blockedByViewerStatus,d("LSContactBlockedByViewerStatus.bs").fullyBlocked):!1,o=m||n?h._("__JHASH__gK8LyonAlSA__JHASH__"):h._("__JHASH__VwQDHTMs5Bj__JHASH__"),p=i.useRef(null);if(l!==void 0)return i.jsx(c("CometLazyDialogTrigger.react"),{dialogProps:{loggingData:{entryPoint:f,requestId:void 0,source:g,sourceOwner:j},onClose:function(a){},targetFBID:c("bs_int64").to_string(e),thread:a},dialogResource:c("JSResourceForInteraction")("MWChatBlockActionDialog",{"class":"fluid",name:"MWChatBlockActionDialog"}).__setRef("MWInboxInfoBlockMessages.bs"),children:function(a){return c("bs_curry")._4(b,a,p,o,m||n)}});else return null}b=a;e=b;g.make=e}),98); __d("MWThreadListHoverButtonDropdownMenuIcons.bs",["cr:1734763"],(function(a,b,c,d,e,f,g){"use strict";g.$MDSThreadListHoverButtonDropdownMenuIcons$OR$TetraThreadListHoverButtonDropdownMenuIcons$requireCond=a=b("cr:1734763");g.MarkAsReadOrUnread=a.MarkAsReadOrUnread;g.MuteConversation=a.MuteConversation;g.ViewProfile=a.ViewProfile;g.SecretConversation=a.SecretConversation;g.AudioCall=a.AudioCall;g.VideoChat=a.VideoChat;g.HideConversation=a.HideConversation;g.UnhideConversation=a.UnhideConversation;g.DeleteConversation=a.DeleteConversation;g.AppMessenger=a.AppMessenger;g.LeaveChat=a.LeaveChat;g.SomethingIsWrong=a.SomethingIsWrong;g.Report=a.Report}),98); __d("MWChatSettingsDeleteConversation.bs",["fbt","CometLazyDialogTrigger.react","I64","JSResource","LSMessagingThreadTypeUtil.bs","LsMessageRequestsActions.bs","MWMenuItem.react","MWThreadListHoverButtonDropdownMenuIcons.bs","MessageRequestsLog.bs","MessagingThreadType.re","ODS","bs_caml_int64","bs_curry","gkx","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){var b=a.disabled,e=a.onClick,f=a.thread;a=a.onSelectItem;var g=b!==void 0?b:!1,j=a!==void 0?a:function(a){},k=i.useRef(null),l=f!==void 0?d("LSMessagingThreadTypeUtil.bs").isMessageRequest(f):!1;b=f!==void 0?d("I64").equal(f.threadType,d("MessagingThreadType.re").discoverablePublicChat):!1;var m=b&&c("gkx")("3187")?h._("__JHASH__14sfvnRMjcT__JHASH__"):h._("__JHASH__nb0oz9cfTdt__JHASH__");return i.jsx(c("CometLazyDialogTrigger.react"),{dialogProps:{defaultTitle:m,isMessageRequest:l,onClose:function(a){},onDeleteConversation:e,thread:f},dialogResource:c("JSResource")("MWChatDeleteConversationDialogForJSResource.react").__setRef("MWChatSettingsDeleteConversation.bs"),children:function(a){return i.jsx(c("MWMenuItem.react"),{disabled:g,icon:d("MWThreadListHoverButtonDropdownMenuIcons.bs").DeleteConversation.icon,onClick:function(b){d("ODS").bumpEntityKey(3185,"mwchat_settings","delete_conv");f!==void 0&&l&&d("MessageRequestsLog.bs").logActionTapped(f,c("bs_caml_int64").to_int32(d("LsMessageRequestsActions.bs").delete_));c("bs_curry")._1(j);return c("bs_curry")._1(a)},primaryText:m,ref:k,testid:void 0})}})}a.displayName=a.name+" [from "+f.id+"]";b=a;e=b;g.make=e}),98); __d("GroupsCometChatsThreadNotificationSettingsDialogEntrypoint.bs",["GroupsCometChatsThreadNotificationSettingsDialog.entrypoint"],(function(a,b,c,d,e,f,g){"use strict";g.entrypoint=c("GroupsCometChatsThreadNotificationSettingsDialog.entrypoint")}),98); __d("MWPRemoveFromGroup.bs",["LS.bs","LSOptimisticRemoveParticipantsFromGroupThread","LSVec","useReStore"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=c("useReStore")();return function(e){return b.runInTransaction(function(b){return c("LSOptimisticRemoveParticipantsFromGroupThread")(a.threadKey,c("LSVec").make([e]),d("LS.bs").make(b))},"readwrite")}}b=a;g.useHook=b}),98); __d("MWLSConfirmRemoveFromGroup.bs",["fbt","GroupsCometChatsThreadNotificationSettingsDialogEntrypoint.bs","I64","LSMessagingThreadTypeUtil.bs","LSThreadBitOffset.bs","LSThreadCapabilityBitOffset.bs","MWCMThreadTypes.bs","MWChatStateV2.bs","MWPActor.bs","MWPRemoveFromGroup.bs","MessagingThreadType.re","Promise","ReQL.bs","ReQLSubscription.bs","cr:3684","cr:3901","gkx","react","useCometConfirmationDialog","useCometEntryPointDialog","useReStore","useShouldShowMessagingEntrypointInCometRoot"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useCallback;function k(a){var b=d("MWChatStateV2.bs").useDispatch(),e=c("useShouldShowMessagingEntrypointInCometRoot")("CHAT");return i.useCallback(function(c){if(e)return b([{_0:a.threadKey,_1:{shouldFocus:!1},_2:function(a){return{clientForcedMinimizeWatermark:a.clientForcedMinimizeWatermark,closeWatermark:Date.now(),minimizeWatermark:a.minimizeWatermark,openFlyoutWatermark:a.openFlyoutWatermark,openWatermark:a.openWatermark,tabId:a.tabId,tabType:a.tabType}},TAG:2}])},[b,JSON.stringify(a.threadKey),e])}function a(a,e,f,g){var l=c("useCometConfirmationDialog")(),m=c("useReStore")(),n=d("LSMessagingThreadTypeUtil.bs").isSecure(a.threadType),o=d("MWPActor.bs").useActor(),p=k(a),q=c("useCometEntryPointDialog")(d("GroupsCometChatsThreadNotificationSettingsDialogEntrypoint.bs").entrypoint,{threadID:d("I64").to_string(a.threadKey)}),r=q[0];q=d("ReQLSubscription.bs").useArray(i.useMemo(function(){return d("ReQL.bs").filter(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(m.table("participants")),{hd:a.threadKey,tl:0}),function(a){return a.isAdmin===!0})},[m,JSON.stringify(a.threadKey)]));var s;if(q.length!==1)s=!1;else{q=q[0];s=d("I64").equal(q.contactId,o)}var t=d("MWPRemoveFromGroup.bs").useHook(a),u=function(c){if(b("cr:3684")==null)return b("Promise").resolve();else return b("cr:3684").removeFromShadowGroups(a.threadKey,c)},v;q=0;b("cr:3901")==null||!n?q=1:v=b("cr:3901").createLeaveGroupCallback(m,a);q===1&&(v=function(a){u(a);return t(a)});var w=d("MWCMThreadTypes.bs").isJoinedCMThread(a.threadType),x=d("I64").equal(a.threadType,d("MessagingThreadType.re").discoverablePublicChat),y=d("LSThreadBitOffset.bs").has(d("LSThreadCapabilityBitOffset.bs").communityMessagingThreadLeaveUpsell,a);q=j(function(b){var i;if(w)i=f?{body:h._("__JHASH__C7oYPNrxjXN__JHASH__"),cancel:h._("__JHASH__ddF1YsNwDg4__JHASH__"),confirm:h._("__JHASH__aLJ9G9O9Z-l__JHASH__"),title:h._("__JHASH__aFBNpSjasHa__JHASH__")}:{body:y?h._("__JHASH__tYjECA-JMve__JHASH__"):h._("__JHASH__qDe6HOW_WCc__JHASH__"),cancel:y?h._("__JHASH__MsiCQHzrwZ-__JHASH__"):h._("__JHASH__ddF1YsNwDg4__JHASH__"),confirm:y?h._("__JHASH__84tRkBdswmn__JHASH__"):h._("__JHASH__P-vH7rwBgCZ__JHASH__"),title:h._("__JHASH__kdMIdWbI2GQ__JHASH__")};else if(s){var j=n?h._("__JHASH__eZfGyNt11Cm__JHASH__"):x?h._("__JHASH__BEVIOvSF3ox__JHASH__"):h._("__JHASH__fW6fOUpu5tE__JHASH__");i={body:j,cancel:h._("__JHASH__ddF1YsNwDg4__JHASH__"),confirm:x&&c("gkx")("3187")?h._("__JHASH__WVOuan41UU8__JHASH__"):h._("__JHASH__bU3YKc9RZql__JHASH__"),title:h._("__JHASH__juCmaR5t1zN__JHASH__")}}else i={body:h._("__JHASH__s2dfnMnu39S__JHASH__"),cancel:h._("__JHASH__ddF1YsNwDg4__JHASH__"),confirm:x&&c("gkx")("3187")?h._("__JHASH__pJ_FRSGu9We__JHASH__"):h._("__JHASH__bU3YKc9RZql__JHASH__"),title:x&&c("gkx")("3187")?h._("__JHASH__ndOH7hn2AZL__JHASH__"):h._("__JHASH__Bgt7Blf_rD3__JHASH__")};j=!0;var k=e&&j;return l(i,function(c){b();if(y&&w&&!f)return r({onClose:function(a){},threadID:d("I64").to_string(a.threadKey)},function(a){return a});else{v(o);p();if(k){g();return}else return}},function(a){if(y&&w){v(o);p();if(k){g();return}else return}})},[l,d("I64").to_string(o),v,p,e,g,s]);var z=w?h._("__JHASH__UR56yPCEkoE__JHASH__"):x&&c("gkx")("3187")?h._("__JHASH__d6-3HUAkz-W__JHASH__"):h._("__JHASH__tUW5klrDtLZ__JHASH__");return[q,z]}g.useHook=a}),98); __d("MWCMUseGetReportCommunityDialogTrigger.bs",["fbt","LS.bs","LSInternetConnectionState.bs","LSReportCommunityChannel","ReQL.bs","ReQLSubscription.bs","bs_caml","bs_curry","bs_int64","cometPushToast","promiseDone","react","useCometConfirmationDialog","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){var b=c("useReStore")(),e=d("ReQLSubscription.bs").useFirst(i.useMemo(function(){return d("ReQL.bs").fromTableAscending(b.table("connectivity_status"))},[b])),f=h._("__JHASH__2FPFOBzzr76__JHASH__"),g=i.useCallback(function(g){c("promiseDone")(b.runInTransaction(function(b){return c("LSReportCommunityChannel")(a.threadKey,d("LS.bs").make(b))},"readwrite"),function(a){if(e!==void 0&&!c("bs_caml").i64_eq(e.internetConnectionState,d("LSInternetConnectionState.bs").connected))return;else{d("cometPushToast").cometPushSimpleToast(f);return}})},[b,e,c("bs_int64").to_string(a.threadKey)]),j=c("useCometConfirmationDialog")();return i.useCallback(function(a){return c("bs_curry")._3(j,{body:h._("__JHASH__rc4cvhQhzGs__JHASH__"),cancel:h._("__JHASH__ko1T7DvDF-J__JHASH__"),confirm:h._("__JHASH__Se9aOBDM-5h__JHASH__"),title:h._("__JHASH__PAQ4W9lWvFK__JHASH__")},g,function(a){})},[j,g])}b=a;g.useHook=b}),98); __d("MWInboxInfoPrivacyAndSupportSectionIcons.bs",["cr:1724558"],(function(a,b,c,d,e,f,g){"use strict";g.$MDSPrivacyAndSupportSectionIcons$OR$TetraPrivacyAndSupportSectionIcons$requireCond=a=b("cr:1724558");g.Notifications=a.Notifications;g.BlockMessages=a.BlockMessages;g.ReportMessages=a.ReportMessages;g.IgnoreMessages=a.IgnoreMessages;g.RestrictMessages=a.RestrictMessages;g.RestrictMessagesPendingState=a.RestrictMessagesPendingState;g.FRXItem=a.FRXItem;g.EndToEndEncryptionKeys=a.EndToEndEncryptionKeys;g.EphemeralMessages=a.EphemeralMessages}),98); __d("MWCMReportGroupToAdminMenuItem.bs",["fbt","MWCMUseGetReportCommunityDialogTrigger.bs","MWInboxInfoPrivacyAndSupportSectionIcons.bs","MWMenuItem.react","MWPBumpEntityKey","bs_curry","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){var b=a.thread;a=a.onSelectItem;var e=a!==void 0?a:function(a){};a=h._("__JHASH__F8tDKTuJP-y__JHASH__");var f=d("MWCMUseGetReportCommunityDialogTrigger.bs").useHook(b);return i.jsx(c("MWMenuItem.react"),{"aria-label":a,icon:d("MWInboxInfoPrivacyAndSupportSectionIcons.bs").ReportMessages.icon,onClick:function(a){d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.infobar","privacy_support_section_report_to_admin");c("bs_curry")._1(e);return c("bs_curry")._1(f)},primaryText:a})}a.displayName=a.name+" [from "+f.id+"]";b=a;e=b;g.make=e}),98); __d("MWLSCanLeaveGroup.bs",["LSMessagingThreadTypeUtil.bs","LSThreadBitOffset.bs","LSThreadCapabilityBitOffset.bs","LsSystemFolder.bs","bs_caml"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=c("bs_caml").i64_eq(a.parentThreadKey,d("LsSystemFolder.bs").archived);if(d("LSMessagingThreadTypeUtil.bs").isGroup(a.threadType)&&d("LSThreadBitOffset.bs").has(d("LSThreadCapabilityBitOffset.bs").leaveThread,a))return!b;else return!1}b=a;g.useHook=b}),98); __d("MWUseNavigateAfterLeavingGroup.bs",["LSMessagingThreadTypeUtil.bs","MWCMUseFolder.bs","MWInboxCommunityThreadsRouteBuilder.bs","MWInboxRouteBuilder.bs","MWPIsThreadUnread.bs","MWPThreadsForThreadList.bs","MWThreadListSupportedThreadTypes.bs","MessagingThreadType.bs","ReQL.bs","ReQLSuspense","XCometGroupDiscussionControllerRouteBuilder","bs_caml","bs_curry","bs_int64","react","useCometEntityKey","useCometRouterDispatcher","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=c("useReStore")(),e=d("ReQLSuspense").useFirst(function(){return d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(b.table("threads_ranges_v2__generated")),{hd:a.parentThreadKey,tl:0})},[b,a.parentThreadKey]),f=d("ReQLSuspense").useFirst(function(){return d("ReQL.bs").filter(d("MWPThreadsForThreadList.bs").createIterable(b,a.parentThreadKey,e),function(b){if(!d("MWPIsThreadUnread.bs").isThreadUnread(b)&&c("bs_caml").i64_neq(b.threadKey,a.threadKey)&&c("bs_caml").i64_neq(b.threadType,d("MessagingThreadType.bs").folder)&&!d("LSMessagingThreadTypeUtil.bs").isGroup(b.threadType))return d("MWThreadListSupportedThreadTypes.bs").supportedThreadTypes.findIndex(function(a){return c("bs_caml").i64_eq(b.threadType,a)})!==-1;else return!1})},[b,a]),g=d("MWCMUseFolder.bs").useHook(a),i=c("useCometRouterDispatcher")(),j=c("useCometEntityKey")(),k;if(j==null)k=!1;else{var l=j.section;j=j.entity_type;k=j==null||l==null?!1:l==="CHATS"&&j==="group"}return h.useCallback(function(a){if(g!==void 0){if(i==null)return;a=k?c("XCometGroupDiscussionControllerRouteBuilder").buildURL({idorvanity:c("bs_int64").to_string(g.fbGroupId)}):c("bs_curry")._1(d("MWInboxCommunityThreadsRouteBuilder.bs").buildURLWithoutThread,{folder_id:c("bs_int64").to_string(g.folderId)});i.go(a);return}if(i==null)return;if(f===void 0)return;a=c("bs_int64").to_string(f.threadKey);a=c("bs_curry")._1(d("MWInboxRouteBuilder.bs").buildURL,{thread_key:a});i.go(a)},[g,i,f])}b=a;g.useHook=b}),98); __d("MWLSLeaveGroupMenuItem.bs",["ix","CurrentEnvironment","MWCMThreadTypes.bs","MWCMUseFolder.bs","MWLSConfirmRemoveFromGroup.bs","MWMenuItem.react","MWThreadListHoverButtonDropdownMenuIcons.bs","MWUseNavigateAfterLeavingGroup.bs","ODS","bs_caml_int64","bs_curry","fbicon","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function j(a){var b=a.icon,e=a.navigateAfterLeavingGroup,f=a.shouldNavigate,g=a.thread;a=a.onSelectItem;var h=a!==void 0?a:function(a){};a=g.memberCount;a=a!==void 0?c("bs_caml_int64").to_int32(a)>1:!1;g=d("MWLSConfirmRemoveFromGroup.bs").useHook(g,f,!a,e);var j=g[0];f=g[1];return i.jsx(c("MWMenuItem.react"),{"aria-label":f,icon:b,onClick:function(a){d("ODS").bumpEntityKey(3185,"mwchat_settings","leave_thread");c("bs_curry")._1(h);return c("bs_curry")._1(j,function(a){})},primaryText:f,testid:void 0})}j.displayName=j.name+" [from "+f.id+"]";b={make:j};function k(a){var b=a.icon,e=a.navigateAfterLeavingGroup,f=a.shouldNavigate,g=a.thread;a=a.onSelectItem;var h=a!==void 0?a:function(a){};a=d("MWLSConfirmRemoveFromGroup.bs").useHook(g,f,!1,e);var j=a[0];g=a[1];return i.jsx(c("MWMenuItem.react"),{"aria-label":g,icon:b,onClick:function(a){d("ODS").bumpEntityKey(3185,"mwchat_settings","leave_thread");c("bs_curry")._1(h);return c("bs_curry")._1(j,function(a){})},primaryText:g,testid:void 0})}k.displayName=k.name+" [from "+f.id+"]";e={make:k};function a(a){var b=a.thread,e=a.shouldNavigate;a=a.onSelectItem;e=e!==void 0?e:!1;a=a!==void 0?a:function(a){};var f=d("MWUseNavigateAfterLeavingGroup.bs").useHook(b),g=d("MWCMUseFolder.bs").useHook(b),l=d("MWCMThreadTypes.bs").isJoinedCMThread(b.threadType),m=c("CurrentEnvironment").facebookdotcom?d("MWThreadListHoverButtonDropdownMenuIcons.bs").LeaveChat.icon:d("fbicon")._(h("538179"),16);return g!==void 0&&l?i.jsx(j,{icon:m,navigateAfterLeavingGroup:f,onSelectItem:a,shouldNavigate:e,thread:b}):i.jsx(k,{icon:m,navigateAfterLeavingGroup:f,onSelectItem:a,shouldNavigate:e,thread:b})}a.displayName=a.name+" [from "+f.id+"]";f=a;a=b;b=e;e=f;g.MWCMLeaveChatMenuItem=a;g.MWLSLeaveGroupMenuItemImpl=b;g.make=e}),98); __d("MWCMLogMuteDuration.bs",["C4gEngagementFalcoEvent.bs","MessengerSurfaceType.bs"],(function(a,b,c,d,e,f,g){"use strict";function h(a,b,c,d,e,f){f=a!==void 0?a:0;a=b!==void 0?b:0;b=c!==void 0?c:0;c=d!==void 0?d:0;d=e!==void 0?e:0;return{"1_hour":a,"15_min":f,"24_hour":c,"8_hour":b,until_i_turn_it_back_on:d}}function i(a){if(a>=36e5){if(a===288e5)return h(void 0,void 0,1);if(a===864e5)return h(void 0,void 0,void 0,1);if(a<3600001)return h(void 0,1)}else{if(a===-1)return h(void 0,void 0,void 0,void 0,1);if(a===9e5)return h(1)}return h()}function a(a,b,c,e,f){var g=a!==void 0?a:"",h=b!==void 0?b:"";return d("C4gEngagementFalcoEvent.bs").log(function(){return{action:"tap",client_extras:f===0?{}:i(f),event:c,group_id:g,source:e,surface:d("MessengerSurfaceType.bs").messenger,thread_id:h}})}g.log=a}),98); __d("MWInboxInfoFRXItem.bs",["fbt","CometLazyDialogTrigger.react","JSResource","LSMessagingThreadTypeUtil.bs","MAWGating","MWCMThreadTypes.bs","MWLSThreadReportingToken.bs","MWPThreadIsPage.bs","bs_caml_option","bs_curry","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){var b=a.children;a=a.thread;var e=d("MWLSThreadReportingToken.bs").fromThread(a),f=d("MWPThreadIsPage.bs").useIsPage(),g=d("LSMessagingThreadTypeUtil.bs").isOneToOne(a.threadType),j=d("LSMessagingThreadTypeUtil.bs").isGroup(a.threadType),k=d("LSMessagingThreadTypeUtil.bs").isSecure(a.threadType);a=d("MWCMThreadTypes.bs").isJoinedCMThread(a.threadType);f=f?{entryPoint:"report_button",id:e,location:"messenger_p2b_direct_thread_details"}:g&&k&&d("MAWGating").isReportingEnabled()?{entryPoint:"report_button",id:e,location:"messenger_encrypted_direct_thread"}:g&&!k?{entryPoint:"report_button",id:e,location:"messenger_direct_thread_details"}:a?{entryPoint:"report_button",id:e,location:"messenger_community_messaging_group_thread_details"}:j&&k&&d("MAWGating").isReportingEnabled()?{entryPoint:"report_button",id:e,location:"messenger_encrypted_group_thread"}:j&&!k?{entryPoint:"report_button",id:e,location:"messenger_group_thread_details"}:void 0;var l=h._("__JHASH__M165p0BvI51__JHASH__"),m=h._("__JHASH__o5Fp06AWpMP__JHASH__"),n=i.useRef(null);if(f!==void 0)return i.jsx(c("CometLazyDialogTrigger.react"),{dialogProps:c("bs_caml_option").valFromOption(f),dialogResource:c("JSResource")("CometFRX_DEPRECATED.react").__setRef("MWInboxInfoFRXItem.bs"),children:function(a){return c("bs_curry")._4(b,a,n,l,m)}});else return null}b=a;e=b;g.make=e}),98); __d("TetraPrivacyAndSupportSectionIcons.bs",["ix","fbicon"],(function(a,b,c,d,e,f,g,h){"use strict";a=d("fbicon")._(h("482898"),20);b="primary";c={alt:void 0,"aria-label":void 0,"aria-labelledby":void 0,color:b,disabled:void 0,icon:a,linkProps:void 0,onHoverIn:void 0,onHoverOut:void 0,onPress:void 0,ref:void 0,size:void 0,testid:void 0,type:"icon"};e={icon:a,primaryAddOn:c};f=d("fbicon")._(h("490583"),20);b="primary";a={alt:void 0,"aria-label":void 0,"aria-labelledby":void 0,color:b,disabled:void 0,icon:f,linkProps:void 0,onHoverIn:void 0,onHoverOut:void 0,onPress:void 0,ref:void 0,size:void 0,testid:void 0,type:"icon"};c={icon:f,primaryAddOn:a};b=d("fbicon")._(h("995804"),20);f="primary";a={alt:void 0,"aria-label":void 0,"aria-labelledby":void 0,color:f,disabled:void 0,icon:b,linkProps:void 0,onHoverIn:void 0,onHoverOut:void 0,onPress:void 0,ref:void 0,size:void 0,testid:void 0,type:"icon"};f={icon:b,primaryAddOn:a};b=d("fbicon")._(h("995804"),20);a=!0;var i="primary";i={alt:void 0,"aria-label":void 0,"aria-labelledby":void 0,color:i,disabled:a,icon:b,linkProps:void 0,onHoverIn:void 0,onHoverOut:void 0,onPress:void 0,ref:void 0,size:void 0,testid:void 0,type:"icon"};a={icon:b,primaryAddOn:i};b=d("fbicon")._(h("502065"),20);i="primary";i={alt:void 0,"aria-label":void 0,"aria-labelledby":void 0,color:i,disabled:void 0,icon:b,linkProps:void 0,onHoverIn:void 0,onHoverOut:void 0,onPress:void 0,ref:void 0,size:void 0,testid:void 0,type:"icon"};b={icon:b,primaryAddOn:i};i=d("fbicon")._(h("969196"),20);var j="primary";j={alt:void 0,"aria-label":void 0,"aria-labelledby":void 0,color:j,disabled:void 0,icon:i,linkProps:void 0,onHoverIn:void 0,onHoverOut:void 0,onPress:void 0,ref:void 0,size:void 0,testid:void 0,type:"icon"};i={icon:i,primaryAddOn:j};j=d("fbicon")._(h("532356"),20);var k="primary";k={alt:void 0,"aria-label":void 0,"aria-labelledby":void 0,color:k,disabled:void 0,icon:j,linkProps:void 0,onHoverIn:void 0,onHoverOut:void 0,onPress:void 0,ref:void 0,size:void 0,testid:void 0,type:"icon"};j={icon:j,primaryAddOn:k};k=d("fbicon")._(h("652791"),20);var l="primary";l={alt:void 0,"aria-label":void 0,"aria-labelledby":void 0,color:l,disabled:void 0,icon:k,linkProps:void 0,onHoverIn:void 0,onHoverOut:void 0,onPress:void 0,ref:void 0,size:void 0,testid:void 0,type:"icon"};k={icon:k,primaryAddOn:l};l={Off:k,On:j};k=d("fbicon")._(h("497248"),20);j="primary";j={alt:void 0,"aria-label":void 0,"aria-labelledby":void 0,color:j,disabled:void 0,icon:k,linkProps:void 0,onHoverIn:void 0,onHoverOut:void 0,onPress:void 0,ref:void 0,size:void 0,testid:void 0,type:"icon"};k={icon:k,primaryAddOn:j};j=d("fbicon")._(h("689703"),20);d={alt:void 0,"aria-label":void 0,"aria-labelledby":void 0,color:void 0,disabled:void 0,icon:j,linkProps:void 0,onHoverIn:void 0,onHoverOut:void 0,onPress:void 0,ref:void 0,size:void 0,testid:void 0,type:"icon"};h={icon:j,primaryAddOn:d};g.BlockMessages=e;g.ReportMessages=c;g.RestrictMessages=f;g.RestrictMessagesPendingState=a;g.FRXItem=b;g.IgnoreMessages=i;g.Notifications=l;g.EndToEndEncryptionKeys=k;g.EphemeralMessages=h}),98); __d("MWLSMarkThreadAsUnread.bs",["LS.bs","LSOptimisticMarkThreadUnread","MWInboxPassiveContext.bs","MWThreadKey.bs","gkx","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=c("useReStore")(),e=d("MWThreadKey.bs").useIdMemoizedExn();a=d("MWInboxPassiveContext.bs").useMWInboxPassiveContext();var f=a.setIsPassive;return h.useCallback(function(a){c("gkx")("6531")&&f(!0),c("promiseDone")(b.runInTransaction(function(a){return c("LSOptimisticMarkThreadUnread")(e,d("LS.bs").make(a))},"readwrite"))},[e,b])}g.useHook=a}),98); __d("MWLSThreadCapabilities.bs",["LSBitOffset.bs","LSThreadCapabilityBitOffset.bs","MWThreadKey.bs","ReQL.bs","ReQLSubscription.bs","SortedAsyncIterable.bs","bs_belt_Option","bs_caml","bs_caml_int64","gkx","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("LSBitOffset.bs").set(d("LSThreadCapabilityBitOffset.bs").disappearingMode,d("LSBitOffset.bs").set(d("LSThreadCapabilityBitOffset.bs").optimisticThreadFeedbackAndReport,d("LSBitOffset.bs").set(d("LSThreadCapabilityBitOffset.bs").block,d("LSBitOffset.bs").set(d("LSThreadCapabilityBitOffset.bs").rtcVoiceCall,d("LSBitOffset.bs").set(d("LSThreadCapabilityBitOffset.bs").rtcVideoCall,d("LSBitOffset.bs").set(d("LSThreadCapabilityBitOffset.bs").threadDetails,d("LSBitOffset.bs").set(d("LSThreadCapabilityBitOffset.bs").seenHeads,d("LSBitOffset.bs").set(d("LSThreadCapabilityBitOffset.bs").reactions,d("LSBitOffset.bs").set(d("LSThreadCapabilityBitOffset.bs").sharedMedia,d("LSBitOffset.bs").set(d("LSThreadCapabilityBitOffset.bs").audioClips,d("LSBitOffset.bs").set(d("LSThreadCapabilityBitOffset.bs").threadDetailsProfileButton,d("LSBitOffset.bs").set(d("LSThreadCapabilityBitOffset.bs").roomCreation,d("LSBitOffset.bs").set(d("LSThreadCapabilityBitOffset.bs").gif,d("LSBitOffset.bs").set(d("LSThreadCapabilityBitOffset.bs").sticker,d("LSBitOffset.bs").set(d("LSThreadCapabilityBitOffset.bs").mediaPicker,d("LSBitOffset.bs").set(d("LSThreadCapabilityBitOffset.bs").camera,d("LSBitOffset.bs").set(d("LSThreadCapabilityBitOffset.bs").payment,d("LSBitOffset.bs").empty))))))))))))))))),j=[i,d("LSBitOffset.bs").empty];function k(a){var b=c("useReStore")(),e=d("MWThreadKey.bs").useIdMemoized();a=d("ReQLSubscription.bs").useFirst(h.useMemo(function(){if(e!==void 0)return d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(b.table("threads")),{hd:e,tl:0});else return d("SortedAsyncIterable.bs").empty()},[e,b]));a=c("bs_belt_Option").map(a,function(a){return[a.capabilities,a.capabilities2]});if(a!==void 0)return a;else return j}function l(a,b){a=c("bs_caml").i64_ge(a,[0,64])?c("bs_caml_int64").sub(a,[0,64]):a;a=c("bs_caml_int64").lsl_(c("bs_caml_int64").one,c("bs_caml_int64").to_int32(a));return c("bs_caml").i64_eq(c("bs_caml_int64").and_(b,a),a)}function a(a){return l(d("LSThreadCapabilityBitOffset.bs").gif,a[0])}function b(a){return l(d("LSThreadCapabilityBitOffset.bs").payment,a[0])}function e(a){return l(d("LSThreadCapabilityBitOffset.bs").pollCreation,a[0])}function f(a){return l(d("LSThreadCapabilityBitOffset.bs").displayActorTypeInThreadViewHeader,a[0])}function m(a){return l(d("LSThreadCapabilityBitOffset.bs").feedbackAndReport,a[0])}function n(a){return l(d("LSThreadCapabilityBitOffset.bs").reportChatToAdmin,a[1])}function o(a){return l(d("LSThreadCapabilityBitOffset.bs").reportMessageToAdmin,a[1])}function p(a){return l(d("LSThreadCapabilityBitOffset.bs").pinnedMessagesV2,a[1])}function q(a){return l(d("LSThreadCapabilityBitOffset.bs").emojiCustomization,a[0])}function r(a){return l(d("LSThreadCapabilityBitOffset.bs").nicknames,a[0])}function s(a){return l(d("LSThreadCapabilityBitOffset.bs").colorCustomization,a[0])}function t(a){return l(d("LSThreadCapabilityBitOffset.bs").createGroup,a[0])}function u(a){return l(d("LSThreadCapabilityBitOffset.bs").rtcVideoCall,a[0])}function v(a){return l(d("LSThreadCapabilityBitOffset.bs").rtcVoiceCall,a[0])}function w(a){return l(d("LSThreadCapabilityBitOffset.bs").filePicker,a[0])}function x(a){return l(d("LSThreadCapabilityBitOffset.bs").roomCreation,a[0])}function y(a){return l(d("LSThreadCapabilityBitOffset.bs").audioClips,a[0])}function z(a){return c("gkx")("1921557")}function A(a){return l(d("LSThreadCapabilityBitOffset.bs").disableLinks,a[0])}function B(a){return l(d("LSThreadCapabilityBitOffset.bs").addMember,a[0])}function C(a){return l(d("LSThreadCapabilityBitOffset.bs").threadNameCustomization,a[0])}function D(a){return l(d("LSThreadCapabilityBitOffset.bs").ignoreMessages,a[0])}function E(a){return l(d("LSThreadCapabilityBitOffset.bs").sharedLinks,a[1])}function F(a){return l(d("LSThreadCapabilityBitOffset.bs").muteThread,a[0])}function G(a){return l(d("LSThreadCapabilityBitOffset.bs").restrictContact,a[1])}function H(a){return l(d("LSThreadCapabilityBitOffset.bs").threadDetailsShowChatInviteLink,a[1])}function I(a){return l(d("LSThreadCapabilityBitOffset.bs").threadDetailsDeleteThread,a[1])}function J(a){return C(k())}g.useCapabilities=k;g.has=l;g.canSendGif=a;g.canSendPayment=b;g.canCreatePoll=e;g.canDisplayActorTypeInThreadViewHeader=f;g.canReportThread=m;g.canReportChatToAdmin=n;g.canReportMessageToAdmin=o;g.canPinMessage=p;g.canCustomizeEmoji=q;g.canCustomizeNicknames=r;g.canCustomizeTheme=s;g.canCreateGroup=t;g.canRtcVideoCall=u;g.canRtcVoiceCall=v;g.canSendFile=w;g.canSendRoom=x;g.canSendAudioClip=y;g.canSendQuickCamAttachment=z;g.canDisableLinks=A;g.canAddMember=B;g.canCustomizeThreadName=C;g.canIgnoreMessages=D;g.canSeeSharedLinks=E;g.canMuteThread=F;g.canRestrict=G;g.canCopyInviteLink=H;g.canDeleteThread=I;g.useCanCustomizeThreadNameCapability=J}),98); __d("MWLSThreadFolder.bs",["MWThreadKey.bs","ReQL.bs","ReQLSubscription.bs","bs_belt_Option","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=c("useReStore")(),e=d("MWThreadKey.bs").useIdMemoizedExn();return c("bs_belt_Option").getWithDefault(d("ReQLSubscription.bs").useFirst(h.useMemo(function(){return d("ReQL.bs").map(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(b.table("threads")),{hd:e,tl:0}),function(a){return a.folderName})},[b,e])))}g.useHook=a}),98); __d("MWLSThreadHasThread.bs",["MWThreadKey.bs","ReQL.bs","ReQLSubscription.bs","bs_belt_Option","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=c("useReStore")(),e=d("MWThreadKey.bs").useIdMemoizedExn();return c("bs_belt_Option").isSome(d("ReQLSubscription.bs").useFirst(h.useMemo(function(){return d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableDescending(b.table("messages_ranges_v2__generated")),{hd:e,tl:0})},[b,e])))}g.useHook=a}),98); __d("MWLSThreadProfileLink.bs",["CurrentEnvironment","MWLSContactTypeExactUtils.bs","MWThreadKey.bs","MessagingThreadType.bs","ReQL.bs","ReQLSubscription.bs","XCometVanityURLControllerRouteBuilder","bs_belt_Option","bs_caml","bs_int64","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function i(a,b){return d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(a.table("contacts")),{hd:b,tl:0})}function j(a,b){return d("ReQL.bs").map(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(a.table("threads")),{hd:b,tl:0}),function(a){return a.threadType})}function a(a){var b=c("useReStore")(),e=d("MWThreadKey.bs").useIdMemoizedExn();a=d("ReQLSubscription.bs").useFirst(h.useMemo(function(){return i(b,e)},[b,e]));var f=c("bs_belt_Option").mapWithDefault(d("ReQLSubscription.bs").useFirst(h.useMemo(function(){return j(b,e)},[b,e])),!1,function(a){return c("bs_caml").i64_eq(a,d("MessagingThreadType.bs").oneToOne)});if(f)return c("bs_belt_Option").map(a,function(a){var b=a.secondaryName;a=d("MWLSContactTypeExactUtils.bs").isIgContact(a);return b!==void 0&&a?"https://www.instagram.com/"+b:(c("CurrentEnvironment").facebookdotcom?"":"https://www.facebook.com")+c("XCometVanityURLControllerRouteBuilder").buildURL({vanity:c("bs_int64").to_string(e)})})}b=i;e=j;f=a;g.openContactQuery=b;g.openThreadTypeQuery=e;g.useHook=f}),98); __d("MAWSecureThreadUpdateMuteSetting.bs",["MAWBackendBridge.bs","MAWThreadId.bs","Promise","bs_curry","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a,e,f){var g=c("useReStore")();return h.useCallback(function(h){return d("MAWThreadId.bs").ofThreadKey(g,a).then(function(a){if(a.TAG===0)return c("bs_curry")._1(d("MAWBackendBridge.bs").updateThreadMuteSetting({muteDuration:e,threadId:a._0}).sendAndReceive).then(function(a){return c("bs_curry")._1(f)});else return b("Promise").resolve()})},[g,a,e,f])}g.useHook=a}),98); __d("MWChatUnmuteThread.bs",["LS.bs","LSMailboxType.bs","LSMuteCallsFromThread","LSOptimisticMuteThread","bs_caml","bs_caml_format","bs_caml_int64","bs_int64","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=c("useReStore")(),e=c("bs_caml_int64").zero;return h.useCallback(function(a){var f=c("bs_int64").to_string(a.threadKey);c("bs_caml").i64_neq(a.muteExpireTimeMs,e)&&b.runInTransaction(function(a){return c("LSOptimisticMuteThread")(c("bs_caml_format").caml_int64_of_string(f),d("LSMailboxType.bs").messenger,c("bs_caml_int64").zero,d("LS.bs").make(a))},"readwrite");if(c("bs_caml").i64_neq(a.muteCallsExpireTimeMs,e)){b.runInTransaction(function(a){return c("LSMuteCallsFromThread")(c("bs_caml_format").caml_int64_of_string(f),d("LSMailboxType.bs").messenger,c("bs_caml_int64").zero,void 0,d("LS.bs").make(a))},"readwrite");return}},[b])}b=a;g.useHook=b}),98); __d("MWLSRTCDisplayStatus.bs",["LSContactBitOffset.bs","LSContactCapabilityBitOffset.bs","LSContactType.bs","LSMessagingThreadTypeUtil.bs","MWChatIsMessageRequest.bs","MWLSFeatureLimitedStatus.bs","MWLSThread.bs","MWLSThreadCapabilities.bs","MWLSThreadFolder.bs","MWLSThreadHasThread.bs","MWPActor.bs","MWThreadKey.bs","ReQL.bs","ReQLSubscription.bs","ReQLSuspense","bs_belt_Option","bs_caml","gkx","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=d("MWThreadKey.bs").useIdMemoizedExn();a=d("MWLSThread.bs").useThread(b);var e=d("MWLSThreadFolder.bs").useHook(),f=d("MWLSThreadHasThread.bs").useHook();e=d("MWChatIsMessageRequest.bs").fn(e);var g=d("MWPActor.bs").useActor(),i=c("useReStore")(),j=c("bs_belt_Option").isSome(d("ReQLSubscription.bs").useFirst(h.useMemo(function(){return d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(i.table("participants")),{hd:b,tl:{hd:g,tl:0}})},[i,b,g]))),k=d("ReQLSubscription.bs").useArray(h.useMemo(function(){return d("ReQL.bs").map(d("ReQL.bs").filter(d("ReQL.bs").take(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(i.table("participants")),{hd:b,tl:0}),2),function(a){return c("bs_caml").i64_neq(a.contactId,g)}),function(a){return d("ReQLSuspense").first(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(i.table("contacts")),{hd:a.contactId,tl:0}))})},[i,b,JSON.stringify(g)])),l=k.every(function(a){if(a!==void 0&&!c("bs_belt_Option").getWithDefault(d("LSContactBitOffset.bs").has(d("LSContactCapabilityBitOffset.bs").rtcVideoCall,a),!0))return c("bs_belt_Option").getWithDefault(d("LSContactBitOffset.bs").has(d("LSContactCapabilityBitOffset.bs").rtcVoiceCall,a),!0);else return!0}),m=d("MWLSThreadCapabilities.bs").useCapabilities();m=d("MWLSThreadCapabilities.bs").canRtcVideoCall(m)||d("MWLSThreadCapabilities.bs").canRtcVoiceCall(m);var n=d("MWLSFeatureLimitedStatus.bs").useIsReadOnlyFeatureLimited();m=m&&f&&!n;f=a!==void 0?[d("LSMessagingThreadTypeUtil.bs").isOneToOne(a.threadType),d("LSMessagingThreadTypeUtil.bs").isGroup(a.threadType)]:[!1,!1];if(k.length!==1)n=!1;else{a=k[0];n=a!==void 0?c("bs_caml").i64_eq(a.contactType,d("LSContactType.bs").page):!1}if(m)if(e)return{_0:void 0,TAG:1};else if(f[0]||f[1]&&j||n&&c("gkx")("1710932")&&l)return{_0:void 0,TAG:0};else return{_0:void 0,TAG:2};else return{_0:void 0,TAG:2}}g.useHook=a}),98); __d("MWDeleteThreadAndMaybeNavigate.bs",["LS.bs","LSLocalOptimisticDeleteCommunityChannel","LSLocalOptimisticDeleteDiscoverableChat","LSOptimisticRemoveThread","LSThreadRemoveType.bs","LsThreadType.bs","MWCMIsAnyCMThread","MWChatStateActions.bs","MWChatStateV2.bs","MWUseNavigateAfterLeavingGroup.bs","Promise","bs_caml","bs_curry","gkx","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a,e){var f=c("useReStore")(),g=d("MWUseNavigateAfterLeavingGroup.bs").useHook(a),i=d("MWChatStateV2.bs").useDispatch(),j=c("MWCMIsAnyCMThread")(a.threadType),k=c("bs_caml").i64_eq(a.threadType,d("LsThreadType.bs").discoverablePublicChat)&&c("gkx")("6970");return h.useCallback(function(h){c("promiseDone")(f.runInTransaction(function(b){if(j)return c("LSLocalOptimisticDeleteCommunityChannel")(a.threadKey,d("LS.bs").make(b));else if(k)return c("LSLocalOptimisticDeleteDiscoverableChat")(a.threadKey,d("LS.bs").make(b));else return c("LSOptimisticRemoveThread")(a.threadKey,d("LSThreadRemoveType.bs").deleteThread,d("LS.bs").make(b))},"readwrite").then(function(f){e&&c("bs_curry")._1(g);c("bs_curry")._1(i,d("MWChatStateActions.bs").closeTabByThreadKey(Date.now(),a.threadKey));return b("Promise").resolve()}))},[f,a,g,e])}e=a;g.useHook=e}),98); __d("MWPUseIsThreadMuted.bs",["ServerTime","bs_caml_int64","bs_curry","clearTimeout","react","setTimeout","useIsMountedRef"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function i(a){var b=Math.min(c("bs_caml_int64").to_float(a.muteExpireTimeMs),c("bs_caml_int64").to_float(a.muteCallsExpireTimeMs));a=Math.max(c("bs_caml_int64").to_float(a.muteExpireTimeMs),c("bs_caml_int64").to_float(a.muteCallsExpireTimeMs));if(b===-1)return-1;else return a}function j(a){if(a<=-1)return!0;else return a>d("ServerTime").getMillis()}function a(a){return j(i(a))}function b(a){var b=i(a),e=c("useIsMountedRef")();a=h.useState(function(){return j(b)});var f=a[1];h.useEffect(function(){var a=j(b);c("bs_curry")._1(f,function(b){return a});var g=b===-1;if(!(a&&!g))return;var h=c("setTimeout")(function(a){if(e.current)return c("bs_curry")._1(f,function(a){return!1})},b-d("ServerTime").getMillis());return function(a){c("clearTimeout")(h)}},[b,f,e]);return a[0]}e=i;f=j;a=a;b=b;g.calcMinMaxMute=e;g.getThreadIsMuted=f;g.threadIsMuted=a;g.useHook=b}),98); __d("MWThreadListHoverButtonDropdownMenuDeleteThreadButton.bs",["MWChatSettingsDeleteConversation.bs","MWDeleteThreadAndMaybeNavigate.bs","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.selected,c=a.thread;a=a.onSelectItem;a=a!==void 0?a:function(a){};b=d("MWDeleteThreadAndMaybeNavigate.bs").useHook(c,b);return h.jsx(d("MWChatSettingsDeleteConversation.bs").make,{disabled:!1,onClick:b,onSelectItem:a,thread:c})}a.displayName=a.name+" [from "+f.id+"]";b=a;c=b;g.make=c}),98); __d("MWUseIsViewerThreadAdmin.react",["I64","MWPActor.bs","ReQL","ReQLSuspense"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){var c=d("MWPActor.bs").useActor(),e=d("ReQLSuspense").useFirst(function(){return d("ReQL").mergeJoin(d("ReQL").fromTableAscending(a.table("participants")).getKeyRange(b),d("ReQL").fromTableAscending(a.table("contacts"))).filter(function(a){a[0];a=a[1];return d("I64").equal(a.id,c)}).map(function(a){var b=a[0];a[1];return b})},[a,d("I64").to_string(b),c]);return(e=e==null?void 0:e.isAdmin)!=null?e:!1}g["default"]=a}),98); __d("useMWRemovePinnedThread",["LS.re","LSOptimisticallyRemovePinnedThread","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useCallback;function a(a){var b=c("useReStore")();return h(function(){return b.runInTransaction(function(b){return c("LSOptimisticallyRemovePinnedThread")(a,d("LS.re").make(b))},"readwrite")},[b,a])}g["default"]=a}),98); __d("MWV2ArchiveThreadMenuItem.bs",["fbt","I64","LS.bs","LSMessagingThreadTypeUtil.bs","LSOptimisticRemoveThread","LSOptimisticUnarchiveThread","LSThreadRemoveType.bs","MWChatStateActions.bs","MWChatStateV2.bs","MWLSThreadIsPinned.bs","MWMenuItem.react","MWThreadListHoverButtonDropdownMenuIcons.bs","MessagingThreadType.re","ODS","bs_curry","cr:1129","cr:11466","gkx","promiseDone","react","useMWRemovePinnedThread","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){var e=a.thread,f=c("useMWRemovePinnedThread")(),g=d("MWLSThreadIsPinned.bs").useHook(),j=c("useReStore")(),k=d("MWChatStateV2.bs").useDispatch();a=d("LSMessagingThreadTypeUtil.bs").isSecure(e.threadType);var l=d("I64").equal(e.threadType,d("MessagingThreadType.re").discoverablePublicChat),m=function(a){c("promiseDone")(j.runInTransaction(function(a){return c("LSOptimisticRemoveThread")(e.threadKey,d("LSThreadRemoveType.bs").archiveThread,d("LS.bs").make(a))},"readwrite"));return c("bs_curry")._1(k,d("MWChatStateActions.bs").closeTabByThreadKey(Date.now(),e.threadKey))};return b("cr:11466")!=null&&a?i.jsx(b("cr:11466").make,{archiveThread:m,thread:e}):i.jsx(c("MWMenuItem.react"),{icon:d("MWThreadListHoverButtonDropdownMenuIcons.bs").HideConversation.icon,onClick:function(a){g&&c("bs_curry")._1(f),m(),d("ODS").bumpEntityKey(3185,"mwchat_settings","archive")},primaryText:l&&c("gkx")("3187")?h._("__JHASH__EIhxT1Pd5dU__JHASH__"):h._("__JHASH__3JPEO1k6WUk__JHASH__")})}a.displayName=a.name+" [from "+f.id+"]";a={make:a};function e(a){var e=a.thread,f=c("useReStore")();a=d("LSMessagingThreadTypeUtil.bs").isSecure(e.threadType);var g=d("I64").equal(e.threadType,d("MessagingThreadType.re").discoverablePublicChat),j=function(a){c("promiseDone")(f.runInTransaction(function(a){return c("LSOptimisticUnarchiveThread")(e.threadKey,d("LS.bs").make(a))},"readwrite"))};return b("cr:1129")!=null&&a?i.jsx(b("cr:1129").make,{thread:e,unarchiveThread:j}):i.jsx(c("MWMenuItem.react"),{icon:d("MWThreadListHoverButtonDropdownMenuIcons.bs").UnhideConversation.icon,onClick:function(a){j(),d("ODS").bumpEntityKey(3185,"mwchat_settings","unarchive")},primaryText:g&&c("gkx")("3187")?h._("__JHASH__ChIQGD-bjnS__JHASH__"):h._("__JHASH__DnNd5f7ZeoA__JHASH__")})}e.displayName=e.name+" [from "+f.id+"]";f={make:e};e=a;a=f;g.$MAWArchiveSecureThreadMenuItem$requireCond=b("cr:11466");g.$MAWUnarchiveSecureThreadMenuItem$requireCond=b("cr:1129");g.Archive=e;g.Unarchive=a}),98); __d("RTWebJoinOngoingCallMenuItem.react",["fbt","ix","CometMenuItem.react","cr:11085","fbicon","react","useRTWebCometStartCallCallback"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");function a(a){var e=a.callData,f=a.fbid,g=c("useRTWebCometStartCallCallback")();a=(a=e==null?void 0:e.call_state)!=null?a:"NO_ONGOING_CALL";var k,l,m;switch(a){case"AUDIO_GROUP_CALL":k=d("fbicon")._(i("558161"),20);l=h._("__JHASH__mYi2wvTgdXk__JHASH__");m="audio";break;case"VIDEO_GROUP_CALL":k=d("fbicon")._(i("493174"),20);l=h._("__JHASH__Pu3sl5k0Wzp__JHASH__");m="video";break;default:return null}return j.jsx(c("CometMenuItem.react"),{icon:k,onClick:function(){e!=null&&(b("cr:11085").logClick({component:"join_call_button",surface:"messages_jewel"}),g({existingCall:e,mediaType:m,thread:{id:f,type:2},trigger:"multiway_thread_list_join_call_button"}))},primaryText:l})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWThreadListHoverButtonDropdownMenu.bs",["fbt","ix","Actor","CometLazyDialogTrigger.react","CometMenuSeparator.react","CommunityMessagingEnableState.bs","JSResource","LSMessagingSource.bs","LSMessagingThreadTypeUtil.bs","LSThreadBitOffset.bs","LSThreadCapabilityBitOffset.bs","LsMessengerThreadDamagingActionsEntryPoint.bs","LsSystemFolder.bs","MAWGating","MWCMIsAnyCMThread","MWCMLogMuteDuration.bs","MWCMReportGroupToAdminMenuItem.bs","MWCMUseFolder.bs","MWChatUnmuteThread.bs","MWInboxCommunityThreadsRouteBuilder.bs","MWInboxInfoBlockMessages.bs","MWInboxInfoFRXItem.bs","MWJewelPopoverDialogContext.react","MWLSCanLeaveGroup.bs","MWLSLeaveGroupMenuItem.bs","MWLSMarkThreadAsRead.bs","MWLSMarkThreadAsUnread.bs","MWLSRTCDisplayStatus.bs","MWLSStartPhoneCall.bs","MWLSThreadProfileLink.bs","MWMenu.react","MWMenuItem.react","MWPActor.bs","MWPBumpEntityKey","MWPThreadIsPage.bs","MWPUseIsThreadMuted.bs","MWThreadKey.bs","MWThreadListHoverButtonDropdownMenuDeleteThreadButton.bs","MWThreadListHoverButtonDropdownMenuIcons.bs","MWUseIsViewerThreadAdmin.react","MWV2ArchiveThreadMenuItem.bs","MessagingThreadType.bs","MessengerDesktopDeepLinkUtils","MessengerMuteUtils.bs","RTCCallState.bs","RTWebJoinOngoingCallMenuItem.react","ReQL.bs","ReQLSubscription.bs","SortedAsyncIterable.bs","XCometMessengerControllerRouteBuilder","bs_belt_Array","bs_belt_Option","bs_caml","bs_caml_option","bs_curry","bs_int64","cr:10885","cr:10889","cr:10890","cr:11437","cr:1875067","cr:3450","cr:4127","cr:4717","fbicon","gkx","qex","react","useReStore","uuid"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=b("Actor").useActor,k=i||(i=b("react")),l=b("RTWebJoinOngoingCallMenuItem.react");d={make:l};function a(a,c){return b("MWUseIsViewerThreadAdmin.react")(a,c)}var m=b("JSResource")("LSMuteThreadDialogForJSResource.react").__setRef("MWThreadListHoverButtonDropdownMenu.bs");function n(a){}function c(a){var c=a.onClose,d=a.onCloseJewel,e=a.groupId,f=a.isUnread,i=a.messagingEntrypoint,o=a.mutedUntil,p=a.selected,q=a.thread,r=c!==void 0?c:n,s=d!==void 0?d:n;a=b("MWThreadKey.bs").useIdMemoizedExn();c=b("LSMessagingThreadTypeUtil.bs").isSecure(q.threadType);var t=b("MWLSMarkThreadAsRead.bs").useHook(),u=b("MWLSMarkThreadAsUnread.bs").useHook(),v=k.useMemo(function(){return b("bs_int64").to_string(q.threadKey)},[q]);d=b("MWLSThreadProfileLink.bs").useHook();var w=k.useRef(b("uuid")()).current,x=b("MWCMUseFolder.bs").useHook(q),y=b("MWPUseIsThreadMuted.bs").useHook(q),z=b("MessengerMuteUtils.bs").muteActionLabel(y),A=b("MWLSStartPhoneCall.bs").useMakeRTCCall(),B=A[0],C=b("MWLSRTCDisplayStatus.bs").useHook(),D;switch(C.TAG){case 0:D=!0;break;case 1:case 2:D=!1;break}C=D&&b("bs_belt_Option").isNone(A[1]);var E=b("useReStore")();A=b("LSMessagingSource.bs").useHook();var F=b("MWUseIsViewerThreadAdmin.react")(E,a),G=b("MWPActor.bs").useActor(),H=j();H=H[0];var I=b("ReQLSubscription.bs").useFirst(k.useMemo(function(){if(b("LSMessagingThreadTypeUtil.bs").isOneToOne(q.threadType)){var a;return(a=b("ReQL.bs")).filter(a.map(a.mergeJoin(a.getKeyRange(a.fromTableAscending(E.table("participants")),{hd:q.threadKey,tl:0}),a.fromTableAscending(E.table("contacts"))),function(a){return a[1]}),function(a){return b("bs_caml").i64_neq(a.id,G)})}else return b("SortedAsyncIterable.bs").empty()},[E,q,G])),J=b("LSMessagingThreadTypeUtil.bs").isOneToOne(q.threadType)&&I==null;J=J&&!c&&b("MAWGating").isChatWithYourselfEnabled();var K=b("MWPThreadIsPage.bs").useIsPage(),L=q.folderName==="inbox"?b("LsMessengerThreadDamagingActionsEntryPoint.bs").inboxThreadList:q.folderName==="pending"?b("LsMessengerThreadDamagingActionsEntryPoint.bs").pendingThreadList:b("LsMessengerThreadDamagingActionsEntryPoint.bs").spamThreadList,M=b("MWLSCanLeaveGroup.bs").useHook(q),N=b("LSThreadBitOffset.bs").has(b("LSThreadCapabilityBitOffset.bs").muteThread,q),O=b("LSThreadBitOffset.bs").has(b("LSThreadCapabilityBitOffset.bs").threadDetailsDeleteThread,q),P=b("LSThreadBitOffset.bs").has(b("LSThreadCapabilityBitOffset.bs").goToSecretConversation,q);F=b("LSThreadBitOffset.bs").has(b("LSThreadCapabilityBitOffset.bs").groupGoToSecretConversation,q)&&F;var aa=b("LSThreadBitOffset.bs").has(b("LSThreadCapabilityBitOffset.bs").reportChatToAdmin,q),ba=b("LSThreadBitOffset.bs").has(b("LSThreadCapabilityBitOffset.bs").archiveThread,q),ca=b("LSThreadBitOffset.bs").has(b("LSThreadCapabilityBitOffset.bs").unarchiveThread,q),da=b("LSThreadBitOffset.bs").has(b("LSThreadCapabilityBitOffset.bs").block,q),Q=b("bs_caml").i64_eq(q.parentThreadKey,b("LsSystemFolder.bs").other),R=b("bs_caml").i64_eq(q.parentThreadKey,b("LsSystemFolder.bs").pending),S=b("bs_caml").i64_eq(q.parentThreadKey,b("LsSystemFolder.bs").archived);Q=!Q&&!R&&!S;R=b("bs_caml").i64_eq(q.parentThreadKey,b("LsSystemFolder.bs").businessSupport);var T=b("MWCMIsAnyCMThread")(q.threadType),U=k.useMemo(function(){if(x!==void 0&&T)return x.enableState},[v]);U=b("bs_caml").i64_eq(b("bs_belt_Option").getWithDefault(U,b("CommunityMessagingEnableState.bs").enabled),b("CommunityMessagingEnableState.bs").disableRequested);U=T?!U&&O:O;var ea=b("MWChatUnmuteThread.bs").useHook();O=b("ReQLSubscription.bs").useFirst(k.useMemo(function(){return b("ReQL.bs").getKeyRange(b("ReQL.bs").fromTableAscending(E.table("rtc_ongoing_calls_on_threads_v2")),{hd:q.threadKey,tl:0})},[E,JSON.stringify(q.threadKey)]));var V=k.useContext(b("MWJewelPopoverDialogContext.react")),W=V.setIsOpenForDialog,X=k.useCallback(function(a){if(i==="jewel")return b("bs_curry")._1(W,!0)},[i,W]),fa=k.useRef(null);V=b("bs_belt_Array").keepMap([C?b("bs_caml_option").some(k.jsx(b("MWMenuItem.react"),{icon:b("MWThreadListHoverButtonDropdownMenuIcons.bs").AudioCall.icon,onClick:function(a){return b("bs_curry")._3(B,!1,v,"comet_chat_tab_call_option")},primaryText:g._("__JHASH__O4qtiEl67OS__JHASH__")},"rtc_audio_call")):void 0,C?b("bs_caml_option").some(k.jsx(b("MWMenuItem.react"),{icon:b("MWThreadListHoverButtonDropdownMenuIcons.bs").VideoChat.icon,onClick:function(a){return b("bs_curry")._3(B,!0,v,"comet_chat_tab_call_option")},primaryText:g._("__JHASH__kLH4bNezw_S__JHASH__")},"rtc_video_call")):void 0],function(a){return a});C=b("gkx")("6975");C=x!==void 0?C?b("bs_curry")._1(b("MWInboxCommunityThreadsRouteBuilder.bs").buildURL,{folder_id:b("bs_int64").to_string(x.folderId),thread_key:b("bs_int64").to_string(q.threadKey)}):void 0:b("qex")._("940")===!0?b("MessengerDesktopDeepLinkUtils").getDeeplinkButtonURI({funnel_session_id:w,id:b("bs_caml_option").some(H),origin:"FB",thread:b("gkx")("2006753")?b("bs_int64").to_string(q.threadKey):void 0}):b("XCometMessengerControllerRouteBuilder").buildURL({thread_key:v});w=b("qex")._("940")===!0;H=x!==void 0||!w?g._("__JHASH__s0Qy3uZb0F___JHASH__"):b("MessengerDesktopDeepLinkUtils").getDeeplinkButtonLabel();var Y;if(S)Y=null;else{w=0;b("cr:11437")==null||!c?w=1:Y=k.jsx(b("cr:11437").make,{isUnread:f,thread:q});w===1&&(Y=k.jsx(b("MWMenuItem.react"),{icon:b("MWThreadListHoverButtonDropdownMenuIcons.bs").MarkAsReadOrUnread.icon,onClick:function(a){b("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.sidebar","group_thread_overflow_mark_as."+(f?"read":"unread"));if(f)return b("bs_curry")._1(t);else return b("bs_curry")._1(u)},primaryText:f?g._("__JHASH__lV_29qeqDer__JHASH__"):g._("__JHASH__CAPKp44lyif__JHASH__")}))}w=i!=="inbox";var Z;if(N)if(y){N=b("MAWGating").isOccamadillo();y=0;b("cr:10890")==null||N||!c?y=1:Z=k.jsx(b("cr:10890").make,{muteActionLabel:z,mutedUntil:o,thread:q});y===1&&(Z=k.jsx(b("MWMenuItem.react"),{icon:b("MWThreadListHoverButtonDropdownMenuIcons.bs").MuteConversation.Off.icon,onClick:function(a){b("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.sidebar","group_thread_overflow_unmute_notifications");T&&b("MWCMLogMuteDuration.bs").log(e,b("bs_int64").to_string(q.threadKey),"channel_level_unmute_all_notif","chat_row",0);return b("bs_curry")._1(ea,q)},primaryText:z,secondaryText:b("bs_belt_Option").getWithDefault(b("MessengerMuteUtils.bs").mutedUntilLabel(o),"")}))}else Z=k.jsx(b("CometLazyDialogTrigger.react"),{dialogProps:{groupId:e,onClose:function(a){},threadKey:q.threadKey},dialogResource:m,children:function(a){return k.jsx(b("MWMenuItem.react"),{icon:b("MWThreadListHoverButtonDropdownMenuIcons.bs").MuteConversation.On.icon,onClick:function(c){b("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.sidebar","group_thread_overflow_mute_notifications");b("bs_curry")._1(X);return b("bs_curry")._1(a)},primaryText:z,ref:fa})}});else Z=null;if(O!==void 0){N=O.ongoingCallServerInfoData;y=N!==void 0?N:null}else y=null;var $;o=0;b("cr:10889")==null||!(U&&c)?o=1:$=k.jsx(b("cr:10889").make,{onSelectItem:X,selected:p,thread:q});o===1&&($=U?k.jsx(b("MWThreadListHoverButtonDropdownMenuDeleteThreadButton.bs").make,{onSelectItem:X,selected:p,thread:q}):null);return k.jsxs(b("MWMenu.react"),{withArrow:!0,children:[Y,C!==void 0&&w?k.jsx(b("MWMenuItem.react"),{href:C,icon:b("MWThreadListHoverButtonDropdownMenuIcons.bs").AppMessenger.icon,onClick:r,primaryText:H}):null,!(b("cr:1875067")==null)&&!T?b("bs_curry")._1(b("cr:1875067").get,{icon:b("MWThreadListHoverButtonDropdownMenuIcons.bs").AppMessenger.icon,threadID:b("bs_int64").to_string(a)}):null,Z,d!==void 0?k.jsx(b("MWMenuItem.react"),{href:d,icon:b("MWThreadListHoverButtonDropdownMenuIcons.bs").ViewProfile.icon,onClick:r,primaryText:g._("__JHASH__J6dPBvtGEtJ__JHASH__")}):null,!(b("cr:10885")==null)&&(J||P||F)?k.jsx(b("cr:10885").make,{entryPoint:A,fbid:v,onPress:function(a){b("bs_curry")._1(s,a);return b("bs_curry")._1(r,a)},thread:q}):null,!(b("cr:4127")==null)&&(J||P||b("bs_caml").i64_eq(q.threadType,b("MessagingThreadType.bs").group))?k.jsx(b("cr:4127").make,{onPress:function(a){b("bs_curry")._1(s,a);return b("bs_curry")._1(r,a)},thread:q}):null,!(b("cr:3450")==null)&&b("bs_caml").i64_eq(q.threadType,b("MessagingThreadType.bs").secureMessageOverWaOneToOne)?k.jsx(b("cr:3450").make,{onPress:function(a){b("bs_curry")._1(s,a);return b("bs_curry")._1(r,a)},thread:q}):null,V.length!==0?k.jsxs(k.Fragment,{children:[k.jsx(b("CometMenuSeparator.react"),{}),V]}):null,k.jsx(l,{callData:{call_state:b("RTCCallState.bs").ofLsRtcCallState(q.ongoingCallState,q.threadType),initiator_fbid:null,server_info_data:y},fbid:v}),R?null:k.jsx(b("CometMenuSeparator.react"),{}),b("cr:4717")==null?null:k.jsx(b("cr:4717"),{threadKey:a}),da&&I!==void 0?k.jsx(b("MWInboxInfoBlockMessages.bs").make,{contactId:I.id,isPage:K,loggingEntryPoint:L,loggingSource:K?5:1,loggingSourceOwner:0,thread:q,children:function(a,c,d,e){return k.jsx(b("MWMenuItem.react"),{icon:b("fbicon")._(h("482898"),20),onClick:function(c){return b("bs_curry")._1(a)},primaryText:d})}}):null,ba&&Q?k.jsx(b("MWV2ArchiveThreadMenuItem.bs").Archive.make,{thread:q}):null,ca&&S?k.jsx(b("MWV2ArchiveThreadMenuItem.bs").Unarchive.make,{thread:q}):null,$,aa&&T?k.jsx(b("MWCMReportGroupToAdminMenuItem.bs").make,{onSelectItem:X,thread:q}):null,i==="inbox"&&!R?k.jsx(b("MWInboxInfoFRXItem.bs").make,{thread:q,children:function(c,a,d,e){return k.jsx(b("MWMenuItem.react"),{icon:b("MWThreadListHoverButtonDropdownMenuIcons.bs").SomethingIsWrong.icon,onClick:function(a){return b("bs_curry")._1(c)},primaryText:d,ref:a})}}):null,M?k.jsx(b("MWLSLeaveGroupMenuItem.bs").make,{onSelectItem:X,shouldNavigate:p,thread:q}):null]})}c.displayName=c.name+" [from "+e.id+"]";e.exports=c;e=b("cr:1875067");c=c;f.RTWebJoinOngoingCallMenuItem=d;f.useIsViewerThreadAdmin=a;f.$GetMessengerDesktopMenuItem$requireCond=b("cr:1875067");f.getMessengerDesktopMenuItem=e;f.chatMuteConversationDialogResource=m;f.$MAWCutoverToSecureConversationThreadListMenuItem$requireCond=b("cr:4127");f.$MAWMarkThreadAsReadMenuItem$requireCond=b("cr:11437");f.$MAWSecureConversationThreadListMenuItem$requireCond=b("cr:10885");f.$MAWThreadListHoverButtonDropdownMenuDeleteSecureThreadButton$requireCond=b("cr:10889");f.$MAWThreadListHoverButtonDropdownMenuUnmuteThreadMenuItem$requireCond=b("cr:10890");f.$MAWUndoCutoverThreadListMenuItem$requireCond=b("cr:3450");f.make=c}),null); __d("MWThreadListNewMessageState.re",["MWThreadListNewMessageState.bs"],(function(a,b,c,d,e,f){a=b("MWThreadListNewMessageState.bs").Provider.make;f.Provider_make=a;c=b("MWThreadListNewMessageState.bs").useDispatch;f.useDispatch=c;d=b("MWThreadListNewMessageState.bs").Provider;f.Provider=d}),null); __d("TetraThreadListHoverButtonDropdownMenuIcons.bs",["ix","fbicon"],(function(a,b,c,d,e,f,g,h){"use strict";a=d("fbicon")._(h("477820"),20);b={icon:a};c=d("fbicon")._(h("532356"),20);e={icon:c};f=d("fbicon")._(h("652791"),20);a={icon:f};c={Off:a,On:e};f=d("fbicon")._(h("558623"),20);a={icon:f};e=d("fbicon")._(h("497248"),20);f={icon:e};e=d("fbicon")._(h("558164"),20);e={icon:e};var i=d("fbicon")._(h("493176"),20);i={icon:i};var j=d("fbicon")._(h("577043"),20);j={icon:j};var k=d("fbicon")._(h("510235"),20);k={icon:k};var l=d("fbicon")._(h("483829"),20);l={icon:l};var m=d("fbicon")._(h("505620"),20);m={icon:m};var n=d("fbicon")._(h("538183"),20);n={icon:n};var o=d("fbicon")._(h("502065"),20);o={icon:o};d=d("fbicon")._(h("490583"),20);h={icon:d};g.MarkAsReadOrUnread=b;g.MuteConversation=c;g.ViewProfile=a;g.SecretConversation=f;g.AudioCall=e;g.VideoChat=i;g.HideConversation=j;g.UnhideConversation=k;g.DeleteConversation=l;g.AppMessenger=m;g.LeaveChat=n;g.SomethingIsWrong=o;g.Report=h}),98);/*FB_PKG_DELIM*/ __d("ReStoreLocalStorageQuotaExceed",[],(function(a,b,c,d,e,f){"use strict";var g="Failed to execute 'setItem' on 'Storage'",h="ReStoreLocalStorageQuotaExceed";a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var c;b=g+": "+b;c=a.call(this,b)||this;c.message=b;c.name=h;return c}return b}(babelHelpers.wrapNativeSuper(Error));f.ERROR_NAME=h;f.ReStoreLocalStorageQuotaExceed=a}),66); __d("MAWIndexedDBDeletion",["FBLogger","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function a(a){if(globalThis.indexedDB!=null&&a!=null){a=globalThis.indexedDB.deleteDatabase(a);a.onsuccess=function(){c("FBLogger")("messenger_e2ee_web").warn("Encryption db was deleted")};a.onblocked=function(){c("recoverableViolation")("[maw ear db] Cannot delete db: blocked","messenger_e2ee_web")};a.onerror=function(){c("recoverableViolation")("[maw ear db] Cannot delete db","messenger_e2ee_web")}}}g.deleteDB=a}),98); __d("MAWIndexedDbMetadata",[],(function(a,b,c,d,e,f){"use strict";e="v1";var g="v1",h="v1",i="v1",j="messenger_web_"+e,k="messenger_web_encryption_"+g,l="messenger_web_signal_"+h,m="messenger_web_eb_lsdb_"+i;function a(a){return j+"_"+a}function b(a){return k+"_"+a}function c(a){return l+"_"+a}function d(a){return m+"_"+a}f.DB_NAME=j;f.ENCRYPTION_DB_NAME=k;f.SIGNAL_DB_NAME=l;f.EB_LSDB_NAME=m;f.dbName=a;f.encryptionDbName=b;f.signalDbName=c;f.ebLSDBName=d}),66); __d("MAWTransactionMode",[],(function(a,b,c,d,e,f){"use strict";a="r";b="rw";f.READONLY=a;f.READWRITE=b}),66); __d("MAWErrorObject",["err"],(function(a,b,c,d,e,f,g){"use strict";function a(a){if(a instanceof Error)return a;else if(typeof a==="string")return c("err")(a);else return null}g.getErrorObject=a}),98); __d("WAHex",["WAErr"],(function(a,b,c,d,e,f,g){var h=16,i=[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70],j=[48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102];function a(a){a=new Uint8Array(a);self.crypto.getRandomValues(a);return k(a)}function k(a){var b=[];for(var c=0;c>4],i[d&15])}return String.fromCharCode.apply(String,b)}function b(a){var b=[];for(var c=0;c>4],j[d&15])}return String.fromCharCode.apply(String,b)}function d(a){a=m(a);if(a.length%2!==0)throw c("WAErr")('parseHex given hex "'+a+'" which is not a multiple of 8-bits.');var b=new Uint8Array(a.length>>1);for(var d=0,e=0;dr(b);return c?!d:d}function u(a){return s(a)?a.slice(1):"-"+a}function v(a,b){if(a.length>b)throw c("WAErr")('"'+a+'" is longer than '+b*4+" bits.")}function w(a){if(a>4294967295||a<-4294967296)throw c("WAErr")("uint32ToLowerCaseHex given number over 32 bits");a=(a>=0?a:4294967296+a).toString(16);return p(a,8)}g.NUM_HEX_IN_LONG=h;g.HEX_LOWER=j;g.randomHex=a;g.toHex=k;g.toLowerCaseHex=b;g.parseHex=d;g.hexAt=l;g.hexOrThrow=m;g.bytesToBuffer=e;g.bytesToDebugString=f;g.createHexLong=n;g.createHexLongFrom32Bits=o;g.hexLongFromNumber=q;g.hexLongToHex=r;g.hexLongIsNegative=s;g.isBiggerHexLong=t;g.negateHexLong=u}),98); __d("WANullthrows",["WAErr"],(function(a,b,c,d,e,f,g){function a(a,b){b===void 0&&(b="?");if(a==null)throw c("WAErr")("Unexpected null or undefined: "+b);return a}g["default"]=a}),98); __d("WALogger",["Promise","WAHex","WANullthrows","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[","] ",""]);h=function(){return a};return a}var i=null,j=0,k=new Map(),l,m=new(b("Promise"))(function(a){l=a});function a(a){i=a,l==null?void 0:l(),l=null}function n(){return c("WANullthrows")(i,"WALogger called before initialization")}function e(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:a.next=2;return b("regeneratorRuntime").awrap(m);case 2:case"end":return a.stop()}},null,this)}function o(){return Array.from(k.values())}function f(a,c){var d=++j;k.set(d,a+"("+d+")");return b("Promise").resolve(c()).then(function(a){k["delete"](d);return a})}function p(a,b){return{verbose:function(){return p(a,b)},color:function(c){return p(a,b)},devConsole:function(){var c;for(var d=arguments.length,e=new Array(d),f=0;f1?c-1:0),e=1;e1?c-1:0),e=1;e1?c-1:0),e=1;e1?c-1:0),e=1;e1?c-1:0),e=1;e>";else{var b=a.subarray(0,32);return"<<"+z(b)+", "+(a.length-b.length)+" more bytes>>"}else if(a.toString===Object.prototype.toString)return JSON.stringify(a,function(a,b){return a?String(b):b});else return String(a)}function z(a){var b=!0,c=a.length;while(b&&c){var e=a[--c];b=32<=e&&e<127}if(b)return JSON.stringify(String.fromCharCode.apply(String,a));else return d("WAHex").toHex(a)}g.initializeWaLogger=a;g.whenReady=e;g.runInLoggerContext=f;g.TAGS=q;g.DEV=s;g.DEV_XMPP=t;g.LOG=u;g.WARN=v;g.ERROR=w;g.debugStr=y;g.bytesToDebugString=z}),98); __d("WADynamicRouter",["Promise","WAErr","WALogger"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose([""," is not defined for ",""]);h=function(){return a};return a}var i={sentinel:"RESPONSE_NAMESPACE"},j={sentinel:"NOT_HANDLED"};a=function(){function a(){var a=this;this.$1=b("Promise").resolve();this.$2=new Map();this.$4=0;this.$5=null;this.$6=null;this.$7=null;this.fireAndForget=function(b,c,d,e){e===void 0&&(e=!1),a.$3==null?void 0:a.$3(b,c,d),a.$9(b,c,d,null,e)};this.sendAndReceive=function(c,d,e,f){f===void 0&&(f=!1);a.$3==null?void 0:a.$3(c,d,e);return new(b("Promise"))(function(b,g){a.$9(c,d,e,function(c){try{var d=m(c);d?d.call(c,function(c){a.$9(i,"",c,b,f)},function(b){a.$9(i,"",b,g,!1)}):a.$9(i,"",c,b,f)}catch(b){a.$9(i,"",b,g,!1)}},f)})};this.$8=function(){var b=a.$6;if(!b)return;var c=a.$2,d;while(b&&!(d=k(c,b)))a.$6=b=b.nextRoute;if(!b||!d)return;c=a.$10(d,b);var e=!0;if(c!==j){var f=b.prevRoute,g=b.nextRoute;a.$6===b&&(a.$6=g);f?f.nextRoute=g:a.$5=g;g?g.prevRoute=f:(e=!1,a.$7=f)}e&&a.$1.then(a.$8);return c}}var e=a.prototype;e.hasHandlerForNamespace=function(a){return this.$2.has(a)};e.getHandledNamespaces=function(){return Array.from(this.$2.keys())};e.setOnRouteCalled=function(a){this.$3=a};e.setNamespaceHandler=function(a,b){var c=this.$2,d=c.get(a);if(d===b)return;++this.$4;c.set(a,b);if(!d){c=this.$5;c&&(this.$6||this.$1.then(this.$8),this.$6=c)}};e.setHandlers=function(a,b){function e(e,f,g){if(b[e]==null){d("WALogger").ERROR(h(),e,a);throw c("WAErr")(e+" is not defined for "+a)}e=b[e](f);g&&g(e)}this.setNamespaceHandler(a,e)};e.$9=function(a,b,c,d,e){var f=this.$7;a={namespace:a,route:b,arg:c,resolver:d,prevRoute:f,nextRoute:null,silentLog:e};this.$7=a;b=!0;f?(f.nextRoute=a,b=!this.$6):this.$5=a;b&&k(this.$2,a)&&(this.$6=a,this.$1.then(this.$8))};e.$10=function(a,d){var e=d.route,f=d.arg,g=d.resolver;d=d.silentLog;var h=this.$4,i=null,k=null;try{i=a(e,f,g,d)}catch(a){k=b("Promise").reject(a)}if(i===j)if(h===this.$4)k=b("Promise").reject(c("WAErr")("DynamicRouter: NOT_HANDLED can only be used when updating handlers"));else return j;if(g){k&&g(k);return}else return k};return a}();function k(a,b){b=b.namespace;return b===i?l:a.get(b)}function l(a,b,c){c(b)}function m(a){if(a!=null&&(typeof a==="object"||typeof a==="function")){a=a.then;return typeof a==="function"?a:null}return null}g.NOT_HANDLED=j;g.DynamicRouter=a}),98); __d("WABridge",["WADynamicRouter"],(function(a,b,c,d,e,f,g){"use strict";var h=new(d("WADynamicRouter").DynamicRouter)();function a(){return h}g.getBridge=a}),98); __d("MAWBridge",["MAWGating","Promise","WABridge","qpl"],(function(a,b,c,d,e,f,g){"use strict";var h=function(a,b,d){if(a==="event"&&b==="odsBumpEntityKey")return!0;if(a==="event"&&b==="log")return!0;return a==="event"&&b==="qplEvent"&&(d==null?void 0:d.event)!==c("qpl")._(1056839232,"112")?!0:!1},i=new Set(["StartTraceWithTraceId","StartTrace","UpdateTrace","TraceRecordCheckpoint"]),j=function(a,b,c){var d=c==null?void 0:c.events;return a!=="event"||b!=="uiUpdate"||d==null||!Array.isArray(d)?c:babelHelpers["extends"]({},c,{events:d.filter(function(a){return(a==null?void 0:a.tag)==null||!i.has(a==null?void 0:a.tag)})})},k=null;function l(a){k==null&&(k={fireAndForget:function(b,c,d,e){e===void 0&&(e=!1);if(h(b,c,d))return;d=j(b,c,d);a.fireAndForget(b,c,d,e)},getHandledNamespaces:function(){return a.getHandledNamespaces()},hasHandlerForNamespace:function(b){return a.hasHandlerForNamespace(b)},sendAndReceive:function(c,d,e,f){f===void 0&&(f=!1);if(h(c,d,e))return b("Promise").resolve();e=j(c,d,e);return a.sendAndReceive(c,d,e,f)},setHandlers:function(b,c){a.setHandlers(b,c)},setNamespaceHandler:function(b,c){a.setNamespaceHandler(b,c)},setOnRouteCalled:function(b){return a.setOnRouteCalled(b)}});return k}function a(){var a=d("WABridge").getBridge();return d("MAWGating").isLoggingDisabled()?l(a):a}g.getBridge=a}),98); __d("MAWQplProxy",["MAWBridge"],(function(a,b,c,d,e,f,g){"use strict";var h=0;function i(){return Date.now()}function j(a,b,c,e){var f=i();d("MAWBridge").getBridge().fireAndForget("event","qplEvent",{action:{name:b,type:"point"},annotations:c,event:a,instanceKey:e,timestamp:f},!0)}function a(a,b,c){var e;c==null&&h++;var f=(e=c)!=null?e:h;e=i();c==null&&d("MAWBridge").getBridge().fireAndForget("event","qplEvent",{action:{type:"start"},annotations:b,event:a,instanceKey:f,timestamp:e},!0);return{addPoint:function(c,b){return j(a,c,b,f)},endFail:function(c,b,e){var g=i();d("MAWBridge").getBridge().fireAndForget("event","qplEvent",{action:{name:c,type:"failure"},annotations:b,event:a,instanceKey:f,nonTrackableAnnotations:e,timestamp:g},!0)},endSuccess:function(b,c){var e=i();d("MAWBridge").getBridge().fireAndForget("event","qplEvent",{action:{type:"success"},annotations:b,event:a,instanceKey:f,nonTrackableAnnotations:c,timestamp:e},!0)},startTime:e}}g.performanceAbsoluteNow=i;g.addQplPoint=j;g.startQplUserFlow=a}),98); __d("WAResultOrError",["Promise","regeneratorRuntime"],(function(a,b,c,d,e,f){function g(a,b){if(b!=null)return{success:!1,error:a,payload:b};else return{success:!1,error:a}}function h(a){return{success:!0,value:a}}function a(a,b){return!a.success?a:h(b(a.value))}function i(a,c){var d;return b("regeneratorRuntime").async(function(e){while(1)switch(e.prev=e.next){case 0:if(a.success){e.next=2;break}return e.abrupt("return",a);case 2:e.next=4;return b("regeneratorRuntime").awrap(c(a.value));case 4:d=e.sent;return e.abrupt("return",h(d));case 6:case"end":return e.stop()}},null,this)}function c(a,b){return a.success?h(a.value):g(b(a.error),a.payload)}function j(a,c){var d;return b("regeneratorRuntime").async(function(e){while(1)switch(e.prev=e.next){case 0:if(!a.success){e.next=2;break}return e.abrupt("return",h(a.value));case 2:e.next=4;return b("regeneratorRuntime").awrap(c(a.error));case 4:d=e.sent;return e.abrupt("return",g(d,a.payload));case 6:case"end":return e.stop()}},null,this)}function d(a,b){return a.success?b(a.value):a}function e(a,c){return a.success?c(a.value):b("Promise").resolve(a)}function k(a){return function(b){return i(b,a)}}function l(a){return function(c){return b("regeneratorRuntime").async(function(d){while(1)switch(d.prev=d.next){case 0:d.next=2;return b("regeneratorRuntime").awrap(j(c,a));case 2:case"end":return d.stop()}},null,this)}}f.makeError=g;f.makeResult=h;f.mapResult=a;f.asyncMapResult=i;f.mapError=c;f.asyncMapError=j;f.chain=d;f.asyncChain=e;f.onResult=k;f.catchError=l}),66); __d("LocalStorageWrapper",["CurrentUser","WAResultOrError","isQuotaExceededError","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h=c("requireDeferred")("PersistedQueue").__setRef("LocalStorageWrapper");function i(a){var b=null;try{b=window.localStorage;if(b!=null&&typeof b.setItem==="function"&&typeof b.removeItem==="function"){var c="__test__"+Date.now();b.setItem(c,"");b.removeItem(c)}else return null}catch(c){if(d("isQuotaExceededError").isStorageQuotaExceededError(b,c)===!1){a("Failed to get localstorage");return null}}return b}function a(a){try{a=i(a);return a!=null}catch(a){return!1}}function j(a){try{var b=0,c={};for(var d in a){if(!Object.prototype.hasOwnProperty.call(a,d))continue;var e=(a[d].length+d.length)*2;b+=e;e/1024>1e3&&(c[d.substr(0,50)]=(e/1024).toFixed(2))}c.total=(b/1024).toFixed(2);return JSON.stringify(c)}catch(a){return"Can't calculate localStorage"}}function b(a,b,c,e,f){if(a==null)return d("WAResultOrError").makeError("null-storage");try{a.setItem(b,c)}catch(i){f!=null&&f(i);if(d("CurrentUser").isEmployee()){var g=j(a);h.onReady(function(a){a=a.isQueueActivateExperiment().toString();e(i+" - Storage quota exceeded while setting "+b+":"+c+", queueActivateExp:"+a+" "+g)})}else e(i+" - Storage quota exceeded while setting "+b+":"+c);return d("WAResultOrError").makeError("quota-exceeded")}return d("WAResultOrError").makeResult()}function e(a,b,c){a==null?c("not storage found"):a.removeItem(b)}function f(a,b,c){if(a==null){c("not storage found");return null}else return a.getItem(b)}g.getStorage=i;g.isLocalStorageAvailable=a;g.setItemGuarded=b;g.removeItemGuarded=e;g.getItemGuarded=f}),98); __d("MAWHexUtils",["err"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=a.toString(16);return(a.length-1).toString(16)+a}function b(a){for(var b=1;b0?c:h(b);c=a.call(this,c)||this;c.errors=b;return c}return b}(a("AggregateError",!0));var i=function(b){babelHelpers.inheritsLoose(a,b);function a(){return b.apply(this,arguments)||this}return a}(a("TimeoutError",!1)),j=function(b){babelHelpers.inheritsLoose(a,b);function a(a,c){a=b.call(this,a)||this;a.code=c;return a}return a}(a("HttpError",!1)),k=function(b){babelHelpers.inheritsLoose(a,b);function a(){return b.apply(this,arguments)||this}return a}(a("UnimplementedMethod")),l=!1;function b(a){if(a==null||a.name!=="QuotaExceededError")throw a;l=!0}function c(){return l}function d(a){return JSON.stringify(a,Object.getOwnPropertyNames(a))}var m=function(b){babelHelpers.inheritsLoose(a,b);function a(a,c){a=b.call(this,a)||this;a.inner=c;return a}return a}(babelHelpers.wrapNativeSuper(Error));f.customError=a;f.AggregateError=e;f.TimeoutError=i;f.HttpError=j;f.UnimplementedMethod=k;f.supressQuotaExceededError=b;f.hasSupressedQuotaExceededError=c;f.obtainErrorSummary=d;f.WrappedError=m}),66); __d("WAAbortError",["WACustomError"],(function(a,b,c,d,e,f,g){b=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}return b}(d("WACustomError").customError("AbortError"));var h="AbortError";function a(a){return function(b){if(b.name===h)return a(b);else throw b}}g.AbortError=b;g.ABORT_ERROR=h;g.catchAbort=a}),98); __d("WAPromiseDelays",["Promise","WAAbortError"],(function(a,b,c,d,e,f,g){function a(a,c){return new(b("Promise"))(function(b,e){if(c==null?void 0:c.aborted)throw new(d("WAAbortError").AbortError)();var f=setTimeout(g,a);c==null?void 0:c.addEventListener("abort",h);function g(){c==null?void 0:c.removeEventListener("abort",h),b()}function h(){c==null?void 0:c.removeEventListener("abort",h),clearTimeout(f),e(new(d("WAAbortError").AbortError)())}})}function c(a,c,d){return new(b("Promise"))(function(b,e){var f=setTimeout(function(){try{b(d())}catch(a){e(a)}},c);a.then(function(a){clearTimeout(f),b(a)},function(a){clearTimeout(f),e(a)})})}g.delayMs=a;g.withTimeout=c}),98); __d("WATimeUtils",["Promise","WAHex"],(function(a,b,c,d,e,f,g){var h=60,i=5*h,j=60*h,k=24*j,l=7*k,m=365*k,n=60*1e3,o=j*1e3,p=24*o,q=7*p,r=1<<31,s=~r,t=r+1,u={time:0,day:-4},v=0;function a(){return v}function c(a){v=a}function e(a){return X(a).toUTCString()}function w(a){a=a|0;return Math.max(t,Math.min(a,s))}function x(a){return w(a/1e3)}function f(a){if(typeof a!=="number")if(d("WAHex").hexLongIsNegative(a))return t;else return s;else return w(a)}function y(a){return a==null?a:a>s?x(a):w(a)}function z(){return A($()-v*1e3)}function A(a){return a}function B(a){return A(a*1e3)}function C(a){return as}function D(a,b){var c=I();a=Math.max(a+b-c,0);return Math.min(1e3*a,~(1<<31))}function E(a,b){b=b!=null?b:I();return w(Math.ceil(b+Math.max(a,0)))}function F(a,b){b=b!=null?b:I();return w(Math.ceil(b-Math.max(a,0)))}function G(a){a=Math.max(a-I(),0);return Math.min(1e3*a,~(1<<31))}function H(a){var c=G(a);return new(b("Promise"))(function(a){return void setTimeout(a,c)})}function I(){return w(Date.now()/1e3-v)}function J(){return w(Date.now()/1e3)}function K(){return w(new Date().setHours(0,0,0,0)/1e3-v)}function L(a){return w(X(a).setHours(0,0,0,0)/1e3-v)}function M(){return Date.now()-v*1e3}function N(a){return Math.max(a-I(),0)}function O(a){return N(a)>0}function P(){return performance.now()}function Q(a){return Math.floor(performance.now()-a)}function R(a,b){return ak)return!1;a=u.time===a?u.day:X(a+v).getDay();var c=u.time===b?u.day:X(b+v).getDay();u.time=b;u.day=c;return a===c}function Z(a){a=a-I();return a<=k}function aa(a){a=Number.parseInt(a,16);return Number.isFinite(a)?new Date(w(a)*1e3):null}function $(){return Date.now()}g.MINUTE_SECONDS=h;g.FIVE_MINUTES=i;g.HOUR_SECONDS=j;g.DAY_SECONDS=k;g.WEEK_SECONDS=l;g.YEAR_SECONDS=m;g.MINUTE_MILLISECONDS=n;g.HOUR_MILLISECONDS=o;g.DAY_MILLISECONDS=p;g.WEEK_MILLISECONDS=q;g.DUMMY_UNIXTIME=r;g.MAX_INT=s;g.getClockSkew=a;g.setClockSkew=c;g.toHttpHeaderDate=e;g.castToUnixTime=w;g.castMilliSecondsToUnixTime=x;g.castLongIntToUnixTime=f;g.castMillisTimeToUnixTime=y;g.millisTime=z;g.castToMillisTime=A;g.castUnixTimeToMillisTime=B;g.isOverflowTime=C;g.timeoutFor=D;g.futureUnixTime=E;g.pastUnixTime=F;g.cappedMillisecondsUntil=G;g.delayUntil=H;g.unixTime=I;g.unixTimeWithoutClockSkewCorrection=J;g.midnight=K;g.midnightOn=L;g.unixTimeMs=M;g.secondsUntil=N;g.isInFuture=O;g.monotonicTime=P;g.monotonicTimeSince=Q;g.oldest=R;g.MonotonicTimer=S;g.timeSince_USE_ONLY_IF_APPROVED=T;g.unskewedDate_USE_ONLY_IF_APPROVED=U;g.happenedWithinAt=V;g.happenedWithin=W;g.toDate=X;g.sameDay=Y;g.isWithinNext24h=Z;g.convertHexToDate=aa;g.performanceAbsoluteNow=$}),98);/*FB_PKG_DELIM*/ __d("LSDataTraceCheckPoint.bs",["bs_caml_int64"],(function(a,b,c,d,e,f){"use strict";a=b("bs_caml_int64").one;c=[0,2];d=[0,10];e=[0,11];b=[0,12];var g=[0,13],h=[0,20],i=[0,21],j=[0,22],k=[0,30],l=[0,31],m=[0,32],n=[0,33],o=[0,34],p=[0,35],q=[0,36],r=[0,37],s=[0,38],t=[0,39],u=[0,40],v=[0,41],w=[0,42],x=[0,43],y=[0,44],z=[0,45],A=[0,50],B=[0,51],C=[0,52],D=[0,53],E=[0,60],F=[0,61],G=[0,62],H=[0,63],I=[0,64],J=[0,65],K=[0,70],L=[0,71],M=[0,72],N=[0,80],O=[0,81],P=[0,82],Q=[0,83],R=[0,84],S=[0,85],T=[0,98],U=[0,99],V=[0,100],W=[0,101],X=[0,102],Y=[0,103],Z=[0,104],$=[0,105],aa=[0,106],ba=[0,107],ca=[0,108],da=[0,109],ea=[0,110],fa=[0,111],ga=[0,112],ha=[0,113],ia=[0,114],ja=[0,115],ka=[0,116],la=[0,117],ma=[0,118],na=[0,119],oa=[0,120],pa=[0,130],qa=[0,200],ra=[0,201],sa=[0,202],ta=[0,203],ua=[0,204],va=[0,205],wa=[0,206],xa=[0,207],ya=[0,208],za=[0,300],Aa=[0,301],Ba=[0,900],Ca=[0,1200],Da=[0,1201],Ea=[0,1202],Fa=[0,1203],Ga=[0,1204],Ha=[0,1205],Ia=[0,1206],Ja=[0,1207],Ka=[0,1208],La=[0,1209],Ma=[0,1210],Na=[0,1211],Oa=[0,1212],Pa=[0,1213],Qa=[0,1214],Ra=[0,1215],Sa=[0,1216],Ta=[0,1217],Ua=[0,1218],Va=[0,1219],Wa=[0,1220],Xa=[0,1221],Ya=[0,1222],Za=[0,1223],$a=[0,1224],ab=[0,1225],bb=[0,1226],cb=[0,1227],db=[0,1228],eb=[0,1229],fb=[0,1230],gb=[0,1231],hb=[0,1232],ib=[0,1233],jb=[0,1234],kb=[0,1235],lb=[0,1236],mb=[0,1237],nb=[0,1238],ob=[0,1239],pb=[0,1240],qb=[0,1241],rb=[0,1242],sb=[0,1243],tb=[0,1244],ub=[0,1400],vb=[0,1401],wb=[0,1402],xb=[0,1403],yb=[0,1404],zb=[0,1405],Ab=[0,1406],Bb=[0,1407],Cb=[0,1410],Db=[0,1411],Eb=[0,1412],Fb=[0,1413],Gb=[0,1414],Hb=[0,1415],Ib=[0,1416],Jb=[0,1417],Kb=[0,1418],Lb=[0,1419],Mb=[0,1420],Nb=[0,1421],Ob=[0,1422],Pb=[0,1423],Qb=[0,1424],Rb=[0,1425],Sb=[0,1426],Tb=[0,1427],Ub=[0,1428],Vb=[0,1429],Wb=[0,1430],Xb=[0,1431],Yb=[0,1433],Zb=[0,1434],$b=[0,1436],ac=[0,1437],bc=[0,1438],cc=[0,1439],dc=[0,1440],ec=[0,1441],fc=[0,1442],gc=[0,1443],hc=[0,1450],ic=[0,1498],jc=[0,1499],kc=[0,1455],lc=[0,1456],mc=[0,1458],nc=[0,1459],oc=[0,1460],pc=[0,1462],qc=[0,1484],rc=[0,1485],sc=[0,1486],tc=[0,1493],uc=[0,1494],vc=[0,1495],wc=[0,1496],xc=[0,1451],yc=[0,1463],zc=[0,1464],Ac=[0,1467],Bc=[0,1468],Cc=[0,1487],Dc=[0,1488],Ec=[0,1489],Fc=[0,1490],Gc=[0,1491],Hc=[0,1492],Ic=[0,1469],Jc=[0,1470],Kc=[0,1471],Lc=[0,1478],Mc=[0,1480],Nc=[0,1481],Oc=[0,1482],Pc=[0,2511],Qc=[0,2514],Rc=[0,2515],Sc=[0,1497],Tc=[0,1800],Uc=[0,1801],Vc=[0,1802],Wc=[0,1803],Xc=[0,1804],Yc=[0,1805],Zc=[0,1806],$c=[0,1807],ad=[0,1808],bd=[0,1809],cd=[0,1810],dd=[0,1811],ed=[0,1812],fd=[0,1813],gd=[0,1814],hd=[0,1815],id=[0,1816],jd=[0,1817],kd=[0,1818],ld=[0,1819],md=[0,1823],nd=[0,1828],od=[0,1824],pd=[0,1820],qd=[0,1821],rd=[0,1822],sd=[0,1825],td=[0,1826],ud=[0,1827],vd=[0,1829],wd=[0,1830],xd=[0,1831],yd=[0,1873],zd=[0,1850],Ad=[0,1851],Bd=[0,1852],Cd=[0,1853],Dd=[0,1865],Ed=[0,2400],Fd=[0,2401],Gd=[0,2402],Hd=[0,2403],Id=[0,2404],Jd=[0,2405],Kd=[0,2406],Ld=[0,2407],Md=[0,2411],Nd=[0,2412],Od=[0,2413],Pd=[0,2416],Qd=[0,2417],Rd=[0,2418],Sd=[0,2419],Td=[0,2420],Ud=[0,2421],Vd=[0,2422],Wd=[0,2423],Xd=[0,2500],Yd=[0,2501],Zd=[0,2502],$d=[0,2503],ae=[0,2512],be=[0,2513],ce=[0,2800],de=[0,2801],ee=[0,2802],fe=[0,2803],ge=[0,2804],he=[0,2805],ie=[0,2806],je=[0,2807],ke=[0,2808],le=[0,2809],me=[0,2810],ne=[0,2811],oe=[0,3600],pe=[0,3601],qe=[0,3602],re=[0,3603],se=[0,3604],te=[0,3605],ue=[0,3606],ve=[0,3607],we=[0,3608],xe=[0,3609],ye=[0,3700],ze=[0,3701],Ae=[0,3702],Be=[0,3703],Ce=[0,3704],De=[0,3705],Ee=[0,3706],Fe=[0,3707],Ge=[0,3708],He=[0,3709],Ie=[0,3710],Je=[0,3711],Ke=[0,3712],Le=[0,3713],Me=[0,3714],Ne=[0,3715],Oe=[0,3716],Pe=[0,3717],Qe=[0,3718],Re=[0,3719],Se=[0,3720],Te=[0,3721],Ue=[0,3722],Ve=[0,3723],We=[0,3724],Xe=[0,3725],Ye=[0,3726],Ze=[0,3727],$e=[0,3728],af=[0,3729],bf=[0,3730],cf=[0,3731],df=[0,3739],ef=[0,3740],ff=[0,3741],gf=[0,3742],hf=[0,3743],jf=[0,3744],kf=[0,3745],lf=[0,3746],mf=[0,3747],nf=[0,3748],of=[0,3749],pf=[0,3750],qf=[0,10000001],rf=[0,10000002],sf=[0,10000003],tf=[0,10000004],uf=[0,10000005],vf=[0,10000006],wf=[0,10000007],xf=[0,10000008],yf=[0,10001205],zf=[0,10001206],Af=[0,10001207];f.clientDbOutbound=a;f.clientNetworkOutbound=c;f.clientNetworkInbound=d;f.clientDbInbound=e;f.clientEvaluateDasm=b;f.clientAppStateChange=g;f.clientCreateTask=h;f.clientRecipientPresence=i;f.clientEvaluateDasmBegin=j;f.mqttPublish=k;f.mqttPublishAck=l;f.mqttDisconnected=m;f.mqttConnecting=n;f.mqttConnected=o;f.mqttConnectionAcked=p;f.tincanReceiveMessage=q;f.tincanReceiveDecryptionComplete=r;f.tincanReceiveDecryptionFailed=s;f.tincanReceiveDrQueued=t;f.tincanReceiveDrSentToNetwork=u;f.tincanReceiveDrPublishToMqtt=v;f.tincanReceiveDrmqttPuback=w;f.tincanReceiveBounceTaskQueued=x;f.tincanReceiveBounceTaskSentToNetwork=y;f.tincanReceiveBounceTaskPublishToMqtt=z;f.richMediaDownloadStart=A;f.richMediaDownloadEnd=B;f.richMediaDownloadError=C;f.richMediaUploadStart=D;f.armadilloAct=E;f.armadilloActTaskPick=F;f.armadilloActSerialize=G;f.armadilloActGroupSend=H;f.armadilloActSendFailure=I;f.armadilloActMessageSend=J;f.networkDisconnected=K;f.networkConnected=L;f.networkUnknown=M;f.flowCreat=N;f.flowEnd=O;f.flowInterrupted=P;f.flowConnectId=Q;f.flowEndAndFlush=R;f.flowEndForFailure=S;f.traceCreated=T;f.clientReadyToFlush=U;f.pendingDelta=V;f.noPendingDelta=W;f.initSync=X;f.resnapshot=Y;f.catchUp=Z;f.periodicSync=$;f.catchUpFromRevision=aa;f.resnapshotContinue=ba;f.resnapshotEnd=ca;f.periodicSyncContinue=da;f.periodicSyncEnd=ea;f.contactSyncOptimistic=fa;f.contactSyncFromOmnistore=ga;f.contactSyncTamOptimistc=ha;f.contactSyncTamFromOmnistore=ia;f.contactSyncTamError=ja;f.verifyUserForSync=ka;f.snapshotStart=la;f.snapshotContinue=ma;f.snapshotEnd=na;f.fetchDelta=oa;f.deltaSummary=pa;f.receiveDeliveryReceipt=qa;f.taskDeserializationError=ra;f.optimisicMessageFailed=sa;f.sendServerAuthoritative=ta;f.threadRangeQueryComplete=ua;f.threadRangeQueryFailure=va;f.threadPointQueryComplete=wa;f.sendServerPartial=xa;f.markAsOptimisticSent=ya;f.xmsTransportMessageSendStart=za;f.xmsTransportMessageSendFail=Aa;f.skipTaskDispatch=Ba;f.advancedCryptoMemEncryptTaskStart=Ca;f.advancedCryptoMemEncryptTaskComplete=Da;f.advancedCryptoMemWaPublish=Ea;f.advancedCryptoMemPublishAck=Fa;f.advancedCryptoMemSendTaskComplete=Ga;f.advancedCryptoMemWaConnectionDisconnected=Ha;f.advancedCryptoMemWaConnectionConnecting=Ia;f.advancedCryptoMemWaConnectionConnected=Ja;f.advancedCryptoMemFailure=Ka;f.advancedCryptoMemSendSuccessWithRetry=La;f.advancedCryptoMemDeliveryReceiptReceived=Ma;f.advancedCryptoRegistrationCatDiskFetchStart=Na;f.advancedCryptoRegistrationCatDiskFetchEnd=Oa;f.advancedCryptoRegistrationCatNetworkFetchStart=Pa;f.advancedCryptoRegistrationCatNetworkFetchRetrystart=Qa;f.advancedCryptoRegistrationCatNetworkFetchEnd=Ra;f.advancedCryptoRegistrationWaRequestSendStart=Sa;f.advancedCryptoRegistrationWaRequestSendEnd=Ta;f.advancedCryptoRegistrationWcrRegister=Ua;f.advancedCryptoRegistrationSaveWaDeviceIdError=Va;f.advancedCryptoMemDeviceFetchStart=Wa;f.advancedCryptoMemDeviceFetchEnd=Xa;f.advancedCryptoMemEncryptionBegin=Ya;f.advancedCryptoMemEncryptionEnd=Za;f.advancedCryptoMemEncryptionDeviceCount=$a;f.advancedCryptoDualSend=ab;f.advancedCryptoRegistrationServerSuccess=bb;f.advancedCryptoRegistrationRetryRegister=cb;f.advancedCryptoRegistrationCatNull=db;f.advancedCryptoRegistrationWcrManagerNull=eb;f.advancedCryptoRegistrationResponseNull=fb;f.advancedCryptoRegistrationSelfNull=gb;f.advancedCryptoRegistrationEmptyDeviceId=hb;f.advancedCryptoRegistrationretryRegisterFailure=ib;f.advancedCryptoGroupDualSend=jb;f.ravenImageMessage=kb;f.ravenVideoMessage=lb;f.advancedCryptoRegistrationRetryRegisterCat=mb;f.advancedCryptoRegistrationRetryRegisterNetwork=nb;f.advancedCryptoCatDiskFetchCatInvalid=ob;f.advancedCryptoReconnectGenericError=pb;f.advancedCryptoReconnectCatInvalid=qb;f.advancedCryptoReconnectCatExpired=rb;f.advancedCryptoCatMemoryFetchNull=sb;f.advancedCryptoFirstConnectionStart=tb;f.labyrinthInitializeBackupSproc=ub;f.labyrinthInitializeBackupSuccessSproc=vb;f.labyrinthInitializeBackupFailure=wb;f.labyrinthCreateBackupMailboxSproc=xb;f.labyrinthHandleCreateBackupMailboxSuccessSproc=yb;f.labyrinthOpenEpochSproc=zb;f.labyrinthHandlerOpenEpochSuccessSproc=Ab;f.labyrinthHandlerOpenEpochFailureSproc=Bb;f.labyrinthCreateVirtualDeviceSproc=Cb;f.labyrinthHandleCreateVirtualDeviceSuccessSproc=Db;f.labyrinthHandleCreateVirtualDeviceFailureSproc=Eb;f.labyrinthAddDeviceSproc=Fb;f.labyrinthAddDeviceFromVirtualSproc=Gb;f.labyrinthHandoleWrongRecoveryCodeSproc=Hb;f.labyrinthHandleAddDeviceSuccessSproc=Ib;f.labyrinthHandleAddDeviceFailureSproc=Jb;f.labyrinthInitializeRestoreSproc=Kb;f.labyrinthDecryptThreadsSproc=Lb;f.labyrinthRequestMessagesFromThreadsSproc=Mb;f.labyrinthRequestMessagesFromRangeQuerySproc=Nb;f.labyrinthDecryptMessagesSproc=Ob;f.labyrinthDeleteBackupOnClientSproc=Pb;f.labyrinthDeleteBackupsSproc=Qb;f.labyrinthHandleDeleteMailboxSproc=Rb;f.labyrinthIssueDeleteBackupTaskSproc=Sb;f.labyrinthBackupUploadBegin=Tb;f.labyrinthBackupUploadSuccessSproc=Ub;f.labyrinthCreateExtraVirtualDeviceSproc=Vb;f.labyrinthQrInitAddDeviceSproc=Wb;f.labyrinthQrInitAddDeviceSuccessSproc=Xb;f.labyrinthQrInitGetSecretsSproc=Yb;f.labyrinthQrFinishAddPeerDeviceSproc=Zb;f.labyrinthSyncEpochsStoredProcedureSproc=$b;f.labyrinthSyncEpochsSuccessSproc=ac;f.labyrinthSyncEpochsForwardDerivationEnd=bc;f.labyrinthSyncEpochsBackwardDerivationEnd=cc;f.labyrinthSyncEpochsOpenNewEpoch=dc;f.labyrinthPrepareOpenEpochSproc=ec;f.labyrinthPrepareOpenEpochSuccessSproc=fc;f.labyrinthMebManagerAddDevice=gc;f.labyrinthBackupUploadFail=hc;f.labyrinthDecryptSingleMessageSproc=ic;f.labyrinthDecryptSingleMessageSuccess=jc;f.labyrinthMediaBackupStart=kc;f.labyrinthMediaBackupSuccess=lc;f.labyrinthMediaBackupFailure=mc;f.labyrinthMediaRestoreStart=nc;f.labyrinthMediaRestoreSuccess=oc;f.labyrinthMediaRestoreFailure=pc;f.labyrinthRemoveVirtualDeviceSproc=qc;f.labyrinthHandleRemoveVirtualDeviceResultSuccess=rc;f.labyrinthHandleRemoveVirtualDeviceResultFailure=sc;f.labyrinthRemoveVirtualDeviceBackupNotFound=tc;f.labyrinthRemoveVirtualDeviceWriteTask=uc;f.labyrinthBackupUploadEnqueueTaskExecuter=vc;f.labyrinthBackupUploadEnqueueSerializer=wc;f.labyrinthBackupUploadSerialize=xc;f.labyrinthBackupUploadSerializeSucceed=yc;f.labyrinthBackupUploadSerializeFail=zc;f.labyrinthUpdateBackupTableSproc=Ac;f.labyrinthFetchBackupIdsSproc=Bc;f.labyrinthProcessBackupIdsSproc=Cc;f.labyrinthBackupStatusNoInfo=Dc;f.labyrinthBackupStatusFetchError=Ec;f.labyrinthBackupStatusNotOnboarded=Fc;f.labyrinthBackupStatusOnboarded=Gc;f.labyrinthBackupStatusNoBackupsPresent=Hc;f.labyrinthOptOutOfBackupSproc=Ic;f.labyrinthTriggerThirdPartyIdGenerationSproc=Jc;f.labyrinthHandleTriggerThirdPartyIdGenerationSproc=Kc;f.labyrinthFetchBackupsMetadataSproc=Lc;f.labyrinthHandleBackupsMetadataResultSproc=Mc;f.labyrinthRestoreThreadsSuccess=Nc;f.labyrinthRestoreMessagesSuccess=Oc;f.labyrinthPointQueryMessageRestore=Pc;f.labyrinthRestoreMessageNewerDirection=Qc;f.labyrinthRestoreSurroundingMessages=Rc;f.labyrinthBackupUploadGetEchoDoc=Sc;f.labyrinthMebmanagerAddDeviceFetchBackupState=Tc;f.labyrinthMebmanagerAddDeviceFetchBackupStateSuccess=Uc;f.labyrinthMebmanagerAddDeviceFetchBackupStateFailure=Vc;f.labyrinthMebmanagerAddDeviceAddDeviceSprocCalled=Wc;f.labyrinthMebmanagerAddDeviceAddDeviceSprocReturnSuccess=Xc;f.labyrinthMebmanagerAddDeviceAddDeviceSprocReturnFailure=Yc;f.labyrinthMebmanagerAddDeviceNotoficationTriggered=Zc;f.labyrinthMebmanagerAddDeviceFetchAddDeviceState=$c;f.labyrinthMebmanagerAddDeviceFetchAddDeviceStatefailure=ad;f.labyrinthMebmanagerAddDeviceInitRestoreSprocCalled=bd;f.labyrinthMebmanagerAddDeviceInitRestoreSprocReturnSuccess=cd;f.labyrinthMebmanagerAddDeviceInitRestoreSprocReturnFailure=dd;f.labyrinthMebmanagerCreateExtraVirtualDeviceSprocCalled=ed;f.labyrinthMebmanagerCreateExtraVirtualDeviceSprocReturnSuccess=fd;f.labyrinthMebmanagerCreateExtraVirtualDeviceSprocReturnFailure=gd;f.labyrinthMebmanagerCreateExtraVirtualDeviceNotificationTriggerred=hd;f.labyrinthMebmanagerCreateExtraVirtualDeviceFetchRecoveryCodeStatus=id;f.labyrinthMebmanagerCreateExtraVirtualDeviceFetchRecoveryCodeStatusFailure=jd;f.labyrinthMebmanagerCreateExtraVirtualDeviceCreateExtraVirtualDeviceSuccess=kd;f.labyrinthMebmanagerCreateExtraVirtualDeviceCreateExtraVirtualDeviceFailure=ld;f.labyrinthMebmanagerWrongRecoveryCode=md;f.labyrinthEncryptMessageFail=nd;f.labyrinthEncryptMessageGeneratedPayload=od;f.labyrinthEncodeDocument=pd;f.labyrinthEncodeDocumentFail=qd;f.labyrinthEncodeDocumentSuccess=rd;f.labyrinthMediaIssueAttachmentBackupTaskSproc=sd;f.labyrinthMediaUpdateAttachmentBackupEntSproc=td;f.labyrinthMediaHandleAttachmentBackupFailureSproc=ud;f.labyrinthMediaIssueAttachmentRestoreTask=vd;f.labyrinthMediaUpdateAttachmentCdnUrl=wd;f.labyrinthMediaHandleAttachmentRestoreFailure=xd;f.labyrinthMediaIssueBatchAttachmentBackupTaskSproc=yd;f.labyrinthUploadCancel=zd;f.labyrinthDeleteBackupOnClientStartingCancel=Ad;f.labyrinthDeleteBackupOnClientDidCancel=Bd;f.labyrinthDeleteBackupOnClientFailedCancel=Cd;f.labyrinthBackupRetryDeleteMessageBackupStatusEntry=Dd;f.sapVestaFetchVestaKeyAndSecretBegin=Ed;f.labyrinthPluginCallingGenerateRecoveryCode=Fd;f.sapFestaFetchKeyAndSecretCompletion=Gd;f.sapVestaCallingVestaRegistration=Hd;f.sapVestaRegistrationCompletion=Id;f.labyrinthPluginCallingCreateExtraVirtualDevice=Jd;f.sapVestaNotifySecretStoredCompletion=Kd;f.sapVestaNotifyClientAboutVestaRegistration=Ld;f.sapVestaCallingVestaLogin=Md;f.sapVestaLoginCompletion=Nd;f.labyrinthPluginCallingAddDevice=Od;f.labyrinthPluginCallingInitializeBackup=Pd;f.labyrinthPinSetupBegin=Qd;f.labyrinthPinSetupSuccess=Rd;f.labyrinthPinSetupFailure=Sd;f.labyrinthPinRestoreBegin=Td;f.labyrinthPinRestoreSuccess=Ud;f.labyrinthPinRestoreFailure=Vd;f.labyrinthPluginCallingInitializeRestore=Wd;f.labyrinthFetchThreadIdsSproc=Xd;f.labyrinthFetchThreadIdsNativeOpSuccess=Yd;f.labyrinthFetchThreadIdsNativeOpFailure=Zd;f.labyrinthRequestMessagesFromFetchThreadIdsSproc=$d;f.labyrinthPointQueryRestoreTaskSprocStart=ae;f.labyrinthPointQueryRestoreTaskSprocEnd=be;f.labyrinthVersioningUpsertDeviceEncryptionVersionsToClientSprocStart=ce;f.labyrinthVersioningUpsertDeviceEncryptionVersionsToClientSprocEnd=de;f.labyrinthVersioningDeleteAndSyncDeviceEncryptionVersionDataSproc=ee;f.labyrinthVersioningUpsertDeviceDeleteDeviceEncryptionVersionData=fe;f.labyrinthVersioningSyncEncryptionVersionDataSproc=ge;f.labyrinthVersioningVersionSupported=he;f.labyrinthVersioningSyncUpdateVersionData=ie;f.labyrinthVersioningSyncNoVersionData=je;f.labyrinthVersioningVersionSelected=ke;f.labyrinthVersioningDeleteAndSyncDeviceDeleteDeviceEncryptionVersionData=le;f.labyrinthVersioningVersionNotSupported=me;f.labyrinthVersioningUpsertDeviceInvalidSignature=ne;f.labyrinthWebEchoMessageRestoreBegin=oe;f.labyrinthWebIssueRestoreJobDone=pe;f.labyrinthWebInsertToBakcupMessageTableDone=qe;f.labyrinthWebRestoreWithSerializerStart=re;f.labyrinthWebIssueRestoreJobStarted=se;f.labyrinthWebInsertToRestorePayloadContextTableDone=te;f.labyrinthWebXmaRestoreStarted=ue;f.labyrinthWebXmaRestoreEnded=ve;f.labyrinthWebXmaRestoreMediaidNull=we;f.labyrinthWebXmaRestoreDbxmaNull=xe;f.labyrinthWebEchoMessageUploadInvalidRequest=ye;f.labyrinthWebEchoMessageUploadBegin=ze;f.labyrinthWebEchoMessageUploadFailure=Ae;f.labyrinthWebUploadThreadNotPresent=Be;f.labyrinthWebUploadThreadPresent=Ce;f.labyrinthWebUploadGetSenderInfoUnsuccessful=De;f.labyrinthWebUploadGetSenderInfoSuccessful=Ee;f.labyrinthWebUploadContactNameNull=Fe;f.labyrinthWebUploadContactNameNotNull=Ge;f.labyrinthWebUploadGetReceiptStatusListSuccessful=He;f.labyrinthWebUploadGetSenderDisplayNameForQuotedMsgNull=Ie;f.labyrinthWebUploadGetSenderDisplayNameForQuotedMsgNotNull=Je;f.labyrinthWebUploadXmaDataUploadSuccessful=Ke;f.labyrinthWebUploadXmaDataUploadUnsuccessful=Le;f.labyrinthWebUploadInvalidMsgTypeForMediaType=Me;f.labyrinthWebUploadIsMediaMsgTrue=Ne;f.labyrinthWebUploadIsMediaMsgFalse=Oe;f.labyrinthWebUploadUnsupportedMediaType=Pe;f.labyrinthWebUploadNoMediaIdFoundInMediaMsg=Qe;f.labyrinthWebUploadNoMediaEntryForMediaId=Re;f.labyrinthWebUploadGetReactionDataSuccessful=Se;f.labyrinthWebUploadGetQuoteMsgSuccessful=Te;f.labyrinthWebUploadGetQuoteSenderNameSuccessful=Ue;f.labyrinthWebUploadFbIdNullForXmaMsg=Ve;f.labyrinthWebUploadGetXmaDataSuccessful=We;f.labyrinthWebUploadNoXmaDbEntryForExternalId=Xe;f.labyrinthWebUploadEchoMessageCreationSuccessful=Ye;f.labyrinthWebUploadMissingMediaDataForMediaMsg=Ze;f.labyrinthWebUploadInvokeMessageUploadSproc=$e;f.labyrinthWebUploadIssueMessageUploadUiEvent=af;f.labyrinthWebUploadUserDeviceNotEnrolled=bf;f.labyrinthWebGetBackupTenancy=cf;f.labyrinthWebUploadErrorOccurredOnIssueMessageUploadUiEvent=df;f.labyrinthWebUploadXmaNotFoundInIdb=ef;f.labyrinthWebUploadMediaNotFoundForXmaInIdb=ff;f.labyrinthWebUploadInvalidEchoMessageSerializationResponse=gf;f.labyrinthWebUploadDuplicateRequest=hf;f.labyrinthWebRetroactiveBackupsStartUploadMsg=jf;f.labyrinthWebRetroactiveBackupsStartUploadMedia=kf;f.labyrinthWebRetroactiveBackupsUploadMsgError=lf;f.labyrinthWebRetroactiveBackupsUploadMediaError=mf;f.labyrinthWebUploadXmaDataIsNull=nf;f.labyrinthWebUploadRepliedMessageNotInDb=of;f.labyrinthWebUploadRepliedMessageInDb=pf;f.mqttStateDisconnectedEvent=qf;f.mqttStateConnectedEvent=rf;f.appStatebackground=sf;f.appStateforeground=tf;f.mqttStateConnectingEvent=uf;f.globalConnectivityBannerDisplay=vf;f.globalConnectivityBannerVanish=wf;f.switchAccountEvent=xf;f.advancedCryptoMemWaConnectionDisconnectedEvent=yf;f.advancedCryptoMemWaConnectionConnectingEvent=zf;f.advancedCryptoMemWaConnectionConnectedEvent=Af}),null); __d("ReQLTable.bs",["bs_curry"],(function(a,b,c,d,e,f){"use strict";c={};d={};function a(a,c,d){return a.get(c).then(function(e){return a.upsert(c,b("bs_curry")._1(d,e))})}f.Direction=c;f.Index=d;f.update=a}),null); __d("LSFlushDataTrace.bs",["LS.bs","LSAppendDataTraceAddon","LSDataTraceCheckPoint.bs","ReQL.bs","ReQLTable.bs","bs_caml_int64","bs_curry","killswitch","requireDeferred","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h=c("requireDeferred")("LSDataTraceFlush.bs").__setRef("LSFlushDataTrace.bs");function i(a,b){return c("LSAppendDataTraceAddon")(b,d("LSDataTraceCheckPoint.bs").clientReadyToFlush,c("bs_caml_int64").neg_one,void 0,void 0,d("LS.bs").make(a)).then(function(e){return d("ReQLTable.bs").update(a.table("data_trace_meta"),{hd:b,tl:0},function(a){if(a!==void 0)return{contextOne:a.contextOne,contextThree:a.contextThree,contextTwo:a.contextTwo,foregroundTimestampMs:a.foregroundTimestampMs,initTimestampMs:a.initTimestampMs,predefinedId:a.predefinedId,shouldFlush:!0,traceId:a.traceId,traceType:a.traceType};else return c("unrecoverableViolation")("Data trace is missing "+b,"messenger_web_product")}).then(function(d){return h.load().then(function(d){return c("bs_curry")._2(d.flush,a,b)})})})}function a(a,b,e){if(c("killswitch")("MESSENGER_WEB_DATA_TRACE_ID"))return window.Promise.resolve();else return d("ReQL.bs").first(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(a.table("data_trace_meta")),{hd:e,tl:0})).then(function(b){if(b!==void 0)return i(a,e);else return window.Promise.resolve()})}b=a;g.$LSDataTraceFlush$Deferred=h;g.updateAndFlushTrace=i;g.call=b}),98); __d("LSFlushDataTrace.nop",["LSFlushDataTrace.bs"],(function(a,b,c,d,e,f,g){"use strict";a=function(a,b,c){return d("LSFlushDataTrace.bs").call(a,b,c)};g["default"]=a}),98); __d("Base64.bs",["base64-js"],(function(a,b,c,d,e,f,g){"use strict";function h(a){return c("base64-js").fromByteArray(new TextEncoder().encode(a))}function a(a){var b=new TextDecoder();return b.decode(c("base64-js").toByteArray(a))}function b(a){var b=new TextDecoder();a=new Uint8Array(a);return h(b.decode(a))}function d(a){return c("base64-js").fromByteArray(new Uint8Array(a))}function e(a){return c("base64-js").toByteArray(a).buffer}g.encodeUnicode=h;g.decodeUnicode=a;g.encodeArrayBuffer=b;g.fromArrayBuffer=d;g.toArrayBuffer=e}),98); __d("bs_caml_bytes",[],(function(a,b,c,d,e,f){"use strict";function a(a,b,c){if(b<0||b>=a.length)throw{RE_EXN_ID:"Invalid_argument",_1:"index out of bounds",Error:new Error()};a[b]=c}function b(a,b){if(b<0||b>=a.length)throw{RE_EXN_ID:"Invalid_argument",_1:"index out of bounds",Error:new Error()};return a[b]}function c(a,b,c,d){if(c<=0)return;for(var e=b,c=c+b|0;eg?g:f;for(f=g;f>=0;--f)a[d+f|0]=a[b+f|0];return}if(b<=d)return;g=(a.length-b|0)-1|0;f=e-1|0;f=g>f?f:g;for(g=0;g<=f;++g)a[d+g|0]=a[b+g|0];return}g=a.length-b|0;if(e<=g){for(f=0;f0){c=e<1024?e:1024;var f=new Array(c);for(var g=0;g=d)return e;var g=a[f],h=b[f];if(g>h)return 1;if(g0}function n(a,b){return k(a,b)>=0}function o(a,b){return k(a,b)<0}function p(a,b){return k(a,b)<=0}f.caml_create_bytes=d;f.caml_fill_bytes=c;f.get=b;f.set=a;f.bytes_to_string=g;f.caml_blit_bytes=e;f.caml_blit_string=h;f.bytes_of_string=i;f.caml_bytes_compare=k;f.caml_bytes_greaterthan=m;f.caml_bytes_greaterequal=n;f.caml_bytes_lessthan=o;f.caml_bytes_lessequal=p;f.caml_bytes_equal=l}),null); __d("bs_caml_external_polyfill",[],(function(a,b,c,d,e,f){"use strict";var g=function(){if(typeof globalThis!=="undefined")return globalThis;if(typeof self!=="undefined")return self;if(typeof window!=="undefined")return window;if(typeof a!=="undefined")return a;if(typeof this!=="undefined")return this;throw new Error("Unable to locate global `this`")};b=function(a){var b=g();if(b[a]===void 0)throw new Error(a+" not polyfilled by ReScript yet\n");return b[a]};c=function(a,b){var c=g();c[a]=b;return 0};f.getGlobalThis=g;f.resolve=b;f.register=c}),null); __d("bs_caml_io",[],(function(a,b,c,d,e,f){"use strict";var g={buffer:"",output:function(a,b){a=b.length-1|0;if(typeof process!=="undefined"&&process.stdout&&process.stdout.write)return process.stdout.write(b);else{b[a]==="\n";return}}},h={buffer:"",output:function(a,b){a=b.length-1|0;b[a]==="\n"}};function i(a){if(a.buffer!==""){a.output(a,a.buffer);a.buffer="";return}}function j(a,b,c,d){b=c===0&&d===b.length?b:b.slice(c,d);if(typeof process!=="undefined"&&process.stdout&&process.stdout.write&&a===g)return process.stdout.write(b);c=b.lastIndexOf("\n");c<0?a.buffer=a.buffer+b:(a.buffer=a.buffer+b.slice(0,c+1|0),i(a),a.buffer=a.buffer+b.slice(c+1|0))}function a(a,b){return j(a,String.fromCharCode(b),0,1)}function b(a){return{hd:g,tl:{hd:h,tl:0}}}var k;f.stdin=k;f.stdout=g;f.stderr=h;f.caml_ml_flush=i;f.caml_ml_output=j;f.caml_ml_output_char=a;f.caml_ml_out_channels_list=b}),null); __d("bs_caml_string",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){if(b>=a.length||b<0)throw{RE_EXN_ID:"Invalid_argument",_1:"index out of bounds",Error:new Error()};return a.charCodeAt(b)}function b(a,b){return String.fromCharCode(b).repeat(a)}f.get=a;f.make=b}),null); __d("bs_caml_sys",[],(function(a,b,c,d,e,f){"use strict";function a(a){if(typeof process==="undefined"||process.env===void 0)throw{RE_EXN_ID:"Not_found",Error:new Error()};a=process.env[a];if(a!==void 0)return a;throw{RE_EXN_ID:"Not_found",Error:new Error()}}var g=function(a){if(typeof process!=="undefined"&&process.platform==="win32")return"Win32";else return"Unix"};function b(a){if(typeof process==="undefined"||process.uptime===void 0)return-1;else return process.uptime()}function c(a){return 127}var h=function(a){return typeof process==="undefined"||process.cwd===void 0?"/":process.cwd()};function d(a){if(typeof process==="undefined")return["",[""]];a=process.argv;if(a==null)return["",[""]];else return[a[0],a]}function e(a){if(typeof process!=="undefined")return process.exit(a)}function i(a){throw{RE_EXN_ID:"Failure",_1:"caml_sys_is_directory not implemented",Error:new Error()}}function j(a){throw{RE_EXN_ID:"Failure",_1:"caml_sys_file_exists not implemented",Error:new Error()}}f.caml_sys_getenv=a;f.caml_sys_time=b;f.os_type=g;f.caml_sys_system_command=c;f.caml_sys_getcwd=h;f.caml_sys_get_argv=d;f.caml_sys_exit=e;f.caml_sys_is_directory=i;f.caml_sys_file_exists=j}),null); __d("bs_pervasives",["bs_caml_bytes","bs_caml_exceptions","bs_caml_external_polyfill","bs_caml_format","bs_caml_io","bs_caml_js_exceptions","bs_caml_string","bs_caml_sys","bs_curry"],(function(a,b,c,d,e,f){"use strict";var g;function a(a){throw{RE_EXN_ID:"Failure",_1:a,Error:new Error()}}function c(a){throw{RE_EXN_ID:"Invalid_argument",_1:a,Error:new Error()}}var h=b("bs_caml_exceptions").create("Pervasives.Exit");function d(a){if(a>=0)return a;else return-a|0}function e(a){return a^-1}var i=-2147483648;function j(a){if(isFinite(a))if(Math.abs(a)>=22250738585072014e-324)return 0;else if(a!==0)return 1;else return 2;else if(isNaN(a))return 4;else return 3}function k(a){if(a<0||a>255)throw{RE_EXN_ID:"Invalid_argument",_1:"char_of_int",Error:new Error()};return a}function l(a){if(a)return"true";else return"false"}function m(a){switch(a){case"false":return!1;case"true":return!0;default:throw{RE_EXN_ID:"Invalid_argument",_1:"bool_of_string",Error:new Error()}}}function n(a){switch(a){case"false":return!1;case"true":return!0;default:return}}function o(a){try{return b("bs_caml_format").caml_int_of_string(a)}catch(c){a=b("bs_caml_js_exceptions").internalToOCamlException(c);if(a.RE_EXN_ID==="Failure")return;throw a}}function p(a){var c=a.length,d=0;while(!0){var e=d;if(e>=c)return a+".";var f=b("bs_caml_string").get(a,e);if(f>=48){if(f>=58)return a;d=e+1|0;continue}if(f!==45)return a;d=e+1|0;continue}}function q(a){return p(b("bs_caml_format").caml_format_float("%.12g",a))}function r(a){try{return b("bs_caml_format").caml_float_of_string(a)}catch(c){a=b("bs_caml_js_exceptions").internalToOCamlException(c);if(a.RE_EXN_ID==="Failure")return;throw a}}function s(a,b){if(a)return{hd:a.hd,tl:s(a.tl,b)};else return b}var t=(g=b("bs_caml_io")).stdin,u=g.stdout,v=g.stderr;function w(a,c,d){a=b("bs_caml_external_polyfill").resolve("caml_ml_open_descriptor_out")(b("bs_caml_external_polyfill").resolve("caml_sys_open")(d,a,c));b("bs_caml_external_polyfill").resolve("caml_ml_set_channel_name")(a,d);return a}function x(a){return w({hd:1,tl:{hd:3,tl:{hd:4,tl:{hd:7,tl:0}}}},438,a)}function y(a){return w({hd:1,tl:{hd:3,tl:{hd:4,tl:{hd:6,tl:0}}}},438,a)}function z(a){a=b("bs_caml_io").caml_ml_out_channels_list(void 0);while(!0){var c=a;if(!c)return;try{b("bs_caml_io").caml_ml_flush(c.hd)}catch(a){var d=b("bs_caml_js_exceptions").internalToOCamlException(a);if(d.RE_EXN_ID!=="Sys_error")throw d}a=c.tl;continue}}function A(a,c){return b("bs_caml_external_polyfill").resolve("caml_ml_output_bytes")(a,c,0,c.length)}function B(a,c){return b("bs_caml_io").caml_ml_output(a,c,0,c.length)}function C(a,c,d,e){if(d<0||e<0||d>(c.length-e|0))throw{RE_EXN_ID:"Invalid_argument",_1:"output",Error:new Error()};return b("bs_caml_external_polyfill").resolve("caml_ml_output_bytes")(a,c,d,e)}function D(a,c,d,e){if(d<0||e<0||d>(c.length-e|0))throw{RE_EXN_ID:"Invalid_argument",_1:"output_substring",Error:new Error()};return b("bs_caml_io").caml_ml_output(a,c,d,e)}function E(a,c){return b("bs_caml_external_polyfill").resolve("caml_output_value")(a,c,0)}function F(a){b("bs_caml_io").caml_ml_flush(a);return b("bs_caml_external_polyfill").resolve("caml_ml_close_channel")(a)}function G(a){try{b("bs_caml_io").caml_ml_flush(a)}catch(a){}try{return b("bs_caml_external_polyfill").resolve("caml_ml_close_channel")(a)}catch(a){return}}function H(a,c,d){a=b("bs_caml_external_polyfill").resolve("caml_ml_open_descriptor_in")(b("bs_caml_external_polyfill").resolve("caml_sys_open")(d,a,c));b("bs_caml_external_polyfill").resolve("caml_ml_set_channel_name")(a,d);return a}function I(a){return H({hd:0,tl:{hd:7,tl:0}},0,a)}function J(a){return H({hd:0,tl:{hd:6,tl:0}},0,a)}function K(a,c,d,e){if(d<0||e<0||d>(c.length-e|0))throw{RE_EXN_ID:"Invalid_argument",_1:"input",Error:new Error()};return b("bs_caml_external_polyfill").resolve("caml_ml_input")(a,c,d,e)}function L(a,c,d,e){while(!0){var f=e,g=d;if(f<=0)return;var h=b("bs_caml_external_polyfill").resolve("caml_ml_input")(a,c,g,f);if(h===0)throw{RE_EXN_ID:"End_of_file",Error:new Error()};e=f-h|0;d=g+h|0;continue}}function M(a,b,c,d){if(c<0||d<0||c>(b.length-d|0))throw{RE_EXN_ID:"Invalid_argument",_1:"really_input",Error:new Error()};return L(a,b,c,d)}function N(a,c){var d=b("bs_caml_bytes").caml_create_bytes(c);M(a,d,0,c);return b("bs_caml_bytes").bytes_to_string(d)}function O(a){var c=function(a,c,d){while(!0){var e=d,f=c;if(!e)return a;var g=e.hd,h=g.length;b("bs_caml_bytes").caml_blit_bytes(g,0,a,f-h|0,h);d=e.tl;c=f-h|0;continue}},d=function(d,e){while(!0){var f=e,g=d,h=b("bs_caml_external_polyfill").resolve("caml_ml_input_scan_line")(a);if(h===0){if(g)return c(b("bs_caml_bytes").caml_create_bytes(f),f,g);throw{RE_EXN_ID:"End_of_file",Error:new Error()}}if(h>0){var i=b("bs_caml_bytes").caml_create_bytes(h-1|0);b("bs_caml_external_polyfill").resolve("caml_ml_input")(a,i,0,h-1|0);b("bs_caml_external_polyfill").resolve("caml_ml_input_char")(a);if(!g)return i;var j=(f+h|0)-1|0;return c(b("bs_caml_bytes").caml_create_bytes(j),j,{hd:i,tl:g})}j=b("bs_caml_bytes").caml_create_bytes(-h|0);b("bs_caml_external_polyfill").resolve("caml_ml_input")(a,j,0,-h|0);e=f-h|0;d={hd:j,tl:g};continue}};return b("bs_caml_bytes").bytes_to_string(d(0,0))}function P(a){try{return b("bs_caml_external_polyfill").resolve("caml_ml_close_channel")(a)}catch(a){return}}function Q(a){return b("bs_caml_io").caml_ml_output_char(u,a)}function R(a){return B(u,a)}function S(a){return A(u,a)}function T(a){return B(u,String(a))}function U(a){return B(u,p(b("bs_caml_format").caml_format_float("%.12g",a)))}function V(a){b("bs_caml_io").caml_ml_output_char(u,10);return b("bs_caml_io").caml_ml_flush(u)}function W(a){return b("bs_caml_io").caml_ml_output_char(v,a)}function X(a){return B(v,a)}function aa(a){return A(v,a)}function ba(a){return B(v,String(a))}function ca(a){return B(v,p(b("bs_caml_format").caml_format_float("%.12g",a)))}function da(a){b("bs_caml_io").caml_ml_output_char(v,10);return b("bs_caml_io").caml_ml_flush(v)}function ea(a){b("bs_caml_io").caml_ml_flush(u);return O(t)}function fa(a){return b("bs_caml_format").caml_int_of_string((b("bs_caml_io").caml_ml_flush(u),O(t)))}function ga(a){return o((b("bs_caml_io").caml_ml_flush(u),O(t)))}function ha(a){return b("bs_caml_format").caml_float_of_string((b("bs_caml_io").caml_ml_flush(u),O(t)))}function ia(a){return r((b("bs_caml_io").caml_ml_flush(u),O(t)))}function ja(a){return a._1}var Y={contents:z};function ka(a){var c=Y.contents;Y.contents=function(d){b("bs_curry")._1(a,void 0);return b("bs_curry")._1(c,void 0)}}function Z(a){return b("bs_curry")._1(Y.contents,void 0)}function la(a){Z(void 0);return b("bs_caml_sys").caml_sys_exit(a)}var ma=2147483647,na=Infinity,oa=-Infinity,pa=17976931348623157e292,qa=22250738585072014e-324,ra=2220446049250313e-31,sa=g.caml_ml_flush,ta=g.caml_ml_output_char;g=g.caml_ml_output_char;function ua(a,c){return b("bs_caml_external_polyfill").resolve("caml_ml_output_int")(a,c)}function va(a,c){return b("bs_caml_external_polyfill").resolve("caml_ml_seek_out")(a,c)}function wa(a){return b("bs_caml_external_polyfill").resolve("caml_ml_pos_out")(a)}function xa(a){return b("bs_caml_external_polyfill").resolve("caml_ml_channel_size")(a)}function ya(a,c){return b("bs_caml_external_polyfill").resolve("caml_ml_set_binary_mode")(a,c)}function za(a){return b("bs_caml_external_polyfill").resolve("caml_ml_input_char")(a)}function Aa(a){return b("bs_caml_external_polyfill").resolve("caml_ml_input_char")(a)}function Ba(a){return b("bs_caml_external_polyfill").resolve("caml_ml_input_int")(a)}function Ca(a){return b("bs_caml_external_polyfill").resolve("caml_input_value")(a)}function Da(a,c){return b("bs_caml_external_polyfill").resolve("caml_ml_seek_in")(a,c)}function Ea(a){return b("bs_caml_external_polyfill").resolve("caml_ml_pos_in")(a)}function Fa(a){return b("bs_caml_external_polyfill").resolve("caml_ml_channel_size")(a)}function Ga(a){return b("bs_caml_external_polyfill").resolve("caml_ml_close_channel")(a)}function Ha(a,c){return b("bs_caml_external_polyfill").resolve("caml_ml_set_binary_mode")(a,c)}function $(a,c){return b("bs_caml_external_polyfill").resolve("caml_ml_seek_out_64")(a,c)}function Ia(a){return b("bs_caml_external_polyfill").resolve("caml_ml_pos_out_64")(a)}function Ja(a){return b("bs_caml_external_polyfill").resolve("caml_ml_channel_size_64")(a)}function Ka(a,c){return b("bs_caml_external_polyfill").resolve("caml_ml_seek_in_64")(a,c)}function La(a){return b("bs_caml_external_polyfill").resolve("caml_ml_pos_in_64")(a)}function Ma(a){return b("bs_caml_external_polyfill").resolve("caml_ml_channel_size_64")(a)}$={seek_out:$,pos_out:Ia,out_channel_length:Ja,seek_in:Ka,pos_in:La,in_channel_length:Ma};f.invalid_arg=c;f.failwith=a;f.Exit=h;f.abs=d;f.max_int=ma;f.min_int=i;f.lnot=e;f.infinity=na;f.neg_infinity=oa;f.max_float=pa;f.min_float=qa;f.epsilon_float=ra;f.classify_float=j;f.char_of_int=k;f.string_of_bool=l;f.bool_of_string=m;f.bool_of_string_opt=n;f.int_of_string_opt=o;f.string_of_float=q;f.float_of_string_opt=r;f.$at=s;f.stdin=t;f.stdout=u;f.stderr=v;f.print_char=Q;f.print_string=R;f.print_bytes=S;f.print_int=T;f.print_float=U;f.print_newline=V;f.prerr_char=W;f.prerr_string=X;f.prerr_bytes=aa;f.prerr_int=ba;f.prerr_float=ca;f.prerr_newline=da;f.read_line=ea;f.read_int=fa;f.read_int_opt=ga;f.read_float=ha;f.read_float_opt=ia;f.open_out=x;f.open_out_bin=y;f.open_out_gen=w;f.flush=sa;f.flush_all=z;f.output_char=ta;f.output_string=B;f.output_bytes=A;f.output=C;f.output_substring=D;f.output_byte=g;f.output_binary_int=ua;f.output_value=E;f.seek_out=va;f.pos_out=wa;f.out_channel_length=xa;f.close_out=F;f.close_out_noerr=G;f.set_binary_mode_out=ya;f.open_in=I;f.open_in_bin=J;f.open_in_gen=H;f.input_char=za;f.input_line=O;f.input=K;f.really_input=M;f.really_input_string=N;f.input_byte=Aa;f.input_binary_int=Ba;f.input_value=Ca;f.seek_in=Da;f.pos_in=Ea;f.in_channel_length=Fa;f.close_in=Ga;f.close_in_noerr=P;f.set_binary_mode_in=Ha;f.LargeFile=$;f.string_of_format=ja;f.exit=la;f.at_exit=ka;f.valid_float_lexem=p;f.unsafe_really_input=L;f.do_at_exit=Z}),null);/*FB_PKG_DELIM*/ __d("XCometCreatorCollaborationInviteControllerRouteBuilder",["jsRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsRouteBuilder")("/collaboration_invite/{video_id}/{secondary_collaborator_id}/",Object.freeze({show_dialog:!1}),void 0);b=a;g["default"]=b}),98); __d("RelayFBConsoleLog",["cr:1121434"],(function(a,b,c,d,e,f,g){"use strict";a=b("cr:1121434")!=null?b("cr:1121434")():null;c=a;g["default"]=c}),98); __d("RelayFBScheduler",["ReactDOMComet"],(function(a,b,c,d,e,f,g){"use strict";a={cancel:function(){},schedule:function(a){d("ReactDOMComet").unstable_batchedUpdates(a);return""}};b=a;g["default"]=b}),98); __d("liveQueryFetchWithWWWInitialWrapper",["JSResource","RelayRuntime","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,e,f){return e.config_id!=null?d("RelayRuntime").Observable.create(function(d){var g;c("promiseDone")(c("JSResource")("liveQueryFetchWithWWWInitial").__setRef("liveQueryFetchWithWWWInitialWrapper").load().then(function(c){c=c(a,b,e,f);g=c.subscribe(d)})["catch"](function(a){return d.error(a)}));return function(){g&&g.unsubscribe()}}):f}g["default"]=a}),98); __d("RelayFBEnvironmentDefinitions",["RelayFBConsoleLog","RelayFBEnvironmentActorID","RelayFBGCScheduler","RelayFBHandlerProvider","RelayFBOperationLoader","RelayFBScheduler","RelayRequiredFieldLogger","createRelayFBNetwork","createRelayFBNetworkFetch","createRelayFBSubscribeFunction","getRelayFBMissingFieldHandlers","liveQueryFetchWithWWWInitialWrapper","relay-runtime","relayFBGetDataID"],(function(a,b,c,d,e,f){"use strict";var g=b("RelayFBEnvironmentActorID").getActorID,h=(c=b("relay-runtime")).Environment,i=c.QueryResponseCache,j=c.RecordSource,k=c.Store;function l(a){var c=a.actorID,d=a.handlerProvider;d=d===void 0?b("RelayFBHandlerProvider"):d;var e=a.log;e=e===void 0?b("RelayFBConsoleLog"):e;var f=a.missingFieldHandlers;f=f===void 0?b("getRelayFBMissingFieldHandlers")():f;var g=a.operationLoader;g=g===void 0?b("RelayFBOperationLoader"):g;var l=a.store;l=l===void 0?new k(new j(),{getDataID:b("relayFBGetDataID"),gcReleaseBufferSize:10,gcScheduler:b("RelayFBGCScheduler"),operationLoader:b("RelayFBOperationLoader"),queryCacheExpirationTime:5*60*1e3,log:e}):l;var m=a.requiredFieldLogger;m=m===void 0?b("RelayRequiredFieldLogger").create():m;var n=a.scheduler;n=n===void 0?b("RelayFBScheduler"):n;var o=a.getDataID;o=o===void 0?b("relayFBGetDataID"):o;a=babelHelpers.objectWithoutPropertiesLoose(a,["actorID","handlerProvider","log","missingFieldHandlers","operationLoader","store","requiredFieldLogger","scheduler","getDataID"]);var p={actorID:c};if(a.network)return new h(babelHelpers["extends"]({},a,{handlerProvider:d,log:e,missingFieldHandlers:f,operationLoader:g,store:l,options:p,requiredFieldLogger:m,scheduler:n,getDataID:o}));else{var q,r=a.networkConfig;a=babelHelpers.objectWithoutPropertiesLoose(a,["networkConfig"]);q=(q=r==null?void 0:r.queryResponseCache)!=null?q:new i({size:10,ttl:5*60*1e3});r=b("createRelayFBNetwork")(b("createRelayFBNetworkFetch")(babelHelpers["extends"]({},r,{liveQueryFetchWithWWWInitialFn:b("liveQueryFetchWithWWWInitialWrapper"),queryResponseCache:q,actorID:c})),b("createRelayFBSubscribeFunction")({queryResponseCache:q,actorID:c}));return new h(babelHelpers["extends"]({},a,{handlerProvider:d,log:e,missingFieldHandlers:f,operationLoader:g,store:l,network:r,options:p,requiredFieldLogger:m,scheduler:n,getDataID:o}))}}function a(a){var b=new Map();return{getForActorID:function(c,d){var e;e=c+((e=d)!=null?e:"");var f=b.get(e);f||(f=l(a(c,d)),b.set(e,f));return f},commitLocalUpdateForEachEnvironment:function(a){var c=function(){if(e){if(f>=d.length)return"break";h=d[f++]}else{f=d.next();if(f.done)return"break";h=f.value}var b=h,c=b[1];c.commitUpdate(function(b){a(g(c),c,b)})};for(var d=b,e=Array.isArray(d),f=0,d=e?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h,i=c();if(i==="break")break}}}}e.exports={createEnvironment:l,createEnvironmentFactory:a}}),null); __d("react-relay/ReactRelayContainerUtils",[],(function(a,b,c,d,e,f){"use strict";function g(a){return a.displayName||a.name||"Component"}function a(a){return"Relay("+g(a)+")"}e.exports={getComponentName:g,getContainerName:a}}),null); __d("react-relay/ReactRelayQueryRendererContext",["react"],(function(a,b,c,d,e,f){"use strict";var g;a=g||b("react");e.exports=a.createContext({rootIsQueryRenderer:!1})}),null); __d("react-relay/buildReactRelayContainer",["invariant","react","react-relay/ReactRelayContainerUtils","react-relay/ReactRelayContext","react-relay/ReactRelayQueryRendererContext","react-relay/assertFragmentMap","relay-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=b("react-relay/ReactRelayContainerUtils").getComponentName,j=b("react-relay/ReactRelayContainerUtils").getContainerName,k=h||(h=b("react")),l=b("relay-runtime").getFragment,m=k.useContext;function a(a,c,d){var f=j(a);b("react-relay/assertFragmentMap")(i(a),c);var h={};for(var n in c)h[n]=l(c[n]);var o=d(a,h);o.displayName=f;function p(a,c){var d=m(b("react-relay/ReactRelayContext"));d!=null||g(0,18241,f,f);var e=m(b("react-relay/ReactRelayQueryRendererContext"));return k.jsx(o,babelHelpers["extends"]({},a,{__relayContext:d,__rootIsQueryRenderer:(d=e==null?void 0:e.rootIsQueryRenderer)!=null?d:!1,componentRef:a.componentRef||c}))}p.displayName=p.name+" [from "+e.id+"]";p.displayName=f;c=k.forwardRef(p);return c}e.exports=a}),null); __d("react-relay/ReactRelayFragmentContainer",["areEqual","react","react-relay/ReactRelayContainerUtils","react-relay/RelayContext","react-relay/buildReactRelayContainer","relay-runtime"],(function(a,b,c,d,e,f){"use strict";var g,h,i=b("react-relay/ReactRelayContainerUtils").getContainerName,j=b("react-relay/RelayContext").assertRelayContext,k=g||(g=b("react")),l=b("relay-runtime").createFragmentSpecResolver,m=b("relay-runtime").getDataIDsFromObject,n=b("relay-runtime").isScalarAndEqual;function o(a,c){var d,e,f=i(a);return e=d=function(d){babelHelpers.inheritsLoose(e,d);function e(a){var b,e;e=d.call(this,a)||this;e.$3=function(){var a=e.state.resolver;e.setState(function(b){return a===b.resolver?{data:b.resolver.resolve(),relayProp:p(b.relayProp.environment)}:null})};var g=j(a.__relayContext);b=(b=a.__rootIsQueryRenderer)!=null?b:!1;b=l(g,f,c,a,b);e.state={data:b.resolve(),prevProps:a,prevPropsContext:g,relayProp:p(g.environment),resolver:b};return e}e.getDerivedStateFromProps=function(a,d){var e,g=d.prevProps,i=j(a.__relayContext);e=(e=a.__rootIsQueryRenderer)!=null?e:!1;g=m(c,g);var k=m(c,a),n=d.resolver;if(d.prevPropsContext.environment!==i.environment||!(h||(h=b("areEqual")))(g,k)){n=l(i,f,c,a,e);return{data:n.resolve(),prevPropsContext:i,prevProps:a,relayProp:p(i.environment),resolver:n}}else{n.setProps(a);g=n.resolve();if(g!==d.data)return{data:g,prevProps:a,prevPropsContext:i,relayProp:p(i.environment)}}return null};var g=e.prototype;g.componentDidMount=function(){this.$1()};g.componentDidUpdate=function(a,b){this.state.resolver!==b.resolver?(b.resolver.dispose(),this.$1()):this.$2()};g.componentWillUnmount=function(){this.state.resolver.dispose()};g.shouldComponentUpdate=function(a,b){if(b.data!==this.state.data)return!0;var d=Object.keys(a);for(var e=0;e= 6"))return{fontFamily:h.segoe,offsets:l};return c("UserAgent").isPlatform("Mac OS X >= 10.11")&&!c("UserAgent").isBrowser("Firefox < 55")||c("UserAgent").isPlatform("iOS >= 9")?{fontFamily:h.apple,offsets:c("UserAgent").isEngine("Gecko")?k:j}:null}function a(){var a=m();if(a!=null){var b=a.fontFamily;a=a.offsets;a=new Map(a);var c=babelHelpers["extends"]({},i);a.forEach(function(a,d){c[d]=babelHelpers["extends"]({},c[d],{fontFamily:b,offsets:a})});return c}return i}d=a();g["default"]=d}),98); __d("MDSTextV1.react",["BaseHeading.react","CometDensityModeContext","CometLineClamp.react","CometTextContext","CometTextLangContext","MDSTextTypography","cr:2099","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");e=d("react");var i=e.useContext,j=e.useMemo;e=(d=b("cr:2099"))!=null?d:{useTranslationKeyForTextParent:function(){}};var k=e.useTranslationKeyForTextParent,l={base:{maxWidth:"x193iq5w",minWidth:"xeuugli",wordBreak:"x13faqbe",wordWrap:"x1vvkbs",$$css:!0},block:{display:"x1lliihq","::after_content":"x1s928wv","::after_display":"xhkezso","::after_height":"x1gmr53x","::before_content":"x1cpjm7i","::before_display":"x1fgarty","::before_height":"x1943h6x",$$css:!0},heading:{maxWidth:"x193iq5w",minWidth:"xeuugli",$$css:!0}},m={center:{textAlign:"x2b8uid",$$css:!0},end:{textAlign:"xp4054r",$$css:!0},start:{textAlign:"x1yc453h",$$css:!0}},n={blueLink:{color:"x1fey0fg",$$css:!0},disabled:{color:"x1dntmbh",$$css:!0},disabledButton:{color:"x1x80s81",$$css:!0},highlight:{color:"x1qq9wsj",$$css:!0},negative:{color:"x1a1m0xk",$$css:!0},placeholder:{color:"x12scifz",$$css:!0},positive:{color:"x6u5lvz",$$css:!0},primary:{color:"xzsf02u",$$css:!0},primaryButton:{color:"xtk6v10",$$css:!0},primaryDeemphasizedButton:{color:"x1mvi0mv",$$css:!0},primaryOnMedia:{color:"x17z8epw",$$css:!0},secondary:{color:"xi81zsa",$$css:!0},secondaryButton:{color:"x1dem4cn",$$css:!0},secondaryOnMedia:{color:"xkxfvhb",$$css:!0},tertiary:{color:"x12scifz",$$css:!0},white:{color:"x14ctfv",$$css:!0}},o={12:{fontSize:"x1pg5gke",lineHeight:"xvq8zen",$$css:!0},13:{fontSize:"x1nxh6w3",lineHeight:"x1sibtaa",$$css:!0},15:{fontSize:"x6prxxf",lineHeight:"xvq8zen",$$css:!0},17:{fontSize:"x1lkfr7t",lineHeight:"x1lbecb7",$$css:!0},20:{fontSize:"x1603h9y",lineHeight:"x1u7k74",$$css:!0},24:{fontSize:"xngnso2",lineHeight:"x1qb5hxa",$$css:!0},28:{fontSize:"x1q74xe4",lineHeight:"xyesn5m",$$css:!0},32:{fontSize:"x579bpy",lineHeight:"xjkpybl",$$css:!0}},p={12:{fontSize:"x1pg5gke",lineHeight:"xvq8zen",$$css:!0},13:{fontSize:"x1pg5gke",lineHeight:"x1sibtaa",$$css:!0},15:{fontSize:"x1f6kntn",lineHeight:"xvq8zen",$$css:!0},17:{fontSize:"x1jchvi3",lineHeight:"x1lbecb7",$$css:!0},20:{fontSize:"x1603h9y",lineHeight:"x1u7k74",$$css:!0},24:{fontSize:"xngnso2",lineHeight:"x1qb5hxa",$$css:!0},28:{fontSize:"x1q74xe4",lineHeight:"xyesn5m",$$css:!0},32:{fontSize:"x579bpy",lineHeight:"xjkpybl",$$css:!0}},q={bold:{fontWeight:"x1xlr1w8",$$css:!0},medium:{fontWeight:"xk50ysn",$$css:!0},normal:{fontWeight:"x1fcty0u",$$css:!0},semibold:{fontWeight:"x1s688f",$$css:!0}},r={1:{"::before_marginTop":"x1ckan80",$$css:!0},2:{"::before_marginTop":"x1s3etm8",$$css:!0},3:{"::before_marginTop":"x1tu3fi",$$css:!0},4:{"::before_marginTop":"x4zkp8e",$$css:!0},5:{"::before_marginTop":"xudqn12",$$css:!0},6:{"::before_marginTop":"xtoi2st",$$css:!0},7:{"::before_marginTop":"x14z4hjw",$$css:!0},8:{"::before_marginTop":"x1ill7wo",$$css:!0},9:{"::before_marginTop":"xhau9xz",$$css:!0},10:{"::before_marginTop":"x14qwyeo",$$css:!0}},s={1:{"::after_marginBottom":"xo8pqpo",$$css:!0},2:{"::after_marginBottom":"xlf94lp",$$css:!0},3:{"::after_marginBottom":"x676frb",$$css:!0},4:{"::after_marginBottom":"x3x7a5m",$$css:!0},5:{"::after_marginBottom":"x41vudc",$$css:!0},6:{"::after_marginBottom":"xw06pyt",$$css:!0},7:{"::after_marginBottom":"x1g2y4wz",$$css:!0},8:{"::after_marginBottom":"x1x48ksl",$$css:!0},9:{"::after_marginBottom":"x1guzi96",$$css:!0},10:{"::after_marginBottom":"x1y9wsrc",$$css:!0}},t={1:{paddingBottom:"x1j85h84",$$css:!0},2:{paddingBottom:"x1120s5i",$$css:!0},3:{paddingBottom:"xg8j3zb",$$css:!0}},u={disabled:"disabledButton",highlight:"primaryDeemphasizedButton",secondary:"secondaryButton",white:"primaryButton"};function v(a,b){return b?(b=u[a])!=null?b:a:a}function w(a,b){return b==="headlineEmphasized5"||b==="entityHeaderMeta3"?null:{color:a,type:b}}function a(a,b){var d=a.align;d=d===void 0?"auto":d;var e=a.children,f=a.color,g=a.dir;g=g===void 0?"auto":g;var u=a.id,x=a.isSemanticHeading;x=x===void 0?!1:x;var y=a.numberOfLines,z=a.testid,A=a.type;z=i(c("CometTextContext"));a=i(c("CometDensityModeContext"));a=a[0];var B=i(c("CometTextLangContext")),C=c("MDSTextTypography")[A],D=C.defaultColor;D=D===void 0?"primary":D;var E=C.fontFamily,F=C.fontSize,G=C.fontWeight;G=G===void 0?"normal":G;C=C.offsets;C=C===void 0?[0,0]:C;var H=C.length===3?C[2]:0,I=v((f=f)!=null?f:D,A==="button1"||A==="button2");f=j(function(){return w(I,A)},[I,A]);D=z!==null;z=k();f=h.jsx(c("CometTextContext").Provider,{value:f,children:h.jsx("span",{className:c("stylex")(l.base,E,!D&&l.block,!D&&r[C[0]],!D&&s[y!=null?C[1]+H:C[1]],a?p[F]:o[F],q[G],n[I],d!=="auto"&&m[d]),"data-testid":void 0,dir:D?void 0:g,id:u,lang:B,ref:b,children:y!=null?h.jsx(c("CometLineClamp.react"),{lines:y,xstyle:H!==0&&t[H],children:e}):e},z)});return x?h.jsx(c("BaseHeading.react"),{isPrimaryHeading:x,xstyle:l.heading,children:f}):f}a.displayName=a.name+" [from "+f.id+"]";b=h.forwardRef(a);b.displayName="MDSText";d=b;g["default"]=d}),98); __d("MWProfilePhoto.react",["CometProfilePhoto.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a,b){return h.jsx(c("CometProfilePhoto.react"),babelHelpers["extends"]({},a,{ref:b}))}a.displayName=a.name+" [from "+f.id+"]";b=h.forwardRef(a);g["default"]=b}),98); __d("MWText.react",["MDSText.react"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=c("MDSText.react")}),98); __d("MAWTimeUtils",["I64","WATimeUtils"],(function(a,b,c,d,e,f,g){"use strict";function h(a){return d("I64").of_float(a*1e3)}function a(a){return a>d("WATimeUtils").MAX_INT?d("I64").of_float(a):h(a)}g.toTimestamp=h;g.millisTimeToTimestamp=a}),98); __d("MWCMInboxHeaderCommunityGroupName.react",["fbt","CometPagelet.react","I64","LSSuspense","MWCMThreadTypes.bs","MWCMUseFolder.bs","PresenceStatusContext","Promise","cr:183","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useContext;function k(a){return a}var l=b("cr:183")==null?function(a){return d("I64").neg_one}:b("cr:183").useCMThreadCoPresence;function a(a){var e=a.renderWrapper;a=a.thread;e=e!==void 0?e:k;var f=d("MWCMUseFolder.bs").useHook(a),g=j(c("PresenceStatusContext")),m=l(a);if(f!==void 0){f=f.name;var n=a.cannotReplyReason==="broadcast_chat_read_only";n=d("MWCMThreadTypes.bs").isBroadcastThread(a.threadType)&&!n?h._("__JHASH__QrGOls5Na3V__JHASH__"):d("MWCMThreadTypes.bs").isPrivateThread(a.threadType)?h._("__JHASH__AR0EXhdbXqJ__JHASH__"):null;a=e(d("I64").gt(m,d("I64").zero)&&g.getChatVisibility()?h._("__JHASH__zBhIvI5rTRs__JHASH__",[h._plural(d("I64").to_int32(m),"number")]):i.jsxs(i.Fragment,{children:[f," ",n!=null?"-":null," ",n]}))}else a=c("LSSuspense").throwErrorOrPromise(b("Promise").resolve());return i.jsx(d("CometPagelet.react").Placeholder,{className:"x193iq5w",fallback:null,name:"MWCMInboxHeaderCommunityGroupName",children:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatTextTransform.bs",["CometEmojiTransform","CometEmoticonTransform","bs_curry","cr:2420","gkx"],(function(a,b,c,d,e,f,g){"use strict";d=c("CometEmoticonTransform")();e=c("CometEmojiTransform")();f=c("gkx")("1839834")?[d,e]:[e];var h=f.slice();if(!(b("cr:2420")==null)){var i=c("bs_curry")._1(b("cr:2420").unvaultTransform);h.push(i)}function a(a){if(c("gkx")("1839834"))return[c("CometEmoticonTransform")(a),c("CometEmojiTransform")(a)];else return[c("CometEmojiTransform")(a)]}g.$MAWUnvaultTransform$requireCond=b("cr:2420");g.emoticonTransform=d;g.emojiTransform=e;g.epdTextTransformsNoVault=f;g.epdTextTransforms=h;g.epdTextTransformsWithOptions=a}),98); __d("MWChatContactPresenceHook.bs",["AvailableListConstants","PresenceStatusContext","bs_caml_option","bs_curry","bs_int64","react","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=c("requireDeferred")("MessengerMQTTPresence.bs").__setRef("MWChatContactPresenceHook.bs");function j(a,b){var d=c("bs_curry")._1(a.getStatus,b),e=d==null?void 0:c("bs_caml_option").some(d);a=c("bs_curry")._1(a.getChatVisibility);if(!(d==null)||!a)return e;else{i.onReady(function(a){return c("bs_curry")._1(a.sendAdditionalBuddyRequest,b)});return}}function k(a){var b=h.useContext(c("PresenceStatusContext")),d=c("bs_int64").to_string(a);a=h.useState(function(){return j(b,d)});var e=a[1];h.useEffect(function(){return c("bs_curry")._1(b.addListener,function(a){return c("bs_curry")._1(e,function(a){return j(b,d)})})},[b,d,e]);return a[0]}function a(a){a=k(a);if(a===void 0)return!1;a=a.status;if(a==null)return!1;else return a===c("AvailableListConstants").ACTIVE}function b(a){a=k(a);if(a===void 0)return;a=a.last_active_time;if(!(a==null)&&a!==0)return a*1e3}function e(a){var b=h.useContext(c("PresenceStatusContext")),d=h.useMemo(function(){return a.map(function(a){return c("bs_int64").to_string(a)})},[a]);return d.some(function(a){a=j(b,a);if(a===void 0)return!1;a=a.status;if(a==null)return!1;else return a===c("AvailableListConstants").ACTIVE})}g.$MessengerMQTTPresence$Deferred=i;g.useHook=k;g.useIsActive=a;g.useLastActiveTimestampMs=b;g.useHasActiveContact=e}),98); __d("MDSSvgIcon.react",["CometSVGIcon.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.children,d=a.color,e=a.dataTestId;e=a.inline;e=e===void 0?!1:e;var f=a.size;f=f===void 0?24:f;a=a.viewBox;a=a===void 0?"0 0 36 36":a;return h.jsx(c("CometSVGIcon.react"),{color:d,"data-testid":void 0,inline:e,size:f,viewBox:a,children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MDSLockSvgIcon.bs",["MDSSvgIcon.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){return h.jsx(c("MDSSvgIcon.react"),babelHelpers["extends"]({},a,{children:h.jsx("path",{clipRule:"evenodd",d:"M12.25 15.5a.25.25 0 00.25-.25V12a5.5 5.5 0 1111 0v3.25c0 .138.112.25.25.25h.75a2 2 0 012 2v9a2 2 0 01-2 2h-13a2 2 0 01-2-2v-9a2 2 0 012-2h.75zm3 0h5.5a.25.25 0 00.25-.25V12a3 3 0 10-6 0v3.25c0 .138.112.25.25.25z",fillRule:"evenodd"})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSPresenceStatus",[],(function(a,b,c,d,e,f){a=Object.freeze({OFFLINE:1,ACTIVE:2});f["default"]=a}),66); __d("MWPresenceBadge.bs",["CometBadge.react","MWChatContactPresenceHook.bs","MWPActor.bs","ReQL.bs","ReQLSubscription.bs","bs_caml","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.size;a=a.thread;var e=c("useReStore")(),f=a.threadKey,g=d("MWPActor.bs").useActor();a=d("ReQLSubscription.bs").useArray(h.useMemo(function(){return d("ReQL.bs").map(d("ReQL.bs").filter(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(e.table("participants")),{hd:f,tl:0}),function(a){return c("bs_caml").i64_neq(a.contactId,g)}),function(a){return a.contactId})},[e,JSON.stringify(a.threadKey)]));a=d("MWChatContactPresenceHook.bs").useHasActiveContact(a);if(a)return h.jsx(c("CometBadge.react"),{border:"white",color:"green",isProfileBadge:!0,size:b});else return null}b=a;e=b;g.make=e}),98); __d("MWPPresenceBadge.react",["CometBadge.react","I64","LSIntEnum","LSPresenceStatus","MWPresenceBadge.bs","PresenceContext","ReQL","ReQLSuspense","RelayHooks","gkx","qex","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useContext;function a(a){var b,e=a.size;a=a.thread;return c("gkx")("6543")||c("gkx")("5849")||((b=c("qex")._("274"))!=null?b:!1)?h.jsx(j,{size:e,thread:a}):h.jsx(d("MWPresenceBadge.bs").make,{size:e,thread:a})}a.displayName=a.name+" [from "+f.id+"]";function j(a){var b=d("RelayHooks").useActorID(),e=c("useReStore")(),f=a.size;a=a.thread;var g=a.threadKey;a=i(c("PresenceContext")).chatVisibility;a=d("ReQLSuspense").useFirst(function(){return d("ReQL").mergeJoin(d("ReQL").fromTableAscending(e.table("presence_states").index("statusContactId")).getKeyRange(d("LSIntEnum").ofNumber(c("LSPresenceStatus").ACTIVE)),d("ReQL").fromTableAscending(e.table("participants")).getKeyRange(g).filter(function(a){a=a.contactId;return d("I64").to_string(a)!==b}))},[b,e,g])!=null&&a;return a?h.jsx(c("CometBadge.react"),{border:"white",color:"green",isProfileBadge:!0,size:f}):null}j.displayName=j.name+" [from "+f.id+"]";g["default"]=a}),98); __d("UseCurrentDisplayMode.bs",[],(function(a,b,c,d,e,f){"use strict";a="dark";b="light";f.darkTheme=a;f.lightTheme=b}),66); __d("MWFacepileBadge.bs",["CometBadge.react","CometPlaceholder.react","LSMessagingThreadTypeUtil.bs","MAWGating","MDSLockSvgIcon.bs","MWPPresenceBadge.react","UseCurrentDisplayMode.bs","react","useCurrentDisplayMode"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={badge:{display:"x1lliihq",marginTop:"xr1yuqi",marginEnd:"xkrivgy",marginBottom:"x4ii5y1",marginStart:"x1gryazu",$$css:!0},badgeDark:{backgroundColor:"x14hiurz",$$css:!0},badgeLight:{backgroundColor:"xal61yo",$$css:!0}};function a(a){var b=a.size;a=a.thread;var e=c("useCurrentDisplayMode")(),f=d("LSMessagingThreadTypeUtil.bs").isSecure(a.threadType),g=d("MAWGating").isArmadillo(),j=d("MAWGating").isE2EEAttributionAndPresenceEnabled();if(f&&g&&!j){f=e===d("UseCurrentDisplayMode.bs").darkTheme;return h.jsx(c("CometBadge.react"),{border:"white",colorOverride:[f?i.badgeDark:i.badgeLight],isProfileBadge:!0,size:b,children:h.jsx("div",{className:"x1lliihq xr1yuqi xkrivgy x4ii5y1 x1gryazu","data-testid":void 0,children:h.jsx(c("MDSLockSvgIcon.bs"),{color:f?"black":"white",size:b})})})}return h.jsx(c("CometPlaceholder.react"),{fallback:null,children:h.jsx(c("MWPPresenceBadge.react"),{size:b,thread:a})})}a.displayName=a.name+" [from "+f.id+"]";b=a;e=b;g.make=e}),98); __d("MWFacepileGetContactsToShow.bs",["LSMediaUrl.bs","LSMessagingThreadTypeUtil.bs","MWPActor.bs","ReQL.bs","ReQLSubscription.bs","bs_belt_Array","bs_caml","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function i(a){if(a!==void 0&&d("LSMediaUrl.bs").Contact.profilePictureUrl(a)!=="")return a}var j=[];function a(a){return a.sort(function(a,b){return b.rank-a.rank})}function k(a,b,e){var f=function(a){return a.filter(function(a){return c("bs_caml").i64_neq(a.id,e)})},g=b.length,h;if(g>=3){var k=f(c("bs_belt_Array").keepMap(b,i));h=k.length>=2?k:j}else switch(g){case 0:h=j;break;case 1:k=b[0];h=k!==void 0&&d("LSMediaUrl.bs").Contact.profilePictureUrl(k)!==""?[k]:j;break;case 2:g=b[0];if(g!==void 0){k=b[1];if(k!==void 0)if(d("LSMessagingThreadTypeUtil.bs").isOneToOne(a.threadType)){b=f([g,k]);if(b.length!==1)h=j;else{f=b[0];h=d("LSMediaUrl.bs").Contact.profilePictureUrl(f)!==""?[f]:j}}else h=d("LSMediaUrl.bs").Contact.profilePictureUrl(g)!==""&&d("LSMediaUrl.bs").Contact.profilePictureUrl(k)!==""&&d("LSMessagingThreadTypeUtil.bs").isGroup(a.threadType)?[g,k]:j;else h=j}else h=j;break}return h.sort(function(a,b){return b.rank-a.rank}).slice(0,2)}function b(a){var b=d("MWPActor.bs").useActor(),e=c("useReStore")(),f=a.threadKey,g=d("ReQLSubscription.bs").useArray(h.useMemo(function(){return d("ReQL.bs").map(d("ReQL.bs").take(d("ReQL.bs").leftJoin(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(e.table("participants")),{hd:f,tl:0}),d("ReQL.bs").fromTableAscending(e.table("contacts"))),3),function(a){return a[1]})},[e,JSON.stringify(f)]));return k(a,g,b)}e=i;f=j;a=a;var l=k;b=b;g.hasProfilePicture=e;g.glimmer=f;g.sortByRank=a;g.getContactsToShow=l;g.useHook=b}),98); __d("MWV2GetOtherUser.bs",["LSMessagingThreadTypeUtil.bs","MWPActor.bs","bs_caml","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function h(a,b,e){if(!d("LSMessagingThreadTypeUtil.bs").isOneToOne(a.threadType))return;if(b.length===1){a=b[0];var f=a[1];if(f!==void 0)return[a[0],f];else return}a=b.filter(function(a){return c("bs_caml").i64_neq(a[0].contactId,e)});if(a.length===0){c("recoverableViolation")("No participants in thread","messenger_comet");return}f=a[0];b=f[1];if(b!==void 0)return[f[0],b]}function a(a,b){var c=d("MWPActor.bs").useActor();return h(a,b,c)}b=h;e=a;g.getOtherUser=b;g.useOtherUser=e}),98); __d("LSThreadTitle.bs",["CometTextWithEntities.react","LSMessagingThreadTypeUtil.bs","MWCMIsAnyCMThread","MWChatTextTransform.bs","MWPActor.bs","MWPGetThreadTitle.bs","MWV2GetOtherUser.bs","ReQL.bs","ReQLSuspense","bs_caml_option","bs_curry","intlList","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function i(a){var b=a.actorIDOverride,e=a.thread,f=a.transforms;a=a.wrapOutput;var g=d("MWPActor.bs").useActor(),i=c("useReStore")();b=b!==void 0?b:g;var j=d("ReQLSuspense").useArray(function(){return d("ReQL.bs").take(d("ReQL.bs").leftJoin(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(i.table("participants")),{hd:e.threadKey,tl:0}),d("ReQL.bs").fromTableAscending(i.table("contacts"))),8)},[e.threadKey]);b=d("MWPGetThreadTitle.bs").computeThreadTitle(c("bs_caml_option").some(c("intlList").CONJUNCTIONS.NONE),e,j,b);if(b===void 0)return"";b=h.jsx(c("CometTextWithEntities.react"),{text:b,transforms:f});f=d("MWV2GetOtherUser.bs").getOtherUser(e,j,g);if(a!==void 0&&f!==void 0&&d("LSMessagingThreadTypeUtil.bs").isOneToOne(e.threadType))return c("bs_curry")._2(a,f[1],b);else return b}b={make:i};function a(a){var b=a.transforms,e=a.actorIDOverride,f=a.thread;a=a.wrapOutput;b=b!==void 0?b:d("MWChatTextTransform.bs").epdTextTransforms;var g=f.threadName;if(g!==void 0)return h.jsx(c("CometTextWithEntities.react"),{text:g,transforms:b});if(c("MWCMIsAnyCMThread")(f.threadType))return null;g={thread:f,transforms:b};a!==void 0&&(g.wrapOutput=c("bs_caml_option").valFromOption(a));e!==void 0&&(g.actorIDOverride=c("bs_caml_option").valFromOption(e));return h.jsx(i,babelHelpers["extends"]({},g))}a.displayName=a.name+" [from "+f.id+"]";e=a;f=b;a=e;g.ComputedThreadName=f;g.make=a}),98); __d("MWLSThreadDisplayContext.re",["MWLSThreadDisplayContext.bs"],(function(a,b,c,d,e,f){a=b("MWLSThreadDisplayContext.bs").Provider.make;f.Provider_make=a;c=b("MWLSThreadDisplayContext.bs").useHook;f.useHook=c;d=b("MWLSThreadDisplayContext.bs").Provider;f.Provider=d}),null); __d("LSContactIdType.bs",["bs_caml_int64"],(function(a,b,c,d,e,f){"use strict";a=b("bs_caml_int64").zero;c=b("bs_caml_int64").one;d=[0,2];f.unknown=a;f.fbid=c;f.smsLocalId=d}),null); __d("LSContactViewerRelationship.bs",["bs_caml_int64"],(function(a,b,c,d,e,f){"use strict";a=b("bs_caml_int64").zero;c=b("bs_caml_int64").one;d=[0,2];e=[0,3];b=[0,4];f.unknown=a;f.notContact=c;f.contactOfViewer=d;f.facebookFriend=e;f.softContact=b}),null); __d("LSContactWorkForeignEntityType.bs",["bs_caml_int64"],(function(a,b,c,d,e,f){"use strict";a=b("bs_caml_int64").zero;c=b("bs_caml_int64").one;d=[0,2];e=[0,3];f.unknown=a;f.foreign=c;f.notForeign=d;f.notForeignLimited=e}),null); __d("MWV2EnsureThatChatTabExists.bs",["LS.bs","LSAuthorityLevel.bs","LSContactBlockedByViewerStatus.bs","LSContactGender.bs","LSContactIdType.bs","LSContactType.bs","LSContactViewerRelationship.bs","LSContactWorkForeignEntityType.bs","LSDatabaseType.bs","LSMessagingThreadTypeUtil.bs","LSVerifyContactRowExists","LSVerifyThreadRowExists","Promise","bs_curry","cr:3989","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a,e){var f=c("useReStore")();h.useEffect(function(){var g=function(g){if(d("LSMessagingThreadTypeUtil.bs").isOneToOne(e))return f.runInTransaction(function(b){return c("LSVerifyContactRowExists")(a,d("LSContactIdType.bs").fbid,void 0,void 0,d("LSContactType.bs").user,void 0,void 0,void 0,void 0,!1,!1,d("LSContactBlockedByViewerStatus.bs").unblocked,void 0,!1,d("LSAuthorityLevel.bs").clientPartial,void 0,void 0,d("LSContactWorkForeignEntityType.bs").unknown,d("LSContactGender.bs").unknown,d("LSContactViewerRelationship.bs").unknown,void 0,d("LS.bs").make(b))},"readwrite");else return b("Promise").resolve()};c("promiseDone")(g().then(function(g){return!(b("cr:3989")==null)&&d("LSMessagingThreadTypeUtil.bs").isSecure(e)?c("bs_curry")._2(b("cr:3989").call,f,a):f.runInTransaction(function(b){return c("LSVerifyThreadRowExists")(a,e,d("LSDatabaseType.bs").mailbox,d("LS.bs").make(b))},"readwrite")}))},[f,JSON.stringify(a),JSON.stringify(e)])}g.$MAWVerifyExistingThreadExists$requireCondXplat=b("cr:3989");g.useHook=a;g.mawVerifyExistingThreadExists=b("cr:3989")}),98); __d("LSPlatformWaitForTaskCompletion",["I64","Promise","ReQL","emptyFunction","err","promiseDone","regeneratorRuntime","uuid"],(function(a,b,c,d,e,f,g){"use strict";function a(a,e,f){var g,h,i,j,k,l,m,n,o,p;return b("regeneratorRuntime").async(function(q){while(1)switch(q.prev=q.next){case 0:g=new Set();h=[];i=0;j=!0;m=new(b("Promise"))(function(a,b){k=a,l=b});n=c("uuid")();o=!0;q.next=9;return b("regeneratorRuntime").awrap(a.runInTransaction(function(m){var q,r,s,t;return b("regeneratorRuntime").async(function(u){while(1)switch(u.prev=u.next){case 0:u.next=2;return b("regeneratorRuntime").awrap(m.table("mailbox_task_completion_notification_context").add({notificationName:f,notificationScopeKey:n}));case 2:q=a.table("pending_tasks").subscribe(function(a,b){a=d("I64").to_string(a.hd);b.operation==="add"||b.operation==="put"?g.add(a):g["delete"](a)});r=c("emptyFunction");s=a.table("mailbox_task_completion_api_tasks").subscribe(function(a,b){if(b.operation==="add"||b.operation==="put"&&b.value.notificationScopeKey===n){a=d("I64").to_string(b.value.taskId);g["delete"](a);b=b.value.success;b==null?o&&(h.push(a),i+=1):(j=b&&j,i-=1)}});r=a.subscribeToCommit(function(){i===0&&g.size===0&&(s(),q(),r(),c("promiseDone")(a.runInTransaction(function(a){var c,e;return b("regeneratorRuntime").async(function(f){while(1)switch(f.prev=f.next){case 0:c=0;case 1:if(!(c0?[e[f-1]]:[]}return b}g["default"]=a}),98); __d("useVideoPlayerControllerSubscription",["VideoPlayerHooks","react","useLayoutEffect_SAFE_FOR_SSR"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useEffect,i=b.useRef,j=b.useState;function a(a){var b=d("VideoPlayerHooks").useController(),e=j(function(){return a(b,null)}),f=e[0],g=e[1],k=i(a);c("useLayoutEffect_SAFE_FOR_SSR")(function(){k.current=a},[a]);h(function(){g(function(a){return k.current(b,a)});var a=b.subscribe(function(){g(function(a){return k.current(b,a)})});return function(){a.remove()}},[b]);return f}g["default"]=a}),98); __d("useAudioAvailabilityAtPlayhead",["VideoPlayerAudioAvailabilityInfo","VideoPlayerHooks","useVideoPlayerControllerSubscription"],(function(a,b,c,d,e,f,g){"use strict";function a(){var a=d("VideoPlayerHooks").useAudioAvailabilityInfo();function b(b,c){b=b.getPlayheadPosition();b=d("VideoPlayerAudioAvailabilityInfo").makeVideoPlayerAudioAvailabilityAtPlayheadInfo(a,{playheadPosition:b});return c!=null&&c.isPlayheadWithinMutedSegment===b.isPlayheadWithinMutedSegment&&c.isSilentAtPlayhead===b.isSilentAtPlayhead&&c.volumeControlState===b.volumeControlState?c:b}return c("useVideoPlayerControllerSubscription")(b)}g["default"]=a}),98); __d("CastingChromecastAPI",["Promise","TrustedTypesNoOpPolicy_DO_NOT_USE","gkx","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h=3*60*1e3,i=["pkedcjkdefgpdelpbcmbmeomcjbeemfm","hfaagokkkhdbgiakmmlclaapfelnkoah","fmfcbgogabcbclcofgocippekhfcmgfj","enhhojjnijigcajfphajepfemndkmdlo"],j=null;d=function(a){var c=a.appID,d=a.receiverListener,e=a.sessionListener;return m().then(function(a){var f=new a.ApiConfig(new a.SessionRequest(c),e,d,a.AutoJoinPolicy.ORIGIN_SCOPED,a.DefaultActionPolicy.CAST_THIS_TAB);return new(b("Promise"))(function(b,c){a.initialize(f,b,c)})})};e=function(a){return m().then(function(b){b.addReceiverActionListener(function(c,d){switch(d){case b.ReceiverAction.CAST:a.onCast(c);break;case b.ReceiverAction.STOP:a.onStop();break}})})};f=function(a){return m().then(function(c){var d=new c.SessionRequest(a,[c.Capability.VIDEO_OUT,c.Capability.AUDIO_OUT],h);return new(b("Promise"))(function(a,b){c.requestSession(a,b,d)})})};var k=function(a){return m().then(function(b){return a===b.ReceiverAvailability.AVAILABLE})},l=function(){return m().then(function(a){return a.media.DEFAULT_MEDIA_RECEIVER_APP_ID})},m=function(){if(j)return j;if(!a.chrome){j=b("Promise").reject({code:"not_supported",description:null,details:null});return j}if(a.chrome.cast&&a.chrome.cast.isAvailable){j=b("Promise").resolve(a.chrome.cast);return j}j=b("Promise").resolve().then(function(){return n()}).then(function(d){return new(b("Promise"))(function(b,e){a.chrome.cast=a.chrome.cast||{};a.chrome.cast.extensionId=d;a.__onGCastApiAvailable=function(c,d){d?e(d):b(a.chrome.cast)};var f=document.createElement("script");f.onerror=e;if(d==null)if(c("gkx")("3449"))f.src=c("TrustedTypesNoOpPolicy_DO_NOT_USE").createScriptURL(q());else{e({code:"extension_not_available",description:null,details:null});return}else f.src=c("TrustedTypesNoOpPolicy_DO_NOT_USE").createScriptURL(p(d));var g=document.head||document.documentElement;if(g==null){e({code:"extension_no_casting_script",description:null,details:null});return}g.appendChild(f)})});return j};function n(){var a,c,d;return b("regeneratorRuntime").async(function(e){while(1)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a '"+a+"').","comet_video_player")},[a]);var f=j(d);i(function(){f.current=d},[d]);var g=c("usePrevious")(b),h=j(!1);i(function(){var a=e.current,c=f.current;c&&((g===null||b!==g)&&(b?(h.current=!0,c({name:a,type:"started"})):g!==null&&(h.current=!1,c({name:a,type:"ended"}))))},[b,g]);i(function(){var a=e.current,b=f.current;return function(){b&&h.current&&b({name:a,type:"ended"})}},[])}function b(){var a=j(new Set()),b=k(0),c=b[0],d=b[1];b=h(function(b){var c=a.current;b.type==="started"||b.type==="happening"?(c.add(b.name),d(c.size)):b.type==="ended"&&(c["delete"](b.name),d(c.size))},[]);return{ongoingInteractionsCount:c,onUserInteraction:b}}g.useVideoPlayerUserInteraction=a;g.useVideoPlayerUserInteractionCounter=b}),98); __d("CometWatchAndScrollTriggerContext",["react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b={isControlShown:!1,isTriggerDisabled:!1,setIsControlShown:null,setIsTriggerDisabled:null};c=a.createContext(b);g["default"]=c}),98); __d("VideoPlayerWithWatchAndScrollTrigger.react",["$InternalEnum","CastingStateHooks","CometWatchAndScrollTriggerContext","CometWatchAndScrollVideoContext","VideoPlayerHooks","react","requireDeferred","useVisibilityObserver","useWatchAndScrollTrigger"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");e=d("react");var i=e.useCallback,j=e.useContext,k=c("requireDeferred")("VideoHomeTypedLoggerLite").__setRef("VideoPlayerWithWatchAndScrollTrigger.react"),l=5,m=30,n=b("$InternalEnum")({BROADCAST:"broadcast",HERO:"hero",PAGE_SPOTLIGHT_CARD:"page_spotlight_card",TAHOE:"tahoe",VOD:"vod",WNS_CONTROL:"wns_control"});function a(a){var b=a.subOrigin,e=a.triggerType;a=a.videoID;var f=j(c("CometWatchAndScrollTriggerContext")),g=f.isControlShown;f=f.isTriggerDisabled;var o=d("VideoPlayerHooks").useController(),p=d("useWatchAndScrollTrigger").useWatchAndScrollTrigger(b,e,a),q=j(c("CometWatchAndScrollVideoContext")),r=d("CastingStateHooks").useIsCastingAnyVideo();b=i(function(a){if(a.hiddenReason!=="NOT_IN_VIEWPORT")return;a=o.getCurrentState();var b=a.paused,c=!a.muted,d=o.getPlayheadPosition();a=a.duration;var f=l;a>=30&&(f=Math.max(l,Math.min(m,Math.ceil(a*0/100))));if(!b&&!r&&q==null)switch(e){case n.HERO:p();k.onReady(function(a){a.log({event:"watch_and_scroll_trigger",event_target:"hero"})});break;case n.BROADCAST:c&&(p(),k.onReady(function(a){a.log({event:"watch_and_scroll_trigger",event_target:"newsfeed_live"})}));break;case n.VOD:c&&d>=f&&(p(),k.onReady(function(a){a.log({event:"watch_and_scroll_trigger",event_target:"newsfeed_vod"})}));break;default:break}},[o,q,e,p,r]);a=c("useVisibilityObserver")({onHidden:b});if(!g||f)return null;switch(e){case n.HERO:case n.BROADCAST:return h.jsx("div",{className:"xu1mrb xh8yej3",ref:a});case n.VOD:return h.jsx("div",{className:"xu1mrb xh8yej3",ref:a});default:return null}}a.displayName=a.name+" [from "+f.id+"]";g.WatchAndScrollTriggerType=n;g.VideoPlayerWithWatchAndScrollTrigger=a}),98); __d("useWatchAndScrollTrigger",["CometPictureInPictureExpContext","CometSetWatchAndScrollVideoContext","CometWatchAndScrollSoundContext","VideoPlayerHooks","VideoPlayerWithWatchAndScrollTrigger.react","react","recoverableViolation","usePlayerOriginRouteTracePolicy","useVideoPlayerPortalingPassthroughProps"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useCallback,i=b.useContext;function a(a,b,e,f){var g=c("useVideoPlayerPortalingPassthroughProps")(),j=g.portableVideoID,k=g.portalingPlaceID,l=c("usePlayerOriginRouteTracePolicy")(),m=d("VideoPlayerHooks").useController(),n=i(c("CometSetWatchAndScrollVideoContext")),o=i(c("CometWatchAndScrollSoundContext")),p=i(c("CometPictureInPictureExpContext"));return h(function(){o!=null&&(o.setMuted(null),o.setVolume(null));if(j!=null&&k!=null){var g=p.pictureInPictureExpConfig.isInPictureInPictureExp,h=p.pictureInPictureExpConfig.isInPictureInPictureExpControlGroup;if((g||h)&&b!==d("VideoPlayerWithWatchAndScrollTrigger.react").WatchAndScrollTriggerType.WNS_CONTROL)return;n({controller:m,portableVideoID:j,portalingPlaceID:k,routeTracePolicy:l,sessionStartTime:new Date(),sessionTrigger:b,subOrigin:a,videoID:e,videoUrl:f})}else c("recoverableViolation")("Could not transition to Watch and Scroll player because portableVideoID was null","comet_video_player")},[o,j,k,p.pictureInPictureExpConfig.isInPictureInPictureExp,p.pictureInPictureExpConfig.isInPictureInPictureExpControlGroup,b,n,m,l,a,e,f])}g.useWatchAndScrollTrigger=a}),98); __d("useIsVideoHomePlayerOriginFromTracePolicy",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b=["comet.watch.catalog","comet.watch.explore","comet.watch.feed","comet.watch.injection","comet.watch.latest","comet.watch.notifications","comet.watch.playlist","comet.watch.saved","comet.watch.search","comet.watch.sports","comet.watch.live.injection","comet.watch.live","comet.watch.music","comet.watch.lancelet"];return b.includes(a)}f["default"]=a}),66); __d("useNavigateToTahoePassthroughProps",["CometProductTagFunnelIDContext","CometTrackingCodeContext","CometTrackingNodesContext","CometWarningScreenContext","VideoPlayerHooks","getAggregatedStoryTrackingNodeIndex","react","useIsVideoHomePlayerOriginFromTracePolicy","usePlayerOriginRouteTracePolicy","useVideoPlayerPortalingPassthroughProps"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useContext;function a(){var a=c("useVideoPlayerPortalingPassthroughProps")(),b=h(c("CometTrackingCodeContext")),e=h(c("CometTrackingNodesContext")),f=h(c("CometProductTagFunnelIDContext")),g=d("CometWarningScreenContext").useIsOverlayShown(),i=d("CometWarningScreenContext").useHasOverlay();e=c("getAggregatedStoryTrackingNodeIndex")(e);var j=d("VideoPlayerHooks").useVideoPlayerInitialTracePolicy(),k=c("usePlayerOriginRouteTracePolicy")(),l=c("useIsVideoHomePlayerOriginFromTracePolicy")(k);return babelHelpers["extends"]({bypassAutoplaySettings:!0},a,{index:e,initialTracePolicy:(a=j)!=null?a:k,origOverlayShown:g,overlayExists:i,productTagFunnelID:f,trackingCode:b},l?{caller:"CHANNEL_VIEW_FROM_VIDEO_HOME"}:{})}g["default"]=a}),98); __d("useVideoPlayerHasStartedPlayingAtLeastOnce",["VideoPlayerHooks","createVideoStateHook","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useEffect;b=d("createVideoStateHook").createVideoStateHook(null);var i=b.stateHook;function a(){var a=i(!1),b=a[0],c=a[1],e=d("VideoPlayerHooks").usePlaying();h(function(){e&&c(!0)},[e,c]);return b}g["default"]=a}),98); __d("useVideoPlayerBigPlayButtonOverlay",["VideoPlayerHooks","VideoPlayerPlayButton.react","VideoPlayerSmallPlayButton.react","react","useVideoPlayerHasStartedPlayingAtLeastOnce"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useCallback;function a(a){a=a===void 0?{}:a;var b=a.buttonSize;b=b===void 0?"large":b;var e=a.forceVisible,f=a.overrideInteraction,g=a.shouldUnmute;a=c("useVideoPlayerHasStartedPlayingAtLeastOnce")();var j=d("VideoPlayerHooks").usePaused(),k=d("VideoPlayerHooks").useLastMuteReason(),l=d("VideoPlayerHooks").useController(),m=i(function(){l.play("user_initiated"),g===!0&&k!=="user_initiated"&&l.setMuted(!1,"product_initiated")},[l,k,g]);f=f!=null?f.handler:m;m=e===!0||e===!1?e:!a&&j;e=b==="small"?h.jsx(c("VideoPlayerSmallPlayButton.react"),{isVisible:m,onClick:f}):h.jsx(c("VideoPlayerPlayButton.react"),{isVisible:m,onClick:f});return{bigPlayButtonElement:e,bigPlayButtonIsVisible:m}}g["default"]=a}),98); __d("VideoPlayerInstreamAdsStateHooks",["createVideoStateHook"],(function(a,b,c,d,e,f,g){"use strict";var h=d("createVideoStateHook").createVideoStateHook(),i=h.stateHook,j=h.valueHook,k=[];function a(){return i(k)}function b(){return j(k)}h=d("createVideoStateHook").createVideoStateHook();var l=h.stateHook,m=h.valueHook,n=null;function c(){return l(n)}function e(){return m(n)}h=d("createVideoStateHook").createVideoStateHook();var o=h.setterHook,p=h.valueHook,q=!0;function f(){return o(q)}function r(){return p(q)}h=d("createVideoStateHook").createVideoStateHook();var s=h.stateHook,t=h.valueHook,u="INIT";function v(){return s(u)}function w(){return t(u)}h=d("createVideoStateHook").createVideoStateHook();var x=h.stateHook,y=h.valueHook,z=!0;function A(){return x(z)}function B(){return y(z)}h=d("createVideoStateHook").createVideoStateHook();var C=h.stateHook,D=h.valueHook,E=null;function F(){return C(E)}function G(){return D(E)}h=d("createVideoStateHook").createVideoStateHook();var H=h.stateHook,I=h.valueHook,J=null;function K(){return H(J)}function L(){return I(J)}h=d("createVideoStateHook").createVideoStateHook();var M=h.stateHook,N=h.valueHook,O=null;function P(){return M(O)}function Q(){return N(O)}h=d("createVideoStateHook").createVideoStateHook();var R=h.stateHook,S=h.valueHook,T=null;function U(){return R(T)}function aa(){return S(T)}h=d("createVideoStateHook").createVideoStateHook();var ba=h.stateHook,ca=h.valueHook,V=null;function da(){return ba(V)}function ea(){return ca(V)}h=d("createVideoStateHook").createVideoStateHook();var fa=h.stateHook,ga=h.valueHook,W=0;function ha(){return fa(W)}function ia(){return ga(W)}h=d("createVideoStateHook").createVideoStateHook();var ja=h.stateHook,ka=h.valueHook,X=!1;function la(){return ja(X)}function ma(){return ka(X)}h=d("createVideoStateHook").createVideoStateHook();var na=h.stateHook,oa=h.valueHook,Y=!1;function pa(){return na(Y)}function qa(){return oa(Y)}h=d("createVideoStateHook").createVideoStateHook();var ra=h.stateHook,sa=h.valueHook,Z=null;function ta(){return ra(Z)}function ua(){return sa(Z)}h=d("createVideoStateHook").createVideoStateHook();var va=h.stateHook,wa=h.valueHook,$=null;function xa(){return va($)}function ya(){return wa($)}function za(){var a=w();return a==="STARTING_INDICATOR"||a==="START"||a==="START_AD"||a==="PLAY_NI_VIDEO"}g.useInstreamAdsMidRollsState=a;g.useInstreamAdsMidRollsValue=b;g.useInstreamAdsPostRollState=c;g.useInstreamAdsPostRollValue=e;g.useInstreamAdsPostRollEndedOrSkippedStateSetter=f;g.useInstreamAdsPostRollEndedOrSkippedStateValue=r;g.useInstreamAdsState=v;g.useInstreamAdsStateValue=w;g.useInstreamAdsIsEmptyState=A;g.useInstreamAdsIsEmptyStateValue=B;g.useInstreamAdsCurrentInsertionState=F;g.useInstreamAdsCurrentInsertionStateValue=G;g.useStartIndicatorBeginningTimeState=K;g.useStartIndicatorBeginningTimeStateValue=L;g.useAdBreaksTimeOffsetBeginningState=P;g.useAdBreaksTimeOffsetBeginningStateValue=Q;g.useInstreamAdsExtraFieldsState=U;g.useInstreamAdsExtraFieldsStateValue=aa;g.useInstreamAdsHideAdBehaviorState=da;g.useInstreamAdsHideAdBehaviorStateValue=ea;g.useUnifiedSchedulerLastFetchTimeState=ha;g.useUnifiedSchedulerLastFetchTimeStateValue=ia;g.useWaitingForAdFetchState=la;g.useWaitingForAdFetchStateValue=ma;g.useInstreamAdsHasCTAState=pa;g.useInstreamAdsHasCTAStateValue=qa;g.useInstreamAdsFeedContextCardState=ta;g.useInstreamAdsFeedContextCardStateValue=ua;g.useInstreamAdsFullScreenContextCardState=xa;g.useInstreamAdsFullScreenContextCardStateValue=ya;g.useInstreamAdsIsStart=za}),98); __d("CometTahoeCustomVideoAreaContext",["emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useMemo,j=b.useState,k=h.createContext({customVideoAreaHidden:!0,setCustomVideoAreaHidden:c("emptyFunction")});function a(a){a=a.children;var b=j(!0),c=b[0],d=b[1];b=i(function(){return{customVideoAreaHidden:c,setCustomVideoAreaHidden:d}},[c,d]);return h.jsx(k.Provider,{value:b,children:a})}a.displayName=a.name+" [from "+f.id+"]";g.CometTahoeCustomVideoAreaContext=k;g.CometTahoeCustomVideoAreaContextProvider=a}),98); __d("CometTahoeSidePaneContext",["react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b={rightRailHidden:!1,setRightRailHidden:function(){}};c=a.createContext(b);g["default"]=c}),98); __d("VideoPlayerLoggingSuboriginContext",["react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b=a.createContext(null);g["default"]=b}),98); __d("CometVideoHomePositionInUnitContext",["react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b=a.createContext(0);g["default"]=b}),98); __d("CometVideoHomeSectionPositionContext",["react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b=a.createContext(null);g["default"]=b}),98); __d("VideoHomeLoggingReactionVideoChannelTypeContext",["react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b=a.createContext(null);g["default"]=b}),98); __d("VideoHomeLoggingUpstreamPlayerSourceContext",["react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b=a.createContext(null);g["default"]=b}),98); __d("CometWatchAndScrollControlNUXContext",["react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b={isVideoPlayerWatchAndScrollControlNUXVisible:!1,setIsVideoPlayerWatchAndScrollControlNUXVisible:null};c=a.createContext(b);g["default"]=c}),98); __d("VideoPlayerCometWatchInjectionControl.react",["fbt","ix","VideoPlayerControlIcon.react","fbicon","react","useCometRouterState","useVideoPlayerPortalingPassthroughProps"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");function a(a){var b=a.isARLTW,e=a.onPress,f=a.routeTracePolicy,g=a.subOrigin;a=a.videoWatchUrl;var k=c("useVideoPlayerPortalingPassthroughProps")();k=k.portableVideoID;var l=c("useCometRouterState")();l=l==null?void 0:l.main.route.tabKey;l=l!=="watch"?h._("__JHASH__kSxES2qHoku__JHASH__"):h._("__JHASH__NFrEQFQldyW__JHASH__");return j.jsx(c("VideoPlayerControlIcon.react"),{icon:d("fbicon")._(i("517763"),20),label:l,linkProps:{passthroughProps:{isARLTW:b,portableVideoID:k,portalingRouteTracePolicy:f,portalingSubOrigin:g,unmute:!0},url:a},onPress:e,tooltip:l})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("formatDurationSeconds",["fbt","padNumber"],(function(a,b,c,d,e,f,g,h){function a(a){var b=Math.floor(a/3600),d=Math.floor(a/60%60);a=Math.floor(a%60);if(b)return h._("__JHASH__FQybzYZtMhO__JHASH__",[h._param("hours",b),h._param("minutes",c("padNumber")(d,2)),h._param("seconds",c("padNumber")(a,2))]);else return h._("__JHASH__dB1Hg5AxmjF__JHASH__",[h._param("minutes",d),h._param("seconds",c("padNumber")(a,2))])}g["default"]=a}),98); __d("VideoHomeTypedLoggerLite",["generateLiteTypedLogger"],(function(a,b,c,d,e,f){"use strict";e.exports=b("generateLiteTypedLogger")("logger:VideoHomeLoggerConfig")}),null);/*FB_PKG_DELIM*/ __d("LSDeleteThread",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[],e;return b.seq([function(d){return b.seq([function(d){return b.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var d=a.done;a=a.value;return d?(d=[[0,0],e],c[0]=d[0],c[1]=d[1],d):(b=a.item,d=[b.parentThreadKey,b.disappearingThreadKey],c[0]=d[0],c[1]=d[1],d)})},function(a){return b.ct(b.db.table(9).fetch([[[c[0]]],"parentThreadKeyLastActivityTimestampMs"])).then(function(a){return c[3]=a})},function(d){return a[1]&&b.i64.neq(c[0],[0,0])&&b.i64.eq(c[3],[0,1])?b.seq([function(d){return b.fe(b.db.table(9).fetch([[[a[0]],[c[0]]]]),function(a){return a["delete"]()})},function(a){return b.i64.neq(c[1],e)?0:0}]):b.seq([function(c){return b.fe(b.db.table(9).fetch([[[a[0]]]]),function(a){return a["delete"]()})},function(a){return b.i64.neq(c[1],e)?0:0}])}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSRemoveParticipantFromThread",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.ftr(b.db.table(14).fetch([[[a[0],a[1]]]]),function(c){return b.i64.eq(c.threadKey,a[0])&&b.i64.eq([0,0],[0,0])&&b.i64.eq(c.contactId,a[1])}),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSOptimisticRemoveParticipantsFromGroupThread",["LSArrayGetObjectAt","LSIssueNewError","LSIssueNewTask","LSRemoveParticipantFromThread"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=c.i64.of_int32(a[1].length),c.i64.gt(d[0],[0,0])?c.loopAsync(d[0],function(e){return d[1]=e,c.seq([function(e){return c.ntop("Array",b("LSArrayGetObjectAt"),a[1],d[1]).then(function(a){return a=a,d[2]=a[0],d[3]=a[1],a})},function(e){return c.sp(b("LSRemoveParticipantFromThread"),a[0],d[2])},function(a){return c.sb(c.db.table(115).fetch(),[["timestampMs","DESC"]]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[4]=!1:(b=a.item,d[4]=b.errorShouldBeShown)})},function(a){return d[4]===!0?c.seq([function(a){return c.localizeV2Async([0,2285622730],f).then(function(a){return d[8]=a})},function(a){return c.localizeV2Async([0,1919524925],f).then(function(a){return d[9]=a})},function(a){return c.sp(b("LSIssueNewError"),f,[0,1545093],d[8],d[9],f)}]):c.resolve()},function(e){return d[6]=new c.Map(),d[6].set("thread_id",a[0]),d[6].set("contact_id",d[2]),d[7]=c.toJSON(d[6]),c.sp(b("LSIssueNewTask"),"remove_participant_v2",[0,140],d[7],f,f,[0,0],[0,0],f,f,[0,0])}])}):c.resolve()},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSOptimisticRemoveThread",["LSDeleteThread","LSIssueNewTaskAndGetTaskID"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[0]=[0,1]:(b=a.item,d[4]=b.syncGroup,c.i64.neq(d[4],f)?d[3]=d[4]:d[3]=[0,1],d[0]=d[3])})},function(d){return c.i64.eq(a[1],[0,1])?c.db.table(9).fetch([[[a[0]]]]).next().then(function(b,d){d=b.done;b=b.value;return d?0:(b.item,c.fe(c.db.table(9).fetch([[[a[0]]]]),function(a){var b=a.update;a.item;return b({folderName:"",parentThreadKey:[-1,4294967286]})}))}):c.sp(b("LSDeleteThread"),a[0],!1)},function(e){return c.sp(b("LSIssueNewTaskAndGetTaskID"),c.i64.to_string(a[0]),[0,146],"",f,f,[0,0],[0,0],d[0],f,[0,0]).then(function(a){return a=a,d[2]=a[0],a})},function(b){return c.db.table(32).add({taskId:d[2],threadKey:a[0],removeType:a[1],syncGroup:d[0]})}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSFeatureLimitsType.bs",["bs_caml_int64"],(function(a,b,c,d,e,f){"use strict";a=b("bs_caml_int64").one;c=[0,2];d=[0,4];e=[0,8];f.readOnly=a;f.genericReadOnlyBlock=c;f.messageSend=d;f.messengerOnlyAccountsReadOnlyBlock=e}),null); __d("bs_array",["bs_caml_array","bs_caml_exceptions","bs_caml_js_exceptions","bs_caml_obj","bs_curry"],(function(a,b,c,d,e,f){"use strict";var g=b("bs_caml_array").make_float,h={};function a(a,c){if(a===0)return[];if(a<0)throw{RE_EXN_ID:"Invalid_argument",_1:"Array.init",Error:new Error()};var d=b("bs_caml_array").make(a,b("bs_curry")._1(c,0));for(var e=1;e(a.length-d|0))throw{RE_EXN_ID:"Invalid_argument",_1:"Array.sub",Error:new Error()};return b("bs_caml_array").sub(a,c,d)}function j(a,b,c,d){if(b<0||c<0||b>(a.length-c|0))throw{RE_EXN_ID:"Invalid_argument",_1:"Array.fill",Error:new Error()};for(var e=b,b=b+c|0;e(a.length-f|0)||e<0||e>(d.length-f|0))throw{RE_EXN_ID:"Invalid_argument",_1:"Array.blit",Error:new Error()};return b("bs_caml_array").blit(a,c,d,e,f)}function l(a,c){for(var d=0,e=c.length;d=0;--e)d=b("bs_curry")._2(a,c[e],d);return d}function w(a,c){var d=c.length,e=0;while(!0){var f=e;if(f===d)return!1;if(b("bs_curry")._1(a,c[f]))return!0;e=f+1|0;continue}}function x(a,c){var d=c.length,e=0;while(!0){var f=e;if(f===d)return!0;if(!b("bs_curry")._1(a,c[f]))return!1;e=f+1|0;continue}}function y(a,c){var d=c.length,e=0;while(!0){var f=e;if(f===d)return!1;if(b("bs_caml_obj").caml_equal(c[f],a))return!0;e=f+1|0;continue}}function z(a,b){var c=b.length,d=0;while(!0){var e=d;if(e===c)return!1;if(a===b[e])return!0;d=e+1|0;continue}}var A=b("bs_caml_exceptions").create("Array.Bottom");function B(a,c){var d=function(d,e){var f=((e+e|0)+e|0)+1|0,g=f;if((f+2|0)=0)return b("bs_caml_array").set(c,d,f);b("bs_caml_array").set(c,d,b("bs_caml_array").get(c,g));if(g<=0)return b("bs_caml_array").set(c,0,f);e=g;continue}},h=c.length;for(var i=((h+1|0)/3|0)-1|0;i>=0;--i)e(h,i,b("bs_caml_array").get(c,i));for(i=h-1|0;i>=2;--i){e=b("bs_caml_array").get(c,i);b("bs_caml_array").set(c,i,b("bs_caml_array").get(c,0));g(f(i,0),e)}if(h<=1)return;e=b("bs_caml_array").get(c,1);b("bs_caml_array").set(c,1,b("bs_caml_array").get(c,0));return b("bs_caml_array").set(c,0,e)}function C(a,c){var d=function(d,e,f,g,h,i,j){e=d+e|0;h=g+h|0;var l=d;d=b("bs_caml_array").get(c,d);var m=g;g=b("bs_caml_array").get(f,g);j=j;while(!0){var n=j,o=g,p=m,q=d,r=l;if(b("bs_curry")._2(a,q,o)<=0){b("bs_caml_array").set(i,n,q);q=r+1|0;if(q>=e)return k(f,p,i,n+1|0,h-p|0);j=n+1|0;d=b("bs_caml_array").get(c,q);l=q;continue}b("bs_caml_array").set(i,n,o);q=p+1|0;if(q>=h)return k(c,r,i,n+1|0,e-r|0);j=n+1|0;g=b("bs_caml_array").get(f,q);m=q;continue}},e=function(d,e,f,g){for(var h=0;h=f&&b("bs_curry")._2(a,b("bs_caml_array").get(e,j),i)>0)b("bs_caml_array").set(e,j+1|0,b("bs_caml_array").get(e,j)),j=j-1|0;b("bs_caml_array").set(e,j+1|0,i)}},f=function a(f,g,h,i){if(i<=5)return e(f,g,h,i);var b=i/2|0;i=i-b|0;a(f+b|0,g,h+b|0,i);a(f,c,f+i|0,b);return d(f+i|0,b,g,h+b|0,i,g,h)},g=c.length;if(g<=5)return e(0,c,0,g);var h=g/2|0;g=g-h|0;var i=b("bs_caml_array").make(g,b("bs_caml_array").get(c,0));f(h,i,0,g);f(0,c,g,h);return d(g,h,i,0,g,c,0)}var D=c,E=b("bs_caml_array").concat,F=C;f.make_float=g;f.init=a;f.make_matrix=c;f.create_matrix=D;f.append=d;f.concat=E;f.sub=e;f.copy=i;f.fill=j;f.blit=k;f.to_list=r;f.of_list=t;f.iter=l;f.iteri=p;f.map=n;f.mapi=q;f.fold_left=u;f.fold_right=v;f.iter2=m;f.map2=o;f.for_all=x;f.exists=w;f.mem=y;f.memq=z;f.sort=B;f.stable_sort=C;f.fast_sort=F;f.Floatarray=h}),null); __d("MWPFeatureLimitedData.bs",["LSFeatureLimitsType.bs","ReQL.bs","ReQLSubscription.bs","bs_array","bs_belt_Array","bs_caml","bs_caml_int64","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=c("useReStore")(),e=c("bs_caml_int64").of_float(Date.now()/1e3);a=function(a){return c("bs_caml").i64_gt(a.expirationTimestampSeconds,e)};return c("bs_belt_Array").get(d("ReQLSubscription.bs").useArray(h.useMemo(function(){var a=[d("LSFeatureLimitsType.bs").readOnly,d("LSFeatureLimitsType.bs").genericReadOnlyBlock,d("LSFeatureLimitsType.bs").messageSend],e=function(b){return c("bs_array").exists(function(a){return c("bs_caml").i64_eq(a,b.type_)},a)};return d("ReQL.bs").filter(d("ReQL.bs").fromTableAscending(b.table("feature_limits")),e)},[b])).filter(a),0)}b=a;g.useReadOnlyFeatureLimitData=b}),98); __d("MWLSFeatureLimitedStatus.bs",["MWPFeatureLimitedData.bs","gkx"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=d("MWPFeatureLimitedData.bs").useReadOnlyFeatureLimitData();if(a!==void 0)return c("gkx")("1908348");else return!1}g.useIsReadOnlyFeatureLimited=a}),98); __d("MWChatIsMessageRequest.bs",["CurrentUser"],(function(a,b,c,d,e,f,g){"use strict";function a(a){if(a!==void 0)if(a==="pending")return!0;else if(a==="other")return!c("CurrentUser").isWorkUser();else return!1;else return!1}g.fn=a}),98); __d("LsMessageRequestsActions.bs",["bs_caml_int64"],(function(a,b,c,d,e,f){"use strict";a=b("bs_caml_int64").zero;c=b("bs_caml_int64").one;d=[0,2];e=[0,3];b=[0,4];var g=[0,5],h=[0,6],i=[0,7],j=[0,8],k=[0,9],l=[0,10],m=[0,11],n=[0,12],o=[0,13];f.none=a;f.accept=c;f.block=d;f.bulkAccept=e;f.bulkDelete=b;f.bulkMarkAsRead=g;f.bulkMarkAsUnread=h;f.cancel=i;f.delete_=j;f.frx=k;f.leaveGroup=l;f.bulkEdit=m;f.bulkSelect=n;f.unignore=o}),null); __d("MessageRequestsLog.bs",["LsMessageRequestsActions.bs","LsSystemFolder.bs","bs_caml_int64","bs_int64","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h=c("requireDeferred")("MessageRequestsBulkActionConfirmedFalcoEvent").__setRef("MessageRequestsLog.bs"),i=c("requireDeferred")("MessageRequestsBulkActionEditFalcoEvent").__setRef("MessageRequestsLog.bs"),j=c("requireDeferred")("MessageRequestsBulkActionTappedFalcoEvent").__setRef("MessageRequestsLog.bs"),k=c("requireDeferred")("MessageRequestsInfoBannerShownFalcoEvent").__setRef("MessageRequestsLog.bs"),l=c("requireDeferred")("MessageRequestsThreadActionConfirmedFalcoEvent").__setRef("MessageRequestsLog.bs"),m=c("requireDeferred")("MessageRequestsThreadActionTappedFalcoEvent").__setRef("MessageRequestsLog.bs"),n=c("requireDeferred")("MessageRequestsThreadDenialOptionsTappedFalcoEvent").__setRef("MessageRequestsLog.bs"),o=c("requireDeferred")("MessageRequestsViewThreadlistFalcoEvent").__setRef("MessageRequestsLog.bs");function p(a){if(a.folderName==="pending")return c("bs_caml_int64").to_int32(d("LsSystemFolder.bs").pending);else return c("bs_caml_int64").to_int32(d("LsSystemFolder.bs").other)}function a(a,b,e,f){k.onReady(function(f){f.log(function(){var f=p(a);return{action:c("bs_caml_int64").to_int32(d("LsMessageRequestsActions.bs").none),extra_data_map:void 0,group_thread_id:e,other_user_id:b,request_id:void 0,thread_folder:f,thread_id:e!==void 0?e:c("bs_int64").to_string(a.threadKey),thread_type:c("bs_caml_int64").to_int32(a.threadType)}})})}function b(a,b,e){n.onReady(function(e){e.log(function(){var e=p(a);return{action:c("bs_caml_int64").to_int32(d("LsMessageRequestsActions.bs").none),extra_data_map:void 0,group_thread_id:void 0,other_user_id:b,request_id:void 0,thread_folder:e,thread_id:c("bs_int64").to_string(a.threadKey),thread_type:c("bs_caml_int64").to_int32(a.threadType)}})})}function e(a,b,d,e,f){m.onReady(function(f){f.log(function(){var f=p(a);return{action:b,extra_data_map:void 0,group_thread_id:e,other_user_id:d,request_id:void 0,thread_folder:f,thread_id:e!==void 0?e:c("bs_int64").to_string(a.threadKey),thread_type:c("bs_caml_int64").to_int32(a.threadType)}})})}function f(a,b,d,e,f){l.onReady(function(f){f.log(function(){var f=p(a);return{action:b,extra_data_map:void 0,group_thread_id:e,other_user_id:d,request_id:void 0,thread_folder:f,thread_id:e!==void 0?e:c("bs_int64").to_string(a.threadKey),thread_type:c("bs_caml_int64").to_int32(a.threadType)}})})}function q(a,b){o.onReady(function(e){e.log(function(){return{action:c("bs_caml_int64").to_int32(d("LsMessageRequestsActions.bs").none),actioned_thread_count:0,actioned_thread_ids:void 0,actioned_unread_thread_count:0,entry_point:a,folder:b,request_id:void 0}})})}function r(a,b,c,d,e){j.onReady(function(f){f.log(function(){return{action:d,actioned_thread_count:b,actioned_thread_ids:void 0,actioned_unread_thread_count:c,entry_point:a,folder:e,request_id:void 0}})})}function s(a,b,c,d,e){h.onReady(function(f){f.log(function(){return{action:d,actioned_thread_count:b,actioned_thread_ids:void 0,actioned_unread_thread_count:c,entry_point:a,folder:e,request_id:void 0}})})}function t(a,b,c){i.onReady(function(d){d.log(function(){return{action:b,actioned_thread_count:0,actioned_thread_ids:void 0,actioned_unread_thread_count:0,entry_point:a,folder:c,request_id:void 0}})})}var u=k,v=n,w=m,x=l,y=o,z=j,A=h,B=i,C=p;a=a;b=b;e=e;f=f;q=q;r=r;s=s;t=t;g.messageRequestsInfoBannerShownFalcoEventLogger=u;g.messageRequestsThreadDenialOptionsTappedFalcoEventLogger=v;g.messageRequestsThreadActionTappedFalcoEventLogger=w;g.messageRequestsThreadActionConfirmedFalcoEventLogger=x;g.messageRequestsViewThreadlistFalcoEventLogger=y;g.messageRequestsBulkActionTappedFalcoEventLogger=z;g.messageRequestsBulkActionConfirmedFalcoEventLogger=A;g.messageRequestsBulkActionEditFalcoEventLogger=B;g.getFolder=C;g.logMessageRequestInfoShown=a;g.logDenialOptionsTapped=b;g.logActionTapped=e;g.logActionConfirmed=f;g.logMessageRequestsView=q;g.logMessageRequestsBulkActionTapped=r;g.logMessageRequestsBulkActionConfirmed=s;g.logMessageRequestsBulkActionEdit=t}),98); __d("MWLSThreadReportingToken.bs",["LSMessagingThreadTypeUtil.bs","LSThreadBitOffset.bs","LSThreadCapabilityBitOffset.bs","MWLSThread.bs","MWThreadKey.bs","bs_int64","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function i(a){var b=d("LSThreadBitOffset.bs").has(d("LSThreadCapabilityBitOffset.bs").feedbackAndReport,a);if(b)if(d("LSMessagingThreadTypeUtil.bs").isSecure(a.threadType))return window.btoa("message_thread:encrypted");else return window.btoa("message_thread:"+c("bs_int64").to_string(a.threadKey))}function a(a){a=d("MWThreadKey.bs").useIdMemoizedExn();var b=d("MWLSThread.bs").useThread(a);return h.useMemo(function(){if(b!==void 0)return i(b)},[b])}b=i;e=a;g.fromThread=b;g.useHook=e}),98); __d("MWLSGetOngoingCallState.bs",["MWThreadKey.bs","ReQL.bs","ReQLSubscription.bs","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=c("useReStore")(),e=d("MWThreadKey.bs").useIdMemoizedExn();return d("ReQLSubscription.bs").useFirst(h.useMemo(function(){return d("ReQL.bs").map(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(b.table("threads")),{hd:e,tl:0}),function(a){return a.ongoingCallState})},[b,JSON.stringify(e)]))}g.useHook=a}),98); __d("MWLSJewelGetOngoingCallData.bs",["LSMessagingThreadTypeUtil.bs","MWLSGetOngoingCallState.bs","MWThread_DEPRECATED.bs","RTCCallState.bs","ReQL.bs","ReQLSubscription.bs","bs_belt_Option","bs_caml_format","bs_caml_option","bs_int64","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function i(a,b){return d("ReQL.bs").map(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(a.table("rtc_ongoing_calls_on_threads_v2")),{hd:b,tl:0}),function(a){return a.ongoingCallServerInfoData})}function a(a){a=d("MWThread_DEPRECATED.bs").useIdExn();var b=d("MWThread_DEPRECATED.bs").toThreadKey(a),e=c("useReStore")(),f=c("bs_int64").to_string(b);b=d("MWLSGetOngoingCallState.bs").useHook();var g=d("LSMessagingThreadTypeUtil.bs").ofThreadId(a);a=d("ReQLSubscription.bs").useFirst(h.useMemo(function(){return i(e,c("bs_caml_format").caml_int64_of_string(f))},[e,f]));if(a!==void 0){a=c("bs_caml_option").valFromOption(a);a=a!==void 0?a:null}else a=null;return{call_state:c("bs_belt_Option").mapWithDefault(b,"NO_ONGOING_CALL",function(a){return d("RTCCallState.bs").ofLsRtcCallState(a,g)}),initiator_fbid:null,server_info_data:a}}g.ongoingCallDataQuery=i;g.useHook=a}),98); __d("useZenonCallInvite",["react"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useEffect,i=b.useState;function a(a){var b=i(function(){return a?a.getCurrentInvite():null}),c=b[0],d=b[1];h(function(){if(a){var b=a.addListener("callInvite",d);return function(){b.remove()}}else d(null)},[a]);return c}g["default"]=a}),98); __d("ZenonPreCallHookBuilder",["CometRelay","FBLogger","Promise","ZenonPreCallHookBuilderHelper","err","gkx","react","useZenonCallInvite"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=h.useCallback,j=h.useContext,k=h.useDebugValue,l=h.useEffect,m=6e4;function a(a){return function(){var b=j(a);return i(function(){return d("ZenonPreCallHookBuilderHelper").acceptCall(b)},[b])}}function e(a){return function(){var b=j(a);b=c("useZenonCallInvite")(b?b.callInviteModel:null);k(b);return b}}function f(a,b){return function(d,e){return function(){var f=j(a),g=d(),h=e(),k=b();return i(function(a){if(!c("gkx")("1811099"))return;var b=a.existingCall,d=a.thread;if(!f||!f.incomingRingSDK.isCallSupported({threadType:d.type,type:"thread"}))h(a);else switch(d.type){case 1:k(babelHelpers["extends"]({},a,{invitees:[d.id]}));break;case 15:if(d.secureOneToOneThreadPeerId==null)throw c("err")("secureOneToOneThreadPeerId should be defined when starting a call from a secure 1:1 thread");k(babelHelpers["extends"]({},a,{invitees:[d.secureOneToOneThreadPeerId]}));break;case 2:case 16:b===null||b.call_state==="NO_ONGOING_CALL"?g(a,function(b){k(babelHelpers["extends"]({},a,{invitees:b}))}):k(babelHelpers["extends"]({},a,{invitees:[]}));break;default:c("FBLogger")("rtc_www").blameToPreviousFrame().mustfix("Attempted to start RTC call for unsupported thread type %d",d.type)}},[f,g,h,k])}}}function n(a,b){return function(){var c=j(a),d=b();l(function(){if(c&&d&&d.type==="ringing"){var a=window.setTimeout(function(){c.callInviteModel.decline("NoAnswerTimeout")},m);return function(){window.clearTimeout(a)}}},[c,d])}}function o(a){return function(){var e=j(a);return i(function(a){var f=a.existingCall,g=a.extra,h=a.invitees,i=a.isE2eeMandated,j=a.mediaType,k=a.thread;a=a.trigger;return!c("gkx")("1811099")?b("Promise").resolve():d("ZenonPreCallHookBuilderHelper").startCall(e,{existingCall:f,extra:g,invitees:h,isE2eeMandated:i,mediaType:j,thread:k,trigger:a})},[e])}}function p(a){return function(){var e=j(a),f=d("CometRelay").useRelayEnvironment();return i(function(a,g,h,i){return!c("gkx")("1811099")?b("Promise").resolve(null):d("ZenonPreCallHookBuilderHelper").createMeetup(e,f,a,g,h,i)},[e,f])}}function q(a){return function(){var e=j(a);return i(function(a,f,g,h,i,j){return!c("gkx")("1811099")?b("Promise").resolve():d("ZenonPreCallHookBuilderHelper").joinMeetup({actorID:j,callback_users:g,context:e,forceSkipChildLobby:!1,linkUrl:a,referrerContext:i,startCallImmediately:h,trigger:f})},[e])}}g.createAcceptCallCallbackHook=a;g.createCallInviteHook=e;g.createInviteAndStartCallCallbackHookFactory=f;g.createNoAnswerTimeoutHook=n;g.createStartCallCallbackHook=o;g.createCreateMeetupCallbackHook=p;g.createJoinMeetupCallbackHook=q}),98); __d("RTWebPreCallHooks",["RTWebPreCallContext","ZenonPreCallHookBuilder"],(function(a,b,c,d,e,f,g){"use strict";a=d("ZenonPreCallHookBuilder").createAcceptCallCallbackHook(c("RTWebPreCallContext"));b=d("ZenonPreCallHookBuilder").createCallInviteHook(c("RTWebPreCallContext"));e=d("ZenonPreCallHookBuilder").createNoAnswerTimeoutHook(c("RTWebPreCallContext"),b);f=d("ZenonPreCallHookBuilder").createStartCallCallbackHook(c("RTWebPreCallContext"));var h=d("ZenonPreCallHookBuilder").createCreateMeetupCallbackHook(c("RTWebPreCallContext")),i=d("ZenonPreCallHookBuilder").createJoinMeetupCallbackHook(c("RTWebPreCallContext"));d=d("ZenonPreCallHookBuilder").createInviteAndStartCallCallbackHookFactory(c("RTWebPreCallContext"),f);g.useAcceptCallCallback=a;g.useCallInvite=b;g.useNoAnswerTimeout=e;g.useStartCallCallback=f;g.useCreateMeetupCallback=h;g.useJoinMeetupCallback=i;g.createInviteAndStartCallCallbackHook=d}),98); __d("useRTWebOutgoingGroupCallDialog",["JSResourceForInteraction","react","useCometLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useCallback,i=b.useRef,j=c("JSResourceForInteraction")("RTWebCometOutgoingGroupCallContentMercury.react").__setRef("useRTWebOutgoingGroupCallDialog"),k=c("JSResourceForInteraction")("RTWebCometOutgoingGroupCallContentLS.react").__setRef("useRTWebOutgoingGroupCallDialog");function a(){var a=i(!1),b=c("useCometLazyDialog")(j),d=b[0];b=c("useCometLazyDialog")(k);var e=b[0];return h(function(b){var c=b.onCall,f=b.shouldUseLS,g=b.threadID,h=b.trigger;b=b.viewer;if(!a.current){a.current=!0;f=f===!0?e:d;f({onCall:c,threadID:g,trigger:h,viewer:b},function(){a.current=!1})}},[a,e,d])}g["default"]=a}),98); __d("useRTWebOutgoingUnsupportedBrowserDialog",["JSResourceForInteraction","react","useCometLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useCallback,i=c("JSResourceForInteraction")("RTWebOutgoingUnsupportedBrowserDialogWrapper.react").__setRef("useRTWebOutgoingUnsupportedBrowserDialog");function a(){var a=c("useCometLazyDialog")(i),b=a[0];return h(function(a){b(a)},[b])}g["default"]=a}),98); __d("useRTWebCometStartCallCallback",["Actor","RTWebPreCallHooks","react","useRTWebOutgoingGroupCallDialog","useRTWebOutgoingUnsupportedBrowserDialog"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useCallback;e=d("RTWebPreCallHooks").createInviteAndStartCallCallbackHook(a,b);function a(){var a=d("Actor").useActor(),b=a[0],e=c("useRTWebOutgoingGroupCallDialog")();return h(function(a,c){var d=a.thread,f=d.id;d=d.type;a=a.trigger;d=d===16;e({onCall:c,shouldUseLS:d,threadID:f,trigger:a,viewer:b})},[e,b])}function b(){var a=d("Actor").useActor(),b=a[0],e=c("useRTWebOutgoingUnsupportedBrowserDialog")();return h(function(a){a=a.thread;var c=a.id;a=a.type;e({actorID:b,threadID:c,threadType:a})},[b,e])}g["default"]=e}),98); __d("MWLSStartPhoneCall.bs",["LSMessagingThreadTypeUtil.bs","MWLSGetOngoingCallState.bs","MWLSJewelGetOngoingCallData.bs","MWPActor.bs","MWThreadKey.bs","MessagingThreadType.bs","Promise","RTCCallState.bs","ReQL.bs","bs_belt_Option","bs_caml","bs_caml_int64","bs_caml_option","bs_int64","bs_js_null_undefined","promiseDone","react","recoverableViolation","useRTWebCometStartCallCallback","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var e=c("useReStore")(),f=c("useRTWebCometStartCallCallback")(),g=d("MWThreadKey.bs").useIdMemoizedExn(),i=d("MWLSGetOngoingCallState.bs").useHook(),j=d("MWPActor.bs").useActor();a=h.useCallback(function(a){return function(h,k){var l=a?"video":"audio",m=b("Promise").all([d("ReQL.bs").first(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(e.table("threads")),{hd:g,tl:0})),d("ReQL.bs").first(d("ReQL.bs").map(d("ReQL.bs").filter(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(e.table("participants")),{hd:g,tl:0}),function(a){return c("bs_caml").i64_neq(a.contactId,j)}),function(a){return c("bs_int64").to_string(a.contactId)})),d("ReQL.bs").first(d("ReQL.bs").map(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(e.table("mi_act_mapping_table")),{hd:g,tl:0}),function(a){return a.jid}))]).then(function(a){var g=a[2],j=a[1],m=a[0];if(m!==void 0)return d("ReQL.bs").first(d("MWLSJewelGetOngoingCallData.bs").ongoingCallDataQuery(e,m.threadKey)).then(function(a){return b("Promise").resolve(f({existingCall:i!==void 0&&a!==void 0?{call_state:d("RTCCallState.bs").ofLsRtcCallState(i,m.threadType),initiator_fbid:null,server_info_data:c("bs_js_null_undefined").fromOption(c("bs_caml_option").valFromOption(a))}:null,isE2eeMandated:d("LSMessagingThreadTypeUtil.bs").isSecure(m.threadType),mediaType:l,thread:{e2eeThreadID:c("bs_belt_Option").map(g,function(a){return c("bs_int64").to_string(a)}),id:h,secureOneToOneThreadPeerId:j!==void 0&&c("bs_caml").i64_eq(m.threadType,d("MessagingThreadType.bs").secureMessageOverWaOneToOne)?c("bs_caml_option").some(c("bs_caml_option").valFromOption(j)):void 0,type:c("bs_caml_int64").to_int32(m.threadType)},trigger:k}))});else{c("recoverableViolation")("Cannot find thread when trying to call someone","messenger_web_product");return b("Promise").resolve()}});c("promiseDone")(m,void 0,function(a){c("recoverableViolation")("Error making a phone call","rtc_www",{error:a.Error})})}},[f,g,e,i]);var k=i!==void 0?c("bs_caml").i64_neq(i,c("bs_caml_int64").one)?c("bs_caml").i64_neq(i,[0,2])?void 0:{_0:void 0,TAG:0}:{_0:void 0,TAG:1}:void 0;return[a,k]}g.useMakeRTCCall=a}),98); __d("LSResult.bs",[],(function(a,b,c,d,e,f){"use strict";function a(a){return[a]}f.make=a}),66); __d("C4gEngagementFalcoEvent.bs",["C4gEngagementFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";function a(a){c("C4gEngagementFalcoEvent").log(a)}function b(a){c("C4gEngagementFalcoEvent").logImmediately(a)}g.log=a;g.logImmediately=b}),98); __d("MessengerSurfaceType.bs",[],(function(a,b,c,d,e,f){"use strict";a="MESSENGER";b="WORK_QUIKCHAT";c="WORK_CHAT";f.messenger=a;f.workQuickchat=b;f.workChat=c}),66); __d("LSThreadRemoveType.bs",["bs_caml_int64"],(function(a,b,c,d,e,f){"use strict";a=b("bs_caml_int64").zero;c=b("bs_caml_int64").one;f.deleteThread=a;f.archiveThread=c}),null); __d("LsThreadType.bs",["bs_caml_int64"],(function(a,b,c,d,e,f){"use strict";a=b("bs_caml_int64").zero;c=b("bs_caml_int64").one;d=[0,2];e=[0,3];var g=[0,4],h=[0,5],i=[0,6],j=[0,7],k=[0,8],l=[0,10],m=[0,11],n=[0,12],o=[0,13],p=[0,14],q=[0,15],r=[0,16];b=b("bs_caml_int64").neg_one;var s=[-1,4294967294],t=[0,17],u=[0,18],v=[0,19],w=[0,20],x=[0,21],y=[0,22],z=[0,23],A=[0,24],B=[0,25],C=[0,101],D=[0,102],E=[0,150],F=[0,151],G=[0,152],H=[0,153],I=[0,200];f.unknown=a;f.oneToOne=c;f.group=d;f.room=e;f.montage=g;f.marketplace=h;f.folder=i;f.tincan=j;f.optimisticGroupThread=k;f.carrierMessagingOneToOne=l;f.carrierMessagingGroup=m;f.selfThread=n;f.tincanDisappearing=o;f.pageFollowUp=p;f.secureMessageOverWaOneToOne=q;f.secureMessageOverWaGroup=r;f.armadilloOneToOne=b;f.armadilloGroup=s;f.communityFolder=t;f.communityGroup=u;f.communityGroupUnjoined=v;f.communityChannelCategory=w;f.communityPrivateHiddenJoinedThread=x;f.communityPrivateHiddenUnjoinedThread=y;f.communityBroadcastJoinedThread=z;f.communityBroadcastUnjoinedThread=A;f.communityGroupInvitedUnjoined=B;f.pinned=C;f.lwg=D;f.discoverablePublicChat=E;f.discoverablePublicChatUnjoined=F;f.discoverablePublicBroadcastChat=G;f.discoverablePublicBroadcastChatUnjoined=H;f.xacGroup=I}),null); __d("Promise.bs",["bs_caml_exceptions","bs_curry"],(function(a,b,c,d,e,f){"use strict";var g=b("bs_caml_exceptions").create("Promise.JsError");function a(a,c){return a["catch"](function(a){return b("bs_curry")._1(c,b("bs_caml_exceptions").caml_is_extension(a)?a:{_1:a,RE_EXN_ID:g})})}f.JsError=g;f.$$catch=a}),null);/*FB_PKG_DELIM*/ __d("CometToken.react",["fbt","ix","CometIcon.react","CometPressable.react","CometProfilePhoto.react","TetraText.react","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k={"default":{backgroundColor:"x1hr4nm9",$$css:!0},pressable:{appearance:"xjyslct",backgroundColor:"xjbqb8w",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"x972fbf",borderEndWidth:"xcfux6l",borderBottomWidth:"x1qhh985",borderStartWidth:"xm0m39n",boxSizing:"x9f619",marginTop:"xdj266r",marginEnd:"x11i5rnm",marginBottom:"xat24cr",marginStart:"x1mh8g0r",paddingTop:"xexx8yu",paddingEnd:"x4uap5",paddingBottom:"x18d9i69",paddingStart:"xkhd6sd",position:"x1n2onr6",textAlign:"x16tdsg8",zIndex:"x1ja2u2z",$$css:!0},readonly:{paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",$$css:!0},root:{alignItems:"x6s0dn4",borderTopStartRadius:"xhk9q7s",borderTopEndRadius:"x1otrzb0",borderBottomEndRadius:"x1i1ezom",borderBottomStartRadius:"x1o6z2jb",display:"x3nfvp2",paddingTop:"x889kno",paddingEnd:"x1iji9kk",paddingBottom:"x1a8lsjc",paddingStart:"x1sln4lm",$$css:!0},shrinkVerticalPadding:{paddingBottom:"x10b6aqq",paddingTop:"x1yrsyyn",$$css:!0},shrinkVerticalPaddingLevel4:{paddingBottom:"xjkvuk6",paddingTop:"x1iorvi4",$$css:!0},spacing:{marginEnd:"x1emribx",$$css:!0},suggested:{backgroundColor:"x1qhmfi1",$$css:!0}};function a(a){var b=a.addOn,e=a.addOnSecondary,f=a.disabled,g=a.level;g=g===void 0?3:g;var l=a.onPress,m=a.text;a=a.type;var n=a==="add"||a==="readonly"?"primary":"highlight",o=null,p=null,q=!1,r=!1,s=g===3?"body3":"body4";if(b){switch(b.type){case"text":o=j.jsx(c("TetraText.react"),{color:n,type:s,children:b.value});break;case"profile-photo":g===4?r=!0:q=!0;o=j.jsx(c("CometProfilePhoto.react"),{shape:"circle",size:g===3?24:20,source:{uri:b.source}});break;case"icon":g===4?r=!0:q=!0;o=j.jsx(c("CometIcon.react"),{color:n,icon:b.icon});break}o=j.jsx("div",{"aria-hidden":a==="remove",className:"x1emribx",children:o})}if(e){switch(e.type){case"text":p=j.jsx(c("TetraText.react"),{color:n,type:s,children:e.value});break}p=j.jsx("div",{"aria-hidden":a==="remove",className:"x1emribx",children:p})}s=j.jsx("div",{"aria-hidden":a==="remove",className:""+(a!=="readonly"?" x1emribx":""),children:j.jsx(c("TetraText.react"),{color:n,type:g===3?"bodyLink3":"bodyLink4",children:m})});n=(b==null?void 0:b.type)==="text"?b.value:null;g=(e==null?void 0:e.type)==="text"?e.value:null;b=j.jsxs("div",{className:"x6s0dn4 xhk9q7s x1otrzb0 x1i1ezom x1o6z2jb x3nfvp2"+((q?" x1yrsyyn x10b6aqq":""+(r?" x1iorvi4 xjkvuk6":""+((a==="readonly"?" x1y1aw1k xwib8y2":" x889kno x1a8lsjc")+(a==="add"||a==="readonly"?"":""+(a==="readonly"?"":""+(a!=="add"&&a!=="readonly"?"":""))))))+((a==="readonly"?" x1sxyh0 xurb0ha":" x1iji9kk x1sln4lm")+(a==="add"||a==="readonly"?" x1qhmfi1":""+(a!=="add"&&a!=="readonly"?" x1hr4nm9":"")))),children:[o,s,p,a==="add"?j.jsx(c("CometIcon.react"),{alt:h._("__JHASH__95v9ydXXTuI__JHASH__"),icon:d("fbicon")._(i("483767"),12)}):a!=="readonly"?j.jsx(c("CometIcon.react"),{"aria-label":h._("__JHASH__U1aN33icCWb__JHASH__",[h._param("prefix",n),h._param("token_text",m),h._param("add_on_secondary",g)]),color:"highlight",disabled:f,hideHoverOverlay:r,icon:d("fbicon")._(i("478231"),12),onPress:l,testid:void 0}):null]});return a==="add"?j.jsx(c("CometPressable.react"),{disabled:f,display:"inline",onPress:l,xstyle:k.pressable,children:b}):b}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("mwChatSearchPayloadDecoratorRemoveDuplicates",["MWChatSearchResultType","MWXacGating.bs"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){b===void 0&&(b=!1);return function(e){var f=e.entries;e=babelHelpers.objectWithoutPropertiesLoose(e,["entries"]);var g=a.some(function(a){a=a.rawData;return a.resultType===c("MWChatSearchResultType").USER}),h=a.some(function(a){a=a.rawData;return!a.isInstagramAccount}),i=new Set(),j=new Set();a.forEach(function(a){return j.add(a.key)});b&&a.forEach(function(a){a.rawData.otherUserId!=null&&j.add(a.rawData.otherUserId)});f=f.filter(function(a){var e=a.key;a=a.rawData;if(g&&a.resultType!==c("MWChatSearchResultType").USER)return!1;if(!d("MWXacGating.bs").isGroupsEnabled()&&(h&&Boolean(a.isInstagramAccount)))return!1;a=!i.has(e)&&!j.has(e)&&!(b&&a.otherUserId!=null&&j.has(a.otherUserId));i.add(e);return a});return babelHelpers["extends"]({entries:f},e)}}g["default"]=a}),98); __d("withMWChatSearchTokenManagementDecorator",["MWChatSearchResultType","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useCallback;function a(a){return function(b){var d=b.onChangeEntries,e=b.onPressEntry,f=b.onRemoveEntry,g=b.onSearchCompletion,j=b.selectedEntries;b=babelHelpers.objectWithoutPropertiesLoose(b,["onChangeEntries","onPressEntry","onRemoveEntry","onSearchCompletion","selectedEntries"]);var k=i(function(a){var b=a.rawData.resultType;if(b===c("MWChatSearchResultType").USER){b=[].concat(j,[a]);d(b)}e&&e(a)},[d,e,j]),l=i(function(a){var b;b=((b=j)!=null?b:[]).filter(function(b){return b.key!==a.key});d(b);f&&f(a)},[d,f,j]),m=i(function(){g&&g()},[g]);return h.jsx(a,babelHelpers["extends"]({},b,{onChangeEntries:d,onPressEntry:k,onRemoveEntry:l,onSearchCompletion:m,selectedEntries:j}))}}g["default"]=a}),98); __d("CometTokenizerTokenStrategy.react",["CometToken.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useCallback;function a(a){var b=a.addOn,d=a.addOnSecondary,e=a.isDisabled,f=a.level,g=a.onPress,j=a.token;a=i(function(a){a.preventDefault(),g(j)},[g,j]);return h.jsx(c("CometToken.react"),{addOn:b,addOnSecondary:d,disabled:e,level:f,onPress:a,text:j.label,type:"remove"})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatTokenizerTokenStrategy.react",["CometTokenizerTokenStrategy.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){return h.jsx("div",{"data-testid":void 0,children:h.jsx(c("CometTokenizerTokenStrategy.react"),babelHelpers["extends"]({},a,{level:4}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("withBaseTokenizerEscapeDecorator",["react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useCallback;function a(a,b){var c=b.onSearchAbandon;return function(b){var d=b.onChange,e=b.onEscape,f=b.queryString,g=b.selectedEntries;b=babelHelpers.objectWithoutPropertiesLoose(b,["onChange","onEscape","queryString","selectedEntries"]);var j=i(function(){f!==""?d(""):g.length===0&&(c&&c()),e&&e()},[f,g.length,e,d]);return h.jsx(a,babelHelpers["extends"]({},b,{onChange:d,onEscape:j,queryString:f,selectedEntries:g}))}}g["default"]=a}),98); __d("useBaseTokenizerDecorators",["useStable"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=a.alertDecorator,d=a.escapeDecorator,e=a.limitDecorator,f=a.refetchDecorator,g=a.tokenManagementDecorator;return c("useStable")(function(){return[e,d,g,f,b].filter(Boolean)})}g["default"]=a}),98); __d("CometTokenizerInputStrategyEventListener.react",["fbt","CometComponentWithKeyCommands.react","CometKeys","KeyCommandHandler.react","react","useCometTypeaheadInputHandlers","useCometTypeaheadInputRefs"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useCallback,k=b.useMemo,l={root:{width:"xh8yej3",$$css:!0}};function a(a,b){var d=a.children,e=a.commandConfigs,f=a.isInline,g=a.onBackspace,m=a.onDownArrow,n=a.onEnter,o=a.onEscape,p=a.onShiftTab,q=a.onTab,r=a.onUpArrow;a=babelHelpers.objectWithoutPropertiesLoose(a,["children","commandConfigs","isInline","onBackspace","onDownArrow","onEnter","onEscape","onShiftTab","onTab","onUpArrow"]);var s=k(function(){return[].concat(e,[{command:{key:c("CometKeys").DELETE},description:h._("__JHASH__Cd9YiubQMjf__JHASH__"),handler:function(){return g&&g()},isHiddenCommand:!0,shouldPreventDefault:!1,triggerFromInputs:!0},{command:{key:c("CometKeys").DOWN},description:h._("__JHASH__CqK0EeqSMhz__JHASH__"),handler:function(){return m&&m()},triggerFromInputs:!0},{command:{key:c("CometKeys").UP},description:h._("__JHASH__iUKjo5X2a54__JHASH__"),handler:function(){return r&&r()},triggerFromInputs:!0},{command:{key:c("CometKeys").ESCAPE},description:h._("__JHASH__wwSVh79-oc2__JHASH__"),handler:function(){return o&&o()},triggerFromInputs:!0},{command:{key:c("CometKeys").ENTER},description:h._("__JHASH__mihpnKYilqe__JHASH__"),handler:function(){return n&&n()},triggerFromInputs:!0},{command:{key:c("CometKeys").TAB},description:h._("__JHASH__Z6s23TRj9Pk__JHASH__"),handler:function(){return q&&q()},isHiddenCommand:!0,shouldPreventDefault:!1,shouldStopPropagation:!1,triggerFromInputs:!0},{command:{key:c("CometKeys").TAB,shift:!0},description:h._("__JHASH__Z6s23TRj9Pk__JHASH__"),handler:function(){return p&&p()},isHiddenCommand:!0,shouldPreventDefault:!1,shouldStopPropagation:!1,triggerFromInputs:!0}])},[e,g,m,n,o,p,q,r]);b=c("useCometTypeaheadInputRefs")(b);var t=b.composedRef;b=b.inputRef;b=c("useCometTypeaheadInputHandlers")(babelHelpers["extends"]({inputRef:b},a));a=j(function(a){a.key==="Tab"&&(!a.shiftKey?q&&q():p&&p())},[q,p]);return i.jsx(c("CometComponentWithKeyCommands.react"),{commandConfigs:s,elementType:f===!0?"span":"div",xstyle:l.root,children:i.jsx(c("KeyCommandHandler.react"),{onKeyDown:a,children:d(t,b)})})}a.displayName=a.name+" [from "+f.id+"]";e=i.forwardRef(a);g["default"]=e}),98); __d("CometTokenizerInputWidthResolver.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useLayoutEffect,j=b.useRef,k=b.useState;function a(a){var b=a.children,c=a.placeholder;c=c===void 0?"":c;a=a.queryString;var d=k(0),e=d[0],f=d[1],g=j(null);d=a!==""?a:c;i(function(){g.current&&f(g.current.offsetWidth)},[d]);return h.jsxs(h.Fragment,{children:[h.jsx("span",{"aria-hidden":"true",className:"x1jchvi3 x1xgp4w4 x1owdmkh x10l6tqk x17qophe x13vifvy xlshs6z xuxw1ft",ref:g,children:d}),b(e)]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometTokenizerInputStrategy.react",["BaseTextInput_DEPRECATED.react","CometTokenizerInputWidthResolver.react","cometTypeaheadInputWebkitStyles","react","stylex","useCometTypeaheadInputStrategyOnChangeHandler","useCometUniqueID"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={disabled:{cursor:"x1h6gzvc",$$css:!0},input:{backgroundColor:"xjbqb8w",borderTop:"x76ihet",borderEnd:"xwmqs3e",borderBottom:"x112ta8",borderStart:"xxxdfa6",boxSizing:"x9f619",color:"xzsf02u",display:"xt0psk2",fontSize:"x1jchvi3",fontWeight:"x1fcty0u",lineHeight:"x132q4wb",marginTop:"x1xmf6yo",marginEnd:"x1emribx",marginBottom:"x1e56ztr",marginStart:"x1i64zmx",maxWidth:"x193iq5w",outline:"x1a2a7pz",resize:"xtt52l0",$$css:!0},root:{cursor:"x1ed109x",maxWidth:"x193iq5w",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0}};function a(a,b){var d=a.ariaProps;a.description;a.errorMessage;var e=a.id,f=a.inputEndContent,g=a.inputStartContent,j=a.inputExtraProps;j=j===void 0?{}:j;var k=j.xstyle,l=a.isDisabled;a.label;j=a.onChange;var m=a.placeholder,n=a.queryString,o=a.testid,p=a.autoFocus,q=babelHelpers.objectWithoutPropertiesLoose(a,["ariaProps","description","errorMessage","id","inputEndContent","inputStartContent","inputExtraProps","isDisabled","label","onChange","placeholder","queryString","testid","autoFocus"]),r=(o=e)!=null?o:c("useCometUniqueID")(),s=c("useCometTypeaheadInputStrategyOnChangeHandler")({onChange:j});return h.jsxs("div",{className:"x193iq5w x6ikm8r x10wlt62"+(l===!0?" x1h6gzvc":" x1ed109x"),children:[g,h.jsx(c("CometTokenizerInputWidthResolver.react"),{placeholder:m,queryString:n,children:function(a){var e;return h.jsx(c("BaseTextInput_DEPRECATED.react"),babelHelpers["extends"]({},d,q,{autoComplete:"off",autoFocus_PLEASE_USE_FOCUS_REGION_INSTEAD:p,className:c("stylex")(i.input,k,c("cometTypeaheadInputWebkitStyles")["default"]),"data-testid":void 0,disabled:l,id:r,onChange:s,placeholder:(e=m)!=null?e:"",ref:b,spellCheck:!1,style:{width:a},type:"search",value:n}))}}),f]})}a.displayName=a.name+" [from "+f.id+"]";b=h.forwardRef(a);g["default"]=b}),98); __d("useCometTokenizerLayoutStrategyOnBackspaceHandler",["react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useCallback;function a(a){var b=a.inputRef,c=a.onBackspace,d=a.onRemoveEntry,e=a.selectedEntries;return h(function(){var a=b.current;if(a!=null&&a.selectionStart===0&&a.selectionEnd===0){a=e.length-1;a>=0&&d(e[a])}c&&c()},[b,c,e,d])}g["default"]=a}),98); __d("useCometTokenizerLayoutStrategyOnEnterHandler",["react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useCallback;function a(a){var b=a.onEnter;return h(function(){b&&b()},[b])}g["default"]=a}),98); __d("useCometTokenizerLayoutStrategyOnPressEntryHandler",["react","useCometInternalTypeaheadStateDispatcher"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useCallback;function a(a){var b=a.inputRef,d=a.onChange,e=a.onPressEntry;a=c("useCometInternalTypeaheadStateDispatcher")();var f=a.dispatchHighlightedEntry,g=b.current;return h(function(a,b){g!=null&&(g.value="",g.focus()),f({entry:null,source:null}),d(""),e&&e(a,b)},[g,f,d,e])}g["default"]=a}),98); __d("CometTokenizerInternalLayoutContextualStrategy.react",["fbt","CometContextualLayer.react","CometHeroHoldTrigger.react","CometTokenizerInputStrategyEventListener.react","CometTypeaheadViewStrategyEventListener.react","FocusRegion.react","cometHandleHighlightDropOnMouseLeave","emptyFunction","focusScopeQueries","intlList","react","stylex","useCometAccessibilityAlerts","useCometInternalTypeaheadState","useCometTypeaheadInputRefs","useResizeObserver"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useEffect,k=b.useRef,l={helperText:{marginTop:"x1xmf6yo",$$css:!0},view:{backgroundColor:"x1jx94hy",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",boxShadow:"xbsqzb3",boxSizing:"x9f619",display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",marginTop:"xr9ek0c",width:"xh8yej3",$$css:!0}},m="ChatTypeahead";function a(a){var b=a.contextualProps;b=b===void 0?{}:b;var e=b.align;e=e===void 0?"stretch":e;var f=b.position;f=f===void 0?"below":f;var g=babelHelpers.objectWithoutPropertiesLoose(b,["align","position"]),n=a.description;b=a.extraLayoutProps;var o=b.ariaProps,p=o.ariaDescribedByProps,q=o.ariaInputProps,r=o.ariaViewProps;o=b.helperTextComponent;var s=b.isLoading;b=b.isOpened;var t=a.errorMessage,u=a.commandConfigs,v=a.selectedEntries,w=a.inputStrategyRenderer,x=a.isDisabled,y=a.label,z=a.layerContext;z=z===void 0?"root":z;var A=a.onBackspace,B=a.onBlur,C=a.onChange,D=a.onClick,E=a.onDownArrow,F=a.onEnter,G=a.onEscape,H=a.onFocus,I=a.onShiftTab,J=a.onTab,K=a.onUpArrow,L=a.queryString,M=a.inputRef,N=a.tokensStrategyRenderer,O=a.viewStrategyRenderer,P=a.xstyles,Q=babelHelpers.objectWithoutPropertiesLoose(a,["contextualProps","description","extraLayoutProps","errorMessage","commandConfigs","selectedEntries","inputStrategyRenderer","isDisabled","label","layerContext","onBackspace","onBlur","onChange","onClick","onDownArrow","onEnter","onEscape","onFocus","onShiftTab","onTab","onUpArrow","queryString","inputRef","tokensStrategyRenderer","viewStrategyRenderer","xstyles"]);a=c("useCometTypeaheadInputRefs")(M);M=a.composedRef;a=a.inputRef;var R=k(null),S=k(null),T=c("useResizeObserver")(function(){S.current!=null&&S.current.reposition({autoflip:!g.disableAutoFlip})}),U=c("useCometInternalTypeaheadState")(),V=U.activeEntries,W=U.highlightedEntry;U=z==="input"?a.current:R.current;var X=c("cometHandleHighlightDropOnMouseLeave")(Q.onHighlightEntry);z=c("useCometAccessibilityAlerts")();a=z[0];var Y=z[1],Z=k();j(function(){var a,b=(a=Z.current)!=null?a:[];if(v&&b.lengthv.length){a=b.filter(function(a){return!v.includes(a)});Y(h._("__JHASH__E2ufigyYww2__JHASH__",[h._param("entries",c("intlList")(a.map(function(a){return a.label}),c("intlList").CONJUNCTIONS.AND).toString())]))}Z.current=v},[v,Y]);return i.jsxs(i.Fragment,{children:[i.jsx("div",{className:c("stylex")(P==null?void 0:P.layoutXStyle),ref:R,children:i.jsxs("div",{className:c("stylex")(P==null?void 0:P.inputXStyle),onClick:D,ref:T,role:"presentation",children:[a,i.jsx(d("FocusRegion.react").FocusRegion,{recoverFocusQuery:d("focusScopeQueries").tabbableScopeQuery,children:i.jsx(c("CometTokenizerInputStrategyEventListener.react"),{commandConfigs:u,onBackspace:A,onBlur:B,onChange:C,onClick:c("emptyFunction"),onDownArrow:E,onEnter:F,onEscape:G,onFocus:H,onShiftTab:I,onTab:J,onUpArrow:K,ref:M,children:function(a,b){return i.jsx(w,babelHelpers["extends"]({},b,{ariaProps:q,autoFocus:Q.autoFocus,description:n,errorMessage:t,id:Q.id,inputEndContent:Q.inputEndContent,inputExtraProps:Q.inputExtraProps,inputStartContent:v.length>0?i.jsx(N,{isDisabled:x,onPress:Q.onRemoveEntry,tokens:v}):null,isDisabled:x,label:y,placeholder:Q.placeholder,queryString:L,ref:a,testid:void 0}))}})})]})}),o!=null&&i.jsx("div",babelHelpers["extends"]({className:"x1xmf6yo"},p,{children:o})),i.jsx(c("CometHeroHoldTrigger.react"),{description:m,hold:!(U!=null&&b!==!1)||U!=null&&b!==!1&&V.length===0}),U&&b&&i.jsx(c("CometContextualLayer.react"),babelHelpers["extends"]({},g,{align:e,context_DEPRECATED:U,position:f,ref:S,children:i.jsx(c("CometTypeaheadViewStrategyEventListener.react"),{onOutsideClick:Q.onOutsideClick,children:function(a){return i.jsxs("div",{className:c("stylex")([l.view,P==null?void 0:P.viewXStyle_DO_NOT_USE]),onMouseLeave:X,ref:a,children:[i.jsx(O,{ariaProps:r,entries:V,extraViewProps:Q.extraViewProps,highlightedEntry:W,isLoading:s,onHighlightEntry:Q.onHighlightEntry,onPressEntry:Q.onPressEntry,queryString:L}),i.jsx(c("CometHeroHoldTrigger.react"),{description:m,hold:s&&V.length===0})]})}})}))]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useCometTokenizerInternalLayoutInlineStrategyHandlers",["react","useCometTokenizerLayoutStrategyOnBackspaceHandler","useCometTokenizerLayoutStrategyOnEnterHandler","useCometTokenizerLayoutStrategyOnPressEntryHandler","useCometTypeaheadLayoutStrategyOnBlurHandler","useCometTypeaheadLayoutStrategyOnChangeHandler","useCometTypeaheadLayoutStrategyOnDownArrowHandler","useCometTypeaheadLayoutStrategyOnHighlightEntryHandler","useCometTypeaheadLayoutStrategyOnOutsideClickHandler","useCometTypeaheadLayoutStrategyOnUpArrowHandler"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useCallback;function a(a){var b=a.handlers,d=b.onBackspace,e=b.onBlur,f=b.onChange,g=b.onDownArrow,i=b.onEnter,j=b.onEscape,k=b.onHighlightEntry,l=b.onOutsideClick,m=b.onPressEntry,n=b.onRemoveEntry;b=b.onUpArrow;var o=a.inputRef;a=a.selectedEntries;k=c("useCometTypeaheadLayoutStrategyOnHighlightEntryHandler")({onHighlightEntry:k});d=c("useCometTokenizerLayoutStrategyOnBackspaceHandler")({inputRef:o,onBackspace:d,onRemoveEntry:n,selectedEntries:a});a=c("useCometTypeaheadLayoutStrategyOnBlurHandler")({onBlur:e});var p=c("useCometTypeaheadLayoutStrategyOnChangeHandler")({onChange:f,onHighlightEntry:k});e=c("useCometTypeaheadLayoutStrategyOnDownArrowHandler")({onDownArrow:g,onHighlightEntry:k});g=c("useCometTokenizerLayoutStrategyOnEnterHandler")({onEnter:i});i=h(function(){p(""),j&&j()},[p,j]);f=c("useCometTokenizerLayoutStrategyOnPressEntryHandler")({inputRef:o,onChange:f,onPressEntry:m});m=c("useCometTypeaheadLayoutStrategyOnOutsideClickHandler")({inputRef:o,onOutsideClick:l});o=c("useCometTypeaheadLayoutStrategyOnUpArrowHandler")({onHighlightEntry:k,onUpArrow:b});return{onBackspace:d,onBlur:a,onChange:p,onDownArrow:e,onEnter:g,onEscape:i,onHighlightEntry:k,onOutsideClick:m,onPressEntry:f,onRemoveEntry:n,onUpArrow:o}}g["default"]=a}),98); __d("useCometTokenizerInternalLayoutContextualStrategyHandlers",["react","useBaseTypeaheadLayoutContextualStrategyStateContext","useCometInternalTypeaheadStateDispatcher","useCometTokenizerInternalLayoutInlineStrategyHandlers"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useCallback;function a(a){var b=a.handlers,d=b.onAbandonTypeahead_DO_NOT_USE,e=b.onClick,f=b.onOutsideClick,g=b.onShiftTab,i=b.onTab;b=babelHelpers.objectWithoutPropertiesLoose(b,["onAbandonTypeahead_DO_NOT_USE","onClick","onOutsideClick","onShiftTab","onTab"]);var j=a.inputRef,k=a.isDisabled,l=a.queryString;a=a.selectedEntries;var m=c("useBaseTypeaheadLayoutContextualStrategyStateContext")(),n=m.dispatchIsOpened,o=m.isOpened;m=c("useCometInternalTypeaheadStateDispatcher")();var p=m.dispatchActiveEntries,q=m.dispatchHighlightedEntry;m=h(function(){n(!1),f&&f()},[n,f]);m=c("useCometTokenizerInternalLayoutInlineStrategyHandlers")({handlers:babelHelpers["extends"]({onOutsideClick:m},b),inputRef:j,selectedEntries:a});var r=m.onBackspace;b=m.onBlur;var s=m.onChange,t=m.onDownArrow,u=m.onEnter,v=m.onEscape;a=m.onHighlightEntry;var w=m.onOutsideClick,x=m.onPressEntry,y=m.onRemoveEntry,z=m.onUpArrow;m=h(function(){n(!1),d&&d()},[n,d]);var A=h(function(){l.length===0&&n(!1),r&&r()},[n,r,l.length]),B=h(function(a){n(!0),s&&s(a)},[n,s]),C=h(function(){!o&&!Boolean(k)&&n(!0),j.current&&j.current.focus(),e&&e()},[o,k,j,e,n]),D=h(function(){n(!1),q({entry:null,source:null}),p([]),u&&u()},[p,q,n,u]),E=h(function(){n(!1),v&&v()},[n,v]),F=h(function(){o?t&&t():n(!0)},[n,o,t]),G=h(function(a,b){n(!1),p([]),x&&x(a,b)},[p,n,x]),H=h(function(a){n(!1),y&&y(a)},[n,y]),I=h(function(){n(!1),g&&g()},[n,g]),J=h(function(){n(!1),i&&i()},[n,i]),K=h(function(){!o?n(!0):z&&z()},[n,o,z]);return{onAbandonTypeahead_DO_NOT_USE:m,onBackspace:A,onBlur:b,onChange:B,onClick:C,onDownArrow:F,onEnter:D,onEscape:E,onHighlightEntry:a,onOutsideClick:w,onPressEntry:G,onRemoveEntry:H,onShiftTab:I,onTab:J,onUpArrow:K}}g["default"]=a}),98); __d("CometTokenizerTokenListStrategy.react",["fbt","CometFocusTable.react","focusScopeQueries","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){var b=a.isDisabled,c=a.onPress,e=a.tokens,f=a.tokenStrategyRenderer;return i.jsx(d("CometFocusTable.react").CometFocusTable,{elementType:"span",label:h._("__JHASH__JsJP4UWjJGj__JHASH__"),tabScopeQuery:d("focusScopeQueries").tabbableScopeQuery,wrapXToNextLine:!0,wrapY:!0,children:e.map(function(a,e){return i.jsx(d("CometFocusTable.react").CometFocusRow,{children:i.jsx("div",{className:"x1rg5ohu x1gslohp xw3qccf x12nagc xsgj6o6",role:"row",children:i.jsx(d("CometFocusTable.react").CometFocusCell,{children:i.jsx("span",{role:"gridcell",children:i.jsx(f,{isDisabled:b,onPress:c,token:a})})})})},e)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useCometTokenizerListTokenStrategy",["CometTokenizerTokenListStrategy.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useCallback;function a(a){var b=a.tokenItemRenderer;a=a.tokenListRenderer;var d=a===void 0?c("CometTokenizerTokenListStrategy.react"):a;return i(function(a){a=babelHelpers["extends"]({},a);return h.jsx(d,babelHelpers["extends"]({tokenStrategyRenderer:b},a))},[b,d])}g["default"]=a}),98); __d("CometInternalTokenizerFetchContext",["emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b=a.createContext({fetch:c("emptyFunction"),isLoading:!1,refetch:c("emptyFunction"),source:"all"});g["default"]=b}),98); __d("useCometInternalTokenizerFetch",["CometInternalTokenizerFetchContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useContext;function a(){return h(c("CometInternalTokenizerFetchContext"))}g["default"]=a}),98); __d("useCometInternalTokenizerFetchHandler",["react","useBaseTypeaheadLayoutContextualStrategyStateContext","useCometInternalTokenizerFetch","useCometInternalTypeaheadState"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useCallback,i=b.useEffect;function a(a){var b=a.loggingProvider,d=a.queryString,e=a.selectedTokens,f=a.traceProvider;a=c("useBaseTypeaheadLayoutContextualStrategyStateContext")();var g=a.isOpened;a=c("useCometInternalTypeaheadState")();var j=a.activeEntries;a=c("useCometInternalTokenizerFetch")();var k=a.fetch;a=h(function(){function a(a,c){var d=null;b!=null&&(d=b.addEvent({action:"keystroke",entries:j,queryString:a},"useCometInternalTypeaheadFetchHandler"));d=d!=null?{loggingEventTrace:d,perfTraceAPI:c,query:a,selectedTokens:e}:{perfTraceAPI:c,query:a,selectedTokens:e};k(d)}var c=d.trimLeft();if(!g)return;f?f.trace(function(b){return a(c,b)},c):a(c)},[j,k,g,b,d,e,f]);i(a,[g,d,e])}g["default"]=a}),98); __d("useCometInternalTypeaheadOnBlurLoggingHandler",["react","useCometInternalTypeaheadState"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useCallback;function a(a){var b=a.loggingProvider,d=a.onBlur,e=a.queryString;a=c("useCometInternalTypeaheadState")();var f=a.activeEntries;return h(function(){b!=null&&b.isSessionActive()&&(b.addEvent({action:"abandon",entries:f,queryString:e},"useCometInternalTypeaheadOnBlurLoggingHandler"),b.endSession()),d&&d()},[f,b,d,e])}g["default"]=a}),98); __d("CometTokenizerInternal.react",["emptyFunction","react","useBaseTypeaheadLayoutContextualStrategyStateContext","useCometInternalTokenizerFetchHandler","useCometInternalTypeaheadOnAbandonLoggingHandler","useCometInternalTypeaheadOnBlurLoggingHandler","useCometInternalTypeaheadOnEnterLoggingHandler","useCometInternalTypeaheadOnFocusLoggingHandler","useCometInternalTypeaheadOnPressEntryLoggingHandler","useCometInternalTypeaheadState","useCometInternalTypeaheadStateDispatcher","useCometTypeaheadInputRefs"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useCallback;function a(a){var b=a.inputRef,d=a.layoutStrategyRenderer,e=a.loggingProvider,f=a.onBlur,g=a.onChange,j=a.onEnter,k=a.onFocus,l=a.onPressEntry,m=a.onSearchCompletion,n=a.onSelectFreeformQuery,o=a.onShiftTab,p=a.onTab,q=a.queryString,r=a.selectedEntries,s=a.traceProvider;a=babelHelpers.objectWithoutPropertiesLoose(a,["inputRef","layoutStrategyRenderer","loggingProvider","onBlur","onChange","onEnter","onFocus","onPressEntry","onSearchCompletion","onSelectFreeformQuery","onShiftTab","onTab","queryString","selectedEntries","traceProvider"]);b=c("useCometTypeaheadInputRefs")(b);var t=b.composedRef,u=b.inputRef;b=c("useCometInternalTypeaheadState")();var v=b.highlightedEntry,w=b.highlightedEntrySource;b=c("useCometInternalTypeaheadStateDispatcher")();var x=b.dispatchHighlightedEntry;b=c("useBaseTypeaheadLayoutContextualStrategyStateContext")();var y=b.dispatchIsOpened;c("useCometInternalTokenizerFetchHandler")({loggingProvider:e,queryString:q,selectedTokens:r,traceProvider:s});b=c("useCometInternalTypeaheadOnBlurLoggingHandler")({loggingProvider:e,onBlur:f,queryString:q});s=c("useCometInternalTypeaheadOnFocusLoggingHandler")({loggingProvider:e,onFocus:k,queryString:q});f=c("useCometInternalTypeaheadOnEnterLoggingHandler")({loggingProvider:e,onEnter:i(function(){if(v!=null&&w==="keyboard")u.current&&u.current.focus(),l&&l(v);else{var a;a=(a=u.current)==null?void 0:a.value;if(a==="")m&&m();else{n&&n((a=a)!=null?a:"")}}x({entry:null,source:null});g("");j&&j()},[v,w,x,g,j,u,l,m,n]),queryString:q});k=c("useCometInternalTypeaheadOnPressEntryLoggingHandler")({loggingProvider:e,onPressEntry:l,queryString:q});var z=c("useCometInternalTypeaheadOnAbandonLoggingHandler")({callback:i(function(){y(!1),o&&o()},[y,o]),loggingProvider:e,queryString:q}),A=c("useCometInternalTypeaheadOnAbandonLoggingHandler")({callback:i(function(){y(!1),p&&p()},[y,p]),loggingProvider:e,queryString:q}),B=c("useCometInternalTypeaheadOnAbandonLoggingHandler")({callback:c("emptyFunction"),loggingProvider:e,queryString:q});e=c("useCometInternalTypeaheadOnAbandonLoggingHandler")({callback:c("emptyFunction"),loggingProvider:e,queryString:q});return h.jsx(d,babelHelpers["extends"]({},a,{inputRef:t,onAbandonTypeahead_DO_NOT_USE:e,onBlur:b,onChange:g,onClick:c("emptyFunction"),onEnter:f,onFocus:s,onOutsideClick:B,onPressEntry:k,onShiftTab:z,onTab:A,queryString:q,selectedEntries:r}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);/*FB_PKG_DELIM*/ __d("useCometFeedStoryMatchDebugger_iCometStorySection.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useCometFeedStoryMatchDebugger_iCometStorySection",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_prod_eligible",storageKey:null}],type:"ICometStorySection",abstractKey:"__isICometStorySection"};e.exports=a}),null); __d("CometStickerPickerFlyoutTagSelectorRootQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6992742624133199"}),null); __d("CometStickerPickerFlyoutTagSelectorRootQuery$Parameters",["CometStickerPickerFlyoutTagSelectorRootQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("CometStickerPickerFlyoutTagSelectorRootQuery_facebookRelayOperation"),metadata:{},name:"CometStickerPickerFlyoutTagSelectorRootQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("CometLayout.react",["react","stylex","testID"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={container:{display:"x78zum5",flexDirection:"xdt5ytf",minHeight:"x1t2pt76",$$css:!0},contentArea:{display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",minHeight:"x1t2pt76",minWidth:"xeuugli",$$css:!0}};function a(a){var b=a.children,d=a.containerXStyle,e=a.contentXStyle;a=a.testid;return h.jsx("div",babelHelpers["extends"]({className:c("stylex")(i.container,d)},c("testID")(a),{children:h.jsx("div",{className:c("stylex")(i.contentArea,e),children:b})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("UFI2UserActivityIdleTimeout",[],(function(a,b,c,d,e,f){"use strict";a=3e4;f["default"]=a}),66); __d("CometUserActivityMonitor",["ErrorGuard","ExecutionEnvironment","SubscriptionsHandler","UFI2UserActivityIdleTimeout","UserActivity","Visibility"],(function(a,b,c,d,e,f,g){"use strict";var h=[],i=!1,j=c("ExecutionEnvironment").canUseDOM&&c("UserActivity").isOnTab()&&c("UserActivity").isActive(c("UFI2UserActivityIdleTimeout"))?"ACTIVE":"INACTIVE",k=[],l;function m(a){i=!0;k.push.apply(k,h);var b=function(){var b=k.shift();c("ErrorGuard").applyWithGuard(function(){return b(a)},null,[],{name:"CometUserActivityMonitor"})};while(k.length)b();i=!1}function n(a){var b=j;j=a;b!==a&&m(a)}function a(){return j}d=function(){l==null&&(l=new(c("SubscriptionsHandler"))(),l.addSubscriptions(c("UserActivity").subscribe(function(a,b){a=b.event;if(/^mouse(enter|leave|move|over|out)$/.test(a.type)&&c("UserActivity").isOnTab()===!1)return;n("ACTIVE")}),function(){var a=function(){n("INACTIVE")};window.addEventListener("blur",a,{passive:!0});return{remove:function(){return window.removeEventListener(a,{passive:!0})}}}(),c("Visibility").addListener(c("Visibility").HIDDEN,function(){n("INACTIVE")})))};function b(a){h.push(a);i&&k.push(a);var b=!1;return{remove:function(){if(b)return;var c=h.indexOf(a);c!==-1&&h.splice(c,1);if(i){c=k.indexOf(a);c!==-1&&k.splice(c,1)}b=!0}}}c("ExecutionEnvironment").canUseDOM&&d();g.getActivityState=a;g.init=d;g.subscribe=b}),98); __d("CometVPVDUserActivityMonitor",["CometUserActivityMonitor"],(function(a,b,c,d,e,f,g){"use strict";a={isUserActive:function(){return d("CometUserActivityMonitor").getActivityState()==="ACTIVE"},subscribe:function(a){var b=d("CometUserActivityMonitor").subscribe(function(b){b=b==="ACTIVE";a&&a(b)});return function(){b&&b.remove()}}};g["default"]=a}),98); __d("isIntersectionObserverEntryVPVDVisible",["intersectionObserverEntryIsIntersecting"],(function(a,b,c,d,e,f,g){"use strict";var h=200,i={height:0};function a(a,b){b===void 0&&(b=h);var d=c("intersectionObserverEntryIsIntersecting")(a);if(d===!1)return!1;d=a.boundingClientRect;var e=a.intersectionRect,f=a.rootBounds;d=d||i;e=e||i;f=f||i;return e.height>=b||e.height>=f.height/2||e.height===d.height||a.intersectionRatio>.95}g["default"]=a}),98); __d("vpvdConstants",[],(function(a,b,c,d,e,f){"use strict";a=250;b=200;f.DEFAULT_MIN_VISIBLE_TIME_MS=a;f.DEFAULT_MIN_VISIBLE_PX=b}),66); __d("useVPVDImpression",["CometVPVDUserActivityMonitor","cr:921407","isIntersectionObserverEntryVPVDVisible","react","useVisibilityObserver","vpvdConstants"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useCallback;function a(a){var e=a.isLite,f=a.minVisiblePx;f=f===void 0?d("vpvdConstants").DEFAULT_MIN_VISIBLE_PX:f;var g=a.minVisibleTimeMs,i=g===void 0?d("vpvdConstants").DEFAULT_MIN_VISIBLE_TIME_MS:g,j=a.onVPVDEnd;g=a.onVPVDStart;a=b("cr:921407")();var k=a[0];a=a[1];var l=h(function(a){if(a.visibleDurationc?g(c,d):b("intlNumUtils").formatNumberWithThousandDelimiters(a,d)}function d(a,c,d){return a=e.length)break;h=e[g++]}else{g=e.next();if(g.done)break;h=g.value}h=h;var i=h&&h.getLinkedRecord("node");if(i==null){c&&c("Edge at index "+a.indexOf(h)+" has no node.");continue}if(i.getDataID()===b){d=!0;break}}return d}f["default"]=a}),66); __d("useThrottled",["useThrottledImpl"],(function(a,b,c,d,e,f,g){"use strict";f.exports=c("useThrottledImpl")}),34); __d("filterMap",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){var c=new Map();for(var a=a,d=Array.isArray(a),e=0,a=d?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=a.length)break;f=a[e++]}else{e=a.next();if(e.done)break;f=e.value}f=f;var g=f[0];f=f[1];b(f,g)&&c.set(g,f)}return c}f["default"]=a}),66); __d("PageGreenDotImpressionFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("166");c=b("FalcoLoggerInternal").create("page_green_dot_impression",a);e.exports=c}),null); __d("useOnBeforeUnload",["cr:1073372"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=b("cr:1073372")}),98); __d("useOnBeforeUnloadComet",["CometRouterRouteMutableStateContext","FBLogger","react","removeFromArray","useDynamicCallbackDANGEROUS"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useContext,i=b.useEffect;function a(a){var b=h(c("CometRouterRouteMutableStateContext")),d=c("useDynamicCallbackDANGEROUS")(a);i(function(){if(b){b.unloadHooks==null&&(b.unloadHooks=[]);b.unloadHooks.push(d);return function(){b.unloadHooks!=null&&c("removeFromArray")(b.unloadHooks,d)}}else{c("FBLogger")("useOnBeforeUnload").blameToPreviousFrame().warn("Attempting to add onBeforeUnload hook with invalid context");return}},[d,b])}g["default"]=a}),98); __d("LiveEventUtils.react",["unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){b===void 0&&(b="Got unexpected null or undefined");if(a==null)throw c("unrecoverableViolation")(b,"live_events");return a}g.nullthrows=a}),98);/*FB_PKG_DELIM*/ __d("BaseContainerQueryElement.react",["react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={root:{boxSizing:"x9f619",flexShrink:"x2lah0s",position:"x1n2onr6",$$css:!0}};function a(a,b){var d=a.breakpoint,e=a.inverseToContainer;e=e===void 0?!1:e;var f=a.maxWidth,g=a.minWidth,j=a.xstyle;a=babelHelpers.objectWithoutPropertiesLoose(a,["breakpoint","inverseToContainer","maxWidth","minWidth","xstyle"]);d=d-.1;return h.jsx("div",babelHelpers["extends"]({},a,{className:c("stylex")(i.root,j),ref:b,style:{maxWidth:f,minWidth:g,width:e?"calc(("+d+"px - 100%) * 9999)":"calc((100% - "+d+"px) * 9999)"}}))}a.displayName=a.name+" [from "+f.id+"]";b=h.forwardRef(a);g["default"]=b}),98); __d("CometFacepile.react",["fbt","ix","BaseContainerQueryElement.react","CometComponentWithKeyCommands.react","CometIcon.react","CometKeys","CometPressable.react","CometProfilePhoto.react","CometTooltip.react","FocusGroup.react","ReactDOMComet","TetraText.react","fbicon","focusScopeQueries","react","useCometUniqueID","useIntersectionObserver"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");b=d("react");var k=b.useCallback,l=b.useRef,m=b.useState;e=d("FocusGroup.react").createFocusGroup(d("focusScopeQueries").tabbableScopeQuery);var n=e[0],o=e[1],p=4,q=6,r=-4,s={item:{position:"x1n2onr6",$$css:!0},items:{display:"x78zum5",flexDirection:"x1q0g3np",marginTop:"xhsvlbd",marginBottom:"x16pr9af",overflowX:"x6ikm8r",paddingTop:"x889kno",paddingBottom:"x1a8lsjc",position:"x1n2onr6",$$css:!0},itemWithActivity:{marginStart:"x1mnrxsn",$$css:!0},itemWithSpacing:{marginStart:"xsgj6o6",$$css:!0},overflow24:{height:"xxk0z11",width:"xvy4d1p",$$css:!0},overflow32:{height:"x10w6t97",width:"x1td3qas",$$css:!0},overflow40:{height:"x1vqgdyp",width:"x100vrsf",$$css:!0},overflow48:{height:"xsdox4t",width:"x1useyqa",$$css:!0},overflowItem:{alignItems:"x6s0dn4",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",display:"x78zum5",flexShrink:"x2lah0s",justifyContent:"xl56j7k",pointerEvents:"x71s49j",$$css:!0},overflowItemBg:{fill:"x1wnuiir",$$css:!0},overflowItemContainer:{bottom:"x1jn9clo",display:"x78zum5",end:"xds687c",flexDirection:"x1q0g3np",pointerEvents:"x47corl",position:"x10l6tqk",start:"x17qophe",top:"x1eu8d0j",$$css:!0},overflowItemOverlay:{fill:"x1wnuiir",opacity:"xg01cxk",transitionDuration:"x1ebt8du",transitionProperty:"x19991ni",transitionTimingFunction:"x1dhq9h",$$css:!0},overflowItemOverlayHovered:{fill:"x4bmajx",opacity:"x1hc1fzr",transitionDuration:"x1mq3mr6",$$css:!0},overflowItemOverlayPressed:{fill:"x1tgjyoi",opacity:"x1hc1fzr",transitionDuration:"x1mq3mr6",$$css:!0},overflowItemSVG:{bottom:"x1ey2m1c",end:"xds687c",position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",$$css:!0},overlappingItem:{marginStart:"x139jcc6",$$css:!0},pressableItem:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",display:"x1lliihq",$$css:!0},root:{display:"x78zum5",flexDirection:"xdt5ytf",$$css:!0},rootInline:{alignItems:"x6s0dn4",flexDirection:"x1q0g3np",$$css:!0},text:{paddingTop:"xz9dl7a",$$css:!0},textInline:{paddingStart:"x1e558r4",paddingTop:"xexx8yu",$$css:!0},wrapper:{paddingEnd:"xn6708d",paddingStart:"x1swvt13",paddingTop:"xyamay9",$$css:!0}};function a(a){var b=a.items,e=a.isOverlapping,f=e===void 0?!1:e;e=a.isTextInline;e=e===void 0?!1:e;var g=a.count,i=g===void 0?b.length:g;g=a.ellipsisTooltip;var k=a.linkProps,m=a.onPress,w=a.size,x=a.testid;x=a.testOnly_pressed;var y=x===void 0?!1:x;x=a.text;a=a.withWrapper;var z=b.some(function(a){return a.addOn!=null}),A=b.some(function(a){return((a=a.addOn)==null?void 0:a.type)==="activityBadge"}),B=f?r:A?q:p,C=Math.min(i,b.length,e?3:Infinity),D=l(null),E=c("useCometUniqueID")(),F=[{command:{key:c("CometKeys").LEFT},description:h._("__JHASH__m_OLWX7kM2N__JHASH__"),handler:function(){}},{command:{key:c("CometKeys").RIGHT},description:h._("__JHASH__XPwbX58ULdf__JHASH__"),handler:function(){}}];z=j.jsxs("div",{className:"x78zum5 x1q0g3np xhsvlbd x16pr9af x6ikm8r x889kno x1a8lsjc x1n2onr6",ref:D,role:"row",children:[b.slice(0,C).map(function(a,b){var d=a.containerComponent,e=a.linkProps,g=a.onPress,h=a.testOnly_pressed;a=babelHelpers.objectWithoutPropertiesLoose(a,["containerComponent","linkProps","onPress","testOnly_pressed"]);return j.jsxs(j.Fragment,{children:[j.jsx(c("BaseContainerQueryElement.react"),{breakpoint:(b+1)*(w+B)-B,inverseToContainer:!0,maxWidth:"100%",minWidth:0}),j.jsx(t,babelHelpers["extends"]({},a,{Container:d,FocusItemComponent:o,divClassName:"x1n2onr6"+(b>0&&f?" x139jcc6":""+(b>0&&A?" x1mnrxsn":""+(b>0?" xsgj6o6":""))),isOverlapped:f&&b>0,isOverlapping:f,parentRef:D,pressableProps:g||e?{display:"inline",linkProps:e,onPress:g,overlayDisabled:f,overlayRadius:w/2,testOnly_pressed:h,xstyle:s.pressableItem}:null,role:"cell",shape:"circle",size:w}))]},b)}),!z&&(m||k)&&j.jsxs("div",{className:"x1jn9clo x78zum5 xds687c x1q0g3np x47corl x10l6tqk x17qophe x1eu8d0j",children:[b.slice(0,Math.min(b.length,C1?null:j.jsx(c("BaseContainerQueryElement.react"),{breakpoint:(b+1)*(w+B)-B,maxWidth:b===i-1?"100%":w+B,minWidth:0},"overflowPusher"+b)}),j.jsx(v,{FocusItemComponent:o,"aria-label":h._("__JHASH__fu6soEiUs4x__JHASH__"),count:i,ellipsisTooltip:g,linkProps:k,onPress:m,overlayDisabled:!0,parentRef:D,size:w,spacing:B,testid:void 0,xstyle:[s.overflowItem,w===24&&s.overflow24,w===32&&s.overflow32,w===40&&s.overflow40,w===48&&s.overflow48],children:function(a){var b=a.hovered;a=a.pressed;return j.jsxs(j.Fragment,{children:[j.jsxs("svg",{className:"x1ey2m1c xds687c x10l6tqk x17qophe x13vifvy",height:w,viewBox:"0 0 "+w+" "+w,width:w,children:[f&&C>1&&j.jsxs("mask",{id:E,suppressHydrationWarning:!0,children:[j.jsx("circle",{cx:w/2,cy:w/2,fill:"white",r:w/2}),j.jsx("circle",{cx:-w/2+4,cy:w/2,fill:"black",r:w/2+2})]}),j.jsx("circle",babelHelpers["extends"]({className:"x1wnuiir",cx:w/2,cy:w/2,r:w/2,suppressHydrationWarning:!0},f&&C>1?{mask:"url(#"+E+")"}:null)),j.jsx("circle",babelHelpers["extends"]({className:"x19991ni x1dhq9h"+(a||y?" x1tgjyoi x1hc1fzr x1mq3mr6":""+(b?" x4bmajx x1hc1fzr x1mq3mr6":" x1wnuiir xg01cxk x1ebt8du")),cx:w/2,cy:w/2,r:w/2,suppressHydrationWarning:!0},f&&C>1?{mask:"url(#"+E+")"}:null))]}),j.jsx(c("CometIcon.react"),{color:"white",icon:u(w)})]})}})]})]});b=j.jsxs("div",{className:"x78zum5"+(e?" x1q0g3np x6s0dn4":" xdt5ytf"),"data-testid":void 0,role:"grid",children:[j.jsx(c("CometComponentWithKeyCommands.react"),{commandConfigs:F,children:j.jsx(n,{orientation:"horizontal",tabScopeQuery:d("focusScopeQueries").tabbableScopeQuery,wrap:!0,children:z})}),x!=null?j.jsx("div",{className:""+(e?" xexx8yu x1e558r4":" xz9dl7a"),children:j.jsx(c("TetraText.react"),{color:"secondary",type:"body3",children:x})}):null]});return a?j.jsx("div",{className:"xn6708d x1swvt13 xyamay9",children:b}):b}a.displayName=a.name+" [from "+f.id+"]";function t(a){var b=a.Container,e=a.FocusItemComponent,f=a.divClassName;a.isOverlapping;var g=a.parentRef,h=a.pressableProps;a=babelHelpers.objectWithoutPropertiesLoose(a,["Container","FocusItemComponent","divClassName","isOverlapping","parentRef","pressableProps"]);var i=m(!1),l=i[0],n=i[1];i=k(function(a){var b=a.intersectionRatio;d("ReactDOMComet").flushSync(function(){n(b<.5)})},[]);i=c("useIntersectionObserver")(i,{root:function(){var a;return(a=g.current)!=null?a:null},threshold:.5});a=j.jsx(c("CometProfilePhoto.react"),babelHelpers["extends"]({},a,{overlayDisabled:!0}));h&&(a=j.jsx(c("CometPressable.react"),babelHelpers["extends"]({},h,{disabled:l,role:"cell",children:a})));b&&(a=j.jsx(b,{children:a}));return j.jsx("div",{className:f,ref:i,role:"cell",children:j.jsx(e,{disabled:l,children:a})})}t.displayName=t.name+" [from "+f.id+"]";function u(a){switch(a){case 32:return d("fbicon")._(i("484386"),16);case 40:case 48:return d("fbicon")._(i("484388"),24);default:return d("fbicon")._(i("484385"),12)}}function v(a){var b=a.FocusItemComponent;a.count;var e=a.ellipsisTooltip,f=a.parentRef,g=a.size,h=a.spacing;a=babelHelpers.objectWithoutPropertiesLoose(a,["FocusItemComponent","count","ellipsisTooltip","parentRef","size","spacing"]);var i=m(!1),l=i[0],n=i[1];i=m(null);var o=i[0],p=i[1];i=k(function(a){var b=a.intersectionRatio;d("ReactDOMComet").flushSync(function(){n(b<.5)})},[]);i=c("useIntersectionObserver")(i,{root:function(){var a;return(a=f.current)!=null?a:null},threshold:.5});var q=function(a){if(!a)return;a=f.current;if(!a)return;a=a.getBoundingClientRect();a=a.width;a=Math.floor((a+h)/(g+h));p(a-1)};a=j.jsx(c("CometPressable.react"),babelHelpers["extends"]({},a,{ref:i,role:"cell"}));e&&(a=j.jsx(c("CometTooltip.react"),{align:"middle",onVisibilityChange:q,position:"below",tooltip:o!=null?e(o):"",children:a}));return j.jsxs(b,{disabled:l,children:[" ",a," "]})}v.displayName=v.name+" [from "+f.id+"]";g["default"]=a}),98); __d("Dots3HorizontalFilled24.svg.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){return h.jsxs("svg",babelHelpers["extends"]({fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em"},a,{children:[a.title!=null&&h.jsx("title",{children:a.title}),a.children!=null&&h.jsx("defs",{children:a.children}),h.jsx("circle",{cx:12,cy:12,r:2.5}),h.jsx("circle",{cx:19.5,cy:12,r:2.5}),h.jsx("circle",{cx:4.5,cy:12,r:2.5})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98); __d("CometOverlappingFacepile.react",["fbt","BaseContainerQueryElement.react","CometComponentWithKeyCommands.react","CometIcon.react","CometKeys","CometPressable.react","CometProfilePhoto.react","CometTooltip.react","CometVisualCompletionAttributes","Dots3HorizontalFilled24.svg.react","FocusGroup.react","ReactDOMComet","SVGIcon","TetraText.react","focusScopeQueries","gkx","react","stylex","useCometUniqueID","useIntersectionObserver"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useCallback,k=b.useRef,l=b.useState;e=d("FocusGroup.react").createFocusGroup(d("focusScopeQueries").tabbableScopeQuery);var m=e[0],n=e[1],o=-4,p={item:{marginBottom:"xieb3on",position:"x1n2onr6",$$css:!0},items:{display:"x78zum5",flexDirection:"x1q0g3np",flexShrink:"x2lah0s",flexWrap:"x1a02dak",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",$$css:!0},itemWithoutMargin:{position:"x1n2onr6",$$css:!0},itemWithSpacing:{marginStart:"x139jcc6",$$css:!0},overflow16:{height:"xlup9mm",width:"x1kky2od",$$css:!0},overflow16Child:{alignItems:"x6s0dn4",display:"x78zum5",justifyContent:"xl56j7k",marginStart:"xbmpl8g",$$css:!0},overflow16Frame:{marginStart:"x1mnrxsn",overflowX:"x6ikm8r",overflowY:"x10wlt62",width:"x1fsd2vl",$$css:!0},overflow24:{height:"xxk0z11",width:"xvy4d1p",$$css:!0},overflow32:{height:"x10w6t97",width:"x1td3qas",$$css:!0},overflow36:{height:"xc9qbxq",width:"x14qfxbe",$$css:!0},overflow40:{height:"x1vqgdyp",width:"x100vrsf",$$css:!0},overflow48:{height:"xsdox4t",width:"x1useyqa",$$css:!0},overflowItem:{alignItems:"x6s0dn4",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",display:"x78zum5",flexShrink:"x2lah0s",justifyContent:"xl56j7k",pointerEvents:"x71s49j",$$css:!0},overflowItemBg:{fill:"x1wnuiir",$$css:!0},overflowItemContainer:{bottom:"x1ey2m1c",boxSizing:"x9f619",display:"x78zum5",end:"xds687c",flexDirection:"x1q0g3np",pointerEvents:"x47corl",position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",$$css:!0},overflowItemOverlay:{fill:"x1wnuiir",opacity:"xg01cxk",transitionDuration:"x1ebt8du",transitionProperty:"x19991ni",transitionTimingFunction:"x1dhq9h",$$css:!0},overflowItemOverlayHovered:{fill:"x4bmajx",opacity:"x1hc1fzr",transitionDuration:"x1mq3mr6",$$css:!0},overflowItemOverlayPressed:{fill:"x1tgjyoi",opacity:"x1hc1fzr",transitionDuration:"x1mq3mr6",$$css:!0},overflowItemSVG:{bottom:"x1ey2m1c",end:"xds687c",position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",$$css:!0},root:{display:"x78zum5",flexDirection:"xdt5ytf",$$css:!0},rootInline:{alignItems:"x6s0dn4",flexDirection:"x1q0g3np",$$css:!0},text:{display:"x78zum5",flexDirection:"x1q0g3np",paddingTop:"xz9dl7a",$$css:!0},textInline:{flexBasis:"x1r8uery",flexGrow:"x1iyjqo2",paddingStart:"x1e558r4",paddingTop:"xexx8yu",$$css:!0},wrapper:{paddingEnd:"xn6708d",paddingStart:"x1swvt13",paddingTop:"xyamay9",$$css:!0}},q={16:{minWidth:"x1fns5xo",$$css:!0},24:{minWidth:"x4m7ku4",$$css:!0},32:{minWidth:"xwrg52n",$$css:!0},36:{minWidth:"xktpd3l",$$css:!0},40:{minWidth:"x1c7vg25",$$css:!0},48:{minWidth:"x1wc95rx",$$css:!0}},r={center:{alignItems:"x6s0dn4",$$css:!0},end:{alignItems:"xuk3077",$$css:!0},start:{alignItems:"x1cy8zhl",$$css:!0}},s={center:{justifyContent:"xl56j7k",$$css:!0},end:{justifyContent:"x13a6bvl",$$css:!0},start:{justifyContent:"x1nhvcw1",$$css:!0}};function a(a){var b=a.align;b=b===void 0?"start":b;var e=a.items,f=a.isOverlapping;f===void 0?!0:f;f=a.isTextInline;f=f===void 0?!1:f;var g=a.count,j=g===void 0?e.length:g;g=a.ellipsisTooltip;var l=a.linkProps,x=a.onPress,y=a.screenReaderLabel,z=a.size,A=a.testid;A=a.testOnly_pressed;var B=A===void 0?!1:A;A=a.text;var C=a.disableMarginOnItems,D=C===void 0?!1:C;C=a.withWrapper;var E=o,F=Math.min(j,e.length,f?3:Infinity),G=k(null);a=[{command:{key:c("CometKeys").LEFT},description:h._("__JHASH__m_OLWX7kM2N__JHASH__"),handler:function(){}},{command:{key:c("CometKeys").RIGHT},description:h._("__JHASH__XPwbX58ULdf__JHASH__"),handler:function(){}}];e=i.jsxs("div",babelHelpers["extends"]({className:"x78zum5 x1q0g3np x2lah0s x1a02dak x6ikm8r x10wlt62 x1n2onr6",ref:G,role:"row",style:{height:z}},c("CometVisualCompletionAttributes").IGNORE_DYNAMIC,{children:[e.slice(0,F).map(function(a,b){var d=a.containerComponent,e=a.linkProps,f=a.onPress,g=a.testOnly_pressed;a=babelHelpers.objectWithoutPropertiesLoose(a,["containerComponent","linkProps","onPress","testOnly_pressed"]);return i.jsxs(i.Fragment,{children:[i.jsx(c("BaseContainerQueryElement.react"),{breakpoint:(b+1)*(z+E)-E,inverseToContainer:!0,maxWidth:"100%",minWidth:0}),i.jsx(t,babelHelpers["extends"]({},a,{Container:d,FocusItemComponent:y!=null?void 0:n,divClassName:""+((D?" x1n2onr6":" x1n2onr6 xieb3on")+(b>0?" x139jcc6":""+(D?"":""))),isOverlapped:b>0,linkProps:e,onPress:f,parentRef:G,role:"cell",shape:"circle",size:z,testOnly_pressed:g,testid:void 0}))]},b)}),i.jsxs("div",{className:"x1ey2m1c x9f619 x78zum5 xds687c x1q0g3np x47corl x10l6tqk x17qophe x13vifvy",children:[e.slice(0,Math.min(e.length,F1?null:i.jsx(c("BaseContainerQueryElement.react"),{breakpoint:(b+1)*(z+E)-E,maxWidth:b===j-1?"100%":z+E,minWidth:0},"overflowPusher"+b)}),i.jsx(v,{FocusItemComponent:y!=null?void 0:n,"aria-label":h._("__JHASH__JPI1DgeTCjw__JHASH__"),count:j,ellipsisTooltip:g,linkProps:l,onPress:x,overlayDisabled:!0,parentRef:G,size:z,spacing:E,testid:void 0,xstyle:[p.overflowItem,z===16&&p.overflow16,z===24&&p.overflow24,z===32&&p.overflow32,z===36&&p.overflow36,z===40&&p.overflow40,z===48&&p.overflow48],children:function(a){var b=a.hovered;a=a.pressed;return i.jsxs(i.Fragment,{children:[i.jsx(w,{hovered:b,isOverlapped:F>1,pressed:a||B,size:z}),z===16?i.jsx("div",{className:"x1mnrxsn x6ikm8r x10wlt62 x1fsd2vl",children:i.jsx("div",{className:"x6s0dn4 x78zum5 xl56j7k xbmpl8g",children:i.jsx(c("CometIcon.react"),{color:"white",icon:d("SVGIcon").svgIcon(c("Dots3HorizontalFilled24.svg.react")),size:u(z)})})}):i.jsx(c("CometIcon.react"),{color:"white",icon:d("SVGIcon").svgIcon(c("Dots3HorizontalFilled24.svg.react")),size:u(z)})]})}})]})]}));g=f?s:r;l=q[z];x=i.jsxs("div",{"aria-label":y,className:c("stylex")(p.root,f&&p.rootInline,g[b]),"data-testid":void 0,role:y==null?"grid":"img",children:[y!=null?i.jsx("div",{"aria-hidden":!0,className:c("stylex")(f&&F>=3&&l),children:e}):i.jsx(c("CometComponentWithKeyCommands.react"),{commandConfigs:a,xstyle:f&&F>=3&&l,children:i.jsx(m,{orientation:"horizontal",tabScopeQuery:d("focusScopeQueries").tabbableScopeQuery,wrap:!0,children:e})}),A!=null&&i.jsx("div",{"aria-hidden":y!=null?!0:void 0,className:c("stylex")(p.text,f&&p.textInline,g[b]),children:i.jsx(c("TetraText.react"),{color:"secondary",type:"body3",children:A})})]});return C?i.jsx("div",{className:"xn6708d x1swvt13 xyamay9",children:x}):x}a.displayName=a.name+" [from "+f.id+"]";function t(a){var b=a.Container,e=a.FocusItemComponent,f=a.divClassName,g=a.parentRef,h=babelHelpers.objectWithoutPropertiesLoose(a,["Container","FocusItemComponent","divClassName","parentRef"]);a=l(!1);var k=a[0],m=a[1];a=j(function(a){a=a.intersectionRatio;var b=a<.5;(!c("gkx")("2333")||b!==k)&&d("ReactDOMComet").flushSync(function(){m(b)})},[]);a=c("useIntersectionObserver")(a,{root:function(){var a;return(a=g.current)!=null?a:null},threshold:.5});b=b?i.jsx(b,{children:function(a){return i.jsx(c("CometProfilePhoto.react"),babelHelpers["extends"]({},h,{overlayDisabled:!0,ref:a}))}}):i.jsx(c("CometProfilePhoto.react"),babelHelpers["extends"]({},h,{overlayDisabled:!0}));return i.jsx("div",{className:f,ref:a,role:"cell",children:e!=null?i.jsx(e,{disabled:k,children:b}):b})}t.displayName=t.name+" [from "+f.id+"]";function u(a){switch(a){case 36:case 32:return 16;case 40:case 48:return 24;default:return 12}}function v(a){var b=a.FocusItemComponent;a.count;var e=a.ellipsisTooltip,f=a.parentRef,g=a.size,h=a.spacing;a=babelHelpers.objectWithoutPropertiesLoose(a,["FocusItemComponent","count","ellipsisTooltip","parentRef","size","spacing"]);var k=l(!1),m=k[0],n=k[1];k=l(null);var o=k[0],p=k[1];k=j(function(a){var b=a.intersectionRatio;d("ReactDOMComet").flushSync(function(){n(b<.5)})},[]);k=c("useIntersectionObserver")(k,{root:function(){var a;return(a=f.current)!=null?a:null},threshold:.5});var q=function(a){if(!a)return;a=f.current;if(!a)return;a=a.getBoundingClientRect();a=a.width;a=Math.floor((a+h)/(g+h));p(a-1)};a=i.jsx(c("CometPressable.react"),babelHelpers["extends"]({},a,{ref:k,role:"cell"}));e&&(a=i.jsx(c("CometTooltip.react"),{align:"middle",onVisibilityChange:q,position:"below",tooltip:o!=null?e(o):"",children:a}));return b!=null?i.jsxs(b,{disabled:m,children:[" ",a," "]}):a}v.displayName=v.name+" [from "+f.id+"]";function w(a){var b=a.hovered,d=a.isOverlapped,e=a.pressed;a=a.size;var f=c("useCometUniqueID")();return i.jsxs("svg",{className:"x1ey2m1c xds687c x10l6tqk x17qophe x13vifvy",height:a,viewBox:"0 0 "+a+" "+a,width:a,children:[d&&i.jsxs("mask",{id:f,suppressHydrationWarning:!0,children:[i.jsx("circle",{cx:a/2,cy:a/2,fill:"white",r:a/2}),i.jsx("circle",{cx:-a/2+4,cy:a/2,fill:"black",r:a/2+2})]}),i.jsx("circle",babelHelpers["extends"]({className:"x1wnuiir",cx:a/2,cy:a/2,r:a/2,role:"cell",suppressHydrationWarning:!0},d?{mask:"url(#"+f+")"}:null)),i.jsx("circle",babelHelpers["extends"]({className:"x19991ni x1dhq9h"+(e?" x1tgjyoi x1hc1fzr x1mq3mr6":""+(b?" x4bmajx x1hc1fzr x1mq3mr6":" x1wnuiir xg01cxk x1ebt8du")),cx:a/2,cy:a/2,r:a/2,role:"cell",suppressHydrationWarning:!0},d?{mask:"url(#"+f+")"}:null))]})}w.displayName=w.name+" [from "+f.id+"]";g["default"]=a}),98); __d("TetraOverlappingFacepile.react",["CometOverlappingFacepile.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){return h.jsx(c("CometOverlappingFacepile.react"),babelHelpers["extends"]({withWrapper:!0},a))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometContextRow.react",["CometFacepile.react","CometIcon.react","CometPressable.react","CometRow.react","CometRowItem.react","TetraOverlappingFacepile.react","TetraTextPairing.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={addOn:{marginStart:"x1d52u69",paddingEnd:"x1pi30zi",paddingStart:"x1swvt13",$$css:!0},content:{display:"x78zum5",flexDirection:"xdt5ytf",paddingBottom:"xwib8y2",paddingTop:"x1y1aw1k",$$css:!0},overlayPressed:{backgroundColor:"x1lxk4cn",$$css:!0},root:{appearance:"xjyslct",backgroundColor:"xjbqb8w",borderTopWidth:"x972fbf",borderEndWidth:"xcfux6l",borderBottomWidth:"x1qhh985",borderStartWidth:"xm0m39n",boxSizing:"x9f619",display:"x1rg5ohu",marginTop:"xdj266r",marginEnd:"x11i5rnm",marginBottom:"xat24cr",marginStart:"x1mh8g0r",paddingTop:"xexx8yu",paddingEnd:"x4uap5",paddingBottom:"x18d9i69",paddingStart:"xkhd6sd",position:"x1n2onr6",textAlign:"x16tdsg8",width:"xh8yej3",$$css:!0}};function a(a){var b=a.addOn,d=a.body,e=a.bodyColor;e=e===void 0?"primary":e;var f=a.bodyLineLimit,g=a.disableOverlay;g=g===void 0?!1:g;var j=a.icon,k=a.iconColor,l=a.level;l=l===void 0?3:l;var m=a.linkProps,n=a.meta,o=a.metaLineLimit,p=a.onPress,q=a.overlayRadius,r=a.paddingHorizontal;r=r===void 0?16:r;var s=a.pressableRef,t=a.testid;t=a.testOnly_pressed;t=t===void 0?!1:t;a=a.verticalAlignment;a=a===void 0?"top":a;var u;if(b!=null){if(b.type==="facepile"){b.type;var v=babelHelpers.objectWithoutPropertiesLoose(b,["type"]);v=h.jsx(c("CometFacepile.react"),babelHelpers["extends"]({withWrapper:!0},v))}else{b.type;b=babelHelpers.objectWithoutPropertiesLoose(b,["type"]);v=h.jsx(c("TetraOverlappingFacepile.react"),babelHelpers["extends"]({},b))}u=h.jsx("div",{className:"x1d52u69 x1pi30zi x1swvt13",children:v})}v=h.jsxs("div",{className:"x78zum5 xdt5ytf xwib8y2 x1y1aw1k",children:[h.jsxs(c("CometRow.react"),{align:"start",paddingHorizontal:r,paddingTop:0,verticalAlign:a,children:[h.jsx(c("CometRowItem.react"),{children:h.jsx(c("CometIcon.react"),{color:(b=k)!=null?b:"tertiary",icon:j,size:20})}),h.jsx(c("CometRowItem.react"),{expanding:!0,verticalAlign:"center",children:h.jsx(c("TetraTextPairing.react"),{body:d,bodyColor:e,bodyLineLimit:f,level:l,meta:n,metaColor:"secondary",metaLineLimit:o})})]}),u]});return p!=null||m!=null?h.jsx(c("CometPressable.react"),{display:"inline",linkProps:m,onPress:p,overlayDisabled:g,overlayPressedStyle:i.overlayPressed,overlayRadius:q,ref:s,testOnly_pressed:t,testid:void 0,xstyle:i.root,children:v}):h.jsx("div",{className:"xjyslct xjbqb8w x972fbf xcfux6l x1qhh985 xm0m39n x9f619 x1rg5ohu xdj266r x11i5rnm xat24cr x1mh8g0r xexx8yu x4uap5 x18d9i69 xkhd6sd x1n2onr6 x16tdsg8 xh8yej3","data-testid":void 0,children:v})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("TetraContextRow.react",["CometContextRow.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.children;a=babelHelpers.objectWithoutPropertiesLoose(a,["children"]);return h.jsx(c("CometContextRow.react"),babelHelpers["extends"]({},a,{body:b}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("TetraOverlappingFacepileUnstyled.react",["CometOverlappingFacepile.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){return h.jsx(c("CometOverlappingFacepile.react"),babelHelpers["extends"]({},a))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("actorHovercardContainer",["ActorHovercard.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){return a==null?null:function(b){return h.jsx(c("ActorHovercard.react"),{actorID:a,position:"below",children:b.children})}}g["default"]=a}),98); __d("CometHoverCardActionBarWrapper.react",["CometRow.react","CometRowItem.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){a=a.children;return h.jsx(c("CometRow.react"),{children:h.jsx(c("CometRowItem.react"),{expanding:!0,children:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometHovercardContainer.react",["fbt","CometColumn.react","CometColumnItem.react","CometDangerouslySuppressInteractiveElementsContext","CometRow.react","CometRowItem.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j={border:{borderTop:"x1j7a9zf",borderEnd:"xajpodt",borderBottom:"x17i6pzl",borderStart:"x1tkm39q",$$css:!0},container:{backgroundColor:"x1jx94hy",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",boxShadow:"x1l55gj2",maxWidth:"x1j9u4d2",overflowX:"x6ikm8r",overflowY:"x10wlt62",width:"xn9wirt",$$css:!0},large:{maxWidth:"x1lr1uin",$$css:!0},removeContextRowsPadding:{marginBottom:"x1oo3vh0",$$css:!0}};function a(a){var b=a.actionBar,d=a.avatar,e=a.border;e=e===void 0?"solid":e;var f=a.children,g=a.contextRows,k=a.hasContextRowsPadding;k=k===void 0?!1:k;var l=a.headerRowPadding,m=a.heading,n=a.padding;n=n===void 0?16:n;a=a.size;a=a===void 0?"small":a;return i.jsx(c("CometDangerouslySuppressInteractiveElementsContext").Provider,{value:!1,children:i.jsxs(c("CometColumn.react"),{"aria-label":h._("__JHASH__5lE57X9gCAo__JHASH__"),"aria-modal":!0,paddingHorizontal:n,paddingVertical:n,role:"dialog",spacing:8,xstyle:[j.container,e==="solid"?j.border:void 0,a==="large"?j.large:void 0],children:[(d!=null||m!=null||g!=null)&&i.jsxs(c("CometRow.react"),{align:"start",paddingHorizontal:(n=l)!=null?n:12,paddingVertical:(e=l)!=null?e:0,spacing:0,verticalAlign:"center",children:[d!=null&&i.jsx(c("CometRowItem.react"),{verticalAlign:"top",children:d}),(m!=null||g!=null)&&i.jsx(c("CometRowItem.react"),{expanding:!0,children:i.jsxs(c("CometColumn.react"),{spacing:16,children:[m!=null&&i.jsx(c("CometColumnItem.react"),{paddingHorizontal:16,paddingTop:4,children:m}),g!=null&&i.jsx(c("CometColumnItem.react"),{children:i.jsx("div",{xstyle:k?j.removeContextRowsPadding:void 0,children:g})})]})})]}),b,f!=null&&i.jsx(c("CometRow.react"),{children:i.jsx(c("CometRowItem.react"),{expanding:!0,children:f})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometHovercardContextRows.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){a=a.children;return h.jsx(h.Fragment,{children:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);/*FB_PKG_DELIM*/ __d("MessagingTag",[],(function(a,b,c,d,e,f){e.exports={ACTION_ARCHIVED:"action:archived",INBOX:"inbox",MARKETPLACE_FOLDER:"marketplace_folder",PENDING:"pending",MONTAGE:"montage",OTHER:"other",EVENT:"event",SENT:"sent",SPAM:"spam",UPDATES:"broadcasts_inbox",BCC:"header:bcc",FILTERED_CONTENT:"filtered_content",FILTERED_CONTENT_BH:"filtered_content_bh",FILTERED_CONTENT_ACCOUNT:"filtered_content_account",FILTERED_CONTENT_QUASAR:"filtered_content_quasar",FILTERED_CONTENT_INVALID_APP:"filtered_content_invalid_app",UNAVAILABLE_ATTACHMENT:"unavailable_attachment",UNREAD:"unread",FLAGGED:"flagged",GROUPS:"groups",TRANSITIONAL_MAILBOX:"transitional_mailbox",ARCHIVED:"archived",EMAIL:"email",VOICEMAIL:"voicemail",SPAM_SPOOFING:"spam:spoofing",SPOOF_WARNING:"MTA:spoof_warning",SMS_TAG_ROOT:"SMSShortcode:",APP_ID_ROOT:"app_id:",DOMAIN_AUTH_PASS:"MTA:dmarc:pass",DOMAIN_AUTH_FAIL:"MTA:dmarc:fail",MTA_SYSTEM_MESSAGE:"MTA:system_message",EMAIL_MESSAGE:"source:email",MARKETPLACE:"marketplace",BC_PARTNERSHIP:"bc_partnership",ROOM:"room",PAGES:"pages",PAGE_BACKGROUND:"page_background",PAGE_FOLLOWUP:"page_followup",ONE_CLICK_MESSAGE:"page_one_click_message",MESSAGE_REQUEST_AGGREGATION_UNIT:"message_request_aggregation_unit",ONE_WAY_MESSAGE:"one_way_message",ACTION_COPIED_MESSAGE:"action:copy_message",ACTION_COPIED_SELF_MESSAGE:"copy_self_message",ACTION_COPIED_ATTACHMENT:"action:copy_attachment",ACTION_COPIED_SELF_ATTACHMENT:"copy_self_attachment",STORY_REPLY:"story_reply",IRIS_MAPPING:{FOLDER_INVALID:null,FOLDER_INBOX:"inbox",FOLDER_OTHER:"other",FOLDER_SPAM:"spam",FOLDER_PENDING:"pending",FOLDER_MONTAGE:"montage",FOLDER_HIDDEN:"hidden",FOLDER_DISABLED:"disabled",FOLDER_PAGE_BACKGROUND:"page_background",FOLDER_PAGE_DONE:"page_done",FOLDER_BLOCKED:"blocked",FOLDER_COMMUNITY:"community",FOLDER_RESTRICTED:"restricted",FOLDER_BC_PARTNERSHIP:"bc_partnership",FOLDER_E2EE_CUTOVER:"e2ee_cutover"}}}),null); __d("LSFetchBlendedThreadList",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(a){return d[0]=new c.Map(),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"fetch_community_blended_inbox",[0,536],d[1],f,f,[0,0],[0,0],f,f,[0,0])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("RTWebCometIncomingUnsupportedDialogNameQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7125909224150321"}),null); __d("RTWebCometIncomingUnsupportedDialogNameQuery$Parameters",["RTWebCometIncomingUnsupportedDialogNameQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("RTWebCometIncomingUnsupportedDialogNameQuery_facebookRelayOperation"),metadata:{},name:"RTWebCometIncomingUnsupportedDialogNameQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("ChannelConstants",[],(function(a,b,c,d,e,f){var g="channel/";a={CHANNEL_MANUAL_RECONNECT_DEFER_MSEC:2e3,MUTE_WARNING_TIME_MSEC:25e3,WARNING_COUNTDOWN_THRESHOLD_MSEC:15e3,ON_SHUTDOWN:g+"shutdown",ON_INVALID_HISTORY:g+"invalid_history",ON_CONFIG:g+"config",ON_ENTER_STATE:g+"enter_state",ON_EXIT_STATE:g+"exit_state",ATTEMPT_RECONNECT:g+"attempt_reconnect",RTI_SESSION:g+"new_rti_address",CONSOLE_LOG:g+"message:console_log",GET_RTI_SESSION_REQUEST:g+"rti_session_request",SKYWALKER:g+"skywalker",CHANNEL_ESTABLISHED:g+"established",OK:"ok",ERROR:"error",ERROR_MAX:"error_max",ERROR_MISSING:"error_missing",ERROR_MSG_TYPE:"error_msg_type",ERROR_SHUTDOWN:"error_shutdown",ERROR_STALE:"error_stale",SYS_OWNER:"sys_owner",SYS_NONOWNER:"sys_nonowner",SYS_ONLINE:"sys_online",SYS_OFFLINE:"sys_offline",SYS_TIMETRAVEL:"sys_timetravel",HINT_AUTH:"shutdown auth",HINT_CONN:"shutdown conn",HINT_DISABLED:"shutdown disabled",HINT_INVALID_STATE:"shutdown invalid state",HINT_MAINT:"shutdown maint",HINT_UNSUPPORTED:"shutdown unsupported",reason_Unknown:0,reason_AsyncError:1,reason_TooLong:2,reason_Refresh:3,reason_RefreshDelay:4,reason_UIRestart:5,reason_NeedSeq:6,reason_PrevFailed:7,reason_IFrameLoadGiveUp:8,reason_IFrameLoadRetry:9,reason_IFrameLoadRetryWorked:10,reason_PageTransitionRetry:11,reason_IFrameLoadMaxSubdomain:12,reason_NoChannelInfo:13,reason_NoChannelHost:14,CAPABILITY_VOIP_INTEROP:8,CAPABILITY_ACTIVE_ON_DESKTOP_APP:16384,CAPABILITY_PLAYING_INSTANT_GAME:2097152,FANTAIL_SERVICE:"WebchatClient",SUBSCRIBE:"subscribe",UNSUBSCRIBE:"unsubscribe",FAKE_DFF:"fake_dff",THROTTLED:g+"throttled",JUMPSTART:g+"jumpstart",ENTITY_PRESENCE_ACTIVE_PING:"entity_presence/active_ping",ENTITY_PRESENCE_SKIPPED_PING:"entity_presence/skipped_ping",SUBSCRIPTION_STATE:{SUBSCRIBE:"s",MUTATE_CONTEXT:"m",UNSUBSCRIBE:"u"},DEFAULT_MAX_SUBSCRIPTIONS:300,DEFAULT_EVICTION_BATCH_SIZE:20,DEFAULT_MAX_SUBSCRIPTION_FLUSH_BATCH_SIZE:300,DEFAULT_MAX_CONSECUTIVE_FLUSH_FAILURES:3,getArbiterType:function(a){return g+"message:"+a},getRTISkywalkerArbiterType:function(a,b){return g+"skywalker:"+a+":"+b}};e.exports=a}),null); __d("PresenceConfig",["PresenceConfigInitialData"],(function(a,b,c,d,e,f,g){var h=babelHelpers["extends"]({},c("PresenceConfigInitialData"));function a(a,b){return a in h?h[a]:b}g.get=a}),98); __d("PresenceViewerCapabilities",["ArbiterMixin","PresenceConfig"],(function(a,b,c,d,e,f,g){"use strict";var h=null;a=babelHelpers["extends"]({},c("ArbiterMixin"));Object.assign(a,{get:function(){if(h!=null)return h;h=d("PresenceConfig").get("viewer_presence_capabilities");return h}});b=a;g["default"]=b}),98); __d("CometEntityHeaderFacepileProfileIcon.react",["BaseImage.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={image:{borderTopColor:"xsdn2ir",borderEndColor:"x16rfsbj",borderBottomColor:"x13awxeq",borderStartColor:"x16sykr7",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"xamhcws",borderEndWidth:"xol2nv",borderBottomWidth:"xlxy82",borderStartWidth:"x19p7ews",display:"x1lliihq",$$css:!0},root:{display:"x1rg5ohu",$$css:!0}};function a(a){var b=a.alt,d=a.size;d=d===void 0?32:d;a=a.src;return h.jsx("div",{className:"x1rg5ohu",children:h.jsx(c("BaseImage.react"),{alt:b,height:d,src:a,width:d,xstyle:i.image})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometEntityHeaderFacepile.react",["fbt","CometEntityHeaderFacepileProfileIcon.react","CometLink.react","CometTooltip.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=8;function a(a){a=a.profiles;var b=a;a.length>j&&(b=a.slice(0,j));a=b.map(function(a,b){var d=a.name,e=a.pictureURI,f=a.profileURL;a=a.size;return i.jsx("div",{className:"x1rg5ohu"+(b>0?" xbmpl8g":""),style:{zIndex:b},children:i.jsx(c("CometTooltip.react"),{align:"middle",position:"below",tooltip:h._("__JHASH__cIw3E4_ka0G__JHASH__",[h._param("user's name",d)]),children:i.jsx(c("CometLink.react"),{href:f,children:i.jsx(c("CometEntityHeaderFacepileProfileIcon.react"),{alt:d,size:a,src:e})},b)})},b)});return i.jsx("div",{children:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatOpenTabCount.bs",["MWChatStateV2.bs","MWChatStateV2TabGroups.bs","bs_caml_option","useMWChatStateV2MaxTabCount","useMWIsTopLevelRouteMediaViewerExperiment"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=d("MWChatStateV2.bs").useState(function(a){return a.tabs});var b=d("MWChatStateV2.bs").useState(function(a){return a.focusedTabId}),e=d("MWChatStateV2.bs").useState(function(a){return a.mediaViewerOpenWatermark}),f=c("useMWIsTopLevelRouteMediaViewerExperiment")(),g=c("useMWChatStateV2MaxTabCount")(f);f=f?e.mediaViewerOpenWatermark:void 0;e=d("MWChatStateV2TabGroups.bs").getTabGroups(c("bs_caml_option").some(f),a.tabs,b.focusedTabId,g);return e[0].length}g.useHook=a}),98); __d("MWPreloadCommunitiesBlendedThreadList",["I64","LS.re","LSFetchBlendedThreadList","LSIntEnum","Promise","ReQL","qex","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h=!1;function a(a){var e,f,g,i,j,k,l;return b("regeneratorRuntime").async(function(m){while(1)switch(m.prev=m.next){case 0:if(!(c("qex")._("1346")!==!0)){m.next=2;break}return m.abrupt("return");case 2:if(h){m.next=25;break}h=!0;f="fetch_community_blended_inbox";m.next=7;return b("regeneratorRuntime").awrap(d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.table("pending_tasks").index("queueNameTaskId")).bounds({gte:{hd:f,tl:0}})));case 7:m.t0=e=m.sent;if(!(m.t0==null)){m.next=12;break}m.t1=void 0;m.next=13;break;case 12:m.t1=e.queueName;case 13:m.t2=m.t1;m.t3=f;g=m.t2===m.t3;i=[23,18,21,19,24];m.next=19;return b("regeneratorRuntime").awrap(b("Promise").all(i.map(function(b){return d("ReQL").firstAsync(d("ReQL").fromTableDescending(a.table("threads").index("threadTypeLastActivityTimestampMs")).bounds({gte:{hd:d("LSIntEnum").ofNumber(b),tl:0}}))})));case 19:j=m.sent;k=new Set(i);l=j.filter(function(a){return(a==null?void 0:a.threadType)!=null&&k.has(d("I64").to_int32(a.threadType))});if(!(!g&&l.length===0)){m.next=25;break}m.next=25;return b("regeneratorRuntime").awrap(c("LSFetchBlendedThreadList")(c("LS.re").make(a)));case 25:case"end":return m.stop()}},null,this)}g["default"]=a}),98); __d("MWJewelThreadlistPreloader",["I64","LSDatabaseDeferred.bs","MWLSJewelLoadMoreThreads.bs","MWPreloadCommunitiesBlendedThreadList","promiseDone","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";function a(){c("promiseDone")(d("LSDatabaseDeferred.bs").db.then(function(a){return a.runInTransaction(function(a){return b("regeneratorRuntime").async(function(e){while(1)switch(e.prev=e.next){case 0:e.next=2;return b("regeneratorRuntime").awrap(d("MWLSJewelLoadMoreThreads.bs").loadMoreThreads(a,d("I64").of_int32(0)));case 2:e.next=4;return b("regeneratorRuntime").awrap(c("MWPreloadCommunitiesBlendedThreadList")(a));case 4:case"end":return e.stop()}},null,this)},"readwrite")}))}g["default"]=a}),98); __d("RTWebCometIncomingUnsupportedDialog.entrypoint",["JSResourceForInteraction","RTWebCometIncomingUnsupportedDialogNameQuery$Parameters"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){a=a.id;return{queries:{queryReference:{parameters:b("RTWebCometIncomingUnsupportedDialogNameQuery$Parameters"),variables:{id:a}}}}},root:c("JSResourceForInteraction")("RTWebCometIncomingUnsupportedDialog.react").__setRef("RTWebCometIncomingUnsupportedDialog.entrypoint")};g["default"]=a}),98); __d("RTWebUnsupportedUpsellDialogWrapper.react",["CometPlaceholder.react","RTWebCometIncomingUnsupportedDialog.entrypoint","RelayHooks","react","useCometRelayEntrypointContextualEnvironmentProvider"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.inviterID,e=a.onClose;a=a.threadType;var f=c("useCometRelayEntrypointContextualEnvironmentProvider")();f=d("RelayHooks").loadEntryPoint(f,c("RTWebCometIncomingUnsupportedDialog.entrypoint"),{id:b});return h.jsx(c("CometPlaceholder.react"),{fallback:null,children:h.jsx(d("RelayHooks").EntryPointContainer,{entryPointReference:f,props:{onClose:e,threadType:a}})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("RTWebDropInUtils",["FBLogger"],(function(a,b,c,d,e,f,g){"use strict";var h="drop_in_metadata";a=function(a){var b;return b={},b[h]=JSON.stringify({is_drop_in:a?"1":"0"}),b};b=function(a){a=i(a);a=a.isDropIn;return a};var i=function(a){a=a==null?void 0:a[h];if(a!=null)try{a=JSON.parse(a);return{isDropIn:a.is_drop_in==="1"}}catch(a){c("FBLogger")("rtc_www").catching(a).warn("Failed to parse drop_in_metadata app message");return{isDropIn:!1}}return{isDropIn:!1}};g.getDropInAppMessages=a;g.isDropInFromAppMessages=b}),98); __d("ZenonBrowsers",["UserAgent","UserAgentData","gkx","qex"],(function(a,b,c,d,e,f,g){"use strict";function h(){return c("UserAgent").isBrowser("Chrome")}function i(){return!!navigator.webkitGetUserMedia}function a(){return c("UserAgent").isBrowser("Edge (Chromium Based)")}function j(){return c("UserAgent").isBrowser("Safari")}function k(){return c("UserAgent").isBrowser("Firefox")}function l(){return c("UserAgent").isBrowser("Mobile Safari")}function m(){return c("UserAgent").isBrowser("Oculus Browser")}function n(){return c("UserAgent").isBrowser("Samsung Browser")}function b(){return l()||c("UserAgent").isPlatform("Android")||n()}function o(){return c("UserAgent").isPlatform("Android")||c("UserAgent").isPlatform("iOS")}function p(){if(k()){var a;return(a=c("UserAgentData").browserVersion)!=null?a:0}if(i()){a=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return a!=null?parseInt(a[2],10):999}return 0}function q(){return c("UserAgent").isBrowser("FBLite")||c("UserAgent").isBrowser("Facebook for Android")}function d(a){if(!q())return!1;var b=p();return b>=a}function r(){var a;return((a=c("qex")._("585"))!=null?a:!1)||c("gkx")("6893")}function s(){return r()?!1:c("gkx")("4190")||c("gkx")("3864")||c("gkx")("5524")||c("gkx")("6251")}function e(){return s()||r()}function f(){return k()}function t(){return k()||j()||c("UserAgent").isBrowser("Chrome >= 97")}function u(){return!o()&&(c("UserAgent").isBrowser("Chrome >= 51")||c("UserAgent").isBrowser("Opera >= 36"))}function v(){return c("UserAgent").isBrowser("Firefox < 60")||c("UserAgent").isBrowser("Edge")}function w(){return!m()}function x(){return!m()}function y(){return!l()&&!j()&&!((i()||h())&&p()<80)&&!(k()&&p()<70)}function z(){return(i()||h())&&p()>=77||c("UserAgent").isBrowser("Firefox >= 70")||c("UserAgent").isBrowser("Safari >= 14.1")}function A(){return c("UserAgent").isBrowser("Chrome >= 89")||c("UserAgent").isBrowser("Opera >= 75")||c("UserAgent").isBrowser("Edge (Chromium Based) >= 89")}g.isChrome=h;g.isChromium=i;g.isChromiumBasedEdge=a;g.isDesktopSafari=j;g.isFirefox=k;g.isMobileSafari=l;g.isOculusBrowser=m;g.isSamsung=n;g.isSupportedMobileBrowser=b;g.isMobileDevice=o;g.webrtcVersion=p;g.isFBWebview=q;g.isFBWebviewWithChromeMinVersion=d;g.isDataChannelSupportedInSCTPPeerConnection=r;g.isDataChannelSupportedInMainPeerConnection=s;g.isDataChannelSupported=e;g.noTransceiverForNegotiations=f;g.onlySupportsUnifiedPlan=t;g.isVideoFilterEffectSupported=u;g.videoEscalationByUnmuteWorkaround=v;g.supportsMWAVEscalation=w;g.supportsVideoCalls=x;g.supportsRollback=y;g.supportsIceRestart=z;g.isVideoLayersAllocationSupported=A}),98); __d("AsyncTypedRequest",["AsyncRequest"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){b=a.call(this,b)||this;b.setReplaceTransportMarkers();return b}var c=b.prototype;c.promisePayload=function(b){return a.prototype.promisePayload.call(this,b)};c.setPayloadHandler=function(b){a.prototype.setPayloadHandler.call(this,b);return this};return b}(c("AsyncRequest"));g["default"]=a}),98); __d("FBIDCheck",[],(function(a,b,c,d,e,f){"use strict";var g=/^[1-9]\d*$/;function a(a){a=a;if(a==null||typeof a==="string"&&!g.test(a))return!1;a=parseInt(a,10);return!a?!1:a>0&&a<22e8||a>=1e14&&a<=100099999989999||a>=89e12&&a<=89999999999999||a>=6000001e7&&a<=60000019999999}f.isUser_deprecated=a}),66); __d("WorkplaceChatHelper",["ChannelConstants","CurrentUser","PresenceViewerCapabilities"],(function(a,b,c,d,e,f,g){"use strict";function a(){return window.workchat!==void 0}function b(){return window.workchat.appId}function e(){window.workchat.showWindow()}function f(){var a;a=(a=window.workchat)==null?void 0:a.getIsSystemDoNotDisturbOn;return a==null?!1:a()}function h(){return window.workchat.getScreenSharingSourceID()}function i(){return window.workchat.stopScreenSharing()}function j(){return c("CurrentUser").isWorkUser()&&(c("PresenceViewerCapabilities").get()&d("ChannelConstants").CAPABILITY_ACTIVE_ON_DESKTOP_APP)==d("ChannelConstants").CAPABILITY_ACTIVE_ON_DESKTOP_APP}g.isDesktopChatApp=a;g.getAppID=b;g.showWindow=e;g.getIsSystemDoNotDisturbOn=f;g.getScreenSharingSourceID=h;g.stopScreenSharing=i;g.suppressChatIfActiveOnDesktop=j}),98); __d("JavascriptWebErrorFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1828905");c=b("FalcoLoggerInternal").create("javascript_web_error",a);e.exports=c}),null); __d("ErrorTransport",["JavascriptWebErrorFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";function a(a){c("JavascriptWebErrorFalcoEvent").log(function(){return a})}g.log=a}),98); __d("XCometGamingVanityControllerRouteBuilder",["jsRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsRouteBuilder")("/gaming/{vanity}/",Object.freeze({}),void 0);b=a;g["default"]=b}),98);/*FB_PKG_DELIM*/ __d("MWChatSidebarStateSettingMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5374077802611124"}),null); __d("MWChatSidebarStateSettingMutation.graphql",["MWChatSidebarStateSettingMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"ChatSidebarIsCollapsedResponsePayload",kind:"LinkedField",name:"chat_sidebar_is_collapsed",plural:!1,selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"chat_sidebar_is_collapsed",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MWChatSidebarStateSettingMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MWChatSidebarStateSettingMutation",selections:c},params:{id:b("MWChatSidebarStateSettingMutation_facebookRelayOperation"),metadata:{},name:"MWChatSidebarStateSettingMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null); __d("MessengerCreateVideoMeetupLinkMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4971536746285420"}),null); __d("MessengerCreateVideoMeetupLinkMutation.graphql",["MessengerCreateVideoMeetupLinkMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"CreateVideoMeetupLinkResponsePayload",kind:"LinkedField",name:"create_video_meetup_link",plural:!1,selections:[{alias:null,args:null,concreteType:"MessengerCallInviteLink",kind:"LinkedField",name:"meetup_link",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link_hash",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_audio_only",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MessengerCreateVideoMeetupLinkMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MessengerCreateVideoMeetupLinkMutation",selections:c},params:{id:b("MessengerCreateVideoMeetupLinkMutation_facebookRelayOperation"),metadata:{},name:"MessengerCreateVideoMeetupLinkMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null); __d("VideoChatLinksUserActionsMultiplexLogger",["cr:1443591"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=b("cr:1443591")}),98); __d("MWChatSidebarStateSettingMutation",["CometRelay","MWChatSidebarStateSettingMutation.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("MWChatSidebarStateSettingMutation.graphql");function a(a){var b=a.environment,c=a.isCollapsed,e=a.onCompleted;a=a.onError;d("CometRelay").commitMutation(b,{mutation:i,onCompleted:e,onError:a,variables:{input:{is_collapsed:c}}})}g["default"]=a}),98); __d("ZenonCallWindowErrors",[],(function(a,b,c,d,e,f){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f0||h(0,33504);if(a==="MW_PEER_ID")return i;isNaN(a)===!1||h(0,33551,a);return a}function b(a){return isNaN(a)||a===i?null:a}g.ZenonMWPeerID=i;g.convertStringToPeerID=a;g.convertPeerIDForLogging=b}),98); __d("randomZenonNonce",["Random"],(function(a,b,c,d,e,f,g){"use strict";var h=2,i=6,j=36,k=2176782336;function a(){var a="";for(var b=0;b0&&(d=a+":");a=c+":";a.length<3&&d.length>0&&(a="0"+a);c=""+b;c.length<2&&(c="0"+c);return h.jsxs("span",{children:[d,a,c]})};return b}(h.Component);a.defaultProps={useLocalTime:!1};g["default"]=a}),98); __d("VideoPlayerWithLiveVideoIndicator.react",["fbt","ix","CometImage.react","CometPlaceholder.react","CometRelay","CometRouteRenderType","Duration.react","GamingVideoBackLink.react","TetraText.react","VideoBroadcastStatus","VideoPlayerHooks","VideoPlayerWithLiveVideoIndicator_video.graphql","clearTimeout","cr:541","deferredLoadComponent","gkx","intlSummarizeNumber","react","requireDeferred","setTimeout","stylex","unrecoverableViolation","useVideoPlayerUnifiedCVCProvider"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react");e=d("react");var l=e.useEffect,m=e.useRef,n=e.useState,o=c("deferredLoadComponent")(c("requireDeferred")("LiveVideoCometNuxForCVC.react").__setRef("VideoPlayerWithLiveVideoIndicator.react")),p={cvcIndicator:{alignItems:"x6s0dn4",backgroundColor:"xrmyhay",borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",boxSizing:"x9f619",display:"x3nfvp2",height:"x5yr21d",marginStart:"x1mnrxsn",paddingTop:"xexx8yu",paddingEnd:"xsyo7zv",paddingBottom:"x18d9i69",paddingStart:"x16hj40l",$$css:!0},cvcIndicatorIcon:{display:"x3nfvp2",marginEnd:"xw3qccf",position:"x1n2onr6",$$css:!0},liveIndicator:{alignItems:"x6s0dn4",borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",boxSizing:"x9f619",display:"x3nfvp2",height:"x5yr21d",paddingTop:"xexx8yu",paddingEnd:"xsyo7zv",paddingBottom:"x18d9i69",paddingStart:"x16hj40l",$$css:!0},liveIndicatorAnimation:{animationDirection:"xpz12be",animationDuration:"xof6966",animationIterationCount:"xa4qsjk",animationName:"x18wbh7p",animationTimingFunction:"xkewf8z",$$css:!0},liveIndicatorBackground:{backgroundColor:"x1ciooss",$$css:!0},liveIndicatorExpanded:{display:"x3nfvp2",marginStart:"xsgj6o6",$$css:!0},liveRewindIndicatorBackground:{backgroundColor:"x1osi62z",$$css:!0},positionTop:{display:"x78zum5",height:"xxk0z11",position:"x10l6tqk",start:"xoie2o3",top:"x1tk7jg1",$$css:!0},positionTopWithCometNavOverlay:{start:"x1i5ckhj",top:"xoyzfg9",$$css:!0},positionTopWithCometNavOverlayWorkplace:{start:"x1i5ckhj",top:"xoyzfg9",$$css:!0},privacyNux:{position:"x10l6tqk",start:"xoie2o3",top:"x1w1tb2m",$$css:!0},rehearsalIndicator:{backgroundColor:"x1d2osyd",$$css:!0},speakerIndicator:{marginStart:"x1mnrxsn",$$css:!0}};function a(a){var e,f,g,h=d("VideoPlayerHooks").useIsLive(),i=d("VideoPlayerHooks").useIsLiveRewindActive(),u=d("VideoPlayerHooks").useIsFullscreen(),v=d("CometRouteRenderType").useIsMain(),w=d("VideoPlayerHooks").usePlaying(),x=m(null),y=d("CometRelay").useFragment(j!==void 0?j:j=b("VideoPlayerWithLiveVideoIndicator_video.graphql"),a.video),z=(e=y==null?void 0:y.videoId)!=null?e:"";if(y==null||typeof z!=="string"||z==="")throw c("unrecoverableViolation")("Null video or bad videoId","comet_live_video");var A=d("useVideoPlayerUnifiedCVCProvider").useVideoPlayerUnifiedCVCData();e=n((e=y.liveViewerCount)!=null?e:0);var B=e[0],C=e[1];e=n(!1);var D=e[0],E=e[1];e=n(!1);var F=e[0],G=e[1];l(function(){h&&A!=null&&(q(A.bs)?C(A.c):(C(0),E(!0)))},[A,h]);l(function(){w?(G(!0),x.current=c("setTimeout")(function(){G(!1)},3e3)):x.current&&(G(!1),c("clearTimeout")(x.current));return function(){return c("clearTimeout")(x.current)}},[w]);l(function(){h&&z&&(b("cr:541")==null?void 0:b("cr:541").loadImmediately(function(a){a.LiveProducerLiveActivated(z)}))},[h,z]);e=((e=y.rehearsalInfo)==null?void 0:e.typeName)==="LiveVideoRehearsalInfo";f=(f=y.is_gaming_video)!=null?f:!1;g=(g=a.includeGamingBackLink)!=null?g:!1;g=g&&v&&f;f=!h||D;if(f)return null;D=c("gkx")("1443572");return k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:c("stylex")(p.positionTop,D?a.shouldExpand!==!0&&(a.hasCometNavOverlay||v)&&!u&&!a.renderedInLiveProducer===!0&&p.positionTopWithCometNavOverlayWorkplace:a.hasCometNavOverlay&&!u&&p.positionTopWithCometNavOverlay),children:[g?k.jsx(c("GamingVideoBackLink.react"),{}):null,k.jsx("div",{className:"x6s0dn4 x1lcm9me x1yr5g0i xrt01vj x10y3i5r x9f619 x3nfvp2 x5yr21d xexx8yu xsyo7zv x18d9i69 x16hj40l"+((e?" x1d2osyd":""+(i?" x1osi62z":""+(i?""+(i?"":""):" x1ciooss")))+(i?"":" xpz12be xof6966 xa4qsjk x18wbh7p xkewf8z")),"data-testid":void 0,children:k.jsxs(c("TetraText.react"),{color:e?"primary":"white",type:"bodyLink4",children:[r(y),a.shouldExpand===!0&&F&&(y==null?void 0:y.publish_time)!=null&&!i&&t(y.publish_time)]})}),(y==null?void 0:y.live_speaker_count_indicator)!=null&&k.jsx("span",{className:"x1mnrxsn",children:k.jsx(d("CometRelay").MatchContainer,{match:y==null?void 0:y.live_speaker_count_indicator})}),s(y,B)]}),a.shouldShowPrivacyNux===!0&&k.jsx(c("CometPlaceholder.react"),{fallback:null,children:k.jsx("div",{className:"x10l6tqk xoie2o3 x1w1tb2m",children:k.jsx(o,{videoID:z})})})]})}a.displayName=a.name+" [from "+f.id+"]";function q(a){if(a==null)return!1;switch(a){case c("VideoBroadcastStatus").LIVE:case c("VideoBroadcastStatus").LIVE_STOPPED:case c("VideoBroadcastStatus").SEAL_STARTED:return!0;default:return!1}}function r(a){if((a==null?void 0:a.isPremiere)===!0)return h._("__JHASH__hpA6hHx0tjZ__JHASH__");return(a==null?void 0:a.breakingStatus)===!0?h._("__JHASH__fNJWjBjInjk__JHASH__"):h._("__JHASH__f7VcajZGvwh__JHASH__")}r.displayName=r.name+" [from "+f.id+"]";function s(a,b){if(a===null||b==null||b===0)return null;a=k.jsx(c("CometImage.react"),{alt:"",src:a.is_huddle===!0||(a==null?void 0:a.is_live_audio_room_v2_broadcast)===!0?i("1214050"):i("411339")});a=k.jsx("span",{className:"x3nfvp2 xw3qccf x1n2onr6",children:a});return k.jsxs("div",{"aria-label":h._("__JHASH__Z2JObqjSDhL__JHASH__",[h._plural(b,"number",c("intlSummarizeNumber")(b))]),className:"x6s0dn4 xrmyhay x1lcm9me x1yr5g0i xrt01vj x10y3i5r x9f619 x3nfvp2 x5yr21d x1mnrxsn xexx8yu xsyo7zv x18d9i69 x16hj40l","data-testid":void 0,role:"img",children:[a,k.jsx(c("TetraText.react"),{color:"primaryOnMedia",type:"body4",children:c("intlSummarizeNumber")(b)})]})}s.displayName=s.name+" [from "+f.id+"]";function t(a){return k.jsx("div",{className:"x3nfvp2 xsgj6o6",children:k.jsx(c("Duration.react"),{startTime:a*1e3,useLocalTime:!0})})}t.displayName=t.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useVideoPlayerClickToPauseInteraction",["fbt","VideoPlayerHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react").useCallback;function a(){var a=d("VideoPlayerHooks").usePlaying(),b=d("VideoPlayerHooks").useController(),c=d("VideoPlayerHooks").useIsLive(),e=i(function(){b.pause("user_initiated")},[b]);a=a&&!c;return a?{ariaLabel:h._("__JHASH__VtoypU98LZ___JHASH__"),handler:e,overlayLabel:""}:null}g["default"]=a}),98); __d("XPlatReactToasterView.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f0?f:a.toasterState;if(j!=null){k=Object.prototype.hasOwnProperty.call(k,j.id);if(k){k=e[j.id];b[c]={expired:k.expired,id:k.id,toast:k.value};c++;continue}else b[c]=null}j=null;while(j==null&&i0){var c=h.decodeTN(a);if(c.length==1)return[];b.push(c[1]);a=a.substring(c[0])}return b},getTrackingInfo:function(a,b){return'{"tn":"'+h.encodeTN(a,b).replace("\\","\\\\")+'"}'},addDataAttribute:function(a,b,d){if(b===void 0)return;["data-ft","data-gt"].forEach(function(e){var f;if(a.getAttribute)f=c("DataAttributeUtils").getDataAttribute(a,e)||"{}";else if(a.props)f=a.props[e]||"{}";else return;var g=h.encodeTN(b,d);try{f=JSON.parse(f);if(f.tn&&f.tn===g)return;f.tn=g;if(a.setAttribute)a.setAttribute(e,JSON.stringify(f));else if(a.props)a.props[e]=JSON.stringify(f);else return}catch(a){}})}};f.exports=h}),34); __d("getAggregatedStoryTrackingNodeIndex",["TrackingNodes"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=c("TrackingNodes").parseTrackingNodeString(a.join(""));var b=0;for(var d=0;d1){b=a[d][1];return b}return b}g["default"]=a}),98); __d("XAdsEducationControllerRouteBuilder",["jsRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsRouteBuilder")("/ads/about/",Object.freeze({page_number:0}),void 0);b=a;g["default"]=b}),98);/*FB_PKG_DELIM*/ __d("usePOESurveyDialog_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"usePOESurveyDialog_video",selections:[{alias:null,args:null,concreteType:"Event",kind:"LinkedField",name:"associated_paid_online_event",plural:!1,selections:[a],storageKey:null},a,{alias:null,args:null,kind:"ScalarField",name:"is_live_streaming",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_paid_virtual_event_premium_content",storageKey:null}],type:"Video",abstractKey:null}}();e.exports=a}),null); __d("useRainbowNativeSurveyDialogPlatformIntegrationPointQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5775857805795973"}),null); __d("useRainbowNativeSurveyDialogPlatformIntegrationPointQuery.graphql",["useRainbowNativeSurveyDialogPlatformIntegrationPointQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"integration_point_id"},c={defaultValue:null,kind:"LocalArgument",name:"scale"},d={defaultValue:null,kind:"LocalArgument",name:"session_id"},e={defaultValue:null,kind:"LocalArgument",name:"survey_context_data"},f=[{kind:"Variable",name:"integration_point_id",variableName:"integration_point_id"}],g=[{kind:"Variable",name:"session_id",variableName:"session_id"},{kind:"Variable",name:"survey_context_data",variableName:"survey_context_data"}],h={alias:null,args:null,kind:"ScalarField",name:"session_blob",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"branch_default_page_index",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"branch_question_id",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"branch_subquestion_index_int",storageKey:null},l={alias:null,args:null,concreteType:"StructuredSurveyBranchNodeResponseMapEntry",kind:"LinkedField",name:"branch_response_maps",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"page_index",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"response_option_numeric_value",storageKey:null}],storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"qwa_min",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"qwa_page_index",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"qwa_question_id",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"qwa_default_page_index",storageKey:null},q={alias:null,args:null,kind:"ScalarField",name:"direct_next_page_index_int",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"random_fallback_threshold",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"random_next_page_indices",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"random_next_page_weights",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"fallback_page",storageKey:null},v={alias:null,args:null,kind:"ScalarField",name:"qe_next_page_index",storageKey:null},w={alias:null,args:null,kind:"ScalarField",name:"node_type",storageKey:null};i=[i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,{alias:null,args:null,concreteType:"StructuredSurveyControlNodeFlat",kind:"LinkedField",name:"composite_control_node_flat",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"parent_index",storageKey:null},{alias:null,args:null,concreteType:"StructuredSurveyControlNode",kind:"LinkedField",name:"control_node",plural:!1,selections:[i,j,k,l,m,n,o,p,q,r,s,t,u,v,w],storageKey:null}],storageKey:null}];j={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null};k={alias:null,args:null,kind:"ScalarField",name:"question_id",storageKey:null};l=[k,{alias:null,args:null,kind:"ScalarField",name:"amount",storageKey:null}];m=[{alias:null,args:null,concreteType:"XFBSurveyFlowDSLNodeDirective",kind:"LinkedField",name:"directives",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"target_page",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"conditions",plural:!0,selections:[j,{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{kind:"InlineFragment",selections:[k,{alias:null,args:null,kind:"ScalarField",name:"subquestion",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"answer_num",storageKey:null}],type:"XFBSurveyFlowDSLNodeAnswerEqCondition",abstractKey:null},{kind:"InlineFragment",selections:l,type:"XFBSurveyFlowDSLNodeAnswerCountGTECondition",abstractKey:null},{kind:"InlineFragment",selections:l,type:"XFBSurveyFlowDSLNodeSeenCountGTECondition",abstractKey:null}],storageKey:null}],storageKey:null}];n=[{kind:"Literal",name:"is_comet_environment",value:!0}];o={alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null};p={alias:null,args:null,kind:"ScalarField",name:"length",storageKey:null};q={alias:null,args:null,kind:"ScalarField",name:"offset",storageKey:null};r={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};s=[o,{alias:null,args:null,concreteType:"InlineStyleAtRange",kind:"LinkedField",name:"inline_style_ranges",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"inline_style",storageKey:null},p,q],storageKey:null},{alias:null,args:null,concreteType:"EntityAtRange",kind:"LinkedField",name:"ranges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"entity",plural:!1,selections:[j,{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{kind:"InlineFragment",selections:[r],type:"Node",abstractKey:"__isNode"}],storageKey:null},q,p],storageKey:null}];t=[o];u=[{alias:null,args:null,kind:"ScalarField",name:"option_numeric_value",storageKey:null},{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"option_text",plural:!1,selections:t,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"option_value",storageKey:null}];return{fragment:{argumentDefinitions:[a,c,d,e],kind:"Fragment",metadata:null,name:"useRainbowNativeSurveyDialogPlatformIntegrationPointQuery",selections:[{alias:null,args:f,concreteType:"SurveyIntegrationPoint",kind:"LinkedField",name:"survey_integration_point",plural:!1,selections:[{alias:null,args:g,concreteType:"StructuredSurveySession",kind:"LinkedField",name:"survey_session",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"CometRainbowNativeSurveyDialog_surveySession"},h],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[a,e,c,d],kind:"Operation",name:"useRainbowNativeSurveyDialogPlatformIntegrationPointQuery",selections:[{alias:null,args:f,concreteType:"SurveyIntegrationPoint",kind:"LinkedField",name:"survey_integration_point",plural:!1,selections:[{alias:null,args:g,concreteType:"StructuredSurveySession",kind:"LinkedField",name:"survey_session",plural:!1,selections:[{alias:null,args:null,concreteType:"StructuredSurvey",kind:"LinkedField",name:"survey",plural:!1,selections:[{alias:null,args:null,concreteType:"StructuredSurveyFlow",kind:"LinkedField",name:"survey_flow",plural:!1,selections:[{alias:null,args:null,concreteType:"StructuredSurveyControlNode",kind:"LinkedField",name:"initial_control_node",plural:!1,selections:i,storageKey:null},{alias:null,args:null,concreteType:"XFBSurveyFlowDSLNode",kind:"LinkedField",name:"initial_dsl",plural:!1,selections:m,storageKey:null},{alias:null,args:null,concreteType:"StructuredSurveyFlowPage",kind:"LinkedField",name:"structured_survey_flow_pages",plural:!0,selections:[{alias:null,args:null,concreteType:"StructuredSurveyFlowBucket",kind:"LinkedField",name:"buckets",plural:!0,selections:[{alias:null,args:null,concreteType:"StructuredSurveyConfiguredQuestion",kind:"LinkedField",name:"configured_questions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"question_class",storageKey:null},k,{alias:null,args:null,kind:"ScalarField",name:"is_required",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"custom_question_params",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"custom_question_controller",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"allow_write_in_response",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"question_images",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"full_text_tokens",plural:!0,selections:[j,{alias:null,args:null,kind:"ScalarField",name:"param_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"param_type",storageKey:null},{kind:"InlineFragment",selections:[k,{alias:null,args:null,kind:"ScalarField",name:"subquestion_index",storageKey:null}],type:"StructuredSurveyTextTokenParamAnswerReference",abstractKey:null},{kind:"InlineFragment",selections:[k],type:"StructuredSurveyTextTokenParamPreviousValue",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"custom_hack_class",storageKey:null}],type:"StructuredSurveyTextTokenParamCustomHackValue",abstractKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"content_gallery_question_content_fbid",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"content_gallery_question_content_type",storageKey:null},{alias:null,args:[{kind:"Literal",name:"supported",value:["QuestionCheckboxRenderer","QuestionDropdownRenderer","QuestionRankOrderRenderer","QuestionContentGalleryRenderer","QuestionCustomRenderer","QuestionMessageRenderer","QuestionRadioRenderer","QuestionStarsRenderer","QuestionTextRenderer","QuestionRatingMatrixRenderer","QuestionMaxDiffRenderer","QuestionLikertRenderer","QuestionConsentIntroRenderer","QuestionNumericFieldRenderer"]}],concreteType:null,kind:"LinkedField",name:"question_type_renderer",plural:!1,selections:[j,{kind:"InlineFragment",selections:[{args:null,documentName:"QuestionRenderer_renderer",fragmentName:"RainbowSurveyQuestionCheckbox_question",fragmentPropName:"question",kind:"ModuleImport"}],type:"QuestionCheckboxRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"QuestionRenderer_renderer",fragmentName:"RainbowSurveyQuestionDropdown_question",fragmentPropName:"question",kind:"ModuleImport"}],type:"QuestionDropdownRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"QuestionRenderer_renderer",fragmentName:"RainbowSurveyQuestionRankOrder_question",fragmentPropName:"question",kind:"ModuleImport"}],type:"QuestionRankOrderRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"QuestionRenderer_renderer",fragmentName:"RainbowSurveyQuestionContentGallery_question",fragmentPropName:"question",kind:"ModuleImport"}],type:"QuestionContentGalleryRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"QuestionRenderer_renderer",fragmentName:"RainbowSurveyQuestionCustom_question",fragmentPropName:"question",kind:"ModuleImport"}],type:"QuestionCustomRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"QuestionRenderer_renderer",fragmentName:"RainbowSurveyMessage_question",fragmentPropName:"question",kind:"ModuleImport"}],type:"QuestionMessageRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"QuestionRenderer_renderer",fragmentName:"RainbowSurveyQuestionRadio_question",fragmentPropName:"question",kind:"ModuleImport"}],type:"QuestionRadioRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"QuestionRenderer_renderer",fragmentName:"RainbowSurveyQuestionStars_question",fragmentPropName:"question",kind:"ModuleImport"}],type:"QuestionStarsRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"QuestionRenderer_renderer",fragmentName:"RainbowSurveyText_question",fragmentPropName:"question",kind:"ModuleImport"}],type:"QuestionTextRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"QuestionRenderer_renderer",fragmentName:"RainbowSurveyQuestionRatingMatrix_question",fragmentPropName:"question",kind:"ModuleImport"}],type:"QuestionRatingMatrixRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"QuestionRenderer_renderer",fragmentName:"RainbowSurveyQuestionMaxDiff_question",fragmentPropName:"question",kind:"ModuleImport"}],type:"QuestionMaxDiffRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"QuestionRenderer_renderer",fragmentName:"RainbowSurveyQuestionLikert_question",fragmentPropName:"question",kind:"ModuleImport"}],type:"QuestionLikertRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"QuestionRenderer_renderer",fragmentName:"RainbowSurveyQuestionConsentIntro_question",fragmentPropName:"question",kind:"ModuleImport"}],type:"QuestionConsentIntroRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"QuestionRenderer_renderer",fragmentName:"RainbowSurveyQuestionNumericField_question",fragmentPropName:"question",kind:"ModuleImport"}],type:"QuestionNumericFieldRenderer",abstractKey:null}],storageKey:'question_type_renderer(supported:["QuestionCheckboxRenderer","QuestionDropdownRenderer","QuestionRankOrderRenderer","QuestionContentGalleryRenderer","QuestionCustomRenderer","QuestionMessageRenderer","QuestionRadioRenderer","QuestionStarsRenderer","QuestionTextRenderer","QuestionRatingMatrixRenderer","QuestionMaxDiffRenderer","QuestionLikertRenderer","QuestionConsentIntroRenderer","QuestionNumericFieldRenderer"])'},{alias:null,args:n,concreteType:"TextWithEntities",kind:"LinkedField",name:"body",plural:!1,selections:s,storageKey:"body(is_comet_environment:true)"},{alias:null,args:n,concreteType:"TextWithEntities",kind:"LinkedField",name:"message",plural:!1,selections:s,storageKey:"message(is_comet_environment:true)"},{alias:null,args:null,concreteType:"StructuredSurveyResponseOption",kind:"LinkedField",name:"response_options",plural:!0,selections:u,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pipe_options_from_question_id",storageKey:null},{alias:null,args:null,concreteType:"StructuredSurveyResponseOption",kind:"LinkedField",name:"responses_options_from_pipe_question",plural:!0,selections:u,storageKey:null},{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"subquestion_labels",plural:!0,selections:t,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBSurveyFlowDSLPage",kind:"LinkedField",name:"page_dsl",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBSurveyFlowDSLNode",kind:"LinkedField",name:"entry",plural:!1,selections:m,storageKey:null},{alias:null,args:null,concreteType:"XFBSurveyFlowDSLNode",kind:"LinkedField",name:"exit",plural:!1,selections:m,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StructuredSurveyControlNode",kind:"LinkedField",name:"control_node",plural:!1,selections:i,storageKey:null},{alias:null,args:null,concreteType:"StructuredSurveyControlNode",kind:"LinkedField",name:"before_visit_control_node",plural:!1,selections:i,storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"allow_repeats",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"flow_type",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_last_sub_survey",storageKey:null},r,{alias:null,args:null,kind:"ScalarField",name:"survey_flow_type",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"end_of_survey_redirect_uri",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"response_id",storageKey:null},{alias:null,args:null,concreteType:"SurveyConfig",kind:"LinkedField",name:"config",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"dialog_x_out_enabled",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"survey_header",storageKey:null},r],storageKey:null},h],storageKey:null},r],storageKey:null}]},params:{id:b("useRainbowNativeSurveyDialogPlatformIntegrationPointQuery_facebookRelayOperation"),metadata:{},name:"useRainbowNativeSurveyDialogPlatformIntegrationPointQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("VideoPlayerReshareButton_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerReshareButton_video",selections:[{alias:null,args:null,kind:"ScalarField",name:"can_viewer_share",storageKey:null},{alias:null,args:null,concreteType:"Story",kind:"LinkedField",name:"creation_story",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"shareable",plural:!1,selections:[{alias:"wwwUrl",args:[{kind:"Literal",name:"site",value:"www"}],kind:"ScalarField",name:"url",storageKey:'url(site:"www")'}],storageKey:null}],storageKey:null}],type:"Video",abstractKey:null};e.exports=a}),null); __d("VideoPlayerWatchEndScreenWithActions_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerWatchEndScreenWithActions_video",selections:[{args:null,kind:"FragmentSpread",name:"VideoPlayerReshareButton_video"}],type:"Video",abstractKey:null};e.exports=a}),null); __d("VideoPlayerWithLiveVideoEndscreenAndChaining_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerWithLiveVideoEndscreenAndChaining_video",selections:[{alias:null,args:[{kind:"Literal",name:"supported",value:["VideoPlayerWithLiveVideoEndscreenToPaidOnlineEventRenderer","VideoPlayerWithLiveVideoEndscreenChainedVideosRenderer"]}],concreteType:null,kind:"LinkedField",name:"comet_video_player_live_video_endscreen_content",plural:!1,selections:[{kind:"InlineFragment",selections:[{args:null,documentName:"VideoPlayerWithLiveVideoEndscreenAndChaining_video",fragmentName:"VideoPlayerWithLiveVideoEndscreenToPaidOnlineEventRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"VideoPlayerWithLiveVideoEndscreenToPaidOnlineEventRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"VideoPlayerWithLiveVideoEndscreenAndChaining_video",fragmentName:"VideoPlayerWithLiveVideoEndscreenChainedVideosRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"VideoPlayerWithLiveVideoEndscreenChainedVideosRenderer",abstractKey:null}],storageKey:'comet_video_player_live_video_endscreen_content(supported:["VideoPlayerWithLiveVideoEndscreenToPaidOnlineEventRenderer","VideoPlayerWithLiveVideoEndscreenChainedVideosRenderer"])'},{args:null,kind:"FragmentSpread",name:"VideoPlayerWithLiveVideoEndscreen_video"}],type:"Video",abstractKey:null};e.exports=a}),null); __d("VideoPlayerWithLiveVideoEndscreen_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerWithLiveVideoEndscreen_video",selections:[{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"live_end_text",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_huddle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_live_audio_room_v2_broadcast",storageKey:null},{args:null,kind:"FragmentSpread",name:"usePOESurveyDialog_video"}],type:"Video",abstractKey:null};e.exports=a}),null); __d("useRainbowNativeSurveyDialog",["CometRelay","JSResourceForInteraction","WebPixelRatio","emptyFunction","promiseDone","react","useCometLazyDialog","useRainbowNativeSurveyDialogPlatformIntegrationPointQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react").useCallback,j=c("JSResourceForInteraction")("CometRainbowNativeSurveyDialog.react").__setRef("useRainbowNativeSurveyDialog"),k=h!==void 0?h:h=b("useRainbowNativeSurveyDialogPlatformIntegrationPointQuery.graphql");function a(a,b,e,f){var g=d("CometRelay").useRelayEnvironment(),h=c("useCometLazyDialog")(j),l=h[0];return i(function(h,i,j,m){var n;j=((n=b)!=null?n:[]).concat((n=j)!=null?n:[]);c("promiseDone")(d("CometRelay").fetchQuery(g,k,{integration_point_id:a,scale:d("WebPixelRatio").get(),session_id:e,survey_context_data:(n=j)!=null?n:[]},{fetchPolicy:"network-only"}).toPromise().then(function(a){a=a==null?void 0:(a=a.survey_integration_point)==null?void 0:a.survey_session;(a==null?void 0:a.session_blob)?l({hideThankYou:f,onOpenCallback:i,surveySession:a},h?h:c("emptyFunction")()):m!=null&&m()}))},[b,f,g,a,e,l])}g["default"]=a}),98); __d("usePOESurveyDialog",["CometRelay","emptyFunction","usePOESurveyDialog_video.graphql","useRainbowNativeSurveyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i="2683796868609644";function a(a){var e;a=d("CometRelay").useFragment(h!==void 0?h:h=b("usePOESurveyDialog_video.graphql"),a);var f=c("useRainbowNativeSurveyDialog")(i,[{context_key:"event_id",context_value:(e=a==null?void 0:(e=a.associated_paid_online_event)==null?void 0:e.id)!=null?e:""},{context_key:"video_id",context_value:(e=a==null?void 0:a.id)!=null?e:""}]);return(a==null?void 0:a.is_live_streaming)===!0&&(a==null?void 0:a.is_paid_virtual_event_premium_content)===!0?function(){f()}:c("emptyFunction")}g["default"]=a}),98); __d("VideoPlayerActionButton.react",["CometLink.react","TetraIcon.react","TetraText.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.icon,d=a.label,e=a.onPress,f=a.shouldJustifyContentCenter;f=f===void 0?!1:f;var g=a.testid;g=a.useVerticalLayout;a=g===void 0?!1:g;return h.jsxs("div",{className:""+((a===!0?" x6s0dn4 x78zum5 xdt5ytf xyamay9 x1pi30zi x1l90r2v x1swvt13 x2b8uid xja02kk":""+((a!==!0?" x6s0dn4 x78zum5 x1q0g3np xyamay9 x1pi30zi x1l90r2v x1swvt13":"")+(f?"":""+(a!==!0?"":""))))+(f?" xl56j7k":"")),"data-testid":void 0,children:[h.jsx("div",{className:""+((a===!0?" xb2d7b1 xo26eqo xmk2xwg x8nt7p6 x14yjl9h xudhj91 x18nykt9 xww2gxu x889kno x1iji9kk x1a8lsjc x1sln4lm xod5an3":""+(a!==!0?" xb2d7b1 xo26eqo xmk2xwg x8nt7p6 x14yjl9h xudhj91 x18nykt9 xww2gxu x889kno x1iji9kk x1a8lsjc x1sln4lm":""))+(a!==!0?" xq8finb":"")),children:h.jsx(c("TetraIcon.react"),{"aria-label":d,color:"white",hideHoverOverlay:!0,icon:b,onPress:e})}),h.jsx(c("TetraText.react"),{color:"primaryOnMedia",type:"headlineEmphasized3",children:h.jsx(c("CometLink.react"),{onClick:e,children:d})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerMoreVideosOnWatchButton.react",["fbt","ix","CometTrackingNodeProvider.react","VideoPlayerActionButton.react","XCometWatchControllerRouteBuilder","fbicon","react","requireDeferred","useCometRouterDispatcher"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=c("requireDeferred")("VideoHomeTypedLoggerLite").__setRef("VideoPlayerMoreVideosOnWatchButton.react");function a(a){a=a.useVerticalLayout;var b=c("useCometRouterDispatcher")(),e=function(){k.onReady(function(a){a.log({click_point:"ugc_inline_end_screen",event:"click",event_target:"watch"})});var a=c("XCometWatchControllerRouteBuilder").buildURL({});b!=null&&b.go(a,{})};return j.jsx(c("CometTrackingNodeProvider.react"),{trackingNode:449,children:j.jsx(c("VideoPlayerActionButton.react"),{icon:d("fbicon")._(i("607168"),16),label:h._("__JHASH__OXNbxgna3kJ__JHASH__"),onPress:function(){return e()},useVerticalLayout:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerReshareButton.react",["fbt","ix","CometRelay","CometTrackingNodeProvider.react","VideoPlayerActionButton.react","VideoPlayerReshareButton_video.graphql","createEmptyCometComposerViewState","fbicon","react","useFeedComposerCometDialog"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react"),l=d("react").useCallback;function m(a){var b=a.renderActionButton,e=a.shouldJustifyContentCenter,f=a.url;a=a.useVerticalLayout;var g=c("useFeedComposerCometDialog")({composerEntryPointName:"reshare_from_feed",composerSourceSurface:"share_dialog",composerType:"share",title:h._("__JHASH__0TtP-rIoeJO__JHASH__"),tracePolicy:"comet.composer.shareVideo"}),j=g[0],m=c("createEmptyCometComposerViewState")({attachmentArea:{activeAttachmentType:"SHARE"},linkAttachment:{url:f},submitText:h._("__JHASH__S7rCZMEGLdp__JHASH__")});g=l(function(){j({beginningViewState:m})},[m,j]);f=k.jsx(c("VideoPlayerActionButton.react"),{icon:d("fbicon")._(i("484394"),16),label:h._("__JHASH__lG_LkAEuJYb__JHASH__"),onPress:g,shouldJustifyContentCenter:e,useVerticalLayout:a});e=b!=null?b({onPress:g}):f;return k.jsx(c("CometTrackingNodeProvider.react"),{trackingNode:17,children:e})}m.displayName=m.name+" [from "+f.id+"]";function a(a){var c=a.renderActionButton,e=a.shouldJustifyContentCenter,f=a.useVerticalLayout;a=a.video;a=d("CometRelay").useFragment(j!==void 0?j:j=b("VideoPlayerReshareButton_video.graphql"),a);var g=a==null?void 0:a.can_viewer_share;a=a==null?void 0:(a=a.creation_story)==null?void 0:(a=a.shareable)==null?void 0:a.wwwUrl;return g===!0&&a!=null?k.jsx(m,{renderActionButton:c,shouldJustifyContentCenter:e,url:a,useVerticalLayout:f}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerWatchAgainButton.react",["fbt","ix","CometTrackingNodeProvider.react","VideoPlayerActionButton.react","VideoPlayerHooks","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");function a(a){a=a.useVerticalLayout;var b=d("VideoPlayerHooks").useController();return j.jsx(c("CometTrackingNodeProvider.react"),{trackingNode:188,children:j.jsx(c("VideoPlayerActionButton.react"),{icon:d("fbicon")._(i("534218"),16),label:a===!0?h._("__JHASH__ItA62SysS6p__JHASH__"):h._("__JHASH__wnWr0-qeVOh__JHASH__"),onPress:function(){return b.play("user_initiated")},useVerticalLayout:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerWatchEndScreenWithActions.react",["CometColumn.react","CometColumnItem.react","CometRelay","VideoPlayerMoreVideosOnWatchButton.react","VideoPlayerReshareButton.react","VideoPlayerWatchAgainButton.react","VideoPlayerWatchEndScreenWithActions_video.graphql","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j={actions:{alignItems:"x6s0dn4",$$css:!0},watchActions:{display:"x78zum5",justifyContent:"xl56j7k",$$css:!0}};function a(a){var e=a.isWatchEligible;a=a.video$key;a=d("CometRelay").useFragment(h!==void 0?h:h=b("VideoPlayerWatchEndScreenWithActions_video.graphql"),a);return e===!1&&c("VideoPlayerMoreVideosOnWatchButton.react")?i.jsxs("div",{className:"x78zum5 xl56j7k",children:[i.jsx(c("VideoPlayerMoreVideosOnWatchButton.react"),{useVerticalLayout:!0}),i.jsx(c("VideoPlayerWatchAgainButton.react"),{useVerticalLayout:!0}),i.jsx(c("VideoPlayerReshareButton.react"),{useVerticalLayout:!0,video:a})]}):i.jsxs(c("CometColumn.react"),{xstyle:j.actions,children:[i.jsx(c("CometColumnItem.react"),{children:i.jsx(c("VideoPlayerWatchAgainButton.react"),{})}),i.jsx(c("CometColumnItem.react"),{children:i.jsx(c("VideoPlayerReshareButton.react"),{video:a})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerWithLiveVideoEndscreen.react",["fbt","CometRelay","TetraTextPairing.react","VideoPlayerHooks","VideoPlayerInteractionOverlay.react","VideoPlayerWithLiveVideoEndscreen_video.graphql","react","usePOESurveyDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");function a(a){var e=d("VideoPlayerHooks").useEnded(),f=d("VideoPlayerHooks").useIsLive(),g=d("CometRelay").useFragment(i!==void 0?i:i=b("VideoPlayerWithLiveVideoEndscreen_video.graphql"),a.video),k=c("usePOESurveyDialog")(g);if(!e||!f)return null;else k();e=(g==null?void 0:g.is_huddle)===!0||(g==null?void 0:g.is_live_audio_room_v2_broadcast)===!0?h._("__JHASH__x3KGGkP2aWd__JHASH__"):h._("__JHASH__q_cEJEk3EYV__JHASH__");return j.jsx(d("VideoPlayerInteractionOverlay.react").VideoPlayerInteractionOverlay,{children:j.jsx("div",{className:"x6s0dn4 xal61yo x1ey2m1c x9f619 x78zum5 xds687c xdt5ytf xl56j7k x10l6tqk x17qophe x13vifvy",children:j.jsxs("div",{className:"xm6i5cn",children:[j.jsx(c("TetraTextPairing.react"),{body:g==null?void 0:(f=g.live_end_text)==null?void 0:f.text,bodyColor:"white",headline:e,headlineColor:"white",level:2,textAlign:"center"}),a.children]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerWithLiveVideoEndscreenAndChaining.react",["CometPlaceholder.react","CometRelay","VideoPlayerHooks","VideoPlayerWithLiveVideoEndscreen.react","VideoPlayerWithLiveVideoEndscreenAndChaining_video.graphql","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");function a(a){var e=a.routeTarget;a=a.video;var f=d("VideoPlayerHooks").useEnded(),g=d("VideoPlayerHooks").useIsLive();a=d("CometRelay").useFragment(h!==void 0?h:h=b("VideoPlayerWithLiveVideoEndscreenAndChaining_video.graphql"),a);if(!f||!g)return null;return c("gkx")("1224637")?i.jsx(c("VideoPlayerWithLiveVideoEndscreen.react"),{video:a}):i.jsx(c("VideoPlayerWithLiveVideoEndscreen.react"),{video:a,children:i.jsx(c("CometPlaceholder.react"),{fallback:null,children:i.jsx(d("CometRelay").MatchContainer,{match:a.comet_video_player_live_video_endscreen_content,props:{routeTarget:e}})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);/*FB_PKG_DELIM*/ __d("CometNotificationsReceiveLiveQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5649603905120510"}),null); __d("CometNotificationsReceiveLiveQuery.graphql",["StoriesRing.relayprovider","CometTextWithEntitiesRelay_textWithEntities$normalization.graphql","CometNotificationsReceiveLiveQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";var g={__relay_internal__pv__StoriesRingrelayprovider:b("StoriesRing.relayprovider")};a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"count"},c={defaultValue:null,kind:"LocalArgument",name:"environment"},d={defaultValue:null,kind:"LocalArgument",name:"filter_tokens"},e={defaultValue:null,kind:"LocalArgument",name:"menuUseEntryPoint"},f={defaultValue:null,kind:"LocalArgument",name:"notif_cache_ids"},h={defaultValue:null,kind:"LocalArgument",name:"refresh_num"},i={defaultValue:null,kind:"LocalArgument",name:"scale"},j={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},l=[k],m=[{kind:"Variable",name:"environment_alias_override",variableName:"environment"},{kind:"Variable",name:"filter_tokens",variableName:"filter_tokens"},{kind:"Variable",name:"first",variableName:"count"},{kind:"Variable",name:"notif_cache_ids",variableName:"notif_cache_ids"},{kind:"Literal",name:"notif_query_flags",value:["IS_COMET","INCLUDE_WA_P2B_NOTIFS"]},{kind:"Literal",name:"source",value:"unknown"}],n={alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},o=[n],p={alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"title",plural:!1,selections:o,storageKey:null},q={alias:null,args:null,kind:"ScalarField",name:"tracking",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"prefetch_score",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"notif_id",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"notif_cache_id",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"seen_state",storageKey:null},v={alias:"creation_time",args:null,concreteType:"CreationTimeWithRelativeText",kind:"LinkedField",name:"creation_time_with_relative_text",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"timestamp",storageKey:null}],storageKey:null},w={alias:null,args:null,kind:"ScalarField",name:"notif_type",storageKey:null};return{fragment:{argumentDefinitions:[a,c,d,e,f,h,i],kind:"Fragment",metadata:null,name:"CometNotificationsReceiveLiveQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"CometNotificationsReceiveLiveQuery_notificationsListViewer"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,d,i,f,a,h,e,{defaultValue:null,kind:"LocalArgument",name:"__relay_internal__pv__StoriesRingrelayprovider"}],kind:"Operation",name:"CometNotificationsReceiveLiveQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"right_side_widget_container_placement",storageKey:null},{alias:null,args:[{kind:"Literal",name:"environment",value:"COMET"},{kind:"Literal",name:"query_ego_units",value:!1},{kind:"Variable",name:"refresh_num",variableName:"refresh_num"}],concreteType:"SideFeedConnection",kind:"LinkedField",name:"side_feed",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"nodes",plural:!0,selections:[j,{kind:"InlineFragment",selections:[{args:null,documentName:"CometRightSideHeaderCards_viewerSideFeed",fragmentName:"PagesCometHomeAdminContainer_pagesPanel",fragmentPropName:"pagesPanel",kind:"ModuleImport"}],type:"PagesSideFeedUnit",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometRightSideHeaderCards_viewerSideFeed",fragmentName:"FriendingCometHomeInlineRHCContainer_friendsPanel",fragmentPropName:"friendsPanel",kind:"ModuleImport"}],type:"FriendingRequestsSideFeedUnit",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometRightSideHeaderCards_viewerSideFeed",fragmentName:"CometHomeRemindersContainer_reminderPanel",fragmentPropName:"reminderPanel",kind:"ModuleImport"}],type:"RemindersSideFeedUnit",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometRightSideHeaderCards_viewerSideFeed",fragmentName:"CometHomeRightSideWidgetContainer_widgetContainer",fragmentPropName:"widgetContainer",kind:"ModuleImport"}],type:"CometHomeSideFeedWidgetContainer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometRightSideHeaderCards_viewerSideFeed",fragmentName:"CometHomeRightSideWidgetContainerWithSeeMore_widgetContainer",fragmentPropName:"widgetContainer",kind:"ModuleImport"}],type:"CometHomeSideFeedWidgetContainerWithSeeMore",abstractKey:null},{kind:"InlineFragment",selections:l,type:"Node",abstractKey:"__isNode"},{kind:"InlineFragment",selections:l,type:"AdsSideFeedUnitItem",abstractKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"actor",plural:!1,selections:[j,{kind:"TypeDiscriminator",abstractKey:"__isActor"},k],storageKey:null},{alias:null,args:[{kind:"Variable",name:"environment",variableName:"environment"}],kind:"ScalarField",name:"notifications_unseen_count",storageKey:null},{alias:null,args:m,concreteType:"ViewerNotificationsPageConnection",kind:"LinkedField",name:"notifications_page",plural:!1,selections:[{alias:null,args:null,concreteType:"NotifPageFilterConfig",kind:"LinkedField",name:"filter_config",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"selected_filter_tokens",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"filters",plural:!0,selections:[j,{kind:"InlineFragment",selections:[p,{alias:null,args:null,kind:"ScalarField",name:"notif_filter_token",storageKey:null}],type:"NotifPageSingleFilter",abstractKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"query_id",storageKey:null},{alias:null,args:null,concreteType:"ViewerNotificationsPageEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[j,{alias:null,args:null,kind:"ScalarField",name:"row_type",storageKey:null},q,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"bucket_type",storageKey:null},{alias:null,args:null,concreteType:"NotifPageBucketHeaderLink",kind:"LinkedField",name:"header_link",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},p],type:"NotifPageBucketHeaderRow",abstractKey:null},{kind:"InlineFragment",selections:[r,{alias:null,args:null,concreteType:"Notification",kind:"LinkedField",name:"notif",plural:!1,selections:[s,k,t,u,v,q],storageKey:null}],type:"NotifPageCachedNotificationRow",abstractKey:null},{kind:"InlineFragment",selections:[r,{alias:null,args:null,concreteType:"Notification",kind:"LinkedField",name:"notif",plural:!1,selections:[s,u,k,t,{alias:null,args:null,kind:"ScalarField",name:"notif_tags",storageKey:null},q,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"notif_attachments",plural:!0,selections:[j,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"sound_urls",storageKey:null}],type:"NotifSoundAttachment",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometNotificationsListItemAttachment_notification",fragmentName:"CometNotificationsListItemFriendRequestAttachment_notifAttachments",fragmentPropName:"notifAttachments",kind:"ModuleImport"}],type:"FriendRequestNotifAttachment",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometNotificationsListItemAttachment_notification",fragmentName:"CometNotificationsListItemInlineCTAAttachment_notifAttachments",fragmentPropName:"notifAttachments",kind:"ModuleImport"}],type:"InlineCTACometNotifAttachment",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometNotificationsListItemAttachment_notification",fragmentName:"CometNotificationsListItemPageInviteAttachment_notifAttachments",fragmentPropName:"notifAttachments",kind:"ModuleImport"}],type:"PageInviteNotifAttachment",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometNotificationsListItemAttachment_notification",fragmentName:"CometNotificationsListItemQuickPromotionAttachment_notifAttachments",fragmentPropName:"notifAttachments",kind:"ModuleImport"}],type:"QuickPromotionNotifAttachment",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometNotificationsListItemAttachment_notification",fragmentName:"CometNotificationsListItemInlineSurveyAttachment_attachment",fragmentPropName:"attachment",kind:"ModuleImport"},{alias:null,args:null,concreteType:"StructuredSurveySession",kind:"LinkedField",name:"inline_survey",plural:!1,selections:[j],storageKey:null}],type:"InlineSurveyNotifAttachment",abstractKey:null}],storageKey:null},v,w,{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"body",plural:!1,selections:[{args:null,fragment:b("CometTextWithEntitiesRelay_textWithEntities$normalization.graphql"),kind:"FragmentSpread"},n],storageKey:null},{alias:null,args:[{kind:"Literal",name:"height",value:56},{kind:"Variable",name:"scale",variableName:"scale"},{kind:"Literal",name:"width",value:56}],concreteType:"Image",kind:"LinkedField",name:"notif_image",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Literal",name:"site",value:"comet"}],kind:"ScalarField",name:"url",storageKey:'url(site:"comet")'},{alias:null,args:null,concreteType:"GlyphIconData",kind:"LinkedField",name:"icon_data",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"reaction_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"glyph_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"glyph_icon_url",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"NotificationContextInfo",kind:"LinkedField",name:"context_info",plural:!1,selections:[{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"short_text",plural:!1,selections:o,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"NotifNavigationEndpoint",kind:"LinkedField",name:"navigation_endpoint",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"supported",value:["TopFansFanNotificationRenderer","CrossProfileNotificationInfo","BusinessMessageNotificationRenderer","GroupsNotificationRenderer"]}],concreteType:null,kind:"LinkedField",name:"comet_custom_renderer",plural:!1,selections:[j,{kind:"InlineFragment",selections:[{args:null,documentName:"CometNotificationsList_viewerConnection",fragmentName:"CometTopFansFanNotificationListItem_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"TopFansFanNotificationRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometNotificationsList_viewerConnection",fragmentName:"CometCrossProfileNotificationsListItem_cpnInfo",fragmentPropName:"cpnInfo",kind:"ModuleImport"}],type:"CrossProfileNotificationInfo",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometNotificationsList_viewerConnection",fragmentName:"CometBusinessMessageNotificationListItem_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"BusinessMessageNotificationRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometNotificationsList_viewerConnection",fragmentName:"CometGroupsNotificationsListItem_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"GroupsNotificationRenderer",abstractKey:null}],storageKey:'comet_custom_renderer(supported:["TopFansFanNotificationRenderer","CrossProfileNotificationInfo","BusinessMessageNotificationRenderer","GroupsNotificationRenderer"])'}],storageKey:null},{condition:"menuUseEntryPoint",kind:"Condition",passingValue:!1,selections:[{alias:null,args:[{kind:"Literal",name:"notif_option_set_context",value:{client_action_types:["HIDE","UNSUB","TOGGLE_ACTIVE","OPEN_IN_INSPECTOR","REPORT_BUG","OPEN_PCU_REMINDERS_DIALOG","CIVIC_SETTINGS"],environment:"MAIN_SURFACE",is_comet:!0,supported_display_styles:[{option_display_styles:["CHEVRON_MENU_OPTION"],option_set_display_style:"CHEVRON_MENU"}]}}],concreteType:"NotificationOptionSetsConnection",kind:"LinkedField",name:"notif_option_sets",plural:!1,selections:[{alias:null,args:null,concreteType:"NotificationOptionSetsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"NotifOptionSet",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,concreteType:"NotifOptionSetOptionsConnection",kind:"LinkedField",name:"notif_options",plural:!1,selections:[{alias:null,args:null,concreteType:"NotifOptionSetOptionsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"NotifOption",kind:"LinkedField",name:"node",plural:!1,selections:[k,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"notif_option_renderer",plural:!1,selections:[j,{kind:"InlineFragment",selections:[{args:null,documentName:"CometNotificationsDropdownMenu_notification",fragmentName:"CometNotificationsDropdownHideMenuItem_notifOptionRenderer",fragmentPropName:"notifOptionRenderer",kind:"ModuleImport"}],type:"NotifOptionHideRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometNotificationsDropdownMenu_notification",fragmentName:"CometNotificationsDropdownDefaultMenuItem_notifOptionRenderer",fragmentPropName:"notifOptionRenderer",kind:"ModuleImport"}],type:"NotifOptionDefaultRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometNotificationsDropdownMenu_notification",fragmentName:"CometNotificationsDropdownDialogMenuItem_notifOptionRenderer",fragmentPropName:"notifOptionRenderer",kind:"ModuleImport"}],type:"NotifOptionDialogRenderer",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},k],storageKey:null}],storageKey:null}],storageKey:'notif_option_sets(notif_option_set_context:{"client_action_types":["HIDE","UNSUB","TOGGLE_ACTIVE","OPEN_IN_INSPECTOR","REPORT_BUG","OPEN_PCU_REMINDERS_DIALOG","CIVIC_SETTINGS"],"environment":"MAIN_SURFACE","is_comet":true,"supported_display_styles":[{"option_display_styles":["CHEVRON_MENU_OPTION"],"option_set_display_style":"CHEVRON_MENU"}]})'}]},{condition:"menuUseEntryPoint",kind:"Condition",passingValue:!0,selections:[{kind:"ClientExtension",selections:[{alias:"id_for_entrypoint",args:null,kind:"ScalarField",name:"__id",storageKey:null}]}]},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"is_hidden",storageKey:null}]}],storageKey:null}],type:"NotifPageNotificationRow",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"invalidation_reason",storageKey:null},{alias:null,args:null,concreteType:"Notification",kind:"LinkedField",name:"notif",plural:!1,selections:[s,w,k],storageKey:null}],type:"NotifPageDebugInvalidationRow",abstractKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"page_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"end_cursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_next_page",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:m,filters:[],handle:"comet_notifications_thin_client",key:"CometNotificationsList_notifications_page",kind:"LinkedHandle",name:"notifications_page"},{alias:null,args:null,kind:"ScalarField",name:"bizkit_user_opt_in",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"inbox_modal_redirect_user_passes_qe",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"last_update_timestamp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"notifications_sound_path",storageKey:null}],storageKey:null}]},params:{id:b("CometNotificationsReceiveLiveQuery_facebookRelayOperation"),metadata:{live:{config_id:"comet_notifications_live_query_experimental"}},name:"CometNotificationsReceiveLiveQuery",operationKind:"query",text:null,providedVariables:g}}}();e.exports=a}),null); __d("CometNotificationsReceiveLiveQuery_notificationsListViewer.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[{kind:"RootArgument",name:"count"},{kind:"RootArgument",name:"environment"},{kind:"RootArgument",name:"filter_tokens"},{kind:"RootArgument",name:"notif_cache_ids"}],kind:"Fragment",metadata:null,name:"CometNotificationsReceiveLiveQuery_notificationsListViewer",selections:[{args:null,kind:"FragmentSpread",name:"CometRightSideHeaderCards_viewerSideFeed"},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"actor",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"CometToastNotification_actor"}],storageKey:null},{alias:null,args:[{kind:"Variable",name:"environment",variableName:"environment"}],kind:"ScalarField",name:"notifications_unseen_count",storageKey:null},{args:[{kind:"Variable",name:"count",variableName:"count"},{kind:"Variable",name:"filter_tokens",variableName:"filter_tokens"},{kind:"Variable",name:"notif_cache_ids",variableName:"notif_cache_ids"}],kind:"FragmentSpread",name:"CometNotificationsList_viewerConnection"},{args:null,kind:"FragmentSpread",name:"CometNotificationsList_viewerData"},{alias:null,args:null,kind:"ScalarField",name:"last_update_timestamp",storageKey:null}],type:"Viewer",abstractKey:null};e.exports=a}),null); __d("CometNotificationsActionsMenu.react",["fbt","ix","CometMenu.react","CometMenuItem.react","XCometNotificationsControllerRouteBuilder","XCometSettingsControllerRouteBuilder","fbicon","gkx","react","requireDeferred","useCometRouterState"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=c("requireDeferred")("NotifSeeAllFalcoEvent").__setRef("CometNotificationsActionsMenu.react");function a(a){var b,e,f=a.actorId,g=a.notificationsListRef,l=a.onSeeAllClick;a=c("useCometRouterState")();a=(a==null?void 0:a.main.route.tabKey)==="notifications";var m=function(){g.current!=null&&g.current.markAllNotificationsAsRead!=null&&g.current.markAllNotificationsAsRead()},n=function(){g.current!=null&&g.current.handleDebugModeClick!=null&&g.current.handleDebugModeClick()};b=g==null?void 0:(b=g.current)==null?void 0:(b=b.debugModeEnabled)==null?void 0:b.current;e=(e=c("gkx")("1491"))!=null?e:!1;return j.jsxs(c("CometMenu.react"),{withArrow:!0,children:[j.jsx(c("CometMenuItem.react"),{icon:d("fbicon")._(i("477820"),20),onClick:m,primaryText:h._("__JHASH___1FiPZgbMIy__JHASH__"),testid:void 0}),j.jsx(c("CometMenuItem.react"),{href:c("XCometSettingsControllerRouteBuilder").buildURL({tab:"notifications"}),icon:d("fbicon")._(i("497570"),20),primaryText:h._("__JHASH__8KYKyWZOZ5Q__JHASH__")}),e?j.jsx(c("CometMenuItem.react"),{icon:d("fbicon")._(i("874274"),20),onClick:n,primaryText:"[FB Only] "+(b===!0?"Disable":"Enable")+" Debug Mode"}):null,!a&&c("gkx")("2886")?j.jsx(c("CometMenuItem.react"),{href:c("XCometNotificationsControllerRouteBuilder").buildURL({}),icon:d("fbicon")._(i("1529371"),20),onClick:function(){l&&l(),k.onReady(function(a){a=a.log;return a(function(){return{notification_data:{user_id:f},ref:"www_tab"}})})},primaryText:h._("__JHASH__Rrr2mk0tIbW__JHASH__")}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("requestLiveQueryExperimental",["invariant","LiveQueryEventsLoggingResolver","ODS","RelayAPIConfig","RelayGraphQLRequestUtils","makeGraphQLLiveQueryRequest","nullthrows","promiseDone","relay-runtime","uuid"],(function(a,b,c,d,e,f,g,h){"use strict";function i(a,b){var e=c("uuid")(),f={access_token:c("RelayAPIConfig").accessToken,actor_id:c("RelayAPIConfig").actorID,config_id:c("nullthrows")(a.params.metadata.live.config_id,"config_id should not be null")};a={doc_id:c("nullthrows")(a.params.id,"id in request params should not be null"),config_id:f.config_id,actor_id:f.actor_id,variables:b,live_query_request_id:e};f.access_token!==""&&(a=babelHelpers["extends"]({},a,{access_token:f.access_token}));b=d("LiveQueryEventsLoggingResolver").tempResolveLoggingContext();b!=null&&(a=babelHelpers["extends"]({},a,{logging_context:b}));return a}function a(a,b){var e=b.query;b=b.variables;e=d("relay-runtime").getRequest(e);var f=i(e,b),g,j=b;e=d("relay-runtime").createOperationDescriptor(e,b);b=d("relay-runtime").Observable.create(function(a){g=c("makeGraphQLLiveQueryRequest")(f).onResponse(function(b){var e;try{e=c("RelayGraphQLRequestUtils").parsePayload(b),typeof e==="object"||h(0,12937)}catch(b){d("ODS").bumpEntityKey(97,"comet_notifications.new_notification","lq.receive_invalid_payload");return a.error(b)}if(!("errors"in e)&&!("data"in e)){d("ODS").bumpEntityKey(97,"comet_notifications.new_notification","lq.receive_empty_response");return a.error(d("relay-runtime").RelayError.createWarning("EmptyResponseError","Parsed network response is empty"))}if(e.errors)for(var b=e.errors,f=Array.isArray(b),g=0,b=f?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var i;if(f){if(g>=b.length)break;i=b[g++]}else{g=b.next();if(g.done)break;i=g.value}i=i;if(i.severity==="CRITICAL"){i=c("RelayGraphQLRequestUtils").createErrorFromPayload(i);d("ODS").bumpEntityKey(97,"comet_notifications.new_notification","lq.receive_critical_error");return a.error(i)}}a.closed||(d("ODS").bumpEntityKey(97,"comet_notifications.new_notification","lq.receive_notification"),a.next(e))}).onRetryUpdateRequestBody(function(){return JSON.stringify({variables:j})}).send();return function(){c("promiseDone")(g,function(a){a.cancel()})}});a.executeWithSource({operation:e,source:b}).subscribe({});var k=!1,l;return{dispose:function(){!k&&g!=null&&(c("promiseDone")(g,function(a){a.cancel()}),k=!0)},updateVariables:function(a){if(!k&&g!=null){l=a;c("promiseDone")(g,function(a){l!=null&&!k&&(a.amendExperimental({new_variables:l}),j=l,l=null)});return!0}return!1}}}g["default"]=a}),98); __d("CometNotificationsReceiveLiveQuery",["CometNotificationsReceiveLiveQuery.graphql","CometNotificationsReceiveLiveQuery_notificationsListViewer.graphql","requestLiveQueryExperimental"],(function(a,b,c,d,e,f,g){"use strict";var h,i;h!==void 0?h:h=b("CometNotificationsReceiveLiveQuery_notificationsListViewer.graphql");var j=i!==void 0?i:i=b("CometNotificationsReceiveLiveQuery.graphql");function a(a,b){return c("requestLiveQueryExperimental")(a,{query:j,variables:b})}g.subscribeToNotificationUpdates=a}),98); __d("CometNotificationsRankingErrorFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1743388");c=b("FalcoLoggerInternal").create("comet_notifications_ranking_error",a);e.exports=c}),null); __d("GriffinTabOpenFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1743657");c=b("FalcoLoggerInternal").create("griffin_tab_open",a);e.exports=c}),null); __d("NoNotificationsFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1894842");c=b("FalcoLoggerInternal").create("no_notifications",a);e.exports=c}),null); __d("NotifBeeperDropFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1835862");c=b("FalcoLoggerInternal").create("notif_beeper_drop",a);e.exports=c}),null); __d("NotifDebugModeFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1836246");c=b("FalcoLoggerInternal").create("notif_debug_mode",a);e.exports=c}),null); __d("NotifFilterClickFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1836768");c=b("FalcoLoggerInternal").create("notif_filter_click",a);e.exports=c}),null); __d("NotifFilterImpressionFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1871");c=b("FalcoLoggerInternal").create("notif_filter_impression",a);e.exports=c}),null); __d("NotifListBottomCollisionFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1744067");c=b("FalcoLoggerInternal").create("notif_list_bottom_collision",a);e.exports=c}),null); __d("NotifSeeAllFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1836151");c=b("FalcoLoggerInternal").create("notif_see_all",a);e.exports=c}),null); __d("OpenJewelOptionsMenuFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1836319");c=b("FalcoLoggerInternal").create("open_jewel_options_menu",a);e.exports=c}),null);