"use strict";(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["10771"],{70766:function(e,l,n){var i=n(629686),t=n(402748);n(490629),n(362051);var r=n(101199),a=n(947855),o=n(810069),u=n(301023);l.Z=e=>{let{user_id:l,uuid:n,player:s,isLiveWaterMark:d,isPlayerSucc:c,liveUserWaterMarkEvent:v,logParams:f,isPlayerWaterMark:_=!0,isSmallWindow:m}=e,g=(0,r.useRef)(),p=(0,r.useRef)(),[h,w]=(0,r.useState)({}),[y,k]=(0,r.useState)({}),E=(0,r.useRef)(),x={height:"100%",backgroundSize:"calc(240px * 0.5) auto",backgroundPosition:"center",backgroundRepeat:"repeat"},I=(0,r.useCallback)(()=>{if(!!g.current&&!!p.current&&!!s&&!!c&&!!d)clearTimeout(E.current),E.current=setTimeout(()=>{var e,l,n,t,r,a,o,u,d,c,v,f;let _=(null==s?void 0:null===(e=s.video)||void 0===e?void 0:e.clientWidth)||(null==s?void 0:null===(l=s._video)||void 0===l?void 0:l.clientWidth)||(null==s?void 0:null===(n=s.root)||void 0===n?void 0:n.clientWidth),p=(null==s?void 0:null===(t=s.video)||void 0===t?void 0:t.clientHeight)||(null==s?void 0:null===(r=s._video)||void 0===r?void 0:r.clientHeight)||(null==s?void 0:null===(a=s.root)||void 0===a?void 0:a.clientHeight),h=(null==s?void 0:null===(o=s.video)||void 0===o?void 0:o.videoWidth)||(null==s?void 0:null===(u=s._video)||void 0===u?void 0:u.videoWidth)||(null==s?void 0:null===(d=s.root)||void 0===d?void 0:d.clientWidth),y=(null==s?void 0:null===(c=s.video)||void 0===c?void 0:c.videoHeight)||(null==s?void 0:null===(v=s._video)||void 0===v?void 0:v.videoHeight)||(null==s?void 0:null===(f=s.root)||void 0===f?void 0:f.clientHeight);if(m)w((0,i._)({width:"100%",backgroundImage:`url(${g.current})`},x));else{if(!_||!p||!h||!y)return;h>=y?w((0,i._)({width:"40%",backgroundImage:`url(${g.current})`},x)):w((0,i._)({width:`${h/y*p/_*100}%`,backgroundImage:`url(${g.current})`},x))}},50)},[s,m,c,d]),b=(0,r.useCallback)(()=>{var e;let r=l||(0,o.sq)(),s=n||(null===(e=(0,o.Es)())||void 0===e?void 0:e.user_unique_id),d=r?`u_${r}`:s?`d_${s}`:"",{os_name:c,os_version:m,browser_name:h,browser_version:w,screen_width:y,screen_height:E}=(0,u.f)(),b={DeviceType:"",OsType:c,OsVersion:m,BrowserType:h,BrowserVersion:w,ScreenModel:`${y}*${E}`};(0,a.Y5)({watermark_key_list:JSON.stringify([{watermark_uniq_idx:"v4u",watermark_key:d,algorithm:"v4u"},{watermark_uniq_idx:"v5p",watermark_key:d,algorithm:"v5p"}]),device_info:JSON.stringify(b),ignoreToast:!0}).then(e=>{let{data:l,status_code:n}=null==e?void 0:e.data;if(0===n){sessionStorage.setItem("waterMarkData",JSON.stringify(l));let{v5p:e,v4u:n}=l||{};g.current=null==e?void 0:e.watermark_url,p.current=null==n?void 0:n.watermark_url,_?I():k((0,t._)((0,i._)({},x),{width:"100%",backgroundImage:`url(${p.current})`,backgroundSize:"calc(320px * 0.5) auto"}))}else null==v||v((0,i._)({error_type:"interface_error"},f))}).catch(e=>{null==v||v((0,i._)({error_type:"interface_error"},f))})},[l,n,s,_,c,v,f]);(0,r.useEffect)(()=>{if(!d){w({}),k({});return}if(!_||!!s&&!!c)try{let{v5p:e,v4u:l}=JSON.parse(sessionStorage.getItem("waterMarkData"))||{};if(l&&e){g.current=null==e?void 0:e.watermark_url,p.current=null==l?void 0:l.watermark_url,_?I():k((0,i._)({width:"100%",backgroundImage:`url(${p.current})`},x));return}b()}catch(e){b()}},[l,s,d,c,_]),(0,r.useEffect)(()=>{if(!!_&&!!s&&!!c){if(!d){w({}),k({});return}return window.addEventListener("resize",I),()=>{window.removeEventListener("resize",I),E.current&&clearTimeout(E.current)}}},[l,s,_,m,c,d]);let N=(0,r.useMemo)(()=>{if(d){var e;return{wmString:l||n||(null===(e=(0,o.Es)())||void 0===e?void 0:e.user_unique_id),appId:"333",density:5}}},[d,l,n]);return(0,r.useEffect)(()=>{let e=()=>{sessionStorage.removeItem("waterMarkData")};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}},[d]),{playerWaterMark:h,chatWaterMark:y,volumeWaterMark:N,updatePlayerStyle:I}}},627932:function(e,l,n){n.d(l,{K6:function(){return eV},O1:function(){return eF}});var i=n("629686"),t=n("320165"),r=n("101199"),a=n("469935"),o=n.n(a),u=n("243485"),s=n("913655"),d=n("402748");n("679308"),n("490629"),n("706056"),n("228983"),n("759943"),n("362051");var c={ENDED:0,0:"ENDED",ERROR:1,1:"ERROR",LIVING:2,2:"LIVING"},v=n("202613"),f=n("394408"),_=n("414061"),m=n("356336"),g=n("638052"),p=n("795653"),h=n("618759"),w=n("499059"),y=n("939165"),k=n("810069"),E=n("461014"),x=n("326367"),I=n("121998"),b=n("706869"),N=n("806217"),C=n("666552"),T=n("712174"),S=n("644047"),P=n("980360"),L=n("553145"),j=n("298602"),R=n("692685"),M=n("815848"),D=n("589864");n("76375");var A=n("752150"),F=n("259010");n("198412"),n("368529");var V=n("612151"),O=n("927061"),U=n("526226"),G=n("299690"),B=n("690193"),W=n("319722"),Z=n("476023");let H=e=>{let{roomId:l,anchorId:n,hasPlay:t,program:a,enterLogParams:o,shopParams:u,nowTime:s,isActive:c,isPause:v,isVisibleRef:f,isPaidLive:_,isFollow:m,isModal:g=!1,isGameLive:p,getPlayer:h}=e;(0,r.useEffect)(()=>{if(c&&!v&&t){let e=setInterval(()=>{w("interval")},1e4);return()=>{clearInterval(e)}}},[v,c,t]),(0,r.useEffect)(()=>{let e=0,r=()=>{var r;(0,D.Y5)((0,d._)((0,i._)({duration:Date.now()-e,has_play:t?1:0,anchor_id:n,room_id:l,is_paidlive:Number(_),is_visible:f.current,follow_status:m},(0,D.Ne)(a),o,u),{is_game_live:p?1:0,playing_stream_url:null==h?void 0:null===(r=h())||void 0===r?void 0:r.src}))};return c&&(v&&e&&g?r():!v&&g&&(e=Date.now())),()=>{e&&g&&r()}},[c,v,g]);let w=(0,r.useCallback)(e=>{var r;(0,D.UH)((0,d._)((0,i._)({duration:Date.now()-s.current,has_play:t?1:0,anchor_id:n,room_id:l,is_paidlive:Number(_),is_visible:f.current,from_type:e,follow_status:m},(0,D.Ne)(a),o,u),{is_game_live:p?1:0,playing_stream_url:null==h?void 0:null===(r=h())||void 0===r?void 0:r.src})),s.current=Date.now()},[s,t,n,l,v,f]);return{liveDuration:w}};var z=n("70766"),q=n("142689"),K=n("436698"),$=n("515773"),Y=n("232547"),J=n("721108"),Q=n("460301"),X=n("324266"),ee=n("487543"),el=n("347751"),en=n("166837"),ei=n("314810"),et=n("181208"),er=n("965395"),ea=n("200240"),eo=n("667897"),eu=n("645984");n("313036");var es=n("81683"),ed=n("104940");let ec=e=>{let{title:l,authorInfo:n,className:i,style:r}=e;return(0,t.jsxs)("div",{className:o()(ed.default.liveInfo,i),style:r,children:[!!(null==n?void 0:n.nickname)&&(0,t.jsx)("div",{className:ed.default.userInfo,children:(0,t.jsx)("div",{className:ed.default.userName,children:(0,t.jsx)(es.Z,{text:`@${n.nickname}`})})}),!!l&&(0,t.jsx)("div",{className:ed.default.description,children:(0,t.jsx)(es.Z,{text:"string"==typeof l?l:(null==l?void 0:l.text)||""})})]})};var ev=n("327674"),ef=n("804312"),e_=n("855436"),em=n("327512"),eg=n("589243"),ep=n("298244"),eh=n("502615");let ew=e=>{let{isActive:l}=e,{playerRef:n}=(0,r.useContext)(eh.ET),i=n.current;return(0,r.useEffect)(()=>{if(i&&l){let e=_.listen(_.EVENT.searchWaterfallFullCardPause,()=>{i.pause()}),l=_.listen(_.EVENT.searchWaterfallFullCardUnmute,()=>{i.muted=!1});return()=>{null==e||e(),null==l||l()}}},[i,l]),null};var ey=n("977258"),ek=n("838468"),eE=n("849085"),ex=n("119420"),eI=n("878217"),eb=n("116310"),eN=n("845188"),eC=n("858651"),eT=n("621666"),eS=n("444326"),eP=n("797885"),eL=n("535303"),ej=n("782079");let eR=(0,e_.ZP)(()=>Promise.all([n.e("84813"),n.e("5072")]).then(n.bind(n,177569)),{ssr:!1}),eM={controls:{autoHide:!0}},eD=r.forwardRef((e,l)=>{var n,a,s,es,ed,e_,eh,eD,eA,eF,eV,eO,eU;let{cover:eG,hideEnterText:eB,anchorId:eW,userCount:eZ,webRid:eH,cameraId:ez,gameName:eq,detailUrl:eK,logParams:e$,appointment:eY,isShow:eJ,linkerDetail:eQ={},linkerMap:eX={},liveRoomMode:e0,program:e1,onFocus:e2,onBlur:e6,onPlay:e3=e=>null,onPause:e5=()=>null,onReady:e9,onDestroy:e4=()=>null,onEnterDetail:e8=()=>null,onFullScreen:e7,className:le,style:ll,sceneId:ln=394,isActive:li=!1,title:lt,showTitle:lr=!1,enableLiveInfo:la=!1,disableFullScreen:lo=!0,needSwitchLiveRoom:lu=!1,needAutoCheckRoomStatus:ls=!1,errorCoverClassName:ld="",children:lc,sessionId:lv,ecomData:lf,roomCart:l_,authorInfo:lm,secretKey:lg,userInfo:lp={},paidLiveData:lh={},onLoginSuccess:lw,onPaidLiveTryWatch:ly,onPaidLiveBuyTicket:lk,assistLabel:lE,isModal:lx,docId:lI,isShowGuide:lb,useNewUserSoundGuide:lN,__rawdata:lC,modalEnterFrom:lT,isGameLive:lS}=e,lP=("string"!=typeof e.roomId?null==lC?void 0:lC.id_str:e.roomId)||e.roomId,lL=(0,eC.useGetAllAbTestData)(),lj=(0,ex.jj)(),lR=(0,N.Z)(()=>lj),lM=(0,ex.gt)(),lD=(0,W.S)("search"),[lA,lF]=r.useState(c.LIVING),lV=r.useMemo(()=>(null==eQ?void 0:eQ.linker_play_modes)||[],[eQ]),[lO,lU]=r.useState({os:"",version:""}),[lG,lB]=r.useState(!1),[lW,lZ]=r.useState(!li),lH=r.useRef(Date.now()),[lz,lq]=r.useState(!1),lK=r.useRef(!0),l$=r.useRef(1),lY=r.useRef(0),[lJ,lQ]=r.useState({}),[lX,l0]=r.useState(!1),[l1,l2]=r.useState(!1),l6=r.useRef(!1),{handleError:l3,handleEnd:l5,handleUnablePlay:l9,handleRetry:l4,enableStatusOpt:l8,newStatus:l7}=(0,ej._T)({anchorId:eW,sceneId:ln,getPlayer:lR,active:li,enable:!0}),ne=l8?l7:lA,nl=r.useMemo(()=>{var e,l;return!!(lT===v.ModalEnterFromVal.WaterFall&&(null===(l=location)||void 0===l?void 0:null===(e=l.href)||void 0===e?void 0:e.includes("/jingxuan")))||!1},[lT]),nn=(0,N.Z)(()=>`/root/live/${eH}`),ni=r.useCallback(()=>{if(nl){let e=nn();if(e){let l=`${e}?${I.stringify((0,i._)({},e$))}`;(0,b.X)({href:l,reusePlayer:1,webRid:eH,abtestData:lL,roomId:lP,usePreCreate:!0,_reusePlayer:1})}}},[e$,eH,nl,lP,lL]),nt=r.useMemo(()=>{var e,l;return(null===(l=lJ[eH])||void 0===l?void 0:null===(e=l.scopes)||void 0===e?void 0:e.indexOf("FEED"))>-1?lJ[eH]:null},[lJ,eH]),nr=(null==nt?void 0:nt.url)||(0,C.h)(eH);(0,r.useEffect)(()=>{let{type:e,enable:l,enablePreloadWebTsSDK:n,enablePreCreatePlayerCore:i}=lD;"web"===e&&l&&i&&(0,O.Og)(!!n)},[lD]);let na=r.useMemo(()=>{let[e,l]=nr.split("?"),n=I.parse(l||"");return nl?void 0:`${e}?${I.stringify(n)}&from_search=true`},[nr,e,nl]),no=(0,f.F)(null==lm?void 0:lm.followStatus)?1:0,{AnchorABMap:nu={}}=lC||{},ns=(null==nu?void 0:nu.linkmic_video_equal_layout_frame_opt)||"0";r.useImperativeHandle(l,()=>({getPlayer:lR,getPlayerRoot:()=>null==lj?void 0:lj.root,getPlayerDom:()=>null==lj?void 0:lj.root,getPlayerLogger:()=>lM}));let nd=r.useMemo(()=>{var e,l;return 1===Number(null!==(l=null==lf?void 0:null===(e=lf.room_cart_v2)||void 0===e?void 0:e.show_cart)&&void 0!==l?l:null==l_?void 0:l_.show_cart)},[lf,l_]),nc=!!(null==lp?void 0:lp.isLogin),nv=r.useMemo(()=>nd?{EVENT_ORIGIN_FEATURE:"TEMAI",_param_live_platform:"live"}:{},[nd]),{inActive:nf}=(0,T.Z)({isActive:li}),{viewType:n_,setViewType:nm,retType:ng,setRetType:np,paidLiveData:nh,setPaidLiveData:nw,isPaidLive:ny,hideLinkMicPreview:nk}=(0,S.M)(lh,nc),nE=(0,N.Z)(()=>{if(l8){null==l9||l9();return}lF(c.ERROR)}),nx=(0,N.Z)(()=>c.ENDED===ne),nI=null==lC?void 0:lC.stream_url,nb=null==lC?void 0:null===(a=lC.others)||void 0===a?void 0:null===(n=a.web_data)||void 0===n?void 0:n.additional_stream_url,nN=(0,eN.qH)({originPluginConfig:eM,h264PullData:null==nI?void 0:null===(s=nI.live_core_sdk_data)||void 0===s?void 0:s.pull_data,h265PullData:null==nb?void 0:null===(es=nb.live_core_sdk_data)||void 0===es?void 0:es.pull_data,handleUnablePlay:nE,checkShouldIgnoreError:nx,RTMConfig:lD});!function(e){let{playerUrl:l,sessionId:n}=e,i=(0,r.useRef)(!1),t=(0,W.S)("search"),{enablePrefetch:a,type:o,prefetchOptions:u,maxPrefetchCount:s,disablePreloadCdnList:d}=t;(0,r.useEffect)(()=>{if(!l||i.current||!a){(0,B.qu)("usePrefetchRTM failed",{playerUrl:l,preloadedRef:i,enablePrefetch:a});return}let e=(0,O.f9)(l);if(e!==U.c.RTM&&!(e===G.b$.RTM_WEBTS&&"web"===o)){(0,B.qu)("usePrefetchRTM failed",{playerUrl:l,protocol:e,type:o});return}let r=(0,V.oM)(l,n);if("web"===o)s&&s>0&&(0,G.um)({maxPreloadCount:s}),(0,B.qu)("preloadRtmWebTs",{playerUrl:l,prefetchOptions:u}),(0,G.Zv)(r,O.BW,u);else{if((0,O.c2)(r,d)){(0,B.qu)("usePrefetchRTM skipped by disablePreloadCdnList",{playerUrl:l,disablePreloadCdnList:d});return}(0,G.D2)(r,{ab:(0,Z.f)(t)})}i.current=!0},[l,n])}({playerUrl:r.useMemo(()=>{let e=eT.d.getInitUrlByStreamPluginConfig({streamPluginConfig:(0,i._)({},(0,eS.Bk)({pluginsConfig:nN})),baseConfig:{coreType:(0,eL.wA)({abTestData:lL})}});if(e)return e.url},[lL,nN]),sessionId:lv}),r.useEffect(()=>{eP.$.prefetch302({streamPluginConfig:(0,eS.Bk)({pluginsConfig:nN}),baseConfig:{coreType:(0,eL.wA)({abTestData:lL})}})},[lL,nN]);let nC=r.useMemo(()=>{var e,l,n,t;let r="",a="off",o="game";return eX[8]?r="radio":eX[12]?r="party":eX[5]&&(lV.includes(24)?r="radio":lV.includes(26)&&(r="party")),(null==lV?void 0:lV.includes(4))&&(a="on"),eX[8]||eX[12]?o="video":eX[5]&&(o="voice"),(0,d._)((0,i._)({},e$),{enter_method:(null==e$?void 0:e$.enter_method)||"web_card",enter_from_merge:null==e$?void 0:e$.enter_from_merge,game_name:eq,search_params:JSON.stringify((null==e$?void 0:e$.search_params)||"{}"),search_tab:`aweme_${null==e$?void 0:null===(e=e$.search_params)||void 0===e?void 0:e.search_type}`,previous_page:"",live_type:o,function_type:r,seat_fit_status:a,request_id:null==e$?void 0:e$.request_id,column_type:(null==e$?void 0:null===(l=e$.search_params)||void 0===l?void 0:l.colum_type)||"single",search_id:null==e$?void 0:null===(n=e$.search_params)||void 0===n?void 0:n.search_id,search_result_id:null==e$?void 0:null===(t=e$.search_params)||void 0===t?void 0:t.search_result_id})},[e$,eq,eX,lV]),nT=r.useMemo(()=>{let e={};return"string"==typeof ez&&"0"!==ez&&(e.camera_id=ez),e},[ez]),nS=eK||(0,C.h)(eH,nT),nP=(0,P.f)(e=>e.setMessageInstance),nL=(0,P.f)(e=>e.destroy);r.useEffect(()=>(nP(new L.v0C),()=>{nL&&nL()}),[]);let nj=(0,P.f)(e=>e.messageInstance),[nR,nM]=r.useState(null),{isVip:nD,isVipLive:nA,freePreview:nF}=(0,R.Rk)(nR||(null==lC?void 0:lC.paid_live_data)||{},lL);(0,j.q)({message:nj}),r.useEffect(()=>{try{if(li)return nj.setImRequestPath("/webcast/im/fetch/preview/"),nj.start(lP),()=>{var e;return null==nj?void 0:null===(e=nj.destroy)||void 0===e?void 0:e.call(nj)}}catch(e){}},[lP,li]);let nV=r.useCallback(()=>{_.emit(_.EVENT.searchMusicPause);let e=lR();null==e3||e3(null==e?void 0:e.src)},[e3,lR]);r.useEffect(()=>{if(li&&(null==lL?void 0:lL.enableSuspendAudioOnExit)===m.CommonSwitch.On)try{(0,ek.QU)()}catch(e){}},[li,lL]);let nO=r.useCallback(()=>{if(!l8)return(0,M.Y)(eW,ln).then(e=>{let{status_code:l,data:n=[]}=e.data;if(0===l){if(n.some(e=>{let l=(e.user_live||[])[0];return(null==l?void 0:l.live_status)===1}))return lF(c.LIVING),c.LIVING;{let e=lR();return null==e||e.pause(),lF(c.ENDED),c.ENDED}}return lF(c.ERROR),c.ERROR})},[eW,ln,l8,lR,lF]),nU=r.useRef(0),nG=(0,N.Z)(()=>{if(l8){null==l5||l5();return}li&&nO().then(e=>{let l=lR();if(e===c.LIVING&&nU.current<3){var n;null==l||null===(n=l.retry)||void 0===n||n.call(l),nU.current=nU.current+1}})}),nB=r.useCallback(()=>{nU.current=0,nV(),lZ(!1),lF(c.LIVING),!l6.current&&(l6.current=!0)},[nV,li]),nW=r.useCallback(()=>{e5(),lZ(!0)},[e5]),nZ=r.useCallback(()=>{null==e2||e2()},[e2]),nH=r.useCallback(()=>{null==e6||e6()},[e6]),nz=r.useCallback(e=>{let{action:l,paused:n}=e,t="";switch(l){case"switch_play_pause":t=n?"click_play_button":"click_pause_button";break;case"switch_fullscreen":t="click_full_screen";break;case"change_muted":t="click_volume"}t&&g.logInstance.sendLog("userAction",(0,d._)((0,i._)({},null==e$?void 0:e$.search_params),{button_type:t}))},[e$]);r.useCallback(()=>{g.logInstance.sendLog("userAction",(0,d._)((0,i._)({},null==e$?void 0:e$.search_params),{button_type:"click_refresh"}))},[e$]);let nq=r.useCallback(()=>{_.emit(_.EVENT.searchVideoLoadStart,{playerType:"live"})},[]),nK=r.useCallback(()=>{l2(!0),_.emit(_.EVENT.searchVideoLoaded,{playerType:"live"}),_.emit(_.EVENT.searchPageHydrate)},[]);r.useEffect(()=>{if(eJ){var e;let l=lR();(0,D.JW)((0,d._)((0,i._)({anchor_id:eW,room_id:lP,is_paidlive:Number(ny),is_aweme_tied:null==e$?void 0:e$.is_aweme_tied,search_type:(null==e$?void 0:null===(e=e$.search_params)||void 0===e?void 0:e.search_type)||"",follow_status:no,if_live_close:ne===c.ENDED?1:0},(0,D.Ne)(e1),nC,nv),{is_viplive:nA?1:0,playing_stream_url:null==l?void 0:l.src}))}},[eJ,lP]),r.useEffect(()=>{lU((0,p.fV)())},[]),r.useEffect(()=>{lB((0,h.DT)())},[]),r.useEffect(()=>{lu&&nG()},[lu,nG,eW]);let n$=function(e){let[l,n]=(0,r.useState)(null),[i,t]=(0,r.useState)(null);return(0,r.useEffect)(()=>{if(!!e)(async()=>{try{t(null);let e=await (0,A.ZP)({service_name:"webcast.douyin.live_pc",key:"polling_frequency"});n(e)}catch(e){t(e instanceof Error?e:Error(String(e)))}})()},[e]),{pollingFrequency:l,error:i}}(!0),nY=r.useMemo(()=>(null==n$?void 0:n$["webcast/distribution/check_user_live_status"])||6e4,[n$]);r.useEffect(()=>{if(ls&&ne===c.LIVING){let e=setInterval(()=>nO(),nY);return()=>clearInterval(e)}},[ls,nO,ne,nY]);let nJ=r.useCallback(function(){var e;let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=lR();if((0,D.bi)((0,i._)({anchor_id:eW,room_id:lP,video_id:lP,is_aweme_tied:null==e$?void 0:e$.is_aweme_tied,play_url:null==n?void 0:n.src},(0,D.Ne)(e1),nC)),g.logInstance.sendLog("userAction",(0,d._)((0,i._)({},null==e$?void 0:e$.search_params),{from_video_id:w.Le.getConfig(w.gI.PageEnterFromVideoID)||"",button_type:"click_into_live"})),lZ(!0),null==n||n.pause(),nl){ni();return}null==l||null===(e=l.callback)||void 0===e||e.call(l)},[nl,ni,e$,nC,eW,lP]);(0,y.o)(()=>{let e=lR();if(e){var l;null==e||null===(l=e.play)||void 0===l||l.call(e)}},[]);let{onCartClick:nQ,onPromotionPopClick:nX,onShopLoginSuccess:n0}=(0,F.L)({onEnterRoom:nJ,propsOnLoginSuccess:lw,href:nS,enterLogParams:(0,d._)((0,i._)({},nC),{enter_method:(null==e$?void 0:e$.shop_car_method)?null==e$?void 0:e$.shop_car_method:"web_live_card_popup_card"}),isReuseBasicPlayer:nl}),{liveDuration:n1}=H({roomId:lP,anchorId:eW,hasPlay:lz,program:e1,enterLogParams:nC,shopParams:nv,nowTime:lH,isActive:li,isPause:lW,isVisibleRef:l$,isPaidLive:ny,isFollow:no,isModal:lx,isGameLive:lS,getPlayer:lR}),{playerWaterMark:n2,volumeWaterMark:n6}=(0,z.Z)({user_id:(0,k.sq)(),player:lj,isLiveWaterMark:(null==lL?void 0:null===(ed=lL.liveWaterMark)||void 0===ed?void 0:ed.searchPreview)===1&&0===Object.keys(null!=eX?eX:{}).length,isSmallWindow:!1,isPlayerSucc:l1,liveUserWaterMarkEvent:D.xw,logParams:(0,d._)((0,i._)({},nC),{anchor_id:eW,room_id:lP,video_id:lP})});r.useEffect(()=>{if(!!lj){if(ne===c.ENDED){var e,l,n,i,t,r;null===(n=lj.plugins)||void 0===n||null===(l=n.play)||void 0===l||null===(e=l.hide)||void 0===e||e.call(l),null===(r=lj.plugins)||void 0===r||null===(t=r.volume)||void 0===t||null===(i=t.hide)||void 0===i||i.call(t)}}},[ne]),r.useEffect(()=>{lZ(!li),w.Le.setConfig(w.gI.HasLiveContent,li)},[li]),r.useEffect(()=>{let e=()=>{l$.current="hidden"===document.visibilityState?0:1,ne===c.LIVING&&!lW&&!lY.current&&n1("visibilitychange")};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[ne,lW,lY,n1]),r.useEffect(()=>{li&&lW&&lz&&(lY.current=Date.now(),n1("pause")),li&&!lW&&(lH.current=Date.now(),lY.current=0),!li&&l6.current},[li,lW,lz]);let n3=(null==lp?void 0:null===(e_=lp.info)||void 0===e_?void 0:e_.shortId)||"";r.useEffect(()=>{if(!lj)return;let e=()=>{lZ(!1),lq(!0),li&&lK.current&&ne===c.LIVING&&(n1("success"),lH.current=Date.now())},l=()=>{lZ(!0)},n=()=>{null==e4||e4(),!lY.current&&ne===c.LIVING&&(n1("play_destroy"),lq(!1))};return null==lj||lj.on("autoplay_started",e),null==lj||lj.once("destroy",n),null==lj||lj.on("autoplay_was_prevented",l),()=>{try{null==lj||lj.off("autoplay_started",e),null==lj||lj.off("autoplay_was_prevented",l),null==lj||lj.off("destroy",n)}catch(e){}}},[li,lH.current,lK,lZ,lq,lP,eW,l$,lY.current,e4]),r.useEffect(()=>{(async()=>{try{let e=await (0,A.ZP)({service_name:"webcast.douyin.live_pc",key:"entrance"});l0(!0),"object"==typeof e&&lQ(e)}catch(e){l0(!1)}})()},[]);let n5=r.useCallback(()=>{if(l8){null==l4||l4();return}lF(c.LIVING)},[]),n9=(null==e1?void 0:null===(eh=e1.mod)||void 0===eh?void 0:eh.episode_stage)===D.jL.FIRST_LIVE,n4=r.useMemo(()=>({is_paidlive:Number(ny),watch_paidlive_status:(0,q.oD)(n_),entrance_form:""}),[ny,n_]),n8=r.useMemo(()=>(0,i._)({},nv,n4,nC),[nv,n4,nC]);r.useEffect(()=>{let e;if(!li)return;let l=e=>{null==e||e.stopPropagation()},n=lR();if(n){var i,t;null==(e=null===(t=n.getPlugin)||void 0===t?void 0:null===(i=t.call(n,"volume"))||void 0===i?void 0:i.root)||e.addEventListener("pointerdown",l),null==e||e.addEventListener("touchstart",l)}return()=>{null==e||e.removeEventListener("pointerdown",l),null==e||e.removeEventListener("touchstart",l)}},[lz,li]);let n7=(0,r.useMemo)(()=>({autoplay:!0,volume:(0,Y.T1)(),webTsPreloadScopeId:O.BW,enablePreloadWebTsSDK:(null==lD||!lD.enablePreCreatePlayerCore)&&(0,E.m)()&&!!(null==lD?void 0:lD.enablePreloadWebTsSDK)}),[lD]),ie={user_id:(0,k.sq)(),device_id:(0,k.Es)().user_unique_id,scene:J.C.liveSearch,live_type:null==lC?void 0:lC.live_room_mode,is_game:null==lC?void 0:null===(eA=lC.game_data)||void 0===eA?void 0:null===(eD=eA.game_tag_info)||void 0===eD?void 0:eD.is_game,is_shopping:nd,is_game_live:lS?1:0},il=(0,r.useMemo)(()=>{var e;return 3===Number(null==lC?void 0:lC.live_room_mode)&&(null==lC?void 0:null===(e=lC.linker_detail)||void 0===e?void 0:e.function_type)!=="audio_audience"},[lC]),ii=(0,eb.X3)();return li?(0,t.jsx)("div",{className:o()($.default.liveSearchPlayerWrap,le,lG&&"electron","Mac"===lO.os?"mac":"",`docId_${lI}`,li&&"liveSearchActivePlayer",ii),children:(0,t.jsxs)(K.N,{className:o()($.default.player,$.default.liveSearchPlayer,"liveSearchPlayer"),baseConfig:n7,pluginsConfig:nN,onFocus:nZ,onBlur:nH,onPause:nW,onPlay:nB,onEnd:nG,onLoadStart:nq,onError:l3,onLoadedData:nK,sessionId:lv,logOptions:ie,secretKey:lg,isPaidLive:ny,isVip:nD,isVipLive:nA,autoHide:!1,rotate:!0,disableFullScreen:lo,poster:eG,style:ll,onReady:e9,onFullScreen:e7,onUserAction:nz,playerWaterMark:n2,volumeWaterMark:n6,disableLogger:ne===c.ENDED,role:"consumer",scene:"LiveSearchPlayer",children:[(0,t.jsx)("div",{children:(0,t.jsx)(eo.G,{target:(null==nt?void 0:nt.html_target)||"_blank",href:na,onClick:nJ,passParams:nC,className:$.default.linkArea})}),ne!==c.ENDED&&!nk&&(0,t.jsx)(Q.Z,{className:$.default.preview,linkerMap:eX,anchorId:eW,roomId:lP,functionType2:"new_audience",linkmicVideoEqualLayoutFrameOpt:ns,disableClairvoyance:il,disableLynx:!0}),ne!==c.ENDED&&!nk&&(0,t.jsx)(X.D,{messageInstance:nj}),(0,t.jsx)(ee.VipLiveBoundaryPlugin,{onShowVipLiveBoundary:e=>{e&&nM({privilege_info_map:{101:{paid_live_type:101,paid_live_info:{view_right:0}}}})},onBtnClick:()=>{window.open(`${nr}?${I.stringify((0,d._)((0,i._)({},nC),{open_vip_panel:1}))}`,(0,x.f)()?"_self":"_blank")},roomId:lP,roomStatus:ne,paidLiveData:nR||lh,roomInfo:{room:{id_str:lP},anchor:{id_str:eW,nickname:null==lC?void 0:null===(eF=lC.owner)||void 0===eF?void 0:eF.nickname}},messageInstance:nj,abTestData:lL}),(0,t.jsx)(el.VolumeWheel,{props:{isActive:li,defaultIcon:!0},isActive:li}),(0,t.jsx)(en.n,{position:0}),(0,t.jsx)(ei.AdaptedBySEIPlugin,{linkmicVideoEqualLayoutFrameOpt:ns}),ne===c.ENDED&&(0,t.jsx)(et.PlayerEndCover,{className:$.default.endCover,cover:eG,isPreview:!0}),(0,t.jsx)(er.NewPlayerErrorCover,{className:ld,onRetry:n5,onlyManulRetry:!0,enable:!ny&&ne===c.ERROR}),(0,t.jsx)(u.j,{count:eZ,program:e1,title:lt,showTitle:lr,appointment:eY,className:$.default.userCount,paidLiveData:nh,isLogin:nc,viewType:n_,assist_label:null!=lE?lE:null==lC?void 0:lC.assist_label,webEnterBenefitPointData:null==lC?void 0:null===(eV=lC.others)||void 0===eV?void 0:eV.web_enter_benefit_point_data,showRedPack:!0}),(0,t.jsx)(ea.PlayerLoggerPlugin,{ext:{ignoreEmptyUrlUpload:ne===c.ENDED||void 0===ne?1:0,isNewAce:!0,roomMode:e0,roomId:lP,webRid:eH,enter_from_merge:null==e$?void 0:e$.enter_from_merge,enter_method:"web_live_cell",is_preview:0,act_code:null==e$?void 0:e$.act_code}}),!eB&&(0,t.jsx)(eo.G,{target:(null==nt?void 0:nt.html_target)||"_blank",href:na,onClick:nJ,passParams:nC,className:o()($.default.divide,{[$.default.inActive]:nf}),children:lX&&(0,t.jsx)(eu.Z,{enterText:(null==e1?void 0:null===(eO=e1.mod)||void 0===eO?void 0:eO.episode_stage)===D.jL.FIRST_LIVE?"点击进入首播":null==nt?void 0:nt.enter_text,divideAb:!0,isActive:li,abTestData:lL,isLiving:ne===c.LIVING,onEnterRoom:nJ,forceEnter:nl?nJ:void 0,href:na,roomIdStr:lP,useF:!0,size:"small",scene:"douyin_pc_search",rawdata:lC})}),la&&(0,t.jsx)(ec,{title:lt,authorInfo:lm,className:$.default.liveInfo}),(0,t.jsx)("div",{className:$.default.toolbarContainer,children:(0,t.jsx)(eR,{type:"mini",scene:"preview",headerUserInfo:lp,defaultCartVisible:nd,onLoginSuccess:n0,onPopClick:nX,onCartClick:nQ,isLiveShopPopVisibel:null==lp?void 0:lp.isLogin,roomId:lP,authorId:eW,getLiveShoppingLogParams:()=>({enter_from_merge:null==e$?void 0:e$.enter_from_merge,enter_method:"web_live_cell",request_id:e$.request_id}),messageInstance:nj})}),(0,t.jsx)(ev.VolumeMemoryPluginSimple,{}),(0,t.jsx)(ef.b,{isActive:li,isShowGuide:lb,useNewUserSoundGuide:lN}),ny&&ne!==c.ENDED&&(0,t.jsx)(em.PaidLivePlugin,{paidLiveData:nh,isLogin:nc,display_id:n3,webRid:eH,roomId:lP,viewType:n_,setViewType:nm,setRetType:np,scene:eg.W.LIVING_SEARCH,retType:ng,setPaidLiveData:nw,isFirstLive:n9,logParams:n8,onPaidLiveTryWatch:ly,onPaidLiveBuyTicket:lk,isActive:li}),(0,t.jsx)(ep.GlobalControlPlugin,{}),(0,t.jsx)(ew,{isActive:li}),(0,t.jsx)(ey.l,{from:"search_player",isActive:li,hackFullScreenDom:!0,videoAreaClickActive:!1,logParams:e$,enableInteractionPlugin:!1,searchListType:"single",isUpperFeed:!1,livePlayer:lj,liveDocId:lI}),(0,t.jsx)(eE.t,{logParams:e$}),lc,li&&(0,t.jsx)(eI.h,{source:"Search"})]})}):(0,t.jsxs)("div",{className:o()($.default.player,le),style:ll,children:[(0,t.jsx)("img",{src:eG,className:$.default.poster}),(0,t.jsx)(u.j,{count:eZ,program:e1,title:lt,showTitle:lr,appointment:eY,className:$.default.userCount,paidLiveData:nh,assist_label:null!=lE?lE:null==lC?void 0:lC.assist_label,webEnterBenefitPointData:null==lC?void 0:null===(eU=lC.others)||void 0===eU?void 0:eU.web_enter_benefit_point_data,showRedPack:!0})]})}),eA=(0,eb.RS)(eD),eF=e=>{var l;let{className:n,style:i,cover:r,userCount:a,program:s,title:d,showTitle:c,paidLiveData:v,appointment:f,__rawdata:_}=e;return(0,t.jsxs)("div",{className:o()($.default.player,n),style:i,children:[(0,t.jsx)("img",{src:r,className:$.default.poster}),(0,t.jsx)(u.j,{count:a,program:s,title:d,showTitle:c,appointment:f,className:$.default.userCount,paidLiveData:v,assist_label:null==_?void 0:_.assist_label,webEnterBenefitPointData:null==_?void 0:null===(l=_.others)||void 0===l?void 0:l.web_enter_benefit_point_data,showRedPack:!0})]})},eV=r.forwardRef((e,l)=>{var n;let a=r.useMemo(()=>{var l;return(0,s.Lj)(null!==(l=null==e?void 0:e.webRid)&&void 0!==l?l:"-1")()},[null==e?void 0:e.webRid]);return(0,t.jsx)(s.qd.Provider,{value:a,children:(0,t.jsx)(ex.LF,{children:(0,t.jsx)(eA,(0,i._)({},e))})},null!==(n=null==e?void 0:e.webRid)&&void 0!==n?n:"-1")})},319722:function(e,l,n){n.d(l,{S:function(){return f}});var i=n(629686),t=n(402748);n(490629);var r=n(101199),a=n(618759),o=n(461014),u=n(858651),s=n(690193);let d=e=>{let{scene:l,abTestData:n}=e;switch(l){case"search":return{clientRTMConfig:(0,u.getLiveSearchRTMABConfigInClient)(n),webRTMConfig:(0,u.getLiveSearchRTMABConfigInWeb)(n)};case"living":return{clientRTMConfig:(0,u.getLiveLivingRTMABConfigInClient)(n),webRTMConfig:(0,u.getLiveLivingRTMABConfigInWeb)(n)};default:return{clientRTMConfig:void 0,webRTMConfig:void 0}}},c=e=>{let{clientRTMConfig:l,webRTMConfig:n}=e;return(0,a.iQ)("6.8.0")?(0,t._)((0,i._)({},l),{enable:!!(null==l?void 0:l.enable),extraQuery:(null==l?void 0:l.extraQuery)||{protocol_stack:"go"},type:"client"}):(0,o.m)()?(0,t._)((0,i._)({},n),{enable:!!(null==n?void 0:n.enable),type:"web"}):{enable:!1,enableCdnList:[],type:void 0}},v=function(){for(var e,l,n=arguments.length,i=Array(n),t=0;t{let l=(0,u.useGetAllAbTestData)();return(0,r.useMemo)(()=>v({scene:e,abTestData:l}),[e,l])}},70864:function(e,l,n){n.d(l,{s:function(){return b}});var i=n("629686");n("490629"),n("706056"),n("313036");var t=n("320165"),r=n("101199"),a=n("469935"),o=n.n(a),u=n("254457"),s=n("402748");let d=(0,r.forwardRef)((e,l)=>(0,t.jsxs)("svg",(0,s._)((0,i._)({width:22,height:22,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:[(0,t.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,t.jsx)("defs",{children:(0,t.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,t.jsx)("stop",{stopColor:"#E1FFFE"}),(0,t.jsx)("stop",{offset:1,stopColor:"#83FAFF"})]})})]})));var c=n("384293"),v=n("176449"),f=n("855357"),_=n("333131"),m=n("734123"),g=n("46892"),p=n("326367"),h=n("386206"),w=n("913285"),y=n("310383"),k=n("63601"),E=n("736068"),x=n("746517");let I=e=>{var l,n,i,a;let{awemeInfo:s,isActive:f,unlockCurrentScene:w,isOnlyShowTag:y=!1,emitter:I,userInfo:b,loginDispatch:N,isLogin:C,requestLogin:T,control:S}=e,[P,L]=(0,r.useState)(!1),[j,R]=(0,r.useState)(!1),M=(0,r.useMemo)(()=>{var e;return(null==s?void 0:null===(e=s.entertainmentPreviewConfig)||void 0===e?void 0:e.end_time)||0},[null==s?void 0:s.awemeId]),[D,A]=(0,r.useState)(M),F=(0,r.useRef)(!0),V=(0,k.n)();(0,r.useEffect)(()=>{var e,l;let n=w?I:V;if((null==n?void 0:n.on)&&f&&(null==s?void 0:null===(e=s.entRightInfo)||void 0===e?void 0:e.right_status)===1){let e=e=>{var l,n,i,t,r,a,o,u,d;let{currentTime:c}=e;if((null===(a=window)||void 0===a?void 0:null===(r=a.location)||void 0===r?void 0:null===(t=r.href)||void 0===t?void 0:null===(i=t.includes)||void 0===i?void 0:i.call(t,null==s?void 0:null===(n=s.lvideoBrief)||void 0===n?void 0:null===(l=n.episodeInfo)||void 0===l?void 0:l.episodeId))===!1)return;let v=null==S?void 0:null===(o=S.getValue)||void 0===o?void 0:o.call(S,"paidContent");A(Math.max(0,M-1e3*c)),1e3*c>=M?(!v&&(null==S||null===(u=S.dispatch)||void 0===u||u.call(S,"paidContent",!0)),!P&&!j&&F.current&&(F.current=!1,L(!0))):(F.current=!0,v&&(null==S||null===(d=S.dispatch)||void 0===d||d.call(S,"paidContent",!1)))};return null==n||null===(l=n.on)||void 0===l||l.call(n,m.Events.TIME_UPDATE,e),()=>{var l;null==n||null===(l=n.off)||void 0===l||l.call(n,m.Events.TIME_UPDATE,e)}}},[V,f,w,P,j,s]),(0,r.useEffect)(()=>(L(!1),R(!1),()=>{var e;null==S||null===(e=S.dispatch)||void 0===e||e.call(S,"paidContent",!1)}),[s]);let O=async()=>{var e,l,n;if((null==s?void 0:null===(e=s.entRightInfo)||void 0===e?void 0:e.right_status)===2)return;let i=()=>{var e,l,n,i;if(w)L(!0);else if(null==s?void 0:null===(l=s.lvideoBrief)||void 0===l?void 0:null===(e=l.episodeInfo)||void 0===e?void 0:e.episodeId){let e=`current_video_time=${Math.ceil(null==V?void 0:V.currentTime)}`,l=(0,g.c7)(null==s?void 0:null===(i=s.lvideoBrief)||void 0===i?void 0:null===(n=i.episodeInfo)||void 0===n?void 0:n.episodeId,e);window.open(l,(0,p.f)()?"_self":"_blank","noopener")}};(null==b?void 0:b.isLogin)||C?i():T?(await T("登录后购买","lv_paid"),i()):(0,x.default)({success:async()=>{null==N||N({type:"updateUserInfo"}),i()},enterMethod:"jingxuan_video",headerText:"登录后即可购买",next:`https://${null===(n=window)||void 0===n?void 0:null===(l=n.location)||void 0===l?void 0:l.host}`})};return(0,t.jsxs)("div",{className:o()({[c.default.tagContainer]:w,[c.default.onlyShowTagContainer]:y}),children:[!!j&&!y&&(0,t.jsx)(_.A,{awemeInfo:s,onClose:()=>{R(!1),L(!0)},onPaySuccess:()=>{window.location.reload()},shareScene:"aweme_pc_jinxuan_lvideo_pay"}),!!(P&&!j&&!y)&&(0,t.jsxs)("div",{className:o()(c.default.buyTicketContainer),children:[!!(null==s?void 0:null===(l=s.authorInfo)||void 0===l?void 0:l.nickname)&&(0,t.jsxs)("div",{className:o()(c.default.author),children:["@",(null==s?void 0:null===(n=s.authorInfo)||void 0===n?void 0:n.nickname)||""]}),(0,t.jsx)("div",{className:o()(c.default.memberTagContainer),children:(0,t.jsxs)("div",{className:c.default.memberTagV2,children:[(0,t.jsx)(v.Z,{className:c.default.memberIconV2,src:d,width:14,height:14,viewBox:"0 0 22 22"}),(0,t.jsx)("span",{className:c.default.memberTextV2,children:"精选会员"})]})}),(0,t.jsx)("div",{className:o()(c.default.description),children:(null==s?void 0:s.desc)||""}),(0,t.jsx)("div",{className:o()(c.default.button),onClick:()=>R(!0),children:"买券看全片"}),(0,t.jsx)(E.Z,{className:c.default.close,onClick:()=>L(!1)})]}),!!(!j&&!P)&&(0,t.jsxs)("div",{className:o()(c.default.container),onClick:O,children:[(0,t.jsxs)("div",{className:c.default.memberTag,children:[(0,t.jsx)(v.Z,{className:c.default.memberIcon,src:d,width:22,height:22,viewBox:"0 0 22 22"}),(0,t.jsx)("span",{className:c.default.memberText,children:"精选会员"})]}),(null==s?void 0:null===(i=s.entRightInfo)||void 0===i?void 0:i.right_status)===1?(0,t.jsxs)("div",{className:c.default.previewInfo,children:["00:00"===(0,h.$y)(D)?(0,t.jsx)("span",{className:c.default.previewTextEnd,children:"试看结束"}):(0,t.jsxs)("span",{className:c.default.previewText,children:["试看",(0,h.$y)(D)]}),!y&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:c.default.divider}),(0,t.jsxs)("div",{className:c.default.buyButton,children:[(0,t.jsx)("span",{className:c.default.buyText,children:"解锁"}),(0,t.jsx)(v.Z,{className:c.default.arrowIcon,src:u.Z,width:12,height:12,viewBox:"0 0 12 12"})]})]})]}):null,(null==s?void 0:null===(a=s.entRightInfo)||void 0===a?void 0:a.right_status)===2?(0,t.jsx)("div",{className:o()(c.default.previewInfo,c.default.previewInfoUnlock),children:"已解锁"}):null]})]})},b=e=>{var l,n;let{awemeInfo:r}=e,a=(0,y.N)();return(null==r?void 0:r.awemeType)===f.e.Lvideo&&(null==r?void 0:null===(n=r.entertainmentVideoPaidWay)||void 0===n?void 0:null===(l=n.paid_ways[0])||void 0===l?void 0:l.paid_way)===9?(0,t.jsx)(w.k,{componentName:"JingxuanVideoTag",Slardar:a,children:(0,t.jsx)(I,(0,i._)({},e))}):null}},295102:function(e,l,n){n.d(l,{P:function(){return p}});var i=n("320165"),t=n("101199"),r=n("469935"),a=n.n(r),o=n("618759"),u=n("915821"),s=n("879802"),d=n("176449"),c=n("316213"),v=n("629686"),f=n("402748");let _=(0,t.forwardRef)((e,l)=>(0,i.jsx)("svg",(0,f._)((0,v._)({width:18,height:18,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,i.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"})}))),m=(0,t.forwardRef)((e,l)=>(0,i.jsx)("svg",(0,f._)((0,v._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,i.jsx)("path",{d:"M16 4l-8 8.14L16 20",stroke:"#fff",strokeOpacity:".7",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",shapeRendering:"crispEdges"})})));var g=n("529840");let p=e=>{let{onClick:l,isClientMiniWin:n,isBackSvg:t=!1}=e,r=(0,o.DT)()&&(0,u.y)((0,o.FJ)().awemePcClient,">=","5.4.0"),v=!(t||r);return(0,i.jsxs)("div",{className:a()(g.default.container,"isDark",{[g.default.hide]:n},r&&g.default.clientHomeStyleWrap),onClick:l,children:[(0,i.jsx)("div",{className:g.default.circle}),r&&(0,i.jsx)(c.z,{className:a()(g.default.back),svg:(0,i.jsx)(s.Z,{style:{fontSize:"24px"}})}),t&&!r&&(0,i.jsx)(d.Z,{src:m,className:g.default.back,viewBox:"0 0 24 24"}),v&&(0,i.jsx)(d.Z,{src:_,className:g.default.close,viewBox:"0 0 18 18"})]})}},295613:function(e,l,n){n.d(l,{g:function(){return p}});var i=n(629686);n(490629),n(706056);var t=n(101199),r=n(855357),a=n(939165),o=n(72430),u=n(499059),s=n(609555),d=n(414061),c=n(880327),v=n(332009),f=n(265018),_=n(365169);let m=[r.e.LiveCard,r.e.WordCupCard,r.e.Article],g=[r.e.LiveCard,r.e.WordCupCard,r.e.Note,r.e.Article],p=e=>{let{swiper:l,setAwemeInfoList:n,awemeInfoList:p,awemeInfo:h,refMixPlayer:w,liveCardDisable:y=!0,scrollRef:k,isInnerFeed:E,enterFrom:x}=e,I=(0,t.useRef)(null),b=(0,f.Z)({refMixPlayer:w,from:"sideList"}),{isWebMiniWin:N,isListenVideoMiniWin:C}=(0,_.Iq)(e=>{let{isWebMiniWin:l,isListenVideoMiniWin:n}=e;return{isWebMiniWin:l,isListenVideoMiniWin:n}}),[T,S]=(0,t.useState)(!1),P=(0,t.useRef)({}),L=(0,t.useRef)([]),j=(0,t.useRef)(0);L.current=p,I.current=null==k?void 0:k.current;let R=(0,t.useMemo)(()=>N||b||C,[N,b,C]);return(0,a.o)(()=>{var e,i;let t=void 0!==E&&E||(null===(e=u.Le.getConfig(u.gI.IsInLookMiniModal))||void 0===e?void 0:e.isInMiniModal),r=null==w?void 0:null===(i=w.current)||void 0===i?void 0:i.getPlayer();if(!(r&&!r.isUserActive&&x&&["follow","friend"].includes(x)&&(N||C))){if(R&&(!t||!T)&&l&&p){for(let e=0;e{var e;let i=0,t=[...L.current];for(let e=0;el.slideTo(l.activeIndex+i,0),0)}}}},[R,T,l,E]),(0,a.o)(()=>{let e=d.listen(d.EVENT.exitModalVideo,()=>{var e,l,n,i;if((null===(e=I.current)||void 0===e?void 0:e.setScrollData)&&(null===(n=L.current)||void 0===n?void 0:null===(l=n.filter(e=>"releated"===e.dataType))||void 0===l?void 0:l.length)>0){let e=null===(i=L.current)||void 0===i?void 0:i.filter(e=>"releated"!==e.dataType);I.current.setScrollData({dataList:e})}});return()=>{e()}},[]),(0,a.o)(()=>{let e=d.listen(d.EVENT.changeMinWindows,e=>{var n,i;let{event:t,clickMethod:a,source:s}=e,f=null==w?void 0:null===(n=w.current)||void 0===n?void 0:n.getPlayer(),_=(null==p?void 0:null===(i=p[null==l?void 0:l.activeIndex])||void 0===i?void 0:i.awemeType)===r.e.LiveCard&&y&&"small_window_widget"!==s,m=v.s.getPlayersByScene(o.lT.Modal).length>0&&f&&v.s.getPlayerScene(null==f?void 0:f.playerId)!==o.lT.Modal;if(!_&&!m)"check"===t&&setTimeout(()=>{if(!u.Le.getConfig(u.gI.IsMiniWin))((null==p?void 0:p.length)>0||h)&&((0,c.r)()&&(null==f||f.exitFullscreen()),d.emit(d.EVENT.changeMinWindows,{event:"open",isMiniWin:!0,clickMethod:a,source:s}))},50)});return()=>e()},[p,h,w,l,y]),(0,a.o)(()=>{var e,l;let t=null==w?void 0:null===(e=w.current)||void 0===e?void 0:e.getPlayer();if(t&&!t.isUserActive&&x&&["follow","friend"].includes(x)&&(N||C))return;let r=void 0!==E&&E||(null===(l=u.Le.getConfig(u.gI.IsInLookMiniModal))||void 0===l?void 0:l.isInMiniModal);if(R&&(!r||!T)&&p&&p.length!==j.current){let e=Object.keys(P.current).length,l={};for(let n=0;n{let e=d.listen(d.EVENT.changeVideoSideBar,e=>{let{isShowRelatedCard:l,isAuthorCardShow:n}=e;S(!!(l||n))});return()=>e()},[]),{refLiveStore:P}}},849085:function(e,l,n){n.d(l,{t:function(){return c}});var i=n("629686"),t=n("402748"),r=n("101199"),a=n("502615"),o=n("499059"),u=n("624508"),s=new u.h({userAction:{eventName:"search_result_click",params:{impr_id:"",rank:0,search_id:"",search_keyword:"",search_result_id:"",from_video_id:"",is_aladdin:0,token_type:"",button_type:"",enter_from:"general_search"}}}),d=n("63601");let c=e=>{let{logParams:l}=e,n=(0,d.n)(),u=(0,r.useCallback)(e=>{let{action:r,pluginName:a,paused:u,status:d}=e,c="";switch(r){case"switch_play_pause":c=(null==n?void 0:n.paused)?"click_play_button":"click_pause_button";break;case"switch_fullscreen":c="click_full_screen";break;case"click":case"dragend":"progress"===a&&(c="click_progress");break;case"change_muted":c="click_volume";break;case"speed_change":c="click_speed_change";break;case"clean_screen":c="open"===d?"click_bullet_clean":"click_bullet_close";break;case"switch_clarity":c="click_quality_change";break;case"page_fullscreen_change":c="click_full_window";break;case"fake_screen_change":c="open"===d?"click_intelligence_size":"click_formal_size";break;case"danmaku_switch":c="open"===d?"click_bullet_open":"click_bullet_close";break;case"danmaku_emoji_click":c="click_bullet_emo";break;case"danmaku_setting":c="click_bullet_setting";break;case"danmaku_input_focus":c="click_bullet_enter";break;case"digg":c="open"===d?"click_good":"click_good_cancel";break;case"open_comment":c="click_comment";break;case"click_share":c="click_forward";break;case"collect":c="on"===d?"click_collect":"click_collect_cancel";break;case"dislike":c="click_dislike";break;case"phone_resume":c="click_phone_continue";break;case"report":c="click_report";break;case"show_short_cut_list":c="click_shortcut_list";break;case"click_view_later":c="click_view_later";break;case"collect_music":c="click_collect_music";break;case"shop_anchor_click":c="click_shop_anchor";break;case"click_compilation":c="click_compilation";break;case"click_hot":c="click_hotboard";break;case"click_related_search":c="click_related_search_anchor_v2";break;case"click_series":c="click_short_video";break;case"click_video_area":c="click_video_area";break;case"click_small_window":c="click_small_window";break;case"click_window_close":c="click_window_close";break;case"click_window_zoom":c="click_window_zoom";break;case"click_window_cancel_pin":c="click_window_cancel_pin";break;case"click_window_pin":c="click_window_pin";break;case"click_window_minimize":c="click_window_minimize"}c&&s.sendLog("userAction",(0,t._)((0,i._)({},null==l?void 0:l.search_params),{button_type:c,button_type_v2:c,from_video_id:o.Le.getConfig(o.gI.PageEnterFromVideoID)}))},[l,n]);return(0,r.useEffect)(()=>{var e;if(!!n)return null==n||null===(e=n.on)||void 0===e||e.call(n,a.FP.USER_ACTION,u),()=>{var e;null==n||null===(e=n.off)||void 0===e||e.call(n,a.FP.USER_ACTION,u)}},[n,u]),null}},977258:function(e,l,n){n.d(l,{l:function(){return m}});var i=n(629686),t=n(101199),r=n(502615),a=n(855357),o=n(1028),u=n(715858),s=n(499059),d=n(414061),c=n(176643),v=n(649310),f=n(63601),_=n(638052);let m=e=>{let{awemeInfo:l,from:n,isActive:m,hackFullScreenDom:g=!1,videoAreaClickActive:p=!1,logParams:h,enableInteractionPlugin:w=!0,searchListType:y,isUpperFeed:k=!1,syncInMulti:E=!1,livePlayer:x,liveDocId:I}=e,b=(0,f.n)(),N=!!x,C=x||b,{openGeneralSearchModalSlide:T}=(0,t.useContext)(c.j)||{},{docId:S}=(0,t.useContext)(v.C)||{},P=x&&I?I:S,L=s.Le.getConfig(s.gI.SearchModalCurrentActiveProgress);return(0,t.useEffect)(()=>{let e=s.Le.getConfig(s.gI.SearchModalEnterFullScreenAfterCreate);if(C&&m&&l){e&&"modal_player"===n&&(s.Le.setConfig(s.gI.SearchModalEnterFullScreenAfterCreate,!1),C.getFullscreen());let{awemeId:i}=l,t=()=>{L[0]=i,L[1]=C.currentTime};return C.on(r.FP.TIMEUPDATE,t),()=>{C.off(r.FP.TIMEUPDATE,t),"search_player"===n&&L[0]===(null==l?void 0:l.awemeId)&&(L[0]="",L[1]=0)}}},[C,l,m]),(0,t.useEffect)(()=>{if(C&&l&&(null==l?void 0:l.awemeType)!==a.e.Note&&(null==l?void 0:l.awemeId)===L[0]){let e=L[1];C.once(r.FP.CANPLAY,()=>{C.seek(e)})}},[C]),(0,t.useEffect)(()=>{if(C&&"search_player"===n&&m)return d.listen(d.EVENT.generalSearchVideoPlay,()=>{(null==l?void 0:l.awemeType)!==a.e.Note&&((null==l?void 0:l.awemeId)===L[0]&&C.seek(L[1]),s.Le.setConfig(s.gI.IsSearchOuterAsync,!0)),C.play()})},[C,m,l]),(0,t.useEffect)(()=>{if(N){var e,l,i;let t=null===(e=C.plugins)||void 0===e?void 0:e.fullscreen.root,r=()=>{var e;null==C||null===(e=C.openGeneralSearchModalSlide)||void 0===e||e.call(C,{from:"fullscreen"})};return C&&m&&"search_player"===n&&g&&(E||y!==o.qs)&&!k&&((null==C?void 0:null===(i=C.plugins)||void 0===i?void 0:null===(l=i.fullscreen)||void 0===l?void 0:l.config)&&(C.plugins.fullscreen.config.disable=!0),null==t||t.addEventListener("click",r)),()=>{var e,l;(null==C?void 0:null===(l=C.plugins)||void 0===l?void 0:null===(e=l.fullscreen)||void 0===e?void 0:e.config)&&(C.plugins.fullscreen.config.disable=!1),null==t||t.removeEventListener("click",r)}}},[C,m,g,y,l,k,E]),(0,t.useEffect)(()=>{if(!N){var e,l,t,r,a;let u=()=>{var e;null==C||null===(e=C.openGeneralSearchModalSlide)||void 0===e||e.call(C,{from:"fullscreen"})},s=()=>{_.logInstance.sendLog("searchHorizontalSubcardClick",(0,i._)({button_type:"click_full_screen"},(null==h?void 0:h.search_params)||{}))},d=null==C?void 0:null===(l=C.root)||void 0===l?void 0:null===(e=l.querySelector)||void 0===e?void 0:e.call(l,".douyin-player-fullscreen");return C&&m&&"search_player"===n&&g&&(E||y!==o.qs)&&!k&&(null==C||null===(a=C.plugins)||void 0===a||null===(r=a.fullscreen)||void 0===r||null===(t=r.updateConfig)||void 0===t||t.call(r,{disabled:!0}),document.addEventListener("fullscreenchange",s),null==d||d.addEventListener("click",u)),()=>{var e,l,n;null==C||null===(n=C.plugins)||void 0===n||null===(l=n.fullscreen)||void 0===l||null===(e=l.updateConfig)||void 0===e||e.call(l,{disabled:!1}),null==d||d.removeEventListener("click",u),document.removeEventListener("fullscreenchange",s)}}},[C,m,g,y,l,k,E]),(0,t.useEffect)(()=>{if(C&&m&&"search_player"===n&&!w&&p){let e=e=>{if(e.target===C.root||e.target===C.video||e.target===C.innerContainer||e.target===C.video.__canvas){var l;null==C||null===(l=C.openGeneralSearchModalSlide)||void 0===l||l.call(C,{from:"pause"}),C.emit(r.FP.USER_ACTION,{action:"click_video_area"});return}};C.config.closeVideoClick=!0;let l=C.root;return l.addEventListener("click",e,!1),()=>{N&&(C.config.closeVideoClick=!1),l.removeEventListener("click",e,!1)}}},[C,m,g,p]),(0,t.useEffect)(()=>{if(C&&"search_player"===n&&m&&!k)return C.openGeneralSearchModalSlide=e=>{let{from:n}=e||{};if("fullscreen"===n&&s.Le.setConfig(s.gI.SearchModalEnterFullScreenAfterCreate,!0),"pause"===n&&!p)return!1;let i=T({docId:P,awemeId:null==l?void 0:l.awemeId,from:n});return i&&(0,u.h)("feed_enter",h),i},()=>{C.openGeneralSearchModalSlide=()=>!1}},[C,l,m,P,T,p,x,k]),(0,t.useEffect)(()=>{if(C&&"search_player"===n){let e=!1,l=d.listen(d.EVENT.pageFullScreen,l=>{let{fullScreen:n}=l;e=n});return()=>{l(),e&&d.emit(d.EVENT.pageFullScreen,{fullScreen:!1,playerId:null==C?void 0:C.playerId,clickMethod:"player_destroy"})}}},[C]),null}},281934:function(e,l,n){n.d(l,{O:function(){return o}});var i=n(101199),t=n(649310),r=n(499059);n(914014);var a=n(365169);let o=e=>{var l;let{scene:n}=e,{isFullScreen:o=!1,isCssFullScreen:u=!1}=null!==(l=(0,i.useContext)(t.C))&&void 0!==l?l:{},{isWebMiniWin:s}=(0,a.Iq)(e=>{let{isWebMiniWin:l}=e;return{isWebMiniWin:l}});(0,i.useEffect)(()=>{let e="normal";s||r.Le.getConfig(r.gI.IsMiniWin)?e="small_window":o?e="full_screen":u&&(e="full_webscreen"),r.Le.setConfig(r.gI.PlayerDisplayMode,e)},[o,u,s])}},992928:function(e,l,n){n.d(l,{g:function(){return a}}),n(76375);var i=n(101199),t=n(734123),r=n(550514);let a=e=>{let{player:l,awemeInfo:n}=e,a=(0,i.useRef)(0);(0,i.useEffect)(()=>{if(l&&n){let{seriesInfo:i,awemeId:o}=n||{},{seriesId:u,currentEpisode:s}=i||{},d=!1,c=async e=>{let{currentTime:n}=e;if(!d&&u&&o&&a.current<5&&n>=5){d=!0;try{let e=await (0,r.tJ)({episode:s,seriesId:u,awemeId:o});if((null==e?void 0:e.statusCode)===0){var i;null==l||null===(i=l.off)||void 0===i||i.call(l,t.Events.TIME_UPDATE,c)}else throw Error(null==e?void 0:e.statusMessage)}catch(e){a.current++}d=!1}};if(u){var e;return null==l||null===(e=l.on)||void 0===e||e.call(l,t.Events.TIME_UPDATE,c),()=>{var e;null==l||null===(e=l.off)||void 0===e||e.call(l,t.Events.TIME_UPDATE,c),a.current=0}}}},[l,n])}},154607:function(e,l,n){n.d(l,{V:function(){return o}}),n(706056);var i=n(101199),t=n(263832),r=n(687581),a=n(601034);let o=e=>{let{awemeInfo:l}=e;(0,i.useEffect)(()=>{var e,n,i,o,u,s,d,c,v;(null==l?void 0:null===(e=l.anchorInfo)||void 0===e?void 0:e.type)===t.as.AnchorShop&&!(null==l?void 0:null===(o=l.anchorInfo)||void 0===o?void 0:null===(i=o.extra)||void 0===i?void 0:null===(n=i[0])||void 0===n?void 0:n.product_detail_schema)&&[1,4].includes(Number(null==l?void 0:null===(d=l.anchorInfo)||void 0===d?void 0:null===(s=d.extra)||void 0===s?void 0:null===(u=s[0])||void 0===u?void 0:u.platform))&&r.oe.event.error({name:r.Mo.ShopAnchorDataError,report:{logId:l.logPb,erroData:null==l?void 0:null===(v=l.anchorInfo)||void 0===v?void 0:null===(c=v.extra)||void 0===c?void 0:c[0],enterFromMerge:(0,a.yW)()}})},[l])}},249449:function(e,l,n){n(490629);var i=n(320165),t=n(101199),r=n(978846),a=n(298202),o=n(251778),u=n(740560),s=n(469935),d=n.n(s),c=n(899152);n(459903),o.Z.use([u.Z]);l.Z=e=>{let{slideItems:l,className:n,width:o,height:u=20,isStartPlay:s=!1}=e,[v,f]=(0,t.useState)(),_=(0,t.useRef)(null);return(0,t.useEffect)(()=>{if(v&&s&&(null==l?void 0:l.length)>1){if(!_.current){var e;null==v||null===(e=v.slideNext)||void 0===e||e.call(v),_.current=setInterval(()=>{var e;null==v||null===(e=v.slideNext)||void 0===e||e.call(v)},3e3)}}else _.current&&clearInterval(_.current),_.current=null},[s,l,v]),(0,t.useEffect)(()=>()=>{_.current&&clearInterval(_.current),_.current=null},[]),(0,i.jsx)("div",{className:d()(c.default.adSwiper,n),children:(0,i.jsx)(r.t,{allowTouchMove:!1,direction:"vertical",slidesPerView:1,spaceBetween:0,loop:!0,onInit:f,width:o,height:u,autoplay:!1,children:l.map((e,l)=>(0,i.jsx)(a.o,{children:(0,i.jsx)("div",{className:c.default.slideContent,children:e})},l))})})}},686060:function(e,l,n){var i=n(320165);n(101199);var t=n(469935),r=n.n(t),a=n(894306);l.Z=e=>{let{className:l,children:n,style:t,onClick:o}=e;return(0,i.jsx)("span",{style:t,className:r()(a.default.adTag,l),onClick:o,children:n})}},380583:function(e,l,n){var i=n(320165);n(101199);var t=n(469935),r=n.n(t),a=n(72878),o=n(256855),u=n(249449),s=n(227831),d=n(290397);l.Z=e=>{let{className:l,title:n,imageUrl:t,isBackupImgUrl:c=!1,slideItems:v,buttonText:f,buttonBgColor:_=a.DEFAULT_BUTTON_COLOR,onClick:m,isStartPlay:g}=e;return(0,i.jsxs)("div",{className:r()(o.default.doubleLineAdCard,l),onClick:e=>m(e,{refer:d.tU.Blank}),children:[(0,i.jsxs)("div",{className:o.default.adInfo,children:[(0,i.jsx)("div",{onClick:e=>m(e,{refer:d.tU.Photo,click_type:c?d.Kw.AdBackupProduct:d.Kw.AdProduct}),children:(0,i.jsx)(s.Q,{src:t,iconHeight:40,iconWidth:40,className:o.default.adIcon})}),(0,i.jsxs)("div",{className:o.default.detail,children:[(0,i.jsx)("div",{className:o.default.title,onClick:e=>m(e,{refer:d.tU.Name}),children:n}),(0,i.jsx)(u.Z,{isStartPlay:g,className:o.default.swiperContainer,width:108,slideItems:v})]})]}),(0,i.jsx)("div",{className:o.default.adButton,onClick:e=>m(e,{refer:d.tU.Button}),style:{background:_},children:f})]})}},118504:function(e,l,n){var i=n(320165);n(101199);var t=n(469935),r=n.n(t),a=n(330224),o=n(830500),u=n(249449),s=n(227831),d=n(290397),c=n(316213);l.Z=e=>{let{className:l,imageUrl:n,isBackupImgUrl:t=!1,slideItems:v,buttonText:f,onClick:_,isStartPlay:m}=e;return(0,i.jsxs)("div",{className:r()(o.default.singleLineAdCard,l),onClick:e=>_(e,{refer:d.tU.Blank}),children:[(0,i.jsxs)("div",{className:o.default.adInfo,children:[(0,i.jsx)("div",{onClick:e=>_(e,{refer:d.tU.Photo,click_type:t?d.Kw.AdBackupProduct:d.Kw.AdProduct}),children:(0,i.jsx)(s.Q,{src:n,iconHeight:28,iconWidth:28,className:o.default.adIcon})}),(0,i.jsx)("div",{onClick:e=>_(e,{refer:d.tU.Name}),children:(0,i.jsx)(u.Z,{isStartPlay:m,className:o.default.swiperContainer,width:136,slideItems:v})})]}),(0,i.jsxs)("div",{className:o.default.btnBox,onClick:e=>_(e,{refer:d.tU.Button}),children:[(0,i.jsx)("span",{className:o.default.text,children:f}),(0,i.jsx)(c.z,{svg:(0,i.jsx)(a.Z,{}),className:o.default.icon})]})]})}},373805:function(e,l,n){var i=n(320165);n(101199);var t=n(469935),r=n.n(t),a=n(72878),o=n(153612),u=n(249449),s=n(227831),d=n(686060),c=n(290397);l.Z=e=>{var l;let{className:n,title:t,imageUrl:v,isBackupImgUrl:f=!1,slideItems:_,buttonText:m,buttonBgColor:g=a.DEFAULT_BUTTON_COLOR,tags:p=[],onClick:h,isStartPlay:w}=e;return(0,i.jsxs)("div",{className:r()(o.default.strongStyleAdCard,n),onClick:e=>h(e,{refer:c.tU.Blank}),children:[(0,i.jsxs)("div",{className:o.default.adInfo,children:[(0,i.jsx)("div",{onClick:e=>h(e,{refer:c.tU.Photo,click_type:f?c.Kw.AdBackupProduct:c.Kw.AdProduct}),children:(0,i.jsx)(s.Q,{src:v,iconHeight:72,iconWidth:72,className:o.default.adIcon})}),(0,i.jsxs)("div",{className:o.default.detail,children:[(0,i.jsx)("div",{className:o.default.title,onClick:e=>h(e,{refer:c.tU.Name}),children:t}),(null==p?void 0:p.length)>0&&(0,i.jsx)("div",{className:o.default.tagLine,children:null==p?void 0:null===(l=p.slice(0,2))||void 0===l?void 0:l.map((e,l)=>(0,i.jsx)(d.Z,{className:o.default.tag,onClick:l=>h(l,{refer:c.tU.Pull,product_tags:e}),children:e},l))}),(0,i.jsx)(u.Z,{isStartPlay:w,className:o.default.swiperContainer,width:156,slideItems:_})]})]}),(0,i.jsx)("div",{className:o.default.adButton,style:{background:g},onClick:e=>h(e,{refer:c.tU.Button}),children:m})]})}},866574:function(e,l,n){n.d(l,{VD:function(){return i},Wc:function(){return o},_u:function(){return u},k1:function(){return t},lg:function(){return r},vv:function(){return a}});let i=["不容错过的优品","值得买的好物","优选心仪好物","精选超值好货"],t=["人气热卖","优选好物"],r=["优选好物"],a=5,o=7,u=8},674918:function(e,l,n){n.d(l,{h:function(){return D}});var i=n("629686");n("490629"),n("706056");var t=n("320165"),r=n("101199"),a=n("734123"),o=n("5784"),u=n.n(o),s=n("198412"),d=n.n(s),c=n("908219"),v=n.n(c),f=n("426112"),_=n("638052"),m=n("988805"),g=n("499059"),p=n("414061"),h=n("759894"),w=n("601034"),y=n("284704"),k=n("687875");n("527553");var E=n("311921"),x=n("469935"),I=n.n(x);function b(e){let{x:l=50,y:n=50}=e,i=(0,r.useRef)(parseInt(String(1e4*Math.random()%61-30))),a={left:l-35,top:n-34,transform:`rotate(${i.current}deg)`};return(0,t.jsx)("div",{style:a,className:E.default.containerBox,children:(0,t.jsx)("img",{src:"//p-pc-weboff.byteimg.com/tos-cn-i-9r5gewecjs/feed_money_like_icon.svg",className:I()(E.default.container,E.default.heartBeat)})})}let N=e=>{var l;return(null==e?void 0:null===(l=e.delegateTarget)||void 0===l?void 0:l.tagName)==="XG-SLIDER"};var C=e=>{let{onClick:l,onLongPress:n,onDoubleClick:i,onCancelLongPress:t,longPressDelay:a=300,doubleTapDelay:o=300}=e,u=(0,r.useRef)(null),s=(0,r.useRef)(null),d=(0,r.useRef)(!1),c=(0,r.useRef)(!1),v=(0,r.useRef)(!1);return(0,r.useEffect)(()=>()=>{u.current&&(clearTimeout(u.current),u.current=null),s.current&&(clearTimeout(s.current),s.current=null)},[]),{onMouseDown:e=>{if(!(0!==e.button||N(e)))u.current&&(d.current=!0,clearTimeout(u.current),u.current=null),d.current&&i(e),c.current=!0,u.current=setTimeout(()=>{!d.current&&!c.current&&l(e),d.current=!1,clearTimeout(u.current),u.current=null},o),s.current=setTimeout(()=>{v.current=!0,n(e),clearTimeout(s.current),s.current=null},a)},onMouseUp:e=>{if(!(0!==e.button||N(e)))clearTimeout(s.current),s.current=null,c.current=!1,v.current&&(v.current=!1,t(e))},onMouseLeave:e=>{clearTimeout(u.current),clearTimeout(s.current),u.current=null,s.current=null,v.current&&t(e),c.current=!1,v.current=!1,d.current=!1}}},T=n("63601"),S=n("310383"),P=n("304217"),L=n("373398"),j=n("913285"),R=n("37285");let M=e=>{let{isActive:l,awemeInfo:n,disableShortCut:o,abtestData:s}=e||{},c=(0,T.n)(),E=(0,r.useRef)(0),x=(0,r.useRef)(0);(0,r.useRef)(()=>void 0);let[I,N]=(0,r.useState)([]);(0,r.useRef)(1);let{onMouseDown:S,onMouseLeave:j,onMouseUp:M}=C({onClick:e=>{var l,n;let i=(0,P.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===(l=c.video)||void 0===l?void 0:l.__canvas)||i){if(null==c?void 0:null===(n=c.openGeneralSearchModalSlide)||void 0===n?void 0:n.call(c,{from:"pause"})){c.emit(a.Events.USER_ACTION,{action:"click_video_area"});return}(null==c?void 0:c.paused)?(c.play(),c.emitUserAction(a.Events.USER_ACTION,"switch_play_pause",{action:"switch_play_pause",paused:!0,pluginName:"click"})):(c.pause(),c.emitUserAction(a.Events.USER_ACTION,"switch_play_pause",{action:"switch_play_pause",paused:!1,pluginName:"click"}))}},onLongPress:e=>{var l;let i=(0,P.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===(l=c.video)||void 0===l?void 0:l.__canvas)||i){if(g.Le.getConfig(g.gI.disableSpeed)&&!g.Le.getConfig(g.gI.IsMiniWin)){p.emit(p.EVENT.loginBlockKeyBoard,{speed:!0});return}!(0,f.Jt)(n)&&(g.Le.setConfig(g.gI.PlayRatioBeforeLongPress,c.playbackRate),c.emit(R.B.ChangePlayRate,{rate:2,notStorage:!0}),_.logInstance.sendLog("holdVideoSpeed",{group_id:null==n?void 0:n.awemeId,enter_from:(0,h.vM)(),enter_from_merge:(0,w.yW)()}))}},onCancelLongPress:()=>{if(!(0,f.Jt)(n)){let e=g.Le.getConfig(g.gI.PlayRatioBeforeLongPress);c.emit(R.B.ChangePlayRate,{rate:e||1}),g.Le.setConfig(g.gI.PlayRatioBeforeLongPress,0)}},onDoubleClick:e=>{var l;let n=(0,P.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===(l=c.video)||void 0===l?void 0:l.__canvas)||n)&&c.emit("onStar",{event:e,clickMethod:"mouse"})}});return(0,r.useEffect)(()=>{if(c&&l){var e,t,r;let l=(0,P.H)(c),f=v()(e=>{let l=0,n=0;if(e&&"keydown"===e.type){var i,t;l=(null==c?void 0:null===(i=c.root)||void 0===i?void 0:i.clientWidth)/2,n=(null==c?void 0:null===(t=c.root)||void 0===t?void 0:t.clientHeight)/2}else l=null==e?void 0:e.offsetX,n=null==e?void 0:e.offsetY;let r=Date.now();N(e=>(E.current++,[...e,{x:l,y:n,index:E.current,timeFlag:r}])),setTimeout(()=>{N(e=>e.filter(e=>e.timeFlag!==r))},1e3)},300),_=(0,y.e)((e,l)=>{var n;if("mouse"===l&&(null==c?void 0:null===(n=c.openGeneralSearchModalSlide)||void 0===n?void 0:n.call(c,{from:"pause"}))){c.emit(a.Events.USER_ACTION,{action:"click_video_area"});return}(null==c?void 0:c.paused)?(c.play(),c.emitUserAction(a.Events.USER_ACTION,"switch_play_pause",{action:"switch_play_pause",paused:!0,pluginName:"click"})):(c.pause(),c.emitUserAction(a.Events.USER_ACTION,"switch_play_pause",{action:"switch_play_pause",paused:!1,pluginName:"click"}))},(e,l)=>{c.emit("onStar",{event:e,clickMethod:l})},300),p=e=>{(e.target===c.root||e.target===c.video||e.target===c.innerContainer||e.target===c.video.__canvas||l)&&_(e,"mouse")},h={space:{keyCode:k.bf.Space.keyCode,action:e=>{_(e,"space")},disable:o,noBodyTarget:!1}},w=e=>{var l,i;if(null==s?void 0:null===(l=s.changeCandle)||void 0===l?void 0:l.includes(null==n?void 0:n.awemeId))return;let{event:t,isKeyWorkCancalLike:r,clickMethod:a}=e,o=null===(i=g.Le.getConfig(g.gI.DiggStatusCache))||void 0===i?void 0:i[null==n?void 0:n.awemeId];if(!(Date.now()-((null==o?void 0:o.lastDiggTime)||0)>1e3&&(null==o?void 0:o.diggStatus)===m.gZ.Digged&&"hot_key"===a&&r&&Date.now()-x.current>500))x.current=Date.now(),f(t)};c.config.closeVideoClick=!0,l?l.addEventListener("click",p,!1):c.root.addEventListener("click",p,!1);let I={space:null==c?void 0:null===(r=c.plugins)||void 0===r?void 0:null===(t=r.keyboard)||void 0===t?void 0:null===(e=t.keyCodeMap)||void 0===e?void 0:e.space};return u()(c,"plugins.keyboard.keyCodeMap",(0,i._)({},d()(c,"plugins.keyboard.keyCodeMap")||{},h)),c.on("onStar",w),()=>{c.config.closeVideoClick=!1,l?l.removeEventListener("click",p,!1):c.root.removeEventListener("click",p,!1),c.plugins.keyboard&&((0,L.v)({currentCodeMap:c.plugins.keyboard.keyCodeMap,additionalCodeMap:h}),u()(c,"plugins.keyboard.keyCodeMap",(0,i._)({},d()(c,"plugins.keyboard.keyCodeMap")||{},I))),c.off("onStar",w)}}},[c,l,n,null==s?void 0:s.changeCandle,!1]),(0,r.useEffect)(()=>{if(c)return c.config.closeVideoClick=!0,()=>{c.config.closeVideoClick=!1}},[c]),(0,t.jsx)(t.Fragment,{children:I.map(e=>(0,t.jsx)(b,{x:e.x,y:e.y},e.index))})},D=e=>{let l=(0,S.N)();return(0,t.jsx)(j.k,{componentName:"DoubleDiggPlugin",Slardar:l,children:(0,t.jsx)(M,(0,i._)({},e))})}},721193:function(e,l,n){n.d(l,{V:function(){return c}});var i=n(101199),t=n(734123),r=n(264034),a=n.n(r),o=n(855357),u=n(414061),s=n(63601);let d=!1,c=e=>{let{awemeInfo:l,isFirst:n,isActive:r,timeout:c=2e3}=e,v=(0,s.n)();return(0,i.useEffect)(()=>{if(!r)return;let e=a()(e=>{let{isDown:i=!1}=e||{};d=!0,u.emit(u.EVENT.firstFrameReady,{firstFrameReadyPlayer:v,vid:null==l?void 0:l.awemeId,playerId:null==v?void 0:v.playerId,isFirst:n,isDown:!!i,isActive:r})});if((null==l?void 0:l.awemeType)!==o.e.Normal){setTimeout(()=>{e({isDown:!0})},0);return}if((null==l?void 0:l.awemeType)===o.e.Normal&&v){if(!1===n&&!d||v.isPlaying||v.currentTime>0){setTimeout(()=>{e({isDown:!0})},0);return}v.on(t.Events.AUTOPLAY_STARTED,e),v.on(t.Events.AUTOPLAY_PREVENTED,e);let l=setTimeout(()=>{e({isDown:!0})},c);return()=>{v.off(t.Events.AUTOPLAY_STARTED,e),v.off(t.Events.AUTOPLAY_PREVENTED,e),clearTimeout(l)}}},[v,l,n,r,c]),null}},911750:function(e,l,n){n.d(l,{k:function(){return g}});var i=n(629686),t=n(320165),r=n(101199),a=n(771410),o=n(759894),u=n(469935),s=n.n(u),d=n(135268),c=n(62575),v=n(310383),f=n(913285),_=n(627699);let m=e=>{var l,n,i,u,v,f,m;let{awemeInfo:g,onClick:p,isActive:h,className:w,onMouseEnter:y,onMouseLeave:k}=e,E=null==g?void 0:g.awemeId,x=(0,r.useMemo)(()=>{var e,l,n,i,t;return{author_id:null==g?void 0:null===(e=g.authorInfo)||void 0===e?void 0:e.uid,enter_from_real:(0,o.mo)(),enter_from:(0,o.mo)(),aweme_id:null==g?void 0:g.awemeId,group_id:null==g?void 0:g.groupId,anchor_id:null==g?void 0:null===(l=g.anchorInfo)||void 0===l?void 0:l.id,anchor_id_real:null==g?void 0:null===(n=g.anchorInfo)||void 0===n?void 0:n.id,anchor_type:"game_promote",anchor_type_real:"game_promote",enter_method:"click_label",enter_method_real:"click_label",anchor_title_tag:null==g?void 0:null===(i=g.anchorInfo)||void 0===i?void 0:i.titleTag,anchor_title:null==g?void 0:null===(t=g.anchorInfo)||void 0===t?void 0:t.title,anchor_name:"game"}},[g]),I=(0,r.useCallback)(()=>{E&&(0,d.Ck)(c.O.GameAnchor,{id:E,params:{id:E,awemeInfo:g}}).catch(e=>{}),null==p||p(),a.Z.report("anchor_entrance_click",x)},[E,g,p,x]);return(0,r.useEffect)(()=>{h&&a.Z.report("anchor_entrance_show",x)},[h,x]),(0,t.jsx)("div",{className:s()(_.default.container,_.default.gameAnchor,w),onClick:I,onMouseEnter:()=>{null==y||y()},onMouseLeave:()=>{null==k||k()},children:(0,t.jsxs)("div",{className:_.default.subContainer,children:[(0,t.jsx)("img",{src:null==g?void 0:null===(l=g.anchorInfo)||void 0===l?void 0:l.icon,className:_.default.icon}),(0,t.jsx)("div",{className:_.default.desc,children:(0,t.jsxs)("div",{className:_.default.firstLine,children:[(0,t.jsx)("div",{className:_.default.titleTag,children:null==g?void 0:null===(n=g.anchorInfo)||void 0===n?void 0:n.titleTag}),(0,t.jsx)("div",{className:_.default.delimiter}),(0,t.jsx)("div",{className:_.default.titleWrap,children:null==g?void 0:null===(i=g.anchorInfo)||void 0===i?void 0:i.title}),(null==g?void 0:null===(v=g.anchorInfo)||void 0===v?void 0:null===(u=v.extra)||void 0===u?void 0:u.category_title)?(0,t.jsx)("div",{className:_.default.dot,children:"\xb7"}):null,(0,t.jsx)("div",{className:_.default.categoryTitle,children:null==g?void 0:null===(m=g.anchorInfo)||void 0===m?void 0:null===(f=m.extra)||void 0===f?void 0:f.category_title})]})})]})})},g=e=>{let l=(0,v.N)();return(0,t.jsx)(f.k,{componentName:"GameAnchor",Slardar:l,children:(0,t.jsx)(m,(0,i._)({},e))})}},392772:function(e,l,n){n.d(l,{r:function(){return r}});var i=n(101199),t=n(63601);let r=e=>{let l=(0,t.n)();return(0,i.useEffect)(()=>{if(l){let e=()=>{l.replay(),l.replayed=!0};return l.on("ended",e),()=>{l.off("ended",e)}}},[l]),null}},912113:function(e,l,n){n.d(l,{P:function(){return g}});var i=n("629686");n("490629");var t=n("320165"),r=n("101199"),a=n("280647"),o=n("469935"),u=n.n(o),s=n("414061"),d=n("293634"),c=n("402748");let v=(0,r.forwardRef)((e,l)=>(0,t.jsxs)("svg",(0,c._)((0,i._)({width:10,height:6,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:[(0,t.jsx)("g",{clipPath:"url(#down_svg__clip0_8458_8595)",children:(0,t.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,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"down_svg__clip0_8458_8595",children:(0,t.jsx)("path",{fill:"#fff",transform:"rotate(-180 5 3)",d:"M0 0h10v6H0z"})})})]})));var f=n("913285"),_=n("310383");let m=e=>{let{isActive:l,controlHeight:n,isMini:i}=e,[o,c]=(0,r.useState)(null),f=(0,r.useRef)(()=>{});return((0,r.useEffect)(()=>{let e=s.listen(s.EVENT.MountPausePopover,e=>{c(null==e?void 0:e.children),f.current=null==e?void 0:e.onClose});return()=>{var l;e(),null===(l=f.current)||void 0===l||l.call(f)}},[]),(0,a.Z)(()=>{var e;null===(e=f.current)||void 0===e||e.call(f)},[l]),l&&o)?(0,t.jsxs)("div",{className:u()(d.default.container,{[d.default.hidden]:i}),style:{bottom:n},children:[(0,t.jsx)("div",{className:d.default.content,children:o}),(0,t.jsx)(v,{className:d.default.down})]}):null},g=e=>{let l=(0,_.N)();return(0,t.jsx)(f.k,{componentName:"PausePopoverPlugin",Slardar:l,children:(0,t.jsx)(m,(0,i._)({},e))})}},286720:function(e,l,n){n.d(l,{l:function(){return p}});var i=n(101199),t=n(502615),r=n(198412),a=n.n(r),o=n(5784),u=n.n(o),s=n(855357),d=n(1028),c=n(715858),v=n(499059),f=n(414061),_=n(176643),m=n(649310),g=n(63601);let p=e=>{let{awemeInfo:l,from:n,isActive:r,hackFullScreenDom:o=!1,videoAreaClickActive:p=!1,logParams:h,enableInteractionPlugin:w=!0,searchListType:y,isUpperFeed:k=!1,syncInMulti:E=!1,livePlayer:x,liveDocId:I}=e,b=(0,g.n)(),N=x||b,{openGeneralSearchModalSlide:C}=(0,i.useContext)(_.j)||{},{docId:T}=(0,i.useContext)(m.C)||{},S=x&&I?I:T,P=v.Le.getConfig(v.gI.SearchModalCurrentActiveProgress);return(0,i.useEffect)(()=>{if(N&&r&&l){v.Le.getConfig(v.gI.SearchModalEnterFullScreenAfterCreate)&&"modal_player"===n&&(v.Le.setConfig(v.gI.SearchModalEnterFullScreenAfterCreate,!1),N.getFullscreen());let{awemeId:e}=l,i=()=>{P[0]=e,P[1]=N.currentTime};return N.on("timeupdate",i),()=>{N.off("timeupdate",i),"search_player"===n&&P[0]===(null==l?void 0:l.awemeId)&&(P[0]="",P[1]=0)}}},[N,l,r]),(0,i.useEffect)(()=>{if(N&&l&&(null==l?void 0:l.awemeType)!==s.e.Note&&(null==l?void 0:l.awemeId)===P[0]){let e=P[1];N.once(t.FP.CANPLAY,()=>{N.seek(e)})}},[N]),(0,i.useEffect)(()=>{if(N&&"search_player"===n&&r)return f.listen(f.EVENT.generalSearchVideoPlay,()=>{(null==l?void 0:l.awemeType)!==s.e.Note&&((null==l?void 0:l.awemeId)===P[0]&&N.seek(P[1]),v.Le.setConfig(v.gI.IsSearchOuterAsync,!0)),N.play()})},[N,r,l]),(0,i.useEffect)(()=>{let e=a()(N,"plugins.fullscreen.root"),l=()=>{var e;null==N||null===(e=N.openGeneralSearchModalSlide)||void 0===e||e.call(N,{from:"fullscreen"})};return N&&r&&"search_player"===n&&o&&(E||y!==d.qs)&&!k&&(u()(N,"plugins.fullscreen.config.disable",!0),null==e||e.addEventListener("click",l)),()=>{u()(N,"plugins.fullscreen.config.disable",!1),null==e||e.removeEventListener("click",l)}},[N,r,o,y,l,k,E]),(0,i.useEffect)(()=>{if(N&&r&&"search_player"===n&&!w&&p){let e=e=>{if(e.target===N.root||e.target===N.video||e.target===N.innerContainer||e.target===N.video.__canvas){var l;null==N||null===(l=N.openGeneralSearchModalSlide)||void 0===l||l.call(N,{from:"pause"}),N.emit(t.FP.USER_ACTION,{action:"click_video_area"});return}};N.config.closeVideoClick=!0;let l=N.root;return l.addEventListener("click",e,!1),()=>{l.removeEventListener("click",e,!1),u()(N,"config.closeVideoClick",!1)}}},[N,r,o,p]),(0,i.useEffect)(()=>{if(N&&"search_player"===n&&r&&!k)return N.openGeneralSearchModalSlide=e=>{let{from:n}=e||{};if("fullscreen"===n&&v.Le.setConfig(v.gI.SearchModalEnterFullScreenAfterCreate,!0),"pause"===n&&!p)return!1;let i=C({docId:S,awemeId:null==l?void 0:l.awemeId,from:n});return i&&(0,c.h)("feed_enter",h),i},()=>{N.openGeneralSearchModalSlide=()=>!1}},[N,l,r,S,C,p,x,k]),(0,i.useEffect)(()=>{if(N&&"search_player"===n){let e=!1,l=f.listen(f.EVENT.pageFullScreen,l=>{let{fullScreen:n}=l;e=n});return()=>{l(),e&&f.emit(f.EVENT.pageFullScreen,{fullScreen:!1,playerId:null==N?void 0:N.playerId,clickMethod:"player_destroy"})}}},[N]),null}},484571:function(e,l,n){n.d(l,{n:function(){return x}});var i=n("629686"),t=n("402748"),r=n("320165"),a=n("101199"),o=n("469935"),u=n.n(o),s=n("734123"),d=n("966473"),c=n("638052"),v=n("375209"),f=n("7305"),_=n("618209");n("490629");var m=n("37285"),g=n("63601"),p=n("124834"),h={SingleLine:0,0:"SingleLine",TowLine:1,1:"TowLine"},w=n("310383"),y=n("913285"),k=n("176449");let E=e=>{var l,n,o;let{awemeInfo:w,onClick:y,isActive:E,className:x,onMouseEnter:I,onMouseLeave:b}=e,{displayState:N}=function(e){let{awemeInfo:l,isActive:n}=e,i=(0,g.n)(),t=(0,a.useRef)(!0),r=(0,a.useRef)(!1),[o,u]=(0,a.useState)(0),d=(0,a.useCallback)(()=>{if(!r.current){var e,l;null==i||null===(e=i.on)||void 0===e||e.call(i,m.B.TimeUpdate,f),null==i||null===(l=i.on)||void 0===l||l.call(i,s.Events.SEEKING,_)}r.current=!0},[i]),c=(0,a.useCallback)(()=>{if(r.current){var e,l;null==i||null===(e=i.off)||void 0===e||e.call(i,m.B.TimeUpdate,f),null==i||null===(l=i.off)||void 0===l||l.call(i,s.Events.SEEKING,_)}r.current=!1},[i]),v=(0,a.useCallback)(()=>{t.current=!0},[]),f=(0,a.useCallback)(e=>{let{currentTime:l}=e||{};l>=16&&(t.current=!1,u(1),c())},[i,l,c]),_=(0,a.useCallback)(e=>{let{currentTime:l}=e;l>=16&&(u(1),c()),t.current=!1},[c]),h=(0,a.useCallback)(()=>{u(1),v(),d()},[d,v]);return(0,p.u)(i,m.B.Ended,h),(0,a.useEffect)(()=>{v()},[n,v]),(0,a.useEffect)(()=>{u(0),v()},[l.awemeId,v]),(0,a.useEffect)(()=>{if(!!n){if(i&&t.current)return d(),()=>{c()}}},[i,l,n,d,c]),(0,a.useEffect)(()=>{(null==i?void 0:i.currentTime)&&f({currentTime:i.currentTime})},[i]),{displayState:o}}({isActive:E,awemeInfo:w}),C=(null==w?void 0:null===(n=w.anchorInfo)||void 0===n?void 0:null===(l=n.extra)||void 0===l?void 0:l[0])||{},T=(0,g.n)(),S=(0,d.x)(()=>{c.logInstance.sendLog("productEntranceShow",(0,t._)((0,i._)({},(0,v.R)(w)),{ecom_entrance_form:"video_cart_tag",if_qianchuan_ad:0}))}),P=(null==C?void 0:C.tags)||[],L=N===h.TowLine&&P.length>0;return(0,r.jsx)("div",{className:u()("xgplayer-shop-anchor",_.default.container,_.default.shopAnchor,{[_.default.more]:L},x),onClick:()=>{null==y||y(),null==T||T.emit(s.Events.USER_ACTION,{action:"shop_anchor_click"}),c.logInstance.sendLog("productEntranceClick",(0,t._)((0,i._)({},(0,v.R)(w)),{ecom_entrance_form:"video_cart_tag",if_qianchuan_ad:0}))},onMouseEnter:()=>{null==I||I()},onMouseLeave:()=>{null==b||b()},ref:S,children:(0,r.jsxs)("div",{className:_.default.subContainer,children:[(0,r.jsx)(k.Z,{src:f.Z,className:_.default.icon,width:20,height:20,viewBox:"0 0 20 20"}),(0,r.jsxs)("div",{className:_.default.desc,children:[(0,r.jsxs)("div",{className:_.default.firstLine,children:[null==w?void 0:null===(o=w.anchorInfo)||void 0===o?void 0:o.titleTag,(null==C?void 0:C.elastic_title)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:_.default.delimiter,children:" | "})," ",null==C?void 0:C.elastic_title]})]}),L&&(0,r.jsx)("div",{className:_.default.secondLine,children:P.map((e,l)=>(0,r.jsxs)("span",{className:_.default.towLineItem,children:[e," ",l{let l=(0,w.N)();return(0,r.jsx)(y.k,{componentName:"ShopAnchor",Slardar:l,children:(0,r.jsx)(E,(0,i._)({},e))})}},678817:function(e,l,n){n.d(l,{b:function(){return m}});var i=n(629686);n(104882),n(527553);var t=n(320165),r=n(101199),a=n(734123),o=n(499059),u=n(63601),s=n(310383),d=n(913285),c=n(455571);function v(e){let{click_method:l,player:n}=e;null==n||n.emit(a.Events.USER_ACTION,{action:"change_volume",logData:{click_method:l,is_mute:n.muted?"1":"0"},props:{volume:{to:n.volume}}})}let f=(e,l)=>{var n,i,t,r,a,o;if(!e)return;if(null===(t=e.plugins)||void 0===t||null===(i=t.volume)||void 0===i||null===(n=i.focus)||void 0===n||n.call(i),null===(o=e.plugins)||void 0===o||null===(a=o.volume)||void 0===a||null===(r=a.unFocus)||void 0===r||r.call(a,1e3,!0,null),e.muted){e.muted=!1,e.volume=Math.max(l/100,0),v({click_method:"wheel",player:e});return}let u=e.volume+l/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})},_=e=>{let{isActive:l,currentPlayer:n}=e,i=(0,u.n)(),t=n||i;(0,r.useEffect)(()=>{let e=o.Le.getConfig(o.gI.AbtestData);if((null==t?void 0:t.getPlugin)&&l&&(null==e?void 0:e.useCache)!==1){let e=t.getPlugin("volume");if(!e)return;let l=e.root,n=e=>{let l=(0,c.G1)();e.stopPropagation(),e.preventDefault();let n=(l?1:-1)*parseInt(String(e.deltaY/20),10);0!==n&&f(t,n)},i=()=>{o.Le.setConfig(o.gI.DisableNextPre,!0)},r=()=>{o.Le.setConfig(o.gI.DisableNextPre,!1)};return l.addEventListener("wheel",n),l.addEventListener("mouseover",i),l.addEventListener("mouseout",r),()=>{l.removeEventListener("wheel",n),l.removeEventListener("mouseover",i),l.removeEventListener("mouseout",r)}}},[t,l]);let a=(0,r.useRef)(!1),s=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=o.Le.getConfig(o.gI.AbtestData);if(!(t&&t.on&&l&&(null==e?void 0:e.useCache)===1))return;let n=e=>{e.preventDefault(),e.stopPropagation();let l=((0,c.G1)()?1:-1)*parseInt(String(e.deltaY/20),10);0!==l&&f(t,l)};if(null==e?void 0:e.enableMemoryLeakFix){let e=e=>{if("volume"===e.pluginName){var l;o.Le.setConfig(o.gI.DisableNextPre,!0);let e=null==t?void 0:null===(l=t.getPlugin("volume"))||void 0===l?void 0:l.root;e&&(e.addEventListener("wheel",n),a.current=!0,s.current=e)}},l=e=>{if("volume"===e.pluginName){var l;o.Le.setConfig(o.gI.DisableNextPre,!1);let e=s.current||(null==t?void 0:null===(l=t.getPlugin("volume"))||void 0===l?void 0:l.root);e&&e.removeEventListener("wheel",n),a.current=!1,s.current=null}};return t.on("icon_mouseenter",e),t.on("icon_mouseleave",l),()=>{if(t.off("icon_mouseenter",e),t.off("icon_mouseleave",l),a.current){var i;let e=s.current||(null==t?void 0:null===(i=t.getPlugin("volume"))||void 0===i?void 0:i.root);null==e||e.removeEventListener("wheel",n),a.current=!1,s.current=null}}}let i=e=>{if("volume"===e.pluginName){var l;o.Le.setConfig(o.gI.DisableNextPre,!0),(null==t?void 0:null===(l=t.getPlugin("volume"))||void 0===l?void 0:l.root)&&(t.getPlugin("volume").root.addEventListener("wheel",n),a.current=!0)}},r=e=>{if("volume"===e.pluginName){var l;o.Le.setConfig(o.gI.DisableNextPre,!1),(null==t?void 0:null===(l=t.getPlugin("volume"))||void 0===l?void 0:l.root)&&(t.getPlugin("volume").root.removeEventListener("wheel",n),a.current=!1)}};return t.on("icon_mouseenter",i),t.on("icon_mouseleave",r),()=>{if(t.off("icon_mouseenter",i),t.off("icon_mouseleave",r),a.current){var e,l;null==t||null===(l=t.getPlugin("volume"))||void 0===l||null===(e=l.root)||void 0===e||e.removeEventListener("wheel",n),a.current=!1}}},[t,l]),(0,r.useEffect)(()=>()=>{o.Le.setConfig(o.gI.DisableNextPre,!1)},[]),null},m=e=>{let l=(0,s.N)();return(0,t.jsx)(d.k,{componentName:"VolumePlugin",Slardar:l,children:(0,t.jsx)(_,(0,i._)({},e))})}},316223:function(e,l,n){n.d(l,{zm:function(){return U}});var i=n("480333"),t=n("629686");n("490629");var r=n("320165"),a=n("101199"),o=n("358986"),u=n("469935"),s=n.n(u),d=n("734123"),c=n("38578"),v=n("649310"),f=n("323320"),_=n("150971"),m=n("426038"),g=n("414061"),p=n("335948"),h=n("709705"),w=n("499059"),y=n("48795"),k=n("147597"),E=n("505302"),x=n("624508"),I=new x.h({openPureToastShow:{eventName:"small_window_toast_show",params:{}}}),b=n("316213");let N=a.forwardRef(e=>{let{onDone:l,isShowGuideTip:n,setIsShowGuideTip:i,setIsGuideTipActive:t}=e;return(0,a.useEffect)(()=>{n&&I.sendLog("openPureToastShow",{})},[n]),(0,r.jsxs)("div",{className:s()(E.default.tips,{[E.default.show]:n}),onMouseEnter:()=>{t(!0)},onMouseLeave:()=>{t(!1)},children:[(0,r.jsx)(b.z,{svg:(0,r.jsx)(k.Z,{}),className:s()(E.default.close,"noTransform"),onClick:()=>{t(!1),i(!1)}}),(0,r.jsx)("div",{className:E.default.title,children:(0,r.jsx)("span",{children:"小窗模式播放"})}),(0,r.jsx)("p",{className:E.default.desc,children:"右上角「小窗功能」移到此处,推荐/主页都能使用"}),(0,r.jsx)(y.Button,{theme:"solid",className:E.default.btn,onClick:()=>{null==l||l(),t(!1),i(!1)},children:"立即开启"})]})});var C=n("913285"),T=n("63601"),S=n("310383"),P=n("44599"),L=n("697233"),j="PictureInPictureSettingPlugin";let R={[L.kd.CONTROLS_RIGHT]:{PictureInPictureSettingPlugin:5.5}};n("557586");var M=n("540129");let D={vvCount:0,currentVideoId:"",resetVVInfo:()=>{D.vvCount=0,D.currentVideoId=""}};function A(){return(0,r.jsxs)("div",{className:s()("xgTips"),children:[(0,r.jsx)("span",{children:"小窗模式"}),!!M.SHORTCUT_KEY.pip.badgeText&&(0,r.jsx)("span",{className:"shortcutKey",children:M.SHORTCUT_KEY.pip.badgeText})]})}function F(e){let{isShowGuideTip:l,resizeMiniWindowGuideShow:n,setIsShowGuideTip:i,player:t,noTransform:o,abtestData:u}=e,[c,v]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=g.listen(g.EVENT.closeOtherTip,e=>{"PictureInPictureTip"!==e&&(null==i||i(!1))});return()=>e()},[]);let m=(0,a.useCallback)(e=>{g.emit(g.EVENT.changeMinWindows,{event:"check",isMiniWin:!1,clickMethod:e}),null==t||t.emit(d.Events.USER_ACTION,{action:"click_small_window"})},[t]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(N,{isShowGuideTip:l||c,setIsShowGuideTip:i,setIsGuideTipActive:v,onDone:()=>m("toast")}),(0,r.jsx)("div",{className:"xgplayer-icon xgplayer-icon-picture-in-picture",onClick:()=>m("button"),children:(0,r.jsx)(b.z,{svg:(0,r.jsx)(f.Z,{className:s()(o&&"noTransform")}),style:{fontSize:"32px"}})}),n&&!!M.SHORTCUT_KEY.pip.badgeText&&(0,r.jsxs)("div",{className:"picture-in-picture-resize-guide-tips",children:["点击或快捷键",(0,r.jsx)("span",{className:"shortcutKey",children:M.SHORTCUT_KEY.pip.badgeText})," ,启用小窗模式播放",(0,r.jsx)(b.z,{className:"picture-in-picture-resize-guide-tips-icon",svg:(0,r.jsx)(_.Z,{})})]}),!l&&!c&&!n&&(0,r.jsx)(A,{})]})}class V extends d.Plugin{static get pluginName(){return j}static get defaultConfig(){return{position:o.POSITIONS.CONTROLS_RIGHT,index:R[o.POSITIONS.CONTROLS_RIGHT][j],className:"xgplayer-picture-in-picture-setting"}}afterCreate(){if(!this.config.disable)this.renderRoot()}destroy(){(0,P.v)(this)}renderRoot(){let e=(0,r.jsx)(F,{player:this.player,isShowGuideTip:this.config.isShowGuideTip,setIsShowGuideTip:this.config.setShowGuideTip,resizeMiniWindowGuideShow:this.config.resizeMiniWindowGuideShow,noTransform:this.config.noTransform,abtestData:this.config.abtestData});(0,P.s)(this,e)}render(){return` `}constructor(...e){super(...e),(0,i._)(this,"updatePictureInPicture",e=>{var l,n,i;this.config.isShowGuideTip!==(null==e?void 0:e.isShowGuideTip)&&(this.config.isShowGuideTip=null!==(l=null==e?void 0:e.isShowGuideTip)&&void 0!==l&&l,this.renderRoot()),this.config.resizeMiniWindowGuideShow!==(null==e?void 0:e.resizeMiniWindowGuideShow)&&(this.config.resizeMiniWindowGuideShow=null!==(n=null==e?void 0:e.resizeMiniWindowGuideShow)&&void 0!==n&&n,this.renderRoot()),this.config.noTransform!==(null==e?void 0:e.noTransform)&&(this.config.noTransform=null!==(i=null==e?void 0:e.noTransform)&&void 0!==i&&i,this.renderRoot())})}}let O=e=>{var l;let{isActive:n,awemeInfo:i,isInnerFeed:t,resizeMiniWindowGuideShow:r,enableGuide:o=!0,noTransform:u=!0,abtestData:s}=e,[d,f]=(0,a.useState)(!1),_=(0,T.n)(),y=(0,a.useRef)(null),k=(0,c.k)(),E=!!(0,p.J)(),{isClientMiniWin:x}=null!==(l=(0,a.useContext)(v.C))&&void 0!==l?l:{};return(0,a.useEffect)(()=>{let e=k.listen(()=>{D.resetVVInfo()});return()=>{e()}},[]),(0,a.useEffect)(()=>_?2===_.config.reuse&&_.getPlugin(V.pluginName)?()=>{}:(_.registerPlugin(V,{isShowGuideTip:d,setShowGuideTip:f,resizeMiniWindowGuideShow:r,noTransform:u,abtestData:s}),()=>{_.getPlugin(V.pluginName)&&2!==_.config.reuse&&_.unRegisterPlugin(V.pluginName)}):void 0,[_]),(0,a.useEffect)(()=>{var e,l,i;let t=null==_?void 0:null===(e=_.getPlugin)||void 0===e?void 0:e.call(_,V.pluginName);_&&n&&t&&(x?null==t||null===(l=t.hide)||void 0===l||l.call(t):null==t||null===(i=t.show)||void 0===i||i.call(t))},[_,n,x]),(0,a.useEffect)(()=>{if(!_||!n)return;let e=_.getPlugin(V.pluginName);null==e||e.updatePictureInPicture({isShowGuideTip:d,resizeMiniWindowGuideShow:r,noTransform:u})},[d,r,u]),(0,a.useEffect)(()=>{let e=g.listen(g.EVENT.changeMinWindows,e=>{let{event:l}=e,n=(0,h.$o)(m.LocalStorageKeys.PictureInPictureGuide);"open"===l&&!n&&(0,h.qQ)(m.LocalStorageKeys.PictureInPictureGuide,!0)});return()=>null==e?void 0:e()},[]),(0,a.useEffect)(()=>{let e=(0,h.$o)(m.LocalStorageKeys.PictureInPictureGuide);if(!o||e||E)return;let l=()=>{var e;if((null===(e=w.Le.getConfig(w.gI.IsInLookMiniModal))||void 0===e?void 0:e.isInMiniModal)&&!t)return;let l=window.innerWidth<970||window.innerHeight<600;D.vvCount>5&&l&&n&&((0,h.qQ)(m.LocalStorageKeys.PictureInPictureGuide,!0),D.resetVVInfo(),g.emit(g.EVENT.closeOtherTip,"PictureInPictureTip"),f(!0),y.current=setTimeout(()=>{f(!1)},5e3))};return n&&(null==i?void 0:i.awemeId)!==D.currentVideoId&&(D.vvCount++,D.currentVideoId=null==i?void 0:i.awemeId,l()),window.addEventListener("resize",l),()=>{f(!1),clearTimeout(y.current),window.removeEventListener("resize",l)}},[n,null==i?void 0:i.awemeId,o,t]),null},U=e=>{let l=(0,S.N)();return(0,r.jsx)(C.k,{componentName:"PictureInPicturePlugin",Slardar:l,children:(0,r.jsx)(O,(0,t._)({},e))})}},893392:function(e,l,n){n.d(l,{rl:function(){return O},Vw:function(){return B}});var i=n("480333"),t=n("629686");n("490629"),n("706056");var r=n("320165"),a=n("101199"),o=n("734123"),u=n("358986"),s=n("469935"),d=n.n(s),c=n("280647"),v=n("242875"),f=n("72430"),_=n("426038"),m=n("426112"),g=n("762167"),p=n("206698"),h=n("708003"),w=n("414061"),y=n("709705"),k=n("618759"),E=n("749113"),x=n("759894"),I=n("947383"),b=n("880327"),N=n("499059"),C=n("649310"),T=n("532338"),S=n("157546"),P=n("624508"),L=new P.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=n("913285"),R=n("63601"),M=n("310383"),D=n("332009"),A=n("44599");n("976261");var F=n("36897"),V=n("540129");function O(e){let{player:l,isCtxCssFullScreen:n}=e,{isMobile:i,isiPad:t}=(0,v.X)(),[u,s]=(0,a.useState)(D.s.getPlayerScene(null==l?void 0:l.playerId)===f.lT.Modal?D.s.getPlayerIsPageFullscreen(null==l?void 0:l.playerId):D.s.getIsPageFullscreen()||n);return l&&(l.isPageFullScreen=u),(0,a.useEffect)(()=>{if(!l)return;let e=w.listen(w.EVENT.pageFullScreen,e=>{let{playerId:n,fullScreen:i}=e||{};D.s.getPlayerScene(null==l?void 0:l.playerId)===f.lT.Modal?n===(null==l?void 0:l.playerId)&&(s(i),D.s.setPageFullscreen({playerId:l.playerId,isPageFullscreen:i})):(s(i),D.s.setPageFullscreen({playerId:l.playerId,isPageFullscreen:i}))});return()=>{e()}},[l]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{onMouseEnter:()=>{(0,y.qQ)(_.LocalStorageKeys.ShowPageFullScreenGuide,!0)},onClick:()=>{var e;if(null==l?void 0:null===(e=l.openGeneralSearchModalSlide)||void 0===e?void 0:e.call(l,{from:"pageFullscreen"}))return;let n=D.s.getPlayerIsPageFullscreen(null==l?void 0:l.playerId);s(!n),D.s.setPageFullscreen({playerId:l.playerId,isPageFullscreen:!n}),w.emit(w.EVENT.pageFullScreen,{clickMethod:"icon",fullScreen:!n,playerId:l.playerId}),l.emit(o.Events.USER_ACTION,{action:"page_fullscreen_change"})},className:"xgplayer-icon",children:u?(0,r.jsx)(T.Z,{width:32,height:32,color:"#fff"}):(0,r.jsx)(S.Z,{width:32,height:32})}),!i&&!t&&(0,r.jsxs)("div",{className:d()("xgTips"),children:[!!(!(0,k.DT)()&&u)&&(0,r.jsx)("span",{children:E.a.t("webpage_full_screen_exit",{},"退出网页全屏")}),!!(!(0,k.DT)()&&!u)&&(0,r.jsx)("span",{children:E.a.t("webpage_full_screen",{},"网页全屏")}),!!((0,k.DT)()&&u)&&(0,r.jsx)("span",{children:"退出窗口全屏"}),!!((0,k.DT)()&&!u)&&(0,r.jsx)("span",{children:"窗口全屏"}),!!V.SHORTCUT_KEY.pageFullScreen.badgeText&&(0,r.jsx)("span",{className:"shortcutKey",children:V.SHORTCUT_KEY.pageFullScreen.badgeText})]})]})}class U extends o.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,A.v)(this)}renderRoot(){let e=(0,r.jsx)(O,{player:this.config.player,isCtxCssFullScreen:this.config.isCtxCssFullScreen,abtestData:this.config.abtestData});(0,A.s)(this,e)}render(){return` `}constructor(...e){super(...e),(0,i._)(this,"onMouseenter",()=>{this.emit("icon_mouseenter",{pluginName:this.pluginName})}),(0,i._)(this,"onMouseLeave",()=>{this.emit("icon_mouseleave",{pluginName:this.pluginName})})}}let G=e=>{let{awemeInfo:l,logParams:n,isActive:i,defaultIsPageFullScreen:t,modalEnterFrom:r,abtestData:u}=e,s=(0,a.useRef)(),{isCssFullScreen:d}=(0,a.useContext)(C.C)||{},v=(0,R.n)(),{awemeFeed:_}=(0,F.j)();return(0,a.useEffect)(()=>{v&&i&&(null!=t?t:d)&&D.s.setPageFullscreen({playerId:v.playerId,isPageFullscreen:null!=t?t:d})},[v,i]),(0,a.useEffect)(()=>{if(v&&i)return 2===v.config.reuse&&v.getPlugin("PageFullScreenPlugin")?()=>{}:(v.registerPlugin(U,{player:v,isCtxCssFullScreen:d,abtestData:u}),()=>{v.getPlugin("PageFullScreenPlugin")&&2!==v.config.reuse&&(null==v||v.unRegisterPlugin("PageFullScreenPlugin"))})},[v,i]),(0,a.useEffect)(()=>{if(v&&i){let e=v.getPlugin("PageFullScreenPlugin");e&&[f.lT.Follow,f.lT.Friend,f.lT.Recommend,f.lT.Topic].includes(D.s.getPlayerScene(v.playerId))&&e.updateConfig({player:v,isCtxCssFullScreen:d,abtestData:u})}},[d,u]),(0,a.useEffect)(()=>{if(l&&v&&i){let e=w.listen(w.EVENT.pageFullScreen,e=>{var i,t;let{clickMethod:a,fullScreen:o,oldFullScreen:u}=e||{},s=null!==(t=null!=u?u:D.s.getIsPageFullscreen())&&void 0!==t&&t,d=null!=o?o:!s,c={author_id:null==l?void 0:l.authorUserId,group_id:null==l?void 0:l.groupId,enter_from:null==n?void 0:n.enter_from,enter_from_merge:null==n?void 0:n.enter_from_merge,item_duration_ms:(null==l?void 0:null===(i=l.video)||void 0===i?void 0:i.duration)||0,click_from:a,player_display_mode:(0,x.Ok)()};if(d){if("inner_player"!==a&&L.sendLog("enterFullWebscreen",c),(0,m.Jt)(l)){let e=(0,m.Rx)(l);(0,g.E)("full_screen",{tag:(0,I.f)(),value:e.creative_id,log_extra:e.log_extra,player_form:"web_full"})}}else if(!1!==s&&(L.sendLog("exitFullWebscreen",c),(0,m.Jt)(l))){let e=(0,m.Rx)(l);(0,g.E)("full_screen",{tag:(0,I.f)(),value:e.creative_id,log_extra:e.log_extra,player_form:"normal"})}if((0,b.r)()&&d){if(D.s.getPlayersByScene(f.lT.Modal).length>0&&r!==p.a.RecommendUpdateWindow)return;v.exitFullscreen(),v.emit("switch_fullscreen",{fullscreen:!0,cssFullScreen:!0})}N.Le.setConfig(N.gI.IsPageFullScreen,{type:d})});return()=>{null==e||e()}}},[n,v,l,i,r]),(0,a.useEffect)(()=>{if(v&&i){let e=e=>{e&&D.s.getIsPageFullscreen()&&(D.s.setPageFullscreen({playerId:v.playerId,isPageFullscreen:!1}),!_.getValue("modalAwemeInfo")&&w.emit(w.EVENT.pageFullScreen,{clickMethod:"fullscreen",fullScreen:!1,playerId:v.playerId}))};return v.on(o.Events.FULLSCREEN_CHANGE,e),()=>{null==v||v.off(o.Events.FULLSCREEN_CHANGE,e)}}},[v,i]),(0,a.useEffect)(()=>{let e=e=>{if(e.shiftKey||e.metaKey||e.ctrlKey)return;let l=N.Le.getConfig(N.gI.DisableExit);"Escape"===e.code&&D.s.getPlayerIsPageFullscreen(null==v?void 0:v.playerId)&&v.isUserActive&&!l&&(D.s.setPageFullscreen({playerId:v.playerId,isPageFullscreen:!1}),setTimeout(()=>{_.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(i){var e,l;let n=null===(e=N.Le.getConfig(N.gI.IsInLookMiniModal))||void 0===e?void 0:e.isInMiniModal;if(d){if(!n&&!_.getValue("modalAwemeInfo")){let e=V.SHORTCUT_KEY.pageFullScreen.badgeText;s.current=h.F.info({text:`ESC${e?`或${e}`:""}可退出网页全屏`,zIndex:1e4})}}else null===(l=s.current)||void 0===l||l.call(s)}},[d]),null},B=e=>{let l=(0,M.N)();return(0,r.jsx)(j.k,{componentName:"PageFullScreen",Slardar:l,children:(0,r.jsx)(G,(0,t._)({},e))})}},7305:function(e,l,n){var i=n(629686),t=n(402748),r=n(320165),a=n(101199);let o=(0,a.forwardRef)((e,l)=>(0,r.jsxs)("svg",(0,t._)((0,i._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:[(0,r.jsx)("rect",{width:20,height:20,rx:2,fill:"#FF851D"}),(0,r.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"})]})));l.Z=o},736068:function(e,l,n){var i=n(629686),t=n(402748),r=n(320165),a=n(101199);let o=(0,a.forwardRef)((e,l)=>(0,r.jsx)("svg",(0,t._)((0,i._)({width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,r.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"})})));l.Z=o}}]);