!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d670fb09-236b-4dcb-90cb-4698939de2fe",e._sentryDebugIdIdentifier="sentry-dbid-d670fb09-236b-4dcb-90cb-4698939de2fe")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[20480],{6695:(e,t,n)=>{n.r(t),n.d(t,{easeBack:()=>R,easeBackIn:()=>P,easeBackInOut:()=>R,easeBackOut:()=>D,easeBounce:()=>H,easeBounceIn:()=>k,easeBounceInOut:()=>B,easeBounceOut:()=>H,easeCircle:()=>w,easeCircleIn:()=>b,easeCircleInOut:()=>w,easeCircleOut:()=>A,easeCubic:()=>o.wq,easeCubicIn:()=>o.EY,easeCubicInOut:()=>o.wq,easeCubicOut:()=>o.Jx,easeElastic:()=>N,easeElasticIn:()=>Y,easeElasticInOut:()=>z,easeElasticOut:()=>N,easeExp:()=>y,easeExpIn:()=>x,easeExpInOut:()=>y,easeExpOut:()=>g,easeLinear:()=>r,easePoly:()=>c,easePolyIn:()=>u,easePolyInOut:()=>c,easePolyOut:()=>l,easeQuad:()=>a,easeQuadIn:()=>i,easeQuadInOut:()=>a,easeQuadOut:()=>s,easeSin:()=>v,easeSinIn:()=>f,easeSinInOut:()=>v,easeSinOut:()=>m});let r=e=>+e;function i(e){return e*e}function s(e){return e*(2-e)}function a(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}var o=n(36729),u=function e(t){function n(e){return Math.pow(e,t)}return t*=1,n.exponent=e,n}(3),l=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t*=1,n.exponent=e,n}(3),c=function e(t){function n(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t*=1,n.exponent=e,n}(3),d=Math.PI,p=d/2;function f(e){return 1==+e?1:1-Math.cos(e*p)}function m(e){return Math.sin(e*p)}function v(e){return(1-Math.cos(d*e))/2}function h(e){return(Math.pow(2,-10*e)-9765625e-10)*1.0009775171065494}function x(e){return h(1-e)}function g(e){return 1-h(e)}function y(e){return((e*=2)<=1?h(1-e):2-h(e-1))/2}function b(e){return 1-Math.sqrt(1-e*e)}function A(e){return Math.sqrt(1- --e*e)}function w(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var I=4/11,M=6/11,j=8/11,_=3/4,E=9/11,L=10/11,O=15/16,S=21/22,T=63/64,C=1/(4/11)/(4/11);function k(e){return 1-H(1-e)}function H(e){return(e*=1){n.r(t),n.d(t,{default:()=>W});var r=n(6029),i=n(21377),s=n(76356),a=n(45860),o=n(48683),u=n(75751),l=n(28349),c=n(62042),d=n(90248),p=n(65078),f=n(94604);let m="recent-form-event-description",v=(0,c.cx)("group",(0,c.AH)({flexGrow:1,flexBasis:"[1px]",textAlign:"center",px:"2xs",_first:{pl:"0"},_last:{pr:"0"}})),h=(0,c.AH)({position:"relative",_groupHover:{opacity:"0.8"},"&.W":{bg:"status.success.default"},"&.D":{bg:"neutral.default"},"&.L":{bg:"status.error.default"}}),x=(0,c.AH)({h:"xl",w:"xl",minW:"xl",verticalAlign:"top",mb:"md",transitionDuration:"faster",transitionTimingFunction:"ease-out",transitionProperty:"transform",_groupHover:{transform:"scale(1.35)"}}),g=(0,c.AH)({position:"relative",mx:"auto",h:"[36px]",w:{base:"xl",lg:"[30px]"}}),y=(0,c.AH)({position:"absolute",h:{base:"[15px]",lg:"[18px]"},minW:{base:"[15px]",lg:"[18px]"},transitionDuration:"faster",transitionTimingFunction:"ease-out",transitionProperty:"transform",_groupHover:{transform:"scale(1.35)"},"@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm)":{imageRendering:"-webkit-optimize-contrast"},_first:{left:"0"},_last:{right:"0",top:"[6px]"}}),b=(0,c.AH)({top:"[1px]",position:"absolute",borderTop:"8px solid {colors.heatmap.hm_3}",borderStart:"8px solid transparent"}),A=e=>{let{event:t}=e,[n,i]=(0,p.jr)(t,"homeScore","awayScore",t),[s,a]=(0,p.jr)(t,"homeTeam","awayTeam",t);return void 0===n||void 0===i?null:(0,r.jsxs)("span",{className:(0,c.cx)("is-hidden","".concat(m,"-").concat(t.id),(0,c.AH)({px:"lg",textStyle:"assistive.default",color:"neutrals.nLv3",display:"block"})),children:[(0,r.jsxs)(l.EY,{textStyle:"assistive.default",color:i.displayn.display?"neutrals.nLv1":"neutrals.nLv3",children:[i.display," ",(0,r.jsx)(f.Rm,{team:a})]})]},t.id)},w=(0,s.I4)("div",{base:{"& .is-hidden":{display:"none"},"& .is-visible":{display:"block"}}}),I=e=>{let{events:t}=e;return(null==t?void 0:t.length)?(0,r.jsxs)(w,{hideBelow:"md",minH:"lg",children:[(0,r.jsx)("span",{className:(0,c.cx)("".concat(m,"-description"),(0,c.AH)({px:"lg",textStyle:"assistive.default",color:"neutrals.nLv3",display:"block"})),children:(0,r.jsx)(d.A,{id:"recent_form_hover"})}),t.map(e=>(0,r.jsx)(A,{event:e},e.id))]}):null};n(14632);var M=n(6695),j=n(28446),_=n(27956),E=n(81278),L=n(55729),O=n(26331),S=n(73088),T=n(62827),C=n(30479);let k=e=>Object.keys(e).reduce((t,n)=>Math.max(t,Math.abs(e[n])),0),H=e=>e===i.Jfo.Left||e===i.Jfo.Right||e===i.Jfo.Draw,B=(e,t)=>{let n=document.querySelectorAll(".".concat(m,"-description")),r=document.querySelectorAll(".".concat(m,"-").concat(e));n.length&&r.length&&(n.forEach(e=>{t?(e.classList.add("is-hidden"),e.classList.remove("is-visible")):(e.classList.add("is-visible"),e.classList.remove("is-hidden"))}),r.forEach(e=>{t?(e.classList.add("is-visible"),e.classList.remove("is-hidden")):(e.classList.add("is-hidden"),e.classList.remove("is-visible"))}))},P=e=>{var t,n;let{homeTeam:r,awayTeam:i}=e.event;return(null==(t=r.subTeams)?void 0:t.length)===2&&(null==(n=i.subTeams)?void 0:n.length)===2},D=(e,t,n)=>{let r,{homeTeam:s,awayTeam:a}=e.event;if(P(e)&&void 0!==n){let e=s.subTeams[n].id,i=a.subTeams[n].id;r=a.subTeams.map(e=>e.id).indexOf(t)>-1?e:i}else r=t===a.id?s.id:a.id;return i.cWY.image(r)},R={...M,..._},q=(e,t)=>{let n=e.tournament.category.sport.slug;return S.z.getTranslatedRoute(t,"event",{name:e.slug,id:e.customId,sport:n},(0,C.HL)({id:e.id})).route},Y=(e,t,n,r,s,a,o)=>{let u=(0,j.A)().range([2,48]),l=(0,T.QX)(o,270)[1];u.domain([0,t]);let c=R.select(r).selectAll("a").data(e,e=>e.event.id);c.exit().remove();let d=c.enter().append("a").style("height","".concat(132,"px")).attr("href",e=>q(e.event,s)).attr("class",v).on("mouseenter",(e,t)=>{B(t.event.id,!0)}).on("mouseleave",(e,t)=>B(t.event.id,!1)).on("click",(e,t)=>{e.preventDefault(),a.push(q(t.event,s))}),p=d.filter(e=>P(e)).append("div").attr("class",g);p.append("img").attr("src",e=>D(e,n,0)).attr("class",y),p.append("img").attr("src",e=>D(e,n,1)).attr("class",y),d.filter(e=>!P(e)).append("img").attr("src",e=>D(e,n)).attr("class",x);let f=d.append("div").attr("class",e=>3===e.event.winnerCode?i.h18.Draw:e.point<0?i.h18.Lose:i.h18.Win).classed(h,!0).style("top",e=>e.point<0?"".concat(48,"px"):"".concat(48-u(e.point),"px")).style("margin-top",e=>e.point>0?"".concat(u(e.point),"px"):"0px");f.filter(function(e){return e.point<0&&(e.event.status.code===i.sum.AET||e.event.status.code===i.sum.AP)&&e.event.tournament.category.sport.slug===i.QCR.IceHockey}).append("div").attr("class",b).style("transform","rotate(".concat(l,"deg)")).style("left",function(){return o?"1px":null}).style("right",function(){return o?null:"1px"}),f.transition().ease(R.easeCubicInOut).duration(500).delay(300).style("margin-top","0px").style("height",e=>"".concat((Math.sign(e.point)||1)*u(e.point),"px"))},N=e=>{let{teamId:t,events:n,points:i}=e,a=(0,L.useRef)(null),o=(0,E.useRouter)(),u=(0,O.A)(),{textDirection:c}=(0,l.$c)(),d="rtl"===c,p=n.filter(e=>e.winnerCode&&H(e.winnerCode)).map(e=>({point:i[e.id],event:e})).sort((e,t)=>e.event.startTimestamp-t.event.startTimestamp);return(0,L.useEffect)(()=>{a.current&&p&&Y(p,k(i),t,a.current,u,o,d)},[p]),(0,r.jsx)(s.so,{ref:a,position:"relative",w:"100%"})},z=e=>{let{teamId:t,data:n}=e;return(0,r.jsx)(u.t,{tag:"FormGraph",children:(0,r.jsx)(s.az,{br:"sm",pb:"lg",pt:"md",px:"sm",bg:{mdDown:"surface.s2"},children:n?(0,r.jsx)(N,{teamId:t,events:n.events,points:n.points},t):(0,r.jsx)("div",{style:{height:132}})})})};var Q=n(47029);let W=e=>{let{teamId:t}=e,{data:n,error:l}=(0,a.Ay)(i.cWY.form(t));return l?null:(0,r.jsx)(u.t,{tag:"TeamForm",children:(0,r.jsxs)(o.Zp,{children:[(0,r.jsx)(o.Zp.Header,{titleId:"recent_form",actionComponent:(0,r.jsx)(Q.P,{})}),(0,r.jsx)(s.az,{minH:{md:"lg"},children:(0,r.jsx)(I,{events:null==n?void 0:n.events})}),(0,r.jsx)(s.az,{p:"sm",children:(0,r.jsx)(z,{teamId:t,data:n})})]})})}},27956:(e,t,n)=>{n.r(t),n.d(t,{create:()=>s,creator:()=>r.A,local:()=>o,matcher:()=>l.A,namespace:()=>c.A,namespaces:()=>d.A,pointer:()=>p.A,pointers:()=>m,select:()=>i.A,selectAll:()=>v.A,selection:()=>h.Ay,selector:()=>x.A,selectorAll:()=>g.A,style:()=>y.j,window:()=>b.A});var r=n(5001),i=n(56591);function s(e){return(0,i.A)((0,r.A)(e).call(document.documentElement))}var a=0;function o(){return new u}function u(){this._="@"+(++a).toString(36)}u.prototype=o.prototype={constructor:u,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var l=n(21107),c=n(70978),d=n(71323),p=n(86244),f=n(75394);function m(e,t){return e.target&&(e=(0,f.A)(e),void 0===t&&(t=e.currentTarget),e=e.touches||[e]),Array.from(e,e=>(0,p.A)(e,t))}var v=n(95342),h=n(59371),x=n(57374),g=n(45529),y=n(16845),b=n(79367)},75394:(e,t,n)=>{n.d(t,{A:()=>r});function r(e){let t;for(;t=e.sourceEvent;)e=t;return e}},86244:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(75394);function i(e,t){if(e=(0,r.A)(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}},95342:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(86352),i=n(59371);function s(e){return"string"==typeof e?new i.LN([document.querySelectorAll(e)],[document.documentElement]):new i.LN([(0,r.A)(e)],i.zr)}}}]);