@golstats/gsc-game-data 1.0.337 → 1.0.338

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.
@@ -41,7 +41,7 @@
41
41
  * Vue 3 Carousel 0.3.1
42
42
  * (c) 2023
43
43
  * @license MIT
44
- */const Od={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},WI={itemsToShow:{default:Od.itemsToShow,type:Number},itemsToScroll:{default:Od.itemsToScroll,type:Number},wrapAround:{default:Od.wrapAround,type:Boolean},throttle:{default:Od.throttle,type:Number},snapAlign:{default:Od.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Od.transition,type:Number},breakpoints:{default:Od.breakpoints,type:Object},autoplay:{default:Od.autoplay,type:Number},pauseAutoplayOnHover:{default:Od.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Od.mouseDrag,type:Boolean},touchDrag:{default:Od.touchDrag,type:Boolean},dir:{default:Od.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Od.i18n,type:Object},settings:{default(){return{}},type:Object}};function vfe({config:e,slidesCount:s}){const{snapAlign:o,wrapAround:O,itemsToShow:W=1}=e;if(O)return Math.max(s-1,0);let b;switch(o){case"start":b=s-W;break;case"end":b=s-1;break;case"center":case"center-odd":b=s-Math.ceil((W-.5)/2);break;case"center-even":b=s-Math.ceil(W/2);break;default:b=0;break}return Math.max(b,0)}function _fe({config:e,slidesCount:s}){const{wrapAround:o,snapAlign:O,itemsToShow:W=1}=e;let b=0;if(o||W>s)return b;switch(O){case"start":b=0;break;case"end":b=W-1;break;case"center":case"center-odd":b=Math.floor((W-1)/2);break;case"center-even":b=Math.floor((W-2)/2);break;default:b=0;break}return b}function y8({val:e,max:s,min:o}){return s<o?e:Math.min(Math.max(e,o),s)}function bfe({config:e,currentSlide:s,slidesCount:o}){const{snapAlign:O,wrapAround:W,itemsToShow:b=1}=e;let g=s;switch(O){case"center":case"center-odd":g-=(b-1)/2;break;case"center-even":g-=(b-2)/2;break;case"end":g-=b-1;break}return W?g:y8({val:g,max:o-b,min:0})}function qI(e){return e?e.reduce((s,o)=>{var O;return o.type===t.Fragment?[...s,...qI(o.children)]:((O=o.type)===null||O===void 0?void 0:O.name)==="CarouselSlide"?[...s,o]:s},[]):[]}function v8({val:e,max:s,min:o=0}){return e>s?v8({val:e-(s+1),max:s,min:o}):e<o?v8({val:e+(s+1),max:s,min:o}):e}function xfe(e,s){let o;return s?function(...O){const W=this;o||(e.apply(W,O),o=!0,setTimeout(()=>o=!1,s))}:e}function wfe(e,s){let o;return function(...O){o&&clearTimeout(o),o=setTimeout(()=>{e(...O),o=null},s)}}function kfe(e="",s={}){return Object.entries(s).reduce((o,[O,W])=>o.replace(`{${O}}`,String(W)),e)}var Sfe=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Od))),s=t.inject("currentSlide",t.ref(0)),o=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},kfe(e.i18n.itemXofY,{currentSlide:s.value+1,slidesCount:o.value}))}}),Tfe=t.defineComponent({name:"Carousel",props:WI,setup(e,{slots:s,emit:o,expose:O}){var W;const b=t.ref(null),g=t.ref([]),a=t.ref(0),_=t.ref(0),h=t.reactive(Object.assign({},Od));let n=Object.assign({},Od),x;const y=t.ref((W=e.modelValue)!==null&&W!==void 0?W:0),v=t.ref(0),u=t.ref(0),r=t.ref(0),i=t.ref(0);let d,l;t.provide("config",h),t.provide("slidesCount",_),t.provide("currentSlide",y),t.provide("maxSlide",r),t.provide("minSlide",i),t.provide("slideWidth",a);function p(){x=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),w(n)}function m(){if(!x||!Object.keys(x).length)return;const re=Object.keys(x).map(se=>Number(se)).sort((se,me)=>+me-+se);let le=Object.assign({},n);re.some(se=>{const me=window.matchMedia(`(min-width: ${se}px)`).matches;return me&&(le=Object.assign(Object.assign({},le),x[se])),me}),w(le)}function w(re){Object.entries(re).forEach(([le,se])=>h[le]=se)}const T=wfe(()=>{m(),A()},16);function A(){if(!b.value)return;const re=b.value.getBoundingClientRect();a.value=re.width/h.itemsToShow}function C(){_.value<=0||(u.value=Math.ceil((_.value-1)/2),r.value=vfe({config:h,slidesCount:_.value}),i.value=_fe({config:h,slidesCount:_.value}),h.wrapAround||(y.value=y8({val:y.value,max:r.value,min:i.value})))}t.onMounted(()=>{t.nextTick(()=>A()),setTimeout(()=>A(),1e3),m(),$(),window.addEventListener("resize",T,{passive:!0}),o("init")}),t.onUnmounted(()=>{l&&clearTimeout(l),d&&clearInterval(d),window.removeEventListener("resize",T,{passive:!0})});let P=!1;const B={x:0,y:0},E={x:0,y:0},I=t.reactive({x:0,y:0}),M=t.ref(!1),S=t.ref(!1),L=()=>{M.value=!0},k=()=>{M.value=!1};function z(re){["INPUT","TEXTAREA","SELECT"].includes(re.target.tagName)||(P=re.type==="touchstart",P||re.preventDefault(),!(!P&&re.button!==0||U.value)&&(B.x=P?re.touches[0].clientX:re.clientX,B.y=P?re.touches[0].clientY:re.clientY,document.addEventListener(P?"touchmove":"mousemove",N,!0),document.addEventListener(P?"touchend":"mouseup",V,!0)))}const N=xfe(re=>{S.value=!0,E.x=P?re.touches[0].clientX:re.clientX,E.y=P?re.touches[0].clientY:re.clientY;const le=E.x-B.x,se=E.y-B.y;I.y=se,I.x=le},h.throttle);function V(){const re=h.dir==="rtl"?-1:1,le=Math.sign(I.x)*.4,se=Math.round(I.x/a.value+le)*re;if(se&&!P){const me=_e=>{_e.stopPropagation(),window.removeEventListener("click",me,!0)};window.addEventListener("click",me,!0)}J(y.value-se),I.x=0,I.y=0,S.value=!1,document.removeEventListener(P?"touchmove":"mousemove",N,!0),document.removeEventListener(P?"touchend":"mouseup",V,!0)}function $(){!h.autoplay||h.autoplay<=0||(d=setInterval(()=>{h.pauseAutoplayOnHover&&M.value||ae()},h.autoplay))}function G(){d&&(clearInterval(d),d=null),$()}const U=t.ref(!1);function J(re){const le=h.wrapAround?re:y8({val:re,max:r.value,min:i.value});y.value===le||U.value||(o("slide-start",{slidingToIndex:re,currentSlideIndex:y.value,prevSlideIndex:v.value,slidesCount:_.value}),U.value=!0,v.value=y.value,y.value=le,l=setTimeout(()=>{if(h.wrapAround){const se=v8({val:le,max:r.value,min:0});se!==y.value&&(y.value=se,o("loop",{currentSlideIndex:y.value,slidingToIndex:re}))}o("update:modelValue",y.value),o("slide-end",{currentSlideIndex:y.value,prevSlideIndex:v.value,slidesCount:_.value}),U.value=!1,G()},h.transition))}function ae(){J(y.value+h.itemsToScroll)}function Y(){J(y.value-h.itemsToScroll)}const te={slideTo:J,next:ae,prev:Y};t.provide("nav",te),t.provide("isSliding",U);const ee=t.computed(()=>bfe({config:h,currentSlide:y.value,slidesCount:_.value}));t.provide("slidesToScroll",ee);const Z=t.computed(()=>{const re=h.dir==="rtl"?-1:1,le=ee.value*a.value*re;return{transform:`translateX(${I.x-le}px)`,transition:`${U.value?h.transition:0}ms`,margin:h.wrapAround?`0 -${_.value*a.value}px`:"",width:"100%"}});function K(){p(),m(),C(),A(),G()}Object.keys(WI).forEach(re=>{["modelValue"].includes(re)||t.watch(()=>e[re],K)}),t.watch(()=>e.modelValue,re=>{re!==y.value&&J(Number(re))}),t.watch(_,C),o("before-init"),p();const ce={config:h,slidesCount:_,slideWidth:a,next:ae,prev:Y,slideTo:J,currentSlide:y,maxSlide:r,minSlide:i,middleSlide:u};O({updateBreakpointsConfigs:m,updateSlidesData:C,updateSlideWidth:A,initDefaultConfigs:p,restartCarousel:K,slideTo:J,next:ae,prev:Y,nav:te,data:ce});const de=s.default||s.slides,he=s.addons,fe=t.reactive(ce);return()=>{const re=qI(de==null?void 0:de(fe)),le=(he==null?void 0:he(fe))||[];re.forEach((ye,xe)=>ye.props.index=xe);let se=re;if(h.wrapAround){const ye=re.map((Ee,Ce)=>t.cloneVNode(Ee,{index:-re.length+Ce,isClone:!0,key:`clone-before-${Ce}`})),xe=re.map((Ee,Ce)=>t.cloneVNode(Ee,{index:re.length+Ce,isClone:!0,key:`clone-after-${Ce}`}));se=[...ye,...re,...xe]}g.value=re,_.value=Math.max(re.length,1);const me=t.h("ol",{class:"carousel__track",style:Z.value,onMousedownCapture:h.mouseDrag?z:null,onTouchstartPassiveCapture:h.touchDrag?z:null},se),_e=t.h("div",{class:"carousel__viewport"},me);return t.h("section",{ref:b,class:{carousel:!0,"is-sliding":U.value,"is-dragging":S.value,"is-hover":M.value,"carousel--rtl":h.dir==="rtl"},dir:h.dir,"aria-label":h.i18n.ariaGallery,tabindex:"0",onMouseenter:L,onMouseleave:k},[_e,le,t.h(Sfe)])}}}),YI;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(YI||(YI={}));var Cfe=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:s}){const o=t.inject("config",t.reactive(Object.assign({},Od))),O=t.inject("currentSlide",t.ref(0)),W=t.inject("slidesToScroll",t.ref(0)),b=t.inject("isSliding",t.ref(!1)),g=()=>e.index===O.value,a=()=>e.index===O.value-1,_=()=>e.index===O.value+1,h=()=>{const n=Math.floor(W.value),x=Math.ceil(W.value+o.itemsToShow-1);return e.index>=n&&e.index<=x};return()=>{var n;return t.h("li",{style:{width:`${100/o.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":h(),"carousel__slide--active":g(),"carousel__slide--prev":a(),"carousel__slide--next":_(),"carousel__slide--sliding":b.value},"aria-hidden":!h()},(n=s.default)===null||n===void 0?void 0:n.call(s))}}});const Efe=(e,s)=>{const o=e.__vccOpts||e;for(const[O,W]of s)o[O]=W;return o},Afe=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),Mfe={class:"gsc-carousel"},Ife={key:0},Pfe=Afe(()=>t.createElementVNode("div",null,"no hay",-1)),Bfe=[Pfe],Lfe={class:"gsc-carousel__2d__slides"},zfe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ofe=["fill"],Ffe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Nfe=["fill"],Dfe={class:"gsc-carousel__2d__navigation"},Rfe={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Vfe=["stroke"],jfe={key:1,class:"gsc-carousel__2d__navigation__pagination"},$fe=["onClick"],Ufe={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Gfe=["stroke"],Hfe={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(s=>s in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:s,emit:o}){const O=e;t.useCssVars(r=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const W=t.ref(null),b=t.ref({}),g=t.ref(0),a=t.ref(!1);t.watch(W,r=>{r&&a.value?(a.value=!1,_(O.items)):r&&r.slideTo&&r.slideTo(g.value)},{deep:!0}),t.watch(()=>O.currentItemIndex,r=>{g.value!==r&&y(r)}),t.watch(()=>O.defaultItemByIndex,r=>{g.value!==r&&y(r)}),t.watch(()=>O.items,r=>{W.value?_(r):a.value=!0},{immediate:!0});function _(r){r&&r.length&&W.value&&setTimeout(()=>{if(O.defaultItemByProp){const i=O.items.findIndex(d=>d[O.defaultItemByProp.propName]===O.defaultItemByProp.value);i!==-1?(g.value=i,b.value=r[i]):(g.value=0,b.value=r[0])}else g.value=O.defaultItemByIndex,b.value=r[O.defaultItemByIndex];W.value.slideTo&&W.value.slideTo(g.value),b.value&&g.value===0&&o("input",{selectedItem:b.value,selectedItemIndex:g.value})},500)}function h(){W.value&&W.value.next()}function n(){W.value&&W.value.prev()}function x(){W.value&&W.value.updateSlideWidth()}function y(r){W.value&&W.value.slideTo(r)}function v(r){W.value.slideTo(r)}function u(r){const i=r.slidingToIndex<0?O.items.length-1:r.slidingToIndex===O.items.length?0:r.slidingToIndex;g.value=i,b.value=O.items[i],o("update:currentItemIndex",i),o("input",{selectedItem:b.value,selectedItemIndex:g.value})}return s({prev:n,next:h,updateSlideWidth:x,slideTo:y}),(r,i)=>(t.openBlock(),t.createElementBlock("div",Mfe,[O.is3d?(t.openBlock(),t.createElementBlock("div",Ife,Bfe)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",Lfe,[t.createVNode(t.unref(Tfe),{ref_key:"carousel2d",ref:W,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:u},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,l)=>(t.openBlock(),t.createBlock(t.unref(Cfe),{key:l},{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{item:d},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:i[0]||(i[0]=d=>W.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",zfe,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,Ofe)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:i[1]||(i[1]=d=>h())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Ffe,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,Nfe)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Dfe,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:i[2]||(i[2]=d=>n())},[(t.openBlock(),t.createElementBlock("svg",Rfe,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:O.arrowsColor},null,8,Vfe)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",jfe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,l)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${l}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${O.navigationHeight}px`,width:`${g.value===l?O.navigationActiveWidth:O.navigationActiveWidth/2}px`,borderRadius:`${O.navigationBorderRadius}px`,backgroundColor:`${g.value===l?O.navigationActiveColor:O.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:p=>v(l)},null,12,$fe))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:i[3]||(i[3]=d=>W.value.next())},[(t.openBlock(),t.createElementBlock("svg",Ufe,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:O.arrowsColor},null,8,Gfe)]))])):t.createCommentVNode("",!0)])],2))]))}},ix=Efe(Hfe,[["__scopeId","data-v-54620d25"]]),Wfe=(e,s)=>{const o=e.__vccOpts||e;for(const[O,W]of s)o[O]=W;return o},_8={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},ZI=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},XI=_8.setup;_8.setup=XI?(e,s)=>(ZI(),XI(e,s)):ZI;const qfe=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),Yfe=["src"],Zfe={key:1,class:"text"},Xfe=["src"],Jfe={class:"stats"},Kfe=qfe(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),Qfe={class:"numstats"},eme={class:"leyend"};function tme(e,s,o,O,W,b){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",W.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([b.customStyle,W.status&&o.typeOnOff&&b.customActive]),onClick:s[0]||(s[0]=(...g)=>b.btnClick&&b.btnClick(...g))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,Yfe)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",Zfe,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,Xfe)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:s[1]||(s[1]=(...g)=>b.btnClick&&b.btnClick(...g))},[t.createElementVNode("div",Jfe,[Kfe,t.createElementVNode("div",Qfe,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",eme,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const nme=Wfe(_8,[["render",tme],["__scopeId","data-v-f3ee6b2b"]]),ame={class:"gsc-dropdown__main-container__item-selected"},rme=["height","width"],ime=["stroke"],ome={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sme=["fill"],lme={class:"gsc-dropdown__items-container"},cme=["onClick"],ume={key:0,class:"gsc-dropdown__items-footer"},b8={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(s=>s in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1},iconType:{type:Number,default:1,validator:function(e){return[1,2].includes(e)}}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:s}){const o=e,O=t.ref({}),W=t.ref(null),b=t.ref(o.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>o.items,(v,u)=>{if(!o.modelValue&&(!o.onlyFirstTime||!u||!u.length)&&v&&v.length){if(o.defaultItemByProp){const r=o.items.findIndex(i=>i[o.defaultItemByProp.propName]===o.defaultItemByProp.value);r!==-1?(b.value=r,O.value=v[r]):(b.value=0,O.value=v[0])}else O.value=v[o.defaultItemByIndex];s("input",O.value)}},{immediate:!0}),t.watch(()=>o.modelValue,v=>{if(v){const u=o.items.findIndex(r=>typeof v=="object"?JSON.stringify(r)===JSON.stringify(v):r===v);u!==-1&&(b.value=u,O.value=o.items[u],s("update:modelValue",O.value))}},{immediate:!0});const a=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-container-padding":o.listContainerPadding,"--list-item-padding":o.listItemPadding,"--list-item-margin":o.listItemMargin,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-border-radius":o.listItemBorderRadius,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--list-margin-top":o.listMarginTop,"--list-left":o.listAlignment==="left"?"0":"auto","--list-right":o.listAlignment==="right"?"0":"auto","--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),_=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function h(){o.isDisabled||(g.value=!g.value)}function n(v){W.value&&!W.value.contains(v.target)&&(g.value=!1)}function x(v,u){o.isMultipleOption?b.value=-1:(b.value=u,g.value=!1),O.value=v,s("input",O.value),s("update:modelValue",O.value)}function y(){g.value=!1,s("click-ready")}return t.onMounted(()=>{document.addEventListener("click",n)}),t.onBeforeMount(()=>{document.removeEventListener("click",n)}),(v,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:W,class:"gsc-dropdown",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:h},[t.createElementVNode("div",ame,[t.renderSlot(v.$slots,"default",{selectedItem:O.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(_.value)},[e.iconType===1?(t.openBlock(),t.createElementBlock("svg",{key:0,height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,ime)],8,rme)):(t.openBlock(),t.createElementBlock("svg",ome,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:e.arrowColor},null,8,sme)]))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",lme,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(r,i)=>(t.openBlock(),t.createElementBlock("div",null,[t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===b.value}]),key:i,onClick:d=>x(r,i)},[t.renderSlot(v.$slots,"availableItem",{item:r})],10,cme)),[[t.vShow,!r.isHidden]])]))),256))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",ume,[t.createVNode(t.unref(nme),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:y})])):t.createCommentVNode("",!0)])],512),[[t.vShow,g.value]])]),_:3})],4))}};let JI=null;const dme={components:{LineupField:zhe,LineupRecentItem:Whe,LineupMainHeader:mpe,LineupFilter:Npe,MatchDetails:jI,GscSwitchComponent:n2,GSCCarousel:ix,GSCDropdown:b8},props:{game:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Recientes"},componentWidth:{type:Number,default:767,validator(e){return e>0}},socket:{type:Object,default:()=>{}}},data(){return{selectedIndexOption:0,rivalHomeImg:"",rivalVisitImg:"",rivalHomeAbrev:"",updatehistoricos:0,rivalVisitAbrev:"",selectOptMenuheader:"Recientes",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",urlGames:"https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/",url:"https://tj4cepyjc4.execute-api.us-west-2.amazonaws.com/prod/lineups/",urlMXM:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",retries:3,teamActive:"home",subsActive:!1,playersHome:[],gamesContainerWidth:0,playersAway:[],subsTitle:!1,uniformHome:"",uniformHomeG:"",uniformAway:"",uniformAwayG:"",dataPlayersHome:[],dataPlayersAway:[],homeTeamLogo:"",awayTeamLogo:"",homeTeamName:"",auxISsection:0,awayTeamName:"",homeTeamAbrev:"",awayTeamAbrev:"",home_team_id:0,updateComponentAway:0,away_team_id:0,substitutionModal:{min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},isInsideClick:!1,homeTeam:{},headerInfoHistoricItemGame:{},visitingTeam:{},gameForAnalysis:{},movil:!1,auxProbablesIDGameHome:0,auxProbablesIDGameAway:0,positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}],vDeleteFilter:!1,gameInfoheader:{},gamesHistoric:[],gamesRecientes:[],matchdaysPerTeam:[],lastGetGame:0,probablyTeam:{acronym:"NEX",img:fhe},localDetails:[],postmatchDescription:"Clausura 2018 I JOR 5 I CHI - ATL 12",showDetails:!1,foreignDetails:[],players:[],filterObject:{selectedFilterResults:["win","draw","lose"],selectedFilterTeam:["visit","local"]},updateCarouselGames:0,teamSelect:"",matchdaysFiltersUpdate:[],gamesFiltersUpdate:[]}},computed:{matchdaysFinal(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==1&&e.push(this.matchdaysFiltersUpdate[s]);for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==3&&e.push(this.matchdaysFiltersUpdate[s])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==1&&e.push(this.matchdaysFiltersUpdate[s]);for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==2&&e.push(this.matchdaysFiltersUpdate[s])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==3&&e.push(this.matchdaysFiltersUpdate[s]);for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==2&&e.push(this.matchdaysFiltersUpdate[s])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==1&&e.push(this.matchdaysFiltersUpdate[s]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==2&&e.push(this.matchdaysFiltersUpdate[s]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==3&&e.push(this.matchdaysFiltersUpdate[s])}else for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)e.push(this.matchdaysFiltersUpdate[s]);else for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)e.push(this.matchdaysFiltersUpdate[s]);return e.sort((s,o)=>o.id-s.id),e},gameRecientesFilter(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==1||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==1)&&e.push(this.gamesFiltersUpdate[s]);for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==3||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==3)&&e.push(this.gamesFiltersUpdate[s])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==1||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==1)&&e.push(this.gamesFiltersUpdate[s]);for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==2||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==2)&&e.push(this.gamesFiltersUpdate[s])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==3||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==3)&&e.push(this.gamesFiltersUpdate[s]);for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==2||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==2)&&e.push(this.gamesFiltersUpdate[s])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==1||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==1)&&e.push(this.gamesFiltersUpdate[s]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==2||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==2)&&e.push(this.gamesFiltersUpdate[s]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==3||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==3)&&e.push(this.gamesFiltersUpdate[s])}else for(let s=0;s<this.gamesFiltersUpdate.length;s++)e.push(this.gamesFiltersUpdate[s]);else for(let s=0;s<this.gamesFiltersUpdate.length;s++)e.push(this.gamesFiltersUpdate[s]);return e.sort((s,o)=>s.matchday_id-o.matchday_id),e},matchHomeProbables(){return this.matchdaysPerTeam[this.gameInfoheader.home_team_abbreviation]},matchAwayProbables(){return this.matchdaysPerTeam[this.gameInfoheader.home_team_abbreviation]},sizeBrowser(){return this.gamesContainerWidth},numPlayer(){return Number(this.playersAway.length)+Number(this.playersHome.length)},benchFillHome(){return this.playersHome.length<this.playersAway.length?this.playersAway.length-this.playersHome.length:0},benchFillAway(){return this.playersAway.length<this.playersHome.length?this.playersHome.length-this.playersAway.length:0},mobileClass(){return this.calendarResizeObserver<768?"break-point-3":""}},async mounted(){if(document.addEventListener("click",this.handleOutsideClick),setTimeout(()=>{this.setUpResizeObserver()},500),this.game||this.$route.params.gameId)try{this.cleaneData(),this.getLineUp(this.game.game_id),await this.getHeaderInfo(this.game),this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter(),this.selectedOption==="Postmatch"&&setTimeout(()=>{this.getMinutesData(this.gameInfoheader.minutes)},600)}catch(e){throw new Error(e)}},beforeDestroy(){document.removeEventListener("click",this.handleOutsideClick)},watch:{selectedOption:{immediate:!1,async handler(e){this.cleaneData(),this.auxProbablesIDGameHome=0,this.auxProbablesIDGameAway=0,e==="Postmatch"&&await this.getLineUp(this.game.game_id),e==="Probables"&&await this.getHeaderInfo(this.game),e==="Recientes"&&(this.auxISsection=1,this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter(),await this.getLineUp(this.gameRecientesFilter[0].id)),e==="Historicos"&&(this.updatehistoricos+=1,this.gamesHistoric&&this.gamesHistoric.length>0&&this.gamesHistoric[0]&&this.gamesHistoric[0].game&&(this.getLineUp(this.gamesHistoric[0].game),this.getMinutesData(this.gamesHistoric[0].objgame.minutes)))}},"socket.connected":{immediate:!0,handler(e){e&&this.getDataSocket()}},game:{immediate:!0,handler:async function(e){try{e!==null&&e!==""&&typeof e>"u"&&(this.cleaneData(),await this.gameDataInfo(e),await this.getHeaderInfo(e),this.selectedOption=="Recientes"&&(this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter(),await this.getLineUp(this.gameRecientesFilter[0].id)),this.selectedOption=="Historicos"&&(this.updatehistoricos+=1,this.gamesHistoric&&this.gamesHistoric.length>0&&this.gamesHistoric[0]&&this.gamesHistoric[0].game&&(this.getLineUp(this.gamesHistoric[0].game),this.getMinutesData(this.gamesHistoric[0].objgame.minutes))))}catch(s){throw new Error(s)}}}},methods:{clickOnDeleteFilter(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickready(){},handleInsideClick(){this.isInsideClick=!0},handleOutsideClick(e){this.$refs.targetElement&&!this.$refs.targetElement.contains(e.target)&&(this.isInsideClick=!1)},remplazarMxJor(e){return e.replace("M","JOR ")},changeSwitchRadio(e){this.auxISsection=1,typeof e!="object"&&(this.teamSelect=e,this.matchFilter(),setTimeout(()=>{this.keyUpdate+=1,this.updateCarouselGames+=1},600))},matchFilter(){var e=[],s=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let o=0;o<this.gamesRecientes[this.teamSelect].length;o++)this.filterObject.selectedFilterTeam[0]=="local"?this.gamesRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect&&(e.push({name:this.gamesRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].home_match_result}),s.push(this.gamesRecientes[this.teamSelect][o])):this.gamesRecientes[this.teamSelect][o].away_team_abbreviation==this.teamSelect&&(e.push({name:this.gamesRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].visiting_match_result}),s.push(this.gamesRecientes[this.teamSelect][o]));else if(this.gamesRecientes[this.teamSelect])for(let o=0;o<this.gamesRecientes[this.teamSelect].length;o++)e.push({name:this.gamesRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gamesRecientes[this.teamSelect][o].home_match_result:this.gamesRecientes[this.teamSelect][o].visiting_match_result}),s.push(this.gamesRecientes[this.teamSelect][o])}else if(this.gamesRecientes[this.teamSelect])for(let o=0;o<this.gamesRecientes[this.teamSelect].length;o++)e.push({name:this.getRound(this.gamesRecientes[this.teamSelect][o].matchday_abbreviation),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gamesRecientes[this.teamSelect][o].home_match_result:this.gamesRecientes[this.teamSelect][o].visiting_match_result}),s.push(this.gamesRecientes[this.teamSelect][o]);this.gamesFiltersUpdate=s,this.matchdaysFiltersUpdate=e},changeFiltersModal(e){this.auxISsection=1,this.filterObject=e,this.matchFilter(),setTimeout(()=>{this.keyUpdate+=1,this.updateCarouselGames+=1},600)},changeDropdownVisit(e){if(this.auxProbablesIDGameAway!=e.id){this.auxProbablesIDGameAway=e.id;const s=this.gamesRecientes[this.gameInfoheader.away_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalVisitAbrev=this.gameInfoheader.away_team_abbreviation==this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][s].home_team_abbreviation?this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][s].away_team_abbreviation:this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][s].home_team_abbreviation,this.rivalVisitImg=this.gameInfoheader.away_team_abbreviation==this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][s].home_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][s].away_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][s].home_team+".png",this.cleaneDataProbablesAway(),this.getLineupDataProbablesAway(this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][s].id)}},changeDropdownLocal(e){if(this.auxProbablesIDGameHome!=e.id){this.auxProbablesIDGameHome=e.id;const s=this.gamesRecientes[this.gameInfoheader.home_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalHomeAbrev=this.gameInfoheader.home_team_abbreviation==this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][s].away_team_abbreviation?this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][s].home_team_abbreviation:this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][s].away_team_abbreviation,this.rivalHomeImg=this.gameInfoheader.home_team_abbreviation==this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][s].away_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][s].home_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][s].away_team+".png",this.cleaneDataProbablesHome(),this.getLineupDataProbablesHome(this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][s].id)}},async getLineupProbables(e){var s={season_id:e.season_id,game_id:e.id};this.lastGetGame!=s.game_id&&(this.cleaneData(),this.getLineUp(s.game_id)),this.lastGetGame=s.game_id},async changeCarouselItemH(e){this.headerInfoHistoricItemGame=e.selectedItem.objgame;var s={season_id:e.selectedItem.season,game_id:e.selectedItem.game};this.cleaneData(),this.getMinutesData(e.selectedItem.objgame.minutes),this.getLineUp(s.game_id)},getMinutesData(e){if(this.localDetails=[],this.foreignDetails=[],e){if(e.home_goals_minutes)for(let s=0;s<e.home_goals_minutes.length;s++)this.localDetails.push({description:e.home_goals_minutes[s],icon:"goal"});if(e.visiting_goals_minutes)for(let s=0;s<e.visiting_goals_minutes.length;s++)this.foreignDetails.push({description:e.visiting_goals_minutes[s],icon:"goal"});if(e.home_yellow_cards_minutes)for(let s=0;s<e.home_yellow_cards_minutes.length;s++)this.localDetails.push({description:e.home_yellow_cards_minutes[s],icon:"yellow-card"});if(e.away_yellow_cards_minutes)for(let s=0;s<e.away_yellow_cards_minutes.length;s++)this.foreignDetails.push({description:e.away_yellow_cards_minutes[s],icon:"yellow-card"});if(e.home_red_cards_minutes)for(let s=0;s<e.home_red_cards_minutes.length;s++)this.localDetails.push({description:e.home_red_cards_minutes[s],icon:"red-card"});if(e.away_red_cards_minutes)for(let s=0;s<e.away_red_cards_minutes.length;s++)this.foreignDetails.push({description:e.away_red_cards_minutes[s],icon:"red-card"})}},changeDropdown(e){if(this.gameRecientesFilter&&this.gameRecientesFilter.length>0)if(this.auxISsection==1)this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id};else{const s=this.gameRecientesFilter.findIndex(o=>o.matchday_id==e.id);s!=-1&&(this.selectedIndexOption=s),this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[s].matchday_id}}},clickOnValueFilter(){this.auxISsection=0},clickOnValueCarrousel(){this.auxISsection=0},async changeCarouselItem(e){setTimeout(()=>{if(this.gameRecientesFilter&&this.gameRecientesFilter.length>0&&e){e.selectedItem===void 0&&(e.selectedItem=this.gameRecientesFilter[this.gameRecientesFilter.length-1],e.selectedItemIndex=this.gameRecientesFilter.length-1);var s={};this.auxISsection==1?s={season_id:this.gameRecientesFilter[this.gameRecientesFilter.length-1].season_id,game_id:this.gameRecientesFilter[this.gameRecientesFilter.length-1].id}:s={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id},this.lastGetGame!=s.game_id&&(this.cleaneData(),this.getLineUp(s.game_id)),this.auxISsection==1?(this.getMinutesData(this.gameRecientesFilter[this.gameRecientesFilter.length-1].minutes),this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].minutes.matchday_id},this.lastGetGame=s.game_id):(this.getMinutesData(e.selectedItem.minutes),this.defaultDropItem={propName:"id",value:e.selectedItem.matchday_id},this.lastGetGame=s.game_id,this.selectedIndexOption=e.selectedItemIndex),this.keyUpdate+=1}},200)},async changeCarouselItemRecent(e){if(e.selectedItem){var s={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id};this.lastGetGame!=s.game_id&&(this.cleaneData(),this.getLineUp(s.game_id)),this.lastGetGame=s.game_id}},getRound(e){let s=e.replace("M","Jornada ");return s=s.replace("PO1","CFI"),s=s.replace("PO2","CFV"),s=s.replace("PO3","SFI"),s=s.replace("PO4","SFV"),s=s.replace("PO5","FI"),s=s.replace("PO6","FV"),s},getRoundH(e){let s=e.replace("M","J");return s=s.replace("PO1","CFI"),s=s.replace("PO2","CFV"),s=s.replace("PO3","SFI"),s=s.replace("PO4","SFV"),s=s.replace("PO5","FI"),s=s.replace("PO6","FV"),s},async getHeaderInfo(e){const s=await Qh.create({headers:{Authorization:`${this.tokenPremium}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+e.season_id+"/games/"+e.game_id+"/lineups");if(this.gameInfoheader=s.data.game,s.data.games_historic&&s.data.games_historic.length>0)for(let o=0;o<s.data.games_historic.length;o++)this.gamesHistoric.push({objgame:s.data.games_historic[o],game:s.data.games_historic[o].id,season:s.data.games_historic[o].season_id,description:s.data.games_historic[o].season_name+" | "+this.getRoundH(s.data.games_historic[o].matchday_abbreviation)+" | "+s.data.games_historic[o].home_team_abbreviation+" - "+s.data.games_historic[o].away_team_abbreviation});if(this.gamesRecientes[s.data.game.home_team_abbreviation]=[],this.gamesRecientes[s.data.game.away_team_abbreviation]=[],this.matchdaysPerTeam[s.data.game.home_team_abbreviation]=[],this.matchdaysPerTeam[s.data.game.away_team_abbreviation]=[],s.data.home_team_games_recent&&s.data.home_team_games_recent.length>0)for(let o=0;o<s.data.home_team_games_recent.length;o++)this.gamesRecientes[s.data.game.home_team_abbreviation].push(s.data.home_team_games_recent[o]),this.matchdaysPerTeam[s.data.game.home_team_abbreviation].push({name:this.getRound(s.data.home_team_games_recent[o].matchday_abbreviation),id:s.data.home_team_games_recent[o].matchday_id});if(s.data.away_team_games_recent&&s.data.away_team_games_recent.length>0)for(let o=0;o<s.data.away_team_games_recent.length;o++)this.gamesRecientes[s.data.game.away_team_abbreviation].push(s.data.away_team_games_recent[o]),this.matchdaysPerTeam[s.data.game.away_team_abbreviation].push({name:s.data.away_team_games_recent[o].matchday_abbreviation.replace("M","Jornada "),id:s.data.away_team_games_recent[o].matchday_id})},clickOnSelectOption(e){this.selectOptMenuheader=e},async gameDataInfo(e){const s=await Qh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlGames+e.season_id+"/games/"+e.game_id);this.homeTeam=s.data.teams[0],this.visitingTeam=s.data.teams[1];const o=s.data.games.find(O=>O.game_id===Number(O.game_id));this.gameForAnalysis=o},cleaneDataProbablesHome(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.dataPlayersHome=[],this.players=this.players.filter(e=>e.team_id!==this.gameInfoheader.home_team),this.homeTeamLogo="",this.homeTeamName="",this.homeTeamAbrev="",this.home_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneDataProbablesAway(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.gamesContainerWidth=0,this.playersAway=[],this.subsTitle=!1,this.uniformAway="",this.uniformAwayG="",this.dataPlayersAway=[],this.awayTeamLogo="",this.awayTeamName="",this.players=this.players.filter(e=>e.team_id!==this.gameInfoheader.away_team),this.awayTeamAbrev="",this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneData(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.playersAway=[],this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.uniformAway="",this.uniformAwayG="",this.dataPlayersHome=[],this.dataPlayersAway=[],this.homeTeamLogo="",this.awayTeamLogo="",this.homeTeamName="",this.awayTeamName="",this.homeTeamAbrev="",this.awayTeamAbrev="",this.home_team_id=0,this.players=[],this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},getDataSocket(){Iy("lineups.game."+this.game.game_id,this.socket),Iy("mxm.game."+this.game.game_id,this.socket),Iy("lineups.bench.game."+this.game.game_id,this.socket)},resetPlayUpdate(e,s,o,O){if(e=="Substitution")if(s=="Home"){var W=this.playersHome[o].substitutionDataID.split("@"),b=this.playersHome.findIndex(n=>n.playerId==W[1]),g=this.playersHome.findIndex(n=>n.playerId==W[2]);b!=-1&&(this.playersHome[b].substitutionOut=!1,this.playersHome[b].substitutionMin="",this.playersHome[b].substitutionDataID="",this.playersHome[b].idSubstitution=0),g!=-1&&(this.playersHome[g].substitutionIn=!1,this.playersHome[g].substitutionMin="",this.playersHome[g].substitutionDataID="",this.playersHome[g].idSubstitution=0)}else{var a=this.playersAway[o].substitutionDataID.split("@"),_=this.playersAway.findIndex(n=>n.playerId==a[1]),h=this.playersAway.findIndex(n=>n.playerId==a[2]);b!=-1&&(this.playersAway[_].substitutionOut=!1,this.playersAway[_].substitutionMin="",this.playersAway[_].substitutionDataID="",this.playersAway[_].idSubstitution=0),h!=-1&&(this.playersAway[h].substitutionIn=!1,this.playersAway[h].substitutionMin="",this.playersAway[h].substitutionDataID="",this.playersAway[h].idSubstitution=0)}e=="YellowCard"&&(s=="Home"?(this.playersHome[o].yellowcards=0,this.playersHome[o].yellowcardsMin=0,this.playersHome[o].idyellowcards=0):(this.playersAway[o].yellowcards=0,this.playersAway[o].yellowcardsMin=0,this.playersAway[o].idyellowcards=0)),e=="RedCard"&&(s=="Home"?(this.playersHome[o].redcards=0,this.playersHome[o].redcardsMin=0,this.playersHome[o].idredcards=0):(this.playersAway[o].redcards=0,this.playersAway[o].redcardsMin=0,this.playersAway[o].idredcards=0)),e=="Goals"&&(s=="Home"?(this.playersHome[O].goals=this.playersHome[O].goals-1,this.playersHome[O].goalsMin.splice(o,1),this.playersHome[O].idsGoals.splice(o,1)):(this.playersAway[O].goals=this.playersAway[O].goals-1,this.playersAway[O].goalsMin.splice(o,1),this.playersAway[O].idsGoals.splice(o,1)))},setUpResizeObserver(){if(window.ResizeObserver)JI=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),JI.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const v=await Qh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlMXM+e);for(let u=0;u<v.data.plays.length;u++){if(v.data.plays[u].event_type_id==3){if(v.data.plays[u].team_id==this.home_team_id){if(this.players.length>0){var s=v.data.plays[u].player_id.split("@"),o=this.players.findIndex(r=>r.playerId==s[0]),O=this.players.findIndex(r=>r.playerId==s[1]);o!=-1&&(this.players[o].idSubstitution=v.data.plays[u].play_id,this.players[o].substitutionOut=!0,this.players[o].substitutionMin=v.data.plays[u].minute,this.players[o].substitutionDataID=v.data.plays[u].team_id+"@"+v.data.plays[u].player_id),O!=-1&&(this.players[O].idSubstitution=v.data.plays[u].play_id,this.players[O].substitutionIn=!0,this.players[O].substitutionMin=v.data.plays[u].minute,this.players[O].substitutionDataID=v.data.plays[u].team_id+"@"+v.data.plays[u].player_id)}}else if(this.players.length>0){var W=v.data.plays[u].player_id.split("@"),b=this.players.findIndex(r=>r.playerId==W[0]),g=this.players.findIndex(r=>r.playerId==W[1]);b!=-1&&(this.players[b].idSubstitution=v.data.plays[u].play_id,this.players[b].substitutionOut=!0,this.players[b].substitutionMin=v.data.plays[u].minute,this.players[b].substitutionDataID=v.data.plays[u].team_id+"@"+v.data.plays[u].player_id),g!=-1&&(this.players[g].idSubstitution=v.data.plays[u].play_id,this.players[g].substitutionIn=!0,this.players[g].substitutionMin=v.data.plays[u].minute,this.players[g].substitutionDataID=v.data.plays[u].team_id+"@"+v.data.plays[u].player_id)}}if(v.data.plays[u].event_type_id==1){if(v.data.plays[u].team_id==this.home_team_id){if(this.players.length>0){var a=this.players.findIndex(r=>r.playerId==v.data.plays[u].player_id);a!=-1&&(this.players[a].goals+=1,this.players[a].goalsMin.push(v.data.plays[u].minute),this.players[a].idsGoals.push(v.data.plays[u].play_id))}}else if(this.players.length>0){var _=this.players.findIndex(r=>r.playerId==v.data.plays[u].player_id);_!=-1&&(this.players[_].goals+=1,this.players[_].goalsMin.push(v.data.plays[u].minute),this.players[_].idsGoals.push(v.data.plays[u].play_id))}}if(v.data.plays[u].event_type_id==2){if(v.data.plays[u].category_id==8){if(v.data.plays[u].team_id==this.home_team_id){if(this.players.length>0){var h=this.players.findIndex(r=>r.playerId==v.data.plays[u].player_id);h!=-1&&(this.players[h].yellowcards+=1,this.players[h].yellowcardsMin=v.data.plays[u].minute,this.players[h].idyellowcards=v.data.plays[u].play_id)}}else if(this.players.length>0){var n=this.players.findIndex(r=>r.playerId==v.data.plays[u].player_id);n!=-1&&(this.players[n].yellowcards+=1,this.players[n].yellowcardsMin=v.data.plays[u].minute,this.players[n].idyellowcards=v.data.plays[u].play_id)}}if(v.data.plays[u].category_id==9){if(v.data.plays[u].team_id==this.home_team_id){if(this.players.length>0){var x=this.players.findIndex(r=>r.playerId==v.data.plays[u].player_id);x!=-1&&(this.players[x].redcards+=1,this.players[x].redcardsMin=v.data.plays[u].minute,this.players[x].idredcards=v.data.plays[u].play_id)}}else if(this.players.length>0){var y=this.players.findIndex(r=>r.playerId==v.data.plays[u].player_id);y!=-1&&(this.players[y].redcards+=1,this.players[y].redcardsMin=v.data.plays[u].minute,this.players[y].idredcards=v.data.plays[u].play_id)}}}}}catch(v){return Promise.reject(v)}},async getLineupDataProbablesAway(e){try{const _=await Qh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!_||!_.data)throw new Error("There is not lineups for this game.");if(_.data.home_team.team_id==this.gameInfoheader.away_team){for(let h=0;h<_.data.home_team.starting_lineup[0].lineup.length;h++){this.away_team_id=_.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.home_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.home_team.team_id+"_g.svg","away",0);var s=_.data.home_team.starting_lineup[0].lineup[h].player_name.split(","),o=s[0].split(" "),O=s[1].trim().split(" "),W="";o.length==2||o.length==1?o[0].length<4?W=o[0]+" "+o[1]:W=o[0]:o.length==3?W=o[0]+" "+o[1]:o.length==4&&(W=o[1]+" "+o[2]+" "+o[3]);var b=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";W=W.replace(",","");var g=_.data.home_team.starting_lineup[0].lineup[h].x;g=Math.abs(g-100);var a=100-(100-g)*50/100;a=a*.9,this.players.push({team_id:_.data.home_team.team_id,number:_.data.home_team.starting_lineup[0].lineup[h].jersey_number,isFirstTeam:!1,name:b+". "+W,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.home_team.starting_lineup[0].lineup[h].player_id+".png",posX:a+7,posY:_.data.home_team.starting_lineup[0].lineup[h].y,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.home_team.team_id+".png"}this.playersAway.sort((h,n)=>h.position_id>n.position_id?1:n.position_id>h.position_id?-1:0)}if(_.data.away_team.team_id==this.gameInfoheader.away_team)for(let h=0;h<_.data.away_team.starting_lineup[0].lineup.length;h++){this.away_team_id=_.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.away_team.team_id+"_g.svg","away",0);var s=_.data.away_team.starting_lineup[0].lineup[h].player_name.split(","),o=s[0].split(" "),O=s[1].trim().split(" "),W="";o.length==2||o.length==1?o[0].length<4?W=o[0]+" "+o[1]:W=o[0]:o.length==3?W=o[0]+" "+o[1]:o.length==4&&(W=o[1]+" "+o[2]+" "+o[3]);var b=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";W=W.replace(",","");var g=_.data.away_team.starting_lineup[0].lineup[h].x,a=100-(100-g)*50/100;a=a*.9,this.players.push({team_id:_.data.away_team.team_id,number:_.data.away_team.starting_lineup[0].lineup[h].jersey_number,isFirstTeam:!1,name:b+". "+W,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.away_team.starting_lineup[0].lineup[h].player_id+".png",posX:100-(100-_.data.away_team.starting_lineup[0].lineup[h].x)*50/100,posY:_.data.away_team.starting_lineup[0].lineup[h].y,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.away_team.team_id+".png"}}catch(_){return Promise.reject(_)}},async getLineupDataProbablesHome(e){try{const n=await Qh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!n||!n.data)throw new Error("There is not lineups for this game.");if(n.data.home_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=n.data.home_team.players,n.data.home_team.starting_lineup[0].lineup.sort((x,y)=>x.position_id>y.position_id?1:y.position_id>x.position_id?-1:0);for(let x=0;x<n.data.home_team.starting_lineup[0].lineup.length;x++){this.home_team_id=n.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+n.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+n.data.home_team.team_id+"_g.svg","home",0);var s=n.data.home_team.starting_lineup[0].lineup[x].player_name.split(","),o=s[0].split(" "),O=s[1].trim().split(" "),W="";o.length==2||o.length==1?o[0].length<4?W=o[0]+" "+o[1]:W=o[0]:o.length==3?W=o[0]+" "+o[1]:o.length==4&&(W=o[1]+" "+o[2]+" "+o[3]);var b=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";W=W.replace(",","");var g=n.data.home_team.starting_lineup[0].lineup[x].x,a=g*50/100;this.players.push({team_id:n.data.home_team.team_id,number:n.data.home_team.starting_lineup[0].lineup[x].jersey_number,isFirstTeam:!0,name:b+". "+W,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+n.data.home_team.starting_lineup[0].lineup[x].player_id+".png",posX:n.data.home_team.starting_lineup[0].lineup[x].x*50/100,posY:n.data.home_team.starting_lineup[0].lineup[x].y,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+n.data.home_team.team_id+".png"}}if(n.data.away_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=n.data.away_team.players,n.data.away_team.starting_lineup[0].lineup.sort((x,y)=>x.position_id>y.position_id?1:y.position_id>x.position_id?-1:0);for(let x=0;x<n.data.away_team.starting_lineup[0].lineup.length;x++){this.home_team_id=n.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+n.data.away_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+n.data.away_team.team_id+"_g.svg","home",0);var s=n.data.away_team.starting_lineup[0].lineup[x].player_name.split(","),o=s[0].split(" "),O=s[1].trim().split(" "),W="";o.length==2||o.length==1?o[0].length<4?W=o[0]+" "+o[1]:W=o[0]:o.length==3?W=o[0]+" "+o[1]:o.length==4&&(W=o[1]+" "+o[2]+" "+o[3]);var b=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";W=W.replace(",","");var _=n.data.away_team.starting_lineup[0].lineup[x].x;_=Math.abs(_-100);var a=_*50/100,h=n.data.away_team.starting_lineup[0].lineup[x].y;h=Math.abs(h-100),this.players.push({team_id:n.data.away_team.team_id,number:n.data.away_team.starting_lineup[0].lineup[x].jersey_number,isFirstTeam:!0,name:b+". "+W,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+n.data.away_team.starting_lineup[0].lineup[x].player_id+".png",posX:a-2,posY:h-9,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+n.data.away_team.team_id+".png"}}}catch(n){return Promise.reject(n)}},async getLineUp(e){if(phe(),!this.playersHome.length)try{const z=await Qh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!z||!z.data)throw new Error("There is not lineups for this game.");this.players=[],this.dataPlayersHome=z.data.home_team.players,this.dataPlayersAway=z.data.away_team.players,z.data.home_team.starting_lineup[0].lineup.sort((N,V)=>N.position_id>V.position_id?1:V.position_id>N.position_id?-1:0);for(let N=0;N<z.data.home_team.starting_lineup[0].lineup.length;N++){this.home_team_id=z.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+z.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+z.data.home_team.team_id+"_g.svg","home",0);var s=z.data.home_team.starting_lineup[0].lineup[N].player_name.split(","),o=s[0].split(" "),O=s[1].trim().split(" "),W="";o.length==2||o.length==1?o[0].length<4?W=o[0]+" "+o[1]:W=o[0]:o.length==3?W=o[0]+" "+o[1]:o.length==4&&(W=o[1]+" "+o[2]+" "+o[3]);var b=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";W=W.replace(",","");var g=b+". "+W,a=z.data.home_team.starting_lineup[0].lineup[N].x,_=a*50/100,h=z.data.home_team.players.findIndex(V=>V.player_id==z.data.home_team.starting_lineup[0].lineup[N].player_id);this.players.push({playerId:z.data.home_team.starting_lineup[0].lineup[N].player_id,number:z.data.home_team.starting_lineup[0].lineup[N].jersey_number,isFirstTeam:!0,name:b+". "+W,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+z.data.home_team.starting_lineup[0].lineup[N].player_id+".png",posX:z.data.home_team.starting_lineup[0].lineup[N].x*50/100,posY:z.data.home_team.starting_lineup[0].lineup[N].y,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.playersHome.push({played:!0,name:z.data.home_team.starting_lineup[0].lineup[N].player_name,position:this.positions[z.data.home_team.players[h].position_id-1].name,position_id:z.data.home_team.players[h].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+z.data.home_team.starting_lineup[0].lineup[N].player_id+".png",nationality:z.data.home_team.players[h].nationality?z.data.home_team.players[h].nationality.substring(0,3):"",imgNationality:z.data.home_team.players[h].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:g,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+z.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:z.data.home_team.starting_lineup[0].lineup[N].jersey_number,positionX:z.data.home_team.starting_lineup[0].lineup[N].y-13,positionY:_*.9,positionXOrigin:z.data.home_team.starting_lineup[0].lineup[N].y-17,positionYOrigin:z.data.home_team.starting_lineup[0].lineup[N].x-2,playerId:z.data.home_team.starting_lineup[0].lineup[N].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:z.data.home_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+z.data.home_team.team_id+".png"}if(this.playersHome.sort((N,V)=>N.position_id>V.position_id?1:V.position_id>N.position_id?-1:0),z.data.home_team.bench){for(let N=0;N<z.data.home_team.bench.length;N++){this.subsTitle=!0;var n=z.data.home_team.bench[N].playerName.split(","),x=n[0].split(" "),y=n[1].trim().split(" "),v="";x.length==2||x.length==1?x[0].length<4?v=x[0]+" "+x[1]:v=x[0]:x.length==3?v=x[0]+" "+x[1]:x.length==4&&(v=x[1]+" "+x[2]+" "+x[3]);var u=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";v=v.replace(",","");var r=u+". "+v,i=z.data.home_team.players.findIndex(V=>V.player_id==z.data.home_team.bench[N].playerID);this.playersHome.push({played:!1,name:z.data.home_team.bench[N].playerName,position:i!=-1?this.positions[z.data.home_team.players[i].position_id-1].name:"",position_id:z.data.home_team.players[i].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+z.data.home_team.bench[N].playerID+".png",nationality:i!=-1&&z.data.home_team.players[i].nationality?z.data.home_team.players[i].nationality.substring(0,3):"",imgNationality:i!=-1?z.data.home_team.players[i].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+z.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:z.data.home_team.bench[N].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:z.data.home_team.bench[N].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:z.data.home_team.team_id})}this.playersHome.sort((N,V)=>N.position_id>V.position_id?1:V.position_id>N.position_id?-1:0)}for(let N=0;N<z.data.away_team.starting_lineup[0].lineup.length;N++){this.away_team_id=z.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+z.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+z.data.away_team.team_id+"_g.svg","away",0);var d=z.data.away_team.starting_lineup[0].lineup[N].player_name.split(","),l=d[0].split(" "),p=d[1].trim().split(" "),m="";l.length==2||l.length==1?l[0].length<4?m=l[0]+" "+l[1]:m=l[0]:l.length==3?m=l[0]+" "+l[1]:l.length==4&&(m=l[1]+" "+l[2]+" "+l[3]);var w=p[O.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";m=m.replace(",","");var T=w+". "+m,A=z.data.away_team.starting_lineup[0].lineup[N].x,C=100-(100-A)*50/100;C=C*.9;var P=z.data.away_team.players.findIndex(V=>V.player_id==z.data.away_team.starting_lineup[0].lineup[N].player_id);this.players.push({playerId:z.data.away_team.starting_lineup[0].lineup[N].player_id,number:z.data.away_team.starting_lineup[0].lineup[N].jersey_number,isFirstTeam:!1,name:w+". "+m,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+z.data.away_team.starting_lineup[0].lineup[N].player_id+".png",posX:100-(100-z.data.away_team.starting_lineup[0].lineup[N].x)*50/100,posY:z.data.away_team.starting_lineup[0].lineup[N].y,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.playersAway.push({played:!0,name:z.data.away_team.starting_lineup[0].lineup[N].player_name,position:this.positions[z.data.away_team.players[P].position_id-1].name,position_id:z.data.away_team.players[P].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+z.data.away_team.starting_lineup[0].lineup[N].player_id+".png",nationality:z.data.away_team.players[P].nationality?z.data.away_team.players[P].nationality.substring(0,3):"",imgNationality:z.data.away_team.players[P].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:T,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+z.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:z.data.away_team.starting_lineup[0].lineup[N].jersey_number,positionX:z.data.away_team.starting_lineup[0].lineup[N].y-13,positionY:C,positionXOrigin:z.data.away_team.starting_lineup[0].lineup[N].y-17,positionYOrigin:z.data.away_team.starting_lineup[0].lineup[N].x-7,playerId:z.data.away_team.starting_lineup[0].lineup[N].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:z.data.away_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+z.data.away_team.team_id+".png"}if(this.playersAway.sort((N,V)=>N.position_id>V.position_id?1:V.position_id>N.position_id?-1:0),z.data.away_team.bench){for(let N=0;N<z.data.away_team.bench.length;N++){this.subsTitle=!0;var B=z.data.away_team.bench[N].playerName.split(","),E=B[0].split(" "),I=B[1].trim().split(" "),M="";E.length==2||E.length==1?E[0].length<4?M=E[0]+" "+E[1]:M=E[0]:E.length==3?M=E[0]+" "+E[1]:E.length==4&&(M=E[1]+" "+E[2]+" "+E[3]);var S=I[I.length-1]!=""?I[I.length-1].charAt(0):I[I.length-2]?I[I.length-2].charAt(0):"";M=M.replace(",","");var L=S+". "+M,k=z.data.away_team.players.findIndex(V=>V.player_id==z.data.away_team.bench[N].playerID);this.playersAway.push({played:!1,name:z.data.away_team.bench[N].playerName,position:k!=-1?this.positions[z.data.away_team.players[k].position_id-1].name:"",position_id:z.data.away_team.players[k].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+z.data.away_team.bench[N].playerID+".png",nationality:k!=-1&&z.data.away_team.players[k].nationality?z.data.away_team.players[k].nationality.substring(0,3):"",imgNationality:k!=-1?z.data.away_team.players[k].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:L,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+z.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:z.data.away_team.bench[N].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:z.data.away_team.bench[N].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:z.data.away_team.team_id})}this.playersAway.sort((N,V)=>N.position_id>V.position_id?1:V.position_id>N.position_id?-1:0)}this.getMXM(e)}catch(z){return Promise.reject(z)}},closeChange(){this.subsActive=!1},imageExists(e,s,o){var O=new XMLHttpRequest,W=0;s=="away"?o==1?this.uniformAway==""&&(O.open("HEAD",e,!1),O.send(),W=1):this.uniformAwayG==""&&(O.open("HEAD",e,!1),O.send(),W=1):o==1?this.uniformHome==""&&(O.open("HEAD",e,!1),O.send(),W=1):this.uniformHomeG==""&&(O.open("HEAD",e,!1),O.send(),W=1),W==1&&(O.status==200?s=="away"?o==1?this.uniformAway="url("+e+")":this.uniformAwayG="url("+e+")":o==1?this.uniformHome="url("+e+")":this.uniformHomeG="url("+e+")":s=="away"?o==1?this.uniformAway="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita_g.svg)":o==1?this.uniformHome="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local_g.svg)")},viewChange(e){var s=e.split("@");if(s[0]==this.home_team_id){var o=this.playersHome.findIndex(g=>g.playerId==s[1]),O=this.playersHome.findIndex(g=>g.playerId==s[2]);o!=-1?(this.substitutionModal.min=this.playersHome[o].substitutionMin,this.substitutionModal.in.name=this.playersHome[o].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[o].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[o].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[o].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[o].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),O!=-1?(this.substitutionModal.out.name=this.playersHome[O].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[O].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[O].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[O].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[O].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}else{var W=this.playersAway.findIndex(g=>g.playerId==s[1]),b=this.playersAway.findIndex(g=>g.playerId==s[2]);W!=-1?(this.substitutionModal.min=this.playersAway[W].substitutionMin,this.substitutionModal.in.name=this.playersAway[W].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[W].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[W].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[W].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[W].shirt_number):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),b!=-1?(this.substitutionModal.out.name=this.playersAway[b].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[b].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[b].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[b].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[b].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}this.subsActive=!0},viewLineupTeam(e){this.teamActive=e}},sockets:{new_bench([e,s]){if(s[this.home_team_id]){this.playersHome=this.playersHome.filter(function(i){return!i.isbench});for(let i=0;i<s[this.home_team_id].length;i++)if(!s[this.home_team_id][i].isTitular){this.subsTitle=!0;var o=s[this.home_team_id][i].playerName.split(","),O=o[0].split(" "),W=o[1].trim().split(" "),b="";O.length==2||O.length==1?O[0].length<4?b=O[0]+" "+O[1]:b=O[0]:O.length==3?b=O[0]+" "+O[1]:O.length==4&&(b=O[1]+" "+O[2]+" "+O[3]);var g=W[W.length-1]!=""?W[W.length-1].charAt(0):W[W.length-2]?W[W.length-2].charAt(0):"";b=b.replace(",","");var a=g+". "+b,_=this.dataPlayersHome.findIndex(d=>d.player_id==s[this.home_team_id][i].playerID);this.playersHome.push({played:!1,name:s[this.home_team_id][i].playerName,position:_!=-1?this.positions[this.dataPlayersHome[_].position_id-1].name:"",position_id:this.dataPlayersHome[_].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s[this.home_team_id][i].playerID+".png",nationality:_!=-1&&this.dataPlayersHome[_].nationality?this.dataPlayersHome[_].nationality.substring(0,3):"",imgNationality:_!=-1?this.dataPlayersHome[_].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:a,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+this.home_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s[this.home_team_id][i].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:s[this.home_team_id][i].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersHome.sort((i,d)=>i.position_id>d.position_id?1:d.position_id>i.position_id?-1:0)}if(s[this.away_team_id]){this.playersAway=this.playersAway.filter(function(i){return!i.isbench});for(let i=0;i<s[this.away_team_id].length;i++)if(!s[this.away_team_id][i].isTitular){this.subsTitle=!0;var h=s[this.away_team_id][i].playerName.split(","),n=h[0].split(" "),x=o[1].trim().split(" "),y="";n.length==2||n.length==1?n[0].length<4?y=n[0]+" "+n[1]:y=n[0]:n.length==3?y=n[0]+" "+n[1]:n.length==4&&(y=n[1]+" "+n[2]+" "+n[3]);var v=x[x.length-1]!=""?x[x.length-1].charAt(0):x[x.length-2]?x[x.length-2].charAt(0):"";y=y.replace(",","");var u=v+". "+y,r=this.dataPlayersAway.findIndex(d=>d.player_id==s[this.away_team_id][i].playerID);this.playersAway.push({played:!1,name:s[this.away_team_id][i].playerName,position:r!=-1?this.positions[this.dataPlayersAway[r].position_id-1].name:"",position_id:this.dataPlayersAway[r].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s[this.away_team_id][i].playerID+".png",nationality:r!=-1&&this.dataPlayersAway[r].nationality?this.dataPlayersAway[r].nationality.substring(0,3):"",imgNationality:r!=-1?this.dataPlayersAway[r].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+this.away_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s[this.away_team_id][i].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:s[this.away_team_id][i].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersAway.sort((i,d)=>i.position_id>d.position_id?1:d.position_id>i.position_id?-1:0)}},new_lineup([e,s]){if(s.team_id==s.home_team.team_id){if(this.playersHome.length==0){this.dataPlayersHome=s.home_team.players;for(let m=0;m<s.data.length;m++){this.home_team_id=s.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.team_id+"_g.svg","home",0);var o=s.data[m].player_name.split(","),O=o[0].split(" "),W=o[1].trim().split(" "),b="";O.length==2||O.length==1?O[0].length<4?b=O[0]+" "+O[1]:b=O[0]:O.length==3?b=O[0]+" "+O[1]:O.length==4&&(b=O[1]+" "+O[2]+" "+O[3]);var g=W[W.length-1]!=""?W[W.length-1].charAt(0):W[W.length-2]?W[W.length-2].charAt(0):"";b=b.replace(",","");var a=g+". "+b,_=s.data[m].x,h=_*50/100,n=s.home_team.players.findIndex(w=>w.player_id==s.data[m].player_id);this.playersHome.push({played:!0,name:s.data[m].player_name,position:n!=-1?this.positions[s.home_team.players[n].position_id-1].name:"",position_id:s.home_team.players[n].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s.data[m].player_id+".png",nationality:n!=-1&&s.home_team.players[n].nationality?s.home_team.players[n].nationality.substring(0,3):"",imgNationality:n!=-1?s.home_team.players[n].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:a,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s.data[m].jersey_number,positionX:s.data[m].y-13,positionY:h*.9,positionXOrigin:s.data[m].y-17,positionYOrigin:s.data[m].x-2,playerId:s.data[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:s.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+s.team_id+".png"}this.playersHome.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0)}}else if(this.playersAway.length==0){this.dataPlayersAway=s.away_team.players;for(let m=0;m<s.data.length;m++){this.away_team_id=s.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.team_id+"_g.svg","away",0);var x=s.data[m].player_name.split(","),y=x[0].split(" "),v=x[1].trim().split(" "),u="";y.length==2||y.length==1?y[0].length<4?u=y[0]+" "+y[1]:u=y[0]:y.length==3?u=y[0]+" "+y[1]:y.length==4&&(u=y[1]+" "+y[2]+" "+y[3]);var r=v[v.length-1]!=""?v[v.length-1].charAt(0):v[v.length-2]?v[v.length-2].charAt(0):"";u=u.replace(",","");var i=r+". "+u,d=s.data[m].x,l=100-(100-d)*50/100;l=l*.9;var p=s.away_team.players.findIndex(w=>w.player_id==s.data[m].player_id);this.playersAway.push({played:!0,name:s.data[m].player_name,position:p!=-1?this.positions[s.away_team.players[p].position_id-1].name:"",position_id:s.away_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s.data[m].player_id+".png",nationality:p!=-1&&s.away_team.players[p].nationality?s.away_team.players[p].nationality.substring(0,3):"",imgNationality:p!=-1?s.away_team.players[p].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:i,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s.data[m].jersey_number,positionX:s.data[m].y-13,positionY:l+2,positionXOrigin:s.data[m].y-17,positionYOrigin:s.data[m].x-7,playerId:s.data[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:s.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+s.team_id+".png"}this.playersAway.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0)}},update_mxm([e,s]){var o=-1,O=-1;if(this.players.length>0){var W=this.players.findIndex(C=>C.idredcards==s.play_id),b=this.players.findIndex(C=>C.idyellowcards==s.play_id),g=this.players.findIndex(C=>C.idSubstitution==s.play_id);for(let C=0;C<this.players.length;C++){var a=this.players[C].idsGoals.findIndex(P=>P==s.play_id);a!=-1&&(o=a,O=C)}W!=-1&&this.resetPlayUpdate("RedCard","Home",W,O),b!=-1&&this.resetPlayUpdate("YellowCard","Home",b,O),g!=-1&&this.resetPlayUpdate("Substitution","Home",g,O),o!=-1&&this.resetPlayUpdate("Goals","Home",o,O)}if(this.players.length>0){var _=this.players.findIndex(C=>C.idredcards==s.play_id),h=this.players.findIndex(C=>C.idyellowcards==s.play_id),n=this.players.findIndex(C=>C.idSubstitution==s.play_id);for(let C=0;C<this.players.length;C++){var x=this.players[C].idsGoals.findIndex(P=>P==s.play_id);x!=-1&&(o=x,O=C)}_!=-1&&this.resetPlayUpdate("RedCard","Away",_,O),h!=-1&&this.resetPlayUpdate("YellowCard","Away",h,O),n!=-1&&this.resetPlayUpdate("Substitution","Away",n,O),o!=-1&&this.resetPlayUpdate("Goals","Away",o,O)}if(s.event_type_id==3){if(s.team_id==this.home_team_id){if(this.players.length>0){var y=s.player_id.split("@"),v=this.players.findIndex(C=>C.playerId==y[0]),u=this.players.findIndex(C=>C.playerId==y[1]);v!=-1&&(this.players[v].idSubstitution=s.play_id,this.players[v].substitutionOut=!0,this.players[v].substitutionMin=s.minute,this.players[v].substitutionDataID=s.team_id+"@"+s.player_id),u!=-1&&(this.players[u].idSubstitution=s.play_id,this.players[u].substitutionIn=!0,this.players[u].substitutionMin=s.minute,this.players[u].substitutionDataID=s.team_id+"@"+s.player_id)}}else if(this.players.length>0){var r=s.player_id.split("@"),i=this.players.findIndex(C=>C.playerId==r[0]),d=this.players.findIndex(C=>C.playerId==r[1]);v!=-1&&(this.players[i].idSubstitution=s.play_id,this.players[i].substitutionOut=!0,this.players[i].substitutionMin=s.minute,this.players[i].substitutionDataID=s.team_id+"@"+s.player_id),d!=-1&&(this.players[d].idSubstitution=s.play_id,this.players[d].substitutionIn=!0,this.players[d].substitutionMin=s.minute,this.players[d].substitutionDataID=s.team_id+"@"+s.player_id)}}if(s.event_type_id==1){if(s.team_id==this.home_team_id){if(this.playersHome.length>0){var l=this.playersHome.findIndex(C=>C.playerId==s.player_id);l!=-1&&(this.playersHome[l].goals+=1,this.playersHome[l].goalsMin.push(s.minute),this.playersHome[l].idsGoals.push(s.play_id))}}else if(this.players.length>0){var p=this.players.findIndex(C=>C.playerId==s.player_id);p!=-1&&(this.players[p].goals+=1,this.players[p].goalsMin.push(s.minute),this.players[p].idsGoals.push(s.play_id))}}if(s.event_type_id==2){if(s.category_id==8){if(s.team_id==this.home_team_id){if(this.playersHome.length>0){var m=this.playersHome.findIndex(C=>C.playerId==s.player_id);m!=-1&&(this.playersHome[m].yellowcards+=1,this.playersHome[m].yellowcardsMin=s.minute,this.playersHome[m].idyellowcards=s.play_id)}}else if(this.players.length>0){var w=this.players.findIndex(C=>C.playerId==s.player_id);w!=-1&&(this.players[w].yellowcards+=1,this.players[w].yellowcardsMin=s.minute,this.players[w].idyellowcards=s.play_id)}}if(s.category_id==9){if(s.team_id==this.home_team_id){if(this.playersHome.length>0){var T=this.playersHome.findIndex(C=>C.playerId==s.player_id);T!=-1&&(this.playersHome[T].redcards+=1,this.playersHome[T].redcardsMin=s.minute,this.playersHome[T].idredcards=s.play_id)}}else if(this.players.length>0){var A=this.players.findIndex(C=>C.playerId==s.player_id);A!=-1&&(this.players[A].redcards+=1,this.players[A].redcardsMin=s.minute,this.players[A].idredcards=s.play_id)}}}},delete_mxm([e,s]){if(this.players.length>0)for(let o=0;o<this.players.length;o++)this.players[o].idSubstitution==s.play_id&&(this.players[o].substitutionOut=!1,this.players[o].substitutionIn=!1,this.players[o].substitutionMin="",this.players[o].substitutionDataID="",this.players[o].idSubstitution=0);if(this.players.length>0)for(let o=0;o<this.players.length;o++)this.players[o].idSubstitution==s.play_id&&(this.players[o].substitutionOut=!1,this.players[o].substitutionIn=!1,this.players[o].substitutionMin="",this.players[o].substitutionDataID="",this.players[o].idSubstitution=0);if(this.players.length>0)for(let o=0;o<this.players.length;o++){const O=this.players[o].idsGoals.findIndex(W=>W==s.play_id);O!=-1&&(this.players[o].goals=this.players[o].goals-1,this.players[o].goalsMin.splice(O,1),this.players[o].idsGoals.splice(O,1))}if(this.players.length>0)for(let o=0;o<this.players.length;o++){const O=this.players[o].idsGoals.findIndex(W=>W==s.play_id);O!=-1&&(this.players[o].goals=this.players[o].goals-1,this.players[o].goalsMin.splice(O,1),this.players[o].idsGoals.splice(O,1))}if(this.players.length>0)for(let o=0;o<this.players.length;o++)this.players[o].idyellowcards==s.play_id&&(this.players[o].yellowcards=0,this.players[o].yellowcardsMin=0,this.players[o].idyellowcards=0);if(this.players.length>0)for(let o=0;o<this.players.length;o++)this.players[o].idyellowcards==s.play_id&&(this.players[o].yellowcards=0,this.players[o].yellowcardsMin=0,this.players[o].idyellowcards=0);if(this.players.length>0)for(let o=0;o<this.players.length;o++)this.players[o].idredcards==s.play_id&&(this.players[o].redcards=0,this.players[o].redcardsMin=0,this.players[o].idredcards=0);if(this.players.length>0)for(let o=0;o<this.players.length;o++)this.players[o].idredcards==s.play_id&&(this.players[o].redcards=0,this.players[o].redcardsMin=0,this.players[o].idredcards=0)},new_mxm([e,s]){if(s.event_type_id==3){if(s.team_id==this.home_team_id){if(this.players.length>0){var o=s.player_id.split("@"),O=this.players.findIndex(u=>u.playerId==o[0]),W=this.players.findIndex(u=>u.playerId==o[1]);O!=-1&&(this.players[O].idSubstitution=s.play_id,this.players[O].substitutionOut=!0,this.players[O].substitutionMin=s.minute,this.players[O].substitutionDataID=s.team_id+"@"+s.player_id),W!=-1&&(this.players[W].idSubstitution=s.play_id,this.players[W].substitutionIn=!0,this.players[W].substitutionMin=s.minute,this.players[W].substitutionDataID=s.team_id+"@"+s.player_id)}}else if(this.players.length>0){var b=s.player_id.split("@"),g=this.players.findIndex(u=>u.playerId==b[0]),a=this.players.findIndex(u=>u.playerId==b[1]);O!=-1&&(this.players[g].idSubstitution=s.play_id,this.players[g].substitutionOut=!0,this.players[g].substitutionMin=s.minute,this.players[g].substitutionDataID=s.team_id+"@"+s.player_id),a!=-1&&(this.players[a].idSubstitution=s.play_id,this.players[a].substitutionIn=!0,this.players[a].substitutionMin=s.minute,this.players[a].substitutionDataID=s.team_id+"@"+s.player_id)}}if(s.event_type_id==1){if(s.team_id==this.home_team_id){if(this.players.length>0){var _=this.players.findIndex(u=>u.playerId==s.player_id);_!=-1&&(this.players[_].goals+=1,this.players[_].goalsMin.push(s.minute),this.players[_].idsGoals.push(s.play_id))}}else if(this.players.length>0){var h=this.players.findIndex(u=>u.playerId==s.player_id);h!=-1&&(this.players[h].goals+=1,this.players[h].goalsMin.push(s.minute),this.players[h].idsGoals.push(s.play_id))}}if(s.event_type_id==2){if(s.category_id==8){if(s.team_id==this.home_team_id){if(this.players.length>0){var n=this.players.findIndex(u=>u.playerId==s.player_id);n!=-1&&(this.players[n].yellowcards+=1,this.players[n].yellowcardsMin=s.minute,this.players[n].idyellowcards=s.play_id)}}else if(this.players.length>0){var x=this.players.findIndex(u=>u.playerId==s.player_id);x!=-1&&(this.players[x].yellowcards+=1,this.players[x].yellowcardsMin=s.minute,this.players[x].idyellowcards=s.play_id)}}if(s.category_id==9){if(s.team_id==this.home_team_id){if(this.players.length>0){var y=this.players.findIndex(u=>u.playerId==s.player_id);y!=-1&&(this.players[y].redcards+=1,this.players[y].redcardsMin=s.minute,this.players[y].idredcards=s.play_id)}}else if(this.players.length>0){var v=this.players.findIndex(u=>u.playerId==s.player_id);v!=-1&&(this.players[v].redcards+=1,this.players[v].redcardsMin=s.minute,this.players[v].idredcards=s.play_id)}}}}}},a2=e=>(t.pushScopeId("data-v-1634ade6"),e=e(),t.popScopeId(),e),hme={class:"lineup__header",ref:"gamesContainer"},pme=a2(()=>t.createElementVNode("h2",null,"Alineaciones",-1)),fme={key:0,style:{width:"325px"}},mme={class:"lineup__card"},gme={key:0},yme={key:1},vme={key:2},_me={key:3,class:"lineup__card-body"},bme={class:"lineup__selector",style:{margin:"auto"}},xme={class:"lineup__selector-item"},wme={key:4,class:"lineup__card-body",style:{"flex-flow":"column"}},kme={class:"lineup__filters"},Sme={class:"selector-tournaments"},Tme={class:"lineup__items-carousel"},Cme=a2(()=>t.createElementVNode("div",null,null,-1)),Eme={class:"lineup__items-center"},Ame={class:"lineup__selector-recientes"},Mme={key:1,class:"containernofoundsearchrecientes"},Ime=a2(()=>t.createElementVNode("div",{class:"text-containernofoundsearchrecientes"},[t.createTextVNode(" No hay resultados con los criterios, "),t.createElementVNode("br"),t.createTextVNode(" de búsqueda aplicados. ")],-1)),Pme={key:0,class:"lineup__selector-recientes",style:{margin:"auto",width:"100%"}},Bme={key:5,class:"lineup__card-body space-between"},Lme={class:"lineup__card-body__probables"},zme={class:"selector-tournaments"},Ome=a2(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),Fme=["src"],Nme={class:"lineup__card-body__probables"},Dme=["src"],Rme=a2(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),Vme={class:"selector-tournaments"},jme={key:6,class:"lineup__card-body space-between"},$me={class:"postmatch__matchday"};function Ume(e,s,o,O,W,b){const g=t.resolveComponent("GscSwitchComponent"),a=t.resolveComponent("LineupMainHeader"),_=t.resolveComponent("GSCCarousel"),h=t.resolveComponent("LineupFilter"),n=t.resolveComponent("GSCDropdown"),x=t.resolveComponent("LineupRecentItem"),y=t.resolveComponent("MatchDetails"),v=t.resolveComponent("LineupField");return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["lineup",{"break-point-3":b.mobileClass}])},[t.createElementVNode("div",hme,[pme,o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock("div",fme,[(W.gameInfoheader.game_status==0||W.gameInfoheader.game_status==4)&&b.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(g,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:o.selectedOption,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:s[0]||(s[0]=u=>o.selectedOption=u)},null,8,["selectedOption"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],512),t.createElementVNode("div",mme,[o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("h3",gme,"Alineación utilizada este torneo en:")):o.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("h3",yme,"Alineaciones recientes de:")):(t.openBlock(),t.createElementBlock("h3",vme,"Alineación utilizada en:"))],64)):t.createCommentVNode("",!0),o.selectedOption==="Historicos"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(W.headerInfoHistoricItemGame).length>0?(t.openBlock(),t.createBlock(a,{key:0,localTeam:{acronym:W.headerInfoHistoricItemGame.home_team_abbreviation,img:"https://golstatsimages.blob.core.windows.net/teams-80/"+W.headerInfoHistoricItemGame.home_team+".png"},visitTeam:{acronym:W.headerInfoHistoricItemGame.away_team_abbreviation,img:"https://golstatsimages.blob.core.windows.net/teams-80/"+W.headerInfoHistoricItemGame.away_team+".png"},probablyTeamHome:{acronym:W.rivalHomeAbrev,img:W.rivalHomeImg},probablyTeamAway:{acronym:W.rivalVisitAbrev,img:W.rivalVisitImg},score:W.headerInfoHistoricItemGame.score[0]+" - "+W.headerInfoHistoricItemGame.score[1],onChange:b.changeSwitchRadio,type:o.selectedOption},null,8,["localTeam","visitTeam","probablyTeamHome","probablyTeamAway","score","onChange","type"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[Object.keys(W.gameInfoheader).length>0?(t.openBlock(),t.createBlock(a,{key:0,localTeam:{acronym:W.gameInfoheader.home_team_abbreviation,img:"https://golstatsimages.blob.core.windows.net/teams-80/"+W.gameInfoheader.home_team+".png"},visitTeam:{acronym:W.gameInfoheader.away_team_abbreviation,img:"https://golstatsimages.blob.core.windows.net/teams-80/"+W.gameInfoheader.away_team+".png"},probablyTeamHome:{acronym:W.rivalHomeAbrev,img:W.rivalHomeImg},probablyTeamAway:{acronym:W.rivalVisitAbrev,img:W.rivalVisitImg},score:W.gameInfoheader.score[0]+" - "+W.gameInfoheader.score[1],onChange:b.changeSwitchRadio,type:o.selectedOption},null,8,["localTeam","visitTeam","probablyTeamHome","probablyTeamAway","score","onChange","type"])):t.createCommentVNode("",!0)],64)),o.selectedOption==="Historicos"?(t.openBlock(),t.createElementBlock("div",_me,[o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",bme,[W.gamesHistoric.length>0?(t.openBlock(),t.createBlock(_,{key:W.updatehistoricos,onInput:b.changeCarouselItemH,items:W.gamesHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:u})=>[t.createElementVNode("div",xme,t.toDisplayString(u.description),1)]),_:1},8,["onInput","items"])):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"lineup__text-btn-abs",onClick:s[1]||(s[1]=u=>W.showDetails=!W.showDetails)},t.toDisplayString(W.showDetails?"Ocultar detalles":"Ver detalles"),1)],64)):t.createCommentVNode("",!0)])):o.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("div",wme,[t.createElementVNode("div",kme,[t.createVNode(h,{name:"Filtros",onChange:b.changeFiltersModal,reset:W.vDeleteFilter},null,8,["onChange","reset"]),t.createElementVNode("div",{class:"lineup__filters__selector",ref:"targetElement",onClick:s[2]||(s[2]=(...u)=>b.handleInsideClick&&b.handleInsideClick(...u))},[(t.openBlock(),t.createBlock(n,{onClick:b.clickOnValueFilter,items:b.matchdaysFinal,onInput:b.changeDropdown,backgroundColor:"transparent",height:"25px",key:e.keyUpdate,color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,"default-item-by-prop":e.defaultDropItem,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(u=>[t.createElementVNode("div",Sme,t.toDisplayString(u.selectedItem.name),1)]),availableItem:t.withCtx(({item:u})=>[t.createElementVNode("div",null,t.toDisplayString(u.name),1)]),_:1},8,["onClick","items","onInput","default-item-by-prop"]))],512),t.createElementVNode("div",{class:"lineup__text-btn",onClick:s[3]||(s[3]=u=>W.showDetails=!W.showDetails)},t.toDisplayString(W.showDetails?"Ocultar detalles":"Ver detalles"),1)]),t.createElementVNode("div",Tme,[Cme,t.createElementVNode("div",Eme,[b.mobileClass?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Ame,[b.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(_,{onClick:b.clickOnValueCarrousel,"default-item-by-index":W.selectedIndexOption,width:"600px",height:"80px",key:W.updateCarouselGames,onInput:b.changeCarouselItem,items:b.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:u})=>[t.createVNode(x,{game:u,teamSelect:W.teamSelect},null,8,["game","teamSelect"])]),_:1},8,["onClick","default-item-by-index","onInput","items"])):(t.openBlock(),t.createElementBlock("div",Mme,[Ime,t.createElementVNode("div",{class:"btn-delete-filters",onClick:s[4]||(s[4]=(...u)=>b.clickOnDeleteFilter&&b.clickOnDeleteFilter(...u))}," Eliminar filtros aplicados ")]))]),W.showDetails?(t.openBlock(),t.createBlock(y,{key:0,localDetails:W.localDetails,foreignDetails:W.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],64))])]),b.mobileClass?(t.openBlock(),t.createElementBlock("div",Pme,[b.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(_,{onClick:b.clickOnValueCarrousel,"default-item-by-index":W.selectedIndexOption,width:"600px",height:"80px",key:W.updateCarouselGames,onInput:b.changeCarouselItem,items:b.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1},{default:t.withCtx(({item:u})=>[t.createVNode(x,{game:u,teamSelect:W.teamSelect,style:{"max-width":"200px"}},null,8,["game","teamSelect"])]),_:1},8,["onClick","default-item-by-index","onInput","items"])):t.createCommentVNode("",!0),W.showDetails?(t.openBlock(),t.createBlock(y,{key:1,localDetails:W.localDetails,foreignDetails:W.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):o.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("div",Bme,[t.createElementVNode("div",Lme,[t.createVNode(n,{items:b.matchHomeProbables,onInput:b.changeDropdownLocal,backgroundColor:"transparent",height:"25px",color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(u=>[t.createElementVNode("div",zme,t.toDisplayString(u.selectedItem.name),1)]),availableItem:t.withCtx(({item:u})=>[t.createElementVNode("div",null,t.toDisplayString(u.name),1)]),_:1},8,["items","onInput"]),Ome,t.createElementVNode("img",{src:W.rivalHomeImg,class:"lineup__card-body__img-probables"},null,8,Fme)]),t.createElementVNode("div",Nme,[t.createElementVNode("img",{src:W.rivalVisitImg,class:"lineup__card-body__img-probables"},null,8,Dme),Rme,t.createVNode(n,{items:b.matchAwayProbables,onInput:b.changeDropdownVisit,backgroundColor:"transparent",height:"25px",color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(u=>[t.createElementVNode("div",Vme,t.toDisplayString(u.selectedItem.name),1)]),availableItem:t.withCtx(({item:u})=>[t.createElementVNode("div",null,t.toDisplayString(u.name),1)]),_:1},8,["items","onInput"])])])):o.selectedOption==="Postmatch"?(t.openBlock(),t.createElementBlock("div",jme,[t.createElementVNode("div",$me,t.toDisplayString(W.gameInfoheader.season_name!==void 0?W.gameInfoheader.season_name+"  |  "+b.remplazarMxJor(W.gameInfoheader.matchday_abbreviation)+"  |  "+W.gameInfoheader.home_team_abbreviation+" - "+W.gameInfoheader.away_team_abbreviation:""),1),t.createElementVNode("div",{class:"lineup__text-btn-abs",onClick:s[5]||(s[5]=u=>W.showDetails=!W.showDetails)},t.toDisplayString(W.showDetails?"Ocultar detalles":"Ver detalles"),1)])):t.createCommentVNode("",!0),W.showDetails&&(o.selectedOption==="Historicos"||o.selectedOption==="Postmatch")?(t.openBlock(),t.createBlock(y,{key:7,style:{"margin-bottom":"17px"},localDetails:W.localDetails,foreignDetails:W.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0),t.createVNode(v,{class:"lineup__field",players:W.players},null,8,["players"])])],2)}const Gme=ep(dme,[["render",Ume],["__scopeId","data-v-1634ade6"]]),Hme={name:"PlayerCard",emits:["open-profile"],components:{},props:{data:{type:Object,default:()=>{}},position:{type:String,default:"gsc-position-player"},type:{type:Number,default:1}},data(){return{}},computed:{},methods:{openProfile(e){(e.section!=="Historicos"||e.type==="Postmatch")&&this.$emit("open-profile",e)}},mounted(){}},ox=e=>(t.pushScopeId("data-v-ce649720"),e=e(),t.popScopeId(),e),Wme={key:0,class:"gsc-item-player"},qme={class:"gsc-num-player"},Yme={class:"gsc-cont-info-by-player"},Zme={class:"gsc-cont-info-by-player-row1"},Xme={class:"shield-player-cont"},Jme=["src"],Kme={class:"gsc-cont-info-by-player-row2"},Qme={class:"gsc-cont-info-by-player-row2-line-data"},e0e={class:"cont-display-gsc"},t0e=["src"],n0e={class:"gsc-cont-cards"},a0e={key:0,class:"gsc-yellow_card_div"},r0e={key:1,class:"gsc-red_card_div"},i0e={key:2,class:"gsc-yellowred_card_div"},o0e=ox(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),s0e={key:5,class:"gsc-goal_card_div_wrapper"},l0e=ox(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),c0e={key:1,class:"gsc-item-player"},u0e={class:"gsc-num-player2"},d0e={class:"gsc-cont-info-by-player2"},h0e={class:"gsc-cont-info-by-player-row2"},p0e={class:"gsc-cont-info-by-player-row2-line-data"},f0e={class:"gsc-cont-cards2"},m0e={key:0,class:"gsc-yellow_card_div"},g0e={key:1,class:"gsc-red_card_div"},y0e={key:2,class:"gsc-yellowred_card_div"},v0e=ox(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),_0e={key:5,class:"gsc-goal_card_div_wrapper"},b0e=ox(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),x0e={class:"cont-display-gsc"},w0e=["src"],k0e={class:"gsc-cont-info-by-player-row1"},S0e={class:"shield-player-cont"},T0e=["src"];function C0e(e,s,o,O,W,b){return t.openBlock(),t.createElementBlock(t.Fragment,null,[o.type==1?(t.openBlock(),t.createElementBlock("div",Wme,[t.createElementVNode("div",qme,[o.data.shirt<10?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("0")],64)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(o.data.shirt),1)]),t.createElementVNode("div",Yme,[t.createElementVNode("div",Zme,[t.createElementVNode("div",Xme,[t.createElementVNode("img",{class:"gsc-logo-player",src:o.data.img},null,8,Jme)])]),t.createElementVNode("div",Kme,[t.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name",style:t.normalizeStyle(o.data.section=="Historicos"&&o.data.type!="Postmatch"?"text-decoration: none !important; cursor: default !important":""),onClick:s[0]||(s[0]=g=>b.openProfile({playerId:o.data.playerid,teamId:o.data.teamid,seasonId:o.data.season,section:o.data.section,type:o.data.type}))},t.toDisplayString(o.data.name),5),t.createElementVNode("div",Qme,[t.createElementVNode("div",e0e,[t.createElementVNode("img",{class:"gsc-img-country",src:o.data.nation},null,8,t0e),t.createElementVNode("div",{class:t.normalizeClass(o.position)},t.toDisplayString(o.data.position),3)]),t.createElementVNode("div",n0e,[o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock("div",a0e)):t.createCommentVNode("",!0),o.data.redcard>=1&&o.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",r0e)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",i0e)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createTextVNode("'"+t.toDisplayString(o.data.yellowcardmin),1)],64)):t.createCommentVNode("",!0),o.data.redcard>=1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createTextVNode("'"+t.toDisplayString(o.data.redcardmin),1)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.data.goalsMin,(g,a)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:a},[o0e,t.createElementVNode("div",null,"'"+t.toDisplayString(g),1)]))),128)),o.data.substitutionIn||o.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",s0e,[l0e,t.createElementVNode("div",null,"'"+t.toDisplayString(o.data.substitutionMin),1)])):t.createCommentVNode("",!0)])])])])])):t.createCommentVNode("",!0),o.type==2?(t.openBlock(),t.createElementBlock("div",c0e,[t.createElementVNode("div",u0e,[o.data.shirt<10?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("0")],64)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(o.data.shirt),1)]),t.createElementVNode("div",d0e,[t.createElementVNode("div",h0e,[t.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name2",style:t.normalizeStyle(o.data.section=="Historicos"&&o.data.type!="Postmatch"?"text-decoration: none !important; cursor: default !important":""),onClick:s[1]||(s[1]=g=>b.openProfile({playerId:o.data.playerid,teamId:o.data.teamid,seasonId:o.data.season,section:o.data.section,type:o.data.type}))},t.toDisplayString(o.data.name),5),t.createElementVNode("div",p0e,[t.createElementVNode("div",f0e,[o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock("div",m0e)):t.createCommentVNode("",!0),o.data.redcard>=1&&o.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",g0e)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",y0e)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createTextVNode("'"+t.toDisplayString(o.data.yellowcardmin),1)],64)):t.createCommentVNode("",!0),o.data.redcard>=1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createTextVNode("'"+t.toDisplayString(o.data.redcardmin),1)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.data.goalsMin,(g,a)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:a},[v0e,t.createElementVNode("div",null,"'"+t.toDisplayString(g),1)]))),128)),o.data.substitutionIn||o.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",_0e,[b0e,t.createElementVNode("div",null,"'"+t.toDisplayString(o.data.substitutionMin),1)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",x0e,[t.createElementVNode("div",{class:t.normalizeClass(o.position)},t.toDisplayString(o.data.position),3),t.createElementVNode("img",{class:"gsc-img-country",src:o.data.nation},null,8,w0e)])])]),t.createElementVNode("div",k0e,[t.createElementVNode("div",S0e,[t.createElementVNode("img",{class:"gsc-logo-player",src:o.data.img},null,8,T0e)])])])])):t.createCommentVNode("",!0)],64)}const E0e=ep(Hme,[["render",C0e],["__scopeId","data-v-ce649720"]]),x8="/icn-filter.svg",r2="/icn-expand-arrow.svg",KI="/backarrow.svg",QI="/nextarrow.svg",A0e="_selectoritem_1dafy_137",M0e="_selectoritem2_1dafy_157",I0e="_gscheaderlineup_1dafy_177",P0e="_anNoEstn_1dafy_191",B0e="_groupsLeague_1dafy_197",L0e="_jugadores_1dafy_209",z0e="_switchOption_1dafy_219",O0e="_jugadores1_1dafy_239",F0e="_switchOption1_1dafy_249",N0e="_switchStatesBig_1dafy_265",D0e="_groupsLeagueParent_1dafy_283",R0e="_imgHomeTeamIcon_1dafy_301",V0e="_imgHomeTeamWrapper_1dafy_313",j0e="_teamContainer_1dafy_337",$0e="_name_1dafy_361",U0e="_homeTeamContainer_1dafy_373",G0e="_div_1dafy_393",H0e="_scoreContainer_1dafy_401",W0e="_scoreContainerWrapper_1dafy_421",q0e="_teamContainer1_1dafy_447",Y0e="_awayTeamContainer_1dafy_471",Z0e="_matchContainer_1dafy_491",X0e="_sliderMatchesChild_1dafy_509",J0e="_manchesterUnited_1dafy_521",K0e="_sliderMatchesItem_1dafy_533",Q0e="_sliderMatches_1dafy_509",ege="_sortIcon_1dafy_569",tge="_filtros_1dafy_583",nge="_sortParent_1dafy_599",age="_shapeIcon_1dafy_613",rge="_btnFilter_1dafy_623",ige="_btnFilter1_1dafy_651",oge="_btnFilterParent_1dafy_679",sge="_backArrowIcon_1dafy_695",lge="_teamContainer2_1dafy_707",cge="_homeTeam_1dafy_373",uge="_div4_1dafy_735",dge="_finalScore_1dafy_745",hge="_manchesterUnited1_1dafy_771",pge="_scoreContainer1_1dafy_785",fge="_match_1dafy_491",mge="_manchesterUnited2_1dafy_821",gge="_btnDetails_1dafy_831",yge="_matchContainer1_1dafy_851",vge="_goalChild_1dafy_867",_ge="_goal_1dafy_867",bge="_manchesterUnited3_1dafy_893",xge="_minuteEvent_1dafy_907",wge="_yellowCard_1dafy_921",kge="_awayTeamEvents_1dafy_935",Sge="_rectangle_1dafy_949",Tge="_homeTeamEvents_1dafy_963",Cge="_totalEvents_1dafy_979",Ege="_headerSeccionAlineaciones1_1dafy_995",Age="_switchOption3_1dafy_1017",Mge="_switchOption4_1dafy_1041",Ige="_switchStatesBig1_1dafy_1061",Pge="_manchesterUnited13_1dafy_1075",Bge="_homeTeamContainer1_1dafy_1085",Lge="_scoreContainer2_1dafy_1099",zge="_matchContainer2_1dafy_1127",Oge="_manchesterUnited14_1dafy_1147",Fge="_sliderMatchesInner_1dafy_1161",Nge="_rectangleIcon_1dafy_1181",Dge="_sliderMatches1_1dafy_1201",Rge="_containerData_1dafy_1217",Vge="_headerSeccionAlineaciones2_1dafy_1245",jge="_headerSeccionAlineaciones_1dafy_995",$ge="_headerSeccionAlineaciones21200_1dafy_1293",Uge="_headerSeccionAlineaciones1540_1dafy_1299",Gge="_headerSeccionAlineaciones2540_1dafy_1307",Hge={selectoritem:A0e,selectoritem2:M0e,gscheaderlineup:I0e,anNoEstn:P0e,groupsLeague:B0e,jugadores:L0e,switchOption:z0e,jugadores1:O0e,switchOption1:F0e,switchStatesBig:N0e,groupsLeagueParent:D0e,imgHomeTeamIcon:R0e,imgHomeTeamWrapper:V0e,teamContainer:j0e,name:$0e,homeTeamContainer:U0e,div:G0e,scoreContainer:H0e,scoreContainerWrapper:W0e,teamContainer1:q0e,awayTeamContainer:Y0e,matchContainer:Z0e,sliderMatchesChild:X0e,manchesterUnited:J0e,sliderMatchesItem:K0e,sliderMatches:Q0e,sortIcon:ege,filtros:tge,sortParent:nge,shapeIcon:age,btnFilter:rge,btnFilter1:ige,btnFilterParent:oge,backArrowIcon:sge,teamContainer2:lge,homeTeam:cge,div4:uge,finalScore:dge,manchesterUnited1:hge,scoreContainer1:pge,match:fge,manchesterUnited2:mge,btnDetails:gge,matchContainer1:yge,goalChild:vge,goal:_ge,manchesterUnited3:bge,minuteEvent:xge,yellowCard:wge,awayTeamEvents:kge,rectangle:Sge,homeTeamEvents:Tge,totalEvents:Cge,headerSeccionAlineaciones1:Ege,switchOption3:Age,switchOption4:Mge,switchStatesBig1:Ige,manchesterUnited13:Pge,homeTeamContainer1:Bge,scoreContainer2:Lge,matchContainer2:zge,manchesterUnited14:Oge,sliderMatchesInner:Fge,rectangleIcon:Nge,sliderMatches1:Dge,containerData:Rge,headerSeccionAlineaciones2:Vge,headerSeccionAlineaciones:jge,headerSeccionAlineaciones21200:$ge,headerSeccionAlineaciones1540:Uge,headerSeccionAlineaciones2540:Gge},Wge={components:{GSCCarousel:ix,GscSwitchComponent:n2},props:{optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},gameRecientes:{type:Number,default:0},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",{season_id:e.season_id,game_id:e.id})}catch(s){throw new Error(s)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=540?this.$style.headerSeccionAlineaciones2540:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{changeCarouselItem(e){this.$emit("input",{season_id:e.selectedItem.season,game_id:e.selectedItem.game,ht_abrev:e.selectedItem.home_team_abbreviation,at_abrev:e.selectedItem.away_team_abbreviation}),this.selectedOption=e.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},qge=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),Yge=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),Zge=["src"],Xge=["src"],Jge=["src"],Kge=["src"],Qge=["src"],e1e=["src"];function t1e(e,s,o,O,W,b){const g=t.resolveComponent("GscSwitchComponent"),a=t.resolveComponent("GSCCarousel");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.gscheaderlineup)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(b.headerSeccionAlineaciones1Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[qge,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),Yge],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[(o.gameInfo.game_status==0||o.gameInfo.game_status==4)&&o.gameRecientes>0?(t.openBlock(),t.createBlock(g,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:b.clickOnSelectOption},null,8,["selectedOption","onInput"])):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameHistoric[W.selectedOption].objgame.home_team+".png"},null,10,Zge)):t.createCommentVNode("",!0)],2)],2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)}," - ",2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameHistoric[W.selectedOption].objgame.away_team+".png"},null,10,Xge)):t.createCommentVNode("",!0)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches)},[o.gameHistoric.length>0?(t.openBlock(),t.createBlock(a,{key:0,"current-item-index":W.selectedOption,onInput:b.changeCarouselItem,items:o.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:_})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},t.toDisplayString(_.description),3)]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:x8},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:r2},null,2)],2),t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Jornada",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"2",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:r2},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:KI},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameHistoric[W.selectedOption].objgame.home_team+".png"},null,10,Jge)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[o.teamActive=="home"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameHistoric[W.selectedOption].objgame.away_team+".png"},null,10,Kge)):t.createCommentVNode("",!0),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:QI},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(b.headerSeccionAlineaciones2Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig1),id:"switch-lineup"},[(o.gameInfo.game_status==0||o.gameInfo.game_status==4)&&o.gameRecientes>0?(t.openBlock(),t.createBlock(g,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:b.clickOnSelectOption},null,8,["selectedOption","onInput"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited13)},"Alineación utilizada en: ",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameHistoric[W.selectedOption].objgame.home_team+".png"},null,10,Qge)):t.createCommentVNode("",!0)],2)],2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer2)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameHistoric[W.selectedOption].objgame.away_team+".png"},null,10,e1e)):t.createCommentVNode("",!0)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches1)},[o.gameHistoric.length>0?(t.openBlock(),t.createBlock(a,{key:0,"current-item-index":W.selectedOption,onInput:b.changeCarouselItem,items:o.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:_})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem2)},t.toDisplayString(_.description),3)]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0)],2)],2)],2)],2)],2)}const n1e={$style:Hge},a1e=ep(Wge,[["render",t1e],["__cssModules",n1e]]),sx=e=>(t.pushScopeId("data-v-2118a6cd"),e=e(),t.popScopeId(),e),r1e=t.createStaticVNode('<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-2118a6cd><g id="vuesax/outline/sort" data-v-2118a6cd><g id="sort" data-v-2118a6cd><path id="Vector" opacity="0.7" d="M15.75 5.8125H2.25C1.9425 5.8125 1.6875 5.5575 1.6875 5.25C1.6875 4.9425 1.9425 4.6875 2.25 4.6875H15.75C16.0575 4.6875 16.3125 4.9425 16.3125 5.25C16.3125 5.5575 16.0575 5.8125 15.75 5.8125Z" fill="white" data-v-2118a6cd></path><path id="Vector_2" opacity="0.7" d="M13.5 9.5625H4.5C4.1925 9.5625 3.9375 9.3075 3.9375 9C3.9375 8.6925 4.1925 8.4375 4.5 8.4375H13.5C13.8075 8.4375 14.0625 8.6925 14.0625 9C14.0625 9.3075 13.8075 9.5625 13.5 9.5625Z" fill="white" data-v-2118a6cd></path><path id="Vector_3" opacity="0.7" d="M10.5 13.3125H7.5C7.1925 13.3125 6.9375 13.0575 6.9375 12.75C6.9375 12.4425 7.1925 12.1875 7.5 12.1875H10.5C10.8075 12.1875 11.0625 12.4425 11.0625 12.75C11.0625 13.0575 10.8075 13.3125 10.5 13.3125Z" fill="white" data-v-2118a6cd></path></g></g></svg>',1),i1e=["value"],o1e=sx(()=>t.createElementVNode("svg",{width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:"#92929D"})],-1)),s1e={class:"filter-modal__padding"},l1e={class:"filter-modal__content-header"},c1e=sx(()=>t.createElementVNode("h3",null,"Jugando como:",-1)),u1e={class:"filter-modal__content-options"},d1e=["onClick"],h1e={class:"filter-modal__content-header"},p1e=sx(()=>t.createElementVNode("h3",null,"Resultados:",-1)),f1e={class:"filter-modal__content-options"},m1e=["onClick"],g1e=sx(()=>t.createElementVNode("hr",{style:{"border-color":"#FFFFFF33"}},null,-1)),y1e={__name:"gsc-filter",props:{name:{type:String,default:""},zIndex:{type:Number,default:1},showButton:{type:Boolean,default:!1},marginModal:{type:String,default:"0px"},isOpen:{type:Boolean,default:!1},reset:{type:Boolean,default:!1},itemSelect:{type:Object,default:()=>{}},componentWidth:{type:Number,default:768,validator(e){return e>0}}},emits:["update:model-value","change"],setup(e,{emit:s}){const o=e;t.useCssVars(p=>({d00c78a6:e.marginModal}));const O=[{id:"local",name:"Local"},{id:"visit",name:"Visitante"}],W=[{id:"win",name:"Ganado"},{id:"draw",name:"Empatados"},{id:"lose",name:"Perdidos"}],b=t.ref(null),g=t.ref(["local","visit"]),a=t.ref(["win","draw","lose"]),_=t.ref(!0),h=t.ref(!0),n=t.ref(!0),x=t.ref(!0),y=t.ref(["local","visit"]),v=t.ref(["win","draw","lose"]),u=()=>{b.value.focus(),g.value=JSON.parse(JSON.stringify(y.value)),a.value=JSON.parse(JSON.stringify(v.value)),_.value=n.value,h.value=x.value};t.watch(()=>o.itemSelect,p=>{p&&(y.value=p.selectedFilterTeam,v.value=p.selectedFilterResults)}),t.watch(()=>o.reset,p=>{p&&i()});const r=(p,m)=>{let w;m==="team"?w=y.value:w=v.value;const T=w.findIndex(A=>A===p);T==-1?w.push(p):m=="team"&&y.value.length==2?w.splice(T,1):(m=="team"&&w.push(p),v.value.length>1&&w.splice(T,1)),n.value=y.value.length==2,x.value=v.value.length==3},i=()=>{y.value=["local","visit"],v.value=["win","draw","lose"],n.value=!0,x.value=!0,s("change",{selectedFilterTeam:y.value,selectedFilterResults:v.value})},d=()=>{s("change",{selectedFilterTeam:y.value,selectedFilterResults:v.value})},l=()=>{s("change",{selectedFilterTeam:y.value,selectedFilterResults:v.value})};return(p,m)=>(t.openBlock(),t.createElementBlock("div",{class:"filter-modal",style:t.normalizeStyle({zIndex:e.zIndex})},[e.showButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"filter-modal__input",onClick:u},[r1e,t.createElementVNode("input",{type:"text",value:e.name,readonly:""},null,8,i1e),o1e])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["filter-modal__content",e.isOpen?"open":"close"]),tabindex:"0",ref_key:"filterElement",ref:b,onFocusout:m[4]||(m[4]=w=>{e.isOpen=!1,l()})},[t.createElementVNode("div",s1e,[t.createElementVNode("div",l1e,[c1e,t.createVNode(ax,{modelValue:n.value,"onUpdate:modelValue":[m[0]||(m[0]=w=>n.value=w),m[1]||(m[1]=w=>w&&(y.value=["local","visit"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",u1e,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(O,w=>t.createElementVNode("li",{onClick:T=>r(w.id,"team"),class:t.normalizeClass({active:y.value.includes(w.id)})},t.toDisplayString(w.name),11,d1e)),64))]),t.createElementVNode("div",h1e,[p1e,t.createVNode(ax,{modelValue:x.value,"onUpdate:modelValue":[m[2]||(m[2]=w=>x.value=w),m[3]||(m[3]=w=>w&&(v.value=["win","lose","draw"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",f1e,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(W,w=>t.createElementVNode("li",{onClick:T=>r(w.id,"player"),class:t.normalizeClass({active:v.value.includes(w.id)})},t.toDisplayString(w.name),11,m1e)),64))])]),g1e,t.createElementVNode("div",{class:"filter-modal__buttons"},[t.createElementVNode("div",{class:"button filter-modal__text-btn",onClick:i},"Quitar filtros"),t.createElementVNode("div",{class:"button filter-modal__outline-btn",onClick:d},"Listo")])],34)],4))}},v1e=ep(y1e,[["__scopeId","data-v-2118a6cd"]]),_1e="/icn-filter1.svg",b1e="/icn-expand-arrow1.svg",x1e="/icn-filter2.svg",w1e="/icn-arrow-expand.svg",k1e="_containernofoundsearchrecientes_1gxk5_159",S1e="_btndeletefilters_1gxk5_215",T1e="_leyenddeleteshow_1gxk5_247",C1e="_selectoritem_1gxk5_261",E1e="_anNoEstn_1gxk5_279",A1e="_groupsLeague_1gxk5_287",M1e="_historicas_1gxk5_297",I1e="_switchOption_1gxk5_309",P1e="_recientes_1gxk5_331",B1e="_switchOption1_1gxk5_343",L1e="_switchOption2_1gxk5_369",z1e="_switchStatesBig_1gxk5_387",O1e="_groupsLeagueParent_1gxk5_407",F1e="_imgHomeTeamIcon_1gxk5_427",N1e="_imgHomeTeamWrapper_1gxk5_441",D1e="_teamContainer_1gxk5_467",R1e="_name_1gxk5_493",V1e="_homeTeamContainer_1gxk5_507",j1e="_div_1gxk5_529",$1e="_scoreContainer_1gxk5_539",U1e="_scoreContainerWrapper_1gxk5_561",G1e="_teamContainer1_1gxk5_587",H1e="_awayTeamContainer_1gxk5_613",W1e="_matchContainer_1gxk5_635",q1e="_sliderMatchesChild_1gxk5_655",Y1e="_manchesterUnited_1gxk5_669",Z1e="_sliderMatchesItem_1gxk5_683",X1e="_sliderMatches_1gxk5_655",J1e="_sortIcon_1gxk5_719",K1e="_filtros_1gxk5_735",Q1e="_sortParent_1gxk5_753",eye="_shapeIcon_1gxk5_769",tye="_btnFilter_1gxk5_781",nye="_btnFilter1_1gxk5_813",aye="_btnFilterParent_1gxk5_843",rye="_backArrowIcon_1gxk5_861",iye="_teamContainer2_1gxk5_875",oye="_homeTeam_1gxk5_507",sye="_div4_1gxk5_907",lye="_finalScore_1gxk5_919",cye="_manchesterUnited1_1gxk5_947",uye="_scoreContainer1_1gxk5_963",dye="_match_1gxk5_635",hye="_manchesterUnited2_1gxk5_997",pye="_btnDetails_1gxk5_1023",fye="_matchContainer1_1gxk5_1047",mye="_goalChild_1gxk5_1065",gye="_goal_1gxk5_1065",yye="_manchesterUnited3_1gxk5_1095",vye="_minuteEvent_1gxk5_1111",_ye="_yellowCard_1gxk5_1127",bye="_awayTeamEvents_1gxk5_1143",xye="_rectangle_1gxk5_1159",wye="_homeTeamEvents_1gxk5_1175",kye="_totalEvents_1gxk5_1193",Sye="_headerSeccionAlineaciones1_1gxk5_1211",Tye="_sliderMatchesInner_1gxk5_1233",Cye="_btnFilter2_1gxk5_1247",Eye="_btnDetails1_1gxk5_1281",Aye="_matchContainer3_1gxk5_1299",Mye="_backArrowIcon1_1gxk5_1321",Iye="_match1_1gxk5_1335",Pye="_headerSeccionAlineaciones2_1gxk5_1347",Bye="_jugadores2_1gxk5_1369",Lye="_switchOption6_1gxk5_1383",zye="_switchOption7_1gxk5_1405",Oye="_switchStatesBig2_1gxk5_1431",Fye="_manchesterUnited26_1gxk5_1447",Nye="_homeTeamContainer2_1gxk5_1459",Dye="_vectorIcon_1gxk5_1475",Rye="_teamSwitch_1gxk5_1487",Vye="_matchContainer5_1gxk5_1513",jye="_manchesterUnited27_1gxk5_1535",$ye="_sliderMatchesChild1_1gxk5_1551",Uye="_sliderMatchesChild2_1gxk5_1573",Gye="_sliderMatches2_1gxk5_1595",Hye="_filtros2_1gxk5_1615",Wye="_btnFilter4_1gxk5_1635",qye="_jornada2_1gxk5_1667",Yye="_filterMatchday_1gxk5_1681",Zye="_btnDetails2_1gxk5_1703",Xye="_filtersContainer_1gxk5_1725",Jye="_matchContainer6_1gxk5_1745",Kye="_matchDetailContainer_1gxk5_1763",Qye="_containerData_1gxk5_1783",eve="_headerSeccionAlineaciones3_1gxk5_1813",tve="_headerSeccionAlineaciones_1gxk5_1211",nve="_headerSeccionAlineaciones31200_1gxk5_1865",ave="_headerSeccionAlineaciones3420_1gxk5_1891",rve="_headerSeccionAlineaciones3880_1gxk5_1917",ive="_headerSeccionAlineaciones3540_1gxk5_1941",ove="_headerSeccionAlineaciones11200_1gxk5_1967",sve="_headerSeccionAlineaciones1420_1gxk5_1995",lve="_headerSeccionAlineaciones1880_1gxk5_2017",cve="_headerSeccionAlineaciones21200_1gxk5_2039",uve="_headerSeccionAlineaciones2420_1gxk5_2067",dve="_headerSeccionAlineaciones2880_1gxk5_2091",hve="_headerSeccionAlineaciones2540_1gxk5_2113",pve={containernofoundsearchrecientes:k1e,"text-containernofoundsearchrecientes":"_text-containernofoundsearchrecientes_1gxk5_171","btn-delete-filters":"_btn-delete-filters_1gxk5_183",btndeletefilters:S1e,leyenddeleteshow:T1e,selectoritem:C1e,anNoEstn:E1e,groupsLeague:A1e,historicas:M1e,switchOption:I1e,recientes:P1e,switchOption1:B1e,switchOption2:L1e,switchStatesBig:z1e,groupsLeagueParent:O1e,imgHomeTeamIcon:F1e,imgHomeTeamWrapper:N1e,teamContainer:D1e,name:R1e,homeTeamContainer:V1e,div:j1e,scoreContainer:$1e,scoreContainerWrapper:U1e,teamContainer1:G1e,awayTeamContainer:H1e,matchContainer:W1e,sliderMatchesChild:q1e,manchesterUnited:Y1e,sliderMatchesItem:Z1e,sliderMatches:X1e,sortIcon:J1e,filtros:K1e,sortParent:Q1e,shapeIcon:eye,btnFilter:tye,btnFilter1:nye,btnFilterParent:aye,backArrowIcon:rye,teamContainer2:iye,homeTeam:oye,div4:sye,finalScore:lye,manchesterUnited1:cye,scoreContainer1:uye,match:dye,manchesterUnited2:hye,btnDetails:pye,matchContainer1:fye,goalChild:mye,goal:gye,manchesterUnited3:yye,minuteEvent:vye,yellowCard:_ye,awayTeamEvents:bye,rectangle:xye,homeTeamEvents:wye,totalEvents:kye,headerSeccionAlineaciones1:Sye,sliderMatchesInner:Tye,btnFilter2:Cye,btnDetails1:Eye,matchContainer3:Aye,backArrowIcon1:Mye,match1:Iye,headerSeccionAlineaciones2:Pye,jugadores2:Bye,switchOption6:Lye,switchOption7:zye,switchStatesBig2:Oye,manchesterUnited26:Fye,homeTeamContainer2:Nye,vectorIcon:Dye,teamSwitch:Rye,matchContainer5:Vye,manchesterUnited27:jye,sliderMatchesChild1:$ye,sliderMatchesChild2:Uye,sliderMatches2:Gye,filtros2:Hye,btnFilter4:Wye,jornada2:qye,filterMatchday:Yye,btnDetails2:Zye,filtersContainer:Xye,matchContainer6:Jye,matchDetailContainer:Kye,containerData:Qye,headerSeccionAlineaciones3:eve,headerSeccionAlineaciones:tve,headerSeccionAlineaciones31200:nve,headerSeccionAlineaciones3420:ave,headerSeccionAlineaciones3880:rve,headerSeccionAlineaciones3540:ive,headerSeccionAlineaciones11200:ove,headerSeccionAlineaciones1420:sve,headerSeccionAlineaciones1880:lve,headerSeccionAlineaciones21200:cve,headerSeccionAlineaciones2420:uve,headerSeccionAlineaciones2880:dve,headerSeccionAlineaciones2540:hve},fve={components:{GSCCarousel:ix,GscSwitchComponent:n2,GSCDropdown:b8,GSCFilter:v1e,GSCSwitchRadio:DI,GSCMatchDetails:jI},props:{widthSize:{type:Number,default:0},optionSelected:{type:String,default:"Historicos"},selectedOption:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},watch:{optionSelected:{immediate:!0,handler:async function(e){e=="Recientes"&&(this.auxISsection=1)}},gameInfo:{immediate:!0,handler:async function(e){try{this.teamSelect=e.home_team_abbreviation,this.matchFilter()}catch(s){throw new Error(s)}}},gameRecientes:{immediate:!0,handler:async function(e){this.matchFilter()}}},data(){return{playminutes:[],showDetails:!1,teamSelect:"",defaultDropItem:{},updateCarouselGames:0,valLast:{},selectedIndexOption:0,openfiltervalue:!1,vDeleteFilter:!1,filterObject:{},coutChange:0,auxISsection:0,matchdaysFiltersUpdate:[],gamesFiltersUpdate:[],localDetails:[],keyUpdate:0,foreignDetails:[]}},computed:{matchdaysFinal(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==1&&e.push(this.matchdaysFiltersUpdate[s]);for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==3&&e.push(this.matchdaysFiltersUpdate[s])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==1&&e.push(this.matchdaysFiltersUpdate[s]);for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==2&&e.push(this.matchdaysFiltersUpdate[s])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==3&&e.push(this.matchdaysFiltersUpdate[s]);for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==2&&e.push(this.matchdaysFiltersUpdate[s])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==1&&e.push(this.matchdaysFiltersUpdate[s]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==2&&e.push(this.matchdaysFiltersUpdate[s]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==3&&e.push(this.matchdaysFiltersUpdate[s])}else for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)e.push(this.matchdaysFiltersUpdate[s]);else for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)e.push(this.matchdaysFiltersUpdate[s]);return e.sort((s,o)=>o.id-s.id),e},gameRecientesFilter(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==1||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==1)&&e.push(this.gamesFiltersUpdate[s]);for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==3||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==3)&&e.push(this.gamesFiltersUpdate[s])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==1||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==1)&&e.push(this.gamesFiltersUpdate[s]);for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==2||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==2)&&e.push(this.gamesFiltersUpdate[s])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==3||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==3)&&e.push(this.gamesFiltersUpdate[s]);for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==2||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==2)&&e.push(this.gamesFiltersUpdate[s])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==1||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==1)&&e.push(this.gamesFiltersUpdate[s]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==2||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==2)&&e.push(this.gamesFiltersUpdate[s]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==3||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==3)&&e.push(this.gamesFiltersUpdate[s])}else for(let s=0;s<this.gamesFiltersUpdate.length;s++)e.push(this.gamesFiltersUpdate[s]);else for(let s=0;s<this.gamesFiltersUpdate.length;s++)e.push(this.gamesFiltersUpdate[s]);return e.sort((s,o)=>s.matchday_id-o.matchday_id),e},headerSeccionAlineaciones1Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones1420:e<=880?this.$style.headerSeccionAlineaciones1880:e<=1200?this.$style.headerSeccionAlineaciones11200:this.$style.headerSeccionAlineaciones1},headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones2420:e<=540?this.$style.headerSeccionAlineaciones2540:e<=880?this.$style.headerSeccionAlineaciones2880:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones3Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones3420:e<=540?this.$style.headerSeccionAlineaciones3540:e<=880?this.$style.headerSeccionAlineaciones3880:e<=1200?this.$style.headerSeccionAlineaciones31200:this.$style.headerSeccionAlineaciones3}},methods:{clickOnValueFilter(){this.auxISsection=0},clickOnValueCarrousel(){this.auxISsection=0},deleteFilters(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickShowDetails(){this.showDetails=!this.showDetails},matchFilter(){var e=[],s=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let o=0;o<this.gameRecientes[this.teamSelect].length;o++)this.filterObject.selectedFilterTeam[0]=="local"?this.gameRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect&&(e.push({name:this.gameRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].home_match_result}),s.push(this.gameRecientes[this.teamSelect][o])):this.gameRecientes[this.teamSelect][o].away_team_abbreviation==this.teamSelect&&(e.push({name:this.gameRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].visiting_match_result}),s.push(this.gameRecientes[this.teamSelect][o]));else if(this.gameRecientes[this.teamSelect])for(let o=0;o<this.gameRecientes[this.teamSelect].length;o++)e.push({name:this.gameRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][o].home_match_result:this.gameRecientes[this.teamSelect][o].visiting_match_result}),s.push(this.gameRecientes[this.teamSelect][o])}else if(this.gameRecientes[this.teamSelect])for(let o=0;o<this.gameRecientes[this.teamSelect].length;o++)e.push({name:this.getRound(this.gameRecientes[this.teamSelect][o].matchday_abbreviation),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][o].home_match_result:this.gameRecientes[this.teamSelect][o].visiting_match_result}),s.push(this.gameRecientes[this.teamSelect][o]);this.gamesFiltersUpdate=s,this.matchdaysFiltersUpdate=e},getRound(e){let s=e.replace("M","Jornada ");return s=s.replace("PO1","CFI"),s=s.replace("PO2","CFV"),s=s.replace("PO3","SFI"),s=s.replace("PO4","SFV"),s=s.replace("PO5","FI"),s=s.replace("PO6","FV"),s},changeFiltersModal(e){this.auxISsection=1,this.filterObject=e,this.openfiltervalue=!1,this.matchFilter(),setTimeout(()=>{this.keyUpdate+=1,this.updateCarouselGames+=1},600)},openFilter(){this.openfiltervalue=!0},getMinutesData(e){this.localDetails=[],this.foreignDetails=[];for(let s=0;s<e.home_goals_minutes.length;s++)this.localDetails.push({description:e.home_goals_minutes[s],icon:"goal"});for(let s=0;s<e.visiting_goals_minutes.length;s++)this.foreignDetails.push({description:e.visiting_goals_minutes[s],icon:"goal"});for(let s=0;s<e.home_yellow_cards_minutes.length;s++)this.localDetails.push({description:e.home_yellow_cards_minutes[s],icon:"yellow-card"});for(let s=0;s<e.away_yellow_cards_minutes.length;s++)this.foreignDetails.push({description:e.away_yellow_cards_minutes[s],icon:"yellow-card"});for(let s=0;s<e.home_red_cards_minutes.length;s++)this.localDetails.push({description:e.home_red_cards_minutes[s],icon:"red-card"});for(let s=0;s<e.away_red_cards_minutes.length;s++)this.foreignDetails.push({description:e.away_red_cards_minutes[s],icon:"red-card"})},changeCarouselItem(e){setTimeout(()=>{JSON.stringify(e)!==JSON.stringify(this.valLast)&&this.gameRecientesFilter&&this.gameRecientesFilter.length>0&&e&&(e.selectedItem===void 0&&(e.selectedItem=this.gameRecientesFilter[this.gameRecientesFilter.length-1],e.selectedItemIndex=this.gameRecientesFilter.length-1),this.valLast=e,this.auxISsection==1?(this.$emit("input",{selectedItem:this.gameRecientesFilter[this.gameRecientesFilter.length-1],selectedItemIndex:this.gameRecientesFilter.length-1}),this.getMinutesData(this.gameRecientesFilter[this.gameRecientesFilter.length-1].minutes),this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id}):(this.$emit("input",e),this.getMinutesData(e.selectedItem.minutes),this.selectedIndexOption=e.selectedItemIndex,this.defaultDropItem={propName:"id",value:e.selectedItem.matchday_id}),this.keyUpdate+=1)},200)},changeDropdown(e){if(this.gameRecientesFilter&&this.gameRecientesFilter.length>0)if(this.auxISsection==1)this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id};else{const s=this.gameRecientesFilter.findIndex(o=>o.matchday_id==e.id);s!=-1&&(this.selectedIndexOption=s,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[s].matchday_id})}},changeSwitchRadio(e){this.auxISsection=1,typeof e!="object"&&(this.teamSelect=e,this.$emit("changeTeam",this.teamSelect),this.updateCarouselGames+=1,this.matchFilter())},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},mve=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),gve=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),yve=["src"],vve=["src"],_ve={class:"selector-tournaments"},bve=["src"],xve=["src"],wve={key:1},kve=t.createElementVNode("br",null,null,-1),Sve=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),Tve=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),Cve=["src"],Eve=["src"],Ave={class:"selector-tournaments"},Mve=["src"],Ive=["src"],Pve={key:1},Bve=t.createElementVNode("br",null,null,-1),Lve=["src"],zve=["src"],Ove={class:"selector-tournaments"},Fve=["src"],Nve=["src"],Dve={key:1},Rve=t.createElementVNode("br",null,null,-1);function Vve(e,s,o,O,W,b){const g=t.resolveComponent("GscSwitchComponent"),a=t.resolveComponent("GSCSwitchRadio"),_=t.resolveComponent("GSCFilter"),h=t.resolveComponent("GSCDropdown"),n=t.resolveComponent("GSCCarousel"),x=t.resolveComponent("GSCMatchDetails");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(b.headerSeccionAlineaciones1Class),id:"header-desktop-full"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[mve,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),gve],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(g,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:b.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,yve)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(a,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":o.gameInfo.home_team_abbreviation,onChange:b.changeSwitchRadio,"text-option-right":o.gameInfo.away_team_abbreviation,"font-color":"white","value-default":W.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,vve)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:s[0]||(s[0]=(...y)=>b.openFilter&&b.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:x8},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:r2},null,2),t.createVNode(_,{"item-select":W.filterObject,"is-open":W.openfiltervalue,onChange:b.changeFiltersModal,reset:W.vDeleteFilter,"margin-modal":"-83px"},null,8,["item-select","is-open","onChange","reset"])],2),b.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{onClick:b.clickOnValueFilter,key:W.keyUpdate,"default-item-by-prop":W.defaultDropItem,class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters",items:b.matchdaysFinal,onInput:b.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(y=>[t.createElementVNode("div",_ve,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[b.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(n,{onClick:b.clickOnValueCarrousel,key:W.updateCarouselGames,"default-item-by-index":W.selectedIndexOption,items:b.gameRecientesFilter,onInput:b.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.home_team+".png"},null,10,bve)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==W.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==W.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.away_team+".png"},null,10,xve),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["onClick","default-item-by-index","items","onInput"])):(t.openBlock(),t.createElementBlock("div",wve,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),kve,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:s[1]||(s[1]=(...y)=>b.deleteFilters&&b.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),W.showDetails?(t.openBlock(),t.createBlock(x,{key:2,style:{"margin-top":"30px"},localDetails:W.localDetails,foreignDetails:W.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:s[2]||(s[2]=(...y)=>b.clickShowDetails&&b.clickShowDetails(...y))},[W.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(b.headerSeccionAlineaciones2Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[Sve,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),Tve],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(g,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:b.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,Cve)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(a,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":o.gameInfo.home_team_abbreviation,onChange:b.changeSwitchRadio,"text-option-right":o.gameInfo.away_team_abbreviation,"font-color":"white","value-default":W.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,Eve)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer3)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter2),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:s[3]||(s[3]=(...y)=>b.openFilter&&b.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:_1e},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:b1e},null,2),t.createVNode(_,{"item-select":W.filterObject,"is-open":W.openfiltervalue,onChange:b.changeFiltersModal,"margin-modal":"-99px"},null,8,["item-select","is-open","onChange"])],2),b.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{onClick:b.clickOnValueFilter,key:W.keyUpdate,"default-item-by-prop":W.defaultDropItem,class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters",items:b.matchdaysFinal,onInput:b.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(y=>[t.createElementVNode("div",Ave,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:s[4]||(s[4]=(...y)=>b.clickShowDetails&&b.clickShowDetails(...y))},[W.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.match1)},[b.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(n,{items:b.gameRecientesFilter,key:W.updateCarouselGames,"default-item-by-index":W.selectedIndexOption,onInput:b.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.home_team+".png"},null,10,Mve)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==W.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==W.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.away_team+".png"},null,10,Ive),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","default-item-by-index","onInput"])):(t.openBlock(),t.createElementBlock("div",Pve,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),Bve,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:s[5]||(s[5]=(...y)=>b.deleteFilters&&b.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),W.showDetails?(t.openBlock(),t.createBlock(x,{key:2,style:{"margin-top":"30px"},localDetails:W.localDetails,foreignDetails:W.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(b.headerSeccionAlineaciones3Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig2),id:"switch-lineup"},[t.createVNode(g,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:b.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited26)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer5),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,Lve)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(a,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":o.gameInfo.home_team_abbreviation,onChange:b.changeSwitchRadio,"text-option-right":o.gameInfo.away_team_abbreviation,"font-color":"white","value-default":W.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,zve)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtersContainer)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter4),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:s[6]||(s[6]=(...y)=>b.openFilter&&b.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:x1e},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros2)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:w1e},null,2),t.createVNode(_,{"item-select":W.filterObject,"is-open":W.openfiltervalue,onChange:b.changeFiltersModal,"margin-modal":"-75px"},null,8,["item-select","is-open","onChange"])],2),b.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{onClick:b.clickOnValueFilter,key:W.keyUpdate,"default-item-by-prop":W.defaultDropItem,class:t.normalizeClass(e.$style.filterMatchday),id:"menu-matchday",items:b.matchdaysFinal,onInput:b.changeDropdown,height:"25px",width:"100px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(y=>[t.createElementVNode("div",Ove,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:s[7]||(s[7]=(...y)=>b.clickShowDetails&&b.clickShowDetails(...y))},[W.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchDetailContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer6),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[b.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(n,{key:W.updateCarouselGames,"default-item-by-index":W.selectedIndexOption,items:b.gameRecientesFilter,onInput:b.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.home_team+".png"},null,10,Fve)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==W.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==W.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.away_team+".png"},null,10,Nve),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["default-item-by-index","items","onInput"])):(t.openBlock(),t.createElementBlock("div",Dve,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),Rve,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:s[8]||(s[8]=(...y)=>b.deleteFilters&&b.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),W.showDetails?(t.openBlock(),t.createBlock(x,{key:2,style:{"margin-top":"30px"},localDetails:W.localDetails,foreignDetails:W.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2)],2)],2)],2)],2)],2)}const jve={$style:pve},$ve=ep(fve,[["render",Vve],["__cssModules",jve]]),Uve="_selectoritem_16hc8_179",Gve="_selectoritem2_16hc8_199",Hve="_gscheaderlineup_16hc8_219",Wve="_anNoEstn_16hc8_233",qve="_groupsLeague_16hc8_239",Yve="_jugadores_16hc8_249",Zve="_switchOption_16hc8_259",Xve="_jugadores1_16hc8_279",Jve="_switchOption1_16hc8_289",Kve="_switchStatesBig_16hc8_305",Qve="_groupsLeagueParent_16hc8_323",e2e="_imgHomeTeamIcon_16hc8_341",t2e="_imgHomeTeamWrapper_16hc8_353",n2e="_teamContainer_16hc8_377",a2e="_name_16hc8_401",r2e="_homeTeamContainer_16hc8_413",i2e="_div_16hc8_433",o2e="_titleSession_16hc8_441",s2e="_scoreContainer_16hc8_461",l2e="_scoreContainerWrapper_16hc8_481",c2e="_teamContainer1_16hc8_505",u2e="_awayTeamContainer_16hc8_529",d2e="_matchContainer_16hc8_549",h2e="_sliderMatchesChild_16hc8_567",p2e="_manchesterUnited_16hc8_579",f2e="_sliderMatchesItem_16hc8_591",m2e="_sliderMatches_16hc8_567",g2e="_sortIcon_16hc8_627",y2e="_filtros_16hc8_641",v2e="_sortParent_16hc8_657",_2e="_shapeIcon_16hc8_671",b2e="_btnFilter_16hc8_681",x2e="_btnFilter1_16hc8_709",w2e="_btnFilterParent_16hc8_737",k2e="_backArrowIcon_16hc8_753",S2e="_teamContainer2_16hc8_765",T2e="_homeTeam_16hc8_413",C2e="_div4_16hc8_793",E2e="_finalScore_16hc8_803",A2e="_manchesterUnited1_16hc8_829",M2e="_scoreContainer1_16hc8_843",I2e="_match_16hc8_549",P2e="_manchesterUnited2_16hc8_879",B2e="_btnDetails_16hc8_889",L2e="_matchContainer1_16hc8_909",z2e="_goalChild_16hc8_925",O2e="_goal_16hc8_925",F2e="_manchesterUnited3_16hc8_951",N2e="_minuteEvent_16hc8_965",D2e="_yellowCard_16hc8_979",R2e="_awayTeamEvents_16hc8_993",V2e="_rectangle_16hc8_1007",j2e="_homeTeamEvents_16hc8_1021",$2e="_totalEvents_16hc8_1037",U2e="_headerSeccionAlineaciones1_16hc8_1053",G2e="_switchOption3_16hc8_1075",H2e="_switchOption4_16hc8_1099",W2e="_switchStatesBig1_16hc8_1119",q2e="_manchesterUnited13_16hc8_1133",Y2e="_homeTeamContainer1_16hc8_1143",Z2e="_scoreContainer2_16hc8_1157",X2e="_matchContainer2_16hc8_1185",J2e="_manchesterUnited14_16hc8_1205",K2e="_sliderMatchesInner_16hc8_1219",Q2e="_rectangleIcon_16hc8_1239",e_e="_sliderMatches1_16hc8_1259",t_e="_containerData_16hc8_1275",n_e="_headerSeccionAlineaciones2_16hc8_1303",a_e="_headerSeccionAlineaciones_16hc8_1053",r_e="_headerSeccionAlineaciones21200_16hc8_1351",i_e="_headerSeccionAlineaciones1540_16hc8_1357",o_e="_headerSeccionAlineaciones2540_16hc8_1365",s_e={selectoritem:Uve,selectoritem2:Gve,gscheaderlineup:Hve,anNoEstn:Wve,groupsLeague:qve,jugadores:Yve,switchOption:Zve,jugadores1:Xve,switchOption1:Jve,switchStatesBig:Kve,groupsLeagueParent:Qve,imgHomeTeamIcon:e2e,imgHomeTeamWrapper:t2e,teamContainer:n2e,name:a2e,homeTeamContainer:r2e,div:i2e,titleSession:o2e,scoreContainer:s2e,scoreContainerWrapper:l2e,teamContainer1:c2e,awayTeamContainer:u2e,matchContainer:d2e,sliderMatchesChild:h2e,manchesterUnited:p2e,sliderMatchesItem:f2e,sliderMatches:m2e,sortIcon:g2e,filtros:y2e,sortParent:v2e,shapeIcon:_2e,btnFilter:b2e,btnFilter1:x2e,btnFilterParent:w2e,backArrowIcon:k2e,teamContainer2:S2e,homeTeam:T2e,div4:C2e,finalScore:E2e,manchesterUnited1:A2e,scoreContainer1:M2e,match:I2e,manchesterUnited2:P2e,btnDetails:B2e,matchContainer1:L2e,goalChild:z2e,goal:O2e,manchesterUnited3:F2e,minuteEvent:N2e,yellowCard:D2e,awayTeamEvents:R2e,rectangle:V2e,homeTeamEvents:j2e,totalEvents:$2e,headerSeccionAlineaciones1:U2e,switchOption3:G2e,switchOption4:H2e,switchStatesBig1:W2e,manchesterUnited13:q2e,homeTeamContainer1:Y2e,scoreContainer2:Z2e,matchContainer2:X2e,manchesterUnited14:J2e,sliderMatchesInner:K2e,rectangleIcon:Q2e,sliderMatches1:e_e,containerData:t_e,headerSeccionAlineaciones2:n_e,headerSeccionAlineaciones:a_e,headerSeccionAlineaciones21200:r_e,headerSeccionAlineaciones1540:i_e,headerSeccionAlineaciones2540:o_e},l_e={components:{GSCCarousel:ix,GscSwitchComponent:n2},props:{optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},isLive:{type:Boolean,default:!1},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",{season_id:e.season_id,game_id:e.id})}catch(s){throw new Error(s)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=540?this.$style.headerSeccionAlineaciones2540:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{remplazarMxJor(e){return e.replace("M","JOR ")},changeCarouselItem(e){this.$emit("input",{season_id:e.selectedItem.season,game_id:e.selectedItem.game,ht_abrev:e.selectedItem.home_team_abbreviation,at_abrev:e.selectedItem.away_team_abbreviation}),this.selectedOption=e.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},c_e=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),u_e=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),d_e=["src"],h_e=["src"],p_e=["src"],f_e=["src"],m_e=["src"],g_e=["src"];function y_e(e,s,o,O,W,b){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.gscheaderlineup)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(b.headerSeccionAlineaciones1Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[c_e,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),u_e],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},null,2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,d_e)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[o.isLive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.scoreContainer)},[Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.titleSession)},t.toDisplayString(o.gameInfo.season_name!==void 0?o.gameInfo.season_name+"  |  "+b.remplazarMxJor(o.gameInfo.matchday_abbreviation)+"  |  "+o.gameInfo.home_team_abbreviation+" - "+o.gameInfo.away_team_abbreviation:""),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,h_e)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches)},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:x8},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:r2},null,2)],2),t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Jornada",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"2",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:r2},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:KI},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,p_e)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[o.isLive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.finalScore)},[Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[o.teamActive=="home"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,f_e),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:QI},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(b.headerSeccionAlineaciones2Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig1),id:"switch-lineup"},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited13)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,m_e)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),o.isLive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.scoreContainer2)},[Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,g_e)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches1)},null,2)],2)],2)],2)],2)}const v_e={$style:s_e},__e=ep(l_e,[["render",y_e],["__cssModules",v_e]]),b_e="_anNoEstn_j98j7_139",x_e="_groupsLeague_j98j7_145",w_e="_historicas_j98j7_153",k_e="_switchOption_j98j7_163",S_e="_switchOption1_j98j7_183",T_e="_probables_j98j7_203",C_e="_switchOption2_j98j7_213",E_e="_switchStatesBig_j98j7_237",A_e="_groupsLeagueParent_j98j7_255",M_e="_imgHomeTeamIcon_j98j7_273",I_e="_imgHomeTeamWrapper_j98j7_285",P_e="_teamContainer_j98j7_309",B_e="_name_j98j7_333",L_e="_jor_j98j7_345",z_e="_jorParent_j98j7_357",O_e="_shapeIcon_j98j7_373",F_e="_frameParent_j98j7_383",N_e="_manchesterUnited_j98j7_413",D_e="_necaxaIcon_j98j7_435",R_e="_manchesterUnited1_j98j7_447",V_e="_team_j98j7_309",j_e="_homeTeamContainer_j98j7_475",$_e="_div1_j98j7_495",U_e="_scoreContainer_j98j7_503",G_e="_scoreContainerWrapper_j98j7_525",H_e="_team1_j98j7_549",W_e="_name1_j98j7_563",q_e="_teamContainer1_j98j7_577",Y_e="_awayTeamContainer_j98j7_601",Z_e="_matchContainer_j98j7_623",X_e="_goalChild_j98j7_641",J_e="_goal_j98j7_641",K_e="_manchesterUnited4_j98j7_667",Q_e="_minuteEvent_j98j7_681",ebe="_yellowCard_j98j7_695",tbe="_awayTeamEvents_j98j7_709",nbe="_rectangle_j98j7_723",abe="_homeTeamEvents_j98j7_737",rbe="_totalEvents_j98j7_753",ibe="_headerSeccionAlineaciones1_j98j7_769",obe="_homeTeamContainer1_j98j7_789",sbe="_awayTeamContainer1_j98j7_813",lbe="_headerSeccionAlineaciones2_j98j7_837",cbe="_jugadores_j98j7_857",ube="_switchOption6_j98j7_869",dbe="_switchOption8_j98j7_889",hbe="_switchStatesBig2_j98j7_913",pbe="_manchesterUnited28_j98j7_927",fbe="_homeTeamContainer2_j98j7_935",mbe="_matchContainer2_j98j7_949",gbe="_manchesterUnited29_j98j7_971",ybe="_sliderMatchesChild_j98j7_985",vbe="_sliderMatchesItem_j98j7_1005",_be="_sliderMatches_j98j7_985",bbe="_jorParent2_j98j7_1045",xbe="_filterMatchday_j98j7_1059",wbe="_necaxaIcon4_j98j7_1081",kbe="_team4_j98j7_1093",Sbe="_filterMatchdayParent_j98j7_1113",Tbe="_filterMatchday1_j98j7_1127",Cbe="_teamParent_j98j7_1157",Ebe="_filtersContainer_j98j7_1177",Abe="_containerData_j98j7_1195",Mbe="_headerSeccionAlineaciones3_j98j7_1223",Ibe="_headerSeccionAlineaciones_j98j7_769",Pbe={anNoEstn:b_e,groupsLeague:x_e,historicas:w_e,switchOption:k_e,switchOption1:S_e,probables:T_e,switchOption2:C_e,switchStatesBig:E_e,groupsLeagueParent:A_e,imgHomeTeamIcon:M_e,imgHomeTeamWrapper:I_e,teamContainer:P_e,name:B_e,jor:L_e,jorParent:z_e,shapeIcon:O_e,frameParent:F_e,manchesterUnited:N_e,necaxaIcon:D_e,manchesterUnited1:R_e,team:V_e,homeTeamContainer:j_e,div1:$_e,scoreContainer:U_e,scoreContainerWrapper:G_e,team1:H_e,name1:W_e,teamContainer1:q_e,awayTeamContainer:Y_e,matchContainer:Z_e,goalChild:X_e,goal:J_e,manchesterUnited4:K_e,minuteEvent:Q_e,yellowCard:ebe,awayTeamEvents:tbe,rectangle:nbe,homeTeamEvents:abe,totalEvents:rbe,headerSeccionAlineaciones1:ibe,homeTeamContainer1:obe,awayTeamContainer1:sbe,headerSeccionAlineaciones2:lbe,jugadores:cbe,switchOption6:ube,switchOption8:dbe,switchStatesBig2:hbe,manchesterUnited28:pbe,homeTeamContainer2:fbe,matchContainer2:mbe,manchesterUnited29:gbe,sliderMatchesChild:ybe,sliderMatchesItem:vbe,sliderMatches:_be,jorParent2:bbe,filterMatchday:xbe,necaxaIcon4:wbe,team4:kbe,filterMatchdayParent:Sbe,filterMatchday1:Tbe,teamParent:Cbe,filtersContainer:Ebe,containerData:Abe,headerSeccionAlineaciones3:Mbe,headerSeccionAlineaciones:Ibe},Bbe={components:{GSCDropdown:b8,GscSwitchComponent:n2},props:{optionSelected:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},data(){return{rivalHomeImg:"",rivalVisitImg:"",rivalHomeAbrev:"",rivalVisitAbrev:"",auxVal:0}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",e)}catch(s){throw new Error(s)}}}},methods:{clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)},changeDropdownVisit(e){const s=this.gameRecientes[this.gameInfo.away_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalVisitAbrev=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][s].home_team_abbreviation?this.gameRecientes[this.gameInfo.away_team_abbreviation][s].away_team_abbreviation:this.gameRecientes[this.gameInfo.away_team_abbreviation][s].home_team_abbreviation,this.rivalVisitImg=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][s].home_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][s].away_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][s].home_team+".png",this.$emit("changeaway",this.gameRecientes[this.gameInfo.away_team_abbreviation][s])},changeDropdownLocal(e){const s=this.gameRecientes[this.gameInfo.home_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalHomeAbrev=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][s].away_team_abbreviation?this.gameRecientes[this.gameInfo.home_team_abbreviation][s].home_team_abbreviation:this.gameRecientes[this.gameInfo.home_team_abbreviation][s].away_team_abbreviation,this.rivalHomeImg=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][s].away_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][s].home_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][s].away_team+".png",this.$emit("changehome",this.gameRecientes[this.gameInfo.home_team_abbreviation][s])}}},Lbe=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),zbe=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),Obe=["src"],Fbe={class:"selector-tournaments"},Nbe=["src"],Dbe=["src"],Rbe={class:"selector-tournaments"},Vbe=["src"],jbe=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),$be=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),Ube=["src"],Gbe={class:"selector-tournaments"},Hbe=["src"],Wbe=["src"],qbe={class:"selector-tournaments"},Ybe=["src"],Zbe=["src"],Xbe=["src"],Jbe={class:"selector-tournaments"},Kbe=["src"],Qbe=["src"],exe={class:"selector-tournaments"};function txe(e,s,o,O,W,b){const g=t.resolveComponent("GscSwitchComponent"),a=t.resolveComponent("GSCDropdown");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones1),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[Lbe,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),zbe],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(g,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:b.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,Obe)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3),t.createVNode(a,{class:t.normalizeClass(e.$style.frameParent),items:o.matchdaysDefault[o.gameInfo.home_team_abbreviation],onInput:b.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",Fbe,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["class","items","onInput"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:W.rivalHomeImg},null,10,Nbe),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(W.rivalHomeAbrev),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"2",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"-",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"2",2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(W.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:W.rivalVisitImg},null,10,Dbe),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2)],2),t.createVNode(a,{class:t.normalizeClass(e.$style.frameParent),items:o.matchdaysDefault[o.gameInfo.away_team_abbreviation],onInput:b.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",Rbe,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["class","items","onInput"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name1)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,Vbe)],2)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones2),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[jbe,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),$be],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(g,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:b.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,Ube)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameParent)},[t.createVNode(a,{items:o.matchdaysDefault[o.gameInfo.home_team_abbreviation],onInput:b.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",Gbe,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["items","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:W.rivalHomeImg},null,10,Hbe),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(W.rivalHomeAbrev),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(W.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:W.rivalVisitImg},null,10,Wbe),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameParent)},[t.createVNode(a,{items:o.matchdaysDefault[o.gameInfo.away_team_abbreviation],onInput:b.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",qbe,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["items","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,Ybe)],2)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones3),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig2),id:"switch-lineup"},[t.createVNode(g,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:b.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited28)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,Zbe)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,Xbe)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtersContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchdayParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday1)},[t.createVNode(a,{items:o.matchdaysDefault[o.gameInfo.home_team_abbreviation],onInput:b.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",Jbe,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["items","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team4)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon4),alt:"",src:W.rivalHomeImg},null,10,Kbe)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team1)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon4),alt:"",src:W.rivalVisitImg},null,10,Qbe),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},"vs",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday1)},[t.createVNode(a,{items:o.matchdaysDefault[o.gameInfo.away_team_abbreviation],onInput:b.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",exe,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["items","onInput"])],2)],2)],2)],2)],2)],2)}const nxe={$style:Pbe},axe=ep(Bbe,[["render",txe],["__cssModules",nxe]]);let eP=null;const rxe={name:"LineupPlayers",props:{isFemale:{type:Boolean,default:!1},game:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Prematch"},isLive:{type:Boolean,default:!1},socket:{type:Object,default:()=>{}}},components:{CardPlayer:E0e,HeaderPlayerHistorico:a1e,HeaderPlayerRecientes:$ve,HeaderPlayerProbables:axe,HeaderPlayerPostmatch:__e},data(){return{lastGetLineUpGameId:"",lastGetMXMUrl:"",selectOptMenuheader:"Historicos",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",urlGames:"https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/",url:"https://tj4cepyjc4.execute-api.us-west-2.amazonaws.com/prod/lineups/",urlMXM:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",retries:3,teamActive:"home",subsActive:!1,playersHome:[],gamesContainerWidth:0,keyUpdateRecientes:0,playersAway:[],defaultDropItem:{},subsTitle:!1,uniformHome:"",valueUpdateRecientes:0,uniformHomeG:"",uniformAway:"",uniformAwayG:"",dataPlayersHome:[],dataPlayersAway:[],homeTeamLogo:"",awayTeamLogo:"",homeTeamName:"",awayTeamName:"",homeTeamAbrev:"",awayTeamAbrev:"",home_team_id:0,updateComponentAway:0,away_team_id:0,substitutionModal:{min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},homeTeam:{},visitingTeam:{},gameForAnalysis:{},movil:!1,positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}],auxProbablesIDGameHome:0,auxProbablesIDGameAway:0,auxHistoricGameID:0,gameInfoheader:{},gamesHistoric:[],gamesRecientes:[],matchdaysPerTeam:[],lastGetGame:0,lastSection:""}},computed:{goalcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"goal_card_div440":e<=650?"goal_card_div650":e<=820?"goal_card_div820":"goal_card_div"},yellowredcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"yellowred_card_div440":e<=650?"yellowred_card_div650":e<=820?"yellowred_card_div820":"yellowred_card_div"},redcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"red_card_div440":e<=650?"red_card_div650":e<=820?"red_card_div820":"red_card_div"},yellowcarddivclass(){const e=this.gamesContainerWidth;return e<=440?"yellow_card_div440":e<=650?"yellow_card_div650":e<=820?"yellow_card_div820":"yellow_card_div"},infochangeplayeritemClass(){const e=this.gamesContainerWidth;return e<=440?"info-chamge-player-item440":e<=650?"info-chamge-player-item650":e<=740?"info-chamge-player-item740":"info-chamge-player-item"},infonameplayeritemClass(){const e=this.gamesContainerWidth;return e<=440?"info-name-player-item440":e<=650?"info-name-player-item650":e<=740?"info-name-player-item740":"info-name-player-item"},infoplayeritemClass(){const e=this.gamesContainerWidth;return e<=400?"info-player-item400":e<=440?"info-player-item440":e<=650?"info-player-item650":e<=740?"info-player-item740":"info-player-item"},numPlayerClass(){const e=this.gamesContainerWidth;return e<=440?"num-Player440":e<=540?"num-Player540":e<=740?"num-Player740":"num-Player"},jerseyitemplayerClass(){const e=this.gamesContainerWidth;return e<=440?"jerseyitemplayer440":e<=540?"jerseyitemplayer540":e<=650?"jerseyitemplayer650":e<=740?"jerseyitemplayer740":"jerseyitemplayer"},itemplayerfieldClass(){return this.gamesContainerWidth<=740?"itemplayer-field740":"itemplayer-field"},canchacontainerClass(){const e=this.gamesContainerWidth;return e<=300?"cancha-container300":e<=325?"cancha-container325":e<=350?"cancha-container350":e<=440?"cancha-container440":e<=540?"cancha-container540":e<=740?"cancha-container740":e<=820?"cancha-container820":e<=840?"cancha-container840":e<=940?"cancha-container940":e<=1140?"cancha-container1140":"cancha-container"},fieldcontainerClass(){const e=this.gamesContainerWidth;return e<=300?"field-container300":e<=380?"field-container380":e<=440?"field-container440":e<=540?"field-container540":e<=740?"field-container740":"field-container"},notificationnolineupsClass(){const e=this.gamesContainerWidth;return e<=300?"notification-no-lineups300":e<=370?"notification-no-lineups370":e<=400?"notification-no-lineups400":e<=460?"notification-no-lineups460":e<=500?"notification-no-lineups500":e<=530?"notification-no-lineups530":e<=740?"notification-no-lineups740":e<=768?"notification-no-lineups768":e<=830?"notification-no-lineups830":e<=900?"notification-no-lineups900":"notification-no-lineups"},containernolineups(){const e=this.gamesContainerWidth;return e<=300?"container-no-lineups300":e<=350?"container-no-lineups350":e<=768?"container-no-lineups768":"container-no-lineups"},menuTeamsClass(){return this.gamesContainerWidth<=740?"menu-teams-mobile740":"menu-teams-mobile"},positionClass(){return this.gamesContainerWidth<=500?"gsc-position-player500":"gsc-position-player"},positionClass2(){return this.gamesContainerWidth<=500?"gsc-position-player2500":"gsc-position-player2"},containerlineupsClass(){const e=this.gamesContainerWidth;return e<=740?"gsc-lineups-container680":e<=900?"gsc-lineups-container900":"gsc-lineups-container"},containerClassHome(){const e=this.gamesContainerWidth;return e<=740?"gsclineupscontainerhome680":e<=768?"gsclineupscontainerhome768":e<=900?"gsclineupscontainerhome900":"gsclineupscontainerhome"},containerClassAway(){const e=this.gamesContainerWidth;return e<=740?"gsclineupscontaineraway680":e<=768?"gsclineupscontaineraway768":e<=900?"gsclineupscontaineraway900":"gsclineupscontaineraway"},sizeBrowser(){return this.gamesContainerWidth},numPlayer(){return Number(this.playersAway.length)+Number(this.playersHome.length)},benchFillHome(){return this.playersHome.length<this.playersAway.length?this.playersAway.length-this.playersHome.length:0},benchFillAway(){return this.playersAway.length<this.playersHome.length?this.playersHome.length-this.playersAway.length:0}},async mounted(){if(setTimeout(()=>{this.setUpResizeObserver()},100),this.game||this.$route.params.gameId)try{this.cleaneData()}catch(e){throw new Error(e)}},watch:{selectOptMenuheader:{immediate:!0,async handler(e,s){e!=s&&this.selectedOption!=="Postmatch"&&(e==="Probables"&&(this.lastSection=e),e==="Historicos"&&this.gamesHistoric[0]&&await this.getLineUp(this.gamesHistoric[0].game))}},"socket.connected":{immediate:!0,handler(e){e&&this.getDataSocket()}},game:{immediate:!0,handler:async function(e,s){if(e&&(!s||e.game_id!==s.game_id))try{if(e){const o={headers:{Authorization:this.token}};this.cleaneData(),await this.getHeaderInfo(e);const O=[Qh.get(this.urlGames+e.season_id+"/games/"+e.game_id,o)];let W=null;const b=this.selectedOption==="Postmatch"?e.game_id:this.selectOptMenuheader==="Historicos"?this.gamesHistoric[0].game:0;b&&b!==this.lastGetLineUpGameId&&(W=Qh.get(this.url+b,o),O.push(W));const[g,a]=await Promise.all(O);await this.gameDataInfo(e,g),await this.getLineUp(b,a)}}catch(o){throw new Error(o)}}}},sockets:{new_bench([e,s]){if(s[this.home_team_id]){this.playersHome=this.playersHome.filter(function(i){return!i.isbench});for(let i=0;i<s[this.home_team_id].length;i++)if(!s[this.home_team_id][i].isTitular){this.subsTitle=!0;var o=s[this.home_team_id][i].playerName.split(","),O=o[0].split(" "),W=o[1].trim().split(" "),b="";O.length==2||O.length==1?O[0].length<4?b=O[0]+" "+O[1]:b=O[0]:O.length==3?b=O[0]+" "+O[1]:O.length==4&&(b=O[1]+" "+O[2]+" "+O[3]);var g=W[W.length-1]!=""?W[W.length-1].charAt(0):W[W.length-2]?W[W.length-2].charAt(0):"";b=b.replace(",","");var a=g+". "+b,_=this.dataPlayersHome.findIndex(d=>d.player_id==s[this.home_team_id][i].playerID);this.playersHome.push({played:!1,name:s[this.home_team_id][i].playerName,position:_!=-1?this.isFemale?this.positions[this.dataPlayersHome[_].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersHome[_].position_id-1].name:"",position_id:this.dataPlayersHome[_].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s[this.home_team_id][i].playerID+".png",nationality:_!=-1&&this.dataPlayersHome[_].nationality?this.dataPlayersHome[_].nationality.substring(0,3):"",imgNationality:_!=-1?this.dataPlayersHome[_].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:a,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+this.home_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s[this.home_team_id][i].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:s[this.home_team_id][i].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersHome.sort((i,d)=>i.position_id>d.position_id?1:d.position_id>i.position_id?-1:0)}if(s[this.away_team_id]){this.playersAway=this.playersAway.filter(function(i){return!i.isbench});for(let i=0;i<s[this.away_team_id].length;i++)if(!s[this.away_team_id][i].isTitular){this.subsTitle=!0;var h=s[this.away_team_id][i].playerName.split(","),n=h[0].split(" "),x=o[1].trim().split(" "),y="";n.length==2||n.length==1?n[0].length<4?y=n[0]+" "+n[1]:y=n[0]:n.length==3?y=n[0]+" "+n[1]:n.length==4&&(y=n[1]+" "+n[2]+" "+n[3]);var v=x[x.length-1]!=""?x[x.length-1].charAt(0):x[x.length-2]?x[x.length-2].charAt(0):"";y=y.replace(",","");var u=v+". "+y,r=this.dataPlayersAway.findIndex(d=>d.player_id==s[this.away_team_id][i].playerID);this.playersAway.push({played:!1,name:s[this.away_team_id][i].playerName,position:r!=-1?this.isFemale?this.positions[this.dataPlayersAway[r].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersAway[r].position_id-1].name:"",position_id:this.dataPlayersAway[r].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s[this.away_team_id][i].playerID+".png",nationality:r!=-1&&this.dataPlayersAway[r].nationality?this.dataPlayersAway[r].nationality.substring(0,3):"",imgNationality:r!=-1?this.dataPlayersAway[r].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+this.away_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s[this.away_team_id][i].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:s[this.away_team_id][i].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersAway.sort((i,d)=>i.position_id>d.position_id?1:d.position_id>i.position_id?-1:0)}},new_lineup([e,s]){if(s.team_id==s.home_team.team_id){if(this.playersHome.length==0){this.dataPlayersHome=s.home_team.players;for(let m=0;m<s.data.length;m++){this.home_team_id=s.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.team_id+"_g.svg","home",0);var o=s.data[m].player_name.split(","),O=o[0].split(" "),W=o[1].trim().split(" "),b="";O.length==2||O.length==1?O[0].length<4?b=O[0]+" "+O[1]:b=O[0]:O.length==3?b=O[0]+" "+O[1]:O.length==4&&(b=O[1]+" "+O[2]+" "+O[3]);var g=W[W.length-1]!=""?W[W.length-1].charAt(0):W[W.length-2]?W[W.length-2].charAt(0):"";b=b.replace(",","");var a=g+". "+b,_=s.data[m].x,h=_*50/100,n=s.home_team.players.findIndex(w=>w.player_id==s.data[m].player_id);this.playersHome.push({played:!0,name:s.data[m].player_name,position:n!=-1?this.isFemale?this.positions[s.home_team.players[n].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[s.home_team.players[n].position_id-1].name:"",position_id:s.home_team.players[n].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s.data[m].player_id+".png",nationality:n!=-1&&s.home_team.players[n].nationality?s.home_team.players[n].nationality.substring(0,3):"",imgNationality:n!=-1?s.home_team.players[n].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:a,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s.data[m].jersey_number,positionX:s.data[m].y-13,positionY:h*.9,positionXOrigin:s.data[m].y-17,positionYOrigin:s.data[m].x-2,playerId:s.data[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:s.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+s.team_id+".png"}this.playersHome.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0)}}else if(this.playersAway.length==0){this.dataPlayersAway=s.away_team.players;for(let m=0;m<s.data.length;m++){this.away_team_id=s.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.team_id+"_g.svg","away",0);var x=s.data[m].player_name.split(","),y=x[0].split(" "),v=x[1].trim().split(" "),u="";y.length==2||y.length==1?y[0].length<4?u=y[0]+" "+y[1]:u=y[0]:y.length==3?u=y[0]+" "+y[1]:y.length==4&&(u=y[1]+" "+y[2]+" "+y[3]);var r=v[v.length-1]!=""?v[v.length-1].charAt(0):v[v.length-2]?v[v.length-2].charAt(0):"";u=u.replace(",","");var i=r+". "+u,d=s.data[m].x,l=100-(100-d)*50/100;l=l*.9;var p=s.away_team.players.findIndex(w=>w.player_id==s.data[m].player_id);this.playersAway.push({played:!0,name:s.data[m].player_name,position:p!=-1?this.isFemale?this.positions[s.away_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[s.away_team.players[p].position_id-1].name:"",position_id:s.away_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s.data[m].player_id+".png",nationality:p!=-1&&s.away_team.players[p].nationality?s.away_team.players[p].nationality.substring(0,3):"",imgNationality:p!=-1?s.away_team.players[p].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:i,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s.data[m].jersey_number,positionX:s.data[m].y-13,positionY:l+2,positionXOrigin:s.data[m].y-17,positionYOrigin:s.data[m].x-7,playerId:s.data[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:s.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+s.team_id+".png"}this.playersAway.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0)}},update_mxm([e,s]){var o=-1,O=-1;if(this.playersHome.length>0){var W=this.playersHome.findIndex(C=>C.idredcards==s.play_id),b=this.playersHome.findIndex(C=>C.idyellowcards==s.play_id),g=this.playersHome.findIndex(C=>C.idSubstitution==s.play_id);for(let C=0;C<this.playersHome.length;C++){var a=this.playersHome[C].idsGoals.findIndex(P=>P==s.play_id);a!=-1&&(o=a,O=C)}W!=-1&&this.resetPlayUpdate("RedCard","Home",W,O),b!=-1&&this.resetPlayUpdate("YellowCard","Home",b,O),g!=-1&&this.resetPlayUpdate("Substitution","Home",g,O),o!=-1&&this.resetPlayUpdate("Goals","Home",o,O)}if(this.playersAway.length>0){var _=this.playersAway.findIndex(C=>C.idredcards==s.play_id),h=this.playersAway.findIndex(C=>C.idyellowcards==s.play_id),n=this.playersAway.findIndex(C=>C.idSubstitution==s.play_id);for(let C=0;C<this.playersAway.length;C++){var x=this.playersAway[C].idsGoals.findIndex(P=>P==s.play_id);x!=-1&&(o=x,O=C)}_!=-1&&this.resetPlayUpdate("RedCard","Away",_,O),h!=-1&&this.resetPlayUpdate("YellowCard","Away",h,O),n!=-1&&this.resetPlayUpdate("Substitution","Away",n,O),o!=-1&&this.resetPlayUpdate("Goals","Away",o,O)}if(s.event_type_id==3){if(s.team_id==this.home_team_id){if(this.playersHome.length>0){var y=s.player_id.split("@"),v=this.playersHome.findIndex(C=>C.playerId==y[0]),u=this.playersHome.findIndex(C=>C.playerId==y[1]);v!=-1&&(this.playersHome[v].idSubstitution=s.play_id,this.playersHome[v].substitutionOut=!0,this.playersHome[v].substitutionMin=s.minute,this.playersHome[v].substitutionDataID=s.team_id+"@"+s.player_id),u!=-1&&(this.playersHome[u].idSubstitution=s.play_id,this.playersHome[u].substitutionIn=!0,this.playersHome[u].substitutionMin=s.minute,this.playersHome[u].substitutionDataID=s.team_id+"@"+s.player_id)}}else if(this.playersAway.length>0){var r=s.player_id.split("@"),i=this.playersAway.findIndex(C=>C.playerId==r[0]),d=this.playersAway.findIndex(C=>C.playerId==r[1]);v!=-1&&(this.playersAway[i].idSubstitution=s.play_id,this.playersAway[i].substitutionOut=!0,this.playersAway[i].substitutionMin=s.minute,this.playersAway[i].substitutionDataID=s.team_id+"@"+s.player_id),d!=-1&&(this.playersAway[d].idSubstitution=s.play_id,this.playersAway[d].substitutionIn=!0,this.playersAway[d].substitutionMin=s.minute,this.playersAway[d].substitutionDataID=s.team_id+"@"+s.player_id)}}if(s.event_type_id==1){if(s.team_id==this.home_team_id){if(this.playersHome.length>0){var l=this.playersHome.findIndex(C=>C.playerId==s.player_id);l!=-1&&(this.playersHome[l].goals+=1,this.playersHome[l].goalsMin.push(s.minute),this.playersHome[l].idsGoals.push(s.play_id))}}else if(this.playersAway.length>0){var p=this.playersAway.findIndex(C=>C.playerId==s.player_id);p!=-1&&(this.playersAway[p].goals+=1,this.playersAway[p].goalsMin.push(s.minute),this.playersAway[p].idsGoals.push(s.play_id))}}if(s.event_type_id==2){if(s.category_id==8){if(s.team_id==this.home_team_id){if(this.playersHome.length>0){var m=this.playersHome.findIndex(C=>C.playerId==s.player_id);m!=-1&&(this.playersHome[m].yellowcards+=1,this.playersHome[m].yellowcardsMin=s.minute,this.playersHome[m].idyellowcards=s.play_id)}}else if(this.playersAway.length>0){var w=this.playersAway.findIndex(C=>C.playerId==s.player_id);w!=-1&&(this.playersAway[w].yellowcards+=1,this.playersAway[w].yellowcardsMin=s.minute,this.playersAway[w].idyellowcards=s.play_id)}}if(s.category_id==9){if(s.team_id==this.home_team_id){if(this.playersHome.length>0){var T=this.playersHome.findIndex(C=>C.playerId==s.player_id);T!=-1&&(this.playersHome[T].redcards+=1,this.playersHome[T].redcardsMin=s.minute,this.playersHome[T].idredcards=s.play_id)}}else if(this.playersAway.length>0){var A=this.playersAway.findIndex(C=>C.playerId==s.player_id);A!=-1&&(this.playersAway[A].redcards+=1,this.playersAway[A].redcardsMin=s.minute,this.playersAway[A].idredcards=s.play_id)}}}},delete_mxm([e,s]){if(this.playersHome.length>0)for(let o=0;o<this.playersHome.length;o++)this.playersHome[o].idSubstitution==s.play_id&&(this.playersHome[o].substitutionOut=!1,this.playersHome[o].substitutionIn=!1,this.playersHome[o].substitutionMin="",this.playersHome[o].substitutionDataID="",this.playersHome[o].idSubstitution=0);if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersAway[o].idSubstitution==s.play_id&&(this.playersAway[o].substitutionOut=!1,this.playersAway[o].substitutionIn=!1,this.playersAway[o].substitutionMin="",this.playersAway[o].substitutionDataID="",this.playersAway[o].idSubstitution=0);if(this.playersHome.length>0)for(let o=0;o<this.playersHome.length;o++){const O=this.playersHome[o].idsGoals.findIndex(W=>W==s.play_id);O!=-1&&(this.playersHome[o].goals=this.playersHome[o].goals-1,this.playersHome[o].goalsMin.splice(O,1),this.playersHome[o].idsGoals.splice(O,1))}if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++){const O=this.playersAway[o].idsGoals.findIndex(W=>W==s.play_id);O!=-1&&(this.playersAway[o].goals=this.playersAway[o].goals-1,this.playersAway[o].goalsMin.splice(O,1),this.playersAway[o].idsGoals.splice(O,1))}if(this.playersHome.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersHome[o].idyellowcards==s.play_id&&(this.playersHome[o].yellowcards=0,this.playersHome[o].yellowcardsMin=0,this.playersHome[o].idyellowcards=0);if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersAway[o].idyellowcards==s.play_id&&(this.playersAway[o].yellowcards=0,this.playersAway[o].yellowcardsMin=0,this.playersAway[o].idyellowcards=0);if(this.playersHome.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersHome[o].idredcards==s.play_id&&(this.playersHome[o].redcards=0,this.playersHome[o].redcardsMin=0,this.playersHome[o].idredcards=0);if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersAway[o].idredcards==s.play_id&&(this.playersAway[o].redcards=0,this.playersAway[o].redcardsMin=0,this.playersAway[o].idredcards=0)},new_mxm([e,s]){if(s.event_type_id==3){if(s.team_id==this.home_team_id){if(this.playersHome.length>0){var o=s.player_id.split("@"),O=this.playersHome.findIndex(u=>u.playerId==o[0]),W=this.playersHome.findIndex(u=>u.playerId==o[1]);O!=-1&&(this.playersHome[O].idSubstitution=s.play_id,this.playersHome[O].substitutionOut=!0,this.playersHome[O].substitutionMin=s.minute,this.playersHome[O].substitutionDataID=s.team_id+"@"+s.player_id),W!=-1&&(this.playersHome[W].idSubstitution=s.play_id,this.playersHome[W].substitutionIn=!0,this.playersHome[W].substitutionMin=s.minute,this.playersHome[W].substitutionDataID=s.team_id+"@"+s.player_id)}}else if(this.playersAway.length>0){var b=s.player_id.split("@"),g=this.playersAway.findIndex(u=>u.playerId==b[0]),a=this.playersAway.findIndex(u=>u.playerId==b[1]);O!=-1&&(this.playersAway[g].idSubstitution=s.play_id,this.playersAway[g].substitutionOut=!0,this.playersAway[g].substitutionMin=s.minute,this.playersAway[g].substitutionDataID=s.team_id+"@"+s.player_id),a!=-1&&(this.playersAway[a].idSubstitution=s.play_id,this.playersAway[a].substitutionIn=!0,this.playersAway[a].substitutionMin=s.minute,this.playersAway[a].substitutionDataID=s.team_id+"@"+s.player_id)}}if(s.event_type_id==1){if(s.team_id==this.home_team_id){if(this.playersHome.length>0){var _=this.playersHome.findIndex(u=>u.playerId==s.player_id);_!=-1&&(this.playersHome[_].goals+=1,this.playersHome[_].goalsMin.push(s.minute),this.playersHome[_].idsGoals.push(s.play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(u=>u.playerId==s.player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(s.minute),this.playersAway[h].idsGoals.push(s.play_id))}}if(s.event_type_id==2){if(s.category_id==8){if(s.team_id==this.home_team_id){if(this.playersHome.length>0){var n=this.playersHome.findIndex(u=>u.playerId==s.player_id);n!=-1&&(this.playersHome[n].yellowcards+=1,this.playersHome[n].yellowcardsMin=s.minute,this.playersHome[n].idyellowcards=s.play_id)}}else if(this.playersAway.length>0){var x=this.playersAway.findIndex(u=>u.playerId==s.player_id);x!=-1&&(this.playersAway[x].yellowcards+=1,this.playersAway[x].yellowcardsMin=s.minute,this.playersAway[x].idyellowcards=s.play_id)}}if(s.category_id==9){if(s.team_id==this.home_team_id){if(this.playersHome.length>0){var y=this.playersHome.findIndex(u=>u.playerId==s.player_id);y!=-1&&(this.playersHome[y].redcards+=1,this.playersHome[y].redcardsMin=s.minute,this.playersHome[y].idredcards=s.play_id)}}else if(this.playersAway.length>0){var v=this.playersAway.findIndex(u=>u.playerId==s.player_id);v!=-1&&(this.playersAway[v].redcards+=1,this.playersAway[v].redcardsMin=s.minute,this.playersAway[v].idredcards=s.play_id)}}}}},methods:{calculatePerspectiveAdjustment(e){const s=Math.max(0,Math.min(100,e)),o=12*(1-Math.pow(s/100,2));return Math.round(o)},calculatePerspectiveAdjustmentAway(e){const s=Math.max(0,Math.min(100,e)),o=12*Math.pow(s/100,2);return Math.round(o)},onOpenProfile(e){this.$emit("onOpenProfile",e)},async getLineUpProbablesHome3D(e){try{const p=await Qh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!p||!p.data)throw new Error("There is not lineups for this game.");if(this.homeTeamAbrev=this.gameInfoheader.home_team_abbreviation,p.data.home_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=p.data.home_team.players,p.data.home_team.starting_lineup[0].lineup.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0);for(let m=0;m<p.data.home_team.starting_lineup[0].lineup.length;m++){this.home_team_id=p.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.data.home_team.team_id+"_g.svg","home",0);var s=p.data.home_team.starting_lineup[0].lineup[m].player_name.split(","),o=s[0].split(" "),O=s[1].trim().split(" "),W="";o.length==2||o.length==1?o[0].length<4?W=o[0]+" "+o[1]:W=o[0]:o.length==3?W=o[0]+" "+o[1]:o.length==4&&(W=o[1]+" "+o[2]+" "+o[3]);var b=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";W=W.replace(",","");var g=b+". "+W,a=p.data.home_team.starting_lineup[0].lineup[m].x,_=a*50/100,h=p.data.home_team.players.findIndex(w=>w.player_id==p.data.home_team.starting_lineup[0].lineup[m].player_id);this.playersHome.push({played:!0,name:p.data.home_team.starting_lineup[0].lineup[m].player_name,position:this.isFemale?this.positions[p.data.home_team.players[h].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[p.data.home_team.players[h].position_id-1].name,position_id:p.data.home_team.players[h].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p.data.home_team.starting_lineup[0].lineup[m].player_id+".png",nationality:p.data.home_team.players[h].nationality?p.data.home_team.players[h].nationality.substring(0,3):"",imgNationality:p.data.home_team.players[h].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:g,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+p.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p.data.home_team.starting_lineup[0].lineup[m].jersey_number,positionX:p.data.home_team.starting_lineup[0].lineup[m].y-13,positionY:_*.9,positionXOrigin:p.data.home_team.starting_lineup[0].lineup[m].y-17,positionYOrigin:p.data.home_team.starting_lineup[0].lineup[m].x-2,playerId:p.data.home_team.starting_lineup[0].lineup[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:p.data.home_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+p.data.home_team.team_id+".png"}if(this.playersHome.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0),p.data.home_team.bench){for(let m=0;m<p.data.home_team.bench.length;m++){this.subsTitle=!0;var n=p.data.home_team.bench[m].playerName.split(","),x=n[0].split(" "),y=n[1].trim().split(" "),v="";x.length==2||x.length==1?x[0].length<4?v=x[0]+" "+x[1]:v=x[0]:x.length==3?v=x[0]+" "+x[1]:x.length==4&&(v=x[1]+" "+x[2]+" "+x[3]);var u=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";v=v.replace(",","");var r=u+". "+v,i=p.data.home_team.players.findIndex(w=>w.player_id==p.data.home_team.bench[m].playerID);this.playersHome.push({played:!1,name:p.data.home_team.bench[m].playerName,position:i!=-1?this.isFemale?this.positions[p.data.home_team.players[i].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[p.data.home_team.players[i].position_id-1].name:"",position_id:p.data.home_team.players[i].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p.data.home_team.bench[m].playerID+".png",nationality:i!=-1&&p.data.home_team.players[i].nationality?p.data.home_team.players[i].nationality.substring(0,3):"",imgNationality:i!=-1?p.data.home_team.players[i].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+p.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p.data.home_team.bench[m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:p.data.home_team.bench[m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:p.data.home_team.team_id})}this.playersHome.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0)}}if(p.data.away_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=p.data.away_team.players,p.data.away_team.starting_lineup[0].lineup.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0);for(let m=0;m<p.data.away_team.starting_lineup[0].lineup.length;m++){this.home_team_id=p.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.data.away_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.data.away_team.team_id+"_g.svg","home",0);var s=p.data.away_team.starting_lineup[0].lineup[m].player_name.split(","),o=s[0].split(" "),O=s[1].trim().split(" "),W="";o.length==2||o.length==1?o[0].length<4?W=o[0]+" "+o[1]:W=o[0]:o.length==3?W=o[0]+" "+o[1]:o.length==4&&(W=o[1]+" "+o[2]+" "+o[3]);var b=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";W=W.replace(",","");var g=b+". "+W,d=p.data.away_team.starting_lineup[0].lineup[m].x;d=Math.abs(d-100);var _=d*50/100,l=p.data.away_team.starting_lineup[0].lineup[m].y;l=Math.abs(l-100);var h=p.data.away_team.players.findIndex(M=>M.player_id==p.data.away_team.starting_lineup[0].lineup[m].player_id);this.playersHome.push({played:!0,name:p.data.away_team.starting_lineup[0].lineup[m].player_name,position:this.isFemale?this.positions[p.data.away_team.players[h].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[p.data.away_team.players[h].position_id-1].name,position_id:p.data.away_team.players[h].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p.data.away_team.starting_lineup[0].lineup[m].player_id+".png",nationality:p.data.away_team.players[h].nationality?p.data.away_team.players[h].nationality.substring(0,3):"",imgNationality:p.data.away_team.players[h].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:g,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+p.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p.data.away_team.starting_lineup[0].lineup[m].jersey_number,positionX:l-20,positionY:_*.9,positionXOrigin:p.data.away_team.starting_lineup[0].lineup[m].y-17,positionYOrigin:p.data.away_team.starting_lineup[0].lineup[m].x-2,playerId:p.data.away_team.starting_lineup[0].lineup[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:p.data.away_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+p.data.away_team.team_id+".png"}if(this.playersHome.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0),p.data.away_team.bench){for(let m=0;m<p.data.away_team.bench.length;m++){this.subsTitle=!0;var n=p.data.away_team.bench[m].playerName.split(","),x=n[0].split(" "),y=n[1].trim().split(" "),v="";x.length==2||x.length==1?x[0].length<4?v=x[0]+" "+x[1]:v=x[0]:x.length==3?v=x[0]+" "+x[1]:x.length==4&&(v=x[1]+" "+x[2]+" "+x[3]);var u=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";v=v.replace(",","");var r=u+". "+v,i=p.data.away_team.players.findIndex(I=>I.player_id==p.data.away_team.bench[m].playerID);this.playersHome.push({played:!1,name:p.data.away_team.bench[m].playerName,position:i!=-1?this.isFemale?this.positions[p.data.away_team.players[i].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[p.data.away_team.players[i].position_id-1].name:"",position_id:p.data.away_team.players[i].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p.data.away_team.bench[m].playerID+".png",nationality:i!=-1&&p.data.away_team.players[i].nationality?p.data.away_team.players[i].nationality.substring(0,3):"",imgNationality:i!=-1?p.data.away_team.players[i].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+p.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p.data.away_team.bench[m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:p.data.away_team.bench[m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:p.data.away_team.team_id})}this.playersHome.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0)}}await this.getMXM(e)}catch(p){return Promise.reject(p)}},cleaneDataHome(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.dataPlayersHome=[],this.homeTeamLogo="",this.homeTeamName="",this.home_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneDataAway(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersAway=[],this.subsTitle=!1,this.uniformAway="",this.uniformAwayG="",this.dataPlayersAway=[],this.awayTeamLogo="",this.awayTeamName="",this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},async getLineUpProbablesAway3D(e){try{const l=await Qh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!l||!l.data)throw new Error("There is not lineups for this game.");if(this.awayTeamAbrev=this.gameInfoheader.away_team_abbreviation,l.data.home_team.team_id==this.gameInfoheader.away_team){this.dataPlayersAway=l.data.home_team.players,this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym);for(let p=0;p<l.data.home_team.starting_lineup[0].lineup.length;p++){this.away_team_id=l.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+l.data.home_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+l.data.home_team.team_id+"_g.svg","away",0);var s=l.data.home_team.starting_lineup[0].lineup[p].player_name.split(","),o=s[0].split(" "),O=s[1].trim().split(" "),W="";o.length==2||o.length==1?o[0].length<4?W=o[0]+" "+o[1]:W=o[0]:o.length==3?W=o[0]+" "+o[1]:o.length==4&&(W=o[1]+" "+o[2]+" "+o[3]);var b=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";W=W.replace(",","");var g=b+". "+W,a=l.data.home_team.starting_lineup[0].lineup[p].x;a=Math.abs(a-100);var _=l.data.home_team.starting_lineup[0].lineup[p].y;_=Math.abs(_-100);var h=100-(100-a)*50/100;h=h*.9;var n=l.data.home_team.players.findIndex(m=>m.player_id==l.data.home_team.starting_lineup[0].lineup[p].player_id);this.playersAway.push({played:!0,name:l.data.home_team.starting_lineup[0].lineup[p].player_name,position:this.isFemale?this.positions[l.data.home_team.players[n].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[l.data.home_team.players[n].position_id-1].name,position_id:l.data.home_team.players[n].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+l.data.home_team.starting_lineup[0].lineup[p].player_id+".png",nationality:l.data.home_team.players[n].nationality?l.data.home_team.players[n].nationality.substring(0,3):"",imgNationality:l.data.home_team.players[n].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:g,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:l.data.home_team.starting_lineup[0].lineup[p].jersey_number,positionX:_-23,positionY:h,positionXOrigin:l.data.home_team.starting_lineup[0].lineup[p].y-17,positionYOrigin:l.data.home_team.starting_lineup[0].lineup[p].x-7,playerId:l.data.home_team.starting_lineup[0].lineup[p].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:l.data.home_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+l.data.home_team.team_id+".png"}if(this.playersAway.sort((p,m)=>p.position_id>m.position_id?1:m.position_id>p.position_id?-1:0),l.data.home_team.bench){for(let p=0;p<l.data.home_team.bench.length;p++){this.subsTitle=!0;var x=l.data.home_team.bench[p].playerName.split(","),y=x[0].split(" "),v=x[1].trim().split(" "),u="";y.length==2||y.length==1?y[0].length<4?u=y[0]+" "+y[1]:u=y[0]:y.length==3?u=y[0]+" "+y[1]:y.length==4&&(u=y[1]+" "+y[2]+" "+y[3]);var r=v[v.length-1]!=""?v[v.length-1].charAt(0):v[v.length-2]?v[v.length-2].charAt(0):"";u=u.replace(",","");var i=r+". "+u,d=l.data.home_team.players.findIndex(m=>m.player_id==l.data.home_team.bench[p].playerID);this.playersAway.push({played:!1,name:l.data.home_team.bench[p].playerName,position:d!=-1?this.isFemale?this.positions[l.data.home_team.players[d].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[l.data.home_team.players[d].position_id-1].name:"",position_id:l.data.home_team.players[d].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+l.data.home_team.bench[p].playerID+".png",nationality:d!=-1&&l.data.home_team.players[d].nationality?l.data.home_team.players[d].nationality.substring(0,3):"",imgNationality:d!=-1?l.data.home_team.players[d].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:i,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:l.data.home_team.bench[p].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:l.data.home_team.bench[p].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:l.data.home_team.team_id})}this.playersAway.sort((p,m)=>p.position_id>m.position_id?1:m.position_id>p.position_id?-1:0)}}if(l.data.away_team.team_id==this.gameInfoheader.away_team){this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),this.dataPlayersAway=l.data.away_team.players;for(let p=0;p<l.data.away_team.starting_lineup[0].lineup.length;p++){this.away_team_id=l.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+l.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+l.data.away_team.team_id+"_g.svg","away",0);var s=l.data.away_team.starting_lineup[0].lineup[p].player_name.split(","),o=s[0].split(" "),O=s[1].trim().split(" "),W="";o.length==2||o.length==1?o[0].length<4?W=o[0]+" "+o[1]:W=o[0]:o.length==3?W=o[0]+" "+o[1]:o.length==4&&(W=o[1]+" "+o[2]+" "+o[3]);var b=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";W=W.replace(",","");var g=b+". "+W,a=l.data.away_team.starting_lineup[0].lineup[p].x,h=100-(100-a)*50/100;h=h*.9;var n=l.data.away_team.players.findIndex(M=>M.player_id==l.data.away_team.starting_lineup[0].lineup[p].player_id);this.playersAway.push({played:!0,name:l.data.away_team.starting_lineup[0].lineup[p].player_name,position:this.isFemale?this.positions[l.data.away_team.players[n].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[l.data.away_team.players[n].position_id-1].name,position_id:l.data.away_team.players[n].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+l.data.away_team.starting_lineup[0].lineup[p].player_id+".png",nationality:l.data.away_team.players[n].nationality?l.data.away_team.players[n].nationality.substring(0,3):"",imgNationality:l.data.away_team.players[n].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:g,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:l.data.away_team.starting_lineup[0].lineup[p].jersey_number,positionX:l.data.away_team.starting_lineup[0].lineup[p].y-13,positionY:h,positionXOrigin:l.data.away_team.starting_lineup[0].lineup[p].y-17,positionYOrigin:l.data.away_team.starting_lineup[0].lineup[p].x-7,playerId:l.data.away_team.starting_lineup[0].lineup[p].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:l.data.away_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+l.data.away_team.team_id+".png"}if(this.playersAway.sort((p,m)=>p.position_id>m.position_id?1:m.position_id>p.position_id?-1:0),l.data.away_team.bench){for(let p=0;p<l.data.away_team.bench.length;p++){this.subsTitle=!0;var x=l.data.away_team.bench[p].playerName.split(","),y=x[0].split(" "),v=x[1].trim().split(" "),u="";y.length==2||y.length==1?y[0].length<4?u=y[0]+" "+y[1]:u=y[0]:y.length==3?u=y[0]+" "+y[1]:y.length==4&&(u=y[1]+" "+y[2]+" "+y[3]);var r=v[v.length-1]!=""?v[v.length-1].charAt(0):v[v.length-2]?v[v.length-2].charAt(0):"";u=u.replace(",","");var i=r+". "+u,d=l.data.away_team.players.findIndex(E=>E.player_id==l.data.away_team.bench[p].playerID);this.playersAway.push({played:!1,name:l.data.away_team.bench[p].playerName,position:d!=-1?this.isFemale?this.positions[l.data.away_team.players[d].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[l.data.away_team.players[d].position_id-1].name:"",position_id:l.data.away_team.players[d].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+l.data.away_team.bench[p].playerID+".png",nationality:d!=-1&&l.data.away_team.players[d].nationality?l.data.away_team.players[d].nationality.substring(0,3):"",imgNationality:d!=-1?l.data.away_team.players[d].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:i,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:l.data.away_team.bench[p].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:l.data.away_team.bench[p].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:l.data.away_team.team_id})}this.playersAway.sort((p,m)=>p.position_id>m.position_id?1:m.position_id>p.position_id?-1:0)}}await this.getMXM(e)}catch(l){return Promise.reject(l)}},async getLineupProbablesHome(e){this.auxProbablesIDGameHome!=e.id&&(this.auxProbablesIDGameHome=e.id,this.cleaneDataHome(),this.getLineUpProbablesHome3D(e.id))},async getLineupProbablesAway(e){this.auxProbablesIDGameAway!=e.id&&(this.auxProbablesIDGameAway=e.id,this.cleaneDataAway(),this.getLineUpProbablesAway3D(e.id))},async getLineupProbables(e){var s={season_id:e.season_id,game_id:e.id};this.lastGetGame!=s.game_id&&(this.cleaneData(),await this.getLineUp(s.game_id)),this.lastGetGame=s.game_id},async changeCarouselItem(e){typeof e.game_id<"u"&&e.game_id!=this.gameInfoheader.id&&this.auxHistoricGameID!=e.game_id&&(this.auxHistoricGameID=e.game_id,this.cleaneData(),await this.getLineUp(e.game_id))},async changeCarouselItemRecent(e){if(e.selectedItem){var s={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id};this.homeTeam.acronymrecientes=e.selectedItem.home_team_abbreviation,this.visitingTeam.acronymrecientes=e.selectedItem.away_team_abbreviation,this.cleaneData(),await this.getLineUp(s.game_id),this.lastGetGame=s.game_id}},async getHeaderInfo(e,s=null){const o=Qh.create({headers:{Authorization:`${this.tokenPremium}`}}),O=s||await o.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+e.season_id+"/games/"+e.game_id+"/lineups");if(this.gameInfoheader=O.data.game,this.selectedOption!="Postmatch"){for(let W=0;W<O.data.games_historic.length;W++)this.gamesHistoric.push({objgame:O.data.games_historic[W],game:O.data.games_historic[W].id,home_team_abbreviation:O.data.games_historic[W].home_team_abbreviation,away_team_abbreviation:O.data.games_historic[W].away_team_abbreviation,season:O.data.games_historic[W].season_id,description:O.data.games_historic[W].season_name+" | "+this.getRoundH(O.data.games_historic[W].matchday_abbreviation)+" | "+O.data.games_historic[W].home_team_abbreviation+" - "+O.data.games_historic[W].away_team_abbreviation});this.gamesRecientes[O.data.game.home_team_abbreviation]=[],this.gamesRecientes[O.data.game.away_team_abbreviation]=[],this.matchdaysPerTeam[O.data.game.home_team_abbreviation]=[],this.matchdaysPerTeam[O.data.game.away_team_abbreviation]=[];for(let W=0;W<O.data.home_team_games_recent.length;W++)this.gamesRecientes[O.data.game.home_team_abbreviation].push(O.data.home_team_games_recent[W]),this.matchdaysPerTeam[O.data.game.home_team_abbreviation].push({name:this.getRound(O.data.home_team_games_recent[W].matchday_abbreviation),id:O.data.home_team_games_recent[W].matchday_id});for(let W=0;W<O.data.away_team_games_recent.length;W++)this.gamesRecientes[O.data.game.away_team_abbreviation].push(O.data.away_team_games_recent[W]),this.matchdaysPerTeam[O.data.game.away_team_abbreviation].push({name:this.getRound(O.data.away_team_games_recent[W].matchday_abbreviation),id:O.data.away_team_games_recent[W].matchday_id})}},getRound(e){let s=e.replace("M","Jornada ");return s=s.replace("PO1","CFI"),s=s.replace("PO2","CFV"),s=s.replace("PO3","SFI"),s=s.replace("PO4","SFV"),s=s.replace("PO5","FI"),s=s.replace("PO6","FV"),s},getRoundH(e){let s=e.replace("M","J");return s=s.replace("PO1","CFI"),s=s.replace("PO2","CFV"),s=s.replace("PO3","SFI"),s=s.replace("PO4","SFV"),s=s.replace("PO5","FI"),s=s.replace("PO6","FV"),s},clickOnSelectOption(e){this.selectOptMenuheader=e,this.cleaneData(),this.auxProbablesIDGameAway=0,this.auxProbablesIDGameHome=0},async gameDataInfo(e,s=null){const o=Qh.create({headers:{Authorization:`${this.tokenPremium}`}}),O=s||await o.get(this.urlGames+e.season_id+"/games/"+e.game_id);this.homeTeam=O.data.teams[0],this.visitingTeam=O.data.teams[1];const W=O.data.games.find(b=>b.game_id===Number(b.game_id));this.gameForAnalysis=W},cleaneData(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.playersAway=[],this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.uniformAway="",this.uniformAwayG="",this.dataPlayersHome=[],this.dataPlayersAway=[],this.homeTeamLogo="",this.awayTeamLogo="",this.homeTeamName="",this.awayTeamName="",this.home_team_id=0,this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},getDataSocket(){Iy("lineups.game."+this.game.game_id,this.socket),Iy("mxm.game."+this.game.game_id,this.socket),Iy("lineups.bench.game."+this.game.game_id,this.socket)},resetPlayUpdate(e,s,o,O){if(e=="Substitution")if(s=="Home"){var W=this.playersHome[o].substitutionDataID.split("@"),b=this.playersHome.findIndex(n=>n.playerId==W[1]),g=this.playersHome.findIndex(n=>n.playerId==W[2]);b!=-1&&(this.playersHome[b].substitutionOut=!1,this.playersHome[b].substitutionMin="",this.playersHome[b].substitutionDataID="",this.playersHome[b].idSubstitution=0),g!=-1&&(this.playersHome[g].substitutionIn=!1,this.playersHome[g].substitutionMin="",this.playersHome[g].substitutionDataID="",this.playersHome[g].idSubstitution=0)}else{var a=this.playersAway[o].substitutionDataID.split("@"),_=this.playersAway.findIndex(n=>n.playerId==a[1]),h=this.playersAway.findIndex(n=>n.playerId==a[2]);b!=-1&&(this.playersAway[_].substitutionOut=!1,this.playersAway[_].substitutionMin="",this.playersAway[_].substitutionDataID="",this.playersAway[_].idSubstitution=0),h!=-1&&(this.playersAway[h].substitutionIn=!1,this.playersAway[h].substitutionMin="",this.playersAway[h].substitutionDataID="",this.playersAway[h].idSubstitution=0)}e=="YellowCard"&&(s=="Home"?(this.playersHome[o].yellowcards=0,this.playersHome[o].yellowcardsMin=0,this.playersHome[o].idyellowcards=0):(this.playersAway[o].yellowcards=0,this.playersAway[o].yellowcardsMin=0,this.playersAway[o].idyellowcards=0)),e=="RedCard"&&(s=="Home"?(this.playersHome[o].redcards=0,this.playersHome[o].redcardsMin=0,this.playersHome[o].idredcards=0):(this.playersAway[o].redcards=0,this.playersAway[o].redcardsMin=0,this.playersAway[o].idredcards=0)),e=="Goals"&&(s=="Home"?(this.playersHome[O].goals=this.playersHome[O].goals-1,this.playersHome[O].goalsMin.splice(o,1),this.playersHome[O].idsGoals.splice(o,1)):(this.playersAway[O].goals=this.playersAway[O].goals-1,this.playersAway[O].goalsMin.splice(o,1),this.playersAway[O].idsGoals.splice(o,1)))},setUpResizeObserver(){if(window.ResizeObserver)eP=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),eP.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const v=this.urlMXM+e;if(v===this.lastMXMUrl)return;this.lastMXMUrl=v;const u=await Qh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(v);for(let r=0;r<this.playersHome.length;r++)this.playersHome[r].goalsMin=[],this.playersHome[r].idsGoals=[];for(let r=0;r<this.playersAway.length;r++)this.playersAway[r].goalsMin=[],this.playersAway[r].idsGoals=[];for(let r=0;r<u.data.plays.length;r++){if(u.data.plays[r].event_type_id==3){if(u.data.plays[r].team_id==this.home_team_id){if(this.playersHome.length>0){var s=u.data.plays[r].player_id.split("@"),o=this.playersHome.findIndex(i=>i.playerId==s[0]),O=this.playersHome.findIndex(i=>i.playerId==s[1]);o!=-1&&(this.playersHome[o].idSubstitution=u.data.plays[r].play_id,this.playersHome[o].substitutionOut=!0,this.playersHome[o].substitutionMin=u.data.plays[r].minute,this.playersHome[o].substitutionDataID=u.data.plays[r].team_id+"@"+u.data.plays[r].player_id),O!=-1&&(this.playersHome[O].idSubstitution=u.data.plays[r].play_id,this.playersHome[O].substitutionIn=!0,this.playersHome[O].substitutionMin=u.data.plays[r].minute,this.playersHome[O].substitutionDataID=u.data.plays[r].team_id+"@"+u.data.plays[r].player_id)}}else if(this.playersAway.length>0){var W=u.data.plays[r].player_id.split("@"),b=this.playersAway.findIndex(i=>i.playerId==W[0]),g=this.playersAway.findIndex(i=>i.playerId==W[1]);b!=-1&&(this.playersAway[b].idSubstitution=u.data.plays[r].play_id,this.playersAway[b].substitutionOut=!0,this.playersAway[b].substitutionMin=u.data.plays[r].minute,this.playersAway[b].substitutionDataID=u.data.plays[r].team_id+"@"+u.data.plays[r].player_id),g!=-1&&(this.playersAway[g].idSubstitution=u.data.plays[r].play_id,this.playersAway[g].substitutionIn=!0,this.playersAway[g].substitutionMin=u.data.plays[r].minute,this.playersAway[g].substitutionDataID=u.data.plays[r].team_id+"@"+u.data.plays[r].player_id)}}if(u.data.plays[r].event_type_id==1){if(u.data.plays[r].team_id==this.home_team_id){if(this.playersHome.length>0){var a=this.playersHome.findIndex(i=>i.playerId==u.data.plays[r].player_id);a!=-1&&(this.playersHome[a].goals+=1,this.playersHome[a].goalsMin.push(u.data.plays[r].minute),this.playersHome[a].idsGoals.push(u.data.plays[r].play_id))}}else if(this.playersAway.length>0){var _=this.playersAway.findIndex(i=>i.playerId==u.data.plays[r].player_id);_!=-1&&(this.playersAway[_].goals+=1,this.playersAway[_].goalsMin.push(u.data.plays[r].minute),this.playersAway[_].idsGoals.push(u.data.plays[r].play_id))}}if(u.data.plays[r].event_type_id==2){if(u.data.plays[r].category_id==8){if(u.data.plays[r].team_id==this.home_team_id){if(this.playersHome.length>0){var h=this.playersHome.findIndex(i=>i.playerId==u.data.plays[r].player_id);h!=-1&&(this.playersHome[h].yellowcards+=1,this.playersHome[h].yellowcardsMin=u.data.plays[r].minute,this.playersHome[h].idyellowcards=u.data.plays[r].play_id)}}else if(this.playersAway.length>0){var n=this.playersAway.findIndex(i=>i.playerId==u.data.plays[r].player_id);n!=-1&&(this.playersAway[n].yellowcards+=1,this.playersAway[n].yellowcardsMin=u.data.plays[r].minute,this.playersAway[n].idyellowcards=u.data.plays[r].play_id)}}if(u.data.plays[r].category_id==9){if(u.data.plays[r].team_id==this.home_team_id){if(this.playersHome.length>0){var x=this.playersHome.findIndex(i=>i.playerId==u.data.plays[r].player_id);x!=-1&&(this.playersHome[x].redcards+=1,this.playersHome[x].redcardsMin=u.data.plays[r].minute,this.playersHome[x].idredcards=u.data.plays[r].play_id)}}else if(this.playersAway.length>0){var y=this.playersAway.findIndex(i=>i.playerId==u.data.plays[r].player_id);y!=-1&&(this.playersAway[y].redcards+=1,this.playersAway[y].redcardsMin=u.data.plays[r].minute,this.playersAway[y].idredcards=u.data.plays[r].play_id)}}}}}catch(v){return Promise.reject(v)}},async getLineUp(e,s){if(e!=null)try{this.lastGetLineUpGameId=e,this.lastSection=this.selectOptMenuheader;const N=Qh.create({headers:{Authorization:`${this.tokenPremium}`}}),V=s||await N.get(this.url+e);if(!V||!V.data)throw new Error("There is not lineups for this game.");this.dataPlayersHome=V.data.home_team.players,this.dataPlayersAway=V.data.away_team.players,V.data.home_team.starting_lineup[0].lineup.sort(($,G)=>$.position_id>G.position_id?1:G.position_id>$.position_id?-1:0);for(let $=0;$<V.data.home_team.starting_lineup[0].lineup.length;$++){this.home_team_id=V.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+V.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+V.data.home_team.team_id+"_g.svg","home",0);var o=V.data.home_team.starting_lineup[0].lineup[$].player_name.split(","),O=o[0].split(" "),W=o[1].trim().split(" "),b="";O.length==2||O.length==1?O[0].length<4?b=O[0]+" "+O[1]:b=O[0]:O.length==3?b=O[0]+" "+O[1]:O.length==4&&(b=O[1]+" "+O[2]+" "+O[3]);var g=W[W.length-1]!=""?W[W.length-1].charAt(0):W[W.length-2]?W[W.length-2].charAt(0):"";b=b.replace(",","");var a=g+". "+b,_=V.data.home_team.starting_lineup[0].lineup[$].x,h=_*50/100,n=V.data.home_team.players.findIndex(G=>G.player_id==V.data.home_team.starting_lineup[0].lineup[$].player_id);this.playersHome.push({played:!0,name:V.data.home_team.starting_lineup[0].lineup[$].player_name,position:this.isFemale?this.positions[V.data.home_team.players[n].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[V.data.home_team.players[n].position_id-1].name,position_id:V.data.home_team.players[n].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+V.data.home_team.starting_lineup[0].lineup[$].player_id+".png",nationality:V.data.home_team.players[n].nationality?V.data.home_team.players[n].nationality.substring(0,3):"",imgNationality:V.data.home_team.players[n].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:a,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+V.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:V.data.home_team.starting_lineup[0].lineup[$].jersey_number,positionX:V.data.home_team.starting_lineup[0].lineup[$].y-13,positionY:h*.9,positionXOrigin:V.data.home_team.starting_lineup[0].lineup[$].y-17,positionYOrigin:V.data.home_team.starting_lineup[0].lineup[$].x-2,playerId:V.data.home_team.starting_lineup[0].lineup[$].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:V.data.home_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+V.data.home_team.team_id+".png",this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+V.data.home_team.team_id+".png",this.selectOptMenuheader=="Historicos"?(V.data.home_team.team_id==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),V.data.home_team.team_id==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym)):this.homeTeamAbrev=this.homeTeam.acronymrecientes}if(this.playersHome.sort(($,G)=>$.position_id>G.position_id?1:G.position_id>$.position_id?-1:0),V.data.home_team.bench){for(let $=0;$<V.data.home_team.bench.length;$++){this.subsTitle=!0;var x=V.data.home_team.bench[$].playerName.split(","),y=x[0].split(" "),v=x[1].trim().split(" "),u="";y.length==2||y.length==1?y[0].length<4?u=y[0]+" "+y[1]:u=y[0]:y.length==3?u=y[0]+" "+y[1]:y.length==4&&(u=y[1]+" "+y[2]+" "+y[3]);var r=v[v.length-1]!=""?v[v.length-1].charAt(0):v[v.length-2]?v[v.length-2].charAt(0):"";u=u.replace(",","");var i=r+". "+u,d=V.data.home_team.players.findIndex(G=>G.player_id==V.data.home_team.bench[$].playerID);this.playersHome.push({played:!1,name:V.data.home_team.bench[$].playerName,position:d!=-1?this.isFemale?this.positions[V.data.home_team.players[d].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[V.data.home_team.players[d].position_id-1].name:"",position_id:V.data.home_team.players[d].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+V.data.home_team.bench[$].playerID+".png",nationality:d!=-1&&V.data.home_team.players[d].nationality?V.data.home_team.players[d].nationality.substring(0,3):"",imgNationality:d!=-1?V.data.home_team.players[d].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:i,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+V.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:V.data.home_team.bench[$].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:V.data.home_team.bench[$].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:V.data.home_team.team_id})}this.playersHome.sort(($,G)=>$.position_id>G.position_id?1:G.position_id>$.position_id?-1:0)}for(let $=0;$<V.data.away_team.starting_lineup[0].lineup.length;$++){this.away_team_id=V.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+V.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+V.data.away_team.team_id+"_g.svg","away",0);var l=V.data.away_team.starting_lineup[0].lineup[$].player_name.split(","),p=l[0].split(" "),m=l[1].trim().split(" "),w="";p.length==2||p.length==1?p[0].length<4?w=p[0]+" "+p[1]:w=p[0]:p.length==3?w=p[0]+" "+p[1]:p.length==4&&(w=p[1]+" "+p[2]+" "+p[3]);var T=m[W.length-1]!=""?m[m.length-1].charAt(0):m[m.length-2]?m[m.length-2].charAt(0):"";w=w.replace(",","");var A=T+". "+w,C=V.data.away_team.starting_lineup[0].lineup[$].x,P=100-(100-C)*50/100;P=P*.9;var B=V.data.away_team.players.findIndex(G=>G.player_id==V.data.away_team.starting_lineup[0].lineup[$].player_id);this.playersAway.push({played:!0,name:V.data.away_team.starting_lineup[0].lineup[$].player_name,position:this.isFemale?this.positions[V.data.away_team.players[B].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[V.data.away_team.players[B].position_id-1].name,position_id:V.data.away_team.players[B].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+V.data.away_team.starting_lineup[0].lineup[$].player_id+".png",nationality:V.data.away_team.players[B].nationality?V.data.away_team.players[B].nationality.substring(0,3):"",imgNationality:V.data.away_team.players[B].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:A,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+V.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:V.data.away_team.starting_lineup[0].lineup[$].jersey_number,positionX:V.data.away_team.starting_lineup[0].lineup[$].y-13,positionY:P,positionXOrigin:V.data.away_team.starting_lineup[0].lineup[$].y-17,positionYOrigin:V.data.away_team.starting_lineup[0].lineup[$].x-7,playerId:V.data.away_team.starting_lineup[0].lineup[$].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:V.data.away_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+V.data.away_team.team_id+".png",this.selectOptMenuheader=="Historicos"?(V.data.away_team.team_id==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),V.data.away_team.team_id==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym)):this.awayTeamAbrev=this.visitingTeam.acronymrecientes}if(this.playersAway.sort(($,G)=>$.position_id>G.position_id?1:G.position_id>$.position_id?-1:0),V.data.away_team.bench){for(let $=0;$<V.data.away_team.bench.length;$++){this.subsTitle=!0;var E=V.data.away_team.bench[$].playerName.split(","),I=E[0].split(" "),M=E[1].trim().split(" "),S="";I.length==2||I.length==1?I[0].length<4?S=I[0]+" "+I[1]:S=I[0]:I.length==3?S=I[0]+" "+I[1]:I.length==4&&(S=I[1]+" "+I[2]+" "+I[3]);var L=M[M.length-1]!=""?M[M.length-1].charAt(0):M[M.length-2]?M[M.length-2].charAt(0):"";S=S.replace(",","");var k=L+". "+S,z=V.data.away_team.players.findIndex(G=>G.player_id==V.data.away_team.bench[$].playerID);this.playersAway.push({played:!1,name:V.data.away_team.bench[$].playerName,position:z!=-1?this.isFemale?this.positions[V.data.away_team.players[z].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[V.data.away_team.players[z].position_id-1].name:"",position_id:V.data.away_team.players[z].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+V.data.away_team.bench[$].playerID+".png",nationality:z!=-1&&V.data.away_team.players[z].nationality?V.data.away_team.players[z].nationality.substring(0,3):"",imgNationality:z!=-1?V.data.away_team.players[z].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:k,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+V.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:V.data.away_team.bench[$].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:V.data.away_team.bench[$].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:V.data.away_team.team_id})}this.playersAway.sort(($,G)=>$.position_id>G.position_id?1:G.position_id>$.position_id?-1:0)}setTimeout(async()=>{await this.getMXM(e)},500)}catch(N){return Promise.reject(N)}},closeChange(){this.subsActive=!1},imageExists(e,s,o){var O=new XMLHttpRequest,W=0;s=="away"?o==1?this.uniformAway==""&&(O.open("HEAD",e,!1),O.send(),W=1):this.uniformAwayG==""&&(O.open("HEAD",e,!1),O.send(),W=1):o==1?this.uniformHome==""&&(O.open("HEAD",e,!1),O.send(),W=1):this.uniformHomeG==""&&(O.open("HEAD",e,!1),O.send(),W=1),W==1&&(O.status==200?s=="away"?o==1?this.uniformAway="url("+e+")":this.uniformAwayG="url("+e+")":o==1?this.uniformHome="url("+e+")":this.uniformHomeG="url("+e+")":s=="away"?o==1?this.uniformAway="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita_g.svg)":o==1?this.uniformHome="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local_g.svg)")},viewChange(e){var s=e.split("@");if(s[0]==this.home_team_id){var o=this.playersHome.findIndex(g=>g.playerId==s[1]),O=this.playersHome.findIndex(g=>g.playerId==s[2]);o!=-1?(this.substitutionModal.min=this.playersHome[o].substitutionMin,this.substitutionModal.in.name=this.playersHome[o].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[o].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[o].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[o].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[o].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),O!=-1?(this.substitutionModal.out.name=this.playersHome[O].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[O].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[O].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[O].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[O].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}else{var W=this.playersAway.findIndex(g=>g.playerId==s[1]),b=this.playersAway.findIndex(g=>g.playerId==s[2]);W!=-1?(this.substitutionModal.min=this.playersAway[W].substitutionMin,this.substitutionModal.in.name=this.playersAway[W].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[W].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[W].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[W].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[W].shirt_number):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),b!=-1?(this.substitutionModal.out.name=this.playersAway[b].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[b].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[b].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[b].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[b].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}this.subsActive=!0},viewLineupTeam(e){this.teamActive=e}}},ixe={class:"size-browser-class"},oxe={class:"lineup-players is-centered"},sxe={style:{width:"92%",margin:"0 auto","margin-top":"10px"}},lxe={class:"modal-substitutions__substitution-container"},cxe={class:"modal-substitutions__substitution-container__header"},uxe={style:{"margin-left":"32px"}},dxe=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn-close.png"},null,-1),hxe=[dxe],pxe={class:"modal-substitutions__substitution-container__players-container"},fxe={class:"substitution-player-data-container"},mxe={class:"substitution-player-data-container__img-player"},gxe=["src"],yxe={class:"substitution-player-data-container__img-player__team"},vxe=["src"],_xe={class:"substitution-player-data-container__name-player"},bxe={class:"substitution-player-data-container__position-player"},xxe={class:"substitution-player-data-container__shirt-player",style:{"padding-left":"30px"}},wxe={key:0,class:"substitution-player-data-container__shirt-player__circle"},kxe={key:1},Sxe=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_salio.png"},null,-1),Txe=[Sxe],Cxe={class:"substitution-player-data-container__substitution-player"},Exe={class:"substitution-indicator nomargin"},Axe=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_salio.png"})],-1),Mxe={class:"substitution-player-data-container__center"},Ixe=t.createElementVNode("div",{class:"substitution-player-data-container__border"},null,-1),Pxe={class:"substitution-player-data-container__minute"},Bxe={class:"substitution-player-data-container"},Lxe={class:"substitution-player-data-container__img-player"},zxe=["src"],Oxe={class:"substitution-player-data-container__img-player__team"},Fxe=["src"],Nxe={class:"substitution-player-data-container__name-player"},Dxe={class:"substitution-player-data-container__position-player"},Rxe={class:"substitution-player-data-container__shirt-player",style:{"padding-right":"20px"}},Vxe={key:0},jxe=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_ingreso.png"},null,-1),$xe=[jxe],Uxe={key:1,class:"substitution-player-data-container__shirt-player__circle"},Gxe={class:"substitution-player-data-container__substitution-player"},Hxe={class:"substitution-indicator nomargin"},Wxe=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_ingreso.png"})],-1),qxe=["onClick"],Yxe=t.createElementVNode("img",{src:p8},null,-1),Zxe=[Yxe],Xxe=["onClick"],Jxe=t.createElementVNode("img",{src:p8},null,-1),Kxe=[Jxe],Qxe={key:0,class:"cont-lineup-gsc-componente"},e3e={class:"shield-team-cont homecolor"},t3e=["src"],n3e={class:"shield-team-cont awaycolor"},a3e=["src"],r3e={key:0,class:"header-lineup-shield-team home"},i3e={class:"shield-team-cont homecolor"},o3e=["src"],s3e={class:"header-lineup-shield-team-wrapper"},l3e={class:"header-lineup-shield-team-wrapper header-lineup-shield-team-wrapper-spacer"},c3e=t.createElementVNode("div",{class:"line-substitutions"},"SUPLENTES",-1),u3e={key:0,class:"header-lineup-shield-team away"},d3e={class:"shield-team-cont awaycolor"},h3e=["src"],p3e={class:"header-lineup-shield-team-wrapper"},f3e={class:"header-lineup-shield-team-wrapper header-lineup-shield-team-wrapper-spacer"},m3e=t.createElementVNode("div",{class:"line-substitutions"},"SUPLENTES",-1),g3e=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/graf-busqueda@3x.png",width:"74"},null,-1),y3e=[g3e],v3e=t.createElementVNode("br",null,null,-1);function _3e(e,s,o,O,W,b){const g=t.resolveComponent("HeaderPlayerPostmatch"),a=t.resolveComponent("HeaderPlayerHistorico"),_=t.resolveComponent("HeaderPlayerRecientes"),h=t.resolveComponent("HeaderPlayerProbables"),n=t.resolveComponent("CardPlayer");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",ixe,t.toDisplayString(b.sizeBrowser),1),t.createElementVNode("div",oxe,[t.createElementVNode("div",sxe,[o.selectedOption=="Postmatch"?(t.openBlock(),t.createBlock(g,{key:0,onClickOnSelectOption:b.clickOnSelectOption,"option-selected":W.selectOptMenuheader,"width-size":W.gamesContainerWidth,"game-info":W.gameInfoheader,"is-live":o.isLive,onInput:b.changeCarouselItem,"matchdays-default":W.matchdaysPerTeam,"game-historic":W.gamesHistoric},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","is-live","onInput","matchdays-default","game-historic"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[W.selectOptMenuheader=="Historicos"?(t.openBlock(),t.createBlock(a,{key:0,onClickOnSelectOption:b.clickOnSelectOption,"option-selected":W.selectOptMenuheader,"width-size":W.gamesContainerWidth,"game-info":W.gameInfoheader,onInput:b.changeCarouselItem,"matchdays-default":W.matchdaysPerTeam,"game-historic":W.gamesHistoric,"game-recientes":Object.keys(W.gameInfoheader).length>0?W.gamesRecientes[W.gameInfoheader.home_team_abbreviation].length+W.gamesRecientes[W.gameInfoheader.away_team_abbreviation].length:0},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","onInput","matchdays-default","game-historic","game-recientes"])):t.createCommentVNode("",!0),W.selectOptMenuheader=="Recientes"?(t.openBlock(),t.createBlock(_,{onClickOnSelectOption:b.clickOnSelectOption,style:{"margin-bottom":"100px"},key:W.keyUpdateRecientes,"option-selected":W.selectOptMenuheader,"width-size":W.gamesContainerWidth,"game-info":W.gameInfoheader,"player-home":W.playersHome,"player-away":W.playersAway,"matchdays-default":W.matchdaysPerTeam,onInput:b.changeCarouselItemRecent,"game-recientes":W.gamesRecientes},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","player-home","player-away","matchdays-default","onInput","game-recientes"])):t.createCommentVNode("",!0),W.selectOptMenuheader=="Probables"?(t.openBlock(),t.createBlock(h,{key:2,onClickOnSelectOption:b.clickOnSelectOption,style:{"margin-bottom":"80px"},"matchdays-default":W.matchdaysPerTeam,"option-selected":W.selectOptMenuheader,"width-size":W.gamesContainerWidth,"game-info":W.gameInfoheader,onChangehome:b.getLineupProbablesHome,onChangeaway:b.getLineupProbablesAway,"game-recientes":W.gamesRecientes},null,8,["onClickOnSelectOption","matchdays-default","option-selected","width-size","game-info","onChangehome","onChangeaway","game-recientes"])):t.createCommentVNode("",!0)],64)),t.createElementVNode("div",{class:t.normalizeClass(["lineup-players__container",{fallback:W.gamesContainerWidth===0}]),ref:"gamesContainer"},[t.createElementVNode("div",{class:t.normalizeClass(b.fieldcontainerClass)},[t.createElementVNode("div",{class:t.normalizeClass(["modal-substitutions",W.subsActive?"activeSub":"deactiveSub"])},[t.createElementVNode("div",lxe,[t.createElementVNode("div",cxe,[t.createElementVNode("span",uxe,[t.createTextVNode("Cambio "),t.createElementVNode("span",{class:"close-susbtitutions",onClick:s[0]||(s[0]=x=>b.closeChange())},hxe)])]),t.createElementVNode("div",pxe,[t.createElementVNode("div",fxe,[t.createElementVNode("div",mxe,[W.substitutionModal.in.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:W.substitutionModal.in.playerImg,width:"72",alt:"Jugador"},null,8,gxe)):t.createCommentVNode("",!0),t.createElementVNode("div",yxe,[W.substitutionModal.in.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:W.substitutionModal.in.teamImg,width:"28",alt:"team"},null,8,vxe)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+W.substitutionModal.in.nationalityimg+")"})},null,4)]),t.createElementVNode("div",_xe,t.toDisplayString(W.substitutionModal.in.name),1),t.createElementVNode("div",bxe,t.toDisplayString(W.substitutionModal.in.position),1),t.createElementVNode("div",xxe,[W.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",wxe,t.toDisplayString(W.substitutionModal.in.shirt_number),1)):t.createCommentVNode("",!0),W.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",kxe,Txe)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Cxe,[t.createElementVNode("template",null,[t.createElementVNode("div",Exe,[t.createElementVNode("div",null,t.toDisplayString(W.substitutionModal.min)+"'",1),Axe])])])]),t.createElementVNode("div",Mxe,[Ixe,t.createElementVNode("div",Pxe,t.toDisplayString(W.substitutionModal.min)+"' ",1)]),t.createElementVNode("div",Bxe,[t.createElementVNode("div",Lxe,[W.substitutionModal.out.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:W.substitutionModal.out.playerImg,width:"72",alt:"Jugador"},null,8,zxe)):t.createCommentVNode("",!0),t.createElementVNode("div",Oxe,[W.substitutionModal.out.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:W.substitutionModal.out.teamImg,width:"28",alt:"team"},null,8,Fxe)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+W.substitutionModal.out.nationalityimg+")"})},null,4)]),t.createElementVNode("div",Nxe,t.toDisplayString(W.substitutionModal.out.name),1),t.createElementVNode("div",Dxe,t.toDisplayString(W.substitutionModal.out.position),1),t.createElementVNode("div",Rxe,[W.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",Vxe,$xe)):t.createCommentVNode("",!0),W.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",Uxe,t.toDisplayString(W.substitutionModal.out.shirt_number),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Gxe,[t.createElementVNode("template",null,[t.createElementVNode("div",Hxe,[t.createElementVNode("div",null,t.toDisplayString(W.substitutionModal.min)+"'",1),Wxe])])])])])])],2),t.createElementVNode("div",{class:t.normalizeClass(b.canchacontainerClass)},[(W.gameForAnalysis.game_status==4||W.gameForAnalysis.game_status==1)&&W.gameForAnalysis.is_live==0&&b.numPlayer==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([b.notificationnolineupsClass])}," Las alineaciones estarán disponibles unos minutos antes de que inicie el partido. ",2)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.playersHome,(x,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"jersey_home"},[x.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([b.itemplayerfieldClass,W.gamesContainerWidth<740?W.teamActive=="home"?"active":"disabled":"",W.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(W.movil?{top:x.positionXOrigin+"%",left:x.positionYOrigin-7+b.calculatePerspectiveAdjustment(x.positionXOrigin)+"%"}:{top:x.positionX+"%",left:x.positionY-5+b.calculatePerspectiveAdjustment(x.positionX)+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(b.jerseyitemplayerClass),style:t.normalizeStyle(x.position!="Portero"?{backgroundImage:W.uniformHome}:{backgroundImage:W.uniformHomeG})},[t.createElementVNode("div",{class:t.normalizeClass([b.yellowcarddivclass,x.yellowcards>0&&x.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([b.redcarddivClass,x.yellowcards==0&&x.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([b.yellowredcarddivClass,x.yellowcards>0&&x.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([b.goalcarddivClass,x.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),t.createElementVNode("div",{class:t.normalizeClass(b.infoplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(b.infonameplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(["num-item-new",[W.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(x.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(x.abrevNamePlayer),1)],2),x.substitutionIn||x.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(b.infochangeplayeritemClass),onClick:v=>b.viewChange(x.substitutionDataID)},Zxe,10,qxe)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.playersAway,(x,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"jersey_away"},[x.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([b.itemplayerfieldClass,W.gamesContainerWidth<740?W.teamActive=="away"?"active":"disabled":"",W.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(W.movil?{top:x.positionXOrigin+"%",left:x.positionYOrigin+b.calculatePerspectiveAdjustmentAway(x.positionXOrigin)+"%"}:{top:x.positionX+"%",left:x.positionY-4+b.calculatePerspectiveAdjustmentAway(x.positionX)+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(b.jerseyitemplayerClass),style:t.normalizeStyle(x.position!="Portero"?{backgroundImage:W.uniformAway}:{backgroundImage:W.uniformAwayG})},[t.createElementVNode("div",{class:t.normalizeClass([b.yellowcarddivclass,x.yellowcards>0&&x.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([b.redcarddivClass,x.yellowcards==0&&x.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([b.yellowredcarddivClass,x.yellowcards>0&&x.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([b.goalcarddivClass,x.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),t.createElementVNode("div",{class:t.normalizeClass(b.infoplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(b.infonameplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(["num-item-new-away",[W.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(x.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(x.abrevNamePlayer),1)],2),x.substitutionIn||x.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(b.infochangeplayeritemClass),onClick:v=>b.viewChange(x.substitutionDataID)},Kxe,10,Xxe)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128))],2)],2),(W.gameForAnalysis.game_status==4||W.gameForAnalysis.game_status==1)&&W.gameForAnalysis.is_live==0&&b.numPlayer==0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Qxe,[t.createElementVNode("div",{class:t.normalizeClass(b.containerlineupsClass)},[t.createElementVNode("div",{class:t.normalizeClass(b.menuTeamsClass)},[t.createElementVNode("div",{class:"header-lineup-shield-team home",style:t.normalizeStyle([{cursor:"pointer"},W.teamActive=="home"?"background-color: #214e67; border-radius: 10px;":""]),onClick:s[1]||(s[1]=x=>b.viewLineupTeam("home"))},[t.createElementVNode("div",e3e,[W.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:W.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,t3e)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(W.homeTeamAbrev),1)],4),t.createElementVNode("div",{class:"header-lineup-shield-team away",style:t.normalizeStyle([{cursor:"pointer"},W.teamActive=="away"?"background-color: #214e67; border-radius: 10px;":""]),onClick:s[2]||(s[2]=x=>b.viewLineupTeam("away"))},[t.createElementVNode("div",null,t.toDisplayString(W.awayTeamAbrev),1),t.createElementVNode("div",n3e,[W.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:W.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,a3e)):t.createCommentVNode("",!0)])],4)],2),W.teamActive=="home"||W.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(b.containerClassHome)},[W.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",r3e,[t.createElementVNode("div",i3e,[W.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:W.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,o3e)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(W.homeTeamAbrev),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",s3e,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.playersHome,(x,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y},[x.played?(t.openBlock(),t.createBlock(n,{key:0,type:1,onOpenProfile:b.onOpenProfile,position:b.positionClass,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,img:x.imgPlayer,playerid:x.playerId,teamid:x.id_team,name:x.name,position:x.position,nation:x.imgNationality,shirt:x.shirt_number,yellowcard:x.yellowcards,redcard:x.redcards,yellowcardmin:x.yellowcardsMin,redcardmin:x.redcardsMin,goalsMin:x.goalsMin,substitutionIn:x.substitutionIn,substitutionOut:x.substitutionOut,substitutionMin:x.substitutionMin,section:W.selectOptMenuheader,type:o.selectedOption}},null,8,["onOpenProfile","position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",l3e,[c3e,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.playersHome,(x,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y},[x.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(n,{key:0,type:1,onOpenProfile:b.onOpenProfile,position:b.positionClass,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,img:x.imgPlayer,playerid:x.playerId,teamid:x.id_team,name:x.name,position:x.position,nation:x.imgNationality,shirt:x.shirt_number,yellowcard:x.yellowcards,redcard:x.redcards,yellowcardmin:x.yellowcardsMin,redcardmin:x.redcardsMin,goalsMin:x.goalsMin,substitutionIn:x.substitutionIn,substitutionOut:x.substitutionOut,substitutionMin:x.substitutionMin,section:W.selectOptMenuheader,type:o.selectedOption}},null,8,["onOpenProfile","position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0),W.teamActive=="away"||W.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(b.containerClassAway)},[W.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",u3e,[t.createElementVNode("div",null,t.toDisplayString(W.awayTeamAbrev),1),t.createElementVNode("div",d3e,[W.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:W.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,h3e)):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("div",p3e,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.playersAway,(x,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"line_away"},[x.played?(t.openBlock(),t.createBlock(n,{key:0,onOpenProfile:b.onOpenProfile,type:2,position:b.positionClass2,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,playerid:x.playerId,teamid:x.id_team,img:x.imgPlayer,name:x.name,position:x.position,nation:x.imgNationality,shirt:x.shirt_number,yellowcard:x.yellowcards,redcard:x.redcards,yellowcardmin:x.yellowcardsMin,redcardmin:x.redcardsMin,goalsMin:x.goalsMin,substitutionIn:x.substitutionIn,substitutionOut:x.substitutionOut,substitutionMin:x.substitutionMin,section:W.selectOptMenuheader,type:o.selectedOption}},null,8,["onOpenProfile","position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",f3e,[m3e,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.playersAway,(x,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"line_away"},[x.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(n,{key:0,onOpenProfile:b.onOpenProfile,type:2,position:b.positionClass2,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,playerid:x.playerId,teamid:x.id_team,img:x.imgPlayer,name:x.name,position:x.position,nation:x.imgNationality,shirt:x.shirt_number,yellowcard:x.yellowcards,redcard:x.redcards,yellowcardmin:x.yellowcardsMin,redcardmin:x.redcardsMin,goalsMin:x.goalsMin,substitutionIn:x.substitutionIn,substitutionOut:x.substitutionOut,substitutionMin:x.substitutionMin,section:W.selectOptMenuheader,type:o.selectedOption}},null,8,["onOpenProfile","position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0)],2)])),(W.gameForAnalysis.game_status==4||W.gameForAnalysis.game_status==1)&&W.gameForAnalysis.is_live==0&&b.numPlayer==0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(b.containernolineups)},[t.createElementVNode("div",{class:t.normalizeClass([b.containernolineups+"__img-search",W.gamesContainerWidth<740?"movil":""])},y3e,2),t.createElementVNode("div",{class:t.normalizeClass([b.containernolineups+"__title-info",W.gamesContainerWidth<740?"movil":""])}," Alineaciones sin definir ",2),t.createElementVNode("div",{class:t.normalizeClass([b.containernolineups+"__subtitle-info",W.gamesContainerWidth<740?"movil":""])},[t.createTextVNode(" Los equipos no han presentado sus alineaciones. Estas "),v3e,t.createTextVNode("serán dadas minutos antes del inicio del partido. ")],2)],2)):t.createCommentVNode("",!0)],2)])])])}const b3e=ep(rxe,[["render",_3e]]),x3e={components:{GSCLineups2D:Gme,GSCLineups3D:b3e},props:{isFemale:{type:Boolean,default:!1},selectedOption:{type:String,default:"Historicos"},game:{type:Object,default:()=>{}},isLive:{type:Boolean,default:!1},type:{type:String,default:"2D"},socket:{type:Object,default:()=>{}}},watch:{},data(){return{}},computed:{},methods:{onOpenProfile(e){this.$emit("onOpenProfile",e)}}};function w3e(e,s,o,O,W,b){const g=t.resolveComponent("GSCLineups2D"),a=t.resolveComponent("GSCLineups3D");return t.openBlock(),t.createElementBlock("div",null,[o.type=="2D"?(t.openBlock(),t.createBlock(g,{key:0,"selected-option":o.selectedOption,game:o.game,socket:o.socket},null,8,["selected-option","game","socket"])):t.createCommentVNode("",!0),o.type=="3D"?(t.openBlock(),t.createBlock(a,{key:1,"is-live":o.isLive,isFemale:o.isFemale,onOnOpenProfile:b.onOpenProfile,"selected-option":o.selectedOption,game:o.game,socket:o.socket},null,8,["is-live","isFemale","onOnOpenProfile","selected-option","game","socket"])):t.createCommentVNode("",!0)])}const tP=ep(x3e,[["render",w3e]]),I$t="",P$t="",k3e={class:"alineaciones-container"},S3e=Ji({__name:"GSCLineupsMain",props:{tournamentSelected:{type:Object,default:()=>({})},isWidget:{type:Boolean,default:!1},game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/18.png",team_id:10,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/1.png",team_id:1,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})}},emits:["onOpenProfile"],setup(e,{emit:s}){const o=e,O=t.ref(0);t.watch(()=>o.game,b=>{O.value=b.gameId},{deep:!0,immediate:!0});function W(b){o.isWidget||s("onOpenProfile",b)}return(b,g)=>(t.openBlock(),t.createElementBlock("div",k3e,[e.game.status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(tP),{socket:e.socket,key:O.value,type:"3D","is-female":e.tournamentSelected.is_female==1,"is-live":e.game.is_live==1,"selected-option":"Historicos",game:{game_id:e.game.gameId,season_id:e.game.seasonId,prematch:!1},onOnOpenProfile:W},null,8,["socket","is-female","is-live","game"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(tP),{"is-female":e.tournamentSelected.is_female==1,socket:e.socket,key:O.value,type:"3D","is-live":e.game.is_live==1,"selected-option":"Postmatch",game:{game_id:e.game.gameId,season_id:e.game.seasonId,prematch:!1},onOnOpenProfile:W},null,8,["is-female","socket","is-live","game"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-f877232a"]]);function nP(e,s){return function(){return e.apply(s,arguments)}}const{toString:T3e}=Object.prototype,{getPrototypeOf:w8}=Object,lx=(e=>s=>{const o=T3e.call(s);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),mf=e=>(e=e.toLowerCase(),s=>lx(s)===e),cx=e=>s=>typeof s===e,{isArray:Py}=Array,i2=cx("undefined");function C3e(e){return e!==null&&!i2(e)&&e.constructor!==null&&!i2(e.constructor)&&mp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const aP=mf("ArrayBuffer");function E3e(e){let s;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?s=ArrayBuffer.isView(e):s=e&&e.buffer&&aP(e.buffer),s}const A3e=cx("string"),mp=cx("function"),rP=cx("number"),ux=e=>e!==null&&typeof e=="object",M3e=e=>e===!0||e===!1,dx=e=>{if(lx(e)!=="object")return!1;const s=w8(e);return(s===null||s===Object.prototype||Object.getPrototypeOf(s)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},I3e=mf("Date"),P3e=mf("File"),B3e=mf("Blob"),L3e=mf("FileList"),z3e=e=>ux(e)&&mp(e.pipe),O3e=e=>{let s;return e&&(typeof FormData=="function"&&e instanceof FormData||mp(e.append)&&((s=lx(e))==="formdata"||s==="object"&&mp(e.toString)&&e.toString()==="[object FormData]"))},F3e=mf("URLSearchParams"),[N3e,D3e,R3e,V3e]=["ReadableStream","Request","Response","Headers"].map(mf),j3e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function o2(e,s,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let O,W;if(typeof e!="object"&&(e=[e]),Py(e))for(O=0,W=e.length;O<W;O++)s.call(null,e[O],O,e);else{const b=o?Object.getOwnPropertyNames(e):Object.keys(e),g=b.length;let a;for(O=0;O<g;O++)a=b[O],s.call(null,e[a],a,e)}}function iP(e,s){s=s.toLowerCase();const o=Object.keys(e);let O=o.length,W;for(;O-- >0;)if(W=o[O],s===W.toLowerCase())return W;return null}const Ig=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),oP=e=>!i2(e)&&e!==Ig;function k8(){const{caseless:e}=oP(this)&&this||{},s={},o=(O,W)=>{const b=e&&iP(s,W)||W;dx(s[b])&&dx(O)?s[b]=k8(s[b],O):dx(O)?s[b]=k8({},O):Py(O)?s[b]=O.slice():s[b]=O};for(let O=0,W=arguments.length;O<W;O++)arguments[O]&&o2(arguments[O],o);return s}const $3e=(e,s,o,{allOwnKeys:O}={})=>(o2(s,(W,b)=>{o&&mp(W)?e[b]=nP(W,o):e[b]=W},{allOwnKeys:O}),e),U3e=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),G3e=(e,s,o,O)=>{e.prototype=Object.create(s.prototype,O),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:s.prototype}),o&&Object.assign(e.prototype,o)},H3e=(e,s,o,O)=>{let W,b,g;const a={};if(s=s||{},e==null)return s;do{for(W=Object.getOwnPropertyNames(e),b=W.length;b-- >0;)g=W[b],(!O||O(g,e,s))&&!a[g]&&(s[g]=e[g],a[g]=!0);e=o!==!1&&w8(e)}while(e&&(!o||o(e,s))&&e!==Object.prototype);return s},W3e=(e,s,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=s.length;const O=e.indexOf(s,o);return O!==-1&&O===o},q3e=e=>{if(!e)return null;if(Py(e))return e;let s=e.length;if(!rP(s))return null;const o=new Array(s);for(;s-- >0;)o[s]=e[s];return o},Y3e=(e=>s=>e&&s instanceof e)(typeof Uint8Array<"u"&&w8(Uint8Array)),Z3e=(e,s)=>{const o=(e&&e[Symbol.iterator]).call(e);let O;for(;(O=o.next())&&!O.done;){const W=O.value;s.call(e,W[0],W[1])}},X3e=(e,s)=>{let o;const O=[];for(;(o=e.exec(s))!==null;)O.push(o);return O},J3e=mf("HTMLFormElement"),K3e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,o,O){return o.toUpperCase()+O}),sP=(({hasOwnProperty:e})=>(s,o)=>e.call(s,o))(Object.prototype),Q3e=mf("RegExp"),lP=(e,s)=>{const o=Object.getOwnPropertyDescriptors(e),O={};o2(o,(W,b)=>{let g;(g=s(W,b,e))!==!1&&(O[b]=g||W)}),Object.defineProperties(e,O)},ewe=e=>{lP(e,(s,o)=>{if(mp(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const O=e[o];if(mp(O)){if(s.enumerable=!1,"writable"in s){s.writable=!1;return}s.set||(s.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},twe=(e,s)=>{const o={},O=W=>{W.forEach(b=>{o[b]=!0})};return Py(e)?O(e):O(String(e).split(s)),o},nwe=()=>{},awe=(e,s)=>e!=null&&Number.isFinite(e=+e)?e:s,S8="abcdefghijklmnopqrstuvwxyz",cP="0123456789",uP={DIGIT:cP,ALPHA:S8,ALPHA_DIGIT:S8+S8.toUpperCase()+cP},rwe=(e=16,s=uP.ALPHA_DIGIT)=>{let o="";const{length:O}=s;for(;e--;)o+=s[Math.random()*O|0];return o};function iwe(e){return!!(e&&mp(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const owe=e=>{const s=new Array(10),o=(O,W)=>{if(ux(O)){if(s.indexOf(O)>=0)return;if(!("toJSON"in O)){s[W]=O;const b=Py(O)?[]:{};return o2(O,(g,a)=>{const _=o(g,W+1);!i2(_)&&(b[a]=_)}),s[W]=void 0,b}}return O};return o(e,0)},swe=mf("AsyncFunction"),lwe=e=>e&&(ux(e)||mp(e))&&mp(e.then)&&mp(e.catch),dP=((e,s)=>e?setImmediate:s?((o,O)=>(Ig.addEventListener("message",({source:W,data:b})=>{W===Ig&&b===o&&O.length&&O.shift()()},!1),W=>{O.push(W),Ig.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",mp(Ig.postMessage)),cwe=typeof queueMicrotask<"u"?queueMicrotask.bind(Ig):typeof process<"u"&&process.nextTick||dP,Fr={isArray:Py,isArrayBuffer:aP,isBuffer:C3e,isFormData:O3e,isArrayBufferView:E3e,isString:A3e,isNumber:rP,isBoolean:M3e,isObject:ux,isPlainObject:dx,isReadableStream:N3e,isRequest:D3e,isResponse:R3e,isHeaders:V3e,isUndefined:i2,isDate:I3e,isFile:P3e,isBlob:B3e,isRegExp:Q3e,isFunction:mp,isStream:z3e,isURLSearchParams:F3e,isTypedArray:Y3e,isFileList:L3e,forEach:o2,merge:k8,extend:$3e,trim:j3e,stripBOM:U3e,inherits:G3e,toFlatObject:H3e,kindOf:lx,kindOfTest:mf,endsWith:W3e,toArray:q3e,forEachEntry:Z3e,matchAll:X3e,isHTMLForm:J3e,hasOwnProperty:sP,hasOwnProp:sP,reduceDescriptors:lP,freezeMethods:ewe,toObjectSet:twe,toCamelCase:K3e,noop:nwe,toFiniteNumber:awe,findKey:iP,global:Ig,isContextDefined:oP,ALPHABET:uP,generateString:rwe,isSpecCompliantForm:iwe,toJSONObject:owe,isAsyncFn:swe,isThenable:lwe,setImmediate:dP,asap:cwe};function dl(e,s,o,O,W){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",s&&(this.code=s),o&&(this.config=o),O&&(this.request=O),W&&(this.response=W,this.status=W.status?W.status:null)}Fr.inherits(dl,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Fr.toJSONObject(this.config),code:this.code,status:this.status}}});const hP=dl.prototype,pP={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{pP[e]={value:e}}),Object.defineProperties(dl,pP),Object.defineProperty(hP,"isAxiosError",{value:!0}),dl.from=(e,s,o,O,W,b)=>{const g=Object.create(hP);return Fr.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),dl.call(g,e.message,s,o,O,W),g.cause=e,g.name=e.name,b&&Object.assign(g,b),g};const uwe=null;function T8(e){return Fr.isPlainObject(e)||Fr.isArray(e)}function fP(e){return Fr.endsWith(e,"[]")?e.slice(0,-2):e}function mP(e,s,o){return e?e.concat(s).map(function(O,W){return O=fP(O),!o&&W?"["+O+"]":O}).join(o?".":""):s}function dwe(e){return Fr.isArray(e)&&!e.some(T8)}const hwe=Fr.toFlatObject(Fr,{},null,function(e){return/^is[A-Z]/.test(e)});function hx(e,s,o){if(!Fr.isObject(e))throw new TypeError("target must be an object");s=s||new FormData,o=Fr.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,u){return!Fr.isUndefined(u[v])});const O=o.metaTokens,W=o.visitor||h,b=o.dots,g=o.indexes,a=(o.Blob||typeof Blob<"u"&&Blob)&&Fr.isSpecCompliantForm(s);if(!Fr.isFunction(W))throw new TypeError("visitor must be a function");function _(v){if(v===null)return"";if(Fr.isDate(v))return v.toISOString();if(!a&&Fr.isBlob(v))throw new dl("Blob is not supported. Use a Buffer instead.");return Fr.isArrayBuffer(v)||Fr.isTypedArray(v)?a&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function h(v,u,r){let i=v;if(v&&!r&&typeof v=="object"){if(Fr.endsWith(u,"{}"))u=O?u:u.slice(0,-2),v=JSON.stringify(v);else if(Fr.isArray(v)&&dwe(v)||(Fr.isFileList(v)||Fr.endsWith(u,"[]"))&&(i=Fr.toArray(v)))return u=fP(u),i.forEach(function(d,l){!(Fr.isUndefined(d)||d===null)&&s.append(g===!0?mP([u],l,b):g===null?u:u+"[]",_(d))}),!1}return T8(v)?!0:(s.append(mP(r,u,b),_(v)),!1)}const n=[],x=Object.assign(hwe,{defaultVisitor:h,convertValue:_,isVisitable:T8});function y(v,u){if(!Fr.isUndefined(v)){if(n.indexOf(v)!==-1)throw Error("Circular reference detected in "+u.join("."));n.push(v),Fr.forEach(v,function(r,i){(!(Fr.isUndefined(r)||r===null)&&W.call(s,r,Fr.isString(i)?i.trim():i,u,x))===!0&&y(r,u?u.concat(i):[i])}),n.pop()}}if(!Fr.isObject(e))throw new TypeError("data must be an object");return y(e),s}function gP(e){const s={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return s[o]})}function C8(e,s){this._pairs=[],e&&hx(e,this,s)}const yP=C8.prototype;yP.append=function(e,s){this._pairs.push([e,s])},yP.toString=function(e){const s=e?function(o){return e.call(this,o,gP)}:gP;return this._pairs.map(function(o){return s(o[0])+"="+s(o[1])},"").join("&")};function pwe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vP(e,s,o){if(!s)return e;const O=o&&o.encode||pwe;Fr.isFunction(o)&&(o={serialize:o});const W=o&&o.serialize;let b;if(W?b=W(s,o):b=Fr.isURLSearchParams(s)?s.toString():new C8(s,o).toString(O),b){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+b}return e}const _P=class{constructor(){this.handlers=[]}use(s,o,O){return this.handlers.push({fulfilled:s,rejected:o,synchronous:O?O.synchronous:!1,runWhen:O?O.runWhen:null}),this.handlers.length-1}eject(s){this.handlers[s]&&(this.handlers[s]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(s){Fr.forEach(this.handlers,function(o){o!==null&&s(o)})}},bP={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fwe=typeof URLSearchParams<"u"?URLSearchParams:C8,mwe=typeof FormData<"u"?FormData:null,gwe=typeof Blob<"u"?Blob:null,ywe={isBrowser:!0,classes:{URLSearchParams:fwe,FormData:mwe,Blob:gwe},protocols:["http","https","file","blob","url","data"]},E8=typeof window<"u"&&typeof document<"u",A8=typeof navigator=="object"&&navigator||void 0,vwe=E8&&(!A8||["ReactNative","NativeScript","NS"].indexOf(A8.product)<0),_we=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),bwe=E8&&window.location.href||"http://localhost",xwe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:E8,hasStandardBrowserEnv:vwe,hasStandardBrowserWebWorkerEnv:_we,navigator:A8,origin:bwe},Symbol.toStringTag,{value:"Module"})),dh={...xwe,...ywe};function wwe(e,s){return hx(e,new dh.classes.URLSearchParams,Object.assign({visitor:function(o,O,W,b){return dh.isNode&&Fr.isBuffer(o)?(this.append(O,o.toString("base64")),!1):b.defaultVisitor.apply(this,arguments)}},s))}function kwe(e){return Fr.matchAll(/\w+|\[(\w*)]/g,e).map(s=>s[0]==="[]"?"":s[1]||s[0])}function Swe(e){const s={},o=Object.keys(e);let O;const W=o.length;let b;for(O=0;O<W;O++)b=o[O],s[b]=e[b];return s}function xP(e){function s(o,O,W,b){let g=o[b++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),_=b>=o.length;return g=!g&&Fr.isArray(W)?W.length:g,_?(Fr.hasOwnProp(W,g)?W[g]=[W[g],O]:W[g]=O,!a):((!W[g]||!Fr.isObject(W[g]))&&(W[g]=[]),s(o,O,W[g],b)&&Fr.isArray(W[g])&&(W[g]=Swe(W[g])),!a)}if(Fr.isFormData(e)&&Fr.isFunction(e.entries)){const o={};return Fr.forEachEntry(e,(O,W)=>{s(kwe(O),W,o,0)}),o}return null}function Twe(e,s,o){if(Fr.isString(e))try{return(s||JSON.parse)(e),Fr.trim(e)}catch(O){if(O.name!=="SyntaxError")throw O}return(o||JSON.stringify)(e)}const M8={transitional:bP,adapter:["xhr","http","fetch"],transformRequest:[function(e,s){const o=s.getContentType()||"",O=o.indexOf("application/json")>-1,W=Fr.isObject(e);if(W&&Fr.isHTMLForm(e)&&(e=new FormData(e)),Fr.isFormData(e))return O?JSON.stringify(xP(e)):e;if(Fr.isArrayBuffer(e)||Fr.isBuffer(e)||Fr.isStream(e)||Fr.isFile(e)||Fr.isBlob(e)||Fr.isReadableStream(e))return e;if(Fr.isArrayBufferView(e))return e.buffer;if(Fr.isURLSearchParams(e))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let b;if(W){if(o.indexOf("application/x-www-form-urlencoded")>-1)return wwe(e,this.formSerializer).toString();if((b=Fr.isFileList(e))||o.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return hx(b?{"files[]":e}:e,g&&new g,this.formSerializer)}}return W||O?(s.setContentType("application/json",!1),Twe(e)):e}],transformResponse:[function(e){const s=this.transitional||M8.transitional,o=s&&s.forcedJSONParsing,O=this.responseType==="json";if(Fr.isResponse(e)||Fr.isReadableStream(e))return e;if(e&&Fr.isString(e)&&(o&&!this.responseType||O)){const W=!(s&&s.silentJSONParsing)&&O;try{return JSON.parse(e)}catch(b){if(W)throw b.name==="SyntaxError"?dl.from(b,dl.ERR_BAD_RESPONSE,this,null,this.response):b}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dh.classes.FormData,Blob:dh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Fr.forEach(["delete","get","head","post","put","patch"],e=>{M8.headers[e]={}});const I8=M8,Cwe=Fr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ewe=e=>{const s={};let o,O,W;return e&&e.split(`
44
+ */const Od={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},WI={itemsToShow:{default:Od.itemsToShow,type:Number},itemsToScroll:{default:Od.itemsToScroll,type:Number},wrapAround:{default:Od.wrapAround,type:Boolean},throttle:{default:Od.throttle,type:Number},snapAlign:{default:Od.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Od.transition,type:Number},breakpoints:{default:Od.breakpoints,type:Object},autoplay:{default:Od.autoplay,type:Number},pauseAutoplayOnHover:{default:Od.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Od.mouseDrag,type:Boolean},touchDrag:{default:Od.touchDrag,type:Boolean},dir:{default:Od.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Od.i18n,type:Object},settings:{default(){return{}},type:Object}};function vfe({config:e,slidesCount:s}){const{snapAlign:o,wrapAround:O,itemsToShow:W=1}=e;if(O)return Math.max(s-1,0);let b;switch(o){case"start":b=s-W;break;case"end":b=s-1;break;case"center":case"center-odd":b=s-Math.ceil((W-.5)/2);break;case"center-even":b=s-Math.ceil(W/2);break;default:b=0;break}return Math.max(b,0)}function _fe({config:e,slidesCount:s}){const{wrapAround:o,snapAlign:O,itemsToShow:W=1}=e;let b=0;if(o||W>s)return b;switch(O){case"start":b=0;break;case"end":b=W-1;break;case"center":case"center-odd":b=Math.floor((W-1)/2);break;case"center-even":b=Math.floor((W-2)/2);break;default:b=0;break}return b}function y8({val:e,max:s,min:o}){return s<o?e:Math.min(Math.max(e,o),s)}function bfe({config:e,currentSlide:s,slidesCount:o}){const{snapAlign:O,wrapAround:W,itemsToShow:b=1}=e;let g=s;switch(O){case"center":case"center-odd":g-=(b-1)/2;break;case"center-even":g-=(b-2)/2;break;case"end":g-=b-1;break}return W?g:y8({val:g,max:o-b,min:0})}function qI(e){return e?e.reduce((s,o)=>{var O;return o.type===t.Fragment?[...s,...qI(o.children)]:((O=o.type)===null||O===void 0?void 0:O.name)==="CarouselSlide"?[...s,o]:s},[]):[]}function v8({val:e,max:s,min:o=0}){return e>s?v8({val:e-(s+1),max:s,min:o}):e<o?v8({val:e+(s+1),max:s,min:o}):e}function xfe(e,s){let o;return s?function(...O){const W=this;o||(e.apply(W,O),o=!0,setTimeout(()=>o=!1,s))}:e}function wfe(e,s){let o;return function(...O){o&&clearTimeout(o),o=setTimeout(()=>{e(...O),o=null},s)}}function kfe(e="",s={}){return Object.entries(s).reduce((o,[O,W])=>o.replace(`{${O}}`,String(W)),e)}var Sfe=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Od))),s=t.inject("currentSlide",t.ref(0)),o=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},kfe(e.i18n.itemXofY,{currentSlide:s.value+1,slidesCount:o.value}))}}),Tfe=t.defineComponent({name:"Carousel",props:WI,setup(e,{slots:s,emit:o,expose:O}){var W;const b=t.ref(null),g=t.ref([]),a=t.ref(0),_=t.ref(0),h=t.reactive(Object.assign({},Od));let n=Object.assign({},Od),x;const y=t.ref((W=e.modelValue)!==null&&W!==void 0?W:0),v=t.ref(0),u=t.ref(0),r=t.ref(0),i=t.ref(0);let d,l;t.provide("config",h),t.provide("slidesCount",_),t.provide("currentSlide",y),t.provide("maxSlide",r),t.provide("minSlide",i),t.provide("slideWidth",a);function p(){x=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),w(n)}function m(){if(!x||!Object.keys(x).length)return;const re=Object.keys(x).map(se=>Number(se)).sort((se,me)=>+me-+se);let le=Object.assign({},n);re.some(se=>{const me=window.matchMedia(`(min-width: ${se}px)`).matches;return me&&(le=Object.assign(Object.assign({},le),x[se])),me}),w(le)}function w(re){Object.entries(re).forEach(([le,se])=>h[le]=se)}const T=wfe(()=>{m(),A()},16);function A(){if(!b.value)return;const re=b.value.getBoundingClientRect();a.value=re.width/h.itemsToShow}function C(){_.value<=0||(u.value=Math.ceil((_.value-1)/2),r.value=vfe({config:h,slidesCount:_.value}),i.value=_fe({config:h,slidesCount:_.value}),h.wrapAround||(y.value=y8({val:y.value,max:r.value,min:i.value})))}t.onMounted(()=>{t.nextTick(()=>A()),setTimeout(()=>A(),1e3),m(),$(),window.addEventListener("resize",T,{passive:!0}),o("init")}),t.onUnmounted(()=>{l&&clearTimeout(l),d&&clearInterval(d),window.removeEventListener("resize",T,{passive:!0})});let P=!1;const B={x:0,y:0},E={x:0,y:0},I=t.reactive({x:0,y:0}),M=t.ref(!1),S=t.ref(!1),L=()=>{M.value=!0},k=()=>{M.value=!1};function z(re){["INPUT","TEXTAREA","SELECT"].includes(re.target.tagName)||(P=re.type==="touchstart",P||re.preventDefault(),!(!P&&re.button!==0||U.value)&&(B.x=P?re.touches[0].clientX:re.clientX,B.y=P?re.touches[0].clientY:re.clientY,document.addEventListener(P?"touchmove":"mousemove",N,!0),document.addEventListener(P?"touchend":"mouseup",V,!0)))}const N=xfe(re=>{S.value=!0,E.x=P?re.touches[0].clientX:re.clientX,E.y=P?re.touches[0].clientY:re.clientY;const le=E.x-B.x,se=E.y-B.y;I.y=se,I.x=le},h.throttle);function V(){const re=h.dir==="rtl"?-1:1,le=Math.sign(I.x)*.4,se=Math.round(I.x/a.value+le)*re;if(se&&!P){const me=_e=>{_e.stopPropagation(),window.removeEventListener("click",me,!0)};window.addEventListener("click",me,!0)}J(y.value-se),I.x=0,I.y=0,S.value=!1,document.removeEventListener(P?"touchmove":"mousemove",N,!0),document.removeEventListener(P?"touchend":"mouseup",V,!0)}function $(){!h.autoplay||h.autoplay<=0||(d=setInterval(()=>{h.pauseAutoplayOnHover&&M.value||ae()},h.autoplay))}function G(){d&&(clearInterval(d),d=null),$()}const U=t.ref(!1);function J(re){const le=h.wrapAround?re:y8({val:re,max:r.value,min:i.value});y.value===le||U.value||(o("slide-start",{slidingToIndex:re,currentSlideIndex:y.value,prevSlideIndex:v.value,slidesCount:_.value}),U.value=!0,v.value=y.value,y.value=le,l=setTimeout(()=>{if(h.wrapAround){const se=v8({val:le,max:r.value,min:0});se!==y.value&&(y.value=se,o("loop",{currentSlideIndex:y.value,slidingToIndex:re}))}o("update:modelValue",y.value),o("slide-end",{currentSlideIndex:y.value,prevSlideIndex:v.value,slidesCount:_.value}),U.value=!1,G()},h.transition))}function ae(){J(y.value+h.itemsToScroll)}function Y(){J(y.value-h.itemsToScroll)}const te={slideTo:J,next:ae,prev:Y};t.provide("nav",te),t.provide("isSliding",U);const ee=t.computed(()=>bfe({config:h,currentSlide:y.value,slidesCount:_.value}));t.provide("slidesToScroll",ee);const Z=t.computed(()=>{const re=h.dir==="rtl"?-1:1,le=ee.value*a.value*re;return{transform:`translateX(${I.x-le}px)`,transition:`${U.value?h.transition:0}ms`,margin:h.wrapAround?`0 -${_.value*a.value}px`:"",width:"100%"}});function K(){p(),m(),C(),A(),G()}Object.keys(WI).forEach(re=>{["modelValue"].includes(re)||t.watch(()=>e[re],K)}),t.watch(()=>e.modelValue,re=>{re!==y.value&&J(Number(re))}),t.watch(_,C),o("before-init"),p();const ce={config:h,slidesCount:_,slideWidth:a,next:ae,prev:Y,slideTo:J,currentSlide:y,maxSlide:r,minSlide:i,middleSlide:u};O({updateBreakpointsConfigs:m,updateSlidesData:C,updateSlideWidth:A,initDefaultConfigs:p,restartCarousel:K,slideTo:J,next:ae,prev:Y,nav:te,data:ce});const de=s.default||s.slides,he=s.addons,fe=t.reactive(ce);return()=>{const re=qI(de==null?void 0:de(fe)),le=(he==null?void 0:he(fe))||[];re.forEach((ye,xe)=>ye.props.index=xe);let se=re;if(h.wrapAround){const ye=re.map((Ee,Ce)=>t.cloneVNode(Ee,{index:-re.length+Ce,isClone:!0,key:`clone-before-${Ce}`})),xe=re.map((Ee,Ce)=>t.cloneVNode(Ee,{index:re.length+Ce,isClone:!0,key:`clone-after-${Ce}`}));se=[...ye,...re,...xe]}g.value=re,_.value=Math.max(re.length,1);const me=t.h("ol",{class:"carousel__track",style:Z.value,onMousedownCapture:h.mouseDrag?z:null,onTouchstartPassiveCapture:h.touchDrag?z:null},se),_e=t.h("div",{class:"carousel__viewport"},me);return t.h("section",{ref:b,class:{carousel:!0,"is-sliding":U.value,"is-dragging":S.value,"is-hover":M.value,"carousel--rtl":h.dir==="rtl"},dir:h.dir,"aria-label":h.i18n.ariaGallery,tabindex:"0",onMouseenter:L,onMouseleave:k},[_e,le,t.h(Sfe)])}}}),YI;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(YI||(YI={}));var Cfe=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:s}){const o=t.inject("config",t.reactive(Object.assign({},Od))),O=t.inject("currentSlide",t.ref(0)),W=t.inject("slidesToScroll",t.ref(0)),b=t.inject("isSliding",t.ref(!1)),g=()=>e.index===O.value,a=()=>e.index===O.value-1,_=()=>e.index===O.value+1,h=()=>{const n=Math.floor(W.value),x=Math.ceil(W.value+o.itemsToShow-1);return e.index>=n&&e.index<=x};return()=>{var n;return t.h("li",{style:{width:`${100/o.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":h(),"carousel__slide--active":g(),"carousel__slide--prev":a(),"carousel__slide--next":_(),"carousel__slide--sliding":b.value},"aria-hidden":!h()},(n=s.default)===null||n===void 0?void 0:n.call(s))}}});const Efe=(e,s)=>{const o=e.__vccOpts||e;for(const[O,W]of s)o[O]=W;return o},Afe=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),Mfe={class:"gsc-carousel"},Ife={key:0},Pfe=Afe(()=>t.createElementVNode("div",null,"no hay",-1)),Bfe=[Pfe],Lfe={class:"gsc-carousel__2d__slides"},zfe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ofe=["fill"],Ffe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Nfe=["fill"],Dfe={class:"gsc-carousel__2d__navigation"},Rfe={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Vfe=["stroke"],jfe={key:1,class:"gsc-carousel__2d__navigation__pagination"},$fe=["onClick"],Ufe={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Gfe=["stroke"],Hfe={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(s=>s in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:s,emit:o}){const O=e;t.useCssVars(r=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const W=t.ref(null),b=t.ref({}),g=t.ref(0),a=t.ref(!1);t.watch(W,r=>{r&&a.value?(a.value=!1,_(O.items)):r&&r.slideTo&&r.slideTo(g.value)},{deep:!0}),t.watch(()=>O.currentItemIndex,r=>{g.value!==r&&y(r)}),t.watch(()=>O.defaultItemByIndex,r=>{g.value!==r&&y(r)}),t.watch(()=>O.items,r=>{W.value?_(r):a.value=!0},{immediate:!0});function _(r){r&&r.length&&W.value&&setTimeout(()=>{if(O.defaultItemByProp){const i=O.items.findIndex(d=>d[O.defaultItemByProp.propName]===O.defaultItemByProp.value);i!==-1?(g.value=i,b.value=r[i]):(g.value=0,b.value=r[0])}else g.value=O.defaultItemByIndex,b.value=r[O.defaultItemByIndex];W.value.slideTo&&W.value.slideTo(g.value),b.value&&g.value===0&&o("input",{selectedItem:b.value,selectedItemIndex:g.value})},500)}function h(){W.value&&W.value.next()}function n(){W.value&&W.value.prev()}function x(){W.value&&W.value.updateSlideWidth()}function y(r){W.value&&W.value.slideTo(r)}function v(r){W.value.slideTo(r)}function u(r){const i=r.slidingToIndex<0?O.items.length-1:r.slidingToIndex===O.items.length?0:r.slidingToIndex;g.value=i,b.value=O.items[i],o("update:currentItemIndex",i),o("input",{selectedItem:b.value,selectedItemIndex:g.value})}return s({prev:n,next:h,updateSlideWidth:x,slideTo:y}),(r,i)=>(t.openBlock(),t.createElementBlock("div",Mfe,[O.is3d?(t.openBlock(),t.createElementBlock("div",Ife,Bfe)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",Lfe,[t.createVNode(t.unref(Tfe),{ref_key:"carousel2d",ref:W,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:u},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,l)=>(t.openBlock(),t.createBlock(t.unref(Cfe),{key:l},{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{item:d},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:i[0]||(i[0]=d=>W.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",zfe,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,Ofe)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:i[1]||(i[1]=d=>h())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Ffe,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,Nfe)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Dfe,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:i[2]||(i[2]=d=>n())},[(t.openBlock(),t.createElementBlock("svg",Rfe,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:O.arrowsColor},null,8,Vfe)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",jfe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,l)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${l}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${O.navigationHeight}px`,width:`${g.value===l?O.navigationActiveWidth:O.navigationActiveWidth/2}px`,borderRadius:`${O.navigationBorderRadius}px`,backgroundColor:`${g.value===l?O.navigationActiveColor:O.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:p=>v(l)},null,12,$fe))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:i[3]||(i[3]=d=>W.value.next())},[(t.openBlock(),t.createElementBlock("svg",Ufe,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:O.arrowsColor},null,8,Gfe)]))])):t.createCommentVNode("",!0)])],2))]))}},ix=Efe(Hfe,[["__scopeId","data-v-54620d25"]]),Wfe=(e,s)=>{const o=e.__vccOpts||e;for(const[O,W]of s)o[O]=W;return o},_8={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},ZI=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},XI=_8.setup;_8.setup=XI?(e,s)=>(ZI(),XI(e,s)):ZI;const qfe=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),Yfe=["src"],Zfe={key:1,class:"text"},Xfe=["src"],Jfe={class:"stats"},Kfe=qfe(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),Qfe={class:"numstats"},eme={class:"leyend"};function tme(e,s,o,O,W,b){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",W.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([b.customStyle,W.status&&o.typeOnOff&&b.customActive]),onClick:s[0]||(s[0]=(...g)=>b.btnClick&&b.btnClick(...g))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,Yfe)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",Zfe,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,Xfe)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:s[1]||(s[1]=(...g)=>b.btnClick&&b.btnClick(...g))},[t.createElementVNode("div",Jfe,[Kfe,t.createElementVNode("div",Qfe,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",eme,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const nme=Wfe(_8,[["render",tme],["__scopeId","data-v-f3ee6b2b"]]),ame={class:"gsc-dropdown__main-container__item-selected"},rme=["height","width"],ime=["stroke"],ome={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sme=["fill"],lme={class:"gsc-dropdown__items-container"},cme=["onClick"],ume={key:0,class:"gsc-dropdown__items-footer"},b8={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(s=>s in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1},iconType:{type:Number,default:1,validator:function(e){return[1,2].includes(e)}}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:s}){const o=e,O=t.ref({}),W=t.ref(null),b=t.ref(o.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>o.items,(v,u)=>{if(!o.modelValue&&(!o.onlyFirstTime||!u||!u.length)&&v&&v.length){if(o.defaultItemByProp){const r=o.items.findIndex(i=>i[o.defaultItemByProp.propName]===o.defaultItemByProp.value);r!==-1?(b.value=r,O.value=v[r]):(b.value=0,O.value=v[0])}else O.value=v[o.defaultItemByIndex];s("input",O.value)}},{immediate:!0}),t.watch(()=>o.modelValue,v=>{if(v){const u=o.items.findIndex(r=>typeof v=="object"?JSON.stringify(r)===JSON.stringify(v):r===v);u!==-1&&(b.value=u,O.value=o.items[u],s("update:modelValue",O.value))}},{immediate:!0});const a=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-container-padding":o.listContainerPadding,"--list-item-padding":o.listItemPadding,"--list-item-margin":o.listItemMargin,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-border-radius":o.listItemBorderRadius,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--list-margin-top":o.listMarginTop,"--list-left":o.listAlignment==="left"?"0":"auto","--list-right":o.listAlignment==="right"?"0":"auto","--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),_=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function h(){o.isDisabled||(g.value=!g.value)}function n(v){W.value&&!W.value.contains(v.target)&&(g.value=!1)}function x(v,u){o.isMultipleOption?b.value=-1:(b.value=u,g.value=!1),O.value=v,s("input",O.value),s("update:modelValue",O.value)}function y(){g.value=!1,s("click-ready")}return t.onMounted(()=>{document.addEventListener("click",n)}),t.onBeforeMount(()=>{document.removeEventListener("click",n)}),(v,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:W,class:"gsc-dropdown",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:h},[t.createElementVNode("div",ame,[t.renderSlot(v.$slots,"default",{selectedItem:O.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(_.value)},[e.iconType===1?(t.openBlock(),t.createElementBlock("svg",{key:0,height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,ime)],8,rme)):(t.openBlock(),t.createElementBlock("svg",ome,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:e.arrowColor},null,8,sme)]))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",lme,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(r,i)=>(t.openBlock(),t.createElementBlock("div",null,[t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===b.value}]),key:i,onClick:d=>x(r,i)},[t.renderSlot(v.$slots,"availableItem",{item:r})],10,cme)),[[t.vShow,!r.isHidden]])]))),256))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",ume,[t.createVNode(t.unref(nme),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:y})])):t.createCommentVNode("",!0)])],512),[[t.vShow,g.value]])]),_:3})],4))}};let JI=null;const dme={components:{LineupField:zhe,LineupRecentItem:Whe,LineupMainHeader:mpe,LineupFilter:Npe,MatchDetails:jI,GscSwitchComponent:n2,GSCCarousel:ix,GSCDropdown:b8},props:{game:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Recientes"},componentWidth:{type:Number,default:767,validator(e){return e>0}},socket:{type:Object,default:()=>{}}},data(){return{selectedIndexOption:0,rivalHomeImg:"",rivalVisitImg:"",rivalHomeAbrev:"",updatehistoricos:0,rivalVisitAbrev:"",selectOptMenuheader:"Recientes",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",urlGames:"https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/",url:"https://tj4cepyjc4.execute-api.us-west-2.amazonaws.com/prod/lineups/",urlMXM:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",retries:3,teamActive:"home",subsActive:!1,playersHome:[],gamesContainerWidth:0,playersAway:[],subsTitle:!1,uniformHome:"",uniformHomeG:"",uniformAway:"",uniformAwayG:"",dataPlayersHome:[],dataPlayersAway:[],homeTeamLogo:"",awayTeamLogo:"",homeTeamName:"",auxISsection:0,awayTeamName:"",homeTeamAbrev:"",awayTeamAbrev:"",home_team_id:0,updateComponentAway:0,away_team_id:0,substitutionModal:{min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},isInsideClick:!1,homeTeam:{},headerInfoHistoricItemGame:{},visitingTeam:{},gameForAnalysis:{},movil:!1,auxProbablesIDGameHome:0,auxProbablesIDGameAway:0,positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}],vDeleteFilter:!1,gameInfoheader:{},gamesHistoric:[],gamesRecientes:[],matchdaysPerTeam:[],lastGetGame:0,probablyTeam:{acronym:"NEX",img:fhe},localDetails:[],postmatchDescription:"Clausura 2018 I JOR 5 I CHI - ATL 12",showDetails:!1,foreignDetails:[],players:[],filterObject:{selectedFilterResults:["win","draw","lose"],selectedFilterTeam:["visit","local"]},updateCarouselGames:0,teamSelect:"",matchdaysFiltersUpdate:[],gamesFiltersUpdate:[]}},computed:{matchdaysFinal(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==1&&e.push(this.matchdaysFiltersUpdate[s]);for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==3&&e.push(this.matchdaysFiltersUpdate[s])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==1&&e.push(this.matchdaysFiltersUpdate[s]);for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==2&&e.push(this.matchdaysFiltersUpdate[s])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==3&&e.push(this.matchdaysFiltersUpdate[s]);for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==2&&e.push(this.matchdaysFiltersUpdate[s])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==1&&e.push(this.matchdaysFiltersUpdate[s]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==2&&e.push(this.matchdaysFiltersUpdate[s]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==3&&e.push(this.matchdaysFiltersUpdate[s])}else for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)e.push(this.matchdaysFiltersUpdate[s]);else for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)e.push(this.matchdaysFiltersUpdate[s]);return e.sort((s,o)=>o.id-s.id),e},gameRecientesFilter(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==1||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==1)&&e.push(this.gamesFiltersUpdate[s]);for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==3||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==3)&&e.push(this.gamesFiltersUpdate[s])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==1||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==1)&&e.push(this.gamesFiltersUpdate[s]);for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==2||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==2)&&e.push(this.gamesFiltersUpdate[s])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==3||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==3)&&e.push(this.gamesFiltersUpdate[s]);for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==2||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==2)&&e.push(this.gamesFiltersUpdate[s])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==1||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==1)&&e.push(this.gamesFiltersUpdate[s]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==2||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==2)&&e.push(this.gamesFiltersUpdate[s]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==3||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==3)&&e.push(this.gamesFiltersUpdate[s])}else for(let s=0;s<this.gamesFiltersUpdate.length;s++)e.push(this.gamesFiltersUpdate[s]);else for(let s=0;s<this.gamesFiltersUpdate.length;s++)e.push(this.gamesFiltersUpdate[s]);return e.sort((s,o)=>s.matchday_id-o.matchday_id),e},matchHomeProbables(){return this.matchdaysPerTeam[this.gameInfoheader.home_team_abbreviation]},matchAwayProbables(){return this.matchdaysPerTeam[this.gameInfoheader.home_team_abbreviation]},sizeBrowser(){return this.gamesContainerWidth},numPlayer(){return Number(this.playersAway.length)+Number(this.playersHome.length)},benchFillHome(){return this.playersHome.length<this.playersAway.length?this.playersAway.length-this.playersHome.length:0},benchFillAway(){return this.playersAway.length<this.playersHome.length?this.playersHome.length-this.playersAway.length:0},mobileClass(){return this.calendarResizeObserver<768?"break-point-3":""}},async mounted(){if(document.addEventListener("click",this.handleOutsideClick),setTimeout(()=>{this.setUpResizeObserver()},500),this.game||this.$route.params.gameId)try{this.cleaneData(),this.getLineUp(this.game.game_id),await this.getHeaderInfo(this.game),this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter(),this.selectedOption==="Postmatch"&&setTimeout(()=>{this.getMinutesData(this.gameInfoheader.minutes)},600)}catch(e){throw new Error(e)}},beforeDestroy(){document.removeEventListener("click",this.handleOutsideClick)},watch:{selectedOption:{immediate:!1,async handler(e){this.cleaneData(),this.auxProbablesIDGameHome=0,this.auxProbablesIDGameAway=0,e==="Postmatch"&&await this.getLineUp(this.game.game_id),e==="Probables"&&await this.getHeaderInfo(this.game),e==="Recientes"&&(this.auxISsection=1,this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter(),await this.getLineUp(this.gameRecientesFilter[0].id)),e==="Historicos"&&(this.updatehistoricos+=1,this.gamesHistoric&&this.gamesHistoric.length>0&&this.gamesHistoric[0]&&this.gamesHistoric[0].game&&(this.getLineUp(this.gamesHistoric[0].game),this.getMinutesData(this.gamesHistoric[0].objgame.minutes)))}},"socket.connected":{immediate:!0,handler(e){e&&this.getDataSocket()}},game:{immediate:!0,handler:async function(e){try{e!==null&&e!==""&&typeof e>"u"&&(this.cleaneData(),await this.gameDataInfo(e),await this.getHeaderInfo(e),this.selectedOption=="Recientes"&&(this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter(),await this.getLineUp(this.gameRecientesFilter[0].id)),this.selectedOption=="Historicos"&&(this.updatehistoricos+=1,this.gamesHistoric&&this.gamesHistoric.length>0&&this.gamesHistoric[0]&&this.gamesHistoric[0].game&&(this.getLineUp(this.gamesHistoric[0].game),this.getMinutesData(this.gamesHistoric[0].objgame.minutes))))}catch(s){throw new Error(s)}}}},methods:{clickOnDeleteFilter(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickready(){},handleInsideClick(){this.isInsideClick=!0},handleOutsideClick(e){this.$refs.targetElement&&!this.$refs.targetElement.contains(e.target)&&(this.isInsideClick=!1)},remplazarMxJor(e){return e.replace("M","JOR ")},changeSwitchRadio(e){this.auxISsection=1,typeof e!="object"&&(this.teamSelect=e,this.matchFilter(),setTimeout(()=>{this.keyUpdate+=1,this.updateCarouselGames+=1},600))},matchFilter(){var e=[],s=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let o=0;o<this.gamesRecientes[this.teamSelect].length;o++)this.filterObject.selectedFilterTeam[0]=="local"?this.gamesRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect&&(e.push({name:this.gamesRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].home_match_result}),s.push(this.gamesRecientes[this.teamSelect][o])):this.gamesRecientes[this.teamSelect][o].away_team_abbreviation==this.teamSelect&&(e.push({name:this.gamesRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].visiting_match_result}),s.push(this.gamesRecientes[this.teamSelect][o]));else if(this.gamesRecientes[this.teamSelect])for(let o=0;o<this.gamesRecientes[this.teamSelect].length;o++)e.push({name:this.gamesRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gamesRecientes[this.teamSelect][o].home_match_result:this.gamesRecientes[this.teamSelect][o].visiting_match_result}),s.push(this.gamesRecientes[this.teamSelect][o])}else if(this.gamesRecientes[this.teamSelect])for(let o=0;o<this.gamesRecientes[this.teamSelect].length;o++)e.push({name:this.getRound(this.gamesRecientes[this.teamSelect][o].matchday_abbreviation),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gamesRecientes[this.teamSelect][o].home_match_result:this.gamesRecientes[this.teamSelect][o].visiting_match_result}),s.push(this.gamesRecientes[this.teamSelect][o]);this.gamesFiltersUpdate=s,this.matchdaysFiltersUpdate=e},changeFiltersModal(e){this.auxISsection=1,this.filterObject=e,this.matchFilter(),setTimeout(()=>{this.keyUpdate+=1,this.updateCarouselGames+=1},600)},changeDropdownVisit(e){if(this.auxProbablesIDGameAway!=e.id){this.auxProbablesIDGameAway=e.id;const s=this.gamesRecientes[this.gameInfoheader.away_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalVisitAbrev=this.gameInfoheader.away_team_abbreviation==this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][s].home_team_abbreviation?this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][s].away_team_abbreviation:this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][s].home_team_abbreviation,this.rivalVisitImg=this.gameInfoheader.away_team_abbreviation==this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][s].home_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][s].away_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][s].home_team+".png",this.cleaneDataProbablesAway(),this.getLineupDataProbablesAway(this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][s].id)}},changeDropdownLocal(e){if(this.auxProbablesIDGameHome!=e.id){this.auxProbablesIDGameHome=e.id;const s=this.gamesRecientes[this.gameInfoheader.home_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalHomeAbrev=this.gameInfoheader.home_team_abbreviation==this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][s].away_team_abbreviation?this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][s].home_team_abbreviation:this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][s].away_team_abbreviation,this.rivalHomeImg=this.gameInfoheader.home_team_abbreviation==this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][s].away_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][s].home_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][s].away_team+".png",this.cleaneDataProbablesHome(),this.getLineupDataProbablesHome(this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][s].id)}},async getLineupProbables(e){var s={season_id:e.season_id,game_id:e.id};this.lastGetGame!=s.game_id&&(this.cleaneData(),this.getLineUp(s.game_id)),this.lastGetGame=s.game_id},async changeCarouselItemH(e){this.headerInfoHistoricItemGame=e.selectedItem.objgame;var s={season_id:e.selectedItem.season,game_id:e.selectedItem.game};this.cleaneData(),this.getMinutesData(e.selectedItem.objgame.minutes),this.getLineUp(s.game_id)},getMinutesData(e){if(this.localDetails=[],this.foreignDetails=[],e){if(e.home_goals_minutes)for(let s=0;s<e.home_goals_minutes.length;s++)this.localDetails.push({description:e.home_goals_minutes[s],icon:"goal"});if(e.visiting_goals_minutes)for(let s=0;s<e.visiting_goals_minutes.length;s++)this.foreignDetails.push({description:e.visiting_goals_minutes[s],icon:"goal"});if(e.home_yellow_cards_minutes)for(let s=0;s<e.home_yellow_cards_minutes.length;s++)this.localDetails.push({description:e.home_yellow_cards_minutes[s],icon:"yellow-card"});if(e.away_yellow_cards_minutes)for(let s=0;s<e.away_yellow_cards_minutes.length;s++)this.foreignDetails.push({description:e.away_yellow_cards_minutes[s],icon:"yellow-card"});if(e.home_red_cards_minutes)for(let s=0;s<e.home_red_cards_minutes.length;s++)this.localDetails.push({description:e.home_red_cards_minutes[s],icon:"red-card"});if(e.away_red_cards_minutes)for(let s=0;s<e.away_red_cards_minutes.length;s++)this.foreignDetails.push({description:e.away_red_cards_minutes[s],icon:"red-card"})}},changeDropdown(e){if(this.gameRecientesFilter&&this.gameRecientesFilter.length>0)if(this.auxISsection==1)this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id};else{const s=this.gameRecientesFilter.findIndex(o=>o.matchday_id==e.id);s!=-1&&(this.selectedIndexOption=s),this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[s].matchday_id}}},clickOnValueFilter(){this.auxISsection=0},clickOnValueCarrousel(){this.auxISsection=0},async changeCarouselItem(e){setTimeout(()=>{if(this.gameRecientesFilter&&this.gameRecientesFilter.length>0&&e){e.selectedItem===void 0&&(e.selectedItem=this.gameRecientesFilter[this.gameRecientesFilter.length-1],e.selectedItemIndex=this.gameRecientesFilter.length-1);var s={};this.auxISsection==1?s={season_id:this.gameRecientesFilter[this.gameRecientesFilter.length-1].season_id,game_id:this.gameRecientesFilter[this.gameRecientesFilter.length-1].id}:s={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id},this.lastGetGame!=s.game_id&&(this.cleaneData(),this.getLineUp(s.game_id)),this.auxISsection==1?(this.getMinutesData(this.gameRecientesFilter[this.gameRecientesFilter.length-1].minutes),this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].minutes.matchday_id},this.lastGetGame=s.game_id):(this.getMinutesData(e.selectedItem.minutes),this.defaultDropItem={propName:"id",value:e.selectedItem.matchday_id},this.lastGetGame=s.game_id,this.selectedIndexOption=e.selectedItemIndex),this.keyUpdate+=1}},200)},async changeCarouselItemRecent(e){if(e.selectedItem){var s={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id};this.lastGetGame!=s.game_id&&(this.cleaneData(),this.getLineUp(s.game_id)),this.lastGetGame=s.game_id}},getRound(e){let s=e.replace("M","Jornada ");return s=s.replace("PO1","CFI"),s=s.replace("PO2","CFV"),s=s.replace("PO3","SFI"),s=s.replace("PO4","SFV"),s=s.replace("PO5","FI"),s=s.replace("PO6","FV"),s},getRoundH(e){let s=e.replace("M","J");return s=s.replace("PO1","CFI"),s=s.replace("PO2","CFV"),s=s.replace("PO3","SFI"),s=s.replace("PO4","SFV"),s=s.replace("PO5","FI"),s=s.replace("PO6","FV"),s},async getHeaderInfo(e){const s=await Qh.create({headers:{Authorization:`${this.tokenPremium}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+e.season_id+"/games/"+e.game_id+"/lineups");if(this.gameInfoheader=s.data.game,s.data.games_historic&&s.data.games_historic.length>0)for(let o=0;o<s.data.games_historic.length;o++)this.gamesHistoric.push({objgame:s.data.games_historic[o],game:s.data.games_historic[o].id,season:s.data.games_historic[o].season_id,description:s.data.games_historic[o].season_name+" | "+this.getRoundH(s.data.games_historic[o].matchday_abbreviation)+" | "+s.data.games_historic[o].home_team_abbreviation+" - "+s.data.games_historic[o].away_team_abbreviation});if(this.gamesRecientes[s.data.game.home_team_abbreviation]=[],this.gamesRecientes[s.data.game.away_team_abbreviation]=[],this.matchdaysPerTeam[s.data.game.home_team_abbreviation]=[],this.matchdaysPerTeam[s.data.game.away_team_abbreviation]=[],s.data.home_team_games_recent&&s.data.home_team_games_recent.length>0)for(let o=0;o<s.data.home_team_games_recent.length;o++)this.gamesRecientes[s.data.game.home_team_abbreviation].push(s.data.home_team_games_recent[o]),this.matchdaysPerTeam[s.data.game.home_team_abbreviation].push({name:this.getRound(s.data.home_team_games_recent[o].matchday_abbreviation),id:s.data.home_team_games_recent[o].matchday_id});if(s.data.away_team_games_recent&&s.data.away_team_games_recent.length>0)for(let o=0;o<s.data.away_team_games_recent.length;o++)this.gamesRecientes[s.data.game.away_team_abbreviation].push(s.data.away_team_games_recent[o]),this.matchdaysPerTeam[s.data.game.away_team_abbreviation].push({name:s.data.away_team_games_recent[o].matchday_abbreviation.replace("M","Jornada "),id:s.data.away_team_games_recent[o].matchday_id})},clickOnSelectOption(e){this.selectOptMenuheader=e},async gameDataInfo(e){const s=await Qh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlGames+e.season_id+"/games/"+e.game_id);this.homeTeam=s.data.teams[0],this.visitingTeam=s.data.teams[1];const o=s.data.games.find(O=>O.game_id===Number(O.game_id));this.gameForAnalysis=o},cleaneDataProbablesHome(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.dataPlayersHome=[],this.players=this.players.filter(e=>e.team_id!==this.gameInfoheader.home_team),this.homeTeamLogo="",this.homeTeamName="",this.homeTeamAbrev="",this.home_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneDataProbablesAway(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.gamesContainerWidth=0,this.playersAway=[],this.subsTitle=!1,this.uniformAway="",this.uniformAwayG="",this.dataPlayersAway=[],this.awayTeamLogo="",this.awayTeamName="",this.players=this.players.filter(e=>e.team_id!==this.gameInfoheader.away_team),this.awayTeamAbrev="",this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneData(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.playersAway=[],this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.uniformAway="",this.uniformAwayG="",this.dataPlayersHome=[],this.dataPlayersAway=[],this.homeTeamLogo="",this.awayTeamLogo="",this.homeTeamName="",this.awayTeamName="",this.homeTeamAbrev="",this.awayTeamAbrev="",this.home_team_id=0,this.players=[],this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},getDataSocket(){Iy("lineups.game."+this.game.game_id,this.socket),Iy("mxm.game."+this.game.game_id,this.socket),Iy("lineups.bench.game."+this.game.game_id,this.socket)},resetPlayUpdate(e,s,o,O){if(e=="Substitution")if(s=="Home"){var W=this.playersHome[o].substitutionDataID.split("@"),b=this.playersHome.findIndex(n=>n.playerId==W[1]),g=this.playersHome.findIndex(n=>n.playerId==W[2]);b!=-1&&(this.playersHome[b].substitutionOut=!1,this.playersHome[b].substitutionMin="",this.playersHome[b].substitutionDataID="",this.playersHome[b].idSubstitution=0),g!=-1&&(this.playersHome[g].substitutionIn=!1,this.playersHome[g].substitutionMin="",this.playersHome[g].substitutionDataID="",this.playersHome[g].idSubstitution=0)}else{var a=this.playersAway[o].substitutionDataID.split("@"),_=this.playersAway.findIndex(n=>n.playerId==a[1]),h=this.playersAway.findIndex(n=>n.playerId==a[2]);b!=-1&&(this.playersAway[_].substitutionOut=!1,this.playersAway[_].substitutionMin="",this.playersAway[_].substitutionDataID="",this.playersAway[_].idSubstitution=0),h!=-1&&(this.playersAway[h].substitutionIn=!1,this.playersAway[h].substitutionMin="",this.playersAway[h].substitutionDataID="",this.playersAway[h].idSubstitution=0)}e=="YellowCard"&&(s=="Home"?(this.playersHome[o].yellowcards=0,this.playersHome[o].yellowcardsMin=0,this.playersHome[o].idyellowcards=0):(this.playersAway[o].yellowcards=0,this.playersAway[o].yellowcardsMin=0,this.playersAway[o].idyellowcards=0)),e=="RedCard"&&(s=="Home"?(this.playersHome[o].redcards=0,this.playersHome[o].redcardsMin=0,this.playersHome[o].idredcards=0):(this.playersAway[o].redcards=0,this.playersAway[o].redcardsMin=0,this.playersAway[o].idredcards=0)),e=="Goals"&&(s=="Home"?(this.playersHome[O].goals=this.playersHome[O].goals-1,this.playersHome[O].goalsMin.splice(o,1),this.playersHome[O].idsGoals.splice(o,1)):(this.playersAway[O].goals=this.playersAway[O].goals-1,this.playersAway[O].goalsMin.splice(o,1),this.playersAway[O].idsGoals.splice(o,1)))},setUpResizeObserver(){if(window.ResizeObserver)JI=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),JI.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const v=await Qh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlMXM+e);for(let u=0;u<v.data.plays.length;u++){if(v.data.plays[u].event_type_id==3){if(v.data.plays[u].team_id==this.home_team_id){if(this.players.length>0){var s=v.data.plays[u].player_id.split("@"),o=this.players.findIndex(r=>r.playerId==s[0]),O=this.players.findIndex(r=>r.playerId==s[1]);o!=-1&&(this.players[o].idSubstitution=v.data.plays[u].play_id,this.players[o].substitutionOut=!0,this.players[o].substitutionMin=v.data.plays[u].minute,this.players[o].substitutionDataID=v.data.plays[u].team_id+"@"+v.data.plays[u].player_id),O!=-1&&(this.players[O].idSubstitution=v.data.plays[u].play_id,this.players[O].substitutionIn=!0,this.players[O].substitutionMin=v.data.plays[u].minute,this.players[O].substitutionDataID=v.data.plays[u].team_id+"@"+v.data.plays[u].player_id)}}else if(this.players.length>0){var W=v.data.plays[u].player_id.split("@"),b=this.players.findIndex(r=>r.playerId==W[0]),g=this.players.findIndex(r=>r.playerId==W[1]);b!=-1&&(this.players[b].idSubstitution=v.data.plays[u].play_id,this.players[b].substitutionOut=!0,this.players[b].substitutionMin=v.data.plays[u].minute,this.players[b].substitutionDataID=v.data.plays[u].team_id+"@"+v.data.plays[u].player_id),g!=-1&&(this.players[g].idSubstitution=v.data.plays[u].play_id,this.players[g].substitutionIn=!0,this.players[g].substitutionMin=v.data.plays[u].minute,this.players[g].substitutionDataID=v.data.plays[u].team_id+"@"+v.data.plays[u].player_id)}}if(v.data.plays[u].event_type_id==1){if(v.data.plays[u].team_id==this.home_team_id){if(this.players.length>0){var a=this.players.findIndex(r=>r.playerId==v.data.plays[u].player_id);a!=-1&&(this.players[a].goals+=1,this.players[a].goalsMin.push(v.data.plays[u].minute),this.players[a].idsGoals.push(v.data.plays[u].play_id))}}else if(this.players.length>0){var _=this.players.findIndex(r=>r.playerId==v.data.plays[u].player_id);_!=-1&&(this.players[_].goals+=1,this.players[_].goalsMin.push(v.data.plays[u].minute),this.players[_].idsGoals.push(v.data.plays[u].play_id))}}if(v.data.plays[u].event_type_id==2){if(v.data.plays[u].category_id==8){if(v.data.plays[u].team_id==this.home_team_id){if(this.players.length>0){var h=this.players.findIndex(r=>r.playerId==v.data.plays[u].player_id);h!=-1&&(this.players[h].yellowcards+=1,this.players[h].yellowcardsMin=v.data.plays[u].minute,this.players[h].idyellowcards=v.data.plays[u].play_id)}}else if(this.players.length>0){var n=this.players.findIndex(r=>r.playerId==v.data.plays[u].player_id);n!=-1&&(this.players[n].yellowcards+=1,this.players[n].yellowcardsMin=v.data.plays[u].minute,this.players[n].idyellowcards=v.data.plays[u].play_id)}}if(v.data.plays[u].category_id==9){if(v.data.plays[u].team_id==this.home_team_id){if(this.players.length>0){var x=this.players.findIndex(r=>r.playerId==v.data.plays[u].player_id);x!=-1&&(this.players[x].redcards+=1,this.players[x].redcardsMin=v.data.plays[u].minute,this.players[x].idredcards=v.data.plays[u].play_id)}}else if(this.players.length>0){var y=this.players.findIndex(r=>r.playerId==v.data.plays[u].player_id);y!=-1&&(this.players[y].redcards+=1,this.players[y].redcardsMin=v.data.plays[u].minute,this.players[y].idredcards=v.data.plays[u].play_id)}}}}}catch(v){return Promise.reject(v)}},async getLineupDataProbablesAway(e){try{const _=await Qh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!_||!_.data)throw new Error("There is not lineups for this game.");if(_.data.home_team.team_id==this.gameInfoheader.away_team){for(let h=0;h<_.data.home_team.starting_lineup[0].lineup.length;h++){this.away_team_id=_.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.home_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.home_team.team_id+"_g.svg","away",0);var s=_.data.home_team.starting_lineup[0].lineup[h].player_name.split(","),o=s[0].split(" "),O=s[1].trim().split(" "),W="";o.length==2||o.length==1?o[0].length<4?W=o[0]+" "+o[1]:W=o[0]:o.length==3?W=o[0]+" "+o[1]:o.length==4&&(W=o[1]+" "+o[2]+" "+o[3]);var b=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";W=W.replace(",","");var g=_.data.home_team.starting_lineup[0].lineup[h].x;g=Math.abs(g-100);var a=100-(100-g)*50/100;a=a*.9,this.players.push({team_id:_.data.home_team.team_id,number:_.data.home_team.starting_lineup[0].lineup[h].jersey_number,isFirstTeam:!1,name:b+". "+W,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.home_team.starting_lineup[0].lineup[h].player_id+".png",posX:a+7,posY:_.data.home_team.starting_lineup[0].lineup[h].y,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.home_team.team_id+".png"}this.playersAway.sort((h,n)=>h.position_id>n.position_id?1:n.position_id>h.position_id?-1:0)}if(_.data.away_team.team_id==this.gameInfoheader.away_team)for(let h=0;h<_.data.away_team.starting_lineup[0].lineup.length;h++){this.away_team_id=_.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.away_team.team_id+"_g.svg","away",0);var s=_.data.away_team.starting_lineup[0].lineup[h].player_name.split(","),o=s[0].split(" "),O=s[1].trim().split(" "),W="";o.length==2||o.length==1?o[0].length<4?W=o[0]+" "+o[1]:W=o[0]:o.length==3?W=o[0]+" "+o[1]:o.length==4&&(W=o[1]+" "+o[2]+" "+o[3]);var b=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";W=W.replace(",","");var g=_.data.away_team.starting_lineup[0].lineup[h].x,a=100-(100-g)*50/100;a=a*.9,this.players.push({team_id:_.data.away_team.team_id,number:_.data.away_team.starting_lineup[0].lineup[h].jersey_number,isFirstTeam:!1,name:b+". "+W,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.away_team.starting_lineup[0].lineup[h].player_id+".png",posX:100-(100-_.data.away_team.starting_lineup[0].lineup[h].x)*50/100,posY:_.data.away_team.starting_lineup[0].lineup[h].y,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.away_team.team_id+".png"}}catch(_){return Promise.reject(_)}},async getLineupDataProbablesHome(e){try{const n=await Qh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!n||!n.data)throw new Error("There is not lineups for this game.");if(n.data.home_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=n.data.home_team.players,n.data.home_team.starting_lineup[0].lineup.sort((x,y)=>x.position_id>y.position_id?1:y.position_id>x.position_id?-1:0);for(let x=0;x<n.data.home_team.starting_lineup[0].lineup.length;x++){this.home_team_id=n.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+n.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+n.data.home_team.team_id+"_g.svg","home",0);var s=n.data.home_team.starting_lineup[0].lineup[x].player_name.split(","),o=s[0].split(" "),O=s[1].trim().split(" "),W="";o.length==2||o.length==1?o[0].length<4?W=o[0]+" "+o[1]:W=o[0]:o.length==3?W=o[0]+" "+o[1]:o.length==4&&(W=o[1]+" "+o[2]+" "+o[3]);var b=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";W=W.replace(",","");var g=n.data.home_team.starting_lineup[0].lineup[x].x,a=g*50/100;this.players.push({team_id:n.data.home_team.team_id,number:n.data.home_team.starting_lineup[0].lineup[x].jersey_number,isFirstTeam:!0,name:b+". "+W,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+n.data.home_team.starting_lineup[0].lineup[x].player_id+".png",posX:n.data.home_team.starting_lineup[0].lineup[x].x*50/100,posY:n.data.home_team.starting_lineup[0].lineup[x].y,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+n.data.home_team.team_id+".png"}}if(n.data.away_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=n.data.away_team.players,n.data.away_team.starting_lineup[0].lineup.sort((x,y)=>x.position_id>y.position_id?1:y.position_id>x.position_id?-1:0);for(let x=0;x<n.data.away_team.starting_lineup[0].lineup.length;x++){this.home_team_id=n.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+n.data.away_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+n.data.away_team.team_id+"_g.svg","home",0);var s=n.data.away_team.starting_lineup[0].lineup[x].player_name.split(","),o=s[0].split(" "),O=s[1].trim().split(" "),W="";o.length==2||o.length==1?o[0].length<4?W=o[0]+" "+o[1]:W=o[0]:o.length==3?W=o[0]+" "+o[1]:o.length==4&&(W=o[1]+" "+o[2]+" "+o[3]);var b=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";W=W.replace(",","");var _=n.data.away_team.starting_lineup[0].lineup[x].x;_=Math.abs(_-100);var a=_*50/100,h=n.data.away_team.starting_lineup[0].lineup[x].y;h=Math.abs(h-100),this.players.push({team_id:n.data.away_team.team_id,number:n.data.away_team.starting_lineup[0].lineup[x].jersey_number,isFirstTeam:!0,name:b+". "+W,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+n.data.away_team.starting_lineup[0].lineup[x].player_id+".png",posX:a-2,posY:h-9,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+n.data.away_team.team_id+".png"}}}catch(n){return Promise.reject(n)}},async getLineUp(e){if(phe(),!this.playersHome.length)try{const z=await Qh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!z||!z.data)throw new Error("There is not lineups for this game.");this.players=[],this.dataPlayersHome=z.data.home_team.players,this.dataPlayersAway=z.data.away_team.players,z.data.home_team.starting_lineup[0].lineup.sort((N,V)=>N.position_id>V.position_id?1:V.position_id>N.position_id?-1:0);for(let N=0;N<z.data.home_team.starting_lineup[0].lineup.length;N++){this.home_team_id=z.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+z.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+z.data.home_team.team_id+"_g.svg","home",0);var s=z.data.home_team.starting_lineup[0].lineup[N].player_name.split(","),o=s[0].split(" "),O=s[1].trim().split(" "),W="";o.length==2||o.length==1?o[0].length<4?W=o[0]+" "+o[1]:W=o[0]:o.length==3?W=o[0]+" "+o[1]:o.length==4&&(W=o[1]+" "+o[2]+" "+o[3]);var b=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";W=W.replace(",","");var g=b+". "+W,a=z.data.home_team.starting_lineup[0].lineup[N].x,_=a*50/100,h=z.data.home_team.players.findIndex(V=>V.player_id==z.data.home_team.starting_lineup[0].lineup[N].player_id);this.players.push({playerId:z.data.home_team.starting_lineup[0].lineup[N].player_id,number:z.data.home_team.starting_lineup[0].lineup[N].jersey_number,isFirstTeam:!0,name:b+". "+W,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+z.data.home_team.starting_lineup[0].lineup[N].player_id+".png",posX:z.data.home_team.starting_lineup[0].lineup[N].x*50/100,posY:z.data.home_team.starting_lineup[0].lineup[N].y,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.playersHome.push({played:!0,name:z.data.home_team.starting_lineup[0].lineup[N].player_name,position:this.positions[z.data.home_team.players[h].position_id-1].name,position_id:z.data.home_team.players[h].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+z.data.home_team.starting_lineup[0].lineup[N].player_id+".png",nationality:z.data.home_team.players[h].nationality?z.data.home_team.players[h].nationality.substring(0,3):"",imgNationality:z.data.home_team.players[h].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:g,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+z.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:z.data.home_team.starting_lineup[0].lineup[N].jersey_number,positionX:z.data.home_team.starting_lineup[0].lineup[N].y-13,positionY:_*.9,positionXOrigin:z.data.home_team.starting_lineup[0].lineup[N].y-17,positionYOrigin:z.data.home_team.starting_lineup[0].lineup[N].x-2,playerId:z.data.home_team.starting_lineup[0].lineup[N].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:z.data.home_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+z.data.home_team.team_id+".png"}if(this.playersHome.sort((N,V)=>N.position_id>V.position_id?1:V.position_id>N.position_id?-1:0),z.data.home_team.bench){for(let N=0;N<z.data.home_team.bench.length;N++){this.subsTitle=!0;var n=z.data.home_team.bench[N].playerName.split(","),x=n[0].split(" "),y=n[1].trim().split(" "),v="";x.length==2||x.length==1?x[0].length<4?v=x[0]+" "+x[1]:v=x[0]:x.length==3?v=x[0]+" "+x[1]:x.length==4&&(v=x[1]+" "+x[2]+" "+x[3]);var u=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";v=v.replace(",","");var r=u+". "+v,i=z.data.home_team.players.findIndex(V=>V.player_id==z.data.home_team.bench[N].playerID);this.playersHome.push({played:!1,name:z.data.home_team.bench[N].playerName,position:i!=-1?this.positions[z.data.home_team.players[i].position_id-1].name:"",position_id:z.data.home_team.players[i].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+z.data.home_team.bench[N].playerID+".png",nationality:i!=-1&&z.data.home_team.players[i].nationality?z.data.home_team.players[i].nationality.substring(0,3):"",imgNationality:i!=-1?z.data.home_team.players[i].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+z.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:z.data.home_team.bench[N].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:z.data.home_team.bench[N].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:z.data.home_team.team_id})}this.playersHome.sort((N,V)=>N.position_id>V.position_id?1:V.position_id>N.position_id?-1:0)}for(let N=0;N<z.data.away_team.starting_lineup[0].lineup.length;N++){this.away_team_id=z.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+z.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+z.data.away_team.team_id+"_g.svg","away",0);var d=z.data.away_team.starting_lineup[0].lineup[N].player_name.split(","),l=d[0].split(" "),p=d[1].trim().split(" "),m="";l.length==2||l.length==1?l[0].length<4?m=l[0]+" "+l[1]:m=l[0]:l.length==3?m=l[0]+" "+l[1]:l.length==4&&(m=l[1]+" "+l[2]+" "+l[3]);var w=p[O.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";m=m.replace(",","");var T=w+". "+m,A=z.data.away_team.starting_lineup[0].lineup[N].x,C=100-(100-A)*50/100;C=C*.9;var P=z.data.away_team.players.findIndex(V=>V.player_id==z.data.away_team.starting_lineup[0].lineup[N].player_id);this.players.push({playerId:z.data.away_team.starting_lineup[0].lineup[N].player_id,number:z.data.away_team.starting_lineup[0].lineup[N].jersey_number,isFirstTeam:!1,name:w+". "+m,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+z.data.away_team.starting_lineup[0].lineup[N].player_id+".png",posX:100-(100-z.data.away_team.starting_lineup[0].lineup[N].x)*50/100,posY:z.data.away_team.starting_lineup[0].lineup[N].y,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.playersAway.push({played:!0,name:z.data.away_team.starting_lineup[0].lineup[N].player_name,position:this.positions[z.data.away_team.players[P].position_id-1].name,position_id:z.data.away_team.players[P].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+z.data.away_team.starting_lineup[0].lineup[N].player_id+".png",nationality:z.data.away_team.players[P].nationality?z.data.away_team.players[P].nationality.substring(0,3):"",imgNationality:z.data.away_team.players[P].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:T,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+z.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:z.data.away_team.starting_lineup[0].lineup[N].jersey_number,positionX:z.data.away_team.starting_lineup[0].lineup[N].y-13,positionY:C,positionXOrigin:z.data.away_team.starting_lineup[0].lineup[N].y-17,positionYOrigin:z.data.away_team.starting_lineup[0].lineup[N].x-7,playerId:z.data.away_team.starting_lineup[0].lineup[N].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:z.data.away_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+z.data.away_team.team_id+".png"}if(this.playersAway.sort((N,V)=>N.position_id>V.position_id?1:V.position_id>N.position_id?-1:0),z.data.away_team.bench){for(let N=0;N<z.data.away_team.bench.length;N++){this.subsTitle=!0;var B=z.data.away_team.bench[N].playerName.split(","),E=B[0].split(" "),I=B[1].trim().split(" "),M="";E.length==2||E.length==1?E[0].length<4?M=E[0]+" "+E[1]:M=E[0]:E.length==3?M=E[0]+" "+E[1]:E.length==4&&(M=E[1]+" "+E[2]+" "+E[3]);var S=I[I.length-1]!=""?I[I.length-1].charAt(0):I[I.length-2]?I[I.length-2].charAt(0):"";M=M.replace(",","");var L=S+". "+M,k=z.data.away_team.players.findIndex(V=>V.player_id==z.data.away_team.bench[N].playerID);this.playersAway.push({played:!1,name:z.data.away_team.bench[N].playerName,position:k!=-1?this.positions[z.data.away_team.players[k].position_id-1].name:"",position_id:z.data.away_team.players[k].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+z.data.away_team.bench[N].playerID+".png",nationality:k!=-1&&z.data.away_team.players[k].nationality?z.data.away_team.players[k].nationality.substring(0,3):"",imgNationality:k!=-1?z.data.away_team.players[k].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:L,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+z.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:z.data.away_team.bench[N].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:z.data.away_team.bench[N].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:z.data.away_team.team_id})}this.playersAway.sort((N,V)=>N.position_id>V.position_id?1:V.position_id>N.position_id?-1:0)}this.getMXM(e)}catch(z){return Promise.reject(z)}},closeChange(){this.subsActive=!1},imageExists(e,s,o){var O=new XMLHttpRequest,W=0;s=="away"?o==1?this.uniformAway==""&&(O.open("HEAD",e,!1),O.send(),W=1):this.uniformAwayG==""&&(O.open("HEAD",e,!1),O.send(),W=1):o==1?this.uniformHome==""&&(O.open("HEAD",e,!1),O.send(),W=1):this.uniformHomeG==""&&(O.open("HEAD",e,!1),O.send(),W=1),W==1&&(O.status==200?s=="away"?o==1?this.uniformAway="url("+e+")":this.uniformAwayG="url("+e+")":o==1?this.uniformHome="url("+e+")":this.uniformHomeG="url("+e+")":s=="away"?o==1?this.uniformAway="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita_g.svg)":o==1?this.uniformHome="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local_g.svg)")},viewChange(e){var s=e.split("@");if(s[0]==this.home_team_id){var o=this.playersHome.findIndex(g=>g.playerId==s[1]),O=this.playersHome.findIndex(g=>g.playerId==s[2]);o!=-1?(this.substitutionModal.min=this.playersHome[o].substitutionMin,this.substitutionModal.in.name=this.playersHome[o].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[o].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[o].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[o].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[o].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),O!=-1?(this.substitutionModal.out.name=this.playersHome[O].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[O].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[O].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[O].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[O].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}else{var W=this.playersAway.findIndex(g=>g.playerId==s[1]),b=this.playersAway.findIndex(g=>g.playerId==s[2]);W!=-1?(this.substitutionModal.min=this.playersAway[W].substitutionMin,this.substitutionModal.in.name=this.playersAway[W].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[W].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[W].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[W].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[W].shirt_number):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),b!=-1?(this.substitutionModal.out.name=this.playersAway[b].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[b].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[b].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[b].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[b].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}this.subsActive=!0},viewLineupTeam(e){this.teamActive=e}},sockets:{new_bench([e,s]){if(s[this.home_team_id]){this.playersHome=this.playersHome.filter(function(i){return!i.isbench});for(let i=0;i<s[this.home_team_id].length;i++)if(!s[this.home_team_id][i].isTitular){this.subsTitle=!0;var o=s[this.home_team_id][i].playerName.split(","),O=o[0].split(" "),W=o[1].trim().split(" "),b="";O.length==2||O.length==1?O[0].length<4?b=O[0]+" "+O[1]:b=O[0]:O.length==3?b=O[0]+" "+O[1]:O.length==4&&(b=O[1]+" "+O[2]+" "+O[3]);var g=W[W.length-1]!=""?W[W.length-1].charAt(0):W[W.length-2]?W[W.length-2].charAt(0):"";b=b.replace(",","");var a=g+". "+b,_=this.dataPlayersHome.findIndex(d=>d.player_id==s[this.home_team_id][i].playerID);this.playersHome.push({played:!1,name:s[this.home_team_id][i].playerName,position:_!=-1?this.positions[this.dataPlayersHome[_].position_id-1].name:"",position_id:this.dataPlayersHome[_].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s[this.home_team_id][i].playerID+".png",nationality:_!=-1&&this.dataPlayersHome[_].nationality?this.dataPlayersHome[_].nationality.substring(0,3):"",imgNationality:_!=-1?this.dataPlayersHome[_].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:a,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+this.home_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s[this.home_team_id][i].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:s[this.home_team_id][i].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersHome.sort((i,d)=>i.position_id>d.position_id?1:d.position_id>i.position_id?-1:0)}if(s[this.away_team_id]){this.playersAway=this.playersAway.filter(function(i){return!i.isbench});for(let i=0;i<s[this.away_team_id].length;i++)if(!s[this.away_team_id][i].isTitular){this.subsTitle=!0;var h=s[this.away_team_id][i].playerName.split(","),n=h[0].split(" "),x=o[1].trim().split(" "),y="";n.length==2||n.length==1?n[0].length<4?y=n[0]+" "+n[1]:y=n[0]:n.length==3?y=n[0]+" "+n[1]:n.length==4&&(y=n[1]+" "+n[2]+" "+n[3]);var v=x[x.length-1]!=""?x[x.length-1].charAt(0):x[x.length-2]?x[x.length-2].charAt(0):"";y=y.replace(",","");var u=v+". "+y,r=this.dataPlayersAway.findIndex(d=>d.player_id==s[this.away_team_id][i].playerID);this.playersAway.push({played:!1,name:s[this.away_team_id][i].playerName,position:r!=-1?this.positions[this.dataPlayersAway[r].position_id-1].name:"",position_id:this.dataPlayersAway[r].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s[this.away_team_id][i].playerID+".png",nationality:r!=-1&&this.dataPlayersAway[r].nationality?this.dataPlayersAway[r].nationality.substring(0,3):"",imgNationality:r!=-1?this.dataPlayersAway[r].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+this.away_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s[this.away_team_id][i].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:s[this.away_team_id][i].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersAway.sort((i,d)=>i.position_id>d.position_id?1:d.position_id>i.position_id?-1:0)}},new_lineup([e,s]){if(s.team_id==s.home_team.team_id){if(this.playersHome.length==0){this.dataPlayersHome=s.home_team.players;for(let m=0;m<s.data.length;m++){this.home_team_id=s.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.team_id+"_g.svg","home",0);var o=s.data[m].player_name.split(","),O=o[0].split(" "),W=o[1].trim().split(" "),b="";O.length==2||O.length==1?O[0].length<4?b=O[0]+" "+O[1]:b=O[0]:O.length==3?b=O[0]+" "+O[1]:O.length==4&&(b=O[1]+" "+O[2]+" "+O[3]);var g=W[W.length-1]!=""?W[W.length-1].charAt(0):W[W.length-2]?W[W.length-2].charAt(0):"";b=b.replace(",","");var a=g+". "+b,_=s.data[m].x,h=_*50/100,n=s.home_team.players.findIndex(w=>w.player_id==s.data[m].player_id);this.playersHome.push({played:!0,name:s.data[m].player_name,position:n!=-1?this.positions[s.home_team.players[n].position_id-1].name:"",position_id:s.home_team.players[n].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s.data[m].player_id+".png",nationality:n!=-1&&s.home_team.players[n].nationality?s.home_team.players[n].nationality.substring(0,3):"",imgNationality:n!=-1?s.home_team.players[n].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:a,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s.data[m].jersey_number,positionX:s.data[m].y-13,positionY:h*.9,positionXOrigin:s.data[m].y-17,positionYOrigin:s.data[m].x-2,playerId:s.data[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:s.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+s.team_id+".png"}this.playersHome.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0)}}else if(this.playersAway.length==0){this.dataPlayersAway=s.away_team.players;for(let m=0;m<s.data.length;m++){this.away_team_id=s.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.team_id+"_g.svg","away",0);var x=s.data[m].player_name.split(","),y=x[0].split(" "),v=x[1].trim().split(" "),u="";y.length==2||y.length==1?y[0].length<4?u=y[0]+" "+y[1]:u=y[0]:y.length==3?u=y[0]+" "+y[1]:y.length==4&&(u=y[1]+" "+y[2]+" "+y[3]);var r=v[v.length-1]!=""?v[v.length-1].charAt(0):v[v.length-2]?v[v.length-2].charAt(0):"";u=u.replace(",","");var i=r+". "+u,d=s.data[m].x,l=100-(100-d)*50/100;l=l*.9;var p=s.away_team.players.findIndex(w=>w.player_id==s.data[m].player_id);this.playersAway.push({played:!0,name:s.data[m].player_name,position:p!=-1?this.positions[s.away_team.players[p].position_id-1].name:"",position_id:s.away_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s.data[m].player_id+".png",nationality:p!=-1&&s.away_team.players[p].nationality?s.away_team.players[p].nationality.substring(0,3):"",imgNationality:p!=-1?s.away_team.players[p].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:i,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s.data[m].jersey_number,positionX:s.data[m].y-13,positionY:l+2,positionXOrigin:s.data[m].y-17,positionYOrigin:s.data[m].x-7,playerId:s.data[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:s.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+s.team_id+".png"}this.playersAway.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0)}},update_mxm([e,s]){var o=-1,O=-1;if(this.players.length>0){var W=this.players.findIndex(C=>C.idredcards==s.play_id),b=this.players.findIndex(C=>C.idyellowcards==s.play_id),g=this.players.findIndex(C=>C.idSubstitution==s.play_id);for(let C=0;C<this.players.length;C++){var a=this.players[C].idsGoals.findIndex(P=>P==s.play_id);a!=-1&&(o=a,O=C)}W!=-1&&this.resetPlayUpdate("RedCard","Home",W,O),b!=-1&&this.resetPlayUpdate("YellowCard","Home",b,O),g!=-1&&this.resetPlayUpdate("Substitution","Home",g,O),o!=-1&&this.resetPlayUpdate("Goals","Home",o,O)}if(this.players.length>0){var _=this.players.findIndex(C=>C.idredcards==s.play_id),h=this.players.findIndex(C=>C.idyellowcards==s.play_id),n=this.players.findIndex(C=>C.idSubstitution==s.play_id);for(let C=0;C<this.players.length;C++){var x=this.players[C].idsGoals.findIndex(P=>P==s.play_id);x!=-1&&(o=x,O=C)}_!=-1&&this.resetPlayUpdate("RedCard","Away",_,O),h!=-1&&this.resetPlayUpdate("YellowCard","Away",h,O),n!=-1&&this.resetPlayUpdate("Substitution","Away",n,O),o!=-1&&this.resetPlayUpdate("Goals","Away",o,O)}if(s.event_type_id==3){if(s.team_id==this.home_team_id){if(this.players.length>0){var y=s.player_id.split("@"),v=this.players.findIndex(C=>C.playerId==y[0]),u=this.players.findIndex(C=>C.playerId==y[1]);v!=-1&&(this.players[v].idSubstitution=s.play_id,this.players[v].substitutionOut=!0,this.players[v].substitutionMin=s.minute,this.players[v].substitutionDataID=s.team_id+"@"+s.player_id),u!=-1&&(this.players[u].idSubstitution=s.play_id,this.players[u].substitutionIn=!0,this.players[u].substitutionMin=s.minute,this.players[u].substitutionDataID=s.team_id+"@"+s.player_id)}}else if(this.players.length>0){var r=s.player_id.split("@"),i=this.players.findIndex(C=>C.playerId==r[0]),d=this.players.findIndex(C=>C.playerId==r[1]);v!=-1&&(this.players[i].idSubstitution=s.play_id,this.players[i].substitutionOut=!0,this.players[i].substitutionMin=s.minute,this.players[i].substitutionDataID=s.team_id+"@"+s.player_id),d!=-1&&(this.players[d].idSubstitution=s.play_id,this.players[d].substitutionIn=!0,this.players[d].substitutionMin=s.minute,this.players[d].substitutionDataID=s.team_id+"@"+s.player_id)}}if(s.event_type_id==1){if(s.team_id==this.home_team_id){if(this.playersHome.length>0){var l=this.playersHome.findIndex(C=>C.playerId==s.player_id);l!=-1&&(this.playersHome[l].goals+=1,this.playersHome[l].goalsMin.push(s.minute),this.playersHome[l].idsGoals.push(s.play_id))}}else if(this.players.length>0){var p=this.players.findIndex(C=>C.playerId==s.player_id);p!=-1&&(this.players[p].goals+=1,this.players[p].goalsMin.push(s.minute),this.players[p].idsGoals.push(s.play_id))}}if(s.event_type_id==2){if(s.category_id==8){if(s.team_id==this.home_team_id){if(this.playersHome.length>0){var m=this.playersHome.findIndex(C=>C.playerId==s.player_id);m!=-1&&(this.playersHome[m].yellowcards+=1,this.playersHome[m].yellowcardsMin=s.minute,this.playersHome[m].idyellowcards=s.play_id)}}else if(this.players.length>0){var w=this.players.findIndex(C=>C.playerId==s.player_id);w!=-1&&(this.players[w].yellowcards+=1,this.players[w].yellowcardsMin=s.minute,this.players[w].idyellowcards=s.play_id)}}if(s.category_id==9){if(s.team_id==this.home_team_id){if(this.playersHome.length>0){var T=this.playersHome.findIndex(C=>C.playerId==s.player_id);T!=-1&&(this.playersHome[T].redcards+=1,this.playersHome[T].redcardsMin=s.minute,this.playersHome[T].idredcards=s.play_id)}}else if(this.players.length>0){var A=this.players.findIndex(C=>C.playerId==s.player_id);A!=-1&&(this.players[A].redcards+=1,this.players[A].redcardsMin=s.minute,this.players[A].idredcards=s.play_id)}}}},delete_mxm([e,s]){if(this.players.length>0)for(let o=0;o<this.players.length;o++)this.players[o].idSubstitution==s.play_id&&(this.players[o].substitutionOut=!1,this.players[o].substitutionIn=!1,this.players[o].substitutionMin="",this.players[o].substitutionDataID="",this.players[o].idSubstitution=0);if(this.players.length>0)for(let o=0;o<this.players.length;o++)this.players[o].idSubstitution==s.play_id&&(this.players[o].substitutionOut=!1,this.players[o].substitutionIn=!1,this.players[o].substitutionMin="",this.players[o].substitutionDataID="",this.players[o].idSubstitution=0);if(this.players.length>0)for(let o=0;o<this.players.length;o++){const O=this.players[o].idsGoals.findIndex(W=>W==s.play_id);O!=-1&&(this.players[o].goals=this.players[o].goals-1,this.players[o].goalsMin.splice(O,1),this.players[o].idsGoals.splice(O,1))}if(this.players.length>0)for(let o=0;o<this.players.length;o++){const O=this.players[o].idsGoals.findIndex(W=>W==s.play_id);O!=-1&&(this.players[o].goals=this.players[o].goals-1,this.players[o].goalsMin.splice(O,1),this.players[o].idsGoals.splice(O,1))}if(this.players.length>0)for(let o=0;o<this.players.length;o++)this.players[o].idyellowcards==s.play_id&&(this.players[o].yellowcards=0,this.players[o].yellowcardsMin=0,this.players[o].idyellowcards=0);if(this.players.length>0)for(let o=0;o<this.players.length;o++)this.players[o].idyellowcards==s.play_id&&(this.players[o].yellowcards=0,this.players[o].yellowcardsMin=0,this.players[o].idyellowcards=0);if(this.players.length>0)for(let o=0;o<this.players.length;o++)this.players[o].idredcards==s.play_id&&(this.players[o].redcards=0,this.players[o].redcardsMin=0,this.players[o].idredcards=0);if(this.players.length>0)for(let o=0;o<this.players.length;o++)this.players[o].idredcards==s.play_id&&(this.players[o].redcards=0,this.players[o].redcardsMin=0,this.players[o].idredcards=0)},new_mxm([e,s]){if(s.event_type_id==3){if(s.team_id==this.home_team_id){if(this.players.length>0){var o=s.player_id.split("@"),O=this.players.findIndex(u=>u.playerId==o[0]),W=this.players.findIndex(u=>u.playerId==o[1]);O!=-1&&(this.players[O].idSubstitution=s.play_id,this.players[O].substitutionOut=!0,this.players[O].substitutionMin=s.minute,this.players[O].substitutionDataID=s.team_id+"@"+s.player_id),W!=-1&&(this.players[W].idSubstitution=s.play_id,this.players[W].substitutionIn=!0,this.players[W].substitutionMin=s.minute,this.players[W].substitutionDataID=s.team_id+"@"+s.player_id)}}else if(this.players.length>0){var b=s.player_id.split("@"),g=this.players.findIndex(u=>u.playerId==b[0]),a=this.players.findIndex(u=>u.playerId==b[1]);O!=-1&&(this.players[g].idSubstitution=s.play_id,this.players[g].substitutionOut=!0,this.players[g].substitutionMin=s.minute,this.players[g].substitutionDataID=s.team_id+"@"+s.player_id),a!=-1&&(this.players[a].idSubstitution=s.play_id,this.players[a].substitutionIn=!0,this.players[a].substitutionMin=s.minute,this.players[a].substitutionDataID=s.team_id+"@"+s.player_id)}}if(s.event_type_id==1){if(s.team_id==this.home_team_id){if(this.players.length>0){var _=this.players.findIndex(u=>u.playerId==s.player_id);_!=-1&&(this.players[_].goals+=1,this.players[_].goalsMin.push(s.minute),this.players[_].idsGoals.push(s.play_id))}}else if(this.players.length>0){var h=this.players.findIndex(u=>u.playerId==s.player_id);h!=-1&&(this.players[h].goals+=1,this.players[h].goalsMin.push(s.minute),this.players[h].idsGoals.push(s.play_id))}}if(s.event_type_id==2){if(s.category_id==8){if(s.team_id==this.home_team_id){if(this.players.length>0){var n=this.players.findIndex(u=>u.playerId==s.player_id);n!=-1&&(this.players[n].yellowcards+=1,this.players[n].yellowcardsMin=s.minute,this.players[n].idyellowcards=s.play_id)}}else if(this.players.length>0){var x=this.players.findIndex(u=>u.playerId==s.player_id);x!=-1&&(this.players[x].yellowcards+=1,this.players[x].yellowcardsMin=s.minute,this.players[x].idyellowcards=s.play_id)}}if(s.category_id==9){if(s.team_id==this.home_team_id){if(this.players.length>0){var y=this.players.findIndex(u=>u.playerId==s.player_id);y!=-1&&(this.players[y].redcards+=1,this.players[y].redcardsMin=s.minute,this.players[y].idredcards=s.play_id)}}else if(this.players.length>0){var v=this.players.findIndex(u=>u.playerId==s.player_id);v!=-1&&(this.players[v].redcards+=1,this.players[v].redcardsMin=s.minute,this.players[v].idredcards=s.play_id)}}}}}},a2=e=>(t.pushScopeId("data-v-1634ade6"),e=e(),t.popScopeId(),e),hme={class:"lineup__header",ref:"gamesContainer"},pme=a2(()=>t.createElementVNode("h2",null,"Alineaciones",-1)),fme={key:0,style:{width:"325px"}},mme={class:"lineup__card"},gme={key:0},yme={key:1},vme={key:2},_me={key:3,class:"lineup__card-body"},bme={class:"lineup__selector",style:{margin:"auto"}},xme={class:"lineup__selector-item"},wme={key:4,class:"lineup__card-body",style:{"flex-flow":"column"}},kme={class:"lineup__filters"},Sme={class:"selector-tournaments"},Tme={class:"lineup__items-carousel"},Cme=a2(()=>t.createElementVNode("div",null,null,-1)),Eme={class:"lineup__items-center"},Ame={class:"lineup__selector-recientes"},Mme={key:1,class:"containernofoundsearchrecientes"},Ime=a2(()=>t.createElementVNode("div",{class:"text-containernofoundsearchrecientes"},[t.createTextVNode(" No hay resultados con los criterios, "),t.createElementVNode("br"),t.createTextVNode(" de búsqueda aplicados. ")],-1)),Pme={key:0,class:"lineup__selector-recientes",style:{margin:"auto",width:"100%"}},Bme={key:5,class:"lineup__card-body space-between"},Lme={class:"lineup__card-body__probables"},zme={class:"selector-tournaments"},Ome=a2(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),Fme=["src"],Nme={class:"lineup__card-body__probables"},Dme=["src"],Rme=a2(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),Vme={class:"selector-tournaments"},jme={key:6,class:"lineup__card-body space-between"},$me={class:"postmatch__matchday"};function Ume(e,s,o,O,W,b){const g=t.resolveComponent("GscSwitchComponent"),a=t.resolveComponent("LineupMainHeader"),_=t.resolveComponent("GSCCarousel"),h=t.resolveComponent("LineupFilter"),n=t.resolveComponent("GSCDropdown"),x=t.resolveComponent("LineupRecentItem"),y=t.resolveComponent("MatchDetails"),v=t.resolveComponent("LineupField");return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["lineup",{"break-point-3":b.mobileClass}])},[t.createElementVNode("div",hme,[pme,o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock("div",fme,[(W.gameInfoheader.game_status==0||W.gameInfoheader.game_status==4)&&b.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(g,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:o.selectedOption,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:s[0]||(s[0]=u=>o.selectedOption=u)},null,8,["selectedOption"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],512),t.createElementVNode("div",mme,[o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("h3",gme,"Alineación utilizada este torneo en:")):o.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("h3",yme,"Alineaciones recientes de:")):(t.openBlock(),t.createElementBlock("h3",vme,"Alineación utilizada en:"))],64)):t.createCommentVNode("",!0),o.selectedOption==="Historicos"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(W.headerInfoHistoricItemGame).length>0?(t.openBlock(),t.createBlock(a,{key:0,localTeam:{acronym:W.headerInfoHistoricItemGame.home_team_abbreviation,img:"https://golstatsimages.blob.core.windows.net/teams-80/"+W.headerInfoHistoricItemGame.home_team+".png"},visitTeam:{acronym:W.headerInfoHistoricItemGame.away_team_abbreviation,img:"https://golstatsimages.blob.core.windows.net/teams-80/"+W.headerInfoHistoricItemGame.away_team+".png"},probablyTeamHome:{acronym:W.rivalHomeAbrev,img:W.rivalHomeImg},probablyTeamAway:{acronym:W.rivalVisitAbrev,img:W.rivalVisitImg},score:W.headerInfoHistoricItemGame.score[0]+" - "+W.headerInfoHistoricItemGame.score[1],onChange:b.changeSwitchRadio,type:o.selectedOption},null,8,["localTeam","visitTeam","probablyTeamHome","probablyTeamAway","score","onChange","type"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[Object.keys(W.gameInfoheader).length>0?(t.openBlock(),t.createBlock(a,{key:0,localTeam:{acronym:W.gameInfoheader.home_team_abbreviation,img:"https://golstatsimages.blob.core.windows.net/teams-80/"+W.gameInfoheader.home_team+".png"},visitTeam:{acronym:W.gameInfoheader.away_team_abbreviation,img:"https://golstatsimages.blob.core.windows.net/teams-80/"+W.gameInfoheader.away_team+".png"},probablyTeamHome:{acronym:W.rivalHomeAbrev,img:W.rivalHomeImg},probablyTeamAway:{acronym:W.rivalVisitAbrev,img:W.rivalVisitImg},score:W.gameInfoheader.score[0]+" - "+W.gameInfoheader.score[1],onChange:b.changeSwitchRadio,type:o.selectedOption},null,8,["localTeam","visitTeam","probablyTeamHome","probablyTeamAway","score","onChange","type"])):t.createCommentVNode("",!0)],64)),o.selectedOption==="Historicos"?(t.openBlock(),t.createElementBlock("div",_me,[o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",bme,[W.gamesHistoric.length>0?(t.openBlock(),t.createBlock(_,{key:W.updatehistoricos,onInput:b.changeCarouselItemH,items:W.gamesHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:u})=>[t.createElementVNode("div",xme,t.toDisplayString(u.description),1)]),_:1},8,["onInput","items"])):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"lineup__text-btn-abs",onClick:s[1]||(s[1]=u=>W.showDetails=!W.showDetails)},t.toDisplayString(W.showDetails?"Ocultar detalles":"Ver detalles"),1)],64)):t.createCommentVNode("",!0)])):o.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("div",wme,[t.createElementVNode("div",kme,[t.createVNode(h,{name:"Filtros",onChange:b.changeFiltersModal,reset:W.vDeleteFilter},null,8,["onChange","reset"]),t.createElementVNode("div",{class:"lineup__filters__selector",ref:"targetElement",onClick:s[2]||(s[2]=(...u)=>b.handleInsideClick&&b.handleInsideClick(...u))},[(t.openBlock(),t.createBlock(n,{onClick:b.clickOnValueFilter,items:b.matchdaysFinal,onInput:b.changeDropdown,backgroundColor:"transparent",height:"25px",key:e.keyUpdate,color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,"default-item-by-prop":e.defaultDropItem,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(u=>[t.createElementVNode("div",Sme,t.toDisplayString(u.selectedItem.name),1)]),availableItem:t.withCtx(({item:u})=>[t.createElementVNode("div",null,t.toDisplayString(u.name),1)]),_:1},8,["onClick","items","onInput","default-item-by-prop"]))],512),t.createElementVNode("div",{class:"lineup__text-btn",onClick:s[3]||(s[3]=u=>W.showDetails=!W.showDetails)},t.toDisplayString(W.showDetails?"Ocultar detalles":"Ver detalles"),1)]),t.createElementVNode("div",Tme,[Cme,t.createElementVNode("div",Eme,[b.mobileClass?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Ame,[b.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(_,{onClick:b.clickOnValueCarrousel,"default-item-by-index":W.selectedIndexOption,width:"600px",height:"80px",key:W.updateCarouselGames,onInput:b.changeCarouselItem,items:b.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:u})=>[t.createVNode(x,{game:u,teamSelect:W.teamSelect},null,8,["game","teamSelect"])]),_:1},8,["onClick","default-item-by-index","onInput","items"])):(t.openBlock(),t.createElementBlock("div",Mme,[Ime,t.createElementVNode("div",{class:"btn-delete-filters",onClick:s[4]||(s[4]=(...u)=>b.clickOnDeleteFilter&&b.clickOnDeleteFilter(...u))}," Eliminar filtros aplicados ")]))]),W.showDetails?(t.openBlock(),t.createBlock(y,{key:0,localDetails:W.localDetails,foreignDetails:W.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],64))])]),b.mobileClass?(t.openBlock(),t.createElementBlock("div",Pme,[b.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(_,{onClick:b.clickOnValueCarrousel,"default-item-by-index":W.selectedIndexOption,width:"600px",height:"80px",key:W.updateCarouselGames,onInput:b.changeCarouselItem,items:b.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1},{default:t.withCtx(({item:u})=>[t.createVNode(x,{game:u,teamSelect:W.teamSelect,style:{"max-width":"200px"}},null,8,["game","teamSelect"])]),_:1},8,["onClick","default-item-by-index","onInput","items"])):t.createCommentVNode("",!0),W.showDetails?(t.openBlock(),t.createBlock(y,{key:1,localDetails:W.localDetails,foreignDetails:W.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):o.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("div",Bme,[t.createElementVNode("div",Lme,[t.createVNode(n,{items:b.matchHomeProbables,onInput:b.changeDropdownLocal,backgroundColor:"transparent",height:"25px",color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(u=>[t.createElementVNode("div",zme,t.toDisplayString(u.selectedItem.name),1)]),availableItem:t.withCtx(({item:u})=>[t.createElementVNode("div",null,t.toDisplayString(u.name),1)]),_:1},8,["items","onInput"]),Ome,t.createElementVNode("img",{src:W.rivalHomeImg,class:"lineup__card-body__img-probables"},null,8,Fme)]),t.createElementVNode("div",Nme,[t.createElementVNode("img",{src:W.rivalVisitImg,class:"lineup__card-body__img-probables"},null,8,Dme),Rme,t.createVNode(n,{items:b.matchAwayProbables,onInput:b.changeDropdownVisit,backgroundColor:"transparent",height:"25px",color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(u=>[t.createElementVNode("div",Vme,t.toDisplayString(u.selectedItem.name),1)]),availableItem:t.withCtx(({item:u})=>[t.createElementVNode("div",null,t.toDisplayString(u.name),1)]),_:1},8,["items","onInput"])])])):o.selectedOption==="Postmatch"?(t.openBlock(),t.createElementBlock("div",jme,[t.createElementVNode("div",$me,t.toDisplayString(W.gameInfoheader.season_name!==void 0?W.gameInfoheader.season_name+"  |  "+b.remplazarMxJor(W.gameInfoheader.matchday_abbreviation)+"  |  "+W.gameInfoheader.home_team_abbreviation+" - "+W.gameInfoheader.away_team_abbreviation:""),1),t.createElementVNode("div",{class:"lineup__text-btn-abs",onClick:s[5]||(s[5]=u=>W.showDetails=!W.showDetails)},t.toDisplayString(W.showDetails?"Ocultar detalles":"Ver detalles"),1)])):t.createCommentVNode("",!0),W.showDetails&&(o.selectedOption==="Historicos"||o.selectedOption==="Postmatch")?(t.openBlock(),t.createBlock(y,{key:7,style:{"margin-bottom":"17px"},localDetails:W.localDetails,foreignDetails:W.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0),t.createVNode(v,{class:"lineup__field",players:W.players},null,8,["players"])])],2)}const Gme=ep(dme,[["render",Ume],["__scopeId","data-v-1634ade6"]]),Hme={name:"PlayerCard",emits:["open-profile"],components:{},props:{data:{type:Object,default:()=>{}},position:{type:String,default:"gsc-position-player"},type:{type:Number,default:1}},data(){return{}},computed:{},methods:{openProfile(e){(e.section!=="Historicos"||e.type==="Postmatch")&&this.$emit("open-profile",e)}},mounted(){}},ox=e=>(t.pushScopeId("data-v-ce649720"),e=e(),t.popScopeId(),e),Wme={key:0,class:"gsc-item-player"},qme={class:"gsc-num-player"},Yme={class:"gsc-cont-info-by-player"},Zme={class:"gsc-cont-info-by-player-row1"},Xme={class:"shield-player-cont"},Jme=["src"],Kme={class:"gsc-cont-info-by-player-row2"},Qme={class:"gsc-cont-info-by-player-row2-line-data"},e0e={class:"cont-display-gsc"},t0e=["src"],n0e={class:"gsc-cont-cards"},a0e={key:0,class:"gsc-yellow_card_div"},r0e={key:1,class:"gsc-red_card_div"},i0e={key:2,class:"gsc-yellowred_card_div"},o0e=ox(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),s0e={key:5,class:"gsc-goal_card_div_wrapper"},l0e=ox(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),c0e={key:1,class:"gsc-item-player"},u0e={class:"gsc-num-player2"},d0e={class:"gsc-cont-info-by-player2"},h0e={class:"gsc-cont-info-by-player-row2"},p0e={class:"gsc-cont-info-by-player-row2-line-data"},f0e={class:"gsc-cont-cards2"},m0e={key:0,class:"gsc-yellow_card_div"},g0e={key:1,class:"gsc-red_card_div"},y0e={key:2,class:"gsc-yellowred_card_div"},v0e=ox(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),_0e={key:5,class:"gsc-goal_card_div_wrapper"},b0e=ox(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),x0e={class:"cont-display-gsc"},w0e=["src"],k0e={class:"gsc-cont-info-by-player-row1"},S0e={class:"shield-player-cont"},T0e=["src"];function C0e(e,s,o,O,W,b){return t.openBlock(),t.createElementBlock(t.Fragment,null,[o.type==1?(t.openBlock(),t.createElementBlock("div",Wme,[t.createElementVNode("div",qme,[o.data.shirt<10?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("0")],64)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(o.data.shirt),1)]),t.createElementVNode("div",Yme,[t.createElementVNode("div",Zme,[t.createElementVNode("div",Xme,[t.createElementVNode("img",{class:"gsc-logo-player",src:o.data.img},null,8,Jme)])]),t.createElementVNode("div",Kme,[t.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name",style:t.normalizeStyle(o.data.section=="Historicos"&&o.data.type!="Postmatch"?"text-decoration: none !important; cursor: default !important":""),onClick:s[0]||(s[0]=g=>b.openProfile({playerId:o.data.playerid,teamId:o.data.teamid,seasonId:o.data.season,section:o.data.section,type:o.data.type}))},t.toDisplayString(o.data.name),5),t.createElementVNode("div",Qme,[t.createElementVNode("div",e0e,[t.createElementVNode("img",{class:"gsc-img-country",src:o.data.nation},null,8,t0e),t.createElementVNode("div",{class:t.normalizeClass(o.position)},t.toDisplayString(o.data.position),3)]),t.createElementVNode("div",n0e,[o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock("div",a0e)):t.createCommentVNode("",!0),o.data.redcard>=1&&o.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",r0e)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",i0e)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createTextVNode("'"+t.toDisplayString(o.data.yellowcardmin),1)],64)):t.createCommentVNode("",!0),o.data.redcard>=1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createTextVNode("'"+t.toDisplayString(o.data.redcardmin),1)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.data.goalsMin,(g,a)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:a},[o0e,t.createElementVNode("div",null,"'"+t.toDisplayString(g),1)]))),128)),o.data.substitutionIn||o.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",s0e,[l0e,t.createElementVNode("div",null,"'"+t.toDisplayString(o.data.substitutionMin),1)])):t.createCommentVNode("",!0)])])])])])):t.createCommentVNode("",!0),o.type==2?(t.openBlock(),t.createElementBlock("div",c0e,[t.createElementVNode("div",u0e,[o.data.shirt<10?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("0")],64)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(o.data.shirt),1)]),t.createElementVNode("div",d0e,[t.createElementVNode("div",h0e,[t.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name2",style:t.normalizeStyle(o.data.section=="Historicos"&&o.data.type!="Postmatch"?"text-decoration: none !important; cursor: default !important":""),onClick:s[1]||(s[1]=g=>b.openProfile({playerId:o.data.playerid,teamId:o.data.teamid,seasonId:o.data.season,section:o.data.section,type:o.data.type}))},t.toDisplayString(o.data.name),5),t.createElementVNode("div",p0e,[t.createElementVNode("div",f0e,[o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock("div",m0e)):t.createCommentVNode("",!0),o.data.redcard>=1&&o.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",g0e)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",y0e)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createTextVNode("'"+t.toDisplayString(o.data.yellowcardmin),1)],64)):t.createCommentVNode("",!0),o.data.redcard>=1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createTextVNode("'"+t.toDisplayString(o.data.redcardmin),1)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.data.goalsMin,(g,a)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:a},[v0e,t.createElementVNode("div",null,"'"+t.toDisplayString(g),1)]))),128)),o.data.substitutionIn||o.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",_0e,[b0e,t.createElementVNode("div",null,"'"+t.toDisplayString(o.data.substitutionMin),1)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",x0e,[t.createElementVNode("div",{class:t.normalizeClass(o.position)},t.toDisplayString(o.data.position),3),t.createElementVNode("img",{class:"gsc-img-country",src:o.data.nation},null,8,w0e)])])]),t.createElementVNode("div",k0e,[t.createElementVNode("div",S0e,[t.createElementVNode("img",{class:"gsc-logo-player",src:o.data.img},null,8,T0e)])])])])):t.createCommentVNode("",!0)],64)}const E0e=ep(Hme,[["render",C0e],["__scopeId","data-v-ce649720"]]),x8="/icn-filter.svg",r2="/icn-expand-arrow.svg",KI="/backarrow.svg",QI="/nextarrow.svg",A0e="_selectoritem_1dafy_137",M0e="_selectoritem2_1dafy_157",I0e="_gscheaderlineup_1dafy_177",P0e="_anNoEstn_1dafy_191",B0e="_groupsLeague_1dafy_197",L0e="_jugadores_1dafy_209",z0e="_switchOption_1dafy_219",O0e="_jugadores1_1dafy_239",F0e="_switchOption1_1dafy_249",N0e="_switchStatesBig_1dafy_265",D0e="_groupsLeagueParent_1dafy_283",R0e="_imgHomeTeamIcon_1dafy_301",V0e="_imgHomeTeamWrapper_1dafy_313",j0e="_teamContainer_1dafy_337",$0e="_name_1dafy_361",U0e="_homeTeamContainer_1dafy_373",G0e="_div_1dafy_393",H0e="_scoreContainer_1dafy_401",W0e="_scoreContainerWrapper_1dafy_421",q0e="_teamContainer1_1dafy_447",Y0e="_awayTeamContainer_1dafy_471",Z0e="_matchContainer_1dafy_491",X0e="_sliderMatchesChild_1dafy_509",J0e="_manchesterUnited_1dafy_521",K0e="_sliderMatchesItem_1dafy_533",Q0e="_sliderMatches_1dafy_509",ege="_sortIcon_1dafy_569",tge="_filtros_1dafy_583",nge="_sortParent_1dafy_599",age="_shapeIcon_1dafy_613",rge="_btnFilter_1dafy_623",ige="_btnFilter1_1dafy_651",oge="_btnFilterParent_1dafy_679",sge="_backArrowIcon_1dafy_695",lge="_teamContainer2_1dafy_707",cge="_homeTeam_1dafy_373",uge="_div4_1dafy_735",dge="_finalScore_1dafy_745",hge="_manchesterUnited1_1dafy_771",pge="_scoreContainer1_1dafy_785",fge="_match_1dafy_491",mge="_manchesterUnited2_1dafy_821",gge="_btnDetails_1dafy_831",yge="_matchContainer1_1dafy_851",vge="_goalChild_1dafy_867",_ge="_goal_1dafy_867",bge="_manchesterUnited3_1dafy_893",xge="_minuteEvent_1dafy_907",wge="_yellowCard_1dafy_921",kge="_awayTeamEvents_1dafy_935",Sge="_rectangle_1dafy_949",Tge="_homeTeamEvents_1dafy_963",Cge="_totalEvents_1dafy_979",Ege="_headerSeccionAlineaciones1_1dafy_995",Age="_switchOption3_1dafy_1017",Mge="_switchOption4_1dafy_1041",Ige="_switchStatesBig1_1dafy_1061",Pge="_manchesterUnited13_1dafy_1075",Bge="_homeTeamContainer1_1dafy_1085",Lge="_scoreContainer2_1dafy_1099",zge="_matchContainer2_1dafy_1127",Oge="_manchesterUnited14_1dafy_1147",Fge="_sliderMatchesInner_1dafy_1161",Nge="_rectangleIcon_1dafy_1181",Dge="_sliderMatches1_1dafy_1201",Rge="_containerData_1dafy_1217",Vge="_headerSeccionAlineaciones2_1dafy_1245",jge="_headerSeccionAlineaciones_1dafy_995",$ge="_headerSeccionAlineaciones21200_1dafy_1293",Uge="_headerSeccionAlineaciones1540_1dafy_1299",Gge="_headerSeccionAlineaciones2540_1dafy_1307",Hge={selectoritem:A0e,selectoritem2:M0e,gscheaderlineup:I0e,anNoEstn:P0e,groupsLeague:B0e,jugadores:L0e,switchOption:z0e,jugadores1:O0e,switchOption1:F0e,switchStatesBig:N0e,groupsLeagueParent:D0e,imgHomeTeamIcon:R0e,imgHomeTeamWrapper:V0e,teamContainer:j0e,name:$0e,homeTeamContainer:U0e,div:G0e,scoreContainer:H0e,scoreContainerWrapper:W0e,teamContainer1:q0e,awayTeamContainer:Y0e,matchContainer:Z0e,sliderMatchesChild:X0e,manchesterUnited:J0e,sliderMatchesItem:K0e,sliderMatches:Q0e,sortIcon:ege,filtros:tge,sortParent:nge,shapeIcon:age,btnFilter:rge,btnFilter1:ige,btnFilterParent:oge,backArrowIcon:sge,teamContainer2:lge,homeTeam:cge,div4:uge,finalScore:dge,manchesterUnited1:hge,scoreContainer1:pge,match:fge,manchesterUnited2:mge,btnDetails:gge,matchContainer1:yge,goalChild:vge,goal:_ge,manchesterUnited3:bge,minuteEvent:xge,yellowCard:wge,awayTeamEvents:kge,rectangle:Sge,homeTeamEvents:Tge,totalEvents:Cge,headerSeccionAlineaciones1:Ege,switchOption3:Age,switchOption4:Mge,switchStatesBig1:Ige,manchesterUnited13:Pge,homeTeamContainer1:Bge,scoreContainer2:Lge,matchContainer2:zge,manchesterUnited14:Oge,sliderMatchesInner:Fge,rectangleIcon:Nge,sliderMatches1:Dge,containerData:Rge,headerSeccionAlineaciones2:Vge,headerSeccionAlineaciones:jge,headerSeccionAlineaciones21200:$ge,headerSeccionAlineaciones1540:Uge,headerSeccionAlineaciones2540:Gge},Wge={components:{GSCCarousel:ix,GscSwitchComponent:n2},props:{optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},gameRecientes:{type:Number,default:0},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",{season_id:e.season_id,game_id:e.id})}catch(s){throw new Error(s)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=540?this.$style.headerSeccionAlineaciones2540:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{changeCarouselItem(e){this.$emit("input",{season_id:e.selectedItem.season,game_id:e.selectedItem.game,ht_abrev:e.selectedItem.home_team_abbreviation,at_abrev:e.selectedItem.away_team_abbreviation}),this.selectedOption=e.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},qge=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),Yge=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),Zge=["src"],Xge=["src"],Jge=["src"],Kge=["src"],Qge=["src"],e1e=["src"];function t1e(e,s,o,O,W,b){const g=t.resolveComponent("GscSwitchComponent"),a=t.resolveComponent("GSCCarousel");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.gscheaderlineup)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(b.headerSeccionAlineaciones1Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[qge,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),Yge],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[(o.gameInfo.game_status==0||o.gameInfo.game_status==4)&&o.gameRecientes>0?(t.openBlock(),t.createBlock(g,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:b.clickOnSelectOption},null,8,["selectedOption","onInput"])):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameHistoric[W.selectedOption].objgame.home_team+".png"},null,10,Zge)):t.createCommentVNode("",!0)],2)],2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)}," - ",2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameHistoric[W.selectedOption].objgame.away_team+".png"},null,10,Xge)):t.createCommentVNode("",!0)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches)},[o.gameHistoric.length>0?(t.openBlock(),t.createBlock(a,{key:0,"current-item-index":W.selectedOption,onInput:b.changeCarouselItem,items:o.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:_})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},t.toDisplayString(_.description),3)]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:x8},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:r2},null,2)],2),t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Jornada",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"2",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:r2},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:KI},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameHistoric[W.selectedOption].objgame.home_team+".png"},null,10,Jge)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[o.teamActive=="home"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameHistoric[W.selectedOption].objgame.away_team+".png"},null,10,Kge)):t.createCommentVNode("",!0),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:QI},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(b.headerSeccionAlineaciones2Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig1),id:"switch-lineup"},[(o.gameInfo.game_status==0||o.gameInfo.game_status==4)&&o.gameRecientes>0?(t.openBlock(),t.createBlock(g,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:b.clickOnSelectOption},null,8,["selectedOption","onInput"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited13)},"Alineación utilizada en: ",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameHistoric[W.selectedOption].objgame.home_team+".png"},null,10,Qge)):t.createCommentVNode("",!0)],2)],2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer2)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[W.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameHistoric[W.selectedOption].objgame.away_team+".png"},null,10,e1e)):t.createCommentVNode("",!0)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches1)},[o.gameHistoric.length>0?(t.openBlock(),t.createBlock(a,{key:0,"current-item-index":W.selectedOption,onInput:b.changeCarouselItem,items:o.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:_})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem2)},t.toDisplayString(_.description),3)]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0)],2)],2)],2)],2)],2)}const n1e={$style:Hge},a1e=ep(Wge,[["render",t1e],["__cssModules",n1e]]),sx=e=>(t.pushScopeId("data-v-2118a6cd"),e=e(),t.popScopeId(),e),r1e=t.createStaticVNode('<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-2118a6cd><g id="vuesax/outline/sort" data-v-2118a6cd><g id="sort" data-v-2118a6cd><path id="Vector" opacity="0.7" d="M15.75 5.8125H2.25C1.9425 5.8125 1.6875 5.5575 1.6875 5.25C1.6875 4.9425 1.9425 4.6875 2.25 4.6875H15.75C16.0575 4.6875 16.3125 4.9425 16.3125 5.25C16.3125 5.5575 16.0575 5.8125 15.75 5.8125Z" fill="white" data-v-2118a6cd></path><path id="Vector_2" opacity="0.7" d="M13.5 9.5625H4.5C4.1925 9.5625 3.9375 9.3075 3.9375 9C3.9375 8.6925 4.1925 8.4375 4.5 8.4375H13.5C13.8075 8.4375 14.0625 8.6925 14.0625 9C14.0625 9.3075 13.8075 9.5625 13.5 9.5625Z" fill="white" data-v-2118a6cd></path><path id="Vector_3" opacity="0.7" d="M10.5 13.3125H7.5C7.1925 13.3125 6.9375 13.0575 6.9375 12.75C6.9375 12.4425 7.1925 12.1875 7.5 12.1875H10.5C10.8075 12.1875 11.0625 12.4425 11.0625 12.75C11.0625 13.0575 10.8075 13.3125 10.5 13.3125Z" fill="white" data-v-2118a6cd></path></g></g></svg>',1),i1e=["value"],o1e=sx(()=>t.createElementVNode("svg",{width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:"#92929D"})],-1)),s1e={class:"filter-modal__padding"},l1e={class:"filter-modal__content-header"},c1e=sx(()=>t.createElementVNode("h3",null,"Jugando como:",-1)),u1e={class:"filter-modal__content-options"},d1e=["onClick"],h1e={class:"filter-modal__content-header"},p1e=sx(()=>t.createElementVNode("h3",null,"Resultados:",-1)),f1e={class:"filter-modal__content-options"},m1e=["onClick"],g1e=sx(()=>t.createElementVNode("hr",{style:{"border-color":"#FFFFFF33"}},null,-1)),y1e={__name:"gsc-filter",props:{name:{type:String,default:""},zIndex:{type:Number,default:1},showButton:{type:Boolean,default:!1},marginModal:{type:String,default:"0px"},isOpen:{type:Boolean,default:!1},reset:{type:Boolean,default:!1},itemSelect:{type:Object,default:()=>{}},componentWidth:{type:Number,default:768,validator(e){return e>0}}},emits:["update:model-value","change"],setup(e,{emit:s}){const o=e;t.useCssVars(p=>({d00c78a6:e.marginModal}));const O=[{id:"local",name:"Local"},{id:"visit",name:"Visitante"}],W=[{id:"win",name:"Ganado"},{id:"draw",name:"Empatados"},{id:"lose",name:"Perdidos"}],b=t.ref(null),g=t.ref(["local","visit"]),a=t.ref(["win","draw","lose"]),_=t.ref(!0),h=t.ref(!0),n=t.ref(!0),x=t.ref(!0),y=t.ref(["local","visit"]),v=t.ref(["win","draw","lose"]),u=()=>{b.value.focus(),g.value=JSON.parse(JSON.stringify(y.value)),a.value=JSON.parse(JSON.stringify(v.value)),_.value=n.value,h.value=x.value};t.watch(()=>o.itemSelect,p=>{p&&(y.value=p.selectedFilterTeam,v.value=p.selectedFilterResults)}),t.watch(()=>o.reset,p=>{p&&i()});const r=(p,m)=>{let w;m==="team"?w=y.value:w=v.value;const T=w.findIndex(A=>A===p);T==-1?w.push(p):m=="team"&&y.value.length==2?w.splice(T,1):(m=="team"&&w.push(p),v.value.length>1&&w.splice(T,1)),n.value=y.value.length==2,x.value=v.value.length==3},i=()=>{y.value=["local","visit"],v.value=["win","draw","lose"],n.value=!0,x.value=!0,s("change",{selectedFilterTeam:y.value,selectedFilterResults:v.value})},d=()=>{s("change",{selectedFilterTeam:y.value,selectedFilterResults:v.value})},l=()=>{s("change",{selectedFilterTeam:y.value,selectedFilterResults:v.value})};return(p,m)=>(t.openBlock(),t.createElementBlock("div",{class:"filter-modal",style:t.normalizeStyle({zIndex:e.zIndex})},[e.showButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"filter-modal__input",onClick:u},[r1e,t.createElementVNode("input",{type:"text",value:e.name,readonly:""},null,8,i1e),o1e])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["filter-modal__content",e.isOpen?"open":"close"]),tabindex:"0",ref_key:"filterElement",ref:b,onFocusout:m[4]||(m[4]=w=>{e.isOpen=!1,l()})},[t.createElementVNode("div",s1e,[t.createElementVNode("div",l1e,[c1e,t.createVNode(ax,{modelValue:n.value,"onUpdate:modelValue":[m[0]||(m[0]=w=>n.value=w),m[1]||(m[1]=w=>w&&(y.value=["local","visit"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",u1e,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(O,w=>t.createElementVNode("li",{onClick:T=>r(w.id,"team"),class:t.normalizeClass({active:y.value.includes(w.id)})},t.toDisplayString(w.name),11,d1e)),64))]),t.createElementVNode("div",h1e,[p1e,t.createVNode(ax,{modelValue:x.value,"onUpdate:modelValue":[m[2]||(m[2]=w=>x.value=w),m[3]||(m[3]=w=>w&&(v.value=["win","lose","draw"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",f1e,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(W,w=>t.createElementVNode("li",{onClick:T=>r(w.id,"player"),class:t.normalizeClass({active:v.value.includes(w.id)})},t.toDisplayString(w.name),11,m1e)),64))])]),g1e,t.createElementVNode("div",{class:"filter-modal__buttons"},[t.createElementVNode("div",{class:"button filter-modal__text-btn",onClick:i},"Quitar filtros"),t.createElementVNode("div",{class:"button filter-modal__outline-btn",onClick:d},"Listo")])],34)],4))}},v1e=ep(y1e,[["__scopeId","data-v-2118a6cd"]]),_1e="/icn-filter1.svg",b1e="/icn-expand-arrow1.svg",x1e="/icn-filter2.svg",w1e="/icn-arrow-expand.svg",k1e="_containernofoundsearchrecientes_1gxk5_159",S1e="_btndeletefilters_1gxk5_215",T1e="_leyenddeleteshow_1gxk5_247",C1e="_selectoritem_1gxk5_261",E1e="_anNoEstn_1gxk5_279",A1e="_groupsLeague_1gxk5_287",M1e="_historicas_1gxk5_297",I1e="_switchOption_1gxk5_309",P1e="_recientes_1gxk5_331",B1e="_switchOption1_1gxk5_343",L1e="_switchOption2_1gxk5_369",z1e="_switchStatesBig_1gxk5_387",O1e="_groupsLeagueParent_1gxk5_407",F1e="_imgHomeTeamIcon_1gxk5_427",N1e="_imgHomeTeamWrapper_1gxk5_441",D1e="_teamContainer_1gxk5_467",R1e="_name_1gxk5_493",V1e="_homeTeamContainer_1gxk5_507",j1e="_div_1gxk5_529",$1e="_scoreContainer_1gxk5_539",U1e="_scoreContainerWrapper_1gxk5_561",G1e="_teamContainer1_1gxk5_587",H1e="_awayTeamContainer_1gxk5_613",W1e="_matchContainer_1gxk5_635",q1e="_sliderMatchesChild_1gxk5_655",Y1e="_manchesterUnited_1gxk5_669",Z1e="_sliderMatchesItem_1gxk5_683",X1e="_sliderMatches_1gxk5_655",J1e="_sortIcon_1gxk5_719",K1e="_filtros_1gxk5_735",Q1e="_sortParent_1gxk5_753",eye="_shapeIcon_1gxk5_769",tye="_btnFilter_1gxk5_781",nye="_btnFilter1_1gxk5_813",aye="_btnFilterParent_1gxk5_843",rye="_backArrowIcon_1gxk5_861",iye="_teamContainer2_1gxk5_875",oye="_homeTeam_1gxk5_507",sye="_div4_1gxk5_907",lye="_finalScore_1gxk5_919",cye="_manchesterUnited1_1gxk5_947",uye="_scoreContainer1_1gxk5_963",dye="_match_1gxk5_635",hye="_manchesterUnited2_1gxk5_997",pye="_btnDetails_1gxk5_1023",fye="_matchContainer1_1gxk5_1047",mye="_goalChild_1gxk5_1065",gye="_goal_1gxk5_1065",yye="_manchesterUnited3_1gxk5_1095",vye="_minuteEvent_1gxk5_1111",_ye="_yellowCard_1gxk5_1127",bye="_awayTeamEvents_1gxk5_1143",xye="_rectangle_1gxk5_1159",wye="_homeTeamEvents_1gxk5_1175",kye="_totalEvents_1gxk5_1193",Sye="_headerSeccionAlineaciones1_1gxk5_1211",Tye="_sliderMatchesInner_1gxk5_1233",Cye="_btnFilter2_1gxk5_1247",Eye="_btnDetails1_1gxk5_1281",Aye="_matchContainer3_1gxk5_1299",Mye="_backArrowIcon1_1gxk5_1321",Iye="_match1_1gxk5_1335",Pye="_headerSeccionAlineaciones2_1gxk5_1347",Bye="_jugadores2_1gxk5_1369",Lye="_switchOption6_1gxk5_1383",zye="_switchOption7_1gxk5_1405",Oye="_switchStatesBig2_1gxk5_1431",Fye="_manchesterUnited26_1gxk5_1447",Nye="_homeTeamContainer2_1gxk5_1459",Dye="_vectorIcon_1gxk5_1475",Rye="_teamSwitch_1gxk5_1487",Vye="_matchContainer5_1gxk5_1513",jye="_manchesterUnited27_1gxk5_1535",$ye="_sliderMatchesChild1_1gxk5_1551",Uye="_sliderMatchesChild2_1gxk5_1573",Gye="_sliderMatches2_1gxk5_1595",Hye="_filtros2_1gxk5_1615",Wye="_btnFilter4_1gxk5_1635",qye="_jornada2_1gxk5_1667",Yye="_filterMatchday_1gxk5_1681",Zye="_btnDetails2_1gxk5_1703",Xye="_filtersContainer_1gxk5_1725",Jye="_matchContainer6_1gxk5_1745",Kye="_matchDetailContainer_1gxk5_1763",Qye="_containerData_1gxk5_1783",eve="_headerSeccionAlineaciones3_1gxk5_1813",tve="_headerSeccionAlineaciones_1gxk5_1211",nve="_headerSeccionAlineaciones31200_1gxk5_1865",ave="_headerSeccionAlineaciones3420_1gxk5_1891",rve="_headerSeccionAlineaciones3880_1gxk5_1917",ive="_headerSeccionAlineaciones3540_1gxk5_1941",ove="_headerSeccionAlineaciones11200_1gxk5_1967",sve="_headerSeccionAlineaciones1420_1gxk5_1995",lve="_headerSeccionAlineaciones1880_1gxk5_2017",cve="_headerSeccionAlineaciones21200_1gxk5_2039",uve="_headerSeccionAlineaciones2420_1gxk5_2067",dve="_headerSeccionAlineaciones2880_1gxk5_2091",hve="_headerSeccionAlineaciones2540_1gxk5_2113",pve={containernofoundsearchrecientes:k1e,"text-containernofoundsearchrecientes":"_text-containernofoundsearchrecientes_1gxk5_171","btn-delete-filters":"_btn-delete-filters_1gxk5_183",btndeletefilters:S1e,leyenddeleteshow:T1e,selectoritem:C1e,anNoEstn:E1e,groupsLeague:A1e,historicas:M1e,switchOption:I1e,recientes:P1e,switchOption1:B1e,switchOption2:L1e,switchStatesBig:z1e,groupsLeagueParent:O1e,imgHomeTeamIcon:F1e,imgHomeTeamWrapper:N1e,teamContainer:D1e,name:R1e,homeTeamContainer:V1e,div:j1e,scoreContainer:$1e,scoreContainerWrapper:U1e,teamContainer1:G1e,awayTeamContainer:H1e,matchContainer:W1e,sliderMatchesChild:q1e,manchesterUnited:Y1e,sliderMatchesItem:Z1e,sliderMatches:X1e,sortIcon:J1e,filtros:K1e,sortParent:Q1e,shapeIcon:eye,btnFilter:tye,btnFilter1:nye,btnFilterParent:aye,backArrowIcon:rye,teamContainer2:iye,homeTeam:oye,div4:sye,finalScore:lye,manchesterUnited1:cye,scoreContainer1:uye,match:dye,manchesterUnited2:hye,btnDetails:pye,matchContainer1:fye,goalChild:mye,goal:gye,manchesterUnited3:yye,minuteEvent:vye,yellowCard:_ye,awayTeamEvents:bye,rectangle:xye,homeTeamEvents:wye,totalEvents:kye,headerSeccionAlineaciones1:Sye,sliderMatchesInner:Tye,btnFilter2:Cye,btnDetails1:Eye,matchContainer3:Aye,backArrowIcon1:Mye,match1:Iye,headerSeccionAlineaciones2:Pye,jugadores2:Bye,switchOption6:Lye,switchOption7:zye,switchStatesBig2:Oye,manchesterUnited26:Fye,homeTeamContainer2:Nye,vectorIcon:Dye,teamSwitch:Rye,matchContainer5:Vye,manchesterUnited27:jye,sliderMatchesChild1:$ye,sliderMatchesChild2:Uye,sliderMatches2:Gye,filtros2:Hye,btnFilter4:Wye,jornada2:qye,filterMatchday:Yye,btnDetails2:Zye,filtersContainer:Xye,matchContainer6:Jye,matchDetailContainer:Kye,containerData:Qye,headerSeccionAlineaciones3:eve,headerSeccionAlineaciones:tve,headerSeccionAlineaciones31200:nve,headerSeccionAlineaciones3420:ave,headerSeccionAlineaciones3880:rve,headerSeccionAlineaciones3540:ive,headerSeccionAlineaciones11200:ove,headerSeccionAlineaciones1420:sve,headerSeccionAlineaciones1880:lve,headerSeccionAlineaciones21200:cve,headerSeccionAlineaciones2420:uve,headerSeccionAlineaciones2880:dve,headerSeccionAlineaciones2540:hve},fve={components:{GSCCarousel:ix,GscSwitchComponent:n2,GSCDropdown:b8,GSCFilter:v1e,GSCSwitchRadio:DI,GSCMatchDetails:jI},props:{widthSize:{type:Number,default:0},optionSelected:{type:String,default:"Historicos"},selectedOption:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},watch:{optionSelected:{immediate:!0,handler:async function(e){e=="Recientes"&&(this.auxISsection=1)}},gameInfo:{immediate:!0,handler:async function(e){try{this.teamSelect=e.home_team_abbreviation,this.matchFilter()}catch(s){throw new Error(s)}}},gameRecientes:{immediate:!0,handler:async function(e){this.matchFilter()}}},data(){return{playminutes:[],showDetails:!1,teamSelect:"",defaultDropItem:{},updateCarouselGames:0,valLast:{},selectedIndexOption:0,openfiltervalue:!1,vDeleteFilter:!1,filterObject:{},coutChange:0,auxISsection:0,matchdaysFiltersUpdate:[],gamesFiltersUpdate:[],localDetails:[],keyUpdate:0,foreignDetails:[]}},computed:{matchdaysFinal(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==1&&e.push(this.matchdaysFiltersUpdate[s]);for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==3&&e.push(this.matchdaysFiltersUpdate[s])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==1&&e.push(this.matchdaysFiltersUpdate[s]);for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==2&&e.push(this.matchdaysFiltersUpdate[s])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==3&&e.push(this.matchdaysFiltersUpdate[s]);for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==2&&e.push(this.matchdaysFiltersUpdate[s])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==1&&e.push(this.matchdaysFiltersUpdate[s]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==2&&e.push(this.matchdaysFiltersUpdate[s]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)this.matchdaysFiltersUpdate[s].match_result==3&&e.push(this.matchdaysFiltersUpdate[s])}else for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)e.push(this.matchdaysFiltersUpdate[s]);else for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)e.push(this.matchdaysFiltersUpdate[s]);return e.sort((s,o)=>o.id-s.id),e},gameRecientesFilter(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==1||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==1)&&e.push(this.gamesFiltersUpdate[s]);for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==3||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==3)&&e.push(this.gamesFiltersUpdate[s])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==1||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==1)&&e.push(this.gamesFiltersUpdate[s]);for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==2||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==2)&&e.push(this.gamesFiltersUpdate[s])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==3||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==3)&&e.push(this.gamesFiltersUpdate[s]);for(let s=0;s<this.gamesFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==2||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==2)&&e.push(this.gamesFiltersUpdate[s])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==1||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==1)&&e.push(this.gamesFiltersUpdate[s]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==2||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==2)&&e.push(this.gamesFiltersUpdate[s]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let s=0;s<this.matchdaysFiltersUpdate.length;s++)(this.gamesFiltersUpdate[s].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].visiting_match_result==3||this.gamesFiltersUpdate[s].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[s].home_match_result==3)&&e.push(this.gamesFiltersUpdate[s])}else for(let s=0;s<this.gamesFiltersUpdate.length;s++)e.push(this.gamesFiltersUpdate[s]);else for(let s=0;s<this.gamesFiltersUpdate.length;s++)e.push(this.gamesFiltersUpdate[s]);return e.sort((s,o)=>s.matchday_id-o.matchday_id),e},headerSeccionAlineaciones1Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones1420:e<=880?this.$style.headerSeccionAlineaciones1880:e<=1200?this.$style.headerSeccionAlineaciones11200:this.$style.headerSeccionAlineaciones1},headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones2420:e<=540?this.$style.headerSeccionAlineaciones2540:e<=880?this.$style.headerSeccionAlineaciones2880:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones3Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones3420:e<=540?this.$style.headerSeccionAlineaciones3540:e<=880?this.$style.headerSeccionAlineaciones3880:e<=1200?this.$style.headerSeccionAlineaciones31200:this.$style.headerSeccionAlineaciones3}},methods:{clickOnValueFilter(){this.auxISsection=0},clickOnValueCarrousel(){this.auxISsection=0},deleteFilters(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickShowDetails(){this.showDetails=!this.showDetails},matchFilter(){var e=[],s=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let o=0;o<this.gameRecientes[this.teamSelect].length;o++)this.filterObject.selectedFilterTeam[0]=="local"?this.gameRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect&&(e.push({name:this.gameRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].home_match_result}),s.push(this.gameRecientes[this.teamSelect][o])):this.gameRecientes[this.teamSelect][o].away_team_abbreviation==this.teamSelect&&(e.push({name:this.gameRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].visiting_match_result}),s.push(this.gameRecientes[this.teamSelect][o]));else if(this.gameRecientes[this.teamSelect])for(let o=0;o<this.gameRecientes[this.teamSelect].length;o++)e.push({name:this.gameRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][o].home_match_result:this.gameRecientes[this.teamSelect][o].visiting_match_result}),s.push(this.gameRecientes[this.teamSelect][o])}else if(this.gameRecientes[this.teamSelect])for(let o=0;o<this.gameRecientes[this.teamSelect].length;o++)e.push({name:this.getRound(this.gameRecientes[this.teamSelect][o].matchday_abbreviation),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][o].home_match_result:this.gameRecientes[this.teamSelect][o].visiting_match_result}),s.push(this.gameRecientes[this.teamSelect][o]);this.gamesFiltersUpdate=s,this.matchdaysFiltersUpdate=e},getRound(e){let s=e.replace("M","Jornada ");return s=s.replace("PO1","CFI"),s=s.replace("PO2","CFV"),s=s.replace("PO3","SFI"),s=s.replace("PO4","SFV"),s=s.replace("PO5","FI"),s=s.replace("PO6","FV"),s},changeFiltersModal(e){this.auxISsection=1,this.filterObject=e,this.openfiltervalue=!1,this.matchFilter(),setTimeout(()=>{this.keyUpdate+=1,this.updateCarouselGames+=1},600)},openFilter(){this.openfiltervalue=!0},getMinutesData(e){this.localDetails=[],this.foreignDetails=[];for(let s=0;s<e.home_goals_minutes.length;s++)this.localDetails.push({description:e.home_goals_minutes[s],icon:"goal"});for(let s=0;s<e.visiting_goals_minutes.length;s++)this.foreignDetails.push({description:e.visiting_goals_minutes[s],icon:"goal"});for(let s=0;s<e.home_yellow_cards_minutes.length;s++)this.localDetails.push({description:e.home_yellow_cards_minutes[s],icon:"yellow-card"});for(let s=0;s<e.away_yellow_cards_minutes.length;s++)this.foreignDetails.push({description:e.away_yellow_cards_minutes[s],icon:"yellow-card"});for(let s=0;s<e.home_red_cards_minutes.length;s++)this.localDetails.push({description:e.home_red_cards_minutes[s],icon:"red-card"});for(let s=0;s<e.away_red_cards_minutes.length;s++)this.foreignDetails.push({description:e.away_red_cards_minutes[s],icon:"red-card"})},changeCarouselItem(e){setTimeout(()=>{JSON.stringify(e)!==JSON.stringify(this.valLast)&&this.gameRecientesFilter&&this.gameRecientesFilter.length>0&&e&&(e.selectedItem===void 0&&(e.selectedItem=this.gameRecientesFilter[this.gameRecientesFilter.length-1],e.selectedItemIndex=this.gameRecientesFilter.length-1),this.valLast=e,this.auxISsection==1?(this.$emit("input",{selectedItem:this.gameRecientesFilter[this.gameRecientesFilter.length-1],selectedItemIndex:this.gameRecientesFilter.length-1}),this.getMinutesData(this.gameRecientesFilter[this.gameRecientesFilter.length-1].minutes),this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id}):(this.$emit("input",e),this.getMinutesData(e.selectedItem.minutes),this.selectedIndexOption=e.selectedItemIndex,this.defaultDropItem={propName:"id",value:e.selectedItem.matchday_id}),this.keyUpdate+=1)},200)},changeDropdown(e){if(this.gameRecientesFilter&&this.gameRecientesFilter.length>0)if(this.auxISsection==1)this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id};else{const s=this.gameRecientesFilter.findIndex(o=>o.matchday_id==e.id);s!=-1&&(this.selectedIndexOption=s,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[s].matchday_id})}},changeSwitchRadio(e){this.auxISsection=1,typeof e!="object"&&(this.teamSelect=e,this.$emit("changeTeam",this.teamSelect),this.updateCarouselGames+=1,this.matchFilter())},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},mve=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),gve=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),yve=["src"],vve=["src"],_ve={class:"selector-tournaments"},bve=["src"],xve=["src"],wve={key:1},kve=t.createElementVNode("br",null,null,-1),Sve=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),Tve=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),Cve=["src"],Eve=["src"],Ave={class:"selector-tournaments"},Mve=["src"],Ive=["src"],Pve={key:1},Bve=t.createElementVNode("br",null,null,-1),Lve=["src"],zve=["src"],Ove={class:"selector-tournaments"},Fve=["src"],Nve=["src"],Dve={key:1},Rve=t.createElementVNode("br",null,null,-1);function Vve(e,s,o,O,W,b){const g=t.resolveComponent("GscSwitchComponent"),a=t.resolveComponent("GSCSwitchRadio"),_=t.resolveComponent("GSCFilter"),h=t.resolveComponent("GSCDropdown"),n=t.resolveComponent("GSCCarousel"),x=t.resolveComponent("GSCMatchDetails");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(b.headerSeccionAlineaciones1Class),id:"header-desktop-full"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[mve,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),gve],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(g,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:b.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,yve)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(a,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":o.gameInfo.home_team_abbreviation,onChange:b.changeSwitchRadio,"text-option-right":o.gameInfo.away_team_abbreviation,"font-color":"white","value-default":W.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,vve)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:s[0]||(s[0]=(...y)=>b.openFilter&&b.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:x8},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:r2},null,2),t.createVNode(_,{"item-select":W.filterObject,"is-open":W.openfiltervalue,onChange:b.changeFiltersModal,reset:W.vDeleteFilter,"margin-modal":"-83px"},null,8,["item-select","is-open","onChange","reset"])],2),b.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{onClick:b.clickOnValueFilter,key:W.keyUpdate,"default-item-by-prop":W.defaultDropItem,class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters",items:b.matchdaysFinal,onInput:b.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(y=>[t.createElementVNode("div",_ve,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[b.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(n,{onClick:b.clickOnValueCarrousel,key:W.updateCarouselGames,"default-item-by-index":W.selectedIndexOption,items:b.gameRecientesFilter,onInput:b.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.home_team+".png"},null,10,bve)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==W.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==W.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.away_team+".png"},null,10,xve),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["onClick","default-item-by-index","items","onInput"])):(t.openBlock(),t.createElementBlock("div",wve,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),kve,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:s[1]||(s[1]=(...y)=>b.deleteFilters&&b.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),W.showDetails?(t.openBlock(),t.createBlock(x,{key:2,style:{"margin-top":"30px"},localDetails:W.localDetails,foreignDetails:W.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:s[2]||(s[2]=(...y)=>b.clickShowDetails&&b.clickShowDetails(...y))},[W.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(b.headerSeccionAlineaciones2Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[Sve,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),Tve],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(g,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:b.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,Cve)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(a,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":o.gameInfo.home_team_abbreviation,onChange:b.changeSwitchRadio,"text-option-right":o.gameInfo.away_team_abbreviation,"font-color":"white","value-default":W.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,Eve)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer3)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter2),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:s[3]||(s[3]=(...y)=>b.openFilter&&b.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:_1e},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:b1e},null,2),t.createVNode(_,{"item-select":W.filterObject,"is-open":W.openfiltervalue,onChange:b.changeFiltersModal,"margin-modal":"-99px"},null,8,["item-select","is-open","onChange"])],2),b.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{onClick:b.clickOnValueFilter,key:W.keyUpdate,"default-item-by-prop":W.defaultDropItem,class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters",items:b.matchdaysFinal,onInput:b.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(y=>[t.createElementVNode("div",Ave,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:s[4]||(s[4]=(...y)=>b.clickShowDetails&&b.clickShowDetails(...y))},[W.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.match1)},[b.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(n,{items:b.gameRecientesFilter,key:W.updateCarouselGames,"default-item-by-index":W.selectedIndexOption,onInput:b.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.home_team+".png"},null,10,Mve)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==W.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==W.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.away_team+".png"},null,10,Ive),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","default-item-by-index","onInput"])):(t.openBlock(),t.createElementBlock("div",Pve,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),Bve,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:s[5]||(s[5]=(...y)=>b.deleteFilters&&b.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),W.showDetails?(t.openBlock(),t.createBlock(x,{key:2,style:{"margin-top":"30px"},localDetails:W.localDetails,foreignDetails:W.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(b.headerSeccionAlineaciones3Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig2),id:"switch-lineup"},[t.createVNode(g,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:b.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited26)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer5),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,Lve)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(a,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":o.gameInfo.home_team_abbreviation,onChange:b.changeSwitchRadio,"text-option-right":o.gameInfo.away_team_abbreviation,"font-color":"white","value-default":W.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,zve)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtersContainer)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter4),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:s[6]||(s[6]=(...y)=>b.openFilter&&b.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:x1e},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros2)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:w1e},null,2),t.createVNode(_,{"item-select":W.filterObject,"is-open":W.openfiltervalue,onChange:b.changeFiltersModal,"margin-modal":"-75px"},null,8,["item-select","is-open","onChange"])],2),b.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{onClick:b.clickOnValueFilter,key:W.keyUpdate,"default-item-by-prop":W.defaultDropItem,class:t.normalizeClass(e.$style.filterMatchday),id:"menu-matchday",items:b.matchdaysFinal,onInput:b.changeDropdown,height:"25px",width:"100px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(y=>[t.createElementVNode("div",Ove,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:s[7]||(s[7]=(...y)=>b.clickShowDetails&&b.clickShowDetails(...y))},[W.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchDetailContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer6),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[b.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(n,{key:W.updateCarouselGames,"default-item-by-index":W.selectedIndexOption,items:b.gameRecientesFilter,onInput:b.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.home_team+".png"},null,10,Fve)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==W.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==W.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.away_team+".png"},null,10,Nve),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["default-item-by-index","items","onInput"])):(t.openBlock(),t.createElementBlock("div",Dve,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),Rve,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:s[8]||(s[8]=(...y)=>b.deleteFilters&&b.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),W.showDetails?(t.openBlock(),t.createBlock(x,{key:2,style:{"margin-top":"30px"},localDetails:W.localDetails,foreignDetails:W.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2)],2)],2)],2)],2)],2)}const jve={$style:pve},$ve=ep(fve,[["render",Vve],["__cssModules",jve]]),Uve="_selectoritem_16hc8_179",Gve="_selectoritem2_16hc8_199",Hve="_gscheaderlineup_16hc8_219",Wve="_anNoEstn_16hc8_233",qve="_groupsLeague_16hc8_239",Yve="_jugadores_16hc8_249",Zve="_switchOption_16hc8_259",Xve="_jugadores1_16hc8_279",Jve="_switchOption1_16hc8_289",Kve="_switchStatesBig_16hc8_305",Qve="_groupsLeagueParent_16hc8_323",e2e="_imgHomeTeamIcon_16hc8_341",t2e="_imgHomeTeamWrapper_16hc8_353",n2e="_teamContainer_16hc8_377",a2e="_name_16hc8_401",r2e="_homeTeamContainer_16hc8_413",i2e="_div_16hc8_433",o2e="_titleSession_16hc8_441",s2e="_scoreContainer_16hc8_461",l2e="_scoreContainerWrapper_16hc8_481",c2e="_teamContainer1_16hc8_505",u2e="_awayTeamContainer_16hc8_529",d2e="_matchContainer_16hc8_549",h2e="_sliderMatchesChild_16hc8_567",p2e="_manchesterUnited_16hc8_579",f2e="_sliderMatchesItem_16hc8_591",m2e="_sliderMatches_16hc8_567",g2e="_sortIcon_16hc8_627",y2e="_filtros_16hc8_641",v2e="_sortParent_16hc8_657",_2e="_shapeIcon_16hc8_671",b2e="_btnFilter_16hc8_681",x2e="_btnFilter1_16hc8_709",w2e="_btnFilterParent_16hc8_737",k2e="_backArrowIcon_16hc8_753",S2e="_teamContainer2_16hc8_765",T2e="_homeTeam_16hc8_413",C2e="_div4_16hc8_793",E2e="_finalScore_16hc8_803",A2e="_manchesterUnited1_16hc8_829",M2e="_scoreContainer1_16hc8_843",I2e="_match_16hc8_549",P2e="_manchesterUnited2_16hc8_879",B2e="_btnDetails_16hc8_889",L2e="_matchContainer1_16hc8_909",z2e="_goalChild_16hc8_925",O2e="_goal_16hc8_925",F2e="_manchesterUnited3_16hc8_951",N2e="_minuteEvent_16hc8_965",D2e="_yellowCard_16hc8_979",R2e="_awayTeamEvents_16hc8_993",V2e="_rectangle_16hc8_1007",j2e="_homeTeamEvents_16hc8_1021",$2e="_totalEvents_16hc8_1037",U2e="_headerSeccionAlineaciones1_16hc8_1053",G2e="_switchOption3_16hc8_1075",H2e="_switchOption4_16hc8_1099",W2e="_switchStatesBig1_16hc8_1119",q2e="_manchesterUnited13_16hc8_1133",Y2e="_homeTeamContainer1_16hc8_1143",Z2e="_scoreContainer2_16hc8_1157",X2e="_matchContainer2_16hc8_1185",J2e="_manchesterUnited14_16hc8_1205",K2e="_sliderMatchesInner_16hc8_1219",Q2e="_rectangleIcon_16hc8_1239",e_e="_sliderMatches1_16hc8_1259",t_e="_containerData_16hc8_1275",n_e="_headerSeccionAlineaciones2_16hc8_1303",a_e="_headerSeccionAlineaciones_16hc8_1053",r_e="_headerSeccionAlineaciones21200_16hc8_1351",i_e="_headerSeccionAlineaciones1540_16hc8_1357",o_e="_headerSeccionAlineaciones2540_16hc8_1365",s_e={selectoritem:Uve,selectoritem2:Gve,gscheaderlineup:Hve,anNoEstn:Wve,groupsLeague:qve,jugadores:Yve,switchOption:Zve,jugadores1:Xve,switchOption1:Jve,switchStatesBig:Kve,groupsLeagueParent:Qve,imgHomeTeamIcon:e2e,imgHomeTeamWrapper:t2e,teamContainer:n2e,name:a2e,homeTeamContainer:r2e,div:i2e,titleSession:o2e,scoreContainer:s2e,scoreContainerWrapper:l2e,teamContainer1:c2e,awayTeamContainer:u2e,matchContainer:d2e,sliderMatchesChild:h2e,manchesterUnited:p2e,sliderMatchesItem:f2e,sliderMatches:m2e,sortIcon:g2e,filtros:y2e,sortParent:v2e,shapeIcon:_2e,btnFilter:b2e,btnFilter1:x2e,btnFilterParent:w2e,backArrowIcon:k2e,teamContainer2:S2e,homeTeam:T2e,div4:C2e,finalScore:E2e,manchesterUnited1:A2e,scoreContainer1:M2e,match:I2e,manchesterUnited2:P2e,btnDetails:B2e,matchContainer1:L2e,goalChild:z2e,goal:O2e,manchesterUnited3:F2e,minuteEvent:N2e,yellowCard:D2e,awayTeamEvents:R2e,rectangle:V2e,homeTeamEvents:j2e,totalEvents:$2e,headerSeccionAlineaciones1:U2e,switchOption3:G2e,switchOption4:H2e,switchStatesBig1:W2e,manchesterUnited13:q2e,homeTeamContainer1:Y2e,scoreContainer2:Z2e,matchContainer2:X2e,manchesterUnited14:J2e,sliderMatchesInner:K2e,rectangleIcon:Q2e,sliderMatches1:e_e,containerData:t_e,headerSeccionAlineaciones2:n_e,headerSeccionAlineaciones:a_e,headerSeccionAlineaciones21200:r_e,headerSeccionAlineaciones1540:i_e,headerSeccionAlineaciones2540:o_e},l_e={components:{GSCCarousel:ix,GscSwitchComponent:n2},props:{optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},isLive:{type:Boolean,default:!1},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",{season_id:e.season_id,game_id:e.id})}catch(s){throw new Error(s)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=540?this.$style.headerSeccionAlineaciones2540:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{remplazarMxJor(e){return e.replace("M","JOR ")},changeCarouselItem(e){this.$emit("input",{season_id:e.selectedItem.season,game_id:e.selectedItem.game,ht_abrev:e.selectedItem.home_team_abbreviation,at_abrev:e.selectedItem.away_team_abbreviation}),this.selectedOption=e.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},c_e=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),u_e=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),d_e=["src"],h_e=["src"],p_e=["src"],f_e=["src"],m_e=["src"],g_e=["src"];function y_e(e,s,o,O,W,b){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.gscheaderlineup)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(b.headerSeccionAlineaciones1Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[c_e,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),u_e],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},null,2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,d_e)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[o.isLive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.scoreContainer)},[Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.titleSession)},t.toDisplayString(o.gameInfo.season_name!==void 0?o.gameInfo.season_name+"  |  "+b.remplazarMxJor(o.gameInfo.matchday_abbreviation)+"  |  "+o.gameInfo.home_team_abbreviation+" - "+o.gameInfo.away_team_abbreviation:""),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,h_e)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches)},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:x8},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:r2},null,2)],2),t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Jornada",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"2",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:r2},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:KI},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,p_e)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[o.isLive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.finalScore)},[Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[o.teamActive=="home"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,f_e),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:QI},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(b.headerSeccionAlineaciones2Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig1),id:"switch-lineup"},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited13)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,m_e)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),o.isLive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.scoreContainer2)},[Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,g_e)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches1)},null,2)],2)],2)],2)],2)}const v_e={$style:s_e},__e=ep(l_e,[["render",y_e],["__cssModules",v_e]]),b_e="_anNoEstn_j98j7_139",x_e="_groupsLeague_j98j7_145",w_e="_historicas_j98j7_153",k_e="_switchOption_j98j7_163",S_e="_switchOption1_j98j7_183",T_e="_probables_j98j7_203",C_e="_switchOption2_j98j7_213",E_e="_switchStatesBig_j98j7_237",A_e="_groupsLeagueParent_j98j7_255",M_e="_imgHomeTeamIcon_j98j7_273",I_e="_imgHomeTeamWrapper_j98j7_285",P_e="_teamContainer_j98j7_309",B_e="_name_j98j7_333",L_e="_jor_j98j7_345",z_e="_jorParent_j98j7_357",O_e="_shapeIcon_j98j7_373",F_e="_frameParent_j98j7_383",N_e="_manchesterUnited_j98j7_413",D_e="_necaxaIcon_j98j7_435",R_e="_manchesterUnited1_j98j7_447",V_e="_team_j98j7_309",j_e="_homeTeamContainer_j98j7_475",$_e="_div1_j98j7_495",U_e="_scoreContainer_j98j7_503",G_e="_scoreContainerWrapper_j98j7_525",H_e="_team1_j98j7_549",W_e="_name1_j98j7_563",q_e="_teamContainer1_j98j7_577",Y_e="_awayTeamContainer_j98j7_601",Z_e="_matchContainer_j98j7_623",X_e="_goalChild_j98j7_641",J_e="_goal_j98j7_641",K_e="_manchesterUnited4_j98j7_667",Q_e="_minuteEvent_j98j7_681",ebe="_yellowCard_j98j7_695",tbe="_awayTeamEvents_j98j7_709",nbe="_rectangle_j98j7_723",abe="_homeTeamEvents_j98j7_737",rbe="_totalEvents_j98j7_753",ibe="_headerSeccionAlineaciones1_j98j7_769",obe="_homeTeamContainer1_j98j7_789",sbe="_awayTeamContainer1_j98j7_813",lbe="_headerSeccionAlineaciones2_j98j7_837",cbe="_jugadores_j98j7_857",ube="_switchOption6_j98j7_869",dbe="_switchOption8_j98j7_889",hbe="_switchStatesBig2_j98j7_913",pbe="_manchesterUnited28_j98j7_927",fbe="_homeTeamContainer2_j98j7_935",mbe="_matchContainer2_j98j7_949",gbe="_manchesterUnited29_j98j7_971",ybe="_sliderMatchesChild_j98j7_985",vbe="_sliderMatchesItem_j98j7_1005",_be="_sliderMatches_j98j7_985",bbe="_jorParent2_j98j7_1045",xbe="_filterMatchday_j98j7_1059",wbe="_necaxaIcon4_j98j7_1081",kbe="_team4_j98j7_1093",Sbe="_filterMatchdayParent_j98j7_1113",Tbe="_filterMatchday1_j98j7_1127",Cbe="_teamParent_j98j7_1157",Ebe="_filtersContainer_j98j7_1177",Abe="_containerData_j98j7_1195",Mbe="_headerSeccionAlineaciones3_j98j7_1223",Ibe="_headerSeccionAlineaciones_j98j7_769",Pbe={anNoEstn:b_e,groupsLeague:x_e,historicas:w_e,switchOption:k_e,switchOption1:S_e,probables:T_e,switchOption2:C_e,switchStatesBig:E_e,groupsLeagueParent:A_e,imgHomeTeamIcon:M_e,imgHomeTeamWrapper:I_e,teamContainer:P_e,name:B_e,jor:L_e,jorParent:z_e,shapeIcon:O_e,frameParent:F_e,manchesterUnited:N_e,necaxaIcon:D_e,manchesterUnited1:R_e,team:V_e,homeTeamContainer:j_e,div1:$_e,scoreContainer:U_e,scoreContainerWrapper:G_e,team1:H_e,name1:W_e,teamContainer1:q_e,awayTeamContainer:Y_e,matchContainer:Z_e,goalChild:X_e,goal:J_e,manchesterUnited4:K_e,minuteEvent:Q_e,yellowCard:ebe,awayTeamEvents:tbe,rectangle:nbe,homeTeamEvents:abe,totalEvents:rbe,headerSeccionAlineaciones1:ibe,homeTeamContainer1:obe,awayTeamContainer1:sbe,headerSeccionAlineaciones2:lbe,jugadores:cbe,switchOption6:ube,switchOption8:dbe,switchStatesBig2:hbe,manchesterUnited28:pbe,homeTeamContainer2:fbe,matchContainer2:mbe,manchesterUnited29:gbe,sliderMatchesChild:ybe,sliderMatchesItem:vbe,sliderMatches:_be,jorParent2:bbe,filterMatchday:xbe,necaxaIcon4:wbe,team4:kbe,filterMatchdayParent:Sbe,filterMatchday1:Tbe,teamParent:Cbe,filtersContainer:Ebe,containerData:Abe,headerSeccionAlineaciones3:Mbe,headerSeccionAlineaciones:Ibe},Bbe={components:{GSCDropdown:b8,GscSwitchComponent:n2},props:{optionSelected:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},data(){return{rivalHomeImg:"",rivalVisitImg:"",rivalHomeAbrev:"",rivalVisitAbrev:"",auxVal:0}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",e)}catch(s){throw new Error(s)}}}},methods:{clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)},changeDropdownVisit(e){const s=this.gameRecientes[this.gameInfo.away_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalVisitAbrev=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][s].home_team_abbreviation?this.gameRecientes[this.gameInfo.away_team_abbreviation][s].away_team_abbreviation:this.gameRecientes[this.gameInfo.away_team_abbreviation][s].home_team_abbreviation,this.rivalVisitImg=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][s].home_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][s].away_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][s].home_team+".png",this.$emit("changeaway",this.gameRecientes[this.gameInfo.away_team_abbreviation][s])},changeDropdownLocal(e){const s=this.gameRecientes[this.gameInfo.home_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalHomeAbrev=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][s].away_team_abbreviation?this.gameRecientes[this.gameInfo.home_team_abbreviation][s].home_team_abbreviation:this.gameRecientes[this.gameInfo.home_team_abbreviation][s].away_team_abbreviation,this.rivalHomeImg=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][s].away_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][s].home_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][s].away_team+".png",this.$emit("changehome",this.gameRecientes[this.gameInfo.home_team_abbreviation][s])}}},Lbe=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),zbe=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),Obe=["src"],Fbe={class:"selector-tournaments"},Nbe=["src"],Dbe=["src"],Rbe={class:"selector-tournaments"},Vbe=["src"],jbe=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),$be=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),Ube=["src"],Gbe={class:"selector-tournaments"},Hbe=["src"],Wbe=["src"],qbe={class:"selector-tournaments"},Ybe=["src"],Zbe=["src"],Xbe=["src"],Jbe={class:"selector-tournaments"},Kbe=["src"],Qbe=["src"],exe={class:"selector-tournaments"};function txe(e,s,o,O,W,b){const g=t.resolveComponent("GscSwitchComponent"),a=t.resolveComponent("GSCDropdown");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones1),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[Lbe,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),zbe],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(g,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:b.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,Obe)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3),t.createVNode(a,{class:t.normalizeClass(e.$style.frameParent),items:o.matchdaysDefault[o.gameInfo.home_team_abbreviation],onInput:b.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",Fbe,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["class","items","onInput"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:W.rivalHomeImg},null,10,Nbe),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(W.rivalHomeAbrev),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"2",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"-",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"2",2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(W.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:W.rivalVisitImg},null,10,Dbe),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2)],2),t.createVNode(a,{class:t.normalizeClass(e.$style.frameParent),items:o.matchdaysDefault[o.gameInfo.away_team_abbreviation],onInput:b.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",Rbe,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["class","items","onInput"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name1)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,Vbe)],2)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones2),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[jbe,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),$be],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(g,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:b.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,Ube)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameParent)},[t.createVNode(a,{items:o.matchdaysDefault[o.gameInfo.home_team_abbreviation],onInput:b.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",Gbe,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["items","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:W.rivalHomeImg},null,10,Hbe),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(W.rivalHomeAbrev),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(W.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:W.rivalVisitImg},null,10,Wbe),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameParent)},[t.createVNode(a,{items:o.matchdaysDefault[o.gameInfo.away_team_abbreviation],onInput:b.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",qbe,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["items","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,Ybe)],2)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones3),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig2),id:"switch-lineup"},[t.createVNode(g,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:b.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited28)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,Zbe)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,Xbe)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtersContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchdayParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday1)},[t.createVNode(a,{items:o.matchdaysDefault[o.gameInfo.home_team_abbreviation],onInput:b.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",Jbe,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["items","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team4)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon4),alt:"",src:W.rivalHomeImg},null,10,Kbe)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team1)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon4),alt:"",src:W.rivalVisitImg},null,10,Qbe),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},"vs",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday1)},[t.createVNode(a,{items:o.matchdaysDefault[o.gameInfo.away_team_abbreviation],onInput:b.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",exe,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["items","onInput"])],2)],2)],2)],2)],2)],2)}const nxe={$style:Pbe},axe=ep(Bbe,[["render",txe],["__cssModules",nxe]]);let eP=null;const rxe={name:"LineupPlayers",props:{isFemale:{type:Boolean,default:!1},game:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Prematch"},isLive:{type:Boolean,default:!1},socket:{type:Object,default:()=>{}}},components:{CardPlayer:E0e,HeaderPlayerHistorico:a1e,HeaderPlayerRecientes:$ve,HeaderPlayerProbables:axe,HeaderPlayerPostmatch:__e},data(){return{lastGetLineUpGameId:"",lastGetMXMUrl:"",selectOptMenuheader:"Historicos",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",urlGames:"https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/",url:"https://tj4cepyjc4.execute-api.us-west-2.amazonaws.com/prod/lineups/",urlMXM:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",retries:3,teamActive:"home",subsActive:!1,playersHome:[],gamesContainerWidth:0,keyUpdateRecientes:0,playersAway:[],defaultDropItem:{},subsTitle:!1,uniformHome:"",valueUpdateRecientes:0,uniformHomeG:"",uniformAway:"",uniformAwayG:"",dataPlayersHome:[],dataPlayersAway:[],homeTeamLogo:"",awayTeamLogo:"",homeTeamName:"",awayTeamName:"",homeTeamAbrev:"",awayTeamAbrev:"",home_team_id:0,updateComponentAway:0,away_team_id:0,substitutionModal:{min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},homeTeam:{},visitingTeam:{},gameForAnalysis:{},movil:!1,positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}],auxProbablesIDGameHome:0,auxProbablesIDGameAway:0,auxHistoricGameID:0,gameInfoheader:{},gamesHistoric:[],gamesRecientes:[],matchdaysPerTeam:[],lastGetGame:0,lastSection:""}},computed:{goalcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"goal_card_div440":e<=650?"goal_card_div650":e<=820?"goal_card_div820":"goal_card_div"},yellowredcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"yellowred_card_div440":e<=650?"yellowred_card_div650":e<=820?"yellowred_card_div820":"yellowred_card_div"},redcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"red_card_div440":e<=650?"red_card_div650":e<=820?"red_card_div820":"red_card_div"},yellowcarddivclass(){const e=this.gamesContainerWidth;return e<=440?"yellow_card_div440":e<=650?"yellow_card_div650":e<=820?"yellow_card_div820":"yellow_card_div"},infochangeplayeritemClass(){const e=this.gamesContainerWidth;return e<=440?"info-chamge-player-item440":e<=650?"info-chamge-player-item650":e<=740?"info-chamge-player-item740":"info-chamge-player-item"},infonameplayeritemClass(){const e=this.gamesContainerWidth;return e<=440?"info-name-player-item440":e<=650?"info-name-player-item650":e<=740?"info-name-player-item740":"info-name-player-item"},infoplayeritemClass(){const e=this.gamesContainerWidth;return e<=400?"info-player-item400":e<=440?"info-player-item440":e<=650?"info-player-item650":e<=740?"info-player-item740":"info-player-item"},numPlayerClass(){const e=this.gamesContainerWidth;return e<=440?"num-Player440":e<=540?"num-Player540":e<=740?"num-Player740":"num-Player"},jerseyitemplayerClass(){const e=this.gamesContainerWidth;return e<=440?"jerseyitemplayer440":e<=540?"jerseyitemplayer540":e<=650?"jerseyitemplayer650":e<=740?"jerseyitemplayer740":"jerseyitemplayer"},itemplayerfieldClass(){return this.gamesContainerWidth<=740?"itemplayer-field740":"itemplayer-field"},canchacontainerClass(){const e=this.gamesContainerWidth;return e<=300?"cancha-container300":e<=325?"cancha-container325":e<=350?"cancha-container350":e<=440?"cancha-container440":e<=540?"cancha-container540":e<=740?"cancha-container740":e<=820?"cancha-container820":e<=840?"cancha-container840":e<=940?"cancha-container940":e<=1140?"cancha-container1140":"cancha-container"},fieldcontainerClass(){const e=this.gamesContainerWidth;return e<=300?"field-container300":e<=380?"field-container380":e<=440?"field-container440":e<=540?"field-container540":e<=740?"field-container740":"field-container"},notificationnolineupsClass(){const e=this.gamesContainerWidth;return e<=300?"notification-no-lineups300":e<=370?"notification-no-lineups370":e<=400?"notification-no-lineups400":e<=460?"notification-no-lineups460":e<=500?"notification-no-lineups500":e<=530?"notification-no-lineups530":e<=740?"notification-no-lineups740":e<=768?"notification-no-lineups768":e<=830?"notification-no-lineups830":e<=900?"notification-no-lineups900":"notification-no-lineups"},containernolineups(){const e=this.gamesContainerWidth;return e<=300?"container-no-lineups300":e<=350?"container-no-lineups350":e<=768?"container-no-lineups768":"container-no-lineups"},menuTeamsClass(){return this.gamesContainerWidth<=740?"menu-teams-mobile740":"menu-teams-mobile"},positionClass(){return this.gamesContainerWidth<=500?"gsc-position-player500":"gsc-position-player"},positionClass2(){return this.gamesContainerWidth<=500?"gsc-position-player2500":"gsc-position-player2"},containerlineupsClass(){const e=this.gamesContainerWidth;return e<=740?"gsc-lineups-container680":e<=900?"gsc-lineups-container900":"gsc-lineups-container"},containerClassHome(){const e=this.gamesContainerWidth;return e<=740?"gsclineupscontainerhome680":e<=768?"gsclineupscontainerhome768":e<=900?"gsclineupscontainerhome900":"gsclineupscontainerhome"},containerClassAway(){const e=this.gamesContainerWidth;return e<=740?"gsclineupscontaineraway680":e<=768?"gsclineupscontaineraway768":e<=900?"gsclineupscontaineraway900":"gsclineupscontaineraway"},sizeBrowser(){return this.gamesContainerWidth},numPlayer(){return Number(this.playersAway.length)+Number(this.playersHome.length)},benchFillHome(){return this.playersHome.length<this.playersAway.length?this.playersAway.length-this.playersHome.length:0},benchFillAway(){return this.playersAway.length<this.playersHome.length?this.playersHome.length-this.playersAway.length:0}},async mounted(){if(setTimeout(()=>{this.setUpResizeObserver()},100),this.game||this.$route.params.gameId)try{this.cleaneData()}catch(e){throw new Error(e)}},watch:{selectOptMenuheader:{immediate:!0,async handler(e,s){e!=s&&this.selectedOption!=="Postmatch"&&(e==="Probables"&&(this.lastSection=e),e==="Historicos"&&this.gamesHistoric[0]&&await this.getLineUp(this.gamesHistoric[0].game))}},"socket.connected":{immediate:!0,handler(e){e&&this.getDataSocket()}},game:{immediate:!0,handler:async function(e,s){if(e&&(!s||e.game_id!==s.game_id))try{if(e){const o={headers:{Authorization:this.token}};this.cleaneData(),await this.getHeaderInfo(e);const O=[Qh.get(this.urlGames+e.season_id+"/games/"+e.game_id,o)];let W=null;const b=this.selectedOption==="Postmatch"?e.game_id:this.selectOptMenuheader==="Historicos"?this.gamesHistoric[0].game:0;b&&b!==this.lastGetLineUpGameId&&(W=Qh.get(this.url+b,o),O.push(W));const[g,a]=await Promise.all(O);await this.gameDataInfo(e,g),await this.getLineUp(b,a)}}catch(o){throw new Error(o)}}}},sockets:{new_bench([e,s]){if(s[this.home_team_id]){this.playersHome=this.playersHome.filter(function(i){return!i.isbench});for(let i=0;i<s[this.home_team_id].length;i++)if(!s[this.home_team_id][i].isTitular){this.subsTitle=!0;var o=s[this.home_team_id][i].playerName.split(","),O=o[0].split(" "),W=o[1].trim().split(" "),b="";O.length==2||O.length==1?O[0].length<4&&O.length>1?b=O[0]+" "+O[1]:b=O[0]:O.length==3?b=O[0]+" "+O[1]:O.length==4&&(b=O[1]+" "+O[2]+" "+O[3]);var g=W[W.length-1]!=""?W[W.length-1].charAt(0):W[W.length-2]?W[W.length-2].charAt(0):"";b=b.replace(",","");var a=g+". "+b,_=this.dataPlayersHome.findIndex(d=>d.player_id==s[this.home_team_id][i].playerID);this.playersHome.push({played:!1,name:s[this.home_team_id][i].playerName,position:_!=-1?this.isFemale?this.positions[this.dataPlayersHome[_].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersHome[_].position_id-1].name:"",position_id:this.dataPlayersHome[_].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s[this.home_team_id][i].playerID+".png",nationality:_!=-1&&this.dataPlayersHome[_].nationality?this.dataPlayersHome[_].nationality.substring(0,3):"",imgNationality:_!=-1?this.dataPlayersHome[_].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:a,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+this.home_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s[this.home_team_id][i].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:s[this.home_team_id][i].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersHome.sort((i,d)=>i.position_id>d.position_id?1:d.position_id>i.position_id?-1:0)}if(s[this.away_team_id]){this.playersAway=this.playersAway.filter(function(i){return!i.isbench});for(let i=0;i<s[this.away_team_id].length;i++)if(!s[this.away_team_id][i].isTitular){this.subsTitle=!0;var h=s[this.away_team_id][i].playerName.split(","),n=h[0].split(" "),x=o[1].trim().split(" "),y="";n.length==2||n.length==1?n[0].length<4&&n.length>1?y=n[0]+" "+n[1]:y=n[0]:n.length==3?y=n[0]+" "+n[1]:n.length==4&&(y=n[1]+" "+n[2]+" "+n[3]);var v=x[x.length-1]!=""?x[x.length-1].charAt(0):x[x.length-2]?x[x.length-2].charAt(0):"";y=y.replace(",","");var u=v+". "+y,r=this.dataPlayersAway.findIndex(d=>d.player_id==s[this.away_team_id][i].playerID);this.playersAway.push({played:!1,name:s[this.away_team_id][i].playerName,position:r!=-1?this.isFemale?this.positions[this.dataPlayersAway[r].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersAway[r].position_id-1].name:"",position_id:this.dataPlayersAway[r].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s[this.away_team_id][i].playerID+".png",nationality:r!=-1&&this.dataPlayersAway[r].nationality?this.dataPlayersAway[r].nationality.substring(0,3):"",imgNationality:r!=-1?this.dataPlayersAway[r].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+this.away_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s[this.away_team_id][i].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:s[this.away_team_id][i].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersAway.sort((i,d)=>i.position_id>d.position_id?1:d.position_id>i.position_id?-1:0)}},new_lineup([e,s]){if(s.team_id==s.home_team.team_id){if(this.playersHome.length==0){this.dataPlayersHome=s.home_team.players;for(let m=0;m<s.data.length;m++){this.home_team_id=s.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.team_id+"_g.svg","home",0);var o=s.data[m].player_name.split(","),O=o[0].split(" "),W=o[1].trim().split(" "),b="";O.length==2||O.length==1?O[0].length<4&&O.length>1?b=O[0]+" "+O[1]:b=O[0]:O.length==3?b=O[0]+" "+O[1]:O.length==4&&(b=O[1]+" "+O[2]+" "+O[3]);var g=W[W.length-1]!=""?W[W.length-1].charAt(0):W[W.length-2]?W[W.length-2].charAt(0):"";b=b.replace(",","");var a=g+". "+b,_=s.data[m].x,h=_*50/100,n=s.home_team.players.findIndex(w=>w.player_id==s.data[m].player_id);this.playersHome.push({played:!0,name:s.data[m].player_name,position:n!=-1?this.isFemale?this.positions[s.home_team.players[n].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[s.home_team.players[n].position_id-1].name:"",position_id:s.home_team.players[n].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s.data[m].player_id+".png",nationality:n!=-1&&s.home_team.players[n].nationality?s.home_team.players[n].nationality.substring(0,3):"",imgNationality:n!=-1?s.home_team.players[n].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:a,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s.data[m].jersey_number,positionX:s.data[m].y-13,positionY:h*.9,positionXOrigin:s.data[m].y-17,positionYOrigin:s.data[m].x-2,playerId:s.data[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:s.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+s.team_id+".png"}this.playersHome.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0)}}else if(this.playersAway.length==0){this.dataPlayersAway=s.away_team.players;for(let m=0;m<s.data.length;m++){this.away_team_id=s.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.team_id+"_g.svg","away",0);var x=s.data[m].player_name.split(","),y=x[0].split(" "),v=x[1].trim().split(" "),u="";y.length==2||y.length==1?y[0].length<4&&y.length>1?u=y[0]+" "+y[1]:u=y[0]:y.length==3?u=y[0]+" "+y[1]:y.length==4&&(u=y[1]+" "+y[2]+" "+y[3]);var r=v[v.length-1]!=""?v[v.length-1].charAt(0):v[v.length-2]?v[v.length-2].charAt(0):"";u=u.replace(",","");var i=r+". "+u,d=s.data[m].x,l=100-(100-d)*50/100;l=l*.9;var p=s.away_team.players.findIndex(w=>w.player_id==s.data[m].player_id);this.playersAway.push({played:!0,name:s.data[m].player_name,position:p!=-1?this.isFemale?this.positions[s.away_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[s.away_team.players[p].position_id-1].name:"",position_id:s.away_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s.data[m].player_id+".png",nationality:p!=-1&&s.away_team.players[p].nationality?s.away_team.players[p].nationality.substring(0,3):"",imgNationality:p!=-1?s.away_team.players[p].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:i,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s.data[m].jersey_number,positionX:s.data[m].y-13,positionY:l+2,positionXOrigin:s.data[m].y-17,positionYOrigin:s.data[m].x-7,playerId:s.data[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:s.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+s.team_id+".png"}this.playersAway.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0)}},update_mxm([e,s]){var o=-1,O=-1;if(this.playersHome.length>0){var W=this.playersHome.findIndex(C=>C.idredcards==s.play_id),b=this.playersHome.findIndex(C=>C.idyellowcards==s.play_id),g=this.playersHome.findIndex(C=>C.idSubstitution==s.play_id);for(let C=0;C<this.playersHome.length;C++){var a=this.playersHome[C].idsGoals.findIndex(P=>P==s.play_id);a!=-1&&(o=a,O=C)}W!=-1&&this.resetPlayUpdate("RedCard","Home",W,O),b!=-1&&this.resetPlayUpdate("YellowCard","Home",b,O),g!=-1&&this.resetPlayUpdate("Substitution","Home",g,O),o!=-1&&this.resetPlayUpdate("Goals","Home",o,O)}if(this.playersAway.length>0){var _=this.playersAway.findIndex(C=>C.idredcards==s.play_id),h=this.playersAway.findIndex(C=>C.idyellowcards==s.play_id),n=this.playersAway.findIndex(C=>C.idSubstitution==s.play_id);for(let C=0;C<this.playersAway.length;C++){var x=this.playersAway[C].idsGoals.findIndex(P=>P==s.play_id);x!=-1&&(o=x,O=C)}_!=-1&&this.resetPlayUpdate("RedCard","Away",_,O),h!=-1&&this.resetPlayUpdate("YellowCard","Away",h,O),n!=-1&&this.resetPlayUpdate("Substitution","Away",n,O),o!=-1&&this.resetPlayUpdate("Goals","Away",o,O)}if(s.event_type_id==3){if(s.team_id==this.home_team_id){if(this.playersHome.length>0){var y=s.player_id.split("@"),v=this.playersHome.findIndex(C=>C.playerId==y[0]),u=this.playersHome.findIndex(C=>C.playerId==y[1]);v!=-1&&(this.playersHome[v].idSubstitution=s.play_id,this.playersHome[v].substitutionOut=!0,this.playersHome[v].substitutionMin=s.minute,this.playersHome[v].substitutionDataID=s.team_id+"@"+s.player_id),u!=-1&&(this.playersHome[u].idSubstitution=s.play_id,this.playersHome[u].substitutionIn=!0,this.playersHome[u].substitutionMin=s.minute,this.playersHome[u].substitutionDataID=s.team_id+"@"+s.player_id)}}else if(this.playersAway.length>0){var r=s.player_id.split("@"),i=this.playersAway.findIndex(C=>C.playerId==r[0]),d=this.playersAway.findIndex(C=>C.playerId==r[1]);v!=-1&&(this.playersAway[i].idSubstitution=s.play_id,this.playersAway[i].substitutionOut=!0,this.playersAway[i].substitutionMin=s.minute,this.playersAway[i].substitutionDataID=s.team_id+"@"+s.player_id),d!=-1&&(this.playersAway[d].idSubstitution=s.play_id,this.playersAway[d].substitutionIn=!0,this.playersAway[d].substitutionMin=s.minute,this.playersAway[d].substitutionDataID=s.team_id+"@"+s.player_id)}}if(s.event_type_id==1){if(s.team_id==this.home_team_id){if(this.playersHome.length>0){var l=this.playersHome.findIndex(C=>C.playerId==s.player_id);l!=-1&&(this.playersHome[l].goals+=1,this.playersHome[l].goalsMin.push(s.minute),this.playersHome[l].idsGoals.push(s.play_id))}}else if(this.playersAway.length>0){var p=this.playersAway.findIndex(C=>C.playerId==s.player_id);p!=-1&&(this.playersAway[p].goals+=1,this.playersAway[p].goalsMin.push(s.minute),this.playersAway[p].idsGoals.push(s.play_id))}}if(s.event_type_id==2){if(s.category_id==8){if(s.team_id==this.home_team_id){if(this.playersHome.length>0){var m=this.playersHome.findIndex(C=>C.playerId==s.player_id);m!=-1&&(this.playersHome[m].yellowcards+=1,this.playersHome[m].yellowcardsMin=s.minute,this.playersHome[m].idyellowcards=s.play_id)}}else if(this.playersAway.length>0){var w=this.playersAway.findIndex(C=>C.playerId==s.player_id);w!=-1&&(this.playersAway[w].yellowcards+=1,this.playersAway[w].yellowcardsMin=s.minute,this.playersAway[w].idyellowcards=s.play_id)}}if(s.category_id==9){if(s.team_id==this.home_team_id){if(this.playersHome.length>0){var T=this.playersHome.findIndex(C=>C.playerId==s.player_id);T!=-1&&(this.playersHome[T].redcards+=1,this.playersHome[T].redcardsMin=s.minute,this.playersHome[T].idredcards=s.play_id)}}else if(this.playersAway.length>0){var A=this.playersAway.findIndex(C=>C.playerId==s.player_id);A!=-1&&(this.playersAway[A].redcards+=1,this.playersAway[A].redcardsMin=s.minute,this.playersAway[A].idredcards=s.play_id)}}}},delete_mxm([e,s]){if(this.playersHome.length>0)for(let o=0;o<this.playersHome.length;o++)this.playersHome[o].idSubstitution==s.play_id&&(this.playersHome[o].substitutionOut=!1,this.playersHome[o].substitutionIn=!1,this.playersHome[o].substitutionMin="",this.playersHome[o].substitutionDataID="",this.playersHome[o].idSubstitution=0);if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersAway[o].idSubstitution==s.play_id&&(this.playersAway[o].substitutionOut=!1,this.playersAway[o].substitutionIn=!1,this.playersAway[o].substitutionMin="",this.playersAway[o].substitutionDataID="",this.playersAway[o].idSubstitution=0);if(this.playersHome.length>0)for(let o=0;o<this.playersHome.length;o++){const O=this.playersHome[o].idsGoals.findIndex(W=>W==s.play_id);O!=-1&&(this.playersHome[o].goals=this.playersHome[o].goals-1,this.playersHome[o].goalsMin.splice(O,1),this.playersHome[o].idsGoals.splice(O,1))}if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++){const O=this.playersAway[o].idsGoals.findIndex(W=>W==s.play_id);O!=-1&&(this.playersAway[o].goals=this.playersAway[o].goals-1,this.playersAway[o].goalsMin.splice(O,1),this.playersAway[o].idsGoals.splice(O,1))}if(this.playersHome.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersHome[o].idyellowcards==s.play_id&&(this.playersHome[o].yellowcards=0,this.playersHome[o].yellowcardsMin=0,this.playersHome[o].idyellowcards=0);if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersAway[o].idyellowcards==s.play_id&&(this.playersAway[o].yellowcards=0,this.playersAway[o].yellowcardsMin=0,this.playersAway[o].idyellowcards=0);if(this.playersHome.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersHome[o].idredcards==s.play_id&&(this.playersHome[o].redcards=0,this.playersHome[o].redcardsMin=0,this.playersHome[o].idredcards=0);if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersAway[o].idredcards==s.play_id&&(this.playersAway[o].redcards=0,this.playersAway[o].redcardsMin=0,this.playersAway[o].idredcards=0)},new_mxm([e,s]){if(s.event_type_id==3){if(s.team_id==this.home_team_id){if(this.playersHome.length>0){var o=s.player_id.split("@"),O=this.playersHome.findIndex(u=>u.playerId==o[0]),W=this.playersHome.findIndex(u=>u.playerId==o[1]);O!=-1&&(this.playersHome[O].idSubstitution=s.play_id,this.playersHome[O].substitutionOut=!0,this.playersHome[O].substitutionMin=s.minute,this.playersHome[O].substitutionDataID=s.team_id+"@"+s.player_id),W!=-1&&(this.playersHome[W].idSubstitution=s.play_id,this.playersHome[W].substitutionIn=!0,this.playersHome[W].substitutionMin=s.minute,this.playersHome[W].substitutionDataID=s.team_id+"@"+s.player_id)}}else if(this.playersAway.length>0){var b=s.player_id.split("@"),g=this.playersAway.findIndex(u=>u.playerId==b[0]),a=this.playersAway.findIndex(u=>u.playerId==b[1]);O!=-1&&(this.playersAway[g].idSubstitution=s.play_id,this.playersAway[g].substitutionOut=!0,this.playersAway[g].substitutionMin=s.minute,this.playersAway[g].substitutionDataID=s.team_id+"@"+s.player_id),a!=-1&&(this.playersAway[a].idSubstitution=s.play_id,this.playersAway[a].substitutionIn=!0,this.playersAway[a].substitutionMin=s.minute,this.playersAway[a].substitutionDataID=s.team_id+"@"+s.player_id)}}if(s.event_type_id==1){if(s.team_id==this.home_team_id){if(this.playersHome.length>0){var _=this.playersHome.findIndex(u=>u.playerId==s.player_id);_!=-1&&(this.playersHome[_].goals+=1,this.playersHome[_].goalsMin.push(s.minute),this.playersHome[_].idsGoals.push(s.play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(u=>u.playerId==s.player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(s.minute),this.playersAway[h].idsGoals.push(s.play_id))}}if(s.event_type_id==2){if(s.category_id==8){if(s.team_id==this.home_team_id){if(this.playersHome.length>0){var n=this.playersHome.findIndex(u=>u.playerId==s.player_id);n!=-1&&(this.playersHome[n].yellowcards+=1,this.playersHome[n].yellowcardsMin=s.minute,this.playersHome[n].idyellowcards=s.play_id)}}else if(this.playersAway.length>0){var x=this.playersAway.findIndex(u=>u.playerId==s.player_id);x!=-1&&(this.playersAway[x].yellowcards+=1,this.playersAway[x].yellowcardsMin=s.minute,this.playersAway[x].idyellowcards=s.play_id)}}if(s.category_id==9){if(s.team_id==this.home_team_id){if(this.playersHome.length>0){var y=this.playersHome.findIndex(u=>u.playerId==s.player_id);y!=-1&&(this.playersHome[y].redcards+=1,this.playersHome[y].redcardsMin=s.minute,this.playersHome[y].idredcards=s.play_id)}}else if(this.playersAway.length>0){var v=this.playersAway.findIndex(u=>u.playerId==s.player_id);v!=-1&&(this.playersAway[v].redcards+=1,this.playersAway[v].redcardsMin=s.minute,this.playersAway[v].idredcards=s.play_id)}}}}},methods:{calculatePerspectiveAdjustment(e){const s=Math.max(0,Math.min(100,e)),o=12*(1-Math.pow(s/100,2));return Math.round(o)},calculatePerspectiveAdjustmentAway(e){const s=Math.max(0,Math.min(100,e)),o=12*Math.pow(s/100,2);return Math.round(o)},onOpenProfile(e){this.$emit("onOpenProfile",e)},async getLineUpProbablesHome3D(e){try{const p=await Qh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!p||!p.data)throw new Error("There is not lineups for this game.");if(this.homeTeamAbrev=this.gameInfoheader.home_team_abbreviation,p.data.home_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=p.data.home_team.players,p.data.home_team.starting_lineup[0].lineup.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0);for(let m=0;m<p.data.home_team.starting_lineup[0].lineup.length;m++){this.home_team_id=p.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.data.home_team.team_id+"_g.svg","home",0);var s=p.data.home_team.starting_lineup[0].lineup[m].player_name.split(","),o=s[0].split(" "),O=s[1].trim().split(" "),W="";o.length==2||o.length==1?o[0].length<4&&o.length>1?W=o[0]+" "+o[1]:W=o[0]:o.length==3?W=o[0]+" "+o[1]:o.length==4&&(W=o[1]+" "+o[2]+" "+o[3]);var b=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";W=W.replace(",","");var g=b+". "+W,a=p.data.home_team.starting_lineup[0].lineup[m].x,_=a*50/100,h=p.data.home_team.players.findIndex(w=>w.player_id==p.data.home_team.starting_lineup[0].lineup[m].player_id);this.playersHome.push({played:!0,name:p.data.home_team.starting_lineup[0].lineup[m].player_name,position:this.isFemale?this.positions[p.data.home_team.players[h].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[p.data.home_team.players[h].position_id-1].name,position_id:p.data.home_team.players[h].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p.data.home_team.starting_lineup[0].lineup[m].player_id+".png",nationality:p.data.home_team.players[h].nationality?p.data.home_team.players[h].nationality.substring(0,3):"",imgNationality:p.data.home_team.players[h].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:g,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+p.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p.data.home_team.starting_lineup[0].lineup[m].jersey_number,positionX:p.data.home_team.starting_lineup[0].lineup[m].y-13,positionY:_*.9,positionXOrigin:p.data.home_team.starting_lineup[0].lineup[m].y-17,positionYOrigin:p.data.home_team.starting_lineup[0].lineup[m].x-2,playerId:p.data.home_team.starting_lineup[0].lineup[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:p.data.home_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+p.data.home_team.team_id+".png"}if(this.playersHome.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0),p.data.home_team.bench){for(let m=0;m<p.data.home_team.bench.length;m++){this.subsTitle=!0;var n=p.data.home_team.bench[m].playerName.split(","),x=n[0].split(" "),y=n[1].trim().split(" "),v="";x.length==2||x.length==1?x[0].length<4&&x.length>1?v=x[0]+" "+x[1]:v=x[0]:x.length==3?v=x[0]+" "+x[1]:x.length==4&&(v=x[1]+" "+x[2]+" "+x[3]);var u=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";v=v.replace(",","");var r=u+". "+v,i=p.data.home_team.players.findIndex(w=>w.player_id==p.data.home_team.bench[m].playerID);this.playersHome.push({played:!1,name:p.data.home_team.bench[m].playerName,position:i!=-1?this.isFemale?this.positions[p.data.home_team.players[i].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[p.data.home_team.players[i].position_id-1].name:"",position_id:p.data.home_team.players[i].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p.data.home_team.bench[m].playerID+".png",nationality:i!=-1&&p.data.home_team.players[i].nationality?p.data.home_team.players[i].nationality.substring(0,3):"",imgNationality:i!=-1?p.data.home_team.players[i].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+p.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p.data.home_team.bench[m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:p.data.home_team.bench[m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:p.data.home_team.team_id})}this.playersHome.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0)}}if(p.data.away_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=p.data.away_team.players,p.data.away_team.starting_lineup[0].lineup.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0);for(let m=0;m<p.data.away_team.starting_lineup[0].lineup.length;m++){this.home_team_id=p.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.data.away_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.data.away_team.team_id+"_g.svg","home",0);var s=p.data.away_team.starting_lineup[0].lineup[m].player_name.split(","),o=s[0].split(" "),O=s[1].trim().split(" "),W="";o.length==2||o.length==1?o[0].length<4&&o.length>1?W=o[0]+" "+o[1]:W=o[0]:o.length==3?W=o[0]+" "+o[1]:o.length==4&&(W=o[1]+" "+o[2]+" "+o[3]);var b=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";W=W.replace(",","");var g=b+". "+W,d=p.data.away_team.starting_lineup[0].lineup[m].x;d=Math.abs(d-100);var _=d*50/100,l=p.data.away_team.starting_lineup[0].lineup[m].y;l=Math.abs(l-100);var h=p.data.away_team.players.findIndex(M=>M.player_id==p.data.away_team.starting_lineup[0].lineup[m].player_id);this.playersHome.push({played:!0,name:p.data.away_team.starting_lineup[0].lineup[m].player_name,position:this.isFemale?this.positions[p.data.away_team.players[h].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[p.data.away_team.players[h].position_id-1].name,position_id:p.data.away_team.players[h].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p.data.away_team.starting_lineup[0].lineup[m].player_id+".png",nationality:p.data.away_team.players[h].nationality?p.data.away_team.players[h].nationality.substring(0,3):"",imgNationality:p.data.away_team.players[h].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:g,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+p.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p.data.away_team.starting_lineup[0].lineup[m].jersey_number,positionX:l-20,positionY:_*.9,positionXOrigin:p.data.away_team.starting_lineup[0].lineup[m].y-17,positionYOrigin:p.data.away_team.starting_lineup[0].lineup[m].x-2,playerId:p.data.away_team.starting_lineup[0].lineup[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:p.data.away_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+p.data.away_team.team_id+".png"}if(this.playersHome.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0),p.data.away_team.bench){for(let m=0;m<p.data.away_team.bench.length;m++){this.subsTitle=!0;var n=p.data.away_team.bench[m].playerName.split(","),x=n[0].split(" "),y=n[1].trim().split(" "),v="";x.length==2||x.length==1?x[0].length<4&&x.length>1?v=x[0]+" "+x[1]:v=x[0]:x.length==3?v=x[0]+" "+x[1]:x.length==4&&(v=x[1]+" "+x[2]+" "+x[3]);var u=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";v=v.replace(",","");var r=u+". "+v,i=p.data.away_team.players.findIndex(I=>I.player_id==p.data.away_team.bench[m].playerID);this.playersHome.push({played:!1,name:p.data.away_team.bench[m].playerName,position:i!=-1?this.isFemale?this.positions[p.data.away_team.players[i].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[p.data.away_team.players[i].position_id-1].name:"",position_id:p.data.away_team.players[i].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p.data.away_team.bench[m].playerID+".png",nationality:i!=-1&&p.data.away_team.players[i].nationality?p.data.away_team.players[i].nationality.substring(0,3):"",imgNationality:i!=-1?p.data.away_team.players[i].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+p.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p.data.away_team.bench[m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:p.data.away_team.bench[m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:p.data.away_team.team_id})}this.playersHome.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0)}}await this.getMXM(e)}catch(p){return Promise.reject(p)}},cleaneDataHome(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.dataPlayersHome=[],this.homeTeamLogo="",this.homeTeamName="",this.home_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneDataAway(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersAway=[],this.subsTitle=!1,this.uniformAway="",this.uniformAwayG="",this.dataPlayersAway=[],this.awayTeamLogo="",this.awayTeamName="",this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},async getLineUpProbablesAway3D(e){try{const l=await Qh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!l||!l.data)throw new Error("There is not lineups for this game.");if(this.awayTeamAbrev=this.gameInfoheader.away_team_abbreviation,l.data.home_team.team_id==this.gameInfoheader.away_team){this.dataPlayersAway=l.data.home_team.players,this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym);for(let p=0;p<l.data.home_team.starting_lineup[0].lineup.length;p++){this.away_team_id=l.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+l.data.home_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+l.data.home_team.team_id+"_g.svg","away",0);var s=l.data.home_team.starting_lineup[0].lineup[p].player_name.split(","),o=s[0].split(" "),O=s[1].trim().split(" "),W="";o.length==2||o.length==1?o[0].length<4&&o.length>1?W=o[0]+" "+o[1]:W=o[0]:o.length==3?W=o[0]+" "+o[1]:o.length==4&&(W=o[1]+" "+o[2]+" "+o[3]);var b=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";W=W.replace(",","");var g=b+". "+W,a=l.data.home_team.starting_lineup[0].lineup[p].x;a=Math.abs(a-100);var _=l.data.home_team.starting_lineup[0].lineup[p].y;_=Math.abs(_-100);var h=100-(100-a)*50/100;h=h*.9;var n=l.data.home_team.players.findIndex(m=>m.player_id==l.data.home_team.starting_lineup[0].lineup[p].player_id);this.playersAway.push({played:!0,name:l.data.home_team.starting_lineup[0].lineup[p].player_name,position:this.isFemale?this.positions[l.data.home_team.players[n].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[l.data.home_team.players[n].position_id-1].name,position_id:l.data.home_team.players[n].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+l.data.home_team.starting_lineup[0].lineup[p].player_id+".png",nationality:l.data.home_team.players[n].nationality?l.data.home_team.players[n].nationality.substring(0,3):"",imgNationality:l.data.home_team.players[n].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:g,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:l.data.home_team.starting_lineup[0].lineup[p].jersey_number,positionX:_-23,positionY:h,positionXOrigin:l.data.home_team.starting_lineup[0].lineup[p].y-17,positionYOrigin:l.data.home_team.starting_lineup[0].lineup[p].x-7,playerId:l.data.home_team.starting_lineup[0].lineup[p].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:l.data.home_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+l.data.home_team.team_id+".png"}if(this.playersAway.sort((p,m)=>p.position_id>m.position_id?1:m.position_id>p.position_id?-1:0),l.data.home_team.bench){for(let p=0;p<l.data.home_team.bench.length;p++){this.subsTitle=!0;var x=l.data.home_team.bench[p].playerName.split(","),y=x[0].split(" "),v=x[1].trim().split(" "),u="";y.length==2||y.length==1?y[0].length<4&&y.length>1?u=y[0]+" "+y[1]:u=y[0]:y.length==3?u=y[0]+" "+y[1]:y.length==4&&(u=y[1]+" "+y[2]+" "+y[3]);var r=v[v.length-1]!=""?v[v.length-1].charAt(0):v[v.length-2]?v[v.length-2].charAt(0):"";u=u.replace(",","");var i=r+". "+u,d=l.data.home_team.players.findIndex(m=>m.player_id==l.data.home_team.bench[p].playerID);this.playersAway.push({played:!1,name:l.data.home_team.bench[p].playerName,position:d!=-1?this.isFemale?this.positions[l.data.home_team.players[d].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[l.data.home_team.players[d].position_id-1].name:"",position_id:l.data.home_team.players[d].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+l.data.home_team.bench[p].playerID+".png",nationality:d!=-1&&l.data.home_team.players[d].nationality?l.data.home_team.players[d].nationality.substring(0,3):"",imgNationality:d!=-1?l.data.home_team.players[d].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:i,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:l.data.home_team.bench[p].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:l.data.home_team.bench[p].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:l.data.home_team.team_id})}this.playersAway.sort((p,m)=>p.position_id>m.position_id?1:m.position_id>p.position_id?-1:0)}}if(l.data.away_team.team_id==this.gameInfoheader.away_team){this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),this.dataPlayersAway=l.data.away_team.players;for(let p=0;p<l.data.away_team.starting_lineup[0].lineup.length;p++){this.away_team_id=l.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+l.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+l.data.away_team.team_id+"_g.svg","away",0);var s=l.data.away_team.starting_lineup[0].lineup[p].player_name.split(","),o=s[0].split(" "),O=s[1].trim().split(" "),W="";o.length==2||o.length==1?o[0].length<4&&o.length>1?W=o[0]+" "+o[1]:W=o[0]:o.length==3?W=o[0]+" "+o[1]:o.length==4&&(W=o[1]+" "+o[2]+" "+o[3]);var b=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";W=W.replace(",","");var g=b+". "+W,a=l.data.away_team.starting_lineup[0].lineup[p].x,h=100-(100-a)*50/100;h=h*.9;var n=l.data.away_team.players.findIndex(M=>M.player_id==l.data.away_team.starting_lineup[0].lineup[p].player_id);this.playersAway.push({played:!0,name:l.data.away_team.starting_lineup[0].lineup[p].player_name,position:this.isFemale?this.positions[l.data.away_team.players[n].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[l.data.away_team.players[n].position_id-1].name,position_id:l.data.away_team.players[n].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+l.data.away_team.starting_lineup[0].lineup[p].player_id+".png",nationality:l.data.away_team.players[n].nationality?l.data.away_team.players[n].nationality.substring(0,3):"",imgNationality:l.data.away_team.players[n].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:g,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:l.data.away_team.starting_lineup[0].lineup[p].jersey_number,positionX:l.data.away_team.starting_lineup[0].lineup[p].y-13,positionY:h,positionXOrigin:l.data.away_team.starting_lineup[0].lineup[p].y-17,positionYOrigin:l.data.away_team.starting_lineup[0].lineup[p].x-7,playerId:l.data.away_team.starting_lineup[0].lineup[p].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:l.data.away_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+l.data.away_team.team_id+".png"}if(this.playersAway.sort((p,m)=>p.position_id>m.position_id?1:m.position_id>p.position_id?-1:0),l.data.away_team.bench){for(let p=0;p<l.data.away_team.bench.length;p++){this.subsTitle=!0;var x=l.data.away_team.bench[p].playerName.split(","),y=x[0].split(" "),v=x[1].trim().split(" "),u="";y.length==2||y.length==1?y[0].length<4&&y.length>1?u=y[0]+" "+y[1]:u=y[0]:y.length==3?u=y[0]+" "+y[1]:y.length==4&&(u=y[1]+" "+y[2]+" "+y[3]);var r=v[v.length-1]!=""?v[v.length-1].charAt(0):v[v.length-2]?v[v.length-2].charAt(0):"";u=u.replace(",","");var i=r+". "+u,d=l.data.away_team.players.findIndex(E=>E.player_id==l.data.away_team.bench[p].playerID);this.playersAway.push({played:!1,name:l.data.away_team.bench[p].playerName,position:d!=-1?this.isFemale?this.positions[l.data.away_team.players[d].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[l.data.away_team.players[d].position_id-1].name:"",position_id:l.data.away_team.players[d].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+l.data.away_team.bench[p].playerID+".png",nationality:d!=-1&&l.data.away_team.players[d].nationality?l.data.away_team.players[d].nationality.substring(0,3):"",imgNationality:d!=-1?l.data.away_team.players[d].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:i,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:l.data.away_team.bench[p].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:l.data.away_team.bench[p].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:l.data.away_team.team_id})}this.playersAway.sort((p,m)=>p.position_id>m.position_id?1:m.position_id>p.position_id?-1:0)}}await this.getMXM(e)}catch(l){return Promise.reject(l)}},async getLineupProbablesHome(e){this.auxProbablesIDGameHome!=e.id&&(this.auxProbablesIDGameHome=e.id,this.cleaneDataHome(),this.getLineUpProbablesHome3D(e.id))},async getLineupProbablesAway(e){this.auxProbablesIDGameAway!=e.id&&(this.auxProbablesIDGameAway=e.id,this.cleaneDataAway(),this.getLineUpProbablesAway3D(e.id))},async getLineupProbables(e){var s={season_id:e.season_id,game_id:e.id};this.lastGetGame!=s.game_id&&(this.cleaneData(),await this.getLineUp(s.game_id)),this.lastGetGame=s.game_id},async changeCarouselItem(e){typeof e.game_id<"u"&&e.game_id!=this.gameInfoheader.id&&this.auxHistoricGameID!=e.game_id&&(this.auxHistoricGameID=e.game_id,this.cleaneData(),await this.getLineUp(e.game_id))},async changeCarouselItemRecent(e){if(e.selectedItem){var s={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id};this.homeTeam.acronymrecientes=e.selectedItem.home_team_abbreviation,this.visitingTeam.acronymrecientes=e.selectedItem.away_team_abbreviation,this.cleaneData(),await this.getLineUp(s.game_id),this.lastGetGame=s.game_id}},async getHeaderInfo(e,s=null){const o=Qh.create({headers:{Authorization:`${this.tokenPremium}`}}),O=s||await o.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+e.season_id+"/games/"+e.game_id+"/lineups");if(this.gameInfoheader=O.data.game,this.selectedOption!="Postmatch"){for(let W=0;W<O.data.games_historic.length;W++)this.gamesHistoric.push({objgame:O.data.games_historic[W],game:O.data.games_historic[W].id,home_team_abbreviation:O.data.games_historic[W].home_team_abbreviation,away_team_abbreviation:O.data.games_historic[W].away_team_abbreviation,season:O.data.games_historic[W].season_id,description:O.data.games_historic[W].season_name+" | "+this.getRoundH(O.data.games_historic[W].matchday_abbreviation)+" | "+O.data.games_historic[W].home_team_abbreviation+" - "+O.data.games_historic[W].away_team_abbreviation});this.gamesRecientes[O.data.game.home_team_abbreviation]=[],this.gamesRecientes[O.data.game.away_team_abbreviation]=[],this.matchdaysPerTeam[O.data.game.home_team_abbreviation]=[],this.matchdaysPerTeam[O.data.game.away_team_abbreviation]=[];for(let W=0;W<O.data.home_team_games_recent.length;W++)this.gamesRecientes[O.data.game.home_team_abbreviation].push(O.data.home_team_games_recent[W]),this.matchdaysPerTeam[O.data.game.home_team_abbreviation].push({name:this.getRound(O.data.home_team_games_recent[W].matchday_abbreviation),id:O.data.home_team_games_recent[W].matchday_id});for(let W=0;W<O.data.away_team_games_recent.length;W++)this.gamesRecientes[O.data.game.away_team_abbreviation].push(O.data.away_team_games_recent[W]),this.matchdaysPerTeam[O.data.game.away_team_abbreviation].push({name:this.getRound(O.data.away_team_games_recent[W].matchday_abbreviation),id:O.data.away_team_games_recent[W].matchday_id})}},getRound(e){let s=e.replace("M","Jornada ");return s=s.replace("PO1","CFI"),s=s.replace("PO2","CFV"),s=s.replace("PO3","SFI"),s=s.replace("PO4","SFV"),s=s.replace("PO5","FI"),s=s.replace("PO6","FV"),s},getRoundH(e){let s=e.replace("M","J");return s=s.replace("PO1","CFI"),s=s.replace("PO2","CFV"),s=s.replace("PO3","SFI"),s=s.replace("PO4","SFV"),s=s.replace("PO5","FI"),s=s.replace("PO6","FV"),s},clickOnSelectOption(e){this.selectOptMenuheader=e,this.cleaneData(),this.auxProbablesIDGameAway=0,this.auxProbablesIDGameHome=0},async gameDataInfo(e,s=null){const o=Qh.create({headers:{Authorization:`${this.tokenPremium}`}}),O=s||await o.get(this.urlGames+e.season_id+"/games/"+e.game_id);this.homeTeam=O.data.teams[0],this.visitingTeam=O.data.teams[1];const W=O.data.games.find(b=>b.game_id===Number(b.game_id));this.gameForAnalysis=W},cleaneData(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.playersAway=[],this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.uniformAway="",this.uniformAwayG="",this.dataPlayersHome=[],this.dataPlayersAway=[],this.homeTeamLogo="",this.awayTeamLogo="",this.homeTeamName="",this.awayTeamName="",this.home_team_id=0,this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},getDataSocket(){Iy("lineups.game."+this.game.game_id,this.socket),Iy("mxm.game."+this.game.game_id,this.socket),Iy("lineups.bench.game."+this.game.game_id,this.socket)},resetPlayUpdate(e,s,o,O){if(e=="Substitution")if(s=="Home"){var W=this.playersHome[o].substitutionDataID.split("@"),b=this.playersHome.findIndex(n=>n.playerId==W[1]),g=this.playersHome.findIndex(n=>n.playerId==W[2]);b!=-1&&(this.playersHome[b].substitutionOut=!1,this.playersHome[b].substitutionMin="",this.playersHome[b].substitutionDataID="",this.playersHome[b].idSubstitution=0),g!=-1&&(this.playersHome[g].substitutionIn=!1,this.playersHome[g].substitutionMin="",this.playersHome[g].substitutionDataID="",this.playersHome[g].idSubstitution=0)}else{var a=this.playersAway[o].substitutionDataID.split("@"),_=this.playersAway.findIndex(n=>n.playerId==a[1]),h=this.playersAway.findIndex(n=>n.playerId==a[2]);b!=-1&&(this.playersAway[_].substitutionOut=!1,this.playersAway[_].substitutionMin="",this.playersAway[_].substitutionDataID="",this.playersAway[_].idSubstitution=0),h!=-1&&(this.playersAway[h].substitutionIn=!1,this.playersAway[h].substitutionMin="",this.playersAway[h].substitutionDataID="",this.playersAway[h].idSubstitution=0)}e=="YellowCard"&&(s=="Home"?(this.playersHome[o].yellowcards=0,this.playersHome[o].yellowcardsMin=0,this.playersHome[o].idyellowcards=0):(this.playersAway[o].yellowcards=0,this.playersAway[o].yellowcardsMin=0,this.playersAway[o].idyellowcards=0)),e=="RedCard"&&(s=="Home"?(this.playersHome[o].redcards=0,this.playersHome[o].redcardsMin=0,this.playersHome[o].idredcards=0):(this.playersAway[o].redcards=0,this.playersAway[o].redcardsMin=0,this.playersAway[o].idredcards=0)),e=="Goals"&&(s=="Home"?(this.playersHome[O].goals=this.playersHome[O].goals-1,this.playersHome[O].goalsMin.splice(o,1),this.playersHome[O].idsGoals.splice(o,1)):(this.playersAway[O].goals=this.playersAway[O].goals-1,this.playersAway[O].goalsMin.splice(o,1),this.playersAway[O].idsGoals.splice(o,1)))},setUpResizeObserver(){if(window.ResizeObserver)eP=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),eP.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const v=this.urlMXM+e;if(v===this.lastMXMUrl)return;this.lastMXMUrl=v;const u=await Qh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(v);for(let r=0;r<this.playersHome.length;r++)this.playersHome[r].goalsMin=[],this.playersHome[r].idsGoals=[];for(let r=0;r<this.playersAway.length;r++)this.playersAway[r].goalsMin=[],this.playersAway[r].idsGoals=[];for(let r=0;r<u.data.plays.length;r++){if(u.data.plays[r].event_type_id==3){if(u.data.plays[r].team_id==this.home_team_id){if(this.playersHome.length>0){var s=u.data.plays[r].player_id.split("@"),o=this.playersHome.findIndex(i=>i.playerId==s[0]),O=this.playersHome.findIndex(i=>i.playerId==s[1]);o!=-1&&(this.playersHome[o].idSubstitution=u.data.plays[r].play_id,this.playersHome[o].substitutionOut=!0,this.playersHome[o].substitutionMin=u.data.plays[r].minute,this.playersHome[o].substitutionDataID=u.data.plays[r].team_id+"@"+u.data.plays[r].player_id),O!=-1&&(this.playersHome[O].idSubstitution=u.data.plays[r].play_id,this.playersHome[O].substitutionIn=!0,this.playersHome[O].substitutionMin=u.data.plays[r].minute,this.playersHome[O].substitutionDataID=u.data.plays[r].team_id+"@"+u.data.plays[r].player_id)}}else if(this.playersAway.length>0){var W=u.data.plays[r].player_id.split("@"),b=this.playersAway.findIndex(i=>i.playerId==W[0]),g=this.playersAway.findIndex(i=>i.playerId==W[1]);b!=-1&&(this.playersAway[b].idSubstitution=u.data.plays[r].play_id,this.playersAway[b].substitutionOut=!0,this.playersAway[b].substitutionMin=u.data.plays[r].minute,this.playersAway[b].substitutionDataID=u.data.plays[r].team_id+"@"+u.data.plays[r].player_id),g!=-1&&(this.playersAway[g].idSubstitution=u.data.plays[r].play_id,this.playersAway[g].substitutionIn=!0,this.playersAway[g].substitutionMin=u.data.plays[r].minute,this.playersAway[g].substitutionDataID=u.data.plays[r].team_id+"@"+u.data.plays[r].player_id)}}if(u.data.plays[r].event_type_id==1){if(u.data.plays[r].team_id==this.home_team_id){if(this.playersHome.length>0){var a=this.playersHome.findIndex(i=>i.playerId==u.data.plays[r].player_id);a!=-1&&(this.playersHome[a].goals+=1,this.playersHome[a].goalsMin.push(u.data.plays[r].minute),this.playersHome[a].idsGoals.push(u.data.plays[r].play_id))}}else if(this.playersAway.length>0){var _=this.playersAway.findIndex(i=>i.playerId==u.data.plays[r].player_id);_!=-1&&(this.playersAway[_].goals+=1,this.playersAway[_].goalsMin.push(u.data.plays[r].minute),this.playersAway[_].idsGoals.push(u.data.plays[r].play_id))}}if(u.data.plays[r].event_type_id==2){if(u.data.plays[r].category_id==8){if(u.data.plays[r].team_id==this.home_team_id){if(this.playersHome.length>0){var h=this.playersHome.findIndex(i=>i.playerId==u.data.plays[r].player_id);h!=-1&&(this.playersHome[h].yellowcards+=1,this.playersHome[h].yellowcardsMin=u.data.plays[r].minute,this.playersHome[h].idyellowcards=u.data.plays[r].play_id)}}else if(this.playersAway.length>0){var n=this.playersAway.findIndex(i=>i.playerId==u.data.plays[r].player_id);n!=-1&&(this.playersAway[n].yellowcards+=1,this.playersAway[n].yellowcardsMin=u.data.plays[r].minute,this.playersAway[n].idyellowcards=u.data.plays[r].play_id)}}if(u.data.plays[r].category_id==9){if(u.data.plays[r].team_id==this.home_team_id){if(this.playersHome.length>0){var x=this.playersHome.findIndex(i=>i.playerId==u.data.plays[r].player_id);x!=-1&&(this.playersHome[x].redcards+=1,this.playersHome[x].redcardsMin=u.data.plays[r].minute,this.playersHome[x].idredcards=u.data.plays[r].play_id)}}else if(this.playersAway.length>0){var y=this.playersAway.findIndex(i=>i.playerId==u.data.plays[r].player_id);y!=-1&&(this.playersAway[y].redcards+=1,this.playersAway[y].redcardsMin=u.data.plays[r].minute,this.playersAway[y].idredcards=u.data.plays[r].play_id)}}}}}catch(v){return Promise.reject(v)}},async getLineUp(e,s){if(e!=null)try{this.lastGetLineUpGameId=e,this.lastSection=this.selectOptMenuheader;const N=Qh.create({headers:{Authorization:`${this.tokenPremium}`}}),V=s||await N.get(this.url+e);if(!V||!V.data)throw new Error("There is not lineups for this game.");this.dataPlayersHome=V.data.home_team.players,this.dataPlayersAway=V.data.away_team.players,V.data.home_team.starting_lineup[0].lineup.sort(($,G)=>$.position_id>G.position_id?1:G.position_id>$.position_id?-1:0);for(let $=0;$<V.data.home_team.starting_lineup[0].lineup.length;$++){this.home_team_id=V.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+V.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+V.data.home_team.team_id+"_g.svg","home",0);var o=V.data.home_team.starting_lineup[0].lineup[$].player_name.split(","),O=o[0].split(" "),W=o[1].trim().split(" "),b="";O.length==2||O.length==1?O[0].length<4&&O.length>1?b=O[0]+" "+O[1]:b=O[0]:O.length==3?b=O[0]+" "+O[1]:O.length==4&&(b=O[1]+" "+O[2]+" "+O[3]);var g=W[W.length-1]!=""?W[W.length-1].charAt(0):W[W.length-2]?W[W.length-2].charAt(0):"";b=b.replace(",","");var a=g+". "+b,_=V.data.home_team.starting_lineup[0].lineup[$].x,h=_*50/100,n=V.data.home_team.players.findIndex(G=>G.player_id==V.data.home_team.starting_lineup[0].lineup[$].player_id);this.playersHome.push({played:!0,name:V.data.home_team.starting_lineup[0].lineup[$].player_name,position:this.isFemale?this.positions[V.data.home_team.players[n].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[V.data.home_team.players[n].position_id-1].name,position_id:V.data.home_team.players[n].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+V.data.home_team.starting_lineup[0].lineup[$].player_id+".png",nationality:V.data.home_team.players[n].nationality?V.data.home_team.players[n].nationality.substring(0,3):"",imgNationality:V.data.home_team.players[n].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:a,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+V.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:V.data.home_team.starting_lineup[0].lineup[$].jersey_number,positionX:V.data.home_team.starting_lineup[0].lineup[$].y-13,positionY:h*.9,positionXOrigin:V.data.home_team.starting_lineup[0].lineup[$].y-17,positionYOrigin:V.data.home_team.starting_lineup[0].lineup[$].x-2,playerId:V.data.home_team.starting_lineup[0].lineup[$].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:V.data.home_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+V.data.home_team.team_id+".png",this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+V.data.home_team.team_id+".png",this.selectOptMenuheader=="Historicos"?(V.data.home_team.team_id==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),V.data.home_team.team_id==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym)):this.homeTeamAbrev=this.homeTeam.acronymrecientes}if(this.playersHome.sort(($,G)=>$.position_id>G.position_id?1:G.position_id>$.position_id?-1:0),V.data.home_team.bench){for(let $=0;$<V.data.home_team.bench.length;$++){this.subsTitle=!0;var x=V.data.home_team.bench[$].playerName.split(","),y=x[0].split(" "),v=x[1].trim().split(" "),u="";y.length==2||y.length==1?y[0].length<4&&y.length>1?u=y[0]+" "+y[1]:u=y[0]:y.length==3?u=y[0]+" "+y[1]:y.length==4&&(u=y[1]+" "+y[2]+" "+y[3]);var r=v[v.length-1]!=""?v[v.length-1].charAt(0):v[v.length-2]?v[v.length-2].charAt(0):"";u=u.replace(",","");var i=r+". "+u,d=V.data.home_team.players.findIndex(G=>G.player_id==V.data.home_team.bench[$].playerID);this.playersHome.push({played:!1,name:V.data.home_team.bench[$].playerName,position:d!=-1?this.isFemale?this.positions[V.data.home_team.players[d].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[V.data.home_team.players[d].position_id-1].name:"",position_id:V.data.home_team.players[d].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+V.data.home_team.bench[$].playerID+".png",nationality:d!=-1&&V.data.home_team.players[d].nationality?V.data.home_team.players[d].nationality.substring(0,3):"",imgNationality:d!=-1?V.data.home_team.players[d].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:i,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+V.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:V.data.home_team.bench[$].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:V.data.home_team.bench[$].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:V.data.home_team.team_id})}this.playersHome.sort(($,G)=>$.position_id>G.position_id?1:G.position_id>$.position_id?-1:0)}for(let $=0;$<V.data.away_team.starting_lineup[0].lineup.length;$++){this.away_team_id=V.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+V.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+V.data.away_team.team_id+"_g.svg","away",0);var l=V.data.away_team.starting_lineup[0].lineup[$].player_name.split(","),p=l[0].split(" "),m=l[1].trim().split(" "),w="";p.length==2||p.length==1?p[0].length<4&&p.length>1?w=p[0]+" "+p[1]:w=p[0]:p.length==3?w=p[0]+" "+p[1]:p.length==4&&(w=p[1]+" "+p[2]+" "+p[3]);var T=m[W.length-1]!=""?m[m.length-1].charAt(0):m[m.length-2]?m[m.length-2].charAt(0):"";w=w.replace(",","");var A=T+". "+w,C=V.data.away_team.starting_lineup[0].lineup[$].x,P=100-(100-C)*50/100;P=P*.9;var B=V.data.away_team.players.findIndex(G=>G.player_id==V.data.away_team.starting_lineup[0].lineup[$].player_id);this.playersAway.push({played:!0,name:V.data.away_team.starting_lineup[0].lineup[$].player_name,position:this.isFemale?this.positions[V.data.away_team.players[B].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[V.data.away_team.players[B].position_id-1].name,position_id:V.data.away_team.players[B].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+V.data.away_team.starting_lineup[0].lineup[$].player_id+".png",nationality:V.data.away_team.players[B].nationality?V.data.away_team.players[B].nationality.substring(0,3):"",imgNationality:V.data.away_team.players[B].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:A,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+V.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:V.data.away_team.starting_lineup[0].lineup[$].jersey_number,positionX:V.data.away_team.starting_lineup[0].lineup[$].y-13,positionY:P,positionXOrigin:V.data.away_team.starting_lineup[0].lineup[$].y-17,positionYOrigin:V.data.away_team.starting_lineup[0].lineup[$].x-7,playerId:V.data.away_team.starting_lineup[0].lineup[$].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:V.data.away_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+V.data.away_team.team_id+".png",this.selectOptMenuheader=="Historicos"?(V.data.away_team.team_id==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),V.data.away_team.team_id==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym)):this.awayTeamAbrev=this.visitingTeam.acronymrecientes}if(this.playersAway.sort(($,G)=>$.position_id>G.position_id?1:G.position_id>$.position_id?-1:0),V.data.away_team.bench){for(let $=0;$<V.data.away_team.bench.length;$++){this.subsTitle=!0;var E=V.data.away_team.bench[$].playerName.split(","),I=E[0].split(" "),M=E[1].trim().split(" "),S="";I.length==2||I.length==1?I[0].length<4&&I.length>1?S=I[0]+" "+I[1]:S=I[0]:I.length==3?S=I[0]+" "+I[1]:I.length==4&&(S=I[1]+" "+I[2]+" "+I[3]);var L=M[M.length-1]!=""?M[M.length-1].charAt(0):M[M.length-2]?M[M.length-2].charAt(0):"";S=S.replace(",","");var k=L+". "+S,z=V.data.away_team.players.findIndex(G=>G.player_id==V.data.away_team.bench[$].playerID);this.playersAway.push({played:!1,name:V.data.away_team.bench[$].playerName,position:z!=-1?this.isFemale?this.positions[V.data.away_team.players[z].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[V.data.away_team.players[z].position_id-1].name:"",position_id:V.data.away_team.players[z].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+V.data.away_team.bench[$].playerID+".png",nationality:z!=-1&&V.data.away_team.players[z].nationality?V.data.away_team.players[z].nationality.substring(0,3):"",imgNationality:z!=-1?V.data.away_team.players[z].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:k,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+V.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:V.data.away_team.bench[$].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:V.data.away_team.bench[$].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:V.data.away_team.team_id})}this.playersAway.sort(($,G)=>$.position_id>G.position_id?1:G.position_id>$.position_id?-1:0)}setTimeout(async()=>{await this.getMXM(e)},500)}catch(N){return Promise.reject(N)}},closeChange(){this.subsActive=!1},imageExists(e,s,o){var O=new XMLHttpRequest,W=0;s=="away"?o==1?this.uniformAway==""&&(O.open("HEAD",e,!1),O.send(),W=1):this.uniformAwayG==""&&(O.open("HEAD",e,!1),O.send(),W=1):o==1?this.uniformHome==""&&(O.open("HEAD",e,!1),O.send(),W=1):this.uniformHomeG==""&&(O.open("HEAD",e,!1),O.send(),W=1),W==1&&(O.status==200?s=="away"?o==1?this.uniformAway="url("+e+")":this.uniformAwayG="url("+e+")":o==1?this.uniformHome="url("+e+")":this.uniformHomeG="url("+e+")":s=="away"?o==1?this.uniformAway="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita_g.svg)":o==1?this.uniformHome="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local_g.svg)")},viewChange(e){var s=e.split("@");if(s[0]==this.home_team_id){var o=this.playersHome.findIndex(g=>g.playerId==s[1]),O=this.playersHome.findIndex(g=>g.playerId==s[2]);o!=-1?(this.substitutionModal.min=this.playersHome[o].substitutionMin,this.substitutionModal.in.name=this.playersHome[o].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[o].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[o].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[o].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[o].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),O!=-1?(this.substitutionModal.out.name=this.playersHome[O].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[O].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[O].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[O].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[O].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}else{var W=this.playersAway.findIndex(g=>g.playerId==s[1]),b=this.playersAway.findIndex(g=>g.playerId==s[2]);W!=-1?(this.substitutionModal.min=this.playersAway[W].substitutionMin,this.substitutionModal.in.name=this.playersAway[W].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[W].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[W].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[W].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[W].shirt_number):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),b!=-1?(this.substitutionModal.out.name=this.playersAway[b].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[b].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[b].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[b].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[b].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}this.subsActive=!0},viewLineupTeam(e){this.teamActive=e}}},ixe={class:"size-browser-class"},oxe={class:"lineup-players is-centered"},sxe={style:{width:"92%",margin:"0 auto","margin-top":"10px"}},lxe={class:"modal-substitutions__substitution-container"},cxe={class:"modal-substitutions__substitution-container__header"},uxe={style:{"margin-left":"32px"}},dxe=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn-close.png"},null,-1),hxe=[dxe],pxe={class:"modal-substitutions__substitution-container__players-container"},fxe={class:"substitution-player-data-container"},mxe={class:"substitution-player-data-container__img-player"},gxe=["src"],yxe={class:"substitution-player-data-container__img-player__team"},vxe=["src"],_xe={class:"substitution-player-data-container__name-player"},bxe={class:"substitution-player-data-container__position-player"},xxe={class:"substitution-player-data-container__shirt-player",style:{"padding-left":"30px"}},wxe={key:0,class:"substitution-player-data-container__shirt-player__circle"},kxe={key:1},Sxe=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_salio.png"},null,-1),Txe=[Sxe],Cxe={class:"substitution-player-data-container__substitution-player"},Exe={class:"substitution-indicator nomargin"},Axe=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_salio.png"})],-1),Mxe={class:"substitution-player-data-container__center"},Ixe=t.createElementVNode("div",{class:"substitution-player-data-container__border"},null,-1),Pxe={class:"substitution-player-data-container__minute"},Bxe={class:"substitution-player-data-container"},Lxe={class:"substitution-player-data-container__img-player"},zxe=["src"],Oxe={class:"substitution-player-data-container__img-player__team"},Fxe=["src"],Nxe={class:"substitution-player-data-container__name-player"},Dxe={class:"substitution-player-data-container__position-player"},Rxe={class:"substitution-player-data-container__shirt-player",style:{"padding-right":"20px"}},Vxe={key:0},jxe=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_ingreso.png"},null,-1),$xe=[jxe],Uxe={key:1,class:"substitution-player-data-container__shirt-player__circle"},Gxe={class:"substitution-player-data-container__substitution-player"},Hxe={class:"substitution-indicator nomargin"},Wxe=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_ingreso.png"})],-1),qxe=["onClick"],Yxe=t.createElementVNode("img",{src:p8},null,-1),Zxe=[Yxe],Xxe=["onClick"],Jxe=t.createElementVNode("img",{src:p8},null,-1),Kxe=[Jxe],Qxe={key:0,class:"cont-lineup-gsc-componente"},e3e={class:"shield-team-cont homecolor"},t3e=["src"],n3e={class:"shield-team-cont awaycolor"},a3e=["src"],r3e={key:0,class:"header-lineup-shield-team home"},i3e={class:"shield-team-cont homecolor"},o3e=["src"],s3e={class:"header-lineup-shield-team-wrapper"},l3e={class:"header-lineup-shield-team-wrapper header-lineup-shield-team-wrapper-spacer"},c3e=t.createElementVNode("div",{class:"line-substitutions"},"SUPLENTES",-1),u3e={key:0,class:"header-lineup-shield-team away"},d3e={class:"shield-team-cont awaycolor"},h3e=["src"],p3e={class:"header-lineup-shield-team-wrapper"},f3e={class:"header-lineup-shield-team-wrapper header-lineup-shield-team-wrapper-spacer"},m3e=t.createElementVNode("div",{class:"line-substitutions"},"SUPLENTES",-1),g3e=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/graf-busqueda@3x.png",width:"74"},null,-1),y3e=[g3e],v3e=t.createElementVNode("br",null,null,-1);function _3e(e,s,o,O,W,b){const g=t.resolveComponent("HeaderPlayerPostmatch"),a=t.resolveComponent("HeaderPlayerHistorico"),_=t.resolveComponent("HeaderPlayerRecientes"),h=t.resolveComponent("HeaderPlayerProbables"),n=t.resolveComponent("CardPlayer");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",ixe,t.toDisplayString(b.sizeBrowser),1),t.createElementVNode("div",oxe,[t.createElementVNode("div",sxe,[o.selectedOption=="Postmatch"?(t.openBlock(),t.createBlock(g,{key:0,onClickOnSelectOption:b.clickOnSelectOption,"option-selected":W.selectOptMenuheader,"width-size":W.gamesContainerWidth,"game-info":W.gameInfoheader,"is-live":o.isLive,onInput:b.changeCarouselItem,"matchdays-default":W.matchdaysPerTeam,"game-historic":W.gamesHistoric},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","is-live","onInput","matchdays-default","game-historic"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[W.selectOptMenuheader=="Historicos"?(t.openBlock(),t.createBlock(a,{key:0,onClickOnSelectOption:b.clickOnSelectOption,"option-selected":W.selectOptMenuheader,"width-size":W.gamesContainerWidth,"game-info":W.gameInfoheader,onInput:b.changeCarouselItem,"matchdays-default":W.matchdaysPerTeam,"game-historic":W.gamesHistoric,"game-recientes":Object.keys(W.gameInfoheader).length>0?W.gamesRecientes[W.gameInfoheader.home_team_abbreviation].length+W.gamesRecientes[W.gameInfoheader.away_team_abbreviation].length:0},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","onInput","matchdays-default","game-historic","game-recientes"])):t.createCommentVNode("",!0),W.selectOptMenuheader=="Recientes"?(t.openBlock(),t.createBlock(_,{onClickOnSelectOption:b.clickOnSelectOption,style:{"margin-bottom":"100px"},key:W.keyUpdateRecientes,"option-selected":W.selectOptMenuheader,"width-size":W.gamesContainerWidth,"game-info":W.gameInfoheader,"player-home":W.playersHome,"player-away":W.playersAway,"matchdays-default":W.matchdaysPerTeam,onInput:b.changeCarouselItemRecent,"game-recientes":W.gamesRecientes},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","player-home","player-away","matchdays-default","onInput","game-recientes"])):t.createCommentVNode("",!0),W.selectOptMenuheader=="Probables"?(t.openBlock(),t.createBlock(h,{key:2,onClickOnSelectOption:b.clickOnSelectOption,style:{"margin-bottom":"80px"},"matchdays-default":W.matchdaysPerTeam,"option-selected":W.selectOptMenuheader,"width-size":W.gamesContainerWidth,"game-info":W.gameInfoheader,onChangehome:b.getLineupProbablesHome,onChangeaway:b.getLineupProbablesAway,"game-recientes":W.gamesRecientes},null,8,["onClickOnSelectOption","matchdays-default","option-selected","width-size","game-info","onChangehome","onChangeaway","game-recientes"])):t.createCommentVNode("",!0)],64)),t.createElementVNode("div",{class:t.normalizeClass(["lineup-players__container",{fallback:W.gamesContainerWidth===0}]),ref:"gamesContainer"},[t.createElementVNode("div",{class:t.normalizeClass(b.fieldcontainerClass)},[t.createElementVNode("div",{class:t.normalizeClass(["modal-substitutions",W.subsActive?"activeSub":"deactiveSub"])},[t.createElementVNode("div",lxe,[t.createElementVNode("div",cxe,[t.createElementVNode("span",uxe,[t.createTextVNode("Cambio "),t.createElementVNode("span",{class:"close-susbtitutions",onClick:s[0]||(s[0]=x=>b.closeChange())},hxe)])]),t.createElementVNode("div",pxe,[t.createElementVNode("div",fxe,[t.createElementVNode("div",mxe,[W.substitutionModal.in.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:W.substitutionModal.in.playerImg,width:"72",alt:"Jugador"},null,8,gxe)):t.createCommentVNode("",!0),t.createElementVNode("div",yxe,[W.substitutionModal.in.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:W.substitutionModal.in.teamImg,width:"28",alt:"team"},null,8,vxe)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+W.substitutionModal.in.nationalityimg+")"})},null,4)]),t.createElementVNode("div",_xe,t.toDisplayString(W.substitutionModal.in.name),1),t.createElementVNode("div",bxe,t.toDisplayString(W.substitutionModal.in.position),1),t.createElementVNode("div",xxe,[W.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",wxe,t.toDisplayString(W.substitutionModal.in.shirt_number),1)):t.createCommentVNode("",!0),W.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",kxe,Txe)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Cxe,[t.createElementVNode("template",null,[t.createElementVNode("div",Exe,[t.createElementVNode("div",null,t.toDisplayString(W.substitutionModal.min)+"'",1),Axe])])])]),t.createElementVNode("div",Mxe,[Ixe,t.createElementVNode("div",Pxe,t.toDisplayString(W.substitutionModal.min)+"' ",1)]),t.createElementVNode("div",Bxe,[t.createElementVNode("div",Lxe,[W.substitutionModal.out.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:W.substitutionModal.out.playerImg,width:"72",alt:"Jugador"},null,8,zxe)):t.createCommentVNode("",!0),t.createElementVNode("div",Oxe,[W.substitutionModal.out.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:W.substitutionModal.out.teamImg,width:"28",alt:"team"},null,8,Fxe)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+W.substitutionModal.out.nationalityimg+")"})},null,4)]),t.createElementVNode("div",Nxe,t.toDisplayString(W.substitutionModal.out.name),1),t.createElementVNode("div",Dxe,t.toDisplayString(W.substitutionModal.out.position),1),t.createElementVNode("div",Rxe,[W.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",Vxe,$xe)):t.createCommentVNode("",!0),W.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",Uxe,t.toDisplayString(W.substitutionModal.out.shirt_number),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Gxe,[t.createElementVNode("template",null,[t.createElementVNode("div",Hxe,[t.createElementVNode("div",null,t.toDisplayString(W.substitutionModal.min)+"'",1),Wxe])])])])])])],2),t.createElementVNode("div",{class:t.normalizeClass(b.canchacontainerClass)},[(W.gameForAnalysis.game_status==4||W.gameForAnalysis.game_status==1)&&W.gameForAnalysis.is_live==0&&b.numPlayer==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([b.notificationnolineupsClass])}," Las alineaciones estarán disponibles unos minutos antes de que inicie el partido. ",2)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.playersHome,(x,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"jersey_home"},[x.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([b.itemplayerfieldClass,W.gamesContainerWidth<740?W.teamActive=="home"?"active":"disabled":"",W.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(W.movil?{top:x.positionXOrigin+"%",left:x.positionYOrigin-7+b.calculatePerspectiveAdjustment(x.positionXOrigin)+"%"}:{top:x.positionX+"%",left:x.positionY-5+b.calculatePerspectiveAdjustment(x.positionX)+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(b.jerseyitemplayerClass),style:t.normalizeStyle(x.position!="Portero"?{backgroundImage:W.uniformHome}:{backgroundImage:W.uniformHomeG})},[t.createElementVNode("div",{class:t.normalizeClass([b.yellowcarddivclass,x.yellowcards>0&&x.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([b.redcarddivClass,x.yellowcards==0&&x.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([b.yellowredcarddivClass,x.yellowcards>0&&x.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([b.goalcarddivClass,x.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),t.createElementVNode("div",{class:t.normalizeClass(b.infoplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(b.infonameplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(["num-item-new",[W.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(x.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(x.abrevNamePlayer),1)],2),x.substitutionIn||x.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(b.infochangeplayeritemClass),onClick:v=>b.viewChange(x.substitutionDataID)},Zxe,10,qxe)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.playersAway,(x,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"jersey_away"},[x.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([b.itemplayerfieldClass,W.gamesContainerWidth<740?W.teamActive=="away"?"active":"disabled":"",W.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(W.movil?{top:x.positionXOrigin+"%",left:x.positionYOrigin+b.calculatePerspectiveAdjustmentAway(x.positionXOrigin)+"%"}:{top:x.positionX+"%",left:x.positionY-4+b.calculatePerspectiveAdjustmentAway(x.positionX)+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(b.jerseyitemplayerClass),style:t.normalizeStyle(x.position!="Portero"?{backgroundImage:W.uniformAway}:{backgroundImage:W.uniformAwayG})},[t.createElementVNode("div",{class:t.normalizeClass([b.yellowcarddivclass,x.yellowcards>0&&x.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([b.redcarddivClass,x.yellowcards==0&&x.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([b.yellowredcarddivClass,x.yellowcards>0&&x.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([b.goalcarddivClass,x.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),t.createElementVNode("div",{class:t.normalizeClass(b.infoplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(b.infonameplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(["num-item-new-away",[W.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(x.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(x.abrevNamePlayer),1)],2),x.substitutionIn||x.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(b.infochangeplayeritemClass),onClick:v=>b.viewChange(x.substitutionDataID)},Kxe,10,Xxe)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128))],2)],2),(W.gameForAnalysis.game_status==4||W.gameForAnalysis.game_status==1)&&W.gameForAnalysis.is_live==0&&b.numPlayer==0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Qxe,[t.createElementVNode("div",{class:t.normalizeClass(b.containerlineupsClass)},[t.createElementVNode("div",{class:t.normalizeClass(b.menuTeamsClass)},[t.createElementVNode("div",{class:"header-lineup-shield-team home",style:t.normalizeStyle([{cursor:"pointer"},W.teamActive=="home"?"background-color: #214e67; border-radius: 10px;":""]),onClick:s[1]||(s[1]=x=>b.viewLineupTeam("home"))},[t.createElementVNode("div",e3e,[W.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:W.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,t3e)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(W.homeTeamAbrev),1)],4),t.createElementVNode("div",{class:"header-lineup-shield-team away",style:t.normalizeStyle([{cursor:"pointer"},W.teamActive=="away"?"background-color: #214e67; border-radius: 10px;":""]),onClick:s[2]||(s[2]=x=>b.viewLineupTeam("away"))},[t.createElementVNode("div",null,t.toDisplayString(W.awayTeamAbrev),1),t.createElementVNode("div",n3e,[W.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:W.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,a3e)):t.createCommentVNode("",!0)])],4)],2),W.teamActive=="home"||W.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(b.containerClassHome)},[W.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",r3e,[t.createElementVNode("div",i3e,[W.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:W.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,o3e)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(W.homeTeamAbrev),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",s3e,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.playersHome,(x,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y},[x.played?(t.openBlock(),t.createBlock(n,{key:0,type:1,onOpenProfile:b.onOpenProfile,position:b.positionClass,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,img:x.imgPlayer,playerid:x.playerId,teamid:x.id_team,name:x.name,position:x.position,nation:x.imgNationality,shirt:x.shirt_number,yellowcard:x.yellowcards,redcard:x.redcards,yellowcardmin:x.yellowcardsMin,redcardmin:x.redcardsMin,goalsMin:x.goalsMin,substitutionIn:x.substitutionIn,substitutionOut:x.substitutionOut,substitutionMin:x.substitutionMin,section:W.selectOptMenuheader,type:o.selectedOption}},null,8,["onOpenProfile","position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",l3e,[c3e,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.playersHome,(x,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y},[x.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(n,{key:0,type:1,onOpenProfile:b.onOpenProfile,position:b.positionClass,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,img:x.imgPlayer,playerid:x.playerId,teamid:x.id_team,name:x.name,position:x.position,nation:x.imgNationality,shirt:x.shirt_number,yellowcard:x.yellowcards,redcard:x.redcards,yellowcardmin:x.yellowcardsMin,redcardmin:x.redcardsMin,goalsMin:x.goalsMin,substitutionIn:x.substitutionIn,substitutionOut:x.substitutionOut,substitutionMin:x.substitutionMin,section:W.selectOptMenuheader,type:o.selectedOption}},null,8,["onOpenProfile","position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0),W.teamActive=="away"||W.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(b.containerClassAway)},[W.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",u3e,[t.createElementVNode("div",null,t.toDisplayString(W.awayTeamAbrev),1),t.createElementVNode("div",d3e,[W.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:W.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,h3e)):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("div",p3e,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.playersAway,(x,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"line_away"},[x.played?(t.openBlock(),t.createBlock(n,{key:0,onOpenProfile:b.onOpenProfile,type:2,position:b.positionClass2,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,playerid:x.playerId,teamid:x.id_team,img:x.imgPlayer,name:x.name,position:x.position,nation:x.imgNationality,shirt:x.shirt_number,yellowcard:x.yellowcards,redcard:x.redcards,yellowcardmin:x.yellowcardsMin,redcardmin:x.redcardsMin,goalsMin:x.goalsMin,substitutionIn:x.substitutionIn,substitutionOut:x.substitutionOut,substitutionMin:x.substitutionMin,section:W.selectOptMenuheader,type:o.selectedOption}},null,8,["onOpenProfile","position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",f3e,[m3e,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.playersAway,(x,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"line_away"},[x.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(n,{key:0,onOpenProfile:b.onOpenProfile,type:2,position:b.positionClass2,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,playerid:x.playerId,teamid:x.id_team,img:x.imgPlayer,name:x.name,position:x.position,nation:x.imgNationality,shirt:x.shirt_number,yellowcard:x.yellowcards,redcard:x.redcards,yellowcardmin:x.yellowcardsMin,redcardmin:x.redcardsMin,goalsMin:x.goalsMin,substitutionIn:x.substitutionIn,substitutionOut:x.substitutionOut,substitutionMin:x.substitutionMin,section:W.selectOptMenuheader,type:o.selectedOption}},null,8,["onOpenProfile","position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0)],2)])),(W.gameForAnalysis.game_status==4||W.gameForAnalysis.game_status==1)&&W.gameForAnalysis.is_live==0&&b.numPlayer==0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(b.containernolineups)},[t.createElementVNode("div",{class:t.normalizeClass([b.containernolineups+"__img-search",W.gamesContainerWidth<740?"movil":""])},y3e,2),t.createElementVNode("div",{class:t.normalizeClass([b.containernolineups+"__title-info",W.gamesContainerWidth<740?"movil":""])}," Alineaciones sin definir ",2),t.createElementVNode("div",{class:t.normalizeClass([b.containernolineups+"__subtitle-info",W.gamesContainerWidth<740?"movil":""])},[t.createTextVNode(" Los equipos no han presentado sus alineaciones. Estas "),v3e,t.createTextVNode("serán dadas minutos antes del inicio del partido. ")],2)],2)):t.createCommentVNode("",!0)],2)])])])}const b3e=ep(rxe,[["render",_3e]]),x3e={components:{GSCLineups2D:Gme,GSCLineups3D:b3e},props:{isFemale:{type:Boolean,default:!1},selectedOption:{type:String,default:"Historicos"},game:{type:Object,default:()=>{}},isLive:{type:Boolean,default:!1},type:{type:String,default:"2D"},socket:{type:Object,default:()=>{}}},watch:{},data(){return{}},computed:{},methods:{onOpenProfile(e){this.$emit("onOpenProfile",e)}}};function w3e(e,s,o,O,W,b){const g=t.resolveComponent("GSCLineups2D"),a=t.resolveComponent("GSCLineups3D");return t.openBlock(),t.createElementBlock("div",null,[o.type=="2D"?(t.openBlock(),t.createBlock(g,{key:0,"selected-option":o.selectedOption,game:o.game,socket:o.socket},null,8,["selected-option","game","socket"])):t.createCommentVNode("",!0),o.type=="3D"?(t.openBlock(),t.createBlock(a,{key:1,"is-live":o.isLive,isFemale:o.isFemale,onOnOpenProfile:b.onOpenProfile,"selected-option":o.selectedOption,game:o.game,socket:o.socket},null,8,["is-live","isFemale","onOnOpenProfile","selected-option","game","socket"])):t.createCommentVNode("",!0)])}const tP=ep(x3e,[["render",w3e]]),I$t="",P$t="",k3e={class:"alineaciones-container"},S3e=Ji({__name:"GSCLineupsMain",props:{tournamentSelected:{type:Object,default:()=>({})},isWidget:{type:Boolean,default:!1},game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/18.png",team_id:10,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/1.png",team_id:1,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})}},emits:["onOpenProfile"],setup(e,{emit:s}){const o=e,O=t.ref(0);t.watch(()=>o.game,b=>{O.value=b.gameId},{deep:!0,immediate:!0});function W(b){o.isWidget||s("onOpenProfile",b)}return(b,g)=>(t.openBlock(),t.createElementBlock("div",k3e,[e.game.status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(tP),{socket:e.socket,key:O.value,type:"3D","is-female":e.tournamentSelected.is_female==1,"is-live":e.game.is_live==1,"selected-option":"Historicos",game:{game_id:e.game.gameId,season_id:e.game.seasonId,prematch:!1},onOnOpenProfile:W},null,8,["socket","is-female","is-live","game"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(tP),{"is-female":e.tournamentSelected.is_female==1,socket:e.socket,key:O.value,type:"3D","is-live":e.game.is_live==1,"selected-option":"Postmatch",game:{game_id:e.game.gameId,season_id:e.game.seasonId,prematch:!1},onOnOpenProfile:W},null,8,["is-female","socket","is-live","game"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-f877232a"]]);function nP(e,s){return function(){return e.apply(s,arguments)}}const{toString:T3e}=Object.prototype,{getPrototypeOf:w8}=Object,lx=(e=>s=>{const o=T3e.call(s);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),mf=e=>(e=e.toLowerCase(),s=>lx(s)===e),cx=e=>s=>typeof s===e,{isArray:Py}=Array,i2=cx("undefined");function C3e(e){return e!==null&&!i2(e)&&e.constructor!==null&&!i2(e.constructor)&&mp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const aP=mf("ArrayBuffer");function E3e(e){let s;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?s=ArrayBuffer.isView(e):s=e&&e.buffer&&aP(e.buffer),s}const A3e=cx("string"),mp=cx("function"),rP=cx("number"),ux=e=>e!==null&&typeof e=="object",M3e=e=>e===!0||e===!1,dx=e=>{if(lx(e)!=="object")return!1;const s=w8(e);return(s===null||s===Object.prototype||Object.getPrototypeOf(s)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},I3e=mf("Date"),P3e=mf("File"),B3e=mf("Blob"),L3e=mf("FileList"),z3e=e=>ux(e)&&mp(e.pipe),O3e=e=>{let s;return e&&(typeof FormData=="function"&&e instanceof FormData||mp(e.append)&&((s=lx(e))==="formdata"||s==="object"&&mp(e.toString)&&e.toString()==="[object FormData]"))},F3e=mf("URLSearchParams"),[N3e,D3e,R3e,V3e]=["ReadableStream","Request","Response","Headers"].map(mf),j3e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function o2(e,s,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let O,W;if(typeof e!="object"&&(e=[e]),Py(e))for(O=0,W=e.length;O<W;O++)s.call(null,e[O],O,e);else{const b=o?Object.getOwnPropertyNames(e):Object.keys(e),g=b.length;let a;for(O=0;O<g;O++)a=b[O],s.call(null,e[a],a,e)}}function iP(e,s){s=s.toLowerCase();const o=Object.keys(e);let O=o.length,W;for(;O-- >0;)if(W=o[O],s===W.toLowerCase())return W;return null}const Ig=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),oP=e=>!i2(e)&&e!==Ig;function k8(){const{caseless:e}=oP(this)&&this||{},s={},o=(O,W)=>{const b=e&&iP(s,W)||W;dx(s[b])&&dx(O)?s[b]=k8(s[b],O):dx(O)?s[b]=k8({},O):Py(O)?s[b]=O.slice():s[b]=O};for(let O=0,W=arguments.length;O<W;O++)arguments[O]&&o2(arguments[O],o);return s}const $3e=(e,s,o,{allOwnKeys:O}={})=>(o2(s,(W,b)=>{o&&mp(W)?e[b]=nP(W,o):e[b]=W},{allOwnKeys:O}),e),U3e=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),G3e=(e,s,o,O)=>{e.prototype=Object.create(s.prototype,O),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:s.prototype}),o&&Object.assign(e.prototype,o)},H3e=(e,s,o,O)=>{let W,b,g;const a={};if(s=s||{},e==null)return s;do{for(W=Object.getOwnPropertyNames(e),b=W.length;b-- >0;)g=W[b],(!O||O(g,e,s))&&!a[g]&&(s[g]=e[g],a[g]=!0);e=o!==!1&&w8(e)}while(e&&(!o||o(e,s))&&e!==Object.prototype);return s},W3e=(e,s,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=s.length;const O=e.indexOf(s,o);return O!==-1&&O===o},q3e=e=>{if(!e)return null;if(Py(e))return e;let s=e.length;if(!rP(s))return null;const o=new Array(s);for(;s-- >0;)o[s]=e[s];return o},Y3e=(e=>s=>e&&s instanceof e)(typeof Uint8Array<"u"&&w8(Uint8Array)),Z3e=(e,s)=>{const o=(e&&e[Symbol.iterator]).call(e);let O;for(;(O=o.next())&&!O.done;){const W=O.value;s.call(e,W[0],W[1])}},X3e=(e,s)=>{let o;const O=[];for(;(o=e.exec(s))!==null;)O.push(o);return O},J3e=mf("HTMLFormElement"),K3e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,o,O){return o.toUpperCase()+O}),sP=(({hasOwnProperty:e})=>(s,o)=>e.call(s,o))(Object.prototype),Q3e=mf("RegExp"),lP=(e,s)=>{const o=Object.getOwnPropertyDescriptors(e),O={};o2(o,(W,b)=>{let g;(g=s(W,b,e))!==!1&&(O[b]=g||W)}),Object.defineProperties(e,O)},ewe=e=>{lP(e,(s,o)=>{if(mp(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const O=e[o];if(mp(O)){if(s.enumerable=!1,"writable"in s){s.writable=!1;return}s.set||(s.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},twe=(e,s)=>{const o={},O=W=>{W.forEach(b=>{o[b]=!0})};return Py(e)?O(e):O(String(e).split(s)),o},nwe=()=>{},awe=(e,s)=>e!=null&&Number.isFinite(e=+e)?e:s,S8="abcdefghijklmnopqrstuvwxyz",cP="0123456789",uP={DIGIT:cP,ALPHA:S8,ALPHA_DIGIT:S8+S8.toUpperCase()+cP},rwe=(e=16,s=uP.ALPHA_DIGIT)=>{let o="";const{length:O}=s;for(;e--;)o+=s[Math.random()*O|0];return o};function iwe(e){return!!(e&&mp(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const owe=e=>{const s=new Array(10),o=(O,W)=>{if(ux(O)){if(s.indexOf(O)>=0)return;if(!("toJSON"in O)){s[W]=O;const b=Py(O)?[]:{};return o2(O,(g,a)=>{const _=o(g,W+1);!i2(_)&&(b[a]=_)}),s[W]=void 0,b}}return O};return o(e,0)},swe=mf("AsyncFunction"),lwe=e=>e&&(ux(e)||mp(e))&&mp(e.then)&&mp(e.catch),dP=((e,s)=>e?setImmediate:s?((o,O)=>(Ig.addEventListener("message",({source:W,data:b})=>{W===Ig&&b===o&&O.length&&O.shift()()},!1),W=>{O.push(W),Ig.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",mp(Ig.postMessage)),cwe=typeof queueMicrotask<"u"?queueMicrotask.bind(Ig):typeof process<"u"&&process.nextTick||dP,Fr={isArray:Py,isArrayBuffer:aP,isBuffer:C3e,isFormData:O3e,isArrayBufferView:E3e,isString:A3e,isNumber:rP,isBoolean:M3e,isObject:ux,isPlainObject:dx,isReadableStream:N3e,isRequest:D3e,isResponse:R3e,isHeaders:V3e,isUndefined:i2,isDate:I3e,isFile:P3e,isBlob:B3e,isRegExp:Q3e,isFunction:mp,isStream:z3e,isURLSearchParams:F3e,isTypedArray:Y3e,isFileList:L3e,forEach:o2,merge:k8,extend:$3e,trim:j3e,stripBOM:U3e,inherits:G3e,toFlatObject:H3e,kindOf:lx,kindOfTest:mf,endsWith:W3e,toArray:q3e,forEachEntry:Z3e,matchAll:X3e,isHTMLForm:J3e,hasOwnProperty:sP,hasOwnProp:sP,reduceDescriptors:lP,freezeMethods:ewe,toObjectSet:twe,toCamelCase:K3e,noop:nwe,toFiniteNumber:awe,findKey:iP,global:Ig,isContextDefined:oP,ALPHABET:uP,generateString:rwe,isSpecCompliantForm:iwe,toJSONObject:owe,isAsyncFn:swe,isThenable:lwe,setImmediate:dP,asap:cwe};function dl(e,s,o,O,W){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",s&&(this.code=s),o&&(this.config=o),O&&(this.request=O),W&&(this.response=W,this.status=W.status?W.status:null)}Fr.inherits(dl,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Fr.toJSONObject(this.config),code:this.code,status:this.status}}});const hP=dl.prototype,pP={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{pP[e]={value:e}}),Object.defineProperties(dl,pP),Object.defineProperty(hP,"isAxiosError",{value:!0}),dl.from=(e,s,o,O,W,b)=>{const g=Object.create(hP);return Fr.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),dl.call(g,e.message,s,o,O,W),g.cause=e,g.name=e.name,b&&Object.assign(g,b),g};const uwe=null;function T8(e){return Fr.isPlainObject(e)||Fr.isArray(e)}function fP(e){return Fr.endsWith(e,"[]")?e.slice(0,-2):e}function mP(e,s,o){return e?e.concat(s).map(function(O,W){return O=fP(O),!o&&W?"["+O+"]":O}).join(o?".":""):s}function dwe(e){return Fr.isArray(e)&&!e.some(T8)}const hwe=Fr.toFlatObject(Fr,{},null,function(e){return/^is[A-Z]/.test(e)});function hx(e,s,o){if(!Fr.isObject(e))throw new TypeError("target must be an object");s=s||new FormData,o=Fr.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,u){return!Fr.isUndefined(u[v])});const O=o.metaTokens,W=o.visitor||h,b=o.dots,g=o.indexes,a=(o.Blob||typeof Blob<"u"&&Blob)&&Fr.isSpecCompliantForm(s);if(!Fr.isFunction(W))throw new TypeError("visitor must be a function");function _(v){if(v===null)return"";if(Fr.isDate(v))return v.toISOString();if(!a&&Fr.isBlob(v))throw new dl("Blob is not supported. Use a Buffer instead.");return Fr.isArrayBuffer(v)||Fr.isTypedArray(v)?a&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function h(v,u,r){let i=v;if(v&&!r&&typeof v=="object"){if(Fr.endsWith(u,"{}"))u=O?u:u.slice(0,-2),v=JSON.stringify(v);else if(Fr.isArray(v)&&dwe(v)||(Fr.isFileList(v)||Fr.endsWith(u,"[]"))&&(i=Fr.toArray(v)))return u=fP(u),i.forEach(function(d,l){!(Fr.isUndefined(d)||d===null)&&s.append(g===!0?mP([u],l,b):g===null?u:u+"[]",_(d))}),!1}return T8(v)?!0:(s.append(mP(r,u,b),_(v)),!1)}const n=[],x=Object.assign(hwe,{defaultVisitor:h,convertValue:_,isVisitable:T8});function y(v,u){if(!Fr.isUndefined(v)){if(n.indexOf(v)!==-1)throw Error("Circular reference detected in "+u.join("."));n.push(v),Fr.forEach(v,function(r,i){(!(Fr.isUndefined(r)||r===null)&&W.call(s,r,Fr.isString(i)?i.trim():i,u,x))===!0&&y(r,u?u.concat(i):[i])}),n.pop()}}if(!Fr.isObject(e))throw new TypeError("data must be an object");return y(e),s}function gP(e){const s={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return s[o]})}function C8(e,s){this._pairs=[],e&&hx(e,this,s)}const yP=C8.prototype;yP.append=function(e,s){this._pairs.push([e,s])},yP.toString=function(e){const s=e?function(o){return e.call(this,o,gP)}:gP;return this._pairs.map(function(o){return s(o[0])+"="+s(o[1])},"").join("&")};function pwe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vP(e,s,o){if(!s)return e;const O=o&&o.encode||pwe;Fr.isFunction(o)&&(o={serialize:o});const W=o&&o.serialize;let b;if(W?b=W(s,o):b=Fr.isURLSearchParams(s)?s.toString():new C8(s,o).toString(O),b){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+b}return e}const _P=class{constructor(){this.handlers=[]}use(s,o,O){return this.handlers.push({fulfilled:s,rejected:o,synchronous:O?O.synchronous:!1,runWhen:O?O.runWhen:null}),this.handlers.length-1}eject(s){this.handlers[s]&&(this.handlers[s]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(s){Fr.forEach(this.handlers,function(o){o!==null&&s(o)})}},bP={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fwe=typeof URLSearchParams<"u"?URLSearchParams:C8,mwe=typeof FormData<"u"?FormData:null,gwe=typeof Blob<"u"?Blob:null,ywe={isBrowser:!0,classes:{URLSearchParams:fwe,FormData:mwe,Blob:gwe},protocols:["http","https","file","blob","url","data"]},E8=typeof window<"u"&&typeof document<"u",A8=typeof navigator=="object"&&navigator||void 0,vwe=E8&&(!A8||["ReactNative","NativeScript","NS"].indexOf(A8.product)<0),_we=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),bwe=E8&&window.location.href||"http://localhost",xwe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:E8,hasStandardBrowserEnv:vwe,hasStandardBrowserWebWorkerEnv:_we,navigator:A8,origin:bwe},Symbol.toStringTag,{value:"Module"})),dh={...xwe,...ywe};function wwe(e,s){return hx(e,new dh.classes.URLSearchParams,Object.assign({visitor:function(o,O,W,b){return dh.isNode&&Fr.isBuffer(o)?(this.append(O,o.toString("base64")),!1):b.defaultVisitor.apply(this,arguments)}},s))}function kwe(e){return Fr.matchAll(/\w+|\[(\w*)]/g,e).map(s=>s[0]==="[]"?"":s[1]||s[0])}function Swe(e){const s={},o=Object.keys(e);let O;const W=o.length;let b;for(O=0;O<W;O++)b=o[O],s[b]=e[b];return s}function xP(e){function s(o,O,W,b){let g=o[b++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),_=b>=o.length;return g=!g&&Fr.isArray(W)?W.length:g,_?(Fr.hasOwnProp(W,g)?W[g]=[W[g],O]:W[g]=O,!a):((!W[g]||!Fr.isObject(W[g]))&&(W[g]=[]),s(o,O,W[g],b)&&Fr.isArray(W[g])&&(W[g]=Swe(W[g])),!a)}if(Fr.isFormData(e)&&Fr.isFunction(e.entries)){const o={};return Fr.forEachEntry(e,(O,W)=>{s(kwe(O),W,o,0)}),o}return null}function Twe(e,s,o){if(Fr.isString(e))try{return(s||JSON.parse)(e),Fr.trim(e)}catch(O){if(O.name!=="SyntaxError")throw O}return(o||JSON.stringify)(e)}const M8={transitional:bP,adapter:["xhr","http","fetch"],transformRequest:[function(e,s){const o=s.getContentType()||"",O=o.indexOf("application/json")>-1,W=Fr.isObject(e);if(W&&Fr.isHTMLForm(e)&&(e=new FormData(e)),Fr.isFormData(e))return O?JSON.stringify(xP(e)):e;if(Fr.isArrayBuffer(e)||Fr.isBuffer(e)||Fr.isStream(e)||Fr.isFile(e)||Fr.isBlob(e)||Fr.isReadableStream(e))return e;if(Fr.isArrayBufferView(e))return e.buffer;if(Fr.isURLSearchParams(e))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let b;if(W){if(o.indexOf("application/x-www-form-urlencoded")>-1)return wwe(e,this.formSerializer).toString();if((b=Fr.isFileList(e))||o.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return hx(b?{"files[]":e}:e,g&&new g,this.formSerializer)}}return W||O?(s.setContentType("application/json",!1),Twe(e)):e}],transformResponse:[function(e){const s=this.transitional||M8.transitional,o=s&&s.forcedJSONParsing,O=this.responseType==="json";if(Fr.isResponse(e)||Fr.isReadableStream(e))return e;if(e&&Fr.isString(e)&&(o&&!this.responseType||O)){const W=!(s&&s.silentJSONParsing)&&O;try{return JSON.parse(e)}catch(b){if(W)throw b.name==="SyntaxError"?dl.from(b,dl.ERR_BAD_RESPONSE,this,null,this.response):b}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dh.classes.FormData,Blob:dh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Fr.forEach(["delete","get","head","post","put","patch"],e=>{M8.headers[e]={}});const I8=M8,Cwe=Fr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ewe=e=>{const s={};let o,O,W;return e&&e.split(`
45
45
  `).forEach(function(b){W=b.indexOf(":"),o=b.substring(0,W).trim().toLowerCase(),O=b.substring(W+1).trim(),!(!o||s[o]&&Cwe[o])&&(o==="set-cookie"?s[o]?s[o].push(O):s[o]=[O]:s[o]=s[o]?s[o]+", "+O:O)}),s},wP=Symbol("internals");function s2(e){return e&&String(e).trim().toLowerCase()}function px(e){return e===!1||e==null?e:Fr.isArray(e)?e.map(px):String(e)}function Awe(e){const s=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let O;for(;O=o.exec(e);)s[O[1]]=O[2];return s}const Mwe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function P8(e,s,o,O,W){if(Fr.isFunction(O))return O.call(this,s,o);if(W&&(s=o),!!Fr.isString(s)){if(Fr.isString(O))return s.indexOf(O)!==-1;if(Fr.isRegExp(O))return O.test(s)}}function Iwe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,o,O)=>o.toUpperCase()+O)}function Pwe(e,s){const o=Fr.toCamelCase(" "+s);["get","set","has"].forEach(O=>{Object.defineProperty(e,O+o,{value:function(W,b,g){return this[O].call(this,s,W,b,g)},configurable:!0})})}let fx=class{constructor(s){s&&this.set(s)}set(s,o,O){const W=this;function b(a,_,h){const n=s2(_);if(!n)throw new Error("header name must be a non-empty string");const x=Fr.findKey(W,n);(!x||W[x]===void 0||h===!0||h===void 0&&W[x]!==!1)&&(W[x||_]=px(a))}const g=(a,_)=>Fr.forEach(a,(h,n)=>b(h,n,_));if(Fr.isPlainObject(s)||s instanceof this.constructor)g(s,o);else if(Fr.isString(s)&&(s=s.trim())&&!Mwe(s))g(Ewe(s),o);else if(Fr.isHeaders(s))for(const[a,_]of s.entries())b(_,a,O);else s!=null&&b(o,s,O);return this}get(s,o){if(s=s2(s),s){const O=Fr.findKey(this,s);if(O){const W=this[O];if(!o)return W;if(o===!0)return Awe(W);if(Fr.isFunction(o))return o.call(this,W,O);if(Fr.isRegExp(o))return o.exec(W);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,o){if(s=s2(s),s){const O=Fr.findKey(this,s);return!!(O&&this[O]!==void 0&&(!o||P8(this,this[O],O,o)))}return!1}delete(s,o){const O=this;let W=!1;function b(g){if(g=s2(g),g){const a=Fr.findKey(O,g);a&&(!o||P8(O,O[a],a,o))&&(delete O[a],W=!0)}}return Fr.isArray(s)?s.forEach(b):b(s),W}clear(s){const o=Object.keys(this);let O=o.length,W=!1;for(;O--;){const b=o[O];(!s||P8(this,this[b],b,s,!0))&&(delete this[b],W=!0)}return W}normalize(s){const o=this,O={};return Fr.forEach(this,(W,b)=>{const g=Fr.findKey(O,b);if(g){o[g]=px(W),delete o[b];return}const a=s?Iwe(b):String(b).trim();a!==b&&delete o[b],o[a]=px(W),O[a]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const o=Object.create(null);return Fr.forEach(this,(O,W)=>{O!=null&&O!==!1&&(o[W]=s&&Fr.isArray(O)?O.join(", "):O)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([s,o])=>s+": "+o).join(`
46
46
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...o){const O=new this(s);return o.forEach(W=>O.set(W)),O}static accessor(s){const o=(this[wP]=this[wP]={accessors:{}}).accessors,O=this.prototype;function W(b){const g=s2(b);o[g]||(Pwe(O,b),o[g]=!0)}return Fr.isArray(s)?s.forEach(W):W(s),this}};fx.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Fr.reduceDescriptors(fx.prototype,({value:e},s)=>{let o=s[0].toUpperCase()+s.slice(1);return{get:()=>e,set(O){this[o]=O}}}),Fr.freezeMethods(fx);const gf=fx;function B8(e,s){const o=this||I8,O=s||o,W=gf.from(O.headers);let b=O.data;return Fr.forEach(e,function(g){b=g.call(o,b,W.normalize(),s?s.status:void 0)}),W.normalize(),b}function kP(e){return!!(e&&e.__CANCEL__)}function By(e,s,o){dl.call(this,e??"canceled",dl.ERR_CANCELED,s,o),this.name="CanceledError"}Fr.inherits(By,dl,{__CANCEL__:!0});function SP(e,s,o){const O=o.config.validateStatus;!o.status||!O||O(o.status)?e(o):s(new dl("Request failed with status code "+o.status,[dl.ERR_BAD_REQUEST,dl.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function Bwe(e){const s=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return s&&s[1]||""}function Lwe(e,s){e=e||10;const o=new Array(e),O=new Array(e);let W=0,b=0,g;return s=s!==void 0?s:1e3,function(a){const _=Date.now(),h=O[b];g||(g=_),o[W]=a,O[W]=_;let n=b,x=0;for(;n!==W;)x+=o[n++],n=n%e;if(W=(W+1)%e,W===b&&(b=(b+1)%e),_-g<s)return;const y=h&&_-h;return y?Math.round(x*1e3/y):void 0}}function zwe(e,s){let o=0,O=1e3/s,W,b;const g=(a,_=Date.now())=>{o=_,W=null,b&&(clearTimeout(b),b=null),e.apply(null,a)};return[(...a)=>{const _=Date.now(),h=_-o;h>=O?g(a,_):(W=a,b||(b=setTimeout(()=>{b=null,g(W)},O-h)))},()=>W&&g(W)]}const mx=(e,s,o=3)=>{let O=0;const W=Lwe(50,250);return zwe(b=>{const g=b.loaded,a=b.lengthComputable?b.total:void 0,_=g-O,h=W(_),n=g<=a;O=g;const x={loaded:g,total:a,progress:a?g/a:void 0,bytes:_,rate:h||void 0,estimated:h&&a&&n?(a-g)/h:void 0,event:b,lengthComputable:a!=null,[s?"download":"upload"]:!0};e(x)},o)},TP=(e,s)=>{const o=e!=null;return[O=>s[0]({lengthComputable:o,total:e,loaded:O}),s[1]]},CP=e=>(...s)=>Fr.asap(()=>e(...s)),Owe=dh.hasStandardBrowserEnv?((e,s)=>o=>(o=new URL(o,dh.origin),e.protocol===o.protocol&&e.host===o.host&&(s||e.port===o.port)))(new URL(dh.origin),dh.navigator&&/(msie|trident)/i.test(dh.navigator.userAgent)):()=>!0,Fwe=dh.hasStandardBrowserEnv?{write(e,s,o,O,W,b){const g=[e+"="+encodeURIComponent(s)];Fr.isNumber(o)&&g.push("expires="+new Date(o).toGMTString()),Fr.isString(O)&&g.push("path="+O),Fr.isString(W)&&g.push("domain="+W),b===!0&&g.push("secure"),document.cookie=g.join("; ")},read(e){const s=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Nwe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Dwe(e,s){return s?e.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):e}function EP(e,s){return e&&!Nwe(s)?Dwe(e,s):s}const AP=e=>e instanceof gf?{...e}:e;function Pg(e,s){s=s||{};const o={};function O(h,n,x,y){return Fr.isPlainObject(h)&&Fr.isPlainObject(n)?Fr.merge.call({caseless:y},h,n):Fr.isPlainObject(n)?Fr.merge({},n):Fr.isArray(n)?n.slice():n}function W(h,n,x,y){if(Fr.isUndefined(n)){if(!Fr.isUndefined(h))return O(void 0,h,x,y)}else return O(h,n,x,y)}function b(h,n){if(!Fr.isUndefined(n))return O(void 0,n)}function g(h,n){if(Fr.isUndefined(n)){if(!Fr.isUndefined(h))return O(void 0,h)}else return O(void 0,n)}function a(h,n,x){if(x in s)return O(h,n);if(x in e)return O(void 0,h)}const _={url:b,method:b,data:b,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:a,headers:(h,n,x)=>W(AP(h),AP(n),x,!0)};return Fr.forEach(Object.keys(Object.assign({},e,s)),function(h){const n=_[h]||W,x=n(e[h],s[h],h);Fr.isUndefined(x)&&n!==a||(o[h]=x)}),o}const MP=e=>{const s=Pg({},e);let{data:o,withXSRFToken:O,xsrfHeaderName:W,xsrfCookieName:b,headers:g,auth:a}=s;s.headers=g=gf.from(g),s.url=vP(EP(s.baseURL,s.url),e.params,e.paramsSerializer),a&&g.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let _;if(Fr.isFormData(o)){if(dh.hasStandardBrowserEnv||dh.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if((_=g.getContentType())!==!1){const[h,...n]=_?_.split(";").map(x=>x.trim()).filter(Boolean):[];g.setContentType([h||"multipart/form-data",...n].join("; "))}}if(dh.hasStandardBrowserEnv&&(O&&Fr.isFunction(O)&&(O=O(s)),O||O!==!1&&Owe(s.url))){const h=W&&b&&Fwe.read(b);h&&g.set(W,h)}return s},Rwe=typeof XMLHttpRequest<"u",Vwe=Rwe&&function(e){return new Promise(function(s,o){const O=MP(e);let W=O.data;const b=gf.from(O.headers).normalize();let{responseType:g,onUploadProgress:a,onDownloadProgress:_}=O,h,n,x,y,v;function u(){y&&y(),v&&v(),O.cancelToken&&O.cancelToken.unsubscribe(h),O.signal&&O.signal.removeEventListener("abort",h)}let r=new XMLHttpRequest;r.open(O.method.toUpperCase(),O.url,!0),r.timeout=O.timeout;function i(){if(!r)return;const l=gf.from("getAllResponseHeaders"in r&&r.getAllResponseHeaders()),p={data:!g||g==="text"||g==="json"?r.responseText:r.response,status:r.status,statusText:r.statusText,headers:l,config:e,request:r};SP(function(m){s(m),u()},function(m){o(m),u()},p),r=null}"onloadend"in r?r.onloadend=i:r.onreadystatechange=function(){!r||r.readyState!==4||r.status===0&&!(r.responseURL&&r.responseURL.indexOf("file:")===0)||setTimeout(i)},r.onabort=function(){r&&(o(new dl("Request aborted",dl.ECONNABORTED,e,r)),r=null)},r.onerror=function(){o(new dl("Network Error",dl.ERR_NETWORK,e,r)),r=null},r.ontimeout=function(){let l=O.timeout?"timeout of "+O.timeout+"ms exceeded":"timeout exceeded";const p=O.transitional||bP;O.timeoutErrorMessage&&(l=O.timeoutErrorMessage),o(new dl(l,p.clarifyTimeoutError?dl.ETIMEDOUT:dl.ECONNABORTED,e,r)),r=null},W===void 0&&b.setContentType(null),"setRequestHeader"in r&&Fr.forEach(b.toJSON(),function(l,p){r.setRequestHeader(p,l)}),Fr.isUndefined(O.withCredentials)||(r.withCredentials=!!O.withCredentials),g&&g!=="json"&&(r.responseType=O.responseType),_&&([x,v]=mx(_,!0),r.addEventListener("progress",x)),a&&r.upload&&([n,y]=mx(a),r.upload.addEventListener("progress",n),r.upload.addEventListener("loadend",y)),(O.cancelToken||O.signal)&&(h=l=>{r&&(o(!l||l.type?new By(null,e,r):l),r.abort(),r=null)},O.cancelToken&&O.cancelToken.subscribe(h),O.signal&&(O.signal.aborted?h():O.signal.addEventListener("abort",h)));const d=Bwe(O.url);if(d&&dh.protocols.indexOf(d)===-1){o(new dl("Unsupported protocol "+d+":",dl.ERR_BAD_REQUEST,e));return}r.send(W||null)})},jwe=(e,s)=>{const{length:o}=e=e?e.filter(Boolean):[];if(s||o){let O=new AbortController,W;const b=function(h){if(!W){W=!0,a();const n=h instanceof Error?h:this.reason;O.abort(n instanceof dl?n:new By(n instanceof Error?n.message:n))}};let g=s&&setTimeout(()=>{g=null,b(new dl(`timeout ${s} of ms exceeded`,dl.ETIMEDOUT))},s);const a=()=>{e&&(g&&clearTimeout(g),g=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(b):h.removeEventListener("abort",b)}),e=null)};e.forEach(h=>h.addEventListener("abort",b));const{signal:_}=O;return _.unsubscribe=()=>Fr.asap(a),_}},$we=jwe,Uwe=function*(e,s){let o=e.byteLength;if(!s||o<s){yield e;return}let O=0,W;for(;O<o;)W=O+s,yield e.slice(O,W),O=W},Gwe=async function*(e,s){for await(const o of Hwe(e))yield*Uwe(o,s)},Hwe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const s=e.getReader();try{for(;;){const{done:o,value:O}=await s.read();if(o)break;yield O}}finally{await s.cancel()}},IP=(e,s,o,O)=>{const W=Gwe(e,s);let b=0,g,a=_=>{g||(g=!0,O&&O(_))};return new ReadableStream({async pull(_){try{const{done:h,value:n}=await W.next();if(h){a(),_.close();return}let x=n.byteLength;if(o){let y=b+=x;o(y)}_.enqueue(new Uint8Array(n))}catch(h){throw a(h),h}},cancel(_){return a(_),W.return()}},{highWaterMark:2})},gx=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",PP=gx&&typeof ReadableStream=="function",Wwe=gx&&(typeof TextEncoder=="function"?(e=>s=>e.encode(s))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),BP=(e,...s)=>{try{return!!e(...s)}catch{return!1}},qwe=PP&&BP(()=>{let e=!1;const s=new Request(dh.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!s}),LP=64*1024,L8=PP&&BP(()=>Fr.isReadableStream(new Response("").body)),yx={stream:L8&&(e=>e.body)};gx&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(s=>{!yx[s]&&(yx[s]=Fr.isFunction(e[s])?o=>o[s]():(o,O)=>{throw new dl(`Response type '${s}' is not supported`,dl.ERR_NOT_SUPPORT,O)})})})(new Response);const Ywe=async e=>{if(e==null)return 0;if(Fr.isBlob(e))return e.size;if(Fr.isSpecCompliantForm(e))return(await new Request(dh.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Fr.isArrayBufferView(e)||Fr.isArrayBuffer(e))return e.byteLength;if(Fr.isURLSearchParams(e)&&(e=e+""),Fr.isString(e))return(await Wwe(e)).byteLength},Zwe=async(e,s)=>Fr.toFiniteNumber(e.getContentLength())??Ywe(s),Xwe=gx&&(async e=>{let{url:s,method:o,data:O,signal:W,cancelToken:b,timeout:g,onDownloadProgress:a,onUploadProgress:_,responseType:h,headers:n,withCredentials:x="same-origin",fetchOptions:y}=MP(e);h=h?(h+"").toLowerCase():"text";let v=$we([W,b&&b.toAbortSignal()],g),u;const r=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let i;try{if(_&&qwe&&o!=="get"&&o!=="head"&&(i=await Zwe(n,O))!==0){let w=new Request(s,{method:"POST",body:O,duplex:"half"}),T;if(Fr.isFormData(O)&&(T=w.headers.get("content-type"))&&n.setContentType(T),w.body){const[A,C]=TP(i,mx(CP(_)));O=IP(w.body,LP,A,C)}}Fr.isString(x)||(x=x?"include":"omit");const d="credentials"in Request.prototype;u=new Request(s,{...y,signal:v,method:o.toUpperCase(),headers:n.normalize().toJSON(),body:O,duplex:"half",credentials:d?x:void 0});let l=await fetch(u);const p=L8&&(h==="stream"||h==="response");if(L8&&(a||p&&r)){const w={};["status","statusText","headers"].forEach(P=>{w[P]=l[P]});const T=Fr.toFiniteNumber(l.headers.get("content-length")),[A,C]=a&&TP(T,mx(CP(a),!0))||[];l=new Response(IP(l.body,LP,A,()=>{C&&C(),r&&r()}),w)}h=h||"text";let m=await yx[Fr.findKey(yx,h)||"text"](l,e);return!p&&r&&r(),await new Promise((w,T)=>{SP(w,T,{data:m,headers:gf.from(l.headers),status:l.status,statusText:l.statusText,config:e,request:u})})}catch(d){throw r&&r(),d&&d.name==="TypeError"&&/fetch/i.test(d.message)?Object.assign(new dl("Network Error",dl.ERR_NETWORK,e,u),{cause:d.cause||d}):dl.from(d,d&&d.code,e,u)}}),z8={http:uwe,xhr:Vwe,fetch:Xwe};Fr.forEach(z8,(e,s)=>{if(e){try{Object.defineProperty(e,"name",{value:s})}catch{}Object.defineProperty(e,"adapterName",{value:s})}});const zP=e=>`- ${e}`,Jwe=e=>Fr.isFunction(e)||e===null||e===!1,OP={getAdapter:e=>{e=Fr.isArray(e)?e:[e];const{length:s}=e;let o,O;const W={};for(let b=0;b<s;b++){o=e[b];let g;if(O=o,!Jwe(o)&&(O=z8[(g=String(o)).toLowerCase()],O===void 0))throw new dl(`Unknown adapter '${g}'`);if(O)break;W[g||"#"+b]=O}if(!O){const b=Object.entries(W).map(([a,_])=>`adapter ${a} `+(_===!1?"is not supported by the environment":"is not available in the build"));let g=s?b.length>1?`since :
47
47
  `+b.map(zP).join(`