@sensiblestats/widget-embed 0.36.0 → 0.36.1

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @sensiblestats/widget-embed
2
2
 
3
+ ## 0.36.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Don't offer a tap on a suspended accordion market. Its card is unservable — the odds lookup drops every suspended/stopped row, so the detail request answers 404 and the panel lands on a tap-to-retry that can never succeed. The row stays listed and labelled; it just isn't expandable, and a market that suspends while open now collapses instead of leaving stale rows up.
8
+
3
9
  ## 0.36.0
4
10
 
5
11
  ### Minor Changes
@@ -34,7 +34,7 @@ Error generating stack: `+s.message+`
34
34
  `))+1))}let o="#".repeat(i),a=n.enter("headingAtx"),l=n.enter("phrasing");s.move(o+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
35
35
  `,...s.current()});return/^[\t ]/.test(u)&&(u=Sr(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),l(),a(),u}Wp.peek=KE;function Wp(e){return e.value||""}function KE(){return"<"}_p.peek=YE;function _p(e,t,n,r){let i=Zi(n),s=i==='"'?"Quote":"Apostrophe",o=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${s}`),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(")"),o(),u}function YE(){return"!"}Xp.peek=GE;function Xp(e,t,n,r){let i=e.referenceType,s=n.enter("imageReference"),o=n.enter("label"),a=n.createTracker(r),l=a.move("!["),u=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),o();let c=n.stack;n.stack=[],o=n.enter("reference");let d=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return o(),n.stack=c,s(),i==="full"||!u||u!==d?l+=a.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function GE(){return"!"}Jp.peek=ZE;function Jp(e,t,n){let r=e.value||"",i="`",s=-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+" ");++s<n.unsafe.length;){let o=n.unsafe[s],a=n.compilePattern(o),l;if(o.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 ZE(){return"`"}function qp(e,t){let n=Gr(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))}Kp.peek=$E;function Kp(e,t,n,r){let i=Zi(n),s=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r),a,l;if(qp(e,n)){let c=n.stack;n.stack=[],a=n.enter("autolink");let d=o.move("<");return d+=o.move(n.containerPhrasing(e,{before:d,after:">",...o.current()})),d+=o.move(">"),a(),n.stack=c,d}a=n.enter("link"),l=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(l=n.enter("destinationRaw"),u+=o.move(n.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${s}`),u+=o.move(" "+i),u+=o.move(n.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),l()),u+=o.move(")"),a(),u}function $E(e,t,n){return qp(e,n)?"<":"["}Yp.peek=eI;function Yp(e,t,n,r){let i=e.referenceType,s=n.enter("linkReference"),o=n.enter("label"),a=n.createTracker(r),l=a.move("["),u=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),o();let c=n.stack;n.stack=[],o=n.enter("reference");let d=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return o(),n.stack=c,s(),i==="full"||!u||u!==d?l+=a.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function eI(){return"["}function es(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 Av(e){let t=es(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 Sv(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 Xl(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 Ev(e,t,n,r){let i=n.enter("list"),s=n.bulletCurrent,o=e.ordered?Sv(n):es(n),a=e.ordered?o==="."?")":".":Av(n),l=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let c=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&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),Xl(n)===o&&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&&(o=a),n.bulletCurrent=o;let u=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=s,i(),u}function Iv(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 Tv(e,t,n,r){let i=Iv(n),s=n.bulletCurrent||es(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let o=s.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let a=n.createTracker(r);a.move(s+" ".repeat(o-s.length)),a.shift(o);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(o))+d:(f?s:s+" ".repeat(o-s.length))+d}}function Nv(e,t,n,r){let i=n.enter("paragraph"),s=n.enter("phrasing"),o=n.containerPhrasing(e,r);return s(),i(),o}var Gp=Ar(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Lv(e,t,n,r){return(e.children.some(function(o){return Gp(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Mv(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Zp.peek=tI;function Zp(e,t,n,r){let i=Mv(n),s=n.enter("strong"),o=n.createTracker(r),a=o.move(i+i),l=o.move(n.containerPhrasing(e,{after:i,before:a,...o.current()})),u=l.charCodeAt(0),c=$i(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=Sr(u)+l.slice(1));let d=l.charCodeAt(l.length-1),p=$i(r.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+Sr(d));let f=o.move(i+i);return s(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},a+l+f}function tI(e,t,n){return n.options.strong||"*"}function Pv(e,t,n,r){return n.safe(e.value,r)}function Rv(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 Dv(e,t,n){let r=(Xl(n)+(n.options.ruleSpaces?" ":"")).repeat(Rv(n));return n.options.ruleSpaces?r.slice(0,-1):r}var Lo={blockquote:fv,break:Vp,code:xv,definition:vv,emphasis:jp,hardBreak:Vp,heading:Cv,html:Wp,image:_p,imageReference:Xp,inlineCode:Jp,link:Kp,linkReference:Yp,list:Ev,listItem:Tv,paragraph:Nv,root:Lv,strong:Zp,text:Pv,thematicBreak:Dv};function ef(){return{enter:{table:nI,tableData:Ov,tableHeader:Ov,tableRow:iI},exit:{codeText:sI,table:rI,tableData:$p,tableHeader:$p,tableRow:$p}}}function nI(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 rI(e){this.exit(e),this.data.inTable=void 0}function iI(e){this.enter({type:"tableRow",children:[]},e)}function $p(e){this.exit(e)}function Ov(e){this.enter({type:"tableCell",children:[]},e)}function sI(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,oI));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function oI(e,t){return t==="|"?t:e}function tf(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,s=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:o,tableCell:l,tableRow:a}};function o(f,h,w,C){return u(c(f,w,C),f.align)}function a(f,h,w,C){let m=d(f,w,C),g=u([m]);return g.slice(0,g.indexOf(`
37
- `))}function l(f,h,w,C){let m=w.enter("tableCell"),g=w.enter("phrasing"),y=w.containerPhrasing(f,{...C,before:s,after:s});return g(),m(),y}function u(f,h){return pv(f,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function c(f,h,w){let C=f.children,m=-1,g=[],y=h.enter("table");for(;++m<C.length;)g[m]=d(C[m],h,w);return y(),g}function d(f,h,w){let C=f.children,m=-1,g=[],y=h.enter("tableRow");for(;++m<C.length;)g[m]=l(C[m],f,h,w);return y(),g}function p(f,h,w){let C=Lo.inlineCode(f,h,w);return w.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function nf(){return{exit:{taskListCheckValueChecked:zv,taskListCheckValueUnchecked:zv,paragraph:aI}}}function rf(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:lI}}}function zv(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function aI(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,s=-1,o;for(;++s<i.length;){let a=i[s];if(a.type==="paragraph"){o=a;break}}o===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 lI(e,t,n,r){let i=e.children[0],s=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);s&&a.move(o);let l=Lo.listItem(e,t,n,{...r,...a.current()});return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+o}}function sf(){return[zp(),Fp(),Qp(),ef(),nf()]}function of(e){return{extensions:[Bp(),Up(e),Hp(),tf(e),rf()]}}var uI={tokenize:mI,partial:!0},Bv={tokenize:hI,partial:!0},Fv={tokenize:gI,partial:!0},Uv={tokenize:wI,partial:!0},cI={tokenize:yI,partial:!0},Qv={name:"wwwAutolink",tokenize:pI,previous:Vv},Hv={name:"protocolAutolink",tokenize:fI,previous:jv},jn={name:"emailAutolink",tokenize:dI,previous:Wv},Cn={};function lf(){return{text:Cn}}var ai=48;for(;ai<123;)Cn[ai]=jn,ai++,ai===58?ai=65:ai===91&&(ai=97);Cn[43]=jn;Cn[45]=jn;Cn[46]=jn;Cn[95]=jn;Cn[72]=[jn,Hv];Cn[104]=[jn,Hv];Cn[87]=[jn,Qv];Cn[119]=[jn,Qv];function dI(e,t,n){let r=this,i,s;return o;function o(d){return!af(d)||!Wv.call(r,r.previous)||uf(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(d))}function a(d){return af(d)?(e.consume(d),a):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(cI,c,u)(d):d===45||d===95||Ne(d)?(s=!0,e.consume(d),l):c(d)}function u(d){return e.consume(d),i=!0,l}function c(d){return s&&i&&He(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function pI(e,t,n){let r=this;return i;function i(o){return o!==87&&o!==119||!Vv.call(r,r.previous)||uf(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(uI,e.attempt(Bv,e.attempt(Fv,s),n),n)(o))}function s(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function fI(e,t,n){let r=this,i="",s=!1;return o;function o(d){return(d===72||d===104)&&jv.call(r,r.previous)&&!uf(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),a):n(d)}function a(d){if(He(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),s?u:(s=!0,l)):n(d)}function u(d){return d===null||Zr(d)||ee(d)||kn(d)||$r(d)?n(d):e.attempt(Bv,e.attempt(Fv,c),n)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function mI(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),s):n(o)}function s(o){return o===null?n(o):t(o)}}function hI(e,t,n){let r,i,s;return o;function o(u){return u===46||u===95?e.check(Uv,l,a)(u):u===null||ee(u)||kn(u)||u!==45&&$r(u)?l(u):(s=!0,e.consume(u),o)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),o}function l(u){return i||r||!s?n(u):t(u)}}function gI(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Uv,t,s)(o):o===null||ee(o)||kn(o)?t(o):(e.consume(o),i)}function s(o){return o===41&&r++,e.consume(o),i}}function wI(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),s):a===93?(e.consume(a),i):a===60||a===null||ee(a)||kn(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||ee(a)||kn(a)?t(a):r(a)}function s(a){return He(a)?o(a):n(a)}function o(a){return a===59?(e.consume(a),r):He(a)?(e.consume(a),o):n(a)}}function yI(e,t,n){return r;function r(s){return e.consume(s),i}function i(s){return Ne(s)?n(s):t(s)}}function Vv(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ee(e)}function jv(e){return!He(e)}function Wv(e){return!(e===47||af(e))}function af(e){return e===43||e===45||e===46||e===95||Ne(e)}function uf(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 xI={tokenize:EI,partial:!0};function cf(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:CI,continuation:{tokenize:AI},exit:SI}},text:{91:{name:"gfmFootnoteCall",tokenize:bI},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:vI,resolveTo:kI}}}}function vI(e,t,n){let r=this,i=r.events.length,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let l=r.events[i][1];if(l.type==="labelImage"){o=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(!o||!o._balanced)return n(l);let u=at(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!s.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function kI(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)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;let o={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",s,t],["exit",s,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...l),e}function bI(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),s=0,o;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(s>999||d===93&&!o||d===null||d===91||ee(d))return n(d);if(d===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return i.includes(at(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return ee(d)||(o=!0),s++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),s++,u):u(d)}}function CI(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),s,o=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(o>999||h===93&&!a||h===null||h===91||ee(h))return n(h);if(h===93){e.exit("chunkString");let w=e.exit("gfmFootnoteDefinitionLabelString");return s=at(r.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return ee(h)||(a=!0),o++,e.consume(h),h===92?d:c}function d(h){return h===91||h===92||h===93?(e.consume(h),o++,c):c(h)}function p(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(s)||i.push(s),V(e,f,"gfmFootnoteDefinitionWhitespace")):n(h)}function f(h){return t(h)}}function AI(e,t,n){return e.check(bn,t,e.attempt(xI,t,n))}function SI(e){e.exit("gfmFootnoteDefinition")}function EI(e,t,n){let r=this;return V(e,i,"gfmFootnoteDefinitionIndent",5);function i(s){let o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(s):n(s)}}function df(e){let n=(e||{}).singleTilde,r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,a){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let u=l;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[l][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[l][1].end)},d={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[l][1].start)},p=[["enter",c,a],["enter",o[u][1],a],["exit",o[u][1],a],["enter",d,a]],f=a.parser.constructs.insideSpan.null;f&&Pe(p,p.length,0,br(f,o.slice(u+1,l),a)),Pe(p,p.length,0,[["exit",d,a],["enter",o[l][1],a],["exit",o[l][1],a],["exit",c,a]]),Pe(o,u-1,l-u+3,p),l=u+p.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function s(o,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):(o.enter("strikethroughSequenceTemporary"),f(h))}function f(h){let w=Vn(u);if(h===126)return d>1?l(h):(o.consume(h),d++,f);if(d<2&&!n)return l(h);let C=o.exit("strikethroughSequenceTemporary"),m=Vn(h);return C._open=!m||m===2&&!!w,C._close=!w||w===2&&!!m,a(h)}}}var Jl=class{constructor(){this.map=[]}add(t,n,r){II(this,t,n,r)}consume(t){if(this.map.sort(function(s,o){return s[0]-o[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 s of i)t.push(s);i=r.pop()}this.map.length=0}};function II(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 _v(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 s=r.length-1;r[s]=r[s]==="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 pf(){return{flow:{null:{name:"table",tokenize:TI,resolveAll:NI}}}}function TI(e,t,n){let r=this,i=0,s=0,o;return a;function a(b){let $=r.events.length-1;for(;$>-1;){let R=r.events[$][1].type;if(R==="lineEnding"||R==="linePrefix")$--;else break}let G=$>-1?r.events[$][1].type:null,T=G==="tableHead"||G==="tableRow"?k:l;return T===k&&r.parser.lazy[r.now().line]?n(b):T(b)}function l(b){return e.enter("tableHead"),e.enter("tableRow"),u(b)}function u(b){return b===124||(o=!0,s+=1),c(b)}function c(b){return b===null?n(b):F(b)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),f):n(b):j(b)?V(e,c,"whitespace")(b):(s+=1,o&&(o=!1,i+=1),b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),d(b)))}function d(b){return b===null||b===124||ee(b)?(e.exit("data"),c(b)):(e.consume(b),b===92?p:d)}function p(b){return b===92||b===124?(e.consume(b),d):d(b)}function f(b){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(b):(e.enter("tableDelimiterRow"),o=!1,j(b)?V(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):h(b))}function h(b){return b===45||b===58?C(b):b===124?(o=!0,e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),w):I(b)}function w(b){return j(b)?V(e,C,"whitespace")(b):C(b)}function C(b){return b===58?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),m):b===45?(s+=1,m(b)):b===null||F(b)?A(b):I(b)}function m(b){return b===45?(e.enter("tableDelimiterFiller"),g(b)):I(b)}function g(b){return b===45?(e.consume(b),g):b===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(b))}function y(b){return j(b)?V(e,A,"whitespace")(b):A(b)}function A(b){return b===124?h(b):b===null||F(b)?!o||i!==s?I(b):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(b)):I(b)}function I(b){return n(b)}function k(b){return e.enter("tableRow"),L(b)}function L(b){return b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),L):b===null||F(b)?(e.exit("tableRow"),t(b)):j(b)?V(e,L,"whitespace")(b):(e.enter("data"),D(b))}function D(b){return b===null||b===124||ee(b)?(e.exit("data"),L(b)):(e.consume(b),b===92?U:D)}function U(b){return b===92||b===124?(e.consume(b),D):D(b)}}function NI(e,t){let n=-1,r=!0,i=0,s=[0,0,0,0],o=[0,0,0,0],a=!1,l=0,u,c,d,p=new Jl;for(;++n<e.length;){let f=e[n],h=f[1];f[0]==="enter"?h.type==="tableHead"?(a=!1,l!==0&&(Xv(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,s=[0,0,0,0],o=[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,o[2]===0&&(s[1]!==0&&(o[0]=o[1],d=ql(p,t,s,i,void 0,d),s=[0,0,0,0]),o[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],d=ql(p,t,s,i,void 0,d)),s=o,o=[s[1],n,0,0])):h.type==="tableHead"?(a=!0,l=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(l=n,s[1]!==0?(o[0]=o[1],d=ql(p,t,s,i,n,d)):o[1]!==0&&(d=ql(p,t,o,i,n,d)),i=0):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&Xv(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=_v(t.events,n))}return e}function ql(e,t,n,r,i,s){let o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(s.end=Object.assign({},ts(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));let l=ts(t.events,n[1]);if(s={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){let u=ts(t.events,n[2]),c=ts(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,w=n[3]-n[2]-1;e.add(h,w,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(s.end=Object.assign({},ts(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function Xv(e,t,n,r,i){let s=[],o=ts(t.events,n);i&&(i.end=Object.assign({},o),s.push(["exit",i,t])),r.end=Object.assign({},o),s.push(["exit",r,t]),e.add(n+1,0,s)}function ts(e,t){let n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}var LI={name:"tasklistCheck",tokenize:MI};function ff(){return{text:{91:LI}}}function MI(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"),s)}function s(l){return ee(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(l)}function a(l){return F(l)?t(l):j(l)?e.check({tokenize:PI},t,n)(l):n(l)}}function PI(e,t,n){return V(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Jv(e){return kl([lf(),cf(),df(e),pf(),ff()])}var RI={};function Kl(e){let t=this,n=e||RI,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Jv(n)),s.push(sf()),o.push(of(n))}var Wn=E(N(),1),DI={a:({children:e,href:t})=>(0,Wn.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"ss-w-md-link",children:e}),table:({children:e})=>(0,Wn.jsx)("div",{className:"ss-w-table-wrap",children:(0,Wn.jsx)("table",{className:"ss-w-md-table",children:e})}),ul:({children:e})=>(0,Wn.jsx)("ul",{className:"ss-w-md-ul",children:e}),ol:({children:e})=>(0,Wn.jsx)("ol",{className:"ss-w-md-ol",children:e}),code:({children:e})=>(0,Wn.jsx)("code",{className:"ss-w-md-code",children:e})};function qv({text:e}){return(0,Wn.jsx)("div",{className:"ss-w-md",children:(0,Wn.jsx)(Np,{remarkPlugins:[Kl],components:DI,children:e})})}var mf=E(ce(),1),re=E(N(),1),Kv=3,OI=/^(\d+)-(\d+)-(\d+)$/;function zI(e){return e.split(/\s+/).slice(0,2).map(t=>{var n;return(n=t[0])!=null?n:""}).join("").toUpperCase()}function BI(e){return e.replace(/\d{4}/g,t=>t.slice(2))}function Gv({image:e,label:t}){return(0,re.jsx)("span",{className:"ss-w-ecard-crest",style:{backgroundImage:`url(${e})`},...t?{role:"img",title:t,"aria-label":t}:{"aria-hidden":"true"}})}function FI({w:e,d:t,l:n}){return e+t+n===0?null:(0,re.jsxs)("span",{className:"ss-w-form","aria-hidden":"true",children:[e>0?(0,re.jsx)("span",{className:"ss-w-form-w",style:{flexGrow:e}}):null,t>0?(0,re.jsx)("span",{className:"ss-w-form-d",style:{flexGrow:t}}):null,n>0?(0,re.jsx)("span",{className:"ss-w-form-l",style:{flexGrow:n}}):null]})}function UI({s:e}){let t=OI.exec(e.value);return t?(0,re.jsxs)("div",{className:"ss-w-ecard-cell",children:[(0,re.jsx)("span",{className:"ss-w-ecard-cval",children:(0,re.jsx)(FI,{w:Number(t[1]),d:Number(t[2]),l:Number(t[3])})}),(0,re.jsx)("span",{className:"ss-w-ecard-clabel",children:e.value})]}):(0,re.jsxs)("div",{className:"ss-w-ecard-cell",children:[(0,re.jsx)("span",{className:"ss-w-ecard-cval",children:e.value}),(0,re.jsx)("span",{className:"ss-w-ecard-clabel",children:e.label})]})}function QI({stats:e}){if(e.length===0)return null;let t=Math.min(e.length,4);return(0,re.jsx)("div",{className:"ss-w-ecard-strip",style:{gridTemplateColumns:`repeat(${t}, 1fr)`},children:e.map(n=>(0,re.jsx)(UI,{s:n},n.label+n.value))})}function Yv({c:e,showScopeCrest:t}){let n=e.scopes.length===1?e.scopes[0]:null;return(0,re.jsxs)("div",{className:"ss-w-ecard-hd",children:[(0,re.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?"":zI(e.name)}),(0,re.jsxs)("span",{className:"ss-w-ecard-idtext",children:[(0,re.jsx)("span",{className:"ss-w-nm",children:e.name}),e.sub?(0,re.jsx)("span",{className:"ss-w-sub",children:e.sub}):null]}),(0,re.jsxs)("span",{className:"ss-w-ecard-meta",children:[t&&(n!=null&&n.image)?(0,re.jsx)(Gv,{image:n.image,label:n.label}):null,e.season?(0,re.jsx)("span",{className:"ss-w-ecard-season",children:BI(e.season)}):null]})]})}function HI({scopes:e,active:t,onSelect:n}){return(0,re.jsx)("div",{className:"ss-w-ecard-scopes",role:"tablist",children:e.map((r,i)=>{var s;return(0,re.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,re.jsx)(Gv,{image:r.image}):r.label},String((s=r.competitionId)!=null?s:"all"))})})}function VI({c:e}){let[t,n]=(0,mf.useState)(0);if(!(e.scopes.length>0))return(0,re.jsx)("div",{className:"ss-w-ecard ss-w-ecard-bare","data-kind":e.kind,children:(0,re.jsx)(Yv,{c:e,showScopeCrest:!1})});let i=e.scopes.length>1,s=e.scopes[i&&e.scopes[t]?t:0];return(0,re.jsxs)("div",{className:"ss-w-ecard","data-kind":e.kind,children:[(0,re.jsx)(Yv,{c:e,showScopeCrest:!i}),i?(0,re.jsx)(HI,{scopes:e.scopes,active:t,onSelect:n}):null,(0,re.jsx)(QI,{stats:s.stats})]})}function Zv({cards:e,disabled:t,showLessLabel:n="Show less",showMoreLabel:r=i=>`Show ${i} more`}){let[i,s]=(0,mf.useState)(!1);if(e.length===0)return null;let o=i?e:e.slice(0,Kv),a=e.length-Kv;return(0,re.jsxs)("div",{className:"ss-w-cards",children:[o.map(l=>(0,re.jsx)(VI,{c:l},l.id)),a>0?(0,re.jsx)("button",{type:"button",className:"ss-w-cards-more",disabled:t,onClick:()=>s(l=>!l),children:i?n:r(a)}):null]})}var gf=E(ce(),1);var ns=E(ce(),1);var $v=E(ce(),1),ek=E(N(),1),jI=4e3;function Yl({toast:e,onDismiss:t}){return(0,$v.useEffect)(()=>{if(!e)return;let n=setTimeout(t,jI);return()=>clearTimeout(n)},[e,t]),e?(0,ek.jsx)("div",{className:`ss-w-toast ss-w-toast-${e.kind}`,role:"status","aria-live":"polite",children:e.text}):null}var rs=E(N(),1);function _I(e){return Promise.race([e,new Promise((t,n)=>setTimeout(()=>n(new Error("add-to-slip timed out")),1e4))])}function Mo({selection:e,shownOdds:t,marketName:n,slip:r,ui:i}){let[s,o]=(0,ns.useState)(!1),[a,l]=(0,ns.useState)(!1),[u,c]=(0,ns.useState)(null),d=(0,ns.useCallback)(()=>c(null),[]),p=r.onAddToSlip;return!i||!p||!e?null:(0,rs.jsxs)("div",{className:"ss-w-slip",children:[(0,rs.jsx)("button",{type:"button",className:"ss-w-slip-btn",disabled:s||a,onClick:async()=>{o(!0);try{let h=await _I(Promise.resolve(p(e)));if(h!=null&&!Ad(h))throw new Error("malformed add-to-slip result");let w=h!=null?h:void 0;if(c(vw(w,t||e.oddsDecimal.toFixed(2),i)),l(xw(w)),ul(w)&&r.onMarketClicked)try{r.onMarketClicked(n)}catch{}}catch{c({kind:"error",text:i.slipFailed})}finally{o(!1)}},children:a?i.inSlip:i.addToSlip}),(0,rs.jsx)(Yl,{toast:u,onDismiss:d})]})}function tk({it:e,slip:t,ui:n}){var i;let r=e.addToSlipEnabled?Mw(e,t.conversationId):null;return(0,rs.jsx)(Mo,{selection:r,shownOdds:(i=e.odds)!=null?i:"",marketName:e.market,slip:t,ui:n})}var Po=E(N(),1);function is({previous:e,current:t,direction:n,ui:r}){var o,a,l,u;if(e===void 0||n===void 0)return null;let i=n==="shortened"?(o=r==null?void 0:r.oddsShortened)!=null?o:"shortened":(a=r==null?void 0:r.oddsDrifted)!=null?a:"drifted",s=(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,Po.jsxs)("span",{className:"ss-w-move",role:"img","aria-label":s,children:[(0,Po.jsx)("span",{className:"ss-w-move-prev","aria-hidden":"true",children:e}),(0,Po.jsx)("span",{className:"ss-w-move-arrow","aria-hidden":"true",children:n==="shortened"?"\u25BC":"\u25B2"})]})}var nk=E(ce(),1),hf=E(N(),1);function XI(e){return(e!=null?e:"").trim().slice(0,1).toUpperCase()||"?"}function Re({url:e,name:t,kind:n}){let r=n==="comp"?"ss-w-bi-comp-logo":"ss-w-bi-crest",[i,s]=(0,nk.useState)(!1);return e&&!i?(0,hf.jsx)("img",{className:r,src:e,alt:"","aria-hidden":"true",onError:()=>s(!0)}):(0,hf.jsx)("span",{className:`${r} ss-w-bi-crest-mono`,"aria-hidden":"true",children:XI(t)})}var Gl=E(ce(),1);var li=E(N(),1),JI={pin:{viewBox:"0 0 24 24",strokeWidth:1.4,transform:"scale(1.5)",d:"M9.5 1.5 14.5 6.5 13 8l-.5-.5-3 3 .3 2.2-1.4 1.4L5.6 11.3l-3.3 3.3-1-1 3.3-3.3L1.9 7.5l1.4-1.4 2.2.3 3-3L8 2.9z"},star:{viewBox:"0 0 24 24",strokeWidth:2,d:"M12 2.5l2.9 5.9 6.5.95-4.7 4.58 1.1 6.47L12 17.35 6.1 20.4l1.1-6.47L2.5 9.35l6.5-.95z"},bookmark:{viewBox:"0 0 24 24",strokeWidth:2,d:"M7 3h10a1.5 1.5 0 0 1 1.5 1.5V21l-6.5-3.6L5.5 21V4.5A1.5 1.5 0 0 1 7 3z"}};function Yt({pin:e,monitor:t,ui:n}){let[r,i]=(0,Gl.useState)(null),s=(0,Gl.useCallback)(()=>i(null),[]);if(!t||!t.enabled)return null;let o=jw(e),a=t.isPinned(o),l=e.kind==="match"?{pin:n.matchPinLabel,unpin:n.matchUnpinLabel}:{pin:n.pinLabel,unpin:n.unpinLabel},u=()=>{let d=t.togglePin({...e,key:o});d==="match_limit"?i({kind:"error",text:n.matchLimitToast}):d==="market_limit"&&i({kind:"error",text:n.marketLimitToast})},c=JI[n.pinIcon];return(0,li.jsxs)("div",{className:"ss-w-pin-wrap",children:[(0,li.jsx)("button",{type:"button",className:"ss-w-pin","data-on":a||void 0,"data-icon":n.pinIcon,"aria-pressed":a,"aria-label":a?l.unpin:l.pin,onClick:u,children:(0,li.jsx)("svg",{viewBox:c.viewBox,"aria-hidden":"true",children:(0,li.jsx)("path",{transform:c.transform,d:c.d,fill:a?"currentColor":"none",stroke:a?"none":"currentColor",strokeWidth:c.strokeWidth,strokeLinejoin:"round",strokeLinecap:"round"})})}),(0,li.jsx)(Yl,{toast:r,onDismiss:s})]})}var Q=E(N(),1);function ik({stats:e}){return(0,Q.jsx)("div",{className:"ss-w-bi-rows",children:e.map(t=>(0,Q.jsxs)("div",{className:"ss-w-bi-row",children:[(0,Q.jsx)("span",{className:"ss-w-bi-row-lbl",children:t.label}),(0,Q.jsx)("span",{className:"ss-w-bi-row-num",children:t.value})]},`${t.label}:${t.value}`))})}function qI({scopes:e}){var i,s;let[t,n]=(0,gf.useState)(0),r=(s=(i=e[t])!=null?i:e[0])!=null?s:{key:"",label:"",stats:[]};return(0,Q.jsxs)("div",{className:"ss-w-bi-scoped",children:[(0,Q.jsx)("div",{className:"ss-w-bi-scopes",role:"group",children:e.map((o,a)=>(0,Q.jsx)("button",{type:"button",className:"ss-w-bi-chip","aria-pressed":a===t,onClick:()=>n(a),children:o.label},o.key))}),(0,Q.jsx)(ik,{stats:r.stats},r.key)]})}function KI(e){return!!e.scopes&&e.scopes.length>=2||e.stats.length>0}function YI({it:e,ui:t}){var l,u,c,d;let[n,r]=(0,gf.useState)(!1),i=!!e.scopes&&e.scopes.length>=2,s=KI(e),o=!!e.text;if(!o&&!s)return null;let a=s||((u=(l=e.text)==null?void 0:l.length)!=null?u:0)>90;return(0,Q.jsxs)("div",{className:"ss-w-bi-reason",children:[(0,Q.jsx)("span",{className:"ss-w-bi-chart","aria-hidden":"true"}),(0,Q.jsxs)("div",{className:"ss-w-bi-reason-body",children:[o?(0,Q.jsx)("p",{className:`ss-w-bi-text${n?"":" ss-w-bi-text-clamp"}`,children:e.text}):null,n&&s?i?(0,Q.jsx)(qI,{scopes:e.scopes}):(0,Q.jsx)(ik,{stats:e.stats}):null]}),a?(0,Q.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,Q.jsx)("span",{className:`ss-w-bi-arrow${n?" ss-w-bi-arrow-open":""}`,"aria-hidden":"true"})}):null]})}function rk({it:e}){return e.homeTeamName&&e.awayTeamName?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Re,{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)(Re,{kind:"team",url:e.awayCrest,name:e.awayTeamName})]}):e.fixture?(0,Q.jsx)("span",{className:"ss-w-bi-fixture-txt",children:e.fixture}):e.competition?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Re,{kind:"comp",url:e.competitionCrest,name:e.competition}),(0,Q.jsx)("span",{className:"ss-w-bi-comp",children:e.competition})]}):null}function GI({it:e,ui:t,slip:n,monitor:r}){var p,f,h;let i=e.isLive||e.phase==="live",s=e.kickoffUtc&&(t!=null&&t.bettingKickoff)?t.bettingKickoff(e.kickoffUtc):void 0,o=(p=e.kickoffLabel)!=null?p:s?`${s.dayLabel} ${s.time}`:void 0,l=!!e.homeTeamName&&!!e.awayTeamName||!!e.fixture,u=!!r&&e.pinEnabled,c=l||!!e.competition||i||!!o||u,d=(0,Q.jsxs)(Q.Fragment,{children:[i?(0,Q.jsxs)("span",{className:"ss-w-bi-live",children:[(0,Q.jsx)("span",{className:"ss-w-bi-live-dot","aria-hidden":"true"}),(f=t==null?void 0:t.liveLabel)!=null?f:"Live"]}):null,o?(0,Q.jsx)("span",{className:"ss-w-bi-kick",children:o}):null,u&&t?(0,Q.jsx)(Yt,{ui:t,monitor:r,pin:{kind:"match",matchId:e.matchId}}):null]});return(0,Q.jsxs)("div",{className:"ss-w-binsight",children:[c?l?(0,Q.jsxs)("div",{className:"ss-w-bi-head",children:[e.competition||i||o||u?(0,Q.jsxs)("div",{className:"ss-w-bi-meta",children:[(0,Q.jsx)("span",{className:"ss-w-bi-meta-left",children:e.competition?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Re,{kind:"comp",url:e.competitionCrest,name:e.competition}),(0,Q.jsx)("span",{className:"ss-w-bi-comp",children:e.competition})]}):null}),(0,Q.jsx)("span",{className:"ss-w-bi-meta-right",children:d})]}):null,(0,Q.jsx)("div",{className:"ss-w-bi-fixture-line",children:(0,Q.jsx)(rk,{it:e})})]}):(0,Q.jsxs)("div",{className:"ss-w-bi-header",children:[(0,Q.jsx)("span",{className:"ss-w-bi-header-left",children:(0,Q.jsx)(rk,{it:e})}),(0,Q.jsx)("span",{className:"ss-w-bi-header-right",children:d})]}):null,(0,Q.jsxs)("div",{className:"ss-w-bi-action",children:[e.market?(0,Q.jsx)("span",{className:"ss-w-bi-market",children:e.market}):null,(0,Q.jsxs)("div",{className:"ss-w-bi-pick-row",children:[e.selection?(0,Q.jsx)("span",{className:"ss-w-bi-sel",children:e.selection}):null,e.odds?(0,Q.jsxs)("span",{className:"ss-w-bi-odds",children:[(0,Q.jsx)("b",{children:e.odds}),(0,Q.jsx)(is,{previous:e.previousOdds,current:e.odds,direction:e.movementDirection,ui:t}),e.bookmaker?(0,Q.jsx)("span",{className:"ss-w-bi-book",children:e.bookmaker}):null]}):null,(0,Q.jsx)(tk,{it:e,slip:n,ui:t}),u&&t?(0,Q.jsx)(Yt,{ui:t,monitor:r,pin:{kind:"selection",matchId:e.matchId,marketDeveloperName:e.marketDeveloperName,selectionLabel:e.selectionLabel,line:e.line,matchOddsId:e.matchOddsId}}):null]})]}),e.isMarketFloor?(0,Q.jsx)("span",{className:"ss-w-bi-floor",children:(h=t==null?void 0:t.marketFloorLabel)!=null?h:"Market price \xB7 not a value pick"}):null,(0,Q.jsx)(YI,{it:e,ui:t}),e.disclaimer?(0,Q.jsx)("p",{className:"ss-w-bi-disc",children:e.disclaimer}):null]})}function sk({insights:e,ui:t,slip:n,monitor:r}){return!e||e.length===0?null:(0,Q.jsx)("div",{className:"ss-w-binsights",children:e.map(i=>(0,Q.jsx)(GI,{it:i,ui:t,slip:n,monitor:r},i.id))})}var ak=E(ce(),1);var J=E(N(),1);function ok({vm:e,row:t,ui:n,slip:r,inSlipIds:i}){let s=e.addToSlipEnabled?Pw(e,t,r.conversationId):null,o=!!i&&t.matchOddsId!=null&&!!i[t.matchOddsId];return(0,J.jsxs)("div",{className:"ss-w-mo-row",children:[(0,J.jsx)("span",{className:"ss-w-mo-sel",children:t.selection}),(0,J.jsx)(is,{previous:t.previousOdds,current:t.odds,direction:t.movementDirection,ui:n}),(0,J.jsx)("span",{className:"ss-w-mo-price",children:t.odds}),o&&n?(0,J.jsxs)("span",{className:"ss-w-mon-inslip",children:["\u2713 ",n.inSlipLabel]}):null,(0,J.jsx)(Mo,{selection:s,shownOdds:t.odds,marketName:e.market,slip:r,ui:n})]})}function ZI({vm:e,ui:t,slip:n,monitor:r,inSlipIds:i,hideHeader:s,pinRef:o}){var w,C,m,g;let[a,l]=(0,ak.useState)(!1),u=e.kickoffUtc&&(t!=null&&t.bettingKickoff)?t.bettingKickoff(e.kickoffUtc):void 0,c=(w=e.kickoffLabel)!=null?w:u?`${u.dayLabel} ${u.time}`:void 0,d=!!e.homeTeamName&&!!e.awayTeamName,p=!!r&&e.pinEnabled,f=p&&!o,h=!!e.competition||e.isLive||!!c||p;return(0,J.jsxs)("div",{className:s?"ss-w-mocard ss-w-mocard--bare":"ss-w-mocard",children:[!s&&(0,J.jsxs)(J.Fragment,{children:[h?(0,J.jsxs)("div",{className:"ss-w-bi-header",children:[(0,J.jsx)("span",{className:"ss-w-bi-header-left",children:e.competition?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Re,{kind:"comp",url:e.competitionCrest,name:e.competition}),(0,J.jsx)("span",{className:"ss-w-bi-comp",children:e.competition})]}):null}),(0,J.jsxs)("span",{className:"ss-w-bi-header-right",children:[e.isLive?(0,J.jsxs)("span",{className:"ss-w-bi-live",children:[(0,J.jsx)("span",{className:"ss-w-bi-live-dot","aria-hidden":"true"}),(C=t==null?void 0:t.liveLabel)!=null?C:"Live"]}):null,c?(0,J.jsx)("span",{className:"ss-w-bi-kick",children:c}):null,p&&t?(0,J.jsx)(Yt,{ui:t,monitor:r,pin:o!=null?o:{kind:"match",matchId:e.matchId}}):null]})]}):null,d||e.fixture||e.market||f?(0,J.jsxs)("div",{className:"ss-w-mo-sub",children:[d?(0,J.jsxs)("div",{className:"ss-w-bi-fixture",children:[(0,J.jsx)(Re,{kind:"team",url:e.homeCrest,name:e.homeTeamName}),(0,J.jsx)("span",{className:"ss-w-bi-team",children:e.homeTeamName}),(0,J.jsx)("span",{className:"ss-w-bi-vs","aria-hidden":"true",children:"vs"}),(0,J.jsx)("span",{className:"ss-w-bi-team",children:e.awayTeamName}),(0,J.jsx)(Re,{kind:"team",url:e.awayCrest,name:e.awayTeamName})]}):e.fixture?(0,J.jsx)("span",{className:"ss-w-mo-teams",children:e.fixture}):null,e.market||f?(0,J.jsxs)("div",{className:"ss-w-mo-market-row",children:[e.market?(0,J.jsx)("span",{className:"ss-w-mo-market",children:e.market}):null,f&&t?(0,J.jsx)(Yt,{ui:t,monitor:r,pin:{kind:"market",matchId:e.matchId,marketDeveloperName:e.marketDeveloperName,line:e.mainLine}}):null]}):null]}):null]}),(0,J.jsxs)("div",{className:"ss-w-mo-rows",children:[e.mainRows.map(y=>(0,J.jsx)(ok,{vm:e,row:y,ui:t,slip:n,inSlipIds:i},y.key)),a?e.moreRows.map(y=>(0,J.jsx)(ok,{vm:e,row:y,ui:t,slip:n,inSlipIds:i},y.key)):null]}),e.moreRows.length>0?(0,J.jsxs)("button",{type:"button",className:"ss-w-mo-more","aria-expanded":a,onClick:()=>l(y=>!y),children:[(0,J.jsx)("span",{children:a?(m=t==null?void 0:t.hideLines)!=null?m:"Hide lines":`${(g=t==null?void 0:t.moreLines)!=null?g:"More lines"} (${e.moreRows.length})`}),(0,J.jsx)("span",{className:`ss-w-mo-more-chev${a?" ss-w-mo-more-chev-up":""}`,"aria-hidden":"true"})]}):null,e.bookmaker?(0,J.jsx)("div",{className:"ss-w-mo-foot",children:(0,J.jsx)("span",{children:e.bookmaker})}):null,e.disclaimer?(0,J.jsx)("p",{className:"ss-w-bi-disc",children:e.disclaimer}):null]})}function ss({cards:e,ui:t,slip:n,monitor:r,inSlipIds:i,hideHeader:s,pinRef:o}){return!e||e.length===0?null:(0,J.jsx)("div",{className:"ss-w-mocards",children:e.map(a=>(0,J.jsx)(ZI,{vm:a,ui:t,slip:n,monitor:r,inSlipIds:i,hideHeader:s,pinRef:o},a.id))})}var ne=E(N(),1);function eT(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 tT({vm:e,ui:t,monitor:n}){var a,l,u,c,d,p;let r=eT(e,t),i=r?`, ${r}`:"",s=t!=null&&t.chartAria?t.chartAria(e.opening,e.current,r,e.windowHours):`Price movement over the last ${e.windowHours} hours: opened at ${e.opening}, currently ${e.current}${i}.`,o=!!n&&e.pinEnabled;return(0,ne.jsxs)("div",{className:"ss-w-omcard",children:[(0,ne.jsxs)("div",{className:"ss-w-om-head",children:[(0,ne.jsx)("span",{className:"ss-w-om-market",children:e.market}),(0,ne.jsx)("span",{className:"ss-w-om-tag",children:(a=t==null?void 0:t.priceMovement)!=null?a:"Price movement"}),o&&t?(0,ne.jsx)(Yt,{ui:t,monitor:n,pin:{kind:"selection",matchId:e.matchId,marketDeveloperName:e.marketDeveloperName,selectionLabel:e.selectionLabel,line:e.line,withHistory:!0,matchOddsId:e.matchOddsId}}):null]}),e.fixture?(0,ne.jsxs)("div",{className:"ss-w-om-fixture",children:[(0,ne.jsx)("span",{children:e.fixture}),e.competition?(0,ne.jsx)("span",{className:"ss-w-om-comp",children:e.competition}):null]}):null,(0,ne.jsx)("div",{className:"ss-w-om-sel",children:e.selection}),(0,ne.jsx)(is,{previous:e.opening,current:e.current,direction:e.direction,ui:t}),e.geometry===null?(0,ne.jsx)("div",{className:"ss-w-om-empty",children:e.observationCount===1?(l=t==null?void 0:t.singlePricePoint)!=null?l:"Only one price recorded so far for this selection.":(u=t==null?void 0:t.notEnoughHistory)!=null?u:"No price history recorded yet for this selection."}):(0,ne.jsxs)("svg",{className:"ss-w-om-chart",viewBox:e.geometry.viewBox,width:"100%",role:"img","aria-label":s,children:[e.geometry.gridlines.map(f=>(0,ne.jsxs)("g",{children:[(0,ne.jsx)("line",{className:"ss-w-om-grid",x1:40,y1:f.y,x2:312,y2:f.y}),(0,ne.jsx)("text",{className:"ss-w-om-ylab",x:34,y:f.y+3,textAnchor:"end",children:f.price.toFixed(2)})]},f.price)),(0,ne.jsx)("path",{className:"ss-w-om-line",d:e.geometry.path,fill:"none"}),e.geometry.markers.map((f,h)=>(0,ne.jsx)("circle",{className:"ss-w-om-dot",cx:f.x,cy:f.y,r:2.5},h)),t!=null&&t.chartTimeLabel?(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)("text",{className:"ss-w-om-xlab",x:40,y:132,textAnchor:"start",children:t.chartTimeLabel(e.geometry.startMs)}),(0,ne.jsx)("text",{className:"ss-w-om-xlab",x:312,y:132,textAnchor:"end",children:t.chartTimeLabel(e.geometry.endMs)})]}):(0,ne.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,ne.jsxs)("div",{className:"ss-w-om-foot",children:[(0,ne.jsxs)("span",{children:[(c=t==null?void 0:t.openingLabel)!=null?c:"Opening"," ",(0,ne.jsx)("b",{children:e.opening})]}),(0,ne.jsxs)("span",{children:[(d=t==null?void 0:t.currentLabel)!=null?d:"Current"," ",(0,ne.jsx)("b",{children:e.current})]})]}),e.bookmaker?(0,ne.jsx)("div",{className:"ss-w-om-foot",children:(0,ne.jsx)("span",{children:e.bookmaker})}):null,e.excludedCount>0?(0,ne.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,ne.jsx)("div",{className:"ss-w-om-susp",children:(p=t==null?void 0:t.selectionSuspended)!=null?p:"This selection is not currently available to bet."}):null,e.disclaimer?(0,ne.jsx)("div",{className:"ss-w-om-disc",children:e.disclaimer}):null]})}function Zl({cards:e,ui:t,monitor:n}){return!e||e.length===0?null:(0,ne.jsx)("div",{className:"ss-w-omcards",children:e.map(r=>(0,ne.jsx)(tT,{vm:r,ui:t,monitor:n},r.id))})}var _n=E(N(),1);function $l({actions:e,loading:t,disabled:n,onAct:r}){return e.length===0&&!t?null:(0,_n.jsxs)("div",{className:"ss-w-actions",children:[e.map((i,s)=>(0,_n.jsx)("button",{type:"button",className:"ss-w-abtn",disabled:n,onClick:()=>r(i),children:i.label},`${i.label}-${s}`)),e.length===0&&t?(0,_n.jsxs)(_n.Fragment,{children:[(0,_n.jsx)("span",{className:"ss-w-abtn-shimmer"}),(0,_n.jsx)("span",{className:"ss-w-abtn-shimmer"})]}):null]})}var Nt=E(N(),1),nT=3;function uk({tile:e,onTap:t}){var s;let n=e.span==="full"?"ss-w-dash-tile--full":"ss-w-dash-tile--half",r=((s=e.imageUrls)!=null?s:[]).slice(0,nT),i=!!e.badgeText||r.length>0;return(0,Nt.jsxs)("button",{type:"button",className:`ss-w-dash-tile ${n}`,onClick:t,children:[(0,Nt.jsx)("span",{className:"ss-w-dash-tile-icon",children:(0,Nt.jsx)(ny,{name:e.icon})}),(0,Nt.jsxs)("span",{className:"ss-w-dash-tile-body",children:[(0,Nt.jsx)("span",{className:"ss-w-dash-tile-title",children:e.title}),e.subtitle?(0,Nt.jsx)("span",{className:"ss-w-dash-tile-subtitle",children:e.subtitle}):null,i?(0,Nt.jsxs)("span",{className:"ss-w-dash-tile-meta",children:[e.badgeText?(0,Nt.jsx)("span",{className:"ss-w-dash-tile-badge",children:e.badgeText}):null,r.length>0?(0,Nt.jsx)("span",{className:"ss-w-dash-tile-crests",children:r.map((o,a)=>(0,Nt.jsx)("span",{className:"ss-w-dash-tile-crest",style:{backgroundImage:`url(${o})`},"aria-hidden":"true"},`${o}-${a}`))}):null]}):null]}),(0,Nt.jsx)("span",{className:"ss-w-dash-tile-chevron",children:(0,Nt.jsx)(pl,{})})]})}var Xn=E(N(),1),wf={market:"ss-w-dash--market",goal:"ss-w-dash--goal",discovery:"ss-w-dash--discovery"};function rT(e){return Object.prototype.hasOwnProperty.call(wf,e)?wf[e]:wf.goal}function ck({dashboard:e,onTap:t}){return(0,Xn.jsxs)("div",{className:`ss-w-dash ${rT(e.layout)}`,children:[(0,Xn.jsxs)("div",{className:"ss-w-dash-head",children:[(0,Xn.jsx)("span",{className:"ss-w-dash-title",children:e.title}),e.subtitle?(0,Xn.jsx)("span",{className:"ss-w-dash-subtitle",children:e.subtitle}):null]}),(0,Xn.jsx)("div",{className:"ss-w-dash-grid",children:e.tiles.map((n,r)=>(0,Xn.jsx)(uk,{tile:n,onTap:()=>t(n,r)},`${n.title}-${r}`))}),e.footerTip?(0,Xn.jsx)("span",{className:"ss-w-dash-foot",children:e.footerTip}):null]})}var W=E(N(),1);function iT(e){return e==="W"?"ss-w-fandash-teamform-cell--win":e==="L"?"ss-w-fandash-teamform-cell--loss":"ss-w-fandash-teamform-cell--draw"}function dk({m:e,subjectCrestUrl:t,subjectName:n}){var o;let r=(0,W.jsx)(Re,{url:t!=null?t:void 0,name:n,kind:"team"}),i=(0,W.jsx)(Re,{url:(o=e.opponentCrestUrl)!=null?o:void 0,kind:"team"}),s=e.teamIsHome?`${e.teamScore} - ${e.oppScore}`:`${e.oppScore} - ${e.teamScore}`;return(0,W.jsxs)("div",{className:`ss-w-fandash-teamform-cell ${iT(e.result)}`,children:[e.teamIsHome?r:i,(0,W.jsx)("span",{className:"ss-w-fandash-teamform-score",children:s}),e.teamIsHome?i:r]})}var sT=5;function oT(e){return Array.from({length:sT},(t,n)=>n).flatMap(t=>[(0,W.jsx)("span",{className:"ss-w-fandash-teamform-slot",children:e.homeForm[t]?(0,W.jsx)(dk,{m:e.homeForm[t],subjectCrestUrl:e.homeCrestUrl,subjectName:e.homeName}):null},`h-${t}`),(0,W.jsx)("span",{className:"ss-w-fandash-teamform-slot",children:e.awayForm[t]?(0,W.jsx)(dk,{m:e.awayForm[t],subjectCrestUrl:e.awayCrestUrl,subjectName:e.awayName}):null},`a-${t}`)])}function pk({card:e}){var r,i,s,o;let{data:t}=e,n=t.h2H;return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-fixture",children:[(0,W.jsxs)("span",{className:"ss-w-fandash-eyebrow",children:[e.title," \xB7 ",t.competition]}),(0,W.jsxs)("div",{className:"ss-w-fandash-fixture-teams",children:[(0,W.jsxs)("span",{className:"ss-w-fandash-fixture-team",children:[(0,W.jsx)(Re,{url:(r=t.homeCrestUrl)!=null?r:void 0,name:t.homeName,kind:"team"}),(0,W.jsx)("span",{className:"ss-w-fandash-fixture-name",children:t.homeName})]}),(0,W.jsx)("span",{className:"ss-w-fandash-fixture-vs",children:"v"}),(0,W.jsxs)("span",{className:"ss-w-fandash-fixture-team ss-w-fandash-fixture-team--away",children:[(0,W.jsx)("span",{className:"ss-w-fandash-fixture-name",children:t.awayName}),(0,W.jsx)(Re,{url:(i=t.awayCrestUrl)!=null?i:void 0,name:t.awayName,kind:"team"})]})]}),(0,W.jsxs)("div",{className:"ss-w-fandash-fixture-meta",children:[(0,W.jsx)("span",{className:"ss-w-fandash-fixture-kickoff",children:t.kickoffLabel}),t.venue?(0,W.jsxs)("span",{className:"ss-w-fandash-fixture-venue",children:[" \xB7 ",t.venue]}):null]})]}),(0,W.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-lastfive",children:[(0,W.jsx)("span",{className:"ss-w-fandash-eyebrow",children:t.formLabel}),(0,W.jsxs)("div",{className:"ss-w-fandash-teamform-head",children:[(0,W.jsxs)("span",{className:"ss-w-fandash-teamform-head-team",children:[(0,W.jsx)(Re,{url:(s=t.homeCrestUrl)!=null?s:void 0,name:t.homeName,kind:"team"}),(0,W.jsx)("span",{className:"ss-w-fandash-teamform-head-name",children:t.homeName})]}),(0,W.jsxs)("span",{className:"ss-w-fandash-teamform-head-team",children:[(0,W.jsx)(Re,{url:(o=t.awayCrestUrl)!=null?o:void 0,name:t.awayName,kind:"team"}),(0,W.jsx)("span",{className:"ss-w-fandash-teamform-head-name",children:t.awayName})]})]}),(0,W.jsx)("div",{className:"ss-w-fandash-teamform-rows",children:oT(t)})]}),n||t.fact?(0,W.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-h2h",children:[n?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("span",{className:"ss-w-fandash-eyebrow",children:n.label}),(0,W.jsxs)("div",{className:"ss-w-fandash-split",children:[(0,W.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,W.jsx)("span",{className:"ss-w-fandash-split-value",children:n.wins}),(0,W.jsx)("span",{className:"ss-w-fandash-split-label",children:n.homeWinsLabel})]}),(0,W.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,W.jsx)("span",{className:"ss-w-fandash-split-value",children:n.draws}),(0,W.jsx)("span",{className:"ss-w-fandash-split-label",children:n.drawsLabel})]}),(0,W.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,W.jsx)("span",{className:"ss-w-fandash-split-value",children:n.losses}),(0,W.jsx)("span",{className:"ss-w-fandash-split-label",children:n.awayWinsLabel})]})]})]}):null,t.fact?(0,W.jsx)("span",{className:"ss-w-fandash-fact",children:t.fact}):null]}):null]})}var ui=E(ce(),1),cn=E(N(),1),aT=864e5;function lT(e,t,n){let r=Math.floor((e*1e3-t)/1e3);if(r<=0)return null;let i=Math.floor(r/86400),s=Math.floor(r%86400/3600),o=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(s),unit:"h"}];let u=[{value:l(s),unit:"h"},{value:l(o),unit:"m"}];return n&&u.push({value:l(a),unit:"s"}),u}function fk({card:e}){var l;let{data:t}=e,n={d:t.daysUnit,h:t.hoursUnit,m:t.minutesUnit,s:t.secondsUnit},[r,i]=(0,ui.useState)(()=>Date.now()),[s]=(0,ui.useState)(()=>typeof window!="undefined"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches),o=t.kickoffUnix*1e3-r<aT;(0,ui.useEffect)(()=>{if(s)return;let u=window.setInterval(()=>i(Date.now()),o?1e3:6e4);return()=>window.clearInterval(u)},[s,o]);let a=lT(t.kickoffUnix,r,o&&!s);return(0,cn.jsx)("div",{className:"ss-w-fandash-card ss-w-fandash-countdown",children:(0,cn.jsxs)("div",{className:"ss-w-fandash-countdown-top",children:[(0,cn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:(l=e.title)!=null?l:"Kick-off in"}),a?(0,cn.jsx)("span",{className:"ss-w-fandash-countdown-clock",children:a.map((u,c)=>(0,cn.jsxs)(ui.Fragment,{children:[c>0?(0,cn.jsx)("span",{className:"ss-w-fandash-countdown-colon",children:":"}):null,(0,cn.jsxs)("span",{className:"ss-w-fandash-countdown-seg",children:[(0,cn.jsx)("span",{className:"ss-w-fandash-countdown-value",children:u.value}),(0,cn.jsx)("span",{className:"ss-w-fandash-countdown-unit",children:n[u.unit]})]})]},u.unit))}):null]})})}var gk=E(ce(),1);var ke=E(N(),1),yf=3;function mk({name:e,crestUrl:t}){return(0,ke.jsxs)("span",{className:"ss-w-fandash-injuries-col-head",children:[(0,ke.jsx)(Re,{url:t!=null?t:void 0,name:e,kind:"team"}),(0,ke.jsx)("span",{className:"ss-w-fandash-injuries-col-head-name",children:e})]})}function hk({rows:e,emptyLabel:t,limit:n}){if(e.length===0)return(0,ke.jsx)("span",{className:"ss-w-fandash-injuries-empty",children:t});let r=n===void 0?e:e.slice(0,n);return(0,ke.jsx)("ul",{className:"ss-w-fandash-injury-list",children:r.map((i,s)=>(0,ke.jsxs)("li",{className:"ss-w-fandash-injury-row",children:[(0,ke.jsx)("span",{className:"ss-w-fandash-injury-name",children:i.playerName}),(0,ke.jsxs)("span",{className:"ss-w-fandash-injury-meta",children:[(0,ke.jsx)("span",{className:"ss-w-fandash-injury-status",children:i.status}),i.injuryType?(0,ke.jsx)("span",{className:"ss-w-fandash-injury-type",children:i.injuryType}):null,i.expectedReturnLabel?(0,ke.jsx)("span",{className:"ss-w-fandash-injury-return",children:i.expectedReturnLabel}):null]})]},`${i.playerName}-${s}`))})}function wk({card:e,ui:t}){var u,c;let{data:n}=e,[r,i]=(0,gk.useState)(!1),s=Math.max(0,n.ours.length-yf)+Math.max(0,n.theirs.length-yf),o=r?void 0:yf,a=(u=t==null?void 0:t.showMore)!=null?u:(d=>`Show ${d} more`),l=(c=t==null?void 0:t.showLess)!=null?c:"Show less";return(0,ke.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-injuries",children:[e.title?(0,ke.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,ke.jsxs)("div",{className:"ss-w-fandash-injuries-cols",children:[(0,ke.jsxs)("div",{className:"ss-w-fandash-injuries-col",children:[(0,ke.jsx)(mk,{name:n.oursName,crestUrl:n.oursCrestUrl}),(0,ke.jsx)(hk,{rows:n.ours,emptyLabel:n.emptyLabel,limit:o})]}),(0,ke.jsx)("div",{className:"ss-w-fandash-injuries-divider"}),(0,ke.jsxs)("div",{className:"ss-w-fandash-injuries-col",children:[(0,ke.jsx)(mk,{name:n.theirsName,crestUrl:n.theirsCrestUrl}),(0,ke.jsx)(hk,{rows:n.theirs,emptyLabel:n.emptyLabel,limit:o})]})]}),s>0?(0,ke.jsx)("button",{type:"button",className:"ss-w-fandash-injuries-more","aria-expanded":r,onClick:()=>i(d=>!d),children:r?l:a(s)}):null]})}var os=E(N(),1);function yk({card:e}){return(0,os.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-reasons",children:[e.title?(0,os.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,os.jsx)("ul",{className:"ss-w-fandash-reason-list",children:e.data.angles.map((t,n)=>(0,os.jsx)("li",{className:"ss-w-fandash-reason-item",children:t},`${t}-${n}`))})]})}var as=E(N(),1);function xk({card:e}){return(0,as.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-watch",children:[e.title?(0,as.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,as.jsx)("span",{className:"ss-w-fandash-stations",children:e.data.stations.map((t,n)=>(0,as.jsx)("span",{className:"ss-w-fandash-station-chip",children:t},`${t}-${n}`))})]})}var dn=E(N(),1);function vk({card:e,onTap:t}){return(0,dn.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,dn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,dn.jsx)("div",{className:"ss-w-fandash-congested-grid",children:e.data.entries.map((n,r)=>(0,dn.jsxs)("span",{className:"ss-w-fandash-congested-cell",children:[(0,dn.jsx)("span",{className:"ss-w-fandash-congested-day",children:n.dayLabel}),(0,dn.jsx)("span",{className:"ss-w-fandash-congested-opponent",children:n.opponent}),(0,dn.jsx)("span",{className:"ss-w-fandash-congested-comp",children:n.competition}),(0,dn.jsx)("span",{className:"ss-w-fandash-congested-time",children:n.timeLabel})]},`${n.opponent}-${r}`))}),(0,dn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Ge=E(N(),1);function kk({rows:e}){return e.length===0?(0,Ge.jsx)("span",{className:"ss-w-fandash-transfers-empty",children:"None"}):(0,Ge.jsx)("ul",{className:"ss-w-fandash-transfer-list",children:e.map((t,n)=>(0,Ge.jsxs)("li",{className:"ss-w-fandash-transfer-row",children:[(0,Ge.jsx)("span",{className:"ss-w-fandash-transfer-name",children:t.playerName}),(0,Ge.jsx)("span",{className:"ss-w-fandash-transfer-club",children:t.otherClub}),t.type?(0,Ge.jsx)("span",{className:"ss-w-fandash-transfer-type",children:t.type}):null]},`${t.playerName}-${n}`))})}function bk({card:e}){let{data:t}=e;return(0,Ge.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-transfers",children:[e.title?(0,Ge.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ge.jsxs)("div",{className:"ss-w-fandash-transfers-cols",children:[(0,Ge.jsxs)("div",{className:"ss-w-fandash-transfers-col",children:[(0,Ge.jsx)("span",{className:"ss-w-fandash-transfers-col-head",children:"In"}),(0,Ge.jsx)(kk,{rows:t.in})]}),(0,Ge.jsxs)("div",{className:"ss-w-fandash-transfers-col",children:[(0,Ge.jsx)("span",{className:"ss-w-fandash-transfers-col-head",children:"Out"}),(0,Ge.jsx)(kk,{rows:t.out})]})]})]})}var Jn=E(N(),1);function Ck({card:e}){return(0,Jn.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-links",children:[e.title?(0,Jn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Jn.jsx)("div",{className:"ss-w-fandash-link-grid",children:e.data.links.map((t,n)=>(0,Jn.jsxs)("a",{className:"ss-w-fandash-link-tile",href:t.url,target:"_blank",rel:"noopener noreferrer",children:[(0,Jn.jsx)("span",{className:"ss-w-fandash-link-label",children:t.label}),(0,Jn.jsx)("span",{className:"ss-w-fandash-link-chevron",children:(0,Jn.jsx)(pl,{})})]},`${t.url}-${n}`))})]})}var Sk=E(ce(),1),ze=E(N(),1);function uT(e){return e.trim().slice(0,3).toUpperCase()}function Ak({url:e,name:t,side:n}){let[r,i]=(0,Sk.useState)(!1),s=`ss-w-fandash-postmatch-crest ss-w-fandash-postmatch-crest--${n}`;return e&&!r?(0,ze.jsx)("img",{className:s,src:e,alt:"","aria-hidden":"true",onError:()=>i(!0)}):(0,ze.jsx)("span",{className:`${s} ss-w-fandash-postmatch-crest--fallback`,"aria-hidden":"true",children:uT(t)})}function Ek({card:e}){let{data:t}=e,n=t.homeScore>=t.awayScore,r=t.awayScore>=t.homeScore;return(0,ze.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-postmatch-result",children:[(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-top",children:[e.title?(0,ze.jsx)("span",{className:"ss-w-fandash-postmatch-pill",children:e.title}):null,(0,ze.jsx)("span",{className:`ss-w-fandash-postmatch-tag ss-w-fandash-postmatch-tag--${t.outcome}`,children:t.resultLabel})]}),(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-main",children:[(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-side ss-w-fandash-postmatch-side--home",children:[(0,ze.jsx)(Ak,{url:t.homeCrestUrl,name:t.homeName,side:"home"}),(0,ze.jsx)("span",{className:"ss-w-fandash-postmatch-team-name",children:t.homeName})]}),(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-score-main",children:[(0,ze.jsx)("span",{className:`ss-w-fandash-postmatch-score-value ss-w-fandash-postmatch-score-value--${n?"win":"lose"}`,children:t.homeScore}),(0,ze.jsx)("span",{className:"ss-w-fandash-postmatch-score-sep",children:"\u2013"}),(0,ze.jsx)("span",{className:`ss-w-fandash-postmatch-score-value ss-w-fandash-postmatch-score-value--${r?"win":"lose"}`,children:t.awayScore})]}),(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-side ss-w-fandash-postmatch-side--away",children:[(0,ze.jsx)(Ak,{url:t.awayCrestUrl,name:t.awayName,side:"away"}),(0,ze.jsx)("span",{className:"ss-w-fandash-postmatch-team-name",children:t.awayName})]})]}),(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-meta",children:[t.kickoffLabel,t.competition?` \xB7 ${t.competition}`:""]})]})}var qn=E(N(),1);function Ik({card:e,onTap:t}){return(0,qn.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,qn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,qn.jsx)("ul",{className:"ss-w-fandash-postmatch-goal-list",children:e.data.goals.map((n,r)=>(0,qn.jsxs)("li",{className:n.scoredByClub?"ss-w-fandash-postmatch-goal ss-w-fandash-postmatch-goal--club":"ss-w-fandash-postmatch-goal",children:[(0,qn.jsx)("span",{className:"ss-w-fandash-postmatch-goal-ball"}),(0,qn.jsx)("span",{children:n.text})]},`${n.text}-${r}`))}),(0,qn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Ve=E(N(),1);function cT(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 Tk({card:e,onTap:t}){let{data:n}=e;return(0,Ve.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,Ve.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ve.jsx)("div",{className:"ss-w-fandash-postmatch-stat-rows",children:n.rows.map((r,i)=>{let s=n.clubIsHome?r.clubValue:r.oppValue,o=n.clubIsHome?r.oppValue:r.clubValue,a=n.clubIsHome?r.clubNum:r.oppNum,l=n.clubIsHome?r.oppNum:r.clubNum,{home:u,away:c}=cT(a,l);return(0,Ve.jsxs)("div",{className:"ss-w-fandash-postmatch-stat",children:[(0,Ve.jsxs)("div",{className:"ss-w-fandash-postmatch-stat-row",children:[(0,Ve.jsx)("span",{className:"ss-w-fandash-postmatch-stat-value ss-w-fandash-postmatch-stat-value--home",children:s}),(0,Ve.jsx)("span",{className:"ss-w-fandash-postmatch-stat-label",children:r.label}),(0,Ve.jsx)("span",{className:"ss-w-fandash-postmatch-stat-value ss-w-fandash-postmatch-stat-value--away",children:o})]}),(0,Ve.jsxs)("div",{className:"ss-w-fandash-postmatch-stat-bar",children:[(0,Ve.jsx)("span",{className:"ss-w-fandash-postmatch-stat-bar-home",style:{width:u}}),(0,Ve.jsx)("span",{className:"ss-w-fandash-postmatch-stat-bar-away",style:{width:c}})]})]},`${r.label}-${i}`)})}),n.rows.length>0?(0,Ve.jsxs)("div",{className:"ss-w-fandash-postmatch-legend",children:[(0,Ve.jsxs)("span",{className:"ss-w-fandash-postmatch-legend-item",children:[(0,Ve.jsx)("i",{className:"ss-w-fandash-postmatch-legend-swatch ss-w-fandash-postmatch-legend-swatch--home"}),n.homeName]}),(0,Ve.jsxs)("span",{className:"ss-w-fandash-postmatch-legend-item",children:[(0,Ve.jsx)("i",{className:"ss-w-fandash-postmatch-legend-swatch ss-w-fandash-postmatch-legend-swatch--away"}),n.awayName]})]}):null,(0,Ve.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Kn=E(N(),1);function dT(e){let t=e.trim().split(/\s+/).filter(Boolean);if(t.length===0)return"?";let n=t[0].charAt(0),r=t[t.length-1].charAt(0);return(t.length>1?`${n}${r}`:n).toUpperCase()}function Nk({card:e,onTap:t}){let{data:n}=e;return(0,Kn.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,Kn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Kn.jsxs)("div",{className:"ss-w-fandash-postmatch-perf-row",children:[(0,Kn.jsx)("span",{className:"ss-w-fandash-postmatch-perf-avatar","aria-hidden":"true",children:dT(n.playerName)}),(0,Kn.jsx)("span",{className:"ss-w-fandash-postmatch-perf-name",children:n.playerName}),(0,Kn.jsx)("span",{className:"ss-w-fandash-postmatch-perf-rating",children:n.ratingLabel})]}),(0,Kn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var ls=E(N(),1);function Lk({card:e}){let{data:t}=e;return(0,ls.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-postmatch-next",children:[e.title?(0,ls.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,ls.jsx)("div",{className:"ss-w-fandash-postmatch-next-row",children:(0,ls.jsx)("span",{className:"ss-w-fandash-postmatch-next-when",children:t.whenLabel})})]})}var Er=E(N(),1);function Mk({card:e,onTap:t}){let{data:n}=e;return(0,Er.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,Er.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Er.jsxs)("div",{className:"ss-w-fandash-resting-next-row",children:[(0,Er.jsx)("span",{className:"ss-w-fandash-resting-next-when",children:n.whenLabel}),n.competition?(0,Er.jsx)("span",{className:"ss-w-fandash-resting-next-competition",children:n.competition}):null]}),(0,Er.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Ir=E(N(),1);function Pk({card:e,onTap:t}){let{data:n}=e;return(0,Ir.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,Ir.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ir.jsxs)("div",{className:"ss-w-fandash-resting-standings-row",children:[(0,Ir.jsx)("span",{className:"ss-w-fandash-resting-standings-position",children:n.positionLabel}),(0,Ir.jsx)("span",{className:"ss-w-fandash-resting-standings-record",children:n.recordLabel})]}),(0,Ir.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Yn=E(N(),1);function Rk({card:e,onTap:t}){let{data:n}=e;return(0,Yn.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,Yn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Yn.jsxs)("div",{className:"ss-w-fandash-resting-season-rows",children:[n.scorerLabel?(0,Yn.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.scorerLabel}):null,n.playerLabel?(0,Yn.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.playerLabel}):null,(0,Yn.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.tallyLabel})]}),(0,Yn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var us=E(N(),1);function pT(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 Dk({card:e}){let{data:t}=e;return(0,us.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-resting-form",children:[e.title?(0,us.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,us.jsx)("span",{className:"ss-w-fandash-form",children:t.letters.map((n,r)=>(0,us.jsx)("span",{className:`ss-w-fandash-form-pill ${pT(n)}`,children:n},`${n}-${r}`))})]})}var tu=E(ce(),1);var eu=E(ce(),1),Ok=6e4,fT=15;function xf(e,t,n){if(!t)return e;let r=Math.floor((Date.now()-n)/Ok);return e+Math.min(Math.max(0,r),fT)}function zk(e,t,n){let[r,i]=(0,eu.useState)(()=>xf(e,t,n));return(0,eu.useEffect)(()=>{if(i(xf(e,t,n)),!t)return;let s=window.setInterval(()=>{i(xf(e,t,n))},Ok);return()=>window.clearInterval(s)},[e,t,n]),r}var be=E(N(),1);function mT(e){return e.trim().slice(0,3).toUpperCase()}function Bk({url:e,name:t,side:n}){let[r,i]=(0,tu.useState)(!1),s=`ss-w-fandash-live-crest ss-w-fandash-live-crest--${n}`;return e&&!r?(0,be.jsx)("img",{className:s,src:e,alt:"","aria-hidden":"true",onError:()=>i(!0)}):(0,be.jsx)("span",{className:`${s} ss-w-fandash-live-crest--fallback`,"aria-hidden":"true",children:mT(t)})}function hT(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 Fk({card:e,goalEvents:t}){let{data:n}=e,r=`${n.minute}:${n.homeScore}:${n.awayScore}`,i=(0,tu.useRef)(null);(!i.current||i.current.key!==r)&&(i.current={key:r,receivedAtMs:Date.now()});let s=zk(n.minute,n.clockRunning,i.current.receivedAtMs),o=n.minuteLabel.replace(/^\d+/,""),a=hT(t);return(0,be.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-score",children:[e.title?(0,be.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,be.jsxs)("div",{className:"ss-w-fandash-live-top",children:[(0,be.jsxs)("span",{className:"ss-w-fandash-live-pill",children:[(0,be.jsx)("span",{className:"ss-w-fandash-live-dot","aria-hidden":"true"}),n.statusLabel]}),(0,be.jsx)("span",{className:"ss-w-fandash-live-minute",children:`${s}${o}`}),n.competition?(0,be.jsx)("span",{className:"ss-w-fandash-live-competition",children:n.competition}):null]}),(0,be.jsxs)("div",{className:"ss-w-fandash-live-main",children:[(0,be.jsxs)("div",{className:"ss-w-fandash-live-side ss-w-fandash-live-side--home",children:[(0,be.jsx)(Bk,{url:n.homeCrestUrl,name:n.homeName,side:"home"}),(0,be.jsx)("span",{className:"ss-w-fandash-live-team-name",children:n.homeName})]}),(0,be.jsxs)("div",{className:"ss-w-fandash-live-score-main",children:[(0,be.jsx)("span",{className:"ss-w-fandash-live-score-value",children:n.homeScore}),(0,be.jsx)("span",{className:"ss-w-fandash-live-score-sep",children:"\u2013"}),(0,be.jsx)("span",{className:"ss-w-fandash-live-score-value",children:n.awayScore})]}),(0,be.jsxs)("div",{className:"ss-w-fandash-live-side ss-w-fandash-live-side--away",children:[(0,be.jsx)(Bk,{url:n.awayCrestUrl,name:n.awayName,side:"away"}),(0,be.jsx)("span",{className:"ss-w-fandash-live-team-name",children:n.awayName})]})]}),a?(0,be.jsxs)("div",{className:"ss-w-fandash-live-scorers",children:[(0,be.jsx)("span",{className:"ss-w-fandash-live-scorers-icon","aria-hidden":"true",children:"\u26BD"}),a]}):null]})}var Qk=E(ce(),1),Ee=E(N(),1),Uk=3;function gT({type:e}){return e==="goal"?(0,Ee.jsx)("span",{className:"ss-w-fandash-live-tl-ico ss-w-fandash-live-tl-ico--goal","aria-hidden":"true",children:(0,Ee.jsx)("span",{className:"ss-w-fandash-live-tl-ball"})}):e==="yellow"||e==="red"?(0,Ee.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,Ee.jsx)("span",{className:`ss-w-fandash-live-tl-card ss-w-fandash-live-tl-card--${e}`})}):e==="sub"?(0,Ee.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,Ee.jsx)("span",{className:"ss-w-fandash-live-tl-subarrows",children:"\u21C5"})}):(0,Ee.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,Ee.jsx)("span",{className:"ss-w-fandash-live-tl-dot"})})}function wT({e}){var t,n;return e.type==="sub"?(0,Ee.jsxs)("span",{className:"ss-w-fandash-live-tl-who",children:[(t=e.player)!=null?t:e.text,e.playerOff?(0,Ee.jsxs)("span",{className:"ss-w-fandash-live-tl-off",children:[" for ",e.playerOff]}):null]}):(0,Ee.jsx)("span",{className:"ss-w-fandash-live-tl-who",children:(n=e.player)!=null?n:e.text})}function yT({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,Ee.jsxs)("div",{className:t,children:[(0,Ee.jsxs)("span",{className:"ss-w-fandash-live-tl-txt",children:[(0,Ee.jsx)(wT,{e}),(0,Ee.jsx)(gT,{type:e.type})]}),(0,Ee.jsx)("span",{className:"ss-w-fandash-live-tl-badge",children:e.minuteLabel})]})}function Hk({card:e,ui:t}){var c,d;let[n,r]=(0,Qk.useState)(!1),i=e.data.events;if(!i||i.length===0)return null;let s=[...i].sort((p,f)=>f.minute-p.minute),o=s.length-Uk,a=n?s:s.slice(0,Uk),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,Ee.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-timeline",children:[e.title?(0,Ee.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ee.jsx)("div",{className:"ss-w-fandash-live-tl",children:a.map((p,f)=>(0,Ee.jsx)(yT,{e:p},`${p.minute}-${p.side}-${p.type}-${f}`))}),o>0?(0,Ee.jsx)("button",{type:"button",className:"ss-w-fandash-live-tl-more","aria-expanded":n,onClick:()=>r(p=>!p),children:n?u:l(o)}):null]})}var Vk=E(ce(),1),ut=E(N(),1),cs=270,vf=56,Tr=vf/2,xT=.26;function vT(e){var u,c;let t=e.length-1,n=d=>t===0?0:d/t*cs,r=d=>Tr-d*xT,i=e.map((d,p)=>`${n(p).toFixed(1)},${r(d.value).toFixed(1)}`),s=`M0,${Tr} L${i.join(" L")} L${cs},${Tr} Z`,o=`M${i.join(" L")}`,a=(c=(u=e[t])==null?void 0:u.value)!=null?c:0;return{area:s,line:o,lastLeftPct:t===0?0:100,lastTopPx:r(a)}}function nu({points:e,caption:t,clubIsHome:n}){if(e.length===0)return null;let{area:r,line:i,lastLeftPct:s,lastTopPx:o}=vT(e),a=(0,Vk.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,ut.jsxs)("div",{className:"ss-w-fandash-live-mom",children:[t?(0,ut.jsx)("span",{className:"ss-w-fandash-live-mom-caption",children:t}):null,(0,ut.jsxs)("div",{className:"ss-w-fandash-live-mom-plot",children:[(0,ut.jsxs)("svg",{className:"ss-w-fandash-live-mom-svg",viewBox:`0 0 ${cs} ${vf}`,preserveAspectRatio:"none",role:"img","aria-label":t!=null?t:"Momentum",children:[(0,ut.jsxs)("defs",{children:[(0,ut.jsx)("clipPath",{id:l,children:(0,ut.jsx)("rect",{x:0,y:0,width:cs,height:Tr})}),(0,ut.jsx)("clipPath",{id:u,children:(0,ut.jsx)("rect",{x:0,y:Tr,width:cs,height:vf-Tr})})]}),(0,ut.jsx)("path",{d:r,className:c,clipPath:`url(#${l})`}),(0,ut.jsx)("path",{d:r,className:d,clipPath:`url(#${u})`}),(0,ut.jsx)("line",{x1:0,y1:Tr,x2:cs,y2:Tr,className:"ss-w-fandash-live-mom-base"}),(0,ut.jsx)("path",{d:i,className:"ss-w-fandash-live-mom-line",vectorEffect:"non-scaling-stroke"})]}),(0,ut.jsx)("span",{className:"ss-w-fandash-live-mom-now",style:{left:`clamp(4px, ${s}%, calc(100% - 4px))`,top:`${o}px`},"aria-hidden":"true"})]})]})}var Be=E(N(),1);function kT(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 jk({card:e}){let{data:t}=e;return(0,Be.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-stats",children:[e.title?(0,Be.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Be.jsx)("div",{className:"ss-w-fandash-live-stat-rows",children:t.rows.map((n,r)=>{let i=t.clubIsHome?n.clubValue:n.oppValue,s=t.clubIsHome?n.oppValue:n.clubValue,o=t.clubIsHome?n.clubNum:n.oppNum,a=t.clubIsHome?n.oppNum:n.clubNum,{home:l,away:u}=kT(o,a);return(0,Be.jsxs)("div",{className:"ss-w-fandash-live-stat",children:[(0,Be.jsxs)("div",{className:"ss-w-fandash-live-stat-row",children:[(0,Be.jsx)("span",{className:"ss-w-fandash-live-stat-value ss-w-fandash-live-stat-value--home",children:i}),(0,Be.jsx)("span",{className:"ss-w-fandash-live-stat-label",children:n.label}),(0,Be.jsx)("span",{className:"ss-w-fandash-live-stat-value ss-w-fandash-live-stat-value--away",children:s})]}),(0,Be.jsxs)("div",{className:"ss-w-fandash-live-bar",children:[(0,Be.jsx)("span",{className:"ss-w-fandash-live-bar-home",style:{width:l}}),(0,Be.jsx)("span",{className:"ss-w-fandash-live-bar-away",style:{width:u}})]})]},`${n.label}-${r}`)})}),t.momentum.length>0?(0,Be.jsx)(nu,{points:t.momentum,caption:t.momentumLabel,clubIsHome:t.clubIsHome}):t.momentumLabel?(0,Be.jsx)("span",{className:"ss-w-fandash-live-momentum",children:t.momentumLabel}):null,t.rows.length>0?(0,Be.jsxs)("div",{className:"ss-w-fandash-live-legend",children:[(0,Be.jsxs)("span",{className:"ss-w-fandash-live-legend-item",children:[(0,Be.jsx)("i",{className:"ss-w-fandash-live-legend-swatch ss-w-fandash-live-legend-swatch--home"}),t.homeName]}),(0,Be.jsxs)("span",{className:"ss-w-fandash-live-legend-item",children:[(0,Be.jsx)("i",{className:"ss-w-fandash-live-legend-swatch ss-w-fandash-live-legend-swatch--away"}),t.awayName]})]}):null]})}var we=E(N(),1);function Wk({dashboard:e,onTap:t,ui:n}){let r=[...e.cards.filter(o=>o.cardType==="countdown"),...e.cards.filter(o=>o.cardType!=="countdown")],i=e.cards.find(o=>o.cardType==="liveTimeline"),s=i==null?void 0:i.data.events.filter(o=>o.type==="goal");return(0,we.jsxs)("div",{className:"ss-w-fandash",children:[e.greeting?(0,we.jsx)("span",{className:e.greetingIsLead?"ss-w-fandash-greeting ss-w-fandash-greeting--lead":"ss-w-fandash-greeting",children:e.greeting}):null,(0,we.jsx)("div",{className:"ss-w-fandash-cards",children:r.map((o,a)=>(0,we.jsx)(bT,{card:o,onTap:t,ui:n,goalEvents:s},`${o.cardType}-${a}`))})]})}function bT({card:e,onTap:t,ui:n,goalEvents:r}){switch(e.cardType){case"fixture":return(0,we.jsx)(pk,{card:e});case"countdown":return(0,we.jsx)(fk,{card:e});case"injuries":return(0,we.jsx)(wk,{card:e,ui:n});case"reasonToBet":return(0,we.jsx)(yk,{card:e});case"whereToWatch":return(0,we.jsx)(xk,{card:e});case"congestedWeek":return(0,we.jsx)(vk,{card:e,onTap:t});case"transfers":return(0,we.jsx)(bk,{card:e});case"links":return(0,we.jsx)(Ck,{card:e});case"postMatchResult":return(0,we.jsx)(Ek,{card:e});case"postMatchGoals":return(0,we.jsx)(Ik,{card:e,onTap:t});case"postMatchStats":return(0,we.jsx)(Tk,{card:e,onTap:t});case"postMatchTopPerformer":return(0,we.jsx)(Nk,{card:e,onTap:t});case"postMatchNext":return(0,we.jsx)(Lk,{card:e});case"restingNext":return(0,we.jsx)(Mk,{card:e,onTap:t});case"restingStandings":return(0,we.jsx)(Pk,{card:e,onTap:t});case"restingSeason":return(0,we.jsx)(Rk,{card:e,onTap:t});case"restingForm":return(0,we.jsx)(Dk,{card:e});case"liveScore":return(0,we.jsx)(Fk,{card:e,goalEvents:r});case"liveTimeline":return(0,we.jsx)(Hk,{card:e,ui:n});case"liveStats":return(0,we.jsx)(jk,{card:e});default:return null}}var Ut=E(N(),1);function _k({message:e,disabled:t,onAct:n,onTap:r,ui:i,slip:s,monitor:o}){if(e.role==="user")return(0,Ut.jsx)("div",{className:"ss-w-msg ss-w-user","data-msg-id":e.id,children:(0,Ut.jsx)("div",{className:"ss-w-bubble",children:e.text})});let a=l=>{n({message:l.actionLabel,actionRef:l.actionRef,label:l.actionLabel||l.title||""})};return(0,Ut.jsxs)("div",{className:"ss-w-msg ss-w-bot","data-msg-id":e.id,children:[e.text&&!e.greetingDashboard&&!e.clubFanDashboard?(0,Ut.jsx)(qv,{text:e.text}):null,e.greetingDashboard&&!e.clubFanDashboard?(0,Ut.jsx)(ck,{dashboard:e.greetingDashboard,onTap:r}):null,e.clubFanDashboard?(0,Ut.jsx)(Wk,{dashboard:e.clubFanDashboard,onTap:a,ui:i}):null,(0,Ut.jsx)(Zv,{cards:e.cards,disabled:t,showLessLabel:i==null?void 0:i.showLess,showMoreLabel:i==null?void 0:i.showMore}),(0,Ut.jsx)(sk,{insights:e.insights,ui:i,slip:s,monitor:o}),(0,Ut.jsx)(ss,{cards:e.marketOdds,ui:i,slip:s,monitor:o}),(0,Ut.jsx)(Zl,{cards:e.oddsMovement,ui:i,monitor:o}),(0,Ut.jsx)($l,{actions:e.actions,loading:!1,disabled:t,onAct:n})]})}var kf=E(N(),1);function Xk({chips:e,onPick:t}){return e.length===0?null:(0,kf.jsx)("div",{className:"ss-w-chips",children:e.map((n,r)=>(0,kf.jsx)("button",{type:"button",className:"ss-w-chip",onClick:()=>t(n.text),children:n.text},`${n.text}-${r}`))})}function Jk(e,t=48){return e.scrollHeight-e.scrollTop-e.clientHeight<=t}var pn=E(N(),1);function CT(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 qk({controller:e,ui:t,slip:n,onDashboardTap:r,monitor:i}){let{state:s,send:o}=e,a=(0,ci.useRef)(null),l=(0,ci.useRef)(null),u=(0,ci.useRef)(!0),c=(0,ci.useRef)(null);(0,ci.useEffect)(()=>{var w,C;let f=CT(s.messages),h=a.current;if(f&&f.turnId!==c.current){c.current=f.turnId,l.current&&h&&(l.current.style.height=s.isStreaming?`${h.clientHeight}px`:""),u.current=!1,(w=h==null?void 0:h.querySelector(`[data-msg-id="${f.anchorId}"]`))==null||w.scrollIntoView({block:"start"});return}!s.isStreaming&&l.current&&(l.current.style.height=""),u.current&&((C=l.current)==null||C.scrollIntoView({block:"end"}))},[s.messages,s.status,s.isStreaming]);let d=s.messages.some(f=>f.role==="user"),p=s.messages.some(f=>f.role==="assistant"&&(f.greetingDashboard||f.clubFanDashboard));return(0,pn.jsxs)("div",{className:"ss-w-list","aria-live":"polite",ref:a,onScroll:()=>{a.current&&(u.current=Jk(a.current))},children:[s.messages.map(f=>(0,pn.jsx)(_k,{message:f,disabled:s.isStreaming,onAct:h=>o(h.message,{actionId:h.actionId,actionRef:h.actionRef,displayText:h.label}),onTap:(h,w)=>{o(h.actionValue,h.actionRef?{actionRef:h.actionRef,displayText:h.title}:{displayText:h.title}),f.role==="assistant"&&f.greetingDashboard&&(r==null||r(h,w,f.greetingDashboard.layout))},ui:t,slip:n,monitor:i},f.id)),s.isStreaming&&s.actionsLoading?(0,pn.jsx)($l,{actions:[],loading:!0,onAct:()=>{}}):null,s.status?(0,pn.jsx)("div",{className:"ss-w-status",children:s.status}):null,s.error?(0,pn.jsxs)("div",{className:"ss-w-error",role:"alert",children:[(0,pn.jsx)("span",{children:"message"in s.error?s.error.message:t.somethingWentWrong}),(0,pn.jsx)("button",{type:"button",className:"ss-w-retry",onClick:()=>e.retry(),children:t.retry})]}):null,!d&&!p?(0,pn.jsx)(Xk,{chips:s.starters,onPick:f=>o(f)}):null,(0,pn.jsx)("div",{ref:l,className:"ss-w-turn-spacer","aria-hidden":"true"})]})}var Kk=E(ce(),1);var Nr=E(N(),1);function Yk({placeholder:e,streaming:t,onSend:n,onStop:r,stopLabel:i="Stop response",sendLabel:s="Send message"}){let[o,a]=(0,Kk.useState)(""),l=()=>{let c=o.trim();c&&(n(c),a(""))};return(0,Nr.jsxs)("div",{className:"ss-w-input",children:[(0,Nr.jsx)("textarea",{className:"ss-w-textarea",rows:1,placeholder:e,value:o,disabled:t,onChange:c=>a(c.target.value),onKeyDown:c=>{c.key==="Enter"&&!c.shiftKey&&(c.preventDefault(),l())}}),t?(0,Nr.jsx)("button",{type:"button",className:"ss-w-send ss-w-stop","aria-label":i,onClick:r,children:(0,Nr.jsx)("span",{className:"ss-w-stop-glyph"})}):(0,Nr.jsx)("button",{type:"button",className:"ss-w-send","aria-label":s,onClick:l,children:(0,Nr.jsx)($w,{})})]})}var ds=E(N(),1),AT=[{tab:"chat",labelKey:"tabChat"},{tab:"matches",labelKey:"tabMatches"},{tab:"odds",labelKey:"tabOdds"}];function Gk({monitor:e,ui:t,matchCount:n,oddsCount:r}){if(e.pins.length===0)return null;let i={chat:0,matches:n,odds:r},s={chat:e.chatDot&&e.activeTab!=="chat",matches:e.matchesDot&&e.activeTab!=="matches",odds:e.oddsDot&&e.activeTab!=="odds"};return(0,ds.jsx)("div",{className:"ss-w-tabs",role:"tablist",children:AT.map(({tab:o,labelKey:a})=>{let l=e.activeTab===o,u=i[o];return(0,ds.jsxs)("button",{type:"button",role:"tab","aria-selected":l,"data-on":l?"":void 0,className:"ss-w-tab",onClick:()=>e.setActiveTab(o),children:[t[a],u>0&&(0,ds.jsx)("span",{className:"ss-w-tab-count",children:u}),s[o]&&(0,ds.jsx)("span",{className:"ss-w-tab-dot","aria-hidden":"true"})]},o)})})}var ct=E(N(),1);function Zk({match:e,monitor:t,ui:n,slip:r}){var o,a;let i=(o=e.availableMarkets)!=null?o:[];if(i.length===0)return null;let s=(a=t.openMarket[e.matchId])!=null?a:null;return(0,ct.jsx)("div",{className:"ss-w-acc",children:i.map(l=>{var p,f,h;let u=s===l.marketDeveloperName,c=`${e.matchId}:${l.marketDeveloperName}`,d=t.marketOdds[c];return(0,ct.jsxs)("div",{className:u?"ss-w-acc-row ss-w-acc-row-open":"ss-w-acc-row",children:[(0,ct.jsxs)("div",{className:"ss-w-acc-head",children:[(0,ct.jsxs)("button",{type:"button",className:"ss-w-acc-toggle","aria-expanded":u,onClick:()=>t.toggleMarket(e.matchId,l.marketDeveloperName),children:[(0,ct.jsx)("span",{className:"ss-w-acc-chevron",children:u?"\u25BE":"\u25B8"}),(0,ct.jsx)("span",{className:"ss-w-acc-label",children:l.marketLabel}),l.hasInsight&&(0,ct.jsx)("span",{className:"ss-w-acc-badge",children:"\u2605"}),l.suspended&&(0,ct.jsx)("span",{className:"ss-w-acc-susp",children:n.accordionSuspended})]}),(0,ct.jsx)(Yt,{ui:n,monitor:t,pin:{kind:"market",matchId:e.matchId,marketDeveloperName:l.marketDeveloperName}})]}),u&&(0,ct.jsxs)("div",{className:"ss-w-acc-panel",children:[(d==null?void 0:d.error)&&(0,ct.jsx)("div",{className:"ss-w-acc-retry",onClick:()=>t.retryMarket(e.matchId,l.marketDeveloperName),children:n.accordionRetry}),((f=(p=d==null?void 0:d.block)==null?void 0:p.insight)==null?void 0:f.text)&&(0,ct.jsxs)("div",{className:"ss-w-acc-insight",children:[(0,ct.jsx)("span",{className:"ss-w-acc-badge",children:n.accordionValueLabel})," ",d.block.insight.text]}),((h=d==null?void 0:d.block)==null?void 0:h.card)&&(0,ct.jsx)(ss,{cards:[Wi(d.block.card)],ui:n,slip:r,monitor:t,inSlipIds:t.inSlip,hideHeader:!0})]})]},l.marketDeveloperName)})})}var q=E(N(),1);function ST(e,t,n){let r=e.market;if(!r||!r.addToSlipEnabled||typeof r.matchOddsId!="number"||typeof r.price!="number")return null;let i={matchOddsId:r.matchOddsId,matchId:t,oddsDecimal:r.price};return n!==void 0&&(i.conversationId=n),i}function bf(e,t){let n=e.market;return n?t.some(r=>r.marketDeveloperName===n.marketDeveloperName||n.matchOddsId!=null&&r.matchOddsId===n.matchOddsId):!1}function ET(e){return new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function $k({match:e,promotedPins:t,monitor:n,ui:r,slip:i}){var d,p,f,h;let s=e.phase==="live",o=e.events.filter(w=>w.type==="goal"),a=e.statRows.filter(w=>bf(w,t)),l=e.statRows.filter(w=>!bf(w,t)),u=[...a,...l],c=e.phase==="preMatch"&&e.kickoffUtc?r.bettingKickoff(e.kickoffUtc):void 0;return(0,q.jsxs)("div",{className:"ss-w-mon",children:[(0,q.jsxs)("div",{className:"ss-w-mon-top",children:[s&&(0,q.jsxs)("span",{className:"ss-w-fandash-live-pill",children:[(0,q.jsx)("span",{className:"ss-w-fandash-live-dot","aria-hidden":"true"}),r.liveLabel]}),e.phase==="fullTime"&&(0,q.jsx)("span",{className:"ss-w-mon-pill",children:r.fullTimeLabel}),c&&(0,q.jsxs)("span",{className:"ss-w-mon-pill",children:[c.dayLabel," \xB7 ",c.time]}),s&&e.minuteLabel&&(0,q.jsx)("span",{className:"ss-w-mon-min",children:e.minuteLabel}),e.competitionName&&(0,q.jsx)("span",{className:"ss-w-mon-comp",children:e.competitionName}),(0,q.jsx)(Yt,{ui:r,monitor:n,pin:{kind:"match",matchId:e.matchId}})]}),(0,q.jsxs)("div",{className:"ss-w-mon-main",children:[(0,q.jsxs)("span",{className:"ss-w-mon-side",children:[(0,q.jsx)(Re,{kind:"team",url:(d=e.homeCrestUrl)!=null?d:void 0,name:(p=e.homeTeamName)!=null?p:void 0}),(0,q.jsx)("span",{className:"ss-w-mon-name",children:e.homeTeamName})]}),e.phase==="preMatch"?(0,q.jsx)("span",{className:"ss-w-mon-vs",children:"vs"}):(0,q.jsxs)("span",{className:"ss-w-mon-score",children:[e.homeScore,(0,q.jsx)("i",{children:"\u2013"}),e.awayScore]}),(0,q.jsxs)("span",{className:"ss-w-mon-side ss-w-mon-side--away",children:[(0,q.jsx)(Re,{kind:"team",url:(f=e.awayCrestUrl)!=null?f:void 0,name:(h=e.awayTeamName)!=null?h:void 0}),(0,q.jsx)("span",{className:"ss-w-mon-name",children:e.awayTeamName})]})]}),o.length>0&&(0,q.jsx)("div",{className:"ss-w-mon-scorers",children:o.map(w=>{var C;return`${(C=w.player)!=null?C:""} ${w.minuteLabel}`}).join(", ")}),(0,q.jsx)("div",{className:"ss-w-mon-stats",children:u.map(w=>{let C=w.homeNum+w.awayNum,m=C>0?w.homeNum/C*75:0,g=C>0?w.awayNum/C*75:0,y=bf(w,t),A=ST(w,e.matchId,i.conversationId);return(0,q.jsxs)("div",{className:y?"ss-w-mon-stat ss-w-mon-pstrip":"ss-w-mon-stat",children:[(0,q.jsxs)("div",{className:"ss-w-mon-stat-row",children:[(0,q.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--home",children:w.homeValue}),(0,q.jsx)("span",{className:"ss-w-mon-stat-l",children:w.label}),(0,q.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--away",children:w.awayValue})]}),(0,q.jsxs)("div",{className:"ss-w-mon-bar",children:[(0,q.jsx)("b",{className:"ss-w-mon-bar-home",style:{width:`${m}%`}}),(0,q.jsx)("i",{className:"ss-w-mon-bar-away",style:{width:`${g}%`}})]}),w.market&&(0,q.jsxs)("div",{className:y?"ss-w-mon-stat-mkt ss-w-mon-mkt":"ss-w-mon-stat-mkt",children:[(0,q.jsxs)("span",{children:[w.market.marketLabel," \xB7 ",w.market.selectionLabel]}),(0,q.jsxs)("span",{className:"ss-w-mon-stat-mkt-right",children:[w.market.isSuspended?(0,q.jsx)("span",{className:"ss-w-mon-susp",children:r.suspendedLabel}):typeof w.market.price=="number"&&(0,q.jsx)("span",{className:"ss-w-mon-price",children:w.market.price.toFixed(2)}),(0,q.jsx)(Mo,{selection:A,shownOdds:typeof w.market.price=="number"?w.market.price.toFixed(2):"",marketName:w.market.marketLabel,slip:i,ui:r})]})]})]},w.label)})}),e.status==="stale"&&(0,q.jsx)("span",{className:"ss-w-mon-asof",children:r.asOf(ET(e.asOfUtc))}),e.momentum.length>0&&(0,q.jsxs)("div",{className:"ss-w-mon-mom",children:[(0,q.jsxs)("div",{className:"ss-w-mon-stat-row",children:[(0,q.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--home",children:typeof e.momentumHomePct=="number"?`${e.momentumHomePct}%`:""}),(0,q.jsx)("span",{className:"ss-w-mon-stat-l",children:r.momentumLabel}),(0,q.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--away",children:typeof e.momentumHomePct=="number"?`${100-e.momentumHomePct}%`:""})]}),(0,q.jsx)(nu,{points:e.momentum,clubIsHome:!0})]}),e.phase==="fullTime"&&(0,q.jsx)("div",{className:"ss-w-mon-grace",children:r.graceNote})]})}var Fe=E(N(),1);function IT({m:e,ui:t}){let n=e.phase!=="preMatch"&&typeof e.homeScore=="number",r=e.status==="stale";return!n&&!e.minuteLabel&&!(e.isSuspended&&!e.isSettled)&&!e.isSettled&&!r?null:(0,Fe.jsxs)("div",{className:"ss-w-mk-live",children:[n&&(0,Fe.jsxs)("b",{className:"ss-w-mk-live-score",children:[e.homeTeamName," ",e.homeScore,"\u2013",e.awayScore," ",e.awayTeamName]}),e.minuteLabel&&(0,Fe.jsx)("span",{className:"ss-w-mon-min",children:e.minuteLabel}),e.isSuspended&&!e.isSettled&&(0,Fe.jsx)("span",{className:"ss-w-mon-susp",children:t.suspendedLabel}),e.isSettled&&(0,Fe.jsx)("span",{className:"ss-w-mon-pill",children:t.fullTimeLabel}),r&&(0,Fe.jsx)("span",{className:"ss-w-mon-asof",children:t.asOf(new Date(e.asOfUtc).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}))})]})}function eb({monitor:e,ui:t,slip:n}){var i,s;let r=((s=(i=e.snapshot)==null?void 0:i.matches)!=null?s:[]).filter(o=>e.pins.some(a=>a.kind==="match"&&a.matchId===o.matchId));return r.length===0?(0,Fe.jsx)("div",{className:"ss-w-mon-empty",children:t.emptyMatchesTab}):(0,Fe.jsx)("div",{className:"ss-w-mon-list",children:r.map(o=>(0,Fe.jsxs)("div",{className:"ss-w-mon-item",children:[(0,Fe.jsx)($k,{match:o,promotedPins:e.pins.filter(a=>a.kind!=="match"&&a.matchId===o.matchId),monitor:e,ui:t,slip:n}),(0,Fe.jsx)(Zk,{match:o,monitor:e,ui:t,slip:n})]},o.matchId))})}function TT(e,t){let n=e.mainRows[0];if(t===void 0||!n||n.oddsDecimal===void 0||n.oddsDecimal===t)return e;let r={...n,previousOdds:t.toFixed(2),movementDirection:n.oddsDecimal<t?"shortened":"drifted"};return{...e,mainRows:[r,...e.mainRows.slice(1)]}}function tb({monitor:e,ui:t,slip:n}){var i,s;let r=((s=(i=e.snapshot)==null?void 0:i.markets)!=null?s:[]).filter(o=>e.pins.some(a=>a.key===o.key));return r.length===0?(0,Fe.jsx)("div",{className:"ss-w-mon-empty",children:t.emptyOddsTab}):(0,Fe.jsx)("div",{className:"ss-w-mon-list",children:r.map(o=>{let a=e.pins.find(l=>l.key===o.key);return(0,Fe.jsxs)("div",{className:"ss-w-mon-oddspin","data-settled":o.isSettled||void 0,children:[(0,Fe.jsx)(IT,{m:o,ui:t}),o.card&&(0,Fe.jsx)(ss,{cards:[TT(Wi(o.card),e.lastViewedPrices[o.key])],ui:t,slip:n,monitor:e,pinRef:a!=null?a:void 0,inSlipIds:e.inSlip}),o.history&&(0,Fe.jsx)(Zl,{cards:[cl(o.history)],ui:t}),!o.card&&!o.history&&(0,Fe.jsx)("div",{className:"ss-w-mon-empty-card",children:t.oddsUnavailable})]},o.key)})})}var An=E(N(),1),NT="(max-width: 639px)";function LT(){let[e,t]=(0,ps.useState)(!1);return(0,ps.useEffect)(()=>{if(typeof window=="undefined"||typeof window.matchMedia!="function")return;let n=window.matchMedia(NT),r=()=>t(n.matches);return r(),n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),e}function nb({controller:e,ui:t,slip:n,onDashboardTap:r,monitor:i}){let{state:s,close:o,stop:a,send:l,reset:u}=e,c=LT();(0,ps.useEffect)(()=>{let p=f=>{f.key==="Escape"&&o()};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[o]);let d=p=>{i==null||i.setActiveTab("chat"),l(p)};return(0,ps.useEffect)(()=>{i&&i.activeTab!=="chat"&&s.isStreaming&&i.markChatActivity()},[i,s.isStreaming,s.messages.length]),(0,An.jsxs)("div",{className:"ss-w-panel",role:"dialog","aria-modal":c,"aria-label":t.chatDialogLabel,children:[(0,An.jsx)(oy,{onClose:o,closeLabel:t.closeChat,logoUrl:t.logoUrl,headerTitle:t.headerTitle,onNewConversation:u,canReset:s.messages.length>0,newConversationLabel:t.newConversation,moreOptionsLabel:t.moreOptions}),i&&(0,An.jsx)(Gk,{monitor:i,ui:t,matchCount:i.pins.filter(p=>p.kind==="match").length,oddsCount:i.pins.filter(p=>p.kind!=="match").length}),(0,An.jsx)("div",{style:!i||i.activeTab==="chat"?{display:"contents"}:{position:"absolute",inset:0,visibility:"hidden",display:"flex",flexDirection:"column"},children:(0,An.jsx)(qk,{controller:e,ui:t,slip:n,onDashboardTap:r,monitor:i})}),i&&i.activeTab==="matches"&&(0,An.jsx)(eb,{monitor:i,ui:t,slip:n}),i&&i.activeTab==="odds"&&(0,An.jsx)(tb,{monitor:i,ui:t,slip:n}),(0,An.jsx)(Yk,{placeholder:t.placeholder,streaming:s.isStreaming,onSend:d,onStop:a,stopLabel:t.stopResponse,sendLabel:t.sendMessage})]})}var rb=`.ss-w-root { all: revert; }
37
+ `))}function l(f,h,w,C){let m=w.enter("tableCell"),g=w.enter("phrasing"),y=w.containerPhrasing(f,{...C,before:s,after:s});return g(),m(),y}function u(f,h){return pv(f,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function c(f,h,w){let C=f.children,m=-1,g=[],y=h.enter("table");for(;++m<C.length;)g[m]=d(C[m],h,w);return y(),g}function d(f,h,w){let C=f.children,m=-1,g=[],y=h.enter("tableRow");for(;++m<C.length;)g[m]=l(C[m],f,h,w);return y(),g}function p(f,h,w){let C=Lo.inlineCode(f,h,w);return w.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function nf(){return{exit:{taskListCheckValueChecked:zv,taskListCheckValueUnchecked:zv,paragraph:aI}}}function rf(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:lI}}}function zv(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function aI(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,s=-1,o;for(;++s<i.length;){let a=i[s];if(a.type==="paragraph"){o=a;break}}o===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 lI(e,t,n,r){let i=e.children[0],s=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);s&&a.move(o);let l=Lo.listItem(e,t,n,{...r,...a.current()});return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+o}}function sf(){return[zp(),Fp(),Qp(),ef(),nf()]}function of(e){return{extensions:[Bp(),Up(e),Hp(),tf(e),rf()]}}var uI={tokenize:mI,partial:!0},Bv={tokenize:hI,partial:!0},Fv={tokenize:gI,partial:!0},Uv={tokenize:wI,partial:!0},cI={tokenize:yI,partial:!0},Qv={name:"wwwAutolink",tokenize:pI,previous:Vv},Hv={name:"protocolAutolink",tokenize:fI,previous:jv},jn={name:"emailAutolink",tokenize:dI,previous:Wv},Cn={};function lf(){return{text:Cn}}var ai=48;for(;ai<123;)Cn[ai]=jn,ai++,ai===58?ai=65:ai===91&&(ai=97);Cn[43]=jn;Cn[45]=jn;Cn[46]=jn;Cn[95]=jn;Cn[72]=[jn,Hv];Cn[104]=[jn,Hv];Cn[87]=[jn,Qv];Cn[119]=[jn,Qv];function dI(e,t,n){let r=this,i,s;return o;function o(d){return!af(d)||!Wv.call(r,r.previous)||uf(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(d))}function a(d){return af(d)?(e.consume(d),a):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(cI,c,u)(d):d===45||d===95||Ne(d)?(s=!0,e.consume(d),l):c(d)}function u(d){return e.consume(d),i=!0,l}function c(d){return s&&i&&He(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function pI(e,t,n){let r=this;return i;function i(o){return o!==87&&o!==119||!Vv.call(r,r.previous)||uf(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(uI,e.attempt(Bv,e.attempt(Fv,s),n),n)(o))}function s(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function fI(e,t,n){let r=this,i="",s=!1;return o;function o(d){return(d===72||d===104)&&jv.call(r,r.previous)&&!uf(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),a):n(d)}function a(d){if(He(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),s?u:(s=!0,l)):n(d)}function u(d){return d===null||Zr(d)||ee(d)||kn(d)||$r(d)?n(d):e.attempt(Bv,e.attempt(Fv,c),n)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function mI(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),s):n(o)}function s(o){return o===null?n(o):t(o)}}function hI(e,t,n){let r,i,s;return o;function o(u){return u===46||u===95?e.check(Uv,l,a)(u):u===null||ee(u)||kn(u)||u!==45&&$r(u)?l(u):(s=!0,e.consume(u),o)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),o}function l(u){return i||r||!s?n(u):t(u)}}function gI(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Uv,t,s)(o):o===null||ee(o)||kn(o)?t(o):(e.consume(o),i)}function s(o){return o===41&&r++,e.consume(o),i}}function wI(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),s):a===93?(e.consume(a),i):a===60||a===null||ee(a)||kn(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||ee(a)||kn(a)?t(a):r(a)}function s(a){return He(a)?o(a):n(a)}function o(a){return a===59?(e.consume(a),r):He(a)?(e.consume(a),o):n(a)}}function yI(e,t,n){return r;function r(s){return e.consume(s),i}function i(s){return Ne(s)?n(s):t(s)}}function Vv(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ee(e)}function jv(e){return!He(e)}function Wv(e){return!(e===47||af(e))}function af(e){return e===43||e===45||e===46||e===95||Ne(e)}function uf(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 xI={tokenize:EI,partial:!0};function cf(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:CI,continuation:{tokenize:AI},exit:SI}},text:{91:{name:"gfmFootnoteCall",tokenize:bI},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:vI,resolveTo:kI}}}}function vI(e,t,n){let r=this,i=r.events.length,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let l=r.events[i][1];if(l.type==="labelImage"){o=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(!o||!o._balanced)return n(l);let u=at(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!s.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function kI(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)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;let o={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",s,t],["exit",s,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...l),e}function bI(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),s=0,o;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(s>999||d===93&&!o||d===null||d===91||ee(d))return n(d);if(d===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return i.includes(at(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return ee(d)||(o=!0),s++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),s++,u):u(d)}}function CI(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),s,o=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(o>999||h===93&&!a||h===null||h===91||ee(h))return n(h);if(h===93){e.exit("chunkString");let w=e.exit("gfmFootnoteDefinitionLabelString");return s=at(r.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return ee(h)||(a=!0),o++,e.consume(h),h===92?d:c}function d(h){return h===91||h===92||h===93?(e.consume(h),o++,c):c(h)}function p(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(s)||i.push(s),V(e,f,"gfmFootnoteDefinitionWhitespace")):n(h)}function f(h){return t(h)}}function AI(e,t,n){return e.check(bn,t,e.attempt(xI,t,n))}function SI(e){e.exit("gfmFootnoteDefinition")}function EI(e,t,n){let r=this;return V(e,i,"gfmFootnoteDefinitionIndent",5);function i(s){let o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(s):n(s)}}function df(e){let n=(e||{}).singleTilde,r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,a){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let u=l;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[l][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[l][1].end)},d={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[l][1].start)},p=[["enter",c,a],["enter",o[u][1],a],["exit",o[u][1],a],["enter",d,a]],f=a.parser.constructs.insideSpan.null;f&&Pe(p,p.length,0,br(f,o.slice(u+1,l),a)),Pe(p,p.length,0,[["exit",d,a],["enter",o[l][1],a],["exit",o[l][1],a],["exit",c,a]]),Pe(o,u-1,l-u+3,p),l=u+p.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function s(o,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):(o.enter("strikethroughSequenceTemporary"),f(h))}function f(h){let w=Vn(u);if(h===126)return d>1?l(h):(o.consume(h),d++,f);if(d<2&&!n)return l(h);let C=o.exit("strikethroughSequenceTemporary"),m=Vn(h);return C._open=!m||m===2&&!!w,C._close=!w||w===2&&!!m,a(h)}}}var Jl=class{constructor(){this.map=[]}add(t,n,r){II(this,t,n,r)}consume(t){if(this.map.sort(function(s,o){return s[0]-o[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 s of i)t.push(s);i=r.pop()}this.map.length=0}};function II(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 _v(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 s=r.length-1;r[s]=r[s]==="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 pf(){return{flow:{null:{name:"table",tokenize:TI,resolveAll:NI}}}}function TI(e,t,n){let r=this,i=0,s=0,o;return a;function a(b){let $=r.events.length-1;for(;$>-1;){let R=r.events[$][1].type;if(R==="lineEnding"||R==="linePrefix")$--;else break}let G=$>-1?r.events[$][1].type:null,T=G==="tableHead"||G==="tableRow"?k:l;return T===k&&r.parser.lazy[r.now().line]?n(b):T(b)}function l(b){return e.enter("tableHead"),e.enter("tableRow"),u(b)}function u(b){return b===124||(o=!0,s+=1),c(b)}function c(b){return b===null?n(b):F(b)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),f):n(b):j(b)?V(e,c,"whitespace")(b):(s+=1,o&&(o=!1,i+=1),b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),d(b)))}function d(b){return b===null||b===124||ee(b)?(e.exit("data"),c(b)):(e.consume(b),b===92?p:d)}function p(b){return b===92||b===124?(e.consume(b),d):d(b)}function f(b){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(b):(e.enter("tableDelimiterRow"),o=!1,j(b)?V(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):h(b))}function h(b){return b===45||b===58?C(b):b===124?(o=!0,e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),w):I(b)}function w(b){return j(b)?V(e,C,"whitespace")(b):C(b)}function C(b){return b===58?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),m):b===45?(s+=1,m(b)):b===null||F(b)?A(b):I(b)}function m(b){return b===45?(e.enter("tableDelimiterFiller"),g(b)):I(b)}function g(b){return b===45?(e.consume(b),g):b===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(b))}function y(b){return j(b)?V(e,A,"whitespace")(b):A(b)}function A(b){return b===124?h(b):b===null||F(b)?!o||i!==s?I(b):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(b)):I(b)}function I(b){return n(b)}function k(b){return e.enter("tableRow"),L(b)}function L(b){return b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),L):b===null||F(b)?(e.exit("tableRow"),t(b)):j(b)?V(e,L,"whitespace")(b):(e.enter("data"),D(b))}function D(b){return b===null||b===124||ee(b)?(e.exit("data"),L(b)):(e.consume(b),b===92?U:D)}function U(b){return b===92||b===124?(e.consume(b),D):D(b)}}function NI(e,t){let n=-1,r=!0,i=0,s=[0,0,0,0],o=[0,0,0,0],a=!1,l=0,u,c,d,p=new Jl;for(;++n<e.length;){let f=e[n],h=f[1];f[0]==="enter"?h.type==="tableHead"?(a=!1,l!==0&&(Xv(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,s=[0,0,0,0],o=[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,o[2]===0&&(s[1]!==0&&(o[0]=o[1],d=ql(p,t,s,i,void 0,d),s=[0,0,0,0]),o[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],d=ql(p,t,s,i,void 0,d)),s=o,o=[s[1],n,0,0])):h.type==="tableHead"?(a=!0,l=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(l=n,s[1]!==0?(o[0]=o[1],d=ql(p,t,s,i,n,d)):o[1]!==0&&(d=ql(p,t,o,i,n,d)),i=0):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&Xv(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=_v(t.events,n))}return e}function ql(e,t,n,r,i,s){let o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(s.end=Object.assign({},ts(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));let l=ts(t.events,n[1]);if(s={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){let u=ts(t.events,n[2]),c=ts(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,w=n[3]-n[2]-1;e.add(h,w,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(s.end=Object.assign({},ts(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function Xv(e,t,n,r,i){let s=[],o=ts(t.events,n);i&&(i.end=Object.assign({},o),s.push(["exit",i,t])),r.end=Object.assign({},o),s.push(["exit",r,t]),e.add(n+1,0,s)}function ts(e,t){let n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}var LI={name:"tasklistCheck",tokenize:MI};function ff(){return{text:{91:LI}}}function MI(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"),s)}function s(l){return ee(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(l)}function a(l){return F(l)?t(l):j(l)?e.check({tokenize:PI},t,n)(l):n(l)}}function PI(e,t,n){return V(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Jv(e){return kl([lf(),cf(),df(e),pf(),ff()])}var RI={};function Kl(e){let t=this,n=e||RI,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Jv(n)),s.push(sf()),o.push(of(n))}var Wn=E(N(),1),DI={a:({children:e,href:t})=>(0,Wn.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"ss-w-md-link",children:e}),table:({children:e})=>(0,Wn.jsx)("div",{className:"ss-w-table-wrap",children:(0,Wn.jsx)("table",{className:"ss-w-md-table",children:e})}),ul:({children:e})=>(0,Wn.jsx)("ul",{className:"ss-w-md-ul",children:e}),ol:({children:e})=>(0,Wn.jsx)("ol",{className:"ss-w-md-ol",children:e}),code:({children:e})=>(0,Wn.jsx)("code",{className:"ss-w-md-code",children:e})};function qv({text:e}){return(0,Wn.jsx)("div",{className:"ss-w-md",children:(0,Wn.jsx)(Np,{remarkPlugins:[Kl],components:DI,children:e})})}var mf=E(ce(),1),re=E(N(),1),Kv=3,OI=/^(\d+)-(\d+)-(\d+)$/;function zI(e){return e.split(/\s+/).slice(0,2).map(t=>{var n;return(n=t[0])!=null?n:""}).join("").toUpperCase()}function BI(e){return e.replace(/\d{4}/g,t=>t.slice(2))}function Gv({image:e,label:t}){return(0,re.jsx)("span",{className:"ss-w-ecard-crest",style:{backgroundImage:`url(${e})`},...t?{role:"img",title:t,"aria-label":t}:{"aria-hidden":"true"}})}function FI({w:e,d:t,l:n}){return e+t+n===0?null:(0,re.jsxs)("span",{className:"ss-w-form","aria-hidden":"true",children:[e>0?(0,re.jsx)("span",{className:"ss-w-form-w",style:{flexGrow:e}}):null,t>0?(0,re.jsx)("span",{className:"ss-w-form-d",style:{flexGrow:t}}):null,n>0?(0,re.jsx)("span",{className:"ss-w-form-l",style:{flexGrow:n}}):null]})}function UI({s:e}){let t=OI.exec(e.value);return t?(0,re.jsxs)("div",{className:"ss-w-ecard-cell",children:[(0,re.jsx)("span",{className:"ss-w-ecard-cval",children:(0,re.jsx)(FI,{w:Number(t[1]),d:Number(t[2]),l:Number(t[3])})}),(0,re.jsx)("span",{className:"ss-w-ecard-clabel",children:e.value})]}):(0,re.jsxs)("div",{className:"ss-w-ecard-cell",children:[(0,re.jsx)("span",{className:"ss-w-ecard-cval",children:e.value}),(0,re.jsx)("span",{className:"ss-w-ecard-clabel",children:e.label})]})}function QI({stats:e}){if(e.length===0)return null;let t=Math.min(e.length,4);return(0,re.jsx)("div",{className:"ss-w-ecard-strip",style:{gridTemplateColumns:`repeat(${t}, 1fr)`},children:e.map(n=>(0,re.jsx)(UI,{s:n},n.label+n.value))})}function Yv({c:e,showScopeCrest:t}){let n=e.scopes.length===1?e.scopes[0]:null;return(0,re.jsxs)("div",{className:"ss-w-ecard-hd",children:[(0,re.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?"":zI(e.name)}),(0,re.jsxs)("span",{className:"ss-w-ecard-idtext",children:[(0,re.jsx)("span",{className:"ss-w-nm",children:e.name}),e.sub?(0,re.jsx)("span",{className:"ss-w-sub",children:e.sub}):null]}),(0,re.jsxs)("span",{className:"ss-w-ecard-meta",children:[t&&(n!=null&&n.image)?(0,re.jsx)(Gv,{image:n.image,label:n.label}):null,e.season?(0,re.jsx)("span",{className:"ss-w-ecard-season",children:BI(e.season)}):null]})]})}function HI({scopes:e,active:t,onSelect:n}){return(0,re.jsx)("div",{className:"ss-w-ecard-scopes",role:"tablist",children:e.map((r,i)=>{var s;return(0,re.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,re.jsx)(Gv,{image:r.image}):r.label},String((s=r.competitionId)!=null?s:"all"))})})}function VI({c:e}){let[t,n]=(0,mf.useState)(0);if(!(e.scopes.length>0))return(0,re.jsx)("div",{className:"ss-w-ecard ss-w-ecard-bare","data-kind":e.kind,children:(0,re.jsx)(Yv,{c:e,showScopeCrest:!1})});let i=e.scopes.length>1,s=e.scopes[i&&e.scopes[t]?t:0];return(0,re.jsxs)("div",{className:"ss-w-ecard","data-kind":e.kind,children:[(0,re.jsx)(Yv,{c:e,showScopeCrest:!i}),i?(0,re.jsx)(HI,{scopes:e.scopes,active:t,onSelect:n}):null,(0,re.jsx)(QI,{stats:s.stats})]})}function Zv({cards:e,disabled:t,showLessLabel:n="Show less",showMoreLabel:r=i=>`Show ${i} more`}){let[i,s]=(0,mf.useState)(!1);if(e.length===0)return null;let o=i?e:e.slice(0,Kv),a=e.length-Kv;return(0,re.jsxs)("div",{className:"ss-w-cards",children:[o.map(l=>(0,re.jsx)(VI,{c:l},l.id)),a>0?(0,re.jsx)("button",{type:"button",className:"ss-w-cards-more",disabled:t,onClick:()=>s(l=>!l),children:i?n:r(a)}):null]})}var gf=E(ce(),1);var ns=E(ce(),1);var $v=E(ce(),1),ek=E(N(),1),jI=4e3;function Yl({toast:e,onDismiss:t}){return(0,$v.useEffect)(()=>{if(!e)return;let n=setTimeout(t,jI);return()=>clearTimeout(n)},[e,t]),e?(0,ek.jsx)("div",{className:`ss-w-toast ss-w-toast-${e.kind}`,role:"status","aria-live":"polite",children:e.text}):null}var rs=E(N(),1);function _I(e){return Promise.race([e,new Promise((t,n)=>setTimeout(()=>n(new Error("add-to-slip timed out")),1e4))])}function Mo({selection:e,shownOdds:t,marketName:n,slip:r,ui:i}){let[s,o]=(0,ns.useState)(!1),[a,l]=(0,ns.useState)(!1),[u,c]=(0,ns.useState)(null),d=(0,ns.useCallback)(()=>c(null),[]),p=r.onAddToSlip;return!i||!p||!e?null:(0,rs.jsxs)("div",{className:"ss-w-slip",children:[(0,rs.jsx)("button",{type:"button",className:"ss-w-slip-btn",disabled:s||a,onClick:async()=>{o(!0);try{let h=await _I(Promise.resolve(p(e)));if(h!=null&&!Ad(h))throw new Error("malformed add-to-slip result");let w=h!=null?h:void 0;if(c(vw(w,t||e.oddsDecimal.toFixed(2),i)),l(xw(w)),ul(w)&&r.onMarketClicked)try{r.onMarketClicked(n)}catch{}}catch{c({kind:"error",text:i.slipFailed})}finally{o(!1)}},children:a?i.inSlip:i.addToSlip}),(0,rs.jsx)(Yl,{toast:u,onDismiss:d})]})}function tk({it:e,slip:t,ui:n}){var i;let r=e.addToSlipEnabled?Mw(e,t.conversationId):null;return(0,rs.jsx)(Mo,{selection:r,shownOdds:(i=e.odds)!=null?i:"",marketName:e.market,slip:t,ui:n})}var Po=E(N(),1);function is({previous:e,current:t,direction:n,ui:r}){var o,a,l,u;if(e===void 0||n===void 0)return null;let i=n==="shortened"?(o=r==null?void 0:r.oddsShortened)!=null?o:"shortened":(a=r==null?void 0:r.oddsDrifted)!=null?a:"drifted",s=(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,Po.jsxs)("span",{className:"ss-w-move",role:"img","aria-label":s,children:[(0,Po.jsx)("span",{className:"ss-w-move-prev","aria-hidden":"true",children:e}),(0,Po.jsx)("span",{className:"ss-w-move-arrow","aria-hidden":"true",children:n==="shortened"?"\u25BC":"\u25B2"})]})}var nk=E(ce(),1),hf=E(N(),1);function XI(e){return(e!=null?e:"").trim().slice(0,1).toUpperCase()||"?"}function Re({url:e,name:t,kind:n}){let r=n==="comp"?"ss-w-bi-comp-logo":"ss-w-bi-crest",[i,s]=(0,nk.useState)(!1);return e&&!i?(0,hf.jsx)("img",{className:r,src:e,alt:"","aria-hidden":"true",onError:()=>s(!0)}):(0,hf.jsx)("span",{className:`${r} ss-w-bi-crest-mono`,"aria-hidden":"true",children:XI(t)})}var Gl=E(ce(),1);var li=E(N(),1),JI={pin:{viewBox:"0 0 24 24",strokeWidth:1.4,transform:"scale(1.5)",d:"M9.5 1.5 14.5 6.5 13 8l-.5-.5-3 3 .3 2.2-1.4 1.4L5.6 11.3l-3.3 3.3-1-1 3.3-3.3L1.9 7.5l1.4-1.4 2.2.3 3-3L8 2.9z"},star:{viewBox:"0 0 24 24",strokeWidth:2,d:"M12 2.5l2.9 5.9 6.5.95-4.7 4.58 1.1 6.47L12 17.35 6.1 20.4l1.1-6.47L2.5 9.35l6.5-.95z"},bookmark:{viewBox:"0 0 24 24",strokeWidth:2,d:"M7 3h10a1.5 1.5 0 0 1 1.5 1.5V21l-6.5-3.6L5.5 21V4.5A1.5 1.5 0 0 1 7 3z"}};function Yt({pin:e,monitor:t,ui:n}){let[r,i]=(0,Gl.useState)(null),s=(0,Gl.useCallback)(()=>i(null),[]);if(!t||!t.enabled)return null;let o=jw(e),a=t.isPinned(o),l=e.kind==="match"?{pin:n.matchPinLabel,unpin:n.matchUnpinLabel}:{pin:n.pinLabel,unpin:n.unpinLabel},u=()=>{let d=t.togglePin({...e,key:o});d==="match_limit"?i({kind:"error",text:n.matchLimitToast}):d==="market_limit"&&i({kind:"error",text:n.marketLimitToast})},c=JI[n.pinIcon];return(0,li.jsxs)("div",{className:"ss-w-pin-wrap",children:[(0,li.jsx)("button",{type:"button",className:"ss-w-pin","data-on":a||void 0,"data-icon":n.pinIcon,"aria-pressed":a,"aria-label":a?l.unpin:l.pin,onClick:u,children:(0,li.jsx)("svg",{viewBox:c.viewBox,"aria-hidden":"true",children:(0,li.jsx)("path",{transform:c.transform,d:c.d,fill:a?"currentColor":"none",stroke:a?"none":"currentColor",strokeWidth:c.strokeWidth,strokeLinejoin:"round",strokeLinecap:"round"})})}),(0,li.jsx)(Yl,{toast:r,onDismiss:s})]})}var Q=E(N(),1);function ik({stats:e}){return(0,Q.jsx)("div",{className:"ss-w-bi-rows",children:e.map(t=>(0,Q.jsxs)("div",{className:"ss-w-bi-row",children:[(0,Q.jsx)("span",{className:"ss-w-bi-row-lbl",children:t.label}),(0,Q.jsx)("span",{className:"ss-w-bi-row-num",children:t.value})]},`${t.label}:${t.value}`))})}function qI({scopes:e}){var i,s;let[t,n]=(0,gf.useState)(0),r=(s=(i=e[t])!=null?i:e[0])!=null?s:{key:"",label:"",stats:[]};return(0,Q.jsxs)("div",{className:"ss-w-bi-scoped",children:[(0,Q.jsx)("div",{className:"ss-w-bi-scopes",role:"group",children:e.map((o,a)=>(0,Q.jsx)("button",{type:"button",className:"ss-w-bi-chip","aria-pressed":a===t,onClick:()=>n(a),children:o.label},o.key))}),(0,Q.jsx)(ik,{stats:r.stats},r.key)]})}function KI(e){return!!e.scopes&&e.scopes.length>=2||e.stats.length>0}function YI({it:e,ui:t}){var l,u,c,d;let[n,r]=(0,gf.useState)(!1),i=!!e.scopes&&e.scopes.length>=2,s=KI(e),o=!!e.text;if(!o&&!s)return null;let a=s||((u=(l=e.text)==null?void 0:l.length)!=null?u:0)>90;return(0,Q.jsxs)("div",{className:"ss-w-bi-reason",children:[(0,Q.jsx)("span",{className:"ss-w-bi-chart","aria-hidden":"true"}),(0,Q.jsxs)("div",{className:"ss-w-bi-reason-body",children:[o?(0,Q.jsx)("p",{className:`ss-w-bi-text${n?"":" ss-w-bi-text-clamp"}`,children:e.text}):null,n&&s?i?(0,Q.jsx)(qI,{scopes:e.scopes}):(0,Q.jsx)(ik,{stats:e.stats}):null]}),a?(0,Q.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,Q.jsx)("span",{className:`ss-w-bi-arrow${n?" ss-w-bi-arrow-open":""}`,"aria-hidden":"true"})}):null]})}function rk({it:e}){return e.homeTeamName&&e.awayTeamName?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Re,{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)(Re,{kind:"team",url:e.awayCrest,name:e.awayTeamName})]}):e.fixture?(0,Q.jsx)("span",{className:"ss-w-bi-fixture-txt",children:e.fixture}):e.competition?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Re,{kind:"comp",url:e.competitionCrest,name:e.competition}),(0,Q.jsx)("span",{className:"ss-w-bi-comp",children:e.competition})]}):null}function GI({it:e,ui:t,slip:n,monitor:r}){var p,f,h;let i=e.isLive||e.phase==="live",s=e.kickoffUtc&&(t!=null&&t.bettingKickoff)?t.bettingKickoff(e.kickoffUtc):void 0,o=(p=e.kickoffLabel)!=null?p:s?`${s.dayLabel} ${s.time}`:void 0,l=!!e.homeTeamName&&!!e.awayTeamName||!!e.fixture,u=!!r&&e.pinEnabled,c=l||!!e.competition||i||!!o||u,d=(0,Q.jsxs)(Q.Fragment,{children:[i?(0,Q.jsxs)("span",{className:"ss-w-bi-live",children:[(0,Q.jsx)("span",{className:"ss-w-bi-live-dot","aria-hidden":"true"}),(f=t==null?void 0:t.liveLabel)!=null?f:"Live"]}):null,o?(0,Q.jsx)("span",{className:"ss-w-bi-kick",children:o}):null,u&&t?(0,Q.jsx)(Yt,{ui:t,monitor:r,pin:{kind:"match",matchId:e.matchId}}):null]});return(0,Q.jsxs)("div",{className:"ss-w-binsight",children:[c?l?(0,Q.jsxs)("div",{className:"ss-w-bi-head",children:[e.competition||i||o||u?(0,Q.jsxs)("div",{className:"ss-w-bi-meta",children:[(0,Q.jsx)("span",{className:"ss-w-bi-meta-left",children:e.competition?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Re,{kind:"comp",url:e.competitionCrest,name:e.competition}),(0,Q.jsx)("span",{className:"ss-w-bi-comp",children:e.competition})]}):null}),(0,Q.jsx)("span",{className:"ss-w-bi-meta-right",children:d})]}):null,(0,Q.jsx)("div",{className:"ss-w-bi-fixture-line",children:(0,Q.jsx)(rk,{it:e})})]}):(0,Q.jsxs)("div",{className:"ss-w-bi-header",children:[(0,Q.jsx)("span",{className:"ss-w-bi-header-left",children:(0,Q.jsx)(rk,{it:e})}),(0,Q.jsx)("span",{className:"ss-w-bi-header-right",children:d})]}):null,(0,Q.jsxs)("div",{className:"ss-w-bi-action",children:[e.market?(0,Q.jsx)("span",{className:"ss-w-bi-market",children:e.market}):null,(0,Q.jsxs)("div",{className:"ss-w-bi-pick-row",children:[e.selection?(0,Q.jsx)("span",{className:"ss-w-bi-sel",children:e.selection}):null,e.odds?(0,Q.jsxs)("span",{className:"ss-w-bi-odds",children:[(0,Q.jsx)("b",{children:e.odds}),(0,Q.jsx)(is,{previous:e.previousOdds,current:e.odds,direction:e.movementDirection,ui:t}),e.bookmaker?(0,Q.jsx)("span",{className:"ss-w-bi-book",children:e.bookmaker}):null]}):null,(0,Q.jsx)(tk,{it:e,slip:n,ui:t}),u&&t?(0,Q.jsx)(Yt,{ui:t,monitor:r,pin:{kind:"selection",matchId:e.matchId,marketDeveloperName:e.marketDeveloperName,selectionLabel:e.selectionLabel,line:e.line,matchOddsId:e.matchOddsId}}):null]})]}),e.isMarketFloor?(0,Q.jsx)("span",{className:"ss-w-bi-floor",children:(h=t==null?void 0:t.marketFloorLabel)!=null?h:"Market price \xB7 not a value pick"}):null,(0,Q.jsx)(YI,{it:e,ui:t}),e.disclaimer?(0,Q.jsx)("p",{className:"ss-w-bi-disc",children:e.disclaimer}):null]})}function sk({insights:e,ui:t,slip:n,monitor:r}){return!e||e.length===0?null:(0,Q.jsx)("div",{className:"ss-w-binsights",children:e.map(i=>(0,Q.jsx)(GI,{it:i,ui:t,slip:n,monitor:r},i.id))})}var ak=E(ce(),1);var J=E(N(),1);function ok({vm:e,row:t,ui:n,slip:r,inSlipIds:i}){let s=e.addToSlipEnabled?Pw(e,t,r.conversationId):null,o=!!i&&t.matchOddsId!=null&&!!i[t.matchOddsId];return(0,J.jsxs)("div",{className:"ss-w-mo-row",children:[(0,J.jsx)("span",{className:"ss-w-mo-sel",children:t.selection}),(0,J.jsx)(is,{previous:t.previousOdds,current:t.odds,direction:t.movementDirection,ui:n}),(0,J.jsx)("span",{className:"ss-w-mo-price",children:t.odds}),o&&n?(0,J.jsxs)("span",{className:"ss-w-mon-inslip",children:["\u2713 ",n.inSlipLabel]}):null,(0,J.jsx)(Mo,{selection:s,shownOdds:t.odds,marketName:e.market,slip:r,ui:n})]})}function ZI({vm:e,ui:t,slip:n,monitor:r,inSlipIds:i,hideHeader:s,pinRef:o}){var w,C,m,g;let[a,l]=(0,ak.useState)(!1),u=e.kickoffUtc&&(t!=null&&t.bettingKickoff)?t.bettingKickoff(e.kickoffUtc):void 0,c=(w=e.kickoffLabel)!=null?w:u?`${u.dayLabel} ${u.time}`:void 0,d=!!e.homeTeamName&&!!e.awayTeamName,p=!!r&&e.pinEnabled,f=p&&!o,h=!!e.competition||e.isLive||!!c||p;return(0,J.jsxs)("div",{className:s?"ss-w-mocard ss-w-mocard--bare":"ss-w-mocard",children:[!s&&(0,J.jsxs)(J.Fragment,{children:[h?(0,J.jsxs)("div",{className:"ss-w-bi-header",children:[(0,J.jsx)("span",{className:"ss-w-bi-header-left",children:e.competition?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Re,{kind:"comp",url:e.competitionCrest,name:e.competition}),(0,J.jsx)("span",{className:"ss-w-bi-comp",children:e.competition})]}):null}),(0,J.jsxs)("span",{className:"ss-w-bi-header-right",children:[e.isLive?(0,J.jsxs)("span",{className:"ss-w-bi-live",children:[(0,J.jsx)("span",{className:"ss-w-bi-live-dot","aria-hidden":"true"}),(C=t==null?void 0:t.liveLabel)!=null?C:"Live"]}):null,c?(0,J.jsx)("span",{className:"ss-w-bi-kick",children:c}):null,p&&t?(0,J.jsx)(Yt,{ui:t,monitor:r,pin:o!=null?o:{kind:"match",matchId:e.matchId}}):null]})]}):null,d||e.fixture||e.market||f?(0,J.jsxs)("div",{className:"ss-w-mo-sub",children:[d?(0,J.jsxs)("div",{className:"ss-w-bi-fixture",children:[(0,J.jsx)(Re,{kind:"team",url:e.homeCrest,name:e.homeTeamName}),(0,J.jsx)("span",{className:"ss-w-bi-team",children:e.homeTeamName}),(0,J.jsx)("span",{className:"ss-w-bi-vs","aria-hidden":"true",children:"vs"}),(0,J.jsx)("span",{className:"ss-w-bi-team",children:e.awayTeamName}),(0,J.jsx)(Re,{kind:"team",url:e.awayCrest,name:e.awayTeamName})]}):e.fixture?(0,J.jsx)("span",{className:"ss-w-mo-teams",children:e.fixture}):null,e.market||f?(0,J.jsxs)("div",{className:"ss-w-mo-market-row",children:[e.market?(0,J.jsx)("span",{className:"ss-w-mo-market",children:e.market}):null,f&&t?(0,J.jsx)(Yt,{ui:t,monitor:r,pin:{kind:"market",matchId:e.matchId,marketDeveloperName:e.marketDeveloperName,line:e.mainLine}}):null]}):null]}):null]}),(0,J.jsxs)("div",{className:"ss-w-mo-rows",children:[e.mainRows.map(y=>(0,J.jsx)(ok,{vm:e,row:y,ui:t,slip:n,inSlipIds:i},y.key)),a?e.moreRows.map(y=>(0,J.jsx)(ok,{vm:e,row:y,ui:t,slip:n,inSlipIds:i},y.key)):null]}),e.moreRows.length>0?(0,J.jsxs)("button",{type:"button",className:"ss-w-mo-more","aria-expanded":a,onClick:()=>l(y=>!y),children:[(0,J.jsx)("span",{children:a?(m=t==null?void 0:t.hideLines)!=null?m:"Hide lines":`${(g=t==null?void 0:t.moreLines)!=null?g:"More lines"} (${e.moreRows.length})`}),(0,J.jsx)("span",{className:`ss-w-mo-more-chev${a?" ss-w-mo-more-chev-up":""}`,"aria-hidden":"true"})]}):null,e.bookmaker?(0,J.jsx)("div",{className:"ss-w-mo-foot",children:(0,J.jsx)("span",{children:e.bookmaker})}):null,e.disclaimer?(0,J.jsx)("p",{className:"ss-w-bi-disc",children:e.disclaimer}):null]})}function ss({cards:e,ui:t,slip:n,monitor:r,inSlipIds:i,hideHeader:s,pinRef:o}){return!e||e.length===0?null:(0,J.jsx)("div",{className:"ss-w-mocards",children:e.map(a=>(0,J.jsx)(ZI,{vm:a,ui:t,slip:n,monitor:r,inSlipIds:i,hideHeader:s,pinRef:o},a.id))})}var ne=E(N(),1);function eT(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 tT({vm:e,ui:t,monitor:n}){var a,l,u,c,d,p;let r=eT(e,t),i=r?`, ${r}`:"",s=t!=null&&t.chartAria?t.chartAria(e.opening,e.current,r,e.windowHours):`Price movement over the last ${e.windowHours} hours: opened at ${e.opening}, currently ${e.current}${i}.`,o=!!n&&e.pinEnabled;return(0,ne.jsxs)("div",{className:"ss-w-omcard",children:[(0,ne.jsxs)("div",{className:"ss-w-om-head",children:[(0,ne.jsx)("span",{className:"ss-w-om-market",children:e.market}),(0,ne.jsx)("span",{className:"ss-w-om-tag",children:(a=t==null?void 0:t.priceMovement)!=null?a:"Price movement"}),o&&t?(0,ne.jsx)(Yt,{ui:t,monitor:n,pin:{kind:"selection",matchId:e.matchId,marketDeveloperName:e.marketDeveloperName,selectionLabel:e.selectionLabel,line:e.line,withHistory:!0,matchOddsId:e.matchOddsId}}):null]}),e.fixture?(0,ne.jsxs)("div",{className:"ss-w-om-fixture",children:[(0,ne.jsx)("span",{children:e.fixture}),e.competition?(0,ne.jsx)("span",{className:"ss-w-om-comp",children:e.competition}):null]}):null,(0,ne.jsx)("div",{className:"ss-w-om-sel",children:e.selection}),(0,ne.jsx)(is,{previous:e.opening,current:e.current,direction:e.direction,ui:t}),e.geometry===null?(0,ne.jsx)("div",{className:"ss-w-om-empty",children:e.observationCount===1?(l=t==null?void 0:t.singlePricePoint)!=null?l:"Only one price recorded so far for this selection.":(u=t==null?void 0:t.notEnoughHistory)!=null?u:"No price history recorded yet for this selection."}):(0,ne.jsxs)("svg",{className:"ss-w-om-chart",viewBox:e.geometry.viewBox,width:"100%",role:"img","aria-label":s,children:[e.geometry.gridlines.map(f=>(0,ne.jsxs)("g",{children:[(0,ne.jsx)("line",{className:"ss-w-om-grid",x1:40,y1:f.y,x2:312,y2:f.y}),(0,ne.jsx)("text",{className:"ss-w-om-ylab",x:34,y:f.y+3,textAnchor:"end",children:f.price.toFixed(2)})]},f.price)),(0,ne.jsx)("path",{className:"ss-w-om-line",d:e.geometry.path,fill:"none"}),e.geometry.markers.map((f,h)=>(0,ne.jsx)("circle",{className:"ss-w-om-dot",cx:f.x,cy:f.y,r:2.5},h)),t!=null&&t.chartTimeLabel?(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)("text",{className:"ss-w-om-xlab",x:40,y:132,textAnchor:"start",children:t.chartTimeLabel(e.geometry.startMs)}),(0,ne.jsx)("text",{className:"ss-w-om-xlab",x:312,y:132,textAnchor:"end",children:t.chartTimeLabel(e.geometry.endMs)})]}):(0,ne.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,ne.jsxs)("div",{className:"ss-w-om-foot",children:[(0,ne.jsxs)("span",{children:[(c=t==null?void 0:t.openingLabel)!=null?c:"Opening"," ",(0,ne.jsx)("b",{children:e.opening})]}),(0,ne.jsxs)("span",{children:[(d=t==null?void 0:t.currentLabel)!=null?d:"Current"," ",(0,ne.jsx)("b",{children:e.current})]})]}),e.bookmaker?(0,ne.jsx)("div",{className:"ss-w-om-foot",children:(0,ne.jsx)("span",{children:e.bookmaker})}):null,e.excludedCount>0?(0,ne.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,ne.jsx)("div",{className:"ss-w-om-susp",children:(p=t==null?void 0:t.selectionSuspended)!=null?p:"This selection is not currently available to bet."}):null,e.disclaimer?(0,ne.jsx)("div",{className:"ss-w-om-disc",children:e.disclaimer}):null]})}function Zl({cards:e,ui:t,monitor:n}){return!e||e.length===0?null:(0,ne.jsx)("div",{className:"ss-w-omcards",children:e.map(r=>(0,ne.jsx)(tT,{vm:r,ui:t,monitor:n},r.id))})}var _n=E(N(),1);function $l({actions:e,loading:t,disabled:n,onAct:r}){return e.length===0&&!t?null:(0,_n.jsxs)("div",{className:"ss-w-actions",children:[e.map((i,s)=>(0,_n.jsx)("button",{type:"button",className:"ss-w-abtn",disabled:n,onClick:()=>r(i),children:i.label},`${i.label}-${s}`)),e.length===0&&t?(0,_n.jsxs)(_n.Fragment,{children:[(0,_n.jsx)("span",{className:"ss-w-abtn-shimmer"}),(0,_n.jsx)("span",{className:"ss-w-abtn-shimmer"})]}):null]})}var Nt=E(N(),1),nT=3;function uk({tile:e,onTap:t}){var s;let n=e.span==="full"?"ss-w-dash-tile--full":"ss-w-dash-tile--half",r=((s=e.imageUrls)!=null?s:[]).slice(0,nT),i=!!e.badgeText||r.length>0;return(0,Nt.jsxs)("button",{type:"button",className:`ss-w-dash-tile ${n}`,onClick:t,children:[(0,Nt.jsx)("span",{className:"ss-w-dash-tile-icon",children:(0,Nt.jsx)(ny,{name:e.icon})}),(0,Nt.jsxs)("span",{className:"ss-w-dash-tile-body",children:[(0,Nt.jsx)("span",{className:"ss-w-dash-tile-title",children:e.title}),e.subtitle?(0,Nt.jsx)("span",{className:"ss-w-dash-tile-subtitle",children:e.subtitle}):null,i?(0,Nt.jsxs)("span",{className:"ss-w-dash-tile-meta",children:[e.badgeText?(0,Nt.jsx)("span",{className:"ss-w-dash-tile-badge",children:e.badgeText}):null,r.length>0?(0,Nt.jsx)("span",{className:"ss-w-dash-tile-crests",children:r.map((o,a)=>(0,Nt.jsx)("span",{className:"ss-w-dash-tile-crest",style:{backgroundImage:`url(${o})`},"aria-hidden":"true"},`${o}-${a}`))}):null]}):null]}),(0,Nt.jsx)("span",{className:"ss-w-dash-tile-chevron",children:(0,Nt.jsx)(pl,{})})]})}var Xn=E(N(),1),wf={market:"ss-w-dash--market",goal:"ss-w-dash--goal",discovery:"ss-w-dash--discovery"};function rT(e){return Object.prototype.hasOwnProperty.call(wf,e)?wf[e]:wf.goal}function ck({dashboard:e,onTap:t}){return(0,Xn.jsxs)("div",{className:`ss-w-dash ${rT(e.layout)}`,children:[(0,Xn.jsxs)("div",{className:"ss-w-dash-head",children:[(0,Xn.jsx)("span",{className:"ss-w-dash-title",children:e.title}),e.subtitle?(0,Xn.jsx)("span",{className:"ss-w-dash-subtitle",children:e.subtitle}):null]}),(0,Xn.jsx)("div",{className:"ss-w-dash-grid",children:e.tiles.map((n,r)=>(0,Xn.jsx)(uk,{tile:n,onTap:()=>t(n,r)},`${n.title}-${r}`))}),e.footerTip?(0,Xn.jsx)("span",{className:"ss-w-dash-foot",children:e.footerTip}):null]})}var W=E(N(),1);function iT(e){return e==="W"?"ss-w-fandash-teamform-cell--win":e==="L"?"ss-w-fandash-teamform-cell--loss":"ss-w-fandash-teamform-cell--draw"}function dk({m:e,subjectCrestUrl:t,subjectName:n}){var o;let r=(0,W.jsx)(Re,{url:t!=null?t:void 0,name:n,kind:"team"}),i=(0,W.jsx)(Re,{url:(o=e.opponentCrestUrl)!=null?o:void 0,kind:"team"}),s=e.teamIsHome?`${e.teamScore} - ${e.oppScore}`:`${e.oppScore} - ${e.teamScore}`;return(0,W.jsxs)("div",{className:`ss-w-fandash-teamform-cell ${iT(e.result)}`,children:[e.teamIsHome?r:i,(0,W.jsx)("span",{className:"ss-w-fandash-teamform-score",children:s}),e.teamIsHome?i:r]})}var sT=5;function oT(e){return Array.from({length:sT},(t,n)=>n).flatMap(t=>[(0,W.jsx)("span",{className:"ss-w-fandash-teamform-slot",children:e.homeForm[t]?(0,W.jsx)(dk,{m:e.homeForm[t],subjectCrestUrl:e.homeCrestUrl,subjectName:e.homeName}):null},`h-${t}`),(0,W.jsx)("span",{className:"ss-w-fandash-teamform-slot",children:e.awayForm[t]?(0,W.jsx)(dk,{m:e.awayForm[t],subjectCrestUrl:e.awayCrestUrl,subjectName:e.awayName}):null},`a-${t}`)])}function pk({card:e}){var r,i,s,o;let{data:t}=e,n=t.h2H;return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-fixture",children:[(0,W.jsxs)("span",{className:"ss-w-fandash-eyebrow",children:[e.title," \xB7 ",t.competition]}),(0,W.jsxs)("div",{className:"ss-w-fandash-fixture-teams",children:[(0,W.jsxs)("span",{className:"ss-w-fandash-fixture-team",children:[(0,W.jsx)(Re,{url:(r=t.homeCrestUrl)!=null?r:void 0,name:t.homeName,kind:"team"}),(0,W.jsx)("span",{className:"ss-w-fandash-fixture-name",children:t.homeName})]}),(0,W.jsx)("span",{className:"ss-w-fandash-fixture-vs",children:"v"}),(0,W.jsxs)("span",{className:"ss-w-fandash-fixture-team ss-w-fandash-fixture-team--away",children:[(0,W.jsx)("span",{className:"ss-w-fandash-fixture-name",children:t.awayName}),(0,W.jsx)(Re,{url:(i=t.awayCrestUrl)!=null?i:void 0,name:t.awayName,kind:"team"})]})]}),(0,W.jsxs)("div",{className:"ss-w-fandash-fixture-meta",children:[(0,W.jsx)("span",{className:"ss-w-fandash-fixture-kickoff",children:t.kickoffLabel}),t.venue?(0,W.jsxs)("span",{className:"ss-w-fandash-fixture-venue",children:[" \xB7 ",t.venue]}):null]})]}),(0,W.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-lastfive",children:[(0,W.jsx)("span",{className:"ss-w-fandash-eyebrow",children:t.formLabel}),(0,W.jsxs)("div",{className:"ss-w-fandash-teamform-head",children:[(0,W.jsxs)("span",{className:"ss-w-fandash-teamform-head-team",children:[(0,W.jsx)(Re,{url:(s=t.homeCrestUrl)!=null?s:void 0,name:t.homeName,kind:"team"}),(0,W.jsx)("span",{className:"ss-w-fandash-teamform-head-name",children:t.homeName})]}),(0,W.jsxs)("span",{className:"ss-w-fandash-teamform-head-team",children:[(0,W.jsx)(Re,{url:(o=t.awayCrestUrl)!=null?o:void 0,name:t.awayName,kind:"team"}),(0,W.jsx)("span",{className:"ss-w-fandash-teamform-head-name",children:t.awayName})]})]}),(0,W.jsx)("div",{className:"ss-w-fandash-teamform-rows",children:oT(t)})]}),n||t.fact?(0,W.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-h2h",children:[n?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("span",{className:"ss-w-fandash-eyebrow",children:n.label}),(0,W.jsxs)("div",{className:"ss-w-fandash-split",children:[(0,W.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,W.jsx)("span",{className:"ss-w-fandash-split-value",children:n.wins}),(0,W.jsx)("span",{className:"ss-w-fandash-split-label",children:n.homeWinsLabel})]}),(0,W.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,W.jsx)("span",{className:"ss-w-fandash-split-value",children:n.draws}),(0,W.jsx)("span",{className:"ss-w-fandash-split-label",children:n.drawsLabel})]}),(0,W.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,W.jsx)("span",{className:"ss-w-fandash-split-value",children:n.losses}),(0,W.jsx)("span",{className:"ss-w-fandash-split-label",children:n.awayWinsLabel})]})]})]}):null,t.fact?(0,W.jsx)("span",{className:"ss-w-fandash-fact",children:t.fact}):null]}):null]})}var ui=E(ce(),1),cn=E(N(),1),aT=864e5;function lT(e,t,n){let r=Math.floor((e*1e3-t)/1e3);if(r<=0)return null;let i=Math.floor(r/86400),s=Math.floor(r%86400/3600),o=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(s),unit:"h"}];let u=[{value:l(s),unit:"h"},{value:l(o),unit:"m"}];return n&&u.push({value:l(a),unit:"s"}),u}function fk({card:e}){var l;let{data:t}=e,n={d:t.daysUnit,h:t.hoursUnit,m:t.minutesUnit,s:t.secondsUnit},[r,i]=(0,ui.useState)(()=>Date.now()),[s]=(0,ui.useState)(()=>typeof window!="undefined"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches),o=t.kickoffUnix*1e3-r<aT;(0,ui.useEffect)(()=>{if(s)return;let u=window.setInterval(()=>i(Date.now()),o?1e3:6e4);return()=>window.clearInterval(u)},[s,o]);let a=lT(t.kickoffUnix,r,o&&!s);return(0,cn.jsx)("div",{className:"ss-w-fandash-card ss-w-fandash-countdown",children:(0,cn.jsxs)("div",{className:"ss-w-fandash-countdown-top",children:[(0,cn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:(l=e.title)!=null?l:"Kick-off in"}),a?(0,cn.jsx)("span",{className:"ss-w-fandash-countdown-clock",children:a.map((u,c)=>(0,cn.jsxs)(ui.Fragment,{children:[c>0?(0,cn.jsx)("span",{className:"ss-w-fandash-countdown-colon",children:":"}):null,(0,cn.jsxs)("span",{className:"ss-w-fandash-countdown-seg",children:[(0,cn.jsx)("span",{className:"ss-w-fandash-countdown-value",children:u.value}),(0,cn.jsx)("span",{className:"ss-w-fandash-countdown-unit",children:n[u.unit]})]})]},u.unit))}):null]})})}var gk=E(ce(),1);var ke=E(N(),1),yf=3;function mk({name:e,crestUrl:t}){return(0,ke.jsxs)("span",{className:"ss-w-fandash-injuries-col-head",children:[(0,ke.jsx)(Re,{url:t!=null?t:void 0,name:e,kind:"team"}),(0,ke.jsx)("span",{className:"ss-w-fandash-injuries-col-head-name",children:e})]})}function hk({rows:e,emptyLabel:t,limit:n}){if(e.length===0)return(0,ke.jsx)("span",{className:"ss-w-fandash-injuries-empty",children:t});let r=n===void 0?e:e.slice(0,n);return(0,ke.jsx)("ul",{className:"ss-w-fandash-injury-list",children:r.map((i,s)=>(0,ke.jsxs)("li",{className:"ss-w-fandash-injury-row",children:[(0,ke.jsx)("span",{className:"ss-w-fandash-injury-name",children:i.playerName}),(0,ke.jsxs)("span",{className:"ss-w-fandash-injury-meta",children:[(0,ke.jsx)("span",{className:"ss-w-fandash-injury-status",children:i.status}),i.injuryType?(0,ke.jsx)("span",{className:"ss-w-fandash-injury-type",children:i.injuryType}):null,i.expectedReturnLabel?(0,ke.jsx)("span",{className:"ss-w-fandash-injury-return",children:i.expectedReturnLabel}):null]})]},`${i.playerName}-${s}`))})}function wk({card:e,ui:t}){var u,c;let{data:n}=e,[r,i]=(0,gk.useState)(!1),s=Math.max(0,n.ours.length-yf)+Math.max(0,n.theirs.length-yf),o=r?void 0:yf,a=(u=t==null?void 0:t.showMore)!=null?u:(d=>`Show ${d} more`),l=(c=t==null?void 0:t.showLess)!=null?c:"Show less";return(0,ke.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-injuries",children:[e.title?(0,ke.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,ke.jsxs)("div",{className:"ss-w-fandash-injuries-cols",children:[(0,ke.jsxs)("div",{className:"ss-w-fandash-injuries-col",children:[(0,ke.jsx)(mk,{name:n.oursName,crestUrl:n.oursCrestUrl}),(0,ke.jsx)(hk,{rows:n.ours,emptyLabel:n.emptyLabel,limit:o})]}),(0,ke.jsx)("div",{className:"ss-w-fandash-injuries-divider"}),(0,ke.jsxs)("div",{className:"ss-w-fandash-injuries-col",children:[(0,ke.jsx)(mk,{name:n.theirsName,crestUrl:n.theirsCrestUrl}),(0,ke.jsx)(hk,{rows:n.theirs,emptyLabel:n.emptyLabel,limit:o})]})]}),s>0?(0,ke.jsx)("button",{type:"button",className:"ss-w-fandash-injuries-more","aria-expanded":r,onClick:()=>i(d=>!d),children:r?l:a(s)}):null]})}var os=E(N(),1);function yk({card:e}){return(0,os.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-reasons",children:[e.title?(0,os.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,os.jsx)("ul",{className:"ss-w-fandash-reason-list",children:e.data.angles.map((t,n)=>(0,os.jsx)("li",{className:"ss-w-fandash-reason-item",children:t},`${t}-${n}`))})]})}var as=E(N(),1);function xk({card:e}){return(0,as.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-watch",children:[e.title?(0,as.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,as.jsx)("span",{className:"ss-w-fandash-stations",children:e.data.stations.map((t,n)=>(0,as.jsx)("span",{className:"ss-w-fandash-station-chip",children:t},`${t}-${n}`))})]})}var dn=E(N(),1);function vk({card:e,onTap:t}){return(0,dn.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,dn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,dn.jsx)("div",{className:"ss-w-fandash-congested-grid",children:e.data.entries.map((n,r)=>(0,dn.jsxs)("span",{className:"ss-w-fandash-congested-cell",children:[(0,dn.jsx)("span",{className:"ss-w-fandash-congested-day",children:n.dayLabel}),(0,dn.jsx)("span",{className:"ss-w-fandash-congested-opponent",children:n.opponent}),(0,dn.jsx)("span",{className:"ss-w-fandash-congested-comp",children:n.competition}),(0,dn.jsx)("span",{className:"ss-w-fandash-congested-time",children:n.timeLabel})]},`${n.opponent}-${r}`))}),(0,dn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Ge=E(N(),1);function kk({rows:e}){return e.length===0?(0,Ge.jsx)("span",{className:"ss-w-fandash-transfers-empty",children:"None"}):(0,Ge.jsx)("ul",{className:"ss-w-fandash-transfer-list",children:e.map((t,n)=>(0,Ge.jsxs)("li",{className:"ss-w-fandash-transfer-row",children:[(0,Ge.jsx)("span",{className:"ss-w-fandash-transfer-name",children:t.playerName}),(0,Ge.jsx)("span",{className:"ss-w-fandash-transfer-club",children:t.otherClub}),t.type?(0,Ge.jsx)("span",{className:"ss-w-fandash-transfer-type",children:t.type}):null]},`${t.playerName}-${n}`))})}function bk({card:e}){let{data:t}=e;return(0,Ge.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-transfers",children:[e.title?(0,Ge.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ge.jsxs)("div",{className:"ss-w-fandash-transfers-cols",children:[(0,Ge.jsxs)("div",{className:"ss-w-fandash-transfers-col",children:[(0,Ge.jsx)("span",{className:"ss-w-fandash-transfers-col-head",children:"In"}),(0,Ge.jsx)(kk,{rows:t.in})]}),(0,Ge.jsxs)("div",{className:"ss-w-fandash-transfers-col",children:[(0,Ge.jsx)("span",{className:"ss-w-fandash-transfers-col-head",children:"Out"}),(0,Ge.jsx)(kk,{rows:t.out})]})]})]})}var Jn=E(N(),1);function Ck({card:e}){return(0,Jn.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-links",children:[e.title?(0,Jn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Jn.jsx)("div",{className:"ss-w-fandash-link-grid",children:e.data.links.map((t,n)=>(0,Jn.jsxs)("a",{className:"ss-w-fandash-link-tile",href:t.url,target:"_blank",rel:"noopener noreferrer",children:[(0,Jn.jsx)("span",{className:"ss-w-fandash-link-label",children:t.label}),(0,Jn.jsx)("span",{className:"ss-w-fandash-link-chevron",children:(0,Jn.jsx)(pl,{})})]},`${t.url}-${n}`))})]})}var Sk=E(ce(),1),ze=E(N(),1);function uT(e){return e.trim().slice(0,3).toUpperCase()}function Ak({url:e,name:t,side:n}){let[r,i]=(0,Sk.useState)(!1),s=`ss-w-fandash-postmatch-crest ss-w-fandash-postmatch-crest--${n}`;return e&&!r?(0,ze.jsx)("img",{className:s,src:e,alt:"","aria-hidden":"true",onError:()=>i(!0)}):(0,ze.jsx)("span",{className:`${s} ss-w-fandash-postmatch-crest--fallback`,"aria-hidden":"true",children:uT(t)})}function Ek({card:e}){let{data:t}=e,n=t.homeScore>=t.awayScore,r=t.awayScore>=t.homeScore;return(0,ze.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-postmatch-result",children:[(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-top",children:[e.title?(0,ze.jsx)("span",{className:"ss-w-fandash-postmatch-pill",children:e.title}):null,(0,ze.jsx)("span",{className:`ss-w-fandash-postmatch-tag ss-w-fandash-postmatch-tag--${t.outcome}`,children:t.resultLabel})]}),(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-main",children:[(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-side ss-w-fandash-postmatch-side--home",children:[(0,ze.jsx)(Ak,{url:t.homeCrestUrl,name:t.homeName,side:"home"}),(0,ze.jsx)("span",{className:"ss-w-fandash-postmatch-team-name",children:t.homeName})]}),(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-score-main",children:[(0,ze.jsx)("span",{className:`ss-w-fandash-postmatch-score-value ss-w-fandash-postmatch-score-value--${n?"win":"lose"}`,children:t.homeScore}),(0,ze.jsx)("span",{className:"ss-w-fandash-postmatch-score-sep",children:"\u2013"}),(0,ze.jsx)("span",{className:`ss-w-fandash-postmatch-score-value ss-w-fandash-postmatch-score-value--${r?"win":"lose"}`,children:t.awayScore})]}),(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-side ss-w-fandash-postmatch-side--away",children:[(0,ze.jsx)(Ak,{url:t.awayCrestUrl,name:t.awayName,side:"away"}),(0,ze.jsx)("span",{className:"ss-w-fandash-postmatch-team-name",children:t.awayName})]})]}),(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-meta",children:[t.kickoffLabel,t.competition?` \xB7 ${t.competition}`:""]})]})}var qn=E(N(),1);function Ik({card:e,onTap:t}){return(0,qn.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,qn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,qn.jsx)("ul",{className:"ss-w-fandash-postmatch-goal-list",children:e.data.goals.map((n,r)=>(0,qn.jsxs)("li",{className:n.scoredByClub?"ss-w-fandash-postmatch-goal ss-w-fandash-postmatch-goal--club":"ss-w-fandash-postmatch-goal",children:[(0,qn.jsx)("span",{className:"ss-w-fandash-postmatch-goal-ball"}),(0,qn.jsx)("span",{children:n.text})]},`${n.text}-${r}`))}),(0,qn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Ve=E(N(),1);function cT(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 Tk({card:e,onTap:t}){let{data:n}=e;return(0,Ve.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,Ve.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ve.jsx)("div",{className:"ss-w-fandash-postmatch-stat-rows",children:n.rows.map((r,i)=>{let s=n.clubIsHome?r.clubValue:r.oppValue,o=n.clubIsHome?r.oppValue:r.clubValue,a=n.clubIsHome?r.clubNum:r.oppNum,l=n.clubIsHome?r.oppNum:r.clubNum,{home:u,away:c}=cT(a,l);return(0,Ve.jsxs)("div",{className:"ss-w-fandash-postmatch-stat",children:[(0,Ve.jsxs)("div",{className:"ss-w-fandash-postmatch-stat-row",children:[(0,Ve.jsx)("span",{className:"ss-w-fandash-postmatch-stat-value ss-w-fandash-postmatch-stat-value--home",children:s}),(0,Ve.jsx)("span",{className:"ss-w-fandash-postmatch-stat-label",children:r.label}),(0,Ve.jsx)("span",{className:"ss-w-fandash-postmatch-stat-value ss-w-fandash-postmatch-stat-value--away",children:o})]}),(0,Ve.jsxs)("div",{className:"ss-w-fandash-postmatch-stat-bar",children:[(0,Ve.jsx)("span",{className:"ss-w-fandash-postmatch-stat-bar-home",style:{width:u}}),(0,Ve.jsx)("span",{className:"ss-w-fandash-postmatch-stat-bar-away",style:{width:c}})]})]},`${r.label}-${i}`)})}),n.rows.length>0?(0,Ve.jsxs)("div",{className:"ss-w-fandash-postmatch-legend",children:[(0,Ve.jsxs)("span",{className:"ss-w-fandash-postmatch-legend-item",children:[(0,Ve.jsx)("i",{className:"ss-w-fandash-postmatch-legend-swatch ss-w-fandash-postmatch-legend-swatch--home"}),n.homeName]}),(0,Ve.jsxs)("span",{className:"ss-w-fandash-postmatch-legend-item",children:[(0,Ve.jsx)("i",{className:"ss-w-fandash-postmatch-legend-swatch ss-w-fandash-postmatch-legend-swatch--away"}),n.awayName]})]}):null,(0,Ve.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Kn=E(N(),1);function dT(e){let t=e.trim().split(/\s+/).filter(Boolean);if(t.length===0)return"?";let n=t[0].charAt(0),r=t[t.length-1].charAt(0);return(t.length>1?`${n}${r}`:n).toUpperCase()}function Nk({card:e,onTap:t}){let{data:n}=e;return(0,Kn.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,Kn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Kn.jsxs)("div",{className:"ss-w-fandash-postmatch-perf-row",children:[(0,Kn.jsx)("span",{className:"ss-w-fandash-postmatch-perf-avatar","aria-hidden":"true",children:dT(n.playerName)}),(0,Kn.jsx)("span",{className:"ss-w-fandash-postmatch-perf-name",children:n.playerName}),(0,Kn.jsx)("span",{className:"ss-w-fandash-postmatch-perf-rating",children:n.ratingLabel})]}),(0,Kn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var ls=E(N(),1);function Lk({card:e}){let{data:t}=e;return(0,ls.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-postmatch-next",children:[e.title?(0,ls.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,ls.jsx)("div",{className:"ss-w-fandash-postmatch-next-row",children:(0,ls.jsx)("span",{className:"ss-w-fandash-postmatch-next-when",children:t.whenLabel})})]})}var Er=E(N(),1);function Mk({card:e,onTap:t}){let{data:n}=e;return(0,Er.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,Er.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Er.jsxs)("div",{className:"ss-w-fandash-resting-next-row",children:[(0,Er.jsx)("span",{className:"ss-w-fandash-resting-next-when",children:n.whenLabel}),n.competition?(0,Er.jsx)("span",{className:"ss-w-fandash-resting-next-competition",children:n.competition}):null]}),(0,Er.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Ir=E(N(),1);function Pk({card:e,onTap:t}){let{data:n}=e;return(0,Ir.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,Ir.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ir.jsxs)("div",{className:"ss-w-fandash-resting-standings-row",children:[(0,Ir.jsx)("span",{className:"ss-w-fandash-resting-standings-position",children:n.positionLabel}),(0,Ir.jsx)("span",{className:"ss-w-fandash-resting-standings-record",children:n.recordLabel})]}),(0,Ir.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Yn=E(N(),1);function Rk({card:e,onTap:t}){let{data:n}=e;return(0,Yn.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,Yn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Yn.jsxs)("div",{className:"ss-w-fandash-resting-season-rows",children:[n.scorerLabel?(0,Yn.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.scorerLabel}):null,n.playerLabel?(0,Yn.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.playerLabel}):null,(0,Yn.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.tallyLabel})]}),(0,Yn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var us=E(N(),1);function pT(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 Dk({card:e}){let{data:t}=e;return(0,us.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-resting-form",children:[e.title?(0,us.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,us.jsx)("span",{className:"ss-w-fandash-form",children:t.letters.map((n,r)=>(0,us.jsx)("span",{className:`ss-w-fandash-form-pill ${pT(n)}`,children:n},`${n}-${r}`))})]})}var tu=E(ce(),1);var eu=E(ce(),1),Ok=6e4,fT=15;function xf(e,t,n){if(!t)return e;let r=Math.floor((Date.now()-n)/Ok);return e+Math.min(Math.max(0,r),fT)}function zk(e,t,n){let[r,i]=(0,eu.useState)(()=>xf(e,t,n));return(0,eu.useEffect)(()=>{if(i(xf(e,t,n)),!t)return;let s=window.setInterval(()=>{i(xf(e,t,n))},Ok);return()=>window.clearInterval(s)},[e,t,n]),r}var be=E(N(),1);function mT(e){return e.trim().slice(0,3).toUpperCase()}function Bk({url:e,name:t,side:n}){let[r,i]=(0,tu.useState)(!1),s=`ss-w-fandash-live-crest ss-w-fandash-live-crest--${n}`;return e&&!r?(0,be.jsx)("img",{className:s,src:e,alt:"","aria-hidden":"true",onError:()=>i(!0)}):(0,be.jsx)("span",{className:`${s} ss-w-fandash-live-crest--fallback`,"aria-hidden":"true",children:mT(t)})}function hT(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 Fk({card:e,goalEvents:t}){let{data:n}=e,r=`${n.minute}:${n.homeScore}:${n.awayScore}`,i=(0,tu.useRef)(null);(!i.current||i.current.key!==r)&&(i.current={key:r,receivedAtMs:Date.now()});let s=zk(n.minute,n.clockRunning,i.current.receivedAtMs),o=n.minuteLabel.replace(/^\d+/,""),a=hT(t);return(0,be.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-score",children:[e.title?(0,be.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,be.jsxs)("div",{className:"ss-w-fandash-live-top",children:[(0,be.jsxs)("span",{className:"ss-w-fandash-live-pill",children:[(0,be.jsx)("span",{className:"ss-w-fandash-live-dot","aria-hidden":"true"}),n.statusLabel]}),(0,be.jsx)("span",{className:"ss-w-fandash-live-minute",children:`${s}${o}`}),n.competition?(0,be.jsx)("span",{className:"ss-w-fandash-live-competition",children:n.competition}):null]}),(0,be.jsxs)("div",{className:"ss-w-fandash-live-main",children:[(0,be.jsxs)("div",{className:"ss-w-fandash-live-side ss-w-fandash-live-side--home",children:[(0,be.jsx)(Bk,{url:n.homeCrestUrl,name:n.homeName,side:"home"}),(0,be.jsx)("span",{className:"ss-w-fandash-live-team-name",children:n.homeName})]}),(0,be.jsxs)("div",{className:"ss-w-fandash-live-score-main",children:[(0,be.jsx)("span",{className:"ss-w-fandash-live-score-value",children:n.homeScore}),(0,be.jsx)("span",{className:"ss-w-fandash-live-score-sep",children:"\u2013"}),(0,be.jsx)("span",{className:"ss-w-fandash-live-score-value",children:n.awayScore})]}),(0,be.jsxs)("div",{className:"ss-w-fandash-live-side ss-w-fandash-live-side--away",children:[(0,be.jsx)(Bk,{url:n.awayCrestUrl,name:n.awayName,side:"away"}),(0,be.jsx)("span",{className:"ss-w-fandash-live-team-name",children:n.awayName})]})]}),a?(0,be.jsxs)("div",{className:"ss-w-fandash-live-scorers",children:[(0,be.jsx)("span",{className:"ss-w-fandash-live-scorers-icon","aria-hidden":"true",children:"\u26BD"}),a]}):null]})}var Qk=E(ce(),1),Ee=E(N(),1),Uk=3;function gT({type:e}){return e==="goal"?(0,Ee.jsx)("span",{className:"ss-w-fandash-live-tl-ico ss-w-fandash-live-tl-ico--goal","aria-hidden":"true",children:(0,Ee.jsx)("span",{className:"ss-w-fandash-live-tl-ball"})}):e==="yellow"||e==="red"?(0,Ee.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,Ee.jsx)("span",{className:`ss-w-fandash-live-tl-card ss-w-fandash-live-tl-card--${e}`})}):e==="sub"?(0,Ee.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,Ee.jsx)("span",{className:"ss-w-fandash-live-tl-subarrows",children:"\u21C5"})}):(0,Ee.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,Ee.jsx)("span",{className:"ss-w-fandash-live-tl-dot"})})}function wT({e}){var t,n;return e.type==="sub"?(0,Ee.jsxs)("span",{className:"ss-w-fandash-live-tl-who",children:[(t=e.player)!=null?t:e.text,e.playerOff?(0,Ee.jsxs)("span",{className:"ss-w-fandash-live-tl-off",children:[" for ",e.playerOff]}):null]}):(0,Ee.jsx)("span",{className:"ss-w-fandash-live-tl-who",children:(n=e.player)!=null?n:e.text})}function yT({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,Ee.jsxs)("div",{className:t,children:[(0,Ee.jsxs)("span",{className:"ss-w-fandash-live-tl-txt",children:[(0,Ee.jsx)(wT,{e}),(0,Ee.jsx)(gT,{type:e.type})]}),(0,Ee.jsx)("span",{className:"ss-w-fandash-live-tl-badge",children:e.minuteLabel})]})}function Hk({card:e,ui:t}){var c,d;let[n,r]=(0,Qk.useState)(!1),i=e.data.events;if(!i||i.length===0)return null;let s=[...i].sort((p,f)=>f.minute-p.minute),o=s.length-Uk,a=n?s:s.slice(0,Uk),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,Ee.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-timeline",children:[e.title?(0,Ee.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ee.jsx)("div",{className:"ss-w-fandash-live-tl",children:a.map((p,f)=>(0,Ee.jsx)(yT,{e:p},`${p.minute}-${p.side}-${p.type}-${f}`))}),o>0?(0,Ee.jsx)("button",{type:"button",className:"ss-w-fandash-live-tl-more","aria-expanded":n,onClick:()=>r(p=>!p),children:n?u:l(o)}):null]})}var Vk=E(ce(),1),ut=E(N(),1),cs=270,vf=56,Tr=vf/2,xT=.26;function vT(e){var u,c;let t=e.length-1,n=d=>t===0?0:d/t*cs,r=d=>Tr-d*xT,i=e.map((d,p)=>`${n(p).toFixed(1)},${r(d.value).toFixed(1)}`),s=`M0,${Tr} L${i.join(" L")} L${cs},${Tr} Z`,o=`M${i.join(" L")}`,a=(c=(u=e[t])==null?void 0:u.value)!=null?c:0;return{area:s,line:o,lastLeftPct:t===0?0:100,lastTopPx:r(a)}}function nu({points:e,caption:t,clubIsHome:n}){if(e.length===0)return null;let{area:r,line:i,lastLeftPct:s,lastTopPx:o}=vT(e),a=(0,Vk.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,ut.jsxs)("div",{className:"ss-w-fandash-live-mom",children:[t?(0,ut.jsx)("span",{className:"ss-w-fandash-live-mom-caption",children:t}):null,(0,ut.jsxs)("div",{className:"ss-w-fandash-live-mom-plot",children:[(0,ut.jsxs)("svg",{className:"ss-w-fandash-live-mom-svg",viewBox:`0 0 ${cs} ${vf}`,preserveAspectRatio:"none",role:"img","aria-label":t!=null?t:"Momentum",children:[(0,ut.jsxs)("defs",{children:[(0,ut.jsx)("clipPath",{id:l,children:(0,ut.jsx)("rect",{x:0,y:0,width:cs,height:Tr})}),(0,ut.jsx)("clipPath",{id:u,children:(0,ut.jsx)("rect",{x:0,y:Tr,width:cs,height:vf-Tr})})]}),(0,ut.jsx)("path",{d:r,className:c,clipPath:`url(#${l})`}),(0,ut.jsx)("path",{d:r,className:d,clipPath:`url(#${u})`}),(0,ut.jsx)("line",{x1:0,y1:Tr,x2:cs,y2:Tr,className:"ss-w-fandash-live-mom-base"}),(0,ut.jsx)("path",{d:i,className:"ss-w-fandash-live-mom-line",vectorEffect:"non-scaling-stroke"})]}),(0,ut.jsx)("span",{className:"ss-w-fandash-live-mom-now",style:{left:`clamp(4px, ${s}%, calc(100% - 4px))`,top:`${o}px`},"aria-hidden":"true"})]})]})}var Be=E(N(),1);function kT(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 jk({card:e}){let{data:t}=e;return(0,Be.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-stats",children:[e.title?(0,Be.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Be.jsx)("div",{className:"ss-w-fandash-live-stat-rows",children:t.rows.map((n,r)=>{let i=t.clubIsHome?n.clubValue:n.oppValue,s=t.clubIsHome?n.oppValue:n.clubValue,o=t.clubIsHome?n.clubNum:n.oppNum,a=t.clubIsHome?n.oppNum:n.clubNum,{home:l,away:u}=kT(o,a);return(0,Be.jsxs)("div",{className:"ss-w-fandash-live-stat",children:[(0,Be.jsxs)("div",{className:"ss-w-fandash-live-stat-row",children:[(0,Be.jsx)("span",{className:"ss-w-fandash-live-stat-value ss-w-fandash-live-stat-value--home",children:i}),(0,Be.jsx)("span",{className:"ss-w-fandash-live-stat-label",children:n.label}),(0,Be.jsx)("span",{className:"ss-w-fandash-live-stat-value ss-w-fandash-live-stat-value--away",children:s})]}),(0,Be.jsxs)("div",{className:"ss-w-fandash-live-bar",children:[(0,Be.jsx)("span",{className:"ss-w-fandash-live-bar-home",style:{width:l}}),(0,Be.jsx)("span",{className:"ss-w-fandash-live-bar-away",style:{width:u}})]})]},`${n.label}-${r}`)})}),t.momentum.length>0?(0,Be.jsx)(nu,{points:t.momentum,caption:t.momentumLabel,clubIsHome:t.clubIsHome}):t.momentumLabel?(0,Be.jsx)("span",{className:"ss-w-fandash-live-momentum",children:t.momentumLabel}):null,t.rows.length>0?(0,Be.jsxs)("div",{className:"ss-w-fandash-live-legend",children:[(0,Be.jsxs)("span",{className:"ss-w-fandash-live-legend-item",children:[(0,Be.jsx)("i",{className:"ss-w-fandash-live-legend-swatch ss-w-fandash-live-legend-swatch--home"}),t.homeName]}),(0,Be.jsxs)("span",{className:"ss-w-fandash-live-legend-item",children:[(0,Be.jsx)("i",{className:"ss-w-fandash-live-legend-swatch ss-w-fandash-live-legend-swatch--away"}),t.awayName]})]}):null]})}var we=E(N(),1);function Wk({dashboard:e,onTap:t,ui:n}){let r=[...e.cards.filter(o=>o.cardType==="countdown"),...e.cards.filter(o=>o.cardType!=="countdown")],i=e.cards.find(o=>o.cardType==="liveTimeline"),s=i==null?void 0:i.data.events.filter(o=>o.type==="goal");return(0,we.jsxs)("div",{className:"ss-w-fandash",children:[e.greeting?(0,we.jsx)("span",{className:e.greetingIsLead?"ss-w-fandash-greeting ss-w-fandash-greeting--lead":"ss-w-fandash-greeting",children:e.greeting}):null,(0,we.jsx)("div",{className:"ss-w-fandash-cards",children:r.map((o,a)=>(0,we.jsx)(bT,{card:o,onTap:t,ui:n,goalEvents:s},`${o.cardType}-${a}`))})]})}function bT({card:e,onTap:t,ui:n,goalEvents:r}){switch(e.cardType){case"fixture":return(0,we.jsx)(pk,{card:e});case"countdown":return(0,we.jsx)(fk,{card:e});case"injuries":return(0,we.jsx)(wk,{card:e,ui:n});case"reasonToBet":return(0,we.jsx)(yk,{card:e});case"whereToWatch":return(0,we.jsx)(xk,{card:e});case"congestedWeek":return(0,we.jsx)(vk,{card:e,onTap:t});case"transfers":return(0,we.jsx)(bk,{card:e});case"links":return(0,we.jsx)(Ck,{card:e});case"postMatchResult":return(0,we.jsx)(Ek,{card:e});case"postMatchGoals":return(0,we.jsx)(Ik,{card:e,onTap:t});case"postMatchStats":return(0,we.jsx)(Tk,{card:e,onTap:t});case"postMatchTopPerformer":return(0,we.jsx)(Nk,{card:e,onTap:t});case"postMatchNext":return(0,we.jsx)(Lk,{card:e});case"restingNext":return(0,we.jsx)(Mk,{card:e,onTap:t});case"restingStandings":return(0,we.jsx)(Pk,{card:e,onTap:t});case"restingSeason":return(0,we.jsx)(Rk,{card:e,onTap:t});case"restingForm":return(0,we.jsx)(Dk,{card:e});case"liveScore":return(0,we.jsx)(Fk,{card:e,goalEvents:r});case"liveTimeline":return(0,we.jsx)(Hk,{card:e,ui:n});case"liveStats":return(0,we.jsx)(jk,{card:e});default:return null}}var Ut=E(N(),1);function _k({message:e,disabled:t,onAct:n,onTap:r,ui:i,slip:s,monitor:o}){if(e.role==="user")return(0,Ut.jsx)("div",{className:"ss-w-msg ss-w-user","data-msg-id":e.id,children:(0,Ut.jsx)("div",{className:"ss-w-bubble",children:e.text})});let a=l=>{n({message:l.actionLabel,actionRef:l.actionRef,label:l.actionLabel||l.title||""})};return(0,Ut.jsxs)("div",{className:"ss-w-msg ss-w-bot","data-msg-id":e.id,children:[e.text&&!e.greetingDashboard&&!e.clubFanDashboard?(0,Ut.jsx)(qv,{text:e.text}):null,e.greetingDashboard&&!e.clubFanDashboard?(0,Ut.jsx)(ck,{dashboard:e.greetingDashboard,onTap:r}):null,e.clubFanDashboard?(0,Ut.jsx)(Wk,{dashboard:e.clubFanDashboard,onTap:a,ui:i}):null,(0,Ut.jsx)(Zv,{cards:e.cards,disabled:t,showLessLabel:i==null?void 0:i.showLess,showMoreLabel:i==null?void 0:i.showMore}),(0,Ut.jsx)(sk,{insights:e.insights,ui:i,slip:s,monitor:o}),(0,Ut.jsx)(ss,{cards:e.marketOdds,ui:i,slip:s,monitor:o}),(0,Ut.jsx)(Zl,{cards:e.oddsMovement,ui:i,monitor:o}),(0,Ut.jsx)($l,{actions:e.actions,loading:!1,disabled:t,onAct:n})]})}var kf=E(N(),1);function Xk({chips:e,onPick:t}){return e.length===0?null:(0,kf.jsx)("div",{className:"ss-w-chips",children:e.map((n,r)=>(0,kf.jsx)("button",{type:"button",className:"ss-w-chip",onClick:()=>t(n.text),children:n.text},`${n.text}-${r}`))})}function Jk(e,t=48){return e.scrollHeight-e.scrollTop-e.clientHeight<=t}var pn=E(N(),1);function CT(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 qk({controller:e,ui:t,slip:n,onDashboardTap:r,monitor:i}){let{state:s,send:o}=e,a=(0,ci.useRef)(null),l=(0,ci.useRef)(null),u=(0,ci.useRef)(!0),c=(0,ci.useRef)(null);(0,ci.useEffect)(()=>{var w,C;let f=CT(s.messages),h=a.current;if(f&&f.turnId!==c.current){c.current=f.turnId,l.current&&h&&(l.current.style.height=s.isStreaming?`${h.clientHeight}px`:""),u.current=!1,(w=h==null?void 0:h.querySelector(`[data-msg-id="${f.anchorId}"]`))==null||w.scrollIntoView({block:"start"});return}!s.isStreaming&&l.current&&(l.current.style.height=""),u.current&&((C=l.current)==null||C.scrollIntoView({block:"end"}))},[s.messages,s.status,s.isStreaming]);let d=s.messages.some(f=>f.role==="user"),p=s.messages.some(f=>f.role==="assistant"&&(f.greetingDashboard||f.clubFanDashboard));return(0,pn.jsxs)("div",{className:"ss-w-list","aria-live":"polite",ref:a,onScroll:()=>{a.current&&(u.current=Jk(a.current))},children:[s.messages.map(f=>(0,pn.jsx)(_k,{message:f,disabled:s.isStreaming,onAct:h=>o(h.message,{actionId:h.actionId,actionRef:h.actionRef,displayText:h.label}),onTap:(h,w)=>{o(h.actionValue,h.actionRef?{actionRef:h.actionRef,displayText:h.title}:{displayText:h.title}),f.role==="assistant"&&f.greetingDashboard&&(r==null||r(h,w,f.greetingDashboard.layout))},ui:t,slip:n,monitor:i},f.id)),s.isStreaming&&s.actionsLoading?(0,pn.jsx)($l,{actions:[],loading:!0,onAct:()=>{}}):null,s.status?(0,pn.jsx)("div",{className:"ss-w-status",children:s.status}):null,s.error?(0,pn.jsxs)("div",{className:"ss-w-error",role:"alert",children:[(0,pn.jsx)("span",{children:"message"in s.error?s.error.message:t.somethingWentWrong}),(0,pn.jsx)("button",{type:"button",className:"ss-w-retry",onClick:()=>e.retry(),children:t.retry})]}):null,!d&&!p?(0,pn.jsx)(Xk,{chips:s.starters,onPick:f=>o(f)}):null,(0,pn.jsx)("div",{ref:l,className:"ss-w-turn-spacer","aria-hidden":"true"})]})}var Kk=E(ce(),1);var Nr=E(N(),1);function Yk({placeholder:e,streaming:t,onSend:n,onStop:r,stopLabel:i="Stop response",sendLabel:s="Send message"}){let[o,a]=(0,Kk.useState)(""),l=()=>{let c=o.trim();c&&(n(c),a(""))};return(0,Nr.jsxs)("div",{className:"ss-w-input",children:[(0,Nr.jsx)("textarea",{className:"ss-w-textarea",rows:1,placeholder:e,value:o,disabled:t,onChange:c=>a(c.target.value),onKeyDown:c=>{c.key==="Enter"&&!c.shiftKey&&(c.preventDefault(),l())}}),t?(0,Nr.jsx)("button",{type:"button",className:"ss-w-send ss-w-stop","aria-label":i,onClick:r,children:(0,Nr.jsx)("span",{className:"ss-w-stop-glyph"})}):(0,Nr.jsx)("button",{type:"button",className:"ss-w-send","aria-label":s,onClick:l,children:(0,Nr.jsx)($w,{})})]})}var ds=E(N(),1),AT=[{tab:"chat",labelKey:"tabChat"},{tab:"matches",labelKey:"tabMatches"},{tab:"odds",labelKey:"tabOdds"}];function Gk({monitor:e,ui:t,matchCount:n,oddsCount:r}){if(e.pins.length===0)return null;let i={chat:0,matches:n,odds:r},s={chat:e.chatDot&&e.activeTab!=="chat",matches:e.matchesDot&&e.activeTab!=="matches",odds:e.oddsDot&&e.activeTab!=="odds"};return(0,ds.jsx)("div",{className:"ss-w-tabs",role:"tablist",children:AT.map(({tab:o,labelKey:a})=>{let l=e.activeTab===o,u=i[o];return(0,ds.jsxs)("button",{type:"button",role:"tab","aria-selected":l,"data-on":l?"":void 0,className:"ss-w-tab",onClick:()=>e.setActiveTab(o),children:[t[a],u>0&&(0,ds.jsx)("span",{className:"ss-w-tab-count",children:u}),s[o]&&(0,ds.jsx)("span",{className:"ss-w-tab-dot","aria-hidden":"true"})]},o)})})}var ct=E(N(),1);function Zk({match:e,monitor:t,ui:n,slip:r}){var o,a;let i=(o=e.availableMarkets)!=null?o:[];if(i.length===0)return null;let s=(a=t.openMarket[e.matchId])!=null?a:null;return(0,ct.jsx)("div",{className:"ss-w-acc",children:i.map(l=>{var p,f,h;let u=s===l.marketDeveloperName&&!l.suspended,c=`${e.matchId}:${l.marketDeveloperName}`,d=t.marketOdds[c];return(0,ct.jsxs)("div",{className:u?"ss-w-acc-row ss-w-acc-row-open":"ss-w-acc-row",children:[(0,ct.jsxs)("div",{className:"ss-w-acc-head",children:[(0,ct.jsxs)("button",{type:"button",className:l.suspended?"ss-w-acc-toggle ss-w-acc-toggle--susp":"ss-w-acc-toggle","aria-expanded":u,disabled:l.suspended,onClick:()=>t.toggleMarket(e.matchId,l.marketDeveloperName),children:[(0,ct.jsx)("span",{className:"ss-w-acc-chevron",children:l.suspended?"":u?"\u25BE":"\u25B8"}),(0,ct.jsx)("span",{className:"ss-w-acc-label",children:l.marketLabel}),l.hasInsight&&(0,ct.jsx)("span",{className:"ss-w-acc-badge",children:"\u2605"}),l.suspended&&(0,ct.jsx)("span",{className:"ss-w-acc-susp",children:n.accordionSuspended})]}),(0,ct.jsx)(Yt,{ui:n,monitor:t,pin:{kind:"market",matchId:e.matchId,marketDeveloperName:l.marketDeveloperName}})]}),u&&(0,ct.jsxs)("div",{className:"ss-w-acc-panel",children:[(d==null?void 0:d.error)&&(0,ct.jsx)("div",{className:"ss-w-acc-retry",onClick:()=>t.retryMarket(e.matchId,l.marketDeveloperName),children:n.accordionRetry}),((f=(p=d==null?void 0:d.block)==null?void 0:p.insight)==null?void 0:f.text)&&(0,ct.jsxs)("div",{className:"ss-w-acc-insight",children:[(0,ct.jsx)("span",{className:"ss-w-acc-badge",children:n.accordionValueLabel})," ",d.block.insight.text]}),((h=d==null?void 0:d.block)==null?void 0:h.card)&&(0,ct.jsx)(ss,{cards:[Wi(d.block.card)],ui:n,slip:r,monitor:t,inSlipIds:t.inSlip,hideHeader:!0})]})]},l.marketDeveloperName)})})}var q=E(N(),1);function ST(e,t,n){let r=e.market;if(!r||!r.addToSlipEnabled||typeof r.matchOddsId!="number"||typeof r.price!="number")return null;let i={matchOddsId:r.matchOddsId,matchId:t,oddsDecimal:r.price};return n!==void 0&&(i.conversationId=n),i}function bf(e,t){let n=e.market;return n?t.some(r=>r.marketDeveloperName===n.marketDeveloperName||n.matchOddsId!=null&&r.matchOddsId===n.matchOddsId):!1}function ET(e){return new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function $k({match:e,promotedPins:t,monitor:n,ui:r,slip:i}){var d,p,f,h;let s=e.phase==="live",o=e.events.filter(w=>w.type==="goal"),a=e.statRows.filter(w=>bf(w,t)),l=e.statRows.filter(w=>!bf(w,t)),u=[...a,...l],c=e.phase==="preMatch"&&e.kickoffUtc?r.bettingKickoff(e.kickoffUtc):void 0;return(0,q.jsxs)("div",{className:"ss-w-mon",children:[(0,q.jsxs)("div",{className:"ss-w-mon-top",children:[s&&(0,q.jsxs)("span",{className:"ss-w-fandash-live-pill",children:[(0,q.jsx)("span",{className:"ss-w-fandash-live-dot","aria-hidden":"true"}),r.liveLabel]}),e.phase==="fullTime"&&(0,q.jsx)("span",{className:"ss-w-mon-pill",children:r.fullTimeLabel}),c&&(0,q.jsxs)("span",{className:"ss-w-mon-pill",children:[c.dayLabel," \xB7 ",c.time]}),s&&e.minuteLabel&&(0,q.jsx)("span",{className:"ss-w-mon-min",children:e.minuteLabel}),e.competitionName&&(0,q.jsx)("span",{className:"ss-w-mon-comp",children:e.competitionName}),(0,q.jsx)(Yt,{ui:r,monitor:n,pin:{kind:"match",matchId:e.matchId}})]}),(0,q.jsxs)("div",{className:"ss-w-mon-main",children:[(0,q.jsxs)("span",{className:"ss-w-mon-side",children:[(0,q.jsx)(Re,{kind:"team",url:(d=e.homeCrestUrl)!=null?d:void 0,name:(p=e.homeTeamName)!=null?p:void 0}),(0,q.jsx)("span",{className:"ss-w-mon-name",children:e.homeTeamName})]}),e.phase==="preMatch"?(0,q.jsx)("span",{className:"ss-w-mon-vs",children:"vs"}):(0,q.jsxs)("span",{className:"ss-w-mon-score",children:[e.homeScore,(0,q.jsx)("i",{children:"\u2013"}),e.awayScore]}),(0,q.jsxs)("span",{className:"ss-w-mon-side ss-w-mon-side--away",children:[(0,q.jsx)(Re,{kind:"team",url:(f=e.awayCrestUrl)!=null?f:void 0,name:(h=e.awayTeamName)!=null?h:void 0}),(0,q.jsx)("span",{className:"ss-w-mon-name",children:e.awayTeamName})]})]}),o.length>0&&(0,q.jsx)("div",{className:"ss-w-mon-scorers",children:o.map(w=>{var C;return`${(C=w.player)!=null?C:""} ${w.minuteLabel}`}).join(", ")}),(0,q.jsx)("div",{className:"ss-w-mon-stats",children:u.map(w=>{let C=w.homeNum+w.awayNum,m=C>0?w.homeNum/C*75:0,g=C>0?w.awayNum/C*75:0,y=bf(w,t),A=ST(w,e.matchId,i.conversationId);return(0,q.jsxs)("div",{className:y?"ss-w-mon-stat ss-w-mon-pstrip":"ss-w-mon-stat",children:[(0,q.jsxs)("div",{className:"ss-w-mon-stat-row",children:[(0,q.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--home",children:w.homeValue}),(0,q.jsx)("span",{className:"ss-w-mon-stat-l",children:w.label}),(0,q.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--away",children:w.awayValue})]}),(0,q.jsxs)("div",{className:"ss-w-mon-bar",children:[(0,q.jsx)("b",{className:"ss-w-mon-bar-home",style:{width:`${m}%`}}),(0,q.jsx)("i",{className:"ss-w-mon-bar-away",style:{width:`${g}%`}})]}),w.market&&(0,q.jsxs)("div",{className:y?"ss-w-mon-stat-mkt ss-w-mon-mkt":"ss-w-mon-stat-mkt",children:[(0,q.jsxs)("span",{children:[w.market.marketLabel," \xB7 ",w.market.selectionLabel]}),(0,q.jsxs)("span",{className:"ss-w-mon-stat-mkt-right",children:[w.market.isSuspended?(0,q.jsx)("span",{className:"ss-w-mon-susp",children:r.suspendedLabel}):typeof w.market.price=="number"&&(0,q.jsx)("span",{className:"ss-w-mon-price",children:w.market.price.toFixed(2)}),(0,q.jsx)(Mo,{selection:A,shownOdds:typeof w.market.price=="number"?w.market.price.toFixed(2):"",marketName:w.market.marketLabel,slip:i,ui:r})]})]})]},w.label)})}),e.status==="stale"&&(0,q.jsx)("span",{className:"ss-w-mon-asof",children:r.asOf(ET(e.asOfUtc))}),e.momentum.length>0&&(0,q.jsxs)("div",{className:"ss-w-mon-mom",children:[(0,q.jsxs)("div",{className:"ss-w-mon-stat-row",children:[(0,q.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--home",children:typeof e.momentumHomePct=="number"?`${e.momentumHomePct}%`:""}),(0,q.jsx)("span",{className:"ss-w-mon-stat-l",children:r.momentumLabel}),(0,q.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--away",children:typeof e.momentumHomePct=="number"?`${100-e.momentumHomePct}%`:""})]}),(0,q.jsx)(nu,{points:e.momentum,clubIsHome:!0})]}),e.phase==="fullTime"&&(0,q.jsx)("div",{className:"ss-w-mon-grace",children:r.graceNote})]})}var Fe=E(N(),1);function IT({m:e,ui:t}){let n=e.phase!=="preMatch"&&typeof e.homeScore=="number",r=e.status==="stale";return!n&&!e.minuteLabel&&!(e.isSuspended&&!e.isSettled)&&!e.isSettled&&!r?null:(0,Fe.jsxs)("div",{className:"ss-w-mk-live",children:[n&&(0,Fe.jsxs)("b",{className:"ss-w-mk-live-score",children:[e.homeTeamName," ",e.homeScore,"\u2013",e.awayScore," ",e.awayTeamName]}),e.minuteLabel&&(0,Fe.jsx)("span",{className:"ss-w-mon-min",children:e.minuteLabel}),e.isSuspended&&!e.isSettled&&(0,Fe.jsx)("span",{className:"ss-w-mon-susp",children:t.suspendedLabel}),e.isSettled&&(0,Fe.jsx)("span",{className:"ss-w-mon-pill",children:t.fullTimeLabel}),r&&(0,Fe.jsx)("span",{className:"ss-w-mon-asof",children:t.asOf(new Date(e.asOfUtc).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}))})]})}function eb({monitor:e,ui:t,slip:n}){var i,s;let r=((s=(i=e.snapshot)==null?void 0:i.matches)!=null?s:[]).filter(o=>e.pins.some(a=>a.kind==="match"&&a.matchId===o.matchId));return r.length===0?(0,Fe.jsx)("div",{className:"ss-w-mon-empty",children:t.emptyMatchesTab}):(0,Fe.jsx)("div",{className:"ss-w-mon-list",children:r.map(o=>(0,Fe.jsxs)("div",{className:"ss-w-mon-item",children:[(0,Fe.jsx)($k,{match:o,promotedPins:e.pins.filter(a=>a.kind!=="match"&&a.matchId===o.matchId),monitor:e,ui:t,slip:n}),(0,Fe.jsx)(Zk,{match:o,monitor:e,ui:t,slip:n})]},o.matchId))})}function TT(e,t){let n=e.mainRows[0];if(t===void 0||!n||n.oddsDecimal===void 0||n.oddsDecimal===t)return e;let r={...n,previousOdds:t.toFixed(2),movementDirection:n.oddsDecimal<t?"shortened":"drifted"};return{...e,mainRows:[r,...e.mainRows.slice(1)]}}function tb({monitor:e,ui:t,slip:n}){var i,s;let r=((s=(i=e.snapshot)==null?void 0:i.markets)!=null?s:[]).filter(o=>e.pins.some(a=>a.key===o.key));return r.length===0?(0,Fe.jsx)("div",{className:"ss-w-mon-empty",children:t.emptyOddsTab}):(0,Fe.jsx)("div",{className:"ss-w-mon-list",children:r.map(o=>{let a=e.pins.find(l=>l.key===o.key);return(0,Fe.jsxs)("div",{className:"ss-w-mon-oddspin","data-settled":o.isSettled||void 0,children:[(0,Fe.jsx)(IT,{m:o,ui:t}),o.card&&(0,Fe.jsx)(ss,{cards:[TT(Wi(o.card),e.lastViewedPrices[o.key])],ui:t,slip:n,monitor:e,pinRef:a!=null?a:void 0,inSlipIds:e.inSlip}),o.history&&(0,Fe.jsx)(Zl,{cards:[cl(o.history)],ui:t}),!o.card&&!o.history&&(0,Fe.jsx)("div",{className:"ss-w-mon-empty-card",children:t.oddsUnavailable})]},o.key)})})}var An=E(N(),1),NT="(max-width: 639px)";function LT(){let[e,t]=(0,ps.useState)(!1);return(0,ps.useEffect)(()=>{if(typeof window=="undefined"||typeof window.matchMedia!="function")return;let n=window.matchMedia(NT),r=()=>t(n.matches);return r(),n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),e}function nb({controller:e,ui:t,slip:n,onDashboardTap:r,monitor:i}){let{state:s,close:o,stop:a,send:l,reset:u}=e,c=LT();(0,ps.useEffect)(()=>{let p=f=>{f.key==="Escape"&&o()};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[o]);let d=p=>{i==null||i.setActiveTab("chat"),l(p)};return(0,ps.useEffect)(()=>{i&&i.activeTab!=="chat"&&s.isStreaming&&i.markChatActivity()},[i,s.isStreaming,s.messages.length]),(0,An.jsxs)("div",{className:"ss-w-panel",role:"dialog","aria-modal":c,"aria-label":t.chatDialogLabel,children:[(0,An.jsx)(oy,{onClose:o,closeLabel:t.closeChat,logoUrl:t.logoUrl,headerTitle:t.headerTitle,onNewConversation:u,canReset:s.messages.length>0,newConversationLabel:t.newConversation,moreOptionsLabel:t.moreOptions}),i&&(0,An.jsx)(Gk,{monitor:i,ui:t,matchCount:i.pins.filter(p=>p.kind==="match").length,oddsCount:i.pins.filter(p=>p.kind!=="match").length}),(0,An.jsx)("div",{style:!i||i.activeTab==="chat"?{display:"contents"}:{position:"absolute",inset:0,visibility:"hidden",display:"flex",flexDirection:"column"},children:(0,An.jsx)(qk,{controller:e,ui:t,slip:n,onDashboardTap:r,monitor:i})}),i&&i.activeTab==="matches"&&(0,An.jsx)(eb,{monitor:i,ui:t,slip:n}),i&&i.activeTab==="odds"&&(0,An.jsx)(tb,{monitor:i,ui:t,slip:n}),(0,An.jsx)(Yk,{placeholder:t.placeholder,streaming:s.isStreaming,onSend:d,onStop:a,stopLabel:t.stopResponse,sendLabel:t.sendMessage})]})}var rb=`.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;
@@ -846,6 +846,9 @@ Error generating stack: `+s.message+`
846
846
  /* Row header: expand toggle (flex:1) + the market PinToggle as a sibling (no nested buttons). */
847
847
  .ss-w-acc-head { display: flex; align-items: center; gap: 8px; padding: 6px 9px 6px 11px; }
848
848
  .ss-w-acc-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; text-align: left; font: inherit; color: var(--ss-w-ink); padding: 5px 0; }
849
+ /* Suspended: the row stays listed (knowing a market is off is useful) but is not tappable --
850
+ its card is unservable, so a pointer cursor would promise something that cannot load. */
851
+ .ss-w-acc-toggle--susp { cursor: default; color: var(--ss-w-faint); }
849
852
  .ss-w-acc-chevron { color: var(--ss-w-faint); font-size: 11px; flex: none; }
850
853
  .ss-w-acc-label { font-size: 12.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
851
854
  .ss-w-acc-badge { font-size: 10.5px; font-weight: 700; color: var(--ss-w-accent); flex: none; }