12 |
- "use strict";(self.webpackChunk_twitter_responsive_web=self.webpackChunk_twitter_responsive_web||[]).push([["shared~bundle.Conversation"],{72983:(e,t,n)=>{n.d(t,{Z:()=>m});var o=n(7896),i=n(2784),r=n(77799),s=n(68472),a=n(73186),l=n(79404),c=n.n(l),d=n(51405);const u=c().aa6e3300,h=({retryMessage:e,...t},n)=>{const a=r.Z.isOnline();return i.createElement(s.Z,(0,o.Z)({},t,{icon:a?void 0:i.createElement(d.Z,{style:p.icon}),retryMessage:a?e:u}))},p=a.Z.create((e=>({icon:{color:e.colors.gray700,fontSize:e.spaces.space32}}))),m=i.forwardRef(h)},51507:(e,t,n)=>{n.d(t,{$6:()=>s,eY:()=>a,zt:()=>r});var o=n(2784);const i=o.createContext(!1);function r(e){return o.createElement(i.Provider,e)}const s=i.Consumer;function a(){return o.useContext(i)}},90610:(e,t,n)=>{n.d(t,{Z:()=>s});var o=n(7896),i=n(2784),r=n(51507);const s=e=>t=>i.createElement(r.$6,null,(n=>i.createElement(e,(0,o.Z)({},t,{isInSidebar:n}))))},87331:(e,t,n)=>{n.d(t,{Z:()=>x});var o=n(2784),i=n(29496),r=n(79404),s=n.n(r),a=n(4358),l=n(67844),c=n(16587),d=n(75905),u=n(63853),h=n(23335),p=n(92160),m=n(47790),g=n(57659);const y=(e,t)=>!(!t.allowPromptForPush||!m.selectShouldPromptBrowserPush(e)),b=(0,p.Z)().propsFromState((()=>({shouldPromptPush:y}))).propsFromActions((()=>({createLocalApiErrorHandler:(0,h.createLocalApiErrorHandlerWithContextFactory)("DEVICE_FOLLOW_BUTTON_CONTAINER"),updateDeviceFollowing:g.ZP.updateDeviceFollowing}))).withAnalytics({element:"mobile_notifications"}),f=s().de128a20,v=s().aa6f3ca4,w=s().j87c21f4,C=s().iebc30ca,_=s().c260930a;class E extends o.PureComponent{constructor(e){super(e),this._getMemoizedBehavioralEventContext=(0,c.Z)((e=>({viewType:"content_notifications",viewState:{type:"toggleable",toggledTo:!e}}))),this._renderButton=()=>{const{isFollowing:e,style:t}=this.props,n=this._getMemoizedBehavioralEventContext(e);return e?o.createElement(i.ZP,{accessibilityLabel:v,behavioralEventContext:n,hoverLabel:{label:C},icon:o.createElement(a.Z,null),onPress:this._handleUnfollow,style:t,type:"primaryOutlined"}):o.createElement(i.ZP,{accessibilityLabel:f,behavioralEventContext:n,hoverLabel:{label:w},icon:o.createElement(l.Z,null),onPress:this._handleFollow,style:t,type:"primaryOutlined"})},this._handleFollow=()=>{const{isDeviceFollowWithoutUserFollow:e,shouldPromptPush:t}=this.props;t&&this.setState({showingPushPrompt:!0}),this._updateDeviceFollowing(!0).then((t=>{e&&this._scribeAction("device_follow_without_follow"),this._scribeAction("on")}))},this._handleUnfollow=()=>{const{isDeviceFollowWithoutUserFollow:e}=this.props;this._updateDeviceFollowing(!1).then((t=>{e&&this._scribeAction("device_unfollow_without_follow"),this._scribeAction("off")}))},this.state={showingPushPrompt:!1}}render(){return o.createElement("div",null,this.state.showingPushPrompt?o.createElement(d.Z,{fullScreen:!0,message:_}):null,this._renderButton())}_updateDeviceFollowing(e){const{createLocalApiErrorHandler:t,updateDeviceFollowing:n,userId:o}=this.props;return n(o,{device:e}).catch(t(u.Z))}_scribeAction(e){const{analytics:t}=this.props;t.scribeAction(e)}}const x=b(E)},2847:(e,t,n)=>{n.d(t,{C:()=>H});n(36728);var o=n(2784),i=n(84292),r=n(14767),s=n(79404),a=n.n(s),l=n(63140),c=n(63143),d=n(66298),u=n(19565),h=n(67619),p=n(99628),m=n(17772),g=n(90112),y=n(15579),b=n(76275),f=n(76687),v=n(23335),w=n(92160),C=n(67935),_=n(99629),E=n(57659);const x=(e,t)=>t.user||E.ZP.select(e,t.userId),Z=(0,w.Z)().propsFromState((()=>({isLoggedIn:C.Qb,user:x}))).propsFromActions((()=>({addToast:_.fz,cancelPendingFollow:E.ZP.cancelPendingFollow,createLocalApiErrorHandler:(0,v.createLocalApiErrorHandlerWithContextFactory)("FOLLOW_USER_BUTTON"),fetchOneUserIfNeeded:E.ZP.fetchOneIfNeeded,follow:E.ZP.follow,block:E.ZP.block,unblock:E.ZP.unblock,unfollow:E.ZP.unfollow}))).withAnalytics(),S=e=>`${e}-follow`,k=e=>`${e}-unfollow`,T=e=>`${e}-block`,L=e=>`${e}-unblock`,I=e=>`${e}-cancel`,R=a().hbe4feb5,P=a().df4c86b0,M=a().bba40ffa,B=a().f558829e,A=a().a6941096,D=a().j24c37b2,U=a().if8cd2a4,F=a().b5972260;class N extends o.Component{constructor(e){super(e),this._fetchUserIfNeeded=()=>{const{createLocalApiErrorHandler:e,fetchOneUserIfNeeded:t,isRelay:n,userId:o}=this.props;o&&!n&&t(o).catch(e(h.F))},this._handleClose=()=>{this.setState({showDialog:!1,dialogText:void 0,dialogHeadline:void 0})},this._handleCancelPendingFollow=()=>{const{cancelPendingFollow:e,createLocalApiErrorHandler:t,user:n}=this.props;n&&e(n.id_str).catch(t({defaultToast:{text:F},showToast:!0}))},this._handleLoggedInFollow=()=>{const{addToast:e,createLocalApiErrorHandler:t,follow:n,isFollowNudge:o,onFollowClick:i,promotedContent:r,user:s}=this.props;s&&n(s.id_str,{promotedContent:r,isFollowNudge:o}).then((()=>(s.protected&&e({text:R({screenName:s.screen_name})}),i&&i(),this._scribe({action:"follow"}))),t({...this._followApiErrorHandlingConfiguration,showToast:!0}))},this._handleLoggedOutFollow=()=>{this._scribe({action:"follow_attempt"})},this._handleBlock=()=>{const{block:e,createLocalApiErrorHandler:t,promotedContent:n,user:o}=this.props;o&&(e(o.id_str,{promotedContent:n}).catch(t(u.d)),this._scribe({action:"block"}))},this._handleUnblock=()=>{const{createLocalApiErrorHandler:e,promotedContent:t,unblock:n,user:o}=this.props;o&&(n(o.id_str,{promotedContent:t}).catch(e(m.D)),this._scribe({action:"unblock"}))},this._handleUnfollow=()=>{const{createLocalApiErrorHandler:e,promotedContent:t,unfollow:n,user:o}=this.props;if(o)return n(o.id_str,{promotedContent:t}).catch(e(g.X)),this._scribe({action:"unfollow"})},this._handleSuperFollow=()=>{const{history:e,user:t}=this.props;if(t)return this._scribe({element:"super_follow_subscribe_button",action:"click"}),e.push(`/${t.screen_name}/superfollows/subscribe`)},this._handleUnSuperFollow=()=>{const{history:e,user:t}=this.props;if(t)return this._scribe({element:"super_follow_unsubscribe_button",action:"click"}),e.push(`/${t.screen_name}/superfollows/manage`)},this.state={showDialog:!1}}componentDidMount(){this._fetchUserIfNeeded(),this._followApiErrorHandlingConfiguration={...p.H,[l.ZP.UserMustBeAlcoholAgeScreened]:{customAction:()=>{this.setState({showDialog:!0,dialogText:U,dialogHeadline:M})}},[l.ZP.CannotFollowFromCountry]:{customAction:()=>{this.setState({showDialog:!0,dialogText:A,dialogHeadline:M})}},[l.ZP.BirthdateRequired]:{customAction:()=>{this.setState({showDialog:!0,dialogText:B,dialogHeadline:P})}}}}render(){const{isLoggedIn:e,isSuperFollowSubscriptionEnabled:t,isTransparent:n,showRelationshipChangeConfirmation:s,size:a,style:l,user:u,userId:h}=this.props,{dialogHeadline:p,dialogText:m,showDialog:g}=this.state,y=null==u?void 0:u.screen_name,b=y?`/${y}`:"",f={follow:S(h),unfollow:k(h),cancel:I(h),block:T(h),unblock:L(h)},v=!(null==u||!u.follow_request_sent||!u.protected||u.following);return!!u&&o.createElement(o.Fragment,null,g?o.createElement(i.Z,{confirmButtonLabel:D,headline:p,onCancel:this._handleClose,onConfirm:this._handleClose,text:m,withCancelButton:!1}):null,o.createElement(d.Z,{displayMode:c.BH.follow,postLoginPath:b,userFullName:u.name,userId:h},(i=>o.createElement(r.Z,{isAutoblocking:u.smart_blocking,isBlocking:u.blocking,isFollowRequestSent:v,isFollowing:u.following,isSuperFollowEligible:!!t&&u.super_follow_eligible,isSuperFollowing:u.super_following,isTransparent:n,name:y,onBlock:i(this._handleBlock),onCancelPendingFollow:i(this._handleCancelPendingFollow),onFollow:i(this._handleLoggedInFollow,this._handleLoggedOutFollow),onSuperFollow:i(this._handleSuperFollow),onUnSuperFollow:i(this._handleUnSuperFollow),onUnblock:i(this._handleUnblock),onUnfollow:i(this._handleUnfollow),showRelationshipChangeConfirmation:e&&s,size:a,style:l,testIDs:f,type:"user"}))))}_scribe(e){const{action:t,element:n}=e,{analytics:o,location:i,promotedContent:r,user:s}=this.props,{items:a}=o.contextualScribeData,l=null==a?void 0:a.find((e=>e.item_type===y.Z.ItemType.USER&&e.id===(null==s?void 0:s.id_str))),c=[];s?c.push({...l,...b.Z.getUserItem(s,r)}):l&&c.push(l);const d=i.query&&i.query.screen_name?{items:c,context:"profile_intent"}:{items:c};return o.scribe({element:n,action:t,data:d})}}const H=(0,f.ZP)(Z(N))},17464:(e,t,n)=>{n.d(t,{BH:()=>k.BH,ZP:()=>B});n(75640);var o=n(2784),i=n(88990),r=n(79404),s=n.n(r),a=n(73036),l=n(1179),c=n(88335),d=n(19313),u=n(25686),h=n(41425),p=n(36934),m=n(29496),g=n(73186);class y extends o.PureComponent{render(){const{onPrimaryButtonClick:e,onSecondaryButtonClick:t,primaryButtonLabel:n,primaryText:i,secondaryButtonLabel:r,secondaryText:s}=this.props;return o.createElement(h.Z.HalfSheet,null,o.createElement(u.Z,{style:b.sheetContent},o.createElement(u.Z,{style:b.content},o.createElement(u.Z,{style:b.header},o.createElement(p.ZP,{color:"white",size:"headline1",weight:"bold"},i)),o.createElement(p.ZP,{color:"white",style:b.secondaryText},s)),o.createElement(u.Z,{style:b.footer},o.createElement(m.ZP,{onPress:t,size:"medium",style:b.button,type:"onMediaOutlined"},o.createElement(p.ZP,{numberOfLines:1},r)),o.createElement(m.ZP,{onPress:e,size:"medium",style:b.button,type:"onMediaWhiteFilled"},o.createElement(p.ZP,{numberOfLines:1},n)))))}}const b=g.Z.create((e=>({content:{padding:e.spaces.space20},footer:{flexDirection:"row",justifyContent:"space-between",paddingBottom:e.spaces.space12,paddingHorizontal:e.spaces.space20,flexWrap:"wrap"},button:{marginBottom:e.spaces.space4},header:{flexDirection:"row"},secondaryText:{paddingTop:e.spaces.space12},sheetContent:{paddingBottom:g.Z.iPhoneOffsetBottom,backgroundColor:e.colors.primary}}))),f=y;var v=n(76238),w=n(92160),C=n(80319),_=n(17943),E=n(67935),x=n(24433),Z=n(17341);const S=(0,w.Z)().propsFromState((()=>({featureSwitchImpressions:C.ur,loginPromptShown:x.fj,loginPromptLastShown:Z.ne,startLocation:_.Lg}))).propsFromActions((()=>({setLoginPromptShown:x.Af,setLoginReturnPath:E.Jm,updateSettings:x.VP}))).withAnalytics();var k=n(63143),T=n(92940);const L=s().j49fd4e8,I=s().hd50e064,R=s().a565833e,P=s().e919c3bc;class M extends o.Component{constructor(e,t){super(e,t),this._getFullSheetDisplayElements=k.Wc.bind(null,this.context.featureSwitches),this._getHalfSheetPrimaryText=k.sI.bind(null,this.context.featureSwitches),this._getHalfSheetSecondaryText=k.Qj.bind(null,this.context.featureSwitches),this._isStandaloneApp=l.Z.isStandaloneApp(),this._shouldRenderPrompt=()=>{const{loginPromptLastShown:e,loginPromptShown:t,onlyShowOnce:n,useBottomBanner:o}=this.props,{displayInterval:i}=this.state;if(o&&!this._hasMobileAppStore())return!1;if(n){if(t)return!1;if(i&&Date.now()-e<i)return!1}return!0},this._handleClose=()=>{this._scribeAction("dismiss"),this.props.onClose()},this._handleNotNow=()=>{this._scribeAction("not_now"),this.props.onClose()},this._handleSubmit=e=>{const{onClose:t,postLoginPath:n,setLoginReturnPath:o}=this.props;this._scribeAction("login"),n&&o(n),t()},this._handleSignupButtonClick=e=>{this._scribeAction("signup"),this.props.onClose()},this._handleAppInstallButtonClick=e=>{const{featureSwitches:t}=this.context,{displayMode:n,featureSwitchImpressions:o,startLocation:i,useBottomBanner:r}=this.props,{switchToAppLink:s}=this.state;e.preventDefault(),this._scribeAction("download"),(0,v._)({displayMode:n,downloadAppUrlPath:r?s:T.ri.InterstitialSwitchToApp,startLocation:i,featureSwitches:t,featureSwitchImpressions:o})},this._getSignupState=()=>{const{displayMode:e,tweetId:t,userId:n}=this.props;switch(e){case k.BH.follow:return{gatedAction:{action:c.qJ.Follow,user_id:n}};case k.BH.like:return{gatedAction:{action:c.qJ.Favorite,tweet_id:t,user_id:n}};case k.BH.reply:return{gatedAction:{action:c.qJ.Reply,tweet_id:t,user_id:n}};case k.BH.retweet:return{gatedAction:{action:c.qJ.Retweet,tweet_id:t,user_id:n}};default:return}},this._getLoginState=()=>{const{postLoginPath:e}=this.props;if(e)return{input:{requested_variant:btoa(JSON.stringify({redirect_after_login:e}))}}},this._hasMobileAppStore=()=>a.ZP.isIOS()||a.ZP.isAndroid();const{useBottomBanner:n}=this.props;this._showTertiaryCTA=this._hasMobileAppStore()&&!this._isStandaloneApp&&this.context.featureSwitches.isTrue("responsive_web_login_signup_sheet_app_install_cta_enabled");const o=this.context.featureSwitches.getNumberValue("rweb_update_fatigue_switch_to_app_day_timeout"),i=this.context.featureSwitches.getStringValue("rweb_update_fatigue_switch_to_app_link");this.state={displayInterval:n?864e5*o:0,switchToAppLink:T.ri[i]}}componentDidMount(){this._shouldRenderPrompt()&&this._scribeAction("impression")}componentWillUnmount(){const{loginPromptShown:e,onlyShowOnce:t,setLoginPromptShown:n,updateSettings:o}=this.props;!e&&t&&(n(!0),o({loginPromptLastShown:Date.now()}))}render(){const{allowBackNavigation:e,customText:t,displayMode:n,hideSignUp:r,isFullHeightOnMobile:s,loginLabel:a,useBottomBanner:l,userFullName:c}=this.props;if(!this._shouldRenderPrompt())return null;const{icon:d,iconStyle:u,subtext:h,text:p}=this._getFullSheetDisplayElements(n),m="function"==typeof p?p({customText:t,userFullName:c}):p,g="function"==typeof h?h({customText:t,userFullName:c}):h,y=r?"":this.props.signupLabel,b={pathname:"/i/flow/login",state:this._getLoginState()},v={pathname:"/i/flow/signup",state:this._getSignupState()};return l?o.createElement(f,{onPrimaryButtonClick:this._handleAppInstallButtonClick,onSecondaryButtonClick:this._handleNotNow,primaryButtonLabel:L,primaryText:this._getHalfSheetPrimaryText(),secondaryButtonLabel:I,secondaryText:this._getHalfSheetSecondaryText()}):o.createElement(i.Z,{actionLabel:a,actionLink:b,allowBackNavigation:e,graphic:d,graphicStyle:u,headline:m||"",isFullHeightOnMobile:s,onAction:this._handleSubmit,onClose:this._handleClose,onSecondaryAction:this._handleSignupButtonClick,onTertiaryAction:this._showTertiaryCTA?this._handleAppInstallButtonClick:void 0,secondaryActionLabel:y,secondaryActionLink:v,subtext:g||"",tertiaryActionLabel:this._showTertiaryCTA?L:void 0,useBrandedActionButtons:!0})}_scribeAction(e){const{analytics:t,displayMode:n,useBottomBanner:o}=this.props,i=o?"half_sheet":n;t.scribe({component:"login_signup_sheet",element:i,action:e})}}M.defaultProps={displayMode:k.BH.generic,hideSignUp:!1,isFullHeightOnMobile:!0,useBottomBanner:!1,loginLabel:P,signupLabel:R,onlyShowOnce:!1},M.displayMode=k.BH,M.contextType=d.rC;const B=S(M)},58804:(e,t,n)=>{n.d(t,{Z:()=>b});var o=n(7896),i=n(2784),r=n(77089),s=n(53496),a=n(24797),l=n(46110),c=n(60673),d=n(19313),u=n(23335),h=n(92160),p=n(72314),m=n(30102);const g=(e,t)=>t.tweetId,y=(e,t)=>{const n=t.tweetId,o=n&&m.ZP.select(e,n);return o?(0,p.z0)(e,o):void 0},b=(0,h.Z)().propsFromState((()=>({community:y,hydratedTweet:m.ZP.createHydratedTweetSelector(g)}))).propsFromActions((()=>({createLocalApiErrorHandler:(0,u.createLocalApiErrorHandlerWithContextFactory)("QUOTE_TWEET_CONTAINER"),fetchCommunityIfNeeded:p.ZP.fetchOneIfNeeded})))((({community:e,createLocalApiErrorHandler:t,fetchCommunityIfNeeded:n,hydratedTweet:u,onPress:h,tweetId:p,...m})=>{const{featureSwitches:g,loggedInUserId:y}=i.useContext(d.rC),b=(0,c.z)(),f=null==u?void 0:u.community_id_str;i.useEffect((()=>{f&&(0,a.Z)(e)&&n(f).catch(t())}),[e,f,t,n]);const v=i.useCallback((e=>{b.scribeAction("click"),h&&h(e)}),[h,b]),w=u&&(0,l.D$)(u,y,e),C=w&&(0,l.rl)(w),_=g.isTrue("responsive_web_reactions_enabled");return i.createElement(r.ZP.Provider,{value:{isCollaborativeTweetConsumptionEnabled:()=>g.isTrue("responsive_web_cotweet_consumption_enabled"),isEditTweetConsumptionEnabled:()=>g.isTrue("responsive_web_edit_tweet_enabled")||g.isTrue("subscriptions_feature_labs_1004"),isVibeTweetConsumptionEnabled:()=>g.isTrue("vibe_tweet_context_enabled"),mixedMediaEnabled:()=>g.isTrue("responsive_web_mixed_media_consumption_enabled")}},i.createElement(s.Z,(0,o.Z)({},m,{loggedInUserId:y,onPress:v,shouldShowAltLabelAlways:!0,socialContextProps:C,tweet:u,withReactions:_})))}))},92051:(e,t,n)=>{n.d(t,{i:()=>w.ZP,k:()=>x});n(6886);var o=n(2784),i=n(67502),r=n(14983),s=n.n(r),a=n(10622),l=n.n(a),c=n(28123),d=n.n(c),u=n(72845),h=n.n(u),p=n(37429),m=n.n(p),g=n(57074),y=n.n(g),b=n(1206),f=n(63174),v=n(23335),w=n(23803);const C=({render:e})=>e({fetchStatus:w.ZP.LOADING,data:null,error:null,retry:b.Z});class _ extends o.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){if(!(e instanceof f.Z))throw e;this.props.errorHandler(e)}render(){return this.props.children(this.state.error,this.props.retry)}}const E=({query:e,queryRef:t,render:n})=>{const o=d()(e,t);return n({fetchStatus:w.ZP.LOADED,data:o,error:null,retry:b.Z})},x=(e,t)=>{if(i.canUseDOM)return({fetchPolicy:n="store-or-network",render:i,variables:r})=>{const[s,a]=h()(e),l=(0,v.useCreateLocalApiErrorHandler)(t.errorConfig.context),[c]=y()(r),d=o.useCallback((()=>{a(c,{fetchPolicy:"network-only"})}),[a,c]);return o.useLayoutEffect((()=>{a(c,{fetchPolicy:n})}),[n,a,c]),s?o.createElement(o.Suspense,{fallback:o.createElement(C,{render:i})},o.createElement(_,{errorHandler:l(t.errorConfig.options||{}),key:s.fetchKey,retry:d},((t,n)=>t?i({fetchStatus:w.ZP.FAILED,error:t,data:null,retry:n}):o.createElement(E,{query:e,queryRef:s,render:i})))):null};{const n=new WeakMap;return({fetchPolicy:i="store-or-network",render:r,variables:a})=>{const c=m()(),d=(0,v.useCreateLocalApiErrorHandler)(t.errorConfig.context),[u]=y()(a),h=n.get(c);if(h)return h;{const i=o.lazy((()=>l()(c,e,u).toPromise().then((e=>(s()(e,"Fetch query returned empty data"),r({fetchStatus:w.ZP.LOADED,data:e,error:null,retry:b.Z}))),(e=>{if(!(e instanceof f.Z))return o.createElement((()=>{throw e}));d(t.errorConfig.options||{})(e);return r({fetchStatus:w.ZP.FAILED,data:null,error:e,retry:b.Z})})).then((e=>({default:n.set(c,e).get.bind(n,c)})))));return o.createElement(o.Suspense,null,o.createElement(i,null))}}}}},66298:(e,t,n)=>{n.d(t,{Z:()=>l});var o=n(7896),i=(n(6886),n(2784)),r=n(19313),s=n(17464);class a extends i.Component{constructor(...e){super(...e),this.state={showLoginPrompt:!1},this._getHandler=(e,t)=>(n,...o)=>{this.props.disabled||this.context.loggedInUserId?e&&e(n,...o):(n&&n.preventDefault&&n.preventDefault(),t&&t(),this.setState({showLoginPrompt:!0}))},this._handleClose=()=>{this.setState({showLoginPrompt:!1})}}render(){const{children:e,disabled:t,...n}=this.props;return i.createElement(i.Fragment,null,e(this._getHandler),this.state.showLoginPrompt&&i.createElement(s.ZP,(0,o.Z)({onClose:this._handleClose},n)))}}a.defaultProps={disabled:!1},a.contextType=r.rC;const l=a},14429:(e,t,n)=>{n.d(t,{KV:()=>_e,ZP:()=>Pe,F0:()=>Ee});n(6886),n(36728);var o=n(2784),i=n(76648),r=n(79404),s=n.n(r),a=(n(21515),n(19179)),l=n(44487),c=n(83882),d=n(1206),u=n(23021),h=n(50813),p=n(46072);const m=s().b3036480,g=s().b3036480,y=s().e68b09b4,b=s().ia9103ed,f=({removeFollowerAction:e,user:t})=>{const n=v(t);return{Icon:p.Z,text:m,onClick:()=>e(n)}},v=e=>({confirmButtonType:"destructiveFilled",headline:g,label:y,text:b({screenName:e.screen_name})});var w=n(7896),C=n(84292);const _=e=>t=>{const[n,i]=o.useState(null),r=e=>new Promise(((t,n)=>{i({resolve:t,reject:n,confirmationSheetProps:e})}));if(n){const{confirmationSheetProps:e,reject:t,resolve:r}=n;return o.createElement(C.Z,(0,w.Z)({},e,{onCancel:()=>{t(),i(null)},onConfirm:()=>{r(),i(null)}}))}return o.createElement(e,(0,w.Z)({},t,{confirm:r}))},E="block",x="mute",Z="removeFollower",S="report",k="share",T=s().j7bb1a43,L=s().hef5960c,I=_((e=>{const{onBlock:t,onClose:n,onMute:i,onRemoveFollower:r,onReportUser:s,onShare:p,onUnblock:m,onUnmute:g,user:y}=e,b=[],v=(t,n)=>{const{confirm:o,onClose:i}=e;if(t){const{label:e,...r}=t;o({confirmButtonLabel:e,...r}).then(n,d.Z).finally(i)}else n()};!!window.navigator.share&&!y.protected&&!y.blocking&&!y.blocked_by&&b.push({Icon:a.Z,onClick:()=>{n(),p()},testID:k,text:L});!y.blocking&&b.push({...(0,h.N1)(y,(()=>{n(),i()}),(()=>{n(),g()})),testID:x});y.followed_by&&b.push({...f({removeFollowerAction:e=>{v(e,r)},user:y}),testID:Z}),b.push((0,u.op)({blockAction:e=>v(e,t),source:u.SC.FOLLOWERS_LIST,testID:E,unblockAction:e=>v(e,m),user:y})),b.push({Icon:c.Z,onClick:()=>{n(),s()},testID:S,text:T({screenName:y.screen_name})});const w=b.map((({Icon:e,onClick:t,testID:n,text:o})=>({text:o,onClick:t,Icon:e,testID:n})));return o.createElement(l.Z,{items:w,onCloseRequested:n})}));var R=n(75733);const P=s().j7bb1a43,M=s().f2f4d0e8,B=s().e1f2f8bd,A=s().e68b09b4,D=_((e=>{const{onBlock:t,onClose:n,onRemoveFlaggedAccount:i,onReportUser:r,onUnblock:s,user:a}=e,h=[],p=(t,n)=>{const{confirm:o,onClose:i}=e;if(t){const{label:e,...r}=t;o({confirmButtonLabel:e,...r}).then(n,d.Z).finally(i)}else n()};h.push((0,u.op)({blockAction:e=>p(e,t),source:u.SC.FOLLOWERS_LIST,testID:E,unblockAction:e=>p(e,s),user:a}));const m={confirmButtonType:"primary",headline:B({screenName:a.screen_name}),label:A,text:(0,u.fX)({screenName:a.screen_name})};h.push({Icon:R.Z,onClick:()=>{p(m,i)},testID:"removeFlaggedAccount",text:M}),h.push({Icon:c.Z,onClick:()=>{n(),r()},testID:S,text:P({screenName:a.screen_name})});const g=h.map((({Icon:e,onClick:t,testID:n,text:o})=>({text:o,onClick:t,Icon:e,testID:n})));return o.createElement(l.Z,{items:g,onCloseRequested:n})}));n(1951);var U=n(56510),F=n(46493),N=n(58179),H=n(16866),z=n(99666),O=n(61837),V=n(50941),W=n(35932);const $="autoblock",G="block",j="mute",q=s().hef5960c,Q=s().ibd0b842,K=s().c645618c,X=s().b9c26480,Y=s().b2e20eac,J=s().b62e432e,ee=s().h5ef9bc8,te=s().j7bb1a43,ne=s().jcba15d2,oe=_((e=>{const t=void 0!==window.navigator.share,{isFixed:n,onClose:r,user:s}=e,p=()=>{const{Icon:e,onClick:t,testID:n,text:o}=f({user:s,removeFollowerAction:M});return{Icon:e,text:o,onClick:t,testID:n}},m=()=>{const e={user:s,source:u.SC.PROFILE,testID:G,blockAction:I,unblockAction:P},{Icon:t,behavioralEventContext:n,onClick:o,testID:i,text:r}=(0,u.op)(e);return{behavioralEventContext:n,Icon:t,text:r,onClick:o,testID:i}},g=()=>({Icon:R.Z,text:ne,testID:$,onClick:()=>P((0,U.c4)(s.screen_name))}),y=()=>({Icon:F.Z,text:ee,onClick:Z,link:`/${s.screen_name}/lists`}),b=()=>({Icon:N.Z,text:K,onClick:S,link:`/${s.screen_name}/moments`}),v=()=>({Icon:H.Z,text:X,link:`/${s.screen_name}/topics`}),w=()=>{const{Icon:e,behavioralEventContext:t,onClick:n,text:o}=(0,h.N1)(s,T,L);return{behavioralEventContext:t,Icon:e,text:o,onClick:n,testID:j}},C=()=>({Icon:c.Z,text:te({screenName:s.screen_name}),onClick:()=>{e.onClose(),e.onReportUser()},behavioralEventContext:{viewType:"report"}}),_=()=>({Icon:s.want_retweets?z.Z:O.Z,text:s.want_retweets?J:Y,onClick:()=>{s.want_retweets?A():B()},behavioralEventContext:{viewType:s.want_retweets?"turn_off_retweets":"turn_on_retweets"}}),E=()=>({Icon:a.Z,text:q,onClick:()=>{e.onClose(),e.onShare()}}),x=()=>({Icon:V.Z,text:Q,onClick:()=>{e.onClose(),e.onCopyLink()}}),Z=()=>{e.onClose(),e.onViewLists()},S=()=>{e.onClose(),e.onViewMoments()},k=()=>{e.onClose(),e.onAddToRemoveFromList()},T=()=>{e.onMuteUser(),e.onClose()},L=()=>{e.onUnmuteUser(),e.onClose()},I=t=>{D(t,e.onBlockUser)},P=t=>{D(t,e.onUnblockUser)},M=t=>{D(t,e.onRemoveFollower)},B=()=>{e.onEnableRetweets(),e.onClose()},A=()=>{e.onDisableRetweets(),e.onClose()},D=(t,n)=>{const{confirm:o,onClose:i}=e;if(t){const{label:e,...r}=t;o({confirmButtonLabel:e,...r}).then(n,d.Z).finally(i)}else n()};return o.createElement(l.Z,{isFixed:n,items:(()=>{const{perspective:n}=e,o=[];return s.blocked_by||(!s.following&&s.id_str!==n&&s.protected||(!s.blocking&&o.unshift((0,W.k)(s,k)),o.push(y(),b()),o.unshift(v())),s.protected||s.blocking||(t&&o.push(E()),i.Z.isAvailable()&&o.push(x()))),s.id_str!==n&&(s.following&&o.unshift(_()),!s.blocking&&o.push(w()),s.followed_by&&o.push(p()),o.push(m()),s.smart_blocking&&o.push(g()),o.push(C())),o})(),onCloseRequested:r})}));var ie=n(95024),re=n(19565);const se={defaultToast:{text:s().a30b63da},showToast:!0};var ae=n(17772),le=n(63853),ce=n(36840),de=n(76275),ue=n(26278),he=n(76687),pe=n(19313),me=n(23335),ge=n(92160),ye=n(70083),be=n(67935),fe=n(99629),ve=n(25036),we=n(57659);const Ce=(0,ge.Z)().propsFromState((()=>({perspective:be.o1,sessionToken:be.Jv}))).propsFromActions((()=>({addToast:fe.fz,block:we.ZP.block,createLocalApiErrorHandler:(0,me.createLocalApiErrorHandlerWithContextFactory)("USER_ACTION_SHEET_CONTAINER"),disableRetweets:we.ZP.disableRetweets,dismissRitoSuggestedAction:ve.ru,enableRetweets:we.ZP.enableRetweets,mute:ye.r,removeFollower:we.ZP.removeFollower,unblock:we.ZP.unblock,unmute:we.ZP.unmute}))).withAnalytics(),_e=s().a9fd20be,Ee=s().e133be4e,xe=s().b3e6e1e7,Ze=s().f88553c8,Se=s().e6b88abb,ke=s().c6ea308b,Te=s().c1eb0fe5,Le=s().c32a3d03,Ie=s().badf3f35;class Re extends o.Component{constructor(...e){super(...e),this._renderFollowerActionMenu=()=>{const{onClose:e,user:t}=this.props;return o.createElement(I,{onBlock:this._handleBlockUser,onClose:e,onMute:this._handleMuteUser,onRemoveFollower:this._handleRemoveFollower,onReportUser:this._handleReportUser,onShare:this._handleShare,onUnblock:this._handleUnblockUser,onUnmute:this._handleUnmuteUser,user:t})},this._renderRitoFlaggedAccountsActionMenu=()=>{const{onClose:e,user:t}=this.props;return o.createElement(D,{onBlock:this._handleBlockUser,onClose:e,onRemoveFlaggedAccount:this._handleRemoveFlaggedAccount,onReportUser:this._handleReportUser,onUnblock:this._handleUnblockUser,user:t})},this._handleAddToRemoveFromList=()=>{this._scribeAction("add_to_list")},this._handleReportUser=()=>{const{analytics:e,history:t,promotedContent:n,user:o}=this.props,i=ce.C2.User,{featureSwitches:r}=this.context;if(this._scribeAction("report"),(0,ce.Yw)(r,i)){const r=(0,ce.j_)({clientReferer:window.location.pathname,isMedia:!1,isPromoted:void 0!==n,reportType:i,reportedUser:o.id_str,scribeNamespace:e.contextualScribeNamespace});t.push({pathname:"/i/safety/report_story_start",state:{input:{requested_variant:JSON.stringify(r)}}})}else t.push({pathname:`/i/report/user/${o.id_str}`,state:{clientReferer:window.location.pathname,promotedContent:n,scribeNamespace:e.contextualScribeNamespace}})},this._handleBlockUser=()=>{const{addToast:e,block:t,createLocalApiErrorHandler:n,promotedContent:o,user:i}=this.props;t(i.id_str,{promotedContent:o}).then((()=>{e({action:{label:Ee,onAction:this._handleUnblockUser},text:_e})}),n(re.d)),this._scribeAction("block")},this._handleUnblockUser=()=>{const{createLocalApiErrorHandler:e,promotedContent:t,unblock:n,user:o}=this.props;n(o.id_str,{promotedContent:t}).catch(e(ae.D)),this._scribeAction("unblock")},this._handleMuteUser=()=>{const{addToast:e,createLocalApiErrorHandler:t,mute:n,promotedContent:o,user:i}=this.props;n(i.id_str,{promotedContent:o}).then((()=>{e({action:{label:ie.d,onAction:this._handleUnmuteUser},text:(0,h.FK)(i.screen_name)})}),t({showToast:!0})),this._scribeAction("mute_user")},this._handleUnmuteUser=()=>{const{addToast:e,createLocalApiErrorHandler:t,promotedContent:n,unmute:o,user:i}=this.props;o(i.id_str,{promotedContent:n}).then((()=>{e({text:(0,h.X6)(i.screen_name)})}),t({showToast:!0})),this._scribeAction("unmute_user")},this._handleViewLists=()=>{this._scribeAction("view_lists")},this._handleViewMoments=()=>{this._scribeAction("view_moments")},this._handleDisableRetweets=()=>{const{addToast:e,createLocalApiErrorHandler:t,disableRetweets:n,user:o}=this.props,{name:i}=o;n(o.id_str).then((()=>{e({text:xe({name:i})})}),t(le.Z)),this._scribeAction("disable_retweets")},this._handleEnableRetweets=()=>{const{addToast:e,createLocalApiErrorHandler:t,enableRetweets:n,user:o}=this.props,{name:i}=o;n(o.id_str).then((()=>{e({text:Se({name:i})})}),t(le.Z)),this._scribeAction("enable_retweets")},this._handleShare=()=>{const{sessionToken:e,user:t}=this.props,n=(0,ue.w)(`https://twitter.com/${t.screen_name}`,e),o={title:ke({fullName:t.name,screenName:t.screen_name}),text:Te({fullName:t.name,bio:t.description}),url:n};window.navigator.share&&window.navigator.share(o).then((()=>{this._scribeAction("share")})).catch((()=>{this._scribeAction("share_error")}))},this._handleCopyLink=()=>{const{sessionToken:e,user:t}=this.props;i.Z.setString((0,ue.w)(`https://twitter.com/${t.screen_name}`,e)),this.props.addToast({text:Ze}),this._scribeAction("copy_link")},this._handleRemoveFollower=()=>{const{addToast:e,createLocalApiErrorHandler:t,removeFollower:n,user:o}=this.props;n(o.id_str).then((()=>{e({text:Le({screenName:o.screen_name})})}),t(se)),this._scribeAction("remove_follower")},this._handleRemoveFlaggedAccount=()=>{const{addToast:e,createLocalApiErrorHandler:t,dismissRitoSuggestedAction:n,user:o}=this.props;n(o.id_str).then((()=>{e({text:Ie({screenName:o.screen_name})})})).catch(t(ae.D)),this._scribeAction("unblock")}}_renderUserActionMenu(){const{isFixed:e,onClose:t,perspective:n,user:i}=this.props;return o.createElement(oe,{isFixed:e,onAddToRemoveFromList:this._handleAddToRemoveFromList,onBlockUser:this._handleBlockUser,onClose:t,onCopyLink:this._handleCopyLink,onDisableRetweets:this._handleDisableRetweets,onEnableRetweets:this._handleEnableRetweets,onMuteUser:this._handleMuteUser,onRemoveFollower:this._handleRemoveFollower,onReportUser:this._handleReportUser,onShare:this._handleShare,onUnblockUser:this._handleUnblockUser,onUnmuteUser:this._handleUnmuteUser,onViewLists:this._handleViewLists,onViewMoments:this._handleViewMoments,perspective:n,user:i})}render(){switch(this.props.view){case"rito_flagged_accounts":return this._renderRitoFlaggedAccountsActionMenu();case"profile":return this._renderUserActionMenu();default:return this._renderFollowerActionMenu()}}_scribeAction(e,t="user_action"){const{analytics:n,user:o}=this.props,i={items:[de.Z.getUserItem(o)]};return n.scribe({component:t,action:e,data:i})}}Re.contextType=pe.rC;const Pe=(0,he.ZP)(Ce(Re))},42569:(e,t,n)=>{n.d(t,{Z9:()=>H,ZP:()=>z,TJ:()=>B,Gr:()=>U,ET:()=>A,C_:()=>D});var o=n(7896),i=(n(6886),n(36728),n(2784)),r=n(44173),s=n(77089),a=n(19153),l=n(73186),c=n(32307),d=n(90610),u=n(87331),h=n(2847),p=n(91584),m=n(23301),g=n(45855),y=n(15579),b=n(76275),f=n(60397),v=n(34590),w=n(76687),C=n(19313),_=n(14429),E=n(25686);const x=e=>{const{children:t,promotedContent:n,user:o}=e;return i.createElement(E.Z,{style:Z.decorationWrapper},t,i.createElement(r.Z,{renderActionMenu:e=>i.createElement(_.ZP,{onClose:e,promotedContent:n,user:o,view:"follower"}),style:Z.actionMenu}))},Z=l.Z.create((e=>({decorationWrapper:{flexDirection:"row"},actionMenu:{marginStart:e.spaces.space12}})));var S=n(23335),k=n(92160),T=n(15934),L=n(57659);const I=(e,t)=>L.ZP.select(e,t.userId),R=(e,t)=>t.promotedContent,P=(0,k.Z)().propsFromState((()=>({promotedContent:R,user:I}))).adjustStateProps((({promotedContent:e,user:t})=>({promotedContent:e||(t?t.promoted_content:void 0),user:t}))).propsFromActions((()=>({createLocalApiErrorHandler:(0,S.createLocalApiErrorHandlerWithContextFactory)("USER_CELL_CONTAINER"),log:T.cM}))).withAnalytics(),M=e=>{const{user:t}=e,{featureSwitches:n}=i.useContext(C.rC),r=n.isTrue("responsive_web_twitter_blue_verified_badge_is_enabled");return t&&t.profile_image_url_https?i.createElement(F,(0,o.Z)({},e,{avatarUri:t.profile_image_url_https,description:t.description,entities:t.entities,followRequestReceived:t.follow_request_received,highlightedLabel:t.highlightedLabel,isAutoblocking:t.smart_blocking,isBlockedBy:t.blocked_by,isBlocking:t.blocking,isBlueVerified:r&&t.is_blue_verified,isDeviceFollowing:t.notifications,isFollowedBy:t.followed_by,isFollowing:t.following,isProtected:t.protected,isVerified:t.verified,name:t.name,screenName:t.screen_name,translatorType:t.translator_type,user:t,verifiedType:t.verified_type,withheldDescription:t.withheld_description,withheldEntities:t.withheld_entities})):null};M.defaultProps={cellClickable:!0,decoration:null,displayMode:v.Z.UserCompact,followRequestReceived:!1,hideBlocked:!1,promotedItemType:m.bj.USER,shouldScribeProfileClick:!0,shouldScribeImpression:!1,withFollowsYou:!1};const B=({isDeviceFollowing:e,userId:t})=>i.createElement(u.Z,{isFollowing:e,style:N.followButton,userId:t}),A=({loggedInUserId:e,onFollowClick:t,promotedContent:n,userId:o})=>e!==o?i.createElement(h.C,{onFollowClick:t,promotedContent:n,size:"small",style:N.followButton,userId:o}):null,D=e=>i.createElement(x,{promotedContent:e.promotedContent,user:e.user},A(e)),U=e=>i.createElement(r.Z,{renderActionMenu:t=>i.createElement(_.ZP,{onClose:t,promotedContent:e.promotedContent,user:e.user,view:"rito_flagged_accounts"})});class F extends i.Component{constructor(...e){super(...e),this._handleAvatarClick=()=>{const{shouldScribeProfileClick:e}=this.props;this._handleSaveAsRecentSearch(),e&&this._scribeAction({element:"avatar",action:"profile_click"}),this._handleAsyncPromotedEvent(m.dx.PROFILE_IMAGE_CLICK)},this._handleCellClick=()=>{const{history:e,onClick:t,screenName:n,user:o,userId:i}=this.props,r=this._getPromotedTweetState();this._handleSaveAsRecentSearch(),this._handleScreenNameClick(),t?t({user:o,state:r}):e.push({pathname:`/${n}`,state:{userId:i,...r||{}}})},this._handleScreenNameClick=()=>{const{shouldScribeProfileClick:e}=this.props;this._handleSaveAsRecentSearch(),e&&this._scribeAction({action:"profile_click"}),this._handleAsyncPromotedEvent(m.dx.SCREEN_NAME_CLICK)},this._handleSaveAsRecentSearch=()=>{const{saveAsRecentSearch:e,shouldStoreTypeaheadItem:t,userId:n}=this.props;e&&t&&t(y.Z.ItemType.USER)&&e({user:{id:n,type:f.g2.User}})},this._scribeAction=e=>{var t,n,o;const{analytics:i,promotedContent:r,user:s,userId:a}=this.props,l=null==(t=i.contextualScribeData)||null==(n=t.items)?void 0:n.find((e=>e.item_type===y.Z.ItemType.USER&&e.id===a)),c=null==(o=i.contextualScribeData)?void 0:o.search_details,d={items:[{...l,...b.Z.getUserItem(s,r)}],profile_id:a,search_details:c};i.scribe({...e,data:d})}}componentDidMount(){this._shouldRender()&&this._handleImpression()}shouldComponentUpdate(e){return!(0,c.Z)(this.props,e)}render(){const{analytics:e,avatarDecoration:t,bottomControl:n,cellClickable:r,createLocalApiErrorHandler:l,decoration:c,followRequestReceived:d,hideBlocked:u,highlightedLabel:h,history:m,isAutoblocking:g,isBlockedBy:y,isBlocking:b,isDeviceFollowing:f,isFollowing:v,isInSidebar:w,location:C,log:_,onClick:E,onFollowClick:x,promotedItemId:Z,saveAsRecentSearch:S,shouldScribeImpression:k,shouldScribeProfileClick:T,shouldStoreTypeaheadItem:L,socialContext:I,user:R,...P}=this.props;return this._shouldRender()?i.createElement(s.ZP.Provider,{value:{socialContextRefreshEnabled:()=>this.context.featureSwitches.isTrue("social_context_and_topic_context_refresh_alignment_enabled")}},i.createElement(a.ZP,(0,o.Z)({},P,{avatarDecoration:t,bottomControl:this._renderBottomControl(),decoration:this._renderDecoration(),highlightedLabel:R.highlightedLabel,isBlocking:R.blocking,onAvatarClick:this._handleAvatarClick,onCellClick:r?this._handleCellClick:void 0,onScreenNameClick:this._handleScreenNameClick,socialContext:I?{contextType:I.contextType,text:I.text,link:I.landingUrl?(0,p.s9)(I.landingUrl):void 0}:void 0,withDarkerInteractiveBackground:w}))):null}_renderBottomControl(){return this._renderControl(this.props.bottomControl||null)}_renderDecoration(){const{decoration:e,onFollowClick:t}=this.props;return this._renderControl(e,t)}_renderControl(e,t){const{loggedInUserId:n}=this.context,{displayMode:o,followRequestReceived:i,isAutoblocking:r,isBlocking:s,isDeviceFollowing:a,isFollowing:l,promotedContent:c,screenName:d,user:u,userId:h}=this.props;return"function"==typeof e?e({displayMode:o,followRequestReceived:i,isAutoblocking:r,isBlocking:s,isDeviceFollowing:!!a,isFollowing:!!l,loggedInUserId:n,promotedContent:c,screenName:d,user:u,userId:h,onFollowClick:t}):e}_shouldRender(){const{hideBlocked:e,isBlockedBy:t,isBlocking:n,screenName:o,userId:i}=this.props;return i&&o&&!(e&&(t||n))}_getHighlightedLabel(){const{highlightedLabel:e}=this.props.user;return e}_getPromotedTweetState(){const{promotedContent:e,promotedItemType:t}=this.props;return e&&t===m.bj.TWEET?{promotedTweetState:e}:null}_handleAsyncPromotedEvent(e){const{createLocalApiErrorHandler:t,log:n,promotedContent:o,promotedItemId:i,promotedItemType:r,userId:s}=this.props;if(o){const{disclosure_type:a,impression_id:l}=o;n({disclosureType:a,itemId:i||s,itemType:r,params:{event:e,impression_id:l}}).catch(t())}}_handleImpression(){const{createLocalApiErrorHandler:e,log:t,promotedContent:n,promotedItemType:o,shouldScribeImpression:i,userId:r}=this.props;if(n&&o===m.bj.USER){const{disclosure_type:o,impression_id:i}=n;t({disclosureType:o,itemId:r,itemType:m.bj.USER,params:{event:m.dx.IMPRESSION,impression_id:i}}).catch(e())}else i&&this._scribeAction({action:"impression"})}}F.contextType=C.rC,F.defaultProps=M.defaultProps;const N=l.Z.create((e=>({followButton:{marginStart:e.spaces.space12}}))),H=(0,w.ZP)((0,d.Z)(P(M))),z=e=>i.createElement(g.nO,{namespace:{element:"user"}},i.createElement(H,e))},96688:(e,t,n)=>{n.d(t,{Z:()=>L});var o=n(7896),i=(n(6886),n(2784)),r=n(76984),s=n.n(r),a=n(79404),l=n.n(a),c=n(63140),d=n(72983),u=n(25686),h=n(42569),p=n(23301),m=n(34590);const g=({displayMode:e,renderUserCell:t,userIds:n,withFinalItemBorder:o,withItemBorder:r})=>i.createElement(u.Z,null,n.map(((n,o)=>t?t(n):i.createElement(h.ZP,{decoration:h.ET,displayMode:e,key:n,promotedItemType:p.bj.USER,userId:n,withFollowsYou:!0}))));g.defaultProps={displayMode:m.Z.UserDetailed,withFinalItemBorder:!0,withItemBorder:!1};const y=g;var b=n(23803),f=n(23335),v=n(58343),w=n(92160),C=n(57659);const _=(e,t)=>t.userIds,E=(e,t)=>{const{filterPredicate:n=(e=>!!e),userIds:o}=t;return o.filter((t=>{const o=C.ZP.select(e,t);return!!o&&n(o)}))},x=(e,t)=>{const{userIds:n}=t;return n.reduce(((t,n)=>{const o=C.ZP.selectFetchStatus(e,n);return t[n]=o===b.ZP.NONE?b.ZP.LOADING:o,t}),{})},Z=(0,w.Z)().propsFromState((()=>({availableUserIds:(0,v.Z)(E,(e=>e)),fetchStatus:(0,v.Z)(E,x,_,((e,t,n)=>{let o=b.ZP.LOADED;for(let i=0;i<n.length;i++){const r=n[i];if(-1===e.indexOf(r)){const e=t[r]||b.ZP.LOADING;o=o===b.ZP.LOADED?e:o}if(o===b.ZP.LOADED)break}return o}))}))).propsFromActions((()=>({createLocalApiErrorHandler:(0,f.createLocalApiErrorHandlerWithContextFactory)("USERS_LIST_CONTAINER"),fetchUsersIfNeeded:C.ZP.fetchManyIfNeeded}))),S=l().f5b426c2,k={viewType:"user_list"};class T extends i.Component{constructor(...e){super(...e),this.state={allUsersUnavailable:!1},this._renderContent=()=>{const{availableUserIds:e,createLocalApiErrorHandler:t,fetchStatus:n,fetchUsersIfNeeded:r,filterPredicate:s,userIds:a,...l}=this.props;return i.createElement(y,(0,o.Z)({},l,{userIds:e}))},this._handleFetch=()=>{this._fetchUsersIfNeeded()}}componentDidMount(){this._fetchUsersIfNeeded()}componentDidUpdate(e){s()(e.userIds,this.props.userIds)||this._fetchUsersIfNeeded()}render(){return i.createElement(d.Z,{accessibilityLabel:S,behavioralEventContext:k,fetchStatus:this.state.allUsersUnavailable?b.ZP.LOADED:this.props.fetchStatus,onRequestRetry:this._handleFetch,render:this._renderContent,retryable:!1})}_fetchUsersIfNeeded(){const{availableUserIds:e,createLocalApiErrorHandler:t,fetchUsersIfNeeded:n,userIds:o}=this.props;n(o).then((()=>{this.setState({allUsersUnavailable:!1})}),t({[c.ZP.AddressBookLookupNotFound]:{customAction:()=>{0===e.length&&this.setState({allUsersUnavailable:!0})}},[c.ZP.OtherUserSuspended]:{customAction:()=>{0===e.length&&this.setState({allUsersUnavailable:!0})}}}))}}const L=Z(T)},75905:(e,t,n)=>{n.d(t,{Z:()=>o});n(6886),n(2784);const o=(0,n(56499).Z)({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~loader.AudioDock~loader.DMDrawer~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceRep"),n.e("loader.PushNotificationsPrompt")]).then(n.bind(n,62607))})},23021:(e,t,n)=>{n.d(t,{$f:()=>Z,KV:()=>y,LI:()=>I,Nn:()=>p,SC:()=>x,Vt:()=>v,X_:()=>C,Xs:()=>m,c4:()=>P,ed:()=>R,fX:()=>g,op:()=>S});var o=n(2784),i=n(84292),r=n(79404),s=n.n(r),a=n(73952),l=n(97463),c=n(1206),d=n(66961);const u=s().cfd2f35e,h=s().f9e45cfb,p=s().fcd4d489,m=s().a6450e84,g=s().hb279a11,y=s().a9fd20be,b=s().j546fb79,f=s().c9623eeb,v=s().e133be4e,w=s().h7f25e2c,C=s().ae3e9c81,_=s().e68b09b4,E=s().db2f1008,x=Object.freeze({TWEET_CARET:"tweet_caret",PROFILE:"user_profile",LIST_DETAIL:"list_detail",RICH_FEEDBACK:"rich_feedback",TWEET:"tweet",FOLLOWERS_LIST:"followers_list"}),Z=e=>({confirmButtonType:"destructiveFilled",headline:h({screenName:e}),label:m,text:g({screenName:e})}),S=({blockAction:e,blockSubtext:t,source:n,testID:o,unblockAction:i,unblockSubtext:r,user:s})=>{let a,l=c.Z;const u=I(s);switch(n){case x.PROFILE:case x.LIST_DETAIL:case x.FOLLOWERS_LIST:l=()=>{s.smart_blocking||!s.blocking?e(u):i(u)};break;case x.TWEET:case x.TWEET_CARET:case x.RICH_FEEDBACK:a=d.uq.block,l=()=>{s.smart_blocking||!s.blocking?e(u):i(u)}}return{behavioralEventContext:{viewType:s.blocking?"unblock":"block"},confirmation:u,onClick:l,testID:o,shortcutKey:a,Icon:k(s.blocking,s.smart_blocking),text:L(s),subText:T({user:s,blockSubtext:t,unblockSubtext:r})}},k=(e,t)=>t||!e?a.Z:l.Z,T=({blockSubtext:e,unblockSubtext:t,user:n})=>!n.smart_blocking&&n.blocking||!e?n.blocking?t:void 0:e(n.screen_name),L=e=>e.smart_blocking||!e.blocking?p({screenName:e.screen_name}):f({screenName:e.screen_name}),I=e=>{return e.smart_blocking||!e.blocking?Z(e.screen_name):(t=e.screen_name,{confirmButtonType:"primary",headline:b({screenName:t}),label:v,text:w});var t},R=({confirmation:e,handleConfirm:t,onClose:n})=>{const{confirmButtonType:r,headline:s,label:a,text:l}=e;return o.createElement(i.Z,{cancelButtonLabel:u,confirmButtonLabel:a,confirmButtonType:r,headline:s,onCancel:n,onConfirm:t,text:l})},P=e=>({confirmButtonType:"primary",headline:C({screenName:e}),label:_,text:E})},95024:(e,t,n)=>{n.d(t,{d:()=>i});var o=n(79404);const i=n.n(o)().gf5e9ea6},35932:(e,t,n)=>{n.d(t,{k:()=>s});var o=n(79404),i=n.n(o),r=n(26378);const s=(e,t)=>{const{id_str:n,screen_name:o}=e,s=(0,i().d78131b9)({screenName:o});return{behavioralEventContext:{viewType:"add_to_list"},Icon:r.Z,text:s,link:{pathname:"/i/lists/add_member",state:{userId:n}},onClick:t}}},50813:(e,t,n)=>{n.d(t,{Aq:()=>u,FK:()=>f,GS:()=>a,N1:()=>p,PY:()=>h,X6:()=>v,cm:()=>l});n(2784);var o=n(79404),i=n.n(o),r=n(42203),s=n(49511);const a=i().hb568af4,l=i().bb1cbeb6,c=(i().h2f62206,i().e67b2d65),d=i().f05597b3,u=e=>c({screenName:e}),h=e=>d({screenName:e}),p=(e,t,n)=>{const{muting:o,screen_name:i}=e;return{behavioralEventContext:{viewType:o?"unmute_person":"mute_person"},text:o?h(i):u(i),onClick:o?n:t,Icon:o?r.Z:s.Z}},m=i().h59f52ee,g=i().eea0cbee,y=i().i29533b3,b=i().h129c3c3,f=e=>e?(e=>y({screenName:e}))(e):m,v=e=>e?(e=>b({screenName:e}))(e):g},19565:(e,t,n)=>{n.d(t,{d:()=>i});var o=n(79404);const i={defaultToast:{text:n.n(o)().b6878b0a},showToast:!0}},67619:(e,t,n)=>{n.d(t,{F:()=>s});var o=n(1206),i=n(63140),r=n(90437);const s={[i.ZP.AddressBookLookupNotFound]:{customAction:r.vv},[i.ZP.GenericUserNotFound]:{customAction:o.Z},[i.ZP.OtherUserSuspended]:{customAction:o.Z},showToast:!0}},65249:(e,t,n)=>{n.d(t,{c:()=>r});var o=n(1206),i=n(63140);const r={[i.ZP.OtherUserSuspended]:{customAction:o.Z},[i.ZP.StatusViewForbidden]:{customAction:o.Z}}},99628:(e,t,n)=>{n.d(t,{H:()=>m});var o=n(79404),i=n.n(o),r=n(1206),s=n(63140),a=n(90437);const l=i().j4292c24,c=i().a0ba5842,d=i().i859a9d4,u=i().a5202b82,h=i().f8cbf714,p=i().f2e66452,m={defaultToast:{text:u},[s.ZP.CurrentUserSuspended]:{toast:{text:p,action:{label:d,link:"https://support.twitter.com/articles/15790"}}},[s.ZP.DuplicateFollowRequest]:{customAction:r.Z},[s.ZP.FollowBlockedUserError]:{toast:{text:l}},[s.ZP.FollowError]:{customAction:a.w1},[s.ZP.FollowRateLimitExceeded]:{toast:{action:{label:d,link:"https://support.twitter.com/articles/66885"},text:c}},[s.ZP.TargetUserNotFound]:{toast:{text:h}}}},17772:(e,t,n)=>{n.d(t,{D:()=>i});var o=n(79404);const i={defaultToast:{text:n.n(o)().ca96fe6e},showToast:!0}},90112:(e,t,n)=>{n.d(t,{X:()=>i});var o=n(79404);const i={defaultToast:{text:n.n(o)().e1a0aaca},showToast:!0}},63853:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(63140),i=n(90437);const r={[o.ZP.FollowError]:{customAction:i.w1}}},81371:(e,t,n)=>{n.d(t,{R:()=>s});var o=n(2784);const i=()=>new Date,r=o.createContext(i),s=()=>o.useContext(r)},58343:(e,t,n)=>{n.d(t,{Z:()=>s});var o=n(76984),i=n.n(o),r=n(24949);const s=(0,r.wN)(r.PW,i())},66961:(e,t,n)=>{n.d(t,{OX:()=>u,Od:()=>c,PN:()=>h,uq:()=>l,wR:()=>m});n(6886),n(36728);var o=n(9933),i=n(79404),r=n.n(i),s=n(16587),a=n(73036);const l=Object.freeze({openKeyboardShortcuts:"?",swipeLeft:"left",swipeRight:"right",nextItem:"j",previousItem:"k",refresh:".",nightMode:"z",bookmark:"b",block:"x",mute:"u",newTweet:"n",newMessage:"m",toggleDMDrawer:"i",goHome:"g h",goExplore:"g e",goNotifications:"g n",goMentions:"g r",goProfile:"g p",goLikes:"g l",goLists:"g i",goMessages:"g m",goMomentMaker:"g c",goToDrafts:"g f",goToScheduled:"g t",goSettings:"g s",goToUser:"g u",goBookmarks:"g b",goTopArticles:"g a",goDisplay:"g d",search:"/",audio:{dock:"a d",play:"a space",mute:"a m"},video:{play1:"k",play2:"space",mute:"m"},columns:{createNewColumn:"c n",duplicateColumn:"c d",focusOnReorderButton:"c r",lastColumn:"c 0",nextColumn:"]",nthColumn:"c 1..9",prevColumn:"[",removeColumn:"c backspace",toggleColumnOptions:"c o",undoRemoveColumn:"c u"},decks:{createNewDeck:"d n",editActiveDeck:"d e",lastPinnedDeck:"d 0",manageAllDecks:"d m",nthPinnedDeck:"d 1..9"}}),c=(0,s.Z)(((e,t)=>{const n=t?[{description:r().b7fa0cfe,keys:l.goTopArticles,universal:!1}]:[];return[{description:r().d5696fcc,keys:l.openKeyboardShortcuts,universal:!0},{description:r().e722b9d0,keys:l.nextItem,universal:!0},{description:r().a86b5194,keys:l.previousItem,universal:!0},{description:r().a690c4d0,keys:"Space",universal:!0},{description:r().ed90d9ac,keys:l.refresh,universal:!1},{description:r().ha8209bc,keys:l.goHome,universal:!1},{description:r().fcf3e54c,keys:l.goExplore,universal:!0},{description:r().eb75875e,keys:l.goNotifications,universal:!1},{description:r().cdb53d7a,keys:l.goMentions,universal:!1},{description:r().fa98627a,keys:l.goProfile,universal:!1},{description:r().d4ebc798,keys:l.goToDrafts,universal:!1},{description:r().e4e4e50a,keys:l.goToScheduled,universal:!1},{description:r().d7b8ebaa,keys:l.goLikes,universal:!1},{description:r().b0041756,keys:l.goLists,universal:!1},{description:r().d4986f86,keys:l.goMessages,universal:!1},{description:r().c106055a,keys:l.goMomentMaker,universal:!1},{description:r().bb081ea2,keys:l.goSettings,universal:!0},{description:r().i3145aa0,keys:l.goBookmarks,universal:!1},...n,{description:r().eee2ed92,keys:l.goToUser,universal:!0},{description:r().ee5ccf3e,keys:l.goDisplay,universal:!1}]})),d=a.ZP.isMac()?"⌘":"CTRL",u=(0,s.Z)((e=>{const t=e.isTrue("responsive_web_reactions_enabled")?[{description:r().ib0cb828,keys:o.Z.shortcuts.reactHmm,universal:!1},{description:r().h03c8a84,keys:o.Z.shortcuts.reactSad,universal:!1},{description:r().j055356c,keys:o.Z.shortcuts.reactHaha,universal:!1},{description:r().a849ef88,keys:o.Z.shortcuts.reactCheer,universal:!1},{description:r().d442e6e0,keys:o.Z.shortcuts.reactLike,universal:!1}]:[];return[{description:r().b1547096,keys:l.newTweet,universal:!1},{description:r().j9e025aa,keys:`${d} Enter`,universal:!1},{description:r().e736990a,keys:l.newMessage,universal:!1},{description:r().a9ae1e78,keys:l.search,universal:!0},{description:r().fe731016,keys:o.Z.shortcuts.like,universal:!1},...t,{description:r().d17df548,keys:o.Z.shortcuts.reply,universal:!1},{description:r().bac8f4c2,keys:o.Z.shortcuts.retweet,universal:!1},{description:r().h7755862,keys:o.Z.shortcuts.share,universal:!0},{description:r().gb303814,keys:l.bookmark,universal:!1},{description:r().c03b1126,keys:l.mute,universal:!1},{description:r().ebd2abb2,keys:l.block,universal:!1},{description:r().db1e4288,keys:"Enter",universal:!0},{description:r().eebdef38,keys:o.Z.shortcuts.openMediaModal,universal:!0},{description:r().b488758c,keys:l.toggleDMDrawer,universal:!1}]})),h=(0,s.Z)((e=>{const t=[{description:r().c82314e0,keys:l.video.play1,universal:!0},{description:r().c82314e0,keys:l.video.play2,universal:!0},{description:r().b881560e,keys:l.video.mute,universal:!0}];return t.push({description:r().a94f7302,keys:l.audio.dock,universal:!1},{description:r().a7e604c6,keys:l.audio.play,universal:!1},{description:r().f978c4fc,keys:l.audio.mute,universal:!1}),t})),p=(0,s.Z)(((e,t)=>{const n=c(e,t),o=u(e),i=h(e),r={};return[...o,...i,...n].forEach((({description:e,keys:t})=>r[t]=e)),JSON.stringify(r)})),m=(e,t,n)=>{if(n)return{dataSet:{"at-shortcutkeys":p(e,t)}}}},26278:(e,t,n)=>{n.d(t,{w:()=>o});n(6886),n(14121),n(60523);function o(e,t){const n=new URL(e,"https://twitter.com");return n.searchParams.has("s")||n.searchParams.set("s","20"),!n.searchParams.has("t")&&t&&n.searchParams.set("t",encodeURIComponent(t)),n.href}},46110:(e,t,n)=>{n.d(t,{D$:()=>s,Du:()=>c,GK:()=>l,Iv:()=>u,pz:()=>h,rl:()=>d});var o=n(2784),i=n(91584),r=n(35210);const s=(e,t,n)=>e.retweeted_status?a(e,t):e.community_id_str&&n?l(e,n):void 0,a=(e,t)=>{if(e.retweeted_status)return{contextType:r.Z.Retweet,isSelfRetweet:e.user.id_str===t,name:e.user.name,screenName:e.user.screen_name}},l=(e,t)=>({contextType:r.Z.Community,landingUrl:{url:`https://twitter.com/i/communities/${t.id_str}`,urlType:"ExternalUrl"},text:t.name}),c=({isCellWithProminentSocialContext:e,socialContext:t,topic:n})=>{if(null!=t&&t.topicContext){const o=t.topicContext;return{contextType:e?r.Z.TextOnly:r.Z.Topic,landingUrl:{url:`twitter://topics_timeline?id=${o.topicId}`,urlType:"DeepLink"},text:null==n?void 0:n.name,topicContext:o}}if(null!=t&&t.generalContext)return{...t.generalContext}},d=e=>{const{contextType:t,landingUrl:n,text:o}=e;return{link:n?(0,i.s9)(n):void 0,text:o,contextType:t}},u={contextType:r.Z.Pin,text:""},h=o.createContext(void 0)},34590:(e,t,n)=>{n.d(t,{Z:()=>o});const o=Object.freeze({User:"User",ProfileCard:"ProfileCard",UserCompact:"UserCompact",UserConcise:"UserConcise",UserDetailed:"UserDetailed",PendingFollowUser:"PendingFollowUser"})},31716:(e,t,n)=>{n.d(t,{NR:()=>c,Yt:()=>l});var o=n(26853),i=n(51670);const r="liveTweetCounts",s="UPDATE",a={};o.Z.register({[r]:function(e=a,t){switch(t.type){case i.ud:{var n;const o=null==(n=t.payload)?void 0:n.tweets;if(o){const t={...e};return Object.keys(o).forEach((e=>{t[e]&&delete t[e]})),t}return e}case s:return{...e,[t.payload.tweetId]:{...e[t.payload.tweetId],...t.payload.liveCounts}};default:return e}}});const l=(e,t)=>e.liveTweetCounts[t],c=e=>(t,n)=>t((e=>({payload:e,type:s}))(e))},15934:(e,t,n)=>{n.d(t,{cM:()=>g,dS:()=>m,iY:()=>y});var o=n(58955),i=n(23301),r=n(26853),s=n(53392);const a={},l=Object.freeze({REQUEST:"rweb/promotedContent/LOG_REQUEST",SUCCESS:"rweb/promotedContent/LOG_SUCCESS",FAILURE:"rweb/promotedContent/LOG_FAILURE"}),c="rweb/promotedContent/LOG_UNIQUE_EVENT",d=(0,o.Z)([i.dx.IMPRESSION,i.dx.DWELL]),u=(0,o.Z)([i.AJ.TREND_VIEW,i.AJ.SPOTLIGHT_IMPRESSION]),h=e=>({payload:{eventKey:e},type:c});const p=(e,t)=>!!e.promotedContent[t],m=e=>(t,n,{api:o})=>{const{event:i,impression_id:r,promoted_trend_id:a}=e,c=`trend-${a}-${i}`;if(u.has(i)&&p(n(),c))return Promise.resolve();const d={promoted_trend_id:a,event:i,impression_id:r};return(0,s._O)(t,{params:d,request:o.PromotedContent.log})({actionTypes:l,context:"APP_PROMOTED_CONTENT_LOG",meta:d},((e,t)=>{if(!t&&u.has(i))return[h(c)]}))},g=({disclosureType:e,itemId:t,itemType:n,params:o})=>(i,r,{api:a})=>{const{event:c,impression_id:u}=o,m=`${n}-${null!=t?t:"undefined"}-${null!=u?u:"undefined"}-${null!=c?c:"undefined"}`;if(d.has(c)&&p(r(),m))return Promise.resolve();const g=e&&"earned"===e.toLowerCase()?"1":null,y={...o,earned:g,epoch_ms:Date.now()};return(0,s._O)(i,{params:y,request:a.PromotedContent.log})({actionTypes:l,context:"APP_PROMOTED_CONTENT_LOG",meta:y},((e,t)=>{if(!t&&d.has(c))return[h(m)]}))},y=e=>(t,n,{api:o})=>(0,s._O)(t,{params:e,request:o.PromotedContent.log})({actionTypes:l,context:"APP_PROMOTED_CONTENT_LOG",meta:e});r.Z.register({promotedContent:function(e=a,t){if(t.type===c){if(!t.payload)return e;const{eventKey:n}=t.payload;return{...e,[n]:!0}}return e}})},70083:(e,t,n)=>{n.d(t,{r:()=>u});n(36728);var o=n(90867),i=n(51234),r=n(78198),s=n(30102),a=n(98701),l=n(65621),c=n(69748),d=n(57659);const u=(e,t)=>(n,u,{api:h,featureSwitches:p})=>n(d.ZP.mute(e,t)).then((()=>{const t=u(),d=(0,i.br)(t),h=(0,o.Z)(s.ZP.selectAll(t)).reduce(((n,o)=>{if(null!=o)if(o.user===e)n[o.id_str]=!0;else if(o.retweeted_status){const i=s.ZP.select(t,o.retweeted_status);(null==i?void 0:i.user)===e&&(n[o.id_str]=!0)}return n}),{}),m=[(0,l.ZP)({useGraphQL:p.isTrue("responsive_web_graphql_home_enabled")}).removeTweets(h),(0,l.ZP)({useLatest:!0,useGraphQL:!0}).removeTweets(h)];if(d.type===r.fr.CUSTOM){const e=p.isTrue("responsive_web_dtime_tpat_enabled"),t=p.isTrue("responsive_web_dtime_show_new_tweets_enabled");if(d.id&&e){const e=(0,a.R)(d.id,t);m.push(e.removeTweets(h))}}const g=(0,c.k9)();if(g.selectInitialFetchStatus(t)&&!g.selectCanRefresh(t)){const n=(0,c.f8)(e,t,g);n&&m.push(n)}return n(m)}))},98701:(e,t,n)=>{n.d(t,{R:()=>s,Z:()=>r});var o=n(78772),i=n(62104);const r=({endpointParams:e,endpointUrl:t,isUserRefreshable:n,timelineId:o})=>(0,i.Z)({timelineId:o,isUserRefreshable:n,network:{getEndpoint:e=>e.URT.fetchGeneric,getEndpointParams:({count:n,cursor:o})=>({...e,cursor:"string"==typeof o?o:void 0,count:n,endpointUrl:t})},context:"FETCH_TIMELINE",perfKey:"generic"}),s=(e,t)=>(0,i.Z)({timelineId:`generic-graphql-timeline-${e}`,isUserRefreshable:t,network:{getEndpoint:e=>e.Graphql.fetchGenericTimelineById,getEndpointParams:({count:t,cursor:n})=>({cursor:"string"==typeof n?n:void 0,count:t,timelineId:e})},formatResponse:o.Z,context:"FETCH_GENERIC_TIMELINE_GQL",perfKey:"genericGQL"})},69748:(e,t,n)=>{n.d(t,{du:()=>c,f8:()=>d,k9:()=>l});var o=n(78772),i=n(52612),r=n(1231),s=n(57659),a=n(62104);const l=()=>(0,a.Z)({timelineId:"mutedAccountsGraphQL",network:{getEndpoint:e=>e.Graphql.fetchMutedAccounts,getEndpointParams:({count:e,cursor:t})=>({count:e,cursor:"string"==typeof t?t:void 0})},context:"FETCH_MUTED_ACCOUNTS",perfKey:"mutedAccountsGraphql",formatResponse:o.Z}),c=e=>(t,n)=>{const o=n();t(e.selectEntries(o).filter((e=>{const t=e.type===i.ZP.User?e.content.id:"",n=s.ZP.select(o,t);return n&&!n.muting})).map((t=>e.removeEntry(t.entryId))))},d=(e,t,n)=>{if(!n.selectEntries(t).find((t=>t.type===i.ZP.User&&t.content.id===e))){const t=(0,r.OD)(e),o=(0,r.$0)({entryId:t,id:e,sortIndex:Date.now().toString()});return n.injectEntry(o)}}},25036:(e,t,n)=>{n.d(t,{EC:()=>l,ru:()=>c});n(36728);var o=n(78772),i=n(52612),r=n(53392),s=n(57659),a=n(62104);const l=e=>(0,a.Z)({timelineId:`ritoFlaggedAccounts-${e}`,network:{getEndpoint:e=>e.RitoFlaggedAccounts.fetchRitoFlaggedAccounts,getEndpointParams:({count:e,cursor:t})=>({count:e,cursor:"string"==typeof t?t:void 0})},context:"FETCH_RITO_FLAGGED_ACCOUNTS_TIMELINE",perfKey:"ritoFlaggedAccounts",formatResponse:o.Z}),c=e=>(t,n,{api:o})=>{const i=n(),a=s.ZP.selectLoggedInUser(i),c=l((null==a?void 0:a.id_str)||"");return r.Vg(t,{params:{userId:e},request:o.RitoDismissSuggestedAction.dismissRitoSuggestedAction})("RITO_DISMISS_SUGGESTED_ACTION").then((n=>{if(c.selectInitialFetchStatus(i)&&!c.selectCanRefresh(i)){const n=d({module:c,state:i,userId:e});return n&&t(n)}}))},d=({module:e,state:t,userId:n})=>o=>{const r=[],s=e.selectEntries(t),a=`ritoflaggedaccountsmodule-${n}`,l=s.find((e=>e.type===i.ZP.TimelineModule&&e.entryId===a)),c=!s.some((e=>e.entryId.startsWith("ritoflaggedaccountsmodule")&&e.entryId!==a));l&&(r.push(e.removeEntry(a)),c&&r.push(e.deleteTimeline())),o(r)}},25375:(e,t,n)=>{n.d(t,{LU:()=>a,Qy:()=>u,fV:()=>d,jf:()=>c,y5:()=>l});var o=n(79404),i=n.n(o);const r=i().ja781451,s=i().cfa1a7b9,a=(e,t)=>new Date(e).toISOString().substring(t?11:14,19);function l(e){return e||0}function c(e,t){const n=l(t);return 0===n?0:l(e)/n}function d(e){const t=l(e);return t>=1e5?s(t):r(t)}function u(e,t,n){var o,i;const r=null==t?void 0:t.find((t=>t.metric_type===e)),s=null==n?void 0:n.find((t=>t.metric_type===e)),a=null!=(o=null==r?void 0:r.metric_value)?o:0,l=null!=(i=null==s?void 0:s.metric_value)?i:0;return{metric_type:e,organic_value:a,promoted_value:l,total_value:a+l}}},3330:(e,t,n)=>{n.d(t,{ZP:()=>E});var o=n(2784),i=n(25686),r=n(79404),s=n.n(r),a=n(51908),l=n(3655),c=n(49650),d=n(36934),u=n(74673),h=n(73186),p=n(22404);const m=s().i2785009,g=s().c778d80b,y=s().d9687d23,b=s().ac73eb5a,f=s().c5a9f921,v=e=>{const{label:t,popover:n}=e;return t?o.createElement(i.Z,{style:_.labelBar},o.createElement(d.ZP,{color:"gray700",size:"subtext2",weight:"medium"},t),n?o.createElement(p.Z,{label:t,popover:n}):null):null},w=e=>{const{style:t,unit:n}=e;return n?o.createElement(d.ZP,{color:"gray700",style:[_.unitText,t],weight:"medium"},n):null},C=e=>{let t,n,{trendValue:r}=e;return void 0===r?null:(Math.abs(r)<.1?(r=Math.round(1e3*r)/1e3,t=g(r)):(r=Math.round(100*r)/100,t=m(r)),n=((e,t)=>e<0?y({trendValueNegativePercent:t}):0===e?b:f({trendValuePositivePercent:t}))(r,t),r<0?o.createElement(i.Z,{style:_.trendBar},o.createElement(a.Z,{accessibilityLabel:n,style:_.trendIconNeg}),o.createElement(d.ZP,{accessibilityHidden:!0,color:"red500",size:"body",weight:"medium"},t)):0===r?o.createElement(i.Z,{style:_.trendBar},o.createElement(l.Z,{accessibilityLabel:n,style:_.trendIconZero}),o.createElement(d.ZP,{accessibilityHidden:!0,color:"gray700",size:"body",weight:"medium"},t)):o.createElement(i.Z,{style:_.trendBar},o.createElement(c.Z,{accessibilityLabel:n,style:_.trendIconPos}),o.createElement(d.ZP,{accessibilityHidden:!0,color:"green500",size:"body",weight:"medium"},t)))},_=h.Z.create((e=>({dataPoint:{display:"flex",flexDirection:"column",alignItems:"flex-start"},labelBar:{display:"flex",flexDirection:"row",alignItems:"center",marginBottom:e.spaces.space2},valueBar:{display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"flex-end",marginBottom:e.spaces.space4},unitText:{flexDirection:"column"},trendBar:{flexDirection:"row"},textWithMargin:{marginEnd:e.spaces.space4},trendIconPos:{marginTop:e.spaces.space1,marginBottom:e.spaces.space1,marginEnd:e.spaces.space2,height:e.spaces.space16,color:e.colors.green500},trendIconZero:{marginTop:e.spaces.space1,marginBottom:e.spaces.space1,marginEnd:e.spaces.space2,height:e.spaces.space16,color:e.colors.gray700},trendIconNeg:{marginTop:e.spaces.space1,marginBottom:e.spaces.space1,marginEnd:e.spaces.space2,height:e.spaces.space16,color:e.colors.red500}}))),E=e=>{const{animated:t,count:n,label:r,popover:s,size:a,subTextList:l,trendValue:c,unit:h,value:p}=e,m=h||void 0!==c?_.textWithMargin:void 0,g=void 0!==c?_.textWithMargin:void 0;return o.createElement(i.Z,{style:_.dataPoint},o.createElement(v,{label:r,popover:s}),o.createElement(i.Z,{style:_.valueBar},t?o.createElement(u.ZP,{count:n,size:a,style:m,weight:"bold"},p):o.createElement(d.ZP,{size:a,style:m,weight:"bold"},p),o.createElement(w,{style:g,unit:h}),o.createElement(C,{trendValue:c})),l)}},22404:(e,t,n)=>{n.d(t,{Z:()=>g});var o=n(2784),i=n(25686),r=n(79404),s=n.n(r),a=n(92748),l=n(36934),c=n(29496),d=n(4642),u=n(73186);const h=s().affbaf62,p=s().c388d026,m=u.Z.create((e=>({popover:{padding:e.spaces.space32},popoverTitle:{marginBottom:e.spaces.space8},popoverText:{marginBottom:e.spaces.space24},iconInformation:{color:e.colors.gray700,fontSize:e.fontSizes.subtext3,cursor:"pointer",marginStart:e.spaces.space4}}))),g=e=>{const{label:t,popover:n}=e;return o.createElement(i.Z,null,o.createElement(d.Z,{enableEnterKeyToggle:!0,preferredVerticalOrientation:"up",renderContent:e=>o.createElement(i.Z,{accessibilityRole:"dialog",style:m.popover},o.createElement(i.Z,{style:m.popoverTitle},o.createElement(l.ZP,{size:"title3",weight:"heavy"},t)),o.createElement(i.Z,{style:m.popoverText},n),o.createElement(c.ZP,{onPress:e,type:"primaryOutlined"},p)),withArrow:!0},o.createElement(a.Z,{accessibilityLabel:h,accessibilityRole:"button",style:m.iconInformation})))}},84292:(e,t,n)=>{n.d(t,{Z:()=>C});n(6886);var o=n(2784),i=n(25686),r=n(79404),s=n.n(r),a=n(36934),l=n(29496),c=n(50829),d=n(54484),u=n(54044),h=n(71791),p=n(73206),m=n(73186);const g="confirmationSheetDialog",y=s().e23b20a0,b=s().bb5d8cd2,f={viewType:"cancel"};class v extends o.Component{constructor(...e){super(...e),this.sheetLabelledById=(0,d.F)(),this._handleConfirmPress=e=>t=>{const{onConfirm:n,withForwardFocusOnConfirm:o}=this.props;o&&e(),n(t)},this._handleButtonRefUpdate=e=>{e&&!this._wasFocused&&(e.focus(),this._wasFocused=!0)},this._renderLearnMoreLink=()=>{const{learnMoreLink:e,learnMoreText:t}=this.props;return e&&t?o.createElement(a.ZP,{link:e},t):null}}render(){const{Icon:e,allowBackNavigation:t,cancelButtonLabel:n,cancelButtonLink:r,confirmButtonDisabled:s,confirmButtonLabel:d,confirmButtonLink:m,confirmButtonType:y,confirmationBehavioralEventViewType:b,enableMaskForDismiss:C,headline:_,iconStyle:E,onCancel:x,onMaskClick:Z,testID:S,text:k,withCancelButton:T}=this.props,L=this._renderLearnMoreLink(),I={viewType:null!=b?b:"confirm"};return o.createElement(u.Z,null,(({screenWidth:u})=>o.createElement(p.Z,{accessibilityLabelledBy:this.sheetLabelledById,accessibilityRole:"alertdialog",allowBackNavigation:t,enableMaskForDismiss:C,onMaskClick:Z||x,style:h.Z.isNarrowScreenWidth(u)?w.narrowScreenContainer:w.container,testID:S||g,type:"center",withMask:!0},e?o.createElement(e,{style:[w.icon,E]}):null,_&&o.createElement(a.ZP,{accessibilityLevel:1,accessibilityRole:"header",align:"left",nativeID:this.sheetLabelledById,size:"headline1",style:!(!k&&!L)&&w.bottomMargin,weight:"bold"},_),k||L?o.createElement(a.ZP,{align:"left",color:"gray700",size:"body",style:w.labelText},k," ",L):null,o.createElement(i.Z,{style:T?w.stackedButtons:w.buttons},o.createElement(c.Z.Context.Consumer,null,(({disableFocusingPreviousActiveElement:e})=>o.createElement(l.ZP,{behavioralEventContext:I,disabled:s,link:m,onPress:this._handleConfirmPress(e),ref:this._handleButtonRefUpdate,size:"large",style:T?w.stackedButton:w.button,testID:v.testIDs.confirm,type:"destructiveFilled"!==y?"primaryFilled":y},d))),T&&o.createElement(l.ZP,{behavioralEventContext:f,link:r,onPress:x,size:"large",style:T?w.stackedButton:w.button,testID:v.testIDs.cancel,type:"primaryOutlined"},n)))))}}v.defaultProps={cancelButtonLabel:y,confirmButtonLabel:b,confirmButtonType:"primary",enableMaskForDismiss:!0,withCancelButton:!0,withForwardFocusOnConfirm:!1},v.testIDs={confirm:"confirmationSheetConfirm",cancel:"confirmationSheetCancel"};const w=m.Z.create((e=>({container:{alignItems:"left",padding:e.spaces.space32},narrowScreenContainer:{alignItems:"left",padding:e.spaces.space28},icon:{marginBottom:e.spaces.space16,fontSize:e.spaces.space32,color:e.colors.text},bottomMargin:{marginBottom:e.spaces.space8},labelText:{width:"100%"},buttons:{flexDirection:"row",flexWrap:"wrap-reverse",marginBottom:`calc(${e.spaces.space12} * -1)`,marginTop:e.spaces.space24,marginEnd:`calc(${e.spaces.space12} * -1)`,width:"100%"},stackedButtons:{flexDirection:"column",marginBottom:`calc(${e.spaces.space12} * -1)`,marginTop:e.spaces.space24,marginEnd:`calc(${e.spaces.space12} * -1)`,width:"100%"},button:{flexGrow:1,marginBottom:e.spaces.space12,marginEnd:e.spaces.space12,overflow:"hidden",textOverflow:"ellipsis",width:e.spaces.space80,whiteSpace:"nowrap"},stackedButton:{flexGrow:1,marginBottom:e.spaces.space12,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}))),C=v},85682:(e,t,n)=>{n.d(t,{Z:()=>s});var o=n(2784),i=n(25686),r=n(73186);function s({spacing:e}){return o.createElement(i.Z,{accessibilityRole:"separator",style:[a.divider,{marginVertical:null!=e?r.Z.theme.spaces[e]:void 0}]})}const a=r.Z.create((e=>({divider:{backgroundColor:e.colors.borderColor,height:e.borderWidths.small}})))},56510:(e,t,n)=>{n.d(t,{$f:()=>m,c4:()=>g,ed:()=>y});var o=n(2784),i=n(79404),r=n.n(i),s=n(84292);const a=r().e23b20a0,l=r().e5630cdd,c=r().a9d050cc,d=r().da82a3e7,u=r().a3d6d66f,h=r().h517e8d8,p=r().ce215de2,m=e=>({confirmButtonType:"destructiveFilled",headline:l({screenName:e}),label:c,text:d({screenName:e})}),g=e=>({confirmButtonType:"primary",headline:u({screenName:e}),label:h,text:p}),y=({confirmation:e,handleConfirm:t,onClose:n})=>{const{confirmButtonType:i,headline:r,label:l,text:c}=e;return o.createElement(s.Z,{cancelButtonLabel:a,confirmButtonLabel:l,confirmButtonType:i,headline:r,onCancel:n,onConfirm:t,text:c})}},14767:(e,t,n)=>{n.d(t,{Z:()=>me});var o=n(2784),i=n(14983),r=n.n(i),s=n(79404),a=n.n(s),l=n(16587),c=n(1206),d=n(77934),u=(n(6886),n(36728),n(25686)),h=n(75733),p=n(73952),m=n(44487),g=n(29496),y=n(56510);const b=a().jd505700,f=a().e024ee92,v=a().hfc90ee9;class w extends o.Component{constructor(...e){super(...e),this.state={showBlockConfirmation:!1,showRemoveAutoblockConfirmation:!1},this._renderMenu=e=>{const{isFixed:t}=this.props;return o.createElement(m.Z,{isFixed:t,items:this._getActionItems(),onCloseRequested:e,shouldCloseOnClick:!0})},this._removeAutoblockAction=()=>({text:f,onClick:this._showRemoveAutoblockConfirmation,Icon:h.Z}),this._blockAction=()=>{const{userScreenName:e}=this.props;return{text:v({screenName:e}),onClick:this._showBlockConfirmation,Icon:p.Z,isEmphasized:!0}},this._showRemoveAutoblockConfirmation=()=>{this.setState({showRemoveAutoblockConfirmation:!0})},this._showBlockConfirmation=()=>{this.setState({showBlockConfirmation:!0})},this._handleRemoveAutoblockCancel=()=>{this.setState({showRemoveAutoblockConfirmation:!1})},this._handleBlockCancel=()=>{this.setState({showBlockConfirmation:!1})},this._handleBlock=()=>{const{onBlock:e}=this.props;e(),this.setState({showBlockConfirmation:!1})},this._handleRemoveAutoblock=()=>{const{onUnblock:e}=this.props;e(),this.setState({showRemoveAutoblockConfirmation:!1})}}render(){const{size:e,style:t,testID:n}=this.props;return o.createElement(u.Z,null,o.createElement(g.ZP,{accessibilityLabel:b,renderMenu:this._renderMenu,size:e,style:t,testID:n,type:"destructiveFilled"},b),this.state.showBlockConfirmation?this._renderBlockConfirmationSheet():null,this.state.showRemoveAutoblockConfirmation?this._renderRemoveAutoblockConfirmationSheet():null)}_getActionItems(){const e=[];return e.push(this._removeAutoblockAction()),e.push(this._blockAction()),e}_renderRemoveAutoblockConfirmationSheet(){const{userScreenName:e}=this.props;return(0,y.ed)({confirmation:(0,y.c4)(e||""),onClose:this._handleRemoveAutoblockCancel,handleConfirm:this._handleRemoveAutoblock})}_renderBlockConfirmationSheet(){const{userScreenName:e}=this.props;return(0,y.ed)({confirmation:(0,y.$f)(e||""),onClose:this._handleBlockCancel,handleConfirm:this._handleBlock})}}const C=w;var _=n(7896),E=n(84292),x=n(35094);Object.freeze({onlyText:"only-text",iconText:"icon-text"});class Z extends o.Component{constructor(e){super(e),this._minWidth=0,this._isMounted=!1,this._handleLabelMeasure=(e=!1)=>{setTimeout((()=>{var t,n;const o=null==(t=this._containerRef)?void 0:t.getBoundingClientRect().width,i=null==(n=this._containerRef)?void 0:n.offsetWidth;let r=0;o&&i&&(r=i?o:i),this._minWidth=Math.ceil(Math.max(this._minWidth,r)),e&&this._isMounted&&this.forceUpdate()}),0)},this._getCustomButtonProps=e=>{const{customButtonConfig:t}=this.props;if(!t)return;const{customButtonBackgroundColor:n,customButtonBorderColor:o,customButtonColor:i,customButtonHoverBackgroundColor:r,customButtonHoverBorderColor:s,customButtonHoverColor:a}=t,l={color:i,backgroundColor:n,borderColor:o};return e&&(l.color=a||i,l.backgroundColor=r||n,l.borderColor=s||o),l},this._handleButtonPress=e=>{e.preventDefault(),this.props.showRelationshipChangeConfirmation?this.setState({showConfirmation:!0}):(this._minWidth=0,this.forceUpdate(),this.props.onClick())},this._handleConfirm=e=>{var t;this._minWidth=0,this.setState({showConfirmation:!1}),this.props.onClick(),null==(t=this._buttonRef)||t.focus()},this._handleCancel=()=>{var e;this.setState({showConfirmation:!1}),null==(e=this._buttonRef)||e.focus()},this._handleHoverIn=()=>{this._handleLabelMeasure(!0)},this._setButtonRef=e=>{this._buttonRef=e},this._setContainerRef=e=>{this._containerRef=e,this._handleLabelMeasure()},this.state={showConfirmation:!1}}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1}componentDidUpdate(e){e.buttonDefaultLabel!==this.props.buttonDefaultLabel&&this._handleLabelMeasure()}render(){const{accessibilityDescribedBy:e,accessibilityLabel:t,behavioralEventContext:n,buttonDefaultLabel:i,buttonHoverLabel:r,buttonHoverType:s,buttonType:a,confirmationSheetBehavioralEventViewType:l,confirmationSheetCancelLabel:c,confirmationSheetConfirmLabel:d,confirmationSheetHeadline:h,confirmationSheetPrimaryButtonType:p,confirmationSheetText:m,disabled:y,displayMode:b,icon:f,nativeID:v,onHoverOut:w,size:C,style:Z,testID:S}=this.props,k=[Z,{minWidth:this._minWidth}];return o.createElement(u.Z,{ref:this._setContainerRef,style:k},o.createElement(x.Z,{onHoverIn:this._handleHoverIn,onHoverOut:w},(({isHovered:l})=>{const c=l?r:i,d=l&&s?s:a,u=this._getCustomButtonProps(l);return o.createElement(g.ZP,(0,_.Z)({accessibilityDescribedBy:e,accessibilityLabel:t,behavioralEventContext:n,disabled:y,icon:"only-text"!==b?f:void 0,nativeID:v,onPress:this._handleButtonPress,ref:this._setButtonRef,size:C,testID:S,type:d},u),c)})),this.state.showConfirmation?o.createElement(E.Z,{cancelButtonLabel:c,confirmButtonLabel:d,confirmButtonType:p,confirmationBehavioralEventViewType:l,headline:h,onCancel:this._handleCancel,onConfirm:this._handleConfirm,text:m}):null)}}Z.defaultProps={showRelationshipChangeConfirmation:!1};const S=Z,k=a().i8cfb6e6,T=a().ea100d6a,L=a().fe40537f,I=a().a4c5be9c,R=o.createElement(p.Z,null),P=({disabled:e,displayMode:t,onUnblock:n,showRelationshipChangeConfirmation:i,size:r,style:s,testID:a,userScreenName:l})=>o.createElement(S,{buttonDefaultLabel:k,buttonHoverLabel:T,buttonType:"destructiveFilled",confirmationSheetConfirmLabel:T,confirmationSheetHeadline:L({screenName:l}),confirmationSheetText:I,disabled:e,displayMode:t,icon:R,onClick:n,showRelationshipChangeConfirmation:i,size:r,style:s,testID:a});var M=n(66999),B=n(56538),A=n(63014),D=n(50984),U=n(54484);const F=Object.freeze({user:"user",topic:"topic",list:"list",community:"community",spaces:"spaces"}),N=a().cda66545,H=a().ee05e96b,z=a().a8d77a25,O=a().d0f4f3d9,V=a().f238ba1d,W=a().j6161cab,$=a().i4bb9ef7,G=a().ad2be9fc,j=a().bdcdeb3e,q=o.createElement(B.Z,null),Q=o.createElement(A.Z,null),K=a().ddac1f1d,X=a().aaac4f56;class Y extends o.Component{constructor(e,t){super(e,t),this._getMemoizedBehavioralEventContext=(0,l.Z)((e=>({viewType:e?"unfollow":"follow"}))),this._getDescribedById=()=>{const{accessibilityDescribedBy:e}=this.props;return void 0!==e?e:(0,U.F)()},this._renderDescribedBy=(e,t)=>{const n=this._getDescribedByText();return(0,D.Z)(n)?null:o.createElement(M.Z,{nativeID:e,style:{display:"none"}},n)},this._getDescribedByText=()=>{const{buttonText:e,isFollowing:t,isSuperFollowEligible:n,isSuperFollowing:o,name:i,type:r}=this.props;let s="";const a=void 0===i?"":i;switch(r){case F.user:case F.topic:case F.list:o&&e.unSuperFollow?s=e.unSuperFollow:t?s=n?H({followType:e.superFollow,screenName:a}):N({followType:e.unfollow,screenName:a}):t||(s=N({followType:e.follow,screenName:a}));break;case F.community:s=t?z({screenName:a}):N({followType:e.follow,screenName:a});break;case F.spaces:t?s=N({followType:e.unfollow,screenName:a}):t||(s=N({followType:e.follow,screenName:a}));break;default:s=""}return s},this._getText=()=>{const{buttonText:e,name:t,type:n}=this.props,o=void 0!==t?t:"",i=$({title:t}),r={[F.user]:{ariaFollowName:void 0!==t?`@${String(t)}`:"",confirmationHeadline:W({screenName:t}),confirmationSheetText:G},[F.topic]:{ariaFollowName:o,confirmationHeadline:i,confirmationSheetText:j},[F.list]:{ariaFollowName:o,confirmationHeadline:i,confirmationSheetText:void 0},[F.community]:{ariaFollowName:o,confirmationHeadline:K({communityName:t}),confirmationSheetText:X},[F.spaces]:{ariaFollowName:void 0!==t?`@${String(t)}`:"",confirmationHeadline:W({screenName:t}),confirmationSheetText:G}};return{ariaFollowName:r[n].ariaFollowName,followLabel:e.follow,followingLabel:e.following,unfollowLabel:e.unfollow,superFollowLabel:e.superFollow,superFollowingLabel:e.superFollowing,unSuperFollowLabel:e.unSuperFollow,confirmationHeadline:e.confirmationHeadline||r[n].confirmationHeadline,confirmationSheetText:e.confirmationSheetText||r[n].confirmationSheetText}},this._handlePress=()=>{const{isFollowing:e,isSuperFollowEligible:t,isSuperFollowing:n,onFollow:o,onSuperFollow:i,onUnSuperFollow:r,onUnfollow:s}=this.props;n?r():e?t?i():s():(o(),this.setState({hasJustFollowed:!0}))},this._handleHoverOut=()=>{this.state.hasJustFollowed&&this.setState({hasJustFollowed:!1})},this.state={hasJustFollowed:!1}}render(){const{accessibilityDescribedBy:e,buttonIcons:t,disabled:n,displayMode:i,isFollowing:r,isSuperFollowEligible:s,isSuperFollowing:a,isTransparent:l,nativeID:c,showRelationshipChangeConfirmation:d,size:u,style:h,testID:p,type:m,withConfirmationSheetText:g}=this.props,{ariaFollowName:y,confirmationHeadline:b,confirmationSheetText:f,followLabel:v,followingLabel:w,superFollowLabel:C,superFollowingLabel:_,unSuperFollowLabel:E,unfollowLabel:x}=this._getText(),{hasJustFollowed:Z}=this.state,k=t&&t.followIcon||Q,T=t&&t.followingIcon||q,L="only-text"!==i?r?T:k:void 0;let I=r?w:v,R=O;(a||r&&s)&&(a&&_?(R=V,I=_):s&&C&&(R=V,I=C));const P=y.length>0&&void 0!==I?R({followType:I,screenName:y}):"",M="primaryFilled";let B,A,D,U;const N=l?"brandText":M,H=l?"destructiveText":"destructiveOutlined",z=!a&&((!r||!s)&&r),W=r?"onMediaWhiteFilled":"onMediaOutlined",$=r?"onMediaOutlined":"onMediaWhiteFilled";m===F.community||m===F.spaces?(B=r?x:v,A=W,D=$):a&&E?(U={},B=E,U.customButtonColor="plum500",U.customButtonBorderColor="plum500",U.customButtonBackgroundColor="transparent",U.customButtonHoverColor="white",U.customButtonHoverBorderColor="gray700",U.customButtonHoverBackgroundColor="gray700"):r?(B=Z?w:x,A=Z?N:H,D=l?"brandText":"primaryOutlined",s&&C&&(U={},B=C,D=void 0,A=void 0,U.customButtonColor="plum500",U.customButtonBorderColor="plum500",U.customButtonBackgroundColor="transparent",U.customButtonHoverColor="plum500",U.customButtonHoverBorderColor="plum500",U.customButtonHoverBackgroundColor="transparent")):(B=v,A=l?"brandText":M,D=l?"brandText":M);const G=this._getDescribedById(),j=this._getMemoizedBehavioralEventContext(r);return o.createElement(o.Fragment,null,o.createElement(S,{accessibilityDescribedBy:G,accessibilityLabel:P,behavioralEventContext:j,buttonDefaultLabel:I,buttonHoverLabel:B,buttonHoverType:A,buttonType:D,confirmationSheetBehavioralEventViewType:undefined,confirmationSheetConfirmLabel:x,confirmationSheetHeadline:b,confirmationSheetText:g?f:void 0,customButtonConfig:U,disabled:n,displayMode:i,icon:L,nativeID:c,onClick:this._handlePress,onHoverOut:this._handleHoverOut,showRelationshipChangeConfirmation:z&&d,size:u,style:h,testID:p}),void 0===e?this._renderDescribedBy(G):null)}}const J=Y;var ee=n(23831);const te=a().f305840e,ne=a().e23b20a0,oe=a().fe04d89a,ie=a().i036327c,re=a().j95e3097,se=o.createElement(ee.Z,null),ae=({disabled:e,displayMode:t,onCancelPendingFollow:n,showRelationshipChangeConfirmation:i,size:r,style:s,testID:a,userScreenName:l})=>o.createElement(S,{buttonDefaultLabel:te,buttonHoverLabel:ne,buttonType:"primaryOutlined",confirmationSheetCancelLabel:ne,confirmationSheetConfirmLabel:oe,confirmationSheetHeadline:ie,confirmationSheetText:re({screenName:l}),disabled:e,displayMode:t,icon:se,onClick:n,showRelationshipChangeConfirmation:i,size:r,style:s,testID:a}),le=a().ec72e2f8,ce=a().c3befdbe,de=a().d3029dbc,ue=a().aeb6f0a0,he=a().a77a27c0,pe=a().i00ab5ba;class me extends o.Component{constructor(e){super(e),this._getMemoizedBehavioralEventContext=(0,l.Z)(((e,t)=>({viewState:t,viewType:e}))),this._validateProps()}componentDidUpdate(){this._validateProps()}render(){const{accessibilityDescribedBy:e,behavioralEventContext:t,buttonIcons:n,buttonText:i,disabled:r,displayMode:s,isAutoblocking:a,isBlocking:l,isFollowRequestSent:c,isFollowing:u,isSuperFollowEligible:h,isSuperFollowing:p,isTransparent:m,name:g,nativeID:y,onBlock:b,onCancelPendingFollow:f,onFollow:v,onSuperFollow:w,onUnSuperFollow:_,onUnblock:E,onUnfollow:x,showRelationshipChangeConfirmation:Z,size:S,style:k,testIDs:T,type:L,withConfirmationSheetText:I}=this.props,R=l,M=c;if(a){var B;const e=null!=(B=null==t?void 0:t.viewType)?B:"autoblock",n=this._getMemoizedBehavioralEventContext(e);return o.createElement(d.zt,{behavioralEventContext:n},o.createElement(C,{onBlock:b,onUnblock:E,size:S,style:k,testID:null==T?void 0:T.autoblock,userScreenName:g}))}if(R){var A;const e=null!=(A=null==t?void 0:t.viewType)?A:"block",n=this._getMemoizedBehavioralEventContext(e);return o.createElement(d.zt,{behavioralEventContext:n},o.createElement(P,{disabled:r,displayMode:s,onUnblock:E,showRelationshipChangeConfirmation:Z,size:S,style:k,testID:null==T?void 0:T.unblock,userScreenName:g}))}if(M){var D;const e=null!=(D=null==t?void 0:t.viewType)?D:"pending",n=this._getMemoizedBehavioralEventContext(e);return o.createElement(d.zt,{behavioralEventContext:n},o.createElement(ae,{disabled:r,displayMode:s,onCancelPendingFollow:f,showRelationshipChangeConfirmation:Z,size:S,style:k,testID:null==T?void 0:T.cancel,userScreenName:g}))}return o.createElement(J,{accessibilityDescribedBy:e,buttonIcons:n,buttonText:i,disabled:r,displayMode:s,isFollowing:u,isSuperFollowEligible:h,isSuperFollowing:p,isTransparent:m,name:g,nativeID:y,onFollow:v,onSuperFollow:w,onUnSuperFollow:_,onUnfollow:x,showRelationshipChangeConfirmation:Z,size:S,style:k,testID:u?null==T?void 0:T.unfollow:null==T?void 0:T.follow,type:L,withConfirmationSheetText:I})}_validateProps(){const{name:e,showRelationshipChangeConfirmation:t}=this.props,n=t&&"string"==typeof e,o=!t;r()(n||o,"When showRelationshipChangeConfirmation is true, name must be defined.")}}me.defaultProps={buttonText:{follow:le,following:ce,unfollow:de,superFollow:ue,superFollowing:he,unSuperFollow:pe},displayMode:"only-text",isBlocking:!1,isFollowRequestSent:!1,isTransparent:!1,onCancelPendingFollow:c.Z,onBlock:c.Z,onSuperFollow:c.Z,onUnblock:c.Z,onUnSuperFollow:c.Z,showRelationshipChangeConfirmation:!0,withConfirmationSheetText:!0}},59890:(e,t,n)=>{n.d(t,{Z:()=>c});var o=n(7896),i=n(2784),r=n(25686),s=n(73186);class a extends i.Component{render(){const{children:e,style:t,withGutter:n,...s}=this.props,a=i.Children.map(e,(e=>e&&i.cloneElement(e,{style:[e.props.style,l.column,n&&l.withGutterColumn]})));return i.createElement(r.Z,(0,o.Z)({style:[t,l.root,n&&l.withGutter]},s),a)}}a.defaultProps={withGutter:!1};const l=s.Z.create((e=>({root:{flexDirection:"row"},column:{flexBasis:0,minWidth:0},withGutter:{marginHorizontal:`-${e.spaces.space4}`},withGutterColumn:{marginHorizontal:e.spaces.space4}}))),c=a},51417:(e,t,n)=>{n.d(t,{Z:()=>f});var o=n(2784),i=n(25686),r=n(21773),s=n(36934),a=n(12934),l=n(73487),c=n(11839),d=n(65098),u=n(71575),h=n(73186);const p=e=>e&&e.url?{url:e.url,urlType:0===e.url.indexOf("twitter://")?"DeepLink":"ExternalUrl"}:void 0,m={element:"highlighted_user_label",action:"click"},g="AutomatedLabel",y=(e,t,n)=>{const s=(e=>e===g?o.createElement(r.Z,{style:b.svgIcon}):null)(t),c=(e=>e?o.createElement(a.Z,{ratio:1},o.createElement(l.Z,{source:e.url,style:b.image})):null)(e),d=s||c,u=n?b.iconContainerLarge:b.iconContainer;return d?o.createElement(i.Z,{style:u},d):null},b=h.Z.create((e=>({root:{alignItems:"flex-start",flexShrink:1},withTopMargin:{marginTop:e.spaces.space4},link:{alignItems:"flex-start",flexDirection:"row",maxWidth:"100%"},withUnderline:{textDecorationLine:"underline"},iconContainer:{height:e.fontSizes.body,marginEnd:e.spaces.space4,marginTop:2,width:e.fontSizes.body},iconContainerLarge:{height:e.fontSizes.headline2,marginEnd:e.spaces.space4,marginTop:1,width:e.fontSizes.headline2},image:{height:"100%",width:"100%"},svgIcon:{color:e.colors.gray700}}))),f=({isIconLarge:e=!1,label:t,nativeID:n,onClick:r,shouldTruncate:a=!0,withTopMargin:l=!0})=>{const h=u.Z.useAnalytics(),{badge:g,description:f,url:v,userLabelType:w}=t,C=p(v);return o.createElement(d.$6,null,(t=>{const d=C?t.getLinkFromUrtUrl(C):void 0,u=d||r?e=>{r&&r(e);const t=d&&"string"==typeof d.pathname?{url:d.pathname}:void 0;h.scribe({...m,data:t})}:void 0;return o.createElement(i.Z,{nativeID:n,style:[b.root,l&&b.withTopMargin]},o.createElement(c.Z,{interactive:!(!d&&!r),interactiveStyles:null,link:d,onPress:u,style:b.link},(({isFocused:t,isHovered:n,isPressed:i})=>o.createElement(o.Fragment,null,y(g,w,e),o.createElement(s.ZP,{color:"gray700",numberOfLines:a?1:void 0,style:(n||i||t)&&b.withUnderline},f)))))}))}},19179:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(66481),i=n(10084);const r=n(73036).ZP.isAndroid()?o.Z:i.Z},34923:(e,t,n)=>{n.d(t,{W:()=>l,Z:()=>a});var o=n(2784),i=n(25686),r=n(36934),s=n(73186);const a=e=>{const{containerStyle:t,decoration:n,description:s,label:a,testID:c}=e,d="string"==typeof a?o.createElement(r.ZP,{weight:"bold"},a):a,u=s?"string"==typeof s?o.createElement(r.ZP,{color:"gray700",style:l.description},s):s:null;return o.createElement(i.Z,{accessibilityRole:"listitem",style:[l.root,t],testID:c},n?o.createElement(i.Z,{style:l.decorationContainer},n):null,o.createElement(i.Z,{style:l.content},d,u))},l=s.Z.create((e=>({root:{alignItems:"flex-start",justifyContent:"space-between",paddingVertical:e.componentDimensions.gutterVertical,paddingHorizontal:e.spaces.space32,flexDirection:"row",flexGrow:1,minHeight:`calc(${s.Z.theme.lineHeights.headline1} + 2 * ${e.componentDimensions.gutterVertical})`},content:{alignSelf:"center",flexGrow:1,flexShrink:1},description:{marginTop:e.spaces.space4},decorationContainer:{justifyContent:"center"}})))},49758:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(7896),i=n(2784),r=n(25686),s=n(34923);const a=e=>{const{accessibilityLabel:t,containerStyle:n,items:a}=e;return i.createElement(r.Z,{accessibilityLabel:t,accessibilityRole:"list"},a.map(((e,t)=>i.createElement(s.Z,(0,o.Z)({containerStyle:n,key:t},e)))))}},88990:(e,t,n)=>{n.d(t,{Z:()=>d});var o=n(7896),i=n(2784),r=n(34411),s=n(54044),a=n(73206),l=n(73186);const c=l.Z.create((e=>({roundedBorders:{borderRadius:e.borderRadii.xLarge}}))),d=e=>{const{accessibilityRole:t,allowBackNavigation:n,graphicDisplayMode:d,isFullHeightOnMobile:u=!1,onClose:h,...p}=e;return i.createElement(s.Z,null,(({windowHeight:e,windowWidth:s})=>{const m=s>l.Z.theme.breakpoints.medium,g=e<l.Z.theme.breakpoints.small;return i.createElement(a.Z,{accessibilityRole:t,allowBackNavigation:n,enableMaskForDismiss:!0,onMaskClick:h,style:m&&c.roundedBorders,type:u?"full":"bottom",withMask:!0},i.createElement(r.Z,(0,o.Z)({graphicDisplayMode:g?"none":d,onClose:h,withBottomPadding:m||u},p)))}))}},57038:(e,t,n)=>{n.d(t,{C:()=>i,Z:()=>r});var o=n(67502);class i{constructor(){this._cache={}}get(e){return this._cache[e]}check(e){const t=this._load(e);return!(t instanceof Promise)&&!!t}reset(){this._cache={}}_loadCache(e,t){if(this._cache[e])return this._cache[e];const n=t().then((t=>{this._cache[e]=t}));return this._cache[e]||(this._cache[e]=n),this._cache[e]}_load(e){return this._loadCache(e,(()=>new Promise((t=>{o.canUseDOM&&window.fetch?fetch(e).then((e=>e.json())).then(t).catch((()=>t(!1))):t(!0)}))))}}const r=new i},31099:(e,t,n)=>{n.d(t,{ZP:()=>y});n(6886),n(71372);var o=n(2784),i=n(25686),r=n(73186),s=n(79404),a=n.n(s),l=n(78525),c=n(61339),d=n(36934),u=n(29496),h=n(50329);const p=a().jcf3e7a2;function m({animation:e,autoplay:t}){const[n,r]=o.useState(t),[s,a]=o.useState(0);return o.useEffect((()=>{e.addEventListener("enterFrame",(e=>{e&&a(Math.round(e.currentTime))}))}),[e]),o.createElement(i.Z,{style:g.container},o.createElement(u.ZP,{accessibilityLabel:n?"Pause":"Play",icon:n?o.createElement(l.Z,null):o.createElement(c.Z,null),onClick:function(){n?(e.pause(),r(!1)):(e.play(),r(!0))},type:"primaryText"}),o.createElement(d.ZP,{style:g.frames},`${s}/${e.totalFrames}`),o.createElement(i.Z,{style:g.slider},o.createElement(h.Z,{accessibilityLabel:p,max:e.totalFrames,min:0,onChange:function(t){e.goToAndStop(t,!0),r(!1)},value:s})))}const g=r.Z.create((e=>({container:{width:"100%",flexDirection:"row",alignItems:"center"},frames:{marginStart:e.spaces.space12},slider:{flex:1,marginStart:e.spaces.space12}})));function y(e){const{autoplay:t=!0,loop:n=!1,onAnimationEnd:r,onAnimationStart:s,onError:a,withControls:l}=e,c=o.useRef(void 0),d=o.useRef({animationLoaded:!1}),u=o.useRef(null),[h,p]=o.useState(!1);return o.useEffect((()=>{function o(e,t){"function"==typeof r&&r(t),e&&e.destroy()}const{animationLoaded:i}=d.current;i||(d.current.animationLoaded=!0,b.load().then((i=>{if(i&&u.current){const r={container:u.current,renderer:"svg",loop:n,autoplay:!1,..."object"==typeof e.animation?{animationData:e.animation}:{path:e.animation}},l=i.loadAnimation(r);c.current=l,l.onError=e=>{const t=new f(e);"function"==typeof a&&a(t),o(l,t)},l.addEventListener("DOMLoaded",(()=>{p(!0),t&&(l.play(),s&&s())})),l.addEventListener("complete",(()=>{o(l)}))}})))}),[e.animation,t,n,r,s,a,l]),o.useEffect((()=>function(){c.current&&c.current.destroy()}),[c]),o.createElement(i.Z,null,o.createElement(i.Z,{style:[e.animationContainerStyle,v.centerAnimation]},o.createElement("div",{ref:u,style:e.animationStyle}),l&&c.current&&h&&o.createElement(m,{animation:c.current,autoplay:t})))}y.Prepare=function(){return o.useEffect((()=>{b.load()}),[]),null};const b={load:()=>n.e("ondemand.LottieWeb").then(n.t.bind(n,48888,23))};class f extends Error{constructor(e,...t){super(...t),Error.captureStackTrace&&Error.captureStackTrace(this,f),this.name="LottieAnimationError",this.lottieError=e}}const v=r.Z.create((e=>({centerAnimation:{alignItems:"center",justifyContent:"center"}})))},88796:(e,t,n)=>{n.d(t,{Z:()=>i});var o=n(27652);const i={getBackgroundColor:e=>{const t=e.ext_media_color&&e.ext_media_color.palette,n=t&&o.Z.get(t);return n?n.rgb:void 0},getCropCandidates:e=>e.original_info&&e.original_info.focus_rects,getOriginalImage:e=>e.original_info?{url:e.media_url_https,width:e.original_info.width,height:e.original_info.height}:void 0}},46281:(e,t,n)=>{n.d(t,{ZP:()=>s});var o=n(13737),i=n(3614);const r=e=>{var t,n;return(null==(t=e.features)||null==(n=t.all)?void 0:n.tags)||[]},s={mergeTaggedUsers:e=>{const t=(0,o.Z)(e,r).filter((e=>"user"===e.type));return(0,i.Z)(t,(e=>e.user_id))}}},87571:(e,t,n)=>{n.d(t,{Z:()=>h});var o=n(2784),i=n(25686),r=n(79404),s=n.n(r),a=n(40811),l=n(17500),c=n(36934),d=n(73186);const u=s().f8e8e32e;class h extends o.Component{render(){const{linkPath:e,onClick:t,size:n,users:r,withIcon:s}=this.props,l=this._decodeUserList(),{isCurrentUserIncluded:d}=l,u=d?m.withCurrentUser:m.withoutCurrentUser,h=this._selectMessage(u,l),p=r.map((e=>e.user_id)),y=e&&{pathname:e,state:{userIds:p}};return r.length>0?o.createElement(i.Z,{style:[g.root,this.props.style]},o.createElement(c.ZP,{color:"gray700",link:y,onPress:t,size:n,withInteractiveStyling:!!y},s?o.createElement(a.Z,{style:g.icon}):null,h)):null}_selectMessage(e,t){const{users:n}=this.props;switch(n.length){case 0:return null;case 1:return e.single(t);default:return e.multiple(t)}}_decodeUserList(){const{loggedInUserId:e,users:t}=this.props,n=e?(0,l.Z)(t,(t=>t.user_id===e)):-1,o=n>=0,i=o&&t[n]?t[n]:void 0;return{isCurrentUserIncluded:o,firstName:t.length>=1?o&&i?i.name:t[0].name:void 0,secondName:t.length>=2?o&&0!==n?t[0].name:t[1].name:void 0,otherUsersCount:t.length>0?t.length-1:0}}}const p=(e,t="normal")=>o.createElement(c.ZP,{color:"gray700",weight:t},e),m={withCurrentUser:{single:()=>p(u,"bold"),multiple:({otherUsersCount:e,secondName:t})=>e&&t?p(o.createElement(s().I18NFormatMessage,{$i18n:"d7b2c271"},o.createElement(c.ZP,{weight:"bold"},s().df6703d3),s().c20f7e9f({otherUsersCount:e,secondName:o.createElement(c.ZP,null,t)}))):null},withoutCurrentUser:{single:({firstName:e})=>e?p(e):null,multiple:({firstName:e,otherUsersCount:t,secondName:n})=>t?p(o.createElement(s().I18NFormatMessage,{$i18n:"b035fe73"},o.createElement(c.ZP,null,e),s().he26f627({otherUsersCount:t,secondName:o.createElement(c.ZP,null,n)}))):null}},g=d.Z.create((e=>({root:{flexDirection:"row"},icon:{color:e.colors.gray700,marginEnd:e.spaces.space4}})))},40027:(e,t,n)=>{n.d(t,{Z:()=>w});n(2784);var o=n(79404),i=n.n(o),r=n(90867),s=n(56992),a=n(88796),l=n(8080);const c="animated_gif",d="video",u="vine",h=Object.freeze({ANIMATED_GIF:c,VIDEO:d,VINE:u}),p=(0,r.Z)(h),m=i().fc45ccc6,g=e=>e.additional_media_info&&e.additional_media_info.call_to_actions?y(e.additional_media_info.call_to_actions):void 0,y=e=>e.visit_site?{type:"url",url:e.visit_site.url}:e.watch_now?{type:"watch",url:e.watch_now.url}:void 0,b=e=>f(e.mediaStats&&e.mediaStats.viewCount),f=e=>{const t=e&&parseInt(e,10);return t&&(0,s.Z)(t)&&t>=0?t:void 0},v=e=>!!e&&(e.type===c||e.type===d||e.type===u),w={extractVideoProps:(e,t,n,o,i=!1)=>{const{duration_millis:r,variants:s}=t.video_info||{};let c={accessibilityLabel:"string"==typeof t.ext_alt_text?t.ext_alt_text:m,additionalMediaInfo:t.additional_media_info,aspectRatio:l.Z.getAspectRatio(t.video_info,1),backgroundColor:a.Z.getBackgroundColor(t),cta:g(t),durationMs:r,poster:a.Z.getOriginalImage(t),shouldShowAltLabel:!!t.ext_alt_text&&i,source:{eventId:n,contentId:t.id_str,variants:s,videoId:e},videoType:t.type,viewCount:b(t)};return o&&(c={...c,forwardPivotInfo:o}),c},getSourceTweetId:e=>{if(v(e))return e.source_status_id_str},getVideoFromCoverMedia:e=>e&&"photo"!==e.type?e:void 0,getViewCount:b,isVideo:v,VIDEO_TYPES:p}},44173:(e,t,n)=>{n.d(t,{Z:()=>d});var o=n(2784),i=n(79404),r=n.n(i),s=n(84793),a=n(32291);const l=r().gaeb997e,c={viewType:"menu_control"};const d=function({activeColor:e,label:t=l,Icon:n=s.Z,iconSize:i="normal",isDisabled:r,onClick:d,preventFocusShift:u,renderActionMenu:h,style:p,testID:m,withDarkBackground:g=!1}){const y=o.useCallback((e=>{e&&e.preventDefault(),d&&d(e)}),[d]),b=o.useMemo((()=>({label:t})),[t]);return o.createElement(a.ZP,{Icon:n,accessibilityLabel:t,activeColor:e||(g?"white":void 0),backgroundColor:g?"translucentBlack77":"transparent",behavioralEventContext:c,color:g?"white":"gray700",hoverLabel:b,iconSize:i,isDisabled:r,onPress:y,preventFocusShift:u,renderMenu:h,style:p,testID:m})}},25661:(e,t,n)=>{n.d(t,{Z:()=>h});var o=n(2784),i=n(25686),r=n(36934),s=n(54484),a=n(5252),l=n(4342),c=n(73186);const d=e=>{const{decoration:t,isCompact:n,progressBarConfig:d,statConfig:h,title:p,valueCurrent:m,valueMax:g}=e,y=(0,s.F)(),b=(f=d,c.Z.theme.colors[(null==f?void 0:f.color)||"blue900"]);var f;const v=function(e){return{borderRadius:c.Z.theme.borderRadii[(null==e?void 0:e.borderRadii)||"medium"]}}(d),w=function(e){return{borderRadius:c.Z.theme.borderRadii[(null==e?void 0:e.borderRadii)||"medium"],height:c.Z.theme.spaces[(null==e?void 0:e.height)||"space8"],backgroundColor:c.Z.theme.colors.gray50}}(d);return o.createElement(i.Z,{style:u.root},o.createElement(i.Z,{style:u.decoration},t),o.createElement(i.Z,{style:u.title},o.createElement(r.ZP,{size:"subtext2",weight:"medium"},p)),o.createElement(i.Z,{nativeID:y,style:u.valueLabel},h.value?o.createElement(l.Z,null,o.createElement(l.Z.Value,null,h.value),o.createElement(l.Z.Label,null,h.label)):o.createElement(r.ZP,{weight:"bold"},h.label)),o.createElement(i.Z,{style:n?u.progressBarContainerCompact:u.progressBarContainer,testID:"progressBarStats-progressBarContainer"},o.createElement(a.Z,{accessibilityDescribedBy:y,accessibilityValueMax:g,colorValue:b,progress:m/g,progressStyle:v,style:w})))};const u=c.Z.create((e=>({root:{display:"grid",gridTemplateRows:"auto auto",gridTemplateColumns:"min-content auto auto",marginBottom:e.spaces.space16},decoration:{gridRow:"1/3",gridColumn:"1/2",fontSize:"30px"},title:{display:"flex",alignItems:"flex-start"},valueLabel:{display:"flex",alignItems:"flex-end"},progressBarContainer:{gridRow:"2/3",gridColumn:"2/4",marginTop:e.spaces.space8},progressBarContainerCompact:{gridRow:"2/3",gridColumn:"2/4"}}))),h=o.memo(d)},41310:(e,t,n)=>{n.d(t,{Z:()=>b});var o=n(2784),i=n(25686),r=n(79404),s=n.n(r),a=n(48748),l=n(85042),c=n(36934),d=n(73186);const u=s().f1a1b791,h=s().if2bf8b4,p=s().f3624b5c,m=s().b4b3b113,g=s().be222050,y=s().hcbbe447;class b extends o.Component{render(){const{color:e,nativeID:t,style:n,withCircleIcon:r}=this.props,s=r?a.Z:l.Z;return o.createElement(i.Z,{style:[f.root,n]},o.createElement(s,{style:[f.icon,e&&f[e]]}),o.createElement(c.ZP,{color:e,nativeID:t,size:"subtext2"},this._getPromotedLabel()))}_getPromotedLabel(){const{contentAuthorId:e,label:t,promotedContent:n}=this.props,{adMetadataContainer:o,advertiser:i,advertiser_name:r,disclosure_type:s}=n,a=e&&i&&e===i.id_str,l="string"==typeof s&&"political"===s.toLowerCase(),c="string"==typeof s&&"issue"===s.toLowerCase(),d=!(!o||"POLITICAL"!==o.disclaimerType)||l,b=!(!o||"ISSUE"!==o.disclaimerType)||c,{removePromotedAttributionForPreroll:f}=o||{};let v;return v=t||(!r||a||f?d?p:b?g:h:d?m({fullName:r}):b?y({fullName:r}):u({fullName:r})),v}}b.defaultProps={color:"gray700",withCircleIcon:!1};const f=d.Z.create((e=>({root:{alignItems:"center",flexDirection:"row"},icon:{color:e.colors.gray700,height:"1em",marginEnd:e.spaces.space4,flexShrink:0},gray700:{color:e.colors.gray700},white:{color:e.colors.white}})))},53496:(e,t,n)=>{n.d(t,{Z:()=>H});var o=n(7896),i=(n(6886),n(53985),n(2784)),r=n(25686),s=n(79404),a=n.n(s),l=n(16587),c=n(32307),d=n(90867),u=n(36934),h=n(77934),p=n(81133),m=n(77089),g=n(87599),y=n(51417),b=n(74062),f=n(3613),v=n(84740),w=n(9524),C=n(79052),_=n(73186),E=n(32019),x=n(35585),Z=n(50599),S=n(42807),k=n(40876),T=n(20003),L=n(33785),I=n(22685),R=n(92471),P=n(95995),M=n(64096),B=n(61213),A=n(61487);const D=a().c9d7235e,U=a().a8b58cf4,F=a().i5f742fe,N={serversideContextType:"tweet"},H=e=>{var t;const{shouldRenderIfBlocked:n,tweet:r}=e,s=!!r&&!I.Z.isQuotedTweetUnavailable({is_quote_status:!0,quoted_status:r},n),a=m.ZP.useProps(),l=(null==r?void 0:r.collaborators)&&(null==(t=r.collaborators)?void 0:t.length)>1&&a.isCollaborativeTweetConsumptionEnabled();return r&&s?i.createElement(z,(0,o.Z)({},e,{isCarouselItem:a.isCarouselItem(),isCollaborativeTweetConsumptionEnabled:l,isVibeTweetConsumptionEnabled:!!r.vibe&&a.isVibeTweetConsumptionEnabled(),tweet:r,withEditAnatomy:r.isEdited&&a.isEditTweetConsumptionEnabled()})):i.createElement(k.Z,null)};class z extends i.Component{constructor(...e){super(...e),this._getMemoizedBehavioralEventContext=(0,l.Z)((e=>{let t={viewType:"quote_tweet"};if(e){const n={...N,serversideContextId:e};t={...t,clientEntity:n}}return t})),this._renderForwardPivot=()=>{const{forwardPivotInfo:e,tweet:t,withReactions:n}=this.props;if(e&&e.displayType===g.xq.SoftIntervention){const{displayType:o,landingUrl:r,softInterventionDisplayType:s,text:a}=e;return i.createElement(g.ZP,{displayType:o,inQuoteTweet:!0,isTweetNonCompliant:"non_compliant"===t.limited_actions,landingUrl:r,softInterventionDisplayType:s,text:a,tweetId:t.id_str,withReactions:n})}},this._renderStaleEditCallout=()=>{const{isCondensed:e}=this.props,t=this.shouldRenderMedia&&!e;return i.createElement(r.Z,{style:[O.textContentSpacing,t&&O.marginTopSmall]},i.createElement(E.Z,{editType:"stale",textMode:"inline",textSize:"subtext2"}))},this._renderLatestEditIcon=()=>i.createElement(E.Z,{editType:"latest"}),this._handlePress=e=>{const{onPress:t}=this.props;t&&t(e)}}shouldComponentUpdate(e){return!(0,c.Z)(e,this.props)}render(){const{tweet:e}=this.props;return this._isWithheldTweet(e)?this._renderWithheldTweet():this._renderTweet()}_getTweetLink(){const{tweet:e,withEditAnatomy:t}=this.props;let n=e.permalink;return e.isStaleEdit&&t&&(n=I.Z.getTweetLatestVersionPermalink(e)),{pathname:`https://twitter.com${n}`,anchorless:!0}}_renderTweet(){const{nativeID:e,shouldShowBorder:t,style:n,tweet:o,withLink:s}=this.props,a=[O.quoteTweetContainer,t&&O.quoteTweetContainerBorder,!s&&O.quoteTweetWithoutLink,n],l=this._getMemoizedBehavioralEventContext(o.id_str);return i.createElement(h.zt,{behavioralEventContext:l},i.createElement(r.Z,{nativeID:e},i.createElement(u.ZP,{style:_.Z.visuallyHidden},D),i.createElement(b.Z,{link:s?this._getTweetLink():void 0,onPress:this._handlePress,style:a,withInteractiveStyling:!!s,withOutsetFocusRing:!0},this._renderTweetContent(),this._renderForwardPivot())))}_renderTweetContent(){const{isCondensed:e,tweet:t,withEditAnatomy:n}=this.props;return i.createElement(r.Z,null,this._renderHeader(),e?this._renderTweetContentCondensed():this._renderTweetContentExpanded(),t.isStaleEdit&&n?this._renderStaleEditCallout():null)}_renderTweetContentCondensed(){return i.createElement(r.Z,{style:O.condensedContentBody},this.shouldRenderMedia?i.createElement(r.Z,{style:[O.marginTopXXSmall,O.condensedMediaSide,this.props.isCarouselItem?O.carouselStyleMediaSide:void 0],testID:"testCondensedMedia"},this._renderTweetMedia(!0)):null,i.createElement(r.Z,{style:O.condensedContentSide},this._renderTextContent(!0)))}_renderTweetContentExpanded(){return i.createElement(i.Fragment,null,this._renderTextContent(!1),this.shouldRenderMedia?i.createElement(r.Z,{style:O.marginTopXXSmall},this._renderTweetMedia(!1)):null)}_renderHeader(){const{isCollaborativeTweetConsumptionEnabled:e,isVibeTweetConsumptionEnabled:t,socialContextProps:n,tweet:o}=this.props,s=o.user||{},{vibe:a}=o;return i.createElement(r.Z,{style:O.headerContainer},n?this._renderSocialContext():null,i.createElement(r.Z,{style:[s.highlightedLabel?O.attributionWrapperFlexStart:O.attributionWrapperCenter,O.attributionWrapper]},e?this._renderCollaborators():this._renderUserName(s)),t&&a&&i.createElement(r.Z,{style:O.vibeWrapper},i.createElement(M.Z,{annotation:a.annotation,imageDescription:a.imgDescription,imageUrl:a.imgUrl,text:a.text,tweetId:o.id_str})))}_renderCollaborators(){const{tweet:e,withHeaderLinks:t,withUserHoverCard:n}=this.props,s=e.collaborators?e.collaborators:[e.user];return i.createElement(r.Z,{style:O.userNameRoot},i.createElement(r.Z,{style:O.collaboratorsWrapper},i.createElement(T.Z,{experimentalUsersAvatarData:s.map((e=>({screenName:e.screen_name,uri:e.profile_image_url_https,userId:e.id_str}))),renderUserAvatar:e=>i.createElement(R.default,(0,o.Z)({},e,{size:"medium"})),screenName:e.user.screen_name,uri:e.user.profile_image_url_https,withHoverCard:n,withLink:t}),i.createElement(r.Z,{style:O.collaboratorsNames},i.createElement(L.Z,{screenNameSuffix:this._renderTimestamp(e.created_at),usersIdentityData:s.map((e=>({isBlueVerified:e.is_blue_verified,isProtected:e.protected,isVerified:e.verified,name:e.name,screenName:e.screen_name,userId:e.id_str,verifiedType:e.verified_type}))),withHoverCard:n,withLink:t}))))}_renderSocialContext(){const{socialContextProps:e}=this.props;if(e){const{iconStyle:t,style:n,...r}=e;return i.createElement(w.Z,(0,o.Z)({iconStyle:[O.socialContextIconSpacing,t],style:[O.socialContextSpacing,n],withLeftPadding:!1},r))}}_renderTextContent(e){const{isCarouselItem:t,tweet:n,withEditAnatomy:o}=this.props,s=!this.shouldRenderMedia&&n.isStaleEdit&&o;return i.createElement(r.Z,{style:[O.textContentSpacing,s&&O.marginBottomXXSmall]},n.self_thread?null:this._renderReplyContext(),this._renderTweetText(e),t?null:this._renderShowLinks())}_renderShowLinks(){const{tweet:e}=this.props;return this.shouldRenderShowPollText?this._renderShowText(F):e.self_thread?this._renderShowText(U):null}_renderTweetText(e){const{tweet:t,withEditAnatomy:n,withMediaAsTextLinks:o}=this.props,r=e?5:void 0,s=t.isStaleEdit&&n;return i.createElement(S.Z,{color:s?"gray700":"text",displayTextRange:t.display_text_range,enrichments:t.enrichments,entities:t.entities,lang:t.lang,numberOfLines:r,quotedTweetPermalink:t.quoted_status_permalink,style:O.marginTopXXSmall,text:t.text,withCardLinks:!0,withMediaLinks:o||t.possibly_sensitive||this._hasSensitiveMediaWarnings(),withQuoteLinks:!0})}_renderUserName(e){const{tweet:t,withEditAnatomy:n,withHeaderLinks:o,withUserHoverCard:s}=this.props;return i.createElement(r.Z,{style:O.userNameRoot},i.createElement(r.Z,{style:O.userNameWrapper},i.createElement(P.Z,{isBlueVerified:e.is_blue_verified,isProtected:e.protected,isVerified:e.verified,name:e.name,profileImageUrl:e.profile_image_url_https,screenName:e.screen_name,screenNameSuffix:(()=>i.createElement(f.Z,null,this._renderTimestamp(t.created_at),!t.isStaleEdit&&n&&this._renderLatestEditIcon()))(),verifiedType:e.verified_type,withHoverCard:s,withLink:o})),e.highlightedLabel?i.createElement(y.Z,{label:e.highlightedLabel}):null)}_renderTweetMedia(e){var t,n,o;const{forwardPivotInfo:s,loggedInUserId:a,mediaContentStyles:l,mediaMaxHeight:c,nudges:d,preventVideoPlayback:u,shouldShowAltLabelAlways:h,singleImageMaxAspectRatio:m,singleImageMinAspectRatio:g,tweet:y,withCenterCrop:b,withLink:f}=this.props;if(B.Z.hasVoiceMedia(y))return i.createElement(r.Z,{style:O.marginTopXXSmall},i.createElement(B.Z,{tweet:y,withStraightBorders:!0}));var v,w;if(y.card&&p.Z.isSpaceCard(y.card.name))return i.createElement(r.Z,{style:O.marginTopXXSmall},i.createElement(C.Z,{audioSpaceId:null==(v=y.card.binding_values.id)?void 0:v.string_value,clipMetadata:null==(w=y.card.binding_values.clip_metadata)?void 0:w.string_value,withStraightBorders:!0}));const _=e?1:1.7777777777777777,E=e?1:void 0,Z=Boolean((null==(t=y.extended_entities)?void 0:t.media)&&(null==(n=y.extended_entities)?void 0:n.media.length)>1),S={displayOptions:{badgeConfiguration:e?{hideDuration:!1,hideDataSize:!0,hideViewCount:!0}:void 0,hideLeftBadges:e&&Z},hidePreviewPlayButton:e},k=!!c&&!e;return i.createElement(x.Z,{authorId:y.user.id_str,authorScreenName:y.user.screen_name,cacheLocationKey:"quote_tweet",containerAspectRatio:_,displayMediaTags:!1,forwardPivotInfo:s,hasSensitiveMedia:y.possibly_sensitive,hideAcceptOverlay:e,isCondensed:e,loggedInUserId:a,mediaContentStyles:l,mediaDetails:null==(o=y.extended_entities)?void 0:o.media,mediaMaxHeight:c,mediaTagsLink:`${y.permalink}/media_tags`,nudges:d,preventPlayback:e||u,shouldShowAltLabelAlways:h,showBorder:e,showRoundCorners:e,singleImageMaxAspectRatio:e?E:m,singleImageMinAspectRatio:e?E:g,style:k?O.centerItems:void 0,tweetCreatedAt:y.created_at,tweetId:y.id_str,tweetText:y.text,videoAspectRatio:_,videoOptions:S,withCenterCrop:b,withLink:f,withPostPlayback:!0})}_renderTimestamp(e){const{tweet:t,withHeaderLinks:n}=this.props,o=n?{pathname:`https://twitter.com${t.permalink}`}:void 0;return i.createElement(v.Z,{link:o,timestamp:e})}_renderReplyContext(){var e;const{isCarouselItem:t,tweet:n}=this.props;return n.in_reply_to_status_id_str?i.createElement(Z.ZP,{displayTextRange:n.display_text_range,inReplyToName:n.in_reply_to_name,inReplyToScreenName:n.in_reply_to_screen_name,inReplyToUserIdStr:n.in_reply_to_user_id_str,linkType:Z.ZP.ReplyContextLinkTypes.none,style:[O.marginTopXXSmall,t?O.textOverflowEllipsis:void 0],tweetPermalink:n.permalink,userMentionsEntities:null==(e=n.entities)?void 0:e.user_mentions}):null}_renderShowText(e){const{withLink:t}=this.props;return i.createElement(u.ZP,{color:"link",style:[O.marginTopXXSmall,!t&&O.disabledLink]},e)}_renderWithheldTweet(){const{style:e,tweet:t}=this.props;return i.createElement(r.Z,{style:e},i.createElement(A.Z,{displayTextRange:t.display_text_range,entities:t.withheld_entities||t.entities,inline:!0,lang:t.lang,text:t.withheld_text||t.text}))}get shouldRenderMedia(){const{hideMedia:e,tweet:t}=this.props;return!e&&this._hasMedia(t)&&!t.possibly_sensitive&&!this._hasSensitiveMediaWarnings()}get shouldRenderShowPollText(){const{tweet:e}=this.props;return e.card&&p.Z.isPollCard(e.card.name)}_hasMedia(e){const{extended_entities:t}=e,{withMediaAsTextLinks:n}=this.props;return this._canRenderAudioSpaceCard(e)||!(!(t&&t.media&&t.media.length)||n)}_hasSensitiveMediaWarnings(){var e,t;const{tweet:n}=this.props;return!(null==(e=n.extended_entities)||null==(t=e.media)||!t.flatMap((e=>e.sensitive_media_warning?(0,d.Z)(e.sensitive_media_warning):[])).some(Boolean))}_canRenderAudioSpaceCard(e){return Boolean(e.card&&p.Z.isSpaceCard(e.card.name)&&!this.props.isCondensed)}_isWithheldTweet(e){return!!e.withheld_scope}}z.defaultProps={hideMedia:!1,onPress:void 0,shouldShowBorder:!0,withCenterCrop:!1,withEditAnatomy:!1,withMediaAsTextLinks:!1,withHeaderLinks:!1,withLink:!0,withUserHoverCard:!0,isCarouselItem:!1,isCollaborativeTweetConsumptionEnabled:!1,isVibeTweetConsumptionEnabled:!1};const O=_.Z.create((e=>({carouselStyleMediaSide:{flex:4,maxHeight:`calc(2 * ${e.spaces.space64})`,maxWidth:`calc(2* ${e.spaces.space64})`},textOverflowEllipsis:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},marginBottomXXSmall:{marginBottom:e.spaces.space4},marginTopXXSmall:{marginTop:e.spaces.space4},marginTopSmall:{marginTop:e.spaces.space12},quoteTweetContainer:{overflow:"hidden",minHeight:e.spaces.space64},quoteTweetContainerBorder:{borderColor:e.colors.nestedBorderColor,borderWidth:e.borderWidths.small,borderRadius:e.borderRadii.xLarge},quoteTweetWithoutLink:{cursor:"default"},socialContextSpacing:{marginBottom:e.spaces.space2,marginStart:e.spaces.space8},socialContextIconSpacing:{marginEnd:e.spaces.space4},headerContainer:{flexDirection:"column",marginHorizontal:e.spaces.space12,marginTop:e.spaces.space12},userNameRoot:{flexShrink:1,overflow:"hidden"},userNameWrapper:{alignItems:"flex-start",maxWidth:"100%"},attributionWrapper:{flexShrink:1,flexDirection:"row"},attributionWrapperCenter:{alignItems:"center"},attributionWrapperFlexStart:{alignItems:"flex-start"},timestampWrapper:{flexShrink:0,whiteSpace:"pre"},textContentSpacing:{marginHorizontal:e.spaces.space12,marginBottom:e.spaces.space12},disabledLink:{opacity:.5},condensedMediaSide:{flex:2,alignSelf:"flex-start",marginVertical:e.spaces.space12,marginStart:e.spaces.space12,overflow:"hidden",borderRadius:e.borderRadii.xLarge,borderStyle:"solid",borderColor:"transparent"},condensedContentSide:{flex:8,flexBasis:"0%"},condensedContentBody:{flexDirection:"row"},centerItems:{alignItems:"center"},collaboratorsWrapper:{alignItems:"flex-start",maxWidth:"100%",flexDirection:"row"},collaboratorsNames:{marginStart:e.spaces.space8},vibeWrapper:{alignItems:"flex-start",marginTop:e.spaces.space8}})))},84740:(e,t,n)=>{n.d(t,{Z:()=>P});n(6886);var o=n(2784),i=n(26499),r=n(79404),s=n.n(r),a=n(36934),l=n(73186);const c=3600,d=86400,u=2592e3,h=31449600,p=s().ccd32094,m=s().abfcce0d,g=s().e8733ed9,y=s().i3b7a017,b=s().be59d8c3,f=s().ie5d110f,v=s().i3d087db,w=s().df5f11b3,C=s().ga8d18c9,_=s().a91e7d49,E=s().id952a69,x=s().ga09ab65,Z=s().c83b901d,S=s().a55b9fed,k=s().ccaa970f,T=s().jade381b,L=s().d725a289;class I extends o.PureComponent{constructor(...e){super(...e),this._onAppForegrounded=e=>{"active"===e&&this.forceUpdate()}}componentDidMount(){this._listener=i.Z.addEventListener("change",this._onAppForegrounded)}componentWillUnmount(){var e;null==(e=this._listener)||e.remove("change",this._onAppForegrounded)}render(){const{accessibilityDescribedBy:e,accessibilityLabel:t,color:n,cutoff:i,humanReadable:r,link:s,nativeID:l,onPress:I,prefix:P,relative:M,style:B,timestamp:A}=this.props,D=new Date(A),U=!isNaN(D.getTime());if(!U)return null;const F=T(D),N=`${L(D)} · ${F}`,{aria:H,label:z}=U?((e,t)=>{const n=Date.now(),o=Math.floor((n-e)/1e3),i=new Date(n).getFullYear(),r=new Date(e).getFullYear();if(o<=-5)return{label:k(e),aria:k(e)};if(o<=0)return{label:p,aria:p};if(o<60)return{label:g(o),aria:m({amountOfTime:y(o)})};if(o<c){const e=Math.floor(o/60);return{label:b(e),aria:m({amountOfTime:f(e)})}}if(o<d){const e=Math.floor(o/c);return{label:v(e),aria:m({amountOfTime:w(e)})}}if(o<u&&"years"===t){const e=Math.floor(o/d);return{label:C(e),aria:m({amountOfTime:_(e)})}}if(o<h&&"years"===t){const e=Math.floor(o/u);return{label:E(e),aria:m({amountOfTime:x(e)})}}if("years"===t){const e=Math.floor(o/h);return{label:Z(e),aria:m({amountOfTime:S(e)})}}return r===i?{label:k(e),aria:k(e)}:{label:T(e),aria:T(e)}})(D,i):{},O=M?r?H:z:N,V=M?H:N;return o.createElement(a.ZP,{accessibilityDescribedBy:e,accessibilityLabel:t||V,color:n,hoverLabel:{label:N},link:s,nativeID:l,onClick:I,style:[B,R.timestamp],withInteractiveStyling:!!s},P,o.createElement("time",{dateTime:D.toISOString()},O))}}I.defaultProps={color:"gray700",humanReadable:!1,relative:!0};const R=l.Z.create((e=>({timestamp:{flexShrink:0,whiteSpace:"nowrap",display:"inline-flex",flexWrap:"wrap",gap:e.spaces.space4}}))),P=I},6555:(e,t,n)=>{n.d(t,{Z:()=>s});var o=n(2784),i=n(36934),r=n(2464);function s({accessibilityRole:e,align:t,color:n,dir:s,entities:a,nativeID:l,onEntityClick:c,renderFragment:d={},size:u,style:h,text:p,weight:m,withHashflags:g}){const y=(0,r.ZP)(p,a);return o.createElement(i.ZP,{accessibilityRole:e,align:t,color:n,dir:s,nativeID:l,size:u,style:h,weight:m,withHashflags:g},y.map(((e,t)=>{const n=d[e.type],r={children:e.text,color:e.color,dir:e.dir,link:e.link,onClick:e.link?c:void 0,weight:e.weight,withHashflags:g};return o.createElement(o.Fragment,{key:`${e.text}:${t}`},n?n(r,e.ref):o.createElement(i.ZP,r))})))}s.makeEntityLink=r.ie,s.internal_parseRichTextEntities=r.ZP,s.TextFragment=i.ZP},2464:(e,t,n)=>{n.d(t,{ZP:()=>h,ie:()=>d,nt:()=>c});n(6886),n(36728);var o=n(52978),i=n.n(o),r=n(49089),s=n(56500);const a=Object.freeze({Cashtag:"cashtag",Hashtag:"hashtag",Mention:"mention",Url:"url",List:"twitterList"}),l=Object.freeze({CashtagClick:"cashtag_click",HashtagClick:"hashtag_click"});function c(e){return e.screenName?a.Mention:e.hashtag?a.Hashtag:e.cashtag?a.Cashtag:e.url?a.Url:null}function d(e,t){const n="https://twitter.com";switch(e){case a.Cashtag:return`${n}/search?q=${encodeURIComponent(`${t}`)}&src=${l.CashtagClick}`;case a.Hashtag:return`${n}/search?q=${encodeURIComponent(`${t}`)}&src=${l.HashtagClick}`;case a.Mention:return`${n}/${t}`;case a.List:return`${n}/i/lists/${t}`;case a.Url:return t}}const u={cashtag:(e,t)=>({color:"link",dir:"ltr",link:d(a.Cashtag,`$${t.text}`),ref:t,text:`$${t.text}`,type:a.Cashtag}),hashtag:(e,t)=>({color:"link",dir:s.Z.getTextDirection(t.text),link:d(a.Hashtag,`#${t.text}`),ref:t,text:`#${t.text}`,type:a.Hashtag}),mention:(e,t)=>({color:"link",dir:"ltr",link:d(a.Mention,t.screenName),ref:t,text:`@${t.screenName}`,type:a.Mention}),text:(e,t)=>({ref:{},text:r.Z.replaceCarriageReturns(e),type:"text",weight:"Strong"===t?"bold":void 0}),twitterList:(e,t)=>({color:"text",link:d(a.List,t.id),ref:t,text:e,type:a.List,weight:"bold"}),url:(e,t)=>({color:"link",link:d(a.Url,t.url),ref:t,text:e,type:a.Url}),user:(e,t)=>({ref:t,text:e,type:"user",weight:"bold"})};function h(e,t){const n=[];if(t.length){const o=((e,t)=>e.map((e=>{const[n,o]=i()(t,e.fromIndex,e.toIndex);return{...e,fromIndex:n,toIndex:o}})))(t,e);let r=0;for(const t of o){const{format:o,fromIndex:i,ref:s,toIndex:a}=t;a!==r&&i>r&&n.push(u.text(e.slice(r,i)));const l=e.slice(i,a);if(s){const e=Object.keys(s).find((e=>null!=s[e]));if(e){const t=u[e];t?n.push(t(l,s[e])):n.push(u.text(l))}}else n.push(u.text(l,o));r=a}r<e.length&&n.push(u.text(e.slice(r)))}else n.push(u.text(e));return n}},50329:(e,t,n)=>{n.d(t,{Z:()=>s});var o=n(2784),i=n(65597),r=n(30318);const s=({accessibilityLabel:e,accessibilityLabelValueText:t,onChange:n,onDarkBackground:s,thumbLabel:a,value:l,...c})=>{const{direction:d}=(0,r.Z)(),u={...c,endThumbAccessibilityLabel:e,endThumbAccessibilityLabelValueText:t,endThumbLabel:a,onDarkBackground:s,value:[c.min,l],onChange:e=>n(e[1]),isSingleSlider:!0,languageWritingDirection:d};return o.createElement(i.Z,u)}},74673:(e,t,n)=>{n.d(t,{ZP:()=>g});n(6886);var o=n(2784),i=n(25686),r=n(51461),s=n(63142),a=n(36934),l=n(73186);const c="up",d="down",u=(e,t,n)=>{n((n=>{const o=(0,r.Z)(e)?e>(n.count||0)?c:d:c;return{...n,count:e,oldText:n.text,pendingCount:null,pendingText:null,text:t,transitionDirection:o}}))},h={};[c,d].forEach((e=>{const t="0.3s";h[e]={active:{transitionProperty:"transform",transitionDuration:t,transform:"translate3d(0, 0, 0)"},pre:{transform:`translate3d(0, ${e===c?"100%":"-100%"}, 0)`},post:{transform:`translate3d(0, ${e===c?"-100%":"100%"}, 0)`,transitionProperty:"transform",transitionDuration:t}}}));const p={position:"absolute"},m=l.Z.create({root:{overflow:"hidden"}}),g=e=>{const{children:t,containerStyle:n,count:l,...d}=e,[g,y]=o.useState({animating:!1,count:e.count,pendingCount:null,text:e.children,oldText:null,pendingText:null,transitionDirection:c}),b=o.useRef(!1);return o.useEffect((()=>(b.current=!0,function(){b.current=!1})),[]),o.useEffect((()=>{if(b.current)if(s.Z.reducedMotionEnabled)y((n=>({...n,oldText:null,text:t,pendingText:null,pendingCount:null,count:e.count})));else if(t!==g.pendingText){t===g.text||(0,r.Z)(e.count)&&g.count===e.count?y((e=>({...e,pendingCount:null,pendingText:null}))):(y((n=>({...n,pendingCount:e.count,pendingText:t}))),g.animating||u(e.count,t,y))}}),[t]),o.useEffect((()=>{b.current&&!1===g.animating&&(g.oldText?window.requestAnimationFrame((()=>window.requestAnimationFrame((()=>{b.current&&y((e=>({...e,animating:!0})))})))):g.pendingText&&u(g.pendingCount,g.pendingText,y))}),[g.animating,g.oldText]),o.useMemo((()=>{const e=h[g.transitionDirection],t=g.oldText&&!s.Z.reducedMotionEnabled,r=!g.animating&&g.oldText&&!s.Z.reducedMotionEnabled,l={...p,...g.animating?e.post:e.active},c={...r?e.pre:e.active};return o.createElement(i.Z,{style:[m.root,n]},t?o.createElement("span",{style:l},o.createElement(a.ZP,d,g.oldText)):null,o.createElement("span",{"data-testid":"app-text-transition-container",onTransitionEnd:()=>((e,t)=>{e&&t((e=>({...e,animating:!1,oldText:null})))})(b.current,y),style:c},o.createElement(a.ZP,d,g.text)))}),[n,d,g,b,y])}},94963:(e,t,n)=>{n.d(t,{Z:()=>N});var o=n(2784),i=n(41487),r=n(79404),s=n.n(r),a=n(55269),l=n(81921),c=n(90649),d=n(40811),u=n(14481),h=n(17272),p=n(7307),m=n(6059),g=n(80166),y=n(40271),b=n(11258),f=n(45680),v=n(33131),w=n(75629),C=n(27895),_=n(56538),E=n(7742),x=n(25163),Z=n(21783),S=n(36934),k=n(37800),T=n(73186),L=n(49376);const I=s().jb767df8,R=s().bb3323fa,P=s().habf9678,M=s().db0798ed,B=s().dc716ec9,A=e=>o.createElement(S.ZP,{dir:i.Z.getConstants().isRTL?"rtl":"ltr",withHashflags:!0},e),D=(e,t)=>t?I:(e=>{const t=A(e);return o.createElement(s().I18NFormatMessage,{$i18n:"h99e9c95"},t)})(e),U=T.Z.create((e=>({small:{height:e.lineHeights.subtext3,width:e.lineHeights.subtext3},large:{height:e.lineHeights.subtext1,width:e.lineHeights.subtext1},xLarge:{height:e.lineHeights.headline1,width:e.lineHeights.headline1}}))),F=T.Z.create((e=>({circle:{color:e.colors.primary,width:"0.5em"},colorDeepGray:{color:e.colors.gray700},colorBlue:{color:e.colors.blue500},colorGreen:{color:e.colors.green500},colorOrange:{color:e.colors.orange500},colorPrimary:{color:e.colors.primary},colorRed:{color:e.colors.magenta500},grayscaleImage:{borderRadius:e.borderRadii.infinite,filter:"grayscale(100%)"},brandColor:{color:e.colors.brandColor}}))),N=({contextType:e,iconColor:t,iconSize:n,link:i,retweetData:r,text:s,topicData:S,userAvatarUrls:I})=>{const{isSelfRetweet:N,name:H,screenName:z}=r||{},O=((e,t,n,i=[])=>{const r=U[t],s=[n?{color:T.Z.theme.colors[n]}:F.colorDeepGray,r],S=o.createElement(a.Z,{style:s}),I=o.createElement(l.Z,{style:s}),R=o.createElement(c.Z,{style:s}),P=o.createElement(d.Z,{style:s}),M=o.createElement(u.Z,{style:s}),B=o.createElement(h.Z,{style:F.circle}),A=o.createElement(p.Z,{style:s}),D=o.createElement(m.Z,{style:s}),N=o.createElement(g.Z,{style:s}),H=o.createElement(y.Z,{style:s}),z=o.createElement(b.Z,{style:s}),O=o.createElement(f.Z,{style:s}),V=o.createElement(v.Z,{style:s}),W=o.createElement(w.Z,{style:s}),$=o.createElement(C.Z,{style:s}),G=o.createElement(_.Z,{style:s}),j=o.createElement(E.Z,{style:s}),q=o.createElement(x.Z,{style:s}),Q=o.createElement(k.Z,{borderColor:"cellBackground",userAvatarSize:t,userAvatarUrls:i}),K=o.createElement(Z.Z,{style:s});switch(e){case L.Q.Pin:case L.Q.ReplyPin:return S;case L.Q.Retweet:return I;case L.Q.Like:return R;case L.Q.Follow:return P;case L.Q.Moment:return M;case L.Q.NewTweets:return B;case L.Q.Reply:case L.Q.Conversation:return A;case L.Q.Feedback:return D;case L.Q.Topic:return N;case L.Q.List:return H;case L.Q.Location:return z;case L.Q.Community:return O;case L.Q.Spaces:return V;case L.Q.Sparkle:return W;case L.Q.SmartBlockExpiration:return $;case L.Q.SocialProof:case L.Q.FollowFollowed:return q;case L.Q.FollowMutual:return j;case L.Q.FollowFollowing:return G;case L.Q.Facepile:return Q;case L.Q.Bird:return K;case L.Q.TextOnly:default:return null}})(e,n,t,I);switch(e){case L.Q.Retweet:return{Icon:O,text:s||D(H,N),link:z?`https://twitter.com/${z}`:void 0};case L.Q.Pin:return{Icon:O,text:s||R};case L.Q.ReplyPin:return{Icon:O,text:P};case L.Q.Topic:return{Icon:O,accessibilityLabel:"Recommendation"===(null==S?void 0:S.functionalityType)||"RecWithEducation"===(null==S?void 0:S.functionalityType)?B({topicName:s}):M({topicName:s}),text:s?A(s):null,link:i};default:return{Icon:O,text:s?A(s):null,link:i}}}},9524:(e,t,n)=>{n.d(t,{Z:()=>b});n(36728);var o=n(2784),i=n(25686),r=n(36934),s=n(37541),a=n(77934),l=n(77089),c=n(73186),d=n(91062),u=n(68011),h=n(94963),p=n(49376);const m={viewType:"social_context"};class g extends o.PureComponent{render(){const{avatarSize:e,bottomControl:t,iconStyle:n,nativeID:c,onLayout:d,rightControl:u,style:p,testID:g,textColor:b,textSize:f,topControl:v,weight:w,withBottomBorder:C,withLeftPadding:_,withTextCentered:E,...x}=this.props,{Icon:Z,accessibilityLabel:S,link:k,text:T}=(0,h.Z)(x),L=o.createElement(r.ZP,{accessibilityLabel:S,color:b,nativeID:c,numberOfLines:2,size:f,testID:g,weight:w},T),{cellStyle:I,viewStyle:R}=this._getStyles();return T?o.createElement(l.ZP.UseProps,null,(r=>o.createElement(a.zt,{behavioralEventContext:m},o.createElement(o.Fragment,null,v||null,o.createElement(i.Z,{onLayout:d,style:[p,R,r.socialContextRefreshEnabled()&&!_&&y.socialContextRefresh]},o.createElement(s.Z,{avatarCell:Z||(_?null:void 0),avatarCellStyle:[n,y.socialContextIconColumn,!_&&y.unsetIconWidth,r.socialContextRefreshEnabled()&&!_&&y.socialContextRefreshIcon],avatarSize:e,cellStyle:I},o.createElement(i.Z,{style:y.cellWrapper},o.createElement(i.Z,{style:[y.socialContextTextColumn,r.socialContextRefreshEnabled()&&!_&&y.socialContextRefreshTextColumn]},k?this._renderLink(k,L):L),u||null)),t||null))))):null}_renderLink(e,t){const{contextType:n,nativeID:i,onClick:s,retweetData:a,textColor:l,topicData:c}=this.props,{screenName:h}=a||{},m=o.createElement(r.ZP,{color:l,link:e,nativeID:i,onClick:s},t);return n===p.Q.Topic&&c?o.createElement(d.Z,{topicId:c.topicId},m):n===p.Q.Retweet&&h?o.createElement(u.Z,{screenName:h},m):m}_getStyles(){const{bottomControl:e,contextType:t,withBottomBorder:n,withTextCentered:o}=this.props,i=t===p.Q.TextOnly,r=n?[y.bottomBorderMargin,!!e&&y.bottomBorder]:[],s=n&&!e?[y.bottomBorder]:[];return i&&s.push(y.topicContext),o&&s.push(y.socialContextTextCentered),{viewStyle:r,cellStyle:s}}}g.defaultProps={iconSize:"small",textColor:"gray700",textSize:"subtext2",withBottomBorder:!1,withLeftPadding:!0,withTextCentered:!1};const y=c.Z.create((e=>({socialContextIconColumn:{alignItems:"flex-end",justifyContent:"center"},bottomBorderMargin:{marginBottom:e.componentDimensions.gutterVertical},cellWrapper:{flexDirection:"row"},bottomBorder:{paddingBottom:e.spaces.space4,borderBottomStyle:"solid",borderBottomWidth:e.borderWidths.small,borderBottomColor:e.colors.borderColor},topicContext:{paddingBottom:`calc(${e.spaces.space4} + ${e.spaces.space2})`},socialContextTextColumn:{alignItems:"flex-start",flexShrink:1,justifyContent:"center"},unsetIconWidth:{flexBasis:"unset"},socialContextRefreshIcon:{marginEnd:e.spaces.space8},socialContextRefresh:{marginBottom:e.spaces.space8},socialContextRefreshTextColumn:{minHeight:e.spaces.space32},socialContextTextCentered:{justifyContent:"center"}}))),b=g},79052:(e,t,n)=>{n.d(t,{Z:()=>l});var o=n(7896),i=(n(71372),n(2784)),r=n(26671),s=n(57217),a=n(74994);const l=function(e){const{audioSpaceId:t,clipMetadata:n,...l}=e,c=function(e){if(!e)return;let t;try{t=JSON.parse(e)}catch(e){r.Z.report(new Error("[SpaceCard] could not parse clip metadata"))}return t}(n);return t&&c?i.createElement(s.Z,(0,o.Z)({audioSpaceId:t,clipMetadata:c},l)):t?i.createElement(a.Z,(0,o.Z)({audioSpaceId:t},l)):null}},4342:(e,t,n)=>{n.d(t,{Z:()=>p});n(6886);var o=n(2784),i=n(25686),r=n(36934),s=n(10013),a=n(74673),l=n(73186);const c="subtext1",d=o.createContext({onMedia:!1});class u extends o.Component{constructor(...e){super(...e),this._getHoverLabel=()=>{const{count:e}=this.props;if(!e)return;return(0,s.Gb)(e)!==(0,s.wl)(e)?{label:(0,s.Gb)(e)}:void 0}}render(){const{children:e,link:t,onMedia:n,onPress:i}=this.props;return o.createElement(r.ZP,{color:n?"white":"text",hoverLabel:this._getHoverLabel(),link:t,onClick:i},o.createElement(d.Provider,{value:{onMedia:n}},e))}}u.Group=e=>o.createElement(i.Z,{style:[h.row,e.style]},o.Children.toArray(e.children).filter(Boolean).map(((e,t,n)=>o.createElement(i.Z,{key:t,style:t<n.length-1&&h.groupItemNonLast},e)))),u.Label=({children:e})=>o.createElement(d.Consumer,null,(({onMedia:t})=>o.createElement(r.ZP,{children:e,color:t?"white":"gray700",size:c}))),u.Value=({animated:e,children:t,count:n,weight:i="bold"})=>o.createElement(d.Consumer,null,(({onMedia:s})=>e?o.createElement(a.ZP,{children:t,count:n,size:c,weight:i}):o.createElement(r.ZP,{children:t,color:s?"white":"text",size:c,weight:i})));const h=l.Z.create((e=>({row:{flexDirection:"row",flexWrap:"wrap",flex:1},groupItemNonLast:{marginEnd:e.spaces.space20}}))),p=u},32291:(e,t,n)=>{n.d(t,{ZP:()=>E,U7:()=>x});n(6886);var o=n(2784),i=n(25686),r=n(16587),s=n(63142),a=n(36934),l=n(77934),c=n(79866),d=n(11839),u=n(15686),h=n(31099),p=n(73186),m=n(83853),g=n(79404),y=n.n(g),b=n(10013),f=n(54044),v=n(74673);const w=y().e8d93005,C=p.Z.create((e=>({count:{paddingHorizontal:e.spacesPx.space12,minWidth:`calc(1em + 2 * ${e.spaces.space12})`},narrowCount:{paddingHorizontal:e.spacesPx.space8,minWidth:`calc(1em + 2 * ${e.spaces.space8})`}}))),_=({color:e,count:t})=>o.createElement(f.Z,null,(({containerWidth:n})=>{return o.createElement(v.ZP,{color:e,count:t,size:"subtext2",style:[C.count,(i=n,i<p.Z.theme.breakpoints.small&&C.narrowCount)]},t>0?(e=>e<320)(n)?w(t):(0,b.wl)(t):void 0);var i}));class E extends o.PureComponent{constructor(...e){super(...e),this._getMemoizedBehavioralEventContext=(0,r.Z)(((e,t,n)=>({token:e,viewState:t,viewType:n}))),this._renderContent=(e,t)=>{const{activeColor:n,color:r,decoration:s}=this.props;return o.createElement(u.Z,null,(({direction:l})=>o.createElement(a.ZP,{color:e?n:r,dir:l,style:[S.inner,e&&"blue500"===n&&S.blue500]},o.createElement(i.Z,{ref:this.props.actionIconContainerRef},t?this._renderButton(t):null,this._renderIcon()),s,this._renderCount())))},this._renderButton=e=>{const{activeColor:t,backgroundColor:n,hoverLabel:i,iconSize:r,isActive:s,isDisabled:a,showBackgroundWhenActive:l}=this.props,u=c.Z.generate({backgroundColor:p.Z.theme.colors[n],color:p.Z.theme.colors[t],insetFocusRing:!0}),h=l&&s&&!(null!=e&&e.isHovered);return o.createElement(d.Z,{hoverLabel:i,interactiveStyles:u,interactivityState:e,style:[p.Z.absoluteFill,Z[h?"haloBackground":n],!a&&S.iconBackground,"small"===r&&S.iconSmallBoundingBox,h&&S.haloBoundingBox]})},this._renderIcon=()=>{const{ActiveIcon:e,iconSize:t,isActive:n,isDisabled:i,isFaded:r,onAnimationEnd:a,onAnimationStart:l,onError:c,showAnimation:d,transitionAnimationUrl:u}=this.props;if(!p.Z.theme.highContrastEnabled&&!s.Z.reducedMotionEnabled&&e&&d)return o.createElement(h.ZP,{animation:u||m.Bf,animationContainerStyle:x[t],animationStyle:T,onAnimationEnd:a,onAnimationStart:l,onError:c});{const s=n&&e?e:this.props.Icon;return o.createElement(s,{style:[x[t],!i&&r&&S.iconFaded]})}},this._renderCount=()=>{const{count:e,withCount:t}=this.props;return t?o.createElement(_,{count:e}):null},this._handlePress=e=>{const{onPress:t,renderWrapper:n}=this.props;n||(e.stopPropagation(),t&&t(e))}}render(){const{accessibilityLabel:e,focusable:t,behavioralEventContext:n,enableKeyboardShortcuts:r,isActive:a,isDisabled:c,isPresentational:u,keyboardShortcut:m,link:g,preventFocusShift:y,renderMenu:b,renderWrapper:f=o.Fragment,style:v,testID:w}=this.props,C=!p.Z.theme.highContrastEnabled&&!s.Z.reducedMotionEnabled,_=null==n?void 0:n.token,E=null==n?void 0:n.viewState,x=null==n?void 0:n.viewType,Z=this._getMemoizedBehavioralEventContext(_,E,x);return o.createElement(l.zt,{behavioralEventContext:Z},o.createElement(i.Z,{style:[S.root,v]},o.createElement(f,null,u?this._renderContent(a):o.createElement(d.Z,{accessibilityHasPopup:b?"menu":void 0,accessibilityLabel:e,disabled:c,enableKeyboardShortcuts:r,focusable:t,interactiveStyles:null,keyboardShortcut:m,link:g,onClick:this._handlePress,preventFocusShift:y,renderMenu:b,style:[S.triggerAreaRoot,S.outlineNone],testID:w},(e=>{const{isFocused:t,isHovered:n,isPressed:o}=e,i=a||n||o||t;return this._renderContent(i,e)}))),C?o.createElement(h.ZP.Prepare,null):null))}}E.defaultProps={activeColor:"blue500",backgroundColor:"transparent",color:"gray700",count:0,isDisabled:!1,iconSize:"normal"};const x=p.Z.create((e=>({small:{height:"1em",width:"1em"},normal:{height:"1.25em",width:"1.25em"},large:{height:"1.5em",width:"1.5em"}}))),Z=p.Z.create((e=>({transparent:{backgroundColor:e.colors.transparent},translucentBlack77:{backgroundColor:e.colors.translucentBlack77},haloBackground:{backgroundColor:e.colors.activeBlack}}))),S=p.Z.create((e=>({root:{flexDirection:"row",justifyContent:"flex-start"},triggerAreaRoot:{justifyContent:"center",minHeight:e.lineHeights.body,overflow:"visible",userSelect:"none"},inner:{alignItems:"center",display:"flex",justifyContent:"flex-start",transitionProperty:"color",transitionDuration:"0.2s",whiteSpace:"nowrap"},iconFaded:{opacity:.4},iconBackground:{borderRadius:e.borderRadii.infinite,margin:-8},iconSmallBoundingBox:{margin:-6},outlineNone:{outlineStyle:"none"},blue500:{color:e.colors.blue500},white:{color:e.colors.white},haloBoundingBox:{margin:-6}}))),k="224.5%",T={width:k,height:k}},83853:(e,t,n)=>{n.d(t,{Bf:()=>i,ZP:()=>s});var o=n(57038);const i="https://abs.twimg.com/sticky/animations/like.4.json";class r extends o.C{check(e){return super.check(null!=e?e:i)}}const s=new r},32019:(e,t,n)=>{n.d(t,{Z:()=>p});var o=n(2784),i=n(79404),r=n.n(i),s=n(44527),a=n(36934),l=n(73186);const c=r().e1b95ab0,d=r().g219b922,u=r().d0d51086,h=r().c6578930;function p({editType:e,link:t,nativeID:n,textMode:i,textSize:r}){return o.createElement(o.Fragment,null,o.createElement(a.ZP,{color:"gray700",link:t,style:m.root},o.createElement(s.Z,{accessibilityLabel:"latest"===e?d:h,nativeID:n,style:[m.icon,i&&m.iconTextSpacing]}),i&&o.createElement(a.ZP,{size:r},((e,t)=>"latest"===e?c:"inline"===t?u:h)(e,i))))}const m=l.Z.create((e=>({icon:{fontSize:e.fontSizes.subtext1},iconTextSpacing:{marginEnd:e.spaces.space4},root:{alignSelf:"flex-start",flexDirection:"row"}})))},35585:(e,t,n)=>{n.d(t,{Z:()=>$});var o=n(7896),i=(n(6886),n(36728),n(53985),n(2784)),r=n(25686),s=n(79404),a=n.n(s),l=n(16587),c=n(11469),d=n(32307),u=n(58955),h=n(69058),p=n(13983),m=n(77089),g=n(79866),y=n(11839),b=n(9933),f=n(36934),v=n(71575),w=n(95995);const C=a().f4393d0f,_={element:"screen_name",action:"profile_click"},E=({size:e,sourceTweetId:t,style:n,userIsBlueVerified:o,userIsProtected:s,userIsVerified:l,userName:c,userScreenName:d,userVerifiedType:u})=>{const h=v.Z.useAnalytics(),p=i.useCallback((()=>{h.scribe(_)}),[h]),m=i.useMemo((()=>({pathname:`/i/status/${t||""}`})),[t]),g=t?i.createElement(f.ZP,{link:m,onPress:p},i.createElement(w.Z,{isBlueVerified:o,isProtected:s,isVerified:l,name:c,screenName:d,verifiedType:u,withHoverCard:!0,withLink:!1,withScreenName:!1})):i.createElement(w.Z,{isBlueVerified:o,isProtected:s,isVerified:l,name:c,onLinkClick:p,screenName:d,verifiedType:u,withHoverCard:!0,withLink:!0,withScreenName:!1});return i.createElement(r.Z,{accessibilityLabel:C({name:c}),style:n},i.createElement(f.ZP,{color:"gray700",size:e},i.createElement(a().I18NFormatMessage,{$i18n:"dbf19261"},g)))};var x=n(88796),Z=n(87571),S=n(46281),k=n(40027),T=n(58987),L=n(45907),I=n(6555),R=n(73186),P=n(89758),M=n(33600),B=n(6556);const A=e=>{if(0===e.length)return null;const t=e[0],{playbackState:n}=t.playerState;if(n===B.q.FINISHED){const t=e.splice(0,1)[0];e.push(t)}return e[0]},D={roundRobin:A},U={autoplaySelectionPolicy:A,minimumVisibilityForAutoplay:.25};class F{constructor(e=U){this._playerQueue=[];const{autoplaySelectionPolicy:t,minimumVisibilityForAutoplay:n}=e;this._autoplaySelectionPolicy=t,this._minimumVisibilityForAutoplay=n}isAutoplayGroupEligibleForAutoplay(){return this._playerQueue.filter((e=>!e.playerState.placement||e.playerState.placement.visibleFraction()>=this._minimumVisibilityForAutoplay)).length===this._playerQueue.length}registerAutoplayGroupPlayer(e,t){let n=!1;if(void 0!==t){const o=this._playerQueue.findIndex((e=>void 0!==e.mediaIndex&&e.mediaIndex>t));o>=0&&(this._playerQueue.splice(o,0,{playerState:e,mediaIndex:t}),n=!0)}n||this._playerQueue.push({playerState:e,mediaIndex:t})}signalGroupAutoplayRequest(){const e=this._autoplaySelectionPolicy(this._playerQueue);return e?e.playerState:null}signalPlaybackComplete(e){if(!e){const e=this.signalGroupAutoplayRequest();e&&(e.commandHandlers.onAutoPlayRequest(),e.playbackState=B.q.AUTO_PLAYING)}}unregisterAutoplayGroupPlayer(e){const t=this._playerQueue.findIndex((t=>t.playerState===e));this._playerQueue.splice(t,1)}}F.policies=D;var N=n(74121);const H=({description:e,title:t})=>t||e?i.createElement(r.Z,{style:z.metadataContainer},t?i.createElement(f.ZP,{style:z.metadata,weight:"bold",withHashflags:!0},t):null,e?i.createElement(f.ZP,{style:z.metadata},e):null):null,z=R.Z.create((e=>({metadata:{marginBottom:e.spaces.space4},metadataContainer:{flex:1,flexDirection:"column",paddingBottom:e.spaces.space4,paddingHorizontal:e.spaces.space12,paddingTop:e.spaces.space12}}))),O=a().b74bf8b8;class V extends i.Component{constructor(...e){super(...e),this._autoplayGroupEmitter=null,this._inertVideoContainerRef=i.createRef(),this._getMedia=()=>{const{authorId:e,authorScreenName:t,caption:n,forwardPivotInfo:o,hideAcceptOverlay:i,loggedInUserId:r,mediaAltTranslations:s,mediaDetails:a,nudges:l,onPlaybackStarted:c,preventPlayback:d,promotedContent:u,shouldShowAltLabelAlways:h,showAltTranslation:p,tweetCreatedAt:m,tweetId:g,tweetText:y,videoAspectRatio:b,videoOptions:f,withPostPlayback:v}=this.props;return!this._autoplayGroupEmitter&&a.length>1&&(this._autoplayGroupEmitter=new F),this._getMediaMemoized(e,t,n,o,l,i,r,s,a,c,d,u,h,p,m,g,y,b,f,v)},this._getMediaMemoized=(0,l.Z)(((e,t,n,o,i,r,s,a={},l,d,u,p,m,g,y,b,f,v,w,C)=>(0,c.Z)(l,((l,c)=>{const{expanded_url:_}=l;if(!_)return null;const E={pathname:_,state:{forwardPivotInfo:o,nudges:i}};if("photo"===l.type){const t="photo"===l.type&&l.original_info,o=x.Z.getOriginalImage(l);return t&&o&&{type:"photo",accessibilityLabel:g?a[l.id_str]:l.ext_alt_text||O,accessibilityDescribedBy:n?`caption-${b}`:void 0,backgroundColor:x.Z.getBackgroundColor(l),cropCandidates:x.Z.getCropCandidates(l),expandedUrl:E,height:o.height,id_str:l.id_str,shouldShowAltLabel:!(!l.ext_alt_text||e!==s&&!m),url:o.url,width:o.width}}if(k.Z.isVideo(l)){const e=l,n=k.Z.extractVideoProps(h.Z.forTweet(b),e,void 0,o,m),i=this._autoplayGroupEmitter?{autoplayGroupEmitter:this._autoplayGroupEmitter,mediaIndex:c}:void 0;return n&&{...n,...w,additionalMediaInfo:e.additional_media_info,aspectRatio:v||n.aspectRatio,authorScreenName:t,autoplayGroupOptions:i,expandedUrl:E,hideDataSaverAcceptOverlay:r,onPlaybackStarted:d,preventPlayback:u,promotedContent:p,tweetCreatedAt:y,tweetId:b,tweetText:f,withPostPlayback:C,type:e.type}}return null})))),this._getPhotos=()=>{const{authorId:e,caption:t,forwardPivotInfo:n,loggedInUserId:o,mediaAltTranslations:i,mediaDetails:r,nudges:s,shouldShowAltLabelAlways:a,showAltTranslation:l,tweetId:c}=this.props;return this._getMemoizedPhotos(e,t,n,s,o,r,a,i,l,c)},this._getMemoizedPhotos=(0,l.Z)(((e,t,n,o,i,r,s,a={},l,d)=>(0,c.Z)(r,(r=>{const{expanded_url:c}=r;if(!c)return null;const u={pathname:c,state:{forwardPivotInfo:n,nudges:o}},h="photo"===r.type&&r.original_info,p=x.Z.getOriginalImage(r);return h&&p&&{accessibilityLabel:l?a[r.id_str]:r.ext_alt_text||O,accessibilityDescribedBy:t?`caption-${d}`:void 0,backgroundColor:x.Z.getBackgroundColor(r),cropCandidates:x.Z.getCropCandidates(r),expandedUrl:u,height:p.height,id_str:r.id_str,shouldShowAltLabel:!(!r.ext_alt_text||e!==i&&!s),url:p.url,width:p.width}})))),this._getSourceUser=()=>{const{mediaDetails:e}=this.props;return e&&e[0]&&e[0].additional_media_info&&e[0].additional_media_info.source_user},this._getOpenPhotoModal=e=>()=>{var t;const{onClick:n}=this.props,o="string"==typeof e[0].expandedUrl?e[0].expandedUrl:null==(t=e[0].expandedUrl)?void 0:t.pathname;null==n||n(),o&&(null==L.ZP||L.ZP.push(o))}}shouldComponentUpdate(e){return!(0,d.Z)(this.props,e)}componentDidUpdate(){if(this._inertVideoContainerRef.current){const e=this._inertVideoContainerRef.current;e.hasAttribute("inert")||e.setAttribute("inert","")}}render(){const{hasSensitiveMedia:e,nativeID:t,style:n,withHalvedMediaSize:o}=this.props;return i.createElement(m.ZP.UseProps,null,(({canVerifiedCrawlerConsumeSensitiveMedia:s,mixedMediaEnabled:a,sensitiveMediaWarningsEnabled:l,tweetMediaItemImmersiveViewerEntryPoint:c,withEdgeToEdgeContent:d,withVodTweetDetailAttribution:u})=>{const h=this.sensitiveMediaWarnings,p=h.size&&l();return i.createElement(v.Z.Provider,{namespace:{element:"media"}},i.createElement(r.Z,{nativeID:t,style:[o?W.halvedMediaSize:null,n]},s()||!e&&!h.size?this._renderContent(a(),c()):i.createElement(T.Z,{revealableTombstoneConfig:p?T.Z.sensitiveMediaWarningTombstoneConfig:T.Z.sensitiveMediaTombstoneConfig,sensitiveMediaWarnings:p?h:void 0,withRoundedCorners:!d()},this._renderContent(a(),c())),this._renderMediaCaption(),this._renderMediaTags(),this._renderMediaAttribution(u())))}))}_renderContent(e,t){const{customHoverBackgroundColor:n,mediaContentStyles:o,showBorder:r,showRoundCorners:s}=this.props,a=e?this._getMedia():this._getPhotos();let l=null;t&&this._isFirstMediaItemVideo()?l=this._renderVideo(t):e&&a.length>=1?l=this._renderMedia():a.length>=1?l=this._renderPhotos():this._isFirstMediaItemVideo()&&(l=this._renderVideo());const c=a.length>=1||this._isFirstMediaItemVideo(),d=r&&c,u=a.length?g.Z.generate({backgroundColor:"transparent",color:R.Z.theme.colors.primary,withFocusWithinFocusRing:!0,customHoverBackgroundColor:n}):null;return l?i.createElement(y.Z,{interactiveStyles:u,style:[d&&W.itemWithBorder,s&&W.itemWithRoundCorners,o]},l,this._renderMediaMetadata()):null}_renderMedia(){const{cacheLocationKey:e,containerAspectRatio:t,enableKeyboardShortcuts:n,hideAcceptOverlay:o,isCondensed:r,mediaMaxHeight:s,onClick:a,renderPhoto:l,renderVideo:c,singleImageMaxAspectRatio:d,singleImageMinAspectRatio:u,withCenterCrop:h,withLink:p}=this.props,m=this._getMedia();return i.createElement(b.Z,{enabled:n,handlers:{[b.Z.shortcuts.openMediaModal]:this._getOpenPhotoModal(m)}},i.createElement(P.Z,{cacheLocationKey:e,containerAspectRatio:t,hideAcceptOverlay:o,isCondensed:r,media:m,mediaMaxHeight:s,onClick:a,renderPhoto:l,renderVideo:c,singleImageMaxAspectRatio:d,singleImageMinAspectRatio:u,withCenterCrop:h,withLink:p}))}_renderPhotos(){const{cacheLocationKey:e,containerAspectRatio:t,enableKeyboardShortcuts:n,hideAcceptOverlay:o,isCondensed:r,mediaMaxHeight:s,onClick:a,singleImageMaxAspectRatio:l,singleImageMinAspectRatio:c,withCenterCrop:d,withLink:u}=this.props,h=this._getPhotos();return i.createElement(b.Z,{enabled:n,handlers:{[b.Z.shortcuts.openMediaModal]:this._getOpenPhotoModal(h)}},i.createElement(M.Z,{cacheLocationKey:e,containerAspectRatio:t,hideAcceptOverlay:o,images:h,isCondensed:r,mediaMaxHeight:s,onClick:a,singleImageMaxAspectRatio:l,singleImageMinAspectRatio:c,withCenterCrop:d,withLink:u}))}_renderVideo(e){const{authorScreenName:t,caption:n,forwardPivotInfo:o,hideAcceptOverlay:s,mediaDetails:a,onPlaybackStarted:l,preventPlayback:c,promotedContent:d,shouldShowAltLabelAlways:u,tweetCreatedAt:p,tweetId:m,tweetText:g,videoAspectRatio:b,videoOptions:f,withPostPlayback:v}=this.props,w=a[0],C=w&&"photo"!==w.type?w:void 0,_=w&&"video"===w.type,E=C&&k.Z.extractVideoProps(h.Z.forTweet(m),C,void 0,o,u);if(C&&E){const o={...E,...f,additionalMediaInfo:C.additional_media_info,aspectRatio:b||E.aspectRatio,authorScreenName:t,hideDataSaverAcceptOverlay:s,onPlaybackStarted:l,preventPlayback:c,promotedContent:d,tweetCreatedAt:p,tweetId:m,tweetText:g,withPostPlayback:v};return _&&e?i.createElement(y.Z,{accessibilityDescribedBy:n?`caption-${m}`:void 0,accessibilityLabel:E.accessibilityLabel,link:e,testID:`tweet-media-video-interaction-link-${m}`},i.createElement(r.Z,{ref:this._inertVideoContainerRef},i.createElement(N.Z,o))):i.createElement(N.Z,o)}return null}_renderMediaMetadata(){const{displayMediaMetadata:e,mediaDetails:t}=this.props,[{additional_media_info:n}]=t,{description:o,title:r}=n||{};return e?i.createElement(H,{description:o,title:r}):null}_renderMediaTags(){const{displayMediaTags:e,loggedInUserId:t,mediaDetails:n,mediaTagsLink:o,onClickMediaTags:r,withMediaTagsIcon:s}=this.props,a=S.ZP.mergeTaggedUsers(n);return e&&o&&a.length?i.createElement(Z.Z,{linkPath:o,loggedInUserId:t,onClick:r,size:s?"body":"subtext2",style:W.mediaTags,users:a,withIcon:s}):null}_renderMediaAttribution(e){const{displayMediaAttribution:t,mediaDetails:n,withMediaTagsIcon:o}=this.props,r=this._getSourceUser(),s=e?k.Z.getSourceTweetId(n[0]):void 0;return t&&r?i.createElement(E,{size:o?"body":"subtext2",sourceTweetId:s,style:W.mediaAttribution,userIsProtected:r.protected,userIsVerified:r.verified,userName:r.name,userScreenName:r.screen_name}):null}_isFirstMediaItemVideo(){const{mediaDetails:e}=this.props;return e[0]&&k.Z.isVideo(e[0])}_renderMediaCaption(){const{caption:e,renderCaption:t,tweetId:n}=this.props;return e?i.createElement(r.Z,{nativeID:`caption-${n}`,style:W.mediaCaption},t(e)):null}get sensitiveMediaWarnings(){const{mediaDetails:e}=this.props;return(0,u.Z)(e.flatMap((e=>{const t=e.sensitive_media_warning;return t?Object.keys(t).filter((e=>t[e])):[]})))}}V.defaultProps={displayMediaAttribution:!1,displayMediaTags:!0,enableKeyboardShortcuts:!1,hasSensitiveMedia:!1,isCondensed:!1,mediaDetails:[],renderCaption:e=>i.createElement(I.Z,(0,o.Z)({color:p.gZ.gray700,size:"subtext2"},e)),showBorder:!0,showRoundCorners:!0,singleImageMaxAspectRatio:16/9,singleImageMinAspectRatio:16/9,withCenterCrop:!1,withLink:!0,withMediaTagsIcon:!1};const W=R.Z.create((e=>({halvedMediaSize:{minWidth:2*e.spacesPx.space72,width:"50%"},itemWithBorder:{borderWidth:"1px",borderStyle:"solid",borderColor:e.colors.nestedBorderColor},itemWithRoundCorners:{borderRadius:e.borderRadii.xLarge,overflow:"hidden"},mediaAttribution:{marginTop:e.spaces.space4},mediaTags:{marginTop:e.spaces.space4},mediaCaption:{marginTop:e.spaces.space8}}))),$=V},50599:(e,t,n)=>{n.d(t,{ZP:()=>S});n(6886);var o=n(2784),i=n(25686),r=n(36934),s=n(73186),a=(n(36728),n(14121),n(60523),n(3614)),l=n(79404),c=n.n(l),d=n(68011);const u=c().ga629a8c,h=(e,t,n)=>e?o.createElement(d.Z,{screenName:t},o.createElement(r.ZP,{dir:"ltr",link:`https://twitter.com/${t}`,onClick:n},`@${t}`)):o.createElement(r.ZP,{dir:"ltr"},`@${t}`),p=({children:e,onClick:t,viewMorePath:n})=>o.createElement(r.ZP,{accessibilityLabel:u,link:n,onClick:t},e),m=e=>e.screen_name,g=(e,t)=>e.find((({id_str:e})=>e===t)),y="NotIncluded",b="DirectReply",f="NonDirectReply",v=({displayTextRange:e,inReplyToName:t,inReplyToScreenName:n,inReplyToUserIdStr:o,userMentionsEntities:i})=>{const r=[...i.filter((t=>t.indices[0]<e[0]||t.id_str===o))];let s=g(i,o);const l=t||n;return!s&&o&&l&&n&&(s={id_str:o,name:l,screen_name:n,indices:[]},r.push(s)),(0,a.Z)(r,(e=>e.id_str))},w=({displayTextRange:e,inReplyToName:t,inReplyToScreenName:n,inReplyToUserIdStr:i,linkify:s,loggedInUserId:a,onClick:l,tweetPermalink:d,unmentionedUserIds:u,userMentionsEntities:w})=>{var C;const _=i,E=v({displayTextRange:e,inReplyToName:t,inReplyToScreenName:n,inReplyToUserIdStr:i,userMentionsEntities:w}),x={id_str:"",indices:[],name:"",screen_name:""},Z=null!=(C=g(E,_))?C:x,S=((e,t,n,i)=>{const s=e?o.createElement(p,{onClick:n,viewMorePath:t}):o.createElement("span",null),a=e=>l(e)?o.createElement(r.ZP,{color:"link"}):o.createElement("span",null),l=t=>{const n=null==i?void 0:i.includes(t.id_str);return e&&!n};return{replyToOne({user:e}){const t=h(l(e),m(e),n);return o.createElement(c().I18NFormatMessage,{$i18n:"h5970807"},t)},replyToTwo({userOne:e,userTwo:t}){const i=h(l(e),m(e),n),r=h(l(t),m(t),n),s=a(t);return o.createElement(c().I18NFormatMessage,{$i18n:"ge01e6a3"},i,o.cloneElement(s,null,c().caddb529),r)},replyToMany({othersCount:e,user:t}){const i=h(l(t),m(t),n);return o.createElement(c().I18NFormatMessage,{$i18n:"f5a069ab"},i,o.cloneElement(s,null,c().ff31714c({othersCount:e})))},indirectReplyToThree({userOne:e,userThree:t,userTwo:i}){const r=h(l(e),m(e),n),s=h(l(i),m(i),n),d=h(l(t),m(t),n),u=a(t);return o.createElement(c().I18NFormatMessage,{$i18n:"hd7dd197"},r,s,o.cloneElement(u,null,c().e06c99b7),d)},indirectReplyToMany({othersCount:e,userOne:t,userTwo:i}){const r=h(l(t),m(t),n),a=h(l(i),m(i),n);return o.createElement(c().I18NFormatMessage,{$i18n:"g4eb2847"},r,a,o.cloneElement(s,null,c().i4e2f96c({othersCount:e})))}}})(s,new URL(`${d}/people`,"https://twitter.com").toString(),l,u),k=a===_,T=E.some((({id_str:e})=>e===a));switch(k?b:T?f:y){case b:case y:switch(E.length){case 1:return S.replyToOne({user:Z});case 2:{var L;const e=null!=(L=E.find((e=>e!==Z)))?L:x;return S.replyToTwo({userOne:Z,userTwo:e})}case 3:{const[e,t]=E.filter((e=>e!==Z));return S.indirectReplyToThree({userOne:Z,userTwo:e,userThree:t})}default:{var I;const e=null!=(I=E.find((e=>e!==Z)))?I:x;return S.indirectReplyToMany({userOne:Z,userTwo:e,othersCount:E.length-2})}}case f:switch(E.length){case 1:return null;case 2:{var R;const e=null!=(R=E.find((e=>e!==Z)))?R:x;return S.replyToTwo({userOne:Z,userTwo:e})}case 3:{var P,M;const e=null!=(P=E.find((({id_str:e})=>e!==a&&e!==_)))?P:x;return S.indirectReplyToThree({userOne:Z,userTwo:null!=(M=g(E,a))?M:x,userThree:e})}default:var B;return S.indirectReplyToMany({userOne:Z,userTwo:null!=(B=g(E,a))?B:x,othersCount:E.length-2})}default:return null}},C=Object.freeze({Threaded:"threaded",Isolated:"isolated",None:"none"}),_=[C.Threaded,C.Isolated,C.None],E=Object.freeze({all:"all",name:"name",none:"none"});class x extends o.PureComponent{constructor(...e){super(...e),this._handleClick=e=>{const{displayTextRange:t,inReplyToName:n,inReplyToScreenName:o,inReplyToUserIdStr:i,onClick:r,userMentionsEntities:s}=this.props;r&&r(e,v({displayTextRange:t,inReplyToName:n,inReplyToScreenName:o,inReplyToUserIdStr:i,userMentionsEntities:s}).length)}}render(){const{displayTextRange:e,inReplyToName:t,inReplyToScreenName:n,inReplyToStatusIdStr:s,inReplyToUserIdStr:a,linkColor:l,linkType:c,loggedInUserId:d,nativeID:u,size:h,style:p,tweetPermalink:m,unmentionedUserIds:g,userMentionsEntities:y}=this.props,b=w({displayTextRange:e,inReplyToName:t,inReplyToScreenName:n,inReplyToUserIdStr:a,tweetPermalink:m,loggedInUserId:d,linkify:c===E.name,onClick:this._handleClick,unmentionedUserIds:g,userMentionsEntities:y});if(c===E.all){const e=s&&`https://twitter.com/${n||"i"}/status/${s}`;return o.createElement(r.ZP,{color:l,link:e,nativeID:u,size:h,style:p},b)}return c===E.name?o.createElement(i.Z,{style:[Z.root,p]},o.createElement(r.ZP,{color:"gray700",nativeID:u,size:h},b)):o.createElement(r.ZP,{color:"gray700",nativeID:u,size:h,style:p},b)}}x.getReplyContextParticipants=v,x.ReplyContextTypes=C,x.TweetReplyContextTypes=_,x.ReplyContextLinkTypes=E,x.defaultProps={linkColor:"link",linkType:E.name,size:"body",userMentionsEntities:[]};const Z=s.Z.create((e=>({root:{display:"inline-block"}}))),S=x},42807:(e,t,n)=>{n.d(t,{Z:()=>b});var o=n(7896),i=(n(6886),n(85940),n(36728),n(2784)),r=n(36934),s=n(77089),a=n(25301),l=n(73186),c=n(69165),d=n(88609),u=n(75275),h=n(47701);const p="tweetText",m=e=>{var t;const n=s.ZP.useProps(),r=(0,d.C)(),a=null==(t=e.entities)?void 0:t.hashtags,l=a&&a.length>0,c=null==a?void 0:a.some((e=>r.getBrandedHashtag(e.text))),u={...e.entities};return l&&!c&&n.isLinkedSearchExperimentEnabled()&&(u.hashtags=void 0),i.createElement(g,(0,o.Z)({},e,{entities:u}))};m.defaultProps={highlightType:"bold",linkColor:"link",linkify:c.Gh.linkify,underlineLinks:!1,withCardLinks:!1,withMediaLinks:!1,withQuoteLinks:!1,withUnicodeEmojis:!1};class g extends i.Component{constructor(...e){super(...e),this._getTextParts=()=>{var e,t;const{displayTextRange:n,enrichments:o,entities:i,entityBaseUrl:r,highlightType:s,hitHighlights:a,linkify:l,quotedTweetPermalink:c,text:d,transformHashtagLink:h,tweetId:p,unmentionedUserIds:m,withQuoteLinks:g,withUnicodeEmojis:y}=this.props;let b=d,f=i;const v=i&&i.urls&&i.urls.length;if(c&&!v&&g&&(b=`${d} ${l?c.url:c.display}`,l)){const e=[...d].length+1;f={media:[],...i,urls:[{display_url:c.display,expanded_url:c.expanded,url:c.url,indices:[e,e+c.url.length]}]}}const w=[0,b.length],C=[(n||w)[0],b.length],_=a||[];return null!=(e=f)&&null!=(t=e.user_mentions)&&t.length&&null!=m&&m.length&&(f={...f,user_mentions:f.user_mentions.filter((e=>!m.includes(e.id_str)))}),u.ZP.tweetTextParts(b,C,f,o,{useHashtagUrl:!0,transformHashtagLink:h,hitHighlights:_,baseUrl:r,renderUnicodeEmojis:y,highlightType:s},p)}}render(){const{displayTextRange:e,enrichments:t,entities:n,entityBaseUrl:s,excludeCardUrl:l,highlightType:d,hitHighlights:u,lang:m,linkColor:g,linkify:b,nativeID:f,numberOfLines:v,onEntityClick:w,quotedTweetId:C,quotedTweetPermalink:_,style:E,text:x,transformHashtagLink:Z,transformUrl:S,tweetId:k,underlineLinks:T,unmentionedUserIds:L,withCardLinks:I,withLikedByAuthorType:R,withMediaLinks:P,withQuoteLinks:M,withUnicodeEmojis:B,...A}=this.props,D=this._getTextParts(),U=D.some((e=>e.entityType===h.Z.MEDIA)),F=U&&!P,N=C&&!M,H=D.map(((t,n)=>{const o=n===D.length-1,i=!!t.tweetId&&t.tweetId===C;if(!P&&t.entityType===h.Z.MEDIA)return null;if(i&&U&&t.indices&&e[1]===t.indices[1])return null;if(o){if(i&&N&&!F)return null;if(!F&&!N&&!I&&l&&(l===t.url||l===t.expandedUrl))return null}return t})).filter(Boolean),z=H.map(((e,t)=>{const n=t===H.length-1;if(e.entityType===h.Z.TEXT){let o=e;const r=`${e.prefix}${e.text}`.trim();return!n&&0!==t||r?(n&&(o={...e,text:e.text.replace(/(\s+$)/g,"")}),i.createElement(c.ZP,{key:t,linkColor:g,linkify:b,onClick:w,part:o,transformUrl:S,underlineLinks:T})):null}return i.createElement(c.ZP,{key:t,linkColor:g,linkify:b,onClick:w,part:e,transformUrl:S,underlineLinks:T})})).filter(Boolean);return R&&(z.length&&z.push(R),z.push(i.createElement(a.ZP,{type:"likedByAuthor"}))),z.length?i.createElement(r.ZP,(0,o.Z)({},A,{children:z,dir:"auto",lang:m,nativeID:f,numberOfLines:v,style:[y.root,E],testID:p})):null}}g.defaultProps={highlightType:"bold",linkColor:"link",linkify:c.Gh.linkify,underlineLinks:!1,withCardLinks:!1,withMediaLinks:!1,withQuoteLinks:!1,withUnicodeEmojis:!1};const y=l.Z.create((e=>({root:{position:"relative"}}))),b=m},20003:(e,t,n)=>{n.d(t,{Z:()=>h});var o=n(2784),i=n(25686),r=n(35953),s=n(77089),a=n(73186),l=n(92471);const c={tweetUserAvatar:"Tweet-User-Avatar"},d=r.Z.createLayoutCache(),u=e=>{const{nativeID:t,onClick:n,onHoverCardScreenNameClick:i,promotedContent:r,screenName:s,size:a="xxLarge",uri:c,withHoverCard:u=!0,withLink:h=!0}=e;return o.createElement(l.default,{imageLayoutCache:d,nativeID:t,onClick:n,onHoverCardScreenNameClick:i,promotedContent:r,screenName:s,size:a,uri:c,withHoverCard:u,withLink:h})};function h(e){const{experimentalUsersAvatarData:t,screenName:n,size:r="xxLarge",uri:a,renderUserAvatar:l=u,testID:d=c.tweetUserAvatar}=e,h={onClick:e.onClick,onHoverCardScreenNameClick:e.onHoverCardScreenNameClick,promotedContent:e.promotedContent,withHoverCard:e.withHoverCard,withLink:e.withLink},m=s.ZP.useProps().isCollaborativeTweetConsumptionEnabled();return t&&t.length>1&&m?o.createElement(i.Z,{nativeID:e.nativeID,style:p.container,testID:d},o.createElement(i.Z,{style:p.leftAvatar},l({...h,size:"large",screenName:t[0].screenName,uri:t[0].uri,userId:t[0].userId})),o.createElement(i.Z,{style:p.rightAvatar},l({...h,size:"large",screenName:t[1].screenName,uri:t[1].uri,userId:t[1].userId}))):o.createElement(i.Z,{testID:d},l({...h,nativeID:e.nativeID,screenName:n,size:r,uri:a}))}const p=a.Z.create((e=>({container:{display:"flex",flexDirection:"row",aspectRation:"1",alignItems:"center"},leftAvatar:{marginBottom:`${e.spaces.space12}`},rightAvatar:{marginStart:`-${e.spaces.space12}`,marginTop:`${e.spaces.space12}`}})))},33785:(e,t,n)=>{n.d(t,{Z:()=>C});var o=n(7896),i=(n(6886),n(71372),n(2784)),r=n(25686),s=n(79404),a=n.n(s),l=n(16587),c=n(32307),d=n(36934),u=n(77934),h=n(77089),p=n(11839),m=n(3613),g=n(73186),y=n(400),b=n(68011),f=n(79439);const v={serversideContextType:"user"};function w(e,t,n){return i.createElement(a().I18NFormatMessage,{$i18n:"ef529b2f"},e,i.createElement(d.ZP,{color:"gray700",size:n,style:_.connectorStyle},a().e078b15d),t)}class C extends i.Component{constructor(...e){super(...e),this._getMemoizedBehavioralEventContext=(0,l.Z)(((e,t)=>{let n={token:e,viewType:"user"};if(t){const e={...v,serversideContextId:t};n={...n,clientEntity:e}}return n}))}shouldComponentUpdate(e){return!(0,c.Z)(e,this.props)}_buildLinkProps(e,t){const n={pathname:`https://twitter.com/${e||""}`,state:{userId:t,...this.props.promotedContent?{promotedTweetState:this.props.promotedContent}:{}}};return this.props.withLink?{link:n,onPress:this.props.onLinkClick}:{interactive:!1}}_buildUserBadges(e,t,n,o){return i.createElement(d.ZP,{style:_.userBadges},i.createElement(y.Z,{displayContext:"content",isBlueVerified:n,isProtected:e,isVerified:t,verifiedType:o}))}_getUserScreenNameNode({screenName:e,size:t,userId:n}){const r=i.createElement(f.Z,{screenName:e,size:t}),s=this._buildLinkProps(e,n),a=i.createElement(p.Z,(0,o.Z)({},s,{focusable:!1,interactiveStyles:null,style:_.root}),r);return this._useUserHoverCardWrapper(a,e)}_getUserNameNode({isBlueVerified:e,isProtected:t,isVerified:n,name:s,screenName:a,size:l,userId:c,verifiedType:u}){const h=!this.props.withNameWrap,m=this._buildLinkProps(a,c),g=this._buildUserBadges(t,n,e,u),y=i.createElement(p.Z,(0,o.Z)({},m,{interactiveStyles:null,style:_.shrinkableContainer}),(({isFocused:o,isHovered:u,isPressed:p})=>i.createElement(r.Z,{style:_.nameContainer},i.createElement(d.ZP,{size:l,style:[_.name,h&&_.nameNowrap,(o||u||p)&&_.underline],weight:"bold"},i.createElement(d.ZP,{numberOfLines:h?1:void 0},this.props.renderUserNameHighlights?this.props.renderUserNameHighlights({isBlueVerified:e,isProtected:t,isVerified:n,name:s,screenName:a,userId:c}):s),h?null:g),h?g:null)));return this._useUserHoverCardWrapper(y,a)}_renderTweetUserNameContent(e,t,n,o){const s=this._getUserScreenNameNode({...e,size:o}),a=this._getUserNameNode({...e,size:o});return i.createElement(i.Fragment,null,i.createElement(r.Z,{style:_.nameContainer},a),i.createElement(r.Z,{style:[_.screenNameContainer,n]},i.createElement(m.Z,null,s,t?i.createElement(r.Z,{style:_.screenNameSuffixContainer},t):null)))}_renderCollaborativeTweetUserNameContent(e,t,n,o){const s={...e,size:o},a={...t,size:o},l=w(this._getUserScreenNameNode(s),this._getUserScreenNameNode(a),o),c=w(this._getUserNameNode(s),this._getUserNameNode(a),o);return i.createElement(i.Fragment,null,i.createElement(r.Z,{style:_.nameContainer},c),i.createElement(r.Z,{style:_.screenNameContainer},i.createElement(m.Z,null,l,n?i.createElement(r.Z,{style:_.screenNameSuffixContainer},n):null)))}render(){const{behavioralEventToken:e,nativeID:t,screenNameSuffix:n,size:o,testId:s,userId:a,usersIdentityData:l,withStackedLayout:c}=this.props,d=this._getMemoizedBehavioralEventContext(e,a);if(0===l.length)throw new Error("No user data defined for TweetUserName");return i.createElement(h.ZP.UseProps,null,(e=>{const a=l.length>1&&e.isCollaborativeTweetConsumptionEnabled(),h=a?this._renderCollaborativeTweetUserNameContent(l[0],l[1],n,o):this._renderTweetUserNameContent(l[0],n,c?void 0:_.screenNameContainerSpaced,o),p=a||c;return i.createElement(u.zt,{behavioralEventContext:d},i.createElement(r.Z,{style:_.root},i.createElement(r.Z,{nativeID:t,style:[_.root,!p&&_.unstacked],testID:s},h)))}))}_useUserHoverCardWrapper(e,t){if(!this.props.withHoverCard)return e;return this.props.renderUserHoverCard({children:e,onScreenNameClick:this.props.onScreenNameClick,promotedContent:this.props.promotedContent,screenName:t,wrapperStyle:[_.hoverWrapperBaseStyle,this.props.wrapperStyle]})||e}}C.defaultProps={withNameWrap:!1,withHoverCard:!1,withStackedLayout:!1,testId:"User-Names",renderUserHoverCard:e=>i.createElement(b.Z,e)};const _=g.Z.create((e=>({root:{maxWidth:"100%",flexShrink:1,outlineStyle:"none"},shrinkableContainer:{maxWidth:"100%",flexShrink:1},unstacked:{flexDirection:"row",alignItems:"center"},name:{overflow:"hidden",alignItems:"center",display:"flex"},nameNowrap:{whiteSpace:"nowrap"},underline:{textDecorationLine:"underline"},nameContainer:{flexDirection:"row",alignItems:"center",maxWidth:"100%",flexShrink:1},screenNameContainer:{flexDirection:"row",flexShrink:1},screenNameContainerSpaced:{marginStart:e.spaces.space4},screenNameSuffixContainer:{flexDirection:"row",flexShrink:0},userBadges:{display:"inline-flex",flexDirection:"row",flexShrink:0},hoverWrapperBaseStyle:{flexShrink:1,maxWidth:"100%"},connectorStyle:{flexShrink:0}})))},88403:(e,t,n)=>{n.d(t,{Z:()=>p});var o=n(7896),i=(n(6886),n(2784)),r=n(25686),s=n(79404),a=n.n(s),l=n(33131),c=n(71575),d=n(66970),u=n(73186),h=n(92471);const p=function(e){const t=c.Z.useAnalytics(),[n,r]=i.useState(),s=!!(n&&n>70),{accessibilityLabel:a,presenceRingType:l,spaceId:u,...p}=e,g=a||function(e,t){if("space"===e)return b.activeSpace({screenName:t});return}(l,e.screenName);return i.useEffect((()=>{if("space"===l)t.scribe({element:"audiospace_ring",action:"impression"})}),[l]),i.createElement(h.default,(0,o.Z)({},p,{BorderComponent:d.Z.Default,accessibilityLabel:g,avatarRef:function(e){if(e){const t=e.getBoundingClientRect();t.width!==n&&r(t.width)}},borderWidth:s?"large":"medium",decoration:i.createElement(m,{isWide:s,type:l}),gapWidth:s?"space4":"space2",onClick:function(){if("space"===l)t.scribe({element:"audiospace_ring",action:"click"})},withLink:!0}))};function m(e){return"space"===e.type?i.createElement(g,e):null}function g(e){return i.createElement(r.Z,{style:[y.root,e.isWide?y.rootWide:y.rootNarrow]},i.createElement(d.Z.Default,{style:[y.spaceGradient,e.isWide?y.borderWide:y.borderNarrow]},i.createElement(l.Z,{style:y.spaceIcon})))}const y=u.Z.create((e=>{const t=e.spacesPx.space16+e.spacesPx.space2,n="100%",o=e.spacesPx.space4,i=e.spacesPx.space2;return{root:{minWidth:t,minHeight:t,width:"30%",height:"30%",position:"absolute",end:0,bottom:0,borderRadius:e.borderRadii.infinite,pointerEvents:"none"},rootWide:{end:-1*o,bottom:-1*o},rootNarrow:{end:-1*i,bottom:-1*i},borderWide:{borderWidth:o},borderNarrow:{borderWidth:i},spaceGradient:{justifyContent:"center",width:n,height:n,borderRadius:e.borderRadii.infinite,borderColor:e.colors.cellBackground},spaceIcon:{padding:e.spaces.space2,color:e.colors.white}}})),b={withoutUsernameFallback:a().b4cb0be2,activeSpace:a().g6520ddf}},19153:(e,t,n)=>{n.d(t,{ZP:()=>L});var o=n(7896),i=(n(6886),n(2784)),r=n(25686),s=n(35953),a=n(36934),l=n(37541),c=n(86454),d=n(77934),u=n(25663),h=n(77089),p=n(51417),m=n(74062),g=n(41310),y=n(9524),b=n(94963),f=n(73186),v=n(92471),w=n(88403),C=n(54813),_=n(95995);const E=Object.freeze({TWEET:"tweets",USER:"users"}),x=Object.freeze({UserCompact:"UserCompact",UserConcise:"UserConcise",UserDetailed:"UserDetailed",ExperimentalUserTypeahead:"ExperimentalUserTypeahead"}),Z=s.Z.createLayoutCache(),S={viewType:"user_cell"};class k extends i.PureComponent{constructor(...e){super(...e),this._renderUserName=()=>{const{badgeContext:e,disabledMessage:t,displayNameLabel:n,isBlocking:o,isBlueVerified:s,isDisabled:l,isFollowedBy:c,isProtected:d,isVerified:u,name:h,onScreenNameClick:p,promotedContent:m,promotedItemType:g,screenName:y,screenNameSuffix:b,translatorType:f,verifiedType:v,withFollowsYou:w,withLink:C}=this.props,x=i.createElement(_.Z,{badgeContext:e,displayNameLabel:n,isBlueVerified:s,isProtected:d,isVerified:u,name:h,onLinkClick:p,promotedContent:g===E.TWEET?m:void 0,screenName:y,screenNameSuffix:b,translatorType:f,verifiedType:v,withFollowsYou:w&&c,withHoverCard:!o&&!l&&C,withLink:!l&&C,withScreenName:!t,withStackedLayout:!0});return t?i.createElement(r.Z,{style:T.disabledMessageContainer},x,i.createElement(a.ZP,{color:"gray700"},t)):x},this._renderSocialContext=()=>{const{avatarSize:e,displayMode:t,socialContext:n}=this.props;return n?i.createElement(h.ZP.UseProps,null,(o=>i.createElement(y.Z,{avatarSize:e,contextType:n.contextType,iconSize:"large",link:n.link,style:T.socialContext,text:n.text,weight:"bold",withLeftPadding:!o.socialContextRefreshEnabled()&&t!==x.ExperimentalUserTypeahead}))):null},this._renderUserTypeaheadSocialContext=()=>{const{socialContext:e}=this.props,{Icon:t,text:n}=e&&(0,b.Z)({link:e.link,text:e.text,iconSize:"small",contextType:e.contextType})||{};return e?i.createElement(r.Z,{style:T.userTypeaheadSocialContext},i.createElement(r.Z,{style:T.userTypeaheadSocialContextIcon},t),i.createElement(a.ZP,{color:"gray700",numberOfLines:1,style:T.userTypeaheadSocialContextText},n)):null},this._renderHighlightedUserLabel=()=>{const{highlightedLabel:e}=this.props;return e?i.createElement(p.Z,{label:e}):null},this._isEligibleForBio=()=>{const{displayMode:e}=this.props;return-1!==[x.UserDetailed,x.UserConcise].indexOf(e)},this._handleKeyPress=e=>{e.defaultPrevented||"Enter"!==e.key||this._handleClick(e)},this._handleClick=u.Z.selectiveClickHandler((e=>{const{onCellClick:t}=this.props;e.preventDefault(),t&&t()}))}render(){const{accessibilityChecked:e,accessibilityLabel:t,avatarDecoration:n,avatarSize:s,avatarUri:a,bottomControl:u,decoration:h,displayMode:p,isBlocking:y,isDisabled:b,onAvatarClick:f,onCellClick:C,onScreenNameClick:_,presenceIndicator:k,promotedContent:L,promotedItemType:I,screenName:R,style:P,testID:M,userId:B,withDarkerInteractiveBackground:A,withInteractiveStyling:D,withLink:U,withUsernameCenterAligned:F}=this.props,N=U&&!y,H=p===x.UserCompact||F,z=p===x.ExperimentalUserTypeahead,O=L&&I===E.USER&&"earned"!==(L.disclosure_type&&L.disclosure_type.toLowerCase())?i.createElement(g.Z,{contentAuthorId:B,promotedContent:L,style:T.promotedIndicator}):null,V={accessibilityHidden:!0,decoration:n,focusable:!1,imageLayoutCache:Z,onClick:f,onHoverCardScreenNameClick:_,promotedContent:L,screenName:R,style:T.avatar,uri:a,userId:B,withHoverCard:N,withLink:U},W=i.createElement(c.Z.Consumer,null,(({avatarSize:e})=>k?i.createElement(w.Z,(0,o.Z)({},V,k,{size:e})):i.createElement(v.default,(0,o.Z)({size:e},V)))),$="boolean"==typeof e,G=void 0!==C,j=($?"radio":G&&"button")||"listitem",q=this._renderUserName(),Q=this._renderHighlightedUserLabel(),K=this._renderBio(),X=Q||K||O||u,Y=i.createElement(i.Fragment,null,Q,K,O,u?i.createElement(r.Z,{style:T.bottomControl},u):null);return i.createElement(d.zt,{behavioralEventContext:S},i.createElement(m.Z,{accessibilityChecked:e,accessibilityLabel:t,accessibilityRole:j,disabled:!!b,focusable:$||G,onClick:this._handleClick,onKeyPress:this._handleKeyPress,pointerEvents:b?"none":void 0,style:[T.root,P],testID:M,withDarkerInteractiveBackground:A,withInteractiveStyling:null!=D?D:!!C},z?null:this._renderSocialContext(),i.createElement(l.Z,{avatarCell:W,avatarCellStyle:[T.avatarColumn,H&&T.bodyColumnCentered],avatarSize:s,cellStyle:[T.bodyColumn,H&&T.bodyColumnCentered]},i.createElement(r.Z,{style:T.body},q,h),H?null:Y,z?this._renderUserTypeaheadSocialContext():null),X&&H?i.createElement(l.Z,{avatarCell:null,avatarCellStyle:T.avatarColumn,cellStyle:T.bodyColumn},Y):null))}_renderBio(){const{description:e,displayMode:t,entities:n,userId:o,withheldDescription:r,withheldEntities:s}=this.props;return n&&e&&this._isEligibleForBio()?i.createElement(C.Z,{description:e,entities:n,isConcise:t===x.UserConcise,style:T.bio,userId:o,withheldDescription:r,withheldEntities:s}):null}}k.defaultProps={testID:"UserCell",withLink:!0};const T=f.Z.create((e=>({root:{paddingHorizontal:e.componentDimensions.gutterHorizontal,paddingVertical:e.componentDimensions.gutterVertical},avatarColumn:{justifyContent:"flex-start"},bodyColumn:{flexGrow:1},bodyColumnCentered:{justifyContent:"center"},avatar:{display:"block",width:"100%"},bio:{paddingTop:e.spaces.space4,whiteSpace:"normal"},socialContext:{marginBottom:e.spaces.space4},userTypeaheadSocialContext:{alignItems:"center",flexDirection:"row",textColor:e.colors.gray700},userTypeaheadSocialContextIcon:{flexShrink:0},userTypeaheadSocialContextText:{paddingStart:e.spaces.space2},body:{alignItems:"center",flexDirection:"row",justifyContent:"space-between"},promotedIndicator:{margin:0,paddingTop:e.spaces.space4,paddingBottom:0,paddingHorizontal:0},bottomControl:{paddingTop:e.spaces.space4},disabledMessageContainer:{flexShrink:1}}))),L=k},54813:(e,t,n)=>{n.d(t,{Z:()=>l});var o=n(2784),i=n(36934),r=n(69165),s=n(75275),a=n(49868);const l=({description:e,entities:t,isConcise:n,style:l,testID:c,userId:d,withheldDescription:u,withheldEntities:h})=>{const{description:p,entities:m}=(0,a.H)({description:e,entities:t,withheldDescription:u,withheldEntities:h}),g=s.ZP.descriptionTextParts(p,m);return g.length?o.createElement(i.ZP,{dir:"auto",numberOfLines:n?2:void 0,style:l,testID:c},g.map(((e,t)=>o.createElement(r.ZP,{key:`user_${d}_textpart_${t}`,linkify:!0,part:e})))):null}},49868:(e,t,n)=>{n.d(t,{H:()=>o});const o=({description:e,entities:t,withheldDescription:n,withheldEntities:o})=>n?{description:n,entities:o}:{description:e,entities:t}},64096:(e,t,n)=>{n.d(t,{Z:()=>b});var o=n(2784),i=n(25686),r=n(36934),s=n(73487),a=n(79866),l=n(11839),c=n(71575),d=n(73186);const u="vibePillImage",h={small:"subtext3",medium:"subtext1"},p={small:d.Z.theme.spaces.space12,medium:d.Z.theme.spaces.space16};function m(e){return h[e]}function g(e){return{color:d.Z.theme.colors.gray900,lineHeight:p[e],width:"100%"}}function y(e){const t=p[e];return{width:t,height:t}}const b=({annotation:e,discoveryUrl:t,imageDescription:n="",imageUrl:h,onClick:p,size:b="small",text:v,tweetId:w})=>{const C=a.Z.generate({backgroundColor:"transparent",color:d.Z.theme.colors.primary,customFocusBackgroundColor:d.Z.theme.colors.gray0,customHoverBackgroundColor:p||t?d.Z.theme.colors.gray0:d.Z.theme.colors.gray50,customPressedBackgroundColor:d.Z.theme.colors.gray0,insetFocusRing:!1}),_=c.Z.useAnalytics();return o.useEffect((()=>{_.scribe({element:"vibe_pill",action:"impression",data:{items:[{id:w,vibe_details:{vibe_text:v,...e}}]}})}),[_,e,v,w]),o.createElement(l.Z,{interactiveStyles:C,link:t,onClick:p,style:f.root},o.createElement(i.Z,{style:f.content},h&&o.createElement(s.Z,{accessibilityLabel:n,source:h,style:y(b),testID:u}),o.createElement(r.ZP,{numberOfLines:1,selectable:!1,size:m(b),style:g(b),weight:"bold"},v)))},f=d.Z.create((e=>({root:{flexDirection:"row",maxWidth:260,borderRadius:e.borderRadii.large,backgroundColor:e.colors.gray50,color:d.Z.theme.colors.gray900},content:{alignItems:"center",flexDirection:"row",flexGrow:1,flexShrink:1,gap:e.spaces.space4,paddingEnd:e.spaces.space8,paddingStart:e.spaces.space8,paddingTop:e.spaces.space4,paddingBottom:e.spaces.space4}})))},65597:(e,t,n)=>{n.d(t,{Z:()=>Z});var o=n(7896),i=(n(6886),n(2784)),r=n(28316),s=n(52661),a=n(25686),l=n(36934),c=n(30525),d=n(81682),u=n(35094),h=n(79866),p=n(11839),m=n(73186),g=n(27931),y=n(62014),b=n(46737);const f=Object.freeze({START:"start",END:"end"}),v=y.Z.spaces.space16,w=y.Z.spacesPx.space16,C=y.Z.spaces.space32,_=(y.Z.spacesPx.space32-w)/2;class E extends i.Component{constructor(e,t){super(e,t),this._sliderVisibleLength=1,this._activeThumb=null,this._keyPressValueDelta=1,this._renderInteractiveMarkers=({cssColor:e,dimmedBackgroundColorStyle:t,positionStyleDirection:n,solidBackgroundColorStyle:o})=>{const r=h.Z.generate({backgroundColor:m.Z.theme.colors.transparent,color:e}),s=this._shouldOverrideRTL(),l=this._getThumbButtonStyles(s),c=this._getMarkers(n,o,t);return i.createElement(i.Fragment,null,c.map((e=>i.createElement(p.Z,{accessibilityRole:"none",hoverLabel:e.hoverLabel?{label:e.hoverLabel}:void 0,interactiveStyles:r,key:e.value,style:[l,e.style]},i.createElement(a.Z,{style:[x.markerThumb,e.thumbStyle]})))))},this._renderIcon=e=>{const{endThumbLabel:t,isVertical:n,maxIcon:o,minIcon:r,startThumbLabel:s}=this.props;if(!r&&!o)return null;const l=e?n?o:r:n?r:o,c=e?x.maxIconVerticalMargin:x.minIconVerticalMargin,d=e?x.minIconHorizontalMarginOverrideRTL:x.maxIconHorizontalMarginOverrideRTL,u=this._shouldOverrideRTL()?d:e?x.minIconHorizontalMargin:x.maxIconHorizontalMargin,h=[n?c:u,n||!s&&!t?null:x.horizontalIconWithThumbLabel];return i.createElement(a.Z,{style:h},l)},this._renderThumb=(e,{isTrackHovered:t,solidBackgroundColorStyle:n})=>{const{hoverLabels:o,startThumbAccessibilityLabel:r,startThumbAccessibilityLabelValueText:s,endThumbAccessibilityLabel:c,endThumbAccessibilityLabelValueText:d,min:u,max:g,value:[y,b],color:v,withHidingThumb:w,isVertical:C,startThumbLabel:_,endThumbLabel:E,onDarkBackground:Z,isSingleSlider:S,disabled:k}=this.props;if(S&&e)return null;const T=e?s:d,L=e?r:c,I=e?y:b,R=this._shouldOverrideRTL(),P=m.Z.theme.colors[v],M=h.Z.generate({backgroundColor:m.Z.theme.colors.transparent,color:P}),B=C?"bottom":R?"end":"start",A=(this.state.focusedThumb||this._activeThumb)===(e?f.START:f.END),D=this._isRTL(),U=w&&!t&&!A,F=this._getThumbButtonStyles(R),{positionStyle:N}=this._getPositionStyleForValue({value:I,positionStyleDirection:B}),H=e?_:E,z=e?this._handleFocusRingGainedStart:this._handleFocusRingGainedEnd;return i.createElement(p.Z,{accessibilityLabel:L,accessibilityRole:"adjustable",accessibilityValueMax:g,accessibilityValueMin:u,accessibilityValueNow:I,accessibilityValueText:T||I.toString(),focusable:!k,hoverLabel:o?{label:o[I]}:void 0,interactive:!k,interactiveStyles:M,onFocusRingGained:z,onFocusRingLost:this._handleFocusRingLost,onKeyUp:this._handleKeyUp,onMouseDown:this._handleMouseDown,ref:this._handleThumbRef(e),style:[F,N]},i.createElement(a.Z,{style:[x.thumb,U&&x.thumbHidden,A&&x.thumbActive,n]}),H?i.createElement(l.ZP,{color:Z?"white":void 0,size:"subtext2",style:[x.thumbLabel,D?x.thumbLabelLeftRTL:x.thumbLabelLeft]},H):null)},this._getPositionStyleForValue=({positionStyleDirection:e,value:t})=>{const{max:n,min:o}=this.props,i=(t-o)/(n-o),r={};return r[e]=`calc(${100*i}% - ${v} * ${i})`,{valuePosition:i,positionStyle:r}},this._markerValueIsInsideRange=e=>{const{value:t}=this.props,[n,o]=t;return e>=n&&e<=o},this._getThumbButtonStyles=e=>{const{disabled:t,isVertical:n}=this.props;return[x.thumbButton,n?x.verticalThumbButton:e?x.horizontalThumbButtonOverrideRTL:x.horizontalThumbButton,t&&x.thumbButtonDisabled]},this._shouldOverrideRTL=()=>this._isLanguageRTL()&&this.props.keepLTR,this._isLanguageRTL=()=>"rtl"===this.props.languageWritingDirection,this._isRTL=()=>this._isLanguageRTL()&&!this.props.keepLTR,this._handleRootRef=e=>{e&&(this._removeTouchMoveToScrollListener&&this._removeTouchMoveToScrollListener(),this._removeTouchMoveToScrollListener=(0,g.O)(e,this._handleTouchMoveToScroll,!1))},this._handleThumbRef=e=>t=>{this._removeHandlerIfExists(e,e?this._startThumbRef:this._endThumbRef),e?this._startThumbRef=t:this._endThumbRef=t;const n=r.findDOMNode(t);n&&(e?(this._existingKeyDownStartHandler=this._handleKeyDown(e),n.addEventListener("keydown",this._existingKeyDownStartHandler)):(this._existingKeyDownEndHandler=this._handleKeyDown(e),n.addEventListener("keydown",this._existingKeyDownEndHandler)))},this._removeHandlerIfExists=(e,t)=>{if(!t)return;const n=r.findDOMNode(t);if(n){const t=e?this._existingKeyDownStartHandler:this._existingKeyDownEndHandler;n.removeEventListener("keydown",t)}},this._existingKeyDownStartHandler=null,this._existingKeyDownEndHandler=null,this._handleLayout=e=>{const{isVertical:t}=this.props;this._sliderVisibleLength=e.nativeEvent.layout[t?"height":"width"]},this._resetKeyPressValueDelta=()=>{const{max:e,min:t,step:n}=this.props;this._keyPressValueDelta="number"==typeof n?n:.001*(e-t)},this._handleKeyUp=e=>{this._resetKeyPressValueDelta()},this._handleKeyDown=e=>t=>{const{keyboardStep:n,max:o,min:i,step:r,value:s}=this.props,[a,l]=s,c=e?a:l,{altKey:d,ctrlKey:u,metaKey:h}=t;if(d||u||h)return;const p=this._isRTL(),m=t.key===b.Z.ArrowUp||t.key===(p?b.Z.ArrowLeft:b.Z.ArrowRight),g=t.key===b.Z.ArrowDown||t.key===(p?b.Z.ArrowRight:b.Z.ArrowLeft);if(m||g){let a=s;if(n)a=this._normalizeValue(c+n*(m?1:-1));else{let e=.05*(o-i);"number"==typeof r&&e<r&&(e=r);const t=Math.min(this._keyPressValueDelta,e)*(m?1:-1);this._keyPressValueDelta*=1.4,a=this._normalizeValue(c+t)}this._triggerChange(e,a),a!==i&&a!==o||this._resetKeyPressValueDelta(),t.preventDefault()}},this._handleMouseDown=e=>{e.preventDefault()},this._normalizeValue=e=>{const{max:t,min:n}=this.props,o=this._roundToMultipleOfStep(e);return Math.max(n,Math.min(o,t))},this._roundToMultipleOfStep=e=>{const{step:t}=this.props;return"number"==typeof t?t*Math.round(e/t):e},this._triggerChange=(e,t)=>{const{onChange:n}=this.props;n(this._getNewRangeValues(e,t),e)},this._getNewRangeValues=(e,t)=>{const{value:n}=this.props,[o,i]=n,[r,s]=this._calculateNewRangeValuesWithoutConstraint(e,t,[o,i]);return[Math.min(r,i),Math.max(o,s)]},this._calculateNewRangeValuesWithoutConstraint=(e,t,n)=>{const[o,i]=n,r=this._normalizeValue(t);return e?[r,i]:[o,r]},this._handleStartShouldSetPanResponder=(e,t)=>{const{disabled:n}=this.props;return!n},this._handleMoveShouldSetPanResponder=(e,t)=>{const{disabled:n}=this.props;return!n},this._handlePanResponderGrant=(e,t)=>{const{disabled:n,isVertical:o,min:i}=this.props;if(n)return;const r=o?this._getLocationY(e):this._getLocationX(e),s=this._normalizeValue(i+this._scaleLengthByMinMaxRatio(r)),a=this._isValueClosestToRangeStart(s);this._setPanResponderSelected(a),this._triggerChange(a,s),this._valueOnGrant=s,this._setActive(!0,a)},this._getSliderInteractiveLength=()=>this._sliderVisibleLength-w,this._scaleLengthByMinMaxRatio=e=>{const{max:t,min:n}=this.props;return e/this._getSliderInteractiveLength()*(t-n)},this._getLocationX=e=>{const t=e.currentTarget,n="function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{left:0},o=e.nativeEvent.pageX-window.pageXOffset-(n&&n.left||0)-_;return this._isRTL()?this._getSliderInteractiveLength()-o:o},this._getLocationY=e=>{const t=e.currentTarget,n="function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{top:0},o=e.nativeEvent.pageY-window.pageYOffset-(n&&n.top||0)-_;return this._getSliderInteractiveLength()-o},this._setActive=(e,t)=>{const{onActive:n}=this.props;this._activeThumb=e?t?f.START:f.END:null,n&&n(!!this._activeThumb)},this._setPanResponderSelected=e=>{this._panResponderFocusedRangeStart=e},this._handleTouchMoveToScroll=e=>{e.preventDefault()},this._handlePanResponderChange=e=>{const{disabled:t,isVertical:n}=this.props;if(t)return;let o=0;o=n?-1*e.dy:(this._isRTL()?-1:1)*e.dx,this._triggerChange(this._panResponderFocusedRangeStart,this._valueOnGrant+this._scaleLengthByMinMaxRatio(o))},this._handlePanResponderMove=(e,t)=>{this._handlePanResponderChange(t)},this._handlePanResponderEnd=(e,t)=>{this._handlePanResponderChange(t),this._setActive(!1,!1)},this._handleFocusRingGainedStart=()=>{this.setState({focusedThumb:f.START})},this._handleFocusRingGainedEnd=()=>{this.setState({focusedThumb:f.END})},this._handleFocusRingLost=()=>{this.setState({focusedThumb:null})},this.state={focusedThumb:null},this._resetKeyPressValueDelta(),this._panResponder=s.Z.create({onStartShouldSetPanResponder:this._handleStartShouldSetPanResponder,onMoveShouldSetPanResponder:this._handleMoveShouldSetPanResponder,onPanResponderGrant:this._handlePanResponderGrant,onPanResponderMove:this._handlePanResponderMove,onPanResponderRelease:this._handlePanResponderEnd,onPanResponderTerminate:this._handlePanResponderEnd})}componentDidMount(){const{autoFocus:e,isSingleSlider:t}=this.props;var n,o;e&&(t?null==(n=this._endThumbRef)||n.focus():null==(o=this._startThumbRef)||o.focus())}componentWillUnmount(){this._removeTouchMoveToScrollListener&&this._removeTouchMoveToScrollListener()}render(){const{color:e,disabled:t,endThumbLabel:n,isVertical:r,startThumbLabel:s,value:l,withGrayBackground:h,withHidingThumb:p}=this.props,[g,y]=l,b=m.Z.theme.colors[e],f=(0,d.xO)(h?m.Z.theme.colors.gray200:b),v=(0,c.oL)({color:f,percent:.33,replace:!0}),w=(0,d.rb)(v),C="white"===e?(0,c._j)({color:f,coefficient:.4}):(0,c.$n)({color:f,coefficient:.5}),_=(0,d.rb)(C),E={backgroundColor:b},Z={backgroundColor:_},S={backgroundColor:w},k=this._shouldOverrideRTL(),T=this.props.isVertical?"bottom":k?"end":"start";return i.createElement(a.Z,{style:[x.root,r&&x.verticalRoot,k&&x.ltr,t&&x.disabled]},this._renderIcon(!0),i.createElement(u.Z,null,(({isHovered:l})=>{const c=this.state.focusedThumb||this._activeThumb,d=p&&!l&&!c,{valuePosition:u}=this._getPositionStyleForValue({value:g,positionStyleDirection:T}),{valuePosition:h}=this._getPositionStyleForValue({value:y,positionStyleDirection:T}),m={flexGrow:u},f={flexGrow:h-u};return i.createElement(a.Z,(0,o.Z)({},this._panResponder.panHandlers,{onLayout:this._handleLayout,ref:this._handleRootRef,style:[x.slider,r?x.verticalSlider:x.horizontalSlider,r||!s&&!n?null:x.horizontalSliderWithLabel,t&&x.sliderDisabled]}),i.createElement(a.Z,{style:[x.track,r?x.verticalTrack:x.horizontalTrack,d&&(r?x.verticalTrackWithHiddenThumb:x.horizontalTrackWithHiddenThumb),"white"===e?S:Z]},i.createElement(a.Z,{style:[x.hiddenTrack,m]}),i.createElement(a.Z,{style:[x.progress,E,f]}),this._renderThumb(!0,{solidBackgroundColorStyle:E,isTrackHovered:l}),this._renderThumb(!1,{solidBackgroundColorStyle:E,isTrackHovered:l}),this._renderInteractiveMarkers({cssColor:b,positionStyleDirection:T,solidBackgroundColorStyle:E,dimmedBackgroundColorStyle:Z})))})),this._renderIcon(!1))}_getMarkers(e,t,n){const{hoverLabels:o,isSingleSlider:i,max:r,min:s,step:a,value:l,withMarkers:c}=this.props;if(!c||"number"!=typeof a)return[];const d=r-s/a+1;return Array.from({length:d}).map(((e,t)=>t*a+s)).filter((e=>i?l[1]!==e:!l.includes(e))).map((i=>{const{positionStyle:r}=this._getPositionStyleForValue({value:i,positionStyleDirection:e}),s=this._markerValueIsInsideRange(i)?t:n;return{hoverLabel:o&&o[i],value:i,style:r,thumbStyle:s}}))}_isValueClosestToRangeStart(e){const{isSingleSlider:t,value:n}=this.props,[o,i]=n;if(t)return!1;if(o===i&&o===this.props.min)return!1;if(o===i&&e===this.props.max)return!0;if(e<o)return!0;if(e>i)return!1;return Math.abs(e-o)<Math.abs(e-i)}}E.defaultProps={color:"primary",step:1};const x=m.Z.create((e=>({root:{userSelect:"none",flexDirection:"row",alignItems:"center"},disabled:{opacity:.5},ltr:{writingDirection:"ltr"},verticalRoot:{flexDirection:"column",flexGrow:1},minIconHorizontalMargin:{marginEnd:e.spaces.space12},maxIconHorizontalMargin:{marginStart:e.spaces.space12},minIconHorizontalMarginOverrideRTL:{marginStart:e.spaces.space12},maxIconHorizontalMarginOverrideRTL:{marginEnd:e.spaces.space12},horizontalIconWithThumbLabel:{marginTop:e.spaces.space16},maxIconVerticalMargin:{marginBottom:e.spaces.space12},minIconVerticalMargin:{marginTop:e.spaces.space12},slider:{cursor:"pointer",flexGrow:1,alignItems:"center"},sliderDisabled:{cursor:"auto"},verticalSlider:{width:e.spaces.space20,flexDirection:"column"},horizontalSlider:{height:e.spaces.space20,flexDirection:"row"},horizontalSliderWithLabel:{marginTop:e.spaces.space16},track:{backgroundColor:e.colors.gray200,borderRadius:e.borderRadii.medium,flexGrow:1,alignItems:"center"},verticalTrack:{width:e.spaces.space4,flexDirection:"column-reverse",justifyContent:"flex-start"},horizontalTrack:{height:e.spaces.space4,flexDirection:"row"},hiddenTrack:{opacity:0},verticalTrackWithHiddenThumb:{width:`calc(${e.spaces.space4} / 2)`},horizontalTrackWithHiddenThumb:{height:`calc(${e.spaces.space4} / 2)`},progress:{backgroundColor:e.colors.primary,borderRadius:e.borderRadii.medium,alignSelf:"stretch"},thumbButton:{borderRadius:e.borderRadii.infinite,cursor:"pointer",height:C,width:C,alignItems:"center",justifyContent:"center",position:"absolute"},thumbButtonDisabled:{cursor:"auto"},verticalThumbButton:{marginBottom:`calc(-1 * ${_}px)`},horizontalThumbButton:{marginStart:`calc(-1 * ${_}px)`},horizontalThumbButtonOverrideRTL:{marginEnd:`calc(-1 * ${_}px)`},thumb:{backgroundColor:e.colors.white,height:v,width:v,borderRadius:e.borderRadii.infinite,transitionProperty:"transform",transitionDuration:"0.1s",transform:[{scale:1}],boxShadow:e.boxShadows.xSmall},thumbLabel:{position:"absolute",top:_-e.spacesPx.space4+"px",transform:"translate(-50%,-100%)",whiteSpace:"nowrap",pointerEvents:"none"},thumbLabelLeft:{start:"50%"},thumbLabelLeftRTL:{end:"50%"},markerThumb:{height:12,width:12,borderRadius:e.borderRadii.infinite,boxShadow:e.boxShadows.xSmall},thumbActive:{transform:[{scale:1.2}]},thumbHidden:{transform:[{scale:0}]}}))),Z=E},62014:(e,t,n)=>{n.d(t,{Z:()=>i});var o=n(73757);const i=(0,n(38519).Z)({palette:o.CV.light,key:"light-blue-normal",highContrastEnabled:!1,chirpFontEnabled:!1,scale:"normal"})},42683:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M11.999 22.25c-5.652 0-10.25-4.598-10.25-10.25S6.347 1.75 11.999 1.75 22.249 6.348 22.249 12s-4.598 10.25-10.25 10.25zm0-18.5c-4.549 0-8.25 3.701-8.25 8.25s3.701 8.25 8.25 8.25 8.25-3.701 8.25-8.25-3.701-8.25-8.25-8.25zm.445 6.992c1.747-.096 3.748-.689 3.768-.695l.575 1.916c-.077.022-1.616.48-3.288.689v.498c.287 1.227 1.687 2.866 2.214 3.405l-1.428 1.4c-.188-.191-1.518-1.576-2.286-3.144-.769 1.568-2.098 2.952-2.286 3.144l-1.428-1.4c.527-.54 1.927-2.178 2.214-3.405v-.498c-1.672-.209-3.211-.667-3.288-.689l.575-1.916c.02.006 2.021.6 3.768.695m0 0c.301.017.59.017.891 0M12 6.25c-.967 0-1.75.78-1.75 1.75s.783 1.75 1.75 1.75 1.75-.78 1.75-1.75-.784-1.75-1.75-1.75z"}))});s.metadata={width:24,height:24};const a=s},51908:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M13 3v13.59l5.043-5.05 1.414 1.42L12 20.41l-7.457-7.45 1.414-1.42L11 16.59V3h2z"}))});s.metadata={width:24,height:24};const a=s},49650:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M12 3.59l7.457 7.45-1.414 1.42L13 7.41V21h-2V7.41l-5.043 5.05-1.414-1.42L12 3.59z"}))});s.metadata={width:24,height:24};const a=s},21773:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M.998 15V9h2v6h-2zm22 0V9h-2v6h2zM12 2c-4.418 0-8 3.58-8 8v7c0 2.76 2.239 5 5 5h6c2.761 0 5-2.24 5-5v-7c0-4.42-3.582-8-8-8zM8.998 14c-1.105 0-2-.9-2-2s.895-2 2-2 2 .9 2 2-.895 2-2 2zm6 0c-1.104 0-2-.9-2-2s.895-2 2-2 2 .9 2 2-.896 2-2 2z"}))});s.metadata={width:24,height:24};const a=s},17272:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("circle",{cx:"12",cy:"12",r:"10.3"}))});s.metadata={width:24,height:24};const a=s},23831:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M12 3.75c-4.55 0-8.25 3.69-8.25 8.25s3.7 8.25 8.25 8.25 8.25-3.69 8.25-8.25S16.56 3.75 12 3.75zM1.75 12C1.75 6.34 6.34 1.75 12 1.75S22.25 6.34 22.25 12 17.66 22.25 12 22.25 1.75 17.66 1.75 12zM11 6h2v5.28l3.82 1.27-.63 1.9L11 12.72V6z"}))});s.metadata={width:24,height:24};const a=s},27895:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M1.75 12C1.75 6.34 6.34 1.75 12 1.75S22.25 6.34 22.25 12 17.66 22.25 12 22.25 1.75 17.66 1.75 12zM11 6v6.72l5.19 1.73.63-1.9L13 11.28V6h-2z"}))});s.metadata={width:24,height:24};const a=s},26378:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M5.5 4c-.28 0-.5.22-.5.5v15c0 .28.22.5.5.5H12v2H5.5C4.12 22 3 20.88 3 19.5v-15C3 3.12 4.12 2 5.5 2h13C19.88 2 21 3.12 21 4.5V13h-2V4.5c0-.28-.22-.5-.5-.5h-13zM16 10H8V8h8v2zm-8 2h8v2H8v-2zm10 7v-3h2v3h3v2h-3v3h-2v-3h-3v-2h3z"}))});s.metadata={width:24,height:24};const a=s},85834:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M12 21c-7.605 0-10.804-8.296-10.937-8.648L.932 12l.131-.352C1.196 11.295 4.394 3 12 3s10.804 8.296 10.937 8.648l.131.352-.131.352C22.804 12.705 19.606 21 12 21zm-8.915-9c.658 1.467 3.5 7 8.915 7s8.257-5.533 8.915-7c-.658-1.467-3.5-7-8.915-7s-8.257 5.533-8.915 7zM12 16c-2.206 0-4-1.794-4-4s1.794-4 4-4 4 1.794 4 4-1.794 4-4 4zm0-6c-1.103 0-2 .897-2 2s.897 2 2 2 2-.897 2-2-.897-2-2-2z"}))});s.metadata={width:24,height:24};const a=s},6059:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M19.5 3h-15C3.119 3 2 4.119 2 5.5v11C2 17.881 3.119 19 4.5 19h4.15l3.34 2.793L15.37 19h4.13c1.381 0 2.5-1.119 2.5-2.5v-11C22 4.119 20.881 3 19.5 3zM8 12.25c-.69 0-1.25-.56-1.25-1.25S7.31 9.75 8 9.75s1.25.56 1.25 1.25-.56 1.25-1.25 1.25zm4 0c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25zm4 0c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25z"}))});s.metadata={width:24,height:24};const a=s},83882:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M3 2h18.61l-3.5 7 3.5 7H5v6H3V2zm2 12h13.38l-2.5-5 2.5-5H5v10z"}))});s.metadata={width:24,height:24};const a=s},25163:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M14 6c0 2.21-1.791 4-4 4S6 8.21 6 6s1.791-4 4-4 4 1.79 4 4zm-4 5c-2.352 0-4.373.85-5.863 2.44-1.477 1.58-2.366 3.8-2.632 6.46l-.11 1.1h17.21l-.11-1.1c-.266-2.66-1.155-4.88-2.632-6.46C14.373 11.85 12.352 11 10 11zm5.586-2l4.207 4.21 1.414-1.42L19.414 10H24V8h-4.586l1.793-1.79-1.414-1.42L15.586 9z"}))});s.metadata={width:24,height:24};const a=s},7742:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M15.96 1.54L21.41 7l-5.45 5.46-1.42-1.42L17.59 8H3V6h14.59l-3.05-3.04 1.42-1.42zM6.41 18l3.05 3.04-1.42 1.42L2.59 17l5.45-5.46 1.42 1.42L6.41 16H21v2H6.41z"}))});s.metadata={width:24,height:24};const a=s},46072:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M10 4c-1.105 0-2 .9-2 2s.895 2 2 2 2-.9 2-2-.895-2-2-2zM6 6c0-2.21 1.791-4 4-4s4 1.79 4 4-1.791 4-4 4-4-1.79-4-4zm12.586 3l-2.043-2.04 1.414-1.42L20 7.59l2.043-2.05 1.414 1.42L21.414 9l2.043 2.04-1.414 1.42L20 10.41l-2.043 2.05-1.414-1.42L18.586 9zM3.651 19h12.698c-.337-1.8-1.023-3.21-1.945-4.19C13.318 13.65 11.838 13 10 13s-3.317.65-4.404 1.81c-.922.98-1.608 2.39-1.945 4.19zm.486-5.56C5.627 11.85 7.648 11 10 11s4.373.85 5.863 2.44c1.477 1.58 2.366 3.8 2.632 6.46l.11 1.1H1.395l.11-1.1c.266-2.66 1.155-4.88 2.632-6.46z"}))});s.metadata={width:24,height:24};const a=s},56538:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M14 6c0 2.21-1.791 4-4 4S6 8.21 6 6s1.791-4 4-4 4 1.79 4 4zm-4 5c-2.352 0-4.373.85-5.863 2.44-1.477 1.58-2.366 3.8-2.632 6.46l-.11 1.1h17.21l-.11-1.1c-.266-2.66-1.155-4.88-2.632-6.46C14.373 11.85 12.352 11 10 11zm12.223-5.89l-2.969 4.46L17.3 8.1l-1.2 1.6 3.646 2.73 4.141-6.21-1.664-1.11z"}))});s.metadata={width:24,height:24};const a=s},53401:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M16.697 5.5c-1.222-.06-2.679.51-3.89 2.16l-.805 1.09-.806-1.09C9.984 6.01 8.526 5.44 7.304 5.5c-1.243.07-2.349.78-2.91 1.91-.552 1.12-.633 2.78.479 4.82 1.074 1.97 3.257 4.27 7.129 6.61 3.87-2.34 6.052-4.64 7.126-6.61 1.111-2.04 1.03-3.7.477-4.82-.561-1.13-1.666-1.84-2.908-1.91zm4.187 7.69c-1.351 2.48-4.001 5.12-8.379 7.67l-.503.3-.504-.3c-4.379-2.55-7.029-5.19-8.382-7.67-1.36-2.5-1.41-4.86-.514-6.67.887-1.79 2.647-2.91 4.601-3.01 1.651-.09 3.368.56 4.798 2.01 1.429-1.45 3.146-2.1 4.796-2.01 1.954.1 3.714 1.22 4.601 3.01.896 1.81.846 4.17-.514 6.67z"}))});s.metadata={width:24,height:24};const a=s},14481:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M18.766 2H7.323l-4.8 12h5.324l-1.261 8.83L22.414 7h-6.648l3-5z"}))});s.metadata={width:24,height:24};const a=s},58179:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M7.323 2h11.443l-3 5h6.648L6.586 22.83 7.847 14H2.523l4.8-12zm1.354 2l-3.2 8h4.676l-.739 5.17L17.586 9h-5.352l3-5H8.677z"}))});s.metadata={width:24,height:24};const a=s},50941:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M18.36 5.64c-1.95-1.96-5.11-1.96-7.07 0L9.88 7.05 8.46 5.64l1.42-1.42c2.73-2.73 7.16-2.73 9.9 0 2.73 2.74 2.73 7.17 0 9.9l-1.42 1.42-1.41-1.42 1.41-1.41c1.96-1.96 1.96-5.12 0-7.07zm-2.12 3.53l-7.07 7.07-1.41-1.41 7.07-7.07 1.41 1.41zm-12.02.71l1.42-1.42 1.41 1.42-1.41 1.41c-1.96 1.96-1.96 5.12 0 7.07 1.95 1.96 5.11 1.96 7.07 0l1.41-1.41 1.42 1.41-1.42 1.42c-2.73 2.73-7.16 2.73-9.9 0-2.73-2.74-2.73-7.17 0-9.9z"}))});s.metadata={width:24,height:24};const a=s},11258:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M12 2c-4.687 0-8.5 3.813-8.5 8.5 0 5.967 7.621 11.116 7.945 11.332l.555.37.555-.37c.324-.216 7.945-5.365 7.945-11.332C20.5 5.813 16.687 2 12 2zm0 11.5c-1.65 0-3-1.34-3-3s1.35-3 3-3c1.66 0 3 1.34 3 3s-1.34 3-3 3z"}))});s.metadata={width:24,height:24};const a=s},75733:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M12 3.75c-4.56 0-8.25 3.69-8.25 8.25s3.69 8.25 8.25 8.25 8.25-3.69 8.25-8.25S16.56 3.75 12 3.75zM1.75 12C1.75 6.34 6.34 1.75 12 1.75S22.25 6.34 22.25 12 17.66 22.25 12 22.25 1.75 17.66 1.75 12zM16 13H8v-2h8v2z"}))});s.metadata={width:24,height:24};const a=s},73952:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M12 3.75c-4.55 0-8.25 3.69-8.25 8.25 0 1.92.66 3.68 1.75 5.08L17.09 5.5C15.68 4.4 13.92 3.75 12 3.75zm6.5 3.17L6.92 18.5c1.4 1.1 3.16 1.75 5.08 1.75 4.56 0 8.25-3.69 8.25-8.25 0-1.92-.65-3.68-1.75-5.08zM1.75 12C1.75 6.34 6.34 1.75 12 1.75S22.25 6.34 22.25 12 17.66 22.25 12 22.25 1.75 17.66 1.75 12z"}))});s.metadata={width:24,height:24};const a=s},97463:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M12 3.75c-4.55 0-8.25 3.69-8.25 8.25 0 1.92.66 3.68 1.75 5.08l2.8-2.79 1.41 1.42-2.79 2.79c1.4 1.1 3.16 1.75 5.08 1.75 4.56 0 8.25-3.69 8.25-8.25 0-1.92-.65-3.68-1.75-5.08l-2.79 2.79-1.41-1.42 2.79-2.79C15.68 4.4 13.92 3.75 12 3.75zM1.75 12C1.75 6.34 6.34 1.75 12 1.75S22.25 6.34 22.25 12 17.66 22.25 12 22.25 1.75 17.66 1.75 12z"}))});s.metadata={width:24,height:24};const a=s},4358:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M12 2C7.93 2 4.51 5.02 4 9.05L2.87 18H7.1c.46 2.28 2.48 4 4.9 4s4.44-1.72 4.9-4h4.24l-.64-5h-2.02l.38 3H5.13l.85-6.7C6.36 6.27 8.94 4 12 4V2zm0 18c-1.31 0-2.42-.83-2.83-2h5.66c-.41 1.17-1.52 2-2.83 2zm.3-12.29l1.41-1.42 1.76 1.76 4.29-4.72 1.48 1.34-5.7 6.28-3.24-3.24z"}))});s.metadata={width:24,height:24};const a=s},10084:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M12 2.59l5.7 5.7-1.41 1.42L13 6.41V16h-2V6.41l-3.3 3.3-1.41-1.42L12 2.59zM21 15l-.02 3.51c0 1.38-1.12 2.49-2.5 2.49H5.5C4.11 21 3 19.88 3 18.5V15h2v3.5c0 .28.22.5.5.5h12.98c.28 0 .5-.22.5-.5L19 15h2z"}))});s.metadata={width:24,height:24};const a=s},55269:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M7 4.5C7 3.12 8.12 2 9.5 2h5C15.88 2 17 3.12 17 4.5v5.26L20.12 16H13v5l-1 2-1-2v-5H3.88L7 9.76V4.5z"}))});s.metadata={width:24,height:24};const a=s},48748:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M11.998 1.75C6.337 1.75 1.748 6.34 1.748 12s4.589 10.25 10.25 10.25 10.25-4.59 10.25-10.25-4.589-10.25-10.25-10.25zM15.996 15h-2v-3.59l-5.293 5.3-1.414-1.42L12.581 10H8.996V8h7v7z"}))});s.metadata={width:24,height:24};const a=s},85042:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M19.498 3h-15c-1.381 0-2.5 1.12-2.5 2.5v13c0 1.38 1.119 2.5 2.5 2.5h15c1.381 0 2.5-1.12 2.5-2.5v-13c0-1.38-1.119-2.5-2.5-2.5zm-3.502 12h-2v-3.59l-5.293 5.3-1.414-1.42L12.581 10H8.996V8h7v7z"}))});s.metadata={width:24,height:24};const a=s},64843:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M1.751 10c0-4.42 3.584-8 8.005-8h4.366c4.49 0 8.129 3.64 8.129 8.13 0 2.96-1.607 5.68-4.196 7.11l-8.054 4.46v-3.69h-.067c-4.49.1-8.183-3.51-8.183-8.01zm8.005-6c-3.317 0-6.005 2.69-6.005 6 0 3.37 2.77 6.08 6.138 6.01l.351-.01h1.761v2.3l5.087-2.81c1.951-1.08 3.163-3.13 3.163-5.36 0-3.39-2.744-6.13-6.129-6.13H9.756z"}))});s.metadata={width:24,height:24};const a=s},99666:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M3.707 21.707l18-18-1.414-1.414-2.088 2.088C17.688 4.137 17.11 4 16.5 4H11v2h5.5c.028 0 .056 0 .084.002l-10.88 10.88c-.131-.266-.204-.565-.204-.882V7.551l2.068 1.93 1.365-1.462L4.5 3.882.068 8.019l1.365 1.462 2.068-1.93V16c0 .871.278 1.677.751 2.334l-1.959 1.959 1.414 1.414zM18.5 9h2v7.449l2.068-1.93 1.365 1.462-4.433 4.137-4.432-4.137 1.365-1.462 2.067 1.93V9zm-8.964 9l-2 2H13v-2H9.536z"}))});s.metadata={width:24,height:24};const a=s},61837:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M4.5 3.88l4.432 4.14-1.364 1.46L5.5 7.55V16c0 1.1.896 2 2 2H13v2H7.5c-2.209 0-4-1.79-4-4V7.55L1.432 9.48.068 8.02 4.5 3.88zM16.5 6H11V4h5.5c2.209 0 4 1.79 4 4v8.45l2.068-1.93 1.364 1.46-4.432 4.14-4.432-4.14 1.364-1.46 2.068 1.93V8c0-1.1-.896-2-2-2z"}))});s.metadata={width:24,height:24};const a=s},66481:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M17 4c-1.1 0-2 .9-2 2 0 .33.08.65.22.92C15.56 7.56 16.23 8 17 8c1.1 0 2-.9 2-2s-.9-2-2-2zm-4 2c0-2.21 1.79-4 4-4s4 1.79 4 4-1.79 4-4 4c-1.17 0-2.22-.5-2.95-1.3l-4.16 2.37c.07.3.11.61.11.93s-.04.63-.11.93l4.16 2.37c.73-.8 1.78-1.3 2.95-1.3 2.21 0 4 1.79 4 4s-1.79 4-4 4-4-1.79-4-4c0-.32.04-.63.11-.93L8.95 14.7C8.22 15.5 7.17 16 6 16c-2.21 0-4-1.79-4-4s1.79-4 4-4c1.17 0 2.22.5 2.95 1.3l4.16-2.37c-.07-.3-.11-.61-.11-.93zm-7 4c-1.1 0-2 .9-2 2s.9 2 2 2c.77 0 1.44-.44 1.78-1.08.14-.27.22-.59.22-.92s-.08-.65-.22-.92C7.44 10.44 6.77 10 6 10zm11 6c-.77 0-1.44.44-1.78 1.08-.14.27-.22.59-.22.92 0 1.1.9 2 2 2s2-.9 2-2-.9-2-2-2z"}))});s.metadata={width:24,height:24};const a=s},75629:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M14 2c0 3.35.74 5.53 2.1 6.9 1.36 1.36 3.55 2.1 6.9 2.1v2c-3.35 0-5.54.74-6.9 2.1-1.36 1.37-2.1 3.55-2.1 6.9h-2c0-3.35-.74-5.53-2.11-6.9C8.53 13.74 6.35 13 3 13v-2c3.35 0 5.53-.74 6.89-2.1C11.26 7.53 12 5.35 12 2h2zM5 1c0 1.66-1.34 3-3 3v1c1.66 0 3 1.34 3 3h1c0-1.66 1.34-3 3-3V4C7.34 4 6 2.66 6 1H5z"}))});s.metadata={width:24,height:24};const a=s},42203:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M18 1.2v21.6L8.71 17H5.5C4.12 17 3 15.88 3 14.5v-5C3 8.12 4.12 7 5.5 7h3.21L18 1.2zM8 9H5.5c-.28 0-.5.22-.5.5v5c0 .28.22.5.5.5H8V9zm2 6.45l6 3.75V4.8l-6 3.75v6.9z"}))});s.metadata={width:24,height:24};const a=s},49511:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(2784),i=n(90601),r=n(73569);const s=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M18 6.59V1.2L8.71 7H5.5C4.12 7 3 8.12 3 9.5v5C3 15.88 4.12 17 5.5 17h2.09l-2.3 2.29 1.42 1.42 15.5-15.5-1.42-1.42L18 6.59zm-8 8V8.55l6-3.75v3.79l-6 6zM5 9.5c0-.28.22-.5.5-.5H8v6H5.5c-.28 0-.5-.22-.5-.5v-5zm6.5 9.24l1.45-1.45L16 19.2V14l2 .02v8.78l-6.5-4.06z"}))});s.metadata={width:24,height:24};const a=s},44527:(e,t,n)=>{n.d(t,{Z:()=>l});var o=n(2784),i=n(90601),r=n(93987),s=n(73569);const a=(e={})=>{const t=o.useContext(r.Z);return(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[s.Z.root,e.style,t&&s.Z.iconRTL],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M21.15 6.232c.97.977.97 2.559 0 3.536L9.91 21H3v-6.914L14.23 2.854c.98-.977 2.56-.977 3.54 0l3.38 3.378zM14.75 19l-2 2H21v-2h-6.25z"}))})};a.metadata={width:24,height:24};const l=a},69058:(e,t,n)=>{n.d(t,{P:()=>o,Z:()=>i});const o=Object.freeze({BROADCAST:"broadcast",DM:"dm",TWEET:"tweet",STATIC_BROADCAST:"static_broadcast",AUDIO_SPACE:"audio_space"}),i={forAudioSpace:(e,t,n,i)=>({type:o.AUDIO_SPACE,id:e,mediaKey:t,isLive:n,acquisitionParams:i}),forBroadcast:(e,t,n)=>({type:o.BROADCAST,id:e,tweetId:t,impressionId:n}),forDm:e=>({type:o.DM,id:e}),forTweet:(e,t,n=0)=>({type:o.TWEET,id:e,impressionId:t,index:n})}},76648:(e,t,n)=>{var o;n.d(t,{Z:()=>i});var i=function(){function e(){}return e.isAvailable=function(){return void 0===o&&(o="function"==typeof document.queryCommandSupported&&document.queryCommandSupported("copy")),o},e.getString=function(){return Promise.resolve("")},e.setString=function(e){var t=!1,n=document.body;if(n){var o=document.createElement("span");o.textContent=e,o.style.opacity="0",o.style.position="absolute",o.style.whiteSpace="pre-wrap",o.style.userSelect="auto",n.appendChild(o);var i=window.getSelection();i.removeAllRanges();var r=document.createRange();r.selectNodeContents(o),i.addRange(r);try{document.execCommand("copy"),t=!0}catch(e){}i.removeAllRanges(),n.removeChild(o)}return t},e}()},52661:(e,t,n)=>{n.d(t,{Z:()=>g});var o=n(35620),i={centroidDimension:function(e,t,n,o){var r=e.touchBank,s=0,a=0,l=1===e.numberActiveTouches?e.touchBank[e.indexOfSingleActiveTouch]:null;if(null!==l)l.touchActive&&l.currentTimeStamp>t&&(s+=o&&n?l.currentPageX:o&&!n?l.currentPageY:!o&&n?l.previousPageX:l.previousPageY,a=1);else for(var c=0;c<r.length;c++){var d=r[c];if(null!=d&&d.touchActive&&d.currentTimeStamp>=t){s+=o&&n?d.currentPageX:o&&!n?d.currentPageY:!o&&n?d.previousPageX:d.previousPageY,a++}}return a>0?s/a:i.noCentroid},currentCentroidXOfTouchesChangedAfter:function(e,t){return i.centroidDimension(e,t,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(e,t){return i.centroidDimension(e,t,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(e,t){return i.centroidDimension(e,t,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(e,t){return i.centroidDimension(e,t,!1,!1)},currentCentroidX:function(e){return i.centroidDimension(e,0,!0,!0)},currentCentroidY:function(e){return i.centroidDimension(e,0,!1,!0)},noCentroid:-1};const r=i;var s=r.currentCentroidXOfTouchesChangedAfter,a=r.currentCentroidYOfTouchesChangedAfter,l=r.previousCentroidXOfTouchesChangedAfter,c=r.previousCentroidYOfTouchesChangedAfter,d=r.currentCentroidX,u=r.currentCentroidY,h={_initializeGestureState:function(e){e.moveX=0,e.moveY=0,e.x0=0,e.y0=0,e.dx=0,e.dy=0,e.vx=0,e.vy=0,e.numberActiveTouches=0,e._accountsForMovesUpTo=0},_updateGestureStateOnMove:function(e,t){e.numberActiveTouches=t.numberActiveTouches,e.moveX=s(t,e._accountsForMovesUpTo),e.moveY=a(t,e._accountsForMovesUpTo);var n=e._accountsForMovesUpTo,o=l(t,n),i=s(t,n),r=c(t,n),d=a(t,n),u=e.dx+(i-o),h=e.dy+(d-r),p=t.mostRecentTimeStamp-e._accountsForMovesUpTo;e.vx=(u-e.dx)/p,e.vy=(h-e.dy)/p,e.dx=u,e.dy=h,e._accountsForMovesUpTo=t.mostRecentTimeStamp},create:function(e){var t={handle:null,shouldCancelClick:!1,timeout:null},n={stateID:Math.random(),moveX:0,moveY:0,x0:0,y0:0,dx:0,dy:0,vx:0,vy:0,numberActiveTouches:0,_accountsForMovesUpTo:0};return{panHandlers:{onStartShouldSetResponder:function(t){return null!=e.onStartShouldSetPanResponder&&e.onStartShouldSetPanResponder(t,n)},onMoveShouldSetResponder:function(t){return null!=e.onMoveShouldSetPanResponder&&e.onMoveShouldSetPanResponder(t,n)},onStartShouldSetResponderCapture:function(t){return 1===t.nativeEvent.touches.length&&h._initializeGestureState(n),n.numberActiveTouches=t.touchHistory.numberActiveTouches,null!=e.onStartShouldSetPanResponderCapture&&e.onStartShouldSetPanResponderCapture(t,n)},onMoveShouldSetResponderCapture:function(t){var o=t.touchHistory;return n._accountsForMovesUpTo!==o.mostRecentTimeStamp&&(h._updateGestureStateOnMove(n,o),!!e.onMoveShouldSetPanResponderCapture&&e.onMoveShouldSetPanResponderCapture(t,n))},onResponderGrant:function(i){return t.handle||(t.handle=o.Z.createInteractionHandle()),t.timeout&&function(e){clearTimeout(e.timeout)}(t),t.shouldCancelClick=!0,n.x0=d(i.touchHistory),n.y0=u(i.touchHistory),n.dx=0,n.dy=0,e.onPanResponderGrant&&e.onPanResponderGrant(i,n),null==e.onShouldBlockNativeResponder||e.onShouldBlockNativeResponder(i,n)},onResponderReject:function(o){p(t,e.onPanResponderReject,o,n)},onResponderRelease:function(o){p(t,e.onPanResponderRelease,o,n),m(t),h._initializeGestureState(n)},onResponderStart:function(t){var o=t.touchHistory;n.numberActiveTouches=o.numberActiveTouches,e.onPanResponderStart&&e.onPanResponderStart(t,n)},onResponderMove:function(t){var o=t.touchHistory;n._accountsForMovesUpTo!==o.mostRecentTimeStamp&&(h._updateGestureStateOnMove(n,o),e.onPanResponderMove&&e.onPanResponderMove(t,n))},onResponderEnd:function(o){var i=o.touchHistory;n.numberActiveTouches=i.numberActiveTouches,p(t,e.onPanResponderEnd,o,n)},onResponderTerminate:function(o){p(t,e.onPanResponderTerminate,o,n),m(t),h._initializeGestureState(n)},onResponderTerminationRequest:function(t){return null==e.onPanResponderTerminationRequest||e.onPanResponderTerminationRequest(t,n)},onClickCapture:function(e){!0===t.shouldCancelClick&&(e.stopPropagation(),e.preventDefault())}},getInteractionHandle:function(){return t.handle}}}};function p(e,t,n,i){e.handle&&(o.Z.clearInteractionHandle(e.handle),e.handle=null),t&&t(n,i)}function m(e){e.timeout=setTimeout((function(){e.shouldCancelClick=!1}),250)}const g=h},58440:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(78052),i=n(2784);function r(){var e=(0,i.useState)((function(){return o.Z.get("window")})),t=e[0],n=e[1];return(0,i.useEffect)((function(){function e(e){var t=e.window;null!=t&&n(t)}return o.Z.addEventListener("change",e),n(o.Z.get("window")),function(){o.Z.removeEventListener("change",e)}}),[]),t}},69039:(e,t,n)=>{n(26590);var o=null;e.exports={inject:function(e){o=e},get:function(){return o}}},77660:(e,t,n)=>{var o=n(69039),i=n(6161).useTrackLoadQueryInRender,r=n(24550),s=n(23),a=(n(2784).useDebugValue,n(3383).getFragment);e.exports=function(e,t){var n=o.get();return n?n.useFragment(e,t):function(e,t){i();var n=a(e);return s(n,"first argument of useFragment()"),r(n,t,"useFragment()").data}(e,t)}},95402:(e,t,n)=>{var o=n(2784),i=o.useEffect,r=o.useRef;e.exports=function(){var e=r(!0);return i((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},28123:(e,t,n)=>{var o=n(6161).useTrackLoadQueryInRender,i=n(38239),r=n(3566),s=n(37429),a=n(47677),l=(n(2784).useDebugValue,n(3383).__internal),c=l.fetchQueryDeduped,d=l.fetchQuery;n(26590);e.exports=function(e,t,n){o();var l,u=s(),h=t.fetchKey,p=t.fetchPolicy,m=t.source,g=t.variables,y=t.networkCacheConfig,b=r(e,g,y);if("PreloadedQuery_DEPRECATED"===t.kind)b.request.node.params.name!==t.name&&a(!1),l={componentDisplayName:"usePreloadedQuery()",fetchKey:h,fetchObservable:c(u,b.request.identifier,(function(){return u===t.environment&&null!=m?u.executeWithSource({operation:b,source:m}):u.execute({operation:b})})),fetchPolicy:p,query:b,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy};else{var f=d(u,b);l={componentDisplayName:"usePreloadedQuery()",fetchObservable:null!=m&&u===t.environment?m.ifEmpty(f):(t.environment,f),fetchKey:h,fetchPolicy:p,query:b,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy}}return i(l)}},72845:(e,t,n)=>{var o=(0,n(71600).default)(n(38636)),i=n(6161),r=i.loadQuery,s=i.useTrackLoadQueryInRender,a=n(95402),l=n(37429),c=n(2784),d=c.useCallback,u=c.useEffect,h=c.useRef,p=c.useState,m=n(3383).getRequest,g={kind:"NullQueryReference"};function y(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==m(e).params.metadata.live}e.exports=function(e,t){var n=null!=t?t:g,i=l();s();var c=a(),m=h(new Set([n])),b=p((function(){return n})),f=b[0],v=b[1],w=p((function(){return n})),C=w[0],_=w[1];n!==C&&(m.current.add(n),_(n),v(n));var E=d((function(){c.current&&(m.current.add(g),v(g))}),[c]),x=d((function(t,n){var o=null!=n&&n.hasOwnProperty("__environment")?{fetchPolicy:n.fetchPolicy,networkCacheConfig:n.networkCacheConfig,__nameForWarning:n.__nameForWarning}:n;if(c.current){var s,a=r(null!==(s=null==n?void 0:n.__environment)&&void 0!==s?s:i,e,t,o);m.current.add(a),v(a)}}),[i,e,v,c]),Z=h(!1);return u((function(){return function(){Z.current=!0}}),[]),u((function(){if(!0===Z.current)return Z.current=!1,void("NullQueryReference"!==f.kind&&x(f.variables,{fetchPolicy:f.fetchPolicy,networkCacheConfig:f.networkCacheConfig}));var t=m.current;if(c.current){var n,i=(0,o.default)(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r===f)break;t.delete(r),"NullQueryReference"!==r.kind&&(y(e)?r.dispose&&r.dispose():r.releaseQuery&&r.releaseQuery())}}catch(e){i.e(e)}finally{i.f()}}}),[f,c,x,e]),u((function(){return function(){var t,n=(0,o.default)(m.current);try{for(n.s();!(t=n.n()).done;){var i=t.value;"NullQueryReference"!==i.kind&&(y(e)?i.dispose&&i.dispose():i.releaseQuery&&i.releaseQuery())}}catch(e){n.e(e)}finally{n.f()}}}),[e]),["NullQueryReference"===f.kind?null:f,x,E]}},23:(e,t,n)=>{n(2784).useRef,n(26590);e.exports=function(e,t){}}}]);
- //# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/shared~bundle.Conversation.d7f244da.js.map
|