https://theanalyst.com/wp-content/plugins/the-analyst-sdapi/build/…/view.js?ver=9db21443f4cccd8e5167
1(()=>{"use strict";var e={9115(){const e=window.wp.element,t=window.wp.i18n,i=window.wp.url;function a(e){return"AbortError"!==e.name&&("NETWORK_ERROR"===e.code||e.message.includes("fetch")||e.message.includes("timeout"))}function r(e){return e>=500||429===e}function o(e){return new Promise(t=>setTimeout(t,e))}function n(e){const t=e.get("Retry-After");if(!t)return null;if(/^\d+$/.test(t))return 1e3*Number(t);const i=new Date(t).getTime();return Number.isNaN(i)?null:Math.max(0,i-Date.now())}const c="__taSdapiLiveMatchesV1";function l(){const e=new Set,t=new Set;let c=[],l=new Map,s={},d={},m=!1,_={},u=0,h=null,p=0,f=0,b=0;const g=()=>({rows:c,byId:l,competitions:s,teams:d,winProbability:_,loaded:m,failures:u}),k=()=>{const t=g();e.forEach(e=>{try{e(t)}catch(e){console.error("live match subscriber failed",e)}})},v=()=>{l=new Map(c.map(e=>[e.id,e]))},w=(e,t)=>Object.keys(e||{}).some(e=>!(e in t)),y=(e,t,i)=>{if(!t)return{...e,scoreAt:0};const a=e?.home?.score!==t?.home?.score||e?.away?.score!==t?.away?.score;return{...e,scoreAt:a?i:t.scoreAt??0}},x=async()=>{const e=b,_=p>0&&f>0&&Date.now()-p>f,h=!m||_;let g,x,M,j;try{({data:g,hintMs:x,headers:M}=await async function(e,t,c,l={}){const s=l.retries||0;for(let d=0;d<=s;d++){const m=new URL((0,i.addQueryArgs)(`wp-json/${sdapi.api_base}/${e}/${t}`,c),window.location.origin).href,_=!l.signal&&l.timeoutMs?new AbortController:null,u=_?setTimeout(()=>_.abort(),l.timeoutMs):null,h=()=>fetch(m,{method:"GET",credentials:"omit",headers:{...l.headers||{}},signal:_?_.signal:l.signal});let p,f;try{p=await h()}catch(e){if(u&&clearTimeout(u),d<s&&a(e)){await o(100*Math.pow(2,d));continue}const t=new Error(`SDAPI network error: ${e.message}`);throw t.cause=e,t}finally{u&&clearTimeout(u)}if(!p.ok){let e="";try{e=await p.text()}catch{}const t=new Error(`SDAPI ${p.status} ${p.statusText}`);if(t.status=p.status,t.body=e,t.retryAfterMs=n(p.headers),d<s&&r(p.status)){await o(100*Math.pow(2,d));continue}throw t}try{f=await p.json()}catch(e){const t=new Error("SDAPI returned invalid JSON");throw t.cause=e,t}if("object"!=typeof f||null===f)throw new Error("SDAPI returned invalid response format");return l.includeMetadata?{data:f,hintMs:n(p.headers),headers:p.headers}:f}}("livematches",h?"":"updates",{},{includeMetadata:!0,timeoutMs:15e3}))}catch(t){throw e===b&&(u+=1,k()),t}if(e!==b)return x;u=0,h||g.resync?((e=>{const t=Date.now();c=(Array.isArray(e.match)?e.match:[]).map(e=>y(e,l.get(e.id),t)),s=e.competitions||{},d=e.teams||{},m=!0,v()})(g),j=!0):j=(e=>{const t=Array.isArray(e.match)?e.match:[],i=Array.isArray(e.removed)?e.removed:[],a=w(e.competitions,s)||w(e.teams,d);if(e.competitions&&(s={...s,...e.competitions}),e.teams&&(d={...d,...e.teams}),!t.length&&!i.length)return a;const r=Date.now(),o=new Map(l);t.forEach(e=>
1o.set(e.id,y(e,l.get(e.id),r))),i.forEach(e=>o.delete(e));const n=new Map(c.map((e,t)=>[e.id,t])),m=e=>{const t=Date.parse(e.kickoff);return Number.isNaN(t)?Number.MAX_SAFE_INTEGER:t},_=e=>n.get(e.id)??Number.MAX_SAFE_INTEGER;return c=[...o.values()].sort((e,t)=>m(e)-m(t)||_(e)-_(t)),v(),!0})(g);const S=Date.now()-(e=>e&&"function"==typeof e.get?1e3*["X-SDAPI-Age","Age"].reduce((t,i)=>{const a=Number.parseInt(e.get(i),10);return t+(Number.isFinite(a)&&a>0?a:0)},0):0)(M),N=T(g.probabilities,S);return"number"==typeof g.deltaWindow&&g.deltaWindow>0?f=1e3*g.deltaWindow:0===f&&console.warn("SDAPI live matches: response carried no deltaWindow, so we cannot tell whether a delta covers the time since the last poll. The gap check is off."),p=S,(j||N)&&k(),t.forEach(e=>{try{e()}catch(e){console.error("live match poll listener failed",e)}}),x},T=(e,t)=>{const i=e?.winProbability;if(!i||"object"!=typeof i)return!1;const a=!((e,t)=>{const i=Object.keys(e);return i.length===Object.keys(t).length&&i.every(i=>{const a=e[i],r=t[i];return r&&a.home===r.home&&a.draw===r.draw&&a.away===r.away&&a.state===r.state})})(i,_);return _=((e,t,i)=>{const a={},r=e=>t&&e?i-1e3*(t-e):0;return Object.entries(e).forEach(([e,t])=>{a[e]={...t,localAt:r(t?.at),localMovedAt:r(t?.movedAt)}}),a})(i,Number(e?.asOf)||0,t),a},M=()=>{h||(h=function(e,t={}){const i=t.defaultDelayMs??432e5,a=t.maxVisibleDelayMs??18e5,r=t.noHintDelayMs??18e5,o=t.errorBaseDelayMs??3e4,n=t.maxErrorDelayMs??3e5;let c=null,l=!0,s=!1,d=i,m=null,_=0;const u=()=>{c&&(clearTimeout(c),c=null)},h=(e,t=!1)=>{if(u(),l)return;d="number"==typeof e&&e>0?e:d;const i=Date.now();let r=t||null===m?i+d:m+d;if(r<i&&(r+=Math.ceil((i-r)/d)*d),r=Math.max(r,i+d/2),m=r,"visible"===document.visibilityState){const e=Math.min(r-i,a);c=setTimeout(p,e)}},p=async()=>{if(!l&&!s){s=!0;try{await f()}finally{s=!1}}},f=async()=>{if(l)return;let t;try{t=await e()}catch(e){_+=1;const t="number"==typeof e?.retryAfterMs&&e.retryAfterMs>0?e.retryAfterMs:null,i=Math.min(o*Math.pow(2,_-1),n);return console.error("SDAPI polling run failed; will retry",e),void h(t??i,!0)}_=0,"number"==typeof t&&t>0?h(t):(console.warn("SDAPI polling: response carried no Retry-After hint â falling back to a bounded delay. The endpoint should emit one on every response."),h(r))},b=()=>{if(!l)if("visible"===document.visibilityState){const e=Date.now();if(!m||e>=m)p();else{const t=m-e;u(),c=setTimeout(p,Math.min(t,a))}}else u()};return{start:(e=0)=>{l&&(l=!1,d=i,m=null,window.addEventListener("visibilitychange",b),window.addEventListener("focus",b),0===e?p():h(e>0?e:i))},stop:()=>{l||(l=!0,window.removeEventListener("visibilitychange",b),window.removeEventListener("focus",b),u(),m=null)}}}(x),h.start())},j=()=>0===e.size&&0===t.size,S=()=>{h&&(h.stop(),h=null,b+=1,m=!1,p=0,u=0,_={})};return{subscribe:t=>(e.add(t),M(),m&&t(g()),()=>{e.delete(t),j()&&S()}),onPoll:e=>(t.add(e),M(),()=>{t.delete(e),j()&&S()}),get:e=>l.get(e),all:()=>c,snapshot:g}}function s(){return window[c]||(window[c]=l()),window[c]}const d=window.ReactJSXRuntime;function m({skeleton:e}){return e.map((e,t)=>(0,d.jsx)("li",{className:e.className,"aria-hidden":"true",dangerouslySetInnerHTML:{__html:e.html}},t))}const _=window.React;function u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self;var h,p,f,b,g={exports:{}};g.exports=function(){if(b)return f;b=1;var e=p?h:(p=1,h="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function i(){}return i.resetWarningCache=t,f=function(){function a(t,i,a,r,o,n){if(n!==e){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function r(){return a}a.isRequired=a;var o={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:r,element:a,elementType:a,instanceOf:r,node:a,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:t};return o.PropTypes=o,o}}()();var k=u(g.exports);const v=k.shape({home:k.number,draw:k.number,away:k.number,state:k.oneOf(["pre","live","final"])}),w=k.oneOfType([v,k.shape({state:k.oneOf(["awaiting"]).isRequired})]),y=Object.freeze({state:"awaiting"});var x,T={exports:{}};x=T,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,i(r)))}return e}function i(i){if("string"==typeof i||"number"==typeof i)return i;if("object"!=typeof i)return"";if(Array.isArray(i))return t.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var r="";for(var o in i)e.call(i,o)&&i[o]&&(r=a(r,o));return r}function a(e,t){return t?e?e+" "+t:e+t:e}x.exports?(t.default=t,x.exports=t):window.classNames=t}();var M=u(T.exports);const j=({src:e,className:t,size:i,loading:a="lazy"})=>{const[r,o]=(0,_.useState)({src:null,attempts:0}),n=r.src===e?r.attempts:0,c=0===n?e:`${e}${e.includes("?")?"&":"?"}retry=${n}`;return(0,d.jsx)("img",{className:t,src:c,width:i,height:i,alt:"",loading:a,decoding:"async",onError:()=>0===n&&o({src:e,attempts:1})})};
1j.propTypes={src:k.string.isRequired,className:k.string,size:k.number.isRequired,loading:k.oneOf(["lazy","eager"])};const S=(e,t="soccer")=>e?e.toLowerCase():t,N={abandoned:"ABD",cancelled:"CANC",postponed:"PPD",suspended:"SUSP"},P=e=>{const t=String(e??"").toLowerCase();return Object.hasOwn(N,t)?N[t]:""},L=[1,2,3,4,5,6,7,8,9,10],B=[1,2,3,4,5],E={1:45,2:90,3:105,4:120},O=(e,t)=>[e>0?`${e} minute${1===e?"":"s"}`:"",`${t} second${1===t?"":"s"}`,"remaining"].filter(Boolean).join(" "),C=(e,t)=>{const{periodId:i,status:a}=e||{};return P(a)||(i||0===i?t[i]?.label??"":"")},A={soccer:{sport:"soccer",teamOrder:"standard",periodIds:{live:[1,2,3,4,5,10,11,12,13],upcoming:[16],finished:[14]},periodMapping:{1:{name:"First half",label:"1H"},2:{name:"Second half",label:"2H"},3:{name:"Extra time first half",label:"ET"},4:{name:"Extra time second half",label:"ET"},5:{name:"Penalty shootout",label:"PENS"},10:{name:"Half time",label:"HT"},11:{name:"End of second half (before extra time)",label:"ET"},12:{name:"Extra time half-time",label:"ET"},13:{name:"End of extra time (before penalties)",label:"AET"},14:{name:"Full time",label:"FT"},16:{name:"Pre-match",label:null}},generateMatchCentreLink:(e,t,i)=>e&&t&&i?`/opta-football-match-centre?competitionId=${e}&seasonId=${t}&matchId=${i}`:null,generateLogoUrl:(e,t,i="team")=>{const{id:a}=e||{};return a?"flags"===i?`https://omo.akamai.opta.net/image.php?secure=true&h=omo.akamai.opta.net&sport=football&entity=flags&description=countries&dimensions=21x21&id=${a}`:`https://omo.akamai.opta.net/image.php?secure=true&h=omo.akamai.opta.net&sport=football&entity=team&description=badges&dimensions=65&id=${a}`:"https://secure.images.akamai.opta.net/placeholder/team/holder_65.png"},formatMatchTime:e=>{const{minute:t,periodId:i}=e||{},a=E[i];return!a||"number"!=typeof t||t<=0?"":t<=a?`${t}'`:`${a}+${t-a}'`},formatSpokenMatchTime:e=>{const{minute:t,periodId:i}=e||{},a=E[i];return!a||"number"!=typeof t||t<=0?"":t<=a?`${t} minute${1===t?"":"s"}`:`${a} plus ${t-a} minutes`},formatStatusLabel:C},basketball:{sport:"basketball",teamOrder:"reversed",periodIds:{live:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,16,17],upcoming:[0,null,void 0],finished:[15]},periodMapping:{0:{name:"Pre-game",label:""},1:{name:"First half",label:"1H"},2:{name:"Second half",label:"2H"},3:{name:"First quarter",label:"1Q"},4:{name:"Second quarter",label:"2Q"},5:{name:"Third quarter",label:"3Q"},6:{name:"Fourth quarter",label:"4Q"},7:{name:"Overtime",label:"OT"},8:{name:"Second overtime",label:"2OT"},9:{name:"Third overtime",label:"3OT"},10:{name:"Fourth overtime",label:"4OT"},11:{name:"Quarter 1 break",label:"Q1"},12:{name:"Half time break",label:"HT"},13:{name:"Quarter 2 break",label:"Q3"},14:{name:"Overtime to be played",label:"Q4"},15:{name:"Post-game",label:""},16:{name:"Regular time end",label:""},17:{name:"Overtime end",label:"OT"}},generateMatchCentreLink:()=>null,generateLogoUrl:(e,t)=>{const{statsId:i}=e||{};return i?`https://shared-static-hosted4.stats.com/logos/24x24/basketball/${"172lzj1lmg8fkiwxbkgtrh5p0"===t?"wcbk":"cbk"}/${i}.png`:"https://secure.images.akamai.opta.net/placeholder/team/holder_150.png"},formatMatchTime:e=>{const{periodId:t,clockMin:i,clockSec:a}=e||{};return L.includes(t)?"number"!=typeof i||"number"!=typeof a?"":`${String(i).padStart(2,"0")}:${String(a).padStart(2,"0")}`:""},formatSpokenMatchTime:e=>{const{periodId:t,clockMin:i,clockSec:a}=e||{};return L.includes(t)?"number"!=typeof i||"number"!=typeof a?"":O(i,a):""},formatStatusLabel:(e,t)=>
1{const{status:i,overtimeNumber:a}=e||{};return!P(i)&&a?`${a>1?a:""}OT`:C(e,t)}},"american-football":{sport:"american-football",teamOrder:"reversed",periodIds:{live:[1,2,3,4,5],upcoming:[0,null,void 0],finished:[15]},periodMapping:{0:{name:"Pre-game",label:""},1:{name:"First quarter",label:"Q1"},2:{name:"Second quarter",label:"Q2"},3:{name:"Third quarter",label:"Q3"},4:{name:"Fourth quarter",label:"Q4"},5:{name:"Overtime",label:"OT"},15:{name:"Played",label:null}},generateMatchCentreLink:()=>null,generateLogoUrl:(e,t)=>{const{statsId:i}=e||{};return i?`https://shared-static-hosted4.stats.com/logos/24x24/football/${"wy3kluvb4efae1of0d8146c1"===t?"nfl":"cfb"}/${i}.png`:"https://secure.images.akamai.opta.net/placeholder/team/holder_150.png"},formatMatchTime:e=>{const{periodId:t,clockMin:i,clockSec:a}=e||{};return B.includes(t)?"number"!=typeof i||"number"!=typeof a?"":`${String(i).padStart(2,"0")}:${String(a).padStart(2,"0")}`:""},formatSpokenMatchTime:e=>{const{periodId:t,clockMin:i,clockSec:a}=e||{};return B.includes(t)?"number"!=typeof i||"number"!=typeof a?"":O(i,a):""},formatStatusLabel:C}},$=((e,t="soccer")=>(i=t)=>{const a=S(i,t);return e[a]||e[t]})(A),z=new Set(["the","of","and","at","de","do","du","la","le"]);function I(e){const t=(e||"").trim().split(/\s+/).filter(Boolean);if(0===t.length)return"";if(1===t.length)return[...t[0]].slice(0,3).join("").toUpperCase();const i=t.filter(e=>!z.has(e.toLowerCase())).map(e=>e.match(/\p{L}/u)?.[0]??"").join("").toUpperCase();return i.length>=2?i:t.map(e=>[...e][0]).join("").toUpperCase()}const q=new Set(["football","soccer"]),D=e=>{const t=S(String(e??""),"");return q.has(t)?"soccer":t},R=(e,t,i)=>e?.[t]??e?.[i],F=e=>Number.isFinite(e)?e:void 0,Y=e=>{if(!e)return;const t=e.shortName||e.contestantShortName||e.name,i=e.code||e.abbreviation||e.contestantCode||"";return{...e,id:e.id,name:e.name,printName:t,code:(i.length>10?I(i):i)||I(t),score:e.score??null,aggregate:F(e.aggregate),reds:F(e.reds)??0,url:e.url||void 0,logo:e.logo||void 0}},Z=e=>{const t=e?.competition;return t&&"object"==typeof t?t:{id:t??R(e,"competitionId","competition_id")}},H=e=>{if(!e)return;const t=F(e.home),i=F(e.away),a=Array.isArray(e.kicks)?e.kicks:[];return void 0!==t||void 0!==i||a.length?{home:t??0,away:i??0,kicks:a.map(e=>({side:e.side,number:Number(R(e,"number","team_penalty_number")),outcome:String(e.outcome??"")}))}:void 0},W={name:"TBC",printName:"TBC",code:"TBC",logo:"https://secure.images.akamai.opta.net/placeholder/team/holder_150.png"},J=["fixture","playing"],U=["fixture","cancelled","postponed"],X=e=>String(e).replace("â"," to "),Q=(e,t)=>{const i=e?.name??"",a=String(t??"");return{spoken:""!==a&&""!==i&&i!==a?i:"",linked:!!e?.url&&""!==a,title:i||void 0}},G=e=>(e=>e?.name||e?.code||"")(e)||("home"===e?.key?"Home":"Away"),V=(e,t)=>Number.isFinite(e)&&Number.isFinite(t)?`${e}â${t}`:"",K=(e,t)=>{const i=V(e?.aggregate,t?.aggregate);return i?0===e.aggregate&&0===t.aggregate||e.aggregate===e.score&&t.aggregate===t.score?"":i:""},ee=(e,t,i)=>"fixture"===String(e?.status??"").toLowerCase()?"":V(t?.score,i?.score),te=e=>!J.includes(String(e?.status??"").toLowerCase()),ie=(e,t)=>{const i=(e?.shootout?.kicks??[]).filter(e=>null!=e),[a,r]=t,o=V(e?.shootout?.[a],e?.shootout?.[r]),n=0===e?.shootout?.[a]&&0===e?.shootout?.[r];return o&&(!n||i.length)||i.some(e=>Number.isFinite(e.number))?{rounds:t.map(e=>i.filter(t=>t.side===e)),tally:n&&!i.length?"":o,settled:te(e)}:null},ae=/(?:Z|[+-]\d{2}(?::?\d{2})?)$/,re=/[+-]\d{2}$/,oe=/T\d{2}:\d{2}/,ne=e=>{const t=String(e??"").trim().replace(" ","T");return oe.test(t)?re.test(t)?`${t}:00`:ae.test(t)?t:`${t}Z`:t},ce=e=>{if("string"!=typeof e||""===e)return"";const t=new Date(ne(e));return Number.isNaN(t.getTime())?"":t.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})},le=e=>"playing"===String(e?.status??"").toLowerCase(),se=e=>["fixture","playing","played"].includes(String(e?.status??"").toLowerCase())&&!(e=>"soccer"===D(e?.sport)&&5===e?.periodId)(e),de=e=>!U.includes(String(e?.status??"").toLowerCase()),me=e=>{if(e?.timeUnknown)return!1;if("fixture"!==String(e?.status??"").toLowerCase())return!1;const t=new Date(ne(e?.kickoff)).getTime();return!Number.isNaN(t)&&Date.now()-t>9e5},_e=e=>{if(!e)return null;const t=(m=e,"reversed"===$(m?.sport).teamOrder?["away","home"]:["home","away"]),[i,a]=t,r=$(e.sport),o=e.periodId??0,n={key:"home",...e.home?.id?e.home:W},c={key:"away",...e.away?.id?e.away:W},l="home"===i?n:c,s="home"===i?c:n,d=new Date(ne(e.kickoff));var m,_;return{id:e.id,url:e.url,status:String(e.status??""),stopped:(_=e.status,Object.hasOwn(N,String(_??"").toLowerCase())),competition:e.competition??{},venue:e.venue??"",date:Number.isNaN(d.getTime())?"":d.toLocaleDateString(void 0,{month:"long",day:"numeric"}),periodLabel:r.periodMapping[o]?.label??"",periodName:r.periodMapping[o]?.name??"",statusLabel:r.formatStatusLabel?.(e,r.periodMapping)??"",statusName:P
1(e.status)?String(e.status??""):r.periodMapping[o]?.name??"",first:i,second:a,firstSide:l,secondSide:s,live:le(e),started:de(e),overdue:me(e),predicted:se(e),clock:de(e)?r.formatMatchTime?.(e)??"":"",clockSpoken:de(e)?r.formatSpokenMatchTime?.(e)??"":"",kickoff:e?.timeUnknown?"@":ce(e?.kickoff),kickoffInstant:ne(e?.kickoff),score:ee(e,l,s),aggregate:K(l,s),shootout:ie(e,t)}};function ue(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===i&&a.firstChild?a.insertBefore(r,a.firstChild):a.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}var he="MatchTickerTile-module_match-ticker-tile__sr__2jpHA";ue('.MatchTickerTile-module_match-ticker-tile__sr__2jpHA{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.MatchTickerTile-module_match-ticker-tile__Z60Lj{--match-tile-focus-ring:var(--wp--preset--color--base,#f7f7f7);--match-tile-focus-radius:2px;--ta-ticker-score-size:14px;--ta-ticker-score-size-sm:12px;--ta-ticker-score-slot:calc(var(--ta-ticker-score-size)*3 + 4px);--ta-ticker-side:60px;display:flex;flex:0 0 calc(var(--ta-ticker-side)*2 + var(--ta-ticker-score-slot) + 38px);flex-direction:column;gap:4px;justify-content:flex-start;min-height:64px;min-width:0;padding:8px 14px;scroll-snap-align:start;transition:background-color .2s var(--match-ease,var(--ta-ticker-ease,cubic-bezier(.38,.41,.27,1)))}.MatchTickerTile-module_match-ticker-tile__Z60Lj,.MatchTickerTile-module_match-ticker-tile__Z60Lj *,.MatchTickerTile-module_match-ticker-tile__Z60Lj:after,.MatchTickerTile-module_match-ticker-tile__Z60Lj:before{box-sizing:border-box}.MatchTickerTile-module_match-ticker-tile__comp-link__eLP-C:is(a),.MatchTickerTile-module_match-ticker-tile__team-link__YF4wV:is(a){position:relative;z-index:2}.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:focus-visible){background:#43304f;background:color-mix(in srgb,var(--wp--preset--color--primary,#1d0a30) 85%,#fff)}.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:focus-visible) .MatchTickerTile-module_match-ticker-tile__comp-name__-0YaL,.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:focus-visible) .MatchTickerTile-module_match-ticker-tile__middle__PJO-i,.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:focus-visible) .MatchTickerTile-module_match-ticker-tile__team__HYIbX{color:hsla(0,0%,100%,.55)}.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:focus-visible) .MatchTickerTile-module_match-ticker-tile__eyebrow__U3siq,.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:focus-visible) .MatchTickerTile-module_match-ticker-tile__footer__3DLJ4,.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:focus-visible) .MatchTickerTile-module_match-ticker-tile__prediction__hq9Aq{--red-cards-mark:hsla(0,0%,100%,.55);--red-cards-count:hsla(0,0%,100%,.55);--shootout-scored:hsla(0,0%,100%,.55);--shootout-missed:hsla(0,0%,100%,.55);--shootout-waiting:hsla(0,0%,100%,.55);--shootout-tally-bg:transparent;--shootout-tally-ink:hsla(0,0%,100%,.55);--prediction-bar-home:hsla(0,0%,100%,.55);--prediction-bar-draw:hsla(0,0%,100%,.55);--prediction-bar-away:hsla(0,0%,100%,.55);--prediction-bar-home-label:hsla(0,0%,100%,.55);--prediction-bar-draw-label:hsla(0,0%,100%,.55);--prediction-bar-away-label:hsla(0,0%,100%,.55)}.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:focus-visible) .MatchTickerTile-module_match-ticker-tile__eyebrow__U3siq,.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:focus-visible) .MatchTickerTile-module_match-ticker-tile__footer__3DLJ4{color:hsla(0,0%,100%,.55)}.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:focus-visible) .MatchTickerTile-module_match-ticker-tile__aggregate__Qlq72{color:hsla(0,0%,100%,.55)}.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:focus-visible) .MatchTickerTile-module_match-ticker-tile__comp-logo__iacuH,.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:focus-visible) .MatchTickerTile-module_match-ticker-tile__team-logo__5ZcGD{filter:grayscale(1);opacity:.4}@media (hover:hover) and (pointer:fine){.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:hover){background:#43304f;background:color-mix(in srgb,var(--wp--preset--color--primary,#1d0a30) 85%,#fff)}.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:hover) .MatchTickerTile-module_match-ticker-tile__comp-name__-0YaL,.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:hover) .MatchTickerTile-module_match-ticker-tile__middle__PJO-i,.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:hover) .MatchTickerTile-module_match-ticker-tile__team__HYIbX{color:hsla(0,0%,100%,.55)}.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:hover) .MatchTickerTile-module_match-ticker-tile__eyebrow__U3siq,.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:hover) .MatchTickerTile-module_match-ticker-tile__footer__3DLJ4,.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:hover) .MatchTickerTile-module_match-ticker-tile__prediction__hq9Aq{--red-cards-mark:hsla(0,0%,100%,.55);--red-cards-count:hsla(0,0%,100%,.55);--shootout-scored:hsla(0,0%,100%,.55);--shootout-missed:hsla(0,0%,100%,.55);--shootout-waiting:hsla(0,0%,100%,.55);--shootout-tally-bg:transparent;--shootout-tally-ink:hsla(0,0%,100%,.55);--prediction-bar-home:hsla(0,0%,100%,.55);--prediction-bar-draw:hsla(0,0%,100%,.55);--prediction-bar-away:hsla(0,0%,100%,.55);--prediction-bar-home-label:hsla(0,0%,100%,.55);--prediction-bar-draw-label:hsla(0,0%,100%,.55);--prediction-bar-away-label:hsla(0,0%,100%,.55)}.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:hover) .MatchTickerTile-module_match-ticker-tile__eyebrow__U3siq,.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:hover) .MatchTickerTile-module_match-ticker-tile__footer__3DLJ4{color:hsla(0,0%,100%,.55)}.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:hover) .MatchTickerTile-module_match-ticker-tile__aggregate__Qlq72{color:hsla(0,0%,100%,.55)}.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:hover) .MatchTickerTile-module_match-ticker-tile__comp-logo__iacuH,.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:hover) .MatchTickerTile-module_match-ticker-tile__team-logo__5ZcGD{filter:grayscale(1);opacity:.4}.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:hover) .MatchTickerTile-module_match-ticker-tile__cta__FaF9h{opacity:1}.MatchTickerTile-module_match-ticker-tile__Z60Lj:has([data-match-tile-link]:hover) .MatchTickerTile-module_match-ticker-tile__status__-wrYj{opacity:0}
1}.MatchTickerTile-module_match-ticker-tile__Z60Lj+.MatchTickerTile-module_match-ticker-tile__Z60Lj{box-shadow:-1px 0 0 hsla(0,0%,100%,.18)}.MatchTickerTile-module_match-ticker-tile__comp-link__eLP-C{align-items:center;color:inherit;display:inline-flex;gap:4px;margin:-5px 0;max-width:100%;min-width:24px;padding:5px 0;text-decoration:none}.MatchTickerTile-module_match-ticker-tile__comp-link__eLP-C:is(a) .MatchTickerTile-module_match-ticker-tile__comp-name__-0YaL{text-decoration:underline;text-decoration-color:transparent;text-underline-offset:2px;transition:color .2s var(--match-ease,var(--ta-ticker-ease,cubic-bezier(.38,.41,.27,1))),text-decoration-color .2s var(--match-ease,var(--ta-ticker-ease,cubic-bezier(.38,.41,.27,1)))}.MatchTickerTile-module_match-ticker-tile__comp-link__eLP-C:is(a):focus-visible .MatchTickerTile-module_match-ticker-tile__comp-name__-0YaL{color:var(--wp--preset--color--accent,#fd4890);text-decoration-color:currentcolor}@media (hover:hover) and (pointer:fine){.MatchTickerTile-module_match-ticker-tile__comp-link__eLP-C:is(a):hover .MatchTickerTile-module_match-ticker-tile__comp-name__-0YaL{color:var(--wp--preset--color--accent,#fd4890);text-decoration-color:currentcolor}}.MatchTickerTile-module_match-ticker-tile__comp-link__eLP-C:focus-visible{border-radius:2px;outline:2px solid var(--wp--preset--color--base,#f7f7f7);outline-offset:2px}.MatchTickerTile-module_match-ticker-tile__comp-name__-0YaL{color:hsla(0,0%,100%,.7);font-family:var(--wp--preset--font-family--display,"Big Shoulders Text"),sans-serif;font-size:12px;font-weight:700;margin-bottom:-3px;min-width:0;overflow:hidden;padding-bottom:3px;text-overflow:ellipsis}.MatchTickerTile-module_match-ticker-tile__comp-logo__iacuH{background:var(--wp--preset--color--base,#f7f7f7);border-radius:2px;box-sizing:content-box;height:8px;object-fit:contain;padding:1px;transition:opacity .2s var(--match-ease,var(--ta-ticker-ease,cubic-bezier(.38,.41,.27,1))),filter .2s var(--match-ease,var(--ta-ticker-ease,cubic-bezier(.38,.41,.27,1)));width:8px}.MatchTickerTile-module_match-ticker-tile__comp__YJlgW,.MatchTickerTile-module_match-ticker-tile__status__-wrYj{font-size:11px;letter-spacing:.04em;overflow:hidden;text-transform:uppercase;white-space:nowrap}.MatchTickerTile-module_match-ticker-tile__cta__FaF9h{--match-centre-cta-arrow:var(--wp--preset--color--accent,#fd4890);background:#43304f;background:color-mix(in srgb,var(--wp--preset--color--primary,#1d0a30) 85%,#fff);color:var(--wp--preset--color--accent,#fd4890);opacity:0;padding-left:8px;pointer-events:none;position:absolute;right:0;transition:opacity .2s var(--match-ease,var(--ta-ticker-ease,cubic-bezier(.38,.41,.27,1))),filter .2s var(--match-ease,var(--ta-ticker-ease,cubic-bezier(.38,.41,.27,1)));z-index:3}.MatchTickerTile-module_match-ticker-tile__head__JOVxk{align-items:center;display:flex;gap:8px;justify-content:space-between;margin-bottom:2px;position:relative}.MatchTickerTile-module_match-ticker-tile__comp__YJlgW{min-width:0;overflow:clip;overflow-clip-margin:10px}@supports not (overflow-clip-margin:10px){.MatchTickerTile-module_match-ticker-tile__comp__YJlgW{overflow:visible}}.MatchTickerTile-module_match-ticker-tile__status__-wrYj{flex:0 0 auto;font-family:var(--wp--preset--font-family--monospace,"IBM Plex Mono"),monospace;font-variant-numeric:tabular-nums;letter-spacing:normal;opacity:.7;transition:opacity .2s var(--match-ease,var(--ta-ticker-ease,cubic-bezier(.38,.41,.27,1)))}.MatchTickerTile-module_match-ticker-tile__status--live__QxAgH{background:var(--match-live,#20d77f);border-radius:2px;color:var(--wp--preset--color--primary,#1d0a30);font-weight:600;margin-block:-1px;opacity:1;padding:1px 5px}.MatchTickerTile-module_match-ticker-tile__teams__CDFaB{align-items:center;display:flex;justify-content:space-between;min-height:28px;position:relative;white-space:nowrap}.MatchTickerTile-module_match-ticker-tile__center__ZtO2l{align-items:center;display:flex;justify-content:center;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.MatchTickerTile-module_match-ticker-tile__side__iXPql{align-items:center;display:inline-flex;flex:0 0 var(--ta-ticker-side);min-width:0}.MatchTickerTile-module_match-ticker-tile__side__iXPql:first-child .MatchTickerTile-module_match-ticker-tile__team-link__YF4wV{flex-direction:row-reverse}.MatchTickerTile-module_match-ticker-tile__team-link__YF4wV{align-items:center;color:var(--wp--preset--color--base,#f7f7f7);display:inline-flex;gap:6px;justify-content:flex-end;margin:-4px 0;min-height:24px;min-width:0;padding:4px 0;text-decoration:none;width:100%}.MatchTickerTile-module_match-ticker-tile__team-link__YF4wV:is(a):focus-visible .MatchTickerTile-module_match-ticker-tile__team__HYIbX{color:var(--wp--preset--color--accent,#fd4890);text-decoration-color:currentcolor}@media (hover:hover) and (pointer:fine){.MatchTickerTile-module_match-ticker-tile__team-link__YF4wV:is(a):hover .MatchTickerTile-module_match-ticker-tile__team__HYIbX{color:var(--wp--preset--color--accent,#fd4890);text-decoration-color:currentcolor}}.MatchTickerTile-module_match-ticker-tile__team-link__YF4wV:focus-visible{border-radius:2px;outline:2px solid var(--wp--preset--color--base,#f7f7f7);outline-offset:2px}.MatchTickerTile-module_match-ticker-tile__team-logo__5ZcGD{background:var(--wp--preset--color--base,#f7f7f7);border-radius:999px;box-sizing:content-box;flex:0 0 auto;height:16px;object-fit:contain;padding:1px;transition:opacity .2s var(--match-ease,var(--ta-ticker-ease,cubic-bezier(.38,.41,.27,1)));width:16px}.MatchTickerTile-module_match-ticker-tile__team__HYIbX{flex:0 1 auto;font-family:var(--wp--preset--font-family--display,"Big Shoulders Text"),sans-serif;font-size:16px;font-weight:700;letter-spacing:.6px;line-height:1;margin-bottom:-3px;min-width:0;overflow:hidden;padding-bottom:3px;text-decoration:underline;text-decoration-color:transparent;text-overflow:ellipsis;text-transform:uppercase;text-underline-offset:2px;transition:color .2s var(--match-ease,var(--ta-ticker-ease,cubic-bezier(.38,.41,.27,1))),text-decoration-color .2s var(--match-ease,var(--ta-ticker-ease,cubic-bezier(.38,.41,.27,1)))}.MatchTickerTile-module_match-ticker-tile__middle__PJO-i{color:var(--wp--preset--color--base,#f7f7f7);font-family:var(--wp--preset--font-family--monospace,"IBM Plex Mono"),monospace;font-size:var(--ta-ticker-score-size);margin:-4px 0;min-width:var(--ta-ticker-score-slot);padding:4px 2px;text-align:center;transition:color .2s var(--match-ease,var(--ta-ticker-ease,cubic-bezier(.38,.41,.27,1)))}.MatchTickerTile-module_match-ticker-tile__score__YIAUc{font-variant-numeric:tabular-nums;font-weight:700}.MatchTickerTile-module_match-ticker-tile__score--long__qL-An{font-size:var(--ta-ticker-score-size-sm)}.MatchTickerTile-module_match-ticker-tile__eyebrow__U3siq{align-items:center;display:flex;height:10px;justify-content:space-between;margin-bottom:-4px;position:relative;transition:opacity .2s var(--match-ease,var(--ta-ticker-ease,cubic-bezier(.38,.41,.27,1)))}.MatchTickerTile-module_match-ticker-tile__aggregate__Qlq72{color:hsla(0,0%,100%,.6);font-family:var(--wp--preset--font-family--monospace,"IBM Plex Mono"),monospace;font-size:10px;font-variant-numeric:tabular-nums;left:50%;line-height:1;position:absolute;transform:translateX(-50%);white-space:nowrap}.MatchTickerTile-module_match-ticker-tile__versus__Mrv8U{color:hsla(0,0%,100%,.7)}.MatchTickerTile-module_match-ticker-tile__footer__3DLJ4{align-items:flex-start;display:flex;gap:2px;justify-content:center;min-height:17px;position:relative;transition:opacity .2s var(--match-ease,var(--ta-ticker-ease,cubic-bezier(.38,.41,.27,1)))}.MatchTickerTile-module_match-ticker-tile__footer__3DLJ4:empty:before{align-self:flex-start;background:var(--ta-ticker-neutral,hsla(0,0%,100%,.18));border-radius:2px;content:"";height:4px;width:100%}.MatchTickerTile-module_match-ticker-tile__prediction__hq9Aq{--prediction-bar-ease:var(--match-ease,var(--ta-ticker-ease,cubic-bezier(0.38,0.41,0.27,1)));--prediction-bar-home:#9e74df;--prediction-bar-home-label:#c0a6ef;--prediction-bar-draw:hsla(0,0%,100%,.42);--prediction-bar-draw-label:hsla(0,0%,100%,.7);--prediction-bar-away:var(--wp--preset--color--accent,#fd4890);--prediction-bar-away-label:#ff8ab8}');const pe=({competition:e,loading:t})=>{const i=e?.name??"",a=e?.code||i,{spoken:r,linked:o,title:n}=Q(e,a),c=r?"abbr":"span",l=o?"a":"span";return(0,d.jsx)("span",{className:"MatchTickerTile-module_match-ticker-tile__comp__YJlgW",children:(0,d.jsxs)(l,{className:"MatchTickerTile-module_match-ticker-tile__comp-link__eLP-C",href:o?e.url:void 0,children:[""!==a&&e?.logo&&(0,d.jsx)(j,{className:"MatchTickerTile-module_match-ticker-tile__comp-logo__iacuH",src:e.logo,size:8,loading:t},e.logo),(0,d.jsx)(c,{className:"MatchTickerTile-module_match-ticker-tile__comp-name__-0YaL",title:n,children:a}),r&&(0,d.jsx)("span",{className:he,children:` ${r}`})]})})};pe.propTypes={competition:k.object,loading:k.oneOf(["lazy","eager"])};ue(".MatchClock-module_match-clock__eOBQ0{display:inline-flex;justify-content:center}.MatchClock-module_match-clock__sr__QnaRM{border:0;clip-path:inset(50%);
1height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}");const fe=({value:e,spoken:t,live:i,className:a})=>e?(0,d.jsx)("span",{className:M("MatchClock-module_match-clock__eOBQ0",a),"data-live":i?"":void 0,children:t?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"MatchClock-module_match-clock__sr__QnaRM",children:` ${t} `}),(0,d.jsx)("span",{"aria-hidden":"true",children:e})]}):e}):null;fe.propTypes={value:k.string,spoken:k.string,live:k.bool,className:k.string};ue(".MatchStatus-module_match-status__wFEmD{display:inline-flex;justify-content:center}.MatchStatus-module_match-status__sr__RxAe2{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}");const be=({label:e,name:t,className:i})=>e?(0,d.jsx)("span",{className:M("MatchStatus-module_match-status__wFEmD",i),children:t&&t!==e?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"MatchStatus-module_match-status__sr__RxAe2",children:` ${t} `}),(0,d.jsx)("span",{"aria-hidden":"true",children:e})]}):e}):null;be.propTypes={label:k.string,name:k.string,className:k.string};ue('.MatchCentreCta-module_match-centre-cta__rslyJ{align-items:center;display:flex;font-family:var(--wp--preset--font-family--display,"Big Shoulders Text"),sans-serif;font-size:11px;font-weight:700;gap:8px;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}.MatchCentreCta-module_match-centre-cta__rslyJ [data-match-centre-cta-label]{text-decoration:underline;text-underline-offset:2px}.MatchCentreCta-module_match-centre-cta__rslyJ svg{fill:var(--match-centre-cta-arrow,var(--wp--preset--color--accent,#fd4890));flex:none;height:auto;width:1.3em}');const ge=({className:e})=>(0,d.jsxs)("div",{className:M("MatchCentreCta-module_match-centre-cta__rslyJ",e),"aria-hidden":"true",children:[(0,d.jsx)("span",{"data-match-centre-cta-label":"",children:"Match Centre"}),(0,d.jsx)("svg",{viewBox:"0 0 18 11",focusable:"false","aria-hidden":"true",children:(0,d.jsx)("path",{d:"M11.623.297c-.352.352-.403.814-.101 1.202l.08.093 2.649 2.925H.906c-.547 0-.906.36-.906.907 0 .475.275.828.74.895l.133.01h13.378l-2.645 2.923c-.381.38-.381.9.017 1.299.172.171.4.248.658.248.186 0 .357-.04.505-.129l.107-.078 4.125-4.527c.156-.155.232-.383.232-.641a.935.935 0 00-.17-.568L12.956.314c-.415-.416-.935-.416-1.333-.017z"})})]});ge.propTypes={className:k.string};const ke=({competition:e,kickoff:t,kickoffInstant:i,started:a,stopped:r,overdue:o,status:n,period:c,clock:l,clockSpoken:s,playing:m,loading:_})=>(0,d.jsxs)("div",{className:"MatchTickerTile-module_match-ticker-tile__head__JOVxk",children:[(0,d.jsx)(pe,{competition:e,loading:_}),(0,d.jsx)("span",{className:M("MatchTickerTile-module_match-ticker-tile__status__-wrYj",m&&"MatchTickerTile-module_match-ticker-tile__status--live__QxAgH"),children:r?(0,d.jsx)(be,{label:n}):o?(0,d.jsx)(be,{label:"TBC",name:"Start time to be confirmed"}):(0,d.jsxs)(d.Fragment,a?{children:[(0,d.jsx)(be,{label:c?.label,name:c?.name}),c?.label&&l?" ":"",(0,d.jsx)(fe,{value:l,spoken:s})]}:{children:[(0,d.jsx)("span",{className:he,children:"Kick-off "}),(0,d.jsx)("time",{dateTime:i,children:t})]})}),(0,d.jsx)(ge,{className:"MatchTickerTile-module_match-ticker-tile__cta__FaF9h"})]});ke.propTypes={competition:k.object,kickoff:k.string,kickoffInstant:k.string,started:k.bool,stopped:k.bool,overdue:k.bool,status:k.string,period:k.object,clock:k.string,clockSpoken:k.string,playing:k.bool,loading:k.oneOf(["lazy","eager"])};ue('.RedCards-module_red-cards__-f1TT{align-items:center;display:flex;gap:2px}.RedCards-module_red-cards__mark__GAazh{background:var(--red-cards-mark,#f85149);border-radius:1px;height:8px;width:6px}.RedCards-module_red-cards__count__QyDLw{color:var(--red-cards-count,#ffa198);font-family:var(--wp--preset--font-family--monospace,"IBM Plex Mono"),monospace;font-size:10px;font-variant-numeric:tabular-nums;line-height:1}.RedCards-module_red-cards__sr__rYnrc{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}');const ve=({count:e,team:t,form:i="marks",className:a})=>{const r="count"===i?1:5;return(0,d.jsxs)("span",{className:M("RedCards-module_red-cards__-f1TT",a),children:[e>0&&(0,d.jsx)("span",{className:"RedCards-module_red-cards__sr__rYnrc",children:`${t}, ${e} red card${1===e?"":"s"}. `}),Array.from({length:Math.min(e,r)},(e,t)=>(0,d.jsx)("span",{className:"RedCards-module_red-cards__mark__GAazh"},t)),e>r&&(0,d.jsx)("span",{className:"RedCards-module_red-cards__count__QyDLw","aria-hidden":"true",children:"count"===i?e:"+"+(e-r)})]})};ve.propTypes={count:k.number,team:k.string,form:k.oneOf(["marks","count"]),className:k.string};ue(".Tally-module_tally__MRscK{display:contents}.Tally-module_tally__sr__-R05Y{border:0;clip-path:inset(50%);
1height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}");const we=({value:e,shown:t,label:i,className:a})=>e?(0,d.jsxs)("span",{className:M("Tally-module_tally__MRscK",a),children:[(0,d.jsx)("span",{className:"Tally-module_tally__sr__-R05Y",children:i?` ${i} ${X(e)} `:` ${X(e)} `}),(0,d.jsx)("span",{"aria-hidden":"true",children:t??e})]}):null;we.propTypes={value:k.string,shown:k.string,label:k.string,className:k.string};const ye=({side:e,loading:t})=>{const i=e?.name??"",a=(e=>(e?.code??"").slice(0,3).replace(/[^\p{L}\p{N}]+$/u,""))(e)||i,{spoken:r,linked:o,title:n}=Q(e,a),c=o?"a":"span";return(0,d.jsx)("span",{className:"MatchTickerTile-module_match-ticker-tile__side__iXPql","data-team-id":e?.id??"",children:(0,d.jsxs)(c,{className:"MatchTickerTile-module_match-ticker-tile__team-link__YF4wV",href:o?e.url:void 0,title:n,children:[""!==a&&e?.logo&&(0,d.jsx)(j,{className:"MatchTickerTile-module_match-ticker-tile__team-logo__5ZcGD",src:e.logo,size:16,loading:t},e.logo),(0,d.jsx)("span",{className:"MatchTickerTile-module_match-ticker-tile__team__HYIbX",children:a}),r&&(0,d.jsx)("span",{className:he,children:` ${r}`})]})})};ye.propTypes={side:k.object,loading:k.oneOf(["lazy","eager"])};const xe=({firstSide:e,secondSide:t,score:i="",loading:a})=>(0,d.jsxs)("div",{className:"MatchTickerTile-module_match-ticker-tile__teams__CDFaB",children:[(0,d.jsx)(ye,{side:e,loading:a}),(0,d.jsx)("div",{className:"MatchTickerTile-module_match-ticker-tile__center__ZtO2l",children:(0,d.jsx)("span",{className:M("MatchTickerTile-module_match-ticker-tile__middle__PJO-i",i?"MatchTickerTile-module_match-ticker-tile__score__YIAUc":"MatchTickerTile-module_match-ticker-tile__versus__Mrv8U",i.length>5&&"MatchTickerTile-module_match-ticker-tile__score--long__qL-An"),children:i?(0,d.jsx)(we,{value:i}):" v "})}),(0,d.jsx)(ye,{side:t,loading:a})]});xe.propTypes={firstSide:k.object,secondSide:k.object,score:k.string,loading:k.oneOf(["lazy","eager"])};var Te={shootout:"Shootout-module_shootout__SAqyY",shootout__kicks:"Shootout-module_shootout__kicks__EihXm",shootout__kick:"Shootout-module_shootout__kick__YGwbO","shootout__kick--scored":"Shootout-module_shootout__kick--scored__FsOBc","shootout__kick--missed":"Shootout-module_shootout__kick--missed__BEPDh","shootout__kick--waiting":"Shootout-module_shootout__kick--waiting__2Lrzo",shootout__tally:"Shootout-module_shootout__tally__hDbwO",shootout__sr:"Shootout-module_shootout__sr__okNct"};ue('.Shootout-module_shootout__SAqyY{align-items:var(--shootout-align,start);box-sizing:border-box;display:grid;gap:var(--shootout-gap,2px);grid-template-columns:var(--shootout-columns,1fr auto 1fr);width:100%}.Shootout-module_shootout__kicks__EihXm{align-items:center;display:flex;gap:3px;width:42px}.Shootout-module_shootout__kicks__EihXm:first-child{flex-direction:row-reverse;grid-column:var(--shootout-column-one,1);justify-self:var(--shootout-align-one,start)}.Shootout-module_shootout__kicks__EihXm:last-child{grid-column:var(--shootout-column-two,3);justify-self:var(--shootout-align-two,end)}.Shootout-module_shootout__kick__YGwbO{border-radius:999px;box-sizing:border-box;height:6px;width:6px}.Shootout-module_shootout__kick--scored__FsOBc{background:var(--shootout-scored,var(--match-live,#20d77f))}.Shootout-module_shootout__kick--missed__BEPDh{border:1px solid var(--shootout-missed,#f85149)}.Shootout-module_shootout__kick--waiting__2Lrzo{background:var(--shootout-waiting,hsla(0,0%,100%,.5));background-clip:content-box;padding:1px}.Shootout-module_shootout__tally__hDbwO{background:#43304f;background:var(--shootout-tally-bg,color-mix(in srgb,var(--wp--preset--color--primary,#1d0a30) 85%,#fff));border-radius:2px;color:var(--shootout-tally-ink,hsla(0,0%,100%,.9));font-family:var(--wp--preset--font-family--monospace,"IBM Plex Mono"),monospace;font-size:10px;font-variant-numeric:tabular-nums;grid-column:var(--shootout-column-tally,2);justify-self:center;line-height:1;margin-top:var(--shootout-tally-lift,-3px);padding:1px 5px;white-space:nowrap}.Shootout-module_shootout__sr__okNct{border:0;clip-path:inset(50%);
1height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}');const Me=({kicks:e,round:t,settled:i})=>{const a=5*t,r=i?e.reduce((e,t)=>{const i=t.number-a;return i>e&&i<=5?i:e},0):5;return(0,d.jsx)("span",{className:Te.shootout__kicks,"aria-hidden":"true",children:Array.from({length:r},(t,i)=>{const r=e.find(e=>e.number===a+i+1),o=r?"scored"===r.outcome?"scored":"missed":"waiting";return(0,d.jsx)("span",{className:M(Te.shootout__kick,Te[`shootout__kick--${o}`])},i)})})};Me.propTypes={kicks:k.array,round:k.number,settled:k.bool};const je=({kicks:e,tally:t,settled:i,className:a})=>{const[r=[],o=[]]=e??[],n=Math.max(0,...[...r,...o].map(e=>e.number).filter(e=>Number.isFinite(e))),c=Math.floor(Math.max(n-1,0)/5),l=""===t?(0,d.jsx)("span",{className:Te.shootout__sr,children:"Penalties "}):(0,d.jsxs)("span",{className:Te.shootout__tally,children:[(0,d.jsx)("span",{className:Te.shootout__sr,children:`Penalties ${X(t)} `}),(0,d.jsx)("span",{"aria-hidden":"true",children:t})]});return(0,d.jsxs)("span",{className:M(Te.shootout,a),children:[n>0&&(0,d.jsx)(Me,{kicks:r,round:c,settled:i}),l,n>0&&(0,d.jsx)(Me,{kicks:o,round:c,settled:i})]})};je.propTypes={kicks:k.array,tally:k.string,settled:k.bool,className:k.string};var Se=_["undefined"!=typeof document&&void 0!==document.createElement?"useLayoutEffect":"useEffect"];function Ne(){}var Pe,Le=e=>Pe||(Pe=function(e){var t=0,i=[],a=new Map,r=new(e||window.ResizeObserver)((e,r)=>{i=i.concat(e),t||window.requestAnimationFrame(function(){for(var e=new Set,o=function(t){if(e.has(i[t].target))return"continue";e.add(i[t].target);var o=a.get(i[t].target);null==o||o.forEach(e=>e(i[t],r))},n=0;n<i.length;n++)o(n);i=[],t=0}),t=1});return{observer:r,subscribe(e,t){var i;r.observe(e);var o=null!==(i=a.get(e))&&void 0!==i?i:[];o.push(t),a.set(e,o)},unsubscribe(e,t){var i,o=null!==(i=a.get(e))&&void 0!==i?i:[];if(1===o.length)return r.unobserve(e),void a.delete(e);var n=o.indexOf(t);-1!==n&&o.splice(n,1),a.set(e,o)}}}(e)),Be={"prediction-bar":"PredictionBar-module_prediction-bar__1JoLq","prediction-bar__sr":"PredictionBar-module_prediction-bar__sr__M7e1N","prediction-bar__segment":"PredictionBar-module_prediction-bar__segment__LWq5g","prediction-bar__fill":"PredictionBar-module_prediction-bar__fill__CYuJg","prediction-bar__value":"PredictionBar-module_prediction-bar__value__r8hiO","prediction-bar__segment--leading":"PredictionBar-module_prediction-bar__segment--leading__-cRqH","prediction-bar__segment--trailing":"PredictionBar-module_prediction-bar__segment--trailing__TXy-X","prediction-bar__segment--home":"PredictionBar-module_prediction-bar__segment--home__BAqGN","prediction-bar__segment--draw":"PredictionBar-module_prediction-bar__segment--draw__CvXUu","prediction-bar__segment--awaiting":"PredictionBar-module_prediction-bar__segment--awaiting__MD5W-","prediction-bar__awaiting":"PredictionBar-module_prediction-bar__awaiting__Mn7ym","prediction-bar__segment--away":"PredictionBar-module_prediction-bar__segment--away__pBHEl","prediction-bar--ends":"PredictionBar-module_prediction-bar--ends__UC-Gh"};ue('.PredictionBar-module_prediction-bar__1JoLq{box-sizing:border-box;display:flex;font-size:var(--prediction-bar-font-size,11px);gap:var(--prediction-bar-gap,2px);min-height:var(--prediction-bar-height,17px);position:relative;width:100%}.PredictionBar-module_prediction-bar__sr__M7e1N{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.PredictionBar-module_prediction-bar__segment__LWq5g{display:flex;flex-direction:column;min-width:0;position:relative;transition:width .3s var(--prediction-bar-ease,var(--match-ease,var(--ta-ticker-ease,cubic-bezier(.38,.41,.27,1))))}.PredictionBar-module_prediction-bar__segment__LWq5g:last-child,.PredictionBar-module_prediction-bar__sr__M7e1N+.PredictionBar-module_prediction-bar__segment__LWq5g{min-width:3px}.PredictionBar-module_prediction-bar__fill__CYuJg{background:var(--prediction-bar-share);height:4px}.PredictionBar-module_prediction-bar__sr__M7e1N+.PredictionBar-module_prediction-bar__segment__LWq5g .PredictionBar-module_prediction-bar__fill__CYuJg{border-radius:var(--prediction-bar-radius-top,2px) 0 0 var(--prediction-bar-radius-bottom,2px)}.PredictionBar-module_prediction-bar__segment__LWq5g:last-child .PredictionBar-module_prediction-bar__fill__CYuJg{border-radius:0 var(--prediction-bar-radius-top,2px) var(--prediction-bar-radius-bottom,2px) 0}.PredictionBar-module_prediction-bar__sr__M7e1N+.PredictionBar-module_prediction-bar__segment__LWq5g:last-child .PredictionBar-module_prediction-bar__fill__CYuJg{border-radius:var(--prediction-bar-radius-top,2px) var(--prediction-bar-radius-top,2px) var(--prediction-bar-radius-bottom,2px) var(--prediction-bar-radius-bottom,2px)}.PredictionBar-module_prediction-bar__value__r8hiO{color:var(--prediction-bar-label);font-family:var(--wp--preset--font-family--monospace,"IBM Plex Mono"),monospace;font-variant-numeric:tabular-nums;left:50%;line-height:1;position:absolute;top:6px;transform:translateX(-50%);white-space:nowrap}.PredictionBar-module_prediction-bar__sr__M7e1N+.PredictionBar-module_prediction-bar__segment__LWq5g .PredictionBar-module_prediction-bar__value__r8hiO{left:0;transform:none}.PredictionBar-module_prediction-bar__segment__LWq5g:last-child .PredictionBar-module_prediction-bar__value__r8hiO{left:auto;right:0;transform:none}.PredictionBar-module_prediction-bar__sr__M7e1N+.PredictionBar-module_prediction-bar__segment__LWq5g:last-child .PredictionBar-module_prediction-bar__value__r8hiO{left:50%;right:auto;transform:translateX(-50%)}.PredictionBar-module_prediction-bar__sr__M7e1N+.PredictionBar-module_prediction-bar__segment--leading__-cRqH:last-child .PredictionBar-module_prediction-bar__value__r8hiO{left:0;right:auto;transform:none}.PredictionBar-module_prediction-bar__sr__M7e1N+.PredictionBar-module_prediction-bar__segment--trailing__TXy-X:last-child .PredictionBar-module_prediction-bar__value__r8hiO{left:auto;right:0;transform:none}.PredictionBar-module_prediction-bar__segment--home__BAqGN{--prediction-bar-share:var(--prediction-bar-home,#9e74df);--prediction-bar-label:var(--prediction-bar-home-label,#c0a6ef)}.PredictionBar-module_prediction-bar__segment--draw__CvXUu{--prediction-bar-share:var(--prediction-bar-draw,hsla(0,0%,100%,.42));--prediction-bar-label:var(\n --prediction-bar-draw-label,hsla(0,0%,100%,.7)\n )}.PredictionBar-module_prediction-bar__segment--awaiting__MD5W-{--prediction-bar-share:var(\n --prediction-bar-awaiting,hsla(0,0%,100%,.18)\n );animation:PredictionBar-module_prediction-bar__awaiting__Mn7ym 1.6s var(--prediction-bar-ease,var(--match-ease,var(--ta-ticker-ease,cubic-bezier(.38,.41,.27,1)))) infinite}@keyframes PredictionBar-module_prediction-bar__awaiting__Mn7ym{50%{opacity:.35}}@media (prefers-reduced-motion:reduce){.PredictionBar-module_prediction-bar__segment--awaiting__MD5W-{animation:none}}.PredictionBar-module_prediction-bar__segment--away__pBHEl{--prediction-bar-share:var(\n --prediction-bar-away,var(--wp--preset--color--accent,#fd4890)\n );--prediction-bar-label:var(--prediction-bar-away-label,#ff8ab8)}.PredictionBar-module_prediction-bar--ends__UC-Gh{align-items:center;padding-inline:calc(var(--prediction-bar-label-width, 40px) + 4px)}.PredictionBar-module_prediction-bar--ends__UC-Gh .PredictionBar-module_prediction-bar__value__r8hiO{display:none}.PredictionBar-module_prediction-bar--ends__UC-Gh .PredictionBar-module_prediction-bar__segment__LWq5g:last-child .PredictionBar-module_prediction-bar__value__r8hiO,.PredictionBar-module_prediction-bar--ends__UC-Gh .PredictionBar-module_prediction-bar__sr__M7e1N+.PredictionBar-module_prediction-bar__segment__LWq5g .PredictionBar-module_prediction-bar__value__r8hiO{display:block;left:auto;margin-right:4px;right:100%;top:50%;transform:translateY(-50%)}.PredictionBar-module_prediction-bar--ends__UC-Gh .PredictionBar-module_prediction-bar__segment__LWq5g:last-child .PredictionBar-module_prediction-bar__value__r8hiO{left:100%;margin-left:4px;margin-right:0;right:auto}');const Ee=({firstSide:e,secondSide:t,winProbability:i,labelPlacement:a="below",className:r})=>
1{const o=(0,_.useRef)(null),n=function({targetRef:e}){const[t,i]=(0,_.useState)(0),a=(0,_.useRef)(0);return(0,_.useEffect)(()=>{const t=e?.current;if(t){const e=Math.ceil(t.getBoundingClientRect().width);a.current=e,i(e)}},[e]),function(e,t,i){void 0===i&&(i={});var a=Le(i.polyfill),r=(e=>{var t=(0,_.useRef)(e);return(0,_.useEffect)(()=>{t.current=e}),t})(t);Se(()=>{function t(e,t){i||r.current(e,t)}var i=0,o=e&&"current"in e?e.current:e;return o?(a.subscribe(o,t),()=>{i=1,a.unsubscribe(o,t)}):Ne},[e,a,r]),a.observer}(e,e=>{const t=Math.ceil(e.contentRect.width);t!==a.current&&(a.current=t,i(t))}),t}({targetRef:o}),[c,l]=(0,_.useState)(0);(0,_.useLayoutEffect)(()=>{const e=o.current;if(!e)return;const t=parseFloat(window.getComputedStyle(e).fontSize);l(Number.isFinite(t)?3*t:0)},[]);const s=[e,{key:"draw"},t].map((e,t)=>({type:e?.key,place:["leading","middle","trailing"][t],name:"draw"===e?.key?"draw":G(e),value:i?.[e?.key]})).filter(e=>Number.isFinite(e?.value)&&e.value>0);if("awaiting"===i?.state)return(0,d.jsxs)("span",{ref:o,className:M(Be["prediction-bar"],Be[`prediction-bar--${a}`],r),children:[(0,d.jsx)("span",{className:Be["prediction-bar__sr"],children:"Win probability updating. "}),(0,d.jsx)("span",{className:M(Be["prediction-bar__segment"],Be["prediction-bar__segment--awaiting"]),style:{width:"100%"},"aria-hidden":"true",children:(0,d.jsx)("span",{className:Be["prediction-bar__fill"]})})]});if(0===s.length)return null;const m=s.reduce((e,t)=>e+t.value,0);return(0,d.jsxs)("span",{ref:o,className:M(Be["prediction-bar"],Be[`prediction-bar--${a}`],r),style:c?{"--prediction-bar-label-width":`${c}px`}:void 0,children:[(0,d.jsx)("span",{className:Be["prediction-bar__sr"],children:`Win probability: ${s.map(e=>`${e.name} ${e.value.toFixed(1)}%`).join(", ")}. `}),s.map((e,t)=>{const i=0===t||t===s.length-1||((e,t)=>{const i=e+t/2,a=1.5*c;return i/100*n>=a&&(m-i)/100*n>=a})(s.slice(0,t).reduce((e,t)=>e+t.value,0),e.value);return(0,d.jsxs)("span",{className:M(Be["prediction-bar__segment"],Be[`prediction-bar__segment--${e.type}`],Be[`prediction-bar__segment--${e.place}`]),style:{width:`${e.value}%`},"aria-hidden":"true",children:[(0,d.jsx)("span",{className:Be["prediction-bar__fill"]}),(0,d.jsx)("span",{className:Be["prediction-bar__value"],children:i?`${e.value.toFixed(1)}%`:null})]},e.type)})]})};Ee.propTypes={firstSide:k.object,secondSide:k.object,winProbability:w,labelPlacement:k.oneOf(["below","ends"]),className:k.string};const Oe={soccer:{withPeriod:!1},"american-football":{withPeriod:!0,labels:{15:"Final"}},basketball:{withPeriod:!0,labels:{15:"Final",16:"End Reg."}}},Ce=e=>{const t=D(e?.sport),i=Oe[t],a=e?.periodId,r={label:"",name:""};if(!i||"number"!=typeof a)return r;const o=$(t),n=o.periodMapping[a];return!i.withPeriod&&o.formatMatchTime?.(e)?r:{label:i.labels?.[a]??n?.label??"",name:n?.name??""}};ue(".MatchTileShell-module_match-tile-shell__gyiVm{isolation:isolate;list-style:none;position:relative}.MatchTileShell-module_match-tile-shell__link__EMz4c{inset:0;position:absolute;z-index:1}.MatchTileShell-module_match-tile-shell__link__EMz4c:focus-visible{border-radius:var(--match-tile-focus-radius,0);outline:2px solid var(--match-tile-focus-ring,#000);outline-offset:-2px}.MatchTileShell-module_match-tile-shell__sr__ymaKx{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}");const Ae=({href:e,label:t,matchId:i,newTab:a=!1,className:r,children:o,...n})=>(0,d.jsxs)("li",{className:M("MatchTileShell-module_match-tile-shell__gyiVm",r),"data-match-id":i,...n,children:[e&&(0,d.jsx)("a",{className:"MatchTileShell-module_match-tile-shell__link__EMz4c","data-match-tile-link":"",href:e,target:a?"_blank":void 0,rel:a?"noreferrer":void 0,children:t&&(0,d.jsx)("span",{className:"MatchTileShell-module_match-tile-shell__sr__ymaKx",children:a?`${t} (opens in a new tab)`:t})}),o]});Ae.propTypes={href:k.string,matchId:k.string,label:k.string,newTab:k.bool,className:k.string,children:k.node};const $e=_.memo(function({match:e,winProbability:t,awaitingProbability:i=!1,index:a}){const r=i?y:t,o=(0,_.useMemo)(()=>{const t=(e=>e?{...e,id:e.id,sport:D(e.sport),status:String(e.status??""),kickoff:e.kickoff,url:e.url||void 0,periodId:F(R(e,"periodId","period_id")),minute:F(e.minute),clockMin:F(R(e,"clockMin","clock_min")),clockSec:F(R(e,"clockSec","clock_sec")),competition:Z(e),home:Y(e.home),away:Y(e.away),shootout:H(e.shootout),venue:e.venue,tournamentCalendarId:R(e,"tournamentCalendarId","tournament_calendar_id")}:null)(e);return{..._e(t),period:Ce(t)}},[e]),n="number"==typeof a&&a<5?"eager":"lazy";return(0,d.jsxs)(Ae,{className:"MatchTickerTile-module_match-ticker-tile__Z60Lj",href:o.url,label:[`${G(o.firstSide)} v ${G(o.secondSide)}
1`,o.competition?.name].filter(Boolean).join(", "),newTab:!0,matchId:o.id,"data-competition-id":o.competition?.id,children:[(0,d.jsx)(ke,{competition:o.competition,kickoff:o.kickoff,kickoffInstant:o.kickoffInstant,started:o.started,stopped:o.stopped,overdue:o.overdue,status:o.status,period:o.period,clock:o.clock,clockSpoken:o.clockSpoken,playing:o.live,loading:n}),(0,d.jsxs)("div",{className:"MatchTickerTile-module_match-ticker-tile__eyebrow__U3siq",children:[(0,d.jsx)(ve,{count:o.firstSide?.reds??0,team:G(o.firstSide)}),(0,d.jsx)("span",{className:"MatchTickerTile-module_match-ticker-tile__aggregate__Qlq72",children:(0,d.jsx)(we,{value:o.aggregate,shown:`(${o.aggregate})`,label:"Aggregate"})}),(0,d.jsx)(ve,{count:o.secondSide?.reds??0,team:G(o.secondSide)})]}),(0,d.jsx)(xe,{firstSide:o.firstSide,secondSide:o.secondSide,score:o.score,loading:n}),(0,d.jsx)("div",{className:"MatchTickerTile-module_match-ticker-tile__footer__3DLJ4",children:o.shootout?(0,d.jsx)(je,{kicks:o.shootout.rounds,tally:o.shootout.tally,settled:o.shootout.settled}):o.predicted&&r&&(0,d.jsx)(Ee,{firstSide:o.firstSide,secondSide:o.secondSide,winProbability:r,className:"MatchTickerTile-module_match-ticker-tile__prediction__hq9Aq"})})]})},(e,t)=>e.match===t.match&&e.index===t.index&&e.awaitingProbability===t.awaitingProbability&&((e,t)=>e===t||!(!e||!t)&&e.home===t.home&&e.draw===t.draw&&e.away===t.away&&e.state===t.state)(e.winProbability,t.winProbability));$e.propTypes={match:k.object.isRequired,winProbability:w,awaitingProbability:k.bool,index:k.number};const ze=new WeakMap;function Ie(e,t){const i=t?.competitions?.[e.competition_id],a=t?.teams?.[e.home?.id??""],r=t?.teams?.[e.away?.id??""],o=ze.get(e);if(o&&o.competition===i&&o.home===a&&o.away===r)return o.match;const n=function(e,t){const{competition_id:i,...a}=e,r=i=>({...e[i],...t?.teams?.[e[i]?.id??""]});return{...a,home:r("home"),away:r("away"),competition:{id:i,...t?.competitions?.[i]}}}(e,t);return ze.set(e,{competition:i,home:a,away:r,match:n}),n}function qe({days:e,meta:t,pairedProbability:i}){let a=0;return e.flatMap(e=>[(0,d.jsx)("li",{className:"ta-match-ticker__day-label",children:e.label},`day-${e.key}`),...e.rows.map(e=>{const r=i(e);return(0,d.jsx)($e,{index:a++,match:Ie(e,t),winProbability:r.value,awaitingProbability:r.awaiting},e.id)})])}function De(e,t=Number.MAX_SAFE_INTEGER){const i=Date.parse(e.kickoff);return Number.isNaN(i)?t:i}function Re(e){switch(String(e.status??"").toLowerCase()){case"playing":return 0;case"fixture":return 1;default:return 2}}function Fe(e){const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleDateString(void 0,{day:"numeric",month:"short"})}function Ye(e){const t=[];let i=null;return e.forEach(e=>{const a=function(e){const t=new Date(e);return Number.isNaN(t.getTime())?"":`${t.getFullYear()}-${t.getMonth()}-${t.getDate()}`}(e.kickoff);i&&i.key===a||(i={key:a,label:Fe(e.kickoff),rows:[]},t.push(i)),i.rows.push(e)}),t}const Ze="ta-match-ticker-competition",He=function(){let e;return{subscribe(t){const i=s().subscribe(i=>{e=i,t()});return()=>{i(),e=void 0}},getSnapshot:()=>(e||(e=s().snapshot()),e)}}();function We(){try{return window.localStorage.getItem(Ze)}catch(e){return null}}const Je={value:null,awaiting:!1},Ue={value:null,awaiting:!0};function Xe(e,t){const i=Boolean(e.score)&&(e.score.home!==t.home?.score||e.score.away!==t.away?.score),a=Boolean(t.scoreAt&&e.localMovedAt)&&e.localMovedAt<t.scoreAt;return i||a}function Qe(e){try{const t=JSON.parse(e.dataset.featuredCompetitions||"[]");return Array.isArray(t)?t:[]}catch(e){return[]}}function Ge(){const e=window.sdapi?.competitions;return Array.isArray(e)?e.map(e=>e?.id):[]}const Ve={football:(0,t.__)("Football","ta-sdapi"),"american-football":(0,t.__)("American Football","ta-sdapi"),basketball:(0,t.__)("Basketball","ta-sdapi")};function Ke({container:i,filter:a,fixed:r,featured:o,page:n,maxMatches:c,keepHours:l,skeleton:s}){const _=(0,e.useSyncExternalStore)(He.subscribe,He.getSnapshot),[u,h]=(0,e.useState)(null),[p]=(0,e.useState)(We),[,f]=(0,e.useState)(0),b=(0,e.useRef)(void 0),g=Date.now(),k=g-3600*l*1e3,v=new Date(g);v.setHours(0,0,0,0);const w=function(e,t){return e.filter(e=>{const i=Date.parse(e.kickoff);return Number.isNaN(i)||i>=t})}(_.rows,k),y=function(e,t,i){return e.filter(e=>{const a=Date.parse(e.kickoff);return!Number.isNaN(a)&&a<t&&a>=i&&2===Re(e)})}(_.rows,k,v.getTime()),x=function(e,t){const i=new Map;
1return e.forEach(e=>{e.competition_id&&!i.has(e.competition_id)&&i.set(e.competition_id,{name:t?.[e.competition_id]?.name??"",sport:e.sport??""})}),i}(w,_.competitions);void 0===b.current&&_.loaded&&(b.current=n.find(e=>x.has(e))??null);const T=b.current??null,M=function(e,t,i,a,r){const o=r.length?"":"all";if(0===a.size)return e??i??o;const n=r.some(e=>a.has(e)),c=e=>null!==e&&(e===o&&n||"all"===e||a.has(e));return c(e)?e:null!==t?t:c(i)?i:n?"":"all"}(u,T,p,x,o),j=(0,e.useCallback)(e=>{if(h(e),null===T)try{window.localStorage.setItem(Ze,e)}catch(e){}},[T]),S=function(e,t,i,a,r){const o=e=>""===i&&a.length?a.includes(e.competition_id):""===i||"all"===i||e.competition_id===i;let n=e.filter(o);const c=e=>{const t=a.indexOf(e.competition_id);return-1===t?Number.MAX_SAFE_INTEGER:t};return r>0&&n.length>r?""!==i&&"all"!==i||(n=[...n].sort((e,t)=>Re(e)-Re(t)||(2===Re(e)?De(t,0)-De(e,0):De(e)-De(t))||c(e)-c(t)).slice(0,r)):r>0&&(n=n.concat(t.filter(o).sort((e,t)=>De(t,0)-De(e,0)).slice(0,r-n.length))),n=[...n].sort((e,t)=>De(e)-De(t)||c(e)-c(t)),r>0?n.slice(0,r):n}(w,y,M,o,c),N=w.length>0,P={competitions:_.competitions,teams:_.teams};(0,e.useEffect)(()=>{a&&function(e,t,i,a,r){const o=e.querySelector('option[value=""]');if(o&&t.size>0){const e=!r.some(e=>t.has(e));o.hidden=e,o.disabled=e}const n=new Map;t.forEach((e,t)=>{const i=n.get(e.sport)??[];i.push([t,e.name]),n.set(e.sport,i)});const c=[...n.values()].flat(),l=[...e.options].slice(a),s=l.length===c.length&&l.every((e,t)=>e.value===c[t][0]);if(s)l.forEach((e,t)=>{const i=c[t][1];e.textContent!==i&&(e.textContent=i)});else{for(;e.children.length>a;)e.lastElementChild.remove();n.forEach((t,i)=>{const a=Ve[i];let r=e;a&&(r=document.createElement("optgroup"),r.label=a,e.append(r)),t.forEach(([e,t])=>{const i=document.createElement("option");i.value=e,i.textContent=t,r.append(i)})})}e.value!==i&&[...e.options].some(e=>e.value===i)&&(e.value=i)}(a,x,M,r,o)}),(0,e.useEffect)(()=>{if(!a)return;const e=()=>j(a.value);return a.addEventListener("change",e),()=>a.removeEventListener("change",e)},[a,j]),(0,e.useEffect)(()=>{const e=()=>{"visible"===document.visibilityState&&f(e=>e+1)},t=setInterval(e,6e4);return document.addEventListener("visibilitychange",e),()=>{clearInterval(t),document.removeEventListener("visibilitychange",e)}},[]);const L=!_.loaded&&(_.failures??0)<3;return(0,e.useEffect)(()=>{L?i.setAttribute("aria-busy","true"):i.removeAttribute("aria-busy"),i.hidden=_.loaded?!N:!L},[i,_.loaded,N,L]),L?(0,d.jsx)(m,{skeleton:s}):_.loaded?0===S.length?(0,d.jsx)("li",{className:"ta-match-ticker__empty",children:(0,t.__)("No matches in this selection.","ta-sdapi")}):(0,d.jsx)(qe,{days:Ye(S),meta:P,pairedProbability:e=>{const t=_.winProbability?.[e.id];return"live"===t?.state&&(!t.localAt||Date.now()-t.localAt>36e4)?Je:"live"===t?.state&&Xe(t,e)?Ue:"final"===t?.state&&Xe(t,e)?Je:t&&t.state===function(e){switch(String(e??"").toLowerCase()){case"playing":return"live";case"played":return"final";case"fixture":return"pre";default:return null}}(e.status)?{value:t,awaiting:!1}:Je}}):null}function et(e,t){return t<0?e.scrollLeft<=1:e.scrollLeft>=e.scrollWidth-e.clientWidth-1}function tt(e,t){e.scrollBy({left:t,behavior:window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth"})}function it(e){const t=e.querySelector(":scope > li:not(.ta-match-ticker__day-label)");return t?t.offsetWidth+1:205}document.querySelectorAll(".wp-block-sdapi-blocks-match-ticker").forEach(function(t){const i=t.querySelector(".ta-match-ticker__rail");if(!i)return;const a=t.querySelector(".ta-match-ticker__filter");if(function(e,t){const i=e.querySelector(".ta-match-ticker__nav--prev"),a=e.querySelector(".ta-match-ticker__nav--next");if(!i||!a)return;const r=()=>{i.disabled=et(t,-1),a.disabled=et(t,1)};i.addEventListener("click",()=>tt(t,-2*it(t))),a.addEventListener("click",()=>tt(t,2*it(t))),t.addEventListener("scroll",r,{passive:!0}),new ResizeObserver(r).observe(t),new MutationObserver(r).observe(t,{childList:!0}),r()}(t,i),a){let e=!1;a.addEventListener("change",()=>{e=!0}),new MutationObserver(()=>{e&&(e=!1,i.scrollLeft=0)}).observe(i,{childList:!0})}const r=[...i.children].map(e=>({className:e.className,html:e.innerHTML}));(0,e.createRoot)(i).render((0,d.jsx)(Ke,{container:t,filter:a,fixed:a?a.options.length:0,featured:Qe(t),page:Ge(),maxMatches:parseInt(t.dataset.maxMatches,10)||12,keepHours:parseInt(t.dataset.keepHours,10)||5,skeleton:r}))})}};const t={};function i(a){const r=t[a];
1if(void 0!==r)return r.exports;const o=t[a]={exports:{}};return e[a](o,o.exports,i),o.exports}i.m=e,(()=>{const e=[];i.O=(t,a,r)=>{if(!a){for(var o=0;o<e.length;o++){let[a,r]=e[o],c=!0;for(var n=0;n<a.length;n++)i.O.j(a[n])?a.splice(n--,1):c=!1;if(c){e.splice(o--,1);const i=r();void 0!==i&&(t=i)}}return t}e.push([a,r])}})(),i.o=(e,t)=>Object.hasOwn(e,t),(()=>{const e={800:0,1788:0};i.O.j=t=>0===e[t];const t=(t,a)=>{let[r,o,n]=a;var c,l,s=0;if(r.some(t=>0!==e[t])){for(c in o)i.o(o,c)&&(i.m[c]=o[c]);if(n)var d=n(i)}for(t&&t(a);s<r.length;s++)l=r[s],i.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return i.O(d)},a=globalThis.webpackChunkta_sdapi||=[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();let a=i.O(void 0,[1788],()=>i(9115));a=i.O(a)})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.