!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="61693311-f4e9-4087-a9ea-3b4038a10701",e._sentryDebugIdIdentifier="sentry-dbid-61693311-f4e9-4087-a9ea-3b4038a10701")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8739],{4917:(e,t,s)=>{"use strict";s.d(t,{x:()=>c,A:()=>x});var r=s(6029),n=s(55575),i=s.n(n),l=s(95669),o=s.n(l),a=s(55729),d=s(947);let c=(0,a.createContext)({}),u=(e,t,s,r,n,i,l)=>s||(r||n?e.formatMessage({id:"".concat(t,".").concat(r||n),defaultMessage:l},i):l),x=e=>{let{titleKey:t,descriptionKey:s,keywordsKey:n,metaKey:l,values:x={},entityName:j}=e,{meta:p,seoContent:h}=(0,a.useContext)(c),m=(0,d.A)(),g=u(m,"title",(null==h?void 0:h.title)||(null==p?void 0:p.title),t,l,x,j?"".concat(j," | Sofascore"):"Sofascore"),y=u(m,"description",(null==h?void 0:h.description)||(null==p?void 0:p.description),s,l,x),v=u(m,"keywords",null==p?void 0:p.keywords,n,l,x);return(0,r.jsxs)(o(),{children:[(0,r.jsx)("title",{children:i()(g)}),y&&(0,r.jsx)("meta",{name:"description",content:y},"description"),v&&(0,r.jsx)("meta",{name:"keywords",content:v})]})}},9227:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var r=s(6029),n=s(98914),i=s(54529),l=s(76356);function o(e){let{credibilityScore:t,score:s,isOnColor:o}=e;return(0,r.jsxs)(l.so,{children:[(0,r.jsx)(i.EY,{minW:"4xl",color:o?"onColor.default":"neutrals.nLv1",textStyle:"table.medium",textAlign:"end",children:t?Math.floor(t):"-"}),(0,r.jsx)(i.EY,{minW:"4xl",color:o?"onColor.default":"primary.default",textStyle:"table.medium",textAlign:"end",children:s?(0,n.M)(s):"-"})]})}},11166:(e,t,s)=>{"use strict";s.d(t,{_:()=>d,q:()=>c});var r=s(6029),n=s(54529),i=s(76356),l=s(90248),o=s(46222);function a(e){let{isCard:t,children:s}=e;return t?(0,r.jsxs)(o.Zp,{children:[(0,r.jsx)(o.Zp.Header,{titleId:"profile_leaderboards_your_stats"}),(0,r.jsx)(i.az,{pt:"sm",pb:"lg",px:"lg",children:s})]}):(0,r.jsx)(r.Fragment,{children:s})}function d(e){let{isCard:t,rank:s,header:d,children:c}=e,u=void 0===s||"string"==typeof s&&isNaN(+s)?"":"#";return(0,r.jsx)(a,{isCard:t,children:(0,r.jsxs)(o.Zp,{children:[(0,r.jsxs)(i.so,{justify:"space-between",borderBottom:"neutrals.nLv4",p:"lg",children:[(0,r.jsx)(n.EY,{textStyle:"table.medium",color:"neutrals.nLv3",pe:"sm",truncate:!0,children:(0,r.jsx)(l.A,{id:"profile_current_rank"})}),d]}),(0,r.jsxs)(i.so,{py:"md",px:"lg",justify:"space-between",align:"center",children:[(0,r.jsxs)(n.EY,{display:"block",me:"md",w:"[22px]",children:[u,null!=s?s:"-"]}),c]})]})})}function c(e){let{id:t,isCard:s}=e;return(0,r.jsx)(a,{isCard:s,children:(0,r.jsx)(o.WC,{variant:"inverse-desktop",children:(0,r.jsx)(o.Zp,{children:(0,r.jsx)(i.so,{align:"center",justify:"center",h:"[89px]",children:(0,r.jsx)(n.EY,{textStyle:"body.mediumParagraph",color:"neutrals.nLv3",children:(0,r.jsx)(l.A,{id:t})})})})})})}},13893:(e,t,s)=>{"use strict";s.d(t,{V:()=>x});var r=s(6029),n=s(54529),i=s(76356),l=s(90248),o=s(46222),a=s(52466),d=s(64006),c=s(55112),u=s(95084);let x=e=>{let{location:t}=e;return(0,r.jsx)(d.N_,{routeKey:"user.weeklyChallenge",onClick:()=>{(0,u.Wk)({type:"weekly_challenge",location:t})},children:(0,r.jsx)(o.Zp,{children:(0,r.jsxs)(i.so,{gap:"md",py:"md",px:"sm",align:"center",justify:"space-between",children:[(0,r.jsx)(n._V,{h:"4xl",w:"[70px]",src:"/static/images/weekly-challenge/predictions-cta.svg",alt:"Weekly challenge trophies"}),(0,r.jsxs)(i.BJ,{gap:"xs",flexGrow:1,children:[(0,r.jsx)(n.EY,{textStyle:"display.medium",children:(0,r.jsx)(l.A,{id:"weekly_challenge"})}),(0,r.jsx)(n.EY,{textStyle:"body.small",color:"neutrals.nLv3",children:(0,r.jsx)(c.k,{})})]}),(0,r.jsx)(n.K0,{variant:"clear",size:"primary",children:(0,r.jsx)(a.CCT,{})})]})})})}},16419:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},18645:(e,t,s)=>{"use strict";s.d(t,{eD:()=>i.e,pY:()=>n.p,tg:()=>r.t});var r=s(91407),n=s(91603),i=s(33480)},24591:(e,t,s)=>{"use strict";s.d(t,{G:()=>l});var r=s(6029),n=s(54529),i=s(76356);let l=e=>{let{currentStats:t,isOnColor:s}=e,l=s?"onColor.default":"neutrals.nLv1";return(0,r.jsxs)(i.so,{gap:"sm",children:[(0,r.jsx)(n.Ym,{minW:"[40px]",color:l,textStyle:"table.medium",textAlign:"center",children:t.total}),(0,r.jsx)(n.Ym,{minW:"[40px]",color:l,textStyle:"table.medium",textAlign:"center",children:t.percentage}),(0,r.jsxs)(n.Ym,{minW:"[40px]",color:l,textStyle:"table.medium",textAlign:"center",children:[t.roi>0?"+":"",t.roi]})]})}},25597:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var r=s(6029),n=s(494),i=s(22116),l=s(24591),o=s(64177),a=s(11166);function d(e){let{userAccount:t,isCard:s}=e,d=(0,n.d4)(i.$F),c=t||d;if(!c)return null;let u=null==c?void 0:c.voteStatistics.current;return u&&0!=+u.total?(0,r.jsx)(a._,{isCard:s,rank:u.ranking,header:(0,r.jsx)(o.V,{}),children:(0,r.jsx)(l.G,{currentStats:u})}):(0,r.jsx)(a.q,{id:"profile_leaderboards_no_predictions",isCard:s})}},27869:(e,t,s)=>{e.exports=s(14165)({"&":"&","<":"<",">":">",""":'"',"'":"'"})},44229:(e,t,s)=>{"use strict";s.d(t,{A:()=>d,u:()=>a});var r=s(6029),n=s(54529),i=s(76356),l=s(90248),o=s(79213);let a=()=>(0,r.jsxs)(i.so,{gap:"sm",children:[(0,r.jsx)(n.EY,{color:"neutrals.nLv3",textStyle:"table.medium",alignItems:"right",truncate:!0,children:(0,r.jsx)(l.A,{id:"contribution_profile_reputation_score_leaderboard"})}),(0,r.jsx)(i.cG,{orientation:"vertical"}),(0,r.jsx)(n.EY,{color:"neutrals.nLv3",textStyle:"table.medium",alignItems:"right",truncate:!0,children:(0,r.jsx)(l.A,{id:"points"})})]});function d(){return(0,r.jsx)(o.A,{children:(0,r.jsx)(a,{})})}},45906:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>m});var r=s(6029),n=s(14092),i=s(54529),l=s(76356),o=s(95669),a=s.n(o),d=s(947),c=s(90248),u=s(52466),x=s(6813),j=s(25246),p=s(20945),h=s(64006);function m(e){let{statusCode:t}=e;n.O({statusCode:t});let s=(0,d.A)().formatMessage({id:404===t?"error.pageNotFound":"error.anErrorOccurred"});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(a(),{children:[(0,r.jsx)("title",{children:"".concat(t," | ").concat(s||"")}),(0,r.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,r.jsx)("div",{id:"errorPage",children:(0,r.jsx)(j.YW,{children:(0,r.jsx)(p.xA,{children:(0,r.jsx)(p.fv,{flexGrow:1,textAlign:"center",my:"2xl",children:(0,r.jsx)(x.p,{graphic:"no-connection",children:(0,r.jsxs)(l.BJ,{children:[(0,r.jsx)(i.H1,{textStyle:"display.extraLarge",color:"neutrals.nLv3",alignSelf:"center",mt:"[28px]",mb:"2xs",children:t}),(0,r.jsx)(i.H3,{display:"block",textStyle:"display.medium",color:"neutrals.nLv3",alignSelf:"center",children:(0,r.jsx)(c.A,{id:"error.anErrorOccurred"})}),(0,r.jsx)(i.EY,{alignSelf:"center",mb:"2xl",display:"block",children:404===t?(0,r.jsx)(c.A,{id:"error.pageCannotBeFound"}):(0,r.jsx)(c.A,{id:"error.somethingWrongWithPage"})}),(0,r.jsx)(h.N_,{routeKey:"home",children:(0,r.jsxs)(i.$n,{children:[(0,r.jsx)(u.pa2,{mt:"-3px"})," ",(0,r.jsx)(c.A,{id:"error.backToSofascore"})]})})]})})})})})})]})}m.getInitialProps=async e=>{await n.O(e);let{res:t,err:s}=e;return{statusCode:t?t.statusCode:s?s.statusCode:null}}},54519:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/profile",function(){return s(91639)}])},55112:(e,t,s)=>{"use strict";s.d(t,{k:()=>a});var r=s(6029),n=s(19501),i=s(90248),l=s(45860),o=s(29742);let a=()=>{let e=(()=>{var e;let{data:t}=(0,l.Ay)(n.rGM.activeLeagueDetails());if(!(null==t?void 0:t.meta))return;let s=new Date().getTime(),r=(null==(e=t.meta)?void 0:e.endDateTimestamp)*1e3;return{hasEnded:r{var r=s(60567),n=s(27869),i=/&(?:amp|lt|gt|quot|#39);/g,l=RegExp(i.source);e.exports=function(e){return(e=r(e))&&l.test(e)?e.replace(i,n):e}},59769:(e,t,s)=>{"use strict";s.d(t,{A:()=>a,I:()=>o});var r=s(6029),n=s(54529),i=s(90248),l=s(79213);let o=()=>(0,r.jsx)(n.EY,{color:"neutrals.nLv3",textStyle:"table.medium",textAlign:"end",truncate:!0,children:(0,r.jsx)(i.A,{id:"points"})});function a(){return(0,r.jsx)(l.A,{children:(0,r.jsx)(o,{})})}},64177:(e,t,s)=>{"use strict";s.d(t,{V:()=>c,c:()=>u});var r=s(6029),n=s(54529),i=s(76356),l=s(90248),o=s(494),a=s(37455),d=s(79213);let c=()=>{let e=(0,o.d4)(a.BF);return(0,r.jsxs)(i.so,{gap:"sm",children:[(0,r.jsx)(n.EY,{display:"block",color:"neutrals.nLv3",textStyle:"table.medium",textAlign:"end",truncate:!0,children:(0,r.jsx)(l.A,{id:"basic.voted"})}),(0,r.jsx)(i.cG,{orientation:"vertical"}),(0,r.jsx)(n.EY,{display:"block",color:"neutrals.nLv3",textStyle:"table.medium",textAlign:"end",truncate:!0,children:(0,r.jsx)(l.A,{id:"basic.correct"})}),(0,r.jsx)(i.cG,{orientation:"vertical"}),(0,r.jsx)(n.EY,{display:"block",color:"neutrals.nLv3",textStyle:"table.medium",textAlign:"end",truncate:!0,children:(0,r.jsx)(l.A,{id:e?"points":"virtual_roi_short"})})]})},u=()=>(0,r.jsx)(d.A,{children:(0,r.jsx)(c,{})})},68565:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var r=s(6029),n=s(494),i=s(22116),l=s(74839),o=s(59769),a=s(11166);function d(e){let{userAccount:t,isCard:s}=e,d=(0,n.d4)(i.$F),c=t||d;if(!c)return null;let u=null==c?void 0:c.userEditorScoreAggregates;return u?(0,r.jsx)(a._,{isCard:s,rank:u.currentRanking,header:(0,r.jsx)(o.I,{}),children:(0,r.jsx)(l.f,{score:u.score})}):(0,r.jsx)(a.q,{id:"profile_leaderboards_no_editor_stats",isCard:s})}},70344:(e,t,s)=>{"use strict";s.d(t,{n:()=>r.n});var r=s(78762)},70917:(e,t,s)=>{var r=s(74283),n=s(87567);e.exports=function(e){return null==e?[]:r(e,n(e))}},74283:(e,t,s)=>{var r=s(88601);e.exports=function(e,t){return r(t,function(t){return e[t]})}},74839:(e,t,s)=>{"use strict";s.d(t,{f:()=>l});var r=s(6029),n=s(98914),i=s(54529);let l=e=>{let{score:t,isOnColor:s}=e;return(0,r.jsx)(i.EY,{minW:"4xl",color:s?"onColor.default":"neutrals.nLv1",textStyle:"table.medium",textAlign:"end",children:(0,n.M)(t)})}},79213:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var r=s(6029),n=s(54529),i=s(76356),l=s(90248);function o(e){let{children:t}=e;return(0,r.jsxs)(i.so,{justify:"space-between",gap:"sm",p:"lg",children:[(0,r.jsxs)(i.so,{gap:"sm",overflow:"hidden",me:"sm",children:[(0,r.jsx)(n.EY,{color:"neutrals.nLv3",textStyle:"table.medium",w:"2xl",textAlign:"center",truncate:!0,children:"#"}),(0,r.jsx)(n.EY,{color:"neutrals.nLv3",textStyle:"table.medium",truncate:!0,children:(0,r.jsx)(l.A,{id:"nickname"})})]}),t]})}},81961:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var r=s(6029),n=s(494),i=s(22116),l=s(9227),o=s(44229),a=s(11166);function d(e){var t,s;let{userAccount:d,isCard:c}=e,u=(0,n.d4)(i.$F),x=d||u;if(!x)return null;if(!(x.userCrowdsourcingAggregates&&x.credibilityScore))return(0,r.jsx)(a.q,{id:"profile_leaderboards_no_contributions",isCard:c});let j=null==(t=x.userCrowdsourcingAggregates)?void 0:t.currentRanking;return(0,r.jsx)(a._,{isCard:c,rank:j,header:(0,r.jsx)(o.u,{}),children:(0,r.jsx)(l.A,{credibilityScore:x.credibilityScore,score:null==(s=x.userCrowdsourcingAggregates)?void 0:s.score})})}},91639:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>e0});var r=s(6029),n=s(19501),i=s(76356),l=s(55729),o=s(494),a=s(45860),d=s(25246),c=s(4917),u=s(78767),x=s(31591),j=s(20945),p=s(4464),h=s(26598),m=s(95404),g=s(23157),y=s(32523),v=s(54529),b=s(90248),f=s(46222),_=s(31956),A=s(94565),w=s(89827),S=s(47815);function k(e){let{stat:t,titleId:s,icon:n,skipFormattingCount:l,...o}=e;return(0,r.jsx)(i.so,{direction:"column",align:"center",justify:"center",p:"sm",gap:"xs",br:"lg",bg:{base:"surface.s1",md:"surface.s2"},...o,children:n?(0,r.jsxs)(r.Fragment,{children:[n,(0,r.jsx)(v.EY,{display:"block",textAlign:"center",textStyle:{base:"display.small",md:"display.medium"},children:"string"==typeof t?t:+(0,w.M)(t||0)}),(0,r.jsx)(v.EY,{display:"block",textAlign:"center",textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,r.jsx)(b.A,{id:s})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.EY,{display:"block",textAlign:"center",textStyle:{base:"display.small",md:"display.large"},children:"string"==typeof t||l?t:(0,S.A)(+(0,w.M)(t||0))}),(0,r.jsx)(v.EY,{display:"block",textAlign:"center",textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,r.jsx)(b.A,{id:s})})]})})}var E=s(52466);let C={[n.PAE.EventScore]:{translation:"number_of_scores",translationSingular:"score",icon:e=>(0,r.jsx)(E.pIV,{...e})},[n.PAE.EventStartDate]:{translation:"start_times",translationSingular:"match_start",icon:e=>(0,r.jsx)(E.bt9,{...e})},[n.PAE.GoalAssistant]:{translation:"number_of_score_assistants",translationSingular:"assistant",icon:e=>(0,r.jsx)(E.CvR,{icon:"football-assist",...e})},[n.PAE.GoalScorer]:{translation:"number_of_scorers",translationSingular:"scorer",icon:e=>(0,r.jsx)(E.CvR,{icon:"football-ball",...e})}},T={[n.Zui.Approved]:"secondary.default",[n.Zui.Declined]:"error.default",[n.Zui.Ignored]:"onSurface.nLv3",[n.Zui.Pending]:"onSurface.nLv3"},Y={[n.Zui.Approved]:"suggestion_approved",[n.Zui.Declined]:"suggestion_declined",[n.Zui.Ignored]:"suggestion_unresolved",[n.Zui.Pending]:"suggestion_unresolved"};function L(e){let{userAccount:t}=e,{data:s,isLoading:l}=(0,a.Ay)(n.VfS.contributionsCount(t.id));return l?(0,r.jsx)(i.so,{justify:"center",br:"lg",py:"lg",h:{base:"[200px]",md:"[180px]"},bg:"surface.s1",children:(0,r.jsx)(A.y$,{})}):(null==s?void 0:s.counts)?(0,r.jsx)(f.Zp,{variant:"mobile-only",children:(0,r.jsx)(i.xA,{columns:2,gap:"sm",children:s.counts.map((e,t)=>{var s,n,l;let o=null!=(l=null==(s=C[e.eventSuggestType])?void 0:s.icon)?l:null,a=null==(n=C[e.eventSuggestType])?void 0:n.translation;return(0,r.jsx)(k,{titleId:a,icon:o&&(0,r.jsx)(i.az,{h:{base:"3xl",md:"xl"},children:(0,r.jsx)(o,{fill:"onSurface.nLv3",h:[40,24],w:[40,24]})}),stat:e.count},"".concat(e.eventSuggestType,"-").concat(t))})})}):null}var I=s(93338),P=s(18970),q=s(17135),F=s(82536),W=s(67087),z=s(64006);let K=(0,s(62042).Fj)({base:{h:"sm",w:"sm",br:"50%"},variants:{type:{approved:{bg:"secondary.default"},declined:{bg:"status.error.default"},unresolved:{bg:"neutrals.nLv3"}}}}),Z=(0,i.I4)("div",K),M=e=>{let{text:t,...s}=e;return(0,r.jsxs)(i.so,{px:"lg",align:"center",h:"xl",children:[(0,r.jsx)(i.so,{p:"sm",me:"sm",h:"xl",w:"xl",align:"center",justify:"center",children:(0,r.jsx)(Z,{...s})}),(0,r.jsx)(v.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,r.jsx)(b.A,{id:t})})]})};function U(){return(0,r.jsxs)(i.az,{pt:"sm",children:[(0,r.jsx)(M,{text:"suggestion_approved",type:"approved"}),(0,r.jsx)(M,{text:"suggestion_declined",type:"declined"}),(0,r.jsx)(M,{text:"suggestion_unresolved",type:"unresolved"})]})}let B=e=>{let{contribution:t}=e,[s,o]=(0,l.useState)(!1),a=t.contributions[0],d=t.event,{status:c,types:u}=a,[x,j]=(0,W.jr)(d,"homeTeam","awayTeam",d),[p,h]=(0,W.jr)(d,"homeScore","awayScore",d);if(!c||!u.length)return null;let m=C[u[0]].icon,g=t.contributions.map(e=>e.types.length).reduce((e,t)=>e+t,0);return(0,r.jsx)(i.az,{children:(0,r.jsx)(P.y$,{value:{event:d,leftTeam:x,rightTeam:j,leftScore:p,rightScore:h},children:(0,r.jsx)(z.tj,{event:d,children:(0,r.jsx)(q.n6,{event:d,isNarrow:!0,children:()=>(0,r.jsxs)(i.az,{py:"xs",px:"sm",br:"md",bg:{_hover:"primary.highlight"},onClick:e=>{e.preventDefault()},children:[(0,r.jsxs)(i.so,{h:"2xl",position:"relative",justify:"center",align:"center",onClick:()=>o(!0),children:[(0,r.jsx)(m,{fill:T[c]}),g>1&&(0,r.jsx)(i.az,{bg:"primary.default",position:"absolute",w:"[28px]",h:"md",bottom:"-2xs",br:"sm",children:(0,r.jsx)(v.EY,{textStyle:"assistive.micro",color:"surface.s1",display:"block",textAlign:"center",children:(0,S.A)(g)})})]}),(0,r.jsx)(F.A,{header:"overview",isOpen:s,setIsOpen:o,children:(0,r.jsx)(i.so,{direction:"column",px:"md",children:t.contributions.map(e=>e.types.map((t,s)=>{let l=C[t],o=l.icon;return(0,r.jsxs)(i.so,{justify:"space-between",align:"center",h:"2xl",gap:"sm",children:[(0,r.jsxs)(i.so,{align:"center",children:[(0,r.jsx)(o,{type:t,fill:T[e.status],w:24,h:24}),(0,r.jsx)(v.EY,{display:"block",ms:"sm",mt:"xs",children:(0,r.jsx)(b.A,{id:l.translationSingular})})]}),(0,r.jsx)(v.EY,{mt:"xs",style:{color:I.S.var("colors.".concat((e=>{switch(e){case n.Zui.Approved:return"status.success.default";case n.Zui.Declined:return"status.error.default";default:return"neutrals.nLv3"}})(e.status)))},children:(0,r.jsx)(b.A,{id:Y[e.status]})})]},s)}))})})]})})})})})};function D(e){let{contributions:t}=e,[s,n]=(0,l.useState)(!1),o=s?t:t.slice(0,10);return(0,r.jsxs)(i.az,{children:[(0,r.jsx)(v.EY,{display:"block",textStyle:"assistive.default",px:"lg",pt:"lg",pb:"sm",children:(0,r.jsx)(b.A,{id:"recent"})}),o.map(e=>(0,r.jsx)(B,{contribution:e},e.event.id)),(0,r.jsx)(U,{}),t.length>10&&(0,r.jsx)(i.so,{mt:"xl",mb:"lg",justify:"center",children:(0,r.jsx)(v.$n,{borderStyle:"rounded",onClick:()=>n(e=>!e),children:(0,r.jsx)(b.A,{id:s?"show_less":"show_more"})})})]})}function G(e){let{userAccount:t}=e,{data:s}=(0,a.Ay)(n.VfS.contributions(t.id));return(null==s?void 0:s.contributions)?(0,r.jsxs)(f.Zp,{children:[(0,r.jsx)(f.Zp.Header,{titleId:"contributions_log"}),(0,r.jsx)(D,{contributions:s.contributions})]}):null}var N=s(90438),H=s(56183),V=s(38542),$=s(95084);let O=()=>{(0,$.Wk)({type:"top_contributors",location:"profile"})};function R(){return(0,r.jsx)(z.N_,{routeKey:V.UE[N.xW.TopContributors],onClick:O,children:(0,r.jsxs)(i.so,{align:"center",justify:"space-between",py:"md",px:"lg",cursor:"pointer",bg:{_hover:"neutrals.nLv5"},roundedBottom:"lg",children:[(0,r.jsxs)(i.so,{gap:"md",align:"center",children:[(0,r.jsx)(H.A,{userBadge:n.lqH.Crowdsourcer,size:24}),(0,r.jsx)(v.EY,{display:"block",userSelect:"none",children:(0,r.jsx)(b.A,{id:"view_top_contributors_button"})})]}),(0,r.jsx)(E.zQC,{icon:"chevron-right",width:24,height:24,fill:"primary.default"})]})})}function J(e){var t;let{userAccount:s}=e;return(0,r.jsxs)(f.Zp,{variant:"mobile-only",children:[(0,r.jsxs)(i.so,{py:{mdDown:"sm"},px:{mdDown:"lg"},gap:"sm",children:[(0,r.jsx)(k,{grow:1,basis:"[0px]",titleId:"profile_leaderboard_position",stat:null==(t=s.userCrowdsourcingAggregates)?void 0:t.currentRanking,skipFormattingCount:!0}),(0,r.jsx)(k,{grow:1,basis:"[0px]",titleId:"reputation_score",stat:Math.floor(s.credibilityScore)})]}),(0,r.jsxs)(i.az,{hideFrom:"md",children:[(0,r.jsx)(i.cG,{}),(0,r.jsx)(R,{},s.id)]})]})}function Q(e){let{userAccount:t}=e;return(0,r.jsxs)(f.BU,{children:[(0,r.jsx)(L,{userAccount:t}),(0,r.jsx)(J,{userAccount:t}),(0,r.jsx)(G,{userAccount:t})]})}var X=s(32909),ee=s(10516),et=s(27153),es=function(e){return e.Statistics="Statistics",e.MyPredictions="MyPredictions",e.Contributions="Contributions",e.Following="Following",e.Editor="Editor",e}({});function er(){let{userAccount:e,isUserLoading:t}=(0,l.useContext)(et.t),[s,n]=(0,l.useState)(X.H.Upcoming),o=(null==e?void 0:e.editor)||(null==e?void 0:e.activeCrowdsourcer),a=(null==e?void 0:e.editor)?es.Editor:(null==e?void 0:e.activeCrowdsourcer)?es.Contributions:es.MyPredictions;return t?(0,r.jsx)(y.E,{uniqueKey:"profile-desktop-tabs-cl",br:"lg",elevation:2}):(0,r.jsx)(f.Zp,{children:(0,r.jsx)(f.WC,{variant:"inverse-desktop",children:(0,r.jsxs)(v.tU,{variant:"primary",initialValue:a,fullWidthTabs:!0,children:[o&&(0,r.jsx)(i.az,{borderBottom:"1px solid",borderBottomColor:"neutrals.nLv4",mx:"lg",children:(0,r.jsxs)(v.tU.List,{children:[(null==e?void 0:e.editor)&&(0,r.jsx)(v.tU.Tab,{tabKey:es.Editor,children:(0,r.jsx)(b.A,{id:"user_status_editor"})}),(null==e?void 0:e.activeCrowdsourcer)&&(0,r.jsx)(v.tU.Tab,{tabKey:es.Contributions,children:(0,r.jsx)(b.A,{id:"contributions_tab_name"})}),(0,r.jsx)(v.tU.Tab,{tabKey:es.MyPredictions,children:(0,r.jsx)(b.A,{id:"predictions"})})]})}),(null==e?void 0:e.editor)&&(0,r.jsx)(v.tU.Panel,{tabKey:es.Editor,children:(0,r.jsx)(_.GN,{})}),(null==e?void 0:e.activeCrowdsourcer)&&(0,r.jsx)(v.tU.Panel,{tabKey:es.Contributions,children:(0,r.jsx)(Q,{userAccount:e})}),(0,r.jsx)(v.tU.Panel,{tabKey:es.MyPredictions,children:(0,r.jsxs)(i.so,{direction:"column",gap:"md",children:[(0,r.jsx)(ee.g,{}),(0,r.jsx)(_.ET,{activeTab:s,setActiveTab:n})]})})]})})})}var en=s(81961),ei=s(68565),el=s(25597);let eo=e=>{let{id:t,icon:s,routeName:n,eventType:l}=e;return(0,r.jsxs)(i.so,{justify:"space-between",children:[(0,r.jsxs)(i.so,{align:"center",gap:"sm",children:[s,(0,r.jsx)(v.EY,{textStyle:"display.small",children:(0,r.jsx)(b.A,{id:t})})]}),(0,r.jsx)(z.N_,{routeKey:V.UE[n],onClick:()=>(0,$.Wk)({type:l,location:"profile"}),children:(0,r.jsx)(v.$n,{variant:"clear",px:"sm",children:(0,r.jsx)(b.A,{id:"view_all"})})})]})},ea=e=>{let{children:t}=e;return(0,r.jsx)(i.so,{direction:"column",gap:"xs",children:t})};function ed(){let{userAccount:e}=(0,l.useContext)(et.t);return e?(0,r.jsxs)(f.Zp,{children:[(0,r.jsx)(f.Zp.Header,{titleId:"leaderboards_title"}),(0,r.jsx)(f.WC,{variant:"inverse-desktop",children:(0,r.jsxs)(f.BU,{children:[(0,r.jsxs)(ea,{children:[(0,r.jsx)(eo,{id:"topPredictors",eventType:"top_predictors",icon:(0,r.jsx)(H.A,{userBadge:n.lqH.Predictor,size:24}),routeName:N.xW.TopPredictors}),(0,r.jsx)(el.A,{userAccount:e})]}),(0,r.jsxs)(ea,{children:[(0,r.jsx)(eo,{id:"top_contributors_leaderboard",eventType:"top_contributors",icon:(0,r.jsx)(H.A,{userBadge:n.lqH.Crowdsourcer,size:24}),routeName:N.xW.TopContributors}),(0,r.jsx)(en.A,{userAccount:e})]}),(0,r.jsxs)(ea,{children:[(0,r.jsx)(eo,{id:"top_editors_leaderboard",eventType:"top_editors",icon:(0,r.jsx)(H.A,{userBadge:n.lqH.Editor,size:24}),routeName:N.xW.TopEditors}),(0,r.jsx)(ei.A,{userAccount:e})]})]})})]}):null}var ec=s(22116),eu=s(13893);function ex(e){let{assetMeta:t}=e;return t?(0,r.jsx)(f.Zp,{children:(0,r.jsxs)(i.so,{justify:"center",align:"center",gap:"sm",h:"5xl",children:[(0,r.jsx)(i.az,{w:"[22px]",children:(0,r.jsx)(v._V,{src:t.imageUrl.svg,width:"[22px]",alt:t.title})}),(0,r.jsx)(v.EY,{display:"block",textStyle:"display.medium",children:t.title})]})}):null}function ej(){return(0,r.jsx)(f.Zp,{children:(0,r.jsxs)(i.az,{p:"sm",minH:"7xl",children:[(0,r.jsx)(i.so,{justify:"center",children:(0,r.jsx)(v._V,{src:"/static/images/weekly-challenge/predictions-cta.svg",h:"[36px]",w:"[52px]",alt:"Weekly challenge trophies"})}),(0,r.jsx)(v.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",mt:"xs",textAlign:"center",children:(0,r.jsx)(b.A,{id:"weekly_challenge_visiting_not_joined"})})]})})}var ep=s(55112);function eh(){return(0,r.jsxs)(i.az,{children:[(0,r.jsx)(f.Zp.Header,{titleId:"weekly_challenge"}),(0,r.jsxs)(i.so,{justify:"center",align:"center",gap:"xs",children:[(0,r.jsx)(E.zQC,{icon:"time-outline",h:16,w:16,fill:"onSurface.nLv1"}),(0,r.jsx)(v.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv1",children:(0,r.jsx)(ep.k,{})})]})]})}var em=s(52667);function eg(e){let{points:t,isLoading:s}=e;return s?(0,r.jsx)(r.Fragment,{children:"\xa0"}):void 0===t?(0,r.jsx)(r.Fragment,{children:"-"}):(0,r.jsx)(r.Fragment,{children:(0,w.M)(t,2)})}function ey(e){let{rank:t,isLoading:s}=e;return s?(0,r.jsx)(r.Fragment,{children:"\xa0"}):void 0===t?(0,r.jsx)(r.Fragment,{children:"-"}):(0,r.jsx)(r.Fragment,{children:t})}function ev(e){let{rank:t,points:s,isLoading:n}=e;return(0,r.jsxs)(i.so,{justify:"space-between",gap:"sm",children:[(0,r.jsxs)(em.I,{children:[(0,r.jsx)(v.EY,{textStyle:"display.medium",children:(0,r.jsx)(ey,{rank:t,isLoading:n})}),(0,r.jsx)(v.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,r.jsx)(b.A,{id:"basic.rank"})})]}),(0,r.jsxs)(em.I,{children:[(0,r.jsx)(v.EY,{textStyle:"display.medium",children:(0,r.jsx)(eg,{points:s,isLoading:n})}),(0,r.jsx)(v.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,r.jsx)(b.A,{id:"points"})})]})]})}var eb=s(62710);function ef(){var e,t;let{userAccount:s,isUserLoading:i,userId:d}=(0,l.useContext)(et.t),c=(0,o.d4)(ec.$F),u=(null==c?void 0:c.id)===d,{data:x}=(0,a.Ay)(n.rGM.leagueAssets()),{data:j,isLoading:p,error:h}=(0,a.Ay)((null==s?void 0:s.leaderboardId)?n.rGM.leaderboardRankings(null==s?void 0:s.leaderboardId):null),m=null==j?void 0:j.league.level,g=null==x?void 0:x.meta.find(e=>e.level===m),y=null!=(t=null==j||null==(e=j.rankings)?void 0:e.findIndex(e=>e.id===d))?t:-1,v=y>-1?null==j?void 0:j.rankings[y].score:void 0,b=null==s?void 0:s.weeklyChallengeMaxWeeklyStreak,_=(i||(null==s?void 0:s.leaderboardId))&&!h,A=!_&&!u,w=u&&(i||(null==s?void 0:s.leaderboardId))&&!h,S=(null==s?void 0:s.leaderboardId)!==void 0||void 0!==b,k=_||A||w||S;return(0,r.jsx)(f.Zp,{children:(0,r.jsxs)(f.WC,{variant:"inverse-desktop",children:[!u&&(0,r.jsx)(eh,{}),(0,r.jsxs)(f.BU,{children:[u&&(0,r.jsx)(eu.V,{location:"profile"}),k&&(0,r.jsxs)(r.Fragment,{children:[_&&(0,r.jsx)(ex,{assetMeta:g}),A&&(0,r.jsx)(ej,{}),S&&(0,r.jsx)(eb.A,{currentWeeklyStreak:null==s?void 0:s.weeklyChallengeCurrentWeeklyStreak,maxWeeklyStreak:null==s?void 0:s.weeklyChallengeMaxWeeklyStreak,hasCurrentStreakInfo:!0,onCurrentStreakClick:()=>{(0,$.ke)({action:"click",location:u?"own_profile":"other_profile",type:"streak_info"})}}),w&&(0,r.jsx)(ev,{rank:y>-1?y+1:void 0,points:v,isLoading:i||p})]})]})]})})}var e_=s(74610);let eA={[n.bq7.Tournaments]:"competitions",[n.bq7.Teams]:"teams",[n.bq7.Players]:"athletes"},ew=e=>{let{entityType:t}=e;return(0,r.jsx)(i.so,{align:"center",justify:"space-between",p:"lg",pb:"sm",h:"3xl",children:(0,r.jsx)(v.EY,{display:"block",textStyle:"display.small",children:(0,r.jsx)(b.A,{id:eA[t]||" "})})})};function eS(e){let{entityTypes:t}=e;return(0,r.jsx)(r.Fragment,{children:t.map(e=>(0,r.jsxs)(l.Fragment,{children:[(0,r.jsx)(ew,{entityType:e}),(0,r.jsx)(y.E,{uniqueKey:"favorites-list-cl",h:96,ml:"lg",borderRadius:"sm 0 0 sm"})]},e))})}let ek={[n.bq7.Tournaments]:"profile_favourite_competitions_empty",[n.bq7.Teams]:"profile_favourite_teams_empty",[n.bq7.Players]:"profile_favourite_athletes_empty"},eE=e=>{let{entityType:t}=e,s=ek[t];return(0,r.jsx)(i.so,{py:"xl",px:"lg",justify:"center",align:"center",style:{minHeight:96},children:(0,r.jsx)(v.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:s&&(0,r.jsx)(b.A,{id:s})})})};var eC=s(18645),eT=s(15499),eY=s(82346);let eL=e=>{let{favoritesListEntity:t}=e,{type:s,entity:l}=t,{id:o,name:a,sport:d}=l,c={w:32,h:32,id:o,alt:a+" Image"};return(0,r.jsxs)(i.az,{p:"sm",br:{mdDown:"lg",md:"sm"},position:"relative",bg:{base:"surface.s2",_hover:"surface.s0"},cursor:"pointer",style:{height:96,width:120},children:[(0,r.jsx)(i.az,{position:"absolute",top:"sm",left:"sm",children:s===n.bq7.Players?(0,r.jsx)(eC.pY,{w:16,h:16,id:l.teamId}):(0,r.jsx)(E.Egi,{sport:d.slug,fill:"onSurface.nLv3",height:16,width:16})}),(0,r.jsxs)(i.so,{direction:"column",align:"center",children:[(0,r.jsxs)(i.so,{align:"center",justify:"center",h:"3xl",w:"3xl",children:[s===n.bq7.Tournaments&&(0,r.jsx)(eC.eD,{...c}),s===n.bq7.Teams&&(0,r.jsx)(eC.pY,{...c}),s===n.bq7.Players&&(0,r.jsx)(eC.tg,{...c})]}),(0,r.jsx)(i.so,{align:"center",h:"2xl",mt:"sm",children:(0,r.jsx)(v.EY,{textStyle:"assistive.default",textAlign:"center",overflowWrap:"anywhere",lineClamp:2,title:a,children:s===n.bq7.Tournaments?(0,r.jsx)(eY.O,{uniqueTournament:l}):a})})]})]})};function eI(e){let{favoritesListEntity:t}=e,{type:s,entity:i}=t,{id:l,slug:o,sport:a}=i;switch(s){case n.bq7.Tournaments:return(0,r.jsx)(z.N_,{routeKey:"uniqueTournament",params:{id:l,tournament:o,category:i.categorySlug},translatedParams:{sport:a.slug},children:(0,r.jsx)(eL,{favoritesListEntity:t})});case n.bq7.Teams:return(0,r.jsx)(eT.A,{team:t.entity,sport:a.slug,children:(0,r.jsx)(eL,{favoritesListEntity:t})});case n.bq7.Players:return(0,r.jsx)(z.uc,{player:{slug:o,id:l},sportSlug:a.slug,children:(0,r.jsx)(eL,{favoritesListEntity:t})});default:return null}}let eP=(e,t,s)=>{if(!t)return[];switch(e){case n.bq7.Players:return t.players.map(e=>({type:n.bq7.Players,entity:e}));case n.bq7.Teams:return t.teams.filter(e=>void 0===s||e.type===s).map(e=>({type:n.bq7.Teams,entity:e}));case n.bq7.Tournaments:return t.leagues.map(e=>({type:n.bq7.Tournaments,entity:e}));default:return[]}};function eq(e){let{subscriptions:t,entityType:s}=e,l=eP(s,t,n.YVh.Regular),o=!!(null==l?void 0:l.length);if(s===n.bq7.Players){let e=eP(n.bq7.Teams,t,n.YVh.Person),s=eP(n.bq7.Teams,t,n.YVh.Double);l.push(...s,...e)}return l.sort((e,t)=>t.entity.userCount-e.entity.userCount),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ew,{entityType:s}),o?(0,r.jsx)(v.tR,{buttonStyle:"solid",showButtons:"desktop",children:(0,r.jsx)(i.so,{gap:"sm",width:"fit",px:"sm",style:{height:96},children:Array.from({length:10},(e,t)=>t).map(e=>{let t=l[e];return t?(0,r.jsx)(eI,{favoritesListEntity:t},t.entity.id):null})})}):(0,r.jsx)(eE,{entityType:s})]})}function eF(){let{userId:e,isUserLoading:t}=(0,l.useContext)(et.t),{data:s,isLoading:o}=(0,a.Ay)(n.VfS.subscriptions(e)),d=null==s?void 0:s.subscriptions;return(0,r.jsx)(e_.t,{tag:"FavoritesList",children:(0,r.jsx)(f.Zp,{children:(0,r.jsxs)(i.az,{pb:"sm",children:[(0,r.jsx)(v.EY,{display:{base:"none",md:"block"},pt:"md",pb:"xs",textStyle:"display.medium",textAlign:"center",children:(0,r.jsx)(b.A,{id:"app_favourites"})}),t||o?(0,r.jsx)(eS,{entityTypes:[n.bq7.Tournaments,n.bq7.Teams,n.bq7.Players]}):(0,r.jsxs)(l.Fragment,{children:[(0,r.jsx)(eq,{entityType:n.bq7.Tournaments,subscriptions:d}),(0,r.jsx)(eq,{entityType:n.bq7.Teams,subscriptions:d}),(0,r.jsx)(eq,{entityType:n.bq7.Players,subscriptions:d})]},e)]})})})}var eW=s(7094);function ez(){let{userAccount:e}=(0,l.useContext)(et.t);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_.iy,{}),(0,r.jsxs)(j.xA,{pb:"4xl",children:[(0,r.jsxs)(j.fv,{flexGrow:2,children:[(0,r.jsx)(_.bj,{}),(0,r.jsx)(eF,{}),(0,r.jsx)(g.S,{}),(0,r.jsx)(eW.e,{}),(0,r.jsx)(p.A,{}),(0,r.jsx)(h.A,{})]}),(0,r.jsx)(j.fv,{flexGrow:3,children:(0,r.jsx)(er,{})}),(0,r.jsxs)(j.fv,{flexGrow:2,children:[(0,r.jsx)(ef,{}),(0,r.jsx)(m.pk,{utIds:null,logData:{location:"user_profile",type:"fantasy",action:"click"}}),(0,r.jsx)(ed,{}),(null==e?void 0:e.editor)&&(0,r.jsx)(x.s,{})]})]})]})}var eK=s(2920),eZ=s(56132);function eM(){let{userAccount:e,userId:t,isUserLoading:s}=(0,l.useContext)(et.t),n=(0,o.d4)(ec.$F),a=(null==n?void 0:n.id)===t,[d,c]=(0,l.useState)(),u=[{tabKey:eZ.x.Overview,item:"overview",isHidden:!a},{tabKey:eZ.x.Editor,item:"user_status_editor",isHidden:!(null==e?void 0:e.editor)},{tabKey:eZ.x.Contributions,item:"contributions_tab_name",isHidden:!(null==e?void 0:e.activeCrowdsourcer)},{tabKey:eZ.x.MyPredictions,item:"predictions"},{tabKey:eZ.x.Following,item:"app_favourites",isHidden:a}];return((0,l.useEffect)(()=>{!s&&e&&c(a?eZ.x.Overview:(null==e?void 0:e.editor)?eZ.x.Editor:(null==e?void 0:e.activeCrowdsourcer)?eZ.x.Contributions:eZ.x.MyPredictions)},[t,s]),!n||s)?null:(0,r.jsxs)(i.az,{mb:"2xl",pb:"sm",children:[(0,r.jsx)(_.bj,{}),d&&(0,r.jsx)(i.az,{children:(0,r.jsxs)(eK.A,{id:0,tabs:u,location:eK.C.ProfilePage,initialTabKey:d,customControls:[d,c],noSportMenu:!0,bg:"surface.s0",children:[(0,r.jsx)(v.tU.Panel,{tabKey:eZ.x.Overview,children:(0,r.jsx)(_.Aw,{})}),(0,r.jsx)(v.tU.Panel,{tabKey:eZ.x.Editor,children:(0,r.jsx)(_.GN,{})}),(0,r.jsx)(v.tU.Panel,{tabKey:eZ.x.MyPredictions,children:(0,r.jsx)(_.Ay,{})}),(0,r.jsx)(v.tU.Panel,{tabKey:eZ.x.Following,children:(0,r.jsx)(f.BU,{children:(0,r.jsx)(eF,{})})}),e&&(0,r.jsx)(v.tU.Panel,{tabKey:eZ.x.Contributions,children:(0,r.jsx)(Q,{userAccount:e})})]})})]})}function eU(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.$B,{children:(0,r.jsx)(eM,{})}),(0,r.jsx)(u.h6,{children:(0,r.jsx)(ez,{})})]})}var eB=s(88658),eD=s(18153),eG=s(14665);function eN(e){let{textId:t,icon:s}=e;return(0,r.jsxs)(i.so,{gap:"md",align:"center",_icon:{w:"xl",h:"xl"},children:[s,(0,r.jsx)(v.EY,{children:(0,r.jsx)(b.A,{id:t})})]})}let eH=function(){return(0,r.jsxs)(i.so,{direction:"column",gap:"lg",br:"sm",bg:"surface.s2",px:"lg",py:"xl",children:[(0,r.jsx)(eN,{textId:"sync_your_favourites",icon:(0,r.jsx)(E.aGI,{fill:"onSurface.nLv1"})}),(0,r.jsx)(eN,{textId:"add_matches_to_your_calendar",icon:(0,r.jsx)(E.jKd,{fill:"onSurface.nLv1"})}),(0,r.jsx)(eN,{textId:"play_fantasy_and_weekly_challenge",icon:(0,r.jsx)(E.wDv,{fill:"onSurface.nLv1"})}),(0,r.jsx)(eN,{textId:"get_access_to_sofascore_analyst",icon:(0,r.jsx)(E.i83,{fill:"onSurface.nLv1"})})]})};var eV=s(76146),e$=s(37578);let eO=()=>(0,r.jsx)(d.YW,{children:(0,r.jsx)(i.az,{mt:{md:"4xl"},children:(0,r.jsx)(eG.A,{})})});function eR(e){let{userId:t}=e,s=(0,o.wA)(),{isDesktop:n}=(0,v.$c)();return t||n?(0,r.jsx)(eO,{}):(0,r.jsxs)(d.YW,{children:[(0,r.jsx)(i.az,{bg:"surface.s1",children:(0,r.jsxs)(i.so,{direction:"column",gap:"sm",px:"lg",pt:"lg",pb:"xl",children:[(0,r.jsx)(eB.B,{children:(0,r.jsx)(eB.B.Item,{children:(0,r.jsx)(b.A,{id:"profile_my_profile"})})}),(0,r.jsx)(i.so,{justify:"center",py:"sm",h:"11xl",children:(0,r.jsx)(e$.A,{size:102})}),(0,r.jsx)(v.EY,{textStyle:"display.medium",textAlign:"center",pt:"md",pb:"sm",children:(0,r.jsx)(b.A,{id:"logged_out_profile_header"})}),(0,r.jsx)(eH,{}),(0,r.jsx)(v.$n,{size:"secondary",onClick:()=>{(0,$.ke)({action:"click",location:"user_profile",type:"login_button"}),s((0,eD.aS)())},children:(0,r.jsx)(b.A,{id:"user.signIn"})})]})}),(0,r.jsxs)(f.BU,{children:[(0,r.jsx)(eV.A,{}),(0,r.jsx)(eW.e,{}),(0,r.jsx)(m.pk,{utIds:null})]})]})}var eJ=s(45906);let eQ=e=>{let{userId:t}=e,{data:s,isLoading:i}=(0,a.Ay)(n.VfS.details(t),{revalidateOnFocus:!0});return s||i?(0,r.jsxs)(d.YW,{children:[(0,r.jsx)(c.A,{metaKey:"user.profile"}),(0,r.jsx)(et.t,{value:{userId:t,userAccount:null==s?void 0:s.userAccount,isUserLoading:i},children:(0,r.jsx)(eU,{})})]}):(0,r.jsx)(eJ.default,{statusCode:404})},eX=e=>{let{userId:t}=e,s=(0,o.wA)(),n=(0,o.d4)(ec.$F),a=(0,o.d4)(ec.hA);return((0,l.useEffect)(()=>{s((0,eD.Vy)(null))},[]),a)?(null==n?void 0:n.id)?(0,r.jsx)(eQ,{userId:t||n.id}):(0,r.jsx)(eR,{userId:t}):(0,r.jsx)(i.az,{h:"[100vh]"})};eX.getInitialProps=e=>{let{query:t}=e;return{userId:t.userId||""}};let e0=eX}},e=>{e.O(0,[14092,56591,28446,83170,80432,80187,12155,17135,61305,17343,90636,46593,38792],()=>e(e.s=54519)),_N_E=e.O()}]);