PageSourceSearch

https://www.tottenhamhotspur.com/resources/ver/v2.0.96/scripts/mc-statistics-root.js

js tottenhamhotspur.com collected 2026-09-24 15:21:13 UTC 28,667 bytes, 1 lines download raw bytes

vendor: 4,783 bytes, line 1
1import{aE as t,aF as e,P as n,n as a,v as o,w as r,x as s,al as i,am as l,bm as u,r as c,E as p,ac as f}from"./bundle-es.js";import{C as h}from"./club-badge.js";import{STAT_SECTIONS as m}from"./stat-contants.js";import{i as d,n as b,s as y}from"./match-helpers.js";import{u as g}from"./use-match-centre.js";var v,w,O={},P={exports:{}};function C(){return v||(v=1,t=P.exports,e=function(){return e=Object.assign||function(t){for(var e,n=1,a=arguments.length;n<a;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},e.apply(this,arguments)},n=function(){function t(t,n,a){var o=this;this.endVal=n,this.options=a,this.version="2.10.1",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",autoAnimate:!1,autoAnimateDelay:200,autoAnimateOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(t){o.startTime||(o.startTime=t);var e=t-o.startTime;o.remaining=o.duration-e,o.useEasing?o.countDown?o.frameVal=o.startVal-o.easingFn(e,0,o.startVal-o.endVal,o.duration):o.frameVal=o.easingFn(e,o.startVal,o.endVal-o.startVal,o.duration):o.frameVal=o.startVal+(o.endVal-o.startVal)*(e/o.duration);var n=o.countDown?o.frameVal<o.endVal:o.frameVal>o.endVal;o.frameVal=n?o.endVal:o.frameVal,o.frameVal=Number(o.frameVal.toFixed(o.options.decimalPlaces)),o.printValue(o.frameVal),e<o.duration?o.rAF=requestAnimationFrame(o.count):null!==o.finalEndVal?o.update(o.finalEndVal):o.options.onCompleteCallback&&o.options.onCompleteCallback()},this.formatNumber=function(t){var e,n,a,r,s=t<0?"-":"";e=Math.abs(t).toFixed(o.options.decimalPlaces);var i=(e+="").split(".");if(n=i[0],a=i.length>1?o.options.decimal+i[1]:"",o.options.useGrouping){r="";for(var l=3,u=0,c=0,p=n.length;c<p;++c)o.options.useIndianSeparators&&4===c&&(l=2,u=1),0!==c&&u%l==0&&(r=o.options.separator+r),u++,r=n[p-c-1]+r;n=r}return o.options.numerals&&o.options.numerals.length&&(n=n.replace(/[0-9]/g,function(t){return o.options.numerals[+t]}),a=a.replace(/[0-9]/g,function(t){return o.options.numerals[+t]})),s+o.options.prefix+n+a+o.options.suffix},this.easeOutExpo=function(t,e,n,a){return n*(1-Math.pow(2,-10*t/a))*1024/1023+e},this.options=e(e({},this.defaults),a),this.options.enableScrollSpy&&(this.options.autoAnimate=!0),void 0!==this.options.scrollSpyDelay&&(this.options.autoAnimateDelay=this.options.scrollSpyDelay),this.options.scrollSpyOnce&&(this.options.autoAnimateOnce=!0),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.el="string"==typeof t?document.getElementById(t):t,n=null==n?this.parse(this.el.innerHTML):n,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(n),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined","undefined"!=typeof window&&this.options.autoAnimate&&(this.error||"undefined"==typeof IntersectionObserver?this.error?console.error(this.error,t):console.error("IntersectionObserver is not supported by this browser"):this.setupObserver())}return t.prototype.setupObserver=function(){var e=this,n=t.observedElements.get(this.el);n&&n.unobserve(),t.observedElements.set(this.el,this),this.observer=new IntersectionObserver(function(t){for(var n=0,a=t;n<a.length;n++){var o=a[n];o.isIntersecting&&e.paused&&!e.once?(e.paused=!1,e.autoAnimateTimeout=setTimeout(function(){return e.start()},e.options.autoAnimateDelay),e.options.autoAnimateOnce&&(e.once=!0,e.observer.disconnect())):o.isIntersecting||e.paused||(clearTimeout(e.autoAnimateTimeout),e.reset())}},{threshold:0}),this.observer.observe(this.el)},t.prototype.unobserve=function(){var e;clearTimeout(this.autoAnimateTimeout),null===(e=this.observer)||void 0===e||e.disconnect(),t.observedElements.delete(this.el)},t.prototype.onDestroy=function(){clearTimeout(this.autoAnimateTimeout),cancelAnimationFrame(this.rAF),this.paused=!0,this.unobserve(),this.options.onCompleteCallback=null,this.options.onStartCallback=null},t.prototype.determineDirectionAndSmartEasing=function(){var t=null!==this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var e=t-this.startVal;if(Math.abs(e)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var n=this.countDown?1:-1;
1this.endVal=t+n*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},t.prototype.start=function(t){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},t.prototype.pauseResume=function(){if(this.paused)this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count);else{cancelAnimationFrame(this.rAF);var t=null!==this.finalEndVal?this.duration+this.remaining:this.remaining;this.remaining=t}this.paused=!this.paused},t.prototype.reset=function(){clearTimeout(this.autoAnimateTimeout),cancelAnimationFrame(this.rAF),this.paused=!0,this.once=!1,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},t.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},t.prototype.printValue=function(t){var e;if(this.el){var n=this.formattingFn(t);(null===(e=this.options.plugin)||void 0===e?void 0:e.render)?this.options.plugin.render(this.el,n):"INPUT"===this.el.tagName?this.el.value=n:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=n:this.el.innerHTML=n}},t.prototype.ensureNumber=function(t){return"number"==typeof t&&!isNaN(t)},t.prototype.validateValue=function(t){var e=Number(t);return this.ensureNumber(e)?e:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},t.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},t.prototype.parse=function(t){var e=function(t){return t.replace(/([.,'  ])/g,"\\$1")},n=e(this.options.separator),a=e(this.options.decimal),o=t.replace(new RegExp(n,"g"),"").replace(new RegExp(a,"g"),".");return parseFloat(o)},t.observedElements=new WeakMap,t}(),t.CountUp=n),P.exports;var t,e,n}var T,S=e(function(){if(w)return O;
1w=1,Object.defineProperty(O,"__esModule",{value:!0});var e=t,n=C();function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,a)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){s(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function r(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e);if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function s(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},i.apply(this,arguments)}function l(t,e){if(null==t)return{};var n,a,o=function(t,e){if(null==t)return{};var n,a,o={},r=Object.keys(t);for(a=0;a<r.length;a++)n=r[a],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(a=0;a<r.length;a++)n=r[a],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var a,o,r,s,i=[],l=!0,u=!1;try{if(r=(n=n.call(t)).next,0===e);else for(;!(l=(a=r.call(n)).done)&&(i.push(a.value),i.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}var p="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;function f(t){var n=e.useRef(t);return p(function(){n.current=t}),e.useCallback(function(){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];return n.current.apply(void 0,e)},[])}var h=["ref","startOnMount","enableReinitialize","delay","onEnd","onStart","onPauseResume","onReset","onUpdate"],m={decimal:".",separator:",",delay:null,prefix:"",suffix:"",duration:2,start:0,decimals:0,startOnMount:!0,enableReinitialize:!0,useEasing:!0,useGrouping:!0,useIndianSeparators:!1},d=function(t){var a=Object.fromEntries(Object.entries(t).filter(function(t){return void 0!==u(t,2)[1]})),r=e.useMemo(function(){return o(o({},m),a)},[t]),s=r.ref,i=r.startOnMount,c=r.enableReinitialize,p=r.delay,d=r.onEnd,b=r.onStart,y=r.onPauseResume,g=r.onReset,v=r.onUpdate,w=l(r,h),O=e.useRef(),P=e.useRef(),C=e.useRef(!1),T=f(function(){return function(t,e){var a=e.decimal,o=e.decimals,r=e.duration,s=e.easingFn,i=e.end,l=e.formattingFn,u=e.numerals,c=e.prefix,p=e.separator,f=e.start,h=e.suffix,m=e.useEasing,d=e.useGrouping,b=e.useIndianSeparators,y=e.enableScrollSpy,g=e.scrollSpyDelay,v=e.scrollSpyOnce,w=e.plugin;return new n.CountUp(t,i,{startVal:f,duration:r,decimal:a,decimalPlaces:o,easingFn:s,formattingFn:l,numerals:u,separator:p,prefix:c,suffix:h,plugin:w,useEasing:m,useIndianSeparators:b,useGrouping:d,enableScrollSpy:y,scrollSpyDelay:g,scrollSpyOnce:v})}("string"==typeof s?s:s.current,w)}),S=f(function(t){var e=O.current;if(e&&!t)return e;var n=T();return O.current=n,n}),E=f(function(){var t=function(){return S(!0).start(function(){null==d||d({pauseResume:_,reset:V,start:k,update:x})})};p&&p>0?P.current=setTimeout(t,1e3*p):t(),null==b||b({pauseResume:_,reset:V,update:x})}),_=f(function(){S().pauseResume(),null==y||y({reset:V,start:k,update:x})}),V=f(function(){S().el&&(P.current&&clearTimeout(P.current),S().reset(),null==g||g({pauseResume:_,start:k,update:x}))}),x=f(function(t){S().update(t),null==v||v({pauseResume:_,reset:V,start:k})}),k=f(function(){V(),E()}),A=f(function(t){i&&(t&&V(),E())});return e.useEffect(function(){C.current?c&&A(!0):(C.current=!0,A())},[c,C,A,p,t.start,t.suffix,t.prefix,t.duration,t.separator,t.decimals,t.decimal,t.formattingFn]),e.useEffect(function(){return function(){V()}},[V]),{start:k,pauseResume:_,reset:V,update:x,getCountUp:S}},b=["className","redraw","containerProps","children","style"];return O.default=function(t){var n=t.className,a=t.redraw,r=t.containerProps,s=t.children,u=t.style,c=l(t,b),p=e.useRef(null),h=e.useRef(!1),m=d(o(o({},c),{},{ref:p,startOnMount:"function"!=typeof s||0===t.delay,enableReinitialize:!1})),y=m.start,g=m.reset,v=m.update,w=m.pauseResume,O=m.getCountUp,P=f(function(){y()}),C=f(function(e){t.preserveValue||g(),v(e)}
1),T=f(function(){"function"!=typeof t.children||p.current instanceof Element?O():console.error('Couldn\'t find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. <span ref={containerRef} />.')});e.useEffect(function(){T()},[T]),e.useEffect(function(){h.current&&C(t.end)},[t.end,C]);var S=a&&t;return e.useEffect(function(){a&&h.current&&P()},[P,a,S]),e.useEffect(function(){!a&&h.current&&P()},[P,a,t.start,t.suffix,t.prefix,t.duration,t.separator,t.decimals,t.decimal,t.className,t.formattingFn]),e.useEffect(function(){h.current=!0},[]),"function"==typeof s?s({countUpRef:p,start:y,reset:g,update:v,pauseResume:w,getCountUp:O}):e.createElement("span",i({className:n,ref:p,style:u},r),void 0!==t.start?O().formattingFn(t.start):"")},O.useCountUp=d,O}()),E={exports:{}};var _,V=T?E.exports:(T=1,_=function(t,e){return function(t){var e={};function n(a){if(e[a])return e[a].exports;var o=e[a]={i:a,l:!1,exports:{}};return t[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(a,o,function(e){return t[e]}.bind(null,o));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=4)}([function(t,e,n){t.exports=n(5)()},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){t.exports=function(t,e,n){var a=t.direction,o=t.value;switch(a){case"top":return n.top+o<e.top&&n.bottom>e.bottom&&n.left<e.left&&n.right>e.right;case"left":return n.left+o<e.left&&n.bottom>e.bottom&&n.top<e.top&&n.right>e.right;case"bottom":return n.bottom-o>e.bottom&&n.left<e.left&&n.right>e.right&&n.top<e.top;case"right":return n.right-o>e.right&&n.left<e.left&&n.top<e.top&&n.bottom>e.bottom}}},function(t,e,n){n.r(e),n.d(e,"default",function(){return y});var a=n(1),o=n.n(a),r=n(2),s=n.n(r),i=n(0),l=n.n(i),u=n(3),c=n.n(u);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function f(t,e,n){return e&&function(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}(t.prototype,e),t}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t,e){return d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},d(t,e)}function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var y=function(t){function e(t){var n,a,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a=this,o=h(e).call(this,t),n=!o||"object"!==p(o)&&"function"!=typeof o?m(a):o,b(m(n),"getContainer",function(){return n.props.containment||window}),b(m(n),"addEventListener",function(t,e,a,o){var r;n.debounceCheck||(n.debounceCheck={});var s=function(){r=null,n.check()},i={target:t,fn:o>-1?function(){r||(r=setTimeout(s,o||0))}:function(){clearTimeout(r),r=setTimeout(s,a||0)},getLastTimeout:function(){return r}};t.addEventListener(e,i.fn),n.debounceCheck[e]=i}),b(m(n),"startWatching",function(){n.debounceCheck||n.interval||(n.props.intervalCheck&&(n.interval=setInterval(n.check,n.props.intervalDelay)),n.props.scrollCheck&&n.addEventListener(n.getContainer(),"scroll",n.props.scrollDelay,n.props.scrollThrottle),n.props.resizeCheck&&n.addEventListener(window,"resize",n.props.resizeDelay,n.props.resizeThrottle),!n.props.delayedCall&&n.check())}),b(m(n),"stopWatching",function(){if(n.debounceCheck)for(var t in n.debounceCheck)if(n.debounceCheck.hasOwnProperty(t)){var e=n.debounceCheck[t];clearTimeout(e.getLastTimeout()),e.target.removeEventListener(t,e.fn),n.debounceCheck[t]=null}n.debounceCheck=null,n.interval&&(n.interval=clearInterval(n.interval))}),b(m(n),"check",function(){var t,e,a=n.node;if(!a)return n.state;if(t=function(t){return void 0===t.width&&(t.width=t.right-t.left),void 0===t.height&&(t.height=t.bottom-t.top),t}(n.roundRectDown(a.getBoundingClientRect())),n.props.containment){var o=n.props.containment.getBoundingClientRect();
1e={top:o.top,left:o.left,bottom:o.bottom,right:o.right}}else e={top:0,left:0,bottom:window.innerHeight||document.documentElement.clientHeight,right:window.innerWidth||document.documentElement.clientWidth};var r=n.props.offset||{};"object"===p(r)&&(e.top+=r.top||0,e.left+=r.left||0,e.bottom-=r.bottom||0,e.right-=r.right||0);var s={top:t.top>=e.top,left:t.left>=e.left,bottom:t.bottom<=e.bottom,right:t.right<=e.right},i=t.height>0&&t.width>0,l=i&&s.top&&s.left&&s.bottom&&s.right;if(i&&n.props.partialVisibility){var u=t.top<=e.bottom&&t.bottom>=e.top&&t.left<=e.right&&t.right>=e.left;"string"==typeof n.props.partialVisibility&&(u=s[n.props.partialVisibility]),l=n.props.minTopValue?u&&t.top<=e.bottom-n.props.minTopValue:u}"string"==typeof r.direction&&"number"==typeof r.value&&(console.warn("[notice] offset.direction and offset.value have been deprecated. They still work for now, but will be removed in next major version. Please upgrade to the new syntax: { %s: %d }",r.direction,r.value),l=c()(r,t,e));var f=n.state;return n.state.isVisible!==l&&(f={isVisible:l,visibilityRect:s},n.setState(f),n.props.onChange&&n.props.onChange(l)),f}),n.state={isVisible:null,visibilityRect:{}},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(e,t),f(e,[{key:"componentDidMount",value:function(){this.node=s.a.findDOMNode(this),this.props.active&&this.startWatching()}},{key:"componentWillUnmount",value:function(){this.stopWatching()}},{key:"componentDidUpdate",value:function(t){this.node=s.a.findDOMNode(this),this.props.active&&!t.active?(this.setState({isVisible:null,visibilityRect:{}}),this.startWatching()):this.props.active||this.stopWatching()}},{key:"roundRectDown",value:function(t){return{top:Math.floor(t.top),left:Math.floor(t.left),bottom:Math.floor(t.bottom),right:Math.floor(t.right)}}},{key:"render",value:function(){return this.props.children instanceof Function?this.props.children({isVisible:this.state.isVisible,visibilityRect:this.state.visibilityRect}):o.a.Children.only(this.props.children)}}]),e}(o.a.Component);b(y,"defaultProps",{active:!0,partialVisibility:!1,minTopValue:0,scrollCheck:!1,scrollDelay:250,scrollThrottle:-1,resizeCheck:!1,resizeDelay:250,resizeThrottle:-1,intervalCheck:!0,intervalDelay:100,delayedCall:!1,offset:{},containment:null,children:o.a.createElement("span",null)}),b(y,"propTypes",{onChange:l.a.func,active:l.a.bool,partialVisibility:l.a.oneOfType([l.a.bool,l.a.oneOf(["top","right","bottom","left"])]),delayedCall:l.a.bool,offset:l.a.oneOfType([l.a.shape({top:l.a.number,left:l.a.number,bottom:l.a.number,right:l.a.number}),l.a.shape({direction:l.a.oneOf(["top","right","bottom","left"]),value:l.a.number})]),scrollCheck:l.a.bool,scrollDelay:l.a.number,scrollThrottle:l.a.number,resizeCheck:l.a.bool,resizeDelay:l.a.number,resizeThrottle:l.a.number,intervalCheck:l.a.bool,intervalDelay:l.a.number,containment:"undefined"!=typeof window?l.a.instanceOf(window.Element):l.a.any,children:l.a.oneOfType([l.a.element,l.a.func]),minTopValue:l.a.number})},function(t,e,n){var a=n(6);function o(){}function r(){}r.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,r,s){if(s!==a){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:r,resetWarningCache:o};return n.PropTypes=n,n}},function(t,e,n){t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}])},E.exports=_(t,t)),x=e(V);function k({homeStat:t,awayStat:e,percentage:n,title:i,possession:l,homeCompletedPerc:u,awayCompletedPerc:c}){const p="w-mc-stats__stats-value--higher",[f,h]=a(!1);return o(x,{onChange:t=>{t&&h(!0)},once:!0},o("div",{className:`w-mc-stats__stats-row-detail ${l?"w-mc-stats__possession":""} ${f?"in-view":""}`,"data-testid":l?"mcStatsPossessionRow":"mcStatsRow"},!l&&o("div",{className:"w-mc-stats__stats-info"},o("div",{className:`w-mc-stats__stats-value ${t>e?p:""}`},o("span",null,f?o(S,{end:t}):f,!n&&"%",null!=u&&o("span",{className:"w-mc-stats__stats-completed-perc"},f&&0!==u?o(S,{end:u,prefix:" (",suffix:" %)"}):` (${u} %)`))),i&&o("div",{className:"w-mc-stats__stats-title"},o("span",null,i)),o("div",{className:`w-mc-stats__stats-value w-mc-stats__stats-value--away ${e>t?p:""}  `},o("span",null,f&&0!==e?o(S,{end:e}):0,!n&&"%",null!=c&&o("span",{className:"w-mc-stats__stats-completed-perc"},f&&0!==c?o(S,{end:c,prefix:" (",suffix:" %)"}):` (${c} %)`)))),o("div",{className:"w-mc-stats__stats-bars "+(0===t&&0===e?"w-mc-stats__stats-bars--empty":"")},o("div",{className:"w-mc-stats__stats-bar",style:n?{"--width":n?.home+"%"}:{"--width":t+"%"}},l&&o(r,null,o("span",{className:"w-mc-stats__fig"},o(S,{end:t,decimals:1,suffix:"%"})),o("span",{className:"w-mc-stats__poss-label"},s.lookup("label.stats.possession")))),o("div",{className:"w-mc-stats__stats-bar "+(l?"w-mc-stats__stats-bar--away":""),style:n?{"--width":n?.away+"%"}:{"--width":e+"%"}},l&&o(r,null,o("span",{className:"w-mc-stats__fig"},o(S,{end:e,decimals:1,suffix:"%"})),o("span",{className:"w-mc-stats__poss-label"},s.lookup("label.stats.possession")))))))}k.propTypes={homeStat:n.number,awayStat:n.number,percentage:n.object,title:n.string,possession:n.bool,homeCompletedPerc:n.number,awayCompletedPerc:n.number};const A=100,I={TOP_STATS:"label.stats.topStats",ATTACK:"label.stats.attack",POSSESSION:"label.stats.possession",DEFENDING:"label.stats.defending",PHY
1SICAL:"label.stats.physical",DISCIPLINE:"label.stats.discipline"};function D({matchData:t,matchInfoData:e}){const n=[...t].sort((t,e)=>e.side.localeCompare(t.side));if(0===n.length)return null;n[0].teamId!==e.homeTeam.id&&([n[0],n[1]]=[n[1],n[0]]);const a=d(n[0].teamId),r=n[0].stats,u=n[1].stats,c=r.totalPass??0,p=u.totalPass??0,f=Math.round(r.accuratePass/r.totalPass*A)||0,y=Math.round(u.accuratePass/u.totalPass*A)||0,g=r.fkFoulLost??0,v=u.fkFoulLost??0,w=r.totalOffside??0,O=u.totalOffside??0,P=r.possessionPercentage??0,C=u.possessionPercentage??0,T=r.ontargetScoringAtt??0,S=u.ontargetScoringAtt??0,E=r.shotOffTarget??0,_=u.shotOffTarget??0,V=(r.attemptsIbox??0)+(r.attemptsObox??0),x=(u.attemptsIbox??0)+(u.attemptsObox??0),D=r.attIboxTarget??0,j=u.attIboxTarget??0,N=r.attemptsObox??0,R=u.attemptsObox??0,F=r.cornerTaken??0,M=u.cornerTaken??0,B=r.totalYelCard??0,L=u.totalYelCard??0,W=r.totalRedCard??0,U=u.totalRedCard??0,z=r.saves??0,Y=u.saves??0,$=r.totalClearance??0,G=u.totalClearance??0,H=r.blockedScoringAtt??0,q=u.blockedScoringAtt??0,K=r.bigChanceCreated??0,J=u.bigChanceCreated??0,Q=r.totalCross??0,X=u.totalCross??0,Z=r.accurateCross??0,tt=u.accurateCross??0,et=Q?Math.round(Z/Q*A):0,nt=X?Math.round(tt/X*A):0,at=r.totalLongBalls??0,ot=u.totalLongBalls??0,rt=r.accurateLongBalls??0,st=u.accurateLongBalls??0,it=at?Math.round(rt/at*A):0,lt=ot?Math.round(st/ot*A):0,ut=r.totalThroughBall??0,ct=u.totalThroughBall??0,pt=r.accurateThroughBall??0,ft=u.accurateThroughBall??0,ht=ut?Math.round(pt/ut*A):0,mt=ct?Math.round(ft/ct*A):0,dt=r.touches??0,bt=u.touches??0,yt=r.touchesInOppBox??0,gt=u.touchesInOppBox??0,vt=r.wonTackle??0,wt=u.wonTackle??0,Ot=r.interception??0,Pt=u.interception??0,Ct=r.duelWon??0,Tt=u.duelWon??0,St=r.aerialWon??0,Et=u.aerialWon??0,_t=b(c,p),Vt=b(V,x),xt=b(T,S),kt=b(E,_),At=b(F,M),It=b(g,v),Dt=b(w,O),jt=b(B,L),Nt=b(W,U),Rt=b(z,Y),Ft=b($,G),Mt=b(H,q),Bt=b(N,R),Lt={homePos:P,awayPos:C,homePassAcc:f,awayPassAcc:y,homeShots:V,awayShots:x,shotsPerc:Vt,homeSOnT:T,awaySOnT:S,sOnTPerc:xt,homeSOffT:E,awaySOffT:_,sOffTPerc:kt,homePass:c,awayPass:p,passPerc:_t,homeFoulsCommitted:g,awayFoulsCommitted:v,foulsCommittedPerc:It,homeCorners:F,awayCorners:M,cornerPerc:At,homeSaves:z,awaySaves:Y,savesPerc:Rt,homeAttInBox:D,awayAttInBox:j,attInBoxPerc:b(D,j),homeAttOutBox:N,awayAttOutBox:R,attOutBoxPerc:Bt,homeBigChancesCreated:K,awayBigChancesCreated:J,bigChancesCreatedPerc:b(K,J),homeTotalCrosses:Q,awayTotalCrosses:X,totalCrossesPerc:b(Q,X),homeAccurateCrossPercOf:et,awayAccurateCrossPercOf:nt,homeLongPasses:at,awayLongPasses:ot,longPassPerc:b(at,ot),homeLongPassPercOf:it,awayLongPassPercOf:lt,homeThroughBalls:ut,awayThroughBalls:ct,throughBallPerc:b(ut,ct),homeThroughBallPercOf:ht,awayThroughBallPercOf:mt,homeTouches:dt,awayTouches:bt,touchesPerc:b(dt,bt),homeTouchesInBox:yt,awayTouchesInBox:gt,touchesInBoxPerc:b(yt,gt),homeTacklesWon:vt,awayTacklesWon:wt,tacklesWonPerc:b(vt,wt),homeBlocks:H,awayBlocks:q,blocksPerc:Mt,homeInterceptions:Ot,awayInterceptions:Pt,interceptionsPerc:b(Ot,Pt),homeClearances:$,awayClearances:G,clearancesPerc:Ft,homeDuelsWon:Ct,awayDuelsWon:Tt,duelsPerc:b(Ct,Tt),homeAerialDuels:St,awayAerialDuels:Et,aerialDuelsPerc:b(St,Et),homeYellow:B,awayYellow:L,yellowPerc:jt,homeRed:W,awayRed:U,redPerc:Nt,homeOffsides:w,awayOffsides:O,offsidesPerc:Dt},Wt=(t,e=!0)=>o("div",{className:"w-mc-stats__stat-section",key:t,"data-testid":`mcStatsSection${t}`},e&&o("div",{className:"w-mc-stats__title-row"},o("div",{className:"w-mc-stats__title"},o("h3",{className:"w-mc-stats__title-text"},s.lookup(I[t])))),m[t].map(t=>o(k,{key:t.title,homeStat:Lt[t.home],awayStat:Lt[t.away],percentage:t.percentage?Lt[t.percentage]:void 0,homeCompletedPerc:t.homeCompletedPerc?Lt[t.homeCompletedPerc]:void 0,awayCompletedPerc:t.awayCompletedPerc?Lt[t.awayCompletedPerc]:void 0,title:s.lookup(t.title)})));return o("div",{className:"w-mc-stats__stats "+(a?"spurs-home":"spurs-away"),"data-testid":"mcStats"},o(k,{homeStat:Lt.homePos,awayStat:Lt.awayPos,possession:!0,"data-testid":"mcStatsPossessionBar"}),o("div",{className:"w-mc-stats__title-row","data-testid":"mcStatsTeamsRow"},o("div",{className:"w-mc-stats__icon"},o(h,{teamId:n[0].teamId,size:l.MEDIUM,pngSize:i.FIFTY})),o("div",{className:"w-mc-stats__title"},o("h3",{className:"w-mc-stats__title-text"},s.lookup(I.TOP_STATS))),o("div",{className:"w-mc-stats__icon"},o(h,{teamId:n[1].teamId,size:l.MEDIUM,pngSize:i.FIFTY}
1))),Wt("TOP_STATS",!1),Wt("ATTACK"),Wt("POSSESSION"),Wt("DEFENDING"),Wt("PHYSICAL"),Wt("DISCIPLINE"))}D.propTypes={matchData:n.array,matchInfoData:n.object};function j({matchId:t}){const[e,n]=a(null),s=document.querySelector('[data-tab="statistics"]'),{match:i}=g(t);if(!i)return null;const l=y(i),{data:h,status:m,error:d}=u({params:"",id:t},{pollingInterval:!!l&&3e4});return c(()=>{d||m===p.API.ERROR||!h?n(null):n(h)},[h,d,m,n]),e&&e.length>0&&s.parentElement.classList.remove(f.U_HIDE),o(r,null,e&&o("div",{className:"w-mc-stats__inner"},o(D,{matchData:e,matchInfoData:i})))}j.propTypes={matchId:n.string};export{j as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.