"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2375],{62334:(e,n,i)=>{i.d(n,{A:()=>r});var o=i(24643),t=i(40099),l=i(84987);const a={id:"tip_arrow_white-99f4b53c",use:"tip_arrow_white-99f4b53c-usage",viewBox:"0 0 24 8",content:''};function r(e){const n=(0,t.useContext)(l.X);return(0,t.useLayoutEffect)((()=>(n.add(a),()=>{n.remove("tip_arrow_white-99f4b53c")})),[]),(0,o.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,o.jsx)("use",{xlinkHref:"#tip_arrow_white-99f4b53c"},void 0)}),void 0)}},96926:(e,n,i)=>{i.d(n,{S:()=>a,w:()=>l});var o=i(40099),t=i(14609);const l=({callback:e,element:n})=>{const i=(0,o.useRef)();(0,o.useEffect)((()=>{const o=null==n?void 0:n.current,l=null==i?void 0:i.current;if(o){l&&l.unobserve(o);const n=new t.A(((...n)=>requestAnimationFrame((()=>e(...n)))));return n.observe(o),i.current=n,()=>{l&&o&&l.unobserve(o)}}}),[e,n])},a=e=>{const n=(0,o.useRef)();(0,o.useEffect)((()=>{n.current=n=>{const i=null==e?void 0:e(n);return"string"==typeof i?n.returnValue=i:n.defaultPrevented?n.returnValue="":void 0}}),[e]),(0,o.useEffect)((()=>{const e=e=>{n.current&&n.current(e)};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),[])}},30247:(e,n,i)=>{i.d(n,{ey:()=>v,Zh:()=>r,iU:()=>d,BS:()=>_,b_:()=>c});var o=i(40099),t=i(30023),l=i(68783),a=i(58305);const r=e=>!!e&&/^https?:\/\/.*\.mp4$/.test(e),d=e=>1===e,s=e=>11===e?{enter_from_merge:"homepage_follow",entrance_detail:"homepage_follow"}:{enter_from_merge:"homepage_hot",entrance_detail:"homepage_hot_live_head"};function c({item:e,author:n,pageType:i}){const a=(0,o.useMemo)((()=>(0,l.Jl)(e)?"live_head":"video_head"),[e]),c=(0,o.useMemo)((()=>{var n,o;return Object.assign(Object.assign({},s(i)),{enter_method:a,video_id:null==e?void 0:e.id,request_id:null==e?void 0:e.logId,is_highlight:r(null===(n=null==e?void 0:e.liveRoomInfo)||void 0===n?void 0:n.streamData)?"1":"0",is_landscape:d(null===(o=null==e?void 0:e.liveRoomInfo)||void 0===o?void 0:o.landscape)?"1":"0"})}),[i,e,a]);return{avatarShowParams:(0,o.useMemo)((()=>{var i,o,l,a,r,d;return Object.assign(Object.assign({},c),{room_id:null!==(i=null==n?void 0:n.roomId)&&void 0!==i?i:null===(o=null==e?void 0:e.liveRoomInfo)||void 0===o?void 0:o.roomID,anchor_id:null!==(l=null==n?void 0:n.id)&&void 0!==l?l:null===(r=null===(a=null==e?void 0:e.liveRoomInfo)||void 0===a?void 0:a.ownerInfo)||void 0===r?void 0:r.id,live_type:t.t9[Number(null===(d=null==e?void 0:e.liveRoomInfo)||void 0===d?void 0:d.mode)],play_mode:"one_column"})}),[e,n,c]),avatarLinkQuery:(0,o.useMemo)((()=>Object.assign(Object.assign({},c),{from_play_mode:"one_column"})),[c]),followClickQuery:(0,o.useMemo)((()=>{var i,o,l,a,r,d,s,v,_;return Object.assign(Object.assign({},c),{enter_method:"live_cell",live_type:t.t9[Number(null===(i=null==e?void 0:e.liveRoomInfo)||void 0===i?void 0:i.mode)],room_id:null!==(o=null==n?void 0:n.roomId)&&void 0!==o?o:null===(l=null==e?void 0:e.liveRoomInfo)||void 0===l?void 0:l.roomID,anchor_id:null!==(a=null==n?void 0:n.id)&&void 0!==a?a:null===(d=null===(r=null==e?void 0:e.liveRoomInfo)||void 0===r?void 0:r.ownerInfo)||void 0===d?void 0:d.id,to_user_id:null!==(s=null==n?void 0:n.id)&&void 0!==s?s:null===(_=null===(v=null==e?void 0:e.liveRoomInfo)||void 0===v?void 0:v.ownerInfo)||void 0===_?void 0:_.id,play_mode:"one_column"})}),[c,n,i,e])}}const v=()=>(0,a._S)("ENTER_ROOM_TIME_STAMP_STORAGE_KEY",""),_=e=>[3,-2].includes(e)},79345:(e,n,i)=>{var o,t,l;i.d(n,{qt:()=>a}),function(e){e[e.On=1]="On",e[e.Off=2]="Off"}(o||(o={})),function(e){e[e.init=0]="init",e[e.connect=1]="connect",e[e.stop=8]="stop"}(t||(t={})),function(e){e.LD="ld",e.SD="sd",e.HD="hd",e.HD60="hd_60",e.UHD="uhd",e.UHD60="uhd_60",e.ORIGIN="origin",e.AUTO="auto"}(l||(l={}));const a={origin:"Original",uhd_60:"1080p60",uhd:"1080p",hd_60:"720p60",hd:"720p",sd:"540p",ld:"360p"};var r,d,s;!function(e){e.H264="h264",e.Bytevc1="bytevc1",e.H265="h265"}(r||(r={})),function(e){e[e.NORMAL=0]="NORMAL",e[e.OBS=1]="OBS",e[e.MEDIA=2]="MEDIA",e[e.AUDIO=3]="AUDIO",e[e.SCREEN=4]="SCREEN",e[e.SOCIAL_LIVE=5]="SOCIAL_LIVE",e[e.STUDIO=6]="STUDIO"}(d||(d={})),function(e){e.Normal="normal",e.PoorConnection="poor_connection",e.Offline="offline"}(s||(s={}))},82858:(e,n,i)=>{i.d(n,{Eo:()=>r});var o=i(46682),t=i(75974),l=i(40099),a=i(37434);function r(){var e;const[n]=(0,o.S)(t.P),[i,r]=(0,l.useState)(!1),[d,s]=(0,l.useState)(!1),c=(0,a.Us)();return(0,l.useEffect)((()=>{r(n.engagementCountHide),s(n.guardianComplianceSettingInited)}),[n.engagementCountHide,n.guardianComplianceSettingInited]),!!Boolean(null===(e=c.appContext)||void 0===e?void 0:e.user)&&(!d||i)}},45266:(e,n,i)=>{i.d(n,{s:()=>l});var o=i(71281),t=i(57431);const l=()=>{var e,n;const{user:i}=(0,t.x)();return{showAds:"v2"===(null!==(e=(0,o.d)("enable_ads"))&&void 0!==e?e:"v1")&&!!i,showAboutThisAd:"v2"===(null!==(n=(0,o.d)("enable_about_this_ad"))&&void 0!==n?n:"v1")}}},64231:(e,n,i)=>{i.d(n,{i:()=>t});var o=i(40099);const t=({upHandler:e,downHandler:n,confirmHandler:i,tabHandler:t})=>(0,o.useCallback)((o=>{const{keyCode:l}=o;switch(l){case 38:o.preventDefault(),e();break;case 40:o.preventDefault(),n();break;case 13:null==i||i();break;case 9:null==t||t(o)}}),[i,n,t,e])},40772:(e,n,i)=>{i.d(n,{w:()=>l});var o=i(40099),t=i(47172);function l(){const e=(0,t.useHistory)();return(0,o.useCallback)(((n,{href:i,state:o,shouldUsePush:t})=>{t&&(n.preventDefault(),e.push(i,o))}),[e])}},85041:(e,n,i)=>{i.d(n,{E:()=>b});var o=i(58632),t=i(24643),l=i(40099),a=i(25342),r=i(82535),d=i(97071),s=i(8046),c=i(72688),v=i(58305),_=i(34012),u=i(4712),h=i(4725),f=i(81211),k=i(67963),p=i(40935),g=i(52333),m=i(46682);const b=(0,l.memo)((0,l.forwardRef)((function(e,n){var{uniqueId:i,secUid:b,extraQuery:w={},children:y,replace:S=!1,isInBrowserMode:C=!1,teaParams:L,shouldStopPropagation:R=!0,reportTea:I=!0,onClick:x,onLinkClick:O,adInfo:P,style:D}=e,A=(0,o.__rest)(e,["uniqueId","secUid","extraQuery","children","replace","isInBrowserMode","teaParams","shouldStopPropagation","reportTea","onClick","onLinkClick","adInfo","style"]);const E=(0,f.U)({pathname:(0,c.fJR)({uniqueId:i,secUid:b}),search:w}),M=(0,p.yS)(i),j=(0,_.Ig)(),B=(0,l.useRef)(null),U=(0,m.w)(g.k),{playMode:N,ttamRefer:T=a.Hq.Photo}=L,F=null==P?void 0:P.is_normal,V=(0,l.useCallback)((e=>{if(P&&!F&&P.web_url)return(0,v.Gu)(e),void(0,u.Zy)({adInfo:P,refer:T,tag:N&&a.EM[N]||a.xY.OneColumn});if(j)return(0,v.Gu)(e),void(0,h.Hz)("user-select",{uid:null==M?void 0:M.id,uniqueId:i,from:"user-link"});if(R&&e.stopPropagation(),I&&r.q.handleEnterUser(L),null==P?void 0:P.is_normal){const e=(0,d.n5)({ad_info:P,play_mode:null!=N?N:"one_column"});s.pg.handleOtherclick(Object.assign(Object.assign({},e),{refer:T}))}(L.group_id||L.from_group_id)&&U.addMlModelTrainData({id:L.group_id||L.from_group_id,action:"head"}),null==x||x(e),null==O||O(e,E,"user")}),[U,P,j,R,I,L,x,O,E,null==M?void 0:M.id,i,N,T]),H=(0,l.useCallback)((e=>{var n;13===e.keyCode&&(e.preventDefault(),e.stopPropagation(),null===(n=B.current)||void 0===n||n.click())}),[]);return(0,l.useImperativeHandle)(n,(()=>({linkClick:()=>{var e;null===(e=B.current)||void 0===e||e.click()}}))),P&&!F&&P.web_url?(0,t.jsx)("a",Object.assign({href:P.web_url},A,{ref:B,onClick:V,onKeyDown:H,style:D,target:"_blank",rel:"noreferrer",children:y})):(0,t.jsx)(k.N_,Object.assign({to:E},A,{replace:S||C,ref:B,onClick:V,onKeyDown:H,style:D,children:y}))})))},60342:(e,n,i)=>{i.d(n,{K:()=>l});var o=i(40099),t=i(88920);function l(e=0){const n=(0,o.useRef)(0),[i,l]=(0,o.useState)(!1),[a,r]=(0,o.useState)(!1),{shouldOptimizeCta:d}=(0,t.kb)(),s=(0,o.useRef)(null),c=(0,o.useRef)(null),v=(0,o.useCallback)((()=>{l(!0),window.clearTimeout(n.current)}),[]),_=(0,o.useCallback)((()=>{window.clearTimeout(n.current),a||(n.current=window.setTimeout((()=>{l(!1)}),e))}),[e,a]),u=(0,o.useCallback)((e=>{r(e)}),[]),h=(0,o.useCallback)((()=>{a||window.setTimeout((()=>{var e,n,o;i&&(d?(null===(e=s.current)||void 0===e?void 0:e.hasFocusForChildren())||_():(null===(o=Array.from(null===(n=c.current)||void 0===n?void 0:n.querySelectorAll("*")))||void 0===o?void 0:o.includes(document.activeElement))||_())}),e)}),[a,e,i,d,_]);return{active:i,timeoutRef:n,setActive:l,handleMouseEnter:v,handleMouseLeave:_,handleOtherModalOpen:u,actionItemRef:s,buttonShareRef:c,handleButtonShareOnBlur:h}}},97706:(e,n,i)=>{i.d(n,{z:()=>h});var o=i(24643),t=i(40099),l=i(17784),a=i(62186),r=i(62334);function d(e,n){return e||n?n?e?{left:"50%",transform:`translate(-50%, ${n}px)`}:{transform:`translateY(${n}px)`}:{left:"50%",transform:"translateX(-50%)"}:null}const s=(0,a.default)("div",{target:"e2ipgxl0"})((({zIndex2:e,state:n,duration:i=300,theme:o,centered:t,verticalPropKey:l,verticalOffset:a})=>[{position:"absolute",zIndex:e?2:1,background:o.colors.BGPrimary,borderRadius:"8px",[l]:"calc(100% + 12px)",boxShadow:"0 4px 16px rgba(0, 0, 0, .12)",transition:`opacity ${i}ms`,opacity:Number("entering"===n||"entered"===n),overscrollBehavior:"contain"},d(t,a)]),"label:DivContainer;"),c=(0,a.default)(r.A,{shouldForwardProp:e=>"verticalPropKey"!==e&&"centered"!==e,target:"e2ipgxl1"})([{display:"block",width:"24px",height:"8px",position:"absolute"},({centered:e})=>e?{left:"50%"}:null,({verticalPropKey:e})=>"top"===e?{top:"-8px"}:{bottom:"-8px"},({centered:e,verticalPropKey:n})=>{const i=[];return e&&i.push("translateX(-50%)"),n&&"bottom"===n&&i.push("rotate(180deg)"),{transform:i.length>0?i.join(" "):void 0}}],"label:StyledTopArrow;");var v=i(88920);const _={topRight:"right",topLeft:"left",top:null,bottomRight:"right",bottomLeft:"left",bottom:null},u={topRight:"bottom",topLeft:"bottom",top:"bottom",bottomRight:"top",bottomLeft:"top",bottom:"top"},h=function({placement:e,margin:n="-2px",arrowMargin:i=6,duration:a=300,backgroundColor:r="#fff",active:d=!1,verticalOffset:h=0,style:f,hideArrow:k=!1,id:p,onKeyDown:g,ariaLabel:m,ariaLabelledBy:b,children:w}){const y=(0,t.useRef)(null),S=_[e],C=u[e],{allowRightPanelScroll:L,shouldOptimizeReply:R}=(0,v.kb)(),I=Object.assign({backgroundColor:r},f),x={};return S&&(x[S]=i,I[S]=n),(0,o.jsx)(l.Ay,{in:d,timeout:a,unmountOnExit:!0,nodeRef:y,children:e=>(0,o.jsxs)(s,{zIndex2:R||L,verticalPropKey:C,state:e,duration:a,ref:y,style:I,centered:!S,verticalOffset:h,id:p,tabIndex:-1,onKeyDown:g,"aria-label":m,"aria-labelledby":b,children:[!k&&(0,o.jsx)(c,{fill:r,style:x,centered:!S,verticalPropKey:C}),w]})})}},4725:(e,n,i)=>{i.d(n,{Hz:()=>t,L9:()=>a,Ri:()=>l});var o=i(58305);const t=(e,n)=>{try{if("business"!==new URLSearchParams(window.location.search).get("scene"))return;window.parent.postMessage({type:e,params:n},window.location.origin)}catch(e){console.error("postMessage error",e)}},l=e=>{var n;const i=`; ${document.cookie}`.split(`; ${e}=`);return i.length>0?null===(n=i.pop())||void 0===n?void 0:n.split(";").shift():null},a=(e,n,i)=>{const t=JSON.parse((0,o._S)(e));t[n]=i,(0,o.AP)(e,JSON.stringify(t))}},9782:(e,n,i)=>{i.d(n,{FP:()=>h,mx:()=>f});var o,t,l,a,r,d,s,c,v,_,u=i(93608);function h(e){switch(e){case 0:return"video_live";case 1:return"third_party";case 3:return"audio";case 4:return"screen_share";case 5:return"social_live";case 6:return"live_studio";default:return"others"}}!function(e){e.LivePlay="livesdk_live_play",e.LivePlayV2="livesdk_live_play_v2",e.LivePause="livesdk_live_pause",e.LivePlayFail="livesdk_live_play_fail",e.LiveRefresh="livesdk_live_refresh",e.LiveShow="livesdk_live_show",e.LiveEnter="livesdk_enter_room",e.LiveEndShow="livesdk_audience_live_end_show",e.WatchOneMin="livesdk_watch_onemin",e.LiveShare="livesdk_share",e.LiveDuration="livesdk_live_duration",e.LiveInteractDuration="livesdk_connection_watch_duration",e.LiveFinish="livesdk_finish_show",e.LiveEndViolationShow="livesdk_live_end_show",e.ShowVerifiedIcon="livesdk_authentication_icon_show",e.OBSRevokeUserPop="livesdk_obs_revoke_user_pop",e.SharePanelShow="share_panel_show",e.SharePanelClick="share_panel_click",e.ClickShareButton="click_share_button",e.RankingsSettingShow="livesdk_live_setting_show",e.ClickRankingsSetting="livesdk_live_rankings_setting_click",e.ClickRankingsSettingSubmit="livesdk_live_rankings_setting_result",e.LiveMatureThemeMaskShow="livesdk_mature_theme_mask_show",e.RecLivePlay="livesdk_rec_live_play",e.ReflowVideoPlay="reflow_video_play",e.EnterRoomDuration="livesdk_enter_room_duration",e.QuestionScanShow="livesdk_question_scan_show",e.LeaderBoardShow="livesdk_leaderboard_show",e.LeaderBoardFaqShow="livesdk_leaderboard_faq_show",e.LeaderBoardDuration="livesdk_leaderboard_duration",e.BottomMessageShow="livesdk_bottom_message_show",e.BottomMessageGPPPAShow="livesdk_election_notice_tag_show",e.BottomMessageGPPPAClick="livesdk_election_notice_tag_click",e.WarningMaskLayer="livesdk_violation_mask_layer",e.GuestDetailOpenClick="livesdk_guest_detail_open_click",e.LiveUnavailable="livesdk_live_unavailable",e.AutoplayUnavailable="livesdk_live_autoplay_unavailable",e.LiveChatIconClick="livesdk_live_chat_icon_click",e.LiveRefreshRetryIconShow="livesdk_live_refresh_retry_icon_show",e.LiveRefreshRetryIconClick="livesdk_live_refresh_retry_icon_click",e.LiveNextIconShow="livesdk_live_next_icon_show",e.LiveNextIconClick="livesdk_live_next_icon_click",e.LiveAIGCTagShow="view_live_aigc_label",e.LiveAIGCTagClick="click_live_aigc_label",e.LiveEndNextCancel="livesdk_webapp_live_end_next_cancel",e.LivePreviewFail="livesdk_preview_play_fail",e.LiveNonStreamingShow="livesdk_live_nonstreaming_show",e.LiveRoomDraw="livesdk_live_draw",e.LiveLeavePage="livesdk_live_leave_page",e.LiveNonStreamingIMMsg="livesdk_live_nonstreaming_im_msg",e.LiveMobileRelayToast="livesdk_open_on_computer_toast",e.LiveAnchorCountDownSeiReceived="livesdk_anchor_count_down_sei_received"}(o||(o={})),function(e){e.VideoAnchorPK="video_anchor_pk",e.VideoAnchorConnect="video_anchor_connect",e.SharedScreenAnchorConnect="shared_screen_anchor_connect",e.VideoAnchorOrder="video_anchor_order",e.VideoAnchorGuestConnect="video_anchor_guest_connect",e.StudioGuestConnect="studio_guest_connect",e.NormalVideoLive="normal_video_live"}(t||(t={})),function(e){e.normal="normal",e.programLive="program_live"}(l||(l={})),function(e){e.VideoLive="video_live",e.ThirdParty="third_party",e.Media="media",e.Audio="audio",e.ScreenShare="screen_share",e.SocialLive="social_live",e.LiveStudio="live_studio",e.Others="others"}(a||(a={})),function(e){e.DiscoverFeed="discorver_feed"}(r||(r={})),function(e){e.Screenshot="screen_shot",e.UserUpload="user_upload",e.Null="null"}(d||(d={})),function(e){e[e.UserRoomFail=2051]="UserRoomFail",e[e.RoomEnterFail=205]="RoomEnterFail",e[e.UserLeave=208]="UserLeave"}(s||(s={})),function(e){e.Pause="pause",e.Leave="leave",e.ChangeMode="change_mode",e.ChangePage="change_webpage",e.ChangeMute="change_mute",e.ChangeDefinition="change_definition",e.LiveEnd="live_end",e.Disconnected="disconnected",e.Others="others",e.UnLogin="unlogin"}(c||(c={})),function(e){e.ManulClick="manul_click",e.DisconnectedToast="disconnected_toast"}(v||(v={})),function(e){e.Paused="paused",e.Playing="playing"}(_||(_={}));const f={isSPA:!1,handleLivePause:e=>{u.f.event("livesdk_live_pause",e)},handleLiveChatIconClick:e=>{u.f.event("livesdk_live_chat_icon_click",Object.assign(Object.assign({},e),{action_type:"click"}))},handleCheckAutoplayError:()=>{u.f.event("livesdk_live_autoplay_unavailable")},handleLiveEndShow:e=>{u.f.event("livesdk_audience_live_end_show",e)},handleLiveEntranceShow:e=>{u.f.event("livesdk_live_show",e)},handleLiveRoomUnavailable:e=>{u.f.event("livesdk_live_unavailable",Object.assign(Object.assign({},e),{action_type:"show"}))},handleLiveEndViolationShow:e=>{u.f.event("livesdk_live_end_show",e)},handleVoiceChatPanelExpand:e=>{u.f.event("livesdk_guest_detail_open_click",Object.assign(Object.assign({},e),{app_name:"webapp"}))},handleBottomMessageShow:e=>{u.f.event("livesdk_bottom_message_show",Object.assign(Object.assign({},e),{user_type:"user"}))},handleWarningMaskShow:e=>{u.f.event("livesdk_violation_mask_layer",Object.assign(Object.assign({},e),{violation_type:"mask_layer"}))},handleEnterRoomDuration:e=>{u.f.event("livesdk_enter_room_duration",e)},handleLivePlayFail:e=>{u.f.event("livesdk_live_play_fail",e)},handleLivePlay:e=>{u.f.event("livesdk_live_play",e)},handleLivePlayV2:e=>{u.f.event("livesdk_live_play_v2",e)},handleRecLivePlay:e=>{u.f.event("livesdk_rec_live_play",e)},handleReflowVideoPlay:e=>{u.f.event("reflow_video_play",e)},handleLiveRefresh:e=>{u.f.event("livesdk_live_refresh",e)},handleLiveShow:e=>{u.f.event("livesdk_live_show",e)},handleLiveEnter:e=>{u.f.event("livesdk_enter_room",e)},handleOBSRevokeUserPopShow:e=>{u.f.event("livesdk_obs_revoke_user_pop",e)},handleWatchOneMin:e=>{u.f.event("livesdk_watch_onemin",e)},handleLiveShare:e=>{u.f.event("livesdk_share",e)},handleLiveDuration:(e,n)=>{(null==n?void 0:n.sendBeacon)?u.f.beconEvent("livesdk_live_duration",e):u.f.event("livesdk_live_duration",e)},handleLiveInteractDuration:(e,n)=>{(null==n?void 0:n.sendBeacon)?u.f.beconEvent("livesdk_connection_watch_duration",e):u.f.event("livesdk_connection_watch_duration",e)},handleInnerNextIconClick:e=>{u.f.event("livesdk_live_next_icon_click",e)},handleInnerNextIconShow:e=>{u.f.event("livesdk_live_next_icon_show",e)},handleLiveFinish:e=>{u.f.event("livesdk_finish_show",e)},handleShowVerifiedIcon:e=>{u.f.event("livesdk_authentication_icon_show",e)},handleSharePanelShow:e=>{u.f.event("share_panel_show",e)},handleSharePanelClick:e=>{u.f.event("share_panel_click",e)},handleShareButtonClick:e=>{u.f.event("click_share_button",e)},handleRankingsSettingShow:e=>{u.f.event("livesdk_live_setting_show",e)},handleRankingsSettingClick:e=>{u.f.event("livesdk_live_rankings_setting_click",e)},handleRankingsSettingSubmit:e=>{u.f.event("livesdk_live_rankings_setting_result",e)},handleLiveMatureThemeMaskShow:e=>{u.f.event("livesdk_mature_theme_mask_show",e)},handleQuestionScanShow:e=>{u.f.event("livesdk_question_scan_show",e)},handleLeaderBoardFaqShow:e=>{u.f.event("livesdk_leaderboard_faq_show",e)},handleLeaderBoardShow:e=>{u.f.event("livesdk_leaderboard_show",e)},handleLeaderBoardDuration:e=>{u.f.event("livesdk_leaderboard_duration",e)},handleLiveRefreshRetryIconShow:e=>{u.f.event("livesdk_live_refresh_retry_icon_show",e)},handleLiveRefreshRetryIconClick:e=>{u.f.event("livesdk_live_refresh_retry_icon_click",e)},handleLivePreviewFail:e=>{u.f.event("livesdk_preview_play_fail",e)},handleLiveNonStreamingShow:e=>{u.f.event("livesdk_live_nonstreaming_show",e)},handleLiveRoomDraw:e=>{u.f.event("livesdk_live_draw",e)},handleLiveLeavePage:(e,n)=>{n?u.f.beconEvent("livesdk_live_leave_page",e):u.f.event("livesdk_live_leave_page",e)},handleLiveNonStreamingIMMsg:e=>{u.f.event("livesdk_live_nonstreaming_im_msg",e)},handleLiveMobileRelayToast:e=>{u.f.event("livesdk_open_on_computer_toast",e)},handleLiveAnchorCountDownSeiReceived:e=>{u.f.event("livesdk_anchor_count_down_sei_received",e)},handleBottomMessageGPPPAShow:e=>{u.f.event("livesdk_election_notice_tag_show",e)},handleBottomMessageGPPPAClick:e=>{u.f.event("livesdk_election_notice_tag_click",e)},handleLiveAIGCTagShow:e=>{u.f.event("view_live_aigc_label",e)},handleLiveAIGCTagClick:e=>{u.f.event("click_live_aigc_label",e)},handleLiveEndNextCancel:e=>{u.f.event("livesdk_webapp_live_end_next_cancel",e)}}},50289:(e,n,i)=>{i.d(n,{s:()=>d});var o=i(24643),t=i(62186),l=i(80574),a=i(72153);const r=(0,t.default)("span",{target:"e1aglo370"})((({width:e,height:n,style:i={},theme:{direction:o}})=>[(0,a.mp)({direction:o,marginStart:"4px"}),Object.assign(Object.assign({},i),{width:"number"==typeof e?`${e}px`:e,height:"number"==typeof n?`${n}px`:n})]),"label:SpanVerifyBadgeContainer;"),d=e=>(0,o.jsx)(r,Object.assign({},e,{children:(0,o.jsx)(l.V,{size:"number"==typeof e.width?e.width:void 0})}))},87905:(e,n,i)=>{i.d(n,{d:()=>c});var o=i(58632),t=i(24643),l=i(40099),a=i(62186);const r=(0,a.default)("div",{target:"eoeunh00"})((({checked:e,backgroundColor:n,width:i,height:o,theme:{colors:t}})=>({position:"relative",width:null!=i?i:"44px",height:null!=o?o:"24px",left:"0",top:"0",background:null!=n?n:e?"#0be09b":t.LineSecondary,borderRadius:"100px",transition:"all 0.4s cubic-bezier(0.075, 0.82, 0.165, 1)",":hover":{background:null!=n?n:e?"linear-gradient(0deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)), #0be09b":"rgba(22, 24, 35, 0.16)"}})),"label:DivSwitchWrapper;"),d=(0,a.default)("span",{target:"eoeunh01"})((({checked:e,height:n,width:i,backgroundColor:o,left:t})=>({position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",width:null!=i?i:"20px",height:null!=n?n:"20px",left:t,top:"50%",transform:e?"translate(-100%, -50%);":"translateY(-50%)",borderRadius:"100px",background:null!=o?o:"#fff",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.15)",transition:"all 0.4s cubic-bezier(0.075, 0.82, 0.165, 1)"})),"label:SpanSwitchIcon;"),s=(0,a.default)("button",{target:"eoeunh02"})((({theme:{colors:e,typography:n,fontFamilies:i}})=>[n.P2,{border:"none",background:"none",outline:"none",padding:0,position:"relative",overflow:"visible",display:"inline-flex",alignItems:"center",color:e.TextPrimary,fontFamily:i.TikTokFont,cursor:"pointer",":disabled":{cursor:"not-allowed",opacity:.34}}]),"label:ButtonSwitchContainer;"),c=function(e){var{className:n,style:i={},size:a="medium",width:c=44,height:v=24,padding:_=2,indicatorSize:u=20,indicatorColor:h,indicatorCheckedColor:f,indicatorUnCheckedColor:k,indicatorIcon:p,indicatorCheckedIcon:g,indicatorUnCheckedIcon:m,backgroundColor:b,backgroundCheckedColor:w,backgroundUnCheckedColor:y,content:S="",disabled:C=!1,checked:L,defaultChecked:R=!1,e2eData:I,ariaLabel:x,ariaLabelledby:O,ariaDescribedby:P,onChange:D}=e,A=(0,o.__rest)(e,["className","style","size","width","height","padding","indicatorSize","indicatorColor","indicatorCheckedColor","indicatorUnCheckedColor","indicatorIcon","indicatorCheckedIcon","indicatorUnCheckedIcon","backgroundColor","backgroundCheckedColor","backgroundUnCheckedColor","content","disabled","checked","defaultChecked","e2eData","ariaLabel","ariaLabelledby","ariaDescribedby","onChange"]);const[E,M]=(0,l.useState)(null!=L?L:R),j=null!=L?L:E,B=(0,l.useCallback)((e=>{null==e||e.stopPropagation(),null==D||D(!j,e),M(!j)}),[D,j]);return(0,l.useEffect)((()=>{M(null!=L?L:R)}),[R,L]),(0,t.jsx)(s,Object.assign({"data-e2e":I,type:"button",role:"switch",disabled:C,onClick:B,style:i,"aria-checked":j,"aria-label":x,"aria-labelledby":O,"aria-describedby":P,className:n},A,{children:(0,t.jsx)(r,Object.assign({checked:j,backgroundColor:j?null!=w?w:b:null!=y?y:b,width:`${c}px`,height:`${v}px`},{children:(0,t.jsx)(d,Object.assign({checked:j,backgroundColor:j?null!=f?f:h:null!=k?k:h,width:`${u}px`,height:`${u}px`,left:j?`calc(100% - ${_}px)`:`${_}px`},{children:j?null!=g?g:p:null!=m?m:p}))}))}))}},28086:(e,n,i)=>{i.d(n,{z:()=>_,I:()=>u});var o=i(58632),t=i(82231),l=i(71111),a=i(57432),r=i.n(a),d=i(40099),s=i(50296),c=i(44241),v=i(32125);function _(e){const n=(0,l.atom)(e.initState),i=(0,l.atom)((e=>e(n)),((i,t,...l)=>(0,o.__awaiter)(this,void 0,void 0,(function*(){let o;return o="action"in e?yield e.action({prevState:i(n),get:i},...l):yield e.fetchAction(i(n),...l),t(n,o),o}))));return i[c.d]=n,i[c.S]=e.rehydrationDataKey,i}function u(e,n){const{resetStateBeforeDispatch:i=!1,skipFirstClientDispatch:a=!0}=null!=n?n:{},_=e[c.S],u=e[c.d],[h,f,k]=_?(0,t.Dh)(_,null,{volatile:!0}):[null,r(),()=>null];!function(e){const n=(0,l.useStore)(void 0);(0,s.S)(n,e)}(h&&a?[[u,h]]:[]);const[p,g]=(0,l.useAtom)(e),m=(0,l.useSetAtom)(u),[b,w]=(0,d.useState)((()=>({isFetching:!1,rehydratedFromSSR:Boolean(h)}))),y=(0,d.useRef)(!0);(0,d.useEffect)((()=>()=>{i&&m(u.init)}),[]);const S=(0,d.useCallback)(((...e)=>(0,o.__awaiter)(this,void 0,void 0,(function*(){if(y.current&&a&&b.rehydratedFromSSR)return y.current=!1,p;w({isFetching:!0,rehydratedFromSSR:!1}),i&&m(u.init);const n=yield g(...e);return w({isFetching:!1,rehydratedFromSSR:!1}),n}))),[g]);return[(0,v.xb)(b,p),S,k]}}}]);