0?.002:-.002),s!==1-r&&(g=1-r-s,g+=g>0?.002:-.002)),p=Math.max(e,1)}return{scaleRatio:p,transformX:g,transformY:_,isCalcBaseWidth:m,transform:`scale(${p}) translate(${(100*g/2).toFixed(4)}%, ${(100*_/2).toFixed(4)}%)`}}var d=i(96926),c=i(23500);function u(e){const{url:t,handleMultiGuestSeiParsedCallback:i,playMode:u}=e,p=(0,o.useRef)(!1),g=(0,o.useRef)([]),_=(0,o.useRef)(),m=(0,o.useRef)(),[h,v]=(0,o.useState)(),f=(0,o.useRef)({w:1,h:1}),y=(0,o.useRef)({minX:0,minY:0,maxX:1,maxY:1}),b=(0,o.useRef)({scaleRatio:1,transformX:0,transformY:0,isCalcBaseWidth:!1,transform:""}),x=(0,o.useRef)(""),k=(0,o.useRef)(),w=(0,o.useRef)(!1),S=(0,o.useRef)([]),C=(0,o.useCallback)(((e,t)=>{var n,o;g.current=[],S.current=[],f.current={w:1,h:1},(null===(n=_.current)||void 0===n?void 0:n.style)&&p.current&&(_.current.style.transform=""),(null===(o=m.current)||void 0===o?void 0:o.style)&&(m.current.style.filter=""),p.current=!1,b.current={scaleRatio:1,transformX:0,transformY:0,isCalcBaseWidth:!1,transform:""},w.current=Boolean(t),y.current={minX:0,minY:0,maxX:1,maxY:1},null==i||i({transformY:0,scaleRatio:1,transformX:0,videoContainerRef:m,seiContent:e,isPanelFloatLinkedMicType:t,isNeedFixStyle:Boolean(t),regionBorder:{},regionsFromDSL:[]})}),[i]),j=(0,o.useCallback)(((e,t)=>{var i,n;if((null===(i=_.current)||void 0===i?void 0:i.style)&&e){const{transform:i}=e;_.current.style.transformOrigin="center","full_screen"===u&&(0,a.Yh)()&&(null===(n=m.current)||void 0===n?void 0:n.style)&&(m.current.style.filter="opacity(1)");const o="picture_in_picture"===u,r="fyp_preview"===u;_.current.style.transform=!o&&!r||t?i:""}}),[u]),T=(0,o.useCallback)((e=>{var t;if(Boolean(null==e?void 0:e.ttls_live_scene))return C(e),{isExist:!1};const i=(0,r._m)(e),n=Boolean(null===(t=e.app_data)||void 0===t?void 0:t.channel_id);return(null==i?void 0:i.length)&&n?{isExist:!0}:(0,r.U$)(e)?{isExist:!0,isVolType:!0}:(C(e),{isExist:!1})}),[C]),I=(0,o.useCallback)(((e,t,o)=>(0,n.__awaiter)(this,void 0,void 0,(function*(){var n,a,d,c,u,h,x,C,I,P,A,M,L,D,O,R,E,F,B,z,U,N;if(Object.keys(e).length&&void 0===e.ts)return;if(!o||!t||20===(null===(n=e.app_data)||void 0===n?void 0:n.ver)||16===(null===(a=e.app_data)||void 0===a?void 0:a.ver))return;_.current&&_.current===o||(_.current=o),m.current||(m.current=t,v(t));const{isExist:W,isVolType:V}=T(e);if(!W||V)return;const H=(0,r._m)(e);k.current=e;const q=String(null!==(u=null===(c=null===(d=null==e?void 0:e.app_data)||void 0===d?void 0:d.DSLData)||void 0===c?void 0:c.layoutId)&&void 0!==u?u:""),$=null!==(x=null===(h=null==e?void 0:e.app_data)||void 0===h?void 0:h.canvas)&&void 0!==x?x:{width:null!==(I=null===(C=null==e?void 0:e.canvas)||void 0===C?void 0:C.w)&&void 0!==I?I:0,height:null!==(A=null===(P=null==e?void 0:e.canvas)||void 0===P?void 0:P.h)&&void 0!==A?A:0},G=Boolean($.width&&$.height&&$.width>$.height),K=yield(0,r.yy)(String(q),null!==(L=null===(M=e.app_data)||void 0===M?void 0:M.grids)&&void 0!==L?L:[],null!==(O=null===(D=null==e?void 0:e.app_data)||void 0===D?void 0:D.zoomed_linkmic_id)&&void 0!==O?O:"",G),Y=K.length?K:H,{minX:Z,minY:J,maxX:X,maxY:Q}=(0,s.Se)(Y),ee=0===Z&&0===J&&X>=1&&Q>=1||["1011","1011_A","1001"].includes(q);if(!ee&&p.current&&y.current&&(0,s.c7)({minX:Z,minY:J,maxX:X,maxY:Q},y.current)){const{transformY:t,scaleRatio:n,transformX:o,isCalcBaseWidth:a}=b.current;return S.current=K,void(null==i||i({transformY:t,scaleRatio:n,transformX:o,isCalcBaseWidth:a,videoContainerRef:m,seiContent:e,regionsFromDSL:K,isNeedFixStyle:!0,regionBorder:y.current,isPanelFloatLinkedMicType:w.current}))}w.current=ee;const te=null!==(R=e.canvas)&&void 0!==R?R:{w:null!==(B=null===(F=null===(E=e.app_data)||void 0===E?void 0:E.canvas)||void 0===F?void 0:F.width)&&void 0!==B?B:0,h:null!==(N=null===(U=null===(z=e.app_data)||void 0===z?void 0:z.canvas)||void 0===U?void 0:U.height)&&void 0!==N?N:0},ie=l({container:t,minX:Z,minY:J,maxX:X,maxY:Q,canvasWidth:te.w,canvasHeight:te.h});if(p.current=!0,g.current=Y,S.current=K,f.current=te,y.current={minX:Z,minY:J,maxX:X,maxY:Q},o.style){const{transformY:t,scaleRatio:n,transformX:o,transform:a,isCalcBaseWidth:r}=ie;j({transform:a}),b.current={scaleRatio:n,transformX:o,transformY:t,isCalcBaseWidth:r,transform:a},null==i||i({transformY:t,scaleRatio:n,transformX:o,videoContainerRef:m,seiContent:e,isNeedFixStyle:!0,isCalcBaseWidth:r,regionsFromDSL:K,regionBorder:y.current,isPanelFloatLinkedMicType:w.current})}}))),[T,i,j]),P=(0,o.useCallback)((()=>{var e,t,n,o,a,r;if(!p.current)return void((null===(e=_.current)||void 0===e?void 0:e.style)&&((null===(o=null===(n=null===(t=_.current)||void 0===t?void 0:t.style.transform)||void 0===n?void 0:n.includes)||void 0===o?void 0:o.call(n,"rotate"))||(_.current.style.transform=""),null==i||i({scaleRatio:1,videoContainerRef:m,seiContent:null!==(a=k.current)&&void 0!==a?a:{},isPanelFloatLinkedMicType:w.current,isContainerSizeChange:w.current,isNeedFixStyle:w.current,regionBorder:y.current,regionsFromDSL:[]})));if(!m.current)return;const{minX:d,minY:c,maxX:u,maxY:h}=(0,s.Se)(g.current),v=l({container:m.current,minX:d,minY:c,maxX:u,maxY:h,canvasHeight:f.current.h,canvasWidth:f.current.w});if(null===(r=_.current)||void 0===r?void 0:r.style){const{transformY:e,scaleRatio:t,transformX:n,isCalcBaseWidth:o,transform:a}=v;j({transform:a}),b.current={scaleRatio:t,transformX:n,transformY:e,isCalcBaseWidth:o,transform:a},k.current&&(null==i||i({scaleRatio:t,transformX:n,transformY:e,videoContainerRef:m,seiContent:k.current,isContainerSizeChange:!0,isNeedFixStyle:!0,isCalcBaseWidth:o,regionsFromDSL:S.current,isPanelFloatLinkedMicType:w.current,regionBorder:y.current}))}}),[i,j]),A=(0,o.useCallback)((()=>{P()}),[P]),M=(0,o.useCallback)((()=>{(0,a.fU)()||A()}),[A]),L=(0,o.useCallback)((()=>{var e;p.current&&(null===(e=b.current)||void 0===e?void 0:e.transform)&&j({transform:b.current.transform},!0)}),[j]),D=(0,o.useMemo)((()=>h?{current:h}:m),[h]);return(0,d.w)({element:D,callback:M}),(0,o.useEffect)((()=>{var e,t;(null===(e=_.current)||void 0===e?void 0:e.style)&&p.current&&(_.current.style.transform="picture_in_picture"===u?"":b.current.transform,(0,a.Yh)()&&(null===(t=m.current)||void 0===t?void 0:t.style)&&(m.current.style.filter="full_screen"===u?"opacity(1)":""))}),[u]),(0,o.useEffect)((()=>{t&&t&&!(0,c.Kd)(x.current,t)&&(C({}),x.current=t)}),[t,C]),{handleMultiGuestSeiParsed:I,recoverVideoStyle:L}}},7162:(e,t,i)=>{"use strict";i.d(t,{J:()=>d});var n=i(58632),o=i(71111),a=i(56070),r=i(45297),s=i(93704);const l=(0,o.atom)({linkedUsers:{},linkedMicUsers:null}),d=(0,o.atom)((e=>e(l)),((e,t,i)=>(0,n.__awaiter)(void 0,void 0,void 0,(function*(){var e,n,o;try{const d=yield(o=i,a.h.get("/webcast/linkmic_multi_guest/webapp/audience_room_enter_backup/",{query:Object.assign({live_id:r.M2,app_id:r.xE},o),baseUrlType:4}));if(!(null==d?void 0:d.data))throw Error("no data");{const i=null!==(n=null===(e=d.data.multi_guest_linkmic_info)||void 0===e?void 0:e.linked_users)&&void 0!==n?n:[],{linkedMicUsers:o,linkedMicUserMap:a}=(0,s.Mu)(i);t(l,{linkedUsers:a,linkedMicUsers:o})}}catch(e){t(l,{linkedUsers:{},linkedMicUsers:null})}}))))},96101:(e,t,i)=>{"use strict";i.d(t,{y:()=>U});var n=i(24643),o=i(40099),a=i(93704),r=i(13545),s=i(25616),l=i(53439),d=i(62186);const c=i.p+"2a76df5f1cb19fd2acf7.png",u=i.p+"b0b7e2c9a68bccf32083.png",p=i.p+"8c59c078e88d02be0a83.png",g=(0,d.default)("div",{target:"e1dhtgaw0"})({position:"absolute",left:0,top:0,display:"flex",justifyContent:"center",pointerEvents:"none",zIndex:3},"label:DivMultiGuestMaskPanelWrapper;"),_=(0,d.default)("div",{target:"e1dhtgaw1"})({position:"relative"},"label:DivMultiGuestMaskPanelContent;"),m=(0,d.default)("div",{target:"e1dhtgaw2"})({position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1},"label:DivLinkedMicUserCardWrapper;"),h=(0,d.default)("div",{target:"e1dhtgaw3"})({position:"absolute",top:"-1px",left:"-1px",border:"2px solid #161823",borderRadius:"6px",zIndex:9},"label:DivLinkMicUserCardBorder;"),v=(0,d.default)("div",{target:"e1dhtgaw4"})({background:"linear-gradient(180deg, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.4) 100%)",maxHeight:"56px",height:"22.13%",position:"absolute",zIndex:2,left:"-1px",bottom:0},"label:DivBlurMask;"),f=(0,d.default)("div",{target:"e1dhtgaw5"})({width:"100%",height:"100%",position:"absolute",background:"rgba(22, 24, 35, 0.5)",zIndex:2,left:0,top:0},"label:DivGrayMask;"),y=(0,d.default)("div",{target:"e1dhtgaw6"})({width:"100%",height:"100%",textAlign:"center",position:"absolute",zIndex:3,left:0,top:0,overflow:"hidden"},"label:DivIconContainer;"),b=(0,d.default)("div",{target:"e1dhtgaw7"})({position:"relative",width:"100%",height:"100%",background:"linear-gradient(180deg, #372143 0%, #2D234D 100%)"},"label:DivIconBg;"),x=(0,d.default)("div",{target:"e1dhtgaw8"})({width:"100%",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:1},"label:DivActicle;"),k=(0,d.default)("img",{target:"e1dhtgaw9"})({maxWidth:"188px",margin:"0 auto"},"label:ImgPng;"),w=(0,d.default)("div",{target:"e1dhtgaw10"})((({bgUrl:e})=>({backgroundImage:e?`url(${e})`:"unset",backgroundSize:"cover",backgroundPosition:"center",width:"100%",height:"100%",backgroundRepeat:"no-repeat",position:"absolute",top:"0px",left:"0px",zIndex:1,overflow:"hidden"})),"label:DivLinkMicUserCardBgWrapper;"),S=(0,d.default)("div",{target:"e1dhtgaw11"})({width:"101%",height:"100%",backdropFilter:"blur(15px)",backgroundColor:"rgba(22, 24, 35, 0.5)"},"label:DivLinkMicUserCardBg;"),C=(0,d.default)("div",{target:"e1dhtgaw12"})((({theme:e})=>({position:"absolute",top:"4px",left:"4px",height:"14px",borderRadius:"57px",backgroundColor:e.colors.ConstBGInverse3,padding:"2px",overflow:"hidden",display:"flex",alignItems:"center",zIndex:10})),"label:DivUserCoinWrapper;"),j=(0,d.default)("div",{target:"e1dhtgaw13"})({width:"10px",height:"10px",backgroundImage:`url(${u})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"},"label:DivUserCoinIcon;"),T=(0,d.default)("div",{target:"e1dhtgaw14"})((({theme:e})=>({color:e.colors.ConstTextInverse,fontFamily:e.fontFamilies.TikTokFont,fontSize:"12px",lineHeight:"18px",fontWeight:600,marginLeft:"2px",marginRight:"2px"})),"label:DivUserCoinCount;"),I=(0,d.default)("div",{target:"e1dhtgaw15"})({height:"14px",borderRadius:"38px",padding:"1px 4px",overflow:"hidden",zIndex:10,position:"absolute",left:"4px",top:"4px",display:"flex",alignItems:"center",whiteSpace:"nowrap"},"label:DivHostIconWrapper;"),P=(0,d.default)("div",{target:"e1dhtgaw16"})((({theme:e})=>({backgroundColor:e.colors.Secondary2,position:"absolute",width:"100%",height:"100%",left:0,top:0,opacity:.6,zIndex:0})),"label:DivHostIconWrapperBg;"),A=(0,d.default)("div",{target:"e1dhtgaw17"})({position:"relative",width:"10px",height:"10px",backgroundImage:`url(${p})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",zIndex:1},"label:DivHostIcon;"),M=(0,d.default)("div",{target:"e1dhtgaw18"})((({theme:e})=>({position:"relative",color:e.colors.ConstTextInverse,fontFamily:e.fontFamilies.TikTokFont,fontSize:"12px",lineHeight:"18px",fontWeight:600,marginLeft:"2px",zIndex:1})),"label:DivHostText;"),L=(0,d.default)("div",{target:"e1dhtgaw19"})((({theme:e,showMuteIcon:t})=>({color:e.colors.ConstTextInverse,fontFamily:e.fontFamilies.TikTokFont,fontSize:"12px",lineHeight:"18px",fontWeight:400,position:"absolute",left:"4px",bottom:"4px",right:t?"22px":"4px",zIndex:10,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"})),"label:DivUserName;"),D=(0,d.default)("div",{target:"e1dhtgaw20"})({backgroundImage:`url(${c})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",position:"absolute",bottom:"4px",right:"4px",width:"14px",height:"14px",zIndex:10},"label:DivUserAudioMuteIcon;"),O=i.p+"4f1f082fd98c7fc593f0.png",R=e=>{const{iconStyle:t,containerStyle:i}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(y,{style:i,children:[(0,n.jsx)(b,{}),(0,n.jsx)(x,{children:(0,n.jsx)(k,{style:t,src:O})})]})})},E=i.p+"6edb78772735dc3e70e4.png",F=e=>{const{iconStyle:t,containerStyle:i}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(y,{style:i,children:(0,n.jsx)(x,{children:(0,n.jsx)(k,{style:t,src:E})})}),(0,n.jsx)(f,{style:i})]})},B=e=>{const{user:t,containerStyle:i,hideUserCoin:a,needMaskBg:d,isPanelFloatLinkedMicType:c,canShowUserInfo:u}=e,{avatarUrl:p,isAnchor:g,userName:_,isAudioMuted:f,isPause:y,isVideoMuted:b,coin:x,isEmpty:k}=t,O=(0,s.s)(),E=(0,o.useMemo)((()=>({width:`${t.width}px`,height:`${t.height}px`,top:`${t.top}px`,left:`${t.left}px`})),[t.height,t.left,t.top,t.width]),B=(0,o.useMemo)((()=>t.width<78||t.height<78||!u),[t.height,t.width,u]),z=(0,o.useMemo)((()=>{if(t.width<128||t.height<128){const e=Math.min(t.width,t.height)/2;return{width:`${e}px`,height:`${e}px`}}return{width:"80px",height:"80px"}}),[t.width,t.height]),U=(0,o.useMemo)((()=>c&&!g&&t.isVideoMuted?{width:t.width-1+"px",height:t.height-2+"px",top:"1px",left:"1px"}:{}),[g,c,t.height,t.isVideoMuted,t.width]),N=(0,o.useMemo)((()=>{const e=c&&!g?2:0;return e?{width:t.width-e+"px",height:t.height-e+"px)",left:"1px",top:"1px",borderRadius:"4px"}:{}}),[g,c,t.height,t.width]),W=(0,o.useMemo)((()=>({width:`${t.width+2}px`,height:`${t.height+2}px`})),[t.height,t.width]),V=(0,o.useMemo)((()=>c&&!g?{borderBottomLeftRadius:"6px",borderBottomRightRadius:"6px",width:`${t.width+2}px`,bottom:"-1px"}:{width:`${t.width+2}px`}),[g,c,t.width]);return(0,n.jsxs)(m,{style:Object.assign(Object.assign({},E),i),children:[d&&(b||y)&&(0,n.jsx)(w,{bgUrl:p,style:U,children:(0,n.jsx)(S,{})}),c&&!t.isAnchor&&!k&&(0,n.jsx)(h,{style:W}),k&&(0,n.jsx)(R,{containerStyle:N,iconStyle:z}),y&&(0,n.jsx)(F,{containerStyle:N,iconStyle:z}),!B&&g&&(0,n.jsxs)(I,{style:{maxWidth:t.width-8+"px"},children:[(0,n.jsx)(P,{}),(0,n.jsx)(A,{}),(0,n.jsx)(M,{children:O("pm_mt_multiguest_enlarge_host_tag")})]}),!a&&!B&&!g&&!k&&(0,n.jsxs)(C,{children:[(0,n.jsx)(j,{}),(0,n.jsx)(T,{children:(0,r.GQ)(x)})]}),!y&&b&&p&&(0,n.jsx)(l.I,{style:Object.assign(Object.assign({},z),{borderRadius:"80px",position:"absolute",transform:"translate(-50%, -50%)",left:"50%",top:"50%",zIndex:10}),src:p}),!B&&Boolean(_)&&(0,n.jsx)(L,{showMuteIcon:f,children:_}),!B&&f&&(0,n.jsx)(D,{}),!k&&(0,n.jsx)(v,{style:V})]})},z=e=>{const{containerStyle:t,contentStyle:i,users:a,isPanelFloatLinkedMicType:r,hideUserCoin:s,canShowUserInfo:l}=e,d=(0,o.useMemo)((()=>a.length||0),[a]);return(0,n.jsx)(g,{style:t,children:(0,n.jsx)(_,{style:i,children:a.map(((e,t)=>(0,n.jsx)(B,{index:t,user:e,isPanelFloatLinkedMicType:r,needMaskBg:!(r&&e.isAnchor),hideUserCoin:s,canShowUserInfo:l},`${e.uidStr}_${d}`)))})})},U=e=>{const{containerWidth:t,containerHeight:i,contentWidth:r,contentHeight:s,containerTop:l,containerLeft:d,grids:c,anchorLinkMicId:u,isPanelFloatLinkedMicType:p,hideUserCoin:g,appCanvas:_,regionBorder:m,linkedUsers:h,regionsFromDSL:v,canShowUserInfo:f}=e,y=(0,o.useMemo)((()=>({width:`${t}px`,height:`${i}px`,top:`${Math.ceil(l)}px`,left:`${Math.ceil(d)}px`})),[i,d,l,t]),b=(0,o.useMemo)((()=>({width:r,height:s})),[s,r]),x=(0,o.useMemo)((()=>{if(!c.length||!h)return{linkedMicUsersArr:[],linkedMicUsersMap:{}};const e=[],t={};return c.forEach((i=>{var n,o,l,d;const c=String(null!==(n=i.uid_str)&&void 0!==n?n:""),g=h[c];if(!g)return;const v=Object.assign(Object.assign({},(0,a.xU)({grid:i,contentStyle:{width:r,height:s},appCanvas:_,regionBorder:m,needFixSize:!p})),{userName:null!==(o=g.userName)&&void 0!==o?o:"",avatarUrl:null!==(l=g.avatarUrl)&&void 0!==l?l:"",isAnchor:i.uid_str===u,isPause:2===i.online_user_state,isAudioMuted:Boolean(i.mute_a),isVideoMuted:Boolean(i.mute_v),coin:Number(null!==(d=g.coin)&&void 0!==d?d:0),uidStr:c});e.push(v),void 0!==i.p&&(t[i.p]=v)})),{linkedMicUsersArr:e,linkedMicUsersMap:t}}),[c,h,r,s,_,m,u,p]),k=(0,o.useMemo)((()=>{if(!c.length||!h)return[];const{linkedMicUsersArr:e,linkedMicUsersMap:t}=x;if(v.length&&e.length){const e=[];return v.forEach(((i,n)=>{const o=t[n];o?e.push(o):e.push(Object.assign(Object.assign({},(0,a.xU)({grid:i,contentStyle:{width:r,height:s},appCanvas:_,regionBorder:m,needFixSize:!p})),{userName:"",avatarUrl:"",isAnchor:!1,isPause:!1,isAudioMuted:!1,isVideoMuted:!1,coin:0,uidStr:`${u}-${n}`,isEmpty:!0}))})),e}return e}),[c,h,v,r,s,u,_,m,p,x]);return(0,n.jsx)(z,{containerStyle:y,isPanelFloatLinkedMicType:p,contentStyle:b,users:k,hideUserCoin:g,canShowUserInfo:f})}},30662:(e,t,i)=>{"use strict";i.d(t,{tG:()=>l});var n,o,a=i(58632),r=i(7672),s=i(16891);!function(e){e.Share="livesdk_share",e.Report="livesdk_live_user_report",e.ReportSuccess="livesdk_report_success",e.ChatClose="livesdk_comment_close",e.HoverUserCardShow="livesdk_user_card_show",e.Follow="livesdk_follow",e.Take="livesdk_live_action",e.SetupPopShow="livesdk_live_tab_popup_show",e.AnchorEnterRoom="livesdk_anchor_enter_room",e.Show="livesdk_live_show",e.ClickEntrance="livesdk_rec_live_play",e.Unfollow="livesdk_unfollow"}(n||(n={})),function(e){e.LiveCover="live_cover",e.SuggestedOthersPhoto="suggested_others_photo",e.NextIconClick="next_icon_click",e.Others="others",e.VideoHeadBrowser="video_head_browser",e.Creator="creator",e.VideoHead="video_head",e.LiveHead="live_head",e.OthersPhoto="others_photo",e.ClickOneColumnUser="click_main_btn",e.TopLiveCell="top_live_cell",e.VideoLiveCell="video_live_cell",e.FollowingTop="top_window",e.FollowingPreview="live_cover_preview"}(o||(o={}));let l=class{constructor(){this.handleLiveEntranceShow=e=>{s.f.event("livesdk_live_show",e)},this.handleLiveEntranceClick=e=>{s.f.event("livesdk_rec_live_play",e)},this.handleLiveStreamEntranceClick=e=>{s.f.event("livesdk_live_action",Object.assign({live_type:"third_party"},e))}}};l=(0,a.__decorate)([(0,r._)()],l)},61886:(e,t,i)=>{"use strict";i.d(t,{oD:()=>r,y_:()=>g});var n,o,a,r,s,l,d,c=i(58632),u=i(7672),p=i(16891);!function(e){e.LiveRechargeShow="livesdk_recharge_show",e.LiveRechargeClick="livesdk_recharge_click",e.LiveRechargeCashierShow="livesdk_web_cashier_show",e.LiveRechargePay="livesdk_recharge_pay",e.LiveRechargeSuccess="livesdk_recharge_success",e.LiveRechargeFailed="livesdk_recharge_failed",e.livesdkRechargeFailClick="livesdk_recharge_fail_click",e.LiveBillingAddressClick="livesdk_billing_address_click",e.LiveBillingAddressEntranceClick="livesdk_billing_address_entrance_click",e.LiveWebGetCoinShow="livesdk_web_getcoin_show",e.LiveWebGetCoinClick="livesdk_web_getcoin_click",e.LiveWebGetCoinBubbleShow="livesdk_audience_bubble_show",e.LiveWebGetCoinBubbleDuration="livesdk_bubble_duration",e.LiveWebPayFeedbackShow="livesdk_web_pay_feedback_show",e.LiveWebPayFeedbackClick="livesdk_web_pay_feedback_click",e.LiveWebPayMethodClick="livesdk_web_pay_method_click",e.LiveWebLinkEWalletShow="livesdk_link_ewallet_show",e.LiveWebLinkEWalletClick="livesdk_link_ewallet_click",e.LiveWebLinkEWalletSuccess="livesdk_link_ewallet_success",e.LiveWebLinkEWalletFailed="livesdk_link_ewallet_failed",e.LiveRechargeExchangeEntranceShow="livesdk_recharge_exchange_entrance_show",e.LiveRechargeExchangeEntranceClick="livesdk_recharge_exchange_entrance_click",e.LiveRechargeExchangeClick="livesdk_recharge_exchange_click",e.LiveRechargeExchangePopupShow="livesdk_recharge_exchange_popup_show",e.LiveRechargeExchangeConfirm="livesdk_recharge_exchange_confirm",e.LiveRechargeExchangeCancel="livesdk_recharge_exchange_cancel",e.LiveRechargeExchangeSuccess="livesdk_recharge_exchange_success",e.LiveRechargeExchangeFailed="livesdk_recharge_exchange_failed",e.LiveRechargeExchangePackageShow="livesdk_recharge_exchange_package_show",e.LiveRechargeExchangePreview="livesdk_recharge_exchange_preview",e.LiveRechargeExchangeLimitPopupShow="livesdk_wallet_limit_popup_show",e.LiveRechargeExchangeLimitPopupClick="livesdk_wallet_limit_popup_click",e.LiveRechargeLogoutClick="livesdk_logout_click",e.LiveBillingAddressShow="livesdk_billing_address_show",e.LiveBillingAddressConfirm="livesdk_billing_address_confirm",e.LiveBillingAddressCancel="livesdk_billing_address_cancel",e.LiveBillingAddressFailed="livesdk_billing_address_failed",e.LiveRechargeNoticeShow="livesdk_webapp_top_notice_show",e.LiveRechargeNoticeClick="livesdk_webapp_top_notice_click",e.LiveRechargeNoticeClose="livesdk_webapp_top_notice_close",e.LiveAbnormalFeatureToast="livesdk_feature_abnormal_toast",e.LiveKycReminderPopup="livesdk_kyc_reminder_popup",e.LiveKycReminderPopupClick="livesdk_kyc_reminder_popup_click",e.LiveKycPopupShow="livesdk_kyc_popup_show",e.LiveKycPopupClick="livesdk_kyc_popup_click",e.LivePaymentBindShow="livesdk_payment_bind_show",e.LivePaymentBindClick="livesdk_payment_bind_click",e.LivePaymentBindSuccess="livesdk_payment_bind_success",e.LivePaymentBindFail="livesdk_payment_bind_fail",e.LiveRechargePackageShow="livesdk_recharge_package_show",e.LiveRechargeBanPopupShow="livesdk_recharge_ban_popup_show",e.LiveRechargeBanPopupClick="livesdk_recharge_ban_popup_click",e.LiveRechargePackagePreview="livesdk_recharge_package_preview",e.LiveRechargeCompletedEducationPopupShow="livesdk_payment_completed_popup_show",e.LiveRechargeCompletedEducationPopupClick="livesdk_payment_completed_click",e.LiveRechargeNegativeBalancePopupShow="livesdk_negative_balance_popup_show",e.LiveRechargeNegativeBalancePopupClick="livesdk_negative_balance_click",e.LiveRechargeLimitToastShow="livesdk_wallet_limit_toast_show",e.LiveRechargeLimitPopupShow="livesdk_wallet_limit_popup_show",e.LiveRechargeLimitPopupClick="livesdk_wallet_limit_popup_click",e.LivePayMethodLoadSuccess="livesdk_pay_method_load_success",e.LivePayMethodLoadFail="livesdk_pay_method_load_fail",e.LiveRechargeShowV2="livesdk_recharge_show_v2",e.LiveRechargePackageShowV2="livesdk_recharge_package_show_v2",e.LiveRechargePackagePreviewV2="livesdk_recharge_package_preview_v2",e.LiveRechargeClickV2="livesdk_recharge_click_v2",e.LiveRechargeLoginClick="livesdk_recharge_click_to_login",e.LiveExchangeRetainFirstPopupShow="livesdk_recharge_retain_first_popup_show",e.LiveExchangeRetainFirstPopupClick="livesdk_recharge_retain_first_popup_click",e.LiveExchangeRetainSecondPopupShow="livesdk_recharge_retain_second_popup_show",e.LiveExchangeRetainSecondPopupClick="livesdk_recharge_retain_second_popup_click",e.EXCHANGE_ENTRANCE_SHOW="livesdk_exchange_entrance_show",e.EXCHANGE_ENTRANCE_CLICK="livesdk_exchange_entrance_click",e.EXCHANGE_SHOW="livesdk_exchange_show",e.EXCHANGE_CLICK="livesdk_exchange_click",e.EXCHANGE_CUSTOM_CLICK="livesdk_exchange_custom_click",e.EXCHANGE_CONFIRM_POPUP_SHOW="livesdk_exchange_confirm_popup_show",e.EXCHANGE_CONFIRM="livesdk_exchange_confirm",e.EXCHANGE_CONFIRM_CANCEL="livesdk_exchange_confirm_cancel",e.EXCHANGE_CANCEL="livesdk_exchange_cancel",e.EXCHANGE_SUCCESS="livesdk_exchange_success",e.EXCHANGE_FAIL="livesdk_exchange_fail",e.LiveLoginQRCodeShow="livesdk_login_qr_code_show",e.LiveLoginQRCodeInstructionShow="livesdk_login_qr_code_instruction_show",e.LiveLoginQRCodeScanResultShow="livesdk_login_qr_code_scan_result_show",e.LivePanelLCP="livesdk_recharge_panel_lcp",e.EmailConfirmPopupShow="livesdk_email_confirm_popup_show",e.EmailConfirmPopupClick="livesdk_email_confirm_popup_click",e.EmailEditPageShow="livesdk_email_edit_page_show",e.EmailEditPageTextBoxClick="livesdk_email_edit_page_text_box_click",e.EmailEditPageCodeError="livesdk_email_edit_page_code_error",e.EmailEditSuccess="livesdk_email_edit_success",e.HomeScreenV2TriggerPointShow="livesdk_add_homescreen_shortcut_guide_show",e.HomeScreenV2AddButtonClick="livesdk_add_homescreen_shortcut_guide_click",e.LiveRechargePageShow="livesdk_wallet_page_show",e.LiveRechargeClientShow="livesdk_wallet_client_show",e.LiveRechargeViewClick="livesdk_wallet_view_click"}(n||(n={})),function(e){e.TIKTOKM="1233",e.TIKTOKT="1180",e.LITE="1340",e.RESSO="1811",e.WEBAPP="1988"}(o||(o={})),function(e){e.Done="done",e.LEARN_MORE="learn_more",e.CONTACT_US="contact_us",e.CANCEL="cancel",e.PUSH_OPT_IN="push_opt_in"}(a||(a={})),function(e){e.top_bar="top_bar",e.avatar="avatar",e.buy_now="buy_now",e.top_list_feedback="top_list_feedback",e.feedback_icon="feedback_icon"}(r||(r={})),function(e){e.Success="success",e.Fail="fail"}(s||(s={})),function(e){e.Instruction="instruction",e.Package="package"}(l||(l={})),function(e){e.PackageEntrance="package_entrance",e.RechargeSuccess="recharge_success"}(d||(d={}));let g=class{constructor(){this.handleRechargeShow=e=>{p.f.event("livesdk_recharge_show",e)},this.handleRechargeClick=e=>{p.f.event("livesdk_recharge_click",e)},this.handleCashierShow=e=>{p.f.event("livesdk_web_cashier_show",e)},this.handlePayAction=e=>{p.f.event("livesdk_recharge_pay",e)},this.handleRechargeSuccess=e=>{p.f.event("livesdk_recharge_success",e)},this.handleRechargeFailed=e=>{p.f.event("livesdk_recharge_failed",e)},this.handleRechargeFailedClick=e=>{p.f.event("livesdk_recharge_fail_click",e)},this.handleBillingAddressClick=e=>{p.f.event("livesdk_billing_address_click",e)},this.handleBillingAddressEntranceClick=e=>{p.f.event("livesdk_billing_address_entrance_click",e)},this.handleLiveWebGetCoinShow=e=>{p.f.event("livesdk_web_getcoin_show",e)},this.handleLiveWebGetCoinClick=e=>{p.f.event("livesdk_web_getcoin_click",e)},this.handleLiveWebGetCoinBubbleShow=e=>{p.f.event("livesdk_audience_bubble_show",e)},this.handleLiveWebGetCoinBubbleDuration=e=>{p.f.event("livesdk_bubble_duration",e)},this.handleRechargeFeedbackShow=e=>{p.f.event("livesdk_web_pay_feedback_show",e)},this.handleRechargeFeedbackClick=e=>{p.f.event("livesdk_web_pay_feedback_click",e)},this.handleRechargeCashierSelectPaymentMethod=e=>{p.f.event("livesdk_web_pay_method_click",e)},this.handleRechargeCashierEWalletShow=e=>{p.f.event("livesdk_link_ewallet_show",e)},this.handleRechargeCashierEWalletClick=e=>{p.f.event("livesdk_link_ewallet_click",e)},this.handleRechargeCashierEWalletSuccess=e=>{p.f.event("livesdk_link_ewallet_success",e)},this.handleRechargeCashierEWalletFailed=e=>{p.f.event("livesdk_link_ewallet_failed",e)},this.handleExchangeEntranceShow=e=>{p.f.event("livesdk_exchange_entrance_show",e),p.f.event("livesdk_recharge_exchange_entrance_show",e)},this.handleExchangeEntranceClick=e=>{p.f.event("livesdk_exchange_entrance_click",e),p.f.event("livesdk_recharge_exchange_entrance_click",e)},this.handleExchangeClick=e=>{p.f.event("livesdk_exchange_click",e),p.f.event("livesdk_recharge_exchange_click",e)},this.handleExchangeShow=e=>{p.f.event("livesdk_exchange_show",e)},this.handleExchangeCustomClick=e=>{p.f.event("livesdk_exchange_custom_click",e)},this.handleExchangePopupShow=e=>{p.f.event("livesdk_exchange_confirm_popup_show",e),p.f.event("livesdk_recharge_exchange_popup_show",e)},this.handleExchangeConfirm=e=>{p.f.event("livesdk_exchange_confirm",e),p.f.event("livesdk_recharge_exchange_confirm",e)},this.handleExchangeCancel=e=>{p.f.event("livesdk_exchange_cancel",e)},this.handleExchangeConfirmCancel=e=>{p.f.event("livesdk_exchange_confirm_cancel",e),p.f.event("livesdk_recharge_exchange_cancel",e)},this.handleExchangeSuccess=e=>{p.f.event("livesdk_exchange_success",e),p.f.event("livesdk_recharge_exchange_success",e)},this.handleExchangeFailed=e=>{p.f.event("livesdk_exchange_fail",e),p.f.event("livesdk_recharge_exchange_failed",e)},this.handleExchangePackageShow=e=>{p.f.event("livesdk_recharge_exchange_package_show",e)},this.handleExchangePreview=e=>{p.f.event("livesdk_recharge_exchange_preview",e)},this.handleRechargeLogoutClick=e=>{p.f.event("livesdk_logout_click",e)},this.handleBillingAddressShow=e=>{p.f.event("livesdk_billing_address_show",e)},this.handleBillingAddressConfirm=e=>{p.f.event("livesdk_billing_address_confirm",e)},this.handleBillingAddressCancel=e=>{p.f.event("livesdk_billing_address_cancel",e)},this.handleBillingAddressFailed=e=>{p.f.event("livesdk_billing_address_failed",e)},this.handleNoticeShow=e=>{p.f.event("livesdk_webapp_top_notice_show",e)},this.handleNoticeClick=e=>{p.f.event("livesdk_webapp_top_notice_click",e)},this.handleNoticeClose=e=>{p.f.event("livesdk_webapp_top_notice_close",e)},this.handleAbnormalFeatureToast=e=>{p.f.event("livesdk_feature_abnormal_toast",e)},this.liveKycReminderPopup=e=>{p.f.event("livesdk_kyc_reminder_popup",e)},this.liveKycReminderPopupClick=e=>{p.f.event("livesdk_kyc_reminder_popup_click",e)},this.liveKycPopupShow=e=>{p.f.event("livesdk_kyc_popup_show",e)},this.liveKycPopupClick=e=>{p.f.event("livesdk_kyc_popup_click",e)},this.handlePaymentBindShow=e=>{p.f.event("livesdk_payment_bind_show",e)},this.handlePaymentBindClick=e=>{p.f.event("livesdk_payment_bind_click",e)},this.handlePaymentBindSuccess=e=>{p.f.event("livesdk_payment_bind_success",e)},this.handlePaymentBindFail=e=>{p.f.event("livesdk_payment_bind_fail",e)},this.handleRechargePackageShow=e=>{p.f.event("livesdk_recharge_package_show",e)},this.handleRechargeBanPopupShow=e=>{p.f.event("livesdk_recharge_ban_popup_show",e)},this.handleRechargeBanPopupClick=e=>{p.f.event("livesdk_recharge_ban_popup_click",e)},this.handleRechargePackagePreview=e=>{p.f.event("livesdk_recharge_package_preview",e)},this.handleRechargeCompletedEducationPopupShow=e=>{p.f.event("livesdk_payment_completed_popup_show",e)},this.handleRechargeCompletedEducationPopupClick=e=>{p.f.event("livesdk_payment_completed_click",e)},this.handleNegativeBalancePopupShow=e=>{p.f.event("livesdk_negative_balance_popup_show",e)},this.handleNegativeBalancePopupClick=e=>{p.f.event("livesdk_negative_balance_click",e)},this.handleRechargeLimitToastShow=e=>{p.f.event("livesdk_wallet_limit_toast_show",e)},this.handleRechargeLimitPopupShow=e=>{p.f.event("livesdk_wallet_limit_popup_show",e)},this.handleRechargeLimitPopupClick=e=>{p.f.event("livesdk_wallet_limit_popup_click",e)},this.incentiveBannerShow=e=>{p.f.event("livesdk_kyc_incentive_banner_show",e)},this.incentiveBannerClick=e=>{p.f.event("livesdk_kyc_incentive_banner_click",e)},this.kycCouponShow=e=>{p.f.event("livesdk_kyc_coupon_show",e)},this.kycCouponChoose=e=>{p.f.event("livesdk_kyc_coupon_choose",e)},this.kycCouponRuleShow=e=>{p.f.event("livesdk_kyc_coupon_rule_show",e)},this.kycCouponCashierShow=e=>{p.f.event("livesdk_kyc_coupon_cashier_show",e)},this.kycCouponFreezeFirstReminder=e=>{p.f.event("livesdk_kyc_coupon_freeze_first_reminder_popup_show",e)},this.kycCouponFreezeFirstReminderClick=e=>{p.f.event("livesdk_kyc_coupon_freeze_first_reminder_popup_click",e)},this.kycCouponFreezeSecondReminderClick=e=>{p.f.event("livesdk_kyc_coupon_freeze_second_reminder_popup_click",e)},this.kycCouponFreezeSecondReminderShow=e=>{p.f.event("livesdk_kyc_coupon_freeze_second_reminder_popup_show",e)},this.cashierClose=(e,{beacon:t}={})=>{t?p.f.beconEvent("livesdk_cashier_close",e):p.f.event("livesdk_cashier_close",e)},this.customRechargeShow=e=>{p.f.event("livesdk_custom_recharge_show",e)},this.customSwitchEntranceClick=e=>{p.f.event("livesdk_custom_switch_entrance_click",e)},this.customSwitchOptionsClick=e=>{p.f.event("livesdk_custom_switch_options_click",e)},this.customInputTotalFaqClick=e=>{p.f.event("livesdk_web_pay_total_info_click",e)},this.exchangeBillingAddressEntranceShow=e=>{p.f.event("livesdk_exchange_billing_address_entrance_show",e)},this.exchangeBillingAddressEntranceClick=e=>{p.f.event("livesdk_exchange_billing_address_entrance_click",e)},this.handleCashierPayMethodLoadSuccess=e=>{p.f.event("livesdk_pay_method_load_success",e)},this.handleCashierPayMethodLoadFail=e=>{p.f.event("livesdk_pay_method_load_fail",e)},this.handleRechargeLoginClick=e=>{p.f.event("livesdk_recharge_click_to_login",e)},this.handleLiveRechargeExchangeLimitPopupShow=e=>{p.f.event("livesdk_wallet_limit_popup_show",e)},this.handleLiveRechargeExchangeLimitPopupClick=e=>{p.f.event("livesdk_wallet_limit_popup_click",e)},this.exchangeRetainFirstPopupShow=e=>{p.f.event("livesdk_recharge_retain_first_popup_show",e)},this.handleExchangeRetainFirstPopupClick=e=>{p.f.event("livesdk_recharge_retain_first_popup_click",e)},this.exchangeRetainSecondPopupShow=e=>{p.f.event("livesdk_recharge_retain_second_popup_show",e)},this.handleExchangeRetainSecondPopupClick=e=>{p.f.event("livesdk_recharge_retain_second_popup_click",e)},this.handleLoginQRCodeShow=e=>{p.f.event("livesdk_login_qr_code_show",e)},this.handleLoginQRCodeInstructionShow=e=>{p.f.event("livesdk_login_qr_code_instruction_show",e)},this.handleLoginQRCodeScanResultShow=e=>{p.f.event("livesdk_login_qr_code_scan_result_show",e)},this.handleAddHomescreenShortcutGuideShow=e=>{p.f.event("livesdk_add_homescreen_shortcut_guide_show",e)},this.handleAddToHomescreenShortcutGuideClick=e=>{p.f.event("livesdk_add_homescreen_shortcut_guide_click",e)},this.handleAddHomescreenShortcutInstructionShow=e=>{p.f.event("livesdk_add_homescreen_shortcut_instruction_show",e)},this.handlePricePopupShow=e=>{p.f.event("livesdk_price_info_popup_show",e)},this.handleSecuritySignShow=e=>{p.f.event("livesdk_webapp_security_sign_show",e)},this.handleSecuritySignClick=e=>{p.f.event("livesdk_webapp_security_sign_click",e)},this.handleSecurityPageShow=e=>{p.f.event("livesdk_webapp_security_page_show",e)},this.handleSecurityPageClick=e=>{p.f.event("livesdk_webapp_security_page_click",e)},this.customExchangeCustomPanelShow=e=>{p.f.event("livesdk_custom_exchange_show",e)},this.customExchangeCustomPanelSwitchEntranceClick=e=>{p.f.event("livesdk_exchange_custom_switch_entrance_click",e)},this.customExchangeCustomPanelSwitchOptionClick=e=>{p.f.event("livesdk_exchange_custom_switch_options_click",e)},this.customExchangeCustomPanelTotalInfoClick=e=>{p.f.event("livesdk_exchange_custom_total_info_click",e)},this.switchIapRechargeButtonShow=e=>{p.f.event("livesdk_switch_iap_recharge_button_show",e)},this.switchIapRechargeButtonClick=e=>{p.f.event("livesdk_switch_iap_recharge_button_click",e)},this.switchIapRechargeBubbleShow=()=>{p.f.event("livesdk_panel_change_bubble_show")},this.handleLCPReport=e=>{p.f.event("livesdk_recharge_panel_lcp",e)},this.handleEmailConfirmPopupShow=e=>{p.f.event("livesdk_email_confirm_popup_show",e)},this.handleEmailConfirmPopupClick=e=>{p.f.event("livesdk_email_confirm_popup_click",e)},this.handleEmailEditPageShow=e=>{p.f.event("livesdk_email_edit_page_show",e)},this.handleEmailEditPageTextboxClick=e=>{p.f.event("livesdk_email_edit_page_text_box_click",e)},this.handleEmailEditCodeError=e=>{p.f.event("livesdk_email_edit_page_code_error",e)},this.handleEmailEditSuccess=e=>{p.f.event("livesdk_email_edit_success",e)},this.referralBannerShow=e=>{p.f.event("livesdk_promotion_get_gift_popup_show",e)},this.referralBannerClick=e=>{p.f.event("livesdk_promotion_get_gift_popup_click",e)},this.homeScreenV2TriggerPointShow=e=>{p.f.event("livesdk_add_homescreen_shortcut_guide_show",e)},this.homeScreenV2AddButtonClick=e=>{p.f.event("livesdk_add_homescreen_shortcut_guide_click",e)},this.handlePageShow=e=>{p.f.event("livesdk_wallet_page_show",e)},this.handleClientShow=e=>{p.f.event("livesdk_wallet_client_show",e)},this.handleViewClick=e=>{p.f.event("livesdk_wallet_view_click",e)}}};g=(0,c.__decorate)([(0,u._)()],g)},23443:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>he});var n=i(24643),o=i(40099),a=i(58632),r=i(64738),s=i(32125),l=i(90247),d=i(54073),c=i(27462),u=i(59966),p=i(52679),g=i(19310),_=i(62186),m=i(72153);const h=(0,_.default)("div",{target:"ecuxb6i0"})((({visible:e})=>({position:"absolute",left:0,bottom:0,opacity:e?1:0,transition:e?"opacity .3s ease-in .1s":"opacity .3s ease-in",width:"100%",height:40,marginBottom:"8px",zIndex:10,display:"flex",justifyContent:"space-between"})),"label:DivPlayerControls;"),v=(0,_.default)("div",{target:"ecuxb6i1"})({display:"flex",height:"40px",margin:"0px 4px"},"label:DivPlayerLeftGroup;"),f=(0,_.default)("div",{target:"ecuxb6i2"})((({theme:e})=>[{display:"flex",height:"40px",justifyContent:"center",alignItems:"center"},(0,m.mp)({direction:e.direction,marginEnd:6})]),"label:DivPlayerVolumeIcon;");var y=i(1380),b=i(85876),x=i(22203);const k=(0,o.memo)((function(e){const{playing:t,playerIsPlaying:i,handleRetry:a,handleClickPlay:r,handleClickPause:s,xgplayer:l,visible:d=!0,mutedPlay:c=!1,isBrowserMode:u,defaultVolume:p=50,defaultMuted:g=!1,onMutedChange:_,onVolumeChange:m}=e,{PlayIcon:k,playIconProps:w}=(0,y.j)({defaultPlaying:t&&i,onPlay:r,onPause:s}),[S,C]=(0,o.useState)(p),[j,T]=(0,o.useState)(g),I=(0,o.useCallback)((e=>{C((t=>(e!==t&&(null==l?void 0:l.current)&&(l.current.volume=Number(e)/100,null==m||m(e)),e)))}),[m,l]),P=(0,o.useCallback)((e=>{T((t=>(e!==t&&(null==l?void 0:l.current)&&(null==_||_(e),l.current.muted=e),e)))}),[_,l]);return(0,o.useEffect)((()=>{c&&(T(!0),null==_||_(!0))}),[c,_]),(0,o.useEffect)((()=>{I(p)}),[I,p]),(0,o.useEffect)((()=>{P(g)}),[P,g]),(0,n.jsxs)(h,{visible:d,children:[(0,n.jsxs)(v,{children:[(0,n.jsx)(k,Object.assign({},w,{hideTips:!0})),(0,n.jsx)(b.r,{onReplay:a,hideTips:!0})]}),(0,n.jsx)(f,{children:(0,n.jsx)(x.G4,{value:S,muted:j,isBrowserMode:u,onMutedClick:P,onVolumeChange:I})})]})})),w=(0,_.default)("div",{target:"e8t8kqt0"})((({playerControlsVisible:e})=>[{display:"flex",position:"absolute",width:"100%",zIndex:5,bottom:0,left:0,transition:"transform .3s ease-in",flexDirection:"column",justifyContent:"flex-end",alignItems:"flex-start",gap:8,padding:"0 12px 12px 12px"},e&&{transform:"translate3d(0, -40px, 0)"}]),"label:DivBottomWrapper;"),S=(0,_.default)("div",{target:"e8t8kqt1"})({width:"100%",marginBottom:"66px"},"label:TipsBarWrapper;"),C=(0,_.default)("div",{target:"e8t8kqt2"})({display:"flex",gap:8},"label:DivLineWrapper;"),j=(0,_.default)("span",{target:"e8t8kqt3"})((({theme:e})=>[...(0,m.zy)({theme:e,typography:"H6",color:"ConstTextInverse",fontWeight:"medium"})]),"label:SpanAnchorName;"),T=(0,_.default)("span",{target:"e8t8kqt4"})((({theme:e})=>[...(0,m.zy)({theme:e,typography:"H6",color:"ConstTextInverse",fontWeight:"normal"})]),"label:SpanLiveTitle;");var I=i(48527),P=i(32388);const A=(0,_.default)("div",{target:"e1izqf4z0"})((({theme:e})=>({display:"flex",boxSizing:"border-box",height:22,padding:"1px 5px",justifyContent:"center",alignItems:"center",borderRadius:"4px",backgroundColor:e.colors.ConstTextInverse})),"label:DivTagWrapper;"),M=(0,_.default)("span",{target:"e1izqf4z1"})((({theme:e})=>[...(0,m.zy)({theme:e,typography:"H6",color:"ConstBGInverse",fontWeight:"medium"})]),"label:SpanTagText;");var L=i(25616);const D=(0,o.memo)((function(e){const{followStatus:t}=e,i=(0,L.s)(),a=(0,o.useMemo)((()=>{switch(t){case 1:return i("weblive_following_btn");case 2:return i("pm_mt_liveWeb_friend_tag");default:return""}}),[t,i]);return a?(0,n.jsx)(A,{children:(0,n.jsx)(M,{children:a})}):null})),O=(0,o.memo)((function(e){const{playerControlsVisible:t,liveInfo:i,handleEnterUserPage:a}=e,r=(0,o.useCallback)((e=>{e.stopPropagation(),null==a||a()}),[a]);return(0,n.jsxs)(w,{playerControlsVisible:t,children:[(0,n.jsx)(S,{children:(0,n.jsx)(P.e,{useButtonStyle:!0})}),(0,n.jsxs)(C,{children:[(0,n.jsx)(I.D,{needViewer:!1,isSubOnlyLive:!!i.liveSubOnly}),!!i.followStatus&&(0,n.jsx)(D,{followStatus:i.followStatus})]}),(0,n.jsx)(C,{children:(0,n.jsx)(j,{onClick:e=>r(e),children:i.nickname})}),(0,n.jsx)(C,{children:(0,n.jsx)(T,{children:i.title})})]})})),R=(0,o.forwardRef)(((e,t)=>{const{playing:i=!1,onClickPlay:a,onClickPause:r,onClickRetry:s,onOpenLiveClick:l,onEnterUserPage:d,defaultVolume:c,defaultMuted:_,onVolumeChange:m,onMutedChange:h,isBrowserMode:v=!1,showPlayControls:f=!1,liveInfo:y,isShowGuideBg:b=!1}=e,x=(0,o.useRef)(null),{xgplayer:w,playerIsPlaying:S,loading:C,mutedPlay:j,handlePlayerDestroy:T}=(0,p.F)(Object.assign(Object.assign({},e),{playerContainerRef:x,loop:!0})),I=(0,o.useCallback)((()=>{var e;null===(e=w.current)||void 0===e||e.retry(),null==s||s()}),[w,s]);return(0,o.useImperativeHandle)(t,(()=>({destroy:()=>{T()},retry:()=>{I()}}))),(0,n.jsxs)(g.qq,{onClick:l,ref:x,children:[(0,n.jsx)(u.m,{loading:C}),e.children,!b&&(0,n.jsx)(O,{playerControlsVisible:f,liveInfo:y,handleEnterUserPage:d}),(0,n.jsx)(k,{playing:i,playerIsPlaying:S,xgplayer:w,visible:f,defaultVolume:c,defaultMuted:_,mutedPlay:j,handleRetry:I,handleClickPause:r,handleClickPlay:a,onVolumeChange:m,onMutedChange:h,isBrowserMode:v})]})}));var E=i(15022);const F=(0,o.forwardRef)(((e,t)=>{const{playing:i=!1,onClickPlay:a,onClickPause:r,onClickRetry:s,onOpenLiveClick:l,onEnterUserPage:d,defaultVolume:c,defaultMuted:p,onVolumeChange:_,onMutedChange:m,isBrowserMode:h=!1,showPlayControls:v=!1,liveInfo:f,isShowGuideBg:y}=e,b=(0,o.useRef)(null),{xgplayer:x,playerIsPlaying:w,loading:S,mutedPlay:C,handlePlayerDestroy:j}=(0,E.F)(Object.assign(Object.assign({},e),{playerContainerRef:b})),T=(0,o.useCallback)((()=>{var e;null===(e=x.current)||void 0===e||e.retry(),null==s||s()}),[x,s]);return(0,o.useImperativeHandle)(t,(()=>({destroy:()=>{j()},retry:()=>{T()}}))),(0,n.jsxs)(g.qq,{onClick:l,ref:b,children:[(0,n.jsx)(u.m,{loading:S}),e.children,!y&&(0,n.jsx)(O,{playerControlsVisible:v,liveInfo:f,handleEnterUserPage:d}),(0,n.jsx)(k,{playing:i,playerIsPlaying:w,xgplayer:x,visible:v,defaultVolume:c,defaultMuted:p,mutedPlay:C,handleRetry:T,handleClickPause:r,handleClickPlay:a,onVolumeChange:_,onMutedChange:m,isBrowserMode:h})]})}));var B=i(88365),z=i(1706),U=i(12594),N=i(86387),W=i(4789),V=i(23692),H=i(73227),q=i(79289),$=i(31841),G=i(29393);const K=(0,_.default)("div",{target:"e1bmbfjz0"})({position:"relative",boxSizing:"border-box",backgroundSize:"cover",cursor:"pointer",borderRadius:"16px",zIndex:1,overflow:"hidden"},(({isBrowserMode:e,horizontal:t,isLiveHighlight:i})=>e?[Object.assign({width:"100%",height:"100%"},i&&{display:"flex",justifyContent:"center"})]:[{gridArea:"card-content",aspectRatio:t?""+1/.5625:"0.5625"},t&&{height:"unset",width:"100%"}]),"label:DivRecommendLivePlayer;"),Y=(0,_.default)("div",{target:"e1bmbfjz1"})({width:"100%",height:"100%",zIndex:50,position:"absolute",left:0,top:0},"label:DivPlayerStatus;"),Z=(0,_.default)("div",{target:"e1bmbfjz2"})({width:"100%",height:"100%",zIndex:3,position:"absolute",pointerEvents:"none",top:0,left:0},"label:DivLivePlayerMultiGuestPanelWrapper;");var J=i(84642),X=i(30247),Q=i(7162),ee=i(28913),te=i(914),ie=i(8301),ne=i(96101),oe=i(7458),ae=i(8641),re=i(88920),se=i(73713),le=i(89439),de=i(19894);const ce=(0,o.memo)((({requestId:e,liveInfo:t,isBrowserMode:i,active:u,autoplay:p=!1,loggerConfig:g,onPlayError:_,onLiveEndTimeoutStart:m,onLiveEndTimeoutEnd:h,volumeProps:v,pageType:f})=>{var y;const b=(0,o.useRef)(),x=(0,o.useMemo)((()=>null==t?void 0:t.roomID),[null==t?void 0:t.roomID]),[k,w]=(0,o.useState)(void 0),S=(0,o.useRef)(null),{sendH265Error:C}=(0,V.X)(),j=(0,J.C)({handleParentPlayError:(e,t)=>(0,a.__awaiter)(void 0,void 0,void 0,(function*(){var i,n,o,a;try{const r=null===(a=null===(o=null===(n=null===(i=(yield(0,se.N)({room_id:x})).data)||void 0===i?void 0:i.stream_url)||void 0===n?void 0:n.live_core_sdk_data)||void 0===o?void 0:o.pull_data)||void 0===a?void 0:a.stream_data;r&&w(r),C(e,t)}catch(i){null==_||_(e,t),console.error(i)}}))}),T=(0,o.useMemo)((()=>(null==t?void 0:t.coverUrl)?[t.coverUrl]:[]),[null==t?void 0:t.coverUrl]),I=(0,o.useMemo)((()=>(0,X.iU)(null==t?void 0:t.landscape)),[null==t?void 0:t.landscape]),{streamItemUrl:P,isLiveHighlight:A}=(0,o.useMemo)((()=>{var e;const i=k||(null==t?void 0:t.streamData);if((0,X.Zh)(i))return{streamItemUrl:i,isLiveHighlight:!0};{const{deviceLevel:t,networkLevel:n}=(0,l.Ee)(),o=(0,d.Li)(t,n),a=i?d.WL.getAvailableStream({stream_data:i},{targetQuality:o,direction:"up"}):null;return{streamItemUrl:null===(e=null==a?void 0:a.url)||void 0===e?void 0:e.mainFLV,isLiveHighlight:!1}}}),[null==t?void 0:t.streamData,k]),M=(0,o.useMemo)((()=>{if((null==t?void 0:t.streamData)&&!A)return d.WL.getStreamSecretKey({stream_data:t.streamData})}),[null==t?void 0:t.streamData,A]),{visible:L,handleVoiceChatPanelSeiParsed:D,voiceChannelControllerProps:O}=(0,N.q)({infoEnable:!1,playerContainerRef:S,roomInfo:{anchorId:null==t?void 0:t.ownerInfo.id,roomId:x,liveRoomMode:null==t?void 0:t.mode}}),[E]=(0,r.useAtom)(Q.J),{handleMultiGuestPanelShow:ce}=(0,ee.P)({roomId:x,active:Boolean(u)}),{handleMultiGuestSeiParsedCallback:ue,multiGuestMaskPanelProps:pe,multiGuestPanelVisible:ge}=(0,te.$)({handleMultiGuestShow:ce,linkedUsers:E.linkedUsers}),{handleMultiGuestSeiParsed:_e}=(0,ie.n)({handleMultiGuestSeiParsedCallback:ue,url:P,playMode:"fyp_preview"}),me=(0,o.useCallback)(((e,t,i)=>{e&&t&&i&&_e(e,t,i),e&&D(e)}),[_e,D]),{isFatal:he,isEnd:ve,isPaused:fe,handlePlayError:ye,handleStreamEnd:be,handleRetry:xe,handleStreamResume:ke}=(0,H.Z)({active:u,handleParentPlayError:_,roomId:x,roomStatus:null==t?void 0:t.status,playerRef:b}),{handleCancelPlay:we,isShowGuideBg:Se}=(0,le.e)({isFatal:he,isEnd:ve}),{handleOpenLive:Ce,handleEnterUserPage:je}=(0,G.z)({requestId:e,liveInfo:t,pageType:f,isLiveHighlight:A,isGuestConnection:ge,isShowGuideBg:Se}),{handleLeaveReport:Te,handlePlayingReport:Ie,handlePauseReport:Pe,handlePlayReport:Ae,handleLiveEntranceClickReport:Me,handleLiveCancelClickReport:Le,handleLiveGuideShowReport:De}=(0,q.$)({active:u,isBrowserMode:i,requestId:e,liveInfo:t,pageType:f,isLiveHighlight:A,isLivePaused:fe,isGuestConnection:ge,isShowGuideBg:Se}),Oe=(0,o.useCallback)((()=>{we(),Le()}),[we,Le]),Re=(0,o.useCallback)((()=>{Ce(),Me()}),[Me,Ce]),{playing:Ee,defaultVolume:Fe,defaultMuted:Be,showPlayControls:ze,showVolumeIcon:Ue,handleMouseEnter:Ne,handleMouseLeave:We,handlePlay:Ve,handlePause:He,handleClickPlay:qe,handleClickPause:$e,handleClickRetry:Ge,handleVolumeChange:Ke,handleMutedChange:Ye,handlePlaying:Ze}=(0,$.$)({handlePlayReport:Ae,handlePauseReport:Pe,handlePlayingReport:Ie,handleLeaveReport:Te,handleStreamResume:ke,volumeProps:v,isFatal:he,isEnd:ve,isBrowserMode:i,active:u}),{handleLoadedData:Je}=(0,oe.k)(),Xe=(0,o.useMemo)((()=>{var e,i,n;return{nickname:null===(e=null==t?void 0:t.ownerInfo)||void 0===e?void 0:e.nickname,liveSubOnly:Number(null!==(i=null==t?void 0:t.liveSubOnly)&&void 0!==i?i:0),followStatus:Number(null!==(n=null==t?void 0:t.followStatus)&&void 0!==n?n:0),title:null==t?void 0:t.title}}),[null==t?void 0:t.liveSubOnly,null===(y=null==t?void 0:t.ownerInfo)||void 0===y?void 0:y.nickname,null==t?void 0:t.title,null==t?void 0:t.followStatus]),[Qe,{openContextMenu:et}]=(0,ae.xx)((e=>e.contextMenuOpen),s.bN),{hasNonPersonalizedMenu:tt}=(0,re.cE)(),it=(0,o.useCallback)((e=>{e.preventDefault();const t=[];tt&&t.push("manage-feed"),et({location:{x:e.clientX,y:e.clientY},menuOptions:t,mediaType:"video"})}),[et,tt]);return(0,n.jsxs)(K,{isBrowserMode:i,horizontal:I,onMouseEnter:Ne,onMouseLeave:We,ref:S,isLiveHighlight:A,onContextMenu:it,children:[T.length&&(0,n.jsx)(c.p,{urls:T}),Se&&(0,n.jsx)(de.y,{handleCancelPlay:Oe,handleOpenLiveClick:Re,handleLiveGuideShowReport:De}),!he&&!ve&&(A?(0,n.jsx)(R,{isBrowserMode:i,liveInfo:Xe,ref:b,loggerConfig:g,defaultVolume:Fe,defaultMuted:Be,showPlayControls:ze,playing:Ee,autoMutedPlay:!0,autoplay:p,isShowGuideBg:Se,url:P,drmSecretKey:M,onOpenLiveClick:Re,onEnterUserPage:je,onPlayError:ye,onVolumeChange:Ke,onMutedChange:Ye,onClickPlay:qe,onClickPause:$e,onPlay:Ve,onPause:He,onPlaying:Ze,onClickRetry:Ge,onLoadedData:Je}):(0,n.jsxs)(F,Object.assign({isBrowserMode:i,liveInfo:Xe,ref:b,loggerConfig:g,defaultVolume:Fe,defaultMuted:Be,showPlayControls:ze,showVolumeIcon:Ue,showClickTips:!0,showPlayIcon:!0,showReplayIcon:!0,playing:Ee,autoMutedPlay:!0,autoplay:p,isShowGuideBg:Se,url:P,drmSecretKey:M,onOpenLiveClick:Re,onEnterUserPage:je,onPlayError:ye,onStreamEnd:be,onVolumeChange:Ke,onMutedChange:Ye,onClickPlay:qe,onClickPause:$e,onPlay:Ve,onPause:He,onSeiParsed:me,onPlaying:Ze,onClickRetry:Ge},j,{children:[L&&(0,n.jsx)(W.$,Object.assign({},O)),ge&&(0,n.jsx)(Z,{children:(0,n.jsx)(ne.y,Object.assign({},pe,{canShowUserInfo:!1}))})]}))),he&&(0,n.jsx)(Y,{children:(0,n.jsx)(B.f,{onRetryClick:xe})}),ve&&(0,n.jsx)(Y,{children:(0,n.jsx)(z.Y,{isBrowserMode:i,onTimeoutStart:m,onTimeoutEnd:h,avatarList:T,onEnterUserPage:je})}),fe&&!ge&&(0,n.jsx)(U.$,{onClick:Re})]})}));var ue=i(45285),pe=i(35374),ge=i(23500),_e=i(16501),me=i(38812);const he=(0,o.memo)((e=>{const{index:t=0,useNewCard:i}=e,o=(0,pe.b)(),{handlePlayErrorReport:a}=(0,_e.Fb)(),r=(0,ge.t4)(),s=(0,me.FS)(t);return i?(0,n.jsx)(ce,Object.assign({},e,{loggerConfig:r,active:s,autoplay:!1,volumeProps:o,onPlayError:a})):(0,n.jsx)(ue.C,Object.assign({},e,{loggerConfig:r,active:s,autoplay:!1,volumeProps:o,onPlayError:a}))}))},35374:(e,t,i)=>{"use strict";i.d(t,{b:()=>s});var n=i(40099),o=i(42983),a=i(75248),r=i(16469);function s(){const{mute:e,volume:t}=(0,o.yw)(),i=(0,a.S4)(),s=(0,n.useCallback)((e=>{r.lA.setItem("volume",e),i.setVolume(e)}),[i]),l=(0,n.useCallback)((e=>{r.lA.setItem("muted",e),i.setMute(e)}),[i]);return(0,n.useMemo)((()=>({volume:t,mute:e,onGlobalVolumeChange:s,onGlobalMuteChange:l})),[l,s,e,t])}},16501:(e,t,i)=>{"use strict";i.d(t,{Fb:()=>s});var n,o=i(73580),a=i(40099),r=i(11654);function s(){const e=(0,o.Nj)(r.V$),t=(0,a.useCallback)((()=>{e.emitEvent("live_player_browser_mode_init",{},{})}),[e]),i=(0,a.useCallback)(((t,i)=>{e.emitEvent("live_player_browser_mode_error",{code:t,message:i},{})}),[e]);return(0,a.useEffect)((()=>{t()}),[t]),{handlePlayErrorReport:i}}!function(e){e.FYP="live_player_fyp_init",e.FYPError="live_player_fyp_error",e.BrowserMode="live_player_browser_mode_init",e.BrowserModeError="live_player_browser_mode_error"}(n||(n={}))},56563:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>me});var n=i(24643),o=i(46682),a=i(40099),r=i(41476),s=i(54622),l=i(25616),d=i(58305),c=i(60484),u=i(79881),p=i(67169),g=i(79983),_=i(20157),m=i(45285),h=i(4474),v=i(97397),f=i(72688),y=i(29098),b=i(11328),x=i(4538),k=i(62186),w=i(47172),S=i(72153),C=i(53439);const j=(0,k.default)("div",{target:"e1ebu80n4"})({display:"flex",justifyContent:"flex-start",alignItems:"center",height:38,cursor:"pointer"},"label:DivUserProfile;"),T=(0,k.default)("div",{target:"e1ebu80n5"})({flex:1},"label:DivProfileInfo;"),I=(0,k.default)(w.Link,{target:"e1ebu80n6"})({display:"block",textDecoration:"none","&:hover":{textDecoration:"none"}},"label:StyledProfileLink;"),P=(0,k.default)("div",{target:"e1ebu80n7"})((({theme:e})=>[(0,S.mp)({direction:e.direction,marginEnd:12})]),"label:DivAvatarContainer;"),A=(0,k.default)(C.I,{target:"e1ebu80n8"})((({theme:e})=>[(0,S.mp)({direction:e.direction,marginEnd:12}),{width:40,height:40,borderRadius:"50%",position:"relative"}]),"label:StyledProfileAvatar;"),M=(0,k.default)("div",{target:"e1ebu80n9"})((({theme:e})=>({fontSize:16,lineHeight:"22px",color:e.colors.TextPrimary,fontWeight:"bold",fontFamily:e.fontFamilies.TikTokDisplayFont,display:"inline-flex",alignItems:"center",justifyContent:"center",textDecoration:"none"})),"label:DivUniqueId;"),L=(0,k.default)("h2",{target:"e1ebu80n10"})((({theme:e})=>[(0,S.zy)({theme:e,typography:"P2",fontWeight:"bold",fontFamily:"TikTokFont",color:"TextPrimary"}),{lineHeight:"26px",fontSize:"18px",display:"block",overflow:"hidden",textOverflow:"ellipsis"}]),"label:H2UniqueId;"),D=(0,k.default)("h3",{target:"e1ebu80n11"})((({theme:e})=>[(0,S.zy)({theme:e,typography:"P3",fontWeight:"normal",fontFamily:"TikTokFont",color:"TextSecondary"}),{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}]),"label:H3Nickname;"),O=(0,k.default)("div",{target:"e1ebu80n12"})({display:"flex",alignItems:"center"},"label:DivExtraContainer;"),R=(0,a.memo)((e=>{const{avatarUri:t,uniqueId:i,nickname:o,verified:a,href:r="",avatarCircle:s=!1,loading:l,onMouseEnter:d,onMouseLeave:c}=e,u=(0,n.jsxs)(j,{children:[(0,n.jsx)(A,{src:"",size:48,skeleton:"avatar"}),(0,n.jsxs)(T,{children:[(0,n.jsx)(M,{children:(0,n.jsx)(b.EA.Title,{style:{width:140,height:24}})}),(0,n.jsx)(O,{children:(0,n.jsx)(b.EA.Title,{style:{width:160,height:15}})})]})]}),p=(0,n.jsx)(I,{to:r,target:"tiktok_live_view_window",rel:"noreferrer noopener",children:(0,n.jsxs)(j,{onMouseEnter:d,onMouseLeave:c,children:[(0,n.jsx)(P,{children:(0,n.jsx)(x.i,{size:40,needAnimation:!0,isShowLive:s,src:t})}),(0,n.jsxs)(T,{children:[(0,n.jsxs)(M,{children:[(0,n.jsx)(L,{children:i}),a&&(0,n.jsx)(y.A,{width:14,height:14,style:{margin:"0 4px"}})]}),(0,n.jsx)(O,{children:(0,n.jsx)(D,{children:o})})]})]})});return l?u:p}));var E=i(30023);const F=(0,k.default)("div",{target:"e4h3q9j0"})({flex:"0 0 544px",width:"544px",display:"flex",flexDirection:"column",padding:"32px 30px"},"label:DivLiveRoomDescriptionPanel;"),B=(0,k.default)("div",{target:"e4h3q9j1"})({margin:"16px 0",fontStyle:"normal",fontWeight:400,fontSize:16,lineHeight:"24px"},"label:DivLiveRoomDescriptionContent;"),z=(0,a.memo)((({isEnd:e=!1,liveInfo:t,requestId:i})=>{const{commonLiveParams:o}=function({liveInfo:e,isEnd:t,requestId:i}){const n=(0,a.useMemo)((()=>{var t;return{room_id:null==e?void 0:e.roomID,anchor_id:null===(t=null==e?void 0:e.ownerInfo)||void 0===t?void 0:t.id,play_mode:"browser_mode",request_id:i,enter_from_merge:"homepage_hot",live_room_mode:null==e?void 0:e.mode}}),[i,e]);return(0,a.useEffect)((()=>{t||(E.YH.handleLiveShow(Object.assign(Object.assign({},n),{enter_method:"live_head"})),E.YH.handleLiveShow(Object.assign(Object.assign({},n),{enter_method:"live_btn"})))}),[t]),{commonLiveParams:n}}({requestId:i,liveInfo:t,isEnd:e}),r=(0,a.useCallback)((e=>(0,h.stringifyUrl)({url:(0,f.G2o)({uniqueId:null==t?void 0:t.ownerInfo.uniqueId,secUid:null==t?void 0:t.ownerInfo.secUid}),query:{enter_from_merge:o.enter_from_merge,from_play_mode:o.play_mode,enter_method:e?"live_btn":"live_head"}})),[t,o]),s=(0,a.useCallback)((()=>{(null==t?void 0:t.ownerInfo.uniqueId)&&window.open(r(!0),"tiktok_live_view_window")}),[r,t]),d=(0,l.s)(),c=(0,a.useMemo)((()=>e?(0,f.fJR)({uniqueId:null==t?void 0:t.ownerInfo.uniqueId,secUid:null==t?void 0:t.ownerInfo.secUid}):r(!1)),[e,null==t?void 0:t.ownerInfo.uniqueId,null==t?void 0:t.ownerInfo.secUid,r]);return(0,n.jsxs)(F,{children:[(0,n.jsx)(R,{avatarUri:t.ownerInfo.avatarThumb,uniqueId:t.ownerInfo.uniqueId,nickname:t.ownerInfo.nickname,href:c,avatarCircle:!e,verified:t.ownerInfo.verified}),(0,n.jsx)(B,{children:t.title}),!e&&(0,n.jsx)(v.y,{buttonTheme:"primary",size:"largeNew",onClick:s,children:d("pm_web_fullpage_entry")})]})}));var U=i(35374),N=i(23500),W=i(16501),V=i(41271),H=i(90159),q=i(75248),$=i(58632),G=i(64162),K=i(4126),Y=i(93995),Z=i(57432),J=i.n(Z),X=i(23999),Q=i(26324),ee=i(8536),te=i(34360),ie=i(16680);let ne=class extends G.E{constructor(){super(),this.defaultState={isOpen:!1,url:"",isRedirectToProfilePage:!1,closeable:!1,isBannerActive:!1,bannerEnabled:!1,content:{title:"",desc:"",btnOpenText:""},iframeStyle:{},handleDownload:J(),handleLogin:J(),closeCallback:J(),loginModalShow:!1,maskCloseable:!1,userId:"",groupId:"",enterMethod:void 0,pageType:5,modalType:"",hasCheckedPeriodicLogin:!1,hasCheckedPredictionLogin:!1,hasCheckedGuestMode:!1,showLoginOnLoad:!1,isLoginOnLoadClosed:!1,redirectToHomePage:!1,isGuestMode:!1,isGuestModeUI:!1}}setCloseable(e,t){(0,ie.CP)().setCloseable(t)}setUrl(e,t){(0,ie.CP)().setUrl(t)}setLoginPath(e,t){(0,ie.CP)().setLoginPath(t)}setCloseCallback(e,t){t&&(0,ie.CP)().setCloseCallback(t)}setIsOpen(e,t){(0,ie.CP)().setIsOpen(t)}setContent(e,t){t&&(0,ie.CP)().setContent(t)}setHandleDownload(e,t){t&&(0,ie.CP)().setHandleDownload(t)}setHandleLogin(e,t){t&&(0,ie.CP)().setHandleLogin(t)}setIframeStyle(e,t){(0,ie.CP)().setIframeStyle(t)}setModalType(e,t){(0,ie.CP)().setModalType(t)}setLoginModalShow(e,t){(0,ie.CP)().setLoginModalShow(t)}setMaskCloseable(e,t){(0,ie.CP)().setMaskCloseable(t)}setPageType(e,t){(0,ie.CP)().setPageType(t)}setUserId(e,t){(0,ie.CP)().setUserId(t)}setGroupId(e,t){(0,ie.CP)().setGroupId(t)}setLastGroupId(e,t){(0,ie.CP)().setLastGroupId(t)}setEnterMethod(e,t){(0,ie.CP)().setEnterMethod(t)}setModalImage(e,t){(0,ie.CP)().setModalImage(t)}setPopupType(e,t){(0,ie.CP)().setPopupType(t)}setIsRedirectToProfilePage(e,t){(0,ie.CP)().setIsRedirectToProfilePage(t)}setIsGuestMode(e,t){(0,ie.CP)().setIsGuestMode(t)}setIsGuestModeUI(e,t){(0,ie.CP)().setIsGuestModeUI(t)}setPredictionPayload(e,t){(0,ie.CP)().setPredictionPayload(t)}setIsLinkPhoneOrEmail(e,t){(0,ie.CP)().setIsLinkPhoneOrEmail(t)}openModal(e){return e.pipe((0,ee.Z)((e=>(0,X.of)((0,ie.CP)().openModal(e)).pipe((0,ee.Z)((()=>(0,X.of)(this.noop())))))))}setCheckPeriodicLogin(e,t){(0,ie.CP)().setCheckPeriodicLogin(t)}setCheckPredictionLogin(e,t){(0,ie.CP)().setCheckPredictionLogin(t)}setCheckGuestModeLogin(e,t){(0,ie.CP)().setCheckGuestModeLogin(t)}setIsLoginOnLoadClosed(e,t){(0,ie.CP)().setIsLoginOnLoadClosed(t)}setClearShowLoginOnLoad(e){(0,ie.CP)().setClearShowLoginOnLoad()}closeModal(e){return e.pipe((0,ee.Z)((e=>(0,X.of)((0,ie.CP)().closeModal(e)).pipe((0,ee.Z)((()=>(0,X.of)(this.noop())))))))}setIsBannerActive(e,t){(0,ie.CP)().setIsBannerActive(t)}};ne.jotaiAtom=ie.JF,(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Boolean]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setCloseable",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,String]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setUrl",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,String]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setLoginPath",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Object]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setCloseCallback",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Boolean]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setIsOpen",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Object]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setContent",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Object]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setHandleDownload",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Object]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setHandleLogin",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Object]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setIframeStyle",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Object]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setModalType",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Boolean]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setLoginModalShow",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Object]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setMaskCloseable",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Number]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setPageType",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Object]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setUserId",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Object]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setGroupId",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Object]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setLastGroupId",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Object]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setEnterMethod",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Object]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setModalImage",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Object]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setPopupType",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Boolean]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setIsRedirectToProfilePage",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Boolean]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setIsGuestMode",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Boolean]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setIsGuestModeUI",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,String]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setPredictionPayload",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Boolean]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setIsLinkPhoneOrEmail",null),(0,$.__decorate)([(0,K.Mj)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Q.c]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"openModal",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Object]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setCheckPeriodicLogin",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Object]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setCheckPredictionLogin",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Object]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setCheckGuestModeLogin",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Object]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setIsLoginOnLoadClosed",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setClearShowLoginOnLoad",null),(0,$.__decorate)([(0,K.Mj)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Q.c]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"closeModal",null),(0,$.__decorate)([(0,K.h5)(),(0,$.__metadata)("design:type",Function),(0,$.__metadata)("design:paramtypes",[Object,Boolean]),(0,$.__metadata)("design:returntype",void 0)],ne.prototype,"setIsBannerActive",null),ne=(0,$.__decorate)([(0,Y.n)("LoginModal"),(0,$.__metadata)("design:paramtypes",[])],ne),ie.JF.__SIGI_MODULE__=ne,(0,te.y)(ne);var oe=i(16469),ae=i(84987);const re={id:"logo-icon-5f8ed36e",use:"logo-icon-5f8ed36e-usage",viewBox:"0 0 48 48",content:' {var i,n;if((null!==(n=null===(i=null==e?void 0:e.lastVisibleMessage)||void 0===i?void 0:i.createdAt.getTime())&&void 0!==n?n:-1) this.service.getStrangerConversationList({cursor:e?this.strangerCursor:0,limit:15}).pipe((0,h.E)(this.state$),(0,m.Z)((([{conversation:e,hasMore:t,cursor:n},{strangerConversationList:o}])=>{this.strangerCursor=n;const a=o.reduce(((e,t)=>(e[t.id]=t,e)),{}),r=e.filter((e=>!i[e.id]||!a[e.id]));if(1!==e.length&&!r.length)return s.w;const d=r.map((e=>{var t;return null!==(t=e.toParticipantUserId)&&void 0!==t?t:""}));return(0,l.of)(this.getActions().setStrangerConversationList([...e]),this.conversation.getActions().multiSetConversation({list:r,isStranger:!0}),this.getActions().setHasMoreStranger(t),this.getActions().getMultiUsersByUids({uidList:d}))})),(0,v.Z)(t.length?this.noop():this.getActions().setListLoading(!0)),(0,y.q)(this.getActions().setListLoading(!1))))))}getMultiUsersByUids(e){return e.pipe((0,h.E)(this.messageUser.state$,this.state$),(0,f.p)((([{uidList:e,isGetRecentUsers:t},{users:i},{otherUid:n}])=>{const{pathname:o}=location;if(!(0,S.tO)(o)&&5===(0,S.M5)(o))return s.w;const a=String(e),r=e.filter((e=>void 0===(null==i?void 0:i[e])));return e.length&&this.recentUids!==a&&r.length?(this.recentUids=a,this.service.getMultiUsersByUids(a).pipe((0,f.p)((i=>{var o;const a=null!==(o=null==i?void 0:i.userMap)&&void 0!==o?o:{},r=[],s=[],d=[],c=e.map((e=>{if(a[e])return n===e&&(0,D.Hz)("user-select",{uid:e,uniqueId:a[e].uniqueId,from:"message-init"}),a[e].id=e,r.push(a[e].uniqueId),s.push(a[e].nickname),d.push(e),a[e];a[e]=null})).filter((e=>e));if(!c.length)return(0,l.of)(this.noop(),this.getActions().setListLoading(!1));(0,x.py)().multiSetUsers(a);const u=[this.user.getActions().multiSetUser(c)];return t&&u.push(this.getActions().updateRecentUserList({uniqueIdList:r,nicknameList:s,uidList:d})),(0,l.of)(...u)})),(0,y.q)(this.getActions().setListLoading(!1)))):(0,l.of)(this.getActions().setListLoading(!1))})),(0,C.n)({}))}getFollowingUserListWithCanShare(e){return e.pipe((0,h.E)(this.state$),(0,_.T)((([{count:e},t])=>Object.assign(Object.assign({},t.followingUser),{count:e}))),(0,m.Z)((e=>{var{list:t,nicknameList:i,uidList:o}=e,a=(0,n.__rest)(e,["list","nicknameList","uidList"]);return this.service.getFollowingUserListWithCanShare(a).pipe((0,f.p)((e=>{const{status_code:n,max_time:a,min_time:r,followings:s=[],has_more:d}=e,c=[],u=[],p=[];if(0===n){let e=[];return s&&(e=s.map((e=>{var t;return c.push(null!==(t=e.unique_id)&&void 0!==t?t:""),u.push(e.nickname),p.push(e.uid),(0,j.RS)(e)}))),(0,l.of)(this.getActions().updateFollowingUserList({list:[...t,...c],nicknameList:[...i,...u],uidList:[...o,...p],maxCursor:a,minCursor:r,hasMore:Boolean(d)}),this.user.getActions().multiSetUser(null!=e?e:[]),this.getActions().setFollowingLoading(!1))}return(0,l.of)(this.noop(),this.getActions().setFollowingLoading(!1))})),(0,v.Z)(this.getActions().setFollowingLoading(!0)))})),(0,C.n)({}))}sendMessage(e){return e.pipe((0,h.E)(this.conversation.state$),(0,m.Z)((([{uid:e,relation:t=0,type:i,content:n,hasConversation:o,chatType:a,messageType:r,convId:d,fileInfo:c},{friends:u,strangers:p}])=>{var g;return(o?(0,l.of)({type:i,content:n,conversation:null!==(g=u[d])&&void 0!==g?g:p[d],fileInfo:c}):this.service.createConversation({uid:e}).pipe((0,_.T)((({payload:e})=>({type:i,content:n,conversation:null!=e?e:{},fileInfo:c}))),(0,C.n)({}))).pipe((0,m.Z)((({type:e,content:t,conversation:i,fileInfo:n})=>this.service.createMessage({conversation:i,type:e,content:JSON.stringify(t),fileInfo:n}))),(0,m.Z)((e=>49999===i?s.w:this.service.sendMessage({message:e}))),(0,m.Z)((i=>{var n,o,s;const{success:d,checkMsg:c,payload:u}=i,p=[this.getActions().setSendMessageStatus({isFailed:!1,isLoading:!1}),this.getActions().addSentMessageSuccessCount()];return d?(k.w.handleSendMessage({chat_type:null!=a?a:"private",conversation_id:null!==(n=null==u?void 0:u.conversationId)&&void 0!==n?n:"",message_type:null!=r?r:"share_video",relation_tag:t,to_user_id:e}),(0,D.Hz)("message-send",{uid:e})):(k.w.handleFailSendMessage({chat_type:null!=a?a:"private",conversation_id:null!==(o=null==u?void 0:u.conversationId)&&void 0!==o?o:"",message_type:null!=r?r:"share_video",error_code:null!==(s=JSON.parse(null!=c?c:"{}").status_code)&&void 0!==s?s:-1,relation_tag:t,to_user_id:e}),(null==u?void 0:u.clientId)&&p.push(this.conversation.getActions().addFailedMessage({[null==u?void 0:u.clientId]:null!=c?c:"null"}))),(0,l.of)(...p)})),(0,b.W)((()=>(k.w.handleFailSendMessage({chat_type:null!=a?a:"private",conversation_id:"",message_type:null!=r?r:"share_video",error_code:-1,relation_tag:t,to_user_id:e}),(0,l.of)(this.getActions().setSendMessageStatus({isFailed:!0,isLoading:!1}))))))})),(0,C.n)({}),(0,v.Z)(this.getActions().setSendMessageStatus({isFailed:!1,isLoading:!1})))}batchSendMessages(e){return e.pipe((0,h.E)(this.conversation.state$),(0,m.Z)((([{uid:e,relation:t=0,hasConversation:i,chatType:n,convId:o,batchList:a},{friends:r,strangers:s}])=>{var d;return(i?(0,l.of)({conversation:null!==(d=r[o])&&void 0!==d?d:s[o],batchList:a}):this.service.createConversation({uid:e}).pipe((0,_.T)((({payload:e})=>({conversation:null!=e?e:{},batchList:a}))),(0,C.n)({}))).pipe((0,m.Z)((({conversation:i,batchList:o})=>(0,c.H)(o).pipe((0,u.H)((e=>{const{type:t,content:n,fileInfo:o}=e;return this.service.createMessage({conversation:i,type:t,content:JSON.stringify(n),fileInfo:o}).pipe((0,_.T)((t=>({message:t,messageParams:e}))))})),(0,m.Z)((({message:e,messageParams:t})=>this.service.sendMessage({message:e}).pipe((0,_.T)((e=>({res:e,messageParams:t})))))),(0,m.Z)((({res:i,messageParams:o})=>{var a,r,s,d;const{success:c,checkMsg:u,payload:p,statusCode:g,statusMsg:_,innerError:m}=i,h=[this.getActions().addSentMessageSuccessCount(),this.conversation.getActions().setSendingProgress({messageId:null!==(a=null==p?void 0:p.clientId)&&void 0!==a?a:"",sendingProgress:{finished:!0}})],v=[],f={chat_type:null!=n?n:"private",conversation_id:null!==(r=null==p?void 0:p.conversationId)&&void 0!==r?r:"",message_type:null!==(s=o.messageType)&&void 0!==s?s:"default",relation_tag:t,to_user_id:e};if(c)k.w.handleSendMessage(f),(0,D.Hz)("message-send",{uid:e});else{(null==p?void 0:p.clientId)&&v.push(this.conversation.getActions().addFailedMessage({[p.clientId]:null!=u?u:"null"}));const e=Object.assign(Object.assign({},f),{error_code:null!==(d=JSON.parse(null!=u?u:"{}").status_code)&&void 0!==d?d:-1,status_code:null!=g?g:-1,status_msg:null!=_?_:""});k.w.handleFailSendMessage(e),this.slardar.handleSendMediaFail(Object.assign(Object.assign({},e),{inner_error:`${m}`}))}return(0,l.of)(...h,...v)})),(0,b.W)((()=>(k.w.handleFailSendMessage({chat_type:null!=n?n:"private",conversation_id:"",message_type:"media",error_code:-1,relation_tag:t,to_user_id:e}),(0,l.of)(this.getActions().setSendMessageStatus({isFailed:!0,isLoading:!1})))))))))})),(0,C.n)({}),(0,v.Z)(this.getActions().setSendMessageStatus({isFailed:!1,isLoading:!1})))}};(0,n.__decorate)([(0,a.Mj)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[p.c]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"initSDK",null),(0,n.__decorate)([(0,a.Mj)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[p.c]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"initWebDMLocalStorage",null),(0,n.__decorate)([(0,a.Mj)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[p.c]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"closeMediaSafeTip",null),(0,n.__decorate)([(0,a.Mj)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[p.c]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"closeMediaSelectionTip",null),(0,n.__decorate)([(0,a.Mj)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[p.c]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"saveVideoPlayerVolume",null),(0,n.__decorate)([(0,a.Mj)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[p.c]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"startRefreshMessage",null),(0,n.__decorate)([(0,a.h5)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[Object,Number]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"setMessageCount",null),(0,n.__decorate)([(0,a.h5)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[Object,Object]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"setConversationMap",null),(0,n.__decorate)([(0,a.h5)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[Object,Array]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"setConversationList",null),(0,n.__decorate)([(0,a.h5)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[Object,Array]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"setAllConversationList",null),(0,n.__decorate)([(0,a.h5)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[Object,Array]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"setStrangerConversationList",null),(0,n.__decorate)([(0,a.h5)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[Object,Boolean]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"setHasMoreStranger",null),(0,n.__decorate)([(0,a.h5)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[Object,Boolean]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"setListLoading",null),(0,n.__decorate)([(0,a.h5)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[Object,Object]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"updateRecentUserList",null),(0,n.__decorate)([(0,a.h5)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[Object,Object]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"updateFollowingUserList",null),(0,n.__decorate)([(0,a.h5)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[Object,Boolean]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"setFollowingLoading",null),(0,n.__decorate)([(0,a.h5)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[Object,Array]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"setUidList",null),(0,n.__decorate)([(0,a.h5)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[Object]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"addSentMessageSuccessCount",null),(0,n.__decorate)([(0,a.h5)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[Object,Object]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"setSendMessageStatus",null),(0,n.__decorate)([(0,a.h5)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[Object,String]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"setOtherUid",null),(0,n.__decorate)([(0,a.h5)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[Object,Boolean]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"setInitialized",null),(0,n.__decorate)([(0,a.h5)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[Object,Boolean]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"setIsMediaSafeTipShown",null),(0,n.__decorate)([(0,a.h5)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[Object,Boolean]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"setIsMediaSelectionTipShown",null),(0,n.__decorate)([(0,a.h5)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[Object,Number]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"setVideoPlayerVolume",null),(0,n.__decorate)([(0,a.Mj)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[p.c]),(0,n.__metadata)("design:returntype",p.c)],U.prototype,"handleImEvent",null),(0,n.__decorate)([(0,a.Mj)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[p.c]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"startConversationChange",null),(0,n.__decorate)([(0,a.Mj)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[p.c]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"getMoreConversationList",null),(0,n.__decorate)([(0,a.Mj)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[p.c]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"getConversationListWithFilter",null),(0,n.__decorate)([(0,a.Mj)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[p.c]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"getStrangerPreview",null),(0,n.__decorate)([(0,a.Mj)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[p.c]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"getStrangerConversationList",null),(0,n.__decorate)([(0,a.Mj)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[p.c]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"getMultiUsersByUids",null),(0,n.__decorate)([(0,a.Mj)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[p.c]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"getFollowingUserListWithCanShare",null),(0,n.__decorate)([(0,a.Mj)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[p.c]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"sendMessage",null),(0,n.__decorate)([(0,a.Mj)(),(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[p.c]),(0,n.__metadata)("design:returntype",void 0)],U.prototype,"batchSendMessages",null),U=(0,n.__decorate)([(0,r.n)("MessageModule"),(0,n.__metadata)("design:paramtypes",[A.b,I.U,P._,L,T.Z,B])],U)},17953:(e,t,i)=>{"use strict";i.d(t,{b:()=>f});var n,o=i(58632),a=i(7672),r=i(4474),s=i(69239),l=i(68628),d=i(23999),c=i(2668),u=i(82970),p=i(9543),g=i(35572),_=i(8536),m=i(27042),h=i(55099),v=i(26325);!function(e){e[e.NotAvailable=0]="NotAvailable",e[e.Start=1]="Start",e[e.Error=2]="Error",e[e.Succeeded=3]="Succeeded"}(n||(n={}));let f=class{constructor(e){this.fetch=e,this.retryTime=0,this.hasMore$=new s.B,this.options$=new s.B,this.init$=this.options$.pipe((0,g.p)((e=>{let t,n;return(0,l.H)(Promise.all([i.e(4488),i.e(3305),i.e(6706),i.e(8904),i.e(1960),i.e(4835),i.e(6483),i.e(759),i.e(4685),i.e(694),i.e(4714),i.e(1377),i.e(1798)]).then(i.bind(i,15226)).then((i=>{const{im_proto:o,ExtensionPlugin:a,StrangerPlugin:r,MultimediaPlugin:s,MetricsPlugin:l}=i;return e.authType=o.AuthType.SESSION_AUTH,n=i,t=new n.BytedIM(e,[a,r,s,l]),this.instance=t,this.sdk=n,t.init()})).then((i=>({result:i,instance:t,sdk:n,options:e}))).catch((i=>(console.error(`[IM SDK] init failed, e=${i}`),{result:2,instance:t,sdk:n,options:e}))))})),(0,_.Z)((({result:e,instance:t,sdk:i,options:n})=>{const o=[i.IMEvent.ConversationChange,i.IMEvent.MessageSend,i.IMEvent.ReceiveNewMessage,i.IMEvent.MessageDelete,i.IMEvent.MessagePropertyUpsert,i.IMEvent.RefreshMessage,i.IMEvent.MessageUpsert];return t?(o.forEach((e=>{t.event.subscribe(e,(t=>{var o;n.eventListener({event:e,params:t,sdk:i,uid:null!==(o=n.userId)&&void 0!==o?o:""})}))})),(0,d.of)({instance:t,sdk:i,options:n})):(0,c.$)((()=>new Error(`[IM SDK] init failed with initResult=${e}`)))}))),this.refreshMessage$=(0,u.z)([this.init$,(0,p.Y)(360)]).pipe((0,_.Z)((([{instance:e,sdk:t,options:i}])=>(0,l.H)(e.getMessagesByUserInit({inboxType:0,cursor:this.cursor}).then((({hasMore:e,cursor:n=0})=>{var o;return this.cursor=n.toString(),0===this.refreshTime&&i.eventListener({event:t.IMEvent.ConversationChange,params:{},sdk:t,uid:null!==(o=null==i?void 0:i.userId)&&void 0!==o?o:""}),this.refreshTime++,e})).catch((e=>(console.error(e),!(this.retryTime++>5))))))),(0,m.v)((e=>e))),this.cursor="0",this.refreshTime=0,this.instance={},this.sdk={}}getMessageToken(){return this.fetch.get("/api/im/reboot/misc/",{query:{aid:1988,im_token:1},baseUrlType:2})}getConversationListOnline(e){var t,i;return(0,l.H)(null===(i=(t=this.instance).getConversationListOnline)||void 0===i?void 0:i.call(t,{filter:e}))}getStrangerConversationList({cursor:e,limit:t}){var i,n;return(0,l.H)(null===(n=(i=this.instance).getStrangerConversationList)||void 0===n?void 0:n.call(i,{cursor:e,limit:t}))}createConversation({uid:e}){var t,i;return(0,l.H)(null===(i=(t=this.instance).createConversation)||void 0===i?void 0:i.call(t,{participants:e}))}createMessage({type:e,content:t,conversation:i,fileInfo:n}){var o,a,r,s;let d;if(n){const{fileType:t,fileHandler:r,width:s,height:l,onUploadProcess:c,onUploadComplete:u,onUploadError:p}=n,g=t.startsWith("image");d=null===(a=(o=this.instance).createFileMessage)||void 0===a?void 0:a.call(o,{conversation:i,type:e,content:'{"hack":"1"}',fileInfo:{type:g?"image":"video",fileHandler:r,displayType:"media",encrypt:!0,imagePreviewWidth:s,imagePreviewHeight:l,ext:g?{}:{"s:file_ext_key_video_width":`${s||0}`,"s:file_ext_key_video_height":`${l||0}`},onUploadProcess:e=>{d.then((t=>{null==c||c(t.clientId,e)}))},onUploadComplete:e=>{d.then((t=>{null==u||u(t.clientId,e)}))},onUploadError:e=>{d.then((t=>{null==p||p(t.clientId,e)}))}},scene:"private_"+(g?"image":"video")})}else d=null===(s=(r=this.instance).createMessage)||void 0===s?void 0:s.call(r,{conversation:i,type:e,content:t});return(0,l.H)(d)}sendMessage({message:e}){var t,i;return(0,l.H)(null===(i=(t=this.instance).sendMessage)||void 0===i?void 0:i.call(t,{message:e}))}setConversationSettingInfo({conversation:e,mute:t,stickOnTop:i}){var n,o;return(0,l.H)(null===(o=(n=this.instance).setConversationSettingInfo)||void 0===o?void 0:o.call(n,{conversation:e,mute:t,stickOnTop:i}))}deleteConversation({conversation:e}){var t,i;return(0,l.H)(null===(i=(t=this.instance).deleteConversation)||void 0===i?void 0:i.call(t,{conversation:e}))}deleteStrangerConversation({conversation:e}){var t,i;return(0,l.H)(null===(i=(t=this.instance).deleteStrangerConversation)||void 0===i?void 0:i.call(t,{conversation:e}))}markConversationRead({conversation:e}){var t,i;return(0,l.H)(null===(i=(t=this.instance).markConversationRead)||void 0===i?void 0:i.call(t,{conversation:e}))}markStrangerConversationRead({conversation:e}){var t,i;return(0,l.H)(null===(i=(t=this.instance).markStrangerConversationRead)||void 0===i?void 0:i.call(t,{conversation:e}))}getStrangerPreview(){var e,t;return(0,l.H)(null===(t=(e=this.instance).getStrangerPreview)||void 0===t?void 0:t.call(e,{}))}getMessagesByConversation({conversation:e}){var t,i;return(0,l.H)(null===(i=(t=this.instance).getMessagesByConversation)||void 0===i?void 0:i.call(t,{conversation:e}))}getStrangerConversationMessage({conversation:e}){var t,i;return(0,l.H)(null===(i=(t=this.instance).getStrangerConversationMessage)||void 0===i?void 0:i.call(t,{conversation:e}))}deleteMessage({message:e}){var t,i;return(0,l.H)(null===(i=(t=this.instance).deleteMessage)||void 0===i?void 0:i.call(t,{message:e}))}modifyMessageProperty({message:e,isLiked:t}){var i,n;return(0,l.H)(null===(n=(i=this.instance).modifyMessageProperty)||void 0===n?void 0:n.call(i,{message:e,modifyContent:[{operation:t?this.sdk.im_proto.OPERATION_TYPE.REMOVE_PROPERTY_ITEM:this.sdk.im_proto.OPERATION_TYPE.ADD_PROPERTY_ITEM,key:"e:love"}]}))}getMultiUsersByUids(e){return this.fetch.get("/api/im/multi_user/",{query:{aid:1988,uids:e},baseUrlType:2})}getFollowingUserListWithCanShare(e){const{minCursor:t=0,count:i=30}=e;return this.fetch.get("/api/im/spotlight/relation/",{query:{source:"web",with_fstatus:1,device_platform:"webapp_pc",count:i,max_time:t,min_time:0},baseUrlType:2})}getMultiUsersRelation({to_user_id:e,userId:t}){return this.fetch.get("/api/im/spotlight/multi_relation/",{query:{to_user_id:e,userId:t},baseUrlType:2})}feedbackMessage({shortId:e,uid:t,content:i,messageId:n,messageType:o}){const a=r.stringify({con_short_id:e,receiver_uid:t,content:i,msg_type:`${o}`,scene:"sending_ban",msg_id:n});return this.fetch.post("/aweme/v1/im/msg/feedback/",{query:{report_type:"im",appId:1233},headers:{"Content-Type":v.Ty.FORM_ENCODE},body:a})}getItemInfo(e,t){return this.fetch.get("/api/im/item_detail/",{query:{itemId:e,coverFormat:t},baseUrlType:2})}decryptMedia({message:e,fetchIndex:t}){var i,n;return(0,l.H)(null===(n=(i=this.instance).decryptMedia)||void 0===n?void 0:n.call(i,{message:e,fetchIndex:t}))}getConversationByMessage({message:e}){return(0,d.of)(this.instance.getConversation({conversationId:e.conversationId}))}getMessages({messages:e,conversation:t,upsert:i}){return(0,l.H)(this.instance.getMessages({messages:e,conversation:t,upsert:i}))}};f=(0,o.__decorate)([(0,a._)(),(0,o.__metadata)("design:paramtypes",[h.p])],f)},60026:(e,t,i)=>{"use strict";i.d(t,{I:()=>p,d:()=>u});var n=i(58632),o=i(40099),a=i(53737),r=i(84908),s=i(49057),l=i(32125);const d=90,c=30;function u(){const[{hasMoreFollowing:e,isFollowingLoading:t,isRecentChatsLoading:i},r]=(0,a.D1)((e=>({hasMoreFollowing:e.followingUser.hasMore,isFollowingLoading:e.isFollowingLoading,isRecentChatsLoading:e.isListLoading})),l.bN),s=(0,o.useCallback)(((i=c)=>(0,n.__awaiter)(this,void 0,void 0,(function*(){e&&!t&&(yield r.getFollowingUserListWithCanShare({count:i}))}))),[e,t,r]);return{hasMoreFollowing:e,isFollowingLoading:t,isRecentChatsLoading:i,loadMoreFollowing:s}}function p(){var e;const{user:t}=null!==(e=(0,s.W)((()=>["user"]),[]))&&void 0!==e?e:{},i=(0,r.nW)((e=>new Set(Object.keys(e.users))),l.bN),{recentUsers:c,followingUsers:p}=(0,a.VB)((e=>{const n=e.recentUidList.map(((t,i)=>({uid:t,uniqueId:e.recentUserList[i],nickname:e.recentUserNameList[i]}))).filter((e=>i.has(e.uniqueId)));return t&&!n.some((e=>e.uid===t.uid))&&n.unshift({uid:t.uid,uniqueId:t.uniqueId,nickname:t.nickName}),{recentUsers:n,followingUsers:e.followingUser.uidList.map(((t,i)=>({uid:t,uniqueId:e.followingUser.list[i],nickname:e.followingUser.nicknameList[i]})))}}),l.bN),g=(0,r.eI)(),{hasMoreFollowing:_,loadMoreFollowing:m}=u(),h=(0,o.useCallback)(((e=d)=>{if(!t||p.length||!_)return;const{uid:i,avatarUri:o,nickName:a}=t,r=(0,n.__rest)(t,["uid","avatarUri","nickName"]),s=Object.assign({id:i,nickname:a,verified:!1,relation:0,avatarThumb:o[0],avatarMedium:o[0],avatarLarger:o[0]},r);g.setUser(s,!1),m(e)}),[t,p.length,_,m,g]);return{recentUsers:c,followingUsers:p,initShareUsers:h}}},67260:(e,t,i)=>{"use strict";i.d(t,{x:()=>p});var n=i(24643),o=i(40099),a=i(67518),r=i(62512),s=i(84908),l=i(53737),d=i(25616),c=i(62732),u=i(55175);const p=(0,o.memo)((function({videoId:e,selectedUsers:t,onShareSuccess:i,isOverlay:p}){const[g,_]=(0,r.wO)((e=>e.hasReportedMessageInput)),m=(0,s.nW)((e=>[...t].map((t=>e.users[t])).filter((e=>void 0!==e)))),h=(0,l.VB)((e=>e.isSendMessageLoading)),{direction:v}=(0,a.u)(),[f,y]=(0,o.useState)(""),b=(0,d.s)(),x=t.size,k=x>0,w="rtl"===v,S=(0,o.useCallback)((e=>{y(e),g||_.reportMessageInput()}),[g,_]),C=(0,c.v)({selectedUserList:m,messageText:f,videoId:e}),j=(0,o.useCallback)((()=>{i()}),[i]);return(0,c.C)({selectedUserList:m,messageText:f,handleSuccess:j,isRTL:w}),(0,n.jsxs)(u.r9,{$isOverlay:p,children:[(0,n.jsx)(u.aQ,{label:"",hideLabel:!0,value:f,onChange:S,placeholder:b("support_webapp_sharing_write_a_message"),maxLength:6e3}),(0,n.jsx)(u.sb,{label:`${b("support_webapp_sharing_send_button")}${x>1?` (${x})`:""}`,disabled:!k,onClick:C,loading:h})]})}))},55175:(e,t,i)=>{"use strict";i.d(t,{MW:()=>c,Q$:()=>d,SS:()=>u,VK:()=>v,VN:()=>l,YP:()=>g,aQ:()=>b,bi:()=>_,gg:()=>h,ph:()=>p,r9:()=>y,rG:()=>m,sb:()=>x,uU:()=>f});var n=i(58542),o=i(72898),a=i(26290),r=i(893),s=i(72153);const l=(0,o.I)("div",{target:"e1pzdpcj0"})({boxSizing:"border-box",display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",padding:".375rem",gap:".5rem",cursor:"pointer",":hover":{backgroundColor:n.Tj4.UIShapeNeutral4,borderRadius:".5rem"}},"label:DivUserItemContainer;"),d=(0,o.I)("div",{target:"e1pzdpcj1"})({display:"flex",flex:1,gap:"1rem",alignItems:"center",height:"100%"},(({$isSelected:e})=>({opacity:e?.5:1})),"label:DivUserItem;"),c=(0,o.I)(a.F.Longform,{target:"e1pzdpcj2"})(s.PR,"label:TextNickname;"),u=(0,o.I)(a.F.P3,{target:"e1pzdpcj3"})(s.PR,"label:TextUniqueId;"),p=(0,o.I)(n.h$y,{target:"e1pzdpcj4"})({pointerEvents:"none",".TUXCheckbox-labelContainer":{display:"none"}},"label:StyledCheckbox;"),g=(0,o.I)("div",{target:"e1pzdpcj5"})({position:"relative",width:"100%",display:"flex",flexDirection:"column",flexGrow:1,gap:"1rem",paddingInline:"1.5rem"},"label:DivSendMessagePanelContainer;"),_=(0,o.I)("div",{target:"e1pzdpcj6"})({display:"flex",alignItems:"center",gap:"1rem","& > *:first-of-type":{flexGrow:1}},"label:DivSearchContainer;"),m=(0,o.I)(n.ZPA,{target:"e1pzdpcj7"})({"& > .TUXInputBox":{borderRadius:"100px !important"}},"label:StyledTextInput;"),h=(0,o.I)("div",{target:"e1pzdpcj8"})({display:"flex",flexDirection:"column",gap:".75rem",flexGrow:1,flexBasis:"12.5rem",overflowY:"auto","& > div:last-of-type":{paddingBottom:"1rem"},"-ms-overflow-style":"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},(({$isInputShowing:e})=>e&&{paddingBottom:"9rem","& > div:last-of-type":{paddingBottom:"0"}}),"label:DivUserListContainer;"),v=(0,o.I)(a.F.P1,{target:"e1pzdpcj9"})({marginTop:74,textAlign:"center",color:n.Tj4.UITextPlaceholder},"label:PNoResult;"),f=(0,o.I)("div",{target:"e1pzdpcj10"})({display:"flex",alignItems:"center",width:"100%",padding:".5rem",borderRadius:".5rem",backgroundColor:n.Tj4.UIShapeInfo4,insetInlineStart:"1rem",insetInlineEnd:".25rem",gap:".5rem"},"label:DivTipContainer;"),y=(0,o.I)("div",{target:"e1pzdpcj11"})({display:"flex",flexDirection:"column",alignItems:"end",gap:".25rem",padding:".25rem 1rem 1rem",minHeight:"8rem"},(({$isOverlay:e})=>e&&{padding:"1rem",boxShadow:"0px -1px 114px 0px rgba(0, 0, 0, 0.07)",backgroundColor:n.Tj4.UISheetFlat1,borderRadius:"0 0 .75rem .75rem",position:"absolute",bottom:0,insetInline:0,borderTop:`.5px solid ${n.Tj4.UIShapeNeutral3}`,paddingTop:"1rem"}),"label:DivSendContainer;"),b=(0,o.I)(n.U5X,{target:"e1pzdpcj12"})({flexGrow:1,width:"100% !important",".TUXTextAreaBox":{backgroundColor:"transparent"},".TUXTextAreaCore":{fontSize:".875rem",minHeight:"3.75rem"},textarea:{padding:0},".TUXFormField-footer":{display:"none"}},"label:StyledTextArea;"),x=(0,o.I)(n.I05,{target:"e1pzdpcj13"})({minWidth:"unset !important",width:"fit-content",paddingInline:".75rem !important",height:"2rem !important"},(0,r.K)("H4"),"label:StyledSendButton;")},42287:(e,t,i)=>{"use strict";i.d(t,{k:()=>Me});var n=i(58632),o=i(24643),a=i(67518),r=i(41271),s=i(73580),l=i(40099),d=i(56546),c=i(25754),u=i(96110),p=i(73635),g=i(75778),_=i(60072),m=i(84908),h=i(53737),v=i(32125),f=i(90159),y=i(25616),b=i(53764),x=i(88920),k=i(95481),w=i(85349),S=i(89311),C=i(50970),j=i(62732),T=i(62186),I=i(81825),P=i(29098),A=i(7751),M=i(7713),L=i(72153),D=i(84827),O=i(97397);const R=(0,T.default)("div",{target:"e140z3d00"})({position:"relative",width:400},"label:DivSendMessagePanelContainer;"),E=(0,T.default)("div",{target:"e140z3d01"})((({theme:{direction:e}})=>[{position:"absolute",top:36,cursor:"pointer"},(0,L.mp)({direction:e,end:32})]),"label:DivCloseButtonWrapper;"),F=(0,T.default)("h2",{target:"e140z3d02"})((({theme:e,theme:{direction:t}})=>[(0,L.zy)({theme:e,fontFamily:"TikTokFont",typography:"P0",fontWeight:"bold"}),{padding:"32px 0 0"},(0,L.mp)({direction:t,paddingStart:32,paddingEnd:62})]),"label:H2ModalTitle;"),B=(0,T.default)("div",{target:"e140z3d03"})((({theme:e})=>({display:"flex",alignItems:"center",width:336,height:36,margin:"24px 32px 0",borderRadius:"4px",backgroundColor:e.colors.BGPlaceholderDefault})),"label:DivSearchContainer;"),z=(0,T.default)(I.A,{target:"e140z3d04"})((({theme:{direction:e}})=>[(0,L.mp)({direction:e,marginStart:16,marginEnd:12})]),"label:StyledMagnifyingGlass;"),U=(0,T.default)("input",{target:"e140z3d05"})((({theme:e,theme:{colors:t}})=>[(0,L.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2"}),{width:240,height:22,border:"none",outline:"none",background:"transparent",color:t.TextPrimary,caretColor:t.Primary,"::placeholder":{color:t.TextTertiary}}]),"label:InputUser;"),N=(0,T.default)("div",{target:"e140z3d06"})((({theme:{direction:e}})=>[{width:16,height:16,cursor:"pointer"},(0,L.mp)({direction:e,marginStart:8})]),"label:DivClearButton;"),W=(0,T.default)("div",{target:"e140z3d07"})({minHeight:200,marginTop:24},"label:DivUserListContainer;"),V=(0,T.default)("p",{target:"e140z3d08"})((({theme:e})=>[(0,L.zy)({theme:e,fontFamily:"TikTokFont",typography:"P1",color:"TextQuaternary"}),{marginTop:74,textAlign:"center"}]),"label:PNoResult;"),H=(0,T.default)(D.R,{target:"e140z3d09"})({width:36,height:36,margin:"6px auto 12px"},"label:StyledLoading;"),q=(0,T.default)("p",{target:"e140z3d010"})((({theme:e,theme:{direction:t}})=>[(0,L.zy)({theme:e,fontFamily:"TikTokFont",typography:"P4",color:"TextTertiary"}),{marginBottom:4,fontSize:"13px"},(0,L.mp)({direction:t,marginStart:32})]),"label:PUserTitle;"),$=(0,T.default)("div",{target:"e140z3d011"})((({long:e,isSearching:t})=>({position:"relative",boxSizing:"border-box",overflowY:"auto",width:"100%",minHeight:t?e?578:472:200,maxHeight:e?578:472,paddingBottom:e?210:102,"::-webkit-scrollbar":{display:"none"}})),"label:DivUserListInnerContainer;"),G=(0,T.default)("div",{target:"e140z3d012"})((({theme:e})=>({boxSizing:"border-box",display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",padding:"8px 32px",cursor:"pointer",":hover":{backgroundColor:e.colors.BGView}})),"label:DivUserItemContainer;"),K=(0,T.default)("div",{target:"e140z3d013"})({display:"flex",flex:1,alignItems:"center",height:48},"label:DivUserItem;"),Y=(0,T.default)("div",{target:"e140z3d014"})((({theme:{direction:e}})=>(0,L.mp)({direction:e,marginStart:12})),"label:DivRightPart;"),Z=(0,T.default)("div",{target:"e140z3d015"})([{display:"flex",alignItems:"center"}],"label:DivNicknameContainer;"),J=(0,T.default)("span",{target:"e140z3d016"})((({theme:e})=>[(0,L.zy)({theme:e,fontFamily:"TikTokFont",typography:"P1",fontWeight:"bold"}),{maxWidth:220},L.PR]),"label:SpanNickname;"),X=(0,T.default)(P.A,{target:"e140z3d017"})((({theme:{direction:e}})=>[{flexShrink:0},(0,L.mp)({direction:e,marginStart:4})]),"label:StyledVerifiedBadgeColor;"),Q=(0,T.default)("p",{target:"e140z3d018"})((({theme:e})=>[(0,L.zy)({theme:e,fontFamily:"TikTokFont",typography:"P3",color:"TextTertiary"}),{maxWidth:240,marginTop:2},L.PR]),"label:PUniqueId;"),ee=(0,T.default)("div",{target:"e140z3d019"})((({theme:{direction:e}})=>[{flexShrink:0,width:22,height:22},(0,L.mp)({direction:e,marginStart:12})]),"label:DivCheckboxContainer;"),te=(0,T.default)("div",{target:"e140z3d020"})((({theme:{colors:e}})=>({position:"absolute",bottom:0,left:0,right:0,padding:"12px 32px 32px 32px",backgroundColor:e.BGPrimary,borderRadius:"0 0 8px 8px",":before":{position:"absolute",top:0,left:0,right:0,content:'""',transform:"scaleY(.5)",width:"100%",height:1,backgroundColor:e.LineReverse2}})),"label:DivSendContainer;"),ie=(0,T.default)(O.y,{target:"e140z3d021"})({width:336,height:46,marginTop:12},"label:StyledSendButton;"),ne=(0,T.default)("div",{target:"e140z3d022"})({display:"flex",marginTop:12},"label:DivMessageContainer;"),oe=(0,T.default)("textarea",{target:"e140z3d023"})((({theme:e,theme:{direction:t,colors:i}})=>[(0,L.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2"}),{display:"block",width:268,height:98,border:"none",resize:"none",outline:"none",wordBreak:"break-word",overflowWrap:"break-word",backgroundColor:i.BGPrimary,color:i.TextPrimary,caretColor:i.Primary,"::placeholder":{color:i.TextTertiary}},(0,L.mp)({direction:t,marginEnd:12})]),"label:Textarea;"),ae=(0,T.default)("img",{target:"e140z3d024"})({width:56,height:74},"label:ImgCover;"),re=(0,T.default)("div",{target:"e140z3d025"})((({theme:e,theme:{direction:t}})=>[{display:"flex",alignItems:"center",width:336,padding:"12px 0 12px",margin:"16px 32px 0",borderRadius:"4px",backgroundColor:e.colors.BGView},(0,L.mp)({direction:t,paddingStart:16,paddingEnd:4})]),"label:DivTipContainer;"),se=(0,T.default)(A.A,{target:"e140z3d026"})({width:24,height:24,flexShrink:0},"label:StyledPersonArrowLeftRight;"),le=(0,T.default)(M.A,{target:"e140z3d027"})({width:24,height:24,flexShrink:0},"label:StyledTwoPerson;"),de=(0,T.default)("div",{target:"e140z3d028"})((({theme:{colors:e}})=>({width:24,height:24,flexShrink:0,fontSize:"24px",color:e.TextSecondary})),"label:DivSubOnlyTagContainer;"),ce=(0,T.default)("p",{target:"e140z3d029"})((({theme:e,theme:{direction:t}})=>[(0,L.zy)({theme:e,fontFamily:"TikTokFont",typography:"P4",color:"TextSecondary"}),{fontSize:"13px"},(0,L.mp)({direction:t,marginStart:12})]),"label:PTip;");var ue=i(92846),pe=i(40070),ge=i(60484);const _e=(0,l.forwardRef)((function({uniqueId:e,isSelected:t=!1,searchValue:i="",selectedCount:n,onUserSelected:a},r){const s=(0,m.nW)((t=>t.users[e]),v.bN),d=(0,l.useRef)(null);(0,l.useImperativeHandle)(r,(()=>({get offsetTop(){var e,t;return null!==(t=null===(e=d.current)||void 0===e?void 0:e.offsetTop)&&void 0!==t?t:0}})),[]);const c=(0,l.useCallback)((()=>{n>=15&&!t||a(s,!t)}),[t,s,n,a]),{avatarThumb:u,nickname:p="",verified:g}=(0,ge.L$)(s),_=p.toLocaleLowerCase().indexOf(i.toLocaleLowerCase()),h=-1===_?0:i.length;if(!e||!s)return null;const f=p.slice(0,_),y=p.slice(_,_+h),b=p.slice(_+h);return(0,o.jsxs)(G,{ref:d,onClick:c,children:[(0,o.jsxs)(K,{children:[(0,o.jsx)(ue.e,{size:48,src:u}),(0,o.jsxs)(Y,{children:[(0,o.jsxs)(Z,{children:[(0,o.jsx)(J,{children:(0,o.jsxs)("span",{children:[f,(0,o.jsx)("span",{style:{color:"#fe2c55"},children:y}),b]})}),g&&(0,o.jsx)(X,{width:14,height:14,style:{verticalAlign:"middle",marginLeft:4}})]}),(0,o.jsx)(Q,{children:e})]})]}),(0,o.jsx)(ee,{children:(0,o.jsx)(pe.S,{size:22,isCircle:!1,value:t})})]})}));var me=i(58542),he=i(26290),ve=i(13759),fe=i(62512),ye=i(49057),be=i(79395),xe=i(60026),ke=i(67260),we=i(55175);const Se=(0,l.forwardRef)((function({uniqueId:e,isSelected:t=!1,searchValue:i="",selectedCount:n,onUserClick:a},r){const s=(0,m.nW)((t=>t.users[e]),v.bN),d=(0,l.useRef)(null);(0,l.useImperativeHandle)(r,(()=>({get offsetTop(){var e,t;return null!==(t=null===(e=d.current)||void 0===e?void 0:e.offsetTop)&&void 0!==t?t:0}})),[]);const c=(0,l.useCallback)((()=>{n>=15&&!t||a(e)}),[n,e,t,a]),{avatarThumb:u,nickname:p="",verified:g}=(0,ge.L$)(s);return e&&s?(0,o.jsxs)(we.VN,{ref:d,onClick:c,children:[(0,o.jsxs)(we.Q$,{$isSelected:t,children:[(0,o.jsx)(me.pfZ,{src:u,size:48,alt:e}),(0,o.jsxs)(me.rxD,{direction:"column",style:{overflow:"hidden"},children:[(0,o.jsxs)(me.rxD,{alignItems:"center",gap:".25rem",style:{overflow:"hidden"},children:[(0,o.jsx)(we.MW,{weight:"medium",children:Ce(p,i)}),g&&(0,o.jsx)(me.jgG,{size:".875rem"})]}),(0,o.jsx)(we.SS,{color:"UIText3",children:Ce(e,i)})]})]}),(0,o.jsx)(we.ph,{checked:t,label:""})]}):null}));function Ce(e,t,i){const n=e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase()),a=-1===n?0:t.length,r=e.slice(0,n),s=e.slice(n,n+a),l=e.slice(n+a);return(0,o.jsxs)(o.Fragment,{children:[r,(0,o.jsx)("span",{style:null!=i?i:{color:me.Tj4.UIShapePrimary},children:s}),l]})}const je=(0,l.memo)((function({author:e,isFriendsOnly:t,isSubOnly:i,showIcon:n}){const a=(0,y.s)();if(!((0,m.nW)((t=>{var i;return null===(i=t.users[e])||void 0===i?void 0:i.privateAccount}))||t||i))return null;let r=me.sCe,s="support_webapp_sharing_toast_2";t?(r=me.K64,s="support_webapp_sharing_toast_1"):i&&(r=me.PB_,s="subVideo_share_note");const l=`@${e}`;return(0,o.jsxs)(we.uU,{children:[n&&(0,o.jsx)(r,{autoMirror:!0,size:"1rem",color:"UIText1"}),(0,o.jsx)(he.F.P4,{children:Ce(a(s,{username:l}),l,{fontWeight:500})})]})}));var Te;!function(e){e.RECENT="recent",e.FOLLOWING="following"}(Te||(Te={}));const Ie=(0,l.memo)((function({visible:e,videoId:t,onClose:i,onKeyDown:n,isFromShare:r=!1}){var s;const{zIndex:d}=(0,a.u)(),{user:u}=null!==(s=(0,ye.W)((()=>["user"]),[]))&&void 0!==s?s:{},[p,{toggleUserSelection:g,clearUserSelection:_}]=(0,ve.Nj)((e=>e.selectedUsers),v.bN),m=(0,be.k)(t),{forFriend:x,author:k="",subVideoMeta:S}=null!=m?m:{},C=(0,h._q)(),j=(0,fe.Vv)(),[T,I]=(0,l.useState)(""),[P,A]=(0,l.useState)([]),[M,L]=(0,l.useState)([]),D=(0,l.useRef)({recent:!1,following:!1}),O=(0,l.useRef)({recent:{list:[],hasShown:[]},following:{list:[],hasShown:[]}}),R=(0,l.useCallback)(((e,t)=>i=>{O.current[t].list[e]=i}),[]),E=(0,b.M)(),F=(0,y.s)(),{hasMoreFollowing:B,isFollowingLoading:z,isRecentChatsLoading:U,loadMoreFollowing:N}=(0,xe.d)(),{recentUsers:W,followingUsers:V,initShareUsers:H}=(0,xe.I)(),q=p.size,$=W.length,G=V.length,K=q>0,Y=""!==T;(0,l.useEffect)((()=>{e&&H()}),[e,H]),(0,l.useEffect)((()=>{e||(I(""),_(),C.setSendMessageStatus({isFailed:!1,isLoading:!1}))}),[e,C,_]),(0,l.useEffect)((()=>{Promise.resolve().then((()=>{const e=O.current.recent,t=O.current.following;if($&&!D.current.recent&&(D.current.recent=!0,W.slice(0,5).forEach(((t,i)=>{var n,o;(null!==(o=null===(n=e.list[i])||void 0===n?void 0:n.offsetTop)&&void 0!==o?o:1/0)<354&&(c.w.handleShareHeadShow({user_type:"recent",rank_index:i,is_self:t.uniqueId===(null==u?void 0:u.uniqueId)?1:0,to_user_id:t.uid}),e.hasShown[i]=!0)}))),G&&!D.current.following){if(1===G&&B)return;D.current.following=!0,V.slice(0,5).forEach(((e,i)=>{var n,o;(null!==(o=null===(n=t.list[i])||void 0===n?void 0:n.offsetTop)&&void 0!==o?o:1/0)<354&&(c.w.handleShareHeadShow({user_type:"following",rank_index:i,is_self:e.uniqueId===(null==u?void 0:u.uniqueId)?1:0,to_user_id:e.uid}),t.hasShown[i]=!0)}))}})).catch((()=>{}))}),[null==u?void 0:u.uniqueId,G,$,W,B,V]),(0,l.useEffect)((()=>{E.addEventListener("keydown",(e=>{null==n||n(e)}))}),[n,E]);const Z=(0,l.useCallback)((e=>{if(I(e),!e)return;const t=[],i=[],n=e.toLocaleLowerCase();W.forEach((e=>{(e.nickname.toLocaleLowerCase().indexOf(n)>-1||e.uniqueId.toLocaleLowerCase().indexOf(n)>-1)&&t.push(e.uniqueId)})),V.forEach((e=>{t.indexOf(e.uniqueId)<0&&(e.nickname.toLocaleLowerCase().indexOf(n)>-1||e.uniqueId.toLocaleLowerCase().indexOf(n)>-1)&&i.push(e.uniqueId)})),A(t),L(i)}),[W,V]),J=(0,l.useCallback)((e=>{e.preventDefault(),e.stopPropagation()}),[]),X=(0,f._g)((e=>{if(Y)return;const t=e.currentTarget,{scrollHeight:i,scrollTop:n,clientHeight:o}=t;i-n===o&&N();const a=O.current.recent,r=O.current.following;a.list.forEach(((e,t)=>{var i;if(!a.hasShown[t]&&(null!==(i=null==e?void 0:e.offsetTop)&&void 0!==i?i:1/0) ${c(e)}{const t=d();(0,p.useEffect)((()=>{e&&e>0&&t.incrementSentBatchCount()}),[e,t])}},65986:(e,t,i)=>{"use strict";i.d(t,{i:()=>d});var n=i(57432),o=i.n(n),a=i(40099),r=i(70142);const s=(e,t)=>{if(null===t||-1===t||null===e.current)return;const i=34*t,n=34*(t+1),o=e.current.clientHeight,{scrollTop:a}=e.current;io+a&&(e.current.scrollTop=n-o)};function l(e=[],t,i=[]){return e.filter((e=>0===String(e.key).toLowerCase().indexOf(t.toLowerCase())&&i.indexOf(e)<0))}const d=({panelOpen:e,options:t,initialFocusIndex:i=-1,setPanelShow:n,panelContainerRef:d,onSelect:c,onOpen:u=o(),onClose:p=o(),stopPropagation:g=!0,isModal:_=!1,setModalShow:m=o(),trapFocusWhenPanelOpen:h=!0})=>{const[v,f]=(0,a.useState)(i),y=(0,a.useRef)(),b=(0,a.useRef)(""),x=(0,a.useCallback)((o=>{g&&o.stopPropagation();const a=(0,r.t3)(o,e,h,_);switch(a){case 2:n(!0),i>-1&&f(i),null==u||u();break;case 3:e&&n(!1),null==p||p();break;case 13:m(!1),null==p||p();break;case 4:v>-1&&(c(t[v]),n(!1),null==p||p());break;case 11:o.preventDefault();break;case 1:case 0:case 8:case 7:case 5:case 6:{const e=function(e,t,i){switch(i){case 5:return 0;case 6:return t;case 1:return Math.max(0,e-1);case 0:return Math.min(t,e+1);case 8:return Math.max(0,e-10);case 7:return Math.min(t,e+10);default:return e}}(v,t.length-1,a);f(e),s(d,e);break}case 10:try{"number"==typeof y.current&&window.clearTimeout(y.current),y.current=window.setTimeout((()=>{b.current=""}),500),b.current+=o.key;const e=function(e=[],t,i=0){const n=[...e.slice(i),...e.slice(0,i)],o=l(n,t)[0];if(o)return e.indexOf(o);if((a=t.split("")).every((e=>e===a[0]))){const i=l(n,t[0]);return e.indexOf(i[0])}return-1;var a}(t,b.current,v+1);e>-1?(f(e),s(d,e)):(window.clearTimeout(y.current),b.current="")}catch(e){console.warn("[Role=select] Type Error: ",e)}break;default:return}}),[i,_,p,u,c,t,d,e,m,n,g,h,v]);return{keyboardHandler:x,visualFocusIndex:v,setVisualFocusIndex:f}}},44606:(e,t,i)=>{"use strict";i.d(t,{mE:()=>y});var n=i(47172),o=i(10828),a=i(16891),r=i(4474),s=i(40099),l=i(58305),d=i(49057),c=i(48615),u=i(52702),p=i(45297),g=i(97046),_=i(60484);const m={m:"835599320",t:"1235601864"},h={keyword_expansion_page:"kep",find_web:"find",channel_web:"channel",others_homepage:"user"},v={},f=e=>{let t=g.fe.Web;return"paid"===e?t=g.fe.WebSem:"referral_amp"===e||"organic"===e?t=g.fe.SEO:"samsung_quick_access"===e&&(t=g.fe.SamsungQuickAccess),t},y=({downloadType:e,enterMethod:t="",id:i,search_keyword:g,search_sug_type:y,pre_click_id:b,page_id:x,defaultPid:k,referrer_url:w})=>{const{wid:S,region:C,abTestVersion:j,appType:T}=(0,_.L$)((0,d.W)((()=>["wid","region","abTestVersion","appType"]),[])),{isAndroid:I,isIOS:P}=(0,_.L$)((0,c.U)((()=>["isAndroid","isIOS"]),[])),{previous_page:A,page_name:M}=a.f.commonParams,{search:L}=(0,n.useLocation)(),D=(0,l.Hd)("webapp_launch_mode"),O=(0,u.wW)(),R=`click_wap_${e}`,E=(({page_name:e,page_id:t,id:i})=>t?`${e}_${t}`:`${e}${i?`_${i}`:""}`)({page_name:M,page_id:x,id:i});return{schemeParams:(0,s.useMemo)((()=>(({pageName:e,gdLabel:t,launchMode:i,id:n,wid:o,region:a,search_keyword:r,previous_page:s,enterMethod:l="",search_sug_type:d,pre_click_id:c,abTestVersion:u,seoABTestVersion:g,referrer_url:_})=>{var m,h;const v={page_name:e,gd_label:t,refer:i,referer:i,utm_campaign:f(i)};return n&&(v.id=n),o&&(v.wid=o),a&&p.Nd.includes(a)&&(v.awedp_require_login="normal"),r&&(v.keyword=encodeURIComponent(r),v.search_keyword=encodeURIComponent(r),v.search_type="general",v.enter_from=`${s}_web`,v.enter_method=l,v.search_sug_type=null!=d?d:"",v.pre_click_id=null!=c?c:"",v.vidab=encodeURIComponent(null!==(m=null==u?void 0:u.versionName)&&void 0!==m?m:""),v.seo_vidab=encodeURIComponent((null!==(h=null==g?void 0:g.vidList)&&void 0!==h?h:[]).join(",")),v.release=encodeURIComponent(null!=="1.0.0.123"?"1.0.0.123":""),"general_search"===e&&"discover_kw"===s&&(v.enter_from_sub="app_outside")),_&&(v.referrer_url=_),v})({pageName:E,gdLabel:R,launchMode:D,id:i,wid:S,region:C,search_keyword:g,previous_page:A,enterMethod:t,search_sug_type:y,pre_click_id:b,abTestVersion:j,seoABTestVersion:O,referrer_url:w})),[E,R,D,i,S,C,g,A,t,y,b,j,O,w]),onelinkParams:(0,s.useMemo)((()=>(({search:e,url:t,launchMode:i,gdLabel:n,defaultPid:a,appType:s,pageName:d,pageNamePrefix:c,abTestVersion:u,seoABTestVersion:p,wid:g,trafficType:_,isIOS:y,isAndroid:b,previous_page:x})=>{var k,w;let S,C,j;if("undefined"!=typeof window&&e){const t=(0,r.parse)(e);j=t.utm_campaign,S=t.utm_source,C=t.utm_medium}else if(t)try{const e=new URL(t),i=new URLSearchParams(e.search);S=i.get("source"),C=i.get("medium"),j=i.get("url_campaign")}catch(e){}const T=null!=_?_:(0,l.Hd)("webapp_original_traffic_type"),I=(0,l.Hd)("referer_url"),P=(0,l.Hd)("referer_video_id"),A=f(i),M=(({pid:e,pageName:t,previousPage:i})=>{var n,o;return"general_search"===t?`${e}_gs_${i}`:`${e}_${null!==(o=null!==(n=h[null!=t?t:""])&&void 0!==n?n:t)&&void 0!==o?o:"unknown"}`})({pid:A,pageName:c,previousPage:x}),L=y?(({appType:e,campaignName:t})=>{var i;if(!e||!m[e]||!["m","t"].includes(e))return v;const n="https://apps.apple.com/app/apple-store/id{iosAppid}?pt=118874049&ct={ct}&mt=8".replace(/{iosAppid}/g,null!==(i=m[e])&&void 0!==i?i:"").replace(/{ct}/g,t);return n?{af_ios_url:n,af_param_forwarding:"false"}:v})({abTestVersion:u,appType:s,campaignName:M}):{},D=b?{utm_campaign:M}:{},O=`${S?`source:${S};`:""}${C?`medium:${C};`:""}${j?`campaign:${j};`:""}`,R=`${I?`referer_url:${I}};`:""}${P?`referer_video_id:${P};`:""}`,E=Object.assign(Object.assign({af_ad:n,af_siteid:"mobile",pid:null!=a?a:A,c:d,af_adset:i,af_ad_id:T,vidab:encodeURIComponent(null!==(k=null==u?void 0:u.versionName)&&void 0!==k?k:""),seo_vidab:encodeURIComponent((null!==(w=null==p?void 0:p.vidList)&&void 0!==w?w:[]).join(",")),release:encodeURIComponent("1.0.0.123")},L),D);if("undefined"!=typeof window)E.canonical=`${o.C}${decodeURIComponent(location.pathname)}`;else if(t){const e=new URL(t),i=decodeURIComponent(e.pathname);E.canonical=`${o.C}${i}`}return g&&(E.wid=g),O&&(E.af_adset_id=O),R&&(E.af_channerl=R),e&&"true"===(0,r.parse)(e).is_retargeting&&(E.is_retargeting="true"),Object.keys(E).forEach((e=>{E[e]="string"==typeof E[e]?encodeURIComponent(E[e]):E[e]})),E})({search:L,launchMode:D,gdLabel:R,defaultPid:k,pageName:E,pageNamePrefix:M,abTestVersion:j,seoABTestVersion:O,wid:S,isAndroid:I,isIOS:P,appType:T,previous_page:A})),[L,D,R,k,E,M,j,O,S,I,P,T,A])}}},54343:(e,t,i)=>{"use strict";i.d(t,{a:()=>a});var n=i(48615),o=i(60484);function a(){const{isMobile:e}=(0,o.L$)((0,n.U)((()=>["isMobile"]),[]));return Boolean(e)}},10745:(e,t,i)=>{"use strict";i.d(t,{O9:()=>a,hG:()=>r,yE:()=>s});var n=i(40099),o=i(90159);function a({elemRef:e,onHitBottom:t,bottomThreshold:i=10,throttle:a=100,isFirstRender:r}){const s=(0,o._g)((()=>{if(!e.current||r)return;const{offsetHeight:n,scrollTop:o,scrollHeight:a}=e.current;n+o+i>=a&&(null==t||t())}),[i,e,t,r],a);(0,n.useEffect)((()=>{const{current:t}=e;return null==t||t.addEventListener("scroll",s),()=>{null==t||t.removeEventListener("scroll",s)}}),[e,e.current,s])}function r({elemRef:e,boundingElemRef:t,onHitBottom:i,bottomThreshold:a=10,throttle:r=100}){const s=(0,o._g)((()=>{if(!e.current)return;const{bottom:n}=e.current.getBoundingClientRect(),o=(null==t?void 0:t.current)?t.current.getBoundingClientRect().bottom:window.innerHeight;n-a<=o&&(null==i||i())}),[t,a,e,i],r);(0,n.useEffect)((()=>{var e;const i=null!==(e=null==t?void 0:t.current)&&void 0!==e?e:window;return i.addEventListener("scroll",s),()=>{i.removeEventListener("scroll",s)}}),[t,s])}function s({elemRef:e,onHitTop:t,scrollTopRef:i,throttle:a=100,isFirstRender:r,onScrollDown:s}){const l=(0,o._g)((()=>{if(!e.current||r)return;const{scrollTop:n,scrollHeight:o}=e.current,a=n<=0;if(i){const r=n<=i.current;i.current=n,a&&r&&(null==t||t(),e.current.scrollTop=e.current.scrollHeight-o)}else a&&(null==t||t());n>0&&(null==s||s())}),[e,t,r],a);(0,n.useEffect)((()=>{const{current:t}=e;return null==t||t.addEventListener("scroll",l),null==t||t.addEventListener("wheel",l),()=>{null==t||t.removeEventListener("scroll",l),null==t||t.removeEventListener("wheel",l)}}),[e,e.current,l])}},91872:(e,t,i)=>{"use strict";i.d(t,{O:()=>a});var n=i(40099),o=i(90159);function a({elementRef:e,threshold:t=1e3,onHitBottom:i,onPageBottom:a,shouldRunOnMount:r,onScroll:s}){const l=(0,n.useRef)(null),d=(0,n.useRef)(0),c=(0,n.useRef)(-1),u=(0,n.useRef)(!r),p=(0,n.useCallback)((()=>{"undefined"!=typeof window&&c.current>-1&&(window.clearInterval(c.current),c.current=-1)}),[]),g=(0,o._g)((()=>{var n,o,r,c,g,_;if(!l)return;let m,h;if(e)m=null!==(o=null===(n=e.current)||void 0===n?void 0:n.scrollTop)&&void 0!==o?o:0,h=(null!==(c=null===(r=e.current)||void 0===r?void 0:r.scrollHeight)&&void 0!==c?c:0)-(null!==(_=null===(g=e.current)||void 0===g?void 0:g.clientHeight)&&void 0!==_?_:0)-m;else{const e=document.documentElement||document.body.parentNode||document.body;m=void 0!==window.pageYOffset?window.pageYOffset:e.scrollTop,h=e.scrollHeight-m-window.innerHeight}0!==m&&(null==s||s(m)),!u.current&&h>0&&p(),h-t<=0&&d.current<=m&&(null==i||i(),!u.current&&p()),h<=-60&&m-d.current>=18&&(null==a||a()),d.current=m}),[i,t,a,e,p],100),_=(0,n.useRef)(g);return _.current=g,(0,n.useEffect)((()=>{if(r&&-1===c.current)return c.current=window.setInterval((()=>{var e;null===(e=_.current)||void 0===e||e.call(_)}),100),p}),[]),(0,n.useEffect)((()=>{var t;const i=null!==(t=null==e?void 0:e.current)&&void 0!==t?t:window;return i.addEventListener("scroll",g),()=>{i.removeEventListener("scroll",g)}}),[g,e]),l}},35014:(e,t,i)=>{"use strict";i.d(t,{J:()=>g,K:()=>p});var n=i(40099),o=i(49057),a=i(48615),r=i(60484),s=i(33805);const l=["homepage_hot","explore_page","graphic_detail","video_detail","search_video","search_user","general_search"],d=["homepage_hot"];function c(){const{user:e,region:t}=(0,r.L$)((0,o.W)((()=>["user","region"]),[])),{forceLoginSpecialRegions:i}=(0,r.L$)((0,a.U)((()=>["forceLoginSpecialRegions"]),[]));return(0,n.useMemo)((()=>Boolean(!e&&(null==i?void 0:i.includes(t)))),[i,t,e])}function u(){window&&(window.location.href=`/login?redirect_url=${(0,s.Q2)()}`)}function p(e){const t=c(),{isMobile:i=!1}=(0,r.L$)((0,a.U)((()=>["isMobile"]),[])),o=i?d:l,s=!!e&&(null==o?void 0:o.includes(e));(0,n.useEffect)((()=>{t&&s&&u()}),[e,t,s])}function g(){const e=c();return(0,n.useCallback)((()=>!!e&&(u(),!0)),[e])}},42250:(e,t,i)=>{"use strict";i.d(t,{D:()=>n});const n=e=>{const t=(null==e?void 0:e.toString())===5..toString()||(null==e?void 0:e.toString())===101..toString();return{navtab:t?"h2":void 0,desktopFooter:t?"h3":void 0,username:t?"div":void 0,description:t?"div":void 0,music:t?"div":void 0,other:t?"div":void 0}}},45009:(e,t,i)=>{"use strict";i.d(t,{W:()=>r});var n=i(49057),o=i(60484),a=i(84669);const r=()=>{const{language:e}=(0,o.L$)((0,n.W)((()=>["language"]),[]));return a.D.includes(e)}},64231:(e,t,i)=>{"use strict";i.d(t,{i:()=>o});var n=i(40099);const o=({upHandler:e,downHandler:t,confirmHandler:i,tabHandler:o})=>(0,n.useCallback)((n=>{const{keyCode:a}=n;switch(a){case 38:n.preventDefault(),e();break;case 40:n.preventDefault(),t();break;case 13:null==i||i();break;case 9:null==o||o(n)}}),[i,t,o,e])},89076:(e,t,i)=>{"use strict";i.d(t,{K:()=>c});var n=i(67823),o=i(40099),a=i(243),r=i.n(a),s=i(4929),l=i(51391),d=i(5441);function c(){const{isElectronApp:e}=(0,d.B)();return(0,o.useCallback)((({lang:t,url:i,currentLang:o,isMobile:a})=>{!function({lang:e,url:t,currentLang:i,isMobile:o}){l.j.handleLanguageChange({language:i,to_language:e,enter_method:o?"top_bar":void 0}),n.A.remove(s.WU),n.A.set(s.WU,e,{secure:!0,expires:300,domain:".tiktok.com"}),window.location.replace(t)}({lang:t,url:i,currentLang:o,isMobile:a}),e&&r().app.langChange({lang:t})}),[e])}},67169:(e,t,i)=>{"use strict";i.d(t,{CT:()=>I,TL:()=>T,Ux:()=>S,ah:()=>k,eM:()=>P,iJ:()=>b,jj:()=>x,rq:()=>w,tW:()=>j});var n=i(73580),o=i(41271),a=i(40099),r=i(48578),s=i(67353),l=i(8941),d=i(58305),c=i(25616),u=i(52333),p=i(88920),g=i(63438),_=i(11654),m=i(16469),h=i(11983),v=i(42983),f=i(75248),y=i(90341);function b({loadingThreshold:e=1e3,isCurrentVideo:t}){const[i,n]=(0,a.useState)(!1),o=(0,a.useRef)(0),r=(0,a.useCallback)((()=>{o.current&&window.clearTimeout(o.current),n(!1)}),[]),s=(0,a.useCallback)((()=>{e?(o.current&&window.clearTimeout(o.current),o.current=window.setTimeout((()=>{n(!0)}),e)):n(!0)}),[e]);return(0,a.useEffect)((()=>(t||(window.clearTimeout(o.current),n(!1)),()=>window.clearTimeout(o.current))),[t]),{loading:i,handleCanPlayWithLoading:r,handlePauseWithLoading:r,handlePlayingWithLoading:r,handleErrorWithLoading:r,handleWaitingWithLoading:s}}function x(){const[e,t]=(0,a.useState)(!0),i=(0,a.useCallback)((()=>{t(!1)}),[]),n=(0,a.useCallback)((()=>{t(!0)}),[]);return(0,a.useEffect)((()=>{const e=(0,d.Gz)(i,n);return()=>{null==e||e()}}),[n,i]),e}function k({playMode:e,itemMute:t=!1}){const i=(0,c.s)(),{mute:n,volume:o}=(0,v.yw)(),s=t||n,l=(0,f.S4)(),d=(0,p.W4)(),u=(0,a.useCallback)(((n,a="click",s,c)=>{if(t||c)return h.F.destroy(),h.F.open({content:i("music_detail_unavailable_1"),duration:3,widthType:"half"}),!1;if(r.p.handleSwitchSound(Object.assign(Object.assign({},s),{muted:n,playMode:e,enter_method:a})),r.p.handleVolumeChange({volume_to:o,click_mute:!0}),m.lA.setItem("muted",n),l.setMute(n),!n&&0===m.lA.getItem("volume")){let e=.6;"v2"===d?e=.7:"v3"===d?e=.75:"v4"===d?e=.5:"v5"===d&&(e=.4),m.lA.setItem("volume",e),l.setVolume(e)}return!0}),[l,e,d,o,i,t]);return{mute:s,volume:o,setMute:u}}function w(){const{mute:e,volume:t}=(0,v.yw)(),i=(0,f.S4)(),n=(0,a.useCallback)(((e,t)=>{m.lA.setItem("volume",e),i.setVolume(e),0===e?(m.lA.setItem("muted",!0),i.setMute(!0)):t&&(m.lA.setItem("muted",!1),i.setMute(!1))}),[i]);return{mute:e,volume:t,setVolume:n}}function S(e){var t,i;const{setMute:n,setVolume:o}=(0,f.S4)(),r=(0,p.W4)();let s=.6;"v2"===r?s=.7:"v3"===r?s=.75:"v4"===r?s=.5:"v5"===r&&(s=.4);const l=null!==(t=m.lA.getItem("muted"))&&void 0!==t?t:g.T5[e].defaultMute;s=null!==(i=m.lA.getItem("volume"))&&void 0!==i?i:s,(0,a.useEffect)((()=>{n(l),o(s)}),[])}const C="video_playback_error";function j(){const e=(0,n.Nj)(_.V$);return(0,a.useCallback)((t=>{var i,n,o;const a=null!==(n=null===(i=null==t?void 0:t.nativeEvent)||void 0===i?void 0:i.target)&&void 0!==n?n:null===(o=null==t?void 0:t.nativeEvent)||void 0===o?void 0:o.srcElement;if(a){const{error:{code:t=-1,message:i="Empty message"}={},networkState:n,readyState:o}=a;e.emitEvent(C,{code:t},{errorMessage:i,errorCode:t,readyState:o,networkState:n,isXgPlayer:"0"})}}),[e])}function T(){const e=(0,n.Nj)(_.V$);return(0,a.useCallback)((t=>{var i,n,o,a;if(t)try{const{error:r,readyState:l,networkState:d,codecType:c="h264"}=t,{code:u=-1,message:p="Empty message"}=null!=r?r:{};e.emitEvent(C,{code:u},{errorMessage:p,errorCode:String(u),readyState:String(l),networkState:String(d),hevcRobustness:null!==(i=s.p$.isHevcSupportRobustness)&&void 0!==i?i:"-100",hevcBase:null!==(n=String(s.p$.isSupportBase))&&void 0!==n?n:"-100",is_bytevc1:null!==(o=String(c.indexOf("h265")>-1?1:0))&&void 0!==o?o:"-100",cpu_core:null!==(a=String(null===navigator||void 0===navigator?void 0:navigator.hardwareConcurrency))&&void 0!==a?a:"0"})}catch(e){}}),[e])}function I(e){const t=(0,o.P)(u.k);return(0,a.useMemo)((()=>e.map((e=>{var i,n,o,a,r,s,d,c;const u=null!==(i=e.id)&&void 0!==i?i:"",p=t[u],g=null!==(o=null===(n=null==p?void 0:p.video)||void 0===n?void 0:n.bitrateInfo)&&void 0!==o?o:[];return g.length>0?g.map((t=>{var i,n,o,a;return{id:null==e?void 0:e.id,url:null!==(n=null===(i=t.PlayAddr)||void 0===i?void 0:i.UrlList)&&void 0!==n?n:null===(o=null==p?void 0:p.video)||void 0===o?void 0:o.playAddr,definition:t.GearName,bitrate:t.Bitrate||0,duration:null===(a=null==p?void 0:p.video)||void 0===a?void 0:a.duration,codecType:t.CodecType,qualityType:t.QualityType}})):[{id:null==e?void 0:e.id,url:null===(a=null==p?void 0:p.video)||void 0===a?void 0:a.playAddr,definition:(0,l.J)(null==p?void 0:p.video),bitrate:(null===(r=null==p?void 0:p.video)||void 0===r?void 0:r.bitrate)||0,duration:null===(s=null==p?void 0:p.video)||void 0===s?void 0:s.duration,codecType:(null===(d=null==p?void 0:p.video)||void 0===d?void 0:d.codecType)||"h264",qualityType:(null===(c=null==p?void 0:p.video)||void 0===c?void 0:c.qualityType)||"20"}]}))),[t,e])}const P=()=>{const e=(0,y.J3)(),t=(0,p.HL)();return(0,a.useCallback)((i=>{var n,o;const a=null!==(o=null===(n=e.getStaticPlayerUIState())||void 0===n?void 0:n.showUnmuteTooltip)&&void 0!==o&&o;if(!i||i<3||a||!t)return;const r=m.lA.getItem("unmuteTooltipTimestamp");r&&Date.now()-r<6048e5||(e.updateShowUnmuteTooltip(!0),setTimeout((()=>{e.updateShowUnmuteTooltip(!1),m.lA.setItem("unmuteTooltipTimestamp",Date.now())}),5e3))}),[])}},99129:(e,t,i)=>{"use strict";i.d(t,{K1:()=>w,M$:()=>I,Oz:()=>T,Zr:()=>C,bE:()=>P,mV:()=>S,oS:()=>j});var n,o=i(58632),a=i(5441),r=i(32862),s=i(54888),l=i(49057),d=i(71281),c=i(56070),u=i(16891),p=i(40099),g=i(34099),_=i(71828),m=i(5412),h=i(32125),v=i(93341),f=i(60484),y=i(64747),b=i(60072),x=i(41271),k=i(88920);!function(e){e[e.Normal=0]="Normal",e[e.Fast=1]="Fast",e[e.Slow=2]="Slow"}(n||(n={}));const w=()=>{var e,t;const{isElectronApp:i}=(0,a.B)(),n="undefined"==typeof window?"v1":null!==(t=null===(e=(0,r.OW)("web_on_device_ml",{vid:"v1"}))||void 0===e?void 0:e.vid)&&void 0!==t?t:"v1";return{enableOnDeviceML:"v1"!==n&&!i,isMLWithModel:("v2"===n||"v3"===n)&&"undefined"!=typeof WebAssembly,isMLWithStrategy:"v4"===n,isMLWithModelLowThreshold:"v2"===n}},S=()=>{var e;const{enablePlayerPreloadDowngradePredict:t,disablePreloadPredict:a,playerPreloadPredictStrategy:r}=(0,k.Mz)(),c=(0,v.nr)(),{playerPreloadStrategy:u}=(0,x.P)(s.$,{selector:e=>{var t,i,n,o;return{playerPreloadStrategy:null===(o=null===(n=null===(i=null===(t=e.bizContext)||void 0===t?void 0:t.config)||void 0===i?void 0:i.onDeviceMLConfig)||void 0===n?void 0:n.playerPreload)||void 0===o?void 0:o.playerPreloadStrategy}},dependencies:[]}),{abTestVersion:p}=(0,f.L$)((0,l.W)((()=>["abTestVersion"]),[])),g=null!==(e=(0,d.qt)(p,"tt_player_preload"))&&void 0!==e?e:{maxQueueCount:3,preloadTime:10},m=e=>{var t,i,o;if(e===n.Normal)return void c.updatePredictedPreloadConfig({maxQueueCount:null==g?void 0:g.maxQueueCount,preloadTime:null==g?void 0:g.preloadTime});const a=e===n.Slow?"gt_12s":"lt_12s",s=null===(i=null===(t=null==r?void 0:r.label_index_mapping)||void 0===t?void 0:t.findIndex)||void 0===i?void 0:i.call(t,(e=>e===a)),l=null===(o=null==r?void 0:r.plans)||void 0===o?void 0:o[s];console.debug("[Video Preload] Predict preload config: ",l),c.updatePredictedPreloadConfig(l)};return e=>(0,o.__awaiter)(void 0,void 0,void 0,(function*(){if(a||!u)return;const{Sibyl:r,EScene:s,EBiz:l}=yield Promise.all([i.e(6489),i.e(3305),i.e(5850)]).then(i.bind(i,90599)),d=u,c=s.VIDEO_PRELOAD,p=new r({biz:l.TIKTOK_WEB_FYP}),g=p.createStrategyEngine({abConfig:d,scene:c});g&&(g.setThresholdCallback((()=>(0,o.__awaiter)(void 0,void 0,void 0,(function*(){var i,o,a;if(t){const t=p.strategyInference({abConfig:d,scene:c});return _.F.handleModelPredict({hit:Number(t===n.Slow),scene:s.VIDEO_PRELOAD,predict_value:-1,group_id:e,threshold:-1}),m(t)}try{const{package:t="",engine_config:r={inputs:[],outputs:[]}}=null!==(i=null==d?void 0:d.preload_ml)&&void 0!==i?i:{},l=(yield p.createEngine({scene:s.VIDEO_PRELOAD,modelUrl:t,inputs:null!==(o=null==r?void 0:r.inputs)&&void 0!==o?o:[],outputs:null!==(a=null==r?void 0:r.outputs)&&void 0!==a?a:[]})).inference({features:{}}),c=g.hitThresholdValue(l),{thresholdValue:u}=g.getInferenceStrategy();console.debug("[Video Preload] Inference result: ",l,"hit: ",c),m(c?n.Slow:n.Fast),_.F.handleModelPredict({hit:Number(c),scene:s.VIDEO_PRELOAD,predict_value:l,group_id:e,model_url:t,threshold:u})}catch(e){throw m(n.Normal),e}})))),g.reportInferenceResult())}))},C=new Map,j=new Map,T=(e,t)=>{const[i,n]=(0,y.kH)((t=>{var i,n;return null!==(n=null===(i=t[e])||void 0===i?void 0:i.comments)&&void 0!==n?n:[]}),h.bN);return{comments:i,preloadCommentList:(e,i)=>(0,o.__awaiter)(void 0,void 0,void 0,(function*(){var o;if(!j.get(null==e?void 0:e.aweme_id))try{n.setCommentItem({item:{awemeId:null==e?void 0:e.aweme_id,loading:!0},itemId:null==e?void 0:e.aweme_id});const{comments:a,cursor:r,has_more:s,total:l}=yield c.h.get("/api/comment/list/",{query:Object.assign(Object.assign({},e),{count:20,aid:1988,app_language:"ja-JP",device_platform:"web_pc",current_region:"JP",fromWeb:1,enter_from:"tiktok_web"}),baseUrlType:2});j.set(e.aweme_id,{aweme_id:e.aweme_id,comments:null!==(o=a)&&void 0!==o?o:[],cursor:Number(r),has_more:Boolean(s),total:Number(l),fetch_type:"preload_by_ml"}),m.ao.handleCommentPreload({play_mode:t,group_id:e.aweme_id,preload_type:i})}catch(e){}finally{n.setCommentItem({item:{awemeId:null==e?void 0:e.aweme_id,loading:!1},itemId:null==e?void 0:e.aweme_id})}}))}},I=()=>{const e=(0,v.nr)();let t=null;(0,p.useEffect)((()=>((0,o.__awaiter)(void 0,void 0,void 0,(function*(){var e,n;if(!u.f.dataCollectionEnabled)return;const{Observer:o,EBiz:a}=yield Promise.all([i.e(6489),i.e(3305),i.e(5850)]).then(i.bind(i,4135)),r=(0,g.V)();t=new o({biz:a.TIKTOK_WEB_FYP,teaConfig:{teaInstance:u.f.getInstance(),channel_domain:null==r?void 0:r.tea,channel_type:null!==(e=null==r?void 0:r.teaChannelType)&&void 0!==e?e:"tcpy",channel:null!==(n=null==r?void 0:r.teaChannel)&&void 0!==n?n:"va"}}),null==t||t.observe()})),()=>{null==t||t.destroy(),e.updatePredictedPreloadConfig({})})),[])},P=(e,t)=>{var i,n;return t<0||t>=(null==e?void 0:e.length)?[]:(null!==(n=null===(i=null==e?void 0:e.slice)||void 0===i?void 0:i.call(e,t+1,t+5))&&void 0!==n?n:[]).map((e=>(0,b.ud)().getStaticItem(e))).map((e=>{var t;const{video:i,statsV2:n,id:o}=(0,f.L$)(e),{diggCount:a,commentCount:r,shareCount:s,playCount:l,collectCount:d}=(0,f.L$)(n);return{group_id:o,duration:null!==(t=null==i?void 0:i.duration)&&void 0!==t?t:0,like_cnt:Number(null!=a?a:0),comment_cnt:Number(null!=r?r:0),share_cnt:Number(null!=s?s:0),play_cnt:Number(null!=l?l:0),collect_cnt:Number(null!=d?d:0)}}))}},83162:(e,t,i)=>{"use strict";i.d(t,{M:()=>l,u:()=>s});var n=i(58632),o=i(40099),a=i(38771);function r(e,t,i){const{direction:n="ltr",progressRef:a,circleRef:r,barRef:s,seekCallback:l,draggingPercentCb:d,draggingStateCb:c,progressReportCallback:u,documentObjProps:p}=e,g=p||("undefined"!=typeof document?document:void 0),_=(0,o.useRef)(0),m=(0,o.useRef)(null),h=(0,o.useCallback)(((e,t="original")=>{if("number"!=typeof e)return;const n=Math.min(1,Math.max(0,e));i(n),("dragging"!==t&&"stop"!==t||n!==m.current)&&(null==d||d(n),m.current=n)}),[d,i]),v=(0,o.useCallback)(((e,t="original")=>{if(!r.current||!a.current||!s.current)return;let i;e.preventDefault(),e.stopPropagation(),null==l||l();const o="vertical"===n?a.current.getBoundingClientRect().height:a.current.getBoundingClientRect().width,{x:d,y:c,width:p,height:g}=a.current.getBoundingClientRect();switch(n){case"vertical":i=c+g-e.clientY;break;case"rtl":i=d+p-e.clientX;break;default:i=e.clientX-d}if("start"===t)switch(n){case"vertical":{const e=s.current.getBoundingClientRect().height;_.current=Math.min(1,Math.max(0,e/o));break}default:{const e=s.current.getBoundingClientRect().width;_.current=Math.min(1,Math.max(0,e/o));break}}else{if("stop"===t){const e=Math.min(1,Math.max(0,i/o)),t=_.current;null==u||u(t,e)}h(i/o,t)}}),[r,a,s,l,n,h,u]),f=(0,o.useCallback)(((e,i=!1,n=null)=>{var o;const a=null!==n?n:null!==(o=m.current)&&void 0!==o?o:t,r=a+e;let s;s=r>1||r<0?i?r>1?r-1:r+1:Math.min(1,Math.max(0,a+e)):r,null==u||u(a,s),h(s,"original")}),[t,h,u]),y=(0,o.useCallback)((e=>{null==c||c(!0),e.preventDefault(),v(e,"dragging")}),[c,v]),b=(0,o.useCallback)((e=>{null==g||g.removeEventListener("mouseup",b),null==g||g.removeEventListener("mousemove",y),v(e,"stop"),null==c||c(!1)}),[c,y,v,g]);return{bindDrag:(0,o.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),v(e,"start"),null==g||g.addEventListener("mouseup",b),null==g||g.addEventListener("mousemove",y)}),[v,b,y,g]),seek:v,seekByDelta:f}}function s(e){const{videoId:t}=e,i=(0,n.__rest)(e,["videoId"]),{duration:s,videoPercent:l,currentTime:d}=(0,a.uI)(t),{setVideoInfo:c}=(0,a.hy)(),u=r(i,l,(0,o.useCallback)((e=>c({itemId:t,videoPercent:e,currentTime:s*e,duration:s})),[s,c,t]));return Object.assign(Object.assign({},u),{duration:s,videoPercent:l,currentTime:d,setVideoInfo:c})}function l(e){const{initialPercent:t=0}=e,i=(0,n.__rest)(e,["initialPercent"]),[a,s]=(0,o.useState)(t),l=r(i,a,s);return Object.assign(Object.assign({},l),{percent:a,update:s})}},40772:(e,t,i)=>{"use strict";i.d(t,{w:()=>a});var n=i(40099),o=i(47172);function a(){const e=(0,o.useHistory)();return(0,n.useCallback)(((t,{href:i,state:n,shouldUsePush:o})=>{o&&(t.preventDefault(),e.push(i,n))}),[e])}},84872:(e,t,i)=>{"use strict";i.d(t,{x:()=>o});var n=i(40099);function o(e,t,i=!0,o=!0){return(0,n.useCallback)((t=>{32!==t.keyCode&&13!==t.keyCode||(i&&t.preventDefault(),o&&t.stopPropagation(),null==e||e())}),t)}},53438:(e,t,i)=>{"use strict";i.d(t,{Hs:()=>m,MA:()=>g,Q4:()=>f,Zd:()=>h,mx:()=>p,n5:()=>v,yy:()=>_});var n=i(40099),o=i(97071),a=i(68252),r=i(32125),s=i(79395),l=i(49057),d=i(84908),c=i(60072),u=i(99129);const p=e=>void 0!==(null==e?void 0:e.imagePost),g=e=>{var t,i;const n=p(e);return{aweme_type:n?150:0,pic_cnt:n?null===(i=null===(t=null==e?void 0:e.imagePost)||void 0===t?void 0:t.images)||void 0===i?void 0:i.length:void 0}},_=(e,t)=>{var i,o;const l=(0,s.k)(e),p=(0,d.nW)((e=>{var t;return e.users[null!==(t=null==l?void 0:l.author)&&void 0!==t?t:""]}),r.bN),{width:g=0,height:_=0,duration:m=0,ratio:h=""}=null!==(i=null==l?void 0:l.video)&&void 0!==i?i:{},v=(0,c.F3)(),f=(0,n.useMemo)((()=>Object.keys(v)),[v]),y=(0,u.bE)(f,t),{createTime:b=0,authorStats:{followerCount:x=0}={},stats:{diggCount:k=0,playCount:w=0,shareCount:S=0,commentCount:C=0,collectCount:j=0}={}}=null!=l?l:{};return{video_freshness:(0,a.QR)(Number(b)),video_duration:m,video_like_history:k,video_vv_history:w,video_share_history:S,video_comment_history:C,video_favorite_history:Number(j),video_resolution:(0,a.sG)(h),video_is_portrait:_>g?1:0,video_100k_vv:w>=1e5?1:0,video_creator_bluev:null!==(o=null==p?void 0:p.verified)&&void 0!==o&&o?1:0,video_creator_1k_follower:x>=1e3?1:0,video_creator_10k_follower:x>=1e4?1:0,video_creator_100k_follower:x>=1e5?1:0,video_next_info:JSON.stringify(y)}},m=e=>{var t;const i=(0,s.k)(e),{width:n,height:o,duration:a}=null!==(t=null==i?void 0:i.video)&&void 0!==t?t:{};return{video_width:n,video_height:o,video_duration:a}},h=({id:e,play_mode:t="one_column"})=>{var i;const{wid:n}=null!==(i=(0,l.W)((()=>["wid"]),[]))&&void 0!==i?i:{},a=(0,s.k)(e),r=null==a?void 0:a.ad_info;if(r){const e=(0,o.n5)({ad_info:r,play_mode:t});return e.ad_extra_data={user_session:n},e}},v=(e,t)=>{var i;if(t)return null!==(i=null==e?void 0:e.isPinnedItem)&&void 0!==i&&i},f=e=>{var t;return!!(null===(t=null==e?void 0:e.AnchorTypes)||void 0===t?void 0:t.some((e=>"33"===e.toString())))&&!e.video.playAddr}},33744:(e,t,i)=>{"use strict";i.d(t,{e:()=>a});var n=i(40099),o=i(93341);function a(){const e=(0,o.nr)(),t=(0,n.useCallback)((()=>{window.ttWebappFocusTime||(window.ttWebappFocusTime=Date.now(),window.ttWebappBlurTime=null)}),[]),i=(0,n.useCallback)((()=>{const t=Date.now();e.updateVideoFocusTime({blurTime:t}),window.ttWebappFocusTime=null,window.ttWebappBlurTime=t}),[e]);(0,n.useEffect)((()=>{window.ttWebappFocusTime=Date.now()}),[]),(0,n.useEffect)((()=>(window.addEventListener("blur",i),window.addEventListener("focus",t),()=>{window.removeEventListener("blur",t),window.removeEventListener("focus",i)})),[i,t])}},56879:(e,t,i)=>{"use strict";function n(e=1e3){return new Promise((t=>setTimeout(t,e)))}i.d(t,{cb:()=>n})},51069:(e,t,i)=>{"use strict";i.d(t,{V:()=>y});var n=i(40099),o=i(65603),a=i(88920);const r={onRetry:()=>console.log("click retry"),title:"",subTitle:"",dismissBtn:"",retryBtn:""};var s=i(24643),l=i(18499),d=i(84827),c=i(58305);const u=({timeout:e=2e3})=>{const[t,i]=(0,n.useState)(!1);(0,n.useEffect)((()=>{setTimeout((()=>{console.log("retry popup show"),i(!0)}),e)}));const o=(0,n.useCallback)((()=>{console.log("click retry"),i(!1),r.onRetry(),setTimeout((()=>{console.log("retry popup show"),i(!0)}),e)}),[i,e]),a=(0,n.useCallback)((()=>{console.log("click dismiss"),_.hide()}),[]);return t?(0,s.jsxs)("div",{onClick:c.Gu,style:{background:"white"},children:[(0,s.jsx)("div",{children:r.title||"title"}),(0,s.jsx)("div",{children:r.subTitle||"subTitle"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{onClick:a,children:r.dismissBtn||"Dismiss"}),(0,s.jsx)("br",{}),(0,s.jsx)("div",{onClick:o,children:r.retryBtn||"Retry"})]})]}):null},p=({retry:e,retryTimeout:t})=>(0,s.jsxs)("div",{children:[e&&(0,s.jsx)(u,{timeout:t}),(0,s.jsx)(d.R,{center:!0})]});let g=null;const _={show:e=>l.render((0,s.jsx)(p,{retry:null==e?void 0:e.retry,retryTimeout:null==e?void 0:e.retryTimeout}),(g||(g=document.createElement("div"),g.id=m,g.style.cssText="position: fixed; display: flex; align-items: center; justify-content: center;z-index: 4000; top: 0; right: 0; bottom: 0; left:0;background-color: rgba(0,0,0,0.5)",document.body.appendChild(g),g.addEventListener("click",(e=>{e.target.getAttribute("id")===m&&_.hide()}))),g)),hide:()=>{g&&(document.body.removeChild(g),g=null)}},m="navigation-loading",h=e=>{const{showLoading:t}=(0,a.X$)();return((e,t=!1)=>function(i,n){var o;t&&(o={retry:!1,retryTimeout:2e3},_.show(o),document.addEventListener("visibilitychange",(()=>{_.hide()})),r.onRetry=()=>e(i,n)),e(i,n)})(e,t)},v="https://www.tiktok.com/download-link/ol",f={[`${v}/bIdt`]:"https://snssdk1233.onelink.me/bIdt",[`${v}/BAuo`]:"https://snssdk1180.onelink.me/BAuo",[`${v}/4P4E`]:"https://snssdk473824.onelink.me/4P4E",[`${v}/EGgf`]:"https://snssdk473824.onelink.me/EGgf"},y=()=>{const{af:e}=(0,o.rN)(),t=f,i=(0,n.useCallback)(((e,i)=>{var n;let o=e;Object.keys(t).forEach((e=>{o=o.replace(e,t[e])}));const a=new URL(o);if(a.searchParams.has("scheme_url")){const e=a.searchParams.get("scheme_url");a.searchParams.delete("scheme_url");const t=["af_dp","tt_target","deep_link_value"];for(const i of t)a.searchParams.has(i)&&""===a.searchParams.get(i)&&a.searchParams.set(i,e)}const r=new URLSearchParams(a.search);for(const e of["dl","short_dl"]){let i=null!==(n=r.get(e))&&void 0!==n?n:"";i&&(Object.keys(t).forEach((e=>{i=i.replace(e,t[e])})),r.set(e,i))}var s;a.search=r.toString(),s=a.toString(),i?i(s):window.location.href=s}),[t]),a=h(i);if(e)return a}},27374:(e,t,i)=>{"use strict";i.d(t,{p:()=>u});var n=i(40099),o=i(31578),a=i(83238),r=i(35267);const s=(e="stable",t)=>"experimental"===e?(e=>{const{os:t,browserName:i}=null!=e?e:{},{userAgent:n}=(0,r.T6)();if("android"!==(null!=t?t:(0,o.R0)(n)))return{};const s=null!=i?i:(0,a.Y0)(n);if([a.mC["Samsung Browser"],a.mC["Chrome Webview"],a.mC.Line,a.mC["Opera Mobile"],a.mC["vivo Browser"],a.mC.Snapchat].includes(s))return{experimentalSkipSchemes:!0,experimentalUseAppLink:!1,experimentalUseBetterAppLink:!1,disableAfdp:!1,fallbackURLParams:{af_android_store_csl:"t"}};if([a.mC.Facebook,a.mC["Facebook Lite"],a.mC["Facebook Messenger"],a.mC["Facebook Messenger Lite"],a.mC["Instagram App"]].includes(s)){const e=[a.mC.Facebook,a.mC["Instagram App"]].includes(s);return{experimentalSkipSchemes:!0,experimentalUseAppLink:!1,experimentalUseBetterAppLink:!1,disableAfdp:e,fallbackURLParams:{af_android_store_csl:"t"},experimentalFallbackTemplateURLParams:e?{deep_link_value:"{{schema}}"}:void 0}}return{experimentalSkipSchemes:!1,experimentalUseAppLink:!0,experimentalUseBetterAppLink:!1,disableAfdp:!1}})(t):(e=>{const{os:t,browserName:i}=null!=e?e:{},{userAgent:n}=(0,r.T6)();if("android"!==(null!=t?t:(0,o.R0)(n)))return{};const s=null!=i?i:(0,a.Y0)(n);if([a.mC["Samsung Browser"],a.mC["Chrome Webview"],a.mC.Line,a.mC["Opera Mobile"],a.mC["vivo Browser"],a.mC.Snapchat].includes(s))return{experimentalSkipSchemes:!0,experimentalUseAppLink:!1,experimentalUseBetterAppLink:!1,disableAfdp:!1,fallbackURLParams:{af_android_store_csl:"t"}};if([a.mC.Facebook,a.mC["Facebook Lite"],a.mC["Facebook Messenger"],a.mC["Facebook Messenger Lite"],a.mC["Instagram App"]].includes(s)){const e=[a.mC.Facebook,a.mC["Instagram App"]].includes(s);return{experimentalSkipSchemes:!0,experimentalUseAppLink:!1,experimentalUseBetterAppLink:!1,disableAfdp:e,fallbackURLParams:{af_android_store_csl:"t"},experimentalFallbackTemplateURLParams:e?{tt_target:"{{schema}}"}:void 0}}return{experimentalSkipSchemes:!1,experimentalUseAppLink:!0,experimentalUseBetterAppLink:!1,disableAfdp:!1}})(t);var l=i(20101),d=i(73282),c=i(57431);function u(){return(0,n.useMemo)((()=>function(){var e,t,i;const n=(0,c.x)().abTestVersion,u="v0"!==(null!==(i=null===(t=null===(e=null==n?void 0:n.parameters)||void 0===e?void 0:e.seo_jump_optimization)||void 0===t?void 0:t.vid)&&void 0!==i?i:"v0"),{userAgent:p,referrer:g}=(0,r.T6)(),_=(0,o.R0)(p),m=(0,a.Y0)(p,g),h=s("stable",{os:_,browserName:m});return h.experimentalUseAppLink&&(h.experimentalUseBetterAppLink=!0),u?{providerProps:Object.assign({enableApiOptimization:!0,checkOpenTime:50},h),withDefaultHrefPropsFn:e=>e?"enhance":void 0,defaultHrefFn:l.D}:{providerProps:{enableApiOptimization:!0,checkOpenTime:50},withDefaultHrefPropsFn:e=>!!e||void 0,defaultHrefFn:d.Ac}}()),[])}},42983:(e,t,i)=>{"use strict";i.d(t,{O2:()=>a,yw:()=>o});var n=i(75248);const o=()=>({mute:(0,n.i3)(),volume:(0,n.R4)()}),a=e=>{const{mute:t,volume:i,playing:o}=(0,n.Jz)((t=>({mute:e||t.mute,volume:t.volume,playing:t.playing})));return{mute:t,volume:i,playing:o}}},38812:(e,t,i)=>{"use strict";i.d(t,{BL:()=>r,CW:()=>d,FS:()=>a,Y:()=>l,fb:()=>o,pI:()=>s});var n=i(93341);const o=(e,t,i)=>(0,n.MY)((n=>{var o;return(null===(o=n.currentVideo)||void 0===o?void 0:o.mode)===e&&n.currentVideo.id===t&&n.currentVideo.index===i})),a=e=>{const t=(0,n.nU)(e),i=(0,n.RT)();return t&&0===i},r=()=>{var e,t,i;return null!==(i=null===(t=null===(e=(0,n.LM)().getStaticPlayerState())||void 0===e?void 0:e.currentVideo)||void 0===t?void 0:t.index)&&void 0!==i?i:0},s=()=>{var e,t,i;return null!==(i=null===(t=null===(e=(0,n.LM)().getStaticPlayerState())||void 0===e?void 0:e.prevVideo)||void 0===t?void 0:t.index)&&void 0!==i?i:0},l=()=>{var e,t,i;return null!==(i=null===(t=null===(e=(0,n.LM)().getStaticPlayerState())||void 0===e?void 0:e.currentVideo)||void 0===t?void 0:t.id)&&void 0!==i?i:"0"},d=()=>{var e,t,i;return null!==(i=null===(t=null===(e=(0,n.LM)().getStaticPlayerState())||void 0===e?void 0:e.prevVideo)||void 0===t?void 0:t.id)&&void 0!==i?i:"0"}},55462:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>d,rF:()=>l,sZ:()=>c,yf:()=>s});var n=i(73580),o=i(40099),a=i(11654),r=i(23721);function s(){const{enable:e=!0,enableHeadComponent:t,enableInlineScript:i,enableUseSlardarPageViewHook:n}=(0,o.useContext)(r.ug);return{enable:e,enableHeadComponent:null!=t?t:e,enableInlineScript:null!=i?i:e,enableUseSlardarPageViewHook:null!=n?n:e}}function l({pid:e}){const t=(0,n.Nj)(a.V$),{enableUseSlardarPageViewHook:i}=s();(0,o.useEffect)((()=>{i&&(t.config({pid:e}),t.start(e))}),[e,t,i])}function d(){return(0,n.Nj)(a.V$)}function c(){const{enable:e}=s();return e}},70142:(e,t,i)=>{"use strict";i.d(t,{ke:()=>o,t3:()=>n});const n=(e,t,i=!0,n=!1)=>{const{keyCode:o,altKey:a,ctrlKey:r,metaKey:s,key:l}=e;if(!t&&[13,32,38,40].includes(o))return 2;if(!t&&n&&27===o)return 13;if(8===o||144===o||1===l.length&&32!==o&&!a&&!r&&!s)return t?10:2;if(t)switch(o){case 38:return a?4:1;case 40:return a?12:0;case 27:return 3;case 13:case 32:return 4;case 33:return 8;case 34:return 7;case 36:return 5;case 35:return 6;case 9:return i?11:4;default:return 12}return 12},o=e=>{try{const t=e.querySelectorAll('a[href], button, input, textarea, details, [tabindex]:not([tabindex="-1"])');return Array.from(t).filter((e=>!e.hasAttribute("disabled")&&!e.getAttribute("aria-hidden")&&e.clientWidth>0))}catch(e){return console.warn("[A11y] no focusable element found: ",e),[]}}},82902:(e,t,i)=>{"use strict";i.d(t,{k:()=>o});var n=i(58632);const o=e=>(0,n.__awaiter)(void 0,void 0,void 0,(function*(){const{cors:t,downloadAddr:i,fileName:n}=e;try{const e=yield fetch(i,t?{mode:"cors",credentials:"include"}:{}),o=yield e.blob(),a=window.URL.createObjectURL(o),r=document.createElement("a");return r.href=a,n&&(r.download=n),document.body.appendChild(r),r.click(),setTimeout((()=>{document.body.removeChild(r),window.URL.revokeObjectURL(a)}),0),!0}catch(e){return!1}}))},34873:(e,t,i)=>{"use strict";i.d(t,{$L:()=>l,CX:()=>u,I$:()=>d,Vj:()=>p,WS:()=>s,cv:()=>a,iu:()=>g,m1:()=>o,sB:()=>b,xs:()=>c});var n=i(63410);function o(){return{appkey:"tiktok-web",app_key:"tiktok-web",aid:1284,app_name:"tiktok_web",iid:"0"}}function a(e){return e?e.toLocaleLowerCase().split("-")[0].replace("pt","pt_BR").replace("zh","zh-TW"):"en"}function r(e){var t;const i=e.EntranceShowType;return{id:e.FaqId,name:e.Name,value:e.Value,url:e.Url,children:(null!==(t=e.Children)&&void 0!==t?t:[]).map(r),knowledgeType:e.KnowledgeType,entranceShowType:i,imageUrl:e.ImageUrl,originLabelId:e.OriginLabelId,ticketAppId:e.TicketAppId,ticketCategoryId:e.TicketCategoryId,flags:2===i?0:2048,neverShowNeedMoreHelp:3===i}}function s(e){const{statusCode:t,statusMessage:i,faqInfoMap:n,entranceMap:o}=e;return{statusCode:t,statusMessage:i,faqInfoMap:Object.entries(null!=n?n:{}).reduce(((e,[t,i])=>e?(e[t]=(i||[]).map(r),e):e),{}),entranceMap:o}}function l({faqInfoMap:e,entranceMap:t,faqType:i,entrance:n}){var o;const a=("common"===i?"common":n===(null==t?void 0:t.general)&&"general")||"general";return null!==(o=null==e?void 0:e[a])&&void 0!==o?o:[]}function d(e){return n.j$.some((t=>t===e))}function c(e){var t;return null!==(t=Array.isArray(e)?e[0]:e)&&void 0!==t?t:""}function u(e){return n.Ly[c(e)]||""}function p(e,t,i={flattened:{},levels:[]}){return(e||[]).reduce(((e,i)=>{const n=(t?[...(null==t?void 0:t.__parents)||[],t.id]:[]).length,o=Object.assign(Object.assign({},i),{level:n,__parents:t?[...(null==t?void 0:t.__parents)||[],t.id]:[]});return e.flattened[o.id]=o,e.levels[n]=e.levels[n]||{},e.levels[n][i.id]=o,p(i.children,o,e),e}),i)}function g(e){var t;return Boolean(e&&(e.length>1||(null===(t=e[0])||void 0===t?void 0:t.children.length)))}function _(e,t,i=""){return`${e}`}n.fY.getListV2,n.fY.getListV3;const m={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},h="privacy@tiktok.com",v="feedback@tiktok.com",f=new RegExp(h,"g"),y=new RegExp(v,"g");function b(e,t,i,n){let o=e;return o=o.replace(/[&<>"'/]/g,(e=>m[e]||"")),1===t&&(o=o.replace(f,(()=>_(h,null!=i?i:"",n))).replace(y,(()=>_(v,null!=i?i:"",n)))),o}},98183:(e,t,i)=>{"use strict";i.d(t,{cA:()=>l,Ze:()=>d});var n=i(4474),o=i(10828),a=i(58305),r=i(60484),s=i(31578);const l=({pid:e,downloadLink:t="",appType:i,pageName:l,enterMethod:d,samsung:c=!1,wid:u,utmCampaign:p,activationAd:g,region:_,config:m,modalType:h,extraOnelinkParams:v})=>{const{samsungEnableRegion:f}=(0,r.L$)(m),{region:y=[],isFull:b}=(0,r.L$)(f),x=c||navigator.userAgent.indexOf("SamsungBrowser")>-1&&(b||y.includes(_)),k="1"===(0,a.Hd)("is_from_samsung_quick_access");t||(t=x?"https://snssdk1233.onelink.me/bIdt":"t"===i?"https://www.tiktok.com/download-link/ol/BAuo":"https://www.tiktok.com/download-link/ol/bIdt");const w=(0,a.Hd)("webapp_launch_mode"),S=(0,a.Hd)("webapp_original_traffic_type");let C="tiktokwebother";e?C=e:"paid"===w?C="tiktokwebsem":("referral_amp"===w||"organic"===w)&&(C="tiktokwebseo");const j=(0,s.qu)(navigator.userAgent)||(0,s.KJ)(navigator.userAgent)?"mobile":"pc",T=l,I=null!=g?g:`${d?`enter_method:${d};`:""}${h?`modal_type:${h};`:""}`,P={jump_time:Date.now(),af_adset:w,pid:C,af_siteid:j,c:T,af_ad:I,web_id:u,wid:u,af_ad_id:S};"paid"===w&&(P.is_retargeting=!0,P.af_click_lookback="1d");const A=(0,a.Hd)("utm_source"),M=(0,a.Hd)("utm_medium"),L=(0,a.Hd)("utm_campaign"),D=(0,a.Hd)("utm_term"),O=(0,a.Hd)("utm_content"),R=p?`${p},${L}`:L,E=(0,a.Hd)("referer_url"),F=(0,a.Hd)("referer_video_id"),B=`${A?`source:${A};`:""}${M?`medium:${M};`:""}${R?`campaign:${R};`:""}${D?`term:${D};`:""}${O?`content:${O};`:""}`,z=`${E?`referer_url:${E}};`:""}${F?`referer_video_id:${F};`:""}`;if(B&&(P.af_adset_id=B),z&&(P.af_channel=z),x&&k&&(P.pid="samsungbrowser",P.c=`samsungbrowser_${null==_?void 0:_.toLowerCase()}`,P.af_click_lookback="1d",P.af_android_url="https://apps.samsung.com/appquery/appDetail.as?appId=com.zhiliaoapp.musically",P.af_dp="snssdk1233://"),"undefined"!=typeof window){P.canonical=encodeURIComponent(`${o.C}${decodeURIComponent(location.pathname)}`);const e=n.parse(location.search);e.embed_source&&(P.embed_source=e.embed_source)}return v&&Object.assign(P,v),`${t}?${n.stringify(P)}`},d=e=>{const t=navigator.userAgent&&-1!==navigator.userAgent.indexOf("CriOS")?"_self":"_blank",i=window.open(e,t);i&&(i.opener=null)}},51356:(e,t,i)=>{"use strict";i.d(t,{b_:()=>o});var n=i(94810);function o(e){const t=n.A.isRealUniqueId(e),i=n.A.isPureNumber(e,!1);return t?{uniqueId:e.toLowerCase(),secUid:""}:i?{uniqueId:"",secUid:"",userId:e}:{uniqueId:"",secUid:e}}},39771:(e,t,i)=>{"use strict";i.d(t,{I:()=>o});var n=i(4474);function o(e,t){var i;const o={sender_device:t.sender_device,is_from_webapp:null!==(i=t.is_from_webapp)&&void 0!==i?i:1};return e?(0,n.stringifyUrl)({url:e,query:o}):(0,n.stringifyUrl)({url:location.origin+location.pathname,query:Object.assign(Object.assign({},(0,n.parse)(location.search.slice(1))),o)})}},26192:(e,t,i)=>{"use strict";i.d(t,{A5:()=>s,CC:()=>c,W3:()=>a,aQ:()=>r,iA:()=>d,jY:()=>l});const n={webapp:{10231:"home_error_video_geofencing",10219:"music_detail_unavailable_2",10101:"Sorry about that! Please try again later.",10236:"qapage_webapp_error_subtitle",10233:"playlist_invalid_error_code",10234:"playlist_invalid_error_code",10239:"photo_post_unavailable_dec",202001:"disable_reuse_soundtrack_unavailable_page_body",205001:"poisharing_edgecase_one",205002:"poisharing_edgecase_one",205003:"poistore_detail_text",203005:"",209001:"acct_geo_block_restriction_error_desc",209002:"accountAudienceControls_profile_loggedOut_desc",209003:"accountAudienceControls_profile_loggedInAgeUnknown_desc",209004:"accountAudienceControls_profile_loggedInU18_desc",209006:"accountAudienceControls_profile_loggedInFPOn_desc",209005:"accountAudienceControls_profile_loggedInRM_desc"},sharing:{10231:"home_error_video_geofencing",10219:"music_detail_unavailable_2",10101:"Sorry about that! Please try again later.",10236:"qa_reflow_page_empty_subtitle",10233:"playlist_invalid_error_code",10234:"playlist_invalid_error_code",10239:"photo_post_unavailable_dec",203005:""}},o={webapp:{202001:"ext_share_story_viewmore_btn",205001:"poisharing_cta_return",205002:"poisharing_cta_return",205003:"poisharing_cta_return",203005:"log_in"}},a=(e,t="webapp")=>{var i;return null!==(i=n[t][e])&&void 0!==i?i:"Looking for videos? Try browsing our trending creators, hashtags, and sounds."},r=(e,t="webapp")=>{let i="Page not available";switch(Number(e)){case 10202:case 10221:case 10223:case 10225:i="Couldn't find this account";break;case 10222:i="This account is private";break;case 10203:i="Couldn't find this sound";break;case 10219:i="music_detail_unavailable_1";break;case 10218:i="This sound isn't available";break;case 202001:i="disable_reuse_soundtrack_unavailable_mobile_body";break;case 10216:case 10204:case 10215:case 10217:case 10220:case 10240:case 10241:case 10242:i="embed_err_unavailable";break;case 10239:i="photo_post_unavailable_title";break;case 10205:case 10211:case 10212:case 10209:i="Couldn't find this hashtag";break;case 10208:i="Couldn't find this effect";break;case 10210:i="Couldn't find this live";break;case 10231:i="desktop_error_video_geofencing";break;case 10236:i="webapp"===t?"qapage_webapp_error_title":"qa_page_reflow_page_blank_title";break;case 10101:i="Something went wrong";break;case 205001:case 205002:i="poisuggest_placeuna_title_1";break;case 205003:i="err_feature_unavailable";break;case 10244:case 206004:case 10243:i="playlist_unavailable";break;case 203005:i="subVideo_unavailableScreen_title";break;case 209001:i="acct_geo_block_restriction_error_title";break;case 209002:i="accountAudienceControls_profileUnavailable_loggedOut_title";break;case 209003:case 209004:case 209006:i="accountAudienceControls_profileUnavailable_title";break;case 209005:i="accountAudienceControls_profileUnavailableRM_title"}return i},s={209002:"Logged out",209003:"Logged in, Age unknown",209004:"Logged in, U18",209006:"Logged in, RM, FP on",209005:"Logged in, RM, FP off"},l=e=>{let t="";return 10216===Number(e)&&(t="video-private-setting"),{title:t,desc:""}},d=(e,t="webapp")=>o[t][e],c=e=>[209001,209002,209003,209004,209005,209006].includes(e)},17781:(e,t,i)=>{"use strict";i.d(t,{I:()=>n});const n=()=>({filter:"drop-shadow(0px 1px 1px rgba(0 0 0 / 12%))"})},64116:(e,t,i)=>{"use strict";i.d(t,{Az:()=>o,Dr:()=>n,H4:()=>r});const n=e=>10229===e||10230===e,o=e=>{if(isNaN(e))return"00:00";const t=Math.floor(e/3600),i=(t<10?"0":"")+t.toString(),n=`0${Math.floor(e/60%60)}`.slice(-2),o=`0${Math.floor(e%60)}`.slice(-2);return 0===t?`${n}:${o}`:`${i}:${n}:${o}`},a=new Map([[2,"adapt_lowest_1080p"],[3,"adapt_lower_1080p"],[4,"adapt_1080p"],[7,"adapt_lowest_1440p"],[10,"normal_720p"],[11,"low_720p"],[12,"adapt_high_720p"],[13,"adapt_higher_720p"],[14,"adapt_lower_720p"],[15,"adapt_lowest_720p"],[16,"higher_720p"],[17,"highest_720p"],[18,"adapt_720p"],[19,"adapt_low_720p"],[191,"lower_720p"],[20,"normal_540p"],[21,"adapt_lower_540p"],[22,"adapt_high_540p"],[23,"adapt_higher_540p"],[24,"lower_540p"],[25,"lowest_540p"],[26,"higher_540p"],[27,"highest_540p"],[28,"adapt_540p"],[29,"adapt_lowest_540p"],[291,"adapt_low_540p"],[30,"normal_480p"],[31,"low_480p"],[32,"high_480p"],[33,"medium_480p"],[34,"lower_480p"],[35,"lowest_480p"],[36,"higher_480p"],[37,"highest_480p"],[38,"adapt_480p"],[39,"adapt_lower_480p"],[391,"adapt_high_480p"],[40,"normal_360p"],[41,"low_360p"],[42,"high_360p"],[43,"medium_360p"],[44,"lower_360p"],[45,"lowest_360p"],[46,"higher_360p"],[47,"highest_360p"],[48,"adapt_360p"],[49,"adapt_lowest_360p"],[50,"adapt_high_360p"]]),r=(e,t)=>{if(!e)return t;if(String(e).indexOf("xgpreload_config")>-1)return e;if(!a.has(Number(e))){const t=String(e).match(/^([a-zA-Z]*)+_([0-9]+)_0$/i);return t?`${t[1]}_${t[2]}p`:`unknown_${e}`}return a.get(Number(e))}},68182:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});var n,o=i(24643),a=i(40099),r=i(62186),s=i(39522),l=i(72153);!function(e){e[e.OneColumn=0]="OneColumn",e[e.OneColumnDarkOnly=1]="OneColumnDarkOnly",e[e.OneColumnShare=2]="OneColumnShare",e[e.BrowserMode=3]="BrowserMode"}(n||(n={}));const d=(e,t)=>1===e?s.J:t;function c({styleType:e,shouldOptimizeCta:t,colors:i,disabled:n}){switch(e){case 0:case 1:case 2:return{flexDirection:"column"};case 3:return[{flexDirection:"row"},t&&[{borderRadius:"40px",padding:"8px 12px 8px 12px",height:"40px",backgroundColor:i.BGInput},!n&&{"&:hover":{backgroundColor:i.BGInput2},"&:active":{backgroundColor:"rgba(22, 24, 35, .14)"}}]];default:return null}}const u=(0,r.default)("button",{target:"e1hk3hf90"})((({styleType:e,shouldOptimizeCta:t,theme:{direction:i,colors:n}})=>[l.WA,{position:"relative",display:"flex",alignItems:"center",cursor:"pointer",":disabled":{cursor:"default",color:d(e,n).TextPrimary}},c({styleType:e,direction:i,shouldOptimizeCta:t,colors:d(e,n)})]),"label:ButtonActionItem;");function p({styleType:e,direction:t,shouldOptimizeCta:i}){switch(e){case 1:case 0:return[{marginTop:"8px",marginBottom:"6px"},(0,l.jJ)({max:768,style:{width:"32px",height:"32px",padding:"6px",svg:{width:"20px",height:"20px"}}})];case 2:return[{padding:"0",marginTop:"8px",marginBottom:"6px"}];case 3:return[!i&&{padding:"6px"},(0,l.mp)({direction:t,marginEnd:i?"8px":"6px"})];default:return null}}const g=(0,r.default)("span",{target:"e1hk3hf91"})((({shouldOptimizeCta:e,styleType:t,theme:{direction:i,colors:n}})=>[{display:"flex",justifyContent:"center",alignItems:"center",fontSize:"0px",borderRadius:"50%",transition:"all ease-in-out 200ms",cursor:"pointer"},(!e||3!==t)&&{width:3===t?"32px":"48px",height:3===t?"32px":"48px"},2===t||e&&3===t?null:{backgroundColor:d(t,n).BGInput,[`${u}:not(:disabled) &:hover`]:{backgroundColor:d(t,n).BGInput2},[`${u}:not(:disabled) &:active`]:{backgroundColor:"rgba(22, 24, 35, .14)"}},p({styleType:t,direction:i,shouldOptimizeCta:e})]),"label:SpanIconWrapper;"),_=(0,r.default)("strong",{target:"e1hk3hf92"})((({theme:e,styleType:t})=>[(0,l.zy)({theme:e,typography:"P4"}),{color:d(null!=t?t:0,e.colors).TextSecondary}]),{textAlign:"center"},"label:StrongText;");var m=i(88920);const h=(0,a.memo)((0,a.forwardRef)((function(e,t){const{text:i,Icon:n,styleType:r,disabled:s,children:l,e2eTag:d,style:c,ariaLabel:p,ariaPressed:h,ariaExpanded:v}=e,f=(0,a.useRef)(null),{shouldOptimizeCta:y}=(0,m.kb)(),b=(0,a.useCallback)((()=>{var e,t;return null===(t=Array.from(null===(e=f.current)||void 0===e?void 0:e.querySelectorAll("*")))||void 0===t?void 0:t.includes(document.activeElement)}),[]),x=(0,a.useCallback)((()=>{var e;null===(e=f.current)||void 0===e||e.focus()}),[]);return(0,a.useImperativeHandle)(t,(()=>({hasFocusForChildren:b,setFocus:x}))),(0,o.jsxs)(u,{styleType:r,type:"button",onClick:t=>{e.onClick&&(e.onClick(t),t.stopPropagation())},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onKeyDown:e.onKeyDown,onBlur:e.onBlur,disabled:s,"aria-label":p,"aria-pressed":h,"aria-expanded":v,ref:f,shouldOptimizeCta:y,children:[(0,o.jsx)(g,{style:null!=c?c:{},styleType:r,"data-e2e":`${d}-icon`,shouldOptimizeCta:y,children:n}),(0,o.jsx)(_,{"data-e2e":`${d}-count`,styleType:r,children:i}),l]})})))},75558:(e,t,i)=>{"use strict";i.d(t,{e:()=>l});var n=i(24643),o=i(40099);const a={display:"flex",alignItems:"center",padding:"10px 12px",columnGap:"4px",background:"var(--UI-Image-Overlay-Dark-Gray-A60, rgba(51, 51, 51, 0.60))",margin:"12px -12px -16px",borderRadius:"0 0 16px 16px"},r={display:"flex",alignItems:"center",justifyContent:"center"},s={wordBreak:"break-word",height:"auto",fontSize:"12px",fontWeight:"500",color:"var(--Text-Const-ConstTextInverse, #FFF)",lineHeight:1.3,letterSpacing:"0.161px"},l=(0,o.memo)((function({text:e}){return(0,n.jsxs)("div",{style:a,children:[(0,n.jsx)("div",{style:r,children:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,n.jsx)("g",{clipPath:"url(#clip0_2143_23)",children:(0,n.jsx)("path",{d:"M0.666748 8.00002C0.666748 3.94992 3.94998 0.666687 8.00008 0.666687C12.0502 0.666687 15.3334 3.94992 15.3334 8.00002C15.3334 12.0501 12.0502 15.3334 8.00008 15.3334C3.94998 15.3334 0.666748 12.0501 0.666748 8.00002ZM9.10008 5.06669C9.10008 4.45916 8.60761 3.96669 8.00008 3.96669C7.39255 3.96669 6.90008 4.45916 6.90008 5.06669C6.90008 5.67422 7.39255 6.16669 8.00008 6.16669C8.60761 6.16669 9.10008 5.67422 9.10008 5.06669ZM7.63341 7.26669C7.4309 7.26669 7.26675 7.43084 7.26675 7.63335V11.6667C7.26675 11.8692 7.4309 12.0334 7.63341 12.0334H8.36675C8.56926 12.0334 8.73342 11.8692 8.73342 11.6667V7.63335C8.73342 7.43084 8.56926 7.26669 8.36675 7.26669H7.63341Z",fill:"white"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_2143_23",children:(0,n.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]})}),(0,n.jsx)("div",{style:s,children:e})]})}))},13681:(e,t,i)=>{"use strict";i.d(t,{$:()=>x});var n=i(24643),o=i(40099),a=i(9403),r=i(25616),s=i(88920),l=i(33805),d=i(62186),c=i(72153);const u=(0,d.default)("a",{target:"evbdqjo0"})({textWrap:"nowrap",textDecoration:"none",":hover":{textDecoration:"none"}},"label:AigcLink;"),p=(0,d.default)("p",{target:"evbdqjo1"})((({theme:e,theme:{colors:t}})=>[(0,c.zy)({theme:e,fontFamily:"TikTokFont",typography:"P3",color:"ConstTextInverse"}),{display:"inline-block",alignSelf:"flex-start",marginTop:"-4px",marginBottom:"8px",fontSize:"12px",fontWeight:500},{padding:"1px 3px",background:t.ConstBGMat,borderRadius:"2px",fontWeight:600,textShadow:"0 0 16px rgba(0, 0, 0, .34)"}]),"label:AigcTagMobile;"),g=(0,d.default)("p",{target:"evbdqjo2"})((({theme:e})=>[(0,c.zy)({theme:e,fontFamily:"TikTokFont",typography:"P3",color:"ConstTextInverse"}),{color:"#FFF",display:"inline-block",alignSelf:"flex-start",fontSize:"10px",fontWeight:500,padding:"1.5px 4px",background:"rgba(255, 255, 255, 0.34)",borderRadius:"4px",textShadow:"0 0 16px rgba(0, 0, 0, .34)"}]),"label:AigcTagMiniPlayer;");var _=i(48615),m=i(49057),h=i(75282);const v=0,f=1,y=2,b={[f]:{teaLabelType:"1",i18nKey:"syntheticMedia_feed_bottomBanner_AIGCLabel"},[y]:{teaLabelType:"2",i18nKey:"AIGC_FYP_descSection_label"},[v]:{teaLabelType:"0",i18nKey:""}},x=(0,o.memo)((function({item:e,playMode:t,isMiniPlayer:i=!1}){var d,c,v;const f=(0,r.s)(),y=Number(null!==(d=e.aigcLabelType)&&void 0!==d?d:0),x=b[y].i18nKey,k=b[y].teaLabelType,w=(0,s.q)(),S=0!==y&&w,{language:C="",region:j=""}=null!==(c=(0,m.W)((()=>["language","region"]),[]))&&void 0!==c?c:{},{isMobile:T}=null!==(v=(0,_.U)((()=>["isMobile"]),[]))&&void 0!==v?v:{},I=(0,o.useMemo)((()=>T?"web_mobile_fyp":i?"mini_player":2===t?"browser":4===t?"video_detail":"web_fyp"),[t,T]),P=(0,o.useMemo)((()=>({aigc_label_type:k,enter_from:I,country_code:j})),[I,k,j]),A=(0,l.sN)(I,C),M=(0,o.useCallback)((()=>{a.Ld.handleAigcAnchorClick(P)}),[P]),L=(0,o.useCallback)((e=>T?(0,n.jsx)(p,{children:e}):i?(0,n.jsxs)(g,{children:[" ",e]}):(0,n.jsx)(h.ZN,{shouldOptProfile:!0,playMode:t,isTag:!0,children:e})),[T,i,t]);return(0,o.useEffect)((()=>{S&&a.Ld.handleAigcAnchorShow(P)}),[S,P]),S?(0,n.jsx)(u,{target:"_blank",href:A,onClick:M,children:L(f(x))}):null}))},40702:(e,t,i)=>{"use strict";i.d(t,{gF:()=>he});var n=i(24643),o=i(40099),a=i(88091),r=i(3089),s=i(46682),l=i(47172),d=i(51004),c=i(48961),u=i(50772),p=i(2584),g=i(58305),_=i(60484),m=i(33805),h=i(49057),v=i(58632),f=i(64162),y=i(4126),b=i(93995),x=i(24451),k=i(46657),w=i(23999),S=i(62564),C=i(26324),j=i(35572),T=i(20259),I=i(76435),P=i(82535),A=i(7672),M=i(55099);let L=class{constructor(e){this.fetch=e}getPoiDetail(e){return this.fetch.get("/api/poi/detail/",{query:e,baseUrlType:2})}};L=(0,v.__decorate)([(0,A._)(),(0,v.__metadata)("design:paramtypes",[M.p])],L);let D=class extends f.E{constructor(e){super(),this.service=e,this.defaultState={poi:{}}}setPoiInfo(e,t){t&&(e.poi[t.id]=t)}getPoiInfo(e){return e.pipe((0,x.E)(this.state$),(0,j.p)((([{poiId:e="",language:t,teaParams:i,callback:n},{poi:o}])=>o[e]?(i&&(P.q.handleEnterPoi(Object.assign(Object.assign({},i),o[e])),null==n||n()),k.w):this.service.getPoiDetail({poiId:e,language:t}).pipe((0,T.W)((()=>(0,w.of)({statusCode:-1}))),(0,S.T)((e=>{var t,o;const{statusCode:a,poiInfo:r}=e;return 0===a?(i&&(P.q.handleEnterPoi(Object.assign(Object.assign({},i),null!==(t=null==r?void 0:r.poi)&&void 0!==t?t:{id:"",name:""})),null==n||n()),this.getActions().setPoiInfo(null===(o=null==e?void 0:e.poiInfo)||void 0===o?void 0:o.poi)):this.noop()})),(0,I.Q)(this.dispose$)))))}};(0,v.__decorate)([(0,y.uk)(),(0,v.__metadata)("design:type",C.c)],D.prototype,"dispose$",void 0),(0,v.__decorate)([(0,y.h5)(),(0,v.__metadata)("design:type",Function),(0,v.__metadata)("design:paramtypes",[Object,Object]),(0,v.__metadata)("design:returntype",void 0)],D.prototype,"setPoiInfo",null),(0,v.__decorate)([(0,y.Mj)(),(0,v.__metadata)("design:type",Function),(0,v.__metadata)("design:paramtypes",[C.c]),(0,v.__metadata)("design:returntype",void 0)],D.prototype,"getPoiInfo",null),D=(0,v.__decorate)([(0,b.n)("PoisModule"),(0,v.__metadata)("design:paramtypes",[L])],D);var O=i(75282),R=i(62186),E=i(67963);const F=(0,R.default)(E.N_,{target:"e65hkrg0"})({display:"inline-flex",alignItems:"center",textDecoration:"none",":hover":{textDecoration:"none"},minWidth:0},"label:StyledLink;"),B=function({info:e,playMode:t,teaParams:i,target:a="_self",videoId:r="",onLinkClick:v,isInTooltip:f,noWrapper:y}){const{id:b,name:x,fatherPoiName:k}=(0,_.L$)(e),{language:w}=(0,_.L$)((0,h.W)((()=>["language"]),[])),S=(0,s.w)(D),C=(0,l.useHistory)(),j=(0,m.Am)(b,x),T=Boolean(e),I=(0,o.useMemo)((()=>0===t?"one_column":4===t?"video_detail":"browser_mode"),[t]),P=(0,o.useMemo)((()=>({enter_method:I,anchor_id:b,anchor_name:x,author_id:i.author_id})),[b,x,I,i]);(0,o.useEffect)((()=>{T&&c.Gt.handlePoiAnchorShow(P),u.c.showSection("poi_anchor",{group_id:r})}),[T,r]);const A=(0,o.useCallback)((e=>{(0,g.Gu)(e),c.Gt.handlePoiAnchorClick(P),p.O.handleGeneralClick("poi_anchor",{group_id:r}),null==v||v(e,j,"poi"),S.getPoiInfo({poiId:b,language:w,teaParams:Object.assign(Object.assign({},i),{enter_method:"click_caption",play_mode:I}),callback(){"_blank"===a?window.open(j,"_blank"):C.push(j)}})}),[P,S,I,C,b,w,j,i,a,v,r]),M=(0,n.jsxs)(F,{rel:"opener",replace:2===t,target:a,to:j,onClick:A,children:[(0,n.jsx)(d.n,{size:14}),(0,n.jsxs)(O.nt,{isInTooltip:f,children:[x,k&&` · ${k}`]})]});return y?M:(0,n.jsx)(O.ZN,{"data-e2e":"poi-anchor",playMode:t,isInTooltip:f,noWrapper:y,shouldOptProfile:!0,children:M})};var z=i(72467);const U=(0,R.default)("img",{target:"e1t3ukaq1"})({width:"14px",height:"14px",objectFit:"cover"},"label:ImgLogo;"),N=(0,R.default)("a",{target:"e1t3ukaq2"})({display:"inline-flex",alignItems:"center",textDecoration:"none",":hover":{textDecoration:"none"}},"label:ACapCutLink;"),W=function({noWrapper:e,info:t,playMode:i,teaParams:a,isInTooltip:r}){var s;const{schema:l,icon:d,keyword:c,logExtra:u}=(0,_.L$)(null==t?void 0:t[0]),p=(0,_.L$)(null===(s=null==d?void 0:d.urlList)||void 0===s?void 0:s[0]),g=Boolean(null==t?void 0:t[0]),m=(0,o.useMemo)((()=>0===i?"one_column":4===i?"video_detail":"browser_mode"),[i]),h=(0,o.useMemo)((()=>{let e={};try{e=u&&JSON.parse(u)}catch(e){console.error(e)}return Object.assign(Object.assign(Object.assign({},a||{}),{enter_from:m}),e||{})}),[m,u,a]);(0,o.useEffect)((()=>{g&&z.$.handleCapCutAnchorShow(h)}),[g]);const v=(0,o.useCallback)((()=>{z.$.handleCapCutAnchorClick(h)}),[h]),f=(0,o.useMemo)((()=>(0,n.jsxs)(N,{target:"_blank",href:l,onClick:v,children:[(0,n.jsx)(U,{alt:c,src:p}),(0,n.jsx)(O.nt,{isInTooltip:r,children:c})]})),[v,r,c,p,i,l]);return e?f:(0,n.jsx)(O.ZN,{"data-e2e":"capcut-anchor",isInTooltip:r,noWrapper:e,shouldOptProfile:!0,children:f})};var V=i(38401),H=i(45515),q=i(25616);const $=(0,o.memo)((function({item:e,playMode:t}){const i=(0,q.s)(),{ad_info:o}=e,{tag_text:a,raw_ad_data:r}=null!=o?o:{},s=(()=>{if(r)try{const e=JSON.parse(r),{is_ad4ad:t,ad4ad:i}=e;if(t)return null==i?void 0:i.promotion_label}catch(e){console.error("[pc-ttam-ads-tag], Error parsing raw_ad_data:",e)}return null!=a?a:"Tag Text Placeholder"})();return(0,n.jsx)(O.ZN,{shouldOptProfile:!0,playMode:t,isTag:!0,children:i(s)})}));var G=i(67518),K=i(16891),Y=i(92846),Z=i(57431),J=i(76403),X=i(60342),Q=i(97706),ee=i(85041);const te=(0,o.memo)((function({item:e,onClick:t}){var i,a,r;const s=(0,q.s)(),{user:l}=(0,Z.x)(),d=(null!==(i=e.repostList)&&void 0!==i?i:[]).slice(0,3),c=(0,o.useMemo)((()=>{var t,i,n,o;return 1===d.length?d[0].secUid===(null==l?void 0:l.secUid)?s("pcWeb_youReposted_label"):s("pcWeb_nickReposted_label",{s_nickname:d[0].nickname}):s("pcWeb_nickReposted_label",{s_nickname:null!==(o=null!==(i=null===(t=e.statsV2)||void 0===t?void 0:t.repostCount)&&void 0!==i?i:null===(n=e.repostList)||void 0===n?void 0:n.length)&&void 0!==o?o:"0"})}),[s,d,null==l?void 0:l.secUid,null===(a=e.statsV2)||void 0===a?void 0:a.repostCount,null===(r=e.repostList)||void 0===r?void 0:r.length]);return(0,n.jsxs)(J.IW,{onClick:t,children:[(0,n.jsx)(J.Uj,{children:d.map((e=>(0,n.jsx)(Y.e,{src:e.avatarThumb,size:14,style:{lineHeight:"14px"}},e.id)))}),(0,n.jsx)(J.vl,{children:c})]})})),ie=(0,o.memo)((function(e){const{playMode:t,handleClickRepost:i}=e,a=(0,q.s)(),[r,s]=(0,o.useState)(!1),l=(0,o.useCallback)((e=>(0,v.__awaiter)(this,void 0,void 0,(function*(){e.preventDefault(),e.stopPropagation(),r?yield i():s(!0)}))),[r,i]);return(0,n.jsx)(J.Q7,{"data-e2e":"remove-repost-btn",playMode:t,active:r,shouldOptProfile:!0,onClick:l,style:{fontSize:"13px"},isRemoveButton:!0,children:a(r?"pcWeb_removeRepost_btn":"pcWeb_reposted_toast")})}));var ne=i(10332),oe=i(88920);const ae=(0,o.memo)((function({item:e,playMode:t,placement:i="bottom",onLinkClick:a}){const{colors:r}=(0,G.u)(),{user:s}=(0,Z.x)(),{active:l,handleMouseEnter:d,handleMouseLeave:c}=(0,X.K)(100),u=(0,o.useMemo)((()=>({page_name:K.f.commonParams.page_name,group_id:e.id,play_mode:null==t?void 0:t.toString()})),[e,t]);(0,o.useEffect)((()=>{l&&K.f.sendEvent("hover_repost_label",u)}),[l,u]);const p=(0,o.useMemo)((()=>({isColor:!1,isStrong:!0,size:12,showTick:!1})),[]),{repostActionVid:g}=(0,oe.hn)(),_=(0,ne.g)({itemId:e.id,iconConfig:p}),{handleClickRepost:m,canRepost:h,isReposted:v}=(0,ne.l)({itemId:e.id,playMode:t});if(!e.repostList||0===e.repostList.length)return null;const f="v4"===g&&h,y=f&&!v,b=f&&v,x=(0,n.jsxs)(J.Q7,{"data-e2e":"repost-tag",playMode:t,active:l,onMouseEnter:d,onMouseLeave:c,shouldOptProfile:!0,children:[(0,n.jsx)(te,{item:e,onClick:d}),(0,n.jsx)(Q.z,{backgroundColor:r.BGSecondary,placement:i,active:l,arrowMargin:10,style:{zIndex:100,minWidth:"80px",maxWidth:"200px",marginLeft:2===t?"20px":0},children:(0,n.jsx)(J.Dp,{"data-e2e":"repost-user-list",children:e.repostList.map(((e,i)=>(0,n.jsx)(J.ld,{children:(0,n.jsxs)(ee.E,{target:"_self",rel:"opener",onLinkClick:a,uniqueId:e.uniqueId,secUid:e.secUid,teaParams:Object.assign(Object.assign({},u),{to_user_id:e.id,enter_method:"repost"}),children:[(0,n.jsx)(Y.e,{src:e.avatarThumb,size:14}),(0,n.jsx)(J.Tz,{children:e.nickname}),b&&(null==s?void 0:s.secUid)===e.secUid&&(0,n.jsx)(ie,{playMode:t,handleClickRepost:m})]})},i)))})})]}),k=y?(0,n.jsx)(J.Q7,{"data-e2e":"repost-action-tag",onClick:m,playMode:t,shouldOptProfile:!0,children:(0,n.jsx)(J.IW,{children:_})}):null;return(0,n.jsxs)(n.Fragment,{children:[x,k]})}));var re=i(13681),se=i(48615);const le=[{id:"0",type:54,keyword:"CapCut | Edit like a pro",icon:{uri:"tiktok-obj/capcut_logo_64px_bk.png",urlList:["https://p16-sg.tiktokcdn.com/obj/tiktok-obj/capcut_logo_64px_bk.png"]},schema:"https://www.capcut.com/editor?scenario=tiktok&utm_campaign=70361230&utm_medium=tiktok_anchor&utm_source=tiktok_anchor_tool",logExtra:'{"anchor_id":0,"anchor_name":"CapCut | Edit like a pro","anchor_type":"TT_CAPCUT","capability_key":"effect;effect_13090155,effect_13566886,effect_15452450,effect_15608083,effect_7033800","template_id":"none","tutorial_id":"none","video_source":0,"video_type_id":1}',description:"CapCut · Video Editor",thumbnail:{uri:"tiktok-obj/64x_Capcut3x.png",urlList:["https://p16-sg.tiktokcdn.com/obj/tiktok-obj/64x_Capcut3x.png"],width:64,height:64},extraInfo:{subtype:""}}];var de=i(97086),ce=i(89744);const ue=(0,R.default)("img",{target:"e1fqbw141"})({width:"14px",height:"14px",objectFit:"cover"},"label:ImgLogo;"),pe=(0,R.default)("a",{target:"e1fqbw142"})({display:"flex",alignItems:"center",justifyContent:"flex-start",textDecoration:"none",width:"100%",":hover":{textDecoration:"none"}},"label:AEhEffectLink;"),ge=i.p+"3e32775581ab07c1e660.png",_e=function({noWrapper:e,info:t,playMode:i,teaParams:a={},isInTooltip:r}){const s=Boolean(t),{id:l="",keyword:d="",description:c}=(0,_.L$)(t),u=(0,o.useMemo)((()=>{switch(!0){case 0===i:return"one_column";case 4===i:return"video_detail";default:return"browser_mode"}}),[i]),[p,g]=(0,o.useState)(Object.assign({anchor_name:d,anchor_id:l,anchor_type:"28",page_name:"",effect_id:l,enter_from:u},a));(0,o.useEffect)((()=>{if(!(0,de.fU)()){const e=window.location.pathname;p.page_name=(0,m.oN)(e),g(p),s&&ce.Y.handleEhEffectAnchorShow(p)}}),[s]);const h=(0,o.useCallback)((()=>{ce.Y.handleEhEffectAnchorClick(p)}),[p]),v=(0,o.useMemo)((()=>{let e=(0,m.rE)(d,l);return(0,n.jsxs)(pe,{target:"_blank",href:e,onClick:h,children:[(0,n.jsx)(ue,{alt:c,src:ge}),(0,n.jsx)(O.nt,{isInTooltip:r,children:d})]})}),[h,r,d,l,i]);return e?v:(0,n.jsx)(O.ZN,{isInTooltip:r,noWrapper:e,shouldOptProfile:!0,style:{width:"100%"},children:v})};var me;!function(e){e.Poi="poi",e.Capcut="capcut",e.Effect="effect"}(me||(me={}));const he=function({target:e,item:t,playMode:i,capcapAnchorTeaParams:s,poiTeaParams:l,onLinkClick:d,noSubOnlyTag:c,noPaidPartnerTag:u,popoverAlignment:p="bottom",pageType:g}){const{poi:m,capcutAnchorsOriginal:h,ad_info:v,effectAnchors:f=[],id:y}=(0,_.L$)(t),b=Boolean(m),x=!!v,{isDesktopUiOptDebugOn:k}=(0,oe.kb)(),{isBot:w}=(0,_.L$)((0,se.U)((()=>["isBot"]),[])),{effectAnchors:S}=(0,oe.Jl)(f,g),C=w?f:S,{isRepostLabelEnabled:j}=(0,oe.hn)();let T=h;k&&(T=le);const I=Boolean(null==T?void 0:T[0]),P=(0,o.useCallback)(((t,o)=>b?(0,n.jsx)(B,{onLinkClick:d,target:e,videoId:y,info:m,playMode:i,teaParams:l,isInTooltip:t,noWrapper:o}):null),[b,i,m,d,l,e]),A=(0,o.useCallback)(((e,t)=>I?(0,n.jsx)(W,{info:T,playMode:i,teaParams:s,isInTooltip:e,noWrapper:t}):null),[s,T,I,i]),M=(0,o.useCallback)(((e,t,o)=>e?(0,n.jsx)(_e,{info:e,playMode:i,isInTooltip:t,noWrapper:o}):null),[i]),L=[...C.map((e=>e?me.Effect:null)),!(0,de.fU)()&&b&&me.Poi,!(0,de.fU)()&&I&&me.Capcut].filter(Boolean),D=L.length,R=0===D,[E,F,z]=(0,o.useMemo)((()=>{let e,t;switch(L[0]){case me.Effect:e=M(C[0],!1,!0);break;case me.Poi:e=P(!1,!0);break;case me.Capcut:e=A(!1,!0);break;default:e=null}const i=L.length>1;return i&&(t=(0,n.jsx)("div",{children:L.map(((e,t)=>{const i=[0===t?null:(0,n.jsx)(a.zm,{color:"LineSecondary"},"line")];let o;switch(e){case me.Effect:o=(0,n.jsx)(O.OT,{children:M(C[t],!0)},"item");break;case me.Poi:o=(0,n.jsx)(O.OT,{children:P(!0)},"item");break;case me.Capcut:o=(0,n.jsx)(O.OT,{children:A(!0)},"item");break;default:o=null}return i.push(o),i}))})),[e,t,i]}),[L,A,P,M,C]),U=u?null:(0,n.jsx)(V.P,{target:e,item:t,playMode:i}),N=c?null:(0,n.jsx)(H.a,{item:t,playMode:i}),q=x?(0,n.jsx)($,{item:t,playMode:i}):null,G=j?(0,n.jsx)(ae,{item:t,playMode:i,placement:"top"===p?"topLeft":"bottom",onLinkClick:d}):null,K=u||!x?(0,n.jsx)(re.$,{item:t,playMode:i}):null;return(0,n.jsxs)(O.mz,{children:[G,R?null:(0,n.jsx)(a.N0,{content:F,disabled:!z,position:"top"===p?"Top":"Bottom",background:"BGPrimary",children:(0,n.jsxs)(O.ZN,{playMode:i,shouldOptProfile:!0,children:[E,z&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(O.M8,{}),(0,n.jsxs)(O.VD,{children:[D,(0,n.jsx)(r.A,{})]})]})]})}),N,U,q,K]})}},75282:(e,t,i)=>{"use strict";i.d(t,{M8:()=>c,OT:()=>d,VD:()=>u,ZN:()=>g,mz:()=>l,nt:()=>p});var n=i(62186),o=i(72153);const a={0:"4px",2:"8px",4:"12px"},r={0:"0px",2:"-2px",4:"-6px"},s={0:"2px",2:"8px",4:"8px"},l=(0,n.default)("div",{target:"e1sksq2r0"})({display:"flex",columnGap:"6px",rowGap:"2px",flexWrap:"wrap",marginLeft:"-2px"},"label:DivAnchorTagWrapper;"),d=(0,n.default)("div",{target:"e1sksq2r1"})((({theme:{colors:e}})=>({height:"41px",display:"flex",alignItems:"center",":hover":{background:e.BGView}})),"label:DivToolTipWrapper;"),c=(0,n.default)("span",{target:"e1sksq2r2"})((({theme:{colors:e}})=>({borderLeft:"0.5px solid green",height:"12px",marginLeft:"4px",marginRight:"4px",alignSelf:"center",borderColor:e.LineSecondary})),"label:SpanDivider;"),u=(0,n.default)("span",{target:"e1sksq2r3"})({width:"19px",display:"flex",alignItems:"center"},"label:SpanNum;"),p=(0,n.default)("p",{target:"e1sksq2r4"})((({isInTooltip:e,theme:{direction:t}})=>[{fontSize:"13px",fontWeight:400,"&:hover":{textDecoration:"underline"}},o.PR,e&&{fontSize:"14px",whiteSpace:"normal"},(0,o.mp)({direction:t,marginStart:"8px"})]),"label:PAnchorTagName;"),g=(0,n.default)("div",{target:"e1sksq2r5"})((({isTag:e,isInTooltip:t,shouldOptProfile:i,playMode:n=0,theme:{colors:o}})=>[{height:"24px",marginTop:a[n],marginBottom:r[n],minWidth:0},i&&[{height:"22px",padding:"1px 6px 1px 4px",background:t?"":o.BGView,display:"inline-flex",borderRadius:"4px",alignItems:"center",color:o.TextPrimary,marginTop:s[n]},t&&{marginTop:0,marginBottom:0},e&&{color:o.TextTertiaryAlt}]]),"label:DivAnchorTag;")},39117:(e,t,i)=>{"use strict";var n;i.d(t,{w4:()=>c}),function(e){e.Apple="apple",e.Amazon="amazon",e.Google="google",e.Download="download",e.Microsoft="microsoft"}(n||(n={}));const o=["ast","de","en","fr","it","ja","pt"],a="en",r=["microsoft","apple","amazon","google","download"],s={apple:"ios_app_store",google:"google_play",amazon:"amazon_store",download:"download_apk",microsoft:"microsoft_store"},l="officewebshare",d="normal";function c({lang:e,downloadLink:t={},isIOS:i=!1,isAndroid:n=!1}){var c;const u=e.split("-")[0],p=o.includes(u)&&!(null===(c=t.download)||void 0===c?void 0:c.visible)?u:a;return{iconLanguage:p,iconConfig:r.reduce(((e,o)=>{const a=t[o];return(null==a?void 0:a.visible)&&function({platform:e,isIOS:t,isAndroid:i}){switch(e){case"apple":return!i;case"google":case"download":case"amazon":return!t;default:return!0}}({platform:o,isAndroid:n,isIOS:i})&&e.push({platform:o,language:p,href:a[l]||a[d],alt:`${o}-store`,target:s[o]||o}),e}),[])}}},64046:(e,t,i)=>{"use strict";i.d(t,{OS:()=>_,h5:()=>p,j5:()=>m,Rv:()=>h,ZR:()=>f});var n=i(62186),o=i(72153);const a=i.p+"25b0d4f3e6779acb114f.png",r=i.p+"1db62e2b736e1cc835a3.png",s=i.p+"f1596f39e85631c052c4.png",l=i.p+"b5b0c8fab7d18dff2e2a.png",d=i.p+"2097820e1be2c7a06bf8.png",c=i.p+"a028a67e740da091b89b.png",u=i.p+"0433f99adc0a040142f6.png",p=(0,n.default)("div",{target:"e1obx3ji0"})((({region:e})=>({marginTop:"US"===e?"40px":"16px",display:"flex",flexDirection:"row",width:"288px",flexWrap:"wrap",justifyContent:"space-between"})),"label:DivDownloadContainer;"),g={amazon:{backgroundPosition:"0 0"},apple:{backgroundPosition:"0 -43px"},google:{backgroundPosition:"0 -86px"}},_=(0,n.default)("a",{target:"e1obx3ji1"})({":nth-of-type(-n+2)":{marginBottom:"8px"}},"label:AIconContainer;"),m=(0,n.default)("img",{target:"e1obx3ji2"})((({platform:e,lang:t})=>function(e,t){return"download"===e?{backgroundImage:"url('https://p16-ttug-sg.tiktokcdn.com/img/ttfe-malisg/tiktok_web/store-badge/download.png~296x0.image')"}:"microsoft"!==e?Object.assign(Object.assign({},g[e]),{backgroundImage:`url(https://p16-ttug-sg.tiktokcdn.com/img/ttfe-malisg/tiktok_web/store-badge/${t}.png~296x0.image)`}):void 0}(e,t)),{width:"138px",height:"40px",backgroundSize:"138px",objectFit:"cover",borderRadius:"4px"},"label:ImgIcon;"),h=(0,n.default)("p",{target:"e1obx3ji3"})((({theme:e})=>(0,o.zy)({theme:e,typography:"P1",fontWeight:"semiBold"})),"label:PSubTitle;"),v={ast:a,de:r,en:s,fr:l,it:d,ja:c,pt:u},f=e=>v[e]},93959:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_});var n=i(24643),o=i(67518),a=i(95197),r=i(40099),s=i(47162),l=i(58305),d=i(90341),c=i(46095),u=i(13580),p=i(25616),g=i(56066);const _=(0,r.memo)((function(e){const{useLargeToggle:t=!1,tooltipOffset:i=-11,videoId:_,playMode:m,isVideoEnded:h,handleNextVideo:v,hideTooltip:f,iconSize:y}=e,{colors:b}=(0,o.u)(),x=(0,p.s)(),k=(0,d.eu)(),w=(0,d.J3)(),S="rgba(255, 255, 255, 1)",C=(0,r.useMemo)((()=>({background:t?b.ConstBGInverse3:b.ConstBGInverse1,paddingInlineStart:"12px",paddingInlineEnd:"12px",fontWeight:500,fontSize:"14px",lineHeight:"18px",display:f?"none":""})),[t,b.ConstBGInverse3,b.ConstBGInverse1]),j=(0,r.useCallback)((()=>{g.p.handleClickAutoScroll({play_mode:m,group_id:_},!k),w.toggleAutoScroll(),h&&v&&v()}),[m,_,k,w,v]),T=(0,r.useCallback)((()=>{g.p.handleHoverAutoScroll({play_mode:m,group_id:_},null!=k&&k)}),[m,_,k]);return(0,n.jsx)(a.m,{fullscreenAdjust:!0,overlay:x(k?"pcWeb_autoScroll_on":"pcWeb_autoScroll_off"),overlayInnerStyle:C,arrow:!1,align:{offset:[0,i]},children:(0,n.jsx)(s.v,{onClick:j,onMouseDown:l.dG,onMouseEnter:T,useLargeToggle:t,children:k?(0,n.jsx)(c.A,{fontSize:null!=y?y:t?20:21,style:{fill:S}}):(0,n.jsx)(u.A,{fontSize:null!=y?y:t?20:21,style:{fill:S}})})})}))},47162:(e,t,i)=>{"use strict";i.d(t,{H:()=>r,v:()=>a});var n=i(62186),o=i(72153);const a=(0,n.default)("div",{target:"etnnns70"})((({theme:{colors:e},useLargeToggle:t})=>({width:t?"40px":"24px",height:t?"40px":"24px",background:t?e.ConstBGInverse4:"transparent",borderRadius:t?"50%":"unset",":hover":{background:t?e.ConstBGInverse3:"transparent"},display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"})),(({theme:{direction:e}})=>(0,o.mp)({direction:e,end:"66px"})),"label:DivAutoScrollButtonContainer;"),r=(0,n.default)("div",{target:"etnnns71"})({marginInlineStart:"14px",display:"flex"},"label:DivSwitchContainer;")},54344:(e,t,i)=>{"use strict";i.d(t,{W:()=>x});var n=i(58632),o=i(24643),a=i(40099),r=i(62186),s=i(75431),l=i(92846);const d="900ms",c=(0,s.i7)({"0%":{transform:"scale(1)"},"50%":{transform:"scale(.9)"},"100%":{transform:"scale(1)"}}),u=(0,s.i7)({"0%":{transform:"scale(1)"},"40%":{transform:"scale(1.1)"},"45%":{transform:"scale(1.11)"},"95%":{transform:"scale(1)"},"100%":{transform:"scale(1)"}}),p=(0,r.default)("div",{target:"e7u9pde0"})((({showRing:e=!0,theme:t,isAnimating:i=!1})=>({borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative",borderWidth:1,borderStyle:"solid",width:"100%",height:"100%",borderColor:e&&!i?t.colors.Primary:"transparent","::after":i?{content:'""',position:"absolute",borderRadius:"50%",top:0,left:0,right:0,bottom:0,border:"1px solid #FF0050",animation:`${u} ${d} ease-out infinite`}:{}})),"label:DivContainer;"),g=(0,r.default)("div",{target:"e7u9pde1"})((({isAnimating:e=!1,isShowLive:t=!1})=>[{overflow:"hidden",borderRadius:"50%",width:t?"90%":"100%",height:t?"90%":"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},e?{animation:`${c} ${d} ease-out infinite`}:null]),"label:DivAvatarWrapper;"),_=(0,r.default)(l.e,{target:"e7u9pde2"})((({enable:e,theme:{colors:t}})=>[{borderColor:t.LineSecondary,borderWidth:"0.5px",cursor:e?"pointer":"unset",backgroundColor:"rgba(136, 136, 136, 0.5)"}]),"label:StyledAvatar;"),m=(0,r.default)("span",{target:"e7u9pde3"})((({theme:e,isSmallerBadge:t})=>({width:t?"25px":"33px",height:t?"18px":"24px",borderRadius:"8px",position:"absolute",background:"linear-gradient(183.16deg, #FD1A69 8.16%, #EE3392 104.17%)",top:"-9px",left:"50%",transform:"translateX(-50%)",wordBreak:"keep-all",textAlign:"center",lineHeight:t?"28px":"36px",fontSize:t?"6px":"9px",color:e.colors.ConstTextInverse,fontWeight:500})),"label:SpanLiveBadge;");var h=i(60484),v=i(49057),f=i(71281),y=i(47172),b=i(8227);const x=function(e){var{className:t,isShowLive:i=!0,size:r=32,isShowLiveTag:s=!0,e2eTag:l,isSmallerBadge:d}=e,c=(0,n.__rest)(e,["className","isShowLive","size","isShowLiveTag","e2eTag","isSmallerBadge"]);const u=i?r-6:r,x=(0,h.L$)((0,v.W)((()=>["abTestVersion"]),[])),{abTestVersion:k}=x,w=(0,f.qt)(k,"webapp_live_avator_animation"),S=(0,y.useHistory)(),C=(0,a.useMemo)((()=>{const{pathname:e}=S.location,t=(0,y.matchPath)(e,{path:b.vI.liveRoom,exact:!0});return"v1"===w&&i&&!t}),[w,i,S]);return(0,o.jsx)(p,{isAnimating:C,size:r,className:t,"data-e2e":l,showRing:i,style:{width:r,height:r},children:(0,o.jsxs)(g,{isShowLive:i,isAnimating:C,children:[(0,o.jsx)(_,Object.assign({enable:!0,size:u},c,{isAnimating:C})),i&&s&&(0,o.jsx)(m,{isSmallerBadge:d,children:"LIVE"})]})})}},4538:(e,t,i)=>{"use strict";i.d(t,{i:()=>y});var n,o=i(58632),a=i(24643),r=i(25616),s=i(75431),l=i(62186),d=i(72153),c=i(92846);!function(e){e[e.UserFeed=0]="UserFeed",e[e.Feed=1]="Feed",e[e.Browser=2]="Browser",e[e.List=3]="List",e[e.UserPage=4]="UserPage",e[e.Search=5]="Search",e[e.RecommendList=6]="RecommendList"}(n||(n={}));const u="1800ms",p=(0,s.i7)({"0%":{transform:"scale(.95)"},"50%":{transform:"scale(.9)"},"100%":{transform:"scale(.95)"}}),g=(0,s.i7)({"0%":{transform:"scale(1)"},"40%":{transform:"scale(1.15)"},"45%":{transform:"scale(1.16)"},"95%":{transform:"scale(1)"},"100%":{transform:"scale(1)"}}),_=(0,l.default)("svg",{target:"e1vl87hj0"})({position:"absolute"},"label:SvgRoundCircle;"),m=(0,l.default)("div",{target:"e1vl87hj1"})({position:"relative",display:"flex",alignItems:"center",justifyContent:"center"},(({isAnimating:e})=>e?{":after":{content:'""',position:"absolute",left:1,top:1,right:1,bottom:1,borderRadius:"50%",border:"1px solid rgba(255, 119, 146, .5)",animation:`${g} ${u} ease-out infinite`,boxShadow:"0 -0.5px 0.5px 0.5px rgba(255,119,146,.5)"}}:null),"label:DivContainer;"),h=(0,l.default)(c.e,{target:"e1vl87hj2"})((({enable:e,theme:{colors:t},isAnimating:i})=>[{borderColor:t.LineSecondary,borderWidth:"0.5px",cursor:e?"pointer":"unset",backgroundColor:"rgba(136, 136, 136, 0.5)"},i?{animation:`${p} ${u} ease-out infinite`,animationDelay:".9s"}:null]),"label:StyledAvatar;"),v=(0,l.default)("span",{target:"e1vl87hj3"})((({theme:e,isOnTop:t=!1,isBiggerBadge:i=!1})=>[(0,d.zy)({theme:e,typography:"P4",fontWeight:"bold",color:"ConstTextInverse"}),{position:"absolute",background:"linear-gradient(131.17deg, #FF1764 0%, #ED3495 94.15%)",top:t?"-6px":"unset",left:"50%",transform:"translateX(-50%)",wordBreak:"keep-all",zIndex:1},i?{height:"26px",lineHeight:"21px",padding:"1px 8px",bottom:t?"unset":"-8px",border:`2px solid ${e.colors.BGPrimary}`,borderRadius:"5px"}:{height:"15px",lineHeight:"16px",padding:"0 4px",bottom:t?"unset":"-2px",borderRadius:"2px"}]),"label:SpanLiveBadge;"),f=function({size:e=48}){return(0,a.jsxs)(_,{width:e,height:e,viewBox:`0 0 ${e} ${e}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("circle",{cx:e/2,cy:e/2,r:e/2-.75,stroke:"url(#paint0_linear)",strokeWidth:"1.5"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear",x1:-20.9902*e/48,y1:24*e/48,x2:27.0098*e/48,y2:65.9805*e/48,gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#FF1764"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#ED3495"})]})})]})},y=function(e){var{className:t,needAnimation:i=!1,isShowLive:n=!0,size:s=32,isShowLiveTag:l=!0,isTagShowingOnTop:d=!1,e2eTag:c,isBiggerBadge:u}=e,p=(0,o.__rest)(e,["className","needAnimation","isShowLive","size","isShowLiveTag","isTagShowingOnTop","e2eTag","isBiggerBadge"]);const g=(0,r.s)(),_=n&&i,y=n?s-6:s,b=_?s-4:s;return(0,a.jsxs)(m,{isAnimating:_,className:t,"data-e2e":c,style:{width:s,height:s},children:[n&&(0,a.jsx)(f,{size:b}),(0,a.jsx)(h,Object.assign({isAnimating:_,enable:!0,size:y},p)),n&&l&&(0,a.jsx)(v,{isOnTop:d,isBiggerBadge:u,children:g("LIVE")})]})}},7772:(e,t,i)=>{"use strict";i.d(t,{k:()=>v});var n=i(24643),o=i(67518),a=i(95197),r=i(40099),s=i(30866),l=i(58305),d=i(25616),c=i(58542),u=i(66458),p=i(46241),g=i(77976),_=i(57317),m=i(32125);const h=(0,g.w)(s.X),v=(0,r.memo)((function(e){const{useLargeToggle:t=!1,tooltipOffset:i=-11,hideTooltip:s,iconSize:g,item:v,playMode:f}=e,{colors:y}=(0,o.u)(),b=(0,d.s)(),x=(0,u.K)(),k=(0,_.JD)((e=>e.showingBrowserMode),m.bN),w=(0,p.Z9)((e=>e.isOpen),m.bN),S=(0,r.useMemo)((()=>({background:t?y.ConstBGInverse3:y.ConstBGInverse1,paddingInlineStart:"12px",paddingInlineEnd:"12px",fontWeight:500,fontSize:"14px",lineHeight:"18px",display:s?"none":""})),[t,y.ConstBGInverse3,y.ConstBGInverse1,s]),C=(0,r.useMemo)((()=>({author_id:null==v?void 0:v.authorId,group_id:null==v?void 0:v.id,play_mode:f})),[v,f]),j=(0,r.useCallback)((()=>{x.setIsCaptionModalOn(!0)}),[x]);return(0,n.jsx)(a.m,{fullscreenAdjust:!0,overlay:b("claSeeTranslation_fyp_longPressPanel_captionsLabelV2"),overlayInnerStyle:S,arrow:!1,align:{offset:[0,i]},children:(0,n.jsx)(h,{onClick:j,onMouseDown:l.dG,useLargeToggle:t,etImpression:{etName:"show_captions_button",etParams:C,unobserveAfterIntersect:!0,skip:"one_column"===f&&(k||w)},etClick:{etName:"click_captions_button",etParams:C},children:(0,n.jsx)(c.qY7,{style:{fill:"rgba(255, 255, 255, 1)",width:null!=g?g:t?20:21,height:null!=g?g:t?20:21}})})})}))},83600:(e,t,i)=>{"use strict";i.d(t,{S:()=>g});var n=i(24643),o=i(40099),a=i(30866),r=i(27383),s=i(66458),l=i(67416),d=i(92502),c=i(91286),u=i(58305),p=i(53438);const g=(0,o.memo)((function(e){var t;const{item:i}=e,{enabledClosedCaption:g}=(0,r.vN)(),_=(0,r.MQ)(),[{currentCaption:m},h]=(0,s.JE)(),v=(0,l.l)(null!==(t=null==i?void 0:i.id)&&void 0!==t?t:""),{selectedTranslationLanguage:f}=(0,d.RD)(),y=(0,p.mx)(i),b=!!(null==i?void 0:i.ad_info),x=(0,c.Jl)(i),k=(g||_)&&v&&m.length>0&&!y&&!b&&!x,w=(0,o.useCallback)((e=>{h.setIsCaptionModalOn(!0),h.setCaptionModalEnterMethod("click_subtitle"),(0,u.Gu)(e)}),[h]);return(0,o.useEffect)((()=>{h.setCurrentCaption("")}),[null==i?void 0:i.id,f]),k?(0,n.jsx)(a.Z,{onClick:w,children:m}):null}))},27383:(e,t,i)=>{"use strict";i.d(t,{MQ:()=>x,Vi:()=>b,WH:()=>w,ck:()=>k,vN:()=>y});var n=i(60484),o=i(58305),a=i(23294),r=i(71281),s=i(49057),l=i(93482),d=i(92502),c=i(66458),u=i(11072),p=i(67416),g=i(60072),_=i(45347),m=i(40099),h=i(20362),v=i(57431),f=i(32125);const y=()=>{var e;const{abTestVersion:t}=(0,n.L$)((0,s.W)((()=>["abTestVersion"]),[])),i=null!==(e=(0,r.qt)(t,"video_closed_caption"))&&void 0!==e?e:"v0",a="v0"!==i,d="v1"===i||"v2"===i;return"v0"===i&&(0,o.sc)(l.N),{enabledClosedCaption:a,isEntranceInMoreMenu:d}},b=()=>{var e;const{abTestVersion:t}=(0,n.L$)((0,s.W)((()=>["abTestVersion"]),[])),i=null!==(e=(0,a.S)(t,"video_closed_caption_v2"))&&void 0!==e?e:"v0",r=(0,d.U1)();(0,m.useEffect)((()=>{"-1"===(0,o._S)(l.N,"-1")&&r.setIsCaptionOn("v1"===i,"",!1)}),[i])},x=()=>{var e;const{abTestVersion:t}=(0,n.L$)((0,s.W)((()=>["abTestVersion"]),[]));return"v0"!==(null!==(e=(0,r.qt)(t,"enable_post_translation"))&&void 0!==e?e:"v0")},k=(e,t)=>{var i;const{id:o="",video:a}=(0,n.L$)(e),{claInfo:r}=(0,n.L$)(a),{enabledClosedCaption:s}=y(),l=x(),p=(0,c.K)(),{selectedTranslationLanguage:g,isReady:h}=(0,d.RD)((e=>({selectedTranslationLanguage:e.selectedTranslationLanguage,isReady:e.isReady}))),v=(0,u.xr)(),f=(0,u.sX)(o),b=(0,u.xL)(o),k=(0,u.Vk)(o),w=(0,u.xJ)(o),S=null===(i=null==r?void 0:r.originalLanguageInfo)||void 0===i?void 0:i.languageCode,C=f?g:S,j=(0,m.useMemo)((()=>{if(!r||!r.captionInfos)return[];const e=r.captionInfos.map((e=>{var t,i,n,o;return{id:null!==(t=e.languageID)&&void 0!==t?t:"",language:null!==(i=e.languageCode)&&void 0!==i?i:"",url:null!==(n=e.urlList)&&void 0!==n?n:[],urlExpire:null!==(o=e.expire)&&void 0!==o?o:""}}));return w&&e.push(w),e}),[r,w]),T=(0,m.useMemo)((()=>j.filter((e=>e.language===C))),[j,C]),I=(0,m.useMemo)((()=>{var e,t;return null===(t=null===(e=null==r?void 0:r.captionInfos)||void 0===e?void 0:e.filter((e=>e.isOriginalCaption))[0])||void 0===t?void 0:t.claSubtitleID}),[r]),P=(0,m.useMemo)((()=>0===j.length?null:T[0]),[j,T]),A=(0,m.useCallback)((e=>{const{type:i,texts:n=[],error:a}=e;if("update"===i)if(n.length>0){const{text:e}=n[0];p.setCurrentCaption(e.join(""))}else p.setCurrentCaption("");else a&&_.lN.handleCaptionError({error_msg:a.message,group_id:o,play_mode:t,caption_url:null==P?void 0:P.url})}),[p,o,t,P]);return(0,m.useEffect)((()=>{l&&b&&k&&0===T.length&&I&&h&&v.getSubtitleTranslation({target_language:g,item_id:o,subtitle_id:I})}),[l,b,k,T,I,o,v,g,h]),s||l?{subtitleList:j,curSubtitle:P,handleSubtitleCallback:A}:{}},w=e=>{const t=(0,p.l)(e),i=(0,g.F3)((t=>t[e])),{language:n}=(0,v.x)(),{captionOptions:o,captionLanguage:a}=(0,h.g)(i),{translationDisableLanguages:r,selectedTranslationLanguage:s,isMasterTranslationOn:l,isReady:c}=(0,d.RD)((e=>({translationDisableLanguages:e.translationDisableLanguages,selectedTranslationLanguage:e.selectedTranslationLanguage,isMasterTranslationOn:e.isMasterTranslationOn,isReady:e.isReady})),f.bN),_=(0,u.sX)(e),m=(0,u.M)(e);return{caption_mode:t?"on":"off",caption_options:o,caption_language:a,always_translate_post_mode:l?"on":"off",do_not_translate_mode:0===r.length?"no_selection":"has_selection",translate_into_mode:s===n?"default_language":"user_selected_language",see_original_show:_&&m&&c?"yes":"no",see_translation_show:!_&&m&&c?"yes":"no"}}},30866:(e,t,i)=>{"use strict";i.d(t,{X:()=>r,Z:()=>a});var n=i(62186),o=i(72153);const a=(0,n.default)("div",{target:"e15oqmov0"})({color:"white",marginBottom:"4px",zIndex:1,background:"rgba(0, 0, 0, 0.3)",fontSize:"0.875rem",borderRadius:"4px",fontWeight:500,maxWidth:"min(350px, 100%)",lineHeight:"135%",cursor:"pointer",width:"max-content",padding:"4px 6px"},"label:DivVideoClosedCaption;"),r=(0,n.default)("div",{target:"e15oqmov1"})((({theme:{colors:e},useLargeToggle:t})=>({width:t?"40px":"24px",height:t?"40px":"24px",background:t?e.ConstBGInverse4:"transparent",borderRadius:t?"50%":"unset",":hover":{background:t?e.ConstBGInverse3:"transparent"},display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"})),(({theme:{direction:e}})=>(0,o.mp)({direction:e,end:"66px"})),"label:DivCloseCaptionButtonContainer;")},20362:(e,t,i)=>{"use strict";i.d(t,{g:()=>o});var n=i(60484);const o=e=>{var t,i,o,a,r;const{video:s}=(0,n.L$)(e),{claInfo:l}=(0,n.L$)(s);let d="show captions";return!(null==l?void 0:l.captionInfos)&&(d="show captions (unavailable)"),(null===(i=null===(t=null==l?void 0:l.captionInfos)||void 0===t?void 0:t[0])||void 0===i?void 0:i.isAutoGen)&&(d="show captions auto generate"),{captionOptions:d,captionLanguage:null!==(r=null===(a=null===(o=null==l?void 0:l.captionInfos)||void 0===o?void 0:o[0])||void 0===a?void 0:a.language)&&void 0!==r?r:""}}},63769:(e,t,i)=>{"use strict";i.d(t,{Y:()=>b});var n=i(24643),o=i(40099),a=i(11732),r=i(71281),s=i(49057),l=i(62186);const d=(0,l.default)("div",{target:"eiz8q0n0"})({fontSize:"14px",fontWeight:"bold",textDecoration:"underline",cursor:"pointer"},"label:DivButton;"),c=(0,l.default)("div",{target:"eiz8q0n1"})({fontSize:"14px",fontWeight:"bold",color:"red",cursor:"pointer",marginLeft:"10px"},"label:DivCloseButton;"),u=(0,l.default)("span",{target:"eiz8q0n2"})({color:"red"},"label:SpanOverride;"),p=(0,l.default)("div",{target:"eiz8q0n3"})({display:"flex"},"label:DivABTestItem;"),g=(0,l.default)("div",{target:"eiz8q0n4"})({maxHeight:"calc(100vh - 320px)",overflow:"auto",marginBottom:"13px",marginLeft:"6px"},"label:DivABTestSection;"),_=(0,l.default)("div",{target:"eiz8q0n5"})({maxHeight:"130px",overflow:"auto",marginBottom:"15px",marginLeft:"6px"},"label:DivFeatureGate;"),m=(0,l.default)("div",{target:"eiz8q0n6"})({fontSize:"14px",fontWeight:"bold",marginLeft:"6px"},"label:DivTitle;"),h=(0,l.default)("div",{target:"eiz8q0n7"})((({isMobile:e})=>({position:"fixed",left:"20px",bottom:e?"60px":"20px",zIndex:1e3,background:"#bae0ff",opacity:"0.8",color:"black",fontSize:"14px",padding:"5px 10px",borderRadius:"3px",marginLeft:"4rem"})),"label:DivWrapper;"),v=(0,l.default)("div",{target:"eiz8q0n8"})({display:"flex"},"label:ButtonWrapper;"),f=(0,o.memo)((function({name:e}){var t;const{abTestVersion:i}=null!==(t=(0,s.W)((()=>["abTestVersion"]),[]))&&void 0!==t?t:{},o=(0,r.qt)(i,e),a=(0,r.V7)(i,e);return(0,n.jsx)(u,{children:a!==o&&`, OverRide Value:${o}`})})),y=(0,o.memo)((function({name:e}){const t=(0,r.TQ)(e);return(0,n.jsx)("div",{children:`${e}: ${t?"On":"Off"}`})})),b=(0,o.memo)((function({isMobile:e}){var t;const[i,l]=(0,o.useState)(!0),[u,b]=(0,o.useState)(!1),{isDebugPanelEnable:x}=(0,r._F)(),{abTestVersion:k}=null!==(t=(0,s.W)((()=>["abTestVersion"]),[]))&&void 0!==t?t:{},w=(0,o.useCallback)((()=>{b(!u)}),[u]);return x&&i?(0,n.jsxs)(h,{isMobile:e,children:[u&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m,{children:"AB Test"}),(0,n.jsx)(g,{children:k&&Object.keys(k.parameters).map(((e,t)=>{const i=k.parameters[e],o=[];return Object.keys(i).forEach((e=>{o.push(`${e}: ${i[e]}`)})),(0,n.jsxs)(p,{children:[(0,n.jsx)("div",{children:`${e}: ${o.join(", ")}`}),(0,n.jsx)(f,{name:e})]},t)}))}),(0,n.jsx)(m,{children:"Feature Gates"}),(0,n.jsx)(_,{children:a.$v.map(((e,t)=>(0,n.jsx)(y,{name:e},t)))})]}),(0,n.jsxs)(v,{children:[(0,n.jsx)(d,{type:"button",onClick:w,children:u?"Hide Debug":"Show Debug"}),(0,n.jsx)(c,{type:"button",onClick:()=>{l(!1)},children:"x"})]})]}):null}))},62714:(e,t,i)=>{"use strict";i.d(t,{t:()=>C});var n=i(24643),o=i(95481),a=i(25616),r=i(40099),s=i(57061),l=i.n(s),d=i(11432),c=i(62186),u=i(72153),p=i(23638),g=i(62541),_=i(97397);const m=(0,c.default)("div",{target:"e1j305l60"})({display:"flex",flexDirection:"column",alignItems:"center",gap:"24px",width:"472px",padding:"48px 32px 34px",textAlign:"center"},"label:DivContainer;"),h=(0,c.default)("p",{target:"e1j305l61"})((({theme:e})=>[{marginBottom:"16px",fontSize:"24px",lineHeight:"18px"},(0,u.zy)({theme:e,fontWeight:"bold"})]),"label:PTitle;"),v=(0,c.default)("p",{target:"e1j305l62"})((({theme:e})=>[{fontSize:"16px",lineHeight:"24px"},(0,u.zy)({theme:e,color:"TextSecondary"})]),"label:PDesc;"),f=(0,c.default)("div",{target:"e1j305l63"})({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"24px"},"label:BodyContainer;"),y=(0,c.default)("div",{target:"e1j305l64"})((({theme:{colors:e}})=>[{padding:"32px 124px",borderRadius:"8px",border:"0.5px solid",borderColor:e.LineSecondary}]),"label:QrContainer;"),b=(0,c.default)("div",{target:"e1j305l65"})({display:"flex",flexDirection:"column",alignItems:"center",gap:"4px"},"label:DescContainer;"),x=(0,c.default)("div",{target:"e1j305l66"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"8px"},"label:Description;"),k=(0,c.default)(p.A,{target:"e1j305l67"})((({theme:e})=>[{color:e.colors.TextSecondary}]),"label:StyledIconPersonPlus;"),w=(0,c.default)(g.A,{target:"e1j305l68"})((({theme:{direction:e,colors:t}})=>[{width:"20px",height:"20px",color:t.Primary2},(0,u.mp)({direction:e,marginEnd:6})]),"label:StyledIconVideo;"),S=(0,c.default)(_.y,{target:"e1j305l69"})((({theme:{colors:e}})=>[{height:"40px",fontSize:"14px",display:"flex",alignItems:"center",padding:"0 18px",minWidth:"117px",lineHeight:"24px","> span":{whiteSpace:"nowrap"},backgroundColor:e.BGInput,borderColor:"transparent"}]),"label:StyledButton;"),C=({stickerId:e})=>{const t=(0,a.s)(),[i,s]=(0,r.useState)(!1),c=(0,r.useCallback)((()=>{s(!0),d.e.handleTryEffectModalShow({enter_method:"click"},e)}),[e]),u=(0,r.useCallback)((()=>s(!1)),[]),p=`snssdk1233://openRecord?recordParam=sticker&sticker_id=${e}`;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(S,{onClick:c,size:"medium",children:[(0,n.jsx)(w,{}),(0,n.jsx)("span",{children:t("webApp_effectAnchor_tryEffect")})]}),(0,n.jsx)(o.aF,{visible:i,onClose:u,closeStyle:2,children:(0,n.jsxs)(m,{children:[(0,n.jsx)(h,{children:t("webApp_effectAnchor_scanModal_title")}),(0,n.jsxs)(f,{children:[(0,n.jsx)(y,{children:(0,n.jsx)(l(),{value:p,size:160,style:{background:"white",padding:"8px",borderRadius:"5px"}})}),(0,n.jsxs)(b,{children:[(0,n.jsx)(v,{children:t("webApp_effectAnchor_scanModal_desc1")}),(0,n.jsxs)(x,{children:[(0,n.jsx)(v,{children:t("webApp_effectAnchor_scanModal_desc2")}),(0,n.jsx)(k,{})]}),(0,n.jsx)(v,{children:t("webApp_effectAnchor_scanModal_desc3")})]})]})]})})]})}},23105:(e,t,i)=>{"use strict";i.d(t,{j:()=>h});var n=i(24643),o=i(40099),a=i(65329),r=i(58305),s=i(62186),l=i(72153);const d=(0,s.default)("div",{target:"edkezb90"})((({theme:{colors:e}})=>({width:"100%",height:"100%",display:"flex",flexDirection:"column-reverse",backgroundColor:e.BGPrimary})),"label:DivEmojiSuggestionContainer;"),c=(0,s.default)("ul",{target:"edkezb91"})((({theme:{colors:e}})=>({listStyleType:"none",margin:0,padding:0,order:1,flex:"0 0 38px",borderTop:`1px solid ${e.LineSecondary}`,display:"flex",flexDirection:"row"})),"label:UlNavContainer;"),u=(0,s.default)("div",{target:"edkezb92"})((({theme:{colors:e}})=>({order:2,flex:"1 1 100%",overflowY:"scroll",scrollbarWidth:"none","::-webkit-scrollbar":{width:4},"::-webkit-scrollbar-track":{marginTop:8},"::-webkit-scrollbar-thumb":{borderRadius:2,backgroundColor:e.LineSecondary},":hover::-webkit-scrollbar-thumb":{backgroundColor:e.TextQuaternary}})),"label:DivPanelContainer;"),p=(0,s.default)("ul",{target:"edkezb93"})({listStyleType:"none",margin:0,padding:0,width:"100%",height:"100%",display:"flex",flexWrap:"wrap",userSelect:"none","&:focus-visible":{outlineStyle:"auto"}},"label:UlPanelList;"),g=(0,s.default)("li",{target:"edkezb94"})((({theme:e,theme:{colors:t,isDark:i},isActive:n})=>[(0,l.zy)({theme:e,color:"ConstBGInverse",typography:"H4"}),{listStyleType:"none",flex:"0 0 auto",width:40,height:40,lineHeight:"46px",margin:"5px 6px",cursor:"pointer",textAlign:"center",backgroundColor:n?i?t.BGTertiary2:t.BGInput:t.BGPrimary,borderRadius:8,userSelect:"none",":hover":{backgroundColor:t.BGInput}}]),"label:LiItem;"),_=(0,o.memo)((function({emojis:e,onSelect:t}){const i=(0,o.useRef)(-1),a=(0,o.useCallback)((e=>{const t=e.target;if("li"===t.nodeName.toLocaleLowerCase()){const e=t.getAttribute("data-index");i.current=e?Number(e):-1}}),[]),s=(0,o.useCallback)((n=>{(0,r.Gu)(n);const o=i.current;-1!==o&&t(e[o].emoji)}),[e,t]),l=(0,o.useCallback)((i=>n=>{13!==n.keyCode&&32!==n.keyCode||((0,r.Gu)(n),t(e[i].emoji))}),[e,t]);return(0,n.jsx)(p,{id:"emoji-panel-container",onMouseOver:a,onClick:s,role:"tabpanel",tabIndex:0,children:e.map(((e,t)=>(0,n.jsx)(g,{"data-index":t,isActive:!1,tabIndex:0,role:"button","aria-label":e.alias,onKeyDown:l(t),children:e.emoji},e.alias)))})})),m=[{name:"basic",data:a.A,iconIndex:11}],h=(0,o.memo)((function(e){const[t,i]=(0,o.useState)(0),a=(0,o.useCallback)((e=>{(0,r.Gu)(e);const t=e.target;if("li"===t.nodeName.toLocaleLowerCase()){const e=t.getAttribute("data-index");i(e?Number(e):0)}}),[]);return(0,n.jsxs)(d,{id:"emoji-suggestion-container",children:[(0,n.jsx)(c,{onClick:a,role:"tablist",children:m.map((({name:e,data:i,iconIndex:o},a)=>(0,n.jsx)(g,{"data-index":a,isActive:a===t,role:"tab",tabIndex:0,"aria-selected":a===t,"aria-controls":"emoji-panel-container",children:i[o].emoji},e)))}),(0,n.jsx)(u,{children:(0,n.jsx)(_,{emojis:m[t].data,onSelect:e.onSelect},m[t].name)})]})}))},85349:(e,t,i)=>{"use strict";i.d(t,{t:()=>g});var n=i(24643),o=i(94999),a=i(40099),r=i(71615),s=i(70873),l=i(64356),d=i(11654),c=i(33805),u=i(29546);const p=(0,i(62186).default)("div",{target:"e1dc6dvj0"})({height:"100vh",display:"flex",flexDirection:"column"},"label:DivErrorBoundaryContainer;");class g extends a.Component{constructor(){super(...arguments),this.state={isNetOffline:!1,hasError:!1},this._slardar=o.l.getInstance(d.V$),this.handleOnlineStatusChange=()=>{this.setState({isNetOffline:!navigator.onLine})}}get iconElem(){const{hasError:e}=this.state;return e?(0,n.jsx)(r.A,{width:90,height:90,fill:"rgba(128, 130, 133, 1)"}):(0,n.jsx)(s.A,{width:90,height:90,fill:"rgba(128, 130, 133, 1)"})}get text(){const{hasError:e}=this.state;return e?{title:"server_error_title",desc:"server_error_sub",button:"try_again_btn"}:{title:"network_error_title",desc:"network_error_sub",button:"try_again_btn"}}componentDidMount(){window.addEventListener("online",this.handleOnlineStatusChange),window.addEventListener("offline",this.handleOnlineStatusChange)}componentWillUnmount(){window.removeEventListener("online",this.handleOnlineStatusChange),window.removeEventListener("offline",this.handleOnlineStatusChange)}handleRetry(){window.location.reload()}componentDidCatch(e,t){const{onCatchError:i,componentName:n}=this.props,o=window.location.pathname,a=(0,c.oN)(o);i&&i(e);try{this._slardar.captureMessage(`Component render Error: ${e.message}`,"fatal",{page:a,component:null!=n?n:""})}catch(e){console.error("Error occurs when reporting error:",e)}this.setState({hasError:!0})}render(){const{isNetOffline:e,hasError:t}=this.state,{children:i,isMobile:o,customTitle:a,customDesc:r,customButtonText:s,onClickRetry:l,useButton:d=!1,containerStyle:c}=this.props,{t:g}=this.context;if(e||t){const{title:e,desc:t,button:i}=this.text;return o?(0,n.jsx)(p,{children:(0,n.jsx)(u.W,{brightness:0,isFullScreen:!0,iconElem:this.iconElem,title:null!=a?a:g(e),desc:null!=r?r:g(t),buttonText:d?null!=s?s:g(i):void 0,onButtonClick:null!=l?l:this.handleRetry})}):(0,n.jsx)(u.W,{isFullScreen:!0,onButtonClick:null!=l?l:this.handleRetry,iconElem:this.iconElem,title:null!=a?a:g(e),desc:null!=r?r:g(t),buttonText:d?null!=s?s:g(i):void 0,style:c})}return i}}g.contextType=l.Ss},72932:(e,t,i)=>{"use strict";i.d(t,{Y:()=>B});var n=i(24643),o=i(46682),a=i(4474),r=i(40099),s=i(47172),l=i(82850),d=i(11983),c=i(86389),u=i(30721),p=i(25616),g=i(63410),_=i(69e3),m=i(34873);var h=i(49057),v=i(48615),f=i(73770),y=i(2534),b=i(62186),x=i(97397);const k=(0,b.default)("form",{target:"e1igqxe80"})({fontSize:"16px",lineHeight:"22px"},"label:Form;"),w=(0,b.default)("label",{target:"e1igqxe81"})({display:"block"},(({theme:e})=>({fontWeight:e.fontWeights.semiBold})),"label:LabelContent;"),S=(0,b.default)("textarea",{target:"e1igqxe82"})({display:"block",resize:"none",outline:"none",boxSizing:"border-box",width:"100%",height:"148px",marginTop:"12px",padding:"16px 12px 0",borderRadius:"2px"},(({theme:e})=>({color:e.isDark?e.colors.TextReverse:void 0,border:e.isDark?void 0:`1px solid ${e.colors.LineSecondary}`,backgroundColor:e.isDark?e.colors.BGInput:void 0})),(({theme:e})=>({"::-webkit-input-placeholder":{color:e.colors.TextQuaternary}})),"label:TextareaContent;"),C=(0,b.default)("label",{target:"e1igqxe83"})({display:"block",margin:"16px 0 12px"},(({theme:e})=>({fontWeight:e.fontWeights.semiBold})),"label:LabelUpload;"),j=(0,b.default)("div",{target:"e1igqxe84"})({width:"100%",display:"flex",flexWrap:"wrap",marginBottom:"-12px","> div":{height:"60px",width:"60px",margin:"0 12px 12px 0"},img:{width:"60px",height:"60px",aspectRatio:"auto 60 / 60"}},"label:DivUploadContainer;"),T=(0,b.default)(x.y,{target:"e1igqxe85"})({position:"relative",marginTop:"24px",width:"208px"},"label:StyledSubmit;");var I=i(84987);const P={id:"image-ca076a88",use:"image-ca076a88-usage",viewBox:"0 0 25 21",content:'\n
\n