@sensiblestats/widget-embed 0.29.0 → 0.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/embed.global.js +21 -21
- package/dist/embed.global.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @sensiblestats/widget-embed
|
|
2
2
|
|
|
3
|
+
## 0.29.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4eed68b: Fix the post-match "Match stats" card rendering each team's stats under the opposite team. The row values are club-first, but the card was always drawing the club value on the left while the result card above renders home-left/away-right — so when the club played away (e.g. Liverpool at Ipswich) the club's stats appeared under the home team. The card now orients by venue via a new `clubIsHome` field, matching the result card.
|
|
8
|
+
|
|
9
|
+
## 0.29.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 33dacf8: Restore the live club dashboard cards to the approved mockup's sizing and detail: a larger 36px scoreline, 38px crests with a soft drop shadow, 15px team names and stat values, the timeline's football-style goal mark (was a plain dot), and the momentum wave's full 56px height (was vertically squashed at 50px). Also adds a `club-fandash-live` devserver scenario so the live phase can be previewed without a live match.
|
|
14
|
+
|
|
3
15
|
## 0.29.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/embed.global.js
CHANGED
|
@@ -34,7 +34,7 @@ Error generating stack: `+o.message+`
|
|
|
34
34
|
`))+1))}let s="#".repeat(i),a=n.enter("headingAtx"),l=n.enter("phrasing");o.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
|
|
35
35
|
`,...o.current()});return/^[\t ]/.test(u)&&(u=er(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),a(),u}ap.peek=rE;function ap(e){return e.value||""}function rE(){return"<"}lp.peek=iE;function lp(e,t,n,r){let i=Ei(n),o=i==='"'?"Quote":"Apostrophe",s=n.enter("image"),a=n.enter("label"),l=n.createTracker(r),u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),u+=l.move(")"),s(),u}function iE(){return"!"}up.peek=oE;function up(e,t,n,r){let i=e.referenceType,o=n.enter("imageReference"),s=n.enter("label"),a=n.createTracker(r),l=a.move("!["),u=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();let c=n.stack;n.stack=[],s=n.enter("reference");let d=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=c,o(),i==="full"||!u||u!==d?l+=a.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function oE(){return"!"}cp.peek=sE;function cp(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){let s=n.unsafe[o],a=n.compilePattern(s),l;if(s.atBreak)for(;l=a.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return i+r+i}function sE(){return"`"}function dp(e,t){let n=Tr(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}pp.peek=aE;function pp(e,t,n,r){let i=Ei(n),o=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r),a,l;if(dp(e,n)){let c=n.stack;n.stack=[],a=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),a(),n.stack=c,d}a=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),l()),u+=s.move(")"),a(),u}function aE(e,t,n){return dp(e,n)?"<":"["}fp.peek=lE;function fp(e,t,n,r){let i=e.referenceType,o=n.enter("linkReference"),s=n.enter("label"),a=n.createTracker(r),l=a.move("["),u=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();let c=n.stack;n.stack=[],s=n.enter("reference");let d=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=c,o(),i==="full"||!u||u!==d?l+=a.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function lE(){return"["}function Ti(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Dx(e){let t=Ti(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function zx(e){let t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function wl(e){let t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Ox(e,t,n,r){let i=n.enter("list"),o=n.bulletCurrent,s=e.ordered?zx(n):Ti(n),a=e.ordered?s==="."?")":".":Dx(n),l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){let c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),wl(n)===s&&c){let d=-1;for(;++d<e.children.length;){let p=e.children[d];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=a),n.bulletCurrent=s;let u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=o,i(),u}function Bx(e){let t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Fx(e,t,n,r){let i=Bx(n),o=n.bulletCurrent||Ti(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let s=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);let a=n.createTracker(r);a.move(o+" ".repeat(s-o.length)),a.shift(s);let l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),c);return l(),u;function c(d,p,f){return p?(f?"":" ".repeat(s))+d:(f?o:o+" ".repeat(s-o.length))+d}}function Qx(e,t,n,r){let i=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),i(),s}var mp=$n(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ux(e,t,n,r){return(e.children.some(function(s){return mp(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Hx(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}hp.peek=uE;function hp(e,t,n,r){let i=Hx(n),o=n.enter("strong"),s=n.createTracker(r),a=s.move(i+i),l=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()})),u=l.charCodeAt(0),c=Ii(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=er(u)+l.slice(1));let d=l.charCodeAt(l.length-1),p=Ii(r.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+er(d));let f=s.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},a+l+f}function uE(e,t,n){return n.options.strong||"*"}function jx(e,t,n,r){return n.safe(e.value,r)}function Vx(e){let t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Wx(e,t,n){let r=(wl(n)+(n.options.ruleSpaces?" ":"")).repeat(Vx(n));return n.options.ruleSpaces?r.slice(0,-1):r}var rs={blockquote:Cx,break:op,code:Nx,definition:Lx,emphasis:sp,hardBreak:op,heading:Rx,html:ap,image:lp,imageReference:up,inlineCode:cp,link:pp,linkReference:fp,list:Ox,listItem:Fx,paragraph:Qx,root:Ux,strong:hp,text:jx,thematicBreak:Wx};function wp(){return{enter:{table:cE,tableData:_x,tableHeader:_x,tableRow:pE},exit:{codeText:fE,table:dE,tableData:gp,tableHeader:gp,tableRow:gp}}}function cE(e){let t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function dE(e){this.exit(e),this.data.inTable=void 0}function pE(e){this.enter({type:"tableRow",children:[]},e)}function gp(e){this.exit(e)}function _x(e){this.enter({type:"tableCell",children:[]},e)}function fE(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,mE));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function mE(e,t){return t==="|"?t:e}function yp(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
36
36
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:l,tableRow:a}};function s(f,h,y,b){return u(c(f,y,b),f.align)}function a(f,h,y,b){let m=d(f,y,b),g=u([m]);return g.slice(0,g.indexOf(`
|
|
37
|
-
`))}function l(f,h,y,b){let m=y.enter("tableCell"),g=y.enter("phrasing"),w=y.containerPhrasing(f,{...b,before:o,after:o});return g(),m(),w}function u(f,h){return Ax(f,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function c(f,h,y){let b=f.children,m=-1,g=[],w=h.enter("table");for(;++m<b.length;)g[m]=d(b[m],h,y);return w(),g}function d(f,h,y){let b=f.children,m=-1,g=[],w=h.enter("tableRow");for(;++m<b.length;)g[m]=l(b[m],f,h,y);return w(),g}function p(f,h,y){let b=rs.inlineCode(f,h,y);return y.stack.includes("tableCell")&&(b=b.replace(/\|/g,"\\$&")),b}}function xp(){return{exit:{taskListCheckValueChecked:Xx,taskListCheckValueUnchecked:Xx,paragraph:hE}}}function vp(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:gE}}}function Xx(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function hE(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let n=this.stack[this.stack.length-1];n.type;let r=n.children[0];if(r&&r.type==="text"){let i=t.children,o=-1,s;for(;++o<i.length;){let a=i[o];if(a.type==="paragraph"){s=a;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function gE(e,t,n,r){let i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(s);let l=rs.listItem(e,t,n,{...r,...a.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function kp(){return[$d(),tp(),rp(),wp(),xp()]}function Ap(e){return{extensions:[ep(),np(e),ip(),yp(e),vp()]}}var wE={tokenize:AE,partial:!0},qx={tokenize:CE,partial:!0},Jx={tokenize:bE,partial:!0},Kx={tokenize:SE,partial:!0},yE={tokenize:EE,partial:!0},Yx={name:"wwwAutolink",tokenize:vE,previous:Zx},Gx={name:"protocolAutolink",tokenize:kE,previous:$x},vn={name:"emailAutolink",tokenize:xE,previous:ev},$t={};function bp(){return{text:$t}}var Fr=48;for(;Fr<123;)$t[Fr]=vn,Fr++,Fr===58?Fr=65:Fr===91&&(Fr=97);$t[43]=vn;$t[45]=vn;$t[46]=vn;$t[95]=vn;$t[72]=[vn,Gx];$t[104]=[vn,Gx];$t[87]=[vn,Yx];$t[119]=[vn,Yx];function xE(e,t,n){let r=this,i,o;return s;function s(d){return!Cp(d)||!ev.call(r,r.previous)||Sp(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(d))}function a(d){return Cp(d)?(e.consume(d),a):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(yE,c,u)(d):d===45||d===95||Ae(d)?(o=!0,e.consume(d),l):c(d)}function u(d){return e.consume(d),i=!0,l}function c(d){return o&&i&&Pe(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function vE(e,t,n){let r=this;return i;function i(s){return s!==87&&s!==119||!Zx.call(r,r.previous)||Sp(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(wE,e.attempt(qx,e.attempt(Jx,o),n),n)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function kE(e,t,n){let r=this,i="",o=!1;return s;function s(d){return(d===72||d===104)&&$x.call(r,r.previous)&&!Sp(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),a):n(d)}function a(d){if(Pe(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),a;if(d===58){let p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),o?u:(o=!0,l)):n(d)}function u(d){return d===null||Nr(d)||J(d)||Gt(d)||Lr(d)?n(d):e.attempt(qx,e.attempt(Jx,c),n)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function AE(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),o):n(s)}function o(s){return s===null?n(s):t(s)}}function CE(e,t,n){let r,i,o;return s;function s(u){return u===46||u===95?e.check(Kx,l,a)(u):u===null||J(u)||Gt(u)||u!==45&&Lr(u)?l(u):(o=!0,e.consume(u),s)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),s}function l(u){return i||r||!o?n(u):t(u)}}function bE(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(Kx,t,o)(s):s===null||J(s)||Gt(s)?t(s):(e.consume(s),i)}function o(s){return s===41&&r++,e.consume(s),i}}function SE(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||J(a)||Gt(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||J(a)||Gt(a)?t(a):r(a)}function o(a){return Pe(a)?s(a):n(a)}function s(a){return a===59?(e.consume(a),r):Pe(a)?(e.consume(a),s):n(a)}}function EE(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return Ae(o)?n(o):t(o)}}function Zx(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||J(e)}function $x(e){return!Pe(e)}function ev(e){return!(e===47||Cp(e))}function Cp(e){return e===43||e===45||e===46||e===95||Ae(e)}function Sp(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var IE={tokenize:DE,partial:!0};function Ep(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:PE,continuation:{tokenize:ME},exit:RE}},text:{91:{name:"gfmFootnoteCall",tokenize:LE},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:TE,resolveTo:NE}}}}function TE(e,t,n){let r=this,i=r.events.length,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),s;for(;i--;){let l=r.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!s||!s._balanced)return n(l);let u=_e(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function NE(e,t){let n=e.length,r;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){r=e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...l),e}function LE(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o=0,s;return a;function a(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!s||d===null||d===91||J(d))return n(d);if(d===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return i.includes(_e(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return J(d)||(s=!0),o++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}function PE(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o,s=0,a;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(h)}function c(h){if(s>999||h===93&&!a||h===null||h===91||J(h))return n(h);if(h===93){e.exit("chunkString");let y=e.exit("gfmFootnoteDefinitionLabelString");return o=_e(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return J(h)||(a=!0),s++,e.consume(h),h===92?d:c}function d(h){return h===91||h===92||h===93?(e.consume(h),s++,c):c(h)}function p(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(o)||i.push(o),U(e,f,"gfmFootnoteDefinitionWhitespace")):n(h)}function f(h){return t(h)}}function ME(e,t,n){return e.check(Zt,t,e.attempt(IE,t,n))}function RE(e){e.exit("gfmFootnoteDefinition")}function DE(e,t,n){let r=this;return U(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){let s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(o):n(o)}}function Ip(e){let n=(e||{}).singleTilde,r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,a){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},d={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},p=[["enter",c,a],["enter",s[u][1],a],["exit",s[u][1],a],["enter",d,a]],f=a.parser.constructs.insideSpan.null;f&&Se(p,p.length,0,Gn(f,s.slice(u+1,l),a)),Se(p,p.length,0,[["exit",d,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",c,a]]),Se(s,u-1,l-u+3,p),l=u+p.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function o(s,a,l){let u=this.previous,c=this.events,d=0;return p;function p(h){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(h):(s.enter("strikethroughSequenceTemporary"),f(h))}function f(h){let y=xn(u);if(h===126)return d>1?l(h):(s.consume(h),d++,f);if(d<2&&!n)return l(h);let b=s.exit("strikethroughSequenceTemporary"),m=xn(h);return b._open=!m||m===2&&!!y,b._close=!y||y===2&&!!m,a(h)}}}var yl=class{constructor(){this.map=[]}add(t,n,r){zE(this,t,n,r)}consume(t){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let n=this.map.length,r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(let o of i)t.push(o);i=r.pop()}this.map.length=0}};function zE(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function tv(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Tp(){return{flow:{null:{name:"table",tokenize:OE,resolveAll:BE}}}}function OE(e,t,n){let r=this,i=0,o=0,s;return a;function a(k){let ee=r.events.length-1;for(;ee>-1;){let V=r.events[ee][1].type;if(V==="lineEnding"||V==="linePrefix")ee--;else break}let K=ee>-1?r.events[ee][1].type:null,Q=K==="tableHead"||K==="tableRow"?A:l;return Q===A&&r.parser.lazy[r.now().line]?n(k):Q(k)}function l(k){return e.enter("tableHead"),e.enter("tableRow"),u(k)}function u(k){return k===124||(s=!0,o+=1),c(k)}function c(k){return k===null?n(k):O(k)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),f):n(k):H(k)?U(e,c,"whitespace")(k):(o+=1,s&&(s=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),d(k)))}function d(k){return k===null||k===124||J(k)?(e.exit("data"),c(k)):(e.consume(k),k===92?p:d)}function p(k){return k===92||k===124?(e.consume(k),d):d(k)}function f(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(k):(e.enter("tableDelimiterRow"),s=!1,H(k)?U(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):h(k))}function h(k){return k===45||k===58?b(k):k===124?(s=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),y):I(k)}function y(k){return H(k)?U(e,b,"whitespace")(k):b(k)}function b(k){return k===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),m):k===45?(o+=1,m(k)):k===null||O(k)?C(k):I(k)}function m(k){return k===45?(e.enter("tableDelimiterFiller"),g(k)):I(k)}function g(k){return k===45?(e.consume(k),g):k===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(k))}function w(k){return H(k)?U(e,C,"whitespace")(k):C(k)}function C(k){return k===124?h(k):k===null||O(k)?!s||i!==o?I(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):I(k)}function I(k){return n(k)}function A(k){return e.enter("tableRow"),M(k)}function M(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),M):k===null||O(k)?(e.exit("tableRow"),t(k)):H(k)?U(e,M,"whitespace")(k):(e.enter("data"),T(k))}function T(k){return k===null||k===124||J(k)?(e.exit("data"),M(k)):(e.consume(k),k===92?D:T)}function D(k){return k===92||k===124?(e.consume(k),T):T(k)}}function BE(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],s=[0,0,0,0],a=!1,l=0,u,c,d,p=new yl;for(;++n<e.length;){let f=e[n],h=f[1];f[0]==="enter"?h.type==="tableHead"?(a=!1,l!==0&&(nv(p,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",u,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(r=!0,d=void 0,o=[0,0,0,0],s=[0,n+1,0,0],a&&(a=!1,c={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",c,t]])),i=h.type==="tableDelimiterRow"?2:c?3:1):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],d=xl(p,t,o,i,void 0,d),o=[0,0,0,0]),s[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(s[0]=s[1],d=xl(p,t,o,i,void 0,d)),o=s,s=[o[1],n,0,0])):h.type==="tableHead"?(a=!0,l=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(l=n,o[1]!==0?(s[0]=s[1],d=xl(p,t,o,i,n,d)):s[1]!==0&&(d=xl(p,t,s,i,n,d)),i=0):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&nv(p,t,l,u,c),p.consume(t.events),n=-1;++n<t.events.length;){let f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=tv(t.events,n))}return e}function xl(e,t,n,r,i,o){let s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(o.end=Object.assign({},Ni(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));let l=Ni(t.events,n[1]);if(o={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){let u=Ni(t.events,n[2]),c=Ni(t.events,n[3]),d={type:a,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){let p=t.events[n[2]],f=t.events[n[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){let h=n[2]+1,y=n[3]-n[2]-1;e.add(h,y,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},Ni(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function nv(e,t,n,r,i){let o=[],s=Ni(t.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function Ni(e,t){let n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}var FE={name:"tasklistCheck",tokenize:QE};function Np(){return{text:{91:FE}}}function QE(e,t,n){let r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return J(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(l)}function a(l){return O(l)?t(l):H(l)?e.check({tokenize:UE},t,n)(l):n(l)}}function UE(e,t,n){return U(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function rv(e){return Xa([bp(),Ep(),Ip(e),Tp(),Np()])}var HE={};function vl(e){let t=this,n=e||HE,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(rv(n)),o.push(kp()),s.push(Ap(n))}var kn=E(P(),1),jE={a:({children:e,href:t})=>(0,kn.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"ss-w-md-link",children:e}),table:({children:e})=>(0,kn.jsx)("div",{className:"ss-w-table-wrap",children:(0,kn.jsx)("table",{className:"ss-w-md-table",children:e})}),ul:({children:e})=>(0,kn.jsx)("ul",{className:"ss-w-md-ul",children:e}),ol:({children:e})=>(0,kn.jsx)("ol",{className:"ss-w-md-ol",children:e}),code:({children:e})=>(0,kn.jsx)("code",{className:"ss-w-md-code",children:e})};function iv({text:e}){return(0,kn.jsx)("div",{className:"ss-w-md",children:(0,kn.jsx)(Xd,{remarkPlugins:[vl],components:jE,children:e})})}var Lp=E(xe(),1),G=E(P(),1),ov=3,VE=/^(\d+)-(\d+)-(\d+)$/;function WE(e){return e.split(/\s+/).slice(0,2).map(t=>{var n;return(n=t[0])!=null?n:""}).join("").toUpperCase()}function _E(e){return e.replace(/\d{4}/g,t=>t.slice(2))}function av({image:e,label:t}){return(0,G.jsx)("span",{className:"ss-w-ecard-crest",style:{backgroundImage:`url(${e})`},...t?{role:"img",title:t,"aria-label":t}:{"aria-hidden":"true"}})}function XE({w:e,d:t,l:n}){return e+t+n===0?null:(0,G.jsxs)("span",{className:"ss-w-form","aria-hidden":"true",children:[e>0?(0,G.jsx)("span",{className:"ss-w-form-w",style:{flexGrow:e}}):null,t>0?(0,G.jsx)("span",{className:"ss-w-form-d",style:{flexGrow:t}}):null,n>0?(0,G.jsx)("span",{className:"ss-w-form-l",style:{flexGrow:n}}):null]})}function qE({s:e}){let t=VE.exec(e.value);return t?(0,G.jsxs)("div",{className:"ss-w-ecard-cell",children:[(0,G.jsx)("span",{className:"ss-w-ecard-cval",children:(0,G.jsx)(XE,{w:Number(t[1]),d:Number(t[2]),l:Number(t[3])})}),(0,G.jsx)("span",{className:"ss-w-ecard-clabel",children:e.value})]}):(0,G.jsxs)("div",{className:"ss-w-ecard-cell",children:[(0,G.jsx)("span",{className:"ss-w-ecard-cval",children:e.value}),(0,G.jsx)("span",{className:"ss-w-ecard-clabel",children:e.label})]})}function JE({stats:e}){if(e.length===0)return null;let t=Math.min(e.length,4);return(0,G.jsx)("div",{className:"ss-w-ecard-strip",style:{gridTemplateColumns:`repeat(${t}, 1fr)`},children:e.map(n=>(0,G.jsx)(qE,{s:n},n.label+n.value))})}function sv({c:e,showScopeCrest:t}){let n=e.scopes.length===1?e.scopes[0]:null;return(0,G.jsxs)("div",{className:"ss-w-ecard-hd",children:[(0,G.jsx)("span",{className:e.kind==="team"?"ss-w-thumb ss-w-team":"ss-w-thumb",style:e.image?{backgroundImage:`url(${e.image})`}:void 0,children:e.image?"":WE(e.name)}),(0,G.jsxs)("span",{className:"ss-w-ecard-idtext",children:[(0,G.jsx)("span",{className:"ss-w-nm",children:e.name}),e.sub?(0,G.jsx)("span",{className:"ss-w-sub",children:e.sub}):null]}),(0,G.jsxs)("span",{className:"ss-w-ecard-meta",children:[t&&(n!=null&&n.image)?(0,G.jsx)(av,{image:n.image,label:n.label}):null,e.season?(0,G.jsx)("span",{className:"ss-w-ecard-season",children:_E(e.season)}):null]})]})}function KE({scopes:e,active:t,onSelect:n}){return(0,G.jsx)("div",{className:"ss-w-ecard-scopes",role:"tablist",children:e.map((r,i)=>{var o;return(0,G.jsx)("button",{type:"button",role:"tab",className:"ss-w-ecard-scope","aria-selected":i===t,"aria-label":r.label,title:r.label,onClick:()=>n(i),children:r.image?(0,G.jsx)(av,{image:r.image}):r.label},String((o=r.competitionId)!=null?o:"all"))})})}function YE({c:e}){let[t,n]=(0,Lp.useState)(0);if(!(e.scopes.length>0))return(0,G.jsx)("div",{className:"ss-w-ecard ss-w-ecard-bare","data-kind":e.kind,children:(0,G.jsx)(sv,{c:e,showScopeCrest:!1})});let i=e.scopes.length>1,o=e.scopes[i&&e.scopes[t]?t:0];return(0,G.jsxs)("div",{className:"ss-w-ecard","data-kind":e.kind,children:[(0,G.jsx)(sv,{c:e,showScopeCrest:!i}),i?(0,G.jsx)(KE,{scopes:e.scopes,active:t,onSelect:n}):null,(0,G.jsx)(JE,{stats:o.stats})]})}function lv({cards:e,disabled:t,showLessLabel:n="Show less",showMoreLabel:r=i=>`Show ${i} more`}){let[i,o]=(0,Lp.useState)(!1);if(e.length===0)return null;let s=i?e:e.slice(0,ov),a=e.length-ov;return(0,G.jsxs)("div",{className:"ss-w-cards",children:[s.map(l=>(0,G.jsx)(YE,{c:l},l.id)),a>0?(0,G.jsx)("button",{type:"button",className:"ss-w-cards-more",disabled:t,onClick:()=>o(l=>!l),children:i?n:r(a)}):null]})}var Rp=E(xe(),1);var Li=E(xe(),1);function uv(e){return e?e.status==="price_changed"?e.accepted:e.status==="added":!0}function cv(e){return e?e.status==="price_changed"?e.accepted:e.status==="added"||e.status==="duplicate":!0}function dv(e,t,n){var r,i;if(!e)return{kind:"success",text:n.slipAdded(void 0)};switch(e.status){case"added":return{kind:"success",text:n.slipAdded((r=e.slip)==null?void 0:r.selectionCount)};case"duplicate":return{kind:"success",text:n.slipDuplicate};case"price_changed":return e.accepted?{kind:"success",text:n.slipPriceChanged(t,e.newOddsDecimal.toFixed(2))}:{kind:"error",text:n.slipPriceNotAccepted(t,e.newOddsDecimal.toFixed(2))};case"rejected":return e.reason==="login_required"?{kind:"error",text:n.slipLoginRequired}:e.reason==="suspended"?{kind:"error",text:n.slipSuspended}:{kind:"error",text:(i=e.message)!=null?i:n.slipFailed}}}var pv=E(xe(),1),mv=E(P(),1),GE=4e3;function fv({toast:e,onDismiss:t}){return(0,pv.useEffect)(()=>{if(!e)return;let n=setTimeout(t,GE);return()=>clearTimeout(n)},[e,t]),e?(0,mv.jsx)("div",{className:`ss-w-toast ss-w-toast-${e.kind}`,role:"status","aria-live":"polite",children:e.text}):null}var Pi=E(P(),1);function $E(e){return Promise.race([e,new Promise((t,n)=>setTimeout(()=>n(new Error("add-to-slip timed out")),1e4))])}function Pp({selection:e,shownOdds:t,marketName:n,slip:r,ui:i}){let[o,s]=(0,Li.useState)(!1),[a,l]=(0,Li.useState)(!1),[u,c]=(0,Li.useState)(null),d=(0,Li.useCallback)(()=>c(null),[]),p=r.onAddToSlip;return!i||!p||!e?null:(0,Pi.jsxs)("div",{className:"ss-w-slip",children:[(0,Pi.jsx)("button",{type:"button",className:"ss-w-slip-btn",disabled:o||a,onClick:async()=>{s(!0);try{let h=await $E(Promise.resolve(p(e)));if(h!=null&&!qc(h))throw new Error("malformed add-to-slip result");let y=h!=null?h:void 0;if(c(dv(y,t||e.oddsDecimal.toFixed(2),i)),l(cv(y)),uv(y)&&r.onMarketClicked)try{r.onMarketClicked(n)}catch{}}catch{c({kind:"error",text:i.slipFailed})}finally{s(!1)}},children:a?i.inSlip:i.addToSlip}),(0,Pi.jsx)(fv,{toast:u,onDismiss:d})]})}function hv({it:e,slip:t,ui:n}){var i;let r=e.addToSlipEnabled?Kg(e,t.conversationId):null;return(0,Pi.jsx)(Pp,{selection:r,shownOdds:(i=e.odds)!=null?i:"",marketName:e.market,slip:t,ui:n})}var is=E(P(),1);function Mi({previous:e,current:t,direction:n,ui:r}){var s,a,l,u;if(e===void 0||n===void 0)return null;let i=n==="shortened"?(s=r==null?void 0:r.oddsShortened)!=null?s:"shortened":(a=r==null?void 0:r.oddsDrifted)!=null?a:"drifted",o=(u=(l=r==null?void 0:r.oddsMoved)==null?void 0:l.call(r,e,t,i))!=null?u:`was ${e}, now ${t}, ${i}`;return(0,is.jsxs)("span",{className:"ss-w-move",role:"img","aria-label":o,children:[(0,is.jsx)("span",{className:"ss-w-move-prev","aria-hidden":"true",children:e}),(0,is.jsx)("span",{className:"ss-w-move-arrow","aria-hidden":"true",children:n==="shortened"?"\u25BC":"\u25B2"})]})}var gv=E(xe(),1),Mp=E(P(),1);function eI(e){return(e!=null?e:"").trim().slice(0,1).toUpperCase()||"?"}function at({url:e,name:t,kind:n}){let r=n==="comp"?"ss-w-bi-comp-logo":"ss-w-bi-crest",[i,o]=(0,gv.useState)(!1);return e&&!i?(0,Mp.jsx)("img",{className:r,src:e,alt:"","aria-hidden":"true",onError:()=>o(!0)}):(0,Mp.jsx)("span",{className:`${r} ss-w-bi-crest-mono`,"aria-hidden":"true",children:eI(t)})}var F=E(P(),1);function wv({stats:e}){return(0,F.jsx)("div",{className:"ss-w-bi-rows",children:e.map(t=>(0,F.jsxs)("div",{className:"ss-w-bi-row",children:[(0,F.jsx)("span",{className:"ss-w-bi-row-lbl",children:t.label}),(0,F.jsx)("span",{className:"ss-w-bi-row-num",children:t.value})]},`${t.label}:${t.value}`))})}function tI({scopes:e}){var i,o;let[t,n]=(0,Rp.useState)(0),r=(o=(i=e[t])!=null?i:e[0])!=null?o:{key:"",label:"",stats:[]};return(0,F.jsxs)("div",{className:"ss-w-bi-scoped",children:[(0,F.jsx)("div",{className:"ss-w-bi-scopes",role:"group",children:e.map((s,a)=>(0,F.jsx)("button",{type:"button",className:"ss-w-bi-chip","aria-pressed":a===t,onClick:()=>n(a),children:s.label},s.key))}),(0,F.jsx)(wv,{stats:r.stats},r.key)]})}function nI(e){return!!e.scopes&&e.scopes.length>=2||e.stats.length>0}function rI({it:e,ui:t}){var l,u,c,d;let[n,r]=(0,Rp.useState)(!1),i=!!e.scopes&&e.scopes.length>=2,o=nI(e),s=!!e.text;if(!s&&!o)return null;let a=o||((u=(l=e.text)==null?void 0:l.length)!=null?u:0)>90;return(0,F.jsxs)("div",{className:"ss-w-bi-reason",children:[(0,F.jsx)("span",{className:"ss-w-bi-chart","aria-hidden":"true"}),(0,F.jsxs)("div",{className:"ss-w-bi-reason-body",children:[s?(0,F.jsx)("p",{className:`ss-w-bi-text${n?"":" ss-w-bi-text-clamp"}`,children:e.text}):null,n&&o?i?(0,F.jsx)(tI,{scopes:e.scopes}):(0,F.jsx)(wv,{stats:e.stats}):null]}),a?(0,F.jsx)("button",{type:"button",className:"ss-w-bi-expand","aria-expanded":n,"aria-label":n?(c=t==null?void 0:t.hideStats)!=null?c:"Hide stats":(d=t==null?void 0:t.showStats)!=null?d:"Show stats",onClick:()=>r(p=>!p),children:(0,F.jsx)("span",{className:`ss-w-bi-arrow${n?" ss-w-bi-arrow-open":""}`,"aria-hidden":"true"})}):null]})}function iI({it:e}){return e.homeTeamName&&e.awayTeamName?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(at,{kind:"team",url:e.homeCrest,name:e.homeTeamName}),(0,F.jsx)("span",{className:"ss-w-bi-team",children:e.homeTeamName}),(0,F.jsx)("span",{className:"ss-w-bi-vs","aria-hidden":"true",children:"vs"}),(0,F.jsx)("span",{className:"ss-w-bi-team",children:e.awayTeamName}),(0,F.jsx)(at,{kind:"team",url:e.awayCrest,name:e.awayTeamName})]}):e.fixture?(0,F.jsx)("span",{className:"ss-w-bi-fixture-txt",children:e.fixture}):e.competition?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(at,{kind:"comp",url:e.competitionCrest,name:e.competition}),(0,F.jsx)("span",{className:"ss-w-bi-comp",children:e.competition})]}):null}function oI({it:e,ui:t,slip:n}){var u,c;let r=e.isLive||e.phase==="live",i=e.kickoffUtc&&(t!=null&&t.bettingKickoff)?t.bettingKickoff(e.kickoffUtc):void 0,s=!!e.homeTeamName&&!!e.awayTeamName||!!e.fixture,a=s&&!!e.competition,l=s||!!e.competition||r||!!i;return(0,F.jsxs)("div",{className:"ss-w-binsight",children:[l?(0,F.jsxs)("div",{className:"ss-w-bi-header",children:[(0,F.jsx)("span",{className:"ss-w-bi-header-left",children:(0,F.jsx)(iI,{it:e})}),(0,F.jsxs)("span",{className:"ss-w-bi-header-right",children:[r?(0,F.jsxs)("span",{className:"ss-w-bi-live",children:[(0,F.jsx)("span",{className:"ss-w-bi-live-dot","aria-hidden":"true"}),(u=t==null?void 0:t.liveLabel)!=null?u:"Live"]}):null,a?(0,F.jsxs)("span",{className:"ss-w-bi-comp-meta",children:[(0,F.jsx)(at,{kind:"comp",url:e.competitionCrest,name:e.competition}),(0,F.jsx)("span",{className:"ss-w-bi-comp",children:e.competition})]}):null,i?(0,F.jsxs)("span",{className:"ss-w-bi-kick",children:[i.dayLabel," ",i.time]}):null]})]}):null,(0,F.jsxs)("div",{className:"ss-w-bi-action-row",children:[(0,F.jsxs)("span",{className:"ss-w-bi-pick",children:[(0,F.jsx)("span",{className:"ss-w-bi-market",children:e.market}),e.selection?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{className:"ss-w-bi-pick-dot","aria-hidden":"true",children:"\xB7"}),(0,F.jsx)("span",{className:"ss-w-bi-sel",children:e.selection})]}):null]}),e.odds?(0,F.jsxs)("span",{className:"ss-w-bi-odds",children:[(0,F.jsx)("b",{children:e.odds}),(0,F.jsx)(Mi,{previous:e.previousOdds,current:e.odds,direction:e.movementDirection,ui:t}),e.bookmaker?(0,F.jsx)("span",{className:"ss-w-bi-book",children:e.bookmaker}):null]}):null,(0,F.jsx)(hv,{it:e,slip:n,ui:t})]}),e.isMarketFloor?(0,F.jsx)("span",{className:"ss-w-bi-floor",children:(c=t==null?void 0:t.marketFloorLabel)!=null?c:"Market price \xB7 not a value pick"}):null,(0,F.jsx)(rI,{it:e,ui:t}),e.disclaimer?(0,F.jsx)("p",{className:"ss-w-bi-disc",children:e.disclaimer}):null]})}function yv({insights:e,ui:t,slip:n}){return!e||e.length===0?null:(0,F.jsx)("div",{className:"ss-w-binsights",children:e.map(r=>(0,F.jsx)(oI,{it:r,ui:t,slip:n},r.id))})}var vv=E(xe(),1);var q=E(P(),1);function xv({vm:e,row:t,ui:n,slip:r}){let i=e.addToSlipEnabled?Zg(e,t,r.conversationId):null;return(0,q.jsxs)("div",{className:"ss-w-mo-row",children:[(0,q.jsx)("span",{className:"ss-w-mo-sel",children:t.selection}),(0,q.jsx)(Mi,{previous:t.previousOdds,current:t.odds,direction:t.movementDirection,ui:n}),(0,q.jsx)("span",{className:"ss-w-mo-price",children:t.odds}),(0,q.jsx)(Pp,{selection:i,shownOdds:t.odds,marketName:e.market,slip:r,ui:n})]})}function sI({vm:e,ui:t,slip:n}){var l,u,c;let[r,i]=(0,vv.useState)(!1),o=e.kickoffUtc&&(t!=null&&t.bettingKickoff)?t.bettingKickoff(e.kickoffUtc):void 0,s=!!e.homeTeamName&&!!e.awayTeamName,a=!!e.competition||e.isLive||!!o;return(0,q.jsxs)("div",{className:"ss-w-mocard",children:[a?(0,q.jsxs)("div",{className:"ss-w-bi-header",children:[(0,q.jsx)("span",{className:"ss-w-bi-header-left",children:e.competition?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(at,{kind:"comp",url:e.competitionCrest,name:e.competition}),(0,q.jsx)("span",{className:"ss-w-bi-comp",children:e.competition})]}):null}),(0,q.jsxs)("span",{className:"ss-w-bi-header-right",children:[e.isLive?(0,q.jsxs)("span",{className:"ss-w-bi-live",children:[(0,q.jsx)("span",{className:"ss-w-bi-live-dot","aria-hidden":"true"}),(l=t==null?void 0:t.liveLabel)!=null?l:"Live"]}):null,o?(0,q.jsxs)("span",{className:"ss-w-bi-kick",children:[o.dayLabel," ",o.time]}):null]})]}):null,s||e.fixture||e.market?(0,q.jsxs)("div",{className:"ss-w-mo-sub",children:[s?(0,q.jsxs)("div",{className:"ss-w-bi-fixture",children:[(0,q.jsx)(at,{kind:"team",url:e.homeCrest,name:e.homeTeamName}),(0,q.jsx)("span",{className:"ss-w-bi-team",children:e.homeTeamName}),(0,q.jsx)("span",{className:"ss-w-bi-vs","aria-hidden":"true",children:"vs"}),(0,q.jsx)("span",{className:"ss-w-bi-team",children:e.awayTeamName}),(0,q.jsx)(at,{kind:"team",url:e.awayCrest,name:e.awayTeamName})]}):e.fixture?(0,q.jsx)("span",{className:"ss-w-mo-teams",children:e.fixture}):null,e.market?(0,q.jsx)("span",{className:"ss-w-mo-market",children:e.market}):null]}):null,(0,q.jsxs)("div",{className:"ss-w-mo-rows",children:[e.mainRows.map(d=>(0,q.jsx)(xv,{vm:e,row:d,ui:t,slip:n},d.key)),r?e.moreRows.map(d=>(0,q.jsx)(xv,{vm:e,row:d,ui:t,slip:n},d.key)):null]}),e.moreRows.length>0?(0,q.jsxs)("button",{type:"button",className:"ss-w-mo-more","aria-expanded":r,onClick:()=>i(d=>!d),children:[(0,q.jsx)("span",{children:r?(u=t==null?void 0:t.hideLines)!=null?u:"Hide lines":`${(c=t==null?void 0:t.moreLines)!=null?c:"More lines"} (${e.moreRows.length})`}),(0,q.jsx)("span",{className:`ss-w-mo-more-chev${r?" ss-w-mo-more-chev-up":""}`,"aria-hidden":"true"})]}):null,e.bookmaker?(0,q.jsx)("div",{className:"ss-w-mo-foot",children:(0,q.jsx)("span",{children:e.bookmaker})}):null,e.disclaimer?(0,q.jsx)("p",{className:"ss-w-bi-disc",children:e.disclaimer}):null]})}function kv({cards:e,ui:t,slip:n}){return!e||e.length===0?null:(0,q.jsx)("div",{className:"ss-w-mocards",children:e.map(r=>(0,q.jsx)(sI,{vm:r,ui:t,slip:n},r.id))})}var Z=E(P(),1);function lI(e,t){var n,r;return e.direction==="shortened"?(n=t==null?void 0:t.oddsShortened)!=null?n:"shortened":e.direction==="drifted"?(r=t==null?void 0:t.oddsDrifted)!=null?r:"drifted":""}function uI({vm:e,ui:t}){var o,s,a,l,u,c;let n=lI(e,t),r=n?`, ${n}`:"",i=t!=null&&t.chartAria?t.chartAria(e.opening,e.current,n,e.windowHours):`Price movement over the last ${e.windowHours} hours: opened at ${e.opening}, currently ${e.current}${r}.`;return(0,Z.jsxs)("div",{className:"ss-w-omcard",children:[(0,Z.jsxs)("div",{className:"ss-w-om-head",children:[(0,Z.jsx)("span",{className:"ss-w-om-market",children:e.market}),(0,Z.jsx)("span",{className:"ss-w-om-tag",children:(o=t==null?void 0:t.priceMovement)!=null?o:"Price movement"})]}),e.fixture?(0,Z.jsxs)("div",{className:"ss-w-om-fixture",children:[(0,Z.jsx)("span",{children:e.fixture}),e.competition?(0,Z.jsx)("span",{className:"ss-w-om-comp",children:e.competition}):null]}):null,(0,Z.jsx)("div",{className:"ss-w-om-sel",children:e.selection}),(0,Z.jsx)(Mi,{previous:e.opening,current:e.current,direction:e.direction,ui:t}),e.geometry===null?(0,Z.jsx)("div",{className:"ss-w-om-empty",children:e.observationCount===1?(s=t==null?void 0:t.singlePricePoint)!=null?s:"Only one price recorded so far for this selection.":(a=t==null?void 0:t.notEnoughHistory)!=null?a:"No price history recorded yet for this selection."}):(0,Z.jsxs)("svg",{className:"ss-w-om-chart",viewBox:e.geometry.viewBox,width:"100%",role:"img","aria-label":i,children:[e.geometry.gridlines.map(d=>(0,Z.jsxs)("g",{children:[(0,Z.jsx)("line",{className:"ss-w-om-grid",x1:40,y1:d.y,x2:312,y2:d.y}),(0,Z.jsx)("text",{className:"ss-w-om-ylab",x:34,y:d.y+3,textAnchor:"end",children:d.price.toFixed(2)})]},d.price)),(0,Z.jsx)("path",{className:"ss-w-om-line",d:e.geometry.path,fill:"none"}),e.geometry.markers.map((d,p)=>(0,Z.jsx)("circle",{className:"ss-w-om-dot",cx:d.x,cy:d.y,r:2.5},p)),t!=null&&t.chartTimeLabel?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)("text",{className:"ss-w-om-xlab",x:40,y:132,textAnchor:"start",children:t.chartTimeLabel(e.geometry.startMs)}),(0,Z.jsx)("text",{className:"ss-w-om-xlab",x:312,y:132,textAnchor:"end",children:t.chartTimeLabel(e.geometry.endMs)})]}):(0,Z.jsx)("text",{className:"ss-w-om-xlab",x:40,y:132,children:t!=null&&t.movementWindow?t.movementWindow(e.windowHours):`Last ${e.windowHours}h`})]}),(0,Z.jsxs)("div",{className:"ss-w-om-foot",children:[(0,Z.jsxs)("span",{children:[(l=t==null?void 0:t.openingLabel)!=null?l:"Opening"," ",(0,Z.jsx)("b",{children:e.opening})]}),(0,Z.jsxs)("span",{children:[(u=t==null?void 0:t.currentLabel)!=null?u:"Current"," ",(0,Z.jsx)("b",{children:e.current})]})]}),e.bookmaker?(0,Z.jsx)("div",{className:"ss-w-om-foot",children:(0,Z.jsx)("span",{children:e.bookmaker})}):null,e.excludedCount>0?(0,Z.jsx)("div",{className:"ss-w-om-excl",children:t!=null&&t.excludedSuspended?t.excludedSuspended(e.excludedCount):`${e.excludedCount} suspended price(s) excluded from this chart.`}):null,e.isSuspended?(0,Z.jsx)("div",{className:"ss-w-om-susp",children:(c=t==null?void 0:t.selectionSuspended)!=null?c:"This selection is not currently available to bet."}):null,e.disclaimer?(0,Z.jsx)("div",{className:"ss-w-om-disc",children:e.disclaimer}):null]})}function Cv({cards:e,ui:t}){return!e||e.length===0?null:(0,Z.jsx)("div",{className:"ss-w-omcards",children:e.map(n=>(0,Z.jsx)(uI,{vm:n,ui:t},n.id))})}var An=E(P(),1);function kl({actions:e,loading:t,disabled:n,onAct:r}){return e.length===0&&!t?null:(0,An.jsxs)("div",{className:"ss-w-actions",children:[e.map((i,o)=>(0,An.jsx)("button",{type:"button",className:"ss-w-abtn",disabled:n,onClick:()=>r(i),children:i.label},`${i.label}-${o}`)),e.length===0&&t?(0,An.jsxs)(An.Fragment,{children:[(0,An.jsx)("span",{className:"ss-w-abtn-shimmer"}),(0,An.jsx)("span",{className:"ss-w-abtn-shimmer"})]}):null]})}var lt=E(P(),1),cI=3;function bv({tile:e,onTap:t}){var o;let n=e.span==="full"?"ss-w-dash-tile--full":"ss-w-dash-tile--half",r=((o=e.imageUrls)!=null?o:[]).slice(0,cI),i=!!e.badgeText||r.length>0;return(0,lt.jsxs)("button",{type:"button",className:`ss-w-dash-tile ${n}`,onClick:t,children:[(0,lt.jsx)("span",{className:"ss-w-dash-tile-icon",children:(0,lt.jsx)(fw,{name:e.icon})}),(0,lt.jsxs)("span",{className:"ss-w-dash-tile-body",children:[(0,lt.jsx)("span",{className:"ss-w-dash-tile-title",children:e.title}),e.subtitle?(0,lt.jsx)("span",{className:"ss-w-dash-tile-subtitle",children:e.subtitle}):null,i?(0,lt.jsxs)("span",{className:"ss-w-dash-tile-meta",children:[e.badgeText?(0,lt.jsx)("span",{className:"ss-w-dash-tile-badge",children:e.badgeText}):null,r.length>0?(0,lt.jsx)("span",{className:"ss-w-dash-tile-crests",children:r.map((s,a)=>(0,lt.jsx)("span",{className:"ss-w-dash-tile-crest",style:{backgroundImage:`url(${s})`},"aria-hidden":"true"},`${s}-${a}`))}):null]}):null]}),(0,lt.jsx)("span",{className:"ss-w-dash-tile-chevron",children:(0,lt.jsx)(Fa,{})})]})}var Cn=E(P(),1),Dp={market:"ss-w-dash--market",goal:"ss-w-dash--goal",discovery:"ss-w-dash--discovery"};function dI(e){return Object.prototype.hasOwnProperty.call(Dp,e)?Dp[e]:Dp.goal}function Sv({dashboard:e,onTap:t}){return(0,Cn.jsxs)("div",{className:`ss-w-dash ${dI(e.layout)}`,children:[(0,Cn.jsxs)("div",{className:"ss-w-dash-head",children:[(0,Cn.jsx)("span",{className:"ss-w-dash-title",children:e.title}),e.subtitle?(0,Cn.jsx)("span",{className:"ss-w-dash-subtitle",children:e.subtitle}):null]}),(0,Cn.jsx)("div",{className:"ss-w-dash-grid",children:e.tiles.map((n,r)=>(0,Cn.jsx)(bv,{tile:n,onTap:()=>t(n,r)},`${n.title}-${r}`))}),e.footerTip?(0,Cn.jsx)("span",{className:"ss-w-dash-foot",children:e.footerTip}):null]})}var j=E(P(),1);function pI(e){let t=e.toUpperCase();return t==="W"?"ss-w-fandash-form-pill--win":t==="L"?"ss-w-fandash-form-pill--loss":"ss-w-fandash-form-pill--draw"}function fI({form:e}){return(0,j.jsx)("span",{className:"ss-w-fandash-form",children:e.map((t,n)=>(0,j.jsx)("span",{className:`ss-w-fandash-form-pill ${pI(t)}`,children:t},`${t}-${n}`))})}function Ev({name:e,form:t}){return(0,j.jsxs)("div",{className:"ss-w-fandash-formrow",children:[(0,j.jsx)("span",{className:"ss-w-fandash-formrow-name",children:e}),(0,j.jsx)(fI,{form:t})]})}function Iv({card:e,onTap:t}){var i,o;let{data:n}=e,r=n.h2H;return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-fixture",onClick:()=>t(e),children:[(0,j.jsxs)("span",{className:"ss-w-fandash-eyebrow",children:[e.title," \xB7 ",n.competition]}),(0,j.jsxs)("div",{className:"ss-w-fandash-fixture-teams",children:[(0,j.jsxs)("span",{className:"ss-w-fandash-fixture-team",children:[(0,j.jsx)(at,{url:(i=n.homeCrestUrl)!=null?i:void 0,name:n.homeName,kind:"team"}),(0,j.jsx)("span",{className:"ss-w-fandash-fixture-name",children:n.homeName})]}),(0,j.jsx)("span",{className:"ss-w-fandash-fixture-vs",children:"v"}),(0,j.jsxs)("span",{className:"ss-w-fandash-fixture-team ss-w-fandash-fixture-team--away",children:[(0,j.jsx)("span",{className:"ss-w-fandash-fixture-name",children:n.awayName}),(0,j.jsx)(at,{url:(o=n.awayCrestUrl)!=null?o:void 0,name:n.awayName,kind:"team"})]})]}),(0,j.jsxs)("div",{className:"ss-w-fandash-fixture-meta",children:[(0,j.jsxs)("div",{className:"ss-w-fandash-fixture-metarow",children:[(0,j.jsx)("span",{className:"ss-w-fandash-fixture-metakey",children:n.dateLabel}),(0,j.jsx)("span",{className:"ss-w-fandash-fixture-metaval",children:n.kickoffLabel})]}),n.venue?(0,j.jsxs)("div",{className:"ss-w-fandash-fixture-metarow",children:[(0,j.jsx)("span",{className:"ss-w-fandash-fixture-metakey",children:n.venueLabel}),(0,j.jsx)("span",{className:"ss-w-fandash-fixture-metaval",children:n.venue})]}):null]}),(0,j.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]}),(0,j.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-lastfive",children:[(0,j.jsx)("span",{className:"ss-w-fandash-eyebrow",children:n.formLabel}),(0,j.jsxs)("div",{className:"ss-w-fandash-fixture-form",children:[(0,j.jsx)(Ev,{name:n.homeName,form:n.homeForm}),(0,j.jsx)(Ev,{name:n.awayName,form:n.awayForm})]})]}),r||n.fact?(0,j.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-h2h",children:[r?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("span",{className:"ss-w-fandash-eyebrow",children:r.label}),(0,j.jsxs)("div",{className:"ss-w-fandash-split",children:[(0,j.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,j.jsx)("span",{className:"ss-w-fandash-split-value",children:r.wins}),(0,j.jsx)("span",{className:"ss-w-fandash-split-label",children:r.homeWinsLabel})]}),(0,j.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,j.jsx)("span",{className:"ss-w-fandash-split-value",children:r.draws}),(0,j.jsx)("span",{className:"ss-w-fandash-split-label",children:r.drawsLabel})]}),(0,j.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,j.jsx)("span",{className:"ss-w-fandash-split-value",children:r.losses}),(0,j.jsx)("span",{className:"ss-w-fandash-split-label",children:r.awayWinsLabel})]})]})]}):null,n.fact?(0,j.jsx)("span",{className:"ss-w-fandash-fact",children:n.fact}):null]}):null]})}var Qr=E(xe(),1),Qt=E(P(),1),mI=864e5;function hI(e,t,n){let r=Math.floor((e*1e3-t)/1e3);if(r<=0)return null;let i=Math.floor(r/86400),o=Math.floor(r%86400/3600),s=Math.floor(r%3600/60),a=r%60,l=c=>String(c).padStart(2,"0");if(i>0)return[{value:l(i),unit:"d"},{value:l(o),unit:"h"}];let u=[{value:l(o),unit:"h"},{value:l(s),unit:"m"}];return n&&u.push({value:l(a),unit:"s"}),u}function Tv({card:e}){var l;let{data:t}=e,n={d:t.daysUnit,h:t.hoursUnit,m:t.minutesUnit,s:t.secondsUnit},[r,i]=(0,Qr.useState)(()=>Date.now()),[o]=(0,Qr.useState)(()=>typeof window!="undefined"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches),s=t.kickoffUnix*1e3-r<mI;(0,Qr.useEffect)(()=>{if(o)return;let u=window.setInterval(()=>i(Date.now()),s?1e3:6e4);return()=>window.clearInterval(u)},[o,s]);let a=hI(t.kickoffUnix,r,s&&!o);return(0,Qt.jsx)("div",{className:"ss-w-fandash-card ss-w-fandash-countdown",children:(0,Qt.jsxs)("div",{className:"ss-w-fandash-countdown-top",children:[(0,Qt.jsx)("span",{className:"ss-w-fandash-eyebrow",children:(l=e.title)!=null?l:"Kick-off in"}),a?(0,Qt.jsx)("span",{className:"ss-w-fandash-countdown-clock",children:a.map((u,c)=>(0,Qt.jsxs)(Qr.Fragment,{children:[c>0?(0,Qt.jsx)("span",{className:"ss-w-fandash-countdown-colon",children:":"}):null,(0,Qt.jsxs)("span",{className:"ss-w-fandash-countdown-seg",children:[(0,Qt.jsx)("span",{className:"ss-w-fandash-countdown-value",children:u.value}),(0,Qt.jsx)("span",{className:"ss-w-fandash-countdown-unit",children:n[u.unit]})]})]},u.unit))}):null]})})}var ge=E(P(),1);function Nv({name:e,crestUrl:t}){return(0,ge.jsxs)("span",{className:"ss-w-fandash-injuries-col-head",children:[(0,ge.jsx)(at,{url:t!=null?t:void 0,name:e,kind:"team"}),(0,ge.jsx)("span",{className:"ss-w-fandash-injuries-col-head-name",children:e})]})}function Lv({rows:e,emptyLabel:t}){return e.length===0?(0,ge.jsx)("span",{className:"ss-w-fandash-injuries-empty",children:t}):(0,ge.jsx)("ul",{className:"ss-w-fandash-injury-list",children:e.map((n,r)=>(0,ge.jsxs)("li",{className:"ss-w-fandash-injury-row",children:[(0,ge.jsx)("span",{className:"ss-w-fandash-injury-name",children:n.playerName}),(0,ge.jsxs)("span",{className:"ss-w-fandash-injury-meta",children:[(0,ge.jsx)("span",{className:"ss-w-fandash-injury-status",children:n.status}),n.injuryType?(0,ge.jsx)("span",{className:"ss-w-fandash-injury-type",children:n.injuryType}):null,n.expectedReturnLabel?(0,ge.jsx)("span",{className:"ss-w-fandash-injury-return",children:n.expectedReturnLabel}):null]})]},`${n.playerName}-${r}`))})}function Pv({card:e}){let{data:t}=e;return(0,ge.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-injuries",children:[e.title?(0,ge.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,ge.jsxs)("div",{className:"ss-w-fandash-injuries-cols",children:[(0,ge.jsxs)("div",{className:"ss-w-fandash-injuries-col",children:[(0,ge.jsx)(Nv,{name:t.oursName,crestUrl:t.oursCrestUrl}),(0,ge.jsx)(Lv,{rows:t.ours,emptyLabel:t.emptyLabel})]}),(0,ge.jsx)("div",{className:"ss-w-fandash-injuries-divider"}),(0,ge.jsxs)("div",{className:"ss-w-fandash-injuries-col",children:[(0,ge.jsx)(Nv,{name:t.theirsName,crestUrl:t.theirsCrestUrl}),(0,ge.jsx)(Lv,{rows:t.theirs,emptyLabel:t.emptyLabel})]})]})]})}var Ri=E(P(),1);function Mv({card:e}){return(0,Ri.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-reasons",children:[e.title?(0,Ri.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ri.jsx)("ul",{className:"ss-w-fandash-reason-list",children:e.data.angles.map((t,n)=>(0,Ri.jsx)("li",{className:"ss-w-fandash-reason-item",children:t},`${t}-${n}`))})]})}var Di=E(P(),1);function Rv({card:e}){return(0,Di.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-watch",children:[e.title?(0,Di.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Di.jsx)("span",{className:"ss-w-fandash-stations",children:e.data.stations.map((t,n)=>(0,Di.jsx)("span",{className:"ss-w-fandash-station-chip",children:t},`${t}-${n}`))})]})}var Ut=E(P(),1);function Dv({card:e,onTap:t}){return(0,Ut.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-congested",onClick:()=>t(e),children:[e.title?(0,Ut.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ut.jsx)("div",{className:"ss-w-fandash-congested-grid",children:e.data.entries.map((n,r)=>(0,Ut.jsxs)("span",{className:"ss-w-fandash-congested-cell",children:[(0,Ut.jsx)("span",{className:"ss-w-fandash-congested-day",children:n.dayLabel}),(0,Ut.jsx)("span",{className:"ss-w-fandash-congested-opponent",children:n.opponent}),(0,Ut.jsx)("span",{className:"ss-w-fandash-congested-comp",children:n.competition}),(0,Ut.jsx)("span",{className:"ss-w-fandash-congested-time",children:n.timeLabel})]},`${n.opponent}-${r}`))}),(0,Ut.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Qe=E(P(),1);function zv({rows:e}){return e.length===0?(0,Qe.jsx)("span",{className:"ss-w-fandash-transfers-empty",children:"None"}):(0,Qe.jsx)("ul",{className:"ss-w-fandash-transfer-list",children:e.map((t,n)=>(0,Qe.jsxs)("li",{className:"ss-w-fandash-transfer-row",children:[(0,Qe.jsx)("span",{className:"ss-w-fandash-transfer-name",children:t.playerName}),(0,Qe.jsx)("span",{className:"ss-w-fandash-transfer-club",children:t.otherClub}),t.type?(0,Qe.jsx)("span",{className:"ss-w-fandash-transfer-type",children:t.type}):null]},`${t.playerName}-${n}`))})}function Ov({card:e}){let{data:t}=e;return(0,Qe.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-transfers",children:[e.title?(0,Qe.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Qe.jsxs)("div",{className:"ss-w-fandash-transfers-cols",children:[(0,Qe.jsxs)("div",{className:"ss-w-fandash-transfers-col",children:[(0,Qe.jsx)("span",{className:"ss-w-fandash-transfers-col-head",children:"In"}),(0,Qe.jsx)(zv,{rows:t.in})]}),(0,Qe.jsxs)("div",{className:"ss-w-fandash-transfers-col",children:[(0,Qe.jsx)("span",{className:"ss-w-fandash-transfers-col-head",children:"Out"}),(0,Qe.jsx)(zv,{rows:t.out})]})]})]})}var bn=E(P(),1);function Bv({card:e}){return(0,bn.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-links",children:[e.title?(0,bn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,bn.jsx)("div",{className:"ss-w-fandash-link-grid",children:e.data.links.map((t,n)=>(0,bn.jsxs)("a",{className:"ss-w-fandash-link-tile",href:t.url,target:"_blank",rel:"noopener noreferrer",children:[(0,bn.jsx)("span",{className:"ss-w-fandash-link-label",children:t.label}),(0,bn.jsx)("span",{className:"ss-w-fandash-link-chevron",children:(0,bn.jsx)(Fa,{})})]},`${t.url}-${n}`))})]})}var Ht=E(P(),1);function Fv({card:e}){let{data:t}=e;return(0,Ht.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-postmatch-result",children:[e.title?(0,Ht.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ht.jsxs)("div",{className:"ss-w-fandash-postmatch-scoreboard",children:[(0,Ht.jsx)("span",{className:"ss-w-fandash-postmatch-team",children:t.homeName}),(0,Ht.jsx)("span",{className:"ss-w-fandash-postmatch-score",children:t.homeScore}),(0,Ht.jsx)("span",{className:"ss-w-fandash-postmatch-sep",children:"\u2013"}),(0,Ht.jsx)("span",{className:"ss-w-fandash-postmatch-score",children:t.awayScore}),(0,Ht.jsx)("span",{className:"ss-w-fandash-postmatch-team ss-w-fandash-postmatch-team--away",children:t.awayName})]}),(0,Ht.jsxs)("div",{className:"ss-w-fandash-postmatch-meta",children:[t.resultLabel," \xB7 ",t.kickoffLabel,t.competition?` \xB7 ${t.competition}`:""]})]})}var Ur=E(P(),1);function Qv({card:e,onTap:t}){return(0,Ur.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-postmatch-goals",onClick:()=>t(e),children:[e.title?(0,Ur.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ur.jsx)("ul",{className:"ss-w-fandash-postmatch-goal-list",children:e.data.goals.map((n,r)=>(0,Ur.jsx)("li",{className:n.scoredByClub?"ss-w-fandash-postmatch-goal ss-w-fandash-postmatch-goal--club":"ss-w-fandash-postmatch-goal",children:n.text},`${n.text}-${r}`))}),(0,Ur.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var en=E(P(),1);function Uv({card:e,onTap:t}){return(0,en.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-postmatch-stats",onClick:()=>t(e),children:[e.title?(0,en.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,en.jsx)("div",{className:"ss-w-fandash-postmatch-stat-rows",children:e.data.rows.map((n,r)=>(0,en.jsxs)("div",{className:"ss-w-fandash-postmatch-stat-row",children:[(0,en.jsx)("span",{className:"ss-w-fandash-postmatch-stat-value",children:n.clubValue}),(0,en.jsx)("span",{className:"ss-w-fandash-postmatch-stat-label",children:n.label}),(0,en.jsx)("span",{className:"ss-w-fandash-postmatch-stat-value",children:n.oppValue})]},`${n.label}-${r}`))}),(0,en.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var tr=E(P(),1);function Hv({card:e,onTap:t}){let{data:n}=e;return(0,tr.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-postmatch-performer",onClick:()=>t(e),children:[e.title?(0,tr.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,tr.jsxs)("div",{className:"ss-w-fandash-postmatch-performer-row",children:[(0,tr.jsx)("span",{className:"ss-w-fandash-postmatch-performer-name",children:n.playerName}),(0,tr.jsx)("span",{className:"ss-w-fandash-postmatch-performer-rating",children:n.ratingLabel})]}),(0,tr.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var zi=E(P(),1);function jv({card:e}){let{data:t}=e;return(0,zi.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-postmatch-next",children:[e.title?(0,zi.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,zi.jsx)("div",{className:"ss-w-fandash-postmatch-next-row",children:(0,zi.jsx)("span",{className:"ss-w-fandash-postmatch-next-when",children:t.whenLabel})})]})}var nr=E(P(),1);function Vv({card:e,onTap:t}){let{data:n}=e;return(0,nr.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-resting-next",onClick:()=>t(e),children:[e.title?(0,nr.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,nr.jsxs)("div",{className:"ss-w-fandash-resting-next-row",children:[(0,nr.jsx)("span",{className:"ss-w-fandash-resting-next-when",children:n.whenLabel}),n.competition?(0,nr.jsx)("span",{className:"ss-w-fandash-resting-next-competition",children:n.competition}):null]}),(0,nr.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var rr=E(P(),1);function Wv({card:e,onTap:t}){let{data:n}=e;return(0,rr.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-resting-standings",onClick:()=>t(e),children:[e.title?(0,rr.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,rr.jsxs)("div",{className:"ss-w-fandash-resting-standings-row",children:[(0,rr.jsx)("span",{className:"ss-w-fandash-resting-standings-position",children:n.positionLabel}),(0,rr.jsx)("span",{className:"ss-w-fandash-resting-standings-record",children:n.recordLabel})]}),(0,rr.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Sn=E(P(),1);function _v({card:e,onTap:t}){let{data:n}=e;return(0,Sn.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-resting-season",onClick:()=>t(e),children:[e.title?(0,Sn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Sn.jsxs)("div",{className:"ss-w-fandash-resting-season-rows",children:[n.scorerLabel?(0,Sn.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.scorerLabel}):null,n.playerLabel?(0,Sn.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.playerLabel}):null,(0,Sn.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.tallyLabel})]}),(0,Sn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Oi=E(P(),1);function gI(e){let t=e.toUpperCase();return t==="W"?"ss-w-fandash-form-pill--win":t==="L"?"ss-w-fandash-form-pill--loss":"ss-w-fandash-form-pill--draw"}function Xv({card:e}){let{data:t}=e;return(0,Oi.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-resting-form",children:[e.title?(0,Oi.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Oi.jsx)("span",{className:"ss-w-fandash-form",children:t.letters.map((n,r)=>(0,Oi.jsx)("span",{className:`ss-w-fandash-form-pill ${gI(n)}`,children:n},`${n}-${r}`))})]})}var Cl=E(xe(),1);var Al=E(xe(),1),qv=6e4,wI=15;function zp(e,t,n){if(!t)return e;let r=Math.floor((Date.now()-n)/qv);return e+Math.min(Math.max(0,r),wI)}function Jv(e,t,n){let[r,i]=(0,Al.useState)(()=>zp(e,t,n));return(0,Al.useEffect)(()=>{if(i(zp(e,t,n)),!t)return;let o=window.setInterval(()=>{i(zp(e,t,n))},qv);return()=>window.clearInterval(o)},[e,t,n]),r}var pe=E(P(),1);function yI(e){return e.trim().slice(0,3).toUpperCase()}function Kv({url:e,name:t,side:n}){let[r,i]=(0,Cl.useState)(!1),o=`ss-w-fandash-live-crest ss-w-fandash-live-crest--${n}`;return e&&!r?(0,pe.jsx)("img",{className:o,src:e,alt:"","aria-hidden":"true",onError:()=>i(!0)}):(0,pe.jsx)("span",{className:`${o} ss-w-fandash-live-crest--fallback`,"aria-hidden":"true",children:yI(t)})}function xI(e){if(!e||e.length===0)return null;let t=e.filter(n=>n.type==="goal"&&n.player);return t.length===0?null:t.slice().sort((n,r)=>n.minute-r.minute).map(n=>`${n.player} ${n.minuteLabel}`).join(", ")}function Yv({card:e,goalEvents:t}){let{data:n}=e,r=`${n.minute}:${n.homeScore}:${n.awayScore}`,i=(0,Cl.useRef)(null);(!i.current||i.current.key!==r)&&(i.current={key:r,receivedAtMs:Date.now()});let o=Jv(n.minute,n.clockRunning,i.current.receivedAtMs),s=n.minuteLabel.replace(/^\d+/,""),a=xI(t);return(0,pe.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-score",children:[e.title?(0,pe.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,pe.jsxs)("div",{className:"ss-w-fandash-live-top",children:[(0,pe.jsxs)("span",{className:"ss-w-fandash-live-pill",children:[(0,pe.jsx)("span",{className:"ss-w-fandash-live-dot","aria-hidden":"true"}),n.statusLabel]}),(0,pe.jsx)("span",{className:"ss-w-fandash-live-minute",children:`${o}${s}`}),n.competition?(0,pe.jsx)("span",{className:"ss-w-fandash-live-competition",children:n.competition}):null]}),(0,pe.jsxs)("div",{className:"ss-w-fandash-live-main",children:[(0,pe.jsxs)("div",{className:"ss-w-fandash-live-side ss-w-fandash-live-side--home",children:[(0,pe.jsx)(Kv,{url:n.homeCrestUrl,name:n.homeName,side:"home"}),(0,pe.jsx)("span",{className:"ss-w-fandash-live-team-name",children:n.homeName})]}),(0,pe.jsxs)("div",{className:"ss-w-fandash-live-score-main",children:[(0,pe.jsx)("span",{className:"ss-w-fandash-live-score-value",children:n.homeScore}),(0,pe.jsx)("span",{className:"ss-w-fandash-live-score-sep",children:"\u2013"}),(0,pe.jsx)("span",{className:"ss-w-fandash-live-score-value",children:n.awayScore})]}),(0,pe.jsxs)("div",{className:"ss-w-fandash-live-side ss-w-fandash-live-side--away",children:[(0,pe.jsx)(Kv,{url:n.awayCrestUrl,name:n.awayName,side:"away"}),(0,pe.jsx)("span",{className:"ss-w-fandash-live-team-name",children:n.awayName})]})]}),a?(0,pe.jsxs)("div",{className:"ss-w-fandash-live-scorers",children:[(0,pe.jsx)("span",{className:"ss-w-fandash-live-scorers-icon","aria-hidden":"true",children:"\u26BD"}),a]}):null]})}var Zv=E(xe(),1),we=E(P(),1),Gv=3;function vI({type:e}){return e==="goal"?(0,we.jsx)("span",{className:"ss-w-fandash-live-tl-ico ss-w-fandash-live-tl-ico--goal","aria-hidden":"true",children:(0,we.jsx)("span",{className:"ss-w-fandash-live-tl-ball"})}):e==="yellow"||e==="red"?(0,we.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,we.jsx)("span",{className:`ss-w-fandash-live-tl-card ss-w-fandash-live-tl-card--${e}`})}):e==="sub"?(0,we.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,we.jsx)("span",{className:"ss-w-fandash-live-tl-subarrows",children:"\u21C5"})}):(0,we.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,we.jsx)("span",{className:"ss-w-fandash-live-tl-dot"})})}function kI({e}){var t,n;return e.type==="sub"?(0,we.jsxs)("span",{className:"ss-w-fandash-live-tl-who",children:[(t=e.player)!=null?t:e.text,e.playerOff?(0,we.jsxs)("span",{className:"ss-w-fandash-live-tl-off",children:[" for ",e.playerOff]}):null]}):(0,we.jsx)("span",{className:"ss-w-fandash-live-tl-who",children:(n=e.player)!=null?n:e.text})}function AI({e}){let t=["ss-w-fandash-live-tl-ev",e.side==="home"?"ss-w-fandash-live-tl-ev--home":"ss-w-fandash-live-tl-ev--away",e.type==="goal"?"ss-w-fandash-live-tl-ev--goal":""].filter(Boolean).join(" ");return(0,we.jsxs)("div",{className:t,children:[(0,we.jsxs)("span",{className:"ss-w-fandash-live-tl-txt",children:[(0,we.jsx)(kI,{e}),(0,we.jsx)(vI,{type:e.type})]}),(0,we.jsx)("span",{className:"ss-w-fandash-live-tl-badge",children:e.minuteLabel})]})}function $v({card:e,ui:t}){var c,d;let[n,r]=(0,Zv.useState)(!1),i=e.data.events;if(!i||i.length===0)return null;let o=[...i].sort((p,f)=>f.minute-p.minute),s=o.length-Gv,a=n?o:o.slice(0,Gv),l=(c=t==null?void 0:t.showMore)!=null?c:(p=>`Show ${p} more`),u=(d=t==null?void 0:t.showLess)!=null?d:"Show less";return(0,we.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-timeline",children:[e.title?(0,we.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,we.jsx)("div",{className:"ss-w-fandash-live-tl",children:a.map((p,f)=>(0,we.jsx)(AI,{e:p},`${p.minute}-${p.side}-${p.type}-${f}`))}),s>0?(0,we.jsx)("button",{type:"button",className:"ss-w-fandash-live-tl-more","aria-expanded":n,onClick:()=>r(p=>!p),children:n?u:l(s)}):null]})}var ek=E(xe(),1),Ze=E(P(),1),Bi=270,Op=56,ir=Op/2,CI=.26;function bI(e){var l,u;let t=e.length-1,n=c=>t===0?0:c/t*Bi,r=c=>ir-c*CI,i=e.map((c,d)=>`${n(d).toFixed(1)},${r(c.value).toFixed(1)}`),o=`M0,${ir} L${i.join(" L")} L${Bi},${ir} Z`,s=`M${i.join(" L")}`,a=(u=(l=e[t])==null?void 0:l.value)!=null?u:0;return{area:o,line:s,lastX:n(t).toFixed(1),lastY:r(a).toFixed(1)}}function tk({points:e,caption:t,clubIsHome:n}){if(e.length===0)return null;let{area:r,line:i,lastX:o,lastY:s}=bI(e),a=(0,ek.useId)(),l=`${a}-top`,u=`${a}-bottom`,c=n?"ss-w-fandash-live-mom-home":"ss-w-fandash-live-mom-away",d=n?"ss-w-fandash-live-mom-away":"ss-w-fandash-live-mom-home";return(0,Ze.jsxs)("div",{className:"ss-w-fandash-live-mom",children:[t?(0,Ze.jsx)("span",{className:"ss-w-fandash-live-mom-caption",children:t}):null,(0,Ze.jsxs)("svg",{className:"ss-w-fandash-live-mom-svg",viewBox:`0 0 ${Bi} ${Op}`,preserveAspectRatio:"none",role:"img","aria-label":t!=null?t:"Momentum",children:[(0,Ze.jsxs)("defs",{children:[(0,Ze.jsx)("clipPath",{id:l,children:(0,Ze.jsx)("rect",{x:0,y:0,width:Bi,height:ir})}),(0,Ze.jsx)("clipPath",{id:u,children:(0,Ze.jsx)("rect",{x:0,y:ir,width:Bi,height:Op-ir})})]}),(0,Ze.jsx)("path",{d:r,className:c,clipPath:`url(#${l})`}),(0,Ze.jsx)("path",{d:r,className:d,clipPath:`url(#${u})`}),(0,Ze.jsx)("line",{x1:0,y1:ir,x2:Bi,y2:ir,className:"ss-w-fandash-live-mom-base"}),(0,Ze.jsx)("path",{d:i,className:"ss-w-fandash-live-mom-line",vectorEffect:"non-scaling-stroke"}),(0,Ze.jsx)("circle",{cx:o,cy:s,r:3.2,className:"ss-w-fandash-live-mom-now",vectorEffect:"non-scaling-stroke"})]})]})}var Ie=E(P(),1);function SI(e,t){let n=e+t;if(n<=0)return{home:"50%",away:"50%"};let r=Math.round(e/n*1e3)/10;return{home:`${r}%`,away:`${Math.round((100-r)*10)/10}%`}}function nk({card:e}){let{data:t}=e;return(0,Ie.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-stats",children:[e.title?(0,Ie.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ie.jsx)("div",{className:"ss-w-fandash-live-stat-rows",children:t.rows.map((n,r)=>{let i=t.clubIsHome?n.clubValue:n.oppValue,o=t.clubIsHome?n.oppValue:n.clubValue,s=t.clubIsHome?n.clubNum:n.oppNum,a=t.clubIsHome?n.oppNum:n.clubNum,{home:l,away:u}=SI(s,a);return(0,Ie.jsxs)("div",{className:"ss-w-fandash-live-stat",children:[(0,Ie.jsxs)("div",{className:"ss-w-fandash-live-stat-row",children:[(0,Ie.jsx)("span",{className:"ss-w-fandash-live-stat-value ss-w-fandash-live-stat-value--home",children:i}),(0,Ie.jsx)("span",{className:"ss-w-fandash-live-stat-label",children:n.label}),(0,Ie.jsx)("span",{className:"ss-w-fandash-live-stat-value ss-w-fandash-live-stat-value--away",children:o})]}),(0,Ie.jsxs)("div",{className:"ss-w-fandash-live-bar",children:[(0,Ie.jsx)("span",{className:"ss-w-fandash-live-bar-home",style:{width:l}}),(0,Ie.jsx)("span",{className:"ss-w-fandash-live-bar-away",style:{width:u}})]})]},`${n.label}-${r}`)})}),t.momentum.length>0?(0,Ie.jsx)(tk,{points:t.momentum,caption:t.momentumLabel,clubIsHome:t.clubIsHome}):t.momentumLabel?(0,Ie.jsx)("span",{className:"ss-w-fandash-live-momentum",children:t.momentumLabel}):null,t.rows.length>0?(0,Ie.jsxs)("div",{className:"ss-w-fandash-live-legend",children:[(0,Ie.jsxs)("span",{className:"ss-w-fandash-live-legend-item",children:[(0,Ie.jsx)("i",{className:"ss-w-fandash-live-legend-swatch ss-w-fandash-live-legend-swatch--home"}),t.homeName]}),(0,Ie.jsxs)("span",{className:"ss-w-fandash-live-legend-item",children:[(0,Ie.jsx)("i",{className:"ss-w-fandash-live-legend-swatch ss-w-fandash-live-legend-swatch--away"}),t.awayName]})]}):null]})}var ae=E(P(),1);function rk({dashboard:e,onTap:t,ui:n}){let r=[...e.cards.filter(s=>s.cardType==="countdown"),...e.cards.filter(s=>s.cardType!=="countdown")],i=e.cards.find(s=>s.cardType==="liveTimeline"),o=i==null?void 0:i.data.events.filter(s=>s.type==="goal");return(0,ae.jsxs)("div",{className:"ss-w-fandash",children:[e.greeting?(0,ae.jsx)("span",{className:"ss-w-fandash-greeting",children:e.greeting}):null,(0,ae.jsx)("div",{className:"ss-w-fandash-cards",children:r.map((s,a)=>(0,ae.jsx)(EI,{card:s,onTap:t,ui:n,goalEvents:o},`${s.cardType}-${a}`))})]})}function EI({card:e,onTap:t,ui:n,goalEvents:r}){switch(e.cardType){case"fixture":return(0,ae.jsx)(Iv,{card:e,onTap:t});case"countdown":return(0,ae.jsx)(Tv,{card:e});case"injuries":return(0,ae.jsx)(Pv,{card:e});case"reasonToBet":return(0,ae.jsx)(Mv,{card:e});case"whereToWatch":return(0,ae.jsx)(Rv,{card:e});case"congestedWeek":return(0,ae.jsx)(Dv,{card:e,onTap:t});case"transfers":return(0,ae.jsx)(Ov,{card:e});case"links":return(0,ae.jsx)(Bv,{card:e});case"postMatchResult":return(0,ae.jsx)(Fv,{card:e});case"postMatchGoals":return(0,ae.jsx)(Qv,{card:e,onTap:t});case"postMatchStats":return(0,ae.jsx)(Uv,{card:e,onTap:t});case"postMatchTopPerformer":return(0,ae.jsx)(Hv,{card:e,onTap:t});case"postMatchNext":return(0,ae.jsx)(jv,{card:e});case"restingNext":return(0,ae.jsx)(Vv,{card:e,onTap:t});case"restingStandings":return(0,ae.jsx)(Wv,{card:e,onTap:t});case"restingSeason":return(0,ae.jsx)(_v,{card:e,onTap:t});case"restingForm":return(0,ae.jsx)(Xv,{card:e});case"liveScore":return(0,ae.jsx)(Yv,{card:e,goalEvents:r});case"liveTimeline":return(0,ae.jsx)($v,{card:e,ui:n});case"liveStats":return(0,ae.jsx)(nk,{card:e});default:return null}}var wt=E(P(),1);function ik({message:e,disabled:t,onAct:n,onTap:r,ui:i,slip:o}){if(e.role==="user")return(0,wt.jsx)("div",{className:"ss-w-msg ss-w-user","data-msg-id":e.id,children:(0,wt.jsx)("div",{className:"ss-w-bubble",children:e.text})});let s=a=>{n({message:a.actionLabel,actionRef:a.actionRef,label:a.actionLabel||a.title||""})};return(0,wt.jsxs)("div",{className:"ss-w-msg ss-w-bot","data-msg-id":e.id,children:[e.text&&!e.greetingDashboard&&!e.clubFanDashboard?(0,wt.jsx)(iv,{text:e.text}):null,e.greetingDashboard&&!e.clubFanDashboard?(0,wt.jsx)(Sv,{dashboard:e.greetingDashboard,onTap:r}):null,e.clubFanDashboard?(0,wt.jsx)(rk,{dashboard:e.clubFanDashboard,onTap:s,ui:i}):null,(0,wt.jsx)(lv,{cards:e.cards,disabled:t,showLessLabel:i==null?void 0:i.showLess,showMoreLabel:i==null?void 0:i.showMore}),(0,wt.jsx)(yv,{insights:e.insights,ui:i,slip:o}),(0,wt.jsx)(kv,{cards:e.marketOdds,ui:i,slip:o}),(0,wt.jsx)(Cv,{cards:e.oddsMovement,ui:i}),(0,wt.jsx)(kl,{actions:e.actions,loading:!1,disabled:t,onAct:n})]})}var Bp=E(P(),1);function ok({chips:e,onPick:t}){return e.length===0?null:(0,Bp.jsx)("div",{className:"ss-w-chips",children:e.map((n,r)=>(0,Bp.jsx)("button",{type:"button",className:"ss-w-chip",onClick:()=>t(n.text),children:n.text},`${n.text}-${r}`))})}function sk(e,t=48){return e.scrollHeight-e.scrollTop-e.clientHeight<=t}var jt=E(P(),1);function II(e){let t=e[e.length-1];if(!t||t.role!=="assistant")return null;let n=e[e.length-2];return{turnId:t.id,anchorId:n&&n.role==="user"?n.id:t.id}}function ak({controller:e,ui:t,slip:n,onDashboardTap:r}){let{state:i,send:o}=e,s=(0,Hr.useRef)(null),a=(0,Hr.useRef)(null),l=(0,Hr.useRef)(!0),u=(0,Hr.useRef)(null);(0,Hr.useEffect)(()=>{var h,y;let p=II(i.messages),f=s.current;if(p&&p.turnId!==u.current){u.current=p.turnId,a.current&&f&&(a.current.style.height=`${f.clientHeight}px`),l.current=!1,(h=f==null?void 0:f.querySelector(`[data-msg-id="${p.anchorId}"]`))==null||h.scrollIntoView({block:"start"});return}!i.isStreaming&&a.current&&(a.current.style.height=""),l.current&&((y=a.current)==null||y.scrollIntoView({block:"end"}))},[i.messages,i.status,i.isStreaming]);let c=i.messages.some(p=>p.role==="user"),d=i.messages.some(p=>p.role==="assistant"&&(p.greetingDashboard||p.clubFanDashboard));return(0,jt.jsxs)("div",{className:"ss-w-list","aria-live":"polite",ref:s,onScroll:()=>{s.current&&(l.current=sk(s.current))},children:[i.messages.map(p=>(0,jt.jsx)(ik,{message:p,disabled:i.isStreaming,onAct:f=>o(f.message,{actionId:f.actionId,actionRef:f.actionRef,displayText:f.label}),onTap:(f,h)=>{o(f.actionValue,{displayText:f.title}),p.role==="assistant"&&p.greetingDashboard&&(r==null||r(f,h,p.greetingDashboard.layout))},ui:t,slip:n},p.id)),i.isStreaming&&i.actionsLoading?(0,jt.jsx)(kl,{actions:[],loading:!0,onAct:()=>{}}):null,i.status?(0,jt.jsx)("div",{className:"ss-w-status",children:i.status}):null,i.error?(0,jt.jsxs)("div",{className:"ss-w-error",role:"alert",children:[(0,jt.jsx)("span",{children:"message"in i.error?i.error.message:t.somethingWentWrong}),(0,jt.jsx)("button",{type:"button",className:"ss-w-retry",onClick:()=>e.retry(),children:t.retry})]}):null,!c&&!d?(0,jt.jsx)(ok,{chips:i.starters,onPick:p=>o(p)}):null,(0,jt.jsx)("div",{ref:a,className:"ss-w-turn-spacer","aria-hidden":"true"})]})}var lk=E(xe(),1);var or=E(P(),1);function uk({placeholder:e,streaming:t,onSend:n,onStop:r,stopLabel:i="Stop response",sendLabel:o="Send message"}){let[s,a]=(0,lk.useState)(""),l=()=>{let c=s.trim();c&&(n(c),a(""))};return(0,or.jsxs)("div",{className:"ss-w-input",children:[(0,or.jsx)("textarea",{className:"ss-w-textarea",rows:1,placeholder:e,value:s,disabled:t,onChange:c=>a(c.target.value),onKeyDown:c=>{c.key==="Enter"&&!c.shiftKey&&(c.preventDefault(),l())}}),t?(0,or.jsx)("button",{type:"button",className:"ss-w-send ss-w-stop","aria-label":i,onClick:r,children:(0,or.jsx)("span",{className:"ss-w-stop-glyph"})}):(0,or.jsx)("button",{type:"button",className:"ss-w-send","aria-label":o,onClick:l,children:(0,or.jsx)(dw,{})})]})}var Fi=E(P(),1),TI="(max-width: 639px)";function NI(){let[e,t]=(0,os.useState)(!1);return(0,os.useEffect)(()=>{if(typeof window=="undefined"||typeof window.matchMedia!="function")return;let n=window.matchMedia(TI),r=()=>t(n.matches);return r(),n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),e}function ck({controller:e,ui:t,slip:n,onDashboardTap:r}){let{state:i,close:o,stop:s,send:a}=e,l=NI();return(0,os.useEffect)(()=>{let u=c=>{c.key==="Escape"&&o()};return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[o]),(0,Fi.jsxs)("div",{className:"ss-w-panel",role:"dialog","aria-modal":l,"aria-label":t.chatDialogLabel,children:[(0,Fi.jsx)(gw,{onClose:o,closeLabel:t.closeChat}),(0,Fi.jsx)(ak,{controller:e,ui:t,slip:n,onDashboardTap:r}),(0,Fi.jsx)(uk,{placeholder:t.placeholder,streaming:i.isStreaming,onSend:u=>a(u),onStop:s,stopLabel:t.stopResponse,sendLabel:t.sendMessage})]})}var dk=`.ss-w-root { all: revert; }
|
|
37
|
+
`))}function l(f,h,y,b){let m=y.enter("tableCell"),g=y.enter("phrasing"),w=y.containerPhrasing(f,{...b,before:o,after:o});return g(),m(),w}function u(f,h){return Ax(f,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function c(f,h,y){let b=f.children,m=-1,g=[],w=h.enter("table");for(;++m<b.length;)g[m]=d(b[m],h,y);return w(),g}function d(f,h,y){let b=f.children,m=-1,g=[],w=h.enter("tableRow");for(;++m<b.length;)g[m]=l(b[m],f,h,y);return w(),g}function p(f,h,y){let b=rs.inlineCode(f,h,y);return y.stack.includes("tableCell")&&(b=b.replace(/\|/g,"\\$&")),b}}function xp(){return{exit:{taskListCheckValueChecked:Xx,taskListCheckValueUnchecked:Xx,paragraph:hE}}}function vp(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:gE}}}function Xx(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function hE(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let n=this.stack[this.stack.length-1];n.type;let r=n.children[0];if(r&&r.type==="text"){let i=t.children,o=-1,s;for(;++o<i.length;){let a=i[o];if(a.type==="paragraph"){s=a;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function gE(e,t,n,r){let i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(s);let l=rs.listItem(e,t,n,{...r,...a.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function kp(){return[$d(),tp(),rp(),wp(),xp()]}function Ap(e){return{extensions:[ep(),np(e),ip(),yp(e),vp()]}}var wE={tokenize:AE,partial:!0},qx={tokenize:CE,partial:!0},Jx={tokenize:bE,partial:!0},Kx={tokenize:SE,partial:!0},yE={tokenize:EE,partial:!0},Yx={name:"wwwAutolink",tokenize:vE,previous:Zx},Gx={name:"protocolAutolink",tokenize:kE,previous:$x},vn={name:"emailAutolink",tokenize:xE,previous:ev},$t={};function bp(){return{text:$t}}var Fr=48;for(;Fr<123;)$t[Fr]=vn,Fr++,Fr===58?Fr=65:Fr===91&&(Fr=97);$t[43]=vn;$t[45]=vn;$t[46]=vn;$t[95]=vn;$t[72]=[vn,Gx];$t[104]=[vn,Gx];$t[87]=[vn,Yx];$t[119]=[vn,Yx];function xE(e,t,n){let r=this,i,o;return s;function s(d){return!Cp(d)||!ev.call(r,r.previous)||Sp(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(d))}function a(d){return Cp(d)?(e.consume(d),a):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(yE,c,u)(d):d===45||d===95||Ae(d)?(o=!0,e.consume(d),l):c(d)}function u(d){return e.consume(d),i=!0,l}function c(d){return o&&i&&Pe(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function vE(e,t,n){let r=this;return i;function i(s){return s!==87&&s!==119||!Zx.call(r,r.previous)||Sp(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(wE,e.attempt(qx,e.attempt(Jx,o),n),n)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function kE(e,t,n){let r=this,i="",o=!1;return s;function s(d){return(d===72||d===104)&&$x.call(r,r.previous)&&!Sp(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),a):n(d)}function a(d){if(Pe(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),a;if(d===58){let p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),o?u:(o=!0,l)):n(d)}function u(d){return d===null||Nr(d)||J(d)||Gt(d)||Lr(d)?n(d):e.attempt(qx,e.attempt(Jx,c),n)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function AE(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),o):n(s)}function o(s){return s===null?n(s):t(s)}}function CE(e,t,n){let r,i,o;return s;function s(u){return u===46||u===95?e.check(Kx,l,a)(u):u===null||J(u)||Gt(u)||u!==45&&Lr(u)?l(u):(o=!0,e.consume(u),s)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),s}function l(u){return i||r||!o?n(u):t(u)}}function bE(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(Kx,t,o)(s):s===null||J(s)||Gt(s)?t(s):(e.consume(s),i)}function o(s){return s===41&&r++,e.consume(s),i}}function SE(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||J(a)||Gt(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||J(a)||Gt(a)?t(a):r(a)}function o(a){return Pe(a)?s(a):n(a)}function s(a){return a===59?(e.consume(a),r):Pe(a)?(e.consume(a),s):n(a)}}function EE(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return Ae(o)?n(o):t(o)}}function Zx(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||J(e)}function $x(e){return!Pe(e)}function ev(e){return!(e===47||Cp(e))}function Cp(e){return e===43||e===45||e===46||e===95||Ae(e)}function Sp(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var IE={tokenize:DE,partial:!0};function Ep(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:PE,continuation:{tokenize:ME},exit:RE}},text:{91:{name:"gfmFootnoteCall",tokenize:LE},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:TE,resolveTo:NE}}}}function TE(e,t,n){let r=this,i=r.events.length,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),s;for(;i--;){let l=r.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!s||!s._balanced)return n(l);let u=_e(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function NE(e,t){let n=e.length,r;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){r=e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...l),e}function LE(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o=0,s;return a;function a(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!s||d===null||d===91||J(d))return n(d);if(d===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return i.includes(_e(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return J(d)||(s=!0),o++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}function PE(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o,s=0,a;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(h)}function c(h){if(s>999||h===93&&!a||h===null||h===91||J(h))return n(h);if(h===93){e.exit("chunkString");let y=e.exit("gfmFootnoteDefinitionLabelString");return o=_e(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return J(h)||(a=!0),s++,e.consume(h),h===92?d:c}function d(h){return h===91||h===92||h===93?(e.consume(h),s++,c):c(h)}function p(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(o)||i.push(o),U(e,f,"gfmFootnoteDefinitionWhitespace")):n(h)}function f(h){return t(h)}}function ME(e,t,n){return e.check(Zt,t,e.attempt(IE,t,n))}function RE(e){e.exit("gfmFootnoteDefinition")}function DE(e,t,n){let r=this;return U(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){let s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(o):n(o)}}function Ip(e){let n=(e||{}).singleTilde,r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,a){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},d={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},p=[["enter",c,a],["enter",s[u][1],a],["exit",s[u][1],a],["enter",d,a]],f=a.parser.constructs.insideSpan.null;f&&Se(p,p.length,0,Gn(f,s.slice(u+1,l),a)),Se(p,p.length,0,[["exit",d,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",c,a]]),Se(s,u-1,l-u+3,p),l=u+p.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function o(s,a,l){let u=this.previous,c=this.events,d=0;return p;function p(h){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(h):(s.enter("strikethroughSequenceTemporary"),f(h))}function f(h){let y=xn(u);if(h===126)return d>1?l(h):(s.consume(h),d++,f);if(d<2&&!n)return l(h);let b=s.exit("strikethroughSequenceTemporary"),m=xn(h);return b._open=!m||m===2&&!!y,b._close=!y||y===2&&!!m,a(h)}}}var yl=class{constructor(){this.map=[]}add(t,n,r){zE(this,t,n,r)}consume(t){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let n=this.map.length,r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(let o of i)t.push(o);i=r.pop()}this.map.length=0}};function zE(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function tv(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Tp(){return{flow:{null:{name:"table",tokenize:OE,resolveAll:BE}}}}function OE(e,t,n){let r=this,i=0,o=0,s;return a;function a(k){let ee=r.events.length-1;for(;ee>-1;){let V=r.events[ee][1].type;if(V==="lineEnding"||V==="linePrefix")ee--;else break}let K=ee>-1?r.events[ee][1].type:null,Q=K==="tableHead"||K==="tableRow"?A:l;return Q===A&&r.parser.lazy[r.now().line]?n(k):Q(k)}function l(k){return e.enter("tableHead"),e.enter("tableRow"),u(k)}function u(k){return k===124||(s=!0,o+=1),c(k)}function c(k){return k===null?n(k):O(k)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),f):n(k):H(k)?U(e,c,"whitespace")(k):(o+=1,s&&(s=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),d(k)))}function d(k){return k===null||k===124||J(k)?(e.exit("data"),c(k)):(e.consume(k),k===92?p:d)}function p(k){return k===92||k===124?(e.consume(k),d):d(k)}function f(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(k):(e.enter("tableDelimiterRow"),s=!1,H(k)?U(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):h(k))}function h(k){return k===45||k===58?b(k):k===124?(s=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),y):I(k)}function y(k){return H(k)?U(e,b,"whitespace")(k):b(k)}function b(k){return k===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),m):k===45?(o+=1,m(k)):k===null||O(k)?C(k):I(k)}function m(k){return k===45?(e.enter("tableDelimiterFiller"),g(k)):I(k)}function g(k){return k===45?(e.consume(k),g):k===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(k))}function w(k){return H(k)?U(e,C,"whitespace")(k):C(k)}function C(k){return k===124?h(k):k===null||O(k)?!s||i!==o?I(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):I(k)}function I(k){return n(k)}function A(k){return e.enter("tableRow"),M(k)}function M(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),M):k===null||O(k)?(e.exit("tableRow"),t(k)):H(k)?U(e,M,"whitespace")(k):(e.enter("data"),T(k))}function T(k){return k===null||k===124||J(k)?(e.exit("data"),M(k)):(e.consume(k),k===92?D:T)}function D(k){return k===92||k===124?(e.consume(k),T):T(k)}}function BE(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],s=[0,0,0,0],a=!1,l=0,u,c,d,p=new yl;for(;++n<e.length;){let f=e[n],h=f[1];f[0]==="enter"?h.type==="tableHead"?(a=!1,l!==0&&(nv(p,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",u,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(r=!0,d=void 0,o=[0,0,0,0],s=[0,n+1,0,0],a&&(a=!1,c={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",c,t]])),i=h.type==="tableDelimiterRow"?2:c?3:1):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],d=xl(p,t,o,i,void 0,d),o=[0,0,0,0]),s[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(s[0]=s[1],d=xl(p,t,o,i,void 0,d)),o=s,s=[o[1],n,0,0])):h.type==="tableHead"?(a=!0,l=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(l=n,o[1]!==0?(s[0]=s[1],d=xl(p,t,o,i,n,d)):s[1]!==0&&(d=xl(p,t,s,i,n,d)),i=0):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&nv(p,t,l,u,c),p.consume(t.events),n=-1;++n<t.events.length;){let f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=tv(t.events,n))}return e}function xl(e,t,n,r,i,o){let s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(o.end=Object.assign({},Ni(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));let l=Ni(t.events,n[1]);if(o={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){let u=Ni(t.events,n[2]),c=Ni(t.events,n[3]),d={type:a,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){let p=t.events[n[2]],f=t.events[n[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){let h=n[2]+1,y=n[3]-n[2]-1;e.add(h,y,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},Ni(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function nv(e,t,n,r,i){let o=[],s=Ni(t.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function Ni(e,t){let n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}var FE={name:"tasklistCheck",tokenize:QE};function Np(){return{text:{91:FE}}}function QE(e,t,n){let r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return J(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(l)}function a(l){return O(l)?t(l):H(l)?e.check({tokenize:UE},t,n)(l):n(l)}}function UE(e,t,n){return U(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function rv(e){return Xa([bp(),Ep(),Ip(e),Tp(),Np()])}var HE={};function vl(e){let t=this,n=e||HE,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(rv(n)),o.push(kp()),s.push(Ap(n))}var kn=E(P(),1),jE={a:({children:e,href:t})=>(0,kn.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"ss-w-md-link",children:e}),table:({children:e})=>(0,kn.jsx)("div",{className:"ss-w-table-wrap",children:(0,kn.jsx)("table",{className:"ss-w-md-table",children:e})}),ul:({children:e})=>(0,kn.jsx)("ul",{className:"ss-w-md-ul",children:e}),ol:({children:e})=>(0,kn.jsx)("ol",{className:"ss-w-md-ol",children:e}),code:({children:e})=>(0,kn.jsx)("code",{className:"ss-w-md-code",children:e})};function iv({text:e}){return(0,kn.jsx)("div",{className:"ss-w-md",children:(0,kn.jsx)(Xd,{remarkPlugins:[vl],components:jE,children:e})})}var Lp=E(xe(),1),G=E(P(),1),ov=3,VE=/^(\d+)-(\d+)-(\d+)$/;function WE(e){return e.split(/\s+/).slice(0,2).map(t=>{var n;return(n=t[0])!=null?n:""}).join("").toUpperCase()}function _E(e){return e.replace(/\d{4}/g,t=>t.slice(2))}function av({image:e,label:t}){return(0,G.jsx)("span",{className:"ss-w-ecard-crest",style:{backgroundImage:`url(${e})`},...t?{role:"img",title:t,"aria-label":t}:{"aria-hidden":"true"}})}function XE({w:e,d:t,l:n}){return e+t+n===0?null:(0,G.jsxs)("span",{className:"ss-w-form","aria-hidden":"true",children:[e>0?(0,G.jsx)("span",{className:"ss-w-form-w",style:{flexGrow:e}}):null,t>0?(0,G.jsx)("span",{className:"ss-w-form-d",style:{flexGrow:t}}):null,n>0?(0,G.jsx)("span",{className:"ss-w-form-l",style:{flexGrow:n}}):null]})}function qE({s:e}){let t=VE.exec(e.value);return t?(0,G.jsxs)("div",{className:"ss-w-ecard-cell",children:[(0,G.jsx)("span",{className:"ss-w-ecard-cval",children:(0,G.jsx)(XE,{w:Number(t[1]),d:Number(t[2]),l:Number(t[3])})}),(0,G.jsx)("span",{className:"ss-w-ecard-clabel",children:e.value})]}):(0,G.jsxs)("div",{className:"ss-w-ecard-cell",children:[(0,G.jsx)("span",{className:"ss-w-ecard-cval",children:e.value}),(0,G.jsx)("span",{className:"ss-w-ecard-clabel",children:e.label})]})}function JE({stats:e}){if(e.length===0)return null;let t=Math.min(e.length,4);return(0,G.jsx)("div",{className:"ss-w-ecard-strip",style:{gridTemplateColumns:`repeat(${t}, 1fr)`},children:e.map(n=>(0,G.jsx)(qE,{s:n},n.label+n.value))})}function sv({c:e,showScopeCrest:t}){let n=e.scopes.length===1?e.scopes[0]:null;return(0,G.jsxs)("div",{className:"ss-w-ecard-hd",children:[(0,G.jsx)("span",{className:e.kind==="team"?"ss-w-thumb ss-w-team":"ss-w-thumb",style:e.image?{backgroundImage:`url(${e.image})`}:void 0,children:e.image?"":WE(e.name)}),(0,G.jsxs)("span",{className:"ss-w-ecard-idtext",children:[(0,G.jsx)("span",{className:"ss-w-nm",children:e.name}),e.sub?(0,G.jsx)("span",{className:"ss-w-sub",children:e.sub}):null]}),(0,G.jsxs)("span",{className:"ss-w-ecard-meta",children:[t&&(n!=null&&n.image)?(0,G.jsx)(av,{image:n.image,label:n.label}):null,e.season?(0,G.jsx)("span",{className:"ss-w-ecard-season",children:_E(e.season)}):null]})]})}function KE({scopes:e,active:t,onSelect:n}){return(0,G.jsx)("div",{className:"ss-w-ecard-scopes",role:"tablist",children:e.map((r,i)=>{var o;return(0,G.jsx)("button",{type:"button",role:"tab",className:"ss-w-ecard-scope","aria-selected":i===t,"aria-label":r.label,title:r.label,onClick:()=>n(i),children:r.image?(0,G.jsx)(av,{image:r.image}):r.label},String((o=r.competitionId)!=null?o:"all"))})})}function YE({c:e}){let[t,n]=(0,Lp.useState)(0);if(!(e.scopes.length>0))return(0,G.jsx)("div",{className:"ss-w-ecard ss-w-ecard-bare","data-kind":e.kind,children:(0,G.jsx)(sv,{c:e,showScopeCrest:!1})});let i=e.scopes.length>1,o=e.scopes[i&&e.scopes[t]?t:0];return(0,G.jsxs)("div",{className:"ss-w-ecard","data-kind":e.kind,children:[(0,G.jsx)(sv,{c:e,showScopeCrest:!i}),i?(0,G.jsx)(KE,{scopes:e.scopes,active:t,onSelect:n}):null,(0,G.jsx)(JE,{stats:o.stats})]})}function lv({cards:e,disabled:t,showLessLabel:n="Show less",showMoreLabel:r=i=>`Show ${i} more`}){let[i,o]=(0,Lp.useState)(!1);if(e.length===0)return null;let s=i?e:e.slice(0,ov),a=e.length-ov;return(0,G.jsxs)("div",{className:"ss-w-cards",children:[s.map(l=>(0,G.jsx)(YE,{c:l},l.id)),a>0?(0,G.jsx)("button",{type:"button",className:"ss-w-cards-more",disabled:t,onClick:()=>o(l=>!l),children:i?n:r(a)}):null]})}var Rp=E(xe(),1);var Li=E(xe(),1);function uv(e){return e?e.status==="price_changed"?e.accepted:e.status==="added":!0}function cv(e){return e?e.status==="price_changed"?e.accepted:e.status==="added"||e.status==="duplicate":!0}function dv(e,t,n){var r,i;if(!e)return{kind:"success",text:n.slipAdded(void 0)};switch(e.status){case"added":return{kind:"success",text:n.slipAdded((r=e.slip)==null?void 0:r.selectionCount)};case"duplicate":return{kind:"success",text:n.slipDuplicate};case"price_changed":return e.accepted?{kind:"success",text:n.slipPriceChanged(t,e.newOddsDecimal.toFixed(2))}:{kind:"error",text:n.slipPriceNotAccepted(t,e.newOddsDecimal.toFixed(2))};case"rejected":return e.reason==="login_required"?{kind:"error",text:n.slipLoginRequired}:e.reason==="suspended"?{kind:"error",text:n.slipSuspended}:{kind:"error",text:(i=e.message)!=null?i:n.slipFailed}}}var pv=E(xe(),1),mv=E(P(),1),GE=4e3;function fv({toast:e,onDismiss:t}){return(0,pv.useEffect)(()=>{if(!e)return;let n=setTimeout(t,GE);return()=>clearTimeout(n)},[e,t]),e?(0,mv.jsx)("div",{className:`ss-w-toast ss-w-toast-${e.kind}`,role:"status","aria-live":"polite",children:e.text}):null}var Pi=E(P(),1);function $E(e){return Promise.race([e,new Promise((t,n)=>setTimeout(()=>n(new Error("add-to-slip timed out")),1e4))])}function Pp({selection:e,shownOdds:t,marketName:n,slip:r,ui:i}){let[o,s]=(0,Li.useState)(!1),[a,l]=(0,Li.useState)(!1),[u,c]=(0,Li.useState)(null),d=(0,Li.useCallback)(()=>c(null),[]),p=r.onAddToSlip;return!i||!p||!e?null:(0,Pi.jsxs)("div",{className:"ss-w-slip",children:[(0,Pi.jsx)("button",{type:"button",className:"ss-w-slip-btn",disabled:o||a,onClick:async()=>{s(!0);try{let h=await $E(Promise.resolve(p(e)));if(h!=null&&!qc(h))throw new Error("malformed add-to-slip result");let y=h!=null?h:void 0;if(c(dv(y,t||e.oddsDecimal.toFixed(2),i)),l(cv(y)),uv(y)&&r.onMarketClicked)try{r.onMarketClicked(n)}catch{}}catch{c({kind:"error",text:i.slipFailed})}finally{s(!1)}},children:a?i.inSlip:i.addToSlip}),(0,Pi.jsx)(fv,{toast:u,onDismiss:d})]})}function hv({it:e,slip:t,ui:n}){var i;let r=e.addToSlipEnabled?Kg(e,t.conversationId):null;return(0,Pi.jsx)(Pp,{selection:r,shownOdds:(i=e.odds)!=null?i:"",marketName:e.market,slip:t,ui:n})}var is=E(P(),1);function Mi({previous:e,current:t,direction:n,ui:r}){var s,a,l,u;if(e===void 0||n===void 0)return null;let i=n==="shortened"?(s=r==null?void 0:r.oddsShortened)!=null?s:"shortened":(a=r==null?void 0:r.oddsDrifted)!=null?a:"drifted",o=(u=(l=r==null?void 0:r.oddsMoved)==null?void 0:l.call(r,e,t,i))!=null?u:`was ${e}, now ${t}, ${i}`;return(0,is.jsxs)("span",{className:"ss-w-move",role:"img","aria-label":o,children:[(0,is.jsx)("span",{className:"ss-w-move-prev","aria-hidden":"true",children:e}),(0,is.jsx)("span",{className:"ss-w-move-arrow","aria-hidden":"true",children:n==="shortened"?"\u25BC":"\u25B2"})]})}var gv=E(xe(),1),Mp=E(P(),1);function eI(e){return(e!=null?e:"").trim().slice(0,1).toUpperCase()||"?"}function at({url:e,name:t,kind:n}){let r=n==="comp"?"ss-w-bi-comp-logo":"ss-w-bi-crest",[i,o]=(0,gv.useState)(!1);return e&&!i?(0,Mp.jsx)("img",{className:r,src:e,alt:"","aria-hidden":"true",onError:()=>o(!0)}):(0,Mp.jsx)("span",{className:`${r} ss-w-bi-crest-mono`,"aria-hidden":"true",children:eI(t)})}var F=E(P(),1);function wv({stats:e}){return(0,F.jsx)("div",{className:"ss-w-bi-rows",children:e.map(t=>(0,F.jsxs)("div",{className:"ss-w-bi-row",children:[(0,F.jsx)("span",{className:"ss-w-bi-row-lbl",children:t.label}),(0,F.jsx)("span",{className:"ss-w-bi-row-num",children:t.value})]},`${t.label}:${t.value}`))})}function tI({scopes:e}){var i,o;let[t,n]=(0,Rp.useState)(0),r=(o=(i=e[t])!=null?i:e[0])!=null?o:{key:"",label:"",stats:[]};return(0,F.jsxs)("div",{className:"ss-w-bi-scoped",children:[(0,F.jsx)("div",{className:"ss-w-bi-scopes",role:"group",children:e.map((s,a)=>(0,F.jsx)("button",{type:"button",className:"ss-w-bi-chip","aria-pressed":a===t,onClick:()=>n(a),children:s.label},s.key))}),(0,F.jsx)(wv,{stats:r.stats},r.key)]})}function nI(e){return!!e.scopes&&e.scopes.length>=2||e.stats.length>0}function rI({it:e,ui:t}){var l,u,c,d;let[n,r]=(0,Rp.useState)(!1),i=!!e.scopes&&e.scopes.length>=2,o=nI(e),s=!!e.text;if(!s&&!o)return null;let a=o||((u=(l=e.text)==null?void 0:l.length)!=null?u:0)>90;return(0,F.jsxs)("div",{className:"ss-w-bi-reason",children:[(0,F.jsx)("span",{className:"ss-w-bi-chart","aria-hidden":"true"}),(0,F.jsxs)("div",{className:"ss-w-bi-reason-body",children:[s?(0,F.jsx)("p",{className:`ss-w-bi-text${n?"":" ss-w-bi-text-clamp"}`,children:e.text}):null,n&&o?i?(0,F.jsx)(tI,{scopes:e.scopes}):(0,F.jsx)(wv,{stats:e.stats}):null]}),a?(0,F.jsx)("button",{type:"button",className:"ss-w-bi-expand","aria-expanded":n,"aria-label":n?(c=t==null?void 0:t.hideStats)!=null?c:"Hide stats":(d=t==null?void 0:t.showStats)!=null?d:"Show stats",onClick:()=>r(p=>!p),children:(0,F.jsx)("span",{className:`ss-w-bi-arrow${n?" ss-w-bi-arrow-open":""}`,"aria-hidden":"true"})}):null]})}function iI({it:e}){return e.homeTeamName&&e.awayTeamName?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(at,{kind:"team",url:e.homeCrest,name:e.homeTeamName}),(0,F.jsx)("span",{className:"ss-w-bi-team",children:e.homeTeamName}),(0,F.jsx)("span",{className:"ss-w-bi-vs","aria-hidden":"true",children:"vs"}),(0,F.jsx)("span",{className:"ss-w-bi-team",children:e.awayTeamName}),(0,F.jsx)(at,{kind:"team",url:e.awayCrest,name:e.awayTeamName})]}):e.fixture?(0,F.jsx)("span",{className:"ss-w-bi-fixture-txt",children:e.fixture}):e.competition?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(at,{kind:"comp",url:e.competitionCrest,name:e.competition}),(0,F.jsx)("span",{className:"ss-w-bi-comp",children:e.competition})]}):null}function oI({it:e,ui:t,slip:n}){var u,c;let r=e.isLive||e.phase==="live",i=e.kickoffUtc&&(t!=null&&t.bettingKickoff)?t.bettingKickoff(e.kickoffUtc):void 0,s=!!e.homeTeamName&&!!e.awayTeamName||!!e.fixture,a=s&&!!e.competition,l=s||!!e.competition||r||!!i;return(0,F.jsxs)("div",{className:"ss-w-binsight",children:[l?(0,F.jsxs)("div",{className:"ss-w-bi-header",children:[(0,F.jsx)("span",{className:"ss-w-bi-header-left",children:(0,F.jsx)(iI,{it:e})}),(0,F.jsxs)("span",{className:"ss-w-bi-header-right",children:[r?(0,F.jsxs)("span",{className:"ss-w-bi-live",children:[(0,F.jsx)("span",{className:"ss-w-bi-live-dot","aria-hidden":"true"}),(u=t==null?void 0:t.liveLabel)!=null?u:"Live"]}):null,a?(0,F.jsxs)("span",{className:"ss-w-bi-comp-meta",children:[(0,F.jsx)(at,{kind:"comp",url:e.competitionCrest,name:e.competition}),(0,F.jsx)("span",{className:"ss-w-bi-comp",children:e.competition})]}):null,i?(0,F.jsxs)("span",{className:"ss-w-bi-kick",children:[i.dayLabel," ",i.time]}):null]})]}):null,(0,F.jsxs)("div",{className:"ss-w-bi-action-row",children:[(0,F.jsxs)("span",{className:"ss-w-bi-pick",children:[(0,F.jsx)("span",{className:"ss-w-bi-market",children:e.market}),e.selection?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{className:"ss-w-bi-pick-dot","aria-hidden":"true",children:"\xB7"}),(0,F.jsx)("span",{className:"ss-w-bi-sel",children:e.selection})]}):null]}),e.odds?(0,F.jsxs)("span",{className:"ss-w-bi-odds",children:[(0,F.jsx)("b",{children:e.odds}),(0,F.jsx)(Mi,{previous:e.previousOdds,current:e.odds,direction:e.movementDirection,ui:t}),e.bookmaker?(0,F.jsx)("span",{className:"ss-w-bi-book",children:e.bookmaker}):null]}):null,(0,F.jsx)(hv,{it:e,slip:n,ui:t})]}),e.isMarketFloor?(0,F.jsx)("span",{className:"ss-w-bi-floor",children:(c=t==null?void 0:t.marketFloorLabel)!=null?c:"Market price \xB7 not a value pick"}):null,(0,F.jsx)(rI,{it:e,ui:t}),e.disclaimer?(0,F.jsx)("p",{className:"ss-w-bi-disc",children:e.disclaimer}):null]})}function yv({insights:e,ui:t,slip:n}){return!e||e.length===0?null:(0,F.jsx)("div",{className:"ss-w-binsights",children:e.map(r=>(0,F.jsx)(oI,{it:r,ui:t,slip:n},r.id))})}var vv=E(xe(),1);var q=E(P(),1);function xv({vm:e,row:t,ui:n,slip:r}){let i=e.addToSlipEnabled?Zg(e,t,r.conversationId):null;return(0,q.jsxs)("div",{className:"ss-w-mo-row",children:[(0,q.jsx)("span",{className:"ss-w-mo-sel",children:t.selection}),(0,q.jsx)(Mi,{previous:t.previousOdds,current:t.odds,direction:t.movementDirection,ui:n}),(0,q.jsx)("span",{className:"ss-w-mo-price",children:t.odds}),(0,q.jsx)(Pp,{selection:i,shownOdds:t.odds,marketName:e.market,slip:r,ui:n})]})}function sI({vm:e,ui:t,slip:n}){var l,u,c;let[r,i]=(0,vv.useState)(!1),o=e.kickoffUtc&&(t!=null&&t.bettingKickoff)?t.bettingKickoff(e.kickoffUtc):void 0,s=!!e.homeTeamName&&!!e.awayTeamName,a=!!e.competition||e.isLive||!!o;return(0,q.jsxs)("div",{className:"ss-w-mocard",children:[a?(0,q.jsxs)("div",{className:"ss-w-bi-header",children:[(0,q.jsx)("span",{className:"ss-w-bi-header-left",children:e.competition?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(at,{kind:"comp",url:e.competitionCrest,name:e.competition}),(0,q.jsx)("span",{className:"ss-w-bi-comp",children:e.competition})]}):null}),(0,q.jsxs)("span",{className:"ss-w-bi-header-right",children:[e.isLive?(0,q.jsxs)("span",{className:"ss-w-bi-live",children:[(0,q.jsx)("span",{className:"ss-w-bi-live-dot","aria-hidden":"true"}),(l=t==null?void 0:t.liveLabel)!=null?l:"Live"]}):null,o?(0,q.jsxs)("span",{className:"ss-w-bi-kick",children:[o.dayLabel," ",o.time]}):null]})]}):null,s||e.fixture||e.market?(0,q.jsxs)("div",{className:"ss-w-mo-sub",children:[s?(0,q.jsxs)("div",{className:"ss-w-bi-fixture",children:[(0,q.jsx)(at,{kind:"team",url:e.homeCrest,name:e.homeTeamName}),(0,q.jsx)("span",{className:"ss-w-bi-team",children:e.homeTeamName}),(0,q.jsx)("span",{className:"ss-w-bi-vs","aria-hidden":"true",children:"vs"}),(0,q.jsx)("span",{className:"ss-w-bi-team",children:e.awayTeamName}),(0,q.jsx)(at,{kind:"team",url:e.awayCrest,name:e.awayTeamName})]}):e.fixture?(0,q.jsx)("span",{className:"ss-w-mo-teams",children:e.fixture}):null,e.market?(0,q.jsx)("span",{className:"ss-w-mo-market",children:e.market}):null]}):null,(0,q.jsxs)("div",{className:"ss-w-mo-rows",children:[e.mainRows.map(d=>(0,q.jsx)(xv,{vm:e,row:d,ui:t,slip:n},d.key)),r?e.moreRows.map(d=>(0,q.jsx)(xv,{vm:e,row:d,ui:t,slip:n},d.key)):null]}),e.moreRows.length>0?(0,q.jsxs)("button",{type:"button",className:"ss-w-mo-more","aria-expanded":r,onClick:()=>i(d=>!d),children:[(0,q.jsx)("span",{children:r?(u=t==null?void 0:t.hideLines)!=null?u:"Hide lines":`${(c=t==null?void 0:t.moreLines)!=null?c:"More lines"} (${e.moreRows.length})`}),(0,q.jsx)("span",{className:`ss-w-mo-more-chev${r?" ss-w-mo-more-chev-up":""}`,"aria-hidden":"true"})]}):null,e.bookmaker?(0,q.jsx)("div",{className:"ss-w-mo-foot",children:(0,q.jsx)("span",{children:e.bookmaker})}):null,e.disclaimer?(0,q.jsx)("p",{className:"ss-w-bi-disc",children:e.disclaimer}):null]})}function kv({cards:e,ui:t,slip:n}){return!e||e.length===0?null:(0,q.jsx)("div",{className:"ss-w-mocards",children:e.map(r=>(0,q.jsx)(sI,{vm:r,ui:t,slip:n},r.id))})}var Z=E(P(),1);function lI(e,t){var n,r;return e.direction==="shortened"?(n=t==null?void 0:t.oddsShortened)!=null?n:"shortened":e.direction==="drifted"?(r=t==null?void 0:t.oddsDrifted)!=null?r:"drifted":""}function uI({vm:e,ui:t}){var o,s,a,l,u,c;let n=lI(e,t),r=n?`, ${n}`:"",i=t!=null&&t.chartAria?t.chartAria(e.opening,e.current,n,e.windowHours):`Price movement over the last ${e.windowHours} hours: opened at ${e.opening}, currently ${e.current}${r}.`;return(0,Z.jsxs)("div",{className:"ss-w-omcard",children:[(0,Z.jsxs)("div",{className:"ss-w-om-head",children:[(0,Z.jsx)("span",{className:"ss-w-om-market",children:e.market}),(0,Z.jsx)("span",{className:"ss-w-om-tag",children:(o=t==null?void 0:t.priceMovement)!=null?o:"Price movement"})]}),e.fixture?(0,Z.jsxs)("div",{className:"ss-w-om-fixture",children:[(0,Z.jsx)("span",{children:e.fixture}),e.competition?(0,Z.jsx)("span",{className:"ss-w-om-comp",children:e.competition}):null]}):null,(0,Z.jsx)("div",{className:"ss-w-om-sel",children:e.selection}),(0,Z.jsx)(Mi,{previous:e.opening,current:e.current,direction:e.direction,ui:t}),e.geometry===null?(0,Z.jsx)("div",{className:"ss-w-om-empty",children:e.observationCount===1?(s=t==null?void 0:t.singlePricePoint)!=null?s:"Only one price recorded so far for this selection.":(a=t==null?void 0:t.notEnoughHistory)!=null?a:"No price history recorded yet for this selection."}):(0,Z.jsxs)("svg",{className:"ss-w-om-chart",viewBox:e.geometry.viewBox,width:"100%",role:"img","aria-label":i,children:[e.geometry.gridlines.map(d=>(0,Z.jsxs)("g",{children:[(0,Z.jsx)("line",{className:"ss-w-om-grid",x1:40,y1:d.y,x2:312,y2:d.y}),(0,Z.jsx)("text",{className:"ss-w-om-ylab",x:34,y:d.y+3,textAnchor:"end",children:d.price.toFixed(2)})]},d.price)),(0,Z.jsx)("path",{className:"ss-w-om-line",d:e.geometry.path,fill:"none"}),e.geometry.markers.map((d,p)=>(0,Z.jsx)("circle",{className:"ss-w-om-dot",cx:d.x,cy:d.y,r:2.5},p)),t!=null&&t.chartTimeLabel?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)("text",{className:"ss-w-om-xlab",x:40,y:132,textAnchor:"start",children:t.chartTimeLabel(e.geometry.startMs)}),(0,Z.jsx)("text",{className:"ss-w-om-xlab",x:312,y:132,textAnchor:"end",children:t.chartTimeLabel(e.geometry.endMs)})]}):(0,Z.jsx)("text",{className:"ss-w-om-xlab",x:40,y:132,children:t!=null&&t.movementWindow?t.movementWindow(e.windowHours):`Last ${e.windowHours}h`})]}),(0,Z.jsxs)("div",{className:"ss-w-om-foot",children:[(0,Z.jsxs)("span",{children:[(l=t==null?void 0:t.openingLabel)!=null?l:"Opening"," ",(0,Z.jsx)("b",{children:e.opening})]}),(0,Z.jsxs)("span",{children:[(u=t==null?void 0:t.currentLabel)!=null?u:"Current"," ",(0,Z.jsx)("b",{children:e.current})]})]}),e.bookmaker?(0,Z.jsx)("div",{className:"ss-w-om-foot",children:(0,Z.jsx)("span",{children:e.bookmaker})}):null,e.excludedCount>0?(0,Z.jsx)("div",{className:"ss-w-om-excl",children:t!=null&&t.excludedSuspended?t.excludedSuspended(e.excludedCount):`${e.excludedCount} suspended price(s) excluded from this chart.`}):null,e.isSuspended?(0,Z.jsx)("div",{className:"ss-w-om-susp",children:(c=t==null?void 0:t.selectionSuspended)!=null?c:"This selection is not currently available to bet."}):null,e.disclaimer?(0,Z.jsx)("div",{className:"ss-w-om-disc",children:e.disclaimer}):null]})}function Cv({cards:e,ui:t}){return!e||e.length===0?null:(0,Z.jsx)("div",{className:"ss-w-omcards",children:e.map(n=>(0,Z.jsx)(uI,{vm:n,ui:t},n.id))})}var An=E(P(),1);function kl({actions:e,loading:t,disabled:n,onAct:r}){return e.length===0&&!t?null:(0,An.jsxs)("div",{className:"ss-w-actions",children:[e.map((i,o)=>(0,An.jsx)("button",{type:"button",className:"ss-w-abtn",disabled:n,onClick:()=>r(i),children:i.label},`${i.label}-${o}`)),e.length===0&&t?(0,An.jsxs)(An.Fragment,{children:[(0,An.jsx)("span",{className:"ss-w-abtn-shimmer"}),(0,An.jsx)("span",{className:"ss-w-abtn-shimmer"})]}):null]})}var lt=E(P(),1),cI=3;function bv({tile:e,onTap:t}){var o;let n=e.span==="full"?"ss-w-dash-tile--full":"ss-w-dash-tile--half",r=((o=e.imageUrls)!=null?o:[]).slice(0,cI),i=!!e.badgeText||r.length>0;return(0,lt.jsxs)("button",{type:"button",className:`ss-w-dash-tile ${n}`,onClick:t,children:[(0,lt.jsx)("span",{className:"ss-w-dash-tile-icon",children:(0,lt.jsx)(fw,{name:e.icon})}),(0,lt.jsxs)("span",{className:"ss-w-dash-tile-body",children:[(0,lt.jsx)("span",{className:"ss-w-dash-tile-title",children:e.title}),e.subtitle?(0,lt.jsx)("span",{className:"ss-w-dash-tile-subtitle",children:e.subtitle}):null,i?(0,lt.jsxs)("span",{className:"ss-w-dash-tile-meta",children:[e.badgeText?(0,lt.jsx)("span",{className:"ss-w-dash-tile-badge",children:e.badgeText}):null,r.length>0?(0,lt.jsx)("span",{className:"ss-w-dash-tile-crests",children:r.map((s,a)=>(0,lt.jsx)("span",{className:"ss-w-dash-tile-crest",style:{backgroundImage:`url(${s})`},"aria-hidden":"true"},`${s}-${a}`))}):null]}):null]}),(0,lt.jsx)("span",{className:"ss-w-dash-tile-chevron",children:(0,lt.jsx)(Fa,{})})]})}var Cn=E(P(),1),Dp={market:"ss-w-dash--market",goal:"ss-w-dash--goal",discovery:"ss-w-dash--discovery"};function dI(e){return Object.prototype.hasOwnProperty.call(Dp,e)?Dp[e]:Dp.goal}function Sv({dashboard:e,onTap:t}){return(0,Cn.jsxs)("div",{className:`ss-w-dash ${dI(e.layout)}`,children:[(0,Cn.jsxs)("div",{className:"ss-w-dash-head",children:[(0,Cn.jsx)("span",{className:"ss-w-dash-title",children:e.title}),e.subtitle?(0,Cn.jsx)("span",{className:"ss-w-dash-subtitle",children:e.subtitle}):null]}),(0,Cn.jsx)("div",{className:"ss-w-dash-grid",children:e.tiles.map((n,r)=>(0,Cn.jsx)(bv,{tile:n,onTap:()=>t(n,r)},`${n.title}-${r}`))}),e.footerTip?(0,Cn.jsx)("span",{className:"ss-w-dash-foot",children:e.footerTip}):null]})}var j=E(P(),1);function pI(e){let t=e.toUpperCase();return t==="W"?"ss-w-fandash-form-pill--win":t==="L"?"ss-w-fandash-form-pill--loss":"ss-w-fandash-form-pill--draw"}function fI({form:e}){return(0,j.jsx)("span",{className:"ss-w-fandash-form",children:e.map((t,n)=>(0,j.jsx)("span",{className:`ss-w-fandash-form-pill ${pI(t)}`,children:t},`${t}-${n}`))})}function Ev({name:e,form:t}){return(0,j.jsxs)("div",{className:"ss-w-fandash-formrow",children:[(0,j.jsx)("span",{className:"ss-w-fandash-formrow-name",children:e}),(0,j.jsx)(fI,{form:t})]})}function Iv({card:e,onTap:t}){var i,o;let{data:n}=e,r=n.h2H;return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-fixture",onClick:()=>t(e),children:[(0,j.jsxs)("span",{className:"ss-w-fandash-eyebrow",children:[e.title," \xB7 ",n.competition]}),(0,j.jsxs)("div",{className:"ss-w-fandash-fixture-teams",children:[(0,j.jsxs)("span",{className:"ss-w-fandash-fixture-team",children:[(0,j.jsx)(at,{url:(i=n.homeCrestUrl)!=null?i:void 0,name:n.homeName,kind:"team"}),(0,j.jsx)("span",{className:"ss-w-fandash-fixture-name",children:n.homeName})]}),(0,j.jsx)("span",{className:"ss-w-fandash-fixture-vs",children:"v"}),(0,j.jsxs)("span",{className:"ss-w-fandash-fixture-team ss-w-fandash-fixture-team--away",children:[(0,j.jsx)("span",{className:"ss-w-fandash-fixture-name",children:n.awayName}),(0,j.jsx)(at,{url:(o=n.awayCrestUrl)!=null?o:void 0,name:n.awayName,kind:"team"})]})]}),(0,j.jsxs)("div",{className:"ss-w-fandash-fixture-meta",children:[(0,j.jsxs)("div",{className:"ss-w-fandash-fixture-metarow",children:[(0,j.jsx)("span",{className:"ss-w-fandash-fixture-metakey",children:n.dateLabel}),(0,j.jsx)("span",{className:"ss-w-fandash-fixture-metaval",children:n.kickoffLabel})]}),n.venue?(0,j.jsxs)("div",{className:"ss-w-fandash-fixture-metarow",children:[(0,j.jsx)("span",{className:"ss-w-fandash-fixture-metakey",children:n.venueLabel}),(0,j.jsx)("span",{className:"ss-w-fandash-fixture-metaval",children:n.venue})]}):null]}),(0,j.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]}),(0,j.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-lastfive",children:[(0,j.jsx)("span",{className:"ss-w-fandash-eyebrow",children:n.formLabel}),(0,j.jsxs)("div",{className:"ss-w-fandash-fixture-form",children:[(0,j.jsx)(Ev,{name:n.homeName,form:n.homeForm}),(0,j.jsx)(Ev,{name:n.awayName,form:n.awayForm})]})]}),r||n.fact?(0,j.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-h2h",children:[r?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("span",{className:"ss-w-fandash-eyebrow",children:r.label}),(0,j.jsxs)("div",{className:"ss-w-fandash-split",children:[(0,j.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,j.jsx)("span",{className:"ss-w-fandash-split-value",children:r.wins}),(0,j.jsx)("span",{className:"ss-w-fandash-split-label",children:r.homeWinsLabel})]}),(0,j.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,j.jsx)("span",{className:"ss-w-fandash-split-value",children:r.draws}),(0,j.jsx)("span",{className:"ss-w-fandash-split-label",children:r.drawsLabel})]}),(0,j.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,j.jsx)("span",{className:"ss-w-fandash-split-value",children:r.losses}),(0,j.jsx)("span",{className:"ss-w-fandash-split-label",children:r.awayWinsLabel})]})]})]}):null,n.fact?(0,j.jsx)("span",{className:"ss-w-fandash-fact",children:n.fact}):null]}):null]})}var Qr=E(xe(),1),Qt=E(P(),1),mI=864e5;function hI(e,t,n){let r=Math.floor((e*1e3-t)/1e3);if(r<=0)return null;let i=Math.floor(r/86400),o=Math.floor(r%86400/3600),s=Math.floor(r%3600/60),a=r%60,l=c=>String(c).padStart(2,"0");if(i>0)return[{value:l(i),unit:"d"},{value:l(o),unit:"h"}];let u=[{value:l(o),unit:"h"},{value:l(s),unit:"m"}];return n&&u.push({value:l(a),unit:"s"}),u}function Tv({card:e}){var l;let{data:t}=e,n={d:t.daysUnit,h:t.hoursUnit,m:t.minutesUnit,s:t.secondsUnit},[r,i]=(0,Qr.useState)(()=>Date.now()),[o]=(0,Qr.useState)(()=>typeof window!="undefined"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches),s=t.kickoffUnix*1e3-r<mI;(0,Qr.useEffect)(()=>{if(o)return;let u=window.setInterval(()=>i(Date.now()),s?1e3:6e4);return()=>window.clearInterval(u)},[o,s]);let a=hI(t.kickoffUnix,r,s&&!o);return(0,Qt.jsx)("div",{className:"ss-w-fandash-card ss-w-fandash-countdown",children:(0,Qt.jsxs)("div",{className:"ss-w-fandash-countdown-top",children:[(0,Qt.jsx)("span",{className:"ss-w-fandash-eyebrow",children:(l=e.title)!=null?l:"Kick-off in"}),a?(0,Qt.jsx)("span",{className:"ss-w-fandash-countdown-clock",children:a.map((u,c)=>(0,Qt.jsxs)(Qr.Fragment,{children:[c>0?(0,Qt.jsx)("span",{className:"ss-w-fandash-countdown-colon",children:":"}):null,(0,Qt.jsxs)("span",{className:"ss-w-fandash-countdown-seg",children:[(0,Qt.jsx)("span",{className:"ss-w-fandash-countdown-value",children:u.value}),(0,Qt.jsx)("span",{className:"ss-w-fandash-countdown-unit",children:n[u.unit]})]})]},u.unit))}):null]})})}var ge=E(P(),1);function Nv({name:e,crestUrl:t}){return(0,ge.jsxs)("span",{className:"ss-w-fandash-injuries-col-head",children:[(0,ge.jsx)(at,{url:t!=null?t:void 0,name:e,kind:"team"}),(0,ge.jsx)("span",{className:"ss-w-fandash-injuries-col-head-name",children:e})]})}function Lv({rows:e,emptyLabel:t}){return e.length===0?(0,ge.jsx)("span",{className:"ss-w-fandash-injuries-empty",children:t}):(0,ge.jsx)("ul",{className:"ss-w-fandash-injury-list",children:e.map((n,r)=>(0,ge.jsxs)("li",{className:"ss-w-fandash-injury-row",children:[(0,ge.jsx)("span",{className:"ss-w-fandash-injury-name",children:n.playerName}),(0,ge.jsxs)("span",{className:"ss-w-fandash-injury-meta",children:[(0,ge.jsx)("span",{className:"ss-w-fandash-injury-status",children:n.status}),n.injuryType?(0,ge.jsx)("span",{className:"ss-w-fandash-injury-type",children:n.injuryType}):null,n.expectedReturnLabel?(0,ge.jsx)("span",{className:"ss-w-fandash-injury-return",children:n.expectedReturnLabel}):null]})]},`${n.playerName}-${r}`))})}function Pv({card:e}){let{data:t}=e;return(0,ge.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-injuries",children:[e.title?(0,ge.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,ge.jsxs)("div",{className:"ss-w-fandash-injuries-cols",children:[(0,ge.jsxs)("div",{className:"ss-w-fandash-injuries-col",children:[(0,ge.jsx)(Nv,{name:t.oursName,crestUrl:t.oursCrestUrl}),(0,ge.jsx)(Lv,{rows:t.ours,emptyLabel:t.emptyLabel})]}),(0,ge.jsx)("div",{className:"ss-w-fandash-injuries-divider"}),(0,ge.jsxs)("div",{className:"ss-w-fandash-injuries-col",children:[(0,ge.jsx)(Nv,{name:t.theirsName,crestUrl:t.theirsCrestUrl}),(0,ge.jsx)(Lv,{rows:t.theirs,emptyLabel:t.emptyLabel})]})]})]})}var Ri=E(P(),1);function Mv({card:e}){return(0,Ri.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-reasons",children:[e.title?(0,Ri.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ri.jsx)("ul",{className:"ss-w-fandash-reason-list",children:e.data.angles.map((t,n)=>(0,Ri.jsx)("li",{className:"ss-w-fandash-reason-item",children:t},`${t}-${n}`))})]})}var Di=E(P(),1);function Rv({card:e}){return(0,Di.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-watch",children:[e.title?(0,Di.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Di.jsx)("span",{className:"ss-w-fandash-stations",children:e.data.stations.map((t,n)=>(0,Di.jsx)("span",{className:"ss-w-fandash-station-chip",children:t},`${t}-${n}`))})]})}var Ut=E(P(),1);function Dv({card:e,onTap:t}){return(0,Ut.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-congested",onClick:()=>t(e),children:[e.title?(0,Ut.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ut.jsx)("div",{className:"ss-w-fandash-congested-grid",children:e.data.entries.map((n,r)=>(0,Ut.jsxs)("span",{className:"ss-w-fandash-congested-cell",children:[(0,Ut.jsx)("span",{className:"ss-w-fandash-congested-day",children:n.dayLabel}),(0,Ut.jsx)("span",{className:"ss-w-fandash-congested-opponent",children:n.opponent}),(0,Ut.jsx)("span",{className:"ss-w-fandash-congested-comp",children:n.competition}),(0,Ut.jsx)("span",{className:"ss-w-fandash-congested-time",children:n.timeLabel})]},`${n.opponent}-${r}`))}),(0,Ut.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Qe=E(P(),1);function zv({rows:e}){return e.length===0?(0,Qe.jsx)("span",{className:"ss-w-fandash-transfers-empty",children:"None"}):(0,Qe.jsx)("ul",{className:"ss-w-fandash-transfer-list",children:e.map((t,n)=>(0,Qe.jsxs)("li",{className:"ss-w-fandash-transfer-row",children:[(0,Qe.jsx)("span",{className:"ss-w-fandash-transfer-name",children:t.playerName}),(0,Qe.jsx)("span",{className:"ss-w-fandash-transfer-club",children:t.otherClub}),t.type?(0,Qe.jsx)("span",{className:"ss-w-fandash-transfer-type",children:t.type}):null]},`${t.playerName}-${n}`))})}function Ov({card:e}){let{data:t}=e;return(0,Qe.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-transfers",children:[e.title?(0,Qe.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Qe.jsxs)("div",{className:"ss-w-fandash-transfers-cols",children:[(0,Qe.jsxs)("div",{className:"ss-w-fandash-transfers-col",children:[(0,Qe.jsx)("span",{className:"ss-w-fandash-transfers-col-head",children:"In"}),(0,Qe.jsx)(zv,{rows:t.in})]}),(0,Qe.jsxs)("div",{className:"ss-w-fandash-transfers-col",children:[(0,Qe.jsx)("span",{className:"ss-w-fandash-transfers-col-head",children:"Out"}),(0,Qe.jsx)(zv,{rows:t.out})]})]})]})}var bn=E(P(),1);function Bv({card:e}){return(0,bn.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-links",children:[e.title?(0,bn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,bn.jsx)("div",{className:"ss-w-fandash-link-grid",children:e.data.links.map((t,n)=>(0,bn.jsxs)("a",{className:"ss-w-fandash-link-tile",href:t.url,target:"_blank",rel:"noopener noreferrer",children:[(0,bn.jsx)("span",{className:"ss-w-fandash-link-label",children:t.label}),(0,bn.jsx)("span",{className:"ss-w-fandash-link-chevron",children:(0,bn.jsx)(Fa,{})})]},`${t.url}-${n}`))})]})}var Ht=E(P(),1);function Fv({card:e}){let{data:t}=e;return(0,Ht.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-postmatch-result",children:[e.title?(0,Ht.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ht.jsxs)("div",{className:"ss-w-fandash-postmatch-scoreboard",children:[(0,Ht.jsx)("span",{className:"ss-w-fandash-postmatch-team",children:t.homeName}),(0,Ht.jsx)("span",{className:"ss-w-fandash-postmatch-score",children:t.homeScore}),(0,Ht.jsx)("span",{className:"ss-w-fandash-postmatch-sep",children:"\u2013"}),(0,Ht.jsx)("span",{className:"ss-w-fandash-postmatch-score",children:t.awayScore}),(0,Ht.jsx)("span",{className:"ss-w-fandash-postmatch-team ss-w-fandash-postmatch-team--away",children:t.awayName})]}),(0,Ht.jsxs)("div",{className:"ss-w-fandash-postmatch-meta",children:[t.resultLabel," \xB7 ",t.kickoffLabel,t.competition?` \xB7 ${t.competition}`:""]})]})}var Ur=E(P(),1);function Qv({card:e,onTap:t}){return(0,Ur.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-postmatch-goals",onClick:()=>t(e),children:[e.title?(0,Ur.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ur.jsx)("ul",{className:"ss-w-fandash-postmatch-goal-list",children:e.data.goals.map((n,r)=>(0,Ur.jsx)("li",{className:n.scoredByClub?"ss-w-fandash-postmatch-goal ss-w-fandash-postmatch-goal--club":"ss-w-fandash-postmatch-goal",children:n.text},`${n.text}-${r}`))}),(0,Ur.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var en=E(P(),1);function Uv({card:e,onTap:t}){return(0,en.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-postmatch-stats",onClick:()=>t(e),children:[e.title?(0,en.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,en.jsx)("div",{className:"ss-w-fandash-postmatch-stat-rows",children:e.data.rows.map((n,r)=>{let i=e.data.clubIsHome?n.clubValue:n.oppValue,o=e.data.clubIsHome?n.oppValue:n.clubValue;return(0,en.jsxs)("div",{className:"ss-w-fandash-postmatch-stat-row",children:[(0,en.jsx)("span",{className:"ss-w-fandash-postmatch-stat-value",children:i}),(0,en.jsx)("span",{className:"ss-w-fandash-postmatch-stat-label",children:n.label}),(0,en.jsx)("span",{className:"ss-w-fandash-postmatch-stat-value",children:o})]},`${n.label}-${r}`)})}),(0,en.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var tr=E(P(),1);function Hv({card:e,onTap:t}){let{data:n}=e;return(0,tr.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-postmatch-performer",onClick:()=>t(e),children:[e.title?(0,tr.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,tr.jsxs)("div",{className:"ss-w-fandash-postmatch-performer-row",children:[(0,tr.jsx)("span",{className:"ss-w-fandash-postmatch-performer-name",children:n.playerName}),(0,tr.jsx)("span",{className:"ss-w-fandash-postmatch-performer-rating",children:n.ratingLabel})]}),(0,tr.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var zi=E(P(),1);function jv({card:e}){let{data:t}=e;return(0,zi.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-postmatch-next",children:[e.title?(0,zi.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,zi.jsx)("div",{className:"ss-w-fandash-postmatch-next-row",children:(0,zi.jsx)("span",{className:"ss-w-fandash-postmatch-next-when",children:t.whenLabel})})]})}var nr=E(P(),1);function Vv({card:e,onTap:t}){let{data:n}=e;return(0,nr.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-resting-next",onClick:()=>t(e),children:[e.title?(0,nr.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,nr.jsxs)("div",{className:"ss-w-fandash-resting-next-row",children:[(0,nr.jsx)("span",{className:"ss-w-fandash-resting-next-when",children:n.whenLabel}),n.competition?(0,nr.jsx)("span",{className:"ss-w-fandash-resting-next-competition",children:n.competition}):null]}),(0,nr.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var rr=E(P(),1);function Wv({card:e,onTap:t}){let{data:n}=e;return(0,rr.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-resting-standings",onClick:()=>t(e),children:[e.title?(0,rr.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,rr.jsxs)("div",{className:"ss-w-fandash-resting-standings-row",children:[(0,rr.jsx)("span",{className:"ss-w-fandash-resting-standings-position",children:n.positionLabel}),(0,rr.jsx)("span",{className:"ss-w-fandash-resting-standings-record",children:n.recordLabel})]}),(0,rr.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Sn=E(P(),1);function _v({card:e,onTap:t}){let{data:n}=e;return(0,Sn.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-resting-season",onClick:()=>t(e),children:[e.title?(0,Sn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Sn.jsxs)("div",{className:"ss-w-fandash-resting-season-rows",children:[n.scorerLabel?(0,Sn.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.scorerLabel}):null,n.playerLabel?(0,Sn.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.playerLabel}):null,(0,Sn.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.tallyLabel})]}),(0,Sn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Oi=E(P(),1);function gI(e){let t=e.toUpperCase();return t==="W"?"ss-w-fandash-form-pill--win":t==="L"?"ss-w-fandash-form-pill--loss":"ss-w-fandash-form-pill--draw"}function Xv({card:e}){let{data:t}=e;return(0,Oi.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-resting-form",children:[e.title?(0,Oi.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Oi.jsx)("span",{className:"ss-w-fandash-form",children:t.letters.map((n,r)=>(0,Oi.jsx)("span",{className:`ss-w-fandash-form-pill ${gI(n)}`,children:n},`${n}-${r}`))})]})}var Cl=E(xe(),1);var Al=E(xe(),1),qv=6e4,wI=15;function zp(e,t,n){if(!t)return e;let r=Math.floor((Date.now()-n)/qv);return e+Math.min(Math.max(0,r),wI)}function Jv(e,t,n){let[r,i]=(0,Al.useState)(()=>zp(e,t,n));return(0,Al.useEffect)(()=>{if(i(zp(e,t,n)),!t)return;let o=window.setInterval(()=>{i(zp(e,t,n))},qv);return()=>window.clearInterval(o)},[e,t,n]),r}var pe=E(P(),1);function yI(e){return e.trim().slice(0,3).toUpperCase()}function Kv({url:e,name:t,side:n}){let[r,i]=(0,Cl.useState)(!1),o=`ss-w-fandash-live-crest ss-w-fandash-live-crest--${n}`;return e&&!r?(0,pe.jsx)("img",{className:o,src:e,alt:"","aria-hidden":"true",onError:()=>i(!0)}):(0,pe.jsx)("span",{className:`${o} ss-w-fandash-live-crest--fallback`,"aria-hidden":"true",children:yI(t)})}function xI(e){if(!e||e.length===0)return null;let t=e.filter(n=>n.type==="goal"&&n.player);return t.length===0?null:t.slice().sort((n,r)=>n.minute-r.minute).map(n=>`${n.player} ${n.minuteLabel}`).join(", ")}function Yv({card:e,goalEvents:t}){let{data:n}=e,r=`${n.minute}:${n.homeScore}:${n.awayScore}`,i=(0,Cl.useRef)(null);(!i.current||i.current.key!==r)&&(i.current={key:r,receivedAtMs:Date.now()});let o=Jv(n.minute,n.clockRunning,i.current.receivedAtMs),s=n.minuteLabel.replace(/^\d+/,""),a=xI(t);return(0,pe.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-score",children:[e.title?(0,pe.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,pe.jsxs)("div",{className:"ss-w-fandash-live-top",children:[(0,pe.jsxs)("span",{className:"ss-w-fandash-live-pill",children:[(0,pe.jsx)("span",{className:"ss-w-fandash-live-dot","aria-hidden":"true"}),n.statusLabel]}),(0,pe.jsx)("span",{className:"ss-w-fandash-live-minute",children:`${o}${s}`}),n.competition?(0,pe.jsx)("span",{className:"ss-w-fandash-live-competition",children:n.competition}):null]}),(0,pe.jsxs)("div",{className:"ss-w-fandash-live-main",children:[(0,pe.jsxs)("div",{className:"ss-w-fandash-live-side ss-w-fandash-live-side--home",children:[(0,pe.jsx)(Kv,{url:n.homeCrestUrl,name:n.homeName,side:"home"}),(0,pe.jsx)("span",{className:"ss-w-fandash-live-team-name",children:n.homeName})]}),(0,pe.jsxs)("div",{className:"ss-w-fandash-live-score-main",children:[(0,pe.jsx)("span",{className:"ss-w-fandash-live-score-value",children:n.homeScore}),(0,pe.jsx)("span",{className:"ss-w-fandash-live-score-sep",children:"\u2013"}),(0,pe.jsx)("span",{className:"ss-w-fandash-live-score-value",children:n.awayScore})]}),(0,pe.jsxs)("div",{className:"ss-w-fandash-live-side ss-w-fandash-live-side--away",children:[(0,pe.jsx)(Kv,{url:n.awayCrestUrl,name:n.awayName,side:"away"}),(0,pe.jsx)("span",{className:"ss-w-fandash-live-team-name",children:n.awayName})]})]}),a?(0,pe.jsxs)("div",{className:"ss-w-fandash-live-scorers",children:[(0,pe.jsx)("span",{className:"ss-w-fandash-live-scorers-icon","aria-hidden":"true",children:"\u26BD"}),a]}):null]})}var Zv=E(xe(),1),we=E(P(),1),Gv=3;function vI({type:e}){return e==="goal"?(0,we.jsx)("span",{className:"ss-w-fandash-live-tl-ico ss-w-fandash-live-tl-ico--goal","aria-hidden":"true",children:(0,we.jsx)("span",{className:"ss-w-fandash-live-tl-ball"})}):e==="yellow"||e==="red"?(0,we.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,we.jsx)("span",{className:`ss-w-fandash-live-tl-card ss-w-fandash-live-tl-card--${e}`})}):e==="sub"?(0,we.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,we.jsx)("span",{className:"ss-w-fandash-live-tl-subarrows",children:"\u21C5"})}):(0,we.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,we.jsx)("span",{className:"ss-w-fandash-live-tl-dot"})})}function kI({e}){var t,n;return e.type==="sub"?(0,we.jsxs)("span",{className:"ss-w-fandash-live-tl-who",children:[(t=e.player)!=null?t:e.text,e.playerOff?(0,we.jsxs)("span",{className:"ss-w-fandash-live-tl-off",children:[" for ",e.playerOff]}):null]}):(0,we.jsx)("span",{className:"ss-w-fandash-live-tl-who",children:(n=e.player)!=null?n:e.text})}function AI({e}){let t=["ss-w-fandash-live-tl-ev",e.side==="home"?"ss-w-fandash-live-tl-ev--home":"ss-w-fandash-live-tl-ev--away",e.type==="goal"?"ss-w-fandash-live-tl-ev--goal":""].filter(Boolean).join(" ");return(0,we.jsxs)("div",{className:t,children:[(0,we.jsxs)("span",{className:"ss-w-fandash-live-tl-txt",children:[(0,we.jsx)(kI,{e}),(0,we.jsx)(vI,{type:e.type})]}),(0,we.jsx)("span",{className:"ss-w-fandash-live-tl-badge",children:e.minuteLabel})]})}function $v({card:e,ui:t}){var c,d;let[n,r]=(0,Zv.useState)(!1),i=e.data.events;if(!i||i.length===0)return null;let o=[...i].sort((p,f)=>f.minute-p.minute),s=o.length-Gv,a=n?o:o.slice(0,Gv),l=(c=t==null?void 0:t.showMore)!=null?c:(p=>`Show ${p} more`),u=(d=t==null?void 0:t.showLess)!=null?d:"Show less";return(0,we.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-timeline",children:[e.title?(0,we.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,we.jsx)("div",{className:"ss-w-fandash-live-tl",children:a.map((p,f)=>(0,we.jsx)(AI,{e:p},`${p.minute}-${p.side}-${p.type}-${f}`))}),s>0?(0,we.jsx)("button",{type:"button",className:"ss-w-fandash-live-tl-more","aria-expanded":n,onClick:()=>r(p=>!p),children:n?u:l(s)}):null]})}var ek=E(xe(),1),Ze=E(P(),1),Bi=270,Op=56,ir=Op/2,CI=.26;function bI(e){var l,u;let t=e.length-1,n=c=>t===0?0:c/t*Bi,r=c=>ir-c*CI,i=e.map((c,d)=>`${n(d).toFixed(1)},${r(c.value).toFixed(1)}`),o=`M0,${ir} L${i.join(" L")} L${Bi},${ir} Z`,s=`M${i.join(" L")}`,a=(u=(l=e[t])==null?void 0:l.value)!=null?u:0;return{area:o,line:s,lastX:n(t).toFixed(1),lastY:r(a).toFixed(1)}}function tk({points:e,caption:t,clubIsHome:n}){if(e.length===0)return null;let{area:r,line:i,lastX:o,lastY:s}=bI(e),a=(0,ek.useId)(),l=`${a}-top`,u=`${a}-bottom`,c=n?"ss-w-fandash-live-mom-home":"ss-w-fandash-live-mom-away",d=n?"ss-w-fandash-live-mom-away":"ss-w-fandash-live-mom-home";return(0,Ze.jsxs)("div",{className:"ss-w-fandash-live-mom",children:[t?(0,Ze.jsx)("span",{className:"ss-w-fandash-live-mom-caption",children:t}):null,(0,Ze.jsxs)("svg",{className:"ss-w-fandash-live-mom-svg",viewBox:`0 0 ${Bi} ${Op}`,preserveAspectRatio:"none",role:"img","aria-label":t!=null?t:"Momentum",children:[(0,Ze.jsxs)("defs",{children:[(0,Ze.jsx)("clipPath",{id:l,children:(0,Ze.jsx)("rect",{x:0,y:0,width:Bi,height:ir})}),(0,Ze.jsx)("clipPath",{id:u,children:(0,Ze.jsx)("rect",{x:0,y:ir,width:Bi,height:Op-ir})})]}),(0,Ze.jsx)("path",{d:r,className:c,clipPath:`url(#${l})`}),(0,Ze.jsx)("path",{d:r,className:d,clipPath:`url(#${u})`}),(0,Ze.jsx)("line",{x1:0,y1:ir,x2:Bi,y2:ir,className:"ss-w-fandash-live-mom-base"}),(0,Ze.jsx)("path",{d:i,className:"ss-w-fandash-live-mom-line",vectorEffect:"non-scaling-stroke"}),(0,Ze.jsx)("circle",{cx:o,cy:s,r:3.2,className:"ss-w-fandash-live-mom-now",vectorEffect:"non-scaling-stroke"})]})]})}var Ie=E(P(),1);function SI(e,t){let n=e+t;if(n<=0)return{home:"50%",away:"50%"};let r=Math.round(e/n*1e3)/10;return{home:`${r}%`,away:`${Math.round((100-r)*10)/10}%`}}function nk({card:e}){let{data:t}=e;return(0,Ie.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-stats",children:[e.title?(0,Ie.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ie.jsx)("div",{className:"ss-w-fandash-live-stat-rows",children:t.rows.map((n,r)=>{let i=t.clubIsHome?n.clubValue:n.oppValue,o=t.clubIsHome?n.oppValue:n.clubValue,s=t.clubIsHome?n.clubNum:n.oppNum,a=t.clubIsHome?n.oppNum:n.clubNum,{home:l,away:u}=SI(s,a);return(0,Ie.jsxs)("div",{className:"ss-w-fandash-live-stat",children:[(0,Ie.jsxs)("div",{className:"ss-w-fandash-live-stat-row",children:[(0,Ie.jsx)("span",{className:"ss-w-fandash-live-stat-value ss-w-fandash-live-stat-value--home",children:i}),(0,Ie.jsx)("span",{className:"ss-w-fandash-live-stat-label",children:n.label}),(0,Ie.jsx)("span",{className:"ss-w-fandash-live-stat-value ss-w-fandash-live-stat-value--away",children:o})]}),(0,Ie.jsxs)("div",{className:"ss-w-fandash-live-bar",children:[(0,Ie.jsx)("span",{className:"ss-w-fandash-live-bar-home",style:{width:l}}),(0,Ie.jsx)("span",{className:"ss-w-fandash-live-bar-away",style:{width:u}})]})]},`${n.label}-${r}`)})}),t.momentum.length>0?(0,Ie.jsx)(tk,{points:t.momentum,caption:t.momentumLabel,clubIsHome:t.clubIsHome}):t.momentumLabel?(0,Ie.jsx)("span",{className:"ss-w-fandash-live-momentum",children:t.momentumLabel}):null,t.rows.length>0?(0,Ie.jsxs)("div",{className:"ss-w-fandash-live-legend",children:[(0,Ie.jsxs)("span",{className:"ss-w-fandash-live-legend-item",children:[(0,Ie.jsx)("i",{className:"ss-w-fandash-live-legend-swatch ss-w-fandash-live-legend-swatch--home"}),t.homeName]}),(0,Ie.jsxs)("span",{className:"ss-w-fandash-live-legend-item",children:[(0,Ie.jsx)("i",{className:"ss-w-fandash-live-legend-swatch ss-w-fandash-live-legend-swatch--away"}),t.awayName]})]}):null]})}var ae=E(P(),1);function rk({dashboard:e,onTap:t,ui:n}){let r=[...e.cards.filter(s=>s.cardType==="countdown"),...e.cards.filter(s=>s.cardType!=="countdown")],i=e.cards.find(s=>s.cardType==="liveTimeline"),o=i==null?void 0:i.data.events.filter(s=>s.type==="goal");return(0,ae.jsxs)("div",{className:"ss-w-fandash",children:[e.greeting?(0,ae.jsx)("span",{className:"ss-w-fandash-greeting",children:e.greeting}):null,(0,ae.jsx)("div",{className:"ss-w-fandash-cards",children:r.map((s,a)=>(0,ae.jsx)(EI,{card:s,onTap:t,ui:n,goalEvents:o},`${s.cardType}-${a}`))})]})}function EI({card:e,onTap:t,ui:n,goalEvents:r}){switch(e.cardType){case"fixture":return(0,ae.jsx)(Iv,{card:e,onTap:t});case"countdown":return(0,ae.jsx)(Tv,{card:e});case"injuries":return(0,ae.jsx)(Pv,{card:e});case"reasonToBet":return(0,ae.jsx)(Mv,{card:e});case"whereToWatch":return(0,ae.jsx)(Rv,{card:e});case"congestedWeek":return(0,ae.jsx)(Dv,{card:e,onTap:t});case"transfers":return(0,ae.jsx)(Ov,{card:e});case"links":return(0,ae.jsx)(Bv,{card:e});case"postMatchResult":return(0,ae.jsx)(Fv,{card:e});case"postMatchGoals":return(0,ae.jsx)(Qv,{card:e,onTap:t});case"postMatchStats":return(0,ae.jsx)(Uv,{card:e,onTap:t});case"postMatchTopPerformer":return(0,ae.jsx)(Hv,{card:e,onTap:t});case"postMatchNext":return(0,ae.jsx)(jv,{card:e});case"restingNext":return(0,ae.jsx)(Vv,{card:e,onTap:t});case"restingStandings":return(0,ae.jsx)(Wv,{card:e,onTap:t});case"restingSeason":return(0,ae.jsx)(_v,{card:e,onTap:t});case"restingForm":return(0,ae.jsx)(Xv,{card:e});case"liveScore":return(0,ae.jsx)(Yv,{card:e,goalEvents:r});case"liveTimeline":return(0,ae.jsx)($v,{card:e,ui:n});case"liveStats":return(0,ae.jsx)(nk,{card:e});default:return null}}var wt=E(P(),1);function ik({message:e,disabled:t,onAct:n,onTap:r,ui:i,slip:o}){if(e.role==="user")return(0,wt.jsx)("div",{className:"ss-w-msg ss-w-user","data-msg-id":e.id,children:(0,wt.jsx)("div",{className:"ss-w-bubble",children:e.text})});let s=a=>{n({message:a.actionLabel,actionRef:a.actionRef,label:a.actionLabel||a.title||""})};return(0,wt.jsxs)("div",{className:"ss-w-msg ss-w-bot","data-msg-id":e.id,children:[e.text&&!e.greetingDashboard&&!e.clubFanDashboard?(0,wt.jsx)(iv,{text:e.text}):null,e.greetingDashboard&&!e.clubFanDashboard?(0,wt.jsx)(Sv,{dashboard:e.greetingDashboard,onTap:r}):null,e.clubFanDashboard?(0,wt.jsx)(rk,{dashboard:e.clubFanDashboard,onTap:s,ui:i}):null,(0,wt.jsx)(lv,{cards:e.cards,disabled:t,showLessLabel:i==null?void 0:i.showLess,showMoreLabel:i==null?void 0:i.showMore}),(0,wt.jsx)(yv,{insights:e.insights,ui:i,slip:o}),(0,wt.jsx)(kv,{cards:e.marketOdds,ui:i,slip:o}),(0,wt.jsx)(Cv,{cards:e.oddsMovement,ui:i}),(0,wt.jsx)(kl,{actions:e.actions,loading:!1,disabled:t,onAct:n})]})}var Bp=E(P(),1);function ok({chips:e,onPick:t}){return e.length===0?null:(0,Bp.jsx)("div",{className:"ss-w-chips",children:e.map((n,r)=>(0,Bp.jsx)("button",{type:"button",className:"ss-w-chip",onClick:()=>t(n.text),children:n.text},`${n.text}-${r}`))})}function sk(e,t=48){return e.scrollHeight-e.scrollTop-e.clientHeight<=t}var jt=E(P(),1);function II(e){let t=e[e.length-1];if(!t||t.role!=="assistant")return null;let n=e[e.length-2];return{turnId:t.id,anchorId:n&&n.role==="user"?n.id:t.id}}function ak({controller:e,ui:t,slip:n,onDashboardTap:r}){let{state:i,send:o}=e,s=(0,Hr.useRef)(null),a=(0,Hr.useRef)(null),l=(0,Hr.useRef)(!0),u=(0,Hr.useRef)(null);(0,Hr.useEffect)(()=>{var h,y;let p=II(i.messages),f=s.current;if(p&&p.turnId!==u.current){u.current=p.turnId,a.current&&f&&(a.current.style.height=`${f.clientHeight}px`),l.current=!1,(h=f==null?void 0:f.querySelector(`[data-msg-id="${p.anchorId}"]`))==null||h.scrollIntoView({block:"start"});return}!i.isStreaming&&a.current&&(a.current.style.height=""),l.current&&((y=a.current)==null||y.scrollIntoView({block:"end"}))},[i.messages,i.status,i.isStreaming]);let c=i.messages.some(p=>p.role==="user"),d=i.messages.some(p=>p.role==="assistant"&&(p.greetingDashboard||p.clubFanDashboard));return(0,jt.jsxs)("div",{className:"ss-w-list","aria-live":"polite",ref:s,onScroll:()=>{s.current&&(l.current=sk(s.current))},children:[i.messages.map(p=>(0,jt.jsx)(ik,{message:p,disabled:i.isStreaming,onAct:f=>o(f.message,{actionId:f.actionId,actionRef:f.actionRef,displayText:f.label}),onTap:(f,h)=>{o(f.actionValue,{displayText:f.title}),p.role==="assistant"&&p.greetingDashboard&&(r==null||r(f,h,p.greetingDashboard.layout))},ui:t,slip:n},p.id)),i.isStreaming&&i.actionsLoading?(0,jt.jsx)(kl,{actions:[],loading:!0,onAct:()=>{}}):null,i.status?(0,jt.jsx)("div",{className:"ss-w-status",children:i.status}):null,i.error?(0,jt.jsxs)("div",{className:"ss-w-error",role:"alert",children:[(0,jt.jsx)("span",{children:"message"in i.error?i.error.message:t.somethingWentWrong}),(0,jt.jsx)("button",{type:"button",className:"ss-w-retry",onClick:()=>e.retry(),children:t.retry})]}):null,!c&&!d?(0,jt.jsx)(ok,{chips:i.starters,onPick:p=>o(p)}):null,(0,jt.jsx)("div",{ref:a,className:"ss-w-turn-spacer","aria-hidden":"true"})]})}var lk=E(xe(),1);var or=E(P(),1);function uk({placeholder:e,streaming:t,onSend:n,onStop:r,stopLabel:i="Stop response",sendLabel:o="Send message"}){let[s,a]=(0,lk.useState)(""),l=()=>{let c=s.trim();c&&(n(c),a(""))};return(0,or.jsxs)("div",{className:"ss-w-input",children:[(0,or.jsx)("textarea",{className:"ss-w-textarea",rows:1,placeholder:e,value:s,disabled:t,onChange:c=>a(c.target.value),onKeyDown:c=>{c.key==="Enter"&&!c.shiftKey&&(c.preventDefault(),l())}}),t?(0,or.jsx)("button",{type:"button",className:"ss-w-send ss-w-stop","aria-label":i,onClick:r,children:(0,or.jsx)("span",{className:"ss-w-stop-glyph"})}):(0,or.jsx)("button",{type:"button",className:"ss-w-send","aria-label":o,onClick:l,children:(0,or.jsx)(dw,{})})]})}var Fi=E(P(),1),TI="(max-width: 639px)";function NI(){let[e,t]=(0,os.useState)(!1);return(0,os.useEffect)(()=>{if(typeof window=="undefined"||typeof window.matchMedia!="function")return;let n=window.matchMedia(TI),r=()=>t(n.matches);return r(),n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),e}function ck({controller:e,ui:t,slip:n,onDashboardTap:r}){let{state:i,close:o,stop:s,send:a}=e,l=NI();return(0,os.useEffect)(()=>{let u=c=>{c.key==="Escape"&&o()};return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[o]),(0,Fi.jsxs)("div",{className:"ss-w-panel",role:"dialog","aria-modal":l,"aria-label":t.chatDialogLabel,children:[(0,Fi.jsx)(gw,{onClose:o,closeLabel:t.closeChat}),(0,Fi.jsx)(ak,{controller:e,ui:t,slip:n,onDashboardTap:r}),(0,Fi.jsx)(uk,{placeholder:t.placeholder,streaming:i.isStreaming,onSend:u=>a(u),onStop:s,stopLabel:t.stopResponse,sendLabel:t.sendMessage})]})}var dk=`.ss-w-root { all: revert; }
|
|
38
38
|
.ss-w-root, .ss-w-root * { box-sizing: border-box; margin: 0; padding: 0; }
|
|
39
39
|
.ss-w-root {
|
|
40
40
|
--ss-w-accent: #17936a;
|
|
@@ -561,24 +561,24 @@ Error generating stack: `+o.message+`
|
|
|
561
561
|
tokens (--ss-w-home / --ss-w-away / --ss-w-track) are defined above -- the timeline and stats
|
|
562
562
|
cards reuse them. */
|
|
563
563
|
.ss-w-fandash-live-top { display: flex; align-items: center; gap: 8px; }
|
|
564
|
-
.ss-w-fandash-live-pill { display: inline-flex; flex: none; align-items: center; gap: 5px; font-size:
|
|
564
|
+
.ss-w-fandash-live-pill { display: inline-flex; flex: none; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--ss-w-neg); border-radius: 6px; padding: 3px 8px; }
|
|
565
565
|
.ss-w-fandash-live-dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: ss-w-fandash-live-pulse 1.3s ease-in-out infinite; }
|
|
566
566
|
@keyframes ss-w-fandash-live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
|
|
567
567
|
@media (prefers-reduced-motion: reduce) {
|
|
568
568
|
.ss-w-fandash-live-dot { animation: none; }
|
|
569
569
|
}
|
|
570
|
-
.ss-w-fandash-live-minute { flex: none; font-size:
|
|
570
|
+
.ss-w-fandash-live-minute { flex: none; font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); }
|
|
571
571
|
.ss-w-fandash-live-competition { margin-left: auto; font-size: 11px; font-weight: 650; color: var(--ss-w-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
572
|
-
.ss-w-fandash-live-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap:
|
|
573
|
-
.ss-w-fandash-live-side { display: flex; align-items: center; gap:
|
|
572
|
+
.ss-w-fandash-live-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
|
|
573
|
+
.ss-w-fandash-live-side { display: flex; align-items: center; gap: 10px; min-width: 0; }
|
|
574
574
|
.ss-w-fandash-live-side--away { flex-direction: row-reverse; text-align: right; }
|
|
575
|
-
.ss-w-fandash-live-crest { width:
|
|
575
|
+
.ss-w-fandash-live-crest { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12.5px; object-fit: cover; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
|
|
576
576
|
.ss-w-fandash-live-crest--fallback.ss-w-fandash-live-crest--home { background: var(--ss-w-home); }
|
|
577
577
|
.ss-w-fandash-live-crest--fallback.ss-w-fandash-live-crest--away { background: var(--ss-w-away); }
|
|
578
|
-
.ss-w-fandash-live-team-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size:
|
|
579
|
-
.ss-w-fandash-live-score-main { display: flex; align-items: baseline; justify-content: center; font-size:
|
|
580
|
-
.ss-w-fandash-live-score-sep { color: var(--ss-w-faint); font-weight: 500; margin: 0
|
|
581
|
-
.ss-w-fandash-live-scorers { margin-top:
|
|
578
|
+
.ss-w-fandash-live-team-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; line-height: 1.15; color: var(--ss-w-ink); }
|
|
579
|
+
.ss-w-fandash-live-score-main { display: flex; align-items: baseline; justify-content: center; font-size: 36px; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; color: var(--ss-w-ink); }
|
|
580
|
+
.ss-w-fandash-live-score-sep { color: var(--ss-w-faint); font-weight: 500; margin: 0 5px; }
|
|
581
|
+
.ss-w-fandash-live-scorers { margin-top: 12px; display: flex; justify-content: flex-end; gap: 7px; align-items: center; font-size: 12.5px; color: var(--ss-w-faint); overflow-wrap: anywhere; }
|
|
582
582
|
.ss-w-fandash-live-scorers-icon { flex: none; color: var(--ss-w-away); }
|
|
583
583
|
|
|
584
584
|
/* live timeline: a compact two-sided event list down a centre spine -- each club's events sit on
|
|
@@ -587,18 +587,18 @@ Error generating stack: `+o.message+`
|
|
|
587
587
|
.ss-w-fandash-live-tl { position: relative; display: flex; flex-direction: column; gap: 6px; }
|
|
588
588
|
.ss-w-fandash-live-tl::before { content: ""; position: absolute; left: 50%; top: 1px; bottom: 1px; width: 2px; background: var(--ss-w-line); transform: translateX(-1px); }
|
|
589
589
|
.ss-w-fandash-live-tl-ev { display: grid; grid-template-columns: 1fr 32px 1fr; align-items: center; gap: 6px; }
|
|
590
|
-
.ss-w-fandash-live-tl-txt { display: flex; align-items: center; gap:
|
|
590
|
+
.ss-w-fandash-live-tl-txt { display: flex; align-items: center; gap: 7px; font-size: 13px; min-width: 0; }
|
|
591
591
|
.ss-w-fandash-live-tl-ev--home .ss-w-fandash-live-tl-txt { grid-column: 1; justify-content: flex-end; }
|
|
592
592
|
.ss-w-fandash-live-tl-ev--away .ss-w-fandash-live-tl-txt { grid-column: 3; justify-content: flex-start; flex-direction: row-reverse; }
|
|
593
593
|
.ss-w-fandash-live-tl-who { font-weight: 650; color: var(--ss-w-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
594
594
|
.ss-w-fandash-live-tl-off { font-weight: 500; color: var(--ss-w-faint); }
|
|
595
595
|
.ss-w-fandash-live-tl-ev--goal .ss-w-fandash-live-tl-who { font-weight: 800; }
|
|
596
|
-
.ss-w-fandash-live-tl-badge { grid-column: 2; justify-self: center; min-width:
|
|
596
|
+
.ss-w-fandash-live-tl-badge { grid-column: 2; justify-self: center; min-width: 29px; height: 19px; padding: 0 4px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--ss-w-ink); background: var(--ss-w-bubble); border: 1px solid var(--ss-w-line); font-variant-numeric: tabular-nums; z-index: 1; }
|
|
597
597
|
.ss-w-fandash-live-tl-ev--goal .ss-w-fandash-live-tl-badge { background: var(--ss-w-accent); color: #fff; border-color: transparent; }
|
|
598
|
-
.ss-w-fandash-live-tl-ico { width:
|
|
598
|
+
.ss-w-fandash-live-tl-ico { width: 17px; height: 17px; flex: none; display: grid; place-items: center; }
|
|
599
599
|
.ss-w-fandash-live-tl-ico--goal { border-radius: 50%; background: color-mix(in srgb, var(--ss-w-away) 16%, transparent); }
|
|
600
|
-
.ss-w-fandash-live-tl-ball { width:
|
|
601
|
-
.ss-w-fandash-live-tl-card { width:
|
|
600
|
+
.ss-w-fandash-live-tl-ball { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 50% 42%, #fff 0 34%, transparent 36%), var(--ss-w-ink); border: 1px solid var(--ss-w-ink); }
|
|
601
|
+
.ss-w-fandash-live-tl-card { width: 9px; height: 12px; border-radius: 2px; display: block; }
|
|
602
602
|
.ss-w-fandash-live-tl-card--yellow { background: var(--ss-w-cta); }
|
|
603
603
|
.ss-w-fandash-live-tl-card--red { background: var(--ss-w-away); }
|
|
604
604
|
.ss-w-fandash-live-tl-subarrows { font-size: 11px; font-weight: 900; line-height: 1; letter-spacing: -1px; color: var(--ss-w-accent); }
|
|
@@ -610,21 +610,21 @@ Error generating stack: `+o.message+`
|
|
|
610
610
|
bar, plus an optional momentum wave (or its text fallback) and a club/opponent colour legend.
|
|
611
611
|
No side signal reaches this card, so the club is always the home token and the opponent is
|
|
612
612
|
always the away token -- see LiveStatsCard.tsx. */
|
|
613
|
-
.ss-w-fandash-live-stat-rows { display: flex; flex-direction: column; gap:
|
|
614
|
-
.ss-w-fandash-live-stat { display: flex; flex-direction: column; gap:
|
|
613
|
+
.ss-w-fandash-live-stat-rows { display: flex; flex-direction: column; gap: 15px; }
|
|
614
|
+
.ss-w-fandash-live-stat { display: flex; flex-direction: column; gap: 7px; }
|
|
615
615
|
.ss-w-fandash-live-stat-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 8px; }
|
|
616
|
-
.ss-w-fandash-live-stat-value { font-size:
|
|
616
|
+
.ss-w-fandash-live-stat-value { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); }
|
|
617
617
|
.ss-w-fandash-live-stat-value--home { color: var(--ss-w-home); }
|
|
618
618
|
.ss-w-fandash-live-stat-value--away { color: var(--ss-w-away); text-align: right; }
|
|
619
|
-
.ss-w-fandash-live-stat-label { font-size:
|
|
620
|
-
.ss-w-fandash-live-bar { position: relative; height:
|
|
619
|
+
.ss-w-fandash-live-stat-label { font-size: 10.5px; font-weight: 700; text-align: center; color: var(--ss-w-faint); text-transform: uppercase; letter-spacing: .04em; }
|
|
620
|
+
.ss-w-fandash-live-bar { position: relative; height: 8px; border-radius: 999px; background: var(--ss-w-track); overflow: hidden; display: flex; }
|
|
621
621
|
.ss-w-fandash-live-bar-home { height: 100%; background: var(--ss-w-home); }
|
|
622
622
|
.ss-w-fandash-live-bar-away { height: 100%; background: var(--ss-w-away); margin-left: auto; }
|
|
623
623
|
|
|
624
624
|
.ss-w-fandash-live-momentum { font-size: 11.5px; font-weight: 650; color: var(--ss-w-accent); }
|
|
625
625
|
.ss-w-fandash-live-mom { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--ss-w-line); }
|
|
626
626
|
.ss-w-fandash-live-mom-caption { display: block; margin-bottom: 5px; font-size: 10.5px; font-weight: 600; color: var(--ss-w-faint); }
|
|
627
|
-
.ss-w-fandash-live-mom-svg { width: 100%; height:
|
|
627
|
+
.ss-w-fandash-live-mom-svg { width: 100%; height: 56px; display: block; overflow: visible; }
|
|
628
628
|
.ss-w-fandash-live-mom-home { fill: var(--ss-w-home); fill-opacity: .85; }
|
|
629
629
|
.ss-w-fandash-live-mom-away { fill: var(--ss-w-away); fill-opacity: .85; }
|
|
630
630
|
.ss-w-fandash-live-mom-line { fill: none; stroke: color-mix(in srgb, var(--ss-w-ink) 55%, transparent); stroke-width: 1.5; }
|