/*! For license information please see webapp-desktop-islands.7b7e568faa1f853f36b0.js.LICENSE.txt */
(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2862],{7399:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(24643),o=n(40099),a=n(84987);const r={id:"right-arrow-5237fc96",use:"right-arrow-5237fc96-usage",viewBox:"0 0 17 16",content:''};function s(e){const t=(0,o.useContext)(a.X);return(0,o.useLayoutEffect)((()=>(t.add(r),()=>{t.remove("right-arrow-5237fc96")})),[]),(0,i.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,i.jsx)("use",{xlinkHref:"#right-arrow-5237fc96"},void 0)}),void 0)}},75972:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(24643),o=n(40099),a=n(84987);const r={id:"header-arrow-f8c49d4b",use:"header-arrow-f8c49d4b-usage",viewBox:"0 0 24 24",content:''};function s(e){const t=(0,o.useContext)(a.X);return(0,o.useLayoutEffect)((()=>(t.add(r),()=>{t.remove("header-arrow-f8c49d4b")})),[]),(0,i.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,i.jsx)("use",{xlinkHref:"#header-arrow-f8c49d4b"},void 0)}),void 0)}},8475:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(24643),o=n(40099),a=n(84987);const r={id:"right-arrow-5237fc96",use:"right-arrow-5237fc96-usage",viewBox:"0 0 17 16",content:''};function s(e){const t=(0,o.useContext)(a.X);return(0,o.useLayoutEffect)((()=>(t.add(r),()=>{t.remove("right-arrow-5237fc96")})),[]),(0,i.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,i.jsx)("use",{xlinkHref:"#right-arrow-5237fc96"},void 0)}),void 0)}},86702:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(24643),o=n(40099),a=n(84987);const r={id:"logo-dark-c4561408",use:"logo-dark-c4561408-usage",viewBox:"0 0 118 42",content:''};function s(e){const t=(0,o.useContext)(a.X);return(0,o.useLayoutEffect)((()=>(t.add(r),()=>{t.remove("logo-dark-c4561408")})),[]),(0,i.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,i.jsx)("use",{xlinkHref:"#logo-dark-c4561408"},void 0)}),void 0)}},93678:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(24643),o=n(40099),a=n(84987);const r={id:"logo-light-0ca3c974",use:"logo-light-0ca3c974-usage",viewBox:"0 0 118 30",content:''};function s(e){const t=(0,o.useContext)(a.X);return(0,o.useLayoutEffect)((()=>(t.add(r),()=>{t.remove("logo-light-0ca3c974")})),[]),(0,i.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,i.jsx)("use",{xlinkHref:"#logo-light-0ca3c974"},void 0)}),void 0)}},77734:(e,t,n)=>{"use strict";n.d(t,{GC:()=>S,xX:()=>x,Ak:()=>w,VB:()=>b});var i,o=n(58632),a=n(64162),r=n(4126),s=n(93995),l=n(23999),c=n(26324),d=n(62564),u=n(8536),p=n(98812),v=n(95719),g=n(57431),m=n(16469),h=n(50970),_=n(38203),f=n(39228);!function(e){e[e.Int=1]="Int",e[e.Bool=2]="Bool",e[e.String=3]="String"}(i||(i={}));let y=class{constructor(e){this.fetch=e}postScheduleRecord(e){return this.fetch.post("/api/v1/post_schedule/ack/",{query:Object.assign(Object.assign({},e),{tt_csrf_token:this.fetch.csrfToken})})}updateRedDot(e){return this.fetch.post("/api/reddot/report",{query:Object.assign({},e)})}queryLongVideoTooltipVisibility(e){return this.fetch.post("/tiktok/popup/display/v1/",{query:Object.assign({},e)})}updateLongVideoToolTipVisibility(e){return this.fetch.post("/tiktok/popup/report/v1/",{query:Object.assign({},e)})}};y=(0,o.__decorate)([(0,_._)(),(0,o.__metadata)("design:paramtypes",[f.pM])],y);const b="upload-long-video",w="series-tip",x="upload-podcast";var T;!function(e){e[e.Schedule=0]="Schedule",e[e.LongVideo=1]="LongVideo",e[e.Podcast=2]="Podcast"}(T||(T={}));let S=class extends a.E{constructor(e,t){var n,i,o,a,r;super(),this.defaultState={tooltipPriority:2,uploadTooltipType:0,maxPublishVideoDuration:-60,redDot:null!==(r=null===(a=null===(o=null===(i=null===(n=this.home)||void 0===n?void 0:n.state)||void 0===i?void 0:i.appContext)||void 0===o?void 0:o.user)||void 0===a?void 0:a.redDot)&&void 0!==r?r:[]},this.service=e,this.home=t}setUploadLongVideoTooltip(e,{hasLongVideoPermission:t,uploadProfileMaxPublishVideoDuration:n,hasPosted1MinPlusVideo:i}){const o=window.location.pathname.includes("/upload");if(t&&i&&!m.bc.getItem(b)&&!o&&n>0)return e.tooltipPriority=4,e.uploadTooltipType=1,void(e.maxPublishVideoDuration=n)}triggerUploadLongVideoTooltip(e){var t,n;if(!window.location.pathname.includes("/upload")){const i=(0,g.x)();e.tooltipPriority=4,e.uploadTooltipType=1,e.maxPublishVideoDuration=null!==(n=null===(t=i.user)||void 0===t?void 0:t.longVideoMinutes)&&void 0!==n?n:0}}setTooltipPriority(e,t){e.tooltipPriority=t}deleteTypeRedDot(e,t){const n=[...e.redDot],i=n.indexOf(t);n.splice(i,1),e.redDot=n}checkLongVideoTooltipStatus(e){return e.pipe((0,d.T)((()=>{var e,t,n,i,o,a,r,s,l,c,d;const u=(0,g.x)(),p=null!==(t=null===(e=u.user)||void 0===e?void 0:e.longVideoMinutes)&&void 0!==t?t:0,v=(()=>{var e,t,n,i;const o=(0,g.x)();return Boolean(null===(i=null===(n=null===(t=null===(e=null==o?void 0:o.abTestVersion)||void 0===e?void 0:e.abTestApp)||void 0===t?void 0:t.parameters)||void 0===n?void 0:n.tiktok)||void 0===i?void 0:i.long_video_popup_display_optimization)})();if(!v){const e=Boolean((null===(n=u.user)||void 0===n?void 0:n.longVideoMinutes)&&(null===(i=u.user)||void 0===i?void 0:i.longVideoMinutes)>1),t=null===(o=u.abTestVersion)||void 0===o?void 0:o.parameters,r=Boolean(null===(a=t.tiktok)||void 0===a?void 0:a.has_posted_1minplus);return this.getActions().setUploadLongVideoTooltip({hasLongVideoPermission:e,uploadProfileMaxPublishVideoDuration:p,hasPosted1MinPlusVideo:r})}const m=parseInt(null!==(l=null===(s=null===(r=null==u?void 0:u.user)||void 0===r?void 0:r.longVideoPopupDisplayedStatus)||void 0===s?void 0:s.display_history)&&void 0!==l?l:"-1",10),h=parseInt(null!==(d=localStorage.getItem(`longvideo_popup_already_displayed_local_${null===(c=null==u?void 0:u.user)||void 0===c?void 0:c.uid}`))&&void 0!==d?d:"-1",10);let _=null,f=!1;return-1===m&&-1!==h?(f=!0,_=h):_=m,_
this.service.queryLongVideoTooltipVisibility({permission_type:e.permission_type}).pipe((0,p.H)((t=>{const n=t;return n&&0===n.status_code&&n.need_to_display?(0,l.of)(this.getActions().triggerUploadLongVideoTooltip(),this.getActions().updateLongVideoTooltip({permission_type:e.permission_type})):(0,l.of)(this.noop())}))))))}updateLongVideoTooltip(e){return e.pipe((0,u.Z)((e=>this.service.updateLongVideoToolTipVisibility({permission_type:e.permission_type}).pipe((0,d.T)((t=>{var n;if(t&&0===t.status_code){const t=(0,g.x)();try{localStorage.setItem(`longvideo_popup_already_displayed_local_${null===(n=null==t?void 0:t.user)||void 0===n?void 0:n.uid}`,`${e.permission_type}`)}catch(e){}}return this.noop()}))))))}postScheduleRecord(e){return e.pipe((0,u.Z)((e=>this.service.postScheduleRecord(e).pipe((0,d.T)((()=>this.noop()))))))}updateRedDot(e){return e.pipe((0,u.Z)((({redirect:e,type:t,isElectronApp:n=!1})=>this.service.updateRedDot({type:t}).pipe((0,v.M)((()=>{e&&(n?window.open(e,"_blank"):location.href=e)})),(0,d.T)((()=>this.getActions().deleteTypeRedDot(t)))))))}};(0,o.__decorate)([(0,r.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Object]),(0,o.__metadata)("design:returntype",void 0)],S.prototype,"setUploadLongVideoTooltip",null),(0,o.__decorate)([(0,r.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object]),(0,o.__metadata)("design:returntype",void 0)],S.prototype,"triggerUploadLongVideoTooltip",null),(0,o.__decorate)([(0,r.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Number]),(0,o.__metadata)("design:returntype",void 0)],S.prototype,"setTooltipPriority",null),(0,o.__decorate)([(0,r.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Number]),(0,o.__metadata)("design:returntype",void 0)],S.prototype,"deleteTypeRedDot",null),(0,o.__decorate)([(0,r.Mj)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[c.c]),(0,o.__metadata)("design:returntype",void 0)],S.prototype,"checkLongVideoTooltipStatus",null),(0,o.__decorate)([(0,r.Mj)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[c.c]),(0,o.__metadata)("design:returntype",void 0)],S.prototype,"queryLongVideoTooltip",null),(0,o.__decorate)([(0,r.Mj)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[c.c]),(0,o.__metadata)("design:returntype",void 0)],S.prototype,"updateLongVideoTooltip",null),(0,o.__decorate)([(0,r.Mj)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[c.c]),(0,o.__metadata)("design:returntype",void 0)],S.prototype,"postScheduleRecord",null),(0,o.__decorate)([(0,r.Mj)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[c.c]),(0,o.__metadata)("design:returntype",void 0)],S.prototype,"updateRedDot",null),S=(0,o.__decorate)([(0,s.n)("Header"),(0,o.__metadata)("design:paramtypes",[y,h.L])],S)},21683:(e,t,n)=>{"use strict";n.d(t,{Db:()=>j,L2:()=>I,YS:()=>A,oY:()=>E,r7:()=>P});var i=n(41271),o=n(40099),a=n(47172),r=n(58305),s=n(45297),l=n(78662),c=n(34012),d=n(88920),u=n(96689),p=n(25616),v=n(49057),g=n(71281),m=n(54888),h=n(75792),_=n(8615),f=n(39505);const y=5e3,b=5,w="auto_show";var x;!function(e){e.Sidebar="sidebar",e.Footer="footer"}(x||(x={}));const T=[{title:"terms",key:"terms-of-service",href:""},{title:"privacy",key:"privacy-policy-row",href:""},{title:"accessibility",key:"accessibility",href:""},{title:"copyright",key:"copyright-policy",href:""}],S="accessibility",k="copyright-policy";function A(){const{pathname:e}=(0,a.useLocation)();return!!e.startsWith("/coin")}function O(){const e=(0,r._S)(s._),{count:t,date:n}=e?JSON.parse(e):{date:"",count:0};return{todayShowed:(new Date).toDateString()===new Date(Number(n)).toDateString(),count:t}}function E(){const{pathname:e}=(0,a.useLocation)(),t=(0,l.Fj)(e)||(0,l.Tc)(e);return(0,c.Ig)()&&t}function P(e=0){const t=(0,o.useRef)(0),n=(0,o.useRef)(0),i=(0,o.useRef)(0),a=(0,o.useRef)(!1),[l,c]=(0,o.useState)(!1),{tooltipPriority:d,handlePopoverEnd:u,handlePopoverInitial:p}=(0,f.N)(2);(0,o.useEffect)((()=>{2===d&&a.current&&(c(!0),i.current=window.setTimeout((()=>{c(!1),u(),a.current=!1}),y))}),[d]);const v=(0,o.useCallback)((e=>{e!==w?c(!0):2===d&&(c(!0),i.current=window.setTimeout((()=>{c(!1),u(),a.current=!1}),y)),window.clearTimeout(n.current),window.clearTimeout(t.current);const{todayShowed:o,count:l}=O();!o&&l{const{todayShowed:e,count:t}=O();if(a.current=!e&&t{p(),v(w)}),e)}else u();return()=>{window.clearTimeout(n.current),window.clearTimeout(i.current)}}),[]);const g=(0,o.useCallback)((()=>{t.current=window.setTimeout((()=>{c(!1)}),e)}),[e]),m=(0,o.useCallback)((()=>{(0,r.AP)(s._,JSON.stringify({date:(new Date).getTime(),count:b+1}))}),[]);return{active:l,handleMouseEnter:v,handleMouseLeave:g,handleEndAutoShow:m}}function I(e){const t=new Date,n={redirect_url:"undefined"==typeof window?"":window.location.href,loginPath:h.tH.linkPhoneOrEmail,isLinkPhoneOrEmail:!0},i=(0,d.ZO)(),a=(0,u.K)(n);(0,o.useEffect)((()=>{const n=function(){const e=(0,r._S)(s.gM),t=new Date;if(e){const n=new Date(parseInt(e,10));if((n.getDate()===t.getDate()||n.getDate()===t.getDate()-1)&&n.getMonth()===t.getMonth()&&n.getFullYear()===t.getFullYear())return!0}return!1}();if(!n&&e&&i)try{a(),_._.handleLinkPhoneOrEmailPopupShow({enterMethod:"periodic"}),(0,r.AP)(s.gM,t.getTime().toString())}catch(e){console.log("show link phone pop up failed")}}),[e,i])}function C(e){var t;return e?Object.assign(Object.assign({},e),{children:null!==(t=null==e?void 0:e.children.filter((({placements:e=[]})=>0===e.length||e.includes("sidebar"))))&&void 0!==t?t:[]}):void 0}function j(){var e,t;const n=(0,p.s)(),{language:a="en"}=null!==(e=(0,v.W)((()=>["language"]),[]))&&void 0!==e?e:{},r=null!==(t=(0,g.TQ)("enable_privacy_center"))&&void 0!==t&&t,{navList:s=[],$legalList:l}=(0,i.P)(m.$,{selector:e=>{var t,i;return{$legalList:null===(t=e.bizContext)||void 0===t?void 0:t.navList.find((({title:e})=>e===n("Legal"))),navList:null===(i=e.bizContext)||void 0===i?void 0:i.navList}},dependencies:[]}),c=T.find((e=>"privacy"===e.title));c&&(c.title=r?"Privacy Policy":"privacy");const{pageList:d,programList:u,legalList:h}=(0,o.useMemo)((()=>{const e=[{title:n("help"),key:"help-center",href:`https://support.tiktok.com/${a}`},{title:n("safety"),key:"safety-center",href:`https://www.tiktok.com/safety?lang=${a}`},...T.reduce(((e,t)=>{var i,o,s;const c=(null!==(i=null==l?void 0:l.children)&&void 0!==i?i:[]).map((({key:e})=>e)).indexOf(t.key);return t.key===S&&e.push({title:"Accessibility",key:"accessibility",href:`https://www.tiktok.com/accessibility/${a}`}),t.key===k&&(r&&e.push({title:n("privacyCenter_webFooter_resourcesPrivacy_navLink"),key:"privacy-center",href:`https://www.tiktok.com/privacy/overview/${a}?enter_method=webapp_desktop`}),e.push({title:"Creator Academy",key:"create-portal",href:"https://www.tiktok.com/creator-academy"}),e.push({title:n("Community Guidelines"),key:"community-guidelines",href:`https://www.tiktok.com/community-guidelines?lang=${a}`})),c>=0&&e.push(Object.assign(Object.assign({},t),{title:n(t.title),href:null!==(s=null===(o=null==l?void 0:l.children)||void 0===o?void 0:o[c].href)&&void 0!==s?s:""})),e}),[])],t=C(s[0]),i=C(s[1]);return{pageList:t?{title:n("hca_web_Company",void 0,t.title),children:t.children}:void 0,programList:i?{title:n("hca_web_Program",void 0,i.title),children:i.children}:void 0,legalList:l?{title:n("hca_web_TermsAndPolicies",void 0,"Terms & Policies"),children:e}:void 0}}),[l,a,s,n]);return{pageList:d,programList:u,legalList:h}}},39505:(e,t,n)=>{"use strict";var i;n.d(t,{N:()=>l}),function(e){e[e.None=0]="None",e[e.PromotePopupTip=1]="PromotePopupTip",e[e.DesktopDownloadTip=2]="DesktopDownloadTip",e[e.LoginTip=3]="LoginTip",e[e.Upload=4]="Upload",e[e.Inbox=5]="Inbox",e[e.Series=6]="Series",e[e.DarkMode=7]="DarkMode",e[e.EditProfile=8]="EditProfile",e[e.LiveCreatorTooltip=9]="LiveCreatorTooltip",e[e.LiveChatTooltip=10]="LiveChatTooltip"}(i||(i={}));const o=new class{constructor(){this.priorityKeys=[],this.endPriorityKeys=[]}start(e){this.endPriorityKeys.filter((t=>t!==e))}end(e){if(!this.endPriorityKeys.includes(e)){this.endPriorityKeys.push(e);const t=this.priorityKeys.find((e=>!this.endPriorityKeys.includes(e)));if(t)return t}return null}remove(e){this.priorityKeys.filter((t=>t!==e))}add(e){this.priorityKeys.includes(e)||(this.priorityKeys=[...this.priorityKeys,e].sort(((e,t)=>e-t)))}clean(){this.priorityKeys=[],this.endPriorityKeys=[]}};var a=n(46682),r=n(40099),s=n(77734);function l(e){const[{tooltipPriority:t,maxPublishVideoDuration:n},i]=(0,a.S)(s.GC),l=(0,r.useRef)(!1),c=(0,r.useCallback)((()=>{if(e!==t)o.remove(e);else{const t=o.end(e);t&&i.setTooltipPriority(t)}}),[t]),d=(0,r.useCallback)((()=>{o.start(e)}),[]);return l.current||(o.add(e),l.current=!0),(0,r.useEffect)((()=>()=>{o.clean()}),[]),{tooltipPriority:t,maxPublishVideoDuration:n,handlePopoverInitial:d,handlePopoverEnd:c}}},82041:()=>{"use strict";"undefined"!=typeof window&&(window.TTAP_APPPARSE_STARTTIME=Date.now())},92944:(e,t,n)=>{"use strict";n.d(t,{U:()=>r,o:()=>a});var i=n(2787),o=n(40099);const a=(0,o.createContext)(null),r=(0,o.memo)((({videoId:e,children:t})=>{const[n,r]=(0,o.useState)(e),[s,l]=(0,o.useState)(""),[c,d]=(0,o.useState)(0),u=(0,o.useCallback)((e=>{r(e)}),[]),p=(0,o.useCallback)((e=>{l(e)}),[]),v=(0,o.useCallback)((()=>{d(c+1)}),[c]),g=(0,o.useMemo)((()=>({videoId:n,authorId:s,videoCount:c,setVideoId:u,setAuthorId:p,setVideoCountPlusOne:v})),[s,n,p,v,u,c]);return(0,i.Y)(a.Provider,{value:g,children:t})}))},66994:(e,t,n)=>{"use strict";n.d(t,{YH:()=>l,eK:()=>a,no:()=>s,s0:()=>r});var i=n(11060),o=n(78662);const a=()=>{const{pathname:e}=(0,i.zy)(),t=(0,o.cj)(e);return t?{isUserPage:t,pageType:1}:{isUserPage:t}},r=()=>{const{pathname:e}=(0,i.zy)();return{isDetailPage:(0,o.Iy)(e)||(0,o.nq)(e)||(0,o.Ke)(e)||(0,o.cj)(e)||(0,o.LC)(e)||(0,o.Fj)(e)||(0,o.vb)(e)||(0,o.Ds)(e)||(0,o.eD)(e)}},s=()=>{const{pathname:e}=(0,i.zy)();return{isSearchPage:(0,o.a1)(e)||(0,o.ZG)(e)||(0,o.ie)(e)||(0,o.q$)(e)||(0,o.N6)(e)}},l=()=>{const{pathname:e}=(0,i.zy)();return{isFeedbackPage:(0,o.hh)(e)}}},6990:(e,t,n)=>{"use strict";n.d(t,{UX:()=>g,KE:()=>v});var i=n(97086),o=n(71281),a=n(78662),r=n(88874),s=n(63615);const l=[{routeName:"expansion",pageType:104},{routeName:"messages",pageType:13},{routeName:"searchUser",pageType:106},{routeName:"videoPlaylist",pageType:108},{routeName:"searchLive",pageType:123},{routeName:"following",pageType:11},{routeName:"challenge",pageType:3},{routeName:"poi",pageType:18},{routeName:"collection",pageType:121},{routeName:"searchHome",pageType:105},{routeName:"effect",pageType:129},{routeName:"searchVideo",pageType:107},{routeName:"music",pageType:4},{routeName:"friends",pageType:20}];var c=n(57431),d=n(65444);const u={resourceStrategy:"preload"},p={resourceStrategy:"custom",loadEvent:d.bL,defaultProps:{renderStrategy:"custom",renderEvent:d.bL,raceTime:6e3}},v=(d.uM,d.uM,function(){var e,t,n,d,v;let g=!1;if(!(0,i.fU)())try{const i=(0,r.YI)(s.Ow);let u="v0",p="v0",m="v0",h="v0",_="v0";i&&((0,c.D)(i),u=null!==(e=(0,o.d)("islands_arch_phase2"))&&void 0!==e?e:"v0",p=null!==(t=(0,o.d)("islands_arch_video_detail"))&&void 0!==t?t:"v0",m=null!==(n=(0,o.d)("islands_arch_explore"))&&void 0!==n?n:"v0",h=null!==(d=(0,o.d)("islands_arch_user_profile"))&&void 0!==d?d:"v0",_=null!==(v=(0,o.d)("islands_arch_rest_page"))&&void 0!==v?v:"v0");const f=window.location.pathname,y=window.location.search,b=(0,a.tO)(f),w="business"===new URLSearchParams(y).get("scene"),x=(0,a.Fj)(f),T=(0,a.eD)(f),S=(0,a.cj)(f),k=(0,a.M5)(f),A=Boolean(l.find((e=>Number(k)===e.pageType)));g="v0"!==u&&b||"v0"!==p&&x&&!w||"v0"!==m&&T||"v0"!==h&&S||"v0"!==_&&A}catch(e){}return g?p:u}()),g=(function(){var e;let t=!1;if(!(0,i.fU)())try{const n=(0,r.YI)(s.Ow);let i="v0";n&&((0,c.D)(n),i=null!==(e=(0,o.d)("explore_trending_topics"))&&void 0!==e?e:"v0");const l=window.location.pathname,d=(0,a.eD)(l);t="v0"!==i&&d}catch(e){}}(),[3,18,121,105,129,107,4])},65444:(e,t,n)=>{"use strict";n.d(t,{aY:()=>r,bL:()=>o,uM:()=>a});var i=n(81054);const o=Symbol.for("first-video-loaded"),a=Symbol.for("explore-custom-loaded"),r=new class{constructor(){this.loadEvent=o,this.updated=!1,this.updatedDetail=!1,this.updatedExplore=!1,this.updatedUserProfile=!1,this.updatedCommon=!1}updateVideoLoadEvent(){this.updated||(i.PD.emit(this.loadEvent),this.updated=!0)}updateVideoDetailLoadEvent(){this.updatedDetail||(i.PD.emit(this.loadEvent),this.updatedDetail=!0)}updateExploreVideoLoadEvent(){this.updatedExplore||(i.PD.emit(this.loadEvent),this.updatedExplore=!0)}updateUserProfileLoadEvent(){this.updatedUserProfile||(i.PD.emit(this.loadEvent),this.updatedUserProfile=!0)}updateCommonLoadEvent(){this.updatedCommon||(i.PD.emit(this.loadEvent),this.updatedCommon=!0)}};new class{constructor(){this.exploreCustomLoadEvent=a}updateExploreCustomLoadEvent(){i.PD.emit(this.exploreCustomLoadEvent)}}},27871:(e,t,n)=>{"use strict";n.d(t,{SI:()=>a,T:()=>o,Y5:()=>i,dv:()=>r});const i=["Webapp"],o=new Map,a=0,r=2},61266:(e,t,n)=>{"use strict";n(82041),n(14713);var i=n(91334),o=n(15203);const a=()=>/google|yahoo|yandex|bing|naver|duckduckgo/gi.test((0,o.q)());var r=n(82290),s=n(48211),l=n(24643),c=n(18499),d=(n(7073),n(47236)),u=n(67192),p=n(20146),v=n(57432),g=n.n(v),m=n(17995),h=n(1569),_=n(40099),f=n(90535),y=n(11654),b=n(99661),w=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};const x=(0,_.createContext)({onLocationChange:g()});var T=n(77966),S=n(58632);const k=["fetch"],A=["includes"],O=["values","entries","getOwnPropertyDescriptors"];var E=n(37209),P=n(39228),I=n(51660),C=n(64356),j=n(87181),L=n(88874),M=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};function N(e,t){return M(this,void 0,void 0,(function*(){try{if(!(0,L.YI)(C.rv)){const n={};yield Promise.all(t.map((t=>(0,E.gW)(t,e).then((e=>{n[t]=e}))))),(0,L.A7)(C.rv,n)}}catch(e){console.error(`[Fetch Error]: translation data fetch failed: ${e}`)}}))}const D="webapp.browserRedirect-context";function R(){const e=(0,L.YI)(D);if(e){const t=u.l.getInstance(y.V);try{window.history.replaceState(window.history.state,"",e.browserRedirectUrl),t.emitEvent("seo.browser-redirect.succeed",{count:1},{})}catch(e){t.emitEvent("seo.browser-redirect.error",{count:1},{})}}}var B=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};function U(e){var t;return B(this,void 0,void 0,(function*(){Object.getPrototypeOf(u.l).constructor.prototype.createChild=e=>(u.l.addProviders(e),u.l);const i=(0,h.S)(),{beforeStart:o=g(),defaultNS:a,nss:r,customInitBiz:s,slardarOption:l,appName:c,missingKeyHandler:v,asyncSlardarPre:_=!1}=e;yield function(){return(0,S.__awaiter)(this,void 0,void 0,(function*(){"Promise"in window?(k.some((e=>!(e in window)))&&(yield n.e(2844).then(n.bind(n,23596))),(A.some((e=>!(e in Array.prototype)))||O.some((e=>!(e in Object))))&&(yield Promise.all([n.e(2837).then(n.t.bind(n,76431,23)),n.e(2837).then(n.t.bind(n,20929,23)),n.e(2837).then(n.t.bind(n,68091,23)),n.e(2837).then(n.t.bind(n,87323,23))]))):window.location.href="https://www.tiktok.com/unsupported"}))}(),(0,p.a)(),(0,m.sF)(i);const x=(0,I.qm)();let M;yield Promise.all([(0,b.eE)(x),N(x,r),R(),s?Promise.resolve():(0,f.a)(c),(0,j.Zi)(),o(),(0,d.ai)(),(0,E.Dy)(x,a,v)]),function(e){const t=(0,L.YI)(C.rv);t?(0,E.EK)(t,e):console.error("[Error]: No translation data to be added")}(x),u.l.addProvider({provide:C.hp,useValue:T.Ay.t});try{const e=e=>B(this,void 0,void 0,(function*(){M=yield function(e){return w(this,void 0,void 0,(function*(){const t=yield function(e){return w(this,void 0,void 0,(function*(){return"function"==typeof e?yield e():e}))}(e),n=(0,b.xq)(),i=yield(0,f.h)(),o=u.l.getInstance(y.V);return y.V.start(o,Object.assign({appContext:n,bizContext:i,initLocation:window.location.pathname},t))}))}(e),(0,P.JI)(null==M?void 0:M.slardar)}));if(l)if(_)if(window.SlardarClient)yield e(l);else{const t=document.querySelector('script[src*="slardar.web.pre.js"]');t&&(yield new Promise((n=>{t.onload=()=>B(this,void 0,void 0,(function*(){yield e(l),n()}))})))}else yield e(l)}catch(e){console.error(e)}return{slardarUtils:M,jotaiStore:i,rootProps:{jotaiStore:i,disableInlineSlardar:void 0!==l,slardarContext:{onLocationChange:null!==(t=null==M?void 0:M.handleLocationChange)&&void 0!==t?t:g()}}}}))}var F=n(15605),V=n(67518),z=n(23721);function H(e){const{jotaiStore:t,disableInlineSlardar:n,slardarContext:i,children:o,csr:a}=e,r=(0,_.useMemo)((()=>{const e=null!=o?o:(0,l.jsx)(_.Fragment,{});return(0,m.ZB)(e,t?{jotaiStore:t}:void 0)}),[o,t]);if(a)return(0,l.jsx)(x.Provider,{value:i,children:(0,l.jsx)(z.ug.Provider,{value:{enable:!n,enableInlineScript:!1},children:(0,l.jsx)(r,{})})});{const e=(0,F.A)({key:"tiktok"});return(0,l.jsx)(x.Provider,{value:i,children:(0,l.jsx)(z.ug.Provider,{value:{enable:!n},children:(0,l.jsx)(V.C,{value:e,children:(0,l.jsx)(r,{})})})})}}var q=n(2787),W=n(81396),$=n.n(W),G=n(84987);class Y{constructor(){this.sprites=new Map,this.domParser=new DOMParser;const e=document.querySelector("#svg-sprite-container");e?this.$root=e:(this.$root=this.domParser.parseFromString(``,"image/svg+xml").childNodes[0],document.body.prepend(this.$root)),this.restore()}add({id:e,content:t}){if(this.sprites.has(e)){const{initialCount:t=0,count:n,content:i}=this.sprites.get(e);return t>0?void this.sprites.set(e,{initialCount:t-1,count:n,content:i}):void this.sprites.set(e,{count:n+1,content:i})}this.sprites.set(e,{count:1,content:t});const n=this.domParser.parseFromString(t,"text/xml");n.firstChild&&this.$root.appendChild(n.firstChild)}remove(e){if(!this.sprites.has(e))return;const{count:t,content:n}=this.sprites.get(e);if(t>1)return void this.sprites.set(e,{count:t-1,content:n});this.sprites.delete(e);const i=this.$root.querySelector(`#${e}`);i&&i.remove()}serialize(){return this.$root.innerHTML}restore(){this.$root.hasChildNodes()&&this.$root.childNodes.forEach((e=>{var t,n;if("symbol"!==e.tagName)return;const i=null!==(t=e.getAttribute("id"))&&void 0!==t?t:"",o=Number(null!==(n=e.getAttribute("data-count"))&&void 0!==n?n:"0");this.sprites.set(i,{initialCount:o,count:o,content:e.outerHTML})}))}}Y.defaultConfig=[["xmlns","http://www.w3.org/2000/svg"],["xmlns:xlink","http://www.w3.org/1999/xlink"],["style","position: absolute; width: 0; height: 0"],["aria-hidden","true"],["id","svg-sprite-container"]];var Z=n(47172),K=n(82231);const X={MT_Analytics:null,WebApp_Login:null,MT_Reflow:null,Webapp:null,poi_web:null,Webapp_recharge_referral:null,kick_user_frontier:null},Q={MT_Analytics:null,WebApp_Login:null,MT_Reflow:null,Webapp:null,poi_web:null,Webapp_recharge_referral:null,kick_user_frontier:null},J=({children:e,t,initialNamespaces:n,translations:i=X})=>{const[o,a,r]=(0,K.Dh)(C.rv,i),s=(0,_.useRef)(o),[c]=(0,_.useState)((0,I.qm)()),d=(0,_.useCallback)((e=>Boolean(e&&s.current[e])),[]),u=(0,_.useCallback)(((e,t)=>(0,S.__awaiter)(void 0,void 0,void 0,(function*(){try{if(!s.current[e]){Q[e]||(Q[e]=(0,E.gW)(e,t));const n=yield Q[e];T.Ay.addResourceBundle(c,e,n,!0,!0),s.current=Object.assign(Object.assign({},s.current),{[e]:n})}return!0}catch(e){return console.error("[I18nContext] load starling error",e),!1}}))),[a]),p=(0,_.useMemo)((()=>null!=t?t:T.Ay.t),[t]),v=(0,_.useMemo)((()=>({t:p,hasLoaded:d,loadStarling:u,initialNamespaces:n,lang:c})),[d,n,c,u,p]);return(0,E.EK)(o,c),(0,l.jsxs)(C.Ss.Provider,{value:v,children:[e,(0,l.jsx)(r,{data:o})]})};var ee=n(72241),te=n(28591),ne=n(63615);function ie(e,t={}){return{Component:e,props:t}}function oe(e){const{children:t,provisions:n}=e,i=(0,l.jsx)(_.Fragment,{children:t});return[...n].reverse().reduce(((e,{Component:t,props:n})=>(0,l.jsx)(t,Object.assign(Object.assign({},n),{children:e}))),i)}var ae=n(62186),re=n(71615),se=n(32744);function le(){window.location.reload()}function ce(){return(0,l.jsx)(re.A,{width:90,height:90,fill:"rgba(128, 130, 133, 1)"})}const de=(0,ae.default)("div",{target:"e7iph6u0"})({height:"100vh",display:"flex",flexDirection:"column"},"label:DivContainer;");function ue(){const{t:e}=(0,_.useContext)(C.Ss);return(0,l.jsx)(de,{children:(0,l.jsx)(se.W,{isFullScreen:!0,onButtonClick:le,iconElem:ce,title:e("Page not available",{},"Page not available"),desc:e("server_error_sub",{},"Sorry about that! Please try again later."),buttonText:e("try_again_btn",{},"Try again")})})}var pe=n(22980),ve=n(89933);const ge=n.n(ve)()("webapp-launcher").extend("provider");function me(e){ge("SigiProvider Rendered");const{children:t}=e,n=(0,Z.useHistory)();return(0,l.jsx)(pe.j,{history:n,children:t})}var he,_e=n(67823),fe=n(45297);!function(e){e.OneColumnMode="one_column_mode",e.SwiperMode="swiper_mode"}(he||(he={}));const ye=(0,_.createContext)({feedMode:"swiper_mode",switchFeedMode:g()}),be=(0,_.memo)((({feedMode:e,children:t})=>{const n=null!=e?e:_e.A.get(fe.i_)||"swiper_mode",[i,o]=(0,_.useState)(n),a=(0,_.useCallback)((e=>{o(e)}),[]),r=(0,_.useMemo)((()=>({feedMode:i,switchFeedMode:a})),[i,a]);return(0,l.jsx)(ye.Provider,{value:r,children:t})}));function we(e){return ge("FeedModeProvider Rendered"),(0,l.jsx)(be,{children:e.children})}var xe=n(21355),Te=n(13392),Se=n(93608),ke=n(88920),Ae=n(82973),Oe=n(54888),Ee=n(78662),Pe=n(84506),Ie=n(35267);const Ce=({children:e})=>{ge("AppThemingProvider Rendered");const{isInProductHoldout:t}=(0,ke.Vv)(),{baseExpId:n,isInAutoDarkModeControl:i,isInAutoDarkModeTreatment:o,isInAutoDarkModeExperiment:a}=(0,ke.WE)(),r=(0,Ae.Qb)(),{isMobile:s}=(0,Te.Ph)(Oe.$,{selector:e=>{var t;return{isMobile:null===(t=e.bizContext)||void 0===t?void 0:t.isMobile}},dependencies:[]}),{pathname:c,search:d}=(0,Z.useLocation)(),u=(0,Ee.bc)(c,d)&&!s,p=(0,Ee.$p)(c)&&!s,v=(0,Ee.xj)(c),g=(0,Pe.sy)(),[m,h]=(0,_.useState)((0,Ie.MJ)(fe.n9)||"light"),f=e=>{h(e),_e.A.set(fe.n9,e,fe.Ah)},[y,b]=(0,_.useState)(p),w=e=>{b(e),_e.A.set(fe.tS,e?"dark":"light",fe.Ah)};(0,_.useEffect)((()=>{const e=(()=>{var e,s,l,c,d;if(p)return!0;if(!u)return"1"===(0,Ie.MJ)(fe.HF)&&_e.A.set(fe.HF,"0",fe.Ah),f("light"),a&&r.disqualifyForInference(n,"app_init","launcher","not_dark_mode_page"),!1;if("1"===(0,Ie.MJ)(fe.HF)&&(a&&r.disqualifyForInference(n,"app_init","launcher","manually_set"),"dark"===m||"light"===m))return"dark"===m;let h=!1;try{h=null===(e=(0,xe.A)())||void 0===e?void 0:e.dark;const t=null===(l=null===(s=Intl.DateTimeFormat())||void 0===s?void 0:s.resolvedOptions())||void 0===l?void 0:l.timeZone;Se.f.event("auto_dark_mode_timezone_info",{info_msg:`Local Time Zone: ${t}`})}catch(e){console.error("Error: Unable to determine theme from timezone. Falling back to local time-based method.",e);const t=null===(d=null===(c=Intl.DateTimeFormat())||void 0===c?void 0:c.resolvedOptions())||void 0===d?void 0:d.timeZone;Se.f.event("auto_dark_mode_timezone_error",{error_msg:`Local Time Zone: ${t}`});const n=(new Date).getHours();h=n<6||n>=18}const _=(0,Ie.MJ)(fe.tS);if(v)return a&&r.disqualifyForInference(n,"app_init","launcher","basic_dark_mode_page"),_?(f("dark"===_?"dark":"light"),"dark"===_):(f(v?"dark":"light"),v);if(t)return f("system"),g;if(!a)return f("auto"),!!g||h;try{r.maybeTriggerInference(n,"app_init","launcher")}catch(e){console.error("Error. Unable to trigger inference for auto dark mode: ",e)}return i?(f("system"),g):o?(f("auto"),!!g||h):(f("dark"===_?"dark":"light"),"dark"===_)})();w(e)}),[u,v,g,m,i]);const x=(0,_.useMemo)((()=>({value:y,toggle:w,currentThemeOption:m,setCurrentThemeOption:f})),[y,m]);return(0,l.jsx)(ee.xm.Provider,{value:x,children:e})};var je=n(73580);class Le extends _.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){const{onCatchError:n}=this.props;n(e,t)}render(){const{hasError:e}=this.state;return e?(0,l.jsx)(V.a,{theme:ee.pz,children:(0,l.jsx)(ue,{})}):this.props.children}}function Me(){const e=(0,Z.useRouteError)();if(e)throw e;return null}const Ne=e=>{const{children:t,initialNamespaces:n,errorStateComponent:i,t:o}=e,[a]=(0,K.Dh)(ne.Ow),{onLocationChange:r}=(0,_.useContext)(x),s=(0,Z.useHistory)();(0,_.useEffect)((()=>s.listen((e=>r(e)))),[s,r]);const c=(0,_.useMemo)((()=>({lang:a.language,initialNamespaces:n,t:o,clusterRegion:null==a?void 0:a.clusterRegion})),[a.language,n,o,null==a?void 0:a.clusterRegion]),d=(0,_.useMemo)((()=>[ie(te.vd),ie(J,c),ie(me),ie(we),ie(Ce)]),[c]);return a?(0,l.jsx)(oe,{provisions:d,children:t}):(0,l.jsx)(V.a,{theme:ee.pz,children:null!=i?i:(0,l.jsx)(ue,{})})},De=e=>{var t;const{supportRoutes:n,children:i,Outlet:o,routerProps:a}=e,r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{(null===history||void 0===history?void 0:history.scrollRestoration)&&(history.scrollRestoration="manual")}));const c=(0,_.useCallback)((e=>{try{s.captureMessage(e,"fatal",{fromLauncher:"1"})}catch(e){console.error("Error occurs when reporting error:",e)}}),[s]),d=(0,_.useMemo)((()=>(null==a?void 0:a.routes)&&o?[{id:"@tiktok/fe-shared_RootLayout",element:(0,l.jsx)(Ne,Object.assign(Object.assign({},r),{children:(0,l.jsx)(o,{})})),children:a.routes,errorElement:(0,l.jsx)(Me,{})}]:null),[null==a?void 0:a.routes,o,r]);return a&&d?(0,l.jsx)(_.StrictMode,{children:(0,l.jsx)(Le,{onCatchError:c,children:(0,l.jsx)(Z.CompatRouter,Object.assign(Object.assign({},a),{historyPaths:null!==(t=a.historyPaths)&&void 0!==t?t:n,routes:d}))})}):(0,l.jsx)(_.StrictMode,{children:(0,l.jsx)(Le,{onCatchError:c,children:(0,l.jsx)(Z.CompatRouter,{historyPaths:n,children:(0,l.jsx)(Ne,Object.assign(Object.assign({},r),{children:i}))})})})};var Re=n(97086),Be=n(82715),Ue=n(69589),Fe=n(40046),Ve=n(49057),ze=n(15942),He=n(21683),qe=n(92944),We=n(81659),$e=n(11060),Ge=n(34012),Ye=n(63950),Ze=n(58542);const Ke=(0,ae.default)(Ye.N$,{target:"e1x8fefz0"})({maxWidth:"unset",justifyContent:"flex-start"},"label:StyledDivBodyContainerV2;"),Xe=(0,ae.default)(Ye.N$,{target:"e1x8fefz1"})({width:"100%"},"label:StyledDivBodyContainerV3;"),Qe=(0,_.memo)((e=>{const{pathname:t}=(0,$e.zy)(),n=(0,Ge.Ig)(),{isInNavPhase3:i}=(0,ke.vY)();let o=Ye.N$;return(0,Ee.pz)(t)&&(o=Ke),n&&(o=Xe),(0,q.Y)(o,Object.assign(Object.assign({},e),{backgroundColor:i?Ze.Tj4.UIPageFlat1:void 0}))}));var Je=n(81054),et=n(6990),tt=n(11328),nt=n(72153);const it=(0,ae.default)("div",{target:"e4gdqxf0"})((({theme:{colors:e}})=>[{display:"flex",justifyContent:"space-around",boxShadow:`0px 1px 1px ${e.ShadowPrimary}`,height:nt.uF,width:"100%",top:0,position:"fixed",alignItems:"center",background:e.BGPrimary,zIndex:3e3}]),"label:DivSkeletonHeaderContainer;"),ot=(0,ae.default)("div",{target:"e4gdqxf1"})({width:"100%",display:"flex",height:"100%",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},(({expand:e})=>e?{}:{maxWidth:nt.hj}),(({theme:{direction:e}})=>(0,nt.mp)({direction:e,paddingStart:"20px",paddingEnd:"24px"})),"label:DivSkeletonHeaderWrapper;"),at=(0,ae.default)(ot,{target:"e4gdqxf2"})([{maxWidth:"100%"},({theme:{direction:e}})=>(0,nt.mp)({direction:e,paddingStart:"16px",paddingEnd:"24px"})],"label:StyledDivSkeletonHeaderWrapperV2;");var rt=n(86702),st=n(93678);const lt=(0,ae.default)("a",{target:"e1u8yrdb0"})({fontSize:0},"label:ALogo;");lt.defaultProps=Object.assign(Object.assign({},lt.defaultProps),{"data-e2e":"tiktok-logo"});const ct=(0,_.memo)((function({isDark:e}){const t=(0,_.useMemo)((()=>e?(0,l.jsx)(st.A,{height:42,width:118}):(0,l.jsx)(rt.A,{height:42,width:118})),[e]);return(0,l.jsx)(lt,{to:Be.OZ.home,style:{position:"relative"},children:t})}));var dt=n(81825);const ut=(0,ae.default)("div",{target:"e1jlaln00"})((({theme:{colors:e}})=>({display:"flex",flexDirection:"row",alignItems:"center",padding:"12px 16px",background:e.BGInput,borderRadius:"92px",position:"relative",overflow:"hidden",zIndex:1,margin:0})),"label:DivContainer;"),pt=(0,ae.default)("div",{target:"e1jlaln01"})({width:"292px",height:"22px"},"label:DivInputPlaceholder;"),vt=(0,ae.default)("span",{target:"e1jlaln02"})((({theme:{colors:e}})=>({width:"1px",height:"28px",margin:"-3px 0",background:e.LineSecondary})),"label:SpanSpliter;"),gt=(0,ae.default)(dt.A,{target:"e1jlaln04"})({display:"block",margin:"-1px 0",marginInlineStart:"12px"},"label:StyledMagnifyingGlass;"),mt=function(){const{colors:e}=(0,V.u)();return(0,l.jsxs)(ut,{children:[(0,l.jsx)(pt,{}),(0,l.jsx)(vt,{}),(0,l.jsx)(gt,{fill:e.TextQuaternary,width:24,height:24})]})};var ht=n(12731);const _t=(0,Je.Ay)({resolved:{},chunkName:()=>"header.island",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(7716),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(9127),n.e(9280),n.e(8785),n.e(5934),n.e(8239),n.e(1952),n.e(2047),n.e(6283),n.e(2090),n.e(2624),n.e(7284),n.e(7775),n.e(4860),n.e(8962),n.e(7859),n.e(7011),n.e(3191),n.e(9058),n.e(5286),n.e(6389),n.e(2261),n.e(965),n.e(3560),n.e(7298),n.e(13)]).then(n.bind(n,768)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>768},Object.assign({fallback:(0,q.Y)((()=>{const{isDark:e}=(0,V.u)(),t=(0,He.oY)(),{showFullSideNav:n}=(0,ke.vY)();return t||n?null:(0,q.Y)(it,{children:(0,q.FD)(at,{children:[(0,q.Y)(ct,{isDark:e}),(0,q.Y)(mt,{}),(0,q.Y)(tt.EA.Avatar,{style:{width:32,height:32}})]})})}),{})},et.KE)),ft=(0,Je.Ay)({resolved:{},chunkName:()=>"sideNav.island",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(7716),n.e(7978),n.e(8873),n.e(1735),n.e(2396),n.e(5985),n.e(9127),n.e(8345),n.e(9280),n.e(8785),n.e(5934),n.e(1648),n.e(8239),n.e(7104),n.e(1952),n.e(2047),n.e(6283),n.e(4687),n.e(2090),n.e(2624),n.e(7284),n.e(5156),n.e(7775),n.e(4860),n.e(8962),n.e(7859),n.e(7011),n.e(3191),n.e(4144),n.e(9058),n.e(5286),n.e(6389),n.e(2261),n.e(965),n.e(3560),n.e(2206)]).then(n.bind(n,13391)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>13391},Object.assign({fallback:(0,q.Y)((()=>(0,q.FD)(ht.Ws,{children:[(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{}),(0,q.Y)(ht.Hj,{})]})),{})},et.KE)),yt=(0,Je.Ay)({resolved:{},chunkName:()=>"bottomSideEffect.island",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(7716),n.e(2402),n.e(7978),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5850),n.e(4353),n.e(9127),n.e(272),n.e(8345),n.e(9280),n.e(5080),n.e(7912),n.e(8785),n.e(5934),n.e(1648),n.e(7104),n.e(1531),n.e(3031),n.e(2090),n.e(9129),n.e(7775),n.e(4860),n.e(8962),n.e(7859),n.e(5172),n.e(6457),n.e(6389),n.e(2261),n.e(965),n.e(8116),n.e(1828),n.e(7298),n.e(5229)]).then(n.bind(n,27065)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>27065},Object.assign({},et.KE)),bt=(0,Je.Ay)({resolved:{},chunkName:()=>"headSideEffect.island",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(4563),n.e(8345),n.e(5021),n.e(2710),n.e(4534),n.e(7979),n.e(1636)]).then(n.bind(n,31808)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>31808},Object.assign({},et.KE)),wt=(0,Je.Ay)({resolved:{},chunkName:()=>"notificationSideEffect.island",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(8564),n.e(9280),n.e(7775),n.e(2261),n.e(3569)]).then(n.bind(n,93677)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>93677},Object.assign({},et.KE));var xt=n(33805);const Tt={id:"tiktok-icon-e4e3456a",use:"tiktok-icon-e4e3456a-usage",viewBox:"0 0 88 88",content:''};var St=n(46682),kt=n(99789),At=n.n(kt),Ot=n(38203),Et=n(85688);let Pt=class{constructor(e){this.fetch=e,this.initTargetIdcRequest=()=>this.fetch.get("/passport/web/account/info/",{credentials:"include",baseUrlType:2,query:{aid:1459}})}checkTTwid(){return(0,S.__awaiter)(this,void 0,void 0,(function*(){const e=new Et.TtWid({aid:fe.xE,service:"www.tiktok.com",union:!1,unionHost:"",needFid:!1});try{yield e.checkWebId()}catch(e){Se.f.sendEvent("check_ttwid_error",{error_msg:e}),console.error(e)}}))}};Pt=(0,S.__decorate)([(0,Ot._)(),(0,S.__metadata)("design:paramtypes",[P.pM])],Pt);var It=n(57431),Ct=n(70873);const jt=(0,ae.default)("div",{target:"eyhjz840"})({height:"100vh",display:"flex",flexDirection:"column"},"label:DivErrorBoundaryContainer;");class Lt extends _.Component{constructor(){super(...arguments),this.state={isNetOffline:!1,hasError:!1},this.handleOnlineStatusChange=()=>{this.setState({isNetOffline:!navigator.onLine})}}get iconElem(){const{hasError:e}=this.state;return e?(0,l.jsx)(re.A,{width:90,height:90,fill:"rgba(128, 130, 133, 1)"}):(0,l.jsx)(Ct.A,{width:90,height:90,fill:"rgba(128, 130, 133, 1)"})}get text(){const{hasError:e}=this.state;return e?{title:"Page not available",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:n}=this.props;n(e,t),this.setState({hasError:!0})}render(){const{isNetOffline:e,hasError:t}=this.state,{children:n,isMobile:i}=this.props,{t:o}=this.context;if(e||t){const{title:e,desc:t,button:n}=this.text;return i?(0,l.jsx)(jt,{children:(0,l.jsx)(se.W,{brightness:0,isFullScreen:!0,iconElem:this.iconElem,title:o(e),desc:o(t),buttonText:o(n),onButtonClick:this.handleRetry})}):(0,l.jsx)(se.W,{isFullScreen:!0,onButtonClick:this.handleRetry,iconElem:this.iconElem,title:o(e),desc:o(t),buttonText:o(n)})}return n}}Lt.contextType=C.Ss;let Mt=class{constructor(e){this.fetch=e}reportRenderError(e){return this.fetch.get("/node-webapp/page/error",{query:{page:e},baseUrlType:2})}};Mt=(0,S.__decorate)([(0,Ot._)(),(0,S.__metadata)("design:paramtypes",[P.pM])],Mt);var Nt=n(2584),Dt=n(20157);function Rt(e){ge("GlobalModalProvider Rendered");const{GlobalModalProvider:t,value:n}=(0,Dt.l)();return(0,l.jsx)(t,{value:n,children:e.children})}var Bt=n(89311);function Ut(e){ge("TUXProvider Rendered");const{isRTL:t}=(0,Bt.m)(),{value:n}=(0,_.useContext)(ee.xm);return(0,l.jsx)(Ze.juU,{colorSchemePreference:n?"dark":"light",textDirection:t?"rtl":"ltr",zIndexConfig:ee.pz.zIndex,children:e.children})}var Ft=n(75431);function Vt(e){ge("ThemeProvider Rendered");const{isMobile:t,children:n,extraGlobalStyles:i}=e,o=(0,_.useMemo)((()=>(0,It.x)()),[]),{value:a}=(0,_.useContext)(ee.xm),r=(0,_.useMemo)((()=>(0,ee.O4)({isDark:a,isMobile:t,lang:null==o?void 0:o.language})),[a,t,null==o?void 0:o.language]);return(0,l.jsxs)(V.a,{theme:r,children:[(0,l.jsx)(Ft.mL,{styles:{".link-a11y-focus":{"&:focus":{outline:"none"},"&:focus-visible":{outline:`2px solid ${r.colors.Negative}`},"&.auto-outline-style:focus-visible":{outline:`2px auto ${r.colors.Negative} !important`}}}}),i?(0,l.jsx)(Ft.mL,{styles:i(r)}):null,n]})}const zt=[{"@font-face":{fontFamily:"TikTokFont",src:'local("TikTokFont-Regular"), url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokFont-Regular.woff2?_default_font=1&v=2)\n format("woff2"),\n url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokFont-Regular.woff?_default_font=1&v=2)\n format("woff"),\n url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokFont-Regular.otf?_default_font=1&v=2)\n format("opentype")',fontWeight:400,fontStyle:"normal",fontDisplay:"fallback"}},{"@font-face":{fontFamily:"TikTokFont",src:'local("TikTokFont-Medium"), url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokFont-Semibold.woff2?_default_font=1&v=2)\n format("woff2"),\n url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokFont-Semibold.woff?_default_font=1&v=2)\n format("woff"),\n url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokFont-Semibold.otf?_default_font=1&v=2)\n format("opentype")',fontWeight:500,fontStyle:"normal",fontDisplay:"fallback"}},{"@font-face":{fontFamily:"TikTokFont",src:'local("TikTokFont-Medium"), url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokFont-Semibold.woff2?_default_font=1&v=2)\n format("woff2"),\n url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokFont-Semibold.woff?_default_font=1&v=2)\n format("woff"),\n url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokFont-Semibold.otf?_default_font=1&v=2)\n format("opentype")',fontWeight:600,fontStyle:"normal",fontDisplay:"fallback"}},{"@font-face":{fontFamily:"TikTokFont",src:'local("TikTokFont-Bold"), url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokFont-Bold.woff2?_default_font=1&v=2)\n format("woff2"),\n url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokFont-Bold.woff?_default_font=1&v=2)\n format("woff"),\n url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokFont-Bold.otf?_default_font=1&v=2)\n format("opentype")',fontWeight:700,fontStyle:"normal",fontDisplay:"fallback"}},{"@font-face":{fontFamily:"TikTokDisplayFont",src:'url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokDisplayFont-Regular.woff2?_default_font=1&v=2)\n format("woff2"),\n url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokDisplayFont-Regular.woff?_default_font=1&v=2)\n format("woff"),\n url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokDisplayFont-Regular.otf?_default_font=1&v=2)\n format("opentype")',fontWeight:400,fontStyle:"normal",fontDisplay:"fallback"}},{"@font-face":{fontFamily:"TikTokDisplayFont",src:'url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokDisplayFont-Semibold.woff2?_default_font=1&v=2)\n format("woff2"),\n url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokDisplayFont-Semibold.woff?_default_font=1&v=2)\n format("woff"),\n url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokDisplayFont-Semibold.otf?_default_font=1&v=2)\n format("opentype")',fontWeight:500,fontStyle:"normal",fontDisplay:"fallback"}},{"@font-face":{fontFamily:"TikTokDisplayFont",src:'url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokDisplayFont-Semibold.woff2?_default_font=1&v=2)\n format("woff2"),\n url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokDisplayFont-Semibold.woff?_default_font=1&v=2)\n format("woff"),\n url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokDisplayFont-Semibold.otf?_default_font=1&v=2)\n format("opentype")',fontWeight:600,fontStyle:"normal",fontDisplay:"fallback"}},{"@font-face":{fontFamily:"TikTokDisplayFont",src:'url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokDisplayFont-Bold.woff2?_default_font=1&v=2)\n format("woff2"),\n url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokDisplayFont-Bold.woff?_default_font=1&v=2)\n format("woff"),\n url(https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/TikTokDisplayFont-Bold.otf?_default_font=1&v=2)\n format("opentype")',fontWeight:700,fontStyle:"normal",fontDisplay:"fallback"}}],Ht=".tw-only",qt=[{"*, *::before, *::after":{boxSizing:"border-box",userSelect:"unset"},"body,h1,h2,h3,h4,p,figure,blockquote,dl,dd":{margin:0},'ul[role="list"], ol[role="list"]':{listStyle:"none"},"html:focus-within":{scrollBehavior:"smooth"},body:{minHeight:"100vh",textRendering:"optimizeSpeed",lineHeight:1.5},"a:not([class])":{textDecorationSkipInk:"auto"},"img, picture":{maxWidth:"100%",display:"block"},"input,button,textarea,select":{font:"inherit"},"@media (prefers-reduced-motion: reduce)":{"html:focus-within":{scrollBehavior:"auto"},"*,*::before,*::after":{animationDuration:"0.01ms !important",animationIterationCount:"1 !important",transitionDuration:"0.01ms !important",scrollBehavior:"auto !important"}},"@supports (-webkit-touch-callout: none)":{body:{minHeight:"-webkit-fill-available"}}}];function Wt(e){const{isMobile:t,delayFonts:n=!1}=e,{value:i}=(0,_.useContext)(ee.xm),{isRTL:o}=(0,Bt.m)(),a=(0,_.useMemo)((()=>(0,It.x)()),[]),r=function(e){return(0,_.useMemo)((()=>function(e,t,n=!0){return[qt,{body:{fontFamily:n?e.fontFamilies.TikTokFont:void 0,fontSize:e.text.fontSize,color:e.colors.TextPrimary,backgroundColor:e.colors.BGPrimary,overscrollBehavior:"contain",direction:e.direction,a:{color:e.colors.TextPrimary,transition:"color 250ms",textDecoration:"none",cursor:"pointer"},[`a:where(${Ht}),:where(${Ht}) a`]:{transition:"all 0s ease 0s"},"a:visited":{color:e.colors.TextPrimary},[`a:where(${Ht}):visited,:where(${Ht}) a:visited`]:{color:"inherit"},"a:hover":{color:e.colors.TextPrimary,textDecoration:"underline"},[`a:where(${Ht}):hover,:where(${Ht}) a:hover`]:{color:"inherit",textDecoration:"inherit"},"a:active":{color:e.colors.TextPrimary},[`a:where(${Ht}):active,:where(${Ht}) a:active`]:{color:"inherit"},"a:focus":{color:e.colors.TextPrimary},[`a:where(${Ht}):focus,:where(${Ht}) a:focus`]:{color:"inherit"},input:{"::-ms-clear":{display:"none",width:0,height:0},"::-ms-reveal":{display:"none",width:0,height:0},"::-webkit-search-decoration, ::-webkit-search-cancel-button, ::-webkit-search-results-button, ::-webkit-search-results-decoration":{display:"none"}},"&.hidden":{overflow:"hidden",display:"block"},WebkitFontSmoothing:"antialiased","a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav, object, ol, output, p, pre, q, ruby, s, samp, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul, var, video":{fontFamily:n?e.fontFamilies.TikTokFont:void 0},strong:{fontWeight:700}}},...n?zt:[],{html:t?{}:{body:{overflowY:"overlay"},"*":{"::-webkit-scrollbar":{borderRadius:"0",width:"8px"},"::-webkit-scrollbar-track":{borderRadius:"0",backgroundColor:"rgba(0, 0, 0, 0)"},"::-webkit-scrollbar-thumb":{borderRadius:"4px",backgroundColor:e.colors.BGPlaceholderDefault}}}}]}((0,ee.O4)(e),e.isMobile,e.withFonts)),[e])}({isDark:i,lang:null==a?void 0:a.language,isMobile:t,withFonts:!n}),s=(0,Ze.N9v)({colorSchemePreference:i?"dark":"light",textDirection:o?"rtl":"ltr"});return(0,l.jsx)(Ft.mL,Object.assign({styles:r},s))}var $t=n(68252);function Gt({children:e,isMobile:t,path2PidFunc:n,delayFonts:i=!1}){const[o]=(0,St.S)(Oe.$,{selector:e=>({bizContext:e.bizContext&&At()(e.bizContext,"statusCode"),bizInitialized:e.initialized}),dependencies:[]}),{pathname:a}=(0,Z.useLocation)(),r=(0,je.Nj)(Pt),s=(0,_.useMemo)((()=>(0,It.x)()),[]);(0,_.useEffect)((()=>{var e;{const{user:t,isTTwidDecryptedFail:n,wid:i}=s;n&&Se.f.sendEvent("check_ttwid_error",{error_msg:"isTTwidDecryptedFail from server"}),!(null===(e=o.bizContext)||void 0===e?void 0:e.isBot)&&r.checkTTwid(),t&&r.initTargetIdcRequest().subscribe();const a="ttwid",l=(0,$t._S)(a,"");l&&l!==i&&Se.f.sendEvent("check_ttwid_error",{error_msg:"appcontext ttwid is different from local storage"}),(0,$t.AP)(a,i)}}),[]),(e=>{(0,_.useEffect)((()=>{if(e){const e=new AbortController;let t,n,i=!1;const o=50,a={touchstart:e=>{n=void 0,t=e.targetTouches[0].clientY},touchmove:e=>{n=e.targetTouches[0].clientY},touchend:()=>{if(i||(Nt.O.handleCommonTap(),i=!0),!t||!n)return;const a=t-n;(a>o||a<-o)&&(Nt.O.handleCommonScroll(),e.abort())}};return Object.keys(a).forEach((t=>{window.addEventListener(t,a[t],{signal:e.signal,capture:!0})})),()=>{e.abort(),Object.keys(a).forEach((e=>{window.removeEventListener(e,a[e])}))}}const t={click:()=>{Nt.O.handleCommonClick()},scroll:()=>{Nt.O.handleCommonScroll()},mousemove:()=>{Nt.O.handleCommonMousemove()}};return Object.keys(t).forEach((e=>{window.addEventListener(e,t[e],{once:!0,capture:!0})})),()=>{Object.keys(t).forEach((e=>{window.removeEventListener(e,t[e])}))}}),[])})(t);const c=(0,je.Nj)(y.V),d=(0,je.Nj)(Mt),u=(0,_.useMemo)((()=>n(a)),[a]),p=(0,_.useCallback)(((e,t)=>{try{d.reportRenderError(u),c.captureMessage(`Page render Error: ${e.message}`,"fatal",{page:u}),console.info("Error occurs in render time:",e),console.info("Error occurs in component:",t.componentStack)}catch(e){console.error("Error occurs when reporting error:",e)}}),[d,u,c]),v=(0,_.useMemo)((()=>[ie(Rt),ie(Ut),ie(Vt,{isMobile:t})]),[t]);return(0,l.jsx)(oe,{provisions:v,children:(0,l.jsxs)(Lt,{onCatchError:p,isMobile:t,children:[(0,l.jsx)(Wt,{isMobile:t,withFonts:!i}),e]})})}var Yt=n(34832),Zt=n(28658);const Kt=(0,q.Y)((function(e){const t=(0,_.useContext)(G.X);return(0,_.useLayoutEffect)((()=>(t.add(Tt),()=>{t.remove("tiktok-icon-e4e3456a")})),[]),(0,l.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,l.jsx)("use",{xlinkHref:"#tiktok-icon-e4e3456a"},void 0)}),void 0)}),{style:{margin:"auto",width:"77px",height:"88px"}});function Xt(){return(0,q.Y)("link",{rel:"stylesheet",href:Yt})}function Qt(){return(0,q.Y)("link",{rel:"stylesheet",href:Zt})}const Jt=({children:e})=>(0,q.FD)(Gt,{isMobile:!1,loading:Kt,path2PidFunc:xt.oN,children:[(0,q.Y)(Xt,{}),(0,q.Y)(Qt,{}),e]});var en,tn,nn,on,an,rn,sn,ln=n(4474),cn=n(50970),dn=n(60484),un=n(33063),pn=n(4912),vn=n(48831),gn=n(41271),mn=n(47926),hn=n(13947),_n=n(78305),fn=n(64162),yn=n(4126),bn=n(93995),wn=n(42051);!function(e){e.VIDEO="1",e.COMMENT="3",e.PROFILE="4",e.DM="5",e.SUICIDE="7",e.AUDIO="8",e.OLD_COPYRIGHT="101",e.COPYRIGHT="102",e.NETZDG_REPORTER="103",e.NETZDG="104",e.ANCHOR="105",e.LIVE_REPORTER="107",e.LIVE_COMMENT_REPORTER="130",e.PHOTO_AVIA_REPORTER="210",e.LIVE_COMMENT="302",e.COMMENT_NETZDG="303",e.COMMENT_NETZDG_REPORTER="304",e.AUDIO_COMMUNITY_GUIDELINE="801",e.AUDIO_COPYRIGHT="802",e.AUDIO_MULTIPLE_VIOLATIONS="803",e.MASK_LAYER="1011",e.COPYRIGHT_AUTO_REMOVAL="1014",e.DMCA_VIDEO="1024",e.DMCA_POST="1025",e.TRADEMARK_VIDEO="1026",e.TRADEMARK_POST="1027",e.COPYRIGHT_STRIKE="1033",e.TRADEMARK_STRIKE="1034",e.DSA_ILLEGAL_VIDEO="1035",e.DSA_ILLEGAL_PHOTO="1037",e.DSA_ILLEGAL_EFFECT="1041",e.SeriesVideoCopyright="1042",e.SeriesVideoTrademark="1043",e.SeriesCollectionCopyright="1044",e.SeriesCollectionTrademark="1045",e.DSA_ILLEGAL_PROFILE="2016",e.DSA_ILLEGAL_COMMENT="3006",e.OneLinerDSA="3008",e.SeriesReviewDSA="3009",e.DSA_CG_AUDIO="4000",e.DMCA_AUDIO="4001",e.DSA_ILLEGAL_AUDIO="4003",e.DSA_NR_AUDIO="4004",e.MCC_AUDIO="4005",e.COPYRIGHT_PROFILE="2011",e.TRADEMARK_PROFILE="2012",e.SUSPEND_LINK="2005",e.LiveCommentDSA="5005",e.HASHTAG="8000",e.CONTENT_CHECK_VIDEO="9000",e.RESET_LINK="20051",e.POI_COMMENT="300000",e.POI_COMMENT_ILLEGAL="300004",e.SUB_SPACE_COMMENT="300005",e.SUB_SPACE_COMMENT_ILLEGAL="300006"}(en||(en={})),function(e){e.VIDEO="video",e.COMMENT="comment",e.AUDIO="audio",e.LINK="link",e.USER="user",e.IMAGE="image",e.HASHTAG="hashtag",e.HEART="heart",e.STATUS_SUCCESS="status_success",e.STATUS_FAIL="status_fail",e.STATUS_FAIL_LIGHT="status_fail_light",e.STATUS_RECEIVED="status_received",e.PHOTO="photo",e.PROFILE="profile"}(tn||(tn={})),function(e){e[e.ON_APPEAL=0]="ON_APPEAL",e[e.NOT_APPEAL=1]="NOT_APPEAL",e[e.APPEAL_SUCCESS=2]="APPEAL_SUCCESS",e[e.APPEAL_FAIL=3]="APPEAL_FAIL",e[e.APPEAL_EXPIRED=4]="APPEAL_EXPIRED",e[e.CANNOT_APPEAL=5]="CANNOT_APPEAL"}(nn||(nn={})),function(e){e[e.VIOLATION_INFO_SUCCESS=1]="VIOLATION_INFO_SUCCESS",e[e.VIOLATION_INFO_VIOLATION=2]="VIOLATION_INFO_VIOLATION",e[e.VIOLATION_INFO_NR=3]="VIOLATION_INFO_NR",e[e.VIOLATION_INFO_NFF=4]="VIOLATION_INFO_NFF",e[e.VIOLATION_INFO_IN_PROGRESS=5]="VIOLATION_INFO_IN_PROGRESS"}(on||(on={})),function(e){e[e.UNCHANGEABLE=0]="UNCHANGEABLE",e[e.CHANGEABLE=1]="CHANGEABLE",e[e.CHANGED=2]="CHANGED"}(an||(an={})),function(e){e[e.NORMAL=0]="NORMAL",e[e.EXPIRE=1]="EXPIRE",e[e.EXCEED=2]="EXCEED",e[e.NOT_SUPPORTED=3]="NOT_SUPPORTED"}(rn||(rn={})),function(e){e[e.STATUS=0]="STATUS",e[e.SUBMIT=1]="SUBMIT"}(sn||(sn={})),en.VIDEO,en.DSA_ILLEGAL_VIDEO,en.LIVE_REPORTER,en.LIVE_COMMENT_REPORTER,en.DSA_ILLEGAL_VIDEO,en.DSA_ILLEGAL_PHOTO,en.DSA_ILLEGAL_EFFECT,en.DSA_ILLEGAL_PROFILE,en.DSA_ILLEGAL_COMMENT,en.OneLinerDSA,en.SeriesReviewDSA,en.DSA_ILLEGAL_AUDIO,en.LiveCommentDSA,en.POI_COMMENT_ILLEGAL,en.SUB_SPACE_COMMENT_ILLEGAL;var xn,Tn,Sn,kn,An,On,En,Pn,In,Cn=n(24451),jn=n(35572),Ln=n(20259),Mn=n(23999),Nn=n(8536),Dn=n(74690),Rn=n(80339),Bn=n(26324),Un=n(25342),Fn=n(11983);!function(e){e[e.VIDEO=1]="VIDEO",e[e.PHOTO_MODE=2]="PHOTO_MODE"}(xn||(xn={})),function(e){e[e.PUBLIC=1]="PUBLIC",e[e.PRIVATE=2]="PRIVATE",e[e.FRIENDS=3]="FRIENDS",e[e.INVISIBLE=4]="INVISIBLE"}(Tn||(Tn={})),(In=Sn||(Sn={}))[In.OTHER=0]="OTHER",In[In.COMMUNITY_GUIDELINES=1]="COMMUNITY_GUIDELINES",In[In.TOBACCO=2]="TOBACCO",In[In.VIOLENT=3]="VIOLENT",In[In.DANGEROUS=4]="DANGEROUS",In[In.OVERLY_SEXUALIZED=5]="OVERLY_SEXUALIZED",In[In.SPAM=6]="SPAM",In[In.UNORIGINAL=7]="UNORIGINAL",In[In.MINOR_SAFETY=8]="MINOR_SAFETY",In[In.UNORIGINAL_NR=9]="UNORIGINAL_NR",In[In.REPRODUCED=10]="REPRODUCED",function(e){e[e.CAN_SUBMIT=0]="CAN_SUBMIT",e[e.CANNOT_SUBMIT=1]="CANNOT_SUBMIT",e[e.NO_PENALTY=2]="NO_PENALTY",e[e.REVIEWING=3]="REVIEWING",e[e.SUCCEEDED=4]="SUCCEEDED",e[e.FAILED=5]="FAILED",e[e.TIMEOUT=6]="TIMEOUT"}(kn||(kn={})),function(e){e[e.SUBMITTED=0]="SUBMITTED",e[e.NOT_SUBMITTED=1]="NOT_SUBMITTED"}(An||(An={})),function(e){e[e.PENALTY_TYPE_NR=0]="PENALTY_TYPE_NR",e[e.PENALTY_TYPE_NFF=1]="PENALTY_TYPE_NFF"}(On||(On={})),function(e){e[e.PENALTY_SOURCE_HUMAN=0]="PENALTY_SOURCE_HUMAN",e[e.PENALTY_SOURCE_MACHINE=1]="PENALTY_SOURCE_MACHINE"}(En||(En={})),function(e){e[e.PENALTY_TRIGGER_REPORT=0]="PENALTY_TRIGGER_REPORT",e[e.PENALTY_TRIGGER_RECALL=1]="PENALTY_TRIGGER_RECALL"}(Pn||(Pn={})),n(22113),n(300),Sn.TOBACCO,Sn.VIOLENT,Sn.DANGEROUS,Sn.OVERLY_SEXUALIZED,Sn.SPAM,Sn.UNORIGINAL,Sn.MINOR_SAFETY,Sn.UNORIGINAL_NR,Sn.REPRODUCED,Sn.COMMUNITY_GUIDELINES,Sn.OTHER,kn.CANNOT_SUBMIT,nn.APPEAL_FAIL,kn.CAN_SUBMIT,nn.ON_APPEAL,kn.NO_PENALTY,nn.APPEAL_SUCCESS,kn.REVIEWING,nn.ON_APPEAL,kn.SUCCEEDED,nn.APPEAL_SUCCESS,kn.FAILED,nn.APPEAL_FAIL,kn.TIMEOUT,nn.APPEAL_EXPIRED;var Vn=n(68878),zn=n(37568);const Hn={punish_key:"",object_type:en.VIDEO,object_id:"",content_info_list:[]},qn={app_id:1988,aid:1988,app_name:"tiktok_web",device_id:0,device_platform:"tiktok_web",device_type:"tiktok_web"};let Wn=class extends fn.E{constructor(e,t){super(),this.reportService=e,this.t=t,this.defaultState={detail:Hn,reporterAppealInfo:null,violationList:[],contentDetailList:[],appealReasons:[],audioCopyrightInfo:null,currentAppealReason:null,status:"init",isV2:!0,surveyData:null,loggedOutCode:null}}setViolationAppealStatus(e,t){e.status=t}postAdAppeal(e){return e.pipe((0,Cn.E)(this.state$),(0,jn.p)((([{reason:e,text:t,extraData:n,region:i,uid:o,extra:a,report_from:r}])=>{const{logExtraParams:s,cid:l,logExtraStr:c}=(e=>{let t={},n="",i="",o={cid:"",log_extra:""};try{o=JSON.parse(e),i=o.cid,o.log_extra&&(n=o.log_extra,t=JSON.parse(o.log_extra))}catch(e){}return{logExtraParams:t,logExtraStr:n,cid:i}})(a),d={origin:"tiktok_web",data:JSON.stringify(Object.assign(Object.assign({app_name:"tiktok_web",aid:1988,current_region:i,reason:e,report_type:"ad"},{}),{report_from:"creative",user_id:o,user_ip:"",version:"",device_id:"",platform:"web",install_id:"",group_id:"",item_id:"",text:(null==n?void 0:n.description)||"",report_type_id:Number(e),report_type_name:t,extra:JSON.stringify({cid:l,log_extra:c,req_id:null==s?void 0:s.req_id}),content_type:"ad"}))},u=Object.assign(Object.assign({},qn),{user_id:Number(o)});return this.reportService.postReport(d,u).pipe((0,Ln.W)((()=>(0,Mn.of)({status:"unknown_error"}))),(0,Nn.Z)((t=>("success"===t.status?zn.J.handleReport({tag:r,category:Un.XJ,refer:Un.Hq.Button,ad_extra_data:JSON.stringify(Object.assign(Object.assign({},n),{reason_id:`${e}`})),log_extra:c,value:l,is_ad_event:"1"}):Fn.F.open({content:this.t("Sorry, something wrong with the server, please try again."),duration:2,widthType:"half"}),(0,Mn.of)()))),(0,Dn.Z)(this.getActions().setViolationAppealStatus("submitting")),(0,Rn.q)(this.getActions().setViolationAppealStatus("submitted")))})))}};(0,S.__decorate)([(0,yn.h5)(),(0,S.__metadata)("design:type",Function),(0,S.__metadata)("design:paramtypes",[Object,String]),(0,S.__metadata)("design:returntype",void 0)],Wn.prototype,"setViolationAppealStatus",null),(0,S.__decorate)([(0,yn.Mj)(),(0,S.__metadata)("design:type",Function),(0,S.__metadata)("design:paramtypes",[Bn.c]),(0,S.__metadata)("design:returntype",void 0)],Wn.prototype,"postAdAppeal",null),Wn=(0,S.__decorate)([(0,bn.n)("AdViolationAppeal"),(0,S.__param)(1,(0,wn.y)(C.hp)),(0,S.__metadata)("design:paramtypes",[Vn.D,Function])],Wn);const $n=(0,ae.default)("div",{target:"ekur9620"})({height:"100%",width:"100%",display:"flex",flexDirection:"column",alignItems:"stretch",overflow:"hidden"},"label:Container;"),Gn=(0,ae.default)("div",{target:"ekur9621"})((({showTopBanner:e})=>[{display:"flex",flexDirection:"row",alignItems:"center",margin:"24px 24px 16px 24px"},e&&{marginBottom:"0"}]),"label:DivHeader;"),Yn=(0,ae.default)("span",{target:"ekur9622"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"H4",color:"TextPrimary",fontWeight:"bold"}),{flexGrow:1}]),"label:SpanHeaderTitle;"),Zn=(0,ae.default)("div",{target:"ekur9623"})((({theme:{direction:e,colors:t}})=>[Object.assign(Object.assign({width:"24px",height:"24px",cursor:"pointer"},"rtl"===e&&{transform:"rotate(180deg)"}),{"> svg > path":{fill:t.TextPrimary}})]),"label:DivBackButton;");var Kn=n(93037),Xn=n(54622),Qn=n(84827),Jn=n(25616),ei=n(60094),ti=n(35626),ni=n.n(ti);const ii={position:"absolute",bottom:0,left:0,height:0,overflow:"hidden","padding-top":0,"padding-bottom":0,border:"none"},oi=["box-sizing","width","font-size","font-weight","font-family","font-style","letter-spacing","text-indent","white-space","word-break","overflow-wrap","padding-left","padding-right"];function ai(e,t){var n;if("letters"!==t&&"words"!==t)throw new Error(`Unsupported options basedOn: ${t}`);if(e.nodeType===Node.TEXT_NODE){const t=document.createDocumentFragment();Array.from(e.textContent||"").forEach((e=>{t.appendChild(function(e){const t=document.createElement("span");return t.className="LinesEllipsis-unit",t.textContent=e,t}(e))})),null===(n=e.parentNode)||void 0===n||n.replaceChild(t,e)}else if(e.nodeType===Node.ELEMENT_NODE){const n=[].slice.call(e.childNodes),i=n.length;for(let e=0;enull,winWidth:void 0},ui=Object.keys(di);class pi extends _.Component{constructor(e){super(e),this.state={html:e.unsafeHTML,clamped:!1},this.canvas=null,this.maxLine=0,this.nlUnits=[]}componentDidMount(){this.initCanvas(),this.reflow(this.props)}componentDidUpdate(e){e.winWidth!==this.props.winWidth&&this.copyStyleToCanvas(),ni()(this.props,e)||this.reflow(this.props)}componentWillUnmount(){this.canvas.parentNode.removeChild(this.canvas)}setState(e,t){return void 0!==e.clamped&&(this.clamped=e.clamped),super.setState(e,t)}initCanvas(){if(this.canvas)return;this.canvas=document.createElement("div");const{canvas:e}=this;e.className=`LinesEllipsis-canvas ${this.props.className}`,e.setAttribute("aria-hidden","true"),this.copyStyleToCanvas(),Object.keys(ii).forEach((t=>{e.style[t]=ii[t]})),document.body.appendChild(e)}copyStyleToCanvas(){const e=window.getComputedStyle(this.target);oi.forEach((t=>{this.canvas.style[t]=e[t]}))}reflow(e){this.maxLine=Number(e.maxLine)||1,this.canvas.innerHTML=e.unsafeHTML;const t=e.basedOn||(/^[\x00-\x7F]+$/.test(e.unsafeHTML)?"words":"letters");ai(this.canvas,t);const n={clamped:this.putEllipsis(this.calcIndexes()),html:this.canvas.innerHTML};this.setState(n,e.onReflow.bind(this,n))}calcIndexes(){const e=[0];this.nlUnits=Array.from(this.canvas.querySelectorAll(".LinesEllipsis-unit"));const{nlUnits:t}=this,n=t.length;if(!t.length)return e;const i=t.find(ci);if(!i)return e;let o=1,{offsetTop:a}=i;for(let i=1;i1&&(o++,e.push(i),a=t[i].offsetTop,o>this.maxLine));i++);return e}putEllipsis(e){if(e.length<=this.maxLine)return!1;this.nlUnits=this.nlUnits.slice(0,e[this.maxLine]);let t=this.nlUnits.pop();const n=this.makeEllipsisSpan();do{si(t,this.canvas),li(t).appendChild(n),t=this.nlUnits.pop()}while(t&&(!ci(t)||n.offsetHeight>t.offsetHeight||n.offsetTop>t.offsetTop));return t&&ri(t),this.nlUnits.forEach(ri),!0}makeEllipsisSpan(){const{ellipsisHTML:e,ellipsis:t}=this.props,n=document.createElement("span"),i=document.createElement("span");return i.className="p1 font-semibold text-color-TextSecondary",i.setAttribute("style","cursor: pointer;"),e?i.innerHTML=e:i.textContent=t,n.appendChild(i),n}isClamped(){return this.clamped}render(){const{html:e,clamped:t}=this.state,n=this.props,{component:i,className:o,unsafeHTML:a}=n,r=(0,S.__rest)(n,["component","className","unsafeHTML"]);return(0,l.jsx)(i,Object.assign({className:`LinesEllipsis ${t?"LinesEllipsis--clamped":""} ${o}`,ref:e=>{this.target=e}},function(e,t){if(!e||"object"!=typeof e)return e;const n={};return Object.keys(e).forEach((i=>{t.indexOf(i)>-1||(n[i]=e[i])})),n}(r,ui),{children:(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:t?e:a}})}))}}pi.defaultProps=di;const vi=pi,gi=(0,ae.default)("div",{target:"e6o8e620"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"P1",color:"TextPrimary",fontWeight:"medium"}),{marginBottom:12}]),"label:SectionHeader;"),mi=(0,ae.default)("div",{target:"e6o8e621"})((({showDivider:e})=>[{display:"flex",alignItems:"flex-start",justifyContent:"space-between"},e&&{cursor:"pointer",paddingBottom:8}]),"label:ContentHeader;"),hi=(0,ae.default)("div",{target:"e6o8e622"})((({theme:e,isList:t})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextSecondary",fontWeight:"normal"}),{marginBottom:8},t&&{paddingInlineEnd:30}]),"label:ContentTitle;"),_i=(0,ae.default)("div",{target:"e6o8e623"})((({theme:e,showDivider:t,isList:n})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextTertiaryAlt",fontWeight:"normal"}),n&&Object.assign({paddingTop:16},t&&{paddingTop:0,marginBottom:12})]),"label:ContentDescription;"),fi=(0,ae.default)("div",{target:"e6o8e624"})([{marginBottom:16}],"label:ContentDivider;"),yi=(0,ae.default)("div",{target:"e6o8e625"})((({theme:{direction:e,colors:t},isShow:n})=>[Object.assign(Object.assign({minWidth:"16px",width:"16px",height:"16px",transition:"transform .4s"},"rtl"===e&&{transform:"rotate(180deg)"}),{"> svg > path":{fill:t.TextTertiary}}),n&&{transform:"rotateZ(-90deg)"}]),"label:DivArrowContainer;");var bi=n(88091),wi=n(7399);const xi=({isShowByDefault:e,showSeeMore:t,showDivider:n,item:i,seeMoreText:o,onToggle:a})=>{const[r,s]=(0,_.useState)(e),[c,d]=(0,_.useState)(!0),u=(0,_.useCallback)((()=>{0!==i.contentList.length&&s((e=>(a&&a(!e),!e)))}),[a,i]),p=(0,l.jsx)("section",{children:(0,l.jsx)("article",{children:i.contentList.map(((e,t)=>"break"===e.type?(0,l.jsx)("br",{},t):"text"===e.type?(0,l.jsx)("p",{children:e.text},t):"list"===e.type?(0,l.jsx)("ul",{children:(e.list||[]).map(((e,n)=>(0,l.jsx)("li",{className:0===t?"mb-8":"my-8",children:e},n)))},t):null))})}),{value:v}=(0,_.useContext)(ee.xm),g=(0,l.jsx)("span",{style:Object.assign({color:"rgba(0, 0, 0, 0.72)",fontWeight:500},v&&{color:"rgba(255, 255, 255, 0.75)"}),children:`... ${o}`});return(0,l.jsx)(l.Fragment,{children:t?(0,l.jsxs)("article",{children:[(0,l.jsx)(hi,{children:i.title}),c?(0,l.jsx)(_i,{children:(0,l.jsx)(vi,{"data-cy":"see-more-btn",onClick:()=>d(!1),unsafeHTML:ei.renderToString(p),maxLine:"4",basedOn:"letters",ellipsisHTML:ei.renderToString(g),style:{overflowWrap:"break-word",wordBreak:"break-word",wordWrap:"break-word"}})}):(0,l.jsx)(_i,{children:p})]}):(0,l.jsxs)("article",{children:[(0,l.jsxs)(mi,{showDivider:n,onClick:u,children:[(0,l.jsx)(hi,{isList:!0,children:i.title}),i.contentList.length>0&&(0,l.jsx)(yi,{isShow:r,children:(0,l.jsx)(wi.A,{width:16,height:16})})]}),r&&(0,l.jsx)(_i,{isList:!0,showDivider:n,children:p}),n&&(0,l.jsx)(fi,{children:(0,l.jsx)(bi.zm,{size:"medium",color:"LineSecondary"})})]})})},Ti=/([\s\S]*?)<\/li>/g,Si=()=>{},ki=({title:e,list:t,isShowByDefault:n=!1,seeMoreText:i="",handleOpenLink:o=Si,onToggle:a})=>{const r=(0,_.useMemo)((()=>t.map((e=>{var t;const n=Object.assign(Object.assign({},e),{contentList:[]});if(e.content_v2&&e.content_v2.length>1&&""!==e.content_v2[0])return e.content_v2.forEach(((t,i)=>{n.contentList.push({text:t,type:"text"}),e.content_v2&&i!==e.content_v2.length-1&&n.contentList.push({text:"",type:"break"})})),n;if(!e.content)return n;let i=0,o=Ti.exec(e.content);for(;null!==o;){o.index!==i&&n.contentList.push({text:e.content.slice(i,o.index),type:"text"});const{length:a}=n.contentList,r=o.length>1?o[1]:"";a&&"list"===n.contentList[a-1].type?null===(t=n.contentList[a-1].list)||void 0===t||t.push(r):n.contentList.push({list:[r],type:"list"}),i=o.index+o[0].length,o=Ti.exec(e.content)}return i<=e.content.length&&n.contentList.push({text:e.content.slice(i),type:"text"}),n}))),[t]);return(0,l.jsxs)("div",{children:[(0,l.jsx)(gi,{children:e}),r.map(((e,t)=>(0,l.jsx)(xi,{item:e,isShowByDefault:n,seeMoreText:i,showSeeMore:1===r.length,showDivider:1!==r.length&&t!==r.length-1,onToggle:e=>null==a?void 0:a(t,e),onOpenLink:o},t)))]})};var Ai=n(50708),Oi=n.n(Ai);const Ei=(0,ae.default)("div",{target:"e10vb9hi0"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"P1",color:"TextPrimary",fontWeight:"medium"}),{marginBottom:12}]),"label:SectionHeader;"),Pi=(0,ae.default)("div",{target:"e10vb9hi1"})((({theme:e,hasBorder:t})=>[{fontSize:0,height:40,width:40,borderRadius:24,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:e.colors.BGTertiary,color:e.colors.TextPrimary},t&&{border:`1px solid ${e.colors.LineSecondary2}`}]),"label:DivIconWrapper;"),Ii=(0,ae.default)("div",{target:"e10vb9hi2"})((({isHelpAndSupport:e})=>[{display:"flex",flexDirection:"row"},e?{alignItems:"center"}:{alignItems:"start"}]),"label:SectionContentContainer;"),Ci=(0,ae.default)("div",{target:"e10vb9hi3"})((({theme:{direction:e},hasHeartIcon:t})=>[Object.assign({display:"flex",flexDirection:"column",alignItems:"start",flexGrow:1},"rtl"===e&&{marginLeft:0}),t&&{paddingInlineStart:12}]),"label:SectionContent;"),ji=(0,ae.default)("div",{target:"e10vb9hi4"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"P1",color:"TextSecondary",fontWeight:"normal"}),{wordBreak:"break-word"}]),"label:SectionContentMain;"),Li=(0,ae.default)("div",{target:"e10vb9hi5"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextSecondary",fontWeight:"normal"}),{display:"inline"}]),"label:TitleText;"),Mi=(0,ae.default)("div",{target:"e10vb9hi6"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextPrimary",fontWeight:"semiBold"}),{display:"inline",cursor:"pointer"}]),"label:InnerLinkText;"),Ni=(0,ae.default)("div",{target:"e10vb9hi7"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextTertiaryAlt",fontWeight:"normal"}),{marginTop:4}]),"label:SectionContentFooter;"),Di=(0,ae.default)("div",{target:"e10vb9hi8"})((({theme:{direction:e},imageUrl:t,isProfileIcon:n})=>[Object.assign({width:68,height:87,borderRadius:4,overflow:"hidden",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",position:"relative",marginTop:-33,marginLeft:12,backgroundImage:`url(${t})`},"rtl"===e&&{marginLeft:0,marginRight:12}),n&&{height:44,width:44,borderRadius:40}]),"label:VideoPoster;"),Ri=(0,ae.default)("div",{target:"e10vb9hi9"})({position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjEuNTAwNTYiIGhlaWdodD0iMTcuNzY4NCIgcng9IjAuNSIgdHJhbnNmb3JtPSJtYXRyaXgoMC42OTkxODYgLTAuNzE0OTQgLTAuNzE0OTQgLTAuNjk5MTg2IDE1LjIwMzMgMTYuMjUpIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjA3MDcgMTQuNTU1OUMxMS4xODA2IDE0LjU1NTkgMTIuMjM0MyAxNC4zODcyIDEzLjE4MjMgMTQuMDg0NEwxMi4wMDIxIDEyLjkzMDJDMTEuOTgwMyAxMi45MDg5IDExLjk2MDggMTIuODg2IDExLjk0MzggMTIuODYyQzExLjM1OTMgMTIuOTg2NCAxMC43MzA4IDEzLjA1NTQgMTAuMDcwNyAxMy4wNTU0QzguMjY4OTUgMTMuMDU1NCA2LjcwMjE5IDEyLjU0MTggNS42MjU5NCAxMS43ODg0QzQuNTQ0OTUgMTEuMDMxNyA0LjA2ODQ5IDEwLjEzMDMgNC4wNjg0OSA5LjMwNDAzQzQuMDY4NDkgOC40Nzc4IDQuNTQ0OTUgNy41NzYzNiA1LjYyNTk0IDYuODE5NjdDNS42NTA3MSA2LjgwMjMzIDUuNjc1NzQgNi43ODUxMiA1LjcwMTAzIDYuNzY4MDRMNC42MTA4MSA1LjcwMTg1QzMuMzQ0MjUgNi42NDIxNyAyLjU2Nzk1IDcuOTA5NjQgMi41Njc5NSA5LjMwNDAzQzIuNTY3OTUgMTIuMjA0NiA1LjkyNzAyIDE0LjU1NTkgMTAuMDcwNyAxNC41NTU5Wk02Ljk3NzExIDQuNTE3OTRDNy45MjAzMyA0LjIxODczIDguOTY3NyA0LjA1MjE0IDEwLjA3MDcgNC4wNTIxNEMxNC4yMTQzIDQuMDUyMTQgMTcuNTczNCA2LjQwMzQ5IDE3LjU3MzQgOS4zMDQwM0MxNy41NzM0IDEwLjY5MzQgMTYuODAyNiAxMS45NTY4IDE1LjU0NDEgMTIuODk2MUwxNC40NTQ0IDExLjgzMDRDMTQuNDc0OSAxMS44MTY1IDE0LjQ5NTIgMTEuODAyNSAxNC41MTU0IDExLjc4ODRDMTUuNTk2NCAxMS4wMzE3IDE2LjA3MjggMTAuMTMwMyAxNi4wNzI4IDkuMzA0MDNDMTYuMDcyOCA4LjQ3NzggMTUuNTk2NCA3LjU3NjM2IDE0LjUxNTQgNi44MTk2N0MxMy40MzkxIDYuMDY2MyAxMS44NzI0IDUuNTUyNjggMTAuMDcwNyA1LjU1MjY4QzkuNDIxNDkgNS41NTI2OCA4LjgwMjgyIDUuNjE5MzYgOC4yMjY2MSA1LjczOTlMNi45NzcxMSA0LjUxNzk0WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC44NTY5IDExLjgxMDJDMTAuNjA4NyAxMS44ODggMTAuMzQ0NiAxMS45MyAxMC4wNzA3IDExLjkzQzguNjIwMzkgMTEuOTMgNy40NDQ3MiAxMC43NTQzIDcuNDQ0NzIgOS4zMDQwM0M3LjQ0NDcyIDkuMDUwNjUgNy40ODA2IDguODA1NjUgNy41NDc1NyA4LjU3Mzg0TDEwLjg1NjkgMTEuODEwMlpNOS4zMDI2NSA2Ljc5MjE4QzkuNTQ1NTcgNi43MTc5OSA5LjgwMzQ2IDYuNjc4MDggMTAuMDcwNyA2LjY3ODA4QzExLjUyMDkgNi42NzgwOCAxMi42OTY2IDcuODUzNzYgMTIuNjk2NiA5LjMwNDAzQzEyLjY5NjYgOS41NTA3NCAxMi42NjI2IDkuNzg5NSAxMi41OTkgMTAuMDE1OUw5LjMwMjY1IDYuNzkyMThaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K')",backgroundSize:"20px 20px",backgroundPosition:"center",backgroundRepeat:"no-repeat"},"label:MaskIcon;"),Bi={id:"heart-4636b1b5",use:"heart-4636b1b5-usage",viewBox:"0 0 40 40",content:''};function Ui(e){const t=(0,_.useContext)(G.X);return(0,_.useLayoutEffect)((()=>(t.add(Bi),()=>{t.remove("heart-4636b1b5")})),[]),(0,l.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,l.jsx)("use",{xlinkHref:"#heart-4636b1b5"},void 0)}),void 0)}const Fi={id:"photo-4dee05ae",use:"photo-4dee05ae-usage",viewBox:"0 0 48 48",content:''};function Vi(e){const t=(0,_.useContext)(G.X);return(0,_.useLayoutEffect)((()=>(t.add(Fi),()=>{t.remove("photo-4dee05ae")})),[]),(0,l.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,l.jsx)("use",{xlinkHref:"#photo-4dee05ae"},void 0)}),void 0)}var zi=n(62541),Hi=n(32567),qi=n(54977),Wi=n(87992),$i=n(81678),Gi=n(86406),Yi=n(63581);const Zi=e=>{var t;const{contentInfo:n,handlePressLink:i,title:o}=e;if(null==n?void 0:n.content_id){const e={item_id:n.content_id,result_type:n.result_type,reason_code:n.reason_code};Se.f.event("web_appeal_result_show",e)}const a=(e,t,n)=>{var i,o;if(n){let e=null!==(i=n.text)&&void 0!==i?i:"";for(const t of null!==(o=n.elements)&&void 0!==o?o:[])e=e.replace(t.placeholder,`
`);return t?`"${e}"`:e}return t?`"${e}"`:e},r=e=>{let t,n=!0;switch(e){case tn.VIDEO:t=(0,l.jsx)(zi.q,{size:20});break;case tn.COMMENT:t=(0,l.jsx)(Hi.S,{size:20});break;case tn.AUDIO:t=(0,l.jsx)(qi.G,{size:20});break;case tn.LINK:t=(0,l.jsx)(Wi.j,{size:20});break;case tn.HASHTAG:t=(0,l.jsx)($i.g,{size:20});break;case tn.IMAGE:t=(0,l.jsx)(Gi.P,{size:20});break;case tn.USER:t=(0,l.jsx)(Yi.Y,{size:20});break;case tn.PHOTO:t=(0,l.jsx)(Vi,{width:20,height:20});break;case tn.HEART:t=(0,l.jsx)(Ui,{width:40,height:40}),n=!1;break;default:t=(0,l.jsx)(Yi.Y,{size:20})}return(0,l.jsx)(Pi,{hasBorder:n,children:t})},s=n?[n]:[];return(0,l.jsxs)("div",{children:[(0,l.jsx)(Ei,{children:null!==(t=null==n?void 0:n.header)&&void 0!==t?t:o}),null==s?void 0:s.map(((e,t)=>{const{title:n,content:o,has_quote:s,inner_link_text:c,inner_link_url:d,image_url:u,image_has_mask:p,icon_type:v,rich_text:g}=e;return(0,l.jsxs)(Ii,{isHelpAndSupport:v===tn.HEART,children:[v===tn.HEART&&r(v),(0,l.jsxs)(Ci,{hasHeartIcon:v===tn.HEART,children:[(0,l.jsxs)(ji,{children:[n&&(0,l.jsx)(Li,{dangerouslySetInnerHTML:{__html:Oi().sanitize(a(n,s,g))}}),c&&(0,l.jsxs)(Mi,{onClick:()=>i&&i(d),children:[" ",c]})]}),(0,l.jsx)(Ni,{children:o})]}),u&&(0,l.jsx)(Di,{imageUrl:u,isProfileIcon:v===tn.PROFILE,children:p&&(0,l.jsx)(Ri,{})})]},t)}))]})},Ki=(0,ae.default)("div",{target:"e1j3z3dm0"})({paddingLeft:24,paddingRight:24,height:"100%",flexGrow:1},"label:Container;"),Xi=(0,ae.default)("div",{target:"e1j3z3dm1"})((({theme:e})=>({padding:16,backgroundColor:e.colors.BGPrimary,borderRadius:8,marginBottom:8})),"label:ComponentWrapper;"),Qi=(0,ae.default)("div",{target:"e1j3z3dm2"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"P3",color:"TextSecondary",fontWeight:"normal"})]),"label:FooterText;"),Ji=(0,ae.default)("div",{target:"e1j3z3dm4"})((({showAppealButton:e})=>[{position:"relative",bottom:"0",left:"0",width:"100%",height:54,marginBottom:12,padding:8,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},e&&{alignItems:"start",paddingLeft:24}]),"label:DivFooter;"),eo=(0,ae.default)("div",{target:"e1j3z3dm5"})({display:"flex",flexDirection:"column",height:"580px",overflowY:"auto"},"label:ContainerWrapper;"),to=(0,ae.default)("div",{target:"e1j3z3dm6"})({display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",marginBottom:32},"label:SectionAppealStatus;"),no=(0,ae.default)("div",{target:"e1j3z3dm7"})((e=>[(0,nt.zy)({theme:e.theme,color:e.$color}),{display:"flex",justifyContent:"center",alignItems:"center"}]),"label:DivIconWrapper;"),io=(0,ae.default)("div",{target:"e1j3z3dm8"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"H4",color:"TextPrimary",fontWeight:"bold"}),{marginTop:18,textAlign:"center"}]),"label:AppealTitle;"),oo=(0,ae.default)("div",{target:"e1j3z3dm9"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextSecondary",fontWeight:"normal"}),{marginTop:12,textAlign:"center"}]),"label:AppealSubtitle;"),ao=(0,ae.default)("div",{target:"e1j3z3dm10"})({cursor:"pointer",padding:"9px",height:"32px"},"label:DivCloseButton;"),ro=(0,ae.default)("div",{target:"e1j3z3dm11"})({flexGrow:1},"label:FlexGrowDiv;"),so=(0,ae.default)("div",{target:"e1cp17ug0"})((({hideMargin:e=!1})=>Object.assign({},!e&&{marginTop:12})),"label:HyperlinkTextContainer;"),lo=(0,ae.default)("div",{target:"e1cp17ug1"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextSecondary",fontWeight:"normal"}),{display:"inline"}]),"label:MainTextContent;"),co=(0,ae.default)("div",{target:"e1cp17ug2"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextPrimary",fontWeight:"semiBold"}),{display:"inline",cursor:"pointer"}]),"label:LinkTextContent;"),uo=e=>{const{hideMargin:t=!1,btnText:n,onClick:i}=e;if(!n)return null;const{text:o,links:a=[]}=n,r=function(e,t){let n=0;const i=[],o=[];try{t.forEach((t=>{e.indexOf(t.placeholder)>=0&&o.push({idx:e.indexOf(t.placeholder),length:t.placeholder.length,link_obj:t})})),o.sort(((e,t)=>e.idx-t.idx));let a=0;for(;n"string"===e.type&&e.text?(0,l.jsx)(lo,{children:e.text},`text_${t}`):"url"===e.type&&e.text&&e.url?(0,l.jsx)(co,{onClick:()=>i(e.url),children:e.text},`url_${t}`):null))})},po=(0,ae.default)("div",{target:"e1w4n3ph0"})({display:"flex",flexDirection:"column",marginBottom:20,"&:last-of-type":{marginBottom:0}},"label:TextWrapper;"),vo=(0,ae.default)("div",{target:"e1w4n3ph1"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"P1",color:"TextPrimary",fontWeight:"medium"}),{marginBottom:6}]),"label:Title;"),go=(0,ae.default)("div",{target:"e1w4n3ph2"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextSecondary",fontWeight:"normal"}),{wordBreak:"break-word"}]),"label:Description;"),mo=({successTitle:e,failureTitle:t,successDesc:n,failureDesc:i})=>{const o=[{title:t,description:i},{title:e,description:n}];return(0,l.jsx)("div",{children:o.map((({title:e,description:t},n)=>(0,l.jsxs)(po,{children:[(0,l.jsx)(vo,{children:e}),(0,l.jsx)(go,{children:t})]},n)))})},ho=({handleClose:e})=>{var t,n,i;const o=(0,Jn.s)(),{status:a,detail:r,contentDetailList:s}=(0,gn.P)(Wn),{language:c}=null!==(t=(0,Ve.W)((()=>["language"]),[]))&&void 0!==t?t:{},d=null==r?void 0:r.object_type,u=null===(n=r.violation_info)||void 0===n?void 0:n.violation_info_status,p=(null===(i=null==r?void 0:r.violation_info)||void 0===i?void 0:i.header)||"",v=d===en.CONTENT_CHECK_VIDEO,g=u===on.VIOLATION_INFO_IN_PROGRESS,m=v&&g,h=r.content_info_list,f=(0,_.useRef)({}),y=(0,_.useCallback)(((e,t)=>{const n=`category_${e+1}`;"no"===f.current[n]&&t&&(f.current[n]="yes")}),[]),b=(0,_.useCallback)((e=>(0,S.__awaiter)(void 0,void 0,void 0,(function*(){e&&window.open(e,"_blank")}))),[a,r,s]);if("loading"===a)return(0,l.jsx)(Qn.R,{center:!0,size:"small"});const w={text:o("dsaCGWebapp_detailPg_sectionCG_body"),links:[{link_text:o("tcm_tt_ad_policy_link"),placeholder:"%s",url:`https://support.tiktok.com/${c}/business-and-creator/creator-and-business-accounts`}]};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(Gn,{children:[(0,l.jsx)(ro,{}),(0,l.jsx)(ao,{onClick:e,children:(0,l.jsx)(Xn.A,{width:14,height:14})})]}),(0,l.jsx)(eo,{children:(0,l.jsxs)(Ki,{children:[(0,l.jsxs)(to,{children:[(0,l.jsx)(no,{$color:"LinePrimary2",children:(0,l.jsx)(Kn.i,{size:48})}),(0,l.jsx)(io,{children:o("dsaCGWebapp_appealSubmitted_sectionTitle_header")}),(0,l.jsx)(oo,{children:o("vidModAnalytics_inbox_notifAppealSubmitted__xNotifBody")})]}),(h||[]).map(((e,t)=>(0,l.jsxs)(Xi,{children:[console.log("ContentInfoSection: ",e),(0,l.jsx)(Zi,{contentInfo:e,handlePressLink:b})]},t))),m&&(0,l.jsx)(Xi,{children:(0,l.jsx)(mo,{successTitle:o("contentCheck_progressScreen_page_bullet2Header"),successDesc:o("contentCheck_progressScreen_page_bullet2Body"),failureTitle:o("contentCheck_progressScreen_page_bullet1Header"),failureDesc:o("contentCheck_progressScreen_page_bullet1Body_postPrivate")})}),(null==s?void 0:s.length)>0&&(0,l.jsx)(Xi,{children:(0,l.jsx)(ki,{title:p,list:s,onToggle:y,handleOpenLink:b,seeMoreText:o("search_see_more")})})]})}),(0,l.jsx)(Ji,{children:(0,l.jsx)(Qi,{children:(0,l.jsx)(uo,{hideMargin:!0,btnText:w,onClick:b})})})]})};var _o=n(26456);const fo=(0,ae.default)("div",{target:"e1xiurx30"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"P3",color:"TextSecondary",fontWeight:"normal"}),{marginTop:24}]),"label:SubtitleDiv;"),yo=(0,ae.default)("div",{target:"e1xiurx31"})((({theme:e})=>({borderTop:`1px solid ${e.colors.LineSecondary}`,paddingLeft:24,paddingRight:24})),"label:Container;"),bo=(0,ae.default)("div",{target:"e1xiurx32"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextPrimary",fontWeight:"semiBold"}),{marginTop:32}]),"label:SectionHeaderDiv;"),wo=(0,ae.default)("div",{target:"e1xiurx33"})({width:72,height:72,borderRadius:6,overflow:"hidden",backgroundSize:"cover",backgroundPosition:"center center",backgroundRepeat:"no-repeat"},"label:ImageDiv;"),xo=(0,ae.default)("div",{target:"e1xiurx34"})({display:"flex",flexDirection:"row",marginTop:16,alignItems:"center"},"label:ContentInfoRow;"),To=(0,ae.default)("div",{target:"e1xiurx35"})({display:"flex",flexDirection:"column",marginInlineStart:16},"label:ContentInfoDetails;"),So=(0,ae.default)("div",{target:"e1xiurx36"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"P3",color:"TextSecondary",fontWeight:"normal"})]),"label:ContentInfoDetailsTitle;"),ko=(0,ae.default)("div",{target:"e1xiurx37"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"P3",color:"TextTertiaryAlt",fontWeight:"normal"})]),"label:ContentInfoDetailsContent;"),Ao=(0,ae.default)("div",{target:"e1xiurx38"})({marginTop:32},"label:MarginTop32DivWrapper;"),Oo=(0,ae.default)("div",{target:"e1xiurx39"})({marginTop:16},"label:MarginTop16DivWrapper;"),Eo=(0,ae.default)("span",{target:"e1xiurx310"})((({theme:e})=>[(0,nt.zy)({theme:e,color:"Primary"})]),"label:PrimarySpanText;"),Po=(0,ae.default)("textarea",{target:"e1xiurx311"})((({theme:e})=>Object.assign(Object.assign({},(e=>({borderStyle:"none",borderColor:"transparent",boxShadow:"none",outline:"none",marginTop:"10px",fontSize:"16px",fontFamily:e.fontFamilies.TikTokFont,fontWeight:e.fontWeights.normal,color:e.colors.TextPrimary,":placeholder":{color:e.colors.TextQuaternary}}))(e)),{resize:"none",height:"48px",width:"100%",backgroundColor:e.colors.BGPrimary})),"label:TextareaDescription;"),Io=(0,ae.default)("div",{target:"e1xiurx312"})((({theme:e})=>({paddingBottom:"12.5px",borderBottom:`0.5px solid ${e.colors.LineInput}`})),"label:TextareaWrapper;"),Co=(0,ae.default)("div",{target:"e1xiurx313"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextPrimary",fontWeight:"semiBold"})]),"label:TextAreaHeader;"),jo=(0,ae.default)("div",{target:"e1xiurx314"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"P3",color:"TextSecondary",fontWeight:"normal"})]),"label:TextAreaWordCount;"),Lo=(0,ae.default)("div",{target:"e1xiurx315"})({display:"flex",flexDirection:"row"},"label:FlexRowDiv;"),Mo=(0,ae.default)("div",{target:"e1xiurx316"})({flexGrow:1},"label:FlexGrowDiv;"),No=(0,ae.default)("div",{target:"e1xiurx317"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"P4",color:"TextSecondary",fontWeight:"normal"}),{marginTop:32,marginBottom:17}]),"label:FooterText;"),Do=(0,ae.default)("span",{target:"e1xiurx318"})((({theme:e})=>[(0,nt.zy)({theme:e,color:"TextPrimary",fontWeight:"semiBold"})]),"label:LinkSpan;"),Ro=(0,ae.default)("div",{target:"e1xiurx319"})((({theme:e})=>({position:"relative",bottom:"0",left:"0",height:"84px",width:"100%",borderTop:`0.5px solid ${e.colors.LinePrimary2}`,backgroundColor:e.colors.BGPrimary})),"label:DivFooter;"),Bo=(0,ae.default)("div",{target:"e1xiurx320"})({cursor:"pointer",padding:"9px",height:"32px"},"label:DivCloseButton;"),Uo=(0,ae.default)("div",{target:"e13mo2lr0"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextPrimary",fontWeight:"semiBold"})]),"label:TitleDiv;"),Fo=(0,ae.default)("div",{target:"e13mo2lr1"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",typography:"P3",color:"TextPrimary",fontWeight:"normal"}),{marginTop:16}]),"label:ContentDiv;"),Vo=({title:e,text:t})=>(0,l.jsxs)("div",{children:[(0,l.jsx)(Uo,{children:e}),(0,l.jsx)(Fo,{children:t})]});var zo=n(33843);const Ho={id:"header-arrow-f8c49d4b",use:"header-arrow-f8c49d4b-usage",viewBox:"0 0 24 24",content:''};function qo(e){const t=(0,_.useContext)(G.X);return(0,_.useLayoutEffect)((()=>(t.add(Ho),()=>{t.remove("header-arrow-f8c49d4b")})),[]),(0,l.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,l.jsx)("use",{xlinkHref:"#header-arrow-f8c49d4b"},void 0)}),void 0)}var Wo=n(21512),$o=n(86223);const Go=(0,ae.default)("div",{target:"e1opdqbw0"})({padding:"32px",height:"100%"},"label:Container;"),Yo=(0,ae.default)("div",{target:"e1opdqbw1"})({display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center"},"label:SectionAppealStatus;"),Zo=(0,ae.default)("div",{target:"e1opdqbw2"})((e=>[(0,nt.zy)({theme:e.theme,color:e.$color}),{display:"flex",justifyContent:"center",alignItems:"center"}]),"label:DivIconWrapper;"),Ko=(0,ae.default)("div",{target:"e1opdqbw3"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",color:"TextPrimary",fontWeight:"bold"}),{fontSize:"24px",lineHeight:"36px",marginTop:"27px",textAlign:"center"}]),"label:AppealTitle;"),Xo=(0,ae.default)("div",{target:"e1opdqbw4"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",color:"TextSecondary",fontWeight:"normal"}),{fontSize:"16px",lineHeight:"22px",marginTop:"16px",textAlign:"center"}]),"label:AppealSubtitle;"),Qo=(0,ae.default)("button",{target:"e1opdqbw5"})((({theme:e})=>({marginTop:"24px",height:"48px",width:"100%",padding:"12px 24px",cursor:"pointer",background:e.colors.Primary,border:"none",borderRadius:"8px"})),"label:PrimaryButton;"),Jo=(0,ae.default)("div",{target:"e1opdqbw6"})((({theme:e})=>[(0,nt.zy)({theme:e,fontFamily:"TikTokFont",color:"ConstTextInverse",fontWeight:"bold"}),{fontSize:"16px",lineHeight:"24px",textAlign:"center"}]),"label:PrimaryButtonText;"),ea=({handleClose:e})=>{const t=(0,Jn.s)();return(0,l.jsxs)(Go,{children:[(0,l.jsxs)(Yo,{children:[(0,l.jsx)(Zo,{$color:"LinePrimary2",children:(0,l.jsx)($o.Q,{size:72})}),(0,l.jsx)(Ko,{children:t("dsa_illegal_appeal_expired_header")}),(0,l.jsx)(Xo,{children:t("dsa_illegal_appeal_expired_desc")})]}),(0,l.jsx)(Qo,{onClick:e,children:(0,l.jsx)(Jo,{children:t("dsa_illegal_appeal_button_ok")})})]})},ta=function(e){let t={};try{t=JSON.parse(e)}catch(t){console.error(`JSON.parse report_ad_extra_data error! report_ad_extra_data: ${e}`)}return t},na=({handleBack:e,handleBackKeyDown:t,handleClose:n,query:i})=>{var o;const{report_type_id:a,report_type_name:r,report_from:s,report_ad_extra_data:c="{}",signature:d,email:u,relevant_law:p,law_country_code:v,notify_time:g,video_name:m,video_post_time:h,video_poster:f,report_unique_id:y,is_trusted_flagger:b,extra:w}=i,x=(0,Jn.s)(),T=(0,St.w)(Wn),{region:S="",user:k,language:A}=null!==(o=(0,Ve.W)((()=>["region","user","language"]),[]))&&void 0!==o?o:{},{status:O,reporterAppealInfo:E}=(0,gn.P)(Wn),P=[{code:"1",text:(0,Wo.f2)(Number(a))?x("dsa_illegal_appeal_dropdown_1"):x("vidModAnalytics_appealReporterDetailpg_sectionSelectReason_sectionBullet1")},{code:"2",text:x("dsa_illegal_appeal_dropdown_2")},{code:"3",text:x("dsa_illegal_appeal_dropdown_3")}],[I,C]=(0,_.useState)(""),[j,L]=(0,_.useState)(!1),[M,N]=(0,_.useState)({code:"",text:""});(0,_.useEffect)((()=>{const e=(new Date).getTime(),t=!!g&&e-1e3*Number(g)>15552e6;L(t)}),[]);const D=(0,_.useCallback)((e=>{C(e.target.value)}),[]),R=(0,_.useCallback)((e=>{M.code===e.code?N({code:"",text:""}):N(e)}),[M,N]),B=(0,_.useCallback)((e=>{e.stopPropagation()}),[]),U=(0,_.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),"idle"===O&&T.postAdAppeal({reason:Number(a),text:r,report_from:s,extraData:Object.assign({description:I,report_scene:"1",signature:d,email:u,relevant_law:p,law_country_code:v,appeal_reason_code:M.code,appeal_reason_text:M.text,is_trusted_flagger:!!Number(b),report_unique_id:y},ta(c)),region:S,uid:null==k?void 0:k.uid,extra:w})}),[I,T,E,O,M]);if("loading"===O)return(0,l.jsx)(Qn.R,{center:!0,size:"small"});if("submitted"===O)return(0,l.jsx)(ho,{handleBack:e,handleBackKeyDown:t,handleClose:n});if(j)return(0,l.jsx)(ea,{handleClose:n});let F="",V="";if(h){const e=new Date(1e3*Number(h));F=_o.Ay.format(e,"l"),V=_o.Ay.format(e,"lt")}return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(Gn,{children:[(0,l.jsx)(Zn,{onClick:e,onKeyDown:t,tabIndex:0,role:"button",children:(0,l.jsx)(qo,{width:24,height:24})}),(0,l.jsx)(Yn,{children:x("dsaCGWebapp_appealDetailPg_sectionTitle_header")}),(0,l.jsx)(Bo,{onClick:n,children:(0,l.jsx)(Xn.A,{width:14,height:14})})]}),(0,l.jsxs)(yo,{children:[(0,l.jsx)(fo,{children:x("dsa_illegal_appeal_desc")}),m&&(0,l.jsxs)("div",{children:[(0,l.jsx)(bo,{children:x("video_detail")}),(0,l.jsxs)(xo,{children:[(0,l.jsx)(wo,{style:{backgroundImage:`url(${f})`}}),(0,l.jsxs)(To,{children:[(0,l.jsx)(So,{children:m}),(0,l.jsx)(ko,{children:x("vidModAnalytics_detailPg_sectionDatePosted_sectionLabel").replace("%1$s",F).replace("%2$s",V)})]})]})]}),(0,l.jsx)(Ao,{children:(0,l.jsx)(Vo,{title:x("dsa_illegal_appeal_report_reason"),text:r})}),(0,l.jsxs)(Ao,{children:[(0,l.jsxs)(bo,{children:[x("dsa_illegal_appeal_dropdown_title"),(0,l.jsx)(Eo,{children:"*"})]}),P.map(((e,t)=>(0,l.jsx)(Oo,{onClick:()=>{R(e)},children:(0,l.jsx)(bi.h$,{label:e.text,checked:M.code===e.code})},`reporter-appeal-reason-${t}`)))]}),(0,l.jsxs)(Ao,{children:[(0,l.jsxs)(Lo,{children:[(0,l.jsx)(Co,{children:x("dsa_illegal_appeal_explanation")}),(0,l.jsx)(Mo,{}),(0,l.jsx)(jo,{children:`${I.length}/400`})]}),(0,l.jsx)(Io,{children:(0,l.jsx)(Po,{rows:2,maxLength:400,placeholder:x("dsa_illegal_appeal_explanation_desc"),value:I,onChange:D,onKeyDown:B})})]}),(0,l.jsxs)(No,{children:[x("dsa_illegal_appeal_alt_options").replace("%s",""),(0,l.jsx)(Do,{onClick:()=>{window.open(`https://support.tiktok.com/${A}/business-and-creator/creator-and-business-accounts`,"_blank")},children:x("dsa_illegal_placeholder_learnmore")})]})]}),(0,l.jsx)(Ro,{children:(0,l.jsx)(zo.jl,{disabled:""===M.code,onClick:U,children:x("Submit")})})]})};var ia=n(54775);const oa=({onBack:e,onClose:t,query:n={}})=>{const i=(0,St.w)(Wn),[o,a]=(0,_.useState)(sn.SUBMIT),r=(0,_.useCallback)((()=>{e?e():a(sn.STATUS)}),[e]),s=(0,_.useCallback)((()=>{t()}),[t]),c=(0,_.useCallback)((()=>{a(sn.SUBMIT)}),[]),d=(0,_.useCallback)((e=>{13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),e.stopPropagation(),r())}),[r]);return(0,_.useEffect)((()=>{i.setViolationAppealStatus("idle")}),[n,i]),(0,l.jsx)($n,{children:(0,l.jsx)(ia.juU,{children:o===sn.SUBMIT?(0,l.jsx)(na,{handleBack:r,handleBackKeyDown:d,handleClose:s,query:n}):(0,l.jsx)(ho,{handleBack:r,handleBackKeyDown:d,handleClose:s,handleAppealClick:c})})})},aa=(0,ae.default)("div",{target:"e16wk1y40"})((()=>({width:"700px"})),"label:ViolationAppealWrapper;");var ra=n(42617);const sa=(0,_.memo)((function(){const e=function(){const{search:e}=(0,Z.useLocation)();return(0,_.useMemo)((()=>new URLSearchParams(e)),[e])}(),[t,n]=(0,_.useState)(!1),i=(0,gn.P)(hn.L),o=(0,St.w)(hn.L),a=(0,St.w)(_n.y7),[r,s]=(0,_.useState)({}),c=(0,_.useMemo)((()=>e.has("ad_report_id")),[e]);(0,_.useEffect)((()=>{var t;if(c){const n=null!==(t=e.get("ad_report_id"))&&void 0!==t?t:"";o.getLogoutReportDetail({reportId:n})}}),[c]),(0,_.useEffect)((()=>{if(i.visible){if(i.reportDetail.data){if(2===i.reportDetail.data.link_status)return void(window.location.href="https://www.tiktok.com/legal/report/report-expired");if(0===i.reportDetail.data.link_status)return void(window.location.href="https://www.tiktok.com/404");if(2===i.reportDetail.data.link_type)return void a.showRereport({rereportObj:i.reportDetail.data});s(i.reportDetail.data)}else s(i.violationAppealInfo);n(!0)}else n(!1)}),[i]);const d=(0,_.useCallback)((()=>{o.setVisible(!1),n(!1)}),[]);return(0,_.useEffect)((()=>{i.reportDetail.data&&!i.reportDetail.isLoading&&o.setVisible(!0)}),[i.reportDetail,o]),(0,l.jsx)(ra.Ay,{autoFocus:!0,disabled:!t,returnFocus:!0,children:(0,l.jsx)(mn.i,{compact:!0,isOpen:t,closeOnEsc:!0,children:(0,l.jsx)(aa,{children:(0,l.jsx)(oa,{query:r,onClose:()=>{d()}})})})})}));var la=n(47774),ca=n(97071);const da={video:"video_detail",photo:"graphic_detail",user:"others_homepage",music:"single_song",effect:"effect_detail",challenge:"challenge",home:"homepage_hot",foryou:"homepage_hot",foryouWithLang:"homepage_hot",following:"homepage_follow",friends:"friends_page",topics:"topic",expansion:"discover_kw",searchHome:"general_search",searchUser:"search_user",searchVideo:"search_video",discover:"discovery",setting:"setting",settingBlockList:"setting",settingDownLoadYourData:"setting",settingKeywordFiltering:"setting",settingAdPrivacyPersonalizedAds:"setting",settingAdPrivacyPersonalizedAdsInferredByTikTokTopics:"setting",settingAdPrivacyPersonalizedAdsYourChoicesTopics:"setting",settingAdPrivacyPersonalizedAdsAllTopics:"setting",settingAdvertiserSettings:"setting",settingDisconnectAdvertisers:"setting",settingDisconnectAdvertisersDetails:"setting",feedback:"feedback",feedbackHistory:"feedback_history",feedbackReport:"feedback_report",find:"find",question:"qa_detail",musicPlaylist:"music_playlist",poi:"place",poiCategory:"place",travel:"place",travelCategory:"place",collection:"collection",messages:"messages",channel:"channel",profile:"personal_homepage",inbox:"homepage_message",explore:"explore_page",videoPlaylist:"playlist",searchReminder:"search_reminder",searchLive:"search_live",upload:"upload",settingDailyScreenTimeEdit:"setting",settingTimeBreakEdit:"setting",settingSleepReminderEdit:"setting",download:"download",downloadWithLang:"download"},ua=n.p+"9ba6b3da175369e04c8c.css",pa=()=>{var e,t;const{appContext:n}=(0,gn.P)(cn.L,{selector:({appContext:e})=>({appContext:e}),dependencies:[]}),i=(0,Ge.Ig)(),{user:o}=(0,dn.L$)(n),{showInterestSelector:a}=(0,ke.gJ)(),r=(0,$e.zy)(),s=(0,_.useMemo)((()=>(0,ln.parse)(r.search)),[r.search]),l=da[null!==(t=null===(e=(0,Be.kv)(r.pathname))||void 0===e?void 0:e.name)&&void 0!==t?t:""],c=(0,_.useRef)(!0),{setIsPopupPriorityReady:d,clearReadyListOnRouteChange:u}=(0,un._y)(),[p,v]=(0,_.useState)(!1),[g,m]=(0,_.useState)(!1);s.show_promote||p||(d(1),v(!0)),a&&"homepage_hot"===l||g||(d(3),m(!0)),(0,pn.Du)(!1);const{handlePopupHide:h,handlePopupShow:f}=(0,ze.H)();return(0,_.useEffect)((()=>{c.current?c.current=!1:u()}),[u,r]),(0,ca.AR)(o),(0,q.FD)(q.FK,{children:[(0,q.Y)(te.mg,{children:(0,q.Y)("link",{rel:"stylesheet",as:"style",href:ua})}),(0,q.Y)(vn.K,{}),(0,q.Y)(sa,{}),!i&&(0,q.Y)(la.H,{onShow:f,onHide:h})]})},va=({children:e})=>{const t=(0,He.oY)(),{bodyContainerMaxWidth:n}=(0,We.vV)(),{popupHeight:i}=(0,ze.H)(),{isInAppNotificationEnabled:o}=(0,ke.mf)();return(0,q.FD)(Jt,{children:[(0,q.Y)(bt,{}),o&&(0,q.Y)(wt,{}),(0,q.Y)(_t,{}),(0,q.Y)(Qe,{isHideSideComponent:t,extraTop:i,maxWidth:n,children:(0,q.FD)(qe.U,{children:[(0,q.Y)(ft,{}),e]})}),(0,q.Y)(pa,{}),(0,q.Y)(yt,{})]})};var ga=n(141);const ma=function(){return window.location.href=`/404?fromUrl=${encodeURIComponent(window.location.pathname)}`,null},ha=(0,d.Ay)({resolved:{},chunkName:()=>"following",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(2402),n.e(895),n.e(5817),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5850),n.e(4353),n.e(5985),n.e(9127),n.e(3895),n.e(4434),n.e(272),n.e(9302),n.e(744),n.e(35),n.e(9624),n.e(7508),n.e(7547),n.e(1957),n.e(6075),n.e(862),n.e(6713),n.e(8990),n.e(1059),n.e(7454),n.e(2090),n.e(2624),n.e(7284),n.e(9129),n.e(4272),n.e(5156),n.e(4091),n.e(7775),n.e(4860),n.e(8962),n.e(6818),n.e(7859),n.e(4944),n.e(4525),n.e(7011),n.e(5172),n.e(203),n.e(6457),n.e(3191),n.e(8270),n.e(8603),n.e(6157),n.e(2380),n.e(4144),n.e(5730),n.e(7059),n.e(3254),n.e(358),n.e(7296),n.e(9058),n.e(5286),n.e(5380),n.e(176),n.e(3255),n.e(1466),n.e(6034),n.e(1111),n.e(4856)]).then(n.bind(n,62182)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>62182}),_a=(0,d.Ay)({resolved:{},chunkName:()=>"friends",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(2402),n.e(895),n.e(5817),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5850),n.e(4353),n.e(5985),n.e(9127),n.e(3895),n.e(4434),n.e(272),n.e(9302),n.e(744),n.e(35),n.e(862),n.e(6713),n.e(8990),n.e(1059),n.e(7454),n.e(2090),n.e(2624),n.e(7284),n.e(9129),n.e(4272),n.e(5156),n.e(4091),n.e(7775),n.e(4860),n.e(8962),n.e(6818),n.e(7859),n.e(4944),n.e(4525),n.e(7011),n.e(5172),n.e(203),n.e(6457),n.e(3191),n.e(8270),n.e(8603),n.e(6157),n.e(2380),n.e(4144),n.e(5730),n.e(7059),n.e(3254),n.e(358),n.e(7296),n.e(176),n.e(3255),n.e(1466),n.e(6034),n.e(1111),n.e(6814)]).then(n.bind(n,9694)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>9694}),fa=(0,d.Ay)({resolved:{},chunkName:()=>"search",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(7716),n.e(2402),n.e(895),n.e(5817),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5850),n.e(4353),n.e(5985),n.e(9127),n.e(3895),n.e(4434),n.e(272),n.e(9302),n.e(744),n.e(35),n.e(8345),n.e(9624),n.e(7508),n.e(7547),n.e(1957),n.e(6075),n.e(2090),n.e(2624),n.e(7284),n.e(9129),n.e(4272),n.e(5156),n.e(4091),n.e(7775),n.e(4860),n.e(8962),n.e(6818),n.e(7859),n.e(4944),n.e(4525),n.e(7011),n.e(5172),n.e(203),n.e(6457),n.e(3191),n.e(8270),n.e(8603),n.e(6157),n.e(2380),n.e(4144),n.e(5730),n.e(7059),n.e(3254),n.e(358),n.e(7296),n.e(7243),n.e(9569),n.e(9058),n.e(5286),n.e(651),n.e(5380),n.e(3255),n.e(8258),n.e(187)]).then(n.bind(n,61908)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>61908}),ya=(0,d.Ay)({resolved:{},chunkName:()=>"user",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(7181),n.e(3392),n.e(1427),n.e(2318),n.e(241),n.e(4336),n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(7716),n.e(2402),n.e(895),n.e(5817),n.e(6244),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5850),n.e(4353),n.e(5985),n.e(9127),n.e(3895),n.e(4434),n.e(272),n.e(9302),n.e(744),n.e(35),n.e(8345),n.e(9624),n.e(7508),n.e(7547),n.e(1957),n.e(6075),n.e(5021),n.e(3446),n.e(3290),n.e(8474),n.e(3557),n.e(8177),n.e(1274),n.e(9937),n.e(2618),n.e(2142),n.e(1683),n.e(6514),n.e(2128),n.e(5308),n.e(8605),n.e(2486),n.e(1605),n.e(4875),n.e(1493),n.e(3593),n.e(9920),n.e(5201),n.e(4978),n.e(8987),n.e(9655),n.e(5921),n.e(1924),n.e(825),n.e(2090),n.e(2624),n.e(7284),n.e(9129),n.e(4272),n.e(5156),n.e(4091),n.e(7775),n.e(4860),n.e(8962),n.e(6818),n.e(7859),n.e(4944),n.e(4525),n.e(7011),n.e(5172),n.e(203),n.e(6457),n.e(3191),n.e(8270),n.e(8603),n.e(6157),n.e(2380),n.e(4144),n.e(5730),n.e(7059),n.e(3254),n.e(358),n.e(7296),n.e(7243),n.e(9569),n.e(9058),n.e(5286),n.e(651),n.e(5380),n.e(176),n.e(3255),n.e(1843),n.e(8258),n.e(7899),n.e(195),n.e(3497),n.e(6806)]).then(n.bind(n,2501)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>2501}),ba=(0,d.Ay)({resolved:{},chunkName:()=>"challenge",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(7716),n.e(2402),n.e(895),n.e(5817),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5850),n.e(4353),n.e(5985),n.e(9127),n.e(3895),n.e(4434),n.e(272),n.e(9302),n.e(744),n.e(35),n.e(8345),n.e(9624),n.e(7508),n.e(7547),n.e(1957),n.e(6075),n.e(2090),n.e(2624),n.e(7284),n.e(9129),n.e(4272),n.e(5156),n.e(4091),n.e(7775),n.e(4860),n.e(8962),n.e(6818),n.e(7859),n.e(4944),n.e(4525),n.e(7011),n.e(5172),n.e(203),n.e(6457),n.e(3191),n.e(8270),n.e(8603),n.e(6157),n.e(2380),n.e(4144),n.e(5730),n.e(7059),n.e(3254),n.e(358),n.e(7296),n.e(7243),n.e(9569),n.e(9058),n.e(5286),n.e(651),n.e(5380),n.e(176),n.e(3255),n.e(1843),n.e(8258),n.e(8410)]).then(n.bind(n,95986)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>95986}),wa=(0,d.Ay)({resolved:{},chunkName:()=>"kep",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(7716),n.e(2402),n.e(895),n.e(5817),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5850),n.e(4353),n.e(5985),n.e(9127),n.e(3895),n.e(4434),n.e(272),n.e(9302),n.e(744),n.e(35),n.e(8345),n.e(2090),n.e(2624),n.e(7284),n.e(9129),n.e(4272),n.e(5156),n.e(4091),n.e(7775),n.e(4860),n.e(8962),n.e(6818),n.e(7859),n.e(4944),n.e(4525),n.e(7011),n.e(5172),n.e(203),n.e(6457),n.e(3191),n.e(8270),n.e(8603),n.e(6157),n.e(2380),n.e(4144),n.e(5730),n.e(7059),n.e(3254),n.e(358),n.e(7296),n.e(7243),n.e(9569),n.e(651),n.e(487),n.e(6271),n.e(8581)]).then(n.bind(n,21233)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>21233}),xa=(0,d.Ay)({resolved:{},chunkName:()=>"video",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(8564),n.e(2402),n.e(8873),n.e(5850),n.e(4353),n.e(9127),n.e(272),n.e(9302),n.e(744),n.e(35),n.e(8345),n.e(2090),n.e(2624),n.e(9129),n.e(7775),n.e(4860),n.e(8962),n.e(7011),n.e(6457),n.e(4144),n.e(3254),n.e(651),n.e(176),n.e(1466),n.e(6180)]).then(n.bind(n,95223)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>95223}),Ta=(0,d.Ay)({resolved:{},chunkName:()=>"playlist",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(2402),n.e(895),n.e(5817),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5850),n.e(4353),n.e(5985),n.e(9127),n.e(3895),n.e(4434),n.e(272),n.e(9302),n.e(744),n.e(35),n.e(2090),n.e(2624),n.e(7284),n.e(9129),n.e(4272),n.e(5156),n.e(4091),n.e(7775),n.e(4860),n.e(8962),n.e(6818),n.e(7859),n.e(4944),n.e(4525),n.e(7011),n.e(5172),n.e(203),n.e(6457),n.e(3191),n.e(8270),n.e(8603),n.e(6157),n.e(2380),n.e(4144),n.e(5730),n.e(7059),n.e(3254),n.e(358),n.e(7296),n.e(9058),n.e(5286),n.e(5380),n.e(176),n.e(1843),n.e(8033)]).then(n.bind(n,5065)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>5065}),Sa=(0,d.Ay)({resolved:{},chunkName:()=>"music",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(7716),n.e(2402),n.e(895),n.e(5817),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5850),n.e(4353),n.e(5985),n.e(9127),n.e(3895),n.e(4434),n.e(272),n.e(9302),n.e(744),n.e(35),n.e(8345),n.e(9624),n.e(7508),n.e(7547),n.e(1957),n.e(6075),n.e(2090),n.e(2624),n.e(7284),n.e(9129),n.e(4272),n.e(5156),n.e(4091),n.e(7775),n.e(4860),n.e(8962),n.e(6818),n.e(7859),n.e(4944),n.e(4525),n.e(7011),n.e(5172),n.e(203),n.e(6457),n.e(3191),n.e(8270),n.e(8603),n.e(6157),n.e(2380),n.e(4144),n.e(5730),n.e(7059),n.e(3254),n.e(358),n.e(7296),n.e(7243),n.e(9569),n.e(9058),n.e(5286),n.e(651),n.e(5380),n.e(176),n.e(3255),n.e(1843),n.e(8258),n.e(5692)]).then(n.bind(n,79433)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>79433}),ka=(0,d.Ay)({resolved:{},chunkName:()=>"effect",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(7716),n.e(2402),n.e(895),n.e(5817),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5850),n.e(4353),n.e(5985),n.e(9127),n.e(3895),n.e(4434),n.e(272),n.e(9302),n.e(744),n.e(35),n.e(8345),n.e(9624),n.e(7508),n.e(7547),n.e(1957),n.e(6075),n.e(5080),n.e(7912),n.e(2090),n.e(2624),n.e(7284),n.e(9129),n.e(4272),n.e(5156),n.e(4091),n.e(7775),n.e(4860),n.e(8962),n.e(6818),n.e(7859),n.e(4944),n.e(4525),n.e(7011),n.e(5172),n.e(203),n.e(6457),n.e(3191),n.e(8270),n.e(8603),n.e(6157),n.e(2380),n.e(4144),n.e(5730),n.e(7059),n.e(3254),n.e(358),n.e(7296),n.e(7243),n.e(9569),n.e(9058),n.e(5286),n.e(651),n.e(5380),n.e(176),n.e(3255),n.e(1843),n.e(8258),n.e(5244)]).then(n.bind(n,95828)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>95828}),Aa=(0,Je.Ay)({resolved:{},chunkName:()=>"foryou.islands",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(2402),n.e(895),n.e(5817),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5850),n.e(4353),n.e(5985),n.e(9127),n.e(3895),n.e(4434),n.e(272),n.e(9302),n.e(744),n.e(35),n.e(862),n.e(6713),n.e(8990),n.e(1059),n.e(7454),n.e(5021),n.e(2710),n.e(4534),n.e(2090),n.e(2624),n.e(7284),n.e(9129),n.e(4272),n.e(5156),n.e(4091),n.e(7775),n.e(4860),n.e(8962),n.e(6818),n.e(7859),n.e(4944),n.e(4525),n.e(7011),n.e(5172),n.e(203),n.e(6457),n.e(3191),n.e(8270),n.e(8603),n.e(6157),n.e(2380),n.e(4144),n.e(5730),n.e(7059),n.e(3254),n.e(358),n.e(7296),n.e(3255),n.e(1466),n.e(6034),n.e(1111),n.e(7733)]).then(n.bind(n,74030)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>74030},{}),Oa=(0,d.Ay)({resolved:{},chunkName:()=>"topics",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(2402),n.e(895),n.e(5817),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5850),n.e(4353),n.e(5985),n.e(9127),n.e(3895),n.e(4434),n.e(272),n.e(9302),n.e(744),n.e(35),n.e(862),n.e(6713),n.e(8990),n.e(1059),n.e(7454),n.e(2090),n.e(2624),n.e(7284),n.e(9129),n.e(4272),n.e(5156),n.e(4091),n.e(7775),n.e(4860),n.e(8962),n.e(6818),n.e(7859),n.e(4944),n.e(4525),n.e(7011),n.e(5172),n.e(203),n.e(6457),n.e(3191),n.e(8270),n.e(8603),n.e(6157),n.e(2380),n.e(4144),n.e(5730),n.e(7059),n.e(3254),n.e(358),n.e(7296),n.e(9058),n.e(5286),n.e(5380),n.e(3255),n.e(1466),n.e(6034),n.e(1111),n.e(1263)]).then(n.bind(n,51525)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>51525},{resolveComponent:e=>e.Topics}),Ea=(0,d.Ay)({resolved:{},chunkName:()=>"question",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(7716),n.e(2402),n.e(895),n.e(5817),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5850),n.e(4353),n.e(5985),n.e(9127),n.e(3895),n.e(4434),n.e(272),n.e(9302),n.e(744),n.e(35),n.e(8345),n.e(9624),n.e(7508),n.e(7547),n.e(1957),n.e(6075),n.e(2090),n.e(2624),n.e(7284),n.e(9129),n.e(4272),n.e(5156),n.e(4091),n.e(7775),n.e(4860),n.e(8962),n.e(6818),n.e(7859),n.e(4944),n.e(4525),n.e(7011),n.e(5172),n.e(203),n.e(6457),n.e(3191),n.e(8270),n.e(8603),n.e(6157),n.e(2380),n.e(4144),n.e(5730),n.e(7059),n.e(3254),n.e(358),n.e(7296),n.e(7243),n.e(9569),n.e(9058),n.e(5286),n.e(651),n.e(5380),n.e(176),n.e(3255),n.e(1843),n.e(8258),n.e(1621)]).then(n.bind(n,33776)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>33776}),Pa=(0,d.Ay)({resolved:{},chunkName:()=>"messages",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(2402),n.e(895),n.e(5817),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5850),n.e(4353),n.e(5985),n.e(9127),n.e(3895),n.e(4434),n.e(272),n.e(9302),n.e(744),n.e(35),n.e(2090),n.e(2624),n.e(7284),n.e(9129),n.e(4272),n.e(5156),n.e(4091),n.e(7775),n.e(4860),n.e(8962),n.e(6818),n.e(7859),n.e(4944),n.e(4525),n.e(7011),n.e(5172),n.e(203),n.e(6457),n.e(3191),n.e(8270),n.e(8603),n.e(6157),n.e(2380),n.e(4144),n.e(5730),n.e(7059),n.e(3254),n.e(358),n.e(7296),n.e(5871)]).then(n.bind(n,36086)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>36086}),Ia=(0,d.Ay)({resolved:{},chunkName:()=>"discover",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(2402),n.e(895),n.e(5817),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5850),n.e(4353),n.e(5985),n.e(9127),n.e(3895),n.e(4434),n.e(272),n.e(9302),n.e(744),n.e(35),n.e(2090),n.e(2624),n.e(7284),n.e(9129),n.e(4272),n.e(5156),n.e(4091),n.e(7775),n.e(4860),n.e(8962),n.e(6818),n.e(7859),n.e(4944),n.e(4525),n.e(7011),n.e(5172),n.e(203),n.e(6457),n.e(3191),n.e(8270),n.e(8603),n.e(6157),n.e(2380),n.e(4144),n.e(5730),n.e(7059),n.e(3254),n.e(358),n.e(7296),n.e(8842)]).then(n.bind(n,80212)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>80212}),Ca=(0,d.Ay)({resolved:{},chunkName:()=>"channel",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(7716),n.e(2402),n.e(895),n.e(5817),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5850),n.e(4353),n.e(5985),n.e(9127),n.e(3895),n.e(4434),n.e(272),n.e(9302),n.e(744),n.e(35),n.e(8345),n.e(2090),n.e(2624),n.e(7284),n.e(9129),n.e(4272),n.e(5156),n.e(4091),n.e(7775),n.e(4860),n.e(8962),n.e(6818),n.e(7859),n.e(4944),n.e(4525),n.e(7011),n.e(5172),n.e(203),n.e(6457),n.e(3191),n.e(8270),n.e(8603),n.e(6157),n.e(2380),n.e(4144),n.e(5730),n.e(7059),n.e(3254),n.e(358),n.e(7296),n.e(7243),n.e(9569),n.e(651),n.e(487),n.e(8188)]).then(n.bind(n,9737)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>9737}),ja=(0,d.Ay)({resolved:{},chunkName:()=>"find",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(7716),n.e(2402),n.e(895),n.e(5817),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5850),n.e(4353),n.e(5985),n.e(9127),n.e(3895),n.e(4434),n.e(272),n.e(9302),n.e(744),n.e(35),n.e(8345),n.e(2090),n.e(2624),n.e(7284),n.e(9129),n.e(4272),n.e(5156),n.e(4091),n.e(7775),n.e(4860),n.e(8962),n.e(6818),n.e(7859),n.e(4944),n.e(4525),n.e(7011),n.e(5172),n.e(203),n.e(6457),n.e(3191),n.e(8270),n.e(8603),n.e(6157),n.e(2380),n.e(4144),n.e(5730),n.e(7059),n.e(3254),n.e(358),n.e(7296),n.e(7243),n.e(9569),n.e(651),n.e(487),n.e(6271),n.e(446)]).then(n.bind(n,86473)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>86473}),La=(0,d.Ay)({resolved:{},chunkName:()=>"setting",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(8564),n.e(7716),n.e(5198),n.e(8873),n.e(5850),n.e(4353),n.e(8345),n.e(5021),n.e(2710),n.e(4534),n.e(8704),n.e(2297),n.e(8063),n.e(1028),n.e(9659),n.e(7569),n.e(8068),n.e(2513),n.e(4186),n.e(4394),n.e(8478),n.e(4555),n.e(3840),n.e(2090),n.e(2624),n.e(9129),n.e(4860),n.e(7979),n.e(1828),n.e(417)]).then(n.bind(n,78149)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>78149}),Ma=(0,d.Ay)({resolved:{},chunkName:()=>"upload",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(8873),n.e(5850),n.e(4353),n.e(8764),n.e(6455),n.e(2090),n.e(2624),n.e(9129),n.e(8116),n.e(1188)]).then(n.bind(n,68013)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>68013}),Na=(0,d.Ay)({resolved:{},chunkName:()=>"faq",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(8873),n.e(5850),n.e(4353),n.e(2090),n.e(2624),n.e(9129),n.e(6389),n.e(2877),n.e(6609)]).then(n.bind(n,22070)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>22070}),Da=(0,d.Ay)({resolved:{},chunkName:()=>"report",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(8873),n.e(5850),n.e(4353),n.e(9127),n.e(170),n.e(2090),n.e(2624),n.e(9129),n.e(6389),n.e(2877),n.e(3857)]).then(n.bind(n,17287)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>17287}),Ra=(0,d.Ay)({resolved:{},chunkName:()=>"poi",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(2402),n.e(895),n.e(5817),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5850),n.e(4353),n.e(5985),n.e(9127),n.e(3895),n.e(4434),n.e(272),n.e(9302),n.e(744),n.e(35),n.e(2090),n.e(2624),n.e(7284),n.e(9129),n.e(4272),n.e(5156),n.e(4091),n.e(7775),n.e(4860),n.e(8962),n.e(6818),n.e(7859),n.e(4944),n.e(4525),n.e(7011),n.e(5172),n.e(203),n.e(6457),n.e(3191),n.e(8270),n.e(8603),n.e(6157),n.e(2380),n.e(4144),n.e(5730),n.e(7059),n.e(3254),n.e(358),n.e(7296),n.e(9058),n.e(5286),n.e(5380),n.e(1843),n.e(8161)]).then(n.bind(n,25577)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>25577}),Ba=(0,d.Ay)({resolved:{},chunkName:()=>"poi-category",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(7716),n.e(2402),n.e(895),n.e(5817),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5850),n.e(4353),n.e(5985),n.e(9127),n.e(3895),n.e(4434),n.e(272),n.e(9302),n.e(744),n.e(35),n.e(8345),n.e(2090),n.e(2624),n.e(7284),n.e(9129),n.e(4272),n.e(5156),n.e(4091),n.e(7775),n.e(4860),n.e(8962),n.e(6818),n.e(7859),n.e(4944),n.e(4525),n.e(7011),n.e(5172),n.e(203),n.e(6457),n.e(3191),n.e(8270),n.e(8603),n.e(6157),n.e(2380),n.e(4144),n.e(5730),n.e(7059),n.e(3254),n.e(358),n.e(7296),n.e(7243),n.e(9569),n.e(651),n.e(487),n.e(130),n.e(7870)]).then(n.bind(n,51500)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>51500}),Ua=(0,d.Ay)({resolved:{},chunkName:()=>"travel",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(2402),n.e(895),n.e(5817),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5850),n.e(4353),n.e(5985),n.e(9127),n.e(3895),n.e(4434),n.e(272),n.e(9302),n.e(744),n.e(35),n.e(2090),n.e(2624),n.e(7284),n.e(9129),n.e(4272),n.e(5156),n.e(4091),n.e(7775),n.e(4860),n.e(8962),n.e(6818),n.e(7859),n.e(4944),n.e(4525),n.e(7011),n.e(5172),n.e(203),n.e(6457),n.e(3191),n.e(8270),n.e(8603),n.e(6157),n.e(2380),n.e(4144),n.e(5730),n.e(7059),n.e(3254),n.e(358),n.e(7296),n.e(9058),n.e(5286),n.e(5380),n.e(1843),n.e(5611)]).then(n.bind(n,5703)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>5703}),Fa=(0,d.Ay)({resolved:{},chunkName:()=>"collection",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(2402),n.e(895),n.e(5817),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5850),n.e(4353),n.e(5985),n.e(9127),n.e(3895),n.e(4434),n.e(272),n.e(9302),n.e(744),n.e(35),n.e(8345),n.e(2090),n.e(2624),n.e(7284),n.e(9129),n.e(4272),n.e(5156),n.e(4091),n.e(7775),n.e(4860),n.e(8962),n.e(6818),n.e(7859),n.e(4944),n.e(4525),n.e(7011),n.e(5172),n.e(203),n.e(6457),n.e(3191),n.e(8270),n.e(8603),n.e(6157),n.e(2380),n.e(4144),n.e(5730),n.e(7059),n.e(3254),n.e(358),n.e(7296),n.e(9058),n.e(5286),n.e(5380),n.e(176),n.e(1843),n.e(1171)]).then(n.bind(n,29173)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>29173}),Va=(0,d.Ay)({resolved:{},chunkName:()=>"explore",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(7716),n.e(2402),n.e(895),n.e(5817),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5850),n.e(4353),n.e(5985),n.e(9127),n.e(3895),n.e(4434),n.e(272),n.e(9302),n.e(744),n.e(35),n.e(8345),n.e(9624),n.e(7508),n.e(7547),n.e(1957),n.e(6075),n.e(2128),n.e(9835),n.e(7946),n.e(7159),n.e(4822),n.e(2090),n.e(2624),n.e(7284),n.e(9129),n.e(4272),n.e(5156),n.e(4091),n.e(7775),n.e(4860),n.e(8962),n.e(6818),n.e(7859),n.e(4944),n.e(4525),n.e(7011),n.e(5172),n.e(203),n.e(6457),n.e(3191),n.e(8270),n.e(8603),n.e(6157),n.e(2380),n.e(4144),n.e(5730),n.e(7059),n.e(3254),n.e(358),n.e(7296),n.e(7243),n.e(9569),n.e(9058),n.e(5286),n.e(651),n.e(5380),n.e(176),n.e(3255),n.e(1843),n.e(8258),n.e(9604)]).then(n.bind(n,40129)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>40129}),za=(0,d.Ay)({resolved:{},chunkName:()=>"video-playlist",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(2402),n.e(895),n.e(5817),n.e(8873),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5850),n.e(4353),n.e(5985),n.e(9127),n.e(3895),n.e(4434),n.e(272),n.e(9302),n.e(744),n.e(35),n.e(9624),n.e(2128),n.e(5201),n.e(4978),n.e(8987),n.e(9655),n.e(5921),n.e(2090),n.e(2624),n.e(7284),n.e(9129),n.e(4272),n.e(5156),n.e(4091),n.e(7775),n.e(4860),n.e(8962),n.e(6818),n.e(7859),n.e(4944),n.e(4525),n.e(7011),n.e(5172),n.e(203),n.e(6457),n.e(3191),n.e(8270),n.e(8603),n.e(6157),n.e(2380),n.e(4144),n.e(5730),n.e(7059),n.e(3254),n.e(358),n.e(7296),n.e(9058),n.e(5286),n.e(5380),n.e(176),n.e(1843),n.e(4877),n.e(195),n.e(3519)]).then(n.bind(n,13106)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>13106}),Ha=(0,d.Ay)({resolved:{},chunkName:()=>"download",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(8873),n.e(5850),n.e(4353),n.e(862),n.e(6713),n.e(8990),n.e(1059),n.e(7454),n.e(415),n.e(9017),n.e(5979),n.e(2090),n.e(2624),n.e(9129),n.e(5467)]).then(n.bind(n,37883)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>37883});function qa({location:e}){const t=(0,_.useMemo)((()=>({pathname:e.pathname.replace(/\/\/+/g,"/"),search:e.search})),[e.pathname,e.search]);return(0,q.Y)($e.rd,{to:t})}const Wa=()=>(0,q.FD)($e.dO,{children:[(0,q.Y)($e.qh,{path:"(.*//+.*)",exact:!0,strict:!0,component:qa}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.following,component:ha}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.friends,component:_a}),(0,q.Y)($e.qh,{path:Be.OZ.searchHome,component:fa}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.user,component:ya}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.challenge,component:ba}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.expansion,component:wa}),(0,q.Y)($e.qh,{exact:!0,path:[Be.OZ.video,Be.OZ.photo],component:xa}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.musicPlaylist,component:Ta}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.music,component:Sa}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.effect,component:ka}),(0,q.Y)($e.qh,{exact:!0,path:ga.qk,component:Aa}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.topics,component:Oa}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.question,component:Ea}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.messages,component:Pa}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.discover,component:Ia}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.channel,component:Ca}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.find,component:ja}),(0,q.Y)($e.qh,{path:Be.OZ.setting,component:La}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.upload,component:Ma}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.feedbackReport,component:Da}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.feedbackHistory,component:Da}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.feedback,component:Na}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.poi,component:Ra}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.travelCategory,component:Ba}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.travel,component:Ua}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.collection,component:Fa}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.explore,component:Va}),(0,q.Y)($e.qh,{exact:!0,path:Be.OZ.videoPlaylist,component:za}),(0,q.Y)($e.qh,{exact:!0,path:[Be.OZ.download,...Be.OZ.downloadWithLang],component:Ha}),(0,q.Y)($e.qh,{path:"*",component:ma})]});function $a(){window.location.reload()}const Ga=()=>{var e;const t=(0,Ve.W)((()=>["user"]),[]),{t:n}=(0,_.useContext)(C.Ss);return(null===(e=null==t?void 0:t.user)||void 0===e?void 0:e.ftcUser)?(0,q.Y)(V.a,{theme:ee.pz,children:(0,q.Y)(se.W,{isFullScreen:!0,onButtonClick:$a,iconElem:(0,q.Y)(re.A,{width:90,height:90,fill:"rgba(128, 130, 133, 1)"}),title:n("Page not available"),desc:n("server_error_sub"),buttonText:n("try_again_btn")})}):(0,q.Y)(va,{children:(0,q.Y)(Wa,{})})},Ya=$()(Object.values(Be.OZ)),Za=new Y,Ka=[Be.eU.find,Be.eU.expansion,Be.eU.channel],Xa=[Be.OZ.find,Be.OZ.channel,Be.OZ.expansion],Qa=[Be.eU.download,Be.eU.downloadWithLang],Ja=[Be.OZ.download,...Be.OZ.downloadWithLang],er=Ya.filter((e=>!Xa.includes(e)));var tr,nr=n(94337),ir=n(64590),or=n(7789),ar=n(34099),rr=n(97487),sr=n(62302),lr=n(10598),cr=n(68881),dr=n(38838),ur=n(13326),pr=n.n(ur),vr=n(16469),gr=n(71281);!function(e){e[e.CacheValid=0]="CacheValid",e[e.CacheExpired=1]="CacheExpired",e[e.NoCache=2]="NoCache",e[e.UserChange=3]="UserChange",e[e.CacheUpdateSuccess=4]="CacheUpdateSuccess",e[e.NoCacheWithUpdatedPush=8]="NoCacheWithUpdatedPush"}(tr||(tr={}));const mr="webapp.updated-items";function hr(e){if(0===e.length)return 0;const t=e.map((e=>function(e){var t;const n=null===(t=e.video)||void 0===t?void 0:t.cover,i=/x-expires=(\d+)/.exec(n);return i?1e3*Number(i[1]):0}(e)));return Math.min(...t)}const _r=u.l.getInstance(y.V);function fr(e){Se.f.event("feed_fetch_error",{error_code:e})}function yr(e){_r.emitEvent("feed_cache_fetch",{count:1},{statusCode:String(e)})}var br=n(23532),wr=n(14576),xr=n(99374),Tr=n(58305);const Sr="perf_feed_cache";var kr=n(42573),Ar=n(89049),Or=n(5109),Er=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};const Pr=3;function Ir(e){if(e){const t=document.createElement("link");t.rel="prefetch",t.href=e,document.head.appendChild(t)}}function Cr(e,t){return Er(this,void 0,void 0,(function*(){if(vr.lL.getItem("itemList"))return;const n=(0,I.qm)(),i=u.l.getInstance(wr.j),[{videoCoverSettings:o},{abTestVersion:a}]=yield Promise.all([(0,lr.x)(),(0,sr.zI)(n)]),r=(0,xr.mx)(a,e),s=parseInt((0,Tr._S)(Ar.Bu,"0"),10)||0;i.getFeedCacheList({count:Pr,language:n,coverFormat:null==o?void 0:o.format,isNonPersonalized:r,vv_count_fyp:s,clientABVersions:null==a?void 0:a.versionName}).subscribe({next({statusCode:n,itemList:i=[],log_pb:o}){var a;if(0===n){const n=null===(a=i.slice)||void 0===a?void 0:a.call(i,0,Pr);vr.lL.setItem("itemList",n),vr.lL.setItem("log_pb",o),function(e,t){vr.lL.setItem("cacheUid",e),vr.lL.setItem("cacheWid",t);const n=(0,Be.kv)(window.location.pathname);vr.lL.setItem("pageName",null==n?void 0:n.name)}(e,t),function(e){try{pr().remove(Sr,{domain:"www.tiktok.com"});const t=JSON.stringify({expireTimestamp:hr(e),itemIds:e.map((e=>e.id))});pr().set(Sr,t,{secure:!0,expires:5,domain:"www.tiktok.com"})}catch(e){console.warn(`[Cookie] Set Feed Cache Cookie Error: ${e}`)}}(n)}else fr(n);yr(n)},error(){fr(10111),yr(10111)}})}))}function jr(){return e=this,t=void 0,i=function*(){if(function(){const e=document.querySelector("#app");return"1"===(null==e?void 0:e.dataset.csr)}()){const e=(0,I.qm)(),{user:t,wid:n}=yield(0,sr.zI)(e);try{const i=(0,ke.IX)().foryou.isForyouListJotai;(function(){const e=(0,Be.kv)(window.location.pathname);return["foryou","foryouWithLang","home"].includes(null==e?void 0:e.name)})()&&function({language:e,user:t,wid:n,isJotai:i=!1}){const{cacheUid:o,cacheWid:a,itemList:r,pageName:s="unknown",log_pb:l}=vr.lL.getStorage();vr.lL.removeAll();const{status:c,validItemList:d}=function({itemList:e,cacheUid:t,uid:n,cacheWid:i,wid:o}){var a,r;let s=(0,L.YI)(mr);const{abTestVersion:l}=(0,It.x)(),c=null!==(a=(0,gr.V7)(l,"use_container_exp"))&&void 0!==a?a:"v0",d="v1"===c||"v3"===c;if(d&&(s=null!==(r=null==s?void 0:s.filter((e=>!e.imagePost)))&&void 0!==r?r:[]),!e||0===e.length)return s?{status:8,validItemList:s}:{status:2,validItemList:[]};if(!function({cacheUid:e,cacheWid:t,wid:n,uid:i}){return t===n&&(!e||e===i)}({cacheUid:t,cacheWid:i,wid:o,uid:n}))return{status:3,validItemList:[]};const u=e.filter((e=>{var t;const n=null===(t=e.video)||void 0===t?void 0:t.cover,i=/x-expires=(\d+)/.exec(n),o=i&&Date.now()<1e3*(Number(i[1])-60),a=d&&e.imagePost;return o&&!a}));return 0===u.length?s?{status:4,validItemList:s}:{status:1,validItemList:[]}:{status:0,validItemList:u}}({itemList:r,cacheUid:o,cacheWid:a,wid:n,uid:null==t?void 0:t.uid});[0,4,8].includes(c)&&(i?function(e,t){var n,i,o,a,r,s;(0,kr.HG)().setListFromCache({itemList:e,statusCode:0,log_pb:t}),Ir(null!==(o=null===(i=null===(n=e[0])||void 0===n?void 0:n.video)||void 0===i?void 0:i.originCover)&&void 0!==o?o:null===(s=null===(r=null===(a=e[0])||void 0===a?void 0:a.video)||void 0===r?void 0:r.zoomCover)||void 0===s?void 0:s[720])}(d,l):function(e,t,n,i){var o,a,r,s,l,c;const d=u.l.getInstance(br.O),p=d.getActions().setList({key:"foryou",response:{itemList:e,statusCode:0,log_pb:i},disableReportMore:!0,language:t,user:n});d.store.dispatch(p),Ir(null!==(r=null===(a=null===(o=e[0])||void 0===o?void 0:o.video)||void 0===a?void 0:a.originCover)&&void 0!==r?r:null===(c=null===(l=null===(s=e[0])||void 0===s?void 0:s.video)||void 0===l?void 0:l.zoomCover)||void 0===c?void 0:c[720])}(d,e,t,l)),0===c&&function(e,t=!1){const n=u.l.getInstance(br.O),i=(0,kr.HG)();u.l.getInstance(wr.j).checkItemValidation({itemIds:e.map((e=>e.id)).join(",")}).subscribe({next({statusCode:o,availabities:a=[]}){if(0===o){let o=0;a.forEach((({id:e,available:a})=>{if(!a)if(o++,t)i.setDeleteVideo(e);else{const t=n.getActions().setDeleteVideo(e);n.store.dispatch(t)}})),0!==o&&function(e,t){Se.f.event("feed_top_cache_invalid",{check_count:e,invalid_count:t,allInvalid:t>=e?1:0}),_r.emitEvent("feed_top_cache_invalid",{count:1},{checkCount:String(e),invalidCount:String(t),allInvalid:t>=e?"1":"0"})}(e.length,o)}},error(e){console.error("Error Occur when deleting invalid video",e)}})}(d,i),3===c&&function(e=[],t,n=!1){var i,o,a,r,s,l,c;Er(this,void 0,void 0,(function*(){const d=null===(i=e[0])||void 0===i?void 0:i.id;if(!d)return;const p=(0,I.qm)(),[v,g]=yield Promise.all([(0,lr.x)(),(0,sr.zI)()]),m=u.l.getInstance(br.O),h=(0,kr.HG)(),_=(null===(o=g.abTestVersion)||void 0===o?void 0:o.versionName)?null===(r=null===(a=g.abTestVersion)||void 0===a?void 0:a.versionName)||void 0===r?void 0:r.split(","):[];try{const e=null!==(l=yield(0,Or.d)({itemId:d,language:p,coverFormat:null===(s=v.videoCoverSettings)||void 0===s?void 0:s.format,clientABVersions:_}))&&void 0!==l?l:{statusCode:-1},i=e.statusCode,o=null===(c=e.itemInfo)||void 0===c?void 0:c.itemStruct;if(0===i&&o)if(n)h.setListFromCache({itemList:[o],statusCode:0});else{const e=m.getActions().setList({key:"foryou",response:{itemList:[o],statusCode:0},disableReportMore:!0,language:p,user:t});m.store.dispatch(e)}}catch(e){console.error("Error Occur when updating item detail",e)}}))}(r,t,i),function(e,t){Se.f.event("feed_top_cache",{valid:e}),_r.context({use_data_prefetched:e}),_r.emitEvent("feed_top_cache",{count:1},{status:String(e),pageName:t})}(c,s)}({language:e,user:t,wid:n,isJotai:i}),function(e,t){setTimeout((()=>{"requestIdleCallback"in window?window.requestIdleCallback((()=>Cr(e,t))):Cr(e,t)}),3e3)}(null==t?void 0:t.uid,n)}catch(e){console.warn("[Error]feed cache logic error:",e)}}},new((n=void 0)||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}));var e,t,n,i}var Lr=n(67353),Mr=n(46311),Nr=n(27871),Dr=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};const{startFn:Rr,endFn:Br}=function(){let e,t;return{startFn(){e=(0,or.V)()},endFn(){t=(0,or.V)(),(0,i.OA)({duration:t-e})}}}(),Ur=a();!function(e,t){const{beforeRender:n,afterRender:i}=t;let o;(()=>{return a=this,r=void 0,d=function*(){const a=yield U(t);o=a.slardarUtils;const{rootProps:r,jotaiStore:s}=a;yield null==n?void 0:n({jotaiStore:s}),null==o||o.slardar.reportRenderStart();const d=document.querySelector("#app"),u="1"===(null==d?void 0:d.dataset.csr),p=(0,l.jsx)(H,Object.assign(Object.assign({},r),{csr:u,children:(0,l.jsx)(e,{})}));u?(0,c.render)(p,d):(0,c.hydrate)(p,d),null==o||o.slardar.reportRenderEnd(),yield null==i?void 0:i()},new((s=void 0)||(s=Promise))((function(e,t){function n(e){try{o(d.next(e))}catch(e){t(e)}}function i(e){try{o(d.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof s?o:new s((function(e){e(o)}))).then(n,i)}o((d=d.apply(a,r||[])).next())}));var a,r,s,d})().catch((e=>{var t,n;console.error(e),null===(n=null===(t=null==o?void 0:o.slardar)||void 0===t?void 0:t.captureMessage)||void 0===n||n.call(t,e,"fatal",{fromLauncher:"1"})}))}((()=>{var e;const t=(0,Re.fU)()?"/":window.location.pathname;let n=er;const i=null===(e=(0,Be.jN)(t))||void 0===e?void 0:e.name;i&&Ka.includes(i)&&(n=Xa),i&&Qa.includes(i)&&(n=Ja);let r=Ga;const s=a();if(s){const e=window.__registerSEOAddon__;e&&(r=e(r,{isFromGoogle:"google"===(0,o.q)(),isFromSearchEngine:s}))}return(0,q.Y)(Ue.QueryProvider,{apiConfigs:(0,Fe.H$)(),children:(0,q.Y)(De,{supportRoutes:n,children:(0,q.Y)(G.d,{context:Za,children:(0,q.Y)(r,{})})})})}),{appName:"desktop",beforeStart:()=>Dr(void 0,void 0,void 0,(function*(){yield(0,r.t6)()})),nss:Nr.Y5,slardarOption:{bid:s.Gu,extractPid:We.wI,disableToggleLoginSlardar:!0,ttapOption:{isSpa:!0,includeApiUrl:["/api/recommend/item_list/","/api/item/detail/","/api/following/item_list/","/api/user/detail/","/api/post/item_list/","/api/music/item_list/","/api/topic/item_list/","/node/report/inbox/list/","/node/report/inbox/detail/","/api/explore/item_list/"]}},beforeRender:()=>Dr(void 0,void 0,void 0,(function*(){Rr(),function(){var e,t;const n=(0,ar.V)(),i=(0,b.xq)(),{user:o,wid:a,region:r,odinId:s,webIdCreatedTime:l,language:c}=i,d=(0,Be.kv)(window.location.pathname);Se.f.config({initConfig:{channel_domain:n.tea,ab_channel_domain:n.libraWebSDK,channel_type:null!==(e=n.teaChannelType)&&void 0!==e?e:"tcpy",channel:n.teaChannel,id:1988,autotrack:{custom:"tea",text:!0,svg:!0}},commonHeaderConfig:{region:r,user_id:null!==(t=null==o?void 0:o.uid)&&void 0!==t?t:s,user_is_login:Boolean(o),user_unique_id:a,device_id:a,user_type:12,"header.custom":Object.assign({session_id:Se.f.getSessionId(a),webid_created_time:l,app_language:c,page_name:d?da[d.name]:""},Se.f.initDimensionalData)}}),ir.l.init({sender:(e,t)=>{Se.f.event(e,t,!1)},device:"pc",pageName:d?da[d.name]:""})}(),(0,i.jT)(),yield function(){var e,t,n,i,o,a,r,s,l,c,d,p,v,g,m,h,_,f;return m=this,h=void 0,f=function*(){const m=(0,Be.CA)(window.location.pathname),h=null==m?void 0:m.name,_=u.l.getInstance(y.V);if(h===Be.eU.user){const r=(0,I.qm)(),[s,l]=yield Promise.all([(0,sr.zI)(r),(0,lr.x)(r)]),c=new URLSearchParams(location.search);if("v2"===(null===(n=null===(t=null===(e=null==s?void 0:s.abTestVersion)||void 0===e?void 0:e.parameters)||void 0===t?void 0:t.foryou_prefetch)||void 0===n?void 0:n.vid)||"v2"===c.get("foryou_prefetch"))return;const d=(0,L.YI)(rr.gA.userDetail);if(d){const{secUid:e=""}=null!==(o=null===(i=d.userInfo)||void 0===i?void 0:i.user)&&void 0!==o?o:{};(0,cr.dz)(e),(0,cr.bg)(e,null===(a=l.videoCoverSettings)||void 0===a?void 0:a.format)}}if(h===Be.eU.poi){const{id:e}=null!==(r=null==m?void 0:m.matchedParams)&&void 0!==r?r:{id:""};if(e){const t=yield(0,lr.x)((0,I.qm)());(0,cr.hX)(e,t.isBot?121:120)}}if(h===Be.eU.travel){const{id:e}=null!==(s=null==m?void 0:m.matchedParams)&&void 0!==s?s:{id:""};if(e){const t=Object.values(dr.Wk).slice(0,3).map((e=>e.idlType)),n=(0,I.qm)(),[i,o]=yield Promise.all([(0,sr.zI)(n),(0,lr.x)(n)]),a={appId:i.appId,region:i.region,coverFormat:null===(l=o.videoCoverSettings)||void 0===l?void 0:l.format};(0,cr.UM)({poiId:e},a,t)}}if(h===Be.eU.travelCategory){const{id:e,category:t}=null!==(c=null==m?void 0:m.matchedParams)&&void 0!==c?c:{id:"",category:""};if(e&&t){const n=(0,dr.xG)(t).idlType,i=Array(3).fill(null).map(((e,n)=>dr.Wk[t].subTitles[n].idlType)),o=(0,I.qm)(),[a,r]=yield Promise.all([(0,sr.zI)(o),(0,lr.x)(o)]),s={appId:a.appId,region:a.region,coverFormat:null===(d=r.videoCoverSettings)||void 0===d?void 0:d.format};(0,cr.UM)({poiId:e,subCategoryType:n},s,i)}}if(h===Be.eU.video){const e=(0,L.YI)(rr.gA.videoDetail);if(_.emitEvent("prefetch_data",{video_detail:1},{}),e){const t=null===(g=null===(v=null===(p=null==e?void 0:e.itemInfo)||void 0===p?void 0:p.itemStruct)||void 0===v?void 0:v.video)||void 0===g?void 0:g.originCover;if(_.emitEvent("prefetch_data",{video_detail:1},{status:"success"}),t){const e=Date.now(),n=new Image;n.src=t,n.onload=()=>{_.reportCustomRequest({name:"prefetch_image",startTime:e,endTime:Date.now()})}}}}},new((_=void 0)||(_=Promise))((function(e,t){function n(e){try{o(f.next(e))}catch(e){t(e)}}function i(e){try{o(f.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof _?o:new _((function(e){e(o)}))).then(n,i)}o((f=f.apply(m,h||[])).next())}))}(),Object.keys(rr.gA).forEach((e=>(0,rr.iq)(e))),(0,i.AW)(),(0,i.LY)(),n.e(4563).then(n.bind(n,37124)).then((({VodMark:e})=>{const t=new e({decodeImgUrl:""}).scoreSync({ignoreCachedImg:!0}).performance;if(t&&"object"==typeof t&&"score"in t){let e=t.score;"number"==typeof e&&(e=parseFloat(e.toFixed(2)),Se.f.config({commonHeaderConfig:{"header.custom":{hardware_score:e}}}))}})).catch((e=>{console.error("Failed to set device hardware score:",e)})),yield jr(),yield function(){var e,t,n,i,o;return t=this,n=void 0,o=function*(){let t="";const n=(0,b.xq)();n&&(t=n.region);const i=yield(0,lr.x)((0,I.qm)());(0,Lr.hd)("webapp-desktop",null!==(e=i.isTTP)&&void 0!==e?e:"US"===t)},new((i=void 0)||(i=Promise))((function(e,a){function r(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(r,s)}l((o=o.apply(t,n||[])).next())}))}(),nr.Mh.inject(),Ur&&(window.__registerSEOAddon__=(yield Promise.all([n.e(8345,"high"),n.e(7581,"high")]).then(n.bind(n,99351))).registerSEOAddon)})),afterRender:()=>{Br(),function(){const e=u.l.getInstance(y.V);Mr.P.on("consume_prefetch_data",((t,n,i)=>{e.emitEvent("consume_prefetch_data",{now:t},{status:n,from:i})})),Mr.P.on("consume_prefetch_data_error",((t,n)=>{e.captureMessage(`consume prefetch data error: ${t}`,"info",{from:n})}))}()}})},20182:(e,t,n)=>{"use strict";n.d(t,{$:()=>c});var i=n(57431),o=n(72153),a=n(11060),r=n(82715),s=n(97086),l=n(35267);const c=()=>{var e,t,n;try{const c="v0"!==(null!==(n=null===(t=null===(e=(0,i.x)().abTestVersion)||void 0===e?void 0:e.parameters.nav_phase_3)||void 0===t?void 0:t.vid)&&void 0!==n?n:"v0"),d=(0,s.fU)()?(0,l.yK)().request.path:window.location.pathname;return(0,a.B6)(d,{path:[r.OZ.messages,r.OZ.setting,r.OZ.settingBlockList,r.OZ.feedback,r.OZ.feedbackReport,r.OZ.feedbackHistory,r.OZ.upload],exact:!0})?o.uF:c?0:o.uF}catch(e){return o.uF}}},81659:(e,t,n)=>{"use strict";n.d(t,{xG:()=>L,wI:()=>R,xS:()=>U,zd:()=>N,cf:()=>B,vV:()=>M,YB:()=>F,nI:()=>V,v8:()=>H,G4:()=>z});var i=n(40099),o=n(11060),a=n(72241),r=n(46682),s=n(82715),l=n(88920),c=n(60484),d=n(49057),u=n(48615),p=n(71281),v=n(71777),g=n(536),m=n(58305),h=n(66994),_=n(71111),f=n(31209);const y={windowHeight:"undefined"!=typeof window?window.innerHeight:0,windowWidth:"undefined"!=typeof window?window.innerWidth:0},b=(0,_.atom)(y);b.debugLabel="windowAtom";const{useServiceState:w,useServiceDispatchers:x,useAtomService:T,getStaticApi:S}=(0,f.i)(b,((e,t)=>({updateWindowSize(){t(b,(e=>Object.assign(Object.assign({},e),{windowHeight:window.innerHeight,windowWidth:window.innerWidth})))}})));var k=n(18222),A=n(93608),O=n(43201),E=n(2387),P=n.n(E),I=n(33543),C=n(99661),j=n(21367);const L=240,M=()=>{const{isInNavPhase3:e}=(0,l.vY)(),{isFeedbackPage:t}=(0,h.YH)(),n=!t,i=e?16*Number.parseFloat(I.pJ):L;return{sideNavWidth:n?i:void 0,bodyContainerMaxWidth:n?"100%":void 0}},N=e=>{const{value:t}=(0,i.useContext)(a.xm);return(0,a.O4)({isDark:t,lang:e}).colors.Negative},D={video:"video_detail",photo:"graphic_detail",user:["others_homepage","personal_homepage"],music:"single_song",effect:"effect_detail",challenge:"challenge",channel:"channel",find:"find",home:"homepage_hot",foryouWithLang:"homepage_hot",foryou:"homepage_hot",following:"homepage_follow",friends:"friends_page",topics:["topic"],expansion:"discover_kw",searchHome:"general_search",searchUser:"search_user",searchVideo:"search_video",searchLive:"search_live",searchReminder:"general_search",discover:"discovery",setting:"setting",feedback:"feedback",feedbackHistory:"feedback_history",feedbackReport:"feedback_report",upload:"upload",question:"qa_detail",musicPlaylist:"music_playlist",messages:"messages",settingBlockList:"setting",settingDownLoadYourData:"setting",settingKeywordFiltering:"setting",settingDailyScreenTimeEdit:"setting",settingTimeBreakEdit:"setting",settingSleepReminderEdit:"setting",settingAdPrivacyPersonalizedAds:"setting",settingAdPrivacyPersonalizedAdsInferredByTikTokTopics:"setting",settingAdPrivacyPersonalizedAdsYourChoicesTopics:"setting",settingAdPrivacyPersonalizedAdsAllTopics:"setting",settingAdvertiserSettings:"setting",settingDisconnectAdvertisers:"setting",settingDisconnectAdvertisersDetails:"setting",profile:"personal_homepage",inbox:"homepage_message",explore:"explore_page",videoPlaylist:"playlist",poi:"place",poiCategory:"place",travel:"place",travelCategory:"place_category",collection:"collection",download:"download",downloadWithLang:"download"},R=(e,t)=>{var n;const i=(0,s.kv)(e),o=t?t.user:null===(n=(0,C.xq)())||void 0===n?void 0:n.user;if(i){const t=D[i.name];if(!Array.isArray(t))return t;if("user"===i.name){const n=null==e?void 0:e.slice(2),i=null==n?void 0:n.toLowerCase();return o&&(Boolean(i&&(null==i?void 0:i.match(o.uniqueId)))||Boolean(n&&(null==n?void 0:n.match(o.secUid))))?t[1]:t[0]}if("topics"===i.name){const n=null==e?void 0:e.slice(8);return`${t[0]}_${n}`.toLowerCase()}return"unknown"}return"unknown"},B=()=>{const e=(0,i.useRef)(null),{pathname:t}=(0,o.zy)(),{user:n}=(0,c.L$)((0,d.W)((()=>["user"]),[]));if(e.current)return e.current;const a=R(t,{user:n});return e.current=a,a},U=()=>{const{user:e}=(0,c.L$)((0,d.W)((()=>["user"]),[])),[{privacyAccountPromptVariant:t},n]=(0,r.S)(k.J);return(0,i.useEffect)((()=>{Boolean(e)&&n.getComplianceSetting({user:e})}),[n,e]),t},F=()=>{var e,t;const{user:n}=(0,c.L$)((0,d.W)((()=>["user"]),[])),{bizContext:o}=(0,u.y)(),{abTestVersion:a}=null!==(e=(0,d.W)((()=>["abTestVersion"]),[]))&&void 0!==e?e:{},r=null!==(t=(0,p.qt)(a,"webapp_switch_account"))&&void 0!==t?t:"v1";(0,i.useEffect)((()=>{var e,t;const i=JSON.parse(null!==(e=localStorage.getItem("multi-account-info"))&&void 0!==e?e:'{"data":[]}').data;n&&"v1"!==r&&n.hasIMPermission&&localStorage.setItem("multi-account-info",JSON.stringify({data:[...i.filter((e=>e.secUid!==n.secUid)),{secUid:n.secUid,uniqueId:n.uniqueId,nickName:n.nickName,avatarUrl:n.avatarUri[0],lastActiveTime:Date.now(),userRegion:null!==(t=null==o?void 0:o.idc)&&void 0!==t?t:""}].sort(((e,t)=>e.lastActiveTimet.lastActiveTime?-1:0))}))}),[null==o?void 0:o.idc,r,n])};function V(){const e=(0,i.useCallback)((()=>{A.f.event("enter_picture_in_picture")}),[]);(0,i.useEffect)((()=>(window.addEventListener("enterpictureinpicture",e),()=>{window.removeEventListener("enterpictureinpicture",e)})),[e])}const z=()=>{const e=(0,j.RT)(),[{windowHeight:t,windowWidth:n},o]=T(),a=(0,v.Dy)(),{canUpdateSwitchTabOrWindowSizeChangeIndicatorState:r}=(0,g.D)(),s=(0,i.useMemo)((()=>r&&(0===e||2===e||4===e)),[r,e]),l=(0,i.useCallback)(P()((()=>{(0,O.T)({windowObj:window,playMode:e,width_before:n,height_before:t}),o.updateWindowSize(),s&&a.setIsAfterSwitchTabOrWindowSizeChange(!0)}),1e3),[t,n,e,o,a,s]);(0,i.useEffect)((()=>(window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)})),[l])},H=()=>{const e=(0,v.Dy)(),{canUpdateSwitchTabOrWindowSizeChangeIndicatorState:t}=(0,g.D)(),n=(0,j.RT)(),o=(0,i.useMemo)((()=>t&&(0===n||2===n||4===n)),[t,n]),a=(0,i.useCallback)((()=>{o&&e.setIsAfterSwitchTabOrWindowSizeChange(!0)}),[o,e]);(0,i.useEffect)((()=>{const e=(0,m.Gz)(a);return()=>{null==e||e()}}),[a])}},12731:(e,t,n)=>{"use strict";n.d(t,{Hj:()=>c,V$:()=>r,Ws:()=>l,is:()=>s});var i=n(62186),o=n(72153),a=n(17784);const r=(0,i.default)("div",{target:"e8agtid0"})({},"label:DivSideNavContainer;"),s=(0,i.default)("div",{target:"e8agtid1"})((({status:e,theme:{colors:t}})=>(0,o.jJ)({max:767,style:[{position:"fixed",inset:o.uF-1+"px 0 0",zIndex:99,backgroundColor:t.ConstBGInverse2,opacity:e===a.ns||e===a._K?1:0},e===a.ns||e===a.ze?{transition:"all 0.3s"}:null,e===a.kp?{pointerEvents:"none"}:null]})),"label:DivSideNavMask;"),l=(0,i.default)("div",{target:"e8agtid2"})({position:"relative",height:"100%",width:240,flex:"0 0 240px",display:"flex",flexDirection:"column","@media screen and (max-width: 1071px)":{width:72,flex:"0 0 72px"},padding:"16px",maxHeight:`calc(100vh - ${o.uF}px)`,overflow:"hidden"},"label:DivSkeletonSideNavContainer;"),c=(0,i.default)("div",{target:"e8agtid3"})((({theme:{colors:e}})=>({width:"100%",padding:"16px",background:e.BGPlaceholderDefault,borderRadius:"4px",height:32,margin:"16px 0 0 0",opacity:.8})),"label:SkeletonItem;")},63950:(e,t,n)=>{"use strict";n.d(t,{H6:()=>c,K6:()=>l,N$:()=>s});var i=n(75431),o=n(62186),a=n(72153),r=n(20182);const s=(0,o.default)("div",{target:"e1irlpdw0"})((({extraTop:e=0,maxWidth:t,isHideSideComponent:n,width:i,theme:{colors:o},backgroundColor:s=o.BGPrimary})=>({marginTop:n?0:(0,r.$)()+e,display:"flex",width:null!=i?i:"100vw",maxWidth:null!=t?t:a.hj,justifyContent:"space-between",alignSelf:"center",flex:"1 1 auto",backgroundColor:s})),"label:DivBodyContainer;"),l=(0,o.default)("div",{target:"e1irlpdw1"})({".jotai-devtools-trigger-button":{position:"fixed",borderRadius:"50%",borderWidth:0,width:"4rem",height:"4rem"}},"label:DivJotaiDevtoolsWrapper;"),c=e=>i.AH`
*[role='button'],
*[role='link'],
*[role='switch'],
*[tabindex],
button[aria-label],
button[aria-labelledby],
button[aria-pressed],
button[aria-expanded],
button[role='tab'],
a[aria-label] {
&:focus {
outline: none;
}
&:focus-visible {
outline: 2px solid ${e};
}
}
,
*[role='button'],
button[aria-label],
button[aria-labelledby],
button[aria-pressed],
button[aria-expanded] {
&:focus-visible {
outline-offset: 1px;
}
}
,
li[role='option'] {
&:focus-visible {
outline-style: auto;
}
}
`},60408:(e,t,n)=>{"use strict";n.d(t,{F:()=>p});var i=n(58632),o=n(64162),a=n(4126),r=n(93995),s=n(23999),l=n(26324),c=n(35572),d=n(8536),u=n(25789);let p=class extends o.E{constructor(e){super(),this.service=e,this.defaultState={userSetting:{privateAccount:!1,adAuthorization:!1,proAccountStatus:0,pushSettings:void 0}}}setUserSetting(e,t){e.userSetting=t}setPrivateAccountStatus(e,t){e.userSetting.privateAccount=t}getUserSetting(e){return e.pipe((0,c.p)((()=>this.service.getUserSetting().pipe((0,d.Z)((({settings:e={}})=>{const{privateAccount:t=!1,adAuthorization:n=!1,proAccountStatus:i=0,pushSettings:o}=e;return(0,s.of)(this.getActions().setUserSetting({privateAccount:t,adAuthorization:n,proAccountStatus:i,pushSettings:o}))}))))))}};(0,i.__decorate)([(0,a.uk)(),(0,i.__metadata)("design:type",l.c)],p.prototype,"dispose$",void 0),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],p.prototype,"setUserSetting",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Boolean]),(0,i.__metadata)("design:returntype",void 0)],p.prototype,"setPrivateAccountStatus",null),(0,i.__decorate)([(0,a.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[l.c]),(0,i.__metadata)("design:returntype",void 0)],p.prototype,"getUserSetting",null),p=(0,i.__decorate)([(0,r.n)("SettingModule"),(0,i.__metadata)("design:paramtypes",[u.q])],p)},25789:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});var i=n(58632),o=n(38203),a=n(39228);let r=class{constructor(e){this.fetch=e}getUserSetting(){return this.fetch.get("/api/user/settings/",{query:{aid:"1988"},baseUrlType:2})}getShowChangeRegion(){return this.fetch.get("/tiktok/region/change/status/get/v1",{query:{},baseUrlType:2})}};r=(0,i.__decorate)([(0,o._)(),(0,i.__metadata)("design:paramtypes",[a.pM])],r)},18222:(e,t,n)=>{"use strict";n.d(t,{J:()=>M});var i,o=n(58632),a=n(64162),r=n(4126),s=n(93995),l=n(42051),c=n(23999),d=n(63700),u=n(26324),p=n(35572),v=n(95719),g=n(8536),m=n(74690),h=n(80339),_=n(76435),f=n(20259),y=n(24451),b=n(55322),w=n(66401),x=n(64356),T=n(55306),S=n(28889),k=n(11983),A=n(60408),O=n(25789),E=n(42577),P=n(38203),I=n(26325),C=n(39228);!function(e){e[e.FirstCommit=0]="FirstCommit",e[e.ConfirmEndAdAuth=1]="ConfirmEndAdAuth",e[e.ConfirmEndLive=2]="ConfirmEndLive"}(i||(i={}));let j=class{constructor(e){this.fetch=e}commitUserSetting(e,t){return this.fetch.post("/api/privacy/user/private_account/update/v1",{query:Object.assign(Object.assign({},e),{tt_csrf_token:this.fetch.csrfToken}),headers:{[I.nk]:this.fetch.csrfToken},body:t,baseUrlType:2})}getComplianceSetting(){return this.fetch.get("/api/compliance/settings/",{baseUrlType:2})}getBlockList(e){return this.fetch.get("/api/block/user_list/",{query:{offset:e,count:20},baseUrlType:2})}};j=(0,o.__decorate)([(0,P._)(),(0,o.__metadata)("design:paramtypes",[C.pM])],j);var L=n(92502);let M=class extends a.E{constructor(e,t,n,i,o){super(),this.service=e,this.user=t,this.settingModule=n,this.settingService=i,this.t=o,this.defaultState={statusCode:0,loading:!1,initialized:!1,complianceDisable:!1,complianceFamily:!1,complianceSettingStatusCode:0,privacyBCLimitModalOn:!1,privacyOffConfirmModalOn:!1,privacyOnAlertModalOn:!1,privacyEndLiveModalOn:!1,privacyAccountPromptVariant:null,blockList:{list:[],hasMore:!0,offset:"0",loading:!1},isBlockLoading:!1,isChangeRegionEnabled:!1,regionStatus:"",storeRegion:"",regionName:""}}setLoading(e,t){e.loading=t.loading}setStatusCode(e,t){e.statusCode=t.statusCode}setComplianceStatusCode(e,t){e.complianceSettingStatusCode=t.complianceSettingStatusCode}setComplianceDisable(e,t){e.complianceDisable=t}setComplianceFamily(e,t){e.complianceFamily=t}setPrivacyAccountPromptVariant(e,t){e.privacyAccountPromptVariant=t}setInitialized(e,t){e.initialized=t}setPrivacyBCLimitModalOn(e,t){e.privacyBCLimitModalOn=t}setPrivacyOffConfirmModalOn(e,t){e.privacyOffConfirmModalOn=t}setPrivacyOnAlertModalOn(e,t){e.privacyOnAlertModalOn=t}setPrivacyEndLiveModalOn(e,t){e.privacyEndLiveModalOn=t}setBlockList(e,t){const{list:n,offset:i,hasMore:o,loading:a}=t,r=e.blockList.list,s=n.filter((e=>-1===r.indexOf(e)));e.blockList={list:[...r,...s],offset:i,hasMore:o,loading:a}}setBlockListLoading(e,t){e.blockList.loading=t}setIsBlockLoading(e,t){e.isBlockLoading=t}setIsChangeRegionEnabled(e,t){e.isChangeRegionEnabled=t}setRegionStatus(e,t){e.regionStatus=t}setStoreRegion(e,t){e.storeRegion=t}setRegionName(e,t){e.regionName=t}postCommitChangePrivacySetting(e){return e.pipe((0,p.p)((({query:e,data:t,status:n})=>this.service.commitUserSetting(e,t).pipe((0,v.M)((e=>{3026002===(null==e?void 0:e.status_code)?console.warn("bc limit"):3026006===(null==e?void 0:e.status_code)?(console.warn("live on limit"),S.X.handleShowLiveChangePrivacyAccountPopUp()):0===(null==e?void 0:e.status_code)?(k.F.destroy(),k.F.open({content:this.t("settings_updated"),duration:3,type:"success",widthType:"half"}),S.X.handlePrivateAccountChange(n)):(k.F.destroy(),k.F.open({content:(null==e?void 0:e.status_msg)||this.t("server_error_title"),duration:3,type:"fail",widthType:"half"}))})),(0,g.Z)((e=>{const t=[this.getActions().setLoading({loading:!1}),this.getActions().setStatusCode({statusCode:null==e?void 0:e.status_code})];return 3026002===(null==e?void 0:e.status_code)?t.push(this.getActions().setPrivacyBCLimitModalOn(!0)):3026006===(null==e?void 0:e.status_code)?t.push(this.getActions().setPrivacyEndLiveModalOn(!0)):0===(null==e?void 0:e.status_code)&&t.push(this.settingModule.getActions().setPrivateAccountStatus(n)),(0,c.of)(...t)})),(0,m.Z)(this.getActions().setLoading({loading:!0})),(0,h.q)(this.getActions().setLoading({loading:!1})),(0,_.Q)(this.dispose$),(0,f.W)((()=>(k.F.destroy(),k.F.open({content:this.t("server_error_title"),duration:3,type:"fail",widthType:"half"}),(0,c.of)(this.getActions().setLoading({loading:!1}),this.getActions().setStatusCode({statusCode:-1})))))))))}getUserSetting(e){return e.pipe((0,p.p)((({callback:e,switchStatus:t})=>this.settingService.getUserSetting().pipe((0,g.Z)((({settings:n={}})=>{const{privateAccount:i=!1,adAuthorization:o=!1,proAccountStatus:a=0,pushSettings:r,languageSettings:s}=n;(0,L.TJ)().setLanguageSetting(s);const l=[this.settingModule.getActions().setUserSetting({privateAccount:i,adAuthorization:o,proAccountStatus:a,pushSettings:r}),this.getActions().setInitialized(!0)];return null==e||e(t,i,this.state.complianceFamily,(0,E.f)(n),this.state.complianceDisable),(0,c.of)(...l)}))))))}getShowRegionChangeSetting(e){return e.pipe((0,y.E)(this.settingModule.state$),(0,p.p)((()=>this.settingService.getShowChangeRegion().pipe((0,v.M)((e=>{0!==e.status_code&&console.error("get region change setting error: ",e.status_code)})),(0,g.Z)((e=>{var t,n,i;const o=null!==(t=e.is_change_region_enabled)&&void 0!==t&&t,a=e.localized_country||"",r=null!==(n=e.status_event)&&void 0!==n?n:"",s=null!==(i=e.region_name)&&void 0!==i?i:"";return(0,c.of)(this.getActions().setIsChangeRegionEnabled(o),this.getActions().setRegionStatus(r),this.getActions().setStoreRegion(a),this.getActions().setRegionName(s))})),(0,b.n)({})))))}getComplianceSetting(e){return e.pipe((0,y.E)(this.settingModule.state$),(0,p.p)((([{switchStatus:e,user:t,callback:n},i])=>this.service.getComplianceSetting().pipe((0,v.M)((e=>{0!==(null==e?void 0:e.status_code)&&console.error("get compliance setting error: ",null==e?void 0:e.status_code)})),(0,g.Z)((o=>{var a,r,s,l,u,p,v,g;const m=null==o?void 0:o.status_code;let h;const y=[this.getActions().setComplianceStatusCode({complianceSettingStatusCode:null==o?void 0:o.status_code})];if(0!==m)h=(0,c.of)(...y,this.getActions().setComplianceDisable(!1));else{const t=0!==(null===(s=null===(r=null===(a=null==o?void 0:o.private_settings)||void 0===a?void 0:a.account)||void 0===r?void 0:r.private_account)||void 0===s?void 0:s.show_type),i=2===(null===(g=(null!==(v=null===(p=null===(u=null===(l=null==o?void 0:o.private_settings)||void 0===l?void 0:l.account)||void 0===u?void 0:u.private_account)||void 0===p?void 0:p.values)&&void 0!==v?v:[]).find((e=>0===e.value)))||void 0===g?void 0:g.res_type);h=(0,d.h)((0,c.of)(...y,this.getActions().setComplianceFamily(i),this.getActions().setComplianceDisable(t),this.getActions().setPrivacyAccountPromptVariant((0,w.pn)(null==o?void 0:o.private_account_prompt,null==o?void 0:o.private_account_prompt_type))),this.getUserSetting((0,c.of)({switchStatus:e,callback:n})))}return h.pipe((0,_.Q)(this.dispose$),(0,f.W)((()=>{var e;return k.F.destroy(),k.F.open({content:this.t("server_error_title"),duration:3,widthType:"half"}),(0,c.of)(this.getActions().setComplianceStatusCode({complianceSettingStatusCode:-1}),this.settingModule.getActions().setUserSetting({privateAccount:null!==(e=null==t?void 0:t.isPrivateAccount)&&void 0!==e&&e,adAuthorization:i.userSetting.adAuthorization,proAccountStatus:i.userSetting.proAccountStatus}))})))}))))))}getBlockList(e){return e.pipe((0,p.p)((({offset:e="0"})=>this.service.getBlockList(e).pipe((0,p.p)((({userList:e=[],offset:t,hasMore:n})=>{const i=e.map((({user:e})=>e.uniqueId));return(0,c.of)(this.getActions().setBlockList({list:i,hasMore:n,offset:t,loading:!1}),this.user.getActions().multiSetUser(e.map((({user:e})=>Object.assign(Object.assign({},e),{relation:4})))),this.user.getActions().multiSetUserStats(e.map((({user:e,stats:t})=>({uniqueId:e.uniqueId,stats:t})))))})),(0,m.Z)(this.getActions().setBlockListLoading(!0))))))}};(0,o.__decorate)([(0,r.uk)(),(0,o.__metadata)("design:type",u.c)],M.prototype,"dispose$",void 0),(0,o.__decorate)([(0,r.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Object]),(0,o.__metadata)("design:returntype",void 0)],M.prototype,"setLoading",null),(0,o.__decorate)([(0,r.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Object]),(0,o.__metadata)("design:returntype",void 0)],M.prototype,"setStatusCode",null),(0,o.__decorate)([(0,r.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Object]),(0,o.__metadata)("design:returntype",void 0)],M.prototype,"setComplianceStatusCode",null),(0,o.__decorate)([(0,r.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Boolean]),(0,o.__metadata)("design:returntype",void 0)],M.prototype,"setComplianceDisable",null),(0,o.__decorate)([(0,r.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Boolean]),(0,o.__metadata)("design:returntype",void 0)],M.prototype,"setComplianceFamily",null),(0,o.__decorate)([(0,r.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Object]),(0,o.__metadata)("design:returntype",void 0)],M.prototype,"setPrivacyAccountPromptVariant",null),(0,o.__decorate)([(0,r.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Boolean]),(0,o.__metadata)("design:returntype",void 0)],M.prototype,"setInitialized",null),(0,o.__decorate)([(0,r.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Boolean]),(0,o.__metadata)("design:returntype",void 0)],M.prototype,"setPrivacyBCLimitModalOn",null),(0,o.__decorate)([(0,r.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Boolean]),(0,o.__metadata)("design:returntype",void 0)],M.prototype,"setPrivacyOffConfirmModalOn",null),(0,o.__decorate)([(0,r.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Boolean]),(0,o.__metadata)("design:returntype",void 0)],M.prototype,"setPrivacyOnAlertModalOn",null),(0,o.__decorate)([(0,r.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Boolean]),(0,o.__metadata)("design:returntype",void 0)],M.prototype,"setPrivacyEndLiveModalOn",null),(0,o.__decorate)([(0,r.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Object]),(0,o.__metadata)("design:returntype",void 0)],M.prototype,"setBlockList",null),(0,o.__decorate)([(0,r.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Boolean]),(0,o.__metadata)("design:returntype",void 0)],M.prototype,"setBlockListLoading",null),(0,o.__decorate)([(0,r.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Boolean]),(0,o.__metadata)("design:returntype",void 0)],M.prototype,"setIsBlockLoading",null),(0,o.__decorate)([(0,r.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Boolean]),(0,o.__metadata)("design:returntype",void 0)],M.prototype,"setIsChangeRegionEnabled",null),(0,o.__decorate)([(0,r.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,String]),(0,o.__metadata)("design:returntype",void 0)],M.prototype,"setRegionStatus",null),(0,o.__decorate)([(0,r.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,String]),(0,o.__metadata)("design:returntype",void 0)],M.prototype,"setStoreRegion",null),(0,o.__decorate)([(0,r.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,String]),(0,o.__metadata)("design:returntype",void 0)],M.prototype,"setRegionName",null),(0,o.__decorate)([(0,r.Mj)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[u.c]),(0,o.__metadata)("design:returntype",void 0)],M.prototype,"postCommitChangePrivacySetting",null),(0,o.__decorate)([(0,r.Mj)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[u.c]),(0,o.__metadata)("design:returntype",void 0)],M.prototype,"getUserSetting",null),(0,o.__decorate)([(0,r.Mj)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[u.c]),(0,o.__metadata)("design:returntype",void 0)],M.prototype,"getShowRegionChangeSetting",null),(0,o.__decorate)([(0,r.Mj)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[u.c]),(0,o.__metadata)("design:returntype",void 0)],M.prototype,"getComplianceSetting",null),(0,o.__decorate)([(0,r.Mj)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[u.c]),(0,o.__metadata)("design:returntype",void 0)],M.prototype,"getBlockList",null),M=(0,o.__decorate)([(0,s.n)("SettingPrivacy"),(0,o.__param)(4,(0,l.y)(x.hp)),(0,o.__metadata)("design:paramtypes",[j,T.U,A.F,O.q,Function])],M)},42577:(e,t,n)=>{"use strict";n.d(t,{E:()=>a,f:()=>o});var i=n(44805);const o=e=>{const{adAuthorization:t,proAccountStatus:n}=e;return 3===n?"BA":t?"AD":"NONE"},a=()=>i.FCM.isAvailable()&&"Notification"in window},5109:(e,t,n)=>{"use strict";n.d(t,{V:()=>s,d:()=>r});var i=n(39785),o=n(97487),a=n(39228);const r=(0,i.M)({csr:function(e){return t=this,n=void 0,r=function*(){return(0,o.Ni)("videoDetail")||a.hd.get("/api/item/detail/",{query:e,baseUrlType:2})},new((i=void 0)||(i=Promise))((function(e,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(a,s)}l((r=r.apply(t,n||[])).next())}));var t,n,i,r}}),s=(0,i.M)({csr:function(e){}})},91334:(e,t,n)=>{"use strict";n.d(t,{AW:()=>c,LY:()=>d,OA:()=>s,jT:()=>r,mc:()=>l});var i=n(64590),o=n(7789),a=n(92439);function r(e){const{customParams:t,option:n}=null!=e?e:{},a=Object.assign({timer_from_ttfb:(0,o.V)()-(0,o.MZ)()},t);i.l.send("arm_browser_render",a,n)}function s({duration:e,customParams:t,option:n}){const o=Object.assign({timer_render:e},t);i.l.send("arm_render_finish",o,n)}function l(e){const{customParams:t,option:n}=null!=e?e:{};i.l.send("arm_core_content_ready",Object.assign({},t),n)}function c(e){const{customParams:t,option:n}=null!=e?e:{};(0,a.fK)((({name:e,value:o})=>{if("LCP"===e){const e=Object.assign({timer_lcp:Math.ceil(o)},t);i.l.send("arm_lcp",e,n)}else console.warn("Do not get LCP metric in onLCP callback")}))}function d(e){const{customParams:t,option:n}=null!=e?e:{};window.addEventListener("beforeunload",(function e(){i.l.send("arm_bounce",Object.assign({},t),n),window.removeEventListener("beforeunload",e)}))}},64590:(e,t,n)=>{"use strict";n.d(t,{l:()=>o});var i=n(7789);const o=new class{constructor(){this.allowRepeat=!1,this.eventAlreadySent={},this.stop=!1}init({pageName:e,device:t,sender:n,sendConfig:i}){this.sender=n,this.path=window.location.pathname,this.pageName=e,this.device=t,i&&this.handleConfigGlobal(i)}config({sender:e}){this.sender=e}getCommonParams(e,t){var n,o,a,r;return{page_name:null!==(o=null!==(n=this.pageName)&&void 0!==n?n:e)&&void 0!==o?o:"",last_event:null!==(a=this.lastEvent)&&void 0!==a?a:"",duration:(0,i.V)(),device:null!==(r=this.device)&&void 0!==r?r:"",userAgent:null!=t?t:window.navigator.userAgent}}send(e,t,n){this.sender?(((null==n?void 0:n.forceSend)||this.allowSend(e))&&this.sender(e,Object.assign(Object.assign({},t),this.getCommonParams())),this.updateStatus(e),this.lastEvent=e):console.error("Send ARM events before initialized")}handleConfigGlobal(e){const{allowRepeat:t}=e;this.allowRepeat=t}allowSend(e){const{stop:t,path:n,allowRepeat:i,eventAlreadySent:o}=this,a=window.location.pathname;return!(t||a!==n||!i&&o[e])}updateStatus(e){const t=window.location.pathname;this.stop=this.stop||t!==this.path,this.eventAlreadySent[e]=!0}}},7789:(e,t,n)=>{"use strict";n.d(t,{MZ:()=>i,V:()=>o}),n(92439);const i=()=>{var e,t,n;const i=null===(t=null===(e=window.performance)||void 0===e?void 0:e.getEntriesByType)||void 0===t?void 0:t.call(e,"navigation")[0];return Math.ceil(null!==(n=null==i?void 0:i.responseStart)&&void 0!==n?n:0)},o=()=>Math.ceil(performance.now())},87181:(e,t,n)=>{"use strict";n.d(t,{Zi:()=>u,$U:()=>c,BJ:()=>v,Bl:()=>l,D9:()=>p,yw:()=>d});var i,o,a=n(58632);!function(e){e.ROW="https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/secsdk/secsdk-lastest.umd.js",e.TTP="https://lf16-cdn-tos.tiktokcdn-us.com/obj/static-tx/secsdk/secsdk-lastest.umd.js"}(i||(i={})),function(e){e.Acrawler="acrawler",e.SecSdkSG="secsdk_sg",e.SecSdkVA="secsdk_va",e.SecSdkTTP="secsdk_ttp"}(o||(o={}));const r={acrawler:"https://lf16-tiktok-web.tiktokcdn-us.com/obj/tiktok-web-tx/webmssdk/2.0.0.221/webmssdk.js",secsdk_sg:"https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/secsdk/secsdk-lastest.umd.js",secsdk_va:"https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/secsdk/secsdk-lastest.umd.js",secsdk_ttp:"https://lf16-cdn-tos.tiktokcdn-us.com/obj/static-tx/secsdk/secsdk-lastest.umd.js"};n(24643);const s="script-manager";function l(e){var t,n,i;let o={imports:{}};try{o=JSON.parse(null!==(n=null===(t=document.querySelector(`#${s}`))||void 0===t?void 0:t.innerHTML)&&void 0!==n?n:"")}catch(e){console.error("[Init failed]: sdk config is invalid")}return null!==(i=o.imports[e])&&void 0!==i?i:""}function c(e){return(0,a.__awaiter)(this,void 0,void 0,(function*(){const{moduleId:t}=e,n=l(t),i=document.createElement("script");return i.src=n,i.async=!0,new Promise(((e,t)=>{var o;n?(i.parentNode&&(null===(o=document.parentNode)||void 0===o||o.removeChild(i)),document.body.appendChild(i),i.addEventListener("load",(()=>{e(!0)})),i.addEventListener("error",(()=>{t(new Error("load script failed"))}))):t(new Error("empty script src"))}))}))}function d(e){const{moduleId:t}=e,n=l(t),i=document.querySelector(`script[src="${n}"]`);return Boolean(i)}function u(e="/node-webapp/api/importmap"){return(0,a.__awaiter)(this,void 0,void 0,(function*(){if(document.querySelector(`#${s}`))return;let t={imports:{}};const n=document.createElement("script");n.type="application/json",n.id=s;try{const n=yield window.fetch.call(null,e,{method:"Get",redirect:"error"}),{imports:i}=yield n.json();t={imports:i}}catch(e){t={imports:r}}n.innerText=JSON.stringify(t),document.head.appendChild(n)}))}function p(e){let t="secsdk_sg";switch(e){case"MALI_VA":t="secsdk_va";break;case"TTP":t="secsdk_ttp";break;default:t="secsdk_sg"}return t}function v(){return"acrawler"}},81054:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>N,PD:()=>M});var i=n(47236);function o(e,t,n,i,o,a,r){try{var s=e[a](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,o)}class a{isTriggered(e){return this._triggeredEvents.has(e)}emit(e){const t=this._activeListeners.get(e);t&&t.forEach((e=>e())),this._activeListeners.delete(e),this._triggeredEvents.add(e)}on(e,t){if(this.isTriggered(e))t();else{var n;const i=null!==(n=this._activeListeners.get(e))&&void 0!==n?n:new Set;i.add(t),this._activeListeners.set(e,i)}return{dispose:()=>this.off(e,t)}}off(e,t){const n=this._activeListeners.get(e);null==n||n.delete(t)}waitFor(e){var t,n=this;return(t=function*(){return new Promise((t=>{n.on(e,t)}))},function(){var e=this,n=arguments;return new Promise((function(i,a){var r=t.apply(e,n);function s(e){o(r,i,a,s,l,"next",e)}function l(e){o(r,i,a,s,l,"throw",e)}s(void 0)}))})()}constructor(){this._triggeredEvents=new Set,this._activeListeners=new Map}}class r extends Error{constructor(e){super(null!=e?e:"Lazy load component timeout.")}}var s=n(40099);const l=Symbol.for("visible_render_strategy"),c=e=>{const{id:t,emitter:n}=e;return(0,s.useEffect)((()=>{if(n.isTriggered(l))return;const e=document.getElementById(t);if(!e)return;const i=new IntersectionObserver((e=>{for(const t of e)if(t.isIntersecting){i.disconnect(),n.emit(l);break}}));return i.observe(e),()=>{i.disconnect()}}),[t,n]),null};var d=n(24643);function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){for(var t=1;t{g()(e,(i=>{i?(_.delete(e),n(i)):t()}))}));return _.set(e,t),t}))).apply(this,arguments)}function y(e,t,n,i,o,a,r){try{var s=e[a](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,o)}function b(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function r(e){y(a,i,o,r,s,"next",e)}function s(e){y(a,i,o,r,s,"throw",e)}r(void 0)}))}}function w(e){return x.apply(this,arguments)}function x(){return(x=b((function*(e){for(const t of e)"function"==typeof t?yield t():yield t}))).apply(this,arguments)}function T(e,t){return b((function*(){yield e.waitFor(t)}))}function S(e){return b((function*(){let t;return new Promise((n=>{t=setTimeout((()=>{n()}),e)})).finally((()=>clearTimeout(t)))}))}function k(e,t,n,i,o,a,r){try{var s=e[a](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,o)}function A(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function r(e){k(a,i,o,r,s,"next",e)}function s(e){k(a,i,o,r,s,"throw",e)}r(void 0)}))}}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const E=()=>new Promise((()=>{})),P=()=>Promise.resolve();function I(e,t,n,i){return o=A((function*(o){if(null==(a=o)?void 0:a.__chunkExtractor)return n(o);var a;let s;const c=(d=A((function*(){s=yield n(o)})),function(){return d.apply(this,arguments)});var d;let u=P,p=E;const v=[],{timeout:g,raceTime:m,delayTime:_,renderEvent:y,renderStrategy:x}=function(e){for(var t=1;t{t=setTimeout((()=>{i(new r("Load lazy component timeout."))}),e)})).finally((()=>clearTimeout(t)))}))}(g)),"number"==typeof m&&(p=S(m)),"number"==typeof _&&v.push(S(_)),(null==i?void 0:i.dependencyScripts)&&Array.isArray(i.dependencyScripts)&&v.push((k=i.dependencyScripts,h((function*(){try{yield Promise.all(k.map((e=>function(e){return f.apply(this,arguments)}(e))))}catch(e){console.error("Load script error:",e)}}))));const I=x;"idle"===I?v.push(b((function*(){return new Promise(((e,t)=>{requestIdleCallback((()=>{e()}))}))}))):"visible"===I?v.push(T(t,l)):"custom"===I&&y&&v.push(T(e,y));const C=Promise.race([p(),w(v)]),j=w([C,c]);if(yield Promise.all([j,u()]),!(null==s?void 0:s.default))throw new Error("Default of module should be component.");return s})),function(e){return o.apply(this,arguments)};var o}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const j=new a,L=new Set([j]),M={emit(e){L.forEach((t=>t.emit(e)))}};var N=function(e,t){const n=new a;let o;L.add(n);let r=e;if("function"!=typeof e){r=e.importAsync;const i=I(j,n,r,t);l=function(e){for(var t=1;t{t({}).catch((e=>{console.error("Load resource error",{error:e?e.message:e})}))};"preload"!==e?"custom"===e&&i&&n.on(i,(()=>{o()})):o()}(null==t?void 0:t.resourceStrategy,r,j,null==t?void 0:t.loadEvent),function(e,t,n={}){if(n.dependencyScripts)try{!function(e,t="preload"){for(const n of e){const e=document.createElement("link");e.href=n,e.rel=t,e.as="script",document.head.appendChild(e)}}(n.dependencyScripts)}catch(e){console.error("Link script error:",e)}return n=>{{const{intersectionId:i}=n,o=i?(0,d.jsx)(c,{id:i,emitter:t}):null;return(0,d.jsxs)(s.Fragment,{children:[o,(0,d.jsx)(e,p({},n))]})}}}((0,i.Ay)(o,t),n,t)}},47172:(e,t,n)=>{"use strict";n.d(t,{CompatRouter:()=>_,CustomRouterContext:()=>r,Link:()=>u,Prompt:()=>p,getRouterState:()=>b,matchPath:()=>d,useHistory:()=>s,useLocation:()=>l,useRouteError:()=>f,useRouteMatch:()=>c});var i=n(40099),o=n(11060),a=n(99179);const r=(0,i.createContext)(null);function s(){const e=(0,i.useContext)(r),t=(0,o.W6)();var n;return null!==(n=null==e?void 0:e.history)&&void 0!==n?n:t}function l(){const e=(0,i.useContext)(r),t=(0,o.zy)();var n;return null!==(n=null==e?void 0:e.location)&&void 0!==n?n:t}(0,i.createContext)(null);const c=o.W5,d=o.B6,u=a.N_,p=o.XG;var v=n(24643),g=n(26475),m=n(79948),h=n.n(m);const _=({createRouter:e,historyPaths:t,children:n})=>{if(e)throw new Error("Can't pass createRouter in react-router v5.");const i=function(e,t){const n=(0,g.zR)(t);function i(t){return(i,o)=>{const{pathname:a,href:r}=function(e){if("string"==typeof e){const t=new URL(e,window.location.origin);return{pathname:t.pathname,href:t.href}}const{pathname:t="",search:n="",hash:i=""}=e;return{pathname:t,href:`${t}${n}${i}`}}(i);!function(e,t){return t.some((t=>h()(t).test(e)))}(a,e)?t?window.location.replace(r):window.location.assign(r):t?n.replace(i,o):n.push(i,o)}}return Object.create(n,{push:{enumerable:!0,value:i(!1)},replace:{enumerable:!0,value:i(!0)}})}(null!=t?t:[]);return(0,v.jsx)(o.Ix,{history:i,children:n})},f=()=>{throw new Error("useRouteError is not supported in react-router v5")},y="state";function b(){const e=window.history.state;return null==e?void 0:e[y]}},14713:(e,t,n)=>{"use strict";n(37685),console.info("Reflect is polyfilled, using `@abraham/reflection`.")},243:function(e){e.exports=function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,i=new Array(t);no)return 1;if(i"===t&&i>0||">="===t&&i>=0||"<"===t&&i<0||"<="===t&&i<=0},c=function(){function t(){e(this,t),this._methodRuleMap={}}return n(t,[{key:"registerMethodRules",value:function(e){var t=e.map,n=void 0===t?"":t,i=e.target,o=void 0===i?[]:i;n?this._methodRuleMap[n]=o:r.error("register method rules error")}},{key:"getRuntimeOS",value:function(){return function(){if(s())return"ssr";var e="Win32"===(null===navigator||void 0===navigator?void 0:navigator.platform)||"Windows"===(null===navigator||void 0===navigator?void 0:navigator.platform),t="Mac68K"===(null===navigator||void 0===navigator?void 0:navigator.platform)||"MacPPC"===(null===navigator||void 0===navigator?void 0:navigator.platform)||"Macintosh"===(null===navigator||void 0===navigator?void 0:navigator.platform)||"MacIntel"===(null===navigator||void 0===navigator?void 0:navigator.platform),n="X11"===(null===navigator||void 0===navigator?void 0:navigator.platform)&&!e&&!t,i=String(null===navigator||void 0===navigator?void 0:navigator.platform).indexOf("Linux")>-1;return t?"mac":n?"unix":i?"linux":e?"windows":"unknown"}()}},{key:"getRuntimeVersion",value:function(){var e,t,n;return s()?(r.error("can't get client version in ssr"),""):(null===(n=null===(t=null===(e=null===window||void 0===window?void 0:window.TTE_ENV)||void 0===e?void 0:e.initPageStore)||void 0===t?void 0:t.page)||void 0===n?void 0:n.version)||""}},{key:"checkOS",value:function(e){return!e||"*"===e||this.getRuntimeOS()===e}},{key:"checkMethodAvailable",value:function(e){var t,n,i;return!!this.checkInClient()&&void 0!==(null===(i=null===(n=null===(t=null===window||void 0===window?void 0:window.TTE_ENV)||void 0===t?void 0:t.bridge)||void 0===n?void 0:n.EVENTS)||void 0===i?void 0:i.TO_MAIN_EVENT_TYPES[e])}},{key:"canIUse",value:function(e){return{code:0,data:{isAvailable:this.checkMethodAvailable(e)}}}},{key:"checkVersion",value:function(e){return!e||function(e,t){var n=i(t.split("-"),2),o=n[0],a=void 0===o?"":o,r=n[1],s=void 0===r?"":r;return!a&&!s||(a?s?l(e,">=",a)&&l(e,"<=",s):l(e,">=",a):l(e,"<=",s))}(this.getRuntimeVersion(),e)}},{key:"checkDetail",value:function(e){if(!e||0===e.length)return!0;var t,n=!1,i=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=o(e))){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,r=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return r=e.done,e},e:function(e){s=!0,a=e},f:function(){try{r||null==t.return||t.return()}finally{if(s)throw a}}}}(e);try{for(i.s();!(t=i.n()).done;){var a=t.value.os;if(n=this.checkOS(a))break}}catch(e){i.e(e)}finally{i.f()}return n}},{key:"checkRule",value:function(e){var t=e.target,n=void 0===t?[]:t;return!e||!!this.checkDetail(n)}},{key:"on",value:function(e,t){return this.checkInClient()?window.TTE_ENV.bridge.on(e,t):(r.warn("turn on listening to ".concat(e," failed, env is not in client.")),!1)}},{key:"off",value:function(e,t){return this.checkInClient()?window.TTE_ENV.bridge.off(e,t):(r.warn("turn off listening to ".concat(e," failed, env is not in client.")),!1)}},{key:"checkInClient",value:function(){var e;return!s()&&void 0!==(null===(e=null===window||void 0===window?void 0:window.TTE_ENV)||void 0===e?void 0:e.bridge)}},{key:"call",value:function(e){var t=this,n=e.params,i=void 0===n?{}:n,o=e.method,a=e.rule,s=e.transParameters,l=void 0!==s&&s;return new Promise((function(e){var n={code:-9,data:null,msg:"Something went wrong. maybe polyfill."};try{if(!t.checkInClient()){var s="WARN:[".concat(o,"]The current environment is not inside the client.");return n.code=-2,n.msg=s,r.warn(s),void e(n)}if(!t.checkMethodAvailable(o)){var c="WARN: [".concat(o,"]The current system doesn't support this method.");return n.code=-3,n.msg=c,r.warn(c),void e(n)}if(!t.checkRule(a)){var d="WARN: [".concat(o,"]The method invocation environment does not meet the rules.");return n.code=-3,n.msg=d,r.warn(d),void e(n)}}catch(t){var u="Bridge SDK Inner Error: ".concat(o,"-{").concat(JSON.stringify(i),"}. ").concat(t.message," | ").concat(t.stack);return r.error(u),n.msg=u,n.code=-5,void e(n)}var p=l?i:{data:i};window.TTE_ENV.bridge.invoke(o,p).then((function(t){var i,o,a;void 0!==(null==t?void 0:t._to_sdk)?(n.code=null!==(i=t._to_sdk.code)&&void 0!==i?i:n.code,n.data=null!==(o=t.data)&&void 0!==o?o:null,n.msg=null!==(a=t._to_sdk.msg)&&void 0!==a?a:"success"):(n.code=0,n.data=t,n.msg="success"),e(n)})).catch((function(t){var a="Bridge SDK Execute Failed: ".concat(o,"-{").concat(JSON.stringify(i),"}}. ").concat(t.message," | ").concat(t.stack);n.code=-1,n.msg=t.message,r.error(a),e(n)}))}))}}]),t}(),d=new c;function u(e){Object.keys(e).forEach((function(t){var n,i=(null===(n=e[t])||void 0===n?void 0:n.rule)||{};d.registerMethodRules(i)}))}var p={target:[{os:"*"}],map:"app.getVersion"};function v(){return d.call({rule:p,method:"GET_VERSION"})}v.rule=p;var g={target:[{os:"*"}],map:"app.setAlwaysOnTop"};function m(e){return d.call({rule:g,method:"SET_ALWAYS_ON_TOP",params:e,transParameters:!0})}m.rule=g;var h={target:[{os:"*"}],map:"app.changeToOriginalMode"};function _(){return d.call({rule:h,method:"CHANGE_TO_ORIGINAL_MODE"})}_.rule=h;var f={target:[{os:"*"}],map:"app.changeToSmallMode"};function y(){return d.call({rule:f,method:"CHANGE_TO_SMALL_MODE"})}y.rule=f;var b={target:[{os:"*"}],map:"app.isAlwaysOnTop"};function w(){return d.call({rule:b,method:"IS_ALWAYS_ON_TOP"})}w.rule=b;var x={target:[{os:"*"}],map:"app.mainWindowMoveTop"};function T(){return d.call({rule:x,method:"MAIN_WINDOW_MOVE_TOP"})}T.rule=x;var S={target:[{os:"*"}],map:"app.minimize"};function k(){return d.call({rule:S,method:"WINDOW_MIN"})}k.rule=S;var A={target:[{os:"*"}],map:"app.handlePageReady"};function O(){return d.call({rule:A,method:"PAGE_READY"})}O.rule=A;var E={target:[{os:"*"}],map:"app.maximize"};function P(){return d.call({rule:E,method:"WINDOW_MAX"})}P.rule=E;var I={target:[{os:"*"}],map:"app.canGoBack"};function C(){return d.call({rule:I,method:"CAN_GO_BACK"})}C.rule=I;var j={target:[{os:"*"}],map:"app.clearCookie"};function L(){return d.call({rule:j,method:"CLEAR_COOKIE"})}L.rule=j;var M={target:[{os:"*"}],map:"app.getWid"};function N(){return d.call({rule:M,method:"GET_WID"})}N.rule=M;var D={target:[{os:"*"}],map:"app.closeParent"};function R(){return d.call({rule:D,method:"CLOSE_PARENT"})}R.rule=D;var B={target:[{os:"*"}],map:"app.closeWindow"};function U(){return d.call({rule:B,method:"WINDOW_CLOSE"})}U.rule=B;var F={target:[{os:"*"}],map:"app.getAllClientLog"};function V(){return d.call({rule:F,method:"GET_ALL_CLIENT_LOG"})}V.rule=F;var z={target:[{os:"*"}],map:"app.getAppConfigItem"};function H(e){return d.call({rule:z,method:"GET_APP_CONFIG_ITEM",params:e})}H.rule=z;var q={target:[{os:"*"}],map:"app.goBack"};function W(){return d.call({rule:q,method:"GO_BACK"})}W.rule=q;var $={target:[{os:"*"}],map:"app.getPageStore"};function G(){return d.call({rule:$,method:"GET_PAGE_STORE"})}G.rule=$;var Y={target:[{os:"*"}],map:"app.getSettings"};function Z(){return d.call({rule:Y,method:"GET_SETTINGS"})}Z.rule=Y;var K={target:[{os:"*"}],map:"app.isFull"};function X(){return d.call({rule:K,method:"WINDOW_IS_FULL"})}X.rule=K;var Q={target:[{os:"*"}],map:"app.openWallpaperWindow"};function J(){return d.call({rule:Q,method:"OPEN_WALLPAPER_WINDOW"})}J.rule=Q;var ee={target:[{os:"*"}],map:"app.getChannelId"};function te(){return d.call({rule:ee,method:"GET_CHANNEL_ID"})}te.rule=ee;var ne={target:[{os:"*"}],map:"app.reload"};function ie(){return d.call({rule:ne,method:"RELOAD"})}ie.rule=ne;var oe={target:[{os:"mac"}],map:"app.setFullScreenable"};function ae(e){return d.call({rule:oe,method:"SET_FULL_SCREENABLE",params:e,transParameters:!0})}ae.rule=oe;var re={target:[{os:"*"}],map:"app.getAllWindowData"};function se(){return d.call({rule:re,method:"GET_ALL_WINDOW_DATA"})}se.rule=re;var le={target:[{os:"*"}],map:"app.reloadWindowFromId"};function ce(){return d.call({rule:le,method:"RELOAD_FROM_ID"})}ce.rule=le;var de={target:[{os:"*"}],map:"app.reportStat"};function ue(e){return d.call({rule:de,method:"REPORT_STAT",params:e,transParameters:!0})}ue.rule=de;var pe={target:[{os:"*"}],map:"app.setAppConfigItem"};function ve(e){return d.call({rule:pe,method:"SET_APP_CONFIG_ITEM",params:e})}ve.rule=pe;var ge={target:[{os:"*"}],map:"app.setAutoStart"};function me(e){return d.call({rule:ge,method:"SET_AUTO_START",params:e})}me.rule=ge;var he={target:[{os:"*"}],map:"app.setCloseToTray"};function _e(e){return d.call({rule:he,method:"SET_CLOSE_TO_TRAY",params:e})}_e.rule=he;var fe={target:[{os:"*"}],map:"app.setMiniMizeToTray"};function ye(e){return d.call({rule:fe,method:"SET_MINIMIZE_TO_TRAY",params:e})}ye.rule=fe;var be={target:[{os:"*"}],map:"app.showAbout"};function we(e){return d.call({rule:be,method:"WINDOW_SHOW_ABOUT",params:e})}we.rule=be;var xe={target:[{os:"*"}],map:"app.syncLoginState"};function Te(e){return d.call({rule:xe,method:"SYNC_LOGIN_STATE",params:e,transParameters:!0})}Te.rule=xe;var Se={target:[{os:"*"}],map:"app.themeChange"};function ke(e){return d.call({rule:Se,method:"THEME_CHANGE",params:e})}ke.rule=Se;var Ae={target:[{os:"*"}],map:"app.getAllDisplays"};function Oe(){return d.call({rule:Ae,method:"GET_ALL_DISPLAYS"})}Oe.rule=Ae;var Ee={target:[{os:"*"}],map:"app.getPrimaryDisplay"};function Pe(){return d.call({rule:Ee,method:"GET_PRIMARY_DISPLAY"})}Pe.rule=Ee;var Ie={target:[{os:"*"}],map:"app.navigationGoBack"};function Ce(){return d.call({rule:Ie,method:"NAVIGATION_GO_BACK"})}Ce.rule=Ie;var je={target:[{os:"windows"}],map:"app.getAutoStart"};function Le(){return d.call({rule:je,method:"GET_AUTO_START"})}Le.rule=je;var Me={target:[{os:"*"}],map:"app.showUpdateModal"};function Ne(){return d.call({rule:Me,method:"SHOW_UPDATE_MODAL"})}Ne.rule=Me;var De={target:[{os:"*"}],map:"app.getIsUpdatePackageReady"};function Re(){return d.call({rule:De,method:"GET_IS_UPDATE_PACKAGE_READY"})}Re.rule=De;var Be={target:[{os:"*"}],map:"app.getClientUpdateInfo"};function Ue(){return d.call({rule:Be,method:"GET_CLIENT_UPDATE_INFO"})}Ue.rule=Be;var Fe={target:[{os:"*"}],map:"app.quitUpdateTip"};function Ve(){return d.call({rule:Fe,method:"QUIT_UPDATE_TIP"})}Ve.rule=Fe;var ze={target:[{os:"mac"}],map:"app.getMediaAccessStatus"};function He(e){return d.call({rule:ze,method:"GET_MEDIA_ACCESS_STATUS",params:e,transParameters:!0})}He.rule=ze;var qe={target:[{os:"mac"}],map:"app.askForMediaAccess"};function We(e){return d.call({rule:qe,method:"ASK_FOR_MEDIA_ACCESS",params:e,transParameters:!0})}We.rule=qe;var $e={target:[{os:"mac"}],map:"app.getIsMas"};function Ge(){return d.call({rule:$e,method:"GET_IS_MAS"})}Ge.rule=$e;var Ye={target:[{os:"*"}],map:"app.getIsFrontShow"};function Ze(){return d.call({rule:Ye,method:"GET_IS_FRONT_SHOW"})}Ze.rule=Ye;var Ke={target:[{os:"*"}],map:"app.downloadWallpaper"};function Xe(e){return d.call({rule:Ke,method:"DOWNLOAD_WALLPAPER",params:e,transParameters:!0})}Xe.rule=Ke;var Qe={target:[{os:"*"}],map:"app.getStoreItem"};function Je(e){return d.call({rule:Qe,method:"GET_STORE_ITEM",params:e,transParameters:!0})}Je.rule=Qe;var et={target:[{os:"*"}],map:"app.setStoreItem"};function tt(e){return d.call({rule:et,method:"SET_STORE_ITEM",params:e,transParameters:!0})}tt.rule=et;var nt={target:[{os:"*"}],map:"app.getMetrics"};function it(){return d.call({rule:nt,method:"GET_METRICS"})}it.rule=nt;var ot={target:[{os:"*"}],map:"app.printFirstFeedShow"};function at(e){return d.call({rule:ot,method:"printFirstFeedShow",params:e,transParameters:!0})}at.rule=ot;var rt={target:[{os:"windows"}],map:"app.getHardwareDecodeState"};function st(){return d.call({rule:rt,method:"getHardwareDecodeState"})}st.rule=rt;var lt={target:[{os:"*"}],map:"app.isTopWebview"};function ct(){return d.call({rule:lt,method:"isTopWebview"})}ct.rule=lt;var dt={target:[{os:"*"}],map:"app.getVolumeInfo"};function ut(){return d.call({rule:dt,method:"getVolumeInfo"})}ut.rule=dt;var pt={target:[{os:"*"}],map:"app.openInternalBrowser"};function vt(e){return d.call({rule:pt,method:"openInternalBrowser",params:e,transParameters:!0})}vt.rule=pt;var gt={target:[{os:"*"}],map:"app.mainWindowShowView"};function mt(){return d.call({rule:gt,method:"mainWindowShowView"})}mt.rule=gt;var ht={target:[{os:"*"}],map:"app.langChange"};function _t(e){return d.call({rule:ht,method:"LANG_CHANGE",params:e})}_t.rule=ht;var ft={target:[{os:"*"}],map:"app.downloadVideo"};function yt(e){return d.call({rule:ft,method:"DOWNLOAD_VIDEO",params:e})}yt.rule=ft;var bt={getVersion:v,setAlwaysOnTop:m,changeToOriginalMode:_,changeToSmallMode:y,isAlwaysOnTop:w,mainWindowMoveTop:T,minimize:k,handlePageReady:O,maximize:P,canGoBack:C,clearCookie:L,getWid:N,closeParent:R,closeWindow:U,getAllClientLog:V,getAppConfigItem:H,goBack:W,getPageStore:G,getSettings:Z,isFull:X,openWallpaperWindow:J,getChannelId:te,reload:ie,setFullScreenable:ae,getAllWindowData:se,reloadWindowFromId:ce,reportStat:ue,setAppConfigItem:ve,setAutoStart:me,setCloseToTray:_e,setMiniMizeToTray:ye,showAbout:we,syncLoginState:Te,themeChange:ke,getAllDisplays:Oe,getPrimaryDisplay:Pe,navigationGoBack:Ce,getAutoStart:Le,showUpdateModal:Ne,getIsUpdatePackageReady:Re,getClientUpdateInfo:Ue,quitUpdateTip:Ve,getMediaAccessStatus:He,askForMediaAccess:We,getIsMas:Ge,getIsFrontShow:Ze,downloadWallpaper:Xe,getStoreItem:Je,setStoreItem:tt,getMetrics:it,printFirstFeedShow:at,getHardwareDecodeState:st,isTopWebview:ct,getVolumeInfo:ut,openInternalBrowser:vt,mainWindowShowView:mt,langChange:_t,downloadVideo:yt};u(bt);var wt=bt,xt={target:[{os:"*"}],map:"user.getUserUniqueId"};function Tt(){return d.call({rule:xt,method:"GET_USER_UNIQUE_ID"})}Tt.rule=xt;var St={target:[{os:"*"}],map:"user.getCsrInitialData"};function kt(){return d.call({rule:St,method:"getCsrInitialData"})}kt.rule=St;var At={getUserUniqueId:Tt,getCsrInitialData:kt};return u(At),{app:wt,user:At,util:{canIUse:d.canIUse.bind(d),isClient:d.checkInClient,sdkVersion:"0.0.0"},on:d.on.bind(d),off:d.off.bind(d)}}()},54775:(e,t,n)=>{"use strict";n.d(t,{juU:()=>j});var i=function(){return"undefined"==typeof window||"undefined"==typeof document},o=i()||!document.documentElement.classList.contains("Android")&&!Boolean(/(?:Android);?[\s/]+([\d.]+)?/.exec(navigator.userAgent))?"iOS":"Android",a=n(23475),r=n.n(a),s=n(71984),l=n.n(s),c=n(86649),d=n.n(c),u=n(88028),p=n.n(u),v=n(22799),g=n.n(v),m=n(55587),h=n.n(m),_=n(35692),f=n(65328),y=n(85609),b=n(34770),w=n.n(b),x=n(58041),T=n.n(x),S=n(40099),k=n(73791),A=function(){if(!i())return function(){if(i())return!1;var e=navigator.userAgent.match(/isDarkMode\/([01])/);return e?"1"===e[1]:Boolean(window.matchMedia)&&window.matchMedia("(prefers-color-scheme: dark)").matches}()?"dark":"light"}(),O=["children","margin","padding","width","height","maxWidth","minWidth","maxHeight","minHeight"],E=["children","margin","padding","width","height","maxWidth","minWidth","maxHeight","minHeight"];function P(e,t){var n=w()(e);if(r()){var i=r()(e);t&&(i=l()(i).call(i,(function(t){return d()(e,t).enumerable}))),n.push.apply(n,i)}return n}function I(e){for(var t=1;t{"use strict";n.d(t,{Bb:()=>Cn,Mw:()=>Yn,Om:()=>i,I0:()=>N,h$:()=>$e,zm:()=>It,Ft:()=>Ln,DA:()=>$,uC:()=>G,DW:()=>Y,QK:()=>S,dB:()=>Ut,sg:()=>Qt,nO:()=>ni,Te:()=>Qn,Qx:()=>ei,KW:()=>Jn,ND:()=>Xn,mK:()=>x,R8:()=>Me,Xw:()=>dt,v3:()=>ot,sO:()=>Mn,OV:()=>et,eh:()=>Sn,Fm:()=>w,U5:()=>Be,L5:()=>V,ZP:()=>Ce,N0:()=>Te,Tj:()=>l,f5:()=>o,eb:()=>ii,Yk:()=>st,Ab:()=>pn}),n.p,n.p,n.p,n.p,n.p,n.p;const i=Object.freeze({XSmall:"XSmall",Small:"Small",Medium:"Medium",Large:"Large",XLarge:"XLarge"}),o=Object.freeze({[i.XSmall]:480,[i.Small]:768,[i.Medium]:1024,[i.Large]:1280,[i.XLarge]:1440}),a=Object.freeze({[i.XSmall]:`@media screen and (max-width: ${o[i.XSmall]}px)`,[i.Small]:`@media screen and (max-width: ${o[i.Small]}px)`,[i.Medium]:`@media screen and (max-width: ${o[i.Medium]}px)`,[i.Large]:`@media screen and (max-width: ${o[i.Large]}px)`,[i.XLarge]:`@media screen and (max-width: ${o[i.XLarge]}px)`}),r="object"==typeof document?document:void 0,s=Object.freeze({modal:9999,toast:1e4}),l={positive:"var(--tux-colorPositive)",negative:"var(--tux-colorNegative)",toastDefault:"var(--tux-colorToastDefault)",toastNegative:"var(--tux-colorToastNegative)",secondary:"var(--tux-colorSecondary)",secondary2:"var(--tux-colorSecondary2)",positive2:"var(--tux-colorPositive2)",constTextInverse:"var(--tux-colorConstTextInverse)",constTextInverse2:"var(--tux-colorConstTextInverse2)",constTextInverse3:"var(--tux-colorConstTextInverse3)",constTextInverse4:"var(--tux-colorConstTextInverse4)",constTextInverse5:"var(--tux-colorConstTextInverse5)",constTextPrimary:"var(--tux-colorConstTextPrimary)",constBGInverse:"var(--tux-colorConstBGInverse)",constBGInverse2:"var(--tux-colorConstBGInverse2)",constBGInverse3:"var(--tux-colorConstBGInverse3)",constBGInverse4:"var(--tux-colorConstBGInverse4)",BGCreation:"var(--tux-colorBGCreation)",BGCreation2:"var(--tux-colorBGCreation2)",BGCreation5:"var(--tux-colorBGCreation5)",constBGMat:"var(--tux-colorConstBGMat)",constBGContainer:"var(--tux-colorConstBGContainer)",constBGContainer2:"var(--tux-colorConstBGContainer2)",constBGContainer3:"var(--tux-colorConstBGContainer3)",constBGPlaceholderOpaque:"var(--tux-colorConstBGPlaceholderOpaque)",constBGInverseOpaque:"var(--tux-colorConstBGInverseOpaque)",constBGInverse1:"var(--tux-colorConstBGInverse1)",constLineInverse:"var(--tux-colorConstLineInverse)",constLineInverse2:"var(--tux-colorConstLineInverse2)",SDPrimary:"var(--tux-colorSDPrimary)",gradientLive:"var(--tux-gradientLive)",gradientVideoCoverOverlay:"var(--tux-gradientVideoCoverOverlay)",colorAssistColorYellow:"var(--tux-colorAssistColorYellow)",primary:"var(--tux-colorPrimary)",primaryTint4:"var(--tux-colorPrimary-tint-4)",primaryTint8:"var(--tux-colorPrimary-tint-8)",primaryTint12:"var(--tux-colorPrimary-tint-12)",primaryOpacity0:"var(--tux-colorPrimary-opacity-0)",primaryOpacity4:"var(--tux-colorPrimary-opacity-4)",primaryOpacity8:"var(--tux-colorPrimary-opacity-8)",primaryOpacity12:"var(--tux-colorPrimary-opacity-12)",link:"var(--tux-colorLink)",primary2:"var(--tux-colorPrimary2)",textPrimary:"var(--tux-colorTextPrimary)",textSecondary:"var(--tux-colorTextSecondary)",textTertiary:"var(--tux-colorTextTertiary)",textQuaternary:"var(--tux-colorTextQuaternary)",BGPrimary:"var(--tux-colorBGPrimary)",BGSecondary:"var(--tux-colorBGSecondary)",BGSecondaryTint4:"var(--tux-colorBGSecondary-tint-4)",BGSecondaryTint8:"var(--tux-colorBGSecondary-tint-8)",BGSecondaryTint12:"var(--tux-colorBGSecondary-tint-12)",BGSecondaryOpacity0:"var(--tux-colorBGSecondary-opacity-0)",BGSecondaryOpacity4:"var(--tux-colorBGSecondary-opacity-4)",BGSecondaryOpacity8:"var(--tux-colorBGSecondary-opacity-8)",BGSecondaryOpacity12:"var(--tux-colorBGSecondary-opacity-12)",BGTertiary:"var(--tux-colorBGTertiary)",BGQuaternary:"var(--tux-colorBGQuaternary)",BGQuinary:"var(--tux-colorBGQuinary)",BGSecondary2:"var(--tux-colorBGSecondary2)",BGTertiary2:"var(--tux-colorBGTertiary2)",BGPlaceholderDefault:"var(--tux-colorBGPlaceholderDefault)",BGPlaceholderOpaque:"var(--tux-colorBGPlaceholderOpaque)",BGInput:"var(--tux-colorBGInput)",BGInput2:"var(--tux-colorBGInput2)",BGView:"var(--tux-colorBGView)",BGCreation3:"var(--tux-colorBGCreation3)",BGCreation4:"var(--tux-colorBGCreation4)",BGHover:"var(--tux-colorBGHover)",BGBrand:"var(--tux-colorBGBrand)",linePrimary:"var(--tux-colorLinePrimary)",lineSecondary:"var(--tux-colorLineSecondary)",lineInput:"var(--tux-colorLineInput)",linePrimary2:"var(--tux-colorLinePrimary2)",lineSecondary2:"var(--tux-colorLineSecondary2)",lineSecondary3:"var(--tux-colorLineSecondary3)",lineDarker:"var(--tux-colorLineDarker)",SDSecondary:"var(--tux-colorSDSecondary)",SDTertiary:"var(--tux-colorSDTertiary)"};var c=n(40099);const d=e=>Object.fromEntries(Object.entries(e).filter((([e,t])=>void 0!==t)));var u=n(62186);const p="tux";function v(e,...t){return`var(--${p}-${e}${t.join("")})`}function g(e){return v("color",e)}function m(e){return v("fontSize",e)}function h(e){return v("fontWeight",e)}function _(e){return v("fontFamily",e)}function f(e){return v("boxShadow",e)}const y=(0,u.default)("span",{target:"eblccp10"})((({nowrap:e,truncate:t,block:n,inline:i,italic:o,underline:r,strikethrough:s,size:l,weight:c,align:d,lineHeight:u,_fontFamily:p,_color:v})=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({boxSizing:"border-box",marginBlockStart:"0",marginBlockEnd:"0"},l&&{fontSize:m(l)}),"H1"===l&&{fontSize:m(l),[a.Medium]:{fontSize:m("H3")}}),"H2"===l&&{fontSize:m(l),[a.Medium]:{fontSize:m("H4")}}),"H3"===l&&{fontSize:m(l),[a.Medium]:{fontSize:m("H5")}}),"H4"===l&&{fontSize:m(l),[a.Medium]:{fontSize:m("H5")}}),"H5"===l&&{fontSize:m(l),[a.Medium]:{fontSize:m("H6")}}),u&&{lineHeight:u}),p&&{fontFamily:_(p)}),c&&{fontWeight:h(c)}),v&&{color:g(v)}),e&&{whiteSpace:"nowrap",overflow:"hidden"}),t&&{textOverflow:"ellipsis"}),i&&!n&&{display:"inline"}),n&&!i&&{display:"block"}),n&&i&&{display:"inline-block"}),!0===o&&{fontStyle:"italic"}),!1===o&&{fontStyle:"normal"}),r&&{textDecoration:"underline"}),s&&{textDecoration:"line-through"}),r&&s&&{textDecoration:"line-through underline"}),d&&{textAlign:d})),"label:TextContainer;"),b=(0,u.default)(y,{target:"eblccp12"})((({size:e})=>Object.assign({},e&&{marginBlockStart:m(e),marginBlockEnd:m(e)})),"label:ParagraphContainer;");const w=e=>{var{nowrap:t,truncate:n,block:i,inline:o,italic:a,underline:r,strikethrough:s,type:l,align:u,color:p,lineHeight:v,as:g,marginInline:m,marginInlineStart:h,marginInlineEnd:_,marginBlock:f,marginBlockStart:b,marginBlockEnd:w,alignSelf:x,flex:T,deprecatedStyle:S,deprecatedClassName:k,children:A}=e,O=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{const[k,A]=s.split("-"),O=d({marginInline:g,marginInlineStart:m,marginInlineEnd:h,marginBlock:_,marginBlockStart:f,marginBlockEnd:y,alignSelf:w,flex:x});return c.createElement(b,{as:"p",nowrap:e,truncate:t,block:n,inline:i,italic:o,underline:a,strikethrough:r,size:k,weight:A,align:l,lineHeight:null!=p?p:1.5,_fontFamily:"Paragraph",_color:u,className:T,style:Object.assign(Object.assign({},S),O)},v)};const T=(0,u.default)("a",{target:"e1rlcyt00"})((({textColor:e,type:t,isDisabled:n})=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({textDecoration:"none"},e&&{color:g(e)}),t&&{fontSize:m(t),fontFamily:_("Paragraph"),fontWeight:h("Semibold"),lineHeight:1.5}),"H7"===t&&{fontFamily:_("Heading"),fontWeight:h("Bold"),lineHeight:1.2}),{":hover, :focus-visible":{textDecoration:n?"none":"underline"}}),n&&Object.assign({color:g("TextQuaternary"),cursor:"not-allowed"},"ConstTextInverse"===e&&{color:g("ConstTextInverse4")}))),"label:Link;"),S=e=>{var{label:t,color:n,disabled:i,onClick:o,marginInline:a,marginInlineStart:r,marginInlineEnd:s,marginBlock:l,marginBlockStart:u,marginBlockEnd:p,alignSelf:v,flex:g,deprecatedClassName:m,deprecatedStyle:h}=e,_=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{i?e.preventDefault():null==o||o(e)},className:m,style:Object.assign(Object.assign({},h),f)},_),t)};var k=n(75431);const A=e=>{var t=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);oObject.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({boxSizing:"border-box",appearance:"none",minWidth:"96px",display:"inline-flex",justifyContent:"center",alignItems:"center",position:"relative",borderStyle:"solid",borderWidth:"1px",borderRadius:"2px",fontFamily:_("Paragraph"),fontWeight:h("Semibold"),textDecoration:"none",cursor:"pointer",backgroundClip:"padding-box"},i&&{display:"flex",width:"100%"}),"small"===t&&{fontSize:m("P4"),height:"28px",paddingInline:"11px"}),"medium"===t&&{fontSize:m("P3"),height:"36px",paddingInline:"15px"}),"large"===t&&{fontSize:m("P3"),height:"48px",paddingInline:"23px"}),"primary"===e&&{color:g("ConstTextInverse"),backgroundColor:g("Primary"),borderColor:g("Primary"),':hover:not(:disabled):not([aria-disabled="true"])':{backgroundColor:g("Primary-tint-8"),borderColor:g("Primary-tint-8")},':active:not(:disabled):not([aria-disabled="true"])':{backgroundColor:g("Primary-tint-12"),borderColor:g("Primary-tint-12")},':disabled, &[aria-disabled="true"]':Object.assign({cursor:"not-allowed"},!n&&{color:g("TextQuaternary"),backgroundColor:g("BGSecondary-tint-8"),borderColor:g("BGSecondary-tint-8")})}),"secondary"===e&&{color:g("TextPrimary"),backgroundColor:g("BGSecondary"),borderColor:g("LineSecondary"),':hover:not(:disabled):not([aria-disabled="true"])':{backgroundColor:g("BGSecondary-tint-4"),borderColor:g("LinePrimary")},':active:not(:disabled):not([aria-disabled="true"])':{backgroundColor:g("BGSecondary-tint-8"),borderColor:g("LinePrimary")},':disabled, &[aria-disabled="true"]':Object.assign({cursor:"not-allowed"},!n&&{color:g("TextQuaternary")})}),"tertiary"===e&&{color:g("Primary"),backgroundColor:g("Primary-opacity-0"),borderColor:g("Primary"),':hover:not(:disabled):not([aria-disabled="true"])':{backgroundColor:g("Primary-opacity-8")},':active:not(:disabled):not([aria-disabled="true"])':{backgroundColor:g("Primary-opacity-12")},':disabled, &[aria-disabled="true"]':Object.assign({cursor:"not-allowed"},!n&&{color:g("TextQuaternary"),borderColor:g("LineSecondary")})}),"const"===e&&{color:g("ConstTextInverse"),backgroundColor:g("ConstBGContainer"),borderColor:g("ConstBGContainer"),':hover:not(:disabled):not([aria-disabled="true"])':{color:g("ConstTextInverse3"),backgroundColor:g("ConstBGContainer2"),borderColor:g("ConstBGContainer2")},':active:not(:disabled):not([aria-disabled="true"])':{color:g("ConstTextInverse3"),backgroundColor:g("ConstBGContainer3"),borderColor:g("ConstBGContainer3")},':disabled, &[aria-disabled="true"]':Object.assign({cursor:"not-allowed"},!n&&{color:g("ConstTextInverse4"),backgroundColor:g("ConstBGContainer2"),borderColor:g("ConstBGContainer2")})}),P=(0,u.default)("button",{target:"e1v8cfre0"})(E,"label:Button;"),I=(0,u.default)("a",{target:"e1v8cfre1"})(E,"label:ButtonAsLink;"),C=(0,u.default)("div",{target:"e1v8cfre2"})((({buttonSize:e,visible:t})=>Object.assign(Object.assign(Object.assign({boxSizing:"border-box",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",opacity:t?1:0,overflow:"hidden",svg:{height:"1em",width:"1em",color:"inherit",flexShrink:0}},"small"===e&&{gap:"4px"}),"medium"===e&&{gap:"6px"}),"large"===e&&{gap:"6px"})),"label:ButtonContent;"),j=(0,u.default)("div",{target:"e1v8cfre3"})({boxSizing:"border-box",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},"label:ButtonLabel;"),L=(0,k.i7)({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}),M=(0,u.default)(A,{target:"e1v8cfre4"})({boxSizing:"border-box",color:"inherit",position:"absolute",height:"16px",width:"16px",animation:`${L} 1s linear infinite`},"label:LoadingIcon;"),N=(0,c.forwardRef)(((e,t)=>{var{as:n="button",variant:i="secondary",size:o="medium",label:a,icon:r,loading:s,disabled:l,marginInline:u,marginInlineStart:p,marginInlineEnd:v,marginBlock:g,marginBlockStart:m,marginBlockEnd:h,alignSelf:_,flex:f,deprecatedClassName:y,deprecatedStyle:b}=e,w=O(e,["as","variant","size","label","icon","loading","disabled","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd","alignSelf","flex","deprecatedClassName","deprecatedStyle"]);y&&console.warn('The \'deprecatedClassName\' prop is deprecated. Please use the associated style props instead (e.g. "marginInline", "flex")'),b&&console.warn('The \'deprecatedStyle\' prop is deprecated. Please use the associated style props instead (e.g. "marginInline", "flex")');const x=d({marginInline:u,marginInlineStart:p,marginInlineEnd:v,marginBlock:g,marginBlockStart:m,marginBlockEnd:h,alignSelf:_,flex:f}),T=s||l,S=c.createElement(c.Fragment,null,c.createElement(C,{buttonSize:o,visible:!s},r||null,a?c.createElement(j,null,a):null),s?c.createElement(M,null):null);if("a"===n){const{href:e}=w,n=O(w,["href"]);return c.createElement(I,Object.assign({ref:t,variant:i,size:o,isLoading:s,"aria-disabled":T,href:T?void 0:e,style:Object.assign(Object.assign({},b),x),className:y},n),S)}return c.createElement(P,Object.assign({ref:t,variant:i,size:o,isLoading:s,disabled:T,style:Object.assign(Object.assign({},b),x),className:y},w),S)}));N.displayName="TUXButton";var D=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);oObject.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({boxSizing:"border-box",appearance:"none",height:"1.5em",display:"inline-flex",justifyContent:"center",alignItems:"center",padding:0,fontFamily:_("Paragraph"),fontWeight:h("Semibold"),border:"none",backgroundColor:"transparent",textDecoration:"none",cursor:"pointer",svg:{height:"1em",width:"1em",flexShrink:0}},n&&{display:"flex",width:"100%"}),"P2"===t&&{gap:"4px",fontSize:m("P2")}),"P3"===t&&{gap:"4px",fontSize:m("P3")}),"P4"===t&&{gap:"2px",fontSize:m("P4")}),"P5"===t&&{gap:"2px",fontSize:m("P5")}),"primary"===e&&{color:g("TextPrimary"),':disabled, &[aria-disabled="true"]':{cursor:"not-allowed",color:g("TextQuaternary")}}),"secondary"===e&&{color:g("TextSecondary"),':hover:not(:disabled):not([aria-disabled="true"])':{color:g("TextPrimary")},':disabled, &[aria-disabled="true"]':{cursor:"not-allowed",color:g("TextQuaternary")}}),"tertiary"===e&&{color:g("TextTertiary"),':hover:not(:disabled):not([aria-disabled="true"])':{color:g("TextSecondary")},':disabled, &[aria-disabled="true"]':{cursor:"not-allowed",color:g("TextQuaternary")}}),"brand"===e&&{color:g("Primary"),':hover:not(:disabled):not([aria-disabled="true"])':{color:"#EA284E"},':disabled, &[aria-disabled="true"]':{cursor:"not-allowed",color:g("TextQuaternary")}}),B=(0,u.default)("button",{target:"e18zrus10"})(R,"label:Button;"),U=(0,u.default)("a",{target:"e18zrus11"})(R,"label:ButtonAsLink;"),F=(0,u.default)("div",{target:"e18zrus12"})({whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},"label:ButtonLabel;"),V=(0,c.forwardRef)(((e,t)=>{var{as:n="button",variant:i="secondary",size:o="P3",label:a,icon:r,iconPosition:s="before",disabled:l,marginInline:u,marginInlineStart:p,marginInlineEnd:v,marginBlock:g,marginBlockStart:m,marginBlockEnd:h,alignSelf:_}=e,f=D(e,["as","variant","size","label","icon","iconPosition","disabled","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd","alignSelf"]);const y=d({marginInline:u,marginInlineStart:p,marginInlineEnd:v,marginBlock:g,marginBlockStart:m,marginBlockEnd:h,alignSelf:_}),b=c.createElement(c.Fragment,null,r&&"before"===s?r:null,c.createElement(F,null,a),r&&"after"===s?r:null);if("a"===n){const{href:e}=f,n=D(f,["href"]);return c.createElement(U,Object.assign({ref:t,variant:i,size:o,"aria-disabled":l,href:l?void 0:e,style:y},n),b)}return c.createElement(B,Object.assign({ref:t,variant:i,size:o,disabled:l,style:y},f),b)}));V.displayName="TUXTextButton";var z=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);oObject.assign(Object.assign({boxSizing:"border-box",appearance:"none",padding:0,border:"none",borderRadius:"50%",display:"inline-flex",justifyContent:"center",alignItems:"center",color:g("TextPrimary"),backgroundColor:g("BGInput"),textDecoration:"none",cursor:"pointer",':hover:not(:disabled):not([aria-disabled="true"])':{backgroundColor:"rgba(22, 24, 35, 0.1)"},':active:not(:disabled):not([aria-disabled="true"])':{backgroundColor:"rgba(22, 24, 35, 0.14)"},':disabled, &[aria-disabled="true"]':{cursor:"not-allowed",opacity:.5}},"small"===e&&{height:"36px",width:"36px",svg:{height:"18px",width:"18px"}}),"large"===e&&{height:"48px",width:"48px",svg:{height:"24px",width:"24px"}}),q=(0,u.default)("button",{target:"e52cqrc0"})(H,"label:Button;"),W=(0,u.default)("a",{target:"e52cqrc1"})(H,"label:ButtonAsLink;"),$=(0,c.forwardRef)(((e,t)=>{var{as:n="button",size:i="small",icon:o,disabled:a,marginInline:r,marginInlineStart:s,marginInlineEnd:l,marginBlock:u,marginBlockStart:p,marginBlockEnd:v,alignSelf:g,deprecatedStyle:m,deprecatedClassName:h}=e,_=z(e,["as","size","icon","disabled","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd","alignSelf","deprecatedStyle","deprecatedClassName"]);const f=d({marginInline:r,marginInlineStart:s,marginInlineEnd:l,marginBlock:u,marginBlockStart:p,marginBlockEnd:v,alignSelf:g});if("a"===n){const{href:e}=_,n=z(_,["href"]);return c.createElement(W,Object.assign({ref:t,size:i,"aria-disabled":a,href:a?void 0:e,style:Object.assign(Object.assign({},m),f),className:h},n),o)}return c.createElement(q,Object.assign({ref:t,size:i,disabled:a,style:Object.assign(Object.assign({},m),f),className:h},_),o)}));$.displayName="TUXIconButton";const G=e=>{var{text:t,marginInline:n,marginInlineStart:i,marginInlineEnd:o,marginBlock:a,marginBlockStart:r,marginBlockEnd:s,alignSelf:l,flex:u}=e,p=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{var{text:t,marginInline:n,marginInlineStart:i,marginInlineEnd:o,marginBlock:a,marginBlockStart:r,marginBlockEnd:s,alignSelf:l,flex:u}=e,p=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{const{idRef:e}=(0,c.useContext)(Z),[t]=(0,c.useState)((()=>{if(e){const t=e.current++;return String(t)}return""}));return`tux-${t}`},Q=()=>{const[e]=(0,c.useState)((()=>(K++).toString()));return`tux-${e}`},J=e=>{const{idRef:t}=(0,c.useContext)(Z);let n=Q;t&&(n=X);const i=n();return null!=e?e:i};var ee=n(74731),te=n(41664),ne=n(23067),ie=n(17784);const oe=()=>{var e;return"undefined"!=typeof window&&Boolean(null===(e=window.document)||void 0===e?void 0:e.createElement)},ae=oe()?c.useLayoutEffect:c.useEffect,re=()=>{const e=(0,c.useRef)(null),t=(0,c.useCallback)((()=>{e.current&&("timeout"===e.current.type?clearTimeout(e.current.id):cancelAnimationFrame(e.current.id),e.current=null)}),[]),n=(0,c.useCallback)(((n,i)=>{t(),e.current=null!==i?{type:"timeout",id:setTimeout(n,i)}:{type:"animationFrame",id:requestAnimationFrame(n)}}),[t]);return(0,c.useEffect)((()=>t),[t]),[n,t]};function se(e){return void 0===e}function le(e){return e.replace(/([!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~])/g,"\\$1")}Object.prototype.toString;const ce=e=>{if(!c.isValidElement(e))throw new Error("Component's child must be a single element");return e.type===c.Fragment?ce(e.props.children):e};var de=n(18499);const ue=e=>{const t=(e=>{const{id:t="tux-portal-container",children:n,mountNode:i,zIndex:o=9999}=e,a=J(t),s=(0,c.useMemo)((()=>{if(void 0===r||i)return;const e=r.querySelector(`#${le(a)}`);if(e)return e;const t=r.createElement("div");return t.setAttribute("id",a),t.style.position="absolute",t.style.zIndex=o.toString(),t.style.height="0",t.style.width="0",t.style.top="0",t.style.left="0",r.body.appendChild(t),t}),[r,i,a,o]);return{children:n,mountNode:null!=i?i:s,shouldRender:oe()}})(e);return(e=>c.createElement(c.Fragment,null,e.shouldRender&&e.mountNode&&de.createPortal(e.children,e.mountNode)))(t)};ue.displayName="TUXPortal";var pe=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{var{width:t=36,height:n=9}=e,i=pe(e,["width","height"]);return c.createElement("svg",Object.assign({width:t,height:n},i,{viewBox:"0 0 24 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),c.createElement("path",{d:"M30 8L24 8C31 8 28 7.99999 30 8Z",fill:"currentColor"}),c.createElement("path",{d:"M30 8L24 8L0 8C7 8 10 -2.86102e-06 12 -2.86102e-06C14 -2.86102e-06 17 8 24 8C31 8 28 7.99999 30 8Z",fill:"currentColor"}))},ge=e=>{var{width:t=9,height:n=27}=e,i=pe(e,["width","height"]);return c.createElement("svg",Object.assign({width:t,height:n},i,{viewBox:"0 0 8 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),c.createElement("path",{d:"M0 -0.000118256L0 23.9997C1.12143e-06 16.9997 8 13.9999 8 11.9999C8 9.99988 8.94079e-07 6.99988 0 -0.000118256Z",fill:"currentColor"}))},me=e=>{var{width:t=21,height:n=6}=e,i=pe(e,["width","height"]);return c.createElement("svg",Object.assign({width:t,height:n},i,{viewBox:"0 0 14 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),c.createElement("path",{d:"M14 4C9.91667 4 8.16667 0 7 0C5.83333 0 4.08333 4 0 4L14 4Z",fill:"currentColor"}))},he=e=>{var{width:t=6,height:n=21}=e,i=pe(e,["width","height"]);return c.createElement("svg",Object.assign({width:t,height:n},i,{viewBox:"0 0 4 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),c.createElement("path",{d:"M0 14C4.95735e-07 9.91667 4 8.16667 4 7C4 5.83333 -3.33131e-06 4.08333 1.66948e-07 -9.53674e-07L0 14Z",fill:"currentColor"}))},_e=(0,u.default)("div",{target:"e1l8d53t0"})({boxSizing:"border-box",background:"transparent"},"label:PopperWrapper;"),fe=(0,u.default)("div",{target:"e1l8d53t1"})((({size:e,isHidden:t,_color:n,background:i,transitionState:o,position:a,maxWidth:r,minWidth:s})=>{const l="top"===a||"bottom"===a?0:2,c=l+6;let d="translate(0, 0)",u=0;switch(a){case"top":d=`translate(0, -${l}px)`,"entering"!==o&&"entered"!==o||(d=`translate(0, -${c}px)`,u=1);break;case"bottom":d=`translate(0, ${l}px)`,"entering"!==o&&"entered"!==o||(d=`translate(0, ${c}px)`,u=1);break;case"left":d=`translate(-${l}px, 0)`,"entering"!==o&&"entered"!==o||(d=`translate(-${c}px, 0)`,u=1);break;case"right":d=`translate(${l}px, 0)`,"entering"!==o&&"entered"!==o||(d=`translate(${c}px, 0)`,u=1)}return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({boxSizing:"border-box",display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"flex-start",maxWidth:`${r}px`,minWidth:`${s}px`,width:"max-content",transitionProperty:"transform, opacity",transitionDuration:"200ms",transitionTimingFunction:"cubic-bezier(0.65, 0, 0.35, 1)",transform:d,opacity:u,boxShadow:f("Notice")},n&&{color:g(n)}),i&&{backgroundColor:g(i)}),"small"===e&&{padding:"6px 8px",minHeight:"30px",borderRadius:"6px"}),"medium"===e&&{padding:"12px",minHeight:"40px",borderRadius:"8px"}),"large"===e&&{padding:"16px",minHeight:"40px",borderRadius:"8px"})}),"label:Container;"),ye=(0,u.default)("div",{target:"e1l8d53t2"})((({position:e,background:t,size:n})=>{const i="small"===n?"6px":"9px",o="small"===n?"30px":"40px";return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({boxSizing:"border-box",border:"none",width:o,height:i,display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible","& > svg":Object.assign(Object.assign(Object.assign(Object.assign({display:"block"},"top"===e&&{transform:"rotate(180deg)"}),"right"===e&&{transform:"rotate(180deg)"}),"bottom"===e&&{}),"left"===e&&{})},t&&{color:g(t)}),"top"===e&&{bottom:`-${i}`,width:o,height:i}),"right"===e&&{left:`-${i}`,width:i,height:o}),"bottom"===e&&{top:`-${i}`,width:o,height:i}),"left"===e&&{right:`-${i}`,width:i,height:o})}),"label:ArrowWrapper;"),be={Top:"top",TL:"top-start",TR:"top-end",Bottom:"bottom",BL:"bottom-start",BR:"bottom-end",Left:"left",LT:"left-start",LB:"left-end",Right:"right",RT:"right-start",RB:"right-end"},we=c.forwardRef((({id:e,background:t="Secondary2",visible:n,onVisibleChange:i,showDelayMS:o=80,hideDelayMS:a=80,disabled:s=!1,disableAutoHide:l=!1,content:d,offset:u,position:p="Top",size:v="small",maxWidth:g=420,minWidth:m=60,onEnterTrigger:h,onLeaveTrigger:_,children:f,className:y,style:b},w)=>{const[x,T]=(0,c.useState)(null),[S,k]=(0,c.useState)(null),A=(0,c.useRef)(null),[O,E]=re(),[P,I]=re(),C=!se(n),[j,L]=(0,c.useState)(!1),[M,N]=(0,c.useState)(!1),D=J(e),R=(0,c.useRef)(null),B=c.useCallback(((e,t)=>{s||(E(),I(),e?(L((n=>(e!==n&&(null==i||i({visible:e},t)),e))),P((()=>{var e;N(!0),null===(e=R.current)||void 0===e||e.call(R)}),0)):(N(!1),P((()=>{L((n=>(e!==n&&(null==i||i({visible:e},t)),e)))}),200)))}),[E,L,i,s]);(0,c.useImperativeHandle)(w,(()=>({setVisible:e=>{C||B(e)}})),[B]),(0,c.useEffect)((()=>{C&&B(Boolean(n))}),[n]);let U=0;switch(v){case"small":U=5;break;case"medium":case"large":U=8}const F=null!=u?u:[0,U],{styles:V,state:z,forceUpdate:H}=(0,ne.E)(A.current,x,{placement:be[p],modifiers:[{name:"arrow",options:{element:S}},{name:"offset",options:{offset:F}},{name:"preventOverflow",options:{mainAxis:!1}},{name:"computeStyles",options:{adaptive:!1}}],strategy:"absolute"});R.current=H;const q=(0,c.useMemo)((()=>null==z?void 0:z.placement.split("-")[0]),[null==z?void 0:z.placement]),W=(()=>{switch(!0){case"top"===q&&"small"===v:case"bottom"===q&&"small"===v:return c.createElement(me,null);case"top"===q&&"medium"===v:case"bottom"===q&&"medium"===v:case"top"===q&&"large"===v:case"bottom"===q&&"large"===v:return c.createElement(ve,null);case"right"===q&&"small"===v:case"left"===q&&"small"===v:return c.createElement(he,null);case"right"===q&&"medium"===v:case"left"===q&&"medium"===v:case"right"===q&&"large"===v:case"left"===q&&"large"===v:return c.createElement(ge,null);default:return null}})(),$=(0,c.useCallback)((e=>{var t;let n=o;"focus"===e.type&&(n=0),O((()=>{C||B(!0,e)}),n),null===(t=e.persist)||void 0===t||t.call(e)}),[O,B,o,j,C]);h&&(h.current=$);const G=(0,c.useCallback)((e=>{var t;let n=a;"blur"===e.type&&(n=0),O((()=>{C||l||B(!1,e)}),n),null===(t=e.persist)||void 0===t||t.call(e)}),[O,B,a,C]);let Y;if(_&&(_.current=G),ae((()=>{if(j){const e=e=>{"Escape"!==e.key&&"Esc"!==e.key||C||B(!1)};return null==r||r.addEventListener("keydown",e),()=>{null==r||r.removeEventListener("keydown",e)}}}),[r,j,B,C]),f){const e=ce(f),t={"aria-labelledby":D,onMouseEnter:$,onMouseLeave:G,onFocus:$,onBlur:G,"data-tux-tooltip":D};Y=(0,c.cloneElement)(e,t)}return ae((()=>{var e;A.current=null==r?void 0:r.querySelector(`[data-tux-tooltip=${le(D)}]`),null===(e=R.current)||void 0===e||e.call(R)}),[D,r,f]),c.createElement(c.Fragment,null,f&&Y,j&&c.createElement(ue,null,c.createElement(_e,{ref:T,style:V.popper},c.createElement(ie.Ay,{in:M,timeout:200},(e=>c.createElement(fe,{id:D,size:v,maxWidth:g,minWidth:m,background:t,transitionState:e,position:q,onMouseEnter:$,onMouseLeave:G,className:y,style:b,role:"tooltip"},c.createElement(ye,{ref:k,style:V.arrow,position:q,background:t,size:v},W),d))))))})),xe=(0,u.default)(w,{target:"e1csn40i0"})({margin:"auto",minHeight:"20px"},"label:Content;"),Te=({id:e,background:t="Secondary2",visible:n,onVisibleChange:i,disabled:o=!1,content:a,position:r="Top",type:s="Tiny",maxWidth:l=420,onEnterTrigger:d,onLeaveTrigger:u,children:p})=>{const v="Tiny"===s?"small":"medium",g="BGPrimary"===t?"TextPrimary":"ConstTextInverse";return c.createElement(we,{id:e,background:t,visible:n,onVisibleChange:i,disabled:o,content:c.createElement(xe,{type:"P3-Semibold",color:g},a),position:r,size:v,maxWidth:l,minWidth:60,onEnterTrigger:d,onLeaveTrigger:u},p)};n.p;const Se=e=>{var{as:t="label",text:n,required:i,tooltipText:o,hidden:a,marginInline:r,marginInlineStart:s,marginInlineEnd:u,marginBlock:p,marginBlockStart:v,marginBlockEnd:g,alignSelf:m,flex:h}=e,_=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{var{text:t,marginInline:n,marginInlineStart:i,marginInlineEnd:o,marginBlock:a,marginBlockStart:r,marginBlockEnd:s,alignSelf:u,flex:p}=e,v=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);oObject.assign({boxSizing:"border-box",width:"240px"},e&&{width:"100%"})),"label:Container;"),Ee=(0,u.default)("div",{target:"eyio37s1"})((({hasDescription:e})=>Object.assign({boxSizing:"border-box",position:"relative",marginBlockStart:"6px",display:"flex",alignItems:"center"},e&&{marginBlockStart:"4px"})),"label:InputContainer;"),Pe=(0,u.default)("input",{target:"eyio37s2"})((({_size:e,hasIcon:t,hasError:n})=>Object.assign(Object.assign(Object.assign(Object.assign({boxSizing:"border-box",width:"100%",paddingInline:"12px",fontFamily:_("Paragraph"),fontSize:m("P3"),fontWeight:h("Regular"),color:g("TextPrimary"),backgroundColor:g("BGPrimary"),border:`1px solid ${g("LineSecondary")}`,borderRadius:"2px",outline:"none",":focus-visible":{borderColor:g("LineInput")},":disabled":{color:g("TextQuaternary"),backgroundColor:g("BGInput"),cursor:"not-allowed"},"::placeholder":{color:g("TextQuaternary")}},"small"===e&&{height:"36px"}),"large"===e&&{height:"48px"}),n&&{borderColor:g("Negative")}),t&&{paddingInlineEnd:"44px"})),"label:Input;"),Ie=(0,u.default)("div",{target:"eyio37s3"})((({inputDisabled:e,isInteractive:t})=>Object.assign({boxSizing:"border-box",cursor:"pointer",position:"absolute",display:"flex",alignItems:"center",':not([dir="rtl"] &)':{right:"12px"},'[dir="rtl"] &':{left:"12px"},"& > *":Object.assign({color:g("TextSecondary"),height:"20px",width:"20px"},e&&{color:g("TextQuaternary")}),"&:hover > *":{color:g("TextPrimary")}},!t&&{pointerEvents:"none"})),"label:IconContainer;"),Ce=(0,c.forwardRef)(((e,t)=>{var{label:n,required:i,hideLabel:o,tooltipText:a,description:r,errorText:s,hintText:l,icon:u,size:p="large",value:v,onChange:g,disabled:m,maxLength:h,onIconClick:_,block:f,type:y="text",marginInline:b,marginInlineStart:x,marginInlineEnd:T,marginBlock:S,marginBlockStart:k,marginBlockEnd:A,alignSelf:O,flex:E,deprecatedClassName:P,deprecatedStyle:I}=e,C=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{B.forEach((t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)}))}),id:M,"aria-required":i,"aria-invalid":Boolean(s),"aria-describedby":s?D:r?N:void 0,type:y,value:v,onChange:e=>{e.persist(),g(e)},disabled:m,maxLength:h,_size:p,hasIcon:Boolean(u),hasError:Boolean(s)},C)),u?c.createElement(Ie,{inputDisabled:m,isInteractive:Boolean(_),onClick:()=>{_&&R.current&&(_(),R.current.focus())}},c.createElement(u,null)):null),h?c.createElement(w,{block:!0,type:"P5-Regular",marginBlockStart:"4px",color:v.length{var t=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);oi((e=>!e))},t))};const Ne=(0,u.default)("div",{target:"eugif8h0"})((({block:e})=>Object.assign({boxSizing:"border-box",width:"352px"},e&&{width:"100%"})),"label:Container;"),De=(0,u.default)("div",{target:"eugif8h1"})((({_disabled:e,hasError:t,hasMaxLength:n,hasDescription:i,isLabelHidden:o})=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({boxSizing:"border-box",width:"100%",marginBlockStart:"6px",paddingBlock:"12px",paddingInline:"12px",backgroundColor:g("BGPrimary"),border:`1px solid ${g("LineSecondary")}`,borderRadius:"2px",":focus-within":{borderColor:g("LineInput")}},i&&{marginBlockStart:"4px"}),o&&{marginBlockStart:"0px"}),e&&{backgroundColor:g("BGInput2"),cursor:"not-allowed"}),t&&{"&, &:focus-within":{borderColor:g("Negative")}}),n&&{paddingBlockEnd:"2px"})),"label:TextAreaContainer;"),Re=(0,u.default)("textarea",{target:"eugif8h2"})({boxSizing:"border-box",width:"100%",fontFamily:_("Paragraph"),fontSize:m("P3"),fontWeight:h("Regular"),color:g("TextPrimary"),resize:"none",outline:"none",border:"none",backgroundColor:"transparent",":disabled":{color:g("TextQuaternary"),backgroundColor:"transparent",cursor:"not-allowed"},"::placeholder":{color:g("TextQuaternary")}},"label:TextArea;"),Be=(0,c.forwardRef)(((e,t)=>{var{label:n,required:i,hideLabel:o,tooltipText:a,description:r,errorText:s,hintText:l,value:u,onChange:p,disabled:v,rows:g=3,maxLength:m,block:h,marginInline:_,marginInlineStart:f,marginInlineEnd:y,marginBlock:b,marginBlockStart:x,marginBlockEnd:T,alignSelf:S,flex:k,deprecatedClassName:A,deprecatedStyle:O}=e,E=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{e.persist(),p(e)},rows:g,maxLength:m,disabled:v},E)),m?c.createElement(w,{block:!0,type:"P5-Regular",color:u.lengthc.createElement("svg",{width:e,height:.25*e,viewBox:"0 0 8 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c.createElement("rect",{x:"0.666748",y:"0.335938",width:"6.66667",height:"1.33333",rx:"0.5",fill:"currentColor"})),Fe=({width:e=10})=>c.createElement("svg",{width:e,height:.8*e,viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c.createElement("path",{d:"M3.88632 5.95189L8.77465 0.915431C8.96697 0.717276 9.28352 0.712552 9.48168 0.904878L9.67738 1.09483C9.87553 1.28715 9.88026 1.6037 9.68793 1.80185L4.34296 7.3088C4.093 7.56633 3.67963 7.56633 3.42967 7.3088L0.948335 4.75227C0.756009 4.55411 0.760734 4.23757 0.958888 4.04524L1.15459 3.85529C1.35275 3.66297 1.66929 3.66769 1.86162 3.86584L3.88632 5.95189Z",fill:"currentColor"})),Ve=(0,u.default)("div",{target:"ex5tlgb0"})({boxSizing:"border-box",display:"flex",flexFlow:"row nowrap",justifyContent:"flex-start",alignItems:"flex-start",minHeight:"24px"},"label:Container;"),ze=(0,u.default)("input",{target:"ex5tlgb1"})({boxSizing:"border-box",appearance:"none",height:"100%",width:"100%",position:"absolute",cursor:"pointer",margin:"0",":disabled":{cursor:"not-allowed"}},"label:Input;"),He=(0,u.default)("div",{target:"ex5tlgb2"})({boxSizing:"border-box",position:"relative",width:"16px",height:"16px",flexShrink:"0",marginBlockStart:"3px"},"label:IndicatorWrapper;"),qe=(0,u.default)("div",{target:"ex5tlgb3"})((({isSelected:e,isDisabled:t})=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({boxSizing:"border-box",position:"relative",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"2px",pointerEvents:"none",color:g("BGPrimary"),"& > svg":{visibility:"hidden"}},!t&&!e&&{border:`1.5px solid ${g("LineSecondary")}`,":hover, [data-tux-checkbox-input]:focus-visible + &, [data-tux-checkbox-input]:hover + &":{border:"1.5px solid rgba(234, 40, 78, 1)"},"[data-tux-checkbox-input]:active + &":{border:"1.5px solid rgba(224, 39, 75, 1)"},"[data-tux-checkbox-label]:active + [data-tux-checkbox-input-wrapper] > &":{border:"1.5px solid rgba(224, 39, 75, 1)"}}),!t&&e&&{border:"none",background:g("Primary"),"& > svg":{visibility:"visible"},"[data-tux-checkbox-input]:focus-visible + &, [data-tux-checkbox-input]:hover + &":{background:"rgba(234, 40, 78, 1)"},"[data-tux-checkbox-input]:active + &":{background:"rgba(224, 39, 75, 1)"},"[data-tux-checkbox-label]:active + [data-tux-checkbox-input-wrapper] > &":{background:"rgba(224, 39, 75, 1)"}}),t&&{cursor:"not-allowed",opacity:.34}),t&&e&&{border:"none",background:g("Primary"),"& > svg":{visibility:"visible"}}),t&&!e&&{border:`1.5px solid ${g("LineSecondary")}`})),"label:Indicator;"),We=(0,u.default)("label",{target:"ex5tlgb4"})((({labelPosition:e})=>Object.assign(Object.assign({boxSizing:"border-box",flexGrow:"1"},"after"===e&&{paddingInlineStart:"12px",paddingInlineEnd:"0px",order:1}),"before"===e&&{paddingInlineStart:"0px",paddingInlineEnd:"12px",order:-1})),"label:CheckboxText;"),$e=({id:e,label:t,onChange:n,checked:i,defaultChecked:o,required:a,disabled:r=!1,labelPosition:s="after",marginInline:l,marginInlineStart:u,marginInlineEnd:p,marginBlock:v,marginBlockStart:g,marginBlockEnd:m,alignSelf:h,flex:_})=>{const f=d({marginInline:l,marginInlineStart:u,marginInlineEnd:p,marginBlock:v,marginBlockStart:g,marginBlockEnd:m,alignSelf:h,flex:_}),[y,b]=((e,t)=>{const n=!se(e),[i,o]=c.useState(t),a=n?e:i,r=c.useRef(a);c.useEffect((()=>{r.current=a}),[a]);const s=c.useCallback((e=>{var t;t=e,r.current="function"==typeof t?e(r.current):e,o(r.current)}),[]);return[a,s]})(i,null!=o&&o),x=(0,c.useRef)(null),T=J(e),S="mixed"===y;(0,c.useEffect)((()=>{x.current&&(x.current.indeterminate=S)}),[S]);const k=t?c.createElement(We,{labelPosition:s,htmlFor:T,"data-tux-checkbox-label":!0},c.createElement(w,{type:"P3-Regular"},t)):null;return c.createElement(Ve,{style:f},k,c.createElement(He,{"data-tux-checkbox-input-wrapper":!0},c.createElement(ze,{id:T,required:a,type:"checkbox",checked:!0===y,disabled:r,ref:x,onChange:e=>{e.stopPropagation();const t=e.target.indeterminate?"mixed":e.target.checked;null==n||n(e),b(t),e.persist()},"data-tux-checkbox-input":!0}),c.createElement(qe,{isSelected:!1!==y,isDisabled:r},S?c.createElement(Ue,{width:12}):c.createElement(Fe,{width:12}))))};const Ge=(0,u.default)("div",{target:"e1frb0i80"})({boxSizing:"border-box",display:"flex"},"label:Container;"),Ye=(0,u.default)("label",{target:"e1frb0i81"})({boxSizing:"border-box",flexGrow:"1",paddingInlineStart:"12px"},"label:Label;"),Ze=(0,u.default)("div",{target:"e1frb0i82"})((({isDisabled:e})=>Object.assign({boxSizing:"border-box",position:"relative",width:"44px",height:"24px",display:"inline-flex",alignItems:"center",overflow:"hidden",borderRadius:"999px"},e&&{opacity:.34})),"label:InputContainer;"),Ke=(0,u.default)("input",{target:"e1frb0i83"})({appearance:"none",boxSizing:"border-box",position:"absolute",display:"flex",height:"100%",width:"100%",alignItems:"center",backgroundColor:g("LineSecondary"),cursor:"pointer",margin:"0",":checked":{backgroundColor:g("Positive")},"&:checked:not(:disabled):focus-visible, &:checked:not(:disabled):hover":{backgroundColor:"#0ACE8F"},"&:not(:checked):not(:disabled):focus-visible, &:not(:checked):not(:disabled):hover":{backgroundColor:g("LinePrimary2")},":disabled":{cursor:"not-allowed"}},"label:Input;"),Xe=(0,u.default)("div",{target:"e1frb0i84"})({boxSizing:"border-box",height:"20px",width:"20px",display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s",borderRadius:"50%",backgroundColor:g("BGPrimary"),boxShadow:"0px 1px 2px rgba(0, 0, 0, 0.25)",pointerEvents:"none",transform:"translateX(2px)",'[dir="rtl"] &':{transform:"translateX(-2px)"},"[data-tux-switch-input]:checked ~ &":{transform:"translateX(22px)"},'[dir="rtl"] [data-tux-switch-input]:checked ~ &':{transform:"translateX(-22px)"}},"label:SwitchHandle;"),Qe=(0,k.i7)({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}),Je=(0,u.default)(A,{target:"e1frb0i85"})({boxSizing:"border-box",width:"14px",height:"14px",color:"#E3E3E3",animation:`${Qe} 1s linear infinite`},"label:LoadingIcon;"),et=e=>{var{id:t,label:n,loading:i,disabled:o,marginInline:a,marginInlineStart:r,marginInlineEnd:s,marginBlock:l,marginBlockStart:u,marginBlockEnd:p,alignSelf:v,flex:g}=e,m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{var t=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{var t=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{var{disabled:t,marginInline:n,marginInlineStart:i,marginInlineEnd:o,marginBlock:a,marginBlockStart:r,marginBlockEnd:s,alignSelf:l,flex:u}=e,p=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{var{id:t,label:n,labelPosition:i="after",marginInline:o,marginInlineStart:a,marginInlineEnd:r,marginBlock:s,marginBlockStart:l,marginBlockEnd:u,alignSelf:p,flex:v,deprecatedClassName:g,deprecatedStyle:m}=e,h=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{var t,n;const i=(0,c.useRef)(null),o=(0,c.useRef)(null),[a,r]=(0,c.useState)(null),[s,l]=(0,c.useState)(null),[d,u]=re(),[p,v]=(0,c.useState)("unmounted"),g=(0,ne.E)(a,s,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,4]}}]}),m="entering"===p||"entered"===p,h=null!==(n=null===(t=g.state)||void 0===t?void 0:t.placement.split("-")[0])&&void 0!==n?n:null,_=()=>{v("exited"),d((()=>{v("entering"),d((()=>{v("entered")}),120)}),50)},f=(0,c.useCallback)((()=>{var e;u(),v("exiting"),null===(e=i.current)||void 0===e||e.focus(),d((()=>v("unmounted")),120)}),[d,u]);return(0,c.useEffect)((()=>{if(m){const e=e=>{var t,n;(null===(t=i.current)||void 0===t?void 0:t.contains(e.target))||(null===(n=o.current)||void 0===n?void 0:n.contains(e.target))||f()};return window.addEventListener("mousedown",e),window.addEventListener("touchstart",e),()=>{window.removeEventListener("mousedown",e),window.removeEventListener("touchstart",e)}}}),[m,f]),{isExpanded:m,open:_,close:f,getAnchorRef:()=>i,anchorProps:{ref:e=>{i.current=e,r(e)},onClick:()=>{m?f():_()}},popoverProps:{ref:e=>{o.current=e,l(e)},position:h,expandState:p,onKeyDown:e=>{m&&"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),f())},popoverStyle:g.styles.popper,focusOnOpen:e}}},lt=(0,u.default)("div",{target:"eyr17s0"})({outline:"none"},"label:MenuContainer;"),ct=(0,u.default)("div",{target:"eyr17s1"})((({position:e,expandState:t})=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({boxSizing:"border-box",border:`1px solid ${g("LineSecondary")}`,borderRadius:"4px",backgroundColor:g("BGSecondary"),boxShadow:f("Notice"),outline:"none",overflow:"hidden",transition:`transform 120ms ${rt}, opacity 120ms ${rt}`,opacity:0},("entering"===t||"entered"===t)&&{opacity:1}),"bottom"===e&&"exiting"===t&&{transform:"translateY(-10px)"}),"bottom"===e&&"exited"===t&&{transform:"translateY(-10px)",transition:"none"}),"top"===e&&"exiting"===t&&{transform:"translateY(10px)"}),"top"===e&&"exited"===t&&{transform:"translateY(10px)",transition:"none"})),"label:Menu;"),dt=c.forwardRef(((e,t)=>{var{expandState:n,position:i,onKeyDown:o,children:a,popoverStyle:r,focusOnOpen:s,deprecatedClassName:l,deprecatedStyle:d}=e,u=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{};const gt="cubic-bezier(0.65,0,0.35,1)",mt=(0,u.default)("div",{target:"e1enfu0v0"})((({expandState:e})=>Object.assign({boxSizing:"border-box",overflow:"hidden"},"entered"===e&&{overflow:"visible"})),"label:MenuContainer;"),ht=(0,u.default)("div",{target:"e1enfu0v1"})((({position:e,expandState:t})=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({boxSizing:"border-box",border:`1px solid ${g("LineSecondary")}`,borderRadius:"4px",backgroundColor:g("BGSecondary"),boxShadow:"entered"===t?f("Notice"):"none",outline:"none",transition:`transform 220ms ${gt}, opacity 220ms ${gt}`,overflow:"hidden",opacity:0},("entering"===t||"entered"===t)&&{opacity:1}),"bottom"===e&&"exiting"===t&&{transform:"translateY(-100%)"}),"bottom"===e&&"exited"===t&&{transform:"translateY(-100%)",transition:"none"}),"top"===e&&"exiting"===t&&{transform:"translateY(100%)"}),"top"===e&&"exited"===t&&{transform:"translateY(100%)",transition:"none"})),"label:Menu;"),_t=e=>{var{setPopoverRef:t,popoverStyle:n,expandState:i,position:o,children:a,open:r,close:s,isExpanded:l,setAnchorRef:d,forceUpdate:u}=e,p=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{var{group:t,children:n}=e,i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);oObject.assign(Object.assign({boxSizing:"border-box",minHeight:"42px",display:"flex",alignItems:"center",paddingBlock:"7px",paddingInline:"11px",cursor:"pointer",fontFamily:_("Paragraph"),fontSize:m("P3"),fontWeight:h("Regular"),color:g("TextPrimary")},e&&{backgroundColor:g("BGView")}),t&&{color:g("TextQuaternary"),cursor:"not-allowed"})),"label:Item;"),Tt=(0,u.default)("div",{target:"e1ctrs061"})({boxSizing:"border-box",display:"flex",marginInlineEnd:"8px","> *":{color:g("TextPrimary"),height:"20px",width:"20px"}},"label:IconContainer;"),St=(0,u.default)("div",{target:"e1ctrs062"})({boxSizing:"border-box",flexGrow:1},"label:Spacer;"),kt=(0,u.default)(wt.A,{target:"e1ctrs063"})({boxSizing:"border-box",marginInlineStart:"4px",flexShrink:0,color:g("TextPrimary")},"label:TickIcon;"),At=(0,u.default)("div",{target:"e1ctrs064"})({boxSizing:"border-box",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},"label:Label;"),Ot=(0,u.default)("span",{target:"e1ctrs065"})((({bold:e})=>Object.assign({boxSizing:"border-box",fontWeight:h("Regular")},e&&{fontWeight:h("Bold")})),"label:Text;"),Et=e=>{var{label:t,icon:n,disabled:i,isSelected:o,isActive:a,searchValue:r,children:s}=e,l=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);oc.createElement(Ot,{key:t,bold:!!r&&e.toLowerCase()!==r.toLowerCase()},e))))),o?c.createElement(c.Fragment,null,c.createElement(St,null),c.createElement(kt,null)):null)},Pt=(0,u.default)("hr",{target:"e8356dj0"})((({_color:e})=>({boxSizing:"border-box",flexGrow:"0",flexShrink:"0",border:0,margin:0,padding:0,width:"100%",borderTop:`1px solid ${g(e)}`})),"label:Divider;");const It=e=>{var{as:t,color:n="LinePrimary",marginInline:i,marginInlineStart:o,marginInlineEnd:a,marginBlock:r,marginBlockStart:s,marginBlockEnd:l,alignSelf:u,flex:p,deprecatedClassName:v,deprecatedStyle:g}=e,m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);oObject.assign({boxSizing:"border-box",width:"240px"},e&&{width:"100%"})),"label:Container;"),jt=(0,u.default)("div",{target:"e1vf30it1"})((({hasDescription:e,isLabelHidden:t})=>Object.assign(Object.assign({boxSizing:"border-box",marginBlockStart:"6px"},e&&{marginBlockStart:"4px"}),t&&{marginBlockStart:"0px"})),"label:InputContainer;"),Lt=(0,u.default)("button",{target:"e1vf30it2"})((({size:e,hasError:t})=>Object.assign(Object.assign(Object.assign({boxSizing:"border-box",appearance:"none",width:"100%",paddingInline:"11px",display:"flex",alignItems:"center",border:`1px solid ${g("LineSecondary")}`,borderRadius:"4px",backgroundColor:g("BGPrimary"),outline:"none",cursor:"pointer",":focus-visible:not(:disabled)":{borderColor:g("LineInput")},":hover:not(:disabled)":{backgroundColor:g("BGSecondary-tint-4")},":disabled":{backgroundColor:g("BGInput"),cursor:"not-allowed"}},"small"===e&&{height:"36px"}),"large"===e&&{height:"48px"}),t&&{borderColor:g("Negative")})),"label:Button;"),Mt=(0,u.default)("div",{target:"e1vf30it3"})({boxSizing:"border-box",display:"flex",marginInlineEnd:"8px",color:g("TextPrimary"),"> *":{height:"20px",width:"20px"}},"label:ButtonIconContainer;"),Nt=(0,u.default)("div",{target:"e1vf30it4"})((({isPlaceholder:e,_disabled:t})=>Object.assign(Object.assign({boxSizing:"border-box",display:"flex",alignItems:"center","> *":{flexShrink:0},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontFamily:_("Paragraph"),fontSize:m("P3"),fontWeight:h("Regular"),color:g("TextPrimary")},e&&{color:g("TextSecondary")}),t&&{color:g("TextQuaternary")})),"label:ButtonText;"),Dt=(0,u.default)("div",{target:"e1vf30it5"})({boxSizing:"border-box",flexGrow:1},"label:Spacer;"),Rt=(0,u.default)(ut.A,{shouldForwardProp:e=>"isExpanded"!==e,target:"e1vf30it6"})((({isExpanded:e})=>({boxSizing:"border-box",display:"flex",marginInlineStart:"4px",height:"16px",width:"16px",flexShrink:0,color:g("TextPrimary"),transition:`transform 220ms ${gt}`,transform:e?"rotate(180deg)":"unset"})),"label:ArrowIcon;"),Bt=(0,u.default)("ul",{target:"e1vf30it7"})({boxSizing:"border-box",maxHeight:"260px",paddingBlock:"3px",overflowY:"auto",paddingInline:0,margin:0,listStyle:"none",outline:"none"},"label:List;"),Ut=({label:e,required:t,hideLabel:n,tooltipText:i,description:o,errorText:a,hintText:r,size:s="large",value:l,onChange:u,disabled:p,placeholder:v,options:g,grouped:m,groups:h,renderButtonLabel:_,renderOptionLabel:f,renderGroup:y,block:b,marginInline:w,marginInlineStart:x,marginInlineEnd:T,marginBlock:S,marginBlockStart:k,marginBlockEnd:A,alignSelf:O,flex:E,className:P,style:I})=>{var C;P&&console.warn('The \'className\' prop is deprecated. Please use the associated style props instead (e.g. "marginInline", "flex")'),I&&console.warn('The \'style\' prop is deprecated. Please use the associated style props instead (e.g. "marginInline", "flex")');const j=d({marginInline:w,marginInlineStart:x,marginInlineEnd:T,marginBlock:S,marginBlockStart:k,marginBlockEnd:A,alignSelf:O,flex:E}),L=J(),M=`${L}_label`,N=`${L}_button`,D=`${L}_list`,R=`${L}_description`,B=`${L}_error`,U=m?h.map((e=>e.options)).flat(1):g,F=(e=>{const t=(0,c.useRef)(null),[n,i]=(0,c.useState)(null),o=(0,c.useRef)(!1),[a]=re(),r=e.filter((e=>!e.disabled)),s=n=>{null!==n&&(n=>{if(!t.current)throw new Error("Can't scroll to item; list element doesn't exist");const i=t.current.querySelector(`[${pt}="${n}"]`);if(!i)throw new Error("Can't scroll to item; item element doesn't exist");const r=e.findIndex((e=>e.value===n)),s=t.current.getBoundingClientRect(),l=i.getBoundingClientRect();o.current=!0,a((()=>{o.current=!1}),250),0===r?t.current.scrollTop=0:r===e.length-1?t.current.scrollTop=t.current.scrollHeight:l.tops.bottom&&(t.current.scrollTop+=l.bottom-s.bottom)})(n.value),i(n)},l=()=>{o.current||i(null)};return{activeItem:n,setListRef:e=>{t.current=e},activateItem:s,activateFirstItem:()=>{0!==r.length&&s(r[0])},activateLastItem:()=>{0!==r.length&&s(r[r.length-1])},activatePrevItem:()=>{if(0===r.length)return;const e=r.findIndex((e=>e.value===(null==n?void 0:n.value)));0!==e&&s(-1!==e?r[e-1]:r[r.length-1])},activateNextItem:()=>{if(0===r.length)return;const e=r.findIndex((e=>e.value===(null==n?void 0:n.value)));e!==r.length-1&&s(-1!==e?r[e+1]:r[0])},getItemAttributes:e=>({[pt]:e.value,isActive:e.value===(null==n?void 0:n.value),disabled:e.disabled,onMouseEnter:()=>(e=>{e.disabled||o.current||i(e)})(e),onMouseLeave:l})}})(U),V=(e=>{var t,n,i;const[o,a]=(0,c.useState)(null),[r,s]=(0,c.useState)(null),[l,d]=re(),u=(0,c.useMemo)((()=>({name:"setPopperWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.minWidth=`${e.rects.reference.width}px`},effect:({state:e})=>{e.elements.popper.style.minWidth=`${e.elements.reference.getBoundingClientRect().width}px`}})),[]),p=(0,ne.E)(o,r,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,4]}},u]}),[v,g]=(0,c.useState)("unmounted"),m=null!==(n=null===(t=p.state)||void 0===t?void 0:t.placement.split("-")[0])&&void 0!==n?n:null,h=(0,c.useCallback)((()=>{e.animated?(g("exited"),l((()=>{g("entering"),l((()=>{g("entered")}),220)}),50)):g("entered")}),[e.animated,l]),_=(0,c.useCallback)((()=>{d(),e.animated?(g("exiting"),l((()=>g("unmounted")),220)):g("unmounted")}),[e.animated,l,d]),f="entering"===v||"entered"===v;return{setAnchorRef:a,setPopoverRef:s,popoverStyle:p.styles.popper,position:m,expandState:v,isExpanded:f,close:_,open:h,forceUpdate:null!==(i=p.forceUpdate)&&void 0!==i?i:vt}})({animated:!0}),z=(0,c.useRef)(null),H=(0,c.useRef)(null),[q,W]=re(),$=null!==(C=U.find((e=>e.value===l)))&&void 0!==C?C:null,Z=()=>{V.open(),q((()=>{H.current&&H.current.focus()}),220)},K=V.close,X=(0,c.useCallback)((()=>{W(),K(),z.current&&z.current.focus()}),[W,K]);(0,c.useEffect)((()=>{if(V.isExpanded){const e=e=>{var t,n;(null===(t=z.current)||void 0===t?void 0:t.contains(e.target))||(null===(n=H.current)||void 0===n?void 0:n.contains(e.target))||X()};return window.addEventListener("mousedown",e),window.addEventListener("touchstart",e),()=>{window.removeEventListener("mousedown",e),window.removeEventListener("touchstart",e)}}}),[V.isExpanded,X]);const Q=e=>c.createElement(Et,Object.assign({key:e.value,id:`${D}_${e.value}`,role:"option","aria-selected":e.value===l,"aria-disabled":e.disabled,label:e.label,icon:e.icon,onClick:()=>(e=>{e.disabled||(V.close(),u(e.value))})(e),isSelected:e.value===l},F.getItemAttributes(e)),f?f(e):null);let ee=c.createElement(Nt,{isPlaceholder:!0,_disabled:p},v);return(null==$?void 0:$.value)&&(ee=_?c.createElement(Nt,{_disabled:p},_($)):c.createElement(c.Fragment,null,$.icon&&c.createElement(Mt,null,c.createElement($.icon,null)),c.createElement(Nt,{_disabled:p},$.label))),c.createElement(Ct,{block:b,className:P,style:Object.assign(Object.assign({},I),j)},c.createElement(Se,{as:"div",id:M,text:e,required:t,tooltipText:i,hidden:n}),o?c.createElement(G,{id:R,text:o,marginBlockStart:"4px"}):null,c.createElement(jt,{onKeyDown:e=>{if(V.isExpanded)switch(e.key){case"Tab":e.preventDefault();break;case"Escape":e.preventDefault(),e.stopPropagation(),X();break;case"ArrowUp":e.preventDefault(),F.activatePrevItem();break;case"ArrowDown":e.preventDefault(),F.activateNextItem();break;case"Home":F.activateFirstItem();break;case"End":F.activateLastItem();break;case" ":case"Enter":e.preventDefault(),X(),F.activeItem&&u(F.activeItem.value)}else switch(e.key){case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),Z()}},hasDescription:Boolean(o),isLabelHidden:Boolean(n)},c.createElement(Lt,{type:"button",ref:e=>{z.current=e,V.setAnchorRef(e)},id:N,"aria-labelledby":`${M} ${N}`,"aria-describedby":a?B:o?R:void 0,"aria-haspopup":"listbox","aria-controls":D,"aria-expanded":V.isExpanded,"aria-invalid":Boolean(a),"aria-required":t,disabled:p,size:s,onClick:()=>{V.isExpanded?X():(de.flushSync((()=>{Z()})),F.activateItem(null!=$?$:null))},hasError:Boolean(a)},ee,c.createElement(Dt,null),c.createElement(Rt,{isExpanded:V.isExpanded})),c.createElement(_t,Object.assign({},V),c.createElement(Bt,{ref:e=>{H.current=e,F.setListRef(e)},id:D,role:"listbox","aria-labelledby":M,"aria-activedescendant":F.activeItem?`${D}_${F.activeItem.value}`:void 0,tabIndex:-1},m?h.map(((e,t)=>c.createElement(c.Fragment,{key:e.label},t>0&&c.createElement(It,{marginBlockStart:"4px"}),y?y(e,Q):c.createElement(bt,{group:e},e.options.map((e=>Q(e))))))):g.map((e=>Q(e)))))),a?c.createElement(Ae,{id:B,text:a,marginBlockStart:"4px"}):null,r?c.createElement(Y,{text:r,marginBlockStart:"4px"}):null)};n(21380);const Ft="910ms",Vt=(0,k.i7)({"0%":{cx:17,r:17},"10%":{cx:18,r:17},"13.3%":{cx:19.5,r:17.8},"16.7%":{cx:21.5,r:18.5},"20%":{cx:24,r:20},"23.3%":{cx:30,r:21.5},"26.7%":{cx:42,r:21.5},"30%":{cx:46.5,r:19.8},"33.3%":{cx:49.5,r:18.2},"36.7%":{cx:50.5,r:17.8},"40%":{cx:51.5,r:17.2},"43.3%":{cx:53,r:17},"56.7%":{cx:53,r:17},"60%":{cx:52,r:17},"63.3%":{cx:51,r:16},"66.7%":{cx:49,r:15},"70%":{cx:46.5,r:12.8},"73.3%":{cx:41.5,r:11.2},"76.7%":{cx:28.5,r:11.2},"80%":{cx:24,r:13},"83.3%":{cx:21,r:15},"86.7%":{cx:19,r:16},"90%":{cx:18,r:17},"100%":{cx:17,r:17}}),zt=(0,k.i7)({"0%":{cx:53,r:17},"6.7%":{cx:52.5,r:17},"10%":{cx:51.8,r:16.9},"13.3%":{cx:51,r:16},"16.7%":{cx:49,r:15},"20%":{cx:46,r:13},"23.3%":{cx:41.5,r:11.2},"26.7%":{cx:28.5,r:11.2},"30%":{cx:24,r:13},"33.3%":{cx:21,r:15},"36.7%":{cx:19,r:16},"40%":{cx:18,r:16.5},"43.3%":{cx:17,r:17},"53.3%":{cx:17,r:17},"56.7%":{cx:17.5,r:17.2},"60%":{cx:18.5,r:17.2},"63.3%":{cx:19.5,r:17.8},"66.7%":{cx:21,r:18},"70%":{cx:23.5,r:19.8},"73.3%":{cx:28,r:21},"76.7%":{cx:42,r:21},"80%":{cx:46.5,r:19.8},"83.3%":{cx:49,r:18},"86.7%":{cx:50,r:17.5},"90%":{cx:51.5,r:17.2},"93.3%":{cx:52.5,r:17.2},"100%":{cx:53,r:17}}),Ht={r:17,cy:68},qt={0:{fill:"rgb(255, 44, 85)",stroke:"rgb(255, 44, 85)",cx:53,animation:`${zt} ${Ft} linear infinite`},1:{fill:"rgb(58, 242, 255)",stroke:"rgb(58, 242, 255)",cx:17,animation:`${Vt} ${Ft} linear infinite`},2:{fill:"rgb(15, 15, 15)",strokeWidth:0,cx:17,animation:`${Vt} ${Ft} linear infinite`}},Wt=(0,u.default)("circle",{target:"eup464n0"})((({circleType:e,isBlack:t})=>[Ht,qt[e],t?{fill:"black"}:null]),"label:Circle;"),$t=(0,u.default)("svg",{target:"eup464n1"})({boxSizing:"border-box",display:"block"},(({center:e})=>Object.assign({},e&&{margin:"0px auto"})),"label:SvgContainer;"),Gt=(0,u.default)("div",{target:"eup464n2"})({boxSizing:"border-box",display:"block",width:"max-content",maxWidth:"200px"},(({center:e})=>Object.assign({},e&&{margin:"0px auto"})),"label:LoadingContainer;"),Yt=(0,u.default)("div",{target:"eup464n4"})({marginTop:"4px"},"label:TextContainer;");var Zt=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{var{id:t,size:n="large",center:i=!1,marginInline:o,marginInlineStart:a,marginInlineEnd:r,marginBlock:s,marginBlockStart:l,marginBlockEnd:u,alignSelf:p,deprecatedClassName:v,deprecatedStyle:g}=e,m=Zt(e,["id","size","center","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd","alignSelf","deprecatedClassName","deprecatedStyle"]);const h=d({marginInline:o,marginInlineStart:a,marginInlineEnd:r,marginBlock:s,marginBlockStart:l,marginBlockEnd:u,alignSelf:p}),_=Kt[n],f=J(t),y=`red-hole-${f}`,b=`green-hole-${f}`;return c.createElement($t,Object.assign({id:f,center:i,preserveAspectRatio:"none",viewBox:"-33 0 136 136",width:_,height:_,style:Object.assign(Object.assign({},g),h),className:v},m),c.createElement("defs",null,c.createElement("mask",{id:y},c.createElement("rect",{width:"100%",height:"100%",fill:"white",x:"-33"}),c.createElement(Wt,{circleType:0,isBlack:!0})),c.createElement("mask",{id:b},c.createElement("rect",{width:"100%",height:"100%",fill:"white",x:"-33"}),c.createElement(Wt,{circleType:1,isBlack:!0}))),c.createElement(Wt,{circleType:2}),c.createElement(Wt,{circleType:1,mask:`url(#${y})`}),c.createElement(Wt,{circleType:0,mask:`url(#${b})`}))},Qt=e=>{const{text:t,size:n="large",center:i,variant:o="light",deprecatedClassName:a,deprecatedStyle:r}=e,s=Zt(e,["text","size","center","variant","deprecatedClassName","deprecatedStyle"]);if(a&&console.warn('The \'deprecatedClassName\' prop is deprecated. Please use the associated style props instead (e.g. "marginInline", "flex")'),r&&console.warn('The \'deprecatedStyle\' prop is deprecated. Please use the associated style props instead (e.g. "marginInline", "flex")'),!t)return c.createElement(Xt,Object.assign({},e));let l;switch(o){case"light":l="TextSecondary";break;case"dark":l="ConstTextInverse"}return c.createElement(Gt,{center:i},c.createElement(Xt,Object.assign({},s,{size:n,center:!0,deprecatedClassName:a,deprecatedStyle:r})),c.createElement(Yt,null,c.createElement(w,{block:!0,align:"center",type:"small"===n?"P5-Semibold":"P4-Semibold",color:l},t)))};var Jt=n(16657),en=n(69272),tn=n(68395);const nn=(0,u.default)("ul",{target:"e117t4ax0"})({boxSizing:"border-box",pointerEvents:"none",margin:"0",padding:"4px",position:"fixed",top:"32px",left:"0",right:"0",display:"flex",flexDirection:"column",alignItems:"center",gap:"12px",[a.Small]:{top:"20px"}},"label:ToastFoundationContainer;"),on=(0,u.default)(tn.P.li,{target:"e117t4ax1"})({boxSizing:"border-box",pointerEvents:"auto",margin:"0 auto",background:g("ToastDefault"),backdropFilter:"blur(20px)",borderRadius:"4px",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",padding:"9px 24px",position:"relative",maxWidth:"720px",minWidth:"400px",[a.Small]:{minWidth:"fit-content",maxWidth:"343px"}},(({minWidth:e})=>{if(void 0!==e)return{minWidth:`${e}px`}}),"label:ToastContainer;"),an=(0,u.default)("div",{target:"e117t4ax2"})({boxSizing:"border-box",flexGrow:0,flexShrink:0,display:"flex",justifyContent:"center",alignItems:"center",marginInlineEnd:"16px",color:g("ConstTextInverse"),svg:{width:"20px",height:"20px"}},"label:ToastIconContainer;"),rn=(0,u.default)(wt.A,{target:"e117t4ax3"})({color:g("Positive")},"label:ToastTickIcon;");const sn={initial:{opacity:0,y:-72},animate:{opacity:1,y:0,transition:{opacity:{duration:.3,ease:[.65,0,.35,1]},y:{duration:.5,ease:[.65,0,.35,1]}}},exit:{opacity:0,y:-72,transition:{opacity:{duration:.3,ease:[.65,0,.35,1]},y:{duration:.5,ease:[.65,0,.35,1]}}}},ln=e=>{var{durationMS:t=2e3,content:n,icon:i,onClose:o,onCloseComplete:a,changeDetected:r,minWidth:s,onMouseEnter:l,onMouseLeave:d}=e,u=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{_||null==a||a()}),[_]),c.useEffect((()=>{p.current&&g(t),p.current=!0}),[t]),c.useEffect((()=>{null===v?h():m((()=>{o()}),v)}),[v,o,r]),c.createElement(on,Object.assign({layout:!0,variants:sn,initial:"initial",animate:"animate",exit:"exit",minWidth:s,onHoverStart:e=>{g(null),null==l||l(e)},onHoverEnd:e=>{g(t),null==d||d(e)}},u),i&&c.createElement(an,null,i),c.createElement(w,{type:"P4-Semibold",color:"ConstTextInverse",align:i?"start":"center"},n))};let cn=0;const dn=c.forwardRef(((e,t)=>{const[n,i]=c.useState([]),o=(e,t)=>{const{message:n,hasTickIcon:o,customIcon:a,durationMS:r,minWidth:s,onCloseComplete:l,onClick:d,onMouseEnter:u,onMouseLeave:p}=t;i((t=>{const i=t.findIndex((t=>t.id===e)),v=[...t],g=Object.assign({},t[i]);let m;return v[i]=g,g.changeDetected=!g.changeDetected,void 0!==n&&(g.content=n),o?m=c.createElement(rn,null):void 0!==a&&(m=a),void 0!==m&&(g.icon=m),void 0!==r&&(g.durationMS=r),void 0!==s&&(g.minWidth=s),void 0!==l&&(g.onCloseComplete=l),void 0!==d&&(g.onClick=d),void 0!==u&&(g.onMouseEnter=u),void 0!==p&&(g.onMouseLeave=p),v}))},a=e=>{i((t=>t.filter((t=>t.id!==e))))},r=e=>{const t=function(e){const{id:t,message:n,hasTickIcon:i,customIcon:o,durationMS:r,onCloseComplete:s}=e,l=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{a(d)},changeDetected:!0},l)}(e),{id:n}=t;return i((i=>{const a=i.findIndex((e=>e.id===n));return-1!==a?(o(n,e),[i[a],...i.slice(0,a),...i.slice(a+1)]):[t,...i]})),n};return c.useImperativeHandle(t,(()=>({open:r,close:a,update:o,closeAll:()=>{i([])},all:()=>n.map((e=>e.id))})),[n]),c.createElement(nn,null,c.createElement(Jt.N,{initial:!1},n.map((e=>c.createElement(ln,Object.assign({key:e.id},e))))))})),un=new class{constructor(e){this.id="",this.id=e,this.toastFoundation=null}guardFoundation(){null===this.toastFoundation&&this.initialFoundation()}updateZIndex(e){if(!oe()||void 0===r)return;const t=r.querySelector(`#${this.id}`);t&&(t.style.zIndex=e.toString())}initialFoundation(){if(!oe()||void 0===r)return;if(r.querySelector(`#${this.id}`))return;const e=r.createElement("div");e.setAttribute("id",this.id),e.style.position="absolute",e.style.zIndex=s.toast.toString(),e.style.height="0",e.style.width="0",e.style.top="0",e.style.left="0",r.body.appendChild(e),(0,de.render)(c.createElement(dn,{ref:e=>{this.toastFoundation=e}}),e)}}("tux-toast-portal"),pn=e=>c.useMemo((()=>(e=>{var t;const n=null!==(t=null==e?void 0:e.zIndex)&&void 0!==t?t:s.toast;return{open:e=>(un.guardFoundation(),un.updateZIndex(n),un.toastFoundation.open(e)),update:(e,t)=>{var n;null===(n=un.toastFoundation)||void 0===n||n.update(e,t)},close:e=>{var t;return null===(t=un.toastFoundation)||void 0===t?void 0:t.close(e)},closeAll:()=>{var e;return null===(e=un.toastFoundation)||void 0===e?void 0:e.closeAll()},all:()=>{var e,t;return null!==(t=null===(e=un.toastFoundation)||void 0===e?void 0:e.all())&&void 0!==t?t:[]}}})(e)),[e]);var vn=n(81521);const gn="data-list-item-value";const mn=(0,u.default)("div",{target:"e1jafjyr0"})({position:"relative",overflowX:"auto",padding:"2px",paddingBottom:"0px"},"label:TabListWrapper;"),hn=(0,u.default)("div",{target:"e1jafjyr1"})((({align:e})=>({boxSizing:"border-box",display:"flex",justifyContent:{center:"space-around",start:"start",fitted:"start"}[e],alignItems:"center"})),"label:TabList;"),_n=(0,u.default)("div",{target:"e1jafjyr2"})((({align:e,active:t,disabled:n})=>Object.assign(Object.assign(Object.assign({boxSizing:"border-box",paddingInline:"24px",color:g("TextTertiary"),cursor:n?"default":"pointer",transition:"color 300ms linear"},"fitted"===e&&{flex:1,justifyContent:"center",padding:0}),t&&{color:g("TextPrimary")}),!n&&{"&:hover > *":{color:`${g("TextPrimary")} !important`}})),"label:TabWrapper;"),fn=(0,u.default)("button",{target:"e1jafjyr3"})((({align:e,active:t,disabled:n})=>Object.assign(Object.assign(Object.assign(Object.assign({boxSizing:"border-box",padding:0,margin:0,background:"transparent",border:"none",appearance:"none",textDecoration:"none",backgroundClip:"padding-box",paddingBlockStart:"8px",paddingBlockEnd:"8px",paddingInline:"10px",whiteSpace:"nowrap",display:"flex",flexDirection:"row",alignItems:"center"},"fitted"===e&&{width:"100%",justifyContent:"center"}),{color:g("TextTertiary"),cursor:n?"default":"pointer",transition:"color 300ms linear"}),t&&{color:g("TextPrimary")}),n&&{opacity:.36})),"label:Tab;"),yn=(0,u.default)("div",{target:"e1jafjyr4"})({boxSizing:"border-box",height:"2px",borderBottom:`0.5px solid ${g("LinePrimary2")}`,overflowX:"hidden"},"label:TabBar;"),bn=(0,u.default)("div",{target:"e1jafjyr5"})((({xOffset:e,xRtlOffset:t,length:n})=>({boxSizing:"border-box",background:g("TextPrimary"),position:"absolute",transform:`translateX(${e}px)`,width:`${n}px`,height:"2px",transition:"transform 300ms cubic-bezier(0.65, 0, 0.35, 1), width 300ms cubic-bezier(0.65, 0, 0.35, 1)",'[dir="rtl"] &':{transform:`translateX(${-t}px)`}})),"label:TabBarHighlight;"),wn=(0,u.default)("div",{target:"e1jafjyr6"})({paddingInlineEnd:"8px"},"label:TabIconBefore;"),xn=(0,u.default)("div",{target:"e1jafjyr7"})({paddingInlineStart:"8px"},"label:TabIconAfter;"),Tn=(0,u.default)("div",{target:"e1jafjyr8"})({},"label:TabPanel;"),Sn=e=>{var{defaultTab:t,activeTab:n,tabs:i,align:o="start",onChange:a,isRTL:r=!1,marginInline:s,marginInlineStart:l,marginInlineEnd:u,marginBlock:p,marginBlockStart:v,marginBlockEnd:g,alignSelf:m,deprecatedClassName:h,deprecatedStyle:_}=e,f=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{const a=J(),r=e.filter((e=>!e.disabled)),[s,l]=(0,c.useState)(i||r.length>0&&r[0].id||e.length>0&&e[0].id||""),d=null!=n?n:s,u=e=>{o&&o(e),l(e)},p=(0,c.useRef)(null),v=e=>{var t;const n=null===(t=p.current)||void 0===t?void 0:t.querySelector(`[${gn}="${le(e)}"]`);null==n||n.focus()},g=()=>{0!==r.length&&(u(r[0].id),v(r[0].id))},m=()=>{0!==r.length&&(u(r[r.length-1].id),v(r[r.length-1].id))},h=()=>{if(0===r.length)return;let e=r.findIndex((e=>e.id===d))-1;e<0&&(e=t.shouldCycle?r.length-1:0),u(r[e].id),v(r[e].id)},_=()=>{if(0===r.length)return;let e=r.findIndex((e=>e.id===d))+1;e>=r.length&&(e=t.shouldCycle?0:r.length-1),u(r[e].id),v(r[e].id)},f=e=>{switch(e.key){case"ArrowLeft":e.preventDefault(),h();break;case"ArrowRight":e.preventDefault(),_();break;case"Home":e.preventDefault(),g();break;case"End":e.preventDefault(),m()}};return{activeTab:d,activateTab:u,activateNextTab:_,activatePrevTab:h,activateFirstTab:g,activateLastTab:m,getTabsRef:()=>p,setTabsRef:e=>{p.current=e},getTabListAttributes:()=>({role:"tablist",id:`${a}-tablist`,onKeyDown:f}),getTabWrapperAttributes:e=>{var t;return{disabled:null!==(t=e.disabled)&&void 0!==t&&t,active:d===e.id,onClick:()=>{e.disabled||u(e.id)},key:e.id}},getTabAttributes:e=>{var t;return{[gn]:e.id,role:"tab",id:`${a}-tab-${e.id}`,disabled:null!==(t=e.disabled)&&void 0!==t&&t,active:d===e.id,"aria-controls":`${a}-panel-${e.id}`,"aria-selected":d===e.id,tabIndex:d===e.id?0:-1}},getTabPanelAttributes:e=>e?{role:"tabpanel",id:`${a}-panel-${e.id}`,"aria-labelledby":`${a}-tab-${e.id}`,tabIndex:0,children:e.content}:{}}})(i,{shouldCycle:!0},n,t,a),[x,T]=(0,c.useState)(null),[S,k]=(0,c.useState)(null),[A,O]=(0,c.useState)(null),E=()=>{var e,t,n,i;const o=null===(t=null===(e=b.getTabsRef().current)||void 0===e?void 0:e.querySelector('[role="tablist"]'))||void 0===t?void 0:t.getBoundingClientRect(),a=null===(i=null===(n=b.getTabsRef().current)||void 0===n?void 0:n.querySelector(`[${gn}="${b.activeTab}"]`))||void 0===i?void 0:i.getBoundingClientRect();o&&a&&(T(a.left-o.left),k(o.right-a.right),O(a.width))};return(0,c.useLayoutEffect)((()=>{var e;setTimeout((()=>{E()}),400);const t=new vn.tb((e=>{setTimeout((()=>{E()}),400)})),n=null===(e=b.getTabsRef().current)||void 0===e?void 0:e.querySelector('[role="tablist"]');return n&&t.observe(n),()=>{n&&t.unobserve(n)}}),[b.activeTab,r]),c.createElement("div",Object.assign({ref:b.setTabsRef,className:h,style:Object.assign(Object.assign({},_),y)},f),c.createElement(mn,null,c.createElement(hn,Object.assign({align:o},b.getTabListAttributes()),i.map((e=>c.createElement(_n,Object.assign({align:o},b.getTabWrapperAttributes(e),{key:e.id}),c.createElement(fn,Object.assign({},b.getTabAttributes(e),{align:o}),e.icon&&"after"!==e.iconPosition&&c.createElement(wn,null,c.createElement(e.icon,null)),c.createElement(w,{type:"P3-Semibold"},e.title),e.icon&&"after"===e.iconPosition&&c.createElement(xn,null,c.createElement(e.icon,null))))))),c.createElement(yn,null,null!==x&&null!==S&&null!==A&&c.createElement(bn,{xOffset:x,xRtlOffset:S,length:A}))),c.createElement(Tn,Object.assign({},b.getTabPanelAttributes(i.find((e=>e.id===b.activeTab))))))};var kn=n(15928);n.p;const An=[{label:"12",value:0},{label:"01",value:1},{label:"02",value:2},{label:"03",value:3},{label:"04",value:4},{label:"05",value:5},{label:"06",value:6},{label:"07",value:7},{label:"08",value:8},{label:"09",value:9},{label:"10",value:10},{label:"11",value:11}],On=[{label:"12",value:12},{label:"01",value:13},{label:"02",value:14},{label:"03",value:15},{label:"04",value:16},{label:"05",value:17},{label:"06",value:18},{label:"07",value:19},{label:"08",value:20},{label:"09",value:21},{label:"10",value:22},{label:"11",value:23}],En=[{label:"00",value:0},{label:"01",value:1},{label:"02",value:2},{label:"03",value:3},{label:"04",value:4},{label:"05",value:5},{label:"06",value:6},{label:"07",value:7},{label:"08",value:8},{label:"09",value:9},{label:"10",value:10},{label:"11",value:11},{label:"12",value:12},{label:"13",value:13},{label:"14",value:14},{label:"15",value:15},{label:"16",value:16},{label:"17",value:17},{label:"18",value:18},{label:"19",value:19},{label:"20",value:20},{label:"21",value:21},{label:"22",value:22},{label:"23",value:23}],Pn=new Intl.DateTimeFormat("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h23"}),In=(e,t)=>{const n=new Date(1970,0,1,e,t);return Pn.format(n)},Cn=({label:e,required:t,hideLabel:n,tooltipText:i,description:o,hintText:a,size:r="small",value:s,onChange:l,disabled:u,minuteIncrement:p=1,isTimeDisabled:v,invalidTimeMessage:g,locale:m,marginInline:h,marginInlineStart:_,marginInlineEnd:f,marginBlock:y,marginBlockStart:b,marginBlockEnd:x,alignSelf:T,flex:S})=>{const k=J(),A=`${k}_input`,O=`${k}_description`,E=`${k}_error`,P=st(),I=(0,c.useRef)(null),C=(0,c.useRef)(null),j=(0,c.useRef)(null),L=(e=>{const t=new Date(`1970-01-01T${e}`);return isNaN(t.valueOf())?null:t})(s);if(!L)throw new Error(`Value "${s}" is not a valid time string.`);const M=new Intl.DateTimeFormat(m,{hour:"2-digit",minute:"2-digit"}),N=M.formatToParts(L).some((e=>"dayPeriod"===e.type)),D=L.getHours(),R=L.getMinutes(),B=D<12,U=null==v?void 0:v(In(D,R)),F=N?B?An:On:En,V=(0,c.useMemo)((()=>Array.from({length:60/p},((e,t)=>({label:(t*p).toString().padStart(2,"0"),value:t*p})))),[p]),z=(0,c.useMemo)((()=>{const e=[];for(let t=0;t<24;t++)e[t]=V.every((e=>!!v&&v(In(t,e.value))));return t=>e[t]}),[v,V]),H=e=>{if(I.current){const t=F.findIndex((e=>e.value===D));I.current.scrollTo({top:32*t,behavior:e})}},q=e=>{if(C.current){const t=V.findIndex((e=>e.value===R));C.current.scrollTo({top:32*t,behavior:e})}},W=e=>{if(j.current){const t=B?0:1;j.current.scrollTo({top:32*t,behavior:e})}},$=e=>{e&&!B&&l(In(D-12,R)),!e&&B&&l(In(D+12,R))};(0,c.useLayoutEffect)((()=>{q("auto"),H("auto"),W("auto")}),[P.isExpanded]),(0,c.useLayoutEffect)((()=>{H("smooth"),W("smooth")}),[D]),(0,c.useLayoutEffect)((()=>{q("smooth")}),[R]);const Z=d({marginInline:h,marginInlineStart:_,marginInlineEnd:f,marginBlock:y,marginBlockStart:b,marginBlockEnd:x,alignSelf:T,flex:S});return c.createElement("div",{style:Z},c.createElement(Se,{htmlFor:A,text:e,required:t,tooltipText:i,hidden:n}),o?c.createElement(G,{id:O,text:o,marginBlockStart:"4px"}):null,c.createElement("div",{className:(0,ee.A)("_TUXTimeInput-inputContainer",{"_TUXTimeInput-inputContainer--hasDescription":Boolean(o),"_TUXTimeInput-inputContainer--isLabelHidden":n})},c.createElement("button",Object.assign({id:A,type:"button",className:(0,ee.A)("_TUXTimeInput-button",`_TUXTimeInput-button--${r}`,{"_TUXTimeInput-button--error":U}),disabled:u},P.anchorProps),c.createElement(kn.A,{className:"_TUXTimeInput-buttonIcon"}),c.createElement(w,{type:"P3-Regular",color:u?"TextQuaternary":"TextPrimary",truncate:!0},M.format(L))),c.createElement(dt,Object.assign({},P.popoverProps),c.createElement("div",{className:"_TUXTimeInput-popoverContent"},c.createElement("div",{className:"_TUXTimeInput-list",ref:I},F.map((e=>c.createElement("div",{key:e.label,className:(0,ee.A)("_TUXTimeInput-timeOption",{"_TUXTimeInput-timeOption--selected":e.value===D,"_TUXTimeInput-timeOption--disabled":z(e.value)}),onClick:()=>{return t=e.value,void l(In(t,R));var t}},e.label)))),c.createElement("div",{className:"_TUXTimeInput-list",ref:C},V.map((e=>c.createElement("div",{key:e.label,className:(0,ee.A)("_TUXTimeInput-timeOption",{"_TUXTimeInput-timeOption--selected":e.value===R,"_TUXTimeInput-timeOption--disabled":null==v?void 0:v(In(D,e.value))}),onClick:()=>{return t=e.value,void l(In(D,t));var t}},e.label)))),N?c.createElement("div",{className:"_TUXTimeInput-list",ref:j},c.createElement("div",{className:(0,ee.A)("_TUXTimeInput-timeOption",{"_TUXTimeInput-timeOption--selected":B}),onClick:()=>$(!0)},(e=>{const t=new Date(1970,0,1,1);return e.formatToParts(t).find((e=>"dayPeriod"===e.type)).value})(M)),c.createElement("div",{className:(0,ee.A)("_TUXTimeInput-timeOption",{"_TUXTimeInput-timeOption--selected":!B}),onClick:()=>$(!1)},(e=>{const t=new Date(1970,0,1,23);return e.formatToParts(t).find((e=>"dayPeriod"===e.type)).value})(M))):null))),U?c.createElement(Ae,{id:E,text:g,marginBlockStart:"4px"}):null,a?c.createElement(Y,{text:a,marginBlockStart:"4px"}):null)};var jn=n(66283);const Ln=e=>{var{icon:t,size:n,color:i,background:o,autoMirror:a,marginInline:r,marginInlineStart:s,marginInlineEnd:l,marginBlock:u,marginBlockStart:p,marginBlockEnd:v,alignSelf:m,deprecatedStyle:h,deprecatedClassName:_}=e,f=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);oc.createElement("div",{className:(0,ee.A)("_TUXSkeleton","_TUXSkeletonRectangle"),style:{width:e,height:t,marginBlockStart:n,marginBlockEnd:i,marginInlineStart:o,marginInlineEnd:a}}));var Nn=n(63736);const Dn=(0,u.default)("div",{target:"e1wuf0b30"})({boxSizing:"border-box"},"label:ModalContainer;"),Rn=(0,u.default)("div",{target:"e1wuf0b31"})({boxSizing:"border-box",position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px",display:"flex",justifyContent:"center",alignItems:"center",overflow:"auto"},"label:ModalContentContainer;"),Bn=(0,u.default)("div",{target:"e1wuf0b32"})({display:"flex",justifyContent:"center",alignItems:"flex-start",maxHeight:"100vh",overflow:"visible"},"label:ModalContentVerticalPositionContainer;"),Un=(0,u.default)("div",{target:"e1wuf0b33"})({display:"flex",justifyContent:"center",alignItems:"center",padding:"32px 16px",maxWidth:"100vw"},"label:ModalContentVerticalPositionPadding;"),Fn=(0,u.default)("section",{target:"e1wuf0b34"})({boxSizing:"border-box",display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",outline:0,maxWidth:"calc(100vw - 32px)",background:g("BGPrimary"),boxShadow:"0px 2px 12px rgba(0, 0, 0, 0.12)",borderRadius:"8px",overflow:"hidden"},(({size:e,transitionStatus:t,fullHeight:n,fullWidth:i,transparent:o,compact:a})=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"Small"===e&&{width:"400px"}),"Medium"===e&&{width:"764px"}),"Large"===e&&{width:"1000px"}),n&&{height:"calc(100vh - 64px)",minHeight:"178px"}),i&&{width:"calc(100vw - 32px)"}),o&&{background:"transparent",boxShadow:"none"}),a&&{width:"auto"}),{transitionProperty:"transform, opacity",transitionDuration:"300ms",transitionTimingFunction:"cubic-bezier(0.65, 0, 0.35, 1)",opacity:0,transform:"scale(0.8)"}),t===ie.kp&&{opacity:0,transform:"scale(0.8)"}),t===ie.ze&&{transitionDuration:"300ms",transitionTimingFunction:"linear",opacity:0,transform:"scale(1)"}),t===ie.ns&&{opacity:1,transform:"none"}),t===ie._K&&{opacity:1,transform:"none"})),"label:ModalContentSection;"),Vn=(0,u.default)("div",{target:"e1wuf0b35"})({boxSizing:"border-box",position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px",background:g("SDSecondary")},(({transitionStatus:e})=>Object.assign(Object.assign(Object.assign(Object.assign({transitionProperty:"opacity",transitionDuration:"300ms",transitionTimingFunction:"linear",opacity:0},e===ie.kp&&{opacity:0}),e===ie.ze&&{opacity:0}),e===ie.ns&&{opacity:1}),e===ie._K&&{opacity:1})),"label:ModalBackdrop;");g("BGSecondary2"),g("TextSecondary");var zn=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o(0,c.useContext)(Hn),Wn=({className:e,style:t,transitionStatus:n})=>{const{closeOnBackdropClick:i,onClose:o}=qn();return c.createElement(Vn,{className:e,style:t,transitionStatus:n,onClick:()=>{i&&(null==o||o("backdrop"))}})},$n=({size:e="Medium",transitionStatus:t,fullHeight:n,fullWidth:i,transparent:o,compact:a,children:r})=>{const s=c.useRef(null),l=c.useRef(null),d=qn(),{onClose:u,closeOnEsc:p,closeOnBackdropClick:v,isOpen:g,size:m,onClick:h,headerId:_,bodyId:f}=d,y=zn(d,["onClose","closeOnEsc","closeOnBackdropClick","isOpen","size","onClick","headerId","bodyId"]),b=c.useCallback((e=>{"Escape"===e.key&&p&&(null==u||u("esc"))}),[u,p]),w=c.useCallback((e=>{v&&s.current===l.current&&(null==u||u("backdrop"))}),[u,v]),x=c.useCallback((e=>{s.current=e.target}),[]),T=c.useCallback((e=>{l.current=e.target}),[]);return c.createElement(Rn,{tabIndex:-1,onKeyDown:b,onClick:w,onMouseDown:x,onMouseUp:T},c.createElement(Bn,null,c.createElement(Un,null,c.createElement(Fn,Object.assign({role:"dialog","aria-modal":"true","aria-labelledby":_,"aria-describedby":f,size:e,transitionStatus:t,fullHeight:n,fullWidth:i,transparent:o,compact:a,onClick:e=>{e.stopPropagation(),null==h||h(e)}},y),r))))},Gn=e=>{var{isOpen:t,onClose:n,onCloseComplete:i,closeOnEsc:o=!0,closeOnBackdropClick:a=!0,size:r,fullHeight:s,fullWidth:l,transparent:d,compact:u,children:p}=e,v=zn(e,["isOpen","onClose","onCloseComplete","closeOnEsc","closeOnBackdropClick","size","fullHeight","fullWidth","transparent","compact","children"]);const[g,m]=(0,c.useState)(!1),[h,_]=(0,c.useState)(!1),[f,y]=re(),b=J(),w=`${b}_header`,x=`${b}_body`,T=c.useCallback((e=>{y(),e?(m(!0),f((()=>{_(!0)}),null)):(_(!1),f((()=>{m((t=>(e!==t&&(null==i||i()),e)))}),300))}),[y,i,f]);c.useEffect((()=>{T(Boolean(t))}),[T,t]);const S=Object.assign({isOpen:t,onClose:n,closeOnEsc:o,closeOnBackdropClick:a,size:r,headerId:w,bodyId:x},v);return c.createElement(c.Fragment,null,g?c.createElement(Hn.Provider,{value:S},c.createElement(ue,null,c.createElement("div",null,c.createElement(at.Ay,{autoFocus:!0,returnFocus:!0},c.createElement(Nn.A,{removeScrollBar:!0,enabled:!0},c.createElement(ie.Ay,{in:h,timeout:300},(e=>c.createElement(Dn,null,c.createElement(Wn,{transitionStatus:e}),c.createElement($n,{size:r,transitionStatus:e,fullHeight:s,fullWidth:l,transparent:d,compact:u},p))))))))):null)};const Yn=e=>{var{isOpen:t,onClose:n,closeOnEsc:i,closeOnBackdropClick:o,size:a,fullHeight:r,fullWidth:s,transparent:l,compact:d,children:u}=e,p=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{var{children:t}=e,n=Kn(e,["children"]);return c.createElement("div",Object.assign({className:"_TUXModalTitle"},n),c.createElement(w,{type:"P1-Bold",as:"h1",color:"TextPrimary"},t))},Qn=e=>{var{children:t}=e,n=Kn(e,["children"]);return c.createElement("div",Object.assign({className:"_TUXModalBody"},n),c.createElement(w,{type:"P3-Regular",color:"TextPrimary"},t))},Jn=e=>{var{children:t}=e,n=Kn(e,["children"]);return c.createElement("div",Object.assign({className:"_TUXModalFooter"},n),t)},ei=e=>{var t=Kn(e,[]);return c.createElement(It,Object.assign({},t))},ti=({onClick:e})=>c.createElement("button",{type:"button",className:"_TUXModalCloseButton",onClick:e},c.createElement(Zn.A,null));n.p;const ni=e=>{var{transitionStatus:t,open:n,close:i,isOpen:o,width:a,height:r,children:s,hasCloseButton:l=!1,transparent:d=!1,mountNode:u,deprecatedClassName:p,deprecatedStyle:v}=e,g=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{"Escape"===e.key&&i("esc")}),[i]),f=(0,c.useCallback)((()=>{m.current===h.current&&i("backdrop")}),[i]),y=(0,c.useCallback)((e=>{m.current=e.target}),[]),b=(0,c.useCallback)((e=>{h.current=e.target}),[]);return"unmounted"===t?null:c.createElement(ue,{mountNode:u},c.createElement(at.Ay,{autoFocus:!0,returnFocus:!0},c.createElement(Nn.A,{removeScrollBar:!0,enabled:!0},c.createElement("div",{className:"_TUXModal-wrapper",tabIndex:-1,onKeyDown:_,onClick:f,onMouseDown:y,onMouseUp:b},c.createElement("div",{className:"_TUXModal-verticalPositionWrapper"},c.createElement("div",{className:"_TUXModal-verticalPaddingWrapper"},c.createElement("div",{className:(0,ee.A)("_TUXModal-backdrop",`_TUXModal-backdrop--${t}`)}),c.createElement("div",Object.assign({role:"dialog","aria-modal":"true",className:(0,ee.A)("_TUXModal",`_TUXModal--width-${a}`,`_TUXModal--height-${r}`,`_TUXModal--${t}`,d&&"_TUXModal--transparent",p),style:v,onClick:e=>{e.stopPropagation()}},g),s,l&&c.createElement("div",{className:"_TUXModal-closeButtonWrapper"},c.createElement(ti,{onClick:()=>i("closeButton")})))))))))},ii=e=>{const{onOpen:t,onClose:n,onOpenComplete:i,onCloseComplete:o,closeOnEsc:a=!0,closeOnBackdropClick:r=!0}=null!=e?e:{},[s,l]=re(),[d,u]=(0,c.useState)("unmounted");return{transitionStatus:d,isOpen:"entering"===d||"entered"===d,open:()=>{null==t||t(),l(),u("exited"),s((()=>{u("entering"),s((()=>{u("entered"),null==i||i()}),300)}),20)},close:e=>{"backdrop"===e&&!r||"esc"===e&&!a||(null==n||n(e),l(),u("exiting"),s((()=>{u("unmounted"),null==o||o(e)}),300))}}}},58542:(e,t,n)=>{"use strict";var i;n.d(t,{Abx:()=>Kn,BbK:()=>xo,C1D:()=>Fo,CD$:()=>Wo,CKq:()=>ua,CrH:()=>Sa,DBO:()=>or,DUM:()=>hr,Dol:()=>Jo,Eq8:()=>Qo,Fm:()=>ti,FvE:()=>ta,GeO:()=>ba,HEM:()=>To,HIr:()=>y,HMQ:()=>ra,I05:()=>Ua,I7T:()=>pa,IuZ:()=>Aa,JPW:()=>qo,KhS:()=>xr,LDC:()=>zo,Mav:()=>No,Mzi:()=>ii,N0Y:()=>lr,N9v:()=>La,O6d:()=>jo,OBN:()=>va,OH6:()=>_a,ON7:()=>Vo,OVK:()=>Va,Om6:()=>aa,PH3:()=>ir,QKx:()=>_r,Qkv:()=>$a,Tj4:()=>l,Twf:()=>Oo,Tyj:()=>Oa,VA8:()=>Po,VMf:()=>Ro,WZJ:()=>Mo,WZi:()=>Go,XWZ:()=>Ba,XaL:()=>ma,Xwo:()=>yr,ZAy:()=>ca,ZPA:()=>gr,aCW:()=>Uo,aL3:()=>Yo,b$L:()=>Do,bt4:()=>wa,bwt:()=>ga,c5_:()=>Ta,cwz:()=>ya,dTl:()=>Xo,dpn:()=>oa,dvW:()=>Lo,eU:()=>Vn,fUE:()=>fa,g4Y:()=>Ho,gGu:()=>mr,gn:()=>Ca,h$y:()=>Wa,hIm:()=>Tr,hN4:()=>ha,hdF:()=>Ia,jgG:()=>Io,juU:()=>ja,l$J:()=>ea,lcR:()=>sa,lqC:()=>Eo,mPD:()=>xa,nDe:()=>Bo,nOL:()=>nr,nb1:()=>wr,oil:()=>da,otH:()=>ei,pdK:()=>$o,pfZ:()=>rr,pmp:()=>sr,pnX:()=>Ko,qMW:()=>Ja,qY7:()=>na,qaZ:()=>ni,rs3:()=>So,rxD:()=>Zs,sJ:()=>Zo,sLX:()=>ia,sO8:()=>fr,sgs:()=>Na,uCx:()=>Ea,xJb:()=>Co,xTL:()=>la});var o=n(40099),a=n(18499);e=n.hmd(e);var r=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))},s=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o(c((()=>{document.documentElement.dataset.tuxColorScheme=e}),[e]),o.createElement(d.Provider,{value:e},t)),p=2e3,v="undefined"==typeof window,g=()=>{},m=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:t=>{e.forEach((e=>{((e,t)=>{"function"==typeof e?e(t):"object"==typeof e&&e&&"current"in e&&(e.current=t)})(e,t)}))}},h=(0,o.createContext)(void 0),_=({safeAreaInsetTop:e,zIndexConfig:t,children:n})=>{var i,a,r,s,l,d,u;const[g,m]=(0,o.useState)("unknown"),_=void 0!==e?`${e}px`:"env(safe-area-inset-top)",f={modal:null!==(i=null==t?void 0:t.modal)&&void 0!==i?i:p,dialog:null!==(a=null==t?void 0:t.dialog)&&void 0!==a?a:p,popover:null!==(r=null==t?void 0:t.popover)&&void 0!==r?r:p,sheet:null!==(s=null==t?void 0:t.sheet)&&void 0!==s?s:p,tooltip:null!==(l=null==t?void 0:t.tooltip)&&void 0!==l?l:p,toast:null!==(d=null==t?void 0:t.toast)&&void 0!==d?d:3e3,bar:null!==(u=null==t?void 0:t.bar)&&void 0!==u?u:1e3};return c((()=>{if(v)return;const e=window.matchMedia("(prefers-color-scheme: dark)");m(e.matches?"dark":"light");const t=e=>{m(e.matches?"dark":"light")};return e.addEventListener?e.addEventListener("change",t):e.addListener(t),()=>{e.removeEventListener?e.removeEventListener("change",t):e.removeListener(t)}}),[]),o.createElement(h.Provider,{value:{colorSchemeSystemPreference:g,safeAreaInsetTop:_,zIndex:f}},n)},f=()=>{const e=(0,o.useContext)(h);if(void 0===e)throw Error("TUXEnvironmentContext is undefined. Make sure to wrap your app with TUXProvider.");return e},y=()=>{const e=(0,o.useContext)(d),{colorSchemeSystemPreference:t}=f();if(void 0===e)throw new Error("TUXColorSchemeContext is undefined. Make sure to wrap your app with TUXProvider.");return"system"===e?t:e},b=(0,o.createContext)(void 0),w=({textDirection:e,children:t})=>(c((()=>{document.documentElement.dir=e}),[e]),o.createElement(b.Provider,{value:e},t)),x=()=>{const e=(0,o.useContext)(b);if(void 0===e)throw Error("TUXTextDirectionContext is undefined. Make sure to wrap your app with TUXProvider.");return e},T=Math.floor;function S(e){return A(e)?(e.nodeName||"").toLowerCase():"#document"}function k(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function A(e){return e instanceof Node||e instanceof k(e).Node}function O(e){return e instanceof Element||e instanceof k(e).Element}function E(e){return e instanceof HTMLElement||e instanceof k(e).HTMLElement}function P(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof k(e).ShadowRoot)}function I(e){if("html"===S(e))return e;const t=e.assignedSlot||e.parentNode||P(e)&&e.host||function(e){var t;return null==(t=(A(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}(e);return P(t)?t.host:t}function C(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(i=n.shadowRoot)?void 0:i.activeElement);){var n,i;t=t.shadowRoot.activeElement}return t}function j(e,t){if(!e||!t)return!1;const n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&P(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function L(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function M(e){if(0===e.mozInputSource&&e.isTrusted)return!0;const t=/Android/i;return(t.test(L())||t.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}()))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType}function N(e){return 0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"!==e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail}function D(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function R(e){return(null==e?void 0:e.ownerDocument)||document}function B(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function U(e){return"composedPath"in e?e.composedPath()[0]:e.target}const F="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function V(e){return E(e)&&e.matches(F)}function z(e){e.preventDefault(),e.stopPropagation()}const H=Math.min,q=Math.max,W=Math.round,$=Math.floor,G=e=>({x:e,y:e}),Y={left:"right",right:"left",bottom:"top",top:"bottom"},Z={start:"end",end:"start"};function K(e,t,n){return q(e,H(t,n))}function X(e,t){return"function"==typeof e?e(t):e}function Q(e){return e.split("-")[0]}function J(e){return e.split("-")[1]}function ee(e){return"x"===e?"y":"x"}function te(e){return"y"===e?"height":"width"}function ne(e){return["top","bottom"].includes(Q(e))?"y":"x"}function ie(e){return ee(ne(e))}function oe(e){return e.replace(/start|end/g,(e=>Z[e]))}function ae(e){return e.replace(/left|right|bottom|top/g,(e=>Y[e]))}function re(e){return"number"!=typeof e?function(e){return Object.assign({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function se(e){const{x:t,y:n,width:i,height:o}=e;return{width:i,height:o,top:n,left:t,right:t+i,bottom:n+o,x:t,y:n}}function le(e,t,n){let{reference:i,floating:o}=e;const a=ne(t),r=ie(t),s=te(r),l=Q(t),c="y"===a,d=i.x+i.width/2-o.width/2,u=i.y+i.height/2-o.height/2,p=i[s]/2-o[s]/2;let v;switch(l){case"top":v={x:d,y:i.y-o.height};break;case"bottom":v={x:d,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:u};break;case"left":v={x:i.x-o.width,y:u};break;default:v={x:i.x,y:i.y}}switch(J(t)){case"start":v[r]-=p*(n&&c?-1:1);break;case"end":v[r]+=p*(n&&c?-1:1)}return v}function ce(e,t){return r(this,void 0,void 0,(function*(){var n;void 0===t&&(t={});const{x:i,y:o,platform:a,rects:r,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:v=0}=X(t,e),g=re(v),m=s[p?"floating"===u?"reference":"floating":u],h=se(yield a.getClippingRect({element:null==(n=yield null==a.isElement?void 0:a.isElement(m))||n?m:m.contextElement||(yield null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),_="floating"===u?{x:i,y:o,width:r.floating.width,height:r.floating.height}:r.reference,f=yield null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating),y=(yield null==a.isElement?void 0:a.isElement(f))&&(yield null==a.getScale?void 0:a.getScale(f))||{x:1,y:1},b=se(a.convertOffsetParentRelativeRectToViewportRelativeRect?yield a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:_,offsetParent:f,strategy:l}):_);return{top:(h.top-b.top+g.top)/y.y,bottom:(b.bottom-h.bottom+g.bottom)/y.y,left:(h.left-b.left+g.left)/y.x,right:(b.right-h.right+g.right)/y.x}}))}function de(e){return ve(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function pe(e){var t;return null==(t=(ve(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ve(e){return e instanceof Node||e instanceof ue(e).Node}function ge(e){return e instanceof Element||e instanceof ue(e).Element}function me(e){return e instanceof HTMLElement||e instanceof ue(e).HTMLElement}function he(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot)}function _e(e){const{overflow:t,overflowX:n,overflowY:i,display:o}=Te(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(o)}function fe(e){return["table","td","th"].includes(de(e))}function ye(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function be(e){const t=we(),n=Te(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function we(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function xe(e){return["html","body","#document"].includes(de(e))}function Te(e){return ue(e).getComputedStyle(e)}function Se(e){return ge(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ke(e){if("html"===de(e))return e;const t=e.assignedSlot||e.parentNode||he(e)&&e.host||pe(e);return he(t)?t.host:t}function Ae(e){const t=ke(e);return xe(t)?e.ownerDocument?e.ownerDocument.body:e.body:me(t)&&_e(t)?t:Ae(t)}function Oe(e,t,n){var i;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Ae(e),a=o===(null==(i=e.ownerDocument)?void 0:i.body),r=ue(o);return a?t.concat(r,r.visualViewport||[],_e(o)?o:[],r.frameElement&&n?Oe(r.frameElement):[]):t.concat(o,Oe(o,[],n))}function Ee(e){const t=Te(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=me(e),a=o?e.offsetWidth:n,r=o?e.offsetHeight:i,s=W(n)!==a||W(i)!==r;return s&&(n=a,i=r),{width:n,height:i,$:s}}function Pe(e){return ge(e)?e:e.contextElement}function Ie(e){const t=Pe(e);if(!me(t))return G(1);const n=t.getBoundingClientRect(),{width:i,height:o,$:a}=Ee(t);let r=(a?W(n.width):n.width)/i,s=(a?W(n.height):n.height)/o;return r&&Number.isFinite(r)||(r=1),s&&Number.isFinite(s)||(s=1),{x:r,y:s}}const Ce=G(0);function je(e){const t=ue(e);return we()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ce}function Le(e,t,n,i){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=Pe(e);let r=G(1);t&&(i?ge(i)&&(r=Ie(i)):r=Ie(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ue(e))&&t}(a,n,i)?je(a):G(0);let l=(o.left+s.x)/r.x,c=(o.top+s.y)/r.y,d=o.width/r.x,u=o.height/r.y;if(a){const e=ue(a),t=i&&ge(i)?ue(i):i;let n=e,o=n.frameElement;for(;o&&i&&t!==n;){const e=Ie(o),t=o.getBoundingClientRect(),i=Te(o),a=t.left+(o.clientLeft+parseFloat(i.paddingLeft))*e.x,r=t.top+(o.clientTop+parseFloat(i.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=a,c+=r,n=ue(o),o=n.frameElement}}return se({width:d,height:u,x:l,y:c})}function Me(e){return Le(pe(e)).left+Se(e).scrollLeft}function Ne(e,t,n){let i;if("viewport"===t)i=function(e,t){const n=ue(e),i=pe(e),o=n.visualViewport;let a=i.clientWidth,r=i.clientHeight,s=0,l=0;if(o){a=o.width,r=o.height;const e=we();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:r,x:s,y:l}}(e,n);else if("document"===t)i=function(e){const t=pe(e),n=Se(e),i=e.ownerDocument.body,o=q(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=q(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let r=-n.scrollLeft+Me(e);const s=-n.scrollTop;return"rtl"===Te(i).direction&&(r+=q(t.clientWidth,i.clientWidth)-o),{width:o,height:a,x:r,y:s}}(pe(e));else if(ge(t))i=function(e,t){const n=Le(e,!0,"fixed"===t),i=n.top+e.clientTop,o=n.left+e.clientLeft,a=me(e)?Ie(e):G(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:i*a.y}}(t,n);else{const n=je(e);i=Object.assign(Object.assign({},t),{x:t.x-n.x,y:t.y-n.y})}return se(i)}function De(e,t){const n=ke(e);return!(n===t||!ge(n)||xe(n))&&("fixed"===Te(n).position||De(n,t))}function Re(e,t,n){const i=me(t),o=pe(t),a="fixed"===n,r=Le(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=G(0);if(i||!i&&!a)if(("body"!==de(t)||_e(o))&&(s=Se(t)),i){const e=Le(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Me(o));return{x:r.left+s.scrollLeft-l.x,y:r.top+s.scrollTop-l.y,width:r.width,height:r.height}}function Be(e){return"static"===Te(e).position}function Ue(e,t){return me(e)&&"fixed"!==Te(e).position?t?t(e):e.offsetParent:null}function Fe(e,t){const n=ue(e);if(ye(e))return n;if(!me(e)){let t=ke(e);for(;t&&!xe(t);){if(ge(t)&&!Be(t))return t;t=ke(t)}return n}let i=Ue(e,t);for(;i&&fe(i)&&Be(i);)i=Ue(i,t);return i&&xe(i)&&Be(i)&&!be(i)?n:i||function(e){let t=ke(e);for(;me(t)&&!xe(t);){if(ye(t))return null;if(be(t))return t;t=ke(t)}return null}(e)||n}const Ve={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e;const a="fixed"===o,r=pe(i),s=!!t&&ye(t.floating);if(i===r||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=G(1);const d=G(0),u=me(i);if((u||!u&&!a)&&(("body"!==de(i)||_e(r))&&(l=Se(i)),me(i))){const e=Le(i);c=Ie(i),d.x=e.x+i.clientLeft,d.y=e.y+i.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x,y:n.y*c.y-l.scrollTop*c.y+d.y}},getDocumentElement:pe,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const a=[..."clippingAncestors"===n?ye(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let i=Oe(e,[],!1).filter((e=>ge(e)&&"body"!==de(e))),o=null;const a="fixed"===Te(e).position;let r=a?ke(e):e;for(;ge(r)&&!xe(r);){const t=Te(r),n=be(r);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||_e(r)&&!n&&De(e,r))?i=i.filter((e=>e!==r)):o=t,r=ke(r)}return t.set(e,i),i}(t,this._c):[].concat(n),i],r=a[0],s=a.reduce(((e,n)=>{const i=Ne(t,n,o);return e.top=q(i.top,e.top),e.right=H(i.right,e.right),e.bottom=H(i.bottom,e.bottom),e.left=q(i.left,e.left),e}),Ne(t,r,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Fe,getElementRects:function(e){return r(this,void 0,void 0,(function*(){const t=this.getOffsetParent||Fe,n=this.getDimensions,i=yield n(e.floating);return{reference:Re(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}}))},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Ee(e);return{width:t,height:n}},getScale:Ie,isElement:ge,isRTL:function(e){return"rtl"===Te(e).direction}};function ze(e,t,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,c=Pe(e),d=o||a?[...c?Oe(c):[],...Oe(t)]:[];d.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const u=c&&s?function(e,t){let n,i=null;const o=pe(e);function a(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}return function r(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const{left:c,top:d,width:u,height:p}=e.getBoundingClientRect();if(s||t(),!u||!p)return;const v={rootMargin:-$(d)+"px "+-$(o.clientWidth-(c+u))+"px "+-$(o.clientHeight-(d+p))+"px "+-$(c)+"px",threshold:q(0,H(1,l))||1};let g=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!g)return r();t?r(!1,t):n=setTimeout((()=>{r(!1,1e-7)}),1e3)}g=!1}try{i=new IntersectionObserver(m,Object.assign(Object.assign({},v),{root:o.ownerDocument}))}catch(e){i=new IntersectionObserver(m,v)}i.observe(e)}(!0),a}(c,n):null;let p,v=-1,g=null;r&&(g=new ResizeObserver((e=>{let[i]=e;i&&i.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame((()=>{var e;null==(e=g)||e.observe(t)}))),n()})),c&&!l&&g.observe(c),g.observe(t));let m=l?Le(e):null;return l&&function t(){const i=Le(e);!m||i.x===m.x&&i.y===m.y&&i.width===m.width&&i.height===m.height||n(),m=i,p=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==u||u(),null==(e=g)||e.disconnect(),g=null,l&&cancelAnimationFrame(p)}}const He=function(e){return void 0===e&&(e={}),{name:"flip",options:e,fn(t){return r(this,void 0,void 0,(function*(){var n,i;const{placement:o,middlewareData:a,rects:r,initialPlacement:l,platform:c,elements:d}=t,u=X(e,t),{mainAxis:p=!0,crossAxis:v=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:_=!0}=u,f=s(u,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const y=Q(o),b=ne(l),w=Q(l)===l,x=yield null==c.isRTL?void 0:c.isRTL(d.floating),T=g||(w||!_?[ae(l)]:function(e){const t=ae(e);return[oe(e),t,oe(t)]}(l)),S="none"!==h;!g&&S&&T.push(...function(e,t,n,i){const o=J(e);let a=function(e,t,n){const i=["left","right"],o=["right","left"],a=["top","bottom"],r=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:i:t?i:o;case"left":case"right":return t?a:r;default:return[]}}(Q(e),"start"===n,i);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(oe)))),a}(l,_,h,x));const k=[l,...T],A=yield ce(t,f),O=[];let E=(null==(i=a.flip)?void 0:i.overflows)||[];if(p&&O.push(A[y]),v){const e=function(e,t,n){void 0===n&&(n=!1);const i=J(e),o=ie(e),a=te(o);let r="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return t.reference[a]>t.floating[a]&&(r=ae(r)),[r,ae(r)]}(o,r,x);O.push(A[e[0]],A[e[1]])}if(E=[...E,{placement:o,overflows:O}],!O.every((e=>e<=0))){var P,I;const e=((null==(P=a.flip)?void 0:P.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:E},reset:{placement:t}};let n=null==(I=E.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(m){case"bestFit":{var C;const e=null==(C=E.filter((e=>{if(S){const t=ne(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:C[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}))}}},qe=e=>({name:"arrow",options:e,fn(t){return r(this,void 0,void 0,(function*(){const{x:n,y:i,placement:o,rects:a,platform:r,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=X(e,t)||{};if(null==c)return{};const u=re(d),p={x:n,y:i},v=ie(o),g=te(v),m=yield r.getDimensions(c),h="y"===v,_=h?"top":"left",f=h?"bottom":"right",y=h?"clientHeight":"clientWidth",b=a.reference[g]+a.reference[v]-p[v]-a.floating[g],w=p[v]-a.reference[v],x=yield null==r.getOffsetParent?void 0:r.getOffsetParent(c);let T=x?x[y]:0;T&&(yield null==r.isElement?void 0:r.isElement(x))||(T=s.floating[y]||a.floating[g]);const S=b/2-w/2,k=T/2-m[g]/2-1,A=H(u[_],k),O=H(u[f],k),E=A,P=T-m[g]-O,I=T/2-m[g]/2+S,C=K(E,I,P),j=!l.arrow&&null!=J(o)&&I!==C&&a.reference[g]/2-(I{const i=new Map,o=Object.assign({platform:Ve},n),a=Object.assign(Object.assign({},o.platform),{_c:i});return((e,t,n)=>r(void 0,void 0,void 0,(function*(){const{placement:i="bottom",strategy:o="absolute",middleware:a=[],platform:r}=n,s=a.filter(Boolean),l=yield null==r.isRTL?void 0:r.isRTL(t);let c=yield r.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=le(c,i,l),p=i,v={},g=0;for(let n=0;n{t.current=e})),t}const Xe=(e,t)=>Object.assign(Object.assign({},function(e){return void 0===e&&(e=0),{name:"offset",options:e,fn(t){return r(this,void 0,void 0,(function*(){var n,i;const{x:o,y:a,placement:s,middlewareData:l}=t,c=yield function(e,t){return r(this,void 0,void 0,(function*(){const{placement:n,platform:i,elements:o}=e,a=yield null==i.isRTL?void 0:i.isRTL(o.floating),r=Q(n),s=J(n),l="y"===ne(n),c=["left","top"].includes(r)?-1:1,d=a&&l?-1:1,u=X(t,e);let{mainAxis:p,crossAxis:v,alignmentAxis:g}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:Object.assign({mainAxis:0,crossAxis:0,alignmentAxis:null},u);return s&&"number"==typeof g&&(v="end"===s?-1*g:g),l?{x:v*d,y:p*c}:{x:p*c,y:v*d}}))}(t,e);return s===(null==(n=l.offset)?void 0:n.placement)&&null!=(i=l.arrow)&&i.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:Object.assign(Object.assign({},c),{placement:s})}}))}}}(e)),{options:[e,t]}),Qe=(e,t)=>Object.assign(Object.assign({},function(e){return void 0===e&&(e={}),{name:"shift",options:e,fn(t){return r(this,void 0,void 0,(function*(){const{x:n,y:i,placement:o}=t,a=X(e,t),{mainAxis:r=!0,crossAxis:l=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=a,d=s(a,["mainAxis","crossAxis","limiter"]),u={x:n,y:i},p=yield ce(t,d),v=ne(Q(o)),g=ee(v);let m=u[g],h=u[v];if(r){const e="y"===g?"bottom":"right";m=K(m+p["y"===g?"top":"left"],m,m-p[e])}if(l){const e="y"===v?"bottom":"right";h=K(h+p["y"===v?"top":"left"],h,h-p[e])}const _=c.fn(Object.assign(Object.assign({},t),{[g]:m,[v]:h}));return Object.assign(Object.assign({},_),{data:{x:_.x-n,y:_.y-i}})}))}}}(e)),{options:[e,t]}),Je=(e,t)=>Object.assign(Object.assign({},He(e)),{options:[e,t]}),et=(e,t)=>Object.assign(Object.assign({},(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:i}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?qe({element:n.current,padding:i}).fn(t):{}:n?qe({element:n,padding:i}).fn(t):{};var o}}))(e)),{options:[e,t]});var tt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),nt="undefined"==typeof Element,it=nt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ot=!nt&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},at=function e(t,n){var i;void 0===n&&(n=!0);var o=null==t||null===(i=t.getAttribute)||void 0===i?void 0:i.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},rt=function e(t,n,i){for(var o=[],a=Array.from(t);a.length;){var r=a.shift();if(!at(r,!1))if("SLOT"===r.tagName){var s=r.assignedElements(),l=e(s.length?s:r.children,!0,i);i.flatten?o.push.apply(o,l):o.push({scopeParent:r,candidates:l})}else{it.call(r,tt)&&i.filter(r)&&(n||!t.includes(r))&&o.push(r);var c=r.shadowRoot||"function"==typeof i.getShadowRoot&&i.getShadowRoot(r),d=!at(c,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(r));if(c&&d){var u=e(!0===c?r.children:c.children,!0,i);i.flatten?o.push.apply(o,u):o.push({scopeParent:r,candidates:u})}else a.unshift.apply(a,r.children)}}return o},st=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},lt=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!st(e)?0:e.tabIndex},ct=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},dt=function(e){return"INPUT"===e.tagName},ut=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},pt=function(e,t){return!(t.disabled||at(t)||function(e){return dt(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=it.call(e,"details>summary:first-of-type")?e.parentElement:e;if(it.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return ut(e)}else{if("function"==typeof i){for(var a=e;e;){var r=e.parentElement,s=ot(e);if(r&&!r.shadowRoot&&!0===i(r))return ut(e);e=e.assignedSlot?e.assignedSlot:r||s===e.ownerDocument?r:s.host}e=a}if(function(e){var t,n,i,o,a=e&&ot(e),r=null===(t=a)||void 0===t?void 0:t.host,s=!1;if(a&&a!==e)for(s=!!(null!==(n=r)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(r)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&r;){var l,c,d;s=!(null===(c=r=null===(l=a=ot(r))||void 0===l?void 0:l.host)||void 0===c||null===(d=c.ownerDocument)||void 0===d||!d.contains(r))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n=0)},mt=function e(t){var n=[],i=[];return t.forEach((function(t,o){var a=!!t.scopeParent,r=a?t.scopeParent:t,s=function(e,t){var n=lt(e);return n<0&&t&&!st(e)?0:n}(r,a),l=a?e(t.candidates):r;0===s?a?n.push.apply(n,l):n.push(r):i.push({documentOrder:o,tabIndex:s,item:t,isScope:a,content:l})})),i.sort(ct).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},ht=function(e,t){var n;return n=(t=t||{}).getShadowRoot?rt([e],t.includeContainer,{filter:vt.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:gt}):function(e,t,n){if(at(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(tt));return t&&it.call(e,tt)&&i.unshift(e),i.filter(n)}(e,t.includeContainer,vt.bind(null,t)),mt(n)};const _t="ArrowUp",ft="ArrowDown",yt="ArrowLeft",bt="ArrowRight";function wt(e,t,n){return Math.floor(e/t)!==n}function xt(e,t){return t<0||t>=e.current.length}function Tt(e,t){let{startingIndex:n=-1,decrement:i=!1,disabledIndices:o,amount:a=1}=void 0===t?{}:t;const r=e.current;let s=n;do{var l,c;s+=i?-a:a}while(s>=0&&s<=r.length-1&&(o?o.includes(s):null==r[s]||(null==(l=r[s])?void 0:l.hasAttribute("disabled"))||"true"===(null==(c=r[s])?void 0:c.getAttribute("aria-disabled"))));return s}let St=0;function kt(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:i=!0,sync:o=!1}=t;i&&cancelAnimationFrame(St);const a=()=>null==e?void 0:e.focus({preventScroll:n});o?a():St=requestAnimationFrame(a)}var At="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function Ot(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const Et=o.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Pt(e){let{children:t,elementsRef:n,labelsRef:i}=e;const[a,r]=o.useState((()=>new Map)),s=o.useCallback((e=>{r((t=>new Map(t).set(e,null)))}),[]),l=o.useCallback((e=>{r((t=>{const n=new Map(t);return n.delete(e),n}))}),[]);return At((()=>{const e=new Map(a);Array.from(e.keys()).sort(Ot).forEach(((t,n)=>{e.set(t,n)})),function(e,t){if(e.size!==t.size)return!1;for(const[n,i]of e.entries())if(i!==t.get(n))return!1;return!0}(a,e)||r(e)}),[a]),o.createElement(Et.Provider,{value:o.useMemo((()=>({register:s,unregister:l,map:a,elementsRef:n,labelsRef:i})),[s,l,a,n,i])},t)}function It(e){let{label:t}=void 0===e?{}:e;const[n,i]=o.useState(null),a=o.useRef(null),{register:r,unregister:s,map:l,elementsRef:c,labelsRef:d}=o.useContext(Et),u=o.useCallback((e=>{if(a.current=e,null!==n&&(c.current[n]=e,d)){var i;const o=void 0!==t;d.current[n]=o?t:null!=(i=null==e?void 0:e.textContent)?i:null}}),[n,c,d,t]);return At((()=>{const e=a.current;if(e)return r(e),()=>{s(e)}}),[r,s]),At((()=>{const e=a.current?l.get(a.current):null;null!=e&&i(e)}),[l]),o.useMemo((()=>({ref:u,index:null==n?-1:n})),[n,u])}function Ct(e,t){return"function"==typeof e?e(t):e?o.cloneElement(e,t):o.createElement("div",t)}const jt=o.createContext({activeIndex:0,setActiveIndex:()=>{}}),Lt=[yt,bt],Mt=[_t,ft],Nt=[...Lt,...Mt],Dt=o.forwardRef((function(e,t){let{render:n,orientation:i="both",loop:a=!0,cols:r=1,disabledIndices:l}=e,c=s(e,["render","orientation","loop","cols","disabledIndices"]);const[d,u]=o.useState(0),p=o.useRef([]),v=n&&"function"!=typeof n?n.props:{},g=o.useMemo((()=>({activeIndex:d,setActiveIndex:u})),[d]),m=r>1,h=Object.assign(Object.assign(Object.assign({},c),v),{ref:t,"aria-orientation":"both"===i?void 0:i,onKeyDown(e){null==c.onKeyDown||c.onKeyDown(e),null==v.onKeyDown||v.onKeyDown(e),function(e){if(!Nt.includes(e.key))return;const t=function(e,t){return Tt(e,{disabledIndices:t})}(p,l),n=function(e,t){return Tt(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}(p,l);let o=d;m&&(o=function(e,t){let{event:n,orientation:i,loop:o,cols:a,disabledIndices:r,minIndex:s,maxIndex:l,prevIndex:c,stopEvent:d=!1}=t,u=c;if(n.key===_t){if(d&&z(n),-1===c)u=l;else if(u=Tt(e,{startingIndex:u,amount:a,decrement:!0,disabledIndices:r}),o&&(c-ae?n:n-a}xt(e,u)&&(u=c)}if(n.key===ft&&(d&&z(n),-1===c?u=s:(u=Tt(e,{startingIndex:c,amount:a,disabledIndices:r}),o&&c+a>l&&(u=Tt(e,{startingIndex:c%a-a,amount:a,disabledIndices:r}))),xt(e,u)&&(u=c)),"both"===i){const t=T(c/a);n.key===bt&&(d&&z(n),c%a!=a-1?(u=Tt(e,{startingIndex:c,disabledIndices:r}),o&&wt(u,a,t)&&(u=Tt(e,{startingIndex:c-c%a-1,disabledIndices:r}))):o&&(u=Tt(e,{startingIndex:c-c%a-1,disabledIndices:r})),wt(u,a,t)&&(u=c)),n.key===yt&&(d&&z(n),c%a!=0?(u=Tt(e,{startingIndex:c,disabledIndices:r,decrement:!0}),o&&wt(u,a,t)&&(u=Tt(e,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:r}))):o&&(u=Tt(e,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:r})),wt(u,a,t)&&(u=c));const i=T(l/a)===t;xt(e,u)&&(u=o&&i?n.key===yt?l:Tt(e,{startingIndex:c-c%a-1,disabledIndices:r}):c)}return u}(p,{event:e,orientation:i,loop:a,cols:r,disabledIndices:l,minIndex:t,maxIndex:n,prevIndex:d}));const s={horizontal:[bt],vertical:[ft],both:[bt,ft]}[i],c={horizontal:[yt],vertical:[_t],both:[yt,_t]}[i],v=m?Nt:{horizontal:Lt,vertical:Mt,both:Nt}[i];o===d&&[...s,...c].includes(e.key)&&(o=a&&o===n&&s.includes(e.key)?t:a&&o===t&&c.includes(e.key)?n:Tt(p,{startingIndex:o,decrement:c.includes(e.key),disabledIndices:l})),o===d||xt(p,o)||(e.stopPropagation(),v.includes(e.key)&&e.preventDefault(),u(o),queueMicrotask((()=>{kt(p.current[o])})))}(e)}});return o.createElement(jt.Provider,{value:g},o.createElement(Pt,{elementsRef:p},Ct(n,h)))})),Rt=o.forwardRef((function(e,t){let{render:n}=e,i=s(e,["render"]);const a=n&&"function"!=typeof n?n.props:{},{activeIndex:r,setActiveIndex:l}=o.useContext(jt),{ref:c,index:d}=It(),u=(p=[c,t,a.ref],o.useMemo((()=>p.every((e=>null==e))?null:e=>{p.forEach((t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)}))}),p));var p;const v=r===d;return Ct(n,Object.assign(Object.assign(Object.assign({},i),a),{ref:u,tabIndex:v?0:-1,"data-active":v?"":void 0,onFocus(e){null==i.onFocus||i.onFocus(e),null==a.onFocus||a.onFocus(e),l(d)}}))}));function Bt(){return Bt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"floating-ui-"+Ft++,zt=(i||(i=n.t(o,2)))["useId".toString()]||function(){const[e,t]=o.useState((()=>Ut?Vt():void 0));return At((()=>{null==e&&t(Vt())}),[]),o.useEffect((()=>{Ut||(Ut=!0)}),[]),e},Ht=o.forwardRef((function(e,t){let{context:{placement:n,elements:{floating:i},middlewareData:{arrow:a}},width:r=14,height:l=7,tipRadius:c=0,strokeWidth:d=0,staticOffset:u,stroke:p,d:v}=e,g=e.style,m=void 0===g?{}:g,{transform:h}=m,_=s(m,["transform"]),f=s(e,["context","width","height","tipRadius","strokeWidth","staticOffset","stroke","d","style"]);const y=zt();if(!i)return null;d*=2;const b=d/2,w=r/2*(c/-8+1),x=l/2*c/4,[T,S]=n.split("-"),k=Ve.isRTL(i),A=!!v,O="top"===T||"bottom"===T,E=u&&"end"===S?"bottom":"top";let P=u&&"end"===S?"right":"left";u&&k&&(P="end"===S?"left":"right");const I=null!=(null==a?void 0:a.x)?u||a.x:"",C=null!=(null==a?void 0:a.y)?u||a.y:"",j=v||"M0,0 H"+r+" L"+(r-w)+","+(l-x)+" Q"+r/2+","+l+" "+w+","+(l-x)+" Z",L={top:A?"rotate(180deg)":"",left:A?"rotate(90deg)":"rotate(-90deg)",bottom:A?"":"rotate(180deg)",right:A?"rotate(-90deg)":"rotate(90deg)"}[T];return o.createElement("svg",Bt({},f,{"aria-hidden":!0,ref:t,width:A?r:r+d,height:r,viewBox:"0 0 "+r+" "+(l>r?l:r),style:Object.assign({position:"absolute",pointerEvents:"none",[P]:I,[E]:C,[T]:O||A?"100%":"calc(100% - "+d/2+"px)",transform:""+L+(null!=h?h:"")},_)}),d>0&&o.createElement("path",{clipPath:"url(#"+y+")",fill:"none",stroke:p,strokeWidth:d+(v?0:1),d:j}),o.createElement("path",{stroke:d&&!v?f.fill:"none",d:j}),o.createElement("clipPath",{id:y},o.createElement("rect",{x:-b,y:b*(A?-1:1),width:r+d,height:r})))})),qt=o.createContext(null),Wt=o.createContext(null),$t=()=>{var e;return(null==(e=o.useContext(qt))?void 0:e.id)||null},Gt=()=>o.useContext(Wt);function Yt(e){return"data-floating-ui-"+e}function Zt(e){const t=(0,o.useRef)(e);return At((()=>{t.current=e})),t}const Kt=Yt("safe-polygon");function Xt(e,t,n){return n&&!D(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function Qt(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),i=n;for(;i.length;)i=e.filter((e=>{var t;return null==(t=i)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(i);return n}let Jt=new WeakMap,en=new WeakSet,tn={},nn=0;const on=e=>e&&(e.host||on(e.parentNode)),an=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=on(t);return e.contains(n)?n:null})).filter((e=>null!=e));function rn(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=R(e[0]).body;return function(e,t,n,i){const o="data-floating-ui-inert",a=i?"inert":n?"aria-hidden":null,r=an(t,e),s=new Set,l=new Set(r),c=[];tn[o]||(tn[o]=new WeakMap);const d=tn[o];return r.forEach((function e(t){t&&!s.has(t)&&(s.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!l.has(t)&&Array.prototype.forEach.call(t.children,(t=>{if(s.has(t))e(t);else{const e=a?t.getAttribute(a):null,n=null!==e&&"false"!==e,i=(Jt.get(t)||0)+1,r=(d.get(t)||0)+1;Jt.set(t,i),d.set(t,r),c.push(t),1===i&&n&&en.add(t),1===r&&t.setAttribute(o,""),!n&&a&&t.setAttribute(a,"true")}}))}(t),s.clear(),nn++,()=>{c.forEach((e=>{const t=(Jt.get(e)||0)-1,n=(d.get(e)||0)-1;Jt.set(e,t),d.set(e,n),t||(!en.has(e)&&a&&e.removeAttribute(a),en.delete(e)),n||e.removeAttribute(o)})),nn--,nn||(Jt=new WeakMap,Jt=new WeakMap,en=new WeakSet,tn={})}}(e.concat(Array.from(i.querySelectorAll("[aria-live]"))),i,t,n)}const sn=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function ln(e,t){const n=ht(e,sn());"prev"===t&&n.reverse();const i=n.indexOf(C(R(e)));return n.slice(i+1)[0]}function cn(){return ln(document.body,"next")}function dn(){return ln(document.body,"prev")}function un(e,t){const n=t||e.currentTarget,i=e.relatedTarget;return!i||!j(n,i)}function pn(e){ht(e,sn()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function vn(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const gn={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function mn(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const hn=o.forwardRef((function(e,t){const[n,i]=o.useState();At((()=>(/apple/i.test(navigator.vendor)&&i("button"),document.addEventListener("keydown",mn),()=>{document.removeEventListener("keydown",mn)})),[]);const a={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[Yt("focus-guard")]:"",style:gn};return o.createElement("span",Bt({},e,a))})),_n=o.createContext(null);function fn(e){let{children:t,id:n,root:i=null,preserveTabOrder:r=!0}=e;const s=function(e){let{id:t,root:n}=void 0===e?{}:e;const[i,a]=o.useState(null),r=zt(),s=yn(),l=o.useMemo((()=>({id:t,root:n,portalContext:s,uniqueId:r})),[t,n,s,r]),c=o.useRef();return At((()=>()=>{null==i||i.remove()}),[i,l]),At((()=>{if(c.current===l)return;c.current=l;const{id:e,root:t,portalContext:n,uniqueId:i}=l,o=e?document.getElementById(e):null,r=Yt("portal");if(o){const e=document.createElement("div");e.id=i,e.setAttribute(r,""),o.appendChild(e),a(e)}else{let o=t||(null==n?void 0:n.portalNode);o&&!O(o)&&(o=o.current),o=o||document.body;let s=null;e&&(s=document.createElement("div"),s.id=e,o.appendChild(s));const l=document.createElement("div");l.id=i,l.setAttribute(r,""),o=s||o,o.appendChild(l),a(l)}}),[l]),i}({id:n,root:i}),[l,c]=o.useState(null),d=o.useRef(null),u=o.useRef(null),p=o.useRef(null),v=o.useRef(null),g=!!l&&!l.modal&&l.open&&r&&!(!i&&!s);return o.useEffect((()=>{if(s&&r&&(null==l||!l.modal))return s.addEventListener("focusin",e,!0),s.addEventListener("focusout",e,!0),()=>{s.removeEventListener("focusin",e,!0),s.removeEventListener("focusout",e,!0)};function e(e){s&&un(e)&&("focusin"===e.type?vn:pn)(s)}}),[s,r,null==l?void 0:l.modal]),o.createElement(_n.Provider,{value:o.useMemo((()=>({preserveTabOrder:r,beforeOutsideRef:d,afterOutsideRef:u,beforeInsideRef:p,afterInsideRef:v,portalNode:s,setFocusManagerState:c})),[r,s])},g&&s&&o.createElement(hn,{"data-type":"outside",ref:d,onFocus:e=>{if(un(e,s)){var t;null==(t=p.current)||t.focus()}else{const e=dn()||(null==l?void 0:l.refs.domReference.current);null==e||e.focus()}}}),g&&s&&o.createElement("span",{"aria-owns":s.id,style:gn}),s&&(0,a.createPortal)(t,s),g&&s&&o.createElement(hn,{"data-type":"outside",ref:u,onFocus:e=>{if(un(e,s)){var t;null==(t=v.current)||t.focus()}else{const t=cn()||(null==l?void 0:l.refs.domReference.current);null==t||t.focus(),(null==l?void 0:l.closeOnFocusOut)&&(null==l||l.onOpenChange(!1,e.nativeEvent))}}}))}const yn=()=>o.useContext(_n),bn=o.forwardRef((function(e,t){return o.createElement("button",Bt({},e,{type:"button",ref:t,tabIndex:-1,style:gn}))}));function wn(e){const{context:t,children:n,disabled:i=!1,order:a=["content"],guards:r=!0,initialFocus:s=0,returnFocus:l=!0,modal:c=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:u=!0}=e,{open:p,refs:v,nodeId:g,onOpenChange:m,events:h,dataRef:_,elements:{domReference:f,floating:y}}=t,b="undefined"==typeof HTMLElement||!("inert"in HTMLElement.prototype)||r,w=Zt(a),x=Zt(s),T=Zt(l),S=Gt(),k=yn(),A="number"==typeof s&&s<0,O=o.useRef(null),P=o.useRef(null),I=o.useRef(!1),L=o.useRef(null),M=o.useRef(!1),N=null!=k,D=f&&"combobox"===f.getAttribute("role")&&V(f)&&A,B=o.useCallback((function(e){return void 0===e&&(e=y),e?ht(e,sn()):[]}),[y]),F=o.useCallback((e=>{const t=B(e);return w.current.map((e=>f&&"reference"===e?f:y&&"floating"===e?y:t)).filter(Boolean).flat()}),[f,y,w,B]);function H(e){return!i&&d&&c?o.createElement(bn,{ref:"start"===e?O:P,onClick:e=>m(!1,e.nativeEvent)},"string"==typeof d?d:"Dismiss"):null}o.useEffect((()=>{if(i||!c)return;function e(e){if("Tab"===e.key){j(y,C(R(y)))&&0===B().length&&!D&&z(e);const t=F(),n=U(e);"reference"===w.current[0]&&n===f&&(z(e),e.shiftKey?kt(t[t.length-1]):kt(t[1])),"floating"===w.current[1]&&n===y&&e.shiftKey&&(z(e),kt(t[0]))}}const t=R(y);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[i,f,y,c,w,v,D,B,F]),o.useEffect((()=>{if(!i&&u)return y&&E(f)?(f.addEventListener("focusout",t),f.addEventListener("pointerdown",e),!c&&y.addEventListener("focusout",t),()=>{f.removeEventListener("focusout",t),f.removeEventListener("pointerdown",e),!c&&y.removeEventListener("focusout",t)}):void 0;function e(){M.current=!0,setTimeout((()=>{M.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(j(f,t)||j(y,t)||j(t,y)||j(null==k?void 0:k.portalNode,t)||null!=t&&t.hasAttribute(Yt("focus-guard"))||S&&(Qt(S.nodesRef.current,g).find((e=>{var n,i;return j(null==(n=e.context)?void 0:n.elements.floating,t)||j(null==(i=e.context)?void 0:i.elements.domReference,t)}))||function(e,t){var n;let i=[],o=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;o;){const t=e.find((e=>e.id===o));o=null==t?void 0:t.parentId,t&&(i=i.concat(t))}return i}(S.nodesRef.current,g).find((e=>{var n,i;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(i=e.context)?void 0:i.elements.domReference)===t}))));t&&n&&!M.current&&t!==L.current&&(I.current=!0,m(!1,e))}))}}),[i,f,y,c,g,S,k,m,u]),o.useEffect((()=>{var e;if(i)return;const t=Array.from((null==k||null==(e=k.portalNode)?void 0:e.querySelectorAll("["+Yt("portal")+"]"))||[]);if(y){const e=[y,...t,O.current,P.current,w.current.includes("reference")||D?f:null].filter((e=>null!=e)),n=c?rn(e,b,!b):rn(e);return()=>{n()}}}),[i,f,y,c,w,k,D,b]),At((()=>{if(i||!y)return;const e=C(R(y));queueMicrotask((()=>{const t=F(y),n=x.current,i=("number"==typeof n?t[n]:n.current)||y,o=j(y,e);A||o||!p||kt(i,{preventScroll:i===y})}))}),[i,p,y,A,F,x]),At((()=>{if(i||!y)return;let e=!1;const t=R(y),n=C(t),o=_.current;function a(t){if("escapeKey"===t.type&&v.domReference.current&&(L.current=v.domReference.current),["referencePress","escapeKey"].includes(t.type))return;const n=t.data.returnFocus;"object"==typeof n?(I.current=!1,e=n.preventScroll):I.current=!n}return L.current=n,h.on("dismiss",a),()=>{h.off("dismiss",a);const n=C(t);(j(y,n)||S&&Qt(S.nodesRef.current,g).some((e=>{var t;return j(null==(t=e.context)?void 0:t.elements.floating,n)}))||o.openEvent&&["click","mousedown"].includes(o.openEvent.type))&&v.domReference.current&&(L.current=v.domReference.current),T.current&&E(L.current)&&!I.current&&kt(L.current,{cancelPrevious:!1,preventScroll:e})}}),[i,y,T,_,v,h,S,g]),At((()=>{if(!i&&k)return k.setFocusManagerState({modal:c,closeOnFocusOut:u,open:p,onOpenChange:m,refs:v}),()=>{k.setFocusManagerState(null)}}),[i,k,c,p,m,v,u]),At((()=>{if(!i&&y&&"function"==typeof MutationObserver&&!A){const e=()=>{const e=y.getAttribute("tabindex");w.current.includes("floating")||C(R(y))!==v.domReference.current&&0===B().length?"0"!==e&&y.setAttribute("tabindex","0"):"-1"!==e&&y.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(y,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}}),[i,y,v,w,B,A]);const q=!i&&b&&!D&&(N||c);return o.createElement(o.Fragment,null,q&&o.createElement(hn,{"data-type":"inside",ref:null==k?void 0:k.beforeInsideRef,onFocus:e=>{if(c){const e=F();kt("reference"===a[0]?e[0]:e[e.length-1])}else if(null!=k&&k.preserveTabOrder&&k.portalNode)if(I.current=!1,un(e,k.portalNode)){const e=cn()||f;null==e||e.focus()}else{var t;null==(t=k.beforeOutsideRef.current)||t.focus()}}}),!D&&H("start"),n,H("end"),q&&o.createElement(hn,{"data-type":"inside",ref:null==k?void 0:k.afterInsideRef,onFocus:e=>{if(c)kt(F()[0]);else if(null!=k&&k.preserveTabOrder&&k.portalNode)if(u&&(I.current=!0),un(e,k.portalNode)){const e=dn()||f;null==e||e.focus()}else{var t;null==(t=k.afterOutsideRef.current)||t.focus()}}}))}const xn=new Set,Tn=o.forwardRef((function(e,t){let{lockScroll:n=!1}=e,i=s(e,["lockScroll"]);const a=zt();return At((()=>{if(!n)return;xn.add(a);const e=/iP(hone|ad|od)|iOS/.test(L()),t=document.body.style,i=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",o=window.innerWidth-document.documentElement.clientWidth,r=t.left?parseFloat(t.left):window.pageXOffset,s=t.top?parseFloat(t.top):window.pageYOffset;if(t.overflow="hidden",o&&(t[i]=o+"px"),e){var l,c;const e=(null==(l=window.visualViewport)?void 0:l.offsetLeft)||0,n=(null==(c=window.visualViewport)?void 0:c.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(s-Math.floor(n))+"px",left:-(r-Math.floor(e))+"px",right:"0"})}return()=>{xn.delete(a),0===xn.size&&(Object.assign(t,{overflow:"",[i]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(r,s)))}}),[a,n]),o.createElement("div",Bt({ref:t},i,{style:Object.assign({position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0},i.style)}))}));function Sn(e){return E(e.target)&&"BUTTON"===e.target.tagName}function kn(e){return V(e)}function An(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,dataRef:a,elements:{domReference:r}}=e,{enabled:s=!0,event:l="click",toggle:c=!0,ignoreMouse:d=!1,keyboardHandlers:u=!0}=t,p=o.useRef(),v=o.useRef(!1);return o.useMemo((()=>s?{reference:{onPointerDown(e){p.current=e.pointerType},onMouseDown(e){0===e.button&&(D(p.current,!0)&&d||"click"!==l&&(!n||!c||a.current.openEvent&&"mousedown"!==a.current.openEvent.type?(e.preventDefault(),i(!0,e.nativeEvent)):i(!1,e.nativeEvent)))},onClick(e){"mousedown"===l&&p.current?p.current=void 0:D(p.current,!0)&&d||(!n||!c||a.current.openEvent&&"click"!==a.current.openEvent.type?i(!0,e.nativeEvent):i(!1,e.nativeEvent))},onKeyDown(e){p.current=void 0,e.defaultPrevented||!u||Sn(e)||(" "!==e.key||kn(r)||(e.preventDefault(),v.current=!0),"Enter"===e.key&&i(!n||!c,e.nativeEvent))},onKeyUp(e){e.defaultPrevented||!u||Sn(e)||kn(r)||" "===e.key&&v.current&&(v.current=!1,i(!n||!c,e.nativeEvent))}}}:{}),[s,a,l,d,u,r,c,n,i])}const On=(i||(i=n.t(o,2)))["useInsertionEffect".toString()]||(e=>e());function En(e){const t=o.useRef((()=>{}));return On((()=>{t.current=e})),o.useCallback((function(){for(var e=arguments.length,n=new Array(e),i=0;i!1),x="function"==typeof v?w:v,T=o.useRef(!1),{escapeKeyBubbles:A,outsidePressBubbles:P}=(e=>{var t,n;return{escapeKeyBubbles:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePressBubbles:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}})(f),C=En((e=>{if(!n||!u||!p||"Escape"!==e.key)return;const t=y?Qt(y.nodesRef.current,r):[];if(!A&&(e.stopPropagation(),t.length>0)){let e=!0;if(t.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}a.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),i(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e)})),L=En((e=>{const t=T.current;if(T.current=!1,t)return;if("function"==typeof x&&!x(e))return;const n=U(e),o="["+Yt("inert")+"]",s=R(c).querySelectorAll(o);let d=O(n)?n:null;for(;d&&!["html","body","#document"].includes(S(d));){const e=I(d);if(e===R(c).body||!O(e))break;d=e}if(s.length&&O(n)&&!n.matches("html,body")&&!j(n,c)&&Array.from(s).every((e=>!j(d,e))))return;if(E(n)&&c){const t=n.clientWidth>0&&n.scrollWidth>n.clientWidth,i=n.clientHeight>0&&n.scrollHeight>n.clientHeight;let o=i&&e.offsetX>n.clientWidth;if(i){"rtl"===(u=n,k(u).getComputedStyle(u)).direction&&(o=e.offsetX<=n.offsetWidth-n.clientWidth)}if(o||t&&e.offsetY>n.clientHeight)return}var u;const p=y&&Qt(y.nodesRef.current,r).some((t=>{var n;return B(e,null==(n=t.context)?void 0:n.elements.floating)}));if(B(e,c)||B(e,l)||p)return;const v=y?Qt(y.nodesRef.current,r):[];if(v.length>0){let e=!0;if(v.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}a.emit("dismiss",{type:"outsidePress",data:{returnFocus:b?{preventScroll:!0}:M(e)||N(e)}}),i(!1,e)}));return o.useEffect((()=>{if(!n||!u)return;function e(e){i(!1,e)}d.current.__escapeKeyBubbles=A,d.current.__outsidePressBubbles=P;const t=R(c);p&&t.addEventListener("keydown",C),x&&t.addEventListener(g,L);let o=[];return _&&(O(l)&&(o=Oe(l)),O(c)&&(o=o.concat(Oe(c))),!O(s)&&s&&s.contextElement&&(o=o.concat(Oe(s.contextElement)))),o=o.filter((e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)})),o.forEach((t=>{t.addEventListener("scroll",e,{passive:!0})})),()=>{p&&t.removeEventListener("keydown",C),x&&t.removeEventListener(g,L),o.forEach((t=>{t.removeEventListener("scroll",e)}))}}),[d,c,l,s,p,x,g,n,i,_,u,A,P,C,L]),o.useEffect((()=>{T.current=!1}),[x,g]),o.useMemo((()=>u?{reference:{onKeyDown:C,[Pn[h]]:e=>{m&&(a.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),i(!1,e.nativeEvent))}},floating:{onKeyDown:C,[In[g]]:()=>{T.current=!0}}}:{}),[u,a,m,g,h,i,C])}function jn(e){var t;void 0===e&&(e={});const{open:n=!1,onOpenChange:i,nodeId:r}=e,[s,l]=o.useState(null),c=(null==(t=e.elements)?void 0:t.reference)||s,d=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:s,floating:l}={},transform:c=!0,whileElementsMounted:d,open:u}=e,[p,v]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,m]=o.useState(i);Ge(g,i)||m(i);const[h,_]=o.useState(null),[f,y]=o.useState(null),b=o.useCallback((e=>{e!==S.current&&(S.current=e,_(e))}),[]),w=o.useCallback((e=>{e!==k.current&&(k.current=e,y(e))}),[]),x=s||h,T=l||f,S=o.useRef(null),k=o.useRef(null),A=o.useRef(p),O=null!=d,E=Ke(d),P=Ke(r),I=o.useCallback((()=>{if(!S.current||!k.current)return;const e={placement:t,strategy:n,middleware:g};P.current&&(e.platform=P.current),We(S.current,k.current,e).then((e=>{const t=Object.assign(Object.assign({},e),{isPositioned:!0});C.current&&!Ge(A.current,t)&&(A.current=t,a.flushSync((()=>{v(t)})))}))}),[g,t,n,P]);$e((()=>{!1===u&&A.current.isPositioned&&(A.current.isPositioned=!1,v((e=>Object.assign(Object.assign({},e),{isPositioned:!1}))))}),[u]);const C=o.useRef(!1);$e((()=>(C.current=!0,()=>{C.current=!1})),[]),$e((()=>{if(x&&(S.current=x),T&&(k.current=T),x&&T){if(E.current)return E.current(x,T,I);I()}}),[x,T,I,E,O]);const j=o.useMemo((()=>({reference:S,floating:k,setReference:b,setFloating:w})),[b,w]),L=o.useMemo((()=>({reference:x,floating:T})),[x,T]),M=o.useMemo((()=>{const e={position:n,left:0,top:0};if(!L.floating)return e;const t=Ze(L.floating,p.x),i=Ze(L.floating,p.y);return c?Object.assign(Object.assign(Object.assign({},e),{transform:"translate("+t+"px, "+i+"px)"}),Ye(L.floating)>=1.5&&{willChange:"transform"}):{position:n,left:t,top:i}}),[n,c,L.floating,p.x,p.y]);return o.useMemo((()=>Object.assign(Object.assign({},p),{update:I,refs:j,elements:L,floatingStyles:M})),[p,I,j,L,M])}(e),u=Gt(),p=En(((e,t)=>{e&&(g.current.openEvent=t),null==i||i(e,t)})),v=o.useRef(null),g=o.useRef({}),m=o.useState((()=>function(){const e=new Map;return{emit(t,n){var i;null==(i=e.get(t))||i.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var i;e.set(t,(null==(i=e.get(t))?void 0:i.filter((e=>e!==n)))||[])}}}()))[0],h=zt(),_=o.useCallback((e=>{const t=O(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;d.refs.setReference(t)}),[d.refs]),f=o.useCallback((e=>{(O(e)||null===e)&&(v.current=e,l(e)),(O(d.refs.reference.current)||null===d.refs.reference.current||null!==e&&!O(e))&&d.refs.setReference(e)}),[d.refs]),y=o.useMemo((()=>Object.assign(Object.assign({},d.refs),{setReference:f,setPositionReference:_,domReference:v})),[d.refs,f,_]),b=o.useMemo((()=>Object.assign(Object.assign({},d.elements),{domReference:c})),[d.elements,c]),w=o.useMemo((()=>Object.assign(Object.assign({},d),{refs:y,elements:b,dataRef:g,nodeId:r,floatingId:h,events:m,open:n,onOpenChange:p})),[d,r,h,m,n,p,y,b]);return At((()=>{const e=null==u?void 0:u.nodesRef.current.find((e=>e.id===r));e&&(e.context=w)})),o.useMemo((()=>Object.assign(Object.assign({},d),{context:w,refs:y,elements:b})),[d,y,b,w])}function Ln(e,t,n){const i=new Map;return Object.assign(Object.assign(Object.assign({},"floating"===n&&{tabIndex:-1}),e),t.map((e=>e?e[n]:null)).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,o]=t;var a;0===n.indexOf("on")?(i.has(n)||i.set(n,[]),"function"==typeof o&&(null==(a=i.get(n))||a.push(o),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),a=0;ae(...o))).find((e=>void 0!==e))})):e[n]=o})),e):e),{}))}function Mn(e){void 0===e&&(e=[]);const t=e,n=o.useCallback((t=>Ln(t,e,"reference")),t),i=o.useCallback((t=>Ln(t,e,"floating")),t),a=o.useCallback((t=>Ln(t,e,"item")),e.map((e=>null==e?void 0:e.item)));return o.useMemo((()=>({getReferenceProps:n,getFloatingProps:i,getItemProps:a})),[n,i,a])}function Nn(e,t){void 0===t&&(t={});const{open:n,floatingId:i}=e,{enabled:a=!0,role:r="dialog"}=t,s=zt();return o.useMemo((()=>{const e={id:i,role:r};return a?"tooltip"===r?{reference:{"aria-describedby":n?i:void 0},floating:e}:{reference:Object.assign(Object.assign({"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===r?"dialog":r,"aria-controls":n?i:void 0},"listbox"===r&&{role:"combobox"}),"menu"===r&&{id:s}),floating:Object.assign(Object.assign({},e),"menu"===r&&{"aria-labelledby":s})}:{}}),[a,r,n,i,s])}function Dn(e,t){void 0===t&&(t={});const{open:n,elements:{floating:i}}=e,{duration:a=250}=t,r=("number"==typeof a?a:a.close)||0,[s,l]=o.useState(!1),[c,d]=o.useState("unmounted"),u=function(e,t){const[n,i]=o.useState(e);return e&&!n&&i(!0),o.useEffect((()=>{if(!e){const e=setTimeout((()=>i(!1)),t);return()=>clearTimeout(e)}}),[e,t]),n}(n,r);return At((()=>{s&&!u&&d("unmounted")}),[s,u]),At((()=>{if(i){if(n){d("initial");const e=requestAnimationFrame((()=>{d("open")}));return()=>{cancelAnimationFrame(e)}}l(!0),d("close")}}),[n,i]),{isMounted:u,status:c}}const Rn="TUXToastProvider-topOutlet",Bn="TUXToastProvider-bottomOutlet",Un="TUXToastProvider-centerOutlet",Fn={top:Rn,bottom:Bn,center:Un},Vn=(0,o.createContext)(void 0),zn=({topToastOffset:e,bottomToastOffset:t,children:n})=>{const i=(0,o.useRef)(0),[a,r]=(0,o.useState)([]),s=f(),l=(0,o.useCallback)((e=>{r((t=>t.map((t=>t.id===e?Object.assign(Object.assign({},t),{transitionStatus:"exiting"}):t)))),setTimeout((()=>{r((t=>t.filter((t=>t.id!==e))))}),200)}),[]),c=(0,o.useCallback)(((e,t,n)=>{const o=i.current;return i.current+=1,r((n=>[...n,Object.assign({id:o,listId:e,transitionStatus:"entered",dismiss:()=>l(o)},t)])),setTimeout((()=>{l(o)}),n||5e3),o}),[l]),d=(0,o.useCallback)(((e,t,n)=>{if(!a.length)return void c(e,t,n);const i=Object.assign(Object.assign({},a[0]),t);r([i])}),[c,a]),u=void 0!==e?`${e}px`:"env(safe-area-inset-top)",p=void 0!==t?`${t}px`:"env(safe-area-inset-bottom)";return o.createElement(Vn.Provider,{value:{addToast:c,removeToast:l,addToastSingleMode:d,getToasts:e=>a.filter((t=>t.listId===e))}},n,o.createElement(fn,null,o.createElement("div",{id:Rn,className:"TUXToastProvider-topOutlet",style:{zIndex:s.zIndex.toast,top:u}}),o.createElement("div",{id:Un,className:"TUXToastProvider-center-outlet",style:{zIndex:s.zIndex.toast,top:u}}),o.createElement("div",{className:"TUXToastProvider-bottomOutletContainer",style:{zIndex:s.zIndex.toast,bottom:p}},o.createElement("div",{id:Bn,className:"TUXToastProvider-bottomOutlet"}),o.createElement("div",{id:"TUXToastProvider-noticeOutlet",className:"TUXToastProvider-noticeOutlet"}))))},Hn=(0,o.createContext)({idRef:null});let qn=!1,Wn=0;const $n=()=>"tux-web-"+Wn++,Gn=()=>{const[e,t]=(0,o.useState)((()=>qn?$n():void 0));return(0,o.useLayoutEffect)((()=>{void 0===e&&t($n())}),[]),(0,o.useEffect)((()=>{qn||(qn=!0)}),[]),null!=e?e:""},Yn=()=>{const{idRef:e}=(0,o.useContext)(Hn),[t]=(0,o.useState)((()=>{if(e){const t=e.current++;return String(t)}return""}));return`tux-web-${t}`},Zn=()=>{const{idRef:e}=(0,o.useContext)(Hn);let t=Gn;return e&&(t=Yn),t()},Kn=()=>{const e=(0,o.useContext)(Vn);if(!e)throw Error("ToastContext is undefined when calling useTUXToast. Make sure to wrap your app with TUXProvider.");const t=Zn(),n=e.getToasts(t);return{id:t,show:(n,i)=>{e.addToast(t,n,i)},showSingleMode:(n,i)=>{e.addToastSingleMode(t,n,i)},dismiss:t=>{e.removeToast(t)},list:n}};function Xn(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t{var{transitionStatus:t,position:n,children:i}=e,a=s(e,["transitionStatus","position","children"]);return o.createElement("div",Object.assign({className:Qn("TUXToast",`TUXToast--${n}--${t}`)},a),i)},ei=({state:e,position:t,render:n})=>{const i=Fn[t];return o.createElement(o.Fragment,null,e.list.map((e=>o.createElement(fn,{key:e.id,id:i},o.createElement(Jn,{position:t,transitionStatus:e.transitionStatus},n(e))))))},ti=e=>{var{size:t,weight:n,font:i="TikTok Sans",color:a,align:r,truncate:c,italic:d,underline:u,strikethrough:p,as:v="span",children:g,className:m,style:h}=e,_=s(e,["size","weight","font","color","align","truncate","italic","underline","strikethrough","as","children","className","style"]);const f=i.toLowerCase().replace(/\s/g,"-"),y=[u&&"underline",p&&"strikethrough"].filter((e=>e)).join("-");return o.createElement(v,Object.assign({className:Qn("TUXText",`TUXText--${f}`,n&&`TUXText--weight-${n}`,y&&`TUXText--${y}`,c&&"TUXText--truncate",d&&"TUXText--italic",r&&`TUXText--align-${r}`,m),style:Object.assign({color:a?l[a]:"inherit",fontSize:t?`${t}px`:"inherit"},h)},_),g)},ni=e=>{var{content:t,leading:n,trailing:i}=e,a=s(e,["content","leading","trailing"]);return o.createElement("div",Object.assign({className:"TUXBottomToast"},a),n?o.createElement("div",{className:"TUXBottomToast-leading"},n):null,o.createElement(ti,{className:"TUXBottomToast-content",as:"div",size:15,weight:"normal"},t),i?o.createElement("div",{className:"TUXBottomToast-trailing"},i):null)},ii=e=>{var{content:t,leading:n}=e,i=s(e,["content","leading"]);return o.createElement("div",Object.assign({className:"TUXTopToast","data-tux-color-scheme":"dark"},i),n?o.createElement("div",{className:"TUXTopToast-leading"},n):null,o.createElement(ti,{className:"TUXTopToast-content",as:"div",size:14,weight:"normal"},t))},oi=e=>{var{className:t}=e,n=s(e,["className"]);return o.createElement("button",Object.assign({type:"button",className:Qn("TUXUnstyledButton",t)},n))};function ai(){return ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t({color:t,size:n,autoMirror:i,className:a,style:r})=>{const s=x(),c=e;return o.createElement(c,{className:a,color:t?l[t]:"inherit",fontSize:void 0!==n?n:"inherit",style:Object.assign(Object.assign({},i&&"rtl"===s&&{transform:"scaleX(-1)"}),r)})},xo=wo(si),To=wo(li),So=wo(ci),ko=wo(di),Ao=wo(ui),Oo=wo(pi),Eo=wo(vi),Po=wo(gi),Io=wo(mi),Co=wo(hi),jo=wo(_i),Lo=wo(yi),Mo=wo(fi),No=wo(bi),Do=wo(wi),Ro=wo(xi),Bo=wo(Ti),Uo=wo(ki),Fo=wo(Ai),Vo=wo(Oi),zo=wo(Ei),Ho=wo(Pi),qo=wo(Ii),Wo=wo(Ci),$o=wo(ji),Go=wo(Li),Yo=wo(Ni),Zo=wo(Mi),Ko=wo(Ri),Xo=wo(Ui),Qo=wo(Bi),Jo=wo(Fi),ea=wo(Vi),ta=wo(zi),na=wo(Hi),ia=wo(qi),oa=wo(Wi),aa=wo($i),ra=wo(Gi),sa=wo(Yi),la=wo(Zi),ca=wo(Ki),da=wo(Xi),ua=wo(Qi),pa=wo(Ji),va=wo(eo),ga=wo(to),ma=wo(no),ha=wo(io),_a=wo(oo),fa=wo(ao),ya=wo(ro),ba=wo(so),wa=wo(lo),xa=wo(co),Ta=wo(uo),Sa=wo(po),ka=wo(vo),Aa=wo(go),Oa=wo(ho),Ea=wo(_o),Pa=wo(fo),Ia=wo(bo),Ca=wo(yo),ja=({colorSchemePreference:e,textDirection:t,safeAreaInsetTop:n,topToastOffset:i,bottomToastOffset:a,zIndexConfig:r,children:s})=>{const l=(0,o.useRef)(0);return o.createElement(Hn.Provider,{value:{idRef:l}},o.createElement(_,{safeAreaInsetTop:n,zIndexConfig:r},o.createElement(u,{colorSchemePreference:e},o.createElement(w,{textDirection:t},o.createElement(zn,{topToastOffset:i,bottomToastOffset:a},s)))))},La=e=>({dir:e.textDirection,"data-tux-color-scheme":e.colorSchemePreference}),Ma={large:48,medium:32,small:20},Na=e=>{var{size:t="small",className:n,style:i}=e,a=s(e,["size","className","style"]);const r=Ma[t],l=Zn(),c=`red-hole-${l}`,d=`green-hole-${l}`;return o.createElement("div",Object.assign({className:Qn("TUXLoading-container",n),style:Object.assign({width:r,height:r},i)},a),o.createElement("svg",{id:l,preserveAspectRatio:"none",viewBox:"-24 0 136 136",width:r,height:r},o.createElement("defs",null,o.createElement("mask",{id:c},o.createElement("rect",{width:"100%",height:"100%",fill:"white",x:"-33"}),o.createElement("circle",{cx:53,cy:68,r:17,className:Qn("TUXLoading-redhole","TUXLoading-redhole--isBlack")})),o.createElement("mask",{id:d},o.createElement("rect",{width:"100%",height:"100%",fill:"white",x:"-33"}),o.createElement("circle",{cx:17,cy:68,r:17,className:Qn("TUXLoading-greenhole","TUXLoading-greenhole--isBlack")}))),o.createElement("circle",{cx:17,cy:68,r:17,className:"TUXLoading-blackhole"}),o.createElement("circle",{cx:17,cy:68,r:17,className:"TUXLoading-greenhole",mask:`url(#${c})`}),o.createElement("circle",{cx:53,cy:68,r:17,className:"TUXLoading-redhole",mask:`url(#${d})`})))},Da={large:48,medium:32,small:20},Ra={normal:3,thin:2},Ba=e=>{var{size:t="small",variant:n="normal",className:i,style:a}=e,r=s(e,["size","variant","className","style"]);const l=Da[t],c=Ra[n],d=24-c,u=Math.PI*d;return o.createElement("div",Object.assign({className:Qn("TUXLoadingSpinner-container",i),style:Object.assign({width:l,height:l},a)},r),o.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,className:"TUXLoadingSpinner"},o.createElement("circle",{cx:12,cy:12,r:d/2,stroke:"currentColor",strokeWidth:c,strokeDasharray:`${u}`,strokeDashoffset:u-.8*u,strokeLinecap:"round",fill:"none"})))},Ua=(0,o.forwardRef)(((e,t)=>{var{label:n,shape:i="default",size:a="medium",variant:r="primary",type:l="button",leadingIcon:c,trailingIcon:d,disabled:u=!1,loading:p=!1,onClick:v,onDisabledClick:g,className:m}=e,h=s(e,["label","shape","size","variant","type","leadingIcon","trailingIcon","disabled","loading","onClick","onDisabledClick","className"]);const _=p||u;return o.createElement("button",Object.assign({className:Qn("TUXButton",`TUXButton--${i}`,`TUXButton--${a}`,`TUXButton--${r}`,_&&"TUXButton--disabled",p&&"TUXButton--loading",m),ref:t,onClick:_?g:v,"aria-disabled":_,disabled:_,type:l},h),o.createElement("div",{className:"TUXButton-content"},c?o.createElement("div",{className:"TUXButton-iconContainer"},c):null,n?o.createElement("div",{className:"TUXButton-label"},n):null,d?o.createElement("div",{className:"TUXButton-iconContainer"},d):null),p?o.createElement(Ba,{className:"TUXButton-spinner"}):null)}));Ua.displayName="TUXButton";const Fa=e=>{var t=s(e,[]);return o.createElement("svg",Object.assign({height:"1em",width:"1em",viewBox:"0 0 14 14",fill:"currentColor"},t),o.createElement("path",{d:"M0.333252 6.99967C0.333252 3.31778 3.31802 0.333008 6.99992 0.333008C10.6818 0.333008 13.6666 3.31778 13.6666 6.99967C13.6666 7.36786 13.3681 7.66634 12.9999 7.66634C12.6317 7.66634 12.3333 7.36786 12.3333 6.99967C12.3333 4.05416 9.94544 1.66634 6.99992 1.66634C4.0544 1.66634 1.66659 4.05416 1.66659 6.99967C1.66659 9.94519 4.0544 12.333 6.99992 12.333C8.25704 12.333 9.41093 11.8989 10.3225 11.1719C10.6104 10.9423 11.0298 10.9896 11.2594 11.2774C11.489 11.5653 11.4417 11.9847 11.1539 12.2143C10.0147 13.1229 8.56984 13.6663 6.99992 13.6663C3.31802 13.6663 0.333252 10.6816 0.333252 6.99967Z"}))},Va=e=>{var{label:t,description:n,size:i="medium",loading:a=!1,disabled:r=!1,onChange:l,labelPosition:c="after",className:d,style:u}=e,p=s(e,["label","description","size","loading","disabled","onChange","labelPosition","className","style"]);const v=Zn(),m=a||r,h=x(),_=o.createElement("div",{className:"TUXSwitch-labelContainer"},o.createElement("label",{className:"TUXSwitch-label",htmlFor:v},t),n?o.createElement("div",{className:"TUXSwitch-description"},n):null);return o.createElement("div",{className:Qn("TUXSwitch",d),"data-size":i,"data-disabled":m,"data-loading":a,"data-label-position":c,"data-text-direction":h,style:u},"before"===c?_:null,o.createElement("div",{className:"TUXSwitch-inputContainer"},o.createElement("input",Object.assign({id:v,className:"TUXSwitch-input",role:"switch",type:"checkbox",onChange:m?g:e=>{l(e.target.checked)},"aria-disabled":m},p)),o.createElement("div",{className:"TUXSwitch-handle"},a?o.createElement(Fa,{className:"TUXSwitch-spinner"}):null)),"after"===c?_:null)},za=e=>o.createElement("svg",Object.assign({viewBox:"0 0 8 2",fill:"none"},e),o.createElement("path",{d:"M0 0.466667C0 0.208934 0.208934 0 0.466667 0H7.53333C7.79107 0 8 0.208934 8 0.466667V1.53333C8 1.79107 7.79107 2 7.53333 2H0.466667C0.208934 2 0 1.79107 0 1.53333V0.466667Z",fill:"currentColor"})),Ha=e=>o.createElement("svg",Object.assign({viewBox:"0 0 26 24",fill:"none"},e),o.createElement("path",{d:"M25.0139 1.77347C25.4794 2.07079 25.6156 2.68912 25.3183 3.15454L13.0799 22.3118C12.656 22.9754 11.9442 23.4005 11.1589 23.459C10.3737 23.5175 9.60676 23.2027 9.08914 22.6093L1.02329 13.3629C0.660243 12.9467 0.703321 12.315 1.11951 11.952L3.38024 9.97989C3.79643 9.61683 4.42812 9.65991 4.79117 10.0761L10.6631 16.8075L21.1047 0.462741C21.4021 -0.00267747 22.0204 -0.138942 22.4858 0.158386L25.0139 1.77347Z",fill:"currentColor"})),qa=e=>{var{id:t,size:n="medium",shape:i="circle",disabled:a,indeterminate:r,hasError:l=!1,className:c,style:d}=e,u=s(e,["id","size","shape","disabled","indeterminate","hasError","className","style"]);return o.createElement("div",{className:Qn("TUXCheckboxStandalone",`TUXCheckboxStandalone--${n}`,`TUXCheckboxStandalone--${i}`,a&&"TUXCheckboxStandalone--disabled",r&&"TUXCheckboxStandalone--indeterminate",l&&"TUXCheckboxStandalone--hasError",c),style:d},o.createElement("input",Object.assign({className:"TUXCheckboxStandalone-input",id:t,type:"checkbox",disabled:a},u)),o.createElement("div",{className:"TUXCheckboxStandalone-indicator"},r?o.createElement(za,{className:"TUXCheckboxStandalone-indeterminateIcon"}):o.createElement(Ha,{className:"TUXCheckboxStandalone-checkedIcon"})))},Wa=e=>{var{label:t,description:n,onChange:i,required:a,disabled:r=!1,size:l="medium",labelPosition:c="after",className:d,style:u}=e,p=s(e,["label","description","onChange","required","disabled","size","labelPosition","className","style"]);const v=Zn(),g=o.createElement("div",{className:"TUXCheckbox-labelContainer"},o.createElement("label",{className:"TUXCheckbox-label",htmlFor:v},t),n?o.createElement("div",{className:"TUXCheckbox-description"},n):null);return o.createElement("div",{className:Qn("TUXCheckbox",d),"data-size":l,"data-disabled":r,"data-label-position":c,style:u},"before"===c?g:null,o.createElement(qa,Object.assign({id:v,size:l,onChange:e=>{null==i||i(e.target.checked)},disabled:r},p)),"after"===c?g:null)},$a=e=>{var{label:t,values:n,onChange:i,options:a,description:r,error:l,hideLabel:c=!1,className:d,style:u}=e,p=s(e,["label","values","onChange","options","description","error","hideLabel","className","style"]);const v=Zn(),g=`${v}_name`,m=`${v}_legend`;return o.createElement(o.Fragment,null,o.createElement("fieldset",Object.assign({className:Qn("TUXCheckboxGroup-fieldset",d),style:u,"aria-describedby":r?m:void 0},p),c?null:o.createElement("div",{className:"TUXCheckboxGroup-header"},o.createElement("legend",{className:"TUXCheckboxGroup-legend"},o.createElement(ti,{size:16,color:"UIText1",weight:"medium"},t)),r?o.createElement("div",{id:m,className:"TUXCheckboxGroup-description"},o.createElement(ti,{size:13,color:"UIText2",weight:"normal"},r)):null),o.createElement("div",{className:"TUXCheckboxGroup-content"},a.map((e=>o.createElement(Wa,{key:e.value,label:e.label,name:g,value:e.value,onChange:t=>((e,t)=>{i(t?[...n,e]:n.filter((t=>t!==e)))})(e.value,t),checked:n.includes(e.value),disabled:e.disabled,shape:"square",hasError:Boolean(l)})))),l?o.createElement(ti,{className:"TUXCheckboxGroup-error",color:"UITextDanger",size:13,weight:"normal"},o.createElement(aa,{className:"TUXCheckboxGroup-errorIcon"}),o.createElement("div",null,l)):null))},Ga=e=>{var{size:t}=e,n=s(e,["size"]);return o.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},n),o.createElement("path",{d:"M9.85648 18.0129L19.7212 2.7675C19.8712 2.53566 20.1808 2.46932 20.4126 2.61934L21.588 3.37989C21.8198 3.5299 21.8862 3.83946 21.7362 4.0713L11.0078 20.6515C10.8033 20.9675 10.4624 21.1693 10.0869 21.1965C9.7115 21.2237 9.34507 21.0731 9.0972 20.7898L2.42645 13.1661C2.24461 12.9583 2.26567 12.6424 2.47349 12.4606L3.5271 11.5387C3.73491 11.3568 4.0508 11.3779 4.23264 11.5857L9.85648 18.0129Z",fill:"currentColor"}))},Ya=e=>{var{size:t}=e,n=s(e,["size"]);return"small"===t?o.createElement("svg",Object.assign({viewBox:"0 0 16 16"},n),o.createElement("circle",{cx:"8",cy:"8",r:"4.75",stroke:"currentColor",fill:l.UIImageOverlayWhite,strokeWidth:"3.6"})):o.createElement("svg",Object.assign({viewBox:"0 0 24 24"},n),o.createElement("circle",{cx:"12",cy:"12",r:"6.5",stroke:"currentColor",fill:l.UIImageOverlayWhite,strokeWidth:"4.2"}))},Za=e=>{var{size:t}=e,n=s(e,["size"]);return"small"===t?o.createElement("svg",Object.assign({viewBox:"0 0 16 16"},n),o.createElement("circle",{cx:"8",cy:"8",r:"7.25",stroke:"currentColor",fill:"transparent",strokeWidth:"1.5"})):o.createElement("svg",Object.assign({viewBox:"0 0 24 24"},n),o.createElement("circle",{cx:"12",cy:"12",r:"9.25",stroke:"currentColor",fill:"transparent",strokeWidth:"1.5"}))},Ka=e=>{var{size:t}=e,n=s(e,["size"]);return"small"===t?o.createElement("svg",Object.assign({viewBox:"0 0 16 16"},n),o.createElement("circle",{cx:"8",cy:"8",r:"6.5",stroke:"currentColor",fill:l.UIShapeNeutral4,strokeWidth:"0"})):o.createElement("svg",Object.assign({viewBox:"0 0 24 24"},n),o.createElement("circle",{cx:"12",cy:"12",r:"8.5",stroke:"currentColor",fill:l.UIShapeNeutral4,strokeWidth:"0"}))},Xa=e=>{var{checked:t=!1,disabled:n=!1,size:i="medium",indicator:a="radio",className:r,style:l}=e,c=s(e,["checked","disabled","size","indicator","className","style"]);return o.createElement("div",{className:Qn("TUXRadioStandalone",`TUXRadioStandalone--${i}`,t&&"TUXRadioStandalone--checked",n&&"TUXRadioStandalone--disabled",r),style:l},o.createElement("input",Object.assign({type:"radio",className:"TUXRadioStandalone-input",disabled:n,checked:t},c)),"radio"===a?o.createElement(o.Fragment,null,o.createElement(Za,{className:"TUXRadioStandalone-circleOutside",size:i}),o.createElement(Ya,{className:"TUXRadioStandalone-circleInside",size:i}),o.createElement(Ka,{className:"TUXRadioStandalone-circleDisabled",size:i})):o.createElement(Ga,{className:"TUXRadioStandalone-check",size:i}))},Qa=e=>{var{label:t,description:n,name:i,value:a,checked:r,onChange:l,disabled:c=!1,size:d="medium",indicator:u="radio",labelPosition:p="after",className:v,style:g}=e,m=s(e,["label","description","name","value","checked","onChange","disabled","size","indicator","labelPosition","className","style"]);const h=Zn(),_=o.createElement("div",{className:"TUXRadio-labelContainer"},o.createElement("label",{className:"TUXRadio-label",htmlFor:h},t),n?o.createElement("div",{className:"TUXRadio-description"},n):null);return o.createElement("div",{className:Qn("TUXRadio",v),"data-size":d,"data-disabled":c,"data-label-position":p,style:g},"before"===p?_:null,o.createElement(Xa,Object.assign({id:h,name:i,value:a,checked:r,onChange:()=>{null==l||l(a)},size:d,disabled:c,indicator:u},m)),"after"===p?_:null)},Ja=e=>{var{label:t,value:n,onChange:i,options:a,description:r,error:l,hideLabel:c=!1,className:d,style:u}=e,p=s(e,["label","value","onChange","options","description","error","hideLabel","className","style"]);const v=Zn(),g=`${v}_name`,m=`${v}_legend`;return o.createElement(o.Fragment,null,o.createElement("fieldset",Object.assign({className:Qn("TUXRadioGroup-fieldset",d),style:u,"aria-describedby":r?m:void 0},p),c?null:o.createElement("div",{className:"TUXRadioGroup-header"},o.createElement("legend",{className:"TUXRadioGroup-legend"},o.createElement(ti,{size:16,color:"UIText1",weight:"medium"},t)),r?o.createElement("div",{id:m,className:"TUXRadioGroup-description"},o.createElement(ti,{size:13,color:"UIText3",weight:"normal"},r)):null),o.createElement("div",{className:"TUXRadioGroup-content"},a.map((e=>o.createElement(Qa,{key:e.value,label:e.label,name:g,value:e.value,onChange:i,checked:e.value===n,disabled:e.disabled})))),l?o.createElement(ti,{className:"TUXRadioGroup-error",color:"UITextDanger",size:13,weight:"normal"},o.createElement(aa,{className:"TUXRadioGroup-errorIcon"}),o.createElement("div",null,l)):null))},er=(0,o.createContext)(void 0),tr=e=>{var{titleId:t,onOpenChange:n}=e,i=s(e,["titleId","onOpenChange"]);const a=(0,o.useMemo)((()=>({titleId:t,onOpenChange:n})),[t,n]);return o.createElement(er.Provider,Object.assign({value:a},i))},nr=e=>{var t,{open:n,onOpenChange:i,width:a="small",outsidePressDismiss:r=!0,children:l,className:c,style:u,root:p}=e,v=s(e,["open","onOpenChange","width","outsidePressDismiss","children","className","style","root"]);const g=`${Zn()}_title`,m=f(),{refs:h,context:_}=jn({open:n,onOpenChange:i}),y=An(_),b=Nn(_),w=Cn(_,{outsidePress:r,outsidePressEvent:"mousedown"}),{isMounted:T,status:S}=Dn(_,{duration:120}),{getFloatingProps:k}=Mn([y,b,w]),A=(()=>{const e=(()=>{const e=(0,o.useContext)(d);if(void 0===e)throw new Error("TUXColorSchemeContext is undefined. Make sure to wrap your app with TUXProvider.");return e})(),t=x();return La({colorSchemePreference:e,textDirection:t})})();return T?o.createElement(fn,{root:p},o.createElement(Tn,Object.assign({className:"TUXModal-overlay","data-transition-status":S,lockScroll:!0,style:{zIndex:null!==(t=null==u?void 0:u.zIndex)&&void 0!==t?t:m.zIndex.modal}},A),o.createElement(wn,{context:_,order:["floating","content"]},o.createElement("div",Object.assign(Object.assign(Object.assign({className:Qn("TUXModal",c),"data-width":a,ref:h.setFloating,"aria-labelledby":g},k()),{style:u}),v),o.createElement(tr,{titleId:g,onOpenChange:i},l))))):o.createElement(o.Fragment,null)},ir=e=>{var{icon:t,className:n}=e,i=s(e,["icon","className"]);return o.createElement(oi,Object.assign({className:Qn("TUXNavBarIconButton",n),type:"button"},i),t)},or=e=>{var{title:t,leading:n,className:i}=e,a=s(e,["title","leading","className"]);const r=(0,o.useContext)(er);if(!r)throw new Error("TUXModalNavBar must be used inside a TUXModal.");return o.createElement("div",Object.assign({className:Qn("TUXModalNavBar",i)},a),o.createElement("div",{className:"TUXModalNavBar-leading"},n),o.createElement("h2",{id:r.titleId,className:"TUXModalNavBar-title"},t),o.createElement("div",{className:"TUXModalNavBar-trailing"},o.createElement(ir,{"aria-label":"close",icon:o.createElement(Ca,null),onClick:()=>r.onOpenChange(!1)})))},ar=((0,o.createContext)(void 0),({src:e,alt:t,size:n=32,square:i,border:a,className:r,style:s})=>{const c={width:`${n}px`,height:`${n}px`,border:a&&`1px solid ${l[a]}`};return e?o.createElement("img",{src:e,alt:t,width:n,height:n,className:Qn("TUXBaseAvatar-src",r),style:Object.assign(Object.assign({},c),s)}):i?o.createElement(ko,{size:`${n}`,className:Qn(n>=56?"TUXBaseAvatar-default--square":"TUXBaseAvatar-default--square--large",r),style:Object.assign(Object.assign({},c),s)}):o.createElement(Ao,{size:`${n}`,className:Qn("TUXBaseAvatar-default",r),style:Object.assign(Object.assign({},c),s)})}),rr=({src:e,alt:t,size:n=32,square:i,border:a,className:r,style:s})=>o.createElement(ar,{src:e,alt:t,size:n,square:i,border:a,className:r,style:s}),sr=({frontImageSrc:e,backImageSrc:t,alt:n,size:i=32,className:a,style:r})=>{const s=.7*i,l=.75*i,c=i>=56?2:1,d=l/2,u=s/2,p=d+2*u-i,v=i-d,g=u,m=u,{p1:h,p2:_}=((e,t,n,i,o,a)=>{const r=Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2)),s=(Math.pow(o,2)-Math.pow(a,2)+Math.pow(r,2))/(2*r),l=Math.sqrt(Math.pow(o,2)-Math.pow(s,2)),c=-(n-e)/(i-t),d=e+s*(n-e)/r,u=t+s*(i-t)/r,p=d-l/Math.sqrt(1+Math.pow(c,2)),v=u+c*(p-d),g=d+l/Math.sqrt(1+Math.pow(c,2)),m={x:p,y:v},h={x:g,y:u+c*(g-d)};return p{var{placement:t="top",visible:n,onVisibleChange:i,content:a,leadingIcon:r,hasTrailingArrow:l=!1,variant:c="primary",size:d="small",hideIndicator:u=!0,children:p,className:v,style:g}=e,m=s(e,["placement","visible","onVisibleChange","content","leadingIcon","hasTrailingArrow","variant","size","hideIndicator","children","className","style"]);const[h,_]=(0,o.useState)(!1),y=(0,o.useRef)(null),b=f(),w=null!=n?n:h,x=null!=i?i:_,{refs:T,context:S,floatingStyles:k}=jn({placement:t,open:w,onOpenChange:x,whileElementsMounted:ze,middleware:[Xe(8),Qe(),Je(),et({element:y,padding:8})]}),{isMounted:A,status:P}=Dn(S,{duration:300}),I=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,dataRef:a,events:r,elements:{domReference:s,floating:l},refs:c}=e,{enabled:d=!0,delay:u=0,handleClose:p=null,mouseOnly:v=!1,restMs:g=0,move:m=!0}=t,h=Gt(),_=$t(),f=Zt(p),y=Zt(u),b=o.useRef(),w=o.useRef(),x=o.useRef(),T=o.useRef(),S=o.useRef(!0),k=o.useRef(!1),A=o.useRef((()=>{})),E=o.useCallback((()=>{var e;const t=null==(e=a.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[a]);o.useEffect((()=>{if(d)return r.on("dismiss",e),()=>{r.off("dismiss",e)};function e(){clearTimeout(w.current),clearTimeout(T.current),S.current=!0}}),[d,r]),o.useEffect((()=>{if(!d||!f.current||!n)return;function e(e){E()&&i(!1,e)}const t=R(l).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[l,n,i,d,f,a,E]);const P=o.useCallback((function(e,t){void 0===t&&(t=!0);const n=Xt(y.current,"close",b.current);n&&!x.current?(clearTimeout(w.current),w.current=setTimeout((()=>i(!1,e)),n)):t&&(clearTimeout(w.current),i(!1,e))}),[y,i]),I=o.useCallback((()=>{A.current(),x.current=void 0}),[]),C=o.useCallback((()=>{if(k.current){const e=R(c.floating.current).body;e.style.pointerEvents="",e.removeAttribute(Kt),k.current=!1}}),[c]);return o.useEffect((()=>{if(d&&O(s)){const e=s;return n&&e.addEventListener("mouseleave",c),null==l||l.addEventListener("mouseleave",c),m&&e.addEventListener("mousemove",o,{once:!0}),e.addEventListener("mouseenter",o),e.addEventListener("mouseleave",r),()=>{n&&e.removeEventListener("mouseleave",c),null==l||l.removeEventListener("mouseleave",c),m&&e.removeEventListener("mousemove",o),e.removeEventListener("mouseenter",o),e.removeEventListener("mouseleave",r)}}function t(){return!!a.current.openEvent&&["click","mousedown"].includes(a.current.openEvent.type)}function o(e){if(clearTimeout(w.current),S.current=!1,v&&!D(b.current)||g>0&&0===Xt(y.current,"open"))return;const t=Xt(y.current,"open",b.current);t?w.current=setTimeout((()=>{i(!0,e)}),t):i(!0,e)}function r(i){if(t())return;A.current();const o=R(l);if(clearTimeout(T.current),f.current){n||clearTimeout(w.current),x.current=f.current(Object.assign(Object.assign({},e),{tree:h,x:i.clientX,y:i.clientY,onClose(){C(),I(),P(i)}}));const t=x.current;return o.addEventListener("mousemove",t),void(A.current=()=>{o.removeEventListener("mousemove",t)})}("touch"!==b.current||!j(l,i.relatedTarget))&&P(i)}function c(n){t()||null==f.current||f.current(Object.assign(Object.assign({},e),{tree:h,x:n.clientX,y:n.clientY,onClose(){C(),I(),P(n)}}))(n)}}),[s,l,d,e,v,g,m,P,I,C,i,n,h,y,f,a]),At((()=>{var e;if(d&&n&&null!=(e=f.current)&&e.__options.blockPointerEvents&&E()){const e=R(l).body;if(e.setAttribute(Kt,""),e.style.pointerEvents="none",k.current=!0,O(s)&&l){var t,i;const e=s,n=null==h||null==(t=h.nodesRef.current.find((e=>e.id===_)))||null==(i=t.context)?void 0:i.elements.floating;return n&&(n.style.pointerEvents=""),e.style.pointerEvents="auto",l.style.pointerEvents="auto",()=>{e.style.pointerEvents="",l.style.pointerEvents=""}}}}),[d,n,_,l,s,h,f,a,E]),At((()=>{n||(b.current=void 0,I(),C())}),[n,I,C]),o.useEffect((()=>()=>{I(),clearTimeout(w.current),clearTimeout(T.current),C()}),[d,s,I,C]),o.useMemo((()=>{if(!d)return{};function e(e){b.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(e){n||0===g||(clearTimeout(T.current),T.current=setTimeout((()=>{S.current||i(!0,e.nativeEvent)}),g))}},floating:{onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){r.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),P(e.nativeEvent,!1)}}}}),[r,d,g,n,i,P])}(S,{delay:{open:0,close:300}}),L=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,dataRef:a,events:r,refs:s,elements:{floating:l,domReference:c}}=e,{enabled:d=!0,keyboardOnly:u=!0}=t,p=o.useRef(""),v=o.useRef(!1),g=o.useRef();return o.useEffect((()=>{if(!d)return;const e=R(l).defaultView||window;function t(){!n&&E(c)&&c===C(R(c))&&(v.current=!0)}return e.addEventListener("blur",t),()=>{e.removeEventListener("blur",t)}}),[l,c,n,d]),o.useEffect((()=>{if(d)return r.on("dismiss",e),()=>{r.off("dismiss",e)};function e(e){"referencePress"!==e.type&&"escapeKey"!==e.type||(v.current=!0)}}),[r,d]),o.useEffect((()=>()=>{clearTimeout(g.current)}),[]),o.useMemo((()=>d?{reference:{onPointerDown(e){let{pointerType:t}=e;p.current=t,v.current=!(!t||!u)},onMouseLeave(){v.current=!1},onFocus(e){var t;v.current||"focus"===e.type&&"mousedown"===(null==(t=a.current.openEvent)?void 0:t.type)&&B(a.current.openEvent,c)||i(!0,e.nativeEvent)},onBlur(e){v.current=!1;const t=e.relatedTarget,n=O(t)&&t.hasAttribute(Yt("focus-guard"))&&"outside"===t.getAttribute("data-type");g.current=setTimeout((()=>{j(s.floating.current,t)||j(c,t)||n||i(!1,e.nativeEvent)}))}}}:{}),[d,u,c,s,a,i])}(S),M=Nn(S,{role:"tooltip"}),N=Cn(S),{getReferenceProps:U,getFloatingProps:F}=Mn([I,L,M,N]);return o.createElement(o.Fragment,null,o.createElement("div",Object.assign({ref:T.setReference,className:Qn("TUXTooltip-reference",v),style:g},U()),p),A?o.createElement(fn,null,o.createElement("div",Object.assign(Object.assign({ref:T.setFloating,className:`TUXTooltip-tooltip TUXTooltip-tooltip--${c} TUXTooltip-tooltip--${d} TUXTooltip-tooltip--${P}`,style:Object.assign({transition:"opacity 300ms cubic-bezier(0.65, 0, 0.35, 1)",zIndex:b.zIndex.tooltip},k)},F()),m),r?o.createElement("div",{className:"TUXTooltip-leadingIcon"},r):null,o.createElement("div",{className:"TUXTooltip-content P1-Medium"},a),l?o.createElement("div",{className:"TUXTooltip-trailingArrow"},o.createElement(Di,null)):null,u?null:o.createElement(Ht,{fill:"currentColor",ref:y,context:S}))):null)},cr=({inputId:e,label:t,description:n,error:i,requirement:a="optional",characterCount:r=0,maxLength:s,hideLabel:l=!1,children:c,className:d,style:u})=>{const p=`${e}_label`,v=`${e}_description`,g=`${e}_error`;let m=null;return"required"===a&&(m=o.createElement("div",{className:"TUXFormField-requiredStar"},"*")),o.createElement("div",{className:Qn("TUXFormField",d),style:u},!l&&o.createElement("div",{className:"TUXFormField-header"},o.createElement("div",{className:"TUXFormField-labelRow"},o.createElement("div",{className:"TUXFormField-label"},o.createElement("label",{htmlFor:e,id:p},t)),m),o.createElement("div",{className:"TUXFormField-description",id:v},n)),c,i||void 0!==s?o.createElement("div",{className:"TUXFormField-footer"},o.createElement("div",{className:"TUXFormField-error",id:g},i?o.createElement(o.Fragment,null,o.createElement(aa,{className:"TUXFormField-errorIcon",size:"13px"}),i):null),void 0!==s?o.createElement("div",{className:Qn("TUXFormField-wordCount",r>s&&"TUXFormField-wordCount--max")},r,"/",s):null):null)},dr=(0,o.forwardRef)(((e,t)=>{var{size:n,disabled:i=!1,hasError:a=!1,hasFocusRing:r=!1,children:l,className:c}=e,d=s(e,["size","disabled","hasError","hasFocusRing","children","className"]);return o.createElement("div",Object.assign({className:Qn("TUXInputBox",{"TUXInputBox-focus-ring":r},c),ref:t,"data-size":n,"data-disabled":i,"data-has-error":a},d),l)})),ur={large:20,medium:20,small:16,xsmall:14},pr={large:5,medium:5,small:4,xsmall:3},vr=(0,o.forwardRef)(((e,t)=>{var{value:n,onChange:i,onClear:a,prefix:r,suffix:l,size:c="large",leadingIcon:d,trailingIcon:u,loading:p=!1,clearable:v=!1,placeholder:g,disabled:h=!1,required:_=!1,hasDescription:f=!1,hasError:y=!1,inputId:b,readOnly:w=!1,isValid:x=!1,className:T,style:S}=e,k=s(e,["value","onChange","onClear","prefix","suffix","size","leadingIcon","trailingIcon","loading","clearable","placeholder","disabled","required","hasDescription","hasError","inputId","readOnly","isValid","className","style"]);const A=(0,o.useRef)(null),O=`${b}_description`,E=`${b}_error`,P={fontSize:ur[c],padding:pr[c]};return o.createElement("div",{className:Qn("TUXTextInputCore",`TUXTextInputCore--${c}`,T),style:S},d?o.createElement("div",{className:"TUXTextInputCore-leadingIconWrapper",style:{fontSize:ur[c]}},d):null,r?o.createElement("div",{className:"TUXTextInputCore-prefix"},r):null,o.createElement("input",Object.assign({className:"TUXTextInputCore-input",type:"text",id:b,"aria-required":_,"aria-invalid":y,"aria-describedby":y?E:f?O:void 0,ref:m(t,A),value:n,placeholder:g,onChange:e=>{i(e.target.value,e)},disabled:h,readOnly:w},k)),l?o.createElement("div",{className:"TUXTextInputCore-suffix"},l):null,p?o.createElement("div",{className:"TUXTextInputCore-trailingIconWrapper",style:P},o.createElement(ka,{className:"TUXTextInputCore-loadingIcon"})):null,v&&n&&!h?o.createElement(oi,{className:"TUXTextInputCore-clearButton",onClick:e=>{var t;i(""),null==a||a(e),null===(t=A.current)||void 0===t||t.focus()},onMouseDown:e=>e.preventDefault(),style:P},o.createElement(Pa,{color:"UITextPlaceholder"})):null,x?o.createElement("div",{style:P},o.createElement(Aa,{color:"UIShapeSuccess"})):null,u?o.createElement("div",{className:"TUXTextInputCore-trailingIconWrapper",style:P},u):null)})),gr=(0,o.forwardRef)(((e,t)=>{var{value:n,onChange:i,onClear:a,placeholder:r,size:l="large",hideLabel:c=!1,label:d,description:u,requirement:p,error:v,prefix:g,suffix:m,disabled:h=!1,leadingIcon:_,trailingIcon:f,loading:y=!1,clearable:b=!1,maxLength:w,readOnly:x=!1,isValid:T=!1,hasFocusRing:S=!1,className:k,style:A}=e,O=s(e,["value","onChange","onClear","placeholder","size","hideLabel","label","description","requirement","error","prefix","suffix","disabled","leadingIcon","trailingIcon","loading","clearable","maxLength","readOnly","isValid","hasFocusRing","className","style"]);const E=Zn(),P=Boolean(v)||Boolean(w&&n.length>w);return o.createElement(cr,{className:Qn("TUXTextInput",k),inputId:E,label:d,hideLabel:c,requirement:p,description:u,error:v,characterCount:n.length,maxLength:w,style:A},o.createElement(dr,{size:l,disabled:h,hasError:P,hasFocusRing:S},o.createElement(vr,Object.assign({inputId:E,ref:t,value:n,placeholder:r,size:l,onChange:i,onClear:a,prefix:g,suffix:m,leadingIcon:_,trailingIcon:f,loading:y,clearable:b,required:"required"===p,disabled:h,hasDescription:Boolean(u),hasError:Boolean(v),readOnly:x,isValid:T},O))))})),mr=e=>{var{tabs:t,defaultTab:n,activeTab:i,onChange:a,compact:r=!1,className:l,style:c}=e,d=s(e,["tabs","defaultTab","activeTab","onChange","compact","className","style"]);const[u,p]=(0,o.useState)(null!=n?n:""),v=a?i:u,g=(0,o.useRef)([]),[m,h]=(0,o.useState)(Array(t.length).fill(0)),_=t.findIndex((e=>e.id===v)),f=x(),y=_>0?m.slice(0,_).reduce(((e,t)=>e+t)):0,b="ltr"===f?y+10*(2*_+1):-1*y-10*(2*_+1),w=e=>{e.disabled||(a?a(e.id):e.id!==u&&p(e.id))},T=()=>{const e=g.current.map((e=>(null==e?void 0:e.offsetWidth)?e.offsetWidth-20:void 0));h(e)};return(0,o.useEffect)((()=>(T(),window.addEventListener("resize",T),()=>{window.removeEventListener("resize",T)})),[]),o.createElement("div",Object.assign({className:Qn("TUXTabBar",l),style:c,"data-compact":Boolean(r)},d),o.createElement("div",{className:"TUXTabBar-list"},o.createElement("div",{className:"TUXTabBar-activeLine",style:{transform:`translateX(${b}px)`,transition:"transform 100ms cubic-bezier(0.33, 0.86, 0.2, 1)",width:`${m[_]}px`}}),o.createElement(Dt,{orientation:"horizontal",render:o.createElement("div",{style:{display:"flex",width:"100%"}})},t.map((e=>o.createElement("div",{className:"TUXTabBar-item",key:e.id,id:e.id,ref:e=>g.current.push(e)},o.createElement(Rt,{render:o.createElement("button",{className:Qn("TUXTabBar-itemTitle",v===e.id&&"TUXTabBar-itemTitle--active",e.disabled&&"TUXTabBar-itemTitle--disabled"),type:"button",disabled:e.disabled,onClick:()=>{w(e)},onFocus:()=>{w(e)},id:e.id},e.leadingIcon?o.createElement("div",{className:"TUXTabBar-itemTitle-leadingIcon"},e.leadingIcon):null,o.createElement("div",null,e.title),e.hasTrailingArrow?o.createElement("div",{className:"TUXTabBar-itemTitle-trailingArrow"},o.createElement(Si,null)):null)}))))),o.createElement("div",{className:"TUXTabBar-underline"})),o.createElement("div",{className:"TUXTabBar-content",tabIndex:0},t.filter((e=>e.id===v))[0].content))},hr=e=>{var{items:t,value:n,onChange:i,size:a="s",shape:r="capsule",compact:l=!1,className:c}=e,d=s(e,["items","value","onChange","size","shape","compact","className"]);return o.createElement("div",Object.assign({className:Qn("TUXSegmentedControl",c),"data-compact":Boolean(l),"data-size":a,"data-shape":r},d),t.map((e=>o.createElement(oi,{"aria-label":e.title,key:e.value,className:"TUXSegmentedControl-item","data-active":n===e.value,"data-has-subtitle":Boolean(e.subtitle),onClick:()=>i(e.value)},o.createElement("div",{className:"TUXSegmentedControl-itemTitleContainer"},e.leadingIcon?o.createElement("div",{className:"TUXSegmentedControl-itemIcon"},e.leadingIcon):null,e.hideTitle?null:o.createElement("div",{className:"TUXSegmentedControl-itemTitle"},e.title),e.trailingIcon?o.createElement("div",{className:"TUXSegmentedControl-itemIcon"},e.trailingIcon):null),e.subtitle?o.createElement("div",{className:"TUXSegmentedControl-itemSubtitle"},e.subtitle):null))))},_r=e=>{var{label:t,href:n,rel:i,disabled:a=!1,size:r,color:c="UITextPrimaryDisplay",weight:d="normal",className:u,style:p}=e,v=s(e,["label","href","rel","disabled","size","color","weight","className","style"]);return o.createElement("a",Object.assign({className:Qn("TUXLink",a&&"TUXLink--disabled",u),style:Object.assign({fontSize:r?`${r}px`:"inherit",color:l[c]},p),href:a?void 0:n,rel:i},v),o.createElement(ti,{weight:d,font:"TikTok Sans"},t))},fr=e=>{var{width:t="64px",height:n="64px",borderRadius:i="2px",className:a,style:r}=e,l=s(e,["width","height","borderRadius","className","style"]);return o.createElement("div",Object.assign({className:Qn("TUXSkeletonRectangle",a),style:Object.assign({width:t,height:n,borderRadius:i},r)},l))},yr=e=>{var t,{placement:n="top",open:i,onOpenChange:a,trigger:r,root:l,noArrow:c,autoFocus:d,positionStrategy:u="absolute",children:p,className:v,style:g}=e,m=s(e,["placement","open","onOpenChange","trigger","root","noArrow","autoFocus","positionStrategy","children","className","style"]);const[h,_]=(0,o.useState)(!1),b=(0,o.useRef)(null),w=y(),x=f(),T=null!=i?i:h,S=null!=a?a:_,{refs:k,context:A,floatingStyles:O}=jn({placement:n,open:T,onOpenChange:S,whileElementsMounted:ze,middleware:[Xe(c?4:12),Qe(),Je(),et({element:b,padding:12})],strategy:u}),{isMounted:E,status:P}=Dn(A,{duration:300}),I=An(A),C=Nn(A),j=Cn(A),{getReferenceProps:L,getFloatingProps:M}=Mn([I,j,C]),N=o.cloneElement(r,Object.assign({ref:k.setReference},L()));return o.createElement(o.Fragment,null,N,E?o.createElement(fn,{root:l},o.createElement(wn,{context:A,modal:!1,returnFocus:!1,initialFocus:d?0:-1},o.createElement("div",Object.assign(Object.assign({ref:k.setFloating,className:Qn("TUXPopover-popover",`TUXPopover-popover--${P}`,"dark"===w&&"TUXPopover-popover--dark"),style:Object.assign({transition:"opacity 300ms cubic-bezier(0.65, 0, 0.35, 1)",zIndex:null!==(t=null==g?void 0:g.zIndex)&&void 0!==t?t:x.zIndex.popover},O)},M()),m),o.createElement("div",{className:Qn("TUXPopover-content",v),style:g},p),!c&&o.createElement(Ht,{fill:"currentColor",ref:b,context:A,height:8,tipRadius:3,stroke:"dark"===w?"rgb(105, 105, 105)":"rgb(235, 235, 235)",strokeWidth:1})))):null)},br=(0,o.createContext)(null),wr=e=>{var{placement:t="bottom-start",open:n,onOpenChange:i,trigger:a,noArrow:r=!0,autoFocus:l,positionStrategy:c,children:d,className:u,style:p}=e,v=s(e,["placement","open","onOpenChange","trigger","noArrow","autoFocus","positionStrategy","children","className","style"]);return o.createElement(br.Provider,{value:{onOpenChange:i}},o.createElement(yr,Object.assign({placement:t,open:n,onOpenChange:i,trigger:a,noArrow:r,autoFocus:l,positionStrategy:c,style:p,className:Qn(u,"TUXMenu")},v),d))},xr=e=>{var{leadingIcon:t,trailingIcon:n,checked:i,destructive:a,onClick:r,preventCloseOnClick:l,as:c,children:d,className:u,style:p}=e,v=s(e,["leadingIcon","trailingIcon","checked","destructive","onClick","preventCloseOnClick","as","children","className","style"]);const g=(0,o.useContext)(br);if(!g)throw new Error("TUXMenuItem must be used inside of TUXMenu.");const m=null!=c?c:"div",h=null!=n?n:o.createElement(mo,null);return o.createElement(m,Object.assign({className:Qn("TUXMenuItem",a&&"TUXMenuItem--destructive",u),tabIndex:0,onClick:e=>{l||g.onOpenChange(!1),null==r||r(e)},style:p},v),t?o.createElement("div",{className:"TUXMenuItem-leadingIcon"},t):null,o.createElement(ti,{size:16,weight:"medium",truncate:!0,className:"TUXMenuItem-label"},d),i?o.createElement("div",{className:"TUXMenuItem-trailingIcon"},h):null)},Tr=((0,o.createContext)(null),({thickness:e="thin",color:t="UIShapeNeutral3",direction:n="horizontal",customColorValue:i})=>{const a=null!=i?i:l[t];return o.createElement("div",{role:"separator",className:Qn("tux-separator",`tux-separator-${e}--${n}`),style:{backgroundColor:a}})});new Date(2017,0,1),new Date(2017,0,2),new Date(2017,0,3),new Date(2017,0,4),new Date(2017,0,5),new Date(2017,0,6),new Date(2017,0,7),new Date(2017,0,1),new Date(2017,0,2),new Date(2017,0,3),new Date(2017,0,4),new Date(2017,0,5),new Date(2017,0,6),new Date(2017,0,7);class Sr{}var kr;function Ar(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}Sr.lockId=0,Sr.locker=new Map,Sr.registerLock=()=>(Sr.lockId+=1,Sr.locker.set(Sr.lockId,!0),Sr.lockId),Sr.unregisterLock=e=>{Sr.locker.delete(e)},Sr.enterScrollLock=()=>{const e=document.documentElement,{body:t}=document,n=window.pageYOffset||e.scrollTop||t.scrollTop||0,i=document.createElement("style");i.id="tux-screen-lock",i.innerHTML=`\n html {\n height: 100%;\n overflow: hidden;\n }\n body {\n ${n>0?"height: auto;":""}\n min-height: 100%; /* for ios 12 */\n top: -${n}px;\n left: 0;\n right: 0;\n position: fixed;\n }\n `,t.appendChild(i),t.setAttribute("tux-screen-lock-offset",`-${n}`)},Sr.getBodyFixedTopOffset=()=>{var e;if(!v&&document.body.hasAttribute("tux-screen-lock-offset"))return parseInt(null!==(e=document.body.getAttribute("tux-screen-lock-offset"))&&void 0!==e?e:"0",10)},Sr.exitScrollLock=()=>{var e;const t=document.documentElement,{body:n}=document,i=document.getElementById("tux-screen-lock"),o=-(null!==(e=Sr.getBodyFixedTopOffset())&&void 0!==e?e:0);if(i&&n.removeChild(i),n.removeAttribute("tux-screen-lock-offset"),"scrollBehavior"in t.style){const e=document.createElement("style");e.innerHTML="\n html, body {\n scroll-behavior: auto !important;\n }\n ",n.appendChild(e),window.scrollTo({top:o,behavior:"auto"}),n.removeChild(e)}else o&&window.scrollTo(0,o)},Sr.getBodyFixedTopOffset,(0,o.createContext)({isScrolled:!1,setIsScrolled:g,showCloseButtonBG:!1,setShowCloseButtonBG:g}),function(e){e.NO_BOUNCE_SLOW="NO_BOUNCE_SLOW",e.NO_BOUNCE_FAST="NO_BOUNCE_FAST",e.STRONG_BOUNCE="STRONG_BOUNCE",e.WEEK_BOUNCE="WEEK_BOUNCE",e.INSTANT="INSTANT"}(kr||(kr={})),kr.NO_BOUNCE_SLOW,kr.NO_BOUNCE_FAST,kr.WEEK_BOUNCE,kr.STRONG_BOUNCE,kr.INSTANT,kr.NO_BOUNCE_SLOW,kr.NO_BOUNCE_FAST,kr.WEEK_BOUNCE,kr.STRONG_BOUNCE,kr.INSTANT;var Or="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,Er="object"==typeof self&&self&&self.Object===Object&&self,Pr=Or||Er||Function("return this")(),Ir=Pr.Symbol,Cr=Object.prototype,jr=Cr.hasOwnProperty,Lr=Cr.toString,Mr=Ir?Ir.toStringTag:void 0,Nr=Object.prototype.toString,Dr="[object Null]",Rr="[object Undefined]",Br=Ir?Ir.toStringTag:void 0;function Ur(e){return null==e?void 0===e?Rr:Dr:Br&&Br in Object(e)?function(e){var t=jr.call(e,Mr),n=e[Mr];try{e[Mr]=void 0;var i=!0}catch(e){}var o=Lr.call(e);return i&&(t?e[Mr]=n:delete e[Mr]),o}(e):function(e){return Nr.call(e)}(e)}function Fr(e){return null!=e&&"object"==typeof e}var Vr="[object Symbol]";function zr(e){return"symbol"==typeof e||Fr(e)&&Ur(e)==Vr}Math.max,Math.min;(0,o.createContext)({isControlled:!1}).displayName="TUXWheelPickerContext";var Hr=Object.prototype;var qr,Wr,$r=(qr=Object.keys,Wr=Object,function(e){return qr(Wr(e))}),Gr=Object.prototype.hasOwnProperty;function Yr(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Hr))return $r(e);var t,n,i=[];for(var o in Object(e))Gr.call(e,o)&&"constructor"!=o&&i.push(o);return i}var Zr="[object AsyncFunction]",Kr="[object Function]",Xr="[object GeneratorFunction]",Qr="[object Proxy]";function Jr(e){if(!Ar(e))return!1;var t=Ur(e);return t==Kr||t==Xr||t==Zr||t==Qr}var es,ts=Pr["__core-js_shared__"],ns=(es=/[^.]+$/.exec(ts&&ts.keys&&ts.keys.IE_PROTO||""))?"Symbol(src)_1."+es:"",is=Function.prototype.toString;function os(e){if(null!=e){try{return is.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var as=/^\[object .+?Constructor\]$/,rs=Function.prototype,ss=Object.prototype,ls=rs.toString,cs=ss.hasOwnProperty,ds=RegExp("^"+ls.call(cs).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function us(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ar(e)||function(e){return!!ns&&ns in e}(e))&&(Jr(e)?ds:as).test(os(e))}(n)?n:void 0}var ps=us(Pr,"DataView"),vs=us(Pr,"Map"),gs=us(Pr,"Promise"),ms=us(Pr,"Set"),hs=us(Pr,"WeakMap"),_s="[object Map]",fs="[object Promise]",ys="[object Set]",bs="[object WeakMap]",ws="[object DataView]",xs=os(ps),Ts=os(vs),Ss=os(gs),ks=os(ms),As=os(hs),Os=Ur;(ps&&Os(new ps(new ArrayBuffer(1)))!=ws||vs&&Os(new vs)!=_s||gs&&Os(gs.resolve())!=fs||ms&&Os(new ms)!=ys||hs&&Os(new hs)!=bs)&&(Os=function(e){var t=Ur(e),n="[object Object]"==t?e.constructor:void 0,i=n?os(n):"";if(i)switch(i){case xs:return ws;case Ts:return _s;case Ss:return fs;case ks:return ys;case As:return bs}return t});var Es=Os;function Ps(e){return Fr(e)&&"[object Arguments]"==Ur(e)}var Is=Object.prototype,Cs=Is.hasOwnProperty,js=Is.propertyIsEnumerable,Ls=Ps(function(){return arguments}())?Ps:function(e){return Fr(e)&&Cs.call(e,"callee")&&!js.call(e,"callee")},Ms=Array.isArray,Ns=9007199254740991;function Ds(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Ns}function Rs(e){return null!=e&&Ds(e.length)&&!Jr(e)}var Bs="object"==typeof exports&&exports&&!exports.nodeType&&exports,Us=Bs&&e&&!e.nodeType&&e,Fs=Us&&Us.exports===Bs?Pr.Buffer:void 0,Vs=(Fs?Fs.isBuffer:void 0)||function(){return!1},zs={};zs["[object Float32Array]"]=zs["[object Float64Array]"]=zs["[object Int8Array]"]=zs["[object Int16Array]"]=zs["[object Int32Array]"]=zs["[object Uint8Array]"]=zs["[object Uint8ClampedArray]"]=zs["[object Uint16Array]"]=zs["[object Uint32Array]"]=!0,zs["[object Arguments]"]=zs["[object Array]"]=zs["[object ArrayBuffer]"]=zs["[object Boolean]"]=zs["[object DataView]"]=zs["[object Date]"]=zs["[object Error]"]=zs["[object Function]"]=zs["[object Map]"]=zs["[object Number]"]=zs["[object Object]"]=zs["[object RegExp]"]=zs["[object Set]"]=zs["[object String]"]=zs["[object WeakMap]"]=!1;var Hs="object"==typeof exports&&exports&&!exports.nodeType&&exports,qs=Hs&&e&&!e.nodeType&&e,Ws=qs&&qs.exports===Hs&&Or.process,$s=function(){try{return qs&&qs.require&&qs.require("util").types||Ws&&Ws.binding&&Ws.binding("util")}catch(e){}}(),Gs=$s&&$s.isTypedArray,Ys=Gs?function(e){return function(t){return e(t)}}(Gs):function(e){return Fr(e)&&Ds(e.length)&&!!zs[Ur(e)]};Object.prototype.hasOwnProperty;const Zs=e=>{var{children:t,className:n,inline:i=!1,basis:a,grow:r,shrink:l,direction:c,wrap:d,style:u}=e,p=s(e,["children","className","inline","basis","grow","shrink","direction","wrap","style"]);const v=Object.assign(Object.assign(Object.assign({},u),p),{display:i?"inline-flex":"flex",flexDirection:c,flexWrap:d,flexBasis:a,flexGrow:r,flexShrink:l});return o.createElement("div",{className:n,style:v},t)};var Ks=function(){try{var e=us(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();function Xs(e,t,n,i){for(var o=-1,a=null==e?0:e.length;++o-1&&e%1==0&&e-1},cl.prototype.set=function(e,t){var n=this.__data__,i=sl(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};var dl=us(Object,"create"),ul=Object.prototype.hasOwnProperty,pl=Object.prototype.hasOwnProperty;function vl(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ts))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var u=-1,p=!0,v=n&bl?new _l:void 0;for(a.set(e,t),a.set(t,e);++u{const e=Tc(Sc,(e=>e.label[0]));il(e).sort().map((t=>({label:t,options:e[t]})))})()},14283:(e,t,n)=>{"use strict";function i(){return"undefined"==typeof window||"undefined"==typeof document}n.d(t,{f:()=>i})},44137:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});var i=n(39858),o=n.n(i),a=n(14283);const r=o()((()=>{if((0,a.f)())return!1;const e=window.navigator.userAgent;if(!/iPad|iPhone|iPod/.test(e))return!!(null===window||void 0===window?void 0:window.MediaSource)&&((null===window||void 0===window?void 0:window.MediaSource.isTypeSupported('video/mp4;codecs="hev1.1.6.L120.90"'))||(null===window||void 0===window?void 0:window.MediaSource.isTypeSupported('video/mp4;codecs="hev1.2.4.L120.90"'))||(null===window||void 0===window?void 0:window.MediaSource.isTypeSupported('video/mp4;codecs="hev1.3.E.L120.90"'))||(null===window||void 0===window?void 0:window.MediaSource.isTypeSupported('video/mp4;codecs="hev1.4.10.L120.90"')));try{const e=document.createElement("video");return[e.canPlayType('video/mp4; codecs="hvc1.1.L0.0"'),e.canPlayType('video/mp4;codecs="hev1.1.6.L120.90"'),e.canPlayType('video/mp4;codecs="hev1.2.4.L120.90"'),e.canPlayType('video/mp4;codecs="hev1.3.E.L120.90"'),e.canPlayType('video/mp4;codecs="hev1.4.10.L120.90"')].some((e=>"probably"===e||"maybe"===e))}catch(e){return!1}}))},96462:(e,t,n)=>{"use strict";n.d(t,{bp:()=>_,OK:()=>u,O5:()=>g,he:()=>f,sK:()=>b,SO:()=>w,vb:()=>v,Ck:()=>x,rX:()=>p,vk:()=>k});var i,o,a,r,s,l,c=n(44137);!function(e){e[e.HaveNothing=0]="HaveNothing",e[e.HaveMetaData=1]="HaveMetaData",e[e.HaveCurrentData=2]="HaveCurrentData",e[e.HaveFutureData=3]="HaveFutureData",e[e.HaveEnoughData=4]="HaveEnoughData"}(i||(i={})),function(e){e[e.Public=0]="Public",e[e.Self=1]="Self",e[e.Friend=2]="Friend"}(o||(o={})),function(e){e[e.PlayStop=0]="PlayStop",e[e.ResumePlaying=1]="ResumePlaying"}(a||(a={})),function(e){e.FeedRequest="feed_request",e.FeedRequestResponse="feed_request_response"}(r||(r={})),function(e){e.LoadMore="load_more"}(s||(s={})),function(e){e.PlayQuality="video_play_quality",e.PlayEnded="video_play_end",e.PlayFailed="video_play_failed",e.BlockStart="video_block_start",e.Block="video_block",e.Request="video_request",e.RequestResponse="video_request_response",e.FirstFrame="first_feed_show_time"}(l||(l={}));const d={0:"one_column",1:"three_column",2:"browser_mode",3:"swiper_mode",4:"video_detail",6:"pip",5:"fullscreen",7:"creator_tab",8:"mini_player",9:"immersive_player"},u=e=>e&&Array.isArray(e)?e.map((e=>{var t;return null!==(t=e.GearName)&&void 0!==t?t:"unknown"})):null,p=e=>e&&Array.isArray(e)?e.map((e=>`${e.QualityType}:${e.Bitrate}`)):null,v=()=>({cpu_core:"undefined"==typeof navigator?0:navigator.hardwareConcurrency,memory_size:"undefined"==typeof navigator?0:navigator.deviceMemory,HEVC_supported:(0,c.X)()?1:0}),g=e=>void 0!==e&&e.length>0?1e3*Math.round(e.end(0)-e.start(0)):0,m=(e,t)=>e?2:t?1:0,h=(e="")=>{if(!e)return"";const t=e.match(/https?:\/\/([^/]+)\//i);let n="";return(null==t?void 0:t[1])&&(n=t[1]),n},_=e=>{if(!e||"string"!=typeof e)return 0;let t=0;try{const n=new RegExp("(\\?|&)expire=([^&]*)(&|$)"),i=e.match(n);if(null!==i)t=parseInt(i[2],10);else{const n=e.split("/");n.length>5&&8===n[4].length&&(t=parseInt(n[4],16))}return t>0?t{var t;const{id:n,authorId:i,playMode:o,forFriend:a=!1,secret:r=!1,play_url:s,awemeType:l,picCnt:c,playlist_id:u="",popup_type:p="",size:v=-1}=e;return{group_id:n,author_id:i,play_mode:null!==(t=d[o])&&void 0!==t?t:"others",logo_type:"",item_status:m(a,r),play_url:s,host:h(s),aweme_type:null!=l?l:0,pic_cnt:c,playlist_id:u,popup_type:p,size:v}},y=(e,t)=>{const n=(e=>!e||/^(\d)*p$/i.test(`${e}`))(t);return n?e&&t?`${e}_${t}`:`unknownQuality_fromServer_${e}_${t}`:t},b=e=>{const{bitrate:t=-1,format:n="",codecType:i="",encodedType:o="",videoQuality:a="",definition:r="",encodeUserTag:s="",originalDefinition:l=""}=e;return{video_bitrate:t,video_format:n,codec_format:i,encoded_type:o,bitrate_quality:a,video_quality:String(y(a,r)),video_encodeUserTag:s,original_definition:l}},w=e=>{const{preload_size:t=-1,preload_time:n=-1,video_type:i="mp4",player_type:o="defaultPlayer"}=e;return{preload_size:t,preload_time:n,player_type:o,video_type:i}},x=e=>{const{totalWatchCount:t,foruWatchCount:n}=e;return{watch_count_total:t,watch_count_foru:n}};let T="-1";const S=["avc1.42E01E, mp4a.40.2","avc1.58A01E, mp4a.40.2","avc1.4D401E, mp4a.40.2","avc1.64001E, mp4a.40.2","avc1.42E01E","mp4v.20.8","avc1.42E01E, mp4a.40.2","avc1.58A01E, mp4a.40.2","avc1.4D401E, mp4a.40.2","avc1.64001E, mp4a.40.2","mp4v.20.8, mp4a.40.2","mp4v.20.240, mp4a.40.2"];function k(){try{const e={isSupport:!1,mime:""};if("undefined"==typeof document)return"0";if("-1"!==T&&"-2"!==T)return T;let t=document.createElement("video");"function"==typeof t.canPlayType&&S.map((n=>{"probably"===(null==t?void 0:t.canPlayType(`video/mp4; codecs="${n}"`))&&(e.isSupport=!0,e.mime+=`||${n}`)}));const n=e.isSupport?"1":"0";return T=n,t=null,n}catch(e){return"-2"}}},96959:(e,t,n)=>{"use strict";n.d(t,{Cd:()=>u,re:()=>p});var i=n(93608),o=n(38739),a=n(96462);const r={isPause:null,isVideoLoaded:!1,isFirstPlayReported:!1,isFirstPlayEndReported:!1,isInPlaybackStage:!1,triggerPlayTimestamp:0,firstTriggerPlayTimestamp:0,loadStartTimestamp:0,blockStartTimestamp:0,blockStartProgress:0,playingStartTimestamp:0,pauseStartTimestamp:0,totalPauseDuration:0,volume:0,muted:!0,mutedStateChange:!1,videoSourceLoadTime:0,cacheDuration:0,cacheSize:0,dataPlayerType:0,playSize:0,cdnSizeVideo:0,frameInfo:{drop_frame:0,total_play_frame:-1,drop_frame_rate:-1,drop_frame_duration:0}},s={currentSrc:"",duration:0,error:null,currentTime:0,readyState:0,buffered:{start:()=>0,end:()=>0,length:0},volume:0,muted:!0,mutedStateChange:!1};let l=1,c="",d="";const u=e=>{c=e};class p{constructor(){this.innerStates=Object.assign({},r),this.innerVideoAttributeStates=Object.assign({},s),this.isFirstFrameReported=!1,this.resetState=()=>{this.innerStates=Object.assign({},r),c="",this.isFirstFrameReported=!1,this.innerVideoAttributeStates=Object.assign({},s)},this.resetStateWhenSlideChange=()=>{this.innerStates=Object.assign({},r),this.innerVideoAttributeStates=Object.assign({},s)},this.reset=(e,t)=>{c!==e&&(this.playEndEvent(t),this.blockEndEvent(Object.assign(Object.assign({},t),{endType:0})),this.innerStates=Object.assign({},r))},this.resetWhenSlideChange=e=>{this.playEndEvent(Object.assign(Object.assign({},e),this.innerVideoAttributeStates)),this.blockEndEvent(Object.assign(Object.assign(Object.assign({},e),{endType:0}),this.innerVideoAttributeStates)),this.innerVideoAttributeStates=Object.assign({},s)},this.updateFrameInfo=e=>{this.innerStates.frameInfo=e},this.handlePlay=()=>{this.innerStates.triggerPlayTimestamp=Date.now();const{firstTriggerPlayTimestamp:e}=this.innerStates;e||(this.innerStates.firstTriggerPlayTimestamp=Date.now())},this.handlePause=e=>{const{id:t}=e,{playingStartTimestamp:n,isPause:i}=this.innerStates;t&&n&&!i&&(this.innerStates.pauseStartTimestamp=Date.now()),this.innerStates.isPause=!0},this.handleTimeUpdate=e=>{const{triggerPlayTimestamp:t,isFirstPlayReported:n,pauseStartTimestamp:o,videoSourceLoadTime:r,loadStartTimestamp:s}=this.innerStates,{currentTime:l=0,duration:u=0,codecType:p,volume:v=0,muted:g=!0,bitrateInfo:m,buffered:h,currentSrc:_,error:f,readyState:y}=e;if(this.innerVideoAttributeStates.duration=u,this.innerVideoAttributeStates.currentTime=l,this.innerVideoAttributeStates.buffered=h,this.innerVideoAttributeStates.currentSrc=_,this.innerVideoAttributeStates.error=f,this.innerVideoAttributeStates.readyState=y,!(l<=0)){if(!n&&0!==t){const n=Date.now()-t-1e3*l,o=Date.now()-s,h=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,a.he)(e)),(0,a.sK)(e)),(0,a.SO)(e)),(0,a.Ck)(e)),(0,a.vb)()),{duration:n>0?Math.round(n):0,video_duration:Math.round(1e3*u),is_bytevc1:(null!=p?p:"").indexOf("h265")>-1?1:0,muted:g?1:0,bitrate_set:(0,a.OK)(m),quality_bitrate:(0,a.rX)(m),duration_from_load:Math.round(o),duration_with_load:Math.round(n+r),is_same:c===d?1:0});i.f.event("video_play_quality",h),d=c,this.innerStates.isFirstPlayReported=!0,this.innerStates.playingStartTimestamp=Date.now(),this.innerStates.volume=v,this.innerStates.muted=g}if(this.innerStates.mutedStateChange=this.innerStates.mutedStateChange||this.innerStates.muted!==g,this.innerStates.muted=g,!this.isFirstFrameReported&&performance&&this.firstFrameEvent(),this.innerStates.isPause){const e=o?Date.now()-o:0;this.innerStates.totalPauseDuration+=e}this.blockEndEvent(Object.assign(Object.assign({},e),{endType:1})),this.innerStates.isInPlaybackStage=!0,this.innerStates.isPause=!1}},this.handleEnded=()=>{this.innerStates.isInPlaybackStage=!1},this.handleError=e=>{const{isVideoLoaded:t,isInPlaybackStage:n}=this.innerStates,{error:o,codecType:r="",duration:s,play_url:l}=e,{code:c=0,message:d=""}=null!=o?o:{},u=l?(0,a.bp)(l):-1,p=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,a.he)(e)),(0,a.sK)(e)),(0,a.Ck)(e)),(0,a.vb)()),{error_code:String(c),error_info:d,is_bytevc1:r.indexOf("h265")>-1?1:0,duration:null!=s?s:0,isExpired:u,isSupportMP4:(0,a.vk)(),is_before:t&&n?0:1});i.f.event("video_play_failed",p)},this.handleWaiting=e=>{const{currentTime:t=0,duration:n=0}=e,{isInPlaybackStage:o,blockStartTimestamp:r,isPause:s}=this.innerStates;if(0!==t&&t!==n&&o&&!1===s&&0===r){const n=Object.assign(Object.assign(Object.assign({},(0,a.he)(e)),(0,a.Ck)(e)),(0,a.vb)());i.f.event("video_block_start",n),this.innerStates.blockStartTimestamp=Date.now(),this.innerStates.blockStartProgress=1e3*t}},this.handleLoadStart=e=>{const t=Object.assign(Object.assign(Object.assign(Object.assign({},(0,a.he)(e)),(0,a.Ck)(e)),(0,a.vb)()),(0,o.Mp)(e));i.f.event("video_request",t),this.innerStates.loadStartTimestamp=Date.now()},this.handleLoadedData=e=>{this.responseEvent(e),this.innerStates.isVideoLoaded=!0},this.firstFrameEvent=()=>{const e=performance.timeOrigin,t={feed_total:e?Math.round(Date.now()-e):-1};i.f.event("first_feed_show_time",t),this.isFirstFrameReported=!0}}updateNativePlayerCDNCache(e,t){this.innerStates.cacheDuration=e,this.innerStates.cacheSize=t}msePlayerCacheUpdate(e){void 0!==e&&(this.innerStates.cdnSizeVideo+=e)}updatePlayerType(e){this.innerStates.dataPlayerType=e}blockEndEvent(e){const{currentTime:t=0,codecType:n,endType:o,should_filter:r=!1,droppedRate:s}=e,{blockStartTimestamp:l,blockStartProgress:c,isInPlaybackStage:d,isVideoLoaded:u}=this.innerStates;if(u&&d&&0!==l&&(1e3*t!==c||0===o)){const d=Date.now()-l-(1e3*t-c),u=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,a.he)(e)),(0,a.sK)(e)),(0,a.SO)(e)),(0,a.vb)()),{duration:d>=0?Math.round(d):0,is_bytevc1:(null!=n?n:"").indexOf("h265")>-1?1:0,end_type:o,position:Math.round(1e3*t),should_filter:r?"1":"0",droppedRate:s});i.f.event("video_block",u),this.innerStates.blockStartTimestamp=0}}responseEvent(e){const{loadStartTimestamp:t}=this.innerStates,{error:n,videoQuality:r,definition:s,play_url:l,codecType:c}=e,d=l?(0,a.bp)(l):-1,u=Date.now()-t;this.innerStates.videoSourceLoadTime=u;const p=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,a.he)(e)),(0,a.vb)()),(0,a.Ck)(e)),{error_code:String(null==n?void 0:n.code),duration:u,is_success:n?"0":"1",video_quality:r&&s?`${r}_${s}`:""}),(0,o.Mp)(e)),{isExpired:d,isSupportMP4:(0,a.vk)(),is_bytevc1:(null!=c?c:"").indexOf("h265")>-1?1:0});i.f.event("video_request_response",p)}playEndEvent(e){const{isFirstPlayReported:t,isFirstPlayEndReported:n,playingStartTimestamp:o,totalPauseDuration:r,firstTriggerPlayTimestamp:s,volume:c,frameInfo:d}=this.innerStates,{bitrate:u}=e;if(!n&&o){const{buffered:n,duration:p=0,currentTime:v=0,readyState:g,volume:m=0,muted:h,codecType:_}=e,f=o?Date.now()-o-r:0,y=u?u/8*((f>1e3*p?1e3*p:f)/1e3):-1,b=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,a.he)(e)),(0,a.sK)(e)),(0,a.SO)(e)),(0,a.vb)()),{is_success:t?"1":"0",video_duration:isNaN(p)?0:Math.round(1e3*p),play_duration:Math.round(1e3*v),buffering:(null!=g?g:0)<=2?1:0,duration:f>=0?Math.round(f):0,wait_duration:o>0?0:Date.now()-s,cur_cache_duration:(0,a.O5)(n),local_time_ms:Date.now(),volume_level:Number(m.toFixed(4)),volume_change:t?Number((m-c).toFixed(4)):0,muted:h?1:0,click_mute:this.innerStates.mutedStateChange?h?2:1:0,session_order:l++,play_size:Math.round(y),data_player_type:this.innerStates.dataPlayerType,cache_size:1===this.innerStates.dataPlayerType?-10:Math.round(this.innerStates.cacheSize),cache_duration:1===this.innerStates.dataPlayerType?-10:Math.round(this.innerStates.cacheDuration),cdn_size_video:this.innerStates.cdnSizeVideo}),d),{is_bytevc1:(null!=_?_:"").indexOf("h265")>-1?1:0});i.f.event("video_play_end",b),this.innerStates.isFirstPlayEndReported=!0}}}},67353:(e,t,n)=>{"use strict";n.d(t,{AX:()=>m,y8:()=>h,hd:()=>g,p$:()=>p,bt:()=>v});var i=n(14283),o=n(44137),a=n(72364),r=n(40048);n(40099),new a.Vb;const s=new r.A;var l,c=n(95053);const d=()=>s.shouldUseHEVC,u={isSupportBase:null!==(l=d())&&void 0!==l&&l,isHevcSupportRobustness:"unknown",date:new Date};let p={isSupportBase:(0,o.X)()?1:0,isHevcSupportRobustness:"unKnown",project:"unkowon"};const v=new class{constructor(){this.canPlayHevc=!1,this.forceNotHevc=!1,this.h264DropedRate=0,this.h265DropedRate=0,this.minDif=10,this.minFrames=60,this.maxDropedRate=10,this.robustnessTestResult=!1,this.updateHevcInfo(),this.hevcTest={open:!1,qualityType:20,closePreload:!1}}updateHevcInfo(){(0,i.f)()||(u&&d()?this.forceNotHevc?this.canPlayHevc=!1:this.canPlayHevc="supported"===u.isHevcSupportRobustness:this.canPlayHevc=!1)}useHevc(e){try{return"desktop"===e?(this.updateHevcInfo(),this.canPlayHevc):"mobile"===e&&!(!(0,o.X)()||this.forceNotHevc)}catch(e){return!1}}setDropRate(e,t,n){if(tthis.minDif||this.h265DropedRate>this.maxDropedRate)&&(this.canPlayHevc=!1,this.forceNotHevc=!0)}},g=(e,t=!1)=>{try{const n="webapp-mobile"===e?1:2;c.a.hevcDeviceDetect(t,n)}catch(e){}},m=e=>{try{const t="is unsupported",{message:n="",errorCode:i=1,errorMessage:o=""}=e,a=n||o;return!!a.includes(t)&&(c.a.focusDisableHevc({hevcMsg:a,hevcCode:i}),!0)}catch(e){return!1}},h=e=>{if(!e)return!1;const{videoWidth:t,videoHeight:n}=e;return 0===t&&0===n&&(c.a.focusDisableHevc({hevcMsg:"width and height is 0",hevcCode:2}),!0)}},21367:(e,t,n)=>{"use strict";n.d(t,{$V:()=>_,GF:()=>k,LM:()=>x,MY:()=>y,PU:()=>D,R3:()=>j,RT:()=>A,Ul:()=>S,VP:()=>T,b$:()=>L,eu:()=>O,ik:()=>M,lg:()=>w,ms:()=>P,nU:()=>I,nr:()=>b,w:()=>C,xI:()=>E,yA:()=>f,yG:()=>N});var i=n(67192),o=n(68252),a=n(38739),r=n(71111),s=n(31209),l=n(32125),c=n(14283),d=n(96959),u=n(91021),p=n(18499);const v="w_g_vv",g="w_g_fyp_vv",m=1e6,h={prevVideo:null,currentVideo:null,playProgress:null,playType:"hover",isAutoScroll:!1,isAutoScrollPaused:!1,isPlayerError:!1,globalVvCount:0,fypVvCount:0,justWatchedVideo:null,predictedPreloadConfig:{}},_=()=>{var e,t,n;const i=Object.assign({},h);if((0,c.f)())return i;try{const t=null!==(e=localStorage.getItem("auto_scroll"))&&void 0!==e?e:"0";i.isAutoScroll="1"===t}catch(e){console.warn("getLocalStorage failed for key: auto_scroll")}try{i.globalVvCount=Number(null!==(t=localStorage.getItem(v))&&void 0!==t?t:"0"),i.fypVvCount=Number(null!==(n=localStorage.getItem(g))&&void 0!==n?n:"0")}catch(e){console.warn("getLocalStorage failed for key: webapp_vv_count")}return i},f=(0,r.atom)(_());f.debugLabel="videoPlayerAtom";const{useServiceState:y,useServiceDispatchers:b,useAtomService:w,getStaticApi:x}=(0,s.i)(f,((e,t)=>({setAutoScroll(e){t(f,(t=>Object.assign(Object.assign({},t),{isAutoScroll:e})))},setAutoScrollPaused(e){t(f,(t=>Object.assign(Object.assign({},t),{isAutoScrollPaused:e})))},setPlayerError(){t(f,(e=>Object.assign(Object.assign({},e),{isPlayerError:!0})))},setAutoScrollAndUpdateLocalStorage(e){this.setAutoScroll(e);try{localStorage.setItem("auto_scroll",e?"1":"0")}catch(e){console.warn("setLocalStorage failed for key: auto_scroll")}},updateVideo(e){const{needResetReport:n=!0,currentVideo:{id:o,index:r},teaParams:{isThreeColumnAuto:s=!1,isVideoDetail:l=!1,enterMethod:v="",backendSourceEventTracking:g=""}={}}=e,m=i.l.getInstance(a.Gs),h=i.l.getInstance(u.JX);m.setIsThreeColumnAuto(s),m.setEnterMethod(v),m.setBackendSourceEventTracking(g),m.setIsVideoDetail(l),(0,d.Cd)(null!=o?o:""),!(0,c.f)()&&window.videoChangedCallback&&window.videoChangedCallback(r),h.setPreloadIndex(r),n&&m.reset(),(0,p.unstable_batchedUpdates)((()=>{var n;t(f,(t=>{var n;return Object.assign(Object.assign({},t),{prevVideo:t.currentVideo,currentVideo:e.currentVideo,playProgress:e.playProgress,current_mode:null===(n=e.currentVideo)||void 0===n?void 0:n.mode,playType:e.playType,isPlayerError:!1})})),!(null==(n=e.currentVideo)?void 0:n.id)||void 0===(null==n?void 0:n.mode)||0!==(null==n?void 0:n.mode)&&2!==(null==n?void 0:n.mode)&&9!==(null==n?void 0:n.mode)&&4!==(null==n?void 0:n.mode)||t(f,(e=>Object.assign(Object.assign({},e),{justWatchedVideo:n})))}))},updateVideoFocusTime(e){i.l.getInstance(a.Gs).updateVideoFocusTime(e.blurTime)},toggleAutoScroll(){this.setAutoScrollAndUpdateLocalStorage(!e(f).isAutoScroll)},updateGlobalVVCount(n){const{globalVvCount:i=0,fypVvCount:a=0}=e(f);let r=i;i<=m&&1!==n&&(r=i+1,(0,o.AP)(v,String(r)),t(f,(e=>Object.assign(Object.assign({},e),{globalVvCount:r})))),a<=m&&0===n&&((0,o.AP)(g,String(a+1)),t(f,(e=>Object.assign(Object.assign({},e),{fypVvCount:a+1}))))},updatePredictedPreloadConfig(e){t(f,(t=>Object.assign(Object.assign({},t),{predictedPreloadConfig:e})))},getStaticPlayerState:()=>e(f)}))),T=()=>y((e=>{var t,n;return Number(null!==(n=null===(t=e.currentVideo)||void 0===t?void 0:t.index)&&void 0!==n?n:0)})),S=()=>y((e=>e.currentVideo)),k=()=>y((e=>{var t;return null===(t=e.currentVideo)||void 0===t?void 0:t.id})),A=()=>y((e=>{var t,n;return null!==(n=null===(t=e.currentVideo)||void 0===t?void 0:t.mode)&&void 0!==n?n:null}),l.bN),O=()=>{var e;return null!==(e=y((e=>!e.isAutoScrollPaused&&e.isAutoScroll)))&&void 0!==e&&e},E=()=>y((e=>e.playProgress)),P=()=>{var e;return null!==(e=y((e=>e.isPlayerError)))&&void 0!==e&&e},I=e=>y((t=>{var n;return(null===(n=null==t?void 0:t.currentVideo)||void 0===n?void 0:n.index)===e}),l.bN),C=(e,t,n)=>y((i=>{var o,a,r;return(null===(o=null==i?void 0:i.currentVideo)||void 0===o?void 0:o.index)===e&&(null===(a=null==i?void 0:i.currentVideo)||void 0===a?void 0:a.mode)===t&&(null===(r=null==i?void 0:i.currentVideo)||void 0===r?void 0:r.id)===n}),l.bN),j=(e,t)=>y((n=>{var i,o;return(null===(i=null==n?void 0:n.currentVideo)||void 0===i?void 0:i.index)===e-1&&(null===(o=null==n?void 0:n.currentVideo)||void 0===o?void 0:o.mode)===t}),l.bN),L=(e,t)=>y((n=>{var i,o;return(null===(i=null==n?void 0:n.currentVideo)||void 0===i?void 0:i.index)===e+1&&(null===(o=null==n?void 0:n.currentVideo)||void 0===o?void 0:o.mode)===t}),l.bN),M=e=>y((t=>{var n;return(null===(n=null==t?void 0:t.currentVideo)||void 0===n?void 0:n.index)===e-1}),l.bN),N=e=>y((t=>{var n;return(null===(n=null==t?void 0:t.currentVideo)||void 0===n?void 0:n.index)===e+1}),l.bN),D=()=>{var e;return null!==(e=y((e=>e.predictedPreloadConfig)))&&void 0!==e?e:{}}},91021:(e,t,n)=>{"use strict";n.d(t,{Ah:()=>p,JX:()=>r,ZQ:()=>u,as:()=>s});var i=n(58632),o=n(38203);let a=3,r=class{constructor(){this.preloadQueue=[],this.preloadStartIndex=-1,this.currentPage="",this.preloadUrlsPool=new Set,this.setPreloadQueue=e=>{e.length&&(this.preloadQueue=null!=e?e:[],e.forEach((({id:e})=>{e&&this.preloadUrlsPool.add(e)})))},this.setPreloadIndex=e=>{e>=0&&(this.preloadStartIndex=e)},this.getPreloadUrls=()=>{const{preloadStartIndex:e}=this;return this.preloadQueue.slice(e+1,e+a+1)},this.getPreloadedPool=()=>this.preloadUrlsPool,this.reset=()=>{this.preloadQueue=[],this.preloadStartIndex=-1,this.preloadUrlsPool.clear()},this.setCurrentPage=e=>{this.currentPage=e||"unknown"},this.clearAllVideoCaches=()=>{this.currentPage&&this.preloadUrlsPool.clear()}}};r=(0,i.__decorate)([(0,o._)()],r);const s=e=>{a=e},l={byteLength:-1,duration:-1,type:-1,vid:"unknown"};class c{constructor(){this.preloadVideoId="",this.preloadVideoCache=l,this.setPreloadCacheInfo=(e,t)=>{e&&t&&e!==this.preloadVideoId&&(this.preloadVideoId=e,this.preloadVideoCache=t)},this.getPreloadCacheInfo=e=>e&&this.preloadVideoId&&e===this.preloadVideoId?this.preloadVideoCache:l}}let d=null;const u=()=>(d||(d=new c),d),p={playerDegrade:2,playerRetry:"v1",playerReuse:"v0",playerPreload:{vid:"v0",maxQueueCount:3,preloadMaxCacheCount:5,preloadTime:10,segmentMinDuration:10,minBufferLength:10,startPreloadControl:!1,startPreloadMinBuffer:0,startPreloadMinPosTime:0},playerLogger:0,bitrateSelect:{vid:"v0",qualityType:[],hevcQualityType:[]}}},40046:(e,t,n)=>{"use strict";n.d(t,{H$:()=>j,nK:()=>m,qZ:()=>_,uv:()=>h,IX:()=>O,eS:()=>A});var i=n(39228),o=n(26325),a=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};const r=class extends Error{constructor(e,t){super(e),this.name="ApiError",this.code=t}},s=e=>{var t;return e instanceof r&&null!==(t=e.code)&&void 0!==t?t:-1};var l=n(69589),c=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};function d(e=[],t={}){return e.reduce(((e,n)=>{const{reply_comment:i,cid:o}=n;return i&&(0,l.setDataForQueryByKey)(["comment","reply",o],(()=>({pageParams:[i.length],pages:[{cursor:`${i.length}`,comments:i,hasMore:!0}]}))),e.comments.push(function(e,t={}){return Object.assign(Object.assign({},e),{logId:t.logId})}(n,t)),e}),{comments:[]})}const u=e=>c(void 0,void 0,void 0,(function*(){var t,n,o,s;const{aweme_id:c,cursor:p="0",insert_ids:v,isNonPersonalized:g}=e;try{const e=yield function(e){return a(this,void 0,void 0,(function*(){return i.hd.get("/api/comment/list/",{query:Object.assign(Object.assign({},e),{count:20}),baseUrlType:2})}))}({insert_ids:"0"===p?v:void 0,aweme_id:c,cursor:p,is_non_personalized:g});if(e.status_code,0===e.status_code&&(null===(t=e.comments)||void 0===t?void 0:t.length)){const{comments:t}=d(e.comments,{logId:null===(n=e.log_pb)||void 0===n?void 0:n.impr_id}),i=null!==(s=null===(o=(0,l.getDataForQueryByKey)(["comment",c]))||void 0===o?void 0:o.pages.flatMap((t=>t.cursor!==e.cursor?t.comments:[])))&&void 0!==s?s:[],a=new Set(i.map((e=>e.cid))),r=t.filter((e=>!a.has(e.cid)));return 0===r.length&&e.has_more?u({aweme_id:c,cursor:e.cursor.toString(),insert_ids:v,isNonPersonalized:g}):{comments:r,hasMore:Boolean(e.has_more),cursor:e.cursor,isFirstLoad:0===Number(p),total:e.total}}throw new r("Comment fetch returned no new comments",e.status_code)}catch(e){return{comments:[],hasMore:!0,cursor:p,isFirstLoad:0===Number(p),total:0}}})),p=e=>c(void 0,void 0,void 0,(function*(){var t,n,o;const{itemId:s,cid:c,cursor:u="0"}=e;try{const e=yield function(e){return a(this,void 0,void 0,(function*(){return i.hd.get("/api/comment/list/reply/",{query:Object.assign(Object.assign({},e),{count:3}),baseUrlType:2})}))}({comment_id:c,item_id:s,cursor:u});if(e.status_code,0===e.status_code){const{comments:i}=d(e.comments,{logId:null===(t=e.log_pb)||void 0===t?void 0:t.impr_id}),a=["comment","reply",c],r=null!==(o=null===(n=(0,l.getDataForQueryByKey)(a))||void 0===n?void 0:n.pages.flatMap((t=>t.cursor!==e.cursor?t.comments:[])))&&void 0!==o?o:[],u=new Set(r.map((e=>e.cid))),v=i.filter((e=>!u.has(e.cid)));return 0===v.length&&e.has_more?p({itemId:s,cid:c,cursor:e.cursor.toString()}):{comments:[...v],cursor:e.cursor,hasMore:1===e.has_more}}throw new r("Failed to save reply list")}catch(e){return{cursor:u,comments:[],hasMore:!0}}})),v=e=>t=>c(void 0,void 0,void 0,(function*(){const{itemId:n,like:l,cid:c,parentCid:d}=t;if(e&&!d)throw new r("Reply comments need a parentCid to be provided");try{return{statusCode:(yield function(e){return a(this,void 0,void 0,(function*(){return i.hd.post("/api/comment/digg/",{query:Object.assign(Object.assign({},e),{channel_id:0}),headers:{[o.nk]:i.hd.csrfToken},baseUrlType:2})}))}({aweme_id:n,cid:c,digg_type:l?1:2})).status_code}}catch(e){return{statusCode:s(e)}}})),g=e=>c(void 0,void 0,void 0,(function*(){const{itemId:t,cid:n,parentCid:c}=e;try{const e=yield function(e){return a(this,void 0,void 0,(function*(){return i.hd.post("/api/comment/delete/",{query:e,baseUrlType:2,headers:{[o.nk]:i.hd.csrfToken}})}))}({cid:n});if(0!==e.status_code)throw new r(e.msg,e.status_code);if(c){const e=["comment",t];(0,l.setDataForQueryByKey)(e,(e=>{if(void 0===e)throw new r("Problem encountered with updating comment count");return{pageParams:e.pageParams,pages:e.pages.map((e=>Object.assign(Object.assign({},e),{comments:e.comments.map((e=>e.cid===c?Object.assign(Object.assign({},e),{reply_comment_total:Number(e.reply_comment_total)-1}):e))})))}}))}return{statusCode:e.status_code}}catch(e){return{statusCode:s(e)}}})),m=e=>{const{aweme_id:t}=e.comment,n=["comment",t],i=(0,l.getDataForQueryByKey)(n);return i?{pageParams:i.pageParams,pages:[{cursor:i.pages[0].cursor,comments:[e.comment,...i.pages[0].comments],hasMore:i.pages[0].hasMore,isFirstLoad:i.pages[0].isFirstLoad},...i.pages.slice(1)]}:{pageParams:[1],pages:[{cursor:1,comments:[e.comment],hasMore:!0,isFirstLoad:!0}]}},h=e=>{const{awemeId:t,parentCid:n}=e,i=["comment",t],o=(0,l.getDataForQueryByKey)(i);if(!o)throw new r("cannot reply to a comment when there are no comments");return{pageParams:o.pageParams,pages:o.pages.map((e=>Object.assign(Object.assign({},e),{comments:e.comments.map((e=>e.cid===n?Object.assign(Object.assign({},e),{reply_comment_total:e.reply_comment_total?Number(e.reply_comment_total)+1:1}):e))})))}},_=e=>{const{parentCid:t}=e,n=["comment","reply",t],i=(0,l.getDataForQueryByKey)(n);return i?{pageParams:i.pageParams,pages:[{cursor:i.pages[0].cursor,comments:[e.reply,...i.pages[0].comments],hasMore:i.pages[0].hasMore,isFirstLoad:i.pages[0].isFirstLoad},...i.pages.slice(1)]}:{pageParams:[1],pages:[{cursor:1,comments:[e.reply],hasMore:!0,isFirstLoad:!0}]}},f=e=>["comment",e.videoId],y=e=>["comment","reply",e.commentId],b={query:{fetchComment:{queryKeys:f,queryFn:u,infinite:!0}},mutation:{postCommentLike:{queryKeys:f,mutationFn:v(!1),optimisticUpdate:e=>{const{itemId:t,cid:n,like:i}=e,o=["comment",t],a=(0,l.getDataForQueryByKey)(o);if(!a)throw new r("Tried to like a comment that could not be found in query cache");return{pageParams:a.pageParams,pages:a.pages.map((e=>Object.assign(Object.assign({},e),{comments:e.comments.map((e=>e.cid===n?Object.assign(Object.assign({},e),{user_digged:i?1:2,digg_count:i?e.digg_count+1:e.digg_count-1}):e))})))}}},postCommentDelete:{queryKeys:f,mutationFn:g,optimisticUpdate:e=>{const{itemId:t,cid:n}=e,i=["comment",t],o=(0,l.getDataForQueryByKey)(i);if(!o)throw new r("Tried to delete a video that could not be found in query cache");return{pageParams:o.pageParams,pages:o.pages.map((e=>Object.assign(Object.assign({},e),{comments:e.comments.flatMap((e=>e.cid===n?[]:e))})))}}}}},w={query:{fetchReply:{queryKeys:y,queryFn:p,infinite:!0}},mutation:{postReplyLike:{queryKeys:y,mutationFn:v(!0),optimisticUpdate:e=>{const{cid:t,parentCid:n,like:i}=e;if(!n)throw new r("Reply comments need a parentCid to be provided");const o=["comment","reply",n],a=(0,l.getDataForQueryByKey)(o);if(!a)throw new r("Tried to like a comment that could not be found in query cache");return{pageParams:a.pageParams,pages:a.pages.map((e=>Object.assign(Object.assign({},e),{comments:e.comments.map((e=>e.cid===t?Object.assign(Object.assign({},e),{user_digged:i?1:0,digg_count:i?e.digg_count+1:e.digg_count-1}):e))})))}}},postReplyDelete:{queryKeys:y,mutationFn:g,optimisticUpdate:e=>{const{cid:t,parentCid:n}=e;if(!n)throw new r("Reply comments need a parentComment to be provided");const i=["comment","reply",n],o=(0,l.getDataForQueryByKey)(i);if(!o)throw new r("Could not find reply list for this comment");return{pageParams:o.pageParams,pages:o.pages.map((e=>Object.assign(Object.assign({},e),{comments:e.comments.flatMap((e=>e.cid===t?[]:e))})))}}}}};function x({relation:e,handleIsUnfollow:t,handleIsFollow:n}){switch(e){case 0:case-1:case 4:case 5:case 6:return t();default:return n()}}function T({current:e,targetUser:t}){const n=function(e){var t;return x({relation:null!==(t=e.relation)&&void 0!==t?t:-1,handleIsUnfollow:()=>{var t;return e.privateAccount?1:(null===(t=e.extraInfo)||void 0===t?void 0:t.followed)||6===e.relation?2:0},handleIsFollow:()=>3})}(t);switch(n){case 3:return 0;case 0:return x({relation:e,handleIsFollow:()=>e,handleIsUnfollow:()=>1});case 1:return x({relation:e,handleIsFollow:()=>e,handleIsUnfollow:()=>3});case 2:return x({relation:e,handleIsFollow:()=>e,handleIsUnfollow:()=>2});default:return x({relation:e,handleIsFollow:()=>e,handleIsUnfollow:()=>-1})}}var S=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};var k=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};const A=e=>{var t;const{uniqueId:n}=e,i=["user",n],o=(0,l.getDataForQueryByKey)(i);if(!o)throw new r("target user does not exist",10202);var a,s;return Object.assign(Object.assign({},o),{user:Object.assign(Object.assign({},o.user),{relation:T({current:o.user.relation,targetUser:o.user}),extraInfo:Object.assign(Object.assign({},o.user.extraInfo),{followed:(a=o.user.relation,s=null===(t=o.user.extraInfo)||void 0===t?void 0:t.followed,2===a||6===a||5!==a&&s)})})})},O=e=>{const{uniqueId:t,isBlock:n}=e,i=["user",t],o=(0,l.getDataForQueryByKey)(i);if(!o)throw new r("target user does not exist",10202);return Object.assign(Object.assign({},o),{user:Object.assign(Object.assign({},o.user),{relation:n?0:4})})},E=e=>["user",e.uniqueId],P={query:{getUserDetail:{queryKeys:E,queryFn:e=>k(void 0,void 0,void 0,(function*(){try{const t=yield function(e){return S(this,void 0,void 0,(function*(){return i.hd.get("/api/user/detail/",{query:e,baseUrlType:2})}))}(e);if(0!==t.statusCode&&10222!==t.statusCode||!t.userInfo)throw new r("Get user detail failed",t.statusCode);return{user:Object.assign(Object.assign({uniqueIdModifyTime:0},t.userInfo.user),{extraInfo:{statusCode:t.statusCode}}),stats:Object.assign(Object.assign({},t.userInfo.stats),{needFix:!1})}}catch(e){throw e}})),infinite:!1}},mutation:{postCommitFollowUser:{queryKeys:E,mutationFn:e=>k(void 0,void 0,void 0,(function*(){var t;try{const{uniqueId:t,useFollowV2:n}=e,a=["user",t],s=(0,l.getDataForQueryByKey)(a);if(!s)throw new r("target user does not exist",10202);const{id:c,secUid:d="",relation:u}=s.user,p=function(e){return x({relation:e,handleIsUnfollow:()=>0,handleIsFollow:()=>1})}(u),v={type:1===p?1:0,action_type:1===p?1:0,user_id:c,sec_user_id:d,from:18,channel_id:0,from_pre:0},g=n?yield function(e){return S(this,void 0,void 0,(function*(){return i.hd.post("/api/follow/",{signal:(new AbortController).signal,query:Object.assign(Object.assign({},e),{fromWeb:1}),baseUrlType:2,headers:{[o.nk]:i.hd.csrfToken}})}))}(v):yield function(e){return S(this,void 0,void 0,(function*(){return i.hd.post("/api/commit/follow/user/",{query:Object.assign(Object.assign({},e),{fromWeb:1}),baseUrlType:2,headers:{[o.nk]:i.hd.csrfToken}})}))}(v),{status_code:m,follow_status:h}=g;if(24===m)throw new r("inbox_follow_failed_banned",24);if(-1===m)throw new r("inbox_follow_failed_noconnection",-1);if(0!==m)throw new r("inbox_follow_failed_other",m);return{statusCode:m,followStatus:h}}catch(e){return e instanceof r?{statusCode:null!==(t=e.code)&&void 0!==t?t:-1,followStatus:-1}:{statusCode:-1,followStatus:-1}}})),optimisticUpdate:A},blockOrUnblockUser:{queryKeys:E,mutationFn:e=>k(void 0,void 0,void 0,(function*(){var t;try{const{secUid:t,isBlock:n}=e,{status_code:a}=yield function(e){return S(this,void 0,void 0,(function*(){return i.hd.post("/api/user/block/",{query:Object.assign(Object.assign({},e),{source:3}),baseUrlType:2,headers:{[o.nk]:i.hd.csrfToken}})}))}({sec_user_id:t,block_type:n?0:1});return a}catch(e){return e instanceof r&&null!==(t=e.code)&&void 0!==t?t:-1}})),optimisticUpdate:O}}};var I=n(51660);const C={query:{getRelatedVideoList:{queryKeys:e=>["video","related",e.itemId],queryFn:e=>{return t=void 0,n=void 0,a=function*(){const{itemId:t,language:n,isNonPersonalized:o,coverFormat:a}=e,r=(0,I.uk)(n),s=yield(l={aid:1988,count:16,itemID:t,language:r,coverFormat:a,isNonPersonalized:o},i.hd.get("/api/related/item_list/",{query:l,baseUrlType:2}));var l;return Object.assign(Object.assign({},s),{hasMore:!0})},new((o=void 0)||(o=Promise))((function(e,i){function r(e){try{l(a.next(e))}catch(e){i(e)}}function s(e){try{l(a.throw(e))}catch(e){i(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(r,s)}l((a=a.apply(t,n||[])).next())}));var t,n,o,a}}}},j=()=>[b,w,P,C]},56013:(e,t,n)=>{"use strict";n.d(t,{ZC:()=>p,d7:()=>g,mo:()=>u});var i=n(88874),o=n(65450),a=n(14374),r=n(71111),s=n(31209),l=n(39785),c=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};const d=(0,l.M)({csr:()=>c(void 0,void 0,void 0,(function*(){var e;const t=null!==(e=(0,i.YI)(o.X))&&void 0!==e?e:{pageId:"-1",vidList:[],parameters:{}};return Promise.resolve(t)}))}),u=(0,a._)((0,r.atom)({}),{rehydrationKey:"seo.abtest.state"}),{useAtomService:p,useServiceDispatchers:v,useServiceState:g}=(0,s.i)(u,((e,t)=>({setAbtest(n){return c(this,void 0,void 0,(function*(){const i=e(u),{canonical:o}=i;if(n!==o)return t(u,{canonical:n,abtest:yield d()})}))}})))},9472:(e,t,n)=>{"use strict";n.d(t,{b:()=>a});var i=n(14374),o=n(71111);const a=(0,i._)((0,o.atom)({metaParams:{},jsonldList:[],disableAlternateLink:!1,generateAlternateWithCanonical:!1,enableAlternateHreflang:!1,alternateHreflangList:[]}),{rehydrationKey:"seo.meta.state"})},7089:(e,t,n)=>{"use strict";n.d(t,{kV:()=>p,hG:()=>d,VR:()=>u});var i=n(14374),o=n(71111),a=n(31209),r=n(39228),s=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))},l=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};const c=(0,i._)((0,o.atom)({businessPermission:{comment:!1,message:!1},businessAccountInfoResponse:{statusCode:1,statusMsg:"",data:void 0}}),{rehydrationKey:"webapp.business"});c.debugLabel="businessAtom";const{useAtomService:d,useServiceState:u,useServiceDispatchers:p,getStaticApi:v}=(0,a.i)(c,((e,t)=>({setBusinessPermission(e){t(c,(t=>Object.assign(Object.assign({},t),{businessPermission:e})))},setBusinessAccountInfoResponse(e){t(c,(t=>Object.assign(Object.assign({},t),{businessAccountInfoResponse:e})))},getBusinessPermissionList(){var e;return l(this,void 0,void 0,(function*(){const t=yield function(){return s(this,void 0,void 0,(function*(){return r.hd.get("/api/ba/business/suite/permission/list/",{query:{permissionList:"001004,001005"},baseUrlType:2})}))}(),n=null!==(e=null==t?void 0:t.permissionList)&&void 0!==e?e:[];this.setBusinessPermission({message:n.indexOf("001004")>-1,comment:n.indexOf("001005")>-1})}))},getBusinessAccountInfoResponse(){return l(this,void 0,void 0,(function*(){const e=yield function(){return s(this,void 0,void 0,(function*(){return r.hd.get("/api/ba/business/suite/bs/account/info/",{query:{scene:"dm"},baseUrlType:2})}))}();this.setBusinessAccountInfoResponse(e)}))}})))},16680:(e,t,n)=>{"use strict";n.d(t,{CP:()=>S,JF:()=>y,b1:()=>T,mZ:()=>x});var i=n(57432),o=n.n(i),a=n(4474),r=n(18499),s=n(64431),l=n(57431),c=n(93608),d=n(31974),u=n(18829),p=n(54888),v=n(14374),g=n(71111),m=n(31209);const h={isOpen:!1,url:"",isRedirectToProfilePage:!1,closeable:!1,isBannerActive:!1,bannerEnabled:!1,content:{title:"",desc:"",btnOpenText:""},iframeStyle:{},handleDownload:o(),handleLogin:o(),closeCallback:o(),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};function _(){return-1!==(window.location.pathname+window.location.search).indexOf("recharge")}function f(e){if(e)return["click_like","click_comment","click_follow","share_button","click_like_comment","click_reply_comment","click_dislike","click_favorite"].includes(e)?"engagement":"default"}const y=(0,v._)((0,g.atom)(h),{rehydrationKey:"webapp.login"});let b;y.debugLabel="loginAtom";const{useAtomService:w,useServiceState:x,useServiceDispatchers:T,getStaticApi:S}=(0,m.i)(y,((e,t)=>({setCloseable(e){t(y,(t=>Object.assign(Object.assign({},t),{closeable:e})))},setUrl(e){t(y,(t=>Object.assign(Object.assign({},t),{url:e})))},setLoginPath(e){t(y,(t=>Object.assign(Object.assign({},t),{loginPath:e})))},setCloseCallback(e){e&&t(y,(t=>Object.assign(Object.assign({},t),{closeCallback:e})))},setIsOpen(e){t(y,(t=>Object.assign(Object.assign({},t),{isOpen:e})))},setContent(e){e&&t(y,(t=>Object.assign(Object.assign({},t),{content:e})))},setHandleDownload(e){e&&t(y,(t=>Object.assign(Object.assign({},t),{handleDownload:e})))},setHandleLogin(e){e&&t(y,(t=>Object.assign(Object.assign({},t),{handleLogin:e})))},setIframeStyle(e){t(y,(t=>Object.assign(Object.assign({},t),{iframeStyle:e})))},setModalType(e){t(y,(t=>Object.assign(Object.assign({},t),{modalType:e})))},setLoginModalShow(e){var n,i;if(t(y,(t=>Object.assign(Object.assign({},t),{loginModalShow:e}))),!e&&window.byted_acrawler){const{vgeo:e}=(0,s.c)();null===(i=(n=window.byted_acrawler).setUserMode)||void 0===i||i.call(n,(0,u.n)({isVA:"VGeo-US"===e,isLogin:!1,isFTC:!1,isHighRisk:!1}))}},setMaskCloseable(e){t(y,(t=>Object.assign(Object.assign({},t),{maskCloseable:e})))},setPageType(e){t(y,(t=>Object.assign(Object.assign({},t),{pageType:e})))},setUserId(e){t(y,(t=>Object.assign(Object.assign({},t),{userId:e})))},setGroupId(e){t(y,(t=>Object.assign(Object.assign({},t),{groupId:e})))},setLastGroupId(e){t(y,(t=>Object.assign(Object.assign({},t),{lastGroupId:e})))},setEnterMethod(e){t(y,(t=>Object.assign(Object.assign({},t),{enterMethod:e})))},setModalImage(e){t(y,(t=>Object.assign(Object.assign({},t),{modalImage:e})))},setPopupType(e){t(y,(t=>Object.assign(Object.assign({},t),{popupType:e})))},setIsRedirectToProfilePage(e){t(y,(t=>Object.assign(Object.assign({},t),{isRedirectToProfilePage:e})))},setIsGuestMode(e){t(y,(t=>Object.assign(Object.assign({},t),{isGuestMode:e})))},setIsGuestModeUI(e){t(y,(t=>Object.assign(Object.assign({},t),{isGuestModeUI:e})))},setPredictionPayload(e){t(y,(t=>Object.assign(Object.assign({},t),{predictionPayload:e})))},setIsLinkPhoneOrEmail(e){t(y,(t=>Object.assign(Object.assign({},t),{isLinkPhoneOrEmail:e})))},openModal(n){var i,o;const{url:s,isRedirectToProfilePage:d=!1,loginPath:u,isSignup:v,closeable:g=!0,query:m={},iframeStyle:h={},content:b,handleDownload:w,handleLogin:x,closeCallback:T,maskCloseable:S=!1,userId:k,enterMethod:A,pageType:O=999,popupType:E,groupId:P,lastGroupId:I,isGuestMode:C,isGuestModeUI:j,predictionPayload:L,isLinkPhoneOrEmail:M}=n,{language:N}=(0,l.x)(),{bizContext:D}=e(p.A),R=null!=u?u:"/"+(v?"signup":"login"),B=null!=s?s:(0,a.stringifyUrl)({url:R,query:Object.assign({lang:N,is_modal:1,hide_close_btn:1,event_name:v?"enter_sign_up":null,type:_()?"recharge":"",enter_from:c.f.commonParams.page_name},m)},{skipNull:!0}),U=null!=A?A:m.enter_method,F=null!=P?P:m.group_id,V=null!=I?I:m.last_group_id,z=null!==(o=null!==(i=m.type)&&void 0!==i?i:_()?"recharge":"")&&void 0!==o?o:"";B.match(/\/login|\/signup|\/link-phone-or-email/)&&!(null==D?void 0:D.isMobile)?(0,r.unstable_batchedUpdates)((()=>{t(y,(e=>Object.assign(Object.assign({},e),{url:B,isRedirectToProfilePage:d,modalType:z,closeable:g,popupType:E,enterMethod:U,modalImage:f(U),closeCallback:null!=T?T:e.closeCallback,groupId:F,lastGroupId:V,isGuestMode:null!=C&&C,isGuestModeUI:null!=j&&j,predictionPayload:null!=L?L:"",isLinkPhoneOrEmail:null!=M&&M}))),this.setLoginModalShow(!0)})):t(y,(e=>Object.assign(Object.assign({},e),{url:B,isRedirectToProfilePage:d,closeable:g,isOpen:!0,content:null!=b?b:e.content,handleDownload:null!=w?w:e.handleDownload,handleLogin:null!=x?x:e.handleLogin,iframeStyle:h,maskCloseable:S,closeCallback:null!=T?T:e.closeCallback,userId:k,enterMethod:U,pageType:O,popupType:E,groupId:F,lastGroupId:V,isLinkPhoneOrEmail:null!=M&&M})))},setCheckPeriodicLogin(e){t(y,(e=>Object.assign(Object.assign({},e),{hasCheckedPeriodicLogin:!0}))),t(y,(t=>Object.assign(Object.assign({},t),{showLoginOnLoad:t.showLoginOnLoad||e.showLoginOnLoad})))},setCheckPredictionLogin(e){t(y,(e=>Object.assign(Object.assign({},e),{hasCheckedPredictionLogin:!0}))),t(y,(t=>Object.assign(Object.assign({},t),{showLoginOnLoad:t.showLoginOnLoad||e.showLoginOnLoad})))},setCheckGuestModeLogin(e){t(y,(e=>Object.assign(Object.assign({},e),{hasCheckedGuestMode:!0}))),t(y,(t=>Object.assign(Object.assign({},t),{showLoginOnLoad:t.showLoginOnLoad||e.showLoginOnLoad})))},setIsLoginOnLoadClosed(e){t(y,(t=>Object.assign(Object.assign({},t),{isLoginOnLoadClosed:e.isLoginOnLoadClosed})))},setClearShowLoginOnLoad(){t(y,(e=>Object.assign(Object.assign({},e),{hasCheckedPeriodicLogin:!1}))),t(y,(e=>Object.assign(Object.assign({},e),{hasCheckedPredictionLogin:!1}))),t(y,(e=>Object.assign(Object.assign({},e),{showLoginOnLoad:!1})))},closeModal(n){const{enter_method:i,disableReport:a}=n;if(a)return;b||(b=d.$F.getInstance()),b.LoginNotifyClose({enter_method:i});const{closeCallback:r=o()}=e(y);r(),t(y,(e=>Object.assign(Object.assign({},e),{isOpen:!1,url:"",groupId:void 0})))},setIsBannerActive(e){t(y,(t=>Object.assign(Object.assign({},t),{isBannerActive:e})))}})))},10287:(e,t,n)=>{"use strict";n.d(t,{xt:()=>M,SE:()=>j,TP:()=>C});var i=n(70952),o=n.n(i);const a=["like","favorite","click_comment","post_comment","follow","share","download","head","finish","cover","repost"],r=["play","pause","wait","unmount"];var s,l;(l=s||(s={})).Interested="i",l.NotInterested="n",l.Neutral="v";const c="nb_classifier",d=["k_fyp","k_foryou","k_foryoupage","k_parati","k_fy","k_fypage","k_foryourpage","k_fpy","k_4u","k_fouryou","k_fypviral","k_fouryoupage","k_for","k_foru","k_fup","k_typ","k_4upage","k_viral","k_viralvideo","k_viraltiktok","k_goviral","k_videoviral","k_tiktokviral","k_viralvideos","k_viral_video","k_popular","k_trending","k_trendingvideo","k_new","k_trendingtiktok","k_tiktok","k_tiktokviral","k_vairal","k_trend","k_explore","k_explorepage","k_video"];var u=n(21578),p=n(71828);const v=/[^\s#]+#|#[^\s#]+/g,g=(e,t=!1,n=!1)=>{const i=((e,t=!1,n=!1)=>{const i=(e=>{var t;if(!e.textExtra)return[...new Set(null===(t=e.desc.match(v))||void 0===t?void 0:t.map((e=>e.replace("#","").toLowerCase())))].filter(Boolean).map((e=>`k_${e}`));const{textExtra:n}=e;return n.map((e=>{var t,n;return null===(n=null===(t=e.hashtagName)||void 0===t?void 0:t.toLowerCase())||void 0===n?void 0:n.trim()})).filter(Boolean).map((e=>`k_${e}`))})(e),o=(e=>{const t=e.music;if(!t)return;const{id:n,private:i,original:o}=t;return!n||i||o?void 0:`m_${n}`})(e),a=t?(e=>{const{duration:t}=e.video;return t>0&&t<=7?"d_0-7":t>7&&t<=10?"d_7-10":t>10&&t<=12?"d_10-12":t>12&&t<=14?"d_12-14":t>14&&t<=16?"d_14-16":t>16&&t<=20?"d_16-20":t>20&&t<=26?"d_20-26":t>26&&t<=36?"d_26-36":t>36&&t<=51?"d_36-51":t>51&&t<=62?"d_51-62":t>62&&t<=88?"d_62-88":t>88&&t<=143?"d_88-143":t>143?"d_>143":void 0})(e):(e=>{const{duration:t}=e.video;return t>0&&t<=12?"d_0-12":t>12&&t<=23?"d_12-23":t>23&&t<=60?"d_23-60":t>60?"d_>60":void 0})(e),r=(e=>{var t;const{desc:n,textExtra:i}=e;if(!n)return;if(!i)return(0,u.o0)(n);const o=null===(t=[...i].sort(((e,t)=>e.start-t.start)).filter((e=>e.hashtagId))[0])||void 0===t?void 0:t.start,a=n.substring(0,o);return a?(0,u.o0)(a):(0,u.o0)(n)})(e),s=[...i,`h_${(new Date).getHours()}`];return o&&s.push(o),a&&s.push(a),r&&s.push(`l_${r}`),n&&e.diversificationId&&s.push(`c_${e.diversificationId}`),s})(e,t,n),o=e.authorId;return o&&i.push(`a_${o}`),i};var m=n(14374),h=n(71111),_=n(31209),f=n(2408),y=n(57431),b=n(83663),w=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};function x(){return w(this,void 0,void 0,(function*(){return yield(0,b.P2)("nb",1,{upgrade(e){e.createObjectStore(c,{keyPath:"id"})}})}))}function T(e){return w(this,void 0,void 0,(function*(){const{id:t,classifier:n,db:i}=e;try{yield i.put(c,{id:t,classifier:n}),p.F.handleStorageWrite({is_success:1})}catch(e){throw p.F.handleStorageWrite({is_success:0,fail_error_msg:`${e}`}),e}}))}var S=n(93608);const k=(e,t)=>!/^(m_|a_|k_)/.test(e)||/^(k_fyp|k_parati|k_fy)/.test(e)||d.includes(e)||1===e.length||-1!==e.indexOf(t);var A=n(58305),O=n(40040),E=n(84908),P=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};const I=(0,m._)((0,h.atom)({uid:"",item:void 0,classifier:void 0,play_time:0,show_interested:-1,docBuffer:[],is_preview:!1,finish_play:!1,suggestedItemList:[],isSuggestedItemListReady:"undefined"==typeof window||!(null===window||void 0===window?void 0:window.indexedDB),isMlModelReady:!1}),{rehydrationKey:"webapp.mlModel"});I.debugLabel="mlModelAtom";const{useAtomService:C,useServiceDispatchers:j,useServiceState:L,getStaticApi:M}=(0,_.i)(I,((e,t)=>({initMlModel(){var n,i,a,r,s,l,d;return P(this,void 0,void 0,(function*(){if("undefined"==typeof window||!(null===window||void 0===window?void 0:window.indexedDB))return void p.F.handleStorageLoad({is_success:0,fail_error_msg:"no indexedDB"});const{user:u,abTestVersion:v,odinId:g}=(0,y.x)(),m=null!==(i=null!==(n=null==u?void 0:u.uid)&&void 0!==n?n:g)&&void 0!==i?i:"",h=null!==(a=null==u?void 0:u.secUid)&&void 0!==a?a:"",_=null!==(s=null===(r=null==v?void 0:v.parameters.enable_ml_model)||void 0===r?void 0:r.vid)&&void 0!==s?s:"v1",b="v0"!==(null!==(d=null===(l=null==v?void 0:v.parameters.enable_ml_model_suggest_content)||void 0===l?void 0:l.vid)&&void 0!==d?d:"v0"),S=e(f.WH);if("v1"===_||u&&!u.hasIMPermission||(0,f.PJ)(S))p.F.handleStorageLoad({is_success:0,fail_error_msg:"no allowed"});else try{const e=yield x(),{classifier:n}=(yield function(e){var t;return w(this,void 0,void 0,(function*(){const{uid:n,db:i,secUid:o}=e;try{const e=yield i.get(c,n);if(!e&&o){const{classifier:e}=null!==(t=yield i.get(c,o))&&void 0!==t?t:{};e&&(yield T({db:i,id:n,classifier:e}),yield i.delete(c,o))}return p.F.handleStorageLoad({is_success:1}),e}catch(e){throw p.F.handleStorageLoad({is_success:0,fail_error_msg:`${e}`}),e}}))}({db:e,uid:m,secUid:h}))||{},i=new(o());n&&i.restore(n),t(I,(e=>Object.assign(Object.assign({},e),{uid:m,secUid:h,classifier:i,isSuggestedItemListReady:!b,isMlModelReady:!0})))}catch(e){throw p.F.handleStorageLoad({is_success:0,fail_error_msg:`${e}`}),e}}))},trainAndUpdateClassifier(){return P(this,void 0,void 0,(function*(){const{docBuffer:n,classifier:i,uid:o}=e(I);if(n.length<3&&i||!i)return;const a=yield x();try{const e=(e=>{const{documents:t=[],classifier:n,maxDocsCount:i=4e3,evictDocsCount:o=1e3}=e;if(0===t.length)return n;const a=[],r=[];t.forEach((({id:e,action:t})=>{a.push(t),r.push(e)}));const s={video_interactions:a.join(","),interaction_video_ids:r.join(",")};try{p.F.handleTrainRequest(s),t.forEach((({value:e,label:t})=>{n.addDocument(e,t)}));const{docs:e}=n;let a=!1;if(e.length>i){const t=e.slice(e.length-i+o);for(const{label:e,value:i}of t)n.addDocument(i,e);a=!0}n.train(),p.F.handleTrainReturn(Object.assign({is_success:1,is_slicing:a?1:0,docs_count:n.docs.length},s))}catch(e){p.F.handleTrainReturn(Object.assign({is_success:0,fail_error_msg:e.message},s)),console.error(`${e.message} - ${e.stack}`)}return n})({documents:n,classifier:i});yield T({db:a,classifier:e,id:o}),t(I,(t=>Object.assign(Object.assign({},t),{classifier:e,docBuffer:[]})))}catch(e){}}))},addTrainData(n){var i,o,l;return P(this,void 0,void 0,(function*(){const c=e(I),{classifier:d}=c;if(!d)return;const{item:u,action:p,isPreview:v}=n;if(!u||u.video.id===(null===(i=c.item)||void 0===i?void 0:i.video.id)&&c.finish_play&&"finish"===p)return;if("play"===p){if(u.video.id===(null===(o=c.item)||void 0===o?void 0:o.video.id))return void t(I,(e=>Object.assign(Object.assign({},e),{startPlayTimestamp:Date.now(),is_preview:!!v})));const e={item:u,finish_play:!1,show_interested:-1,play_time:0,is_preview:!!v,startPlayTimestamp:Date.now()};if(c.item&&!c.is_preview&&-1===c.show_interested){const t=c.item.video.duration<=5||c.item.video.duration>5&&c.play_time<5e3;e.docBuffer=[...c.docBuffer,{id:c.item.video.id,action:t?"skip":"play",value:g(c.item),label:t?s.NotInterested:s.Neutral}]}return t(I,(t=>Object.assign(Object.assign({},t),e))),void(yield this.trainAndUpdateClassifier())}if(r.includes(p)){const e=c.play_time+(c.startPlayTimestamp?Date.now()-c.startPlayTimestamp:0);return void t(I,(t=>Object.assign(Object.assign({},t),{play_time:e})))}const m={},h=g(u),_=a.includes(p)?1:0;m.docBuffer=[...c.docBuffer,{id:u.video.id,action:p,value:h,label:_?s.Interested:s.NotInterested}],u.video.id===(null===(l=c.item)||void 0===l?void 0:l.video.id)&&(m.show_interested=_),"finish"===p&&(m.finish_play=!0),t(I,(e=>Object.assign(Object.assign({},e),m))),yield this.trainAndUpdateClassifier()}))},getSuggestedForyouList(){var n,i;return P(this,void 0,void 0,(function*(){const{classifier:o,uid:a}=e(I),r="1"===(0,A._S)(O.Is);if(!o||!r&&!a)return void t(I,(e=>Object.assign(Object.assign({},e),{isSuggestedItemListReady:!0})));const s=((e,t)=>{var n,i;let o=0;const a=[],{docs:r}=e,s=new Set,{abTestVersion:l}=(0,y.x)(),c=1e4,{author:d=c}=null!==(i=null===(n=null==l?void 0:l.parameters.ml_model_suggest_content_threshold)||void 0===n?void 0:n.vid)&&void 0!==i?i:{};for(let e=0;e{var n,i,o,a,r,s,l,c,d,p,v,g,m,h,_,f;const y=null!==(i=null===(n=u.i)||void 0===n?void 0:n[e[0]])&&void 0!==i?i:0,b=null!==(a=null===(o=u.i)||void 0===o?void 0:o[t[0]])&&void 0!==a?a:0;if(y!==b)return b-y;const w=(null!==(s=null===(r=u.i)||void 0===r?void 0:r[e[0]])&&void 0!==s?s:0)+(null!==(c=null===(l=u.v)||void 0===l?void 0:l[e[0]])&&void 0!==c?c:0)-(null!==(p=null===(d=u.n)||void 0===d?void 0:d[e[0]])&&void 0!==p?p:0),x=(null!==(g=null===(v=u.i)||void 0===v?void 0:v[t[0]])&&void 0!==g?g:0)+(null!==(h=null===(m=u.v)||void 0===m?void 0:m[t[0]])&&void 0!==h?h:0)-(null!==(f=null===(_=u.n)||void 0===_?void 0:_[t[0]])&&void 0!==f?f:0);return w!==x?x-w:t[0]-e[0]})),((e,t)=>{const n={i:{},v:{},n:{}},i={i:{},v:{},n:{}},o={i:{},v:{},n:{}},a={a_:n,k_:i,m_:o};e.forEach((([e,n])=>{var i,o,r,s,l,c,d,u,p;const v=a[n.substring(0,2)],g=(null!==(o=null===(i=t.i)||void 0===i?void 0:i[e])&&void 0!==o?o:1)-1,m=(null!==(s=null===(r=t.v)||void 0===r?void 0:r[e])&&void 0!==s?s:1)-1,h=(null!==(c=null===(l=t.n)||void 0===l?void 0:l[e])&&void 0!==c?c:1)-1;v.i[g]=(null!==(d=v.i[g])&&void 0!==d?d:0)+1,v.v[m]=(null!==(u=v.v[m])&&void 0!==u?u:0)+1,v.n[h]=(null!==(p=v.n[h])&&void 0!==p?p:0)+1})),S.f.sendEvent("frontend_rec_author_distribution",{distribution:JSON.stringify(n)}),S.f.sendEvent("frontend_rec_tag_distribution",{distribution:JSON.stringify(i)}),S.f.sendEvent("frontend_rec_music_distribution",{distribution:JSON.stringify(o)})})(a,u);const p=[];let v=0,g=0,m=0;return a.forEach((([e,t])=>{var n,i;const o=(null!==(i=null===(n=u.i)||void 0===n?void 0:n[e])&&void 0!==i?i:1)-1;t.startsWith("a_")&&(o>=d&&v<10&&(p.push(t),v++),o>=1&&g++,o>=2&&m++)})),g>=1&&S.f.sendEvent("frontend_rec_suggested_content_should_show",{threshold:1,count:g}),m>=1&&S.f.sendEvent("frontend_rec_suggested_content_should_show",{threshold:2,count:m}),p})(o,a);if(0===s.length)return void t(I,(e=>Object.assign(Object.assign({},e),{isSuggestedItemListReady:!0})));const{abTestVersion:l}=(0,y.x)();if("v0"===(null!==(i=null===(n=null==l?void 0:l.parameters.enable_ml_model_suggest_content)||void 0===n?void 0:n.vid)&&void 0!==i?i:"v0"))return;const c=(yield Promise.all(s.map((e=>P(this,void 0,void 0,(function*(){var t,n;const i=e.split("_").slice(-1)[0];if(e.startsWith("a_")){const e=yield(0,E.Gp)().getUserDetail({userId:i});if(0!==e.statusCode)return;return{type:"author",title:null!==(n=null===(t=e.userInfo)||void 0===t?void 0:t.user.uniqueId)&&void 0!==n?n:""}}})))))).filter((e=>!!e));S.f.sendEvent("frontend_rec_suggested_content",{items:JSON.stringify(c),count:c.length}),t(I,(e=>Object.assign(Object.assign({},e),{suggestedItemList:c,isSuggestedItemListReady:!0})))}))}})))},89558:(e,t,n)=>{"use strict";n.d(t,{Fc:()=>r,Lq:()=>s,MW:()=>a,W$:()=>i,eh:()=>o,oG:()=>l});const i="non_personalized_feeds_web",o="personalized_search_disabled_list",a="personalized_feed_disabled_list",r="personalized_feed_disabled_not_login",s="personalized_feed_ppf_disabled_list",l="webapp_popup_personalization_toast"},2408:(e,t,n)=>{"use strict";n.d(t,{HY:()=>m,JW:()=>h,PJ:()=>u,Qi:()=>_,WH:()=>g,nH:()=>f});var i=n(14374),o=n(71111),a=n(31209),r=n(57431),s=n(99374),l=n(88874),c=n(63615),d=n(97086);const u=e=>{const{isFeedPersonalized:t}=e;return!t},p={isSearchPersonalized:!0,isFeedPersonalized:!0,isSearchConfigInitialized:!1,isFeedConfigInitialized:!1,isManageModalOpen:!1,isExplanationModalOpen:!1,isShowingToast:!1},v={isSearchPersonalized:!1,isFeedPersonalized:!1,isSearchConfigInitialized:!1,isFeedConfigInitialized:!1,isManageModalOpen:!1,isExplanationModalOpen:!1,isShowingToast:!1},g=(0,i._)((0,o.atom)((()=>{const e=function(){if((0,d.fU)())return"";const e=(0,l.YI)(c.Ow),{user:{uid:t=""}={}}=e||{};return t}();return(0,s.mx)(void 0,e)?v:p})()),{rehydrationKey:"webapp.personalization"});g.debugLabel="personalizationAtom";const{useAtomService:m,useServiceState:h,useServiceDispatchers:_,getStaticApi:f}=(0,a.i)(g,((e,t)=>({setIsShowingToast(e){t(g,(t=>Object.assign(Object.assign({},t),{isShowingToast:e})))},setIsManageModalOpen(e){t(g,(t=>Object.assign(Object.assign({},t),{isManageModalOpen:e})))},setIsExplanationModalOpen(e){t(g,(t=>Object.assign(Object.assign({},t),{isExplanationModalOpen:e})))},setIsSearchPersonalized(e){t(g,(t=>Object.assign(Object.assign({},t),{isSearchPersonalized:e})))},setIsFeedPersonalized(e){t(g,(t=>Object.assign(Object.assign({},t),{isFeedPersonalized:e})))},setSearchConfigInitialized(e){t(g,(t=>Object.assign(Object.assign({},t),{isSearchConfigInitialized:e})))},setFeedConfigInitialized(e){t(g,(t=>Object.assign(Object.assign({},t),{isFeedConfigInitialized:e})))},init(n){var i,o,a,l,c,d;return a=this,l=void 0,d=function*(){const{isFeed:a}=n,l=(0,r.x)(),{isSearchConfigInitialized:c,isFeedConfigInitialized:d}=e(g);if(c&&!a||d&&a)return;const u=null!==(o=null===(i=l.user)||void 0===i?void 0:i.uid)&&void 0!==o?o:"",p=(0,s.eI)(u,a);t(g,a?e=>Object.assign(Object.assign({},e),{isFeedPersonalized:!p,isFeedConfigInitialized:!0}):e=>Object.assign(Object.assign({},e),{isSearchPersonalized:!p,isSearchConfigInitialized:!0}))},new((c=void 0)||(c=Promise))((function(e,t){function n(e){try{o(d.next(e))}catch(e){t(e)}}function i(e){try{o(d.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof c?o:new c((function(e){e(o)}))).then(n,i)}o((d=d.apply(a,l||[])).next())}))}})))},99374:(e,t,n)=>{"use strict";n.d(t,{Sw:()=>s,eI:()=>a,i1:()=>r,mx:()=>l});var i=n(35267),o=n(89558);const a=(e,t,n,a)=>{if(!e)return!!t&&"1"===(0,i.MJ)(o.Fc);const r=a?o.Lq:t?o.MW:o.eh,s=(0,i.MJ)(r);if(s)try{const t=n?decodeURIComponent(s):s;return JSON.parse(t).includes(e)}catch(e){return console.warn("getIsNonPersonalized get JSON failed"),!1}return!1},r=(e,t)=>((e,t)=>{var n;let i=!1;if(e){const e=null!==(n=null==t?void 0:t.uid)&&void 0!==n?n:"";i=a(e,!0,!0)}return i})("v2"===t,e),s=(e="")=>a(e,void 0,void 0,!0),l=(e,t="")=>{var n;const i="v2"===(null===(n=null==e?void 0:e.parameters[o.W$])||void 0===n?void 0:n.vid),r=s(t);let l=!1;return(i||r)&&(l=a(t,!0,!1)),l}},92651:(e,t,n)=>{"use strict";var i;n.d(t,{L:()=>i}),function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High"}(i||(i={}))},36272:(e,t,n)=>{"use strict";n.d(t,{tR:()=>f,u4:()=>h,BX:()=>_});var i=n(14374),o=n(71111),a=n(31209),r=n(54888),s=n(93608);var l=n(57431),c=n(60484),d=n(4474),u=n(92651);const p=({currentPortraitValue:e,portraitStrategy:t,defaultStrategy:n,enable:i,portraitKey:o})=>{var a;const r=null===(a=(0,d.parse)(location.search))||void 0===a?void 0:a[o];if(!r&&(!i||!e||isNaN(e)))return n;const s=r?Number(r):e,{levels:l=[]}=(0,c.L$)(t);for(let e=0;eNumber(s))return t}return n},v={rawValue:"0",target:0,type:"device"},g=(0,i._)((0,o.atom)({vv_avg_per_day:v,ff_duration_avg:v}),{rehydrationKey:"webapp.portraitHub"});g.debugLabel="portraitHubAtom";const{useAtomService:m,useServiceDispatchers:h,useServiceState:_,getStaticApi:f}=(0,a.i)(g,((e,t)=>({initPortraitHub(){var n;const{bizContext:i}=e(r.A),{vv_avg_per_day:o,ff_duration_avg:a}=null!==(n=null==i?void 0:i.solariaPortrait)&&void 0!==n?n:{},c=(e=>{var t,n,i,o,a;const{abTestVersion:r}=(0,l.x)(),s=null!==(i=null===(n=null===(t=null==r?void 0:r.parameters)||void 0===t?void 0:t.vv_avg_per_day_portrait)||void 0===n?void 0:n.vid)&&void 0!==i?i:{vid:"v0"},c=null===(o=null==r?void 0:r.parameters.change_list_length_new)||void 0===o?void 0:o.vid,d="v0"!==(null!==(a=null==s?void 0:s.vid)&&void 0!==a?a:"v0"),u={target:Number(c)},{target:v}=p({currentPortraitValue:Number(null!=e?e:0),portraitStrategy:s,defaultStrategy:u,enable:d,portraitKey:"vv_avg_per_day"});return v})(o),d=(e=>{var t,n,i,o;const{abTestVersion:a}=(0,l.x)(),r=null!==(i=null===(n=null===(t=null==a?void 0:a.parameters)||void 0===t?void 0:t.ff_avg_duration_portrait)||void 0===n?void 0:n.vid)&&void 0!==i?i:{vid:"v0"},s="v0"!==(null!==(o=null==r?void 0:r.vid)&&void 0!==o?o:"v0"),c={target:u.L.High},{target:d}=p({currentPortraitValue:Number(null!=e?e:0),portraitStrategy:r,defaultStrategy:c,enable:s,portraitKey:"ff_duration_avg"});return d})(a),v={vv_avg_per_day:{rawValue:o,target:c,type:"user"},ff_duration_avg:{rawValue:a,target:d,type:"device"}};t(g,(e=>Object.assign(Object.assign({},e),v)));const m=(e=>{var t,n;const i=Object.keys(e),o=i.length,{webIdCreatedTime:a=0}=(0,l.x)(),r=Date.now()/1e3-a<86400;let s=0,c=0,d=0;for(let t=0;te(g)[t].target})))},49568:(e,t,n)=>{"use strict";n.d(t,{PU:()=>i,ku:()=>l,u8:()=>u});var i,o=n(71111),a=n(31209);!function(e){e.Notice="notice",e.Error="error",e.CTA="cta"}(i||(i={}));const r=(0,o.atom)({});let s=0;const{useAtomService:l,useServiceDispatchers:c,useServiceState:d,getStaticApi:u}=(0,a.i)(r,((e,t)=>({addToast(e){const n=`${Number(new Date).toString(36)}_${s++}`;t(r,(t=>Object.assign(Object.assign({},t),{[n]:Object.assign({id:n},e)})))},removeToast(...n){const i=e(r);n.forEach((e=>{e in i&&delete i[e]})),t(r,i)}})))},92502:(e,t,n)=>{"use strict";n.d(t,{TJ:()=>O,lr:()=>E,$F:()=>S,RD:()=>k});var i=n(71111),o=n(31209),a=n(57431),r=n(71281),s=n(58305),l=n(60484);const c="enableMasterTranslation",d="enableForeignCaption",u="enableNativeCaption",p="selectedTranslationLanguage",v="translationDisableLanguages";var g=n(90535),m=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};const h=()=>{const{language:e}=(0,a.x)();let t=e;return"zh-Hant-TW"===e?t="zh-Hant":"zh-Hans"!==e&&(t=e.split("-")[0]),t},_=e=>m(void 0,void 0,void 0,(function*(){var t,n;return(null!==(n=null===(t=(yield(0,g.h)()).claConfig)||void 0===t?void 0:t.subtitleToIsoLanguageCode)&&void 0!==n?n:{})[e]||e})),f=e=>m(void 0,void 0,void 0,(function*(){var t,n;return(null!==(n=null===(t=(yield(0,g.h)()).claConfig)||void 0===t?void 0:t.isoToSubtitleLanguageCode)&&void 0!==n?n:{})[e]||e}));var y=n(46747),b=n(60072),w=n(49568),x=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};const T=(0,i.atom)({isMasterTranslationOn:!1,isForeignCaptionOn:!1,isNativeCaptionOn:!1,selectedTranslationLanguage:"",translationDisableLanguages:[],enableMasterTranslation:0,enableForeignCaption:0,enableNativeCaption:0,isReady:!1});T.debugLabel="languageAtom";const{useAtomService:S,useServiceState:k,useServiceDispatchers:A,getStaticApi:O}=(0,o.i)(T,((e,t)=>({initLanguageSettingFromLocalStorage(){var e;return x(this,void 0,void 0,(function*(){const{user:n}=(0,a.x)();if(n)return;const i=null!==(e=(0,r.d)("video_closed_caption"))&&void 0!==e?e:"v0",o="v1"===i||"v3"===i,l=1..toString(),g=(0,s._S)(c,o?l:"")===l,m=(0,s._S)(d,o?l:"")===l,f=(0,s._S)(u,4..toString())===l;let y=[],b=h();try{y=JSON.parse((0,s._S)(v,"[]")),b=yield _(JSON.parse((0,s._S)(p,"")))}catch(e){}t(T,(e=>Object.assign(Object.assign({},e),{isMasterTranslationOn:g,isForeignCaptionOn:m,isNativeCaptionOn:f,selectedTranslationLanguage:b,translationDisableLanguages:y,isReady:!0})))}))},setLanguageSetting(e){var n;return x(this,void 0,void 0,(function*(){if(!e)return void(yield this.initLanguageSettingFromLocalStorage());const i=null!==(n=(0,r.d)("video_closed_caption"))&&void 0!==n?n:"v0",o="v1"===i||"v3"===i,{selectedTranslationLanguage:a="",translationDisableLanguages:s=[],enableMasterTranslation:l=0,enableForeignCaption:c=0,enableNativeCaption:d=0}=e,u={selectedTranslationLanguage:(yield _(a))||h(),translationDisableLanguages:s,isMasterTranslationOn:2===l||1===l||0===l&&o,isForeignCaptionOn:2===c||1===c||0===c&&o,isNativeCaptionOn:2===d||1===d};t(T,(()=>Object.assign({isReady:!0,enableMasterTranslation:l,enableForeignCaption:c,enableNativeCaption:d},u)))}))},setSelectedTranslationLanguage(n){return x(this,void 0,void 0,(function*(){const i=e(T),o=yield f(n);t(T,(e=>Object.assign(Object.assign({},e),{selectedTranslationLanguage:n}))),yield this.updateLanguageSettings(p,o,i)}))},setTranslationDisableLanguages(n){return x(this,void 0,void 0,(function*(){const i=e(T);t(T,(e=>Object.assign(Object.assign({},e),{translationDisableLanguages:n}))),yield this.updateLanguageSettings(v,n,i)}))},setIsMasterTranslationOn(n){return x(this,void 0,void 0,(function*(){const i=e(T),o=n?1:3;t(T,(e=>Object.assign(Object.assign({},e),{isMasterTranslationOn:n,enableMasterTranslation:o}))),yield this.updateLanguageSettings(c,o,i)}))},setIsCaptionOn(n,i){var o;return x(this,void 0,void 0,(function*(){const a=(0,b.ud)(),r=e(T),s=a.getStaticItem(i),{video:c}=(0,l.L$)(s),{claInfo:p}=(0,l.L$)(c),v=null===(o=null==p?void 0:p.originalLanguageInfo)||void 0===o?void 0:o.languageCode,{selectedTranslationLanguage:g,translationDisableLanguages:m}=e(T);if(v&&v!==g&&!m.includes(v)){const e=n?1:3;t(T,(t=>Object.assign(Object.assign({},t),{enableForeignCaption:e,isForeignCaptionOn:n}))),yield this.updateLanguageSettings(d,e,r)}else{const e=n?1:3;t(T,(t=>Object.assign(Object.assign({},t),{enableNativeCaption:e,isNativeCaptionOn:n}))),yield this.updateLanguageSettings(u,e,r)}}))},updateLanguageSettings(n,i,o){return x(this,void 0,void 0,(function*(){const{user:r}=(0,a.x)(),{enableForeignCaption:l,enableMasterTranslation:c,enableNativeCaption:d,selectedTranslationLanguage:u,translationDisableLanguages:p}=e(T),v=yield f(u),g=(0,w.u8)();if(r){const e=()=>{t(T,o),g.addToast({toastMessageType:w.PU.Error,messageKey:"error_toast"})};try{0!==(yield(0,y.Dq)({languageSettings:{enableForeignCaption:l,enableMasterTranslation:c,enableNativeCaption:d,selectedTranslationLanguage:v,translationDisableLanguages:p,[n]:i},secUid:r.secUid})).statusCode&&setTimeout(e,500)}catch(t){setTimeout(e,500)}}else(0,s.AP)(n,JSON.stringify(i))}))}}))),E=e=>{var t;const n=(0,b.F3)((t=>t[e])),{video:i}=(0,l.L$)(n),{claInfo:o}=(0,l.L$)(i),a=null===(t=null==o?void 0:o.originalLanguageInfo)||void 0===t?void 0:t.languageCode,{selectedTranslationLanguage:r,translationDisableLanguages:s,isForeignCaptionOn:c,isNativeCaptionOn:d}=k();return a&&a!==r&&!s.includes(a)?c:d}},46747:(e,t,n)=>{"use strict";n.d(t,{Dq:()=>c,Ze:()=>r,ph:()=>l,zB:()=>s});var i=n(39228),o=n(26325),a=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};const r=e=>a(void 0,void 0,void 0,(function*(){return i.hd.get("/tiktok/cla/subtitle_translation/get/v1/",{query:e,baseUrlType:2})})),s=e=>a(void 0,void 0,void 0,(function*(){return i.hd.get("/aweme/v1/translation/description/",{query:e,baseUrlType:2})})),l=e=>a(void 0,void 0,void 0,(function*(){return i.hd.get("/aweme/v1/translation/title/",{query:e,baseUrlType:2})})),c=e=>{const{languageSettings:t,secUid:n}=e;return i.hd.post("/api/user/settings/update/",{query:{languageSettings:JSON.stringify(t),secUid:n},tt_csrf_token:i.hd.csrfToken,baseUrlType:2,headers:{[o.nk]:i.hd.csrfToken}})}},44841:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});const i={[-1]:-1,0:0,1:1,2:2,4:3}},84908:(e,t,n)=>{"use strict";n.d(t,{Gp:()=>k,JY:()=>S,eI:()=>A,nW:()=>O,p9:()=>T});var i=n(11983),o=n(37745),a=n(22248),r=n(14374),s=n(71111),l=n(31209),c=n(97792),d=n(8046),u=n(69589),p=n(40046),v=n(44841),g=n(97487),m=n(39228),h=n(26325),_=n(39785),f=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};const y=(0,_.M)({csr:function(e){return f(this,void 0,void 0,(function*(){return(0,g.Ni)("userDetail")||m.hd.get("/api/user/detail/",{query:e,baseUrlType:2})}))}});var b=n(79123),w=n(41548),x=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};const T=(0,r._)((0,s.atom)({users:{},stats:{}}),{rehydrationKey:"webapp.user"});T.debugLabel="userAtom";const{useAtomService:S,getStaticApi:k,useServiceDispatchers:A,useServiceState:O}=(0,l.i)(T,((e,t)=>({multiSetUser(n){const i=e(T),o={};n.forEach((e=>{o[e.uniqueId]=(0,b.HF)(i.users[e.uniqueId],e)})),t(T,Object.assign(Object.assign({},i),{users:Object.assign(Object.assign({},i.users),o)}))},setUser(e){t(T,(t=>Object.assign(Object.assign({},t),{users:Object.assign(Object.assign({},t.users),{[e.uniqueId]:(0,b.HF)(t.users[e.uniqueId],e,!0)})})))},setUserRelation({uniqueId:n,relation:i,shouldUpdateFollowed:a,shouldUpdateFollower:r}){var s;const l=e(T),c=l.users[n];if(!c)return;const d=Object.assign(Object.assign({},c),{relation:i});a&&(d.extraInfo=Object.assign(Object.assign({},d.extraInfo),{followed:(0,o.z)(i,null===(s=d.extraInfo)||void 0===s?void 0:s.followed)})),r&&(d.extraInfo=Object.assign(Object.assign({},d.extraInfo),{followerStatus:(0,o.L)(i)})),t(T,Object.assign(Object.assign({},l),{users:Object.assign(Object.assign({},l.users),{[n]:d})}))},setUserStats(e){const{uniqueId:n,stats:i}=e;t(T,(e=>Object.assign(Object.assign({},e),{stats:Object.assign(Object.assign({},e.stats),{[n]:i})})))},multiSetUserStats(n){const i=e(T),o=n.reduce(((e,t)=>(e[t.uniqueId]=t.stats,e)),Object.assign({},i.stats));t(T,Object.assign(Object.assign({},i),{stats:o}))},getUserDetail(e){return x(this,void 0,void 0,(function*(){try{const t=yield y(e);return 0!==t.statusCode&&10222!==t.statusCode||!t.userInfo?console.warn("Get user detail failed for getting wrong response"):(this.setUser(Object.assign(Object.assign({uniqueIdModifyTime:0},t.userInfo.user),{extraInfo:{statusCode:t.statusCode}})),this.setUserStats({stats:Object.assign(Object.assign({},t.userInfo.stats),{needFix:!1}),uniqueId:t.userInfo.user.uniqueId})),t}catch(e){return{statusCode:-1}}}))},postCommitFollowUser(t){return x(this,void 0,void 0,(function*(){try{const n=e(T).users[t.uniqueId];if(!n)return;const o=(0,w.T)(),{id:r,secUid:s="",relation:l=-1}=n,g=(0,b.gN)(l),_={type:1===g?1:0,action_type:1===g?1:0,user_id:r,sec_user_id:s,from:18,channel_id:0,from_pre:0},{uniqueId:y,useFollowV2:x,resetWebappQuery:S,group_id:k,enter_method:A="click_direct_btn",action_position:O}=t,E=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{"use strict";n.d(t,{A7:()=>h,HF:()=>g,gN:()=>_});var i,o=n(37745),a=n(98885),r=n.n(a),s=n(6226),l=n.n(s);!function(e){e[e.FollowNormal=0]="FollowNormal",e[e.FollowPrivate=1]="FollowPrivate",e[e.FollowFollower=2]="FollowFollower",e[e.Unfollow=3]="Unfollow"}(i||(i={}));const c=["roomId"],d=["uniqueId","avatarThumb","nickname","signature"],u="uniqueIdModifyTime",p="nickNameModifyTime",v="ttSeller";function g(e,t,n){var i,a;if(!e)return t;const s=null!==(i=t.relation)&&void 0!==i?i:e.relation,g=l()({},e,t,{extraInfo:{followed:(0,o.z)(s,null===(a=e.extraInfo)||void 0===a?void 0:a.followed)}},((e,t,i)=>"canExpPlaylist"===i?e||t:!c.includes(i)&&r()(t)||!n&&d.includes(i)?e:i!==u&&i!==v&&i!==p||t?void 0:e));return n&&void 0===t.roomId&&g.roomId&&(g.roomId=void 0),g}function m({relation:e,handleIsUnfollow:t,handleIsFollow:n}){switch(e){case 0:case-1:case 4:case 5:case 6:return t();default:return n()}}function h({current:e,targetUser:t}){const n=function(e){var t;return m({relation:null!==(t=e.relation)&&void 0!==t?t:-1,handleIsUnfollow:()=>{var t;return e.privateAccount?1:(null===(t=e.extraInfo)||void 0===t?void 0:t.followed)||6===e.relation?2:0},handleIsFollow:()=>3})}(t);switch(n){case 3:return 0;case 0:return m({relation:e,handleIsFollow:()=>e,handleIsUnfollow:()=>1});case 1:return m({relation:e,handleIsFollow:()=>e,handleIsUnfollow:()=>3});case 2:return m({relation:e,handleIsFollow:()=>e,handleIsUnfollow:()=>2});default:return m({relation:e,handleIsFollow:()=>e,handleIsUnfollow:()=>-1})}}function _(e){return m({relation:e,handleIsUnfollow:()=>1,handleIsFollow:()=>0})}},41548:(e,t,n)=>{"use strict";n.d(t,{T:()=>o});var i=n(77966);const o=(0,n(39785).M)({csr:()=>i.Ay.t})},38771:(e,t,n)=>{"use strict";n.d(t,{Om:()=>l,Q3:()=>u,hy:()=>d,jD:()=>s,qz:()=>c});var i=n(14374),o=n(71111),a=n(31209);const r={contentType:"video",duration:0,videoPercent:0,currentTime:0},s=(0,i._)((0,o.atom)({}),{rehydrationKey:"webapp.videoControl.playProgress"});s.debugLabel="playProgressAtom";const{useAtomService:l,useServiceState:c,useServiceDispatchers:d,getStaticApi:u}=(0,a.i)(s,((e,t)=>({setVideoInfo(e){var{itemId:n}=e,i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o({[n]:Object.assign(Object.assign(Object.assign({},r),e[n]),i)})))}})))},41735:(e,t,n)=>{"use strict";n.d(t,{Jw:()=>h,QH:()=>m,T8:()=>g,u7:()=>_});var i=n(57431),o=n(39785),a=n(39228),r=n(54888),s=n(14374),l=n(71111),c=n(31209),d=n(89049),u=n(91286),p=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};const v=(0,o.M)({csr:e=>p(void 0,void 0,void 0,(function*(){return a.hd.get("/api/challenge/item_list/",{query:e,baseUrlType:2})}))}),g=(0,s._)((0,l.atom)(d.hA),{rehydrationKey:"desktop.challengePage.challengeList"});g.debugLabel="challengeListAtom";const{useAtomService:m,useServiceDispatchers:h,useServiceState:_}=(0,c.i)(g,((e,t)=>({getChallengeList(n){var o;return p(this,void 0,void 0,(function*(){try{const{cursor:a="0"}=e(g),{challengeID:s}=n,{language:l}=(0,i.x)(),{bizContext:c}=e(r.A);t(g,(e=>Object.assign(Object.assign({},e),{loading:!0})));const p=yield v({challengeID:s,language:l,cursor:a,aid:d.xE,count:d.vu,coverFormat:null===(o=null==c?void 0:c.videoCoverSettings)||void 0===o?void 0:o.format});(0,u.Tj)(e,t,g,"challenge",p)}catch(e){(0,u.e_)(t,g)}}))},resetChallengeList(){t(g,d.hA)}})))},79217:(e,t,n)=>{"use strict";n.d(t,{WX:()=>m,ek:()=>v,lE:()=>h,pp:()=>g});var i=n(57431),o=n(39785),a=n(39228),r=n(14374),s=n(71111),l=n(31209),c=n(89049),d=n(91286),u=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};const p=(0,o.M)({csr:e=>u(void 0,void 0,void 0,(function*(){return a.hd.get("/api/collection/item_list/",{query:e,baseUrlType:2})}))}),v=(0,r._)((0,s.atom)(c.hA),{rehydrationKey:"desktop.collectionPage.collectionList"});v.debugLabel="collectionListAtom";const{useAtomService:g,useServiceDispatchers:m,useServiceState:h}=(0,l.i)(v,((e,t)=>({getCollectionList(n){return u(this,void 0,void 0,(function*(){try{const{collectionId:o}=n,a=e(v),{cursor:r="0"}=a,{language:s,abTestVersion:l}=(0,i.x)();t(v,(e=>Object.assign(Object.assign({},e),{loading:!0})));const u=yield p({collectionId:o,language:s,cursor:r,aid:c.xE,count:c.vu,sourceType:113,clientABVersions:null==l?void 0:l.versionName});(0,d.Tj)(e,t,v,"collection",u)}catch(e){(0,d.e_)(t,v)}}))},resetCollectionList(){t(v,Object.assign({},c.hA))},addItems(e,n){t(v,(t=>{const{list:i,browserList:o}=(0,d.kf)(t,e,{itemListKey:"collection",addToHead:n});return Object.assign(Object.assign({},t),{list:i,browserList:o})}))},deleteItems(e){(0,d.UJ)(t,v,e)}})))},89049:(e,t,n)=>{"use strict";n.d(t,{Bu:()=>s,Kq:()=>r,hA:()=>i,vu:()=>a,xE:()=>o});const i={statusCode:0,hasMore:!0,cursor:"0",loading:!0,preloadList:[],browserList:[],list:[],items:[]},o=1988,a=30,r=15,s="w_g_fyp_vv"},39415:(e,t,n)=>{"use strict";n.d(t,{BX:()=>v,DK:()=>u,ag:()=>g,sK:()=>p});var i=n(57431),o=n(39228),a=n(14374),r=n(71111),s=n(31209),l=n(89049),c=n(91286),d=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};const u=(0,a._)((0,r.atom)(l.hA),{rehydrationKey:"desktop.creatorTabPage.creatorTabList"});u.debugLabel="creatorTabListAtom";const{useAtomService:p,useServiceDispatchers:v,useServiceState:g}=(0,s.i)(u,((e,t)=>({getCreatorTabList(n){return d(this,void 0,void 0,(function*(){try{const{secUid:a,createTime:r,fetchType:s}=n,{language:p}=(0,i.x)();t(u,(e=>Object.assign(Object.assign({},e),{loading:!0})));const v={aid:l.xE,count:l.Kq,cursor:String(r),secUid:a,type:s,language:p},g=yield(e=>d(void 0,void 0,void 0,(function*(){return o.hd.get("/api/creator/item_list/",{query:e,baseUrlType:2})})))(v),m={secUid:a,addToHead:2===s};(0,c.Tj)(e,t,u,"creator_tab",g,m),t(u,(e=>{var t,n;return Object.assign(Object.assign({},e),{hasMorePrevious:null!==(t=g.hasMorePrevious)&&void 0!==t&&t,hasMoreLatest:null!==(n=g.hasMoreLatest)&&void 0!==n&&n})}))}catch(e){(0,c.e_)(t,u)}}))},resetCreatorTabList(){t(u,l.hA)}})))},91286:(e,t,n)=>{"use strict";n.d(t,{Qw:()=>y,bp:()=>x,e_:()=>S,Tj:()=>k,Fx:()=>A,UJ:()=>O,kf:()=>T,X9:()=>f,Jl:()=>b});var i=n(57431),o=n(45537),a=n.n(o),r=n(300),s=n.n(r),l=n(59952),c=n(84908),d=n(18499),u=n(60072),p=n(39785),v=n(57432),g=n.n(v),m=n(65852);const h=(0,p.M)({csr:g()}),_="live_",f=e=>!!e&&e.includes(_),y=e=>`${_}${e}`,b=e=>2===(null==e?void 0:e.containerType),w=e=>(null!=e?e:[]).filter((e=>2!==e.containerType)).map((e=>{var t,n,i,o;return{url:null!==(n=null===(t=e.video)||void 0===t?void 0:t.playAddr)&&void 0!==n?n:"",id:null!==(o=null===(i=e.video)||void 0===i?void 0:i.id)&&void 0!==o?o:""}})),x=({list:e})=>e.reduce(((e,{id:t,showNotPass:n,takeDown:i})=>(!n&&6!==i&&t&&e.push(t),e)),[]),T=(e,t,n)=>{const{itemListKey:i,addToHead:o}=n,{list:r,browserList:l}=e,c=s()(t,"id").filter((e=>!r.includes(e.id))),d="topic"===i||"messages"===i;if(o)return{list:c.map((({id:e})=>e)).concat(r),browserList:[...x({list:c}),...l]};{const e=a()(r,c.map((({id:e})=>e)));return{list:d?r.concat(t.map((({id:e})=>e))):e,browserList:d?l.concat(x({list:t})):a()(l,x({list:t}))}}},S=(e,t)=>{e(t,(e=>Object.assign(Object.assign({},e),{loading:!1,statusCode:-1})))},k=(e,t,n,o,a,r)=>{var s,p,v;const g=e(n),{list:_,hasLocateItem:f}=g,{photoSensitiveVideosSetting:x}=e(l.x),{statusCode:S,hasMore:k=!0,itemList:A=[],cursor:O,log_pb:E,has_locate_item_id:P}=a,I=((e,t)=>{let n=(null!=e?e:[]).slice();const{user:o}=(0,i.x)(),{itemListKey:a,photoSensitiveVideosSetting:r,secUid:s}=t;return 1!==(null==o?void 0:o.photoSensitiveVideosSetting)&&(o||1!==r)||"user-post"===a&&(null==o?void 0:o.secUid)===s||!("video"!==a||n.length>1)||(n=n.filter((e=>2===e.containerType||4!==e.maskType))),n=n.map((e=>{var t;return b(e)&&(e.id=y(null===(t=e.liveRoomInfo)||void 0===t?void 0:t.roomID)),e})),n})(A,{itemListKey:o,photoSensitiveVideosSetting:x,secUid:null==r?void 0:r.secUid}),{list:C,browserList:j}=T(g,I,{itemListKey:o,addToHead:null==r?void 0:r.addToHead});(({currentList:e,itemList:t,statusCode:n,disableReportMore:i=!1})=>{e.length&&!i&&m.L.handleListMore({is_success:t.length?1:0,error_code:n})})({currentList:_,itemList:I,statusCode:S,disableReportMore:null!==(s=null==r?void 0:r.disableReportMore)&&void 0!==s&&s}),h(null===(p=I[0])||void 0===p?void 0:p.video,o);const L=(e=>{const t=e.filter((e=>Boolean(e.author))).map((({author:e})=>e)),n=e.filter((e=>{var t;return Boolean(null===(t=e.liveRoomInfo)||void 0===t?void 0:t.ownerInfo)})).map((e=>Object.assign(Object.assign({},e.liveRoomInfo.ownerInfo),{roomId:e.liveRoomInfo.roomID})));return t.concat(n)})(I),M=((e,t)=>e.map((e=>Object.assign(Object.assign({},e),{logId:t}))))(I,null==E?void 0:E.impr_id),N={statusCode:S,hasMore:k,cursor:O,list:C,loading:!1,browserList:j,preloadList:[...null!==(v=g.preloadList)&&void 0!==v?v:[],...w(I)],items:M,hasLocateItem:!!f||P};(0,d.unstable_batchedUpdates)((()=>{(0,c.Gp)().multiSetUser(L),(0,u.ud)().multiSetItem(M),t(n,N)}))},A=(e,t,n)=>{e(t,(e=>Object.assign(Object.assign({},e),{list:e.list.filter((e=>e!==n)),browserList:e.browserList.filter((e=>e!==n))})))},O=(e,t,n)=>{const i=new Set(n);e(t,(e=>Object.assign(Object.assign({},e),{list:e.list.filter((e=>!i.has(e))),browserList:e.browserList.filter((e=>!i.has(e)))})))}},35043:(e,t,n)=>{"use strict";var i,o;n.d(t,{FB:()=>r,r8:()=>a}),function(e){e.ForYou="foryou",e.Challenge="challenge",e.ChallengeNew="challenge_new",e.Channel="channel",e.Find="find",e.Following="following",e.Video="video",e.Music="music",e.MusicNew="music_new",e.User="user",e.UserPost="user-post",e.UserPostPublic="user-post-public",e.UserRepost="user-repost",e.UserLiked="user-liked",e.SearchTop="search_top",e.SearchVideo="search_video",e.SearchLive="search_live",e.Question="question",e.Playlist="playlist",e.Topic="topic",e.LiveEvent="live_event",e.VideoPlaylist="video_playlist",e.CreateVideoPlaylist="create_video_playlist",e.Sticker="sticker",e.Effect="effect",e.Messages="messages",e.Discover="discover",e.Poi="poi",e.PoiCategory="poi_category",e.Collection="collection",e.Explore="explore",e.Favorites="favorites",e.KeywordExpansion="keyword-expansion",e.CreatorTab="creator_tab",e.Friends="friends",e.TrendingTopics="trending_topics"}(i||(i={})),function(e){e.HIGH="high",e.MEDIUM="medium",e.LOW="low"}(o||(o={}));const a={5:"foryou",11:"following",20:"friends",113:"topic",0:"video"},r={foryou:5,following:11,friends:20,topic:113,video:0,effect:129,user:1,"user-post":1,"user-post-public":1,"user-repost":1,"user-liked":1,explore:19,challenge:3,channel:122,collection:121,discover:103,find:124,live_event:114,messages:13,music:4,playlist:108,poi:18,poi_category:125,question:16,sticker:6}},72370:(e,t,n)=>{"use strict";n.d(t,{H:()=>i});const i=16},36764:(e,t,n)=>{"use strict";n.d(t,{Gb:()=>c,Rc:()=>l,lY:()=>d});var i=n(71111),o=n(31209),a=n(89049),r=n(30085);const s=(0,i.atom)(0);s.debugLabel="exploreActiveCategoryTypeAtom";const l=(0,i.atom)((e=>{const t=e(r.Uy)[e(s)];return t?e(t):a.hA}),(()=>{}));l.debugLabel="exploreBrowserListAtom";const{useServiceState:c,useServiceDispatchers:d}=(0,o.i)(s,((e,t)=>({prepareBrowserMode(e){t(s,e)}})))},30085:(e,t,n)=>{"use strict";n.d(t,{Cw:()=>b,Uy:()=>h,V2:()=>y});var i=n(14974),o=n.n(i),a=n(57431),r=n(71111),s=n(31209),l=n(14374),c=n(93608),d=n(89049),u=n(91286),p=n(51660),v=n(27666),g=n(72370),m=n(31241);const h=(0,r.atom)({});h.debugLabel="exploreCategorizedAtomsAtom";const _=(0,r.atom)((e=>o()(e(h),(t=>t?e(t):d.hA))),(()=>{}));function f(e){c.f.sendEvent("row_load_more",{page_name:"explore_page",enter_method:"scroll",is_success:e?1:0,is_follow:"0"})}_.debugLabel="exploreCategorizedListAtom";const{useAtomService:y,useServiceDispatchers:b,useServiceState:w}=(0,s.i)(_,((e,t)=>({getExploreList(n){return i=this,o=void 0,c=function*(){const{categoryType:i}=n,{language:o,abTestVersion:s}=(0,a.x)();let c=e(h)[i];c||(c=(0,l._)((0,r.atom)(d.hA),{rehydrationKey:`desktop.explorePage.exploreList.${i}`}),t(h,(e=>Object.assign(Object.assign({},e),{[i]:c}))));try{t(c,(e=>Object.assign(Object.assign({},e),{loading:!0})));const n=yield(0,v.e)({language:(0,p.uk)(o),aid:d.xE,count:g.H,categoryType:i,clientABVersions:null==s?void 0:s.versionName,isNonPersonalized:(0,m.X)()});n.itemList=function(e,t){if(!t)return t;const n=e(h),i=[];for(const t of Object.values(n))t&&i.push(...e(t).list);const o=new Set(i);return t.filter((e=>!o.has(e.id)))}(e,n.itemList),f(0===n.statusCode),(0,u.Tj)(e,t,c,"explore",n)}catch(e){f(!1),(0,u.e_)(t,c)}},new((s=void 0)||(s=Promise))((function(e,t){function n(e){try{r(c.next(e))}catch(e){t(e)}}function a(e){try{r(c.throw(e))}catch(e){t(e)}}function r(t){var i;t.done?e(t.value):(i=t.value,i instanceof s?i:new s((function(e){e(i)}))).then(n,a)}r((c=c.apply(i,o||[])).next())}));var i,o,s,c},resetExploreList(n){const i=e(h)[n.categoryType];i&&t(i,d.hA)}})))},79995:(e,t,n)=>{"use strict";n.d(t,{IO:()=>g,Ql:()=>h,ZX:()=>m,dQ:()=>v});var i=n(57431),o=n(14374),a=n(71111),r=n(31209),s=n(89049),l=n(91286),c=n(51660),d=n(27666),u=n(72370),p=n(31241);const v=(0,o._)((0,a.atom)(s.hA),{rehydrationKey:"desktop.explorePage.exploreList"});v.debugLabel="exploreListAtom";const{useAtomService:g,useServiceDispatchers:m,useServiceState:h}=(0,r.i)(v,((e,t)=>({getExploreList(n){return o=this,a=void 0,g=function*(){try{const{categoryType:o}=n,{language:a,abTestVersion:r}=(0,i.x)();t(v,(e=>Object.assign(Object.assign({},e),{loading:!0})));const g=yield(0,d.e)({language:(0,c.uk)(a),aid:s.xE,count:u.H,categoryType:o,clientABVersions:null==r?void 0:r.versionName,isNonPersonalized:(0,p.X)()});(0,l.Tj)(e,t,v,"explore",g)}catch(e){(0,l.e_)(t,v)}},new((r=void 0)||(r=Promise))((function(e,t){function n(e){try{s(g.next(e))}catch(e){t(e)}}function i(e){try{s(g.throw(e))}catch(e){t(e)}}function s(t){var o;t.done?e(t.value):(o=t.value,o instanceof r?o:new r((function(e){e(o)}))).then(n,i)}s((g=g.apply(o,a||[])).next())}));var o,a,r,g},resetExploreList(){t(v,s.hA)}})))},27666:(e,t,n)=>{"use strict";n.d(t,{e:()=>s});var i=n(39785),o=n(68881),a=n(39228),r=n(46311);const s=(0,i.M)({csr:e=>{return t=void 0,n=void 0,s=function*(){const t=(0,o.DV)("exploreItemList");return t?(r.P.emit("consume_prefetch_data",performance.now(),"unknown","exploreItemList"),t.catch((t=>(r.P.emit("consume_prefetch_data",performance.now(),"fail","exploreItemList"),r.P.emit("consume_prefetch_data_error",null==t?void 0:t.message,"exploreItemList"),a.hd.get("/api/explore/item_list/",{query:e,baseUrlType:2}))))):a.hd.get("/api/explore/item_list/",{query:e,baseUrlType:2})},new((i=void 0)||(i=Promise))((function(e,o){function a(e){try{l(s.next(e))}catch(e){o(e)}}function r(e){try{l(s.throw(e))}catch(e){o(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(a,r)}l((s=s.apply(t,n||[])).next())}));var t,n,i,s}})},31241:(e,t,n)=>{"use strict";n.d(t,{X:()=>s});var i=n(71281),o=n(97086),a=n(99374),r=n(57431);const s=()=>{var e;const{user:t}=(0,r.x)();let n;switch((0,i.d)("pc_non_personalized_explore")){case"v0":n=!0;break;case"v1":n=(0,a.eI)(null!==(e=null==t?void 0:t.uid)&&void 0!==e?e:"",!0,(0,o.fU)())}return n}},61918:(e,t,n)=>{"use strict";n.d(t,{Cg:()=>u,D3:()=>s});var i=n(14374),o=n(71111),a=n(31209),r=n(89049);const s=(0,i._)((0,o.atom)(r.hA),{rehydrationKey:"desktop.messagePage.messageList"});s.debugLabel="messageListAtom";const{useAtomService:l,useServiceDispatchers:c,useServiceState:d,getStaticApi:u}=(0,a.i)(s,((e,t)=>({setItemListById(e){const{list:n,statusCode:i=0,hasMore:o=!0,cursor:a,level:r}=e;t(s,(e=>Object.assign(Object.assign({},e),{list:n,browserList:n,statusCode:i,hasMore:o,cursor:a,level:r})))}})))},43227:(e,t,n)=>{"use strict";n.d(t,{Ag:()=>m,DC:()=>h,l6:()=>g,pT:()=>_});var i=n(57431),o=n(39785),a=n(39228),r=n(54888),s=n(14374),l=n(71111),c=n(31209),d=n(89049),u=n(91286),p=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};const v=(0,o.M)({csr:e=>p(void 0,void 0,void 0,(function*(){return a.hd.get("/api/music/item_list/",{query:e,baseUrlType:2})}))}),g=(0,s._)((0,l.atom)(d.hA),{rehydrationKey:"desktop.musicPage.musicList"});g.debugLabel="musicListAtom";const{useAtomService:m,useServiceDispatchers:h,useServiceState:_}=(0,c.i)(g,((e,t)=>({getMusicList(n){var o;return p(this,void 0,void 0,(function*(){const a=e(g);try{const{musicID:s}=n,{cursor:l="0"}=a,{language:c}=(0,i.x)(),{bizContext:p}=e(r.A);t(g,(e=>Object.assign(Object.assign({},e),{loading:!0})));const m=yield v({musicID:s,language:c,cursor:l,aid:d.xE,count:d.vu,coverFormat:null===(o=null==p?void 0:p.videoCoverSettings)||void 0===o?void 0:o.format});(0,u.Tj)(e,t,g,"music",m)}catch(e){(0,u.e_)(t,g)}}))},resetMusicList(){t(g,d.hA)}})))},42573:(e,t,n)=>{"use strict";n.d(t,{HG:()=>P,e4:()=>k,sL:()=>O,NY:()=>A,Lu:()=>E});var i=n(57431),o=n(51660),a=n(54888),r=n(97086),s=n(58305),l=n(97071),c=n(8046),d=n(14107),u=n(14374),p=n(71111),v=n(31209),g=n(89049),m=n(91286),h=n(2408),_=n(79229),f=n(79238),y=n(39785),b=n(68881),w=n(39228),x=n(46311);const T=(0,y.M)({csr:e=>{return t=void 0,n=void 0,o=function*(){const t=(0,b.t$)("recommendItemList");if(t)return t;const n=(0,b.DV)("recommendItemList");return n?(x.P.emit("consume_prefetch_data",performance.now(),"unknown","recommendItemList"),n.catch((t=>(x.P.emit("consume_prefetch_data",performance.now(),"fail","recommendItemList"),x.P.emit("consume_prefetch_data_error",null==t?void 0:t.message,"recommendItemList"),w.hd.get("/api/recommend/item_list/",{query:e,baseUrlType:2}))))):w.hd.get("/api/recommend/item_list/",{query:e,baseUrlType:2})},new((i=void 0)||(i=Promise))((function(e,a){function r(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(r,s)}l((o=o.apply(t,n||[])).next())}));var t,n,i,o}});var S=n(96563);const k=(0,u._)((0,p.atom)(g.hA),{rehydrationKey:"desktop.forYouPage.recommendList"});k.debugLabel="recommendListAtom";const{useAtomService:A,useServiceDispatchers:O,useServiceState:E,getStaticApi:P}=(0,v.i)(k,((e,t)=>({dispose$(){},getRecommendList(n,u=!1){var p,v,y,b,w,x,A,O,E;return x=this,A=void 0,E=function*(){let x=u?S.Hx:k,A=u?"video":"foryou";try{const S=e(x),{bizContext:k}=e(a.A),{language:O,abTestVersion:E}=(0,i.x)(),{itemId:P,watchLiveLastTime:I,device_type:C,fromPage:j,pullType:L=2,ttamParams:M={},isNonPersonalized:N=!1,playModeForTea:D="one_column",fypFeederItemId:R,fetchCount:B}=n,U=(0,r.fU)()?N:(0,h.PJ)(e(h.WH)),F=(0,o.uk)(O);let V=_.Nu;const z=null!=B?B:null===(p=null==E?void 0:E.parameters.change_list_length_new)||void 0===p?void 0:p.vid;z&&(V=Number(z));const H=Object.assign(Object.assign({isNonPersonalized:U,aid:g.xE,count:1===L?_.K2:V,insertedItemID:P,language:F,clientABVersions:null==E?void 0:E.versionName,pullType:L,watchLiveLastTime:I,device_type:C},M),{coverFormat:null===(v=null==k?void 0:k.videoCoverSettings)||void 0===v?void 0:v.format,itemID:R,vv_count_fyp:parseInt((0,s._S)(g.Bu,"0"),10)||0}),q=(0,_.n5)(n,k,U);console.debug("[getRecommendList]","originParams",H,"expParams",q,JSON.stringify(q)===JSON.stringify(H));const W="v2"!==(null===(b=null===(y=null==E?void 0:E.parameters)||void 0===y?void 0:y.foryou_prefetch)||void 0===b?void 0:b.vid)?H:q;j&&Object.assign(W,{from_page:j}),t(x,(e=>Object.assign(Object.assign({},e),{loading:!0})));const $=yield T(W),G=S.list.length,Y=(0,_.r6)(G,$);(null!==(w=Y.itemList)&&void 0!==w?w:[]).forEach((e=>{var t;if(e.ad_info){const t=(0,l.n5)({ad_info:e.ad_info,play_mode:D});c.pg.handleReceive(t)}d.j.handleVideoReceive({item_id:e.id,group_id:null===(t=null==e?void 0:e.video)||void 0===t?void 0:t.id})})),u||t(f.R,Y),(0,m.Tj)(e,t,x,A,Y)}catch(e){(0,m.e_)(t,x)}},new((O=void 0)||(O=Promise))((function(e,t){function n(e){try{o(E.next(e))}catch(e){t(e)}}function i(e){try{o(E.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof O?o:new O((function(e){e(o)}))).then(n,i)}o((E=E.apply(x,A||[])).next())}))},setDeleteVideo(e){(0,m.Fx)(t,k,e)},setListFromCache(n){(0,m.Tj)(e,t,k,"foryou",n,{disableReportMore:!0})},resetRecommendList(e){t(k,Object.assign(Object.assign({},g.hA),e))},setRecommendListById(e){const{list:n}=e;t(k,(e=>Object.assign(Object.assign({},e),{list:n})))}})))},79238:(e,t,n)=>{"use strict";n.d(t,{R:()=>r,Z:()=>s});var i=n(14374),o=n(71111),a=n(31209);const r=(0,i._)((0,o.atom)({statusCode:0}),{rehydrationKey:"desktop.forYouPage.recommendListResponse"});r.debugLabel="recommendListResponseAtom";const{useServiceState:s}=(0,a.i)(r,(()=>({})))},79229:(e,t,n)=>{"use strict";n.d(t,{K2:()=>s,Nu:()=>l,n5:()=>d,r6:()=>c});var i=n(57431),o=n(51660),a=n(89049),r=n(58305);const s=9,l=30;function c(e,t){const{adsOffset:n=0,itemList:i}=t,o=Number(n),a=null==i?void 0:i[o];if(!(null==a?void 0:a.isTT4BAds))return t;const r=o>=e?o-e:0;return null==i||i.splice(o,1),null==i||i.splice(r,0,a),t.itemList=i,t}function d(e,t,n){var c,d,u;const{language:p="en",abTestVersion:v}=null!==(c=(0,i.x)())&&void 0!==c?c:{},{itemId:g,watchLiveLastTime:m,device_type:h,pullType:_=2,ttamParams:f={},fypFeederItemId:y,fetchCount:b}=e,w=(0,o.uk)(p);let x=l;const T=null!=b?b:null===(d=null==v?void 0:v.parameters.change_list_length_new)||void 0===d?void 0:d.vid;return T&&(x=Number(T)),Object.assign(Object.assign({isNonPersonalized:n,aid:a.xE,count:1===_?s:x,insertedItemID:g,language:w,clientABVersions:null==v?void 0:v.versionName,pullType:_,watchLiveLastTime:m,device_type:h},f),{coverFormat:null===(u=null==t?void 0:t.videoCoverSettings)||void 0===u?void 0:u.format,itemID:y,vv_count_fyp:parseInt((0,r._S)(a.Bu,"0"),10)||0})}},96563:(e,t,n)=>{"use strict";n.d(t,{AM:()=>h,Hx:()=>m,ND:()=>_,OU:()=>y,mY:()=>f});var i=n(51660),o=n(57431),a=n(39228),r=n(54888),s=n(14374),l=n(71111),c=n(31209),d=n(2408),u=n(89049),p=n(91286),v=n(34308),g=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};const m=(0,s._)((0,l.atom)(u.hA),{rehydrationKey:"desktop.videoPage.relatedList"});m.debugLabel="relatedListAtom";const{useAtomService:h,useServiceDispatchers:_,useServiceState:f,getStaticApi:y}=(0,c.i)(m,((e,t)=>({getRelatedList(n){var s,l,c,h;return g(this,void 0,void 0,(function*(){try{const{loading:f,hasMore:y,cursor:b="0"}=e(m);if(f)return;const{itemId:w,secUid:x}=n,{language:T,abTestVersion:S,user:k}=(0,o.x)(),{bizContext:A}=e(r.A),O=(0,i.uk)(T),E=null===(s=null==A?void 0:A.videoCoverSettings)||void 0===s?void 0:s.format,P=(0,d.PJ)(e(d.WH)),I=null!==(c=null===(l=null==S?void 0:S.parameters.video_detail_yml_creator)||void 0===l?void 0:l.vid)&&void 0!==c?c:"v0",C="v0"!==I&&!k,j="v2"===I;let L;t(m,(e=>Object.assign(Object.assign({},e),{loading:!0}))),C&&x&&y?(L=yield(0,v.Ob)({aid:u.xE,count:16,cursor:b,secUid:x,language:O,coverFormat:E}),L.itemList=null===(h=L.itemList)||void 0===h?void 0:h.filter((e=>(j||!e.isPinnedItem)&&!e.imagePost)),L.hasMore=!!(L.itemList&&L.itemList.length>3)&&L.hasMore):L=yield(_={aid:u.xE,count:16,itemID:w,language:O,coverFormat:E,isNonPersonalized:P,clientABVersions:null==S?void 0:S.versionName,cursor:b},g(void 0,void 0,void 0,(function*(){return a.hd.get("/api/related/item_list/",{query:_,baseUrlType:2})}))),(0,p.Tj)(e,t,m,"video",L)}catch(e){(0,p.e_)(t,m)}var _}))},resetRelatedList(){t(m,u.hA)}})))},92032:(e,t,n)=>{"use strict";n.d(t,{Ag:()=>m,Ds:()=>_,jf:()=>h});var i=n(71111),o=n(31209),a=n(99765),r=n(93751),s=n(58351),l=n(57717),c=n(44630),d=n(89049),u=n(91286);const p=(0,i.atom)({"user-post":r.HP,"user-repost":s.O0,"user-liked":a.MQ,favorites:l.h9}),v=(0,i.atom)((e=>({"user-post":e(r.HP),"user-repost":e(s.O0),"user-liked":e(a.MQ),favorites:e(l.h9)})),(()=>{}));v.debugLabel="userItemListAtom";const{useAtomService:g,useServiceDispatchers:m,useServiceState:h,getStaticApi:_}=(0,o.i)(v,((e,t)=>({setLoading(n,i){(0,c.yI)(n)&&t(e(p)[n],(e=>Object.assign(Object.assign({},e),{loading:i})))},getItemList(e,t){return n=this,i=void 0,c=function*(){switch(e){case"user-post":default:return(0,r.s5)().getItemList(t);case"user-repost":return(0,s.rg)().getItemList(t);case"user-liked":return(0,a.vz)().getItemList(t);case"favorites":return(0,l.k6)().getItemList(t)}},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{s(c.next(e))}catch(e){t(e)}}function r(e){try{s(c.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,r)}s((c=c.apply(n,i||[])).next())}));var n,i,o,c},setDeleteVideo(n){for(const[i,o]of Object.entries(e(p)))"user-post"===i?(0,r.s5)().setDeleteVideoForUserPostAtom(n):(0,u.Fx)(t,o,n)},resetItemList(n){(0,c.yI)(n)&&t(e(p)[n],d.hA)},resetAllLists(){(0,r.s5)().resetAllLists(),t(s.O0,d.hA),t(a.MQ,d.hA),t(l.h9,d.hA)}})))},57717:(e,t,n)=>{"use strict";n.d(t,{h9:()=>u,iK:()=>g,k6:()=>m});var i=n(39228),o=n(14374),a=n(71111),r=n(31209),s=n(89049),l=n(91286),c=n(44630),d=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};const u=(0,o._)((0,a.atom)(s.hA),{rehydrationKey:"desktop.userPage.userFavoriteList"});u.debugLabel="userFavoriteListAtom";const{useAtomService:p,useServiceDispatchers:v,useServiceState:g,getStaticApi:m}=(0,r.i)(u,((e,t)=>({setLoading(e){t(u,(t=>Object.assign(Object.assign({},t),{loading:e})))},getItemList(n){return d(this,void 0,void 0,(function*(){try{t(u,(e=>Object.assign(Object.assign({},e),{loading:!0})));const o=(0,c.bv)(e,u,n),a=yield(e=>d(void 0,void 0,void 0,(function*(){return i.hd.get("/api/user/collect/item_list/",{query:e,baseUrlType:2})})))(o);(0,l.Tj)(e,t,u,"favorites",a,{secUid:n.secUid}),t(u,(e=>{var t;return Object.assign(Object.assign({},e),{total:String(null!==(t=a.total)&&void 0!==t?t:0)})}))}catch(e){(0,l.e_)(t,u)}}))},resetItemList(){t(u,s.hA)}})))},99765:(e,t,n)=>{"use strict";n.d(t,{MQ:()=>u,cI:()=>v,vz:()=>m});var i=n(39228),o=n(14374),a=n(71111),r=n(31209),s=n(89049),l=n(91286),c=n(44630),d=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};const u=(0,o._)((0,a.atom)(s.hA),{rehydrationKey:"desktop.userPage.userLikedList"});u.debugLabel="userLikedListAtom";const{useAtomService:p,useServiceDispatchers:v,useServiceState:g,getStaticApi:m}=(0,r.i)(u,((e,t)=>({setLoading(e){t(u,(t=>Object.assign(Object.assign({},t),{loading:e})))},getItemList(n){return d(this,void 0,void 0,(function*(){try{t(u,(e=>Object.assign(Object.assign({},e),{loading:!0})));const o=(0,c.bv)(e,u,n),a=yield(e=>d(void 0,void 0,void 0,(function*(){return i.hd.get("/api/favorite/item_list/",{query:e,baseUrlType:2})})))(o);(0,l.Tj)(e,t,u,"user-liked",a,{secUid:n.secUid})}catch(e){(0,l.e_)(t,u)}}))},resetItemList(){t(u,s.hA)}})))},34308:(e,t,n)=>{"use strict";n.d(t,{Ku:()=>h,Ob:()=>m,Tx:()=>b,Ym:()=>g,gT:()=>f});var i=n(14374),o=n(71111),a=n(31209),r=n(89049),s=n(91286),l=n(44630),c=n(39785),d=n(68881),u=n(39228),p=n(46311),v=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};const g=(0,i._)((0,o.atom)(r.hA),{rehydrationKey:"desktop.userPage.userPostListLatest"});g.debugLabel="userPostListLatestAtom";const m=(0,c.M)({csr:e=>v(void 0,void 0,void 0,(function*(){const t=(0,d.t$)("userPostList");if(t)return t;const n=(0,d.DV)("userPostList");return n?(p.P.emit("consume_prefetch_data",performance.now(),"unknown","userPostList"),n.catch((t=>(p.P.emit("consume_prefetch_data",performance.now(),"fail","userPostList"),p.P.emit("consume_prefetch_data_error",null==t?void 0:t.message,"userPostList"),u.hd.get("/api/post/item_list/",{query:e,baseUrlType:2}))))):u.hd.get("/api/post/item_list/",{query:e,baseUrlType:2})}))}),h=e=>{const{useAtomService:t,useServiceDispatchers:n,useServiceState:i,getStaticApi:o}=(0,a.i)(e,((t,n)=>({setLoading(t){n(e,(e=>Object.assign(Object.assign({},e),{loading:t})))},getItemList(i){var o;return v(this,void 0,void 0,(function*(){try{n(e,(e=>Object.assign(Object.assign({},e),{loading:!0})));const{secUid:a,userId:r,count:c,postItemListRequestType:u,filterPhotoContent:p,locateItemID:v,needPinnedItemIds:g=!0}=i,h=(0,l.bv)(t,e,Object.assign({secUid:a,userId:r,count:null!=c?c:d.M4,postItemListRequestType:u,needPinnedItemIds:g},v&&{locateItemID:v})),_=yield m(h);p&&(_.itemList=null===(o=_.itemList)||void 0===o?void 0:o.filter((e=>!e.imagePost))),(0,s.Tj)(t,n,e,"user-post",_,{secUid:a})}catch(t){console.log("in utils, error getItemList!"),(0,s.e_)(n,e)}}))},resetItemList(){n(e,r.hA)}})));return{useAtomService:t,useServiceDispatchers:n,useServiceState:i,getStaticApi:o}},{useAtomService:_,useServiceDispatchers:f,useServiceState:y,getStaticApi:b}=h(g)},93751:(e,t,n)=>{"use strict";n.d(t,{s5:()=>A,BS:()=>S,ch:()=>T,I4:()=>k,eW:()=>w,HP:()=>x});var i=n(71111),o=n(31209),a=n(89049),r=n(44630),s=n(34308);const l=(0,i.atom)(a.hA);l.debugLabel="userPostListPopularAtom";const{useAtomService:c,useServiceDispatchers:d,useServiceState:u,getStaticApi:p}=(0,s.Ku)(l),v=(0,i.atom)(a.hA);v.debugLabel="userPostListOldestAtom";const{useAtomService:g,useServiceDispatchers:m,useServiceState:h,getStaticApi:_}=(0,s.Ku)(v);var f=n(91286);const y=(0,i.atom)({0:s.Ym,1:l,2:v}),b=(0,i.atom)(0),{useAtomService:w}=(0,o.i)(b,((e,t)=>({setUserPostSortType(e){t(b,e)}}))),x=(0,i.atom)((e=>{const t=e(b),n=e(y)[t];return e(n)}),(()=>{}));x.debugLabel="userPostListAtom";const{useAtomService:T,useServiceDispatchers:S,useServiceState:k,getStaticApi:A}=(0,o.i)(x,((e,t)=>({setLoading(n){(0,r.K8)(e(b))&&t(e(y)[e(b)],(e=>Object.assign(Object.assign({},e),{loading:n})))},getItemList(t){return n=this,i=void 0,a=function*(){switch(e(b)){case 0:default:return t.postItemListRequestType=0,(0,s.Tx)().getItemList(t);case 1:return t.postItemListRequestType=1,p().getItemList(t);case 2:return t.postItemListRequestType=2,_().getItemList(t)}},new((o=void 0)||(o=Promise))((function(e,t){function r(e){try{l(a.next(e))}catch(e){t(e)}}function s(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(r,s)}l((a=a.apply(n,i||[])).next())}));var n,i,o,a},resetItemList(){(0,r.K8)(e(b))&&t(e(y)[e(b)],a.hA)},resetAllLists(){t(b,0),t(x,a.hA),t(s.Ym,a.hA),t(l,a.hA),t(v,a.hA)},setDeleteVideoForUserPostAtom(n){for(const i of Object.values(e(y)))(0,f.Fx)(t,i,n)}})))},58351:(e,t,n)=>{"use strict";n.d(t,{O0:()=>u,rg:()=>m,zu:()=>p});var i=n(39228),o=n(14374),a=n(71111),r=n(31209),s=n(89049),l=n(91286),c=n(44630),d=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};const u=(0,o._)((0,a.atom)(s.hA),{rehydrationKey:"desktop.userPage.userRepostList"});u.debugLabel="userRepostListAtom";const{useAtomService:p,useServiceDispatchers:v,useServiceState:g,getStaticApi:m}=(0,r.i)(u,((e,t)=>({setLoading(e){t(u,(t=>Object.assign(Object.assign({},t),{loading:e})))},getItemList(n){return d(this,void 0,void 0,(function*(){try{t(u,(e=>Object.assign(Object.assign({},e),{loading:!0})));const o=(0,c.bv)(e,u,n),a=yield(e=>d(void 0,void 0,void 0,(function*(){return i.hd.get("/api/repost/item_list/",{query:e,baseUrlType:2})})))(o);(0,l.Tj)(e,t,u,"user-repost",a,{secUid:n.secUid})}catch(e){(0,l.e_)(t,u)}}))},resetItemList(){t(u,s.hA)}})))},44630:(e,t,n)=>{"use strict";n.d(t,{K8:()=>u,bv:()=>c,yI:()=>d});var i=n(57431),o=n(54888),a=n(89049);const r=30,s=["user-post","user-repost","user-liked","favorites"],l=[0,1,2];function c(e,t,n){var s;const{secUid:l,userId:c,count:d,postItemListRequestType:u,locateItemID:p,needPinnedItemIds:v=!0}=n,g=e(t),{cursor:m="0"}=g,{language:h,region:_}=(0,i.x)(),{bizContext:f}=e(o.A);return Object.assign({secUid:l,aid:a.xE,count:null!=d?d:r,cursor:m,region:_,language:h,userId:c,coverFormat:null===(s=null==f?void 0:f.videoCoverSettings)||void 0===s?void 0:s.format,post_item_list_request_type:null!=u?u:0,needPinnedItemIds:v},p&&{locate_item_id:p})}function d(e){return void 0!==s.find((t=>t===e))}function u(e){return void 0!==l.find((t=>t===e))}},92597:(e,t,n)=>{"use strict";n.d(t,{D:()=>f}),n(57432);var i=n(71281),o=n(41735),a=n(79217),r=n(39415),s=n(79995),l=n(36764),c=n(43227),d=n(42573),u=n(96563),p=n(61918),v=n(93751),g=n(58351),m=n(99765),h=n(57717);const _=new Map([["music",c.l6],["explore",s.dQ],["challenge",o.T8],["creator_tab",r.DK],["user-post",v.HP],["user-repost",g.O0],["user-liked",m.MQ],["favorites",h.h9],["messages",p.D3],["video",u.Hx]]),f=e=>{var t,n,o;if(!e)return;const r=null!==(t=(0,i.d)("webapp_jotai_foryou"))&&void 0!==t?t:"v0";if("foryou"===e&&("v1"===r||"v3"===r))return d.e4;const s=null!==(n=(0,i.d)("webapp_explore_remove_category"))&&void 0!==n?n:"v0";if("explore"===e&&("v1"===s||"v2"===s))return l.Rc;const c="v0"!==(null!==(o=(0,i.d)("webapp_collection_profile"))&&void 0!==o?o:"v0");return"collection"===e&&c?a.ek:_.get(e)}},60072:(e,t,n)=>{"use strict";n.d(t,{ud:()=>L,Pu:()=>C,l8:()=>j,mG:()=>M,F3:()=>N,GB:()=>D});var i=n(71510),o=n.n(i),a=n(99789),r=n.n(a),s=n(18499),l=n(57431),c=n(40040),d=n(93608),u=n(6986),p=n(97071),v=n(24154),g=n(25342),m=n(67974),h=n(11983),_=n(53764),f=n(14374),y=n(71111),b=n(31209),w=n(32125),x=n(91286),T=n(84908),S=n(10287),k=n(41548),A=n(77170),O=n(39228),E=n(26325),P=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))},I=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};const C=(0,f._)((0,y.atom)({}),{rehydrationKey:"webapp.item"});C.debugLabel="itemAtom";const{useAtomService:j,getStaticApi:L,useServiceDispatchers:M,useServiceState:N}=(0,b.i)(C,((e,t)=>({setItem(e){const{id:n}=e;t(C,(t=>Object.assign(Object.assign({},t),{[n]:(0,A.t)(e,t[n])})))},multiSetItem(n){const i=e(C),o=Object.assign({},i);n.forEach((e=>{const{id:t}=e;o[t]=(0,A.t)(e,i[t])})),t(C,o)},updateItem(n){e(C)[n.id]&&t(C,(e=>Object.assign(Object.assign({},e),{[n.id]:o()(e[n.id],n)})))},setLike(n){const{id:i,liked:o,count:a}=n,r=e(C)[i];r&&(r.stats&&(r.stats=Object.assign(Object.assign({},r.stats),{diggCount:a})),r.statsV2&&(r.statsV2=Object.assign(Object.assign({},r.statsV2),{diggCount:a.toString()})),t(C,(e=>Object.assign(Object.assign({},e),{[i]:Object.assign(Object.assign({},r),{digged:o})}))))},setCollect(n){const{id:i,collected:o,count:a}=n,r=e(C)[i];r&&(r.stats&&(r.stats=Object.assign(Object.assign({},r.stats),{collectCount:a})),r.statsV2&&(r.statsV2=Object.assign(Object.assign({},r.statsV2),{collectCount:a.toString()})),t(C,(e=>Object.assign(Object.assign({},e),{[i]:Object.assign(Object.assign({},r),{collected:o})}))))},setCommentCount(n){const{id:i,commentCount:o}=n,a=e(C)[i];a&&(a.stats&&(a.stats=Object.assign(Object.assign({},a.stats),{commentCount:o})),a.statsV2&&(a.statsV2=Object.assign(Object.assign({},a.statsV2),{commentCount:o.toString()})),t(C,(e=>Object.assign(Object.assign({},e),{[i]:Object.assign({},a)}))))},prependRepost(n){const{id:i,reposted:o,currentUser:a,count:r}=n,s=e(C)[i];s&&(s.statsV2&&(s.statsV2=Object.assign(Object.assign({},s.statsV2),{repostCount:r.toString()})),t(C,(e=>{var t,n,r,l,c;const d=[...null!==(n=null===(t=e[i])||void 0===t?void 0:t.repostList)&&void 0!==n?n:[]];if(o)d.unshift(Object.assign(Object.assign({},a),{id:a.uid,avatarThumb:null!==(r=a.avatarUri[0])&&void 0!==r?r:"",avatarMedium:null!==(l=a.avatarUri[0])&&void 0!==l?l:"",avatarLarger:null!==(c=a.avatarUri[0])&&void 0!==c?c:"",nickname:a.nickName,relation:0}));else{const e=d.findIndex((e=>e.secUid===a.secUid));d.splice(e,1)}return Object.assign(Object.assign({},e),{[i]:Object.assign(Object.assign({},s),{repostList:d})})})))},reduceOrIncreaseCommentCount(n){const{id:i,isReduce:o,min:a=0}=n,r=e(C),s=r[i];if(s){if(s.stats){const e=o?Math.max(a,s.stats.commentCount-1):s.stats.commentCount+1;s.stats=Object.assign(Object.assign({},s.stats),{commentCount:e})}if(s.statsV2){let e=o?BigInt(s.statsV2.commentCount)-BigInt(1):BigInt(s.statsV2.commentCount)+BigInt(1);eBoolean(e.author))).map((({author:e})=>e)),i=e.filter((e=>{var t;return Boolean((null===(t=null==e?void 0:e.liveRoomInfo)||void 0===t?void 0:t.ownerInfo)&&(0,x.Jl)(e))})).map((e=>Object.assign(Object.assign({},e.liveRoomInfo.ownerInfo),{roomId:e.liveRoomInfo.roomID}))),o=e.map((e=>Object.assign(Object.assign({},e),{logId:t}))),a=(0,T.Gp)();(0,s.unstable_batchedUpdates)((()=>{a.multiSetUser(n.concat(i)),this.multiSetItem(o)}))},postCollectVideo(t){var n,i,o,a;return I(this,void 0,void 0,(function*(){const r=e(C),s=e(T.p9),{itemId:l}=t,d=r[l],p=s.users[null!==(n=null==d?void 0:d.author)&&void 0!==n?n:""],{collected:v=!1,stats:g}=d,m=Number(null!==(i=null==g?void 0:g.collectCount)&&void 0!==i?i:0),h=v?2:1,_={aid:c.xE,itemId:l,action:h,secUid:null!==(o=null==p?void 0:p.secUid)&&void 0!==o?o:""};this.setCollect({id:l,collected:!v,count:v?Math.max(0,m-1):m+1});try{const e=yield function(e){return P(this,void 0,void 0,(function*(){return O.hd.post("/api/item/collect/",{query:e,baseUrlType:2,headers:{[E.nk]:O.hd.csrfToken}})}))}(_);u.W.handleFavoriteResult({group_id:l,author_id:null!==(a=null==p?void 0:p.id)&&void 0!==a?a:""},h);const{statusCode:t}=e;return 0!==t?void setTimeout((()=>{this.setCollect({id:l,collected:v,count:m})}),3e3):(1===h&&(yield this.addMlModelTrainData({id:l,action:"favorite"})),e)}catch(e){}}))},postLikeVideo(t){var n,i,o,a,r;return I(this,void 0,void 0,(function*(){const s=e(C),c=e(T.p9),d=s[t.id],u=c.users[null!==(n=null==d?void 0:d.author)&&void 0!==n?n:""],{user:g}=(0,l.x)(),{digged:m,stats:_,poi:f,imagePost:y,subVideoMeta:b,ad_info:w,repostList:x}=d,{id:S,forceLike:A,enter_method:I="click",channel_id:j}=t,L=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);oe.secUid!==(null==g?void 0:g.secUid))),type:A?1:m?0:1};if(!A||!m)try{let e;this.setLike({id:S,liked:!m,count:m?Math.max(0,M-1):M+1});try{e=yield function(e){return P(this,void 0,void 0,(function*(){return O.hd.post("/api/commit/item/digg/",{query:e,baseUrlType:2,headers:{[E.nk]:O.hd.csrfToken}})}))}(N)}catch(t){e={status_code:-1}}const{status_code:t,status_msg:n,log_pb:i={},is_digg:s}=e;if(2150===t||2210===t){const e=(0,k.T)();n&&h.F.open({content:e(n),duration:3,widthType:"half"})}let l={};w&&(l=(0,p.n5)({ad_info:w,play_mode:null!==(o=L.play_mode)&&void 0!==o?o:"one_column"})),v.z.handleLikeVideoResult(Object.assign(Object.assign(Object.assign({},L),l),{group_id:d.id,author_id:null!==(a=null==u?void 0:u.id)&&void 0!==a?a:"",log_pb:i,enter_method:I,poi_id:null==f?void 0:f.id,aweme_type:y?150:0,pic_cnt:null===(r=null==y?void 0:y.images)||void 0===r?void 0:r.length,is_sub_only_video:b?1:0}),N.type),0!==t||s===N.type?setTimeout((()=>this.setLike({id:d.id,liked:m,count:M})),3e3):1===N.type&&this.addMlModelTrainData({id:d.id,action:"like"})}catch(e){}}))},postRepostVideo(t){var n,i;return I(this,void 0,void 0,(function*(){const o=(0,k.T)(),a=e(C)[t.id],{user:r}=(0,l.x)();if(!a||!r)return;const{statsV2:s,repostList:c}=a,{id:u,playMode:p}=t,v=(null!==(n=null==c?void 0:c.findIndex((e=>e.secUid===r.secUid)))&&void 0!==n?n:-1)>=0,g=Number(null!==(i=null==s?void 0:s.repostCount)&&void 0!==i?i:0),m=!v;try{this.prependRepost({id:u,reposted:m,currentUser:r,count:v?Math.max(0,g-1):g+1});const e={page_name:d.f.commonParams.page_name,group_id:u,play_mode:p};let t;try{const n={item_id:u};m?(d.f.sendEvent("click_repost",e),({status_code:t}=yield function(e){return P(this,void 0,void 0,(function*(){return O.hd.post("/tiktok/v1/upvote/publish",{query:e,baseUrlType:2})}))}(n))):(d.f.sendEvent("click_repost_remove",e),({status_code:t}=yield function(e){return P(this,void 0,void 0,(function*(){return O.hd.post("/tiktok/v1/upvote/delete",{query:e,baseUrlType:2})}))}(n)))}catch(e){t=-1}h.F.destroy();let n=m?"pcWeb_reposted_toast":"pcWeb_repostRemoved_toast";0!==t?(n="Sorry, something wrong with the server, please try again.",setTimeout((()=>this.prependRepost({id:u,reposted:v,currentUser:r,count:g})),3e3)):m?(d.f.sendEvent("repost_success",e),this.addMlModelTrainData({id:a.id,action:"repost"})):d.f.sendEvent("repost_remove_success",e),h.F.open({content:o(n),duration:3,widthType:"half",getContainer:_.M,getContainerPosition:"fixed"})}catch(e){}}))},addMlModelTrainData(t){var n;return I(this,void 0,void 0,(function*(){const{id:i,action:o,isPreview:a}=t,r=e(C);if(i&&r[i]&&!(null===(n=r[i])||void 0===n?void 0:n.liveRoomInfo))return(0,S.xt)().addTrainData({item:r[i],action:o,isPreview:a})}))},postDislikeVideo(t){return I(this,void 0,void 0,(function*(){const n=e(C),{id:i,author_id:o,play_mode:a}=t,r=n[i],s=null==r?void 0:r.ad_info;let l={};s&&(l=(0,p.n5)({ad_info:s,play_mode:a}),l.refer=g.Hq.Button),m.V.handleClickDislike(Object.assign({group_id:i,author_id:o,play_mode:a},l));const c=(0,k.T)();h.F.open({content:c("webapp_forYoufeed_videoRemoved_toast"),duration:3,widthType:"half",getContainer:_.M,getContainerPosition:"fixed"});const d={item_id:i,item_author_id:o};try{try{yield function(e){return P(this,void 0,void 0,(function*(){return O.hd.post("/api/dislike/item/",{query:e,baseUrlType:2,headers:{[E.nk]:O.hd.csrfToken}})}))}(d)}catch(e){}this.addMlModelTrainData({id:t.id,action:"dislike"})}catch(e){}}))},setItemPrivateState(n){const{id:i,visibility:o}=n,a=e(C),r=a[i];if(!r)return;const s=Object.assign(Object.assign({},r),{forFriend:"3"===o,secret:"2"===o});t(C,Object.assign(Object.assign({},a),{[i]:s}))},setDeleteVideo(e){t(C,(t=>r()(t,e)))},getStaticItem:t=>e(C)[t]}))),D=e=>N((t=>(0,A.D)(t[e])),w.bN)},77170:(e,t,n)=>{"use strict";n.d(t,{D:()=>o,t:()=>i});const i=(e,t)=>{var n,i,o,a,r,s,l,c,d,u,p,v,g,m,h;const _=null!==(i=null===(n=e.anchors)||void 0===n?void 0:n.filter((e=>54===e.type)))&&void 0!==i?i:[],f=null!==(a=null===(o=e.anchors)||void 0===o?void 0:o.filter((e=>28===e.type)))&&void 0!==a?a:[];return Object.assign(Object.assign({},e),{video:e.video,nickname:null===(r=e.author)||void 0===r?void 0:r.nickname,author:null===(s=e.author)||void 0===s?void 0:s.uniqueId,authorId:null===(l=e.author)||void 0===l?void 0:l.id,authorSecId:null===(c=e.author)||void 0===c?void 0:c.secUid,avatarThumb:null===(d=e.author)||void 0===d?void 0:d.avatarThumb,downloadSetting:null===(u=e.author)||void 0===u?void 0:u.downloadSetting,authorPrivate:null===(p=e.author)||void 0===p?void 0:p.privateAccount,stateControlledMedia:null===(v=e.author)||void 0===v?void 0:v.stateControlledMedia,capcutAnchorsOriginal:_,capcutAnchors:(null===(g=e.poi)||void 0===g?void 0:g.id)?[]:_,effectAnchors:f,videoSuggestWordsList:null!==(m=e.videoSuggestWordsList)&&void 0!==m?m:null==t?void 0:t.videoSuggestWordsList,keywordTags:null!==(h=e.keywordTags)&&void 0!==h?h:null==t?void 0:t.keywordTags})},o=e=>{var t,n,i,o,a,r,s,l,c,d,u;if(!e)return{diggCount:BigInt(0),shareCount:BigInt(0),commentCount:BigInt(0),playCount:BigInt(0),collectCount:BigInt(0),repostCount:BigInt(0),isReposted:!1};const{stats:p,statsV2:v}=e;return{diggCount:BigInt(null!==(n=null!==(t=null==v?void 0:v.diggCount)&&void 0!==t?t:null==p?void 0:p.diggCount)&&void 0!==n?n:0),shareCount:BigInt(null!==(o=null!==(i=null==v?void 0:v.shareCount)&&void 0!==i?i:null==p?void 0:p.shareCount)&&void 0!==o?o:0),commentCount:BigInt(null!==(r=null!==(a=null==v?void 0:v.commentCount)&&void 0!==a?a:null==p?void 0:p.commentCount)&&void 0!==r?r:0),playCount:BigInt(null!==(l=null!==(s=null==v?void 0:v.playCount)&&void 0!==s?s:null==p?void 0:p.playCount)&&void 0!==l?l:0),collectCount:BigInt(null!==(d=null!==(c=null==v?void 0:v.collectCount)&&void 0!==c?c:null==p?void 0:p.collectCount)&&void 0!==d?d:0),repostCount:BigInt(null!==(u=null==v?void 0:v.repostCount)&&void 0!==u?u:0),isReposted:Number(null==v?void 0:v.repostCount)>0}}},46311:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});const i=new class{constructor(){this.listeners={}}on(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)}emit(e,...t){const n=this.listeners[e];n&&n.forEach((e=>{e(...t)}))}off(e,t){const n=this.listeners[e];n&&(this.listeners[e]=n.filter((e=>e!==t)))}}},84669:(e,t,n)=>{"use strict";n.d(t,{D:()=>i});const i=["ar","ur","he-IL"]},62302:(e,t,n)=>{"use strict";n.d(t,{zI:()=>l});var i=n(4474),o=n(63615),a=n(88874);const r="/node-webapp/api/common-app-context";let s;function l(e){const t=(0,a.YI)(o.Ow);return t?Promise.resolve(Object.assign(Object.assign({},t),{statusCode:0})):s||(s=fetch((0,i.stringifyUrl)({url:r,query:{lang:e}})).then((e=>e.json())),s)}},10598:(e,t,n)=>{"use strict";n.d(t,{x:()=>l});var i=n(4474);const o="webapp.biz-context";var a=n(88874);const r="/node-webapp/api/biz-context";let s;function l(e,t){const n=(0,a.YI)(o);return n?Promise.resolve(Object.assign(Object.assign({},n),{statusCode:0})):s||(s=fetch((0,i.stringifyUrl)({url:r,query:{lang:e,app_name:t}})).then((e=>e.json())),s)}},68881:(e,t,n)=>{"use strict";n.d(t,{M4:()=>b,DV:()=>S,t$:()=>x,UM:()=>E,hX:()=>O,dz:()=>k,bg:()=>A});var i=n(58632),o=n(237),a=n(12904),r=n(74631),s=n(26325),l=n(18829),c=n(58156);const d="content-type",u=["/api/update/profile/","/api/commit/follow/user","/api/comment/publish"],p=["application/pdf"],v={"Singapore-Central":"sg","US-East":"va","US-EastRed":"in","US-TTP":"ttp","US-TTP2":"ttp2","EU-TTP":"ie","EU-TTP2":"no1a"};function g({url:e,response:t,appContext:n,bizContext:m,options:h,config:_,retryFn:f=()=>(0,i.__awaiter)(this,void 0,void 0,(function*(){}))},y){var b,w,x,T,S,k,A,O,E,P,I,C;return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(null===(b=null==y?void 0:y.emitEvent)||void 0===b||b.call(y,"request_status",{now:performance.now()},{statusCode:"unknown"}),t.status>=400)return(0,o.Gy)(t,e),null===(w=null==y?void 0:y.emitEvent)||void 0===w||w.call(y,"request_status",{now:performance.now()},{statusCode:`${t.status}`}),Promise.reject(t);{const i=t.headers.get(d);if(null==i?void 0:i.includes("application/json"))try{let i=t.headers.has(a.Si)?JSON.parse(null!==(x=t.headers.get(a.Si))&&void 0!==x?x:"{}"):yield t.json();const o=t.headers.has(a.Si);null===(T=null==y?void 0:y.emitEvent)||void 0===T||T.call(y,"request_status",{now:performance.now()},{statusCode:`${t.status}`,needVerify:`${o}`}),o&&(null===(S=null==y?void 0:y.context)||void 0===S||S.call(y,{firstScreenRequest:"abort",verify:"1"}));const d=function(e,t,n){var i,o,r;const l=e.status_code||e.code,d=l===a.CQ,p=l===a.Zu;if(u.some((e=>t.includes(e)))&&(d||p)){const e=(0,c.v)(n);return{code:"10000",from:"shark_admin",type:"verify",version:1,region:null!==(r=null!==(i=v[e])&&void 0!==i?i:a.sG[null!==(o=s.si.kind)&&void 0!==o?o:""])&&void 0!==r?r:"va",subtype:d?"slide":"text",verify_event:"",detail:{},fp:-1}}return e}(i,e,null==m?void 0:m.idc),p="TTP"===(null==n?void 0:n.clusterRegion),b=(null==m?void 0:m.idc)?(0,c.v)(m.idc):null==m?void 0:m.vregion,w=yield r.MX.checkVerify(d,null!==(k=null==n?void 0:n.wid)&&void 0!==k?k:"0",p,s.si.captcha,{lang:null==n?void 0:n.language,userMode:(0,l.n)({isVA:"US-TTP"===b||"US-TTP2"===b,isLogin:Boolean(null==n?void 0:n.user),isFTC:null!==(O=null===(A=null==n?void 0:n.user)||void 0===A?void 0:A.ftcUser)&&void 0!==O&&O,isHighRisk:!1,isEU:(null==b?void 0:b.startsWith("EU-TTP"))||"US-EAST-RED"===b})});return 0===w?((null==h?void 0:h.onJsonResponse)&&(i=h.onJsonResponse({response:t,config:_,json:i})),null===(E=null==y?void 0:y.emitEvent)||void 0===E||E.call(y,"request_status",{now:performance.now()},{statusCode:`${t.status}`,status:"success"}),i):2===w?f().then((t=>g({url:e,response:t,appContext:n,bizContext:m,options:h,config:_,retryFn:f},y))):{statusCode:-1}}catch(e){return null===(P=null==y?void 0:y.emitEvent)||void 0===P||P.call(y,"request_status",{now:performance.now()},{statusCode:`${t.status}`,status:"fail",needVerify:`${t.headers.has(a.Si)}`,isRiskControlBlock:`${"0, 0"===t.headers.get("content-length")&&"Janus-Mini(fast)"===t.headers.get("x-janus-mini-api-forward")}`,errorMessage:null==e?void 0:e.message}),null===(I=null==y?void 0:y.context)||void 0===I||I.call(y,{firstScreenRequest:"abort"}),Promise.reject(t)}else{if(null===(C=t.headers.get(d))||void 0===C?void 0:C.includes("text/"))return t.text();if(-1!==p.indexOf(String(i)))return t.blob();if(null==i?void 0:i.includes("application/x-protobuf"))return t.arrayBuffer()}return t.text()}}))}var m=n(51660),h=n(57432),_=n.n(h),f=n(39228);const y=1988,b=35,w={recommendItemList:void 0,userPlayList:void 0,userPostList:void 0,poiDetail:void 0,poiCategory0:void 0,poiCategory1:void 0,poiCategory2:void 0,relatedKeywords:void 0,kapRelatedKeywords:void 0,kapProductList:void 0,linkerStrategy:void 0,exploreItemList:void 0};function x(e){const t=w[e];return t&&(w[e]=void 0),t}const T="$PREFETCH_CACHE";function S(e){var t,n,i,o;const a=null!==(t=window[T])&&void 0!==t?t:{};let r;return window[T]=a,(null===(n=a[e])||void 0===n?void 0:n.used)||(r=null===(o=null===(i=a[e])||void 0===i?void 0:i.request)||void 0===o?void 0:o.then((e=>g(e).catch((e=>{if(e instanceof Response){const t={status:e.status,url:e.url,logId:e.headers.get("x-tt-logid"),bdturingVerify:e.headers.get("bdturing-verify")};throw new Error(JSON.stringify(t))}throw e}))))),a[e]={used:!0,result:r},r}function k(e){const t={secUid:e,cursor:"0",count:20};w.userPlayList=f.hd.get("/api/user/playlist/",{query:t,baseUrlType:2})}function A(e,t){const n=(0,m.qm)(),i={secUid:e,aid:y,count:b,cursor:"0",language:n,coverFormat:t};w.userPostList=f.hd.get("/api/post/item_list/",{query:i,baseUrlType:2})}function O(e,t){const n=(0,m.qm)(),i=Object.assign({poiId:e,language:n},t&&{sourceType:t});w.poiDetail=f.hd.get("/api/poi/detail/",{query:i,baseUrlType:2})}function E({poiId:e,subCategoryType:t},n,i){const o={poiId:e,language:(0,m.qm)()};w.poiDetail=f.hd.get("/api/poi/detail/",{query:o,baseUrlType:2});const a=Object.assign({poiId:e,count:15,offset:0,trafficType:0},n);i.forEach(((e,n)=>{const i=0===n?1:0,o=`poiCategory${n}`,r=f.hd.get("/api/seo/poi/item_list/",{query:t?Object.assign(Object.assign({},a),{subCategoryType:t,subTitleType:e}):Object.assign(Object.assign({},a),{subCategoryType:e}),baseUrlType:2});r.then((e=>{var t,n;(null!==(n=null===(t=e.itemList)||void 0===t?void 0:t.slice(0,i).map((e=>{var t,n;return null!==(n=null===(t=e.video.zoomCover)||void 0===t?void 0:t[720])&&void 0!==n?n:e.video.cover})))&&void 0!==n?n:[]).forEach((e=>{(new Image).src=e}))})).catch(_()),w[o]=r}))}},97487:(e,t,n)=>{"use strict";n.d(t,{Ni:()=>s,gA:()=>o,iq:()=>r});var i=n(88874);const o={userDetail:"webapp.user-detail",videoDetail:"webapp.video-detail",linkerStrategy:"webapp.linker-strategy",kapDetail:"webapp.kap-detail",kapLinkerStrategy:"webapp.kap.strategy",kapCoinLinkerStrategy:"webapp.kap.coin.strategy",walletRechargeShowGetCoinsEntrance:"wallet.recharge.show-get-coins-entrance",reflowVideoStrategy:"webapp.reflow.video.strategy",reflowVideoUiStrategy:"webapp.reflow.video.uiStrategy",reflowVideoDetail:"webapp.reflow.video.detail",reflowVideoOperationSettings:"webapp.reflow.video.operationSettings",reflowGlobalQueryData:"webapp.reflow.global.queryData",reflowGlobalShareUser:"webapp.reflow.global.shareUser",reflowGlobalStrategy:"webapp.reflow.global.strategy",reflowGlobalUiStrategy:"webapp.reflow.global.uiStrategy",reflowVersionUiStrategy:"webapp.reflow.version.uiStrategy",kapPageStrategy:"webapp.kap.pageStrategy"},a={};function r(e){const t=(0,i.YI)(o[e]);t&&(a[e]=t)}function s(e){const t=a[e];return t&&(a[e]=void 0),t}},5441:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});var i=n(40099),o=n(60484),a=n(49057);const r=()=>{const{userAgent:e}=(0,o.L$)((0,a.W)((()=>["userAgent"]),[])),t=(null==e?void 0:e.includes("tiktok"))&&(null==e?void 0:e.includes("TTElectron")),n=t&&(null==e?void 0:e.includes("osName/Mac")),r=t&&!n,[s,l]=(0,i.useState)(t),[c,d]=(0,i.useState)(n),[u,p]=(0,i.useState)(r);return(0,i.useEffect)((()=>{const{isElectron:e,osVersion:t=""}=(0,o.L$)(window.TTE_ENV),n=t.includes("Mac OS");l(e),d(e&&n),p(e&&!n)}),[]),{isElectronApp:s,isMacElectronApp:c,isWinElectronApp:u}}},25616:(e,t,n)=>{"use strict";n.d(t,{s:()=>v,Y:()=>g});var i=n(40099),o=n(51660);const a="473824";var r=n(84323),s=n(60484),l=n(49057),c=n(48615);function d(){const{region:e}=(0,s.L$)((0,l.W)((()=>["region"]),[])),{coinLiteConfig:t,isIOS:n,queryData:i}=(0,s.L$)((0,c.U)((()=>["coinLiteConfig","isIOS","queryData"]),[])),{share_app_id:o,_r:a}=null!=i?i:{};return{isSharing:"1"===a,isCoinLite:u({share_app_id:o,region:e,os:n?"ios":"android",coinLiteConfig:t})}}function u(e){var t,n;const{share_app_id:i,region:o,os:s="android",coinLiteConfig:l}=e,c=i===a,d=null!==(n=null===(t=null==l?void 0:l.coinLiteRegion)||void 0===t?void 0:t[s])&&void 0!==n?n:r.W_,u=!!o&&d.map((e=>{var t;return null===(t=null==e?void 0:e.toUpperCase)||void 0===t?void 0:t.call(e)})).includes(o);return c&&u}var p=n(64356);const v=(e="Webapp")=>{const{isSharing:t,isCoinLite:n}=d(),{t:o}=(0,i.useContext)(p.Ss),a=t&&n?function(e,t=[]){return function(n,i,o){return t.includes(n)?e(n,i,o):e(n,i,o).replace(/(TikTok( Lite)?\b)/g,(function(e,t,n){return n?e:`${t} Lite`}))}}(o):o;return g([e],t),(0,i.useCallback)(((t,n,i)=>void 0===t||"string"==typeof t&&!t.length?i:a(t,Object.assign({ns:e},n),i)),[e,a])};function g(e,t=!1){t&&(0,o.qm)();const{loadStarling:n,hasLoaded:a}=(0,i.useContext)(p.Ss),[r,s]=(0,i.useState)((null!=e?e:[]).reduce(((e,t)=>e&&a(t)),!0));return(0,i.useEffect)((()=>{e&&Promise.all(e.map((e=>{if(a(e))return!0;const t=(0,o.qm)();return n(e,t)}))).then((e=>{s(e.reduce(((e,t)=>e&&t),!0))}))}),[]),r}},37209:(e,t,n)=>{"use strict";n.d(t,{gW:()=>h,EK:()=>_,xt:()=>f,Dy:()=>p});var i=n(58632),o=n(35357),a=n.n(o),r=n(53385),s=n(77966),l=n(4929),c=n(34099);const d={isPhoenix:"object"==typeof window&&"www.tiktok.in"===window.location.host,textReplace:"undefined"==typeof window?null:new(n(17283).A)({condition:{APPID:"8660"},tccUrl:"https://sf-tcc-config.tiktokcdn.com/obj/tcc-config-web-alisg/tcc-v2-data-webcast.starling.proxy-default"}),loadTcc(){return this.isPhoenix?this.textReplace.getWithCache("webapp-phoenix-tcc"):Promise.resolve()},getPlugin:e=>({type:"postProcessor",name:"text-replace-plugin",process:(t,n)=>d.textReplace.processSync(t,e,n)}),getProcessName(){return this.isPhoenix?["text-replace-plugin"]:void 0}};var u=n(84669);function p(e,t,n){const i=[];return new Promise(((o,a)=>{d.loadTcc().then((r=>{(d.isPhoenix?s.Ay.use(d.getPlugin(r)):s.Ay).init({debug:!1,fallbackLng:["en"],initImmediate:!0,defaultNS:null!=t?t:"Webapp",postProcess:d.getProcessName(),saveMissing:!0,missingKeyHandler:(e,t,o,a)=>{i.includes(o)||(console.warn("[i18n] missing key",e,t,o,a),i.push(o)),n&&n(t,o,a)}},(e=>{e?a(e):o()})),s.Ay.setLang(e)}))}))}const v=["Webapp_recharge_referral"],g=["kick_user_frontier"];function m(e){return v.includes(e)?l.Uy:g.includes(e)?l.AY:l.Lq}function h(e,t,n=!1){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const{starling:i,tea:o}=(0,c.V)();return new r.A({namespace:e,api_key:m(e),locale:t,zoneHost:i,timeout:1e4,TEAChannelDomain:o,lazyUpdate:n}).load()}))}const _=a()(((e,t)=>{Object.entries(e).forEach((([e,n])=>{s.Ay.addResourceBundle(t,e,n,!0,!0)}))})),f=e=>u.D.includes(e)},78662:(e,t,n)=>{"use strict";n.d(t,{xj:()=>ue,$p:()=>le,bc:()=>ce,Pz:()=>de,sn:()=>k,Ke:()=>M,sM:()=>Z,Ds:()=>N,nq:()=>L,eD:()=>X,hh:()=>ie,gq:()=>O,tO:()=>S,Iz:()=>T,pz:()=>R,U0:()=>W,j:()=>$,RR:()=>G,p5:()=>Y,qd:()=>I,mQ:()=>J,Tc:()=>q,Iy:()=>j,vb:()=>Q,LC:()=>H,ZG:()=>V,N6:()=>z,a1:()=>B,ie:()=>U,q$:()=>F,b8:()=>oe,FJ:()=>ee,P_:()=>A,cj:()=>D,Fj:()=>P,M5:()=>re,yw:()=>pe,pH:()=>u,WD:()=>h,AT:()=>p,fJ:()=>g});var i,o=n(47172),a=n(82715),r=n(8227),s=n(97497),l=n(94810);!function(e){e.Video="video",e.User="user",e.Challenge="hashtag",e.Trending="fyp",e.Live="live",e.Message="message",e.Setting="setting",e.Music="music",e.Effect="effect",e.SearchResults="search",e.Discover="discover",e.Following="following",e.Friends="friend",e.Topics="topics",e.Profile="profile",e.Expansion="expansion",e.Inbox="inbox",e.Report="report",e.Feedback="feedback"}(i||(i={}));const c=["/en","/ar","/de-DE","/es","/fi-FI","/fr","/id-ID","/ja-JP","/ko-KR","/ms-MY","/ru-RU","/th-TH","/tr-TR","/vi-VN","/zh-Hans","/zh-Hant-TW","/he-IL","/jv-ID","/ceb-PH","/cs-CZ","/it-IT","/hu-HU","/nl-NL","/pl-PL","/pt-BR","/ro-RO","/sv-SE","/fil-PH","/el-GR","/uk-UA","/ur","/hi-IN","/bn-IN","/my-MM","/km-KH"],{getPureLivePath:d,getPureMusicPath:u,getPureTagPath:p,getPureStickerPath:v,getPureUserPath:g,getPureVideoPath:m,getPureQuestionPath:h}=l.h,{getPureUniqueId:_,hasIllegalText:f,isPureNumber:y,isRealUniqueId:b,purifyMusicName:w,purifyPlainText:x}=l.A;function T(e){const t=e.replace(/\/$/,"");return e===a.OZ.home||c.includes(t)}function S(e){return e.replace(/\/$/,"")===a.OZ.foryou||T(e)}function k(e){if(S(e))return"fyp";if(e.match("/following"))return"following";if(e.match("/friends"))return"friend";if(e.match("/setting"))return"setting";if(e.match("/search"))return"search";if(e.match("/message"))return"message";if(e.match("/video"))return"video";if(e.match("/@"))return"user";if(e.match("/report"))return"report";if(e.match("/music"))return"music";if(e.match("/effect"))return"effect";if(e.match("/tag"))return"hashtag";if(e.match(/\/discover\/.+/))return"expansion";if(e.match("/discover"))return"discover";if(e.match("/live"))return"live";if(A(e)){const t=(0,o.matchPath)(e,{path:a.OZ.topics,exact:!0});return`topics_${null==t?void 0:t.params.name}`}return e.match("/profile")?"profile":e.match("/inbox")?"inbox":e.match("/feedback")?"feedback":""}function A(e){return Boolean((0,o.matchPath)(e,{path:a.OZ.topics,exact:!0}))}function O(e){return e===a.OZ.following}function E(e){return e===a.OZ.friends}function P(e){return/^\/@[^/]*\/video\/\d+/.test(e)||/^\/@[^/]*\/photo\/\d+/.test(e)}function I(e){return/^\/@.+\/live/.test(e)}function C(e){return/^\/@.+\/playlist\/.+/.test(e)}function j(e){return/^\/music\/.+/.test(e)}function L(e){return/^\/effect\/.+/.test(e)}function M(e){return/^\/tag\/.+/.test(e)}function N(e){return/^\/@.*\/collection\/.+/.test(e)}function D(e){return!/^\/@.+\/live/.test(e)&&!/^\/@.*\/video\/\d+/.test(e)&&/^\/@.+/.test(e)&&!/^\/@.*\/collection\/.+/.test(e)}function R(e){return/^\/discover\/.+/.test(e)}function B(e){return e===a.OZ.searchHome}function U(e){return e===a.OZ.searchUser}function F(e){return e===a.OZ.searchVideo}function V(e){return e===a.OZ.searchLive}function z(e){return e===a.OZ.searchReminder}function H(e){return/^\/question\/.+/.test(e)}function q(e){return/^\/messages/.test(e)}function W(e){const t=[r.vI.liveDiscover,r.vI.liveFollowing,r.vI.liveGaming,r.vI.liveSingleGaming,r.vI.liveEventAggregation,r.vI.liveLifestyle,r.vI.liveCategory,r.vI.liveCategoryGaming,r.vI.liveCategoryLifestyle,r.vI.liveCategorySingleGaming,r.vI.liveCategorySingleLifeStyle,r.vI.liveCategorySingleAction];return!!(0,o.matchPath)(e,{path:t,exact:!0})}function $(e){return/live\/event\/\d/.test(e)}function G(e){return/live\/event/.test(e)}function Y(e){return e.startsWith("/live")||I(e)}function Z(e){return e.startsWith("/coin")}function K(e){return Boolean((0,o.matchPath)(e,{path:a.OZ.discover,exact:!0}))}function X(e){return Boolean((0,o.matchPath)(e,{path:a.OZ.explore,exact:!0}))}function Q(e){return/^\/place\/.+/.test(e)||/^\/travel\/.+/.test(e)}function J(e){return/^\/login/.test(e)}function ee(e){return/^\/signup/.test(e)}function te(e){var t;return(null===(t=(0,a.jN)(e))||void 0===t?void 0:t.name)===a.eU.channel}function ne(e){var t;return(null===(t=(0,a.jN)(e))||void 0===t?void 0:t.name)===a.eU.videoPlaylist}function ie(e){return e.startsWith("/feedback")}function oe(e){return e.startsWith(a.OZ.setting)}const ae={5:S,11:O,20:E,0:P,4:j,129:L,3:M,121:N,1:D,106:U,107:F,123:V,105:B,16:H,113:A,13:q,103:K,104:R,122:te,108:ne,18:Q};function re(e){var t;return null!==(t=Object.keys(ae).find((t=>ae[t](e))))&&void 0!==t?t:5}const se=e=>"business"===new URLSearchParams(e).get("scene");function le(e){var t,n;return["download","downloadWithLang"].includes(null!==(n=null===(t=(0,a.jN)(e))||void 0===t?void 0:t.name)&&void 0!==n?n:"")}function ce(e,t){return(!t||!se(t))&&(M(e)||A(e)||O(e)||E(e)||S(e)||j(e)||L(e)||P(e)||D(e)&&!C(e)||K(e)||B(e)||U(e)||F(e)||V(e)||z(e)||H(e)||Q(e)||N(e)||X(e)||te(e)||function(e){var t;return(null===(t=(0,a.jN)(e))||void 0===t?void 0:t.name)===a.eU.find}(e)||ne(e)||function(e){return e.startsWith("/404")}(e)||ie(e)||q(e)||oe(e)||R(e)||function(e){return e.startsWith("/upload")}(e)||W(e)||I(e)||function(e){return e.startsWith("/live/popout/")}(e)||$(e))}function de(e,t){return(!t||!se(t))&&(S(e)||D(e)&&!C(e)||P(e)||N(e)||O(e)||E(e)||X(e)||q(e)||j(e)||Boolean(e.match("/profile"))||B(e)||U(e)||F(e)||V(e)||z(e)||oe(e)||M(e)||te(e)||R(e)||K(e))}function ue(e){return W(e)||I(e)||$(e)}function pe({uniqueId:e,secUid:t,itemId:n,isPhoto:i}){const o=l.A.getPureUniqueId({uniqueId:e,secUid:t});return o&&n?i?s.Lj.photo({uniqueId:o,id:n}):s.Lj.video({uniqueId:o,id:n}):""}},39228:(e,t,n)=>{"use strict";n.d(t,{pM:()=>F,hd:()=>B,JI:()=>M});var i=n(58632),o=n(38203),a=n(71510),r=n.n(a),s=n(26324),l=n(4474),c=n(31578),d=n(26325),u=n(32970),p=n(12904),v=n(74631),g=n(58156),m=n(5902),h=n(237),_=n(18829);const f="content-type",y=["application/pdf"],b=["/api/update/profile/","/api/commit/follow/user","/api/comment/publish"],w="webapp-session-referer",x="device_id",T={"Singapore-Central":"sg","US-East":"va","US-EastRed":"in","US-TTP":"ttp","US-TTP2":"ttp2","EU-TTP":"ie","EU-TTP2":"no1a"};var S=n(93608),k=n(90535),A=n(62302),O=n(78662),E=n(9796),P=n(41857);const I=new Set,C=[];let j;const L=()=>{var e;if(j&&C.length){for(const t of C)try{null===(e=null==j?void 0:j.emitEvent)||void 0===e||e.call(j,"sdkLoad",{duration:t.duration},{name:t.name})}catch(e){console.error("flushSdkLog error",e)}C.splice(0,C.length)}};function M(e){j=e,L()}function N(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(E.Qf.loaded)return;const{url:t,method:n,needSign:i}=e;let o=Boolean(P.U8.some((e=>Boolean(t.match(new RegExp(e)))))||t.startsWith("/")&&!t.startsWith("//")&&"GET"===n&&!P.zv.some((e=>Boolean(t.match(new RegExp(e))))));if(o=o&&!i,!o&&(yield E.Qf.load(),e.requireSecSdk&&!E.Qf.sdks[1].initialized))throw new Error("secsdk load error")}))}function D(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(E.er.loaded)return;const{url:t,method:n}=e;"POST"===n&&P.VF.some((e=>Boolean(t.match(new RegExp(e)))))&&(yield E.er.load())}))}function R(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const{url:t}=e,n=E.Fs.some((e=>Boolean(t.match(new RegExp(e)))));!E.ZC.loaded&&n&&(yield E.ZC.load())}))}const B=new class{constructor(e){this.verify=v.MX,this.isPageVisible=!0,this.isFocus=!0,this.handleAppContext=e=>(0,i.__awaiter)(this,void 0,void 0,(function*(){return this.appContext||(this.appContext=yield this.options.getAppContextAsync()),e})),this.handleBizContext=e=>(0,i.__awaiter)(this,void 0,void 0,(function*(){this.bizContext||e.ignoreBizContext||(this.bizContext=yield this.options.getBizContextAsync());const{ignoreBizContext:t}=e;return(0,i.__rest)(e,["ignoreBizContext"])})),this.handleQuery=e=>(0,i.__awaiter)(this,void 0,void 0,(function*(){var t,n,i,o,a,r,s,l;const c=this.getRiskParams(null!==(t=e.riskParamsType)&&void 0!==t?t:0),u={},p=null===(n=this.bizContext)||void 0===n?void 0:n.canUseQuery,{type:v}=null!==(o=null===(i=this.appContext)||void 0===i?void 0:i.env)&&void 0!==o?o:{type:""},g=null===(a=this.appContext)||void 0===a?void 0:a.odinId,m="ppe"===v||"boe"===v,h=null!==(s=new URLSearchParams(null===(r=window.location)||void 0===r?void 0:r.search).get(x))&&void 0!==s?s:void 0;(p||m)&&h&&(u[x]=h);const _={WebIdLastTime:null===(l=this.appContext)||void 0===l?void 0:l.webIdCreatedTime};g&&(_.odinId=g);const f=(0,d.F0)(),y=f.to?f.dispatchParams:{},b=yield this.options.getExtraParams(e);return e.query=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c),e.query),b),y),u),_),e})),this.handleURL=e=>{var t;let{url:n}=e;const i=null!==(t=e.query)&&void 0!==t?t:{};return n.startsWith("http:")||n.startsWith("https:")||(n=`${(0,d.$_)(e.baseUrlType)}${n}`),n=(0,l.stringifyUrl)({url:n,query:i}),e.url=n,e},this.options=e,"undefined"!=typeof window&&((0,m.Gz)(this.handleVisibilityChange.bind(this,!1),this.handleVisibilityChange.bind(this,!0)),this.bindFocusChange())}init(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const t=yield this.options.getAppContextAsync(e);this.appContext=t}))}get csrfToken(){var e,t;return this.appContext,null!==(t=null===(e=this.appContext)||void 0===e?void 0:e.csrfToken)&&void 0!==t?t:""}get(e,t){return this.runFetch(e,Object.assign(Object.assign({},t),{method:"GET"}))}post(e,t={}){var{omitContentType:n=!1}=t,o=(0,i.__rest)(t,["omitContentType"]);const a=new Headers(o.headers);return a.get(f)||n||a.set(f,"application/x-www-form-urlencoded"),o.body||(o.body=""),o.headers=a,this.runFetch(e,Object.assign(Object.assign({},o),{method:"POST"}))}delete(e,t={}){var{omitContentType:n=!1}=t,o=(0,i.__rest)(t,["omitContentType"]);return this.runFetch(e,Object.assign(Object.assign({},o),{method:"DELETE"}))}getRiskParams(e){if(!this.appContext)return{};if(2===e)return{};if((0,m.Hd)(w)||(0,m.J2)(w,document.referrer),1===e)return Object.assign({},(0,u.Y)());const t={};(0,p.Yp)()&&(t.security_verification_aid="1459");const n=navigator.userAgent;return Object.assign(Object.assign({},(0,u.w)(Object.assign(Object.assign({},this.appContext),{isMobile:(0,c.Ny)(n),os:(0,c.R0)(n)}),this.isPageVisible,this.isFocus)),t)}runFetch(e,t){var n,o,a,{credentials:r="include"}=t,s=(0,i.__rest)(t,["credentials"]);return(0,i.__awaiter)(this,void 0,void 0,(function*(){let t=Object.assign({url:e,credentials:r},s);t=yield Promise.all([this.options.beforeHandleQuery(t),this.handleAppContext(t),this.handleBizContext(t)]).then((([,,e])=>this.handleQuery(e))).then((e=>this.handleURL(e)));const{url:l}=t,c=(0,i.__rest)(t,["url"]),d=new Set(["query","riskParamsType","baseUrlType","requireSecSdk"]),u=Object.keys(c).reduce(((e,t)=>(d.has(t)||(e[t]=c[t]),e)),{});return u.credentials=r,null===(o=(n=this.options).beforeFetch)||void 0===o||o.call(n,l,null!==(a=s.method)&&void 0!==a?a:"GET"),this.fetchData(l,u)}))}fetchData(e,t){var n,o,a,r,s,l,c,u,v,m,b,w,x,T,S,k,A,O,E,P,I,C;return(0,i.__awaiter)(this,void 0,void 0,(function*(){let i;try{i=yield window.fetch.call(null,e,t)}catch(e){return Promise.reject(e)}if(i){if(i.status>=400)return(0,h.Gy)(i,e),Promise.reject(i);{const h=i.headers.get(f);if(null==h?void 0:h.includes("application/json"))try{let h=i.headers.has(p.Si)?JSON.parse(null!==(n=i.headers.get(p.Si))&&void 0!==n?n:"{}"):yield i.json();const f=this._getVerifyJson(h,e),y="TTP"===(null===(o=this.appContext)||void 0===o?void 0:o.clusterRegion),O=(null===(a=this.bizContext)||void 0===a?void 0:a.idc)?(0,g.v)(this.bizContext.idc):null===(r=this.bizContext)||void 0===r?void 0:r.vregion;i.headers.has(p.Si)&&(null===(s=this.options)||void 0===s?void 0:s.reportFn)&&(null===(v=null===(u=null===(c=(l=this.options).reportFn)||void 0===c?void 0:c.call(l))||void 0===u?void 0:u.context)||void 0===v||v.call(u,{firstScreenRequest:"abort",verify:"1"}));const E=yield this.verify.checkVerify(f,null!==(b=null===(m=this.appContext)||void 0===m?void 0:m.wid)&&void 0!==b?b:"0",y,d.si.captcha,{lang:null===(w=this.appContext)||void 0===w?void 0:w.language,userMode:(0,_.n)({isVA:"US-TTP"===O||"US-TTP2"===O,isLogin:Boolean(null===(x=this.appContext)||void 0===x?void 0:x.user),isFTC:null!==(k=null===(S=null===(T=this.appContext)||void 0===T?void 0:T.user)||void 0===S?void 0:S.ftcUser)&&void 0!==k&&k,isHighRisk:!1,isEU:(null==O?void 0:O.startsWith("EU-TTP"))||"US-EAST-RED"===O})});return 0===E?((null===(A=this.options)||void 0===A?void 0:A.onJsonResponse)&&(h=this.options.onJsonResponse({response:i,config:t,json:h})),h):2===E?this.fetchData(e,t):{statusCode:-1}}catch(e){return null===(I=null===(P=null===(E=null===(O=this.options)||void 0===O?void 0:O.reportFn)||void 0===E?void 0:E.call(O))||void 0===P?void 0:P.context)||void 0===I||I.call(P,{firstScreenRequest:"abort"}),Promise.reject(i)}else{if(null===(C=i.headers.get(f))||void 0===C?void 0:C.includes("text/"))return i.text();if(-1!==y.indexOf(String(h)))return i.blob();if(null==h?void 0:h.includes("application/x-protobuf"))return i.arrayBuffer()}return i.text()}}}))}_getVerifyJson(e,t){var n,i,o,a;const r=e.status_code||e.code,s=r===p.CQ,l=r===p.Zu;if(b.some((e=>t.includes(e)))&&(s||l)){const{idc:e}=null!==(n=this.bizContext)&&void 0!==n?n:{},t=(0,g.v)(e);return{code:"10000",from:"shark_admin",type:"verify",version:1,region:null!==(a=null!==(i=T[t])&&void 0!==i?i:p.sG[null!==(o=d.si.kind)&&void 0!==o?o:""])&&void 0!==a?a:"va",subtype:s?"slide":"text",verify_event:"",detail:{},fp:-1}}return e}handleVisibilityChange(e){this.isPageVisible=e}bindFocusChange(){const e=()=>{this.isFocus=!0},t=()=>{this.isFocus=!1};return window.addEventListener("focus",e),window.addEventListener("blur",t),()=>{window.removeEventListener("focus",e),window.removeEventListener("blur",t)}}}({getBizContextAsync:k.h,getAppContextAsync:A.zI,getExtraParams:e=>(0,i.__awaiter)(void 0,void 0,void 0,(function*(){var t,n,i;const o=yield(0,k.h)();let a={};return(null===(t=null==o?void 0:o.liveCommonConfig)||void 0===t?void 0:t.regionEntry)&&[4,5,9].includes(null!==(n=e.baseUrlType)&&void 0!==n?n:0)&&(a={channel:"local_test",carrier_region:null!==(i=localStorage.getItem("LIVE_OFFICE_REGION"))&&void 0!==i?i:"TW"}),Object.assign(Object.assign({},a),{from_page:(0,O.sn)(location.pathname)})})),beforeHandleQuery:e=>(0,i.__awaiter)(void 0,void 0,void 0,(function*(){yield Promise.all([N(e),D(e),R(e)]).catch((e=>{throw e}));try{[E.ZC,E.Qf,E.er].forEach((e=>{e.time&&e.time.forEach((e=>(e=>{try{I.has(e.name)||(I.add(e.name),C.push(e)),L()}catch(e){console.error("sdkLogger error",e)}})(e)))}))}catch(e){console.error("sdkLogger error",e)}return e})),beforeFetch:(e,t)=>{S.f.sendEvent("api_request",{api_path:e,method:t})},onJsonResponse:e=>(0,i.__awaiter)(void 0,void 0,void 0,(function*(){const{response:t,json:n}=e,i=t.headers.get("x-tt-logid");return n.__headers={url:t.url,log_id:i},n})),reportFn:()=>j});function U(e){return(t,n)=>new s.c((i=>{var o;const a="AbortController"in window?new AbortController:{signal:{aborted:!1},abort(){this.signal.aborted=!0}};return B[e](t,r()(n,{signal:null!==(o=null==n?void 0:n.signal)&&void 0!==o?o:a.signal})).then((e=>{i.next(e),i.complete()})).catch((e=>{i.error(e)})),()=>{a.signal.aborted||a.abort()}}))}let F=class{constructor(){this.get=U("get"),this.post=U("post"),this.delete=U("delete")}get csrfToken(){return B.csrfToken}};F=(0,i.__decorate)([(0,o._)()],F)},9796:(e,t,n)=>{"use strict";n.d(t,{er:()=>y,Qf:()=>f,ZC:()=>T,Fs:()=>x});var i=n(58632),o=n(51660),a=n(87181),r=n(62302),s=n(41857),l=n(58156),c=n(90535);class d{constructor(){this.initialized=!1,this.executionTime=0,this.name=""}load(){if(this.initialized)return Promise.resolve();if(this.promise)return this.promise;const{promise:e,cleanup:t}=function(){let e;return{promise:new Promise((t=>{e=window.setTimeout((()=>{t(null)}),1e4)})),cleanup:()=>{clearTimeout(e)}}}();return this.promise=Promise.race([e.then((()=>{this.promise=void 0})),this.loadSDK()]).then((()=>{t()})).catch((()=>{t(),this.promise=void 0})),this.promise}}class u{constructor(e){this.promise=null,this.keyword=e}get(e){return this.promise||(void 0===this.hasScript&&(this.hasScript=(0,a.yw)(e)),this.hasScript?this.promise=(t=this.keyword,new Promise((e=>{const n=()=>{window.requestAnimationFrame((()=>{window[t]?e(null):n()}))};n()}))):this.promise=(0,a.$U)(e).catch((e=>{throw this.promise=null,e}))),this.promise;var t}}var p=n(18829);const v=new u("byted_acrawler"),g={"Singapore-Central":"sg-tiktok","US-East":"va-tiktok","US-EastRed":"gcp-tiktok","US-TTP":"ttp","US-TTP2":"ttp2","EU-TTP":"eu-ttp","EU-TTP2":"eu-ttp2"},m="MSSDK_INITIALIZED",h=new u("secsdk"),_={"Singapore-Central":"sg","US-East":"va","US-EastRed":"va","US-TTP":"oci","US-TTP2":"oci","EU-TTP":"eu","EU-TTP2":"eu"},f={sdks:[new class extends d{constructor(e,t){super(),this.name="acrawlersdk",this.getContextProps=e,this.configs=t}loadSDK(){const e=performance.now();return Promise.all([this.getContextProps(),v.get({moduleId:(0,a.BJ)()})]).then((([{appId:t,user:n,idc:i,vregion:o=""}])=>{var a;if(window[m])return void(this.initialized=!0);window[m]=!0,this.initialized=!0;const r=1233===t,s=void 0!==i?(0,l.v)(i):o,c=null!==(a=g[s])&&void 0!==a?a:r?"va-tiktok":"sg-tiktok";this.configs.forEach((e=>{var t;window.byted_acrawler.init({aid:e.aid,dfp:e.dfp,boe:e.boe,intercept:e.intercept,enablePathList:e.enablePathList,region:c,mode:(0,p.n)({isVA:r,isLogin:Boolean(n),isFTC:null!==(t=null==n?void 0:n.ftcUser)&&void 0!==t&&t,isHighRisk:e.isHighRisk}),isSDK:e.isSDK})})),this.executionTime=performance.now()-e}))}}((()=>Promise.all([(0,r.zI)((0,o.qm)()),(0,c.h)()]).then((([{appId:e,user:t},{idc:n,vregion:i}])=>({appId:e,user:t,idc:n,vregion:i})))),s.TA),new class extends d{constructor(e){super(),this.name="secsdk",this.getContextProps=e}loadSDK(){const e=performance.now();return this.getContextProps().then((({clusterRegion:e})=>{const t=(0,a.D9)(e);return h.get({moduleId:t})})).then((()=>{this.initialized||(this.initialized=!0,window.secsdk.csrf.setProtectedHost(s.sh),this.executionTime=performance.now()-e)}))}}((()=>(0,r.zI)((0,o.qm)())))],load:()=>Promise.all(f.sdks.map((e=>e.load()))),get loaded(){return this.sdks.reduce(((e,{initialized:t})=>e&&t),!0)},get time(){if(this.loaded)return this.sdks.map((({executionTime:e,name:t})=>({duration:e,name:t})))}},y={sdks:[new class extends d{constructor(e){super(),this.loadSDK=()=>(0,i.__awaiter)(this,void 0,void 0,(function*(){const e=performance.now();if(this.initialized)return;const{csrf:t}=yield n.e(5832).then(n.t.bind(n,55167,23));t.setProtectedHost(this.config),this.executionTime=performance.now()-e,this.initialized=!0})),this.name="cthulhusdk",this.config=e}}(s.kM)],load:()=>Promise.all(y.sdks.map((e=>e.load()))),get loaded(){return this.sdks.every((({initialized:e})=>e))},get time(){if(this.loaded)return this.sdks.map((({executionTime:e,name:t})=>({duration:e,name:t})))}},b=["/passport/web/"],w=["/v1/message/send","/api/update/profile","/api/v1/item/create/bulk","/api/v1/web/project/post","/api/commit/follow/user","/api/commit/item/digg","/api/comment/publish","/api/comment/digg","/api/item/collect","/api/aweme/delete","/tiktok/region/change/precheck/get/v1","/webcast/room/enter","/webcast/room/chat","/webcast/room/share","/webcast/gift/send","/webcast/sub/contract/create","/webcast/wallet_api/diamond_buy_external","/webcast/wallet_api_tiktok/withdraw/v2","/webcast/wallet_api/diamond_exchange/","/webcast/user/relation/update","/passport/web/"],x=b.concat(w),T={sdks:[new class extends d{constructor(e,t){super(),this.getContextProps=e,this.name="ztisdk",this.configs=t}loadSDK(){const e=performance.now();return this.getContextProps().then((({appId:t,user:o,wid:a,vregion:r="",idc:s})=>(0,i.__awaiter)(this,void 0,void 0,(function*(){var i;if(this.initialized)return;const c=void 0!==s?(0,l.v)(s):r,d=null!==(i=_[c])&&void 0!==i?i:"va",{SecureSDK:u}=yield Promise.all([n.e(8978),n.e(7586)]).then(n.bind(n,56134));yield u.init(d),u.setRegion(d),u.setConfig(Object.assign({aid:t,scene:"tt_fetch",certType:"header",signVersion:2},this.configs)),u.setLoginStatus(Boolean(o)),u.setWebId(a,t),u.setDisableCrossStorage(!0),u.setDisableStorageSignData(!1),u.setType({initType:"pubKey",signType:"pubKey"}),u.setStorageType("local"),u.start(),this.executionTime=performance.now()-e,this.initialized=!0}))))}}((()=>Promise.all([(0,r.zI)((0,o.qm)()),(0,c.h)()]).then((([{appId:e,user:t,wid:n,abTestVersion:i},{vregion:o,idc:a}])=>({appId:e,user:t,wid:n,vregion:o,abTestVersion:i,idc:a})))),{providerPathList:b,consumerPathList:w})],load:()=>Promise.all(T.sdks.map((e=>e.load()))),get loaded(){return this.sdks.every((({initialized:e})=>e))},get time(){if(this.loaded)return this.sdks.map((({executionTime:e,name:t})=>({duration:e,name:t})))}}},41857:(e,t,n)=>{"use strict";n.d(t,{TA:()=>p,U8:()=>r,VF:()=>h,kM:()=>_,sh:()=>u,zv:()=>a});var i=n(22113),o=n.n(i);const a=["/node/share/","/share/item/list","/discover/render/undefined","/share/item/explore/list","/api/comment/list/","/api/comment/list/reply/","/api/commit/follow/user/","/api/commit/item/digg/","/aweme/v1/upload/image2/","/api/notice/multi/","/api/notice/count/","/api/notice/digg/list/","/api/user/following/request/list/","/api/commit/follow/request/approve/","/api/commit/follow/request/reject/","/api/comment/digg/","/api/comment/publish/","/api/comment/delete/","/api/sticker/item_list/","/api/user/contact/list/","/api/at/default/list/","/api/comment/search/user/","/web/aweme/v1/search/challengesug","/web/aweme/v1/discover/search/","/api/v1/item/create/","/api/ba/business/suite/permission/list","/api/search/user/full/","/api/search/user/preview/","/api/search/item/full/","/api/search/general/full/","/api/music/detail/","/api/challenge/detail/","/api/user/detail/","/api/user/list/","/api/item/detail/","/api/question/detail/","/api/question/item_list/","/api/discover/challenge/","/api/discover/user/","/api/discover/music/","/api/challenge/item_list/","/api/music/item_list/","/api/post/item_list/","/api/favorite/item_list/","/api/following/item_list/","/api/recommend/item_list/","/api/recommend/user/","/api/recommend/embed_videos/","/api/live/detail/","/api/im/multi_user/","/api/user/get/animation/","/api/user/settings/","/aweme/v1/music/list/","/aweme/v1/adult/verify/get/accepted/id/types/","/api/mix/detail","/api/mix/item_list","/api/uniqueid/check/","/api/user/playlist/","/api/reflow/item/detail/","/api/reflow/user/detail/","/api/reflow/recommend/item_list/","/api/reflow/challenge/item_list/","/api/reflow/post/item_list/","/api/reflow/sticker/item_list/","/api/reflow/playlist/item_list/","/api/reflow/survey/detail/","/api/reflow/repost/item_list/","/api/impression/write/","/api/user/set/animation/","/api/aweme/set/react_duet_stitch/","/api/aweme/modify/visibility/","/api/aweme/delete/","/api/schedule/aweme/delete/","/passport/web/login_name/update/","/api/update/profile/","/api/commit/follow/request/approve/","/api/commit/follow/request/reject/","/api/commit/follow/user/","/tiktok/v1/username/save_async/","/api/ba/business/suite/account/off","/api/ba/business/suite/account/quitcheck","/api/playlist/create_with_items/","/api/playlist/update/","/api/playlist/modify_items/","/api/item/collect","/node/report/reasons","/aweme/v1/aweme/feedback/","/aweme/v2/aweme/feedback/","/webcast.*","/v1/message/send","/v2/conversation/create","/v1/voip/call","/v1/conversation/add_participants","/1/conversation/remove_participants","/v1/conversation/update_participant","/v1/conversation/set_setting_info","/v1/conversation/get_setting_info","/v1/conversation/upsert_core_ext_info","/v1/conversation/upsert_settings_ext","/v1/conversation/dissolve","/v1/message/mark","/v1/message/batch_unmark","/v1/message/set_property","/api-live/event/list","/api-live/event/related-videos","/api-live/event/detail","/api-live/share/live","/api-live/user/room","/node-a/send/download_link","/api/uniqueid/check/","/api/v3/register/user/info/sync/","/api/policy/notice/approve/","/api/private_banner/ack/","/api/privacy/agreement/record/agree/v1","/api/v3/register/verification/age/","/api/register/check/login/name/","/api/user/detail/self/","/passport/web/","/shorten/","/api/seo/kap/product_list/","/bi/notification/reporter/record"],r=["/passport/web/account/info/"],s=[/^\/webcast\/diamond/,/^\/webcast\/wallet_api\/(?!fs\/)/,/^\/webcast\/recharge/,/^\/webcast\/wallet_api_tiktok\/notifycenter/,/^\/webcast\/wallet_api_tiktok\/payment/,/^\/webcast\/wallet_api_tiktok\/periodic_payout_onboarding/,/^\/webcast\/wallet_api_tiktok\/payout_onboarding_confirm/,/^\/webcast\/wallet_api_tiktok\/payment_instrument_bind_url/],l=["/webcast/api/money/kyc/v1/info/detail","/webcast/api/money/kyc/v1/upload_file","/webcast/api/compliance/kyc/v1/submission","/webcast/room/chat/","/webcast/room/create_info/","/webcast/room/enter/","/webcast/room/leave/","/webcast/room/live_podcast/","/webcast/room/ping/audience/","/webcast/user/relation/update/","/webcast/room/emote_chat/","/webcast/room/share/",...s,"/webcast/wallet_api_tiktok/payment/initialize_payment","/webcast/wallet_api_tiktok/payment/initialize_agreement","/webcast/wallet_api_tiktok/payment/payment_methods/primary/set","/webcast/wallet_api_tiktok/payment/payment_methods/delete","/webcast/wallet_api_tiktok/payment/payment_methods/link","/webcast/wallet_api_tiktok/income_plus/tax/get_tax/","/webcast/wallet_api_tiktok/income_plus/tax/create_tax/","/webcast/wallet_api_tiktok/income_plus/tax/update_tax/","/webcast/wallet_api_tiktok/income_plus/agreement/","/webcast/wallet_api_tiktok/payout_onboarding_confirm/"],c=[...s,"/webcast/wallet_api_tiktok/periodic_payout_onboarding/","/webcast/wallet_api_tiktok/payment_instrument_bind_url/","/webcast/wallet_api_tiktok/payment/payment_methods","/webcast/wallet_api_tiktok/notifycenter/notices/","/webcast/wallet_api_tiktok/income_plus/get_user_region_info/","/webcast/wallet_api_tiktok/income_plus/account_steps/","/webcast/wallet_api_tiktok/income_plus/user/"],d=["/api/private_banner/ack/","/cloudpush/update_sender_token/","/cloudpush/app_notice_status/","/api/user/set/settings/","/api/reddot/report","/api/comment/digg/","/api/comment/publish/","/api/comment/delete/","/api/aweme/delete/","/api/schedule/aweme/delete/","/api/privacy/user/private_account/update/v1","/api/privacy/user/settings/update/v1","/api/im_setting/update/v1","/api/privacy/agreement/record/agree/v1","/api/commit/follow/request/approve/","/api/commit/follow/request/reject/","/api/commit/follow/user/","/api/impression/write/","/api/user/set/animation/","/api/aweme/set/react_duet_stitch/","/api/aweme/modify/visibility/","/passport/web/login_name/update/","/api/update/profile/","/api/upload/image/","/tiktok/v1/username/save_async/","/api/commit/ads/action/","/tiktok/v1/kids/commit/item/digg/","/api/im/stranger/unlimit/"],u={"webcast.tiktok.com":{POST:l,GET:c},"webcast-t.tiktok.com":{POST:l,GET:c},"webcast-m.tiktok.com":{POST:l,GET:c},"webcast.us.tiktok.com":{POST:["/webcast/room/chat/","/webcast/room/create_info/","/webcast/room/enter/","/webcast/room/leave/","/webcast/room/live_podcast/","/webcast/room/ping/audience/","/webcast/user/relation/update/","/webcast/room/emote_chat/","/webcast/room/share/",...s],GET:c},"www.tiktok.com":{POST:d},"us.tiktok.com":{POST:d},"m.tiktok.com":{POST:d},"t.tiktok.com":{POST:d}},p=[{aid:1988,dfp:!1,boe:!1,intercept:!0,enablePathList:a,isHighRisk:!1,isSDK:!1},{aid:368462,dfp:!1,boe:!1,intercept:!0,enablePathList:["/payment/v1/"],isHighRisk:!1,isSDK:!1}],v=["/api/aweme/modify/visibility/","/api/ba/business/suite/account/off","/api/ba/business/suite/account/quitcheck","/api/playlist/create_with_items/","/api/schedule/aweme/delete/","/api/update/profile/","/api/user/set/settings/","/api/collection/create/","/api/collection/move_items/","/api/collection/modify_items/","/api/collection/modify_info/","/api/collection/delete/"],g=["/webcast/gift/send/"],m=["/webcast/gift/send/"],h=o()([...v,...g,...m]),_={"www.tiktok.com":{POST:v},"webcast.tiktok.com":{POST:g},"webcast-t.tiktok.com":{POST:g},"webcast-m.tiktok.com":{POST:g},"webcast.us.tiktok.com":{POST:m}}},10646:(e,t,n)=>{"use strict";n.d(t,{Qq:()=>c,v7:()=>l,w1:()=>s});var i=n(58305);const o=()=>'""',a=()=>{},r=()=>{};class s{constructor(e,t){this.key=e,this.type=t,this.storageObject=null,this.getter=o,this.setter=a,this.remove=r,this.getter="local"===t?i._S:i.Hd,this.setter="local"===t?i.AP:i.J2,this.remove="local"===t?i.sc:i.X}get storage(){return this.storageObject||(this.storageObject=this.tryParseJson(this.getter(this.key,"{}"))),this.storageObject}getStorage(){return this.storage}setItem(e,t){this.storage[e]=t,this.setter(this.key,JSON.stringify(this.storage))}getItem(e){return this.storage[e]}removeItem(e){this.storage[e]=void 0,this.setter(this.key,JSON.stringify(this.storage))}removeAll(){this.storageObject=null,this.remove(this.key)}tryParseJson(e){try{return JSON.parse(e)}catch(e){return{}}}}const l=new s("webapp-common-config","local"),c=new s("webapp-common-config","session")},32862:(e,t,n)=>{"use strict";n.d(t,{GA:()=>d,HL:()=>c,OW:()=>l});var i=n(93608),o=n(11732),a=n(71281),r=n(58305);const s="AB_TEST_PREFIX_";function l(e,t){const n=i.f.getVar(e,t);return"val"in n?n.val:{}}function c(e,t){const n=i.f.getVar(e,t);return"vid"in n?n.vid:""}function d(e){var t,n;const{useDefaultValue:i,value:c}=(0,a.kX)(e),d="undefined"!=typeof window;if(i)return l(e,{}).vid;if(c){const i=null!==(n=null===(t=o.JO.find((t=>t.name===e)))||void 0===t?void 0:t.vid)&&void 0!==n?n:[];return i.includes(c)?(d&&(0,r.J2)(`${s}${e}`,c),c):((0,a.c3)(d,e,i),l(e,{}).vid)}return d&&(0,r.Hd)(`${s}${e}`)?(0,r.Hd)(`${s}${e}`):l(e,{}).vid}},71281:(e,t,n)=>{"use strict";n.d(t,{TQ:()=>x,V7:()=>p,_F:()=>y,c3:()=>w,d:()=>S,kX:()=>b,qt:()=>T,tU:()=>g});var i=n(4474),o=n(47172),a=n(11732),r=n(11983),s=n(35267),l=n(57431),c=n(49057),d=n(48615),u=n(60484);function p(e,t){var n,i;return null===(i=null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t])||void 0===i?void 0:i.vid}const v=()=>"undefined"!=typeof window,g=()=>v()&&window.location.host.startsWith("localhost")||"1"===String(void 0);let m=!1;const h="AB_TEST_PREFIX_",_="FEATURE_FLAG_TEST_PREFIX",f=["0","1"],y=()=>{const{env:e}=(0,u.L$)((0,c.W)((()=>["env"]),[])),{type:t}=(0,u.L$)(e),{canUseQuery:n=!1}=(0,u.L$)((0,d.U)((()=>["canUseQuery"]),[])),i="ppe"===t||"boe"===t||g();return{isDebugEnv:i||n,isDebugPanelEnable:i}};function b(e){const{search:t}=(0,o.useLocation)(),n=(0,u.L$)((0,i.parse)(t)),{isDebugEnv:a}=y();let r=n[e];return Array.isArray(r)&&(r=r[r.length-1]),{searchObj:n,useDefaultValue:!a,value:r}}function w(e,t,n){e&&!m&&(m=!0,r.F.open({content:`feature flag value you provided for ${t} is not valid, valid value are: ${JSON.stringify(n)}`,duration:5,widthType:"padding"}))}function x(e){var t;const{useDefaultValue:n,value:i}=b(e),o=v(),a=(0,d.U)((()=>["config"]),[]),r=null===(t=null==a?void 0:a.config)||void 0===t?void 0:t.featureFlags,s=null==r?void 0:r[e];return n?s:i?f.includes(i)?(o&&sessionStorage.setItem(`${_}${e}`,i),Boolean(Number(i))):(w(o,e,f),s):o&&sessionStorage.getItem(`${_}${e}`)?Boolean(Number(sessionStorage.getItem(`${_}${e}`))):s}function T(e,t){var n,i;const{useDefaultValue:o,value:r}=b(t),s=v();if(o)return p(e,t);if(r){const o=null!==(i=null===(n=a.JO.find((e=>e.name===t)))||void 0===n?void 0:n.vid)&&void 0!==i?i:[];return o.includes(r)?(s&&sessionStorage.setItem(`${h}${t}`,r),r):(w(s,t,o),p(e,t))}return s&&sessionStorage.getItem(`${h}${t}`)?sessionStorage.getItem(`${h}${t}`):p(e,t)}function S(e){const{query:t}=(0,s.xw)(),{abTestVersion:n,env:i}=(0,l.x)(),o=v(),a="ppe"===(null==i?void 0:i.type)||"boe"===(null==i?void 0:i.type)||g();return o&&sessionStorage.getItem(`${h}${e}`)?sessionStorage.getItem(`${h}${e}`):a&&t[e]?t[e]:p(n,e)}},22248:(e,t,n)=>{"use strict";n.d(t,{G:()=>o,d:()=>i});const i=e=>null,o=(e,t,n)=>{}},60484:(e,t,n)=>{"use strict";n.d(t,{D1:()=>g,L$:()=>o});const i=Object.freeze({});function o(e){return null!=e?e:i}function a(e,t=1){return Math.round(Number(`${e}e${t}`))/Math.pow(10,t)}const r=1e3,s="K",l="k",c=1e3*r,d="M",u=1e3*c,p="B",v=BigInt(4294967296);function g(e=0,t){const{isLowerThousandUnit:n=!1}=null!=t?t:{};let i,o=Number(e);return o<0&&(o=Number(v+BigInt(e))),i=o<1e4?o.toString():o{"use strict";n.d(t,{AP:()=>f,Gu:()=>T,Gz:()=>s,Hd:()=>b,J2:()=>w,Lm:()=>c,UP:()=>r,X:()=>x,Zn:()=>m,_S:()=>_,a6:()=>h,aP:()=>d,dG:()=>S,hY:()=>p,jf:()=>l,mS:()=>u,nr:()=>a,sc:()=>y,wo:()=>k,y5:()=>g});var i=n(57432),o=n.n(i);function a(){return navigator.vendor&&-1!==navigator.vendor.indexOf("Apple")&&navigator.userAgent&&-1===navigator.userAgent.indexOf("CriOS")&&-1===navigator.userAgent.indexOf("FxiOS")}function r(){return!!navigator.userAgent&&(-1!==navigator.userAgent.indexOf("Edge")||-1!==navigator.userAgent.indexOf("Edg/"))}function s(e=o(),t=o()){let n,i;function a(){n&&document[n]?e():t()}return"hidden"in document?(n="hidden",i="visibilitychange"):"msHidden"in document?(n="msHidden",i="msvisibilitychange"):"webkitHidden"in document&&(n="webkitHidden",i="webkitvisibilitychange"),"addEventListener"in document&&n&&i?(document.addEventListener(i,a,!1),document.removeEventListener.bind(document,i,a,!1)):o()}function l(e,t){let n={top:0,bottom:0,left:0,right:0};try{n=e.getBoundingClientRect()}catch(e){}let{top:i,bottom:o}=n;const{height:a}=n;return i-=t,o-=t,i=Math.abs(i),o<=0||i>=a?0:Number((o/a).toFixed(2))}function c(){return window.innerHeight{const a=p(),r=Date.now(),s=null!=o?o:window,l=()=>{const o=Date.now()-r;if(o>=t)return i?s.scrollTo({top:e,behavior:"smooth"}):s.scrollTo(0,e),void(null==n||n());const c=a+o/t*(e-a);i?s.scrollTo({top:c,behavior:"smooth"}):s.scrollTo(0,c),requestAnimationFrame(l)};l()};function p(){const e=document.documentElement||document.body.parentNode||document.body;return void 0!==window.pageYOffset?window.pageYOffset:e.scrollTop}const v="webapp-scroll_invoke_by_click";function g(){return b(v)}function m(){x(v)}function h(e=0,t=100,n=window){const i=p(),o=Date.now(),a=()=>{w(v,"done"),n.removeEventListener("scrollend",a)};w(v,"start"),n.addEventListener("scrollend",a),function a(){const r=Date.now()-o;if(r>=t)return void n.scrollTo({top:e,behavior:"smooth"});const s=(t-r)/t*(e-i)+i;n.scrollTo({top:s,behavior:"smooth"}),requestAnimationFrame(a)}()}function _(e,t=""){var n;try{return null!==(n=localStorage.getItem(e))&&void 0!==n?n:t}catch(e){return t}}function f(e,t){try{localStorage.setItem(e,t)}catch(e){}}function y(e){try{localStorage.removeItem(e)}catch(e){}}function b(e,t=""){var n;try{return null!==(n=sessionStorage.getItem(e))&&void 0!==n?n:t}catch(e){return t}}function w(e,t){try{sessionStorage.setItem(e,t)}catch(e){}}function x(e){try{sessionStorage.removeItem(e)}catch(e){}}const T=e=>{e.preventDefault(),e.stopPropagation()},S=e=>{e.stopPropagation()},k=e=>{e.preventDefault()}},97086:(e,t,n)=>{"use strict";function i(){return"undefined"==typeof window||"undefined"==typeof document}function o(){var e;if(i())return!1;const t=document.querySelector("#app");return"1"===(null===(e=null==t?void 0:t.dataset)||void 0===e?void 0:e.downgrade)}function a(){return/Windows/i.test(window.navigator.userAgent)}function r(e){var t,n;return!i()&&!!e&&"1"!==(null===(n=null===(t=document.querySelector("#app"))||void 0===t?void 0:t.dataset)||void 0===n?void 0:n.downgrade)}n.d(t,{Yh:()=>a,_8:()=>r,fU:()=>i,qk:()=>o})},53764:(e,t,n)=>{"use strict";n.d(t,{M:()=>o,e:()=>i});const i=function(e){if(!e)return{fullscreenEnabled:"fullscreenEnabled",fullscreenElement:"fullscreenElement",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen",fullscreenchange:"fullscreenchange",fullscreenerror:"fullscreenerror"};const t={w3:{fullscreenEnabled:"fullscreenEnabled",fullscreenElement:"fullscreenElement",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen",fullscreenchange:"fullscreenchange",fullscreenerror:"fullscreenerror"},webkit:{fullscreenEnabled:"webkitFullscreenEnabled",fullscreenElement:"webkitCurrentFullScreenElement",requestFullscreen:"webkitRequestFullscreen",exitFullscreen:"webkitExitFullscreen",fullscreenchange:"webkitfullscreenchange",fullscreenerror:"webkitfullscreenerror"},moz:{fullscreenEnabled:"mozFullScreenEnabled",fullscreenElement:"mozFullScreenElement",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen",fullscreenchange:"mozfullscreenchange",fullscreenerror:"mozfullscreenerror"},ms:{fullscreenEnabled:"msFullscreenEnabled",fullscreenElement:"msFullscreenElement",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen",fullscreenchange:"MSFullscreenChange",fullscreenerror:"MSFullscreenError"}};for(const n of Object.values(t))if(n.fullscreenEnabled in e)return n;return{fullscreenEnabled:"fullscreenEnabled",fullscreenElement:"fullscreenElement",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen",fullscreenchange:"fullscreenchange",fullscreenerror:"fullscreenerror"}}("undefined"==typeof document?void 0:document),o=()=>{var e;return"undefined"!=typeof document?null!==(e=document[null==i?void 0:i.fullscreenElement])&&void 0!==e?e:document.body:null}},37745:(e,t,n)=>{"use strict";function i(e,t){return 2===e||6===e||5!==e&&t}function o(e,t){return 2===e||6===e?1:5===e?0:t}n.d(t,{L:()=>o,z:()=>i})},49057:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var i=n(32877),o=n.n(i),a=n(40099),r=n(57431);function s(e,t){const n=(0,r.x)();return(0,a.useMemo)((()=>n?o()(n,...e()):n),t)}},90535:(e,t,n)=>{"use strict";n.d(t,{a:()=>p,h:()=>v});var i=n(58632),o=n(1055),a=n(67192),r=n(9685),s=n(17354),l=n(62564),c=n(51660),d=n(10598),u=n(54888);function p(e){var t,n;return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(null===(n=null===(t=window[o.H2])||void 0===t?void 0:t.BizContext)||void 0===n?void 0:n.initialized)return;const i=(0,c.qm)(),l=a.l.getInstance(u.$),p=yield(0,d.x)(i,e);l.store.dispatch(l.getActions().setBizContext(p)),l.store.dispatch(l.getActions().setInitialized(!0)),yield(0,r._)(l.state$.pipe((0,s.p)((e=>!!e.initialized))))}))}function v(){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const e=a.l.getInstance(u.$);return(0,r._)(e.state$.pipe((0,s.p)((e=>!!e.bizContext)),(0,l.T)((e=>e.bizContext))))}))}},48615:(e,t,n)=>{"use strict";n.d(t,{U:()=>l,y:()=>s});var i=n(13392),o=n(32877),a=n.n(o),r=n(54888);function s(){return(0,i.Ph)(r.$)}function l(e,t){return(0,i.Ph)(r.$,{selector:t=>{const{bizContext:n}=t;return n?a()(n,...e()):n},dependencies:t})}},54888:(e,t,n)=>{"use strict";n.d(t,{$:()=>w,A:()=>x});var i=n(58632),o=n(64162),a=n(4126),r=n(93995),s=n(46657),l=n(63700),c=n(23999),d=n(26324),u=n(24451),p=n(35572),v=n(8536),g=n(74690),m=n(80339),h=n(38203),_=n(4474),f=n(68628);let y=class{getBizContext(e,t){return(0,f.H)(fetch((0,_.stringifyUrl)({url:"/node-webapp/api/biz-context",query:{lang:e,app_name:t}})).then((e=>e.json())))}};y=(0,i.__decorate)([(0,h._)()],y);var b=n(34360);let w=class extends o.E{constructor(e){super(),this.service=e,this.defaultState={bizContext:null,initialized:!1}}setBizContext(e,t){var{statusCode:n}=t,o=(0,i.__rest)(t,["statusCode"]);return 0!==n?e:Object.assign(Object.assign({},e),{bizContext:o})}setInitialized(e,t){return Object.assign(Object.assign({},e),{initialized:t})}init(e){return e.pipe((0,u.E)(this.state$),(0,p.p)((([{lang:e,app_name:t},{initialized:n}])=>n?s.w:this.service.getBizContext(e,t).pipe((0,v.Z)((e=>(0,l.h)((0,c.of)(this.getActions().setBizContext(e))))),(0,g.Z)(this.getActions().setInitialized(!1)),(0,m.q)(this.getActions().setInitialized(!0),this.terminate())))))}};(0,i.__decorate)([(0,a.HI)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",Object)],w.prototype,"setBizContext",null),(0,i.__decorate)([(0,a.HI)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Boolean]),(0,i.__metadata)("design:returntype",Object)],w.prototype,"setInitialized",null),(0,i.__decorate)([(0,a.Mj)({payloadGetter:1}),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[d.c]),(0,i.__metadata)("design:returntype",void 0)],w.prototype,"init",null),w=(0,i.__decorate)([(0,r.n)("BizContext"),(0,i.__metadata)("design:paramtypes",[y])],w);const x=(0,b.y)(w)},59952:(e,t,n)=>{"use strict";n.d(t,{w:()=>_,x:()=>f});var i=n(58632),o=n(64162),a=n(4126),r=n(93995),s=n(35572),l=n(23999),c=n(62564),d=n(26324),u=n(34360),p=n(10646),v=n(38203),g=n(26325),m=n(39228);let h=class{constructor(e){this.fetch=e}postUserSetting(e){return this.fetch.post("/api/user/set/settings/",{query:Object.assign(Object.assign({},e),{tt_csrf_token:this.fetch.csrfToken}),headers:{[g.nk]:this.fetch.csrfToken},baseUrlType:2})}};h=(0,i.__decorate)([(0,v._)(),(0,i.__metadata)("design:paramtypes",[m.pM])],h);let _=class extends o.E{constructor(e){super(),this.service=e,this.defaultState={photoSensitiveVideosSetting:p.v7.getItem("photo_sensitive_video_setting"),hideMaskTempVideoId:"",loginStatePhotoSensitiveVideosSetting:void 0,hasClosedVideoMask:!1}}setSkipPhotoSensitiveAction(e,t){const{skipPhotoSensitiveVideo:n,login:i=!1}=t,o=n?1:2;e.photoSensitiveVideosSetting=o,i&&(e.loginStatePhotoSensitiveVideosSetting=o)}setHideMaskTempVideoId(e,t){e.hideMaskTempVideoId=t}setHasClosedMask(e,t){e.hasClosedVideoMask=t}setPhotoSensitiveVideosSetting(e,t){e.photoSensitiveVideosSetting=t}setLoginStatePhotoSensitiveVideosSetting(e,t){e.loginStatePhotoSensitiveVideosSetting=t}setSkipPhotoSensitive(e){return e.pipe((0,s.p)((({skip:e,hasLogin:t})=>{const n=e?1:2;return p.v7.setItem("photo_sensitive_video_setting",n),t?this.service.postUserSetting({field:"photosensitive_videos_setting",value:n}).pipe((0,c.T)((({status_code:t})=>0===t?this.getActions().setSkipPhotoSensitiveAction({skipPhotoSensitiveVideo:e,login:!0}):this.noop()))):(0,l.of)(this.getActions().setSkipPhotoSensitiveAction({skipPhotoSensitiveVideo:e}))})))}};(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],_.prototype,"setSkipPhotoSensitiveAction",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,String]),(0,i.__metadata)("design:returntype",void 0)],_.prototype,"setHideMaskTempVideoId",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Boolean]),(0,i.__metadata)("design:returntype",void 0)],_.prototype,"setHasClosedMask",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Number]),(0,i.__metadata)("design:returntype",void 0)],_.prototype,"setPhotoSensitiveVideosSetting",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Number]),(0,i.__metadata)("design:returntype",void 0)],_.prototype,"setLoginStatePhotoSensitiveVideosSetting",null),(0,i.__decorate)([(0,a.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[d.c]),(0,i.__metadata)("design:returntype",void 0)],_.prototype,"setSkipPhotoSensitive",null),_=(0,i.__decorate)([(0,r.n)("VideoMaskModule"),(0,i.__metadata)("design:paramtypes",[h])],_);const f=(0,u.y)(_)},78305:(e,t,n)=>{"use strict";n.d(t,{y7:()=>I,wl:()=>P});var i=n(58632),o=n(64162),a=n(4126),r=n(93995),s=n(42051),l=n(35626),c=n.n(l),d=n(23999),u=n(46657),p=n(26324),v=n(24451),g=n(8536),m=n(20259),h=n(74690),_=n(80339),f=n(35572),y=n(25342),b=n(11983),w=n(64356),x=n(37568),T=n(4712),S=n(68878),k=n(21512),A=n(81792);const O={app_id:1988,aid:1988,app_name:"tiktok_web",device_id:0,device_platform:"tiktok_web",device_type:"tiktok_web"};var E;!function(e){e[e.Reason=0]="Reason",e[e.Normal=1]="Normal",e[e.DSASubmit=2]="DSASubmit",e[e.ChooseCountry=3]="ChooseCountry"}(E||(E={}));const P={Desc:1};let I=class extends o.E{constructor(e,t){var n;super(),this.service=e,this.t=t,this.defaultState={reasons:null,showing:!1,loading:!1,requesting:void 0,reportTarget:null,lastStatus:"",PageState:0,PageStateData:void 0,PreState:[],UserData:{selectedReason:void 0,submitresult:void 0,HistoryReason:[]},blockedVideos:[],submitCallback:void 0,choosenDSACountry:void 0,DSACountriesList:(n=this.t,[{code:"AT",desc:n("region_at")},{code:"BE",desc:n("region_be")},{code:"BG",desc:n("region_bg")},{code:"HR",desc:n("region_hr")},{code:"CY",desc:n("region_cy")},{code:"CZ",desc:n("region_cz")},{code:"DK",desc:n("region_dk")},{code:"EE",desc:n("region_ee")},{code:"FI",desc:n("region_fi")},{code:"FR",desc:n("region_fr")},{code:"DE",desc:n("region_de")},{code:"GR",desc:n("region_gr")},{code:"HU",desc:n("region_hu")},{code:"IS",desc:n("region_is")},{code:"IE",desc:n("region_ie")},{code:"IT",desc:n("region_it")},{code:"LV",desc:n("region_lv")},{code:"LI",desc:n("region_li")},{code:"LT",desc:n("region_lt")},{code:"LU",desc:n("region_lu")},{code:"MT",desc:n("region_mt")},{code:"NL",desc:n("region_nl")},{code:"NO",desc:n("region_no")},{code:"PL",desc:n("region_pl")},{code:"PT",desc:n("region_pt")},{code:"RO",desc:n("region_ro")},{code:"SK",desc:n("region_sk")},{code:"SI",desc:n("region_si")},{code:"ES",desc:n("region_es")},{code:"SE",desc:n("region_se")}]),isRereport:!1,rereportQuery:{}}}setIsRereport(e,t){e.isRereport=t}setRereportQuery(e,t){e.rereportQuery=t}setSubmitCallback(e,t){e.submitCallback=t}setChoosenDSACountry(e,t){e.choosenDSACountry=t}setReportTarget(e,t){e.reportTarget=t}setReasons(e,t){e.reasons=t,e.PageStateData={reasons:t}}addBlockVideo(e,t){e.blockedVideos.includes(t)||e.blockedVideos.push(t)}removeBlockVideo(e,t){e.blockedVideos=e.blockedVideos.filter((e=>e!==t))}setLoading(e,t){e.loading=t}getReasons(e){return e.pipe((0,v.E)(this.state$),(0,g.Z)((([{reportTarget:e,uid:t},n])=>{var i;if(c()(e,n.reportTarget)&&n.reasons&&(null===(i=n.reasons)||void 0===i?void 0:i.length)>0)return(0,d.of)(this.getActions().setReasons(n.reasons));const o=Object.assign(Object.assign({},O),{app_language:e.lang||"",sys_language:e.lang||"",language:e.lang||"",user_id:Number(t)});return this.service.getReportReasons(o).pipe((0,m.W)((()=>(0,d.of)({status:"unknown_error"}))),(0,g.Z)((t=>{var n,i,o;if("success"===t.status){const a=(0,T.zW)(null==e?void 0:e.ad_info);x.J.handleAdReasonGet({tag:(null==e?void 0:e.isVideoDetailBannerAds)?"creative":e.play_mode&&y.EM[e.play_mode]||y.xY.OneColumn,category:y.XJ,refer:y.Hq.Button,log_extra:(null===(n=null==e?void 0:e.ad_info)||void 0===n?void 0:n.log_extra)||JSON.stringify({rit:(null==e?void 0:e.isVideoDetailBannerAds)?y.uY:y.OZ,req_id:null==a?void 0:a.req_id}),description:"",value:String(null===(i=null==e?void 0:e.ad_info)||void 0===i?void 0:i.creative_id),is_ad_event:"1"});let r=null!==(o=t.data)&&void 0!==o?o:[];const s=[k.YB.Violence,k.YB.DangerousGoodsOrServices,k.YB.MinorsToPurchase,k.YB.IntellectualPropertyInfringementOld],l=[k.YB.Violence,k.YB.DangerousGoodsOrServices,k.YB.MinorsToPurchase],c={reason_type:"ProhibitedOrInfringing",reason_type_id:"ProhibitedOrInfringing",text:this.t("report_Prohibited_or_infringing"),sub_reason:[]};let u={reason_type:"IPInfringement",reason_type_id:"IPInfringement",text:this.t("Intellectual Property Infringement"),sub_reason:[{reason_type:"IPInfringementRightOwner",reason_type_id:"IPInfringementRightOwner",text:this.t("report_Right_owner")}]};const p={reason_type:"ProhibitedOrViolence",reason_type_id:"ProhibitedOrViolence",text:this.t("report_Prohibited_or_violence"),sub_reason:[]},v={reason_type:"Misleading",reason_type_id:"Misleading",text:"",sub_reason:[]},g={reason_type:"Offensive",reason_type_id:"Offensive",text:"",sub_reason:[]};let m=r.map((e=>Object.assign(Object.assign({},e),{reason_type:e.reason_type||e.reason_type_id})));m.some((e=>e.reason_type_id===k.YB.IntellectualPropertyInfringementNew))?(m=m.filter((e=>l.includes(e.reason_type_id)?((p.sub_reason||[]).push(e),!1):e.reason_type_id!==k.YB.IntellectualPropertyInfringementNew||((u.sub_reason||[]).push(Object.assign(Object.assign({},e),{text:this.t("report_Not_right_owner")})),e.text&&(u.text=e.text),!1))),m.splice(4,0,u,p)):(m=m.filter((e=>!s.includes(e.reason_type_id)||((c.sub_reason||[]).push(e),!1))),m.splice(4,0,c)),m.some((e=>e.reason_type_id===k.YB.AISynthetic))&&(m=m.filter((e=>e.reason_type_id===k.YB.Misleading?(v.sub_reason.push(Object.assign(Object.assign({},e),{text:this.t("ad_report_reason_L1Misinfo_L2misinfo")})),e.reason_type_id===k.YB.Misleading&&(v.text=e.text),!1):e.reason_type_id!==k.YB.AISynthetic||(v.sub_reason.push(e),!1))),m.splice(3,0,v));let h=0;return m.some((e=>e.reason_type_id===k.YB.HateSpeechAndDiscrimination))&&(m=m.filter(((e,t)=>e.reason_type_id===k.YB.OffensiveContent?(h=t,g.sub_reason.push(Object.assign(Object.assign({},e),{text:this.t("ad_report_reason_Offensive_Content")})),g.text=e.text,!1):![k.YB.HateSpeechAndDiscrimination,k.YB.ChildrenRelatedOffensiveContent].includes(e.reason_type_id)||(g.sub_reason.push(e),!1))),m.splice(h,0,g)),(0,d.of)(this.getActions().setReasons(m))}return b.F.open({content:this.t("Sorry, something wrong with the server, please try again."),duration:2,widthType:"half"}),(0,d.of)(this.getActions().setReasons([]))})),(0,h.Z)(this.getActions().setLoading(!0)),(0,_.q)(this.getActions().setLoading(!1)))})))}handleNextReason(e){return e.pipe((0,v.E)(this.state$),(0,g.Z)((([{nextReason:e},{PageStateData:t,PageState:n}])=>(0,d.of)(this.getActions().setPageStateData({reasons:e}),this.getActions().appendToPreState({state:n,data:t})))))}handleNextForm(e){return e.pipe((0,v.E)(this.state$),(0,g.Z)((([e,{PageStateData:t,PageState:n}])=>(0,d.of)(this.getActions().setPageState(e),this.getActions().setPageStateData({}),this.getActions().appendToPreState({state:n,data:t})))))}setShowing(e,t){e.showing=t}showReport(e){return e.pipe((0,g.Z)((({reportTarget:e,uid:t})=>(0,d.of)(this.getActions().setShowing(!0),this.getActions().getReasons({reportTarget:e,uid:t}),this.getActions().setReportTarget(e)))))}showRereport(e){return e.pipe((0,g.Z)((({rereportUrl:e,rereportObj:t})=>{const n=t||(0,A.U)(decodeURIComponent(e||""));return(0,d.of)(this.getActions().setIsRereport(!0),this.getActions().setShowing(!0),this.getActions().setRereportQuery(n),this.getActions().setPageState((0,k.f2)(Number(n.report_type_id))?2:1),this.getActions().setUserData({selectedReason:{reason_type_id:Number(n.report_type_id),text:n.report_type_name,desc:n.reasonDesc,link:n.learnLink}}))})))}hideReport(e){return e.pipe((0,g.Z)((()=>(0,d.of)(this.getActions().setShowing(!1)))))}setRequesting(e,t){e.requesting=t}setLastStatus(e,t){e.lastStatus=t}postReport(e){return e.pipe((0,v.E)(this.state$),(0,f.p)((([{isDsaMode:e,reason:t,text:n,extraData:i,region:o,uid:a,loggedOut:r,closeModal:s},{reportTarget:l,submitCallback:c,isRereport:p,rereportQuery:v}])=>{var f,w;if(!p&&!l)return u.w;const S=p?(e=>{if(e)try{const t=JSON.parse(e);return{req_id:JSON.parse(t.log_extra).req_id}}catch(e){return}})(v.extra||""):(0,T.zW)(null==l?void 0:l.ad_info),k=null==S?void 0:S.req_id,A=p?(e=>{if(e)try{return JSON.parse(e).log_extra}catch(e){return}})(v.extra||""):(null===(f=null==l?void 0:l.ad_info)||void 0===f?void 0:f.log_extra)||JSON.stringify({rit:(null==l?void 0:l.isVideoDetailBannerAds)?y.uY:y.OZ,req_id:k}),E=p?(e=>{if(e)try{return JSON.parse(e).cid}catch(e){return}})(v.extra||""):String(null===(w=null==l?void 0:l.ad_info)||void 0===w?void 0:w.creative_id),P={origin:"tiktok_web",data:JSON.stringify(Object.assign(Object.assign(Object.assign(Object.assign({app_name:"tiktok_web",aid:1988,current_region:o,reason:t},l),{target:null==l?void 0:l.object_id,report_type:"ad"}),{}),{report_from:"creative",user_id:a,user_ip:"",version:"",device_id:"",platform:"web",install_id:"",group_id:"",item_id:"",text:(null==i?void 0:i.description)||"",report_type_id:Number(t),report_type_name:n,extra:JSON.stringify({cid:E,log_extra:A,req_id:k}),content_type:"ad"}))},I=Object.assign(Object.assign({},O),{app_language:(null==l?void 0:l.lang)||"",sys_language:(null==l?void 0:l.lang)||"",language:(null==l?void 0:l.lang)||"",user_id:Number(a)});return this.service.postReport(P,I).pipe((0,m.W)((()=>(0,d.of)({status:"unknown_error"}))),(0,g.Z)((n=>{if(c)return null==c||c(n),(0,d.of)(this.noop());let o;if(o="success"===n.status?{title:this.t("Web_report_thanks_for_report"),content:r?this.t("dsa_illegal_report_received_confirm_logout"):this.t("dsa_illegal_report_received_confirm"),button:this.t("pm_mt_live_done"),success:!0}:{title:this.t("Web_report_report_for_error"),content:this.t("Sorry, something wrong with the server, please try again."),button:this.t("live_close"),success:!1},"success"===n.status){const n=e?{description:(null==i?void 0:i.description)||"",report_scene:(null==i?void 0:i.report_scene)||"",signature:(null==i?void 0:i.signature)||"",email:(null==i?void 0:i.email)||"",relevant_law:(null==i?void 0:i.relevant_law)||"",law_country_code:(null==i?void 0:i.law_country_code)||"",is_trusted_flagger:(null==i?void 0:i.is_trusted_flagger)||!1,reason_id:`${t}`}:{description:(null==i?void 0:i.description)||"",screenshot_uri:(null==i?void 0:i.uri)||"",reason_id:`${t}`};x.J.handleReport({tag:p?null==v?void 0:v.report_from:(null==l?void 0:l.isVideoDetailBannerAds)?"creative":(null==l?void 0:l.play_mode)&&y.EM[l.play_mode]||y.xY.OneColumn,category:y.XJ,refer:y.Hq.Button,ad_extra_data:JSON.stringify(n),log_extra:A,value:E,is_ad_event:"1"})}else b.F.open({content:this.t("Sorry, something wrong with the server, please try again."),duration:2,widthType:"half"});return"video"===(null==l?void 0:l.report_type)&&"success"===n.status&&(null==l?void 0:l.object_id)?(b.F.open({content:this.t("Web_report_thanks_for_report"),duration:2,widthType:"half"}),s(),(0,d.of)(this.getActions().addBlockVideo(null==l?void 0:l.object_id),this.getActions().setLastStatus(n.status),this.getActions().setUserData({submitresult:o}),this.getActions().hideReport())):"success"===n.status?(b.F.open({content:this.t("Web_report_thanks_for_report"),duration:2,widthType:"half"}),s(),(0,d.of)(this.getActions().setLastStatus(n.status),this.getActions().setUserData({submitresult:o}),this.getActions().hideReport())):(0,d.of)(this.getActions().setLastStatus(n.status),this.getActions().setUserData({submitresult:o}))})),(0,h.Z)(this.getActions().setRequesting(!0)),(0,_.q)(this.getActions().setRequesting(!1)))})))}setPageState(e,t){e.PageState=t}appendToPreState(e,t){e.PreState.push(t)}removeFromPreState(e){e.PreState.pop()}resetPreState(e){e.PreState=[]}setUserData(e,t){e.UserData=Object.assign(Object.assign({},e.UserData),t)}setPageStateData(e,t){e.PageStateData=t}resetState(e){return e.pipe((0,g.Z)((e=>(0,d.of)(this.getActions().resetPreState(),this.getActions().setUserData({selectedReason:void 0,HistoryReason:[]}),this.getActions().setPageState(0),this.getActions().setPageStateData(null),this.getActions().setSubmitCallback(void 0)))))}handlePrevStep(e){return e.pipe((0,v.E)(this.state$),(0,g.Z)((([e,{PreState:t}])=>{if(0===t.length)return u.w;const{state:n,data:i}=t[t.length-1];return(0,d.of)(this.getActions().setPageState(n),this.getActions().setPageStateData(i),this.getActions().removeFromPreState())})))}};(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Boolean]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"setIsRereport",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"setRereportQuery",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"setSubmitCallback",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"setChoosenDSACountry",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"setReportTarget",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Array]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"setReasons",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,String]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"addBlockVideo",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,String]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"removeBlockVideo",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Boolean]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"setLoading",null),(0,i.__decorate)([(0,a.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[p.c]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"getReasons",null),(0,i.__decorate)([(0,a.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[p.c]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"handleNextReason",null),(0,i.__decorate)([(0,a.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[p.c]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"handleNextForm",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Boolean]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"setShowing",null),(0,i.__decorate)([(0,a.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[p.c]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"showReport",null),(0,i.__decorate)([(0,a.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[p.c]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"showRereport",null),(0,i.__decorate)([(0,a.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[p.c]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"hideReport",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Boolean]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"setRequesting",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,String]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"setLastStatus",null),(0,i.__decorate)([(0,a.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[p.c]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"postReport",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Number]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"setPageState",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"appendToPreState",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"removeFromPreState",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"resetPreState",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"setUserData",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"setPageStateData",null),(0,i.__decorate)([(0,a.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[p.c]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"resetState",null),(0,i.__decorate)([(0,a.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[p.c]),(0,i.__metadata)("design:returntype",void 0)],I.prototype,"handlePrevStep",null),I=(0,i.__decorate)([(0,r.n)("AdReport"),(0,i.__param)(1,(0,s.y)(w.hp)),(0,i.__metadata)("design:paramtypes",[S.D,Function])],I)},68878:(e,t,n)=>{"use strict";n.d(t,{D:()=>l});var i=n(58632),o=n(38203),a=n(4474),r=n(26325),s=n(39228);let l=class{constructor(e){this.fetch=e}getReportReasons(e){return this.fetch.get("/api/ad/v1/report/",{query:Object.assign({origin:"tiktok_web",report_ad_type:4},e),baseUrlType:2,headers:{[r.nk]:this.fetch.csrfToken}})}postReport(e,t){return this.fetch.post("/api/ad/v1/report/feedback/",{body:(0,a.stringify)(Object.assign({},e)),query:t,baseUrlType:2,headers:{[r.nk]:this.fetch.csrfToken}})}uploadImage(e){const t=new FormData;return t.append("file",e),t.append("source","0"),this.fetch.post("/api/upload/image/",{body:t,baseUrlType:2,headers:{[r.nk]:this.fetch.csrfToken},omitContentType:!0})}getTustedFlaggerState(){return this.fetch.get("/trusted_flagger/check/v1",{})}unbindTrustedFlagger(){return this.fetch.delete("/trusted_flagger/unbind/v1",{})}};l=(0,i.__decorate)([(0,o._)(),(0,i.__metadata)("design:paramtypes",[s.pM])],l)},21512:(e,t,n)=>{"use strict";var i,o;n.d(t,{OD:()=>r,YB:()=>i,ek:()=>o,f2:()=>a}),function(e){e[e.Spam=6]="Spam",e[e.OffensiveContent=4]="OffensiveContent",e[e.SexuallyInappropriate=7]="SexuallyInappropriate",e[e.Violence=3]="Violence",e[e.IntellectualPropertyInfringementOld=8]="IntellectualPropertyInfringementOld",e[e.Misleading=9]="Misleading",e[e.FraudOrScam=10]="FraudOrScam",e[e.DangerousGoodsOrServices=11]="DangerousGoodsOrServices",e[e.Others=14]="Others",e[e.MinorsToPurchase=15]="MinorsToPurchase",e[e.ChildSexualExploitation=17]="ChildSexualExploitation",e[e.ReportIllegalContent=16]="ReportIllegalContent",e[e.ContentIsChildSexualAbuseMaterial=18]="ContentIsChildSexualAbuseMaterial",e[e.OfferingToSupplyChildSexAbuseMaterial=19]="OfferingToSupplyChildSexAbuseMaterial",e[e.ContentRelatesToGroomingOrSexualSolicitationOfAChild=20]="ContentRelatesToGroomingOrSexualSolicitationOfAChild",e[e.TerroristOffences=21]="TerroristOffences",e[e.ProvocationToCommitTerroristOffence=22]="ProvocationToCommitTerroristOffence",e[e.ContentRelatingToSupportFoTerrorism=23]="ContentRelatingToSupportFoTerrorism",e[e.InstructionsOnHowToMakeExplosives=24]="InstructionsOnHowToMakeExplosives",e[e.IllegalHateSpeech=25]="IllegalHateSpeech",e[e.ContentRelatingToViolent=26]="ContentRelatingToViolent",e[e.DepictionsOfGraphicViolence=27]="DepictionsOfGraphicViolence",e[e.ParticipationInOrganisedCriminalOrganization=28]="ParticipationInOrganisedCriminalOrganization",e[e.IllegalRrivacyRelatedViolations=29]="IllegalRrivacyRelatedViolations",e[e.ImageBasedPrivacyViolations=30]="ImageBasedPrivacyViolations",e[e.IllegalImpersonation=31]="IllegalImpersonation",e[e.OtherIllegalPrivacyViolations=32]="OtherIllegalPrivacyViolations",e[e.NonConsensualSharingOfPrivateImages=33]="NonConsensualSharingOfPrivateImages",e[e.IllegalGoods=34]="IllegalGoods",e[e.ContentRelatedToHumanTrafficking=35]="ContentRelatedToHumanTrafficking",e[e.PromotionOfProstitution=36]="PromotionOfProstitution",e[e.ProductionIllegalDrugs=37]="ProductionIllegalDrugs",e[e.ContentThatPromotesThePoaching=38]="ContentThatPromotesThePoaching",e[e.IllicitArmsTrafficking=39]="IllicitArmsTrafficking",e[e.HarrassmentOrThreats=40]="HarrassmentOrThreats",e[e.Defamation=41]="Defamation",e[e.ConsumerRelatedOffences=42]="ConsumerRelatedOffences",e[e.BreachOfConsumerLaw=43]="BreachOfConsumerLaw",e[e.UnsafeProducts=44]="UnsafeProducts",e[e.InformationRelatedOffences=45]="InformationRelatedOffences",e[e.CriminalMisinformation=46]="CriminalMisinformation",e[e.ContemptOfCourt=47]="ContemptOfCourt",e[e.InstructionsInRelationToSuicide=48]="InstructionsInRelationToSuicide",e[e.FinancialCrime=49]="FinancialCrime",e[e.Fraud=50]="Fraud",e[e.MoneyLaundering=51]="MoneyLaundering",e[e.Extortion=52]="Extortion",e[e.NationalSecurityRelatedOffences=53]="NationalSecurityRelatedOffences",e[e.NationalSecurityRelatedCrimes=54]="NationalSecurityRelatedCrimes",e[e.OtherIllegalContent=55]="OtherIllegalContent",e[e.PoliticalContent=56]="PoliticalContent",e[e.IntellectualPropertyInfringementNew=57]="IntellectualPropertyInfringementNew",e[e.AISynthetic=58]="AISynthetic",e[e.HateSpeechAndDiscrimination=59]="HateSpeechAndDiscrimination",e[e.ChildrenRelatedOffensiveContent=60]="ChildrenRelatedOffensiveContent"}(i||(i={})),function(e){e[e.Spam=6]="Spam",e[e.FraudOrScam=10]="FraudOrScam",e[e.Misleading=9]="Misleading",e[e.SexuallyInappropriate=7]="SexuallyInappropriate",e.ProhibitedOrInfringing="ProhibitedOrInfringing",e.IPInfringement="IPInfringement",e.IPInfringementRightOwner="IPInfringementRightOwner",e.ProhibitedOrViolence="ProhibitedOrViolence",e[e.Offensive=4]="Offensive",e[e.ReportIllegalContent=16]="ReportIllegalContent",e[e.Others=14]="Others"}(o||(o={}));const a=e=>e>=i.ChildSexualExploitation&&e<=i.OtherIllegalContent,r=encodeURIComponent("https://www.tiktok.com/falcon/ad_report/page/submit_ad/index.html")},13947:(e,t,n)=>{"use strict";n.d(t,{L:()=>x});var i=n(58632),o=n(64162),a=n(4126),r=n(93995),s=n(42051),l=n(23999),c=n(26324),d=n(35572),u=n(8536),p=n(74690),v=n(80339),g=n(55322),m=n(64356),h=n(81792),_=n(38203),f=n(39228);let y=class{constructor(e){this.fetch=e}getReportDetail(e){return this.fetch.get("/bi/notification/reporter/record",{query:e,baseUrlType:2})}};y=(0,i.__decorate)([(0,_._)(),(0,i.__metadata)("design:paramtypes",[f.pM])],y);var b=n(11983),w=n(45297);let x=class extends o.E{constructor(e,t){super(),this.service=e,this.t=t,this.defaultState={visible:!1,violationAppealInfo:{},reportDetail:{isLoading:!1,data:null}}}setVisible(e,t){e.visible=t}setAppealInfoAndShow(e,t){const{url:n}=t,i=(0,h.U)(decodeURIComponent(n));e.reportDetail.data=null,e.violationAppealInfo=i,e.visible=!0}setReportDetailLoading(e,t){e.reportDetail.isLoading=t}setReportDetail(e,t){e.reportDetail.data=t}getLogoutReportDetail(e){return e.pipe((0,d.p)((({reportId:e})=>this.service.getReportDetail({report_id:e}).pipe((0,u.Z)((e=>(null==e?void 0:e.link_status)?(0,l.of)(this.getActions().setReportDetail(e),this.getActions().setVisible(!0)):(0,l.of)(this.noop()))),(0,p.Z)(this.getActions().setReportDetailLoading(!0)),(0,v.q)(this.getActions().setReportDetailLoading(!1)),(0,g.n)({callback:this.commonToastError})))))}commonToastError(){b.F.destroy(),b.F.open({content:this.t(w.z$),duration:3,widthType:"half"})}};(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Boolean]),(0,i.__metadata)("design:returntype",void 0)],x.prototype,"setVisible",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],x.prototype,"setAppealInfoAndShow",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Boolean]),(0,i.__metadata)("design:returntype",void 0)],x.prototype,"setReportDetailLoading",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],x.prototype,"setReportDetail",null),(0,i.__decorate)([(0,a.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[c.c]),(0,i.__metadata)("design:returntype",void 0)],x.prototype,"getLogoutReportDetail",null),x=(0,i.__decorate)([(0,r.n)("AdViolationAppealModal"),(0,i.__param)(1,(0,s.y)(m.hp)),(0,i.__metadata)("design:paramtypes",[y,Function])],x)},33843:(e,t,n)=>{"use strict";n.d(t,{C8:()=>b,D_:()=>l,Fh:()=>d,JN:()=>s,JS:()=>a,KW:()=>g,Ko:()=>c,Lo:()=>v,Rh:()=>p,TU:()=>m,XP:()=>w,_k:()=>y,an:()=>u,bq:()=>r,jl:()=>_,rW:()=>h});var i=n(62186),o=n(72153);const a=(0,i.default)("form",{target:"e1o0lt9f0"})((({theme:e})=>[(0,o.zy)({theme:e,typography:"H6"}),{zIndex:2,background:e.colors.BGPrimary,borderRadius:"8px",overflow:"hidden",width:"700px",margin:0}]),"label:FormReport;"),r=(0,i.default)("div",{target:"e1o0lt9f1"})((({theme:e})=>({width:"400px",zIndex:2,background:e.colors.BGPrimary,borderRadius:"8px",overflow:"hidden",margin:0})),"label:DivFormBox;"),s=(0,i.default)("div",{target:"e1o0lt9f2"})({display:"flex",alignItems:"center",padding:"24px 24px 16px",height:"72px"},"label:DivFormHeader;"),l=(0,i.default)("div",{target:"e1o0lt9f3"})({cursor:"pointer",padding:"6px",height:"32px"},"label:DivBackButton;"),c=(0,i.default)("div",{target:"e1o0lt9f4"})({cursor:"pointer",padding:"9px",height:"32px"},"label:DivCloseButton;"),d=(0,i.default)("h4",{target:"e1o0lt9f5"})((({theme:e})=>({fontSize:"20px",lineHeight:"32px",color:e.colors.TextPrimary,fontFamily:e.fontFamilies.TikTokFont,fontWeight:e.fontWeights.bold,textAlign:"rtl"===e.direction?"right":"left",flex:1})),"label:H4FormTitle;");d.defaultProps=Object.assign(Object.assign({},d.defaultProps),{"data-e2e":"report-card-title"});const u=(0,i.default)("div",{target:"e1o0lt9f6"})((({theme:e})=>({borderTop:`1px solid ${e.colors.LineSecondary}`,height:"432px",overflowY:"auto",overflowX:"hidden",padding:"16px 16px 0px"})),"label:DivRadioWrapper;"),p=(0,i.default)("div",{target:"e1o0lt9f7"})((({theme:e})=>({paddingBottom:"8px",paddingLeft:"8px",color:e.colors.TextSecondary,height:"22px",lineHeight:"22px"})),"label:DivSelectText;"),v=(0,i.default)("div",{target:"e1o0lt9f8"})((({theme:e})=>({color:e.colors.TextPrimary,lineHeight:"22px",fontSize:"16px",userSelect:"none"})),"label:DivReasonText;"),g=(0,i.default)("label",{target:"e1o0lt9f9"})((({theme:e})=>({boxSizing:"border-box",minHeight:"54px",display:"flex",flex:"1 1 100%",flexDirection:"row",alignItems:"center",cursor:"pointer",position:"relative",wordBreak:"break-all",justifyContent:"space-between",padding:"8px",borderRadius:"8px",":hover":{background:e.colors.BGPlaceholderOpaque}})),"label:LabelRadio;");g.defaultProps=Object.assign(Object.assign({},g.defaultProps),{"data-e2e":"report-card-reason"});const m=(0,i.default)("div",{target:"e1o0lt9f10"})({position:"absolute",left:"50%",top:"50%",transform:"translate(-50% , -50%)"},"label:DivMMid;"),h=(0,i.default)("div",{target:"e1o0lt9f14"})((({theme:e})=>({position:"absolute",bottom:"0",left:"0",height:"84px",width:"100%",borderTop:`0.5px solid ${e.colors.LinePrimary2}`,backgroundColor:e.colors.BGPrimary})),"label:DivFooter;"),_=(0,i.default)("button",{target:"e1o0lt9f15"})((({theme:e})=>({height:"36px",width:"120px",textAlign:"center",padding:"7px 16px",lineHeight:"22px",fontSize:"16px",position:"absolute",cursor:"pointer",top:"24px",right:"24px",color:e.colors.ConstTextInverse,background:e.colors.Primary,border:"none",borderRadius:"4px",":disabled":{background:e.colors.BGPlaceholderDefault,color:e.colors.TextQuaternary}})),"label:ButtonSubmit;"),f=(0,i.default)("div",{target:"e1o0lt9f20"})((({theme:{direction:e,colors:t}})=>[Object.assign(Object.assign({minWidth:"16px",width:"16px",height:"16px"},"rtl"===e&&{transform:"rotate(180deg)"}),{"> svg > path":{fill:t.TextPrimary}})]),"label:DivArrowContainer;"),y=(0,i.default)("div",{target:"e1o0lt9f21"})({DivArrowContainer:f,marginInlineStart:"auto",height:"16px"},"label:DivReportOptionsArrowContainer;"),b=(0,i.default)("div",{target:"e1o0lt9f22"})({display:"flex",flexDirection:"column",alignItems:"stretch",padding:"0px"},"label:DivScrollContainer;"),w=(0,i.default)("div",{target:"e1o0lt9f23"})((({theme:e})=>({display:"flex",flexDirection:"row",boxSizing:"border-box",fontSize:"16px",padding:"16px 24px",lineHeight:"22px",color:e.colors.TextSecondary,backgroundColor:e.colors.BGView,marginBottom:"8px"})),"label:DivSectionLine;")},37568:(e,t,n)=>{"use strict";n.d(t,{J:()=>a});var i,o=n(93608);!function(e){e.AdReasonGet="ads_report_subcategory_list_show",e.AdReasonSelect="ads_report_subcategory_list_click",e.AdEditPageView="ads_report_subcategory_detail_show",e.Report="report"}(i||(i={}));const a={handleAdReasonGet:e=>{o.f.event("ads_report_subcategory_list_show",e)},handleAdReasonSelect:e=>{o.f.event("ads_report_subcategory_list_click",e)},handleAdEditPageView:e=>{o.f.event("ads_report_subcategory_detail_show",e)},handleReport:e=>{o.f.event("report",e)}}},81792:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});var i=n(30932),o=n.n(i);const a=e=>{const t=(e||location.href).split("?")[1]||"";if(t){const e=t.split("&"),n={};for(let t=0;t=2){const e=i.shift();e&&(n[e]=decodeURIComponent(i.join("=")))}}return n}return{}};function r(e){return function(e){const t={};for(const n in e)t[n]=o()(e[n]);return t}(a(new URL(e).search))}},141:(e,t,n)=>{"use strict";n.d(t,{qk:()=>s});var i=n(81396),o=n.n(i),a=n(82715),r=n(91857);const s=[a.OZ.home,a.OZ.foryou,"/en","/ar","/de-DE","/es","/fi-FI","/fr","/id-ID","/ja-JP","/ko-KR","/ms-MY","/ru-RU","/th-TH","/tr-TR","/vi-VN","/zh-Hans","/zh-Hant-TW","/he-IL","/jv-ID","/ceb-PH","/cs-CZ","/it-IT","/hu-HU","/nl-NL","/pl-PL","/pt-BR","/ro-RO","/sv-SE","/fil-PH","/el-GR","/uk-UA","/ur","/hi-IN","/bn-IN","/my-MM","/km-KH"],l=(r.Ob.home,r.Ob.foryou,r.Ob.foryouWithLang,r.Ob.discover,r.Ob.topics,a.OZ.expansion,a.OZ.challenge,[r.Ob.report,r.Ob.reportInbox]);var c;o()(Object.values(r.Ob)).filter((e=>!l.includes(e))),function(e){e.Video="video",e.User="user",e.Challenge="hashtag",e.Trending="fyp",e.Live="live",e.Message="message",e.Setting="setting",e.Music="music",e.SearchResults="search",e.Discover="discover",e.Following="following",e.Topics="topics",e.Profile="profile",e.Expansion="expansion",e.Inbox="inbox",e.Report="report",e.Feedback="feedback",e.ChooseTime="custom-choose-time"}(c||(c={}))},72688:(e,t,n)=>{"use strict";n.d(t,{$2s:()=>g,ATn:()=>r,G2o:()=>o,WDv:()=>d,fJR:()=>l,l3z:()=>u,pHc:()=>a,wsj:()=>m,zpT:()=>h});var i=n(94810);const{getPureLivePath:o,getPureMusicPath:a,getPureTagPath:r,getPureStickerPath:s,getPureUserPath:l,getPureVideoPath:c,getPureQuestionPath:d}=i.h,{getPureUniqueId:u,hasIllegalText:p,isPureNumber:v,isRealUniqueId:g,purifyMusicName:m,purifyPlainText:h}=i.A},55322:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});var i=n(46657),o=n(2668),a=n(20259);const r=({msg:e,shouldShowMsg:t=!1,prevent:n=!0,callback:r})=>s=>s.pipe((0,a.W)((a=>(t&&console.error("Effect error: ",null!=e?e:a),null==r||r(),n?i.w:(0,o.$)((()=>a))))))},49473:(e,t,n)=>{"use strict";n.d(t,{$l:()=>r,AF:()=>s,GH:()=>v,gc:()=>p});var i=n(97086),o=n(58305);const a='video/mp4;codecs="hev1.1.6.L93.B0"';function r(e){return[3,4,31].includes(e)}function s(){return!(0,i.fU)()&&("undefined"!=typeof MediaSource&&!(!MediaSource.isTypeSupported(a)||"probably"!==document.createElement("video").canPlayType(a)))}const l="hevc_support_key_v4",c="hevc_support_key_time",d=12096e5;let u;function p(){if((0,i.fU)())return!1;if(void 0!==u)return u;const e=(0,o._S)(l,""),t=Number((0,o._S)(c,"0"));return Date.now()-t>d||""===e?(u=s(),(0,o.AP)(l,u?"1":"0"),(0,o.AP)(c,String(Date.now())),u&&navigator.mediaCapabilities.decodingInfo({type:"file",video:{contentType:a,width:1920,height:1080,bitrate:1e4,framerate:30}}).then((({supported:e})=>{u=e,(0,o.AP)(l,e?"1":"0")})).catch((e=>console.error(e))),u):"1"===e}function v(){(0,o.AP)(l,"0"),(0,o.AP)(c,String(Date.now())),u=!1}},30247:(e,t,n)=>{"use strict";n.d(t,{ey:()=>u,Zh:()=>s,iU:()=>l,BS:()=>p,b_:()=>d});var i=n(40099),o=n(30023),a=n(91286),r=n(58305);const s=e=>!!e&&/^https?:\/\/.*\.mp4$/.test(e),l=e=>1===e,c=e=>11===e?"homepage_follow":"homepage_hot";function d({item:e,author:t,pageType:n}){const r=(0,i.useMemo)((()=>(0,a.Jl)(e)?"live_head":"video_head"),[e]),d=(0,i.useMemo)((()=>{var t,i;return{enter_from_merge:c(n),enter_method:r,video_id:null==e?void 0:e.id,request_id:null==e?void 0:e.logId,is_highlight:s(null===(t=null==e?void 0:e.liveRoomInfo)||void 0===t?void 0:t.streamData)?"1":"0",is_landscape:l(null===(i=null==e?void 0:e.liveRoomInfo)||void 0===i?void 0:i.landscape)?"1":"0"}}),[n,e,r]);return{avatarShowParams:(0,i.useMemo)((()=>{var n,i,a,r,s,l;return Object.assign(Object.assign({},d),{room_id:null!==(n=null==t?void 0:t.roomId)&&void 0!==n?n:null===(i=null==e?void 0:e.liveRoomInfo)||void 0===i?void 0:i.roomID,anchor_id:null!==(a=null==t?void 0:t.id)&&void 0!==a?a:null===(s=null===(r=null==e?void 0:e.liveRoomInfo)||void 0===r?void 0:r.ownerInfo)||void 0===s?void 0:s.id,live_type:o.t9[Number(null===(l=null==e?void 0:e.liveRoomInfo)||void 0===l?void 0:l.mode)],play_mode:"one_column"})}),[e,t,d]),avatarLinkQuery:(0,i.useMemo)((()=>Object.assign(Object.assign({},d),{from_play_mode:"one_column"})),[d]),followClickQuery:(0,i.useMemo)((()=>{var i,a,r,s,l,u,p,v,g;return Object.assign(Object.assign({},d),{enter_from_merge:c(n),enter_method:"live_cell",live_type:o.t9[Number(null===(i=null==e?void 0:e.liveRoomInfo)||void 0===i?void 0:i.mode)],room_id:null!==(a=null==t?void 0:t.roomId)&&void 0!==a?a:null===(r=null==e?void 0:e.liveRoomInfo)||void 0===r?void 0:r.roomID,anchor_id:null!==(s=null==t?void 0:t.id)&&void 0!==s?s:null===(u=null===(l=null==e?void 0:e.liveRoomInfo)||void 0===l?void 0:l.ownerInfo)||void 0===u?void 0:u.id,to_user_id:null!==(p=null==t?void 0:t.id)&&void 0!==p?p:null===(g=null===(v=null==e?void 0:e.liveRoomInfo)||void 0===v?void 0:v.ownerInfo)||void 0===g?void 0:g.id,play_mode:"one_column"})}),[d,t,n,e])}}const u=()=>(0,r._S)("ENTER_ROOM_TIME_STAMP_STORAGE_KEY",""),p=e=>[3,-2].includes(e)},60144:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var i=n(40099),o=n(49057),a=n(71281),r=n(49473),s=n(97086);const l={v0:8,v1:4,v2:2};function c(){const e=(0,o.W)((()=>["abTestVersion"]),[]),t=(0,i.useMemo)((()=>{if((0,s.fU)())return!1;const e=l.v1;return navigator.hardwareConcurrency>=e}),[]),n=(0,i.useMemo)((()=>(0,r.gc)()),[]),c=(0,i.useMemo)((()=>{var i;if((0,s.fU)())return"web_h264";const o=null!==(i=(0,a.V7)(null==e?void 0:e.abTestVersion,"live_player_codetype"))&&void 0!==i?i:"v0";return t&&"v1"===o&&n?"web_h265":"web_h264"}),[null==e?void 0:e.abTestVersion,n,t]);return{openH265:"web_h265"===c,streamDeviceType:c,hevcSupport:n}}},66401:(e,t,n)=>{"use strict";n.d(t,{Rx:()=>a,pn:()=>i});const i=(e,t)=>null!=e&&Boolean(Number(e))&&null!=t?0!==t?2:5===e?3:1:0,o=new Set([1,2,3]),a=e=>null!=e&&o.has(e)},15942:(e,t,n)=>{"use strict";n.d(t,{H:()=>o});var i=n(40099);function o(){const[e,t]=(0,i.useState)(0),n=(0,i.useCallback)((()=>{t(0)}),[]);return{popupHeight:e,handlePopupShow:(0,i.useCallback)((e=>{t(e)}),[]),handlePopupHide:n}}},47774:(e,t,n)=>{"use strict";n.d(t,{H:()=>ot});var i,o,a,r,s,l,c,d,u,p,v=n(24643),g=n(40099),m=n(237),h=n(49057),_=n(48615),f=n(88920),y=n(70364),b=n.n(y);(o=i||(i={})).POP="pop",o.PC_BANNER="pc_banner",o.MOBILE_BANNER="mobile_banner",o.WEBVIEW="webview",(r=a||(a={})).V1="v1",r.V2="v2",r.CUSTOMIZED="customized",(l=s||(s={})).TEXT="text",l.LINK="link",l.BUTTON="button",(d=c||(c={})).EXTERNAL="external",d.INTERNAL="internal",d.SUB_POPUP="sub_popup",(p=u||(u={})).INFO="info",p.WARN="warn",p.ERROR="error";const w="/tiktok/popup/dispatch/v1",x="/api/policy/notice/",T=w,S="/tiktok/popup/callback/v1",k=S;var A,O;(O=A||(A={})).initError="initError",O.beforeFetchData="beforeFetchData",O.afterFetchData="afterFetchData",O.fetchDataError="fetchDataError",O.popupDataReady="popupDataReady",O.processDataError="processDataError",O.beforeSendCallback="beforeSendCallback",O.afterSendCallback="afterSendCallback",O.sendCallbackError="sendCallbackError",O.beforeNavigateToNextPopup="beforeNavigateToNextPopup",O.afterNavigateToNextPopup="afterNavigateToNextPopup",O.allPopupsCompleted="allPopupsCompleted",O.beforeDestruct="beforeDestruct";var E,P=class{init(e){this.debug=e.debug,this.meta=e.meta}send(e){}info(e,t){}warn(e,t){}error(e,t){}getMeta(...e){return{}}destruct(){}constructor(){this.debug=!1,this.meta={}}};!function(e){e.INFO="info",e.WARN="warn",e.ERROR="error"}(E||(E={}));class I extends P{init(e){this.meta=e.meta,this.debug=e.debug,e.customLoggingModule&&e.customLoggingModule instanceof P?this._customLogger=e.customLoggingModule:this.warn("[LoggingModule]: init - incorrect implementation of LoggingModule")}sendDebugMessage(e){if(this.debug){const{level:t}=e;console[t](e.message,e);try{chrome.runtime.sendMessage(e)}catch(e){}}}send(e){this.sendDebugMessage(e)}getMeta(){return this.meta}info(e,t){var n;"function"==typeof(null===(n=this._customLogger)||void 0===n?void 0:n.info)&&this._customLogger.info(e,t),this.send({message:e,level:E.INFO,meta:this.meta,data:t})}warn(e,t){var n;"function"==typeof(null===(n=this._customLogger)||void 0===n?void 0:n.warn)&&this._customLogger.warn(e,t),this.send({message:e,level:E.WARN,meta:this.meta,data:t})}error(e,t){var n;"function"==typeof(null===(n=this._customLogger)||void 0===n?void 0:n.error)&&this._customLogger.error(e,t),this.send({message:e,level:E.ERROR,meta:this.meta,data:t})}destruct(){var e;"function"==typeof(null===(e=this._customLogger)||void 0===e?void 0:e.destruct)&&this._customLogger.destruct()}constructor(){return super(),this.debug=!1,I._instance||(I._instance=this),I._instance}}var C=new I,j=n(71510),L=n.n(j),M=n(35655),N=n.n(M);function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e){for(var t=1;t{C.info("[ServiceModule]: init"),this._domain=e.domain||"https://www.tiktok.com",this._commonParams=e.commonParams||{}},this.sendRequest=(e,t,n,i)=>{const o=B.test(e)?e:`${this._domain}${e}`,a=new URL(o),r=Array.from(a.searchParams.entries()).reduce(((e,t)=>{const[n,i]=t;return void 0===i&&""===i||(e[n]=i),e}),{}),s=null!=i?i:{},{params:l,timeout:c}=s,d=function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(s,["params","timeout"]);let u=R({},this._commonParams,r,null!=l?l:{});"GET"===t&&n&&"object"==typeof n&&(u=R({},u,n));const p=new URLSearchParams((e=>{if(!e)return"";const t=new URLSearchParams;return Object.entries(e).forEach((([e,n])=>{Array.isArray(n)?n.forEach((n=>{t.append(e,n)})):null!=n&&t.append(e,n)})),t.toString()})(u)),v=new URL(`${a.origin}${a.pathname}?${p.toString()}`),g=L()({},d,{method:t,timeout:null!=c?c:0,data:n});return C.info("[ServiceModule]: sendRequest start",g),N()(v.href,g).then((e=>(C.info("[ServiceModule]: sendRequest finish",e),e))).catch((e=>{throw C.error("[ServiceModule]: sendRequest error",e),e}))},this.destruct=()=>{C.info("[ServiceModule]: destruct")},U._instance||(U._instance=this),U._instance}}var F,V,z,H,q,W,$,G,Y,Z,K,X,Q=new U;function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ee(e){for(var t=1;t{var p;const v=r.exec(d);if(!v)return;const g=ee({type:(null==n?void 0:n.link)?s.LINK:s.BUTTON,text:t},(null==n?void 0:n.link)&&{link:re({link:n.link,lang:e}),linkType:n.link_type===q.LINK_TYPE_ENUM_EXTERNAL?c.EXTERNAL:c.INTERNAL},(null==n||null===(p=n.actions)||void 0===p?void 0:p.includes(Y.ACTION_TYPE_ENUM_CALLBACK))&&{callback:a(i,o,n,!1)});l.push({type:s.TEXT,text:d.slice(u,v.index)}),l.push(g),u=Number(v.index)+v[0].length})),l.push({type:s.TEXT,text:d.slice(u)}),l}function ie({rawButtons:e,popupMeta:t,style:n,callback:i}){if(!e)return;const o=[];return e.forEach((({text:e,is_bold:a,is_highlight:r,action:s})=>{const l={text:e,isBold:Boolean(a),isHighlight:Boolean(r),callback:i(t,n,s,!0)};o.push(l)})),o}function oe(e){switch(e){case z.POPUP_STYLE_ENUM_PC_BANNER:return i.PC_BANNER;case z.POPUP_STYLE_ENUM_MOBILE_BANNER:return i.MOBILE_BANNER;case z.POPUP_STYLE_ENUM_WEBVIEW:return i.WEBVIEW;case z.POPUP_STYLE_ENUM_POP:default:return i.POP}}(V=F||(F={})).CALLBACK="callback",V.H5="h5",(H=z||(z={}))[H.POPUP_STYLE_ENUM_BOTTOM=0]="POPUP_STYLE_ENUM_BOTTOM",H[H.POPUP_STYLE_ENUM_POP=1]="POPUP_STYLE_ENUM_POP",H[H.POPUP_STYLE_ENUM_FULLSCREEN=2]="POPUP_STYLE_ENUM_FULLSCREEN",H[H.POPUP_STYLE_ENUM_WEBVIEW=3]="POPUP_STYLE_ENUM_WEBVIEW",H[H.POPUP_STYLE_ENUM_PC_BANNER=4]="POPUP_STYLE_ENUM_PC_BANNER",H[H.POPUP_STYLE_ENUM_MOBILE_BANNER=5]="POPUP_STYLE_ENUM_MOBILE_BANNER",(W=q||(q={}))[W.LINK_TYPE_ENUM_INTERNAL=0]="LINK_TYPE_ENUM_INTERNAL",W[W.LINK_TYPE_ENUM_EXTERNAL=1]="LINK_TYPE_ENUM_EXTERNAL",W[W.LINK_TYPE_ENUM_SUB_POPUP=2]="LINK_TYPE_ENUM_SUB_POPUP",W[W.LINK_TYPE_UPGRADE=3]="LINK_TYPE_UPGRADE",(G=$||($={}))[G.POPUP_OPERATION_ENUM_LEGACY_0=0]="POPUP_OPERATION_ENUM_LEGACY_0",G[G.POPUP_OPERATION_ENUM_LEGACY_1=1]="POPUP_OPERATION_ENUM_LEGACY_1",G[G.POPUP_OPERATION_ENUM_LEGACY_2=2]="POPUP_OPERATION_ENUM_LEGACY_2",G[G.POPUP_OPERATION_ENUM_LEGACY_3=3]="POPUP_OPERATION_ENUM_LEGACY_3",G[G.POPUP_OPERATION_ENUM_LEGACY_4_AGREE=4]="POPUP_OPERATION_ENUM_LEGACY_4_AGREE",G[G.POPUP_OPERATION_ENUM_LEGACY_5_REMIND_ME_LATER=5]="POPUP_OPERATION_ENUM_LEGACY_5_REMIND_ME_LATER",G[G.POPUP_OPERATION_ENUM_LEGACY_7_LEARN_MORE=6]="POPUP_OPERATION_ENUM_LEGACY_7_LEARN_MORE",G[G.POPUP_OPERATION_ENUM_LEGACY_8_CONFIRM=7]="POPUP_OPERATION_ENUM_LEGACY_8_CONFIRM",G[G.POPUP_OPERATION_ENUM_LEGACY_9_NOT_NOW=8]="POPUP_OPERATION_ENUM_LEGACY_9_NOT_NOW",G[G.POPUP_OPERATION_ENUM_LEGACY_10_DOWNLOAD_YOUR_DATA=9]="POPUP_OPERATION_ENUM_LEGACY_10_DOWNLOAD_YOUR_DATA",G[G.POPUP_OPERATION_ENUM_LEGACY_11_SUBMIT_APPEAL=10]="POPUP_OPERATION_ENUM_LEGACY_11_SUBMIT_APPEAL",G[G.POPUP_OPERATION_ENUM_LEGACY_20_DOWNLOAD_YOUR_DATA=11]="POPUP_OPERATION_ENUM_LEGACY_20_DOWNLOAD_YOUR_DATA",G[G.POPUP_OPERATION_ENUM_LEGACY_100_GOT_IT=12]="POPUP_OPERATION_ENUM_LEGACY_100_GOT_IT",G[G.POPUP_OPERATION_ENUM_LEGACY_101_LEARN_MORE=13]="POPUP_OPERATION_ENUM_LEGACY_101_LEARN_MORE",G[G.POPUP_OPERATION_ENUM_LEGACY_200_LEARN_MORE=14]="POPUP_OPERATION_ENUM_LEGACY_200_LEARN_MORE",(Z=Y||(Y={}))[Z.ACTION_TYPE_ENUM_CALLBACK=0]="ACTION_TYPE_ENUM_CALLBACK",Z[Z.ACTION_TYPE_ENUM_UPDATE_CONSENT=1]="ACTION_TYPE_ENUM_UPDATE_CONSENT",Z[Z.ACTION_TYPE_ENUM_FETCH_COMPLIANCE_SETTING=2]="ACTION_TYPE_ENUM_FETCH_COMPLIANCE_SETTING",(X=K||(K={}))[X.POPUP_CALLBACK_TYPE_ENUM_UNKNOWN=0]="POPUP_CALLBACK_TYPE_ENUM_UNKNOWN",X[X.POPUP_CALLBACK_TYPE_ENUM_USER_ID=1]="POPUP_CALLBACK_TYPE_ENUM_USER_ID",X[X.POPUP_CALLBACK_TYPE_ENUM_DEVICE_ID=2]="POPUP_CALLBACK_TYPE_ENUM_DEVICE_ID";const ae="${locale}";function re({link:e,lang:t}){return e.replace(ae,t)}function se({lang:e,body:t,bodyLinks:n,popupMeta:i,callback:o}){if(!t)return;if(!n||0===n.length)return[{type:s.TEXT,text:t}];const a=[],r=t;let l=0;const d=/%s/g;return n.forEach((({name:t,link:n="",operation:u,dismiss:p,approve:v,new_web_tab:g,extra:m,link_type:h})=>{const _=d.exec(r);if(!_)return;const f=re({link:n,lang:e}),y=Boolean(v||p),b=h===F.CALLBACK||v,w={type:n?s.LINK:s.BUTTON,text:t,link:f,linkType:g?c.EXTERNAL:c.INTERNAL,onClick:o(y,!!b,te(ee({},i),{extra:m,operation:null==u?void 0:u.toString()}))};a.push({type:s.TEXT,text:r.slice(l,_.index)}),a.push(w),l=Number(_.index)+_[0].length})),a.push({type:s.TEXT,text:r.slice(l)}),a}function le({lang:e,first_button_highlight:t,rawButtons:n,popupMeta:i,callback:o}){if(0===n.length)return;const a=[];return n.forEach((({text:n,is_bold:r,link_type:s,link:l,extra:d,approve:u,operation:p,dismiss:v,dismiss_all:g,new_web_tab:m,is_close_style:h},_)=>{const f=Boolean(u||v||g),y=s===F.CALLBACK||u,b={text:n,isCloseStyle:h,isBold:Boolean(r),isHighlight:0===_&&t,link:l?re({link:l,lang:e}):void 0,linkType:m?c.EXTERNAL:c.INTERNAL,onClick:o(f,!!y,te(ee({},i),{extra:d,operation:null==p?void 0:p.toString()}),l?{link:re({link:l,lang:e}),linkType:m?c.EXTERNAL:c.INTERNAL}:void 0)};a.push(b)})),a}function ce(e){if(e)return{url:e,width:"auto",height:"48px"}}function de(e,t,n,i,o,a,r){try{var s=e[a](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,o)}function ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class pe{init(e,t){C.info("[PopupModule]: init",e),this._lang=e.lang,this._popupApi=e.apiPath||T,this._callbackApi=e.callbackApiPath||k,this._scene=e.scene||0,this._dataProcessor=e.dataProcessor||a.V2,this._customizedProcessor=e.customizeDataProcessor,this._navigateToNextPopup=t.navigateToNextPopup,this._completeAllPopups=t.completeAllPopups,this._beforeSendCallback=t.beforeSendCallback,this._afterSendCallback=t.afterSendCallback,this._adjustAPIConfig()}_adjustAPIConfig(){this._popupApi===w?(this._callbackApi=S,this._dataProcessor=a.V2):this._popupApi===x&&(this._callbackApi="/api/policy/notice/approve/",this._dataProcessor=a.V1)}fetch(e){return C.info("[PopupModule]: fetch ",this._popupApi),Q.sendRequest(this._popupApi,"GET",function(e){for(var t=1;t{if(!e)return;const t={business:e.business,policy_version:e.policy_version,style:e.style,scene:this._scene},n={eventInfo:{style:e.style,business:e.business},popupType:e.style,title:e.title,icon:ce(e.icon_url),iconDark:ce(e.icon_url_dark),body:se({lang:this._lang,body:e.body,bodyLinks:e.body_link_list,popupMeta:t,callback:this.callbackFunctionV1}),buttons:le({lang:this._lang,first_button_highlight:Boolean(e.first_button_highlight),rawButtons:e.actions||[],popupMeta:t,callback:this.callbackFunctionV1})};i.push(n)})),i}_processV2Data(e){const t="string"==typeof e?JSON.parse(e):e;return C.info("[PopupModule]: process V2 response",t),t.popup_responses.map((e=>{const t=e.popup_ui,n=e.popup_meta;return{eventInfo:{style:t.style,business:n.business},popupType:oe(t.style),icon:ce(t.icon_url),iconDark:ce(t.icon_url_dark),title:t.title,buttons:ie({rawButtons:t.buttons,popupMeta:n,style:t.style,callback:this.callbackFunctionV2}),body:ne({lang:this._lang,body:t.body,bodyLinks:t.body_links,popupMeta:e.popup_meta,style:t.style,callback:this.callbackFunctionV2})}}))}_processCustomizedData(e){if(C.info("[PopupModule]: process customized response"),!e||!this._customizedProcessor)return[];try{return this._customizedProcessor(e)}catch(e){C.error("[PopupModule]: process customized response fail",e)}return[]}destruct(){C.info("[PopupModule]: destruct")}constructor(){this.callbackFunctionV1=(e,t,n,i)=>()=>{t&&this._sendCallback(n).then((()=>{C.info("[PopupModule]: send callback finished")})).catch((e=>{C.error("[PopupModule]: send callback fail",e)})),i&&(i.linkType===c.EXTERNAL?window.open(i.link):window.location.href=i.link),e&&this._navigateToNextPopup()},this.callbackFunctionV2=(e,t,n,i)=>()=>{if((null==n?void 0:n.actions)&&n.actions.includes(Y.ACTION_TYPE_ENUM_CALLBACK)&&this._sendCallback({business:e.business,version:e.version,style:t,extra:n.extra,operation:n.operation}).then((()=>{C.info("[PopupModule]: send callback finished")})).catch((e=>{C.error("[PopupModule]: send callback fail",e)})),i&&(null==n?void 0:n.link)){const e=re({link:n.link,lang:this._lang});n.link_type===q.LINK_TYPE_ENUM_EXTERNAL?window.open(e):window.location.href=e}(null==n?void 0:n.dismiss_all)?this._completeAllPopups():(null==n?void 0:n.dismiss)&&this._navigateToNextPopup()};var e,t,n=this;return this._sendCallback=(e=function*(e){n._beforeSendCallback();try{const t="object"==typeof e?new URLSearchParams(e):e;yield Q.sendRequest(n._callbackApi,"POST",t,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),n._afterSendCallback(!0)}catch(e){n._afterSendCallback(!1,e)}},t=function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function r(e){de(a,i,o,r,s,"next",e)}function s(e){de(a,i,o,r,s,"throw",e)}r(void 0)}))},function(e){return t.apply(this,arguments)}),pe._instance||(pe._instance=this),pe._instance}}var ve=new pe;class ge{init(e){C.info("[LifeCycleModule]: init"),C.info("[LifeCycleModule]: init Popup module"),ve.init(e,{navigateToNextPopup:this.navigateToNextPopup,completeAllPopups:this.completeAllPopups,beforeSendCallback:this.beforeSendCallback,afterSendCallback:this.afterSendCallback}),this._currentEvent=new Set}addEventListener(e,t){C.info("[LifeCycleModule]: add event listener to ",e);const n=this._eventListeners.get(e)||[];this._eventListeners.set(e,[...n,t])}removeEventListener(e,t){C.info("[LifeCycleModule]: remove event listener from ",e);const n=this._eventListeners.get(e);if(!n)return;const i=n.filter((e=>e!==t));this._eventListeners.set(e,i)}removeAllEventListeners(e){C.info("[LifeCycleModule]: remove all event listeners from ",e),this._eventListeners.set(e,[])}fetchPopupData(e){return C.info("[LifeCycleModule]: fetch popup data"),this.dispatchEvent(A.beforeFetchData),ve.fetch(e).then((e=>{this.dispatchEvent(A.afterFetchData),C.info("[LifeCycleModule]: fetch popup data done, start processing response"),this.processData(e)})).catch((e=>{C.error("[LifeCycleModule]: fetch failure - ",e),this.dispatchEvent(A.fetchDataError)}))}processData(e){try{const t=ve.processData(e);(null==t?void 0:t.length)?(C.info("[LifeCycleModule]: process response done, popup data ready"),this._currentPopupIndex=0,this._popupData=t,this.dispatchEvent(A.popupDataReady)):C.info("[LifeCycleModule]: process popup response done, no popup data")}catch(e){C.error("[LifeCycleModule]: process popup response error - ",e)}}hasPopupData(){return C.info("[LifeCycleModule]: has popup data"),this._popupData.length>0}getAllPopupData(){return C.info("[LifeCycleModule]: get all popup data"),this._popupData}getCurrentPopupData(){return C.info("[LifeCycleModule]: get current popup data"),this._popupData[this._currentPopupIndex]}hasNextPopup(){C.info("[LifeCycleModule]: has next popup");const e=this._popupData.length,t=this._currentPopupIndex+1;return 0!==this._popupData.length&&t{if(C.info("[LifeCycleModule]: dispatch start - ",e),this._currentEvent.has(e))return void C.error("[LifeCycleModule]: Dispatch is already in process",{currentEvent:[...this._currentEvent],upcomingEvent:e});this._currentEvent.add(e);const t=this._eventListeners.get(e);t&&t.forEach((t=>{try{t()}catch(t){C.warn(`[LifeCycleModule]: error executing listener for event: ${e}`,t)}})),this._currentEvent.delete(e),C.info("[LifeCycleModule]: dispatch finish - ",e)},this.beforeSendCallback=()=>{C.info("[LifeCycleModule]: before sendCallback"),this.dispatchEvent(A.beforeSendCallback)},this.afterSendCallback=(e,t)=>{e?(C.info("[LifeCycleModule]: after sendCallback"),this.dispatchEvent(A.afterSendCallback)):(C.error("[LifeCycleModule]: send callback failure",t),this.dispatchEvent(A.sendCallbackError))},this.navigateToNextPopup=()=>{C.info("[LifeCycleModule]: navigate to next popup"),this._currentPopupIndex+1{C.info("[LifeCycleModule]: complete all popup"),this._currentPopupIndex=this._popupData.length},ge._instance||(ge._instance=this),ge._instance}}var me=new ge;function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _e(e){for(var t=1;t{const{content:t,open:n,colorScheme:i,config:o,eventReport:a}=e;if(!n)return null;const{buttons:r,icon:l,iconDark:d,body:u,title:p,eventInfo:m}=t,h=(0,g.useRef)(null),_=(0,g.useCallback)((e=>{var t;"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),null===(t=h.current)||void 0===t||t.click())}),[]),f="dark"===i?d:l;var y,b;return(0,v.jsx)(Te,{role:"alert",style:{top:null!==(y=null==o?void 0:o.topOffset)&&void 0!==y?y:"0",zIndex:null!==(b=null==o?void 0:o.zIndex)&&void 0!==b?b:999,backgroundColor:"var(--ui-sheet-backdrop-1)"},children:(0,v.jsxs)(Se,{children:[(0,v.jsxs)(ke,{children:[f&&(0,v.jsx)("img",{alt:"icon",src:f.url,height:f.height,width:f.width}),(0,v.jsxs)(Oe,{children:[p&&(0,v.jsx)(we.Fm,{as:"h4",size:15,color:"UIShapeText1OnNeutral",weight:"medium",children:p}),(0,v.jsx)(we.Fm,{as:"p",size:15,color:"UIShapeText1OnNeutral",children:null==u?void 0:u.map((e=>{return e.type===s.TEXT?e.text:(0,v.jsx)(we.QKx,{color:"UIShapeText1OnNeutral",label:e.text,href:null!==(t=e.link)&&void 0!==t?t:"",target:e.linkType===c.EXTERNAL?"_blank":"_self",onClick:()=>{var t;null==a||a(Ke,Ce(Ie({},m),{button_info:e.text})),null===(t=e.onClick)||void 0===t||t.call(e)},weight:"medium"},e.text);var t}))})]})]}),(0,v.jsx)(Ae,{children:null==r?void 0:r.map((e=>e.isCloseStyle?(0,v.jsx)("div",{onClick:()=>{var t;null==a||a(Ke,Ce(Ie({},m),{button_info:e.text})),null===(t=e.onClick)||void 0===t||t.call(e)},onKeyDown:_,ref:h,tabIndex:0,role:"button",children:(0,v.jsx)(we.gn,{size:"24px",style:{cursor:"pointer"},color:"BrandTikTokBackground"})},e.text):(0,v.jsx)(Ee,{children:(0,v.jsx)(we.I05,{label:e.text,shape:"borderless",variant:"primary",onClick:()=>{var t;null==a||a(Ke,Ce(Ie({},m),{button_info:e.text})),null===(t=e.onClick)||void 0===t||t.call(e)}})},e.text)))})]})})},Le=(0,xe.default)("div",{target:"e1krb51j0"})((({theme:{colors:e}})=>({width:"100vw",left:"0",marginTop:"1px",position:"fixed",boxShadow:"0 2px 8px rgba(0, 0, 0, .06)",background:e.BGPrimary,display:"flex",justifyContent:"center",":after":{content:'""',background:"rgba(33, 33, 33, .08)",position:"absolute",left:"0",bottom:"0",width:"100%",height:"1px",transform:"scaleY(0.5)"}})),"label:DivBannerContainer;"),Me=(0,xe.default)("div",{target:"e1krb51j1"})({width:1150,maxWidth:1150,padding:"16px 24px",display:"flex",justifyContent:"space-between",gap:"24px"},"label:DivBannerWrapper;"),Ne=(0,xe.default)("div",{target:"e1krb51j2"})({display:"flex",alignItems:"center",gap:"16px"},"label:DivLeftContainer;"),De=(0,xe.default)("div",{target:"e1krb51j3"})([{display:"flex",alignItems:"center",gap:"24px"}],"label:DivRightContainer;"),Re=(0,xe.default)("div",{target:"e1krb51j4"})({alignSelf:"center"},"label:DivContentWrapper;"),Be=(0,xe.default)("div",{target:"e1krb51j5"})({margin:"9px 0"},"label:DivButton;");function Ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fe(e){for(var t=1;t{const{content:t,open:n,colorScheme:i,config:o,eventReport:a}=e;if(!n)return null;const{buttons:r,icon:l,iconDark:d,body:u,title:p,eventInfo:m}=t,h=(0,g.useRef)(null),_=(0,g.useCallback)((e=>{var t;"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),null===(t=h.current)||void 0===t||t.click())}),[]),f="dark"===i?d:l;var y,b;return(0,v.jsx)(Le,{role:"alert",style:{top:null!==(y=null==o?void 0:o.topOffset)&&void 0!==y?y:"59px",zIndex:null!==(b=null==o?void 0:o.zIndex)&&void 0!==b?b:999},children:(0,v.jsxs)(Me,{children:[(0,v.jsxs)(Ne,{children:[f&&(0,v.jsx)("img",{alt:"icon",src:f.url,height:f.height,width:f.width}),(0,v.jsxs)(Re,{children:[p&&(0,v.jsx)(we.Fm,{as:"h4",color:"UIText1",size:16,weight:"medium",children:p}),u&&(0,v.jsx)(we.Fm,{as:"p",size:16,weight:"medium",color:"UIText2",children:u.map((e=>{return e.type===s.TEXT?e.text:(0,v.jsx)(we.QKx,{color:"UIText1Display",label:e.text,href:null!==(t=e.link)&&void 0!==t?t:"",target:e.linkType===c.EXTERNAL?"_blank":"_self",onClick:()=>{var t;null==a||a(Ke,Ve(Fe({},m),{button_info:e.text})),null===(t=e.onClick)||void 0===t||t.call(e)},weight:"medium"},e.text);var t}))})]})]}),(0,v.jsx)(De,{children:null==r?void 0:r.map((e=>e.isCloseStyle?(0,v.jsx)("div",{onClick:()=>{var t;null==a||a(Ke,Ve(Fe({},m),{button_info:e.text})),null===(t=e.onClick)||void 0===t||t.call(e)},onKeyDown:_,ref:h,tabIndex:0,role:"button",children:(0,v.jsx)(we.gn,{size:"24px",style:{cursor:"pointer"}})},e.text):(0,v.jsx)(Be,{children:(0,v.jsx)(we.I05,{label:e.text,shape:"borderless",variant:"primary",onClick:()=>{var t;null==a||a(Ke,Ve(Fe({},m),{button_info:e.text})),null===(t=e.onClick)||void 0===t||t.call(e)}})},e.text)))})]})})},He=(0,xe.default)("div",{target:"e140os950"})({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:"8px",padding:"0 24px"},"label:ButtonContainer;"),qe=(0,xe.default)("img",{target:"e140os951"})({display:"block",margin:"8px auto"},"label:Img;");function We(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $e(e){for(var t=1;t{var t;const{icon:n,iconDark:i,buttons:o,body:a,title:r,eventInfo:l}=e.content,d="dark"===e.colorScheme?i:n;var u;return(0,v.jsxs)(we.nOL,{open:e.open,onOpenChange:()=>{},style:{padding:"32px 0",zIndex:null!==(u=null===(t=e.config)||void 0===t?void 0:t.zIndex)&&void 0!==u?u:9999},children:[d&&(0,v.jsx)(qe,{src:d.url,height:d.height,width:d.width}),r&&(0,v.jsx)(we.Fm,{as:"h2",align:"center",size:20,weight:"bold",style:{wordBreak:"break-word",lineHeight:"24px",padding:"0 20px"},children:r}),(null==a?void 0:a.length)&&(0,v.jsx)(we.Fm,{as:"p",size:15,align:"center",style:{lineHeight:"18px",padding:"7px 24px 24px"},children:a.map((t=>{return t.type===s.TEXT?t.text:(0,v.jsx)(we.QKx,{color:"UIText1Display",weight:"medium",label:t.text,href:null!==(n=t.link)&&void 0!==n?n:"",target:t.linkType===c.EXTERNAL?"_blank":"_self",onClick:()=>{var n,i;null===(n=e.eventReport)||void 0===n||n.call(e,Ke,Ge($e({},l),{button_info:t.text})),null===(i=t.onClick)||void 0===i||i.call(t)}},t.text);var n}))}),(null==o?void 0:o.length)&&(0,v.jsx)(He,{children:o.map((t=>(0,v.jsx)(we.I05,{style:t.isBold?{fontWeight:"bold"}:{},label:t.text,variant:t.isHighlight?"primary":"secondary",onClick:()=>{var n,i;null===(n=e.eventReport)||void 0===n||n.call(e,Ke,Ge($e({},l),{button_info:t.text})),null===(i=t.onClick)||void 0===i||i.call(t)}},t.text)))})]})};var Ze=n(28658);const Ke="qa_tns_general_dialog_click";function Xe(){return(0,v.jsx)("link",{rel:"stylesheet",href:Ze})}const Qe=e=>{const[t,n]=(0,g.useState)(null),{eventReport:o,noFetchDataAtInit:a,SDKConfig:r,visible:s,onReadyToClose:l,onReadyToShow:c,colorScheme:d,textDirection:u,componentConfig:p}=e;if((0,g.useEffect)((()=>(be.init(r),a||be.fetchPopupData().catch(null),be.addEventListener(A.popupDataReady,(()=>{be.getPopupData()&&(n(be.getPopupData()),c())})),be.addEventListener(A.afterNavigateToNextPopup,(()=>{n(be.getPopupData())})),be.addEventListener(A.allPopupsCompleted,(()=>{l()})),()=>{be.destruct()})),[]),(0,g.useEffect)((()=>{s&&t&&o&&o("tns_general_dialog_show",t.eventInfo)}),[s]),!t)return null;const{popupType:m}=t,h=function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["popupType"]);let _;switch(m){case i.MOBILE_BANNER:_=(0,v.jsx)(je,{colorScheme:d,content:h,open:s,config:null==p?void 0:p.mBanner,eventReport:o});break;case i.PC_BANNER:_=(0,v.jsx)(ze,{colorScheme:d,content:h,open:s,config:null==p?void 0:p.pcBanner,eventReport:o});break;case i.POP:default:_=(0,v.jsx)(Ye,{colorScheme:d,content:h,open:s,config:null==p?void 0:p.popup,eventReport:o})}return(0,v.jsxs)(we.juU,{colorSchemePreference:d,textDirection:u,children:[(0,v.jsx)(Xe,{}),_]})},Je=be.fetchPopupData;var et,tt,nt=n(67518),it=n(93608);!function(e){e.None="none",e.Pop="pop",e.Float="float",e.Bottom="bottom",e.PcBanner="pc_banner",e.MobileBanner="mobile_banner"}(et||(et={})),function(e){e.Callback="callback",e.H5="h5"}(tt||(tt={}));const ot=e=>{var t,n;const{onHide:i,hideByDefault:o}=e,a=(0,g.useRef)(!1),[r,s]=(0,g.useState)(!1),l=(0,g.useCallback)((()=>{null==i||i(),s(!1)}),[i]),{language:c,wid:d,region:u}=null!==(t=(0,h.W)((()=>["language","wid","region"]),[]))&&void 0!==t?t:{},{isMobile:p}=null!==(n=(0,_.U)((()=>["isMobile"]),[]))&&void 0!==n?n:{},{isDark:y,direction:w}=(0,nt.u)(),{showFullSideNav:T}=(0,f.vY)(),S=(0,g.useCallback)((e=>{a.current||(a.current=!0,Je({scene:555,extra:JSON.stringify(e)}).catch(null))}),[]),k=(0,g.useCallback)((e=>{Je({scene:555,extra:JSON.stringify(e)}).catch(null)}),[]);if((0,g.useEffect)((()=>(m.LZ.on(m.Rh,b()(S,2e3)),m.LZ.on(m.gk,b()(k,2e3)),()=>{m.LZ.clear(m.Rh),m.LZ.clear(m.gk)})),[S,k]),!d||!u||!c)return null;const A={appId:1988,wid:d,isMobile:p,region:u,lang:c,apiDomain:"https://www.tiktok.com",apiPath:x};return(0,v.jsx)("div",{id:"web-universal-popup",children:(0,v.jsx)(Qe,{eventReport:it.f.event.bind(it.f),noFetchDataAtInit:o,SDKConfig:A,visible:r,colorScheme:y?"dark":"light",textDirection:w,onReadyToClose:l,onReadyToShow:()=>s(!0),componentConfig:T?{pcBanner:{topOffset:"0"}}:void 0})})}},85612:(e,t,n)=>{"use strict";n.d(t,{B9:()=>s,OK:()=>a,Pl:()=>l,Rj:()=>o,Rp:()=>r,Vb:()=>c});var i=n(58632);function o(e,t){const n=function(e){const t=[];for(const[n]of Object.entries(e)){const i=`${n}=${encodeURIComponent(e[n])}`;t.push(i)}return t.join("&")}(t);return e.indexOf("?")>-1?`${e}&${n}`:`${e}?${n}`}function a(e,t){var n;const i={},o=function(e){if("string"==typeof e){let t={};try{t=JSON.parse(e)}catch(e){return{}}return t}return e}(e);for(const[e]of Object.entries(o)){const a=o[e];if("string"==typeof a){const o=a.split(".");let r=t;for(;o.length>0&&void 0!==r;)r=r[null!==(n=o.shift())&&void 0!==n?n:""];i[e]=r}}return i}function r(e,t){if(void 0!==t)for(const n of e)if(t===n.reason_code)return n;return null}function s(e){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function l(e){return["live","live_comment","live_star_comment"].includes(e)}const c=(e,t,o)=>{if(!(null==t?void 0:t.need_captcha)||!(null==t?void 0:t.decision_conf))return Promise.resolve();{const a=JSON.parse(t.decision_conf).region;let r;switch(a){case"ttp":case"ttp2":r=n.e(2318).then(n.bind(n,95768));break;case"in":case"ie":case"ie2":r=n.e(1427).then(n.bind(n,4529));break;default:r=n.e(4336).then(n.bind(n,28564))}null==r||r.then((n=>(0,i.__awaiter)(void 0,void 0,void 0,(function*(){const i=yield n.getFp();n.init({commonOptions:{aid:1988,iid:"0",did:e},captchaOptions:{fp:i,showMode:"mask",successCb:()=>{console.log("verification passed, retry report"),null==o||o()}}},(()=>{console.log(`verification sdk (region: ${a}, wid: ${e}) initialize successfully`)}),(t=>{console.log(`verification sdk (region: ${a}, wid: ${e}) initialize failed`,t)})),n.render({verify_data:t.decision_conf})}))))}}},81230:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});var i=n(58632),o=n(64162),a=n(4126),r=n(93995);let s=class extends o.E{constructor(){super(),this.defaultState={visible:!1,violationAppealInfo:{objectId:void 0,objectType:void 0,punishKey:void 0,penaltyDetails:void 0}}}setVisible(e,t){e.visible=t}setViolationAppealInfo(e,t){e.violationAppealInfo=t}};(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Boolean]),(0,i.__metadata)("design:returntype",void 0)],s.prototype,"setVisible",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],s.prototype,"setViolationAppealInfo",null),s=(0,i.__decorate)([(0,r.n)("ViolationAppealModal"),(0,i.__metadata)("design:paramtypes",[])],s)},15637:(e,t,n)=>{"use strict";var i,o,a,r,s,l,c;n.d(t,{AT:()=>o,Ls:()=>s,d7:()=>d,fZ:()=>u,gq:()=>p,nW:()=>a,qZ:()=>c,w$:()=>i,ww:()=>r}),function(e){e.VIDEO="1",e.COMMENT="3",e.PROFILE="4",e.DM="5",e.SUICIDE="7",e.AUDIO="8",e.OLD_COPYRIGHT="101",e.COPYRIGHT="102",e.NETZDG_REPORTER="103",e.NETZDG="104",e.ANCHOR="105",e.LIVE_REPORTER="107",e.LIVE_COMMENT_REPORTER="130",e.PHOTO_AVIA_REPORTER="210",e.LIVE_COMMENT="302",e.COMMENT_NETZDG="303",e.COMMENT_NETZDG_REPORTER="304",e.AUDIO_COMMUNITY_GUIDELINE="801",e.AUDIO_COPYRIGHT="802",e.AUDIO_MULTIPLE_VIOLATIONS="803",e.MASK_LAYER="1011",e.COPYRIGHT_AUTO_REMOVAL="1014",e.DMCA_VIDEO="1024",e.DMCA_POST="1025",e.TRADEMARK_VIDEO="1026",e.TRADEMARK_POST="1027",e.COPYRIGHT_STRIKE="1033",e.TRADEMARK_STRIKE="1034",e.DSA_ILLEGAL_VIDEO="1035",e.DSA_ILLEGAL_PHOTO="1037",e.DSA_ILLEGAL_EFFECT="1041",e.SeriesVideoCopyright="1042",e.SeriesVideoTrademark="1043",e.SeriesCollectionCopyright="1044",e.SeriesCollectionTrademark="1045",e.DSA_ILLEGAL_PROFILE="2016",e.DSA_ILLEGAL_COMMENT="3006",e.OneLinerDSA="3008",e.SeriesReviewDSA="3009",e.DSA_CG_AUDIO="4000",e.DMCA_AUDIO="4001",e.DSA_ILLEGAL_AUDIO="4003",e.DSA_NR_AUDIO="4004",e.MCC_AUDIO="4005",e.COPYRIGHT_PROFILE="2011",e.TRADEMARK_PROFILE="2012",e.SUSPEND_LINK="2005",e.LiveCommentDSA="5005",e.HASHTAG="8000",e.CONTENT_CHECK_VIDEO="9000",e.RESET_LINK="20051",e.POI_COMMENT="300000",e.POI_COMMENT_ILLEGAL="300004",e.SUB_SPACE_COMMENT="300005",e.SUB_SPACE_COMMENT_ILLEGAL="300006"}(i||(i={})),function(e){e.VIDEO="video",e.COMMENT="comment",e.AUDIO="audio",e.LINK="link",e.USER="user",e.IMAGE="image",e.HASHTAG="hashtag",e.HEART="heart",e.STATUS_SUCCESS="status_success",e.STATUS_FAIL="status_fail",e.STATUS_FAIL_LIGHT="status_fail_light",e.STATUS_RECEIVED="status_received",e.PHOTO="photo",e.PROFILE="profile"}(o||(o={})),function(e){e[e.ON_APPEAL=0]="ON_APPEAL",e[e.NOT_APPEAL=1]="NOT_APPEAL",e[e.APPEAL_SUCCESS=2]="APPEAL_SUCCESS",e[e.APPEAL_FAIL=3]="APPEAL_FAIL",e[e.APPEAL_EXPIRED=4]="APPEAL_EXPIRED",e[e.CANNOT_APPEAL=5]="CANNOT_APPEAL"}(a||(a={})),function(e){e[e.VIOLATION_INFO_SUCCESS=1]="VIOLATION_INFO_SUCCESS",e[e.VIOLATION_INFO_VIOLATION=2]="VIOLATION_INFO_VIOLATION",e[e.VIOLATION_INFO_NR=3]="VIOLATION_INFO_NR",e[e.VIOLATION_INFO_NFF=4]="VIOLATION_INFO_NFF",e[e.VIOLATION_INFO_IN_PROGRESS=5]="VIOLATION_INFO_IN_PROGRESS"}(r||(r={})),function(e){e[e.UNCHANGEABLE=0]="UNCHANGEABLE",e[e.CHANGEABLE=1]="CHANGEABLE",e[e.CHANGED=2]="CHANGED"}(s||(s={})),function(e){e[e.NORMAL=0]="NORMAL",e[e.EXPIRE=1]="EXPIRE",e[e.EXCEED=2]="EXCEED",e[e.NOT_SUPPORTED=3]="NOT_SUPPORTED"}(l||(l={})),function(e){e[e.STATUS=0]="STATUS",e[e.SUBMIT=1]="SUBMIT"}(c||(c={}));const d=[i.VIDEO,i.DSA_ILLEGAL_VIDEO],u="https://www.tiktok.com/violation-appeal",p=[i.LIVE_REPORTER,i.LIVE_COMMENT_REPORTER];i.DSA_ILLEGAL_VIDEO,i.DSA_ILLEGAL_PHOTO,i.DSA_ILLEGAL_EFFECT,i.DSA_ILLEGAL_PROFILE,i.DSA_ILLEGAL_COMMENT,i.OneLinerDSA,i.SeriesReviewDSA,i.DSA_ILLEGAL_AUDIO,i.LiveCommentDSA,i.POI_COMMENT_ILLEGAL,i.SUB_SPACE_COMMENT_ILLEGAL},31367:(e,t,n)=>{"use strict";n.d(t,{D_:()=>l,Fh:()=>d,JN:()=>s,JS:()=>a,KW:()=>m,Ko:()=>c,Lo:()=>g,NR:()=>h,Rh:()=>v,TU:()=>f,UP:()=>w,Ug:()=>b,an:()=>u,bq:()=>r,fm:()=>_,g$:()=>O,jl:()=>S,lg:()=>x,n4:()=>A,nM:()=>p,rW:()=>T,sP:()=>k,uH:()=>E});var i=n(62186),o=n(72153);const a=(0,i.default)("form",{target:"ezqf9p60"})((({theme:e})=>[(0,o.zy)({theme:e,typography:"H6"}),{zIndex:2,background:e.colors.BGPrimary,borderRadius:"8px",overflow:"hidden",width:"700px",margin:0}]),"label:FormReport;"),r=(0,i.default)("div",{target:"ezqf9p61"})((({theme:e})=>({width:"400px",zIndex:2,background:e.colors.BGPrimary,borderRadius:"8px",overflow:"hidden",margin:0})),"label:DivFormBox;"),s=(0,i.default)("div",{target:"ezqf9p62"})({display:"flex",alignItems:"center",padding:"24px 24px 16px",height:"72px"},"label:DivFormHeader;"),l=(0,i.default)("div",{target:"ezqf9p63"})({cursor:"pointer",padding:"6px",height:"32px"},"label:DivBackButton;"),c=(0,i.default)("div",{target:"ezqf9p64"})({cursor:"pointer",padding:"9px",height:"32px"},"label:DivCloseButton;"),d=(0,i.default)("h4",{target:"ezqf9p65"})((({theme:e})=>({fontSize:"20px",lineHeight:"32px",color:e.colors.TextPrimary,fontFamily:e.fontFamilies.TikTokFont,fontWeight:e.fontWeights.bold,textAlign:"rtl"===e.direction?"right":"left",flex:1})),"label:H4FormTitle;");d.defaultProps=Object.assign(Object.assign({},d.defaultProps),{"data-e2e":"report-card-title"});const u=(0,i.default)("div",{target:"ezqf9p66"})((({theme:e})=>({borderTop:`1px solid ${e.colors.LineSecondary}`,height:"50vh",overflowY:"auto",overflowX:"hidden",padding:"16px 16px 0px"})),"label:DivRadioWrapper;"),p=(0,i.default)(u,{target:"ezqf9p67"})({padding:"0px 16px 100px",display:"flex",flexDirection:"column"},"label:DivSubmitWrapper;"),v=(0,i.default)("div",{target:"ezqf9p68"})((({theme:e})=>({paddingBottom:"8px",paddingLeft:"8px",color:e.colors.TextSecondary,height:"22px",lineHeight:"22px"})),"label:DivSelectText;"),g=(0,i.default)("div",{target:"ezqf9p69"})((({theme:e})=>({color:e.colors.TextPrimary,lineHeight:"22px",fontSize:"16px",userSelect:"none"})),"label:DivReasonText;"),m=(0,i.default)("label",{target:"ezqf9p610"})((({theme:e})=>({boxSizing:"border-box",minHeight:"54px",display:"flex",flex:"1 1 100%",flexDirection:"row",alignItems:"center",cursor:"pointer",position:"relative",wordBreak:"break-all",justifyContent:"space-between",padding:"8px",borderRadius:"8px",":hover":{background:e.colors.BGPlaceholderOpaque}})),"label:LabelRadio;");m.defaultProps=Object.assign(Object.assign({},m.defaultProps),{"data-e2e":"report-card-reason"});const h=(0,i.default)(m,{target:"ezqf9p611"})({justifyContent:"flex-start"},"label:RadioReasonChoice;"),_=(0,i.default)(g,{target:"ezqf9p612"})({padding:"0 12px"},"label:RadioReasonText;"),f=(0,i.default)("div",{target:"ezqf9p613"})({position:"absolute",left:"50%",top:"50%",transform:"translate(-50% , -50%)"},"label:DivMMid;"),y=(0,i.default)("div",{target:"ezqf9p614"})((({theme:e})=>({padding:"8px",color:e.colors.TextPrimary,fontSize:"18px",lineHeight:"24px"})),"label:DivTitle;"),b=(0,i.default)(y,{target:"ezqf9p615"})((({theme:e})=>({width:"calc(100% + 32px)",margin:"0 0 12px -16px",padding:"16px 24px",backgroundColor:e.colors.BGPlaceholderDefault})),"label:DivSubmitTitle;"),w=(0,i.default)("div",{target:"ezqf9p616"})((({theme:e})=>({padding:"4px 4px 10px 8px",color:e.colors.TextSecondary,fontSize:"16px",lineHeight:"22px"})),"label:DivSubTitle;"),x=(0,i.default)("li",{target:"ezqf9p617"})((({theme:e})=>({padding:"6px 6px 6px 0px",color:e.colors.TextSecondary,fontSize:"16px",lineHeight:"22px"})),"label:LiItem;"),T=(0,i.default)("div",{target:"ezqf9p618"})((({theme:e})=>({position:"absolute",bottom:"0",left:"0",height:"84px",width:"100%",borderTop:`0.5px solid ${e.colors.LinePrimary2}`,backgroundColor:e.colors.BGPrimary})),"label:DivFooter;"),S=(0,i.default)("button",{target:"ezqf9p619"})((({theme:e})=>({height:"36px",padding:"7px 16px",lineHeight:"22px",fontSize:"16px",position:"absolute",cursor:"pointer",top:"24px",right:"24px",color:e.colors.ConstTextInverse,background:e.colors.Primary,border:"none",borderRadius:"4px",":disabled":{background:e.colors.BGPlaceholderDefault,color:e.colors.TextQuaternary}})),"label:ButtonSubmit;"),k=(0,i.default)("div",{target:"ezqf9p620"})((({theme:e,top:t})=>({height:"72px",width:"72px",margin:"32px auto 24px",borderRadius:"36px",background:e.colors.BGView,padding:`${t}px 20px`})),"label:DivIconRoundBg;"),A=(0,i.default)("div",{target:"ezqf9p621"})((({theme:e})=>({margin:"0px auto 16px",padding:"0 32px",color:e.colors.TextPrimary,textAlign:"center",lineHeight:"32px",fontSize:"24px"})),"label:DivFinishTitle;"),O=(0,i.default)("div",{target:"ezqf9p622"})((({theme:e})=>({margin:"0px auto 24px",padding:"0 32px",color:e.colors.TextSecondary,textAlign:"center",lineHeight:"22px",fontSize:"16px"})),"label:DivFinishContent;"),E=(0,i.default)("button",{target:"ezqf9p623"})((({theme:e})=>({width:"336px",height:"46px",background:e.colors.Primary,margin:"0 32px 32px",borderRadius:"4px",textAlign:"center",lineHeight:"46px",fontSize:"16px",color:e.colors.ConstTextInverse,border:"none",cursor:"pointer"})),"label:ButtonFinish;")},48831:(e,t,n)=>{"use strict";n.d(t,{K:()=>v});var i=n(24643),o=n(41271),a=n(46682),r=n(40099),s=n(47172),l=n(47926),c=n(81230),d=n(49503);const u=(0,n(62186).default)("div",{target:"exv8p100"})((({theme:e})=>({width:"700px",backgroundColor:e.colors.BGPlaceholderOpaque})),"label:ViolationAppealWrapper;");var p=n(42617);const v=(0,r.memo)((function(){const e=function(){const{search:e}=(0,s.useLocation)();return(0,r.useMemo)((()=>new URLSearchParams(e)),[e])}(),[t,n]=(0,r.useState)(!1),v=(0,o.P)(c.s),g=(0,a.w)(c.s),m=(0,r.useRef)(0),[h,_]=(0,r.useState)({objectId:void 0,objectType:void 0,punishKey:void 0,penaltyDetails:void 0}),f=(0,r.useMemo)((()=>e.has("object_id")&&e.has("object_type")&&m.current<2||v.visible),[e,v,m.current]);(0,r.useEffect)((()=>{var t,i,o,a,r,s,l,c,d,u,p;if(f){const g=e.get("object_id"),h=e.get("object_type"),f=e.get("punish_key");return _({objectId:null!==(o=null!==(i=null===(t=v.violationAppealInfo)||void 0===t?void 0:t.objectId)&&void 0!==i?i:g)&&void 0!==o?o:void 0,objectType:null!==(s=null!==(r=null===(a=v.violationAppealInfo)||void 0===a?void 0:a.objectType)&&void 0!==r?r:h)&&void 0!==s?s:void 0,punishKey:null!==(d=null!==(c=null===(l=v.violationAppealInfo)||void 0===l?void 0:l.punishKey)&&void 0!==c?c:f)&&void 0!==d?d:void 0,penaltyDetails:null!==(p=null===(u=v.violationAppealInfo)||void 0===u?void 0:u.penaltyDetails)&&void 0!==p?p:void 0}),m.current++,void n(!0)}n(!1)}),[f,v]);const y=(0,r.useCallback)((()=>{g.setVisible(!1),n(!1)}),[]);return(0,i.jsx)(p.Ay,{autoFocus:!0,disabled:!t,returnFocus:!0,children:(0,i.jsx)(l.i,{compact:!0,isOpen:t,closeOnEsc:!0,children:(0,i.jsx)(u,{children:(0,i.jsx)(d.A,{objectId:h.objectId,objectType:h.objectType,punishKey:h.punishKey,penaltyDetails:h.penaltyDetails,onClose:()=>{y()}})})})})}))},49503:(e,t,n)=>{"use strict";n.d(t,{A:()=>En});var i,o,a,r,s,l,c,d,u=n(24643),p=n(46682),v=n(58632),g=n(64162),m=n(4126),h=n(93995),_=n(42051);!function(e){e[e.VIDEO=1]="VIDEO",e[e.PHOTO_MODE=2]="PHOTO_MODE"}(i||(i={})),function(e){e[e.PUBLIC=1]="PUBLIC",e[e.PRIVATE=2]="PRIVATE",e[e.FRIENDS=3]="FRIENDS",e[e.INVISIBLE=4]="INVISIBLE"}(o||(o={})),function(e){e[e.OTHER=0]="OTHER",e[e.COMMUNITY_GUIDELINES=1]="COMMUNITY_GUIDELINES",e[e.TOBACCO=2]="TOBACCO",e[e.VIOLENT=3]="VIOLENT",e[e.DANGEROUS=4]="DANGEROUS",e[e.OVERLY_SEXUALIZED=5]="OVERLY_SEXUALIZED",e[e.SPAM=6]="SPAM",e[e.UNORIGINAL=7]="UNORIGINAL",e[e.MINOR_SAFETY=8]="MINOR_SAFETY",e[e.UNORIGINAL_NR=9]="UNORIGINAL_NR",e[e.REPRODUCED=10]="REPRODUCED"}(a||(a={})),function(e){e[e.CAN_SUBMIT=0]="CAN_SUBMIT",e[e.CANNOT_SUBMIT=1]="CANNOT_SUBMIT",e[e.NO_PENALTY=2]="NO_PENALTY",e[e.REVIEWING=3]="REVIEWING",e[e.SUCCEEDED=4]="SUCCEEDED",e[e.FAILED=5]="FAILED",e[e.TIMEOUT=6]="TIMEOUT"}(r||(r={})),function(e){e[e.SUBMITTED=0]="SUBMITTED",e[e.NOT_SUBMITTED=1]="NOT_SUBMITTED"}(s||(s={})),function(e){e[e.PENALTY_TYPE_NR=0]="PENALTY_TYPE_NR",e[e.PENALTY_TYPE_NFF=1]="PENALTY_TYPE_NFF"}(l||(l={})),function(e){e[e.PENALTY_SOURCE_HUMAN=0]="PENALTY_SOURCE_HUMAN",e[e.PENALTY_SOURCE_MACHINE=1]="PENALTY_SOURCE_MACHINE"}(c||(c={})),function(e){e[e.PENALTY_TRIGGER_REPORT=0]="PENALTY_TRIGGER_REPORT",e[e.PENALTY_TRIGGER_RECALL=1]="PENALTY_TRIGGER_RECALL"}(d||(d={}));var f=n(15637),y=n(64356),b=n(55322),w=n(38203),x=n(39228);let T=class{constructor(e){this.fetch=e}getAppealReasons({appeal_type:e,object_id:t}){return this.fetch.get("/tns-api/appeal/reason",{query:Object.assign({appeal_type:e},t&&{object_id:t}),baseUrlType:2})}getViolationDetail({objectId:e,objectType:t,punishKey:n}){return this.fetch.get("/tns-api/appeal/violation-detail",{query:Object.assign({object_id:e,object_type:t},n&&{punish_key:n}),baseUrlType:2})}getPenaltyDetail({vid:e,storeRegion:t,lang:n}){return this.fetch.get("/mod/v1/getPenaltyDetails/",{query:{vid:e,storeRegion:t,lang:n},baseUrlType:2})}getReporterAppeal(e){return this.fetch.get("/tns-api/appeal/reporter-appeal",{query:e,baseUrlType:2})}postAppealCommit({objectId:e,punishKey:t,appealType:n,reason:i}){return this.fetch.post("/tns-api/appeal/post-commit",{body:JSON.stringify({object_id:e,appeal_type:n,reason:i,punish_key:t,appeal_uri:"",extra:""}),baseUrlType:2,headers:{"content-type":"application/json"}})}postReporterAppeal({reportType:e,objectId:t,objectOwnerId:n,reason:i,uri:o,reportDesc:a,reportId:r,reporterAppealReason:s,loggedOutCode:l,relevantLaw:c,trustedFlaggerEmail:d,logoutReporterEmail:u,legalJurisdiction:p,relatedTtid:v,relatedUsername:g,commentWithEmoji:m,reportMenuClickTime:h,reporterSignature:_=""}){return this.fetch.get("/aweme/v2/aweme/feedback/",{query:Object.assign(Object.assign({report_type:e,object_id:t,owner_id:n,reason:i,uri:o,report_desc:a,parent_id:r,reporter_appeal_reason:s,submit_type:"3"},l&&{verification_code:l}),{relevant_law:c,trusted_flagger_email:d,logout_reporter_email:u,legal_jurisdiction:p,related_ttid:v,related_username:g,comment_with_emoji:m,report_menu_click_time:h,reporter_signature:_}),baseUrlType:2})}postLiveReporterAppeal({reportType:e,objectId:t,objectOwnerId:n,reason:i,uri:o,reportDesc:a,reportId:r,reporterAppealReason:s,loggedOutCode:l,relevantLaw:c,trustedFlaggerEmail:d,logoutReporterEmail:u,legalJurisdiction:p,relatedTtid:v,reportMenuClickTime:g,reporterSignature:m="",liveReportType:h="",liveRequestPage:_="",liveCmpIds:f="",liveEnterFromMerge:y="",liveEnterMethod:b="",liveActionType:w="",durationEntranceSubmit:x=0,targetAnchorId:T="",targetAudienceId:S="",reportedUserIds:k="",nonReportedUserIds:A="",roomId:O="",liveChatType:E="",content:P=""}){return this.fetch.post("/webcast/v1/aweme/feedback/",{body:JSON.stringify(Object.assign(Object.assign({report_type:e,object_id:t,owner_id:n,reason:i,uri:o,report_desc:a,parent_id:r,reporter_appeal_reason:s,submit_type:"3"},l&&{verification_code:l}),{relevant_law:c,trusted_flagger_email:d,logout_reporter_email:u,legal_jurisdiction:p,related_ttid:v,report_menu_click_time:g,reporter_signature:m,live_report_type:h,live_request_page:_,live_cmp_ids:f,live_enter_from_merge:y,live_enter_method:b,live_action_type:w,duration_entrance_submit:x,target_anchor_id:T,target_audience_id:S,reported_user_ids:k,non_reported_user_ids:A,room_id:O,live_chat_type:E,content:P})),baseUrlType:4,headers:{"content-type":"application/json"}})}};T=(0,v.__decorate)([(0,w._)(),(0,v.__metadata)("design:paramtypes",[x.pM])],T);var S=n(35572),k=n(62564),A=n(74690),O=n(80339),E=n(26324),P=n(22113),I=n.n(P),C=n(300),j=n.n(C);const L={[a.TOBACCO]:0,[a.VIOLENT]:1,[a.DANGEROUS]:2,[a.OVERLY_SEXUALIZED]:3,[a.SPAM]:4,[a.UNORIGINAL]:5,[a.MINOR_SAFETY]:6,[a.UNORIGINAL_NR]:7,[a.REPRODUCED]:8,[a.COMMUNITY_GUIDELINES]:9,[a.OTHER]:10},M=110,N=999,D={[M]:0,[N]:1},R=e=>{var t;return null!==(t=D[e])&&void 0!==t?t:0},B=()=>({[a.MINOR_SAFETY]:{title:"vid_mod_analytics_penalty_reason_minor_title",description:"vid_mod_analytics_penalty_reason_minor_desc"},[a.UNORIGINAL]:{title:"vid_mod_analytics_penalty_reason_unoriginal_title",description:"vid_mod_analytics_penalty_reason_unoriginal_desc"},[a.UNORIGINAL_NR]:{title:"vid_mod_analytics_nr_vid_penalty_reason_unoriginal_title",description:"vid_mod_analytics_nr_vid_penalty_reason_unoriginal_desc"},[a.REPRODUCED]:{title:"vid_mod_analytics_nr_acct_penalty_reason_unoriginal_title",description:"vid_mod_analytics_nr_acct_penalty_reason_unoriginal_desc"},[a.SPAM]:{title:"vid_mod_analytics_penalty_reason_spam_title",description:"vid_mod_analytics_penalty_reason_spam_desc"},[a.OVERLY_SEXUALIZED]:{title:"vid_mod_analytics_penalty_reason_sexual_title",description:"vid_mod_analytics_penalty_reason_sexual_desc"},[a.TOBACCO]:{title:"vid_mod_analytics_penalty_reason_tobacco_title",description:"vid_mod_analytics_penalty_reason_tobacco_desc"},[a.DANGEROUS]:{title:"vid_mod_analytics_penalty_reason_stunts_title",description:"vid_mod_analytics_penalty_reason_stunts_desc"},[a.VIOLENT]:{title:"vid_mod_analytics_penalty_reason_graphic_title",description:"vid_mod_analytics_penalty_reason_graphic_desc"},[a.OTHER]:{title:"vid_mod_analytics_penalty_reason_fyf_title",description:"vid_mod_analytics_penalty_reason_fyf_desc"},[a.COMMUNITY_GUIDELINES]:{title:"vid_mod_analytics_penalty_reason_fyf_title",description:"vid_mod_analytics_penalty_reason_fyf_desc"}}),U={[r.CANNOT_SUBMIT]:f.nW.APPEAL_FAIL,[r.CAN_SUBMIT]:f.nW.ON_APPEAL,[r.NO_PENALTY]:f.nW.APPEAL_SUCCESS,[r.REVIEWING]:f.nW.ON_APPEAL,[r.SUCCEEDED]:f.nW.APPEAL_SUCCESS,[r.FAILED]:f.nW.APPEAL_FAIL,[r.TIMEOUT]:f.nW.APPEAL_EXPIRED};var F=n(11983),V=n(45297),z=n(11654);const H={punish_key:"",object_type:f.w$.VIDEO,object_id:"",content_info_list:[]};let q=class extends g.E{constructor(e,t,n){super(),this.service=e,this.slardarService=t,this.t=n,this.defaultState={detail:H,reporterAppealInfo:null,violationList:[],contentDetailList:[],appealReasons:[],audioCopyrightInfo:null,currentAppealReason:null,status:"init",isV2:!0,surveyData:null,loggedOutCode:null}}setLoggedOutCode(e,t){e.loggedOutCode=t}setCurrentAppealReason(e,t){e.currentAppealReason=t}setPunishKey(e,t){e.punishKey=t}setViolationAppealStatus(e,t){e.status=t}setReporterAppealData(e,t){e.contentDetailList=t.contentDetailList,e.detail=t.detail,e.reporterAppealInfo=t.reporterAppealInfo}setViolationAppealData(e,t){var n,i,o,a;const r=null!==(n=t.detail)&&void 0!==n?n:H,s=(null!==(o=null===(i=null==r?void 0:r.violation_info)||void 0===i?void 0:i.reason)&&void 0!==o?o:[]).map((e=>({title:e.reason_title,content:e.reason_content,content_v2:e.reason_content_v2,url:e.inner_link_url,urlText:e.inner_link_text})));e.detail=r,e.surveyData=null!==(a=t.surveyData)&&void 0!==a?a:null,e.contentDetailList=s}setAppealStatus(e,t){e.detail.violation_info&&e.detail.violation_info.appeal_info&&(e.detail.violation_info.appeal_info.appeal_status=t)}setPenaltyDetailData(e,t){var n,i,o,s;const l=(e=>{if(e.every((e=>e.reason_codes.every((e=>Number(e)<100))))){const t=B();return(e=>{let t=[];if(e.forEach((e=>t=t.concat(e.reason_codes.map(Number)))),t=I()(t.map((e=>Object.keys(L).includes(e.toString())?e:a.OTHER))).sort(((e,t)=>L[e]-L[t])),t.length>=2){const[e,n]=t.slice(-2);(1===n&&0===e||0===n&&1===e)&&t.pop()}return t})(e).map((e=>({code:String(e),description:t[e].description,title:t[e].title})))}let t=[],n=[];return e.forEach((e=>{var i;"TNS"!==e.issuer&&e.reason_codes.forEach((e=>{const{title:t,description:i}=B()[Number(e)];n.push({title:t,code:e,description:i})})),null===(i=e.penalty_reason_info_list)||void 0===i||i.forEach((e=>{const{title:n,content:i,code:o,url:a,link:r,dsa_content:s}=e;t.push({title:n,description:i,dsaDescriptionParagraphs:s,url:a,linkText:r,code:o})}))})),t=j()(t,"code").sort(((e,t)=>R(Number(e.code))-R(Number(t.code)))),n=j()(n,"code"),t.concat(n)})(null!==(n=t.penaltyDetails.penaltyDetails.penalties)&&void 0!==n?n:[]).map((e=>({title:this.t(e.title),content:this.t(e.dsaDescriptionParagraphs?`${e.dsaDescriptionParagraphs.join("\n")}\n${this.t("vidModAnalytics_detailPg_sectionHumanMod_sectionBody")}`:e.description),url:e.url,urlText:e.linkText}))),c=new Date(null!==(i=t.penaltyDetails.videoInfo.Items[0].CreateTime)&&void 0!==i?i:0);let d;d=t.penaltyDetails.penaltyDetails.appeal_status===r.SUCCEEDED?"appeal_approved":t.penaltyDetails.penaltyDetails.appeal_status!==r.CANNOT_SUBMIT&&t.penaltyDetails.penaltyDetails.appeal_status!==r.FAILED||141!==t.penaltyDetails.videoInfo.Items[0].Status?"video_not_eligible":"video_removed";const u={header:this.t("vidModAnalytics_detailPg_sectionVideoDetails_sectionLabel"),title:null!==(o=t.penaltyDetails.videoInfo.Items[0].Desc)&&void 0!==o?o:"",content:this.t("vidModAnalytics_detailPg_sectionDatePosted_sectionLabel").replace("%1$s",c.toLocaleDateString()).replace("%2$s",c.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})),image_url:t.penaltyDetails.videoInfo.Items[0].CoverUrl[0],content_id:t.penaltyDetails.videoInfo.Items[0].Vid?BigInt(t.penaltyDetails.videoInfo.Items[0].Vid):BigInt(0),reason_code:t.penaltyDetails.penaltyDetails.penalties?t.penaltyDetails.penaltyDetails.penalties[0].reason_codes[0]:"",result_type:d};e.detail={object_id:t.penaltyDetails.videoInfo.Items[0].ItemId,object_type:f.w$.VIDEO,punish_key:"",content_info_list:[u],violation_info:{header:this.t("vid_mod_analytics_appeal_detailpg_reason_title"),reason:[],appeal_info:{appeal_status:U[null!==(s=t.penaltyDetails.penaltyDetails.appeal_status)&&void 0!==s?s:2]}},base_info:{appeal_fail_page_title:{title:this.t("vid_mod_analytics_detail_pg_title"),sub_title:this.t("vid_mod_analytics_detail_pg_desc"),icon_type:f.AT.STATUS_FAIL},appeal_success_page_title:{title:this.t("vidModAnalytics_detailPg_sectionSuccess_header"),sub_title:this.t("vid_mod_analytics_appeal_success_detail_pg_desc"),icon_type:f.AT.STATUS_SUCCESS},appeal_video_removed_page_title:{title:this.t("vid_mod_analytics_appeal_detail_pg_title"),sub_title:this.t("vid_mod_analytics_appeal_detail_pg_desc"),icon_type:f.AT.STATUS_FAIL},index_page_title:{icon_type:f.AT.STATUS_RECEIVED,title:this.t("vidModAnalytics_appealSubmitted_sectionTitle_header"),sub_title:this.t("vid_mod_analytics_appeal_rcv_detail_pg_desc")},appeal_reviewing_page_title:{icon_type:f.AT.STATUS_RECEIVED,title:this.t("vidModAnalytics_appealSubmitted_sectionTitle_header"),sub_title:this.t("vid_mod_analytics_appeal_rcv_detail_pg_desc")}},video_status:t.penaltyDetails.videoInfo.Items[0].Status},e.contentDetailList=l}getPenaltyDetail(e){return e.pipe((0,S.p)((e=>this.service.getPenaltyDetail(e).pipe((0,k.T)((t=>{var n;return t&&0===t.status_code?this.getActions().setPenaltyDetailData({penaltyDetails:{penaltyDetails:t,videoInfo:e.videoInfo,vid:e.vid,uid:e.uid}}):(this.commonToastError(),this.slardarService.emitEvent("violation_detail_fetch_failed",{count:1},{status_code:(null===(n=t.status_code)||void 0===n?void 0:n.toString())||"",status_msg:t.status_msg||""}),this.getActions().setPenaltyDetailData({penaltyDetails:{penaltyDetails:{appeal_status:r.FAILED},videoInfo:e.videoInfo,vid:e.vid,uid:e.uid}}))})),(0,A.Z)(this.getActions().setViolationAppealStatus("loading")),(0,O.q)(this.getActions().setViolationAppealStatus("idle")),(0,b.n)({callback:this.commonToastError})))))}setAppealReasons(e,t){e.appealReasons=t}getAppealReasons(e){return e.pipe((0,S.p)((e=>this.service.getAppealReasons(e).pipe((0,k.T)((e=>{var t;return e&&0===e.status_code?this.getActions().setAppealReasons(e.appeal_reasons):(this.commonToastError(),this.slardarService.emitEvent("appeal_reasons_fetch_failed",{count:1},{status_code:(null===(t=e.status_code)||void 0===t?void 0:t.toString())||"",status_msg:e.status_msg||""}),this.noop())})),(0,A.Z)(this.getActions().setViolationAppealStatus("loading")),(0,O.q)(this.getActions().setViolationAppealStatus("idle")),(0,b.n)({callback:this.commonToastError})))))}getViolationDetail(e){return e.pipe((0,S.p)((e=>this.service.getViolationDetail(e).pipe((0,k.T)((e=>{var t;return e&&0===e.status_code&&e.detail?this.getActions().setViolationAppealData({detail:null==e?void 0:e.detail,surveyData:null==e?void 0:e.survey_data}):(this.commonToastError(),this.slardarService.emitEvent("violation_detail_fetch_failed",{count:1},{status_code:(null===(t=e.status_code)||void 0===t?void 0:t.toString())||"",status_msg:e.status_msg||""}),this.noop())})),(0,A.Z)(this.getActions().setViolationAppealStatus("loading")),(0,O.q)(this.getActions().setViolationAppealStatus("idle")),(0,b.n)({callback:this.commonToastError})))))}getReporterAppeal(e){return e.pipe((0,S.p)((({reportId:e,loggedOutCode:t})=>this.service.getReporterAppeal({report_id:e,verification_code:t}).pipe((0,k.T)((e=>{var t,n,i,o,a;if(e&&0===e.status_code&&e.detail){if(!e.report)return this.commonToastError(),this.slardarService.emitEvent("reporter_appeal_empty_report_info",{count:1},{status_code:(null===(t=e.status_code)||void 0===t?void 0:t.toString())||"",status_msg:e.status_msg||""}),this.noop();const a=((e,t)=>{var n;return{report_info:{common_data:e.common_data,live:e.live||null,non_live:e.non_live||null,live_comment:e.live_comment||null},post_info:"",reason:"",submit_status:null===(n=t.violation_info)||void 0===n?void 0:n.appeal_info.appeal_status}})(e.report,e.detail),r={detail:e.detail,reporterAppealInfo:a},s=(null!==(o=null===(i=null===(n=r.detail)||void 0===n?void 0:n.violation_info)||void 0===i?void 0:i.reason)&&void 0!==o?o:[]).map((e=>({title:e.reason_title,content:e.reason_content,url:e.inner_link_url,urlText:e.inner_link_text})));return this.getActions().setReporterAppealData({contentDetailList:s,detail:r.detail,reporterAppealInfo:r.reporterAppealInfo})}return this.commonToastError(),this.slardarService.emitEvent("reporter_appeal_status_not_ok",{count:1},{status_code:(null===(a=e.status_code)||void 0===a?void 0:a.toString())||"",status_msg:e.status_msg||""}),this.noop()})),(0,A.Z)(this.getActions().setViolationAppealStatus("loading")),(0,O.q)(this.getActions().setViolationAppealStatus("idle")),(0,b.n)({callback:this.commonToastError})))))}postReporterAppeal(e){return e.pipe((0,S.p)((e=>this.service.postReporterAppeal(e).pipe((0,k.T)((e=>{var t;return e&&0===e.status_code?this.getActions().setAppealStatus(f.nW.ON_APPEAL):(this.commonToastError(),this.slardarService.emitEvent("reporter_appeal_submit_fail",{count:1},{status_code:(null===(t=e.status_code)||void 0===t?void 0:t.toString())||"",status_msg:e.status_message||""}),this.noop())})),(0,A.Z)(this.getActions().setViolationAppealStatus("submitting")),(0,O.q)(this.getActions().setViolationAppealStatus("submitted")),(0,b.n)({callback:this.commonToastError})))))}postLiveReporterAppeal(e){return e.pipe((0,S.p)((e=>this.service.postLiveReporterAppeal(e).pipe((0,k.T)((e=>{var t;return e&&0===e.status_code?this.getActions().setAppealStatus(f.nW.ON_APPEAL):(this.commonToastError(),this.slardarService.emitEvent("live_reporter_appeal_submit_fail",{count:1},{status_code:(null===(t=e.status_code)||void 0===t?void 0:t.toString())||"",status_msg:e.status_message||""}),this.noop())})),(0,A.Z)(this.getActions().setViolationAppealStatus("submitting")),(0,O.q)(this.getActions().setViolationAppealStatus("submitted")),(0,b.n)({callback:this.commonToastError})))))}postViolationAppeal(e){return e.pipe((0,S.p)((e=>this.service.postAppealCommit(e).pipe((0,k.T)((e=>{var t;return e&&0===e.status_code?this.getActions().setAppealStatus(f.nW.ON_APPEAL):(this.commonToastError(),this.slardarService.emitEvent("violation_appeal_submit_fail",{count:1},{status_code:(null===(t=e.status_code)||void 0===t?void 0:t.toString())||"",status_msg:e.status_msg||""}),this.noop())})),(0,A.Z)(this.getActions().setViolationAppealStatus("submitting")),(0,O.q)(this.getActions().setViolationAppealStatus("submitted")),(0,b.n)({callback:this.commonToastError})))))}commonToastError(){F.F.destroy(),F.F.open({content:this.t(V.z$),duration:3,widthType:"half"})}};(0,v.__decorate)([(0,m.h5)(),(0,v.__metadata)("design:type",Function),(0,v.__metadata)("design:paramtypes",[Object,String]),(0,v.__metadata)("design:returntype",void 0)],q.prototype,"setLoggedOutCode",null),(0,v.__decorate)([(0,m.h5)(),(0,v.__metadata)("design:type",Function),(0,v.__metadata)("design:paramtypes",[Object,Object]),(0,v.__metadata)("design:returntype",void 0)],q.prototype,"setCurrentAppealReason",null),(0,v.__decorate)([(0,m.h5)(),(0,v.__metadata)("design:type",Function),(0,v.__metadata)("design:paramtypes",[Object,String]),(0,v.__metadata)("design:returntype",void 0)],q.prototype,"setPunishKey",null),(0,v.__decorate)([(0,m.h5)(),(0,v.__metadata)("design:type",Function),(0,v.__metadata)("design:paramtypes",[Object,String]),(0,v.__metadata)("design:returntype",void 0)],q.prototype,"setViolationAppealStatus",null),(0,v.__decorate)([(0,m.h5)(),(0,v.__metadata)("design:type",Function),(0,v.__metadata)("design:paramtypes",[Object,Object]),(0,v.__metadata)("design:returntype",void 0)],q.prototype,"setReporterAppealData",null),(0,v.__decorate)([(0,m.h5)(),(0,v.__metadata)("design:type",Function),(0,v.__metadata)("design:paramtypes",[Object,Object]),(0,v.__metadata)("design:returntype",void 0)],q.prototype,"setViolationAppealData",null),(0,v.__decorate)([(0,m.h5)(),(0,v.__metadata)("design:type",Function),(0,v.__metadata)("design:paramtypes",[Object,Number]),(0,v.__metadata)("design:returntype",void 0)],q.prototype,"setAppealStatus",null),(0,v.__decorate)([(0,m.h5)(),(0,v.__metadata)("design:type",Function),(0,v.__metadata)("design:paramtypes",[Object,Object]),(0,v.__metadata)("design:returntype",void 0)],q.prototype,"setPenaltyDetailData",null),(0,v.__decorate)([(0,m.Mj)(),(0,v.__metadata)("design:type",Function),(0,v.__metadata)("design:paramtypes",[E.c]),(0,v.__metadata)("design:returntype",void 0)],q.prototype,"getPenaltyDetail",null),(0,v.__decorate)([(0,m.h5)(),(0,v.__metadata)("design:type",Function),(0,v.__metadata)("design:paramtypes",[Object,Array]),(0,v.__metadata)("design:returntype",void 0)],q.prototype,"setAppealReasons",null),(0,v.__decorate)([(0,m.Mj)(),(0,v.__metadata)("design:type",Function),(0,v.__metadata)("design:paramtypes",[E.c]),(0,v.__metadata)("design:returntype",void 0)],q.prototype,"getAppealReasons",null),(0,v.__decorate)([(0,m.Mj)(),(0,v.__metadata)("design:type",Function),(0,v.__metadata)("design:paramtypes",[E.c]),(0,v.__metadata)("design:returntype",void 0)],q.prototype,"getViolationDetail",null),(0,v.__decorate)([(0,m.Mj)(),(0,v.__metadata)("design:type",Function),(0,v.__metadata)("design:paramtypes",[E.c]),(0,v.__metadata)("design:returntype",void 0)],q.prototype,"getReporterAppeal",null),(0,v.__decorate)([(0,m.Mj)(),(0,v.__metadata)("design:type",Function),(0,v.__metadata)("design:paramtypes",[E.c]),(0,v.__metadata)("design:returntype",void 0)],q.prototype,"postReporterAppeal",null),(0,v.__decorate)([(0,m.Mj)(),(0,v.__metadata)("design:type",Function),(0,v.__metadata)("design:paramtypes",[E.c]),(0,v.__metadata)("design:returntype",void 0)],q.prototype,"postLiveReporterAppeal",null),(0,v.__decorate)([(0,m.Mj)(),(0,v.__metadata)("design:type",Function),(0,v.__metadata)("design:paramtypes",[E.c]),(0,v.__metadata)("design:returntype",void 0)],q.prototype,"postViolationAppeal",null),q=(0,v.__decorate)([(0,h.n)("ViolationAppeal"),(0,v.__param)(2,(0,_.y)(y.hp)),(0,v.__metadata)("design:paramtypes",[T,z.V,Function])],q);var W=n(40099),$=n(62186),G=n(72153);const Y=(0,$.default)("div",{target:"esnvg680"})({height:"100%",width:"100%",display:"flex",flexDirection:"column",alignItems:"stretch",overflow:"hidden"},"label:Container;"),Z=(0,$.default)("div",{target:"esnvg681"})((({showTopBanner:e})=>[{display:"flex",flexDirection:"row",alignItems:"center",margin:"24px 24px 16px 24px"},e&&{marginBottom:"0"}]),"label:DivHeader;"),K=(0,$.default)("span",{target:"esnvg682"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"H4",color:"TextPrimary",fontWeight:"bold"}),{flexGrow:1}]),"label:SpanHeaderTitle;"),X=(0,$.default)("div",{target:"esnvg683"})((({theme:{direction:e,colors:t}})=>[Object.assign(Object.assign({width:"24px",height:"24px",cursor:"pointer"},"rtl"===e&&{transform:"rotate(180deg)"}),{"> svg > path":{fill:t.TextPrimary}})]),"label:DivBackButton;");var Q=n(93037),J=n(28261),ee=n(89162),te=n(86223),ne=n(54622),ie=n(41271),oe=n(84827),ae=n(25616);const re=(0,$.default)("div",{target:"edtqnxl0"})({padding:"32px",height:"100%"},"label:Container;"),se=(0,$.default)("div",{target:"edtqnxl1"})({display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center"},"label:SectionAppealStatus;"),le=(0,$.default)("div",{target:"edtqnxl2"})((e=>[(0,G.zy)({theme:e.theme,color:e.$color}),{display:"flex",justifyContent:"center",alignItems:"center"}]),"label:DivIconWrapper;"),ce=(0,$.default)("div",{target:"edtqnxl3"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",color:"TextPrimary",fontWeight:"bold"}),{fontSize:"24px",lineHeight:"36px",marginTop:"27px",textAlign:"center"}]),"label:AppealTitle;"),de=(0,$.default)("div",{target:"edtqnxl4"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",color:"TextSecondary",fontWeight:"normal"}),{fontSize:"16px",lineHeight:"22px",marginTop:"16px",textAlign:"center"}]),"label:AppealSubtitle;"),ue=(0,$.default)("button",{target:"edtqnxl5"})((({theme:e})=>({marginTop:"24px",height:"48px",width:"100%",padding:"12px 24px",cursor:"pointer",background:e.colors.Primary,border:"none",borderRadius:"8px"})),"label:PrimaryButton;"),pe=(0,$.default)("div",{target:"edtqnxl6"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",color:"ConstTextInverse",fontWeight:"bold"}),{fontSize:"16px",lineHeight:"24px",textAlign:"center"}]),"label:PrimaryButtonText;"),ve=({handleClose:e})=>{const t=(0,ae.s)();return(0,u.jsxs)(re,{children:[(0,u.jsxs)(se,{children:[(0,u.jsx)(le,{$color:"LinePrimary2",children:(0,u.jsx)(te.Q,{size:72})}),(0,u.jsx)(ce,{children:t("dsa_illegal_appeal_expired_header")}),(0,u.jsx)(de,{children:t("dsa_illegal_appeal_expired_desc")})]}),(0,u.jsx)(ue,{onClick:e,children:(0,u.jsx)(pe,{children:t("dsa_illegal_appeal_button_ok")})})]})};var ge=n(60094),me=n(35626),he=n.n(me);const _e={position:"absolute",bottom:0,left:0,height:0,overflow:"hidden","padding-top":0,"padding-bottom":0,border:"none"},fe=["box-sizing","width","font-size","font-weight","font-family","font-style","letter-spacing","text-indent","white-space","word-break","overflow-wrap","padding-left","padding-right"];function ye(e,t){var n;if("letters"!==t&&"words"!==t)throw new Error(`Unsupported options basedOn: ${t}`);if(e.nodeType===Node.TEXT_NODE){const t=document.createDocumentFragment();Array.from(e.textContent||"").forEach((e=>{t.appendChild(function(e){const t=document.createElement("span");return t.className="LinesEllipsis-unit",t.textContent=e,t}(e))})),null===(n=e.parentNode)||void 0===n||n.replaceChild(t,e)}else if(e.nodeType===Node.ELEMENT_NODE){const n=[].slice.call(e.childNodes),i=n.length;for(let e=0;enull,winWidth:void 0},ke=Object.keys(Se);class Ae extends W.Component{constructor(e){super(e),this.state={html:e.unsafeHTML,clamped:!1},this.canvas=null,this.maxLine=0,this.nlUnits=[]}componentDidMount(){this.initCanvas(),this.reflow(this.props)}componentDidUpdate(e){e.winWidth!==this.props.winWidth&&this.copyStyleToCanvas(),he()(this.props,e)||this.reflow(this.props)}componentWillUnmount(){this.canvas.parentNode.removeChild(this.canvas)}setState(e,t){return void 0!==e.clamped&&(this.clamped=e.clamped),super.setState(e,t)}initCanvas(){if(this.canvas)return;this.canvas=document.createElement("div");const{canvas:e}=this;e.className=`LinesEllipsis-canvas ${this.props.className}`,e.setAttribute("aria-hidden","true"),this.copyStyleToCanvas(),Object.keys(_e).forEach((t=>{e.style[t]=_e[t]})),document.body.appendChild(e)}copyStyleToCanvas(){const e=window.getComputedStyle(this.target);fe.forEach((t=>{this.canvas.style[t]=e[t]}))}reflow(e){this.maxLine=Number(e.maxLine)||1,this.canvas.innerHTML=e.unsafeHTML;const t=e.basedOn||(/^[\x00-\x7F]+$/.test(e.unsafeHTML)?"words":"letters");ye(this.canvas,t);const n={clamped:this.putEllipsis(this.calcIndexes()),html:this.canvas.innerHTML};this.setState(n,e.onReflow.bind(this,n))}calcIndexes(){const e=[0];this.nlUnits=Array.from(this.canvas.querySelectorAll(".LinesEllipsis-unit"));const{nlUnits:t}=this,n=t.length;if(!t.length)return e;const i=t.find(Te);if(!i)return e;let o=1,{offsetTop:a}=i;for(let i=1;i1&&(o++,e.push(i),a=t[i].offsetTop,o>this.maxLine));i++);return e}putEllipsis(e){if(e.length<=this.maxLine)return!1;this.nlUnits=this.nlUnits.slice(0,e[this.maxLine]);let t=this.nlUnits.pop();const n=this.makeEllipsisSpan();do{we(t,this.canvas),xe(t).appendChild(n),t=this.nlUnits.pop()}while(t&&(!Te(t)||n.offsetHeight>t.offsetHeight||n.offsetTop>t.offsetTop));return t&&be(t),this.nlUnits.forEach(be),!0}makeEllipsisSpan(){const{ellipsisHTML:e,ellipsis:t}=this.props,n=document.createElement("span"),i=document.createElement("span");return i.className="p1 font-semibold text-color-TextSecondary",i.setAttribute("style","cursor: pointer;"),e?i.innerHTML=e:i.textContent=t,n.appendChild(i),n}isClamped(){return this.clamped}render(){const{html:e,clamped:t}=this.state,n=this.props,{component:i,className:o,unsafeHTML:a}=n,r=(0,v.__rest)(n,["component","className","unsafeHTML"]);return(0,u.jsx)(i,Object.assign({className:`LinesEllipsis ${t?"LinesEllipsis--clamped":""} ${o}`,ref:e=>{this.target=e}},function(e,t){if(!e||"object"!=typeof e)return e;const n={};return Object.keys(e).forEach((i=>{t.indexOf(i)>-1||(n[i]=e[i])})),n}(r,ke),{children:(0,u.jsx)("div",{dangerouslySetInnerHTML:{__html:t?e:a}})}))}}Ae.defaultProps=Se;const Oe=Ae,Ee=(0,$.default)("div",{target:"e1q7dabl0"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P1",color:"TextPrimary",fontWeight:"medium"}),{marginBottom:12}]),"label:SectionHeader;"),Pe=(0,$.default)("div",{target:"e1q7dabl1"})((({showDivider:e})=>[{display:"flex",alignItems:"flex-start",justifyContent:"space-between"},e&&{cursor:"pointer",paddingBottom:8}]),"label:ContentHeader;"),Ie=(0,$.default)("div",{target:"e1q7dabl2"})((({theme:e,isList:t})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextSecondary",fontWeight:"normal"}),{marginBottom:8},t&&{paddingInlineEnd:30}]),"label:ContentTitle;"),Ce=(0,$.default)("div",{target:"e1q7dabl3"})((({theme:e,showDivider:t,isList:n})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextTertiaryAlt",fontWeight:"normal"}),n&&Object.assign({paddingTop:16},t&&{paddingTop:0,marginBottom:12})]),"label:ContentDescription;"),je=(0,$.default)("div",{target:"e1q7dabl4"})([{marginBottom:16}],"label:ContentDivider;"),Le=(0,$.default)("div",{target:"e1q7dabl5"})((({theme:{direction:e,colors:t},isShow:n})=>[Object.assign(Object.assign({minWidth:"16px",width:"16px",height:"16px",transition:"transform .4s"},"rtl"===e&&{transform:"rotate(180deg)"}),{"> svg > path":{fill:t.TextTertiary}}),n&&{transform:"rotateZ(-90deg)"}]),"label:DivArrowContainer;");var Me=n(72241),Ne=n(88091),De=n(8475);const Re=({isShowByDefault:e,showSeeMore:t,showDivider:n,item:i,seeMoreText:o,onToggle:a})=>{const[r,s]=(0,W.useState)(e),[l,c]=(0,W.useState)(!0),d=(0,W.useCallback)((()=>{0!==i.contentList.length&&s((e=>(a&&a(!e),!e)))}),[a,i]),p=(0,u.jsx)("section",{children:(0,u.jsx)("article",{children:i.contentList.map(((e,t)=>"break"===e.type?(0,u.jsx)("br",{},t):"text"===e.type?(0,u.jsx)("p",{children:e.text},t):"list"===e.type?(0,u.jsx)("ul",{children:(e.list||[]).map(((e,n)=>(0,u.jsx)("li",{className:0===t?"mb-8":"my-8",children:e},n)))},t):null))})}),{value:v}=(0,W.useContext)(Me.xm),g=(0,u.jsx)("span",{style:Object.assign({color:"rgba(0, 0, 0, 0.72)",fontWeight:500},v&&{color:"rgba(255, 255, 255, 0.75)"}),children:`... ${o}`});return(0,u.jsx)(u.Fragment,{children:t?(0,u.jsxs)("article",{children:[(0,u.jsx)(Ie,{children:i.title}),l?(0,u.jsx)(Ce,{children:(0,u.jsx)(Oe,{"data-cy":"see-more-btn",onClick:()=>c(!1),unsafeHTML:ge.renderToString(p),maxLine:"4",basedOn:"letters",ellipsisHTML:ge.renderToString(g),style:{overflowWrap:"break-word",wordBreak:"break-word",wordWrap:"break-word"}})}):(0,u.jsx)(Ce,{children:p})]}):(0,u.jsxs)("article",{children:[(0,u.jsxs)(Pe,{showDivider:n,onClick:d,children:[(0,u.jsx)(Ie,{isList:!0,children:i.title}),i.contentList.length>0&&(0,u.jsx)(Le,{isShow:r,children:(0,u.jsx)(De.A,{width:16,height:16})})]}),r&&(0,u.jsx)(Ce,{isList:!0,showDivider:n,children:p}),n&&(0,u.jsx)(je,{children:(0,u.jsx)(Ne.zm,{size:"medium",color:"LineSecondary"})})]})})},Be=/([\s\S]*?)<\/li>/g,Ue=()=>{},Fe=({title:e,list:t,isShowByDefault:n=!1,seeMoreText:i="",handleOpenLink:o=Ue,onToggle:a})=>{const r=(0,W.useMemo)((()=>t.map((e=>{var t;const n=Object.assign(Object.assign({},e),{contentList:[]});if(e.content_v2&&e.content_v2.length>1&&""!==e.content_v2[0])return e.content_v2.forEach(((t,i)=>{n.contentList.push({text:t,type:"text"}),e.content_v2&&i!==e.content_v2.length-1&&n.contentList.push({text:"",type:"break"})})),n;if(!e.content)return n;let i=0,o=Be.exec(e.content);for(;null!==o;){o.index!==i&&n.contentList.push({text:e.content.slice(i,o.index),type:"text"});const{length:a}=n.contentList,r=o.length>1?o[1]:"";a&&"list"===n.contentList[a-1].type?null===(t=n.contentList[a-1].list)||void 0===t||t.push(r):n.contentList.push({list:[r],type:"list"}),i=o.index+o[0].length,o=Be.exec(e.content)}return i<=e.content.length&&n.contentList.push({text:e.content.slice(i),type:"text"}),n}))),[t]);return(0,u.jsxs)("div",{children:[(0,u.jsx)(Ee,{children:e}),r.map(((e,t)=>(0,u.jsx)(Re,{item:e,isShowByDefault:n,seeMoreText:i,showSeeMore:1===r.length,showDivider:1!==r.length&&t!==r.length-1,onToggle:e=>null==a?void 0:a(t,e),onOpenLink:o},t)))]})};var Ve=n(50708),ze=n.n(Ve);const He=(0,$.default)("div",{target:"e1updv710"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P1",color:"TextPrimary",fontWeight:"medium"}),{marginBottom:12}]),"label:SectionHeader;"),qe=(0,$.default)("div",{target:"e1updv711"})((({theme:e,hasBorder:t})=>[{fontSize:0,height:40,width:40,borderRadius:24,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:e.colors.BGTertiary,color:e.colors.TextPrimary},t&&{border:`1px solid ${e.colors.LineSecondary2}`}]),"label:DivIconWrapper;"),We=(0,$.default)("div",{target:"e1updv712"})((({isHelpAndSupport:e})=>[{display:"flex",flexDirection:"row"},e?{alignItems:"center"}:{alignItems:"start"}]),"label:SectionContentContainer;"),$e=(0,$.default)("div",{target:"e1updv713"})((({theme:{direction:e},hasHeartIcon:t})=>[Object.assign({display:"flex",flexDirection:"column",alignItems:"start",flexGrow:1},"rtl"===e&&{marginLeft:0}),t&&{paddingInlineStart:12}]),"label:SectionContent;"),Ge=(0,$.default)("div",{target:"e1updv714"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P1",color:"TextSecondary",fontWeight:"normal"}),{wordBreak:"break-word"}]),"label:SectionContentMain;"),Ye=(0,$.default)("div",{target:"e1updv715"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextSecondary",fontWeight:"normal"}),{display:"inline"}]),"label:TitleText;"),Ze=(0,$.default)("div",{target:"e1updv716"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextPrimary",fontWeight:"semiBold"}),{display:"inline",cursor:"pointer"}]),"label:InnerLinkText;"),Ke=(0,$.default)("div",{target:"e1updv717"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextTertiaryAlt",fontWeight:"normal"}),{marginTop:4}]),"label:SectionContentFooter;"),Xe=(0,$.default)("div",{target:"e1updv718"})((({theme:{direction:e},imageUrl:t,isProfileIcon:n})=>[Object.assign({width:68,height:87,borderRadius:4,overflow:"hidden",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",position:"relative",marginTop:-33,marginLeft:12,backgroundImage:`url(${t})`},"rtl"===e&&{marginLeft:0,marginRight:12}),n&&{height:44,width:44,borderRadius:40}]),"label:VideoPoster;"),Qe=(0,$.default)("div",{target:"e1updv719"})({position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjEuNTAwNTYiIGhlaWdodD0iMTcuNzY4NCIgcng9IjAuNSIgdHJhbnNmb3JtPSJtYXRyaXgoMC42OTkxODYgLTAuNzE0OTQgLTAuNzE0OTQgLTAuNjk5MTg2IDE1LjIwMzMgMTYuMjUpIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjA3MDcgMTQuNTU1OUMxMS4xODA2IDE0LjU1NTkgMTIuMjM0MyAxNC4zODcyIDEzLjE4MjMgMTQuMDg0NEwxMi4wMDIxIDEyLjkzMDJDMTEuOTgwMyAxMi45MDg5IDExLjk2MDggMTIuODg2IDExLjk0MzggMTIuODYyQzExLjM1OTMgMTIuOTg2NCAxMC43MzA4IDEzLjA1NTQgMTAuMDcwNyAxMy4wNTU0QzguMjY4OTUgMTMuMDU1NCA2LjcwMjE5IDEyLjU0MTggNS42MjU5NCAxMS43ODg0QzQuNTQ0OTUgMTEuMDMxNyA0LjA2ODQ5IDEwLjEzMDMgNC4wNjg0OSA5LjMwNDAzQzQuMDY4NDkgOC40Nzc4IDQuNTQ0OTUgNy41NzYzNiA1LjYyNTk0IDYuODE5NjdDNS42NTA3MSA2LjgwMjMzIDUuNjc1NzQgNi43ODUxMiA1LjcwMTAzIDYuNzY4MDRMNC42MTA4MSA1LjcwMTg1QzMuMzQ0MjUgNi42NDIxNyAyLjU2Nzk1IDcuOTA5NjQgMi41Njc5NSA5LjMwNDAzQzIuNTY3OTUgMTIuMjA0NiA1LjkyNzAyIDE0LjU1NTkgMTAuMDcwNyAxNC41NTU5Wk02Ljk3NzExIDQuNTE3OTRDNy45MjAzMyA0LjIxODczIDguOTY3NyA0LjA1MjE0IDEwLjA3MDcgNC4wNTIxNEMxNC4yMTQzIDQuMDUyMTQgMTcuNTczNCA2LjQwMzQ5IDE3LjU3MzQgOS4zMDQwM0MxNy41NzM0IDEwLjY5MzQgMTYuODAyNiAxMS45NTY4IDE1LjU0NDEgMTIuODk2MUwxNC40NTQ0IDExLjgzMDRDMTQuNDc0OSAxMS44MTY1IDE0LjQ5NTIgMTEuODAyNSAxNC41MTU0IDExLjc4ODRDMTUuNTk2NCAxMS4wMzE3IDE2LjA3MjggMTAuMTMwMyAxNi4wNzI4IDkuMzA0MDNDMTYuMDcyOCA4LjQ3NzggMTUuNTk2NCA3LjU3NjM2IDE0LjUxNTQgNi44MTk2N0MxMy40MzkxIDYuMDY2MyAxMS44NzI0IDUuNTUyNjggMTAuMDcwNyA1LjU1MjY4QzkuNDIxNDkgNS41NTI2OCA4LjgwMjgyIDUuNjE5MzYgOC4yMjY2MSA1LjczOTlMNi45NzcxMSA0LjUxNzk0WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC44NTY5IDExLjgxMDJDMTAuNjA4NyAxMS44ODggMTAuMzQ0NiAxMS45MyAxMC4wNzA3IDExLjkzQzguNjIwMzkgMTEuOTMgNy40NDQ3MiAxMC43NTQzIDcuNDQ0NzIgOS4zMDQwM0M3LjQ0NDcyIDkuMDUwNjUgNy40ODA2IDguODA1NjUgNy41NDc1NyA4LjU3Mzg0TDEwLjg1NjkgMTEuODEwMlpNOS4zMDI2NSA2Ljc5MjE4QzkuNTQ1NTcgNi43MTc5OSA5LjgwMzQ2IDYuNjc4MDggMTAuMDcwNyA2LjY3ODA4QzExLjUyMDkgNi42NzgwOCAxMi42OTY2IDcuODUzNzYgMTIuNjk2NiA5LjMwNDAzQzEyLjY5NjYgOS41NTA3NCAxMi42NjI2IDkuNzg5NSAxMi41OTkgMTAuMDE1OUw5LjMwMjY1IDYuNzkyMThaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K')",backgroundSize:"20px 20px",backgroundPosition:"center",backgroundRepeat:"no-repeat"},"label:MaskIcon;");var Je=n(84987);const et={id:"heart-4636b1b5",use:"heart-4636b1b5-usage",viewBox:"0 0 40 40",content:''};function tt(e){const t=(0,W.useContext)(Je.X);return(0,W.useLayoutEffect)((()=>(t.add(et),()=>{t.remove("heart-4636b1b5")})),[]),(0,u.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,u.jsx)("use",{xlinkHref:"#heart-4636b1b5"},void 0)}),void 0)}const nt={id:"photo-4dee05ae",use:"photo-4dee05ae-usage",viewBox:"0 0 48 48",content:''};function it(e){const t=(0,W.useContext)(Je.X);return(0,W.useLayoutEffect)((()=>(t.add(nt),()=>{t.remove("photo-4dee05ae")})),[]),(0,u.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,u.jsx)("use",{xlinkHref:"#photo-4dee05ae"},void 0)}),void 0)}var ot=n(62541),at=n(32567),rt=n(54977),st=n(87992),lt=n(81678),ct=n(86406),dt=n(63581),ut=n(93608);const pt=e=>{var t;const{contentInfo:n,handlePressLink:i,title:o}=e;if(null==n?void 0:n.content_id){const e={item_id:n.content_id,result_type:n.result_type,reason_code:n.reason_code};ut.f.event("web_appeal_result_show",e)}const a=(e,t,n)=>{var i,o;if(n){let e=null!==(i=n.text)&&void 0!==i?i:"";for(const t of null!==(o=n.elements)&&void 0!==o?o:[])e=e.replace(t.placeholder,`
`);return t?`"${e}"`:e}return t?`"${e}"`:e},r=e=>{let t,n=!0;switch(e){case f.AT.VIDEO:t=(0,u.jsx)(ot.q,{size:20});break;case f.AT.COMMENT:t=(0,u.jsx)(at.S,{size:20});break;case f.AT.AUDIO:t=(0,u.jsx)(rt.G,{size:20});break;case f.AT.LINK:t=(0,u.jsx)(st.j,{size:20});break;case f.AT.HASHTAG:t=(0,u.jsx)(lt.g,{size:20});break;case f.AT.IMAGE:t=(0,u.jsx)(ct.P,{size:20});break;case f.AT.USER:t=(0,u.jsx)(dt.Y,{size:20});break;case f.AT.PHOTO:t=(0,u.jsx)(it,{width:20,height:20});break;case f.AT.HEART:t=(0,u.jsx)(tt,{width:40,height:40}),n=!1;break;default:t=(0,u.jsx)(dt.Y,{size:20})}return(0,u.jsx)(qe,{hasBorder:n,children:t})},s=n?[n]:[];return(0,u.jsxs)("div",{children:[(0,u.jsx)(He,{children:null!==(t=null==n?void 0:n.header)&&void 0!==t?t:o}),null==s?void 0:s.map(((e,t)=>{const{title:n,content:o,has_quote:s,inner_link_text:l,inner_link_url:c,image_url:d,image_has_mask:p,icon_type:v,rich_text:g}=e;return(0,u.jsxs)(We,{isHelpAndSupport:v===f.AT.HEART,children:[v===f.AT.HEART&&r(v),(0,u.jsxs)($e,{hasHeartIcon:v===f.AT.HEART,children:[(0,u.jsxs)(Ge,{children:[n&&(0,u.jsx)(Ye,{dangerouslySetInnerHTML:{__html:ze().sanitize(a(n,s,g))}}),l&&(0,u.jsxs)(Ze,{onClick:()=>i&&i(c),children:[" ",l]})]}),(0,u.jsx)(Ke,{children:o})]}),d&&(0,u.jsx)(Xe,{imageUrl:d,isProfileIcon:v===f.AT.PROFILE,children:p&&(0,u.jsx)(Qe,{})})]},t)}))]})},vt=(0,$.default)("div",{target:"ewrmc1w0"})({paddingLeft:24,paddingRight:24,height:"100%",flexGrow:1},"label:Container;"),gt=(0,$.default)("div",{target:"ewrmc1w1"})((({theme:e})=>({padding:16,backgroundColor:e.colors.BGPrimary,borderRadius:8,marginBottom:8})),"label:ComponentWrapper;"),mt=(0,$.default)("div",{target:"ewrmc1w2"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P3",color:"TextSecondary",fontWeight:"normal"})]),"label:FooterText;"),ht=(0,$.default)("div",{target:"ewrmc1w4"})((({showAppealButton:e})=>[{position:"relative",bottom:"0",left:"0",width:"100%",height:54,marginBottom:12,padding:8,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},e&&{alignItems:"start",paddingLeft:24}]),"label:DivFooter;"),_t=(0,$.default)("div",{target:"ewrmc1w5"})({display:"flex",flexDirection:"column",height:"580px",overflowY:"auto"},"label:ContainerWrapper;"),ft=(0,$.default)("div",{target:"ewrmc1w6"})({display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",marginBottom:32},"label:SectionAppealStatus;"),yt=(0,$.default)("div",{target:"ewrmc1w7"})((e=>[(0,G.zy)({theme:e.theme,color:e.$color}),{display:"flex",justifyContent:"center",alignItems:"center"}]),"label:DivIconWrapper;"),bt=(0,$.default)("div",{target:"ewrmc1w8"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"H4",color:"TextPrimary",fontWeight:"bold"}),{marginTop:18,textAlign:"center"}]),"label:AppealTitle;"),wt=(0,$.default)("div",{target:"ewrmc1w9"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextSecondary",fontWeight:"normal"}),{marginTop:12,textAlign:"center"}]),"label:AppealSubtitle;"),xt=(0,$.default)("div",{target:"ewrmc1w10"})({cursor:"pointer",padding:"9px",height:"32px"},"label:DivCloseButton;"),Tt=(0,$.default)("div",{target:"ewrmc1w11"})({flexGrow:1},"label:FlexGrowDiv;"),St=(0,$.default)("button",{target:"ewrmc1w12"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P3",color:"ConstTextInverse",fontWeight:"semiBold"}),{height:"36px",padding:"7px 16px",position:"absolute",cursor:"pointer",right:"24px",color:e.colors.ConstTextInverse,background:e.colors.Primary,border:"none",borderRadius:"4px",":disabled":{background:e.colors.BGPlaceholderDefault,color:e.colors.TextQuaternary}}]),"label:ButtonSubmit;"),kt=(0,$.default)("div",{target:"e1ouhrz80"})((({hideMargin:e=!1})=>Object.assign({},!e&&{marginTop:12})),"label:HyperlinkTextContainer;"),At=(0,$.default)("div",{target:"e1ouhrz81"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextSecondary",fontWeight:"normal"}),{display:"inline"}]),"label:MainTextContent;"),Ot=(0,$.default)("div",{target:"e1ouhrz82"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextPrimary",fontWeight:"semiBold"}),{display:"inline",cursor:"pointer"}]),"label:LinkTextContent;"),Et=e=>{const{hideMargin:t=!1,btnText:n,onClick:i}=e;if(!n)return null;const{text:o,links:a=[]}=n,r=function(e,t){let n=0;const i=[],o=[];try{t.forEach((t=>{e.indexOf(t.placeholder)>=0&&o.push({idx:e.indexOf(t.placeholder),length:t.placeholder.length,link_obj:t})})),o.sort(((e,t)=>e.idx-t.idx));let a=0;for(;n"string"===e.type&&e.text?(0,u.jsx)(At,{children:e.text},`text_${t}`):"url"===e.type&&e.text&&e.url?(0,u.jsx)(Ot,{onClick:()=>i(e.url),children:e.text},`url_${t}`):null))})},Pt=(0,$.default)("div",{target:"e1uyuwid0"})((({theme:e})=>[{padding:"12px 16px",marginBottom:20,marginTop:44,backgroundColor:e.colors.BGPlaceholderDefault,display:"flex",flexDirection:"row"}]),"label:BannerContainer;"),It=(0,$.default)("div",{target:"e1uyuwid1"})((({isMobile:e})=>[{marginRight:4},!e&&{display:"flex",alignItems:"center"}]),"label:BannerIcon;"),Ct=(0,$.default)("div",{target:"e1uyuwid2"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P3",color:"TextSecondary",fontWeight:"normal"}),{display:"flex",alignItems:"center"}]),"label:BannerText;"),jt=({icon:e,text:t,isMobile:n=!1})=>(0,u.jsxs)(Pt,{children:[(0,u.jsx)(It,{isMobile:n,children:e}),(0,u.jsx)(Ct,{children:t})]}),Lt=(0,$.default)("div",{target:"e1yaooat0"})({display:"flex",flexDirection:"column",marginBottom:20,"&:last-of-type":{marginBottom:0}},"label:TextWrapper;"),Mt=(0,$.default)("div",{target:"e1yaooat1"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P1",color:"TextPrimary",fontWeight:"medium"}),{marginBottom:6}]),"label:Title;"),Nt=(0,$.default)("div",{target:"e1yaooat2"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextSecondary",fontWeight:"normal"}),{wordBreak:"break-word"}]),"label:Description;"),Dt=({successTitle:e,failureTitle:t,successDesc:n,failureDesc:i})=>{const o=[{title:t,description:i},{title:e,description:n}];return(0,u.jsx)("div",{children:o.map((({title:e,description:t},n)=>(0,u.jsxs)(Lt,{children:[(0,u.jsx)(Mt,{children:e}),(0,u.jsx)(Nt,{children:t})]},n)))})},Rt=({handleClose:e,handleAppealClick:t=()=>{}})=>{var n,i,o,a;const r=(0,ae.s)(),{status:s,detail:l,contentDetailList:c,reporterAppealInfo:d}=(0,ie.P)(q),p=(e=>{var t,n,i,o;const a=e.base_info,r=null===(n=null===(t=e.violation_info)||void 0===t?void 0:t.appeal_info)||void 0===n?void 0:n.appeal_status,s=null===(o=null===(i=e.violation_info)||void 0===i?void 0:i.appeal_info)||void 0===o?void 0:o.audio_change_status,l=e.video_status;return r===f.nW.APPEAL_SUCCESS||s===f.Ls.CHANGED?null==a?void 0:a.appeal_success_page_title:r===f.nW.ON_APPEAL?null==a?void 0:a.appeal_reviewing_page_title:r===f.nW.APPEAL_FAIL&&141===l?null==a?void 0:a.appeal_video_removed_page_title:r===f.nW.APPEAL_FAIL?null==a?void 0:a.appeal_fail_page_title:null==a?void 0:a.index_page_title})(l),g=null==l?void 0:l.object_type,m=null===(n=l.violation_info)||void 0===n?void 0:n.violation_info_status,h=null!==d,_=null===(o=null===(i=null==l?void 0:l.violation_info)||void 0===i?void 0:i.appeal_info)||void 0===o?void 0:o.appeal_status,y=_!==f.nW.APPEAL_SUCCESS||h,b=(null===(a=null==l?void 0:l.violation_info)||void 0===a?void 0:a.header)||"",w=_===f.nW.APPEAL_EXPIRED,x=w&&!h,T=w&&h,S=T||_===f.nW.NOT_APPEAL,k=(null==p?void 0:p.sub_title_v2)&&f.d7.includes(g.toString()),A=g===f.w$.CONTENT_CHECK_VIDEO,O=m===f.ww.VIOLATION_INFO_IN_PROGRESS,E=A&&O,P=l.content_info_list,I=(0,W.useRef)({}),C=(0,W.useCallback)(((e,t)=>{const n=`category_${e+1}`;"no"===I.current[n]&&t&&(I.current[n]="yes")}),[]),j=(0,W.useMemo)((()=>{switch(null==p?void 0:p.icon_type){case f.AT.STATUS_RECEIVED:return(0,u.jsx)(yt,{$color:"LinePrimary2",children:(0,u.jsx)(Q.i,{size:48})});case f.AT.STATUS_SUCCESS:return(0,u.jsx)(yt,{children:(0,u.jsx)(J.i,{size:48})});case f.AT.STATUS_FAIL:return(0,u.jsx)(yt,{children:(0,u.jsx)(ee.b,{size:48})});case f.AT.STATUS_FAIL_LIGHT:return(0,u.jsx)(yt,{$color:"LinePrimary2",children:(0,u.jsx)(te.Q,{size:48})});default:return(0,u.jsx)(yt,{children:(0,u.jsx)(ee.b,{size:48})})}}),[null==p?void 0:p.icon_type]),L=(0,W.useCallback)((e=>(0,v.__awaiter)(void 0,void 0,void 0,(function*(){e&&window.open(e,"_blank")}))),[s,l,c]);if("loading"===s)return(0,u.jsx)(oe.R,{center:!0,size:"small"});if(T)return(0,u.jsx)(ve,{handleClose:e});const M=(0,u.jsx)(yt,{$color:"TextQuaternary",children:(0,u.jsx)(te.Q,{size:18})}),N={text:r("dsaCGWebapp_detailPg_sectionCG_body"),links:[{link_text:r("dsaCGWebapp_detailPg_sectionCG_link"),placeholder:"%s",url:"https://www.tiktok.com/community-guidelines"}]};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(Z,{showTopBanner:x,children:[(0,u.jsx)(Tt,{}),(0,u.jsx)(xt,{onClick:e,children:(0,u.jsx)(ne.A,{width:14,height:14})})]}),x&&(0,u.jsx)(jt,{icon:M,text:r("dsaCGWebapp_appealExpired_emptyState_body")}),(0,u.jsx)(_t,{children:(0,u.jsxs)(vt,{children:[(0,u.jsxs)(ft,{children:[j,(null==p?void 0:p.title)&&(0,u.jsx)(bt,{children:p.title}),k?(0,u.jsx)(Et,{btnText:null==p?void 0:p.sub_title_v2,onClick:L}):(null==p?void 0:p.sub_title)&&(0,u.jsx)(wt,{children:null==p?void 0:p.sub_title})]}),(P||[]).map(((e,t)=>(0,u.jsxs)(gt,{children:[console.log("ContentInfoSection: ",e),(0,u.jsx)(pt,{contentInfo:e,handlePressLink:L})]},t))),E&&(0,u.jsx)(gt,{children:(0,u.jsx)(Dt,{successTitle:r("contentCheck_progressScreen_page_bullet2Header"),successDesc:r("contentCheck_progressScreen_page_bullet2Body"),failureTitle:r("contentCheck_progressScreen_page_bullet1Header"),failureDesc:r("contentCheck_progressScreen_page_bullet1Body_postPrivate")})}),y&&(null==c?void 0:c.length)>0&&(0,u.jsx)(gt,{children:(0,u.jsx)(Fe,{title:b,list:c,onToggle:C,handleOpenLink:L,seeMoreText:r("search_see_more")})})]})}),(0,u.jsxs)(ht,{showAppealButton:S,children:[(0,u.jsx)(mt,{children:(0,u.jsx)(Et,{hideMargin:!0,btnText:N,onClick:L})}),S&&(0,u.jsx)(St,{onClick:t,children:r("appeal_btn_new")})]})]})},Bt=(0,$.default)("div",{target:"e3yfed30"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P3",color:"TextSecondary",fontWeight:"normal"}),{marginTop:24}]),"label:SubtitleDiv;"),Ut=(0,$.default)("div",{target:"e3yfed31"})((({theme:e})=>({borderTop:`1px solid ${e.colors.LineSecondary}`,paddingLeft:24,paddingRight:24})),"label:Container;"),Ft=(0,$.default)("div",{target:"e3yfed32"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextPrimary",fontWeight:"semiBold"}),{marginTop:32}]),"label:SectionHeaderDiv;"),Vt=(0,$.default)("div",{target:"e3yfed33"})({width:72,height:72,borderRadius:6,overflow:"hidden",backgroundSize:"cover",backgroundPosition:"center center",backgroundRepeat:"no-repeat"},"label:ImageDiv;"),zt=(0,$.default)("div",{target:"e3yfed34"})({display:"flex",flexDirection:"row",marginTop:16,alignItems:"center"},"label:ContentInfoRow;"),Ht=(0,$.default)("div",{target:"e3yfed35"})({display:"flex",flexDirection:"column",marginInlineStart:16},"label:ContentInfoDetails;"),qt=(0,$.default)("div",{target:"e3yfed36"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P3",color:"TextSecondary",fontWeight:"normal"})]),"label:ContentInfoDetailsTitle;"),Wt=(0,$.default)("div",{target:"e3yfed37"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P3",color:"TextTertiaryAlt",fontWeight:"normal"})]),"label:ContentInfoDetailsContent;"),$t=(0,$.default)("div",{target:"e3yfed38"})({marginTop:32},"label:MarginTop32DivWrapper;"),Gt=(0,$.default)("div",{target:"e3yfed39"})({marginTop:16},"label:MarginTop16DivWrapper;"),Yt=(0,$.default)("span",{target:"e3yfed310"})((({theme:e})=>[(0,G.zy)({theme:e,color:"Primary"})]),"label:PrimarySpanText;"),Zt=(0,$.default)("textarea",{target:"e3yfed311"})((({theme:e})=>Object.assign(Object.assign({},(e=>({borderStyle:"none",borderColor:"transparent",boxShadow:"none",outline:"none",marginTop:"10px",fontSize:"16px",fontFamily:e.fontFamilies.TikTokFont,fontWeight:e.fontWeights.normal,color:e.colors.TextPrimary,":placeholder":{color:e.colors.TextQuaternary}}))(e)),{resize:"none",height:"48px",width:"100%",backgroundColor:e.colors.BGPrimary})),"label:TextareaDescription;"),Kt=(0,$.default)("div",{target:"e3yfed312"})((({theme:e})=>({paddingBottom:"12.5px",borderBottom:`0.5px solid ${e.colors.LineInput}`})),"label:TextareaWrapper;"),Xt=(0,$.default)("div",{target:"e3yfed313"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextPrimary",fontWeight:"semiBold"})]),"label:TextAreaHeader;"),Qt=(0,$.default)("div",{target:"e3yfed314"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P3",color:"TextSecondary",fontWeight:"normal"})]),"label:TextAreaWordCount;"),Jt=(0,$.default)("div",{target:"e3yfed315"})({display:"flex",flexDirection:"row"},"label:FlexRowDiv;"),en=(0,$.default)("div",{target:"e3yfed316"})({flexGrow:1},"label:FlexGrowDiv;"),tn=(0,$.default)("div",{target:"e3yfed317"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P4",color:"TextSecondary",fontWeight:"normal"}),{marginTop:32,marginBottom:17}]),"label:FooterText;"),nn=(0,$.default)("span",{target:"e3yfed318"})((({theme:e})=>[(0,G.zy)({theme:e,color:"TextPrimary",fontWeight:"semiBold"})]),"label:LinkSpan;"),on=(0,$.default)("div",{target:"e3yfed319"})((({theme:e})=>({position:"relative",bottom:"0",left:"0",height:"84px",width:"100%",borderTop:`0.5px solid ${e.colors.LinePrimary2}`,backgroundColor:e.colors.BGPrimary})),"label:DivFooter;"),an=(0,$.default)("div",{target:"e3yfed320"})({cursor:"pointer",padding:"9px",height:"32px"},"label:DivCloseButton;"),rn=(0,$.default)("div",{target:"e1trkmzg0"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextPrimary",fontWeight:"semiBold"})]),"label:TitleDiv;"),sn=(0,$.default)("div",{target:"e1trkmzg1"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P3",color:"TextPrimary",fontWeight:"normal"}),{marginTop:16}]),"label:ContentDiv;"),ln=({title:e,list:t})=>(0,u.jsxs)("div",{children:[(0,u.jsx)(rn,{children:e}),t.map((({title:e},t)=>(0,u.jsx)(sn,{children:e},t)))]});var cn=n(31367),dn=n(75972);const un=({handleBack:e,handleBackKeyDown:t,handleClose:n})=>{var i,o,a;const r=(0,ae.s)(),s=(0,p.w)(q),{status:l,detail:c,contentDetailList:d,reporterAppealInfo:v,loggedOutCode:g}=(0,ie.P)(q),m=(null===(i=c.violation_info)||void 0===i?void 0:i.header)||"",h=JSON.parse(JSON.stringify(c.reporter_appeal_reason||[])).sort(((e,t)=>e.desc>t.desc?1:-1)),[_,y]=(0,W.useState)(""),[b,w]=(0,W.useState)(""),x=(0,W.useCallback)((e=>{y(e.target.value)}),[]),T=(0,W.useCallback)((e=>{w(b===e?"":e)}),[b,w]),S=(0,W.useCallback)((e=>{e.stopPropagation()}),[]),k=c.content_info_list,A=(e=>{const t=e.base_info,n=e.object_type;return n===f.w$.NETZDG_REPORTER||n===f.w$.COMMENT_NETZDG_REPORTER?null==t?void 0:t.appeal_submit_page_title:null==t?void 0:t.index_page_title})(c),O=(e,t=!1,n)=>{var i,o;if(e){let n=null!==(i=e.text)&&void 0!==i?i:"";for(const t of null!==(o=e.elements)&&void 0!==o?o:[])n=n.replace(t.placeholder,`
`);return t?`"${n}"`:n}return t?`"${n}"`:n},E=(0,W.useCallback)((e=>{var t,n,i;if(e.preventDefault(),e.stopPropagation(),"idle"===l&&null!==v){const e=v.report_info.common_data,o=Object.assign(Object.assign({reportType:e.report_type,objectId:e.object_id,objectOwnerId:e.object_owner_id,reason:e.reason,uri:e.uri,reportId:e.report_id,reportDesc:_,reporterAppealReason:b,reporterSignature:e.reporter_signature},g&&{loggedOutCode:g}),{legalJurisdiction:e.legal_jurisdiction,relevantLaw:e.relevant_law,logoutReporterEmail:e.logout_reporter_email,trustedFlaggerEmail:e.trusted_flagger_email,relatedTtid:e.related_ttid,reportMenuClickTime:e.report_menu_click_time}),a=null===(i=null===(n=null===(t=v.report_info)||void 0===t?void 0:t.common_data)||void 0===n?void 0:n.object_type)||void 0===i?void 0:i.toString();if(f.gq.includes(a)){const e=Object.assign(Object.assign({},o),((e,t)=>{const n=t.report_info.live,i=t.report_info.live_comment;return e===f.w$.LIVE_REPORTER?{liveReportType:(null==n?void 0:n.live_request_type)||"",liveRequestPage:(null==n?void 0:n.live_request_page)||"",liveCmpIds:(null==n?void 0:n.live_cmp_ids)||"",liveEnterFromMerge:(null==n?void 0:n.live_enter_from_merge)||"",liveEnterMethod:(null==n?void 0:n.live_enter_method)||"",liveActionType:(null==n?void 0:n.live_action_type)||"",durationEntranceSubmit:(null==n?void 0:n.duration_entrance_submit)||0,targetAnchorId:(null==n?void 0:n.target_anchor_id)||"",targetAudienceId:(null==n?void 0:n.target_audience_id)||"",reportedUserIds:(null==n?void 0:n.reported_user_ids)||"",nonReportedUserIds:(null==n?void 0:n.non_reported_user_ids)||""}:e===f.w$.LIVE_COMMENT_REPORTER?{liveReportType:(null==i?void 0:i.live_report_type)||"",roomId:(null==i?void 0:i.room_id)||"",liveChatType:(null==i?void 0:i.live_chat_type)||"",content:(null==i?void 0:i.content)||"",durationEntranceSubmit:(null==i?void 0:i.duration_entrance_submit)||0}:{}})(a,v));return void s.postLiveReporterAppeal(e)}const r=v.report_info.non_live,l=Object.assign(Object.assign({},o),{relatedUsername:null==r?void 0:r.related_username,commentWithEmoji:null==r?void 0:r.comment_with_emoji});s.postReporterAppeal(l)}}),[_,s,v,l,b]);return"loading"===l?(0,u.jsx)(oe.R,{center:!0,size:"small"}):"submitted"===l?(0,u.jsx)(Rt,{handleBack:e,handleBackKeyDown:t,handleClose:n}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(Z,{children:[(0,u.jsx)(X,{onClick:e,onKeyDown:t,tabIndex:0,role:"button",children:(0,u.jsx)(dn.A,{width:24,height:24})}),(0,u.jsx)(K,{children:null==A?void 0:A.title}),(0,u.jsx)(an,{onClick:n,children:(0,u.jsx)(ne.A,{width:14,height:14})})]}),(0,u.jsxs)(Ut,{children:[(0,u.jsx)(Bt,{children:null==A?void 0:A.sub_title}),k&&k.length>0&&k.map(((e,t)=>(0,u.jsxs)("div",{children:[(0,u.jsx)(Ft,{children:e.header}),(0,u.jsxs)(zt,{children:[e.image_url&&(0,u.jsx)(Vt,{style:{backgroundImage:`url(${e.image_url})`}}),(0,u.jsxs)(Ht,{children:[(0,u.jsx)(qt,{dangerouslySetInnerHTML:{__html:ze().sanitize(O(e.rich_text,e.has_quote,e.title))}}),(0,u.jsx)(Wt,{children:e.content||""})]})]})]},t))),(0,u.jsx)($t,{children:(0,u.jsx)(ln,{title:m,list:d})}),(0,u.jsxs)($t,{children:[(0,u.jsxs)(Ft,{children:[r("dsa_illegal_appeal_dropdown_title"),(0,u.jsx)(Yt,{children:"*"})]}),h.map(((e,t)=>(0,u.jsx)(Gt,{onClick:()=>{T(e.code)},children:(0,u.jsx)(Ne.h$,{label:e.desc,checked:b.includes(e.code)})},`reporter-appeal-reason-${t}`)))]}),(0,u.jsxs)($t,{children:[(0,u.jsxs)(Jt,{children:[(0,u.jsx)(Xt,{children:(null===(o=c.description)||void 0===o?void 0:o.header)||r("dsa_illegal_appeal_explanation")}),(0,u.jsx)(en,{}),(0,u.jsx)(Qt,{children:`${_.length}/400`})]}),(0,u.jsx)(Kt,{children:(0,u.jsx)(Zt,{rows:2,maxLength:400,placeholder:(null===(a=c.description)||void 0===a?void 0:a.placeholder)||"",value:_,onChange:x,onKeyDown:S})})]}),(0,u.jsxs)(tn,{children:[r("dsa_illegal_appeal_alt_options").replace("%s",""),(0,u.jsx)(nn,{onClick:()=>{window.open(c.learn_more_link||"","_blank")},children:r("dsa_illegal_placeholder_learnmore")})]})]}),(0,u.jsx)(on,{children:(0,u.jsx)(cn.jl,{disabled:""===b,onClick:E,children:r("Submit")})})]})},pn=(0,$.default)("div",{target:"e1s71jua0"})({paddingLeft:24,paddingRight:24,height:"100%",flexGrow:1},"label:Container;"),vn=(0,$.default)("div",{target:"e1s71jua1"})((({theme:e})=>({padding:16,backgroundColor:e.colors.BGPrimary,borderRadius:8,marginBottom:8})),"label:ComponentWrapper;"),gn=(0,$.default)("div",{target:"e1s71jua2"})({position:"relative",bottom:"0",left:"0",width:"100%",height:54,marginBottom:16,marginTop:16,padding:8,display:"flex",flexDirection:"column",alignItems:"end",justifyContent:"center"},"label:DivFooter;"),mn=(0,$.default)("div",{target:"e1s71jua3"})({display:"flex",flexDirection:"column",height:"580px",overflowY:"auto"},"label:ContainerWrapper;"),hn=(0,$.default)("div",{target:"e1s71jua4"})({display:"flex",flexDirection:"column",alignItems:"start",marginBottom:32},"label:DivSubmitHeader;"),_n=(0,$.default)("div",{target:"e1s71jua5"})((({theme:e})=>({color:e.colors.Primary,display:"inline",marginLeft:"2px"})),"label:AsteriskColor;"),fn=(0,$.default)("div",{target:"e1s71jua6"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P1",color:"TextPrimary",fontWeight:"medium"}),{marginBottom:15}]),"label:SectionHeader;"),yn=(0,$.default)("div",{target:"e1s71jua7"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"H4",color:"TextPrimary",fontWeight:"bold"}),{marginTop:16}]),"label:AppealTitle;"),bn=(0,$.default)("div",{target:"e1s71jua8"})((()=>({marginBottom:"12px","&:last-child":{marginBottom:"0"}})),"label:RadioWrapper;"),wn=(0,$.default)("div",{target:"e1s71jua9"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P2",color:"TextSecondary",fontWeight:"normal"}),{marginTop:12}]),"label:AppealSubtitle;"),xn=(0,$.default)("div",{target:"e1s71jua10"})({cursor:"pointer",padding:"9px",height:"32px"},"label:DivCloseButton;"),Tn=(0,$.default)("div",{target:"e1s71jua11"})({flexGrow:1},"label:FlexGrowDiv;"),Sn=(0,$.default)("button",{target:"e1s71jua12"})((({theme:e})=>[(0,G.zy)({theme:e,fontFamily:"TikTokFont",typography:"P3",color:"ConstTextInverse",fontWeight:"semiBold"}),{height:"36px",padding:"7px 16px",position:"absolute",cursor:"pointer",right:"24px",color:e.colors.ConstTextInverse,background:e.colors.Primary,border:"none",borderRadius:"4px",":disabled":{background:e.colors.BGPlaceholderDefault,color:e.colors.TextQuaternary}}]),"label:ButtonSubmit;"),kn=({handleBack:e,handleBackKeyDown:t,handleClose:n})=>{var i,o,a,r,s,l,c,d;const v=(0,ae.s)(),g=(0,p.w)(q),{status:m,detail:h,contentDetailList:_,appealReasons:y}=(0,ie.P)(q),[b,w]=(0,W.useState)(null),[x,T]=(0,W.useState)(""),S=null===(o=null===(i=h.base_info)||void 0===i?void 0:i.appeal_submit_page_title)||void 0===o?void 0:o.title,k=null===(r=null===(a=h.base_info)||void 0===a?void 0:a.appeal_submit_page_title)||void 0===r?void 0:r.sub_title,A=null===(l=null===(s=h.base_info)||void 0===s?void 0:s.appeal_submit_page_title)||void 0===l?void 0:l.sub_title_v2,O=null===(c=null==h?void 0:h.violation_info)||void 0===c?void 0:c.appeal_info.appeal_type,E=null==h?void 0:h.object_id,P=null==h?void 0:h.punish_key,I=null==h?void 0:h.object_type,C=!!Array.isArray(y)&&y.length>0,j=A&&f.d7.includes(I.toString()),L=(null===(d=null==h?void 0:h.violation_info)||void 0===d?void 0:d.header)||"";(0,W.useEffect)((()=>{void 0!==O&&g.getAppealReasons({appeal_type:O,object_id:E})}),[O,g,E]);const M=e=>{e&&window.open(e,"_blank")},N=(0,W.useCallback)((t=>{if(t.preventDefault(),t.stopPropagation(),"idle"!==m||void 0===O)return;const n=(({appealType:e,objectId:t,punishKey:n,hasAppealReasons:i,selectedReason:o,descriptionBox:a})=>{const r={appealType:e,objectId:t,punishKey:n};if(a&&!i)r.reason=JSON.stringify({file_uri:"",description:a});else if(i&&null!==o){const e={type:2,options:[o],description:a||""};r.reason=JSON.stringify(e)}return r})({appealType:O,objectId:E,punishKey:P,hasAppealReasons:C,selectedReason:b,descriptionBox:x});g.postViolationAppeal(n),g.setViolationAppealStatus("loading"),e()}),[g,m,O,E,P,b,C,x,e]);return"loading"===m?(0,u.jsx)(oe.R,{center:!0,size:"small"}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(Z,{children:[(0,u.jsx)(X,{onClick:e,onKeyDown:t,role:"button",children:(0,u.jsx)(dn.A,{width:24,height:24})}),(0,u.jsx)(Tn,{}),(0,u.jsx)(xn,{onClick:n,children:(0,u.jsx)(ne.A,{width:14,height:14})})]}),(0,u.jsx)(mn,{children:(0,u.jsxs)(pn,{children:[(0,u.jsxs)(hn,{children:[S&&(0,u.jsx)(yn,{children:S}),j?(0,u.jsx)(Et,{btnText:A,onClick:M}):k&&(0,u.jsx)(wn,{children:k})]}),(0,u.jsx)(vn,{children:(0,u.jsx)(Fe,{title:L,list:_,handleOpenLink:M,seeMoreText:v("search_see_more")})}),C&&(0,u.jsxs)(vn,{children:[(0,u.jsxs)(fn,{children:[v("reasonForAppeal_appealPg_appealReasonCard_title"),(0,u.jsx)(_n,{children:"*"})]}),y.map((e=>(0,u.jsx)(bn,{children:(0,u.jsx)(Ne.v3,{label:e.text,name:"appealReason",value:e.code.toString(),checked:b===e.code,onChange:()=>w(e.code)})},e.code)))]}),C&&(0,u.jsx)(vn,{children:(0,u.jsx)(Ne.U5,{label:v("dsa_illegal_appeal_explanation"),value:x,onChange:e=>T(e.target.value),placeholder:v("dsa_illegal_uploader_vio_appeal_exp_desc"),maxLength:200,block:!0})})]})}),(0,u.jsx)(gn,{children:(0,u.jsx)(Sn,{onClick:N,disabled:C&&null===b,children:v("Submit")})})]})};var An=n(57431),On=n(54775);const En=({reportId:e,onBack:t,objectId:n,objectType:i,punishKey:o,onClose:a,verificationCode:r,penaltyDetails:s})=>{const{user:l,language:c}=(0,An.x)(),d=(0,p.w)(q),[v,g]=(0,W.useState)(f.qZ.STATUS),m=(0,W.useCallback)((()=>{t?t():g(f.qZ.STATUS)}),[t]),h=(0,W.useCallback)((()=>{a()}),[a]),_=(0,W.useCallback)((()=>{g(f.qZ.SUBMIT)}),[]),y=(0,W.useCallback)((e=>{13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),e.stopPropagation(),m())}),[m]);return(0,W.useEffect)((()=>{var t,a,u;if(s)d.getPenaltyDetail({vid:null!==(t=s.vid)&&void 0!==t?t:"",storeRegion:null!==(a=null==l?void 0:l.storeRegion)&&void 0!==a?a:"",videoInfo:s.videoInfo,lang:c,uid:null!==(u=null==l?void 0:l.uid)&&void 0!==u?u:""});else if(e)d.getReporterAppeal({reportId:e,loggedOutCode:r});else{if(!n||!i)return;d.getViolationDetail({objectId:n,objectType:i,punishKey:o})}}),[n,i,o,d,s]),(0,W.useEffect)((()=>{r&&d.setLoggedOutCode(r)}),[r]),(0,u.jsx)(Y,{children:(0,u.jsx)(On.juU,{children:e?(0,u.jsx)(un,{handleBack:m,handleBackKeyDown:y,handleClose:h}):v===f.qZ.SUBMIT?(0,u.jsx)(kn,{handleBack:m,handleBackKeyDown:y,handleClose:h}):(0,u.jsx)(Rt,{handleBack:m,handleBackKeyDown:y,handleClose:h,handleAppealClick:_})})})}},88920:(e,t,n)=>{"use strict";n.d(t,{$4:()=>Pt,$r:()=>ve,A8:()=>Ae,AP:()=>Le,Ad:()=>Me,BM:()=>be,CQ:()=>xe,E1:()=>ct,Eo:()=>L,Eq:()=>Ke,FI:()=>jt,FT:()=>we,Fl:()=>Ve,Ge:()=>xt,Hh:()=>Pe,IX:()=>$e,JX:()=>Ue,Jc:()=>Q,Jl:()=>nt,KV:()=>R,Kg:()=>qe,Kj:()=>Ne,M4:()=>ne,Md:()=>z,Mz:()=>le,NF:()=>dt,NV:()=>Oe,NY:()=>q,ON:()=>Tt,OQ:()=>at,O_:()=>me,Oi:()=>bt,PV:()=>Ce,Q5:()=>it,QN:()=>yt,QY:()=>st,RC:()=>fe,Ry:()=>K,Sc:()=>D,TP:()=>ie,Tg:()=>$,Tt:()=>pe,Vn:()=>Lt,Vv:()=>tt,W3:()=>ee,W4:()=>B,WE:()=>et,WO:()=>Z,Wh:()=>F,Yu:()=>ce,ZO:()=>he,ZT:()=>St,_Y:()=>ke,_o:()=>Je,aL:()=>We,aO:()=>Mt,ac:()=>Y,bx:()=>rt,c8:()=>oe,cE:()=>M,d1:()=>Se,eb:()=>_e,eu:()=>Be,fH:()=>ft,gJ:()=>Ye,gQ:()=>lt,gR:()=>H,hn:()=>ze,iM:()=>de,iz:()=>Ie,jC:()=>Qe,jw:()=>De,k0:()=>mt,kT:()=>Fe,kb:()=>N,l2:()=>J,lP:()=>te,mT:()=>Ot,mV:()=>ht,mf:()=>It,oJ:()=>W,pd:()=>ue,q:()=>je,q6:()=>ae,qZ:()=>G,r6:()=>ye,rq:()=>ot,ry:()=>_t,s0:()=>He,sF:()=>ge,tL:()=>Ge,tY:()=>vt,tc:()=>re,tj:()=>Et,u6:()=>V,uT:()=>se,ul:()=>Ee,vP:()=>At,vY:()=>Ct,vh:()=>ut,vp:()=>kt,wX:()=>Re,y9:()=>X,yc:()=>gt,yk:()=>Xe,yl:()=>pt,zD:()=>Te});var i=n(40099),o=n(47172),a=n(67823),r=n(70322),s=n(48961),l=n(78662),c=n(58305),d=n(30721),u=n(49057),p=n(48615),v=n(89558),g=n(45297),m=n(34012),h=n(45212),_=n(5441),f=n(60484),y=n(71281),b=n(32862),w=n(6523),x=n(82715),T=n(8227),S=n(75792),k=n(21467),A=n(40407),O=n(40040),E=n(90300),P=n(21367);const I="abTestVersion",C="videoPlayerConfig",j="playbackNormalizePath";function L(){const{isSmartPlayer:e}=(0,d.Qt)();return{isMobileUiOptimize:!e}}const M=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>[I]),[]));return{hasNonPersonalizedMenu:"v2"===(null!==(e=(0,y.qt)(t,v.W$))&&void 0!==e?e:"v1")}},N=e=>{var t,n;const{abTestVersion:i}=(0,f.L$)((0,u.W)((()=>[I]),[])),o=null!==(t=(0,y.qt)(i,"desktop_ui_reply"))&&void 0!==t?t:"v1",a="v5"===o,r="v6"===o;return{shouldAvatarShowNickName:"v2"===(null!==(n=(0,y.qt)(i,"desktop_avatar_nick_name"))&&void 0!==n?n:"v1"),shouldOptimizeCta:"v2"===o||a,allowRightPanelScroll:a||r,shouldOptimizeReply:a||r,onlyOptimizeCta:"v2"===o,shouldShowCommentsCnt:"v2"===o||"v3"===o||a||r,isDesktopUiOptDebugOn:(0,y.TQ)("desktop_ui_opt_debug")&&!e,shouldIncludeV3V4:r}};function D(){var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>[I]),[])),{videoPlayerConfig:n}=(0,f.L$)((0,p.U)((()=>[C]),[]));return{isUseNativePlayer:null==n?void 0:n.fallback,adaptBitrateVid:null!==(e=(0,y.qt)(t,"video_bitrate_adapt"))&&void 0!==e?e:"v1"}}function R(){var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>[I]),[])),{playbackNormalizePath:n}=(0,f.L$)((0,p.U)((()=>[j]),[]));return{normalizationVid:null!==(e=(0,y.qt)(t,"volume_normalize"))&&void 0!==e?e:"v1",playbackNormalizePath:n}}function B(){var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>[I]),[]));return null!==(e=(0,y.qt)(t,"xg_volume_test"))&&void 0!==e?e:"v1"}let U=!1;function F(){var e;const{abTestVersion:t,wid:n}=(0,f.L$)((0,u.W)((()=>[I,"wid"]),[])),i=null!==(e=(0,y.qt)(t,"feed_scroll_opt"))&&void 0!==e?e:"v0",o=(0,y.qt)(t,"feed_scroll_opt_data_collection");if(void 0!==o&&!U)try{const e=(0,A.ZC)(n,O.uV,E.gb);U=!0,r.w.handleInferenceTrigger({enter_method:"",page_name:"homepage_hot",model_name:"v0"===o?"feed_scroll_opt_data_collection_rct_control":"feed_scroll_opt_data_collection_rct_treatment",payload:null==e?void 0:e.toString(),threshold_exceed:"v0"===o?0:1,inference_result:-1})}catch(e){console.warn("inference trigger error",e)}return{hasLimitedItem:"v1"===i||"v3"===i,hasMultiPlayerIns:"v2"===i||"v3"===i||"v2"===o,hasOptForFeed:"v0"!==i}}function V(e){const{vgeo:t}=(0,f.L$)((0,p.U)((()=>["vgeo"]),[])),{wid:n}=(0,f.L$)((0,u.W)((()=>["wid"]),[])),i=function(e){var t;const{abTestVersion:n}=(0,f.L$)((0,u.W)((()=>[I]),[]));return null!==(t=(0,y.qt)(n,e))&&void 0!==t?t:"v1"}(e);return{vgeo:t,wid:n,vid:i}}function z(){var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>[I]),[]));return{preloadConfigVid:null!==(e=(0,y.qt)(t,"xgplayer_preload_config"))&&void 0!==e?e:"v1"}}function H(){var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>[I]),[])),n=null!==(e=(0,y.qt)(t,"remove_tooltip"))&&void 0!==e?e:"v0";return{removeUploadPop:"v1"===n,removeLivePop:"v1"===n,removeEditProfilePop:"v1"===n,removeOtherPop:"v4"===n,removeShortcutPop:"v5"===n}}function q(){const{xgplayerInitHost:e}=(0,f.L$)((0,p.U)((()=>["xgplayerInitHost"]),[]));return{playerInitHost:e}}function W(){const{videoOrder:e}=(0,f.L$)((0,p.U)((()=>["videoOrder"]),[]));return{videoOrder:null==e?void 0:e.videoOrder}}function $(){const{bitrateSelectorConfigs:e}=(0,f.L$)((0,p.U)((()=>["bitrateSelectorConfigs"]),[]));return{bitrateSelectorConfigs:null==e?void 0:e.configs}}function G(){const{hevcRobustness:e}=(0,f.L$)((0,p.U)((()=>["hevcRobustness"]),[]));return{useHevcRobustTest:!e||e.useHevcRobustTest,forceRobustTest:e?e.forceRobustTest:["Edge"]}}function Y(){const{pathname:e}=(0,o.useLocation)(),t=(0,m.Ig)()?"v1":"v2",n=(0,l.Fj)(e),i="v1"!==t,a="v1"!==t;return{isVideoPlayerOptimization:i,hasPip:a,isUIOptimization:!1,isVideoDetailUIOptimization:!1,hasVideoDetailPip:a&&n,isVideoDetailExperiment:"v1"!==t&&n,isVideoDetailPlayerExperiment:i&&n}}const Z=e=>{if(!e)return{};const{id:t,type:n,isClaimed:i,cityCode:o,countryCode:a,ttTypeNameSuper:r,ttTypeNameMedium:l,ttTypeNameTiny:c,ttTypeCode:d,typeCode:u}=e;return{poi_id:t,poi_backend_type:n,poi_detail_type:s.Af[null!=n?n:0],is_claimed:i?1:0,poi_city:o,poi_region_code:a,tt_poi_backend_type:`${r},${l},${c}|${d}`,poi_type_code:u}},K=e=>{var t;const{abTestVersion:n}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),i=null!==(t=(0,y.qt)(n,"explore_ui_change"))&&void 0!==t?t:"v0";return{isClearUI:"v1"===i&&e,withCreator:"v1"!==i&&"v0"!==i&&e,withLike:("v3"===i||"v4"===i)&&e,withBack:"v4"===i&&e,withDes:("v4"===i||"v0"===i)&&e,withNoLeftInfo:"v2"===i}},X=()=>{var e;const{abTestVersion:t,language:n}=(0,f.L$)((0,u.W)((()=>["abTestVersion","language"]),[]));let i=null!==(e=(0,y.qt)(t,"search_preview_ui_change"))&&void 0!==e?e:"v0";return"hu-HU"!==n&&"hu"!==n||"v3"!==i||(i="v0"),{withLikeAndCreator:"v1"===i||"v2"===i||"v3"===i,removeDesc:"v1"===i,withOneLineDesc:"v2"===i||"v3"===i,withPublishTime:"v3"===i}},Q=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return"v1"===(null!==(e=(0,y.qt)(t,"seo_preview_ui_change"))&&void 0!==e?e:"v0")};function J(){var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>[I]),[])),{pathname:n}=(0,o.useLocation)(),i=null==t?void 0:t.versionName.split(",");return{isInHorizontalBoostUI:null!==(e=null==i?void 0:i.includes("71188781"))&&void 0!==e&&e&&((0,l.tO)(n)||(0,l.gq)(n))}}const ee=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"islands_arch_user_profile"))&&void 0!==e?e:"v0";return{delayUntilAnyItem:"v1"===n,delayUntilFirstItem:"v2"===n}},te=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return{hasCommonVideoFirst:"v1"===(null!==(e=(0,y.qt)(t,"islands_arch_rest_page"))&&void 0!==e?e:"v0")}},ne=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return{isOpenNewTab:"v2"===(null!==(e=(0,y.qt)(t,"webapp_browser_mode_new_tab"))&&void 0!==e?e:"v1")}},ie=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return"v2"===(null!==(e=(0,y.qt)(t,"sidenav_test"))&&void 0!==e?e:"v1")},oe=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"webapp_auto_refresh"))&&void 0!==e?e:"v1";return{refreshWhenExpireAndEmpty:"v2"===n,refreshInAllCase:"v3"===n}},ae=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"one_column_player_size"))&&void 0!==e?e:"v1";return{useEnlargedVideoPlayer:"v1"!==n,useCenterAligned:"v3"===n||"v4"===n,useWiderContainerSize:"v4"===n||"v5"===n}},re=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return"v2"===(null!==(e=(0,y.qt)(t,"use_follow_v2"))&&void 0!==e?e:"v1")},se=()=>{const{abTestVersion:e}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return"v1"===(0,y.qt)(e,"playback_refactor_desktop")},le=()=>{var e,t;const{isElectronApp:n}=(0,_.B)(),{abTestVersion:i}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),o=null!==(e=(0,y.qt)(i,"on_device_ml_player_preload"))&&void 0!==e?e:{vid:"v0"},{isLowEndDevice:a}=(0,h.qo)(),r=null!==(t=null==o?void 0:o.vid)&&void 0!==t?t:"v0",s=!n&&"undefined"!=typeof WebAssembly&&!a;return{playerPreloadPredictStrategy:o,disablePreloadPredict:"v0"===r,enablePlayerPreloadPredict:("v1"===r||"v2"===r)&&s,enablePlayerPreloadDowngradePredict:"v3"===r||"v0"!==r&&!s}},ce=()=>{var e,t;const{abTestVersion:n}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),i=(0,y.qt)(n,"player_degrade"),o=(0,y.qt)(n,"player_retry"),a=(0,y.qt)(n,"tt_player_logger")||"v0",r=(0,y.qt)(n,"tt_player_reuse"),{disablePreloadPredict:s}=le(),l=(0,P.PU)(),c=null!==(e=(0,y.qt)(n,"tt_player_preload"))&&void 0!==e?e:{vid:"v0",maxQueueCount:3,preloadMaxCacheCount:5,preloadTime:10,segmentMinDuration:10,minBufferLength:10,startPreloadControl:!1,startPreloadMinBuffer:0,startPreloadMinPosTime:0};let d=0;return"v0"===i?d=0:"v1"===i?d=1:"v2"===i&&(d=2),{playerDegrade:d,playerRetry:o||"v0",playerReuse:r,playerPreload:s?c:Object.assign(Object.assign({},c),l),playerLogger:"v1"===a?1:0,bitrateSelect:null!==(t=(0,y.qt)(n,"tt_player_bitrateSelect"))&&void 0!==t?t:{vid:"v0",qualityType:[20],hevcQualityType:[28]}}},de=e=>{const t={open:!1,qualityType:20,vid:"v0",closePreload:!1,testKey:"none"},n=["hevc_device_edge_low","hevc_device_edge_high","hevc_device_chrome_low","hevc_device_chrome_high","hevc_device_test"];if("desktop"===e){if("undefined"==typeof window)return t;let e=null,i="none";for(let t=0;t{if("undefined"==typeof window||"desktop"!==e)return"";const t=[];return["hevc_device_test","hevc_device_edge_low","hevc_device_edge_high","hevc_device_chrome_low","hevc_device_chrome_high"].forEach((e=>{const n=(0,b.HL)(e,{vid:""});n&&t.push(n)})),t.join(",")},pe=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return"v1"===(null!==(e=(0,y.qt)(t,"enable_ml_model_suggest_content"))&&void 0!==e?e:"v0")},ve=({enterFrom:e,linkIncludeVid:t})=>{var n;const{abTestVersion:i}=(0,f.L$)((0,u.W)((()=>[I]),[])),o=null!==(n=(0,y.qt)(i,"studio_web_eh_entrance_v3"))&&void 0!==n?n:"v1";let a="https://effecthouse.tiktok.com/download?utm_source=tiktok_webapp_main";return e&&(a=`${a}&enter_from=${e}`),t&&(a=`${a}&utm_campaign=ttweb_entrance_${o}`),{showEhEntrance:!0,entranceVariant:o,ehLink:a}},ge=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return{isAutoScrollReposition:"v0"!==(null!==(e=(0,y.qt)(t,"autoscroll_reposition"))&&void 0!==e?e:"v0")}},me=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return"v0"!==(null!==(e=(0,y.qt)(t,"banner_ad_enable"))&&void 0!==e?e:"v1")},he=()=>{const{abTestVersion:e}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),t=(0,y.qt)(e,"project_ace_control");return"v0"===t||"v1"===t},_e=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"add_profile_left_bar"))&&void 0!==e?e:"v0";return{showProfileLeftBar:"v1"===n||"v3"===n,enableClickTopRightIcon:"v2"===n||"v3"===n}},fe=()=>{var e;const{abTestVersion:t,user:n}=(0,f.L$)((0,u.W)((()=>["abTestVersion","user"]),[])),i=!!n;return"v1"===(null!==(e=(0,y.qt)(t,"friends_tab"))&&void 0!==e?e:"v0")&&i},ye=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return"v1"===(null!==(e=(0,y.qt)(t,"video_detail_reflow_card"))&&void 0!==e?e:"v0")},be=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"yml_ui_optimize"))&&void 0!==e?e:"v0";return{isCoverImageChanged:"v1"===n,isMetaDataChanged:"v2"===n,isCoverImageAndMetaDataChanged:"v3"===n}},we=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"guide_user_to_next_video"))&&void 0!==e?e:"v0";return{isVideoDetailPage:"v1"===n,isFYP:"v2"===n}},xe=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"creator_to_fyp"))&&void 0!==e?e:"v0";let i=0;return"v1"===n?i=1:"v2"===n&&(i=2),{sendCreatorItemId:"v1"===n||"v2"===n,batchCount:i}},Te=()=>{const{abTestVersion:e}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),t=(0,k.S_)(e,"video_detail_end_card");return{toCreatorEndCard:"v1"===t||!t,toForyouEndCard:"v2"===t||!t}},Se=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"detail_to_explore"))&&void 0!==e?e:"v0";return{inExploreEndCardExperiment:"v0"!==n,isExploreEndCardFourVideo:"v1"===n||"v2"===n,isExploreEndCardCategoryAll:"v1"===n||"v3"===n}},ke=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return"v1"===(null!==(e=(0,y.qt)(t,"three_column_gif"))&&void 0!==e?e:"v0")},Ae=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"creator_header_height"))&&void 0!==e?e:"v0";return{isShorterCreatorHeader:"v1"===n||"v2"===n||"v3"===n,isOneLineBio:"v2"===n||"v3"===n,isHeaderButtonLower:"v3"===n}},Oe=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"encourage_share_repost"))&&void 0!==e?e:"v0";return{isForyou:"v2"===n||"v4"===n,isVideoDetail:"v1"===n||"v4"===n,isBrowserMode:"v3"===n||"v4"===n,isInExperiment:"v0"!==n}},Ee=()=>{var e,t,n,i;const o=(0,w.wW)(),a=null!==(e=null==o?void 0:o.vidList)&&void 0!==e?e:[],r=(0,u.W)((()=>["abTestVersion"]),[]);return[...a,...null!==(i=null===(n=null===(t=null==r?void 0:r.abTestVersion)||void 0===t?void 0:t.versionName)||void 0===n?void 0:n.split(","))&&void 0!==i?i:[]]},Pe=()=>{const{abTestVersion:e}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),t=(0,y.qt)(e,"webapp_causal_inference_auto_scroll_data_collection");return{useAutoScrollModelResult:"v2"===t||"v3"===t}},Ie=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"auto_scroll"))&&void 0!==e?e:"v1";return"v1"===n&&(0,c.sc)("auto_scroll"),{hasAutoScrollButton:"v1"!==n}},Ce=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return"v1"===(null!==(e=(0,y.qt)(t,"preview_cover"))&&void 0!==e?e:"v0")},je=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return"v1"===(null!==(e=(0,y.qt)(t,"show_aigc_label_web"))&&void 0!==e?e:"v0")},Le=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return"v2"===(null!==(e=(0,y.qt)(t,"use_profile_avatar"))&&void 0!==e?e:"v1")},Me=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return"v1"===(null!==(e=(0,y.qt)(t,"pc_non_personalized_suggested_account"))&&void 0!==e?e:"v0")},Ne=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return"v1"===(null!==(e=(0,y.qt)(t,"pc_non_personalized_explore"))&&void 0!==e?e:"v0")},De=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"use_aligned_copies"))&&void 0!==e?e:"v0";return{default:"v0"===n,solution1:"v1"===n,solution2:"v2"===n}},Re=()=>{var e,t;const{abTestVersion:n}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),i=null!==(e=(0,y.qt)(n,"desktop_web_survey_new"))&&void 0!==e?e:"v0",o=null!==(t=(0,y.qt)(n,"desktop_web_survey_old"))&&void 0!==t?t:"v0";return{shouldShowSurvey:"v0"!==i||"v0"!==o,isNewUser:"v0"!==i}},Be=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return"v1"===(null!==(e=(0,y.qt)(t,"enable_autoscroll_moremenu"))&&void 0!==e?e:"v0")},Ue=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"enable_video_detail_moremenu_refactor"))&&void 0!==e?e:"v0";return{enableNewPopover:"v0"!==n,moveFullScreenToMoreMenu:"v1"===n||"v2"===n,showPopoverRightTopCorner:"v2"===n||"v3"===n}},Fe=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return"v2"===(null!==(e=(0,y.qt)(t,"video_detail_page_video_play"))&&void 0!==e?e:"v1")},Ve=()=>{var e,t,n,i;return{isRepostLabelEnabled:"v0"!==(null!==(e=(0,y.d)("webapp_repost_label"))&&void 0!==e?e:"v0"),isRepostTabEnabled:"v0"!==(null!==(t=(0,y.d)("webapp_repost_tab"))&&void 0!==t?t:"v0"),repostActionVid:null!==(n=(0,y.d)("webapp_repost_action"))&&void 0!==n?n:"v0",isRepostNoticeEnabled:"v0"!==(null!==(i=(0,y.d)("webapp_repost_notice"))&&void 0!==i?i:"v0")}},ze=()=>Ve(),He=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"webapp_creator_post_sort"))&&void 0!==e?e:"v0";return{isPostSortBottomLeftEnabled:"v1"===n,isPostSortBottomMiddleEnabled:"v2"===n,isPostSortRightTwoOptionsEnabled:"v3"===n,isPostSortRightMenuEnabled:"v4"===n,isPostSortRightThreeOptionsEnabled:"v5"===n}},qe=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"webapp_creator_just_watched"))&&void 0!==e?e:"v0";return{isJustWatchedEnabled:"v0"!==n,isButtonPrimary:"v1"===n||"v3"===n,isButtonSizeLarge:"v3"===n||"v4"===n}},We=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"guest_mode_redesign"))&&void 0!==e?e:"v0";return{showRedesign:"v0"!==n,buttonKey:(e=>{switch(e){case"v1":default:return"pcWeb_guestLogin_contToVideo";case"v2":return"pcWeb_guestLogin_guest";case"v3":return"pcWeb_guestLogin_without"}})(n)}},$e=()=>{var e;const t=null!==(e=(0,y.d)("webapp_jotai_foryou"))&&void 0!==e?e:"v0",n=Number(t.substring(1));return{foryou:{isForyouListJotai:"v1"===t||"v3"===t,isLoginJotai:n>=2,isSeekBarJotai:n>=2,isContextMenuJotai:n>=2,isAppPromotionJotai:n>=2}}},Ge=()=>(0,i.useMemo)($e,[]),Ye=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"fyp_interest_selector"))&&void 0!==e?e:"v0";return{showInterestSelector:"v0"!==n,minimumInterests:"v1"===n?3:0,shouldRunPlacebo:"v3"===n}};function Ze(e){var t;const{abTestVersion:n}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),i=(0,y.qt)(n,e),o=null!==(t=(0,y.qt)(n,"delay_guest"))&&void 0!==t?t:"2",r=a.A.get(g.er)||"";if(void 0!==r&&""!==r){const e=Number(r);return isNaN(e)?(console.error(`Invalid vv limit: ${r}`),{vvLimit:Number(o)}):{vvLimit:e}}return void 0!==i?(a.A.set(g.er,i,g.Ah),{vvLimit:Number(i)}):{vvLimit:Number(o)}}const Ke=()=>{const{pathname:e}=(0,o.useLocation)(),t={delay_guest_fyp:Ze("delay_guest_fyp"),delay_guest_others_homepage:Ze("delay_guest_others_homepage"),delay_guest_videos:Ze("delay_guest_videos"),delay_guest_discover:Ze("delay_guest_discover"),delay_guest_explore:Ze("delay_guest_explore"),delay_guest_other:Ze("delay_guest_other")};return(0,l.tO)(e)?t.delay_guest_fyp:(0,l.cj)(e)?t.delay_guest_others_homepage:(0,l.Fj)(e)?t.delay_guest_videos:(0,l.pz)(e)?t.delay_guest_discover:(0,l.eD)(e)?t.delay_guest_explore:t.delay_guest_other},Xe=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"video_detail_yml_ui"))&&void 0!==e?e:"v1";return{shouldSwapInfo:"v2"===n||"v4"===n,shouldListView:"v3"===n||"v4"===n}},Qe=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return{hasPip:"v1"!==(null!==(e=(0,y.qt)(t,"video_detail_auto_pip_opt"))&&void 0!==e?e:"v0")}},Je=()=>{var e;const t="webapp_dynamic_bottom_right",{abTestVersion:n}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),o=null!==(e=(0,k.S_)(n,t))&&void 0!==e?e:"v0",{isInDynamicBottomRightExperiment:a,isInDynamicBottomRightControl:r,isInDynamicBottomRightFolded:s,isInDynamicBottomRightExpanded:l}=(0,i.useMemo)((()=>({isInDynamicBottomRightExperiment:"v0"===o||"v1"===o||"v2"===o,isInDynamicBottomRightControl:"v0"===o,isInDynamicBottomRightFolded:"v1"===o,isInDynamicBottomRightExpanded:"v2"===o})),[o]);return{baseExpId:t,isInDynamicBottomRightExperiment:a,isInDynamicBottomRightControl:r,isInDynamicBottomRightFolded:s,isInDynamicBottomRightExpanded:l}},et=()=>{var e;const t="webapp_auto_dark_mode_data_collection",{abTestVersion:n}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),o=null!==(e=(0,k.sT)(n,t))&&void 0!==e?e:"v0",{isInAutoDarkModeExperiment:a,isInAutoDarkModeControl:r,isInAutoDarkModeTreatment:s}=(0,i.useMemo)((()=>({isInAutoDarkModeExperiment:"v0"===o||"v1"===o,isInAutoDarkModeControl:"v0"===o,isInAutoDarkModeTreatment:"v1"===o})),[o]);return{baseExpId:t,isInAutoDarkModeControl:r,isInAutoDarkModeTreatment:s,isInAutoDarkModeExperiment:a}},tt=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"use_container_exp"))&&void 0!==e?e:"v0";return{isInProductHoldout:"v1"===n||"v3"===n,isInPerformanceHoldout:"v2"===n||"v3"===n}},nt=(e,t)=>{var n;const{abTestVersion:i}=(0,f.L$)((0,u.W)((()=>[I]),[])),o=null!==(n=(0,y.qt)(i,"tteh_effect_anchor_v1"))&&void 0!==n?n:"v1",a="v1"!==o&&[5,129,0].includes(null!=t?t:999);let r=e;return a||(r=[]),{shouldShowEhEffectAnchor:a,effectAnchors:r,abVariant:o}},it=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"video_detail_yml_creator"))&&void 0!==e?e:"v0";return{useCreatorFeed:"v0"!==n,showPinnedVideos:"v2"===n}},ot=()=>{var e;const{abTestVersion:t,user:n}=(0,f.L$)((0,u.W)((()=>["abTestVersion","user"]),[])),i=!!n;let o=null!==(e=(0,y.qt)(t,"video_detail_author_card"))&&void 0!==e?e:"v0";return i&&(o="v0"),{useAuthorCard:"v0"!==o,useLargeCard:"v3"===o,withCountDown:"v2"===o}},at=()=>{var e,t;const{abTestVersion:n}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),i=null!==(e=(0,y.qt)(n,"video_detail_nav_opt"))&&void 0!==e?e:"v0",o=null!==(t=(0,y.qt)(n,"video_detail_nav_shortcut"))&&void 0!==t?t:"v0";return{pushHistory:"v1"===i||"v3"===i,newTabAndShortcut:"v1"===o||"v4"===o,enableShortcutFocusAddressBar:"v2"===o||"v4"===o,enableShortcutRefreshAndCopy:"v3"===o||"v4"===o,enableAllShortcut:"v4"===o}},rt=()=>{var e,t;const{abTestVersion:n}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),i=null!==(e=(0,y.qt)(n,"video_details_player_redesign_engagement"))&&void 0!==e?e:"v0",o=null!==(t=(0,y.qt)(n,"video_details_player_redesign_player"))&&void 0!==t?t:"v0",a="v0"!==i||"v3"===o,r=a&&"v1"!==i||"v3"===o,s="v0"!==o;return{showCurvedPlayerEdges:"v0"!==o||"v0"!==i,showFYPButtonStyle:a,moveCreatorIcon:r,moveEngagementPanel:r&&"v2"!==i||"v3"===o,updateButtonPanel:s,updatePlayerControls:s&&"v1"!==o}},st=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"search_top_author_card"))&&void 0!==e?e:"v0";return{withFollowButton:"v0"!==n,withVideoList:"v2"===n}},lt=()=>{var e,t;const{abTestVersion:n}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return{count:null!==(t={v0:10,v1:5,v2:8,v3:12}[null!==(e=(0,y.qt)(n,"search_yml_guess_count"))&&void 0!==e?e:"v0"])&&void 0!==t?t:10}},ct=()=>{var e;const{abTestVersion:t,user:n}=(0,f.L$)((0,u.W)((()=>["abTestVersion","user"]),[])),i=null!==(e=(0,y.qt)(t,"use_navigation_refactor"))&&void 0!==e?e:"v0";return{showUpload:!("v5"===i&&!n),condenseProfileDropdown:"v5"===i}},dt=()=>{var e,t;const{abTestVersion:n,user:i}=(0,f.L$)((0,u.W)((()=>["abTestVersion","user"]),[])),o=!!i;return{enableUploadRefactor:"v1"===(null!==(e=(0,y.qt)(n,"enable_upload_refactor"))&&void 0!==e?e:"v0")&&o,enableMessageRefactor:"v1"===(null!==(t=(0,y.qt)(n,"enable_message_refactor"))&&void 0!==t?t:"v0")&&o}},ut=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"use_left_navigation_refactor"))&&void 0!==e?e:"v0";return{showNewLiveIcon:"v1"===n||"v3"===n,isCollapsibleFooter:"v2"===n||"v3"===n}},pt=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"video_detail_responsive_ui"))&&void 0!==e?e:"v0";return{responsiveUi:"v0"!==n,showUserInfo:"v2"===n}},vt=()=>{var e,t;const{abTestVersion:n}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return{showOnHot:"v0"!==(null!==(e=(0,y.qt)(n,"new_guest_mode_hot"))&&void 0!==e?e:"v0"),showOnRest:"v0"!==(null!==(t=(0,y.qt)(n,"new_guest_mode_other"))&&void 0!==t?t:"v0")}},gt=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return null!==(e=(0,y.qt)(t,"webapp_explore_nav_order"))&&void 0!==e?e:"v0"},mt=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return null!==(e=(0,y.qt)(t,"webapp_explore_video_info"))&&void 0!==e?e:"v0"},ht=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"webapp_explore_aspect_ratio"))&&void 0!==e?e:"v0";return{ratio:"v4"===n?9/16:3/4,isMasonry:"v5"===n,responsiveVid:n}},_t=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"webapp_explore_remove_category"))&&void 0!==e?e:"v0";let i="v0"!==n?10:void 0;return"v3"===n&&(i=1),{isHorizontalLayout:"v1"===n||"v2"===n,isCategoryEnabled:"v0"===n||"v2"===n,isCategoryInPageJumpEnabled:"v2"===n,maxCategories:i}},ft=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"islands_arch_explore"))&&void 0!==e?e:"v0";return{delayAfterRender:"v1"===n,delayAfterVideoPlay:"v2"===n}},yt=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return{hasTrendingCard:"v1"===(null!==(e=(0,y.qt)(t,"explore_trending_topics"))&&void 0!==e?e:"v0")}},bt=()=>{var e;return"v0"!==(null!==(e=(0,y.d)("webapp_collection_profile"))&&void 0!==e?e:"v0")},wt=()=>{var e;switch(null!==(e=(0,y.d)("webapp_collection_adder"))&&void 0!==e?e:"v0"){case"v2":return"topToast";case"v3":return"bottomToast";default:return"default"}},xt=()=>(0,i.useMemo)((()=>{return{isCollectionEnabled:bt(),isAddToCollectionEnabled:"v0"!==(null!==(e=(0,y.d)("webapp_collection_adder"))&&void 0!==e?e:"v0"),popoverTriggerType:wt()};var e}),[]),Tt=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return{shouldUseWebAppQueryCommentsPopover:"v1"===(null!==(e=(0,y.qt)(t,"webapp_query_comments_popover"))&&void 0!==e?e:"v0")}},St=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return{showNewCommentDesign:"v0"!==(null!==(e=(0,y.qt)(t,"detail_page_comments_redesign"))&&void 0!==e?e:"v0")}},kt=()=>{var e,t;const n=(0,w.wW)(),i=null!==(t=null===(e=null==n?void 0:n.parameters.seo_pc_traffic)||void 0===e?void 0:e.vid)&&void 0!==t?t:"v0",{isSearchEngineBot:o=!1}=(0,f.L$)((0,p.U)((()=>["isSearchEngineBot"]),[]));return{useInfoCard:["v1","v3"].includes(i)&&o,useHtmlTag:["v2","v3"].includes(i),useOnlineVersion:"v0"===i}},At=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"detail_page_comments_right_side"))&&void 0!==e?e:"v0";return{showRightSideComments:"v0"!==n,showCommentTabDefault:"v1"===n||"v3"===n,showFloatingDescription:"v3"===n||"v4"===n}},Ot=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return{hasNewShareMenu:"v0"!==(null!==(e=(0,y.qt)(t,"revamp_share_menu"))&&void 0!==e?e:"v0")}},Et=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return"v0"!==(null!==(e=(0,y.qt)(t,"remove_disclaimer"))&&void 0!==e?e:"v0")},Pt=()=>{var e;const t=null!==(e=(0,y.d)("webapp_inapp_notice"))&&void 0!==e?e:"v0";return{isInAppNotificationEnabled:"v0"!==t,placement:"v1"===t||"v2"===t?"topEnd":"bottomEnd",layoutType:"v1"===t||"v3"===t?"withoutHeader":"withHeader"}},It=()=>{const{pathname:e,search:t}=(0,o.useLocation)();return(0,i.useMemo)((()=>{const n=Pt();return(0,l.Pz)(e,t)||(n.isInAppNotificationEnabled=!1),n}),[e,t])},Ct=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"nav_phase_3"))&&void 0!==e?e:"v0",i="v0"!==n,a=[x.OZ.messages,x.OZ.setting,x.OZ.settingBlockList,x.OZ.feedback,x.OZ.feedbackReport,x.OZ.feedbackHistory,x.OZ.upload,T.vI.kycSubmission,T.vI.kyc,T.vI.kycLoading,T.vI.kycPoa,S.tH.loginHome,S.tH.signupHome,x.OZ.download,...x.OZ.downloadWithLang],{pathname:r}=(0,o.useLocation)();return{vid:n,isInNavPhase3:i,showFullSideNav:!(0,o.matchPath)(r,{path:a,exact:!0})&&"v0"!==n}},jt=()=>{var e,t,n;const{abTestVersion:i}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),o=null!==(e=(0,y.qt)(i,"feed_change_optimize_image"))&&void 0!==e?e:"v0",a=null!==(t=(0,y.qt)(i,"fyp_redesign"))&&void 0!==t?t:"v0",r=null!==(n=(0,y.qt)(i,"feed_change_optimize_ff"))&&void 0!==n?n:"v0",{isInProductHoldout:s}=tt();return{enableFeedChangeImageOptimize:"v1"===o,enableFeedChangeFirstFrameOptimize:"v1"===r&&!s&&"v1"===a}},Lt=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[]));return"v0"!==(null!==(e=(0,y.qt)(t,"global_web_footer"))&&void 0!==e?e:"v0")},Mt=()=>{var e;const{abTestVersion:t}=(0,f.L$)((0,u.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,y.qt)(t,"guest_mode_interest"))&&void 0!==e?e:"v0";return{showGuestModeInterestSelector:"v0"!==n,showContinueButton:"v2"!==n}}},45266:(e,t,n)=>{"use strict";n.d(t,{s:()=>a});var i=n(71281),o=n(57431);const a=()=>{var e,t;const{user:n}=(0,o.x)();return{showAds:"v2"===(null!==(e=(0,i.d)("enable_ads"))&&void 0!==e?e:"v1")&&!!n,showAboutThisAd:"v2"===(null!==(t=(0,i.d)("enable_about_this_ad"))&&void 0!==t?t:"v1")}}},45297:(e,t,n)=>{"use strict";n.d(t,{Ah:()=>q,BP:()=>A,DK:()=>s,F3:()=>p,HF:()=>V,Iw:()=>k,K2:()=>j,Kt:()=>a,LA:()=>C,Ly:()=>N,M2:()=>I,Nd:()=>$,Nj:()=>O,Nu:()=>L,O_:()=>x,QI:()=>S,RM:()=>f,S0:()=>w,Uw:()=>D,VD:()=>B,Z3:()=>l,_:()=>g,_O:()=>h,dj:()=>K,er:()=>H,fm:()=>u,gM:()=>b,iJ:()=>T,i_:()=>U,je:()=>y,n9:()=>z,rd:()=>M,se:()=>Z,sj:()=>v,tD:()=>_,tS:()=>F,un:()=>m,v1:()=>o,vt:()=>r,vu:()=>R,xE:()=>P,y3:()=>d,z$:()=>E,z3:()=>c});var i=n(35248);const o="webapp-pwa-expanded",a="webapp-live-nav-click",r="webapp_showed_profile_tip",s="search_login",l="search_history_list",c="webapp_showed_explore_new_label",d="webapp_explore_mute_state",u="showed_desktop_app_download",p="time_of_last_prediction",v="timeOfLastPopup",g="pc_app_auto_tip",m="pc_floating_player_guide_show_3",h="pc_floating_player_guide_ack_3",_="pc_floating_player_guide_show_4",f="pc_floating_player_guide_ack_4",y="pc_floating_player_guide_show_sw",b="suggest_account_bind_last_show",w="last_watch_live_on_pc",x="webapp_launch_mode",T="webapp_tiktok_open",S="webapp_tiktok_privious",k="webapp_open_edit_profile_modal_from",A="popup_profile_toast",O="watch_live_on_pc",E="Sorry, something wrong with the server, please try again.",P=1988,I=12,C=3e4,j=9,L=30,M=9,N=9,D=9,R=30,B=30,U="tiktok_webapp_feed_mode",F="tiktok_webapp_theme",V="tiktok_webapp_theme_manual",z="tiktok_webapp_theme_source",H="delay_guest_mode_vid",q={secure:!0,expires:300,domain:"www.tiktok.com"};var W;!function(e){e.DarkTheme="dark",e.LightTheme="light"}(W||(W={}));const $=i.$m.concat(["CH","US","GB"]),G="https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/",Y="https://lf16-tiktok-web.tiktokcdn-us.com/obj/tiktok-web-tx/",Z={ROW:{remScript:`${G}tiktok/static/nginx/rem-script.js`,slardarWeb:`${G}slardar/sdk-pre/browser.web.pre.js`,serviceWorker:`${G}tiktok/static/nginx/service-worker.js`},TTP:{remScript:`${Y}tiktok/static/nginx/rem-script.js`,slardarWeb:"https://lf16-cdn-tos.tiktokcdn-us.com/obj/static-tx/tiktok-infra/csp/sdk-pre/slardar.web.pre.js",serviceWorker:`${Y}tiktok/static/nginx/service-worker.js`}},K="swiper-no-swiping"},48211:(e,t,n)=>{"use strict";n.d(t,{Gu:()=>i,yH:()=>o});const i="tiktok_webapp",o="tiktok_webapp_login"},20157:(e,t,n)=>{"use strict";n.d(t,{g:()=>c,l:()=>l});var i=n(57432),o=n.n(i),a=n(40099),r=n(58305);const s=(0,a.createContext)({counterRef:{current:0},scrollWidthRef:{current:0},subscribeRef:{current:[]},setCounter:o(),setScrollWidth:o(),subscribeModalChange:()=>o()});function l(){const e=(0,a.useRef)(0),t=(0,a.useRef)(0),n=(0,a.useRef)([]),i=(0,a.useCallback)((t=>{e.current=t}),[]),o=(0,a.useCallback)((e=>{t.current=e}),[]),r=(0,a.useCallback)((e=>(n.current.push(e),()=>{const t=n.current.indexOf(e);n.current.splice(t)})),[]),l=(0,a.useMemo)((()=>({counterRef:e,subscribeRef:n,scrollWidthRef:t,setCounter:i,setScrollWidth:o,subscribeModalChange:r})),[r,i,o]);return{GlobalModalProvider:s.Provider,value:l}}function c(){const{counterRef:e,setCounter:t,setScrollWidth:n,subscribeRef:i,scrollWidthRef:o,subscribeModalChange:l}=(0,a.useContext)(s),c=(0,a.useCallback)((e=>{i.current.forEach((t=>{t({hasModal:e,scrollWidth:o.current})}))}),[o,i]);return{showModal:(0,a.useCallback)(((i,o)=>{if(!(0,r.Lm)()&&!i||o)return;const{current:a}=e;if(t(a+1),0===a){const e=(0,r.aP)();n(e),document.body.style.paddingRight=`${e}px`,document.body.className+=" hidden",c(!0)}}),[e,c,t,n]),hideModal:(0,a.useCallback)((()=>{const{current:i}=e,o=Math.max(0,i-1);t(o),0===o&&(n(0),document.body.className=document.body.className.replace(/\s?hidden/g,""),document.body.style.paddingRight="0px",c(!1))}),[e,c,t,n]),subscribeModalChange:l}}},52266:(e,t,n)=>{"use strict";n.d(t,{K:()=>s});var i=n(40099),o=n(41271),a=n(46682),r=n(32125);function s(e,t,n){function s(a,s,l){const c=e(),d=n.useServiceState(a,null!=s?s:r.bN),u=(0,o.P)(t,{selector:a,dependencies:null!=l?l:[]});return(0,i.useMemo)((()=>c?d:u),[c,d,u])}function l(){const o=e(),r=n.useServiceDispatchers(),s=(0,a.w)(t);return(0,i.useMemo)((()=>o?r:s),[o,r,s])}return{useSigiOrJotaiService:function(e,t,n){const o=s(e,t,n),a=l();return(0,i.useMemo)((()=>[o,a]),[o,a])},useSigiOrJotaiState:s,useSigiOrJotaiDispatchers:l}}},45212:(e,t,n)=>{"use strict";n.d(t,{id:()=>s,qo:()=>r});var i=n(57431),o=n(36272),a=n(92651);const r=()=>{var e,t,n,r;const{abTestVersion:s}=(0,i.x)(),l=null!==(n=null===(t=null===(e=null==s?void 0:s.parameters)||void 0===e?void 0:e.ff_avg_duration_portrait)||void 0===t?void 0:t.vid)&&void 0!==n?n:{vid:"v0"},c="v0"!==(null!==(r=null==l?void 0:l.vid)&&void 0!==r?r:"v0"),d="undefined"!=typeof navigator?null===navigator||void 0===navigator?void 0:navigator.hardwareConcurrency:4,u=(0,o.BX)((e=>{var t;return(null===(t=e.ff_duration_avg)||void 0===t?void 0:t.target)===a.L.Low}));return{isLowEndDevice:c&&(u||d<4)}},s=()=>{var e,t,n,o,a;const{abTestVersion:r}=(0,i.x)(),s=null!==(n=null===(t=null===(e=null==r?void 0:r.parameters)||void 0===e?void 0:e.vv_avg_per_day_portrait)||void 0===t?void 0:t.vid)&&void 0!==n?n:{vid:"v0"},l=null===(o=null==r?void 0:r.parameters.change_list_length_new)||void 0===o?void 0:o.vid;return{enableVVAvgPerDayStrategy:"v0"!==(null!==(a=null==s?void 0:s.vid)&&void 0!==a?a:"v0"),defaultRecommendFetchCount:Number(l)}}},4712:(e,t,n)=>{"use strict";n.d(t,{A5:()=>u,M2:()=>d,Zy:()=>c,zW:()=>l});var i=n(41271),o=n(49730),a=n(52333),r=n(97071),s=n(8046);const l=e=>{var t;if(!e)return;const n=null!==(t=e.log_extra)&&void 0!==t?t:"";try{const e=JSON.parse(n);return{charge_type:e.charge_type,req_id:e.req_id,system_origin:e.system_origin}}catch(e){return}},c=({adInfo:e,refer:t,tag:n})=>{if(!e.web_url)return;const{web_url:i}=e,o=(0,r.n5)({ad_info:e,play_mode:"one_column"});window.open(i,"_blank"),s.pg.handleRealtimeClick(Object.assign(Object.assign({},o),{refer:t,tag:n}))},d=(e,t)=>{var n,r;const s=(0,o.Lu)((e=>null==e?void 0:e.list),[e,t]),l=(0,i.P)(a.k,{selector:e=>e,dependencies:[e,t]});if(!(null===(n=l[e])||void 0===n?void 0:n.ad_info)||!s||t>=s.length)return 0;for(let e=t-1;e>=0;e--)if(null===(r=l[s[e]])||void 0===r?void 0:r.ad_info)return t-e;return 0},u=e=>{var t,n;const r=(0,o.Lu)((e=>null==e?void 0:e.list),[e]),s=(0,i.P)(a.k,{selector:e=>e,dependencies:[e]});if(!(null===(t=s[e])||void 0===t?void 0:t.ad_info)||!r)return 0;for(let e=0;e<=r.length;e++)if(null===(n=s[r[e]])||void 0===n?void 0:n.ad_info)return e+1;return 0}},34012:(e,t,n)=>{"use strict";n.d(t,{Ig:()=>l,XJ:()=>c,_Y:()=>d});var i=n(47172),o=n(82715),a=n(7089),r=n(32125),s=n(5441);const l=()=>{const{search:e}=(0,i.useLocation)();return"business"===new URLSearchParams(e).get("scene")},c=()=>{const{search:e}=(0,i.useLocation)();return"true"===new URLSearchParams(e).get("allow_label")},d=e=>{const t=(0,a.VR)((e=>e.businessPermission),r.bN),{isElectronApp:n}=(0,s.B)();return{path:t.message?`/business-suite/messages?from=homepage&lang=${e}`:`${o.OZ.messages}?lang=${e}`,target:n&&t.message?"_blank":void 0}}},82973:(e,t,n)=>{"use strict";n.d(t,{Qb:()=>v,Ti:()=>g});var i,o=n(58632),a=n(70322),r=n(71111),s=n(31209),l=n(40407),c=n(40040),d=n(90300),u=n(31733);!function(e){e.Basic="basic",e.Inference="inference"}(i||(i={}));const p=(0,r.atom)({});p.debugLabel="experimentAtom";const{useServiceDispatchers:v,useServiceState:g}=(0,s.i)(p,((e,t)=>({getAbTestVidWithQuerySPA:n=>{var o,a,r,s,l;const{baseExpId:c,inferenceExpId:d,baseVid:u,inferenceVid:v,wid:g,upliftModelInfo:m}=n;let h={};try{h=JSON.parse(null!==(o=m)&&void 0!==o?o:"{}")}catch(e){console.error("Error. Failed to parse uplift model info. ",e)}const _=!(u||!v),f=null!==(s=null===(r=null===(a=null==h?void 0:h[c])||void 0===a?void 0:a[v])||void 0===r?void 0:r.prediction_threshold)&&void 0!==s?s:"";return e(p)[c]||t(p,(e=>Object.assign(Object.assign({},e),{[c]:{baseExpId:c,inferenceExpId:d,vid:_?v:u,wid:g,type:_?i.Inference:i.Basic,inferenceCount:0,predictionThreshold:parseFloat(f)||0}}))),null===(l=e(p)[c])||void 0===l?void 0:l.vid},disqualifyForInference:(e,t,n,i)=>{a.w.handleInferenceDisqualify({enter_method:t,model_name:e,reason:i,page_name:n})},maybeTriggerInference:(n,r,s)=>(0,o.__awaiter)(void 0,void 0,void 0,(function*(){const o=e(p)[n];if(!o)return void console.log("Error. Unuable to find the experiment: ",n);const{wid:v,type:g,vid:m,inferenceCount:h,inferenceExpId:_,predictionThreshold:f}=o,y=(0,l.ZC)(v,c.uV,d.gb);if(g===i.Basic||"v0"===m)a.w.handleInferenceTrigger({enter_method:r,page_name:s,model_name:"v0"===m?`${n}_rct_control`:`${n}_rct_treatment`,payload:null==y?void 0:y.toString(),threshold_exceed:"v0"===m?0:1,inference_result:-1});else if(g===i.Inference&&"v0"!==m&&0===h){const e=yield(0,u.HC)(v,m,n,"segment_default",f,r,s,!1,0);t(p,(t=>Object.assign(Object.assign({},t),{[n]:{baseExpId:n,inferenceExpId:_,vid:e?m:"v0",wid:v,type:i.Inference,inferenceCount:h+1,predictionThreshold:f}})))}}))})))},21467:(e,t,n)=>{"use strict";n.d(t,{P7:()=>C,sT:()=>j,S_:()=>L});var i,o=n(58632),a=n(40099),r=n(47172),s=n(49057),l=n(67842),c=n(48615),d=n(60484),u=n(71281),p=n(96689),v=n(31733),g=n(58305),m=n(78662),h=n(45297),_=n(26956),f=n(92264),y=n(33063),b=n(82973),w=n(70322),x=n(71111),T=n(31209),S=n(40407),k=n(40040),A=n(90300);!function(e){e.Basic="basic",e.Inference="inference"}(i||(i={}));const O=(0,x.atom)({});O.debugLabel="spaExperimentAtom";const{useServiceDispatchers:E,useServiceState:P}=(0,T.i)(O,((e,t)=>({getAbTestVidWithQuerySPA({isInferenceEnabled:n,baseExpId:o,baseVid:a,wid:r,upliftModelInfo:s,disableAutoTrigger:l=!1}){var c;if(!e(O)[o]){if(n){let e={};try{e=JSON.parse(null!==(c=s)&&void 0!==c?c:"{}")}catch(e){console.error("Error. Failed to parse uplift model info. ",e)}t(O,(t=>Object.assign(Object.assign({},t),{[o]:{baseExpId:o,vid:a,wid:r,type:i.Inference,inferenceCount:0,predictionThresholds:null==e?void 0:e[o]}})))}else t(O,(e=>Object.assign(Object.assign({},e),{[o]:{baseExpId:o,vid:a,wid:r,type:i.Basic,inferenceCount:0}})));l||this.maybeTriggerInference({baseExpId:o})}},maybeTriggerInference({baseExpId:n,enterMethod:a="",pageName:r=""}){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const o=e(O)[n];if(!o)return void console.log("Error. Unuable to find the experiment: ",n);const{wid:s,type:l,vid:c,inferenceCount:d,predictionThresholds:u}=o,p=(0,S.ZC)(s,k.uV,A.gb);if(l===i.Basic)w.w.handleInferenceTrigger({enter_method:a,page_name:r,model_name:`${n}_${c}`,payload:null==p?void 0:p.toString(),threshold_exceed:-1,inference_result:-1});else if(l===i.Inference&&0===d){t(O,(e=>Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},o),{inferenceCount:d+1})})));const e=yield(0,v.Ho)(s,n,"segment_default",u,a,r);e&&t(O,(t=>Object.assign(Object.assign({},t),{[n]:Object.assign(Object.assign({},o),{vid:e,inferenceCount:d+1})})))}}))}})));var I=n(32125);function C(e={}){const t=(0,d.L$)((0,s.W)((()=>["user","wid","abTestVersion","webIdCreatedTime"]),[])),{user:n,abTestVersion:i,webIdCreatedTime:c}=t,b=(0,u.qt)(i,"webapp_login_prediction_full"),w=(0,u.qt)(i,"webapp_login_prediction_reverse"),x=(0,u.qt)(i,"webapp_login_causal_inference_validation"),{pathname:T}=(0,r.useLocation)(),S=(0,v.mv)(c),k=b||w,A=!!x&&"v1"!==x,{getPriorityPopup:O}=(0,y._y)(),{popupPriority:E}=(0,y.lz)((e=>({popupPriority:e.priority,isReady:e.isReadyList[2]}))),{handlePopoverInitial:P,handlePopoverEnd:I}=O(2),C=()=>{var t;null===(t=e.closeCallback)||void 0===t||t.call(e),I()},j=(0,p.G)({modalConfig:Object.assign(Object.assign({closeable:!1,isGuestMode:!1,query:{enter_method:"model_based"}},e),{closeCallback:C})}),L=(0,p.G)({modalConfig:Object.assign(Object.assign({query:{enter_method:"guest_mode"},isGuestMode:!1,isGuestModeUI:!0},e),{closeCallback:C})}),M=(0,l.b1)(),N=(0,a.useCallback)(((e,t,i)=>(0,o.__awaiter)(this,void 0,void 0,(function*(){if(n)return;void 0!==t&&-1>=t&&(0,v.CE)(i)&&2===E&&((0,g.AP)(h.sj,Date.now().toString()),L(),P()),M.setCheckPredictionLogin({showLoginOnLoad:Boolean(!1)})}))),[n,k,A,x,E,M,j,P,L]);return{loginPredictionHandler:(0,a.useCallback)((()=>{const e=(0,g.Hd)(h.iJ),t=(0,v.Vw)(S,e),i=[{expId:"webapp_login_prediction_full",segmentId:t,versionId:b,propertyList:["prediction_threshold"]},{expId:"webapp_login_prediction_reverse",segmentId:t,versionId:w,propertyList:["prediction_threshold"]}],{prediction_threshold:o,guest_mode_threshold:a,popup_interval:r}=(0,_.J)(f.a,i);n||void 0===o&&void 0===a&&!x?M.setCheckPredictionLogin({showLoginOnLoad:!1}):!(0,v.oX)("app_load","","")||(0,m.mQ)(T)||(0,m.FJ)(T)||N(o,a,r)}),[S,b,w,n,x,T,N,M])}}function j(e,t,n){const i=null!=n?n:`${t}_spa`,{wid:o}=(0,d.L$)((0,s.W)((()=>["wid"]),[])),{upliftModelInfo:a}=(0,d.L$)((0,c.U)((()=>["upliftModelInfo"]),[])),r=(0,u.qt)(e,t),l=(0,u.qt)(e,i);(0,b.Qb)().getAbTestVidWithQuerySPA({baseExpId:t,inferenceExpId:i,baseVid:r,inferenceVid:l,wid:o,upliftModelInfo:a});const{vid:p}=(0,d.L$)((0,b.Ti)((e=>e[t]),I.bN));return p}function L(e,t,n){const i=null!=n?n:`${t}_spa`,{wid:o}=(0,d.L$)((0,s.W)((()=>["wid"]),[])),{upliftModelInfo:a}=(0,d.L$)((0,c.U)((()=>["upliftModelInfo"]),[])),r=(0,u.qt)(e,t),l=function(e,t){const n=null==e?void 0:e.parameters[t];return n?"base"===n.type&&n.vid||"model"===n.type&&n.vid?n:(console.error(`Error parse SPA AB test param failed for ${t}`),null):null}(e,i),p=E();r&&!l?p.getAbTestVidWithQuerySPA({isInferenceEnabled:!1,baseExpId:t,baseVid:r,wid:o,upliftModelInfo:a}):r&&l&&p.getAbTestVidWithQuerySPA({isInferenceEnabled:"model"===l.type,baseExpId:t,baseVid:l.vid,wid:o,upliftModelInfo:a});const{vid:v}=(0,d.L$)(P((e=>e[t]),I.bN));return v}},31733:(e,t,n)=>{"use strict";n.d(t,{HC:()=>y,Ho:()=>b,Vw:()=>S,CE:()=>k,mv:()=>T,oX:()=>f,_0:()=>w,O6:()=>x});var i,o=n(58632),a=n(4474),r=n(58305);!function(e){e[e.S=1]="S",e[e.T=2]="T",e[e.X=3]="X",e[e.R=4]="R"}(i||(i={}));const s="/node-webapp/api/inference";var l=n(45297),c=n(40407),d=n(40040),u=n(90300),p=n(26956);const v={webapp_auto_dark_mode_data_collection:{segment_default:{v1:[{name:"model_name",value:"webapp_auto_dark_mode_data_collection_vv_r",priority:1},{name:"model_type",value:i.R,priority:1},{name:"feature_number",value:349,priority:1}]}},webapp_causal_inference_auto_scroll_validation:{segment_default:{v2:[{name:"model_name",value:"webapp_causal_inference_auto_scroll_rr1_s_model",priority:1},{name:"model_type",value:i.S,priority:1},{name:"feature_number",value:81,priority:1},{name:"prediction_threshold",value:0,priority:1}],v3:[{name:"model_name",value:"webapp_causal_inference_auto_scroll_play_duration_s_model",priority:1},{name:"model_type",value:i.S,priority:1},{name:"feature_number",value:81,priority:1},{name:"prediction_threshold",value:0,priority:1}]}},video_detail_end_card:{segment_default:{v1:[{name:"model_name",value:"video_detail_end_card_v1",priority:1},{name:"model_type",value:i.R,priority:1},{name:"feature_number",value:349,priority:1}],v2:[{name:"model_name",value:"video_detail_end_card_v2",priority:1},{name:"model_type",value:i.R,priority:1},{name:"feature_number",value:349,priority:1}]}}};var g=n(70322);const m=["homepage_hot","others_homepage"];function h(e,t,i){return(0,o.__awaiter)(this,void 0,void 0,(function*(){const o=yield n.g.fetch((0,a.stringifyUrl)({url:s,query:{fvaluesString:e.toString(),modelName:t,modelType:i}})).then((e=>e.json()));return 0!==o.statusCode&&console.error(`Unable to get causal inference: ${o.statusCode}`),o.result}))}const _=({expId:e,segmentId:t,vid:n,enterMethod:i,pageName:o})=>{const{model_name:a,model_type:r,feature_number:s}=(0,p.J)(v,[{expId:e,segmentId:t,versionId:n,propertyList:["model_name","model_type","feature_number"]}]);if(void 0!==a&&void 0!==r&&void 0!==s)return{modelName:a,modelType:r,featureNumber:s};g.w.handleInferenceDisqualify({enter_method:i,model_name:a,reason:"failed_to_get_model_meta_data",page_name:o})},f=(e,t="",n="")=>{const i=(0,r._S)(l.F3);return!i||Date.now()-parseInt(i,10)>=1e3?((0,r.AP)(l.F3,Date.now().toString()),!0):(g.w.handleInferenceDisqualify({enter_method:e,model_name:t,reason:"api_rate_control",page_name:n}),!1)};function y(e,t,n,i="segment_default",a,r,s,l,p){var v,m;return(0,o.__awaiter)(this,void 0,void 0,(function*(){if(!f(r,"",s))return!1;const o=_({expId:n,segmentId:i,vid:t,enterMethod:r,pageName:s});if(!o)return!1;const{modelName:y,modelType:b,featureNumber:w}=o,x=(0,c.ZC)(e||"",d.uV,u.gb);if(0===x.length)return g.w.handleInferenceDisqualify({enter_method:r,model_name:y,reason:"failed_to_generate_payload",page_name:s}),!1;let T=[];if(l&&p)T=[p];else try{T=yield h(x.slice(0,w),y,b)}catch(e){return console.error("Unable to call inference API!",e),g.w.handleInferenceTrigger({enter_method:r,page_name:s,model_name:y,payload:null===(v=null==x?void 0:x.slice(0,w))||void 0===v?void 0:v.toString(),threshold_exceed:0,inference_result:-1}),!1}const[S]=T,k=!(void 0===S||-1===S)&&S>a;return g.w.handleInferenceTrigger({enter_method:r,page_name:s,model_name:y,payload:null===(m=null==x?void 0:x.slice(0,w))||void 0===m?void 0:m.toString(),threshold_exceed:k?1:0,inference_result:S}),k}))}function b(e,t,n="segment_default",i,a,r){var s,l,p,m,f;return(0,o.__awaiter)(this,void 0,void 0,(function*(){const o=Object.keys(null!==(l=null===(s=null==v?void 0:v[t])||void 0===s?void 0:s[n])&&void 0!==l?l:{});let y={vid:"v0",inference_result:0};for(const s of o){const o=_({expId:t,segmentId:n,vid:s,enterMethod:a,pageName:r});if(!o)continue;const{modelName:l,modelType:v,featureNumber:b}=o,w=(0,c.ZC)(e||"",d.uV,u.gb);if(0===w.length){g.w.handleInferenceDisqualify({enter_method:a,model_name:l,reason:"failed_to_generate_payload",page_name:r});continue}let x=[];try{x=yield h(w.slice(0,b),l,v)}catch(e){return console.error("Unable to call inference API!",e),g.w.handleInferenceTrigger({enter_method:a,page_name:r,model_name:l,payload:null===(p=null==w?void 0:w.slice(0,b))||void 0===p?void 0:p.toString(),threshold_exceed:0,inference_result:-1}),null}const[T]=x,S=void 0!==T&&-1!==T;if(!S)return null;const k=parseFloat(null===(m=null==i?void 0:i[s])||void 0===m?void 0:m.prediction_threshold)||0,A=!!S&&T>k;g.w.handleInferenceTrigger({enter_method:a,page_name:r,model_name:l,payload:null===(f=null==w?void 0:w.slice(0,b))||void 0===f?void 0:f.toString(),threshold_exceed:A?1:0,inference_result:T}),A&&T>y.inference_result&&(y={vid:s,inference_result:T})}return y.vid}))}const w=e=>(0,o.__awaiter)(void 0,void 0,void 0,(function*(){const{isMuted:t,enterMethod:n,modelName:i,pageName:o,wid:a,vid:r,expId:s,segmentId:l="segment_default",isSimulated:c,simulatedResult:d,setMute:u}=e;t?g.w.handleInferenceDisqualify({enter_method:n,model_name:i,reason:"already_treated",page_name:o}):(yield y(a,r,s,l,0,n,o,c,d))&&u(!0)})),x=e=>(0,o.__awaiter)(void 0,void 0,void 0,(function*(){const{isAutoScroll:t=!1,enterMethod:n,modelName:i,pageName:o,vid:a,setIsAutoScroll:s}=e;(0,r._S)("auto_scroll")?g.w.handleInferenceDisqualify({enter_method:n,model_name:i,reason:"manually_set",page_name:o}):t?g.w.handleInferenceDisqualify({enter_method:n,model_name:i,reason:"already_treated",page_name:o}):s("v3"===a)})),T=(e=0)=>{const t=(0,r._S)("old_user_ppe_test");return"1"!==t&&("0"===t||Date.now()/1e3-e<86400)},S=(e=!0,t="")=>e?"segment_1":(m.includes(t),"segment_default"),k=(e=6e4)=>{const t=(0,r._S)(l.sj);return!t||Date.now()-parseInt(t,10)>=e}},92264:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});const i={online:{segment_default:{v1:[{name:"popup_interval",value:432e5,priority:0}]}},webapp_mobile_web2app_cta_guide:{segment_default:{v1:[{name:"prediction_threshold",value:.001,priority:1}],v2:[{name:"prediction_threshold",value:.009,priority:1}],v3:[{name:"prediction_threshold",value:.03,priority:1}],v4:[{name:"prediction_threshold",value:.07,priority:1}]}},webapp_login_prediction:{segment_default:{v2:[{name:"prediction_threshold",value:.602572,priority:1},{name:"popup_interval",value:-1,priority:1}],v3:[{name:"prediction_threshold",value:.261145,priority:1},{name:"popup_interval",value:-1,priority:1}],v4:[{name:"prediction_threshold",value:.114536,priority:1},{name:"popup_interval",value:-1,priority:1}],v5:[{name:"prediction_threshold",value:.067758,priority:1},{name:"popup_interval",value:-1,priority:1}],v6:[{name:"prediction_threshold",value:.031474,priority:1},{name:"popup_interval",value:-1,priority:1}],v7:[{name:"prediction_threshold",value:.018922,priority:1},{name:"popup_interval",value:-1,priority:1}],v8:[{name:"prediction_threshold",value:.012345,priority:1},{name:"popup_interval",value:-1,priority:1}],v9:[{name:"prediction_threshold",value:.008136,priority:1},{name:"popup_interval",value:-1,priority:1}]}},webapp_causal_inference_periodic_popup_validation:{segment_default:{v1:[{name:"popup_interval",value:432e5,priority:1}],v2:[{name:"popup_interval",value:36e5,priority:1}],v3:[{name:"popup_interval",value:36e5,priority:1}],v4:[{name:"popup_interval",value:36e5,priority:1}],v5:[{name:"popup_interval",value:432e5,priority:1}],v6:[{name:"popup_interval",value:432e5,priority:1}],v7:[{name:"popup_interval",value:432e5,priority:1}]}},webapp_login_prediction_full:{segment_1:{v1:[{name:"prediction_threshold",value:.012345,priority:1},{name:"popup_interval",value:-1,priority:1}],v2:[{name:"prediction_threshold",value:.012345,priority:1},{name:"popup_interval",value:-1,priority:1}]},segment_2:{v1:[{name:"prediction_threshold",value:.114536,priority:1},{name:"popup_interval",value:-1,priority:1}],v2:[{name:"prediction_threshold",value:.114536,priority:1},{name:"popup_interval",value:-1,priority:1}]}},webapp_login_prediction_reverse:{segment_1:{v1:[{name:"prediction_threshold",value:.012345,priority:1},{name:"popup_interval",value:-1,priority:1}]},segment_2:{v1:[{name:"prediction_threshold",value:.114536,priority:1},{name:"popup_interval",value:-1,priority:1}]}},webapp_guest_mode:{segment_default:{v2:[{name:"cta_style",value:"default",priority:0},{name:"login_text",value:"pcWeb_guestLogin_without",priority:0},{name:"signup_text",value:"pcWeb_guestLogin_withoutSignup",priority:0},{name:"close_icon",value:!1,priority:0}],v3:[{name:"cta_style",value:"default",priority:0},{name:"login_text",value:"pcWeb_guestLogin_without",priority:0},{name:"signup_text",value:"pcWeb_guestLogin_withoutSignup",priority:0},{name:"close_icon",value:!0,priority:0}],v4:[{name:"cta_style",value:"default",priority:0},{name:"login_text",value:"pcWeb_guestLogin_guest",priority:0},{name:"signup_text",value:"pcWeb_guestLogin_guest",priority:0},{name:"close_icon",value:!1}],v5:[{name:"cta_style",value:"default",priority:0},{name:"login_text",value:"pcWeb_guestLogin_guest",priority:0},{name:"signup_text",value:"pcWeb_guestLogin_guest",priority:0},{name:"close_icon",value:!0}],v6:[{name:"cta_style",value:"line",priority:0},{name:"login_text",value:"pcWeb_guestLogin_without",priority:0},{name:"signup_text",value:"pcWeb_guestLogin_withoutSignup",priority:0},{name:"close_icon",value:!1,priority:0}],v7:[{name:"cta_style",value:"line",priority:0},{name:"login_text",value:"pcWeb_guestLogin_without",priority:0},{name:"signup_text",value:"pcWeb_guestLogin_withoutSignup",priority:0},{name:"close_icon",value:!0,priority:0}],v8:[{name:"cta_style",value:"line",priority:0},{name:"login_text",value:"pcWeb_guestLogin_guest",priority:0},{name:"signup_text",value:"pcWeb_guestLogin_guest",priority:0},{name:"close_icon",value:!1}],v9:[{name:"cta_style",value:"line",priority:0},{name:"login_text",value:"pcWeb_guestLogin_guest",priority:0},{name:"signup_text",value:"pcWeb_guestLogin_guest",priority:0},{name:"close_icon",value:!0}],v10:[{name:"cta_style",value:"primary",priority:0},{name:"login_text",value:"pcWeb_guestLogin_without",priority:0},{name:"signup_text",value:"pcWeb_guestLogin_withoutSignup",priority:0},{name:"close_icon",value:!1,priority:0}],v11:[{name:"cta_style",value:"primary",priority:0},{name:"login_text",value:"pcWeb_guestLogin_without",priority:0},{name:"signup_text",value:"pcWeb_guestLogin_withoutSignup",priority:0},{name:"close_icon",value:!0,priority:0}],v12:[{name:"cta_style",value:"primary",priority:0},{name:"login_text",value:"pcWeb_guestLogin_guest",priority:0},{name:"signup_text",value:"pcWeb_guestLogin_guest",priority:0},{name:"close_icon",value:!1}],v13:[{name:"cta_style",value:"primary",priority:0},{name:"login_text",value:"pcWeb_guestLogin_guest",priority:0},{name:"signup_text",value:"pcWeb_guestLogin_guest",priority:0},{name:"close_icon",value:!0}],v14:[{name:"cta_style",value:"text",priority:0},{name:"login_text",value:"pcWeb_guestLogin_without",priority:0},{name:"signup_text",value:"pcWeb_guestLogin_withoutSignup",priority:0},{name:"close_icon",value:!1,priority:0}],v15:[{name:"cta_style",value:"text",priority:0},{name:"login_text",value:"pcWeb_guestLogin_without",priority:0},{name:"signup_text",value:"pcWeb_guestLogin_withoutSignup",priority:0},{name:"close_icon",value:!0,priority:0}],v16:[{name:"cta_style",value:"text",priority:0},{name:"login_text",value:"pcWeb_guestLogin_guest",priority:0},{name:"signup_text",value:"pcWeb_guestLogin_guest",priority:0},{name:"close_icon",value:!1}],v17:[{name:"cta_style",value:"text",priority:0},{name:"login_text",value:"pcWeb_guestLogin_guest",priority:0},{name:"signup_text",value:"pcWeb_guestLogin_guest",priority:0},{name:"close_icon",value:!0}]}},mobile_predictive_data:{segment_default:{v0:[{name:"vv_count",value:-1,priority:0}],v1:[{name:"vv_count",value:3,priority:0}],v2:[{name:"vv_count",value:4,priority:0}],v3:[{name:"vv_count",value:5,priority:0}],v4:[{name:"vv_count",value:6,priority:0}],v5:[{name:"vv_count",value:7,priority:0}],v6:[{name:"vv_count",value:8,priority:0}],v7:[{name:"vv_count",value:9,priority:0}],v8:[{name:"vv_count",value:10,priority:0}],v9:[{name:"vv_count",value:11,priority:0}],v10:[{name:"vv_count",value:12,priority:0}],v11:[{name:"vv_count",value:13,priority:0}],v12:[{name:"vv_count",value:14,priority:0}],v13:[{name:"vv_count",value:15,priority:0}],v14:[{name:"vv_count",value:16,priority:0}],v15:[{name:"vv_count",value:17,priority:0}],v16:[{name:"vv_count",value:18,priority:0}],v17:[{name:"vv_count",value:19,priority:0}],v18:[{name:"vv_count",value:20,priority:0}],v19:[{name:"vv_count",value:21,priority:0}],v20:[{name:"vv_count",value:22,priority:0}],v21:[{name:"vv_count",value:23,priority:0}],v22:[{name:"vv_count",value:24,priority:0}],v23:[{name:"vv_count",value:25,priority:0}],v24:[{name:"vv_count",value:26,priority:0}],v25:[{name:"vv_count",value:27,priority:0}],v26:[{name:"vv_count",value:28,priority:0}],v27:[{name:"vv_count",value:29,priority:0}],v28:[{name:"vv_count",value:30,priority:0}],v29:[{name:"vv_count",value:31,priority:0}]}}}},26956:(e,t,n)=>{"use strict";function i(e,t){const n={},i=function(e){const t=e.reduce(((e,t)=>{const{expId:n,segmentId:i,versionId:o,propertyList:a}=t;return n&&i&&o?(a.forEach((t=>{const a={expId:n,segmentId:i,versionId:o,propertyName:t};e[t]=e[t]||[],e[t].push(a)})),e):e}),{});return t}(t);for(const[t,a]of Object.entries(i)){const i=o(e,a);n[t]=i}return n}function o(e,t){const n=t.map((t=>function(e,{expId:t,segmentId:n,versionId:i,propertyName:o}){const a=e[t];if(!a)return void console.error(`Error. Experiment: ${t} not found!`);const r=a[n];if(!r)return;if(!i)return;const s=r[i];return s?s.find((e=>e.name===o)):void 0}(e,t))).filter((e=>void 0!==e));if(0!==n.length)return n.reduce(((e,t)=>t.priority>e.priority?t:e)).value}n.d(t,{J:()=>i})},23721:(e,t,n)=>{"use strict";n.d(t,{HZ:()=>l,dg:()=>r,ug:()=>a}),n(24643);var i=n(40099),o=(n(44471),n(88062));(0,i.createContext)(!1);const a=(0,i.createContext)({enable:!0}),r={plugins:{ajax:{ignoreUrls:[".byteoversea.com",/mcs.*\.tiktok[vw]?\.(com|us|eu)/,".tiktokcdn.com",".tiktokcdn-us.com","mon.tiktokv.(com|us|eu)","ttwid/check","passport/token/beat/web",/.*-webapp-prime\.(.*\.)?tiktok\.com/]},fetch:{ignoreUrls:[".tiktokcdn.com",".tiktokcdn-us.com","mon.tiktokv.(com|us|eu)","policy/notice","feedback/v1/newest_reply","ba/business/suite/permission/list",/.*-webapp-prime\.(.*\.)?tiktok\.com/]},jsError:{ignoreErrors:["Blocked a frame with origin","__msg_type","vid_mate_check is not defined","ResizeObserver loop limit exceeded",'Video playback error: {"errorCode":',"Object Not Found Matching Id","The play method is not allowed by the user agent","The play() request was interrupted","Failed to load because no supported source was found","The request is not allowed by the user agent or the platform in the current context"]},resource:{slowSessionThreshold:1e5},fmp:!1,tti:!1,pageview:{sendInit:!0,routeMode:"manual"}},sample:{sample_rate:1,sample_granularity:"session",include_users:[],rules:{resource:{enable:!0,sample_rate:.01,conditional_sample_rules:[]},resource_error:{enable:!0,sample_rate:.05,conditional_sample_rules:[]},performance_longtask:{enable:!0,sample_rate:.001,conditional_sample_rules:[]}}},env:"production",release:"1.0.2.3855",slardarClient:"SlardarClient",manual:1,sdkUrl:o.Qn.row,pluginPathPrefix:o.tz.row};var s;!function(e){e.P0="fatal",e.P1="error",e.P2="warning",e.P3="info",e.P4="debug",e.P5="critical"}(s||(s={}));const l=["lcp","fp","fid","ttfb","mpfid","fcp","actual_fmp"];var c;!function(e){e.TTAPPluginInfo="ttapplugin_info",e.TTAPPluginFirstScreenRequest="ttapplugin_first_screen_request",e.TTAPPluginEffectiveOpenPage="ttapplugin_effective_open_page",e.TTAPPluginCustomRequest="ttapplugin_custom_request",e.actualFMP="actual_fmp",e.LoginClickToNotifyDuration="login_click_to_notify_duration"}(c||(c={}))},72277:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});const i=["live_context_optimize","live_react_query_cache","live_enter_room_chore","foryou_prefetch","islands_arch_video_detail","image_fetch_priority","video_reflow_skeleton_ui","video_reflow_mpa_optimization","video_reflow_csr_skeleton_enhance","live_chat_message_cache_opt","live_quick_chat_expand","user_bundle_opt","live_chat_refresh_rate_opt","sharing_video_first","live_recharge_login_sdk","islands_arch_rest_page","islands_arch_user_profile","react_upgrade_experiment","kep_streaming","web_dm_icon_click_check"]},11654:(e,t,n)=>{"use strict";n.d(t,{V:()=>T,Y:()=>S});var i=n(58632),o=n(38203),a=n(50830),r=n(67192),s=n(3452),l=n.n(s),c=n(93608),d=n(48211),u=n(23721),p=n(82989),v=n(97086),g=n(91498),m=n(88062),h=n(14974),_=n.n(h),f=n(71784),y=n.n(f),b=n(72277);const w=({message:e,defaultResult:t}={})=>(n,i,o)=>{const a=o.value;return o.value=function(...o){try{const s=a.apply(this,o);return(r=s)&&r instanceof Promise||("object"==typeof r||"function"==typeof r)&&"function"==typeof r.then&&"function"==typeof r.catch?s.catch((o=>(console.error(`${n.constructor.name}.${i.toString()}${e?` ${e}`:""}: ${o}`),t))):s}catch(o){return console.error(`${n.constructor.name}.${i.toString()}${e?` ${e}`:""}: ${o}`),t}var r},o};var x=n(73580);(0,v.fU)()||p.O.setGlobalSlardarName("SlardarClient");let T=class{constructor(){this.cachePreBid="",this._isPvFirstlyReported=!1,this._config=null,this._extraInfo=null,this._hasStart=!1,this._slardar=p.O}hasStarted(){return this._hasStart}mountBeforeSendEvent(){this._slardar.on("beforeSend",(e=>{var t,n,i,o;try{if("performance"===e.ev_type&&("metrics"in e.payload?e.payload.metrics.forEach(this.collectSlardarMetricsToTea):this.collectSlardarMetricsToTea(e.payload,null===(t=e.common)||void 0===t?void 0:t.pid)),"performance_timing"===e.ev_type){const{responseEnd:t,responseStart:a,domContentLoadedEventEnd:r,fetchStart:s,navigationStart:l}=null!==(n=e.payload.timing)&&void 0!==n?n:{},d=null!==(o=null===(i=e.payload.common)||void 0===i?void 0:i.pid)&&void 0!==o?o:"unknown",u=r-s,p=t-a,v=a-l;c.f.event("slardar_perf_domready",{metric_duration:u&&u>0?u.toString():-1,pid:d}),c.f.event("slardar_perf_response",{metric_duration:p&&p>0?p.toString():-1,pid:d}),c.f.event("slardar_perf_ttfb",{metric_duration:v&&v>0?v.toString():-1,pid:d})}}catch(e){}return e}))}init(e,t=!1,n={},i){this._option=i,t?this.preserveConfig(e):this._slardar.init(Object.assign({ttap:Object.assign({},n)},e))}start(e=""){this._config&&e&&!this._hasStart&&(this.init(Object.assign(Object.assign({},this._config),{pid:e})),this._hasStart=!0,this._extraInfo&&this.config(this._extraInfo)),this._slardar.start()}config(e){"pid"in e&&!this._isPvFirstlyReported&&(this._isPvFirstlyReported=!0,this.context({isLandingPage:0})),this._slardar.config(e)}registerImageXPlugin(e,t=.01){return e?[l().imageReport({debug:!1,sample_rate:t})]:[]}toggleLoginSlardar(e){var t,n;(null===(t=this._option)||void 0===t?void 0:t.disableToggleLoginSlardar)||(e?((null===(n=this._slardar.config())||void 0===n?void 0:n.bid)&&(this.cachePreBid=this._slardar.config().bid),this.config({bid:d.yH})):this.config({bid:this.cachePreBid}))}context(e){Object.entries(e).forEach((([e,t])=>{this._slardar.context({[e]:t})}))}captureMessage(e="",t,n={}){this._slardar.captureException("string"==typeof e?new Error(e):e,t?Object.assign(Object.assign({},n),{level:t}):n)}emitEvent(e,t,n){this._slardar.sendEvent({name:e,categories:n,metrics:t})}reportI18nLoadedFailed(e,t){this.emitEvent("I18nLoadFailed",{count:1},{staringName:e,lang:t})}sendLog(e,t,n){this._slardar.sendLog({content:e,level:t,extra:n})}sendPV(e){this._slardar.rawInstance()("sendPageview",e)}previousPid(){var e;return null===(e=this._slardar.config())||void 0===e?void 0:e.pid}sendCustomPerfMetric(e,t){const n=null!=t?t:performance.now();this._slardar.sendCustomPerfMetric({name:e,value:n,isCustom:!0})}preserveConfig(e){this._config=e}preserveExtraInfo(e){this._extraInfo=e}collectSlardarMetricsToTea(e,t){if(e.isSupport||e.isPolyfill){const n=e.name.toLowerCase();u.HZ.includes(n)&&c.f.event(`slardar_perf_${n}`,{metric_duration:e.value.toString(),pid:null!=t?t:"unknown",is_support:e.isSupport?"1":"0"})}}reportActualFMP(){return this._slardar.reportActualFMP()}reportRenderStart(){return this._slardar.reportRenderStart()}reportRenderEnd(){return this._slardar.reportRenderEnd()}reportFirstScreenRequest(e,t){this._slardar.reportFirstScreenRequest(e,t)}reportCustomRequest({name:e,startTime:t,endTime:n}){var i;const o=(null===(i=null===performance||void 0===performance?void 0:performance.timing)||void 0===i?void 0:i.navigationStart)||(null===performance||void 0===performance?void 0:performance.timeOrigin);this._slardar.reportCustomRequest(e,null!=t?t:o,n)}};T.start=(e,{bid:t,initLocation:n,appContext:i,bizContext:o,reportImage:a,slardarConfig:r={},ttapOption:s={},disableToggleLoginSlardar:l=!1,extractPid:c=e=>e,customContext:d,beforeStart:p})=>{var h,f,w;const{abTestVersion:x,env:T,botType:S,user:k,wid:A,region:O}=null!=i?i:{},{isMobile:E,isTTP:P,domains:I,idc:C}=null!=o?o:{},j=!!a||"v2"===(null===(h=null==x?void 0:x.parameters.enable_slardar_image)||void 0===h?void 0:h.vid),L=e=>{const t=c(e);return"delay_start_until_manually_called"===t?"unknown":t};return e.context(Object.assign(Object.assign(Object.assign({region:null!=O?O:"",botType:null!=S?S:"",isMobile:Boolean(E).toString(),isDowngrade:(0,v.qk)().toString(),isLogin:Boolean(k).toString(),isPPE:"ppe"===(null==T?void 0:T.type),isLandingPage:1,launchMode:(0,v.fU)()?"":(0,g.o7)()},y()(_()(null!==(f=null==x?void 0:x.parameters)&&void 0!==f?f:{},(e=>null==e?void 0:e.vid)),((e,t)=>b.s.includes(t)))),{uid:null!==(w=null==k?void 0:k.uid)&&void 0!==w?w:"",idc:null!=C?C:"unknown"}),d)),e.mountBeforeSendEvent(),e.init(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u.dg),{bid:t,env:"boe"===(null==T?void 0:T.type)||"ppe"===(null==T?void 0:T.type)?"test":"production",domain:null==I?void 0:I.slardar,useLocalConfig:"ppe"===(null==T?void 0:T.type)||"boe"===(null==T?void 0:T.type),integrations:[...e.registerImageXPlugin(j,a&&"boolean"!=typeof a?a.sample:void 0)]}),P?{sdkUrl:m.Qn.us,pluginPathPrefix:m.tz.us}:{}),{pid:L("string"==typeof n?n:n.pathname),userId:A}),r),!1,Object.assign({isSpa:!0},s),{disableToggleLoginSlardar:l}),"function"==typeof p?p().finally((()=>{e.start()})).catch((e=>{console.error("beforeStart failed",e)})):e.start(),{handleLocationChange:t=>{const n=L("string"==typeof t?t:t.pathname);e.context({isLandingPage:0}),e.sendPV(n)},slardar:e}},(0,i.__decorate)([w(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[]),(0,i.__metadata)("design:returntype",void 0)],T.prototype,"mountBeforeSendEvent",null),(0,i.__decorate)([w(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object,Object,Object]),(0,i.__metadata)("design:returntype",void 0)],T.prototype,"init",null),(0,i.__decorate)([w(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[String]),(0,i.__metadata)("design:returntype",void 0)],T.prototype,"start",null),(0,i.__decorate)([w(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object]),(0,i.__metadata)("design:returntype",void 0)],T.prototype,"config",null),(0,i.__decorate)([w({defaultResult:[]}),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Boolean,Object]),(0,i.__metadata)("design:returntype",Object)],T.prototype,"registerImageXPlugin",null),(0,i.__decorate)([w(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Boolean]),(0,i.__metadata)("design:returntype",void 0)],T.prototype,"toggleLoginSlardar",null),(0,i.__decorate)([w(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object]),(0,i.__metadata)("design:returntype",void 0)],T.prototype,"context",null),(0,i.__decorate)([w({message:"capture exception error"}),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,String,Object]),(0,i.__metadata)("design:returntype",void 0)],T.prototype,"captureMessage",null),(0,i.__decorate)([w(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[String,Object,Object]),(0,i.__metadata)("design:returntype",void 0)],T.prototype,"emitEvent",null),(0,i.__decorate)([w(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[String,String]),(0,i.__metadata)("design:returntype",void 0)],T.prototype,"reportI18nLoadedFailed",null),(0,i.__decorate)([w(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[String,String,Object]),(0,i.__metadata)("design:returntype",void 0)],T.prototype,"sendLog",null),(0,i.__decorate)([w(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[String]),(0,i.__metadata)("design:returntype",void 0)],T.prototype,"sendPV",null),(0,i.__decorate)([w(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[]),(0,i.__metadata)("design:returntype",void 0)],T.prototype,"previousPid",null),(0,i.__decorate)([w(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[String,Number]),(0,i.__metadata)("design:returntype",void 0)],T.prototype,"sendCustomPerfMetric",null),(0,i.__decorate)([w(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object]),(0,i.__metadata)("design:returntype",void 0)],T.prototype,"preserveConfig",null),(0,i.__decorate)([w(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object]),(0,i.__metadata)("design:returntype",void 0)],T.prototype,"preserveExtraInfo",null),(0,i.__decorate)([w(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],T.prototype,"collectSlardarMetricsToTea",null),(0,i.__decorate)([w({defaultResult:0}),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[]),(0,i.__metadata)("design:returntype",Number)],T.prototype,"reportActualFMP",null),(0,i.__decorate)([w({defaultResult:0}),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[]),(0,i.__metadata)("design:returntype",Number)],T.prototype,"reportRenderStart",null),(0,i.__decorate)([w({defaultResult:0}),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[]),(0,i.__metadata)("design:returntype",Number)],T.prototype,"reportRenderEnd",null),(0,i.__decorate)([w(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Number,Number]),(0,i.__metadata)("design:returntype",void 0)],T.prototype,"reportFirstScreenRequest",null),(0,i.__decorate)([w(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object]),(0,i.__metadata)("design:returntype",void 0)],T.prototype,"reportCustomRequest",null),T=(0,i.__decorate)([(0,o._)()],T);const S=e=>{const t=new a.n(e);r.l.addProvider({provide:t,useClass:T});const n={provide:t,useExisting:t};let s,l=class extends T{constructor(){super(),this._slardar=p.O.create(e)}reportActualFMP(){return 0}reportFirstScreenRequest(){}reportRenderEnd(){return 0}reportRenderStart(){return 0}reportCustomRequest(){}};return l=(0,i.__decorate)([(0,o._)(),(0,i.__metadata)("design:paramtypes",[])],l),{inject:(e=l)=>{r.l.addProvider({provide:t,useClass:e})},getInstance:()=>r.l.getInstance(n),useInstance:()=>(0,x.Nj)(n),isIsolated:()=>r.l.getInstance(n)instanceof l,start:e=>{var t;const i=r.l.getInstance(n);if(i instanceof l)return s?s.handleLocationChange(e.initLocation):void(s=T.start(i,Object.assign(Object.assign({},e),{slardarConfig:Object.assign(Object.assign({},e.slardarConfig),{plugins:Object.assign(Object.assign(Object.assign({},u.dg.plugins),{performance:!1}),null===(t=e.slardarConfig)||void 0===t?void 0:t.plugins)})})))},handleLocationChange:e=>{null==s||s.handleLocationChange(e)},INJECTION_TOKEN:t}}},4912:(e,t,n)=>{"use strict";n.d(t,{Gg:()=>L,ct:()=>I,Du:()=>C,LT:()=>j,tF:()=>P});var i=n(58632),o=n(73580),a=n(4474),r=n(40099),s=n(47172),l=n(71510),c=n.n(l),d=n(93608),u=n(92603),p=n(40040);function v(e,t){var n,i,o,a,r,s;const l=(0,u.Hd)(p.hk,"");if(l&&"{}"!==l)return l;const c=(0,u.$Z)()||{},d={object_id:null!==(n=c.object_id)&&void 0!==n?n:c.referer_video_id,object_type:c.object_type,share_device:null!==(o=null!==(i=c.share_device)&&void 0!==i?i:c.sender_device)&&void 0!==o?o:"",share_web_id:null!==(r=null!==(a=c.share_web_id)&&void 0!==a?a:c.sender_web_id)&&void 0!==r?r:"",share_user_id:null!==(s=c.share_user_id)&&void 0!==s?s:""};"referral_amp"===e||"referral_embed"===e?(d.object_type="video",d.object_id=c.referer_video_id):"reflow"===e||"webapp_reflow"===e?(d.object_type=null==t?void 0:t.object_type,d.object_id=null==t?void 0:t.object_id):"push"===e&&(d.push_type=c.push_type),Object.keys(d).forEach((e=>{d[e]||delete d[e]}));const v=JSON.stringify(d);return(0,u.J2)(p.hk,v),v}var g=n(68252),m=n(42721);const h=e=>{var t;const n=e,{page_name:o,enter_from:a,is_downgrade:r,object_id:s,object_type:l}=n,c=m.ET,p=(n[c],(0,i.__rest)(n,["page_name","enter_from","is_downgrade","object_id","object_type","symbol"==typeof c?c:c+""])),v=(0,u.$Z)();return Object.assign({previous_page:d.f.getPreviousInfo(o),page_name:o,enter_from:a,page_url:window.location.href,userAgent:navigator.userAgent,keyword:v.keyword,sub_keyword:v.sub_keyword,user_type_alias:window.navigator.userAgent.match(/google/gi)?"search":"user",domain_name:null!==(t=window.location.host)&&void 0!==t?t:"unknown",page_path:window.location.pathname},p)};const _=(e,t)=>{var n,i,o,a;const{user:r,region:s,wid:l,language:u}=e,{page_name:p,is_downgrade:g,object_id:h,object_type:_,utm_medium:f,utm_campaign:y,utm_source:b,embed_source:w="",vidab:x,seo_vidab:T,[m.ET]:S}=t,k=c()(d.f.initDimensionalData,{utm_medium:f,utm_campaign:y,utm_source:b});return Object.assign(Object.assign({release:"1.0.2.3855",user_is_login:r?1:0,priority_region:null==r?void 0:r.region,landing_page:d.f.getLandingPage(p),is_kids_mode:(null==r?void 0:r.ftcUser)?1:0,region:s,extraData:v(k.launch_mode,{object_id:h,object_type:_}),is_downgrade:g,session_id:d.f.getSessionId(l),embed_source:w,app_language:u,is_sharing:0,vidab:x,seo_vidab:T,[m.ET]:S,max_touch_points:null===navigator||void 0===navigator?void 0:navigator.maxTouchPoints,network_downlink:null===(n=navigator.connection)||void 0===n?void 0:n.downlink,network_rtt:null===(i=navigator.connection)||void 0===i?void 0:i.rtt,network_speed_effective_type:null===(o=navigator.connection)||void 0===o?void 0:o.effectiveType,network_connection_type:null===(a=navigator.connection)||void 0===a?void 0:a.type},function(){var e;const t=new URLSearchParams(null===(e=window.location)||void 0===e?void 0:e.search),n=!!t.get("gclid");let i={};const o="webapp-recharge-google_ads_info";try{if(n)i={utm_gclid:t.get("gclid"),utm_original_url:window.location.href,utm_medium:t.get("utm_medium"),utm_media_source:t.get("utm_source")||t.get("utm_media_source"),utm_campaign_id:t.get("campaign_id")||t.get("campaignid"),utm_adset_id:t.get("adset_id")||t.get("adgroupid"),utm_ad_id:t.get("ad_id")||t.get("creative"),utm_channel:t.get("channel")||t.get("network"),utm_keyword:t.get("keyword"),utm_placement:t.get("placement"),utm_match_type:t.get("match_type")},localStorage.setItem(o,JSON.stringify({value:i,expiryDate:(new Date).getTime()+2592e6}));else{const e=JSON.parse(localStorage.getItem(o)||"{}");e.expiryDate&&(new Date).getTime()["region","user","wid","abTestVersion","language","odinId"]),[])),l=(0,A.L$)((0,S.U)((()=>["domains","vgeo"]),[])),{abTestVersion:c,user:u}=a,p=(0,k.mx)(c,null!==(o=null==u?void 0:u.uid)&&void 0!==o?o:"");!function(e,t,n){const{user:o,region:a,wid:l,domains:c,odinId:u,vgeo:p,abTestVersion:v}=e,m=t(),{initConfig:f={}}=m,y=(0,i.__rest)(m,["initConfig"]);(0,r.useEffect)((()=>{var t;if(!y||y.skip_init)return;const n=h(y),i=_(e,y);d.f.config({initConfig:Object.assign({channel_domain:c.tea,ab_channel_domain:c.libraWebSDK,channel_type:c.teaChannelType,channel:c.teaChannel,id:1988},f),commonHeaderConfig:{region:a,user_id:null!==(t=null==o?void 0:o.uid)&&void 0!==t?t:u,user_is_login:Boolean(o),user_unique_id:l,user_type:12,device_id:l,"header.custom":i},commonEventParams:Object.assign(Object.assign({},n),{data_collection_enabled:(0,g.uh)(p,!!o)?1:0}),abTestVersion:v})}),[...n]),function(){const e=(0,s.useHistory)();(0,r.useEffect)((()=>{const t=null==e?void 0:e.listen((e=>{d.f.resetStayDuration(e.pathname,e.pathname,window.location.href)}));return()=>{null==t||t()}}),[])}()}(Object.assign(Object.assign({},l),a),(()=>Object.assign(Object.assign({},e()),{is_downgrade:(0,w.qk)(),is_non_personalized:p?"1":"0"})),t);const{loginPredictionHandler:v}=(0,E.P7)(n);(0,r.useEffect)((()=>{v()}),[v])}function I({eParams:e}){var t,n;const{botType:o,webIdCreatedTime:l}=null!==(t=(0,T.W)((()=>["botType","webIdCreatedTime"]),[]))&&void 0!==t?t:{},{isMobile:c}=null!==(n=(0,S.U)((()=>["isMobile"]),[]))&&void 0!==n?n:{},{search:d,pathname:u}=(0,s.useLocation)(),p=(0,a.parse)(d);return(0,r.useCallback)((()=>{const t=e||{},{is_from_webapp:n}=t,a=(0,i.__rest)(t,["is_from_webapp"]),r=p.sender_web_id?{sender_device:p.sender_device,sender_web_id:p.sender_web_id}:{},s=c||(0,x.tO)(u)||(d=`#${location.pathname}`,/^#\/@.*\/video\/\d+$/.test(d))||location.search.indexOf("item_id")>-1?Object.assign({is_from_webapp:n||["v1","v2","v3"].indexOf(p.is_from_webapp)>-1?p.is_from_webapp:"0"},r):{};var d;const v={browser_height:"undefined"!=typeof window?window.innerHeight:0,browser_width:"undefined"!=typeof window?window.innerWidth:0},g=Object.assign(Object.assign(Object.assign({bot_type:null!=o?o:"others",keyword:p.keyword,sub_keyword:p.sub_keyword,duration:performance.now(),webIdCreatedTime:l},a),s),v);f.O.handlePageView(g)}),[e,p.sender_web_id,p.sender_device,p.is_from_webapp,c,p.keyword,p.sub_keyword,u,o])}function C(e){const{pathname:t}=(0,s.useLocation)(),n=(0,o.Nj)(y.AU);(0,r.useEffect)((()=>{const e=(0,O.N2)(t);n.handleRouteChange(t),n.updateCurrentPage(e),n.setCurrentPageReport(!1),n.resetExist(),n.reportVideoAdditionStart({startTime:Date.now(),situation:"addition_first_load"})}),[n,e,t])}function j(){const e=(0,o.Nj)(b.Gs);(0,r.useEffect)((()=>{e.reset()}),[e])}function L(){const e=(0,A.L$)((0,T.W)((()=>["region","user","wid","abTestVersion","language"]),[])),t=(0,A.L$)((0,S.U)((()=>["domains","vgeo"]),[])),n=(0,r.useMemo)((()=>Object.assign(Object.assign({},e),t)),[e,t]),{user:i,region:o,wid:a,domains:s,vgeo:l}=n;return(0,r.useCallback)((e=>{var t,r;const c={page_name:e,enter_from:e,is_downgrade:(0,w.qk)()},u=h(c),p=_(n,c);d.f.config({initConfig:{channel_domain:s.tea,channel_type:null!==(t=s.teaChannelType)&&void 0!==t?t:"tcpy",channel:s.teaChannel,ab_channel_domain:s.libraWebSDK,id:1988},commonHeaderConfig:{region:o,user_id:null!==(r=null==i?void 0:i.uid)&&void 0!==r?r:"",user_is_login:Boolean(i),user_unique_id:a,device_id:a,user_type:12,"header.custom":p},commonEventParams:Object.assign(Object.assign({},u),{data_collection_enabled:(0,g.uh)(l,!!i)?1:0})})}),[n,s,o,i,l,a])}},27375:(e,t,n)=>{"use strict";n.d(t,{$S:()=>p,BO:()=>s,Hw:()=>m,RS:()=>u,Zr:()=>g,i0:()=>l,lH:()=>a,qY:()=>v,sg:()=>d});const i=99,o="99+";function a(e,t=i,n=o){return e>t?n:String(e)}function r(e){var t,n;return null!==(n=null===(t=null==e?void 0:e.url_list)||void 0===t?void 0:t.find((e=>!/\.webp/.test(e))))&&void 0!==n?n:""}function s(e){var t;return void 0===e?"":e.url_list&&(null===(t=e.url_list)||void 0===t?void 0:t.length)>0?e.url_list[0]:""}const l={[-1]:-1,0:0,1:1,2:2,4:3};function c({is_block:e,is_blocked:t,follow_status:n}){if(null!=n)return e?4:t?5:l[n]}function d(e,t=!1){const{follower_count:n,following_count:i,aweme_count:o}=e;return{diggCount:0,followerCount:null!=n?n:0,followingCount:null!=i?i:0,heart:0,heartCount:0,videoCount:null!=o?o:0,needFix:t}}function u(e){const{avatar_medium:t,avatar_thumb:n,uid:i,short_id:o,unique_id:a,sec_uid:s,nickname:l,is_block:d,follow_status:u,signature:p,custom_verify:v,enterprise_verify_reason:g,follower_status:m}=e;return{avatarLarger:"",avatarMedium:r(t),avatarThumb:r(n),id:i,shortId:o,uniqueId:null!=a?a:"",secUid:null!=s?s:"",nickname:l,relation:c({is_block:d,is_blocked:void 0,follow_status:u}),signature:p,verified:Boolean(v||g),createTime:0,extraInfo:{followerStatus:m}}}function p(e){const{id_str:t,title:n,play_url:i,cover_medium:o,cover_large:a,cover_thumb:r,is_original:l,duration:c,author:d}=e;return{id:String(t),title:n,duration:c,keyToken:"",playUrl:s(i),coverMedium:s(o),coverLarge:s(a),coverThumb:s(r),original:null!=l&&l,authorName:d}}function v(e,t){if(!e)return!0;const{commentSetting:n,relation:i,id:o}=e;return 1===n&&2!==i&&t!==o}function g(e){return e.replace(/\n(\n)*( )*(\n)*\n/g,"\n")}function m(e,t){var n;const{duration:i,width:o,height:a,ratio:r,cover:l,play_addr:c,bit_rate:d}=e,u=null==d?void 0:d.map((e=>({GearName:e.gear_name,Bitrate:e.bit_rate,QualityType:e.quality_type,PlayAddr:{Uri:"",UrlList:[s(e.play_addr)]},CodecType:"adapt_h264"})));return{id:t,height:a,width:o,duration:null!=i?i:0,ratio:null!=r?r:"720p",cover:s(l),originCover:s(l),playAddr:s(c),bitrate:null===(n=null==d?void 0:d[0])||void 0===n?void 0:n.bit_rate,bitrateInfo:u,encodedType:"normal"}}},16469:(e,t,n)=>{"use strict";n.d(t,{Bv:()=>l,LU:()=>p,MX:()=>c,PC:()=>d,_w:()=>a,bc:()=>o,lA:()=>s,lL:()=>u});var i=n(10646);const o=new i.w1("frequency-control-config","local"),a=new i.w1("flip-control-config","local");var r;!function(e){e.Manual="manual",e.BrowserMode="browser_mode"}(r||(r={}));const s=new i.w1("webapp-video-mute","local"),l=new i.w1("keyboard-shortcut-config","local"),c=new i.w1("webapp-comment-url","session"),d=new i.w1("search-entry-block-map-storage","local"),u=new i.w1("fyp-feed-cache","local"),p=new i.w1("search_history_map","local");new i.w1("multi-account-info","local")},33805:(e,t,n)=>{"use strict";n.d(t,{AF:()=>h,Am:()=>f,N2:()=>g,Q2:()=>m,Sn:()=>y,m1:()=>_,oN:()=>u,rE:()=>w,sN:()=>b});var i=n(47172),o=n(82715),a=n(8227),r=n(75792),s=n(78662),l=n(72688),c=n(85612);const d=1e3;function u(e){return e.length>d?"":(0,s.tO)(e)?"homepage_hot":/^\/@(.*?)\/video\/(.*?)/.test(e)?"video_detail":/^\/@(.*?)/.test(e)?"others_homepage":/^\/music\//.test(e)?"single_song":/^\/effect\//.test(e)?"effect_detail":/^\/tag\//.test(e)?"challenge":/^\/following/.test(e)?"homepage_follow":/^\/explore/.test(e)?"explore_page":/^\/discover\/.+/.test(e)?"discover_kw":/^\/channel\/.+/.test(e)?"channel":/^\/discover/.test(e)?"discovery":/^\/profile/.test(e)?"personal_homepage":/^\/topics/.test(e)?`topic_${e.slice(1).split("/")[1]}`:/^\/inbox/.test(e)?"homepage_message":/^\/report/.test(e)?"report":/^\/ad-report/.test(e)?"report_ad":/^\/feedback\/report/.test(e)?"feedback_report":/^\/feedback\/history/.test(e)?"feedback_history":/^\/feedback/.test(e)?"feedback":(0,i.matchPath)(e,{path:o.OZ.searchHome,exact:!0})?"general_search":(0,i.matchPath)(e,{path:o.OZ.searchUser,exact:!0})?"search_user":(0,i.matchPath)(e,{path:o.OZ.searchVideo,exact:!0})?"search_video":/^\/playlist-music/.test(e)?"music_playlist":/^\/messages/.test(e)?"messages":/^\/setting/.test(e)?"setting":/^\/place/.test(e)?"place":/^\/@(.*?)\/collection\/(.*?)/.test(e)?"collection":/^\/@(.*?)\/playlist\/(.*?)/.test(e)?"reflow_video_playlist":/^\/download/.test(e)?"download":""}function p(e){return e.length>d?"":/^\/@(.*?)\/live\/(.*?)/.test(e)?"live_detail":(0,i.matchPath)(e,{path:a.vI.liveGoLive,exact:!0})?"live_take":(0,s.U0)(e)?"live_discover":(0,s.j)(e)?"live_event":(0,s.RR)(e)?"live_event_aggregation":(0,i.matchPath)(e,{path:a.vI.liveRoomEmbed,exact:!0})?"live_embed_detail":(0,i.matchPath)(e,{path:a.vI.liveRoom,exact:!0})?"live_detail":""}function v(e){return(0,i.matchPath)(e,{path:r.tH.loginHome,exact:!1})||(0,i.matchPath)(e,{path:r.tH.oauth,exact:!1})||(0,i.matchPath)(e,{path:r.tH.oauthLine,exact:!1})?"login":(0,i.matchPath)(e,{path:r.tH.signupHome,exact:!1})?"signup":""}function g(e){for(const t of[u,p,v]){const n=t(e);if(n)return n}return"unknown"}function m(){return location.pathname.startsWith(o.OZ.musicPlaylist.split(":")[0])&&location.pathname.length<=d?`${location.origin}${location.pathname.replace(/%23|%3F|%2F/g,"")}${location.search}`:location.href}function h(){return location.pathname.startsWith(o.OZ.musicPlaylist.split(":")[0])&&location.pathname.length<=d?`${location.origin}${location.pathname.replace(/%23|%3F|%2F/g,"")}`:`${location.origin}${location.pathname}`}function _(e,t){return`https://www.tiktok.com${f(e,t)}`}function f(e,t,n){return`/place/${(0,l.zpT)(t)}-${e}${n?`?language=${n}`:""}`}function y(e,t){var n,i,o,a;return(0,c.Rj)(`https://www.tiktok.com${(0,l.G2o)({uniqueId:null!==(i=null===(n=null==e?void 0:e.owner)||void 0===n?void 0:n.display_id)&&void 0!==i?i:"",secUid:null!==(a=null===(o=null==e?void 0:e.owner)||void 0===o?void 0:o.sec_uid)&&void 0!==a?a:""})}`,null!=t?t:{})}function b(e,t){return`https://www.tiktok.com/tns-inapp/pages/ai-generated-content?hide_nav_bar=1${e?`&enter_from=${e}`:""}${t?`&lang=${t}`:""}`}function w(e,t){return`/effect/${encodeURIComponent(e.replace(/\s+/g,"-"))}-${t}`}},32744:(e,t,n)=>{"use strict";n.d(t,{W:()=>m});var i=n(24643),o=n(73580),a=n(40099),r=n(93608);var s=n(11654),l=n(62186),c=n(97397);const d=(0,l.default)("div",{target:"emuynwa0"})((({isFullScreen:e})=>e?{flex:"1 1 auto"}:null),{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",margin:"0 auto"},"label:DivErrorContainer;"),u=(0,l.default)("p",{target:"emuynwa1"})((({theme:{typography:e,fontWeights:t,fontFamilies:n,colors:i}})=>[e.H4,{fontFamily:n.TikTokDisplayFont,fontWeight:t.bold,color:i.TextPrimary,marginTop:"24px"}]),"label:PTitle;"),p=(0,l.default)("p",{target:"emuynwa2"})((({theme:{typography:e,fontWeights:t,fontFamilies:n,colors:i}})=>[e.P2,{fontFamily:n.TikTokFont,fontWeight:t.normal,color:i.TextSecondary,marginTop:"8px"}]),"label:PDesc;"),v=l.default.div`
margin-top: 24px;
`,g=(0,l.default)(c.y,{target:"emuynwa3"})({marginTop:"24px"},"label:StyledButton;"),m=function(e){const{iconElem:t,title:n,desc:l,buttonText:c,button:m,isFullScreen:h,style:_,brightness:f=1,e2eTitle:y,e2eDesc:b,e2eButton:w,onButtonShow:x,ignoreErrorReport:T=!1}=e,S=(0,o.Nj)(s.V);return(0,a.useEffect)((()=>{(c||m)&&(null==x||x()),T||(S.emitEvent("handled_error_report",{},{}),r.f.sendEvent("handled_render_error"))}),[c,m,x,T,S]),(0,i.jsxs)(d,{isFullScreen:h,style:_,children:[t,n&&(0,i.jsx)(u,{"data-e2e":y,brightness:f,children:n}),l&&(0,i.jsx)(p,{"data-e2e":b,brightness:f,children:l}),m&&(0,i.jsx)(v,{"data-e2e":w,children:m}),!m&&Boolean(c)&&(0,i.jsx)(g,{type:"button",onClick:e.onButtonClick,buttonTheme:"default",size:"large",e2eTag:w,children:c})]})}},96689:(e,t,n)=>{"use strict";n.d(t,{G:()=>r,K:()=>s});var i=n(40099),o=n(49057),a=n(67842);function r({actionWhenUserLoggedIn:e,modalConfig:t={},reportClickEvent:n,openModalWhenUserLoggedIn:r}){const s=(0,o.W)((()=>["user"]),[]),l=(0,a.b1)();return(0,i.useCallback)(((...i)=>{null==n||n(...i);const o="function"==typeof t?t():t;if((null==s?void 0:s.user)&&!r){if(!o.isLinkPhoneOrEmail)return null==e?void 0:e(...i);l.openModal(o)}else l.openModal(o)}),[e,null==s?void 0:s.user,l,t,n,r])}function s(e={},t,n){return r({modalConfig:"function"==typeof e?e():e,reportClickEvent:t,openModalWhenUserLoggedIn:n})}},47926:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var i=n(24643),o=n(40099),a=n(88091);const r=(0,o.memo)((function({isOpen:e,onClose:t,children:n,closeOnBackdropClick:o=!1,closeOnEsc:r=!1,onCloseComplete:s,compact:l}){return(0,i.jsx)(a.Mw,{isOpen:e,onClose:t,onCloseComplete:s,size:"Medium",compact:l,closeOnBackdropClick:o,closeOnEsc:r,children:n})}))},33063:(e,t,n)=>{"use strict";n.d(t,{_y:()=>u,lz:()=>p});var i,o=n(71111),a=n(31209);!function(e){e[e.None=0]="None",e[e.PromotePopupTip=1]="PromotePopupTip",e[e.LoginPopup=2]="LoginPopup",e[e.InterestSelector=3]="InterestSelector"}(i||(i={}));const r=new class{constructor(){this.priorityKeys=[],this.endPriorityKeys=[]}start(e){this.endPriorityKeys.filter((t=>t!==e))}end(e){if(!this.endPriorityKeys.includes(e)){this.endPriorityKeys.push(e);const t=this.priorityKeys.find((e=>!this.endPriorityKeys.includes(e)));if(t)return t}return null}remove(e){this.priorityKeys.filter((t=>t!==e))}add(e){this.priorityKeys.includes(e)||(this.priorityKeys=[...this.priorityKeys,e].sort(((e,t)=>e-t)))}clean(){this.priorityKeys=[],this.endPriorityKeys=[]}},s={0:!0,1:!1,2:!1,3:!1},l=(0,o.atom)({priority:0,isReadyList:s}),c=(0,o.atom)((e=>Object.values(e(l).isReadyList).reduce(((e,t)=>e&&t)))),{useAtomService:d,useServiceDispatchers:u,useServiceState:p}=(0,a.i)(l,((e,t)=>({setIsPopupPriorityReady(n){const i=e(l);if(t(l,Object.assign(Object.assign({},i),{isReadyList:Object.assign(Object.assign({},i.isReadyList),{[n]:!0})})),e(c)){const n=r.end(0);n?t(l,Object.assign(Object.assign({},e(l)),{priority:n})):r.clean()}},clearReadyListOnRouteChange(){const n=e(l);t(l,Object.assign(Object.assign({},n),{isReadyList:s})),r.clean()},getPriorityPopup:n=>({handlePopoverInitial:()=>{r.start(n)},handlePopoverEnd:()=>{const i=e(l).priority;if(n!==i)r.remove(n);else{const i=r.end(n);i?t(l,Object.assign(Object.assign({},e(l)),{priority:i})):(r.clean(),t(l,Object.assign(Object.assign({},e(l)),{priority:0})))}},handlePopoverAdd:()=>{if(r.add(n),e(c)){const n=r.end(0);n&&t(l,Object.assign(Object.assign({},e(l)),{priority:n}))}}})})))},30721:(e,t,n)=>{"use strict";n.d(t,{Qt:()=>a}),n(40099),n(47172);var i=n(60484),o=n(48615);function a(){const{playerInfo:e}=(0,i.L$)((0,o.U)((()=>["playerInfo"]),[])),{name:t="",isSmartPlayer:n=!1,type:a=0,loop:r=!1,replyComment:s=!0,hideNavBar:l=!1}=(0,i.L$)(e);return{brand:t,isEchoShow:"echoshow"===t,isTtincar:"ttincar"===t,launchType:a,isSmartPlayer:n,loop:r,replyComment:s,hideNavBar:l}}},82290:(e,t,n)=>{"use strict";n.d(t,{PD:()=>l,t6:()=>s});var i=n(58632);const o=(()=>{let e;return()=>(e||(e=new Promise((e=>{"undefined"==typeof window&&e(!1);const t=new Image;t.onload=()=>{window.__support_webp__=160===(null==t?void 0:t.height),e(160===(null==t?void 0:t.height))},t.onerror=()=>{window.__support_webp__=!1,e(!1)},t.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvn8AnAAdQiUpUov+BiOh/AAA="}))),e)})(),a=(()=>{let e;return()=>(e||(e=new Promise((e=>{"undefined"==typeof window&&e(!1);const t=new Image;t.onload=()=>{window.__support_avif__=1===(null==t?void 0:t.width),e(1===(null==t?void 0:t.width))},t.onerror=()=>{window.__support_avif__=!1,e(!1)},t.src="data:image/avif;base64,AAAALGZ0eXBhdmlzAAAAAGF2aWZhdmlzbXNmMWlzbzhtaWYxbWlhZk1BMUEAAAElbWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAiaWxvYwAAAABEQAABAAIAAAAABgAAAQAAACUAAAAYAAAAKGlpbmYAAAAAAAEAAAAaaW5mZQIAAAAAAgAAYXYwMUFscGhhAAAAAAxpcmVmAAAAAAAAAI1pcHJwAAAAbmlwY28AAAAUaXNwZQAAAAAAAAABAAAAAQAAAA5waXhpAAAAAAEIAAAADGF2MUOBABwAAAAAOGF1eEMAAAAAdXJuOm1wZWc6bXBlZ0I6Y2ljcDpzeXN0ZW1zOmF1eGlsaWFyeTphbHBoYQAAAAAXaXBtYQAAAAAAAAABAAIEAQKDBAAABKdtb292AAAAbG12aGQAAAAA4GrKgOBqyoAAAABkAAAAZAABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAACGXRyYWsAAABcdGtoZAAAAAHgasqA4GrL+AAAAAEAAAAAAAAAZAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAQAAAAEAAAAAAbVtZGlhAAAAIG1kaGQAAAAA4GrKgOBqyoAAAABkAAAAZFXEAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAABZW1pbmYAAAAUdm1oZAAAAAEAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAASVzdGJsAAAAlXN0c2QAAAAAAAAAAQAAAIVhdjAxAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAEAAQBIAAAASAAAAAAAAAABCkFPTSBDb2RpbmcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGP//AAAADGF2MUOBIAAAAAAAE2NvbHJuY2x4AAEADQAGgAAAABBjY3N0AAAAAHwAAAAAAAAYc3R0cwAAAAAAAAABAAAAAgAAADIAAAAUc3RzcwAAAAAAAAABAAAAAQAAAChzdHNjAAAAAAAAAAIAAAABAAAAAQAAAAEAAAACAAAAAQAAAAEAAAAcc3RzegAAAAAAAAAAAAAAAgAAACUAAAAaAAAAGHN0Y28AAAAAAAAAAgAABgAAAAY9AAACGnRyYWsAAABcdGtoZAAAAAHgasqA4GrL+AAAAAIAAAAAAAAAZAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAQAAAAEAAAAAABR0cmVmAAAADGF1eGwAAAABAAABom1kaWEAAAAgbWRoZAAAAADgasqA4GrKgAAAAGQAAABkVcQAAAAAAChoZGxyAAAAAAAAAABwaWN0AAAAAAAAAAAAAAAAbGliYXZpZgAAAAFSbWluZgAAABR2bWhkAAAAAQAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAABEnN0YmwAAACCc3RzZAAAAAAAAAABAAAAcmF2MDEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAQABAEgAAABIAAAAAAAAAAEKQU9NIENvZGluZwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY//8AAAAMYXYxQ4EAHAAAAAAQY2NzdAAAAAB8AAAAAAAAGHN0dHMAAAAAAAAAAQAAAAIAAAAyAAAAFHN0c3MAAAAAAAAAAQAAAAEAAAAoc3RzYwAAAAAAAAACAAAAAQAAAAEAAAABAAAAAgAAAAEAAAABAAAAHHN0c3oAAAAAAAAAAAAAAAIAAAAYAAAAEAAAABhzdGNvAAAAAAAAAAIAAAYlAAAGVwAAAG9tZGF0EgAKCyAAAAAAffyQENBpMhQQALAAAAJAAAAAeUzeCGsZI8iw4BIACggAAAAAAH38lTIKEACAAAAY3qKVUBIAMhYwA8CAAABGsAAAAkAAIAAeeln6XS7gEgAyDDADwIAAAEaABACRkAAAAENmcmVlSXNvTWVkaWEgRmlsZSBQcm9kdWNlZCB3aXRoIEdQQUMgMi4yLXJldjAtZ2FiMDEyYmJmLW1hc3RlcgA="}))),e)})();let r=!1;const s=()=>(0,i.__awaiter)(void 0,void 0,void 0,(function*(){yield(0,i.__awaiter)(void 0,void 0,void 0,(function*(){const[e,t]=yield Promise.all([a(),o()]);return{supportAvif:e,supportWebp:t}})),r=!0})),l=()=>r?{supportAvif:window.__support_avif__,supportWebp:window.__support_webp__}:(console.warn("VideoCoverViewer: can not use `getCoverFormat` before `coverFormatCheck"),{})},84506:(e,t,n)=>{"use strict";n.d(t,{K8:()=>m,Sd:()=>f,W3:()=>_,_j:()=>h,gG:()=>y,sy:()=>b});var i=n(58632),o=n(40099),a=n(47172),r=n(5441),s=n(243),l=n.n(s),c=n(58305),d=n(78662),u=n(45297),p=n(60484),v=n(71281),g=n(49057);const m=()=>{const e=(0,c.Hd)(u.O_);return["pwa","msft","twa"].includes(e)},h=()=>{var e;const{abTestVersion:t}=(0,p.L$)((0,g.W)((()=>["abTestVersion"]),[])),n=null!==(e=(0,v.qt)(t,"desktop_app_test"))&&void 0!==e?e:"v1";return{desktopAppTestVid:n,isDesktopTestV1:"v1"===n,isDesktopTestV2:"v2"===n}},_=()=>{const[e,t]=(0,o.useState)(!0);return(0,o.useEffect)((()=>{var e;t(Boolean("MAIN_WINDOW"===(null===(e=null===window||void 0===window?void 0:window.TTE_ENV)||void 0===e?void 0:e.windowName)))}),[]),e},f=()=>{const{pathname:e}=(0,a.useLocation)();return(0,d.tO)(e)||(0,d.gq)(e)||(0,d.U0)(e)||(0,d.eD)(e)},y=()=>{const{isElectronApp:e}=(0,r.B)();(0,o.useEffect)((()=>{if(e){const e=Element.prototype.requestFullscreen;Element.prototype.requestFullscreen=function(...t){return(0,i.__awaiter)(this,void 0,void 0,(function*(){yield l().app.setFullScreenable(!0),e.call(this,...t)}))}}}),[e])},b=()=>{const[e,t]=(0,o.useState)("undefined"!=typeof window&&null!==(a=null===(i=null===(n=null===window||void 0===window?void 0:window.matchMedia)||void 0===n?void 0:n.call(window,"(prefers-color-scheme: dark)"))||void 0===i?void 0:i.matches)&&void 0!==a&&a);var n,i,a;const r=e=>{var n;t(null!==(n=null==e?void 0:e.matches)&&void 0!==n&&n)};return(0,o.useEffect)((()=>{var e;const t=null===(e=null===window||void 0===window?void 0:window.matchMedia)||void 0===e?void 0:e.call(window,"(prefers-color-scheme: dark)");return t.addListener(r),()=>t.removeListener(r)}),[]),e}},89311:(e,t,n)=>{"use strict";n.d(t,{m:()=>a});var i=n(60484),o=n(49057);const a=()=>{const{language:e}=(0,i.L$)((0,o.W)((()=>["language"]),[]));return{isRTL:"ar"===e||"ur"===e||"he-IL"===e}}},50970:(e,t,n)=>{"use strict";n.d(t,{L:()=>h});var i=n(58632),o=n(64162),a=n(4126),r=n(93995),s=n(46657),l=n(23999),c=n(26324),d=n(24451),u=n(62564),p=n(35572),v=n(8536),g=n(74690),m=n(80339);let h=class extends o.E{constructor(){super(...arguments),this.defaultState={appContext:null,initialized:!1,lang:"en",sideNavActive:!1}}setSideNavActive(e,t){return Object.assign(Object.assign({},e),{sideNavActive:t})}toggleSideNav(e){return e.pipe((0,d.E)(this.state$),(0,u.T)((([e,t])=>this.getActions().setSideNavActive(!t.sideNavActive))))}setAppContext(e,t){var{statusCode:n}=t,o=(0,i.__rest)(t,["statusCode"]);return 0!==n?e:Object.assign(Object.assign({},e),{appContext:o})}setInitialized(e,t){return Object.assign(Object.assign({},e),{initialized:t})}setLang(e,t){return Object.assign(Object.assign({},e),{lang:t})}init(e){return e.pipe((0,d.E)(this.state$),(0,p.p)((([{appContext:e},{initialized:t}])=>t?s.w:(0,l.of)(Object.assign(Object.assign({},e),{statusCode:0})).pipe((0,v.Z)((t=>(0,l.of)(this.getActions().setAppContext(t),this.getActions().setLang(e.language)))),(0,g.Z)(this.getActions().setInitialized(!1)),(0,m.q)(this.getActions().setInitialized(!0),this.terminate())))))}};(0,i.__decorate)([(0,a.HI)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Boolean]),(0,i.__metadata)("design:returntype",Object)],h.prototype,"setSideNavActive",null),(0,i.__decorate)([(0,a.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[c.c]),(0,i.__metadata)("design:returntype",void 0)],h.prototype,"toggleSideNav",null),(0,i.__decorate)([(0,a.HI)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",Object)],h.prototype,"setAppContext",null),(0,i.__decorate)([(0,a.HI)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Boolean]),(0,i.__metadata)("design:returntype",Object)],h.prototype,"setInitialized",null),(0,i.__decorate)([(0,a.HI)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,String]),(0,i.__metadata)("design:returntype",Object)],h.prototype,"setLang",null),(0,i.__decorate)([(0,a.Mj)({payloadGetter:1}),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[c.c]),(0,i.__metadata)("design:returntype",void 0)],h.prototype,"init",null),h=(0,i.__decorate)([(0,r.n)("AppContext")],h)},44926:(e,t,n)=>{"use strict";n.d(t,{Eq:()=>w,JV:()=>h,LV:()=>b,OB:()=>m,Sb:()=>y,Zl:()=>_,d8:()=>f,o1:()=>g});var i=n(71111),o=n(31209),a=n(18538),r=n(79479),s=n.n(r),l=n(99789),c=n.n(l);const d=(0,i.atom)({}),u=(0,i.atom)(null,((e,t,n,o)=>{if(o){const a=e(d)[n];a?t(a,o):t(d,(e=>Object.assign(Object.assign({},e),{[n]:(0,i.atom)(o)})))}else t(d,(e=>c()(e,n)))})),p=(0,i.atom)(null),v=(0,i.atom)([]),g=(0,i.atom)((e=>{const{browserList:t=[]}=(0,a.N)(e,"creator_tab");return t})),m=(0,i.atom)((e=>{const t=[],n=e(v);for(const i of n){const{browserList:n=[]}=(0,a.N)(e,i.itemListKey);if(i.skip>=n.length)break;const o=Math.min(i.skip+i.limit,n.length);if(t.push(...n.slice(i.skip,o)),i.limit===1/0)break}return t})),h=(0,i.atom)((e=>{const t=e(v),n=e(m);let i=null,o=0;for(const r of t){const{browserList:t=[],hasMore:s=!0}=(0,a.N)(e,r.itemListKey);if(o+=s?r.limit:t.length-r.skip,n.length{n.activeItemListKey&&t(p,n.activeItemListKey),n.browserListSources&&t(v,n.browserListSources)})),{useAtomService:_,useServiceState:f,useServiceDispatchers:y,getStaticApi:b}=(0,o.i)(h,((e,t)=>({registerBrowserListConfig(e){const{itemListKey:n,config:i}=e;t(u,null!=n?n:"",i)},setupBrowserList(n){var i;const{itemListKey:o,enterIndex:a}=n,r=e(d)[null!=o?o:""],l=r?e(r):null,c=[];if("explore"!==o||s()(l))c.push({itemListKey:o,skip:0,limit:1/0});else{const e=null!==(i=null==l?void 0:l.sources)&&void 0!==i?i:[];c.push(...function(e,t,n){const i={},o=[];return n.forEach((({itemListKey:n,limit:a},r)=>{var s;if(n){const l=null!==(s=i[n])&&void 0!==s?s:0,c=0===r&&n===e?t+a:a;o.push({itemListKey:n,skip:l,limit:c}),i[n]=l+c}})),o}(o,a,e))}t(p,o),t(v,c)},clearBrowserList(){t(p,null),t(v,[])},freezeSourceWithKey(n){const i=e(v),o=[];for(const t of i)if(t.itemListKey!==n)o.push(t);else{const{browserList:n=[]}=(0,a.N)(e,t.itemListKey);t.skip{"use strict";n.d(t,{$T:()=>O,bc:()=>j,YZ:()=>I,BI:()=>C,JD:()=>P});var i=n(58632),o=n(71111),a=n(31209),r=n(80417),s=n(21367),l=n(35043),c=n(92032),d=n(42573),u=n(38771),p=n(23532),v=n(52333),g=n(18538),m=n(15343),h=n(67192);const _=new WeakMap,f=e=>{const t=(e=>{if("undefined"!=typeof window){if(!_.has(e)){const t=h.l.getInstance(e);if(!t)return void console.error(`Instance has not mounted for Class: ${e.constructor.name}`);_.set(e,t)}return _.get(e)}console.warn("[Warning]: Unexpctedly get injectable instance in SSR runtime, will return null instead.")})(m.AU);null==t||t.reportVideoInteractStart({startTime:Date.now(),situation:e})};var y=n(39228),b=n(26325),w=n(22248),x=n(57381),T=n(44926),S=n(71777);const k={foryou:0,topic:0,following:0,video:0,find:1,music:1,music_new:1,challenge:1,challenge_new:1,sticker:1,effect:1,user:1,"user-post":1,"user-repost":1,"user-liked":1,search_top:1,search_video:1,question:1,playlist:1,live_event:1,video_playlist:0,create_video_playlist:0,messages:0,discover:1,poi:1,collection:1,"user-post-public":0,explore:0,channel:1,poi_category:1,search_live:1,favorites:1,"keyword-expansion":1,creator_tab:2,friends:0,trending_topics:1},A={3:"friends",2:"private",1:"public"},O=(0,o.atom)({currentIndex:0,enterIndex:0,prevFeedItemIndex:null,itemListKey:null,prevFeedItemListKey:null,jumpSamePageTime:0,belowPlayMode:0,enterWindowTimeSec:Number(new Date),showingBrowserMode:!1,isCreatorBrowserMode:!1});O.debugLabel="browserModeAtom";const E=(0,o.atom)((e=>{const{itemListKey:t}=e(O);return(0,g.N)(e,t)})),{useServiceState:P,useServiceDispatchers:I,useAtomService:C,getStaticApi:j}=(0,a.i)(O,((e,t)=>({setItemListKey(e){t(O,(t=>Object.assign(Object.assign({},t),{itemListKey:e})))},setCurrentIndex(e){t(O,(t=>Object.assign(Object.assign({},t),{currentIndex:e})))},setClickSamePage(){t(O,(e=>Object.assign(Object.assign({},e),{jumpSamePageTime:Date.now()})))},setShowingBrowserMode(e){t(O,(t=>Object.assign(Object.assign({},t),{showingBrowserMode:e})))},updateVideoIndexAndSavePrev({newFeedIndex:n,isIndexInvalid:i,newId:o,playProgress:a,itemListKey:r,currentIndex:l,newItemListKey:c,playMode:d}){if(i)return;const{isMiniPlayerShowing:u}=e(S.az);if(t(O,(e=>Object.assign(Object.assign({},e),{itemListKey:c,currentIndex:n,prevFeedItemIndex:l,prevFeedItemListKey:r}))),u)return(0,S.uZ)().setItemListKey("creator_tab"),void(0,S.uZ)().updateVideoIndex({newIndex:n,newId:o});const p={currentVideo:{index:n,id:o,mode:d},playProgress:null!=a?a:0};(0,s.LM)().updateVideo(p)},handleEnterCreatorMode(n){var i;try{f("enter_creator_mode");const{creatorFeedIndex:o}=n,{itemListKey:a,currentIndex:r}=e(O),s=e(T.o1),l=!s.length,c=null!==(i=s[o])&&void 0!==i?i:"";this.updateVideoIndexAndSavePrev({newFeedIndex:o,isIndexInvalid:l,newId:c,itemListKey:a,currentIndex:r,newItemListKey:"creator_tab",playMode:2}),t(O,(e=>Object.assign(Object.assign({},e),{isCreatorBrowserMode:!0})))}catch(e){}},handleExitCreatorMode(){var n;try{f("exit_creator_mode");const{prevFeedItemIndex:i,prevFeedItemListKey:o}=e(O),a=e(T.OB),r=null!=i?i:0,l=!a.length,c=null!==(n=a[r])&&void 0!==n?n:"";this.handleClearCreatorModeData({newIndex:r,isIndexInvalid:l,prevFeedItemListKey:o});const d={currentVideo:{index:r,id:c,mode:2},playProgress:0};(0,s.LM)().updateVideo(d),t(O,(e=>Object.assign(Object.assign({},e),{isCreatorBrowserMode:!1})))}catch(e){}},handleCreatorModeVideoClick(t){var n;try{f("click_creator_video");const{creatorFeedIndex:i}=t,{isMiniPlayerShowing:o}=e(S.az),a=e(T.o1),r=!a.length,s=null!==(n=a[i])&&void 0!==n?n:"";o?(0,S.uZ)().updateVideoIndex({newIndex:i,newId:s}):this.updateVideoIndex({newIndex:i,newId:s,isIndexInvalid:r})}catch(e){}},updateVideoIndex(n){const{newIndex:i,isIndexInvalid:o,newId:a,playProgress:r}=n,{isMiniPlayerShowing:c}=e(S.az),{itemListKey:d}=e(O);if(o)return;if(t(O,(e=>Object.assign(Object.assign({},e),{currentIndex:i}))),c)return;const u={currentVideo:{index:i,id:a,mode:2},playProgress:null!=r?r:0,pageType:d?l.FB[d]:999};(0,s.LM)().updateVideo(u)},updateDeleteVideo(n){const{currentIndex:i}=e(O),o=e(T.OB),a=o.length,r=a-1<=0,s=a-1===i,l=r?"":o[s?i-1:i+1],u=s?i-1:i;if(n){this.updateVideoIndex({newIndex:u,newId:l,isIndexInvalid:r});const e=(0,c.Ds)(),i=(0,d.HG)();e.setDeleteVideo(n),i.setDeleteVideo(n),t(p.D,"setDeleteVideo",n),t(v.t,"setDeleteVideo",n)}},handleClearCreatorModeData(e){const{prevFeedItemListKey:n,newIndex:i,isIndexInvalid:o}=e;o||t(O,(e=>Object.assign(Object.assign({},e),{currentIndex:i,itemListKey:n,prevFeedItemIndex:null,prevFeedItemListKey:null})))},postVideoDelete(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const t=(0,x.o)();try{const{status_code:n,status_msg:o}=yield function(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){return y.hd.post("/api/aweme/delete/",{query:Object.assign(Object.assign({},e),{tt_csrf_token:y.hd.csrfToken}),headers:{[b.nk]:y.hd.csrfToken},baseUrlType:2})}))}(e);t.setBrowserModeStatus({statusCode:n,statusMessage:o,action:"delete"}),0===n&&(r.y.handleVideoDelete("delete"),this.updateDeleteVideo(e.aweme_id))}catch(e){t.setBrowserModeStatus({statusCode:-1,statusMessage:""})}}))},postScheduleDelete(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const t=(0,x.o)();try{yield function(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){return y.hd.post("/api/schedule/aweme/delete/",{query:e,headers:{[b.nk]:y.hd.csrfToken},baseUrlType:2})}))}({aweme_id:e}),t.setBrowserModeStatus({statusCode:0,statusMessage:"",action:"delete"}),this.updateDeleteVideo(e),r.y.handleScheduleDelete("delete")}catch(e){t.setBrowserModeStatus({statusCode:-1,statusMessage:""})}}))},postDuetOrStitchChange({type:e,enable:n,aweme_id:o}){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const a=(0,x.o)();try{const{status_code:s}=yield function(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){return y.hd.post("/api/aweme/set/react_duet_stitch/",{query:Object.assign(Object.assign({},e),{tt_csrf_token:y.hd.csrfToken}),headers:{[b.nk]:y.hd.csrfToken},baseUrlType:2})}))}({aweme_id:o,[e]:n});if(0!==s)a.setBrowserModeStatus({statusCode:s,statusMessage:""}),2054===s&&this.updateDeleteVideo(o);else{r.y.handlePrivateSetting({target:e,to_status:n?"on":"off"});const i="item_duet"===e?"duetEnabled":"stitchEnabled";t(v.t,"updateItem",{id:o,[i]:0===n})}}catch(e){a.setBrowserModeStatus({statusCode:-1,statusMessage:""})}}))},postModifyVisibility(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const n=(0,x.o)();try{const{status_code:o,status_msg:a}=yield function(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){return y.hd.post("/api/aweme/modify/visibility/",{query:Object.assign(Object.assign({},e),{tt_csrf_token:y.hd.csrfToken}),headers:{[b.nk]:y.hd.csrfToken},baseUrlType:2})}))}(e);0!==o?(n.setBrowserModeStatus({statusCode:o,statusMessage:a}),2054===o&&this.updateDeleteVideo(e.aweme_id)):(r.y.handleSelectPrivacySettingVideo({to_status:A[e.type]}),(0,w.G)(o,[0]),t(v.t,"setItemPrivateState",{id:e.aweme_id,visibility:e.type}))}catch(e){n.setBrowserModeStatus({statusCode:-1,statusMessage:""})}}))},postUserSetting(e){var n,o;return(0,i.__awaiter)(this,void 0,void 0,(function*(){const a=(0,x.o)();try{const{status_code:s}=yield function(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){return y.hd.post("/api/user/set/settings/",{baseUrlType:2,query:Object.assign(Object.assign({},e),{tt_csrf_token:y.hd.csrfToken}),headers:{[b.nk]:y.hd.csrfToken}})}))}(e);0!==s?(a.setBrowserModeStatus({statusCode:s,statusMessage:""}),2054===s&&this.updateDeleteVideo(null!==(n=e.aweme_id)&&void 0!==n?n:"")):(r.y.handlePrivateSetting({target:"comment",to_status:0===e.private_setting?"on":"off"}),t(v.t,"updateItem",{id:null!==(o=e.aweme_id)&&void 0!==o?o:"",itemCommentStatus:e.private_setting}))}catch(e){a.setBrowserModeStatus({statusCode:-1,statusMessage:""})}}))},closeBrowserMode(n){var i;const{playProgress:o=0,shouldPause:a=!1}=null!=n?n:{},{itemListKey:r,currentIndex:c,belowPlayMode:d,isCreatorBrowserMode:u,prevFeedItemIndex:p,prevFeedItemListKey:v}=e(O),g=u?null!=v?v:"":null!=r?r:"",m=u?null!=p?p:0:c,h=e(T.OB),{list:_}=e(E),f=!h.length,y=null!==(i=h[m])&&void 0!==i?i:"",b=_.findIndex((e=>y===e));u&&(t(O,(e=>Object.assign(Object.assign({},e),{isCreatorBrowserMode:!1}))),this.handleClearCreatorModeData({prevFeedItemListKey:g,newIndex:m,isIndexInvalid:f}));const w={currentVideo:{index:a?-1:b,id:a?"":y,mode:null!=d?d:k[g],pageType:g?l.FB[g]:999},playProgress:o};(0,s.LM)().updateVideo(w),t(O,(e=>Object.assign(Object.assign({},e),{showingBrowserMode:!1,belowPlayMode:null}))),(0,T.LV)().clearBrowserList()},showBrowserMode(n){var i;const{index:o=0,playProgress:a=0,belowPlayMode:r,forceUseIndexLocation:s,shouldUsePreviousProgress:l=!1}=n,{browserList:c,list:d}=e(E),p=d[o],{currentTime:v}=null!==(i=e(u.jD)[p])&&void 0!==i?i:{currentTime:0},g=s?o:Math.max(0,Math.min(c.length-1,c.findIndex((e=>p===e)))),{itemListKey:m}=e(O),{isMiniPlayerShowing:h}=e(S.az);(0,T.LV)().setupBrowserList({itemListKey:m,enterIndex:g}),h&&(0,S.uZ)().setPrevPlayMode(2),this.updateVideoIndex({newIndex:g,newId:p,isIndexInvalid:!1,playProgress:l?v:a}),t(O,(e=>Object.assign(Object.assign(Object.assign({},e),r?{belowPlayMode:r}:{}),{showingBrowserMode:!0,enterIndex:g})))},handleNextVideo(){var t;try{f("browser_mode_next");const{currentIndex:n,isCreatorBrowserMode:i}=e(O),o=e(i?T.o1:T.OB),{liveCardDisplay:a}=e(E),r=e(v.t),{isMiniPlayerShowing:s}=e(S.az),l=(0,g.A)(n,o,r,a,"next"),c=!o.length||l<0,d=null!==(t=o[l])&&void 0!==t?t:"";if(c)return void console.warn("cannot switch to next video for some reasons");s?(0,S.uZ)().handleNextVideo():this.updateVideoIndex({newIndex:l,newId:d,isIndexInvalid:!1})}catch(e){}},handlePrevVideo(){var t;try{f("browser_mode_prev");const{currentIndex:n,isCreatorBrowserMode:i}=e(O),o=e(E),a=e(i?T.o1:T.OB),{liveCardDisplay:r}=o,s=e(v.t),{isMiniPlayerShowing:l}=e(S.az),c=(0,g.A)(n,a,s,r,"prev"),d=!a.length||c>a.length-1,u=null!==(t=a[c])&&void 0!==t?t:"";if(d)return void console.warn("cannot switch to prev video for some reasons");l?(0,S.uZ)().handlePrevVideo():this.updateVideoIndex({newIndex:c,newId:u,isIndexInvalid:!1})}catch(e){}},getAdjacentVideoInfo(){const{currentIndex:t,isCreatorBrowserMode:n}=e(O),i=e(n?T.o1:T.OB);return[i[t-1],i[t+1]].map((e=>null!=e?e:0))}})))},57381:(e,t,n)=>{"use strict";n.d(t,{W:()=>l,o:()=>s});var i=n(71111),o=n(31209);const a={statusCode:0,statusMessage:"",toastNotShown:!1},r=(0,i.atom)(Object.assign({},a)),{getStaticApi:s,useAtomService:l}=(0,o.i)(r,((e,t)=>({setBrowserModeStatus(e){t(r,Object.assign(Object.assign({},e),{toastNotShown:!0}))},clearBrowserModeStatus(){t(r,Object.assign({},a))}})))},18538:(e,t,n)=>{"use strict";n.d(t,{A:()=>r,N:()=>s});var i=n(92597),o=n(91286),a=n(23532);const r=(e,t,n,i,a)=>{var r,s;let l="next"===a?e+1:e-1;if(1===i){const i=null!==(r=t[l])&&void 0!==r?r:"";let c=(0,o.Jl)(n[i]);for(;c;){l="next"===a?l+1:l-1;const i=null!==(s=t[l])&&void 0!==s?s:"";if(c=(0,o.Jl)(n[i]),l>t.length-1||l<0||""===i)return e}}return Math.max(Math.min(l,t.length-1),0)},s=(e,t)=>{var n;const o=(0,i.D)(t);return o?e(o):null!==(n=e(a.D)[null!=t?t:""])&&void 0!==n?n:{}}},67842:(e,t,n)=>{"use strict";n.d(t,{MR:()=>s,b1:()=>c,mZ:()=>l});var i=n(14901),o=n(16680),a=n(52266),r=n(88920);const{useSigiOrJotaiService:s,useSigiOrJotaiState:l,useSigiOrJotaiDispatchers:c}=(0,a.K)((()=>(0,r.IX)().foryou.isLoginJotai),i.k,{useServiceState:o.mZ,useServiceDispatchers:o.b1})},14901:(e,t,n)=>{"use strict";n.d(t,{k:()=>g});var i=n(58632),o=n(64162),a=n(4126),r=n(93995),s=n(57432),l=n.n(s),c=n(23999),d=n(26324),u=n(8536),p=n(34360),v=n(16680);let g=class extends o.E{constructor(){super(),this.defaultState={isOpen:!1,url:"",isRedirectToProfilePage:!1,closeable:!1,isBannerActive:!1,bannerEnabled:!1,content:{title:"",desc:"",btnOpenText:""},iframeStyle:{},handleDownload:l(),handleLogin:l(),closeCallback:l(),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,v.CP)().setCloseable(t)}setUrl(e,t){(0,v.CP)().setUrl(t)}setLoginPath(e,t){(0,v.CP)().setLoginPath(t)}setCloseCallback(e,t){t&&(0,v.CP)().setCloseCallback(t)}setIsOpen(e,t){(0,v.CP)().setIsOpen(t)}setContent(e,t){t&&(0,v.CP)().setContent(t)}setHandleDownload(e,t){t&&(0,v.CP)().setHandleDownload(t)}setHandleLogin(e,t){t&&(0,v.CP)().setHandleLogin(t)}setIframeStyle(e,t){(0,v.CP)().setIframeStyle(t)}setModalType(e,t){(0,v.CP)().setModalType(t)}setLoginModalShow(e,t){(0,v.CP)().setLoginModalShow(t)}setMaskCloseable(e,t){(0,v.CP)().setMaskCloseable(t)}setPageType(e,t){(0,v.CP)().setPageType(t)}setUserId(e,t){(0,v.CP)().setUserId(t)}setGroupId(e,t){(0,v.CP)().setGroupId(t)}setLastGroupId(e,t){(0,v.CP)().setLastGroupId(t)}setEnterMethod(e,t){(0,v.CP)().setEnterMethod(t)}setModalImage(e,t){(0,v.CP)().setModalImage(t)}setPopupType(e,t){(0,v.CP)().setPopupType(t)}setIsRedirectToProfilePage(e,t){(0,v.CP)().setIsRedirectToProfilePage(t)}setIsGuestMode(e,t){(0,v.CP)().setIsGuestMode(t)}setIsGuestModeUI(e,t){(0,v.CP)().setIsGuestModeUI(t)}setPredictionPayload(e,t){(0,v.CP)().setPredictionPayload(t)}setIsLinkPhoneOrEmail(e,t){(0,v.CP)().setIsLinkPhoneOrEmail(t)}openModal(e){return e.pipe((0,u.Z)((e=>(0,c.of)((0,v.CP)().openModal(e)).pipe((0,u.Z)((()=>(0,c.of)(this.noop())))))))}setCheckPeriodicLogin(e,t){(0,v.CP)().setCheckPeriodicLogin(t)}setCheckPredictionLogin(e,t){(0,v.CP)().setCheckPredictionLogin(t)}setCheckGuestModeLogin(e,t){(0,v.CP)().setCheckGuestModeLogin(t)}setIsLoginOnLoadClosed(e,t){(0,v.CP)().setIsLoginOnLoadClosed(t)}setClearShowLoginOnLoad(e){(0,v.CP)().setClearShowLoginOnLoad()}closeModal(e){return e.pipe((0,u.Z)((e=>(0,c.of)((0,v.CP)().closeModal(e)).pipe((0,u.Z)((()=>(0,c.of)(this.noop())))))))}setIsBannerActive(e,t){(0,v.CP)().setIsBannerActive(t)}};g.jotaiAtom=v.JF,(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Boolean]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setCloseable",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,String]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setUrl",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,String]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setLoginPath",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setCloseCallback",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Boolean]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setIsOpen",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setContent",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setHandleDownload",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setHandleLogin",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setIframeStyle",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setModalType",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Boolean]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setLoginModalShow",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setMaskCloseable",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Number]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setPageType",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setUserId",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setGroupId",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setLastGroupId",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setEnterMethod",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setModalImage",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setPopupType",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Boolean]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setIsRedirectToProfilePage",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Boolean]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setIsGuestMode",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Boolean]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setIsGuestModeUI",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,String]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setPredictionPayload",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Boolean]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setIsLinkPhoneOrEmail",null),(0,i.__decorate)([(0,a.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[d.c]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"openModal",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setCheckPeriodicLogin",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setCheckPredictionLogin",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setCheckGuestModeLogin",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setIsLoginOnLoadClosed",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setClearShowLoginOnLoad",null),(0,i.__decorate)([(0,a.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[d.c]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"closeModal",null),(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Boolean]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setIsBannerActive",null),g=(0,i.__decorate)([(0,r.n)("LoginModal"),(0,i.__metadata)("design:paramtypes",[])],g),v.JF.__SIGI_MODULE__=g,(0,p.y)(g)},536:(e,t,n)=>{"use strict";n.d(t,{D:()=>c});var i=n(45297),o=n(60484),a=n(49057),r=n(71281),s=n(58305),l=n(71777);const c=()=>{var e,t;const{abTestVersion:n}=(0,o.L$)((0,a.W)((()=>["abTestVersion"]),[])),c=null!==(e=(0,r.qt)(n,"enable_mini_player"))&&void 0!==e?e:"v0",d=null!==(t=(0,r.qt)(n,"enable_mini_player_switch_tab_popup"))&&void 0!==t?t:"v0",u="v0"!==c,p="v0"!==d,v="v3"===d||"v4"===d,g="v3"===d||"v4"===d,m="v2"===d||"v4"===d,h="v2"!==d&&"v4"!==d,_="v4"===d,{isLandingIndicatorDismissed:f,isIndicatorAcked:y,isAfterSwitchTabOrWindowSizeChange:b,isAfterSwitchTabOrWindowSizeChangeIndicatorShown:w,isAfterSwitchTabOrWindowSizeChangeIndicatorDismissed:x,enableNewLocalStorageKey:T}=(0,l.mE)(),S=T?i.tD:i.un,k=T?i.RM:i._O,A=Number((0,s._S)(S)),O=Boolean((0,s._S)(k))||y,E=h&&!O&&!f&&A<=3,P=m&&h&&(O||f)||!h,I=P&&b&&!x&&!w;return{enableMiniPlayer:u,enableMiniPlayerNewTooltip:v,enableMiniPlayerLandingIndicator:h,enableIndicatorWhenSwitchTabOrWindowSizeChange:m,enableSwitchTabOrWindowSizeChangeText:_,canUpdateSwitchTabOrWindowSizeChangeIndicatorState:P,enableMiniPlayerNewCloseIcon:p,showMiniPlayerName:g,isSwitchTabOrWindowSizeChangeIndicatorShow:I,shouldShowStickyIndicator:I||E,shouldShowIndicator:!O||I,isLandingShow:E&&!f}}},71777:(e,t,n)=>{"use strict";n.d(t,{Dy:()=>y,Sp:()=>b,az:()=>h,mE:()=>f,uZ:()=>w});var i=n(58632),o=n(71111),a=n(31209),r=n(91257),s=n(21367),l=n(18538),c=n(19442),d=n(44926),u=n(58305),p=n(45297),v=n(93608),g=n(57431);const m={isDocumentPipSupporting:"undefined"!=typeof window&&"documentPictureInPicture"in window,pipWindow:null,isMiniPlayerShowing:!1,itemListKey:null,currentIndex:0,prevPlayMode:null,miniPlayerRef:null,svgChangeObserver:null,enterTimestamp:0,windowHeight:598,windowWidth:306,enableNewLocalStorageKey:!1,isIndicatorAcked:!1,isLandingIndicatorDismissed:!1,isAfterSwitchTabOrWindowSizeChange:!1,isAfterSwitchTabOrWindowSizeChangeIndicatorShown:Boolean((0,u._S)(p.je)),isAfterSwitchTabOrWindowSizeChangeIndicatorDismissed:!1},h=(0,o.atom)(m);h.debugLabel="miniPlayerAtom";const _=(0,o.atom)((e=>{const{itemListKey:t}=e(h);return(0,l.N)(e,t)})),{useServiceState:f,useServiceDispatchers:y,useAtomService:b,getStaticApi:w}=(0,a.i)(h,((e,t)=>({setItemListKey(e){t(h,(t=>Object.assign(Object.assign({},t),{itemListKey:e})))},setCurrentIndex(e){t(h,(t=>Object.assign(Object.assign({},t),{currentIndex:e})))},setPrevPlayMode(e){t(h,(t=>Object.assign(Object.assign({},t),{prevPlayMode:e})))},setIsMiniPlayerShowing(e){t(h,(t=>Object.assign(Object.assign({},t),{isMiniPlayerShowing:e})))},setMiniPlayerRef(e){t(h,(t=>Object.assign(Object.assign({},t),{miniPlayerRef:e})))},setIsLandingIndicatorDismissed(e){t(h,(t=>Object.assign(Object.assign({},t),{isLandingIndicatorDismissed:e})))},initEnableNewLocalStorageKey(){var e;const{abTestVersion:n}=(0,g.x)(),i=!!(null===(e=null==n?void 0:n.parameters.enable_mini_player_switch_tab_popup)||void 0===e?void 0:e.vid);t(h,(e=>Object.assign(Object.assign({},e),{enableNewLocalStorageKey:i})))},setIsAfterSwitchTabOrWindowSizeChange(e){t(h,(t=>Object.assign(Object.assign({},t),{isAfterSwitchTabOrWindowSizeChange:e})))},setIsAfterSwitchTabOrWindowSizeChangeIndicatorDismissed(e){t(h,(t=>Object.assign(Object.assign({},t),{isAfterSwitchTabOrWindowSizeChangeIndicatorDismissed:e})))},updateMiniPlayerSize(){const{pipWindow:n}=e(h);if(!n)return;const i=n.innerHeight,o=n.innerWidth;t(h,(e=>Object.assign(Object.assign({},e),{windowHeight:i,windowWidth:o})))},updateVideoIndex(n){const{newIndex:i,newId:o,playProgress:a,isMiniPlayerNotSupported:r}=n,{prevPlayMode:l}=e(h);t(h,(e=>Object.assign(Object.assign({},e),{currentIndex:i})));const d={currentVideo:{index:i,id:o,mode:r?l:8},playProgress:null!=a?a:0};(0,s.LM)().updateVideo(d);const{showingBrowserMode:u}=e(c.$T);u&&(0,c.bc)().updateVideoIndex({newId:o,newIndex:i,isIndexInvalid:!1})},closeMiniPlayer(n){var i,o,a;const{playMode:l,enter_method:c}=n,{currentIndex:d,prevPlayMode:u,pipWindow:p,miniPlayerRef:g,svgChangeObserver:m,enterTimestamp:f}=e(h),{list:y=[]}=e(_),b=null!==(i=y[d])&&void 0!==i?i:"",w=y.findIndex((e=>b===e)),x=null!==(a=null===(o=null==g?void 0:g.current)||void 0===o?void 0:o.currentTime)&&void 0!==a?a:0;if(p){null==p||p.close(),v.f.sendEvent("turn_off_mini_player",{play_mode:r.Jr[null!=u?u:"-1"],group_id:b,enter_method:c,stay_duration:(Date.now()-f)/1e3,has_more:dObject.assign(Object.assign({},e),{pipWindow:null,isMiniPlayerShowing:!1,itemListKey:null,currentIndex:0,prevPlayMode:null,miniPlayerRef:null,svgChangeObserver:null,enterTimestamp:0})))}},openMiniPlayer(n){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const{index:i=0,playMode:o,playProgress:a,itemListKey:u}=n,{pipWindow:p,isDocumentPipSupporting:g,windowHeight:m,windowWidth:_}=e(h);if(!g||"undefined"==typeof window||null!==p)return;const{list:f}=(0,l.N)(e,u),{showingBrowserMode:y,isCreatorBrowserMode:b}=e(c.$T),{browserList:w}=e(d.JV),x=y&&!b?w[i]:f[i];try{const e=Date.now();documentPictureInPicture.addEventListener("enter",(()=>{v.f.sendEvent("enter_mini_player",{latency:Date.now()-e,play_mode:r.Jr[o],group_id:x})}),{once:!0});const n=yield window.documentPictureInPicture.requestWindow({width:_,height:m});n.addEventListener("pagehide",(()=>{this.closeMiniPlayer({playMode:o})}),{once:!0}),[...document.styleSheets].forEach((e=>{try{const t=[...e.cssRules].map((e=>e.cssText)).join(""),i=document.createElement("style");i.textContent=t,n.document.head.appendChild(i)}catch(t){const i=document.createElement("link");if(null===e.href)return;i.rel="stylesheet",i.type=e.type,i.media=e.media.toString(),i.href=e.href,n.document.head.appendChild(i)}})),this.createOrUpdateSVGSprite(n);const l=document.querySelector("#svg-sprite-container"),c=new MutationObserver((()=>this.createOrUpdateSVGSprite(n)));l&&c.observe(l,{subtree:!0,childList:!0});const d={currentVideo:{index:i,id:x,mode:8},playProgress:a};(0,s.LM)().updateVideo(d),t(h,(e=>Object.assign(Object.assign({},e),{enterTimestamp:Date.now(),itemListKey:u,prevPlayMode:o,isMiniPlayerShowing:!0,currentIndex:i,pipWindow:n,svgChangeObserver:c})))}catch(e){console.error("DocumentPIP error",e)}}))},createOrUpdateSVGSprite(e){const t=document.querySelector("#svg-sprite-container");try{let n=e.document.body.querySelector("svg");n||(n=document.createElement("svg"),e.document.body.appendChild(n)),n.innerHTML=(null==t?void 0:t.outerHTML)||""}catch(e){console.log("error to copy svg sprite",e)}},handleNextVideo(){var t;try{const{currentIndex:n}=e(h),{list:i}=e(_),o=n+1,a=null!==(t=i[o])&&void 0!==t?t:"";if(!i.length||o<0||o>=i.length)return void console.warn("cannot switch to next video for some reasons");this.updateVideoIndex({newIndex:o,newId:a})}catch(e){}},handlePrevVideo(){var t;try{const{currentIndex:n}=e(h),{list:i}=e(_),o=n-1,a=!i.length||o<0||o>=i.length,r=null!==(t=i[o])&&void 0!==t?t:"";if(a)return void console.warn("cannot switch to prev video for some reasons");this.updateVideoIndex({newIndex:o,newId:r})}catch(e){}},updateLandingIndicatorShowTimes(){const{enableNewLocalStorageKey:t}=e(h),n=t?p.tD:p.un;(0,u.AP)(n,(Number((0,u._S)(n,"0"))+1).toString())},updateIndicatorAckedStatus(){const{enableNewLocalStorageKey:n}=e(h),i=n?p.RM:p._O;(0,u.AP)(i,"1"),t(h,(e=>Object.assign(Object.assign({},e),{isIndicatorAcked:!0})))}})))},6523:(e,t,n)=>{"use strict";n.d(t,{Tx:()=>k,lF:()=>T,M0:()=>S,Nk:()=>P,yq:()=>A,O9:()=>x,wW:()=>E,dY:()=>O});var i=n(25616),o=n(10828),a=n(7971),r=n(46682),s=n(41271),l=n(39785),c=n(15203),d=n(91498);const u=(0,l.M)({csr:()=>(0,c.q)()}),p=(0,l.M)({csr:()=>(0,d.o7)()});var v=n(56013),g=n(97086),m=n(71281),h=n(60484),_=n(48615),f=n(40099),y=n(32125),b=n(49799),w=n(50789);const x=(e,t)=>{if(!e||e===t||(0,g.fU)())return;const n=location.pathname.replace(/[^\/]+$/,e),i=`${o.C}/${n}${location.search}`,a=Object.assign(Object.assign({},history.state),{as:i});window.history.replaceState(a,"format_kap_page",i)},T=e=>{const t=E();return(0,a.zh)(e,t)},S=({keyword:e,relatedWordList:t})=>{const n=(0,m.TQ)("kep_remove_desc_keywords"),o=(0,i.s)(),r=(0,f.useMemo)((()=>(({keyword:e,keywordList:t,removeRelatedKeywords:n,t:i})=>{const o=`${i("seo_serp_expansion_num1",{expansion_keywords:(0,a.zh)(e)})}`;if(n)return o;const r=(0,a.gW)(t);return`${o}${r?` ${i("seo_aggre_metadesc2",{related_search_keywords:r})}`:""}`})({keyword:e,keywordList:t.map((e=>e.formattedWord)),t:o,removeRelatedKeywords:n})),[e,o,t]);return r};function k(e){const{pageType:t,topic:n,language:i="en"}=e,o=(0,r.w)(b.E);(0,f.useEffect)((()=>{o.setFeedSEOProps({pageType:t,topic:n,language:i})}),[o,t,n,i])}function A(){return(0,f.useMemo)((()=>p()),[])}function O(){return(0,f.useMemo)((()=>u()),[])}function E(){const e=(0,s.P)(w.p,{selector:e=>e.abtest,dependencies:[]});return(0,v.d7)((e=>e.abtest),{equalityFn:y.bN})||e}function P(){const{isBot:e}=(0,h.L$)((0,_.U)((()=>["isBot"]),[]));return Boolean(e)}},49799:(e,t,n)=>{"use strict";n.d(t,{E:()=>ye});var i=n(58632),o=n(4126),a=n(93995),r=n(42051),s=(n(72828),n(80339)),l=n(95719),c=n(23999),d=n(63700),u=n(26324),p=n(8536),v=n(35572),g=n(20259),m=n(62564),h=n(24451),_=n(17354),f=n(72916),y=n(53966),b=n(80847),w=n(77878),x=n(95584),T=n(13761),S=n(10828),k=n(30251),A=n(53038);const O=[{processType:T.k.SERPProcessType.META_PATH,targetId:103,content:function(e){const{t}=e,n=[t("SERP discover title"),t("TikTok i18n keywords")].join(",");return{title:t("SEO_discover_title"),keywords:n,description:t("SEO_discover_desc"),robotsContent:k.kl.INDEX,canonicalHref:`${k.AQ}/discover`,applicableDevice:"pc, mobile"}}},{processType:T.k.SERPProcessType.JSONLD_PATH,targetId:103,content:function(e){const{language:t="en"}=e,n={"@id":k.er,url:k._0,name:k.UN,description:k.OZ,publisher:(0,A.xM)(S.C,t)},i=(0,A.SH)([{url:S.C,name:k.e4},{url:k._0,name:k.UN}]);return[[x.Y.JsonldType.WebSite,n],[x.Y.JsonldType.BreadcrumbList,i]]}}],E=[{processType:T.k.SERPProcessType.META_PATH,targetId:11,content:function(e){const{language:t="en",t:n}=e;return{title:n("SEO_following_title"),keywords:n("TikTok i18n keywords"),description:n("SEO_following_desc"),robotsContent:k.kl.INDEX,canonicalHref:`${k.AQ}${k.Cb}?lang=${t}`,applicableDevice:"pc, mobile"}}}];var P=n(35047),I=n(93809),C=n(75486),j=n(95098),L=n(46859),M=n(61679),N=n(67982);const D=[{processType:T.k.SERPProcessType.META_PATH,targetId:16,content:function(e){const{questionInfo:t,t:n}=e,i=(0,L.F)(e),{id:o="",content:a="",videoCount:r}=null!=t?t:{},s=i&&a&&o,l=s?n("SEO_qa_title_1",{question:a}):"",c=[n("TikTok i18n keywords")].join(","),d=s?n("SEO_qa_desc_1",{question:a,number:(0,M.D1)(r)}):"",u=(0,N.WD)({questionContent:a,questionId:o});return{title:l,keywords:c,description:d,canonicalHref:s?`${S.C}${u}`:"",robotsContent:s?k.kl.INDEX:k.kl.NO_INDEX,applicableDevice:"pc, mobile"}}},{processType:T.k.SERPProcessType.JSONLD_PATH,targetId:16,content:function(e){const{questionInfo:t,seoProps:n}=e,{itemList:i,metaParams:o}=null!=n?n:{},{id:a="",content:r=""}=null!=t?t:{},s=(0,L.F)(e)&&r&&a,{title:l}=null!=o?o:{},c=(0,N.WD)({questionContent:r,questionId:a}),d=`${S.C}${c}`,u=null!=l?l:`${r} | TikTok Q&A`,p={"@type":"ItemPage","@id":d},v=(0,A.SH)(s?[{url:S.C,name:k.e4},{url:d,name:u}]:[{url:S.C,name:k.e4}]);return[[x.Y.JsonldType.Page,p],[x.Y.JsonldType.ItemList,null!=i?i:{}],[x.Y.JsonldType.BreadcrumbList,v]]}}],R=[{processType:T.k.SERPProcessType.META_PATH,targetId:105,content:function(e){const{pathname:t="/search",input_keyword:n,t:i}=e,o=i("SEO_search_title",{searchkeywords:`'${n}'`}),a=i("SEO_search_desc",{searchkeywords:`'${n}'`});return{title:o,keywords:[n,"tiktok search",i("TikTok i18n keywords")].join(","),description:a,robotsContent:k.kl.INDEX,canonicalHref:`${k.AQ}${t}?q=${n}`,applicableDevice:"pc, mobile"}}}];var B=n(22128),U=n(93639);const F=[{processType:T.k.SERPProcessType.META_PATH,targetId:116,content:function(e){const{language:t="en",t:n}=e;return{title:n("SEO_Recharge_title"),keywords:"recharge, coins recharge, get coins, TikTok, ティックトック, tik tok, tick tock, tic tok, tic toc, tictok, тик ток, ticktock",description:n("SEO_Recharge_desc"),robotsContent:k.kl.INDEX,canonicalHref:`${k.AQ}${k.Gj}?lang=${t}`,applicableDevice:"pc, mobile"}}}],V=[{processType:T.k.SERPProcessType.META_PATH,targetId:111,content:function(e){const{language:t="en",t:n,contentInfo:i,eventName:o}=e;return{title:i?n("search_on_tiktok",{eventname:null==i?void 0:i.query,ns:"MT_Reflow"}):n("offline_title",{ns:"MT_Reflow"}),keywords:`${n("landing_page_key_word_1",{ns:"MT_Reflow"})},${null==i?void 0:i.query}`,description:i?n("outapp_copywriter",{eventname:null==i?void 0:i.query,ns:"MT_Reflow"}):n("expiration_reminder",{ns:"MT_Reflow"}),robotsContent:k.kl.INDEX,canonicalHref:`${k.TB}/${o}?lang=${t}`,applicableDevice:"pc, mobile"}}}];function z(e){return/^\/tag\/.+/.test(e)}const H=[{processType:T.k.SERPProcessType.META_PATH,targetId:104,content:function(e){const{keyword:t,t:n,detailResponse:i,pathname:o=""}=e,{word:{content:a=""}={language:void 0}}=null!=i?i:{},r=a.replace(/-/g," ");return{title:n("seo_serp_expansion_title",{expansion_keywords:r}),keywords:`${r}, ${n("TikTok i18n keywords")}`,description:`${n("seo_serp_expansion_num1",{expansion_keywords:r})}`,canonicalHref:q(t,o),robotsContent:"index, follow",applicableDevice:"pc, mobile"}}},{processType:T.k.SERPProcessType.JSONLD_PATH,targetId:104,content:function(e){var t,n;const{keyword:i="",seoProps:{itemList:o,abtest:a}={},pathname:r=""}=e,s=z(r)?`${k.sF}/${i}`:`${k._0}/${i}`,l=z(r)?k.sF:k._0,c=null!==(n=null===(t=null==a?void 0:a.parameters.kep_collection_page_modified_date)||void 0===t?void 0:t.vid)&&void 0!==n?n:"v0",d=z(r)?"Challenge":k.W4,u=(0,A.tl)(c,q(i,r)),p=(0,A.SH)([{url:S.C,name:k.e4},{url:l,name:d},{url:s,name:i}]);return[[x.Y.JsonldType.Page,u],[x.Y.JsonldType.BreadcrumbList,p],[x.Y.JsonldType.ItemList,null!=o?o:{}]]}}];function q(e,t){return/^\/tag\/.+/.test(t)?`${k.sF}/${e}`:`${k._0}/${e}`}const W=[{processType:T.k.SERPProcessType.META_PATH,targetId:14,content:function(e){var t;const{language:n="en",t:i,user:o}=e,a=null!==(t=null==o?void 0:o.uniqueId)&&void 0!==t?t:"",r=[null==o?void 0:o.nickName,`@${a}`,"live","live room","tiktok search",i("TikTok i18n keywords")].join(", ");return{title:i("SEO_live_title",{username:a}),keywords:r,description:i("SEO_live_title",{username:a}),robotsContent:k.kl.INDEX,canonicalHref:`${k.AQ}${k.yI}?lang=${n}`,applicableDevice:"pc, mobile"}}}],$=[{processType:T.k.SERPProcessType.META_PATH,targetId:15,content:function(e){const{t}=e;return{title:t("SEO_live_discover_title"),keywords:"live, live stream, TikTok, ティックトック, tik tok, tick tock, tic tok, tic toc, tictok, тик ток, ticktock",description:t("SEO_live_discover_desc"),robotsContent:k.kl.INDEX,canonicalHref:`${k.AQ}${k.Zt}`,applicableDevice:"pc, mobile"}}}],G=[{processType:T.k.SERPProcessType.META_PATH,targetId:12,content:function(e){var t,n,i,o;const{t:a,userInfo:r,LiveRoomInfo:s,event:l}=e,c=null!==(t=null==s?void 0:s.title)&&void 0!==t?t:"",d=null==s?void 0:s.status,u=null!==(i=null===(n=null==r?void 0:r.user)||void 0===n?void 0:n.uniqueId)&&void 0!==i?i:"",p=null===(o=null==r?void 0:r.user)||void 0===o?void 0:o.nickname,v=`${p} (@${u})`,g=[p,`@${u}`,"live","live room","tiktok search",a("TikTok i18n keywords")].join(", "),m=(0,N.G2)({uniqueId:u}),h=`${S.C}${m}`,_=a("SEO_live_title",{username:v});let f=`${c?`${c}. `:""}${a("SEO_live_desc",{username:v})}`;return!(2===d)&&l&&(f=`${a("SEO_live_desc2",{event_name:null==l?void 0:l.title,username:v})}`),{title:_,keywords:g,description:f,robotsContent:k.kl.INDEX,canonicalHref:h,applicableDevice:"pc, mobile"}}},{processType:T.k.SERPProcessType.JSONLD_PATH,targetId:12,content:function(e){var t,n,i,o;const{t:a,userInfo:r,seoProps:s,event:l}=e,{videoObject:c}=null!=s?s:{},d=null!==(n=null===(t=null==r?void 0:r.user)||void 0===t?void 0:t.uniqueId)&&void 0!==n?n:"",u=null!==(o=null===(i=null==r?void 0:r.user)||void 0===i?void 0:i.nickname)&&void 0!==o?o:"",p=(0,N.G2)({uniqueId:d}),v=`${S.C}${p}`,g=(0,N.fJ)({uniqueId:d}),m=`${S.C}${g}`,h=(0,N.$2)(d)?`${u} (@${d})`:`${u}`,_=l?{"@type":"Event",name:l.title,url:v,description:l.description,startDate:new Date(1e3*Number(l.startTime)).toISOString(),endDate:new Date(1e3*(Number(l.startTime)+Number(l.duration))).toISOString(),eventStatus:"http://schema.org/EventScheduled",eventAttendanceMode:"http://schema.org/OnlineEventAttendanceMode",location:{"@type":"VirtualLocation",url:v},Organizer:{"@type":"Organization",name:u,alternateName:d,url:m}}:null,f=(0,A.SH)([{url:S.C,name:k.e4},{url:m,name:h},{url:v,name:"LIVE"}]),y=[];return _&&y.push(["Event",_]),y.push(["BreadcrumbList",f]),c&&y.push(["VideoObject",null!=c?c:{}]),y}}],Y=[{processType:T.k.SERPProcessType.META_PATH,targetId:17,content:function(e){const{mc_info:t,status_code:n,t:i}=e,{id_str:o="",name:a=""}=null!=t?t:{},r=0===n&&""!==a;let s=i("playlist_sharing_metatitle",{playlist_name:a});const l=[a,i("TikTok i18n keywords")].join(",");let c=i("playlist_sharing_metadescription",{playlist_name:a});return r||(s="",c=""),{title:s,keywords:l,description:c,canonicalHref:`${k.AQ}/playlist-music/${a}-${o}`,robotsContent:r?k.kl.INDEX:k.kl.NO_INDEX,applicableDevice:"pc, mobile"}}}],{JsonldType:Z}=x.Y,K=new Map([["animals",{titleI18NKey:"SEO_foryou_animals_title",descriptionI18NKey:"SEO_foryou_animals_desc"}],["beauty",{titleI18NKey:"SEO_foryou_beauty_title",descriptionI18NKey:"SEO_foryou_beauty_desc"}],["comedy",{titleI18NKey:"SEO_foryou_comedy_title",descriptionI18NKey:"SEO_foryou_comedy_desc"}],["dance",{titleI18NKey:"SEO_foryou_dance_title",descriptionI18NKey:"SEO_foryou_dance_desc"}],["food",{titleI18NKey:"SEO_foryou_food_title",descriptionI18NKey:"SEO_foryou_food_desc"}],["gaming",{titleI18NKey:"SEO_foryou_gaming_title",descriptionI18NKey:"SEO_foryou_gaming_desc"}],["sports",{titleI18NKey:"SEO_foryou_sports_title",descriptionI18NKey:"SEO_foryou_sports_desc"}]]),X=[{processType:T.k.SERPProcessType.META_PATH,targetId:113,content:function(e){var t;const{language:n="en",t:i,topic:o}=e,{titleI18NKey:a="",descriptionI18NKey:r=""}=null!==(t=K.get(o))&&void 0!==t?t:{};return a&&r?{title:i(a),keywords:i("TikTok i18n keywords"),description:i(r),robotsContent:k.kl.INDEX,canonicalHref:`${k.AQ}/topics/${o}?lang=${n}`,applicableDevice:"pc, mobile"}:{}}},{processType:T.k.SERPProcessType.JSONLD_PATH,targetId:113,content:function(e){const{seoProps:{itemList:t}={}}=e;return[[Z.ItemList,null!=t?t:{}]]}}],Q=[{processType:T.k.SERPProcessType.META_PATH,targetId:114,content:function(e){const{t,eventTitle:n="",eventId:i="",subscriberCount:o=""}=e;return{title:t("share_live_event_title",{"Event Topic":n}).replace("{Event Topic}",n),keywords:"live, live event, TikTok, ティックトック, tik tok, tick tock, tic tok, tic toc, tictok, тик ток, ticktock",description:t("share_live_event_desc",{number:o}),robotsContent:k.kl.INDEX,canonicalHref:`${k.AQ}${k.wk}/${i}`,applicableDevice:"pc, mobile"}}}];var J=n(82715),ee=n(77229);const te=[{processType:T.k.SERPProcessType.META_PATH,targetId:119,content:function(e){var t,n;const{t:i,mixInfo:o,statusCode:a}=e,r=0===a,s=`@${null===(t=null==o?void 0:o.creator)||void 0===t?void 0:t.uniqueId}`,l=null!==(n=null==o?void 0:o.name)&&void 0!==n?n:"Untitled playlist";return{title:i("playlist_share_title",{Playlist_name:l,username:s},`Playlist ${l} created by ${s}`),description:i("playlist_share_desc",{},"Enjoy a curated video list and find more videos on TikTok!"),canonicalHref:r?`${S.C}/${s}/playlist/${null==o?void 0:o.name}-${null==o?void 0:o.id}`:S.C,robotsContent:r?k.kl.INDEX:k.kl.NO_INDEX,applicableDevice:"mobile"}}},{processType:T.k.SERPProcessType.JSONLD_PATH,targetId:119,content:function(e){var t,n,i,o,a,r,s;const{seoProps:{itemList:l}={},mixInfo:c,t:d}=e;if(!(null==c?void 0:c.id))return[];const u=`${S.C}${J.$T.videoPlaylist({uniqueId:null!==(n=null===(t=c.creator)||void 0===t?void 0:t.uniqueId)&&void 0!==n?n:"",content:null!==(i=c.name)&&void 0!==i?i:"",id:c.id})}`,p=`${S.C}${J.$T.user({uniqueId:null!==(a=null===(o=c.creator)||void 0===o?void 0:o.uniqueId)&&void 0!==a?a:""})}`,{creator:v}=c,g=(null==v?void 0:v.uniqueId)?`${null==v?void 0:v.nickname} (@${null==v?void 0:v.uniqueId})`:`${null==v?void 0:v.nickname}`,m=d((null===(r=c.creator)||void 0===r?void 0:r.verified)?"user_SEO_official_title1":"user_SEO_title1",{username:g}),h={"@type":"ItemPage","@id":u};return[[x.Y.JsonldType.Page,h],[x.Y.JsonldType.ItemList,null!=l?l:{}],[ee.e.type,new ee.e([{url:S.C,name:k.e4},{url:p,name:m},{url:u,name:null!==(s=c.name)&&void 0!==s?s:"playlist"}])]]}}],ne=[{processType:T.k.SERPProcessType.META_PATH,targetId:6,content:function(e){var t,n,i,o;const{stickerInfo:{sticker:a}={},t:r}=e;return a?{title:r("share_effect_title",{sticker_name:a.name}),description:r("share_sticker_desc",{sticker_desc:a.desc,number:(0,M.D1)(null!==(n=null===(t=a.stickerStats)||void 0===t?void 0:t.useCount)&&void 0!==n?n:0),num:null!==(o=null===(i=a.stickerStats)||void 0===i?void 0:i.useCount)&&void 0!==o?o:0}),robotsContent:k.kl.INDEX,canonicalHref:`${S.C}/sticker/${a.name}-${a.id}`,applicableDevice:"mobile"}:{title:r("share_sticker_preset"),description:"",robotsContent:k.kl.NO_INDEX,applicableDevice:"mobile"}}}];var ie=n(66806),oe=n(566);function ae(e,t,n){return`/${n?"place":"travel"}/${t.replace(/\s/g,"-")}-${e}`}const re=[{processType:T.k.SERPProcessType.META_PATH,targetId:18,content:function(e){var t;const{poiInfo:n,statusCode:i,t:o,isUs:a,isRegion:r,relatedWordList:s,isPlacePath:l}=e,{poi:{id:c="",name:d="",indexEnabled:u=!1}={}}=null!=n?n:{},{videoCount:p}=null!==(t=null==n?void 0:n.stats)&&void 0!==t?t:{},v=ae(c,d,l),g=`${k.AQ}${v}`,m=u?k.kl.INDEX:k.kl.NO_INDEX;if(a&&(null==n?void 0:n.poi.allLevelGeoPoiInfo)){const e=n.poi.allLevelGeoPoiInfo,t=function(e){var t,n;return(null===(t=e.L1GeoPoiInfo)||void 0===t?void 0:t.PoiName)?e.L1GeoPoiInfo.PoiName:(null===(n=e.L0PoiGeoInfo)||void 0===n?void 0:n.PoiName)?e.L0PoiGeoInfo.PoiName:""}(e),i=function(e){var t;const n=Object.keys(e);return n.length&&(null===(t=e[n[n.length-1]])||void 0===t?void 0:t.PoiName)||""}(e),a=s?(0,oe.o8)(s).splice(0,20).join(","):"",l=o("basicPoi_metaTdk_title",{poiName:d}),c=r?o("basicPoi_metaTdk_regional_desc",{videoCount:p,regionalPoiName:d}):o("basicPoi_metaTdk_store_desc",{poiName:d,l1PoiName:t,videoCount:p});return{title:l,keywords:r?o("basicPoi_metaTdk_keyword",{poiName:d,relatedKeyword:a}):o("basicPoi_metaTdk_storeSite",{poiName:d,currentRegionalPoiName:i,currentL1RegionalPoiName:t,ttTypeNameMedium:n.poi.ttTypeNameMedium,ttTypeNameSuper:n.poi.ttTypeNameSuper,ttTypeNameTiny:n.poi.ttTypeNameTiny}),description:c,canonicalHref:g,robotsContent:m,applicableDevice:"pc"}}let h=`${d} | ${o("poidetails_tiktokplaces")}`,_=`${(0,M.D1)(p)} ${o("videos_")}. ${o("poidetails_location_name_placehldtwo").replace("{ }",d)}`;switch(i){case ie.kd:case ie.oe:h=o("poisuggest_placeuna_title_1"),_="";break;case ie.k2:h=o("err_feature_unavailable"),_=""}return{title:h,keywords:"",description:_,canonicalHref:g,robotsContent:m,applicableDevice:"pc"}}},{processType:T.k.SERPProcessType.JSONLD_PATH,targetId:18,content:function(e){var t;const{poiInfo:n,seoProps:i,t:o,isUs:a,isPlacePath:r=!1,noStructureData:s}=e,{itemList:l,metaParams:c,videoObject:d}=null!=i?i:{};if(!(null==n?void 0:n.poi)||s)return[];const{name:u="",id:p="",allLevelGeoPoiInfo:v}=null!==(t=n.poi)&&void 0!==t?t:{},{title:g}=null!=c?c:{},m=ae(p,u,r),h=`${S.C}${m}`,_=null!=g?g:`${u} | TikTok`,f={"@type":"CollectionPage","@id":h},y=(0,A.SH)([{url:S.C,name:k.e4},...a?(0,oe.Pi)(v):[],{url:h,name:_}]);return[[x.Y.JsonldType.Page,f],[x.Y.JsonldType.ItemList,null!=l?l:{}],[x.Y.JsonldType.BreadcrumbList,y],[x.Y.JsonldType.VideoObject,null!=d?d:{}]]}}];var se=n(38053);const le=[{processType:T.k.SERPProcessType.META_PATH,targetId:130,content:function(e){const{t}=e;return{title:t("pm_mt_ls_download_button"),description:t("SEO TikTok Description"),robotsContent:k.kl.INDEX,canonicalHref:`${k.AQ}${k.z6}`,applicableDevice:"pc, mobile"}}}],ce=[{processType:T.k.SERPProcessType.META_PATH,targetId:131,content:function(e){const{t}=e;return{title:t("pm_mt_ls_download_button"),description:t("SEO TikTok Description"),robotsContent:k.kl.INDEX,canonicalHref:`${k.AQ}${k.dW}`,applicableDevice:"pc, mobile"}}}];var de=n(7971);const ue=[{processType:T.k.SERPProcessType.META_PATH,targetId:132,content:function(e){var t,n;const{relatedKeywordsResponse:i,detailResponse:o,t:a,region:r,language:s}=e,l="US"===r,c=l&&"en"===s,{formattedWord:d="",uniqueWord:u=""}=null!==(t=null==o?void 0:o.wordDetail)&&void 0!==t?t:{};if(!u)return{robotsContent:"noindex, nofollow"};const p=(null!==(n=null==i?void 0:i.relatedKeywords)&&void 0!==n?n:[]).map((e=>e.formattedWord)),v=function(e,t=!1){return t?`Selected ${(0,de.zh)(e)} | TikTok Shop`:`${(0,de.zh)(e)} | TikTok`}(d,c),g=function(e,t,n,i=!1){const o={s_keywords:(0,de.zh)(t)};return pe(n).forEach(((e,t)=>{o[`s_relatedSearch${t+1}`]=e})),i?`Searching for ${(0,de.zh)(t)}? Find selected ${(0,de.zh)(t)} collection on TikTok Shop with best price.`:e("seo_kep_discoverProductsRelated",o)}(a,d,p,c);return{title:v,keywords:function(e,t,n=!1){return n?`${(0,de.zh)(e)}, Tiktok Shop`:`${(0,de.zh)(e)}, ${pe(t).join(", ")}`}(d,p,l),description:g,canonicalHref:`${k.IQ}/${u}`,robotsContent:"index, follow",applicableDevice:"pc, mobile"}}},{processType:T.k.SERPProcessType.JSONLD_PATH,targetId:132,content:function(e){var t,n,i;const{detailResponse:o,seoProps:{itemList:a,abtest:r}={}}=e,{uniqueWord:s=""}=null!==(t=null==o?void 0:o.wordDetail)&&void 0!==t?t:{},l=null!==(i=null===(n=null==r?void 0:r.parameters.kep_collection_page_modified_date)||void 0===n?void 0:n.vid)&&void 0!==i?i:"v0",c=(0,A.tl)(l,`${k.IQ}/${s}`);return[[x.Y.JsonldType.Page,c],[x.Y.JsonldType.ItemList,null!=a?a:{}]]}}],pe=(e,t=6)=>e.slice(0,t).map((e=>(0,de.zh)(e))),ve=[...b.Dj,...w.F,...O,...E,...P.c,...I.I,...C.H,...j.X,...D,...R,...B.f,...U.z,...F,...V,...H,...W,...$,...G,...Y,...X,...Q,...te,...ne,...re,...oe.Nr,...se.g,...le,...ce,...ue];var ge=n(64356),me=n(99101),he=n(19331),_e=n(50789);const fe=[...ve];let ye=class extends y.E{constructor(e,t,n,i){super(),this.stateModule=e,this.service=t,this.sharingMeta=n,this.t=i,this.defaultState={}}updateSEOState(e){const{metaParams:t={},jsonldList:n=[],disableAlternateLink:i=!1,generateAlternateWithCanonical:o}=e;this.stateModule.updateAtom({metaParams:t,jsonldList:n,disableAlternateLink:i,generateAlternateWithCanonical:o})}setPCMusicSEOProps(e){return e.pipe((0,p.Z)((({response:e,language:t,appType:n})=>this.setMusicSEOProps(e,{language:t},n).pipe((0,s.q)(this.terminate("setPCMusicSEOProps"))))))}setFeedSEOProps(e){return e.pipe((0,v.p)((e=>{const{pageType:t,topic:n,topicType:i,language:o}=e,a={seoProps:{pageId:"",pageType:t},topic:n,topicType:i,language:o};return this.service.fetchSEOProps(a,fe).pipe((0,l.M)((e=>this.updateSEOState(e))),(0,p.Z)((()=>(0,c.of)(this.terminate()))),(0,g.W)((e=>(0,c.of)(this.noop(),this.terminate()))))})))}setGoLiveSEOProps(e){return e.pipe((0,v.p)((({language:e,user:t})=>{const n={seoProps:{pageId:"",pageType:14},user:t,language:e,t:this.t};return this.service.fetchSEOProps(n,fe).pipe((0,l.M)((e=>this.updateSEOState(e))),(0,p.Z)((()=>(0,c.of)(this.terminate()))),(0,g.W)((()=>(0,c.of)(this.noop()))))})))}setHomeSEOProps(e){return this.service.fetchSEOProps({seoProps:{pageId:"",pageType:101},language:e},fe).pipe((0,l.M)((e=>this.updateSEOState(e))),(0,p.Z)((()=>(0,d.h)((0,c.of)(this.sharingMeta.setSharingMetaState({"og:image":S.U}))))))}setForyouSEOProps(e,t){if(-1===e.statusCode)return(0,c.of)(this.noop());const n=Object.assign(Object.assign(Object.assign({},e),t),{seoProps:{pageType:5},t:this.t});return this.service.fetchSEOProps(n,fe).pipe((0,l.M)((e=>this.updateSEOState(e))),(0,m.T)((()=>this.noop())))}setVideoSEOProps(e,t,n,i,o){var a,r,s,u,v,g,m,y;if(-1===e.statusCode)return(0,c.of)(this.noop());const b=null!==(s=null===(r=null===(a=null==e?void 0:e.itemInfo)||void 0===a?void 0:a.itemStruct)||void 0===r?void 0:r.id)&&void 0!==s?s:"",w=null!==(y=null===(m=null===(g=null===(v=null===(u=null==e?void 0:e.itemInfo)||void 0===u?void 0:u.itemStruct)||void 0===v?void 0:v.author)||void 0===g?void 0:g.bioLink)||void 0===m?void 0:m.link)&&void 0!==y?y:"";return(0,c.of)(e).pipe((0,h.E)(this.stateModule.state$.pipe((0,_.p)((e=>void 0!==e.abtest)))),(0,p.Z)((([a,r])=>{const s=Object.assign(Object.assign(Object.assign({},e),t),{transcriptContent:o,bioLink:w,seoProps:{pageId:b,pageType:0,abtest:r.abtest},t:this.t});return this.service.fetchSEOProps(s,fe).pipe((0,l.M)((e=>this.updateSEOState(e))),(0,f.n)((t=>(0,d.h)(this.sharingMeta.setVideoSharingMeta(t,e,n,i)))))})))}setCollectionSEOProps(e,t,n,i,o){var a,r,s;const u=Object.assign(Object.assign(Object.assign({},e),t),{seoProps:{pageId:null!==(s=null===(r=null===(a=e.collectionInfo)||void 0===a?void 0:a.collectionId)||void 0===r?void 0:r.toString())&&void 0!==s?s:"",pageType:121},t:this.t,items:o});return this.service.fetchSEOProps(u,fe).pipe((0,l.M)((e=>this.updateSEOState(e))),(0,f.n)((()=>{var t,o,a;return(0,d.h)(i?(0,c.of)(this.noop()):this.sharingMeta.setCollectionSharingMeta(e,n,null!==(a=null===(o=null===(t=null==e?void 0:e.collectionInfo)||void 0===t?void 0:t.collectionId)||void 0===o?void 0:o.toString())&&void 0!==a?a:""))})))}setSearchSharingSEOProps(e,t,n,i){if(-1===e.statusCode)return(0,c.of)(this.noop());const o=Object.assign(Object.assign(Object.assign({},e),t),{seoProps:{pageType:111},eventName:n,t:this.t});return this.service.fetchSEOProps(o,fe).pipe((0,l.M)((e=>this.updateSEOState(e))),(0,p.Z)((t=>(0,d.h)(this.sharingMeta.setSearchSharingMeta(t,e,n,i)))))}setQuestionSEOProps(e,t,n,i,o,a){var r;if(-1===e.statusCode)return(0,c.of)(this.noop());const s=Object.assign(Object.assign(Object.assign({},e),t),{seoProps:{pageId:null===(r=e.questionInfo)||void 0===r?void 0:r.id,pageType:16},answers:n,t:this.t,items:a});return this.service.fetchSEOProps(s,fe).pipe((0,l.M)((e=>this.updateSEOState(e))),(0,p.Z)((()=>(0,c.of)(this.sharingMeta.setQuestionSharingMeta(e,n[0],i,o)))))}setVideoPlaylistSEOProps(e,t,n,i){var o;if(-1===e.statusCode)return(0,c.of)(this.noop());const a=Object.assign(Object.assign(Object.assign({},e),n),{itemList:t,seoProps:{pageId:null===(o=e.mixInfo)||void 0===o?void 0:o.id,pageType:119},t:this.t});return this.service.fetchSEOProps(a,fe).pipe((0,l.M)((e=>this.updateSEOState(e))),(0,p.Z)((()=>(0,c.of)(this.sharingMeta.setVideoPlaylistSharingMeta(e,t,i)))))}setUserSEOProps(e,t,n,i){const{userInfo:o,statusCode:a}=e;return-1===a?(0,c.of)(this.noop()):(0,c.of)(e).pipe((0,h.E)(this.stateModule.state$),(0,p.Z)((([a,r])=>{var s,c;const u=Object.assign(Object.assign(Object.assign({},e),t),{seoProps:{pageId:null!==(c=null===(s=null==o?void 0:o.user)||void 0===s?void 0:s.id)&&void 0!==c?c:"",pageType:1,abtest:r.abtest},t:this.t,items:i});return this.service.fetchSEOProps(u,fe).pipe((0,l.M)((e=>this.updateSEOState(e))),(0,f.n)((t=>(0,d.h)(this.sharingMeta.setUserSharingMeta(t,e,n)))))})))}setChallengeSEOProps(e,t,n,i,o){var a;const{statusCode:r}=e;if(-1===r)return(0,c.of)(this.noop());const s=Object.assign(Object.assign(Object.assign({},e),t),{statusCode:r,seoProps:{pageId:null===(a=e.challengeInfo)||void 0===a?void 0:a.challenge.id,pageType:3},t:this.t,items:i,relatedChallengeList:o});return this.service.fetchSEOProps(s,fe).pipe((0,l.M)((e=>this.updateSEOState(e))),(0,f.n)((t=>(0,d.h)(this.sharingMeta.setChallengeSharingMeta(t,e,n)))))}setMusicSEOProps(e,t,n,i){var o;const{statusCode:a}=e;if(-1===a)return(0,c.of)(this.noop());const r=Object.assign(Object.assign(Object.assign({},e),t),{statusCode:a,seoProps:{pageId:null===(o=e.musicInfo)||void 0===o?void 0:o.music.id,pageType:4},items:i,t:this.t});return this.service.fetchSEOProps(r,fe).pipe((0,l.M)((e=>this.updateSEOState(e))),(0,f.n)((t=>(0,d.h)(this.sharingMeta.setMusicSharingMeta(t,e,n)))))}setMusicPlaylistSEOProps(e,t,n){var i;const{status_code:o}=e;if(-1===o)return(0,c.of)(this.noop());const a=Object.assign(Object.assign(Object.assign({},e),t),{status_code:o,seoProps:{pageId:null===(i=e.mc_info)||void 0===i?void 0:i.id_str,pageType:17},t:this.t});return this.service.fetchSEOProps(a,fe).pipe((0,l.M)((e=>this.updateSEOState(e))),(0,p.Z)((t=>(0,d.h)(this.sharingMeta.setMusicPlaylistSharingMeta(t,e,n)))))}setSearchSEOProps(e,t,n){const{status_code:i}=e;if(-1===i)return(0,c.of)(this.noop());const o=Object.assign(Object.assign(Object.assign(Object.assign({},e),t),n),{seoProps:{pageId:"",pageType:105},t:this.t});return this.service.fetchSEOProps(o,fe).pipe((0,l.M)((e=>this.updateSEOState(e))),(0,m.T)((()=>this.noop())))}setLiveRoomSEOProps(e,t,n){var i;const{userInfo:o,statusCode:a}=e,r=Object.assign(Object.assign(Object.assign({},e),t),{seoProps:{pageId:null!==(i=null==o?void 0:o.user.id)&&void 0!==i?i:"",pageType:12},t:this.t});return-1===a?(0,c.of)(this.noop()):this.service.fetchSEOProps(r,fe).pipe((0,l.M)((e=>this.updateSEOState(e))),(0,p.Z)((t=>(0,d.h)(this.sharingMeta.setLiveRoomSharingMeta(t,e,n)))))}setFollowingSEOProps(e,t,n){if(-1===e.statusCode)return(0,c.of)(this.noop());const i=Object.assign(Object.assign(Object.assign({},e),t),{seoProps:{pageType:11},t:this.t});return this.service.fetchSEOProps(i,fe).pipe((0,l.M)((e=>this.updateSEOState(e))),(0,p.Z)((e=>(0,d.h)(this.sharingMeta.setFollowingSharingMeta(e,n)))))}setPoiSEOProps(e,t,n,i){var o,a;const{statusCode:r}=e;if(-1===r)return(0,c.of)(this.noop());const s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),{statusCode:r,seoProps:{pageId:null===(a=null===(o=e.poiInfo)||void 0===o?void 0:o.poi)||void 0===a?void 0:a.id,pageType:18}}),i),{t:this.t});return this.service.fetchSEOProps(s,fe).pipe((0,l.M)((e=>this.updateSEOState(e))),(0,p.Z)((t=>(0,d.h)(this.sharingMeta.setPoiSharingMeta(t,e,n)))))}setPoiCategorySEOProps(e,t,n,i){var o,a;const{statusCode:r}=e;if(-1===r)return(0,c.of)(this.noop());const s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),{statusCode:r,seoProps:{pageId:null===(a=null===(o=e.poiInfo)||void 0===o?void 0:o.poi)||void 0===a?void 0:a.id,pageType:125}}),i),{t:this.t});return this.service.fetchSEOProps(s,fe).pipe((0,l.M)((e=>this.updateSEOState(e))),(0,p.Z)((t=>(0,d.h)(this.sharingMeta.setPoiSharingMeta(t,e,n)))))}setEventDetailSEOProps(e){return e.pipe((0,v.p)((e=>{const{eventTitle:t,eventId:n,subscriberCount:i,language:o="en"}=e,a={seoProps:{pageId:"",pageType:114},t:this.t,eventTitle:t,language:o,eventId:n,subscriberCount:i};return this.service.fetchSEOProps(a,fe).pipe((0,l.M)((e=>this.updateSEOState(e))),(0,p.Z)((()=>(0,c.of)(this.terminate()))),(0,g.W)((()=>(0,c.of)(this.noop()))))})))}reportImpressionByEventbus(e){return this.service.reportImpressionByEventbus(e)}reportImpressionByRpc(e){return this.service.reportImpressionByRpc(e)}};(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[u.c]),(0,i.__metadata)("design:returntype",void 0)],ye.prototype,"setPCMusicSEOProps",null),(0,i.__decorate)([(0,o.Mj)({payloadGetter:1}),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[u.c]),(0,i.__metadata)("design:returntype",void 0)],ye.prototype,"setFeedSEOProps",null),(0,i.__decorate)([(0,o.Mj)({payloadGetter:1}),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[u.c]),(0,i.__metadata)("design:returntype",u.c)],ye.prototype,"setGoLiveSEOProps",null),(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[u.c]),(0,i.__metadata)("design:returntype",u.c)],ye.prototype,"setEventDetailSEOProps",null),ye=(0,i.__decorate)([(0,a.n)("SEO"),(0,i.__param)(3,(0,r.y)(ge.hp)),(0,i.__metadata)("design:paramtypes",[_e.p,he.F,me.e,Function])],ye)},19331:(e,t,n)=>{"use strict";n.d(t,{F:()=>h});var i=n(58632),o=n(38203),a=n(42051),r=n(57432),s=n.n(r),l=n(23999),c=n(66322),d=n(15203),u=n(91498),p=n(88874),v=n(65450),g=n(39228),m=n(64356);let h=class{constructor(e,t){this.t=e,this.fetch=t}fetchSEOProps(e,t){var n,i,o,a;e.t=this.t;const r=null!==(i=null===(n=(0,c.y)(e,t).seoProps)||void 0===n?void 0:n.metaParams)&&void 0!==i?i:{},s=null!==(a=null===(o=(0,c.d)(e,t).seoProps)||void 0===o?void 0:o.jsonldList)&&void 0!==a?a:[],d=Object.assign(Object.assign({},e.seoProps),{metaParams:r,jsonldList:s});return(0,l.of)(d)}getUA(){return window.navigator.userAgent}getTrafficType(){return(0,d.q)()}getLaunchMode(){return(0,u.o7)()}fetchABTest(e){const t=(0,p.YI)(v.X);return t?(0,l.of)(t):(0,l.of)({pageId:"-1",vidList:[],parameters:{}})}reportImpressionByEventbus(e){}reportImpressionByRpc(e){this.fetch.post("/api/discover/client_impression/",{body:JSON.stringify({timestamp:e.Timestamp,visitPageUrl:e.VisitPageUrl,urls:e.Urls,module:e.Module,trafficType:e.TrafficType}),headers:{"content-type":"application/json"},baseUrlType:2}).subscribe(s())}};h=(0,i.__decorate)([(0,o._)(),(0,i.__param)(0,(0,a.y)(m.hp)),(0,i.__metadata)("design:paramtypes",[Function,g.pM])],h)},50789:(e,t,n)=>{"use strict";n.d(t,{p:()=>f});var i=n(58632),o=n(64162),a=n(4126),r=n(93995),s=n(42051),l=n(46657),c=n(23999),d=n(26324),u=n(72916),p=n(74690),v=n(80339),g=n(9472),m=n(17995),h=n(19331);const _=(e="")=>{try{return decodeURI(e)}catch(t){return e}};let f=class extends o.E{constructor(e,t){super(),this.service=e,this.jotaiStore=t,this.defaultState={abtest:void 0,loading:!1,canonical:void 0,pageType:999}}updateAtom(e){this.jotaiStore.set(g.b,e)}setSEOState(e,t){return Object.assign(Object.assign({},e),{metaParams:t.metaParams,jsonldList:t.jsonldList})}setAbTest(e,t){return Object.assign(Object.assign({},e),{abtest:t})}setLoading(e,t){return Object.assign(Object.assign({},e),{loading:t})}setCanonical(e,t){return Object.assign(Object.assign({},e),{canonical:t})}setRouterLoading(e,t){return Object.assign(Object.assign({},e),{routerLoading:t})}fetchAbTest(e){return e.pipe((0,u.n)((e=>_(e)===_(this.state.canonical)?l.w:this.service.fetchABTest(e).pipe((0,u.n)((t=>(0,c.of)(this.getActions().setAbTest(t),this.getActions().setCanonical(e),this.terminate()))),(0,p.Z)(this.getActions().setLoading(!0)),(0,v.q)(this.getActions().setLoading(!1))))))}};(0,i.__decorate)([(0,a.HI)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",Object)],f.prototype,"setSEOState",null),(0,i.__decorate)([(0,a.HI)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",Object)],f.prototype,"setAbTest",null),(0,i.__decorate)([(0,a.HI)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Boolean]),(0,i.__metadata)("design:returntype",Object)],f.prototype,"setLoading",null),(0,i.__decorate)([(0,a.HI)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,String]),(0,i.__metadata)("design:returntype",Object)],f.prototype,"setCanonical",null),(0,i.__decorate)([(0,a.HI)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Boolean]),(0,i.__metadata)("design:returntype",Object)],f.prototype,"setRouterLoading",null),(0,i.__decorate)([(0,a.Mj)({payloadGetter:1}),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[d.c]),(0,i.__metadata)("design:returntype",void 0)],f.prototype,"fetchAbTest",null),f=(0,i.__decorate)([(0,r.n)("SEOState"),(0,i.__param)(1,(0,s.y)(m.J7)),(0,i.__metadata)("design:paramtypes",[h.F,Object])],f)},99101:(e,t,n)=>{"use strict";n.d(t,{e:()=>h});var i=n(58632),o=n(4126),a=n(93995),r=n(53966),s=n(42051),l=n(8536),c=n(23999),d=n(80339),u=n(26324),p=n(64356),v=n(27375),g=n(64810),m=n(9078);let h=class extends r.E{constructor(e,t){super(),this.t=e,this.stateModule=t,this.defaultState={}}setSharingMetaStateEffect(e){return e.pipe((0,l.Z)((e=>(0,c.of)(this.setSharingMetaState(e)).pipe((0,d.q)(this.terminate("setSharingMetaStateEffect"))))))}setSharingMetaState(e){return this.stateModule.getActions().setSharingMetaState(e)}setVideoSharingMetaEffect(e){return e.pipe((0,l.Z)((({seoProps:e,response:t,appType:n,query:i})=>this.setVideoSharingMeta(e,t,n,i).pipe((0,d.q)(this.terminate("setVideoSharingMetaEffect"))))))}setVideoSharingMeta(e,t,n,i){var o,a,r,s,l,d,u,p,v,g,h,_,f,y,b,w,x,T,S,k;const A=null===(o=t.itemInfo)||void 0===o?void 0:o.itemStruct,O=null==A?void 0:A.video,E=null==A?void 0:A.imagePost,{protocal:P}=(0,m.QJ)(n),I=`${P}${Boolean(null==A?void 0:A.story)?"story/detail":"aweme/detail"}/${null===(a=t.itemInfo)||void 0===a?void 0:a.itemStruct.id}?${i}`,C=(0,m.r1)({schema:I,metaParams:e.metaParams,pageType:0,shareMeta:null==t?void 0:t.shareMeta,response:t,appType:n}),j=(null===(r=null==O?void 0:O.shareCover)||void 0===r?void 0:r[0])||(null!==(p=E?null===(d=null===(l=null===(s=E.shareCover)||void 0===s?void 0:s.imageURL)||void 0===l?void 0:l.urlList)||void 0===d?void 0:d[0]:null===(u=null==O?void 0:O.shareCover)||void 0===u?void 0:u[1])&&void 0!==p?p:""),L=null!==(h=null!==(g=String(null===(v=null==E?void 0:E.shareCover)||void 0===v?void 0:v.imageWidth))&&void 0!==g?g:null==O?void 0:O.width)&&void 0!==h?h:"",M=null!==(y=null!==(f=String(null===(_=null==E?void 0:E.shareCover)||void 0===_?void 0:_.imageHeight))&&void 0!==f?f:null==O?void 0:O.height)&&void 0!==y?y:"",N=Object.assign(Object.assign({},C),{"og:image":j,"twitter:image":j,"og:image:width":L,"og:image:height":M}),D=null===(T=null===(x=null===(w=null===(b=e.jsonldList)||void 0===b?void 0:b.find((e=>"VideoObject"===e[0])))||void 0===w?void 0:w[1])||void 0===x?void 0:x.thumbnailUrl)||void 0===T?void 0:T[0];return Boolean(D)&&Object.assign(N,{"og:image":D,"og:image:width":String(null!==(S=null==O?void 0:O.width)&&void 0!==S?S:""),"og:image:height":String(null!==(k=null==O?void 0:O.height)&&void 0!==k?k:"")}),(0,c.of)(this.stateModule.getActions().setSharingMetaState(N))}setUserSharingMetaEffect(e){return e.pipe((0,l.Z)((({seoProps:e,response:t,appType:n})=>this.setUserSharingMeta(e,t,n).pipe((0,d.q)(this.terminate("setUserSharingMetaEffect"))))))}setUserSharingMeta(e,t,n){var i,o,a,r;const{protocal:s}=(0,m.QJ)(n),l=(0,m.r1)({response:t,pageType:1,schema:`${s}user/profile/`,metaParams:e.metaParams,appType:n}),d=null===(i=t.userInfo)||void 0===i?void 0:i.user,u=null!==(a=null!==(o=null==d?void 0:d.avatarMedium)&&void 0!==o?o:null==d?void 0:d.avatarThumb)&&void 0!==a?a:m.Zw,p=Object.assign(Object.assign({},l),{"og:image":u,"twitter:image":u,"og:image:width":"360","og:image:height":"360","og:image:alt":null===(r=e.metaParams)||void 0===r?void 0:r.title});return(0,c.of)(this.stateModule.getActions().setSharingMetaState(p))}setMusicSharingMetaEffect(e){return e.pipe((0,l.Z)((({seoProps:e,response:t,appType:n})=>this.setMusicSharingMeta(e,t,n).pipe((0,d.q)(this.terminate("setMusicSharingMetaEffect"))))))}setMusicSharingMeta(e,t,n){var i,o,a,r,s,l;const d=null===(i=t.musicInfo)||void 0===i?void 0:i.music,{protocal:u}=(0,m.QJ)(n),p=(0,m.r1)({response:t,pageType:4,schema:`${u}user/profile/${null==d?void 0:d.id}`,metaParams:e.metaParams,appType:n}),v=null!==(a=null!==(o=null==d?void 0:d.coverMedium)&&void 0!==o?o:null==d?void 0:d.coverThumb)&&void 0!==a?a:"https://lf16-tiktok-web.ttwstatic.com/obj/tiktok-web-common-sg/mtact/static/images/music-default.png",g=null!==(r=null==d?void 0:d.title)&&void 0!==r?r:"",h=null!==(s=null==d?void 0:d.authorName)&&void 0!==s?s:"",_=Object.assign(Object.assign({},p),{"og:image":v,"twitter:image":v,"og:image:width":"720","og:image:height":"720","og:image:alt":null===(l=e.metaParams)||void 0===l?void 0:l.title,"music:duration":"0","music:album:track":g,"music:musician":h});return(0,c.of)(this.stateModule.getActions().setSharingMetaState(_))}setMusicPlaylistSharingMeta(e,t,n){var i,o,a,r;const s=t.mc_info,{protocal:l}=(0,m.QJ)(n),d=(0,m.r1)({schema:`${l}assmusic/category/${null==s?void 0:s.id_str}?name=${encodeURIComponent(null!==(i=null==s?void 0:s.name)&&void 0!==i?i:"")}&previous_page=reflow_playlist&enter_method=reflow_return`,metaParams:Object.assign(Object.assign({},e.metaParams),{title:null===(o=null==s?void 0:s.share_info)||void 0===o?void 0:o.share_title,description:null===(a=null==s?void 0:s.share_info)||void 0===a?void 0:a.share_desc}),appType:n}),u=(null==s?void 0:s.share_cover)?(0,v.BO)(null==s?void 0:s.share_cover):"https://p19-aop-sg.tiktokcdn.com/tos-alisg-i-yzb763657w-sg/d2f2b037e19646ad5f2bbd779a550302.png~tplv-yzb763657w-resize:800:800.jpeg",p=Object.assign(Object.assign({},d),{"og:image":u,"twitter:image":u,"og:image:width":"720","og:image:height":"720","og:image:alt":null===(r=e.metaParams)||void 0===r?void 0:r.title});return(0,c.of)(this.stateModule.getActions().setSharingMetaState(p))}setStickerSharingMeta(e,t,n){var i,o,a,r;const{protocal:s}=(0,m.QJ)(n),l=null===(i=t.stickerInfo)||void 0===i?void 0:i.sticker,d=(0,m.r1)({pageType:3,response:t,schema:`${s}sticker/detail/${null==l?void 0:l.id}`,metaParams:e.metaParams,appType:n}),u=null===(a=null===(o=null==l?void 0:l.coverUrls)||void 0===o?void 0:o.urlList)||void 0===a?void 0:a[0],p=Object.assign(Object.assign({},d),{"og:image":u,"twitter:image":u,"og:image:width":"720","og:image:height":"720","og:image:alt":null===(r=e.metaParams)||void 0===r?void 0:r.title});return(0,c.of)(this.stateModule.getActions().setSharingMetaState(p))}setChallengeSharingMetaEffect(e){return e.pipe((0,l.Z)((({seoProps:e,response:t,appType:n})=>this.setChallengeSharingMeta(e,t,n).pipe((0,d.q)(this.terminate("setChallengeSharingMetaEffect"))))))}setChallengeSharingMeta(e,t,n){var i,o,a,r;const{protocal:s}=(0,m.QJ)(n),l=null===(i=t.challengeInfo)||void 0===i?void 0:i.challenge,d=(0,m.r1)({pageType:3,response:t,schema:`${s}challenge/detail/${null==l?void 0:l.id}`,metaParams:e.metaParams,appType:n}),u=null!==(a=null!==(o=null==l?void 0:l.profileMedium)&&void 0!==o?o:null==l?void 0:l.profileThumb)&&void 0!==a?a:"https://lf16-tiktok-web.ttwstatic.com/obj/ttfe-malisg/tiktok_web/amp/m-hashtag-default.png",p=Object.assign(Object.assign({},d),{"og:image":u,"twitter:image":u,"og:image:width":"720","og:image:height":"720","og:image:alt":null===(r=e.metaParams)||void 0===r?void 0:r.title});return(0,c.of)(this.stateModule.getActions().setSharingMetaState(p))}setCollectionSharingMeta(e,t,n){var i,o,a,r,s,l,d;const{protocal:u}=(0,m.QJ)(t),p=e.shareMeta,v=(0,m.r1)({pageType:121,response:e,schema:`${u}collection/detail?collection_id=${n}&page_name=reflow_collection`,metaParams:{title:null!==(i=null==p?void 0:p.title)&&void 0!==i?i:this.t("TikTok | Make Your Day",{},"TikTok | Make Your Day"),description:null!==(o=null==p?void 0:p.desc)&&void 0!==o?o:this.t("SEO_homepage_desc",{},"TikTok - trends start here. On a device or on the web, viewers can watch and discover millions of personalized short videos. Download the app to get started.")},appType:t}),g=null!==(l=null===(s=null===(r=null===(a=null==e?void 0:e.collectionInfo)||void 0===a?void 0:a.cover)||void 0===r?void 0:r.urlList)||void 0===s?void 0:s[0])&&void 0!==l?l:"https://sf-static.tiktokcdn.com/obj/tiktok-web-common-sg/mtact/static/images/tiktok-logo/poster-square.png",h=Object.assign(Object.assign({},v),{"og:image":g,"twitter:image":g,"og:image:width":"720","og:image:height":"720","og:image:alt":null===(d=e.shareMeta)||void 0===d?void 0:d.title});return(0,c.of)(this.stateModule.getActions().setSharingMetaState(h))}setSearchSharingMeta(e,t,n,i){var o,a,r,s;const{protocal:l}=(0,m.QJ)(i),d=(0,m.r1)({schema:`${l}search?keyword=${null!==(a=null===(o=null==t?void 0:t.contentInfo)||void 0===o?void 0:o.query)&&void 0!==a?a:n}`,metaParams:e.metaParams,appType:i}),u=null!==(s=null===(r=null==t?void 0:t.contentInfo)||void 0===r?void 0:r.thirdPartyPreviewImg)&&void 0!==s?s:"https://sf-static.tiktokcdn.com/obj/search-static-maliva/maliva/ugvonpsj1631257573250",p=Object.assign(Object.assign({},d),{"og:image":u,"twitter:image":u,"og:image:width":"1200","og:image:height":"678"});return(0,c.of)(this.stateModule.getActions().setSharingMetaState(p))}setLiveRoomSharingMeta(e,t,n){var i,o,a,r,s,l,d;const{protocal:u}=(0,m.QJ)(n),p=(0,m.r1)({schema:`${u}live?room_id=${null===(o=null===(i=t.userInfo)||void 0===i?void 0:i.user)||void 0===o?void 0:o.roomId}`,metaParams:e.metaParams,pageType:12,appType:n}),v=null===(a=t.userInfo)||void 0===a?void 0:a.user,g=null!==(s=null!==(r=null==v?void 0:v.avatarMedium)&&void 0!==r?r:null==v?void 0:v.avatarThumb)&&void 0!==s?s:m.Zw,h=null!==(l=null==v?void 0:v.nickname)&&void 0!==l?l:null==v?void 0:v.uniqueId,_=null==v?void 0:v.uniqueId,f=Object.assign(Object.assign({},p),{"og:image":g,"og:image:secure_url":g,"og:image:width":"360","og:image:height":"360","og:image:alt":null===(d=e.metaParams)||void 0===d?void 0:d.title,"twitter:creator":h,"twitter:creator:id":_});return(0,c.of)(this.stateModule.getActions().setSharingMetaState(f))}setQuestionSharingMeta(e,t,n,i){var o,a,r,s,l,c,d,u,p;const{protocal:v}=(0,m.QJ)(n),g=(0,m.r1)({schema:`${v}qna/detail/${null===(o=e.questionInfo)||void 0===o?void 0:o.id}`,metaParams:{title:null===(a=e.shareMeta)||void 0===a?void 0:a.title,description:null===(r=e.shareMeta)||void 0===r?void 0:r.desc},pageType:16,response:e,appType:n}),h="qna"===(null==i?void 0:i.scene)?{"og:title":this.t("qaoop_title",{},"Hi friends, I’m inviting you to answer a question on #TikTok!"),"og:description":this.t("qaoop_desc",{},"Share your wisdom!")}:void 0,_=null!==(d=null!==(l=null===(s=null==t?void 0:t.video.shareCover)||void 0===s?void 0:s[1])&&void 0!==l?l:null===(c=null==t?void 0:t.video.shareCover)||void 0===c?void 0:c[0])&&void 0!==d?d:m.Zw,f=Object.assign(Object.assign(Object.assign({},g),{"og:image":_,"twitter:image":_,"og:image:alt":null!==(p=null===(u=e.shareMeta)||void 0===u?void 0:u.title)&&void 0!==p?p:"the cover of first video"}),h);return this.stateModule.getActions().setSharingMetaState(f)}setVideoPlaylistSharingMeta(e,t,n){var i,o,a,r,s,l,c,d,u;const{protocal:p}=(0,m.QJ)(n),v=`@${null===(o=null===(i=e.mixInfo)||void 0===i?void 0:i.creator)||void 0===o?void 0:o.nickname}`,g=null!==(r=null===(a=e.mixInfo)||void 0===a?void 0:a.name)&&void 0!==r?r:"Untitled playlist",h=(0,m.r1)({schema:`${p}mix/detail?id=${null!==(l=null===(s=e.mixInfo)||void 0===s?void 0:s.id)&&void 0!==l?l:"nan"}`,metaParams:{title:this.t("playlist_share_title",{Playlist_name:g,username:v},`Playlist ${g} created by ${v}`),description:this.t("playlist_share_desc",{},"Enjoy a curated video list and find more videos on TikTok!")},pageType:119,response:e,appType:n}),[_]=null!=t?t:[],f=null!==(d=null===(c=null==_?void 0:_.video.shareCover)||void 0===c?void 0:c[1])&&void 0!==d?d:null===(u=null==_?void 0:_.video.shareCover)||void 0===u?void 0:u[0],y=Object.assign(Object.assign({},h),{"og:image":f,"twitter:image":f,"og:image:alt":`first video of ${g}`});return this.stateModule.getActions().setSharingMetaState(y)}setFollowingSharingMeta(e,t){const n=(0,m.r1)({metaParams:e.metaParams,appType:t}),i=Object.assign(Object.assign({},n),{"og:title":this.t("serp_following_title"),"og:description":this.t("serp_following_desc"),"og:image":m.Zw,"twitter:image":m.Zw,"twitter:title":this.t("SEO_following_title"),"twitter:description":this.t("SEO_following_desc")});return(0,c.of)(this.stateModule.getActions().setSharingMetaState(i))}setPoiSharingMeta(e,t,n){var i;const{protocal:o}=(0,m.QJ)(n),a=null===(i=t.poiInfo)||void 0===i?void 0:i.poi,r=(0,m.r1)({pageType:18,response:t,schema:`${o}poi/detail?poi_id=${null==a?void 0:a.id}`,metaParams:e.metaParams,appType:n});return(0,c.of)(this.stateModule.getActions().setSharingMetaState(r))}};(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[u.c]),(0,i.__metadata)("design:returntype",void 0)],h.prototype,"setSharingMetaStateEffect",null),(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[u.c]),(0,i.__metadata)("design:returntype",void 0)],h.prototype,"setVideoSharingMetaEffect",null),(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[u.c]),(0,i.__metadata)("design:returntype",void 0)],h.prototype,"setUserSharingMetaEffect",null),(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[u.c]),(0,i.__metadata)("design:returntype",void 0)],h.prototype,"setMusicSharingMetaEffect",null),(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[u.c]),(0,i.__metadata)("design:returntype",void 0)],h.prototype,"setChallengeSharingMetaEffect",null),h=(0,i.__decorate)([(0,a.n)("SharingMeta"),(0,i.__param)(0,(0,s.y)(p.hp)),(0,i.__metadata)("design:paramtypes",[Function,g.J])],h)},64810:(e,t,n)=>{"use strict";n.d(t,{J:()=>d});var i=n(58632),o=n(64162),a=n(4126),r=n(93995),s=n(19794),l=n.n(s),c=n(9078);let d=class extends o.E{constructor(){super(...arguments),this.defaultState={value:{}}}setSharingMetaState(e,t){var n;e.value=l()(t,{"og:image":c.Zw,"twitter:image":null!==(n=t["og:image"])&&void 0!==n?n:c.Zw})}};(0,i.__decorate)([(0,a.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],d.prototype,"setSharingMetaState",null),d=(0,i.__decorate)([(0,r.n)("SharingMetaState")],d)},9078:(e,t,n)=>{"use strict";var i;function o(e){const t="m"===e;return{isM:t,protocal:t?"snssdk1233://":"snssdk1180://"}}function a(e){var t,n,a,r;const{schema:s="",pageType:l,shareMeta:c,metaParams:d,appType:u}=e,p=o(u),{isM:v}=p,{APP_INFO:g}=i,m=v?g.M_NAME:g.T_NAME,h=v?g.M_STORE:g.T_STORE,_=v?g.M_PACKAGE:g.T_PACKAGE,f=0===l?null!==(t=null==c?void 0:c.title)&&void 0!==t?t:"":null!==(n=null==d?void 0:d.title)&&void 0!==n?n:"",y=0===l?null!==(a=null==c?void 0:c.desc)&&void 0!==a?a:"":null!==(r=null==d?void 0:d.description)&&void 0!==r?r:"",b={"al:ios:url":s,"al:android:url":s,"al:ios:app_store_id":h,"al:ios:app_name":m,"al:android:app_name":m,"al:android:package":_},w={"og:site_name":"TikTok","og:type":"website","og:title":f,"og:description":y,"fb:app_id":v?g.M_FACEBOOK_ID:g.T_FACEBOOK_ID},x={"twitter:app:id:iphone":h,"twitter:app:id:googleplay":_,"twitter:card":"summary","twitter:site":"TikTok","twitter:title":f,"twitter:description":y};return Object.assign(Object.assign(Object.assign({},b),w),x)}n.d(t,{Zw:()=>r,QJ:()=>o,r1:()=>a}),function(e){e.APP_INFO={M_PACKAGE:"com.zhiliaoapp.musically",T_PACKAGE:"com.ss.android.ugc.trill",M_STORE:"835599320",T_STORE:"1235601864",M_NAME:"musical.ly",T_NAME:"TIKTOK",M_FACEBOOK_ID:"597615686992125",T_FACEBOOK_ID:"1862952583919182"},e.TTNOW_INFO={NAME:"TIKTOK.NOW",STORE_ID:"1641062073",PACKAGE:"com.ss.android.ugc.now",FACEBOOK_ID:"1243781563051427"},e.COIN_LITE_INFO={PACKAGE:"com.ss.android.ugc.tiktok.lite",STORE:"6447160980",NAME:"TikTok Lite",FACEBOOK_ID:"171444425350301"}}(i||(i={}));const r="https://lf16-tiktok-web.ttwstatic.com/obj/tiktok-web-common-sg/mtact/static/images/share_img.png"},55306:(e,t,n)=>{"use strict";n.d(t,{U:()=>L});var i=n(58632),o=n(4126),a=n(93995),r=n(42051),s=n(23999),l=n(46657),c=n(68628),d=n(9543),u=n(26324),p=n(72916),v=n(95719),g=n(8536),m=n(64468),h=n(24451),_=n(62564),f=n(20259),y=n(74690),b=n(35572),w=n(34360),x=n(97792),T=n(8046),S=n(11983),k=n(53966),A=n(84908),O=n(79123),E=n(55322),P=n(22248),I=n(64356),C=n(27375),j=n(91543);let L=class extends k.E{constructor(e,t){super(),this.service=e,this.t=t,this.defaultState={users:{},stats:{}}}multiSetUser(e,t){(0,A.Gp)().multiSetUser(t)}setUser(e,t){(0,A.Gp)().setUser(t)}setUserRelation(e,t){(0,A.Gp)().setUserRelation(t)}setUserStats(e,t){(0,A.Gp)().setUserStats(t)}multiSetUserStats(e,t){(0,A.Gp)().multiSetUserStats(t)}getUserDetail(e){return e.pipe((0,p.n)((e=>this.service.getUserDetail(e).pipe((0,v.M)((e=>{(0!==e.statusCode&&10222!==e.statusCode||!e.userInfo)&&console.warn("Get user detail failed for getting wrong response")})),(0,g.Z)((e=>0!==e.statusCode&&10222!==e.statusCode||!e.userInfo?l.w:(0,s.of)(this.getActions().setUser(Object.assign(Object.assign({},e.userInfo.user),{extraInfo:{statusCode:e.statusCode}})),this.getActions().setUserStats({stats:Object.assign(Object.assign({},e.userInfo.stats),{needFix:!1}),uniqueId:e.userInfo.user.uniqueId})))),(0,E.n)({})))))}postCommitFollowUser(e){return e.pipe((0,m.$)((({uniqueId:e})=>e)),(0,g.Z)((e=>e.pipe((0,h.E)(this.state$),(0,_.T)((([e,t])=>{const n=t.users[e.uniqueId],{id:o,secUid:a="",relation:r=-1}=n,s=(0,O.gN)(r),l={type:1===s?1:0,action_type:1===s?1:0,user_id:o,sec_user_id:a,from:18,channel_id:0,from_pre:0},{uniqueId:c,useFollowV2:d,group_id:u,enter_method:p="click_direct_btn",action_position:v}=e;return{query:l,type:s,group_id:u,enter_method:p,action_position:v,restReportParams:(0,i.__rest)(e,["uniqueId","useFollowV2","group_id","enter_method","action_position"]),id:o,uniqueId:c,useFollowV2:d,relation:r,targetUser:n}})),(0,p.n)((({query:e,group_id:t,enter_method:n,action_position:i,restReportParams:o,id:a,uniqueId:r,useFollowV2:s,relation:l,targetUser:d})=>(s?this.service.postCommitFollowUserV2(e):this.service.postCommitFollowUser(e)).pipe((0,f.W)((e=>(0,c.H)(e.json()))),(0,_.T)((e=>Object.assign({status_code:null==e?void 0:e.status_code,follow_status:null==e?void 0:e.follow_status},e))),(0,v.M)((({status_code:r,follow_status:s})=>{if(24===r?S.F.open({content:this.t("inbox_follow_failed_banned"),duration:3,widthType:"half"}):-1===r?S.F.open({content:this.t("inbox_follow_failed_noconnection"),duration:3,widthType:"half"}):0!==r?S.F.open({content:this.t("inbox_follow_failed_other"),duration:3,widthType:"half"}):(0,P.G)(r,[24,-1,0]),x.t.handleFollowUser(Object.assign(Object.assign({},o),{status_code:r,follow_status:s,group_id:t,enter_method:n,action_position:i,to_user_id:a,author_id:a,follow_type:2===s?"mutual":"single",is_private:4===s?1:0}),e.type),o.is_ad_event&&o.tag&&o.value&&o.log_extra&&0===e.type){const{tag:e,value:t,log_extra:n}=o;T.pg.handleFollowCancel({log_extra:n,tag:e,value:t,is_ad_event:"1"})}})),(0,_.T)((({follow_status:e,status_code:t})=>0===t?this.getActions().setUserRelation({uniqueId:r,relation:C.i0[e],shouldUpdateFollowed:!0}):this.getActions().setUserRelation({uniqueId:r,relation:l}))),(0,y.Z)(this.getActions().setUserRelation({uniqueId:r,relation:(0,O.A7)({current:l,targetUser:d})})),(0,E.n)({}))))))))}blockOrUnblockUser(e){return e.pipe((0,b.p)((({secUid:e,isBlock:t,uniqueId:n})=>this.service.blockUser({sec_user_id:null!=e?e:"",block_type:t?0:1}).pipe((0,v.M)((({status_code:e})=>{0===e&&S.F.open({content:this.t(t?"webapp_mig_unblocked":"webapp_mig_blocked"),duration:3,e2eTag:"block-toast"})})),(0,_.T)((({status_code:e})=>0===e?this.getActions().setUserRelation({uniqueId:n,relation:t?0:4}):this.noop())),(0,E.n)({})))))}getLiveStatus(e){return e.pipe((0,p.n)((()=>(0,d.Y)(6e5).pipe((0,h.E)(this.state$),(0,_.T)((([e,{users:t}])=>Object.values(t).filter((e=>Boolean(null==e?void 0:e.roomId))))),(0,g.Z)((e=>(0,s.of)(...e.map((e=>this.getActions().getUserDetail({secUid:null==e?void 0:e.secUid}))))))))))}};L.jotaiAtom=A.p9,(0,i.__decorate)([(0,o.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Array]),(0,i.__metadata)("design:returntype",void 0)],L.prototype,"multiSetUser",null),(0,i.__decorate)([(0,o.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],L.prototype,"setUser",null),(0,i.__decorate)([(0,o.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],L.prototype,"setUserRelation",null),(0,i.__decorate)([(0,o.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],L.prototype,"setUserStats",null),(0,i.__decorate)([(0,o.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Array]),(0,i.__metadata)("design:returntype",void 0)],L.prototype,"multiSetUserStats",null),(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[u.c]),(0,i.__metadata)("design:returntype",void 0)],L.prototype,"getUserDetail",null),(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[u.c]),(0,i.__metadata)("design:returntype",void 0)],L.prototype,"postCommitFollowUser",null),(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[u.c]),(0,i.__metadata)("design:returntype",void 0)],L.prototype,"blockOrUnblockUser",null),(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[u.c]),(0,i.__metadata)("design:returntype",void 0)],L.prototype,"getLiveStatus",null),L=(0,i.__decorate)([(0,a.n)("UserModule"),(0,i.__param)(1,(0,r.y)(I.hp)),(0,i.__metadata)("design:paramtypes",[j.D,Function])],L),A.p9.__SIGI_MODULE__=L,(0,w.y)(L)},91543:(e,t,n)=>{"use strict";n.d(t,{D:()=>c});var i=n(58632),o=n(38203),a=n(23999),r=n(26325),s=n(39228),l=n(97487);let c=class{constructor(e){this.fetch=e}getUserDetail(e){const t=(0,l.Ni)("userDetail");return t?(0,a.of)(t):this.fetch.get("/api/user/detail/",{query:e,baseUrlType:2})}postCommitFollowUser(e){return this.fetch.post("/api/commit/follow/user/",{query:Object.assign(Object.assign({},e),{fromWeb:1}),baseUrlType:2,headers:{[r.nk]:this.fetch.csrfToken}})}postCommitFollowUserV2(e){return this.fetch.post("/api/follow/",{signal:(new AbortController).signal,query:Object.assign(Object.assign({},e),{fromWeb:1}),baseUrlType:2,headers:{[r.nk]:this.fetch.csrfToken}})}blockUser(e){return this.fetch.post("/api/user/block/",{query:Object.assign(Object.assign({},e),{source:3}),baseUrlType:2,headers:{[r.nk]:this.fetch.csrfToken}})}};c=(0,i.__decorate)([(0,o._)(),(0,i.__metadata)("design:paramtypes",[s.pM])],c)},50834:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});var i=n(50830),o=n(57432),a=n.n(o);const r={provide:new i.n("FirstVideoCover"),useValue:a()}},49730:(e,t,n)=>{"use strict";n.d(t,{E7:()=>b,sL:()=>f,NY:()=>y,Lu:()=>_});var i=n(41271),o=n(46682),a=n(40099),r=n(42573),s=n(32125),l=n(97086),c=n(88920),d=n(60484),u=n(45266),p=n(49057),v=n(60144),g=n(30247),m=n(57431),h=n(23532);function _(e,t){const{foryou:{isForyouListJotai:n}}=(0,c.tL)(),o=(0,r.Lu)(e,s.bN),l=(0,i.P)(h.O,{selector:t=>e(t.foryou),dependencies:t});return(0,a.useMemo)((()=>n?o:l),[n,o,l])}function f(){const{foryou:{isForyouListJotai:e}}=(0,c.tL)(),t=(0,r.sL)(),n=(0,o.w)(h.O);return(0,a.useMemo)((()=>e?t:{dispose$:n.dispose$,getRecommendList:n.getRecommendList,setDeleteVideo:n.setDeleteVideo,resetRecommendList:e=>n.resetItemList(Object.assign({key:"foryou"},e)),setRecommendListById:e=>n.setItemListById(Object.assign({key:"foryou"},e))}),[e,t,n])}function y(e,t){const n=_(e,t),i=f();return(0,a.useMemo)((()=>[n,i]),[n,i])}function b(e,t,n="",i=""){const{streamDeviceType:o}=(0,v.A)(),r=f(),{user:s,language:c,abTestVersion:h}=(0,d.L$)((0,p.W)((()=>["user","language","abTestVersion"]),[])),_=(0,u.s)();return(0,a.useCallback)((()=>{var a,d;i&&r.setRecommendListById({list:[i]});const p=(0,l.fU)()?"":(0,g.ey)(),v=function(e,t,n){const i=(0,m.x)(),{user:o,language:a,abTestVersion:r}=i,s=(0,l.fU)()?"":(0,g.ey)();return{itemId:e,key:"foryou",routeName:t,language:a,abTestVersion:r,user:o,pullType:1,ttamParams:(0,u.s)(),fypFeederItemId:n,watchLiveLastTime:s,device_type:"web_h264"}}(e,t,n),f={itemId:e,key:"foryou",routeName:t,language:c,abTestVersion:h,user:s,pullType:1,ttamParams:_,watchLiveLastTime:p,device_type:o,fypFeederItemId:n};console.debug("[useFYPRecommendListFirstPull]","originParams",f,"expParams",v,JSON.stringify(v)===JSON.stringify(f));const y="v2"!==(null===(d=null===(a=null==h?void 0:h.parameters)||void 0===a?void 0:a.foryou_prefetch)||void 0===d?void 0:d.vid)?f:v;r.getRecommendList(y)}),[h,r,o,e,c,t,s,_,n,i])}},23532:(e,t,n)=>{"use strict";n.d(t,{O:()=>Z,D:()=>K});var i=n(58632),o=n(4126),a=n(93995),r=n(42051),s=(n(16378),n(45537)),l=n.n(s),c=n(300),d=n.n(c),u=n(23999),p=n(63700),v=n(26324),g=n(20259),m=n(35572),h=n(80339),_=n(24451),f=n(8536),y=n(62564),b=n(95719),w=n(72916),x=n(45525),T=n(74690),S=n(76435),k=n(34360),A=n(17995),O=n(51660),E=n(82715),P=n(97071),I=n(8046),C=n(14107),j=n(65852),L=n(11983),M=n(53966),N=n(91286),D=n(2408),R=n(89049),B=n(79229),U=n(97086),F=n(58305),V=n(64356),z=n(45297),H=n(49799),q=n(59952),W=n(52333),$=n(50834),G=n(14576),Y=n(54888);let Z=class extends M.E{constructor(e,t,n,i,o,a,r,s){super(),this.service=e,this.item=t,this.videoMask=n,this.seoModule=i,this.bizContext=o,this.jotaiStore=a,this.t=r,this.getFirstVideoCover=s,this.defaultState={},this.createItemListErrorCatcher=e=>t=>t.pipe((0,g.W)((t=>(L.F.destroy(),L.F.open({content:this.t("server_error_title"),duration:3,widthType:"padding"}),null==e||e(t),(0,u.of)({statusCode:-1})))))}resetItemList(e,t){const{key:n,hasMore:i=!0,loading:o=!0,cursor:a="0"}=t;e[n]={list:[],browserList:[],loading:o,statusCode:0,hasMore:i,cursor:a,preloadList:[]}}addItemList(e,t){var n;const{key:i,list:o,statusCode:a=0,hasMore:r,hasMorePrevious:s,hasMoreLatest:c,cursor:u,level:p,preloadList:v,addToHead:g,liveCardDisplay:m,unviewedCursor:h,viewedCursor:_,unique:f=!0}=t,y="topic"===i||"messages"===i;e[i]||(e[i]={list:[],browserList:[],loading:!1,statusCode:a,hasMore:Boolean(r),cursor:u,preloadList:[]});const b=e[i].list,w=f?d()(o,"id").filter((e=>!b.includes(e.id))):o;if(g)e[i].list.unshift(...w.map((({id:e})=>e))),e[i].browserList=[...(0,N.bp)({list:w}),...e[i].browserList];else{const t=l()(e[i].list,w.map((({id:e})=>e)));f?(e[i].list=y?b.concat(o.map((({id:e})=>e))):t,e[i].browserList=y?e[i].browserList.concat((0,N.bp)({list:o})):l()(e[i].browserList,(0,N.bp)({list:w}))):(e[i].list=o.map((({id:e})=>e)),e[i].browserList=(0,N.bp)({list:w}))}e[i].statusCode=a,e[i].hasMore=r,e[i].cursor=u,e[i].level=p,e[i].liveCardDisplay=m,e[i].preloadList=(null!==(n=e[i].preloadList)&&void 0!==n?n:[]).concat(null!=v?v:[]),"creator_tab"===i&&(e[i].hasMorePrevious=null!=s?s:e[i].hasMorePrevious,e[i].hasMoreLatest=null!=c?c:e[i].hasMoreLatest),"friends"===i&&(e[i].unviewedCursor=null!=h?h:e[i].unviewedCursor,e[i].viewedCursor=null!=_?_:e[i].viewedCursor)}setItemListById(e,t){const{key:n,list:i,statusCode:o=0,hasMore:a=!0,cursor:r,level:s}=t;e[n]||(e[n]={list:[],browserList:[],loading:!1,statusCode:o,hasMore:Boolean(a),cursor:r,preloadList:[]}),e[n].list=i,e[n].browserList=i,e[n].statusCode=o,e[n].hasMore=a,e[n].cursor=r,e[n].level=s}removeItemListById(e,t){var n;const{key:i,groupId:o}=t;(null===(n=e[i])||void 0===n?void 0:n.list)&&(e[i].list=e[i].list.filter((e=>e!==o)))}setLoading(e,t){const{loading:n,key:i}=t;e[i]||(e[i]={list:[],browserList:[],loading:n,statusCode:0,hasMore:!0,cursor:"0"}),e[i].loading=n}setListKeyword(e,t){const{keyword:n,key:i}=t;e[i]||(e[i]={keyword:n,list:[],browserList:[],loading:!1,statusCode:0,hasMore:!0,cursor:"0"}),e[i].keyword=n}getRecommendList(e){return e.pipe((0,m.p)((e=>this.getRecommendList$(e).pipe((0,h.q)(this.terminate())))))}getRecommendList$(e){return(0,u.of)(e).pipe((0,_.E)(this.bizContext.state$),(0,m.p)((([e,t])=>{const{itemId:n,key:i,routeName:o,watchLiveLastTime:a,device_type:r,abTestVersion:s,language:l,user:c,fromPage:d,pullType:p=2,ttamParams:v={},isNonPersonalized:g=!1,showingBrowserMode:m=!1,fypFeederItemId:h,sideEffect:w}=e,x=this.jotaiStore.get(D.WH),T=(0,U.fU)()?g:(0,D.PJ)(x);return(0,u.of)(null).pipe((0,f.Z)((()=>{var i,o,c,u,g;const m=(0,O.uk)(l);let _=z.Nu;const f=null===(i=null==s?void 0:s.parameters.change_list_length_new)||void 0===i?void 0:i.vid;f&&(_=Number(f));const y=Object.assign(Object.assign({isNonPersonalized:T,aid:z.xE,count:1===p?z.K2:_,insertedItemID:n,language:m,clientABVersions:null==s?void 0:s.versionName,pullType:p,watchLiveLastTime:a,device_type:r},v),{coverFormat:null===(c=null===(o=t.bizContext)||void 0===o?void 0:o.videoCoverSettings)||void 0===c?void 0:c.format,itemID:h,vv_count_fyp:parseInt((0,F._S)(R.Bu,"0"),10)||0}),b=(0,B.n5)(e,t.bizContext,T);console.debug("[getRecommendList$]","originParams",y,"expParams",b,JSON.stringify(b)===JSON.stringify(y));const w="v2"!==(null===(g=null===(u=null==s?void 0:s.parameters)||void 0===u?void 0:u.foryou_prefetch)||void 0===g?void 0:g.vid)?y:b;return d&&Object.assign(w,{from_page:d}),this.service.getRecommendList(w)})),(0,_.E)(this.state$),(0,y.T)((([e,t])=>{var n,i,o;const a=function(e,t){const{adsOffset:n=0,itemList:i}=t,o=Number(n),a=null==i?void 0:i[o];if(!(null==a?void 0:a.isTT4BAds))return t;const r=o>=e?o-e:0;return null==i||i.splice(o,1),null==i||i.splice(r,0,a),t.itemList=i,t}(null!==(o=null===(i=null===(n=t.foryou)||void 0===n?void 0:n.list)||void 0===i?void 0:i.length)&&void 0!==o?o:0,e);return a})),(0,b.M)((e=>{var t;null==w||w(),(null!==(t=e.itemList)&&void 0!==t?t:[]).forEach((e=>{var t;if(e.ad_info){const t=(0,P.n5)({ad_info:e.ad_info,play_mode:m?"browser_mode":"one_column"});I.pg.handleReceive(t)}C.j.handleVideoReceive({item_id:e.id,group_id:null===(t=null==e?void 0:e.video)||void 0===t?void 0:t.id})}))})),this.createItemListErrorCatcher((e=>console.error(e.message))),this.handleListData({key:i,abTestVersion:s,language:l,user:c,onResponse:e=>this.searchbotSSROptimize(o,e,l)}))})))}getTopicList(e){return e.pipe((0,w.n)((({topic:e,abTestVersion:t,user:n,language:i})=>this.service.getTopicList({topic:e,language:i,count:z.Uw,aid:z.xE}).pipe((0,y.T)((e=>Object.assign(Object.assign({},e),{hasMore:!0}))),this.createItemListErrorCatcher(),this.handleListData({key:"topic",abTestVersion:t,user:n,language:i}),(0,h.q)(this.terminate())))))}getFollowingList(e){return e.pipe((0,_.E)(this.state$,this.bizContext.state$),(0,m.p)((([{pullType:e=1,abTestVersion:t,user:n,language:i},o,a])=>{var r,s,l;const{cursor:c="",level:d=1}=null!==(r=o.following)&&void 0!==r?r:{};return this.service.getFollowingList({aid:z.xE,count:z.rd,language:i,cursor:c,pullType:e,level:d,isResetCounterUsed:!0,isNonPersonalized:!(0,U.fU)()&&(0,D.PJ)(this.jotaiStore.get(D.WH)),coverFormat:null===(l=null===(s=a.bizContext)||void 0===s?void 0:s.videoCoverSettings)||void 0===l?void 0:l.format,clientABVersions:null==t?void 0:t.versionName}).pipe(this.createItemListErrorCatcher(),this.handleListData({key:"following",language:i,user:n,abTestVersion:t}))})))}getFriendsList(e){return e.pipe((0,_.E)(this.state$,this.bizContext.state$),(0,m.p)((([{pullType:e=1,abTestVersion:t,user:n,language:i},o,a])=>{var r,s,l;const{unviewedCursor:c="0",viewedCursor:d="0",level:u=1}=null!==(r=o.friends)&&void 0!==r?r:{};return this.service.getFriendsList({aid:z.xE,count:z.Ly,language:i,unviewedCursor:c,viewedCursor:d,pullType:e,level:u,isResetCounterUsed:!0,isNonPersonalized:!(0,U.fU)()&&(0,D.PJ)(this.jotaiStore.get(D.WH)),coverFormat:null===(l=null===(s=a.bizContext)||void 0===s?void 0:s.videoCoverSettings)||void 0===l?void 0:l.format,clientABVersions:null==t?void 0:t.versionName}).pipe(this.createItemListErrorCatcher(),this.handleListData({key:"friends",language:i,user:n,abTestVersion:t}))})))}getQuestionList(e){return e.pipe((0,f.Z)((e=>this.getQuestionList$(e))))}getQuestionList$(e){return(0,u.of)(e).pipe((0,_.E)(this.state$),(0,m.p)((([{questionID:e,abTestVersion:t,language:n,user:i},o])=>{var a,r;return this.service.getQuestionList({questionID:e,language:n,cursor:null!==(r=null===(a=o.question)||void 0===a?void 0:a.cursor)&&void 0!==r?r:"0",aid:z.xE,count:z.vu}).pipe(this.createItemListErrorCatcher(),this.handleListData({key:"question",abTestVersion:t,language:n,user:i}))})))}getPlaylistVideoList(e){return e.pipe((0,f.Z)((e=>this.getPlaylistVideoList$(e))))}getPlaylistVideoList$(e,t){return(0,u.of)(e).pipe((0,_.E)(this.state$),(0,m.p)((([{mixId:e,key:n,abTestVersion:i,language:o,user:a},r])=>{var s,l;return this.service.getPlaylistVideoList({mixId:e,language:o,cursor:null!==(l=null===(s=r[null!=n?n:e])||void 0===s?void 0:s.cursor)&&void 0!==l?l:"0",aid:z.xE,count:z.vu}).pipe(this.createItemListErrorCatcher(),(0,b.M)((e=>{var n;return null===(n=null==t?void 0:t.onVideoList)||void 0===n?void 0:n.call(t,e.itemList)})),this.handleListData({key:null!=n?n:e,abTestVersion:i,language:o,user:a}))})))}getCollectionList(e){return e.pipe((0,f.Z)((e=>this.getCollectionList$(e))))}getCollectionList$(e){return(0,u.of)(e).pipe((0,_.E)(this.state$),(0,m.p)((([{collectionId:e,abTestVersion:t,language:n,user:i},o])=>{var a,r;return this.service.getCollectionList({collectionId:e,language:n,cursor:null!==(r=null===(a=o.collection)||void 0===a?void 0:a.cursor)&&void 0!==r?r:"0",aid:z.xE,count:z.vu,sourceType:113}).pipe(this.createItemListErrorCatcher(),this.handleListData({key:"collection",abTestVersion:t,language:n,user:i}))})))}getUserVideoListByType(e){return e.pipe((0,f.Z)((e=>this.getUserVideoListByType$(e))))}getUserVideoListByType$(e){return(0,u.of)(e).pipe((0,_.E)(this.state$),(0,w.n)((([{count:e=z.VD,postItemType:t=2,key:n,abTestVersion:i,language:o,user:a},r])=>{var s,l;const c={appId:z.xE,count:e,cursor:null!==(l=null===(s=r[n])||void 0===s?void 0:s.cursor)&&void 0!==l?l:"0",language:o,postItemType:t};return this.service.getUserPostListByType(c).pipe(this.createItemListErrorCatcher(),this.handleListData({key:n,abTestVersion:i,language:o,user:a,otherInfo:{secUid:null==a?void 0:a.secUid}}))})))}getPoiList(e){return e.pipe((0,f.Z)((e=>this.getPoiList$(e))))}getPoiList$(e){return(0,u.of)(e).pipe((0,_.E)(this.state$),(0,m.p)((([{poiId:e,abTestVersion:t,language:n,user:i},o])=>{var a,r;return this.service.getPoiList({poiId:e,language:n,cursor:null!==(r=null===(a=o.poi)||void 0===a?void 0:a.cursor)&&void 0!==r?r:"0",aid:z.xE,count:z.vu}).pipe(this.createItemListErrorCatcher(),this.handleListData({key:"poi",abTestVersion:t,user:i,language:n}))})))}setDeleteVideo(e,t){for(const n of Object.keys(e)){const i=e[n];if(i){const o=i.list.filter((e=>e!==t));e[n].list=o,e[n].browserList=i.browserList.filter((e=>e!==t))}}}deleteLiveItem(e,t){for(const n of Object.keys(e)){const i=e[n];if(i){const e=i.list.filter((e=>e!==t));i.list=e,i.browserList=i.browserList.filter((e=>e!==t))}e[n]=i}}setList(e){return e.pipe((0,_.E)(this.state$,this.videoMask.state$),(0,b.M)((([{key:e,response:t,disableReportMore:n=!1},i])=>{var o,a,r;(null!==(a=null===(o=i[e])||void 0===o?void 0:o.list)&&void 0!==a?a:[]).length&&!n&&j.L.handleListMore({is_success:(null===(r=t.itemList)||void 0===r?void 0:r.length)?1:0,error_code:t.statusCode})})),(0,y.T)((([{key:e,response:t,otherInfo:n,user:i},o,a])=>{var r,s;const l=null!==(s=null!==(r=t.itemList)&&void 0!==r?r:t.items)&&void 0!==s?s:[];return t.itemList||(t.itemList=l),1!==(null==i?void 0:i.photoSensitiveVideosSetting)&&(i||1!==a.photoSensitiveVideosSetting)||"user-post"===e&&(null==i?void 0:i.secUid)===(null==n?void 0:n.secUid)||!("video"!==e||l.length>1)||(t.itemList=l.filter((e=>2===e.containerType||4!==(null==e?void 0:e.maskType)))),t.itemList=t.itemList.map((e=>{var t;return(0,N.Jl)(e)&&(e.id=(0,N.Qw)(null===(t=e.liveRoomInfo)||void 0===t?void 0:t.roomID)),e})),{key:e,response:t,otherInfo:n}})),(0,b.M)((({key:e,response:t})=>{})),(0,f.Z)((({key:e,response:t,otherInfo:n})=>{const{log_pb:i,itemList:o=[],statusCode:a=0,hasMore:r=!1,hasMorePrevious:s,liveCardDisplay:l,hasMoreLatest:c,cursor:d="0",level:p,viewedCursor:v="0",unviewedCursor:g="0"}=t,m=o.filter((e=>2!==e.containerType)).map((e=>{var t,n,i,o;return{url:null!==(n=null===(t=e.video)||void 0===t?void 0:t.playAddr)&&void 0!==n?n:"",id:null!==(o=null===(i=e.video)||void 0===i?void 0:i.id)&&void 0!==o?o:""}}));return 0===a&&"creator_tab"===e?(0,u.of)(...this.item.addItems(o,null==i?void 0:i.impr_id),this.getActions().addItemList({key:e,list:o,statusCode:a,hasMore:r,hasMorePrevious:s,hasMoreLatest:c,preloadList:m,addToHead:null==n?void 0:n.addToHead})):0!==a&&10404!==a||"friends"!==e?0===a||10404===a?(0,u.of)(...this.item.addItems(o,null==i?void 0:i.impr_id),this.getActions().addItemList({key:e,list:o,statusCode:a,hasMore:r,cursor:d,level:p,preloadList:m,liveCardDisplay:l})):(0,u.of)(this.getActions().addItemList({key:e,list:[],statusCode:a,hasMore:!0,preloadList:m})):(0,u.of)(...this.item.addItems(o,null==i?void 0:i.impr_id),this.getActions().addItemList({key:e,list:o,statusCode:a,hasMore:r,level:p,preloadList:m,addToHead:null==n?void 0:n.addToHead,viewedCursor:v,unviewedCursor:g}))})))}handleListData({key:e,language:t,user:n,otherInfo:i,onResponse:o}){return a=>a.pipe((0,x.w)(z.LA),(0,f.Z)((a=>{var r;return(0,p.h)((0,u.of)(this.getActions().setList({key:e,response:a,otherInfo:i,language:t,user:n})),null!==(r=null==o?void 0:o(a))&&void 0!==r?r:(0,u.of)(this.noop()))})),(0,T.Z)(this.getActions().setLoading({key:e,loading:!0})),(0,h.q)(this.getActions().setLoading({key:e,loading:!1})),(0,S.Q)(this.dispose$))}searchbotSSROptimize(e,t,n){return e===E.eU.foryou?this.seoModule.setForyouSEOProps(t,{language:null!=n?n:"en"}):[E.eU.home,E.eU.foryouWithLang].includes(e)?this.seoModule.setHomeSEOProps(null!=n?n:"en"):(0,u.of)(this.noop())}};(0,i.__decorate)([(0,o.uk)(),(0,i.__metadata)("design:type",v.c)],Z.prototype,"dispose$",void 0),(0,i.__decorate)([(0,o.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],Z.prototype,"resetItemList",null),(0,i.__decorate)([(0,o.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],Z.prototype,"addItemList",null),(0,i.__decorate)([(0,o.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],Z.prototype,"setItemListById",null),(0,i.__decorate)([(0,o.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],Z.prototype,"removeItemListById",null),(0,i.__decorate)([(0,o.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],Z.prototype,"setLoading",null),(0,i.__decorate)([(0,o.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],Z.prototype,"setListKeyword",null),(0,i.__decorate)([(0,o.Mj)({payloadGetter:1}),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[v.c]),(0,i.__metadata)("design:returntype",void 0)],Z.prototype,"getRecommendList",null),(0,i.__decorate)([(0,o.Mj)({payloadGetter:1,skipFirstClientDispatch:!1}),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[v.c]),(0,i.__metadata)("design:returntype",void 0)],Z.prototype,"getTopicList",null),(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[v.c]),(0,i.__metadata)("design:returntype",void 0)],Z.prototype,"getFollowingList",null),(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[v.c]),(0,i.__metadata)("design:returntype",void 0)],Z.prototype,"getFriendsList",null),(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[v.c]),(0,i.__metadata)("design:returntype",void 0)],Z.prototype,"getQuestionList",null),(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[v.c]),(0,i.__metadata)("design:returntype",void 0)],Z.prototype,"getPlaylistVideoList",null),(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[v.c]),(0,i.__metadata)("design:returntype",v.c)],Z.prototype,"getCollectionList",null),(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[v.c]),(0,i.__metadata)("design:returntype",void 0)],Z.prototype,"getUserVideoListByType",null),(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[v.c]),(0,i.__metadata)("design:returntype",void 0)],Z.prototype,"getPoiList",null),(0,i.__decorate)([(0,o.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,String]),(0,i.__metadata)("design:returntype",void 0)],Z.prototype,"setDeleteVideo",null),(0,i.__decorate)([(0,o.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,String]),(0,i.__metadata)("design:returntype",void 0)],Z.prototype,"deleteLiveItem",null),(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[v.c]),(0,i.__metadata)("design:returntype",void 0)],Z.prototype,"setList",null),Z=(0,i.__decorate)([(0,a.n)("ItemList"),(0,i.__param)(5,(0,r.y)(A.J7)),(0,i.__param)(6,(0,r.y)(V.hp)),(0,i.__param)(7,(0,r.y)($.t.provide)),(0,i.__metadata)("design:paramtypes",[G.j,W.k,q.w,H.E,Y.$,Object,Function,Function])],Z);const K=(0,k.y)(Z)},14576:(e,t,n)=>{"use strict";n.d(t,{j:()=>u});var i=n(58632),o=n(38203),a=n(68628),r=n(20259),s=n(68881),l=n(11654),c=n(39228),d=n(50834);let u=class{constructor(e,t){this.fetch=e,this.slardar=t}getCollectionList(e){return this.fetch.get("/api/collection/item_list/",{query:e,baseUrlType:2})}getRecommendList(e){const t=(0,s.t$)("recommendItemList");if(t)return(0,a.H)(t);const n=(0,s.DV)("recommendItemList");return n?(this.slardar.emitEvent("consume_prefetch_data",{now:performance.now()},{status:"unknown",from:"recommendItemList"}),(0,a.H)(n).pipe((0,r.W)((t=>(this.slardar.emitEvent("consume_prefetch_data",{now:performance.now()},{status:"fail",from:"recommendItemList"}),this.slardar.captureMessage(`consume prefetch data error: ${null==t?void 0:t.message}`,"info",{from:"recommendItemList"}),this.fetch.get("/api/recommend/item_list/",{query:e,baseUrlType:2})))))):this.fetch.get("/api/recommend/item_list/",{query:e,baseUrlType:2})}getTopicList(e){return this.fetch.get("/api/topic/item_list/",{query:e,baseUrlType:2})}getFollowingList(e){return this.fetch.get("/api/following/item_list/",{query:e,baseUrlType:2})}getFriendsList(e){return this.fetch.get("/api/friends/item_list/",{query:e,baseUrlType:2})}getQuestionList(e){return this.fetch.get("/api/question/item_list/",{query:e,baseUrlType:2})}getPlaylistVideoList(e){return this.fetch.get("/api/mix/item_list/",{query:e,baseUrlType:2})}getChallengeList(e){return this.fetch.get("/api/challenge/item_list/",{query:e,baseUrlType:2})}getUserPostList(e){const t=(0,s.t$)("userPostList");if(t)return(0,a.H)(t);const n=(0,s.DV)("userPostList");return n?(this.slardar.emitEvent("consume_prefetch_data",{now:performance.now()},{status:"unknown",from:"userPostList"}),(0,a.H)(n).pipe((0,r.W)((t=>(console.log("-===error",t),this.slardar.emitEvent("consume_prefetch_data",{now:performance.now()},{status:"fail",from:"userPostList"}),this.slardar.captureMessage(`consume prefetch data error: ${null==t?void 0:t.message}`,"info",{from:"userPostList"}),this.fetch.get("/api/post/item_list/",{query:e,baseUrlType:2})))))):this.fetch.get("/api/post/item_list/",{query:e,baseUrlType:2})}getUserPostListByType(e){return this.fetch.get("/api/post/item_list/v1/",{query:e,baseUrlType:2})}getUserPostListBiDirection(e){return this.fetch.get("/api/creator/item_list/",{query:e,baseUrlType:2})}getUserLikedList(e){return this.fetch.get("/api/favorite/item_list/",{query:e,baseUrlType:2})}getUserFavoriteList(e){return this.fetch.get("/api/user/collect/item_list/",{query:e,baseUrlType:2})}getPoiList(e){return this.fetch.get("/api/poi/item_list/",{query:e,baseUrlType:2})}getExploreList(e){const t=(0,s.DV)("exploreItemList");return t?(this.slardar.emitEvent("consume_prefetch_data",{now:performance.now()},{status:"unknown",from:"exploreItemList"}),(0,a.H)(t).pipe((0,r.W)((t=>(this.slardar.emitEvent("consume_prefetch_data",{now:performance.now()},{status:"fail",from:"exploreItemList"}),this.slardar.captureMessage(`consume prefetch data error: ${null==t?void 0:t.message}`,"info",{from:"exploreItemList"}),this.fetch.get("/api/explore/item_list/",{query:e,baseUrlType:2})))))):this.fetch.get("/api/explore/item_list/",{query:e,baseUrlType:2})}getFeedCacheList(e){return this.fetch.get("/api/preload/item_list/",{query:e,baseUrlType:2})}checkItemValidation(e){return this.fetch.get("/api/item/availability/",{query:e,baseUrlType:2})}};u=(0,i.__decorate)([(0,o._)({providers:[d.t]}),(0,i.__metadata)("design:paramtypes",[c.pM,l.V])],u)},52333:(e,t,n)=>{"use strict";n.d(t,{k:()=>W,t:()=>$});var i=n(58632),o=n(4126),a=n(93995),r=n(42051),s=n(87933),l=n(23999),c=n(87662),d=n(46657),u=n(68628),p=n(26324),v=n(72916),g=n(24451),m=n(62564),h=n(8536),_=n(95719),f=n(74690),y=n(64468),b=n(78288),w=n(36166),x=n(20259),T=n(34360),S=n(17995),k=n(60072),A=n(10287),O=n(6986),E=n(97071),P=n(24154),I=n(25342),C=n(67974),j=n(11983),L=n(53966),M=n(57431),N=n(55322),D=n(64356),R=n(91286),B=n(45297),U=n(55306),F=n(38203),V=n(26325),z=n(39228);let H=class{constructor(e){this.fetch=e}postLikeVideo(e){return this.fetch.post("/api/commit/item/digg/",{query:e,baseUrlType:2,headers:{[V.nk]:this.fetch.csrfToken}})}postDislikeVideo(e){return this.fetch.post("/api/dislike/item/",{query:e,baseUrlType:2,headers:{[V.nk]:this.fetch.csrfToken}})}collectVideo(e){return this.fetch.post("/api/item/collect/",{query:e,baseUrlType:2,headers:{[V.nk]:this.fetch.csrfToken}})}};H=(0,i.__decorate)([(0,F._)(),(0,i.__metadata)("design:paramtypes",[z.pM])],H);var q=n(53764);let W=class extends L.E{constructor(e,t,n,i){super(),this.service=e,this.userModule=t,this.jotaiStore=n,this.t=i,this.defaultState={}}setItem(e,t){(0,k.ud)().setItem(t)}updateItem(e,t){(0,k.ud)().updateItem(t)}multiSetItem(e,t){(0,k.ud)().multiSetItem(t)}setLike(e,t){(0,k.ud)().setLike(t)}setCollect(e,t){(0,k.ud)().setCollect(t)}setCommentCount(e,t){(0,k.ud)().setCommentCount(t)}reduceOrIncreaseCommentCount(e,t){(0,k.ud)().reduceOrIncreaseCommentCount(t)}addItems(e,t){const n=e.filter((e=>Boolean(e.author))).map((({author:e})=>e)),i=e.filter((e=>{var t;return Boolean((null===(t=null==e?void 0:e.liveRoomInfo)||void 0===t?void 0:t.ownerInfo)&&(0,R.Jl)(e))})).map((e=>Object.assign(Object.assign({},e.liveRoomInfo.ownerInfo),{roomId:e.liveRoomInfo.roomID}))),o=e.map((e=>Object.assign(Object.assign({},e),{logId:t})));return[this.userModule.getActions().multiSetUser(n.concat(i)),this.getActions().multiSetItem(o)]}addItems$(e){return e.pipe((0,v.n)((e=>this.addItems(e))))}postCollectVideo(e){return e.pipe((0,g.E)(this.state$,this.userModule.state$),(0,m.T)((([e,t,n])=>{var i,o,a,r;const{itemId:s}=e,l=t[s],c=n.users[null!==(i=null==l?void 0:l.author)&&void 0!==i?i:""],{collected:d=!1,stats:u}=l,p=d?2:1;return{collectCount:Number(null!==(o=null==u?void 0:u.collectCount)&&void 0!==o?o:0),collected:d,action:p,query:{aid:B.xE,itemId:s,action:p,secUid:null!==(a=null==c?void 0:c.secUid)&&void 0!==a?a:""},group_id:s,author_id:null!==(r=null==c?void 0:c.id)&&void 0!==r?r:""}})),(0,h.Z)((({collectCount:e,collected:t,query:n,group_id:i,author_id:o,action:a})=>this.service.collectVideo(n).pipe((0,_.M)((()=>{O.W.handleFavoriteResult({group_id:i,author_id:o},a)})),(0,h.Z)((n=>{const{statusCode:o}=n;return 0!==o?(0,s.O)(3e3).pipe((0,m.T)((()=>this.getActions().setCollect({id:i,collected:t,count:e})))):(0,l.of)(1===a?this.getActions().addMlModelTrainData({id:i,action:"favorite"}):this.noop())})),(0,f.Z)(this.getActions().setCollect({id:i,collected:!t,count:t?Math.max(0,e-1):e+1})),(0,N.n)({})))))}postLikeVideo(e){return e.pipe((0,y.$)((({id:e})=>e)),(0,h.Z)((e=>{const t=new c.t(0);return e.pipe((0,g.E)(this.state$,this.userModule.state$,t),(0,h.Z)((([e,t,n,o])=>{var a,r,s;const{language:c,play_mode:u}=e,p=t[e.id],v=n.users[null!==(a=null==p?void 0:p.author)&&void 0!==a?a:""],{user:g}=(0,M.x)(),{digged:m,stats:h,poi:_,imagePost:f,subVideoMeta:y,ad_info:b,repostList:w}=p,{id:x,forceLike:T,enter_method:S="click",channel_id:k}=e,A=(0,i.__rest)(e,["id","forceLike","enter_method","channel_id"]),O=null!==(r=null==h?void 0:h.diggCount)&&void 0!==r?r:0,E={aweme_id:x,channel_id:k,friends_upvote:null==w?void 0:w.some((e=>e.secUid!==(null==g?void 0:g.secUid))),type:T?1:m?0:1};return T&&m?d.w:(0,l.of)({query:E,enter_method:S,diggCount:O,digged:m,author_id:null!==(s=null==v?void 0:v.id)&&void 0!==s?s:"",group_id:p.id,poi_id:null==_?void 0:_.id,restReportParams:A,changeKey:`${E.type}_${o}`,language:c,imagePost:f,play_mode:u,is_sub_only_video:y?1:0,ad_info:b})})),(0,b.w)("changeKey"),(0,v.n)((({query:e,enter_method:n,diggCount:i,author_id:o,group_id:a,digged:r,poi_id:c,imagePost:d,is_sub_only_video:u,restReportParams:p,ad_info:v})=>{let g=!1;const y=(0,s.O)(3e3).pipe((0,m.T)((()=>this.getActions().setLike({id:a,liked:r,count:i}))),(0,w.j)((()=>{const e=t.getValue();t.next(e+1)}))),b=this.getActions().setLike({id:a,liked:!r,count:r?Math.max(0,i-1):i+1});return this.service.postLikeVideo(e).pipe((0,x.W)((()=>(0,l.of)({status_code:-1}))),(0,_.M)((({status_code:t,status_msg:i,log_pb:r={}})=>{var s,l;2150!==t&&2210!==t||i&&j.F.open({content:this.t(i),duration:3,widthType:"half"}),g=!0;let m={};v&&(m=(0,E.n5)({ad_info:v,play_mode:null!==(s=p.play_mode)&&void 0!==s?s:"one_column"})),P.z.handleLikeVideoResult(Object.assign(Object.assign(Object.assign({},p),m),{group_id:a,author_id:o,log_pb:r,enter_method:n,poi_id:c,aweme_type:d?150:0,pic_cnt:null===(l=null==d?void 0:d.images)||void 0===l?void 0:l.length,is_sub_only_video:u}),e.type)})),(0,w.j)((()=>{var t,i;let r={};v&&(r=(0,E.n5)({ad_info:v,play_mode:null!==(t=p.play_mode)&&void 0!==t?t:"one_column"})),g||P.z.handleLikeVideoResult(Object.assign(Object.assign(Object.assign({},p),r),{group_id:a,author_id:o,log_pb:{},enter_method:n,poi_id:c,aweme_type:d?150:0,pic_cnt:null===(i=null==d?void 0:d.images)||void 0===i?void 0:i.length,is_sub_only_video:u}),e.type)})),(0,h.Z)((t=>{const{status_code:n,is_digg:i}=t;return 0!==n||i===e.type?y:(0,l.of)(1===e.type?this.getActions().addMlModelTrainData({id:a,action:"like"}):this.noop())})),(0,f.Z)(b),(0,N.n)({}))})))})))}addMlModelTrainData(e){return e.pipe((0,g.E)(this.state$),(0,h.Z)((([e,t])=>{var n;const{id:i,action:o,isPreview:a}=e;return i&&t[i]&&!(null===(n=t[i])||void 0===n?void 0:n.liveRoomInfo)?(0,u.H)((0,A.xt)().addTrainData({item:t[i],action:o,isPreview:a})).pipe((0,h.Z)((()=>(0,l.of)(this.noop())))):(0,l.of)(this.noop())})))}postDislikeVideo(e){return e.pipe((0,g.E)(this.state$),(0,_.M)((([e,t])=>{const{id:n,author_id:i,play_mode:o}=e,a=t[n],r=null==a?void 0:a.ad_info;let s={};r&&(s=(0,E.n5)({ad_info:r,play_mode:o}),s.refer=I.Hq.Button),C.V.handleClickDislike(Object.assign({group_id:n,author_id:i,play_mode:o},s)),j.F.open({content:this.t("webapp_forYoufeed_videoRemoved_toast"),duration:3,widthType:"half",getContainer:q.M,getContainerPosition:"fixed"})})),(0,h.Z)((([e])=>{const{id:t,author_id:n}=e,i={item_id:t,item_author_id:n};return this.service.postDislikeVideo(i).pipe((0,x.W)((()=>(0,l.of)({status_code:-1}))),(0,m.T)((()=>this.getActions().addMlModelTrainData({id:e.id,action:"dislike"}))),(0,N.n)({}))})))}setItemPrivateState(e,t){(0,k.ud)().setItemPrivateState(t)}setDeleteVideo(e,t){(0,k.ud)().setDeleteVideo(t)}};W.jotaiAtom=k.Pu,(0,i.__decorate)([(0,o.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],W.prototype,"setItem",null),(0,i.__decorate)([(0,o.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],W.prototype,"updateItem",null),(0,i.__decorate)([(0,o.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Array]),(0,i.__metadata)("design:returntype",void 0)],W.prototype,"multiSetItem",null),(0,i.__decorate)([(0,o.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],W.prototype,"setLike",null),(0,i.__decorate)([(0,o.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],W.prototype,"setCollect",null),(0,i.__decorate)([(0,o.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],W.prototype,"setCommentCount",null),(0,i.__decorate)([(0,o.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],W.prototype,"reduceOrIncreaseCommentCount",null),(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[p.c]),(0,i.__metadata)("design:returntype",void 0)],W.prototype,"addItems$",null),(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[p.c]),(0,i.__metadata)("design:returntype",p.c)],W.prototype,"postCollectVideo",null),(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[p.c]),(0,i.__metadata)("design:returntype",void 0)],W.prototype,"postLikeVideo",null),(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[p.c]),(0,i.__metadata)("design:returntype",void 0)],W.prototype,"addMlModelTrainData",null),(0,i.__decorate)([(0,o.Mj)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[p.c]),(0,i.__metadata)("design:returntype",void 0)],W.prototype,"postDislikeVideo",null),(0,i.__decorate)([(0,o.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,Object]),(0,i.__metadata)("design:returntype",void 0)],W.prototype,"setItemPrivateState",null),(0,i.__decorate)([(0,o.h5)(),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object,String]),(0,i.__metadata)("design:returntype",void 0)],W.prototype,"setDeleteVideo",null),W=(0,i.__decorate)([(0,a.n)("ItemModule"),(0,i.__param)(2,(0,r.y)(S.J7)),(0,i.__param)(3,(0,r.y)(D.hp)),(0,i.__metadata)("design:paramtypes",[H,U.U,Object,Function])],W);const $=(0,T.y)(W)},26325:(e,t,n)=>{"use strict";n.d(t,{$_:()=>c,F0:()=>d,Ty:()=>s,nk:()=>r,si:()=>i});const i=(0,n(34099).V)();var o,a;!function(e){e[e.Default=0]="Default",e[e.Simple=1]="Simple",e[e.None=2]="None"}(o||(o={})),function(e){e[e.None=0]="None",e[e.AWEME=1]="AWEME",e[e.FixedWww=2]="FixedWww",e[e.AutoMOrT=3]="AutoMOrT",e[e.Webcast=4]="Webcast",e[e.AutoWebcastMOrT=5]="AutoWebcastMOrT",e[e.AWEMEV1=6]="AWEMEV1",e[e.CommentTest=8]="CommentTest",e[e.WebcastT=9]="WebcastT",e[e.Now=10]="Now"}(a||(a={}));const r="tt-csrf-token",s={FORM_ENCODE:"application/x-www-form-urlencoded; charset=UTF-8"},l=()=>{var e,t,n;try{const i=document.getElementById("__REGION__DATA__INJECTED__");return null===(n=null===(t=JSON.parse(null!==(e=null==i?void 0:i.textContent)&&void 0!==e?e:"{}").__DATA__)||void 0===t?void 0:t.region_data_domains)||void 0===n?void 0:n.WEBAPP_WEBCAST_API}catch(e){return}};function c(e=0){var t,n,o,a,r,s,c,d;switch(e){case 9:{let e="https://webcast.tiktok.com";return"us"===i.kind&&(e="https://webcast.us.tiktok.com"),e}case 2:return null!==(t=i.rootApi)&&void 0!==t?t:"https://www.tiktok.com";case 3:return null!==(n=i.mTApi)&&void 0!==n?n:"";case 6:return null!==(o=i.rootApi)&&void 0!==o?o:"";case 4:return null!==(r=null!==(a=l())&&void 0!==a?a:i.webcastRootApi)&&void 0!==r?r:"https://webcast.tiktok.com";case 5:return null!==(s=i.webcastApi)&&void 0!==s?s:"";case 0:return null!==(c=i.rootApi)&&void 0!==c?c:"";case 8:return null!==(d=i.rootApi)&&void 0!==d?d:"";case 10:return"https://now.tiktok.com";default:return""}}function d(){var e,t;try{const n=JSON.parse(null!==(t=null===(e=window.document.getElementById("__SCHEDULE_INFO__"))||void 0===e?void 0:e.textContent)&&void 0!==t?t:"{}");if(n.to)return n}catch(e){console.warn(e)}return{from:"",to:"",dispatchParams:{}}}},237:(e,t,n)=>{"use strict";n.d(t,{Rh:()=>l,gk:()=>c,LZ:()=>u,Gy:()=>p});class i{constructor(){this.events={}}on(e,t,n={}){var i;let o=t;return n.once&&(o=function(e){let t,n=!1;return i=>(n||(t=e.apply(this,i),n=!0),t)}(t)),this.events[e]?null===(i=this.events[e])||void 0===i||i.push(o):this.events[e]=[o],()=>{var n;this.events[e]=null===(n=this.events[e])||void 0===n?void 0:n.filter((e=>t!==e))}}emit(e,...t){const n=this.events[e]||[];for(const e of n)e(...t)}clear(e){this.events[e]=[]}}const o=503,a="X-TT-System-Error",r="23",s="/api/v3/register/verification/age",l="sig_api_geoblocked",c="sig_signup_api_geoblocked";class d{constructor(){this.emitter=new i}static getInstance(){return d.instance||(d.instance=new d),d.instance}on(...e){return this.emitter.on(...e)}emit(e,t){this.emitter.emit(e,t)}clear(e){this.emitter.clear(e)}}const u=d.getInstance();function p(e,t){const n=function(e){if(!e||e.status!==o||!e.headers)return!1;const t=e.headers.get?e.headers.get(a):e.headers[a.toLowerCase()];return!(!t||t!==r)}(e);if(n)if(function(e){return e.includes(s)}(t)){const e=function(e){const t=e.split("?")[0],n=t.indexOf(s);return{domain:t.substring(0,n),path:t.substring(n)}}(t);u.emit(c,e)}else u.emit(l)}},32970:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r,w:()=>a});const i=(e,t)=>{try{return sessionStorage.getItem(e)||t}catch(e){return console.warn("sessionStorage get failed"),t}};function o(e,t=""){var n;try{return null!==(n=localStorage.getItem(e))&&void 0!==n?n:t}catch(e){return t}}const a=(e,t,n)=>{var a,r,s;const l=document.cookie.match(/s_v_web_id=(\w+)/);try{const c="v1"===(null===(s=null===(r=null===(a=e.abTestVersion)||void 0===a?void 0:a.parameters)||void 0===r?void 0:r.webapp_odin_id_fe_reverse)||void 0===s?void 0:s.vid),d=!!(e||{}).user,u=Object.assign(Object.assign({aid:"1988",app_name:"tiktok_web",channel:"tiktok_web",device_platform:(e||{}).isMobile?"web_mobile":"web_pc",device_id:(e||{}).wid,region:(e||{}).region,priority_region:((e||{}).user||{}).region||"",os:(e||{}).os,referer:document.referrer,root_referer:i("webapp-session-referer"),cookie_enabled:navigator.cookieEnabled,screen_width:screen.width,screen_height:screen.height,browser_language:navigator.language,browser_platform:navigator.platform,browser_name:navigator.appCodeName,browser_version:navigator.appVersion,browser_online:navigator.onLine,verifyFp:(l||"")[1],app_language:(e||{}).language,webcast_language:(e||{}).language,tz_name:Intl.DateTimeFormat().resolvedOptions().timeZone,is_page_visible:t,focus_state:n,is_fullscreen:window.matchMedia("(display-mode: fullscreen)").matches,history_len:window.history.length},c?{}:{user_is_login:d}),{data_collection_enabled:d||"1"===o("guest-mode-flag","0")});return"ageVerify"===i("enter_method")&&(u.security_verification_aid="1459"),u}catch(e){}return{}},r=()=>({cookie_enabled:navigator.cookieEnabled,screen_width:screen.width,screen_height:screen.height,browser_language:navigator.language,browser_platform:navigator.platform,browser_name:navigator.appCodeName,browser_version:navigator.appVersion,browser_online:navigator.onLine,timezone_name:Intl.DateTimeFormat().resolvedOptions().timeZone})},12904:(e,t,n)=>{"use strict";n.d(t,{CQ:()=>r,Si:()=>c,Yp:()=>a,Zu:()=>s,sG:()=>l});var i,o=n(5902);!function(e){e[e.Unknown=0]="Unknown",e[e.WebLoggedIn=513]="WebLoggedIn",e[e.WebUSNotLoggedIn=514]="WebUSNotLoggedIn",e[e.WebUSNotLoggedInHighRisk=515]="WebUSNotLoggedInHighRisk",e[e.WebNonUSNotLoggedIn=516]="WebNonUSNotLoggedIn",e[e.WebUnder13=517]="WebUnder13",e[e.WebEUNotLoggedIn=518]="WebEUNotLoggedIn",e[e.WebEUNotLoggedInHighRisk=519]="WebEUNotLoggedInHighRisk"}(i||(i={}));const a=()=>"ageVerify"===(0,o.Hd)("enter_method"),r=3058,s=3059,l={m:"va",t:"sg",us:"ttp",boe:"boe","":void 0},c="bdturing-verify"},18829:(e,t,n)=>{"use strict";n.d(t,{n:()=>i});const i=({isVA:e,isLogin:t,isFTC:n,isHighRisk:i,isEU:o=!1})=>n?517:t?513:o&&i?519:o&&!i?518:e&&i?515:e&&!i?514:516},5902:(e,t,n)=>{"use strict";n.d(t,{Gz:()=>o,Hd:()=>a,J2:()=>r});const i=()=>{};function o(e=i,t=i){let n,o;function a(){n&&document[n]?e():t()}return"hidden"in document?(n="hidden",o="visibilitychange"):"msHidden"in document?(n="msHidden",o="msvisibilitychange"):"webkitHidden"in document&&(n="webkitHidden",o="webkitvisibilitychange"),"addEventListener"in document&&n&&o?(document.addEventListener(o,a,!1),document.removeEventListener.bind(document,o,a,!1)):i}function a(e,t=""){var n;try{return null!==(n=sessionStorage.getItem(e))&&void 0!==n?n:t}catch(e){return t}}function r(e,t){try{sessionStorage.setItem(e,t)}catch(e){}}},58156:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});const i={useast1a:"US-East",useast2a:"US-EastRed",useast5:"US-TTP",useast8:"US-TTP2",sg1:"Singapore-Central",my:"Singapore-Central",my2:"Singapore-Central",ie:"EU-TTP",no1a:"EU-TTP2"};function o(e){var t;return void 0!==e&&null!==(t=i[e])&&void 0!==t?t:"UNKNOWN"}},74631:(e,t,n)=>{"use strict";n.d(t,{MX:()=>r});var i=n(58632);const o=1e4;var a;!function(e){e[e.Pass=0]="Pass",e[e.Reject=1]="Reject",e[e.Retry=2]="Retry"}(a||(a={}));const r=new class{constructor(){this.domId="tiktok-verify-ele",this.captcha=null,this.verifyElement=null,this.open=!1,this.rejectPass=!1,this.checkVerify=(e,t,n,a,r)=>(0,i.__awaiter)(this,void 0,void 0,(function*(){var i;if("object"!=typeof e)return e;const{statusCode:s,code:l}=null!=e?e:{};if(s===o||l===String(o)){const s=l===String(o)?e:e.verifyConfig,c=a&&n&&!s.region.startsWith("ttp")?"ttp":s.region,d=yield this.loadCaptcha(c,t);if(-1===s.fp){const e=yield null===(i=this.captcha)||void 0===i?void 0:i.getFp();s.fp=e}return d?this.open?(yield this.updateState(),this.rejectPass?1:2):yield this.goVerify(s,a,null==r?void 0:r.lang,null==r?void 0:r.userMode):1}return 0})),this.destroy=()=>{var e;null===(e=this.captcha)||void 0===e||e.close(),this.verifyElement&&(document.body.removeChild(this.verifyElement),this.verifyElement=null)}}init(){this.verifyElement||(this.verifyElement=document.createElement("div"),this.verifyElement.setAttribute("id",this.domId),document.body.appendChild(this.verifyElement))}goVerify(e,t,n,i){return this.init(),new Promise((o=>{this.openVerify((()=>{this.closeVerify(),o(2)}),(()=>{this.closeVerify(!0),o(1)}),e,t,n,i)}))}closeVerify(e=!1){var t;this.open=!1,this.rejectPass=e,null===(t=this.captcha)||void 0===t||t.close()}openVerify(e,t,n,i,o,a){var r;const s={ele:this.domId,lang:null!=o?o:"en",successCb:e,showMode:"mask",closeCb:t,errorCb:()=>{},fpCookieOption:{domain:".tiktok.com",sameSite:"None",secure:!0}};i&&(s.host=i),this.open=!0,this.rejectPass=!0,null===(r=this.captcha)||void 0===r||r.render({userMode:a,verify_data:n,captchaOptions:s})}updateState(){return new Promise((e=>{if(!this.open)return void e();const t=setInterval((()=>{this.open||(clearInterval(t),e())}),800)}))}loadCaptcha(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(!this.captcha){let i;switch(e){case"boe":case"sg":i=n.e(4336).then(n.bind(n,28564));break;case"va":i=n.e(241).then(n.bind(n,85583));break;case"ie":i=n.e(3392).then(n.bind(n,48672));break;case"no1a":i=n.e(7181).then(n.bind(n,42379));break;case"gcp":case"in":i=n.e(1427).then(n.bind(n,4529));break;case"ttp":i=n.e(2318).then(n.bind(n,95768));break;case"ttp2":i=n.e(5112).then(n.bind(n,6360));break;default:return!1}const o=yield i;this.captcha=o,o.init({commonOptions:{aid:1988,did:t||"0",iid:"0"},captchaOptions:{fpCookieOption:{domain:".tiktok.com",sameSite:"None",secure:!0}}})}return!0}))}}},11732:(e,t,n)=>{"use strict";var i,o,a,r,s,l,c;n.d(t,{JO:()=>d,$v:()=>u}),function(e){e[e.UNDEFINED=0]="UNDEFINED",e[e.CREATE=1]="CREATE",e[e.LIVING=2]="LIVING",e[e.STOP=3]="STOP"}(i||(i={})),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.PREPARE=1]="PREPARE",e[e.ONLINE=2]="ONLINE",e[e.PAUSE=3]="PAUSE",e[e.OFFLINE=4]="OFFLINE",e[e.SUSPENDED=-1]="SUSPENDED",e[e.LIVE_AND_LEAVE=-2]="LIVE_AND_LEAVE",e[e.PAID_EVENT=-3]="PAID_EVENT",e[e.SUBSCRIBER_ONLY=-4]="SUBSCRIBER_ONLY",e[e.UNAVAILABLE=-5]="UNAVAILABLE",e[e.REGIONAL_UNAVAILABLE=-6]="REGIONAL_UNAVAILABLE",e[e.Blocked=-7]="Blocked",e[e.USER_RM_BLOCK=-8]="USER_RM_BLOCK",e[e.PARENT_RM_BLOCK=-9]="PARENT_RM_BLOCK",e[e.KickOut=-10]="KickOut",e[e.E_COMMERCE_BLOCK=-11]="E_COMMERCE_BLOCK",e[e.E_COMMERCE_USER_RM=-12]="E_COMMERCE_USER_RM",e[e.E_COMMERCE_PARENT_RM=-13]="E_COMMERCE_PARENT_RM"}(o||(o={})),function(e){e.Live="tiktok_live_view_window"}(a||(a={})),function(e){e[e.TRILL=1180]="TRILL",e[e.MUSICALLY=1233]="MUSICALLY"}(r||(r={})),function(e){e.TRILL="t",e.MUSICALLY="m",e.LITE="lite"}(s||(s={})),function(e){e[e.Normal=0]="Normal",e[e.SmartPlayer=1]="SmartPlayer"}(l||(l={})),function(e){e[e.UNSET=0]="UNSET",e[e.CLOSE=1]="CLOSE",e[e.OPEN=2]="OPEN"}(c||(c={}));const d=[{name:"use_container_exp",vid:["v0","v1","v2","v3"]},{name:"sharing_user_app_link",vid:["v1","v2"]},{name:"share_button_part1_test",vid:["v1","v2","v3","v4"]},{name:"expose_recharge_entry_pc",vid:["v1","v2","v3"]},{name:"live_studio_download_type",vid:["v1","v2"]},{name:"live_studio_entry",vid:["v1","v2","v3"]},{name:"live_context_optimize",vid:["v0","v1","v2","v3"]},{name:"live_react_query_cache",vid:["v0","v1"]},{name:"live_discover_draw_hover",vid:["v0","v1"]},{name:"live_discover_enter_shortcut",vid:["v0","v1"]},{name:"live_shortcuts_all",vid:["v0","v1"]},{name:"live_shortcuts_video",vid:["v0","v1"]},{name:"live_seamless_enter_room",vid:["v1","v2"]},{name:"live_room_seamless_switch",vid:["v0","v1"]},{name:"live_player_h265",vid:["v0","v1","v2","v3"]},{name:"live_player_switch_button",vid:["v1","v2"]},{name:"live_loading_icon",vid:["v1","v2"]},{name:"live_player_mute_text",vid:["v1","v2"]},{name:"live_player_handler",vid:["v1","v2","v3"]},{name:"live_player_icon",vid:["v1","v2"]},{name:"live_detail_non_logged_in_entry",vid:["v1","v2","v3"]},{name:"live_dynamic_bg",vid:["v1","v2"]},{name:"live_player_enable_1080p",vid:["v1","v2"]},{name:"live_auto_definition_tips",vid:["v1","v2","v3"]},{name:"live_room_age_restriction",vid:["v1","v2","v3"]},{name:"live_feed_preload",vid:["v0","v1"]},{name:"live_feed_style",vid:["v1","v2","v3"]},{name:"live_feed_auto_play_3",vid:["v1","v2","v3"]},{name:"live_player_e2e_low_delay_preload_time_test",vid:["v1","v2","v3"]},{name:"show_player_stats_entry",vid:["v1","v2"]},{name:"live_player_codetype",vid:["v1","v2"]},{name:"live_lcp_perf_optimize",vid:["v1","v2","v3","v4"]},{name:"live_report_reason_api",vid:["v1","v2"]},{name:"live_report_comment_reason_api",vid:["v1","v2"]},{name:"live_recharge_by_amount",vid:["v0","v1","v2"]},{name:"live_recharge_login",vid:["v1","v2"]},{name:"exchange_retention_popup",vid:["v1","v2"]},{name:"live_recharge_homescreen",vid:["v0","v1","v2"]},{name:"live_wallet_performance_packup",vid:["v0","v1"]},{name:"live_subscription_cashier",vid:["v1","v2"]},{name:"show_recharge_advantage",vid:["v1","v2"]},{name:"live_preview_web",vid:["v1","v2","v3"]},{name:"live_preview_web_son",vid:["v1","v2","v3"]},{name:"live_stack_insert_context",vid:["v1","v2"]},{name:"live_csr_insert_context",vid:["v1","v2"]},{name:"live_like",vid:["v1","v2"]},{name:"live_room_csr",vid:["v1","v2"]},{name:"webapp_fyp_live_opt",vid:["v0","v1"]},{name:"live_survey_open",vid:["v0","v1"]},{name:"live_volume_balance",vid:["v0","v1","v2"]},{name:"live_low_latency_v2",vid:["v0","v1"]},{name:"live_gift_add_animation",vid:["v0","v1"]},{name:"live_gift_add_animation_send_loading",vid:["v0","v1"]},{name:"live_abr_memo",vid:["v0","v1"]},{name:"live_stage_definition",vid:["v0","v1"]},{name:"live_recharge_path_shortening_home_screen",vid:["v0","v1","v2"]},{name:"live_enter_room_chore",vid:["v0","v1"]},{name:"live_recharge_get_coins_entrance_for_you_page",vid:["v0","v1","v2"]},{name:"enable_ec_lcc",vid:["v0","v1"]},{name:"live_chat_message_cache_opt",vid:["v0","v1"]},{name:"live_screen_radio_opt_display_bottom",vid:["v0","v1"]},{name:"live_screen_radio_opt_side_nav",vid:["v0","v1"]},{name:"live_quick_chat_expand",vid:["v0","v1"]},{name:"live_chat_refresh_rate_opt",vid:["v0","v1","v2"]},{name:"live_feed_save",vid:["v0","v1"]},{name:"live_edenx_runtime",vid:["v1","v2"]},{name:"webapp_live_nav_avatar",vid:["v0","v1"]},{name:"webapp_live_recommand_switch",vid:["v0","v1"]},{name:"webapp_live_recommand_sort",vid:["v0","v1"]},{name:"live_detail_endlive_auto_feed",vid:["v0","v1","v2"]},{name:"video_feed_mode_url_test",vid:["v1","v2"]},{name:"browser_device_id",vid:["v1"]},{name:"volume_normalize",vid:["v1","v2","v3","v4"]},{name:"xgplayer_preload_config",vid:["v1","v2","v3","v4"]},{name:"hevc_desktop_server",vid:["v1","v2","v3"]},{name:"hevc_mobile_server",vid:["v1","v2","v3"]},{name:"video_serverpush",vid:["v1","v2"]},{name:"mobile_vodkit",vid:["v1","v2","v3","v4"]},{name:"web_player_refactor",vid:["v1","v2"]},{name:"xg_volume_test",vid:["v1","v2","v3","v4","v5"]},{name:"feed_scroll_opt",vid:["v0","v1","v2","v3"]},{name:"video_bitrate_adapt",vid:["v1","v2","v3"]},{name:"explore_trending_topics",vid:["v0","v1"]},{name:"islands_arch_phase1",vid:["v0","v1"]},{name:"islands_arch_phase2",vid:["v0","v1","v2"]},{name:"islands_arch_video_detail",vid:["v0","v1"]},{name:"islands_arch_explore",vid:["v0","v1","v2"]},{name:"bundle_size_reverse",vid:["v0","v1"]},{name:"remove_tooltip",vid:["v0","v1","v2","v3","v4","v5"]},{name:"optimize_bot_ssr_count",vid:["v1","v2","v3","v4"]},{name:"sharing_reverse_recommend",vid:["v1","v2","v3","v4","v5","v6"]},{name:"sharing_android_jump_optimization",vid:["v0","v2","v4","v5"]},{name:"reflow_video_s2s",vid:["v1","v2","v3"]},{name:"mobile_s2s",vid:["v1","v2"]},{name:"s2s_afdp",vid:["v0","v1"]},{name:"sharing_icon_popup_test",vid:["v0","v1"]},{name:"yml_ui_optimize",vid:["v0","v1","v2","v3"]},{name:"reflow_comment_optimization",vid:["v1","v2","v3","v4"]},{name:"islands_arch_user_profile",vid:["v0","v1","v2"]},{name:"islands_arch_rest_page",vid:["v0","v1"]},{name:"feed_scroll_opt_data_collection",vid:["v0","v2"]},{name:"explore_ui_change",vid:["v0","v1","v2","v3","v4"]},{name:"mobile_search_test",vid:["v1","v2"]},{name:"pumbaa_enable_test",vid:["v1","v2"]},{name:"sharing_now_product_intro",vid:["v1","v2","v3"]},{name:"tt4b_ads",vid:["v1","v2"]},{name:"foryou_prefetch",vid:["v1","v2"]},{name:"studio_web_eh_entrance_v3",vid:["v1","v2","v3","v4"]},{name:"tteh_effect_anchor_v1",vid:["v1","v2"]},{name:"periodic_login_popup_interval",vid:["v1","v2","v3","v4","v5"]},{name:"enable_slardar_image",vid:["v1","v2"]},{name:"explore_shunt_test",vid:["v1","v2","v3"]},{name:"new_redirect",vid:["v0","v1"]},{name:"search_video",vid:["v1","v2","v3","v4"]},{name:"video_reflow_optimization",vid:["v1","v6"]},{name:"video_reflow_andriod_call_phase2_api",vid:["v1","v2"]},{name:"video_reflow_andriod_call_phase2_time",vid:["v1","v4"]},{name:"video_reflow_onelink_preconnect",vid:["v1","v2"]},{name:"video_reflow_android_auto_awaken",vid:["v1","v2","v3"]},{name:"video_reflow_awaken_fb",vid:["v1","v2"]},{name:"sharing_video_remove_rem",vid:["v1","v2"]},{name:"sharing_hashtag_pns",vid:["v1","v2"]},{name:"video_reflow_csr_render",vid:["v0","v1"]},{name:"video_reflow_csr_skeleton_enhance",vid:["v0","v1","v2","v3"]},{name:"video_reflow_mpa_optimization",vid:["v0","v1"]},{name:"video_reflow_skeleton_ui",vid:["v0","v1"]},{name:"video_reflow_refactor_server_recommend_list",vid:["v0","v1"]},{name:"sharing_photo_optimization",vid:["v0","v1","v2","v3"]},{name:"video_reflow_preload_install",vid:["v0","v1"]},{name:"video_reflow_onelink_retargeting",vid:["v0","v1","v2"]},{name:"video_reflow_gp_referer",vid:["v0","v1"]},{name:"video_reflow_facebook_af_dp",vid:["v0","v1","v2"]},{name:"webapp_vdc_scedule",vid:["v1","v2"]},{name:"sharing_vdc_schedule",vid:["v1","v2"]},{name:"search_add_live",vid:["v1","v2"]},{name:"search_transfer_history",vid:["v1","v2"]},{name:"search_transfer_guesssearch",vid:["v1","v2"]},{name:"search_top_author_card",vid:["v0","v1","v2"]},{name:"search_yml_guess_count",vid:["v0","v1","v2","v3"]},{name:"sharing_video_swiper_recommendations",vid:["v0","v1","v2","v3","v4"]},{name:"sharing_video_use_smart",vid:["v0","v1","v2"]},{name:"sharing_video_reduce_consumption",vid:["v0","v1","v2","v3","v4","v5","v6","v7","v8"]},{name:"sharing_video_pause_guide",vid:["v0","v1","v2"]},{name:"sharing_video_ui",vid:["v0","v1"]},{name:"sharing_short_dl",vid:["v0","v1"]},{name:"sharing_redirect_page_strategy",vid:["v0","v1"]},{name:"sharing_video_first",vid:["v0","v1","v2","v3","v4","v5"]},{name:"sharing_video_first_use_campaign",vid:["v0","v1"]},{name:"sharing_skeleton_lite",vid:["v0","v1"]},{name:"search_bar_style_opt",vid:["v1","v2","v3"]},{name:"search_remove_related_search",vid:["v0","v1","v2"]},{name:"search_add_non_personalized_switch",vid:["v1","v2"]},{name:"search_mobile_add_search_recommendations",vid:["v1","v2"]},{name:"feed_data_cache",vid:["v1","v2","v3","v4"]},{name:"webapp_browser_mode_new_tab",vid:["v1","v2"]},{name:"qr_sso_popup",vid:["v1","v2","v3","v4","v5"]},{name:"desktop_ui_opt",vid:["v1","v2","v3","v4"]},{name:"non_personalized_feeds_web",vid:["v1","v2"]},{name:"desktop_ui_reply",vid:["v1","v2","v3","v4","v5","v6"]},{name:"desktop_avatar_nick_name",vid:["v1","v2"]},{name:"search_entry_search_bar",vid:["v1","v2"]},{name:"search_entry_comment_top",vid:["v1","v2"]},{name:"use_inbox_notice_count_api",vid:["v1","v2"]},{name:"autoscroll_reposition",vid:["v0","v1"]},{name:"banner_ad_enable",vid:["v0"]},{name:"sidenav_test",vid:["v1","v2"]},{name:"creator_center_connect",vid:["v1","v2","v3"]},{name:"creator_center_connect_global",vid:["v1","v2","v3"]},{name:"webapp_auto_refresh",vid:["v1","v2","v3"]},{name:"change_list_length_new",vid:["30","20","15"]},{name:"preload_with_left",vid:["0","2","3","4","5"]},{name:"browser_mode_video_controller",vid:["v1","v2"]},{name:"one_column_player_size",vid:["v1","v2","v3","v4","v5"]},{name:"sign_up_webapp_region_change",vid:["v1","v2"]},{name:"video_detail_search_bar",vid:["v1","v2"]},{name:"search_entry_comment_word",vid:["v1","v2"]},{name:"confirm_logout",vid:["v1","v2"]},{name:"creator_center_reverse",vid:["v1","v2"]},{name:"desktop_app_test",vid:["v1","v2"]},{name:"browser_login_redirect",vid:["v1","v2"]},{name:"webapp_switch_account",vid:["v1","v2","v3","v4"]},{name:"search_report",vid:["v1","v2"]},{name:"search_keep_sug_show",vid:["v1","v2"]},{name:"webapp_login_email_phone",vid:["v1","v2"]},{name:"use_follow_v2",vid:["v1","v2"]},{name:"search_server",vid:{}},{name:"add_kap_entry",vid:["v1","v2"]},{name:"enable_ml_model",vid:["v1","v2","v3","v4","v5","v6"]},{name:"enable_ml_model_suggest_content",vid:["v0","v1"]},{name:"mobile_csr_test",vid:["v1","v2"]},{name:"webapp_login_prediction",vid:["v1","v2","v3","v4","v5","v6","v7","v8","v9","v10"]},{name:"login_modal_ui_revamp",vid:["v1","v2","v3","v4"]},{name:"browser_mode_encourage_login",vid:["v1","v2","v3"]},{name:"project_ace_control",vid:["v0","v1"]},{name:"soft_bank_test",vid:["v1","v2"]},{name:"enable_ads",vid:["v1","v2"]},{name:"enable_about_this_ad",vid:["v1","v2"]},{name:"digital_wellbeing_web",vid:["v0","v1"]},{name:"scheduled_breaks_teens",vid:["v0","v1"]},{name:"fix_tea_session",vid:["v1","v2","v3"]},{name:"enable_profile_pinned_video",vid:["v1","v2","v3"]},{name:"enable_fb_sdk",vid:["v1","v2"]},{name:"live_preview_web",vid:["v1","v2","v3"]},{name:"live_preview_web_son",vid:["v1","v2","v3"]},{name:"live_login_reflow_btn",vid:["v1","v2"]},{name:"comment_self_send_optimize",vid:["v0","v1"]},{name:"mobile_consumption_limit_logged_in",vid:["v1","v2","v3","v4","v5"]},{name:"mobile_consumption_limit_non_logged_in",vid:["v1","v2","v3","v4","v5","v6","v7","v8"]},{name:"add_profile_left_bar",vid:["v0","v1","v2","v3"]},{name:"explore_all_tab",vid:["v0","v1","v2","v3","v4","v5"]},{name:"report_item_tag",vid:["v1","v2"]},{name:"login_option_order_by_metrics",vid:["v1","v2","v3"]},{name:"friends_tab",vid:["v0","v1"]},{name:"remove_bottom_banner",vid:["v1","v2","v3","v4","v5"]},{name:"webapp_login_prediction_full",vid:["v1","v2"]},{name:"webapp_login_prediction_reverse",vid:["v1","v2"]},{name:"video_detail_reflow_card",vid:["v0","v1"]},{name:"show_aigc_label_web",vid:["v0","v1"]},{name:"webapp_feature_expansion",vid:["v0","v1"]},{name:"webapp_login_causal_inference",vid:["v1","v2","v3","v4","v5","v6","v7","v8","v9","v10","v11","v12","v13","v14","v15","v16","v17","v18","v19","v20","v21","v22","v23","v24","v25","v26","v27","v28","v29","v30"]},{name:"non_logged_in_comments",vid:["v1","v2","v3","v4"]},{name:"s2s",vid:["v0","v1"]},{name:"kap_prefetch",vid:["v1","v2"]},{name:"kap_jumper_opt",vid:["v1","v2"]},{name:"auto_scroll",vid:["v1","v3"]},{name:"tiktok",vid:[]},{name:"mobile_consumption_limit_login",vid:["v1","v2","v3"]},{name:"preview_cover",vid:["v0","v1"]},{name:"search_preview_ui_change",vid:["v0","v1","v2","v3"]},{name:"seo_preview_ui_change",vid:["v0","v1"]},{name:"use_profile_avatar",vid:["v1","v2"]},{name:"webapp_login_causal_inference_validation",vid:["v1","v2","v3","v4","v5"]},{name:"webapp_login_causal_inference_data_collection",vid:["v1","v2","v3","v4","v5"]},{name:"webapp_causal_inference_dark_mode_data_collection",vid:["v1","v2","v3"]},{name:"webapp_causal_inference_auto_mute_data_collection",vid:["v1","v2","v3"]},{name:"webapp_causal_inference_auto_scroll_data_collection",vid:["v1","v2","v3"]},{name:"webapp_causal_inference_auto_scroll_validation",vid:["v1","v2","v3"]},{name:"webapp_causal_inference_landing_page",vid:["v0","v1"]},{name:"webapp_causal_inference_dark_mode_validation",vid:["v1","v2","v3","v4","v5"]},{name:"webapp_causal_inference_periodic_popup_validation",vid:["v1","v2","v3","v4","v5","v6","v7"]},{name:"webapp_causal_inference_auto_mute_validation",vid:["v1","v2","v3","v4","v5"]},{name:"last_login_method",vid:["v1","v2","v3"]},{name:"webapp_moderation",vid:["v0","v1"]},{name:"mobile_swiping_gesture",vid:["v0","v1"]},{name:"should_recom_reduce_icon_risk",vid:["v0","v1"]},{name:"browser_content_logic",vid:["v1","v2","v3","v4"]},{name:"mobile_predictive_data",vid:["v0","v1","v2","v3","v4","v5","v6","v7","v8","v9","v10","v11","v12","v13","v14","v15","v16","v17","v18","v19","v20","v21","v22","v23","v24","v25","v26","v27","v28","v29"]},{name:"mobile_fps_logger",vid:["v0","v1"]},{name:"delay_guest",vid:["0","1","2","3","5","8","10"]},{name:"delay_guest_fyp",vid:["0","1","2","3","5","8","10"]},{name:"delay_guest_others_homepage",vid:["0","1","2","3","5","8","10"]},{name:"delay_guest_videos",vid:["0","1","2","3","5","8","10"]},{name:"delay_guest_discover",vid:["0","1","2","3","5","8","10"]},{name:"delay_guest_explore",vid:["0","1","2","3","5","8","10"]},{name:"delay_guest_other",vid:["0","1","2","3","5","8","10"]},{name:"webapp_auto_dark_mode_data_collection",vid:["v0","v1"]},{name:"webapp_dynamic_bottom_right",vid:["v0","v1","v2"]},{name:"webapp_odin_id_fe_reverse",vid:["v0","v1"]},{name:"pc_non_personalized_suggested_account",vid:["v0","v1"]},{name:"pc_non_personalized_explore",vid:["v0","v1"]},{name:"mobile_non_personalized_suggest_account",vid:["v0","v1"]},{name:"video_detail_page_video_play",vid:["v1","v2"]},{name:"mobile_replace_signup_with_login",vid:["v0","v1"]},{name:"use_aligned_copies",vid:["v0","v1","v2"]},{name:"desktop_web_survey_new",vid:["v0","v1"]},{name:"desktop_web_survey_old",vid:["v0","v1"]},{name:"promote_qr_code",vid:["v0","v1"]},{name:"mobile_remove_music_info",vid:["v0","v1"]},{name:"mobile_enable_xg",vid:["v0","v1"]},{name:"enable_mini_player",vid:["v0","v1","v2","v3","v4","v5","v6"]},{name:"enable_mini_player_new_design",vid:["v0","v1"]},{name:"enable_mini_player_switch_tab_popup",vid:["v0","v1","v2","v3","v4"]},{name:"enable_upload_refactor",vid:["v0","v1"]},{name:"enable_message_refactor",vid:["v0","v1"]},{name:"guest_mode_redesign",vid:["v0","v1","v2","v3"]},{name:"sharing_aso",vid:["v1","v2","v3"]},{name:"webapp_repost_label",vid:["v0","v1"]},{name:"webapp_repost_tab",vid:["v0","v1"]},{name:"webapp_repost_action",vid:["v0","v1","v2","v3","v4"]},{name:"webapp_repost_notice",vid:["v0","v1"]},{name:"webapp_creator_post_sort",vid:["v0","v1","v2","v3","v4","v5"]},{name:"webapp_creator_just_watched",vid:["v0","v1","v2","v3","v4"]},{name:"webapp_jotai_foryou",vid:["v0","v1","v2","v3","v4","v5","v6"]},{name:"guide_user_to_next_video",vid:["v0","v1","v2"]},{name:"creator_to_fyp",vid:["v0","v1","v2"]},{name:"video_detail_end_card",vid:["v0","v1","v2"]},{name:"detail_to_explore",vid:["v0","v1","v2","v3","v4"]},{name:"three_column_gif",vid:["v0","v1"]},{name:"creator_header_height",vid:["v0","v1","v2","v3"]},{name:"encourage_share_repost",vid:["v0","v1","v2","v3","v4"]},{name:"webapp_jotai_detail",vid:["v0","v1"]},{name:"fyp_interest_selector",vid:["v0","v1","v2","v3"]},{name:"video_detail_yml_ui",vid:["v1","v2","v3","v4"]},{name:"webapp_mobile_web2app_cta_guide",vid:["v0","v1","v2","v3","v4"]},{name:"video_detail_auto_pip_opt",vid:["v0","v1","v2","v3","v4","v5","v6"]},{name:"fyp_redesign",vid:["v0","v1"]},{name:"seo_ios_campaign",vid:["v0","v1"]},{name:"seo_campaign",vid:["v0","v1"]},{name:"seo_campaign_unified",vid:["v0","v1"]},{name:"video_detail_yml_creator",vid:["v0","v1","v2"]},{name:"video_detail_author_card",vid:["v0","v1","v2","v3"]},{name:"video_detail_nav_opt",vid:["v0","v1","v2","v3"]},{name:"video_detail_nav_shortcut",vid:["v0","v1","v2","v3","v4"]},{name:"playback_refactor_desktop",vid:["v0","v1"]},{name:"playback_refactor_mobile",vid:["v0","v1"]},{name:"player_degrade",vid:["v0","v1","v2"]},{name:"player_retry",vid:["v0","v1","v2"]},{name:"tt_player_logger",vid:["v0","v1"]},{name:"tt_player_reuse",vid:["v0","v1"]},{name:"video_details_player_redesign_engagement",vid:["v0","v1","v2","v3"]},{name:"video_details_player_redesign_player",vid:["v0","v1","v2","v3"]},{name:"web_on_device_ml",vid:["v1","v2","v3","v4"]},{name:"use_navigation_refactor",vid:["v0","v1","v2","v3","v4","v5"]},{name:"use_left_navigation_refactor",vid:["v0","v1","v2","v3"]},{name:"video_detail_responsive_ui",vid:["v0","v1","v2"]},{name:"webapp_explore_nav_order",vid:["v0","v1","v2"]},{name:"webapp_explore_video_info",vid:["v0","v1","v2","v3","v4","v5","v6"]},{name:"webapp_explore_aspect_ratio",vid:["v0","v1","v2","v3","v4","v5"]},{name:"webapp_explore_remove_category",vid:["v0","v1","v2","v3"]},{name:"explore_category_ranking",vid:["v0","v1","v2"]},{name:"webapp_collection_profile",vid:["v0","v1"]},{name:"webapp_collection_adder",vid:["v0","v1","v2","v3"]},{name:"webapp_inapp_notice",vid:["v0","v1","v2","v3","v4"]},{name:"immersive_player",vid:["v0","v1","v2","v3","v4"]},{name:"new_guest_mode_hot",vid:["v0","v1"]},{name:"new_guest_mode_other",vid:["v0","v1"]},{name:"kep_skeleton_cta",vid:["v1","v2","v3"]},{name:"kep_streaming",vid:["v0","v1","v2"]},{name:"kep_cta_style",vid:["v0","v1","v2","v3"]},{name:"fyp_comments_panel",vid:["v0","v1","v2","v3"]},{name:"web_dm_test_force_http",vid:["v1","v2"]},{name:"reduce_user_item_list",vid:["v0","v1","v2","v3","v4","v5"]},{name:"web_dm_enable_debug",vid:["v1","v2"]},{name:"web_dm_multimedia_msg",vid:["v1","v2"]},{name:"web_dm_sticker_msg_display",vid:["v1","v2"]},{name:"web_dm_group_chat",vid:["v1","v2"]},{name:"web_dm_decrease_lcp",vid:["v1","v2"]},{name:"web_dm_icon_click_check",vid:["v1","v2"]},{name:"webapp_query_comments_popover",vid:["v0","v1"]},{name:"user_cta_optimization_user_phase2",vid:["v0","v1","v2"]},{name:"kep_coin_app",vid:["v0","v1","v2","v3"]},{name:"fyp_hide_music_info",vid:["v0","v1","v2"]},{name:"detail_page_comments_redesign",vid:["v0","v1","v2"]},{name:"enable_autoscroll_moremenu",vid:["v0","v1"]},{name:"enable_video_detail_moremenu_refactor",vid:["v0","v1","v2","v3"]},{name:"kep_reverse_cta_fix",vid:["v0","v1"]},{name:"detail_page_comments_right_side",vid:["v0","v1","v2","v3","v4"]},{name:"aggregation_page_cta_enhancement",vid:["v0","v1","v2"]},{name:"kep_pop_up_auto_dismiss",vid:["v0","v1","v2","v3"]},{name:"revamp_share_menu",vid:["v0","v1","v2","v3","v4","v5"]},{name:"remove_disclaimer",vid:["v0","v1"]},{name:"player_error_optimize",vid:["v0","v1","v2","v3"]},{name:"video_closed_caption",vid:["v0","v1","v2","v3","v4"]},{name:"for_you_page_cta_enhancement",vid:["v0","v1","v2","v3","v4","v5"]},{name:"nav_phase_3",vid:["v0","v1","v2","v3"]},{name:"image_fetch_priority",vid:["v0","v1"]},{name:"km_webapp_stm",vid:["v0","v1"]},{name:"km_default_limit",vid:["v0","v1"]},{name:"kep_video_skeleton_cta",vid:["v0","v1","v2"]},{name:"kep_video_play",vid:["v0","v1","v2"]},{name:"feed_change_optimize_image",vid:["v0","v1","v2"]},{name:"feed_change_optimize_ff",vid:["v0","v1","v2"]},{name:"solaria_portrait_service",vid:["v0","v1"]},{name:"refetch_for_video_error",vid:["v0","v1"]},{name:"enable_post_translation",vid:["v0","v1"]},{name:"global_web_footer",vid:["v0","v1"]},{name:"user_bundle_opt",vid:["v0","v1","v2"]},{name:"kep_click_opt_phase1",vid:["v0","v1","v2","v3"]},{name:"kep_click_opt_phase2",vid:["v0","v1","v2","v3"]},{name:"mobile_android_jump_optimization",vid:["v0","v1","v2"]},{name:"guest_mode_interest",vid:["v0","v1","v2"]},{name:"redesign_login_popup",vid:["v0","v1","v2","v3","v4"]},{name:"kep_add_search_entry",vid:["v0","v1","v2"]},{name:"react_upgrade_experiment",vid:["v0","v1"]},{name:"desktop_faas_render",vid:["v1","v2"]},{name:"ui_layout_alignment",vid:["v1","v2","v3"]},{name:"live_public_screen_skeleton",vid:["v0","v1"]},{name:"long_video_popup_display_optimization",vid:["false","true"]},{name:"video_reflow_poi_anchor",vid:["v0","v1"]},{name:"search_add_related_search",vid:["v1","v2"]},{name:"should_highlight_hashtag",vid:["v1","v2"]},{name:"hashtag_to_top_search",vid:["v1","v2"]},{name:"it_or_us",vid:["v1","v2"]},{name:"fyp_up_down",vid:["v0","v1"]}],u=["desktop_app","desktop_ui_opt_debug","add_recipe_card","enable_privacy_center","collapse_seo_header","collapse_seo_header_mobile","desktop_app_survey","shape_loggedin_disabled","hashtag_viewcount","should_show_effect_detail_page","find_migrate_video_list_api","kep_remove_desc_keywords","kep_remove_meta_desc_keywords","user_canonical_url","hashtag_canonical_url","music_canonical_url","find_card_refactor","live_edenx_runtime","kep_new_grid","enable_kep_ecommerce_search"]},95584:(e,t,n)=>{"use strict";var i;n.d(t,{Y:()=>i}),function(e){let t;!function(e){e.WebSite="WebSite",e.ItemList="ItemList",e.VideoObject="VideoObject",e.SocialMediaPosting="SocialMediaPosting",e.WebPage="WebPage",e.Page="Page",e.CollectionPage="CollectionPage",e.BreadcrumbList="BreadcrumbList",e.Person="Person",e.ProfilePage="ProfilePage",e.MusicRecording="MusicRecording",e.QAPage="QAPage",e.Event="Event",e.ListItem="ListItem",e.Thing="Thing",e.Product="Product"}(t=e.JsonldType||(e.JsonldType={}))}(i||(i={}))},13761:(e,t,n)=>{"use strict";var i;n.d(t,{k:()=>i}),function(e){let t;!function(e){e[e.META_PATH=1]="META_PATH",e[e.META_EXP=2]="META_EXP",e[e.META_PAGE=3]="META_PAGE",e[e.JSONLD_PATH=4]="JSONLD_PATH",e[e.JSONLD_EXP=5]="JSONLD_EXP",e[e.JSONLD_PAGE=6]="JSONLD_PAGE"}(t=e.SERPProcessType||(e.SERPProcessType={}))}(i||(i={}))},42721:(e,t,n)=>{"use strict";n.d(t,{ET:()=>o,FR:()=>i});const i="webapp.a-b",o="b_c"},35248:(e,t,n)=>{"use strict";n.d(t,{$m:()=>i,_v:()=>o});const i=["AT","BE","BG","HR","CY","CZ","DE","DK","EE","EL","FI","FR","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","NO","IS","LI"],o=i.concat(["GB","CH"]);var a,r;!function(e){e.DEFAULT="DEFAULT",e.SG="ALL_SG",e.VA="MALI_VA",e.TTP="TTP",e.BOE="BOE"}(a||(a={})),function(e){e.DEFAULT="DEFAULT",e.BOE="BOE",e.US_BOE="US_BOE",e.SG="ALL_SG",e.VA="MALI_VA",e.TTP="TTP",e.EU_TTP="EU_TTP",e.US_TTP="US_TTP",e.US_TTP2="US_TTP2"}(r||(r={}))},84323:(e,t,n)=>{"use strict";n.d(t,{UH:()=>o,W_:()=>a,q7:()=>i});const i=["AT","BE","BG","HR","CY","CZ","DE","DK","EE","EL","FI","FR","GB","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","NO","IS","LI"],o=["AO","BF","BI","BJ","BW","CD","CF","CG","CI","CM","CV","ER","ET","GA","GH","GM","GN","GQ","GW","KE","KM","LR","LS","MG","ML","MU","MW","MZ","NA","NE","NG","RW","SC","SD","SL","SN","SO","SS","ST","SZ","TD","TG","TZ","UG","ZM","ZW"],a=["JP","KR"]},4929:(e,t,n)=>{"use strict";n.d(t,{AY:()=>a,Lq:()=>i,Nm:()=>d,TZ:()=>l,Uy:()=>o,WU:()=>u,wX:()=>c});const i="5dc26cf008d511e9b571e1bc0c9e23b5",o="3f4a780066b911eba8eda5a15496ac5a",a="c5156440043611eab3e269e42dc9b378",r={"id-ID":{displayName:"Bahasa Indonesia",alias:["id","id-id","in-id","in"]},"ms-MY":{displayName:"Bahasa Melayu",alias:["ms","ms-bn","ms-my"]},"jv-ID":{displayName:"Basa Jawa",alias:["jv","jv-jv"]},"ceb-PH":{displayName:"Cebuano",alias:["ceb","ceb-ph"]},"cs-CZ":{displayName:"Čeština",alias:["cs","cs-cz"]},"de-DE":{displayName:"Deutsch",alias:["de","de-at","de-ch","de-de","de-li","de-lu"]},en:{displayName:"English",alias:[]},es:{displayName:"Español",alias:["es-es","es-xl","es-ES"]},"fil-PH":{displayName:"Filipino",alias:["fil","tl-ph","tl","fil-ph"]},fr:{displayName:"Français",alias:["fr-be","fr-ca","fr-ch","fr-fr","fr-lu","fr-mc"]},"it-IT":{displayName:"Italiano",alias:["it","it-ch","it-it"]},"hu-HU":{displayName:"Magyar",alias:["hu","hu-hu"]},"nl-NL":{displayName:"Nederlands",alias:["nl","nl-be","nl-nl"]},"pl-PL":{displayName:"Polski",alias:["pl","pl-pl"]},"pt-BR":{displayName:"Português",alias:["pt_BR","pt-br","pu","pt","pt-pt"]},"ro-RO":{displayName:"Română",alias:["ro","ro-ro"]},"fi-FI":{displayName:"Suomi",alias:["fi","fi-fi"]},"sv-SE":{displayName:"Svenska",alias:["sv","sv-se"]},"vi-VN":{displayName:"Tiếng Việt",alias:["vi","vi-vn"]},"tr-TR":{displayName:"Türkçe",alias:["tr","tr-tr"]},"el-GR":{displayName:"Ελληνικά",alias:["el","el-gr"]},"ru-RU":{displayName:"Русский",alias:["ru","ru-ru"]},"uk-UA":{displayName:"Українська",alias:["uk","uk-ua"]},"he-IL":{displayName:"עברית",alias:["he","he-il"]},ur:{displayName:"اردو",alias:[]},ar:{displayName:"العربية",alias:["ar-ae","ar-bh","ar-dz","ar-eg","ar-iq","ar-jo","ar-kw","ar-lb","ar-ly","ar-ma","ar-om","ar-qa","ar-sa","ar-sy","ar-tn","ar-ye"]},"hi-IN":{displayName:"हिंदी",alias:["hi","hi-in"]},"bn-IN":{displayName:"বাংলা",alias:["bn","bn-in"]},"th-TH":{displayName:"ภาษาไทย",alias:["th","th-th"]},"my-MM":{displayName:"မြန်မာ",alias:["my","my","my-mm"]},"km-KH":{displayName:"ខ្មែរ",alias:["km","km-kh"]},"ja-JP":{displayName:"日本語",alias:["ja","ja-jpan","ja-jp"]},"zh-Hant-TW":{displayName:"中文 (繁體)",alias:["zh","zh_Hant","zh_TW","zh-tw","zh-hk","zh-Hant","zh-hant-tw"]},"zh-Hans":{displayName:"中文 (简体)",alias:["zh-hans","zh_hans","zh_Hans","zh-cn"]},"ko-KR":{displayName:"한국어",alias:["ko","ko-kr","ko-kore"]}},s=Object.entries(r).map((([e,{alias:t}])=>[e,...t])),l=new Map(s.reduce(((e,t)=>{const n=t[0];return t.forEach((t=>{e.push([t.toLocaleLowerCase(),n])})),e}),[])),c=Object.entries(r).map((([e,{displayName:t}])=>({label:t,value:e}))),d="en",u="tiktok_webapp_lang"},10828:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,U:()=>o});const i="https://www.tiktok.com",o="https://sf-static.tiktokcdn.com/obj/eden-sg/uhtyvueh7nulogpoguhm/tiktok-icon2.png"},65450:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});const i="seo.abtest"},63615:(e,t,n)=>{"use strict";n.d(t,{Ow:()=>o}),n(24643);var i=n(40099);const o="webapp.app-context";(0,i.createContext)(null)},64356:(e,t,n)=>{"use strict";n.d(t,{Ss:()=>r,hp:()=>s,rv:()=>l}),n(24643);var i=n(50830),o=n(16378),a=n.n(o);const r=(0,n(40099).createContext)({t:(e,t,n)=>n&&"string"==typeof n?n:e,hasLoaded:a(),loadStarling:a(),initialNamespaces:[],lang:""}),s=new i.n("i18n"),l="webapp.i18n-translation"},84987:(e,t,n)=>{"use strict";n.d(t,{X:()=>r,d:()=>s});var i=n(24643),o=n(57432),a=n.n(o);const r=(0,n(40099).createContext)({sprites:new Map,add:a(),remove:()=>!1,serialize:()=>""}),s=function({context:e,children:t}){return(0,i.jsx)(r.Provider,Object.assign({value:e},{children:t}))}},51660:(e,t,n)=>{"use strict";n.d(t,{uk:()=>s,qm:()=>u}),n(4474);var i=n(35267),o=n(4929);const a=/(facebookexternalhit|whatsapp|twitterbot|developers\.snap\.com\/robots|Linespider|LinkedInBot|Discordbot|TelegramBot|LarkBot|vk\.com\/dev\/Share)|redditbot/i;var r;!function(e){e.WebApp="Webapp",e.Analytics="MT_Analytics",e.Reflow="MT_Reflow",e.Login="WebApp_Login",e.POI="poi_web",e.RechargeReferral="Webapp_recharge_referral",e.KickUserFrontier="kick_user_frontier"}(r||(r={}));const s=(e="")=>"zh-Hans"===e?e:e.split("-")[0].replace("zh","zh-Hant")||e||"en";function l(e){let t;return t=Array.isArray(e)?e[e.length-1]:null!=e?e:"",t}function c(e){const t=l(e).toLocaleLowerCase();return!!t&&o.TZ.has(t)}function d(e){var t;const n=l(e).toLocaleLowerCase();return c(n)&&null!==(t=o.TZ.get(n))&&void 0!==t?t:o.Nm}function u(e){var t,n;const{pathname:r,query:s}=(0,i.xw)(),{userAgent:l,acceptLanguage:u}=(0,i.T6)();let p=(null!=e?e:r).split("/")[1];if(function(e){return Boolean(e.startsWith("/download"))}(null!=e?e:r)&&(p=(null!=e?e:r).split("/")[2]),p&&c(p))return d(p);const{lang:v,langCountry:g,language:m,sharer_language:h}=s,_=[g,v,m];a.test(l)&&_.push(h);for(const e of _)if(e&&c(e))return d(e);const f=(0,i.MJ)(o.WU);if(f&&c(f))return d(f);const y=null===(t=l.match(/ByteFullLocale\/([\w\-_]+)/))||void 0===t?void 0:t[1];if(y&&c(y))return d(y);const b=null===(n=l.match(/ByteLocale\/([\w\-_]+)/))||void 0===n?void 0:n[1];if(b&&c(b))return d(b);for(const e of u)if(e&&c(e))return d(e);return h&&c(h)?d(h):/yandex\.com\/bots/i.test(l)?d("ru-RU"):o.Nm}},31578:(e,t,n)=>{"use strict";n.d(t,{KJ:()=>u,Ny:()=>p,R0:()=>c,qu:()=>d});const i=/\(i[^;]+;( U;)? CPU.+Mac OS X/,o=/Android|android|Adr/,a=/X11/,r=/\(Macintosh; Intel /,s=/Win\d{2}|Windows/,l=1e3;function c(e){return e.length>l?"unknown":o.test(e)?"android":a.test(e)?"linux":i.test(e)?"ios":r.test(e)?"mac":s.test(e)?"windows":"unknown"}function d(e){return!(e.length>l)&&i.test(e)}function u(e){return o.test(e)}function p(e){return d(e)||u(e)}},7971:(e,t,n)=>{"use strict";function i(e){let t=0;return e&&e.forEach((e=>{var n,i;t+=null!==(i=null===(n=null==e?void 0:e.stats)||void 0===n?void 0:n.playCount)&&void 0!==i?i:0})),t}function o(e,t){return a(e)}function a(e){const t=["in","on","with","by","for","at","about","under","of","to","into","from","within","throughout","inside","outside","without","beside","behind","around","over","among","and","or"];return r(e).replace(/-/g," ").toLocaleLowerCase().split(" ").map((e=>"tiktok"===e?"TikTok":t.indexOf(e)>=0?e:e.charAt(0).toUpperCase()+e.slice(1))).join(" ")}function r(e){return e?e.replace(/\x20/g,"-").toLocaleLowerCase():""}function s(e){switch(!0){case e<727:return 4;case e>=727&&e<927:return 6;case e>=927&&e<1295:return 8;case e>=1295&&e<1495:return 10;case e>=1495&&e<1695:return 12;case e>=1695&&e<1895:return 14;default:return 16}}function l(e){var t;return e&&e.length<=0?"":null!==(t=null==e?void 0:e.slice(0,6).map((e=>a(e))).join(", "))&&void 0!==t?t:""}function c(e){return e.length<=0?[]:e.map((e=>{const{pageType:t,keyword:n}=e;switch(t){case 1:return{keyword:n,linkPath:`/channel/${n}`};case 2:return{keyword:n,linkPath:`/find/${n}`};case 0:return{keyword:n,linkPath:`/discover/${n}`};default:return{keyword:n,linkPath:""}}}))}n.d(t,{K6:()=>d,Kk:()=>c,Mh:()=>s,Of:()=>r,Sq:()=>a,XH:()=>u,Xs:()=>p,Zo:()=>i,gW:()=>l,zh:()=>o});const d=e=>e+Date.now().toString(),u=()=>{const e=new Date,t=e.getDay(),n=new Date(e),i=0===t?6:t-1;n.setDate(e.getDate()-i);const o=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`;return{today:o(e),monday:o(n),ISOMonday:n.toISOString()}},p=(e,t)=>e.length?e.reduce(((e,{datePublished:t})=>new Date(t)>new Date(e)?t:e),e[0].datePublished):t},57431:(e,t,n)=>{"use strict";n.d(t,{D:()=>r,x:()=>a});const i=new Map,o="WEBAPP_APP_CONTEXT",a=()=>{const e=i.get(o);return e||console.error("Consume appContext before init"),e},r=e=>{i.get(o)&&console.warn("AppContext will be overwritten"),i.set(o,e)}},34099:(e,t,n)=>{"use strict";n.d(t,{V:()=>a});const i={kind:"m",captcha:"",imApi:"https://im-api-va.tiktok.com",imFrontier:"wss://im-ws-va.tiktok.com/ws/v2",mTApi:"https://m.tiktok.com",rootApi:"https://www.tiktok.com",secSDK:"",slardar:"mon.tiktokv.com",starling:"https://starling-va.tiktokv.com",tea:"https://mcs-va.tiktokv.com",teaChannel:"va",teaChannelType:"tcpy",libraWebSDK:"https://libraweb-va.tiktok.com",webcastApi:"https://webcast.tiktok.com",webcastRootApi:"https://webcast.tiktok.com",tcc:"https://sf-tcc-config.tiktokcdn.com/obj/tcc-config-web-maliva/",locationApi:"https://location-va.tiktokv.com"};let o=null;const a=()=>{var e,t;if(o)return o;try{const n=JSON.parse(null!==(t=null===(e=document.querySelector("#api-domains"))||void 0===e?void 0:e.innerHTML)&&void 0!==t?t:"");return n?(o=n,n):i}catch(e){return i}}},64431:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});const i={vregion:"Singapore-Central",vgeo:"VGeo-ROW"};let o=null;const a=()=>{var e,t;if(o)return o;try{const n=JSON.parse(null!==(t=null===(e=document.querySelector("#service-region"))||void 0===e?void 0:e.innerHTML)&&void 0!==t?t:"");return n?(o=n,n):i}catch(e){return i}}},33543:(e,t,n)=>{"use strict";n.d(t,{Fd:()=>a,dK:()=>o,pJ:()=>i});const i="15rem",o="4.5rem",a=400;var r;!function(e){e.Suggest="suggest",e.Recommend="recommend",e.Follow="follow",e.HotLive="hotLive",e.ContinueAndWatch="continueAndWatch",e.RecommendInRoomPlayer="RecommendInRoomPlayer",e.RecommendInFeed="recommendInFeed",e.FeedCommon="feedCommon",e.FollowInFeed="followInFeed",e.GameInFeed="gameInFeed",e.EventInFeed="eventInFeed",e.LifestyleInFeed="lifestyleInFeed"}(r||(r={}))},99661:(e,t,n)=>{"use strict";n.d(t,{eE:()=>v,xq:()=>g});var i=n(67192),o=n(62302),a=n(50970),r=n(63615),s=n(57431),l=n(88874),c=n(89558),d=n(2408),u=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))},p=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))};function v(e){return p(this,void 0,void 0,(function*(){try{let t=(0,l.YI)(r.Ow);if(!t){const n=yield(0,o.zI)(e);if(0!==(null==n?void 0:n.statusCode))throw new Error("AppContext API response statusCode is not 0");t=n,(0,l.A7)(r.Ow,n)}(0,s.D)(t),yield function(e){return p(this,void 0,void 0,(function*(){const t=i.l.getInstance(a.L),n=t.getActions().init({appContext:e});t.store.dispatch(n),function(e){var t,n,i,o;u(this,void 0,void 0,(function*(){"v2"===(null===(n=null===(t=e.abTestVersion)||void 0===t?void 0:t.parameters.search_add_non_personalized_switch)||void 0===n?void 0:n.vid)&&(yield(0,d.nH)().init({})),"v2"===(null===(o=null===(i=e.abTestVersion)||void 0===i?void 0:i.parameters[c.W$])||void 0===o?void 0:o.vid)&&(yield(0,d.nH)().init({isFeed:!0}))}))}(e),yield new Promise((e=>{t.state$.subscribe((t=>{t.initialized&&e()}))}))}))}(t)}catch(e){console.error(`[Fetch Base App Context Error]: ${e}`)}}))}function g(){return(0,l.YI)(r.Ow)}},94337:(e,t,n)=>{"use strict";n.d(t,{Mh:()=>l,VU:()=>c,le:()=>d});var i=n(58632),o=n(38203),a=n(42051),r=n(11654),s=n(4474);const l=(0,r.Y)("@tiktok/login");let c=class{constructor(e){this.service=e,this.defaultMetrics={count:1},this.currentMethod=null,this.setCurrentRequestMethod=e=>{this.currentMethod=e},this.handleRequestResultReport=e=>{if(!this.currentMethod)return;const{error_code:t=0}=e,n=(0,i.__rest)(e,["error_code"]);this.service.emitEvent(this.currentMethod,this.defaultMetrics,Object.assign(Object.assign({error_code:String(t)},n),{function_type:this.getFunctionType(this.currentMethod,e)}))},this.handleThirdGetToken=e=>{this.currentMethod="thirdGetToken",this.handleRequestResultReport(e)},this.QRCodeShortenFail=e=>{this.service.emitEvent("qrcode_shorten_fail",this.defaultMetrics,e)},this.handleUserRegionEscape=e=>{this.service.emitEvent("userRegionEscape",this.defaultMetrics,e)}}emitOnce(e,t){this.service.emitEvent(e,this.defaultMetrics,t)}sendLoginClickToNotifyDurationPerfMetric(e){this.service.sendCustomPerfMetric("login_click_to_notify_duration",e)}getFunctionType(e,t){switch(e){case"sendPhoneCode":case"smsLogin":case"passwordLogin":case"thirdLogin":case"getQrCodeUrl":case"checkQrconnect":case"getOauthConfig":case"cancelDeleteAccount":case"thirdGetToken":return"login";case"notLoginSendCode":case"smsVerify":case"verifyPwdWithoutLogin":case"thirdVerify":return"verify";case"validateMobileCodeForLogin":case"validateEmailCodeForLogin":case"validateMobileCodeForReset":case"verifySendEmailCode":case"sendEmailCodeForLogin":case"emailCodeLogin":return"twostep";case"sendPhoneCodeWithType":return String(t.type).match(/13|12/)?"twostep":"reset";case"sendPhoneCodeForResetPwd":case"sendEmailCodeForResetPwd":case"resetPwdLoginByEmail":case"changePwdByMobile":return"reset";case"sendEmailCodeForForceResetPwd":case"sendPhoneCodeForForceResetPwd":case"validatePhoneCodeForForceReset":case"validateEmailCodeForForceReset":case"forceResetPwdByMobileTicket":case"forceResetPwdByEmailTicket":return"forcereset";case"sendEmailCodeForSignup":case"smsLoginContinue":case"usernameRegister":case"setAccount":case"emailRegister":return"signup";case"oidcPrepare":case"oidcLogin":case"checkOneTapState":case"getOneTapToken":return"onetap";default:return"ttp"}}};c=(0,i.__decorate)([(0,o._)(),(0,i.__param)(0,(0,a.y)(l.INJECTION_TOKEN)),(0,i.__metadata)("design:paramtypes",[r.V])],c);let d=class{constructor(e){this.service=e,this.defaultMetrics={count:1},this.enterMethod="login",this.enterFrom="login",this.platform="unknown"}setPlatform(e){this.platform=e}setEnterMethod(e){this.enterMethod=e}setEnterFrom(){const e=(0,s.parse)(location.search);this.enterFrom=e.enter_from||"unknown"}loginNotify(e={}){this.service.emitEvent("login_notify",this.defaultMetrics,Object.assign({enter_method:this.enterMethod,enter_from:this.enterFrom},e))}loginSubmit(e){this.service.emitEvent("login_submit",this.defaultMetrics,{enter_method:this.enterMethod,enter_from:this.enterFrom,platform:this.platform,is_register:e.signUp?"1":"0",is_forget_password:e.forgetPwd?"1":"0"})}loginSuccess(e){this.service.emitEvent("login_success",this.defaultMetrics,{enter_method:this.enterMethod,enter_from:this.enterFrom,platform:this.platform,is_register:e.signUp?"1":"0",is_forget_password:e.forgetPwd?"1":"0"})}loginFailure(e){var t;this.service.emitEvent("login_failure",this.defaultMetrics,{enter_method:this.enterMethod,enter_from:this.enterFrom,platform:this.platform,is_register:e.signUp?"1":"0",error_code:String(e.errorCode),is_forget_password:e.forgetPwd?"1":"0",error_message:null!==(t=e.errorMsg)&&void 0!==t?t:""})}logout(e){var t;this.service.emitEvent("monitor_logout",this.defaultMetrics,{enter_method:this.enterMethod,enter_from:this.enterFrom,status:String(e.status),error_code:String(e.error_code),error_desc:null!==(t=e.error_desc)&&void 0!==t?t:""})}logoutSubmit(e={}){this.service.emitEvent("logout_submit",this.defaultMetrics,Object.assign({enter_method:this.enterMethod,enter_from:this.enterFrom},e))}logoutCancel(e={}){this.service.emitEvent("logout_cancel",this.defaultMetrics,Object.assign({enter_method:this.enterMethod,enter_from:this.enterFrom},e))}};d=(0,i.__decorate)([(0,o._)(),(0,i.__param)(0,(0,a.y)(l.INJECTION_TOKEN)),(0,i.__metadata)("design:paramtypes",[r.V])],d)},69589:(e,t,n)=>{"use strict";n.d(t,{QueryProvider:()=>P,getDataForQueryByKey:()=>l,performManualOptimisticUpdate:()=>g,setDataForQueryByKey:()=>d,useData:()=>L,useDataWithInfinite:()=>M,useMutateAction:()=>N,useWebAppQuery:()=>j});var i=n(24643),o=n(86805);function a(e,t,n,i,o,a,r){try{var s=e[a](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,o)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var r=e.apply(t,n);function s(e){a(r,i,o,s,l,"next",e)}function l(e){a(r,i,o,s,l,"throw",e)}s(void 0)}))}}const s=new(n(84724).E)({defaultOptions:{queries:{staleTime:1/0}}}),l=e=>{try{const t=s.getQueryData(e);if(!t)throw new Error(`Failed to get query data for key ${e}. Verify your query key`);return t}catch(e){}},c=(e,t)=>{try{return s.setQueryData(e,t)}catch(t){throw new Error(`Failed to set query data for key ${e}. Verify your query key`)}},d=(e,t)=>{try{return s.setQueryData(e,t)}catch(t){throw new Error(`Failed to set query data for key ${e}. Verify your query key`)}},u=(p=r((function*(e,t){yield s.cancelQueries(e);const n=(e=>{try{const t=s.getQueryData(e);if(!t)throw new Error(`Failed to get query data for key ${e}. Verify your query key`);return t}catch(e){}})(e);return c(e,t),n})),function(e,t){return p.apply(this,arguments)});var p;const v=function(){var e=r((function*(e){}));return function(t){return e.apply(this,arguments)}}(),g=(r((function*(e){yield s.invalidateQueries(e)})),function(){var e=r((function*(e,t){yield s.cancelQueries(e),c(e,t)}));return function(t,n){return e.apply(this,arguments)}}());var m=n(94014),h=n(69958),_=n(91043);function f(e,t,n,i,o,a,r){try{var s=e[a](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,o)}function y(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function r(e){f(a,i,o,r,s,"next",e)}function s(e){f(a,i,o,r,s,"throw",e)}r(void 0)}))}}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}class T{constructor(e){this.useData=e=>{const{query:t,queryKeyParams:n,queryParams:i}=e,o=this.webappConfig.query[t],a=o.queryKeys(n);return(0,m.I)({queryKey:a,queryFn:y((function*(){return o.queryFn(i)}))})},this.useDataWithInfinite=e=>{const{query:t,queryKeyParams:n,queryParams:i,options:o}=e,a=this.webappConfig.query[t],r=a.queryKeys(n),s=(0,h.q)(w({queryKey:r,queryFn:function(){var e=y((function*({pageParam:e}){return a.queryFn((t=w({},i),n=null!=(n={cursor:e})?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})),t));var t,n}));return function(t){return e.apply(this,arguments)}}(),getNextPageParam:e=>e.hasMore?e.cursor:void 0},o));return s},this.useMutateAction=e=>{var t;const{mutatorName:n,options:i}=e,o=this.webappConfig.mutation[n],{mutationFn:a}=o;var r;const s="queryKeys"in o&&null!==(r=null===(t=o.queryKeys)||void 0===t?void 0:t.call(o,e.queryKeyParams))&&void 0!==r?r:[];return(0,_.n)(w({mutationFn:a},"optimisticUpdate"in o?{onMutate:e=>{var t;return u(s,null===(t=o.optimisticUpdate)||void 0===t?void 0:t.call(o,e))},onError:e=>{c(s,e)},onSettled:()=>v(s)}:{},i))};var t=this;this.prefetchQuery=function(){var e=y((function*(e){const{query:n,queryKeyParams:i,queryParams:o}=e,a=x(e,["query","queryKeyParams","queryParams"]),r=t.webappConfig.query[n],l=r.queryKeys(i);return s.prefetchQuery(w({queryKey:l,queryFn:()=>r.queryFn(o)},a))}));return function(t){return e.apply(this,arguments)}}();var n=this;this.prefetchInfiniteQuery=function(){var e=y((function*(e){const{query:t,queryKeyParams:i,queryParams:o}=e,a=x(e,["query","queryKeyParams","queryParams"]),r=n.webappConfig.query[t],l=r.queryKeys(i);return s.prefetchInfiniteQuery(w({queryKey:l,queryFn:()=>r.queryFn(o)},a))}));return function(t){return e.apply(this,arguments)}}(),this.webappConfig=(e=>{const t={query:{},mutation:{}};for(const n of e)Object.assign(t.query,n.query),Object.assign(t.mutation,n.mutation);return t})(e)}}var S=n(40099);let k,A=!1;const O=()=>(A||(k=(0,S.createContext)({}),A=!0),k),E=()=>(0,S.useContext)(O()),P=e=>{const{children:t,apiConfigs:n}=e,a=new T(n),r=O();return(0,i.jsx)(o.Ht,{client:s,children:(0,i.jsxs)(r.Provider,{value:a,children:[t," "]})})};function I(e,t,n,i,o,a,r){try{var s=e[a](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,o)}function C(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function r(e){I(a,i,o,r,s,"next",e)}function s(e){I(a,i,o,r,s,"throw",e)}r(void 0)}))}}n(78007);const j=()=>E(),L=e=>{const{useData:t}=E();return t(e)},M=e=>{const{useDataWithInfinite:t}=E();return t(e)},N=e=>{const{useMutateAction:t}=E();return t(e)};C((function*(e,t){const{prefetchQuery:n}=E();(0,S.useEffect)((()=>{n(e)}),t)})),C((function*(e,t){const{prefetchInfiniteQuery:n}=E();(0,S.useEffect)((()=>{n(e)}),t)}))},15015:()=>{},78007:(e,t,n)=>{"use strict";var i=n(13832);n.o(i,"useData")&&n.d(t,{useData:function(){return i.useData}}),n.o(i,"useDataWithInfinite")&&n.d(t,{useDataWithInfinite:function(){return i.useDataWithInfinite}}),n.o(i,"useMutateAction")&&n.d(t,{useMutateAction:function(){return i.useMutateAction}}),n.o(i,"useWebAppQuery")&&n.d(t,{useWebAppQuery:function(){return i.useWebAppQuery}});var o=n(8130);n.o(o,"useData")&&n.d(t,{useData:function(){return o.useData}}),n.o(o,"useDataWithInfinite")&&n.d(t,{useDataWithInfinite:function(){return o.useDataWithInfinite}}),n.o(o,"useMutateAction")&&n.d(t,{useMutateAction:function(){return o.useMutateAction}}),n.o(o,"useWebAppQuery")&&n.d(t,{useWebAppQuery:function(){return o.useWebAppQuery}});var a=n(15015);n.o(a,"useData")&&n.d(t,{useData:function(){return a.useData}}),n.o(a,"useDataWithInfinite")&&n.d(t,{useDataWithInfinite:function(){return a.useDataWithInfinite}}),n.o(a,"useMutateAction")&&n.d(t,{useMutateAction:function(){return a.useMutateAction}}),n.o(a,"useWebAppQuery")&&n.d(t,{useWebAppQuery:function(){return a.useWebAppQuery}})},13832:()=>{},8130:()=>{},8227:(e,t,n)=>{"use strict";n.d(t,{O:()=>c,vI:()=>l});var i,o=n(55907),a=n(11430);!function(e){e.euTaxForm="euTaxForm",e.w9TaxSelect="w9TaxSelect",e.w9TaxInputIndividual="w9TaxInputIndividual",e.w9TaxInputEntity="w9TaxInputEntity",e.taxPaperlessConsent="taxPaperlessConsent",e.taxComplete="taxComplete",e.taxInfoUs="taxInfoUs",e.w8TaxInput="w8TaxInput",e.taxInfoW8="taxInfoW8",e.taxOverview="taxOverview",e.kyc="kyc",e.kycLoading="kycLoading",e.kycPoa="kycPoa",e.kycSubmission="kycSubmission",e.liveDiscover="liveDiscover",e.liveGoLive="liveGoLive",e.liveRoom="liveRoom",e.liveEvent="liveEvent",e.liveRoomEmbed="liveRoomEmbed",e.rechargeBindInfo="rechargeBindInfo",e.studioLogin="studioLogin",e.studioDownload="studioDownload",e.studioFaq="studioFaq",e.liveSubscription="liveSubscription",e.liveSubscriptionGuide="liveSubscriptionGuide",e.liveSubscriptionBadgeSetting="liveSubscriptionBadgeSetting",e.liveSubscriptionEmoteSetting="liveSubscriptionEmoteSetting",e.liveSubscriptionComplete="liveSubscriptionComplete",e.liveSubscriptionSetting="liveSubscriptionSetting",e.liveSubscriptionMysubsription="liveSubscriptionMysubsription",e.giftCpcFaq="giftCpcFaq",e.liveFollowing="liveFollowing",e.liveGaming="liveGaming",e.liveSingleGaming="liveSingleGaming",e.liveEventAggregation="liveEventAggregation",e.liveCategory="liveCategory",e.liveCategoryGaming="liveCategoryGaming",e.liveCategoryLifestyle="liveCategoryLifestyle",e.liveCategorySingleGaming="liveCategorySingleGaming",e.liveCategorySingleLifeStyle="liveCategorySingleLifeStyle",e.liveCategorySingleAction="liveCategorySingleAction",e.liveLifestyle="liveLifestyle",e.liveExplore="liveExplore"}(i||(i={}));const r={euTaxForm:"/tax/eu-tax",w9TaxSelect:"/tax/us-w9-tax-select",w9TaxInputIndividual:"/tax/us-w9-tax-input-individual",w9TaxInputEntity:"/tax/us-w9-tax-input-entity",taxPaperlessConsent:"/tax/paperless-consent",taxComplete:"/tax/complete",taxInfoUs:"/tax/info-us",w8TaxInput:"/tax/w8-tax-input",taxInfoW8:"/tax/info-w8",taxOverview:"/tax/tax-overview",kyc:"/kyc",kycLoading:"/kyc/loading",kycPoa:"/kyc/poa",kycSubmission:"/kyc/submission",liveDiscover:"/live",liveGoLive:"/live/producer",liveRoom:"/:uniqueId/live",liveEvent:"/live/event/:eventId",liveRoomEmbed:"/embed/:uniqueId/live",rechargeBindInfo:"/recharge/bind-info",studioLogin:"/studio/login",studioDownload:"/studio/download",studioFaq:"/studio/faq",liveSubscription:"/live/subscription",liveSubscriptionGuide:"/live/subscription/guide",liveSubscriptionBadgeSetting:"/live/subscription/badge-setting",liveSubscriptionEmoteSetting:"/live/subscription/emote-setting",liveSubscriptionComplete:"/live/subscription/complete",liveSubscriptionSetting:"/live/subscription/setting",liveSubscriptionMysubsription:"/live/subscription/my-subscription",giftCpcFaq:"/live/gift/cpc/faq",liveFollowing:"/live/following",liveGaming:"/live/gaming",liveSingleGaming:"/live/gaming/:gameId",liveEventAggregation:"/live/event",liveCategory:"/live/category",liveCategoryGaming:"/live/category/gaming",liveCategoryLifestyle:"/live/category/lifestyle",liveCategorySingleGaming:"/live/category/gaming/:gameTag",liveCategorySingleLifeStyle:"/live/category/lifestyle/:category",liveCategorySingleAction:"/live/category/action/:action",liveLifestyle:"/live/lifestyle",liveExplore:"/live/explore/:keywords"};var s;(0,a.r)(r),(0,a.k)(r),function(e){e.euTaxForm="euTaxForm",e.w9TaxSelect="w9TaxSelect",e.w9TaxInputIndividual="w9TaxInputIndividual",e.w9TaxInputEntity="w9TaxInputEntity",e.taxPaperlessConsent="taxPaperlessConsent",e.taxComplete="taxComplete",e.taxInfoUs="taxInfoUs",e.w8TaxInput="w8TaxInput",e.taxInfoW8="taxInfoW8",e.taxOverview="taxOverview",e.kyc="kyc",e.kycLoading="kycLoading",e.kycPoa="kycPoa",e.kycSubmission="kycSubmission",e.liveDiscover="liveDiscover",e.liveGoLive="liveGoLive",e.liveRoom="liveRoom",e.liveEvent="liveEvent",e.liveRoomEmbed="liveRoomEmbed",e.rechargeBindInfo="rechargeBindInfo",e.studioLogin="studioLogin",e.studioDownload="studioDownload",e.studioFaq="studioFaq",e.liveSubscription="liveSubscription",e.liveSubscriptionGuide="liveSubscriptionGuide",e.liveSubscriptionBadgeSetting="liveSubscriptionBadgeSetting",e.liveSubscriptionEmoteSetting="liveSubscriptionEmoteSetting",e.liveSubscriptionComplete="liveSubscriptionComplete",e.liveSubscriptionSetting="liveSubscriptionSetting",e.liveSubscriptionMysubsription="liveSubscriptionMysubsription",e.giftCpcFaq="giftCpcFaq",e.liveFollowing="liveFollowing",e.liveGaming="liveGaming",e.liveSingleGaming="liveSingleGaming",e.liveEventAggregation="liveEventAggregation",e.liveCategory="liveCategory",e.liveCategoryGaming="liveCategoryGaming",e.liveCategoryLifestyle="liveCategoryLifestyle",e.liveCategorySingleGaming="liveCategorySingleGaming",e.liveCategorySingleLifeStyle="liveCategorySingleLifeStyle",e.liveCategorySingleAction="liveCategorySingleAction",e.liveLifestyle="liveLifestyle",e.liveExplore="liveExplore"}(s||(s={}));const l={euTaxForm:"/tax/eu-tax",w9TaxSelect:"/tax/us-w9-tax-select",w9TaxInputIndividual:"/tax/us-w9-tax-input-individual",w9TaxInputEntity:"/tax/us-w9-tax-input-entity",taxPaperlessConsent:"/tax/paperless-consent",taxComplete:"/tax/complete",taxInfoUs:"/tax/info-us",w8TaxInput:"/tax/w8-tax-input",taxInfoW8:"/tax/info-w8",taxOverview:"/tax/tax-overview",kyc:"/kyc",kycLoading:"/kyc/loading",kycPoa:"/kyc/poa",kycSubmission:"/kyc/submission",liveDiscover:"/live",liveGoLive:"/live/producer",liveRoom:"/:uniqueId/live",liveEvent:"/live/event/:eventId",liveRoomEmbed:"/embed/:uniqueId/live",rechargeBindInfo:"/recharge/bind-info",studioLogin:"/studio/login",studioDownload:"/studio/download",studioFaq:"/studio/faq",liveSubscription:"/live/subscription",liveSubscriptionGuide:"/live/subscription/guide",liveSubscriptionBadgeSetting:"/live/subscription/badge-setting",liveSubscriptionEmoteSetting:"/live/subscription/emote-setting",liveSubscriptionComplete:"/live/subscription/complete",liveSubscriptionSetting:"/live/subscription/setting",liveSubscriptionMysubsription:"/live/subscription/my-subscription",giftCpcFaq:"/live/gift/cpc/faq",liveFollowing:"/live/following",liveGaming:"/live/gaming",liveSingleGaming:"/live/gaming/:gameId",liveEventAggregation:"/live/event",liveCategory:"/live/category",liveCategoryGaming:"/live/category/gaming",liveCategoryLifestyle:"/live/category/lifestyle",liveCategorySingleGaming:"/live/category/gaming/:gameTag",liveCategorySingleLifeStyle:"/live/category/lifestyle/:category",liveCategorySingleAction:"/live/category/action/:action",liveLifestyle:"/live/lifestyle",liveExplore:"/live/explore/:keywords"},c=(0,o.w)(l);var d;(0,a.r)(l),(0,a.k)(l),function(e){e.euTaxForm="euTaxForm",e.w9TaxSelect="w9TaxSelect",e.w9TaxInputIndividual="w9TaxInputIndividual",e.w9TaxInputEntity="w9TaxInputEntity",e.taxPaperlessConsent="taxPaperlessConsent",e.taxComplete="taxComplete",e.taxInfoUs="taxInfoUs",e.w8TaxInput="w8TaxInput",e.taxInfoW8="taxInfoW8",e.taxOverview="taxOverview",e.kyc="kyc",e.kycLoading="kycLoading",e.kycPoa="kycPoa",e.kycSubmission="kycSubmission",e.liveDiscover="liveDiscover",e.liveGoLive="liveGoLive",e.liveRoom="liveRoom",e.liveEvent="liveEvent",e.liveRoomEmbed="liveRoomEmbed",e.rechargeBindInfo="rechargeBindInfo",e.studioLogin="studioLogin",e.studioDownload="studioDownload",e.studioFaq="studioFaq",e.liveSubscription="liveSubscription",e.liveSubscriptionGuide="liveSubscriptionGuide",e.liveSubscriptionBadgeSetting="liveSubscriptionBadgeSetting",e.liveSubscriptionEmoteSetting="liveSubscriptionEmoteSetting",e.liveSubscriptionComplete="liveSubscriptionComplete",e.liveSubscriptionSetting="liveSubscriptionSetting",e.liveSubscriptionMysubsription="liveSubscriptionMysubsription",e.giftCpcFaq="giftCpcFaq",e.liveFollowing="liveFollowing",e.liveGaming="liveGaming",e.liveSingleGaming="liveSingleGaming",e.liveEventAggregation="liveEventAggregation",e.liveCategory="liveCategory",e.liveCategoryGaming="liveCategoryGaming",e.liveCategoryLifestyle="liveCategoryLifestyle",e.liveCategorySingleGaming="liveCategorySingleGaming",e.liveCategorySingleLifeStyle="liveCategorySingleLifeStyle",e.liveCategorySingleAction="liveCategorySingleAction",e.liveLifestyle="liveLifestyle",e.liveExplore="liveExplore"}(d||(d={}));const u={euTaxForm:"/tax/eu-tax",w9TaxSelect:"/tax/us-w9-tax-select",w9TaxInputIndividual:"/tax/us-w9-tax-input-individual",w9TaxInputEntity:"/tax/us-w9-tax-input-entity",taxPaperlessConsent:"/tax/paperless-consent",taxComplete:"/tax/complete",taxInfoUs:"/tax/info-us",w8TaxInput:"/tax/w8-tax-input",taxInfoW8:"/tax/info-w8",taxOverview:"/tax/tax-overview",kyc:"/kyc",kycLoading:"/kyc/loading",kycPoa:"/kyc/poa",kycSubmission:"/kyc/submission",liveDiscover:"/live",liveGoLive:"/live/producer",liveRoom:"/:uniqueId/live",liveEvent:"/live/event/:eventId",liveRoomEmbed:"/embed/:uniqueId/live",rechargeBindInfo:"/recharge/bind-info",studioLogin:"/studio/login",studioDownload:"/studio/download",studioFaq:"/studio/faq",liveSubscription:"/live/subscription",liveSubscriptionGuide:"/live/subscription/guide",liveSubscriptionBadgeSetting:"/live/subscription/badge-setting",liveSubscriptionEmoteSetting:"/live/subscription/emote-setting",liveSubscriptionComplete:"/live/subscription/complete",liveSubscriptionSetting:"/live/subscription/setting",liveSubscriptionMysubsription:"/live/subscription/my-subscription",giftCpcFaq:"/live/gift/cpc/faq",liveFollowing:"/live/following",liveGaming:"/live/gaming",liveSingleGaming:"/live/gaming/:gameId",liveEventAggregation:"/live/event",liveCategory:"/live/category",liveCategoryGaming:"/live/category/gaming",liveCategoryLifestyle:"/live/category/lifestyle",liveCategorySingleGaming:"/live/category/gaming/:gameTag",liveCategorySingleLifeStyle:"/live/category/lifestyle/:category",liveCategorySingleAction:"/live/category/action/:action",liveLifestyle:"/live/lifestyle",liveExplore:"/live/explore/:keywords"};(0,o.w)(u),(0,a.r)(u),(0,a.k)(u)},75792:(e,t,n)=>{"use strict";n.d(t,{Bd:()=>d,Iv:()=>s,tH:()=>c});var i,o=n(55907),a=n(11430);!function(e){e.loginHome="loginHome",e.loginPhoneOrEmail="loginPhoneOrEmail",e.loginPhone="loginPhone",e.loginEmail="loginEmail",e.loginPhonePassword="loginPhonePassword",e.loginDownloadApp="loginDownloadApp",e.loginTwoStepVerify="loginTwoStepVerify",e.loginForgetEmailPassword="loginForgetEmailPassword",e.loginForgetPhonePassword="loginForgetPhonePassword",e.loginQRcode="loginQRcode",e.loginSSO="loginSSO",e.loginGuestMode="loginGuestMode",e.tvLoginHome="tvLoginHome",e.tvLoginPhone="tvLoginPhone",e.tvLoginEmail="tvLoginEmail",e.loginWithSignedEmail="loginWithSignedEmail",e.loginPhoneDigit="loginPhoneDigit",e.loginReset="loginReset",e.phoneResetDigit="phoneResetDigit",e.emailResetDigit="emailResetDigit",e.resetPassword="resetPassword",e.signupHome="signupHome",e.signupPhoneOrEmail="signupPhoneOrEmail",e.signupPhone="signupPhone",e.signupEmail="signupEmail",e.signupAgeGate="signupAgeGate",e.signupAgeGateConfirm="signupAgeGateConfirm",e.signupPolicyConfirm="signupPolicyConfirm",e.signupCreateAccount="signupCreateAccount",e.signupCreateUsername="signupCreateUsername",e.signupCreatePassword="signupCreatePassword",e.signupPrivateOn="signupPrivateOn",e.signupPhoneDigit="signupPhoneDigit",e.signupEmailDigit="signupEmailDigit",e.signupEmailCreatePassword="signupEmailCreatePassword",e.signupCountrySelector="signupCountrySelector",e.signupInterestSelector="signupInterestSelector",e.oauth="oauth",e.oauthLine="oauthLine",e.accountDeactivate="accountDeactivate",e.logout="logout",e.linkPhoneOrEmail="linkPhoneOrEmail",e.linkPhone="linkPhone",e.linkEmail="linkEmail",e.linkPhoneDigit="linkPhoneDigit",e.linkEmailDigit="linkEmailDigit"}(i||(i={}));const r={loginHome:"/login",loginPhoneOrEmail:"/login/phone-or-email",loginPhone:"/login/phone-or-email/phone",loginEmail:"/login/phone-or-email/email",loginPhonePassword:"/login/phone-or-email/phone-password",loginDownloadApp:"/login/download-app",loginTwoStepVerify:"/login/2sv/:type",loginForgetEmailPassword:"/login/email/forget-password",loginForgetPhonePassword:"/login/phone/forget-password",loginQRcode:"/login/qrcode",loginSSO:"/login/sso",loginGuestMode:"/login/guest-mode",tvLoginHome:"/login/tv",tvLoginPhone:"/login/tv/phone",tvLoginEmail:"/login/tv/email",loginWithSignedEmail:"/login/with-signed-email",loginPhoneDigit:"/login/phone/digit-code",loginReset:"/login/reset",phoneResetDigit:"/login/reset/phone/digit-code",emailResetDigit:"/login/reset/email/digit-code",resetPassword:"/login/reset/password",signupHome:"/signup",signupPhoneOrEmail:"/signup/phone-or-email",signupPhone:"/signup/phone-or-email/phone",signupEmail:"/signup/phone-or-email/email",signupAgeGate:"/signup/age-gate",signupAgeGateConfirm:"/signup/age-gate/confirm",signupPolicyConfirm:"/signup/policy-confirm",signupCreateAccount:"/signup/create-account",signupCreateUsername:"/signup/create-username",signupCreatePassword:"/signup/create-password",signupPrivateOn:"/signup/private-on",signupPhoneDigit:"/signup/phone/digit-code",signupEmailDigit:"/signup/email/digit-code",signupEmailCreatePassword:"/signup/email/create-password",signupCountrySelector:"/signup/country-selector",signupInterestSelector:"/signup/interest",oauth:"/oauth",oauthLine:"/oauthLine",accountDeactivate:"/setting/account-delete/deactivate",logout:"/logout",linkPhoneOrEmail:"/link-phone-or-email",linkPhone:"/link-phone-or-email/phone",linkEmail:"/link-phone-or-email/email",linkPhoneDigit:"/link-phone-or-email/phone/digit-code",linkEmailDigit:"/link-phone-or-email/email/digit-code"},s=(0,a.r)(r);var l;(0,a.k)(r),function(e){e.loginHome="loginHome",e.loginPhoneOrEmail="loginPhoneOrEmail",e.loginPhone="loginPhone",e.loginEmail="loginEmail",e.loginPhonePassword="loginPhonePassword",e.loginDownloadApp="loginDownloadApp",e.loginTwoStepVerify="loginTwoStepVerify",e.loginForgetEmailPassword="loginForgetEmailPassword",e.loginForgetPhonePassword="loginForgetPhonePassword",e.loginQRcode="loginQRcode",e.loginSSO="loginSSO",e.loginGuestMode="loginGuestMode",e.tvLoginHome="tvLoginHome",e.tvLoginPhone="tvLoginPhone",e.tvLoginEmail="tvLoginEmail",e.loginWithSignedEmail="loginWithSignedEmail",e.loginPhoneDigit="loginPhoneDigit",e.loginReset="loginReset",e.phoneResetDigit="phoneResetDigit",e.emailResetDigit="emailResetDigit",e.resetPassword="resetPassword",e.signupHome="signupHome",e.signupPhoneOrEmail="signupPhoneOrEmail",e.signupPhone="signupPhone",e.signupEmail="signupEmail",e.signupAgeGate="signupAgeGate",e.signupAgeGateConfirm="signupAgeGateConfirm",e.signupPolicyConfirm="signupPolicyConfirm",e.signupCreateAccount="signupCreateAccount",e.signupCreateUsername="signupCreateUsername",e.signupCreatePassword="signupCreatePassword",e.signupPrivateOn="signupPrivateOn",e.signupPhoneDigit="signupPhoneDigit",e.signupEmailDigit="signupEmailDigit",e.signupEmailCreatePassword="signupEmailCreatePassword",e.signupCountrySelector="signupCountrySelector",e.signupInterestSelector="signupInterestSelector",e.oauth="oauth",e.oauthLine="oauthLine",e.accountDeactivate="accountDeactivate",e.logout="logout",e.linkPhoneOrEmail="linkPhoneOrEmail",e.linkPhone="linkPhone",e.linkEmail="linkEmail",e.linkPhoneDigit="linkPhoneDigit",e.linkEmailDigit="linkEmailDigit"}(l||(l={}));const c={loginHome:"/login",loginPhoneOrEmail:"/login/phone-or-email",loginPhone:"/login/phone-or-email/phone",loginEmail:"/login/phone-or-email/email",loginPhonePassword:"/login/phone-or-email/phone-password",loginDownloadApp:"/login/download-app",loginTwoStepVerify:"/login/2sv/:type",loginForgetEmailPassword:"/login/email/forget-password",loginForgetPhonePassword:"/login/phone/forget-password",loginQRcode:"/login/qrcode",loginSSO:"/login/sso",loginGuestMode:"/login/guest-mode",tvLoginHome:"/login/tv",tvLoginPhone:"/login/tv/phone",tvLoginEmail:"/login/tv/email",loginWithSignedEmail:"/login/with-signed-email",loginPhoneDigit:"/login/phone/digit-code",loginReset:"/login/reset",phoneResetDigit:"/login/reset/phone/digit-code",emailResetDigit:"/login/reset/email/digit-code",resetPassword:"/login/reset/password",signupHome:"/signup",signupPhoneOrEmail:"/signup/phone-or-email",signupPhone:"/signup/phone-or-email/phone",signupEmail:"/signup/phone-or-email/email",signupAgeGate:"/signup/age-gate",signupAgeGateConfirm:"/signup/age-gate/confirm",signupPolicyConfirm:"/signup/policy-confirm",signupCreateAccount:"/signup/create-account",signupCreateUsername:"/signup/create-username",signupCreatePassword:"/signup/create-password",signupPrivateOn:"/signup/private-on",signupPhoneDigit:"/signup/phone/digit-code",signupEmailDigit:"/signup/email/digit-code",signupEmailCreatePassword:"/signup/email/create-password",signupCountrySelector:"/signup/country-selector",signupInterestSelector:"/signup/interest",oauth:"/oauth",oauthLine:"/oauthLine",accountDeactivate:"/setting/account-delete/deactivate",logout:"/logout",linkPhoneOrEmail:"/link-phone-or-email",linkPhone:"/link-phone-or-email/phone",linkEmail:"/link-phone-or-email/email",linkPhoneDigit:"/link-phone-or-email/phone/digit-code",linkEmailDigit:"/link-phone-or-email/email/digit-code"},d=((0,o.w)(c),(0,a.r)(c));(0,a.k)(c)},97497:(e,t,n)=>{"use strict";n.d(t,{Lj:()=>c});var i,o=n(55907),a=n(11430);!function(e){e.video="video",e.photo="photo",e.user="user",e.music="music",e.challenge="challenge",e.musicPlaylist="musicPlaylist",e.collection="collection",e.videoPlaylist="videoPlaylist",e.searchReflow="searchReflow",e.sticker="sticker",e.group="group",e.chat="chat"}(i||(i={}));const r={video:"/@:uniqueId(.*)/video/:id",photo:"/@:uniqueId(.*)/photo/:id",user:"/@:uniqueId",music:"/music/:title(.*)-:id",challenge:"/tag/:name",musicPlaylist:"/playlist-music/:title(.+)-:id",collection:"/@:uniqueId/collection/:title(.+)-:id",videoPlaylist:"/@:uniqueId/playlist/:content(.+)-:id",searchReflow:"/search/campaign/:eventName",sticker:"/sticker/:title(.*)-:id",group:"/messages/group",chat:"/messages/chat"};var s;(0,a.r)(r),(0,a.k)(r),function(e){e.video="video",e.photo="photo",e.user="user",e.music="music",e.challenge="challenge",e.musicPlaylist="musicPlaylist",e.collection="collection",e.videoPlaylist="videoPlaylist",e.searchReflow="searchReflow",e.sticker="sticker",e.group="group",e.chat="chat"}(s||(s={}));const l={video:"/@:uniqueId(.*)/video/:id",photo:"/@:uniqueId(.*)/photo/:id",user:"/@:uniqueId",music:"/music/:title(.*)-:id",challenge:"/tag/:name",musicPlaylist:"/playlist-music/:title(.+)-:id",collection:"/@:uniqueId/collection/:title(.+)-:id",videoPlaylist:"/@:uniqueId/playlist/:content(.+)-:id",searchReflow:"/search/campaign/:eventName",sticker:"/sticker/:title(.*)-:id",group:"/messages/group",chat:"/messages/chat"},c=(0,o.w)(l);(0,a.r)(l),(0,a.k)(l)},82715:(e,t,n)=>{"use strict";n.d(t,{$T:()=>u,CA:()=>l,OZ:()=>d,eU:()=>i,jN:()=>s,kv:()=>p,no:()=>r});var i,o=n(55907),a=n(11430);!function(e){e.video="video",e.photo="photo",e.user="user",e.music="music",e.effect="effect",e.challenge="challenge",e.channel="channel",e.find="find",e.home="home",e.foryouWithLang="foryouWithLang",e.foryou="foryou",e.downloadWithLang="downloadWithLang",e.download="download",e.following="following",e.friends="friends",e.topics="topics",e.expansion="expansion",e.searchHome="searchHome",e.searchUser="searchUser",e.searchVideo="searchVideo",e.searchReminder="searchReminder",e.searchLive="searchLive",e.discover="discover",e.setting="setting",e.feedback="feedback",e.feedbackHistory="feedbackHistory",e.feedbackReport="feedbackReport",e.upload="upload",e.question="question",e.musicPlaylist="musicPlaylist",e.messages="messages",e.settingBlockList="settingBlockList",e.settingDownLoadYourData="settingDownLoadYourData",e.settingKeywordFiltering="settingKeywordFiltering",e.settingDailyScreenTimeEdit="settingDailyScreenTimeEdit",e.settingTimeBreakEdit="settingTimeBreakEdit",e.settingSleepReminderEdit="settingSleepReminderEdit",e.settingAdPrivacyPersonalizedAds="settingAdPrivacyPersonalizedAds",e.settingAdPrivacyPersonalizedAdsInferredByTikTokTopics="settingAdPrivacyPersonalizedAdsInferredByTikTokTopics",e.settingAdPrivacyPersonalizedAdsYourChoicesTopics="settingAdPrivacyPersonalizedAdsYourChoicesTopics",e.settingAdPrivacyPersonalizedAdsAllTopics="settingAdPrivacyPersonalizedAdsAllTopics",e.settingAdvertiserSettings="settingAdvertiserSettings",e.settingDisconnectAdvertisers="settingDisconnectAdvertisers",e.settingDisconnectAdvertisersDetails="settingDisconnectAdvertisersDetails",e.profile="profile",e.inbox="inbox",e.explore="explore",e.videoPlaylist="videoPlaylist",e.poi="poi",e.poiCategory="poiCategory",e.travel="travel",e.travelCategory="travelCategory",e.collection="collection"}(i||(i={}));const r={video:"/@:uniqueId(.*)/video/:id",photo:"/@:uniqueId(.*)/photo/:id",user:"/@:uniqueId",music:"/music/:title(.*)-:id",effect:"/effect/:title(.*)-:id",challenge:"/tag/:name",channel:"/channel/:name",find:"/find/:name",home:"/",foryouWithLang:["/id-ID","/ms-MY","/jv-ID","/ceb-PH","/cs-CZ","/de-DE","/en","/es","/fil-PH","/fr","/it-IT","/hu-HU","/nl-NL","/pl-PL","/pt-BR","/ro-RO","/fi-FI","/sv-SE","/vi-VN","/tr-TR","/el-GR","/ru-RU","/uk-UA","/he-IL","/ur","/ar","/hi-IN","/bn-IN","/th-TH","/my-MM","/km-KH","/ja-JP","/zh-Hant-TW","/zh-Hans","/ko-KR"],foryou:"/foryou",downloadWithLang:["/download/id-ID","/download/ms-MY","/download/jv-ID","/download/ceb-PH","/download/cs-CZ","/download/de-DE","/download/en","/download/es","/download/fil-PH","/download/fr","/download/it-IT","/download/hu-HU","/download/nl-NL","/download/pl-PL","/download/pt-BR","/download/ro-RO","/download/fi-FI","/download/sv-SE","/download/vi-VN","/download/tr-TR","/download/el-GR","/download/ru-RU","/download/uk-UA","/download/he-IL","/download/ur","/download/ar","/download/hi-IN","/download/bn-IN","/download/th-TH","/download/my-MM","/download/km-KH","/download/ja-JP","/download/zh-Hant-TW","/download/zh-Hans","/download/ko-KR"],download:"/download",following:"/following",friends:"/friends",topics:"/topics/:name",expansion:"/discover/:name",searchHome:"/search",searchUser:"/search/user",searchVideo:"/search/video",searchReminder:"/search/reminder",searchLive:"/search/live",discover:"/discover",setting:"/setting",feedback:"/feedback",feedbackHistory:"/feedback/history",feedbackReport:"/feedback/report",upload:"/upload",question:"/question/:content(.+)-:id",musicPlaylist:"/playlist-music/:title(.+)-:id",messages:"/messages",settingBlockList:"/setting/block-list",settingDownLoadYourData:"/setting/download-your-data",settingKeywordFiltering:"/setting/keyword-filtering",settingDailyScreenTimeEdit:"/setting/daily-screen-time-edit",settingTimeBreakEdit:"/setting/time-break-edit",settingSleepReminderEdit:"/setting/sleep-reminder-edit",settingAdPrivacyPersonalizedAds:"/setting/ad_privacy/personalized_ads",settingAdPrivacyPersonalizedAdsInferredByTikTokTopics:"/setting/ad_privacy/personalized_ads/inferred_by_tiktok_topics",settingAdPrivacyPersonalizedAdsYourChoicesTopics:"/setting/ad_privacy/personalized_ads/your_choices_topics",settingAdPrivacyPersonalizedAdsAllTopics:"/setting/ad_privacy/personalized_ads/all_topics",settingAdvertiserSettings:"/setting/ad_privacy/advertiser_settings",settingDisconnectAdvertisers:"/setting/ad_privacy/disconnect_advertisers",settingDisconnectAdvertisersDetails:"/setting/ad_privacy/disconnect_advertisers_details",profile:"/profile",inbox:"/inbox",explore:"/explore",videoPlaylist:"/@:uniqueId/playlist/:content(.+)-:id",poi:"/place/:name([^/]+)-:id",poiCategory:"/place/:name([^/]+)-:id/:category",travel:"/travel/:name([^/]+)-:id",travelCategory:"/travel/:name([^/]+)-:id/:category",collection:"/@:uniqueId/collection/:title(.+)-:id"},s=(0,a.r)(r),l=(0,a.k)(r);var c;!function(e){e.video="video",e.photo="photo",e.user="user",e.music="music",e.effect="effect",e.challenge="challenge",e.channel="channel",e.find="find",e.home="home",e.foryouWithLang="foryouWithLang",e.foryou="foryou",e.downloadWithLang="downloadWithLang",e.download="download",e.following="following",e.friends="friends",e.topics="topics",e.expansion="expansion",e.searchHome="searchHome",e.searchUser="searchUser",e.searchVideo="searchVideo",e.searchReminder="searchReminder",e.searchLive="searchLive",e.discover="discover",e.setting="setting",e.feedback="feedback",e.feedbackHistory="feedbackHistory",e.feedbackReport="feedbackReport",e.upload="upload",e.question="question",e.musicPlaylist="musicPlaylist",e.messages="messages",e.settingBlockList="settingBlockList",e.settingDownLoadYourData="settingDownLoadYourData",e.settingKeywordFiltering="settingKeywordFiltering",e.settingDailyScreenTimeEdit="settingDailyScreenTimeEdit",e.settingTimeBreakEdit="settingTimeBreakEdit",e.settingSleepReminderEdit="settingSleepReminderEdit",e.settingAdPrivacyPersonalizedAds="settingAdPrivacyPersonalizedAds",e.settingAdPrivacyPersonalizedAdsInferredByTikTokTopics="settingAdPrivacyPersonalizedAdsInferredByTikTokTopics",e.settingAdPrivacyPersonalizedAdsYourChoicesTopics="settingAdPrivacyPersonalizedAdsYourChoicesTopics",e.settingAdPrivacyPersonalizedAdsAllTopics="settingAdPrivacyPersonalizedAdsAllTopics",e.settingAdvertiserSettings="settingAdvertiserSettings",e.settingDisconnectAdvertisers="settingDisconnectAdvertisers",e.settingDisconnectAdvertisersDetails="settingDisconnectAdvertisersDetails",e.profile="profile",e.inbox="inbox",e.explore="explore",e.videoPlaylist="videoPlaylist",e.poi="poi",e.poiCategory="poiCategory",e.travel="travel",e.travelCategory="travelCategory",e.collection="collection"}(c||(c={}));const d={video:"/@:uniqueId(.*)/video/:id",photo:"/@:uniqueId(.*)/photo/:id",user:"/@:uniqueId",music:"/music/:title(.*)-:id",effect:"/effect/:title(.*)-:id",challenge:"/tag/:name",channel:"/channel/:name",find:"/find/:name",home:"/",foryouWithLang:["/id-ID","/ms-MY","/jv-ID","/ceb-PH","/cs-CZ","/de-DE","/en","/es","/fil-PH","/fr","/it-IT","/hu-HU","/nl-NL","/pl-PL","/pt-BR","/ro-RO","/fi-FI","/sv-SE","/vi-VN","/tr-TR","/el-GR","/ru-RU","/uk-UA","/he-IL","/ur","/ar","/hi-IN","/bn-IN","/th-TH","/my-MM","/km-KH","/ja-JP","/zh-Hant-TW","/zh-Hans","/ko-KR"],foryou:"/foryou",downloadWithLang:["/download/id-ID","/download/ms-MY","/download/jv-ID","/download/ceb-PH","/download/cs-CZ","/download/de-DE","/download/en","/download/es","/download/fil-PH","/download/fr","/download/it-IT","/download/hu-HU","/download/nl-NL","/download/pl-PL","/download/pt-BR","/download/ro-RO","/download/fi-FI","/download/sv-SE","/download/vi-VN","/download/tr-TR","/download/el-GR","/download/ru-RU","/download/uk-UA","/download/he-IL","/download/ur","/download/ar","/download/hi-IN","/download/bn-IN","/download/th-TH","/download/my-MM","/download/km-KH","/download/ja-JP","/download/zh-Hant-TW","/download/zh-Hans","/download/ko-KR"],download:"/download",following:"/following",friends:"/friends",topics:"/topics/:name",expansion:"/discover/:name",searchHome:"/search",searchUser:"/search/user",searchVideo:"/search/video",searchReminder:"/search/reminder",searchLive:"/search/live",discover:"/discover",setting:"/setting",feedback:"/feedback",feedbackHistory:"/feedback/history",feedbackReport:"/feedback/report",upload:"/upload",question:"/question/:content(.+)-:id",musicPlaylist:"/playlist-music/:title(.+)-:id",messages:"/messages",settingBlockList:"/setting/block-list",settingDownLoadYourData:"/setting/download-your-data",settingKeywordFiltering:"/setting/keyword-filtering",settingDailyScreenTimeEdit:"/setting/daily-screen-time-edit",settingTimeBreakEdit:"/setting/time-break-edit",settingSleepReminderEdit:"/setting/sleep-reminder-edit",settingAdPrivacyPersonalizedAds:"/setting/ad_privacy/personalized_ads",settingAdPrivacyPersonalizedAdsInferredByTikTokTopics:"/setting/ad_privacy/personalized_ads/inferred_by_tiktok_topics",settingAdPrivacyPersonalizedAdsYourChoicesTopics:"/setting/ad_privacy/personalized_ads/your_choices_topics",settingAdPrivacyPersonalizedAdsAllTopics:"/setting/ad_privacy/personalized_ads/all_topics",settingAdvertiserSettings:"/setting/ad_privacy/advertiser_settings",settingDisconnectAdvertisers:"/setting/ad_privacy/disconnect_advertisers",settingDisconnectAdvertisersDetails:"/setting/ad_privacy/disconnect_advertisers_details",profile:"/profile",inbox:"/inbox",explore:"/explore",videoPlaylist:"/@:uniqueId/playlist/:content(.+)-:id",poi:"/place/:name([^/]+)-:id",poiCategory:"/place/:name([^/]+)-:id/:category",travel:"/travel/:name([^/]+)-:id",travelCategory:"/travel/:name([^/]+)-:id/:category",collection:"/@:uniqueId/collection/:title(.+)-:id"},u=(0,o.w)(d),p=(0,a.r)(d);(0,a.k)(d)},91857:(e,t,n)=>{"use strict";n.d(t,{Ob:()=>l});var i,o=n(55907),a=n(11430);!function(e){e.video="video",e.photo="photo",e.user="user",e.music="music",e.challenge="challenge",e.home="home",e.foryouWithLang="foryouWithLang",e.foryou="foryou",e.following="following",e.topics="topics",e.profile="profile",e.searchHome="searchHome",e.searchUser="searchUser",e.discover="discover",e.feedback="feedback",e.feedbackHistory="feedbackHistory",e.feedbackReport="feedbackReport",e.inbox="inbox",e.report="report",e.reportInbox="reportInbox",e.reportInboxAd="reportInboxAd",e.violationAppeal="violationAppeal",e.setting="setting",e.privacyPrompt="privacyPrompt",e.poi="poi",e.poiCategory="poiCategory",e.travel="travel",e.travelCategory="travelCategory"}(i||(i={}));const r={video:"/@:uniqueId(.*)/video/:id",photo:"/@:uniqueId(.*)/photo/:id",user:"/@:uniqueId",music:"/music/:title(.*)-:id",challenge:"/tag/:name",home:"/",foryouWithLang:["/id-ID","/ms-MY","/jv-ID","/ceb-PH","/cs-CZ","/de-DE","/en","/es","/fil-PH","/fr","/it-IT","/hu-HU","/nl-NL","/pl-PL","/pt-BR","/ro-RO","/fi-FI","/sv-SE","/vi-VN","/tr-TR","/el-GR","/ru-RU","/uk-UA","/he-IL","/ur","/ar","/hi-IN","/bn-IN","/th-TH","/my-MM","/km-KH","/ja-JP","/zh-Hant-TW","/zh-Hans","/ko-KR"],foryou:"/foryou",following:"/following",topics:"/topics/:name",profile:"/profile",searchHome:"/search",searchUser:"/search/user",discover:"/discover",feedback:"/feedback",feedbackHistory:"/feedback/history",feedbackReport:"/feedback/report",inbox:"/inbox",report:"/report/:type",reportInbox:"/report/inbox",reportInboxAd:"/ad-report/inbox",violationAppeal:"/violation-appeal",setting:"/setting",privacyPrompt:"/privacy-prompt",poi:"/place/:name([^/]+)-:id",poiCategory:"/place/:name([^/]+)-:id/:category",travel:"/travel/:name([^/]+)-:id",travelCategory:"/travel/:name([^/]+)-:id/:category"};var s;(0,a.r)(r),(0,a.k)(r),function(e){e.video="video",e.photo="photo",e.user="user",e.music="music",e.challenge="challenge",e.home="home",e.foryouWithLang="foryouWithLang",e.foryou="foryou",e.following="following",e.topics="topics",e.profile="profile",e.searchHome="searchHome",e.searchUser="searchUser",e.discover="discover",e.feedback="feedback",e.feedbackHistory="feedbackHistory",e.feedbackReport="feedbackReport",e.inbox="inbox",e.report="report",e.reportInbox="reportInbox",e.reportInboxAd="reportInboxAd",e.violationAppeal="violationAppeal",e.setting="setting",e.privacyPrompt="privacyPrompt",e.poi="poi",e.poiCategory="poiCategory",e.travel="travel",e.travelCategory="travelCategory"}(s||(s={}));const l={video:"/@:uniqueId(.*)/video/:id",photo:"/@:uniqueId(.*)/photo/:id",user:"/@:uniqueId",music:"/music/:title(.*)-:id",challenge:"/tag/:name",home:"/",foryouWithLang:["/id-ID","/ms-MY","/jv-ID","/ceb-PH","/cs-CZ","/de-DE","/en","/es","/fil-PH","/fr","/it-IT","/hu-HU","/nl-NL","/pl-PL","/pt-BR","/ro-RO","/fi-FI","/sv-SE","/vi-VN","/tr-TR","/el-GR","/ru-RU","/uk-UA","/he-IL","/ur","/ar","/hi-IN","/bn-IN","/th-TH","/my-MM","/km-KH","/ja-JP","/zh-Hant-TW","/zh-Hans","/ko-KR"],foryou:"/foryou",following:"/following",topics:"/topics/:name",profile:"/profile",searchHome:"/search",searchUser:"/search/user",discover:"/discover",feedback:"/feedback",feedbackHistory:"/feedback/history",feedbackReport:"/feedback/report",inbox:"/inbox",report:"/report/:type",reportInbox:"/report/inbox",reportInboxAd:"/ad-report/inbox",violationAppeal:"/violation-appeal",setting:"/setting",privacyPrompt:"/privacy-prompt",poi:"/place/:name([^/]+)-:id",poiCategory:"/place/:name([^/]+)-:id/:category",travel:"/travel/:name([^/]+)-:id",travelCategory:"/travel/:name([^/]+)-:id/:category"};(0,o.w)(l),(0,a.r)(l),(0,a.k)(l)},11430:(e,t,n)=>{"use strict";n.d(t,{k:()=>l,r:()=>r});var i=n(72828),o=n.n(i);const a=e=>{const t=[],n=Object.keys(e);for(const i of n){const n=e[i],a=Array.isArray(n)?n:[n];for(const e of a)t.push({re:o()(e),route:{name:i,path:e}})}return t};function r(e){const t=a(e);return e=>{for(const n of t)if(n.re.test(e))return n.route;return null}}const s=(e,t)=>{const n=[],i=o()(t,n).exec(e);if(!i)return;const a=Object.create(null);for(let e=1;e{for(const n of t){const t=s(e,n.route.path);if(t)return Object.assign(Object.assign({},n.route),{matchedParams:t})}return null}}},55907:(e,t,n)=>{"use strict";n.d(t,{w:()=>l});var i=n(14974),o=n.n(i),a=n(70833),r=n.n(a),s=n(72828);function l(e){return o()(e,(e=>function(e){return r()(e)?(0,s.compile)(e):()=>e[0]}(e)))}},66806:(e,t,n)=>{"use strict";n.d(t,{Ad:()=>m,CB:()=>w,E7:()=>T,Fq:()=>l,MG:()=>y,OT:()=>f,Wx:()=>c,YF:()=>g,Zi:()=>s,_d:()=>i,ab:()=>b,bb:()=>p,c:()=>r,f6:()=>d,k2:()=>A,kV:()=>_,kd:()=>k,nV:()=>o,nm:()=>a,oe:()=>S,p$:()=>u,uM:()=>v,wv:()=>h,x2:()=>x});const i=10204,o=10215,a=10217,r=10216,s=10231,l=10240,c=10241,d=10242,u=203005,p=10205,v=10212,g=10211,m=10209,h=10202,_=10221,f=10222,y=10102,b=10223,w=10203,x=10218,T=10219,S=205001,k=205002,A=205003;var O;!function(e){e[e.Aborted=1]="Aborted",e[e.Network=2]="Network",e[e.Decode=3]="Decode",e[e.SrcNotSupported=4]="SrcNotSupported"}(O||(O={}))},30251:(e,t,n)=>{"use strict";n.d(t,{A6:()=>A,AQ:()=>o,Cb:()=>h,E_:()=>v,Ec:()=>p,F4:()=>c,Gj:()=>_,IP:()=>d,IQ:()=>b,MA:()=>u,Mt:()=>l,OZ:()=>k,Sg:()=>g,TB:()=>f,UN:()=>w,W4:()=>P,Wf:()=>r,Zt:()=>C,_0:()=>x,ai:()=>m,dW:()=>N,e4:()=>i,er:()=>S,kl:()=>I,sF:()=>T,sP:()=>y,uZ:()=>a,wQ:()=>E,wk:()=>L,wl:()=>s,yI:()=>j,yN:()=>O,z6:()=>M});const i="TikTok",o="https://www.tiktok.com",a="https://www.tiktok.com/#website",r="TikTok - trends start here. On a device or on the web, viewers can watch and discover millions of personalized short videos. Download the app to get started.",s="TikTok - Make Your Day",l="https://www.tiktok.com/search?q={search_term_string}",c="tiktok://search?keyword={search_term_string}",d="required name=search_term_string",u="Watch trending videos for you",p="https://www.tiktok.com/foryou",v="/foryou",g="https://www.tiktok.com/#foryou",m="It starts on TikTok. Join the millions of viewers discovering content and creators on TikTok — available on the web or on your mobile device.",h="/following",_="/coin",f="https://www.tiktok.com/search/campaign",y="https://www.tiktok.com/find",b="https://www.tiktok.com/product",w="Discover popular videos",x="https://www.tiktok.com/discover",T="https://www.tiktok.com/tag",S="https://www.tiktok.com/#discover",k="On your device or on the web, join millions of viewers on the fastest growing video app. Download TikTok to discover new creators, search popular hashtags, and watch trending videos.",A="https://www.tiktok.com/#organization",O=["https://www.instagram.com/tiktok/","https://www.facebook.com/tiktok","https://www.twitter.com/tiktok_us","https://www.youtube.com/channel/UChPd_WHrv3O-XAXXHLixs7g"],E=["https://www.instagram.com/tiktok_kr/","https://www.facebook.com/tiktok","https://twitter.com/TiktokKR","https://www.youtube.com/c/tiktokkr","https://post.naver.com/my.naver?memberNo=52184197"],P="Discover",I={INDEX:"index, follow",NO_INDEX:"noindex, follow",IMAGE_PREVIEW_LARGE:"max-image-preview:large"},C="/live",j="/live/producer",L="/live/event",M="/studio/download",N="/studio/faq"},77229:(e,t,n)=>{"use strict";n.d(t,{e:()=>o});const i="BreadcrumbList";class o{constructor(e,t){this["@type"]=i,this.itemListElement=e.reduce(((e,t,n)=>{const{url:i,name:o}=t;return e.push({"@type":"ListItem",position:n+1,item:{"@type":"Thing","@id":i,name:o}}),e}),[])}}o.type=i},77878:(e,t,n)=>{"use strict";n.d(t,{F:()=>u});var i=n(95584),o=n(13761),a=n(7971),r=n(10828),s=n(82715),l=n(30251),c=n(61679),d=n(53038);const u=[{processType:o.k.SERPProcessType.META_PATH,targetId:122,content:function(e){var t,n,i;const{keyword:o,t:l,wordDetailResponse:d,itemResponse:u,wordListResponse:p}=e;if(!o)return{robotsContent:"noindex, nofollow"};const v=null!==(n=null===(t=null==d?void 0:d.wordDetail)||void 0===t?void 0:t.uniqueWord)&&void 0!==n?n:"",g=(0,a.zh)(o),m=`${g} | TikTok`,h=(0,c.D1)((0,a.Zo)(null!==(i=null==u?void 0:u.videoList)&&void 0!==i?i:[])),_=null==p?void 0:p.relatedKeywords;let f=l("seo_aggre_metadesc1",{views:h,keywords:g});const y=_?(0,a.gW)(_.map((e=>e.formattedWord))):"";y&&(f+=` ${l("seo_aggre_metadesc2",{related_search_keywords:y})}`);let b=g;return y&&(b+=`, ${y}`),{title:m,keywords:b,description:f,canonicalHref:`${r.C}${s.$T.channel({name:v})}`,robotsContent:"index, follow",applicableDevice:"pc, mobile"}}},{processType:o.k.SERPProcessType.JSONLD_PATH,targetId:122,content:function(e){const{keyword:t,seoProps:{itemList:n}={}}=e;if(!t)return[];const o=(0,a.zh)(t),c=t.replace(/\x20/g,"-").toLocaleLowerCase(),u=`${r.C}${s.$T.channel({name:c})}`,p={"@type":"CollectionPage","@id":u},v=(0,d.SH)([{url:r.C,name:l.e4},{url:u,name:o}]);return[[i.Y.JsonldType.Page,p],[i.Y.JsonldType.BreadcrumbList,v],[i.Y.JsonldType.ItemList,null!=n?n:{}]]}}]},38053:(e,t,n)=>{"use strict";n.d(t,{g:()=>u});var i=n(95584),o=n(13761),a=n(10828),r=n(30251),s=n(67982),l=n(46859),c=n(53038);function d(e,t,n){const i=(0,s.fJ)({uniqueId:e});return t&&n?`${i}/collection/${t}-${n}`:i}const u=[{processType:o.k.SERPProcessType.META_PATH,targetId:121,content:function(e){const{t,collectionInfo:n}=e,{userName:i="",name:o="",collectionId:a=""}=null!=n?n:{},s=(0,l.F)(e),c=(0,l.y)(e),u=t("shared_collection_other_apps_title",void 0,"Collection %1$s created by %s").replace("%1$s",o).replace("%s",i),p=t("shared_collection_other_apps_description",void 0,"Watch amazing videos in this curated collection %1$s").replace("%1$s",o),v=s&&!c?r.kl.INDEX:r.kl.NO_INDEX,g=d(i,o,String(a));return{title:u,keywords:void 0,description:p,robotsContent:v,canonicalHref:`${r.AQ}${g}`,applicableDevice:"pc, mobile"}}},{processType:o.k.SERPProcessType.JSONLD_PATH,targetId:121,content:function(e){if(!(0,l.F)(e))return[];const{collectionInfo:t,seoProps:n,t:o}=e,{itemList:u}=null!=n?n:{},{userName:p="",name:v="",collectionId:g}=null!=t?t:{},m=(0,s.fJ)({uniqueId:p}),h=`${a.C}${m}`,_=`${p} | TikTok`,f=d(p,v,String(g)),y=`${a.C}${f}`,b=o("shared_collection_other_apps_title",void 0,"Collection %1$s created by %s").replace("%1$s",v).replace("%s",p),w={"@type":"ItemPage","@id":y},x=(0,c.SH)([{url:a.C,name:r.e4},{url:h,name:_},{url:y,name:null!=b?b:""}]);return[[i.Y.JsonldType.Page,w],[i.Y.JsonldType.BreadcrumbList,x],[i.Y.JsonldType.ItemList,null!=u?u:{}]]}}]},80847:(e,t,n)=>{"use strict";n.d(t,{Dj:()=>d});var i=n(13761),o=n(95584),a=n(7971),r=n(10828),s=n(30251),l=n(61679),c=n(53038);const d=[{processType:i.k.SERPProcessType.META_PATH,targetId:124,content:p},{processType:i.k.SERPProcessType.JSONLD_PATH,targetId:124,content:function(e){var t,n,i,a;const{keyword:l="",seoProps:{itemList:d,isKEPInFindUI:u=!1,abtest:v}={}}=e,g=`${u?s._0:s.sP}${l?`/${l}`:""}`,m=null!==(n=null===(t=null==v?void 0:v.parameters.kep_collection_page_modified_date)||void 0===t?void 0:t.vid)&&void 0!==n?n:"v0",h=null!==(a=null===(i=null==v?void 0:v.parameters.kep_schema_update)||void 0===i?void 0:i.vid)&&void 0!==a?a:"v0",_=(0,c.tl)(m,g),f=u?(0,c.SH)([{url:r.C,name:s.e4},{url:s._0,name:s.W4},{url:`${s._0}/${l}`,name:l}]):(0,c.SH)([{url:r.C,name:s.e4},{url:`${s.sP}/${l}`,name:l}]),y=(0,c.UZ)(h,p(e),g,l,f,d);return"v0"===h?[[o.Y.JsonldType.Page,_],[o.Y.JsonldType.BreadcrumbList,f],[o.Y.JsonldType.ItemList,null!=d?d:{}]]:[[o.Y.JsonldType.WebPage,y]]}}],u=function(e){return`${e} | TikTok`};function p(e){var t,n,i;const{keyword:o,t:r,itemResponse:c,expansionResponse:d,detailResponse:p,seoProps:{isKEPInFindUI:v=!1,abtest:g,removeRelatedKeywordsInDesc:m,customTDK:h}={}}=e,{description:_="",keywords:f=""}=null!=h?h:{},y=null!==(n=null===(t=null==p?void 0:p.wordDetail)||void 0===t?void 0:t.formattedWord)&&void 0!==n?n:"",b=(0,a.zh)(y,g);if(!b)return{robotsContent:"noindex, nofollow"};const w=o.replace(/\x20/g,"-").toLocaleLowerCase(),x=u(b),T=(0,l.D1)((0,a.Zo)(null!==(i=null==c?void 0:c.videoList)&&void 0!==i?i:[])),S=null==d?void 0:d.relatedKeywords;let k=_||`${r("seo_aggre_metadesc1",{views:T,keywords:b})} `;const A=S?(0,a.gW)(S.map((e=>e.formattedWord))):"";!m&&A&&(k+=`${r("seo_aggre_metadesc2",{related_search_keywords:A})}`);let O=b;f?O+=`, ${f}`:A&&(O+=`, ${A}`);const E=`${s._0}/${o}`,P=`${s.sP}/${w}`;return{title:x,keywords:O,description:k,canonicalHref:v?E:P,robotsContent:"index, follow",applicableDevice:"pc, mobile"}}},35047:(e,t,n)=>{"use strict";n.d(t,{c:()=>l});var i=n(95584),o=n(13761),a=n(10828),r=n(30251),s=n(53038);const l=[{processType:o.k.SERPProcessType.META_PATH,targetId:5,content:function(e){const{language:t="en",t:n}=e,i=["TikTok Trends","TikTok Trending","Trending Videos","Trending Hashtags","TikTok i18n keywords"].map((e=>n(e))).join(",");return{title:n("SEO_trending_title"),keywords:i,description:n("SEO_trending_desc"),robotsContent:r.kl.INDEX,canonicalHref:`${r.AQ}${r.E_}?lang=${t}`,applicableDevice:"pc, mobile"}}},{processType:o.k.SERPProcessType.JSONLD_PATH,targetId:5,content:function(e){const{seoProps:{itemList:t}={},language:n="en"}=e,o={"@id":r.Sg,url:r.Ec,name:r.MA,description:r.ai,publisher:(0,s.xM)(a.C,n)},l=(0,s.SH)([{url:a.C,name:r.e4},{url:r.Ec,name:r.MA}]);return[[i.Y.JsonldType.WebSite,o],[i.Y.JsonldType.BreadcrumbList,l],[i.Y.JsonldType.ItemList,null!=t?t:{}]]}}]},93809:(e,t,n)=>{"use strict";n.d(t,{I:()=>v,j:()=>p});var i=n(95584),o=n(13761),a=n(10828),r=n(30251),s=n(66806),l=n(46859),c=n(67982),d=n(61679),u=n(53038);function p(e){var t,n,i;const o=null===(i=null===(n=null===(t=e.seoProps)||void 0===t?void 0:t.abtest)||void 0===n?void 0:n.parameters.hashtag_page_related_hashtag_tdk)||void 0===i?void 0:i.vid,{t:a,statusCode:u,challengeInfo:p}=e,v=(0,l.F)(e),{challenge:{title:g="",desc:m=""}={},statsV2:{videoCount:h=""}={}}=null!=p?p:{},_=`${g}`;let f=a("seo_serp_hashtag_title",{hashtag:_});const y=function(e,t){const{t:n,relatedChallengeList:i=[]}=e;let o;return o="v3"===t||"v4"===t?(0,d.$C)(i):void 0,o}(e,o);let b=function(e,t,n,i,o){var a,r;const{challengeInfo:s,seoProps:l,t:c,relatedChallengeList:u=[]}=e,{title:p,body:v}=null!==(a=null==s?void 0:s.challengeAnnouncement)&&void 0!==a?a:{},g=`${(0,d._9)(null!=p?p:"")} ${(0,d._9)(null!=v?v:"")}`.trim(),m=null!==(r=null==s?void 0:s.challenge.splitTitle)&&void 0!==r?r:null==l?void 0:l.splitTitle;let h;const _=c("seo_serp_hashtag_desc",{tagText:null!=m?m:n}),f=c("playlist_webapp_profileview_playlists_numbervid",{num:t,number:(0,d.D1)(t)}),y=c("seo_serp_hashtag_desc1",{hashtag:n}),b=`${_}${Number(t)>1e3?`${f} `:""}${y}${g?`${g} `:""}${(0,d._9)(i)}`,w=(0,d.$C)(u);return h="v2"===o||"v4"===o?`${b} ${w}`:`${b}`,h}(e,h,_,m,o);const w=v&&g,x=w?`${r.AQ}${(0,c.hw)({tagName:g})}`:"",T=w?r.kl.INDEX:r.kl.NO_INDEX;switch(u){case s.bb:case s.Ad:case s.YF:case s.uM:f=a("err_tag"),b=""}return{title:f,keywords:y,description:b,canonicalHref:x,robotsContent:T,applicableDevice:"pc, mobile"}}const v=[{processType:o.k.SERPProcessType.META_PATH,targetId:3,content:p},{processType:o.k.SERPProcessType.JSONLD_PATH,targetId:3,content:function(e){var t,n;const{challengeInfo:o,seoProps:{itemList:s,metaParams:l}={}}=e,{title:d=""}=null!==(t=null==o?void 0:o.challenge)&&void 0!==t?t:{},p=`${a.C}${(0,c.hw)({tagName:d})}`,v=null!==(n=null==l?void 0:l.title)&&void 0!==n?n:`#${d} | TikTok`,g={"@type":"ItemPage","@id":p},m=(0,u.SH)([{url:a.C,name:r.e4},{url:p,name:v}]);return[[i.Y.JsonldType.Page,g],[i.Y.JsonldType.ItemList,null!=s?s:{}],[i.Y.JsonldType.BreadcrumbList,m]]}}]},75486:(e,t,n)=>{"use strict";n.d(t,{H:()=>l});var i=n(95584),o=n(13761),a=n(10828),r=n(30251),s=n(53038);const l=[{processType:o.k.SERPProcessType.META_PATH,targetId:101,content:function(e){const{language:t="en",t:n}=e,i=[n("SEO TikTok Keyword"),n("TikTok i18n keywords for home")].join(",");return{title:n("SEO_homepage_title"),keywords:i,description:n("SEO_homepage_desc"),robotsContent:r.kl.INDEX,canonicalHref:`${r.AQ}/${t}/`,applicableDevice:"pc, mobile"}}},{processType:o.k.SERPProcessType.JSONLD_PATH,targetId:101,content:function(e){const{language:t="en"}=e,n=`${a.C}/${t}/`,o={"@id":r.uZ,url:n,name:r.wl,description:r.Wf,publisher:(0,s.xM)(n,t),potentialAction:[{"@type":"SearchAction",target:r.Mt,"query-input":r.IP},{"@type":"SearchAction",target:r.F4,"query-input":r.IP}]};return[[i.Y.JsonldType.WebSite,o]]}}]},95098:(e,t,n)=>{"use strict";n.d(t,{I:()=>p,X:()=>v});var i=n(95584),o=n(13761),a=n(10828),r=n(30251),s=n(66806),l=n(46859),c=n(61679),d=n(67982),u=n(53038);function p(e){var t;const{musicInfo:n,statusCode:i,t:o}=e,a=(0,l.F)(e),{music:{id:u="",title:p="",authorName:v="",scheduleSearchTime:g=0}={}}=null!=n?n:{},{videoCount:m}=null!==(t=null==n?void 0:n.stats)&&void 0!==t?t:{};let h,_=o("seo_serp_music_title",{musicName:p,authorName:v});h=p.toLowerCase().endsWith("song")?o("seo_serp_music_desc3",{musicName:p,authorName:v}):o("seo_serp_music_desc",{musicName:p,authorName:v});const f=o("seo_serp_music_desc1",{video_count:(0,c.D1)(m)}),y=o("seo_serp_music_desc2",{musicName:p});let b="";b=m&&m>=1e3?`${h} ${f} ${y}`:`${h} ${y}`;let w=!0;if(0!==g){const e=Number(new Date);w=1e3*Number(g)<=e}const x=a&&p&&u,T=(0,d.pH)({musicName:p,musicId:u}),S=x?`${r.AQ}${T}`:"",k=x&&w?r.kl.INDEX:r.kl.NO_INDEX;switch(i){case s.CB:case s.x2:_=o("err_sound"),b="";break;case s.E7:_=o("err_sound_copy"),b=""}return{title:_,keywords:void 0,description:b,canonicalHref:S,robotsContent:k,applicableDevice:"pc, mobile"}}const v=[{processType:o.k.SERPProcessType.META_PATH,targetId:4,content:p},{processType:o.k.SERPProcessType.JSONLD_PATH,targetId:4,content:function(e){var t;const{musicInfo:n,seoProps:o,t:s}=e,{itemList:l,metaParams:c}=null!=o?o:{};if(!(null==n?void 0:n.music))return[];const{title:p="",id:v="",authorName:g=""}=null!==(t=n.music)&&void 0!==t?t:{},{title:m,description:h}=null!=c?c:{},_=(0,d.pH)({musicName:p,musicId:v}),f=`${a.C}${_}`,y=null!=m?m:`${p}(${g}) | TikTok`,b={"@type":"ItemPage","@id":f},w=(0,u.SH)([{url:a.C,name:r.e4},{url:f,name:y}]),x=(0,u.Df)(n.music,{description:h});return[[i.Y.JsonldType.Page,b],[i.Y.JsonldType.ItemList,null!=l?l:{}],[i.Y.JsonldType.BreadcrumbList,w],[i.Y.JsonldType.MusicRecording,x]]}}]},566:(e,t,n)=>{"use strict";n.d(t,{Nr:()=>_,Pi:()=>h,SY:()=>g,o8:()=>p});var i=n(95584),o=n(13761),a=n(7971),r=n(10828),s=n(30251),l=n(66806),c=n(38838),d=n(61679),u=n(53038);function p(e){const{relatedWordList:t=[]}=e;return t.map((e=>e.content))}function v(e,t,n){return`/${n?"place":"travel"}/${t.replace(/ /g,"-")}-${e}`}function g(e,t){var n;const i=null===(n=c.Wk[e])||void 0===n?void 0:n.subTitles;return i?i.map((e=>{const n=e.display.endsWith("downtown")?`${e.display} ${t}`:`${e.display} in ${t}`;return{i18nTitle:e.title,title:n}})):[]}function m(e){return{url:`${s.AQ}${v(String(null==e?void 0:e.PoiId)||"",(null==e?void 0:e.PoiName)||"")}`,name:`${(null==e?void 0:e.PoiName)||""} | TikTok`}}function h(e){return e?[e.L0PoiGeoInfo,e.L1GeoPoiInfo,e.L2GeoPoiInfo,e.L3GeoPoiInfo,e.L4GeoPoiInfo].filter((e=>void 0!==e)).map(m):[]}const _=[{processType:o.k.SERPProcessType.META_PATH,targetId:125,content:function(e){var t,n,i;const{poiInfo:o,statusCode:r,subcategoryPath:u="",items:g,t:m,relatedWordList:h,isPlacePath:_}=e,{poi:{id:f="",name:y="",allLevelGeoPoiInfo:b,indexEnabled:w=!1}={}}=null!=o?o:{},x=(0,d.D1)((0,a.Zo)(null!=g?g:[])),T=(null===(t=c.Wk[u])||void 0===t?void 0:t.display)||"";let S=".";(null===(n=null==b?void 0:b.L1GeoPoiInfo)||void 0===n?void 0:n.PoiName)?S=b.L1GeoPoiInfo.PoiName:(null===(i=null==b?void 0:b.L0PoiGeoInfo)||void 0===i?void 0:i.PoiName)&&(S=b.L0PoiGeoInfo.PoiName);const k=function(e,t){var n;const i=null===(n=c.Wk[e])||void 0===n?void 0:n.subTitles;return i?i.map((e=>{const n=e.display;return n.endsWith("downtown")?`${n} ${t}`:`${n} in ${t}`})):[]}(u,y),A=h?p(h).splice(0,20).join(","):"";let O=m("basicPoi_task2_metaTdk_title",{subcategoryName:T,poiName:y}),E=m("basicPoi_task2_metaTdk_desc",{subcategoryName:T,poiName:y,upperLevelPoiName:S,views:x,subtitle1:k[0],subtitle2:k[1],subtitle3:k[2],subtitle4:k[3]}),P=m("basicPoi_task2_metaTdk_keyword",{keywords:O,relatedSearch:A});const I=v(f,y,_),C=`${s.AQ}${I}/${u}`,j=w?s.kl.INDEX:s.kl.NO_INDEX;switch(r){case l.kd:case l.oe:O=m("poisuggest_placeuna_title_1"),E="",P="";break;case l.k2:O=m("err_feature_unavailable"),E="",P=""}return{title:O,keywords:P,description:E,canonicalHref:C,robotsContent:j,applicableDevice:"pc"}}},{processType:o.k.SERPProcessType.JSONLD_PATH,targetId:125,content:function(e){var t,n;const{poiInfo:o,seoProps:a,subcategoryPath:l="",isPlacePath:d=!1,t:p}=e,{itemList:g,videoObject:m}=null!=a?a:{};if(!(null==o?void 0:o.poi))return[];const{name:_="",id:f="",allLevelGeoPoiInfo:y}=null!==(t=o.poi)&&void 0!==t?t:{},b=(null===(n=c.Wk[l])||void 0===n?void 0:n.display)||"",w=v(f,_,d),x=`${r.C}${w}/${l}`,T=`${b} in ${_} | TikTok`,S={"@type":"CollectionPage","@id":x},k=(0,u.SH)([{url:r.C,name:s.e4},...h(y),{url:`${r.C}${w}`,name:`${_} | TikTok`},{url:x,name:T}]);return[[i.Y.JsonldType.Page,S],[i.Y.JsonldType.ItemList,null!=g?g:{}],[i.Y.JsonldType.BreadcrumbList,k],[i.Y.JsonldType.VideoObject,null!=m?m:{}]]}}]},22128:(e,t,n)=>{"use strict";n.d(t,{f:()=>x});var i=n(95584),o=n(13761),a=n(10828),r=n(30251),s=n(66806),l=n(46859),c=n(67982),d=n(61679),u=n(77229),p=n(82715),v=n(53038);const g="InteractionCounter";class m{constructor(e,t){this["@type"]=g,this.interactionType={"@type":`http://schema.org/${e.type}`},this.userInteractionCount=e.count}}m.type=g;const h="ProfilePage";class _{constructor(e,t,n,i){var o,r;this["@type"]=h;const s=p.$T.user({uniqueId:e.uniqueId}),l=`${a.C}${s}`,c=null===(o=null==i?void 0:i.parameters.user_structure_data_long_term)||void 0===o?void 0:o.vid;this.mainEntity={"@id":l,"@type":"Person",name:null!==(r=null==e?void 0:e.nickname)&&void 0!==r?r:"",image:(0,v.nE)(e.id),description:e.signature,alternateName:e.uniqueId,url:l,sameAs:e.bioLink&&e.bioLink.link?[e.bioLink.link]:void 0,knowsLanguage:e.language,nationality:e.region,interactionStatistic:[new m({type:"LikeAction",count:Number(t.heart)||t.heartCount},n),new m({type:"FollowAction",count:t.followerCount},n)]},"v1"!==c&&(this.mainEntity.disambiguatingDescription=e.verified?"verified":"",this.mainEntity.identifier=e.uniqueId,this.mainEntity["@type"]=1===e.isOrganization?"Organization":"Person",delete this.mainEntity["@id"]),e.verified&&(this.mainEntity.reviewedBy=v.A_)}}_.type=h;const f="ItemList";class y{constructor(e,t){this["@type"]=f,this.itemListElement=e.map(((e,t)=>Object.assign({position:t+1},e)))}}y.type=f;const b="MusicRecording";class w{constructor(e,t,n){var i,o,r;this["@type"]=b;const s=p.$T.music({id:e.id,title:e.title});this.url=`${a.C}${s}`,this.name=e.title,this.description=n.t("music_SEO_desc3",{musicName:e.title,authorName:e.authorName,posts:(0,d.D1)(t.videoCount)}),this.image=e.coverMedium,this.duration=(0,d.NI)(null!==(i=e.duration)&&void 0!==i?i:0),this.byArtist={"@type":"Person",name:[null!==(o=e.authorName)&&void 0!==o?o:""]},this.inAlbum={"@type":"MusicAlbum",name:null!==(r=e.album)&&void 0!==r?r:""}}}w.type=b;const x=[{processType:o.k.SERPProcessType.META_PATH,targetId:1,content:function(e){const{userInfo:t={},statusCode:n,t:i}=e,o=(0,l.F)(e),{user:{verified:a=!1,nickname:u="",uniqueId:p="",signature:v=""}={},stats:{heart:g=0,followerCount:m=0}={}}=t,h=(0,c.$2)(p),_=(0,d.Ug)(u,p),f=(0,c.fJ)({secUid:"",uniqueId:p}),y=o&&u&&h;let b=y?r.kl.INDEX:r.kl.NO_INDEX;b=[b,r.kl.IMAGE_PREVIEW_LARGE].join(", ");const w=y?`${r.AQ}${f}`:"";let x=i(a?"seo_serp_user2_title":"seo_serp_user1_title",{username:_});const T=(0,d._9)(v);let S=i("seo_serp_user_desc",{username:_});switch(g>20&&(S+=i("seo_serp_user_desc1",{heart:(0,d.D1)(Number(g))})),m>20&&(S+=i("seo_serp_user_desc2",{follower:(0,d.D1)(m)})),S+=`${T}${T&&!(0,d.Ch)(T)?".":""}`,S+=i("seo_serp_user_desc3",{username:_}),n){case s.wv:case s.kV:case s.MG:case s.ab:x=i("err_user"),S="";break;case s.OT:x=i("err_user_private"),S=""}return{title:x,keywords:void 0,description:S,canonicalHref:w,robotsContent:b,applicableDevice:"pc, mobile"}}},{processType:o.k.SERPProcessType.JSONLD_PATH,targetId:1,content:function(e){var t,n;const{userInfo:o,seoProps:{itemList:s,abtest:l}={},musicList:d=[],t:p}=e;if(!(null===(t=null==o?void 0:o.user)||void 0===t?void 0:t.uniqueId))return[];const{nickname:v,uniqueId:g="",secUid:m}=o.user,h=(0,c.fJ)({secUid:null!=m?m:"",uniqueId:g}),f=`${a.C}${h}`,b=((0,c.$2)(g)?`${v} (@${g})`:`${v}`)+" | TikTok",x="v1"===(null===(n=null==l?void 0:l.parameters.user_structure_data_long_term)||void 0===n?void 0:n.vid)?[[i.Y.JsonldType.ItemList,null!=s?s:{}],[u.e.type,new u.e([{url:a.C,name:r.e4},{url:f,name:b}])],[_.type,new _(o.user,o.stats,void 0,l)]]:[[_.type,new _(o.user,o.stats,void 0,l)],[u.e.type,new u.e([{url:a.C,name:r.e4},{url:f,name:b}])],[i.Y.JsonldType.ItemList,null!=s?s:{}]];return d.length&&x.push([y.type,new y(d.filter((e=>e.stats)).slice(0,9).map((e=>new w(e.music,e.stats,{t:p})))),{name:"MusicRecordingItemList"}]),x}}]},93639:(e,t,n)=>{"use strict";n.d(t,{z:()=>f,G:()=>_});var i=n(95584),o=n(13761),a=n(10828),r=n(30251),s=n(66806),l=n(46859),c=n(67982),d=n(61679);const u=({__:e,_i18n:t,usernameTag:n,musicTag:i,diggCount:o,commentCount:a,stickersOnItem:r,videoText:s,topSearchQueryAfterViewWord:l,customDescription:c})=>{const u=(0,d.qV)(r,[4],3).join(" | "),p=(0,d.qV)(r,[9],3).join(" "),v=o>=20?e("seo_serp_videotxt_desc1",t({likes:(0,d.D1)(o)})):"",g=a>=20?e("seo_serp_videotxt_desc2",t({comments:(0,d.D1)(a)})):"",m=c||s,h=e("seo_serp_videotxt_desc3",t({username:n,videoText:m})),_=l?e("seo_serp_searchQuery_desc",{searchQueryAfterView:l}).concat(" "):"",f=e("seo_serp_musicName_desc",t({musicName:i})),y=[u].filter((e=>Boolean(e))).join(". "),b=[p].filter((e=>Boolean(e))).join(". ");return`${v}${g}${0===m.length?h.replace(': ""',""):h}${0===c.length?`${_}${b}${y}${f}`:""}`},p=({searchQueryAfterViewList:e,customKeywords:t})=>{let n="";return t?n=t:e.length>0&&(n=e.slice(0,10).join(",")),n},v=(e,t)=>{let n=0;const i=[];return[...e].forEach((e=>{const o=e.length;o+n<=t&&(n+=o,i.push(e))})),i.join("")},g=({__:e,_i18n:t,videoText:n,usernameTag:i,musicTag:o,topSearchQueryAfterViewWord:a,customTitle:r})=>{const s=n.length;let l="";return r?l=`${r} | TikTok`:n&&a?l=e("serp_videoText_searchQuery_title",t({videoText:s>70?`${v(n,70)}...`:n,searchQueryAfterView:a})):a&&!n?l=e("serp_videoText_searchQuery_title2",t({username:i,searchQueryAfterView:a})):!a&&n?l=e("seo_serp_videotxt_title",t({videoText:s>70?`${v(n,70)}...`:n})):a||n||(l=e("seo_serp_videotxt_title2",t({username:i,musicName:o}))),l};var m=n(53038),h=n(82715);function _(e){var t,n,i,o,a,v,m,h,_;const{itemInfo:f,statusCode:y,seoProps:b,t:w}=e,{preferredLanguage:x,customTDK:T}=null!=b?b:{},{title:S="",description:k="",keywords:A=""}=null!=T?T:{},O=(0,l.F)(e);if((0,l.y)(e))return{};const{id:E,desc:P,stickersOnItem:I=[],stats:C}=null!==(t=null==f?void 0:f.itemStruct)&&void 0!==t?t:{},{diggCount:j=0,commentCount:L=0}=null!=C?C:{},{nickname:M,uniqueId:N}=null!==(i=null===(n=null==f?void 0:f.itemStruct)||void 0===n?void 0:n.author)&&void 0!==i?i:{},{title:D,authorName:R}=null!==(a=null===(o=null==f?void 0:f.itemStruct)||void 0===o?void 0:o.music)&&void 0!==a?a:{},B=null!==(m=null===(v=null==f?void 0:f.itemStruct)||void 0===v?void 0:v.suggestedWords)&&void 0!==m?m:[],U=B.length>0?B[0]:"",F=null!==(_=null===(h=null==f?void 0:f.itemStruct)||void 0===h?void 0:h.indexEnabled)&&void 0!==_&&_,V=(0,c.$2)(N),z=(0,d.Ug)(M,N),H=P?(0,d._9)(P):"",q=(0,d.E)(D,null!=R?R:""),W=function(e){const t=e?{lng:e}:{};return(e={})=>Object.assign(Object.assign({},e),t)}(x);let $=g({__:w,_i18n:W,preferredLanguage:x,videoText:H,usernameTag:z,musicTag:q,topSearchQueryAfterViewWord:U,customTitle:S});const G=p({searchQueryAfterViewList:B,customKeywords:A});let Y=u({__:w,_i18n:W,usernameTag:z,musicTag:q,diggCount:j,commentCount:L,stickersOnItem:I,videoText:H,topSearchQueryAfterViewWord:U,customDescription:k});const Z=O&&M&&V&&E,K=!!(null==f?void 0:f.itemStruct.imagePost),X=Z?K?`${r.AQ}/@${N}/photo/${E}`:`${r.AQ}/@${N}/video/${E}`:"";let Q=Z&&F?r.kl.INDEX:r.kl.NO_INDEX;switch(Q=[Q,r.kl.IMAGE_PREVIEW_LARGE].join(", "),y){case s.Zi:$=w("err_vid_geo"),Y="";break;case s.c:case s._d:case s.nV:case s.nm:case s.Fq:case s.Wx:case s.f6:$=w("err_vid"),Y="";break;case s.p$:$=w("subVideo_outApp_sharing_title",{creator:M}),Y=""}return{title:$,keywords:G,description:Y,canonicalHref:X,robotsContent:Q,applicableDevice:"pc, mobile"}}const f=[{processType:o.k.SERPProcessType.META_PATH,targetId:0,content:_},{processType:o.k.SERPProcessType.JSONLD_PATH,targetId:0,content:function(e){var t,n,o,s,d,u;if(!(0,l.F)(e))return[];const{itemInfo:p,seoProps:v,t:g}=e,{abtest:f,metaParams:y,videoObject:b,customTDK:w,socialMediaPosting:x}=null!=v?v:{},{title:T,description:S,keywords:k}=null!=w?w:{},{id:A,desc:O}=null!==(t=null==p?void 0:p.itemStruct)&&void 0!==t?t:{},{nickname:E,uniqueId:P,secUid:I,verified:C}=null!==(o=null===(n=null==p?void 0:p.itemStruct)||void 0===n?void 0:n.author)&&void 0!==o?o:{};if(!A||!P)return[];const j=(0,c.fJ)({secUid:I,uniqueId:P}),L=`${a.C}${j}`,M=g(C?"user_SEO_official_title1":"user_SEO_title1",{username:(0,c.$2)(P)?`${E} (@${P})`:`${E}`}),N=(null==p?void 0:p.itemStruct.imagePost)?h.$T.photo({id:A,uniqueId:P}):h.$T.video({id:A,uniqueId:P}),D=`${a.C}${N}`,R={"@type":"ItemPage","@id":D},B=null!==(s=null==y?void 0:y.title)&&void 0!==s?s:O,U=B&&M?(0,m.SH)([{url:a.C,name:r.e4},{url:L,name:M},{url:D,name:B}]):{},F=null!==(u=null===(d=null==f?void 0:f.parameters.video_schema_update)||void 0===d?void 0:d.vid)&&void 0!==u?u:"v0",V=[];if("v0"===F&&(V.push([i.Y.JsonldType.Page,R]),V.push([i.Y.JsonldType.BreadcrumbList,U])),b)if("v0"===F)T&&(b.name=T),k&&(b.keywords=k),S&&(b.description=`${S} ${b.description}`),V.push([i.Y.JsonldType.VideoObject,null!=b?b:{}]);else{const t=(0,m.qJ)(F,_(e),b,U,w,A);V.push([i.Y.JsonldType.WebPage,null!=t?t:{}])}return x&&(T&&(x.headline=T),S&&(x.articleBody=`${S} ${x.articleBody}`),V.push([i.Y.JsonldType.SocialMediaPosting,null!=x?x:{}])),V}}]},66322:(e,t,n)=>{"use strict";n.d(t,{d:()=>u,y:()=>d});var i=n(13761);const o=new Set([i.k.SERPProcessType.JSONLD_PATH,i.k.SERPProcessType.META_PATH]),a=new Set([i.k.SERPProcessType.JSONLD_EXP,i.k.SERPProcessType.META_EXP]),r=new Set([i.k.SERPProcessType.JSONLD_PAGE,i.k.SERPProcessType.META_PAGE]),s=new Set([i.k.SERPProcessType.META_EXP,i.k.SERPProcessType.META_PAGE,i.k.SERPProcessType.META_PATH]),l=new Set([i.k.SERPProcessType.JSONLD_EXP,i.k.SERPProcessType.JSONLD_PAGE,i.k.SERPProcessType.JSONLD_PATH]),c=(e,t)=>{var n;const{seoProps:{pageId:i,pageType:s,abtest:l}={}}=t,c=null!==(n=null==l?void 0:l.vidList)&&void 0!==n?n:[];return[...e.filter((e=>o.has(e.processType)&&e.targetId===s)),...e.filter((e=>a.has(e.processType)&&c.includes(e.targetId.toString()))),...e.filter((e=>r.has(e.processType)&&e.targetId===i))]};function d(e,t){return c(t,e).filter((e=>s.has(e.processType))).reduce(((e,t)=>{var n,i;const o=t.content(e),a=null!==(i=null===(n=e.seoProps)||void 0===n?void 0:n.metaParams)&&void 0!==i?i:{};return Object.assign(Object.assign({},e),{seoProps:Object.assign(Object.assign({},e.seoProps),{metaParams:Object.assign(Object.assign({},a),o)})})}),e)}function u(e,t){return c(t,e).filter((e=>l.has(e.processType))).reduce(((e,t)=>{var n,i;const o=t.content(e),a=null!==(i=null===(n=e.seoProps)||void 0===n?void 0:n.jsonldList)&&void 0!==i?i:[];return Object.assign(Object.assign({},e),{seoProps:Object.assign(Object.assign({},e.seoProps),{jsonldList:[...a,...o]})})}),e)}},61679:(e,t,n)=>{"use strict";n.d(t,{$C:()=>m,Ch:()=>b,D1:()=>v,E:()=>_,NI:()=>y,Ug:()=>h,_9:()=>g,qV:()=>f});var i=n(94810);const{isRealUniqueId:o}=i.A;function a(e,t=1){return Math.round(Number(`${Number(e)}e${t}`))/Math.pow(10,t)}const r=1e3,s="K",l=1e3*r,c="M",d=1e3*l,u="B",p=BigInt(4294967296);function v(e=0){let t,n=Number(e);return n<0&&(n=Number(p+BigInt(e))),t=n<1e4?n.toString():ne.replace(/^\s+/gm,""))).join(" ").trim()}function m(e){return`${e.slice(0,10).map((e=>e.challenge.title.replace("#",""))).join(" ")}`}const h=(e="",t="")=>o(t)?`${e} (@${t})`:`${e}`;function _(e="",t=""){return e.replace(` - ${t}`,"")+(t?` - ${t}`:"")}function f(e=[],t,n=3){const i=[],o=t;e.forEach((e=>{const{stickerType:t,stickerText:n=[]}=e;-1!==o.indexOf(null!=t?t:0)&&(null==n?void 0:n.length)&&i.push(...n)}));const a=i.length;return n>0&&a>n&&(i.splice(n,a-n),i.push("...")),i}function y(e){if(0===e)return"";const t=e%60,n=Math.floor(e/60),i=n%60,o=Math.floor(n/60),a=o%24,r=Math.floor(o/24);let s="P";return r>0&&(s+=`${r}D`),s+="T",a>0&&(s+=`${a}H`),i>0&&(s+=`${i}M`),s+=`${t}S`,s}function b(e){return/([!@&/\\#,+()$~%.'":*?<>{}!?。]$)/.test(e)}},67982:(e,t,n)=>{"use strict";n.d(t,{$2:()=>r,G2:()=>d,WD:()=>m,fJ:()=>c,hw:()=>p,l3:()=>s,pH:()=>v});var i=n(94810);const{isPureNumber:o,hasIllegalText:a,isRealUniqueId:r,getPureUniqueId:s,purifyMusicName:l}=i.A,{getPureUserPath:c,getPureLivePath:d,getPureVideoPath:u,getPureTagPath:p,getPureMusicPath:v,getPureStickerPath:g,getPureQuestionPath:m}=i.h},53038:(e,t,n)=>{"use strict";n.d(t,{A_:()=>_,Df:()=>p,SH:()=>c,UZ:()=>b,nE:()=>h,qJ:()=>y,tl:()=>f,xM:()=>u});var i=n(94810),o=n(95584),a=n(10828),r=n(7971),s=n(30251),l=n(61679);function c(e=[]){return{itemListElement:e.reduce(((e,t,n)=>{const{url:i,name:a}=t;return e.push({"@type":o.Y.JsonldType.ListItem,position:n+1,item:{"@type":"Thing","@id":i,name:a}}),e}),[])}}const d=e=>{var t,n;return null!==(n=null===(t=null==e?void 0:e.itemListElement)||void 0===t?void 0:t.map(((e,t)=>{var n,i;const{item:o}=e;return{"@type":"ListItem",position:t+1,name:null!==(n=null==o?void 0:o.name)&&void 0!==n?n:"",item:null!==(i=null==o?void 0:o["@id"])&&void 0!==i?i:""}})))&&void 0!==n?n:[]};function u(e,t){const n=/ko/.test(t)?s.wQ:s.yN;return{"@type":"Organization","@id":s.A6,name:s.e4,url:e,sameAs:n,logo:{"@type":"ImageObject",url:a.U}}}function p(e,t){var n;const{title:o="",id:r="",authorName:s="",coverMedium:c="",duration:d=0,album:u=""}=e,p=i.h.getPureMusicPath({musicName:o,musicId:r});return{url:`${a.C}${p}`,name:o,description:null!==(n=null==t?void 0:t.description)&&void 0!==n?n:"",image:c,duration:(0,l.NI)(null!=d?d:0),byArtist:{"@type":"Person",name:[null!=s?s:""]},inAlbum:{"@type":"MusicAlbum",name:null!=u?u:""}}}const v="1988",g=`${a.C}/api/img`,m={COVERS:"0",COVERS_ORIGIN:"1",USER_IMAGE:"2"};function h(e){return e?`${g}/?userId=${e}&location=${m.USER_IMAGE}&aid=${v}`:void 0}const _={"@type":"Organization",name:"TikTok",url:"www.tiktok.com"},f=(e,t)=>{const n={"@type":"CollectionPage","@id":t};if("v0"===e)return n;const{today:i,monday:o}=(0,r.XH)();return Object.assign(Object.assign({},n),{dateModified:"v1"===e?i:o})},y=(e,t,n,i,o,a)=>{if("v0"===e||!n)return null;const{title:s="",description:l="",keywords:c}=t,{title:u,description:p,keywords:v}=null!=o?o:{},{url:g,name:m,description:h,keywords:_,embeddedTextCaption:f,thumbnailUrl:y,uploadDate:b,contentUrl:w,embedUrl:x,commentCount:T,duration:S,inLanguage:k,creator:A,width:O,height:E,interactionStatistic:P,comment:I,genre:C,transcript:j,locationCreated:L,contentLocation:M}=n,{name:N,alternateName:D="",url:R,image:B}=A,U=u||m,F=p?`${p} ${h}`:h,V=(0,r.Xs)(I,b),z={"@type":"WebPage",name:s,url:g,about:l,alternateName:U,keywords:c,dateCreated:b,dateModified:V,image:{"@type":"ImageObject",url:y[0],caption:U},breadcrumb:{"@type":"BreadcrumbList",itemListElement:d(i)},mainEntity:{author:{"@type":"Person",name:N,identifier:D,url:R},commentCount:T,keywords:v||_,interactionStatistic:P,comment:I,transcript:j,contentLocation:M}};if("v1"===e){const e=Object.assign(Object.assign({},z.mainEntity),{"@type":"VideoObject",name:U,url:g,description:F,thumbnailUrl:y,uploadDate:b,contentUrl:w,embedUrl:x,embeddedTextCaption:f,duration:S,inLanguage:k,width:O,height:E,genre:C,locationCreated:L});return Object.assign(Object.assign({},z),{mainEntity:e})}const H={"@type":"ImageObject",url:y[0],caption:U};E&&(H.height={"@type":"QuantitativeValue",value:1920}),O&&(H.width={"@type":"QuantitativeValue",value:1080});const q=Object.assign(Object.assign({},z.mainEntity),{"@type":"v2"===e?"DiscussionForumPosting":"SocialMediaPosting",image:[H],video:{"@type":"VideoObject",url:g,name:U,description:F,embeddedTextCaption:f,thumbnailUrl:y,uploadDate:b,contentUrl:w,duration:S,inLanguage:k,width:O,height:E,genre:C,locationCreated:L},datePublished:b,dateModified:V,headline:U,articleBody:F,identifier:a,publisher:{"@type":"Organization",name:"TikTok",logo:{"@type":"ImageObject",url:"https://www.tiktok.com/favicon.ico",width:{"@type":"QuantitativeValue",value:152}}},isPartOf:{"@type":"ProfilePage",identifier:D,name:N,url:R,image:{"@type":"ImageObject",url:B,caption:`icon of ${N}`}}});return Object.assign(Object.assign({},z),{mainEntity:q})},b=(e,t,n,i,o,a)=>{var s,l,c,u,p;let v="";(null===(s=null==a?void 0:a.itemListElement)||void 0===s?void 0:s[0])&&(v=a.itemListElement[0].thumbnailUrl[0]);const{title:g,keywords:m,description:h}=t,{monday:_}=(0,r.XH)(),f={"@type":"WebPage",name:g,url:n,about:h,alternateName:i,dateModified:new Date(_).toISOString(),image:{"@type":"ImageObject",url:v,caption:i}};if("v3"===e){const e=null!==(c=null===(l=null==a?void 0:a.itemListElement)||void 0===l?void 0:l.map(((e,t)=>{const{url:n}=e;return{"@type":"ListItem",position:t+1,url:n}})))&&void 0!==c?c:[];return Object.assign(Object.assign({},f),{keywords:m,mainEntity:{"@type":"ItemList",itemListElement:e}})}const y=null!==(p=null===(u=null==a?void 0:a.itemListElement)||void 0===u?void 0:u.map((t=>{const{creator:n,comment:i,name:o,url:a,description:s,embeddedTextCaption:l,thumbnailUrl:c,keywords:d,uploadDate:u,contentUrl:p,duration:v,inLanguage:g,width:m,height:h,commentCount:_,genre:f,locationCreated:y,interactionStatistic:b}=t,{name:w,url:x,alternateName:T="",image:S}=n,k=w||T,A=(0,r.Xs)(i,u),O={name:o,url:a,description:s,embeddedTextCaption:l,thumbnailUrl:c,uploadDate:u,dateModified:A,contentUrl:p,duration:v,inLanguage:g,width:m,height:h,commentCount:_,genre:f,locationCreated:y};if("v1"===e)return Object.assign(Object.assign({"@type":"VideoObject"},O),{keywords:d,author:k,isPartOf:{"@type":"ProfilePage",identifier:T,name:k,url:x,image:{"@type":"ImageObject",url:S,caption:`icon of ${k}`}},interactionStatistic:b});const E={"@type":"ImageObject",url:c[0],caption:o};h&&(E.height={"@type":"QuantitativeValue",value:1920}),m&&(E.width={"@type":"QuantitativeValue",value:1080});const P=a.split("/").pop();return{"@type":"DiscussionForumPosting",image:[E],video:Object.assign({"@type":"VideoObject"},O),author:{"@type":"Person",name:k,identifier:T,url:x},commentCount:_,datePublished:u,dateModified:A,headline:o,articleBody:s,identifier:P,keywords:d,publisher:{"@type":"Organization",name:"TikTok",logo:{"@type":"ImageObject",url:"https://www.tiktok.com/favicon.ico",width:{"@type":"QuantitativeValue",value:152}}},interactionStatistic:b,isPartOf:{"@type":"ProfilePage",identifier:T,name:k,url:x,image:{"@type":"ImageObject",url:S,caption:`icon of ${k}`}}}})))&&void 0!==p?p:[];return Object.assign(Object.assign({},f),{breadcrumb:{"@type":"BreadcrumbList",itemListElement:d(o)},keywords:m,mainEntity:{"@type":"Collection",hasPart:y}})}},46859:(e,t,n)=>{"use strict";function i({statusCode:e=0}={}){return 0===e||function(e){return 10229===e||10230===e}(e)}function o({statusCode:e=0}={}){return 10216===e||2040001===e}n.d(t,{F:()=>i,y:()=>o})},38838:(e,t,n)=>{"use strict";n.d(t,{Am:()=>u,Cc:()=>_,Eo:()=>h,R:()=>f,Ri:()=>r,Rx:()=>c,SW:()=>v,V3:()=>a,WG:()=>d,Wk:()=>s,lv:()=>o,xG:()=>p,yh:()=>m});const i="place",o="place",a="travel",r="travel",s={"things-to-do":{display:"Things to do",title:"basicPoi_toDoList_region",entry:"basicPoi_toDoList",popularListDisplay:"popular sightseeings in",popularListTitle:"seo_popular_sightseeing",idlType:0,subTitles:[{display:"Sightseeings",title:"basicPoi_sightSeeing",idlType:1},{display:"Outdoor activities",title:"basicPoi_outdoorActivities",idlType:2},{display:"Nightlife",title:"basicPoi_nightLife",idlType:3},{display:"Family friendly activities",title:"basicPoi_familyFriendly",idlType:4}]},"best-restaurants":{display:"Best restaurants",title:"basicPoi_bestRestaurant_region",entry:"basicPoi_foodNDrinks",popularListDisplay:"popular restaurants in",popularListTitle:"seo_popular_restaurant",idlType:1,subTitles:[{display:"Best brunch restaurants",title:"basicPoi_brunchRestaurants",idlType:6},{display:"Best fine dining restaurants",title:"basicPoi_fineDining",idlType:7},{display:"Best seafood restaurants",title:"basicPoi_seaFood",idlType:8},{display:"Best vegan restaurants",title:"basicPoi_veganRestaurants",idlType:9}]},hotels:{display:"Hotels",title:"basicPoi_hotels_region",entry:"basicPoi_hotels",popularListDisplay:"popular hotels in",popularListTitle:"seo_popular_hotel",idlType:2,subTitles:[{display:"Hotels in downtown",title:"basicPoi_downtownHotels",idlType:11},{display:"Pet friendly hotels",title:"basicPoi_petFriendly",idlType:12},{display:"Airbnbs",title:"basicPoi_airbnbs",idlType:13},{display:"Luxury hotels",title:"basicPoi_luxuryHotels",idlType:14}]},parks:{display:"Parks",title:"basicPoi_parks_region",entry:"basicPoi_parks",popularListDisplay:"popular parks in",popularListTitle:"seo_popular_park",idlType:4,subTitles:[{display:"Amusement parks",title:"basicPoi_amusementParks",idlType:16},{display:"Dog parks",title:"basicPoi_dogParks",idlType:17},{display:"Skate parks",title:"basicPoi_skateParks",idlType:18},{display:"Indoor parks",title:"basicPoi_indoorParks",idlType:19}]},shopping:{display:"Shopping",title:"basicPoi_shopping_region",entry:"basicPoi_shopping",popularListDisplay:"popular shopping malls in",popularListTitle:"seo_popular_shoppingMall",idlType:3,subTitles:[{display:"Shopping malls",title:"basicPoi_shoppingMalls",idlType:21},{display:"Shopping in downtown",title:"basicPoi_downtownShopping",idlType:22},{display:"Vintage shopping",title:"basicPoi_vintageShopping",idlType:23},{display:"Gift shops",title:"basicPoi_giftShops",idlType:24}]}};function l(e=""){return e?e.replace(/([\[\]\,.?"\(\)+_*\/\\&\$#^@!%~`<>:;\{\}?,。·!¥……()+{}【】、|《》]|(?!\s)'\s+|\s+'(?!\s))/gi,"").trim().replace(/(\s+)-(\s+)/gi," ").replace(/\s+|・/gi,"-"):""}function c(){return Object.values(s).map((e=>({title:e.display,i18nTitle:e.title})))}function d(e,t){const n=u(e,t,{path:r});return Object.keys(s).map((e=>`${n}/${e}`))}function u(e,t,n){const{path:i="travel",lang:o}=null!=n?n:{};return`/${i}/${l(t)}-${e}${o?`?language=${o}`:""}`}const p=e=>s[e.toLowerCase()],v=e=>e?{isUS:"6252001"===e.countryCode,isRegional:1===e.type}:{isUS:!1,isRegional:!1},g=(Object.keys(s),(e,t)=>{if(!e.poiInfo)return"";const{path:n,category:i}=null!=t?t:{};return`${u(e.poiInfo.poi.id,e.poiInfo.poi.name,{path:n})}${i?`/${i.toLocaleLowerCase()}`:""}`});function m({poi:e,category:t,path:n}){if(t)return{pageType:"subcategory",pagePath:r};if(!e)return{pageType:"nonUs",pagePath:i};const{isUS:s,isRegional:l}=v(e);return s?l?{pageType:"regional",pagePath:"place"===n?o:a}:{pageType:"store",pagePath:o}:{pageType:"nonUs",pagePath:i}}function h(e,t=!1,n,i){var o,a;const{category:s,path:c="travel"}=null!=i?i:{},d="place"===c;if(!e||0!==e.statusCode)return{instruction:"redirect",code:t?404:301};const{pageType:u,pagePath:p}=m({poi:null===(o=e.poiInfo)||void 0===o?void 0:o.poi,category:s,path:c});return"nonUs"===u?{instruction:"moveOn"}:d||"store"!==u?d&&"subcategory"===u?{instruction:"redirect",code:404}:!t&&s&&s!==s.toLocaleLowerCase()?{instruction:"redirect",code:301,redirectUrl:g(e,{path:r,category:s})}:n!==l(null===(a=e.poiInfo)||void 0===a?void 0:a.poi.name)?{instruction:"redirect",code:301,redirectUrl:g(e,{path:p,category:s})}:{instruction:"moveOn"}:{instruction:"redirect",code:404}}function _(e,t=!1,n){return e.some((e=>{var t;return 0!==e.statusCode||0===(null===(t=e.itemList)||void 0===t?void 0:t.length)}))?t?{instruction:"redirect",code:n?404:301}:{instruction:"loadMore"}:{instruction:"moveOn"}}function f(e){for(const t of e)if("redirect"===t.instruction)return t;for(const t of e)if("loadMore"===t.instruction)return t;return{instruction:"moveOn"}}},35267:(e,t,n)=>{"use strict";n.d(t,{MJ:()=>s,T6:()=>a,xw:()=>r,yK:()=>l});var i=n(67823),o=n(4474);function a(){return{userAgent:window.navigator.userAgent||"",acceptLanguage:window.navigator.languages||[]}}function r(){return{hostname:window.location.hostname||"",pathname:window.location.pathname||"",query:(0,o.parse)(window.location.search)}}function s(e){return i.A.get(e)}function l(){throw new Error("this function only works on server side")}},39785:(e,t,n)=>{"use strict";function i({csr:e}){return e}n.d(t,{M:()=>i})},40438:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});var i=n(67192);const o=()=>i.l},53966:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});var i=n(64162),o=n(1055);function a(e=""){return o.p8+e}class r extends i.E{constructor(){super(...arguments),this.terminate=e=>({type:a(e),payload:null,store:this.store})}}},46682:(e,t,n)=>{"use strict";n.d(t,{S:()=>a,w:()=>r});var i=n(73580),o=n(41271);function a(e,t){return[(0,o.P)(e,t),r(e)]}function r(e){return(0,i.Nj)(e).dispatchers}},41271:(e,t,n)=>{"use strict";n.d(t,{P:()=>p});var i=n(73580),o=n(71111),a=n(40099),r=n(28103),s=n(1475),l=n(95719);function c(e,t){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;const o=Object.prototype.hasOwnProperty;for(const i of n)if(!o.call(t,i)||e[i]!==t[i])return!1;return!0}var d=n(7570);const u=(0,o.atom)(null);function p(e,t){const n=e.jotaiAtom,p="jotaiAtom"in e;e.jotaiAtom&&(e.jotaiAtom.__SIGI_MODULE__=e);const{store:v}=(0,i.Nj)(e),g=function(e,t,n,i=c){const o=n||[],d=(0,a.useRef)(),u=(0,a.useRef)(),p=(0,a.useRef)();i(u.current,o)||(p.current=null!=t?t:r.D,d.current=p.current(e.state)),u.current=o;const v=function(){const[,e]=(0,a.useReducer)((e=>e+1),0);return e}(),g=(0,a.useCallback)((e=>{const t=p.current(e);i(d.current,t)||(d.current=t,v())}),[]),m=(0,a.useCallback)((()=>e.state$.pipe((0,s.i)(1),(0,l.M)(g)).subscribe()),[e,g]),h=(0,a.useMemo)((()=>m()),[m]);return(0,a.useEffect)((()=>{const e=h.closed?m():h;return()=>{e.unsubscribe()}}),[h,m]),d.current}(v,null==t?void 0:t.selector,null==t?void 0:t.dependencies,null==t?void 0:t.equalFn),m=function(e,t){const n=(0,o.useStore)(t),{equalityFn:i=Object.is,selector:a}=null!=t?t:{},r=null!=a?a:e=>e,s=()=>n.get(e);return(0,d.useSyncExternalStoreWithSelector)((t=>n.sub(e,t)),s,s,r,i)}(null!=n?n:u,{selector:e=>{var n;return e?null!==(n=null==t?void 0:t.selector(e))&&void 0!==n?n:e:null},equalityFn:c});return p?m:g}},66476:(e,t,n)=>{"use strict";n.d(t,{$9:()=>s,DA:()=>o,LH:()=>a,cc:()=>r,xD:()=>i});const i="__UNIVERSAL_DATA_FOR_REHYDRATION__",o="__$UNIVERSAL_DATA$__",a="__DEFAULT_SCOPE__",r=Symbol("i"),s=Symbol("s")},82231:(e,t,n)=>{"use strict";n.d(t,{Dh:()=>s});var i=n(71510),o=n.n(i),a=n(40099),r=n(66476);function s(e,t,n){let i="",s="";"string"==typeof e?i=e:(i=e.key,s=e.scope);const[l,c]=(0,a.useState)((()=>{var e,a,l,c;if(!window[r.DA]||window[r.DA][r.cc]){let t={};try{t=JSON.parse(null!==(a=null===(e=document.getElementById(r.xD))||void 0===e?void 0:e.textContent)&&void 0!==a?a:"{}")}catch(e){console.error("error while parsing rehydration data")}window[r.DA]=window[r.DA]||{},window[r.DA][r.cc]=!1,window[r.DA][r.$9]=!0,window[r.DA]=o()(window[r.DA],t)}const d=window[r.DA],u=s||r.LH,p=null!==(c=null===(l=d[u])||void 0===l?void 0:l[i])&&void 0!==c?c:void 0;if(void 0===p)return t;if(null==n?void 0:n.volatile){const e=`${i}_volatile`;d[u][e]=p,d[u][i]=void 0}return p}));return[l,c,()=>null]}},88874:(e,t,n)=>{"use strict";n.d(t,{YI:()=>o,A7:()=>a}),n(40099);var i=n(66476);function o(e,t){var n,o,a,r;if(!window[i.DA]){let e={};try{e=JSON.parse(null!==(o=null===(n=document.getElementById(i.xD))||void 0===n?void 0:n.textContent)&&void 0!==o?o:"{}")}catch(e){console.error("error while parsing rehydration data")}window[i.DA]=e}return null!==(r=null===(a=window[i.DA][null!=t?t:i.LH])||void 0===a?void 0:a[e])&&void 0!==r?r:null}function a(e,t){var n,o;if(null===(n=window[i.DA])||void 0===n?void 0:n[i.$9])throw new Error("set universal data is not allowed after ReactDom kicked in");let a="",r="";"string"==typeof e?a=e:(a=e.key,r=null!==(o=e.scope)&&void 0!==o?o:""),window[i.DA]=window[i.DA]||{[i.cc]:!0},function(e,t,n){let i=e,o=0;for(;i&&o{"use strict";var i,o;n.d(t,{Jr:()=>a,Tk:()=>i,ey:()=>o}),function(e){e.ThreeColumnAuto="list_auto",e.ThreeColumnTrigger="list_mouse_trigger",e.BrowserMode="browser_mode",e.SwiperMode="swiper_mode",e.FullscreenMode="fullscreen",e.OneColumn="one_column",e.ThreeColumn="three_column",e.WideScreen="wide_screen",e.VideoDetail="video_detail",e.Pip="pip",e.Others="others",e.MiniPlayer="mini_player",e.BannerAds="banner_ad",e.ImmersivePlayer="immersive_player"}(i||(i={})),function(e){e[e.OneColumn=0]="OneColumn",e[e.ThreeColumn=1]="ThreeColumn",e[e.BrowserMode=2]="BrowserMode",e[e.SwiperMode=3]="SwiperMode",e[e.VideoDetail=4]="VideoDetail",e[e.FullscreenMode=5]="FullscreenMode",e[e.Pip=6]="Pip",e[e.CreatorTab=7]="CreatorTab",e[e.MiniPlayer=8]="MiniPlayer",e[e.ImmersivePlayer=9]="ImmersivePlayer"}(o||(o={}));const a={2:"browser_mode",8:"mini_player",0:"one_column",1:"three_column",4:"video_detail",5:"fullscreen",7:"browser_mode",6:"pip",3:"swiper_mode",9:"immersive_player","-1":"others"}},25342:(e,t,n)=>{"use strict";n.d(t,{EM:()=>r,Hq:()=>s,OZ:()=>i,XJ:()=>d,_8:()=>c,aS:()=>l,uY:()=>o,xY:()=>a});const i=11988001,o=11988090;var a;!function(e){e.OneColumn="draw_ad",e.BrowserMode="videodetail_ad",e.ATA="about_this_ad",e.BannerAd="banner_ad"}(a||(a={}));const r={one_column:a.OneColumn,browser_mode:a.BrowserMode,immersive_player:a.BrowserMode};var s,l,c;!function(e){e.Photo="photo",e.Title="title",e.Name="name",e.Button="button",e.Comment="comment_sign",e.Share="share_sign",e.ATA="about_tiktok_ads",e.Sponsored="sponsored"}(s||(s={})),function(e){e.HowTTAdsWork="how_tiktok_ads_work",e.PA="pa_setting"}(l||(l={})),function(e){e.PA="pa_setting",e.HowTTAdsWork="how_tiktok_ads_work",e.CloseButton="close_button",e.Others="all_others"}(c||(c={}));const d="umeng"},2584:(e,t,n)=>{"use strict";n.d(t,{O:()=>o});var i=n(93608);const o={handlePageView:e=>{i.f.sendEvent("page_view",e)},handleToTop:()=>{i.f.sendEvent("click_to_top")},handleTap:e=>{i.f.sendEvent("tap",Object.assign(Object.assign({},e),{duration:performance.now()})),window.__COIN_ACTIVITY_TAP_PARAMS&&i.f.sendEvent("luckycat_click_download",window.__COIN_ACTIVITY_TAP_PARAMS)},handlePageSlide:()=>{i.f.sendEvent("page_slide")},handleGeneralClick:(e,t={})=>{i.f.sendEvent("general_click",Object.assign({section:e},t))},reportDownloadSpeed:(e,t={})=>{i.f.sendEvent("device_internet_speed",Object.assign({internet_speed:e},t))},reportFPS:(e,t={})=>{i.f.sendEvent("page_fps",Object.assign({fps:e},t))},handleCommonClick:()=>{i.f.sendEvent("common_click")},handleCommonMousemove:()=>{i.f.sendEvent("common_mousemove")},handleCommonScroll:()=>{i.f.sendEvent("common_scroll")},handleCommonTap:()=>{i.f.sendEvent("common_tap")},reportUserPreference:e=>{i.f.sendEvent("user_preference",{system_theme:e.system_theme,reduced_motion:e.reduced_motion})}}},70322:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});var i=n(93608);const o={handleInferenceDisqualify:e=>{i.f.sendEvent("inference_disqualify",e)},handleInferenceTrigger:e=>{i.f.sendEvent("inference_trigger",e)}}},30023:(e,t,n)=>{"use strict";n.d(t,{YH:()=>d,t9:()=>c});var i,o,a,r,s,l=n(93608);!function(e){e.Show="livesdk_live_show",e.Duration="livesdk_live_window_duration_v2",e.StartPlay="livesdk_live_window_play",e.RecPlay="livesdk_rec_live_play",e.Follow="livesdk_follow",e.Unfollow="livesdk_unfollow"}(i||(i={})),function(e){e.OneColumn="one_column",e.BrowserMode="browser_mode",e.ImmersivePlayer="immersive_player"}(o||(o={})),function(e){e.PageMode="page_mode",e.BrowserMode="browser_mode"}(a||(a={})),function(e){e.Cell="live_cell",e.Head="live_head",e.Btn="live_btn",e.FollowingPreview="live_cover_preview",e.Like="live_fyp_like",e.Share="live_fyp_share"}(r||(r={})),function(e){e.FYP="homepage_hot",e.FollowingPage="homepage_follow"}(s||(s={}));const c={0:"video_live",1:"third_party",2:"media",3:"audio",4:"screen_share",5:"social_live",6:"live_studio"},d={handleLiveShow:e=>{l.f.event("livesdk_live_show",Object.assign({enter_from_merge:"homepage_hot",enter_method:"live_cell",action_type:"click",live_type:c[Number(e.live_room_mode)]},e))},handleLiveEntranceClick:e=>{l.f.event("livesdk_rec_live_play",Object.assign({enter_from_merge:"homepage_hot",action_type:"click",live_type:c[Number(e.live_room_mode)]},e))},handleLiveDuration:e=>{l.f.event("livesdk_live_window_duration_v2",Object.assign({enter_from_merge:"homepage_hot",action_type:"click",live_type:c[Number(e.live_room_mode)]},e))},handleFollow:e=>{l.f.event("livesdk_follow",Object.assign({enter_from_merge:"homepage_hot",action_type:"click",live_type:c[Number(e.live_room_mode)]},e))},handleUnFollow:e=>{l.f.event("livesdk_unfollow",Object.assign({enter_from_merge:"homepage_hot",action_type:"click",live_type:c[Number(e.live_room_mode)]},e))},handleStartPlay:e=>{l.f.event("livesdk_live_window_play",Object.assign({enter_from_merge:"homepage_hot",action_type:"click",live_type:c[Number(e.live_room_mode)]},e))}}},8615:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});var i=n(93608);const o={handleLinkPhoneOrEmailPopupShow:e=>{i.f.sendEvent("link_phone_number_notify",{enter_method:e.enterMethod})},clickLinkPhoneNumber:()=>{i.f.sendEvent("click_link_phone_number")},linkPhoneNumberSuccess:()=>{i.f.sendEvent("link_phone_number_success")},clickLinkEmail:()=>{i.f.sendEvent("click_link_email")},linkEmailSuccess:()=>{i.f.sendEvent("link_email_success")},ClickFeedback:()=>{i.f.sendEvent("feedback")}}},31974:(e,t,n)=>{"use strict";n.d(t,{$F:()=>g});var i,o=n(58632),a=n(67192),r=n(38203),s=n(92603),l=n(40040),c=n(93608),d=n(67823);var u,p,v;!function(e){e.ClickSignUp="click_sign_up",e.ClickLogin="click_login"}(u||(u={})),function(e){e.Qrcode="QRcode",e.Email="email",e.Username="handle",e.PhonePassword="phone",e.Sms="sms_verification",e.Repeat="repeatLogin",e.TWITTER="twitter",e.GOOGLE="google",e.FACEBOOK="facebook",e.INSTAGRAM="instagram",e.VK="vk",e.KAKAOTALK="kakaotalk",e.LINE="line",e.APPLE="apple",e.TIKTOK="tiktok"}(p||(p={})),function(e){e[e.Success=0]="Success",e[e.Failed=1]="Failed",e[e.Cancelled=2]="Cancelled"}(v||(v={}));let g=i=class{constructor(){this.setPlatform=e=>{this.platform=e},this.setEnterMethod=e=>{e&&(this.enter_method=e)},this.setCloseable=e=>{void 0!==e&&(this.closeable=e)},this.setGroupId=e=>{this.groupId=e},this.setLastGroupId=e=>{this.lastGroupId=e},this.setSignUpRegionSourceParams=e=>{this.signUpRegionSourceParams=e},this.setPredictionPayload=e=>{void 0!==e&&(this.predictionPayload=e)},this.event=(e,t,n)=>{const i=Object.assign({platform:this.platform},t);if(this.enter_method&&(i.enter_method=this.enter_method),void 0!==this.closeable&&(i.closeable=this.closeable),this.groupId)i.group_id=this.groupId;else if("click_follow"===this.enter_method){const e=(0,s.Hd)(l.DK);e&&(i.from_group_id=e)}!this.lastGroupId||"click_top_bar"!==this.enter_method&&"click_navigation"!==this.enter_method||(i.last_group_id=this.lastGroupId),void 0!==this.predictionPayload&&(i.prediction_payload=this.predictionPayload),n?c.f.beconEvent(e,i):c.f.event(e,i)},this.loginNotify=(e={})=>{this.event("login_notify",e)},this.oneTapShow=()=>{this.event("show_tiktok_onetap")},this.loginWaitingShow=()=>{this.event("login_waiting_show")},this.pollingOneTapLoginPopupShow=()=>{this.event("login_waiting_onetap_popup_show")},this.failureOneTapLoginPopupShow=e=>{this.event("login_failure_onetap_popup_show",e)},this.copyLinkShow=()=>{this.event("login_copy_link_show")},this.copyLinkClick=()=>{this.event("login_copy_link_click")},this.helpCenterClick=e=>{this.event("__bav_click",Object.assign(Object.assign({},e),{element_title:e.texts}))},this.reactiveConfirmClick=()=>{this.event("reactivate_domain",{page_name:"account_reactivate",texts:"reactivate"})},this.reactiveCancelClick=()=>{this.event("login_failure",{page_name:"account_reactivate",texts:"cancel"})},this.smsCodeLimitTipNotify=()=>{this.event("rate_limit_2fa",{page_name:"web_tt_ticket_guard_consumer_response"})},this.smsCodeLimitTipConfirm=()=>{this.event("rate_limit_2fa_password_login",{page_name:"web_tt_ticket_guard_consumer_response"})},this.smsCodeLimitTipCancel=()=>{this.event("rate_limit_2fa_cancel",{page_name:"web_tt_ticket_guard_consumer_response"})},this.updateTeaDataCollectionEnabled=e=>{c.f.setDataCollectionEnabled(e),c.f.config({})},this.LoginNotifyClose=e=>{c.f.commonParams.enter_from&&"unknown"!==c.f.commonParams.enter_from&&c.f.config({commonEventParams:{page_name:c.f.commonParams.enter_from}}),this.event("login_notify_close",e),this.setGroupId(void 0)},this.loginSubmit=e=>{this.event("login_submit",{enter_type:(null==e?void 0:e.signUp)?"click_sign_up":"click_login"}),Boolean(null==e?void 0:e.signUp)&&Boolean(this.signUpRegionSourceParams)&&this.event("sign_up_region_source",this.signUpRegionSourceParams)},this.loginSuccess=e=>{var t;"repeatLogin"!==this.platform&&d.A.set("last_login_method",null!==(t=this.platform)&&void 0!==t?t:"",{expires:90,path:"/"}),this.event("login_success",{enter_type:e.signUp?"click_sign_up":"click_login",is_register:e.is_register},!0)},this.loginFailure=e=>{this.event("login_failure",{enter_type:e.signUp?"click_sign_up":"click_login",error_code:e.error_code})},this.loginMethodExpand=()=>{this.event("login_method_expand")},this.clickGoBackButton=()=>{this.event("click_go_back_btn")},this.switchAccountSubmit=()=>{this.event("switch_account_submit")},this.switchAccountClick=()=>{this.event("click_switch_account")},this.manageAccountsClick=()=>{this.event("click_manage_accounts")},this.addAccountClick=()=>{this.event("click_add_account")},this.doneEditingClick=()=>{this.event("click_done_editing")},this.removeNotify=()=>{this.event("remove_notify")},this.failToOpenApp=e=>{this.event("login_fail_before_auth_toast",e)},this.removeSubmit=()=>{this.event("remove_submit")},this.removeSuccess=()=>{this.event("remove_success")},this.removeCancel=()=>{this.event("remove_cancel")},this.thirdPartyLoginResult=e=>{this.event("monitor_login_thirdparty",e)},this.ageGateShow=()=>{this.event("age_gate_show",{enter_type:"click_sign_up"})},this.twoStepNotify=e=>{this.event("login_two_step_verification_notify",e)},this.twoStepSubmit=e=>{this.event("login_two_step_verification_submit",e)},this.twoStepResult=e=>{this.event("login_two_step_verification_result",e)},this.forceResetSubmit=()=>{this.event("forced_pwchange_submit")},this.forceResetSuccess=()=>{this.event("forced_pwchange_success")},this.checkPointShow=e=>{this.event("checkpoint_verification_show",e)},this.checkPointResponse=e=>{this.event("checkpoint_verification_response",e)},this.checkPointTyping=e=>{this.event("start_verification_typing",e)}}};g.getInstance=()=>a.l.getInstance(i),g=i=(0,o.__decorate)([(0,r._)()],g)},71828:(e,t,n)=>{"use strict";n.d(t,{F:()=>o});var i=n(93608);const o={handleTrainRequest:e=>{i.f.sendEvent("frontend_rec_classifier_train_request",e)},handleTrainReturn:e=>{i.f.sendEvent("frontend_rec_classifier_train_return",e)},handleStorageWrite:e=>{i.f.sendEvent("frontend_rec_classifier_storage_write",e)},handleStorageLoad:e=>{i.f.sendEvent("frontend_rec_classifier_storage_load",e)},handleClassifyRequest:e=>{i.f.sendEvent("frontend_rec_classifier_serve_request",e)},handleClassifyReturn:e=>{i.f.sendEvent("frontend_rec_classifier_serve_return",e)},handleModelPredict:e=>{i.f.sendEvent("on_device_ml_predict",e)}}},48961:(e,t,n)=>{"use strict";n.d(t,{Af:()=>r,Gt:()=>s,Kg:()=>o});var i=n(93608);const o={PoiRegion:"regional",PoiStore:"store",PoiCategory:"sub_category"};var a;!function(e){e.OneColumn="one_column",e.BrowserMode="browser_mode",e.VideoDetail="video_detail",e.VideoAnchor="video_anchor",e.CommentAnchor="comment_anchor",e.ClickCaption="click_caption"}(a||(a={}));const r={1:"regional",2:"store",3:"independent"},s={handlePoiAnchorShow:e=>{i.f.sendEvent("poi_anchor_show",e)},handlePoiAnchorClick:e=>{i.f.sendEvent("poi_anchor_click",e)}}},28889:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});var i=n(93608);const o={handleEnterAccountSafety:()=>{i.f.sendEvent("enter_account_safety",{enter_method:"click"})},handleEnterDeleteAccount:()=>{i.f.sendEvent("enter_delete_account")},handleAccountRegionEntranceShow:(e,t="settings_page")=>{i.f.sendEvent("account_region_status_show",{regionStatus:e,enter_from:t})},handleAccountRegionEntranceClick:(e="settings_page")=>{i.f.sendEvent("account_region_status_click",{enter_from:e})},handleEnterPrivacySetting:()=>{i.f.sendEvent("enter_privacy_setting",{enter_method:"click"})},handlePrivateAccountChange:e=>{const t=e?"private_account_on":"private_account_off";i.f.sendEvent(t,{enter_from:"privacy_and_safety_settings"})},handleConfirmPrivateAccountChange:e=>{const t=e?"confirm_private_account_on":"confirm_private_account_off";i.f.sendEvent(t,{enter_from:"privacy_and_safety_settings"})},handleEnterDydSetting:()=>{i.f.sendEvent("enter_dyd_setting",{enter_method:"click"})},handleShowPrivateAccountPopUp:()=>{i.f.sendEvent("show_private_account_pop_up")},handleShowLiveChangePrivacyAccountPopUp:()=>{i.f.sendEvent("show_live_change_privacy_account_popup",{enter_from:"privacy_and_safety_settings"})},handleClickLiveChangePrivacyAccountPopUp:e=>{i.f.sendEvent("click_live_change_privacy_account_popup",{enter_from:"privacy_and_safety_settings",status:e})},handleBrowserPushSetting:e=>{i.f.sendEvent("desktop_push_notification_click",{to_status:e})},handleNoticePushSetting:({field:e,to_status:t})=>{i.f.sendEvent("desktop_notification_switch",{label:e,to_status:t})},handleBrowserPushUnlockShow:()=>{i.f.sendEvent("desktop_notification_toast_show")},handleBrowserPushUnlockOk:()=>{i.f.sendEvent("desktop_notification_toast_click")},handleClickBASideNav:()=>{i.f.sendEvent("ttelite_setting_BA_click")},handleClickBASwitchButton:e=>{i.f.sendEvent("ttelite_setting_switchBA_click",e)},handleConfirmSwitchOut:e=>{i.f.sendEvent("ttelite_setting_switchout_confirm",e)},handleSwitchoutError:({err_type:e})=>{i.f.sendEvent("ttelite_switchout_error",{err_type:e})},handleScreenTimeClick:()=>{i.f.sendEvent("web_screen_time_page_show")},handleEnterOpenSourceSoftwareNotice:(e="privacy_and_safety_settings")=>{i.f.sendEvent("enter_open_source_software_notice",{enter_from:e})}}},8046:(e,t,n)=>{"use strict";n.d(t,{pg:()=>c});var i,o,a=n(93608),r=n(25342),s=n(97071);!function(e){e.RealtimeClick="realtime_click",e.Othershow="othershow",e.Otherclick="otherclick",e.Comment="comment",e.Share="share",e.FollowCancel="follow_cancel",e.ChallengeClick="challenge_click",e.Resume="resume",e.Pause="pause",e.Play="play",e.Play2S="play_2s",e.Play6S="play_6s",e.Play15S="play_15s",e.FirstQuartile="first_quartile",e.Midpoint="midpoint",e.ThirdQuartile="third_quartile",e.Over="over",e.Break="break",e.Show="show",e.MusicClick="music_click",e.Receive="receive",e.Dislike="dislike",e.View2S="view_2s",e.View6S="view_6s",e.View15S="view_15s",e.ViewFirstQuartile="view_firstquartile",e.ViewMidpoint="view_midpoint",e.ViewThirdQuartile="view_thirdquartile",e.ViewableImpression="viewable_impression"}(i||(i={})),function(e){e.ProfileImage="profile_image",e.UserName="user_name",e.HyperLink="hyperlink",e.SignUpButton="sign_up_button",e.VideoSection="video_section",e.CrossOut="cross_out",e.LikeButton="like_button",e.CommentButton="comment_button"}(o||(o={}));const l=(e,t)=>{var n,i;const o=Object.assign(Object.assign({},t),{value:null===(i=null===(n=null==t?void 0:t.value)||void 0===n?void 0:n.toString)||void 0===i?void 0:i.call(n),is_ad_event:"1",category:r.XJ,ad_extra_data:Object.assign(Object.assign({},t.ad_extra_data),{user_session:(0,s.q)()})});a.f.event(e,o)},c={handleRealtimeClick:e=>{l("realtime_click",e)},handleOthershow:e=>{l("othershow",e)},handleOtherclick:e=>{l("otherclick",e)},handleComment:e=>{l("comment",e)},handleShare:e=>{l("share",e)},handleFollowCancel:e=>{l("follow_cancel",e)},handleChallengeClick:e=>{l("challenge_click",e)},handleResume:e=>{(null==e?void 0:e.is_ad_event)&&e.tag&&e.value&&l("resume",e)},handlePause:e=>{(null==e?void 0:e.is_ad_event)&&e.tag&&e.value&&l("pause",e)},handleDislike:e=>{l("dislike",e)},handlePlayEvent:(e,t)=>{if((null==t?void 0:t.is_ad_event)&&t.tag&&t.value&&t.log_extra){const{tag:n,value:i,log_extra:o,ad_extra_data:a,video_length:r,duration:s}=t,c=["break","over","view_2s","view_6s","view_15s","view_firstquartile","view_midpoint","view_thirdquartile"].includes(e);l(e,{log_extra:o,tag:n,value:i,ad_extra_data:a,is_ad_event:"1",video_length:c?r:void 0,duration:c?s:void 0})}},handleShow:e=>{l("show",e)},handleReceive:e=>{l("receive",e)},handleMusicClick:e=>{l("music_click",e)}}},97792:(e,t,n)=>{"use strict";n.d(t,{t:()=>s});var i,o=n(92603),a=n(40040),r=n(93608);!function(e){e.FollowButton="follow_button",e.Card="card",e.DirectButton="direct_btn",e.SuggestedAccountButton="suggested_account_btn",e.ToolBarButton="toolbar_btn",e.Notice="notice",e.UserProfile="user_profile",e.Follower="follower",e.Following="following",e.SuggestedCard="suggested_card",e.SuggestedList="suggested_list"}(i||(i={}));const s={handleFollowUser:(e,t)=>{const n=(0,o.Hd)(a.DK),i=0===t?"unfollow":"follow";r.f.sendEvent(i,Object.assign(Object.assign({},e),{from_group_id:n}))}}},15343:(e,t,n)=>{"use strict";n.d(t,{AU:()=>v,Ii:()=>g,Mq:()=>m});var i,o=n(58632),a=n(38203),r=n(93608),s=n(243),l=n.n(s);!function(e){e.PageFCP="page_content_paint",e.FirstScreen="first_screen_video",e.FirstFrame="first_frame_video",e.InteractAddition="interact_additional_video_end",e.InteractExisted="interact_existed_video_end",e.RouteChange="video_route_change",e.InteractAdditionStart="interact_additional_video_start",e.InteractExistedStart="interact_existed_video_start",e.SwiperSlideTransitionEnd="swiper_slide_transition_end"}(i||(i={}));const c=["homepage_hot","homepage_hot_h5","homepage_following","others_homepage","challenge","single_song","video_detail","video_detail_h5"],d=["homepage_hot","homepage_follow","others_homepage","challenge","video_detail","single_song","explore_page"];var u,p;!function(e){e.BrowserModeNext="browser_mode_next",e.BrowserModePrev="browser_mode_prev",e.EnterCreatorMode="enter_creator_mode",e.ExitCreatorMode="exit_creator_mode",e.ClickCreatorTabVideo="click_creator_video",e.OneColumnScrollNext="one_column_scroll_next",e.OneColumnScrollPrev="one_column_scroll_prev",e.OpenBrowserMode="open_browser_mode",e.AdditionFirstLoad="addition_first_load",e.SwiperSlideNext="swiper_slide_next",e.SwiperSlidePrev="swiper_slide_prev",e.ThreeColumnUserHover="three_column_user_hover",e.ThreeColumnUserTouch="three_column_user_touch",e.VideoDatailSelect="video_detail_select"}(u||(u={})),function(e){e.PlayerErrorUIExposed="player_error_ui_exposed",e.PlayerErrorUICta="player_error_ui_cta"}(p||(p={}));let v=class{constructor(){this.additionQueue=[],this.existedQueue=[],this.firstLoadReport=!1,this.shouldFirstLoadReportSkip=!1,this.firstFrameReport=!1,this.currentPageReport=!1,this.currentPage="",this.reportedCanPlayVideoSource="",this.reportedPlayingVideoSource="",this.reportedScrollPrevIndex=-1,this.reportedScrollCurrIndex=-1,this.slideTransitionExsitedQueue=[],this.emit=(e,t)=>{try{r.f.event(e,t)}catch(e){console.error(`Video Scene Evnet Tea Report Error: ${e}`)}},this.reportVideoPageFCP=e=>{this.emit("page_content_paint",e)},this.reportVideoFirstScreen=e=>{const{endTime:t,videoSource:n}=e;if(!this.firstLoadReport){if(this.firstLoadReport=!0,this.currentPageReport=!0,!this.checkIfCanReportFirstPlay()||this.shouldFirstLoadReportSkip)return;const e=()=>!(window&&!window.MediaSource)&&((null===window||void 0===window?void 0:window.MediaSource.isTypeSupported('video/mp4;codecs="hev1.1.6.L120.90"'))||(null===window||void 0===window?void 0:window.MediaSource.isTypeSupported('video/mp4;codecs="hev1.2.4.L120.90"'))||(null===window||void 0===window?void 0:window.MediaSource.isTypeSupported('video/mp4;codecs="hev1.3.E.L120.90"'))||(null===window||void 0===window?void 0:window.MediaSource.isTypeSupported('video/mp4;codecs="hev1.4.10.L120.90"'))),i=performance.timeOrigin||performance.timing.navigationStart,o={duration:Math.round(t-i),to_page:this.currentPage,can_use_hevc:e()?1:0};this.emit("first_screen_video",o),this.resetAddition(),this.setReportVideoSource(n,0),this.reportClientEvent()}},this.reportClientEvent=()=>{var e,t;l()&&(null===(t=null===(e=null===l()||void 0===l()?void 0:l().app)||void 0===e?void 0:e.printFirstFeedShow)||void 0===t||t.call(e,{info:{page_name:this.currentPage}}))},this.reportVideoFirstFrame=e=>{if(e&&!this.firstFrameReport){if(this.firstFrameReport=!0,!this.checkIfCanReportFirstFrame())return;const e=performance.timeOrigin||performance.timing.navigationStart,t={duration:Math.round(Date.now()-e),to_page:this.currentPage,page_name:this.currentPage};this.emit("first_frame_video",t)}},this.reportVideoAddition=e=>{const t=this.additionQueue[0],{endTime:n,videoSource:i}=e;if(this.isEmptyEvent(t)||this.checkIfHasReported(i,0))return;const{startTime:o=0,situation:a="",from_page:r=""}=t,s=this.currentPage;if(!this.currentPageReport&&r!==s){this.currentPageReport=!0;const e={situation:a,from_page:r,to_page:s,duration:n-o};this.emit("interact_additional_video_end",e),this.resetAddition(),this.setReportVideoSource(i,0)}},this.reportVideoInteract=e=>{const t=this.existedQueue[0]||{},{startTime:n=0,situation:i="",from_page:o=""}=t,{endTime:a,videoSource:r}=e;if(this.isEmptyEvent(t)||this.checkIfHasReported(r,1)&&"open_browser_mode"!==i)return;const s={situation:i,from_page:o,to_page:this.currentPage,duration:a-n};this.emit("interact_existed_video_end",s),this.resetExist(),this.setReportVideoSource(r,1)},this.reportVideoAdditionStart=e=>{const{situation:t,startTime:n}=e;this.currentPageReport=!1,this.additionQueue=[{startTime:n,situation:t,from_page:this.currentPage}]},this.reportVideoInteractStart=e=>{var t;const n=this.existedQueue[0];if(!this.isEmptyEvent(n)){const{situation:i=""}=n;if((null!==(t=e.situation)&&void 0!==t?t:"").indexOf("one_column_scroll")>-1&&i.indexOf("browser_mode")>-1)return}const{startTime:i,situation:o,currVideoIndex:a,prevVideoIndex:r,enterMethod:s}=e;if(a&&a>0&&a===this.reportedScrollCurrIndex&&r===this.reportedScrollPrevIndex)return;const l=this.currentPage;this.existedQueue=[{startTime:i,situation:o,from_page:l}];const c={situation:o,from_page:this.currentPage,enter_method:s};this.emit("interact_existed_video_start",c),this.reportedScrollCurrIndex=null!=a?a:-1,this.reportedScrollPrevIndex=null!=r?r:-1},this.reportSlideTransitionStart=e=>{const{from_page:t,start_time:n,current_index:i}=e;this.slideTransitionExsitedQueue=[{from_page:t,start_time:n,current_index:i}]},this.reportSlideTransitionEnd=e=>{const t=this.slideTransitionExsitedQueue[0]||{},{from_page:n,start_time:i,current_index:o}=t,{from_page:a,end_time:r,current_index:s}=e;if(this.isEmptyEvent(t)||a!==n||s===o)return;const l={from_page:a,situation:s-o>0?"swiper_slide_next":"swiper_slide_prev",duration:r-i};this.emit("swiper_slide_transition_end",l),this.slideTransitionExsitedQueue=[]},this.updateCurrentPage=e=>{this.currentPage=e},this.setReportVideoSource=(e,t)=>{0===t?this.reportedCanPlayVideoSource=e:this.reportedPlayingVideoSource=e},this.setCurrentPageReport=e=>{this.currentPageReport=e},this.getCurrentPageReport=()=>this.currentPageReport,this.getFirstLoadReport=()=>this.firstLoadReport,this.getFirstFrameReport=()=>this.firstFrameReport,this.isEmptyEvent=e=>!e||0===Object.keys(e).length,this.checkIfCanReportFirstPlay=()=>c.indexOf(this.currentPage)>-1&&performance,this.checkIfCanReportFirstFrame=()=>d.indexOf(this.currentPage)>-1&&performance,this.checkIfHasReported=(e,t)=>(0===t?this.reportedCanPlayVideoSource:this.reportedPlayingVideoSource)===e,this.resetAddition=()=>this.additionQueue=[],this.resetExist=()=>this.existedQueue=[],this.handleUserChangeVideoOrPlayMode=()=>{this.shouldFirstLoadReportSkip=!0},this.handleRouteChange=e=>{this.currentPage&&e&&(this.shouldFirstLoadReportSkip=!0)}}};v=(0,o.__decorate)([(0,a._)()],v);const g=e=>{r.f.event("player_error_ui_exposed",e)},m=e=>{r.f.event("player_error_ui_cta",e)}},67974:(e,t,n)=>{"use strict";n.d(t,{V:()=>o});var i=n(93608);const o={handleDislikeShow:e=>{i.f.sendEvent("dislike_button_show",e)},handleClickDislike:e=>{i.f.sendEvent("dislike",e)}}},6986:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var i=n(93608);const o={handleFavoriteResult:(e,t)=>{const n=1===t?"favourite_video":"cancel_favourite_video";i.f.sendEvent(n,e)},handleShowEntrance:()=>{i.f.sendEvent("show_my_favourite_entrance")},handleClickEntrance:()=>{i.f.sendEvent("click_my_favourite_entrance")},handleEnterFavourite:e=>{i.f.sendEvent("enter_personal_favourite",{enter_method:e})}}},24154:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});var i=n(92603),o=n(40040),a=n(93608);const r={handleLikeVideoResult:(e,t)=>{const n=1===t?"like":"like_cancel",r=(0,i.Hd)(o.DK);a.f.sendEvent(n,Object.assign(Object.assign({},e),{from_group_id:r}))},handleEnterLike:e=>{a.f.sendEvent("enter_personal_like",{enter_method:e})}}},38739:(e,t,n)=>{"use strict";n.d(t,{Gs:()=>f,Mp:()=>m});var i,o,a=n(58632),r=n(38203),s=n(4474),l=n(93608),c=n(92603),d=n(40040),u=n(25342),p=n(65852),v=n(8046),g=n(97071);!function(e){e.Play="video_play",e.Finish="video_play_finish",e.Stop="play_time",e.SchedulePlay="schedule_video_play",e.ScheduleFinish="schedule_video_play_finish",e.ScheduleStop="schedule_video_play_time",e.PreviewVideoPlay="preview_video_play",e.PreviewVideoFinish="preview_video_play_finish",e.PreviewVideoStop="preview_play_time",e.Pause="video_pause",e.Resume="video_resume"}(i||(i={})),function(e){e.ClickPause="click_pause",e.Slide="slide",e.Keyboard="keyboard"}(o||(o={}));const m=e=>{const{video_width:t,video_height:n,video_duration:i}=e;return{video_width:t,video_height:n,video_duration:i}},h=e=>{const{caption_options:t,caption_mode:n,caption_language:i,always_translate_post_mode:o,do_not_translate_mode:a,translate_into_mode:r,see_original_show:s,see_translation_show:l}=e;return{caption_options:t,caption_mode:n,caption_language:i,always_translate_post_mode:o,do_not_translate_mode:a,translate_into_mode:r,see_original_show:s,see_translation_show:l}},_={is2sPlayReported:!1,is6sPlayReported:!1,is15sPlayReported:!1,isFirstQuartilePlayReported:!1,isMidPointPlayReported:!1,isThirdQuartilePlayReported:!1,playOrder:0,video_length:0,is1sViewableImpressionReported:!1,is2sViewableImpressionReported:!1,is6sViewableImpressionReported:!1,is15sViewableImpressionReported:!1};let f=class{constructor(){this.isFirstPlayReported=!1,this.isFirstPlayEndReported=!1,this.isPause=!1,this.startPlayTimestamp=0,this.currentCycleStartTimestamp=0,this.enterMethod="",this.backendSourceEventTracking="",this.prevReportId="",this.videoFocusTime=0,this.isThreeColumnAuto=!1,this.isVideoDetail=!1,this.isDarkMode=!1,this.ttamAdsParams=Object.assign({},_),this.videosPlayed=0,this.isFirstPreviewPlayReported=!1,this.setEnterMethod=e=>{this.enterMethod=e},this.setBackendSourceEventTracking=e=>{this.backendSourceEventTracking=e},this.setIsDarkMode=e=>{this.isDarkMode=e},this.setIsThreeColumnAuto=e=>{this.isThreeColumnAuto=e},this.setIsVideoDetail=e=>{this.isVideoDetail=e},this.reset=()=>{if(0!==this.ttamAdsParams.playOrder){const e=Date.now(),t=Math.max(e-this.currentCycleStartTimestamp,0),n=this.ttamAdsParams.video_length;v.pg.handlePlayEvent("break",Object.assign(Object.assign({},this.ttamAdsParams),{duration:t,ad_extra_data:Object.assign(Object.assign({},this.ttamAdsParams.ad_extra_data),{play_order:this.ttamAdsParams.playOrder})}));const i=Object.assign(Object.assign({},this.ttamAdsParams),{duration:t,video_length:n,ad_extra_data:Object.assign(Object.assign({},this.ttamAdsParams.ad_extra_data),{play_order:this.ttamAdsParams.playOrder,trigger_from:1,percent:Math.trunc(t/n*100)})});t/1e3>=2&&v.pg.handlePlayEvent("view_2s",i),t/1e3>=6&&v.pg.handlePlayEvent("view_6s",i),t/1e3>=15&&v.pg.handlePlayEvent("view_15s",i),t/this.ttamAdsParams.video_length>=.25&&v.pg.handlePlayEvent("view_firstquartile",i),t/this.ttamAdsParams.video_length>=.5&&v.pg.handlePlayEvent("view_midpoint",i),t/this.ttamAdsParams.video_length>=.75&&v.pg.handlePlayEvent("view_thirdquartile",i)}this.isFirstPlayReported=!1,this.isFirstPlayEndReported=!1,this.ttamAdsParams=Object.assign({},_)},this.updateVideoFocusTime=e=>{const{isPause:t,startPlayTimestamp:n}=this,{ttWebappFocusTime:i}=window;!t&&i&&(this.videoFocusTime+=i>n?e-i:e-n)},this.handlePlayTime=e=>{this.playTimeEvent(e)},this.handleTimeUpdate=(e,t=!1)=>{var n,i;const{isFirstPlayReported:o,startPlayTimestamp:a,enterMethod:r,backendSourceEventTracking:s}=this,{itemId:c,index:d,authorId:p,isScheduled:g,autoplayStatus:_=0,currentTime:f,searchId:y="",searchKeyword:b,searchResultId:w,questionId:x,playMode:T,isMute:S=!1,fromTab:k,hasSubtitle:A,captionsShowType:O,collectionId:E,collectionName:P,isPaidPartnership:I=!1,poiId:C,awemeType:j,picCnt:L,playlistId:M="",popupType:N="",enterTab:D,diversifyId:R,tab_name:B,enterMethod:U,isSubOnlyVideo:F,isCopyrightMuted:V=!1,isPinnedItem:z,isAutoScroll:H=!1,isReposted:q=!1,is_just_watched:W,index_from_just_watched:$,currentBackendSourceEventTracking:G,render_state:Y}=e;if(!f)return;const Z="1"===A?{has_subtitle:A,captions_show_type:O}:{has_subtitle:A};let K=null;if(!o){const i=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({group_id:c,author_id:p,play_mode:this.getPlayModeForTea(T),autoplay_status:_,enter_method:null!=U?U:r,backend_source_event_tracking:null!=G?G:s,search_id:y,search_keyword:b,search_result_id:w,question_id:x,from_tab:k,is_dark:this.isDarkMode?"1":"0",collection_id:E,collection_name:P,poi_id:C,aweme_type:null!=j?j:0,pic_cnt:L,playlist_id:M,popup_type:N,enter_tab:D,tab_name:B,diversify_id:R,is_sub_only_video:F,is_copyright_muted:V,is_reposted:q?1:0,render_state:Y},void 0!==W&&{is_just_watched:W}),void 0!==$&&{index_from_just_watched:$}),Z),this.getExtraParams()),m(e)),(e=>{const{video_freshness:t,video_duration:n,video_like_history:i,video_vv_history:o,video_share_history:a,video_comment_history:r,video_favorite_history:s,video_resolution:l,video_is_portrait:c,video_100k_vv:d,video_creator_bluev:u,video_creator_1k_follower:p,video_creator_10k_follower:v,video_creator_100k_follower:g,video_next_info:m}=e;return{video_freshness:t,video_duration:n,video_like_history:i,video_vv_history:o,video_share_history:a,video_comment_history:r,video_favorite_history:s,video_resolution:l,video_is_portrait:c,video_100k_vv:d,video_creator_bluev:u,video_creator_1k_follower:p,video_creator_10k_follower:v,video_creator_100k_follower:g,video_next_info:m}})(e)),h(e)),o=g?"schedule_video_play":1===T||7===T?"preview_video_play":"video_play",a=t&&this.prevReportId===c;if("video_play"===o&&(i.is_mute=S?"1":"0",i.is_partnership=I?"1":"0",i.is_autoscroll=H?"1":"0",i.item_list_index=d,i.num_video_played=++this.videosPlayed),"preview_video_play"===o&&void 0!==z&&(i.is_pinned=z?"1":"0"),!a&&(K=o,l.f.event(o,i),this.reportExploreVideoPlayForFirstPreview(i),this.isFirstPlayReported=!0,this.prevReportId=c,e.is_ad_event)){this.ttamAdsParams.playOrder=1;const t=Object.assign(Object.assign({},e),{ad_extra_data:Object.assign(Object.assign({},e.ad_extra_data),{play_order:this.ttamAdsParams.playOrder}),tag:T&&u.EM[this.getPlayModeForTea(T)]||u.xY.OneColumn});v.pg.handlePlayEvent("play",t),this.ttamAdsParams=Object.assign(Object.assign(Object.assign({},t),this.ttamAdsParams),{video_length:null!==(n=e.video_duration)&&void 0!==n?n:0})}}if(e.is_ad_event){const t=(null!==(i=e.video_duration)&&void 0!==i?i:1e8)/1e3;this.reportTTAMAdsVideoPlayEvents({currentTime:f,ttamAdsTeaParams:Object.assign(Object.assign({},e),{ad_extra_data:Object.assign(Object.assign({},e.ad_extra_data),{play_order:this.ttamAdsParams.playOrder}),tag:T&&u.EM[this.getPlayModeForTea(T)]||u.xY.OneColumn}),videoDuration:t,playMode:T,itemId:c})}return 0===a&&this.setStartPlay(),this.isPause=!1,K},this.reportExploreVideoPlayForFirstPreview=e=>{!this.isFirstPreviewPlayReported&&"list_auto"===e.play_mode&&/\/explore/.test(e.page_url)&&(e.enter_method="explore_preview",l.f.event("video_play",e),this.isFirstPreviewPlayReported=!0)},this.handleTimeUpdateForSideCards=(e,t=!1)=>{const{startPlayTimestamp:n,enterMethod:i}=this,{itemId:o,authorId:a,playMode:r,fromTab:s,enterMethod:c}=e;let d=null;const u=Object.assign(Object.assign({group_id:o,author_id:a,play_mode:this.getPlayModeForTea(r),enter_method:null!=c?c:i,from_tab:s,is_dark:this.isDarkMode?"1":"0"},this.getExtraParams()),m(e)),p="preview_video_play";return t&&this.prevReportId===o||(d=p,l.f.event(p,u),this.isFirstPlayReported=!0,this.prevReportId=o),0===n&&this.setStartPlay(),this.isPause=!1,d},this.handleEnded=e=>{this.playFinishEvent(e),this.currentCycleStartTimestamp=Date.now()},this.handleEndedForSideCards=e=>{this.playFinishEventForSideCards(e)},this.handlePause=e=>{const{currentTime:t,duration:n}=e;n!==t&&this.playTimeEvent(e),this.isPause=!0},this.handleWaiting=e=>{const{currentTime:t,duration:n}=e;0!==t&&t!==n&&this.playTimeEvent(e)},this.handleError=e=>{this.playTimeEvent(e)},this.triggerPause=e=>{if(!this.isPause){const{enter_method:t,playMode:n,aweme_type:i=0,pic_cnt:o,currentBackendSourceEventTracking:a,group_id:r}=e,{backendSourceEventTracking:s}=this,c={enter_method:t,backend_source_event_tracking:null!=a?a:s,play_mode:this.getPlayModeForTea(n),aweme_type:i,pic_cnt:o,group_id:r};l.f.event("video_pause",c),0!==this.ttamAdsParams.playOrder&&v.pg.handlePlayEvent("pause",Object.assign(Object.assign({},this.ttamAdsParams),{ad_extra_data:{play_order:this.ttamAdsParams.playOrder,duration:this.getFocusTime(Date.now())}}))}this.isPause=!0},this.triggerResume=e=>{if(this.isPause){const t=Object.assign(Object.assign({},e),{play_mode:this.getPlayModeForTea(e.playMode)});l.f.event("video_resume",t),0!==this.ttamAdsParams.playOrder&&v.pg.handlePlayEvent("resume",Object.assign(Object.assign({},this.ttamAdsParams),{ad_extra_data:{play_order:this.ttamAdsParams.playOrder}}))}},this.triggerPlay=()=>{this.isPause=!1},this.handleAudioPlay=e=>{this.prevReportId=e},this.getFocusTime=e=>{const{startPlayTimestamp:t,videoFocusTime:n}=this,{ttWebappFocusTime:i,ttWebappBlurTime:o}=window;let a=0;return i?a=it?n:0),a}}getPlayModeForTea(e){let t="others";switch(e){case 2:t="browser_mode";break;case 9:t="immersive_player";break;case 0:t=this.isVideoDetail?"others":"one_column";break;case 1:t=this.isThreeColumnAuto?"list_auto":"list_mouse_trigger";break;case 3:t="swiper_mode";break;case 4:t="video_detail";break;case 6:t="pip";break;case 5:t="fullscreen";break;case 7:t="list_mouse_trigger";break;case 8:t="mini_player"}return t}setStartPlay(){this.startPlayTimestamp=Date.now(),this.currentCycleStartTimestamp=this.startPlayTimestamp,this.videoFocusTime=0}playFinishEvent(e){const{isFirstPlayEndReported:t,enterMethod:n,backendSourceEventTracking:i}=this,{itemId:o,authorId:a,isScheduled:r,autoplayStatus:s=0,searchId:c="",searchKeyword:d,searchResultId:u,playMode:p,isMute:v,collectionId:g,collectionName:h,poiId:_,awemeType:f,picCnt:y,playlistId:b="",popupType:w="",enterTab:x,diversifyId:T,tab_name:S,enterMethod:k,isSubOnlyVideo:A,isAutoScroll:O,isReposted:E,currentBackendSourceEventTracking:P}=e;if(!t){const t=Object.assign(Object.assign({group_id:o,author_id:a,play_mode:this.getPlayModeForTea(p),autoplay_status:s,enter_method:null!=k?k:n,backend_source_event_tracking:null!=P?P:i,search_id:c,search_keyword:d,search_result_id:u,collection_id:g,collection_name:h,poi_id:_,aweme_type:null!=f?f:0,pic_cnt:y,enter_tab:x,diversify_id:T,is_dark:this.isDarkMode?"1":"0",playlist_id:b,popup_type:w,is_sub_only_video:A,is_reposted:E?1:0,tab_name:S},this.getExtraParams()),m(e));void 0!==v&&(t.is_mute=v?"1":"0");const I=r?"schedule_video_play_finish":1===p||7===p?"preview_video_play_finish":"video_play_finish";"video_play_finish"===I&&void 0!==O&&(t.is_autoscroll=O?"1":"0"),l.f.event(I,t),this.isFirstPlayEndReported=!0}}playFinishEventForSideCards(e){const{enterMethod:t}=this,{itemId:n,authorId:i,playMode:o,enterMethod:a}=e,r=Object.assign({group_id:n,author_id:i,play_mode:this.getPlayModeForTea(o),enter_method:null!=a?a:t,is_dark:this.isDarkMode?"1":"0"},m(e));l.f.event("preview_video_play_finish",r)}playTimeEvent(e){const{startPlayTimestamp:t,enterMethod:n,backendSourceEventTracking:i}=this,{itemId:o,authorId:a,isScheduled:r,autoplayStatus:s=0,searchId:u="",searchKeyword:v,searchResultId:g,questionId:_,playMode:f,isMute:y,fromTab:b,hasSubtitle:w,captionsShowType:x,collectionId:T,collectionName:S,poiId:k,awemeType:A,picCnt:O,playlistId:E="",popupType:P="",enterTab:I,diversifyId:C,tab_name:j,enterMethod:L,isSubOnlyVideo:M,isAutoScroll:N,isReposted:D,is_just_watched:R,index_from_just_watched:B,currentBackendSourceEventTracking:U}=e,F=Date.now(),V=this.getFocusTime(F),z="1"===w?{has_subtitle:w,captions_show_type:x}:{has_subtitle:w},H=Math.max(F-t,0);if(0!==t){const t=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({group_id:o,author_id:a,play_mode:this.getPlayModeForTea(f),autoplay_status:s,duration:H,enter_method:null!=L?L:n,backend_source_event_tracking:null!=U?U:i,search_id:u,search_keyword:v,search_result_id:g,question_id:_,focus_time:V,from_tab:b,is_dark:this.isDarkMode?"1":"0",collection_id:T,collection_name:S,poi_id:k,aweme_type:null!=A?A:0,pic_cnt:O,playlist_id:E,popup_type:P,enter_tab:I,diversify_id:C,is_sub_only_video:M,is_reposted:D?1:0,tab_name:j},void 0!==R&&{is_just_watched:R}),void 0!==B&&{index_from_just_watched:B}),z),this.getExtraParams()),p.L.getScreenRatio()),m(e)),h(e));void 0!==y&&(t.is_mute=y?"1":"0");const w=(0,c.Hd)(d.DK),x=r?"schedule_video_play_time":1===f||7===f?"preview_play_time":"play_time";"play_time"===x&&(t.is_autoscroll=N?"1":"0"),l.f.event(x,Object.assign(Object.assign({},t),{from_group_id:w})),this.startPlayTimestamp=0,this.currentCycleStartTimestamp=0}}getExtraParams(){var e;const{href:t,search:n}=window.location;return{is_from_webapp:null!==(e=(0,s.parse)(n).is_from_webapp)&&void 0!==e?e:"0",page_url:t}}reportTTAMAdsVideoPlayEvents({currentTime:e,ttamAdsTeaParams:t,videoDuration:n,playMode:i,itemId:o}){const a=(0,g.CN)(i.toString(),o,e);if(a.isVisible){const n=e-a.startTime;n>=1&&!this.ttamAdsParams.is1sViewableImpressionReported&&(v.pg.handlePlayEvent("viewable_impression",Object.assign(Object.assign({},t),{ad_extra_data:Object.assign(Object.assign({},t.ad_extra_data),{viewable_length:"1s"})})),this.ttamAdsParams.is1sViewableImpressionReported=!0),n>=2&&!this.ttamAdsParams.is2sViewableImpressionReported&&(v.pg.handlePlayEvent("viewable_impression",Object.assign(Object.assign({},t),{ad_extra_data:Object.assign(Object.assign({},t.ad_extra_data),{viewable_length:"2s"})})),this.ttamAdsParams.is2sViewableImpressionReported=!0),n>=6&&!this.ttamAdsParams.is6sViewableImpressionReported&&(v.pg.handlePlayEvent("viewable_impression",Object.assign(Object.assign({},t),{ad_extra_data:Object.assign(Object.assign({},t.ad_extra_data),{viewable_length:"6s"})})),this.ttamAdsParams.is6sViewableImpressionReported=!0),n>=15&&!this.ttamAdsParams.is15sViewableImpressionReported&&(v.pg.handlePlayEvent("viewable_impression",Object.assign(Object.assign({},t),{ad_extra_data:Object.assign(Object.assign({},t.ad_extra_data),{viewable_length:"15s"})})),this.ttamAdsParams.is15sViewableImpressionReported=!0)}else this.ttamAdsParams.is1sViewableImpressionReported=!1,this.ttamAdsParams.is2sViewableImpressionReported=!1,this.ttamAdsParams.is6sViewableImpressionReported=!1,this.ttamAdsParams.is15sViewableImpressionReported=!1;if(e>=2&&!this.ttamAdsParams.is2sPlayReported&&(v.pg.handlePlayEvent("play_2s",t),this.ttamAdsParams.is2sPlayReported=!0),e>=6&&!this.ttamAdsParams.is6sPlayReported&&(v.pg.handlePlayEvent("play_6s",t),this.ttamAdsParams.is6sPlayReported=!0),e>=15&&!this.ttamAdsParams.is15sPlayReported&&(v.pg.handlePlayEvent("play_15s",t),this.ttamAdsParams.is15sPlayReported=!0),e/n>=.25&&!this.ttamAdsParams.isFirstQuartilePlayReported&&(v.pg.handlePlayEvent("first_quartile",t),this.ttamAdsParams.isFirstQuartilePlayReported=!0),e/n>=.5&&!this.ttamAdsParams.isMidPointPlayReported&&(v.pg.handlePlayEvent("midpoint",t),this.ttamAdsParams.isMidPointPlayReported=!0),e/n>=.75&&!this.ttamAdsParams.isThirdQuartilePlayReported&&(v.pg.handlePlayEvent("third_quartile",t),this.ttamAdsParams.isThirdQuartilePlayReported=!0),e/n>=.99&&this.ttamAdsParams.isThirdQuartilePlayReported){const i=1e3*n;v.pg.handlePlayEvent("over",Object.assign(Object.assign({},t),{duration:i,video_length:i}));const o=Object.assign(Object.assign({},t),{duration:i,video_length:i,ad_extra_data:Object.assign(Object.assign({},t.ad_extra_data),{trigger_from:2,percent:100})});e>=2&&v.pg.handlePlayEvent("view_2s",o),e>=6&&v.pg.handlePlayEvent("view_6s",o),e>=15&&v.pg.handlePlayEvent("view_15s",o),v.pg.handlePlayEvent("view_firstquartile",o),v.pg.handlePlayEvent("view_midpoint",o),v.pg.handlePlayEvent("view_thirdquartile",o),this.ttamAdsParams=Object.assign(Object.assign(Object.assign({},_),t),{playOrder:this.ttamAdsParams.playOrder+1,video_length:i})}}};f=(0,a.__decorate)([(0,r._)()],f)},81824:(e,t,n)=>{"use strict";n.d(t,{W3:()=>a});var i=n(93608);const o=new class{constructor(){this.msLastScrollEnd=-1,this.itemIndexOnScrollStart=-1}},a={struct:o,scrollStart:e=>{-1===o.itemIndexOnScrollStart&&(o.itemIndexOnScrollStart=e)},scrollEnd:({currentMs:e,currentItemIndex:t,playMode:n,enterMethod:a})=>{o.msLastScrollEnd=e,i.f.sendEvent("scroll_end",{utc_ms:e,did_change_video:t!==o.itemIndexOnScrollStart,play_mode:n,enter_method:a}),o.itemIndexOnScrollStart=-1}}},80417:(e,t,n)=>{"use strict";n.d(t,{y:()=>o});var i=n(93608);const o={handleClickPrivacySettingVideo:e=>{i.f.sendEvent("click_privacy_setting_video",e)},handleSelectPrivacySettingVideo:e=>{i.f.sendEvent("select_privacy_setting_video",e)},handlePrivateSetting:e=>{i.f.sendEvent("privacy_setting_allow_interaction",e)},handleClickDeleteVideo:e=>{i.f.sendEvent("click_delete_video",e)},handleVideoDelete:e=>{i.f.sendEvent("action_on_delete_video",{action:e})},handleScheduleConfirm:e=>{i.f.sendEvent("click_delete_scheduled_video",{group_id:e})},handleScheduleDelete:e=>{i.f.sendEvent("action_on_delete_scheduled_video",{action:e})}}},14107:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});var i=n(93608);const o={handleVideoReceive:e=>{i.f.sendEvent("video_receive",e)},handleVideoContentShow:e=>{i.f.sendEvent("video_content_show",e)}}},65852:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var i=n(93608),o=n(81824);const a={handleListMore:e=>{i.f.sendEvent("load_more",e)},handleVideoChange:(e,t)=>{const n="next"===t?"video_slide_up":"video_slide_down",a=o.W3.struct.msLastScrollEnd>0?Date.now()-o.W3.struct.msLastScrollEnd:void 0;i.f.sendEvent(n,a?Object.assign(Object.assign({},e),{ms_since_scroll:a}):e),a&&(o.W3.struct.msLastScrollEnd=-1)},handleHotVideoChange:(e,t)=>{const n="next"===t?"homepage_hot_slide_up":"homepage_hot_slide_down";i.f.sendEvent(n,e)},handleEnterBrowser:e=>{i.f.sendEvent("feed_enter",e)},handleEnterBrowserOpt:e=>{i.f.sendEvent("feed_enter",e)},handleExitBrowser:e=>{i.f.sendEvent("feed_exit",e)},handleAdjustBrowserSize:e=>{i.f.sendEvent("browser_size_adjust",e)},handleCloseWindow:e=>{i.f.sendEvent("close_window",e)},handleVideoCoverClick:(e,t)=>{i.f.sendEvent("video_cover_click",Object.assign(Object.assign({},e),{rank:t,backend_source_event_tracking:""}))},getScreenRatio:()=>{const e=screen.height,t=screen.width,n=window.innerWidth,i=window.innerHeight;return{width:n,height:i,width_max:t,height_max:e,height_ratio:i/e,width_ratio:n/t}}}},43201:(e,t,n)=>{"use strict";n.d(t,{T:()=>a});var i=n(93608),o=n(91257);const a=({windowObj:e,playMode:t,height_before:n,width_before:a})=>{if(!e)return;const r=e.innerHeight,s=e.innerWidth,l=o.Jr[null!=t?t:"-1"];i.f.event("window_size_change",{height_after:r,width_after:s,play_mode:l,height_before:n,width_before:a})}},51388:(e,t,n)=>{"use strict";function i(e,t=""){var n;try{return null!==(n=sessionStorage.getItem(e))&&void 0!==n?n:t}catch(e){return t}}function o(e,t){try{sessionStorage.setItem(e,t)}catch(e){}}n.d(t,{Hd:()=>i,J2:()=>o,bp:()=>a});const a=e=>{if(!e||"string"!=typeof e)return 0;let t=0;try{const n=new RegExp("(\\?|&)expire=([^&]*)(&|$)"),i=e.match(n);if(null!==i)t=parseInt(i[2],10);else{const n=e.split("/");n.length>5&&8===n[4].length&&(t=parseInt(n[4],16))}return t>0?t{"use strict";n.d(t,{AR:()=>u,CN:()=>g,n5:()=>r,q:()=>p});var i=n(25342),o=n(51388),a=n(24473);const r=({ad_info:e,play_mode:t})=>{if(!e)return{};const n=(e=>{if(e)try{return JSON.parse(e)}catch(e){return}})(e.log_extra);let o=i.xY.BrowserMode;return o="one_column"===t?i.xY.OneColumn:i.xY.BrowserMode,{log_extra:n,ad_extra_data:{charge_type:e.charge_type},tag:o,value:e.creative_id.toString(),is_ad_event:"1",category:i.XJ}},s="user_session",l="lastUpdated",c=()=>(new Date).getTime().toString(),d=e=>{(0,o.J2)(s,JSON.stringify(e))},u=e=>{const t=(0,o.Hd)(s);if(e){if(""===t||"0"===JSON.parse(t).uid){const t={uid:e.uid,lastUpdated:c()};d(t)}}else if(""===t||"0"!==JSON.parse(t).uid){const e={uid:"0",lastUpdated:c()};d(e)}var n;n=18e5,(0,a.hb)({onIdle:()=>{((e,t)=>{const n=(0,o.Hd)(s);if(!n)throw new Error("User Session did not find!");{const i=JSON.parse(n);if("string"!=typeof t)throw new Error("Invalid input!");i[e]=t,d(i)}})(l,c())},timeout:n,debounce:1e4})},p=()=>{const e=JSON.parse((0,o.Hd)(s));return`${e.uid}${e.lastUpdated}`},v={id:"",isVisible:!1,startTime:0},g=(e,t,n)=>{const i=`xgwrapper-${e}-${t}`,o=(()=>{const e=document.querySelector('section[role="dialog"]');return e||(document.getElementById("header-transfer")||null)})();if(o||v.id!==i){v.id=i;const e=document.getElementById(i);if(!e)throw new Error("Cannot find the current Video Container!");{const t=new IntersectionObserver((t=>{const i=t[0];if(i.isIntersecting)if(o){const t=((e,t,n)=>{const i=e.getBoundingClientRect(),o=Math.abs(i.top-i.bottom)*Math.abs(i.left-i.right),a=o*n,r=t.getBoundingClientRect(),s=Math.max(i.top,r.top),l=Math.min(i.bottom,r.bottom),c=Math.max(i.left,r.left),d=Math.min(i.right,r.right);return(a-Math.abs(s-l)*Math.abs(c-d))/o})(e,o,i.intersectionRatio);t<.5&&(v.id="",v.startTime=0,v.isVisible=!1)}else v.startTime=n,v.isVisible=!0;else v.id="",v.startTime=0,v.isVisible=!1}),{root:null,rootMargin:"0px",threshold:.5});t.observe(e)}}return v}},40040:(e,t,n)=>{"use strict";n.d(t,{DK:()=>d,Is:()=>g,LN:()=>_,O_:()=>o,QI:()=>c,YH:()=>m,em:()=>a,hk:()=>r,iJ:()=>l,lG:()=>v,ne:()=>u,oE:()=>h,qZ:()=>s,uV:()=>p,wO:()=>f,xE:()=>i});const i=1988,o="webapp_launch_mode",a="webapp_original_traffic_type",r="webapp_extra_data",s="webapp_session_id",l="webapp_tiktok_open",c="webapp_tiktok_privious",d="webapp_from_group_id",u="f_s_1",p=7,v=["VGeo-EU"],g="guest-mode-flag",m="others",h="direct",_=/h5_t|h5_m|landing_page|webapp/,f=/embed/},90300:(e,t,n)=>{"use strict";var i;n.d(t,{mD:()=>i,NX:()=>o,gb:()=>a}),function(e){e.OS="os",e.BROWSER_BRAND="browser_brand",e.SCREEN_RESOLUTION="screen_resolution",e.SCREEN_ORIENTATION="screen_orientation",e.CPU_CORE_NUMBER="cpu_core_number",e.NETWORK_DOWNLINK="network_downlink",e.NETWORK_RTT="network_rtt",e.NETWORK_SPEED_EFFECTIVE_TYPE="network_speed_effective_type",e.REGION="region",e.LAUNCH_MODE="launch_mode",e.LANDING_PAGE="landing_page",e.LANGUAGE_SYSTEM="language_system",e.LANGUAGE_APP="language_app",e.FIRST_ACTIVE_DATE="first_active_date",e.TIMEZONE="timezone",e.TIME_OF_DAY_LANDING="time_of_day_landing",e.DAY_OF_WEEK="day_of_week",e.IS_NEW_USER="is_new_user",e.IS_LOCAL_DAYTIME="is_local_daytime",e.IS_LOGIN="is_login",e.MAX_TOUCH_POINTS="max_touch_points",e.RET_ACC="ret_acc",e.SESSION_CNT="session_cnt",e.STAY_DURATION="stay_duration",e.SESSION_LAST_UPDATE_TIME="session_last_update_time",e.LOGIN_DAYS_COUNT="login_days_count",e.LOGIN_SUMBIT_COUNT="login_submit_count",e.LOING_BUTTON_CLICKED_COUNT="login_button_clicked_count",e.LOGIN_NOTIFY_TIME_STAMP="login_notify_time_stamp",e.TOGGLE_DARK_MODE_COUNT="toggle_dark_mode_count",e.TOGGLE_LIGHT_MODE_COUNT="toggle_light_mode_count"}(i||(i={}));const o=["event_name","page_name","enter_method","platform","play_mode","popup_type","previous_page","enter_from"],a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},{os:{available_values:["windows","mac","linux","ios","chromeos"],is_snapshot:!0},browser_brand:{available_values:["chrome","edge","safari","firefox"],is_snapshot:!0},screen_resolution:{is_snapshot:!0},screen_orientation:{is_snapshot:!0},cpu_core_number:{is_snapshot:!0},network_downlink:{is_snapshot:!0},network_rtt:{is_snapshot:!0},network_speed_effective_type:{available_values:["slow-2g","2g","3g","4g"],is_snapshot:!0},region:{available_values:["US","VN","JP","SG","BR","ID","FR","GB","PH","CA","DE","TH","MX","ES","PE","RU","AU","CO","DZ","UA","MY","KR","TR","AR","NL","IT","PL","TW","FI","PK","SA","EC","CL","EG","ZA","SE","KZ","RO","AE","BE"],is_snapshot:!0},launch_mode:{available_values:["organic","reflow","direct","referral","referral_embed","msft","webapp_reflow","pwa","twa","referral_creator_embed","push","referral_amp","referral_tiktok_browse","referral_music_embed","referral_hashtag_embed","referral_curated_embed","launch_mode_win_desktop_app","launch_mode_mac_desktop_app"],is_snapshot:!0},landing_page:{available_values:["homepage_hot","video_detail","others_homepage","discover_kw","explore_page","login","personal_homepage","general_search"],is_snapshot:!0},language_system:{available_values:["en-us","vi-vn","es-es","en-gb","zh-cn","pt-br","es-419","ja","ru-ru","fr-fr","de-de","th-th","es","vi","id-id","fr","es-us","ru","tr-tr","en"],is_snapshot:!0},language_app:{available_values:["en","es","vi-VN","pt-BR","zh-Hans","ru-RU","null","ja-JP","id-ID","th-TH","ar","fr","tr-TR","ko-KR","zh-Hant-TW"],is_snapshot:!0},first_active_date:{is_snapshot:!0},timezone:{is_snapshot:!0},time_of_day_landing:{is_snapshot:!0},day_of_week:{is_snapshot:!0},is_new_user:{is_snapshot:!0},is_local_daytime:{is_snapshot:!0},is_login:{is_snapshot:!0},max_touch_points:{is_snapshot:!0}}),{ret_acc:{},session_cnt:{},stay_duration:{},vv:{event_name:"video_play"},vv_finish:{event_name:"video_play_finish"},preview_vv:{event_name:"preview_video_play"},play_duration:{event_name:"play_time",aggregate_field:"duration"},page_view:{event_name:"page_view"},hot_page_view:{event_name:"page_view",page_name:"homepage_hot"},hot_vv:{event_name:"video_play",page_name:"homepage_hot"},hot_vv_finish:{event_name:"video_play_finish",page_name:"homepage_hot"},hot_play_duration:{event_name:"play_time",page_name:"homepage_hot",aggregate_field:"duration"},video_detail_page_view:{event_name:"page_view",page_name:"video_detail"},video_detail_vv:{event_name:"video_play",page_name:"video_detail"},video_detail_vv_finish:{event_name:"video_play_finish",page_name:"video_detail"},video_detail_play_duration:{event_name:"play_time",page_name:"video_detail",aggregate_field:"duration"},others_profile_page_view:{event_name:"page_view",page_name:"others_homepage"},others_profile_vv:{event_name:"video_play",page_name:"others_homepage"},others_profile_preview_vv:{event_name:"preview_video_play",page_name:"others_homepage"},others_profile_vv_finish:{event_name:"video_play_finish",page_name:"others_homepage"},others_profile_play_duration:{event_name:"play_time",page_name:"others_homepage",aggregate_field:"duration"},explore_page_view:{event_name:"page_view",page_name:"explore_page"},explore_page_preview_vv:{event_name:"preview_video_play",page_name:"explore_page"},explore_page_vv:{event_name:"video_play",page_name:"explore_page"},explore_page_vv_finish:{event_name:"video_play_finish",page_name:"explore_page"},explore_page_play_duration:{event_name:"play_time",page_name:"explore_page",aggregate_field:"duration"},self_profile_page_view:{event_name:"page_view",page_name:"personal_homepage"},self_profile_vv:{event_name:"video_play",page_name:"personal_homepage"},song_detail_page_view:{event_name:"page_view",page_name:"single_song"},song_detail_vv:{event_name:"video_play",page_name:"single_song"},song_detail_vv_finish:{event_name:"video_play_finish",page_name:"single_song"},song_detail_play_duration:{event_name:"play_time",page_name:"single_song",aggregate_field:"duration"},challenge_page_view:{event_name:"page_view",page_name:"challenge"},challenge_vv:{event_name:"video_play",page_name:"challenge"},challenge_vv_finish:{event_name:"video_play_finish",page_name:"challenge"},challenge_play_duration:{event_name:"play_time",page_name:"challenge",aggregate_field:"duration"},discover_kw_page_view:{event_name:"page_view",page_name:"discover_kw"},discover_kw_vv:{event_name:"video_play",page_name:"discover_kw"},discover_kw_vv_finish:{event_name:"video_play_finish",page_name:"discover_kw"},discover_kw_play_duration:{event_name:"play_time",page_name:"discover_kw",aggregate_field:"duration"},follow_vv:{event_name:"video_play",page_name:"homepage_follow"},live_recharge_page_view:{event_name:"page_view",page_name:"live_recharge"},business_suite_page_view:{event_name:"enter_business_suite"},slardar_perf_lcp_acc:{event_name:"slardar_perf_lcp",aggregate_field:"metric_duration",count_field_name:"slardar_perf_lcp_cnt",is_avg:!0},slardar_perf_lcp_cnt:{event_name:"slardar_perf_lcp",should_skip_sending:!0},slardar_perf_fcp_acc:{event_name:"slardar_perf_fcp",aggregate_field:"metric_duration",count_field_name:"slardar_perf_fcp_cnt",is_avg:!0},slardar_perf_fcp_cnt:{event_name:"slardar_perf_fcp",should_skip_sending:!0},login_page_view:{event_name:"page_view",page_name:"login"},general_search_page_view:{event_name:"page_view",page_name:"general_search"},messages_page_view:{event_name:"page_view",page_name:"messages"},upload_page_view:{event_name:"page_view",page_name:"upload"},live_detail_page_view:{event_name:"page_view",page_name:"live_detail"}}),{search_cnt:{event_name:"search"},app_download_cnt:{event_name:"click_get_app_for_pc"},auto_scroll_cnt:{event_name:"autoscroll_on"},muted_cnt:{event_name:"switch_sound"},floating_player_cnt:{event_name:"enter_mini_player"},report_cnt:{event_name:"click_report"},not_interested_cnt:{event_name:"dislike"},publish_cnt:{event_name:"click_upload_entrance"},push_cnt:{event_name:"browser_push_notifications_show"},update_profile_cnt:{event_name:"save_profile"},livesdk_studio_download_cnt:{event_name:"livesdk_web_livestudio_download"},send_message_cnt:{event_name:"send_message"},share_to_friends_cnt:{event_name:"share_video",platform:"message"},like_cnt:{event_name:"like"},comment_cnt:{event_name:"post_comment"},follow_cnt:{event_name:"follow"},favourite_cnt:{event_name:"favourite_video"},browser_mode_vv:{event_name:"video_play",play_mode:"browser_mode"},playlist_vv:{event_name:"video_play",popup_type:"playlist"},repost_cnt:{event_name:"repost_success"},share_cnt:{event_name:"share_video"},video_download_cnt:{event_name:"click_download"},left_navigation_suggested_account_visit_cnt:{event_name:"enter_personal_detail",enter_method:["click_navigation"]},creator_tab_show_cnt:{event_name:"from_this_creator_tab_show"},login_notify_cnt_periodic:{event_name:"login_notify",enter_method:["periodic_popup"]},login_notify_cnt_non_periodic:{event_name:"login_notify",enter_method:["click_like","click_comment","click_follow","click_top_bar","click_navigation","click_favorite"]},login_days_cnt:{},login_submit_cnt:{event_name:"login_submit"},login_button_clicked_cnt:{event_name:"login_notify",enter_method:["click_top_bar","click_navigation"]},login_popup_duration:{event_name:"login_notify_close",start_event_name:"login_notify_time_stamp",count_field_name:"login_notify_close_cnt",is_time_stamp:!0},login_notify_time_stamp:{event_name:"login_notify",enter_method:["click_like","click_comment","click_follow","click_top_bar","click_navigation","click_favorite"],aggregate_field:"time_stamp",should_skip_sending:!0},login_notify_close_cnt:{event_name:"login_notify_close",should_skip_sending:!0},toggle_dark_mode_cnt:{event_name:"dark_mode_click"},video_pause_by_switch_tab_cnt:{event_name:"video_pause",enter_method:["switch_tab"]},like_cnt_non_login:{event_name:"login_notify",enter_method:["click_like"]},comment_cnt_non_login:{event_name:"login_notify",enter_method:["click_comment"]},follow_cnt_non_login:{event_name:"login_notify",enter_method:["click_follow"]},favorite_cnt_non_login:{event_name:"login_notify",enter_method:["click_favorite"]}}),{item_avg_freshness:{event_name:"video_play",aggregate_field:"video_freshness",count_field_name:"vv",is_avg:!0},item_avg_duration:{event_name:"video_play",aggregate_field:"video_duration",count_field_name:"vv",is_avg:!0},item_avg_like_history:{event_name:"video_play",aggregate_field:"video_like_history",count_field_name:"vv",is_avg:!0},item_avg_vv_history:{event_name:"video_play",aggregate_field:"video_vv_history",count_field_name:"vv",is_avg:!0},item_avg_share_history:{event_name:"video_play",aggregate_field:"video_share_history",count_field_name:"vv",is_avg:!0},item_avg_comment_history:{event_name:"video_play",aggregate_field:"video_comment_history",count_field_name:"vv",is_avg:!0},item_avg_favorite_history:{event_name:"video_play",aggregate_field:"video_favorite_history",count_field_name:"vv",is_avg:!0},item_avg_resolution:{event_name:"video_play",aggregate_field:"video_resolution",count_field_name:"vv",is_avg:!0},item_portrait:{event_name:"video_play",aggregate_field:"video_is_portrait",count_field_name:"vv",is_avg:!0},item_100k_vv_vv:{event_name:"video_play",aggregate_field:"video_100k_vv"},creator_bluev_vv:{event_name:"video_play",aggregate_field:"video_creator_bluev"},creator_1k_follower_vv:{event_name:"video_play",aggregate_field:"video_creator_1k_follower"},creator_10k_follower_vv:{event_name:"video_play",aggregate_field:"video_creator_10k_follower"},creator_100k_follower_vv:{event_name:"video_play",aggregate_field:"video_creator_100k_follower"}}),{hot_like_cnt:{event_name:"like",page_name:"homepage_hot"},hot_comment_cnt:{event_name:"post_comment",page_name:"homepage_hot"},hot_follow_cnt:{event_name:"follow",page_name:"homepage_hot"},hot_favourite_cnt:{event_name:"favourite_video",page_name:"homepage_hot"},hot_browser_mode_vv:{event_name:"video_play",play_mode:"browser_mode",page_name:"homepage_hot"},hot_share_cnt:{event_name:"share_video",page_name:"homepage_hot"},hot_item_avg_freshness:{event_name:"video_play",page_name:"homepage_hot",aggregate_field:"video_freshness",count_field_name:"hot_vv",is_avg:!0},hot_item_avg_duration:{event_name:"video_play",page_name:"homepage_hot",aggregate_field:"video_duration",count_field_name:"hot_vv",is_avg:!0},hot_item_avg_like_history:{event_name:"video_play",page_name:"homepage_hot",aggregate_field:"video_like_history",count_field_name:"hot_vv",is_avg:!0},hot_item_avg_vv_history:{event_name:"video_play",page_name:"homepage_hot",aggregate_field:"video_vv_history",count_field_name:"hot_vv",is_avg:!0},hot_item_avg_share_history:{event_name:"video_play",page_name:"homepage_hot",aggregate_field:"video_share_history",count_field_name:"hot_vv",is_avg:!0},hot_item_avg_comment_history:{event_name:"video_play",page_name:"homepage_hot",aggregate_field:"video_comment_history",count_field_name:"hot_vv",is_avg:!0},hot_item_avg_favorite_history:{event_name:"video_play",page_name:"homepage_hot",aggregate_field:"video_favorite_history",count_field_name:"hot_vv",is_avg:!0},hot_item_avg_resolution:{event_name:"video_play",page_name:"homepage_hot",aggregate_field:"video_resolution",count_field_name:"hot_vv",is_avg:!0},hot_item_portrait:{event_name:"video_play",page_name:"homepage_hot",aggregate_field:"video_is_portrait",count_field_name:"hot_vv",is_avg:!0},hot_item_100k_vv_vv:{event_name:"video_play",page_name:"homepage_hot",aggregate_field:"video_100k_vv"},hot_creator_bluev_vv:{event_name:"video_play",page_name:"homepage_hot",aggregate_field:"video_creator_bluev"},hot_creator_1k_follower_vv:{event_name:"video_play",page_name:"homepage_hot",aggregate_field:"video_creator_1k_follower"},hot_creator_10k_follower_vv:{event_name:"video_play",page_name:"homepage_hot",aggregate_field:"video_creator_10k_follower"},hot_creator_100k_follower_vv:{event_name:"video_play",page_name:"homepage_hot",aggregate_field:"video_creator_100k_follower"},hot_to_video_detail_page_view:{event_name:"page_view",page_name:"video_detail",previous_page:"homepage_hot"},hot_to_explore_page_view:{event_name:"enter_explore_page",enter_from:"homepage_hot"},hot_to_follow_page_view:{event_name:"enter_homepage_follow",enter_from:"homepage_hot"},hot_to_other_profile_view:{event_name:"enter_personal_detail",enter_from:"homepage_hot"},hot_slardar_perf_lcp_acc:{event_name:"slardar_perf_lcp",page_name:"homepage_hot",aggregate_field:"metric_duration",count_field_name:"hot_slardar_perf_lcp_cnt",is_avg:!0},hot_slardar_perf_lcp_cnt:{event_name:"slardar_perf_lcp",page_name:"homepage_hot",should_skip_sending:!0}}),{explore_like_cnt:{event_name:"like",page_name:"explore_page"},explore_comment_cnt:{event_name:"post_comment",page_name:"explore_page"},explore_follow_cnt:{event_name:"follow",page_name:"explore_page"},explore_favourite_cnt:{event_name:"favourite_video",page_name:"explore_page"},explore_browser_mode_vv:{event_name:"video_play",play_mode:"browser_mode",page_name:"explore_page"},explore_share_cnt:{event_name:"share_video",page_name:"explore_page"},explore_item_avg_freshness:{event_name:"video_play",page_name:"explore_page",aggregate_field:"video_freshness",count_field_name:"explore_page_vv",is_avg:!0},explore_item_avg_duration:{event_name:"video_play",page_name:"explore_page",aggregate_field:"video_duration",count_field_name:"explore_page_vv",is_avg:!0},explore_item_avg_like_history:{event_name:"video_play",page_name:"explore_page",aggregate_field:"video_like_history",count_field_name:"explore_page_vv",is_avg:!0},explore_item_avg_vv_history:{event_name:"video_play",page_name:"explore_page",aggregate_field:"video_vv_history",count_field_name:"explore_page_vv",is_avg:!0},explore_item_avg_share_history:{event_name:"video_play",page_name:"explore_page",aggregate_field:"video_share_history",count_field_name:"explore_page_vv",is_avg:!0},explore_item_avg_comment_history:{event_name:"video_play",page_name:"explore_page",aggregate_field:"video_comment_history",count_field_name:"explore_page_vv",is_avg:!0},explore_item_avg_favorite_history:{event_name:"video_play",page_name:"explore_page",aggregate_field:"video_favorite_history",count_field_name:"explore_page_vv",is_avg:!0},explore_item_avg_resolution:{event_name:"video_play",page_name:"explore_page",aggregate_field:"video_resolution",count_field_name:"explore_page_vv",is_avg:!0},explore_item_portrait:{event_name:"video_play",page_name:"explore_page",aggregate_field:"video_is_portrait",count_field_name:"explore_page_vv",is_avg:!0},explore_item_100k_vv_vv:{event_name:"video_play",page_name:"explore_page",aggregate_field:"video_100k_vv"},explore_creator_bluev_vv:{event_name:"video_play",page_name:"explore_page",aggregate_field:"video_creator_bluev"},explore_creator_1k_follower_vv:{event_name:"video_play",page_name:"explore_page",aggregate_field:"video_creator_1k_follower"},explore_creator_10k_follower_vv:{event_name:"video_play",page_name:"explore_page",aggregate_field:"video_creator_10k_follower"},explore_creator_100k_follower_vv:{event_name:"video_play",page_name:"explore_page",aggregate_field:"video_creator_100k_follower"},explore_to_video_detail_page_view:{event_name:"page_view",page_name:"video_detail",previous_page:"explore_page"},explore_to_hot_page_view:{event_name:"enter_homepage_hot",enter_from:"explore_page"},explore_to_follow_page_view:{event_name:"enter_homepage_follow",enter_from:"explore_page"},explore_to_other_profile_view:{event_name:"enter_personal_detail",enter_from:"explore_page"},explore_slardar_perf_lcp_acc:{event_name:"slardar_perf_lcp",page_name:"explore_page",aggregate_field:"metric_duration",count_field_name:"explore_slardar_perf_lcp_cnt",is_avg:!0},explore_slardar_perf_lcp_cnt:{event_name:"slardar_perf_lcp",page_name:"explore_page",should_skip_sending:!0}}),{follow_like_cnt:{event_name:"like",page_name:"homepage_follow"},follow_comment_cnt:{event_name:"post_comment",page_name:"homepage_follow"},follow_follow_cnt:{event_name:"follow",page_name:"homepage_follow"},follow_favourite_cnt:{event_name:"favourite_video",page_name:"homepage_follow"},follow_browser_mode_vv:{event_name:"video_play",play_mode:"browser_mode",page_name:"homepage_follow"},follow_share_cnt:{event_name:"share_video",page_name:"homepage_follow"},follow_item_avg_freshness:{event_name:"video_play",page_name:"homepage_follow",aggregate_field:"video_freshness",count_field_name:"follow_vv",is_avg:!0},follow_item_avg_duration:{event_name:"video_play",page_name:"homepage_follow",aggregate_field:"video_duration",count_field_name:"follow_vv",is_avg:!0},follow_item_avg_like_history:{event_name:"video_play",page_name:"homepage_follow",aggregate_field:"video_like_history",count_field_name:"follow_vv",is_avg:!0},follow_item_avg_vv_history:{event_name:"video_play",page_name:"homepage_follow",aggregate_field:"video_vv_history",count_field_name:"follow_vv",is_avg:!0},follow_item_avg_share_history:{event_name:"video_play",page_name:"homepage_follow",aggregate_field:"video_share_history",count_field_name:"follow_vv",is_avg:!0},follow_item_avg_comment_history:{event_name:"video_play",page_name:"homepage_follow",aggregate_field:"video_comment_history",count_field_name:"follow_vv",is_avg:!0},follow_item_avg_favorite_history:{event_name:"video_play",page_name:"homepage_follow",aggregate_field:"video_favorite_history",count_field_name:"follow_vv",is_avg:!0},follow_item_avg_resolution:{event_name:"video_play",page_name:"homepage_follow",aggregate_field:"video_resolution",count_field_name:"follow_vv",is_avg:!0},follow_item_portrait:{event_name:"video_play",page_name:"homepage_follow",aggregate_field:"video_is_portrait",count_field_name:"follow_vv",is_avg:!0},follow_item_100k_vv_vv:{event_name:"video_play",page_name:"homepage_follow",aggregate_field:"video_100k_vv"},follow_creator_bluev_vv:{event_name:"video_play",page_name:"homepage_follow",aggregate_field:"video_creator_bluev"},follow_creator_1k_follower_vv:{event_name:"video_play",page_name:"homepage_follow",aggregate_field:"video_creator_1k_follower"},follow_creator_10k_follower_vv:{event_name:"video_play",page_name:"homepage_follow",aggregate_field:"video_creator_10k_follower"},follow_creator_100k_follower_vv:{event_name:"video_play",page_name:"homepage_follow",aggregate_field:"video_creator_100k_follower"},follow_to_video_detail_page_view:{event_name:"page_view",page_name:"video_detail",previous_page:"homepage_follow"},follow_to_explore_page_view:{event_name:"enter_explore_page",enter_from:"homepage_follow"},follow_to_hot_page_view:{event_name:"enter_homepage_hot",enter_from:"homepage_follow"},follow_to_other_profile_view:{event_name:"enter_personal_detail",enter_from:"homepage_follow"},follow_slardar_perf_lcp_acc:{event_name:"slardar_perf_lcp",page_name:"homepage_follow",aggregate_field:"metric_duration",count_field_name:"follow_slardar_perf_lcp_cnt",is_avg:!0},follow_slardar_perf_lcp_cnt:{event_name:"slardar_perf_lcp",page_name:"homepage_follow",should_skip_sending:!0}}),{video_detail_like_cnt:{event_name:"like",page_name:"video_detail"},video_detail_comment_cnt:{event_name:"post_comment",page_name:"video_detail"},video_detail_follow_cnt:{event_name:"follow",page_name:"video_detail"},video_detail_favourite_cnt:{event_name:"favourite_video",page_name:"video_detail"},video_detail_share_cnt:{event_name:"share_video",page_name:"video_detail"},video_detail_item_avg_freshness:{event_name:"video_play",page_name:"video_detail",aggregate_field:"video_freshness",count_field_name:"video_detail_vv",is_avg:!0},video_detail_item_avg_duration:{event_name:"video_play",page_name:"video_detail",aggregate_field:"video_duration",count_field_name:"video_detail_vv",is_avg:!0},video_detail_item_avg_like_history:{event_name:"video_play",page_name:"video_detail",aggregate_field:"video_like_history",count_field_name:"video_detail_vv",is_avg:!0},video_detail_item_avg_vv_history:{event_name:"video_play",page_name:"video_detail",aggregate_field:"video_vv_history",count_field_name:"video_detail_vv",is_avg:!0},video_detail_item_avg_share_history:{event_name:"video_play",page_name:"video_detail",aggregate_field:"video_share_history",count_field_name:"video_detail_vv",is_avg:!0},video_detail_item_avg_comment_history:{event_name:"video_play",page_name:"video_detail",aggregate_field:"video_comment_history",count_field_name:"video_detail_vv",is_avg:!0},video_detail_item_avg_favorite_history:{event_name:"video_play",page_name:"video_detail",aggregate_field:"video_favorite_history",count_field_name:"video_detail_vv",is_avg:!0},video_detail_item_avg_resolution:{event_name:"video_play",page_name:"video_detail",aggregate_field:"video_resolution",count_field_name:"video_detail_vv",is_avg:!0},video_detail_item_portrait:{event_name:"video_play",page_name:"video_detail",aggregate_field:"video_is_portrait",count_field_name:"video_detail_vv",is_avg:!0},video_detail_item_100k_vv_vv:{event_name:"video_play",page_name:"video_detail",aggregate_field:"video_100k_vv"},video_detail_creator_bluev_vv:{event_name:"video_play",page_name:"video_detail",aggregate_field:"video_creator_bluev"},video_detail_creator_1k_follower_vv:{event_name:"video_play",page_name:"video_detail",aggregate_field:"video_creator_1k_follower"},video_detail_creator_10k_follower_vv:{event_name:"video_play",page_name:"video_detail",aggregate_field:"video_creator_10k_follower"},video_detail_creator_100k_follower_vv:{event_name:"video_play",page_name:"video_detail",aggregate_field:"video_creator_100k_follower"},video_detail_to_hot_page_view:{event_name:"enter_homepage_hot",enter_from:"video_detail"},video_detail_to_explore_page_view:{event_name:"enter_explore_page",enter_from:"video_detail"},video_detail_to_follow_page_view:{event_name:"enter_homepage_follow",enter_from:"video_detail"},video_detail_to_other_profile_view:{event_name:"enter_personal_detail",enter_from:"video_detail"},video_detail_yml_cover_clicks_cnt:{event_name:"video_cover_click"},video_detail_slardar_perf_lcp_acc:{event_name:"slardar_perf_lcp",page_name:"video_detail",aggregate_field:"metric_duration",count_field_name:"video_detail_slardar_perf_lcp_cnt",is_avg:!0},video_detail_slardar_perf_lcp_cnt:{event_name:"slardar_perf_lcp",page_name:"video_detail",should_skip_sending:!0}}),{other_profile_creator_bluev_vv:{event_name:"video_play",page_name:"others_homepage",aggregate_field:"video_creator_bluev"},other_profile_creator_1k_follower_vv:{event_name:"video_play",page_name:"others_homepage",aggregate_field:"video_creator_1k_follower"},other_profile_creator_10k_follower_vv:{event_name:"video_play",page_name:"others_homepage",aggregate_field:"video_creator_10k_follower"},other_profile_creator_100k_follower_vv:{event_name:"video_play",page_name:"others_homepage",aggregate_field:"video_creator_100k_follower"},other_profile_to_video_detail_page_view:{event_name:"page_view",page_name:"video_detail",previous_page:"others_homepage"},other_profile_to_hot_page_view:{event_name:"enter_homepage_hot",enter_from:"others_homepage"},other_profile_to_follow_view:{event_name:"enter_homepage_follow",enter_from:"others_homepage"},other_profile_to_explore_page_view:{event_name:"enter_explore_page",enter_from:"others_homepage"},other_profile_playlist_vv:{event_name:"video_play",popup_type:"playlist",page_name:"others_homepage"},other_profile_follow_cnt:{event_name:"follow",page_name:"others_homepage"},other_profile_send_message_cnt:{event_name:"send_message",page_name:"others_homepage"},other_profile_sort_cnt:{event_name:"click_sort_option"},other_profile_share_user_profile_cnt:{event_name:"share",page_name:"others_homepage",type:"profile"},other_profile_slardar_perf_lcp_acc:{event_name:"slardar_perf_lcp",page_name:"others_homepage",aggregate_field:"metric_duration",count_field_name:"other_profile_slardar_perf_lcp_cnt",is_avg:!0},other_profile_slardar_perf_lcp_cnt:{event_name:"slardar_perf_lcp",page_name:"others_homepage",should_skip_sending:!0}})},93608:(e,t,n)=>{"use strict";n.d(t,{f:()=>h});var i,o=n(71510),a=n.n(o),r=n(67823),s=n(31578),l=n(40040),c=n(92603),d=n(68252),u=n(15203),p=n(91498);!function(e){e.Firefox="firefox",e.Google="google",e.Edge="edge",e.Safari="safari",e.Opera="opera",e.Yandex="yandex",e.Samsung="samsung",e.UC="uc",e.Other="unknown"}(i||(i={}));var v=n(40407),g=n(90300);function m(){try{return Math.floor(performance.now())}catch(e){}return Date.now()-(performance.timeOrigin||performance.timing.navigationStart)}const h=new class{get commonParams(){return this.commonEventParams}get teaBaseConfig(){return this.baseConfig}get isOff(){return!1}get isDebugOn(){return!1}get initDimensionalData(){return this.dimensionalData||(this.dimensionalData=this.getDimensionalData()),this.dimensionalData}get dataCollectionEnabled(){return!!this.commonEventParams.data_collection_enabled}constructor(e=n(4975).A,t=[],i=!1,o=!1,a={},r={},s={},l=void 0){this.instance=e,this.missEventsCaches=t,this.initialized=i,this.isCommonParamsUpdated=o,this.baseConfig=a,this.additionalConfig=r,this.localEventMap=s,this.abTestVersion=l,this.commonEventParams={},this.exposedExperiments=new Set,this.webExperimentExposeCallback=(e,t)=>{t&&this.exposedExperiments.add(e)}}config(e){const{initConfig:t,commonHeaderConfig:n,commonEventParams:i,abTestVersion:o}=e;if(this.abTestVersion=o,this.initialized||this.init(t),n){const e=(0,c.$Z)();this.baseConfig=a()(this.baseConfig,n,{evtParams:{object_id:e.object_id}})}i&&(this.baseConfig=a()(this.baseConfig,{evtParams:{page_name:i.page_name,enter_from:i.enter_from}}),this.commonEventParams=Object.assign(Object.assign({},this.commonEventParams),i),this.isCommonParamsUpdated=!0),this.instance.config(this.baseConfig),this.sendMissedCache()}beconEvent(e,t={}){if(this.initialized&&!this.isOff)try{this.instance.beconEvent(e,Object.assign(Object.assign({time_from_origin:m()},this.commonEventParams),t))}catch(e){}}event(e,t={},n=!0,i=!1){var o,a,r,s,c,u,p,h,_;if(this.isOff)return;const f=m();let y=Object.assign(Object.assign({time_from_origin:f},this.commonEventParams),t);const b=Object.assign(Object.assign({},this.baseConfig),this.additionalConfig);let w=!1;try{this.abTestVersion&&(w="v1"===(null===(r=null===(a=null===(o=this.abTestVersion)||void 0===o?void 0:o.parameters)||void 0===a?void 0:a.webapp_feature_expansion)||void 0===r?void 0:r.vid)||void 0!==(null===(u=null===(c=null===(s=this.abTestVersion)||void 0===s?void 0:s.parameters)||void 0===c?void 0:c.webapp_auto_dark_mode_data_collection)||void 0===u?void 0:u.vid)||void 0!==(null===(_=null===(h=null===(p=this.abTestVersion)||void 0===p?void 0:p.parameters)||void 0===h?void 0:h.video_detail_end_card)||void 0===_?void 0:_.vid))}catch(e){console.error("Error: Unable to get AB info for feature collection status!",e)}if(w){try{(0,d.rS)(e,Object.assign(Object.assign({},b),y),g.gb,this.localEventMap),y=(0,d.vG)(y)}catch(e){console.log("Error updating feature store: ",e)}try{const e=(0,v.ZC)(this.baseConfig.user_unique_id,l.uV,g.gb);Array.isArray(e)&&e.length>0&&(y.prediction_payload=e.toString())}catch(e){console.log("Error generating prediction payload: ",e)}}if(!this.initialized||n&&!this.isCommonParamsUpdated)this.missEventsCaches.push([e,Object.assign({time_from_origin:f},t)]);else try{this.isDebugOn&&(console.log(`[tea]: ${e}`),console.log(y)),this.createTeaEventHandler(e)(y,i),this.sendMissedCache()}catch(e){}}getInstance(){return this.instance}setDomain(e){this.instance.setDomain(e),this.instance.event("reactive_domain")}setDataCollectionEnabled(e){this.commonEventParams.data_collection_enabled=e?1:0}resetConfig(){this.isCommonParamsUpdated=!1,this.missEventsCaches.length=0}on(e,t){this.instance.on(e,t)}off(e,t){this.instance.off(e,t)}resetStayDuration(e,t,n){this.instance.resetStayDuration(e,t,n)}getDimensionalData(){var e;const t=(0,c.$Z)();"microsoft-store"!==t["app-install-source"]&&"app-info://platform/microsoft-store"!==document.referrer||(t.source="msft");const{traffic_type:n,referer_video_id:i,refer:o,source:a="",referer_url:r}=t,d=(null!==(e=new RegExp(`${location.origin}/(@?\\w+)`).exec(document.referrer))&&void 0!==e?e:[])[1],v=(0,s.Ny)(navigator.userAgent)?"mobile":"pc",g=(0,u.q)(r),m=(0,p.o7)(),h=(_=navigator.userAgent,/(Edge|Edg)\/([\w.]+)/i.test(_)?"edge":/Firefox|FxiOS/i.exec(_)?"firefox":/\s(opr)\/([\w.]+)/i.test(_)?"opera":/yabrowser\/([\w.]+)/i.test(_)?"yandex":/SamsungBrowser\/([\w.]+)/i.test(_)?"samsung":/(UCBrowser|UBrowser)\/([\w.]+)/i.test(_)?"uc":/Chrome|chromium|CriOS/i.test(_)?"google":/Safari/i.test(_)?"safari":"unknown");var _;const f=(()=>{if("undefined"==typeof window||"undefined"==typeof document)return!1;const e=window.navigator.userAgent;if(!/iPad|iPhone|iPod/.test(e))return!!(null===window||void 0===window?void 0:window.MediaSource)&&((null===window||void 0===window?void 0:window.MediaSource.isTypeSupported('video/mp4;codecs="hev1.1.6.L120.90"'))||(null===window||void 0===window?void 0:window.MediaSource.isTypeSupported('video/mp4;codecs="hev1.2.4.L120.90"'))||(null===window||void 0===window?void 0:window.MediaSource.isTypeSupported('video/mp4;codecs="hev1.3.E.L120.90"'))||(null===window||void 0===window?void 0:window.MediaSource.isTypeSupported('video/mp4;codecs="hev1.4.10.L120.90"')));try{const e=document.createElement("video");return[e.canPlayType('video/mp4; codecs="hvc1.1.L0.0"'),e.canPlayType('video/mp4;codecs="hev1.1.6.L120.90"'),e.canPlayType('video/mp4;codecs="hev1.2.4.L120.90"'),e.canPlayType('video/mp4;codecs="hev1.3.E.L120.90"'),e.canPlayType('video/mp4;codecs="hev1.4.10.L120.90"')].some((e=>"probably"===e||"maybe"===e))}catch(e){return!1}})(),y=function(){if("undefined"!=typeof navigator)return null===navigator||void 0===navigator?void 0:navigator.deviceMemory}();return(0,c._i)(t),this.dimensionalData={device:v,launch_mode:m,device_memory:y,traffic_type:null!=n?n:g,source:l.LN.test(a)?"":a,referer_video_id:i,utm_source:t.utm_source,utm_medium:t.utm_medium,utm_campaign:t.utm_campaign,utm_term:t.utm_term,utm_content:t.utm_content,embed_source:t.embed_source,referer_url:r?decodeURIComponent(r):(null==o?void 0:o.replace(l.wO,""))||d||document.referrer||l.oE,browserName:h,hevcSupported:f?1:0,cpu_core:navigator.hardwareConcurrency||0},this.dimensionalData}getSessionId(e){let t=(0,c.Hd)(l.qZ);return t||(t=e+Date.now().toString(),(0,c.J2)("webapp_session_id",t)),t}getLandingPage(e){const t=(0,c.Hd)(l.iJ);return t?(this.commonEventParams.is_landing_page=0,t):(this.commonEventParams.is_landing_page=1,(0,c.J2)(l.iJ,e),e)}getPreviousInfo(e){var t;let n={};try{n=JSON.parse(null!==(t=(0,c.Hd)(l.QI))&&void 0!==t?t:"null")||{}}catch(e){n={}}return location.href!==n.href||e!==n.pageName?((0,c.J2)(l.QI,JSON.stringify({href:location.href,pageName:e,twoPrev:n.pageName,twoPrevHref:n.href})),n.pageName):n.twoPrev}getVar(e,t){var n;const i=this.webExperimentExposeCallback.bind(null,e);return this.exposedExperiments.has(e)||this.instance.getVar(e,t,i),(null===(n=this.webExperiments)||void 0===n?void 0:n.values)&&this.webExperiments.values[e]||{}}getVarWithCb(e,t,n){this.instance.getVar(e,t,n)}initWebExperiments(){this.instance.getAllVars((e=>{this.webExperiments={values:e,isReady:!0}}))}init(e){var t,n,i,o,a,s,l;this.instance.init({site_name:"",enable_ttwebid:!0,channel_domain:e.channel_domain,channel:e.channel,channel_type:null!==(t=e.channel_type)&&void 0!==t?t:"tcpy",app_id:e.id,enable_stay_duration:null===(n=e.enable_stay_duration)||void 0===n||n,enable_ab_test:!0,ab_channel_domain:e.ab_channel_domain||e.channel_domain,commonParams:{page_type:!0},enable_debug:!0,autotrack:e.autotrack}),this.initialized=!0;const c=r.A.get("tea_sid");var u;(u=c)&&/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(u)&&(console.log("use TEA_SID_KEY",c),this.instance.setSessionId(c)),this.instance.start(),this.initWebExperiments(),this.additionalConfig={os:null!==(i=this.instance.getConfig("os_name"))&&void 0!==i?i:"",browser_brand:null!==(o=this.instance.getConfig("browser"))&&void 0!==o?o:"",width:null!==(a=this.instance.getConfig("screen_width"))&&void 0!==a?a:0,height:null!==(s=this.instance.getConfig("screen_height"))&&void 0!==s?s:0,language_sys:null!==(l=this.instance.getConfig("language"))&&void 0!==l?l:""},this.localEventMap=(0,d.Zl)(g.gb)}sendMissedCache(){try{this.missEventsCaches.length&&(this.missEventsCaches.forEach((e=>{const t=Object.assign(Object.assign({},this.commonEventParams),e[1]);this.instance.event(e[0],t),this.isDebugOn&&(console.log("[tea]: send cached event",e),console.log(t))})),this.missEventsCaches.length=0)}catch(e){}}createTeaEventHandler(e){return(...[t])=>{this.instance.event(e,t)}}sendEvent(e,t={},n=!0,i=!0){this.event(e,t,n,i)}}},92603:(e,t,n)=>{"use strict";n.d(t,{$Z:()=>o,Hd:()=>r,J2:()=>s,X:()=>l,_i:()=>a});var i=n(4474);function o(){if("undefined"==typeof document)return{};const e=(0,i.parse)(location.search,{arrayFormat:"bracket"});return Object.keys(e).forEach((t=>{var n,i;"string"!=typeof e[t]&&(e[t]=null!==(i=null===(n=e[t])||void 0===n?void 0:n[0])&&void 0!==i?i:"")})),e}function a(e){["utm_source","utm_medium","utm_campaign","utm_term","utm_content","referer_url","referer_video_id"].forEach((t=>{var n;e[t]&&s(t,null!==(n=e[t])&&void 0!==n?n:"")}))}function r(e,t=""){var n;try{return null!==(n=sessionStorage.getItem(e))&&void 0!==n?n:t}catch(e){return t}}function s(e,t){try{sessionStorage.setItem(e,t)}catch(e){}}function l(e){try{sessionStorage.removeItem(e)}catch(e){}}},91498:(e,t,n)=>{"use strict";n.d(t,{o7:()=>l});var i=n(31578),o=n(40040),a=n(92603),r=n(15203);const s=(e,t=!1)=>{const n=new URL(window.location.href);if(t){const{origin:e,pathname:t}=n;return`${e}${t}`}return e.forEach((e=>n.searchParams.delete(e))),n.href};function l(e){var t;const n=null!=e?e:(0,a.$Z)();"microsoft-store"!==n["app-install-source"]&&"app-info://platform/microsoft-store"!==(null===document||void 0===document?void 0:document.referrer)||(n.source="msft");const{lm:l,refer:c,source:d="",is_from_webapp:u,referer_url:p="",_r:v,previous_launch_mode:g,previous_langding_page:m,show_promote:h}=n,_=(null!==(t=new RegExp(`${location.origin}/(@?\\w+)`).exec(document.referrer))&&void 0!==t?t:[])[1],f=(0,a.Hd)(o.O_,void 0),y="embed"===_||"embed"===c,b="creator_embed"===c,w="amp"===_||/^amp_\w+/.test(p);if(f&&!y&&!w&&!b)return f;const x=function({device:e,source:t,lm:n,siteOnePath:i,refer:o,refererUrl:a="",fromWebapp:r,queryR:s,trafficType:l,previousLaunchMode:c,showPromote:d}){var u;const p="embed"===i||"embed"===o,v="creator_embed"===o,g="music_embed"===o,m="hashtag_embed"===o,h="curated_embed"===o,_="trending_embed"===o,f="amp"===i||/^amp_\w+/.test(a);return"1"===d?"email":"undefined"!=typeof window&&(null===(u=null===window||void 0===window?void 0:window.TTE_ENV)||void 0===u?void 0:u.isElectron)?window.TTE_ENV.osVersion.includes("Mac OS")?"mac_desktop_app":"win_desktop_app":c||("msft"===t?"msft":"twa"===t?"twa":"push"===t?"push":"samsung_quick_access"===t?"samsung_quick_access":"undefined"!=typeof window&&(navigator.standalone||"pc"===e&&window.matchMedia("(display-mode: standalone), (display-mode: minimal-ui)").matches||"mobile"===e&&window.matchMedia("(display-mode: standalone), (display-mode: minimal-ui), (display-mode: fullscreen)").matches)?"pwa":"11"===n?"paid":p?"referral_embed":v?"referral_creator_embed":g?"referral_music_embed":m?"referral_hashtag_embed":_?"referral_trending_embed":h?"referral_curated_embed":f?"referral_amp":"tiktok_browse"===o?"referral_tiktok_browse":/google|yahoo|yandex|bing|naver|duckduckgo/gi.test(l)?"organic":"1"===s?"reflow":"webapp"===t||r?"webapp_reflow":o||a||"undefined"!=typeof document&&document.referrer?"referral":"direct")}({refer:c,device:(0,i.Ny)(navigator.userAgent)?"mobile":"pc",refererUrl:p,lm:l,trafficType:(0,r.q)(p),source:d,fromWebapp:u,siteOnePath:_,queryR:v,previousLaunchMode:g,showPromote:h});return(0,a.J2)(o.O_,x),m&&(0,a.J2)(o.iJ,m),g&&window.history.replaceState({},"",s(["previous_launch_mode","previous_langding_page"])),x}},68252:(e,t,n)=>{"use strict";n.d(t,{AP:()=>h,QR:()=>d,SE:()=>p,Zl:()=>l,_S:()=>m,rS:()=>g,sG:()=>c,uh:()=>_,vG:()=>v});var i=n(58632),o=n(40040),a=n(90300),r=n(93608),s=n(92603);const l=e=>{const t={};return Object.entries(e).forEach((([e,n])=>{const i=n.event_name;i&&(t[i]||(t[i]=[]),t[i].push(e))})),t},c=e=>{const t=e.match(/^(\d+)p$/);return t?parseInt(t[1],10):0},d=(e=0)=>{if(!e||0===e)return 0;const t=10===e.toString().length?1e3*e:e,n=(new Date).getTime()-new Date(t).getTime();return Math.floor(n/864e5)},u=(e,t)=>{var n,i,o,r,s,l,c,u,p,v,g;const m={[a.mD.OS]:null!==(i=null===(n=t.os)||void 0===n?void 0:n.toLowerCase())&&void 0!==i?i:"",[a.mD.BROWSER_BRAND]:"microsoft edge"===(null===(o=t.browser_brand)||void 0===o?void 0:o.toLowerCase())?"edge":null!==(s=null===(r=t.browser_brand)||void 0===r?void 0:r.toLowerCase())&&void 0!==s?s:"",[a.mD.SCREEN_RESOLUTION]:(null!==(l=t.width)&&void 0!==l?l:0)*(null!==(c=t.height)&&void 0!==c?c:0),[a.mD.SCREEN_ORIENTATION]:(null!==(u=t.width)&&void 0!==u?u:0)>(null!==(p=t.height)&&void 0!==p?p:0)?1:0,[a.mD.CPU_CORE_NUMBER]:t["header.custom"].cpu_core,[a.mD.NETWORK_DOWNLINK]:t["header.custom"].network_downlink,[a.mD.NETWORK_RTT]:t["header.custom"].network_rtt,[a.mD.NETWORK_SPEED_EFFECTIVE_TYPE]:t["header.custom"].network_speed_effective_type,[a.mD.REGION]:t.region,[a.mD.LAUNCH_MODE]:t["header.custom"].launch_mode,[a.mD.LANDING_PAGE]:t["header.custom"].landing_page,[a.mD.LANGUAGE_SYSTEM]:null!==(g=null===(v=t.language_sys)||void 0===v?void 0:v.toLowerCase())&&void 0!==g?g:"",[a.mD.LANGUAGE_APP]:t["header.custom"].app_language,[a.mD.TIMEZONE]:-(new Date).getTimezoneOffset()/60,[a.mD.TIME_OF_DAY_LANDING]:(new Date).getHours(),[a.mD.DAY_OF_WEEK]:(new Date).getDay(),[a.mD.IS_LOCAL_DAYTIME]:(new Date).getHours()>=6&&(new Date).getHours()<18?1:0,[a.mD.IS_LOGIN]:t["header.custom"].user_is_login,[a.mD.MAX_TOUCH_POINTS]:t["header.custom"].max_touch_points,[a.mD.RET_ACC]:1};t.webIdCreatedTime&&0!==t.webIdCreatedTime&&(m[a.mD.FIRST_ACTIVE_DATE]=d(t.webIdCreatedTime),m[a.mD.IS_NEW_USER]=0===d(t.webIdCreatedTime)?1:0),t.user_is_login&&(m[a.mD.LOGIN_DAYS_COUNT]=1),e[(new Date).toLocaleDateString("en-US")][t.user_unique_id]=Object.assign(Object.assign({},e[(new Date).toLocaleDateString("en-US")][t.user_unique_id]),m)},p=e=>{var t,n,i,s,l,c,d,p,v,g,h;const _=m(o.ne)||"{}",f=JSON.parse(_),y=(new Date).toLocaleDateString("en-US");f[y]||(f[y]={[e]:{}}),f[y][e]||(f[y][e]={});const b=f[y][e];b[a.mD.SESSION_LAST_UPDATE_TIME]||(b[a.mD.SESSION_LAST_UPDATE_TIME]=(new Date).getTime()),b[a.mD.STAY_DURATION]||(b[a.mD.STAY_DURATION]=0),b[a.mD.SESSION_CNT]||(b[a.mD.SESSION_CNT]=1);const w=r.f.getInstance(),x=null==w?void 0:w.getConfig();if(!x)return console.error("Error. Tea config not found!"),f;const T=x.header,S={user_unique_id:e,user_is_login:null!==(n=null===(t=x.user)||void 0===t?void 0:t.user_is_login)&&void 0!==n?n:0,webIdCreatedTime:null===(i=null==T?void 0:T.custom)||void 0===i?void 0:i.webid_created_time,os:null==T?void 0:T.os_name,browser_brand:null==T?void 0:T.browser,width:null==T?void 0:T.screen_width,height:null==T?void 0:T.screen_height,region:null==T?void 0:T.region,language_sys:null==T?void 0:T.language,"header.custom":{cpu_core:null===(s=null==T?void 0:T.custom)||void 0===s?void 0:s.cpu_core,network_downlink:null===(l=navigator.connection)||void 0===l?void 0:l.downlink,network_rtt:null===(c=navigator.connection)||void 0===c?void 0:c.rtt,network_speed_effective_type:null===(d=navigator.connection)||void 0===d?void 0:d.effectiveType,launch_mode:null===(p=null==T?void 0:T.custom)||void 0===p?void 0:p.launch_mode,landing_page:0,app_language:null===(v=null==T?void 0:T.custom)||void 0===v?void 0:v.app_language,user_is_login:null!==(h=null===(g=x.user)||void 0===g?void 0:g.user_is_login)&&void 0!==h?h:0,max_touch_points:null===navigator||void 0===navigator?void 0:navigator.maxTouchPoints}};return u(f,S),f},v=e=>{const{video_freshness:t,video_like_history:n,video_vv_history:o,video_share_history:a,video_comment_history:r,video_favorite_history:s,video_resolution:l,video_is_portrait:c,video_100k_vv:d,video_creator_bluev:u,video_creator_1k_follower:p,video_creator_10k_follower:v,video_creator_100k_follower:g}=e;return(0,i.__rest)(e,["video_freshness","video_like_history","video_vv_history","video_share_history","video_comment_history","video_favorite_history","video_resolution","video_is_portrait","video_100k_vv","video_creator_bluev","video_creator_1k_follower","video_creator_10k_follower","video_creator_100k_follower"])},g=(e,t,n,i)=>{const{page_name:r,user_unique_id:l,enter_method:c,platform:d,play_mode:v,popup_type:g,previous_page:m,enter_from:_}=t,f=p(l),y=((e,t,n)=>{if(!e.event_name||!n||!n[e.event_name])return[];const i=[],o=n[e.event_name]||[];return o&&0!==o.length?(o.forEach((n=>{const o=t[n];o&&!o.is_snapshot&&a.NX.every((t=>!o[t]||(Array.isArray(o[t])?o[t].includes(e[t]):o[t]===e[t])))&&i.push(n)})),i):[]})({event_name:e,page_name:r,enter_method:c,platform:d,play_mode:v,popup_type:g,previous_page:m,enter_from:_},n,i);0!==y.length&&(l&&(y.forEach((e=>{((e,t,n,i,o)=>{const a=(new Date).toLocaleDateString("en-US"),r=t[a][e],{aggregate_field:s,should_skip_updating:l,is_time_stamp:c}=i[n];if(!l&&(void 0!==r[n]?r[n]="time_stamp"===s?(new Date).getHours():parseFloat((r[n]+o).toFixed(2)):t[a][e]="time_stamp"===s?Object.assign(Object.assign({},r),{[n]:(new Date).getHours()}):Object.assign(Object.assign({},r),{[n]:parseFloat(o.toFixed(2))}),c)){const o=i[n].start_event_name;r[o]&&(void 0!==r[n]?r[n]+=(new Date).getTime()-r[o]:t[a][e]=Object.assign(Object.assign({},r),{[n]:(new Date).getTime()-r[o]}))}})(l,f,e,n,((e,t,n)=>{var i,o,a;if(!e||!e[t])return console.error(`featureName: ${t} not found on feature def!`),0;const{aggregate_field:r}=e[t];return"duration"===r?parseFloat(null===(i=n[r]/6e4)||void 0===i?void 0:i.toFixed(2)):"metric_duration"===r?parseFloat(null===(o=n[r]/1e3)||void 0===o?void 0:o.toFixed(2)):r?parseFloat(null===(a=n[r])||void 0===a?void 0:a.toFixed(2)):1})(n,e,t))})),u(f,t),((e,t)=>{var n;const i=(new Date).toLocaleDateString("en-US"),r=(0,s.Hd)(o.qZ),l=null===(n=e["header.custom"])||void 0===n?void 0:n.session_id,c=t[i][e.user_unique_id];r===l?c[a.mD.STAY_DURATION]+=parseFloat((((new Date).getTime()-c[a.mD.SESSION_LAST_UPDATE_TIME])/6e4).toFixed(2)):c[a.mD.SESSION_CNT]++,c[a.mD.SESSION_LAST_UPDATE_TIME]=(new Date).getTime()})(t,f)),h(o.ne,JSON.stringify(f)))};function m(e,t=""){var n;try{return null!==(n=localStorage.getItem(e))&&void 0!==n?n:t}catch(e){return t}}function h(e,t){try{localStorage.setItem(e,t)}catch(e){}}const _=(e="",t=!1)=>{if(t)return!0;const n="1"===m(o.Is,"0"),i=o.lG.includes(e);return n&&!i}},15203:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});var i=n(40040),o=n(92603);const a=1e3;function r(e){var t;let n;const r="undefined"!=typeof window;if(r&&(e=e?decodeURIComponent(e):document.referrer,n=(0,o.Hd)(i.em)),!n){if(!e||e.length>a)n="no_referrer";else{const o=/^https?:\/\/.*(google|yahoo|yandex|bing|naver|duckduckgo|neeva|wikipedia|facebook|instagram|youtube|twitter|tiktok|buzzfeed|debate|greenlemon|cloudfront|multimedios|huffpost|sdpnoticias|pinterest|bluradio|eluniversal|elcomercio|insider|medialeaks|intheknow|distractify|telediario|msn|linkedin|discord|whatsapp|telegram|viber|reddit|twitch|snapchat|messenger).*\/?/;n=(null!==(t=e.match(o))&&void 0!==t?t:[])[1]||i.YH}r&&(0,o.J2)(i.em,n)}return n}},40407:(e,t,n)=>{"use strict";n.d(t,{ZC:()=>r});var i=n(68252),o=n(40040);const a=e=>new Date((new Date).getTime()-864e5*e).toLocaleDateString("en-US"),r=(e,t,n)=>{var r;if(!e)return[];try{const s=(0,i.SE)(e),l={},c=[];return Array(t).fill(0).forEach(((i,o)=>{var r;const d=a(t-o-1);(null===(r=s[d])||void 0===r?void 0:r[e])&&(c.push(((e,t,n,i,o)=>{let r=[];const s=t===(new Date).toLocaleDateString("en-US");return Object.entries(n).forEach((([n,l])=>{var c,d,u;const{should_skip_sending:p,available_values:v,is_snapshot:g,is_avg:m,count_field_name:h}=l;if(!p)if(v)r=r.concat(((e,t,n,i,o,a)=>{var r,s;const l=t===(new Date).toLocaleDateString("en-US"),c=null===(s=null===(r=a[t])||void 0===r?void 0:r[e])||void 0===s?void 0:s[n];return[...i.map((e=>e!==c||o&&!l?0:1)),i.includes(c)||o&&!l?0:1]})(e,t,n,v,g,i));else if(null===(d=null===(c=i[t])||void 0===c?void 0:c[e])||void 0===d?void 0:d[n])if(!g||s)if(m&&h){const s=i[t][e][h];if(s&&s>=1&&i[t][e][n]){const l=i[t][e][n]/(s*(null!==(u=((e,t,n,i)=>Array.from({length:e},((e,t)=>a(t))).reduce(((e,o)=>{var a,r;return void 0!==(null===(r=null===(a=n[o])||void 0===a?void 0:a[t])||void 0===r?void 0:r[i])?e+1:e}),0))(o,e,i,n))&&void 0!==u?u:1));r.push(parseFloat(l.toFixed(2)))}else r.push(0)}else r.push(i[t][e][n]);else r.push(0);else r.push(0)})),r})(e,d,n,s,t)),l[d]=s[d])})),(0,i.AP)(o.ne,JSON.stringify(l)),c.reduce(((e,t)=>(e.length!==t.length&&console.error("Error! Payload length mismatch!"),e.forEach(((n,i)=>{e[i]+=t[i]})),e)),new Array(null===(r=c[0])||void 0===r?void 0:r.length).fill(0))}catch(e){return console.error("Error generating prediction payload! ",e),[]}}},39522:(e,t,n)=>{"use strict";n.d(t,{J:()=>o,Z:()=>i});const i={Positive:"rgba(11, 224, 155, 1)",Negative:"rgba(255, 76, 58, 1)",ToastDefault:"rgba(84, 84, 84, .92)",ToastNegative:"rgba(255, 76, 58, .92)",Secondary:"rgba(32, 213, 236, 1)",TUXSecondary2:"rgba(16, 162, 197, 1)",Positive2:"rgba(79, 171, 126, 1)",ConstTextInverse:"rgba(255, 255, 255, 1)",ConstTextInverse2:"rgba(255, 255, 255, .9)",ConstTextInverse3:"rgba(255, 255, 255, .75)",ConstTextInverse4:"rgba(255, 255, 255, .5)",ConstTextInverse5:"rgba(255, 255, 255, .34)",ConstTextPrimary:"rgba(22, 24, 35, 1)",ConstBGInverse:"rgba(0, 0, 0, 1)",ConstBGInverse2:"rgba(0, 0, 0, .6)",ConstBGInverse3:"rgba(37, 37, 37, .6)",ConstBGInverse4:"rgba(84, 84, 84, .5)",TUXBGCreation:"rgba(0, 0, 0, 1)",BGCreation2:"rgba(27, 27, 27, 1)",BGCreation5:"rgba(0, 0, 0, .15)",ConstBGMat:"rgba(255, 255, 255, .2)",ConstBGContainer:"rgba(255, 255, 255, .12)",ConstBGContainer2:"rgba(255, 255, 255, .08)",ConstBGContainer3:"rgba(255, 255, 255, .04)",ConstBGPlaceholderOpaque:"rgba(241, 241, 241, 1)",ConstBGInverseOpaque:"rgba(37, 37, 37, 1)",ConstBGInverse1:"rgba(56, 56, 56, .95)",ConstLineInverse:"rgba(255, 255, 255, .2)",ConstLineInverse2:"rgba(255, 255, 255, .12)",SDPrimary:"rgba(0, 0, 0, .8)",AssistColorYellow:"rgba(250, 206, 21, 1)",Primary:"rgba(254, 44, 85, 1)",Link:"rgba(254, 44, 85, 1)",Primary2:"rgba(22, 24, 35, 1)",TextPrimary:"rgba(22, 24, 35, 1)",TextSecondary:"rgba(22, 24, 35, .75)",TextTertiary:"rgba(22, 24, 35, .5)",TextQuaternary:"rgba(22, 24, 35, .34)",BGBase:"rgba(245, 245, 245, 1)",BGPrimary:"rgba(255, 255, 255, 1)",BGSecondary:"rgba(255, 255, 255, 1)",BGTertiary:"rgba(255, 255, 255, 1)",BGQuaternary:"rgba(255, 255, 255, 1)",BGQuinary:"rgba(255, 255, 255, 1)",BGSecondary2:"rgba(255, 255, 255, 1)",BGTertiary2:"rgba(255, 255, 255, 1)",BGPlaceholderDefault:"rgba(22, 24, 35, .06)",BGPlaceholderOpaque:"rgba(241, 241, 241, 1)",BGInput:"rgba(22, 24, 35, .06)",BGInput2:"rgba(22, 24, 35, .06)",BGView:"rgba(22, 24, 35, .03)",BGCreation3:"rgba(248, 248, 248, 1)",BGCreation4:"rgba(255, 255, 255, 1)",BGHover:"rgba(22, 24, 35, .06)",BGBrand:"rgba(254, 44, 85, .06)",LinePrimary:"rgba(22, 24, 35, .2)",LineSecondary:"rgba(22, 24, 35, .12)",LineInput:"rgba(22, 24, 35, .5)",LinePrimary2:"rgba(22, 24, 35, .2)",LineSecondary2:"rgba(22, 24, 35, .12)",TUXLineSecondary3:"rgba(22, 24, 35, .12)",LineDarker:"rgba(22, 24, 35, .12)",SDSecondary:"rgba(0, 0, 0, .5)",SDTertiary:"rgba(0, 0, 0, .2)",UIText1:"rgba(0, 0, 0, 1)",UIText2:"rgba(0, 0, 0, .65)",UIText3:"rgba(0, 0, 0, .48)",UITextPlaceholder:"rgba(0, 0, 0, .34)",UITextDanger:"rgba(218, 49, 35, 1)",UIShapeNeutral3:"rgba(0, 0, 0, 0.12)",Secondary2:"rgba(0, 198, 233, 1.0)",Link2:"rgba(254, 44, 85, 1.0)",Link3:"rgba(254, 44, 85, 1.0)",TextTertiary2:"rgba(22, 24, 35, 0.5)",TextReverse:"rgba(22, 24, 35, 1.0)",TextReverse2:"rgba(22, 24, 35, 0.75)",TextReverse3:"rgba(22, 24, 35, 0.5)",TextReverse4:"rgba(22, 24, 35, 0.34)",BGPrimary2:"rgba(255, 255, 255, 1.0)",BGView2:"rgba(22, 24, 35, 0.03)",BGCreation:"rgba(18, 18, 18, 1.0)",BGInverse3:"rgba(37, 37, 37, 0.6)",BGReverse:"rgba(255, 255, 255, 1.0)",BGReverse2:"rgba(255, 255, 255, 0.9)",ShadowPrimary:"rgba(0, 0, 0, 0.12)",ShadowSecondary:"rgba(0, 0, 0, 0.06)",LineSecondary3:"rgba(22, 24, 35, 0.03)",LineReverse2:"rgba(22, 24, 35, 0.12)",LineReverse3:"rgba(22, 24, 35, 0.12)",LineInverse:"rgba(22, 24, 35, 0.2)",TagGreenText:"rgba(89, 128, 108, 1.0)",TagGreenBG:"rgba(239, 245, 242, 1.0)",TagPurpleText:"rgba(128, 89, 121, 1.0)",TagPurpleBG:"rgba(246, 240, 245, 1.0)",TagBrownText:"rgba(128, 89, 89, 1.0)",TagBrownBG:"rgba(245, 240, 240, 1.0)",LiveColorStart:"rgba(255, 23, 100, 1.0)",LiveColorEnd:"rgba(237, 52, 149, 1.0)",ConstSecondary:"rgba(32, 213, 236, 1.0)",ConstSecondary2:"rgba(16, 162, 197, 1.0)",BGMessageIcon:"rgb(241, 241, 242)",BGMessageOperateHover:"rgba(196, 196, 196, .425)",TextTertiaryAlt:"rgba(22, 24, 35, 0.6)",AssistColorAzure:"rgba(43, 93, 185, 1)",UIShapeNeutral4:"rgba(0, 0, 0, 0.05)"},o={Positive:"rgba(11, 224, 155, 1)",Negative:"rgba(255, 76, 58, 1)",ToastDefault:"rgba(84, 84, 84, .92)",ToastNegative:"rgba(255, 76, 58, .92)",Secondary:"rgba(32, 213, 236, 1)",TUXSecondary2:"rgba(16, 162, 197, 1)",Positive2:"rgba(79, 171, 126, 1)",ConstTextInverse:"rgba(255, 255, 255, 1)",ConstTextInverse2:"rgba(255, 255, 255, .9)",ConstTextInverse3:"rgba(255, 255, 255, .75)",ConstTextInverse4:"rgba(255, 255, 255, .5)",ConstTextInverse5:"rgba(255, 255, 255, .34)",ConstTextPrimary:"rgba(22, 24, 35, 1)",ConstBGInverse:"rgba(0, 0, 0, 1)",ConstBGInverse2:"rgba(0, 0, 0, .6)",ConstBGInverse3:"rgba(37, 37, 37, .6)",ConstBGInverse4:"rgba(84, 84, 84, .5)",TUXBGCreation:"rgba(0, 0, 0, 1)",BGCreation2:"rgba(27, 27, 27, 1)",BGCreation5:"rgba(0, 0, 0, .15)",ConstBGMat:"rgba(255, 255, 255, .2)",ConstBGContainer:"rgba(255, 255, 255, .12)",ConstBGContainer2:"rgba(255, 255, 255, .08)",ConstBGContainer3:"rgba(255, 255, 255, .04)",ConstBGPlaceholderOpaque:"rgba(241, 241, 241, 1)",ConstBGInverseOpaque:"rgba(37, 37, 37, 1)",ConstBGInverse1:"rgba(56, 56, 56, .95)",ConstLineInverse:"rgba(255, 255, 255, .2)",ConstLineInverse2:"rgba(255, 255, 255, .12)",SDPrimary:"rgba(0, 0, 0, .8)",AssistColorYellow:"rgba(250, 206, 21, 1)",Primary:"rgba(255, 59, 92, 1)",Link:"rgba(255, 59, 92, 1)",Primary2:"rgba(255, 255, 255, .9)",TextPrimary:"rgba(255, 255, 255, .9)",TextSecondary:"rgba(255, 255, 255, .75)",TextTertiary:"rgba(255, 255, 255, .5)",TextQuaternary:"rgba(255, 255, 255, .34)",BGBase:"rgba(0, 0, 0, 1)",BGPrimary:"rgba(18, 18, 18, 1)",BGSecondary:"rgba(37, 37, 37, 1)",BGTertiary:"rgba(46, 46, 46, 1)",BGQuaternary:"rgba(56, 56, 56, 1)",BGQuinary:"rgba(75, 75, 75, 1)",BGSecondary2:"rgba(255, 255, 255, .08)",BGTertiary2:"rgba(255, 255, 255, .12)",BGPlaceholderDefault:"rgba(255, 255, 255, .08)",BGPlaceholderOpaque:"rgba(37, 37, 37, 1)",BGInput:"rgba(255, 255, 255, .12)",BGInput2:"rgba(255, 255, 255, .08)",BGView:"rgba(255, 255, 255, .04)",BGCreation3:"rgba(18, 18, 18, 1)",BGCreation4:"rgba(27, 27, 27, 1)",BGHover:"rgba(255, 255, 255, .9)",BGBrand:"rgba(254, 44, 85, .34)",LinePrimary:"rgba(255, 255, 255, 0)",LineSecondary:"rgba(255, 255, 255, .12)",LineInput:"rgba(255, 255, 255, .5)",LinePrimary2:"rgba(255, 255, 255, .2)",LineSecondary2:"rgba(255, 255, 255, 0)",TUXLineSecondary3:"rgba(255, 255, 255, .5)",LineDarker:"rgba(0, 0, 0, .6)",SDSecondary:"rgba(0, 0, 0, .68)",SDTertiary:"rgba(0, 0, 0, .5)",UIText1:"rgba(246, 246, 246, 1)",UIText2:"rgba(255, 255, 255, .88)",UIText3:"rgba(255, 255, 255, .6)",UITextPlaceholder:"rgba(255, 255, 255, .4)",UITextDanger:"rgba(255, 118, 96, 1)",UIShapeNeutral3:"rgba(255, 255, 255, 0.19);",Secondary2:"rgba(0, 198, 233, 1.0)",Link2:"rgba(255, 59, 92, 1.0)",Link3:"rgba(255, 59, 92, 1.0)",TextTertiary2:"rgba(255, 255, 255, 0.75)",TextReverse:"rgba(255, 255, 255, 0.9)",TextReverse2:"rgba(255, 255, 255, 0.75)",TextReverse3:"rgba(255, 255, 255, 0.5)",TextReverse4:"rgba(255, 255, 255, 0.34)",BGPrimary2:"rgba(255, 255, 255, 0.04)",BGView2:"rgba(255, 255, 255, 0.0)",BGCreation:"rgba(18, 18, 18, 1.0)",BGInverse3:"rgba(37, 37, 37, 0.6)",BGReverse:"rgba(18, 18, 18, 1.0)",BGReverse2:"rgba(18, 18, 18, 0.9)",ShadowPrimary:"rgba(255, 255, 255, 0.12)",ShadowSecondary:"rgba(0, 0, 0, 0.06)",LineSecondary3:"rgba(255, 255, 255, 0.0)",LineReverse2:"rgba(255, 255, 255, 0.12)",LineReverse3:"rgba(255, 255, 255, 0.0)",LineInverse:"rgba(255, 255, 255, 0.0)",TagGreenText:"rgba(178, 255, 217, 1.0)",TagGreenBG:"rgba(89, 128, 102, 1.0)",TagPurpleText:"rgba(255, 178, 217, 1.0)",TagPurpleBG:"rgba(128, 89, 108, 1.0)",TagBrownText:"rgba(255, 179, 179, 1.0)",TagBrownBG:"rgba(128, 89, 89, 1.0)",LiveColorStart:"rgba(255, 23, 100, 1.0)",LiveColorEnd:"rgba(237, 52, 149, 1.0)",ConstSecondary:"rgba(32, 213, 236, 1)",ConstSecondary2:"rgba(16, 162, 197, 1)",BGMessageIcon:"rgba(255, 255, 255, 0.08)",BGMessageOperateHover:"rgba(255, 255, 255, 0.12)",TextTertiaryAlt:"rgba(255, 255, 255, 0.6)",AssistColorAzure:"rgba(143, 190, 233, 1)",UIShapeNeutral4:"rgba(255, 255, 255, 0.13)"}},72241:(e,t,n)=>{"use strict";n.d(t,{xm:()=>g,pz:()=>d,O4:()=>p});var i=n(57432),o=n.n(i),a=n(40099),r=n(39522);const s={TikTokFont:'"IBM Plex Sans", TikTokFont, Arial, Tahoma, PingFangSC, sans-serif',TikTokDisplayFont:'"IBM Plex Sans", TikTokDisplayFont, Arial, Tahoma, PingFangSC, sans-serif'},l={P0:{fontSize:"24px",lineHeight:"32px"},P1:{fontSize:"18px",lineHeight:"25px"},P2:{fontSize:"16px",lineHeight:"22px"},P3:{fontSize:"14px",lineHeight:"20px"},P4:{fontSize:"12px",lineHeight:"17px"},H0:{fontSize:"96px",lineHeight:"115px"},H1:{fontSize:"72px",lineHeight:"86px"},H2:{fontSize:"56px",lineHeight:"68px"},H3:{fontSize:"32px",lineHeight:"38px"},H4:{fontSize:"24px",lineHeight:"28px"},H5:{fontSize:"18px",lineHeight:"22px"},H6:{fontSize:"14px",lineHeight:"17px"}};var c;!function(e){e[e.Dark=0]="Dark",e[e.Bright=1]="Bright",e[e.System=2]="System"}(c||(c={}));const d={isMobile:!1,direction:"ltr",isDark:!1,colors:r.Z,link:{color:"#0078d4",hoverColor:"#004578",activeColor:"#004578",focusColor:"#0078d4",visitedColor:"#0078d4"},selection:{background:"rgba(141, 214, 249, 0.35)"},text:{fontFamily:'"TikTokDisplayFont", PingFangSC, sans-serif',fontSize:"14px",color:"#000"},border:{radius:"3px"},boxShadowBase:"0 1.6px 3.6px 0 rgba(0,0,0,.132), 0 0.3px 0.9px 0 rgba(0,0,0,.108)",markdown:{blockquote:{color:"#4e7182",backgroundColor:"#eaf8ff"},inlineCode:{color:"hotpink",background:"rgba(70, 94, 105, 0.05)"}},zIndex:{background:0,default:1,overlay:3e3,dropdown:3100,modal:3500,popover:4e3,tooltip:4500,toast:5500},typography:{P0:{fontSize:"24px",lineHeight:"30px"},P1:{fontSize:"18px",lineHeight:"24px"},P2:{fontSize:"16px",lineHeight:"21px"},P3:{fontSize:"14px",lineHeight:"18px"},P4:{fontSize:"12px",lineHeight:"16px"},H0:{fontSize:"96px",lineHeight:"110px"},H1:{fontSize:"72px",lineHeight:"83px"},H2:{fontSize:"56px",lineHeight:"64px"},H3:{fontSize:"32px",lineHeight:"38px"},H4:{fontSize:"24px",lineHeight:"30px"},H5:{fontSize:"18px",lineHeight:"24px"},H6:{fontSize:"14px",lineHeight:"18px"}},fontFamilies:{TikTokFont:"TikTokFont, Arial, Tahoma, PingFangSC, sans-serif",TikTokDisplayFont:"TikTokDisplayFont, Arial, Tahoma, PingFangSC, sans-serif"},fontWeights:{normal:400,medium:500,semiBold:600,bold:700}};function u(e,t){var n;const i=Object.create(null);for(const[o,a]of Object.entries(e)){const e=t[o];i[o]="object"==typeof e?u(a,e):null!==(n=t[o])&&void 0!==n?n:a}return i}function p(e){const{isDark:t,isMobile:n,lang:i}=e,o={};return t&&(o.colors=r.J,o.isDark=!0),n&&(o.typography=l),"vi-VN"===i?o.fontFamilies=s:"ar"!==i&&"he-IL"!==i&&"ur"!==i||(o.direction="rtl"),o.isMobile=n,u(d,o)}var v;!function(e){e.System="system",e.Auto="auto",e.Dark="dark",e.Light="light"}(v||(v={}));const g=(0,a.createContext)({value:!1,toggle:o(),currentThemeOption:"light",setCurrentThemeOption:o()})},72153:(e,t,n)=>{"use strict";n.d(t,{AB:()=>a,Ee:()=>g,PR:()=>s,RE:()=>f,WA:()=>d,WB:()=>u,hj:()=>o,jJ:()=>v,m4:()=>l,mp:()=>h,oO:()=>c,t7:()=>_,uF:()=>i,zy:()=>r});const i=60,o=1150,a={":hover, :active, :link":{textDecoration:"none"}};function r({theme:e,typography:t,color:n,fontFamily:i,fontWeight:o,isLink:a=!1}){const r=a&&n?{":hover, :active, :link, :visited":{color:e.colors[n]}}:null;let s;return t&&(s=Number(e.typography[t].fontSize.replace("px",""))<20?e.fontFamilies.TikTokFont:e.fontFamilies.TikTokDisplayFont),[{color:n&&e.colors[n],fontFamily:null!=s?s:i,fontWeight:o&&e.fontWeights[o]},t?e.typography[t]:void 0,r]}const s={textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},l=e=>({display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis",lineClamp:e,boxOrient:"vertical",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}),c=({theme:e,isUiOptimise:t=!1})=>t?{backgroundColor:e.colors.ConstBGInverse4,":hover":{backgroundColor:e.colors.ConstBGInverse3}}:{},d={border:"none",background:"none",outline:"none",padding:0},u=e=>({position:"absolute",left:"0",[e]:"0",width:"100%",height:"1px",transform:"scaleY(0.5)"});var p;function v(...e){return e.map((({max:e,min:t,orientation:n,minAspectRatio:i,aspectRatio:o,maxAspectRatio:a,style:r={}})=>{if(!e&&!t&&!o)return{};let s="@media screen";return"number"==typeof t&&(s+=` and (min-width: ${t}px)`),"number"==typeof e&&(s+=` and (max-width: ${e}px)`),"string"==typeof n&&(s+=` and (orientation: ${n})`),"string"==typeof i&&(s+=` and (min-aspect-ratio: ${i})`),"string"==typeof o&&(s+=` and (aspect-ratio: ${o})`),"string"==typeof a&&(s+=` and (max-aspect-ratio: ${a})`),{[s]:r}}))}function g(...e){return e.map((({max:e,min:t,orientation:n,minAspectRatio:i,aspectRatio:o,maxAspectRatio:a,style:r={}})=>{if(!e&&!t&&!o)return{};let s="@media screen";return"number"==typeof t&&(s+=` and (min-height: ${t}px)`),"number"==typeof e&&(s+=` and (max-height: ${e}px)`),"string"==typeof n&&(s+=` and (orientation: ${n})`),"string"==typeof i&&(s+=` and (min-aspect-ratio: ${i})`),"string"==typeof o&&(s+=` and (aspect-ratio: ${o})`),"string"==typeof a&&(s+=` and (max-aspect-ratio: ${a})`),{[s]:r}}))}!function(e){e[e.Laptop=1920]="Laptop",e[e.MediumScreen=1536]="MediumScreen",e[e.HeaderWidth=1080]="HeaderWidth",e[e.NarrowLaptop=1072]="NarrowLaptop",e[e.LandscapePad=992]="LandscapePad",e[e.Pad=768]="Pad",e[e.Phone=480]="Phone"}(p||(p={}));const m={ltr:{end:"right",start:"left",marginEnd:"marginRight",marginStart:"marginLeft",paddingEnd:"paddingRight",paddingStart:"paddingLeft"},rtl:{end:"left",start:"right",marginEnd:"marginLeft",marginStart:"marginRight",paddingEnd:"paddingLeft",paddingStart:"paddingRight"}};function h({direction:e,marginEnd:t,marginStart:n,end:i,start:o,textAlign:a,paddingEnd:r,paddingStart:s}){const l=m[e],c={};return a&&(c.textAlign=_(e,a)),t&&(c[l.marginEnd]=t),n&&(c[l.marginStart]=n),o&&(c[l.start]=o),i&&(c[l.end]=i),r&&(c[l.paddingEnd]=r),s&&(c[l.paddingStart]=s),c}function _(e,t){return m[e][t]}function f({theme:e,hover:t=e.colors.BGView,active:n=e.colors.BGInput}){return{transition:"background ease-in-out 200ms",":hover":{background:t},":active":{background:n}}}},97397:(e,t,n)=>{"use strict";n.d(t,{y:()=>h});var i=n(58632),o=n(24643),a=n(40099),r=n(45446),s=n(81322),l=n(62186);const c="rgb(208, 209, 211)",d=({theme:e,buttonTheme:t})=>{switch(t){case"default":return{borderWidth:"1px",borderStyle:"solid",borderRadius:"4px",color:e.colors.TextPrimary,borderColor:e.colors.LineSecondary2,backgroundColor:e.colors.BGSecondary2,":hover":{borderColor:c,backgroundColor:e.colors.BGCreation3},":active":{borderColor:c,backgroundColor:e.colors.BGMessageIcon},":disabled":{borderColor:"rgb(227, 227, 229)",backgroundColor:e.colors.BGSecondary2,color:e.colors.TextQuaternary}};case"line":return{borderWidth:"1px",borderStyle:"solid",borderRadius:"4px",color:e.colors.Primary,borderColor:e.colors.Primary,backgroundColor:e.colors.BGSecondary2,":hover":{backgroundColor:"rgba(254, 44, 85, 0.06)"},":active":{backgroundColor:"rgba(254, 44, 85, 0.16)"},":disabled":{borderColor:e.colors.LineSecondary2,backgroundColor:e.colors.BGSecondary2,color:e.colors.TextQuaternary,pointerEvents:"none"}};case"primary":return{borderRadius:"4px",border:"none",color:e.colors.ConstTextInverse,backgroundColor:e.colors.Primary,":hover":{background:"linear-gradient(0deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.06)), #FE2C55"},":active":{background:"linear-gradient(0deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)), #FE2C55"},":disabled":{border:"none",color:e.colors.TextQuaternary,backgroundColor:e.colors.BGInput2,pointerEvents:"none"}};case"round":return{borderRadius:"52px",border:"none",color:e.colors.ConstTextInverse,backgroundColor:e.colors.ToastDefault,":hover":{},":active":{},":disabled":{}};default:return{":hover":{},":active":{},":disabled":{}}}},u=({theme:e,buttonTheme:t})=>{const n=t=>({":focus-visible":{outline:`2px solid ${null!=t?t:e.colors.Negative}`,outlineOffset:"1px"}});switch(t){case"default":case"round":case"line":default:return n();case"primary":return n("rgba(24, 27, 105, 1.0)")}},p="TikTokFont, PingFangSC, sans-serif",v="TikTokDisplayFont, PingFangSC, sans-serif",g={largeNew:{minWidth:"120px",minHeight:"46px",fontSize:"16px",lineHeight:"22px",fontWeight:700,fontFamily:p},large:{minWidth:"168px",minHeight:"48px",fontSize:"18px",lineHeight:"25px",fontWeight:600,fontFamily:v},medium:{minWidth:"164px",minHeight:"36px",fontSize:"18px",lineHeight:"25px",fontWeight:600,fontFamily:v},small:{minWidth:"106px",minHeight:"28px",fontSize:"16px",lineHeight:"22px",fontWeight:600,fontFamily:p},tiny:{minWidth:"96px",minHeight:"28px",fontFamily:p,fontSize:"14px",lineHeight:"17px",fontWeight:600}},m=(0,l.default)("button",{shouldForwardProp:e=>(0,s.A)(e)&&"loading"!==e,target:"ehk74z00"})((({buttonTheme:e="default",size:t="large",theme:n,loading:i=!1})=>[d({theme:n,buttonTheme:e}),g[t],{display:"flex",position:"relative",alignItems:"center",justifyContent:"center",padding:"6px 8px",userSelect:"none",cursor:"pointer",boxSizing:"border-box",":focus":{outline:"none"}},Object.assign({},i?{color:"transparent",pointerEvents:"none"}:{}),u({theme:n,buttonTheme:e})]),"label:Button;"),h=(0,a.memo)((function(e){var{buttonTheme:t,size:n,type:a="button",loading:s=!1,loadingTheme:l="primary",loadingSize:c="medium",loadingFill:d,children:u,e2eTag:p}=e,v=(0,i.__rest)(e,["buttonTheme","size","type","loading","loadingTheme","loadingSize","loadingFill","children","e2eTag"]);return(0,o.jsxs)(m,Object.assign({type:a,buttonTheme:t,loading:s,size:n,"data-e2e":p},v,{children:[u,s&&(0,o.jsx)(r.h,{style:{position:"absolute",top:"50%",transform:"translateY(-50%)"},theme:l,size:c,fill:d})]}))}))},45446:(e,t,n)=>{"use strict";n.d(t,{h:()=>p});var i=n(24643),o=n(67518),a=n(40099),r=n(75431),s=n(62186);const l=(0,s.default)("div",{target:"ef2t4c20"})((({center:e})=>({display:"flex",flexDirection:"column",alignItems:e?"center":"flex-start"})),"label:DivContainer;"),c=(0,r.i7)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),d=(0,s.default)("svg",{target:"ef2t4c21"})({margin:"0 !important",fill:"none",animation:`${c} 1s linear infinite`},"label:SvgBox;"),u={small:16,medium:18,large:20},p=(0,a.memo)((function({theme:e="primary",size:t="medium",center:n=!1,style:r={},fill:s=""}){const{colors:c}=(0,o.u)(),p=(0,a.useMemo)((()=>{const{BGCreation:t,BGPrimary:n,Primary:i}=c;return s||{white:t,primary:n,transparent:i}[e]}),[c,s,e]),v="string"==typeof t?u[t]:t,g=Object.assign(Object.assign({},r),{width:v,height:v});return(0,i.jsx)(l,Object.assign({center:n,style:g},{children:(0,i.jsx)(d,Object.assign({width:v,height:v,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",fill:p,d:"M0 9C0 4.02944 4.02944 0 9 0C13.9706 0 18 4.02944 18 9C18 9.82843 17.3284 10.5 16.5 10.5C15.6716 10.5 15 9.82843 15 9C15 5.68629 12.3137 3 9 3C5.68629 3 3 5.68629 3 9C3 12.3137 5.68629 15 9 15C10.415 15 11.7119 14.512 12.7375 13.6941C13.3852 13.1775 14.329 13.2838 14.8455 13.9315C15.3621 14.5792 15.2558 15.5229 14.6081 16.0395C13.0703 17.266 11.1188 18 9 18C4.02944 18 0 13.9706 0 9Z"})}))}))}))},84827:(e,t,n)=>{"use strict";n.d(t,{R:()=>f,W:()=>w});var i=n(58632),o=n(24643),a=n(40099),r=n(18499),s=n(75431),l=n(62186);const c=36,d=(0,s.i7)({"25%":{cx:100,r:1.2*c},"50%":{cx:140,r:c},"75%":{cx:100,r:.6*c},"100%":{cx:60,r:c}}),u=(0,s.i7)({"25%":{cx:100,r:24},"50%":{cx:60,r:c},"75%":{cx:100,r:1.2*c},"100%":{cx:140,r:c}});var p;!function(e){e[e.Red=0]="Red",e[e.Green=1]="Green",e[e.Black=2]="Black"}(p||(p={}));const v={strokeWidth:0,r:c,cy:99},g={0:{fill:"#fe2c55",cx:128,animation:`${u} 1s cubic-bezier(.05, 0, 1, 1) infinite`},1:{fill:"#3af2ff",cx:60,animation:`${d} 1s cubic-bezier(.05, 0, 1, 1) infinite`},2:{fill:"#0f0f0f",cx:60,animation:`${d} 1s cubic-bezier(.05, 0, 1, 1) infinite`}},m=(0,l.default)("circle",{target:"e1ugmybf0"})((({circleType:e,isBlack:t})=>[v,g[e],t?{fill:"#000"}:null]),"label:Circle;"),h=(0,l.default)("svg",{target:"e1ugmybf1"})({display:"block"},(({center:e})=>e?{margin:"6px auto"}:null),"label:SvgContainer;"),_={default:48,small:32},f=(0,a.memo)((0,a.forwardRef)((function(e,t){var{size:n=48,center:a=!1,maskKey:r=Date.now()}=e,s=(0,i.__rest)(e,["size","center","maskKey"]);const l="string"==typeof n?_[n]:n;return(0,o.jsxs)(h,Object.assign({center:a,preserveAspectRatio:"none",viewBox:"0 0 200 200",width:l,height:l},s,{ref:t},{children:[(0,o.jsxs)("defs",{children:[(0,o.jsxs)("mask",Object.assign({id:`redhole-${r}`},{children:[(0,o.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,o.jsx)(m,{circleType:0,isBlack:!0})]})),(0,o.jsxs)("mask",Object.assign({id:`greenhole-${r}`},{children:[(0,o.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,o.jsx)(m,{circleType:1,isBlack:!0})]}))]}),(0,o.jsx)(m,{strokeWidth:2,stroke:"#3AF2FF",circleType:2}),(0,o.jsx)(m,{circleType:1,mask:`url(#redhole-${r})`}),(0,o.jsx)(m,{circleType:0,mask:`url(#greenhole-${r})`})]}))})));let y=null;function b(e){var t;return y||(y=document.createElement("div"),y.style.cssText="display: inline-block; position: fixed; left: calc(50% - 15px); top: 38%; z-index: 100",(e&&null!==(t=document.querySelector(e))&&void 0!==t?t:document.body).appendChild(y)),y}const w={show:e=>r.render((0,o.jsx)(f,{size:30}),b(e)),hide:()=>y?r.unmountComponentAtNode(b()):void 0}},11328:(e,t,n)=>{"use strict";n.d(t,{EA:()=>f,NH:()=>w,aw:()=>y,eg:()=>b,sH:()=>x});var i=n(58632),o=n(24643),a=n(75431),r=n(62186),s=n(72153);const l=(0,a.i7)({"0%":{backgroundPositionX:"200%"},"100%":{backgroundPositionX:"-150%"}}),c=(0,r.default)("div",{target:"e12rwi320"})((({theme:{colors:e}})=>({backgroundColor:e.BGPlaceholderDefault,borderRadius:"4px",backgroundImage:"linear-gradient(90deg, rgba(22, 24, 35, 0) 0%, rgba(22, 24, 35, .04) 50%, rgba(22, 24, 35, 0) 100%)",backgroundSize:"200% 100%",backgroundRepeat:"no-repeat",width:"100%",height:"100%"})),"label:DivBaseComponent;"),d=(0,r.default)("div",{target:"e12rwi321"})({width:"100%"},"label:DivComponent;"),u=(0,r.default)(c,{target:"e12rwi322"})({borderRadius:"100%",animation:`${l} cubic-bezier(0, 0, 1, 1) 1.5s infinite`},"label:StyledAvatar;"),p=(0,r.default)(c,{target:"e12rwi323"})({height:"16px",width:"40%",animation:`${l} cubic-bezier(0, 0, 1, 1) 1.5s infinite`},"label:StyledTitle;"),v=(0,r.default)(c,{target:"e12rwi324"})((({theme:e})=>[{backgroundColor:"transparent",backgroundImage:"unset"},(0,s.mp)({direction:e.direction})]),"label:StyledParagraph;"),g=(0,r.default)(c,{target:"e12rwi325"})((({shrinkLastLine:e=!0})=>({height:"12px",animation:`${l} cubic-bezier(0, 0, 1, 1) 1.5s infinite`,":last-child":{width:e?"60%":"100%",marginTop:"12px"},":not(:last-child)":{marginBottom:"8px"}})),"label:StyledParagraphLine;"),m=(0,r.default)(c,{target:"e12rwi326"})({minHeight:"100px",animation:`${l} cubic-bezier(0, 0, 1, 1) 1.5s infinite`},"label:StyledVideoCover;"),h=(0,r.default)(c,{target:"e12rwi327"})({height:"36px",width:"164px",animation:`${l} cubic-bezier(0, 0, 1, 1) 1.5s infinite`},"label:StyledButton;"),_=(0,r.default)(c,{target:"e12rwi328"})({height:"36px",width:"164px",animation:`${l} cubic-bezier(0, 0, 1, 1) 1.5s infinite`},"label:StyledTextBox;");function f(e){const{children:t,style:n,className:a}=e,r=(0,i.__rest)(e,["children","style","className"]);return(0,o.jsx)(d,Object.assign({style:n,className:a},r,{children:t}))}function y(e){const{lines:t=2,shrinkLastLine:n=!0,style:a,className:r}=e,s=(0,i.__rest)(e,["lines","shrinkLastLine","style","className"]),l=[];for(let e=0;e{"use strict";n.d(t,{F:()=>y});var i=n(24643),o=(n(57432),n(93545)),a=n(66283),r=n(75431),s=n(62186);const l=(0,r.i7)({"0%":{transform:"translateY(0%)",transformOrigin:"0 0",opacity:"1"},"100%":{transform:"translateY(-100%)",transformOrigin:"0 0",opacity:"0"}}),c=(0,r.i7)({"0%":{transform:"translateY(-100%)",transformOrigin:"0 0",opacity:"0"},"100%":{transform:"translateY(0%)",transformOrigin:"0 0",opacity:"1"}}),d=(0,a.AH)({"&-enter":{opacity:"0"},"&-enter-active":{animationName:c,animationDuration:"0.3s"},"&-leave-active":{animationName:l,animationDuration:"0.3s"}}),u=(0,a.AH)({fontFamily:"TikTokFont, PingFangSC, sans-serif",fontWeight:600,position:"fixed",top:"16px",left:"0px",color:"#fff",zIndex:3003,width:"100%",pointerEvents:"none",userSelect:"none","&-notice":{padding:"8px 0",textAlign:"center",":first-of-type":{marginTop:"-8px"}},"&-notice-content":{backgroundColor:"rgba(84, 84, 84, 0.92)",display:"inline-block",padding:"10px 8px",pointerEvents:"all",maxWidth:"100%",borderRadius:"2px"}}),p={auto:{},full:{width:"100vw",borderRadius:"0"},padding:{width:"calc(100vw - 40px)",margin:"0 auto"},half:{width:"50vw"}},v=(0,s.default)("div",{target:"e1wz89c90"})((({widthType:e="auto",isRTL:t})=>[p[e],{direction:t?"rtl":"ltr"}]),"label:DivMessageContainer;");let g,m=[],h=1;const _={prefixCls:u,transitionName:d,style:{top:void 0},getContainer:void 0,maxCount:void 0,type:"default"},f={success:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3Ljg0MDQgNi44NTk4NkMxOC4wMzc3IDYuNjYyMDcgMTguMzU4NyA2LjY2NDI1IDE4LjU1MzMgNi44NjQ3MUwxOS40NTc0IDcuNzk2MjlDMTkuNjQ3NSA3Ljk5MjE3IDE5LjY0NTQgOC4zMDQzMiAxOS40NTI2IDguNDk3NTlMMTAuNTU4MiAxNy40MTYzQzEwLjEwNSAxNy44NzA3IDkuMzczMzMgMTcuODU5NiA4LjkzMzY2IDE3LjM5MTZMNC44MzY4MSAxMy4wMzA2QzQuNjQ5OTEgMTIuODMxNyA0LjY1NzExIDEyLjUxOTYgNC44NTI5OSAxMi4zMjk1TDUuNzgzNzQgMTEuNDI2MUM1Ljk4NDE4IDExLjIzMTUgNi4zMDUxNCAxMS4yMzg5IDYuNDk2MzkgMTEuNDQyNUw5Ljc4MjE0IDE0Ljk0MDFMMTcuODQwNCA2Ljg1OTg2WiIgZmlsbD0iIzBCRTA5QiIvPgo8L3N2Zz4K",fail:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iMjYiIHZpZXdCb3g9IjAgMCAyNiAyNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNDY4IDEzTDcuMjAwNCA4LjczMjM4QzYuOTg4ODYgOC41MjA4NSA2Ljk4ODg2IDguMTc3ODggNy4yMDA0IDcuOTY2MzVMNy45NjY0MyA3LjIwMDMyQzguMTc3OTcgNi45ODg3OCA4LjUyMDkzIDYuOTg4NzggOC43MzI0NiA3LjIwMDMyTDEzLjAwMDEgMTEuNDY3OUwxNy4yNjc3IDcuMjAwMzJDMTcuNDc5MiA2Ljk4ODc4IDE3LjgyMjIgNi45ODg3OCAxOC4wMzM3IDcuMjAwMzJMMTguNzk5OCA3Ljk2NjM1QzE5LjAxMTMgOC4xNzc4OCAxOS4wMTEzIDguNTIwODUgMTguNzk5OCA4LjczMjM4TDE0LjUzMjEgMTNMMTguNzk5OCAxNy4yNjc2QzE5LjAxMTMgMTcuNDc5MiAxOS4wMTEzIDE3LjgyMjEgMTguNzk5OCAxOC4wMzM3TDE4LjAzMzcgMTguNzk5N0MxNy44MjIyIDE5LjAxMTIgMTcuNDc5MiAxOS4wMTEyIDE3LjI2NzcgMTguNzk5N0wxMy4wMDAxIDE0LjUzMjFMOC43MzI0NiAxOC43OTk3QzguNTIwOTMgMTkuMDExMiA4LjE3Nzk3IDE5LjAxMTIgNy45NjY0MyAxOC43OTk3TDcuMjAwNCAxOC4wMzM3QzYuOTg4ODYgMTcuODIyMSA2Ljk4ODg2IDE3LjQ3OTIgNy4yMDA0IDE3LjI2NzZMMTEuNDY4IDEzWiIgZmlsbD0iI0ZGNEMzQSIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwIj4KPHJlY3Qgd2lkdGg9IjI2IiBoZWlnaHQ9IjI2IiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo="},y={open:function(e){const t=void 0!==e.duration?e.duration:3,n=e.key||h++,a=new Promise((a=>{var r,s;const l={key:n,duration:t,className:e.className,content:(0,i.jsxs)(v,Object.assign({isRTL:e.isRTL,widthType:e.widthType,"data-e2e":e.e2eTag,role:"alert",style:Object.assign({display:"flex",justifyContent:"center",alignItems:"center"},null!==(r=e.style)&&void 0!==r?r:{})},{children:[e.type&&"default"!==e.type&&(0,i.jsx)("img",{src:f[e.type],style:Object.assign({width:"24px",height:"24px"},e.isRTL?{marginLeft:"8px"}:{marginRight:"8px"}),"aria-hidden":"true"}),(0,i.jsx)("span",{children:e.content})]})),onClose:()=>("function"==typeof e.onClose&&e.onClose(),a(!0))};var c;e.getContainer?o.A.newInstance(Object.assign(Object.assign({},_),{style:{position:null!==(s=e.getContainerPosition)&&void 0!==s?s:"absolute",top:void 0},getContainer:e.getContainer}),(e=>{e.notice(l),m.push(e)})):(c=e=>{e.notice(l)},g?c(g):o.A.newInstance(Object.assign({},_),(e=>{g?c(g):(g=e,c(e),m.push(e))})))})),r=()=>{g&&g.removeNotice(n)};return r.then=(e,t)=>a.then(e,t),r.promise=a,r},destroy(){g&&(g.destroy(),g=null),m.length>0&&(m.forEach((e=>e.destroy())),m=[])}}},31209:(e,t,n)=>{"use strict";n.d(t,{i:()=>l});var i=n(40438),o=n(71111),a=n(40099),r=n(17995),s=n(98796);function l(e,t){const n=(t,...n)=>{var o;if("__SIGI_MODULE__"in e&&"init"in e){const a=(0,i.L)(),{store:r}=null!==(o=a.getInstance(e.__SIGI_MODULE__))&&void 0!==o?o:{};if(r){let i=n[0];"function"==typeof i&&(i=i(t.get(e))),r.state$.next(i)}}},l=(t,n)=>{const{equalityFn:i=Object.is}="function"==typeof n?{equalityFn:n}:null!=n?n:{};return(0,s.X)(e,{selector:t,equalityFn:i})},c=()=>{const i=(0,o.useStore)(),r=(0,a.useCallback)(((t,...o)=>{if(!("write"in e))throw new Error("not writable atom");return n(i,...o),i.set(t,...o)}),[i]),s=(0,a.useCallback)((e=>i.get(e)),[i]);return(0,a.useMemo)((()=>{const e={},n=t(s,r);for(const t of Object.keys(n))e[t]=n[t].bind(n);return e}),[s,r])},d=new WeakMap;return{useServiceState:l,useServiceDispatchers:c,useAtomService:(e,t)=>[l(e,t),c()],getStaticApi:i=>{const o=null!=i?i:(0,r.LM)();let a=d.get(o);if(a)return a;const{get:s,set:l,sub:c}=o,u=t(s,((e,...t)=>(n(o,...t),l(e,...t))));return a=Object.assign({},u,{get:s,set:l,sub:t=>c(e,t)}),d.set(o,a),a}}}},17995:(e,t,n)=>{"use strict";n.d(t,{J7:()=>u,LM:()=>v,ZB:()=>m,sF:()=>g});var i=n(58632),o=n(24643),a=n(50830),r=n(42051),s=n(67192),l=n(40438),c=n(71111),d=n(1569);const u=new a.n("jotaiStore");let p=class{constructor(e){this.jotaiStore=e}getJotaiStore(){return this.jotaiStore}};function v(){return(0,l.L)().getInstance({provide:u,useExisting:u})}function g(e){u.__IS_STORE_SET__||(s.l.addProvider({provide:u,useValue:e}),s.l.addProvider({useClass:p,provide:p}),u.__IS_STORE_SET__=!0)}function m(e,t){const{jotaiStore:n}=null!=t?t:{},i=null!=n?n:(0,d.S)();return g(i),()=>(0,o.jsx)(c.Provider,Object.assign({store:i},{children:e}))}p=(0,i.__decorate)([(0,i.__param)(0,(0,r.y)(u)),(0,i.__metadata)("design:paramtypes",[Object])],p)},44241:(e,t,n)=>{"use strict";n.d(t,{S:()=>o,d:()=>i});const i=Symbol("BASE_DATA_ATOM_KEY"),o=Symbol("HYDRATION_TOGGLE_PROP")},98796:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});var i=n(71111),o=n(7570),a=n(32125);function r(e,t){const n=(0,i.useStore)(t),{equalityFn:r=Object.is,selector:s}=null!=t?t:{},l=null!=s?s:e=>e,c=()=>n.get(e),d=(0,o.useSyncExternalStoreWithSelector)((t=>n.sub(e,t)),c,c,l,r);return(0,a.$X)(d)?(0,a.Yx)(d):d}},32125:(e,t,n)=>{"use strict";n.d(t,{$X:()=>l,Yx:()=>c,bN:()=>s,pj:()=>a,xb:()=>r});var i=n(40099),o=n(44241);function a(e){return e[o.d]}function r(e,t){return Object.assign(Object.assign({},e),{atomState:t})}function s(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[n,i]of e)if(!Object.is(i,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let i=0;i"function"==typeof(null==e?void 0:e.then),c=i.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)})},50296:(e,t,n)=>{"use strict";n.d(t,{L:()=>r,S:()=>a});const i=new WeakMap,o=e=>{let t=i.get(e);return t||(t=new WeakSet,i.set(e,t)),t},a=(e,t)=>{const n=o(e);for(const[i,o]of t)n.has(i)||(n.add(i),e.set(i,o))},r=(e,t,n)=>{const i=o(e);i.has(t)||(i.add(t),e.set(t,n))}},14374:(e,t,n)=>{"use strict";n.d(t,{_:()=>s});var i=n(66476),o=n(17995),a=n(50296);const r=Symbol("REHYDRATED_FROM_SSR"),s=(e,{rehydrationKey:t})=>{if(!("init"in e))throw new Error("Only primitive atom can be hydrated");{e.rehydrationKey=t;const n=e.read.bind(e),s=function(){var e,t;if(!window[i.DA]){let n={};try{n=JSON.parse(null!==(t=null===(e=document.getElementById(i.xD))||void 0===e?void 0:e.textContent)&&void 0!==t?t:"{}"),window[i.DA]=n}catch(e){console.error("error while parsing rehydration data"),window[i.DA]={}}}return window[i.DA][i.LH]}();(null==s?void 0:s[e.rehydrationKey])&&(e[r]=!0),e.read=(t,i)=>{if(s){const t=s[e.rehydrationKey];if(t){const n=e;(0,a.L)((0,o.LM)(),n,t)}}return n(t,i)}}return e}},34360:(e,t,n)=>{"use strict";n.d(t,{y:()=>c});var i=n(40438),o=n(71111),a=n(57432),r=n.n(a),s=n(1475),l=n(17995);function c(e){const t=Symbol("null"),n=(0,o.atom)(t),a=(0,o.atom)((o=>{const s=o(n);if(a.__IS_SUBSCRIBED__||(a.__IS_SUBSCRIBED__=!0,(0,l.LM)().sub(a,r())),s===t){const t=(0,i.L)().getInstance(e),{store:n}=t;return n.state}return s}),((e,t,i)=>{t(n,i)}));return a.onMount=t=>{const n=(0,i.L)().getInstance(e),{store:o}=n,a=()=>{t(o.state)},r=o.state$.pipe((0,s.i)(1)).subscribe(a);return a(),()=>r.unsubscribe()},(0,o.atom)((e=>e(a)),((t,n,o,...a)=>{(0,i.L)().getInstance(e).dispatchers[o](...a)}))}},1569:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var i=n(88874),o=n(71111),a=n(50296);const r=()=>{const e=(0,o.createStore)();return Object.assign(Object.assign({},e),{get:t=>{if(t.rehydrationKey){const n=(0,i.YI)(t.rehydrationKey);if(n&&"init"in t){const i=t;(0,a.L)(e,i,n)}}return e.get(t)}})}},34832:(e,t,n)=>{"use strict";e.exports=n.p+"8c38d0bc3eca55cfff39.css"},28658:(e,t,n)=>{"use strict";e.exports=n.p+"7375f5127981271f6d74.css"}},e=>{e.O(0,[9443,1799,5956,8564,3699,1878,1888,3824,6534,1476,4121],(()=>e(e.s=61266))),e.O()}]);