!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]="49d56270-2c35-44da-8561-8f357f43f45f",e._sentryDebugIdIdentifier="sentry-dbid-49d56270-2c35-44da-8561-8f357f43f45f")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8739],{14022:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var s=r(6029),n=r(98914),i=r(44194),l=r(76356);function o(e){let{credibilityScore:t,score:r,isOnColor:o}=e;return(0,s.jsxs)(l.so,{children:[(0,s.jsx)(i.EY,{minW:"4xl",color:o?"onColor.default":"neutrals.nLv1",textStyle:"table.medium",textAlign:"end",children:t?Math.floor(t):"-"}),(0,s.jsx)(i.EY,{minW:"4xl",color:o?"onColor.default":"primary.default",textStyle:"table.medium",textAlign:"end",children:r?(0,n.M)(r):"-"})]})}},14165:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},16202:(e,t,r)=>{"use strict";r.d(t,{V:()=>j,q:()=>x});var s=r(6029),n=r(44194),i=r(76356),l=r(99064),o=r(90248),a=r(54409),d=r(70591),c=r(79041),u=r(61836);let x=e=>{let{children:t}=e;return(0,s.jsx)(i.az,{bgGradient:"to-b",gradientFrom:"[#374cf1]",gradientTo:"[#1729af]",p:"md",br:"lg",minH:"7xl",w:"100%",children:t})},j=e=>{let{location:t}=e;return(0,s.jsx)(d.N_,{routeKey:"user.weeklyChallenge",onClick:()=>{(0,u.Wk)({type:"weekly_challenge",location:t})},children:(0,s.jsx)(x,{children:(0,s.jsxs)(i.so,{gap:"md",align:"center",children:[(0,s.jsx)(l._V,{h:48,w:70,src:"/static/images/weekly-challenge/predictions-cta.svg",alt:"Weekly challenge trophies"}),(0,s.jsxs)(i.so,{direction:"column",justify:"center",rowGap:"xs",p:"xs",grow:1,children:[(0,s.jsx)(n.EY,{display:"block",textStyle:"display.medium",color:"onColor.primary",children:(0,s.jsx)(o.A,{id:"weekly_challenge"})}),(0,s.jsx)(n.EY,{display:"block",textStyle:"body.small",color:"onColor.primary",children:(0,s.jsx)(c.k,{})})]}),(0,s.jsx)(i.az,{bg:"onColor.highlight1",h:"2xl",w:"2xl",p:"xs",br:"sm",children:(0,s.jsx)(a.CCT,{w:24,h:24,fill:"onColor.primary"})})]})})})}},16419:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},18645:(e,t,r)=>{"use strict";r.d(t,{eD:()=>i.e,pY:()=>n.p,tg:()=>s.t});var s=r(91407),n=r(91603),i=r(33480)},23228:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var s=r(6029),n=r(494),i=r(88339),l=r(14022),o=r(91138),a=r(82304);function d(e){var t,r;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,s.jsx)(a.q,{id:"profile_leaderboards_no_contributions",isCard:c});let j=null==(t=x.userCrowdsourcingAggregates)?void 0:t.currentRanking;return(0,s.jsx)(a._,{isCard:c,rank:j,header:(0,s.jsx)(o.u,{}),children:(0,s.jsx)(l.A,{credibilityScore:x.credibilityScore,score:null==(r=x.userCrowdsourcingAggregates)?void 0:r.score})})}},27869:(e,t,r)=>{e.exports=r(14165)({"&":"&","<":"<",">":">",""":'"',"'":"'"})},40834:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var s=r(6029),n=r(44194),i=r(76356),l=r(90248);function o(e){let{children:t}=e;return(0,s.jsxs)(i.so,{justify:"space-between",gap:"sm",p:"lg",children:[(0,s.jsxs)(i.so,{gap:"sm",overflow:"hidden",me:"sm",children:[(0,s.jsx)(n.EY,{color:"neutrals.nLv3",textStyle:"table.medium",w:"2xl",textAlign:"center",truncate:!0,children:"#"}),(0,s.jsx)(n.EY,{color:"neutrals.nLv3",textStyle:"table.medium",truncate:!0,children:(0,s.jsx)(l.A,{id:"nickname"})})]}),t]})}},42196:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>tr});var s=r(6029),n=r(21377),i=r(76356),l=r(55729),o=r(494),a=r(45860),d=r(29129),c=r(52951),u=r(42678),x=r(37377),j=r(70010),p=r(67333),h=r(41007),m=r(99326),g=r(55794),y=r(32523),f=r(99064),v=r(90248),b=r(65789),A=r(6198),_=r(44194),k=r(98516),w=r(75414);function S(e){let{stat:t,titleId:r,icon:n,skipFormattingCount:l,...o}=e;return(0,s.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,s.jsxs)(s.Fragment,{children:[n,(0,s.jsx)(_.EY,{display:"block",textAlign:"center",textStyle:{base:"display.small",md:"display.medium"},children:"string"==typeof t?t:+(0,k.M)(t||0)}),(0,s.jsx)(_.EY,{display:"block",textAlign:"center",textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,s.jsx)(v.A,{id:r})})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_.EY,{display:"block",textAlign:"center",textStyle:{base:"display.small",md:"display.large"},children:"string"==typeof t||l?t:(0,w.A)(+(0,k.M)(t||0))}),(0,s.jsx)(_.EY,{display:"block",textAlign:"center",textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,s.jsx)(v.A,{id:r})})]})})}var C=r(54409);let E={[n.PAE.EventScore]:{translation:"number_of_scores",translationSingular:"score",icon:e=>(0,s.jsx)(C.pIV,{...e})},[n.PAE.EventStartDate]:{translation:"start_times",translationSingular:"match_start",icon:e=>(0,s.jsx)(C.bt9,{...e})},[n.PAE.GoalAssistant]:{translation:"number_of_score_assistants",translationSingular:"assistant",icon:e=>(0,s.jsx)(C.CvR,{icon:"football-assist",...e})},[n.PAE.GoalScorer]:{translation:"number_of_scorers",translationSingular:"scorer",icon:e=>(0,s.jsx)(C.CvR,{icon:"football-ball",...e})}},T=e=>{switch(e){case n.Zui.Approved:return"status.success.default";case n.Zui.Declined:return"status.error.default";default:return"neutrals.nLv3"}},Y={[n.Zui.Approved]:"secondary.default",[n.Zui.Declined]:"error.default",[n.Zui.Ignored]:"onSurface.nLv3",[n.Zui.Pending]:"onSurface.nLv3"},P={[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,{isMobile:r}=(0,_.$c)(),{data:l,isLoading:o}=(0,a.Ay)(n.VfS.contributionsCount(t.id));return o?(0,s.jsx)(i.so,{justify:"center",br:"lg",py:"lg",h:{base:"[200px]",md:"[180px]"},bg:"surface.s1",children:(0,s.jsx)(f.y$,{})}):(null==l?void 0:l.counts)?(0,s.jsx)(b.HH,{isCard:r,children:(0,s.jsx)(i.xA,{columns:2,gap:"sm",children:l.counts.map((e,t)=>{var r,n,l;let o=null!=(l=null==(r=E[e.eventSuggestType])?void 0:r.icon)?l:null,a=null==(n=E[e.eventSuggestType])?void 0:n.translation;return(0,s.jsx)(S,{titleId:a,icon:o&&(0,s.jsx)(i.az,{h:{base:"3xl",md:"xl"},children:(0,s.jsx)(o,{fill:"onSurface.nLv3",h:[40,24],w:[40,24]})}),stat:e.count},"".concat(e.eventSuggestType,"-").concat(t))})})}):null}var I=r(4967),q=r(21501),F=r(78488),z=r(83170),H=r(28446),D=r(56591),M=r(10533),W=r(947),K=r(41735);let Z={top:16,bottom:36,left:36,right:16},V=(e,t,r)=>{var s;let n=new Date;if(!r)return[t,n].map(t=>({date:t,score:e}));let i=(0,I.VM)(t,n),l=(0,I.ZV)(t),o=Object.keys(r).map(e=>+e).filter(e=>e>=l).map(e=>({timestamp:e,score:r[e]})),a=(null==(s=o[0])?void 0:s.score)||0;return i.map(e=>{let t=(0,I.ZV)(e),r=o.find(e=>(0,I.yk)(e.timestamp,t));return r?(a=r.score,{date:e,score:r.score}):{date:e,score:a}})};function N(e){let{points:t,credibilityScore:r}=e,{colors:n,typography:o,settings:a}=(0,K.useTheme)(),d=(0,W.A)(),c="rtl"===a.textDirection,u=(0,l.useRef)(null),x=new Date,j=new Date(x.getFullYear(),x.getMonth()-6+1,1),p=V(r,j,t);return(0,q.st)(()=>{var e;if(!u.current)return;let t=c?Z.right:Z.left,r=c?Z.left:Z.right;(0,D.A)(u.current).selectAll("*").remove();let s=(0,D.A)(u.current).append("svg").attr("width","100%").attr("height",80+Z.bottom+Z.top),i=null==(e=s.node())?void 0:e.getBoundingClientRect(),l=(null==i?void 0:i.width)||448,a=[j,x],h=(0,z.A)().domain(c?a.reverse():a).range([t,l-r]).clamp(!0),m=(0,H.A)().domain([0,100]).range([80+Z.top,Z.top]).clamp(!0),g=c?l-Z.left:Z.left;s.selectAll("g.y-axis").data([null]).join("g").attr("class","y-axis").attr("transform","translate(".concat(g,", 0)")).call((c?F.eH:F.V4)(m).tickSize(0).ticks(3).tickPadding(16)).attr("text-anchor","middle").call(e=>e.select(".domain").attr("stroke-width",0)),s.selectAll("g.x-axis").data([null]).join("g").attr("class","x-axis").attr("transform","translate(0, ".concat(80+Z.top,")")).call((0,F.l7)(h).ticks(6).tickSize(0).tickPadding(16).tickFormat(e=>d.formatDate(new Date(e.toString()),{month:"short"}))).call(e=>e.select(".domain").attr("stroke-width",0)),s.selectAll("g.tick").select("text").attr("color",n.onSurface.nLv3).attr("font",o.family.sofascoreSans).attr("font-weight",o.weight.medium).attr("font-size",o.size.micro),s.append("g").classed("grid",!0).selectAll("line").data(m.ticks(3)).join("line").attr("x1",h(j)).attr("x2",h(x)).attr("y1",e=>m(e)).attr("y2",e=>m(e)).attr("stroke",n.onSurface.nLv4).attr("stroke-dasharray","4 4").attr("stroke-width","1px");let y=(0,M.A)().x(e=>h(e.date)).y(e=>m(e.score));s.append("path").attr("stroke",n.secondary.default).attr("fill","none").attr("stroke-width","2px").attr("d",y(p)||"")},200,[p]),(0,s.jsx)(i.az,{ref:u})}var G=r(54053);function U(){let[e,t]=(0,l.useState)(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.az,{h:"xl",w:"xl",cursor:"pointer",onClick:()=>t(!0),children:(0,s.jsx)(C.G_L,{fill:"onSurface.nLv3"})}),(0,s.jsx)(G.A,{isOpen:e,setIsOpen:t,header:"reputation_tracker_graph",renderAdPlaceholder:!1,footer:(0,s.jsx)(i.so,{hideBelow:"md",justify:"flex-end",mt:"xl",p:"md",children:(0,s.jsx)(_.$n,{variant:"clear",onClick:()=>t(!1),children:(0,s.jsx)(v.A,{id:"ok_got_it_button"})})}),children:(0,s.jsx)(i.az,{px:"md",pb:{mdDown:"lg"},maxW:"[320px]",children:(0,s.jsx)(_.EY,{display:"block",textStyle:"body.mediumParagraph",children:(0,s.jsx)(v.A,{id:"reputation_tracker_info"})})})})]})}function B(e){let{userAccount:t}=e,{data:r,isLoading:l}=(0,a.Ay)(n.VfS.credibilityScoreGraph(t.id));return l?(0,s.jsx)(i.so,{justify:"center",align:"center",bg:{base:"surface.s1",md:"surface.s2"},h:"[172px]",br:"lg",py:"lg",children:(0,s.jsx)(f.y$,{})}):(0,s.jsxs)(b.Zp,{isInverseDesktop:!0,children:[(0,s.jsx)(b.Zp.Header,{titleId:"reputation_tracker_graph",actionComponent:(0,s.jsx)(U,{})}),(0,s.jsx)(N,{points:null==r?void 0:r.points,credibilityScore:t.credibilityScore})]})}var $=r(93338),O=r(62859),R=r(60988),Q=r(65078),X=r(70591);let J=(0,r(62042).Fj)({base:{h:"sm",w:"sm",br:"50%"},variants:{type:{approved:{bg:"secondary.default"},declined:{bg:"status.error.default"},unresolved:{bg:"neutrals.nLv3"}}}}),ee=(0,i.I4)("div",J),et=e=>{let{text:t,...r}=e;return(0,s.jsxs)(i.so,{px:"lg",align:"center",h:"xl",children:[(0,s.jsx)(i.so,{p:"sm",me:"sm",h:"xl",w:"xl",align:"center",justify:"center",children:(0,s.jsx)(ee,{...r})}),(0,s.jsx)(_.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,s.jsx)(v.A,{id:t})})]})};function er(){return(0,s.jsxs)(i.az,{pt:"sm",children:[(0,s.jsx)(et,{text:"suggestion_approved",type:"approved"}),(0,s.jsx)(et,{text:"suggestion_declined",type:"declined"}),(0,s.jsx)(et,{text:"suggestion_unresolved",type:"unresolved"})]})}let es=e=>{let{contribution:t}=e,[r,n]=(0,l.useState)(!1),o=t.contributions[0],a=t.event,{status:d,types:c}=o,[u,x]=(0,Q.jr)(a,"homeTeam","awayTeam",a),[j,p]=(0,Q.jr)(a,"homeScore","awayScore",a);if(!d||!c.length)return null;let h=E[c[0]].icon,m=t.contributions.map(e=>e.types.length).reduce((e,t)=>e+t,0);return(0,s.jsx)(i.az,{children:(0,s.jsx)(O.y$.Provider,{value:{event:a,leftTeam:u,rightTeam:x,leftScore:j,rightScore:p},children:(0,s.jsx)(X.tj,{event:a,children:(0,s.jsx)(R.n6,{event:a,isNarrow:!0,children:()=>(0,s.jsxs)(i.az,{py:"xs",px:"sm",br:"md",bg:{_hover:"primary.highlight"},onClick:e=>{e.preventDefault()},children:[(0,s.jsxs)(i.so,{h:"2xl",position:"relative",justify:"center",align:"center",onClick:()=>n(!0),children:[(0,s.jsx)(h,{fill:Y[d]}),m>1&&(0,s.jsx)(i.az,{bg:"primary.default",position:"absolute",w:"[28px]",h:"md",bottom:"-2xs",br:"sm",children:(0,s.jsx)(_.EY,{textStyle:"assistive.micro",color:"surface.s1",display:"block",textAlign:"center",children:(0,w.A)(m)})})]}),(0,s.jsx)(G.A,{header:(0,s.jsx)(_.EY,{display:"block",textStyle:"display.large",p:"md",children:(0,s.jsx)(v.A,{id:"overview"})}),isOpen:r,setIsOpen:n,children:(0,s.jsx)(i.so,{direction:"column",px:"md",children:t.contributions.map(e=>e.types.map((t,r)=>{let n=E[t],l=n.icon;return(0,s.jsxs)(i.so,{justify:"space-between",align:"center",h:"2xl",gap:"sm",children:[(0,s.jsxs)(i.so,{align:"center",children:[(0,s.jsx)(l,{type:t,fill:Y[e.status],w:24,h:24}),(0,s.jsx)(_.EY,{display:"block",ms:"sm",mt:"xs",children:(0,s.jsx)(v.A,{id:n.translationSingular})})]}),(0,s.jsx)(_.EY,{mt:"xs",style:{color:$.S.var("colors.".concat(T(e.status)))},children:(0,s.jsx)(v.A,{id:P[e.status]})})]},r)}))})})]})})})})})};function en(e){let{contributions:t}=e,[r,n]=(0,l.useState)(!1),o=r?t:t.slice(0,10);return(0,s.jsxs)(i.az,{children:[(0,s.jsx)(_.EY,{display:"block",textStyle:"assistive.default",px:"lg",pt:"lg",pb:"sm",children:(0,s.jsx)(v.A,{id:"recent"})}),o.map(e=>(0,s.jsx)(es,{contribution:e},e.event.id)),(0,s.jsx)(er,{}),t.length>10&&(0,s.jsx)(i.so,{mt:"xl",mb:"lg",justify:"center",children:(0,s.jsx)(_.$n,{borderStyle:"rounded",onClick:()=>n(e=>!e),children:(0,s.jsx)(v.A,{id:r?"show_less":"show_more"})})})]})}function ei(e){let{userAccount:t}=e,{data:r}=(0,a.Ay)(n.VfS.contributions(t.id));return(null==r?void 0:r.contributions)?(0,s.jsxs)(b.Zp,{isInverseDesktop:!0,children:[(0,s.jsx)(b.Zp.Header,{titleId:"contributions_log"}),(0,s.jsx)(en,{contributions:r.contributions})]}):null}var el=r(19451),eo=r(52679),ea=r(70355),ed=r(61836);let ec=()=>{(0,ed.Wk)({type:"top_contributors",location:"profile"})};function eu(){return(0,s.jsx)(X.N_,{routeKey:ea.UE[el.xW.TopContributors],onClick:ec,children:(0,s.jsxs)(i.so,{align:"center",justify:"space-between",py:"md",px:"lg",cursor:"pointer",bg:{_hover:"neutrals.nLv5"},roundedBottom:"lg",children:[(0,s.jsxs)(i.so,{gap:"md",align:"center",children:[(0,s.jsx)(eo.A,{userBadge:n.lqH.Crowdsourcer,size:24}),(0,s.jsx)(_.EY,{display:"block",userSelect:"none",children:(0,s.jsx)(v.A,{id:"view_top_contributors_button"})})]}),(0,s.jsx)(C.zQC,{icon:"chevron-right",width:24,height:24,fill:"primary.default"})]})})}function ex(e){var t;let{userAccount:r}=e,{isMobile:n}=(0,_.$c)();return(0,s.jsxs)(b.HH,{isCard:n,children:[(0,s.jsxs)(i.so,{py:{mdDown:"sm"},px:{mdDown:"lg"},gap:"sm",children:[(0,s.jsx)(S,{grow:1,basis:"[0px]",titleId:"profile_leaderboard_position",stat:null==(t=r.userCrowdsourcingAggregates)?void 0:t.currentRanking,skipFormattingCount:!0}),(0,s.jsx)(S,{grow:1,basis:"[0px]",titleId:"reputation_score",stat:Math.floor(r.credibilityScore)})]}),(0,s.jsxs)(i.az,{display:{base:"block",md:"none"},children:[(0,s.jsx)(f.cG,{}),(0,s.jsx)(eu,{},r.id)]})]})}function ej(e){let{userAccount:t}=e;return(0,s.jsxs)(b.BU,{children:[(0,s.jsx)(L,{userAccount:t}),(0,s.jsx)(ex,{userAccount:t}),(0,s.jsx)(B,{userAccount:t}),(0,s.jsx)(ei,{userAccount:t})]})}var ep=r(25442),eh=r(86501),em=r(89642),eg=function(e){return e.Statistics="Statistics",e.MyPredictions="MyPredictions",e.Contributions="Contributions",e.Following="Following",e.Editor="Editor",e}({});function ey(){let{userAccount:e,isUserLoading:t}=(0,l.useContext)(em.t),[r,n]=(0,l.useState)(ep.H.Upcoming),o=(null==e?void 0:e.editor)||(null==e?void 0:e.activeCrowdsourcer),a=(null==e?void 0:e.editor)?eg.Editor:(null==e?void 0:e.activeCrowdsourcer)?eg.Contributions:eg.MyPredictions;return t?(0,s.jsx)(y.E,{uniqueKey:"profile-desktop-tabs-cl",br:"lg",elevation:2}):(0,s.jsx)(b.Zp,{children:(0,s.jsxs)(f.tU,{variant:"primary",initialValue:a,fullWidthTabs:!0,children:[o&&(0,s.jsx)(i.az,{borderBottom:"1px solid",borderBottomColor:"neutrals.nLv4",children:(0,s.jsxs)(f.tU.List,{mx:"lg",underline:!0,children:[(null==e?void 0:e.editor)&&(0,s.jsx)(f.tU.Tab,{tabKey:eg.Editor,children:(0,s.jsx)(v.A,{id:"user_status_editor"})}),(null==e?void 0:e.activeCrowdsourcer)&&(0,s.jsx)(f.tU.Tab,{tabKey:eg.Contributions,children:(0,s.jsx)(v.A,{id:"contributions_tab_name"})}),(0,s.jsx)(f.tU.Tab,{tabKey:eg.MyPredictions,children:(0,s.jsx)(v.A,{id:"predictions"})})]})}),(null==e?void 0:e.editor)&&(0,s.jsx)(f.tU.Panel,{tabKey:eg.Editor,children:(0,s.jsx)(A.GN,{})}),(null==e?void 0:e.activeCrowdsourcer)&&(0,s.jsx)(f.tU.Panel,{tabKey:eg.Contributions,children:(0,s.jsx)(ej,{userAccount:e})}),(0,s.jsx)(f.tU.Panel,{tabKey:eg.MyPredictions,children:(0,s.jsxs)(i.so,{direction:"column",gap:"md",children:[(0,s.jsx)(eh.g,{}),(0,s.jsx)(A.ET,{activeTab:r,setActiveTab:n})]})})]})})}var ef=r(23228),ev=r(76940),eb=r(82952);let eA=e=>{let{id:t,icon:r,routeName:n,eventType:l}=e;return(0,s.jsxs)(i.so,{justify:"space-between",children:[(0,s.jsxs)(i.so,{align:"center",gap:"sm",children:[r,(0,s.jsx)(_.EY,{textStyle:"display.small",children:(0,s.jsx)(v.A,{id:t})})]}),(0,s.jsx)(X.N_,{routeKey:ea.UE[n],onClick:()=>(0,ed.Wk)({type:l,location:"profile"}),children:(0,s.jsx)(_.$n,{variant:"clear",px:"sm",children:(0,s.jsx)(v.A,{id:"view_all"})})})]})},e_=e=>{let{children:t}=e;return(0,s.jsx)(i.so,{direction:"column",gap:"xs",children:t})};function ek(){let{userAccount:e}=(0,l.useContext)(em.t);return e?(0,s.jsxs)(b.Zp,{children:[(0,s.jsx)(b.Zp.Header,{titleId:"leaderboards_title"}),(0,s.jsxs)(i.so,{direction:"column",gap:"md",p:"sm",children:[(0,s.jsxs)(e_,{children:[(0,s.jsx)(eA,{id:"topPredictors",eventType:"top_predictors",icon:(0,s.jsx)(eo.A,{userBadge:n.lqH.Predictor,size:24}),routeName:el.xW.TopPredictors}),(0,s.jsx)(eb.A,{userAccount:e})]}),(0,s.jsxs)(e_,{children:[(0,s.jsx)(eA,{id:"top_contributors_leaderboard",eventType:"top_contributors",icon:(0,s.jsx)(eo.A,{userBadge:n.lqH.Crowdsourcer,size:24}),routeName:el.xW.TopContributors}),(0,s.jsx)(ef.A,{userAccount:e})]}),(0,s.jsxs)(e_,{children:[(0,s.jsx)(eA,{id:"top_editors_leaderboard",eventType:"top_editors",icon:(0,s.jsx)(eo.A,{userBadge:n.lqH.Editor,size:24}),routeName:el.xW.TopEditors}),(0,s.jsx)(ev.A,{userAccount:e})]})]})]}):null}var ew=r(88339),eS=r(16202);function eC(e){let{assetMeta:t}=e;return t?(0,s.jsx)(b.Zp,{isInverseDesktop:!0,children:(0,s.jsxs)(i.so,{justify:"center",align:"center",gap:"sm",h:"5xl",children:[(0,s.jsx)(i.az,{w:"[22px]",children:(0,s.jsx)(f._V,{src:t.imageUrl.svg,width:22,alt:t.title})}),(0,s.jsx)(_.EY,{display:"block",textStyle:"display.medium",children:t.title})]})}):null}function eE(){return(0,s.jsx)(b.Zp,{isInverseDesktop:!0,children:(0,s.jsxs)(i.az,{p:"sm",minH:"7xl",children:[(0,s.jsx)(i.so,{justify:"center",children:(0,s.jsx)(f._V,{src:"/static/images/weekly-challenge/predictions-cta.svg",h:36,w:52,alt:"Weekly challenge trophies"})}),(0,s.jsx)(_.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",mt:"xs",textAlign:"center",children:(0,s.jsx)(v.A,{id:"weekly_challenge_visiting_not_joined"})})]})})}var eT=r(79041);function eY(){return(0,s.jsxs)(i.az,{children:[(0,s.jsx)(b.Zp.Header,{titleId:"weekly_challenge"}),(0,s.jsxs)(i.so,{justify:"center",align:"center",gap:"xs",children:[(0,s.jsx)(C.zQC,{icon:"time-outline",h:16,w:16,fill:"onSurface.nLv1"}),(0,s.jsx)(_.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv1",children:(0,s.jsx)(eT.k,{})})]})]})}var eP=r(72110);function eL(e){let{points:t,isLoading:r}=e;return r?(0,s.jsx)(s.Fragment,{children:"\xa0"}):void 0===t?(0,s.jsx)(s.Fragment,{children:"-"}):(0,s.jsx)(s.Fragment,{children:(0,k.M)(t,2)})}function eI(e){let{rank:t,isLoading:r}=e;return r?(0,s.jsx)(s.Fragment,{children:"\xa0"}):void 0===t?(0,s.jsx)(s.Fragment,{children:"-"}):(0,s.jsx)(s.Fragment,{children:t})}function eq(e){let{rank:t,points:r,isLoading:n}=e;return(0,s.jsxs)(i.so,{justify:"space-between",gap:"sm",children:[(0,s.jsxs)(eP.I,{children:[(0,s.jsx)(_.EY,{textStyle:"display.medium",children:(0,s.jsx)(eI,{rank:t,isLoading:n})}),(0,s.jsx)(_.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,s.jsx)(v.A,{id:"basic.rank"})})]}),(0,s.jsxs)(eP.I,{children:[(0,s.jsx)(_.EY,{textStyle:"display.medium",children:(0,s.jsx)(eL,{points:r,isLoading:n})}),(0,s.jsx)(_.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,s.jsx)(v.A,{id:"points"})})]})]})}var eF=r(72629);function ez(){var e,t;let{userAccount:r,isUserLoading:d,userId:c}=(0,l.useContext)(em.t),u=(0,o.d4)(ew.$F),x=(null==u?void 0:u.id)===c,{data:j}=(0,a.Ay)(n.rGM.leagueAssets()),{data:p,isLoading:h,error:m}=(0,a.Ay)((null==r?void 0:r.leaderboardId)?n.rGM.leaderboardRankings(null==r?void 0:r.leaderboardId):null),g=null==p?void 0:p.league.level,y=null==j?void 0:j.meta.find(e=>e.level===g),f=null!=(t=null==p||null==(e=p.rankings)?void 0:e.findIndex(e=>e.id===c))?t:-1,v=f>-1?null==p?void 0:p.rankings[f].score:void 0,A=null==r?void 0:r.weeklyChallengeMaxWeeklyStreak,_=(d||(null==r?void 0:r.leaderboardId))&&!m,k=!_&&!x,w=x&&(d||(null==r?void 0:r.leaderboardId))&&!m,S=(null==r?void 0:r.leaderboardId)!==void 0||void 0!==A,C=_||k||w||S;return(0,s.jsxs)(b.Zp,{children:[x?(0,s.jsx)(i.az,{px:"sm",pt:"sm",children:(0,s.jsx)(eS.V,{location:"profile"})}):(0,s.jsx)(eY,{}),C&&(0,s.jsxs)(i.so,{direction:"column",gap:"sm",overflow:"auto",p:"sm",children:[_&&(0,s.jsx)(eC,{assetMeta:y}),k&&(0,s.jsx)(eE,{}),S&&(0,s.jsx)(eF.A,{currentWeeklyStreak:null==r?void 0:r.weeklyChallengeCurrentWeeklyStreak,maxWeeklyStreak:null==r?void 0:r.weeklyChallengeMaxWeeklyStreak,hasCurrentStreakInfo:!0,onCurrentStreakClick:()=>{(0,ed.ke)({action:"click",location:x?"own_profile":"other_profile",type:"streak_info"})}}),w&&(0,s.jsx)(eq,{rank:f>-1?f+1:void 0,points:v,isLoading:d||h})]})]})}var eH=r(75751);let eD={[n.bq7.Tournaments]:"competitions",[n.bq7.Teams]:"teams",[n.bq7.Players]:"athletes"},eM=e=>{let{entityType:t}=e;return(0,s.jsx)(i.so,{align:"center",justify:"space-between",p:"lg",pb:"sm",h:"3xl",children:(0,s.jsx)(_.EY,{display:"block",textStyle:"display.small",children:(0,s.jsx)(v.A,{id:eD[t]||" "})})})};function eW(e){let{entityTypes:t}=e;return(0,s.jsx)(s.Fragment,{children:t.map(e=>(0,s.jsxs)(l.Fragment,{children:[(0,s.jsx)(eM,{entityType:e}),(0,s.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"},eZ=e=>{let{entityType:t}=e,r=eK[t];return(0,s.jsx)(i.so,{py:"xl",px:"lg",justify:"center",align:"center",style:{minHeight:96},children:(0,s.jsx)(_.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:r&&(0,s.jsx)(v.A,{id:r})})})};var eV=r(18645),eN=r(52695);let eG=e=>{let{favoritesListEntity:t}=e,{type:r,entity:l}=t,{id:o,name:a,sport:d}=l,c={w:32,h:32,id:o,alt:a+" Image"};return(0,s.jsxs)(i.az,{p:"sm",br:"lg",position:"relative",bg:{base:"surface.s2",_hover:"surface.s0"},cursor:"pointer",style:{height:96,width:120},children:[(0,s.jsx)(i.az,{position:"absolute",top:"sm",left:"sm",children:r===n.bq7.Players?(0,s.jsx)(eV.pY,{w:16,h:16,id:l.teamId}):(0,s.jsx)(C.Egi,{sport:d.slug,fill:"onSurface.nLv3",height:16,width:16})}),(0,s.jsxs)(i.so,{direction:"column",align:"center",children:[(0,s.jsxs)(i.so,{align:"center",justify:"center",h:"3xl",w:"3xl",children:[r===n.bq7.Tournaments&&(0,s.jsx)(eV.eD,{...c}),r===n.bq7.Teams&&(0,s.jsx)(eV.pY,{...c}),r===n.bq7.Players&&(0,s.jsx)(eV.tg,{...c})]}),(0,s.jsx)(i.so,{align:"center",h:"2xl",mt:"sm",children:(0,s.jsx)(_.EY,{textStyle:"assistive.default",textAlign:"center",overflowWrap:"anywhere",lineClamp:2,title:a,children:r===n.bq7.Tournaments?(0,s.jsx)(eN.O,{uniqueTournament:l}):a})})]})]})};function eU(e){let{favoritesListEntity:t}=e,{type:r,entity:i}=t,{id:l,slug:o,sport:a}=i;switch(r){case n.bq7.Tournaments:return(0,s.jsx)(X.N_,{routeKey:"uniqueTournament",params:{id:l,tournament:o,category:i.categorySlug},translatedParams:{sport:a.slug},children:(0,s.jsx)(eG,{favoritesListEntity:t})});case n.bq7.Teams:if(a.slug===n.QCR.Motorsport)return(0,s.jsx)(X.N_,{routeKey:i.type===n.YVh.Person?"driver":"motorsport.team",params:{id:l,slug:o},children:(0,s.jsx)(eG,{favoritesListEntity:t})});return(0,s.jsx)(X.N_,{routeKey:"team",params:{id:l,team:o},translatedParams:{sport:a.slug},children:(0,s.jsx)(eG,{favoritesListEntity:t})});case n.bq7.Players:return(0,s.jsx)(X.N_,{routeKey:"player",params:{slug:o,id:l},translatedParams:{sport:a.slug},children:(0,s.jsx)(eG,{favoritesListEntity:t})});default:return null}}let eB=(e,t,r)=>{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===r||e.type===r).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 e$(e){let{subscriptions:t,entityType:r}=e,l=eB(r,t,n.YVh.Regular),o=!!(null==l?void 0:l.length);if(r===n.bq7.Players){let e=eB(n.bq7.Teams,t,n.YVh.Person),r=eB(n.bq7.Teams,t,n.YVh.Double);l.push(...r,...e)}return l.sort((e,t)=>t.entity.userCount-e.entity.userCount),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eM,{entityType:r}),o?(0,s.jsx)(_.tR,{buttonStyle:"solid",showButtons:"desktop",children:(0,s.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,s.jsx)(eU,{favoritesListEntity:t},t.entity.id):null})})}):(0,s.jsx)(eZ,{entityType:r})]})}function eO(){let{userId:e,isUserLoading:t}=(0,l.useContext)(em.t),{data:r,isLoading:o}=(0,a.Ay)(n.VfS.subscriptions(e)),d=null==r?void 0:r.subscriptions;return(0,s.jsx)(eH.t,{tag:"FavoritesList",children:(0,s.jsxs)(i.az,{bg:"surface.s1",br:{md:"xl"},elevation:{md:"2"},pb:"sm",children:[(0,s.jsx)(_.EY,{display:{base:"none",md:"block"},pt:"md",pb:"xs",textStyle:"display.medium",textAlign:"center",children:(0,s.jsx)(v.A,{id:"app_favourites"})}),t||o?(0,s.jsx)(eW,{entityTypes:[n.bq7.Tournaments,n.bq7.Teams,n.bq7.Players]}):(0,s.jsxs)(l.Fragment,{children:[(0,s.jsx)(e$,{entityType:n.bq7.Tournaments,subscriptions:d}),(0,s.jsx)(e$,{entityType:n.bq7.Teams,subscriptions:d}),(0,s.jsx)(e$,{entityType:n.bq7.Players,subscriptions:d})]},e)]})})}function eR(){let{userAccount:e}=(0,l.useContext)(em.t);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(A.iy,{}),(0,s.jsxs)(j.xA,{pb:"4xl",children:[(0,s.jsxs)(j.fv,{flexGrow:2,children:[(0,s.jsx)(A.bj,{}),(0,s.jsx)(eO,{}),(0,s.jsx)(g.S,{}),(0,s.jsx)(p.A,{}),(0,s.jsx)(h.A,{})]}),(0,s.jsx)(j.fv,{flexGrow:3,children:(0,s.jsx)(ey,{})}),(0,s.jsxs)(j.fv,{flexGrow:2,children:[(0,s.jsx)(ez,{}),(0,s.jsx)(m.pk,{utIds:null}),(0,s.jsx)(ek,{}),(null==e?void 0:e.editor)&&(0,s.jsx)(x.s,{})]})]})]})}var eQ=r(96913),eX=r(28132);function eJ(){let{userAccount:e,userId:t,isUserLoading:r}=(0,l.useContext)(em.t),n=(0,o.d4)(ew.$F),a=(null==n?void 0:n.id)===t,[d,c]=(0,l.useState)(),u=[{tabKey:eX.H.Overview,item:"overview",isHidden:!a},{tabKey:eX.H.Editor,item:"user_status_editor",isHidden:!(null==e?void 0:e.editor)},{tabKey:eX.H.Contributions,item:"contributions_tab_name",isHidden:!(null==e?void 0:e.activeCrowdsourcer)},{tabKey:eX.H.MyPredictions,item:"predictions"},{tabKey:eX.H.Following,item:"app_favourites",isHidden:a}];return((0,l.useEffect)(()=>{!r&&e&&c(a?eX.H.Overview:(null==e?void 0:e.editor)?eX.H.Editor:(null==e?void 0:e.activeCrowdsourcer)?eX.H.Contributions:eX.H.MyPredictions)},[t,r]),!n||r)?null:(0,s.jsxs)(i.az,{mb:"2xl",pb:"sm",children:[(0,s.jsx)(A.bj,{}),d&&(0,s.jsx)(i.az,{children:(0,s.jsxs)(eQ.A,{id:0,tabs:u,location:eQ.m.ProfilePage,initialTabKey:d,customControls:[d,c],noSportMenu:!0,bg:"surface.s0",children:[(0,s.jsx)(f.tU.Panel,{tabKey:eX.H.Overview,children:(0,s.jsx)(A.Aw,{})}),(0,s.jsx)(f.tU.Panel,{tabKey:eX.H.Editor,children:(0,s.jsx)(A.GN,{})}),(0,s.jsx)(f.tU.Panel,{tabKey:eX.H.MyPredictions,children:(0,s.jsx)(A.Ay,{})}),(0,s.jsx)(f.tU.Panel,{tabKey:eX.H.Following,children:(0,s.jsx)(eO,{})}),e&&(0,s.jsx)(f.tU.Panel,{tabKey:eX.H.Contributions,children:(0,s.jsx)(ej,{userAccount:e})})]})})]})}function e0(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.$B,{children:(0,s.jsx)(eJ,{})}),(0,s.jsx)(u.h6,{children:(0,s.jsx)(eR,{})})]})}var e4=r(33752),e2=r(25862),e9=r(96205),e1=r(30087),e6=r(28157),e3=r(70679);let e7=()=>(0,s.jsx)(d.YW,{children:(0,s.jsx)(i.az,{mt:{md:"4xl"},children:(0,s.jsx)(e9.A,{})})});function e5(e){let{userId:t}=e,r=(0,o.wA)(),{isDesktop:n}=(0,_.$c)();return t||n?(0,s.jsx)(e7,{}):(0,s.jsxs)(d.YW,{children:[(0,s.jsx)(i.az,{bg:"surface.s1",children:(0,s.jsxs)(i.so,{direction:"column",gap:"sm",px:"lg",pt:"lg",pb:"xl",children:[(0,s.jsx)(e4.B,{children:(0,s.jsx)(e4.B.Item,{children:(0,s.jsx)(v.A,{id:"profile_my_profile"})})}),(0,s.jsx)(i.so,{justify:"center",py:"sm",h:"11xl",children:(0,s.jsx)(e3.A,{size:102})}),(0,s.jsx)(_.EY,{textStyle:"display.medium",textAlign:"center",pt:"md",pb:"sm",children:(0,s.jsx)(v.A,{id:"logged_out_profile_header"})}),(0,s.jsx)(e1.A,{}),(0,s.jsx)(_.$n,{size:"secondary",onClick:()=>{(0,ed.ke)({action:"click",location:"user_profile",type:"login_button"}),r((0,e2.aS)())},children:(0,s.jsx)(v.A,{id:"user.signIn"})})]})}),(0,s.jsxs)(b.BU,{children:[(0,s.jsx)(e6.A,{}),(0,s.jsx)(m.pk,{utIds:null})]})]})}var e8=r(65097);let te=e=>{let{userId:t}=e,{data:r,isLoading:i}=(0,a.Ay)(n.VfS.details(t),{revalidateOnFocus:!0});return r||i?(0,s.jsxs)(d.YW,{children:[(0,s.jsx)(c.Ay,{metaKey:"user.profile"}),(0,s.jsx)(em.t.Provider,{value:{userId:t,userAccount:null==r?void 0:r.userAccount,isUserLoading:i},children:(0,s.jsx)(e0,{})})]}):(0,s.jsx)(e8.default,{statusCode:404})},tt=e=>{let{userId:t}=e,r=(0,o.wA)(),n=(0,o.d4)(ew.$F),a=(0,o.d4)(ew.hA);return((0,l.useEffect)(()=>{r((0,e2.Vy)(null))},[]),a)?(null==n?void 0:n.id)?(0,s.jsx)(te,{userId:t||n.id}):(0,s.jsx)(e5,{userId:t}):(0,s.jsx)(i.az,{h:"[100vh]"})};tt.getInitialProps=e=>{let{query:t}=e;return{userId:t.userId||""}};let tr=tt},52226:(e,t,r)=>{"use strict";r.d(t,{G:()=>l});var s=r(6029),n=r(44194),i=r(76356);let l=e=>{let{currentStats:t,isOnColor:r}=e,l=r?"onColor.default":"neutrals.nLv1";return(0,s.jsxs)(i.so,{gap:"sm",children:[(0,s.jsx)(n.Ym,{minW:"[40px]",color:l,textStyle:"table.medium",textAlign:"center",children:t.total}),(0,s.jsx)(n.Ym,{minW:"[40px]",color:l,textStyle:"table.medium",textAlign:"center",children:t.percentage}),(0,s.jsxs)(n.Ym,{minW:"[40px]",color:l,textStyle:"table.medium",textAlign:"center",children:[t.roi>0?"+":"",t.roi]})]})}},52951:(e,t,r)=>{"use strict";r.d(t,{xV:()=>c,an:()=>u,Ay:()=>x});var s=r(6029),n=r(55575),i=r.n(n),l=r(95669),o=r.n(l),a=r(55729),d=r(947);let c=(0,a.createContext)({}),u=c.Provider,x=e=>{let{titleKey:t,descriptionKey:r,keywordsKey:n,metaKey:l,values:u={},entityName:x}=e,{meta:j,seoContent:p}=(0,a.useContext)(c),h=(0,d.A)(),m=x?"".concat(x," | Sofascore"):"Sofascore",g=h.formatMessage({id:"title.".concat(t||l),defaultMessage:m},u),y=h.formatMessage({id:"description.".concat(r||l),defaultMessage:m},u),f=h.formatMessage({id:"keywords.".concat(n||l),defaultMessage:m},u);return(0,s.jsxs)(o(),{children:[(0,s.jsx)("title",{children:i()((null==p?void 0:p.title)||(null==j?void 0:j.title)||g)}),(null==p?void 0:p.description)||(null==j?void 0:j.description)?(0,s.jsx)("meta",{name:"description",content:(null==p?void 0:p.description)||(null==j?void 0:j.description)},"description"):h.messages["description.".concat(r||l)]&&(0,s.jsx)("meta",{name:"description",content:y},"description"),(null==j?void 0:j.keywords)?(0,s.jsx)("meta",{name:"keywords",content:j.keywords}):h.messages["keywords.".concat(n||l)]&&(0,s.jsx)("meta",{name:"keywords",content:f})]})}},54519:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/profile",function(){return r(42196)}])},55575:(e,t,r)=>{var s=r(60567),n=r(27869),i=/&(?:amp|lt|gt|quot|#39);/g,l=RegExp(i.source);e.exports=function(e){return(e=s(e))&&l.test(e)?e.replace(i,n):e}},59794:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,I:()=>o});var s=r(6029),n=r(44194),i=r(90248),l=r(40834);let o=()=>(0,s.jsx)(n.EY,{color:"neutrals.nLv3",textStyle:"table.medium",textAlign:"end",truncate:!0,children:(0,s.jsx)(i.A,{id:"points"})});function a(){return(0,s.jsx)(l.A,{children:(0,s.jsx)(o,{})})}},65097:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var s=r(6029),n=r(14092),i=r(44194),l=r(76356),o=r(95669),a=r.n(o),d=r(947),c=r(90248),u=r(54409),x=r(76868),j=r(29129),p=r(70010),h=r(70591);function m(e){let{statusCode:t}=e;n.O({statusCode:t});let r=(0,d.A)().formatMessage({id:404===t?"error.pageNotFound":"error.anErrorOccurred"});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(a(),{children:[(0,s.jsx)("title",{children:"".concat(t," | ").concat(r||"")}),(0,s.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,s.jsx)("div",{id:"errorPage",children:(0,s.jsx)(j.YW,{children:(0,s.jsx)(p.xA,{children:(0,s.jsx)(p.fv,{flexGrow:1,textAlign:"center",my:"2xl",children:(0,s.jsx)(x.p,{graphic:"no-connection",children:(0,s.jsxs)(l.BJ,{children:[(0,s.jsx)(i.H1,{textStyle:"display.extraLarge",color:"neutrals.nLv3",alignSelf:"center",mt:"[28px]",mb:"2xs",children:t}),(0,s.jsx)(i.H3,{display:"block",textStyle:"display.medium",color:"neutrals.nLv3",alignSelf:"center",children:(0,s.jsx)(c.A,{id:"error.anErrorOccurred"})}),(0,s.jsx)(i.EY,{alignSelf:"center",mb:"2xl",display:"block",children:404===t?(0,s.jsx)(c.A,{id:"error.pageCannotBeFound"}):(0,s.jsx)(c.A,{id:"error.somethingWrongWithPage"})}),(0,s.jsx)(h.N_,{routeKey:"home",children:(0,s.jsxs)(i.$n,{children:[(0,s.jsx)(u.pa2,{mt:"-3px"})," ",(0,s.jsx)(c.A,{id:"error.backToSofascore"})]})})]})})})})})})]})}m.getInitialProps=async e=>{await n.O(e);let{res:t,err:r}=e;return{statusCode:t?t.statusCode:r?r.statusCode:null}}},70917:(e,t,r)=>{var s=r(74283),n=r(87567);e.exports=function(e){return null==e?[]:s(e,n(e))}},73606:(e,t,r)=>{"use strict";r.d(t,{V:()=>u,c:()=>x});var s=r(6029),n=r(44194),i=r(76356),l=r(99064),o=r(90248),a=r(494),d=r(2294),c=r(40834);let u=()=>{let e=(0,a.d4)(d.BF);return(0,s.jsxs)(i.so,{gap:"sm",children:[(0,s.jsx)(n.EY,{display:"block",color:"neutrals.nLv3",textStyle:"table.medium",textAlign:"end",truncate:!0,children:(0,s.jsx)(o.A,{id:"basic.voted"})}),(0,s.jsx)(l.cG,{vertical:!0}),(0,s.jsx)(n.EY,{display:"block",color:"neutrals.nLv3",textStyle:"table.medium",textAlign:"end",truncate:!0,children:(0,s.jsx)(o.A,{id:"basic.correct"})}),(0,s.jsx)(l.cG,{vertical:!0}),(0,s.jsx)(n.EY,{display:"block",color:"neutrals.nLv3",textStyle:"table.medium",textAlign:"end",truncate:!0,children:(0,s.jsx)(o.A,{id:e?"points":"virtual_roi_short"})})]})},x=()=>(0,s.jsx)(c.A,{children:(0,s.jsx)(u,{})})},74283:(e,t,r)=>{var s=r(88601);e.exports=function(e,t){return s(t,function(t){return e[t]})}},76940:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var s=r(6029),n=r(494),i=r(88339),l=r(83542),o=r(59794),a=r(82304);function d(e){let{userAccount:t,isCard:r}=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,s.jsx)(a._,{isCard:r,rank:u.currentRanking,header:(0,s.jsx)(o.I,{}),children:(0,s.jsx)(l.f,{score:u.score})}):(0,s.jsx)(a.q,{id:"profile_leaderboards_no_editor_stats",isCard:r})}},79041:(e,t,r)=>{"use strict";r.d(t,{k:()=>d});var s=r(6029),n=r(21377),i=r(90248),l=r(45860),o=r(39419);let a=()=>{var e;let{data:t}=(0,l.Ay)(n.rGM.activeLeagueDetails());if(!(null==t?void 0:t.meta))return;let r=new Date().getTime(),s=(null==(e=t.meta)?void 0:e.endDateTimestamp)*1e3;return{hasEnded:s{let e=a();return e?(0,s.jsxs)(s.Fragment,{children:[e.hasEnded?(0,s.jsx)(i.A,{id:"next_weekly_challenge"}):(0,s.jsx)(i.A,{id:"weekly_challenge_time_left"}),": ",(0,s.jsx)(o.M,{hasChallengeEnded:e.hasEnded,challengeEndTime:e.endTimestamp})]}):(0,s.jsx)(s.Fragment,{children:"\xa0"})}},82304:(e,t,r)=>{"use strict";r.d(t,{_:()=>d,q:()=>c});var s=r(6029),n=r(44194),i=r(76356),l=r(90248),o=r(65789);function a(e){let{isCard:t,children:r}=e;return t?(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)(o.Zp.Header,{titleId:"profile_leaderboards_your_stats"}),(0,s.jsx)(i.az,{pt:"sm",pb:"lg",px:"lg",children:r})]}):(0,s.jsx)(s.Fragment,{children:r})}function d(e){let{isCard:t,rank:r,header:d,children:c}=e,u=void 0===r||"string"==typeof r&&isNaN(+r)?"":"#";return(0,s.jsx)(a,{isCard:t,children:(0,s.jsxs)(o.Zp,{isInverseDesktop:!0,children:[(0,s.jsxs)(i.so,{justify:"space-between",borderBottom:"neutrals.nLv4",p:"lg",children:[(0,s.jsx)(n.EY,{textStyle:"table.medium",color:"neutrals.nLv3",pe:"sm",truncate:!0,children:(0,s.jsx)(l.A,{id:"profile_current_rank"})}),d]}),(0,s.jsxs)(i.so,{py:"md",px:"lg",justify:"space-between",align:"center",children:[(0,s.jsxs)(n.EY,{display:"block",me:"md",w:"[22px]",children:[u,null!=r?r:"-"]}),c]})]})})}function c(e){let{id:t,isCard:r}=e;return(0,s.jsx)(a,{isCard:r,children:(0,s.jsx)(o.Zp,{isInverseDesktop:!0,children:(0,s.jsx)(i.so,{align:"center",justify:"center",h:"[89px]",children:(0,s.jsx)(n.EY,{textStyle:"body.mediumParagraph",color:"neutrals.nLv3",children:(0,s.jsx)(l.A,{id:t})})})})})}},82952:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var s=r(6029),n=r(494),i=r(88339),l=r(52226),o=r(73606),a=r(82304);function d(e){let{userAccount:t,isCard:r}=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,s.jsx)(a._,{isCard:r,rank:u.ranking,header:(0,s.jsx)(o.V,{}),children:(0,s.jsx)(l.G,{currentStats:u})}):(0,s.jsx)(a.q,{id:"profile_leaderboards_no_predictions",isCard:r})}},83542:(e,t,r)=>{"use strict";r.d(t,{f:()=>l});var s=r(6029),n=r(98914),i=r(44194);let l=e=>{let{score:t,isOnColor:r}=e;return(0,s.jsx)(i.EY,{minW:"4xl",color:r?"onColor.default":"neutrals.nLv1",textStyle:"table.medium",textAlign:"end",children:(0,n.M)(t)})}},91138:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,u:()=>o});var s=r(6029),n=r(99064),i=r(90248),l=r(40834);let o=()=>(0,s.jsxs)(n.so,{gap:"sm",children:[(0,s.jsx)(n.EY,{color:"onSurface.nLv3",font:"table.medium",align:"right",ellipsis:!0,children:(0,s.jsx)(i.A,{id:"contribution_profile_reputation_score_leaderboard"})}),(0,s.jsx)(n.cG,{vertical:!0}),(0,s.jsx)(n.EY,{color:"onSurface.nLv3",font:"table.medium",align:"right",ellipsis:!0,children:(0,s.jsx)(i.A,{id:"points"})})]});function a(){return(0,s.jsx)(l.A,{children:(0,s.jsx)(o,{})})}},91407:(e,t,r)=>{"use strict";r.d(t,{t:()=>o});var s=r(64082),n=r(6029),i=r(21377),l=r(99064);let o=e=>{var{id:t,name:r,size:o=56,style:a,className:d,grayscale:c,isFantasy:u,placeholder:x="/static/images/placeholders/player.svg"}=e,j=(0,s.T)(e,["id","name","size","style","className","grayscale","isFantasy","placeholder"]);let p=j.w||j.width||o,h=j.h||j.height||o;return(0,n.jsx)(l._V,Object.assign({fallback:(0,n.jsx)(l._V,{style:{borderRadius:"50%"},w:p,h:h,src:x,alt:r}),src:t?i.qvj.image(t,u):"",alt:r,w:p,h:h,br:"50%",border:"onSurface.nLv4",style:a,className:d,isGrayscale:c},j))}}},e=>{var t=t=>e(e.s=t);e.O(0,[4092,8446,6591,3170,8757,3338,9915,988,9469,3554,636,6593,8792],()=>t(54519)),_N_E=e.O()}]);