!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]="27ab092d-4278-4991-b920-9378c14dab66",e._sentryDebugIdIdentifier="sentry-dbid-27ab092d-4278-4991-b920-9378c14dab66")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4025],{7079:(e,t,s)=>{s.d(t,{X:()=>D});var l=s(6029),r=s(21377),i=s(89875),n=s(55729),o=s(947),a=s(41735),d=s(76356),c=s(93338),u=s(99064),m=s(81278),x=s(90248),p=s(494),h=s(45860),g=s(54409),y=s(19451),v=s(94684),j=s(82707),b=s(10794),f=s(94604),w=s(19135),S=s(62827),k=s(12047),C=s(1949),I=s(13892),T=s(82287),E=s(69435),P=s(67149);let L=e=>{var t;let{row:s,events:o,sport:a,position:m,columnKeys:x,promotionColors:y,isRTL:v}=e,{isNarrowLayout:w,selectedTeamId:k,homeTeamId:L,awayTeamId:z,displayType:D}=(0,n.useContext)(E.P),{isDesktopLarge:_}=(0,i.$c)(),A=(0,p.d4)(b.JV),R=s.team.id,Y=!!s.liveMatchWinnerCodeColumn,{texts:N}=(0,n.useContext)(T.C),{data:F}=(0,h.Ay)(s.promotion?r.oo$.singleEntity(s.promotion.id,A):null),B=(null==F?void 0:F.translation.value)||(null==(t=s.promotion)?void 0:t.text)||N[R],[M,O]=(0,n.useState)(!1);return(0,l.jsx)(j.gT,{sport:a,team:s.team,children:(0,l.jsxs)(I.fh,{"data-selected":k===R||void 0,team:L===R?"home":z===R?"away":"none",children:[k===R&&(0,l.jsx)(d.az,{position:"absolute",left:"[0px]",w:"xs",h:"100%",bg:"neutral.default"}),(0,l.jsx)(d.az,{children:(0,l.jsx)(d.so,{w:"xl",h:"xl",justify:"center",align:"center",br:"50%",textStyle:"display.small",cursor:"pointer",userSelect:"none",onClick:e=>{e.preventDefault(),e.stopPropagation(),B&&(M||(O(!0),setTimeout(()=>{O(!1)},3e3),(0,S.MZ)((0,l.jsxs)(d.so,{align:"center",children:[(0,l.jsx)(g.G_L,{fill:"surface.s1",mr:"lg"}),(0,l.jsxs)(i.EY,{textStyle:"display.small",color:"surface.s1",display:"block",children:[(0,l.jsx)(f.Rm,{team:s.team,short:!0})," – ".concat(B)]})]}))))},color:y[R]?"surface.s1":"neutrals.nLv1",style:{backgroundColor:y[R]?y[R]:c.S.var("colors.surface.s2")},title:B||void 0,children:m})}),"full"===D&&(!_||w)?null:(0,l.jsx)(u._V,{src:r.cWY.image(s.team.id),width:"32",height:"32",style:{verticalAlign:"top"},w:[32,24],h:[32,24],ml:"sm",fallback:(0,l.jsx)(d.I4.img,{style:{marginLeft:u.xI.sm},src:"/static/images/placeholders/team.svg",width:{base:"2xl",md:"xl"},height:{base:"2xl",md:"xl"},className:"standings-row-placeholder-image",alt:""}),alt:""}),(0,l.jsx)(d.az,{flexGrow:1,overflow:"auto",children:(0,l.jsxs)(d.so,{align:"center",pl:"sm",overflow:"hidden",w:"100%",children:[(0,l.jsx)(i.EY,{textStyle:"table.medium",color:Y?"status.live":"neutrals.nLv1",display:"block",truncate:!0,children:(0,l.jsx)(f.Rm,{team:s.team,short:!0})}),Y&&(0,l.jsx)(d.I4.small,{position:"relative",color:"status.live",_after:{content:"''",position:"relative",display:"inline-block",top:"[-1px]",width:"[6px]",height:"[6px]",ml:"xs",br:"50%",bg:"status.live",animation:"pulse 1s ease-in infinite"}})]})}),x.map(e=>{if("last5"===e)return(0,l.jsx)(C.o1,{events:o,referenceId:s.team.id},s.team.id+e);let t=P.oG(e,a,s,v),r=!1;e===s.liveMatchWinnerCodeColumn||"points"===e&&Y?r=!0:"percentage"===e&&Y&&(r=!0);let n=P.j8(e,a,!1);return(0,l.jsx)(d.az,{children:(0,l.jsx)(i.Ym,{textStyle:"table.medium",color:r?"status.live":"neutrals.nLv1",children:(0,l.jsx)(d.so,{justify:"center",style:{minWidth:n},children:t})})},e)})]})})};function z(e){let{sport:t,columnKeys:s,selectedSeason:r}=e,{isDesktop:n}=(0,i.$c)(),o=(0,m.useRouter)(),a=null==r?void 0:r.year,c=(0,k.Ay)({isInMobileTabs:!0,isSportMenuVisible:!0}),p=48*(o.route===y.xW.Team),h=n?v.Rl+v.pB:c+p;return(0,l.jsx)(u.PI,{top:h,isStickingDisabled:n,zIndex:u.Py.Sticky-1,children:e=>(0,l.jsxs)(I.fh,{stuck:e,children:[(0,l.jsx)(d.az,{children:(0,l.jsx)(i.EY,{textStyle:"table.medium",color:"neutrals.nLv3",textAlign:"center",display:"block",w:"xl",children:"#"})}),(0,l.jsx)(d.az,{flexGrow:1,children:(0,l.jsx)(i.EY,{textStyle:"table.medium",color:"neutrals.nLv3",display:"block",pl:"sm",children:(0,l.jsx)(x.A,{id:"team"})})}),s.map(e=>{if("last5"===e)return(0,l.jsx)(d.so,{ml:"sm",wrap:"nowrap",flexBasis:"[120px]",justify:"center",align:"center",children:(0,l.jsx)(d.so,{minW:"2xl",justify:"center",children:(0,l.jsx)(i.EY,{textStyle:"table.medium",color:"neutrals.nLv3",children:(0,l.jsx)(w.N,{id:e})})})},"column-key-last5");let s=function(e,t){switch(e){case"pointsCurrSeason":return t;case"pointsPrevSeason":return Number(t)-1;case"pointsPrevPrevSeason":return Number(t)-2;default:return(0,l.jsx)(w.N,{id:e})}}(e,a),r=P.j8(e,t,!1);return(0,l.jsx)(d.az,{children:(0,l.jsx)(i.EY,{textStyle:"table.medium",color:"neutrals.nLv3",textTransform:"points"===e?"uppercase":void 0,children:(0,l.jsx)(d.so,{justify:"center",style:{minWidth:r},children:s})})},e)})]})})}function D(e){let{type:t,table:s,teamEvents:d}=e,c=(0,n.useContext)(E.P),{uniqueTournamentId:u,isNarrowLayout:m,displayType:x,homeTeamId:p,awayTeamId:h,selectedTeamId:g,selectedSeason:y}=c,{isDesktop:v,mediaBreakpoint:j}=(0,i.$c)(),{settings:b}=(0,a.useTheme)(),f=(0,o.A)(),w=s.tournament.category.sport.slug,S=(0,n.useMemo)(()=>{let e=s.rows.reduce((e,t)=>Object.keys(t).length>Object.keys(e).length?t:e,s.rows[0]),l=s.rows.some(e=>0!==Number(e.gamesBehind)),r=s.rows.some(e=>void 0!==e.scoresFor||void 0!==e.scoresAgainst),i=!!(null==y?void 0:y.year)&&s.rows.some(e=>void 0!==e.pointsCurrSeason||void 0!==e.pointsPrevPrevSeason||void 0!==e.pointsPrevPrevSeason);if(e._isPlaceholderRow)return[f.formatMessage({id:"standings_placeholder_data"},{type:t,name:s.name})];let n="xxs"===j||"xs"===j||v&&m;return(0,P.Tx)(e,w,x,m,l,r,i,n,u)},[s.id,w,x,m]),{colors:k}=(0,n.useContext)(T.C),C=(0,n.useMemo)(()=>{let e={homeTeamId:p,awayTeamId:h,selectedTeamId:g};return t===r.lpv.Home&&(delete e.awayTeamId,delete e.homeTeamId,e.selectedTeamId=g),t===r.lpv.Away&&(delete e.awayTeamId,delete e.homeTeamId,e.selectedTeamId=g),e},[p,h,g,t]);return(0,l.jsxs)("div",{style:{width:"100%"},children:[(0,l.jsx)(z,{columnKeys:S,sport:w,selectedSeason:y}),(0,l.jsx)(E.P.Provider,{value:{...c,...C},children:s.rows.map((e,t)=>(0,l.jsx)(L,{columnKeys:S,promotionColors:k,position:t+1,row:e,sport:w,events:d?d[e.team.id]:null,isRTL:"rtl"===b.textDirection},e.id))})]})}},11033:(e,t,s)=>{s.d(t,{K:()=>k,c:()=>C});var l=s(6029),r=s(21377),i=s(89875),n=s(76356),o=s(99064),a=s(55729),d=s(90248),c=s(494),u=s(45860),m=s(10794),x=s(94604),p=s(84942),h=s(13892),g=s(82287);function y(e){let{description:t,transValue:s}=e;return(0,l.jsxs)(h.VY,{children:[t.teamName?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(x.lC,{original:t.teamName}),":\xa0"]}):null,s||t.text]})}function v(e){let{description:t,locale:s}=e,{data:i}=(0,u.Ay)(r.oo$.singleEntity(t.id,s));return(0,l.jsx)(y,{description:t,transValue:null==i?void 0:i.translation.value})}function j(e){let{promotion:t,locale:s}=e,{data:n}=(0,u.Ay)(r.oo$.singleEntity(t.id,s));return(0,l.jsx)(i.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",lineHeight:1,children:(null==n?void 0:n.translation.value)||t.text})}function b(e){let{descriptions:t,locale:s}=e;return t&&t.length&&s?"en"===s?(0,l.jsx)(l.Fragment,{children:t.map(e=>(0,l.jsx)(y,{description:e},e.id))}):(0,l.jsx)(l.Fragment,{children:t.map(e=>(0,l.jsx)(v,{description:e,locale:s},e.id))}):null}let f=(e,t)=>{let{colors:s}=(0,a.useContext)(g.C),[l,r,i]=(0,a.useMemo)(()=>{let l=[],r=[],i={};return e.rows.forEach(e=>{var n;e.descriptions&&l.push(...e.descriptions.map(s=>({...s,teamName:(0,p.s)(e.team,t)}))),(null==(n=e.promotion)?void 0:n.text)&&!i[e.promotion.id]&&(r.push(e.promotion),i[e.promotion.id]=s[e.team.id])}),[l,r,i]},[e.rows]);return{rowDescriptions:l,rowPromotions:r,promotionColors:i,tieBreakingRules:e.tieBreakingRule?[e.tieBreakingRule]:[]}},w=e=>{let{children:t,defaultOpenedFirstRules:s}=e;return(0,l.jsx)(o.nD,{children:(0,l.jsxs)(o.nD.Item,{bg:"surface.s2",br:["sm","lg"],defaultOpened:s,children:[(0,l.jsx)(o.nD.Trigger,{bg:"transparent",children:(0,l.jsx)(i.EY,{textStyle:"display.small",children:(0,l.jsx)(d.A,{id:"rules"})})}),(0,l.jsx)(o.nD.Content,{children:(0,l.jsx)(i.EY,{textStyle:"body.small",display:"block",px:"md",pb:"md",children:t})})]})})},S=e=>{let{locale:t,descriptions:s,rowDescriptions:r,rowPromotions:i,tieBreakingRules:o,promotionColors:a,defaultOpenedFirstRules:d}=e;return(0,l.jsx)(w,{defaultOpenedFirstRules:d,children:(0,l.jsxs)(n.so,{direction:"column",gap:"sm",children:[(0,l.jsx)("div",{children:i.map(e=>(0,l.jsxs)(n.so,{align:"center",h:"xl",children:[(0,l.jsx)(n.so,{justify:"center",align:"center",w:"xl",children:(0,l.jsx)(n.az,{h:"sm",w:"sm",br:"50%",style:{background:a[e.id]}})}),(0,l.jsx)(j,{promotion:e,locale:t})]},e.id))}),(0,l.jsx)(b,{descriptions:r,locale:t}),(0,l.jsx)(b,{descriptions:s,locale:t}),(0,l.jsx)(b,{descriptions:o,locale:t})]})})};function k(e){var t;let s=(0,c.d4)(m.JV),{rowDescriptions:r,rowPromotions:i,tieBreakingRules:n,promotionColors:o}=f(e,s);return r.length||(null==(t=e.descriptions)?void 0:t.length)||n.length||i.length?(0,l.jsx)(S,{locale:s,descriptions:e.descriptions,rowDescriptions:r,rowPromotions:i,tieBreakingRules:n,promotionColors:o,defaultOpenedFirstRules:e.defaultOpenedFirstRules}):null}function C(e){var t;let s=(0,c.d4)(m.JV),{rowDescriptions:r,rowPromotions:i,tieBreakingRules:o,promotionColors:a}=f(e,s);return(r.length||(null==(t=e.descriptions)?void 0:t.length)||o.length)&&0!==i.length?(0,l.jsx)(n.az,{p:"sm",children:(0,l.jsx)(S,{locale:s,descriptions:e.descriptions,rowDescriptions:r,rowPromotions:i,tieBreakingRules:o,promotionColors:a})}):null}},13892:(e,t,s)=>{s.d(t,{FF:()=>a,VY:()=>o,fh:()=>n});var l=s(62042),r=s(76356);let i=(0,l.Fj)({base:{display:"flex",alignItems:"center",position:"relative",textStyle:"table.medium",padding:"sm",height:{base:"4xl",md:"2xl"},_selected:{backgroundColor:"neutral.highlight"},_hover:{backgroundColor:"surface.s2"}},variants:{team:{none:{},home:{backgroundColor:"secondary.highlight",borderStart:"{sizes.xs} solid {colors.secondary.default}",pl:"xs"},away:{backgroundColor:"primary.highlight",borderStart:"{sizes.xs} solid {colors.primary.default}",pl:"xs"}},stuck:{true:{mx:"-sm",px:"lg",backgroundColor:"surface.s1",borderTop:"1px solid {colors.surface.s2}",borderBottom:"1px solid {colors.surface.s2}",elevation:"2"},false:{}}}}),n=(0,r.I4)("div",i),o=(0,r.I4)("p",{base:{margin:"0",padding:"0",whiteSpace:"pre-line","& + &":{marginTop:"xs"}}}),a=(0,r.I4)("div",{base:{"& button":{border:"1px solid {colors.surface.s2}",px:"xs","& svg":{margin:"0"},"& svg:nth-child(2)":{display:"none"}}}})},42525:(e,t,s)=>{s.d(t,{C:()=>x,P:()=>m});var l=s(6029),r=s(89875),i=s(76356),n=s(93338),o=s(55729),a=s(90248),d=s(54409),c=s(62827);let u=(0,i.I4)("input",{base:{width:"100%",height:"2xl",paddingInlineEnd:"3xl",bg:"surface.s2",textStyle:"assistive.default",color:"neutrals.nLv3",border:"1px solid",borderColor:"neutrals.nLv4",borderRadius:"sm",textOverflow:"ellipsis",outline:"none",cursor:"pointer",transitionProperty:"[box-shadow, background-color]",transitionDuration:"[300ms]",_focus:{outline:"none",bg:"neutral.highlight",boxShadow:"[0 0 0 3px]",boxShadowColor:"neutral.highlight"}}});function m(e){let{embedString:t,onToggle:s}=e,[m,x]=(0,o.useState)(!1),p=(0,o.useCallback)(async e=>{m||(x(!0),setTimeout(()=>{x(!1)},3e3),"writeText"in window.navigator.clipboard?(await window.navigator.clipboard.writeText(t),(0,c.MZ)((0,l.jsxs)(i.so,{align:"center",children:[(0,l.jsx)(d.G_L,{fill:"surface.s1",mr:"lg"}),(0,l.jsx)(r.EY,{display:"block",color:"surface.s1",textStyle:"display.small",children:(0,l.jsx)(a.A,{id:"basic.copiedToClipboard"})})]}))):(e.currentTarget.focus(),e.currentTarget.select()))},[t,m]);return(0,l.jsxs)(i.az,{position:"relative",mx:{base:"[0px]",md:"xs"},my:"xs",children:[(0,l.jsx)(u,{id:t,type:"text",readOnly:!0,value:t,onClick:p,onBlur:s}),(0,l.jsx)("label",{htmlFor:t,children:(0,l.jsx)(d.i2C,{width:"24",height:"24",fill:n.S.var("colors.action.primary.default"),style:{position:"absolute",top:4,right:8,cursor:"pointer"}})})]})}function x(e){let{id:t,callToAction:s,embedString:a,inverted:c,inHeader:u,onCallToActionClick:x,...p}=e,[h,g]=(0,o.useState)(!1),{isMobile:y}=(0,r.$c)();return(0,o.useEffect)(()=>{g(!1)},[t]),y?null:(0,l.jsx)(i.az,{px:"sm",mt:"sm",...p,children:(0,l.jsxs)(i.az,{cursor:"pointer",bg:{md:c?void 0:"surface.s2"},_hover:{bg:u?"primary.highlight":void 0},br:u?"sm":"lg",p:{md:u?"xs":"sm"},children:[(0,l.jsxs)(i.so,{justify:"flex-end",align:"center",onClick:()=>{g(!h),null==x||x()},children:[(0,l.jsx)(r.EY,{color:c?"onColor.primary":"action.primary.default",pt:"sm",px:"sm",pb:u&&h?"xs":"sm",textStyle:{base:"assistive.default",md:"display.small"},display:"block",children:s}),(0,l.jsx)(i.az,{flexShrink:0,children:(0,l.jsx)(d.zQC,{icon:h?"chevron-up":"chevron-down",width:24,height:24,fill:c?n.S.var("colors.onColor.primary"):n.S.var("colors.action.primary.default"),mx:"xs"})})]}),h&&(0,l.jsx)(m,{embedString:a})]})})}},65457:(e,t,s)=>{s.d(t,{A:()=>u,u:()=>m});var l=s(6029),r=s(21377),i=s(89875),n=s(76356),o=s(99064),a=s(90248),d=s(54409),c=s(13892);function u(e){return e.isNarrowLayout?(0,l.jsx)(c.FF,{children:(0,l.jsx)(o.ms,{items:e.items||[...r.ur4],selectedItem:e.displayType,onSelectedItemChange:t=>{let{selectedItem:s}=t;s&&e.setDisplayType(s)},renderItem:(e,t)=>t?(0,l.jsx)(d.NwX,{fill:"onSurface.nLv1"}):(0,l.jsx)(a.A,{id:"standings."+e}),menuLabel:(0,l.jsx)(a.A,{id:"standings.appearance"}),alignRight:!0,buttonStyle:{width:36,height:36,zIndex:o.Py.Backdrop}})}):null}function m(e){let{displayType:t,setDisplayType:s,items:r,isNarrowLayout:o}=e;return(0,l.jsxs)(n.so,{justify:"space-between",p:"sm",borderBottom:"neutrals.nLv4",children:[(0,l.jsxs)(n.az,{children:[(0,l.jsx)(i.EY,{display:"block",textStyle:"assistive.default",pt:"2xs",children:(0,l.jsx)(a.A,{id:"standings.appearance"})}),(0,l.jsx)(i.EY,{display:"block",textStyle:"body.small",color:"neutrals.nLv3",children:(0,l.jsx)(a.A,{id:"standings.appearance.select"})})]}),(0,l.jsx)(u,{displayType:t,setDisplayType:s,items:r,isNarrowLayout:o})]})}},69435:(e,t,s)=>{s.d(t,{P:()=>i});var l=s(78383),r=s.n(l);let i=(0,s(55729).createContext)({isNarrowLayout:!0,uniqueTournamentId:void 0,seasonId:void 0,displayTypeOptions:void 0,displayType:"short",setDisplayType:r(),standings:[],homeTeamId:void 0,awayTeamId:void 0,selectedTeamId:void 0,hasPerformanceGraphFeature:!1,hasHomeAwayStandings:!1,tournamentId:void 0,selectedSeason:void 0,isStandingsTableEmpty:void 0,setIsStandingsTableEmpty:r()})},79387:(e,t,s)=>{s.d(t,{C:()=>l.C});var l=s(42525)},82287:(e,t,s)=>{s.d(t,{C:()=>n,R:()=>o});var l=s(6029),r=s(55729),i=s(67149);let n=(0,r.createContext)({colors:{},texts:{}}),o=e=>{let{standings:t,children:s}=e,[o,a]=(0,r.useMemo)(()=>{let e=t.rows.map(e=>({...e.promotion,teamId:e.team.id})).filter(e=>!!e.id);return[(0,i.oB)(e),e.reduce((e,t)=>(e[t.teamId]=t.text,e),{})]},[null==t?void 0:t.id]);return(0,l.jsx)(n.Provider,{value:{colors:o,texts:a},children:s})}}}]);