(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["15967"],{36807:function(e,t,l){var n=l(281148),i=l(745627);e.exports=function(e,t){if("function"!=typeof e)throw TypeError("Expected a function");return n(e,t=void 0===t?t:i(t))}},913485:function(e,t,l){"use strict";var n=l(678305),i=l(730084),o=l(697233);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var l=0;l0&&(r.textContent=i.ZP.format(n))):(o.innerHTML=s,n!==1/0&&n>0&&(r.innerHTML=i.ZP.format(n)))}}},{key:"onReset",value:function(){var e="flex"===this.mode?this.centerCurDom:this.timeDom,t="flex"===this.mode?this.centerDurDom:this.durationDom;this.config.smartRender?(this.state.currentTime=0,this.state.duration=0,e.textContent=i.ZP.format(0),t.textContent=i.ZP.format(0)):(e.innerHTML=i.ZP.format(0),t.innerHTML=i.ZP.format(0))}},{key:"createCenterTime",value:function(){var e=this.player;if(!!e.controls&&!!e.controls.center){var t=e.controls.center;this.centerCurDom=i.ZP.createDom("xg-icon","00:00",{},"xgplayer-time left"),this.centerDurDom=i.ZP.createDom("xg-icon","00:00",{},"xgplayer-time right"),t.children.length>0?t.insertBefore(this.centerCurDom,t.children[0]):t.appendChild(this.centerCurDom),t.appendChild(this.centerDurDom)}}},{key:"changeLiveState",value:function(e){e?(i.ZP.hide(this.durationDom),i.ZP.hide(this.timeDom),i.ZP.hide(this.find(".time-separator")),i.ZP.show(this.find(".time-live-tag"))):(i.ZP.hide(this.find(".time-live-tag")),i.ZP.show(this.find(".time-separator")),i.ZP.show(this.durationDom),i.ZP.show(this.timeDom))}},{key:"updateTime",value:function(e){if(this.isActiving=!0,(!!e||0===e)&&!(e>this.duration)){var t="flex"===this.mode?this.centerCurDom:this.timeDom;this.config.smartRender?(this.state.currentTime=e,t.textContent=i.ZP.format(e)):t.innerHTML=i.ZP.format(e)}}},{key:"resetActive",value:function(){var e=this,t=this.player,l=function(){e.isActiving=!1};this.off(n.kL,l),t.isSeeking&&t.video.seeking?this.once(n.kL,l):this.isActiving=!1}},{key:"destroy",value:function(){var e=this.player.controls.center;this.centerCurDom&&e.removeChild(this.centerCurDom),this.centerCurDom=null,this.centerDurDom&&e.removeChild(this.centerDurDom),this.centerDurDom=null}},{key:"render",value:function(){if(!this.config.disable)return'\n 00:00\n /\n 00:00\n '.concat(this.i18n.LIVE_TIP,"\n ")}}],f=[{key:"pluginName",get:function(){return"time"}},{key:"defaultConfig",get:function(){return{position:o.kd.CONTROLS_LEFT,index:2,disable:!1,smartRender:!1}}}],v&&a(c.prototype,v),f&&a(c,f),Object.defineProperty(c,"prototype",{writable:!1}),_}(o.ZP);t.Z=c},343475:function(e,t,l){"use strict";l.r(t),l.d(t,{Helmet:function(){return n}});let n=l(256555).Head},164814:function(e,t,l){"use strict";l.d(t,{u:function(){return m}}),l(362051);var n=l(101199),i=l(816565),o=l(426112),r=l(72878),a=l(855357),u=l(690301),d=l(638052),s=l(762167),c=l(499059),v=l(947383),f=l(290397);let m=e=>{let{awemeInfo:t,isActive:l,index:m}=e;(0,n.useEffect)(()=>{if(l&&(0===m&&c.Le.setConfig(c.gI.AdGapInfo,{ad_id:"",cid:"",time:new Date().getTime(),index:0}),t.rawAdData&&(0,i.hj)(t)||(0,o.Jt)(t))){var e,n;let l=c.Le.getConfig(c.gI.AdGapInfo),_=(0,o.Rx)(t);if((null==l?void 0:l.cid)===(null==_?void 0:_.creative_id)||m-((null==l?void 0:l.index)||0)-1<0)return;let h=(0,o.Rx)(t),g=null==h?void 0:null===(e=h.lynx_components)||void 0===e?void 0:e.find(e=>(null==e?void 0:e.lynx_type)===r.AD_FEED_TYPE),p=(null==g?void 0:null===(n=g.lynx_raw_data)||void 0===n?void 0:n.mixed_area_info)||{};t.awemeType===a.e.LiveCard&&(0,i.Do)(h)===u.nw.Swiper304&&(p=(null==h?void 0:h.card_data)||{});let w=new Date().getTime();(null==l?void 0:l.index)!==0&&d.logInstance.sendLog("adGapInfo",{cur_time_gap:w-((null==l?void 0:l.time)||0),cur_item_gap:(null==l?void 0:l.index)===0?0:m-((null==l?void 0:l.index)||0)-1,last_cid:null==l?void 0:l.cid,last_ad_id:null==l?void 0:l.ad_id,cid:null==_?void 0:_.creative_id,ad_id:null==_?void 0:_.ad_id,current_index:m,start_pos:m}),(0,s.E)("info_receive",{tag:(0,v.f)(),refer:f.tU.Card,ad_extra_data:JSON.stringify(p)}),c.Le.setConfig(c.gI.AdGapInfo,{ad_id:null==_?void 0:_.ad_id,cid:null==_?void 0:_.creative_id,time:w,index:m})}},[l,m])}},59677:function(e,t,l){"use strict";l.d(t,{I:function(){return r}});var n=l(101199),i=l(855357),o=l(600767);let r=e=>{let{awemeInfo:t,isActive:l}=e;(0,n.useEffect)(()=>{if(l){var e,n,r,a,u,d,s,c,v,f,m,_,h,g;(null==t?void 0:null===(n=t.webRawData)||void 0===n?void 0:null===(e=n.insertInfo)||void 0===e?void 0:e.item_id)&&(0,o.sk)({id:null==t?void 0:null===(a=t.webRawData)||void 0===a?void 0:null===(r=a.insertInfo)||void 0===r?void 0:r.item_id,taskId:null==t?void 0:null===(d=t.webRawData)||void 0===d?void 0:null===(u=d.insertInfo)||void 0===u?void 0:u.task_id,exposeLimit:null==t?void 0:null===(c=t.webRawData)||void 0===c?void 0:null===(s=c.insertInfo)||void 0===s?void 0:s.expose_limit,objectType:null==t?void 0:null===(f=t.webRawData)||void 0===f?void 0:null===(v=f.insertInfo)||void 0===v?void 0:v.object_type,authorId:(null==t?void 0:t.awemeType)===i.e.LiveCard?null==t?void 0:null===(h=t.cellRoom)||void 0===h?void 0:null===(_=h.rawdata)||void 0===_?void 0:null===(m=_.owner)||void 0===m?void 0:m.id_str:null==t?void 0:null===(g=t.authorInfo)||void 0===g?void 0:g.uid})}},[t,l])}},535440:function(e,t,l){"use strict";l.d(t,{J:function(){return r}});var n=l(101199),i=l(414061),o=l(601034);let r=e=>{let{index:t}=e;(0,n.useEffect)(()=>{i.emit(i.EVENT.FeedUpdateItemIndex,{scene:(0,o.yW)(),index:t})},[t])}},316914:function(e,t,l){"use strict";var n=l(320165);l(101199);var i=l(412383),o=l(712521);t.Z=e=>{let{children:t,mobileUrl:l,applicableDevice:r}=e,a=(0,i.Yr)();return(0,n.jsx)(o.$,{mobileUrl:l,nonce:a,applicableDevice:r,children:t})}},661063:function(e,t,l){"use strict";let n;l.d(t,{ce:function(){return eM}});var i=l("629686"),o=l("402748"),r=l("811603");l("679308");var a=l("320165"),u=l("101199"),d=l("116537"),s=l("913655"),c=l("721108"),v=l("356336"),f=l("855357"),m=l("967139"),_=l("690301"),h=l("257795"),g=l("620865"),p=l("499059"),w=l("649310"),y=l("73053"),I=l("607312"),x=l("778018"),E=l("913285"),C=l("479141"),b=l("799155"),S=l("377381"),T=l("164814"),L=l("535440");l("76375"),l("490629"),l("706056"),l("968336");var N=l("431940"),k=l.n(N),P=l("59850"),j=l("198412"),R=l.n(j),M=l("330548"),V=l("682839"),D=l("104891"),A=l("677655"),F=l("764283"),O=l("816565"),U=l("426112"),B=l("426038"),H=l("553145"),Z=l("147885"),z=l("618759"),G=l("558878"),W=l("601034"),q=l("995270"),K=l("414061"),Y=l("709705"),$=l("59412"),Q=l("332009"),J=l("838468"),X=l("205030"),ee=l("240952");let et=e=>e.defaultStream;var el=l("624508");let en={prfFirstFeedShow:{eventName:"prf_first_feed_show",params:{feed_total_duration:0,menu_total_duration:0,landing_page:"",is_landscape:0,group_id:"",vduration:0,if_invisible:"0",is_small_window:"0",real_index:0,is_cache_video:0,aweme_type:f.e.Normal,is_quick_player:0}},prfFirstFeedFirstFrameShow:{eventName:"prf_first_feed_first_frame_show",params:{feed_total_duration:0,landing_page:"",is_landscape:0,group_id:"",real_index:0,is_cache_video:0,aweme_type:f.e.Normal,is_quick_player:0}}};var ei=new el.h(en),eo=l("87897"),er=l("581999"),ea=l("38397");let eu=e=>{let t=(0,u.useContext)(s.qd);if(void 0===t)throw Error("roomStore must be used within Provider");return(0,M.oR)(t,e)},ed=()=>{try{if(p.Le.getConfig(p.gI.MarkFirstEnter)){var e,t,l,n,i,o,r,a;p.Le.setConfig(p.gI.MarkFirstEnter,!1),(0,z.DT)()?(0,G.sE)({awemeType:f.e.LiveCard}):(null===(t=performance)||void 0===t?void 0:null===(e=t.timing)||void 0===e?void 0:e.fetchStart)&&ei.sendLog("prfFirstFeedShow",{feed_total_duration:Date.now()-(null===(a=performance)||void 0===a?void 0:null===(r=a.timing)||void 0===r?void 0:r.fetchStart),landing_page:(0,W.yW)(),if_invisible:(0,q.Vr)()?"1":"0",is_small_window:(0,q.QD)()?"1":"0",aweme_type:f.e.LiveCard}),ei.sendLog("prfFirstFeedFirstFrameShow",{feed_total_duration:Date.now()-(null===(n=performance)||void 0===n?void 0:null===(l=n.timing)||void 0===l?void 0:l.fetchStart),landing_page:(0,W.yW)(),aweme_type:f.e.LiveCard}),((null===(i=p.Le.getConfig(p.gI.AbtestData))||void 0===i?void 0:i.prefetchFirst)||(null===(o=p.Le.getConfig(p.gI.AbtestData))||void 0===o?void 0:o.prefetchFirstServer))&&K.emit(K.EVENT.firstLoadMore)}}catch(e){}},es=e=>{var t,l;let{guide_text:n,enable:i,cover:o,highlight_id_str:r,highlight_type:a,video_id:u,video_url:d,duration:s="15"}=(null==e?void 0:null===(t=e.preview_expose)||void 0===t?void 0:t.preview_high_light)||{};return{guideText:n||"",enable:i||!1,cover:(null==o?void 0:null===(l=o.url_list)||void 0===l?void 0:l[0])||"",hightLightId:r||"",hightLightType:a||"",videoId:u||"",videoUrl:d||"",duration:Number(s)||15}},ec=(e,t,l)=>{let{highlight_id_str:n="",video_url:i=""}=e||{};return ea.cj.has(`${l}-${n}`)||"recommend"===t&&(0,ea.qN)(t)||"recommend"!==t&&"follow"!==t||!i?ee.kV.NORMAL:"follow"===t?ee.kV.HIGHLIGHT:"recommend"===t?ee.kV.SMALL_HIGHLIGHT:ee.kV.NORMAL},ev=(0,u.memo)(e=>{var t,l,n,o,r,d,s,c,v,f,m,_,h,g,w,y,I,x,E,C,b,S,T,L,N,j,M,z,G,W,q,el,en,ei,ea,ev;let ef,em,e_,eh,eg,ep;let{item:ew,isActive:ey,fullScreenTarget:eI,isFullScreen:ex,forceSwiperUpdate:eE,loggerOptions:eC,playNextFunc:eb,playPrevFunc:eS,swiper:eT,isFirst:eL,deleteCurrentSwiper:eN,from:ek,tab:eP,LiveChildComponent:ej,isVideoSupportMP4:eR,isShowGuide:eM,useNewUserSoundGuide:eV,index:eD,onReady:eA,isNext:eF}=e,{userInfo:eO,dispatch:eU}=(0,er.useUserInfoContext)()||{userInfo:{}},[eB,eH]=(0,u.useState)(""),eZ=(0,u.useRef)(null),{isLogin:ez}=eO||{},eG=(0,eo._)(),[eW,eq]=(0,u.useState)(!1),[eK,eY]=(0,u.useState)(Q.s.getIsPageFullscreen()||!1),[e$,eQ]=(0,u.useState)(""),[eJ,eX]=(0,u.useState)(0===eD),e0=(0,P.Z)(()=>null==eU?void 0:eU({type:"updateUserInfo"})),e1=null==ew?void 0:null===(t=ew.cellRoom)||void 0===t?void 0:t.rawdata,e2=ew.rawAdData&&(0,O.hj)(ew)?(0,U.Rx)(ew):null,e3=(0,U.Gu)(ew);null==e1||null===(l=e1.scene_type_info)||void 0===l||l.commentary_type;let e6=null==e1?void 0:e1.stream_url;try{let{options:e,stream_data:t}=e6.live_core_sdk_data.pull_data,l=R()(e,"default_quality",{}),n=JSON.parse(t),i=null==n?void 0:n.data,o=et({abtestData:eG,streamUrl:e6,streamData:i,defaultStream:null==l?void 0:l.sdk_key});eg=null==n?void 0:null===(G=n.common)||void 0===G?void 0:G.sessionId,ep=null==n?void 0:null===(W=n.common)||void 0===W?void 0:W.secret_key,ef=(0,A.f)(i[o].main.flv),em=(0,A.f)(i[o].main.hls),e_=JSON.parse(null!==(en=null==i?void 0:null===(el=i[o])||void 0===el?void 0:null===(q=el.main)||void 0===q?void 0:q.sdk_params)&&void 0!==en?en:{}).vbitrate,!ef&&F.kg.info("upload stream info if get flv failed",n),eh=(null==eG?void 0:eG.liveUseArea)===1?Object.keys(i).filter(e=>"ao"!==e).map(e=>{let t;try{t=JSON.parse(i[e].main.sdk_params)}catch(e){t={resolution:"0x0"}}return{quality:e,resolution:t.resolution,url:(0,A.f)(i[e].main.flv)}}):null}catch(e){F.kg.error("parse Stream error",e)}let e4="number"==typeof(null==e1?void 0:e1.owner_user_id)?k().stringify(null==e1?void 0:e1.owner_user_id):"object"==typeof(null==e1?void 0:e1.owner_user_id)?null==e1?void 0:e1.owner_user_id.valueOf():null==e1?void 0:e1.owner_user_id,e9=(null==ew?void 0:ew.libfinsertTaskId)||"0",e5=(null==ew?void 0:ew.liveReason)||"",e8=(null==e1?void 0:null===(n=e1.room_view_stats)||void 0===n?void 0:n.is_hidden)?"":null==e1?void 0:null===(o=e1.room_view_stats)||void 0===o?void 0:o.display_short,e7=1===Number(null!==(ei=null==e1?void 0:null===(d=e1.ecom_data)||void 0===d?void 0:null===(r=d.room_cart_v2)||void 0===r?void 0:r.show_cart)&&void 0!==ei?ei:null==e1?void 0:null===(s=e1.room_cart)||void 0===s?void 0:s.show_cart),te="";try{te=null===(ea=JSON.parse(null==ew?void 0:ew.logPb))||void 0===ea?void 0:ea.impr_id}catch(e){te=""}let tt=(0,u.useCallback)(()=>{if(!e$)eb()},[eb,e$]),tl=(0,u.useCallback)(()=>{if(!e$)eS()},[eS,e$]);(0,u.useEffect)(()=>{if(ey){var e;eq(!!Number(null!==(e=(0,Y.$o)(B.LocalStorageKeys.PLAYER_NEXT_AUTOPLAY))&&void 0!==e?e:0))}},[ey]),(0,u.useEffect)(()=>{let e=K.listen(K.EVENT.videoPause,e=>{var t;let l=location.pathname||"",n=l.includes("/live/")&&!l.startsWith("/live/");if((null==e?!void 0:!e.isInChildRoute)||!n)null===(t=eZ.current)||void 0===t||t.pause()});return()=>{null==e||e()}},[]),(0,u.useEffect)(()=>{let e=K.listen(K.EVENT.pageFullScreen,e=>{let{fullScreen:t}=e;ey&&(null===p.Le||void 0===p.Le||p.Le.setConfig(p.gI.IsPageFullScreen,{type:t||!1})),eY(t||!1)});return()=>{null==e||e()}},[ey]),(0,u.useEffect)(()=>{null==eA||eA()},[]),(0,u.useEffect)(()=>{ey&&!eG.volumeBalanceControl&&(0,J.QU)()},[ey,eG]);let tn=eu(e=>e.setMessageInstance),ti=eu(e=>e.destroy);(0,u.useEffect)(()=>(tn(new H.v0C),()=>{ti&&ti()}),[]),(0,u.useEffect)(()=>{let e=K.listen(K.EVENT.LynxAutoEnterLive,e=>{let{roomId:t}=e;eH(t)});return()=>{null==e||e()}},[]);let to={adData:e2,currentIndex:eD,isHardAd:e3,isInsertAd:null==ew?void 0:null===(v=ew.webRawData)||void 0===v?void 0:null===(c=v.insertInfo)||void 0===c?void 0:c.is_ad,anchorId:e4,roomId:null==e1?void 0:null===(m=e1.owner)||void 0===m?void 0:null===(f=m.own_room)||void 0===f?void 0:f.room_ids_str[0],webRid:null==e1?void 0:null===(_=e1.owner)||void 0===_?void 0:_.web_rid,secUid:null==e1?void 0:null===(h=e1.owner)||void 0===h?void 0:h.sec_uid,flvSrc:ef,hlsSrc:em,bitrate:e_,resolutions:eh,sessionId:eg,insertTaskId:e9,liveReason:e5,userCount:e8,cover:null==e1?void 0:null===(w=e1.cover)||void 0===w?void 0:null===(g=w.url_list)||void 0===g?void 0:g[0],episodeExtra:null==e1?void 0:e1.episode_extra,gameName:"",isEnd:(null==e1?void 0:e1.status)!==2,playMode:ec(null==e1?void 0:null===(y=e1.preview_expose)||void 0===y?void 0:y.preview_high_light,eP,null==e1?void 0:null===(E=e1.owner)||void 0===E?void 0:null===(x=E.own_room)||void 0===x?void 0:null===(I=x.room_ids_str)||void 0===I?void 0:I[0]),highLightInfo:es(e1),logParams:{enter_from_merge:ee.j4.get(ek),is_aweme_tied:ez?1:0,request_id:te,stream_type:null!==(ev=X.PY[null==e1?void 0:null===(C=e1.stream_url)||void 0===C?void 0:C.stream_orientation])&&void 0!==ev?ev:"other"},loggerOptions:eC,userName:null==e1?void 0:null===(b=e1.owner)||void 0===b?void 0:b.nickname,title:null==e1?void 0:e1.title,isLogReady:!!ez,isActive:ey,isNext:eF,fullScreenRoot:eI,isFullScreen:ex,isPageFullScreen:eK,onFullScreenChange:eE,next:eb,prev:eL?void 0:eS,sceneId:Z.U[ee.mB.get(ek)],from:ek,isAutoNext:eW,swiper:eT,width:null==e1?void 0:null===(T=e1.stream_url)||void 0===T?void 0:null===(S=T.extra)||void 0===S?void 0:S.width,height:null==e1?void 0:null===(N=e1.stream_url)||void 0===N?void 0:null===(L=N.extra)||void 0===L?void 0:L.height,tab:eP,onAutoNextChange:()=>{eq(e=>(localStorage.setItem("player_nextautoplay",e?"0":"1"),!e))},ref:eZ,deleteCurrentSwiper:eN,abtestData:eG,isShowCartInFeed:e7,userInfo:eO,onLoginSuccess:e0,followInfo:null==e1?void 0:null===(j=e1.owner)||void 0===j?void 0:j.follow_info,rawdata:e1,paidLiveData:null==e1?void 0:e1.paid_live_data,onLoadStart:()=>{K.emit(K.EVENT.pageFirstFrameLoadStart)},onLoaded:()=>{K.emit(K.EVENT.pageFirstFrameLoaded),ey&&!eB&&K.emitAfterListen(K.EVENT.showDouyinWindow,{from:"live"}),eL&&ed(),eX(!1)},onInnerText:e=>{eQ(e)},secretKey:ep,isCarnival:(null==e1?void 0:null===(M=e1.assist_label)||void 0===M?void 0:M.label_type)===82,isVideoSupportMP4:eR,roomInfo:e1,isShowGuide:eM,useNewUserSoundGuide:eV,dispatch:eU,seasonId:null==e1?void 0:null===(z=e1.episode_extra)||void 0===z?void 0:z.season_id_str,autoEnterRoomId:eB,originData:ew};return(0,u.useEffect)(()=>{if(ey){var e,t;null===(t=eZ.current)||void 0===t||null===(e=t.setUserActive)||void 0===e||e.call(t,!0)}},[ey]),(0,u.useEffect)(()=>{if(ey&&eT){try{null==eT||eT.on("changeNext",tt),null==eT||eT.on("changePrev",tl)}catch(e){}return()=>{try{var e,t;null==eT||null===(e=eT.off)||void 0===e||e.call(eT,"changeNext",tt),null==eT||null===(t=eT.off)||void 0===t||t.call(eT,"changePrev",tl)}catch(e){}}}},[ey,tt,tl]),(0,$.M)(),(0,u.useEffect)(()=>{!ey&&eX(!1)},[ey]),(0,a.jsx)(V.k,{componentName:D.l.LIVE_CARD_IN_MIX_PLAYER,children:(0,a.jsx)(ej,(0,i._)({},to))})});var ef=l("469935"),em=l.n(ef),e_=l("466442"),eh=l("118616"),eg=l("250532"),ep=l("191825"),ew=l("624386"),ey=l.p+"media/avatar-live.6d9d24793b6e5c67.png";let eI=(0,u.forwardRef)((e,t)=>(0,a.jsxs)("svg",(0,o._)((0,i._)({width:373,height:33,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,a.jsx)("path",{d:"M365.69 20.879v9.182h-3.734V20.88h-8.387l-.306-3.184h8.693v-6.427h-3.888a47.403 47.403 0 0 1-1.591 4.224h-3.52c1.561-3.765 2.51-7.04 3.183-11.08h3.459a62.116 62.116 0 0 1-.674 3.672h3.031v-5.57h3.734v5.57h6.183v3.184h-6.183v6.427h7.009v3.184h-7.009zm-17.722-7.775h1.652c1.378 0 2.143.765 2.143 2.143V30.06h-3.734V15.34h-2.479l-1.133-3.276c3.214-2.785 4.867-6.152 5.693-9.55h3.949c-1.041 4.561-2.786 7.99-6.091 10.591zM334.592 26.266h7.346v3.06h-18.243l-.306-3.06h7.53v-3.857h-5.694l-.336-3.03h6.03v-3.03h3.673v3.03h6.029v3.03h-6.029v3.857zm0-13.713h7.162v3.061H324.43l-.306-3.06h6.795V9.4h-5.571l-.306-3.061h5.877V2.514h3.673V6.34h5.876V9.4h-5.876v3.153zm-13.499 6.03v8.356c0 1.5-1.01 2.724-2.724 2.816-1.194.062-2.081 0-3.122-.275l-.826-3.183c.795.275 1.408.336 2.142.275.582-.061.98-.367.98-.918v-6.367l-3.245.674-.52-3.306 3.765-.674v-5.479h-3.092l-.306-3.122h3.398V2.636h3.55V7.38h2.847v3.122h-2.847v4.837l2.786-.52v3.183l-2.786.581zM303.279 26.266h2.602c.275 0 .459-.184.459-.46V12.738c0-.276-.184-.46-.459-.46h-2.602v13.989zm-3.612 0v-2.938h-4.468v2.938h4.468zm0-5.969v-2.51h-4.468v2.51h4.468zm0-5.54v-2.48h-4.468v2.48h4.468zm-2.479-8.172l-.918 2.51h11.294c1.47 0 2.449.979 2.449 2.448V27c0 1.47-.979 2.45-2.449 2.45h-20.262c-1.47 0-2.449-.98-2.449-2.45V11.543c0-1.469.979-2.448 2.449-2.448h4.928l.887-2.51h-9.152l-.306-3.184h27.548v3.184h-14.019zm-5.601 19.68V12.279h-2.602c-.275 0-.459.183-.459.459v13.07c0 .275.184.459.459.459h2.602zM274.782 14.91h-15.885v1.01c0 .276.153.46.459.46h14.967c.306 0 .459-.184.459-.46v-1.01zm0-2.602v-1.01c0-.275-.153-.459-.459-.459h-14.967c-.306 0-.459.184-.459.46v1.01h15.885zm-2.938 11.02c2.051 1.683 4.775 2.693 8.907 3.428l-.857 3.122c-4.897-1.194-8.785-2.816-11.233-5.847v6.06h-3.673v-6.06c-2.173 2.786-5.693 4.622-11.325 5.877l-.827-3.152c4.071-.582 6.795-1.684 8.938-3.428h-8.203l-.306-2.816h11.723v-1.44h-7.377c-1.714 0-2.449-.979-2.449-2.448v-6.03c0-1.469.735-2.448 2.449-2.448h6.918V2.514h3.55V4.32h11.784v2.693h-11.784v1.133h7.989c1.714 0 2.449.98 2.449 2.448v6.03c0 1.47-.735 2.449-2.449 2.449h-7.407v1.439h11.692v2.816h-8.509zM208.393 5.88V2.576l6.55 2.05v3.306l-6.55-2.05zm-1.041 7.04V9.616l6.55 2.05v3.306l-6.55-2.05zm-.061 17.11a58.236 58.236 0 0 0 3.459-12.549h3.673c-.613 4.194-1.592 8.356-3.184 12.55h-3.948zM226.85 6.524h-3.735v-4.01h3.735v4.01zm0 19.253h8.141v3.183h-20.048l-.245-3.183h8.417V19.44h-6.55l-.275-3.183h6.825v-5.724h-7.162l-.276-3.183h18.764v3.183h-7.591v5.724h6.856v3.183h-6.856v6.336zM186.844 6.83h-3.795l-1.653-4.316h3.734l1.714 4.315zm10.499.948h5.479v3.184H192.17v4.346h11.448v3.183H192.69c1.408 3.122 4.928 6.091 11.571 7.959l-.98 3.611c-6.55-1.897-10.529-4.744-12.764-8.264-2.142 3.459-6.427 6.428-13.223 8.234l-.979-3.581c7.254-2.051 10.59-5.05 11.692-7.959h-10.835l-.276-3.183h11.54v-4.346h-10.499l-.275-3.184h15.824l1.898-5.264h3.918l-1.959 5.264zM163.153 21.032l-2.234-7.713h3.55l2.235 7.713h-3.551zm1.439-15.213h5.632c1.53 0 2.295.398 2.357 2.235.183 4.713.183 13.62-.245 18.15-.184 1.96-1.194 3.092-3.03 3.337-1.714.245-3.673.122-5.479-.214l-.796-3.03c1.591.336 3.275.459 4.867.244.673-.06 1.01-.398 1.071-1.071.275-4.346.337-11.509.306-16.161-.031-.337-.184-.429-.429-.429h-5.356c-.979 2.112-2.387 4.163-4.224 6.214l-1.194-4.132c2.02-2.296 3.337-5.602 3.612-8.418h3.459c-.092 1.102-.245 2.204-.551 3.275zm-10.193 12.887h-4.346v6.58c0 .276.184.46.459.46h3.428c.276 0 .459-.184.459-.46v-6.58zm0-3V9.86c0-.276-.183-.46-.459-.46h-3.428c-.275 0-.459.184-.459.46v5.846h4.346zm-1.163-9.427h2.204c1.592 0 2.449.857 2.449 2.448V26.42c0 1.592-.857 2.449-2.449 2.449h-6.428c-1.591 0-2.449-.857-2.449-2.45V8.729c0-1.592.858-2.45 2.449-2.45h.918l.704-3.764h3.337l-.735 3.765zM141.483 9.156h-3.612L136.004 3.4h3.55l1.929 5.755zm-4.653 14.11c.214.49.429.98.673 1.408.949 1.714 2.449 2.173 5.541.919l-.704 3.887c-4.439 1.438-6.275.214-7.806-2.357a9.06 9.06 0 0 1-.734-1.439c-1.99 1.316-4.224 2.327-6.673 3.03l-1.041-3.428c2.602-.734 4.775-1.775 6.551-3.06-.612-2.357-1.102-5.326-1.47-8.969h-6.335v3.398l4.254-.735v3.214l-4.254.765v6.06c0 2.572-1.255 3.919-3.643 4.133-1.408.122-2.724 0-3.765-.153l-.826-3.245c1.132.215 2.326.337 3.52.215.643-.062 1.041-.49 1.041-1.347v-4.99l-5.265.95-.674-3.214 5.939-1.01v-4.04h-5.51l-.337-3.184h5.847V7.197h-4.408l-.306-3.245h5.111c2.143 0 4.622-.275 6.642-.887V6.4c-.979.275-2.142.46-3.366.612v3.061h6.029c-.03-.582-.091-1.163-.122-1.775l-.398-5.785h3.673l.337 5.662c.03.643.092 1.286.122 1.898h8.111v3.183h-7.835c.214 2.388.52 4.438.918 6.244 1.347-1.591 2.296-3.336 2.847-5.08h3.764c-1.163 3.55-3.03 6.488-5.448 8.845zM57.768 26.633c0 1.653-.826 2.449-2.479 2.449h-6.244c-1.653 0-2.48-.796-2.48-2.449V7.625c0-1.653.827-2.448 2.48-2.448h6.244c1.653 0 2.48.795 2.48 2.448v19.008zm-7.59-1.194c0 .306.153.46.459.46h3.06c.306 0 .46-.154.46-.46V8.82c0-.306-.153-.46-.46-.46h-3.06c-.306 0-.46.154-.46.46v16.62zM37.965 6.34h3.979c1.653 0 2.357.797 2.448 2.45.276 5.478.276 12.304 0 17.875-.091 1.928-1.255 3.06-3.213 3.152-1.164.062-2.48 0-3.612-.275l-.857-3.183c1.01.245 2.112.367 3.122.275.643-.061.949-.398.98-1.01.336-4.744.244-11.019 0-15.64-.031-.338-.154-.46-.46-.46h-2.387c-.03 9.274-1.102 14.876-4.133 20.538h-3.948C33.098 23.91 34.2 19.042 34.23 9.523h-2.877l-.275-3.183h3.152V2.514h3.735V6.34zM25.384 26.633l-1.407-6.58h3.03l1.438 6.58h-3.06zm-4.59 0l-1.378-6.948h3.06l1.44 6.948h-3.123zm-13.132-.428l2.326-6.397h3.122l-2.142 6.397H7.662zm11.111.826c0 1.837-1.04 2.786-2.663 2.847-1.071.03-3-.061-4.132-.398l-.46-2.847c.797.215 2.174.276 2.756.276.55 0 .918-.337.918-.857v-10.07h3.581v11.05zM.653 13.563V10.35l6.09 1.928v3.214l-6.09-1.929zm.949-7.131V3.218L7.6 5.024v3.214l-6-1.806zM.01 29.663c1.745-3.764 2.816-7.346 3.428-10.896H7.05a45.04 45.04 0 0 1-3.183 10.896H.01zm21.793-17.66c1.53 1.836 3.887 3.244 6.642 4.315l-1.193 3.55c-4.347-1.774-7.683-4.621-9.152-7.866h-.643c-1.653 3.245-4.53 5.632-9.734 8.05l-.98-3.55c2.878-1.163 5.082-2.54 6.612-4.5H8.213l-.306-3.06h7.07c.276-.735.46-1.5.582-2.357H9.744l-.307-3.061h16.927v3.06H19.2a24.261 24.261 0 0 1-.55 2.358h9.213v3.06h-6.06z",fill:"#fff"}),(0,a.jsx)("g",{filter:"url(#title_svg__filter0_b_1538_13540)",children:(0,a.jsx)("rect",{x:75.102,y:".5",width:32,height:32,rx:8,fill:"#fff",fillOpacity:".16"})}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M90.402 9.774a2.8 2.8 0 1 0 0 5.6 2.8 2.8 0 0 0 0-5.6zm-5.2 2.8a5.2 5.2 0 1 1 4.66 5.172 1.202 1.202 0 0 1-.261.028c-1.361 0-2.655.67-3.634 1.756a6.205 6.205 0 0 0-1.416 2.644H88a1.2 1.2 0 1 1 0 2.4h-4.8a1.2 1.2 0 0 1-1.2-1.2c0-1.995.85-3.973 2.184-5.451a8.043 8.043 0 0 1 2.39-1.828 5.181 5.181 0 0 1-1.373-3.521zm15.682 7.214a1.2 1.2 0 0 0-1.764-1.627l-3.952 4.282-1.917-1.917a1.2 1.2 0 0 0-1.697 1.697l2.8 2.8a1.2 1.2 0 0 0 1.73-.035l4.8-5.2z",fill:"#fff"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("filter",{id:"title_svg__filter0_b_1538_13540",x:48.435,y:-26.167,width:85.333,height:85.333,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,a.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,a.jsx)("feGaussianBlur",{in:"BackgroundImageFix",stdDeviation:13.333}),(0,a.jsx)("feComposite",{in2:"SourceAlpha",operator:"in",result:"effect1_backgroundBlur_1538_13540"}),(0,a.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_backgroundBlur_1538_13540",result:"shape"})]})})]})));var ex={container:"Uk5IjzQW",content:"Q5590xGH",title:"SJh7WSIV",subTitle:"mTTy3Wqr",list:"_iLPjxuD",buttons:"ENnZ74eP",btn:"dP2ztkQe",enter:"rubz0Ucr",noLike:"GCuXtuxe",video:"MLmubNGk",followItem:"ZlSkCYU8",avatarWrap:"GoYErIfk",avatarImgWrap:"fAevT2aE",animation:"T0Zk4ekS",avatarImg:"KtTgs8OH",liveBorder:"HZpkZhvC",liveBorderAnimation:"dtNxPgrC",liveImg:"rwV2Gg6P",userName:"fqd8q4LA",userLabel:"HklAANuQ",opacity90:"_whB824u",opacity50:"scHssrIm",opacity20:"hlJ5h6XO",hide:"Uqib5mhv",showAnimation:"vsENeJO1"},eE=e=>{var t;let{infoList:l,isActive:n,swiper:i,onPrev:o,deleteCurrentSwiper:r}=e,{isFullScreen:d=!1,isCssFullScreen:s=!1}=null!==(t=(0,u.useContext)(w.C))&&void 0!==t?t:{},{onAddFollowWidget:c,onCloseGuide:v,onShowGuide:f,onDislikeGuide:m}=(0,ew.e)({type:"follow"}),[_,h]=(0,u.useState)(!1),g=(0,u.useRef)(null),p=(0,u.useRef)(null),y=(0,u.useRef)(),I=(0,e_.D)(()=>{clearTimeout(g.current),r(),null==o||o(),v()},400,{leading:!0,trailing:!1}),x=(0,e_.D)(()=>{clearTimeout(g.current),r(),v()},400,{leading:!0,trailing:!1}),E=()=>{if(n&&y.current){var e;y.current.muted=!!Number(localStorage.getItem(B.LocalStorageKeys.PLAYER_IS_MUTE)),y.current.volume=Number(null!==(e=localStorage.getItem(B.LocalStorageKeys.PLAYER_VOLUME))&&void 0!==e?e:.3),y.current.play()}};return(0,u.useEffect)(()=>{var e,t,l;n&&f(),n&&y.current?(y.current.muted=!!Number(localStorage.getItem(B.LocalStorageKeys.PLAYER_IS_MUTE)),y.current.volume=Number(null!==(t=localStorage.getItem(B.LocalStorageKeys.PLAYER_VOLUME))&&void 0!==t?t:.3),null===(e=y.current)||void 0===e||e.play()):null===(l=y.current)||void 0===l||l.pause()},[n]),(0,u.useEffect)(()=>{if(n){(0,eg.o)({pauseCustomShortcut:!0,pauseGlobalShortcut:!0,pausePlayControlShortcut:!0},"followWidgetCard"),g.current=setTimeout(()=>{x()},15e3),p.current=setTimeout(()=>{h(!0)},200);try{null==i||i.on("changeNext",x),null==i||i.on("changePrev",I)}catch(e){}return()=>{try{var e,t;null==i||null===(e=i.off)||void 0===e||e.call(i,"changeNext",x),null==i||null===(t=i.off)||void 0===t||t.call(i,"changePrev",I)}catch(e){}clearTimeout(g.current),clearTimeout(p.current),(0,eg.m)("followWidgetCard")}}},[I,x,n]),(0,u.useEffect)(()=>{let e=K.listen(K.EVENT.videoPause,()=>{var e;null===(e=y.current)||void 0===e||e.pause()});return()=>{e()}},[]),(0,a.jsxs)("div",{className:em()(ex.container),children:[(0,a.jsx)("video",{loop:!0,ref:e=>{y.current=e,E()},src:"https://lf3-static.bytednsdoc.com/obj/eden-cn/ild_jw_upfbvk_lm/ljhwZthlaukjlkulzlp/follow/follow-widget-card.mp4",className:ex.video}),(0,a.jsxs)("div",{className:em()(ex.content,_?ex.showAnimation:ex.hide),children:[(0,a.jsx)("div",{className:em()(ex.title),children:(0,a.jsx)(eh.Z,{src:eI,width:373,height:33,viewBox:"0 0 373 33"})}),(0,a.jsx)("div",{className:em()(ex.subTitle),children:"便捷查看关注的人开播、作品更新等动态"}),(0,a.jsx)("div",{className:em()(ex.list),children:(l||[]).map((e,t)=>(0,a.jsxs)("div",{className:em()(ex.followItem,2===t&&ex.opacity90,3===t&&ex.opacity50,4===t&&ex.opacity20),children:[(0,a.jsxs)("div",{className:em()(ex.avatarWrap),children:[e.isLive&&(0,a.jsx)("div",{className:em()(ex.liveBorder)}),e.isLive&&(0,a.jsx)("div",{className:em()(ex.liveBorder,ex.liveBorderAnimation)}),(0,a.jsxs)("div",{className:em()(ex.avatarImgWrap,e.isLive&&ex.animation),children:[e.isLive&&(0,a.jsx)("img",{className:em()(ex.liveImg),src:ey}),e.avatarImg?(0,a.jsx)("img",{className:em()(ex.avatarImg),src:e.avatarImg}):null,e.avatarSvg?(0,a.jsx)(eh.Z,{className:em()(ex.avatarImg),src:e.avatarSvg,width:32,height:32,viewBox:"0 0 32 32"}):null]})]}),(0,a.jsx)("div",{className:em()(ex.userName),children:e.userName}),(0,a.jsx)("div",{className:em()(ex.userLabel),children:e.userLabel})]},e.userName))}),(0,a.jsxs)("div",{className:ex.buttons,children:[(0,a.jsx)("div",{className:em()(ex.btn,ex.enter),onClick:()=>{var e;null===(e=y.current)||void 0===e||e.pause(),r(),c()},children:"立即添加"}),(0,a.jsx)("div",{className:em()(ex.btn,ex.noLike),onClick:()=>{var e;null===(e=y.current)||void 0===e||e.pause(),r(),m()},children:"不感兴趣"})]})]}),(d||s)&&(0,a.jsx)(ep.I,{playPrevFunc:I,playNextFunc:x,className:em()("filter-bg")})]})};let eC=(n=null,()=>{try{if(n)return n;return(n=Promise.all([l.e("41162"),l.e("15799"),l.e("84813"),l.e("42794"),l.e("44077"),l.e("24882"),l.e("73481"),l.e("11043"),l.e("465")]).then(l.bind(l,511490)).then(e=>({default:e.LiveSliderCard}))).catch(()=>n=null),n}catch(e){}});var eb=l("59677"),eS=l("687581");let eT=e=>{let{awemeInfo:t,isActive:l}=e;(0,u.useEffect)(()=>{if(l){var e,n;let{item_id:l,task_id:i,is_ad:o,object_type:r,expose_limit:a}=null!==(n=null==t?void 0:null===(e=t.webRawData)||void 0===e?void 0:e.insertInfo)&&void 0!==n?n:{};l&&eS.oe.event.error({name:eS.Mo.AdminInsertExpose,report:{itemId:l,taskId:i,isAd:o,objectType:r,exposeLimit:a}})}},[t,l])},eL=(0,u.lazy)(()=>Promise.resolve().then(l.bind(l,861942)).then(e=>({default:e.LiveSmallWindow}))),eN=(0,u.lazy)(eC),ek=e=>{let{children:t}=e,l=(0,r._)(e,["children"]);return(0,a.jsx)(s.qd.Provider,(0,o._)((0,i._)({},l),{children:t}))},eP=(0,u.memo)(e=>{let t=(0,eo._)(),l=(0,er.useUserInfoContext)(),{from:n,videoRef:r,InnerPlayer:u,item:s}=e;return(0,d.C)(x.w3.components.video_player),(0,a.jsx)(y.Z,(0,o._)((0,i._)({},e),{isMultiInstanceScene:!0,ref:r,InnerPlayer:u,LiveSliderCard:eL,slardarInstance:b.oe,customProps:{userContext:l,abtestData:t,logParams:{video_mode:"landscape",enter_from:ee.yW.get(n),tab_name:ee.yW.get(n)},showRelatedCardEntry:!1,showRelatedCardGuide:!1,showTopicAndMusicCard:!1,showMixCard:!1,showMixCardEntry:!1,tab:ee.yW.get(n)}}))}),ej=(0,u.memo)(e=>{var t,l,n,r,f,m,_;let p=null!==(_=null==e?void 0:null===(r=e.item)||void 0===r?void 0:null===(n=r.cellRoom)||void 0===n?void 0:null===(l=n.rawdata)||void 0===l?void 0:null===(t=l.owner)||void 0===t?void 0:t.web_rid)&&void 0!==_?_:null,w=(0,eo._)(),{Currency:y}=h,{rechargeConfig:I}=(0,g.K)(),E=(0,u.useMemo)(()=>(0,s.Lj)(null!=p?p:"-1")(),[p]);(0,d.C)(x.w3.components.live_player);let b=(0,u.useMemo)(()=>{var t;return(0,o._)((0,i._)({},e),{loggerOptions:(0,i._)({scene:c.C.liveSlider},null!==(t=null==e?void 0:e.loggerOptions)&&void 0!==t?t:{})})},[e]);return(null==w?void 0:null===(f=w.previewEnterRoom)||void 0===f?void 0:f.value)===v.PreviewEnterRoomLib.Alpha||(null==w||null===(m=w.previewEnterRoom)||void 0===m||m.value,v.PreviewEnterRoomLib.Beta),e.tab,(0,a.jsx)(y.Provider,{value:I,children:(0,a.jsxs)(ek,{value:E,children:[(0,a.jsx)(C.p,{isActive:null==e?void 0:e.isActive}),(0,a.jsx)(u.Suspense,{children:(0,a.jsx)(ev,(0,o._)((0,i._)({},b),{LiveChildComponent:eN}))})]},p)})}),eR=e=>{(0,eo._)();let{fullScreenTarget:t}=(0,u.useContext)(w.C),{changeSplashAdStatus:l}=(0,S.K)(e=>{let{changeSplashAdStatus:t}=e;return{changeSplashAdStatus:t}}),{item:n,isActive:r,isFirst:a,isNext:s}=e;if((0,d.C)(x.w3.components.mixplayer),r){let e=!!(r&&(null==n?void 0:n.awemeType)===f.e.LiveCard);p.Le.setConfig(p.gI.HasLiveContent,e)}(0,u.useLayoutEffect)(()=>{a&&(n.awemeType!==f.e.Normal||!(0,m.p)(n))&&(null==l||l(_.QB.Normal))},[a,n]),(0,eb.I)({isActive:r,awemeInfo:n}),eT({isActive:r,awemeInfo:n}),(0,T.u)({isActive:r,awemeInfo:n,index:null==e?void 0:e.index}),(0,L.J)({index:null==e?void 0:e.index});let c=(0,o._)((0,i._)({},e),{fullScreenTarget:t,__is_replaced_live__:null==n?void 0:n.__is_replaced_live__});return(null==n?void 0:n.awemeType)===f.e.FollowWidgetCard?u.createElement(eE,{infoList:n.infoList,isActive:e.isActive,swiper:e.swiper,deleteCurrentSwiper:e.deleteCurrentSwiper,onNext:e.playNextFunc,onPrev:e.playPrevFunc}):(null==n?void 0:n.awemeType)===f.e.LiveCard?(r&&(0,I.AN)(),s&&(window.nextPlayer=null),u.createElement(ej,c)):u.createElement(eP,c)},eM=e=>(0,a.jsx)(E.k,{componentName:"MixPlayer",children:(0,a.jsx)(eR,(0,i._)({},e))})},240952:function(e,t,l){"use strict";l.d(t,{j4:function(){return o},kV:function(){return a},mB:function(){return r},x_:function(){return n},yW:function(){return i}}),l(490629);var n={recommend:"recommend",follow:"follow",friend:"friend",topic:"topic"};let i=new Map([["recommend","recommend"],["follow","follow"],["friend","friend"],["topic","topic"]]),o=new Map([["recommend","web_homepage_hot"],["follow","web_homepage_follow"],["friend","web_homepage_friend"],["topic","web_homepage_topic"]]),r=new Map([["recommend","RECOMMEND"],["follow","FOLLOW"],["friend","FRIEND"],["topic","TOPIC"]]);var a={NORMAL:"normal",HIGHLIGHT:"highlight",SMALL_HIGHLIGHT:"small_highlight"}},98590:function(e,t,l){"use strict";l.d(t,{z:function(){return y}}),l("490629");var n=l("320165"),i=l("101199"),o=l("469935"),r=l.n(o),a=l("414800"),u=l("414061"),d=l("392430"),s=l("759894"),c=l("191825"),v=l("21783"),f=l("36897"),m=l("87897"),_=l("954026"),h="S_ljA7O3",g="H0xClxly",p=l("365169"),w=l("913285");let y=e=>{let{abtest:t,show:l,awemeInfoList:o,swiper:y,playNextFunc:I,playPrevFunc:x,className:E,defaultCssHidden:C=!0,from:b,isVideoSupportMP4:S=!0}=e,T=(0,p.Iq)(e=>e.fullScreenQuestionVars),[L,N]=(0,i.useState)(0),[k,P]=(0,i.useState)(!0),{awemeFeed:j}=(0,f.j)(),R=j.useValue("modalAwemeInfo",e=>e?"inner":"outer"),M=!j.useValue("nextAwemeInfo",Boolean),V=!j.useValue("prevAwemeInfo",Boolean),D=(0,m._)();return((0,i.useEffect)(()=>{if(y){let e=()=>{N(null==y?void 0:y.activeIndex)};try{y.on("slideChange",e),e()}catch(e){}return()=>{try{y.off("slideChange",e)}catch(e){}}}},[y]),(0,i.useEffect)(()=>{let e=u.listen(u.EVENT.changeVideoSideBar,e=>{let{isShowRelatedCard:t}=e;"Boolean"===(0,d.tQ)(t)&&P(t)});return()=>e()},[]),(0,v.Z)("OutsideSwitchButton",{abtest:t,awemeInfoList:o,swiper:y,className:E,innerDisableNext:M,innerDisablePrev:V,stream:R,activeIndex:L,sideBarShow:k}),l)?(0,n.jsx)(w.k,{componentName:a.y.OutsideSwitchButton,children:(0,n.jsx)(c.I,{playNextFunc:()=>{if(!_.f.playNextInterceptor(T))j.getValue("modalAwemeInfo")?j.dispatch("activeIndex",j.getValue("activeIndex")+1):I()},playPrevFunc:()=>{if(!_.f.playPrevInterceptor(T))j.getValue("modalAwemeInfo")?j.dispatch("activeIndex",j.getValue("activeIndex")-1):x()},className:r()(h,{[g]:C&&!k},E),disableNext:S&&"outer"!==R?M:!("recommend"===(0,s.vM)()&&(null==D?void 0:D.enableNextSlide))&&L===o.length-1,disablePrev:S&&"outer"!==R?V:0===L||!o[L-1]})}):null}},947855:function(e,t,l){"use strict";l.d(t,{Bv:function(){return m},F1:function(){return _},RN:function(){return o},Tg:function(){return h},Vv:function(){return g},Y5:function(){return p},ZN:function(){return d},bG:function(){return a},bl:function(){return c},fv:function(){return s},ik:function(){return v},vL:function(){return f},wJ:function(){return r}});var n=l(629686),i=l(973314),o={ROOM:200,200:"ROOM",FULL_SCREEN:201,201:"FULL_SCREEN",CHAT:202,202:"CHAT"};let r=async()=>i.ZP.get("/webcast/user/me/",{params:{room_id:0}}),a=async e=>i.ZP.get("/webcast/user/",{params:e}),u=e=>i.ZP.post("/webcast/user/relation/update/",{},{params:e}),d=e=>u((0,n._)({follow_type:1},e)),s=e=>u((0,n._)({follow_type:0},e)),c=e=>i.ZP.post("/webcast/linkmic_audience/verify_confirm/",{},{params:e}),v=e=>i.ZP.post("/webcast/linkmic_audience/verify_open/",{},{params:e}),f=e=>i.ZP.post("/webcast/room/like/",{},{params:e}),m=e=>i.ZP.post("/webcast/room/silence/",{},{params:e}),_=e=>i.ZP.post("/webcast/room/unsilence/",{},{params:e}),h=e=>i.ZP.get("/webcast/room/silence/list/",{params:e}),g=e=>i.ZP.post("/webcast/room/kick/user/",{},{params:e}),p=async e=>i.ZP.get("/webcast/web/live/watermark/",{params:e})},147885:function(e,t,l){"use strict";l.d(t,{J:function(){return i},U:function(){return n}});var n={RECOMMEND:253,253:"RECOMMEND",FOLLOW:254,254:"FOLLOW"},i={TEXTANDICON:1,1:"TEXTANDICON",IMG:2,2:"IMG",AVATAR:3,3:"AVATAR"}},113515:function(e,t,l){"use strict";l.d(t,{FR:function(){return o},QU:function(){return u},UY:function(){return a},YN:function(){return n},mI:function(){return r},xQ:function(){return i}});let n="live_volume",i="player_volume",o="live_is_mute",r="player_is_mute",a="route_params",u="live_is_link_distribute"},695481:function(e,t,l){"use strict";l.d(t,{V:function(){return g},q:function(){return p}});var n=l(629686),i=l(402748);l(706056),l(932651);var o=l(947855),r=l(198412),a=l.n(r),u=l(497860),d=l.n(u),s=l(764283),c=l(409250),v=l(426038),f=l(687581),m=l(618759);let _=async(e,t)=>{try{let n=d()(t),i=a()(e,"roomStore.roomInfo.roomId",""),r=a()(t,"id_str",""),u=a()(e,"roomStore.roomInfo.anchor.id_str",""),s=a()(e,"roomStore.roomInfo.anchor.sec_uid",""),c=a()(t,"sec_uid",""),v=a()(e,"roomStore.roomInfo.room.admin_user_ids_str",[]).includes(r);if(i&&r&&u&&s&&c&&v){var l;let e=await (0,o.bG)({target_uid:r,current_room_id:i,anchor_id:u,sec_target_uid:c,sec_anchor_id:s});(null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.status_code)===0&&(n=Object.assign(t,a()(e,"data.data",{})))}return n}catch(e){}},h={setPrivateUser(e){try{c.Q.setItem(v.CookieKeys.LivePrivateUser,e?1:0)}catch(e){}},getPrivateUser(){try{return 1===c.Q.getItem({sKey:v.CookieKeys.LivePrivateUser})}catch(e){return!1}}},g=async e=>{var t,l,r,u,d;let c=await (0,o.wJ)();if(0===c.data.status_code){let l=a()(c,"data.data",{}),o=await _(e,l);h.setPrivateUser(null==o?void 0:o.webcast_private),null==e||null===(t=e.userStore)||void 0===t||t.setUserInfo((0,i._)((0,n._)({},o),{isReady:!0}))}else s.ZN.error(f.Mo.LiveUserMeError,{content:{statusCode:null==c?void 0:null===(l=c.data)||void 0===l?void 0:l.status_code,logId:null!==(d=c.logId)&&void 0!==d?d:"",is_client:(0,m.DT)(),data:null==c?void 0:null===(r=c.data)||void 0===r?void 0:r.data}}),null==e||null===(u=e.userStore)||void 0===u||u.setUserInfo({isReady:!0})},p=()=>h.getPrivateUser()},859091:function(e,t,l){"use strict";l.d(t,{HX:function(){return r},MP:function(){return v},RS:function(){return c},Ue:function(){return m},Ul:function(){return d},Ys:function(){return o},_6:function(){return u},mp:function(){return s},ye:function(){return a},zm:function(){return f}});var n=l(480333);class i{start(){this.startDate=Date.now()}getTotal(){return this.startDate?Math.ceil((Date.now()-this.startDate)/1e3):0}getMsTotal(){return this.startDate?Date.now()-this.startDate:0}reset(){this.startDate=void 0}constructor(){(0,n._)(this,"startDate",void 0)}}let o=new i,r=new i,a=new i,u=new i,d=new i,s=new i,c=new i,v=new i,f=new i,m=()=>{o.reset(),r.reset(),a.reset(),d.reset(),s.reset(),c.reset(),u.reset(),v.reset(),f.reset()}},395669:function(e,t,l){"use strict";l.d(t,{Ui:function(){return u},V7:function(){return r},qV:function(){return a},u9:function(){return d}});var n=l(335924),i=l(113515),o=l(121998);let r=()=>{let{live_ad_creative_id:e=0}=o.parse((0,n.ht)())||{};if(!e){let t=sessionStorage.getItem(i.UY),l=window&&window.__INVISIBLE_QUERY__;e=null==l?void 0:l.live_ad_creative_id;try{if(!(null==l?void 0:l.live_ad_creative_id)){let l=JSON.parse(t)||{};e=(null==l?void 0:l.live_ad_creative_id)||0}}catch(e){}}return Number(e)},a=()=>{let{live_ad_id:e=0}=o.parse((0,n.ht)())||{};if(!e){let t=sessionStorage.getItem(i.UY),l=window&&window.__INVISIBLE_QUERY__;e=null==l?void 0:l.live_ad_id;try{if(!(null==l?void 0:l.live_ad_id)){let l=JSON.parse(t)||{};e=(null==l?void 0:l.live_ad_id)||0}}catch(e){}}return Number(e)},u=()=>!!r(),d=()=>{let{ad_log_extra:e="{}"}=o.parse((0,n.ht)())||{},t=sessionStorage.getItem(i.UY),l=window&&window.__INVISIBLE_QUERY__;"{}"===e&&(e=(null==l?void 0:l.ad_log_extra)||"{}");try{if("{}"===e){let l=JSON.parse(t)||{};e=(null==l?void 0:l.ad_log_extra)||"{}"}}catch(e){}return e}},589864:function(e,t,l){"use strict";l.d(t,{D3:function(){return ee},EP:function(){return T},F3:function(){return Z},F7:function(){return h},Im:function(){return H},JW:function(){return I},MR:function(){return A},Ne:function(){return g},Nz:function(){return $},O5:function(){return z},O9:function(){return Y},Qz:function(){return O},UH:function(){return C},Us:function(){return X},Vd:function(){return x},W$:function(){return P},Xk:function(){return m},Y5:function(){return b},ZA:function(){return G},_s:function(){return B},at:function(){return N},bi:function(){return w},d3:function(){return F},f5:function(){return R},fF:function(){return Q},ff:function(){return J},j1:function(){return W},jL:function(){return _},lh:function(){return U},ni:function(){return D},u7:function(){return K},vc:function(){return L},wp:function(){return y},xM:function(){return q},xS:function(){return k},xw:function(){return et},y3:function(){return E},y9:function(){return S},yM:function(){return j}});var n=l(629686),i=l(402748),o=l(380599),r=l(395669),a=l(859091),u=l(335924),d=l(202613),s=l(995270),c=l(695481),v=l(198412),f=l.n(v),m={LOGIN:1,1:"LOGIN",NOT_LOGIN:0,0:"NOT_LOGIN"},_={UNK_NOWN:0,0:"UNK_NOWN",LIVE:1,1:"LIVE",FIRST_LIVE:2,2:"FIRST_LIVE",RECORD_LIVE:3,3:"RECORD_LIVE"},h={HOVER:"hover_play",AUTO:"auto_play"};let g=e=>{var t;let l=e?1:0,n=(null==e?void 0:e.episode_id_str)?null==e?void 0:e.episode_id_str:"",i=(null==e?void 0:e.item_id)?null==e?void 0:e.item_id:"",o=(null==e?void 0:e.season_id_str)?null==e?void 0:e.season_id_str:"",r=l?(null==e?void 0:null===(t=e.mod)||void 0===t?void 0:t.episode_stage)===2?"premiere":"live":"";return{push_id:(0,u.Rs)("push_id"),is_vs:l,vs_episode_id:n,vs_ep_group_id:i,vs_season_id:o,vs_episode_stage:r}},p=()=>({url:location.href,url_path:location.pathname}),w=e=>{if(!!window)window.collectEvent&&window.collectEvent("livesdk_rec_live_play",(0,i._)((0,n._)({anchor_id:"",web_live_page:"",web_live_tab:"",more_detail:"",live_type:"game",action_type:"click",game_live_source:"game_web",url:location.href,url_path:location.pathname},e),{is_privacy_watch:(0,c.q)()?"1":"0"}))},y=e=>{if(!!window)window.collectEvent&&window.collectEvent("livesdk_live_card_play",(0,n._)({anchor_id:"",web_live_page:"",web_live_tab:"",more_detail:"",live_type:"game",action_type:"click",game_live_source:"game_web",url:location.href,url_path:location.pathname},e))},I=e=>{window.collectEvent&&window.collectEvent("livesdk_live_show",(0,i._)((0,n._)({cid:(0,r.V7)(),web_live_page:"",web_live_tab:"",more_detail:"",category_name:"",page_type:"",live_type:"game",action_type:"click",game_live_source:"game_web",url:location.href,url_path:location.pathname},e),{if_qianchuan_ad:(null==e?void 0:e.cid)||(0,r.V7)()?1:0,ad_type:(null==e?void 0:e.cid)||(0,r.V7)()?d.AdType.Live:void 0,live_status:null==e?void 0:e.live_status,is_comments_fold:null==e?void 0:e.is_comments_fold,is_privacy_watch:(0,c.q)()?"1":"0"}))},x=e=>{window.collectEvent("livesdk_second_tab_click",(0,n._)((0,i._)((0,n._)({},p()),{tab_name:"live"}),e))},E=e=>{window.collectEvent&&window.collectEvent("livesdk_live_window_duration_v2",(0,i._)((0,n._)({cid:(0,r.V7)(),web_live_page:"",web_live_tab:"",more_detail:"",category_name:"",page_type:"",live_type:"game",game_live_source:"game_web",url:location.href,url_path:location.pathname},e),{duration:(null==e?void 0:e.duration)>0?null==e?void 0:e.duration:0,isIncorrect:(null==e?void 0:e.duration)>0?0:1,if_qianchuan_ad:(null==e?void 0:e.cid)||(0,r.V7)()?1:0,ad_type:(null==e?void 0:e.cid)||(0,r.V7)()?d.AdType.Live:void 0}))},C=e=>{window.collectEvent&&window.collectEvent("livesdk_live_window_duration_v2_new",(0,i._)((0,n._)({cid:(0,r.V7)(),web_live_page:"",web_live_tab:"",more_detail:"",category_name:"",page_type:"",live_type:"game",game_live_source:"game_web",url:location.href,url_path:location.pathname},e),{duration:(null==e?void 0:e.duration)>0?null==e?void 0:e.duration:0,isIncorrect:(null==e?void 0:e.duration)>0?0:1,if_qianchuan_ad:(null==e?void 0:e.cid)||(0,r.V7)()?1:0,ad_type:(null==e?void 0:e.cid)||(0,r.V7)()?d.AdType.Live:void 0,is_privacy_watch:(0,c.q)()?"1":"0"}))},b=e=>{window.collectEvent&&window.collectEvent("livesdk_live_duration",(0,i._)((0,n._)({cid:(0,r.V7)(),web_live_page:"",web_live_tab:"",more_detail:"",category_name:"",page_type:"",live_type:"game",game_live_source:"game_web",url:location.href,url_path:location.pathname},e),{duration:(null==e?void 0:e.duration)>0?null==e?void 0:e.duration:0,isIncorrect:(null==e?void 0:e.duration)>0?0:1,if_qianchuan_ad:(null==e?void 0:e.cid)||(0,r.V7)()?1:0,is_top:(0,s.k)()?"1":"0",ad_type:(null==e?void 0:e.cid)||(0,r.V7)()?d.AdType.Live:void 0,live_status:null==e?void 0:e.live_status,is_comments_fold:null==e?void 0:e.is_comments_fold,is_privacy_watch:(0,c.q)()?"1":"0"}))},S=e=>{window.collectEvent&&window.collectEvent("livesdk_window_user_pause_duration",(0,n._)({cid:(0,r.V7)(),web_live_page:"",web_live_tab:"",more_detail:"",category_name:"",page_type:"",live_type:"game",game_live_source:"game_web",url:location.href,url_path:location.pathname},e))},T=e=>{window.collectEvent&&window.collectEvent("livesdk_live_click_user",(0,n._)({web_live_page:"",web_live_tab:"",more_detail:"",category_name:"",page_type:"",live_type:"game",game_live_source:"game_web",url:location.href,url_path:location.pathname},e))},L=e=>{window.collectEvent&&window.collectEvent("livesdk_live_start",(0,n._)({web_live_page:"",web_live_tab:"",more_detail:"",category_name:"",page_type:"",live_type:"game",game_live_source:"game_web",url:location.href,url_path:location.pathname},e))},N=e=>{window.collectEvent&&window.collectEvent("livesdk_live_pause",(0,n._)({web_live_page:"",web_live_tab:"",more_detail:"",category_name:"",page_type:"",live_type:"game",game_live_source:"game_web",url:location.href,url_path:location.pathname},e))},k=e=>{window.collectEvent&&window.collectEvent("livesdk_mini_window_preview_show",(0,n._)({web_live_page:"",web_live_tab:"",more_detail:"",category_name:"",page_type:"",live_type:"game",game_live_source:"game_web",url:location.href,url_path:location.pathname},e))},P=e=>{window.collectEvent&&window.collectEvent("livesdk_mini_window_preview_play",(0,n._)({web_live_page:"",web_live_tab:"",more_detail:"",category_name:"",page_type:"",live_type:"game",game_live_source:"game_web",url:location.href,url_path:location.pathname},e))},j=e=>{window.collectEvent&&window.collectEvent("livesdk_mini_window_preview_duration",(0,n._)({web_live_page:"",web_live_tab:"",more_detail:"",category_name:"",page_type:"",live_type:"game",game_live_source:"game_web",url:location.href,url_path:location.pathname},e))},R=(e,t)=>{window.collectEvent(e,t)},M=e=>{var t,l,n,i,r,a,d,s,c,v;let m=f()(e,"room.stream_url.stream_orientation",""),_=(null===(t=e.room)||void 0===t?void 0:t.episode_extra)?1:0;return{push_id:(0,u.Rs)("push_id"),anchor_id:f()(e,"room.owner.id_str",""),room_id:f()(e,"room.id_str",""),title_type:void 0===o.k4[e.title_type]?"":o.k4[e.title_type],cover_type:void 0===o.I4[e.cover_type]?"":o.I4[e.cover_type],is_recommend:void 0===o.Od[e.is_recommend]?"":o.Od[e.is_recommend],stream_type:o.FO[m]||"",game_name:f()(e,"tag_name",""),live_type:"game",is_vs:_,vs_episode_id:_?null==e?void 0:null===(n=e.room)||void 0===n?void 0:null===(l=n.episode_extra)||void 0===l?void 0:l.episode_id_str:"",vs_ep_group_id:_?null==e?void 0:null===(r=e.room)||void 0===r?void 0:null===(i=r.episode_extra)||void 0===i?void 0:i.item_id:"",vs_season_id:_?null==e?void 0:null===(d=e.room)||void 0===d?void 0:null===(a=d.episode_extra)||void 0===a?void 0:a.season_id_str:"",vs_episode_stage:_?(null==e?void 0:null===(v=e.room)||void 0===v?void 0:null===(c=v.episode_extra)||void 0===c?void 0:null===(s=c.mod)||void 0===s?void 0:s.episode_stage)===2?"premiere":"live":""}},V=e=>{try{if(e)return M(e);return(0,n._)({},g())}catch(e){return{}}},D=(e,t)=>{let l=(0,n._)({},p(),V(t),e||{});window.collectEvent("livesdk_voice_button_click",l)},A=e=>{window.collectEvent("livesdk_browser_limited_mute",V(e))},F=e=>({is_paidlive:Number(null==e?void 0:e.paid_type),watch_paidlive_status:(null==e?void 0:e.view_right)?"regular":Number(null==e?void 0:e.duration)>180?"try_end":"try",entrance_form:""}),O=e=>{window.collectEvent&&window.collectEvent("live_no_support_on_pc",(0,n._)({},p(),e))},U=e=>{let t=window.__INVISIBLE_QUERY__||{};window.collectEvent&&window.collectEvent("livesdk_connection_mvpseats_show",(0,i._)((0,n._)({},t,p(),e),{connection_type:"anchor",show_object:"audience"}))},B=e=>{let t=window.__INVISIBLE_QUERY__||{};window.collectEvent&&window.collectEvent("livesdk_connection_mvpseats_click",(0,i._)((0,n._)({},t,p(),e),{connection_type:"anchor",show_object:"audience",click_identity:"audience",click_from:"seat"}))},H=e=>{let t=window.__INVISIBLE_QUERY__||{};window.collectEvent&&window.collectEvent("livesdk_pk_mission_show",(0,n._)({},t,p(),e))},Z=e=>{let t=window.__INVISIBLE_QUERY__||{};window.collectEvent&&window.collectEvent("livesdk_onecllick_support_click",(0,n._)({},t,p(),e))},z=e=>{let t=window.__INVISIBLE_QUERY__||{};window.collectEvent&&window.collectEvent("livesdk_pk_mission_result_show",(0,n._)({},t,p(),e))},G=e=>{let t=window.__INVISIBLE_QUERY__||{};window.collectEvent&&window.collectEvent("livesdk_team_pk_individual_mission_result_show",(0,n._)({},t,p(),e))},W=e=>{let t=window.__INVISIBLE_QUERY__||{};t.action_type=t.action_type||"click",window.collectEvent&&window.collectEvent("livesdk_gift_panel_personal_center_show",(0,n._)({},t,p(),e||{}))},q=e=>{let t=window.__INVISIBLE_QUERY__||{};t.action_type=t.action_type||"click",window.collectEvent&&window.collectEvent("livesdk_gift_panel_personal_center_click",(0,n._)({},t,p(),e||{}))},K=e=>{window.collectEvent&&window.collectEvent("click_auto_play",(0,i._)((0,n._)({},p(),e),{play_material:"live"}))},Y=e=>{window.collectEvent&&window.collectEvent("click_previous_video",(0,i._)((0,n._)({},p(),e),{play_material:"live"}))},$=e=>{window.collectEvent&&window.collectEvent("click_next_video",(0,i._)((0,n._)({},p(),e),{play_material:"live"}))},Q=e=>{window.collectEvent&&window.collectEvent("livesdk_pc_live_highlight_show",(0,n._)((0,i._)((0,n._)({},p()),{live_type:""}),e))},J=e=>{window.collectEvent&&window.collectEvent("livesdk_pc_live_highlight_click",(0,n._)({},p(),e))},X=()=>{a.zm.start()},ee=e=>{let t=a.zm.getMsTotal();window.collectEvent&&window.collectEvent("livesdk_pc_live_highlight_play_time",(0,i._)((0,n._)({},p(),e),{duration:t})),a.zm.reset()},et=e=>{window.collectEvent&&window.collectEvent("livesdk_failed_special_mask_cmt",(0,i._)((0,n._)({},p(),e),{play_material:"live"}))}},879375:function(e,t,l){"use strict";l.d(t,{G9:function(){return L},UU:function(){return T}}),l(490629);var n=l(320165),i=l(101199),o=l(469935),r=l.n(o),a=l(809798),u=l(339808),d=l(734123),s=l.n(d),c=l(280647),v=l(72430),f=l(499059),m=l(995898),_=l(661444),h=l(414061),g=l(596678),p=l(47014),w=l(486463),y=l(9352),I=l(435712),x=l(332009),E=l(91627),C=l(117961),b=l(536065);let S=[f.gI.PlayerCardInfo,f.gI.isVideoPlayed,f.gI.IsInModalVideo],T=()=>{let e=(0,i.useRef)(!1),{pathname:t}=(0,u.a)(),l=(0,i.useRef)(t),n=(0,i.useRef)(!1);return(0,m.Nr)(t)?n.current=!0:(n.current?(n.current=!1,e.current=l.current===t):e.current=!1,l.current=t),e},L=e=>{let{children:t,parentRouteClassName:l,checkIsActive:o}=e,{pathname:d}=(0,u.a)(),L=!0;o&&(L=o(d));let N=L&&(0,m.Nr)(d),k=(0,m.Nr)(d)||!L,P=(0,i.useRef)(),j=T(),R=(0,i.useRef)(d),M=(0,i.useRef)(d),V=(0,i.useMemo)(()=>(0,_.oS)(null==R?void 0:R.current)?v.lT.Recommend:(0,_.i8)(null==R?void 0:R.current)?v.lT.Follow:(0,_.z1)(null==R?void 0:R.current)?v.lT.Friend:(0,_.e2)(null==R?void 0:R.current)?v.lT.Modal:(0,_.h$)(null==R?void 0:R.current)?v.lT.User:(0,_.Q5)(null==R?void 0:R.current)?v.lT.AiSearch:void 0,[]);return k&&(M.current=d),(0,i.useLayoutEffect)(()=>{k&&h.emit(h.EVENT.videoPause,{isInChildRoute:!0})},[k]),(0,i.useEffect)(()=>()=>{if(N){let e=h.getPageScope(R.current);h.emit(h.EVENT.exitChildRoute,null,e),"child_route"!==e&&h.emit(h.EVENT.exitChildRoute,null,"child_route")}else h.emit(h.EVENT.enterChildRoute)},[N]),(0,i.useEffect)(()=>{if(k){let e=!1,t=t=>{e=!0};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),e&&setTimeout(()=>{window.dispatchEvent(new Event("resize"))},20)}}},[k]),(0,i.useLayoutEffect)(()=>{if(k){let e=S.map(e=>f.Le.getConfig(e));return f.Le.setConfig(f.gI.SlideStartTime,{slideStartTime:0}),()=>{S.forEach((t,l)=>{f.Le.setConfig(t,e[l])}),f.Le.setConfig(f.gI.SlideStartTime,{slideStartTime:0})}}},[k]),(0,i.useLayoutEffect)(()=>{!j.current&&(0,b.S)()&&(0,g._)()},[]),(0,c.Z)(()=>{let e=window.location.pathname;if(!k)return(!j.current||f.Le.getConfig(f.gI.NeedExitFullScreenAndModal))&&(f.Le.setConfig(f.gI.NeedExitFullScreenAndModal,!1),(0,g._)()),()=>{!(0,m.dH)(location.pathname)&&!(0,m.yk)(location.pathname)&&(0,g._)()};{var t,l,n,i,o;let r=null===(t=f.Le.getConfig(f.gI.IsInModalVideo))||void 0===t?void 0:t.isInModal,a=V&&!r?null===(l=x.s.getLastRegisterPlayerIdByScene)||void 0===l?void 0:l.call(x.s,V):(0,w.OB)();a&&(0,w.wS)(a,!1);let u=null===s()||void 0===s()?void 0:null===(i=s().instManager)||void 0===i?void 0:null===(n=i.find)||void 0===n?void 0:n.call(i,e=>(null==e?void 0:e.playerId)===a);if((0,m.dH)(e)){null==u||null===(o=u.pause)||void 0===o||o.call(u);let e=x.s.getPlayerInfoMap();f.Le.setConfig(f.gI.TempPlayerMap,e),x.s.clearPlayerInfoMap()}return()=>{var t,l,n,i;let o=!1,u=null!==(l=f.Le.getConfig(f.gI.TempPlayerMap))&&void 0!==l?l:null;if(u){if(j.current)null===(i=x.s.setPlayerInfoMap)||void 0===i||i.call(x.s,u);else{let t=new Map;u.forEach((e,l)=>{if(e.scene===v.lT.Modal){var n;null===(n=x.s.unRegister)||void 0===n||n.call(x.s,{id:l})}else t.set(l,e)}),(0,m.dH)(e),null===(n=x.s.setPlayerInfoMap)||void 0===n||n.call(x.s,t)}f.Le.setConfig(f.gI.TempPlayerMap,null)}(0,m.dH)(e)&&!j.current&&r&&(o=!0);let d=V&&(!r||o)?null===(t=x.s.getLastRegisterPlayerIdByScene)||void 0===t?void 0:t.call(x.s,V):(0,w.OB)(),s=o&&d?d:a||d;s&&(0,w.wS)(s,!0);let c=setTimeout(()=>{let e=(0,w.OB)(),t=x.s.getPlayersByScene(V).find(t=>t.playerId===e),l=x.s.getAllPlayer().find(e=>(null==e?void 0:e.playerId)===s);if(l&&!(t&&e!==s)){var n;!(0,m.Nr)(M.current)&&l.once("play",()=>{(0,p.yr)({fromCache:1})}),null==l||null===(n=l.play)||void 0===n||n.call(l)}},500);f.Le.setConfig(f.gI.BackToCacheDelayPlayTimer,c)}}},[k]),(0,i.useEffect)(()=>{if(k)return;let e=P.current,t=e=>h.emit(h.EVENT.routePageScroll,e);return null==e||e.addEventListener("scroll",t),()=>{null==e||e.removeEventListener("scroll",t)}},[k]),(0,i.useEffect)(()=>{N&&h.emit(h.EVENT.childRouteRender)},[N]),(0,i.useEffect)(()=>{!f.Le.getConfig(f.gI.SvgDirectRender)&&f.Le.setConfig(f.gI.SvgDirectRender,!0)},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(C.O,{active:!k,className:r()({[I.tt]:!k,[y.default.withoutscrollbar]:V===v.lT.User},l,I.ei,y.default.routeContainer),ref:P,children:t}),N&&(0,n.jsx)(E.w,{isActive:N,children:(0,n.jsx)("div",{className:r()(I.WV,I.ei,y.default.routeContainer,y.default.childRoute,{[y.default.enterChildRoute]:!L}),children:(0,n.jsx)(a.Outlet,{})})})]})}},523784:function(e,t,l){"use strict";l.d(t,{C:function(){return f}});var n=l("629686"),i=l("402748"),o=l("320165"),r=l("36807"),a=l.n(r);l("101199");var u=l("879375"),d=l("939165"),s=l("414061"),c=l("435712");let v=()=>{(0,d.o)(()=>{let e=Array.from(document.querySelectorAll(`.${c.ei}`)).find(e=>e.getBoundingClientRect().height>0)||window;return s.emit(s.EVENT.globalScrollEl,e),s.listen(s.EVENT.sideBarShow,()=>{s.emit(s.EVENT.globalScrollEl,e)})},[])};function f(e,t,l){return function(r){v();let d=(0,o.jsx)(e,(0,n._)({},r));return(0,o.jsx)(u.G9,(0,i._)((0,n._)({checkIsActive:t,parentRouteClassName:l},a()),{children:d}))}}},990391:function(e,t,l){"use strict";l.d(t,{P:function(){return h}});var n=l("320165"),i=l("101199"),o=l("469935"),r=l.n(o),a=l("618759"),u=l("915821"),d=l("879802"),s=l("629686"),c=l("402748");let v=(0,i.forwardRef)((e,t)=>(0,n.jsx)("svg",(0,c._)((0,s._)({width:18,height:18,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,n.jsx)("path",{d:"M17.448 17.448a1.886 1.886 0 0 1-2.668 0L9 11.668l-5.78 5.78A1.886 1.886 0 1 1 .552 14.78L6.332 9 .552 3.22A1.886 1.886 0 1 1 3.22.552L9 6.332l5.78-5.78a1.886 1.886 0 1 1 2.668 2.668L11.668 9l5.78 5.78a1.886 1.886 0 0 1 0 2.668z",fill:"#fff"})})));var f=l("547641"),m=l("316213"),_=l("176449");let h=e=>{let{onClick:t,isClientMiniWin:l,isMiniWin:i,className:o,isBackSvg:s=!1}=e,c=(0,a.DT)()&&(0,u.y)((0,a.FJ)().awemePcClient,">=","5.4.0");return(0,n.jsx)("div",{className:r()(f.default.container,"isDark",o,{[f.default.hide]:l||i},c&&f.default.clientHomeStyleWrap),onClick:t,children:(0,n.jsxs)("div",{className:f.default.wrapper,children:[(0,n.jsx)("div",{className:f.default.circle}),s||c?(0,n.jsx)(m.z,{className:f.default.back,svg:(0,n.jsx)(d.Z,{style:{fontSize:"24px"}})}):(0,n.jsx)(_.Z,{src:v,className:f.default.close,viewBox:"0 0 18 18"})]})})}},646451:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return k}});var n=l("629686");l("490629");var i=l("320165"),o=l("101199"),r=l("469935"),a=l.n(r),u=l("72430"),d=l("618759"),s=l("915821"),c=l("414061"),v=l("391302"),f=l("283172"),m=l("115874"),_=l("714102"),h=l("121237"),g=l("661812"),p=l("990391"),w=l("793571"),y=l("499059"),I=l("687875"),x=l("649310"),E=l("236121");let C=(e,t,l)=>{var n;let[i,r]=(0,o.useState)(!0),[a,u]=(0,o.useState)(!1),{handleHiddenLog:d}=(0,E.s)(),{isCssFullScreen:s,isFullScreen:v}=(0,o.useContext)(x.C),[f,m]=(0,o.useState)(null===(n=y.Le.getConfig(y.gI.IsInLookMiniModal))||void 0===n?void 0:n.isInMiniModal),_=(0,o.useRef)(null),h=(0,o.useRef)(!1),{run:g}=(0,w.Z)(()=>{r(!0)},500,[],{trailing:!1,leading:!0}),{run:p}=(0,w.Z)(async()=>{r(h.current||!1)},3e3),C=()=>{h.current=!0},b=()=>{h.current=!1};return(0,o.useEffect)(()=>c.listen(c.EVENT.syncInteraction,()=>{var e;m(null===(e=y.Le.getConfig(y.gI.IsInLookMiniModal))||void 0===e?void 0:e.isInMiniModal)}),[]),(0,o.useEffect)(()=>{var e,l,n,i,o,r,a;if(!(s||v)||!t||f)return;let u=null!==(a=null==t?void 0:t.innerContainer)&&void 0!==a?a:null==t?void 0:null===(e=t.config)||void 0===e?void 0:e.el,d=(null==u?void 0:null===(l=u.closest)||void 0===l?void 0:l.call(u,".basePlayerContainer"))||(null==t?void 0:null===(i=t.root)||void 0===i?void 0:null===(n=i.closest)||void 0===n?void 0:n.call(i,".basePlayerContainer"));if(!!d)return d.addEventListener("mousemove",g),d.addEventListener("mousemove",p),null===(o=_.current)||void 0===o||o.addEventListener("mouseenter",C),null===(r=_.current)||void 0===r||r.addEventListener("mouseleave",b),()=>{var e,t;d.removeEventListener("mousemove",g),d.removeEventListener("mousemove",p),null===(e=_.current)||void 0===e||e.removeEventListener("mouseenter",C),null===(t=_.current)||void 0===t||t.removeEventListener("mouseleave",b)}},[s,v,t,f]),(0,o.useEffect)(()=>{if(!!(s||v)&&!f)r(!0),h.current=!1,l&&p()},[l,e,s,v,f]),(0,o.useEffect)(()=>{u((s||v)&&!f&&i)},[s,v,i,f]),{isShowExtra:a,isCssFullScreen:s,isFullScreen:v,extraRef:_,handleExitFullscreen:()=>{s?c.emit(c.EVENT.pageFullScreen,{fullScreen:!1,playerId:null==t?void 0:t.playerId}):null==t||t.exitFullscreen()},searchBarProps:{onHistoryClick:e=>{let{text:t}=e.currentTarget.dataset;return d(t)},onSearchClick:e=>d(e),onInputKeyDown:(e,t)=>{if("Enter"===(0,I.CS)(e))return d(t)}}}};var b=l("36897"),S=l("331198"),T=l("37285"),L=l("365169"),N=l("452154"),k=e=>{var t;let{scene:l,awemeInfo:r,abtestData:w,userInfo:y,isClientMiniWin:I,isMiniWin:x,isInnerFeed:E,isActive:k,player:P,fullScreenTarget:j}=e,{awemeFeed:R}=(0,b.j)(),{supportAiTop1:M}=(0,L.Iq)(e=>{let{supportAiTop1:t}=e;return{supportAiTop1:t}}),V=R.useValue("modalAwemeInfo",Boolean),D=R.useValue("feedType"),{isShowExtra:A,extraRef:F,searchBarProps:O,handleExitFullscreen:U}=C(r,P,k),B=(0,o.useRef)(null),H=(0,o.useRef)(V),[Z,z]=(0,o.useState)(!1),G=(0,d.DT)()&&(0,s.y)((0,d.FJ)().awemePcClient,">=","5.4.0"),W=(0,N.V1)(),[q,K]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{z(!V&&H.current),H.current=V},[V]),(0,o.useEffect)(()=>{if(!V&&B.current){var e;let t=null===(e=B.current)||void 0===e?void 0:e.aweme;c.emit(c.EVENT.postCurVideoInfo,{awemeId:t.awemeId,groupId:t.groupId,scene:B.current.scene,suggestWords:null==t?void 0:t.suggestWords})}},[V]),(0,o.useEffect)(()=>{!V&&(B.current={aweme:r,scene:l})},[r,V,l]),(0,o.useEffect)(()=>{if(P&&k){var e;let t=P.getPlugin("ImmersiveSwitchSettingPlugin");(null==t?void 0:null===(e=t.config)||void 0===e?void 0:e.isOn)?K(!0):q&&K(!1);let l=e=>{K(e.isOn)};return P.on(T.B.ImmersiveSwitchChange,l),()=>P.off(T.B.ImmersiveSwitchChange,l)}},[P,k,E]),(0,i.jsxs)("div",{className:a()(f.default.extraTL,"isDark",{[f.default.extraShow]:A,[f.default.clientHomeStyleWrap]:G}),ref:F,children:[V?(0,i.jsx)(S.N,{exitTextProps:{getCurrentTab:()=>D,modalEnterFrom:l,isSelf:!1,uidEquals:(null==r?void 0:null===(t=r.authorInfo)||void 0===t?void 0:t.uid)===(null==y?void 0:y.uid),awemeInfo:r},onHandleReturn:()=>{R.dispatch("modalAwemeInfo",null),(0,v.sF)()&&U()}}):(0,i.jsx)(p.P,{onClick:U,isMiniWin:x,isClientMiniWin:I}),(0,i.jsx)("div",{className:a()(f.default.searchCt,{[f.default.hidden]:q}),children:(()=>{if((null==w?void 0:w.aiSearchAiInput)&&(null==w?void 0:w.aiSearchInputMiddleNew)&&M&&!W)return(0,i.jsx)(m.default,(0,n._)({customProps:{isFullScreenShow:!0,isSmoothInnerFeed:V||Z},userInfo:y,abTestData:w,playerProps:{awemeInfo:r,scene:l,fullScreenScene:u.lT.FullScreen},fullScreenTarget:j},O));if(!(null==w?void 0:w.aiSearchAiInput)&&(null==w?void 0:w.aiSearchInputMiddleNew)&&M&&!W)return(0,i.jsx)(_.E1,(0,n._)({customProps:{isFullScreenShow:!0,isSmoothInnerFeed:V||Z},userInfo:y,abTestData:w,playerProps:{awemeInfo:r,scene:l,fullScreenScene:u.lT.FullScreen}},O));if((null==w?void 0:w.aiSearchAiInput)&&!(null==w?void 0:w.aiSearchInputMiddleNew)&&M&&!W)return(0,i.jsx)(h.E1,(0,n._)({customProps:{isFullScreenShow:!0,isSmoothInnerFeed:V||Z},userInfo:y,abTestData:w,playerProps:{awemeInfo:r,scene:l,fullScreenScene:u.lT.FullScreen},fullScreenTarget:j},O));else return(0,i.jsx)(g.default,(0,n._)({customProps:{isFullScreenShow:!0,isSmoothInnerFeed:V||Z},userInfo:y,abTestData:w,playerProps:{awemeInfo:r,scene:l,fullScreenScene:u.lT.FullScreen}},O))})()})]})}},712521:function(e,t,l){"use strict";l.d(t,{$:function(){return s}}),l(490629);var n=l(320165),i=l(101199),o=l(343475),r=l(889429),a=l(19277),u=l(409250),d=l(426038);function s(e){let{children:t,mobileUrl:l,nonce:s,applicableDevice:c="pc,mobile"}=e,[v,f]=i.useState(!1);i.useEffect(()=>{(0,r.GP)()&&f(!0)},[]);let m=i.useMemo(()=>(0,a.Dr)(u.Q.getItem({sKey:d.CookieKeys.Theme})),[]);return(0,n.jsxs)(o.Helmet,{children:[(0,n.jsx)("meta",{charSet:"utf-8"}),t,(0,n.jsx)("meta",{httpEquiv:"Cache-Control",content:"no-transform"}),(0,n.jsx)("meta",{httpEquiv:"Cache-Control",content:"no-siteapp"}),(0,n.jsx)("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),(0,n.jsx)("meta",{name:"applicable-device",content:l?"pc":c}),l&&(0,n.jsx)("meta",{name:"mobile-agent",content:`format=[html5]; url=${l}`}),l&&(0,n.jsx)("link",{rel:"alternate",media:"only screen and (max-width: 640px)",href:l}),(0,n.jsx)("meta",{name:"baidu-site-verification",content:"code-2WPwEy0bEv"}),(0,n.jsx)("meta",{name:"google",content:"notranslate"}),(0,n.jsx)("meta",{name:"theme-color",content:`${"light"===m?"#ffffff":"#161823"}`}),(0,n.jsx)("script",{nonce:s,children:` (function(win, export_obj) { win['TeaAnalyticsObject'] = export_obj; if (!win[export_obj]) { function _collect() { _collect.q.push(arguments); } _collect.q = _collect.q || []; win[export_obj] = _collect; } win[export_obj].l = +new Date(); })(window, 'collectEvent'); `}),!v&&(0,n.jsx)("link",{rel:"manifest",href:"https://p-pc-weboff.byteimg.com/tos-cn-i-9r5gewecjs/pwa/manifest.json"}),(0,n.jsx)("link",{href:"//fonts.bytedance.com/dfd/api/v1/css?family=DFPKingGothicGB-Medium:500&display=swap",rel:"stylesheet",media:"print",id:"media1"}),(0,n.jsx)("link",{href:"//fonts.bytedance.com/dfd/api/v1/css?family=DFPKingGothicGB-Regular:500&display=swap",rel:"stylesheet",media:"print",id:"media2"}),(0,n.jsx)("script",{nonce:s,children:` document.getElementById("media1").addEventListener("load", function () { this.media = "all"; this.onload = null; }); document.getElementById("media2").addEventListener("load", function () { this.media = "all"; this.onload = null; }); `})]})}},70864:function(e,t,l){"use strict";l.d(t,{s:function(){return b}});var n=l("629686");l("490629"),l("706056"),l("313036");var i=l("320165"),o=l("101199"),r=l("469935"),a=l.n(r),u=l("254457"),d=l("402748");let s=(0,o.forwardRef)((e,t)=>(0,i.jsxs)("svg",(0,d._)((0,n._)({width:22,height:22,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.111 2.75c.953 0 1.827.513 2.036 1.53.463 2.24 1.067 2.791 5.407 2.866h.004v7.545c0 1.492 0 2.239-.336 2.786a2.266 2.266 0 0 1-.754.753c-.549.336-1.3.335-2.791.335H8.34c-2.98 0-5.541-2.33-5.596-5.307a5.418 5.418 0 0 1 5.417-5.509s.01-1.44.01-1.92c.011-1.772 1.208-3.079 2.94-3.079zm3.26 7.165c-.57 0-1.103.278-1.43.743l-3.756 5.346a.166.166 0 0 0 .137.262h.755c.569 0 1.103-.277 1.43-.743l3.755-5.346a.166.166 0 0 0-.136-.262h-.755zm-6.33 0a.166.166 0 0 0-.163.196l.969 5.284c.015.086.041.167.076.243l1.326-1.883-.44-2.408a1.748 1.748 0 0 0-1.72-1.432h-.048z",fill:"url(#member-icon_svg__paint0_linear_3741_28915)"}),(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:"member-icon_svg__paint0_linear_3741_28915",x1:10.651,y1:2.75,x2:10.651,y2:18.565,gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#E1FFFE"}),(0,i.jsx)("stop",{offset:1,stopColor:"#83FAFF"})]})})]})));var c=l("384293"),v=l("176449"),f=l("855357"),m=l("333131"),_=l("734123"),h=l("46892"),g=l("326367"),p=l("386206"),w=l("913285"),y=l("310383"),I=l("63601"),x=l("736068"),E=l("746517");let C=e=>{var t,l,n,r;let{awemeInfo:d,isActive:f,unlockCurrentScene:w,isOnlyShowTag:y=!1,emitter:C,userInfo:b,loginDispatch:S,isLogin:T,requestLogin:L,control:N}=e,[k,P]=(0,o.useState)(!1),[j,R]=(0,o.useState)(!1),M=(0,o.useMemo)(()=>{var e;return(null==d?void 0:null===(e=d.entertainmentPreviewConfig)||void 0===e?void 0:e.end_time)||0},[null==d?void 0:d.awemeId]),[V,D]=(0,o.useState)(M),A=(0,o.useRef)(!0),F=(0,I.n)();(0,o.useEffect)(()=>{var e,t;let l=w?C:F;if((null==l?void 0:l.on)&&f&&(null==d?void 0:null===(e=d.entRightInfo)||void 0===e?void 0:e.right_status)===1){let e=e=>{var t,l,n,i,o,r,a,u,s;let{currentTime:c}=e;if((null===(r=window)||void 0===r?void 0:null===(o=r.location)||void 0===o?void 0:null===(i=o.href)||void 0===i?void 0:null===(n=i.includes)||void 0===n?void 0:n.call(i,null==d?void 0:null===(l=d.lvideoBrief)||void 0===l?void 0:null===(t=l.episodeInfo)||void 0===t?void 0:t.episodeId))===!1)return;let v=null==N?void 0:null===(a=N.getValue)||void 0===a?void 0:a.call(N,"paidContent");D(Math.max(0,M-1e3*c)),1e3*c>=M?(!v&&(null==N||null===(u=N.dispatch)||void 0===u||u.call(N,"paidContent",!0)),!k&&!j&&A.current&&(A.current=!1,P(!0))):(A.current=!0,v&&(null==N||null===(s=N.dispatch)||void 0===s||s.call(N,"paidContent",!1)))};return null==l||null===(t=l.on)||void 0===t||t.call(l,_.Events.TIME_UPDATE,e),()=>{var t;null==l||null===(t=l.off)||void 0===t||t.call(l,_.Events.TIME_UPDATE,e)}}},[F,f,w,k,j,d]),(0,o.useEffect)(()=>(P(!1),R(!1),()=>{var e;null==N||null===(e=N.dispatch)||void 0===e||e.call(N,"paidContent",!1)}),[d]);let O=async()=>{var e,t,l;if((null==d?void 0:null===(e=d.entRightInfo)||void 0===e?void 0:e.right_status)===2)return;let n=()=>{var e,t,l,n;if(w)P(!0);else if(null==d?void 0:null===(t=d.lvideoBrief)||void 0===t?void 0:null===(e=t.episodeInfo)||void 0===e?void 0:e.episodeId){let e=`current_video_time=${Math.ceil(null==F?void 0:F.currentTime)}`,t=(0,h.c7)(null==d?void 0:null===(n=d.lvideoBrief)||void 0===n?void 0:null===(l=n.episodeInfo)||void 0===l?void 0:l.episodeId,e);window.open(t,(0,g.f)()?"_self":"_blank","noopener")}};(null==b?void 0:b.isLogin)||T?n():L?(await L("登录后购买","lv_paid"),n()):(0,E.default)({success:async()=>{null==S||S({type:"updateUserInfo"}),n()},enterMethod:"jingxuan_video",headerText:"登录后即可购买",next:`https://${null===(l=window)||void 0===l?void 0:null===(t=l.location)||void 0===t?void 0:t.host}`})};return(0,i.jsxs)("div",{className:a()({[c.default.tagContainer]:w,[c.default.onlyShowTagContainer]:y}),children:[!!j&&!y&&(0,i.jsx)(m.A,{awemeInfo:d,onClose:()=>{R(!1),P(!0)},onPaySuccess:()=>{window.location.reload()},shareScene:"aweme_pc_jinxuan_lvideo_pay"}),!!(k&&!j&&!y)&&(0,i.jsxs)("div",{className:a()(c.default.buyTicketContainer),children:[!!(null==d?void 0:null===(t=d.authorInfo)||void 0===t?void 0:t.nickname)&&(0,i.jsxs)("div",{className:a()(c.default.author),children:["@",(null==d?void 0:null===(l=d.authorInfo)||void 0===l?void 0:l.nickname)||""]}),(0,i.jsx)("div",{className:a()(c.default.memberTagContainer),children:(0,i.jsxs)("div",{className:c.default.memberTagV2,children:[(0,i.jsx)(v.Z,{className:c.default.memberIconV2,src:s,width:14,height:14,viewBox:"0 0 22 22"}),(0,i.jsx)("span",{className:c.default.memberTextV2,children:"精选会员"})]})}),(0,i.jsx)("div",{className:a()(c.default.description),children:(null==d?void 0:d.desc)||""}),(0,i.jsx)("div",{className:a()(c.default.button),onClick:()=>R(!0),children:"买券看全片"}),(0,i.jsx)(x.Z,{className:c.default.close,onClick:()=>P(!1)})]}),!!(!j&&!k)&&(0,i.jsxs)("div",{className:a()(c.default.container),onClick:O,children:[(0,i.jsxs)("div",{className:c.default.memberTag,children:[(0,i.jsx)(v.Z,{className:c.default.memberIcon,src:s,width:22,height:22,viewBox:"0 0 22 22"}),(0,i.jsx)("span",{className:c.default.memberText,children:"精选会员"})]}),(null==d?void 0:null===(n=d.entRightInfo)||void 0===n?void 0:n.right_status)===1?(0,i.jsxs)("div",{className:c.default.previewInfo,children:["00:00"===(0,p.$y)(V)?(0,i.jsx)("span",{className:c.default.previewTextEnd,children:"试看结束"}):(0,i.jsxs)("span",{className:c.default.previewText,children:["试看",(0,p.$y)(V)]}),!y&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:c.default.divider}),(0,i.jsxs)("div",{className:c.default.buyButton,children:[(0,i.jsx)("span",{className:c.default.buyText,children:"解锁"}),(0,i.jsx)(v.Z,{className:c.default.arrowIcon,src:u.Z,width:12,height:12,viewBox:"0 0 12 12"})]})]})]}):null,(null==d?void 0:null===(r=d.entRightInfo)||void 0===r?void 0:r.right_status)===2?(0,i.jsx)("div",{className:a()(c.default.previewInfo,c.default.previewInfoUnlock),children:"已解锁"}):null]})]})},b=e=>{var t,l;let{awemeInfo:o}=e,r=(0,y.N)();return(null==o?void 0:o.awemeType)===f.e.Lvideo&&(null==o?void 0:null===(l=o.entertainmentVideoPaidWay)||void 0===l?void 0:null===(t=l.paid_ways[0])||void 0===t?void 0:t.paid_way)===9?(0,i.jsx)(w.k,{componentName:"JingxuanVideoTag",Slardar:r,children:(0,i.jsx)(C,(0,n._)({},e))}):null}},479141:function(e,t,l){"use strict";l.d(t,{p:function(){return f}}),l(490629),l(706056);var n=l(320165),i=l(101199),o=l(56924),r=l(103680),a=l(414061),u=l(391302),d=l(622005),s=l(310383),c=l(913285),v=l(563142);let f=e=>{let{log:t,isFromLynx:l,onCloseLynx:f,removeHideInLynxClassName:m,setHideInLynxClassName:_,showWindowByWebWhenLynx:h}=(0,v.H)(),{isActive:g=!0}=e||{},[p,w]=(0,i.useState)(l()),y=(0,s.N)(),I=p&&g&&l(),x=async e=>{var l;t("LynxEmbedPlugin onShowDouyinWindow",e);let{data:n}=await r.invoke("getLynxInfo");if((null===(l=n.url)||void 0===l?!void 0:!l.includes("/root/live"))||(null==e?void 0:e.from)!=="live")w(!1),(null==e?void 0:e.from)==="live"&&h(),f("self")};return((0,o.C)(()=>{if(I){let e=a.listen(a.EVENT.showDouyinWindow,x);return()=>{e()}}return()=>{}},[I]),(0,o.C)(()=>{w(l())},[g]),I)?(_(),(0,u.sF)())?null:(0,n.jsx)(c.k,{componentName:"LynxEmbedPlugin",Slardar:y,children:(0,n.jsx)("embed",{id:"plugin-punch-hole-1","ttplugin-id":"plugin-punch-hole-1",type:"ttplugin/v1","data-layer-type":"punch-hole",className:d.default.LynxEmbedPlugin})}):(m(),null)}},37749:function(e,t,l){"use strict";l.d(t,{B:function(){return p}}),l(490629);var n=l(320165),i=l(101199),o=l(469935),r=l.n(o),a=l(734123),u=l(933524),d=l(939165),s=l(118616),c=l(254457),v=l(386206),f=l(759894),m=l(545467),_=l(606191),h=l(980141),g=l(944180);let p=e=>{let{awemeInfo:t,recommendTagType:l,onClickGuideTag:o,onClickWhiteTag:p,className:w,userList:y,player:I,shouldShowFollowRecBtn:x,abTestData:E,guideTagTriggerSource:C,recommendTriggerSource:b,userInfo:S}=e,{userRecommendStatus:T,friendRecommendInfo:L,status:{allowSelfRecommendToFriend:N}={},stats:{recommendCount:k=0}={}}=t,{isLogin:P}=S,j=(0,i.useMemo)(()=>{let e=null==E?void 0:E.familiarRecommendEntranceCountLabelCondition;return e?k>e?`共${(0,v.qe)(k)}人推荐`:"点击推荐":"点击推荐"},[E,k]),R=(0,i.useRef)("mutual"),M=async()=>{var e,n,i,o,r,a,u,d,s,c,v;if(!t||!l||2===T||(null==L?void 0:null===(e=L.label_user_list)||void 0===e?void 0:e.length)>0)return;let{data:_,statusCode:h}=await (0,m.s$)();if(0===h){let{recommendVisibility:e}=_;R.current=0===e?"mutual":"fans"}g.Z.sendLog("recommendVideoToast",{group_id:null==t?void 0:t.awemeId,author_id:String(null==t?void 0:t.authorUserId),action_type:"show",relation_tag:null==t?void 0:null===(n=t.authorInfo)||void 0===n?void 0:n.followStatus,enter_from:(0,f.vM)(),enter_method:"guide"===l?"label":b,label_related_action:C,label_text:"guide"===l?j:void 0,like_cnt:k,follow_cnt:"plus_one"===b?null==t?void 0:null===(r=t.friendRecommendInfo)||void 0===r?void 0:null===(o=r.label_user_list)||void 0===o?void 0:null===(i=o.filter(e=>{var t;return(null==e?void 0:null===(t=e.user)||void 0===t?void 0:t.follow_status)===1}))||void 0===i?void 0:i.length:void 0,mutual_cnt:"plus_one"===b?null==t?void 0:null===(d=t.friendRecommendInfo)||void 0===d?void 0:null===(u=d.label_user_list)||void 0===u?void 0:null===(a=u.filter(e=>{var t;return(null==e?void 0:null===(t=e.user)||void 0===t?void 0:t.follow_status)===2}))||void 0===a?void 0:a.length:void 0,friend_user_id:null==t?void 0:null===(v=t.friendRecommendInfo)||void 0===v?void 0:null===(c=v.label_user_list)||void 0===c?void 0:null===(s=c.map(e=>{var t;return null==e?void 0:null===(t=e.user)||void 0===t?void 0:t.uid}))||void 0===s?void 0:s.join(","),recommend_range:R.current})},[V,D]=(0,u.Z)(null,void 0,[t,l]);(0,d.o)(()=>{D&&M()},[D,t,l]),(0,d.o)(()=>{var e,l,n,i,o,r,a,u,d,s,c,v,m,_,h;if(!!N&&!!P&&!!D){if(2===T||(null==L?void 0:null===(e=L.label_user_list)||void 0===e?void 0:e.length)>0){let e=2!==T||(null==L?void 0:null===(l=L.label_user_list)||void 0===l?void 0:l.length)?3:0;g.Z.sendLog("friendsWatchingShow",{group_id:null==t?void 0:t.awemeId,author_id:String(null==t?void 0:t.authorUserId),enter_from:(0,f.vM)(),is_friend_watching:e,like_cnt:e?k:void 0,follow_cnt:e?null==t?void 0:null===(o=t.friendRecommendInfo)||void 0===o?void 0:null===(i=o.label_user_list)||void 0===i?void 0:null===(n=i.filter(e=>{var t;return(null==e?void 0:null===(t=e.user)||void 0===t?void 0:t.follow_status)===1}))||void 0===n?void 0:n.length:void 0,mutual_cnt:e?null==t?void 0:null===(u=t.friendRecommendInfo)||void 0===u?void 0:null===(a=u.label_user_list)||void 0===a?void 0:null===(r=a.filter(e=>{var t;return(null==e?void 0:null===(t=e.user)||void 0===t?void 0:t.follow_status)===2}))||void 0===r?void 0:r.length:void 0,friend_user_id:null==t?void 0:null===(c=t.friendRecommendInfo)||void 0===c?void 0:null===(s=c.label_user_list)||void 0===s?void 0:null===(d=s.map(e=>{var t;return null==e?void 0:null===(t=e.user)||void 0===t?void 0:t.uid}))||void 0===d?void 0:d.join(","),recommend_user_relation:null==t?void 0:null===(m=t.friendRecommendInfo)||void 0===m?void 0:null===(v=m.label_user_list)||void 0===v?void 0:v.map(e=>{var t,l;return`${null==e?void 0:null===(t=e.user)||void 0===t?void 0:t.uid}:${null==e?void 0:null===(l=e.user)||void 0===l?void 0:l.follow_status}`}).join(","),recommend_user_app_list:null==t?void 0:null===(h=t.friendRecommendInfo)||void 0===h?void 0:null===(_=h.label_user_list)||void 0===_?void 0:_.map(e=>{var t;return`${null==e?void 0:null===(t=e.user)||void 0===t?void 0:t.uid}:${null==e?void 0:e.recommend_app_id}`}).join(",")})}}},[t,D]);let A=()=>{null==o||o()},F=()=>{null==p||p()},O=()=>{null==I||I.emit(a.Events.USER_ACTION,{action:"recommend",source:"plus_one"})},U=(0,i.useMemo)(()=>{var e,l,i,o,a,u;return(null==y?void 0:y.length)===1?(0,n.jsxs)("div",{className:_.default.recommendText,children:[(0,n.jsx)("span",{className:r()(_.default.nickname,_.default.singleUser),children:null==y?void 0:null===(u=y[0])||void 0===u?void 0:null===(a=u.user)||void 0===a?void 0:a.nickname}),"推荐"]}):(0,n.jsxs)("div",{className:_.default.recommendText,children:[(0,n.jsx)("span",{className:_.default.nickname,children:null==t?void 0:null===(o=t.friendRecommendInfo)||void 0===o?void 0:null===(i=o.label_user_list)||void 0===i?void 0:null===(l=i[0])||void 0===l?void 0:null===(e=l.user)||void 0===e?void 0:e.nickname})," ","等 ",null==y?void 0:y.length," 人推荐"]})},[y]);return l?(0,n.jsx)("div",{className:r()("xgplayer-recommend-tag",_.default.wrapper,w),ref:V,children:(()=>{switch(l){case"guide":return(0,n.jsxs)("div",{className:r()(_.default.guideTagContainer),onClick:A,children:[(0,n.jsx)(s.Z,{src:h.Z,width:16,height:16,viewBox:"0 0 16 16"}),(0,n.jsx)("span",{className:_.default.text,children:j}),(0,n.jsx)(s.Z,{className:_.default.arrowSvg,src:c.Z,width:12,height:12,viewBox:"0 0 12 12"})]});case"white":return(null==y?void 0:y.length)>0?(0,n.jsxs)("div",{className:_.default.whiteTagContainer,children:[(0,n.jsxs)("div",{className:_.default.whiteTag,onClick:F,children:[(0,n.jsx)("div",{className:_.default.avatarList,children:null==y?void 0:y.slice(0,3).map((e,t)=>{var l,i,o,r;return(0,n.jsx)("img",{src:null==e?void 0:null===(o=e.user)||void 0===o?void 0:null===(i=o.avatar)||void 0===i?void 0:null===(l=i.url_list)||void 0===l?void 0:l[0],className:_.default.avatar,style:{zIndex:3-t}},(null==e?void 0:null===(r=e.user)||void 0===r?void 0:r.uid)||t)})}),U]}),x&&(0,n.jsx)("div",{className:_.default.recommendIconWrapper,onClick:O,children:(0,n.jsx)(s.Z,{src:h.Z,width:16,height:16,viewBox:"0 0 16 16"})})]}):(0,n.jsx)("div",{});default:return(0,n.jsx)("div",{})}})()}):null}},797486:function(e,t,l){"use strict";l(706056),l(490629);var n=l(101199),i=l(897471),o=l.n(i),r=l(939165),a=l(618759),u=l(915821),d=l(237869),s=l(414061),c=l(499059),v=l(855357),f=l(632982);let m=e=>{var t,l,n;return(null==e?void 0:e.awemeId)||(null==e?void 0:null===(n=e.cellRoom)||void 0===n?void 0:null===(l=n.rawdata)||void 0===l?void 0:null===(t=l.owner)||void 0===t?void 0:t.web_rid)};t.Z=e=>{let{swiper:t,fetchSlideList:l,awemeInfoList:i,setAwemeInfoList:_,abTestData:h}=e,g=(0,n.useRef)(0),p=(0,n.useRef)(!1),w=(0,n.useRef)(!1),y=e=>{let{currentAwemeId:l}=e;g.current<=i.length-1&&_(e=>{let n=e.filter((e,t)=>t<=g.current).map(e=>m(e)),i=e.map((e,t)=>t>g.current||m(e)===l?e:null).filter(e=>!!e),o=i.findIndex(e=>!n.includes(m(e)));return -1!==o?(g.current=o,null==t||t.slideTo(o,0),w.current=!1):(g.current=0,setTimeout(()=>{null==t||t.slideTo(0,0)},0),w.current=!0),i})},I=async e=>{var t,n;let{currentAwemeId:i}=e,o=await l({mode:"loadmore",pull_type:18,refresh_type:18});0===o.statusCode&&(null===(t=o.data)||void 0===t?void 0:t.length)&&_(e=>{let t=(o.data||[]).filter(t=>!e.find(e=>m(e)===m(t)));return[...e.map((e,l)=>{if(m(e)===i)return e;if(l>g.current&&!(null==e?void 0:e.isAds)&&[v.e.Normal,v.e.Note].includes(null==e?void 0:e.awemeType)&&t.length){let e=t[0];return t.splice(0,1),e}return e}),...t]}),0===o.statusCode&&!(null===(n=o.data)||void 0===n?void 0:n.length)&&w.current&&!o.hasMore&&(g.current=0,w.current=!1,s.emit(s.EVENT.refreshPage))};return(0,r.o)(()=>{var e;return(0,f.oX)(async()=>{if(!p.current&&!!t&&"number"==typeof(null==t?void 0:t.activeIndex)){p.current=!0;try{let e=m(i[t.activeIndex]);y({currentAwemeId:e}),await I({currentAwemeId:e})}catch(e){}p.current=!1}},!(null==t?void 0:null===(e=t.slides)||void 0===e?void 0:e.length))},[l,t,i,_]),(0,n.useEffect)(()=>{if(w.current&&i.length>1){var e,l,n;w.current=!1;let i=null===(e=c.Le.getConfig(c.gI.IsSidebarShow))||void 0===e?void 0:e.isModal,o=null===(l=c.Le.getConfig(c.gI.IsInLookMiniModal))||void 0===l?void 0:l.isInMiniModal,r=null===(n=c.Le.getConfig(c.gI.IsInModalVideo))||void 0===n?void 0:n.isInModal;!i&&!o&&!r&&(null==t||t.slideNext())}},[t,i]),(0,n.useEffect)(()=>{if(i.length){let e=o()(i,e=>m(e));e.length!==i.length&&_(e)}},[i,_]),{updateActiveIndex:(e,t)=>{(0,f.C6)(),t?g.current=e:g.current=Math.max(e,g.current);let l=(0,a.FJ)().awemePcClient||"0.0.0";(0,a.DT)()&&(0,u.y)(l,">=","4.3.0")&&(0,d.PZ)(i,g.current)}}}},544642:function(e,t,l){"use strict";l.d(t,{B:function(){return n}});var n={RECOMMEND:"recommend",FOLLOW:"follow",FRIEND:"friend",TOPIC:"topic"}},941976:function(e,t,l){"use strict";l.d(t,{JA:function(){return S},zg:function(){return T}});var n=l("629686"),i=l("402748");l("706056"),l("374954"),l("490629"),l("932651"),l("679308");var o=l("101199"),r=l("426038"),a=l("855357"),u=l("939165"),d=l("709705"),s=l("601034"),c=l("138899"),v=l("806904"),f=l("414061"),m=l("499059"),_=l("618759"),h=l("600767"),g=l("36757"),p=l("624508"),w=new p.h({clickPreviousVideo:{eventName:"click_previous_video",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",click_from:"click_button",is_small_window:"0",play_material:"video"}},clickNextVideo:{eventName:"click_next_video",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",click_from:"click_button",is_small_window:"0",play_material:"video"}},feedRequest:{eventName:"feed_request",params:{enter_from:"",is_first:0,is_click:0,is_auto_play:0,unread_feed_nums:0}},feedRequestResponse:{eventName:"feed_request_response",params:{enter_from:"",is_first:0,video_count:0,duration:0,is_success:0,is_click:0,is_auto_play:0,live_position:-1,unread_feed_nums:0,is_retry:0,http_code:0,log_id:"",current_list_vid:""}},feedSlideBlocked:{eventName:"feed_slide_blocked",params:{duration:0,count:0,enter_from:""}}}),y=l("544642"),I=l("94109"),x=l("37821"),E=l("205030");function C(){let e=(0,d.$o)(r.LocalStorageKeys.PLAYER_NEXT_AUTOPLAY);return Number(null!=e?e:0)}let b=Object.keys(y.B).map(e=>y.B[e]),S=e=>{let{refCancelTabFeedFunc:t,setAwemeInfoList:l,fetchSlideList:o,fromTab:r,cb:a}=e;(async()=>{var e,u,d,v;null==t||null===(e=t.current)||void 0===e||e.call(t),l([]);let f=0;b.includes(r)&&(f=new Date().getTime(),w.sendLog("feedRequest",{enter_from:(0,s.yW)(),is_first:0,is_click:1,is_auto_play:C()}));let m=await o({mode:"refresh"});b.includes(r)&&w.sendLog("feedRequestResponse",(0,i._)((0,n._)({enter_from:(0,s.yW)(),is_first:0,video_count:null===(u=m.data)||void 0===u?void 0:u.length,duration:new Date().getTime()-f,is_success:0===m.statusCode?1:0,is_click:1,is_auto_play:C()},(0,c.p0)(null==m?void 0:m.data)),{is_retry:(null==m?void 0:m.isRetry)||0,http_code:null==m?void 0:m.httpCode,log_id:null==m?void 0:m.logPb,current_list_vid:null==m?void 0:null===(v=m.data)||void 0===v?void 0:null===(d=v.map)||void 0===d?void 0:d.call(v,e=>null==e?void 0:e.awemeId)})),0===m.statusCode&&m.data&&l(m.data),null==a||a()})()},T=e=>{let{swiper:t,awemeInfoList:l,setAwemeInfoList:p,swiperCallBack:S,fetchSlideList:T,fromTab:L,lastItemCb:N,abTestData:k={},initialRecommendAwemeList:P,initialRecommendAwemeListPromise:j,maxLimit:R,enableSlideBlockedLog:M=!1}=e,V=(0,o.useRef)(!1);(0,o.useRef)(!1);let D=(0,o.useRef)([]),A=(0,o.useRef)(!1),F=(0,o.useRef)(0),{markStart:O,markEnd:U}=function(e){let t=(0,o.useRef)(0),l=(0,o.useRef)(0),n=(0,o.useRef)(!1),i=(0,o.useCallback)(()=>{if(!!e){if(n.current){l.current+=1;return}l.current=1,t.current=performance.now(),n.current=!0}},[]);return{markStart:i,markEnd:(0,o.useCallback)(()=>{if(!!e){if(n.current){n.current=!1;let e=performance.now()-t.current;w.sendLog("feedSlideBlocked",{enter_from:(0,s.yW)(),duration:e,count:l.current})}}},[])}}(M),B=(0,o.useCallback)((e,t)=>{let l=[];for(let n=0;n{var l,i,o,r,u,d;return(null==e?void 0:e.awemeType)!==a.e.LiveCard?(null==e?void 0:e.awemeId)===(null===(l=t[n])||void 0===l?void 0:l.awemeId):(null==e?void 0:null===(o=e.cellRoom)||void 0===o?void 0:null===(i=o.rawdata)||void 0===i?void 0:i.id_str)===(null===(d=t[n])||void 0===d?void 0:null===(u=d.cellRoom)||void 0===u?void 0:null===(r=u.rawdata)||void 0===r?void 0:r.id_str)})&&l.push(t[n]);return l},[]),H=(0,o.useCallback)(async e=>{V.current=!0;let o=0;b.includes(L)&&(o=new Date().getTime(),w.sendLog("feedRequest",{enter_from:(0,s.yW)(),is_first:0,is_click:0,is_auto_play:C(),unread_feed_nums:(null==l?void 0:l.length)-(null==t?void 0:t.activeIndex)}));let r=await T((0,n._)({mode:"loadmore"},function(e){let{fromTab:t}=e,l={};return t===y.B.RECOMMEND&&(l=function(e){let{abTestData:t}=e,l={};return t.loadmoreCount>0&&(l.reqCount=t.loadmoreCount),l}(e)),l}({abTestData:k,fromTab:L})));if(b.includes(L)){var a,u,d;w.sendLog("feedRequestResponse",(0,i._)((0,n._)({enter_from:(0,s.yW)(),is_first:0,video_count:null===(a=r.data)||void 0===a?void 0:a.length,duration:new Date().getTime()-o,is_success:0===r.statusCode?1:0,is_click:0,is_auto_play:C(),unread_feed_nums:(null==l?void 0:l.length)-(null==t?void 0:t.activeIndex)},(0,c.p0)(null==r?void 0:r.data)),{is_retry:(null==r?void 0:r.isRetry)||0,http_code:null==r?void 0:r.httpCode,log_id:null==r?void 0:r.logPb,current_list_vid:null==r?void 0:null===(d=r.data)||void 0===d?void 0:null===(u=d.map)||void 0===u?void 0:u.call(d,e=>null==e?void 0:e.awemeId)}))}0===r.statusCode?(F.current=0,p(l=>{let n=B(l,r.data),i=[...l,...n];if(R)for(let e=0;e0&&void 0!==arguments[0]&&arguments[0];arguments.length>1&&void 0!==arguments[1]&&arguments[1];let n=Object.assign({},null==k?void 0:k.loadMore,null==k?void 0:k.loadMoreServer),i="recommend"===(0,s.yW)()&&(null==n?void 0:n.defaultCount)||4;if(e||Math.abs((null==t?void 0:t.activeIndex)-l.length)<=i&&!V.current){V.current=!0;let e=async()=>{await H(null)};if("recommend"!==(0,s.yW)())(0,v.l)(e,{timeout:3e3});else if(null==k?void 0:k.loadIdlecallbackDelay){var o;(0,v.l)(e,{timeout:null!==(o=null==k?void 0:k.loadIdlecallbackDelay)&&void 0!==o?o:3e3})}else e()}},[t,l,k,H]);(0,o.useEffect)(()=>{let e=Object.assign({},null==k?void 0:k.loadMore,null==k?void 0:k.loadMoreServer),n=null==e?void 0:e.bufferEmitCount;if((null==e?void 0:e.bufferEmit)&&n){let e=f.listen(f.EVENT.bufferedLoadMore,()=>{Math.abs((null==t?void 0:t.activeIndex)-l.length)<=n&&!V.current&&H()});return()=>{null==e||e()}}},[t,H,l.length,k]);let z=(0,o.useCallback)(e=>{let l="number"==typeof e?e:t.activeIndex;p(e=>e.slice(0,l).concat(e.slice(l+1))),Z()},[t,Z]);(0,u.o)(()=>f.listen(f.EVENT.firstLoadMore,()=>{Z(!1,!0)}),[Z]);let G=(0,o.useCallback)(function(e,t){let{isFirst:l=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!l)null==S||S("prev"),e&&"click_button"!==e&&f.emit(f.EVENT.reportPlayPrev,{clickFrom:e})},[S]),W=(0,o.useCallback)(function(e,t){let{isLast:l=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Z(),l){null==N||N();return}let n=m.Le.getConfig(m.gI.VideoFeedList),i=(null==n?void 0:n.autoPlayCount)||1;"auto"===e?m.Le.setConfig(m.gI.VideoFeedList,{autoPlayCount:i+1}):null==S||S("next"),e&&"click_button"!==e&&f.emit(f.EVENT.reportPlayNext,{clickFrom:e})},[Z,N,S]),q=(0,o.useCallback)(e=>{var n,i;if((null==t?void 0:t.destroyed)||!t)return;let{from:o}=e||{};m.Le.setConfig(m.gI.FeedBackInfo,{activeIndex:null!==(i=t.activeIndex+1)&&void 0!==i?i:-1}),t.activeIndex===l.length-1&&O(),W(o,l[t.activeIndex],{isLast:t.activeIndex===l.length-1}),null===(n=t.slideNext)||void 0===n||n.call(t)},[t,l,W]),K=(0,o.useCallback)(e=>{var n,i;if(!t||t.destroyed)return;m.Le.setConfig(m.gI.FeedBackInfo,{activeIndex:(i=t.activeIndex-1,i)});let{from:o}=e||{};G(o,l[t.activeIndex],{isFirst:0===t.activeIndex}),null===(n=t.slidePrev)||void 0===n||n.call(t)},[t,l,G]),Y=(0,o.useCallback)(()=>{Z(!0)},[Z]);(0,o.useEffect)(()=>{(async()=>{var e,t,l,o,a;if(null==P?void 0:P.length)return;if(j instanceof Promise){let t=await j;if(null==t?void 0:null===(e=t.recommendAwemeList)||void 0===e?void 0:e.length){p(t.recommendAwemeList);return}}let u=(0,g.getCookiesItem)(r.CookieKeys.DebugVids);if(u)try{let e=JSON.parse(u||"[]");if(!(null==e?void 0:e.length))return;let t=await (0,h.c7)({itemIds:e,from:"useBasicSlideFunc.tsx",originType:x.F.SlideList});p((null==t?void 0:t.detail)||[]);return}catch(e){}let d=0;b.includes(L)&&(d=new Date().getTime(),w.sendLog("feedRequest",{enter_from:(0,s.yW)(),is_first:1,is_click:0,is_auto_play:C()})),V.current=!0;let v=await T({mode:"refresh"});V.current=!1,b.includes(L)&&w.sendLog("feedRequestResponse",(0,i._)((0,n._)({enter_from:(0,s.yW)(),is_first:1,video_count:null===(t=v.data)||void 0===t?void 0:t.length,duration:new Date().getTime()-d,is_success:0===v.statusCode?1:0,is_click:0,is_auto_play:C(),live_position:null==v?void 0:null===(l=v.data)||void 0===l?void 0:l.findIndex(e=>(null==e?void 0:e.awemeType)===101)},(0,c.p0)(null==v?void 0:v.data)),{is_retry:(null==v?void 0:v.isRetry)||0,http_code:null==v?void 0:v.httpCode,log_id:null==v?void 0:v.logPb,current_list_vid:null==v?void 0:null===(a=v.data)||void 0===a?void 0:null===(o=a.map)||void 0===o?void 0:o.call(a,e=>null==e?void 0:e.awemeId)})),0===v.statusCode&&v.data&&p(e=>[...e||[],...B(e,v.data)||[]])})()},[P,j]),(0,u.o)(()=>{let e=f.listen(f.EVENT.wallPaperInsert,e=>{let t=(0,d.$o)(r.LocalStorageKeys.WallPaper);if((null==t?!void 0:!t.disappear)&&((null==t?!void 0:!t.timetamp)||new Date(Date.now()).toDateString()!==new Date(null==t?void 0:t.timetamp).toDateString()))p(t=>{var l;let n=t.findIndex(t=>t.awemeId===e);return n>-1&&(null===(l=D.current)||void 0===l?void 0:l.length)&&!A.current?(A.current=!0,(0,d.qQ)(r.LocalStorageKeys.WallPaper,{timetamp:Date.now()}),t.slice(0,n+1).concat(D.current,t.slice(n+1))):t})});return()=>{null==e||e()}},[]),(0,o.useEffect)(()=>{var e;let t=null!==(e=m.Le.getConfig(m.gI.CheckAwemeList))&&void 0!==e?e:[],n=l.filter(e=>e.awemeType!==a.e.LiveCard);if(n.length>0){if(0===t.length){let e=n.map(e=>({vid:e.awemeId,time:Date.now(),dy_q:Number(e.dyQ),tag:e.isAds?2:0}));m.Le.setConfig(m.gI.CheckAwemeList,e)}if(t.length>0){let e=t[t.length-1],l=n.findIndex(t=>t.awemeId===e.vid),i=n.slice(l+1).map(e=>({vid:e.awemeId,time:Date.now(),dy_q:Number(e.dyQ),tag:e.isAds?2:0}));m.Le.setConfig(m.gI.CheckAwemeList,t.concat(i))}}},[l]),(0,o.useEffect)(()=>{if(t){let e=-1,n=()=>{-1!==e&&(t.activeIndex>e?W:G)("drag",l[t.activeIndex])},i=()=>{e=t.activeIndex,t.once("slideChange",n)},o=()=>{setTimeout(()=>e=-1),(0,m.Vv)(E.CJ.drag)},r=()=>{t.once("touchMove",i)};try{t.on("touchStart",r),t.on("touchEnd",o)}catch(e){}return()=>{try{t.off("touchMove",i),t.off("touchEnd",o),t.off("touchStart",r)}catch(e){}}}},[t,l]);let $=(0,o.useMemo)(()=>{let e={};return((null==k?void 0:k.preloadCountApplySideServer)==="both"||(0,_.DT)()&&(null==k?void 0:k.preloadCountApplySideServer)==="client"||!(0,_.DT)()&&(null==k?void 0:k.preloadCountApplySideServer)==="web")&&(e=null==k?void 0:k.preloadCountServer),Object.assign({},null==k?void 0:k.preloadCount,e)},[k]);return(0,o.useEffect)(()=>{var e,n;if(t&&!(null==k?void 0:null===(e=k.preloadStartBuffer)||void 0===e?void 0:e.notifyV4)){let e=(null==$?void 0:$.count)||1,i=()=>{var n;if(null==k?void 0:null===(n=k.preloadStartBuffer)||void 0===n?void 0:n.notifyV2){let n=t.activeIndex+2,i=l.slice(n),o=(0,c.$8)(i).slice(0,e);m.Le.setConfig(m.gI.PreloadList,o),f.emit(f.EVENT.promotePreload)}else if(null==$?void 0:$.open){let n=t.activeIndex+2,i=l.slice(n).filter(e=>(null==e?void 0:e.awemeType)===a.e.Normal&&!(0,I.Ni)(e)).slice(0,e);m.Le.setConfig(m.gI.PreloadList,i)}else{let e=l.slice(t.activeIndex+1,t.activeIndex+3).filter(e=>!(0,I.Ni)(e));m.Le.setConfig(m.gI.PreloadList,e)}};try{(null==k?void 0:null===(n=k.preloadStartBuffer)||void 0===n?void 0:n.notifyV3)&&i(),t.on("slideChange",i)}catch(e){}return()=>{try{t.off("slideChange",i)}catch(e){}}}},[t,l,$,k]),(0,o.useEffect)(()=>{var e;if((null==k?void 0:null===(e=k.preloadStartBuffer)||void 0===e?void 0:e.notifyV4)&&t){let e=f.listen(f.EVENT.firstFrameReady,()=>{let e=(null==$?void 0:$.count)||1,n=t.activeIndex+2,i=l.slice(n),o=(0,c.$8)(i).slice(0,e);m.Le.setConfig(m.gI.PreloadList,o),f.emit(f.EVENT.promotePreload)});return()=>{e()}}},[t,$,k,l]),(0,o.useEffect)(()=>{if(t&&(null==l?void 0:l.length)===0)try{t.slideTo(0,0)}catch(e){}},[t,l]),{deleteCurrentSwiper:z,nextPageFunc:q,lastPageFunc:K,retryFunc:Y}}},295613:function(e,t,l){"use strict";l.d(t,{g:function(){return g}});var n=l(629686);l(490629),l(706056);var i=l(101199),o=l(855357),r=l(939165),a=l(72430),u=l(499059),d=l(609555),s=l(414061),c=l(880327),v=l(332009),f=l(265018),m=l(365169);let _=[o.e.LiveCard,o.e.WordCupCard,o.e.Article],h=[o.e.LiveCard,o.e.WordCupCard,o.e.Note,o.e.Article],g=e=>{let{swiper:t,setAwemeInfoList:l,awemeInfoList:g,awemeInfo:p,refMixPlayer:w,liveCardDisable:y=!0,scrollRef:I,isInnerFeed:x,enterFrom:E}=e,C=(0,i.useRef)(null),b=(0,f.Z)({refMixPlayer:w,from:"sideList"}),{isWebMiniWin:S,isListenVideoMiniWin:T}=(0,m.Iq)(e=>{let{isWebMiniWin:t,isListenVideoMiniWin:l}=e;return{isWebMiniWin:t,isListenVideoMiniWin:l}}),[L,N]=(0,i.useState)(!1),k=(0,i.useRef)({}),P=(0,i.useRef)([]),j=(0,i.useRef)(0);P.current=g,C.current=null==I?void 0:I.current;let R=(0,i.useMemo)(()=>S||b||T,[S,b,T]);return(0,r.o)(()=>{var e,n;let i=void 0!==x&&x||(null===(e=u.Le.getConfig(u.gI.IsInLookMiniModal))||void 0===e?void 0:e.isInMiniModal),o=null==w?void 0:null===(n=w.current)||void 0===n?void 0:n.getPlayer();if(!(o&&!o.isUserActive&&E&&["follow","friend"].includes(E)&&(S||T))){if(R&&(!i||!L)&&t&&g){for(let e=0;e{var e;let n=0,i=[...P.current];for(let e=0;et.slideTo(t.activeIndex+n,0),0)}}}},[R,L,t,x]),(0,r.o)(()=>{let e=s.listen(s.EVENT.exitModalVideo,()=>{var e,t,l,n;if((null===(e=C.current)||void 0===e?void 0:e.setScrollData)&&(null===(l=P.current)||void 0===l?void 0:null===(t=l.filter(e=>"releated"===e.dataType))||void 0===t?void 0:t.length)>0){let e=null===(n=P.current)||void 0===n?void 0:n.filter(e=>"releated"!==e.dataType);C.current.setScrollData({dataList:e})}});return()=>{e()}},[]),(0,r.o)(()=>{let e=s.listen(s.EVENT.changeMinWindows,e=>{var l,n;let{event:i,clickMethod:r,source:d}=e,f=null==w?void 0:null===(l=w.current)||void 0===l?void 0:l.getPlayer(),m=(null==g?void 0:null===(n=g[null==t?void 0:t.activeIndex])||void 0===n?void 0:n.awemeType)===o.e.LiveCard&&y&&"small_window_widget"!==d,_=v.s.getPlayersByScene(a.lT.Modal).length>0&&f&&v.s.getPlayerScene(null==f?void 0:f.playerId)!==a.lT.Modal;if(!m&&!_)"check"===i&&setTimeout(()=>{if(!u.Le.getConfig(u.gI.IsMiniWin))((null==g?void 0:g.length)>0||p)&&((0,c.r)()&&(null==f||f.exitFullscreen()),s.emit(s.EVENT.changeMinWindows,{event:"open",isMiniWin:!0,clickMethod:r,source:d}))},50)});return()=>e()},[g,p,w,t,y]),(0,r.o)(()=>{var e,t;let i=null==w?void 0:null===(e=w.current)||void 0===e?void 0:e.getPlayer();if(i&&!i.isUserActive&&E&&["follow","friend"].includes(E)&&(S||T))return;let o=void 0!==x&&x||(null===(t=u.Le.getConfig(u.gI.IsInLookMiniModal))||void 0===t?void 0:t.isInMiniModal);if(R&&(!o||!L)&&g&&g.length!==j.current){let e=Object.keys(k.current).length,t={};for(let l=0;l{let e=s.listen(s.EVENT.changeVideoSideBar,e=>{let{isShowRelatedCard:t,isAuthorCardShow:l}=e;N(!!(t||l))});return()=>e()},[]),{refLiveStore:k}}},620865:function(e,t,l){"use strict";l.d(t,{K:function(){return a}}),l(490629);var n=l(101199),i=l(66948),o=l(528937),r=l(499059);let a=()=>{var e;let[t,l]=(0,n.useState)((null===(e=r.Le.getConfig(r.gI.TccData))||void 0===e?void 0:e[i.TccKey.PcRechargeConfig])||i.TCC_DEFAULT_VALUE_MAP.get(i.TccKey.PcRechargeConfig));return(0,n.useEffect)(()=>{let e=!1;return(async()=>{let t=await o.get({key:i.TccKey.PcRechargeConfig,defaultValue:i.TCC_DEFAULT_VALUE_MAP.get(i.TccKey.PcRechargeConfig)});!e&&l(t)})(),()=>{e=!0}},[]),{rechargeConfig:t}}},117961:function(e,t,l){"use strict";l.d(t,{O:function(){return r}});var n=l(320165),i=l(101199),o=l(91627);let r=i.forwardRef((e,t)=>{let{active:l,children:r,className:a}=e,u=(0,i.useMemo)(()=>l?{}:{display:"none"},[l]);return(0,n.jsx)(o.w,{isActive:l,children:(0,n.jsx)("div",{className:a,ref:t,style:u,children:r})})})},197399:function(e,t,l){"use strict";l.d(t,{m:function(){return v}}),l(706056),l(490629),l(679308);var n=l(101199),i=l(426038),o=l(967139),r=l(709705),a=l(499059),u=l(618759),d=l(537056),s=l(600767),c=l(561222);let v=e=>{let{awemeInfo:t,abtestData:l,isActive:v,isLogin:f,player:m}=e,[_,h]=(0,n.useState)(!1),g=(0,n.useRef)(!1),p=(0,o.p)(t),w=(0,n.useMemo)(()=>{var e;return null===(e=a.Le.getConfig(a.gI.WallPaperIds))||void 0===e?void 0:e.includes(null==t?void 0:t.awemeId)},[t]);return(0,n.useEffect)(()=>{let e=async()=>{if(!(!1===f||!v||w||p||(0,u.DT)()||(0,u.tq)())){if(g.current){h(!0);return}try{var e;let[l,n]=await Promise.all([(0,d.Y)(),(0,s.lx)({secUid:null===(e=t.authorInfo)||void 0===e?void 0:e.secUid})]);(function(e,t,l){var n,o,a,u;let d=new Date().getTime(),s=null!==(o=(0,r.$o)(i.LocalStorageKeys.PostGuideDownloadClient))&&void 0!==o?o:{lastTimestamp:0,showTimes:0},v=d-s.lastTimestamp>=864e5,f=s.showTimes<10;if(e===c.Q.Normal&&v&&f&&!1===l&&[1,2].includes(null==t?void 0:null===(n=t.authorInfo)||void 0===n?void 0:n.followStatus)){let e=null!==(u=null===(a=(0,r.$o)(i.LocalStorageKeys.PostGuideDownloadClient))||void 0===a?void 0:a.showTimes)&&void 0!==u?u:0;return(0,r.qQ)(i.LocalStorageKeys.PostGuideDownloadClient,{lastTimestamp:new Date().getTime(),showTimes:e+1}),!0}return!1})(null==n?void 0:n.accountType,t,l)&&(g.current=!0,h(!0))}catch(e){}}};if(m)return m.once("timeupdate",e),()=>{m.off("timeupdate",e)}},[l,t,v,f,w,p,m]),{isShowGuideDownload:_}}},281934:function(e,t,l){"use strict";l.d(t,{O:function(){return a}});var n=l(101199),i=l(649310),o=l(499059);l(914014);var r=l(365169);let a=e=>{var t;let{scene:l}=e,{isFullScreen:a=!1,isCssFullScreen:u=!1}=null!==(t=(0,n.useContext)(i.C))&&void 0!==t?t:{},{isWebMiniWin:d}=(0,r.Iq)(e=>{let{isWebMiniWin:t}=e;return{isWebMiniWin:t}});(0,n.useEffect)(()=>{let e="normal";d||o.Le.getConfig(o.gI.IsMiniWin)?e="small_window":a?e="full_screen":u&&(e="full_webscreen"),o.Le.setConfig(o.gI.PlayerDisplayMode,e)},[a,u,d])}},184610:function(e,t,l){"use strict";l.d(t,{b:function(){return o}});var n=l(101199),i=l(414061);let o=e=>{let{isActive:t,player:l}=e;(0,n.useEffect)(()=>{if(t){let e=null,t=i.listen(i.EVENT.liveModalShow,()=>{l&&(e=i.listen(i.EVENT.liveModalClose,()=>{var e;null==l||null===(e=l.play)||void 0===e||e.call(l)}))});return()=>{null==t||t(),null==e||e()}}},[t,l])}},992928:function(e,t,l){"use strict";l.d(t,{g:function(){return r}}),l(76375);var n=l(101199),i=l(734123),o=l(550514);let r=e=>{let{player:t,awemeInfo:l}=e,r=(0,n.useRef)(0);(0,n.useEffect)(()=>{if(t&&l){let{seriesInfo:n,awemeId:a}=l||{},{seriesId:u,currentEpisode:d}=n||{},s=!1,c=async e=>{let{currentTime:l}=e;if(!s&&u&&a&&r.current<5&&l>=5){s=!0;try{let e=await (0,o.tJ)({episode:d,seriesId:u,awemeId:a});if((null==e?void 0:e.statusCode)===0){var n;null==t||null===(n=t.off)||void 0===n||n.call(t,i.Events.TIME_UPDATE,c)}else throw Error(null==e?void 0:e.statusMessage)}catch(e){r.current++}s=!1}};if(u){var e;return null==t||null===(e=t.on)||void 0===e||e.call(t,i.Events.TIME_UPDATE,c),()=>{var e;null==t||null===(e=t.off)||void 0===e||e.call(t,i.Events.TIME_UPDATE,c),r.current=0}}}},[t,l])}},154607:function(e,t,l){"use strict";l.d(t,{V:function(){return a}}),l(706056);var n=l(101199),i=l(263832),o=l(687581),r=l(601034);let a=e=>{let{awemeInfo:t}=e;(0,n.useEffect)(()=>{var e,l,n,a,u,d,s,c,v;(null==t?void 0:null===(e=t.anchorInfo)||void 0===e?void 0:e.type)===i.as.AnchorShop&&!(null==t?void 0:null===(a=t.anchorInfo)||void 0===a?void 0:null===(n=a.extra)||void 0===n?void 0:null===(l=n[0])||void 0===l?void 0:l.product_detail_schema)&&[1,4].includes(Number(null==t?void 0:null===(s=t.anchorInfo)||void 0===s?void 0:null===(d=s.extra)||void 0===d?void 0:null===(u=d[0])||void 0===u?void 0:u.platform))&&o.oe.event.error({name:o.Mo.ShopAnchorDataError,report:{logId:t.logPb,erroData:null==t?void 0:null===(v=t.anchorInfo)||void 0===v?void 0:null===(c=v.extra)||void 0===c?void 0:c[0],enterFromMerge:(0,r.yW)()}})},[t])}},674918:function(e,t,l){"use strict";l.d(t,{h:function(){return V}});var n=l("629686");l("490629"),l("706056");var i=l("320165"),o=l("101199"),r=l("734123"),a=l("5784"),u=l.n(a),d=l("198412"),s=l.n(d),c=l("908219"),v=l.n(c),f=l("426112"),m=l("638052"),_=l("988805"),h=l("499059"),g=l("414061"),p=l("759894"),w=l("601034"),y=l("284704"),I=l("687875");l("527553");var x=l("311921"),E=l("469935"),C=l.n(E);function b(e){let{x:t=50,y:l=50}=e,n=(0,o.useRef)(parseInt(String(1e4*Math.random()%61-30))),r={left:t-35,top:l-34,transform:`rotate(${n.current}deg)`};return(0,i.jsx)("div",{style:r,className:x.default.containerBox,children:(0,i.jsx)("img",{src:"//p-pc-weboff.byteimg.com/tos-cn-i-9r5gewecjs/feed_money_like_icon.svg",className:C()(x.default.container,x.default.heartBeat)})})}let S=e=>{var t;return(null==e?void 0:null===(t=e.delegateTarget)||void 0===t?void 0:t.tagName)==="XG-SLIDER"};var T=e=>{let{onClick:t,onLongPress:l,onDoubleClick:n,onCancelLongPress:i,longPressDelay:r=300,doubleTapDelay:a=300}=e,u=(0,o.useRef)(null),d=(0,o.useRef)(null),s=(0,o.useRef)(!1),c=(0,o.useRef)(!1),v=(0,o.useRef)(!1);return(0,o.useEffect)(()=>()=>{u.current&&(clearTimeout(u.current),u.current=null),d.current&&(clearTimeout(d.current),d.current=null)},[]),{onMouseDown:e=>{if(!(0!==e.button||S(e)))u.current&&(s.current=!0,clearTimeout(u.current),u.current=null),s.current&&n(e),c.current=!0,u.current=setTimeout(()=>{!s.current&&!c.current&&t(e),s.current=!1,clearTimeout(u.current),u.current=null},a),d.current=setTimeout(()=>{v.current=!0,l(e),clearTimeout(d.current),d.current=null},r)},onMouseUp:e=>{if(!(0!==e.button||S(e)))clearTimeout(d.current),d.current=null,c.current=!1,v.current&&(v.current=!1,i(e))},onMouseLeave:e=>{clearTimeout(u.current),clearTimeout(d.current),u.current=null,d.current=null,v.current&&i(e),c.current=!1,v.current=!1,s.current=!1}}},L=l("63601"),N=l("310383"),k=l("304217"),P=l("373398"),j=l("913285"),R=l("37285");let M=e=>{let{isActive:t,awemeInfo:l,disableShortCut:a,abtestData:d}=e||{},c=(0,L.n)(),x=(0,o.useRef)(0),E=(0,o.useRef)(0);(0,o.useRef)(()=>void 0);let[C,S]=(0,o.useState)([]);(0,o.useRef)(1);let{onMouseDown:N,onMouseLeave:j,onMouseUp:M}=T({onClick:e=>{var t,l;let n=(0,k.H)(c);if(e.target===(null==c?void 0:c.root)||e.target===(null==c?void 0:c.video)||e.target===(null==c?void 0:c.innerContainer)||e.target===(null==c?void 0:null===(t=c.video)||void 0===t?void 0:t.__canvas)||n){if(null==c?void 0:null===(l=c.openGeneralSearchModalSlide)||void 0===l?void 0:l.call(c,{from:"pause"})){c.emit(r.Events.USER_ACTION,{action:"click_video_area"});return}(null==c?void 0:c.paused)?(c.play(),c.emitUserAction(r.Events.USER_ACTION,"switch_play_pause",{action:"switch_play_pause",paused:!0,pluginName:"click"})):(c.pause(),c.emitUserAction(r.Events.USER_ACTION,"switch_play_pause",{action:"switch_play_pause",paused:!1,pluginName:"click"}))}},onLongPress:e=>{var t;let n=(0,k.H)(c);if(e.target===(null==c?void 0:c.root)||e.target===(null==c?void 0:c.video)||e.target===(null==c?void 0:c.innerContainer)||e.target===(null==c?void 0:null===(t=c.video)||void 0===t?void 0:t.__canvas)||n){if(h.Le.getConfig(h.gI.disableSpeed)&&!h.Le.getConfig(h.gI.IsMiniWin)){g.emit(g.EVENT.loginBlockKeyBoard,{speed:!0});return}!(0,f.Jt)(l)&&(h.Le.setConfig(h.gI.PlayRatioBeforeLongPress,c.playbackRate),c.emit(R.B.ChangePlayRate,{rate:2,notStorage:!0}),m.logInstance.sendLog("holdVideoSpeed",{group_id:null==l?void 0:l.awemeId,enter_from:(0,p.vM)(),enter_from_merge:(0,w.yW)()}))}},onCancelLongPress:()=>{if(!(0,f.Jt)(l)){let e=h.Le.getConfig(h.gI.PlayRatioBeforeLongPress);c.emit(R.B.ChangePlayRate,{rate:e||1}),h.Le.setConfig(h.gI.PlayRatioBeforeLongPress,0)}},onDoubleClick:e=>{var t;let l=(0,k.H)(c);(e.target===(null==c?void 0:c.root)||e.target===(null==c?void 0:c.video)||e.target===(null==c?void 0:c.innerContainer)||e.target===(null==c?void 0:null===(t=c.video)||void 0===t?void 0:t.__canvas)||l)&&c.emit("onStar",{event:e,clickMethod:"mouse"})}});return(0,o.useEffect)(()=>{if(c&&t){var e,i,o;let t=(0,k.H)(c),f=v()(e=>{let t=0,l=0;if(e&&"keydown"===e.type){var n,i;t=(null==c?void 0:null===(n=c.root)||void 0===n?void 0:n.clientWidth)/2,l=(null==c?void 0:null===(i=c.root)||void 0===i?void 0:i.clientHeight)/2}else t=null==e?void 0:e.offsetX,l=null==e?void 0:e.offsetY;let o=Date.now();S(e=>(x.current++,[...e,{x:t,y:l,index:x.current,timeFlag:o}])),setTimeout(()=>{S(e=>e.filter(e=>e.timeFlag!==o))},1e3)},300),m=(0,y.e)((e,t)=>{var l;if("mouse"===t&&(null==c?void 0:null===(l=c.openGeneralSearchModalSlide)||void 0===l?void 0:l.call(c,{from:"pause"}))){c.emit(r.Events.USER_ACTION,{action:"click_video_area"});return}(null==c?void 0:c.paused)?(c.play(),c.emitUserAction(r.Events.USER_ACTION,"switch_play_pause",{action:"switch_play_pause",paused:!0,pluginName:"click"})):(c.pause(),c.emitUserAction(r.Events.USER_ACTION,"switch_play_pause",{action:"switch_play_pause",paused:!1,pluginName:"click"}))},(e,t)=>{c.emit("onStar",{event:e,clickMethod:t})},300),g=e=>{(e.target===c.root||e.target===c.video||e.target===c.innerContainer||e.target===c.video.__canvas||t)&&m(e,"mouse")},p={space:{keyCode:I.bf.Space.keyCode,action:e=>{m(e,"space")},disable:a,noBodyTarget:!1}},w=e=>{var t,n;if(null==d?void 0:null===(t=d.changeCandle)||void 0===t?void 0:t.includes(null==l?void 0:l.awemeId))return;let{event:i,isKeyWorkCancalLike:o,clickMethod:r}=e,a=null===(n=h.Le.getConfig(h.gI.DiggStatusCache))||void 0===n?void 0:n[null==l?void 0:l.awemeId];if(!(Date.now()-((null==a?void 0:a.lastDiggTime)||0)>1e3&&(null==a?void 0:a.diggStatus)===_.gZ.Digged&&"hot_key"===r&&o&&Date.now()-E.current>500))E.current=Date.now(),f(i)};c.config.closeVideoClick=!0,t?t.addEventListener("click",g,!1):c.root.addEventListener("click",g,!1);let C={space:null==c?void 0:null===(o=c.plugins)||void 0===o?void 0:null===(i=o.keyboard)||void 0===i?void 0:null===(e=i.keyCodeMap)||void 0===e?void 0:e.space};return u()(c,"plugins.keyboard.keyCodeMap",(0,n._)({},s()(c,"plugins.keyboard.keyCodeMap")||{},p)),c.on("onStar",w),()=>{c.config.closeVideoClick=!1,t?t.removeEventListener("click",g,!1):c.root.removeEventListener("click",g,!1),c.plugins.keyboard&&((0,P.v)({currentCodeMap:c.plugins.keyboard.keyCodeMap,additionalCodeMap:p}),u()(c,"plugins.keyboard.keyCodeMap",(0,n._)({},s()(c,"plugins.keyboard.keyCodeMap")||{},C))),c.off("onStar",w)}}},[c,t,l,null==d?void 0:d.changeCandle,!1]),(0,o.useEffect)(()=>{if(c)return c.config.closeVideoClick=!0,()=>{c.config.closeVideoClick=!1}},[c]),(0,i.jsx)(i.Fragment,{children:C.map(e=>(0,i.jsx)(b,{x:e.x,y:e.y},e.index))})},V=e=>{let t=(0,N.N)();return(0,i.jsx)(j.k,{componentName:"DoubleDiggPlugin",Slardar:t,children:(0,i.jsx)(M,(0,n._)({},e))})}},911750:function(e,t,l){"use strict";l.d(t,{k:function(){return h}});var n=l(629686),i=l(320165),o=l(101199),r=l(771410),a=l(759894),u=l(469935),d=l.n(u),s=l(135268),c=l(62575),v=l(310383),f=l(913285),m=l(627699);let _=e=>{var t,l,n,u,v,f,_;let{awemeInfo:h,onClick:g,isActive:p,className:w,onMouseEnter:y,onMouseLeave:I}=e,x=null==h?void 0:h.awemeId,E=(0,o.useMemo)(()=>{var e,t,l,n,i;return{author_id:null==h?void 0:null===(e=h.authorInfo)||void 0===e?void 0:e.uid,enter_from_real:(0,a.mo)(),enter_from:(0,a.mo)(),aweme_id:null==h?void 0:h.awemeId,group_id:null==h?void 0:h.groupId,anchor_id:null==h?void 0:null===(t=h.anchorInfo)||void 0===t?void 0:t.id,anchor_id_real:null==h?void 0:null===(l=h.anchorInfo)||void 0===l?void 0:l.id,anchor_type:"game_promote",anchor_type_real:"game_promote",enter_method:"click_label",enter_method_real:"click_label",anchor_title_tag:null==h?void 0:null===(n=h.anchorInfo)||void 0===n?void 0:n.titleTag,anchor_title:null==h?void 0:null===(i=h.anchorInfo)||void 0===i?void 0:i.title,anchor_name:"game"}},[h]),C=(0,o.useCallback)(()=>{x&&(0,s.Ck)(c.O.GameAnchor,{id:x,params:{id:x,awemeInfo:h}}).catch(e=>{}),null==g||g(),r.Z.report("anchor_entrance_click",E)},[x,h,g,E]);return(0,o.useEffect)(()=>{p&&r.Z.report("anchor_entrance_show",E)},[p,E]),(0,i.jsx)("div",{className:d()(m.default.container,m.default.gameAnchor,w),onClick:C,onMouseEnter:()=>{null==y||y()},onMouseLeave:()=>{null==I||I()},children:(0,i.jsxs)("div",{className:m.default.subContainer,children:[(0,i.jsx)("img",{src:null==h?void 0:null===(t=h.anchorInfo)||void 0===t?void 0:t.icon,className:m.default.icon}),(0,i.jsx)("div",{className:m.default.desc,children:(0,i.jsxs)("div",{className:m.default.firstLine,children:[(0,i.jsx)("div",{className:m.default.titleTag,children:null==h?void 0:null===(l=h.anchorInfo)||void 0===l?void 0:l.titleTag}),(0,i.jsx)("div",{className:m.default.delimiter}),(0,i.jsx)("div",{className:m.default.titleWrap,children:null==h?void 0:null===(n=h.anchorInfo)||void 0===n?void 0:n.title}),(null==h?void 0:null===(v=h.anchorInfo)||void 0===v?void 0:null===(u=v.extra)||void 0===u?void 0:u.category_title)?(0,i.jsx)("div",{className:m.default.dot,children:"\xb7"}):null,(0,i.jsx)("div",{className:m.default.categoryTitle,children:null==h?void 0:null===(_=h.anchorInfo)||void 0===_?void 0:null===(f=_.extra)||void 0===f?void 0:f.category_title})]})})]})})},h=e=>{let t=(0,v.N)();return(0,i.jsx)(f.k,{componentName:"GameAnchor",Slardar:t,children:(0,i.jsx)(_,(0,n._)({},e))})}},912113:function(e,t,l){"use strict";l.d(t,{P:function(){return h}});var n=l("629686");l("490629");var i=l("320165"),o=l("101199"),r=l("280647"),a=l("469935"),u=l.n(a),d=l("414061"),s=l("293634"),c=l("402748");let v=(0,o.forwardRef)((e,t)=>(0,i.jsxs)("svg",(0,c._)((0,n._)({width:10,height:6,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,i.jsx)("g",{clipPath:"url(#down_svg__clip0_8458_8595)",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.32 0h9.36L6.645 4.383a2 2 0 0 1-3.288 0L.319 0z",fill:"#fff"})}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"down_svg__clip0_8458_8595",children:(0,i.jsx)("path",{fill:"#fff",transform:"rotate(-180 5 3)",d:"M0 0h10v6H0z"})})})]})));var f=l("913285"),m=l("310383");let _=e=>{let{isActive:t,controlHeight:l,isMini:n}=e,[a,c]=(0,o.useState)(null),f=(0,o.useRef)(()=>{});return((0,o.useEffect)(()=>{let e=d.listen(d.EVENT.MountPausePopover,e=>{c(null==e?void 0:e.children),f.current=null==e?void 0:e.onClose});return()=>{var t;e(),null===(t=f.current)||void 0===t||t.call(f)}},[]),(0,r.Z)(()=>{var e;null===(e=f.current)||void 0===e||e.call(f)},[t]),t&&a)?(0,i.jsxs)("div",{className:u()(s.default.container,{[s.default.hidden]:n}),style:{bottom:l},children:[(0,i.jsx)("div",{className:s.default.content,children:a}),(0,i.jsx)(v,{className:s.default.down})]}):null},h=e=>{let t=(0,m.N)();return(0,i.jsx)(f.k,{componentName:"PausePopoverPlugin",Slardar:t,children:(0,i.jsx)(_,(0,n._)({},e))})}},760574:function(e,t,l){"use strict";l.d(t,{F:function(){return g}});var n=l(629686);l(228983),l(759943),l(706056),l(490629);var i=l(320165),o=l(101199),r=l(38578),a=l(734123),u=l(499059),d=l(414061),s=l(63601),c=l(310383),v=l(913285);let f=()=>{var e,t;return null!==(t=null===(e=u.Le.getConfig(u.gI.TabTenVVID))||void 0===e?void 0:e.split(",").length)&&void 0!==t?t:0},m=e=>{let{from:t="",isActive:l=!1,awemeInfo:n}=null!=e?e:{},i=(0,r.k)();(0,o.useEffect)(()=>i.listen(()=>{u.Le.setConfig(u.gI.TabTenVVID,"")}),[]),(0,o.useEffect)(()=>{var e;let t=null!==(e=u.Le.getConfig(u.gI.TabTenVVID))&&void 0!==e?e:"";l&&!(null==t?void 0:t.includes(null==n?void 0:n.awemeId))&&u.Le.setConfig(u.gI.TabTenVVID,`${null!=t?t:""}${t?",":""}${null==n?void 0:n.awemeId}`)},[l,null==n?void 0:n.awemeId])},_=()=>!1,h=e=>{let{awemeInfo:t,isActive:l,abtestData:n,isMiniWin:i=!1}=e,r=(0,s.n)(),[u,c]=(0,o.useState)(""),[v,h]=(0,o.useState)(0);(0,o.useEffect)(()=>{if(!l||!_())return;let e=e=>{let{currentTime:t}=e;h(t)};return null==r||r.on(a.Events.TIME_UPDATE,e),()=>{null==r||r.off(a.Events.TIME_UPDATE,e)}},[r,l]),(0,o.useEffect)(()=>{let e=d.listen(d.EVENT.closeOtherTip,e=>{"WatchLaterGuide"!==e&&c("")});return()=>e()},[]),m(e);let g=f();return(0,o.useEffect)(()=>{u&&c(""),h(0)},[l,t,r]),(0,o.useEffect)(()=>{i&&c("")},[i]),(0,o.useEffect)(()=>{if(!l||u||i)return},[l,t,v,n,g,u,i,r]),null},g=e=>{let t=(0,c.N)();return(0,i.jsx)(v.k,{componentName:"PositionBox",Slardar:t,children:(0,i.jsx)(h,(0,n._)({},e))})}},194771:function(e,t,l){"use strict";l.r(t),l.d(t,{PostGuideDownloadInner:function(){return x},PostGuideDownload:function(){return E}});var n=l("629686");l("490629");var i=l("320165"),o=l("101199"),r=l("469935"),a=l.n(r),u=l("734123"),d=l("72430"),s=l("601034"),c=l("759894"),v=l("499059"),f=l("324160"),m=l("558327"),_=l("624508"),h=new _.h({feedDownloadButtonShow:{eventName:"feed_download_button_show",params:{group_id:"",enter_from_merge:"",enter_from:"",follow_status:""}},feedDownloadButtonClick:{eventName:"feed_download_button_click",params:{group_id:"",enter_from_merge:"",enter_from:"",follow_status:"",if_highlight:0}},addToDesktopShow:{eventName:"add_to_desktop_show",params:{enter_from:"",type:"feed_follow_post_button",platform:"client",channel_id:"",ug_channel_id:""}},addToDesktopClick:{eventName:"add_to_desktop_click",params:{enter_from:"",type:"feed_follow_post_button",platform:"client",channel_id:"",ug_channel_id:""}}}),g=l("913285"),p=l("310383"),w=l("589297");let y=d.fp.MidHigh+20;function I(e){let{highlightShow:t,followStatus:l,awemeId:n}=e,{downloadHref:r,downloadAttr:u}=(0,w.o)({channelId:f.g.Notice}),d=(0,o.useCallback)(()=>{h.sendLog("feedDownloadButtonClick",{group_id:n,enter_from:(0,s.yW)(),enter_from_merge:(0,c.vM)(),follow_status:String(l),if_highlight:t?1:0}),h.sendLog("addToDesktopClick",{enter_from:(0,s.yW)(),channel_id:f.g.Notice,type:"feed_follow_post_button",ug_channel_id:v.Le.getConfig(v.gI.WebUgChannelId)||""});let e=document.createElement("a");e.setAttribute("href",r),e.setAttribute("download",u),e.click()},[r,u,n,l,t]);return(0,i.jsx)("div",{className:a()(m.default.container),style:{bottom:y},children:(0,i.jsxs)("div",{className:a()(m.default.button,{[m.default.redColor]:t}),onClick:d,children:[(0,i.jsx)("div",{className:a()(m.default.text),children:"及时接收作品更新提醒"}),(0,i.jsx)("div",{className:a()(m.default.downloadTips),children:"下载电脑客户端"})]})})}let x=e=>{var t;let{player:l,awemeInfo:n,isActive:r}=e,[a,d]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{if(l){let e=()=>{l.currentTime>=5&&d(!0)};return l.on(u.Events.TIME_UPDATE,e),()=>{l.off(u.Events.TIME_UPDATE,e)}}},[l]),(0,o.useEffect)(()=>{if(r&&n){var e;h.sendLog("feedDownloadButtonShow",{group_id:null==n?void 0:n.awemeId,enter_from:(0,s.yW)(),enter_from_merge:(0,c.vM)(),follow_status:String(null==n?void 0:null===(e=n.authorInfo)||void 0===e?void 0:e.followStatus)}),h.sendLog("addToDesktopShow",{enter_from:(0,s.yW)(),channel_id:f.g.Notice,type:"feed_follow_post_button",ug_channel_id:v.Le.getConfig(v.gI.WebUgChannelId)||""})}},[r,n]),(0,i.jsx)(I,{highlightShow:a,followStatus:null==n?void 0:null===(t=n.authorInfo)||void 0===t?void 0:t.followStatus,awemeId:null==n?void 0:n.awemeId})},E=e=>{let t=(0,p.N)();return(0,i.jsx)(g.k,{componentName:"PostGuideDownload",Slardar:t,children:(0,i.jsx)(x,(0,n._)({},e))})}},484571:function(e,t,l){"use strict";l.d(t,{n:function(){return E}});var n=l("629686"),i=l("402748"),o=l("320165"),r=l("101199"),a=l("469935"),u=l.n(a),d=l("734123"),s=l("966473"),c=l("638052"),v=l("375209"),f=l("7305"),m=l("618209");l("490629");var _=l("37285"),h=l("63601"),g=l("124834"),p={SingleLine:0,0:"SingleLine",TowLine:1,1:"TowLine"},w=l("310383"),y=l("913285"),I=l("176449");let x=e=>{var t,l,a;let{awemeInfo:w,onClick:y,isActive:x,className:E,onMouseEnter:C,onMouseLeave:b}=e,{displayState:S}=function(e){let{awemeInfo:t,isActive:l}=e,n=(0,h.n)(),i=(0,r.useRef)(!0),o=(0,r.useRef)(!1),[a,u]=(0,r.useState)(0),s=(0,r.useCallback)(()=>{if(!o.current){var e,t;null==n||null===(e=n.on)||void 0===e||e.call(n,_.B.TimeUpdate,f),null==n||null===(t=n.on)||void 0===t||t.call(n,d.Events.SEEKING,m)}o.current=!0},[n]),c=(0,r.useCallback)(()=>{if(o.current){var e,t;null==n||null===(e=n.off)||void 0===e||e.call(n,_.B.TimeUpdate,f),null==n||null===(t=n.off)||void 0===t||t.call(n,d.Events.SEEKING,m)}o.current=!1},[n]),v=(0,r.useCallback)(()=>{i.current=!0},[]),f=(0,r.useCallback)(e=>{let{currentTime:t}=e||{};t>=16&&(i.current=!1,u(1),c())},[n,t,c]),m=(0,r.useCallback)(e=>{let{currentTime:t}=e;t>=16&&(u(1),c()),i.current=!1},[c]),p=(0,r.useCallback)(()=>{u(1),v(),s()},[s,v]);return(0,g.u)(n,_.B.Ended,p),(0,r.useEffect)(()=>{v()},[l,v]),(0,r.useEffect)(()=>{u(0),v()},[t.awemeId,v]),(0,r.useEffect)(()=>{if(!!l){if(n&&i.current)return s(),()=>{c()}}},[n,t,l,s,c]),(0,r.useEffect)(()=>{(null==n?void 0:n.currentTime)&&f({currentTime:n.currentTime})},[n]),{displayState:a}}({isActive:x,awemeInfo:w}),T=(null==w?void 0:null===(l=w.anchorInfo)||void 0===l?void 0:null===(t=l.extra)||void 0===t?void 0:t[0])||{},L=(0,h.n)(),N=(0,s.x)(()=>{c.logInstance.sendLog("productEntranceShow",(0,i._)((0,n._)({},(0,v.R)(w)),{ecom_entrance_form:"video_cart_tag",if_qianchuan_ad:0}))}),k=(null==T?void 0:T.tags)||[],P=S===p.TowLine&&k.length>0;return(0,o.jsx)("div",{className:u()("xgplayer-shop-anchor",m.default.container,m.default.shopAnchor,{[m.default.more]:P},E),onClick:()=>{null==y||y(),null==L||L.emit(d.Events.USER_ACTION,{action:"shop_anchor_click"}),c.logInstance.sendLog("productEntranceClick",(0,i._)((0,n._)({},(0,v.R)(w)),{ecom_entrance_form:"video_cart_tag",if_qianchuan_ad:0}))},onMouseEnter:()=>{null==C||C()},onMouseLeave:()=>{null==b||b()},ref:N,children:(0,o.jsxs)("div",{className:m.default.subContainer,children:[(0,o.jsx)(I.Z,{src:f.Z,className:m.default.icon,width:20,height:20,viewBox:"0 0 20 20"}),(0,o.jsxs)("div",{className:m.default.desc,children:[(0,o.jsxs)("div",{className:m.default.firstLine,children:[null==w?void 0:null===(a=w.anchorInfo)||void 0===a?void 0:a.titleTag,(null==T?void 0:T.elastic_title)&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:m.default.delimiter,children:" | "})," ",null==T?void 0:T.elastic_title]})]}),P&&(0,o.jsx)("div",{className:m.default.secondLine,children:k.map((e,t)=>(0,o.jsxs)("span",{className:m.default.towLineItem,children:[e," ",t{let t=(0,w.N)();return(0,o.jsx)(y.k,{componentName:"ShopAnchor",Slardar:t,children:(0,o.jsx)(x,(0,n._)({},e))})}},678817:function(e,t,l){"use strict";l.d(t,{b:function(){return _}});var n=l(629686);l(104882),l(527553);var i=l(320165),o=l(101199),r=l(734123),a=l(499059),u=l(63601),d=l(310383),s=l(913285),c=l(455571);function v(e){let{click_method:t,player:l}=e;null==l||l.emit(r.Events.USER_ACTION,{action:"change_volume",logData:{click_method:t,is_mute:l.muted?"1":"0"},props:{volume:{to:l.volume}}})}let f=(e,t)=>{var l,n,i,o,r,a;if(!e)return;if(null===(i=e.plugins)||void 0===i||null===(n=i.volume)||void 0===n||null===(l=n.focus)||void 0===l||l.call(n),null===(a=e.plugins)||void 0===a||null===(r=a.volume)||void 0===r||null===(o=r.unFocus)||void 0===o||o.call(r,1e3,!0,null),e.muted){e.muted=!1,e.volume=Math.max(t/100,0),v({click_method:"wheel",player:e});return}let u=e.volume+t/100;u=Math.max(u=Math.min(u,1),0),e.volume=Number(u.toFixed(2)),0===u&&(e.muted=!0),v({click_method:"wheel",player:e})},m=e=>{let{isActive:t,currentPlayer:l}=e,n=(0,u.n)(),i=l||n;(0,o.useEffect)(()=>{let e=a.Le.getConfig(a.gI.AbtestData);if((null==i?void 0:i.getPlugin)&&t&&(null==e?void 0:e.useCache)!==1){let e=i.getPlugin("volume");if(!e)return;let t=e.root,l=e=>{let t=(0,c.G1)();e.stopPropagation(),e.preventDefault();let l=(t?1:-1)*parseInt(String(e.deltaY/20),10);0!==l&&f(i,l)},n=()=>{a.Le.setConfig(a.gI.DisableNextPre,!0)},o=()=>{a.Le.setConfig(a.gI.DisableNextPre,!1)};return t.addEventListener("wheel",l),t.addEventListener("mouseover",n),t.addEventListener("mouseout",o),()=>{t.removeEventListener("wheel",l),t.removeEventListener("mouseover",n),t.removeEventListener("mouseout",o)}}},[i,t]);let r=(0,o.useRef)(!1),d=(0,o.useRef)(null);return(0,o.useEffect)(()=>{let e=a.Le.getConfig(a.gI.AbtestData);if(!(i&&i.on&&t&&(null==e?void 0:e.useCache)===1))return;let l=e=>{e.preventDefault(),e.stopPropagation();let t=((0,c.G1)()?1:-1)*parseInt(String(e.deltaY/20),10);0!==t&&f(i,t)};if(null==e?void 0:e.enableMemoryLeakFix){let e=e=>{if("volume"===e.pluginName){var t;a.Le.setConfig(a.gI.DisableNextPre,!0);let e=null==i?void 0:null===(t=i.getPlugin("volume"))||void 0===t?void 0:t.root;e&&(e.addEventListener("wheel",l),r.current=!0,d.current=e)}},t=e=>{if("volume"===e.pluginName){var t;a.Le.setConfig(a.gI.DisableNextPre,!1);let e=d.current||(null==i?void 0:null===(t=i.getPlugin("volume"))||void 0===t?void 0:t.root);e&&e.removeEventListener("wheel",l),r.current=!1,d.current=null}};return i.on("icon_mouseenter",e),i.on("icon_mouseleave",t),()=>{if(i.off("icon_mouseenter",e),i.off("icon_mouseleave",t),r.current){var n;let e=d.current||(null==i?void 0:null===(n=i.getPlugin("volume"))||void 0===n?void 0:n.root);null==e||e.removeEventListener("wheel",l),r.current=!1,d.current=null}}}let n=e=>{if("volume"===e.pluginName){var t;a.Le.setConfig(a.gI.DisableNextPre,!0),(null==i?void 0:null===(t=i.getPlugin("volume"))||void 0===t?void 0:t.root)&&(i.getPlugin("volume").root.addEventListener("wheel",l),r.current=!0)}},o=e=>{if("volume"===e.pluginName){var t;a.Le.setConfig(a.gI.DisableNextPre,!1),(null==i?void 0:null===(t=i.getPlugin("volume"))||void 0===t?void 0:t.root)&&(i.getPlugin("volume").root.removeEventListener("wheel",l),r.current=!1)}};return i.on("icon_mouseenter",n),i.on("icon_mouseleave",o),()=>{if(i.off("icon_mouseenter",n),i.off("icon_mouseleave",o),r.current){var e,t;null==i||null===(t=i.getPlugin("volume"))||void 0===t||null===(e=t.root)||void 0===e||e.removeEventListener("wheel",l),r.current=!1}}},[i,t]),(0,o.useEffect)(()=>()=>{a.Le.setConfig(a.gI.DisableNextPre,!1)},[]),null},_=e=>{let t=(0,d.N)();return(0,i.jsx)(s.k,{componentName:"VolumePlugin",Slardar:t,children:(0,i.jsx)(m,(0,n._)({},e))})}},316223:function(e,t,l){"use strict";l.d(t,{zm:function(){return U}});var n=l("480333"),i=l("629686");l("490629");var o=l("320165"),r=l("101199"),a=l("358986"),u=l("469935"),d=l.n(u),s=l("734123"),c=l("38578"),v=l("649310"),f=l("323320"),m=l("150971"),_=l("426038"),h=l("414061"),g=l("335948"),p=l("709705"),w=l("499059"),y=l("48795"),I=l("147597"),x=l("505302"),E=l("624508"),C=new E.h({openPureToastShow:{eventName:"small_window_toast_show",params:{}}}),b=l("316213");let S=r.forwardRef(e=>{let{onDone:t,isShowGuideTip:l,setIsShowGuideTip:n,setIsGuideTipActive:i}=e;return(0,r.useEffect)(()=>{l&&C.sendLog("openPureToastShow",{})},[l]),(0,o.jsxs)("div",{className:d()(x.default.tips,{[x.default.show]:l}),onMouseEnter:()=>{i(!0)},onMouseLeave:()=>{i(!1)},children:[(0,o.jsx)(b.z,{svg:(0,o.jsx)(I.Z,{}),className:d()(x.default.close,"noTransform"),onClick:()=>{i(!1),n(!1)}}),(0,o.jsx)("div",{className:x.default.title,children:(0,o.jsx)("span",{children:"小窗模式播放"})}),(0,o.jsx)("p",{className:x.default.desc,children:"右上角「小窗功能」移到此处,推荐/主页都能使用"}),(0,o.jsx)(y.Button,{theme:"solid",className:x.default.btn,onClick:()=>{null==t||t(),i(!1),n(!1)},children:"立即开启"})]})});var T=l("913285"),L=l("63601"),N=l("310383"),k=l("44599"),P=l("697233"),j="PictureInPictureSettingPlugin";let R={[P.kd.CONTROLS_RIGHT]:{PictureInPictureSettingPlugin:5.5}};l("557586");var M=l("540129");let V={vvCount:0,currentVideoId:"",resetVVInfo:()=>{V.vvCount=0,V.currentVideoId=""}};function D(){return(0,o.jsxs)("div",{className:d()("xgTips"),children:[(0,o.jsx)("span",{children:"小窗模式"}),!!M.SHORTCUT_KEY.pip.badgeText&&(0,o.jsx)("span",{className:"shortcutKey",children:M.SHORTCUT_KEY.pip.badgeText})]})}function A(e){let{isShowGuideTip:t,resizeMiniWindowGuideShow:l,setIsShowGuideTip:n,player:i,noTransform:a,abtestData:u}=e,[c,v]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=h.listen(h.EVENT.closeOtherTip,e=>{"PictureInPictureTip"!==e&&(null==n||n(!1))});return()=>e()},[]);let _=(0,r.useCallback)(e=>{h.emit(h.EVENT.changeMinWindows,{event:"check",isMiniWin:!1,clickMethod:e}),null==i||i.emit(s.Events.USER_ACTION,{action:"click_small_window"})},[i]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(S,{isShowGuideTip:t||c,setIsShowGuideTip:n,setIsGuideTipActive:v,onDone:()=>_("toast")}),(0,o.jsx)("div",{className:"xgplayer-icon xgplayer-icon-picture-in-picture",onClick:()=>_("button"),children:(0,o.jsx)(b.z,{svg:(0,o.jsx)(f.Z,{className:d()(a&&"noTransform")}),style:{fontSize:"32px"}})}),l&&!!M.SHORTCUT_KEY.pip.badgeText&&(0,o.jsxs)("div",{className:"picture-in-picture-resize-guide-tips",children:["点击或快捷键",(0,o.jsx)("span",{className:"shortcutKey",children:M.SHORTCUT_KEY.pip.badgeText})," ,启用小窗模式播放",(0,o.jsx)(b.z,{className:"picture-in-picture-resize-guide-tips-icon",svg:(0,o.jsx)(m.Z,{})})]}),!t&&!c&&!l&&(0,o.jsx)(D,{})]})}class F extends s.Plugin{static get pluginName(){return j}static get defaultConfig(){return{position:a.POSITIONS.CONTROLS_RIGHT,index:R[a.POSITIONS.CONTROLS_RIGHT][j],className:"xgplayer-picture-in-picture-setting"}}afterCreate(){if(!this.config.disable)this.renderRoot()}destroy(){(0,k.v)(this)}renderRoot(){let e=(0,o.jsx)(A,{player:this.player,isShowGuideTip:this.config.isShowGuideTip,setIsShowGuideTip:this.config.setShowGuideTip,resizeMiniWindowGuideShow:this.config.resizeMiniWindowGuideShow,noTransform:this.config.noTransform,abtestData:this.config.abtestData});(0,k.s)(this,e)}render(){return` `}constructor(...e){super(...e),(0,n._)(this,"updatePictureInPicture",e=>{var t,l,n;this.config.isShowGuideTip!==(null==e?void 0:e.isShowGuideTip)&&(this.config.isShowGuideTip=null!==(t=null==e?void 0:e.isShowGuideTip)&&void 0!==t&&t,this.renderRoot()),this.config.resizeMiniWindowGuideShow!==(null==e?void 0:e.resizeMiniWindowGuideShow)&&(this.config.resizeMiniWindowGuideShow=null!==(l=null==e?void 0:e.resizeMiniWindowGuideShow)&&void 0!==l&&l,this.renderRoot()),this.config.noTransform!==(null==e?void 0:e.noTransform)&&(this.config.noTransform=null!==(n=null==e?void 0:e.noTransform)&&void 0!==n&&n,this.renderRoot())})}}let O=e=>{var t;let{isActive:l,awemeInfo:n,isInnerFeed:i,resizeMiniWindowGuideShow:o,enableGuide:a=!0,noTransform:u=!0,abtestData:d}=e,[s,f]=(0,r.useState)(!1),m=(0,L.n)(),y=(0,r.useRef)(null),I=(0,c.k)(),x=!!(0,g.J)(),{isClientMiniWin:E}=null!==(t=(0,r.useContext)(v.C))&&void 0!==t?t:{};return(0,r.useEffect)(()=>{let e=I.listen(()=>{V.resetVVInfo()});return()=>{e()}},[]),(0,r.useEffect)(()=>m?2===m.config.reuse&&m.getPlugin(F.pluginName)?()=>{}:(m.registerPlugin(F,{isShowGuideTip:s,setShowGuideTip:f,resizeMiniWindowGuideShow:o,noTransform:u,abtestData:d}),()=>{m.getPlugin(F.pluginName)&&2!==m.config.reuse&&m.unRegisterPlugin(F.pluginName)}):void 0,[m]),(0,r.useEffect)(()=>{var e,t,n;let i=null==m?void 0:null===(e=m.getPlugin)||void 0===e?void 0:e.call(m,F.pluginName);m&&l&&i&&(E?null==i||null===(t=i.hide)||void 0===t||t.call(i):null==i||null===(n=i.show)||void 0===n||n.call(i))},[m,l,E]),(0,r.useEffect)(()=>{if(!m||!l)return;let e=m.getPlugin(F.pluginName);null==e||e.updatePictureInPicture({isShowGuideTip:s,resizeMiniWindowGuideShow:o,noTransform:u})},[s,o,u]),(0,r.useEffect)(()=>{let e=h.listen(h.EVENT.changeMinWindows,e=>{let{event:t}=e,l=(0,p.$o)(_.LocalStorageKeys.PictureInPictureGuide);"open"===t&&!l&&(0,p.qQ)(_.LocalStorageKeys.PictureInPictureGuide,!0)});return()=>null==e?void 0:e()},[]),(0,r.useEffect)(()=>{let e=(0,p.$o)(_.LocalStorageKeys.PictureInPictureGuide);if(!a||e||x)return;let t=()=>{var e;if((null===(e=w.Le.getConfig(w.gI.IsInLookMiniModal))||void 0===e?void 0:e.isInMiniModal)&&!i)return;let t=window.innerWidth<970||window.innerHeight<600;V.vvCount>5&&t&&l&&((0,p.qQ)(_.LocalStorageKeys.PictureInPictureGuide,!0),V.resetVVInfo(),h.emit(h.EVENT.closeOtherTip,"PictureInPictureTip"),f(!0),y.current=setTimeout(()=>{f(!1)},5e3))};return l&&(null==n?void 0:n.awemeId)!==V.currentVideoId&&(V.vvCount++,V.currentVideoId=null==n?void 0:n.awemeId,t()),window.addEventListener("resize",t),()=>{f(!1),clearTimeout(y.current),window.removeEventListener("resize",t)}},[l,null==n?void 0:n.awemeId,a,i]),null},U=e=>{let t=(0,N.N)();return(0,o.jsx)(T.k,{componentName:"PictureInPicturePlugin",Slardar:t,children:(0,o.jsx)(O,(0,i._)({},e))})}},893392:function(e,t,l){"use strict";l.d(t,{rl:function(){return O},Vw:function(){return H}});var n=l("480333"),i=l("629686");l("490629"),l("706056");var o=l("320165"),r=l("101199"),a=l("734123"),u=l("358986"),d=l("469935"),s=l.n(d),c=l("280647"),v=l("242875"),f=l("72430"),m=l("426038"),_=l("426112"),h=l("762167"),g=l("206698"),p=l("708003"),w=l("414061"),y=l("709705"),I=l("618759"),x=l("749113"),E=l("759894"),C=l("947383"),b=l("880327"),S=l("499059"),T=l("649310"),L=l("532338"),N=l("157546"),k=l("624508"),P=new k.h({fullscreenBubbleShow:{eventName:"fullscreen_bubble_show",params:{author_id:"",group_id:"",enter_from:"recommend"}},enterFullWebscreen:{eventName:"enter_full_webscreen",params:{author_id:"",group_id:"",enter_from:"recommend",enter_from_merge:"",item_duration_ms:0,click_from:"",player_display_mode:""}},exitFullWebscreen:{eventName:"exit_full_webscreen",params:{author_id:"",group_id:"",enter_from:"recommend",click_from:"",player_display_mode:""}}}),j=l("913285"),R=l("63601"),M=l("310383"),V=l("332009"),D=l("44599");l("976261");var A=l("36897"),F=l("540129");function O(e){let{player:t,isCtxCssFullScreen:l}=e,{isMobile:n,isiPad:i}=(0,v.X)(),[u,d]=(0,r.useState)(V.s.getPlayerScene(null==t?void 0:t.playerId)===f.lT.Modal?V.s.getPlayerIsPageFullscreen(null==t?void 0:t.playerId):V.s.getIsPageFullscreen()||l);return t&&(t.isPageFullScreen=u),(0,r.useEffect)(()=>{if(!t)return;let e=w.listen(w.EVENT.pageFullScreen,e=>{let{playerId:l,fullScreen:n}=e||{};V.s.getPlayerScene(null==t?void 0:t.playerId)===f.lT.Modal?l===(null==t?void 0:t.playerId)&&(d(n),V.s.setPageFullscreen({playerId:t.playerId,isPageFullscreen:n})):(d(n),V.s.setPageFullscreen({playerId:t.playerId,isPageFullscreen:n}))});return()=>{e()}},[t]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{onMouseEnter:()=>{(0,y.qQ)(m.LocalStorageKeys.ShowPageFullScreenGuide,!0)},onClick:()=>{var e;if(null==t?void 0:null===(e=t.openGeneralSearchModalSlide)||void 0===e?void 0:e.call(t,{from:"pageFullscreen"}))return;let l=V.s.getPlayerIsPageFullscreen(null==t?void 0:t.playerId);d(!l),V.s.setPageFullscreen({playerId:t.playerId,isPageFullscreen:!l}),w.emit(w.EVENT.pageFullScreen,{clickMethod:"icon",fullScreen:!l,playerId:t.playerId}),t.emit(a.Events.USER_ACTION,{action:"page_fullscreen_change"})},className:"xgplayer-icon",children:u?(0,o.jsx)(L.Z,{width:32,height:32,color:"#fff"}):(0,o.jsx)(N.Z,{width:32,height:32})}),!n&&!i&&(0,o.jsxs)("div",{className:s()("xgTips"),children:[!!(!(0,I.DT)()&&u)&&(0,o.jsx)("span",{children:x.a.t("webpage_full_screen_exit",{},"退出网页全屏")}),!!(!(0,I.DT)()&&!u)&&(0,o.jsx)("span",{children:x.a.t("webpage_full_screen",{},"网页全屏")}),!!((0,I.DT)()&&u)&&(0,o.jsx)("span",{children:"退出窗口全屏"}),!!((0,I.DT)()&&!u)&&(0,o.jsx)("span",{children:"窗口全屏"}),!!F.SHORTCUT_KEY.pageFullScreen.badgeText&&(0,o.jsx)("span",{className:"shortcutKey",children:F.SHORTCUT_KEY.pageFullScreen.badgeText})]})]})}class U extends a.Plugin{static get pluginName(){return"PageFullScreenPlugin"}static get defaultConfig(){return{position:u.POSITIONS.CONTROLS_RIGHT,index:.8,className:"xgplayer-page-full-screen"}}updateConfig(e){this.config=e,this.renderRoot()}afterCreate(){this.bind("mouseenter",this.onMouseenter),this.bind("mouseleave",this.onMouseLeave),this.renderRoot()}destroy(){this.unbind("mouseenter",this.onMouseenter),this.unbind("mouseleave",this.onMouseLeave),(0,D.v)(this)}renderRoot(){let e=(0,o.jsx)(O,{player:this.config.player,isCtxCssFullScreen:this.config.isCtxCssFullScreen,abtestData:this.config.abtestData});(0,D.s)(this,e)}render(){return` `}constructor(...e){super(...e),(0,n._)(this,"onMouseenter",()=>{this.emit("icon_mouseenter",{pluginName:this.pluginName})}),(0,n._)(this,"onMouseLeave",()=>{this.emit("icon_mouseleave",{pluginName:this.pluginName})})}}let B=e=>{let{awemeInfo:t,logParams:l,isActive:n,defaultIsPageFullScreen:i,modalEnterFrom:o,abtestData:u}=e,d=(0,r.useRef)(),{isCssFullScreen:s}=(0,r.useContext)(T.C)||{},v=(0,R.n)(),{awemeFeed:m}=(0,A.j)();return(0,r.useEffect)(()=>{v&&n&&(null!=i?i:s)&&V.s.setPageFullscreen({playerId:v.playerId,isPageFullscreen:null!=i?i:s})},[v,n]),(0,r.useEffect)(()=>{if(v&&n)return 2===v.config.reuse&&v.getPlugin("PageFullScreenPlugin")?()=>{}:(v.registerPlugin(U,{player:v,isCtxCssFullScreen:s,abtestData:u}),()=>{v.getPlugin("PageFullScreenPlugin")&&2!==v.config.reuse&&(null==v||v.unRegisterPlugin("PageFullScreenPlugin"))})},[v,n]),(0,r.useEffect)(()=>{if(v&&n){let e=v.getPlugin("PageFullScreenPlugin");e&&[f.lT.Follow,f.lT.Friend,f.lT.Recommend,f.lT.Topic].includes(V.s.getPlayerScene(v.playerId))&&e.updateConfig({player:v,isCtxCssFullScreen:s,abtestData:u})}},[s,u]),(0,r.useEffect)(()=>{if(t&&v&&n){let e=w.listen(w.EVENT.pageFullScreen,e=>{var n,i;let{clickMethod:r,fullScreen:a,oldFullScreen:u}=e||{},d=null!==(i=null!=u?u:V.s.getIsPageFullscreen())&&void 0!==i&&i,s=null!=a?a:!d,c={author_id:null==t?void 0:t.authorUserId,group_id:null==t?void 0:t.groupId,enter_from:null==l?void 0:l.enter_from,enter_from_merge:null==l?void 0:l.enter_from_merge,item_duration_ms:(null==t?void 0:null===(n=t.video)||void 0===n?void 0:n.duration)||0,click_from:r,player_display_mode:(0,E.Ok)()};if(s){if("inner_player"!==r&&P.sendLog("enterFullWebscreen",c),(0,_.Jt)(t)){let e=(0,_.Rx)(t);(0,h.E)("full_screen",{tag:(0,C.f)(),value:e.creative_id,log_extra:e.log_extra,player_form:"web_full"})}}else if(!1!==d&&(P.sendLog("exitFullWebscreen",c),(0,_.Jt)(t))){let e=(0,_.Rx)(t);(0,h.E)("full_screen",{tag:(0,C.f)(),value:e.creative_id,log_extra:e.log_extra,player_form:"normal"})}if((0,b.r)()&&s){if(V.s.getPlayersByScene(f.lT.Modal).length>0&&o!==g.a.RecommendUpdateWindow)return;v.exitFullscreen(),v.emit("switch_fullscreen",{fullscreen:!0,cssFullScreen:!0})}S.Le.setConfig(S.gI.IsPageFullScreen,{type:s})});return()=>{null==e||e()}}},[l,v,t,n,o]),(0,r.useEffect)(()=>{if(v&&n){let e=e=>{e&&V.s.getIsPageFullscreen()&&(V.s.setPageFullscreen({playerId:v.playerId,isPageFullscreen:!1}),!m.getValue("modalAwemeInfo")&&w.emit(w.EVENT.pageFullScreen,{clickMethod:"fullscreen",fullScreen:!1,playerId:v.playerId}))};return v.on(a.Events.FULLSCREEN_CHANGE,e),()=>{null==v||v.off(a.Events.FULLSCREEN_CHANGE,e)}}},[v,n]),(0,r.useEffect)(()=>{let e=e=>{if(e.shiftKey||e.metaKey||e.ctrlKey)return;let t=S.Le.getConfig(S.gI.DisableExit);"Escape"===e.code&&V.s.getPlayerIsPageFullscreen(null==v?void 0:v.playerId)&&v.isUserActive&&!t&&(V.s.setPageFullscreen({playerId:v.playerId,isPageFullscreen:!1}),setTimeout(()=>{m.dispatch("modalAwemeInfo",null)},100),w.emit(w.EVENT.pageFullScreen,{clickMethod:"esc",fullScreen:!1,playerId:v.playerId}))};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[v]),(0,c.Z)(()=>{if(n){var e,t;let l=null===(e=S.Le.getConfig(S.gI.IsInLookMiniModal))||void 0===e?void 0:e.isInMiniModal;if(s){if(!l&&!m.getValue("modalAwemeInfo")){let e=F.SHORTCUT_KEY.pageFullScreen.badgeText;d.current=p.F.info({text:`ESC${e?`或${e}`:""}可退出网页全屏`,zIndex:1e4})}}else null===(t=d.current)||void 0===t||t.call(d)}},[s]),null},H=e=>{let t=(0,M.N)();return(0,o.jsx)(j.k,{componentName:"PageFullScreen",Slardar:t,children:(0,o.jsx)(B,(0,i._)({},e))})}},181137:function(e,t,l){"use strict";l.d(t,{g:function(){return o}});var n=l(72430),i=l(332009);let o=e=>{if(!!e){if(i.s.getAllPlayer().find(e=>i.s.getPlayerScene(e.playerId)===n.lT.Modal)){var t;null===(t=e.pause)||void 0===t||t.call(e),e.config.autoplay=!1,e.autoplay=!1}}}},176060:function(e,t,l){"use strict";l.d(t,{P:function(){return r}});var n=l(101199),i=l(734123),o=l(499059);let r=e=>{let{player:t}=e;(0,n.useEffect)(()=>{if(t){let e=()=>{var e,l;let n=null==t?void 0:null===(l=t.root)||void 0===l?void 0:null===(e=l.getBoundingClientRect)||void 0===e?void 0:e.call(l);n&&n.width&&n.height&&o.Le.setConfig(o.gI.VideoRect,{width:n.width,height:n.height-48,heightOrigin:n.height})};return t.once(i.Events.TIME_UPDATE,e),()=>t.off(i.Events.TIME_UPDATE,e)}},[t])}},38397:function(e,t,l){"use strict";l.d(t,{bc:function(){return r},cj:function(){return n},qN:function(){return a}}),l(490629);let n=new Set,i=()=>{let e=new Date,t=e.getFullYear(),l=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return`${t}-${l}-${n}`},o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return`__highlight_daily_dismiss___${e}`},r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!!e&&"undefined"!=typeof window)try{window.localStorage.setItem(o(e),i())}catch(e){}},a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e||"undefined"==typeof window)return!1;try{return window.localStorage.getItem(o(e))===i()}catch(e){return!1}}},195655:function(e,t,l){"use strict";l.d(t,{M:function(){return u}});var n=l(101199),i=l(939165),o=l(813458),r=l(339808),a=l(995898);let u=()=>{let{pathname:e}=(0,r.a)(),t=(0,n.useRef)(!0),l=(0,n.useRef)(e),u=(0,a.Nr)(e),d=(0,n.useRef)(!1);(0,i.o)(()=>{if(d.current){d.current=!1;return}performance.mark("recommend_mounted"),t.current&&(t.current=!1)},[e]),(0,n.useEffect)(()=>{if(!!u)return()=>{location.pathname===l.current&&(d.current=!0)}},[u]),(0,o.w)(()=>{performance.getEntriesByName("recommend_mounted").length>0&&performance.clearMarks("recommend_mounted")},[])}},150971:function(e,t,l){"use strict";l(932651);var n=l(101199);function i(){return(i=Object.assign||function(e){for(var t=1;t(0,o.jsxs)("svg",(0,i._)((0,n._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,o.jsx)("rect",{width:20,height:20,rx:2,fill:"#FF851D"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.158 5.41a1 1 0 0 1-.985-.828L5.97 3.414A.5.5 0 0 0 5.476 3H3a.5.5 0 0 0-.5.5v1A.5.5 0 0 0 3 5h.934a.5.5 0 0 1 .5.475l.359 7.076a1 1 0 0 0 .998.949H14.5a.5.5 0 0 0 .5-.5v-.5a.5.5 0 0 0-.5-.5H7a.5.5 0 0 1-.5-.5V11a.5.5 0 0 1 .5-.5h8.111a.5.5 0 0 0 .485-.377l1.04-4.09a.5.5 0 0 0-.484-.624H7.158zM6.25 17a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5zm7.25-1.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0z",fill:"#fff"})]})));t.Z=a},980141:function(e,t,l){"use strict";var n=l(629686),i=l(402748),o=l(320165),r=l(101199);let a=(0,r.forwardRef)((e,t)=>(0,o.jsxs)("svg",(0,i._)((0,n._)({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",ref:t},e),{children:[(0,o.jsx)("g",{filter:"url(#recommendIcon_svg__filter0_d_4446_29828)",clipPath:"url(#recommendIcon_svg__clip0_4446_29828)",children:(0,o.jsx)("path",{d:"M13.145 12.442a2.064 2.064 0 0 1-1.918 1.3H5.143V5.17l3.43-3.657a1.262 1.262 0 0 1 1.776-.064.818.818 0 0 1 .179.296c.047.125.07.244.07.358 0 .145-.019.29-.056.429l-.018.067-.611 2.571h3.656c.63 0 1.14.511 1.14 1.141v1.215a5.16 5.16 0 0 1-.366 1.91l-1.198 3.006zM4.207 5.17v8.572H2.95a1.143 1.143 0 0 1-1.143-1.143V6.313c0-.631.511-1.143 1.143-1.143h1.257z",fill:"#fff"})}),(0,o.jsxs)("defs",{children:[(0,o.jsxs)("filter",{id:"recommendIcon_svg__filter0_d_4446_29828",x:1.307,y:".614",width:14.903,height:14.628,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,o.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,o.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,o.jsx)("feOffset",{dx:".5",dy:".5"}),(0,o.jsx)("feGaussianBlur",{stdDeviation:".5"}),(0,o.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,o.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.7 0"}),(0,o.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_4446_29828"}),(0,o.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_4446_29828",result:"shape"})]}),(0,o.jsx)("clipPath",{id:"recommendIcon_svg__clip0_4446_29828",children:(0,o.jsx)("path",{fill:"#fff",d:"M0 0h16v16H0z"})})]})]})));t.Z=a},736068:function(e,t,l){"use strict";var n=l(629686),i=l(402748),o=l(320165),r=l(101199);let a=(0,r.forwardRef)((e,t)=>(0,o.jsx)("svg",(0,i._)((0,n._)({width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.284 11.224a.75.75 0 1 0-1.06 1.06l3.719 3.72-3.72 3.719a.75.75 0 0 0 1.061 1.06l3.72-3.719 3.718 3.72a.75.75 0 0 0 1.061-1.061l-3.719-3.72 3.72-3.719a.75.75 0 1 0-1.061-1.06l-3.72 3.719-3.719-3.72z",fill:"currentColor"})})));t.Z=a}}]);