!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]="e3d227b1-9eae-46ef-984e-b2177906dee0",e._sentryDebugIdIdentifier="sentry-dbid-e3d227b1-9eae-46ef-984e-b2177906dee0")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[37790],{13731:(e,t,o)=>{var r=o(53325),i=o(25725),n=Object.prototype.hasOwnProperty;e.exports=i(function(e,t,o){n.call(e,o)?e[o].push(t):r(e,o,[t])})},15322:(e,t,o)=>{"use strict";o.d(t,{l:()=>T,A:()=>O});var r=o(6029),i=o(53192),n=o(91407),s=o(94400),a=o(91603),l=o(46787),d=o(22375),c=o(10174),h=o(76356),g=o(55729),p=o(947),f=o(90248),u=o(90510),m=o(494),x=o(34431),y=o(73498),_=o(85658),b=o(52466),v=o(28377),j=o(17152),k=o(90438),w=o(15340),S=o(48524),R=o(73559),F=o(36882),B=o(30821),L=o(64006),A=o(72753),C=o(94156),P=o(57719),D=o(83981),M=o(61379);function T(e){let{icon:t,graphic:o,text:i}=e;return(0,r.jsxs)(h.so,{align:"center",gap:"xs",px:"sm",_first:{pl:"0"},_last:{pr:"0"},children:[(0,r.jsx)(r.Fragment,{children:void 0!==t&&(0,r.jsx)(t,{w:16,h:16,fill:"onSurface.nLv3"})}),(0,r.jsx)(r.Fragment,{children:o}),(0,r.jsx)(c.EY,{textStyle:"display.micro",color:"neutrals.nLv3",children:i})]})}function O(e){var t,o,O;let{player:E,lastYearSummary:W}=e,[G,I]=(0,g.useState)(!1),z=(0,p.A)(),{wasFollowed:H}=(0,R.e)({entity:l.bq7.Players,id:E.id}),U=(0,m.d4)(A.JV),Y=E.team.sport.slug,N=E.deceased,q=E.retired,K=E.dateOfDeathTimestamp?(0,d.pp)(E.dateOfDeathTimestamp).getFullYear():void 0,J=l.USm.includes(E.team.sport.slug),Q=k.mz.includes(Y),X=(0,d.KW)(E.dateOfBirthTimestamp),Z=(null==W?void 0:W.length)?(0,M.AG)(W.filter(e=>e.type===l.XFZ.Event).map(e=>e.value)):void 0,$=Y===l.QCR.Cricket;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.F,{image:(0,r.jsx)(n.t,{id:E.id,name:E.slug,size:112,grayscale:E.deceased}),name:(0,r.jsxs)(h.so,{gap:"lg",align:"center",children:[(0,r.jsx)(C.c,{entity:E}),"number"==typeof Z&&(0,r.jsxs)(h.so,{align:"center",children:[(0,r.jsx)(s.A,{rating:Z,format:"sideBox"}),(0,r.jsx)(j.D,{type:j.D.type.AverageRatingPlayer,rating:Z,renderImage:e=>(0,r.jsx)(n.t,{id:E.id,...e}),children:e=>{let{setIsOpen:t}=e;return(0,r.jsx)(c.K0,{variant:"clear",onClick:()=>t(!0),children:(0,r.jsx)(b.G_L,{fill:"onSurface.nLv3",w:"24",h:"24"})})}})]})]}),subtitleItems:E.team&&!E.deceased&&(0,r.jsx)(L.gT,{sport:Y,team:E.team,children:(0,r.jsxs)(h.so,{align:"center",gap:"sm",color:"neutrals.nLv1",_hover:{color:E.team?"primary.default":void 0},children:[(0,r.jsx)(a.p,{id:E.team.id,name:E.team.name,national:E.team.national,size:32}),(0,r.jsxs)(h.so,{direction:"column",justify:"center",gap:"2xs",children:[(0,r.jsx)(c.EY,{textStyle:E.contractUntilTimestamp?"body.medium":"display.medium",color:"[inherit]",children:(0,r.jsx)(C.c,{entity:E.team})}),E.contractUntilTimestamp&&(0,r.jsxs)(c.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",lineHeight:1,children:[(0,r.jsx)(f.A,{id:"contract_until"}),": ",(0,r.jsx)(u.XU,{value:1e3*E.contractUntilTimestamp,...d.or.dateWithShortMonth,timeZone:"UTC"})]})]})]})}),actions:[E.managerId&&(0,r.jsx)(L.N_,{routeKey:"manager",params:{id:E.managerId,slug:Y},children:(0,r.jsx)(y.u,{label:z.formatMessage({id:"manager_profile"}),children:(0,r.jsx)(b.AdY,{})})}),Q&&(0,r.jsx)(_.P2,{children:e=>(0,r.jsx)(c.m_,{content:z.formatMessage({id:"compare_players"}),strategy:"hover",disabled:e,children:(0,r.jsx)(x.O,{type:"player",id:E.id,sport:Y,iconOnly:!!E.managerId})})}),J&&!N&&!q&&(0,r.jsx)(_.P2,{children:e=>(0,r.jsx)(c.m_,{content:z.formatMessage({id:H?"remove_from_favourites":"add_to_favourites"}),strategy:"hover",disabled:e&&!H,children:(0,r.jsx)(w.e,{id:E.id,entity:l.bq7.Players,location:F.y.Header,type:F.b.Player,isNewButton:!0})})}),X>=16&&(0,r.jsx)(_.P2,{children:e=>(0,r.jsx)(c.m_,{content:z.formatMessage({id:"embed_on_website"}),strategy:"hover",disabled:e,children:(0,r.jsx)(y.u,{label:z.formatMessage({id:"embed_widget"}),onClick:()=>I(!0),children:(0,r.jsx)(b.Q4p,{style:{width:24,height:24}})})})})],footer:(0,r.jsxs)(r.Fragment,{children:[void 0!==E.country.alpha2&&(0,r.jsx)(T,{graphic:(0,r.jsx)(i.w,{alpha2:E.country.alpha2,name:E.country.alpha2,size:16,national:!0}),text:E.country.name}),!!E.dateOfBirthTimestamp&&(0,r.jsx)(T,{icon:b.X78,text:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.XU,{value:new Date(1e3*E.dateOfBirthTimestamp),...d.or.dateWithLongMonth,timeZone:"UTC"})," ","(",N?"number"==typeof K?(0,r.jsx)(f.A,{id:"deceasedYear",values:{year:K}}):(0,r.jsx)(f.A,{id:"deceased",values:{gender:null!=(O=E.gender)?O:E.team.gender}}):(0,d.KW)(E.dateOfBirthTimestamp),")"]})}),"string"==typeof E.position&&(0,r.jsx)(T,{icon:b.fEU,text:(0,r.jsx)(P.F,{id:E.position,sport:Y,gender:E.team.gender})}),$&&"string"==typeof(null==(t=E.cricketPlayerInfo)?void 0:t.batting)&&(0,r.jsx)(T,{icon:b.BM3,text:(0,r.jsx)(f.A,{id:E.cricketPlayerInfo.batting})}),$&&"string"==typeof(null==(o=E.cricketPlayerInfo)?void 0:o.bowling)&&(0,r.jsx)(T,{icon:b.Pvq,text:(0,r.jsx)(f.A,{id:E.cricketPlayerInfo.bowling})}),"number"==typeof E.height&&(0,r.jsx)(T,{icon:b.f6o,text:(0,r.jsx)(B.Z,{value:E.height,fromUnit:"cm"})}),"string"==typeof E.preferredFoot&&(0,r.jsx)(T,{icon:b.SdB,text:(0,r.jsx)(f.A,{id:"foot.".concat(E.preferredFoot.toLowerCase()),defaultMessage:E.preferredFoot})}),"string"==typeof E.jerseyNumber&&(0,r.jsx)(T,{icon:b.kDU,text:(0,r.jsx)(f.A,{id:"jersey_number",values:{jerseyNumber:E.jerseyNumber}})})]})}),J&&!N&&!q&&(0,r.jsxs)(S.K,{id:E.id,name:E.name,entity:l.bq7.Players,type:F.b.Player,children:[(0,r.jsx)(n.t,{size:32,mr:"sm",style:{verticalAlign:"top"},id:E.id,name:E.slug,grayscale:E.deceased}),(0,r.jsx)(c.EY,{textStyle:"display.medium",color:"primary.default",mr:"sm",children:(0,r.jsx)(C.c,{entity:E})})]}),(0,r.jsx)(D.Ay,{player:E,locale:U,isEmbedModalVisible:G,setIsEmbedModalVisible:I})]})}},15538:(e,t,o)=>{"use strict";o.d(t,{J:()=>r});var r=function(e){return e[e.SpecificRatingPlayer=0]="SpecificRatingPlayer",e[e.AverageRatingTeam=1]="AverageRatingTeam",e[e.AverageRating=2]="AverageRating",e[e.AverageRatingTeamLineups=3]="AverageRatingTeamLineups",e[e.AverageRatingPlayer=4]="AverageRatingPlayer",e}({})},17152:(e,t,o)=>{"use strict";o.d(t,{D:()=>F});var r=o(6029),i=o(87827),n=o(46787),s=o(10174),a=o(62042),l=o(76356),d=o(55729),c=o(947),h=o(90248),g=o(52466),p=o(82536),f=o(31830),u=o(18970),m=o(15538),x=o(19991),y=o(94565),_=o(28446),b=o(41735);let v=(0,b.default)(y.az).withConfig({componentId:"sc-12120f08-0"})(["animation:"," 660ms ease-in-out 1;animation-delay:330ms;animation-fill-mode:forwards;"],e=>{let t;return t=e.ratingPosition,(0,b.keyframes)(["from{left:0;}to{left:",";}"],t)}),j=["3.0","6.0","6.5","7.0","8.0","9.0"],k=(0,_.A)().domain([3,6,6.5,7,8,9,10]).range([0,16.66666,33.33333,50,66.66666,83.33333,100]);function w(e){let{rating:t,format:o}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(y.so,{id:"#container",position:"relative",mx:"sm",mb:"xs",children:[j.map((e,t)=>(0,r.jsx)(y.az,{flex:"1 1 1px",br:0===t?"xs 0 0 xs":5===t?"0 xs xs 0":void 0,bg:(0,x.Et)(e),h:"16"},e)),t&&(0,r.jsx)(v,{position:"absolute",top:"-2",ratingPosition:k(+t)+"%",w:"2",h:"20",bg:"neutral.variant"})]}),(0,r.jsx)(y.so,{justify:"space-between",children:[...j,"10"].map(e=>(0,r.jsxs)(y.EY,{color:(0,x.Et)(e),font:"tab.secondary",children:[e,"sideBox"===o&&"10"!==e?"0":""]},e))})]})}var S=o(96688);let R=(0,a.AH)({"& > div > div":{zoom:2.5},"& span":{zoom:2.5}});function F(e){let{type:t,rating:o=10,renderImage:a,children:x}=e,y=(0,c.A)(),[_,b]=(0,d.useState)(!1),{isDesktop:v}=(0,s.$c)(),j=(0,d.useContext)(u.Ws)===n.QCR.Football,k=(0,f.A)(),F=(0,S.y)(k),B="",L="box",A="sofascore_rating",C="";switch(t){case m.J.SpecificRatingPlayer:B="rating_general_text",C=[y.formatMessage({id:"rating_top_stats_general"}),y.formatMessage({id:"rating_top_stats_specific"})].join(" ");break;case m.J.AverageRatingTeam:B="average_team_rating_text",L="sideBox",C=[y.formatMessage({id:"rating_top_teams_general"}),y.formatMessage({id:"rating_top_teams_specific"})].join(" ");break;case m.J.AverageRating:B="average_team_rating_match",L="sideBox",A="average_sofascore_rating";break;case m.J.AverageRatingTeamLineups:B="average_team_rating_text",L="sideBox";break;case m.J.AverageRatingPlayer:B="average_player_rating_text",L="sideBox"}return(0,r.jsxs)(r.Fragment,{children:["function"==typeof x?(0,r.jsx)(r.Fragment,{children:x({isOpen:_,setIsOpen:b})}):null!=x?x:(0,r.jsx)(s.m_,{content:C,strategy:""!==C&&v?"hover":"controlled",isVisible:!1,children:(0,r.jsx)(s.K0,{mx:"xs",variant:"clear",onClick:()=>{b(!0)},children:(0,r.jsx)(g.G_L,{fill:"onSurface.nLv1"})})}),(0,r.jsxs)(p.A,{header:(0,r.jsx)(s.H3,{p:"lg",textStyle:"display.large",children:(0,r.jsx)(h.A,{id:A})}),isOpen:_,setIsOpen:b,footer:(0,r.jsx)(l.so,{justify:"flex-end",m:j?"[0 {spacing.lg} {spacing.lg} {spacing.lg}]":{base:"lg",mdDown:"[0 {spacing.lg} {spacing.lg} {spacing.lg}]"},children:(0,r.jsx)(s.$n,{w:{base:"auto",mdDown:"100%"},onClick:()=>{b(!1)},variant:v?"clear":void 0,children:(0,r.jsx)(h.A,{id:"ok_got_it_button"})})}),children:[(0,r.jsxs)(l.az,{maxW:{md:"[320px]"},px:"lg",mb:j?void 0:{mdDown:"2xl"},children:[B&&(0,r.jsx)(h.A,{id:B,values:{break:e=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("br",{}),(0,r.jsx)("br",{})]})}}),(0,r.jsxs)(l.so,{justify:"center",align:"center",pt:"4xl",pb:"xl",children:[(0,r.jsx)(l.az,{className:"sideBox"===L?R:void 0,children:(0,r.jsx)(i.G,{size:"xl",rating:o,format:L})}),null==a?void 0:a({size:40,ml:"lg"})]}),(0,r.jsx)(w,{rating:o,format:L})]}),j&&(0,r.jsx)(l.az,{px:"lg",py:"4xl",pb:"2xl",children:(0,r.jsxs)(s.Mz,{display:"block",color:"primary.default",textStyle:"display.small",href:F,target:"_blank",onClick:()=>{b(!1)},children:[(0,r.jsx)(h.A,{id:"rating_learn_more_button"}),(0,r.jsx)(g.CCT,{ml:"xs",w:"16",h:"16",fill:"primary.default"})]})})]})]})}F.type=m.J},18645:(e,t,o)=>{"use strict";o.d(t,{eD:()=>n.e,pY:()=>i.p,tg:()=>r.t});var r=o(91407),i=o(91603),n=o(33480)},25725:(e,t,o)=>{var r=o(81648),i=o(78492),n=o(68988),s=o(91544);e.exports=function(e,t){return function(o,a){var l=s(o)?r:i,d=t?t():{};return l(o,e,n(a,2),d)}}},39975:(e,t,o)=>{"use strict";o.d(t,{A:()=>l,q:()=>a});var r=o(6029),i=o(94565),n=o(55729),s=o(43072);let a=e=>{let{initialVisible:t=!1,defaultHeight:o=0,visibleOffset:a=1e3,persist:l=!1,loader:d,children:c,...h}=e,g={initialInView:t,rootMargin:"".concat(a,"px 0px ").concat(a,"px 0px")},[p,f,u]=(0,s.Wx)(g),m=(0,n.useRef)(t),x=(0,n.useRef)(o);(0,n.useEffect)(()=>{f&&!0!==m.current&&(m.current=!0),f&&x.current!==o&&(x.current=(null==u?void 0:u.boundingClientRect.height)||o)},[f,u]);let y=d||(x.current?(0,r.jsx)(i.az,{h:x.current}):null),_=f||l&&m.current;return(0,r.jsx)(i.az,{ref:p,...h,children:_?c:y})},l=a},39979:(e,t,o)=>{"use strict";o.d(t,{A:()=>B});var r=o(6029),i=o(494),n=o(24400),s=o(72753),a=o(10174),l=o(19621),d=o(76356),c=o(90248),h=o(18645),g=o(46787);let p=e=>{let{entityId:t,entity:o}=e;switch(o){case g.bq7.MutedPlayers:return(0,r.jsx)(h.tg,{id:t,size:40});case g.bq7.MutedTeams:return(0,r.jsx)(h.pY,{id:t,size:40});case g.bq7.MutedTournaments:return(0,r.jsx)(h.eD,{id:t,size:40});default:return null}};var f=o(52466),u=o(62389),m=o(95084),x=o(36882);let y=e=>{let{id:t,entity:o,entityGroup:n,onClick:s}=e,l=(0,i.wA)(),h=(e=>{switch(e){case"player":return x.b.Player;case"team":return x.b.Team;case"tournament":return x.b.UniqueTournament;default:return}})(n);return(0,r.jsx)(a.$n,{py:"sm",pr:"md",onClick:()=>{h&&(0,m.g2)({id:t,type:h,location:x.y.Popup,isFollowed:!0}),l((0,u.UQ)(o,t)),s()},children:(0,r.jsxs)(d.zt,{gap:"xs",children:[(0,r.jsx)(a.EY,{textStyle:"action.button.primary",color:"onColor.primary",children:(0,r.jsx)(c.A,{id:"button_favourite"})}),(0,r.jsx)(f.zQC,{icon:"follow-default",className:"follow-indicator-icon",width:"24",height:"24",fill:"onColor.primary"})]})})};var _=o(22375),b=o(55729),v=o(15341),j=o(14831);let k="follow.entity.popup.",w="".concat(k,"dontShowAgain");if(!(0,g.S$s)())try{let e=(0,j.yN)("".concat(k,"organization"));null!=e&&Object.values(e).some(e=>"number"==typeof e)&&(0,j.UI)("".concat(k,"organization"))}catch(e){console.error("Error reading from localStorage:",e)}let S=e=>{try{let t="".concat(k).concat(e);for(let e=0;e{switch(e){case"player":return"add_favorite_player";case"team":return"add_favorite_team";case"tournament":return"add_favorite_league";default:return""}},F=e=>{let{entityId:t,entityGroup:o,entity:n}=e,s=(0,l.hX)(),{isFollowed:h,isOpen:g,handleNoThanksClose:f,handleClose:u,isDontShowAgainSelected:x,toggleIsDontShowAgainSelected:j}=((e,t,o)=>{let r="".concat(k).concat(t),[n,s]=(0,v.A)(r,{}),[a,l]=(0,v.A)("".concat(r,"_queue"),[]),[d,c]=(0,b.useState)(!1),[h,g]=(0,b.useState)(!1),[p,f]=(0,v.A)("".concat(w,".").concat(t),!1),[u,x]=(0,v.A)("".concat(r,"_pausedUntil"),void 0),y=(0,i.d4)(t=>t.favorites.lists[e].includes(o)||t.favorites.lists.favoriteLeagues.includes(o));return(0,b.useEffect)(()=>{d&&(0,m.Ex)({id:o,source:"other",type:R(t)})},[d]),(0,b.useEffect)(()=>{if(p||u&&Date.now()e!==o):[...a];e.push(o);let t=n[o]?{count:n[o].count+1,timestamp:Date.now()}:{count:1,timestamp:Date.now()};if(4===t.count){let{[o]:t,...r}=n;s(r),l(e.filter(e=>e!==o)),c(!0);return}if(e.length>20){let r=e.shift(),{[r]:i,...a}=n;s({...a,[o]:t})}else s({...n,[o]:t});l(e)},[o]),{isFollowed:y,isOpen:d,handleNoThanksClose:()=>{h&&(h&&f(!0),S(t)),(()=>{c(!1);let{[o]:e,...r}=n;s(r),h||x(Date.now()+_.d_),S(t)})(),(0,m.t9)({action:"close",choice:h?"no_show_again":"show_again",id:o,source:"other",type:R(t)})},handleClose:()=>{c(!1)},isDontShowAgainSelected:h,toggleIsDontShowAgainSelected:()=>{g(!h)}}})(n,o,t);return s||h?null:(0,r.jsxs)(a.aF,{isOpen:g,gap:"sm",p:"lg",maxW:"[380px]",children:[(0,r.jsxs)(d.az,{children:[(0,r.jsxs)(d.so,{justify:"flex-start",align:"center",gap:"md",children:[(0,r.jsx)(p,{entityId:t,entity:n}),(0,r.jsx)(a.EY,{textStyle:"display.large",children:(0,r.jsx)(c.A,{id:"popover_favourites_proposal"})})]}),(0,r.jsx)(a.EY,{mt:"lg",mb:"sm",display:"block",children:(0,r.jsx)(c.A,{id:"popover_favourites_proposal_description"})}),(0,r.jsx)(a.Sc,{checked:x,onChange:j,py:"md",children:(0,r.jsx)(a.EY,{children:(0,r.jsx)(c.A,{id:"exit_checkbox"})})})]}),(0,r.jsxs)(d.az,{alignSelf:"flex-end",pt:"lg",children:[(0,r.jsx)(a.$n,{variant:"clear",mr:"sm",onClick:f,children:(0,r.jsx)(c.A,{id:"button_not_now"})}),(0,r.jsx)(y,{id:t,entity:n,entityGroup:o,onClick:u})]})]})},B=e=>{let{entityGroup:t,entity:o,id:a}=e,{priorityModal:l}=(0,n.Z)(),d=(0,i.d4)(s.fg);return l||d?null:(0,r.jsx)(F,{entity:o,entityId:a,entityGroup:t})}},57719:(e,t,o)=>{"use strict";o.d(t,{F:()=>c});var r=o(6029),i=o(46787),n=o(55729),s=o(90248),a=o(18970);let l=JSON.parse('{"football":{"Dlong":"football_defender","DLlong":"football_left_defender","DClong":"football_centre_defender","DRlong":"football_right_defender","DMlong":"football_defensive_midfielder","Mlong":"football_midfielder","MLlong":"football_left_midfielder","MRlong":"football_right_midfielder","MClong":"football_centre_midfielder","AMlong":"football_attacking_midfielder","Flong":"football_forward","LWlong":"football_left_winger","RWlong":"football_right_winger","STlong":"football_striker","Glong":"goalkeeper","GKlong":"goalkeeper","Dshort":"position.defender.short","DLshort":"position.defenderLeft.short","DCshort":"position.defenderCenter.short","DRshort":"position.defenderRight.short","DMshort":"position.defensiveMidfielder","Mshort":"position.midfielder.short","MLshort":"position.midfielderLeft.short","MRshort":"position.midfielderRight.short","MCshort":"position.midfielderCenter.short","AMshort":"position.attackingMidfielder.short","Fshort":"position.forward.short","LWshort":"position.leftWinger.short","RWshort":"position.rightWinger.short","STshort":"position.striker.short","Gshort":"position.goalkeeper.short","GfantasyShort":"position.goalkeeper.fantasyShort","DfantasyShort":"position.defender.fantasyShort","MfantasyShort":"position.midfielder.fantasyShort","FfantasyShort":"position.forward.fantasyShort"},"basketball":{"Clong":"basketball.center","CFlong":"centerForward","Flong":"basketball.forward","FClong":"forwardCenter","FGlong":"forwardGuard","Glong":"guard","GFlong":"guardForward","Cshort":"position.basketball.center.short","CFshort":"position.centerForward.short","Fshort":"position.basketball.forward.short","FCshort":"position.forwardCenter.short","FGshort":"position.forwardGuard.short","Gshort":"position.guard.short","GFshort":"position.guardForward.short"},"ice-hockey":{"Dlong":"defenseman","Glong":"goalie","Clong":"hockey.center","Llong":"leftWing","Rlong":"rightWing","Flong":"football_forward","Dshort":"position.defenseman.short","Gshort":"position.goalie.short","Cshort":"position.hockey.short.center","Lshort":"position.leftWing.short","Rshort":"position.rightWing.short","Fshort":"position.forward.short"},"baseball":{"Plong":"pitcher","Clong":"catcher","1Blong":"1stBase","2Blong":"2ndBase","3Blong":"3rdBase","SSlong":"shortstop","LFlong":"leftField","CFlong":"centerField","RFlong":"rightField","DHlong":"designatedHitter","SPlong":"startingPitcher","CPlong":"closer","PHlong":"pinchHitter","PRlong":"pinchRunner","BRlong":"baseRunner","OFlong":"outfield","IFlong":"infield","RPlong":"reliefPitcher","UTlong":"util","UIlong":"utilInfielder","UOlong":"utilOutfielder","RHPlong":"rhPitcher","LHPlong":"lhPitcher","RHSlong":"rhStarted","LHSlong":"lhStarter","LHRlong":"lhReliever","RHRlong":"rhReliever","Blong":"batter","Pshort":"position.pitcher.short","Cshort":"position.catcher.short","1Bshort":"position.1stBase.short","2Bshort":"position.2ndBase.short","3Bshort":"position.3rdBase.short","SSshort":"position.shortstop.short","LFshort":"position.leftField.short","CFshort":"position.centerField.short","RFshort":"position.rightField.short","DHshort":"position.designatedHitter.short","SPshort":"position.startingPitcher.short","CPshort":"position.closer.short","PHshort":"position.pinchHitter.short","PRshort":"position.pinchRunner.short","BRshort":"position.baseRunner.short","OFshort":"position.outfield.short","IFshort":"position.infield.short","RPshort":"position.reliefPitcher.short","UTshort":"position.util.short","UIshort":"position.utilInfielder.short","UOshort":"position.utilOutfielder.short","RHPshort":"position.rhPitcher.short","LHPshort":"position.lhPitcher.short","RHSshort":"position.rhStarted.short","LHSshort":"position.lhStarter.short","LHRshort":"position.lhReliever.short","RHRshort":"position.rhReliever.short","Bshort":"position.batter.short"},"american-football":{"Plong":"punter","PRlong":"puntReturner","LSlong":"longSnapper","Klong":"kicker","Tlong":"tackle","OTlong":"offensiveTackle","OLlong":"offensiveLineman","OGlong":"offensiveGuard","Glong":"amf.guard","Clong":"amf.center","QBlong":"quarterback","RBlong":"runningBack","FBlong":"fullback","TElong":"tightEnd","WRlong":"wideReceiver","SSlong":"strongSafety","SAFlong":"safety","FSlong":"freeSafety","DLlong":"defensiveLineman","DBlong":"defensiveBack","CBlong":"cornerBack","NTlong":"noseTackle","DTlong":"defensiveTackle","DElong":"defensiveEnd","OLBlong":"outsideLinebacker","MLBlong":"middleLinebacker","LBlong":"linebacker","ILBlong":"insideLinebacker","Pshort":"position.punter.short","PRshort":"position.puntReturner.short","LSshort":"position.longSnapper.short","Kshort":"position.kicker.short","Tshort":"position.tackle.short","OTshort":"position.offensiveTackle.short","OLshort":"position.offensiveLineman.short","OGshort":"position.offensiveGuard.short","Gshort":"position.amf.guard.short","Cshort":"position.amf.center.short","QBshort":"position.quarterback.short","RBshort":"position.runningBack.short","FBshort":"position.fullback.short","TEshort":"position.tightEnd.short","WRshort":"position.wideReceiver.short","SSshort":"position.strongSafety.short","SAFshort":"position.safety.short","FSshort":"position.freeSafety.short","DLshort":"position.defensiveLineman.short","DBshort":"position.defensiveBack.short","CBshort":"position.cornerBack.short","NTshort":"position.noseTackle.short","DTshort":"position.defensiveTackle.short","DEshort":"position.defensiveEnd.short","OLBshort":"position.outsideLinebacker.short","MLBshort":"position.middleLinebacker.short","LBshort":"position.linebacker.short","ILBshort":"position.insideLinebacker.short"},"handball":{"Glong":"goalkeeper","Gshort":"position.goalkeeper.short","RWlong":"rightWing","RWshort":"position.rightWinger.short","LWlong":"leftWing","LWshort":"position.leftWinger.short","RBlong":"rightBack","RBshort":"position.rightBack.short","LBlong":"leftBack","LBshort":"position.leftBack.short","CBlong":"handball_position_centre_back","CBshort":"position.centralBack.short","Plong":"pivot","Pshort":"position.pivot.short"},"cricket":{"BMlong":"position.batter","ARlong":"position.all.rounder","WKlong":"position.wicket.keeper","Blong":"position.bowler","BMshort":"position.batter","ARshort":"position.all.rounder","WKshort":"position.wicket.keeper","Bshort":"position.bowler"},"minifootball":{"Glong":"goalkeeper","Gshort":"position.goalkeeper.short","OFshort":"minifootball_outfield_player_short","OFlong":"minifootball_outfield_player","Fshort":"minifootball_outfield_player_short","Flong":"minifootball_outfield_player"},"volleyball":{"OHshort":"volleyball_player_position_outside_hitter_short","MBshort":"volleyball_player_position_middle_blocker_short","Lshort":"volleyball_player_position_libero_short","Oshort":"volleyball_player_position_opposite_short","Sshort":"volleyball_player_position_setter_short","OHlong":"volleyball_player_position_outside_hitter","MBlong":"volleyball_player_position_middle_blocker","Llong":"volleyball_player_position_libero","Olong":"volleyball_player_position_opposite","Slong":"volleyball_player_position_setter"}}');var d=o(91113);let c=e=>{let{id:t,fantasyShort:o,short:c,sport:h,gender:g=i.YT8.Male}=e,p=(0,n.useContext)(a.Ws),f=h||p,u=o&&f===i.QCR.Football?"fantasyShort":c||o?"short":"long",m=(0,d.O)(l,t+u,f,t);return(0,r.jsx)(s.A,{id:m,values:{gender:g}})}},61379:(e,t,o)=>{"use strict";o.d(t,{AG:()=>s,Et:()=>h,aQ:()=>c,mR:()=>l,o5:()=>d});var r=o(46787),i=o(13731),n=o.n(i);let s=e=>e.reduce((e,t)=>e+Number(t),0)/e.length,a=e=>"".concat(e.getFullYear(),"-").concat(9>e.getMonth()?"0":"").concat(e.getMonth()+1);function l(e){let t=e.filter(e=>e.type===r.XFZ.Event);return n()(t,e=>a(new Date(1e3*e.timestamp)))}function d(){let e={},t=new Date;for(let o=0;o<12;o++)e[a(t)]=void 0,t.setMonth(t.getMonth()-1);return e}function c(){let e=new Date;return[new Date(e.getFullYear(),e.getMonth()-11,1).getTime(),new Date(e.getFullYear(),e.getMonth()+1,0).getTime()]}function h(e){return"colors.rating".concat(e.replace("scoreRating",""))}},67086:(e,t,o)=>{"use strict";o.d(t,{N:()=>i});var r=o(49856);function i(e,t){return"en"===t||t===r.vo[e]}},76393:(e,t,o)=>{"use strict";o.d(t,{S:()=>r.A});var r=o(47151)},78492:(e,t,o)=>{var r=o(50956);e.exports=function(e,t,o,i){return r(e,function(e,r,n){t(i,e,o(e),n)}),i}},79634:(e,t,o)=>{"use strict";o.d(t,{q:()=>r.q});var r=o(39975)},81648:e=>{e.exports=function(e,t,o,r){for(var i=-1,n=null==e?0:e.length;++i{"use strict";o.d(t,{Ay:()=>u,mb:()=>p,op:()=>f});var r=o(6029),i=o(46787),n=o(10174),s=o(76356),a=o(55729),l=o(90248),d=o(25282),c=o(90438),h=o(80055),g=o(14831);let p="_player_has_form",f="_player_has_pentagon",u=function(e){let{player:t,locale:o,isEmbedModalVisible:u,setIsEmbedModalVisible:m}=e,[x,y]=(0,a.useState)(void 0),[_,b]=(0,a.useState)(void 0),v=(0,c.vf)(o),j="".concat(i.yuv).concat(v?"/".concat(v):"","/embed/player/").concat(t.id,"?widgetTheme=light"),k="sofa-player-embed-".concat(t.id),w="height:".concat(418+232*!!x+180*!!_,"px!important;max-width:730px!important;width:100%!important;"),S=''),R=(0,h.s)(t,o),F=async()=>{let e=await (0,g._9)(t.id+p),o=await (0,g._9)(t.id+f);b("true"===e),y("true"===o)};return(0,a.useEffect)(()=>{b(void 0),y(void 0)},[t.id]),(0,a.useEffect)(()=>{F()},[u]),(0,r.jsx)(n.aF,{isOpen:u,onClose:()=>m(!1),onOutsideClick:()=>m(!1),children:(0,r.jsxs)(s.az,{br:"lg",mx:"auto",elevation:"3",bg:"surface.sp",w:"[360px]",children:[(0,r.jsx)(n.EY,{textStyle:"display.large",p:{md:"lg"},display:"block",children:(0,r.jsx)(l.A,{id:"player_info_embed",values:{playerName:R}})}),(0,r.jsx)(s.az,{px:"sm",children:(0,r.jsx)(d.P,{embedString:S})}),(0,r.jsx)(s.so,{justify:"flex-end",children:(0,r.jsx)(s.az,{p:"lg",children:(0,r.jsx)(n.$n,{onClick:()=>m(!1),variant:"clear",children:(0,r.jsx)(l.A,{id:"close_window_button"})})})})]})})}},96688:(e,t,o)=>{"use strict";function r(e){let t=(null==e?void 0:e.toLowerCase())||"",o=["hr","es","pt"].includes(t);return"https://corporate.sofascore.com".concat(o?"/".concat(t):"","/about/rating")}o.d(t,{y:()=>r})}}]);