!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]="aadbd822-a4b5-4316-94a7-b26584857c20",e._sentryDebugIdIdentifier="sentry-dbid-aadbd822-a4b5-4316-94a7-b26584857c20")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[25462],{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:()=>D,A:()=>O});var r=o(6029),i=o(53192),n=o(91407),s=o(94400),l=o(91603),a=o(21377),d=o(4967),c=o(28349),h=o(76356),g=o(55729),p=o(947),f=o(90248),u=o(90510),m=o(494),x=o(34431),y=o(73498),v=o(85658),b=o(52466),_=o(28377),j=o(17152),k=o(90438),R=o(15340),S=o(48524),w=o(73559),F=o(36882),B=o(30821),L=o(64006),C=o(72753),P=o(94156),A=o(57719),T=o(83981),M=o(61379);function D(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:H}=e,[W,G]=(0,g.useState)(!1),z=(0,p.A)(),{wasFollowed:I}=(0,w.e)({entity:a.bq7.Players,id:E.id}),Y=(0,m.d4)(C.JV),U=E.team.sport.slug,N=E.deceased,K=E.retired,Q=E.dateOfDeathTimestamp?(0,d.pp)(E.dateOfDeathTimestamp).getFullYear():void 0,J=a.USm.includes(E.team.sport.slug),q=k.mz.includes(U),V=(0,d.KW)(E.dateOfBirthTimestamp),X=(null==H?void 0:H.length)?(0,M.AG)(H.filter(e=>e.type===a.XFZ.Event).map(e=>e.value)):void 0,Z=U===a.QCR.Cricket;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_.Fs,{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)(P.c,{entity:E}),"number"==typeof X&&(0,r.jsxs)(h.so,{align:"center",children:[(0,r.jsx)(s.A,{rating:X,format:"sideBox"}),(0,r.jsx)(j.D,{type:j.D.type.AverageRatingPlayer,rating:X,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:U,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)(l.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)(P.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:U},children:(0,r.jsx)(y.u,{label:z.formatMessage({id:"manager_profile"}),children:(0,r.jsx)(b.AdY,{})})}),q&&(0,r.jsx)(v.P2,{children:e=>(0,r.jsx)(c.m_,{label:z.formatMessage({id:"compare_players"}),strategy:"hover",disabled:e,children:(0,r.jsx)(x.O,{type:"player",id:E.id,sport:U,iconOnly:!!E.managerId})})}),J&&!N&&!K&&(0,r.jsx)(v.P2,{children:e=>(0,r.jsx)(c.m_,{label:z.formatMessage({id:I?"remove_from_favourites":"add_to_favourites"}),strategy:"hover",disabled:e&&!I,children:(0,r.jsx)(R.e,{id:E.id,entity:a.bq7.Players,location:F.y.Header,type:F.b.Player,isNewButton:!0})})}),V>=16&&(0,r.jsx)(v.P2,{children:e=>(0,r.jsx)(c.m_,{label:z.formatMessage({id:"embed_on_website"}),strategy:"hover",disabled:e,children:(0,r.jsx)(y.u,{label:z.formatMessage({id:"embed_widget"}),onClick:()=>G(!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)(D,{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)(D,{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 Q?(0,r.jsx)(f.A,{id:"deceasedYear",values:{year:Q}}):(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)(D,{icon:b.fEU,text:(0,r.jsx)(A.F,{id:E.position,sport:U,gender:E.team.gender})}),Z&&"string"==typeof(null==(t=E.cricketPlayerInfo)?void 0:t.batting)&&(0,r.jsx)(D,{icon:b.BM3,text:(0,r.jsx)(f.A,{id:E.cricketPlayerInfo.batting})}),Z&&"string"==typeof(null==(o=E.cricketPlayerInfo)?void 0:o.bowling)&&(0,r.jsx)(D,{icon:b.Pvq,text:(0,r.jsx)(f.A,{id:E.cricketPlayerInfo.bowling})}),"number"==typeof E.height&&(0,r.jsx)(D,{icon:b.f6o,text:(0,r.jsx)(B.Z,{value:E.height,fromUnit:"cm"})}),"string"==typeof E.preferredFoot&&(0,r.jsx)(D,{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)(D,{icon:b.kDU,text:(0,r.jsx)(f.A,{id:"jersey_number",values:{jerseyNumber:E.jerseyNumber}})})]})}),J&&!N&&!K&&(0,r.jsxs)(S.K,{id:E.id,name:E.name,entity:a.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)(P.c,{entity:E})})]}),(0,r.jsx)(T.Ay,{player:E,locale:Y,isEmbedModalVisible:W,setIsEmbedModalVisible:G})]})}},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(21377),s=o(28349),l=o(62042),a=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(99064),v=o(28446),b=o(41735);let _=(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,v.A)().domain([3,6,6.5,7,8,9,10]).range([0,16.66666,33.33333,50,66.66666,83.33333,100]);function R(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)(_,{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 w=(0,l.AH)({"& > div > div":{zoom:2.5},"& span":{zoom:2.5}});function F(e){let{type:t,rating:o=10,renderImage:l,children:x}=e,y=(0,c.A)(),[v,b]=(0,d.useState)(!1),{isDesktop:_}=(0,s.$c)(),j=(0,d.useContext)(u.Ws)===n.QCR.Football,k=(0,f.A)(),F=(0,S.y)(k),B="",L="box",C="sofascore_rating",P="";switch(t){case m.J.SpecificRatingPlayer:B="rating_general_text",P=[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",P=[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",C="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:v,setIsOpen:b})}):null!=x?x:(0,r.jsx)(s.m_,{label:P,strategy:""!==P&&_?"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:C})}),isOpen:v,setIsOpen:b,footer:(0,r.jsx)(a.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:_?"clear":void 0,children:(0,r.jsx)(h.A,{id:"ok_got_it_button"})})}),children:[(0,r.jsxs)(a.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)(a.so,{justify:"center",align:"center",pt:"4xl",pb:"xl",children:[(0,r.jsx)(a.az,{className:"sideBox"===L?w:void 0,children:(0,r.jsx)(i.G,{size:"xl",rating:o,format:L})}),null==l?void 0:l({size:40,ml:"lg"})]}),(0,r.jsx)(R,{rating:o,format:L})]}),j&&(0,r.jsx)(a.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},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,l){var a=s(o)?r:i,d=t?t():{};return a(o,e,n(l,2),d)}}},57719:(e,t,o)=>{"use strict";o.d(t,{F:()=>c});var r=o(6029),i=o(21377),n=o(55729),s=o(90248),l=o(18970);let a=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)(l.Ws),f=h||p,u=o&&f===i.QCR.Football?"fantasyShort":c||o?"short":"long",m=(0,d.O)(a,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:()=>a,o5:()=>d});var r=o(21377),i=o(13731),n=o.n(i);let s=e=>e.reduce((e,t)=>e+Number(t),0)/e.length,l=e=>"".concat(e.getFullYear(),"-").concat(9>e.getMonth()?"0":"").concat(e.getMonth()+1);function a(e){let t=e.filter(e=>e.type===r.XFZ.Event);return n()(t,e=>l(new Date(1e3*e.timestamp)))}function d(){let e={},t=new Date;for(let o=0;o<12;o++)e[l(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",""))}},67020:(e,t,o)=>{"use strict";o.d(t,{b4:()=>f,V3:()=>l,HM:()=>v,k9:()=>d,HI:()=>a});var r=o(6029),i=o(55729),n=o(15341);let s=(0,i.createContext)(void 0),l=e=>{let{children:t,persistKey:o}=e,[i,l]=(0,n.A)(o,[]);return(0,r.jsx)(s.Provider,{value:{recentlySelected:i,setRecentlySelected:l},children:t})},a=()=>{let e=(0,i.useContext)(s);if(void 0===e)throw Error("useRecentSearch must be used within a RecentSearchesProvider");return{recentlySelected:e.recentlySelected,addToRecentlySelected:t=>{let o=e.recentlySelected.filter(e=>e.id!==t.id).slice(0,4),r=[t,...o];e.setRecentlySelected(r)},removeFromRecentlySelected:t=>{let o=e.recentlySelected.filter(e=>e.id!==t.id);e.setRecentlySelected(o)}}};function d(e,t,o,r){return e.length?e.length===(null==o?void 0:o.length)&&e.length===(null==t?void 0:t.length)&&e.length===(null==r?void 0:r.length)?{ids:e.map(e=>null!=e?e:"_").join(","),ut_ids:null==o?void 0:o.map(e=>null!=e?e:"_").join(","),s_ids:null==t?void 0:t.map(e=>null!=e?e:"_").join(","),s_types:null==r?void 0:r.map(e=>null!=e?e:"_").join(",")}:{ids:e.map(e=>null!=e?e:"_").join(",")}:{}}var c=o(94446),h=o(99064),g=o(52466),p=o(94156);let f=e=>{let{player:t,onPlayerClick:o,onRemoveClick:i}=e;return(0,r.jsxs)(h.so,{onClick:()=>o(t),h:"56px",align:"center",cursor:"pointer",children:[(0,r.jsx)(c.t,{id:t.id,name:t.name,size:40,grayscale:t.deceased}),(0,r.jsxs)(h.so,{direction:"column",justify:"center",h:"100%",gap:"xs",grow:1,pl:"sm",children:[(0,r.jsx)(h.EY,{font:"body.medium",color:"onSurface.nLv1",ellipsis:!0,maxW:["250px","130px"],children:(0,r.jsx)(p.c,{entity:t})}),(0,r.jsxs)(h.so,{align:"center",gap:"sm",children:[(0,r.jsx)(c.p,{id:t.team.id,size:16}),(0,r.jsx)(h.EY,{font:"assistive.default",color:"onSurface.nLv3",lineHeight:1,ellipsis:!0,maxW:["300px","120px"],children:(0,r.jsx)(p.c,{entity:t.team})})]})]}),void 0!==i&&(0,r.jsx)(h.$n,{onClick:e=>{e.stopPropagation(),e.preventDefault(),null==i||i(t)},variant:"unshielded",size:"xs",p:"xs",style:{borderRadius:"50%"},children:(0,r.jsx)(g.zQC,{icon:"close",width:16,height:16,fill:"neutral.default"})})]})};var u=o(49519),m=o(21377),x=o(79131),y=o(88505);let v=e=>{var t,o,i,n,s,l,a,d,c;let{team:p,onTeamClick:f,onRemoveClick:v}=e,b=(null==(t=p.sport)?void 0:t.slug)===m.QCR.Tennis;return(0,r.jsxs)(h.so,{gap:"sm",onClick:()=>f(p),align:"center",cursor:"pointer",py:"sm",children:[(0,r.jsx)(u.p,{id:p.id,name:p.name,size:40}),(0,r.jsxs)(h.so,{direction:"column",gap:"xs",grow:1,children:[(0,r.jsx)(h.EY,{font:"body.medium",color:"onSurface.nLv1",children:(0,r.jsx)(y.Rm,{team:p,showFemaleSuffix:p.gender===m.YT8.Female&&!b})}),!p.national&&(null==(o=p.country)?void 0:o.slug)&&(null==(i=p.country)?void 0:i.name)&&!b&&(0,r.jsxs)(h.so,{align:"center",gap:"sm",children:[(0,r.jsx)(u.w,{size:16,alpha2:null==(n=p.country)?void 0:n.alpha2,name:null==(s=p.country)?void 0:s.name}),(0,r.jsx)(h.EY,{font:"assistive.default",color:"onSurface.nLv3",lineHeight:1,children:(0,r.jsx)(x.m,{slug:p.country.slug,name:p.country.name})})]}),b&&p.country&&p.country.name&&(0,r.jsxs)(h.so,{align:"center",gap:"xs",children:[(0,r.jsx)(u.w,{size:16,alpha2:null==(l=p.country)?void 0:l.alpha2,name:null==(a=p.country)?void 0:a.name}),(0,r.jsx)(h.EY,{font:"assistive.default",color:"onSurface.nLv3",lineHeight:1,children:(0,r.jsx)(x.m,{name:p.country.name,slug:null!=(c=null==(d=p.country)?void 0:d.slug)?c:p.country.name})})]})]}),void 0!==v&&(0,r.jsx)(h.$n,{onClick:e=>{e.stopPropagation(),e.preventDefault(),null==v||v(p)},variant:"unshielded",size:"xs",p:"xs",style:{borderRadius:"50%"},children:(0,r.jsx)(g.zQC,{icon:"close",width:16,height:16,fill:"neutral.default"})})]})}},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}},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(21377),n=o(28349),s=o(76356),l=o(55729),a=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,l.useState)(void 0),[v,b]=(0,l.useState)(void 0),_=(0,c.vf)(o),j="".concat(i.yuv).concat(_?"/".concat(_):"","/embed/player/").concat(t.id,"?widgetTheme=light"),k="sofa-player-embed-".concat(t.id),R="height:".concat(418+232*!!x+180*!!v,"px!important;max-width:730px!important;width:100%!important;"),S=''),w=(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,l.useEffect)(()=>{b(void 0),y(void 0)},[t.id]),(0,l.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)(a.A,{id:"player_info_embed",values:{playerName:w}})}),(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)(a.A,{id:"close_window_button"})})})})]})})}},94446:(e,t,o)=>{"use strict";o.d(t,{p:()=>i.p,t:()=>r.t});var r=o(91407),i=o(91603)},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})}}]);